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/media-text-section/view.js +4 -1 2.1.2 → 2.1.8 View file →
@@ -1 +1,4 @@
1 -(()=>{"use strict";const t=window.ReactDOM,e="@media only screen and (max-width: 1024px)",n="@media only screen and (max-width: 640px)",o="linear-gradient(135deg, #0040E3, #18D4FD)",i=window.React,a=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),s=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}},r=t=>{const e=s(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},d=(t,e)=>a(e)?`${t}: ${e};`:"",l=(t,e=!0,n=!0,i=!0)=>{const{type:a="solid",color:s="",gradient:l=o,image:c={},position:M="center center",attachment:u="",repeat:p="no-repeat",size:$="",overlayColor:y=""}=t||{};return"gradient"===a&&n?d("background",l):"image"===a&&i?`background: ${r(c?.url)};\n\t\t\t\t${d("background-color",y)}\n\t\t\t\t${d("background-position",M)}\n\t\t\t\t${d("background-size",$)}\n\t\t\t\t${d("background-repeat",p)}\n\t\t\t\t${d("background-attachment",u)}\n\t\t\t\t${d("background-repeat",p)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&d("background",s)},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():d("border",e(t))},M=(t,e="box")=>{let n="";return t?.map(((o,i)=>{const{hOffset:a="0px",vOffset:s="0px",blur:r="0px",spreed:d="0px",color:l="#e7f0fe",isInset:c=!1}=o||{},M=c?"inset":"",u=`${a} ${s} ${r}`,p=i+1>=t.length?"":", ";n+="text"===e?`${u} ${l}${p}`:`${u} ${d} ${l} ${M}${p}`})),n||""},u=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},p=t=>{const{position:e="center center",xPosition:n=0,yPosition:o=0,attachment:i="",repeat:s="no-repeat",size:r="cover",customSize:d="0px"}=t||{},l=t=>"initial"!==t||a(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(s)?`background-repeat: ${s};`:""}\n\t\t${l(r)?`background-size: ${"custom"===r?`${d} auto`:r};`:""}\n\t`},$=(t={})=>t?{desktop:a(t.url)?`background-image: ${r(t.url)}; ${p(t?.desktop)}`:"",tablet:a(t.url)?p(t?.tablet):"",mobile:a(t.url)?p(t?.mobile):""}:"",y=(t,o,i=!1)=>{const{type:r="color",color:l,gradient:c,img:M,video:u}=t||{},p="color"===r?d("background",l):"gradient"===r?(t=>{const{type:e="linear",radialType:n="ellipse",colors:o=[],centerPositions:i={x:0,y:0},angel:s=0}=t||{};if(a(t)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),a=`linear-gradient(${s}deg, ${t})`;return d("background","radial"===e?`radial-gradient(${n} at ${i?.x}% ${i?.y}%,${t})`:a)}return""})(c):"image"===r?$(M).desktop:"",y="image"===r?$(M).tablet:"",m="image"===r?$(M).mobile:"",b=i?`${o}:hover`:o;return`\n\t\t${"video"===r?((t,e)=>{const{url:n,loop:o}=t||{},i=document.querySelector(e),a=i?.querySelector(".bPlVideo"),r=document.createElement("video");if(r.muted=!0,r.autoplay=!0,r.classList.add("bPlVideo"),!a&&i&&n){const t=s(n);if(t){const e=document.createElement("source");e.src=t,r.appendChild(e),i.appendChild(r)}}return r.loop=o,r.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,o):""}\n\n\t\t${p?`${b}{\n\t\t\t${p}\n\t\t}`:""}\n\n\t\t${y?`${e} {\n\t\t\t${b}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${m?`${n} {\n\t\t\t${b}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},m=(t,e,n=!1)=>{const{isEnabled:o,colors:i,opacity:s=1,blend:r,filter:l="",blur:c=0,brightness:M=100,contrast:u=100,saturation:p=100,hue:$=0,position:m={top:0,right:0,bottom:0,left:0},zIndex:b=-1}=t||{},g=`${100!==M?`brightness(${M}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==p?`saturate(${p}%)`:""} ${0!==c?`blur(${c}px)`:""} ${0!==$?`hue-rotate(${$}deg)`:""}`,j=`${l}: ${l?g:""}; -webkit-${l}: ${l?g:""};`,N=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:${a(m.top)?m.top:0};\n\t\t\tright:${a(m.right)?m.right:0};\n\t\t\tbottom:${a(m.bottom)?m.bottom:0};\n\t\t\tleft:${a(m.left)?m.left:0};\n\t\t\tz-index:${b};\n\t\t}\n\t\t${y(i,N,!1)}\n\t\t${N}{\n\t\t\t${d("opacity",s)}\n\t\t\t${d("mix-blend-mode",r)}\n\t\t\t${j}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},b=(t,o,i=!1)=>{const s=(t,e="desktop")=>{if(!a(t))return"";const{skew:n,scale:o,rotate:i,offset:s,flipX:r,flipY:l}=t,{threeDRotate:c}=i||{},{isProportion:M}=o||{},u=[];return a(n)&&(a(n?.[e]?.x)&&u.push(`skewX(${n[e].x}deg)`),a(n?.[e]?.y)&&u.push(`skewY(${n[e].y}deg)`)),M?a(o?.[e]?.scale)&&u.push(`scale(${o[e].scale})`):(a(o?.[e]?.x)&&u.push(`scaleX(${o[e].x})`),a(o?.[e]?.y)&&u.push(`scaleY(${o[e].y})`)),a(i)&&(a(i?.[e]?.z)&&u.push(`rotateZ(${i[e].z}deg)`),c&&(a(i?.[e]?.x)&&u.push(`rotateX(${i[e].x}deg)`),a(i?.[e]?.y)&&u.push(`rotateY(${i[e].y}deg)`))),a(s)&&(a(s?.[e]?.x)&&u.push(`translateX(${s[e].x})`),a(s?.[e]?.y)&&u.push(`translateY(${s[e].y})`)),a(r)&&u.push(r?"scaleX(-1)":""),a(l)&&u.push(l?"scaleY(-1)":""),0===u.length?"":d("transform",u.join(" "))},r=i?`${o}:hover`:o;return`\n\t\t${r} {\n\t\t\t${s(t,"desktop")}\n\t\t}\n\t\t${e}{\n\t\t\t${r} {\n\t\t\t\t${s(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${n}{\n\t\t\t${r} {\n\t\t\t\t${s(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},g=t=>{const{padding:e,margin:n,height:o,width:i}=t||{},a=(t,e)=>d(t,e),s=(t,e,n)=>a(t,e?.[t]?.[n])+a(`min-${t}`,e?.min?.[n])+a(`max-${t}`,e?.max?.[n]),r=t=>d("padding",u(t)),l=t=>d("margin",u(t));return{desktop:r(e?.desktop)+l(n?.desktop)+s("height",o,"desktop")+s("width",i,"desktop"),tablet:r(e?.tablet)+l(n?.tablet)+s("height",o,"tablet")+s("width",i,"tablet"),mobile:r(e?.mobile)+l(n?.mobile)+s("height",o,"mobile")+s("width",i,"mobile")}},j=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},i=d("border-radius",u(n)),a=d("box-shadow",M(o,"box"));return c(e)+i+a};return{normal:o(e),hover:o(n)}},N=t=>{const{zIndex:e,overflow:n}=t||{},o=n?`overflow: ${n};`:"",i=t=>`${d("z-index",e?.[t])} ${d("position",a(e?.[t])?"relative":"")}`;return{desktop:i("desktop")+o,tablet:i("tablet"),mobile:i("mobile")}},w=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:i=!1}=t||{},a=e?"opacity: 0.5;":"display: none;",s=t=>t?a:"";return{desktop:s(n),tablet:s(o),mobile:s(i)}},L=(t,o,i=!1,s=!0)=>{const{dimension:l,transform:c,background:M,borderShadow:u,mask:p,animation:$,visibility:L,responsive:D,css:x=""}=o||{},h=i?`#${t}>div>div${s?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,i=document.querySelector(o);i&&t&&t.type&&(i.setAttribute("data-aos",t.type),i.setAttribute("data-aos-duration",1e3*t.duration||.4),i.setAttribute("data-aos-delay",1e3*t.delay||0),i.classList.contains("aos-init")||(i.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})($,t,i);const k=g(l).desktop+N(L).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:i=.4}=e||{},{transition:a=200}=n||{};return`transition: background ${o}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${a}ms ease-in-out;`})(M,u,c)+(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:a="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?r(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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1MTYsNDUuMTUxNiwwLDAsMC01Ljc3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EuNjkyLDQ0LjQxMzgsODYuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",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===s))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===i.type?`${d("-webkit-mask-position-x",i.x)}\n\t\t\t${d("-webkit-mask-position-y",i.y)}`:`${d("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${a};`:""}`:"";var s})(p),v=g(l).tablet+N(L).tablet+w(D,i).tablet,z=g(l).mobile+N(L).mobile+w(D,i).mobile,I=j(u).normal,T=j(u).hover,S=w(D,i).desktop;return`\n\t\t${k||I?`${h} {\n\t\t\t${k}\n\t\t\t${I}\n\t\t}`:""}\n\t\t${T?`${h}:hover {\n\t\t\t${T}\n\t\t}`:""}\n\n\t\t${S?`@media only screen and (min-width: 1025px) {\n\t\t\t${h}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${v?`${e} {\n\t\t\t${h}{\n\t\t\t\t${v}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${z?`${n} {\n\t\t\t${h}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y(M?.normal,h)}\n\t\t${y(M?.hover,h,!0)}\n\t\t${m(M?.overlay,h)}\n\t\t${m(M?.hoverOverlay,h,!0)}\n\t\t${a(c?.normal)?b(c?.normal,h):""}\n\t\t${a(c?.hover)?b(c?.hover,h,!0):""}\n\n\t\t${x}\n\t`.replace(/\s+/g," ")},D=window.ReactJSXRuntime,x=({attributes:t,id:o,isBackend:i=!1})=>{const{layout:a,styles:s,media:r,advanced:p}=t,$=`#${o} .b-blocks-media-text-section-wrapper`,y=`${$} .b-blocks-media-text-section-media`,m=`${$} .b-blocks-media-text-section-content`,b=`${y} .b-blocks-media-text-section-media-el`;return(0,D.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n ${$}{\n ${d("flex-direction",a.desktop.direction)}\n ${d("align-items",a.desktop.alignItems)}\n ${d("gap",s.layout.desktop.gap)}\n }\n\n ${y}{\n position:relative;\n ${d("width",s.layout.desktop.ratio.media)}\n ${d("padding",u(s.media.desktop.padding))}\n ${c(s.media.border)}\n ${d("border-radius",u(s.media.radius))}\n ${l(s.media.bg)}\n ${d("box-shadow",M(s.media.shadow))}\n }\n\n ${s.media.overlay.isOverlay?`${y}::before{\n content:'';\n position:absolute;\n inset:0;\n pointer-events:none;\n z-index:2;\n ${l(s.media.overlay.bg)}\n ${d("opacity",s.media.overlay.opacity)}\n }`:""}\n\n ${m}{\n ${d("width",s.layout.desktop.ratio.content)}\n ${d("padding",u(s.content.desktop.padding))}\n ${l(s.content.bg)}\n ${c(s.content.border)}\n ${d("border-radius",u(s.content.desktop.radius))}\n ${d("box-shadow",M(s.content.shadow))}\n }\n\n ${b}{\n position:relative;\n z-index:3;\n pointer-events:auto;\n ${d("object-fit","image"===r?.mediaType?s.media.image?.objFit:s.media.video?.objFit)}\n }\n\n ${y}.has-controls-on-hover video::-webkit-media-controls-panel {\n opacity: 0;\n transition: opacity 0.25s ease-in-out;\n }\n ${y}.has-controls-on-hover:hover video::-webkit-media-controls-panel,\n ${y}.has-controls-on-hover:focus-within video::-webkit-media-controls-panel,\n ${y}.has-controls-on-hover video:focus::-webkit-media-controls-panel,\n ${y}.has-controls-on-hover video:active::-webkit-media-controls-panel {\n opacity: 1 !important;\n }\n\n ${e}{\n ${$}{\n ${d("flex-direction",a.tablet.direction)}\n ${d("align-items",a.tablet.alignItems)}\n ${d("gap",s.layout.tablet.gap)}\n }\n\n ${y}{\n ${d("width",s.layout.tablet.ratio.media)}\n ${d("padding",u(s.media.tablet.padding))}\n }\n\n ${m}{\n ${d("width",s.layout.tablet.ratio.content)}\n ${d("padding",u(s.content.tablet.padding))}\n }\n }\n\n ${n}{\n ${$}{\n ${d("flex-direction",a.mobile.direction)}\n ${d("align-items",a.mobile.alignItems)}\n ${d("gap",s.layout.mobile.gap)}\n }\n\n ${y}{\n ${d("width",s.layout.mobile.ratio.media)}\n ${d("padding",u(s.media.mobile.padding))}\n }\n\n ${m}{\n ${d("width",s.layout.mobile.ratio.content)}\n ${d("padding",u(s.content.mobile.padding))}\n ${d("border-radius",u(s.content.mobile.radius))}\n }\n }\n\n ${L(o,p,i)}\n\n `}})},h=(t={})=>{const e=[];return t.allowDownload||e.push("nodownload"),!1===t.allowFullscreen&&e.push("nofullscreen"),!1===t.allowPip&&e.push("noremoteplayback"),e.length?e.join(" "):void 0},k=t=>{const{attributes:e,mediaTextHost:n}=t,{media:o}=e,a=(0,i.useRef)(null),s=(0,i.useRef)(null),r="video"===o?.mediaType,d=r?!!o?.video?.url:!!o?.image?.url;return(0,i.useEffect)((()=>{if(r&&s.current){const t=s.current;t.muted=!1!==o?.video?.muted,o?.video?.autoplay?t.play().catch((()=>{})):t.pause()}}),[r,o?.video?.url,o?.video?.autoplay,o?.video?.muted]),(0,i.useEffect)((()=>{if(!a.current||!n)return;if("1"===n.dataset.moved)return;const t=Array.from(n.children);a.current.append(...t),n.dataset.moved="1"}),[n]),(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)("div",{className:"b-blocks-media-text-section-wrapper",children:[d&&(0,D.jsx)("div",{className:"b-blocks-media-text-section-media "+(o?.video?.controlsOnHover?"has-controls-on-hover":""),children:r?(0,D.jsx)("video",{ref:s,className:"b-blocks-media-text-section-media-el",src:o?.video?.url,poster:o?.video?.poster?.url||"",autoPlay:!!o?.video?.autoplay,loop:!1!==o?.video?.loop,muted:!1!==o?.video?.muted,controls:!1!==o?.video?.controls,controlsList:h(o?.video),disablePictureInPicture:!1===o?.video?.allowPip,playsInline:!0}):(0,D.jsx)("img",{className:"b-blocks-media-text-section-media-el",src:o?.image?.url,alt:o?.image?.alt||""})}),(0,D.jsx)("div",{className:"b-blocks-media-text-section-content",ref:a})]})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-media-text-section[data-attributes]").forEach((e=>{let n={};try{const t=e.dataset.attributes;t&&"undefined"!==t&&""!==t&&(n=JSON.parse(t))}catch(t){console.warn("MediaTextSection: Invalid attributes JSON",t)}const o=e.querySelector(".bBlocksMediaTextSectionInnerBlockContent");o&&((0,t.createRoot)(e).render((0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(x,{attributes:n,id:e.id}),(0,D.jsx)(k,{attributes:n,id:e.id,mediaTextHost:o})]})),e?.removeAttribute("data-attributes"))}))}))})();
1 +(()=>{"use strict";const t=window.ReactDOM,e="@media only screen and (min-width: 1025px)",n="@media only screen and (max-width: 1024px)",o="@media only screen and (max-width: 640px)",i="linear-gradient(135deg, #0040E3, #18D4FD)",a=window.React,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),s=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 a=o.replace("xlink:","");this.allowedAttributeSet.has(o)||this.allowedAttributeSet.has(a)?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 l=t=>{const e=s(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},d=(t,e)=>r(e)?`${t}: ${e};`:"",c=(t,e=!0,n=!0,o=!0)=>{const{type:a="solid",color:r="",gradient:s=i,image:c={},position:u="center center",attachment:p="",repeat:m="no-repeat",size:$="",overlayColor:y=""}=t||{};return"gradient"===a&&n?d("background",s):"image"===a&&o?`background: ${l(c?.url)};\n\t\t\t\t${d("background-color",y)}\n\t\t\t\t${d("background-position",u)}\n\t\t\t\t${d("background-size",$)}\n\t\t\t\t${d("background-repeat",m)}\n\t\t\t\t${d("background-attachment",p)}\n\t\t\t\t${d("background-repeat",m)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&d("background",r)},u=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():d("border",e(t))},p=(t,e="box")=>{let n="";return t?.map(((o,i)=>{const{hOffset:a="0px",vOffset:r="0px",blur:s="0px",spreed:l="0px",color:d="#e7f0fe",isInset:c=!1}=o||{},u=c?"inset":"",p=`${a} ${r} ${s}`,m=i+1>=t.length?"":", ";n+="text"===e?`${p} ${d}${m}`:`${p} ${l} ${d} ${u}${m}`})),n||""},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:n=0,yPosition:o=0,attachment:i="",repeat:a="no-repeat",size:s="cover",customSize:l="0px"}=t||{},d=t=>"initial"!==t||r(t);return`\n\t\t${d(e)?`background-position: ${"custom"===e?`${n} ${o}`:e};`:""}\n\t\t${i&&d(i)?`background-attachment: ${i};`:""}\n\t\t${d(a)?`background-repeat: ${a};`:""}\n\t\t${d(s)?`background-size: ${"custom"===s?`${l} auto`:s};`:""}\n\t`},y=(t={})=>t?{desktop:r(t.url)?`background-image: ${l(t.url)}; ${$(t?.desktop)}`:"",tablet:r(t.url)?$(t?.tablet):"",mobile:r(t.url)?$(t?.mobile):""}:"",M=(t,e,i=!1)=>{const{type:a="color",color:l,gradient:c,img:u,video:p}=t||{},m="color"===a?d("background",l):"gradient"===a?(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 d("background","radial"===e?`radial-gradient(${n} at ${i?.x}% ${i?.y}%,${t})`:r)}return""})(c):"image"===a?y(u).desktop:"",$="image"===a?y(u).tablet:"",M="image"===a?y(u).mobile:"",b=i?`${e}:hover`:e;return`\n\t\t${"video"===a?((t,e)=>{const{url:n,loop:o}=t||{},i=document.querySelector(e),a=i?.querySelector(".bPlVideo"),r=document.createElement("video");if(r.muted=!0,r.autoplay=!0,r.classList.add("bPlVideo"),!a&&i&&n){const t=s(n);if(t){const e=document.createElement("source");e.src=t,r.appendChild(e),i.appendChild(r)}}return r.loop=o,r.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(p,e):""}\n\n\t\t${m?`${b}{\n\t\t\t${m}\n\t\t}`:""}\n\n\t\t${$?`${n} {\n\t\t\t${b}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M?`${o} {\n\t\t\t${b}{\n\t\t\t\t${M}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},b=(t,e,n=!1)=>{const{isEnabled:o,colors:i,opacity:a=1,blend:s,filter:l="",blur:c=0,brightness:u=100,contrast:p=100,saturation:m=100,hue:$=0,position:y={top:0,right:0,bottom:0,left:0
2 +},zIndex:b=-1}=t||{},g=`${100!==u?`brightness(${u}%)`:""} ${100!==p?`contrast(${p}%)`:""} ${100!==m?`saturate(${m}%)`:""} ${0!==c?`blur(${c}px)`:""} ${0!==$?`hue-rotate(${$}deg)`:""}`,h=`${l}: ${l?g:""}; -webkit-${l}: ${l?g:""};`,x=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(y.top)?y.top:0};\n\t\t\tright:${r(y.right)?y.right:0};\n\t\t\tbottom:${r(y.bottom)?y.bottom:0};\n\t\t\tleft:${r(y.left)?y.left:0};\n\t\t\tz-index:${b};\n\t\t}\n\t\t${M(i,x,!1)}\n\t\t${x}{\n\t\t\t${d("opacity",a)}\n\t\t\t${d("mix-blend-mode",s)}\n\t\t\t${h}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},g=(t,e,i=!1)=>{const a=(t,e="desktop")=>{if(!r(t))return"";const{skew:n,scale:o,rotate:i,offset:a,flipX:s,flipY:l}=t,{threeDRotate:c}=i||{},{isProportion:u}=o||{},p=[];return r(n)&&(r(n?.[e]?.x)&&p.push(`skewX(${n[e].x}deg)`),r(n?.[e]?.y)&&p.push(`skewY(${n[e].y}deg)`)),u?r(o?.[e]?.scale)&&p.push(`scale(${o[e].scale})`):(r(o?.[e]?.x)&&p.push(`scaleX(${o[e].x})`),r(o?.[e]?.y)&&p.push(`scaleY(${o[e].y})`)),r(i)&&(r(i?.[e]?.z)&&p.push(`rotateZ(${i[e].z}deg)`),c&&(r(i?.[e]?.x)&&p.push(`rotateX(${i[e].x}deg)`),r(i?.[e]?.y)&&p.push(`rotateY(${i[e].y}deg)`))),r(a)&&(r(a?.[e]?.x)&&p.push(`translateX(${a[e].x})`),r(a?.[e]?.y)&&p.push(`translateY(${a[e].y})`)),r(s)&&p.push(s?"scaleX(-1)":""),r(l)&&p.push(l?"scaleY(-1)":""),0===p.length?"":d("transform",p.join(" "))},s=i?`${e}:hover`:e;return`\n\t\t${s} {\n\t\t\t${a(t,"desktop")}\n\t\t}\n\t\t${n}{\n\t\t\t${s} {\n\t\t\t\t${a(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${o}{\n\t\t\t${s} {\n\t\t\t\t${a(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},h=t=>{const{padding:e,margin:n,height:o,width:i}=t||{},a=(t,e)=>d(t,e),r=(t,e,n)=>a(t,e?.[t]?.[n])+a(`min-${t}`,e?.min?.[n])+a(`max-${t}`,e?.max?.[n]),s=t=>d("padding",m(t)),l=t=>d("margin",m(t));return{desktop:s(e?.desktop)+l(n?.desktop)+r("height",o,"desktop")+r("width",i,"desktop"),tablet:s(e?.tablet)+l(n?.tablet)+r("height",o,"tablet")+r("width",i,"tablet"),mobile:s(e?.mobile)+l(n?.mobile)+r("height",o,"mobile")+r("width",i,"mobile")}},x=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},i=d("border-radius",m(n)),a=d("box-shadow",p(o,"box"));return u(e)+i+a};return{normal:o(e),hover:o(n)}},w=t=>{const{zIndex:e,overflow:n}=t||{},o=n?`overflow: ${n};`:"",i=t=>`${d("z-index",e?.[t])} ${d("position",r(e?.[t])?"relative":"")}`;return{desktop:i("desktop")+o,tablet:i("tablet"),mobile:i("mobile")}},j=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:i=!1}=t||{},a=e?"opacity: 0.5;":"display: none;",r=t=>t?a:"";return{desktop:r(n),tablet:r(o),mobile:r(i)}},v=(t,i,a=!1,s=!0)=>{const{dimension:c,transform:u,background:p,borderShadow:m,mask:$,animation:y,visibility:v,responsive:f,position:N={},floating:L={},motion:k={},css:D=""}=i||{},z=a?`#${t}>div>div${s?":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)})(y,t,a);const T=h(c).desktop+w(v).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:i=.4}=e||{},{transition:a=200}=n||{};return`transition: background ${o}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${a}ms ease-in-out;`})(p,m,u)+(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:a="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?l(n.url):`url(${(r=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZ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yw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",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?`${d("-webkit-mask-position-x",i.x)}\n\t\t\t${d("-webkit-mask-position-y",i.y)}`:`${d("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${a};`:""}`:"";var r})($),I=h(c).tablet+w(v).tablet+j(f,a).tablet,S=h(c).mobile+w(v).mobile+j(f,a).mobile,A=x(m).normal,E=x(m).hover,O=j(f,a).desktop
3 +;return`\n\t\t${T||A?`${z} {\n\t\t\t${T}\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?`${e} {\n\t\t\t${z}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${n} {\n\t\t\t${z}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${o} {\n\t\t\t${z}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M(p?.normal,z)}\n\t\t${M(p?.hover,z,!0)}\n\t\t${b(p?.overlay,z)}\n\t\t${b(p?.hoverOverlay,z,!0)}\n\t\t${r(u?.normal)?g(u?.normal,z):""}\n\t\t${r(u?.hover)?g(u?.hover,z,!0):""}\n\t\t${((t,e)=>{const{desktop:i={},tablet:a={},mobile:r={}}=t,s=(t={})=>`\n\t\t${e}{\n\t\t\t${d("position",t?.type)}\n\t\t\t${d("left",t?.horizontal?.left)}\n\t\t\t${d("right",t?.horizontal?.right)}\n\t\t\t${d("top",t?.vertical?.top)}\n\t\t\t${d("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${i?.type?s(i):""}\n\t\t\n\t\t${n}{\n\t\t\t${a?.type?s(a):""}\n\t\t}\n\n\t\t${o}{\n\t\t\t${r?.type?s(r):""}\n\t\t}\n\t`})(N,z)}\n\t\t${((t,e,n="")=>{const{translate:o={},rotate:i={},scale:a={},isEnabled:s=!1}=t||{};if(!s)return"";const l=[],d=[];return[{name:"Translate",property:"translate",values:o,value:t=>["x","y"].some((e=>r(o?.[e]?.[t])))?`${o?.x?.[t]||0}px ${o?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:i,value:t=>["x","y","z"].filter((e=>r(i?.[e]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${i[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:a,value:t=>{const e=a?.y?.[t],n=a?.z?.[t];return r(e)||r(n)?r(n)?`1 ${r(e)?e:1} ${n}`:`1 ${e}`:""}}].forEach((({name:t,property:e,values:o,value:i})=>{const a=i("from"),r=i("to");if(!a||!r)return;const s=Number(o?.duration)>0?Number(o.duration):1e3,c=Number(o?.delay)>0?Number(o.delay):0,u=`advFloat${t}${n?`-${n}`:""}`;l.push(`@keyframes ${u}{ from{ ${e}: ${a}; } to{ ${e}: ${r}; } }`),d.push(`${u} ${s}ms ease-in-out ${c}ms infinite alternate`)})),d.length?`\n\t\t${l.join(" ")}\n\t\t${e}{\n\t\t\tanimation: ${d.join(", ")};\n\t\t}\n\t`:""})(L,z,t)}\n\t\t${((t,i,a)=>{const{isEnable:s=!1,vertical:l={},horizontal:d={},transparency:c={},blur:u={},rotate:p={},scale:m={},effectsRelativeTo:$="viewport",effectOn:y=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:M=!1,mouseTrack:b={},tilt:g={},sticky:h={}}=t||{},x=(t,e)=>r(t)&&!isNaN(t)?Number(t):e,w="viewport"===$,j=w?"view()":"scroll(nearest block)",v=[],f=[],N=[],L=[],k=String(a??"").replace(/[^a-zA-Z0-9]/g,""),D=(t,e,n)=>{v.push(`@keyframes advMe${t}${k}{ ${e} }`),f.push(`advMe${t}${k}`),N.push(j),L.push((t=>{const e=x(t?.top,0),n=x(t?.bottom,100),o=Math.min(e,n),i=Math.max(e,n);return w?`cover ${o}% ${i>=90?"contain 100%":`cover ${i}%`}`:`min(${3*o}vh, ${o}%) min(${3*i}vh, ${i}%)`})(n))};if(s){const t=l?.direction,e=d?.direction,n=t?100*x(l?.speed,4):0,o=e?100*x(d?.speed,4):0;if(n||o){const i="up"===t?-n:n,a="to-left"===e?-o:o,r=[n&&l,o&&d].filter(Boolean);D("Translate",`from{ translate: 0px 0px; } to{ translate: ${a}px ${i}px; }`,{top:Math.min(...r.map((t=>x(t?.top,0)))),bottom:Math.max(...r.map((t=>x(t?.bottom,100))))})}const i=c?.direction;if(i){const t=Math.max(0,1-x(c?.level,5)/10),e={"fade-in":`from{ opacity: ${t}; } to{ opacity: 1; }`,"fade-out":`from{ opacity: 1; } to{ opacity: ${t}; }`,"fade-out-in":`0%{ opacity: 1; } 50%{ opacity: ${t}; } 100%{ opacity: 1; }`,"fade-in-out":`0%{ opacity: ${t}; } 50%{ opacity: 1; } 100%{ opacity: ${t}; }`}[i];e&&D("Opacity",e,c)}const a=u?.direction;if(a){const t=3*x(u?.level,4),e={"fade-in":`from{ filter: blur(${t}px); } to{ filter: blur(0px); }`,"fade-out":`from{ filter: blur(0px); } to{ filter: blur(${t}px); }`,"fade-out-in":`0%{ filter: blur(0px); } 50%{ filter: blur(${t}px); } 100%{ filter: blur(0px); }`,"fade-in-out":`0%{ filter: blur(${t}px); } 50%{ filter: blur(0px); } 100%{ filter: blur(${t}px); }`}[a];e&&D("Blur",e,u)}const r=p?.direction;if(r){const t=20*x(p?.level,4);D("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===r?-t:t}deg; }`,p)}if(m?.direction){const t=.15*x(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&&D("Scale",o,m)}}const z=[];if(M){if(b?.direction){const t="direct"===b?.direction?100:-100;z.push(((e,n)=>`translate(${(e*t).toFixed(2)}px, ${(n*t).toFixed(2)}px)`))}if(g?.direction){const t=12*("direct"===g?.direction?1:-1);z.push(((e,n)=>`perspective(1000px) rotateX(${(n*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const T=(t,e,n)=>{if(!t||!t.defaultView)return;const o=t.defaultView,a=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),r=a.items.get(i)||{x:0,y:0};if(r.rate=e,r.build=n,a.items.set(i,r),a.bound)return;a.bound=!0;const s=e=>{const n=a.last?Math.min(e-a.last,100):16.7;a.last=e;let i=!1;a.items.forEach(((e,o)=>{const r=e.el&&e.el.isConnected?e.el:t.querySelector(o);if(!r)return;e.el=r;const s=e.rate*n/1e3,l=a.x-e.x,d=a.y-e.y,c=Math.sqrt(l*l+d*d);c<=s?(e.x=a.x,e.y=a.y):(e.x+=l/c*s,e.y+=d/c*s,i=!0),r.style.transform=e.build(e.x,e.y)})),a.frame=i?o.requestAnimationFrame(s):0,a.last=i?e:0};t.addEventListener("pointermove",(t=>{a.x=2*(t.clientX/o.innerWidth-.5),a.y=2*(t.clientY/o.innerHeight-.5),a.frame||(a.frame=o.requestAnimationFrame(s))}))};if(z.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*x(b?.speed,x(g?.speed,4))),e=(t,e)=>z.map((n=>n(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>h?.[t]||("desktop"===t?h?.undefined:""),S=i.split(">")[0],A=t=>{const e=I(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?I("desktop"):"mobile"===t?I("tablet")||I("desktop"):"")(t)?"position: static;":""},E=Array.isArray(y)?y:r(y)?[y]:[],O=t=>!E.length||E.includes(t)?"":`${i}{ animation-name: none; }`;return`\n\t\t${f.length?`\n\t\t${v.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${i}{\n\t\t\t\tanimation-name: ${f.join(", ")};\n\t\t\t\tanimation-duration: ${f.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${f.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${f.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${f.map((()=>w?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${N.join(", ")};\n\t\t\t\tanimation-range: ${L.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${e}{ ${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")?`${o}{ ${O("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${z.length?`${i}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${S}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${n}{ ${S}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${o}{ ${S}{ ${A("mobile")} } }`:""}\n\t`})(k,z,t)}\n\t\t${D}\n\t`.replace(/\s+/g," ")},f=window.ReactJSXRuntime,N=({attributes:t,id:e,isBackend:i=!1})=>{const{layout:a,styles:r,media:s,advanced:l}=t,$=`#${e} .b-blocks-media-text-section-wrapper`,y=`${$} .b-blocks-media-text-section-media`,M=`${$} .b-blocks-media-text-section-content`,b=`${y} .b-blocks-media-text-section-media-el`;return(0,f.jsx)("style",{dangerouslySetInnerHTML:{
4 +__html:`\n ${$}{\n ${d("flex-direction",a.desktop.direction)}\n ${d("align-items",a.desktop.alignItems)}\n ${d("gap",r.layout.desktop.gap)}\n }\n\n ${y}{\n position:relative;\n ${d("width",r.layout.desktop.ratio.media)}\n ${d("padding",m(r.media.desktop.padding))}\n ${u(r.media.border)}\n ${d("border-radius",m(r.media.radius))}\n ${c(r.media.bg)}\n ${d("box-shadow",p(r.media.shadow))}\n }\n\n ${r.media.overlay.isOverlay?`${y}::before{\n content:'';\n position:absolute;\n inset:0;\n pointer-events:none;\n z-index:2;\n ${c(r.media.overlay.bg)}\n ${d("opacity",r.media.overlay.opacity)}\n }`:""}\n\n ${M}{\n ${d("width",r.layout.desktop.ratio.content)}\n ${d("padding",m(r.content.desktop.padding))}\n ${c(r.content.bg)}\n ${u(r.content.border)}\n ${d("border-radius",m(r.content.desktop.radius))}\n ${d("box-shadow",p(r.content.shadow))}\n }\n\n ${b}{\n position:relative;\n z-index:3;\n pointer-events:auto;\n ${d("object-fit","image"===s?.mediaType?r.media.image?.objFit:r.media.video?.objFit)}\n }\n\n ${y}.has-controls-on-hover video::-webkit-media-controls-panel {\n opacity: 0;\n transition: opacity 0.25s ease-in-out;\n }\n ${y}.has-controls-on-hover:hover video::-webkit-media-controls-panel,\n ${y}.has-controls-on-hover:focus-within video::-webkit-media-controls-panel,\n ${y}.has-controls-on-hover video:focus::-webkit-media-controls-panel,\n ${y}.has-controls-on-hover video:active::-webkit-media-controls-panel {\n opacity: 1 !important;\n }\n\n ${n}{\n ${$}{\n ${d("flex-direction",a.tablet.direction)}\n ${d("align-items",a.tablet.alignItems)}\n ${d("gap",r.layout.tablet.gap)}\n }\n\n ${y}{\n ${d("width",r.layout.tablet.ratio.media)}\n ${d("padding",m(r.media.tablet.padding))}\n }\n\n ${M}{\n ${d("width",r.layout.tablet.ratio.content)}\n ${d("padding",m(r.content.tablet.padding))}\n }\n }\n\n ${o}{\n ${$}{\n ${d("flex-direction",a.mobile.direction)}\n ${d("align-items",a.mobile.alignItems)}\n ${d("gap",r.layout.mobile.gap)}\n }\n\n ${y}{\n ${d("width",r.layout.mobile.ratio.media)}\n ${d("padding",m(r.media.mobile.padding))}\n }\n\n ${M}{\n ${d("width",r.layout.mobile.ratio.content)}\n ${d("padding",m(r.content.mobile.padding))}\n ${d("border-radius",m(r.content.mobile.radius))}\n }\n }\n\n ${v(e,l,i)}\n\n `}})},L=(t={})=>{const e=[];return t.allowDownload||e.push("nodownload"),!1===t.allowFullscreen&&e.push("nofullscreen"),!1===t.allowPip&&e.push("noremoteplayback"),e.length?e.join(" "):void 0},k=t=>{const{attributes:e,mediaTextHost:n}=t,{media:o}=e,i=(0,a.useRef)(null),r=(0,a.useRef)(null),s="video"===o?.mediaType,l=s?!!o?.video?.url:!!o?.image?.url;return(0,a.useEffect)((()=>{if(s&&r.current){const t=r.current;t.muted=!1!==o?.video?.muted,o?.video?.autoplay?t.play().catch((()=>{})):t.pause()}}),[s,o?.video?.url,o?.video?.autoplay,o?.video?.muted]),(0,a.useEffect)((()=>{if(!i.current||!n)return;if("1"===n.dataset.moved)return;const t=Array.from(n.children);i.current.append(...t),n.dataset.moved="1"}),[n]),(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)("div",{className:"b-blocks-media-text-section-wrapper",children:[l&&(0,f.jsx)("div",{className:"b-blocks-media-text-section-media "+(o?.video?.controlsOnHover?"has-controls-on-hover":""),children:s?(0,f.jsx)("video",{ref:r,className:"b-blocks-media-text-section-media-el",src:o?.video?.url,poster:o?.video?.poster?.url||"",autoPlay:!!o?.video?.autoplay,loop:!1!==o?.video?.loop,muted:!1!==o?.video?.muted,controls:!1!==o?.video?.controls,controlsList:L(o?.video),disablePictureInPicture:!1===o?.video?.allowPip,playsInline:!0}):(0,f.jsx)("img",{className:"b-blocks-media-text-section-media-el",src:o?.image?.url,alt:o?.image?.alt||""})}),(0,f.jsx)("div",{className:"b-blocks-media-text-section-content",ref:i})]})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-media-text-section[data-attributes]").forEach((e=>{let n={};try{const t=e.dataset.attributes;t&&"undefined"!==t&&""!==t&&(n=JSON.parse(t))}catch(t){console.warn("MediaTextSection: Invalid attributes JSON",t)}const o=e.querySelector(".bBlocksMediaTextSectionInnerBlockContent");o&&((0,t.createRoot)(e).render((0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(N,{attributes:n,id:e.id}),(0,f.jsx)(k,{attributes:n,id:e.id,mediaTextHost:o})]})),e?.removeAttribute("data-attributes"))}))}))})();