| 1 |
(()=>{"use strict";var t={5795:t=>{t.exports=window.ReactDOM},8744:(t,e,n)=>{var r=n(5795);e.H=r.createRoot,r.hydrateRoot}},e={};const n=window.React;var r=function n(r){var a=e[r];if(void 0!==a)return a.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}(8744);const a=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=t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=["b","strong","i","em","span","a","br"],r=["style","href","target","rel","class"];return e.body.querySelectorAll("*").forEach((t=>{n.includes(t.tagName.toLowerCase())?[...t.attributes].forEach((e=>{if(r.includes(e.name)||t.removeAttribute(e.name),"href"===e.name){const n=a(e.value);n?t.setAttribute("href",n):t.removeAttribute("href")}})):t.remove()})),e.body.innerHTML},l="linear-gradient(135deg, #0040E3, #18D4FD)",c=(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:a="solid",color:o="",gradient:i=l,image:s={},position:d="center center",attachment:u="",repeat:m="no-repeat",size:g="",overlayColor:b=""}=t||{};return"gradient"===a&&n?c("background",i):"image"===a&&r?`background: url(${s?.url});\n\t\t\t\t${c("background-color",b)}\n\t\t\t\t${c("background-position",d)}\n\t\t\t\t${c("background-size",g)}\n\t\t\t\t${c("background-repeat",m)}\n\t\t\t\t${c("background-attachment",u)}\n\t\t\t\t${c("background-repeat",m)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&c("background",o)},s=t=>{const{width:e="",style:n="solid",color:r="",side:a="all",radius:o=""}=t||{},l=t=>{const e=a?.toLowerCase();return e?.includes("all")||e?.includes(t)},i=`${e} ${n} ${r}`,s=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>l(t)?`border-${t}: ${i};`:"")).join(""):""}\n\t\t${c("border-radius",o)}\n\t`;return s},d=(t,e=!0,n=!0)=>{const{fontSize:r=16,colorType:a="solid",color:o="inherit",gradient:i=l}=t||{},s="gradient"===a?`color: transparent; background-image: ${i}; -webkit-background-clip: text; background-clip: text;`:c("color",o);return`\n\t\t${r&&e?c("font-size",r?`${r}px`:""):""}\n\t\t${n?s:""}\n\t`},u="bBlocksService",m=({attributes:t,id:e})=>{const{background:r,hoverBG:a,icon:o,iconWidth:l,iconBorder:c,titleColor:m,descColor:g,linkIconColor:b,linkBGColor:$,linkBGHovColor:h}=t,p=`#${e}`,v=`${p} .${u}`,k=`${v} .icon`;return(0,n.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${v}{\n\t\t\t${i(r)}\n\t\t}\n\t\t${v} .bgLayer{\n\t\t\t${i(a)}\n\t\t}\n\n\t\t${v} .title{\n\t\t\tcolor: ${m};\n\t\t}\n\t\t${k}{\n\t\t\t${s(c)}\n\t\t}\n\t\t${k} i{\n\t\t\t${d(o)}\n\t\t}\n\t\t${k} img{\n\t\t\twidth: ${l};\n\t\t}\n\t\t${v} .description{\n\t\t\tcolor: ${g};\n\t\t}\n\t\t${v} .link a{\n\t\t\tbackground-color: ${$};\n\t\t}\n\t\t${p}:hover .ssbService .link a{\n\t\t\tbackground-color: ${h};\n\t\t}\n\t\t${v} .link a svg{\n\t\t\tfill: ${b};\n\t\t}\n\t\t`.replace(/\s+/g," ")}})},g=(t="Service")=>(0,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 493.356 493.356",role:"img","aria-label":t.replace(/(<([^>]+)>)/gi,"")},(0,n.createElement)("path",{d:"M490.498,239.278l-109.632-99.929c-3.046-2.474-6.376-2.95-9.993-1.427c-3.613,1.525-5.427,4.283-5.427,8.282v63.954H9.136 c-2.666,0-4.856,0.855-6.567,2.568C0.859,214.438,0,216.628,0,219.292v54.816c0,2.663,0.855,4.853,2.568,6.563 c1.715,1.712,3.905,2.567,6.567,2.567h356.313v63.953c0,3.812,1.817,6.57,5.428,8.278c3.62,1.529,6.95,0.951,9.996-1.708 l109.632-101.077c1.903-1.902,2.852-4.182,2.852-6.849C493.356,243.367,492.401,241.181,490.498,239.278z"})),b=({attributes:t,children:e})=>{const{title:r,isIcon:o,isUpIcon:l,icon:c,upIcon:i,isLink:s,link:d,linkIn:m}=t;return(0,n.createElement)("div",{className:u},"service"===m&&(0,n.createElement)("a",{className:"serviceLink",href:a(d)}),(0,n.createElement)("div",{className:"bgLayer"}),o&&(0,n.createElement)("div",{className:"icon"},l?(0,n.createElement)("img",{src:i?.url,alt:i?.alt}):c?.class&&(0,n.createElement)("i",{className:c?.class})),e,s&&"button"===m&&(0,n.createElement)("div",{className:"link"},d?(0,n.createElement)("a",{href:a(d)},g(r)):(0,n.createElement)("a",null,g(r))))};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-service").forEach((t=>{const e=JSON.parse(t.dataset.attributes),{isTitle:l,title:c,isDesc:i,desc:s,link:d,linkIn:u}=e;(0,r.H)(t).render((0,n.createElement)(n.Fragment,null,(0,n.createElement)(m,{attributes:e,id:t.id}),(0,n.createElement)(b,{attributes:e},l&&c&&(0,n.createElement)(n.Fragment,null,"title"===u&&d?(0,n.createElement)("a",{href:a(d)},(0,n.createElement)("h3",{className:"title",dangerouslySetInnerHTML:{__html:o(c)}})):(0,n.createElement)("h3",{className:"title",dangerouslySetInnerHTML:{__html:o(c)}})),i&&s&&(0,n.createElement)("p",{className:"description",dangerouslySetInnerHTML:{__html:o(s)}})))),t?.removeAttribute("data-attributes")}))}))})(); |