PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.8
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.8
2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 All 108 releases
← All changes | build/scroll-to-top/view.js +4 -1 2.1.2 → 2.1.8 View file →
@@ -1 +1,4 @@
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),o=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="@media only screen and (max-width: 1024px)",s="@media only screen and (max-width: 640px)",r="linear-gradient(135deg, #0040E3, #18D4FD)",i=window.React,a=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},l=(t,o)=>e(o)?`${t}: ${o};`:"",c=(t,e=!0,o=!0,n=!0)=>{const{type:s="solid",color:i="",gradient:c=r,image:M={},position:d="center center",attachment:u="",repeat:p="no-repeat",size:$="",overlayColor:y=""}=t||{};return"gradient"===s&&o?l("background",c):"image"===s&&n?`background: ${a(M?.url)};\n\t\t\t\t${l("background-color",y)}\n\t\t\t\t${l("background-position",d)}\n\t\t\t\t${l("background-size",$)}\n\t\t\t\t${l("background-repeat",p)}\n\t\t\t\t${l("background-attachment",u)}\n\t\t\t\t${l("background-repeat",p)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&l("background",i)},M=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:o="solid",width:n="0px"}=t;return`${n} ${o} ${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((o=>t[o]?`border-${o}: ${e(t[o])};`:"")).join(" ").trim():l("border",e(t))},d=(t,e="box")=>{let o="";return t?.map(((n,s)=>{const{hOffset:r="0px",vOffset:i="0px",blur:a="0px",spreed:l="0px",color:c="#e7f0fe",isInset:M=!1}=n||{},d=M?"inset":"",u=`${r} ${i} ${a}`,p=s+1>=t.length?"":", ";o+="text"===e?`${u} ${c}${p}`:`${u} ${l} ${c} ${d}${p}`})),o||""},u=(t,e,o=!0)=>{const{fontFamily:r="Default",fontCategory:i="sans-serif",fontVariant:a=400,fontWeight:c,isUploadFont:M=!0,fontSize:d={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:p,textDecoration:$,lineHeight:y,letterSpace:g}=e||{},j=!o||!r||"Default"===r,m=d?.desktop||d,b=d?.tablet||m,N=d?.mobile||b,L=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},w=`\n\t\t${j?"":`font-family: '${r}', ${i};`}\n\t\t${l("font-weight",c)}\n\t\t${l("font-size",L(m))}\n\t\t${l("font-style",u)}\n\t\t${l("text-transform",p)}\n\t\t${l("text-decoration",$)}\n\t\t${l("line-height",y)}\n\t\t${l("letter-spacing",g)}\n\t`,D=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",x=j?"":`https://fonts.googleapis.com/css2?family=${r?.split(" ").join("+")}${D.replace(/ /g,"")}&display=swap`;return{googleFontLink:!M||j?"":`@import url(${x});`,styles:`${t}{\n\t\t\t${w}\n\t\t}\n\t\t${n} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",L(b))}\n\t\t\t}\n\t\t}\n\t\t${s} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",L(N))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},p=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""},$=t=>{const{position:o="center center",xPosition:n=0,yPosition:s=0,attachment:r="",repeat:i="no-repeat",size:a="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(o)?`background-position: ${"custom"===o?`${n} ${s}`:o};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(i)?`background-repeat: ${i};`:""}\n\t\t${c(a)?`background-size: ${"custom"===a?`${l} auto`:a};`:""}\n\t`},y=(t={})=>t?{desktop:e(t.url)?`background-image: ${a(t.url)}; ${$(t?.desktop)}`:"",tablet:e(t.url)?$(t?.tablet):"",mobile:e(t.url)?$(t?.mobile):""}:"",g=(t,r,i=!1)=>{const{type:a="color",color:c,gradient:M,img:d,video:u}=t||{},p="color"===a?l("background",c):"gradient"===a?(t=>{const{type:o="linear",radialType:n="ellipse",colors:s=[],centerPositions:r={x:0,y:0},angel:i=0}=t||{};if(e(t)){const t=s?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${i}deg, ${t})`;return l("background","radial"===o?`radial-gradient(${n} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(M):"image"===a?y(d).desktop:"",$="image"===a?y(d).tablet:"",g="image"===a?y(d).mobile:"",j=i?`${r}:hover`:r;return`\n\t\t${"video"===a?((t,e)=>{const{url:n,loop:s}=t||{},r=document.querySelector(e),i=r?.querySelector(".bPlVideo"),a=document.createElement("video");if(a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),!i&&r&&n){const t=o(n);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),r.appendChild(a)}}return a.loop=s,a.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}`})(u,r):""}\n\n\t\t${p?`${j}{\n\t\t\t${p}\n\t\t}`:""}\n\n\t\t${$?`${n} {\n\t\t\t${j}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g?`${s} {\n\t\t\t${j}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},j=(t,o,n=!1)=>{const{isEnabled:s,colors:r,opacity:i=1,blend:a,filter:c="",blur:M=0,brightness:d=100,contrast:u=100,saturation:p=100,hue:$=0,position:y={top:0,right:0,bottom:0,left:0},zIndex:j=-1}=t||{},m=`${100!==d?`brightness(${d}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==p?`saturate(${p}%)`:""} ${0!==M?`blur(${M}px)`:""} ${0!==$?`hue-rotate(${$}deg)`:""}`,b=`${c}: ${c?m:""}; -webkit-${c}: ${c?m:""};`,N=n?`${o}:hover::after`:`${o}::after`;return s?`\n\t\t${o}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${o}::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:${j};\n\t\t}\n\t\t${g(r,N,!1)}\n\t\t${N}{\n\t\t\t${l("opacity",i)}\n\t\t\t${l("mix-blend-mode",a)}\n\t\t\t${b}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},m=(t,o,r=!1)=>{const i=(t,o="desktop")=>{if(!e(t))return"";const{skew:n,scale:s,rotate:r,offset:i,flipX:a,flipY:c}=t,{threeDRotate:M}=r||{},{isProportion:d}=s||{},u=[];return e(n)&&(e(n?.[o]?.x)&&u.push(`skewX(${n[o].x}deg)`),e(n?.[o]?.y)&&u.push(`skewY(${n[o].y}deg)`)),d?e(s?.[o]?.scale)&&u.push(`scale(${s[o].scale})`):(e(s?.[o]?.x)&&u.push(`scaleX(${s[o].x})`),e(s?.[o]?.y)&&u.push(`scaleY(${s[o].y})`)),e(r)&&(e(r?.[o]?.z)&&u.push(`rotateZ(${r[o].z}deg)`),M&&(e(r?.[o]?.x)&&u.push(`rotateX(${r[o].x}deg)`),e(r?.[o]?.y)&&u.push(`rotateY(${r[o].y}deg)`))),e(i)&&(e(i?.[o]?.x)&&u.push(`translateX(${i[o].x})`),e(i?.[o]?.y)&&u.push(`translateY(${i[o].y})`)),e(a)&&u.push(a?"scaleX(-1)":""),e(c)&&u.push(c?"scaleY(-1)":""),0===u.length?"":l("transform",u.join(" "))},a=r?`${o}:hover`:o;return`\n\t\t${a} {\n\t\t\t${i(t,"desktop")}\n\t\t}\n\t\t${n}{\n\t\t\t${a} {\n\t\t\t\t${i(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${s}{\n\t\t\t${a} {\n\t\t\t\t${i(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},b=t=>{const{padding:e,margin:o,height:n,width:s}=t||{},r=(t,e)=>l(t,e),i=(t,e,o)=>r(t,e?.[t]?.[o])+r(`min-${t}`,e?.min?.[o])+r(`max-${t}`,e?.max?.[o]),a=t=>l("padding",p(t)),c=t=>l("margin",p(t));return{desktop:a(e?.desktop)+c(o?.desktop)+i("height",n,"desktop")+i("width",s,"desktop"),tablet:a(e?.tablet)+c(o?.tablet)+i("height",n,"tablet")+i("width",s,"tablet"),mobile:a(e?.mobile)+c(o?.mobile)+i("height",n,"mobile")+i("width",s,"mobile")}},N=t=>{const{normal:e,hover:o}=t||{},n=t=>{const{border:e,radius:o,shadow:n}=t||{},s=l("border-radius",p(o)),r=l("box-shadow",d(n,"box"));return M(e)+s+r};return{normal:n(e),hover:n(o)}},L=t=>{const{zIndex:o,overflow:n}=t||{},s=n?`overflow: ${n};`:"",r=t=>`${l("z-index",o?.[t])} ${l("position",e(o?.[t])?"relative":"")}`;return{desktop:r("desktop")+s,tablet:r("tablet"),mobile:r("mobile")}},w=(t,e)=>{const{desktop:o=!1,tablet:n=!1,mobile:s=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",i=t=>t?r:"";return{desktop:i(o),tablet:i(n),mobile:i(s)}},D=(t,o,r=!1,i=!0)=>{const{dimension:c,transform:M,background:d,borderShadow:u,mask:p,animation:$,visibility:y,responsive:D,css:x=""}=o||{},h=r?`#${t}>div>div${i?":first-child":""}`:`#${t}>div`;((t,e,o)=>{const n=o?`#${e} > div`:`#${e}`,s=document.querySelector(n);s&&t&&t.type&&(s.setAttribute("data-aos",t.type),s.setAttribute("data-aos-duration",1e3*t.duration||.4),s.setAttribute("data-aos-delay",1e3*t.delay||0),s.classList.contains("aos-init")||(s.classList.add("aos-init"),window?.AOS?.init()),o)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?s.classList.add("aos-animate"):s.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(s)})($,t,r);const k=b(c).desktop+L(y).desktop+((t,e,o)=>{const{transition:n=.4}=t||{},{transition:s=.4}=e||{},{transition:r=200}=o||{};return`transition: background ${n}s, border ${s}s, border-radius ${s}s, box-shadow ${s}s, transform ${r}ms ease-in-out;`})(d,u,M)+(t=>{const{isMask:e=!1,shape:o={type:"circle"},size:n={type:"contain",scale:"100%"},position:s={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===o.type?a(o.url):`url(${(i=o.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcm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gODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===i))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===s.type?`${l("-webkit-mask-position-x",s.x)}\n\t\t\t${l("-webkit-mask-position-y",s.y)}`:`${l("-webkit-mask-position",s.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${r};`:""}`:"";var i})(p),z=b(c).tablet+L(y).tablet+w(D,r).tablet,T=b(c).mobile+L(y).mobile+w(D,r).mobile,I=N(u).normal,v=N(u).hover,S=w(D,r).desktop;return`\n\t\t${k||I?`${h} {\n\t\t\t${k}\n\t\t\t${I}\n\t\t}`:""}\n\t\t${v?`${h}:hover {\n\t\t\t${v}\n\t\t}`:""}\n\n\t\t${S?`@media only screen and (min-width: 1025px) {\n\t\t\t${h}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${z?`${n} {\n\t\t\t${h}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${T?`${s} {\n\t\t\t${h}{\n\t\t\t\t${T}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g(d?.normal,h)}\n\t\t${g(d?.hover,h,!0)}\n\t\t${j(d?.overlay,h)}\n\t\t${j(d?.hoverOverlay,h,!0)}\n\t\t${e(M?.normal)?m(M?.normal,h):""}\n\t\t${e(M?.hover)?m(M?.hover,h,!0):""}\n\n\t\t${x}\n\t`.replace(/\s+/g," ")},x=window.ReactJSXRuntime,h=({attributes:t,id:e})=>{const{scroll:o,styles:n,advanced:s}=t,{icon:r,text:i,progress:a}=n,$=`#${e}`,y=`${$} .b-blocks-scroll-to-top-wrapper`,g=`${y} .b-blocks-scroll-to-top-icon`,j=`${y} .b-blocks-scroll-to-top-text`,m={icon:`\n\t\t\t${c(r.bg)}\n\t\t`,text:`\n\t\t\t\t${c(i.normal.bg)}\n\t\t\t\t${l("box-shadow",d(i.normal.shadow))}\n\t\t\t\t${l("padding",p(i.normal.padding))}\n\t\t\t\t${M(i.normal.border)}\n\t\t\t\t${l("border-radius",p(i.normal.radius))}\n\t\t`,progress:` \n\t\t\t${l("width",a.size)}\n\t\t\t${l("height",a.size)}\n\t\t`};return(0,x.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\n\t\t${u("",i.typography).googleFontLink}\n\t\t${u(j,i.typography).styles}\n\n\t\t\t${$}{\n\t\t\t\t${l("justify-content",o.desktop.align)}\n\t\t\t\t${b="desktop",o.position?`\n\t\t\tposition:fixed;\n\t\t\t${l(o.position,o[b].position?.[o.position])}\n\t\t\t${l("bottom",o[b].position.bottom)}\n\t`:""}\n\t\t\t}\n\n\t\t\t${y}{\n\t\t\t\t${m[o.scrollType]}\n\t\t\t}\n\n\t\t\t${y}:hover .b-blocks-scroll-to-top-icon>svg{\n\t\t\t\t${l("rotate",r.hover.rotate>=0?r.hover.rotate+"deg":"")}\n\t\t\t}\n\n\t\t\t${j}{\n\t\t\t\t${l("color",i.normal.color)}\n\t\t\t}\n\t\t\t\n\t\t\t${g}>svg{\n\t\t\t\t${l("width",r.size)}\n\t\t\t\t${l("height",r.size)}\n\t\t\t\t${l("fill",r.color)}\n\t\t\t\t${l("transition",r.hover.transition?`all ${r.hover.transition}s ease-in-out`:"")}\n\t\t\t\t${l("rotate",r.normal.rotate>=0?r.normal.rotate+"deg":"")}\n\t\t\t}\n\n\t\t\t${D(e,s,!0,!1)}\n\t`}});var b},k=t=>{const{attributes:e,doc:o=document,win:n=window,isBackend:s=!1}=t,{scroll:r,icon:a,styles:l}=e,{scrollType:c}=r,{progress:M}=l,[d,u]=(0,i.useState)(0),[p,$]=(0,i.useState)(!1),y={strokeWidth:M.strokeSize,color:M.color,bgColor:M.strokeBg,bg:M.bg},g=(0,i.useMemo)((()=>50-y.strokeWidth/2),[y.strokeWidth]),j=(0,i.useMemo)((()=>2*Math.PI*g),[g]);(0,i.useEffect)((()=>{const t=()=>{const t=n?.pageYOffset||o?.documentElement?.scrollTop||o?.body?.scrollTop||0,e=o?.documentElement?.scrollHeight-o?.documentElement?.clientHeight,r=0===e?0:t/e*100;u(Math.min(100,Math.max(0,r))),$(!s&&t>80)};return n?.addEventListener("scroll",t,{passive:!0}),t(),()=>n?.removeEventListener("scroll",t)}),[o,n]);const m=j-d/100*j;return(0,x.jsx)("div",{className:"b-blocks-scroll-to-top-main-wrapper",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},style:{...s?{}:{opacity:p?1:0}},children:(0,x.jsxs)("div",{className:"b-blocks-scroll-to-top-wrapper "+("progress"===c?"b-blocks-scroll-to-top-progress-wrapper":""),children:[("icon"===c||"progress"===c)&&(0,x.jsx)("div",{className:"b-blocks-scroll-to-top-icon",dangerouslySetInnerHTML:{__html:a.svg}}),"progress"===c&&(0,x.jsxs)("svg",{viewBox:"0 0 100 100",children:[(0,x.jsx)("circle",{cx:"50",cy:"50",r:g,fill:y.bg,stroke:y.bgColor,strokeWidth:y.strokeWidth}),(0,x.jsx)("circle",{cx:"50",cy:"50",r:g,fill:"transparent",stroke:y.color,strokeWidth:y.strokeWidth,strokeDasharray:j,strokeDashoffset:m,strokeLinecap:"round",className:"b-blocks-scroll-to-top-progress-circle"})]}),"text"===c&&(0,x.jsx)("div",{className:"b-blocks-scroll-to-top-text",dangerouslySetInnerHTML:{__html:a.text}})]})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-scroll-to-top").forEach((e=>{const o=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(h,{attributes:o,id:e.id}),(0,x.jsx)(k,{attributes:o})]})),e?.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),o=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}};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"),o=e.documentElement;return!o||"svg"!==o.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),o=await e.text();return this.sanitize(`${o}`)}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 o=e.name,n=o.toLowerCase(),i=e.value;if(this.options.removeEvents&&n.startsWith("on"))return void t.removeAttribute(o);if(this.options.removeExternalResources&&("href"===n||n.endsWith(":href"))&&!this.isAllowedUrl(i))return void t.removeAttribute(o);const r=n.replace("xlink:","");this.allowedAttributeSet.has(n)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(i)?t.removeAttribute(o):"style"===n&&this.options.sanitizeStyle&&t.setAttribute(o,this.sanitizeCss(i)):t.removeAttribute(o)}))}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")}};const n="@media only screen and (min-width: 1025px)",i="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",s="linear-gradient(135deg, #0040E3, #18D4FD)",a=window.React,l=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},c=(t,o)=>e(o)?`${t}: ${o};`:"",d=(t,e=!0,o=!0,n=!0)=>{const{type:i="solid",color:r="",gradient:a=s,image:d={},position:p="center center",attachment:u="",repeat:m="no-repeat",size:$="",overlayColor:M=""}=t||{};return"gradient"===i&&o?c("background",a):"image"===i&&n?`background: ${l(d?.url)};\n\t\t\t\t${c("background-color",M)}\n\t\t\t\t${c("background-position",p)}\n\t\t\t\t${c("background-size",$)}\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",r)},p=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:o="solid",width:n="0px"}=t;return`${n} ${o} ${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((o=>t[o]?`border-${o}: ${e(t[o])};`:"")).join(" ").trim():c("border",e(t))},u=(t,e="box")=>{let o="";return t?.map(((n,i)=>{const{hOffset:r="0px",vOffset:s="0px",blur:a="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=n||{},p=d?"inset":"",u=`${r} ${s} ${a}`,m=i+1>=t.length?"":", ";o+="text"===e?`${u} ${c}${m}`:`${u} ${l} ${c} ${p}${m}`})),o||""},m=(t,e,o=!0)=>{const{fontFamily:n="Default",fontCategory:s="sans-serif",fontVariant:a=400,fontWeight:l,isUploadFont:d=!0,fontSize:p={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:m,textDecoration:$,lineHeight:M,letterSpace:y}=e||{},g=!o||!n||"Default"===n,b=p?.desktop||p,h=p?.tablet||b,x=p?.mobile||h,w=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},f=`\n\t\t${g?"":`font-family: '${n}', ${s};`}\n\t\t${c("font-weight",l)}\n\t\t${c("font-size",w(b))}\n\t\t${c("font-style",u)}\n\t\t${c("text-transform",m)}\n\t\t${c("text-decoration",$)}\n\t\t${c("line-height",M)}\n\t\t${c("letter-spacing",y)}\n\t`,j=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",N=g?"":`https://fonts.googleapis.com/css2?family=${n?.split(" ").join("+")}${j.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||g?"":`@import url(${N});`,styles:`${t}{\n\t\t\t${f}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",w(h))}\n\t\t\t}\n\t\t}\n\t\t${r} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",w(x))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},$=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""},M=t=>{const{position:o="center center",xPosition:n=0,yPosition:i=0,attachment:r="",repeat:s="no-repeat",size:a="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(o)?`background-position: ${"custom"===o?`${n} ${i}`:o};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(s)?`background-repeat: ${s};`:""}\n\t\t${c(a)?`background-size: ${"custom"===a?`${l} auto`:a};`:""}\n\t`},y=(t={})=>t?{desktop:e(t.url)?`background-image: ${l(t.url)}; ${M(t?.desktop)}`:"",tablet:e(t.url)?M(t?.tablet):"",mobile:e(t.url)?M(t?.mobile):""}:"",g=(t,n,s=!1)=>{const{type:a="color",color:l,gradient:d,img:p,video:u}=t||{},m="color"===a?c("background",l):"gradient"===a?(t=>{const{type:o="linear",radialType:n="ellipse",colors:i=[],centerPositions:r={x:0,y:0},angel:s=0}=t||{};if(e(t)){const t=i?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${s}deg, ${t})`;return c("background","radial"===o?`radial-gradient(${n} at ${r?.x}% ${r?.y}%,${t})`:e)}return""
2 +})(d):"image"===a?y(p).desktop:"",$="image"===a?y(p).tablet:"",M="image"===a?y(p).mobile:"",g=s?`${n}:hover`:n;return`\n\t\t${"video"===a?((t,e)=>{const{url:n,loop:i}=t||{},r=document.querySelector(e),s=r?.querySelector(".bPlVideo"),a=document.createElement("video");if(a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),!s&&r&&n){const t=o(n);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),r.appendChild(a)}}return a.loop=i,a.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}`})(u,n):""}\n\n\t\t${m?`${g}{\n\t\t\t${m}\n\t\t}`:""}\n\n\t\t${$?`${i} {\n\t\t\t${g}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M?`${r} {\n\t\t\t${g}{\n\t\t\t\t${M}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},b=(t,o,n=!1)=>{const{isEnabled:i,colors:r,opacity:s=1,blend:a,filter:l="",blur:d=0,brightness:p=100,contrast:u=100,saturation:m=100,hue:$=0,position:M={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},b=`${100!==p?`brightness(${p}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==m?`saturate(${m}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==$?`hue-rotate(${$}deg)`:""}`,h=`${l}: ${l?b:""}; -webkit-${l}: ${l?b:""};`,x=n?`${o}:hover::after`:`${o}::after`;return i?`\n\t\t${o}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${o}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e(M.top)?M.top:0};\n\t\t\tright:${e(M.right)?M.right:0};\n\t\t\tbottom:${e(M.bottom)?M.bottom:0};\n\t\t\tleft:${e(M.left)?M.left:0};\n\t\t\tz-index:${y};\n\t\t}\n\t\t${g(r,x,!1)}\n\t\t${x}{\n\t\t\t${c("opacity",s)}\n\t\t\t${c("mix-blend-mode",a)}\n\t\t\t${h}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},h=(t,o,n=!1)=>{const s=(t,o="desktop")=>{if(!e(t))return"";const{skew:n,scale:i,rotate:r,offset:s,flipX:a,flipY:l}=t,{threeDRotate:d}=r||{},{isProportion:p}=i||{},u=[];return e(n)&&(e(n?.[o]?.x)&&u.push(`skewX(${n[o].x}deg)`),e(n?.[o]?.y)&&u.push(`skewY(${n[o].y}deg)`)),p?e(i?.[o]?.scale)&&u.push(`scale(${i[o].scale})`):(e(i?.[o]?.x)&&u.push(`scaleX(${i[o].x})`),e(i?.[o]?.y)&&u.push(`scaleY(${i[o].y})`)),e(r)&&(e(r?.[o]?.z)&&u.push(`rotateZ(${r[o].z}deg)`),d&&(e(r?.[o]?.x)&&u.push(`rotateX(${r[o].x}deg)`),e(r?.[o]?.y)&&u.push(`rotateY(${r[o].y}deg)`))),e(s)&&(e(s?.[o]?.x)&&u.push(`translateX(${s[o].x})`),e(s?.[o]?.y)&&u.push(`translateY(${s[o].y})`)),e(a)&&u.push(a?"scaleX(-1)":""),e(l)&&u.push(l?"scaleY(-1)":""),0===u.length?"":c("transform",u.join(" "))},a=n?`${o}:hover`:o;return`\n\t\t${a} {\n\t\t\t${s(t,"desktop")}\n\t\t}\n\t\t${i}{\n\t\t\t${a} {\n\t\t\t\t${s(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${r}{\n\t\t\t${a} {\n\t\t\t\t${s(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},x=t=>{const{padding:e,margin:o,height:n,width:i}=t||{},r=(t,e)=>c(t,e),s=(t,e,o)=>r(t,e?.[t]?.[o])+r(`min-${t}`,e?.min?.[o])+r(`max-${t}`,e?.max?.[o]),a=t=>c("padding",$(t)),l=t=>c("margin",$(t));return{desktop:a(e?.desktop)+l(o?.desktop)+s("height",n,"desktop")+s("width",i,"desktop"),tablet:a(e?.tablet)+l(o?.tablet)+s("height",n,"tablet")+s("width",i,"tablet"),mobile:a(e?.mobile)+l(o?.mobile)+s("height",n,"mobile")+s("width",i,"mobile")}},w=t=>{const{normal:e,hover:o}=t||{},n=t=>{const{border:e,radius:o,shadow:n}=t||{},i=c("border-radius",$(o)),r=c("box-shadow",u(n,"box"));return p(e)+i+r};return{normal:n(e),hover:n(o)}},f=t=>{const{zIndex:o,overflow:n}=t||{},i=n?`overflow: ${n};`:"",r=t=>`${c("z-index",o?.[t])} ${c("position",e(o?.[t])?"relative":"")}`;return{desktop:r("desktop")+i,tablet:r("tablet"),mobile:r("mobile")}},j=(t,e)=>{const{desktop:o=!1,tablet:n=!1,mobile:i=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",s=t=>t?r:"";return{desktop:s(o),tablet:s(n),mobile:s(i)}},N=(t,o,s=!1,a=!0)=>{const{dimension:d,transform:p,background:u,borderShadow:m,mask:$,animation:M,visibility:y,responsive:N,position:L={},floating:k={},motion:v={},css:D=""}=o||{},z=s?`#${t}>div>div${a?":first-child":""}`:`#${t}>div`;((t,e,o)=>{const n=o?`#${e} > div`:`#${e}`,i=document.querySelector(n);i&&t&&t.type&&(i.setAttribute("data-aos",t.type),i.setAttribute("data-aos-duration",1e3*t.duration||.4),i.setAttribute("data-aos-delay",1e3*t.delay||0),i.classList.contains("aos-init")||(i.classList.add("aos-init"),window?.AOS?.init()),o)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})(M,t,s);const T=x(d).desktop+f(y).desktop+((t,e,o)=>{const{transition:n=.4}=t||{},{transition:i=.4}=e||{},{transition:r=200}=o||{};return`transition: background ${n}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${r}ms ease-in-out;`})(u,m,p)+(t=>{const{isMask:e=!1,shape:o={type:"circle"},size:n={type:"contain",scale:"100%"},position:i={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===o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YuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",type:"sketch"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{
3 +svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===s))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===i.type?`${c("-webkit-mask-position-x",i.x)}\n\t\t\t${c("-webkit-mask-position-y",i.y)}`:`${c("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${r};`:""}`:"";var s})($),S=x(d).tablet+f(y).tablet+j(N,s).tablet,I=x(d).mobile+f(y).mobile+j(N,s).mobile,E=w(m).normal,A=w(m).hover,O=j(N,s).desktop;return`\n\t\t${T||E?`${z} {\n\t\t\t${T}\n\t\t\t${E}\n\t\t}`:""}\n\t\t${A?`${z}:hover {\n\t\t\t${A}\n\t\t}`:""}\n\n\t\t${O?`${n} {\n\t\t\t${z}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${i} {\n\t\t\t${z}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${r} {\n\t\t\t${z}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g(u?.normal,z)}\n\t\t${g(u?.hover,z,!0)}\n\t\t${b(u?.overlay,z)}\n\t\t${b(u?.hoverOverlay,z,!0)}\n\t\t${e(p?.normal)?h(p?.normal,z):""}\n\t\t${e(p?.hover)?h(p?.hover,z,!0):""}\n\t\t${((t,e)=>{const{desktop:o={},tablet:n={},mobile:s={}}=t,a=(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${o?.type?a(o):""}\n\t\t\n\t\t${i}{\n\t\t\t${n?.type?a(n):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${s?.type?a(s):""}\n\t\t}\n\t`})(L,z)}\n\t\t${((t,o,n="")=>{const{translate:i={},rotate:r={},scale:s={},isEnabled:a=!1}=t||{};if(!a)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:i,value:t=>["x","y"].some((o=>e(i?.[o]?.[t])))?`${i?.x?.[t]||0}px ${i?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:r,value:t=>["x","y","z"].filter((o=>e(r?.[o]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${r[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:s,value:t=>{const o=s?.y?.[t],n=s?.z?.[t];return e(o)||e(n)?e(n)?`1 ${e(o)?o:1} ${n}`:`1 ${o}`:""}}].forEach((({name:t,property:e,values:o,value:i})=>{const r=i("from"),s=i("to");if(!r||!s)return;const a=Number(o?.duration)>0?Number(o.duration):1e3,d=Number(o?.delay)>0?Number(o.delay):0,p=`advFloat${t}${n?`-${n}`:""}`;l.push(`@keyframes ${p}{ from{ ${e}: ${r}; } to{ ${e}: ${s}; } }`),c.push(`${p} ${a}ms ease-in-out ${d}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${o}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(k,z,t)}\n\t\t${((t,o,s)=>{const{isEnable:a=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:u={},scale:m={},effectsRelativeTo:$="viewport",effectOn:M=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:y=!1,mouseTrack:g={},tilt:b={},sticky:h={}}=t||{},x=(t,o)=>e(t)&&!isNaN(t)?Number(t):o,w="viewport"===$,f=w?"view()":"scroll(nearest block)",j=[],N=[],L=[],k=[],v=String(s??"").replace(/[^a-zA-Z0-9]/g,""),D=(t,e,o)=>{j.push(`@keyframes advMe${t}${v}{ ${e} }`),N.push(`advMe${t}${v}`),L.push(f),k.push((t=>{const e=x(t?.top,0),o=x(t?.bottom,100),n=Math.min(e,o),i=Math.max(e,o);return w?`cover ${n}% ${i>=90?"contain 100%":`cover ${i}%`}`:`min(${3*n}vh, ${n}%) min(${3*i}vh, ${i}%)`})(o))};if(a){const t=l?.direction,e=c?.direction,o=t?100*x(l?.speed,4):0,n=e?100*x(c?.speed,4):0;if(o||n){const i="up"===t?-o:o,r="to-left"===e?-n:n,s=[o&&l,n&&c].filter(Boolean);D("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${i}px; }`,{top:Math.min(...s.map((t=>x(t?.top,0)))),bottom:Math.max(...s.map((t=>x(t?.bottom,100))))})}const i=d?.direction;if(i){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}; }`}[i];e&&D("Opacity",e,d)}const r=p?.direction;if(r){const t=3*x(p?.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&&D("Blur",e,p)}const s=u?.direction;if(s){const t=20*x(u?.level,4);D("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===s?-t:t}deg; }`,u)}if(m?.direction){const t=.15*x(m?.level,4),e=Math.max(0,1-t),o=1+t,n={"scale-up":`from{ scale: 1; } to{ scale: ${o}; }`,"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: ${o}; } 100%{ scale: 1; }`}[m.direction];n&&D("Scale",n,m)}}const z=[];if(y){if(g?.direction){const t="direct"===g?.direction?100:-100;z.push(((e,o)=>`translate(${(e*t).toFixed(2)}px, ${(o*t).toFixed(2)}px)`))}if(b?.direction){const t=12*("direct"===b?.direction?1:-1);z.push(((e,o)=>`perspective(1000px) rotateX(${(o*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const T=(t,e,n)=>{if(!t||!t.defaultView)return;const i=t.defaultView,r=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),s=r.items.get(o)||{x:0,y:0};if(s.rate=e,s.build=n,r.items.set(o,s),r.bound)return;r.bound=!0;const a=e=>{const o=r.last?Math.min(e-r.last,100):16.7;r.last=e;let n=!1;r.items.forEach(((e,i)=>{const s=e.el&&e.el.isConnected?e.el:t.querySelector(i);if(!s)return;e.el=s;const a=e.rate*o/1e3,l=r.x-e.x,c=r.y-e.y,d=Math.sqrt(l*l+c*c);d<=a?(e.x=r.x,e.y=r.y):(e.x+=l/d*a,e.y+=c/d*a,n=!0),s.style.transform=e.build(e.x,e.y)})),r.frame=n?i.requestAnimationFrame(a):0,r.last=n?e:0};t.addEventListener("pointermove",(t=>{r.x=2*(t.clientX/i.innerWidth-.5),r.y=2*(t.clientY/i.innerHeight-.5),r.frame||(r.frame=i.requestAnimationFrame(a))}))};if(z.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*x(g?.speed,x(b?.speed,4))),e=(t,e)=>z.map((o=>o(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const S=t=>h?.[t]||("desktop"===t?h?.undefined:""),I=o.split(">")[0],E=t=>{const e=S(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?S("desktop"):"mobile"===t?S("tablet")||S("desktop"):"")(t)?"position: static;":""},A=Array.isArray(M)?M:e(M)?[M]:[],O=t=>!A.length||A.includes(t)?"":`${o}{ animation-name: none; }`
4 +;return`\n\t\t${N.length?`\n\t\t${j.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${o}{\n\t\t\t\tanimation-name: ${N.join(", ")};\n\t\t\t\tanimation-duration: ${N.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${N.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${N.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${N.map((()=>w?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${L.join(", ")};\n\t\t\t\tanimation-range: ${k.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${n}{ ${O("desktop")} }`:""}\n\t\t\t${O("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${O("tablet-portrait")} }`:""}\n\t\t\t${O("mobile-portrait")?`${r}{ ${O("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${z.length?`${o}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${E("desktop")?`${I}{ ${E("desktop")} }`:""}\n\t\t${E("tablet")?`${i}{ ${I}{ ${E("tablet")} } }`:""}\n\t\t${E("mobile")?`${r}{ ${I}{ ${E("mobile")} } }`:""}\n\t`})(v,z,t)}\n\t\t${D}\n\t`.replace(/\s+/g," ")},L=window.ReactJSXRuntime,k=({attributes:t,id:e})=>{const{scroll:o,styles:n,advanced:i}=t,{icon:r,text:s,progress:a}=n,l=`#${e}`,M=`${l} .b-blocks-scroll-to-top-wrapper`,y=`${M} .b-blocks-scroll-to-top-icon`,g=`${M} .b-blocks-scroll-to-top-text`,b={icon:`\n\t\t\t${d(r.bg)}\n\t\t`,text:`\n\t\t\t\t${d(s.normal.bg)}\n\t\t\t\t${c("box-shadow",u(s.normal.shadow))}\n\t\t\t\t${c("padding",$(s.normal.padding))}\n\t\t\t\t${p(s.normal.border)}\n\t\t\t\t${c("border-radius",$(s.normal.radius))}\n\t\t`,progress:` \n\t\t\t${c("width",a.size)}\n\t\t\t${c("height",a.size)}\n\t\t`};return(0,L.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\n\t\t${m("",s.typography).googleFontLink}\n\t\t${m(g,s.typography).styles}\n\n\t\t\t${l}{\n\t\t\t\t${c("justify-content",o.desktop.align)}\n\t\t\t\t${h="desktop",o.position?`\n\t\t\tposition:fixed;\n\t\t\t${c(o.position,o[h].position?.[o.position])}\n\t\t\t${c("bottom",o[h].position.bottom)}\n\t`:""}\n\t\t\t}\n\n\t\t\t${M}{\n\t\t\t\t${b[o.scrollType]}\n\t\t\t}\n\n\t\t\t${M}:hover .b-blocks-scroll-to-top-icon>svg{\n\t\t\t\t${c("rotate",r.hover.rotate>=0?r.hover.rotate+"deg":"")}\n\t\t\t}\n\n\t\t\t${g}{\n\t\t\t\t${c("color",s.normal.color)}\n\t\t\t}\n\t\t\t\n\t\t\t${y}>svg{\n\t\t\t\t${c("width",r.size)}\n\t\t\t\t${c("height",r.size)}\n\t\t\t\t${c("fill",r.color)}\n\t\t\t\t${c("transition",r.hover.transition?`all ${r.hover.transition}s ease-in-out`:"")}\n\t\t\t\t${c("rotate",r.normal.rotate>=0?r.normal.rotate+"deg":"")}\n\t\t\t}\n\n\t\t\t${N(e,i,!0,!1)}\n\t`}});var h},v=t=>{const{attributes:e,doc:o=document,win:n=window,isBackend:i=!1}=t,{scroll:r,icon:s,styles:l}=e,{scrollType:c}=r,{progress:d}=l,[p,u]=(0,a.useState)(0),[m,$]=(0,a.useState)(!1),M={strokeWidth:d.strokeSize,color:d.color,bgColor:d.strokeBg,bg:d.bg},y=(0,a.useMemo)((()=>50-M.strokeWidth/2),[M.strokeWidth]),g=(0,a.useMemo)((()=>2*Math.PI*y),[y]);(0,a.useEffect)((()=>{const t=()=>{const t=n?.pageYOffset||o?.documentElement?.scrollTop||o?.body?.scrollTop||0,e=o?.documentElement?.scrollHeight-o?.documentElement?.clientHeight,r=0===e?0:t/e*100;u(Math.min(100,Math.max(0,r))),$(!i&&t>80)};return n?.addEventListener("scroll",t,{passive:!0}),t(),()=>n?.removeEventListener("scroll",t)}),[o,n]);const b=g-p/100*g;return(0,L.jsx)("div",{className:"b-blocks-scroll-to-top-main-wrapper",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},style:{...i?{}:{opacity:m?1:0}},children:(0,L.jsxs)("div",{className:"b-blocks-scroll-to-top-wrapper "+("progress"===c?"b-blocks-scroll-to-top-progress-wrapper":""),children:[("icon"===c||"progress"===c)&&(0,L.jsx)("div",{className:"b-blocks-scroll-to-top-icon",dangerouslySetInnerHTML:{__html:s.svg}}),"progress"===c&&(0,L.jsxs)("svg",{viewBox:"0 0 100 100",children:[(0,L.jsx)("circle",{cx:"50",cy:"50",r:y,fill:M.bg,stroke:M.bgColor,strokeWidth:M.strokeWidth}),(0,L.jsx)("circle",{cx:"50",cy:"50",r:y,fill:"transparent",stroke:M.color,strokeWidth:M.strokeWidth,strokeDasharray:g,strokeDashoffset:b,strokeLinecap:"round",className:"b-blocks-scroll-to-top-progress-circle"})]}),"text"===c&&(0,L.jsx)("div",{className:"b-blocks-scroll-to-top-text",dangerouslySetInnerHTML:{__html:s.text}})]})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-scroll-to-top").forEach((e=>{const o=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(k,{attributes:o,id:e.id}),(0,L.jsx)(v,{attributes:o})]})),e?.removeAttribute("data-attributes")}))}))})();