|
1
|
|
-(()=>{"use strict";var t={5795:t=>{t.exports=window.ReactDOM},9940:(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}(9940);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")}))}))})(); |
|
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")}))}))})(); |