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/stat-cards/view.js +4 -1 2.1.7 → 2.1.8 View file →
@@ -1 +1,4 @@
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}},o="@media only screen and (min-width: 1025px)",a="@media only screen and (max-width: 1024px)",i="@media only screen and (max-width: 640px)",r="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,o=!0)=>{const{type:a="solid",color:i="",gradient:c=r,image:d={},position:$="center center",attachment:p="",repeat:u="no-repeat",size:m="",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",$)}\n\t\t\t\t${l("background-size",m)}\n\t\t\t\t${l("background-repeat",u)}\n\t\t\t\t${l("background-attachment",p)}\n\t\t\t\t${l("background-repeat",u)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&l("background",i)},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():l("border",e(t))},$=(t,e="box")=>{let n="";return t?.map(((o,a)=>{const{hOffset:i="0px",vOffset:r="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=o||{},$=d?"inset":"",p=`${i} ${r} ${s}`,u=a+1>=t.length?"":", ";n+="text"===e?`${p} ${c}${u}`:`${p} ${l} ${c} ${$}${u}`})),n||""},p=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:r="sans-serif",fontVariant:s=400,fontWeight:c,isUploadFont:d=!0,fontSize:$={desktop:null,tablet:null,mobile:null},fontStyle:p,textTransform:u,textDecoration:m,lineHeight:M,letterSpace:b}=e||{},y=!n||!o||"Default"===o,g=$?.desktop||$,x=$?.tablet||g,j=$?.mobile||x,N=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},f=`\n\t\t${y?"":`font-family: '${o}', ${r};`}\n\t\t${l("font-weight",c)}\n\t\t${l("font-size",N(g))}\n\t\t${l("font-style",p)}\n\t\t${l("text-transform",u)}\n\t\t${l("text-decoration",m)}\n\t\t${l("line-height",M)}\n\t\t${l("letter-spacing",b)}\n\t`,h=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=${o?.split(" ").join("+")}${h.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||y?"":`@import url(${k});`,styles:`${t}{\n\t\t\t${f}\n\t\t}\n\t\t${a} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",N(x))}\n\t\t\t}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",N(j))}\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""},m=t=>{const{position:n="center center",xPosition:o=0,yPosition:a=0,attachment:i="",repeat:r="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${i&&c(i)?`background-attachment: ${i};`:""}\n\t\t${c(r)?`background-repeat: ${r};`:""}\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)}; ${m(t?.desktop)}`:"",tablet:e(t.url)?m(t?.tablet):"",mobile:e(t.url)?m(t?.mobile):""}:"",b=(t,o,r=!1)=>{const{type:s="color",color:c,gradient:d,img:$,video:p}=t||{},u="color"===s?l("background",c):"gradient"===s?(t=>{const{type:n="linear",radialType:o="ellipse",colors:a=[],centerPositions:i={x:0,y:0},angel:r=0}=t||{};if(e(t)){const t=a?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${r}deg, ${t})`;return l("background","radial"===n?`radial-gradient(${o} at ${i?.x}% ${i?.y}%,${t})`:e)}return""})(d):"image"===s?M($).desktop:"",m="image"===s?M($).tablet:"",b="image"===s?M($).mobile:"",y=r?`${o}:hover`:o;return`\n\t\t${"video"===s?((t,e)=>{const{url:o,loop:a}=t||{},i=document.querySelector(e),r=i?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!r&&i&&o){const t=n(o);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),i.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}`})(p,o):""}\n\n\t\t${u?`${y}{\n\t\t\t${u}\n\t\t}`:""}\n\n\t\t${m?`${a} {\n\t\t\t${y}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${b?`${i} {\n\t\t\t${y}{\n\t\t\t\t${b}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},y=(t,n,o=!1)=>{const{isEnabled:a,colors:i,opacity:r=1,blend:s,filter:c="",blur:d=0,brightness:$=100,contrast:p=100,saturation:u=100,hue:m=0,position:M={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},g=`${100!==$?`brightness(${$}%)`:""} ${100!==p?`contrast(${p}%)`:""} ${100!==u?`saturate(${u}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,x=`${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${b(i,j,!1)}\n\t\t${j}{\n\t\t\t${l("opacity",r)}\n\t\t\t${l("mix-blend-mode",s)}\n\t\t\t${x}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},g=(t,n,o=!1)=>{const r=(t,n="desktop")=>{if(!e(t))return"";const{skew:o,scale:a,rotate:i,offset:r,flipX:s,flipY:c}=t,{threeDRotate:d}=i||{},{isProportion:$}=a||{},p=[];return e(o)&&(e(o?.[n]?.x)&&p.push(`skewX(${o[n].x}deg)`),e(o?.[n]?.y)&&p.push(`skewY(${o[n].y}deg)`)),$?e(a?.[n]?.scale)&&p.push(`scale(${a[n].scale})`):(e(a?.[n]?.x)&&p.push(`scaleX(${a[n].x})`),e(a?.[n]?.y)&&p.push(`scaleY(${a[n].y})`)),e(i)&&(e(i?.[n]?.z)&&p.push(`rotateZ(${i[n].z}deg)`),d&&(e(i?.[n]?.x)&&p.push(`rotateX(${i[n].x}deg)`),e(i?.[n]?.y)&&p.push(`rotateY(${i[n].y}deg)`))),e(r)&&(e(r?.[n]?.x)&&p.push(`translateX(${r[n].x})`),e(r?.[n]?.y)&&p.push(`translateY(${r[n].y})`)),e(s)&&p.push(s?"scaleX(-1)":""),e(c)&&p.push(c?"scaleY(-1)":""),0===p.length?"":l("transform",p.join(" "))},s=o?`${n}:hover`:n;return`\n\t\t${s} {\n\t\t\t${r(t,"desktop")}\n\t\t}\n\t\t${a}{\n\t\t\t${s} {\n\t\t\t\t${r(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${i}{\n\t\t\t${s} {\n\t\t\t\t${r(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},x=t=>{const{padding:e,margin:n,height:o,width:a}=t||{},i=(t,e)=>l(t,e),r=(t,e,n)=>i(t,e?.[t]?.[n])+i(`min-${t}`,e?.min?.[n])+i(`max-${t}`,e?.max?.[n]),s=t=>l("padding",u(t)),c=t=>l("margin",u(t));return{desktop:s(e?.desktop)+c(n?.desktop)+r("height",o,"desktop")+r("width",a,"desktop"),tablet:s(e?.tablet)+c(n?.tablet)+r("height",o,"tablet")+r("width",a,"tablet"),mobile:s(e?.mobile)+c(n?.mobile)+r("height",o,"mobile")+r("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",u(n)),i=l("box-shadow",$(o,"box"));return d(e)+a+i};return{normal:o(e),hover:o(n)}},N=t=>{const{zIndex:n,overflow:o}=t||{},a=o?`overflow: ${o};`:"",i=t=>`${l("z-index",n?.[t])} ${l("position",e(n?.[t])?"relative":"")}`;return{desktop:i("desktop")+a,tablet:i("tablet"),mobile:i("mobile")}},f=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:a=!1}=t||{},i=e?"opacity: 0.5;":"display: none;",r=t=>t?i:"";return{desktop:r(n),tablet:r(o),mobile:r(a)}},h=(t,n,r=!1,c=!0)=>{const{dimension:d,transform:$,background:p,borderShadow:u,mask:m,animation:M,visibility:h,responsive:k,position:w={},floating:L={},motion:D={},css:z=""}=n||{},v=r?`#${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,r);const T=x(d).desktop+N(h).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:a=.4}=e||{},{transition:i=200}=n||{};return`transition: background ${o}s, border ${a}s, border-radius ${a}s, box-shadow ${a}s, transform ${i}ms ease-in-out;`})(p,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:i="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?s(n.url):`url(${(r=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2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.type===r))).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: ${i};`:""}`:"";var r})(m),I=x(d).tablet+N(h).tablet+f(k,r).tablet,S=x(d).mobile+N(h).mobile+f(k,r).mobile,O=j(u).normal,A=j(u).hover,E=f(k,r).desktop;return`\n\t\t${T||O?`${v} {\n\t\t\t${T}\n\t\t\t${O}\n\t\t}`:""}\n\t\t${A?`${v}:hover {\n\t\t\t${A}\n\t\t}`:""}\n\n\t\t${E?`${o} {\n\t\t\t${v}{\n\t\t\t\t${E}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${a} {\n\t\t\t${v}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${i} {\n\t\t\t${v}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${b(p?.normal,v)}\n\t\t${b(p?.hover,v,!0)}\n\t\t${y(p?.overlay,v)}\n\t\t${y(p?.hoverOverlay,v,!0)}\n\t\t${e($?.normal)?g($?.normal,v):""}\n\t\t${e($?.hover)?g($?.hover,v,!0):""}\n\t\t${((t,e)=>{const{desktop:n={},tablet:o={},mobile:r={}}=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${i}{\n\t\t\t${r?.type?s(r):""}\n\t\t}\n\t`})(w,v)}\n\t\t${((t,n,o="")=>{const{translate:a={},rotate:i={},scale:r={},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:i,value:t=>["x","y","z"].filter((n=>e(i?.[n]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${i[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:r,value:t=>{const n=r?.y?.[t],o=r?.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 i=a("from"),r=a("to");if(!i||!r)return;const s=Number(n?.duration)>0?Number(n.duration):1e3,d=Number(n?.delay)>0?Number(n.delay):0,$=`advFloat${t}${o?`-${o}`:""}`;l.push(`@keyframes ${$}{ from{ ${e}: ${i}; } to{ ${e}: ${r}; } }`),c.push(`${$} ${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,v,t)}\n\t\t${((t,n,r)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:d={},blur:$={},rotate:p={},scale:u={},effectsRelativeTo:m="viewport",effectOn:M=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:b=!1,mouseTrack:y={},tilt:g={},sticky:x={}}=t||{},j=(t,n)=>e(t)&&!isNaN(t)?Number(t):n,N="viewport"===m,f=N?"view()":"scroll(nearest block)",h=[],k=[],w=[],L=[],D=String(r??"").replace(/[^a-zA-Z0-9]/g,""),z=(t,e,n)=>{h.push(`@keyframes advMe${t}${D}{ ${e} }`),k.push(`advMe${t}${D}`),w.push(f),L.push((t=>{const e=j(t?.top,0),n=j(t?.bottom,100),o=Math.min(e,n),a=Math.max(e,n);return N?`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,i="to-left"===e?-o:o,r=[n&&l,o&&c].filter(Boolean);z("Translate",`from{ translate: 0px 0px; } to{ translate: ${i}px ${a}px; }`,{top:Math.min(...r.map((t=>j(t?.top,0)))),bottom:Math.max(...r.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&&z("Opacity",e,d)}const i=$?.direction;if(i){const t=3*j($?.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); }`}[i];e&&z("Blur",e,$)}const r=p?.direction;if(r){const t=20*j(p?.level,4);z("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===r?-t:t}deg; }`,p)}if(u?.direction){const t=.15*j(u?.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; }`}[u.direction];o&&z("Scale",o,u)}}const v=[];if(b){if(y?.direction){const t="direct"===y?.direction?100:-100;v.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);v.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,i=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),r=i.items.get(n)||{x:0,y:0};if(r.rate=e,r.build=o,i.items.set(n,r),i.bound)return;i.bound=!0;const s=e=>{const n=i.last?Math.min(e-i.last,100):16.7;i.last=e;let o=!1;i.items.forEach(((e,a)=>{const r=e.el&&e.el.isConnected?e.el:t.querySelector(a);if(!r)return;e.el=r;const s=e.rate*n/1e3,l=i.x-e.x,c=i.y-e.y,d=Math.sqrt(l*l+c*c);d<=s?(e.x=i.x,e.y=i.y):(e.x+=l/d*s,e.y+=c/d*s,o=!0),r.style.transform=e.build(e.x,e.y)})),i.frame=o?a.requestAnimationFrame(s):0,i.last=o?e:0};t.addEventListener("pointermove",(t=>{i.x=2*(t.clientX/a.innerWidth-.5),i.y=2*(t.clientY/a.innerHeight-.5),i.frame||(i.frame=a.requestAnimationFrame(s))}))};if(v.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*j(y?.speed,j(g?.speed,4))),e=(t,e)=>v.map((n=>n(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>x?.[t]||("desktop"===t?x?.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;":""},A=Array.isArray(M)?M:e(M)?[M]:[],E=t=>!A.length||A.includes(t)?"":`${n}{ animation-name: none; }`;return`\n\t\t${k.length?`\n\t\t${h.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((()=>N?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${w.join(", ")};\n\t\t\t\tanimation-range: ${L.join(", ")};\n\t\t\t}\n\t\t\t${E("desktop")?`${o}{ ${E("desktop")} }`:""}\n\t\t\t${E("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${E("tablet-portrait")} }`:""}\n\t\t\t${E("mobile-portrait")?`${i}{ ${E("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${v.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")?`${i}{ ${S}{ ${O("mobile")} } }`:""}\n\t`})(D,v,t)}\n\t\t${z}\n\t`.replace(/\s+/g," ")},k=window.ReactJSXRuntime,w=(t,e)=>Number.isFinite(parseInt(t,10))?parseInt(t,10):e,L=(t={})=>`\n\t${c(t.bg)}\n\t${d(t.border)}\n\t${l("border-radius",u(t.borderRadius))}\n\t${l("padding",u(t.padding))}\n\t${l("margin",u(t.margin))}\n`,D=({attributes:t,id:e,isBackend:n=!1})=>{const{layout:o={},card:r={},number:s={},label:m={},description:M={},icon:b={},advanced:y}=t,g=o.columns||{},x=o.columnGap||{},j=o.rowGap||{},N=["left","center","right"].includes(o.align)?o.align:"center",f="left"===N?"flex-start":"right"===N?"flex-end":"center",D=r.style||"flat",z="outlined"===D||"accent-top"===D,v=r.padding||{},T=r.borderRadius||{},I=r.margin||{},S=s.typography||{},O=S.fontSize?.tablet,A=S.fontSize?.mobile,E=`#${e} .bBlocks-stat-cards-wrapper`,Y=`${E} .bBlocks-stat-cards-grid`,C=`${E} .bBlocks-stat-cards-item`,Q=`${E} .bBlocks-stat-cards-icon`,U=`${E} .bBlocks-stat-cards-number`,B=`${E} .bBlocks-stat-cards-label`,P=`${E} .bBlocks-stat-cards-desc`;return(0,k.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${p("",S).googleFontLink}\n\t\t\t${p("",m.typography).googleFontLink}\n\t\t\t${p("",M.typography).googleFontLink}\n\t\t\t${Y}{\n\t\t\t\tgrid-template-columns: repeat(${w(g.desktop,3)}, minmax(0, 1fr));\n\t\t\t\tcolumn-gap: ${x.desktop||"24px"};\n\t\t\t\trow-gap: ${j.desktop||"24px"};\n\t\t\t}\n\t\t\t${C}{\n\t\t\t\talign-items: ${f};\n\t\t\t\ttext-align: ${N};\n\t\t\t\t${l("padding",u(v.desktop))}\n\t\t\t\t${l("margin",u(I.desktop))}\n\t\t\t\t${l("border-radius",u(T.desktop))}\n\t\t\t\t${c(r.bg)}\n\t\t\t\t${l("box-shadow",$(r.shadow))}\n\t\t\t\t${z?d(r.border):""}\n\t\t\t\t${"accent-top"===D?`border-top: ${w(r.accentWidth,4)}px solid ${r.accentColor};`:""}\n\t\t\t}\n\t\t\t${Q}{\n\t\t\t\t${l("color",b.color)}\n\t\t\t\tfont-size: ${b.size};\n\t\t\t\t${L(b)}\n\t\t\t}\n\t\t\t${p(U,S).styles}\n\t\t\t${U}{\n\t\t\t\t${l("color",s.color)}\n\t\t\t\tjustify-content: ${f};\n\t\t\t\t${L(s)}\n\t\t\t}\n\t\t\t${p(B,m.typography).styles}\n\t\t\t${B}{\n\t\t\t\t${l("color",m.color)}\n\t\t\t\t${L(m)}\n\t\t\t}\n\t\t\t${p(P,M.typography).styles}\n\t\t\t${P}{\n\t\t\t\t${l("color",M.color)}\n\t\t\t\t${L(M)}\n\t\t\t}\n\t\t\t${a}{\n\t\t\t\t${Y}{\n\t\t\t\t\tgrid-template-columns: repeat(${w(g.tablet,2)}, minmax(0, 1fr));\n\t\t\t\t\tcolumn-gap: ${x.tablet||x.desktop||"24px"};\n\t\t\t\t\trow-gap: ${j.tablet||j.desktop||"24px"};\n\t\t\t\t}\n\t\t\t\t${C}{\n\t\t\t\t\t${l("padding",u(v.tablet))}\n\t\t\t\t\t${l("margin",u(I.tablet))}\n\t\t\t\t\t${l("border-radius",u(T.tablet))}\n\t\t\t\t}\n\t\t\t\t${O?`${U}{ font-size: ${O}; }`:""}\n\t\t\t}\n\t\t\t${i}{\n\t\t\t\t${Y}{\n\t\t\t\t\tgrid-template-columns: repeat(${w(g.mobile,1)}, minmax(0, 1fr));\n\t\t\t\t\tcolumn-gap: ${x.mobile||x.tablet||x.desktop||"24px"};\n\t\t\t\t\trow-gap: ${j.mobile||j.tablet||j.desktop||"24px"};\n\t\t\t\t}\n\t\t\t\t${C}{\n\t\t\t\t\t${l("padding",u(v.mobile))}\n\t\t\t\t\t${l("margin",u(I.mobile))}\n\t\t\t\t\t${l("border-radius",u(T.mobile))}\n\t\t\t\t}\n\t\t\t\t${A?`${U}{ font-size: ${A}; }`:""}\n\t\t\t}\n\t\t\t${h(e,y,n,!1)}\n\t\t\t`}})},z=window.wp.i18n,v=({direction:t})=>{let e="M18 15l-6-6-6 6";return"down"===t?e="M6 9l6 6 6-6":"neutral"===t&&(e="M5 12h14"),(0,k.jsx)("svg",{className:"bBlocks-stat-cards-trend-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,k.jsx)("path",{d:e,fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})},T=["left","center","right"],I=["flat","outlined","accent-top"],S=({attributes:t})=>{const{layout:e={},card:n={},icon:o={},description:a={},trend:i={},items:r=[]}=t,s=T.includes(e.align)?e.align:"center",l=I.includes(n.style)?n.style:"flat",c=n.orientation||"vertical",d=!1!==o.show,$=!1!==a.show,p=!1!==i.show,u=(Array.isArray(r)?r:[]).filter((t=>{const e=t||{};return e.number||e.label||e.prefix||e.suffix||""})),m=["bBlocks-stat-cards-wrapper",`bBlocks-stat-cards-style-${l}`,`bBlocks-stat-cards-align-${s}`].join(" ");return 0===u.length?(0,k.jsx)("div",{className:m,children:(0,k.jsx)("p",{className:"bBlocks-stat-cards-empty",children:(0,z.__)("Add stat cards from the block settings.","b-blocks")})}):(0,k.jsx)("div",{className:m,children:(0,k.jsx)("dl",{className:"bBlocks-stat-cards-grid","aria-label":(0,z.__)("Key statistics","b-blocks"),children:u.map(((t,e)=>{const n=t||{},o=`${n.prefix||""}${n.number||""}${n.suffix||""}`,a=p&&n.trendValue,i=n.trendDirection||"up",r=n.trendColor?{backgroundColor:n.trendColor,color:"#ffffff"}:void 0,s=n.label?(0,z.sprintf)((0,z.__)("%1$s: %2$s","b-blocks"),n.label,o):o,l=(0,k.jsxs)(k.Fragment,{children:[n.prefix&&(0,k.jsx)("span",{className:"bBlocks-stat-cards-prefix",children:n.prefix}),(0,k.jsx)("span",{className:"bBlocks-stat-cards-value",children:n.number}),n.suffix&&(0,k.jsx)("span",{className:"bBlocks-stat-cards-suffix",children:n.suffix})]}),u=n.orientation||c;return(0,k.jsxs)("div",{className:`bBlocks-stat-cards-item bBlocks-stat-cards-item-${u}`,children:[d&&n.icon&&(0,k.jsx)("span",{className:"bBlocks-stat-cards-icon","aria-hidden":"true",dangerouslySetInnerHTML:{__html:n.icon}}),n.linkUrl?(0,k.jsxs)("a",{className:"bBlocks-stat-cards-link",href:n.linkUrl,"aria-label":s,...n.linkTarget?{target:"_blank",rel:"noopener noreferrer"}:{},children:[""!==o&&(0,k.jsx)("span",{className:"bBlocks-stat-cards-number",children:l}),n.label&&(0,k.jsx)("span",{className:"bBlocks-stat-cards-label",children:n.label})]}):(0,k.jsxs)(k.Fragment,{children:[""!==o&&(0,k.jsx)("dd",{className:"bBlocks-stat-cards-number",children:l}),n.label&&(0,k.jsx)("dt",{className:"bBlocks-stat-cards-label",children:n.label})]}),a&&(0,k.jsxs)("span",{className:`bBlocks-stat-cards-trend bBlocks-stat-cards-trend-${i}`,style:r,"aria-label":(0,z.sprintf)((0,z.__)("Trend: %1$s %2$s","b-blocks"),i,n.trendValue),children:[(0,k.jsx)(v,{direction:i}),(0,k.jsx)("span",{className:"bBlocks-stat-cards-trend-text",children:n.trendValue})]}),$&&n.description&&(0,k.jsx)("p",{className:"bBlocks-stat-cards-desc",children:n.description})]},n._key||e)}))})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-stat-cards").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(D,{attributes:n,id:e.id}),(0,k.jsx)(S,{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,o=n.toLowerCase(),i=e.value;if(this.options.removeEvents&&o.startsWith("on"))return void t.removeAttribute(n);if(this.options.removeExternalResources&&("href"===o||o.endsWith(":href"))&&!this.isAllowedUrl(i))return void t.removeAttribute(n);const s=o.replace("xlink:","");this.allowedAttributeSet.has(o)||this.allowedAttributeSet.has(s)?this.options.removeExternalResources&&this.hasExternalUrl(i)?t.removeAttribute(n):"style"===o&&this.options.sanitizeStyle&&t.setAttribute(n,this.sanitizeCss(i)):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 o="@media only screen and (min-width: 1025px)",i="@media only screen and (max-width: 1024px)",s="@media only screen and (max-width: 640px)",r="linear-gradient(135deg, #0040E3, #18D4FD)";window.React;const a=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:i="solid",color:s="",gradient:c=r,image:d={},position:p="center center",attachment:u="",repeat:$="no-repeat",size:m="",overlayColor:b=""}=t||{};return"gradient"===i&&n?l("background",c):"image"===i&&o?`background: ${a(d?.url)};\n\t\t\t\t${l("background-color",b)}\n\t\t\t\t${l("background-position",p)}\n\t\t\t\t${l("background-size",m)}\n\t\t\t\t${l("background-repeat",$)}\n\t\t\t\t${l("background-attachment",u)}\n\t\t\t\t${l("background-repeat",$)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&l("background",s)},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():l("border",e(t))},p=(t,e="box")=>{let n="";return t?.map(((o,i)=>{const{hOffset:s="0px",vOffset:r="0px",blur:a="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=o||{},p=d?"inset":"",u=`${s} ${r} ${a}`,$=i+1>=t.length?"":", ";n+="text"===e?`${u} ${c}${$}`:`${u} ${l} ${c} ${p}${$}`})),n||""},u=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:r="sans-serif",fontVariant:a=400,fontWeight:c,isUploadFont:d=!0,fontSize:p={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:$,textDecoration:m,lineHeight:b,letterSpace:y}=e||{},M=!n||!o||"Default"===o,g=p?.desktop||p,h=p?.tablet||g,x=p?.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${M?"":`font-family: '${o}', ${r};`}\n\t\t${l("font-weight",c)}\n\t\t${l("font-size",f(g))}\n\t\t${l("font-style",u)}\n\t\t${l("text-transform",$)}\n\t\t${l("text-decoration",m)}\n\t\t${l("line-height",b)}\n\t\t${l("letter-spacing",y)}\n\t`,j=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",N=M?"":`https://fonts.googleapis.com/css2?family=${o?.split(" ").join("+")}${j.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||M?"":`@import url(${N});`,styles:`${t}{\n\t\t\t${w}\n\t\t}\n\t\t${i} {\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${s} {\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()}},$=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:i=0,attachment:s="",repeat:r="no-repeat",size:a="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(n)?`background-position: ${"custom"===n?`${o} ${i}`:n};`:""}\n\t\t${s&&c(s)?`background-attachment: ${s};`:""}\n\t\t${c(r)?`background-repeat: ${r};`:""}\n\t\t${c(a)?`background-size: ${"custom"===a?`${l} auto`:a};`:""}\n\t`},b=(t={})=>t?{desktop:e(t.url)?`background-image: ${a(t.url)}; ${m(t?.desktop)}`:"",tablet:e(t.url)?m(t?.tablet):"",mobile:e(t.url)?m(t?.mobile):""}:"",y=(t,o,r=!1)=>{const{type:a="color",color:c,gradient:d,img:p,video:u}=t||{},$="color"===a?l("background",c):"gradient"===a?(t=>{const{type:n="linear",radialType:o="ellipse",colors:i=[],centerPositions:s={x:0,y:0},angel:r=0}=t||{};if(e(t)){const t=i?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${r}deg, ${t})`;return l("background","radial"===n?`radial-gradient(${o} at ${s?.x}% ${s?.y}%,${t})`:e)}return""
2 +})(d):"image"===a?b(p).desktop:"",m="image"===a?b(p).tablet:"",y="image"===a?b(p).mobile:"",M=r?`${o}:hover`:o;return`\n\t\t${"video"===a?((t,e)=>{const{url:o,loop:i}=t||{},s=document.querySelector(e),r=s?.querySelector(".bPlVideo"),a=document.createElement("video");if(a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),!r&&s&&o){const t=n(o);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),s.appendChild(a)}}return a.loop=i,a.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${$?`${M}{\n\t\t\t${$}\n\t\t}`:""}\n\n\t\t${m?`${i} {\n\t\t\t${M}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y?`${s} {\n\t\t\t${M}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},M=(t,n,o=!1)=>{const{isEnabled:i,colors:s,opacity:r=1,blend:a,filter:c="",blur:d=0,brightness:p=100,contrast:u=100,saturation:$=100,hue:m=0,position:b={top:0,right:0,bottom:0,left:0},zIndex:M=-1}=t||{},g=`${100!==p?`brightness(${p}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==$?`saturate(${$}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,h=`${c}: ${c?g:""}; -webkit-${c}: ${c?g:""};`,x=o?`${n}:hover::after`:`${n}::after`;return i?`\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:${M};\n\t\t}\n\t\t${y(s,x,!1)}\n\t\t${x}{\n\t\t\t${l("opacity",r)}\n\t\t\t${l("mix-blend-mode",a)}\n\t\t\t${h}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},g=(t,n,o=!1)=>{const r=(t,n="desktop")=>{if(!e(t))return"";const{skew:o,scale:i,rotate:s,offset:r,flipX:a,flipY:c}=t,{threeDRotate:d}=s||{},{isProportion:p}=i||{},u=[];return e(o)&&(e(o?.[n]?.x)&&u.push(`skewX(${o[n].x}deg)`),e(o?.[n]?.y)&&u.push(`skewY(${o[n].y}deg)`)),p?e(i?.[n]?.scale)&&u.push(`scale(${i[n].scale})`):(e(i?.[n]?.x)&&u.push(`scaleX(${i[n].x})`),e(i?.[n]?.y)&&u.push(`scaleY(${i[n].y})`)),e(s)&&(e(s?.[n]?.z)&&u.push(`rotateZ(${s[n].z}deg)`),d&&(e(s?.[n]?.x)&&u.push(`rotateX(${s[n].x}deg)`),e(s?.[n]?.y)&&u.push(`rotateY(${s[n].y}deg)`))),e(r)&&(e(r?.[n]?.x)&&u.push(`translateX(${r[n].x})`),e(r?.[n]?.y)&&u.push(`translateY(${r[n].y})`)),e(a)&&u.push(a?"scaleX(-1)":""),e(c)&&u.push(c?"scaleY(-1)":""),0===u.length?"":l("transform",u.join(" "))},a=o?`${n}:hover`:n;return`\n\t\t${a} {\n\t\t\t${r(t,"desktop")}\n\t\t}\n\t\t${i}{\n\t\t\t${a} {\n\t\t\t\t${r(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${s}{\n\t\t\t${a} {\n\t\t\t\t${r(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},h=t=>{const{padding:e,margin:n,height:o,width:i}=t||{},s=(t,e)=>l(t,e),r=(t,e,n)=>s(t,e?.[t]?.[n])+s(`min-${t}`,e?.min?.[n])+s(`max-${t}`,e?.max?.[n]),a=t=>l("padding",$(t)),c=t=>l("margin",$(t));return{desktop:a(e?.desktop)+c(n?.desktop)+r("height",o,"desktop")+r("width",i,"desktop"),tablet:a(e?.tablet)+c(n?.tablet)+r("height",o,"tablet")+r("width",i,"tablet"),mobile:a(e?.mobile)+c(n?.mobile)+r("height",o,"mobile")+r("width",i,"mobile")}},x=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},i=l("border-radius",$(n)),s=l("box-shadow",p(o,"box"));return d(e)+i+s};return{normal:o(e),hover:o(n)}},f=t=>{const{zIndex:n,overflow:o}=t||{},i=o?`overflow: ${o};`:"",s=t=>`${l("z-index",n?.[t])} ${l("position",e(n?.[t])?"relative":"")}`;return{desktop:s("desktop")+i,tablet:s("tablet"),mobile:s("mobile")}},w=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:i=!1}=t||{},s=e?"opacity: 0.5;":"display: none;",r=t=>t?s:"";return{desktop:r(n),tablet:r(o),mobile:r(i)}},j=(t,n,r=!1,c=!0)=>{const{dimension:d,transform:p,background:u,borderShadow:$,mask:m,animation:b,visibility:j,responsive:N,position:k={},floating:L={},motion:D={},css:z=""}=n||{},v=r?`#${t}>div>div${c?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,i=document.querySelector(o);i&&t&&t.type&&(i.setAttribute("data-aos",t.type),i.setAttribute("data-aos-duration",1e3*t.duration||.4),i.setAttribute("data-aos-delay",1e3*t.delay||0),i.classList.contains("aos-init")||(i.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})(b,t,r);const T=h(d).desktop+f(j).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:i=.4}=e||{},{transition:s=200}=n||{};return`transition: background ${o}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${s}ms ease-in-out;`})(u,$,p)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:i={type:"center center",x:50,y:50},repeat:s="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?a(n.url):`url(${(r=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02Lj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MC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===r))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===i.type?`${l("-webkit-mask-position-x",i.x)}\n\t\t\t${l("-webkit-mask-position-y",i.y)}`:`${l("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${s};`:""}`:"";var r})(m),S=h(d).tablet+f(j).tablet+w(N,r).tablet,I=h(d).mobile+f(j).mobile+w(N,r).mobile,A=x($).normal,E=x($).hover,O=w(N,r).desktop;return`\n\t\t${T||A?`${v} {\n\t\t\t${T}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${v}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${o} {\n\t\t\t${v}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${i} {\n\t\t\t${v}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${s} {\n\t\t\t${v}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y(u?.normal,v)}\n\t\t${y(u?.hover,v,!0)}\n\t\t${M(u?.overlay,v)}\n\t\t${M(u?.hoverOverlay,v,!0)}\n\t\t${e(p?.normal)?g(p?.normal,v):""}\n\t\t${e(p?.hover)?g(p?.hover,v,!0):""}\n\t\t${((t,e)=>{const{desktop:n={},tablet:o={},mobile:r={}}=t,a=(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?a(n):""}\n\t\t\n\t\t${i}{\n\t\t\t${o?.type?a(o):""}\n\t\t}\n\n\t\t${s}{\n\t\t\t${r?.type?a(r):""}\n\t\t}\n\t`})(k,v)}\n\t\t${((t,n,o="")=>{const{translate:i={},rotate:s={},scale:r={},isEnabled:a=!1}=t||{};if(!a)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:i,value:t=>["x","y"].some((n=>e(i?.[n]?.[t])))?`${i?.x?.[t]||0}px ${i?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:s,value:t=>["x","y","z"].filter((n=>e(s?.[n]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${s[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:r,value:t=>{const n=r?.y?.[t],o=r?.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:i})=>{const s=i("from"),r=i("to");if(!s||!r)return;const a=Number(n?.duration)>0?Number(n.duration):1e3,d=Number(n?.delay)>0?Number(n.delay):0,p=`advFloat${t}${o?`-${o}`:""}`;l.push(`@keyframes ${p}{ from{ ${e}: ${s}; } to{ ${e}: ${r}; } }`),c.push(`${p} ${a}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,v,t)}\n\t\t${((t,n,r)=>{const{isEnable:a=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:u={},scale:$={},effectsRelativeTo:m="viewport",effectOn:b=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:y=!1,mouseTrack:M={},tilt:g={},sticky:h={}}=t||{},x=(t,n)=>e(t)&&!isNaN(t)?Number(t):n,f="viewport"===m,w=f?"view()":"scroll(nearest block)",j=[],N=[],k=[],L=[],D=String(r??"").replace(/[^a-zA-Z0-9]/g,""),z=(t,e,n)=>{j.push(`@keyframes advMe${t}${D}{ ${e} }`),N.push(`advMe${t}${D}`),k.push(w),L.push((t=>{const e=x(t?.top,0),n=x(t?.bottom,100),o=Math.min(e,n),i=Math.max(e,n);return f?`cover ${o}% ${i>=90?"contain 100%":`cover ${i}%`}`:`min(${3*o}vh, ${o}%) min(${3*i}vh, ${i}%)`})(n))};if(a){const t=l?.direction,e=c?.direction,n=t?100*x(l?.speed,4):0,o=e?100*x(c?.speed,4):0;if(n||o){const i="up"===t?-n:n,s="to-left"===e?-o:o,r=[n&&l,o&&c].filter(Boolean);z("Translate",`from{ translate: 0px 0px; } to{ translate: ${s}px ${i}px; }`,{top:Math.min(...r.map((t=>x(t?.top,0)))),bottom:Math.max(...r.map((t=>x(t?.bottom,100))))})}const i=d?.direction;if(i){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}; }`}[i];e&&z("Opacity",e,d)}const s=p?.direction;if(s){const t=3*x(p?.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); }`}[s];e&&z("Blur",e,p)}const r=u?.direction;if(r){const t=20*x(u?.level,4);z("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===r?-t:t}deg; }`,u)}if($?.direction){const t=.15*x($?.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; }`}[$.direction];o&&z("Scale",o,$)}}const v=[];if(y){if(M?.direction){const t="direct"===M?.direction?100:-100;v.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);v.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 i=t.defaultView,s=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),r=s.items.get(n)||{x:0,y:0};if(r.rate=e,r.build=o,s.items.set(n,r),s.bound)return;s.bound=!0;const a=e=>{const n=s.last?Math.min(e-s.last,100):16.7;s.last=e;let o=!1;s.items.forEach(((e,i)=>{const r=e.el&&e.el.isConnected?e.el:t.querySelector(i);if(!r)return;e.el=r;const a=e.rate*n/1e3,l=s.x-e.x,c=s.y-e.y,d=Math.sqrt(l*l+c*c);d<=a?(e.x=s.x,e.y=s.y):(e.x+=l/d*a,e.y+=c/d*a,o=!0),r.style.transform=e.build(e.x,e.y)})),s.frame=o?i.requestAnimationFrame(a):0,s.last=o?e:0};t.addEventListener("pointermove",(t=>{s.x=2*(t.clientX/i.innerWidth-.5),s.y=2*(t.clientY/i.innerHeight-.5),s.frame||(s.frame=i.requestAnimationFrame(a))}))};if(v.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*x(M?.speed,x(g?.speed,4))),e=(t,e)=>v.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${N.length?`\n\t\t${j.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((()=>f?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${k.join(", ")};\n\t\t\t\tanimation-range: ${L.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${o}{ ${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")?`${s}{ ${O("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${v.length?`${n}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${I}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${i}{ ${I}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${s}{ ${I}{ ${A("mobile")} } }`:""}\n\t`})(D,v,t)}\n\t\t${z}\n\t`.replace(/\s+/g," ")},N=window.ReactJSXRuntime,k=(t,e)=>Number.isFinite(parseInt(t,10))?parseInt(t,10):e,L=(t={})=>`\n\t${c(t.bg)}\n\t${d(t.border)}\n\t${l("border-radius",$(t.borderRadius))}\n\t${l("padding",$(t.padding))}\n\t${l("margin",$(t.margin))}\n`,D=({attributes:t,id:e,isBackend:n=!1})=>{const{layout:o={},card:r={},number:a={},label:m={},description:b={},icon:y={},advanced:M}=t,g=o.columns||{},h=o.columnGap||{},x=o.rowGap||{},f=["left","center","right"].includes(o.align)?o.align:"center",w="left"===f?"flex-start":"right"===f?"flex-end":"center",D=r.style||"flat",z="outlined"===D||"accent-top"===D,v=r.padding||{},T=r.borderRadius||{},S=r.margin||{},I=a.typography||{},A=I.fontSize?.tablet,E=I.fontSize?.mobile,O=`#${e} .bBlocks-stat-cards-wrapper`,C=`${O} .bBlocks-stat-cards-grid`,Y=`${O} .bBlocks-stat-cards-item`,U=`${O} .bBlocks-stat-cards-icon`,Q=`${O} .bBlocks-stat-cards-number`,B=`${O} .bBlocks-stat-cards-label`,P=`${O} .bBlocks-stat-cards-desc`;return(0,N.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${u("",I).googleFontLink}\n\t\t\t${u("",m.typography).googleFontLink}\n\t\t\t${u("",b.typography).googleFontLink}\n\t\t\t${C}{\n\t\t\t\tgrid-template-columns: repeat(${k(g.desktop,3)}, minmax(0, 1fr));\n\t\t\t\tcolumn-gap: ${h.desktop||"24px"};\n\t\t\t\trow-gap: ${x.desktop||"24px"};\n\t\t\t}\n\t\t\t${Y}{\n\t\t\t\talign-items: ${w};\n\t\t\t\ttext-align: ${f};\n\t\t\t\t${l("padding",$(v.desktop))}\n\t\t\t\t${l("margin",$(S.desktop))}\n\t\t\t\t${l("border-radius",$(T.desktop))}\n\t\t\t\t${c(r.bg)}\n\t\t\t\t${l("box-shadow",p(r.shadow))}\n\t\t\t\t${z?d(r.border):""}\n\t\t\t\t${"accent-top"===D?`border-top: ${k(r.accentWidth,4)}px solid ${r.accentColor};`:""}\n\t\t\t}\n\t\t\t${U}{\n\t\t\t\t${l("color",y.color)}\n\t\t\t\tfont-size: ${y.size};\n\t\t\t\t${L(y)}\n\t\t\t}\n\t\t\t${u(Q,I).styles}\n\t\t\t${Q}{\n\t\t\t\t${l("color",a.color)}\n\t\t\t\tjustify-content: ${w};\n\t\t\t\t${L(a)}\n\t\t\t}\n\t\t\t${u(B,m.typography).styles}\n\t\t\t${B}{\n\t\t\t\t${l("color",m.color)}\n\t\t\t\t${L(m)}\n\t\t\t}\n\t\t\t${u(P,b.typography).styles}\n\t\t\t${P}{\n\t\t\t\t${l("color",b.color)}\n\t\t\t\t${L(b)}\n\t\t\t}\n\t\t\t${i}{\n\t\t\t\t${C}{\n\t\t\t\t\tgrid-template-columns: repeat(${k(g.tablet,2)}, minmax(0, 1fr));\n\t\t\t\t\tcolumn-gap: ${h.tablet||h.desktop||"24px"};\n\t\t\t\t\trow-gap: ${x.tablet||x.desktop||"24px"};\n\t\t\t\t}\n\t\t\t\t${Y}{\n\t\t\t\t\t${l("padding",$(v.tablet))}\n\t\t\t\t\t${l("margin",$(S.tablet))}\n\t\t\t\t\t${l("border-radius",$(T.tablet))}\n\t\t\t\t}\n\t\t\t\t${A?`${Q}{ font-size: ${A}; }`:""}\n\t\t\t}\n\t\t\t${s}{\n\t\t\t\t${C}{\n\t\t\t\t\tgrid-template-columns: repeat(${k(g.mobile,1)}, minmax(0, 1fr));\n\t\t\t\t\tcolumn-gap: ${h.mobile||h.tablet||h.desktop||"24px"};\n\t\t\t\t\trow-gap: ${x.mobile||x.tablet||x.desktop||"24px"};\n\t\t\t\t}\n\t\t\t\t${Y}{\n\t\t\t\t\t${l("padding",$(v.mobile))}\n\t\t\t\t\t${l("margin",$(S.mobile))}\n\t\t\t\t\t${l("border-radius",$(T.mobile))}\n\t\t\t\t}\n\t\t\t\t${E?`${Q}{ font-size: ${E}; }`:""}\n\t\t\t}\n\t\t\t${j(e,M,n,!1)}\n\t\t\t`}})},z=window.wp.i18n,v=({direction:t})=>{let e="M18 15l-6-6-6 6";return"down"===t?e="M6 9l6 6 6-6":"neutral"===t&&(e="M5 12h14"),(0,N.jsx)("svg",{className:"bBlocks-stat-cards-trend-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,N.jsx)("path",{d:e,fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})},T=["left","center","right"],S=["flat","outlined","accent-top"],I=({attributes:t})=>{const{layout:e={},card:n={},icon:o={},description:i={},trend:s={},items:r=[]}=t,a=T.includes(e.align)?e.align:"center",l=S.includes(n.style)?n.style:"flat",c=n.orientation||"vertical",d=!1!==o.show,p=!1!==i.show,u=!1!==s.show,$=(Array.isArray(r)?r:[]).filter((t=>{const e=t||{};return e.number||e.label||e.prefix||e.suffix||""})),m=["bBlocks-stat-cards-wrapper",`bBlocks-stat-cards-style-${l}`,`bBlocks-stat-cards-align-${a}`].join(" ");return 0===$.length?(0,N.jsx)("div",{className:m,children:(0,N.jsx)("p",{className:"bBlocks-stat-cards-empty",children:(0,z.__)("Add stat cards from the block settings.","b-blocks")})}):(0,N.jsx)("div",{className:m,children:(0,N.jsx)("dl",{className:"bBlocks-stat-cards-grid","aria-label":(0,z.__)("Key statistics","b-blocks"),children:$.map(((t,e)=>{const n=t||{},o=`${n.prefix||""}${n.number||""}${n.suffix||""}`,i=u&&n.trendValue,s=n.trendDirection||"up",r=n.trendColor?{backgroundColor:n.trendColor,color:"#ffffff"}:void 0,a=n.label?(0,z.sprintf)(/* translators: 1: label, 2: value */ /* translators: 1: label, 2: value */(0,z.__)("%1$s: %2$s","b-blocks"),n.label,o):o,l=(0,N.jsxs)(N.Fragment,{children:[n.prefix&&(0,N.jsx)("span",{className:"bBlocks-stat-cards-prefix",children:n.prefix}),(0,N.jsx)("span",{className:"bBlocks-stat-cards-value",children:n.number}),n.suffix&&(0,N.jsx)("span",{className:"bBlocks-stat-cards-suffix",children:n.suffix})]}),$=n.orientation||c;return(0,N.jsxs)("div",{className:`bBlocks-stat-cards-item bBlocks-stat-cards-item-${$}`,children:[d&&n.icon&&(0,N.jsx)("span",{className:"bBlocks-stat-cards-icon","aria-hidden":"true",dangerouslySetInnerHTML:{__html:n.icon}}),n.linkUrl?(0,N.jsxs)("a",{className:"bBlocks-stat-cards-link",href:n.linkUrl,"aria-label":a,...n.linkTarget?{target:"_blank",rel:"noopener noreferrer"}:{},children:[""!==o&&(0,N.jsx)("span",{className:"bBlocks-stat-cards-number",children:l}),n.label&&(0,N.jsx)("span",{className:"bBlocks-stat-cards-label",children:n.label})]}):(0,N.jsxs)(N.Fragment,{children:[""!==o&&(0,N.jsx)("dd",{className:"bBlocks-stat-cards-number",children:l}),n.label&&(0,N.jsx)("dt",{className:"bBlocks-stat-cards-label",children:n.label})]}),i&&(0,N.jsxs)("span",{className:`bBlocks-stat-cards-trend bBlocks-stat-cards-trend-${s}`,style:r,"aria-label":(0,z.sprintf)(/* translators: 1: direction, 2: value */ /* translators: 1: direction, 2: value */(0,z.__)("Trend: %1$s %2$s","b-blocks"),s,n.trendValue),children:[(0,N.jsx)(v,{direction:s}),(0,N.jsx)("span",{className:"bBlocks-stat-cards-trend-text",children:n.trendValue})]}),p&&n.description&&(0,N.jsx)("p",{className:"bBlocks-stat-cards-desc",children:n.description})]},n._key||e)}))})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-stat-cards").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(D,{attributes:n,id:e.id}),(0,N.jsx)(I,{attributes:n})]})),e?.removeAttribute("data-attributes")}))}))})();