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.0.39 → 2.1.8 View file →
@@ -1 +1,3 @@
1 -(()=>{"use strict";var t={5795:t=>{t.exports=window.ReactDOM},8744:(t,e,o)=>{var n=o(5795);e.H=n.createRoot,n.hydrateRoot}},e={};const o=window.React;var n=function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.exports}(8744);const i=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),r="@media only screen and (max-width: 1024px)",a="@media only screen and (max-width: 640px)",s=(t,e,o=!1)=>i(e)?`${t}: ${e}${o?" !important":""};`:"",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""},c=t=>{const{position:e="center center",xPosition:o=0,yPosition:n=0,attachment:r="",repeat:a="no-repeat",size:s="cover",customSize:M="0px"}=t||{},c=t=>"initial"!==t||i(t);return`\n\t\t${c(e)?`background-position: ${"custom"===e?`${o} ${n}`:e};`:""}\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?`${M} auto`:s};`:""}\n\t`},l=(t={})=>t?{desktop:i(t.url)?`background-image: url(${t.url}); ${c(t?.desktop)}`:"",tablet:i(t.url)?c(t?.tablet):"",mobile:i(t.url)?c(t?.mobile):""}:"",d=(t,e,o=!1)=>{const{type:n="color",color:M,gradient:c,img:d,video:u}=t||{},y="color"===n?s("background",M):"gradient"===n?(t=>{const{type:e="linear",radialType:o="ellipse",colors:n=[],centerPositions:r={x:0,y:0},angel:a=0}=t||{};if(i(t)){const t=n?.map((({color:t,position:e})=>`${t} ${e}%`)),i=`linear-gradient(${a}deg, ${t})`;return s("background","radial"===e?`radial-gradient(${o} at ${r?.x}% ${r?.y}%,${t})`:i)}return""})(c):"image"===n?l(d).desktop:"",p="image"===n?l(d).tablet:"",w="image"===n?l(d).mobile:"",N=o?`${e}:hover`:e;return`\n\t\t${"video"===n?((t,e)=>{const{url:o,loop:n}=t||{},i=document.querySelector(e),r=i?.querySelector(".bPlVideo"),a=document.createElement("video");return a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),r||i&&o&&(a.innerHTML=`<source src=${o}></source>`,i.appendChild(a)),a.loop=n,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${y?`${N}{\n\t\t\t${y}\n\t\t}`:""}\n\n\t\t${p?`${r} {\n\t\t\t${N}{\n\t\t\t\t${p}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${w?`${a} {\n\t\t\t${N}{\n\t\t\t\t${w}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},u=(t,e,o=!1)=>{const{isEnabled:n,colors:r,opacity:a=1,blend:M,filter:c="",blur:l=0,brightness:u=100,contrast:y=100,saturation:p=100,hue:w=0,position:N={top:0,right:0,bottom:0,left:0},zIndex:j=-1}=t||{},L=`${100!==u?`brightness(${u}%)`:""} ${100!==y?`contrast(${y}%)`:""} ${100!==p?`saturate(${p}%)`:""} ${0!==l?`blur(${l}px)`:""} ${0!==w?`hue-rotate(${w}deg)`:""}`,$=`${c}: ${c?L:""}; -webkit-${c}: ${c?L:""};`,D=o?`${e}:hover::after`:`${e}::after`;return n?`\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:${i(N.top)?N.top:0};\n\t\t\tright:${i(N.right)?N.right:0};\n\t\t\tbottom:${i(N.bottom)?N.bottom:0};\n\t\t\tleft:${i(N.left)?N.left:0};\n\t\t\tz-index:${j};\n\t\t}\n\t\t${d(r,D,!1)}\n\t\t${D}{\n\t\t\t${s("opacity",a)}\n\t\t\t${s("mix-blend-mode",M)}\n\t\t\t${$}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},y=(t,e,o=!1)=>{const n=(t,e="desktop")=>{if(!i(t))return"";const{skew:o,scale:n,rotate:r,offset:a,flipX:M,flipY:c}=t,{threeDRotate:l}=r||{},{isProportion:d}=n||{},u=[];return i(o)&&(i(o?.[e]?.x)&&u.push(`skewX(${o[e].x}deg)`),i(o?.[e]?.y)&&u.push(`skewY(${o[e].y}deg)`)),d?i(n?.[e]?.scale)&&u.push(`scale(${n[e].scale})`):(i(n?.[e]?.x)&&u.push(`scaleX(${n[e].x})`),i(n?.[e]?.y)&&u.push(`scaleY(${n[e].y})`)),i(r)&&(i(r?.[e]?.z)&&u.push(`rotateZ(${r[e].z}deg)`),l&&(i(r?.[e]?.x)&&u.push(`rotateX(${r[e].x}deg)`),i(r?.[e]?.y)&&u.push(`rotateY(${r[e].y}deg)`))),i(a)&&(i(a?.[e]?.x)&&u.push(`translateX(${a[e].x})`),i(a?.[e]?.y)&&u.push(`translateY(${a[e].y})`)),i(M)&&u.push(M?"scaleX(-1)":""),i(c)&&u.push(c?"scaleY(-1)":""),0===u.length?"":s("transform",u.join(" "))},M=o?`${e}:hover`:e;return`\n\t\t${M} {\n\t\t\t${n(t,"desktop")}\n\t\t}\n\t\t${r}{\n\t\t\t${M} {\n\t\t\t\t${n(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${a}{\n\t\t\t${M} {\n\t\t\t\t${n(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},p=t=>{const{padding:e,margin:o,height:n,width:i}=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",M(t)),l=t=>s("margin",M(t));return{desktop:c(e?.desktop)+l(o?.desktop)+a("height",n,"desktop")+a("width",i,"desktop"),tablet:c(e?.tablet)+l(o?.tablet)+a("height",n,"tablet")+a("width",i,"tablet"),mobile:c(e?.mobile)+l(o?.mobile)+a("height",n,"mobile")+a("width",i,"mobile")}},w=t=>{const{normal:e,hover:o}=t||{},n=t=>{const{border:e,radius:o,shadow:n}=t||{},i=s("border-radius",M(o)),r=s("box-shadow",((t,e="box")=>{let o="";return t?.map(((n,i)=>{const{hOffset:r="0px",vOffset:a="0px",blur:s="0px",spreed:M="0px",color:c="#e7f0fe",isInset:l=!1}=n||{},d=l?"inset":"",u=`${r} ${a} ${s}`,y=i+1>=t.length?"":", ";o+="text"===e?`${u} ${c}${y}`:`${u} ${M} ${c} ${d}${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():s("border",e(t))})(e)+i+r};return{normal:n(e),hover:n(o)}},N=t=>{const{zIndex:e,overflow:o}=t||{},n=o?`overflow: ${o};`:"",r=t=>`${s("z-index",e?.[t])} ${s("position",i(e?.[t])?"relative":"")}`;return{desktop:r("desktop")+n,tablet:r("tablet"),mobile:r("mobile")}},j=(t,e)=>{const{desktop:o=!1,tablet:n=!1,mobile:i=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",a=t=>t?r:"";return{desktop:a(o),tablet:a(n),mobile:a(i)}},L=(t,e,o=!1,n=!0)=>{const{dimension:M,transform:c,background:l,borderShadow:L,mask:$,animation:D,visibility:m,responsive:b,css:g=""}=e||{},x=o?`#${t}>div>div${n?":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)})(D,t,o);const z=p(M).desktop+N(m).desktop+((t,e,o)=>{const{transition:n=.4}=t||{},{transition:i=.4}=e||{},{transition:r=200}=o||{};return`transition: background ${n}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${r}ms ease-in-out;`})(l,L,c)+(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:r="no-repeat"}=t||{};return e?`-webkit-mask-image: url(${"custom"===o.type?o.url:(a=o.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0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:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===a))).svg});\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===i.type?`${s("-webkit-mask-position-x",i.x)}\n\t\t\t${s("-webkit-mask-position-y",i.y)}`:`${s("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${r};`:""}`:"";var a})($),h=p(M).tablet+N(m).tablet+j(b,o).tablet,I=p(M).mobile+N(m).mobile+j(b,o).mobile,T=w(L).normal,k=w(L).hover,v=j(b,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${k?`${x}:hover {\n\t\t\t${k}\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${h?`${r} {\n\t\t\t${x}{\n\t\t\t\t${h}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${a} {\n\t\t\t${x}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${d(l?.normal,x)}\n\t\t${d(l?.hover,x,!0)}\n\t\t${u(l?.overlay,x)}\n\t\t${u(l?.hoverOverlay,x,!0)}\n\t\t${i(c?.normal)?y(c?.normal,x):""}\n\t\t${i(c?.hover)?y(c?.hover,x,!0):""}\n\n\t\t${g}\n\t`.replace(/\s+/g," ")},$=({attributes:t,id:e})=>{const{advanced:n}=t;return(0,o.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${L(e,n)}\n\t`}})},D=({attributes:t,facebookKey:e})=>{const{facebook:n}=t,i=`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(n.url?.video||"")}&width=${n.width||"500"}&show_text=${n.fullPost}&show_captions=${n.caption}&autoplay=${n.autoPlay}&appId=${e}`,r=`https://www.facebook.com/plugins/post.php?href=${encodeURIComponent(n.url?.post||"")}&width=${n.width||"500"}&show_text=${n.fullPost}&appId=${e}`;return(0,o.createElement)("div",{className:`b-blocks-facebookEmbed-wrapper ${n.alignment}`},"video"===n.type&&(0,o.createElement)("div",{className:"fb-video-container"},(0,o.createElement)("iframe",{src:i,width:n.width||"500",height:"auto",style:{border:"none",overflow:"hidden",width:"100%",minHeight:"315px"},scrolling:"no",frameBorder:"0",allowFullScreen:n.fullScreen,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"})),"post"===n.type&&(0,o.createElement)("div",{className:"fb-post-container"},(0,o.createElement)("iframe",{src:r,width:n.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((t=>{const e=JSON.parse(t.dataset.attributes),i=t.dataset.facebookkey;i&&((0,n.H)(t).render((0,o.createElement)(o.Fragment,null,(0,o.createElement)($,{attributes:e,id:t.id}),(0,o.createElement)(D,{attributes:e,facebookKey:i}))),t?.removeAttribute("data-attributes"),t?.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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5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64,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"))}))}))})();