| 1 |
(()=>{"use strict";var t={5338:(t,e,n)=>{var r=n(5795);e.H=r.createRoot,r.hydrateRoot},5795:t=>{t.exports=window.ReactDOM}},e={};const n=window.React;var r=function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}(5338);const o=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),a=(t,e,n=!1)=>o(e)?`${t}: ${e}${n?" !important":""};`:"",i=(t,e="box")=>{const{hOffset:n="0px",vOffset:r="0px",blur:o="0px",spreed:a="0px",color:i="#7090b0",isInset:s=!1}=t||{},$=`${n} ${r} ${o}`;return("text"===e?`${$} ${i}`:`${$} ${a} ${i} ${s?"inset":""}`)||"none"},s="bBlocksIconBox",$=({attributes:t,id:e,extraCSS:r=""})=>{const{wrapper:$,icon:c,animation:l}=t,{size:d,color:u,shadow:h}=c,{width:p,height:b}=$,{duration:m,delay:v,type:y,iteration:x,iterationCount:f,hover:g}=l,w=`#${e} .${s}`,E=`${w} svg`,S=(t,e,n,r,o)=>`${e} ${n}ms ${e==t+"Spin"?"linear":e===t+"Ping"?"cubic-bezier(0, 0, 0.2, 1)":"ease-in-out"} ${r}ms ${o};`;return(0,n.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${r}\n\t\t\t${w}{\n\t\t\t\twidth: ${p&&0!==parseInt(p)?p:"auto"};\n\t\t\t\theight: ${b&&0!==parseInt(b)?b:"auto"};\n\t\t\t}\n\t\t\t${E}{\n\t\t\t\tfill: ${u};\n\t\t\t\theight: ${d};\n\t\t\t\twidth: ${d};\n\t\t\t\tfilter: drop-shadow(${i(h,"text")});\n\t\t\t}\n\n\t\t\t${w}:hover> svg {\n\t\t\t\t${a("fill",c?.hover?.color)}\n\t\t\t\t${a("filter",o(c?.hover?.shadow)?`drop-shadow(${i(c?.hover?.shadow,"text")})`:"")}\n\t\t\t}\n\n\t\t\t${w}.${y} {\n\t\t\t\tanimation: ${S("n",y,m,v,"number"===x?f:x)}\n\t\t\t}\n\t\t\t\t\n\t\t\t${w}.${g?.type}:hover{\n\t\t\t\tanimation: ${S("h",g?.type,g?.duration,g?.delay,"number"===g?.iteration?g?.iterationCount:g?.iteration)}\n\t\t\t}\n`.replace(/\s+/g," ")}})},c=({attributes:t})=>{const{icon:e,animation:r}=t,{type:o,hover:a={}}=r;return(0,n.createElement)("div",{className:`${s} b-blocks-icon-box-animation ${o} ${a?.type}`,dangerouslySetInnerHTML:{__html:e.svg}})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-icon-box").forEach((t=>{const e=JSON.parse(t.dataset.attributes);(0,r.H)(t).render((0,n.createElement)(n.Fragment,null,(0,n.createElement)($,{attributes:e,id:t.id}),(0,n.createElement)(c,{attributes:e}))),t?.removeAttribute("data-attributes")}))}))})(); |