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/image-hotspot/view.js +7 -1 2.1.2 → 2.1.8 View file →
@@ -1 +1,7 @@
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}},o="@media only screen and (max-width: 1024px)",i="@media only screen and (max-width: 640px)",r=window.React,s=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},a=(t,n)=>e(n)?`${t}: ${n};`:"",c=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:o="0px"}=t;return`${o} ${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():a("border",e(t))},l=(t,e="box")=>{let n="";return t?.map(((o,i)=>{const{hOffset:r="0px",vOffset:s="0px",blur:a="0px",spreed:c="0px",color:l="#e7f0fe",isInset:d=!1}=o||{},u=d?"inset":"",h=`${r} ${s} ${a}`,p=i+1>=t.length?"":", ";n+="text"===e?`${h} ${l}${p}`:`${h} ${c} ${l} ${u}${p}`})),n||""},d=(t,e,n=!0)=>{const{fontFamily:r="Default",fontCategory:s="sans-serif",fontVariant:c=400,fontWeight:l,isUploadFont:d=!0,fontSize:u={desktop:null,tablet:null,mobile:null},fontStyle:h,textTransform:p,textDecoration:g,lineHeight:m,letterSpace:b}=e||{},f=!n||!r||"Default"===r,y=u?.desktop||u,M=u?.tablet||y,w=u?.mobile||M,$=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},k=`\n\t\t${f?"":`font-family: '${r}', ${s};`}\n\t\t${a("font-weight",l)}\n\t\t${a("font-size",$(y))}\n\t\t${a("font-style",h)}\n\t\t${a("text-transform",p)}\n\t\t${a("text-decoration",g)}\n\t\t${a("line-height",m)}\n\t\t${a("letter-spacing",b)}\n\t`,x=c&&400!==c?"400i"===c?":ital@1":c?.includes("00i")?`: ital, wght@1, ${c?.replace("00i","00")} `:`: wght@${c} `:"",v=f?"":`https://fonts.googleapis.com/css2?family=${r?.split(" ").join("+")}${x.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||f?"":`@import url(${v});`,styles:`${t}{\n\t\t\t${k}\n\t\t}\n\t\t${o} {\n\t\t\t${t}{\n\t\t\t\t${a("font-size",$(M))}\n\t\t\t}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${a("font-size",$(w))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},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""},h=t=>{const{position:n="center center",xPosition:o=0,yPosition:i=0,attachment:r="",repeat:s="no-repeat",size:a="cover",customSize:c="0px"}=t||{},l=t=>"initial"!==t||e(t);return`\n\t\t${l(n)?`background-position: ${"custom"===n?`${o} ${i}`:n};`:""}\n\t\t${r&&l(r)?`background-attachment: ${r};`:""}\n\t\t${l(s)?`background-repeat: ${s};`:""}\n\t\t${l(a)?`background-size: ${"custom"===a?`${c} auto`:a};`:""}\n\t`},p=(t={})=>t?{desktop:e(t.url)?`background-image: ${s(t.url)}; ${h(t?.desktop)}`:"",tablet:e(t.url)?h(t?.tablet):"",mobile:e(t.url)?h(t?.mobile):""}:"",g=(t,r,s=!1)=>{const{type:c="color",color:l,gradient:d,img:u,video:h}=t||{},g="color"===c?a("background",l):"gradient"===c?(t=>{const{type:n="linear",radialType:o="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 a("background","radial"===n?`radial-gradient(${o} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(d):"image"===c?p(u).desktop:"",m="image"===c?p(u).tablet:"",b="image"===c?p(u).mobile:"",f=s?`${r}:hover`:r;return`\n\t\t${"video"===c?((t,e)=>{const{url:o,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&&o){const t=n(o);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}`})(h,r):""}\n\n\t\t${g?`${f}{\n\t\t\t${g}\n\t\t}`:""}\n\n\t\t${m?`${o} {\n\t\t\t${f}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${b?`${i} {\n\t\t\t${f}{\n\t\t\t\t${b}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},m=(t,n,o=!1)=>{const{isEnabled:i,colors:r,opacity:s=1,blend:c,filter:l="",blur:d=0,brightness:u=100,contrast:h=100,saturation:p=100,hue:m=0,position:b={top:0,right:0,bottom:0,left:0},zIndex:f=-1}=t||{},y=`${100!==u?`brightness(${u}%)`:""} ${100!==h?`contrast(${h}%)`:""} ${100!==p?`saturate(${p}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,M=`${l}: ${l?y:""}; -webkit-${l}: ${l?y:""};`,w=o?`${n}:hover::after`:`${n}::after`;return i?`\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(b.top)?b.top:0};\n\t\t\tright:${e(b.right)?b.right:0};\n\t\t\tbottom:${e(b.bottom)?b.bottom:0};\n\t\t\tleft:${e(b.left)?b.left:0};\n\t\t\tz-index:${f};\n\t\t}\n\t\t${g(r,w,!1)}\n\t\t${w}{\n\t\t\t${a("opacity",s)}\n\t\t\t${a("mix-blend-mode",c)}\n\t\t\t${M}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},b=(t,n,r=!1)=>{const s=(t,n="desktop")=>{if(!e(t))return"";const{skew:o,scale:i,rotate:r,offset:s,flipX:c,flipY:l}=t,{threeDRotate:d}=r||{},{isProportion:u}=i||{},h=[];return e(o)&&(e(o?.[n]?.x)&&h.push(`skewX(${o[n].x}deg)`),e(o?.[n]?.y)&&h.push(`skewY(${o[n].y}deg)`)),u?e(i?.[n]?.scale)&&h.push(`scale(${i[n].scale})`):(e(i?.[n]?.x)&&h.push(`scaleX(${i[n].x})`),e(i?.[n]?.y)&&h.push(`scaleY(${i[n].y})`)),e(r)&&(e(r?.[n]?.z)&&h.push(`rotateZ(${r[n].z}deg)`),d&&(e(r?.[n]?.x)&&h.push(`rotateX(${r[n].x}deg)`),e(r?.[n]?.y)&&h.push(`rotateY(${r[n].y}deg)`))),e(s)&&(e(s?.[n]?.x)&&h.push(`translateX(${s[n].x})`),e(s?.[n]?.y)&&h.push(`translateY(${s[n].y})`)),e(c)&&h.push(c?"scaleX(-1)":""),e(l)&&h.push(l?"scaleY(-1)":""),0===h.length?"":a("transform",h.join(" "))},c=r?`${n}:hover`:n;return`\n\t\t${c} {\n\t\t\t${s(t,"desktop")}\n\t\t}\n\t\t${o}{\n\t\t\t${c} {\n\t\t\t\t${s(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${i}{\n\t\t\t${c} {\n\t\t\t\t${s(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},f=t=>{const{padding:e,margin:n,height:o,width:i}=t||{},r=(t,e)=>a(t,e),s=(t,e,n)=>r(t,e?.[t]?.[n])+r(`min-${t}`,e?.min?.[n])+r(`max-${t}`,e?.max?.[n]),c=t=>a("padding",u(t)),l=t=>a("margin",u(t));return{desktop:c(e?.desktop)+l(n?.desktop)+s("height",o,"desktop")+s("width",i,"desktop"),tablet:c(e?.tablet)+l(n?.tablet)+s("height",o,"tablet")+s("width",i,"tablet"),mobile:c(e?.mobile)+l(n?.mobile)+s("height",o,"mobile")+s("width",i,"mobile")}},y=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},i=a("border-radius",u(n)),r=a("box-shadow",l(o,"box"));return c(e)+i+r};return{normal:o(e),hover:o(n)}},M=t=>{const{zIndex:n,overflow:o}=t||{},i=o?`overflow: ${o};`:"",r=t=>`${a("z-index",n?.[t])} ${a("position",e(n?.[t])?"relative":"")}`;return{desktop:r("desktop")+i,tablet:r("tablet"),mobile:r("mobile")}},w=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:i=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",s=t=>t?r:"";return{desktop:s(n),tablet:s(o),mobile:s(i)}},$=(t,n,r=!1,c=!0)=>{const{dimension:l,transform:d,background:u,borderShadow:h,mask:p,animation:$,visibility:k,responsive:x,css:v=""}=n||{},L=r?`#${t}>div>div${c?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,i=document.querySelector(o);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()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})($,t,r);const D=f(l).desktop+M(k).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:i=.4}=e||{},{transition:r=200}=n||{};return`transition: background ${o}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${r}ms ease-in-out;`})(u,h,d)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:i={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?s(n.url):`url(${(c=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02LjMyODVBMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDUwLjg1LDYuNTQ3NEw0NC41MzIsMTIuODY1MSwzOC4xNiw2LjU0NzRhMjIuMzUyNCwyMi4zNTI0LDAsMSwwLTMxLjYxMiwzMS42MWw2LjMxODEsNi4zMTc3TDYuNTQ3OCw1MC44NDdhMjIuMzUyNCwyMi4zNTI0LDAsMCwwLDMxLjYxMiwzMS42MWw2LjMxODEtNi4zMTc3TDUwLjg1LDgyLjM5MjJhMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDMxLjYxMi0zMS41OTkzWiIvPjwvc3ZnPg==",type:"flower"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1MTYsNDUuMTUxNiwwLDAsMC01Ljc3NjYtMy4zMjQxYy0uMjQ2OC0uMTE1Ny0uNjAxNi0uMzAwOC0uOTg3Mi0uNDc4MnExLjc4MTYtMS44OTcyLDMuNTg2My0zLjc3MTNjLjk0ODYtLjk4LTYuMzYyOC01LjkyMzItNy4wNDkyLTYuMzcwNUE0NC4xNTc5LDQ0LjE1NzksMCwwLDAsNjAuNzUsMTIuMjYwNmwtLjI5My0uMTQ2NSwxLjM5NTktMS41NDI1Yy45NDA5LTEuMDQ4OS02LjMzMTktNS45LTcuMDQ5Mi02LjM3QTQ0LjIxMiw0NC4yMTIsMCwwLDAsNDkuMDQyMi44NjE2Yy0uNTQtLjI0NjctMi4zMTM3LTEuMjY0OC0yLjg0NTgtLjY4NjRRMzIuNzM4MSwxNS4xNjgyLDE4LjExNTQsMjkuMDY2Yy03Ljg0MzYsNy40NS0xNi41NjYzLDE1LjU3OTEtMTguMTA4OCwyNi44Ny0uMTE1Ny44MjUzLDEuMzI2NSwxLjk3NDQsMS43NDMsMi4zMTM4YTQwLjc5OSw0MC43OTksMCwwLDAsNS4zMTM5LDQuMDU2Nyw0NC4yMTc0LDQ0LjIxNzQsMCwwLDAsNS43NjExLDMuMzRjLjY0LjI5MzEsMi4xNzUsMS4yMDMxLDIuODQ1OS42ODY0bDIuMDc0Ny0xLjU1NzljMS40NSwxLjg1ODcsNS45Njk0LDQuNzIsNi42NzEyLDUuMTc1bDEuNDg4NS45NTY0QzI0LjQwMSw3Mi43NjQ3LDIyLjkyLDc0LjYzMTEsMjEuNDcsNzYuNTI4M2MtLjkxLDEuMTg3OCw2LjI2MjUsNS44NjE1LDcuMDQ5Miw2LjM3YTQ0LjE2MzMsNDQuMTYzMywwLDAsMCw1Ljc2MTEsMy4zMzE4Yy42MDE2LjI3NzYsMi4yMjg5LDEuMjM0LDIuODQ1OS42OTQxbDkuMjU1LTguMDk4Yy44MjUyLDIuNTY4MiwxNC41Njg3LDExLjYzLDE1LjY3MTYsOS45NzIxTDkxLjA2LDQ1LjM2MjRDOTEuNjkyLDQ0LjQxMzgsODYuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",type:"sketch"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===c))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===i.type?`${a("-webkit-mask-position-x",i.x)}\n\t\t\t${a("-webkit-mask-position-y",i.y)}`:`${a("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${r};`:""}`:"";var c})(p),N=f(l).tablet+M(k).tablet+w(x,r).tablet,j=f(l).mobile+M(k).mobile+w(x,r).mobile,S=y(h).normal,z=y(h).hover,I=w(x,r).desktop;return`\n\t\t${D||S?`${L} {\n\t\t\t${D}\n\t\t\t${S}\n\t\t}`:""}\n\t\t${z?`${L}:hover {\n\t\t\t${z}\n\t\t}`:""}\n\n\t\t${I?`@media only screen and (min-width: 1025px) {\n\t\t\t${L}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${N?`${o} {\n\t\t\t${L}{\n\t\t\t\t${N}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${j?`${i} {\n\t\t\t${L}{\n\t\t\t\t${j}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g(u?.normal,L)}\n\t\t${g(u?.hover,L,!0)}\n\t\t${m(u?.overlay,L)}\n\t\t${m(u?.hoverOverlay,L,!0)}\n\t\t${e(d?.normal)?b(d?.normal,L):""}\n\t\t${e(d?.hover)?b(d?.hover,L,!0):""}\n\n\t\t${v}\n\t`.replace(/\s+/g," ")},k=window.ReactJSXRuntime,x=({attributes:t,id:e,isBackend:n=!1})=>{const{image:r,options:s,spots:h,tooltip:p,advanced:g,hotspot:m}=t,b=`#${e} .b-blocks-hotspot-image-wrapper`,f=`${b} .b-blocks-hotspot-image`,y=`${b} .b-blocks-bphb-hotspot-container`,M=`${y} .b-blocks-bphb-hotspot`,w=`${M} .b-blocks-imghp-upload-icon`,x=`${M} .b-blocks-imghp-text-icon`,v=`${M} .b-blocks-tooltip-reader`;return(0,k.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${d("",p.typo).googleFontLink}\n\t\t${d(v,p.typo).styles}\n\t\t${b}{\n\t\t\t${a("width",r.desktop.width)}\n\t\t\t${a("height",r.desktop.height)}\n\t\t}\n\t\t${m?.map(((t,e)=>`${y}#b-blocks-bphb-hotspot-container-${e}{\n\t\t\t\t${a("left",`${t.position.desktop.x}%`)}\n\t\t\t\t${a("top",`${t.position.desktop.y}%`)}\n\t\t\t}`)).join(" ")}\n\t\t${M} .b-blocks-imghp-library-icon>svg{\n\t\t\t${a("fill",h.normal.color.icon)}\n\t\t\t${a("color",h.iconColor)}\n\t\t\t${a("height",h.desktop.iconSize)}\n\t\t\t${a("width",h.desktop.iconSize)}\n\t\t}\n\t\t${M}{\n\t\t\t${a("height",h.desktop.height)}\n\t\t\t${a("width",h.desktop.width)}\n\t\t\t${a("border-radius",u(h.desktop.radius))}\n\t\t\t${a("background-color",h.normal.color.bg)}\n\t\t\t${a("padding",u(h.desktop.padding))}\n\t\t\t${c(h.normal.border)}\n\t\t}\n ${w}{\n ${a("fill",h.normal.color.icon)}\n\t\t\t${a("color",h.iconColor)}\n\t\t\t${a("height",h.desktop.iconSize)}\n\t\t\t${a("width",h.desktop.iconSize)}\n }\n ${x}{\n ${a("color",h.normal.color.icon)}\n\t\t\t${a("font-size",h.desktop.iconSize)}\n }\n\t\t\t${M}.three{\n\t\t\tborder:unset;\n\t\t\t}\n\t\t\t${M}.three>span{\n\t\t\t${c(h.normal.border)}\n\t\t\t}\n\n\t\t\t${M}>svg{\n\t\t\t${a("color",h.normal.color.icon)}\n\t\t\t${a("height",h.desktop.iconSize)}\n\t\t\t${a("width",h.desktop.iconSize)}\n\t\t}\n\t\t${M}>svg path{\n\t\t\t${a("fill",h.normal.color.icon)}\n\t\t}\n\t\t${M}:hover{\n\t\t\t${a("background-color",h.hover.color.bg)}\n\t\t\t${c(h.hover.border)}\n\t\t}\n\t\t${M}:hover>span{\n\t\t\t${a("color",h.hover.color.icon)}\n\t\t}\n\t\t${M}:hover>svg{\n\t\t\t${a("color",h.hover.color.icon)}\n\t\t}\n\t\t${M}:hover>svg path{\n\t\t\t${a("fill",h.hover.color.icon)}\n\t\t}\n\t\t${M}:where(span,img){\n\t\t\t${a("color",h.normal.color.icon)}\n\t\t\t${a("font-size",h.desktop.iconSize)}\n\t\t\t${c(h.normal.border)}\n\t\t}\n\n\t\t${v}{\n\t\t\ttransition-duration: ${s.speed}ms;\n\t\t\ttransition-delay: ${s.delay}ms;\n\t\t\t${c(p.border)}\n\t\t\t${a("box-shadow",l(p?.shadow||[]))}\n\t\t\t${a("width",p.desktop.width)}\n\t\t\t${a("background-color",p.bgColor)}\n\t\t\t${a("padding",u(p.desktop.padding))}\n\t\t\t${a("border-radius",u(p.desktop.radius))}\n\t\t}\n\t\t${v} .b-blocks-bphb-tooltip-content>*{\n\t\t\t\tcolor: ${p.textColor} !important;\n\t\t\t\tmargin:0px;\n\t\t\t}\n\t\t\t${f}{\n\t\t\t${a("width",r.desktop.width)};\n\t\t\t${a("height",r.desktop.height)};\n\t\t\t${a("object-fit",r.objectFit)}\n\t\t\t}\n\t\t${o} {\n\n\t\t${M} .b-blocks-imghp-library-icon>svg{\n\t\t\t${a("height",h.tablet.iconSize)}\n\t\t\t${a("width",h.tablet.iconSize)}\n\t\t}\n\t\t${M}{\n\t\t\t${a("height",h.tablet.height)}\n\t\t\t${a("width",h.tablet.width)}\n\t\t\t${a("border-radius",u(h.tablet.radius))}\n\t\t\t${a("padding",u(h.tablet.padding))}\n\t\t}\n ${x}{\n\t\t\t${a("font-size",h.tablet.iconSize)}\n }\n\t\t${M}>span{\n\t\t\t${a("font-size",h.tablet.iconSize)}\n\t\t}\n\n\t\t${v}{\n\t\t\t${a("width",p.tablet.width)}\n\t\t\t${a("padding",u(p.tablet.padding))}\n\t\t\t${a("border-radius",u(p.tablet.radius))}\n\t\t}\n }\n\t\t${i} {\n\t\t${M} .b-blocks-imghp-library-icon>svg{\n\t\t\t${a("height",h.mobile.iconSize)}\n\t\t\t${a("width",h.mobile.iconSize)}\n\t\t}\n\t\t${M}{\n\t\t\t${a("height",h.mobile.height)}\n\t\t\t${a("width",h.mobile.width)}\n\t\t\t${a("border-radius",h.mobile.radius)}\n\t\t\t${a("padding",u(h.mobile.padding))}\n\t\t}\n\t\t${M}>span{\n\t\t\t${a("font-size",h.mobile.iconSize)}\n\t\t\t}\n\t\t\t${x}{\n\t\t\t${a("font-size",h.mobile.iconSize)}\n\t\t\t}\n\n\t\t${v}{\n\t\t\t${a("width",p.mobile.width)}\n\t\t\t${a("padding",u(p.mobile.padding))}\n\t\t\t${a("border-radius",u(p.mobile.radius))}\n\t\t}\n\t}\n\t\t${$(e,g,n,!1)}\n\t\t`}})};var v=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],L={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function D(t,e,n){const o=[...t].map(((t,o)=>j(t,{...n,index:o,level:e+1}))).filter(Boolean);return o.length?o:null}function N(t,e={}){return"string"==typeof t?function(t,e={}){if(!t||"string"!=typeof t)return null;const{includeAllNodes:n=!1,nodeOnly:o=!1,selector:i="body > *",type:r="text/html"}=e;try{const s=(new DOMParser).parseFromString(t,r);if(n){const{childNodes:t}=s.body;return o?t:[...t].map((t=>j(t,e)))}const a=s.querySelector(i)||s.body.childNodes[0];if(!(a instanceof Node))throw new TypeError("Error parsing input");return o?a:j(a,e)}catch(t){}return null}(t,e):t instanceof Node?j(t,e):null}function j(t,e={}){if(!(t&&t instanceof Node))return null;const{actions:n=[],index:o=0,level:i=0,randomKey:s}=e;let a=t,c=`${i}-${o}`;const l=[];return s&&0===i&&(c=`${function(t=6){let e="";for(let n=t;n>0;--n)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.round(61*Math.random())];return e}()}-${c}`),Array.isArray(n)&&n.forEach((e=>{e.condition(a,c,i)&&("function"==typeof e.pre&&(a=e.pre(a,c,i),a instanceof Node||(a=t)),"function"==typeof e.post&&l.push(e.post(a,c,i)))})),l.length?l:function(t,e){const{key:n,level:o,...i}=e;switch(t.nodeType){case 1:return r.createElement((s=t.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(s)?s:s.toLowerCase()),function(t,e){const n={key:e};if(t instanceof Element){const e=t.getAttribute("class");e&&(n.className=e),[...t.attributes].forEach((t=>{switch(t.name){case"class":break;case"style":n[t.name]="string"!=typeof(e=t.value)?{}:e.split(/ ?; ?/).reduce(((t,e)=>{const[n,o]=e.split(/ ?: ?/).map(((t,e)=>0===e?t.replace(/\s+/g,""):t.trim()));if(n&&o){const e=n.replace(/(\w)-(\w)/g,((t,e,n)=>`${e}${n.toUpperCase()}`));let i=o.trim();Number.isNaN(Number(o))||(i=Number(o)),t[n.startsWith("-")?n:e]=i}return t}),{});break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[L[t.name]||t.name]=!0;break;default:n[L[t.name]||t.name]=t.value}var e}))}return n}(t,n),D(t.childNodes,o,i));case 3:{const e=t.nodeValue?.toString()??"";if(!i.allowWhiteSpaces&&/^\s+$/.test(e)&&!/[\u00A0\u202F]/.test(e))return null;if(!t.parentNode)return e;const n=t.parentNode.nodeName.toLowerCase();return v.includes(n)?(/\S/.test(e)&&console.warn(`A textNode is not allowed inside '${n}'. Your text "${e}" will be ignored`),null):e}case 8:default:return null;case 11:return D(t.childNodes,o,e)}var s}(a,{key:c,level:i,...e})}var S=Object.defineProperty,z=(t,e,n)=>((t,e,n)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),I="react-inlinesvg",T={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function E(){return!("undefined"==typeof window||!window.document?.createElement)}function A(t,...e){const n={};for(const o in t)({}).hasOwnProperty.call(t,o)&&!e.includes(o)&&(n[o]=t[o]);return n}async function O(t,e){const n=await fetch(t,e),o=n.headers.get("content-type"),[i]=(o??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some((t=>i.includes(t))))throw new Error(`Content type isn't valid: ${i}`);return n.text()}function C(t=1){return new Promise((e=>{setTimeout(e,1e3*t)}))}function R(t){const e=(0,r.useRef)(void 0);return(0,r.useEffect)((()=>{e.current=t})),e.current}function P(t){const{baseURL:e,content:n,description:o,handleError:i,hash:r,preProcessor:s,title:a,uniquifyIDs:c=!1}=t;try{let t=s?s(n):n;c&&(t=function(t,e,n){const o=t.matchAll(/\bid=(["'])([^"']+)\1/g),i=[...new Set([...o].map((t=>t[2])))];return i.length?(i.sort(((t,e)=>e.length-t.length)),t.replace(/<style[^>]*>([\S\s]*?)<\/style>/gi,((t,o)=>{let r=o;for(const t of i){const o=t.replace(/[$()*+.?[\\\]^{|}]/g,"\\$&");r=r.replace(new RegExp(`url\\((['"]?)#${o}\\1\\)`,"g"),`url($1${n}#${t}__${e}$1)`),r=r.replace(new RegExp(`#${o}(?![a-zA-Z0-9_-])`,"g"),`#${t}__${e}`)}return t.replace(o,r)}))):t}(t,r,e??""));const i=N(t,{nodeOnly:!0});if(!(i&&i instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const l=U(i,{baseURL:e,hash:r,uniquifyIDs:c});if(o){const t=l.querySelector("desc");t?.parentNode&&t.parentNode.removeChild(t);const e=document.createElementNS("http://www.w3.org/2000/svg","desc");e.innerHTML=o,l.prepend(e)}if(void 0!==a){const t=l.querySelector("title");if(t?.parentNode&&t.parentNode.removeChild(t),a){const t=document.createElementNS("http://www.w3.org/2000/svg","title");t.innerHTML=a,l.prepend(t)}}return l}catch(t){return i(t)}}function U(t,e){const{baseURL:n="",hash:o,uniquifyIDs:i}=e,r=["id","href","xlink:href","xlink:role","xlink:arcrole"],s=["href","xlink:href"];return i?([...t.children].forEach((t=>{if(t.attributes?.length){const e=Object.values(t.attributes).map((t=>{const e=t,i=/url\((.*?)\)/.exec(t.value);return i?.[1]&&(e.value=t.value.replace(i[0],`url(${n}${i[1]}__${o})`)),e}));r.forEach((t=>{const n=e.find((e=>e.name===t));var i,r;n&&(i=t,r=n.value,!s.includes(i)||!r||r.includes("#"))&&(n.value=`${n.value}__${o}`)}))}return t.children.length?U(t,e):t})),t):t}function Y(t,e){const{baseURL:n,cacheRequests:o=!0,description:i,fetchOptions:s,onError:a,onLoad:c,preProcessor:l,src:d,title:u,uniqueHash:h,uniquifyIDs:p}=t,g=(0,r.useRef)(h??function(){const t="abcdefghijklmnopqrstuvwxyz",e=`${t}${t.toUpperCase()}1234567890`;let n="";for(let t=0;t<8;t++)n+=(o=e)[Math.floor(Math.random()*o.length)];var o;return n}()),m=(0,r.useRef)(s),b=(0,r.useRef)(a),f=(0,r.useRef)(c),y=(0,r.useRef)(l);m.current=s,b.current=a,f.current=c,y.current=l;const[M,w]=(0,r.useReducer)(((t,e)=>({...t,...e})),{content:"",element:null,isCached:!1,status:T.IDLE},(n=>{if(!o||!e.isCached(d))return n;const i=e.getContent(d);try{const e=P({...t,handleError:()=>{},hash:g.current,content:i});if(!e)return{...n,content:i,isCached:!0,status:T.LOADED};const o=N(e);if(o&&(0,r.isValidElement)(o))return{content:i,element:o,isCached:!0,status:T.READY}}catch{}return{...n,content:i,isCached:!0,status:T.LOADED}})),{content:$,element:k,isCached:x,status:v}=M,L=R(t),D=R(M),j=(0,r.useRef)(!1),S=(0,r.useRef)(!1),z=(0,r.useCallback)((t=>{j.current&&(w({status:"Browser does not support SVG"===t.message?T.UNSUPPORTED:T.FAILED}),b.current?.(t))}),[]),I=(0,r.useCallback)((()=>{try{const t=N(P({baseURL:n,content:$,description:i,handleError:z,hash:g.current,preProcessor:y.current,src:d,title:u,uniquifyIDs:p}));if(!t||!(0,r.isValidElement)(t))throw new Error("Could not convert the src to a React element");w({element:t,status:T.READY})}catch(t){z(t)}}),[n,$,i,z,d,u,p]);var A;return A=()=>{if(j.current=!0,E()&&!S.current){try{if(v===T.READY)f.current?.(d,x);else if(v===T.IDLE){if(!function(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="<svg />";const e=t.firstChild;return!!e&&"http://www.w3.org/2000/svg"===e.namespaceURI}()||"undefined"==typeof window||null===window)throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");w({content:"",element:null,isCached:!1,status:T.LOADING})}}catch(t){z(t)}return S.current=!0,()=>{j.current=!1}}},(0,r.useEffect)(A,[]),(0,r.useEffect)((()=>{if(E()&&L&&L.src!==d){if(!d)return void z(new Error("Missing src"));w({content:"",element:null,isCached:!1,status:T.LOADING})}}),[z,L,d]),(0,r.useEffect)((()=>{if(v!==T.LOADING)return;const t=new AbortController;let n=!0;return(async()=>{try{const i=/^data:image\/svg[^,]*?(;base64)?,(.*)/.exec(d);let r;if(i?r=i[1]?window.atob(i[2]):decodeURIComponent(i[2]):d.includes("<svg")&&(r=d),r)return void(n&&w({content:r,isCached:!1,status:T.LOADED}));const s={...m.current,signal:t.signal};let a,c=!1;o?(c=e.isCached(d),a=await e.get(d,s)):a=await O(d,s),n&&w({content:a,isCached:c,status:T.LOADED})}catch(t){n&&"AbortError"!==t.name&&z(t)}})(),()=>{n=!1,t.abort()}}),[o,e,z,d,v]),(0,r.useEffect)((()=>{v===T.LOADED&&$&&I()}),[$,I,v]),(0,r.useEffect)((()=>{E()&&L&&L.src===d&&(L.title===u&&L.description===i||I())}),[i,I,L,d,u]),(0,r.useEffect)((()=>{D&&v===T.READY&&D.status!==T.READY&&f.current?.(d,x)}),[x,D,d,v]),{element:k,status:v}}var H=(0,r.createContext)(null),Q=new class{constructor(t={}){z(this,"cacheApi"),z(this,"cacheStore"),z(this,"subscribers",[]),z(this,"isReady",!1);const{name:e=I,persistent:n=!1}=t;this.cacheStore=new Map,n&&E()&&"caches"in window?caches.open(e).then((t=>{this.cacheApi=t})).catch((t=>{console.error(`Failed to open cache: ${t.message}`),this.cacheApi=void 0})).finally((()=>{this.isReady=!0;const t=[...this.subscribers];this.subscribers.length=0,t.forEach((t=>{try{t()}catch(t){console.error(`Error in CacheStore subscriber callback: ${t.message}`)}}))})):this.isReady=!0}onReady(t){return this.isReady?(t(),()=>{}):(this.subscribers.push(t),()=>{const e=this.subscribers.indexOf(t);e>=0&&this.subscribers.splice(e,1)})}waitForReady(){return this.isReady?Promise.resolve():new Promise((t=>{this.onReady(t)}))}async get(t,e){return await this.fetchAndCache(t,e),this.cacheStore.get(t)?.content??""}getContent(t){return this.cacheStore.get(t)?.content??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){return this.cacheStore.get(t)?.status===T.LOADED}async fetchAndCache(t,e){this.isReady||await this.waitForReady();const n=this.cacheStore.get(t);if(n?.status!==T.LOADED)if(n?.status!==T.LOADING){this.cacheStore.set(t,{content:"",status:T.LOADING});try{const n=this.cacheApi?await this.fetchFromPersistentCache(t,e):await O(t,e);this.cacheStore.set(t,{content:n,status:T.LOADED})}catch(e){const n="AbortError"===e?.name;throw this.cacheStore.set(t,{content:"",error:n?void 0:e,status:T.FAILED}),e}}else{await this.handleLoading(t,e?.signal||void 0,(async()=>{this.cacheStore.set(t,{content:"",status:T.IDLE}),await this.fetchAndCache(t,e)}));const n=this.cacheStore.get(t);if(n?.status===T.FAILED){if(n.error)throw n.error;this.cacheStore.delete(t),await this.fetchAndCache(t,e)}}}async fetchFromPersistentCache(t,e){const n=await(this.cacheApi?.match(t));if(n)return n.text();await(this.cacheApi?.add(new Request(t,e)));const o=await(this.cacheApi?.match(t));return await(o?.text())??""}async handleLoading(t,e,n){for(let n=0;n<10;n++){if(e?.aborted)throw e.reason instanceof Error?e.reason:new DOMException("The operation was aborted.","AbortError");if(this.cacheStore.get(t)?.status!==T.LOADING)return;await C(.1)}await n()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map((([t,e])=>({[t]:e})))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();await Promise.allSettled(t.map((t=>this.cacheApi.delete(t))))}this.cacheStore.clear()}};function F(t){const{children:e=null,innerRef:n,loader:o=null}=t,i=(0,r.useContext)(H)??Q,{element:s,status:a}=Y(t,i);return E()?s?(0,r.cloneElement)(s,{ref:n,...A(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs")}):[T.UNSUPPORTED,T.FAILED].includes(a)?e:o:o}location.origin,location.origin;const W=({attributes:t})=>{const{hotspot:e,image:n,preset:o}=t;return(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("div",{className:"b-blocks-hotspot-image-wrapper",children:[(0,k.jsx)("img",{src:n?.url||"https://templates.bplugins.com/wp-content/uploads/2025/10/placeholder.png",alt:n?.alt||"Hotspot Image",className:"b-blocks-hotspot-image"}),e.map(((t,e)=>(0,k.jsxs)(r.Fragment,{children:["text"===t.spotOption&&(0,k.jsx)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":"",children:(0,k.jsx)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`,children:(0,k.jsxs)("div",{className:"b-blocks-bphb-hotspot "+("default"===o?"circle":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"),children:[t.tooltip&&(0,k.jsx)("div",{className:`b-blocks-tooltip-reader ${"default"===o?"one":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`,children:(0,k.jsx)("div",{className:"b-blocks-bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})}),(0,k.jsx)("span",{className:"b-blocks-imghp-text-icon",dangerouslySetInnerHTML:{__html:t.spotText}})]})})}),"icon"===t.spotOption&&(0,k.jsx)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":"",children:(0,k.jsx)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`,children:(0,k.jsxs)("div",{className:"b-blocks-bphb-hotspot "+("default"===o?"circle":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"),children:[t.tooltip&&(0,k.jsx)("div",{className:`b-blocks-tooltip-reader ${"default"===o?"one":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`,children:(0,k.jsx)("div",{className:"bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})}),"upload"===t.icon.type&&"upload"===t.icon.type&&(0,k.jsx)("span",{className:"b-blocks-imghp-upload-icon",dangerouslySetInnerHTML:{__html:t.icon.url.upload}}),"library"===t.icon.type&&(0,k.jsx)("span",{className:"b-blocks-imghp-library-icon",dangerouslySetInnerHTML:{__html:t.icon.url.library}}),(0,k.jsx)(F,{src:t.icon,height:"auto"})]})})}),"image"===t.spotOption&&(0,k.jsx)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":"",children:(0,k.jsx)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`,children:(0,k.jsxs)("div",{className:"b-blocks-bphb-hotspot "+("default"===o?"circle":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"),children:[t.tooltip&&(0,k.jsx)("div",{className:`b-blocks-tooltip-reader ${"default"===o?"one":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`,children:(0,k.jsx)("div",{className:"b-blocks-bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})}),t.image&&(0,k.jsx)("img",{src:t.image,style:{width:"100%",height:"100%",borderRadius:"inherit",objectFit:"pointer"},alt:""})]})})})]},e)))]})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-image-hotspot").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(x,{attributes:n,id:e.id}),(0,k.jsx)(W,{attributes:n})]})),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),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}};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,o=n.toLowerCase(),i=e.value;if(this.options.removeEvents&&o.startsWith("on"))return void t.removeAttribute(n);if(this.options.removeExternalResources&&("href"===o||o.endsWith(":href"))&&!this.isAllowedUrl(i))return void t.removeAttribute(n);const r=o.replace("xlink:","");this.allowedAttributeSet.has(o)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(i)?t.removeAttribute(n):"style"===o&&this.options.sanitizeStyle&&t.setAttribute(n,this.sanitizeCss(i)):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")}};const o="@media only screen and (min-width: 1025px)",i="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",s=window.React,a=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},l=(t,n)=>e(n)?`${t}: ${n};`:"",c=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:o="0px"}=t;return`${o} ${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():l("border",e(t))},d=(t,e="box")=>{let n="";return t?.map(((o,i)=>{const{hOffset:r="0px",vOffset:s="0px",blur:a="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=o||{},p=d?"inset":"",u=`${r} ${s} ${a}`,h=i+1>=t.length?"":", ";n+="text"===e?`${u} ${c}${h}`:`${u} ${l} ${c} ${p}${h}`})),n||""},p=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:s="sans-serif",fontVariant:a=400,fontWeight:c,isUploadFont:d=!0,fontSize:p={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:h,textDecoration:m,lineHeight:g,letterSpace:f}=e||{},y=!n||!o||"Default"===o,b=p?.desktop||p,$=p?.tablet||b,w=p?.mobile||$,x=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},k=`\n\t\t${y?"":`font-family: '${o}', ${s};`}\n\t\t${l("font-weight",c)}\n\t\t${l("font-size",x(b))}\n\t\t${l("font-style",u)}\n\t\t${l("text-transform",h)}\n\t\t${l("text-decoration",m)}\n\t\t${l("line-height",g)}\n\t\t${l("letter-spacing",f)}\n\t`,M=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",v=y?"":`https://fonts.googleapis.com/css2?family=${o?.split(" ").join("+")}${M.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||y?"":`@import url(${v});`,styles:`${t}{\n\t\t\t${k}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",x($))}\n\t\t\t}\n\t\t}\n\t\t${r} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",x(w))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},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""},h=t=>{const{position:n="center center",xPosition:o=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(n)?`background-position: ${"custom"===n?`${o} ${i}`:n};`:""}\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`},m=(t={})=>t?{desktop:e(t.url)?`background-image: ${a(t.url)}; ${h(t?.desktop)}`:"",tablet:e(t.url)?h(t?.tablet):"",mobile:e(t.url)?h(t?.mobile):""}:"",g=(t,o,s=!1)=>{const{type:a="color",color:c,gradient:d,img:p,video:u}=t||{},h="color"===a?l("background",c):"gradient"===a?(t=>{const{type:n="linear",radialType:o="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 l("background","radial"===n?`radial-gradient(${o} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(d):"image"===a?m(p).desktop:"",g="image"===a?m(p).tablet:"",f="image"===a?m(p).mobile:"",y=s?`${o}:hover`:o;return`\n\t\t${"video"===a?((t,e)=>{const{url:o,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&&o){const t=n(o);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}`
2 +})(u,o):""}\n\n\t\t${h?`${y}{\n\t\t\t${h}\n\t\t}`:""}\n\n\t\t${g?`${i} {\n\t\t\t${y}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${f?`${r} {\n\t\t\t${y}{\n\t\t\t\t${f}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},f=(t,n,o=!1)=>{const{isEnabled:i,colors:r,opacity:s=1,blend:a,filter:c="",blur:d=0,brightness:p=100,contrast:u=100,saturation:h=100,hue:m=0,position:f={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},b=`${100!==p?`brightness(${p}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==h?`saturate(${h}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,$=`${c}: ${c?b:""}; -webkit-${c}: ${c?b:""};`,w=o?`${n}:hover::after`:`${n}::after`;return i?`\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(f.top)?f.top:0};\n\t\t\tright:${e(f.right)?f.right:0};\n\t\t\tbottom:${e(f.bottom)?f.bottom:0};\n\t\t\tleft:${e(f.left)?f.left:0};\n\t\t\tz-index:${y};\n\t\t}\n\t\t${g(r,w,!1)}\n\t\t${w}{\n\t\t\t${l("opacity",s)}\n\t\t\t${l("mix-blend-mode",a)}\n\t\t\t${$}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},y=(t,n,o=!1)=>{const s=(t,n="desktop")=>{if(!e(t))return"";const{skew:o,scale:i,rotate:r,offset:s,flipX:a,flipY:c}=t,{threeDRotate:d}=r||{},{isProportion:p}=i||{},u=[];return e(o)&&(e(o?.[n]?.x)&&u.push(`skewX(${o[n].x}deg)`),e(o?.[n]?.y)&&u.push(`skewY(${o[n].y}deg)`)),p?e(i?.[n]?.scale)&&u.push(`scale(${i[n].scale})`):(e(i?.[n]?.x)&&u.push(`scaleX(${i[n].x})`),e(i?.[n]?.y)&&u.push(`scaleY(${i[n].y})`)),e(r)&&(e(r?.[n]?.z)&&u.push(`rotateZ(${r[n].z}deg)`),d&&(e(r?.[n]?.x)&&u.push(`rotateX(${r[n].x}deg)`),e(r?.[n]?.y)&&u.push(`rotateY(${r[n].y}deg)`))),e(s)&&(e(s?.[n]?.x)&&u.push(`translateX(${s[n].x})`),e(s?.[n]?.y)&&u.push(`translateY(${s[n].y})`)),e(a)&&u.push(a?"scaleX(-1)":""),e(c)&&u.push(c?"scaleY(-1)":""),0===u.length?"":l("transform",u.join(" "))},a=o?`${n}:hover`:n;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`},b=t=>{const{padding:e,margin:n,height:o,width:i}=t||{},r=(t,e)=>l(t,e),s=(t,e,n)=>r(t,e?.[t]?.[n])+r(`min-${t}`,e?.min?.[n])+r(`max-${t}`,e?.max?.[n]),a=t=>l("padding",u(t)),c=t=>l("margin",u(t));return{desktop:a(e?.desktop)+c(n?.desktop)+s("height",o,"desktop")+s("width",i,"desktop"),tablet:a(e?.tablet)+c(n?.tablet)+s("height",o,"tablet")+s("width",i,"tablet"),mobile:a(e?.mobile)+c(n?.mobile)+s("height",o,"mobile")+s("width",i,"mobile")}},$=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},i=l("border-radius",u(n)),r=l("box-shadow",d(o,"box"));return c(e)+i+r};return{normal:o(e),hover:o(n)}},w=t=>{const{zIndex:n,overflow:o}=t||{},i=o?`overflow: ${o};`:"",r=t=>`${l("z-index",n?.[t])} ${l("position",e(n?.[t])?"relative":"")}`;return{desktop:r("desktop")+i,tablet:r("tablet"),mobile:r("mobile")}},x=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:i=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",s=t=>t?r:"";return{desktop:s(n),tablet:s(o),mobile:s(i)}},k=(t,n,s=!1,c=!0)=>{const{dimension:d,transform:p,background:u,borderShadow:h,mask:m,animation:k,visibility:M,responsive:v,position:L={},floating:N={},motion:D={},css:j=""}=n||{},S=s?`#${t}>div>div${c?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,i=document.querySelector(o);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()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})(k,t,s);const z=b(d).desktop+w(M).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:i=.4}=e||{},{transition:r=200}=n||{};return`transition: background ${o}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${r}ms ease-in-out;`})(u,h,p)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:i={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?a(n.url):`url(${(s=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02LjMyODVBMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDUwLjg1LDYuNTQ3NEw0NC41MzIsMTIuODY1MSwzOC4xNiw2LjU0NzRhMjIuMzUyNCwyMi4zNTI0LDAsMSwwLTMxLjYxMiwzMS42MWw2LjMxODEsNi4zMTc3TDYuNTQ3OCw1MC44NDdhMjIuMzUyNCwyMi4zNTI0LDAsMCwwLDMxLjYxMiwzMS42MWw2LjMxODEtNi4zMTc3TDUwLjg1LDgyLjM5MjJhMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDMxLjYxMi0zMS41OTkzWiIvPjwvc3ZnPg==",type:"flower"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1MTYsNDUuMTUxNiwwLDAsMC01Ljc3NjYtMy4zMjQxYy0uMjQ2OC0uMTE1Ny0uNjAxNi0uMzAwOC0uOTg3Mi0uNDc4MnExLjc4MTYtMS44OTcyLDMuNTg2My0zLjc3MTNjLjk0ODYtLjk4LTYuMzYyOC01LjkyMzItNy4wNDkyLTYuMzcwNUE0NC4xNTc5LDQ0LjE1NzksMCwwLDAsNjAuNzUsMTIuMjYwNmwtLjI5My0uMTQ2NSwxLjM5NTktMS41NDI1Yy45NDA5LTEuMDQ4OS02LjMzMTktNS45LTcuMDQ5Mi02LjM3QTQ0LjIxMiw0NC4yMTIsMCwwLDAsNDkuMDQyMi44NjE2Yy0uNTQtLjI0NjctMi4zMTM3LTEuMjY0OC0yLjg0NTgtLjY4NjRRMzIuNzM4MSwxNS4xNjgyLDE4LjExNTQsMjkuMDY2Yy03Ljg0MzYsNy40NS0xNi41NjYzLDE1LjU3OTEtMTguMTA4OCwyNi44Ny0uMTE1Ny44MjUzLDEuMzI2NSwxLjk3NDQsMS43NDMsMi4zMTM4YTQwLjc5OSw0MC43OTksMCwwLDAsNS4zMTM5LDQuMDU2Nyw0NC4yMTc0LDQ0LjIxNzQsMCwwLDAsNS43NjExLDMuMzRjLjY0LjI5MzEsMi4xNzUsMS4yMDMxLDIuODQ1OS42ODY0bDIuMDc0Ny0xLjU1NzljMS40NSwxLjg1ODcsNS45Njk0LDQuNzIsNi42NzEyLDUuMTc1bDEuNDg4NS45NTY0QzI0LjQwMSw3Mi43NjQ3LDIyLjkyLDc0LjYzMTEsMjEuNDcsNzYuNTI4M2MtLjkxLDEuMTg3OCw2LjI2MjUsNS44NjE1LDcuMDQ5Miw2LjM3YTQ0LjE2MzMsNDQuMTYzMywwLDAsMCw1Ljc2MTEsMy4zMzE4Yy42MDE2LjI3NzYsMi4yMjg5LDEuMjM0LDIuODQ1OS42OTQxbDkuMjU1LTguMDk4Yy44MjUyLDIuNTY4MiwxNC41Njg3LDExLjYzLDE1LjY3MTYsOS45NzIxTDkxLjA2LDQ1LjM2MjRDOTEuNjkyLDQ0LjQxMzgsODYuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",type:"sketch"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"
3 +}].find((t=>t.type===s))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===i.type?`${l("-webkit-mask-position-x",i.x)}\n\t\t\t${l("-webkit-mask-position-y",i.y)}`:`${l("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${r};`:""}`:"";var s})(m),E=b(d).tablet+w(M).tablet+x(v,s).tablet,A=b(d).mobile+w(M).mobile+x(v,s).mobile,T=$(h).normal,I=$(h).hover,O=x(v,s).desktop;return`\n\t\t${z||T?`${S} {\n\t\t\t${z}\n\t\t\t${T}\n\t\t}`:""}\n\t\t${I?`${S}:hover {\n\t\t\t${I}\n\t\t}`:""}\n\n\t\t${O?`${o} {\n\t\t\t${S}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${E?`${i} {\n\t\t\t${S}{\n\t\t\t\t${E}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${A?`${r} {\n\t\t\t${S}{\n\t\t\t\t${A}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g(u?.normal,S)}\n\t\t${g(u?.hover,S,!0)}\n\t\t${f(u?.overlay,S)}\n\t\t${f(u?.hoverOverlay,S,!0)}\n\t\t${e(p?.normal)?y(p?.normal,S):""}\n\t\t${e(p?.hover)?y(p?.hover,S,!0):""}\n\t\t${((t,e)=>{const{desktop:n={},tablet:o={},mobile:s={}}=t,a=(t={})=>`\n\t\t${e}{\n\t\t\t${l("position",t?.type)}\n\t\t\t${l("left",t?.horizontal?.left)}\n\t\t\t${l("right",t?.horizontal?.right)}\n\t\t\t${l("top",t?.vertical?.top)}\n\t\t\t${l("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${n?.type?a(n):""}\n\t\t\n\t\t${i}{\n\t\t\t${o?.type?a(o):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${s?.type?a(s):""}\n\t\t}\n\t`})(L,S)}\n\t\t${((t,n,o="")=>{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((n=>e(i?.[n]?.[t])))?`${i?.x?.[t]||0}px ${i?.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:s,value:t=>{const n=s?.y?.[t],o=s?.z?.[t];return e(n)||e(o)?e(o)?`1 ${e(n)?n:1} ${o}`:`1 ${n}`:""}}].forEach((({name:t,property:e,values:n,value:i})=>{const r=i("from"),s=i("to");if(!r||!s)return;const a=Number(n?.duration)>0?Number(n.duration):1e3,d=Number(n?.delay)>0?Number(n.delay):0,p=`advFloat${t}${o?`-${o}`:""}`;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${n}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(N,S,t)}\n\t\t${((t,n,s)=>{const{isEnable:a=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:u={},scale:h={},effectsRelativeTo:m="viewport",effectOn:g=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:f=!1,mouseTrack:y={},tilt:b={},sticky:$={}}=t||{},w=(t,n)=>e(t)&&!isNaN(t)?Number(t):n,x="viewport"===m,k=x?"view()":"scroll(nearest block)",M=[],v=[],L=[],N=[],D=String(s??"").replace(/[^a-zA-Z0-9]/g,""),j=(t,e,n)=>{M.push(`@keyframes advMe${t}${D}{ ${e} }`),v.push(`advMe${t}${D}`),L.push(k),N.push((t=>{const e=w(t?.top,0),n=w(t?.bottom,100),o=Math.min(e,n),i=Math.max(e,n);return x?`cover ${o}% ${i>=90?"contain 100%":`cover ${i}%`}`:`min(${3*o}vh, ${o}%) min(${3*i}vh, ${i}%)`})(n))};if(a){const t=l?.direction,e=c?.direction,n=t?100*w(l?.speed,4):0,o=e?100*w(c?.speed,4):0;if(n||o){const i="up"===t?-n:n,r="to-left"===e?-o:o,s=[n&&l,o&&c].filter(Boolean);j("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${i}px; }`,{top:Math.min(...s.map((t=>w(t?.top,0)))),bottom:Math.max(...s.map((t=>w(t?.bottom,100))))})}const i=d?.direction;if(i){const t=Math.max(0,1-w(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&&j("Opacity",e,d)}const r=p?.direction;if(r){const t=3*w(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&&j("Blur",e,p)}const s=u?.direction;if(s){const t=20*w(u?.level,4);j("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===s?-t:t}deg; }`,u)}if(h?.direction){const t=.15*w(h?.level,4),e=Math.max(0,1-t),n=1+t,o={"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; }`}[h.direction];o&&j("Scale",o,h)}}const S=[];if(f){if(y?.direction){const t="direct"===y?.direction?100:-100;S.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);S.push(((e,n)=>`perspective(1000px) rotateX(${(n*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const z=(t,e,o)=>{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(n)||{x:0,y:0};if(s.rate=e,s.build=o,r.items.set(n,s),r.bound)return;r.bound=!0;const a=e=>{const n=r.last?Math.min(e-r.last,100):16.7;r.last=e;let o=!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*n/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,o=!0),s.style.transform=e.build(e.x,e.y)})),r.frame=o?i.requestAnimationFrame(a):0,r.last=o?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(S.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*w(y?.speed,w(b?.speed,4))),e=(t,e)=>S.map((n=>n(t,e))).join(" ");z(document,t,e),z(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const E=t=>$?.[t]||("desktop"===t?$?.undefined:""),A=n.split(">")[0],T=t=>{const e=E(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?E("desktop"):"mobile"===t?E("tablet")||E("desktop"):"")(t)?"position: static;":""},I=Array.isArray(g)?g:e(g)?[g]:[],O=t=>!I.length||I.includes(t)?"":`${n}{ animation-name: none; }`;return`\n\t\t${v.length?`\n\t\t${M.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${n}{\n\t\t\t\tanimation-name: ${v.join(", ")};\n\t\t\t\tanimation-duration: ${v.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${v.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${v.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${v.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${L.join(", ")};\n\t\t\t\tanimation-range: ${N.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${o}{ ${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${S.length?`${n}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${T("desktop")?`${A}{ ${T("desktop")} }`:""}\n\t\t${T("tablet")?`${i}{ ${A}{ ${T("tablet")} } }`:""}\n\t\t${T("mobile")?`${r}{ ${A}{ ${T("mobile")} } }`:""}\n\t`})(D,S,t)}\n\t\t${j}\n\t`.replace(/\s+/g," ")},M=window.ReactJSXRuntime,v=({attributes:t,id:e,isBackend:n=!1})=>{const{image:o,options:s,spots:a,tooltip:h,advanced:m,hotspot:g}=t,f=`#${e} .b-blocks-hotspot-image-wrapper`,y=`${f} .b-blocks-hotspot-image`,b=`${f} .b-blocks-bphb-hotspot-container`,$=`${b} .b-blocks-bphb-hotspot`,w=`${$} .b-blocks-imghp-upload-icon`,x=`${$} .b-blocks-imghp-text-icon`,v=`${$} .b-blocks-tooltip-reader`;return(0,M.jsx)("style",{dangerouslySetInnerHTML:{
4 +__html:`\n\t\t${p("",h.typo).googleFontLink}\n\t\t${p(v,h.typo).styles}\n\t\t${f}{\n\t\t\t${l("width",o.desktop.width)}\n\t\t\t${l("height",o.desktop.height)}\n\t\t}\n\t\t${g?.map(((t,e)=>`${b}#b-blocks-bphb-hotspot-container-${e}{\n\t\t\t\t${l("left",`${t.position.desktop.x}%`)}\n\t\t\t\t${l("top",`${t.position.desktop.y}%`)}\n\t\t\t}`)).join(" ")}\n\t\t${$} .b-blocks-imghp-library-icon>svg{\n\t\t\t${l("fill",a.normal.color.icon)}\n\t\t\t${l("color",a.iconColor)}\n\t\t\t${l("height",a.desktop.iconSize)}\n\t\t\t${l("width",a.desktop.iconSize)}\n\t\t}\n\t\t${$}{\n\t\t\t${l("height",a.desktop.height)}\n\t\t\t${l("width",a.desktop.width)}\n\t\t\t${l("border-radius",u(a.desktop.radius))}\n\t\t\t${l("background-color",a.normal.color.bg)}\n\t\t\t${l("padding",u(a.desktop.padding))}\n\t\t\t${c(a.normal.border)}\n\t\t}\n ${w}{\n ${l("fill",a.normal.color.icon)}\n\t\t\t${l("color",a.iconColor)}\n\t\t\t${l("height",a.desktop.iconSize)}\n\t\t\t${l("width",a.desktop.iconSize)}\n }\n ${x}{\n ${l("color",a.normal.color.icon)}\n\t\t\t${l("font-size",a.desktop.iconSize)}\n }\n\t\t\t${$}.three{\n\t\t\tborder:unset;\n\t\t\t}\n\t\t\t${$}.three>span{\n\t\t\t${c(a.normal.border)}\n\t\t\t}\n\n\t\t\t${$}>svg{\n\t\t\t${l("color",a.normal.color.icon)}\n\t\t\t${l("height",a.desktop.iconSize)}\n\t\t\t${l("width",a.desktop.iconSize)}\n\t\t}\n\t\t${$}>svg path{\n\t\t\t${l("fill",a.normal.color.icon)}\n\t\t}\n\t\t${$}:hover{\n\t\t\t${l("background-color",a.hover.color.bg)}\n\t\t\t${c(a.hover.border)}\n\t\t}\n\t\t${$}:hover>span{\n\t\t\t${l("color",a.hover.color.icon)}\n\t\t}\n\t\t${$}:hover>svg{\n\t\t\t${l("color",a.hover.color.icon)}\n\t\t}\n\t\t${$}:hover>svg path{\n\t\t\t${l("fill",a.hover.color.icon)}\n\t\t}\n\t\t${$}:where(span,img){\n\t\t\t${l("color",a.normal.color.icon)}\n\t\t\t${l("font-size",a.desktop.iconSize)}\n\t\t\t${c(a.normal.border)}\n\t\t}\n\n\t\t${v}{\n\t\t\ttransition-duration: ${s.speed}ms;\n\t\t\ttransition-delay: ${s.delay}ms;\n\t\t\t${c(h.border)}\n\t\t\t${l("box-shadow",d(h?.shadow||[]))}\n\t\t\t${l("width",h.desktop.width)}\n\t\t\t${l("background-color",h.bgColor)}\n\t\t\t${l("padding",u(h.desktop.padding))}\n\t\t\t${l("border-radius",u(h.desktop.radius))}\n\t\t}\n\t\t${v} .b-blocks-bphb-tooltip-content>*{\n\t\t\t\tcolor: ${h.textColor} !important;\n\t\t\t\tmargin:0px;\n\t\t\t}\n\t\t\t${y}{\n\t\t\t${l("width",o.desktop.width)};\n\t\t\t${l("height",o.desktop.height)};\n\t\t\t${l("object-fit",o.objectFit)}\n\t\t\t}\n\t\t${i} {\n\n\t\t${$} .b-blocks-imghp-library-icon>svg{\n\t\t\t${l("height",a.tablet.iconSize)}\n\t\t\t${l("width",a.tablet.iconSize)}\n\t\t}\n\t\t${$}{\n\t\t\t${l("height",a.tablet.height)}\n\t\t\t${l("width",a.tablet.width)}\n\t\t\t${l("border-radius",u(a.tablet.radius))}\n\t\t\t${l("padding",u(a.tablet.padding))}\n\t\t}\n ${x}{\n\t\t\t${l("font-size",a.tablet.iconSize)}\n }\n\t\t${$}>span{\n\t\t\t${l("font-size",a.tablet.iconSize)}\n\t\t}\n\n\t\t${v}{\n\t\t\t${l("width",h.tablet.width)}\n\t\t\t${l("padding",u(h.tablet.padding))}\n\t\t\t${l("border-radius",u(h.tablet.radius))}\n\t\t}\n }\n\t\t${r} {\n\t\t${$} .b-blocks-imghp-library-icon>svg{\n\t\t\t${l("height",a.mobile.iconSize)}\n\t\t\t${l("width",a.mobile.iconSize)}\n\t\t}\n\t\t${$}{\n\t\t\t${l("height",a.mobile.height)}\n\t\t\t${l("width",a.mobile.width)}\n\t\t\t${l("border-radius",a.mobile.radius)}\n\t\t\t${l("padding",u(a.mobile.padding))}\n\t\t}\n\t\t${$}>span{\n\t\t\t${l("font-size",a.mobile.iconSize)}\n\t\t\t}\n\t\t\t${x}{\n\t\t\t${l("font-size",a.mobile.iconSize)}\n\t\t\t}\n\n\t\t${v}{\n\t\t\t${l("width",h.mobile.width)}\n\t\t\t${l("padding",u(h.mobile.padding))}\n\t\t\t${l("border-radius",u(h.mobile.radius))}\n\t\t}\n\t}\n\t\t${k(e,m,n,!1)}\n\t\t`}})};var L=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],N={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",
5 +keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function D(t,e,n){const o=[...t].map(((t,o)=>S(t,{...n,index:o,level:e+1}))).filter(Boolean);return o.length?o:null}function j(t,e={}){return"string"==typeof t?function(t,e={}){if(!t||"string"!=typeof t)return null;const{includeAllNodes:n=!1,nodeOnly:o=!1,selector:i="body > *",type:r="text/html"}=e;try{const s=(new DOMParser).parseFromString(t,r);if(n){const{childNodes:t}=s.body;return o?t:[...t].map((t=>S(t,e)))}const a=s.querySelector(i)||s.body.childNodes[0];if(!(a instanceof Node))throw new TypeError("Error parsing input");return o?a:S(a,e)}catch(t){}return null}(t,e):t instanceof Node?S(t,e):null}function S(t,e={}){if(!(t&&t instanceof Node))return null;const{actions:n=[],index:o=0,level:i=0,randomKey:r}=e;let a=t,l=`${i}-${o}`;const c=[];return r&&0===i&&(l=`${function(t=6){let e="";for(let n=t;n>0;--n)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.round(61*Math.random())];return e}()}-${l}`),Array.isArray(n)&&n.forEach((e=>{e.condition(a,l,i)&&("function"==typeof e.pre&&(a=e.pre(a,l,i),a instanceof Node||(a=t)),"function"==typeof e.post&&c.push(e.post(a,l,i)))})),c.length?c:function(t,e){const{key:n,level:o,...i}=e;switch(t.nodeType){case 1:return s.createElement((r=t.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(r)?r:r.toLowerCase()),function(t,e){const n={key:e};if(t instanceof Element){const e=t.getAttribute("class");e&&(n.className=e),[...t.attributes].forEach((t=>{switch(t.name){case"class":break;case"style":n[t.name]="string"!=typeof(e=t.value)?{}:e.split(/ ?; ?/).reduce(((t,e)=>{const[n,o]=e.split(/ ?: ?/).map(((t,e)=>0===e?t.replace(/\s+/g,""):t.trim()));if(n&&o){const e=n.replace(/(\w)-(\w)/g,((t,e,n)=>`${e}${n.toUpperCase()}`));let i=o.trim();Number.isNaN(Number(o))||(i=Number(o)),t[n.startsWith("-")?n:e]=i}return t}),{});break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[N[t.name]||t.name]=!0;break;default:n[N[t.name]||t.name]=t.value}var e}))}return n}(t,n),D(t.childNodes,o,i));case 3:{const e=t.nodeValue?.toString()??"";if(!i.allowWhiteSpaces&&/^\s+$/.test(e)&&!/[\u00A0\u202F]/.test(e))return null;if(!t.parentNode)return e;const n=t.parentNode.nodeName.toLowerCase();return L.includes(n)?(/\S/.test(e)&&console.warn(`A textNode is not allowed inside '${n}'. Your text "${e}" will be ignored`),null):e}case 8:default:return null;case 11:return D(t.childNodes,o,e)}var r}(a,{key:l,level:i,...e})}var z=Object.defineProperty,E=(t,e,n)=>((t,e,n)=>e in t?z(t,e,{enumerable:!0,configurable:!0,
6 +writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),A="react-inlinesvg",T={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function I(){return!("undefined"==typeof window||!window.document?.createElement)}function O(t,...e){const n={};for(const o in t)({}).hasOwnProperty.call(t,o)&&!e.includes(o)&&(n[o]=t[o]);return n}async function C(t,e){const n=await fetch(t,e),o=n.headers.get("content-type"),[i]=(o??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some((t=>i.includes(t))))throw new Error(`Content type isn't valid: ${i}`);return n.text()}function R(t=1){return new Promise((e=>{setTimeout(e,1e3*t)}))}function P(t){const e=(0,s.useRef)(void 0);return(0,s.useEffect)((()=>{e.current=t})),e.current}function U(t){const{baseURL:e,content:n,description:o,handleError:i,hash:r,preProcessor:s,title:a,uniquifyIDs:l=!1}=t;try{let t=s?s(n):n;l&&(t=function(t,e,n){const o=t.matchAll(/\bid=(["'])([^"']+)\1/g),i=[...new Set([...o].map((t=>t[2])))];return i.length?(i.sort(((t,e)=>e.length-t.length)),t.replace(/<style[^>]*>([\S\s]*?)<\/style>/gi,((t,o)=>{let r=o;for(const t of i){const o=t.replace(/[$()*+.?[\\\]^{|}]/g,"\\$&");r=r.replace(new RegExp(`url\\((['"]?)#${o}\\1\\)`,"g"),`url($1${n}#${t}__${e}$1)`),r=r.replace(new RegExp(`#${o}(?![a-zA-Z0-9_-])`,"g"),`#${t}__${e}`)}return t.replace(o,r)}))):t}(t,r,e??""));const i=j(t,{nodeOnly:!0});if(!(i&&i instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const c=Y(i,{baseURL:e,hash:r,uniquifyIDs:l});if(o){const t=c.querySelector("desc");t?.parentNode&&t.parentNode.removeChild(t);const e=document.createElementNS("http://www.w3.org/2000/svg","desc");e.innerHTML=o,c.prepend(e)}if(void 0!==a){const t=c.querySelector("title");if(t?.parentNode&&t.parentNode.removeChild(t),a){const t=document.createElementNS("http://www.w3.org/2000/svg","title");t.innerHTML=a,c.prepend(t)}}return c}catch(t){return i(t)}}function Y(t,e){const{baseURL:n="",hash:o,uniquifyIDs:i}=e,r=["id","href","xlink:href","xlink:role","xlink:arcrole"],s=["href","xlink:href"];return i?([...t.children].forEach((t=>{if(t.attributes?.length){const e=Object.values(t.attributes).map((t=>{const e=t,i=/url\((.*?)\)/.exec(t.value);return i?.[1]&&(e.value=t.value.replace(i[0],`url(${n}${i[1]}__${o})`)),e}));r.forEach((t=>{const n=e.find((e=>e.name===t));var i,r;n&&(i=t,r=n.value,!s.includes(i)||!r||r.includes("#"))&&(n.value=`${n.value}__${o}`)}))}return t.children.length?Y(t,e):t})),t):t}function H(t,e){const{baseURL:n,cacheRequests:o=!0,description:i,fetchOptions:r,onError:a,onLoad:l,preProcessor:c,src:d,title:p,uniqueHash:u,uniquifyIDs:h}=t,m=(0,s.useRef)(u??function(){const t="abcdefghijklmnopqrstuvwxyz",e=`${t}${t.toUpperCase()}1234567890`;let n="";for(let t=0;t<8;t++)n+=(o=e)[Math.floor(Math.random()*o.length)];var o;return n}()),g=(0,s.useRef)(r),f=(0,s.useRef)(a),y=(0,s.useRef)(l),b=(0,s.useRef)(c);g.current=r,f.current=a,y.current=l,b.current=c;const[$,w]=(0,s.useReducer)(((t,e)=>({...t,...e})),{content:"",element:null,isCached:!1,status:T.IDLE},(n=>{if(!o||!e.isCached(d))return n;const i=e.getContent(d);try{const e=U({...t,handleError:()=>{},hash:m.current,content:i});if(!e)return{...n,content:i,isCached:!0,status:T.LOADED};const o=j(e);if(o&&(0,s.isValidElement)(o))return{content:i,element:o,isCached:!0,status:T.READY}}catch{}return{...n,content:i,isCached:!0,status:T.LOADED}})),{content:x,element:k,isCached:M,status:v}=$,L=P(t),N=P($),D=(0,s.useRef)(!1),S=(0,s.useRef)(!1),z=(0,s.useCallback)((t=>{D.current&&(w({status:"Browser does not support SVG"===t.message?T.UNSUPPORTED:T.FAILED}),f.current?.(t))}),[]),E=(0,s.useCallback)((()=>{try{const t=j(U({baseURL:n,content:x,description:i,handleError:z,hash:m.current,preProcessor:b.current,src:d,title:p,uniquifyIDs:h}));if(!t||!(0,s.isValidElement)(t))throw new Error("Could not convert the src to a React element");w({element:t,status:T.READY})}catch(t){z(t)}}),[n,x,i,z,d,p,h]);var A;return A=()=>{if(D.current=!0,I()&&!S.current){try{if(v===T.READY)y.current?.(d,M);else if(v===T.IDLE){if(!function(){if(!document)return!1;const t=document.createElement("div");t.innerHTML="<svg />";const e=t.firstChild;return!!e&&"http://www.w3.org/2000/svg"===e.namespaceURI}()||"undefined"==typeof window||null===window)throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");w({content:"",element:null,isCached:!1,status:T.LOADING})}}catch(t){z(t)}return S.current=!0,()=>{D.current=!1}}},(0,s.useEffect)(A,[]),(0,s.useEffect)((()=>{if(I()&&L&&L.src!==d){if(!d)return void z(new Error("Missing src"));w({content:"",element:null,isCached:!1,status:T.LOADING})}}),[z,L,d]),(0,s.useEffect)((()=>{if(v!==T.LOADING)return;const t=new AbortController;let n=!0;return(async()=>{try{const i=/^data:image\/svg[^,]*?(;base64)?,(.*)/.exec(d);let r;if(i?r=i[1]?window.atob(i[2]):decodeURIComponent(i[2]):d.includes("<svg")&&(r=d),r)return void(n&&w({content:r,isCached:!1,status:T.LOADED}));const s={...g.current,signal:t.signal};let a,l=!1;o?(l=e.isCached(d),a=await e.get(d,s)):a=await C(d,s),n&&w({content:a,isCached:l,status:T.LOADED})}catch(t){n&&"AbortError"!==t.name&&z(t)}})(),()=>{n=!1,t.abort()}}),[o,e,z,d,v]),(0,s.useEffect)((()=>{v===T.LOADED&&x&&E()}),[x,E,v]),(0,s.useEffect)((()=>{I()&&L&&L.src===d&&(L.title===p&&L.description===i||E())}),[i,E,L,d,p]),(0,s.useEffect)((()=>{N&&v===T.READY&&N.status!==T.READY&&y.current?.(d,M)}),[M,N,d,v]),{element:k,status:v}}var Q=(0,s.createContext)(null),F=new class{constructor(t={}){E(this,"cacheApi"),E(this,"cacheStore"),E(this,"subscribers",[]),E(this,"isReady",!1);const{name:e=A,persistent:n=!1}=t;this.cacheStore=new Map,n&&I()&&"caches"in window?caches.open(e).then((t=>{this.cacheApi=t})).catch((t=>{console.error(`Failed to open cache: ${t.message}`),this.cacheApi=void 0})).finally((()=>{this.isReady=!0;const t=[...this.subscribers];this.subscribers.length=0,t.forEach((t=>{try{t()}catch(t){console.error(`Error in CacheStore subscriber callback: ${t.message}`)}}))})):this.isReady=!0}onReady(t){return this.isReady?(t(),()=>{}):(this.subscribers.push(t),()=>{const e=this.subscribers.indexOf(t);e>=0&&this.subscribers.splice(e,1)})}waitForReady(){return this.isReady?Promise.resolve():new Promise((t=>{this.onReady(t)}))}async get(t,e){return await this.fetchAndCache(t,e),this.cacheStore.get(t)?.content??""}getContent(t){return this.cacheStore.get(t)?.content??""}set(t,e){this.cacheStore.set(t,e)}isCached(t){return this.cacheStore.get(t)?.status===T.LOADED}async fetchAndCache(t,e){this.isReady||await this.waitForReady();const n=this.cacheStore.get(t);if(n?.status!==T.LOADED)if(n?.status!==T.LOADING){this.cacheStore.set(t,{content:"",status:T.LOADING});try{const n=this.cacheApi?await this.fetchFromPersistentCache(t,e):await C(t,e);this.cacheStore.set(t,{content:n,status:T.LOADED})}catch(e){const n="AbortError"===e?.name;throw this.cacheStore.set(t,{content:"",error:n?void 0:e,status:T.FAILED}),e}}else{await this.handleLoading(t,e?.signal||void 0,(async()=>{this.cacheStore.set(t,{content:"",status:T.IDLE}),await this.fetchAndCache(t,e)}));const n=this.cacheStore.get(t);if(n?.status===T.FAILED){if(n.error)throw n.error;this.cacheStore.delete(t),await this.fetchAndCache(t,e)}}}async fetchFromPersistentCache(t,e){const n=await(this.cacheApi?.match(t));if(n)return n.text();await(this.cacheApi?.add(new Request(t,e)));const o=await(this.cacheApi?.match(t));return await(o?.text())??""}async handleLoading(t,e,n){for(let n=0;n<10;n++){if(e?.aborted)throw e.reason instanceof Error?e.reason:new DOMException("The operation was aborted.","AbortError");if(this.cacheStore.get(t)?.status!==T.LOADING)return;await R(.1)}await n()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map((([t,e])=>({[t]:e})))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){
7 +const t=await this.cacheApi.keys();await Promise.allSettled(t.map((t=>this.cacheApi.delete(t))))}this.cacheStore.clear()}};function q(t){const{children:e=null,innerRef:n,loader:o=null}=t,i=(0,s.useContext)(Q)??F,{element:r,status:a}=H(t,i);return I()?r?(0,s.cloneElement)(r,{ref:n,...O(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs")}):[T.UNSUPPORTED,T.FAILED].includes(a)?e:o:o}location.origin,location.origin;const W=({attributes:t})=>{const{hotspot:e,image:n,preset:o}=t;return(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)("div",{className:"b-blocks-hotspot-image-wrapper",children:[(0,M.jsx)("img",{src:n?.url||"https://templates.bplugins.com/wp-content/uploads/2025/10/placeholder.png",alt:n?.alt||"Hotspot Image",className:"b-blocks-hotspot-image"}),e.map(((t,e)=>(0,M.jsxs)(s.Fragment,{children:["text"===t.spotOption&&(0,M.jsx)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":"",children:(0,M.jsx)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`,children:(0,M.jsxs)("div",{className:"b-blocks-bphb-hotspot "+("default"===o?"circle":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"),children:[t.tooltip&&(0,M.jsx)("div",{className:`b-blocks-tooltip-reader ${"default"===o?"one":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`,children:(0,M.jsx)("div",{className:"b-blocks-bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})}),(0,M.jsx)("span",{className:"b-blocks-imghp-text-icon",dangerouslySetInnerHTML:{__html:t.spotText}})]})})}),"icon"===t.spotOption&&(0,M.jsx)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":"",children:(0,M.jsx)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`,children:(0,M.jsxs)("div",{className:"b-blocks-bphb-hotspot "+("default"===o?"circle":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"),children:[t.tooltip&&(0,M.jsx)("div",{className:`b-blocks-tooltip-reader ${"default"===o?"one":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`,children:(0,M.jsx)("div",{className:"bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})}),"upload"===t.icon.type&&"upload"===t.icon.type&&(0,M.jsx)("span",{className:"b-blocks-imghp-upload-icon",dangerouslySetInnerHTML:{__html:t.icon.url.upload}}),"library"===t.icon.type&&(0,M.jsx)("span",{className:"b-blocks-imghp-library-icon",dangerouslySetInnerHTML:{__html:t.icon.url.library}}),(0,M.jsx)(q,{src:t.icon,height:"auto"})]})})}),"image"===t.spotOption&&(0,M.jsx)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":"",children:(0,M.jsx)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`,children:(0,M.jsxs)("div",{className:"b-blocks-bphb-hotspot "+("default"===o?"circle":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"),children:[t.tooltip&&(0,M.jsx)("div",{className:`b-blocks-tooltip-reader ${"default"===o?"one":"themetwo"===o?"two":"themethree"===o?"three":"themefour"===o?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`,children:(0,M.jsx)("div",{className:"b-blocks-bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})}),t.image&&(0,M.jsx)("img",{src:t.image,style:{width:"100%",height:"100%",borderRadius:"inherit",objectFit:"pointer"},alt:""})]})})})]},e)))]})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-image-hotspot").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(v,{attributes:n,id:e.id}),(0,M.jsx)(W,{attributes:n})]})),e?.removeAttribute("data-attributes")}))}))})();