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/expand-content/view.js +4 -1 2.1.2 → 2.1.8 View file →
@@ -1 +1,4 @@
1 -(()=>{"use strict";const t=window.ReactDOM,e=window.React,n=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),o=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}},s="@media only screen and (max-width: 1024px)",i="@media only screen and (max-width: 640px)",r="linear-gradient(135deg, #0040E3, #18D4FD)",a=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},c=(t,e)=>n(e)?`${t}: ${e};`:"",l=(t,e=!0,n=!0,o=!0)=>{const{type:s="solid",color:i="",gradient:l=r,image:M={},position:d="center center",attachment:u="",repeat:$="no-repeat",size:p="",overlayColor:y=""}=t||{};return"gradient"===s&&n?c("background",l):"image"===s&&o?`background: ${a(M?.url)};\n\t\t\t\t${c("background-color",y)}\n\t\t\t\t${c("background-position",d)}\n\t\t\t\t${c("background-size",p)}\n\t\t\t\t${c("background-repeat",$)}\n\t\t\t\t${c("background-attachment",u)}\n\t\t\t\t${c("background-repeat",$)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&c("background",i)},M=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():c("border",e(t))},d=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:r="sans-serif",fontVariant:a=400,fontWeight:l,isUploadFont:M=!0,fontSize:d={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:$,textDecoration:p,lineHeight:y,letterSpace:g}=e||{},w=!n||!o||"Default"===o,b=d?.desktop||d,m=d?.tablet||b,L=d?.mobile||m,j=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},N=`\n\t\t${w?"":`font-family: '${o}', ${r};`}\n\t\t${c("font-weight",l)}\n\t\t${c("font-size",j(b))}\n\t\t${c("font-style",u)}\n\t\t${c("text-transform",$)}\n\t\t${c("text-decoration",p)}\n\t\t${c("line-height",y)}\n\t\t${c("letter-spacing",g)}\n\t`,D=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",h=w?"":`https://fonts.googleapis.com/css2?family=${o?.split(" ").join("+")}${D.replace(/ /g,"")}&display=swap`;return{googleFontLink:!M||w?"":`@import url(${h});`,styles:`${t}{\n\t\t\t${N}\n\t\t}\n\t\t${s} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",j(m))}\n\t\t\t}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",j(L))}\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""},$=t=>{const{position:e="center center",xPosition:o=0,yPosition:s=0,attachment:i="",repeat:r="no-repeat",size:a="cover",customSize:c="0px"}=t||{},l=t=>"initial"!==t||n(t);return`\n\t\t${l(e)?`background-position: ${"custom"===e?`${o} ${s}`:e};`:""}\n\t\t${i&&l(i)?`background-attachment: ${i};`:""}\n\t\t${l(r)?`background-repeat: ${r};`:""}\n\t\t${l(a)?`background-size: ${"custom"===a?`${c} auto`:a};`:""}\n\t`},p=(t={})=>t?{desktop:n(t.url)?`background-image: ${a(t.url)}; ${$(t?.desktop)}`:"",tablet:n(t.url)?$(t?.tablet):"",mobile:n(t.url)?$(t?.mobile):""}:"",y=(t,e,r=!1)=>{const{type:a="color",color:l,gradient:M,img:d,video:u}=t||{},$="color"===a?c("background",l):"gradient"===a?(t=>{const{type:e="linear",radialType:o="ellipse",colors:s=[],centerPositions:i={x:0,y:0},angel:r=0}=t||{};if(n(t)){const t=s?.map((({color:t,position:e})=>`${t} ${e}%`)),n=`linear-gradient(${r}deg, ${t})`;return c("background","radial"===e?`radial-gradient(${o} at ${i?.x}% ${i?.y}%,${t})`:n)}return""})(M):"image"===a?p(d).desktop:"",y="image"===a?p(d).tablet:"",g="image"===a?p(d).mobile:"",w=r?`${e}:hover`:e;return`\n\t\t${"video"===a?((t,e)=>{const{url:n,loop:s}=t||{},i=document.querySelector(e),r=i?.querySelector(".bPlVideo"),a=document.createElement("video");if(a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),!r&&i&&n){const t=o(n);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),i.appendChild(a)}}return a.loop=s,a.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(u,e):""}\n\n\t\t${$?`${w}{\n\t\t\t${$}\n\t\t}`:""}\n\n\t\t${y?`${s} {\n\t\t\t${w}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g?`${i} {\n\t\t\t${w}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},g=(t,e,o=!1)=>{const{isEnabled:s,colors:i,opacity:r=1,blend:a,filter:l="",blur:M=0,brightness:d=100,contrast:u=100,saturation:$=100,hue:p=0,position:g={top:0,right:0,bottom:0,left:0},zIndex:w=-1}=t||{},b=`${100!==d?`brightness(${d}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==$?`saturate(${$}%)`:""} ${0!==M?`blur(${M}px)`:""} ${0!==p?`hue-rotate(${p}deg)`:""}`,m=`${l}: ${l?b:""}; -webkit-${l}: ${l?b:""};`,L=o?`${e}:hover::after`:`${e}::after`;return s?`\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:${n(g.top)?g.top:0};\n\t\t\tright:${n(g.right)?g.right:0};\n\t\t\tbottom:${n(g.bottom)?g.bottom:0};\n\t\t\tleft:${n(g.left)?g.left:0};\n\t\t\tz-index:${w};\n\t\t}\n\t\t${y(i,L,!1)}\n\t\t${L}{\n\t\t\t${c("opacity",r)}\n\t\t\t${c("mix-blend-mode",a)}\n\t\t\t${m}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},w=(t,e,o=!1)=>{const r=(t,e="desktop")=>{if(!n(t))return"";const{skew:o,scale:s,rotate:i,offset:r,flipX:a,flipY:l}=t,{threeDRotate:M}=i||{},{isProportion:d}=s||{},u=[];return n(o)&&(n(o?.[e]?.x)&&u.push(`skewX(${o[e].x}deg)`),n(o?.[e]?.y)&&u.push(`skewY(${o[e].y}deg)`)),d?n(s?.[e]?.scale)&&u.push(`scale(${s[e].scale})`):(n(s?.[e]?.x)&&u.push(`scaleX(${s[e].x})`),n(s?.[e]?.y)&&u.push(`scaleY(${s[e].y})`)),n(i)&&(n(i?.[e]?.z)&&u.push(`rotateZ(${i[e].z}deg)`),M&&(n(i?.[e]?.x)&&u.push(`rotateX(${i[e].x}deg)`),n(i?.[e]?.y)&&u.push(`rotateY(${i[e].y}deg)`))),n(r)&&(n(r?.[e]?.x)&&u.push(`translateX(${r[e].x})`),n(r?.[e]?.y)&&u.push(`translateY(${r[e].y})`)),n(a)&&u.push(a?"scaleX(-1)":""),n(l)&&u.push(l?"scaleY(-1)":""),0===u.length?"":c("transform",u.join(" "))},a=o?`${e}:hover`:e;return`\n\t\t${a} {\n\t\t\t${r(t,"desktop")}\n\t\t}\n\t\t${s}{\n\t\t\t${a} {\n\t\t\t\t${r(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${i}{\n\t\t\t${a} {\n\t\t\t\t${r(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},b=t=>{const{padding:e,margin:n,height:o,width:s}=t||{},i=(t,e)=>c(t,e),r=(t,e,n)=>i(t,e?.[t]?.[n])+i(`min-${t}`,e?.min?.[n])+i(`max-${t}`,e?.max?.[n]),a=t=>c("padding",u(t)),l=t=>c("margin",u(t));return{desktop:a(e?.desktop)+l(n?.desktop)+r("height",o,"desktop")+r("width",s,"desktop"),tablet:a(e?.tablet)+l(n?.tablet)+r("height",o,"tablet")+r("width",s,"tablet"),mobile:a(e?.mobile)+l(n?.mobile)+r("height",o,"mobile")+r("width",s,"mobile")}},m=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},s=c("border-radius",u(n)),i=c("box-shadow",((t,e="box")=>{let n="";return t?.map(((o,s)=>{const{hOffset:i="0px",vOffset:r="0px",blur:a="0px",spreed:c="0px",color:l="#e7f0fe",isInset:M=!1}=o||{},d=M?"inset":"",u=`${i} ${r} ${a}`,$=s+1>=t.length?"":", ";n+="text"===e?`${u} ${l}${$}`:`${u} ${c} ${l} ${d}${$}`})),n||""})(o,"box"));return M(e)+s+i};return{normal:o(e),hover:o(n)}},L=t=>{const{zIndex:e,overflow:o}=t||{},s=o?`overflow: ${o};`:"",i=t=>`${c("z-index",e?.[t])} ${c("position",n(e?.[t])?"relative":"")}`;return{desktop:i("desktop")+s,tablet:i("tablet"),mobile:i("mobile")}},j=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:s=!1}=t||{},i=e?"opacity: 0.5;":"display: none;",r=t=>t?i:"";return{desktop:r(n),tablet:r(o),mobile:r(s)}},N=(t,e,o=!1,r=!0)=>{const{dimension:l,transform:M,background:d,borderShadow:u,mask:$,animation:p,visibility:N,responsive:D,css:h=""}=e||{},x=o?`#${t}>div>div${r?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,s=document.querySelector(o);s&&t&&t.type&&(s.setAttribute("data-aos",t.type),s.setAttribute("data-aos-duration",1e3*t.duration||.4),s.setAttribute("data-aos-delay",1e3*t.delay||0),s.classList.contains("aos-init")||(s.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?s.classList.add("aos-animate"):s.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(s)})(p,t,o);const z=b(l).desktop+L(N).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:s=.4}=e||{},{transition:i=200}=n||{};return`transition: background ${o}s, border ${s}s, border-radius ${s}s, box-shadow ${s}s, transform ${i}ms ease-in-out;`})(d,u,M)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:s={type:"center center",x:50,y:50},repeat:i="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?a(n.url):`url(${(r=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjA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TAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===r))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===s.type?`${c("-webkit-mask-position-x",s.x)}\n\t\t\t${c("-webkit-mask-position-y",s.y)}`:`${c("-webkit-mask-position",s.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${i};`:""}`:"";var r})($),k=b(l).tablet+L(N).tablet+j(D,o).tablet,I=b(l).mobile+L(N).mobile+j(D,o).mobile,T=m(u).normal,f=m(u).hover,v=j(D,o).desktop;return`\n\t\t${z||T?`${x} {\n\t\t\t${z}\n\t\t\t${T}\n\t\t}`:""}\n\t\t${f?`${x}:hover {\n\t\t\t${f}\n\t\t}`:""}\n\n\t\t${v?`@media only screen and (min-width: 1025px) {\n\t\t\t${x}{\n\t\t\t\t${v}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${k?`${s} {\n\t\t\t${x}{\n\t\t\t\t${k}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${i} {\n\t\t\t${x}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y(d?.normal,x)}\n\t\t${y(d?.hover,x,!0)}\n\t\t${g(d?.overlay,x)}\n\t\t${g(d?.hoverOverlay,x,!0)}\n\t\t${n(M?.normal)?w(M?.normal,x):""}\n\t\t${n(M?.hover)?w(M?.hover,x,!0):""}\n\n\t\t${h}\n\t`.replace(/\s+/g," ")},D=window.ReactJSXRuntime,h=({attributes:t,id:e,isBackend:n=!1})=>{const{styles:o,layout:s,buttons:i,advanced:r,animationDuration:a}=t,{buttons:$}=o,p=Number.isFinite(a)?a:300,y=s.fadeColor||"#ffffff",g=`#${e} .b-blocks-expand-content-wrapper`,w=`${g} .b-blocks-expand-content-innerBlocks`,b=`${g} .b-blocks-expand-content-toggle-button-container`,m=`${b} .b-blocks-expand-content-toggle-button`;return(0,D.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n ${d("",$.showMore.typo).googleFontLink}\n ${d(`${m}.is-showMore`,$.showMore.typo).styles}\n\n ${d("",$.showLess.typo).googleFontLink}\n ${d(`${m}.is-showLess`,$.showLess.typo).styles}\n\n ${w}{\n transition: max-height ${p}ms ease-in-out;\n }\n\n ${w}.is-clamped{\n ${c("max-height",s.previewHeight)}\n }\n\n ${w}.is-clamped::after{\n height: ${s.fadeHeight||"80px"};\n background: linear-gradient(to bottom, ${(t=>{const e=(t||"").trim(),n=e.match(/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i);if(n)return`rgba(${n[1]}, ${n[2]}, ${n[3]}, 0)`;let o=e.replace("#","");return/^[0-9a-fA-F]{3,4}$/.test(o)&&(o=o.split("").map((t=>t+t)).join("")),/^[0-9a-fA-F]{6,8}$/.test(o)?`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, 0)`:"rgba(0, 0, 0, 0)"})(y)} 0%, ${y} 100%);\n }\n\n ${m}.is-showMore{\n ${c("padding",u($.showMore.padding))}\n ${l($.showMore.bg)}\n ${M($.showMore.border)}\n ${c("border-radius",u($.showMore.radius))}\n ${c("color",$.showMore.color)}\n }\n\n ${m}.is-showLess{\n ${c("padding",u($.showLess.padding))}\n ${l($.showLess.bg)}\n ${M($.showLess.border)}\n ${c("border-radius",u($.showLess.radius))}\n ${c("color",$.showLess.color)}\n }\n\n ${b}{\n ${c("justify-content",i.alignment)}\n }\n\n ${N(e,r,n,!1)}\n\n `}})},x=({attributes:t,templateContent:n})=>{const{layout:o={},buttons:s={}}=t,i=parseInt(o.previewHeight,10)||200,r=s.showMore||"Show More",a=s.showLess||"Show Less",c=!1!==s.isShowCollapse,l=!0===s.persistState,M=s.alignment||"center",d=(0,e.useRef)(null),[u,$]=(0,e.useState)(!1),[p,y]=(0,e.useState)(null),[g,w]=(0,e.useState)(0),b=l?`bbEc:${i}:${r}`:null;(0,e.useLayoutEffect)((()=>{const t=d.current;if(t&&n){if("1"!==n.dataset.moved){const e=Array.from(n.childNodes);t.append(...e),n.dataset.moved="1"}if(b)try{"open"===window.sessionStorage.getItem(b)&&$(!0)}catch(t){}}}),[]),(0,e.useEffect)((()=>{const t=d.current;if(!t)return;const e=()=>{const e=t.scrollHeight;w(e),y(e<=i+1)},n=requestAnimationFrame(e);let o=null;return"function"==typeof window.ResizeObserver&&(o=new window.ResizeObserver(e),o.observe(t)),()=>{cancelAnimationFrame(n),o&&o.disconnect()}}),[i]),(0,e.useEffect)((()=>{if(b)try{u?window.sessionStorage.setItem(b,"open"):window.sessionStorage.removeItem(b)}catch(t){}}),[u,b]);const m=!1===p&&!u,L=!1===p&&!(u&&!c),j=u&&g?{maxHeight:`${g}px`}:void 0;return(0,D.jsxs)("div",{className:"b-blocks-expand-content-wrapper",children:[(0,D.jsx)("div",{className:"b-blocks-expand-content-innerBlocks"+(m?" is-clamped":""),ref:d,style:j}),(0,D.jsx)("div",{className:"b-blocks-expand-content-toggle-button-container","data-align":M,children:L&&(0,D.jsx)("button",{type:"button",className:"b-blocks-expand-content-toggle-button "+(u?"is-showLess":"is-showMore"),"aria-expanded":u,onClick:()=>$((t=>!t)),children:u?a:r})})]})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-expand-content[data-attributes]").forEach((e=>{let n={};try{const t=e.dataset.attributes;t&&"undefined"!==t&&""!==t&&(n=JSON.parse(t))}catch(t){console.warn("expand-content: Invalid attributes JSON",t)}const o=e.querySelector(".b-blocks-expand-content-innerBlocks-contents");o&&((0,t.createRoot)(e).render((0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(h,{attributes:n,id:e.id}),(0,D.jsx)(x,{attributes:n,templateContent:o})]})),e?.removeAttribute("data-attributes"))}))}))})();
1 +(()=>{"use strict";const t=window.ReactDOM,e=window.React,n=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),o=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}};new class{constructor(t={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t},this.allowedTagSet=new Set(this.options.allowedTags.map((t=>t.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((t=>t.toLowerCase())))}sanitize(t){if("string"!=typeof t||""===t.trim())return"";const e=(new DOMParser).parseFromString(t,"image/svg+xml"),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 s=o.replace("xlink:","");this.allowedAttributeSet.has(o)||this.allowedAttributeSet.has(s)?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 i="@media only screen and (min-width: 1025px)",s="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",a="linear-gradient(135deg, #0040E3, #18D4FD)",l=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},c=(t,e)=>n(e)?`${t}: ${e};`:"",d=(t,e=!0,n=!0,o=!0)=>{const{type:i="solid",color:s="",gradient:r=a,image:d={},position:p="center center",attachment:u="",repeat:m="no-repeat",size:$="",overlayColor:M=""}=t||{};return"gradient"===i&&n?c("background",r):"image"===i&&o?`background: ${l(d?.url)};\n\t\t\t\t${c("background-color",M)}\n\t\t\t\t${c("background-position",p)}\n\t\t\t\t${c("background-size",$)}\n\t\t\t\t${c("background-repeat",m)}\n\t\t\t\t${c("background-attachment",u)}\n\t\t\t\t${c("background-repeat",m)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&c("background",s)},p=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():c("border",e(t))},u=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:i="sans-serif",fontVariant:a=400,fontWeight:l,isUploadFont:d=!0,fontSize:p={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:m,textDecoration:$,lineHeight:M,letterSpace:y}=e||{},g=!n||!o||"Default"===o,b=p?.desktop||p,h=p?.tablet||b,w=p?.mobile||h,x=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},f=`\n\t\t${g?"":`font-family: '${o}', ${i};`}\n\t\t${c("font-weight",l)}\n\t\t${c("font-size",x(b))}\n\t\t${c("font-style",u)}\n\t\t${c("text-transform",m)}\n\t\t${c("text-decoration",$)}\n\t\t${c("line-height",M)}\n\t\t${c("letter-spacing",y)}\n\t`,j=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",L=g?"":`https://fonts.googleapis.com/css2?family=${o?.split(" ").join("+")}${j.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||g?"":`@import url(${L});`,styles:`${t}{\n\t\t\t${f}\n\t\t}\n\t\t${s} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",x(h))}\n\t\t\t}\n\t\t}\n\t\t${r} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",x(w))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},m=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},$=t=>{const{position:e="center center",xPosition:o=0,yPosition:i=0,attachment:s="",repeat:r="no-repeat",size:a="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||n(t);return`\n\t\t${c(e)?`background-position: ${"custom"===e?`${o} ${i}`:e};`:""}\n\t\t${s&&c(s)?`background-attachment: ${s};`:""}\n\t\t${c(r)?`background-repeat: ${r};`:""}\n\t\t${c(a)?`background-size: ${"custom"===a?`${l} auto`:a};`:""}\n\t`},M=(t={})=>t?{desktop:n(t.url)?`background-image: ${l(t.url)}; ${$(t?.desktop)}`:"",tablet:n(t.url)?$(t?.tablet):"",mobile:n(t.url)?$(t?.mobile):""}:"",y=(t,e,i=!1)=>{const{type:a="color",color:l,gradient:d,img:p,video:u}=t||{},m="color"===a?c("background",l):"gradient"===a?(t=>{const{type:e="linear",radialType:o="ellipse",colors:i=[],centerPositions:s={x:0,y:0},angel:r=0}=t||{};if(n(t)){const t=i?.map((({color:t,position:e})=>`${t} ${e}%`)),n=`linear-gradient(${r}deg, ${t})`;return c("background","radial"===e?`radial-gradient(${o} at ${s?.x}% ${s?.y}%,${t})`:n)}return""})(d):"image"===a?M(p).desktop:"",$="image"===a?M(p).tablet:"",y="image"===a?M(p).mobile:"",g=i?`${e}:hover`:e;return`\n\t\t${"video"===a?((t,e)=>{const{url:n,loop:i}=t||{},s=document.querySelector(e),r=s?.querySelector(".bPlVideo"),a=document.createElement("video");if(a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),!r&&s&&n){
2 +const t=o(n);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),s.appendChild(a)}}return a.loop=i,a.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(u,e):""}\n\n\t\t${m?`${g}{\n\t\t\t${m}\n\t\t}`:""}\n\n\t\t${$?`${s} {\n\t\t\t${g}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y?`${r} {\n\t\t\t${g}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},g=(t,e,o=!1)=>{const{isEnabled:i,colors:s,opacity:r=1,blend:a,filter:l="",blur:d=0,brightness:p=100,contrast:u=100,saturation:m=100,hue:$=0,position:M={top:0,right:0,bottom:0,left:0},zIndex:g=-1}=t||{},b=`${100!==p?`brightness(${p}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==m?`saturate(${m}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==$?`hue-rotate(${$}deg)`:""}`,h=`${l}: ${l?b:""}; -webkit-${l}: ${l?b:""};`,w=o?`${e}:hover::after`:`${e}::after`;return i?`\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:${n(M.top)?M.top:0};\n\t\t\tright:${n(M.right)?M.right:0};\n\t\t\tbottom:${n(M.bottom)?M.bottom:0};\n\t\t\tleft:${n(M.left)?M.left:0};\n\t\t\tz-index:${g};\n\t\t}\n\t\t${y(s,w,!1)}\n\t\t${w}{\n\t\t\t${c("opacity",r)}\n\t\t\t${c("mix-blend-mode",a)}\n\t\t\t${h}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},b=(t,e,o=!1)=>{const i=(t,e="desktop")=>{if(!n(t))return"";const{skew:o,scale:i,rotate:s,offset:r,flipX:a,flipY:l}=t,{threeDRotate:d}=s||{},{isProportion:p}=i||{},u=[];return n(o)&&(n(o?.[e]?.x)&&u.push(`skewX(${o[e].x}deg)`),n(o?.[e]?.y)&&u.push(`skewY(${o[e].y}deg)`)),p?n(i?.[e]?.scale)&&u.push(`scale(${i[e].scale})`):(n(i?.[e]?.x)&&u.push(`scaleX(${i[e].x})`),n(i?.[e]?.y)&&u.push(`scaleY(${i[e].y})`)),n(s)&&(n(s?.[e]?.z)&&u.push(`rotateZ(${s[e].z}deg)`),d&&(n(s?.[e]?.x)&&u.push(`rotateX(${s[e].x}deg)`),n(s?.[e]?.y)&&u.push(`rotateY(${s[e].y}deg)`))),n(r)&&(n(r?.[e]?.x)&&u.push(`translateX(${r[e].x})`),n(r?.[e]?.y)&&u.push(`translateY(${r[e].y})`)),n(a)&&u.push(a?"scaleX(-1)":""),n(l)&&u.push(l?"scaleY(-1)":""),0===u.length?"":c("transform",u.join(" "))},a=o?`${e}:hover`:e;return`\n\t\t${a} {\n\t\t\t${i(t,"desktop")}\n\t\t}\n\t\t${s}{\n\t\t\t${a} {\n\t\t\t\t${i(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${r}{\n\t\t\t${a} {\n\t\t\t\t${i(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},h=t=>{const{padding:e,margin:n,height:o,width:i}=t||{},s=(t,e)=>c(t,e),r=(t,e,n)=>s(t,e?.[t]?.[n])+s(`min-${t}`,e?.min?.[n])+s(`max-${t}`,e?.max?.[n]),a=t=>c("padding",m(t)),l=t=>c("margin",m(t));return{desktop:a(e?.desktop)+l(n?.desktop)+r("height",o,"desktop")+r("width",i,"desktop"),tablet:a(e?.tablet)+l(n?.tablet)+r("height",o,"tablet")+r("width",i,"tablet"),mobile:a(e?.mobile)+l(n?.mobile)+r("height",o,"mobile")+r("width",i,"mobile")}},w=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},i=c("border-radius",m(n)),s=c("box-shadow",((t,e="box")=>{let n="";return t?.map(((o,i)=>{const{hOffset:s="0px",vOffset:r="0px",blur:a="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=o||{},p=d?"inset":"",u=`${s} ${r} ${a}`,m=i+1>=t.length?"":", ";n+="text"===e?`${u} ${c}${m}`:`${u} ${l} ${c} ${p}${m}`})),n||""})(o,"box"));return p(e)+i+s};return{normal:o(e),hover:o(n)}},x=t=>{const{zIndex:e,overflow:o}=t||{},i=o?`overflow: ${o};`:"",s=t=>`${c("z-index",e?.[t])} ${c("position",n(e?.[t])?"relative":"")}`;return{desktop:s("desktop")+i,tablet:s("tablet"),mobile:s("mobile")}},f=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:i=!1}=t||{},s=e?"opacity: 0.5;":"display: none;",r=t=>t?s:"";return{desktop:r(n),tablet:r(o),mobile:r(i)}},j=(t,e,o=!1,a=!0)=>{const{dimension:d,transform:p,background:u,borderShadow:m,mask:$,animation:M,visibility:j,responsive:L,position:N={},floating:D={},motion:v={},css:k=""}=e||{},z=o?`#${t}>div>div${a?":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)})(M,t,o);const S=h(d).desktop+x(j).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:i=.4}=e||{},{transition:s=200}=n||{};return`transition: background ${o}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${s}ms ease-in-out;`})(u,m,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:s="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?l(n.url):`url(${(r=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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1M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ciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===r))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===i.type?`${c("-webkit-mask-position-x",i.x)}\n\t\t\t${c("-webkit-mask-position-y",i.y)}`:`${c("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${s};`:""}`:"";var r})($),T=h(d).tablet+x(j).tablet+f(L,o).tablet,I=h(d).mobile+x(j).mobile+f(L,o).mobile,A=w(m).normal,E=w(m).hover,O=f(L,o).desktop;return`\n\t\t${S||A?`${z} {\n\t\t\t${S}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${z}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${i} {\n\t\t\t${z}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${T?`${s} {\n\t\t\t${z}{\n\t\t\t\t${T}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${r} {\n\t\t\t${z}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y(u?.normal,z)}\n\t\t${y(u?.hover,z,!0)}\n\t\t${g(u?.overlay,z)}\n\t\t${g(u?.hoverOverlay,z,!0)}\n\t\t${n(p?.normal)?b(p?.normal,z):""}\n\t\t${n(p?.hover)?b(p?.hover,z,!0):""}\n\t\t${((t,e)=>{const{desktop:n={},tablet:o={},mobile:i={}}=t,a=(t={})=>`\n\t\t${e}{\n\t\t\t${c("position",t?.type)}\n\t\t\t${c("left",t?.horizontal?.left)}\n\t\t\t${c("right",t?.horizontal?.right)}\n\t\t\t${c("top",t?.vertical?.top)}\n\t\t\t${c("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${n?.type?a(n):""}\n\t\t\n\t\t${s}{\n\t\t\t${o?.type?a(o):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${i?.type?a(i):""}\n\t\t}\n\t`})(N,z)}\n\t\t${((t,e,o="")=>{const{translate:i={},rotate:s={},scale:r={},isEnabled:a=!1}=t||{};if(!a)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:i,value:t=>["x","y"].some((e=>n(i?.[e]?.[t])))?`${i?.x?.[t]||0}px ${i?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:s,value:t=>["x","y","z"].filter((e=>n(s?.[e]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${s[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:r,value:t=>{const e=r?.y?.[t],o=r?.z?.[t];return n(e)||n(o)?n(o)?`1 ${n(e)?e:1} ${o}`:`1 ${e}`:""}}].forEach((({name:t,property:e,values:n,value:i})=>{const s=i("from"),r=i("to");if(!s||!r)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}: ${s}; } to{ ${e}: ${r}; } }`),c.push(`${p} ${a}ms ease-in-out ${d}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${e}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(D,z,t)}\n\t\t${((t,e,o)=>{const{isEnable:a=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:u={},scale:m={},effectsRelativeTo:$="viewport",effectOn:M=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:y=!1,mouseTrack:g={},tilt:b={},sticky:h={}}=t||{},w=(t,e)=>n(t)&&!isNaN(t)?Number(t):e,x="viewport"===$,f=x?"view()":"scroll(nearest block)",j=[],L=[],N=[],D=[],v=String(o??"").replace(/[^a-zA-Z0-9]/g,""),k=(t,e,n)=>{j.push(`@keyframes advMe${t}${v}{ ${e} }`),L.push(`advMe${t}${v}`),N.push(f),D.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,s="to-left"===e?-o:o,r=[n&&l,o&&c].filter(Boolean);k("Translate",`from{ translate: 0px 0px; } to{ translate: ${s}px ${i}px; }`,{top:Math.min(...r.map((t=>w(t?.top,0)))),bottom:Math.max(...r.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&&k("Opacity",e,d)}const s=p?.direction;if(s){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); }`}[s];e&&k("Blur",e,p)}const r=u?.direction;if(r){const t=20*w(u?.level,4);k("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===r?-t:t}deg; }`,u)}if(m?.direction){const t=.15*w(m?.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; }`}[m.direction];o&&k("Scale",o,m)}}const z=[];if(y){if(g?.direction){const t="direct"===g?.direction?100:-100;z.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);z.push(((e,n)=>`perspective(1000px) rotateX(${(n*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const S=(t,n,o)=>{if(!t||!t.defaultView)return;const i=t.defaultView,s=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),r=s.items.get(e)||{x:0,y:0};if(r.rate=n,r.build=o,s.items.set(e,r),s.bound)return;s.bound=!0;const a=e=>{const n=s.last?Math.min(e-s.last,100):16.7;s.last=e;let o=!1;s.items.forEach(((e,i)=>{const r=e.el&&e.el.isConnected?e.el:t.querySelector(i);if(!r)return;e.el=r;const a=e.rate*n/1e3,l=s.x-e.x,c=s.y-e.y,d=Math.sqrt(l*l+c*c);d<=a?(e.x=s.x,e.y=s.y):(e.x+=l/d*a,e.y+=c/d*a,o=!0),r.style.transform=e.build(e.x,e.y)})),s.frame=o?i.requestAnimationFrame(a):0,s.last=o?e:0};t.addEventListener("pointermove",(t=>{s.x=2*(t.clientX/i.innerWidth-.5),s.y=2*(t.clientY/i.innerHeight-.5),s.frame||(s.frame=i.requestAnimationFrame(a))}))};if(z.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*w(g?.speed,w(b?.speed,4))),e=(t,e)=>z.map((n=>n(t,e))).join(" ");S(document,t,e),S(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const T=t=>h?.[t]||("desktop"===t?h?.undefined:""),I=e.split(">")[0],A=t=>{const e=T(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?T("desktop"):"mobile"===t?T("tablet")||T("desktop"):"")(t)?"position: static;":""},E=Array.isArray(M)?M:n(M)?[M]:[],O=t=>!E.length||E.includes(t)?"":`${e}{ animation-name: none; }`;return`\n\t\t${L.length?`\n\t\t${j.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${e}{\n\t\t\t\tanimation-name: ${L.join(", ")};\n\t\t\t\tanimation-duration: ${L.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${L.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${L.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${L.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${N.join(", ")};\n\t\t\t\tanimation-range: ${D.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${i}{ ${O("desktop")} }`:""}\n\t\t\t${O("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${O("tablet-portrait")} }`:""}\n\t\t\t${O("mobile-portrait")?`${r}{ ${O("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${z.length?`${e}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${I}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${s}{ ${I}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${r}{ ${I}{ ${A("mobile")} } }`:""}\n\t`})(v,z,t)}\n\t\t${k}\n\t`.replace(/\s+/g," ")},L=window.ReactJSXRuntime,N=({attributes:t,id:e,isBackend:n=!1})=>{
4 +const{styles:o,layout:i,buttons:s,advanced:r,animationDuration:a}=t,{buttons:l}=o,$=Number.isFinite(a)?a:300,M=i.fadeColor||"#ffffff",y=`#${e} .b-blocks-expand-content-wrapper`,g=`${y} .b-blocks-expand-content-innerBlocks`,b=`${y} .b-blocks-expand-content-toggle-button-container`,h=`${b} .b-blocks-expand-content-toggle-button`;return(0,L.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n ${u("",l.showMore.typo).googleFontLink}\n ${u(`${h}.is-showMore`,l.showMore.typo).styles}\n\n ${u("",l.showLess.typo).googleFontLink}\n ${u(`${h}.is-showLess`,l.showLess.typo).styles}\n\n ${g}{\n transition: max-height ${$}ms ease-in-out;\n }\n\n ${g}.is-clamped{\n ${c("max-height",i.previewHeight)}\n }\n\n ${g}.is-clamped::after{\n height: ${i.fadeHeight||"80px"};\n background: linear-gradient(to bottom, ${(t=>{const e=(t||"").trim(),n=e.match(/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i);if(n)return`rgba(${n[1]}, ${n[2]}, ${n[3]}, 0)`;let o=e.replace("#","");return/^[0-9a-fA-F]{3,4}$/.test(o)&&(o=o.split("").map((t=>t+t)).join("")),/^[0-9a-fA-F]{6,8}$/.test(o)?`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, 0)`:"rgba(0, 0, 0, 0)"})(M)} 0%, ${M} 100%);\n }\n\n ${h}.is-showMore{\n ${c("padding",m(l.showMore.padding))}\n ${d(l.showMore.bg)}\n ${p(l.showMore.border)}\n ${c("border-radius",m(l.showMore.radius))}\n ${c("color",l.showMore.color)}\n }\n\n ${h}.is-showLess{\n ${c("padding",m(l.showLess.padding))}\n ${d(l.showLess.bg)}\n ${p(l.showLess.border)}\n ${c("border-radius",m(l.showLess.radius))}\n ${c("color",l.showLess.color)}\n }\n\n ${b}{\n ${c("justify-content",s.alignment)}\n }\n\n ${j(e,r,n,!1)}\n\n `}})},D=({attributes:t,templateContent:n})=>{const{layout:o={},buttons:i={}}=t,s=parseInt(o.previewHeight,10)||200,r=i.showMore||"Show More",a=i.showLess||"Show Less",l=!1!==i.isShowCollapse,c=!0===i.persistState,d=i.alignment||"center",p=(0,e.useRef)(null),[u,m]=(0,e.useState)(!1),[$,M]=(0,e.useState)(null),[y,g]=(0,e.useState)(0),b=c?`bbEc:${s}:${r}`:null;(0,e.useLayoutEffect)((()=>{const t=p.current;if(t&&n){if("1"!==n.dataset.moved){const e=Array.from(n.childNodes);t.append(...e),n.dataset.moved="1"}if(b)try{"open"===window.sessionStorage.getItem(b)&&m(!0)}catch(t){}}}),[]),(0,e.useEffect)((()=>{const t=p.current;if(!t)return;const e=()=>{const e=t.scrollHeight;g(e),M(e<=s+1)},n=requestAnimationFrame(e);let o=null;return"function"==typeof window.ResizeObserver&&(o=new window.ResizeObserver(e),o.observe(t)),()=>{cancelAnimationFrame(n),o&&o.disconnect()}}),[s]),(0,e.useEffect)((()=>{if(b)try{u?window.sessionStorage.setItem(b,"open"):window.sessionStorage.removeItem(b)}catch(t){}}),[u,b]);const h=!1===$&&!u,w=!1===$&&!(u&&!l),x=u&&y?{maxHeight:`${y}px`}:void 0;return(0,L.jsxs)("div",{className:"b-blocks-expand-content-wrapper",children:[(0,L.jsx)("div",{className:"b-blocks-expand-content-innerBlocks"+(h?" is-clamped":""),ref:p,style:x}),(0,L.jsx)("div",{className:"b-blocks-expand-content-toggle-button-container","data-align":d,children:w&&(0,L.jsx)("button",{type:"button",className:"b-blocks-expand-content-toggle-button "+(u?"is-showLess":"is-showMore"),"aria-expanded":u,onClick:()=>m((t=>!t)),children:u?a:r})})]})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-expand-content[data-attributes]").forEach((e=>{let n={};try{const t=e.dataset.attributes;t&&"undefined"!==t&&""!==t&&(n=JSON.parse(t))}catch(t){console.warn("expand-content: Invalid attributes JSON",t)}const o=e.querySelector(".b-blocks-expand-content-innerBlocks-contents");o&&((0,t.createRoot)(e).render((0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(N,{attributes:n,id:e.id}),(0,L.jsx)(D,{attributes:n,templateContent:o})]})),e?.removeAttribute("data-attributes"))}))}))})();