PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.8
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.8
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/article-card/view.js +5 -1 2.1.0 → 2.1.8 View file →
@@ -1 +1,5 @@
1 -(()=>{"use strict";const t=window.ReactDOM,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}},a="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",o="linear-gradient(135deg, #0040E3, #18D4FD)";window.React;const i=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},s=(t,n)=>e(n)?`${t}: ${n};`:"",l=(t,e=!0,n=!0,a=!0)=>{const{type:r="solid",color:l="",gradient:c=o,image:d={},position:$="center center",attachment:u="",repeat:b="no-repeat",size:M="",overlayColor:g=""}=t||{};return"gradient"===r&&n?s("background",c):"image"===r&&a?`background: ${i(d?.url)};\n\t\t\t\t${s("background-color",g)}\n\t\t\t\t${s("background-position",$)}\n\t\t\t\t${s("background-size",M)}\n\t\t\t\t${s("background-repeat",b)}\n\t\t\t\t${s("background-attachment",u)}\n\t\t\t\t${s("background-repeat",b)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&s("background",l)},c=t=>{const{width:e="",style:n="solid",color:a="",side:r="all",radius:o=""}=t||{},i=t=>{const e=r?.toLowerCase();return e?.includes("all")||e?.includes(t)},l=`${e} ${n} ${a}`,c=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>i(t)?`border-${t}: ${l};`:"")).join(""):""}\n\t\t${s("border-radius",o)}\n\t`;return c},d=(t,e="box")=>{let n="";return t?.map(((a,r)=>{const{hOffset:o="0px",vOffset:i="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=a||{},$=d?"inset":"",u=`${o} ${i} ${s}`,b=r+1>=t.length?"":", ";n+="text"===e?`${u} ${c}${b}`:`${u} ${l} ${c} ${$}${b}`})),n||""},$=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:i="sans-serif",fontVariant:l=400,fontWeight:c,isUploadFont:d=!0,fontSize:$={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:b,textDecoration:M,lineHeight:g,letterSpace:p}=e||{},m=!n||!o||"Default"===o,y=$?.desktop||$,j=$?.tablet||y,x=$?.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`:""},N=`\n\t\t${m?"":`font-family: '${o}', ${i};`}\n\t\t${s("font-weight",c)}\n\t\t${s("font-size",h(y))}\n\t\t${s("font-style",u)}\n\t\t${s("text-transform",b)}\n\t\t${s("text-decoration",M)}\n\t\t${s("line-height",g)}\n\t\t${s("letter-spacing",p)}\n\t`,w=l&&400!==l?"400i"===l?":ital@1":l?.includes("00i")?`: ital, wght@1, ${l?.replace("00i","00")} `:`: wght@${l} `:"",L=m?"":`https://fonts.googleapis.com/css2?family=${o?.split(" ").join("+")}${w.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||m?"":`@import url(${L});`,styles:`${t}{\n\t\t\t${N}\n\t\t}\n\t\t${a} {\n\t\t\t${t}{\n\t\t\t\t${s("font-size",h(j))}\n\t\t\t}\n\t\t}\n\t\t${r} {\n\t\t\t${t}{\n\t\t\t\t${s("font-size",h(x))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},u=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""},b=t=>{const{position:n="center center",xPosition:a=0,yPosition:r=0,attachment:o="",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?`${a} ${r}`:n};`:""}\n\t\t${o&&c(o)?`background-attachment: ${o};`:""}\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: ${i(t.url)}; ${b(t?.desktop)}`:"",tablet:e(t.url)?b(t?.tablet):"",mobile:e(t.url)?b(t?.mobile):""}:"",g=(t,o,i=!1)=>{const{type:l="color",color:c,gradient:d,img:$,video:u}=t||{},b="color"===l?s("background",c):"gradient"===l?(t=>{const{type:n="linear",radialType:a="ellipse",colors:r=[],centerPositions:o={x:0,y:0},angel:i=0}=t||{};if(e(t)){const t=r?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${i}deg, ${t})`;return s("background","radial"===n?`radial-gradient(${a} at ${o?.x}% ${o?.y}%,${t})`:e)}return""})(d):"image"===l?M($).desktop:"",g="image"===l?M($).tablet:"",p="image"===l?M($).mobile:"",m=i?`${o}:hover`:o;return`\n\t\t${"video"===l?((t,e)=>{const{url:a,loop:r}=t||{},o=document.querySelector(e),i=o?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!i&&o&&a){const t=n(a);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),o.appendChild(s)}}return s.loop=r,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}`})(u,o):""}\n\n\t\t${b?`${m}{\n\t\t\t${b}\n\t\t}`:""}\n\n\t\t${g?`${a} {\n\t\t\t${m}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${p?`${r} {\n\t\t\t${m}{\n\t\t\t\t${p}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},p=(t,n,a=!1)=>{const{isEnabled:r,colors:o,opacity:i=1,blend:l,filter:c="",blur:d=0,brightness:$=100,contrast:u=100,saturation:b=100,hue:M=0,position:p={top:0,right:0,bottom:0,left:0},zIndex:m=-1}=t||{},y=`${100!==$?`brightness(${$}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==b?`saturate(${b}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==M?`hue-rotate(${M}deg)`:""}`,j=`${c}: ${c?y:""}; -webkit-${c}: ${c?y:""};`,x=a?`${n}:hover::after`:`${n}::after`;return r?`\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(p.top)?p.top:0};\n\t\t\tright:${e(p.right)?p.right:0};\n\t\t\tbottom:${e(p.bottom)?p.bottom:0};\n\t\t\tleft:${e(p.left)?p.left:0};\n\t\t\tz-index:${m};\n\t\t}\n\t\t${g(o,x,!1)}\n\t\t${x}{\n\t\t\t${s("opacity",i)}\n\t\t\t${s("mix-blend-mode",l)}\n\t\t\t${j}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},m=(t,n,o=!1)=>{const i=(t,n="desktop")=>{if(!e(t))return"";const{skew:a,scale:r,rotate:o,offset:i,flipX:l,flipY:c}=t,{threeDRotate:d}=o||{},{isProportion:$}=r||{},u=[];return e(a)&&(e(a?.[n]?.x)&&u.push(`skewX(${a[n].x}deg)`),e(a?.[n]?.y)&&u.push(`skewY(${a[n].y}deg)`)),$?e(r?.[n]?.scale)&&u.push(`scale(${r[n].scale})`):(e(r?.[n]?.x)&&u.push(`scaleX(${r[n].x})`),e(r?.[n]?.y)&&u.push(`scaleY(${r[n].y})`)),e(o)&&(e(o?.[n]?.z)&&u.push(`rotateZ(${o[n].z}deg)`),d&&(e(o?.[n]?.x)&&u.push(`rotateX(${o[n].x}deg)`),e(o?.[n]?.y)&&u.push(`rotateY(${o[n].y}deg)`))),e(i)&&(e(i?.[n]?.x)&&u.push(`translateX(${i[n].x})`),e(i?.[n]?.y)&&u.push(`translateY(${i[n].y})`)),e(l)&&u.push(l?"scaleX(-1)":""),e(c)&&u.push(c?"scaleY(-1)":""),0===u.length?"":s("transform",u.join(" "))},l=o?`${n}:hover`:n;return`\n\t\t${l} {\n\t\t\t${i(t,"desktop")}\n\t\t}\n\t\t${a}{\n\t\t\t${l} {\n\t\t\t\t${i(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${r}{\n\t\t\t${l} {\n\t\t\t\t${i(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},y=t=>{const{padding:e,margin:n,height:a,width:r}=t||{},o=(t,e)=>s(t,e),i=(t,e,n)=>o(t,e?.[t]?.[n])+o(`min-${t}`,e?.min?.[n])+o(`max-${t}`,e?.max?.[n]),l=t=>s("padding",u(t)),c=t=>s("margin",u(t));return{desktop:l(e?.desktop)+c(n?.desktop)+i("height",a,"desktop")+i("width",r,"desktop"),tablet:l(e?.tablet)+c(n?.tablet)+i("height",a,"tablet")+i("width",r,"tablet"),mobile:l(e?.mobile)+c(n?.mobile)+i("height",a,"mobile")+i("width",r,"mobile")}},j=t=>{const{normal:e,hover:n}=t||{},a=t=>{const{border:e,radius:n,shadow:a}=t||{},r=s("border-radius",u(n)),o=s("box-shadow",d(a,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:a="0px"}=t;return`${a} ${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():s("border",e(t))})(e)+r+o};return{normal:a(e),hover:a(n)}},x=t=>{const{zIndex:n,overflow:a}=t||{},r=a?`overflow: ${a};`:"",o=t=>`${s("z-index",n?.[t])} ${s("position",e(n?.[t])?"relative":"")}`;return{desktop:o("desktop")+r,tablet:o("tablet"),mobile:o("mobile")}},h=(t,e)=>{const{desktop:n=!1,tablet:a=!1,mobile:r=!1}=t||{},o=e?"opacity: 0.5;":"display: none;",i=t=>t?o:"";return{desktop:i(n),tablet:i(a),mobile:i(r)}},N=(t,n,o=!1,l=!0)=>{const{dimension:c,transform:d,background:$,borderShadow:u,mask:b,animation:M,visibility:N,responsive:w,css:L=""}=n||{},k=o?`#${t}>div>div${l?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const a=n?`#${e} > div`:`#${e}`,r=document.querySelector(a);r&&t&&t.type&&(r.setAttribute("data-aos",t.type),r.setAttribute("data-aos-duration",1e3*t.duration||.4),r.setAttribute("data-aos-delay",1e3*t.delay||0),r.classList.contains("aos-init")||(r.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?r.classList.add("aos-animate"):r.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(r)})(M,t,o);const D=y(c).desktop+x(N).desktop+((t,e,n)=>{const{transition:a=.4}=t||{},{transition:r=.4}=e||{},{transition:o=200}=n||{};return`transition: background ${a}s, border ${r}s, border-radius ${r}s, box-shadow ${r}s, transform ${o}ms ease-in-out;`})($,u,d)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:a={type:"contain",scale:"100%"},position:r={type:"center center",x:50,y:50},repeat:o="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?i(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"===a.type?a.scale:a.type};\n\t\t${"custom"===r.type?`${s("-webkit-mask-position-x",r.x)}\n\t\t\t${s("-webkit-mask-position-y",r.y)}`:`${s("-webkit-mask-position",r.type)}`}\n\t\t${"cover"!==a.type?`-webkit-mask-repeat: ${o};`:""}`:"";var l})(b),f=y(c).tablet+x(N).tablet+h(w,o).tablet,z=y(c).mobile+x(N).mobile+h(w,o).mobile,I=j(u).normal,T=j(u).hover,v=h(w,o).desktop;return`\n\t\t${D||I?`${k} {\n\t\t\t${D}\n\t\t\t${I}\n\t\t}`:""}\n\t\t${T?`${k}:hover {\n\t\t\t${T}\n\t\t}`:""}\n\n\t\t${v?`@media only screen and (min-width: 1025px) {\n\t\t\t${k}{\n\t\t\t\t${v}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${f?`${a} {\n\t\t\t${k}{\n\t\t\t\t${f}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${z?`${r} {\n\t\t\t${k}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g($?.normal,k)}\n\t\t${g($?.hover,k,!0)}\n\t\t${p($?.overlay,k)}\n\t\t${p($?.hoverOverlay,k,!0)}\n\t\t${e(d?.normal)?m(d?.normal,k):""}\n\t\t${e(d?.hover)?m(d?.hover,k,!0):""}\n\n\t\t${L}\n\t`.replace(/\s+/g," ")},w=window.ReactJSXRuntime,L=(t,e)=>"string"==typeof t?t:t?.[e]||"mobile"===e&&t?.tablet||t?.desktop,k={left:"flex-start",center:"center",right:"flex-end"},D=({attributes:t,id:e,isBackend:n=!1})=>{const{advanced:o,layout:i={},image:b={},badge:M={},meta:g={},colors:p={},card:m={},cta:y={},typography:j={},heading:x={},excerpt:h={}}=t,{type:D={},alignment:f}=i,z="string"==typeof f?{desktop:f,tablet:"",mobile:""}:f||{},{position:I={},objectFit:T={},objectPosition:v={},filter:S={},splitRatio:O={},splitLeft:Y={},splitRight:C={}}=b,{align:E,bg:A,color:Q,padding:U={},margin:P={},border:R={},borderRadius:H={}}=M,{heading:Z,text:W,meta:B}=p,{background:F={},padding:_={},border:X={},borderRadius:G={},shadow:J}=m,{normal:V={},hover:q={},padding:K={},margin:tt={},borderRadius:et={},transition:nt=.2}=y,{heading:at={},excerpt:rt={},cta:ot={},badge:it={},meta:st={}}=j,lt=`#${e} .b-blocks-article-card`,ct=`${lt} .b-blocks-article-card-card`,dt=`${lt} .b-blocks-article-card-media`,$t=`${lt} .b-blocks-article-card-img`,ut=`${lt} .b-blocks-article-card-media-placeholder`,bt=`${lt} .b-blocks-article-card-body`,Mt=`${lt} .b-blocks-article-card-badge`,gt=`${lt} .b-blocks-article-card-heading`,pt=`${lt} .b-blocks-article-card-excerpt`,mt=`${lt} .b-blocks-article-card-meta`,yt=`${lt} .b-blocks-article-card-meta-icon`,jt=`${lt} .b-blocks-article-card-cta`,xt=`${lt} .b-blocks-article-card-link`,ht=`#${e} .b-blocks-article-card--cta-button .b-blocks-article-card-cta`,Nt=`#${e} .b-blocks-article-card--cta-link .b-blocks-article-card-cta`,wt=(t,e,n)=>s(t,u(e?.[n])),Lt=t=>`\n\t\t${bt}{ ${wt("padding",_,t)} }\n\t\t${ct}{ ${wt("border-radius",G,t)} }\n\t\t${Mt}{ ${wt("padding",U,t)} ${wt("margin",P,t)} ${wt("border-radius",H,t)} }\n\t\t${gt}{ ${wt("padding",x.padding,t)} ${wt("margin",x.margin,t)} ${wt("border-radius",x.borderRadius,t)} }\n\t\t${pt}{ ${wt("padding",h.padding,t)} ${wt("margin",h.margin,t)} ${wt("border-radius",h.borderRadius,t)} }\n\t\t${mt}{ ${wt("padding",g.padding,t)} ${wt("margin",g.margin,t)} ${wt("border-radius",g.borderRadius,t)} }\n\t\t${ht}{ ${wt("padding",K,t)} ${wt("margin",tt,t)} ${wt("border-radius",et,t)} }\n\t`,kt=t=>{const e=L(T,t)||"cover",n=L(v,t)||"center";return`\n\t\t\t${$t}{ ${s("object-fit",e)} ${s("object-position",n)} ${(t=>{if(!t)return"";const e=[];return t.blur&&e.push(`blur(${t.blur}px)`),null!=t.brightness&&100!==t.brightness&&e.push(`brightness(${t.brightness}%)`),null!=t.contrast&&100!==t.contrast&&e.push(`contrast(${t.contrast}%)`),null!=t.saturate&&100!==t.saturate&&e.push(`saturate(${t.saturate}%)`),t.grayscale&&e.push(`grayscale(${t.grayscale}%)`),e.length?`filter:${e.join(" ")};`:""})(S?.[t])} }\n\t\t`},Dt=t=>{const e="horizontal"===(L(D,t)||"horizontal"),n=L(I,t)||(e?"left":"top"),a=L(O,t),r=parseInt(a,10)||40,o="custom"===a?L(Y,t)||"40%":`${r}%`,i="custom"===a?L(C,t)||"60%":100-r+"%",s=e?"right"===n?"row-reverse":"row":"bottom"===n?"column-reverse":"column",l=L(z,t)||"left";let c="";return c="center"===l?`\n\t\t\t\t${lt}{ display: flex; justify-content: center; }\n\t\t\t\t${bt}{ align-items: center; text-align: center; }\n\t\t\t\t${jt}{ align-self: center !important; }\n\t\t\t`:"right"===l?`\n\t\t\t\t${lt}{ display: flex; justify-content: flex-end; }\n\t\t\t\t${bt}{ align-items: flex-end; text-align: right; }\n\t\t\t\t${jt}{ align-self: flex-end !important; }\n\t\t\t`:`\n\t\t\t\t${lt}{ display: block; }\n\t\t\t\t${bt}{ align-items: flex-start; text-align: left; }\n\t\t\t\t${jt}{ align-self: flex-start; }\n\t\t\t`,`\n\t\t\t${ct}, ${xt}{ flex-direction:${s}; }\n\t\t\t${e?`\n\t\t\t\t${dt}{ flex:0 0 ${o}; max-width:${o}; width:${o}; align-self:stretch; position:relative; }\n\t\t\t\t${$t}{ width:100%; height:100%; aspect-ratio:auto; }\n\t\t\t\t${ut}{ width:100%; height:100%; min-height:180px; }\n\t\t\t\t${bt}{ flex:1 1 ${i}; max-width:${i}; width:${i}; justify-content:center; }\n\t\t\t`:`\n\t\t\t\t${dt}{ flex:0 0 auto; width:100%; max-width:100%; align-self:auto; }\n\t\t\t\t${$t}{ width:100%; height:auto; }\n\t\t\t\t${ut}{ width:100%; min-height:180px; }\n\t\t\t\t${bt}{ flex:1 1 auto; width:100%; max-width:100%; justify-content:normal; }\n\t\t\t`}\n\t\t\t${c}\n\t\t`};return(0,w.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${$("",at).googleFontLink}\n\t\t\t${$("",rt).googleFontLink}\n\t\t\t${$("",ot).googleFontLink}\n\t\t\t${$("",it).googleFontLink}\n\t\t\t${$("",st).googleFontLink}\n\t\t\t${ct}{\n\t\t\t\t${s("box-shadow",d(J))}\n\t\t\t\t${l(F)}\n\t\t\t\t${c(X)}\n\t\t\t}\n\t\t\t${Mt}{\n\t\t\t\talign-self:${k[E]||"flex-start"} !important;\n\t\t\t\t${l(A)}\n\t\t\t\tcolor:${Q||"#ffffff"};\n\t\t\t\t${c(R)}\n\t\t\t}\n\t\t\t${gt}{\n\t\t\t\tcolor:${Z||"#111827"};\n\t\t\t\t${l(x.background)}\n\t\t\t\t${c(x.border)}\n\t\t\t}\n\t\t\t${pt}{\n\t\t\t\tcolor:${W||"#374151"};\n\t\t\t\t${l(h.background)}\n\t\t\t\t${c(h.border)}\n\t\t\t}\n\t\t\t${mt}{\n\t\t\t\tcolor:${g.color||B||"#6b7280"};\n\t\t\t\t${l(g.bg)}\n\t\t\t\t${c(g.border)}\n\t\t\t}\n\t\t\t${yt}{\n\t\t\t\tcolor:${g.iconColor||g.color||B||"#6b7280"};\n\t\t\t}\n\t\t\t${yt} svg{\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t\t${$(gt,at).styles}\n\t\t\t${$(pt,rt).styles}\n\t\t\t${$(jt,ot).styles}\n\t\t\t${$(Mt,it).styles}\n\t\t\t${$(mt,st).styles}\n\t\t\t${ht}{\n\t\t\t\t${c(V.border)}\n\t\t\t\t${l(V.bg)}\n\t\t\t\t${s("box-shadow",d(V.shadow))}\n\t\t\t\tcolor:${V.color||"#ffffff"};\n\t\t\t\ttransition:all ${nt}s ease;\n\t\t\t}\n\t\t\t${ht}:hover, ${ht}:focus-visible{\n\t\t\t\t${l(q.bg)}\n\t\t\t\t${c(q.border)}\n\t\t\t\t${s("box-shadow",d(q.shadow))}\n\t\t\t\tcolor:${q.color||"#ffffff"};\n\t\t\t}\n\t\t\t${Nt}{ color:${V.bg?.color||"#2563eb"}; }\n\t\t\t${jt}:focus-visible, ${xt}:focus-visible{\n\t\t\t\toutline:2px solid ${V.bg?.color||"#2563eb"};\n\t\t\t\toutline-offset:2px;\n\t\t\t}\n\t\t\t${Lt("desktop")}\n\t\t\t${kt("desktop")}\n\t\t\t${Dt("desktop")}\n\t\t\t${a}{\n\t\t\t\t${Lt("tablet")}\n\t\t\t\t${kt("tablet")}\n\t\t\t\t${Dt("tablet")}\n\t\t\t}\n\t\t\t${r}{\n\t\t\t\t${Lt("mobile")}\n\t\t\t\t${kt("mobile")}\n\t\t\t\t${Dt("mobile")}\n\t\t\t}\n\t\t\t${N(e,o,n,!1)}\n\t\t\t`}})},f=window.wp.i18n,z=()=>(0,w.jsx)("span",{className:"screen-reader-text",children:(0,f.__)("(opens in a new tab)","b-blocks")}),I=()=>(0,w.jsx)("svg",{className:"b-blocks-article-card-cta-arrow",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,w.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),T=({attributes:t})=>{const{image:e={},content:n={},link:a={}}=t,{url:r={},alt:o=""}=e,{badge:i,heading:s,headingTag:l,excerpt:c,meta:d,metaIcon:$}=n,{url:u,target:b,ctaLabel:M,ctaStyle:g,cardLinkMode:p}=a,m=l||"h3",y=(s||"").replace(/<[^>]*>/g,"").trim(),j=(x=r,x?.desktop||x?.tablet||x?.mobile||"");var x;const h=o||y,N=!!p&&!!u,L=!N&&!!M,k=["b-blocks-article-card",`b-blocks-article-card--cta-${g}`].filter(Boolean).join(" "),D=j?(0,w.jsx)("div",{className:"b-blocks-article-card-media",children:(0,w.jsxs)("picture",{className:"b-blocks-article-card-picture",children:[r.mobile?(0,w.jsx)("source",{media:"(max-width: 640px)",srcSet:r.mobile}):null,r.tablet?(0,w.jsx)("source",{media:"(max-width: 1024px)",srcSet:r.tablet}):null,(0,w.jsx)("img",{className:"b-blocks-article-card-img",src:j,alt:h,loading:"lazy",decoding:"async"})]})}):null,T=(0,w.jsxs)("div",{className:"b-blocks-article-card-body",children:[i?(0,w.jsx)("span",{className:"b-blocks-article-card-badge",children:i}):null,s?(0,w.jsx)(m,{className:"b-blocks-article-card-heading",dangerouslySetInnerHTML:{__html:s}}):null,c?(0,w.jsx)("p",{className:"b-blocks-article-card-excerpt",dangerouslySetInnerHTML:{__html:c}}):null,d?(0,w.jsxs)("span",{className:"b-blocks-article-card-meta",children:[$?(0,w.jsx)("span",{className:"b-blocks-article-card-meta-icon","aria-hidden":"true",dangerouslySetInnerHTML:{__html:$}}):null,(0,w.jsx)("span",{className:"b-blocks-article-card-meta-text",children:d})]}):null,L?u?(0,w.jsxs)("a",{className:"b-blocks-article-card-cta",href:u,...b?{target:"_blank",rel:"noopener noreferrer"}:{},children:[(0,w.jsx)("span",{className:"b-blocks-article-card-cta-label",children:M}),"link"===g?(0,w.jsx)(I,{}):null,b?(0,w.jsx)(z,{}):null]}):(0,w.jsxs)("span",{className:"b-blocks-article-card-cta",children:[(0,w.jsx)("span",{className:"b-blocks-article-card-cta-label",children:M}),"link"===g?(0,w.jsx)(I,{}):null]}):null]});return(0,w.jsx)("div",{className:k,children:(0,w.jsx)("article",{className:"b-blocks-article-card-card",children:N?(0,w.jsxs)("a",{className:"b-blocks-article-card-link",href:u,"aria-label":y||(0,f.__)("Read article","b-blocks"),...b?{target:"_blank",rel:"noopener noreferrer"}:{},children:[D,T,b?(0,w.jsx)(z,{}):null]}):(0,w.jsxs)(w.Fragment,{children:[D,T]})})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-article-card").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(D,{attributes:n,id:e.id}),(0,w.jsx)(T,{attributes:n})]})),e?.removeAttribute("data-attributes")}))}))})();
1 +(()=>{"use strict";const t=window.ReactDOM,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}};new class{constructor(t={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t},this.allowedTagSet=new Set(this.options.allowedTags.map((t=>t.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((t=>t.toLowerCase())))}sanitize(t){if("string"!=typeof t||""===t.trim())return"";const e=(new DOMParser).parseFromString(t,"image/svg+xml"),n=e.documentElement;return!n||"svg"!==n.localName.toLowerCase()||e.getElementsByTagName("parsererror").length?"":(this.removeScripts(e),this.sanitizeElements(e),(new XMLSerializer).serializeToString(e.documentElement))}async sanitizeFile(t){const e=await fetch(t),n=await e.text();return this.sanitize(`${n}`)}removeScripts(t){this.options.removeScripts&&Array.from(t.querySelectorAll("*")).forEach((t=>{t.localName.toLowerCase().includes("script")&&t.remove()}))}sanitizeElements(t){Array.from(t.querySelectorAll("*")).forEach((t=>{const e=t.localName.toLowerCase();this.allowedTagSet.has(e)?("style"===e&&this.options.sanitizeStyle&&(t.textContent=this.sanitizeCss(t.textContent)),this.sanitizeAttributes(t)):t.remove()}))}sanitizeAttributes(t){Array.from(t.attributes).forEach((e=>{const n=e.name,i=n.toLowerCase(),o=e.value;if(this.options.removeEvents&&i.startsWith("on"))return void t.removeAttribute(n);if(this.options.removeExternalResources&&("href"===i||i.endsWith(":href"))&&!this.isAllowedUrl(o))return void t.removeAttribute(n);const r=i.replace("xlink:","");this.allowedAttributeSet.has(i)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(o)?t.removeAttribute(n):"style"===i&&this.options.sanitizeStyle&&t.setAttribute(n,this.sanitizeCss(o)):t.removeAttribute(n)}))}hasExternalUrl(t){return!("string"!=typeof t||!/url\s*\(/i.test(t))&&Array.from(t.matchAll(/url\s*\(\s*['"]?([^'")]*)/gi)).some((([,t])=>!t.trim().startsWith("#")))}isAllowedUrl(t){const e=String(t||"").trim();if(e.startsWith("#"))return!0;if(/^data:/i.test(e))return this.options.allowedProtocols.includes("data")&&/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(e);try{return this.options.allowedProtocols.includes(new URL(e).protocol.replace(":",""))}catch{return!1}}sanitizeCss(t){return String(t||"").replace(/expression\s*\(/gi,"").replace(/javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/@import[^;]*;?/gi,"").replace(/url\s*\(\s*(['"]?)(?!#)[^)]*\)/gi,"none")}};const i="@media only screen and (min-width: 1025px)",o="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",a="linear-gradient(135deg, #0040E3, #18D4FD)";window.React;const 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,i=!0)=>{const{type:o="solid",color:r="",gradient:c=a,image:d={},position:u="center center",attachment:$="",repeat:p="no-repeat",size:m="",overlayColor:b=""}=t||{};return"gradient"===o&&n?l("background",c):"image"===o&&i?`background: ${s(d?.url)};\n\t\t\t\t${l("background-color",b)}\n\t\t\t\t${l("background-position",u)}\n\t\t\t\t${l("background-size",m)}\n\t\t\t\t${l("background-repeat",p)}\n\t\t\t\t${l("background-attachment",$)}\n\t\t\t\t${l("background-repeat",p)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&l("background",r)},d=t=>{const{width:e="",style:n="solid",color:i="",side:o="all",radius:r=""}=t||{},a=t=>{const e=o?.toLowerCase();return e?.includes("all")||e?.includes(t)},s=`${e} ${n} ${i}`,c=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>a(t)?`border-${t}: ${s};`:"")).join(""):""}\n\t\t${l("border-radius",r)}\n\t`;return c},u=(t,e="box")=>{let n="";return t?.map(((i,o)=>{const{hOffset:r="0px",vOffset:a="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=i||{},u=d?"inset":"",$=`${r} ${a} ${s}`,p=o+1>=t.length?"":", ";n+="text"===e?`${$} ${c}${p}`:`${$} ${l} ${c} ${u}${p}`})),n||""},$=(t,e,n=!0)=>{const{fontFamily:i="Default",fontCategory:a="sans-serif",fontVariant:s=400,fontWeight:c,isUploadFont:d=!0,fontSize:u={desktop:null,tablet:null,mobile:null},fontStyle:$,textTransform:p,textDecoration:m,lineHeight:b,letterSpace:g}=e||{},y=!n||!i||"Default"===i,M=u?.desktop||u,h=u?.tablet||M,x=u?.mobile||h,f=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},w=`\n\t\t${y?"":`font-family: '${i}', ${a};`}\n\t\t${l("font-weight",c)}\n\t\t${l("font-size",f(M))}\n\t\t${l("font-style",$)}\n\t\t${l("text-transform",p)}\n\t\t${l("text-decoration",m)}\n\t\t${l("line-height",b)}\n\t\t${l("letter-spacing",g)}\n\t`,j=s&&400!==s?"400i"===s?":ital@1":s?.includes("00i")?`: ital, wght@1, ${s?.replace("00i","00")} `:`: wght@${s} `:"",k=y?"":`https://fonts.googleapis.com/css2?family=${i?.split(" ").join("+")}${j.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||y?"":`@import url(${k});`,styles:`${t}{\n\t\t\t${w}\n\t\t}\n\t\t${o} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",f(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",f(x))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},p=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:i=0,yPosition:o=0,attachment:r="",repeat:a="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?`${i} ${o}`:n};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(a)?`background-repeat: ${a};`:""}\n\t\t${c(s)?`background-size: ${"custom"===s?`${l} auto`:s};`:""}\n\t`},b=(t={})=>t?{desktop:e(t.url)?`background-image: ${s(t.url)}; ${m(t?.desktop)}`:"",tablet:e(t.url)?m(t?.tablet):"",mobile:e(t.url)?m(t?.mobile):""}:"",g=(t,i,a=!1)=>{const{type:s="color",color:c,gradient:d,img:u,video:$}=t||{},p="color"===s?l("background",c):"gradient"===s?(t=>{const{type:n="linear",radialType:i="ellipse",colors:o=[],centerPositions:r={x:0,y:0},angel:a=0}=t||{};if(e(t)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${a}deg, ${t})`;return l("background","radial"===n?`radial-gradient(${i} at ${r?.x}% ${r?.y}%,${t})`:e)}return""
2 +})(d):"image"===s?b(u).desktop:"",m="image"===s?b(u).tablet:"",g="image"===s?b(u).mobile:"",y=a?`${i}:hover`:i;return`\n\t\t${"video"===s?((t,e)=>{const{url:i,loop:o}=t||{},r=document.querySelector(e),a=r?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!a&&r&&i){const t=n(i);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),r.appendChild(s)}}return s.loop=o,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}`})($,i):""}\n\n\t\t${p?`${y}{\n\t\t\t${p}\n\t\t}`:""}\n\n\t\t${m?`${o} {\n\t\t\t${y}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g?`${r} {\n\t\t\t${y}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},y=(t,n,i=!1)=>{const{isEnabled:o,colors:r,opacity:a=1,blend:s,filter:c="",blur:d=0,brightness:u=100,contrast:$=100,saturation:p=100,hue:m=0,position:b={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},M=`${100!==u?`brightness(${u}%)`:""} ${100!==$?`contrast(${$}%)`:""} ${100!==p?`saturate(${p}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,h=`${c}: ${c?M:""}; -webkit-${c}: ${c?M:""};`,x=i?`${n}:hover::after`:`${n}::after`;return o?`\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(b.top)?b.top:0};\n\t\t\tright:${e(b.right)?b.right:0};\n\t\t\tbottom:${e(b.bottom)?b.bottom:0};\n\t\t\tleft:${e(b.left)?b.left:0};\n\t\t\tz-index:${y};\n\t\t}\n\t\t${g(r,x,!1)}\n\t\t${x}{\n\t\t\t${l("opacity",a)}\n\t\t\t${l("mix-blend-mode",s)}\n\t\t\t${h}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},M=(t,n,i=!1)=>{const a=(t,n="desktop")=>{if(!e(t))return"";const{skew:i,scale:o,rotate:r,offset:a,flipX:s,flipY:c}=t,{threeDRotate:d}=r||{},{isProportion:u}=o||{},$=[];return e(i)&&(e(i?.[n]?.x)&&$.push(`skewX(${i[n].x}deg)`),e(i?.[n]?.y)&&$.push(`skewY(${i[n].y}deg)`)),u?e(o?.[n]?.scale)&&$.push(`scale(${o[n].scale})`):(e(o?.[n]?.x)&&$.push(`scaleX(${o[n].x})`),e(o?.[n]?.y)&&$.push(`scaleY(${o[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(a)&&(e(a?.[n]?.x)&&$.push(`translateX(${a[n].x})`),e(a?.[n]?.y)&&$.push(`translateY(${a[n].y})`)),e(s)&&$.push(s?"scaleX(-1)":""),e(c)&&$.push(c?"scaleY(-1)":""),0===$.length?"":l("transform",$.join(" "))},s=i?`${n}:hover`:n;return`\n\t\t${s} {\n\t\t\t${a(t,"desktop")}\n\t\t}\n\t\t${o}{\n\t\t\t${s} {\n\t\t\t\t${a(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${r}{\n\t\t\t${s} {\n\t\t\t\t${a(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},h=t=>{const{padding:e,margin:n,height:i,width:o}=t||{},r=(t,e)=>l(t,e),a=(t,e,n)=>r(t,e?.[t]?.[n])+r(`min-${t}`,e?.min?.[n])+r(`max-${t}`,e?.max?.[n]),s=t=>l("padding",p(t)),c=t=>l("margin",p(t));return{desktop:s(e?.desktop)+c(n?.desktop)+a("height",i,"desktop")+a("width",o,"desktop"),tablet:s(e?.tablet)+c(n?.tablet)+a("height",i,"tablet")+a("width",o,"tablet"),mobile:s(e?.mobile)+c(n?.mobile)+a("height",i,"mobile")+a("width",o,"mobile")}},x=t=>{const{normal:e,hover:n}=t||{},i=t=>{const{border:e,radius:n,shadow:i}=t||{},o=l("border-radius",p(n)),r=l("box-shadow",u(i,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:i="0px"}=t;return`${i} ${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))})(e)+o+r};return{normal:i(e),hover:i(n)}},f=t=>{const{zIndex:n,overflow:i}=t||{},o=i?`overflow: ${i};`:"",r=t=>`${l("z-index",n?.[t])} ${l("position",e(n?.[t])?"relative":"")}`;return{desktop:r("desktop")+o,tablet:r("tablet"),mobile:r("mobile")}},w=(t,e)=>{const{desktop:n=!1,tablet:i=!1,mobile:o=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",a=t=>t?r:"";return{desktop:a(n),tablet:a(i),mobile:a(o)}},j=(t,n,a=!1,c=!0)=>{const{dimension:d,transform:u,background:$,borderShadow:p,mask:m,animation:b,visibility:j,responsive:k,position:N={},floating:L={},motion:v={},css:D=""}=n||{},z=a?`#${t}>div>div${c?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const i=n?`#${e} > div`:`#${e}`,o=document.querySelector(i);o&&t&&t.type&&(o.setAttribute("data-aos",t.type),o.setAttribute("data-aos-duration",1e3*t.duration||.4),o.setAttribute("data-aos-delay",1e3*t.delay||0),o.classList.contains("aos-init")||(o.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?o.classList.add("aos-animate"):o.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(o)})(b,t,a);const T=h(d).desktop+f(j).desktop+((t,e,n)=>{const{transition:i=.4}=t||{},{transition:o=.4}=e||{},{transition:r=200}=n||{};return`transition: background ${i}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${r}ms ease-in-out;`})($,p,u)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:i={type:"contain",scale:"100%"},position:o={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?s(n.url):`url(${(a=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij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base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===a))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===i.type?i.scale:i.type};\n\t\t${"custom"===o.type?`${l("-webkit-mask-position-x",o.x)}\n\t\t\t${l("-webkit-mask-position-y",o.y)}`:`${l("-webkit-mask-position",o.type)}`}\n\t\t${"cover"!==i.type?`-webkit-mask-repeat: ${r};`:""}`:"";var a})(m),S=h(d).tablet+f(j).tablet+w(k,a).tablet,I=h(d).mobile+f(j).mobile+w(k,a).mobile,A=x(p).normal,E=x(p).hover,O=w(k,a).desktop;return`\n\t\t${T||A?`${z} {\n\t\t\t${T}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${z}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${i} {\n\t\t\t${z}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${o} {\n\t\t\t${z}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${r} {\n\t\t\t${z}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g($?.normal,z)}\n\t\t${g($?.hover,z,!0)}\n\t\t${y($?.overlay,z)}\n\t\t${y($?.hoverOverlay,z,!0)}\n\t\t${e(u?.normal)?M(u?.normal,z):""}\n\t\t${e(u?.hover)?M(u?.hover,z,!0):""}\n\t\t${((t,e)=>{const{desktop:n={},tablet:i={},mobile:a={}}=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${o}{\n\t\t\t${i?.type?s(i):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${a?.type?s(a):""}\n\t\t}\n\t`})(N,z)}\n\t\t${((t,n,i="")=>{const{translate:o={},rotate:r={},scale:a={},isEnabled:s=!1}=t||{};if(!s)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:o,value:t=>["x","y"].some((n=>e(o?.[n]?.[t])))?`${o?.x?.[t]||0}px ${o?.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:a,value:t=>{const n=a?.y?.[t],i=a?.z?.[t];return e(n)||e(i)?e(i)?`1 ${e(n)?n:1} ${i}`:`1 ${n}`:""}}].forEach((({name:t,property:e,values:n,value:o})=>{const r=o("from"),a=o("to");if(!r||!a)return;const s=Number(n?.duration)>0?Number(n.duration):1e3,d=Number(n?.delay)>0?Number(n.delay):0,u=`advFloat${t}${i?`-${i}`:""}`;l.push(`@keyframes ${u}{ from{ ${e}: ${r}; } to{ ${e}: ${a}; } }`),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`:""})(L,z,t)}\n\t\t${((t,n,a)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:d={},blur:u={},rotate:$={},scale:p={},effectsRelativeTo:m="viewport",effectOn:b=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:g=!1,mouseTrack:y={},tilt:M={},sticky:h={}}=t||{},x=(t,n)=>e(t)&&!isNaN(t)?Number(t):n,f="viewport"===m,w=f?"view()":"scroll(nearest block)",j=[],k=[],N=[],L=[],v=String(a??"").replace(/[^a-zA-Z0-9]/g,""),D=(t,e,n)=>{j.push(`@keyframes advMe${t}${v}{ ${e} }`),k.push(`advMe${t}${v}`),N.push(w),L.push((t=>{const e=x(t?.top,0),n=x(t?.bottom,100),i=Math.min(e,n),o=Math.max(e,n);return f?`cover ${i}% ${o>=90?"contain 100%":`cover ${o}%`}`:`min(${3*i}vh, ${i}%) min(${3*o}vh, ${o}%)`})(n))};if(s){const t=l?.direction,e=c?.direction,n=t?100*x(l?.speed,4):0,i=e?100*x(c?.speed,4):0;if(n||i){const o="up"===t?-n:n,r="to-left"===e?-i:i,a=[n&&l,i&&c].filter(Boolean);D("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${o}px; }`,{top:Math.min(...a.map((t=>x(t?.top,0)))),bottom:Math.max(...a.map((t=>x(t?.bottom,100))))})}const o=d?.direction;if(o){const t=Math.max(0,1-x(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}; }`}[o];e&&D("Opacity",e,d)}const r=u?.direction;if(r){const t=3*x(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 a=$?.direction;if(a){const t=20*x($?.level,4);D("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===a?-t:t}deg; }`,$)}if(p?.direction){const t=.15*x(p?.level,4),e=Math.max(0,1-t),n=1+t,i={"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; }`}[p.direction];i&&D("Scale",i,p)}}const z=[];if(g){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(M?.direction){const t=12*("direct"===M?.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,i)=>{if(!t||!t.defaultView)return;const o=t.defaultView,r=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),a=r.items.get(n)||{x:0,y:0};if(a.rate=e,a.build=i,r.items.set(n,a),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 i=!1;r.items.forEach(((e,o)=>{const a=e.el&&e.el.isConnected?e.el:t.querySelector(o);if(!a)return;e.el=a;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,i=!0),a.style.transform=e.build(e.x,e.y)})),r.frame=i?o.requestAnimationFrame(s):0,r.last=i?e:0};t.addEventListener("pointermove",(t=>{r.x=2*(t.clientX/o.innerWidth-.5),r.y=2*(t.clientY/o.innerHeight-.5),r.frame||(r.frame=o.requestAnimationFrame(s))}))};if(z.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*x(y?.speed,x(M?.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 S=t=>h?.[t]||("desktop"===t?h?.undefined:""),I=n.split(">")[0],A=t=>{const e=S(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?S("desktop"):"mobile"===t?S("tablet")||S("desktop"):"")(t)?"position: static;":""},E=Array.isArray(b)?b:e(b)?[b]:[],O=t=>!E.length||E.includes(t)?"":`${n}{ animation-name: none; }`
4 +;return`\n\t\t${k.length?`\n\t\t${j.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${n}{\n\t\t\t\tanimation-name: ${k.join(", ")};\n\t\t\t\tanimation-duration: ${k.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${k.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${k.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${k.map((()=>f?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${N.join(", ")};\n\t\t\t\tanimation-range: ${L.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${i}{ ${O("desktop")} }`:""}\n\t\t\t${O("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${O("tablet-portrait")} }`:""}\n\t\t\t${O("mobile-portrait")?`${r}{ ${O("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${z.length?`${n}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${I}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${o}{ ${I}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${r}{ ${I}{ ${A("mobile")} } }`:""}\n\t`})(v,z,t)}\n\t\t${D}\n\t`.replace(/\s+/g," ")},k=window.ReactJSXRuntime,N=(t,e)=>"string"==typeof t?t:t?.[e]||"mobile"===e&&t?.tablet||t?.desktop,L={left:"flex-start",center:"center",right:"flex-end"},v=({attributes:t,id:e,isBackend:n=!1})=>{const{advanced:i,layout:a={},image:s={},badge:m={},meta:b={},colors:g={},card:y={},cta:M={},typography:h={},heading:x={},excerpt:f={}}=t,{type:w={},alignment:v}=a,D="string"==typeof v?{desktop:v,tablet:"",mobile:""}:v||{},{position:z={},objectFit:T={},objectPosition:S={},filter:I={},splitRatio:A={},splitLeft:E={},splitRight:O={}}=s,{align:C,bg:Y,color:U,padding:Q={},margin:P={},border:R={},borderRadius:H={}}=m,{heading:Z,text:W,meta:F}=g,{background:B={},padding:X={},border:_={},borderRadius:G={},shadow:q}=y,{normal:V={},hover:J={},padding:K={},margin:tt={},borderRadius:et={},transition:nt=.2}=M,{heading:it={},excerpt:ot={},cta:rt={},badge:at={},meta:st={}}=h,lt=`#${e} .b-blocks-article-card`,ct=`${lt} .b-blocks-article-card-card`,dt=`${lt} .b-blocks-article-card-media`,ut=`${lt} .b-blocks-article-card-img`,$t=`${lt} .b-blocks-article-card-media-placeholder`,pt=`${lt} .b-blocks-article-card-body`,mt=`${lt} .b-blocks-article-card-badge`,bt=`${lt} .b-blocks-article-card-heading`,gt=`${lt} .b-blocks-article-card-excerpt`,yt=`${lt} .b-blocks-article-card-meta`,Mt=`${lt} .b-blocks-article-card-meta-icon`,ht=`${lt} .b-blocks-article-card-cta`,xt=`${lt} .b-blocks-article-card-link`,ft=`#${e} .b-blocks-article-card--cta-button .b-blocks-article-card-cta`,wt=`#${e} .b-blocks-article-card--cta-link .b-blocks-article-card-cta`,jt=(t,e,n)=>l(t,p(e?.[n])),kt=t=>`\n\t\t${pt}{ ${jt("padding",X,t)} }\n\t\t${ct}{ ${jt("border-radius",G,t)} }\n\t\t${mt}{ ${jt("padding",Q,t)} ${jt("margin",P,t)} ${jt("border-radius",H,t)} }\n\t\t${bt}{ ${jt("padding",x.padding,t)} ${jt("margin",x.margin,t)} ${jt("border-radius",x.borderRadius,t)} }\n\t\t${gt}{ ${jt("padding",f.padding,t)} ${jt("margin",f.margin,t)} ${jt("border-radius",f.borderRadius,t)} }\n\t\t${yt}{ ${jt("padding",b.padding,t)} ${jt("margin",b.margin,t)} ${jt("border-radius",b.borderRadius,t)} }\n\t\t${ft}{ ${jt("padding",K,t)} ${jt("margin",tt,t)} ${jt("border-radius",et,t)} }\n\t`,Nt=t=>{const e=N(T,t)||"cover",n=N(S,t)||"center";return`\n\t\t\t${ut}{ ${l("object-fit",e)} ${l("object-position",n)} ${(t=>{if(!t)return"";const e=[];return t.blur&&e.push(`blur(${t.blur}px)`),null!=t.brightness&&100!==t.brightness&&e.push(`brightness(${t.brightness}%)`),null!=t.contrast&&100!==t.contrast&&e.push(`contrast(${t.contrast}%)`),null!=t.saturate&&100!==t.saturate&&e.push(`saturate(${t.saturate}%)`),t.grayscale&&e.push(`grayscale(${t.grayscale}%)`),e.length?`filter:${e.join(" ")};`:""})(I?.[t])} }\n\t\t`},Lt=t=>{const e="horizontal"===(N(w,t)||"horizontal"),n=N(z,t)||(e?"left":"top"),i=N(A,t),o=parseInt(i,10)||40,r="custom"===i?N(E,t)||"40%":`${o}%`,a="custom"===i?N(O,t)||"60%":100-o+"%",s=e?"right"===n?"row-reverse":"row":"bottom"===n?"column-reverse":"column",l=N(D,t)||"left";let c="";return c="center"===l?`\n\t\t\t\t${lt}{ display: flex; justify-content: center; }\n\t\t\t\t${pt}{ align-items: center; text-align: center; }\n\t\t\t\t${ht}{ align-self: center !important; }\n\t\t\t`:"right"===l?`\n\t\t\t\t${lt}{ display: flex; justify-content: flex-end; }\n\t\t\t\t${pt}{ align-items: flex-end; text-align: right; }\n\t\t\t\t${ht}{ align-self: flex-end !important; }\n\t\t\t`:`\n\t\t\t\t${lt}{ display: block; }\n\t\t\t\t${pt}{ align-items: flex-start; text-align: left; }\n\t\t\t\t${ht}{ align-self: flex-start; }\n\t\t\t`,`\n\t\t\t${ct}, ${xt}{ flex-direction:${s}; }\n\t\t\t${e?`\n\t\t\t\t${dt}{ flex:0 0 ${r}; max-width:${r}; width:${r}; align-self:stretch; position:relative; }\n\t\t\t\t${ut}{ width:100%; height:100%; aspect-ratio:auto; }\n\t\t\t\t${$t}{ width:100%; height:100%; min-height:180px; }\n\t\t\t\t${pt}{ flex:1 1 ${a}; max-width:${a}; width:${a}; justify-content:center; }\n\t\t\t`:`\n\t\t\t\t${dt}{ flex:0 0 auto; width:100%; max-width:100%; align-self:auto; }\n\t\t\t\t${ut}{ width:100%; height:auto; }\n\t\t\t\t${$t}{ width:100%; min-height:180px; }\n\t\t\t\t${pt}{ flex:1 1 auto; width:100%; max-width:100%; justify-content:normal; }\n\t\t\t`}\n\t\t\t${c}\n\t\t`};return(0,k.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${$("",it).googleFontLink}\n\t\t\t${$("",ot).googleFontLink}\n\t\t\t${$("",rt).googleFontLink}\n\t\t\t${$("",at).googleFontLink}\n\t\t\t${$("",st).googleFontLink}\n\t\t\t${ct}{\n\t\t\t\t${l("box-shadow",u(q))}\n\t\t\t\t${c(B)}\n\t\t\t\t${d(_)}\n\t\t\t}\n\t\t\t${mt}{\n\t\t\t\talign-self:${L[C]||"flex-start"} !important;\n\t\t\t\t${c(Y)}\n\t\t\t\tcolor:${U||"#ffffff"};\n\t\t\t\t${d(R)}\n\t\t\t}\n\t\t\t${bt}{\n\t\t\t\tcolor:${Z||"#111827"};\n\t\t\t\t${c(x.background)}\n\t\t\t\t${d(x.border)}\n\t\t\t}\n\t\t\t${gt}{\n\t\t\t\tcolor:${W||"#374151"};\n\t\t\t\t${c(f.background)}\n\t\t\t\t${d(f.border)}\n\t\t\t}\n\t\t\t${yt}{\n\t\t\t\tcolor:${b.color||F||"#6b7280"};\n\t\t\t\t${c(b.bg)}\n\t\t\t\t${d(b.border)}\n\t\t\t}\n\t\t\t${Mt}{\n\t\t\t\tcolor:${b.iconColor||b.color||F||"#6b7280"};\n\t\t\t}\n\t\t\t${Mt} svg{\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t\t${$(bt,it).styles}\n\t\t\t${$(gt,ot).styles}\n\t\t\t${$(ht,rt).styles}\n\t\t\t${$(mt,at).styles}\n\t\t\t${$(yt,st).styles}\n\t\t\t${ft}{\n\t\t\t\t${d(V.border)}\n\t\t\t\t${c(V.bg)}\n\t\t\t\t${l("box-shadow",u(V.shadow))}\n\t\t\t\tcolor:${V.color||"#ffffff"};\n\t\t\t\ttransition:all ${nt}s ease;\n\t\t\t}\n\t\t\t${ft}:hover, ${ft}:focus-visible{\n\t\t\t\t${c(J.bg)}\n\t\t\t\t${d(J.border)}\n\t\t\t\t${l("box-shadow",u(J.shadow))}\n\t\t\t\tcolor:${J.color||"#ffffff"};\n\t\t\t}\n\t\t\t${wt}{ color:${V.bg?.color||"#2563eb"}; }\n\t\t\t${ht}:focus-visible, ${xt}:focus-visible{\n\t\t\t\toutline:2px solid ${V.bg?.color||"#2563eb"};\n\t\t\t\toutline-offset:2px;\n\t\t\t}\n\t\t\t${kt("desktop")}\n\t\t\t${Nt("desktop")}\n\t\t\t${Lt("desktop")}\n\t\t\t${o}{\n\t\t\t\t${kt("tablet")}\n\t\t\t\t${Nt("tablet")}\n\t\t\t\t${Lt("tablet")}\n\t\t\t}\n\t\t\t${r}{\n\t\t\t\t${kt("mobile")}\n\t\t\t\t${Nt("mobile")}\n\t\t\t\t${Lt("mobile")}\n\t\t\t}\n\t\t\t${j(e,i,n,!1)}\n\t\t\t`}})},D=window.wp.i18n,z=()=>(0,k.jsx)("span",{className:"screen-reader-text",children:(0,D.__)("(opens in a new tab)","b-blocks")}),T=()=>(0,k.jsx)("svg",{className:"b-blocks-article-card-cta-arrow",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,k.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),S=({attributes:t})=>{const{image:e={},content:n={},link:i={}}=t,{url:o={},alt:r=""}=e,{badge:a,heading:s,headingTag:l,excerpt:c,meta:d,metaIcon:u}=n,{url:$,target:p,ctaLabel:m,ctaStyle:b,cardLinkMode:g}=i,y=l||"h3",M=(s||"").replace(/<[^>]*>/g,"").trim(),h=(x=o,x?.desktop||x?.tablet||x?.mobile||"");var x;const f=r||M,w=!!g&&!!$,j=!w&&!!m,N=["b-blocks-article-card",`b-blocks-article-card--cta-${b}`].filter(Boolean).join(" "),L=h?(0,
5 +k.jsx)("div",{className:"b-blocks-article-card-media",children:(0,k.jsxs)("picture",{className:"b-blocks-article-card-picture",children:[o.mobile?(0,k.jsx)("source",{media:"(max-width: 640px)",srcSet:o.mobile}):null,o.tablet?(0,k.jsx)("source",{media:"(max-width: 1024px)",srcSet:o.tablet}):null,(0,k.jsx)("img",{className:"b-blocks-article-card-img",src:h,alt:f,loading:"lazy",decoding:"async"})]})}):null,v=(0,k.jsxs)("div",{className:"b-blocks-article-card-body",children:[a?(0,k.jsx)("span",{className:"b-blocks-article-card-badge",children:a}):null,s?(0,k.jsx)(y,{className:"b-blocks-article-card-heading",dangerouslySetInnerHTML:{__html:s}}):null,c?(0,k.jsx)("p",{className:"b-blocks-article-card-excerpt",dangerouslySetInnerHTML:{__html:c}}):null,d?(0,k.jsxs)("span",{className:"b-blocks-article-card-meta",children:[u?(0,k.jsx)("span",{className:"b-blocks-article-card-meta-icon","aria-hidden":"true",dangerouslySetInnerHTML:{__html:u}}):null,(0,k.jsx)("span",{className:"b-blocks-article-card-meta-text",children:d})]}):null,j?$?(0,k.jsxs)("a",{className:"b-blocks-article-card-cta",href:$,...p?{target:"_blank",rel:"noopener noreferrer"}:{},children:[(0,k.jsx)("span",{className:"b-blocks-article-card-cta-label",children:m}),"link"===b?(0,k.jsx)(T,{}):null,p?(0,k.jsx)(z,{}):null]}):(0,k.jsxs)("span",{className:"b-blocks-article-card-cta",children:[(0,k.jsx)("span",{className:"b-blocks-article-card-cta-label",children:m}),"link"===b?(0,k.jsx)(T,{}):null]}):null]});return(0,k.jsx)("div",{className:N,children:(0,k.jsx)("article",{className:"b-blocks-article-card-card",children:w?(0,k.jsxs)("a",{className:"b-blocks-article-card-link",href:$,"aria-label":M||(0,D.__)("Read article","b-blocks"),...p?{target:"_blank",rel:"noopener noreferrer"}:{},children:[L,v,p?(0,k.jsx)(z,{}):null]}):(0,k.jsxs)(k.Fragment,{children:[L,v]})})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-article-card").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(v,{attributes:n,id:e.id}),(0,k.jsx)(S,{attributes:n})]})),e?.removeAttribute("data-attributes")}))}))})();