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.0.42 → 2.1.8 View file →
@@ -1 +1,7 @@
1 -(()=>{"use strict";var t={5338:(t,e,n)=>{var o=n(5795);e.H=o.createRoot,o.hydrateRoot},5795:t=>{t.exports=window.ReactDOM}},e={};const n=window.React;var o=function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}(5338);const r=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),i="@media only screen and (max-width: 1024px)",a="@media only screen and (max-width: 640px)",s=(t,e,n=!1)=>r(e)?`${t}: ${e}${n?" !important":""};`:"",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():s("border",e(t))},l=(t,e="box")=>{let n="";return t?.map(((o,r)=>{const{hOffset:i="0px",vOffset:a="0px",blur:s="0px",spreed:c="0px",color:l="#e7f0fe",isInset:d=!1}=o||{},u=d?"inset":"",h=`${i} ${a} ${s}`,p=r+1>=t.length?"":", ";n+="text"===e?`${h} ${l}${p}`:`${h} ${c} ${l} ${u}${p}`})),n||""},d=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:r="sans-serif",fontVariant:c=400,fontWeight:l,isUploadFont:d=!0,fontSize:u={desktop:null,tablet:null,mobile:null},fontStyle:h,textTransform:p,textDecoration:m,lineHeight:g,letterSpace:b}=e||{},y=!n||!o||"Default"===o,f=u?.desktop||u,M=u?.tablet||f,$=u?.mobile||M,w=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}', ${r};`}\n\t\t${s("font-weight",l)}\n\t\t${s("font-size",w(f))}\n\t\t${s("font-style",h)}\n\t\t${s("text-transform",p)}\n\t\t${s("text-decoration",m)}\n\t\t${s("line-height",g)}\n\t\t${s("letter-spacing",b)}\n\t`,v=c&&400!==c?"400i"===c?":ital@1":c?.includes("00i")?`: ital, wght@1, ${c?.replace("00i","00")} `:`: wght@${c} `:"",x=y?"":`https://fonts.googleapis.com/css2?family=${o?.split(" ").join("+")}${v.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||y?"":`@import url(${x});`,styles:`${t}{\n\t\t\t${k}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${s("font-size",w(M))}\n\t\t\t}\n\t\t}\n\t\t${a} {\n\t\t\t${t}{\n\t\t\t\t${s("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:e="center center",xPosition:n=0,yPosition:o=0,attachment:i="",repeat:a="no-repeat",size:s="cover",customSize:c="0px"}=t||{},l=t=>"initial"!==t||r(t);return`\n\t\t${l(e)?`background-position: ${"custom"===e?`${n} ${o}`:e};`:""}\n\t\t${i&&l(i)?`background-attachment: ${i};`:""}\n\t\t${l(a)?`background-repeat: ${a};`:""}\n\t\t${l(s)?`background-size: ${"custom"===s?`${c} auto`:s};`:""}\n\t`},p=(t={})=>t?{desktop:r(t.url)?`background-image: url(${t.url}); ${h(t?.desktop)}`:"",tablet:r(t.url)?h(t?.tablet):"",mobile:r(t.url)?h(t?.mobile):""}:"",m=(t,e,n=!1)=>{const{type:o="color",color:c,gradient:l,img:d,video:u}=t||{},h="color"===o?s("background",c):"gradient"===o?(t=>{const{type:e="linear",radialType:n="ellipse",colors:o=[],centerPositions:i={x:0,y:0},angel:a=0}=t||{};if(r(t)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),r=`linear-gradient(${a}deg, ${t})`;return s("background","radial"===e?`radial-gradient(${n} at ${i?.x}% ${i?.y}%,${t})`:r)}return""})(l):"image"===o?p(d).desktop:"",m="image"===o?p(d).tablet:"",g="image"===o?p(d).mobile:"",b=n?`${e}:hover`:e;return`\n\t\t${"video"===o?((t,e)=>{const{url:n,loop:o}=t||{},r=document.querySelector(e),i=r?.querySelector(".bPlVideo"),a=document.createElement("video");return a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),i||r&&n&&(a.innerHTML=`<source src=${n}></source>`,r.appendChild(a)),a.loop=o,a.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(u,e):""}\n\n\t\t${h?`${b}{\n\t\t\t${h}\n\t\t}`:""}\n\n\t\t${m?`${i} {\n\t\t\t${b}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g?`${a} {\n\t\t\t${b}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},g=(t,e,n=!1)=>{const{isEnabled:o,colors:i,opacity:a=1,blend:c,filter:l="",blur:d=0,brightness:u=100,contrast:h=100,saturation:p=100,hue:g=0,position:b={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},f=`${100!==u?`brightness(${u}%)`:""} ${100!==h?`contrast(${h}%)`:""} ${100!==p?`saturate(${p}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==g?`hue-rotate(${g}deg)`:""}`,M=`${l}: ${l?f:""}; -webkit-${l}: ${l?f:""};`,$=n?`${e}:hover::after`:`${e}::after`;return o?`\n\t\t${e}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${e}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${r(b.top)?b.top:0};\n\t\t\tright:${r(b.right)?b.right:0};\n\t\t\tbottom:${r(b.bottom)?b.bottom:0};\n\t\t\tleft:${r(b.left)?b.left:0};\n\t\t\tz-index:${y};\n\t\t}\n\t\t${m(i,$,!1)}\n\t\t${$}{\n\t\t\t${s("opacity",a)}\n\t\t\t${s("mix-blend-mode",c)}\n\t\t\t${M}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},b=(t,e,n=!1)=>{const o=(t,e="desktop")=>{if(!r(t))return"";const{skew:n,scale:o,rotate:i,offset:a,flipX:c,flipY:l}=t,{threeDRotate:d}=i||{},{isProportion:u}=o||{},h=[];return r(n)&&(r(n?.[e]?.x)&&h.push(`skewX(${n[e].x}deg)`),r(n?.[e]?.y)&&h.push(`skewY(${n[e].y}deg)`)),u?r(o?.[e]?.scale)&&h.push(`scale(${o[e].scale})`):(r(o?.[e]?.x)&&h.push(`scaleX(${o[e].x})`),r(o?.[e]?.y)&&h.push(`scaleY(${o[e].y})`)),r(i)&&(r(i?.[e]?.z)&&h.push(`rotateZ(${i[e].z}deg)`),d&&(r(i?.[e]?.x)&&h.push(`rotateX(${i[e].x}deg)`),r(i?.[e]?.y)&&h.push(`rotateY(${i[e].y}deg)`))),r(a)&&(r(a?.[e]?.x)&&h.push(`translateX(${a[e].x})`),r(a?.[e]?.y)&&h.push(`translateY(${a[e].y})`)),r(c)&&h.push(c?"scaleX(-1)":""),r(l)&&h.push(l?"scaleY(-1)":""),0===h.length?"":s("transform",h.join(" "))},c=n?`${e}:hover`:e;return`\n\t\t${c} {\n\t\t\t${o(t,"desktop")}\n\t\t}\n\t\t${i}{\n\t\t\t${c} {\n\t\t\t\t${o(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${a}{\n\t\t\t${c} {\n\t\t\t\t${o(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},y=t=>{const{padding:e,margin:n,height:o,width:r}=t||{},i=(t,e)=>s(t,e),a=(t,e,n)=>i(t,e?.[t]?.[n])+i(`min-${t}`,e?.min?.[n])+i(`max-${t}`,e?.max?.[n]),c=t=>s("padding",u(t)),l=t=>s("margin",u(t));return{desktop:c(e?.desktop)+l(n?.desktop)+a("height",o,"desktop")+a("width",r,"desktop"),tablet:c(e?.tablet)+l(n?.tablet)+a("height",o,"tablet")+a("width",r,"tablet"),mobile:c(e?.mobile)+l(n?.mobile)+a("height",o,"mobile")+a("width",r,"mobile")}},f=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},r=s("border-radius",u(n)),i=s("box-shadow",l(o,"box"));return c(e)+r+i};return{normal:o(e),hover:o(n)}},M=t=>{const{zIndex:e,overflow:n}=t||{},o=n?`overflow: ${n};`:"",i=t=>`${s("z-index",e?.[t])} ${s("position",r(e?.[t])?"relative":"")}`;return{desktop:i("desktop")+o,tablet:i("tablet"),mobile:i("mobile")}},$=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:r=!1}=t||{},i=e?"opacity: 0.5;":"display: none;",a=t=>t?i:"";return{desktop:a(n),tablet:a(o),mobile:a(r)}},w=(t,e,n=!1,o=!0)=>{const{dimension:c,transform:l,background:d,borderShadow:u,mask:h,animation:p,visibility:w,responsive:k,css:v=""}=e||{},x=n?`#${t}>div>div${o?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,r=document.querySelector(o);r&&t&&t.type&&(r.setAttribute("data-aos",t.type),r.setAttribute("data-aos-duration",1e3*t.duration||.4),r.setAttribute("data-aos-delay",1e3*t.delay||0),r.classList.contains("aos-init")||(r.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?r.classList.add("aos-animate"):r.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(r)})(p,t,n);const L=y(c).desktop+M(w).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:r=.4}=e||{},{transition:i=200}=n||{};return`transition: background ${o}s, border ${r}s, border-radius ${r}s, box-shadow ${r}s, transform ${i}ms ease-in-out;`})(d,u,l)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:r={type:"center center",x:50,y:50},repeat:i="no-repeat"}=t||{};return e?`-webkit-mask-image: url(${"custom"===n.type?n.url:(a=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===a))).svg});\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===r.type?`${s("-webkit-mask-position-x",r.x)}\n\t\t\t${s("-webkit-mask-position-y",r.y)}`:`${s("-webkit-mask-position",r.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${i};`:""}`:"";var a})(h),D=y(c).tablet+M(w).tablet+$(k,n).tablet,N=y(c).mobile+M(w).mobile+$(k,n).mobile,j=f(u).normal,S=f(u).hover,E=$(k,n).desktop;return`\n\t\t${L||j?`${x} {\n\t\t\t${L}\n\t\t\t${j}\n\t\t}`:""}\n\t\t${S?`${x}:hover {\n\t\t\t${S}\n\t\t}`:""}\n\n\t\t${E?`@media only screen and (min-width: 1025px) {\n\t\t\t${x}{\n\t\t\t\t${E}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${D?`${i} {\n\t\t\t${x}{\n\t\t\t\t${D}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${N?`${a} {\n\t\t\t${x}{\n\t\t\t\t${N}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${m(d?.normal,x)}\n\t\t${m(d?.hover,x,!0)}\n\t\t${g(d?.overlay,x)}\n\t\t${g(d?.hoverOverlay,x,!0)}\n\t\t${r(l?.normal)?b(l?.normal,x):""}\n\t\t${r(l?.hover)?b(l?.hover,x,!0):""}\n\n\t\t${v}\n\t`.replace(/\s+/g," ")},k=({attributes:t,id:e,isBackend:o=!1})=>{const{image:r,options:h,spots:p,tooltip:m,advanced:g,hotspot:b}=t,y=`#${e} .b-blocks-hotspot-image-wrapper`,f=`${y} .b-blocks-hotspot-image`,M=`${y} .b-blocks-bphb-hotspot-container`,$=`${M} .b-blocks-bphb-hotspot`,k=`${$} .b-blocks-imghp-upload-icon`,v=`${$} .b-blocks-imghp-text-icon`,x=`${$} .b-blocks-tooltip-reader`;return(0,n.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${d("",m.typo).googleFontLink}\n\t\t${d(x,m.typo).styles}\n\t\t${y}{\n\t\t\t${s("width",r.desktop.width)}\n\t\t\t${s("height",r.desktop.height)}\n\t\t}\n\t\t${b?.map(((t,e)=>`${M}#b-blocks-bphb-hotspot-container-${e}{\n\t\t\t\t${s("left",`${t.position.desktop.x}%`)}\n\t\t\t\t${s("top",`${t.position.desktop.y}%`)}\n\t\t\t}`)).join(" ")}\n\t\t${$} .b-blocks-imghp-library-icon>svg{\n\t\t\t${s("fill",p.normal.color.icon)}\n\t\t\t${s("color",p.iconColor)}\n\t\t\t${s("height",p.desktop.iconSize)}\n\t\t\t${s("width",p.desktop.iconSize)}\n\t\t}\n\t\t${$}{\n\t\t\t${s("height",p.desktop.height)}\n\t\t\t${s("width",p.desktop.width)}\n\t\t\t${s("border-radius",u(p.desktop.radius))}\n\t\t\t${s("background-color",p.normal.color.bg)}\n\t\t\t${s("padding",u(p.desktop.padding))}\n\t\t\t${c(p.normal.border)}\n\t\t}\n ${k}{\n ${s("fill",p.normal.color.icon)}\n\t\t\t${s("color",p.iconColor)}\n\t\t\t${s("height",p.desktop.iconSize)}\n\t\t\t${s("width",p.desktop.iconSize)}\n }\n ${v}{\n ${s("color",p.normal.color.icon)}\n\t\t\t${s("font-size",p.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(p.normal.border)}\n\t\t\t}\n\n\t\t\t${$}>svg{\n\t\t\t${s("color",p.normal.color.icon)}\n\t\t\t${s("height",p.desktop.iconSize)}\n\t\t\t${s("width",p.desktop.iconSize)}\n\t\t}\n\t\t${$}>svg path{\n\t\t\t${s("fill",p.normal.color.icon)}\n\t\t}\n\t\t${$}:hover{\n\t\t\t${s("background-color",p.hover.color.bg)}\n\t\t\t${c(p.hover.border)}\n\t\t}\n\t\t${$}:hover>span{\n\t\t\t${s("color",p.hover.color.icon)}\n\t\t}\n\t\t${$}:hover>svg{\n\t\t\t${s("color",p.hover.color.icon)}\n\t\t}\n\t\t${$}:hover>svg path{\n\t\t\t${s("fill",p.hover.color.icon)}\n\t\t}\n\t\t${$}:where(span,img){\n\t\t\t${s("color",p.normal.color.icon)}\n\t\t\t${s("font-size",p.desktop.iconSize)}\n\t\t\t${c(p.normal.border)}\n\t\t}\n\n\t\t${x}{\n\t\t\ttransition-duration: ${h.speed}ms;\n\t\t\ttransition-delay: ${h.delay}ms;\n\t\t\t${c(m.border)}\n\t\t\t${s("box-shadow",l(m?.shadow||[]))}\n\t\t\t${s("width",m.desktop.width)}\n\t\t\t${s("background-color",m.bgColor)}\n\t\t\t${s("padding",u(m.desktop.padding))}\n\t\t\t${s("border-radius",u(m.desktop.radius))}\n\t\t}\n\t\t${x} .b-blocks-bphb-tooltip-content>*{\n\t\t\t\tcolor: ${m.textColor} !important;\n\t\t\t\tmargin:0px;\n\t\t\t}\n\t\t\t${f}{\n\t\t\t${s("width",r.desktop.width)};\n\t\t\t${s("height",r.desktop.height)};\n\t\t\t${s("object-fit",r.objectFit)}\n\t\t\t}\n\t\t${i} {\n\n\t\t${$} .b-blocks-imghp-library-icon>svg{\n\t\t\t${s("height",p.tablet.iconSize)}\n\t\t\t${s("width",p.tablet.iconSize)}\n\t\t}\n\t\t${$}{\n\t\t\t${s("height",p.tablet.height)}\n\t\t\t${s("width",p.tablet.width)}\n\t\t\t${s("border-radius",u(p.tablet.radius))}\n\t\t\t${s("padding",u(p.tablet.padding))}\n\t\t}\n ${v}{\n\t\t\t${s("font-size",p.tablet.iconSize)}\n }\n\t\t${$}>span{\n\t\t\t${s("font-size",p.tablet.iconSize)}\n\t\t}\n\n\t\t${x}{\n\t\t\t${s("width",m.tablet.width)}\n\t\t\t${s("padding",u(m.tablet.padding))}\n\t\t\t${s("border-radius",u(m.tablet.radius))}\n\t\t}\n }\n\t\t${a} {\n\t\t${$} .b-blocks-imghp-library-icon>svg{\n\t\t\t${s("height",p.mobile.iconSize)}\n\t\t\t${s("width",p.mobile.iconSize)}\n\t\t}\n\t\t${$}{\n\t\t\t${s("height",p.mobile.height)}\n\t\t\t${s("width",p.mobile.width)}\n\t\t\t${s("border-radius",p.mobile.radius)}\n\t\t\t${s("padding",u(p.mobile.padding))}\n\t\t}\n\t\t${$}>span{\n\t\t\t${s("font-size",p.mobile.iconSize)}\n\t\t\t}\n\t\t\t${v}{\n\t\t\t${s("font-size",p.mobile.iconSize)}\n\t\t\t}\n\n\t\t${x}{\n\t\t\t${s("width",m.mobile.width)}\n\t\t\t${s("padding",u(m.mobile.padding))}\n\t\t\t${s("border-radius",u(m.mobile.radius))}\n\t\t}\n\t}\n\t\t${w(e,g,o,!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"],x={"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 L(t,e,n){const o=[...t].map(((t,o)=>N(t,{...n,index:o,level:e+1}))).filter(Boolean);return o.length?o:null}function D(t,e={}){return"string"==typeof t?function(t,e={}){if(!t||"string"!=typeof t)return null;const{includeAllNodes:n=!1,nodeOnly:o=!1,selector:r="body > *",type:i="text/html"}=e;try{const a=(new DOMParser).parseFromString(t,i);if(n){const{childNodes:t}=a.body;return o?t:[...t].map((t=>N(t,e)))}const s=a.querySelector(r)||a.body.childNodes[0];if(!(s instanceof Node))throw new TypeError("Error parsing input");return o?s:N(s,e)}catch(t){}return null}(t,e):t instanceof Node?N(t,e):null}function N(t,e={}){if(!(t&&t instanceof Node))return null;const{actions:o=[],index:r=0,level:i=0,randomKey:a}=e;let s=t,c=`${i}-${r}`;const l=[];return a&&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(o)&&o.forEach((e=>{e.condition(s,c,i)&&("function"==typeof e.pre&&(s=e.pre(s,c,i),s instanceof Node||(s=t)),"function"==typeof e.post&&l.push(e.post(s,c,i)))})),l.length?l:function(t,e){const{key:o,level:r,...i}=e;switch(t.nodeType){case 1:return n.createElement((a=t.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(a)?a:a.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 r=o.trim();Number.isNaN(Number(o))||(r=Number(o)),t[n.startsWith("-")?n:e]=r}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[x[t.name]||t.name]=!0;break;default:n[x[t.name]||t.name]=t.value}var e}))}return n}(t,o),L(t.childNodes,r,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 L(t.childNodes,r,e)}var a}(s,{key:c,level:i,...e})}var j=Object.defineProperty,S=(t,e,n)=>((t,e,n)=>e in t?j(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),E="react-inlinesvg",z={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function T(){return!("undefined"==typeof window||!window.document?.createElement)}function I(t,...e){const n={};for(const o in t)({}).hasOwnProperty.call(t,o)&&!e.includes(o)&&(n[o]=t[o]);return n}async function A(t,e){const n=await fetch(t,e),o=n.headers.get("content-type"),[r]=(o??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some((t=>r.includes(t))))throw new Error(`Content type isn't valid: ${r}`);return n.text()}function O(t=1){return new Promise((e=>{setTimeout(e,1e3*t)}))}function C(t){const e=(0,n.useRef)(void 0);return(0,n.useEffect)((()=>{e.current=t})),e.current}function R(t){const{baseURL:e,content:n,description:o,handleError:r,hash:i,preProcessor:a,title:s,uniquifyIDs:c=!1}=t;try{let t=a?a(n):n;c&&(t=function(t,e,n){const o=t.matchAll(/\bid=(["'])([^"']+)\1/g),r=[...new Set([...o].map((t=>t[2])))];return r.length?(r.sort(((t,e)=>e.length-t.length)),t.replace(/<style[^>]*>([\S\s]*?)<\/style>/gi,((t,o)=>{let i=o;for(const t of r){const o=t.replace(/[$()*+.?[\\\]^{|}]/g,"\\$&");i=i.replace(new RegExp(`url\\((['"]?)#${o}\\1\\)`,"g"),`url($1${n}#${t}__${e}$1)`),i=i.replace(new RegExp(`#${o}(?![a-zA-Z0-9_-])`,"g"),`#${t}__${e}`)}return t.replace(o,i)}))):t}(t,i,e??""));const r=D(t,{nodeOnly:!0});if(!(r&&r instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const l=P(r,{baseURL:e,hash:i,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!==s){const t=l.querySelector("title");if(t?.parentNode&&t.parentNode.removeChild(t),s){const t=document.createElementNS("http://www.w3.org/2000/svg","title");t.innerHTML=s,l.prepend(t)}}return l}catch(t){return r(t)}}function P(t,e){const{baseURL:n="",hash:o,uniquifyIDs:r}=e,i=["id","href","xlink:href","xlink:role","xlink:arcrole"],a=["href","xlink:href"];return r?([...t.children].forEach((t=>{if(t.attributes?.length){const e=Object.values(t.attributes).map((t=>{const e=t,r=/url\((.*?)\)/.exec(t.value);return r?.[1]&&(e.value=t.value.replace(r[0],`url(${n}${r[1]}__${o})`)),e}));i.forEach((t=>{const n=e.find((e=>e.name===t));var r,i;n&&(r=t,i=n.value,!a.includes(r)||!i||i.includes("#"))&&(n.value=`${n.value}__${o}`)}))}return t.children.length?P(t,e):t})),t):t}function U(t,e){const{baseURL:o,cacheRequests:r=!0,description:i,fetchOptions:a,onError:s,onLoad:c,preProcessor:l,src:d,title:u,uniqueHash:h,uniquifyIDs:p}=t,m=(0,n.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}()),g=(0,n.useRef)(a),b=(0,n.useRef)(s),y=(0,n.useRef)(c),f=(0,n.useRef)(l);g.current=a,b.current=s,y.current=c,f.current=l;const[M,$]=(0,n.useReducer)(((t,e)=>({...t,...e})),{content:"",element:null,isCached:!1,status:z.IDLE},(o=>{if(!r||!e.isCached(d))return o;const i=e.getContent(d);try{const e=R({...t,handleError:()=>{},hash:m.current,content:i});if(!e)return{...o,content:i,isCached:!0,status:z.LOADED};const r=D(e);if(r&&(0,n.isValidElement)(r))return{content:i,element:r,isCached:!0,status:z.READY}}catch{}return{...o,content:i,isCached:!0,status:z.LOADED}})),{content:w,element:k,isCached:v,status:x}=M,L=C(t),N=C(M),j=(0,n.useRef)(!1),S=(0,n.useRef)(!1),E=(0,n.useCallback)((t=>{j.current&&($({status:"Browser does not support SVG"===t.message?z.UNSUPPORTED:z.FAILED}),b.current?.(t))}),[]),I=(0,n.useCallback)((()=>{try{const t=D(R({baseURL:o,content:w,description:i,handleError:E,hash:m.current,preProcessor:f.current,src:d,title:u,uniquifyIDs:p}));if(!t||!(0,n.isValidElement)(t))throw new Error("Could not convert the src to a React element");$({element:t,status:z.READY})}catch(t){E(t)}}),[o,w,i,E,d,u,p]);var O;return O=()=>{if(j.current=!0,T()&&!S.current){try{if(x===z.READY)y.current?.(d,v);else if(x===z.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");$({content:"",element:null,isCached:!1,status:z.LOADING})}}catch(t){E(t)}return S.current=!0,()=>{j.current=!1}}},(0,n.useEffect)(O,[]),(0,n.useEffect)((()=>{if(T()&&L&&L.src!==d){if(!d)return void E(new Error("Missing src"));$({content:"",element:null,isCached:!1,status:z.LOADING})}}),[E,L,d]),(0,n.useEffect)((()=>{if(x!==z.LOADING)return;const t=new AbortController;let n=!0;return(async()=>{try{const o=/^data:image\/svg[^,]*?(;base64)?,(.*)/.exec(d);let i;if(o?i=o[1]?window.atob(o[2]):decodeURIComponent(o[2]):d.includes("<svg")&&(i=d),i)return void(n&&$({content:i,isCached:!1,status:z.LOADED}));const a={...g.current,signal:t.signal};let s,c=!1;r?(c=e.isCached(d),s=await e.get(d,a)):s=await A(d,a),n&&$({content:s,isCached:c,status:z.LOADED})}catch(t){n&&"AbortError"!==t.name&&E(t)}})(),()=>{n=!1,t.abort()}}),[r,e,E,d,x]),(0,n.useEffect)((()=>{x===z.LOADED&&w&&I()}),[w,I,x]),(0,n.useEffect)((()=>{T()&&L&&L.src===d&&(L.title===u&&L.description===i||I())}),[i,I,L,d,u]),(0,n.useEffect)((()=>{N&&x===z.READY&&N.status!==z.READY&&y.current?.(d,v)}),[v,N,d,x]),{element:k,status:x}}var Y=(0,n.createContext)(null),H=new class{constructor(t={}){S(this,"cacheApi"),S(this,"cacheStore"),S(this,"subscribers",[]),S(this,"isReady",!1);const{name:e=E,persistent:n=!1}=t;this.cacheStore=new Map,n&&T()&&"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===z.LOADED}async fetchAndCache(t,e){this.isReady||await this.waitForReady();const n=this.cacheStore.get(t);if(n?.status!==z.LOADED)if(n?.status!==z.LOADING){this.cacheStore.set(t,{content:"",status:z.LOADING});try{const n=this.cacheApi?await this.fetchFromPersistentCache(t,e):await A(t,e);this.cacheStore.set(t,{content:n,status:z.LOADED})}catch(e){const n="AbortError"===e?.name;throw this.cacheStore.set(t,{content:"",error:n?void 0:e,status:z.FAILED}),e}}else{await this.handleLoading(t,e?.signal||void 0,(async()=>{this.cacheStore.set(t,{content:"",status:z.IDLE}),await this.fetchAndCache(t,e)}));const n=this.cacheStore.get(t);if(n?.status===z.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!==z.LOADING)return;await O(.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 Q(t){const{children:e=null,innerRef:o,loader:r=null}=t,i=(0,n.useContext)(Y)??H,{element:a,status:s}=U(t,i);return T()?a?(0,n.cloneElement)(a,{ref:o,...I(t,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs")}):[z.UNSUPPORTED,z.FAILED].includes(s)?e:r:r}const F=({attributes:t})=>{const{hotspot:e,image:o,preset:r}=t;return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"b-blocks-hotspot-image-wrapper"},(0,n.createElement)("img",{src:o?.url||"https://templates.bplugins.com/wp-content/uploads/2025/10/placeholder.png",alt:o?.alt||"Hotspot Image",className:"b-blocks-hotspot-image"}),e.map(((t,e)=>(0,n.createElement)(n.Fragment,{key:e},"text"===t.spotOption&&(0,n.createElement)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":""},(0,n.createElement)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`},(0,n.createElement)("div",{className:"b-blocks-bphb-hotspot "+("default"===r?"circle":"themetwo"===r?"two":"themethree"===r?"three":"themefour"===r?"fourth":"fifth")},t.tooltip&&(0,n.createElement)("div",{className:`b-blocks-tooltip-reader ${"default"===r?"one":"themetwo"===r?"two":"themethree"===r?"three":"themefour"===r?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`},(0,n.createElement)("div",{className:"b-blocks-bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})),(0,n.createElement)("span",{className:"b-blocks-imghp-text-icon",dangerouslySetInnerHTML:{__html:t.spotText}})))),"icon"===t.spotOption&&(0,n.createElement)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":""},(0,n.createElement)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`},(0,n.createElement)("div",{className:"b-blocks-bphb-hotspot "+("default"===r?"circle":"themetwo"===r?"two":"themethree"===r?"three":"themefour"===r?"fourth":"fifth")},t.tooltip&&(0,n.createElement)("div",{className:`b-blocks-tooltip-reader ${"default"===r?"one":"themetwo"===r?"two":"themethree"===r?"three":"themefour"===r?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`},(0,n.createElement)("div",{className:"bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})),"upload"===t.icon.type&&"upload"===t.icon.type&&(0,n.createElement)("span",{className:"b-blocks-imghp-upload-icon",dangerouslySetInnerHTML:{__html:t.icon.url.upload}}),"library"===t.icon.type&&(0,n.createElement)("span",{className:"b-blocks-imghp-library-icon",dangerouslySetInnerHTML:{__html:t.icon.url.library}}),(0,n.createElement)(Q,{src:t.icon,height:"auto"})))),"image"===t.spotOption&&(0,n.createElement)("a",{...t.spotLink?{href:t.spotLink}:{},target:t.newWindow?"_blank":""},(0,n.createElement)("div",{style:{position:"absolute",cursor:"pointer"},className:"b-blocks-bphb-hotspot-container",id:`b-blocks-bphb-hotspot-container-${e}`},(0,n.createElement)("div",{className:"b-blocks-bphb-hotspot "+("default"===r?"circle":"themetwo"===r?"two":"themethree"===r?"three":"themefour"===r?"fourth":"fifth")},t.tooltip&&(0,n.createElement)("div",{className:`b-blocks-tooltip-reader ${"default"===r?"one":"themetwo"===r?"two":"themethree"===r?"three":"themefour"===r?"fourth":"fifth"} b-blocks-tooltip-${t.tooltipPosition}`},(0,n.createElement)("div",{className:"b-blocks-bphb-tooltip-content",dangerouslySetInnerHTML:{__html:t.tooltip}})),t.image&&(0,n.createElement)("img",{src:t.image,style:{width:"100%",height:"100%",borderRadius:"inherit",objectFit:"pointer"},alt:""})))))))))};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-image-hotspot").forEach((t=>{const e=JSON.parse(t.dataset.attributes);(0,o.H)(t).render((0,n.createElement)(n.Fragment,null,(0,n.createElement)(k,{attributes:e,id:t.id}),(0,n.createElement)(F,{attributes:e}))),t?.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")}))}))})();