(()=>{"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="linear-gradient(135deg, #0040E3, #18D4FD)",a=(t,e,n=!1)=>{return null==(r=e)||""===r||Array.isArray(r)&&0===r.length||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&""===r.trim()||"number"==typeof r&&0===r?"":`${t}: ${e}${n?" !important":""};`;var r},i=(t,e=!0,n=!0,r=!0)=>{const{type:i="solid",color:c="",gradient:s=o,image:d={},position:l="center center",attachment:$="",repeat:u="no-repeat",size:b="",overlayColor:g=""}=t||{};return"gradient"===i&&n?a("background",s):"image"===i&&r?`background: url(${d?.url});\n\t\t\t\t${a("background-color",g)}\n\t\t\t\t${a("background-position",l)}\n\t\t\t\t${a("background-size",b)}\n\t\t\t\t${a("background-repeat",u)}\n\t\t\t\t${a("background-attachment",$)}\n\t\t\t\t${a("background-repeat",u)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&a("background",c)},c=t=>{const{width:e="",style:n="solid",color:r="",side:o="all",radius:i=""}=t||{},c=t=>{const e=o?.toLowerCase();return e?.includes("all")||e?.includes(t)},s=`${e} ${n} ${r}`,d=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>c(t)?`border-${t}: ${s};`:"")).join(""):""}\n\t\t${a("border-radius",i)}\n\t`;return d},s=(t,e="box")=>{const{hOffset:n="0px",vOffset:r="0px",blur:o="0px",spreed:a="0px",color:i="#7090b0",isInset:c=!1}=t||{},s=`${n} ${r} ${o}`;return("text"===e?`${s} ${i}`:`${s} ${a} ${i} ${c?"inset":""}`)||"none"},d="bBlocksSocialShare",l=({attributes:t,id:e})=>{const{socials:r,alignment:l,background:$,size:u,padding:b,margin:g,border:p,shadow:m}=t,h=`#${e}`,k=`${h} ul.${d}`;return(0,n.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${h}{\n\t\t\ttext-align: ${l};\n\t\t}\n\t\t${k} li.icon{\n\t\t\tfont-size: ${u};\n\t\t\t${i($)}\n\t\t\twidth: calc( ${u} + ${b} + ${b} );\n\t\t\theight: calc( ${u} + ${b} + ${b} );\n\t\t\tmargin: 0 calc( ${g} / 2 );\n\t\t\t${c(p)}\n\t\t\tbox-shadow: ${s(m)||"none"};\n\t\t}\n\t\t${k} li.icon img{\n\t\t\twidth: ${u};\n\t\t}\n\n\t\t${r?.map(((t,e)=>`\n\t\t\t${k} li.icon-${e} i{\n\t\t\t\t${((t,e=!0,n=!0)=>{const{fontSize:r=16,colorType:i="solid",color:c="inherit",gradient:s=o}=t||{},d="gradient"===i?`color: transparent; background-image: ${s}; -webkit-background-clip: text; background-clip: text;`:a("color",c);return`\n\t\t${r&&e?a("font-size",r?`${r}px`:""):""}\n\t\t${n?d:""}\n\t`})(t?.icon)}\n\t\t\t\tfont-size: inherit;\n\t\t\t}`)).join(" ")}\n\t\t`.replace(/\s+/g," ")}})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-social-share").forEach((t=>{const e=JSON.parse(t.dataset.attributes),o=document.querySelector(`#${t.id} .${d}Style`);(0,r.H)(o).render((0,n.createElement)(l,{attributes:e,id:t.id})),t?.removeAttribute("data-attributes")}))}))})();