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/facebook-embed/view.js +3 -1 2.1.3 → 2.1.8 View file →
@@ -1 +1,3 @@
1 -(()=>{"use strict";const t=window.ReactDOM,e=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),o=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}},n="@media only screen and (max-width: 1024px)",i="@media only screen and (max-width: 640px)";window.React;const s=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},r=(t,o)=>e(o)?`${t}: ${o};`:"",a=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},M=t=>{const{position:o="center center",xPosition:n=0,yPosition:i=0,attachment:s="",repeat:r="no-repeat",size:a="cover",customSize:M="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(o)?`background-position: ${"custom"===o?`${n} ${i}`:o};`:""}\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?`${M} auto`:a};`:""}\n\t`},c=(t={})=>t?{desktop:e(t.url)?`background-image: ${s(t.url)}; ${M(t?.desktop)}`:"",tablet:e(t.url)?M(t?.tablet):"",mobile:e(t.url)?M(t?.mobile):""}:"",d=(t,s,a=!1)=>{const{type:M="color",color:d,gradient:l,img:u,video:y}=t||{},p="color"===M?r("background",d):"gradient"===M?(t=>{const{type:o="linear",radialType:n="ellipse",colors:i=[],centerPositions:s={x:0,y:0},angel:a=0}=t||{};if(e(t)){const t=i?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${a}deg, ${t})`;return r("background","radial"===o?`radial-gradient(${n} at ${s?.x}% ${s?.y}%,${t})`:e)}return""})(l):"image"===M?c(u).desktop:"",j="image"===M?c(u).tablet:"",w="image"===M?c(u).mobile:"",N=a?`${s}:hover`:s;return`\n\t\t${"video"===M?((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){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}`})(y,s):""}\n\n\t\t${p?`${N}{\n\t\t\t${p}\n\t\t}`:""}\n\n\t\t${j?`${n} {\n\t\t\t${N}{\n\t\t\t\t${j}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${w?`${i} {\n\t\t\t${N}{\n\t\t\t\t${w}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},l=(t,o,n=!1)=>{const{isEnabled:i,colors:s,opacity:a=1,blend:M,filter:c="",blur:l=0,brightness:u=100,contrast:y=100,saturation:p=100,hue:j=0,position:w={top:0,right:0,bottom:0,left:0},zIndex:N=-1}=t||{},L=`${100!==u?`brightness(${u}%)`:""} ${100!==y?`contrast(${y}%)`:""} ${100!==p?`saturate(${p}%)`:""} ${0!==l?`blur(${l}px)`:""} ${0!==j?`hue-rotate(${j}deg)`:""}`,$=`${c}: ${c?L:""}; -webkit-${c}: ${c?L:""};`,D=n?`${o}:hover::after`:`${o}::after`;return i?`\n\t\t${o}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${o}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e(w.top)?w.top:0};\n\t\t\tright:${e(w.right)?w.right:0};\n\t\t\tbottom:${e(w.bottom)?w.bottom:0};\n\t\t\tleft:${e(w.left)?w.left:0};\n\t\t\tz-index:${N};\n\t\t}\n\t\t${d(s,D,!1)}\n\t\t${D}{\n\t\t\t${r("opacity",a)}\n\t\t\t${r("mix-blend-mode",M)}\n\t\t\t${$}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},u=(t,o,s=!1)=>{const a=(t,o="desktop")=>{if(!e(t))return"";const{skew:n,scale:i,rotate:s,offset:a,flipX:M,flipY:c}=t,{threeDRotate:d}=s||{},{isProportion:l}=i||{},u=[];return e(n)&&(e(n?.[o]?.x)&&u.push(`skewX(${n[o].x}deg)`),e(n?.[o]?.y)&&u.push(`skewY(${n[o].y}deg)`)),l?e(i?.[o]?.scale)&&u.push(`scale(${i[o].scale})`):(e(i?.[o]?.x)&&u.push(`scaleX(${i[o].x})`),e(i?.[o]?.y)&&u.push(`scaleY(${i[o].y})`)),e(s)&&(e(s?.[o]?.z)&&u.push(`rotateZ(${s[o].z}deg)`),d&&(e(s?.[o]?.x)&&u.push(`rotateX(${s[o].x}deg)`),e(s?.[o]?.y)&&u.push(`rotateY(${s[o].y}deg)`))),e(a)&&(e(a?.[o]?.x)&&u.push(`translateX(${a[o].x})`),e(a?.[o]?.y)&&u.push(`translateY(${a[o].y})`)),e(M)&&u.push(M?"scaleX(-1)":""),e(c)&&u.push(c?"scaleY(-1)":""),0===u.length?"":r("transform",u.join(" "))},M=s?`${o}:hover`:o;return`\n\t\t${M} {\n\t\t\t${a(t,"desktop")}\n\t\t}\n\t\t${n}{\n\t\t\t${M} {\n\t\t\t\t${a(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${i}{\n\t\t\t${M} {\n\t\t\t\t${a(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},y=t=>{const{padding:e,margin:o,height:n,width:i}=t||{},s=(t,e)=>r(t,e),M=(t,e,o)=>s(t,e?.[t]?.[o])+s(`min-${t}`,e?.min?.[o])+s(`max-${t}`,e?.max?.[o]),c=t=>r("padding",a(t)),d=t=>r("margin",a(t));return{desktop:c(e?.desktop)+d(o?.desktop)+M("height",n,"desktop")+M("width",i,"desktop"),tablet:c(e?.tablet)+d(o?.tablet)+M("height",n,"tablet")+M("width",i,"tablet"),mobile:c(e?.mobile)+d(o?.mobile)+M("height",n,"mobile")+M("width",i,"mobile")}},p=t=>{const{normal:e,hover:o}=t||{},n=t=>{const{border:e,radius:o,shadow:n}=t||{},i=r("border-radius",a(o)),s=r("box-shadow",((t,e="box")=>{let o="";return t?.map(((n,i)=>{const{hOffset:s="0px",vOffset:r="0px",blur:a="0px",spreed:M="0px",color:c="#e7f0fe",isInset:d=!1}=n||{},l=d?"inset":"",u=`${s} ${r} ${a}`,y=i+1>=t.length?"":", ";o+="text"===e?`${u} ${c}${y}`:`${u} ${M} ${c} ${l}${y}`})),o||""})(n,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:o="solid",width:n="0px"}=t;return`${n} ${o} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((o=>t[o]?`border-${o}: ${e(t[o])};`:"")).join(" ").trim():r("border",e(t))})(e)+i+s};return{normal:n(e),hover:n(o)}},j=t=>{const{zIndex:o,overflow:n}=t||{},i=n?`overflow: ${n};`:"",s=t=>`${r("z-index",o?.[t])} ${r("position",e(o?.[t])?"relative":"")}`;return{desktop:s("desktop")+i,tablet:s("tablet"),mobile:s("mobile")}},w=(t,e)=>{const{desktop:o=!1,tablet:n=!1,mobile:i=!1}=t||{},s=e?"opacity: 0.5;":"display: none;",r=t=>t?s:"";return{desktop:r(o),tablet:r(n),mobile:r(i)}},N=(t,o,a=!1,M=!0)=>{const{dimension:c,transform:N,background:L,borderShadow:$,mask:D,animation:g,visibility:b,responsive:m,css:x=""}=o||{},h=a?`#${t}>div>div${M?":first-child":""}`:`#${t}>div`;((t,e,o)=>{const n=o?`#${e} > div`:`#${e}`,i=document.querySelector(n);i&&t&&t.type&&(i.setAttribute("data-aos",t.type),i.setAttribute("data-aos-duration",1e3*t.duration||.4),i.setAttribute("data-aos-delay",1e3*t.delay||0),i.classList.contains("aos-init")||(i.classList.add("aos-init"),window?.AOS?.init()),o)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})(g,t,a);const z=y(c).desktop+j(b).desktop+((t,e,o)=>{const{transition:n=.4}=t||{},{transition:i=.4}=e||{},{transition:s=200}=o||{};return`transition: background ${n}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${s}ms ease-in-out;`})(L,$,N)+(t=>{const{isMask:e=!1,shape:o={type:"circle"},size:n={type:"contain",scale:"100%"},position:i={type:"center center",x:50,y:50},repeat:a="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===o.type?s(o.url):`url(${(M=o.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4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=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===M))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===i.type?`${r("-webkit-mask-position-x",i.x)}\n\t\t\t${r("-webkit-mask-position-y",i.y)}`:`${r("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${a};`:""}`:"";var M})(D),I=y(c).tablet+j(b).tablet+w(m,a).tablet,T=y(c).mobile+j(b).mobile+w(m,a).mobile,k=p($).normal,v=p($).hover,S=w(m,a).desktop;return`\n\t\t${z||k?`${h} {\n\t\t\t${z}\n\t\t\t${k}\n\t\t}`:""}\n\t\t${v?`${h}:hover {\n\t\t\t${v}\n\t\t}`:""}\n\n\t\t${S?`@media only screen and (min-width: 1025px) {\n\t\t\t${h}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${n} {\n\t\t\t${h}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${T?`${i} {\n\t\t\t${h}{\n\t\t\t\t${T}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${d(L?.normal,h)}\n\t\t${d(L?.hover,h,!0)}\n\t\t${l(L?.overlay,h)}\n\t\t${l(L?.hoverOverlay,h,!0)}\n\t\t${e(N?.normal)?u(N?.normal,h):""}\n\t\t${e(N?.hover)?u(N?.hover,h,!0):""}\n\n\t\t${x}\n\t`.replace(/\s+/g," ")},L=window.ReactJSXRuntime,$=({attributes:t,id:e})=>{const{advanced:o}=t;return(0,L.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${N(e,o)}\n\t`}})},D=({attributes:t,facebookKey:e})=>{const{facebook:o}=t,n=`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(o.url?.video||"")}&width=${o.width||"500"}&show_text=${o.fullPost}&show_captions=${o.caption}&autoplay=${o.autoPlay}&appId=${e}`,i=`https://www.facebook.com/plugins/post.php?href=${encodeURIComponent(o.url?.post||"")}&width=${o.width||"500"}&show_text=${o.fullPost}&appId=${e}`;return(0,L.jsxs)("div",{className:`b-blocks-facebookEmbed-wrapper ${o.alignment}`,children:["video"===o.type&&(0,L.jsx)("div",{className:"fb-video-container",children:(0,L.jsx)("iframe",{src:n,width:o.width||"500",height:"auto",style:{border:"none",overflow:"hidden",width:"100%",minHeight:"315px"},scrolling:"no",frameBorder:"0",allowFullScreen:o.fullScreen,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"})}),"post"===o.type&&(0,L.jsx)("div",{className:"fb-post-container",children:(0,L.jsx)("iframe",{src:i,width:o.width||"500",height:"auto",style:{border:"none",overflow:"hidden",width:"100%",minHeight:"500px"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"})})]})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-facebook-embed").forEach((e=>{const o=JSON.parse(e.dataset.attributes),n=e.dataset.facebookkey;n&&((0,t.createRoot)(e).render((0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)($,{attributes:o,id:e.id}),(0,L.jsx)(D,{attributes:o,facebookKey:n})]})),e?.removeAttribute("data-attributes"),e?.removeAttribute("data-facebookkey"))}))}))})();
1 +(()=>{"use strict";const t=window.ReactDOM,e=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),o=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}};new class{constructor(t={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t},this.allowedTagSet=new Set(this.options.allowedTags.map((t=>t.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((t=>t.toLowerCase())))}sanitize(t){if("string"!=typeof t||""===t.trim())return"";const e=(new DOMParser).parseFromString(t,"image/svg+xml"),o=e.documentElement;return!o||"svg"!==o.localName.toLowerCase()||e.getElementsByTagName("parsererror").length?"":(this.removeScripts(e),this.sanitizeElements(e),(new XMLSerializer).serializeToString(e.documentElement))}async sanitizeFile(t){const e=await fetch(t),o=await e.text();return this.sanitize(`${o}`)}removeScripts(t){this.options.removeScripts&&Array.from(t.querySelectorAll("*")).forEach((t=>{t.localName.toLowerCase().includes("script")&&t.remove()}))}sanitizeElements(t){Array.from(t.querySelectorAll("*")).forEach((t=>{const e=t.localName.toLowerCase();this.allowedTagSet.has(e)?("style"===e&&this.options.sanitizeStyle&&(t.textContent=this.sanitizeCss(t.textContent)),this.sanitizeAttributes(t)):t.remove()}))}sanitizeAttributes(t){Array.from(t.attributes).forEach((e=>{const o=e.name,i=o.toLowerCase(),n=e.value;if(this.options.removeEvents&&i.startsWith("on"))return void t.removeAttribute(o);if(this.options.removeExternalResources&&("href"===i||i.endsWith(":href"))&&!this.isAllowedUrl(n))return void t.removeAttribute(o);const r=i.replace("xlink:","");this.allowedAttributeSet.has(i)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(n)?t.removeAttribute(o):"style"===i&&this.options.sanitizeStyle&&t.setAttribute(o,this.sanitizeCss(n)):t.removeAttribute(o)}))}hasExternalUrl(t){return!("string"!=typeof t||!/url\s*\(/i.test(t))&&Array.from(t.matchAll(/url\s*\(\s*['"]?([^'")]*)/gi)).some((([,t])=>!t.trim().startsWith("#")))}isAllowedUrl(t){const e=String(t||"").trim();if(e.startsWith("#"))return!0;if(/^data:/i.test(e))return this.options.allowedProtocols.includes("data")&&/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(e);try{return this.options.allowedProtocols.includes(new URL(e).protocol.replace(":",""))}catch{return!1}}sanitizeCss(t){return String(t||"").replace(/expression\s*\(/gi,"").replace(/javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/@import[^;]*;?/gi,"").replace(/url\s*\(\s*(['"]?)(?!#)[^)]*\)/gi,"none")}};const i="@media only screen and (min-width: 1025px)",n="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)";window.React;const a=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},s=(t,o)=>e(o)?`${t}: ${o};`:"",l=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""},c=t=>{const{position:o="center center",xPosition:i=0,yPosition:n=0,attachment:r="",repeat:a="no-repeat",size:s="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(o)?`background-position: ${"custom"===o?`${i} ${n}`:o};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(a)?`background-repeat: ${a};`:""}\n\t\t${c(s)?`background-size: ${"custom"===s?`${l} auto`:s};`:""}\n\t`},d=(t={})=>t?{desktop:e(t.url)?`background-image: ${a(t.url)}; ${c(t?.desktop)}`:"",tablet:e(t.url)?c(t?.tablet):"",mobile:e(t.url)?c(t?.mobile):""}:"",p=(t,i,a=!1)=>{const{type:l="color",color:c,gradient:p,img:u,video:m}=t||{},M="color"===l?s("background",c):"gradient"===l?(t=>{const{type:o="linear",radialType:i="ellipse",colors:n=[],centerPositions:r={x:0,y:0},angel:a=0}=t||{};if(e(t)){const t=n?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${a}deg, ${t})`;return s("background","radial"===o?`radial-gradient(${i} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(p):"image"===l?d(u).desktop:"",y="image"===l?d(u).tablet:"",$="image"===l?d(u).mobile:"",h=a?`${i}:hover`:i;return`\n\t\t${"video"===l?((t,e)=>{const{url:i,loop:n}=t||{},r=document.querySelector(e),a=r?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!a&&r&&i){const t=o(i);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),r.appendChild(s)}}return s.loop=n,s.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}`})(m,i):""}\n\n\t\t${M?`${h}{\n\t\t\t${M}\n\t\t}`:""}\n\n\t\t${y?`${n} {\n\t\t\t${h}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${$?`${r} {\n\t\t\t${h}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},u=(t,o,i=!1)=>{const{isEnabled:n,colors:r,opacity:a=1,blend:l,filter:c="",blur:d=0,brightness:u=100,contrast:m=100,saturation:M=100,hue:y=0,position:$={top:0,right:0,bottom:0,left:0},zIndex:h=-1}=t||{},b=`${100!==u?`brightness(${u}%)`:""} ${100!==m?`contrast(${m}%)`:""} ${100!==M?`saturate(${M}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==y?`hue-rotate(${y}deg)`:""}`,w=`${c}: ${c?b:""}; -webkit-${c}: ${c?b:""};`,g=i?`${o}:hover::after`:`${o}::after`;return n?`\n\t\t${o}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${o}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e($.top)?$.top:0};\n\t\t\tright:${e($.right)?$.right:0};\n\t\t\tbottom:${e($.bottom)?$.bottom:0};\n\t\t\tleft:${e($.left)?$.left:0};\n\t\t\tz-index:${h};\n\t\t}\n\t\t${p(r,g,!1)}\n\t\t${g}{\n\t\t\t${s("opacity",a)}\n\t\t\t${s("mix-blend-mode",l)}\n\t\t\t${w}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},m=(t,o,i=!1)=>{const a=(t,o="desktop")=>{if(!e(t))return"";const{skew:i,scale:n,rotate:r,offset:a,flipX:l,flipY:c}=t,{threeDRotate:d}=r||{},{isProportion:p}=n||{},u=[];return e(i)&&(e(i?.[o]?.x)&&u.push(`skewX(${i[o].x}deg)`),e(i?.[o]?.y)&&u.push(`skewY(${i[o].y}deg)`)),p?e(n?.[o]?.scale)&&u.push(`scale(${n[o].scale})`):(e(n?.[o]?.x)&&u.push(`scaleX(${n[o].x})`),e(n?.[o]?.y)&&u.push(`scaleY(${n[o].y})`)),e(r)&&(e(r?.[o]?.z)&&u.push(`rotateZ(${r[o].z}deg)`),d&&(e(r?.[o]?.x)&&u.push(`rotateX(${r[o].x}deg)`),e(r?.[o]?.y)&&u.push(`rotateY(${r[o].y}deg)`))),e(a)&&(e(a?.[o]?.x)&&u.push(`translateX(${a[o].x})`),e(a?.[o]?.y)&&u.push(`translateY(${a[o].y})`)),e(l)&&u.push(l?"scaleX(-1)":""),e(c)&&u.push(c?"scaleY(-1)":""),
2 +0===u.length?"":s("transform",u.join(" "))},l=i?`${o}:hover`:o;return`\n\t\t${l} {\n\t\t\t${a(t,"desktop")}\n\t\t}\n\t\t${n}{\n\t\t\t${l} {\n\t\t\t\t${a(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${r}{\n\t\t\t${l} {\n\t\t\t\t${a(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},M=t=>{const{padding:e,margin:o,height:i,width:n}=t||{},r=(t,e)=>s(t,e),a=(t,e,o)=>r(t,e?.[t]?.[o])+r(`min-${t}`,e?.min?.[o])+r(`max-${t}`,e?.max?.[o]),c=t=>s("padding",l(t)),d=t=>s("margin",l(t));return{desktop:c(e?.desktop)+d(o?.desktop)+a("height",i,"desktop")+a("width",n,"desktop"),tablet:c(e?.tablet)+d(o?.tablet)+a("height",i,"tablet")+a("width",n,"tablet"),mobile:c(e?.mobile)+d(o?.mobile)+a("height",i,"mobile")+a("width",n,"mobile")}},y=t=>{const{normal:e,hover:o}=t||{},i=t=>{const{border:e,radius:o,shadow:i}=t||{},n=s("border-radius",l(o)),r=s("box-shadow",((t,e="box")=>{let o="";return t?.map(((i,n)=>{const{hOffset:r="0px",vOffset:a="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=i||{},p=d?"inset":"",u=`${r} ${a} ${s}`,m=n+1>=t.length?"":", ";o+="text"===e?`${u} ${c}${m}`:`${u} ${l} ${c} ${p}${m}`})),o||""})(i,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:o="solid",width:i="0px"}=t;return`${i} ${o} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((o=>t[o]?`border-${o}: ${e(t[o])};`:"")).join(" ").trim():s("border",e(t))})(e)+n+r};return{normal:i(e),hover:i(o)}},$=t=>{const{zIndex:o,overflow:i}=t||{},n=i?`overflow: ${i};`:"",r=t=>`${s("z-index",o?.[t])} ${s("position",e(o?.[t])?"relative":"")}`;return{desktop:r("desktop")+n,tablet:r("tablet"),mobile:r("mobile")}},h=(t,e)=>{const{desktop:o=!1,tablet:i=!1,mobile:n=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",a=t=>t?r:"";return{desktop:a(o),tablet:a(i),mobile:a(n)}},b=(t,o,l=!1,c=!0)=>{const{dimension:d,transform:b,background:w,borderShadow:g,mask:x,animation:j,visibility:f,responsive:N,position:L={},floating:D={},motion:v={},css:z=""}=o||{},k=l?`#${t}>div>div${c?":first-child":""}`:`#${t}>div`;((t,e,o)=>{const i=o?`#${e} > div`:`#${e}`,n=document.querySelector(i);n&&t&&t.type&&(n.setAttribute("data-aos",t.type),n.setAttribute("data-aos-duration",1e3*t.duration||.4),n.setAttribute("data-aos-delay",1e3*t.delay||0),n.classList.contains("aos-init")||(n.classList.add("aos-init"),window?.AOS?.init()),o)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?n.classList.add("aos-animate"):n.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(n)})(j,t,l);const T=M(d).desktop+$(f).desktop+((t,e,o)=>{const{transition:i=.4}=t||{},{transition:n=.4}=e||{},{transition:r=200}=o||{};return`transition: background ${i}s, border ${n}s, border-radius ${n}s, box-shadow ${n}s, transform ${r}ms ease-in-out;`})(w,g,b)+(t=>{const{isMask:e=!1,shape:o={type:"circle"},size:i={type:"contain",scale:"100%"},position:n={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===o.type?a(o.url):`url(${(l=o.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI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NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===l))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===i.type?i.scale:i.type};\n\t\t${"custom"===n.type?`${s("-webkit-mask-position-x",n.x)}\n\t\t\t${s("-webkit-mask-position-y",n.y)}`:`${s("-webkit-mask-position",n.type)}`}\n\t\t${"cover"!==i.type?`-webkit-mask-repeat: ${r};`:""}`:"";var l})(x),I=M(d).tablet+$(f).tablet+h(N,l).tablet,S=M(d).mobile+$(f).mobile+h(N,l).mobile,A=y(g).normal,E=y(g).hover,O=h(N,l).desktop;return`\n\t\t${T||A?`${k} {\n\t\t\t${T}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${k}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${i} {\n\t\t\t${k}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${n} {\n\t\t\t${k}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${r} {\n\t\t\t${k}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${p(w?.normal,k)}\n\t\t${p(w?.hover,k,!0)}\n\t\t${u(w?.overlay,k)}\n\t\t${u(w?.hoverOverlay,k,!0)}\n\t\t${e(b?.normal)?m(b?.normal,k):""}\n\t\t${e(b?.hover)?m(b?.hover,k,!0):""}\n\t\t${((t,e)=>{const{desktop:o={},tablet:i={},mobile:a={}}=t,l=(t={})=>`\n\t\t${e}{\n\t\t\t${s("position",t?.type)}\n\t\t\t${s("left",t?.horizontal?.left)}\n\t\t\t${s("right",t?.horizontal?.right)}\n\t\t\t${s("top",t?.vertical?.top)}\n\t\t\t${s("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${o?.type?l(o):""}\n\t\t\n\t\t${n}{\n\t\t\t${i?.type?l(i):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${a?.type?l(a):""}\n\t\t}\n\t`})(L,k)}\n\t\t${((t,o,i="")=>{
3 +const{translate:n={},rotate:r={},scale:a={},isEnabled:s=!1}=t||{};if(!s)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:n,value:t=>["x","y"].some((o=>e(n?.[o]?.[t])))?`${n?.x?.[t]||0}px ${n?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:r,value:t=>["x","y","z"].filter((o=>e(r?.[o]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${r[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:a,value:t=>{const o=a?.y?.[t],i=a?.z?.[t];return e(o)||e(i)?e(i)?`1 ${e(o)?o:1} ${i}`:`1 ${o}`:""}}].forEach((({name:t,property:e,values:o,value:n})=>{const r=n("from"),a=n("to");if(!r||!a)return;const s=Number(o?.duration)>0?Number(o.duration):1e3,d=Number(o?.delay)>0?Number(o.delay):0,p=`advFloat${t}${i?`-${i}`:""}`;l.push(`@keyframes ${p}{ from{ ${e}: ${r}; } to{ ${e}: ${a}; } }`),c.push(`${p} ${s}ms ease-in-out ${d}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${o}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(D,k,t)}\n\t\t${((t,o,a)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:u={},scale:m={},effectsRelativeTo:M="viewport",effectOn:y=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:$=!1,mouseTrack:h={},tilt:b={},sticky:w={}}=t||{},g=(t,o)=>e(t)&&!isNaN(t)?Number(t):o,x="viewport"===M,j=x?"view()":"scroll(nearest block)",f=[],N=[],L=[],D=[],v=String(a??"").replace(/[^a-zA-Z0-9]/g,""),z=(t,e,o)=>{f.push(`@keyframes advMe${t}${v}{ ${e} }`),N.push(`advMe${t}${v}`),L.push(j),D.push((t=>{const e=g(t?.top,0),o=g(t?.bottom,100),i=Math.min(e,o),n=Math.max(e,o);return x?`cover ${i}% ${n>=90?"contain 100%":`cover ${n}%`}`:`min(${3*i}vh, ${i}%) min(${3*n}vh, ${n}%)`})(o))};if(s){const t=l?.direction,e=c?.direction,o=t?100*g(l?.speed,4):0,i=e?100*g(c?.speed,4):0;if(o||i){const n="up"===t?-o:o,r="to-left"===e?-i:i,a=[o&&l,i&&c].filter(Boolean);z("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${n}px; }`,{top:Math.min(...a.map((t=>g(t?.top,0)))),bottom:Math.max(...a.map((t=>g(t?.bottom,100))))})}const n=d?.direction;if(n){const t=Math.max(0,1-g(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}; }`}[n];e&&z("Opacity",e,d)}const r=p?.direction;if(r){const t=3*g(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&&z("Blur",e,p)}const a=u?.direction;if(a){const t=20*g(u?.level,4);z("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===a?-t:t}deg; }`,u)}if(m?.direction){const t=.15*g(m?.level,4),e=Math.max(0,1-t),o=1+t,i={"scale-up":`from{ scale: 1; } to{ scale: ${o}; }`,"scale-down":`from{ scale: 1; } to{ scale: ${e}; }`,"scale-down-up":`0%{ scale: 1; } 50%{ scale: ${e}; } 100%{ scale: 1; }`,"scale-up-down":`0%{ scale: 1; } 50%{ scale: ${o}; } 100%{ scale: 1; }`}[m.direction];i&&z("Scale",i,m)}}const k=[];if($){if(h?.direction){const t="direct"===h?.direction?100:-100;k.push(((e,o)=>`translate(${(e*t).toFixed(2)}px, ${(o*t).toFixed(2)}px)`))}if(b?.direction){const t=12*("direct"===b?.direction?1:-1);k.push(((e,o)=>`perspective(1000px) rotateX(${(o*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const T=(t,e,i)=>{if(!t||!t.defaultView)return;const n=t.defaultView,r=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),a=r.items.get(o)||{x:0,y:0};if(a.rate=e,a.build=i,r.items.set(o,a),r.bound)return;r.bound=!0;const s=e=>{const o=r.last?Math.min(e-r.last,100):16.7;r.last=e;let i=!1;r.items.forEach(((e,n)=>{const a=e.el&&e.el.isConnected?e.el:t.querySelector(n);if(!a)return;e.el=a;const s=e.rate*o/1e3,l=r.x-e.x,c=r.y-e.y,d=Math.sqrt(l*l+c*c);d<=s?(e.x=r.x,e.y=r.y):(e.x+=l/d*s,e.y+=c/d*s,i=!0),a.style.transform=e.build(e.x,e.y)})),r.frame=i?n.requestAnimationFrame(s):0,r.last=i?e:0};t.addEventListener("pointermove",(t=>{r.x=2*(t.clientX/n.innerWidth-.5),r.y=2*(t.clientY/n.innerHeight-.5),r.frame||(r.frame=n.requestAnimationFrame(s))}))};if(k.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*g(h?.speed,g(b?.speed,4))),e=(t,e)=>k.map((o=>o(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>w?.[t]||("desktop"===t?w?.undefined:""),S=o.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:e(y)?[y]:[],O=t=>!E.length||E.includes(t)?"":`${o}{ animation-name: none; }`;return`\n\t\t${N.length?`\n\t\t${f.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${o}{\n\t\t\t\tanimation-name: ${N.join(", ")};\n\t\t\t\tanimation-duration: ${N.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${N.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${N.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${N.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${L.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${k.length?`${o}{ 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")?`${r}{ ${S}{ ${A("mobile")} } }`:""}\n\t`})(v,k,t)}\n\t\t${z}\n\t`.replace(/\s+/g," ")},w=window.ReactJSXRuntime,g=({attributes:t,id:e})=>{const{advanced:o}=t;return(0,w.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${b(e,o)}\n\t`}})},x=({attributes:t,facebookKey:e})=>{const{facebook:o}=t,i=`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(o.url?.video||"")}&width=${o.width||"500"}&show_text=${o.fullPost}&show_captions=${o.caption}&autoplay=${o.autoPlay}&appId=${e}`,n=`https://www.facebook.com/plugins/post.php?href=${encodeURIComponent(o.url?.post||"")}&width=${o.width||"500"}&show_text=${o.fullPost}&appId=${e}`;return(0,w.jsxs)("div",{className:`b-blocks-facebookEmbed-wrapper ${o.alignment}`,children:["video"===o.type&&(0,w.jsx)("div",{className:"fb-video-container",children:(0,w.jsx)("iframe",{src:i,width:o.width||"500",height:"auto",style:{border:"none",overflow:"hidden",width:"100%",minHeight:"315px"},scrolling:"no",frameBorder:"0",allowFullScreen:o.fullScreen,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"})}),"post"===o.type&&(0,w.jsx)("div",{className:"fb-post-container",children:(0,w.jsx)("iframe",{src:n,width:o.width||"500",height:"auto",style:{border:"none",overflow:"hidden",width:"100%",minHeight:"500px"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"})})]})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-facebook-embed").forEach((e=>{const o=JSON.parse(e.dataset.attributes),i=e.dataset.facebookkey;i&&((0,t.createRoot)(e).render((0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(g,{attributes:o,id:e.id}),(0,w.jsx)(x,{attributes:o,facebookKey:i})]})),e?.removeAttribute("data-attributes"),e?.removeAttribute("data-facebookkey"))}))}))})();