| 1 |
(()=>{"use strict";const t=window.ReactDOM,e=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}},n=t=>{const n=(new DOMParser).parseFromString(t,"text/html"),r=["b","strong","i","em","span","a","br"],o=["style","href","target","rel","class"];return n.body.querySelectorAll("*").forEach((t=>{r.includes(t.tagName.toLowerCase())?[...t.attributes].forEach((n=>{if(o.includes(n.name)||t.removeAttribute(n.name),"href"===n.name){const r=e(n.value);r?t.setAttribute("href",r):t.removeAttribute("href")}})):t.remove()})),n.body.innerHTML};window.React;const r="linear-gradient(135deg, #0040E3, #18D4FD)",o=(t,e)=>{return null==(n=e)||""===n||Array.isArray(n)&&0===n.length||"object"==typeof n&&0===Object.keys(n).length||"string"==typeof n&&""===n.trim()||"number"==typeof n&&0===n?"":`${t}: ${e};`;var n},i=(t,n=!0,i=!0,s=!0)=>{const{type:a="solid",color:c="",gradient:l=r,image:d={},position:u="center center",attachment:g="",repeat:h="no-repeat",size:b="",overlayColor:$=""}=t||{};return"gradient"===a&&i?o("background",l):"image"===a&&s?`background: ${(t=>{const n=e(t);return n?`url('${n.replace(/['"()]/g,"")}')`:"none"})(d?.url)};\n\t\t\t\t${o("background-color",$)}\n\t\t\t\t${o("background-position",u)}\n\t\t\t\t${o("background-size",b)}\n\t\t\t\t${o("background-repeat",h)}\n\t\t\t\t${o("background-attachment",g)}\n\t\t\t\t${o("background-repeat",h)}\n\t\t\t\tbackground-blend-mode: overlay;`:n&&o("background",c)},s=t=>{const{width:e="",style:n="solid",color:r="",side:i="all",radius:s=""}=t||{},a=t=>{const e=i?.toLowerCase();return e?.includes("all")||e?.includes(t)},c=`${e} ${n} ${r}`,l=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>a(t)?`border-${t}: ${c};`:"")).join(""):""}\n\t\t${o("border-radius",s)}\n\t`;return l},a=(t,e=!0,n=!0)=>{const{fontSize:i=16,colorType:s="solid",color:a="inherit",gradient:c=r}=t||{},l="gradient"===s?`color: transparent; background-image: ${c}; -webkit-background-clip: text; background-clip: text;`:o("color",a);return`\n\t\t${i&&e?o("font-size",i?`${i}px`:""):""}\n\t\t${n?l:""}\n\t`},c="bBlocksService",l=window.ReactJSXRuntime,d=({attributes:t,id:e})=>{const{background:n,hoverBG:r,icon:o,iconWidth:d,iconBorder:u,titleColor:g,descColor:h,linkIconColor:b,linkBGColor:$,linkBGHovColor:m}=t,p=`#${e}`,k=`${p} .${c}`,v=`${k} .icon`;return(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${k}{\n\t\t\t${i(n)}\n\t\t}\n\t\t${k} .bgLayer{\n\t\t\t${i(r)}\n\t\t}\n\n\t\t${k} .title{\n\t\t\tcolor: ${g};\n\t\t}\n\t\t${v}{\n\t\t\t${s(u)}\n\t\t}\n\t\t${v} i{\n\t\t\t${a(o)}\n\t\t}\n\t\t${v} img{\n\t\t\twidth: ${d};\n\t\t}\n\t\t${k} .description{\n\t\t\tcolor: ${h};\n\t\t}\n\t\t${k} .link a{\n\t\t\tbackground-color: ${$};\n\t\t}\n\t\t${p}:hover .ssbService .link a{\n\t\t\tbackground-color: ${m};\n\t\t}\n\t\t${k} .link a svg{\n\t\t\tfill: ${b};\n\t\t}\n\t\t`.replace(/\s+/g," ")}})},u=(t="Service")=>(0,l.jsx)("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,""),children:(0,l.jsx)("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"})}),g=({attributes:t,children:n})=>{const{title:r,isIcon:o,isUpIcon:i,icon:s,upIcon:a,isLink:d,link:g,linkIn:h}=t;return(0,l.jsxs)("div",{className:c,children:["service"===h&&(0,l.jsx)("a",{className:"serviceLink",href:e(g)}),(0,l.jsx)("div",{className:"bgLayer"}),o&&(0,l.jsx)("div",{className:"icon",children:i?(0,l.jsx)("img",{src:a?.url,alt:a?.alt}):s?.class&&(0,l.jsx)("i",{className:s?.class})}),n,d&&"button"===h&&(0,l.jsx)("div",{className:"link",children:g?(0,l.jsx)("a",{href:e(g),children:u(r)}):(0,l.jsx)("a",{children:u(r)})})]})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-service").forEach((r=>{const o=JSON.parse(r.dataset.attributes),{isTitle:i,title:s,isDesc:a,desc:c,link:u,linkIn:h}=o;(0,t.createRoot)(r).render((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d,{attributes:o,id:r.id}),(0,l.jsxs)(g,{attributes:o,children:[i&&s&&(0,l.jsx)(l.Fragment,{children:"title"===h&&u?(0,l.jsx)("a",{href:e(u),children:(0,l.jsx)("h3",{className:"title",dangerouslySetInnerHTML:{__html:n(s)}})}):(0,l.jsx)("h3",{className:"title",dangerouslySetInnerHTML:{__html:n(s)}})}),a&&c&&(0,l.jsx)("p",{className:"description",dangerouslySetInnerHTML:{__html:n(c)}})]})]})),r?.removeAttribute("data-attributes")}))}))})(); |