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.2 → 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}},s="@media only screen and (max-width: 1024px)",o="@media only screen and (max-width: 640px)",a="linear-gradient(135deg, #0040E3, #18D4FD)";window.React;const r=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},i=(t,n)=>e(n)?`${t}: ${n};`:"",l=(t,e=!0,n=!0,s=!0)=>{const{type:o="solid",color:l="",gradient:c=a,image:d={},position:M="center center",attachment:u="",repeat:$="no-repeat",size:p="",overlayColor:b=""}=t||{};return"gradient"===o&&n?i("background",c):"image"===o&&s?`background: ${r(d?.url)};\n\t\t\t\t${i("background-color",b)}\n\t\t\t\t${i("background-position",M)}\n\t\t\t\t${i("background-size",p)}\n\t\t\t\t${i("background-repeat",$)}\n\t\t\t\t${i("background-attachment",u)}\n\t\t\t\t${i("background-repeat",$)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&i("background",l)},c=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:s="0px"}=t;return`${s} ${n} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>t[n]?`border-${n}: ${e(t[n])};`:"")).join(" ").trim():i("border",e(t))},d=(t,e="box")=>{let n="";return t?.map(((s,o)=>{const{hOffset:a="0px",vOffset:r="0px",blur:i="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=s||{},M=d?"inset":"",u=`${a} ${r} ${i}`,$=o+1>=t.length?"":", ";n+="text"===e?`${u} ${c}${$}`:`${u} ${l} ${c} ${M}${$}`})),n||""},M=(t,e,n=!0)=>{const{fontFamily:a="Default",fontCategory:r="sans-serif",fontVariant:l=400,fontWeight:c,isUploadFont:d=!0,fontSize:M={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:$,textDecoration:p,lineHeight:b,letterSpace:g}=e||{},y=!n||!a||"Default"===a,m=M?.desktop||M,j=M?.tablet||m,N=M?.mobile||j,x=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},L=`\n\t\t${y?"":`font-family: '${a}', ${r};`}\n\t\t${i("font-weight",c)}\n\t\t${i("font-size",x(m))}\n\t\t${i("font-style",u)}\n\t\t${i("text-transform",$)}\n\t\t${i("text-decoration",p)}\n\t\t${i("line-height",b)}\n\t\t${i("letter-spacing",g)}\n\t`,w=l&&400!==l?"400i"===l?":ital@1":l?.includes("00i")?`: ital, wght@1, ${l?.replace("00i","00")} `:`: wght@${l} `:"",k=y?"":`https://fonts.googleapis.com/css2?family=${a?.split(" ").join("+")}${w.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||y?"":`@import url(${k});`,styles:`${t}{\n\t\t\t${L}\n\t\t}\n\t\t${s} {\n\t\t\t${t}{\n\t\t\t\t${i("font-size",x(j))}\n\t\t\t}\n\t\t}\n\t\t${o} {\n\t\t\t${t}{\n\t\t\t\t${i("font-size",x(N))}\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""},$=t=>{const{position:n="center center",xPosition:s=0,yPosition:o=0,attachment:a="",repeat:r="no-repeat",size:i="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(n)?`background-position: ${"custom"===n?`${s} ${o}`:n};`:""}\n\t\t${a&&c(a)?`background-attachment: ${a};`:""}\n\t\t${c(r)?`background-repeat: ${r};`:""}\n\t\t${c(i)?`background-size: ${"custom"===i?`${l} auto`:i};`:""}\n\t`},p=(t={})=>t?{desktop:e(t.url)?`background-image: ${r(t.url)}; ${$(t?.desktop)}`:"",tablet:e(t.url)?$(t?.tablet):"",mobile:e(t.url)?$(t?.mobile):""}:"",b=(t,a,r=!1)=>{const{type:l="color",color:c,gradient:d,img:M,video:u}=t||{},$="color"===l?i("background",c):"gradient"===l?(t=>{const{type:n="linear",radialType:s="ellipse",colors:o=[],centerPositions:a={x:0,y:0},angel:r=0}=t||{};if(e(t)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${r}deg, ${t})`;return i("background","radial"===n?`radial-gradient(${s} at ${a?.x}% ${a?.y}%,${t})`:e)}return""})(d):"image"===l?p(M).desktop:"",b="image"===l?p(M).tablet:"",g="image"===l?p(M).mobile:"",y=r?`${a}:hover`:a;return`\n\t\t${"video"===l?((t,e)=>{const{url:s,loop:o}=t||{},a=document.querySelector(e),r=a?.querySelector(".bPlVideo"),i=document.createElement("video");if(i.muted=!0,i.autoplay=!0,i.classList.add("bPlVideo"),!r&&a&&s){const t=n(s);if(t){const e=document.createElement("source");e.src=t,i.appendChild(e),a.appendChild(i)}}return i.loop=o,i.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(u,a):""}\n\n\t\t${$?`${y}{\n\t\t\t${$}\n\t\t}`:""}\n\n\t\t${b?`${s} {\n\t\t\t${y}{\n\t\t\t\t${b}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g?`${o} {\n\t\t\t${y}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},g=(t,n,s=!1)=>{const{isEnabled:o,colors:a,opacity:r=1,blend:l,filter:c="",blur:d=0,brightness:M=100,contrast:u=100,saturation:$=100,hue:p=0,position:g={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},m=`${100!==M?`brightness(${M}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==$?`saturate(${$}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==p?`hue-rotate(${p}deg)`:""}`,j=`${c}: ${c?m:""}; -webkit-${c}: ${c?m:""};`,N=s?`${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(g.top)?g.top:0};\n\t\t\tright:${e(g.right)?g.right:0};\n\t\t\tbottom:${e(g.bottom)?g.bottom:0};\n\t\t\tleft:${e(g.left)?g.left:0};\n\t\t\tz-index:${y};\n\t\t}\n\t\t${b(a,N,!1)}\n\t\t${N}{\n\t\t\t${i("opacity",r)}\n\t\t\t${i("mix-blend-mode",l)}\n\t\t\t${j}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},y=(t,n,a=!1)=>{const r=(t,n="desktop")=>{if(!e(t))return"";const{skew:s,scale:o,rotate:a,offset:r,flipX:l,flipY:c}=t,{threeDRotate:d}=a||{},{isProportion:M}=o||{},u=[];return e(s)&&(e(s?.[n]?.x)&&u.push(`skewX(${s[n].x}deg)`),e(s?.[n]?.y)&&u.push(`skewY(${s[n].y}deg)`)),M?e(o?.[n]?.scale)&&u.push(`scale(${o[n].scale})`):(e(o?.[n]?.x)&&u.push(`scaleX(${o[n].x})`),e(o?.[n]?.y)&&u.push(`scaleY(${o[n].y})`)),e(a)&&(e(a?.[n]?.z)&&u.push(`rotateZ(${a[n].z}deg)`),d&&(e(a?.[n]?.x)&&u.push(`rotateX(${a[n].x}deg)`),e(a?.[n]?.y)&&u.push(`rotateY(${a[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(l)&&u.push(l?"scaleX(-1)":""),e(c)&&u.push(c?"scaleY(-1)":""),0===u.length?"":i("transform",u.join(" "))},l=a?`${n}:hover`:n;return`\n\t\t${l} {\n\t\t\t${r(t,"desktop")}\n\t\t}\n\t\t${s}{\n\t\t\t${l} {\n\t\t\t\t${r(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${o}{\n\t\t\t${l} {\n\t\t\t\t${r(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},m=t=>{const{padding:e,margin:n,height:s,width:o}=t||{},a=(t,e)=>i(t,e),r=(t,e,n)=>a(t,e?.[t]?.[n])+a(`min-${t}`,e?.min?.[n])+a(`max-${t}`,e?.max?.[n]),l=t=>i("padding",u(t)),c=t=>i("margin",u(t));return{desktop:l(e?.desktop)+c(n?.desktop)+r("height",s,"desktop")+r("width",o,"desktop"),tablet:l(e?.tablet)+c(n?.tablet)+r("height",s,"tablet")+r("width",o,"tablet"),mobile:l(e?.mobile)+c(n?.mobile)+r("height",s,"mobile")+r("width",o,"mobile")}},j=t=>{const{normal:e,hover:n}=t||{},s=t=>{const{border:e,radius:n,shadow:s}=t||{},o=i("border-radius",u(n)),a=i("box-shadow",d(s,"box"));return c(e)+o+a};return{normal:s(e),hover:s(n)}},N=t=>{const{zIndex:n,overflow:s}=t||{},o=s?`overflow: ${s};`:"",a=t=>`${i("z-index",n?.[t])} ${i("position",e(n?.[t])?"relative":"")}`;return{desktop:a("desktop")+o,tablet:a("tablet"),mobile:a("mobile")}},x=(t,e)=>{const{desktop:n=!1,tablet:s=!1,mobile:o=!1}=t||{},a=e?"opacity: 0.5;":"display: none;",r=t=>t?a:"";return{desktop:r(n),tablet:r(s),mobile:r(o)}},L=(t,n,a=!1,l=!0)=>{const{dimension:c,transform:d,background:M,borderShadow:u,mask:$,animation:p,visibility:L,responsive:w,css:k=""}=n||{},D=a?`#${t}>div>div${l?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const s=n?`#${e} > div`:`#${e}`,o=document.querySelector(s);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)})(p,t,a);const h=m(c).desktop+N(L).desktop+((t,e,n)=>{const{transition:s=.4}=t||{},{transition:o=.4}=e||{},{transition:a=200}=n||{};return`transition: background ${s}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${a}ms ease-in-out;`})(M,u,d)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:s={type:"contain",scale:"100%"},position:o={type:"center center",x:50,y:50},repeat:a="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?r(n.url):`url(${(l=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv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kgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===l))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===s.type?s.scale:s.type};\n\t\t${"custom"===o.type?`${i("-webkit-mask-position-x",o.x)}\n\t\t\t${i("-webkit-mask-position-y",o.y)}`:`${i("-webkit-mask-position",o.type)}`}\n\t\t${"cover"!==s.type?`-webkit-mask-repeat: ${a};`:""}`:"";var l})($),z=m(c).tablet+N(L).tablet+x(w,a).tablet,f=m(c).mobile+N(L).mobile+x(w,a).mobile,I=j(u).normal,T=j(u).hover,v=x(w,a).desktop;return`\n\t\t${h||I?`${D} {\n\t\t\t${h}\n\t\t\t${I}\n\t\t}`:""}\n\t\t${T?`${D}: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${D}{\n\t\t\t\t${v}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${z?`${s} {\n\t\t\t${D}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${f?`${o} {\n\t\t\t${D}{\n\t\t\t\t${f}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${b(M?.normal,D)}\n\t\t${b(M?.hover,D,!0)}\n\t\t${g(M?.overlay,D)}\n\t\t${g(M?.hoverOverlay,D,!0)}\n\t\t${e(d?.normal)?y(d?.normal,D):""}\n\t\t${e(d?.hover)?y(d?.hover,D,!0):""}\n\n\t\t${k}\n\t`.replace(/\s+/g," ")},w=window.ReactJSXRuntime,k=(t,e)=>Number.isFinite(parseInt(t,10))?parseInt(t,10):e,D=(t={})=>`\n\t${l(t.bg)}\n\t${c(t.border)}\n\t${i("border-radius",u(t.borderRadius))}\n\t${i("padding",u(t.padding))}\n\t${i("margin",u(t.margin))}\n`,h=({attributes:t,id:e,isBackend:n=!1})=>{const{layout:a={},card:r={},number:$={},label:p={},description:b={},icon:g={},advanced:y}=t,m=a.columns||{},j=a.columnGap||{},N=a.rowGap||{},x=["left","center","right"].includes(a.align)?a.align:"center",h="left"===x?"flex-start":"right"===x?"flex-end":"center",z=r.style||"flat",f="outlined"===z||"accent-top"===z,I=r.padding||{},T=r.borderRadius||{},v=r.margin||{},S=$.typography||{},O=S.fontSize?.tablet,Y=S.fontSize?.mobile,A=`#${e} .bBlocks-stat-cards-wrapper`,C=`${A} .bBlocks-stat-cards-grid`,E=`${A} .bBlocks-stat-cards-item`,Q=`${A} .bBlocks-stat-cards-icon`,U=`${A} .bBlocks-stat-cards-number`,B=`${A} .bBlocks-stat-cards-label`,P=`${A} .bBlocks-stat-cards-desc`;return(0,w.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${M("",S).googleFontLink}\n\t\t\t${M("",p.typography).googleFontLink}\n\t\t\t${M("",b.typography).googleFontLink}\n\t\t\t${C}{\n\t\t\t\tgrid-template-columns: repeat(${k(m.desktop,3)}, minmax(0, 1fr));\n\t\t\t\tcolumn-gap: ${j.desktop||"24px"};\n\t\t\t\trow-gap: ${N.desktop||"24px"};\n\t\t\t}\n\t\t\t${E}{\n\t\t\t\talign-items: ${h};\n\t\t\t\ttext-align: ${x};\n\t\t\t\t${i("padding",u(I.desktop))}\n\t\t\t\t${i("margin",u(v.desktop))}\n\t\t\t\t${i("border-radius",u(T.desktop))}\n\t\t\t\t${l(r.bg)}\n\t\t\t\t${i("box-shadow",d(r.shadow))}\n\t\t\t\t${f?c(r.border):""}\n\t\t\t\t${"accent-top"===z?`border-top: ${k(r.accentWidth,4)}px solid ${r.accentColor};`:""}\n\t\t\t}\n\t\t\t${Q}{\n\t\t\t\t${i("color",g.color)}\n\t\t\t\tfont-size: ${g.size};\n\t\t\t\t${D(g)}\n\t\t\t}\n\t\t\t${M(U,S).styles}\n\t\t\t${U}{\n\t\t\t\t${i("color",$.color)}\n\t\t\t\tjustify-content: ${h};\n\t\t\t\t${D($)}\n\t\t\t}\n\t\t\t${M(B,p.typography).styles}\n\t\t\t${B}{\n\t\t\t\t${i("color",p.color)}\n\t\t\t\t${D(p)}\n\t\t\t}\n\t\t\t${M(P,b.typography).styles}\n\t\t\t${P}{\n\t\t\t\t${i("color",b.color)}\n\t\t\t\t${D(b)}\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(m.tablet,2)}, minmax(0, 1fr));\n\t\t\t\t\tcolumn-gap: ${j.tablet||j.desktop||"24px"};\n\t\t\t\t\trow-gap: ${N.tablet||N.desktop||"24px"};\n\t\t\t\t}\n\t\t\t\t${E}{\n\t\t\t\t\t${i("padding",u(I.tablet))}\n\t\t\t\t\t${i("margin",u(v.tablet))}\n\t\t\t\t\t${i("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${o}{\n\t\t\t\t${C}{\n\t\t\t\t\tgrid-template-columns: repeat(${k(m.mobile,1)}, minmax(0, 1fr));\n\t\t\t\t\tcolumn-gap: ${j.mobile||j.tablet||j.desktop||"24px"};\n\t\t\t\t\trow-gap: ${N.mobile||N.tablet||N.desktop||"24px"};\n\t\t\t\t}\n\t\t\t\t${E}{\n\t\t\t\t\t${i("padding",u(I.mobile))}\n\t\t\t\t\t${i("margin",u(v.mobile))}\n\t\t\t\t\t${i("border-radius",u(T.mobile))}\n\t\t\t\t}\n\t\t\t\t${Y?`${U}{ font-size: ${Y}; }`:""}\n\t\t\t}\n\t\t\t${L(e,y,n,!1)}\n\t\t\t`}})},z=window.wp.i18n,f=({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,w.jsx)("svg",{className:"bBlocks-stat-cards-trend-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,w.jsx)("path",{d:e,fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})},I=["left","center","right"],T=["flat","outlined","accent-top"],v=({attributes:t})=>{const{layout:e={},card:n={},icon:s={},description:o={},trend:a={},items:r=[]}=t,i=I.includes(e.align)?e.align:"center",l=T.includes(n.style)?n.style:"flat",c=n.orientation||"vertical",d=!1!==s.show,M=!1!==o.show,u=!1!==a.show,$=(Array.isArray(r)?r:[]).filter((t=>{const e=t||{};return e.number||e.label||e.prefix||e.suffix||""})),p=["bBlocks-stat-cards-wrapper",`bBlocks-stat-cards-style-${l}`,`bBlocks-stat-cards-align-${i}`].join(" ");return 0===$.length?(0,w.jsx)("div",{className:p,children:(0,w.jsx)("p",{className:"bBlocks-stat-cards-empty",children:(0,z.__)("Add stat cards from the block settings.","b-blocks")})}):(0,w.jsx)("div",{className:p,children:(0,w.jsx)("dl",{className:"bBlocks-stat-cards-grid","aria-label":(0,z.__)("Key statistics","b-blocks"),children:$.map(((t,e)=>{const n=t||{},s=`${n.prefix||""}${n.number||""}${n.suffix||""}`,o=u&&n.trendValue,a=n.trendDirection||"up",r=n.trendColor?{backgroundColor:n.trendColor,color:"#ffffff"}:void 0,i=n.label?(0,z.sprintf)((0,z.__)("%1$s: %2$s","b-blocks"),n.label,s):s,l=(0,w.jsxs)(w.Fragment,{children:[n.prefix&&(0,w.jsx)("span",{className:"bBlocks-stat-cards-prefix",children:n.prefix}),(0,w.jsx)("span",{className:"bBlocks-stat-cards-value",children:n.number}),n.suffix&&(0,w.jsx)("span",{className:"bBlocks-stat-cards-suffix",children:n.suffix})]}),$=n.orientation||c;return(0,w.jsxs)("div",{className:`bBlocks-stat-cards-item bBlocks-stat-cards-item-${$}`,children:[d&&n.icon&&(0,w.jsx)("span",{className:"bBlocks-stat-cards-icon","aria-hidden":"true",dangerouslySetInnerHTML:{__html:n.icon}}),n.linkUrl?(0,w.jsxs)("a",{className:"bBlocks-stat-cards-link",href:n.linkUrl,"aria-label":i,...n.linkTarget?{target:"_blank",rel:"noopener noreferrer"}:{},children:[""!==s&&(0,w.jsx)("span",{className:"bBlocks-stat-cards-number",children:l}),n.label&&(0,w.jsx)("span",{className:"bBlocks-stat-cards-label",children:n.label})]}):(0,w.jsxs)(w.Fragment,{children:[""!==s&&(0,w.jsx)("dd",{className:"bBlocks-stat-cards-number",children:l}),n.label&&(0,w.jsx)("dt",{className:"bBlocks-stat-cards-label",children:n.label})]}),o&&(0,w.jsxs)("span",{className:`bBlocks-stat-cards-trend bBlocks-stat-cards-trend-${a}`,style:r,"aria-label":(0,z.sprintf)((0,z.__)("Trend: %1$s %2$s","b-blocks"),a,n.trendValue),children:[(0,w.jsx)(f,{direction:a}),(0,w.jsx)("span",{className:"bBlocks-stat-cards-trend-text",children:n.trendValue})]}),M&&n.description&&(0,w.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,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(h,{attributes:n,id:e.id}),(0,w.jsx)(v,{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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0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 +svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",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")}))}))})();