| @@ -1 +1,4 @@ | ||
| 1 | -(()=>{"use strict";const t=window.ReactDOM,n=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);window.React;const e=(t,e)=>n(e)?`${t}: ${e};`:"",o=(t,n="box")=>{const{hOffset:e="0px",vOffset:o="0px",blur:i="0px",spreed:r="0px",color:a="#7090b0",isInset:s=!1}=t||{},$=`${e} ${o} ${i}`;return("text"===n?`${$} ${a}`:`${$} ${r} ${a} ${s?"inset":""}`)||"none"},i="bBlocksIconBox",r=window.ReactJSXRuntime,a=({attributes:t,id:a,extraCSS:s=""})=>{const{wrapper:$,icon:d,animation:c}=t,{size:l,color:u,shadow:h}=d,{width:b,height:m}=$,{duration:p,delay:y,type:x,iteration:w,iterationCount:g,hover:f}=c,v=`#${a} .${i}`,j=`${v} svg`,S=(t,n,e,o,i)=>`${n} ${e}ms ${n==t+"Spin"?"linear":n===t+"Ping"?"cubic-bezier(0, 0, 0.2, 1)":"ease-in-out"} ${o}ms ${i};`;return(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${s}\n\t\t\t${v}{\n\t\t\t\twidth: ${b&&0!==parseInt(b)?b:"auto"};\n\t\t\t\theight: ${m&&0!==parseInt(m)?m:"auto"};\n\t\t\t}\n\t\t\t#${a}{\n\t\t\t\t${e("justify-content",$?.alignment?.desktop)}\n\t\t\t}\n\t\t\t${j}{\n\t\t\t\tfill: ${u};\n\t\t\t\theight: ${l};\n\t\t\t\twidth: ${l};\n\t\t\t\tfilter: drop-shadow(${o(h,"text")});\n\t\t\t}\n\n\t\t\t${v}:hover svg {\n\t\t\t\t${e("fill",d?.hover?.color)}\n\t\t\t\t${e("filter",n(d?.hover?.shadow)?`drop-shadow(${o(d?.hover?.shadow,"text")})`:"")}\n\t\t\t}\n\n\t\t\t${v}.${x} {\n\t\t\t\tanimation: ${S("n",x,p,y,"number"===w?g:w)}\n\t\t\t}\n\t\t\t\t\n\t\t\t${v}.${f?.type}:hover{\n\t\t\t\tanimation: ${S("h",f?.type,f?.duration,f?.delay,"number"===f?.iteration?f?.iterationCount:f?.iteration)}\n\t\t\t}\n\n\t\t\t@media only screen and (max-width: 1024px){\n\t\t\t\t#${a}{\n\t\t\t\t\t${e("justify-content",$?.alignment?.tablet)}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media only screen and (max-width: 640px){\n\t\t\t\t#${a}{\n\t\t\t\t\t${e("justify-content",$?.alignment?.mobile)}\n\t\t\t\t}\n\t\t\t}\n\n`.replace(/\s+/g," ")}})},s=({attributes:t})=>{const{icon:n,animation:e}=t,{type:o,hover:a={}}=e;return(0,r.jsx)("div",{className:`${i} b-blocks-icon-box-animation ${o} ${a?.type}`,dangerouslySetInnerHTML:{__html:n.svg}})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-icon-box").forEach((n=>{const e=JSON.parse(n.dataset.attributes);(0,t.createRoot)(n).render((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a,{attributes:e,id:n.id}),(0,r.jsx)(s,{attributes:e})]})),n?.removeAttribute("data-attributes")}))}))})(); | |
| 1 | +(()=>{"use strict";const t=window.ReactDOM,e=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),n=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}},i=new class{constructor(t={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t},this.allowedTagSet=new Set(this.options.allowedTags.map((t=>t.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((t=>t.toLowerCase())))}sanitize(t){if("string"!=typeof t||""===t.trim())return"";const e=(new DOMParser).parseFromString(t,"image/svg+xml"),n=e.documentElement;return!n||"svg"!==n.localName.toLowerCase()||e.getElementsByTagName("parsererror").length?"":(this.removeScripts(e),this.sanitizeElements(e),(new XMLSerializer).serializeToString(e.documentElement))}async sanitizeFile(t){const e=await fetch(t),n=await e.text();return this.sanitize(`${n}`)}removeScripts(t){this.options.removeScripts&&Array.from(t.querySelectorAll("*")).forEach((t=>{t.localName.toLowerCase().includes("script")&&t.remove()}))}sanitizeElements(t){Array.from(t.querySelectorAll("*")).forEach((t=>{const e=t.localName.toLowerCase();this.allowedTagSet.has(e)?("style"===e&&this.options.sanitizeStyle&&(t.textContent=this.sanitizeCss(t.textContent)),this.sanitizeAttributes(t)):t.remove()}))}sanitizeAttributes(t){Array.from(t.attributes).forEach((e=>{const n=e.name,i=n.toLowerCase(),o=e.value;if(this.options.removeEvents&&i.startsWith("on"))return void t.removeAttribute(n);if(this.options.removeExternalResources&&("href"===i||i.endsWith(":href"))&&!this.isAllowedUrl(o))return void t.removeAttribute(n);const r=i.replace("xlink:","");this.allowedAttributeSet.has(i)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(o)?t.removeAttribute(n):"style"===i&&this.options.sanitizeStyle&&t.setAttribute(n,this.sanitizeCss(o)):t.removeAttribute(n)}))}hasExternalUrl(t){return!("string"!=typeof t||!/url\s*\(/i.test(t))&&Array.from(t.matchAll(/url\s*\(\s*['"]?([^'")]*)/gi)).some((([,t])=>!t.trim().startsWith("#")))}isAllowedUrl(t){const e=String(t||"").trim();if(e.startsWith("#"))return!0;if(/^data:/i.test(e))return this.options.allowedProtocols.includes("data")&&/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(e);try{return this.options.allowedProtocols.includes(new URL(e).protocol.replace(":",""))}catch{return!1}}sanitizeCss(t){return String(t||"").replace(/expression\s*\(/gi,"").replace(/javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/@import[^;]*;?/gi,"").replace(/url\s*\(\s*(['"]?)(?!#)[^)]*\)/gi,"none")}},o="@media only screen and (min-width: 1025px)",r="@media only screen and (max-width: 1024px)",a="@media only screen and (max-width: 640px)",s=window.React,l=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},c=(t,n)=>e(n)?`${t}: ${n};`:"",d=(t,e="box")=>{const{hOffset:n="0px",vOffset:i="0px",blur:o="0px",spreed:r="0px",color:a="#7090b0",isInset:s=!1}=t||{},l=`${n} ${i} ${o}`;return("text"===e?`${l} ${a}`:`${l} ${r} ${a} ${s?"inset":""}`)||"none"},u=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},p=t=>{const{position:n="center center",xPosition:i=0,yPosition:o=0,attachment:r="",repeat:a="no-repeat",size:s="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(n)?`background-position: ${"custom"===n?`${i} ${o}`:n};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(a)?`background-repeat: ${a};`:""}\n\t\t${c(s)?`background-size: ${"custom"===s?`${l} auto`:s};`:""}\n\t`},$=(t={})=>t?{desktop:e(t.url)?`background-image: ${l(t.url)}; ${p(t?.desktop)}`:"",tablet:e(t.url)?p(t?.tablet):"",mobile:e(t.url)?p(t?.mobile):""}:"",M=(t,i,o=!1)=>{const{type:s="color",color:l,gradient:d,img:u,video:p}=t||{},M="color"===s?c("background",l):"gradient"===s?(t=>{const{type:n="linear",radialType:i="ellipse",colors:o=[],centerPositions:r={x:0,y:0},angel:a=0}=t||{};if(e(t)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${a}deg, ${t})`;return c("background","radial"===n?`radial-gradient(${i} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(d):"image"===s?$(u).desktop:"",m="image"===s?$(u).tablet:"",y="image"===s?$(u).mobile:"",h=o?`${i}:hover`:i;return`\n\t\t${"video"===s?((t,e)=>{const{url:i,loop:o}=t||{},r=document.querySelector(e),a=r?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!a&&r&&i){const t=n(i);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),r.appendChild(s)}}return s.loop=o,s.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(p,i):""}\n\n\t\t${M?`${h}{\n\t\t\t${M}\n\t\t}`:""}\n\n\t\t${m?`${r} {\n\t\t\t${h}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y?`${a} {\n\t\t\t${h}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},m=(t,n,i=!1)=>{const{isEnabled:o,colors:r,opacity:a=1,blend:s,filter:l="",blur:d=0,brightness:u=100,contrast:p=100,saturation:$=100,hue:m=0,position:y={top:0,right:0,bottom:0,left:0},zIndex:h=-1}=t||{},b=`${100!==u?`brightness(${u}%)`:""} ${100!==p?`contrast(${p}%)`:""} ${100!==$?`saturate(${$}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,g=`${l}: ${l?b:""}; -webkit-${l}: ${l?b:""};`,x=i?`${n}:hover::after`:`${n}::after`;return o?`\n\t\t${n}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${n}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e(y.top)?y.top:0};\n\t\t\tright:${e(y.right)?y.right:0};\n\t\t\tbottom:${e(y.bottom)?y.bottom:0};\n\t\t\tleft:${e(y.left)?y.left:0};\n\t\t\tz-index:${h};\n\t\t}\n\t\t${M(r,x,!1)}\n\t\t${x}{\n\t\t\t${c("opacity",a)}\n\t\t\t${c("mix-blend-mode",s)}\n\t\t\t${g}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},y=(t,n,i=!1)=>{const o=(t,n="desktop")=>{if(!e(t))return"";const{skew:i,scale:o,rotate:r,offset:a,flipX:s,flipY:l}=t,{threeDRotate:d}=r||{},{isProportion:u}=o||{},p=[];return e(i)&&(e(i?.[n]?.x)&&p.push(`skewX(${i[n].x}deg)`),e(i?.[n]?.y)&&p.push(`skewY(${i[n].y}deg)`)),u?e(o?.[n]?.scale)&&p.push(`scale(${o[n].scale})`):(e(o?.[n]?.x)&&p.push(`scaleX(${o[n].x})`),e(o?.[n]?.y)&&p.push(`scaleY(${o[n].y})`)),e(r)&&(e(r?.[n]?.z)&&p.push(`rotateZ(${r[n].z}deg)`),d&&(e(r?.[n]?.x)&&p.push(`rotateX(${r[n].x}deg)`), | |
| 2 | +e(r?.[n]?.y)&&p.push(`rotateY(${r[n].y}deg)`))),e(a)&&(e(a?.[n]?.x)&&p.push(`translateX(${a[n].x})`),e(a?.[n]?.y)&&p.push(`translateY(${a[n].y})`)),e(s)&&p.push(s?"scaleX(-1)":""),e(l)&&p.push(l?"scaleY(-1)":""),0===p.length?"":c("transform",p.join(" "))},s=i?`${n}:hover`:n;return`\n\t\t${s} {\n\t\t\t${o(t,"desktop")}\n\t\t}\n\t\t${r}{\n\t\t\t${s} {\n\t\t\t\t${o(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${a}{\n\t\t\t${s} {\n\t\t\t\t${o(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},h=t=>{const{padding:e,margin:n,height:i,width:o}=t||{},r=(t,e)=>c(t,e),a=(t,e,n)=>r(t,e?.[t]?.[n])+r(`min-${t}`,e?.min?.[n])+r(`max-${t}`,e?.max?.[n]),s=t=>c("padding",u(t)),l=t=>c("margin",u(t));return{desktop:s(e?.desktop)+l(n?.desktop)+a("height",i,"desktop")+a("width",o,"desktop"),tablet:s(e?.tablet)+l(n?.tablet)+a("height",i,"tablet")+a("width",o,"tablet"),mobile:s(e?.mobile)+l(n?.mobile)+a("height",i,"mobile")+a("width",o,"mobile")}},b=t=>{const{normal:e,hover:n}=t||{},i=t=>{const{border:e,radius:n,shadow:i}=t||{},o=c("border-radius",u(n)),r=c("box-shadow",((t,e="box")=>{let n="";return t?.map(((i,o)=>{const{hOffset:r="0px",vOffset:a="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=i||{},u=d?"inset":"",p=`${r} ${a} ${s}`,$=o+1>=t.length?"":", ";n+="text"===e?`${p} ${c}${$}`:`${p} ${l} ${c} ${u}${$}`})),n||""})(i,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:i="0px"}=t;return`${i} ${n} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>t[n]?`border-${n}: ${e(t[n])};`:"")).join(" ").trim():c("border",e(t))})(e)+o+r};return{normal:i(e),hover:i(n)}},g=t=>{const{zIndex:n,overflow:i}=t||{},o=i?`overflow: ${i};`:"",r=t=>`${c("z-index",n?.[t])} ${c("position",e(n?.[t])?"relative":"")}`;return{desktop:r("desktop")+o,tablet:r("tablet"),mobile:r("mobile")}},x=(t,e)=>{const{desktop:n=!1,tablet:i=!1,mobile:o=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",a=t=>t?r:"";return{desktop:a(n),tablet:a(i),mobile:a(o)}},w=(t,n,i=!1,s=!0)=>{const{dimension:d,transform:u,background:p,borderShadow:$,mask:w,animation:j,visibility:N,responsive:f,position:L={},floating:D={},motion:v={},css:z=""}=n||{},k=i?`#${t}>div>div${s?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const i=n?`#${e} > div`:`#${e}`,o=document.querySelector(i);o&&t&&t.type&&(o.setAttribute("data-aos",t.type),o.setAttribute("data-aos-duration",1e3*t.duration||.4),o.setAttribute("data-aos-delay",1e3*t.delay||0),o.classList.contains("aos-init")||(o.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?o.classList.add("aos-animate"):o.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(o)})(j,t,i);const T=h(d).desktop+g(N).desktop+((t,e,n)=>{const{transition:i=.4}=t||{},{transition:o=.4}=e||{},{transition:r=200}=n||{};return`transition: background ${i}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${r}ms ease-in-out;`})(p,$,u)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:i={type:"contain",scale:"100%"},position:o={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?l(n.url):`url(${(a=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAw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ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===a))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===i.type?i.scale:i.type};\n\t\t${"custom"===o.type?`${c("-webkit-mask-position-x",o.x)}\n\t\t\t${c("-webkit-mask-position-y",o.y)}`:`${c("-webkit-mask-position",o.type)}`}\n\t\t${"cover"!==i.type?`-webkit-mask-repeat: ${r};`:""}`:"";var a})(w),I=h(d).tablet+g(N).tablet+x(f,i).tablet,S=h(d).mobile+g(N).mobile+x(f,i).mobile,A=b($).normal,O=b($).hover,E=x(f,i).desktop;return`\n\t\t${T||A?`${k} {\n\t\t\t${T}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${O?`${k}:hover {\n\t\t\t${O}\n\t\t}`:""}\n\n\t\t${E?`${o} {\n\t\t\t${k}{\n\t\t\t\t${E}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${r} {\n\t\t\t${k}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${a} {\n\t\t\t${k}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M(p?.normal,k)}\n\t\t${M(p?.hover,k,!0)}\n\t\t${m(p?.overlay,k)}\n\t\t${m(p?.hoverOverlay,k,!0)}\n\t\t${e(u?.normal)?y(u?.normal,k):""}\n\t\t${e(u?.hover)?y(u?.hover,k,!0):""}\n\t\t${((t,e)=>{ | |
| 3 | +const{desktop:n={},tablet:i={},mobile:o={}}=t,s=(t={})=>`\n\t\t${e}{\n\t\t\t${c("position",t?.type)}\n\t\t\t${c("left",t?.horizontal?.left)}\n\t\t\t${c("right",t?.horizontal?.right)}\n\t\t\t${c("top",t?.vertical?.top)}\n\t\t\t${c("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${n?.type?s(n):""}\n\t\t\n\t\t${r}{\n\t\t\t${i?.type?s(i):""}\n\t\t}\n\n\t\t${a}{\n\t\t\t${o?.type?s(o):""}\n\t\t}\n\t`})(L,k)}\n\t\t${((t,n,i="")=>{const{translate:o={},rotate:r={},scale:a={},isEnabled:s=!1}=t||{};if(!s)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:o,value:t=>["x","y"].some((n=>e(o?.[n]?.[t])))?`${o?.x?.[t]||0}px ${o?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:r,value:t=>["x","y","z"].filter((n=>e(r?.[n]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${r[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:a,value:t=>{const n=a?.y?.[t],i=a?.z?.[t];return e(n)||e(i)?e(i)?`1 ${e(n)?n:1} ${i}`:`1 ${n}`:""}}].forEach((({name:t,property:e,values:n,value:o})=>{const r=o("from"),a=o("to");if(!r||!a)return;const s=Number(n?.duration)>0?Number(n.duration):1e3,d=Number(n?.delay)>0?Number(n.delay):0,u=`advFloat${t}${i?`-${i}`:""}`;l.push(`@keyframes ${u}{ from{ ${e}: ${r}; } to{ ${e}: ${a}; } }`),c.push(`${u} ${s}ms ease-in-out ${d}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${n}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(D,k,t)}\n\t\t${((t,n,i)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:d={},blur:u={},rotate:p={},scale:$={},effectsRelativeTo:M="viewport",effectOn:m=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:y=!1,mouseTrack:h={},tilt:b={},sticky:g={}}=t||{},x=(t,n)=>e(t)&&!isNaN(t)?Number(t):n,w="viewport"===M,j=w?"view()":"scroll(nearest block)",N=[],f=[],L=[],D=[],v=String(i??"").replace(/[^a-zA-Z0-9]/g,""),z=(t,e,n)=>{N.push(`@keyframes advMe${t}${v}{ ${e} }`),f.push(`advMe${t}${v}`),L.push(j),D.push((t=>{const e=x(t?.top,0),n=x(t?.bottom,100),i=Math.min(e,n),o=Math.max(e,n);return w?`cover ${i}% ${o>=90?"contain 100%":`cover ${o}%`}`:`min(${3*i}vh, ${i}%) min(${3*o}vh, ${o}%)`})(n))};if(s){const t=l?.direction,e=c?.direction,n=t?100*x(l?.speed,4):0,i=e?100*x(c?.speed,4):0;if(n||i){const o="up"===t?-n:n,r="to-left"===e?-i:i,a=[n&&l,i&&c].filter(Boolean);z("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${o}px; }`,{top:Math.min(...a.map((t=>x(t?.top,0)))),bottom:Math.max(...a.map((t=>x(t?.bottom,100))))})}const o=d?.direction;if(o){const t=Math.max(0,1-x(d?.level,5)/10),e={"fade-in":`from{ opacity: ${t}; } to{ opacity: 1; }`,"fade-out":`from{ opacity: 1; } to{ opacity: ${t}; }`,"fade-out-in":`0%{ opacity: 1; } 50%{ opacity: ${t}; } 100%{ opacity: 1; }`,"fade-in-out":`0%{ opacity: ${t}; } 50%{ opacity: 1; } 100%{ opacity: ${t}; }`}[o];e&&z("Opacity",e,d)}const r=u?.direction;if(r){const t=3*x(u?.level,4),e={"fade-in":`from{ filter: blur(${t}px); } to{ filter: blur(0px); }`,"fade-out":`from{ filter: blur(0px); } to{ filter: blur(${t}px); }`,"fade-out-in":`0%{ filter: blur(0px); } 50%{ filter: blur(${t}px); } 100%{ filter: blur(0px); }`,"fade-in-out":`0%{ filter: blur(${t}px); } 50%{ filter: blur(0px); } 100%{ filter: blur(${t}px); }`}[r];e&&z("Blur",e,u)}const a=p?.direction;if(a){const t=20*x(p?.level,4);z("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===a?-t:t}deg; }`,p)}if($?.direction){const t=.15*x($?.level,4),e=Math.max(0,1-t),n=1+t,i={"scale-up":`from{ scale: 1; } to{ scale: ${n}; }`,"scale-down":`from{ scale: 1; } to{ scale: ${e}; }`,"scale-down-up":`0%{ scale: 1; } 50%{ scale: ${e}; } 100%{ scale: 1; }`,"scale-up-down":`0%{ scale: 1; } 50%{ scale: ${n}; } 100%{ scale: 1; }`}[$.direction];i&&z("Scale",i,$)}}const k=[];if(y){if(h?.direction){const t="direct"===h?.direction?100:-100;k.push(((e,n)=>`translate(${(e*t).toFixed(2)}px, ${(n*t).toFixed(2)}px)`))}if(b?.direction){const t=12*("direct"===b?.direction?1:-1);k.push(((e,n)=>`perspective(1000px) rotateX(${(n*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const T=(t,e,i)=>{if(!t||!t.defaultView)return;const o=t.defaultView,r=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),a=r.items.get(n)||{x:0,y:0};if(a.rate=e,a.build=i,r.items.set(n,a),r.bound)return;r.bound=!0;const s=e=>{const n=r.last?Math.min(e-r.last,100):16.7;r.last=e;let i=!1;r.items.forEach(((e,o)=>{const a=e.el&&e.el.isConnected?e.el:t.querySelector(o);if(!a)return;e.el=a;const s=e.rate*n/1e3,l=r.x-e.x,c=r.y-e.y,d=Math.sqrt(l*l+c*c);d<=s?(e.x=r.x,e.y=r.y):(e.x+=l/d*s,e.y+=c/d*s,i=!0),a.style.transform=e.build(e.x,e.y)})),r.frame=i?o.requestAnimationFrame(s):0,r.last=i?e:0};t.addEventListener("pointermove",(t=>{r.x=2*(t.clientX/o.innerWidth-.5),r.y=2*(t.clientY/o.innerHeight-.5),r.frame||(r.frame=o.requestAnimationFrame(s))}))};if(k.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*x(h?.speed,x(b?.speed,4))),e=(t,e)=>k.map((n=>n(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>g?.[t]||("desktop"===t?g?.undefined:""),S=n.split(">")[0],A=t=>{const e=I(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?I("desktop"):"mobile"===t?I("tablet")||I("desktop"):"")(t)?"position: static;":""},O=Array.isArray(m)?m:e(m)?[m]:[],E=t=>!O.length||O.includes(t)?"":`${n}{ animation-name: none; }`;return`\n\t\t${f.length?`\n\t\t${N.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${n}{\n\t\t\t\tanimation-name: ${f.join(", ")};\n\t\t\t\tanimation-duration: ${f.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${f.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${f.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${f.map((()=>w?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${L.join(", ")};\n\t\t\t\tanimation-range: ${D.join(", ")};\n\t\t\t}\n\t\t\t${E("desktop")?`${o}{ ${E("desktop")} }`:""}\n\t\t\t${E("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${E("tablet-portrait")} }`:""}\n\t\t\t${E("mobile-portrait")?`${a}{ ${E("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${k.length?`${n}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${S}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${r}{ ${S}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${a}{ ${S}{ ${A("mobile")} } }`:""}\n\t`})(v,k,t)}\n\t\t${z}\n\t`.replace(/\s+/g," ")},j="bBlocksIconBox",N=window.ReactJSXRuntime,f=({attributes:t,id:n,isBackend:i=!1})=>{const{wrapper:o,icon:s,animation:l,advanced:u}=t,{size:p,color:$,shadow:M}=s,{width:m,height:y}=o,{duration:h,delay:b,type:g,iteration:x,iterationCount:f,hover:L}=l,D=`#${n} .${j}`,v=`${D} svg`,z=(t,e,n,i,o)=>`${e} ${n}ms ${e==t+"Spin"?"linear":e===t+"Ping"?"cubic-bezier(0, 0, 0.2, 1)":"ease-in-out"} ${i}ms ${o};`;return(0,N.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${D}{\n\t\t\t\twidth: ${m&&0!==parseInt(m)?m:"auto"};\n\t\t\t\theight: ${y&&0!==parseInt(y)?y:"auto"};\n\t\t\t}\n\t\t\t#${n}{\n\t\t\t\t${c("justify-content",o?.alignment?.desktop)}\n\t\t\t}\n\t\t\t${v}{\n\t\t\t\tfill: ${$};\n\t\t\t\theight: ${p};\n\t\t\t\twidth: ${p};\n\t\t\t\tfilter: drop-shadow(${d(M,"text")});\n\t\t\t}\n\n\t\t\t${D}:hover svg {\n\t\t\t\t${c("fill",s?.hover?.color)}\n\t\t\t\t${c("filter",e(s?.hover?.shadow)?`drop-shadow(${d(s?.hover?.shadow,"text")})`:"")}\n\t\t\t}\n\n\t\t\t${D}.${g} {\n\t\t\t\tanimation: ${z("n",g,h,b,"number"===x?f:x)}\n\t\t\t}\n\t\t\t\t\n\t\t\t${D}.${L?.type}:hover{\n\t\t\t\tanimation: ${z("h",L?.type,L?.duration,L?.delay,"number"===L?.iteration?L?.iterationCount:L?.iteration)}\n\t\t\t}\n\n\t\t\t${r}{\n\t\t\t\t#${n}{\n\t\t\t\t\t${c("justify-content",o?.alignment?.tablet)}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t${a}{\n\t\t\t\t#${n}{\n\t\t\t\t\t${c("justify-content",o?.alignment?.mobile)}\n\t\t\t\t}\n\t\t\t}\n\t\t\t${w(n,u,i)}\n\n`.replace(/\s+/g," ")}})},L=({attributes:t})=>{ | |
| 4 | +const{icon:e,animation:n}=t,{type:o,hover:r={}}=n,a=(0,s.useMemo)((()=>(t=>i.sanitize(t))(e?.svg)),[e?.svg]);return(0,N.jsx)("div",{className:`${j} b-blocks-icon-box-animation ${o} ${r?.type}`,dangerouslySetInnerHTML:{__html:a}})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-icon-box").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(f,{attributes:n,id:e.id}),(0,N.jsx)(L,{attributes:n})]})),e?.removeAttribute("data-attributes")}))}))})(); | |