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/timeline/view.js +6 -1 2.1.3 → 2.1.8 View file →
@@ -1 +1,6 @@
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)",r="linear-gradient(135deg, #0040E3, #18D4FD)",s=window.React,a=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},l=(t,o)=>e(o)?`${t}: ${o};`:"",c=(t,e=!0,o=!0,n=!0)=>{const{type:i="solid",color:s="",gradient:c=r,image:d={},position:b="center center",attachment:p="",repeat:u="no-repeat",size:$="",overlayColor:m=""}=t||{};return"gradient"===i&&o?l("background",c):"image"===i&&n?`background: ${a(d?.url)};\n\t\t\t\t${l("background-color",m)}\n\t\t\t\t${l("background-position",b)}\n\t\t\t\t${l("background-size",$)}\n\t\t\t\t${l("background-repeat",u)}\n\t\t\t\t${l("background-attachment",p)}\n\t\t\t\t${l("background-repeat",u)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&l("background",s)},d=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():l("border",e(t))},b=(t,e="box")=>{let o="";return t?.map(((n,i)=>{const{hOffset:r="0px",vOffset:s="0px",blur:a="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=n||{},b=d?"inset":"",p=`${r} ${s} ${a}`,u=i+1>=t.length?"":", ";o+="text"===e?`${p} ${c}${u}`:`${p} ${l} ${c} ${b}${u}`})),o||""},p=(t,e,o=!0)=>{const{fontFamily:r="Default",fontCategory:s="sans-serif",fontVariant:a=400,fontWeight:c,isUploadFont:d=!0,fontSize:b={desktop:null,tablet:null,mobile:null},fontStyle:p,textTransform:u,textDecoration:$,lineHeight:m,letterSpace:g}=e||{},y=!o||!r||"Default"===r,M=b?.desktop||b,k=b?.tablet||M,h=b?.mobile||k,w=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},x=`\n\t\t${y?"":`font-family: '${r}', ${s};`}\n\t\t${l("font-weight",c)}\n\t\t${l("font-size",w(M))}\n\t\t${l("font-style",p)}\n\t\t${l("text-transform",u)}\n\t\t${l("text-decoration",$)}\n\t\t${l("line-height",m)}\n\t\t${l("letter-spacing",g)}\n\t`,f=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",j=y?"":`https://fonts.googleapis.com/css2?family=${r?.split(" ").join("+")}${f.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||y?"":`@import url(${j});`,styles:`${t}{\n\t\t\t${x}\n\t\t}\n\t\t${n} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",w(k))}\n\t\t\t}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${l("font-size",w(h))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},u=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},$=t=>{const{position:o="center center",xPosition:n=0,yPosition:i=0,attachment:r="",repeat:s="no-repeat",size:a="cover",customSize:l="0px"}=t||{},c=t=>"initial"!==t||e(t);return`\n\t\t${c(o)?`background-position: ${"custom"===o?`${n} ${i}`:o};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(s)?`background-repeat: ${s};`:""}\n\t\t${c(a)?`background-size: ${"custom"===a?`${l} auto`:a};`:""}\n\t`},m=(t={})=>t?{desktop:e(t.url)?`background-image: ${a(t.url)}; ${$(t?.desktop)}`:"",tablet:e(t.url)?$(t?.tablet):"",mobile:e(t.url)?$(t?.mobile):""}:"",g=(t,r,s=!1)=>{const{type:a="color",color:c,gradient:d,img:b,video:p}=t||{},u="color"===a?l("background",c):"gradient"===a?(t=>{const{type:o="linear",radialType:n="ellipse",colors:i=[],centerPositions:r={x:0,y:0},angel:s=0}=t||{};if(e(t)){const t=i?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${s}deg, ${t})`;return l("background","radial"===o?`radial-gradient(${n} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(d):"image"===a?m(b).desktop:"",$="image"===a?m(b).tablet:"",g="image"===a?m(b).mobile:"",y=s?`${r}:hover`:r;return`\n\t\t${"video"===a?((t,e)=>{const{url:n,loop:i}=t||{},r=document.querySelector(e),s=r?.querySelector(".bPlVideo"),a=document.createElement("video");if(a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),!s&&r&&n){const t=o(n);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),r.appendChild(a)}}return a.loop=i,a.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(p,r):""}\n\n\t\t${u?`${y}{\n\t\t\t${u}\n\t\t}`:""}\n\n\t\t${$?`${n} {\n\t\t\t${y}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g?`${i} {\n\t\t\t${y}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},y=(t,o,n=!1)=>{const{isEnabled:i,colors:r,opacity:s=1,blend:a,filter:c="",blur:d=0,brightness:b=100,contrast:p=100,saturation:u=100,hue:$=0,position:m={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},M=`${100!==b?`brightness(${b}%)`:""} ${100!==p?`contrast(${p}%)`:""} ${100!==u?`saturate(${u}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==$?`hue-rotate(${$}deg)`:""}`,k=`${c}: ${c?M:""}; -webkit-${c}: ${c?M:""};`,h=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(m.top)?m.top:0};\n\t\t\tright:${e(m.right)?m.right:0};\n\t\t\tbottom:${e(m.bottom)?m.bottom:0};\n\t\t\tleft:${e(m.left)?m.left:0};\n\t\t\tz-index:${y};\n\t\t}\n\t\t${g(r,h,!1)}\n\t\t${h}{\n\t\t\t${l("opacity",s)}\n\t\t\t${l("mix-blend-mode",a)}\n\t\t\t${k}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},M=(t,o,r=!1)=>{const s=(t,o="desktop")=>{if(!e(t))return"";const{skew:n,scale:i,rotate:r,offset:s,flipX:a,flipY:c}=t,{threeDRotate:d}=r||{},{isProportion:b}=i||{},p=[];return e(n)&&(e(n?.[o]?.x)&&p.push(`skewX(${n[o].x}deg)`),e(n?.[o]?.y)&&p.push(`skewY(${n[o].y}deg)`)),b?e(i?.[o]?.scale)&&p.push(`scale(${i[o].scale})`):(e(i?.[o]?.x)&&p.push(`scaleX(${i[o].x})`),e(i?.[o]?.y)&&p.push(`scaleY(${i[o].y})`)),e(r)&&(e(r?.[o]?.z)&&p.push(`rotateZ(${r[o].z}deg)`),d&&(e(r?.[o]?.x)&&p.push(`rotateX(${r[o].x}deg)`),e(r?.[o]?.y)&&p.push(`rotateY(${r[o].y}deg)`))),e(s)&&(e(s?.[o]?.x)&&p.push(`translateX(${s[o].x})`),e(s?.[o]?.y)&&p.push(`translateY(${s[o].y})`)),e(a)&&p.push(a?"scaleX(-1)":""),e(c)&&p.push(c?"scaleY(-1)":""),0===p.length?"":l("transform",p.join(" "))},a=r?`${o}:hover`:o;return`\n\t\t${a} {\n\t\t\t${s(t,"desktop")}\n\t\t}\n\t\t${n}{\n\t\t\t${a} {\n\t\t\t\t${s(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${i}{\n\t\t\t${a} {\n\t\t\t\t${s(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},k=t=>{const{padding:e,margin:o,height:n,width:i}=t||{},r=(t,e)=>l(t,e),s=(t,e,o)=>r(t,e?.[t]?.[o])+r(`min-${t}`,e?.min?.[o])+r(`max-${t}`,e?.max?.[o]),a=t=>l("padding",u(t)),c=t=>l("margin",u(t));return{desktop:a(e?.desktop)+c(o?.desktop)+s("height",n,"desktop")+s("width",i,"desktop"),tablet:a(e?.tablet)+c(o?.tablet)+s("height",n,"tablet")+s("width",i,"tablet"),mobile:a(e?.mobile)+c(o?.mobile)+s("height",n,"mobile")+s("width",i,"mobile")}},h=t=>{const{normal:e,hover:o}=t||{},n=t=>{const{border:e,radius:o,shadow:n}=t||{},i=l("border-radius",u(o)),r=l("box-shadow",b(n,"box"));return d(e)+i+r};return{normal:n(e),hover:n(o)}},w=t=>{const{zIndex:o,overflow:n}=t||{},i=n?`overflow: ${n};`:"",r=t=>`${l("z-index",o?.[t])} ${l("position",e(o?.[t])?"relative":"")}`;return{desktop:r("desktop")+i,tablet:r("tablet"),mobile:r("mobile")}},x=(t,e)=>{const{desktop:o=!1,tablet:n=!1,mobile:i=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",s=t=>t?r:"";return{desktop:s(o),tablet:s(n),mobile:s(i)}},f=(t,o,r=!1,s=!0)=>{const{dimension:c,transform:d,background:b,borderShadow:p,mask:u,animation:$,visibility:m,responsive:f,css:j=""}=o||{},L=r?`#${t}>div>div${s?":first-child":""}`:`#${t}>div`;((t,e,o)=>{const n=o?`#${e} > div`:`#${e}`,i=document.querySelector(n);if(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)){const t=new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]});t.observe(i)}})($,t,r);const N=k(c).desktop+w(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;`})(b,p,d)+(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: ${"custom"===o.type?a(o.url):`url(${(s=o.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02LjMyODVBMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDUwLjg1LDYuNTQ3NEw0NC41MzIsMTIuODY1MSwzOC4xNiw2LjU0NzRhMjIuMzUyNCwyMi4zNTI0LDAsMSwwLTMxLjYxMiwzMS42MWw2LjMxODEsNi4zMTc3TDYuNTQ3OCw1MC44NDdhMjIuMzUyNCwyMi4zNTI0LDAsMCwwLDMxLjYxMiwzMS42MWw2LjMxODEtNi4zMTc3TDUwLjg1LDgyLjM5MjJhMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDMxLjYxMi0zMS41OTkzWiIvPjwvc3ZnPg==",type:"flower"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1MTYsNDUuMTUxNiwwLDAsMC01Ljc3NjYtMy4zMjQxYy0uMjQ2OC0uMTE1Ny0uNjAxNi0uMzAwOC0uOTg3Mi0uNDc4MnExLjc4MTYtMS44OTcyLDMuNTg2My0zLjc3MTNjLjk0ODYtLjk4LTYuMzYyOC01LjkyMzItNy4wNDkyLTYuMzcwNUE0NC4xNTc5LDQ0LjE1NzksMCwwLDAsNjAuNzUsMTIuMjYwNmwtLjI5My0uMTQ2NSwxLjM5NTktMS41NDI1Yy45NDA5LTEuMDQ4OS02LjMzMTktNS45LTcuMDQ5Mi02LjM3QTQ0LjIxMiw0NC4yMTIsMCwwLDAsNDkuMDQyMi44NjE2Yy0uNTQtLjI0NjctMi4zMTM3LTEuMjY0OC0yLjg0NTgtLjY4NjRRMzIuNzM4MSwxNS4xNjgyLDE4LjExNTQsMjkuMDY2Yy03Ljg0MzYsNy40NS0xNi41NjYzLDE1LjU3OTEtMTguMTA4OCwyNi44Ny0uMTE1Ny44MjUzLDEuMzI2NSwxLjk3NDQsMS43NDMsMi4zMTM4YTQwLjc5OSw0MC43OTksMCwwLDAsNS4zMTM5LDQuMDU2Nyw0NC4yMTc0LDQ0LjIxNzQsMCwwLDAsNS43NjExLDMuMzRjLjY0LjI5MzEsMi4xNzUsMS4yMDMxLDIuODQ1OS42ODY0bDIuMDc0Ny0xLjU1NzljMS40NSwxLjg1ODcsNS45Njk0LDQuNzIsNi42NzEyLDUuMTc1bDEuNDg4NS45NTY0QzI0LjQwMSw3Mi43NjQ3LDIyLjkyLDc0LjYzMTEsMjEuNDcsNzYuNTI4M2MtLjkxLDEuMTg3OCw2LjI2MjUsNS44NjE1LDcuMDQ5Miw2LjM3YTQ0LjE2MzMsNDQuMTYzMywwLDAsMCw1Ljc2MTEsMy4zMzE4Yy42MDE2LjI3NzYsMi4yMjg5LDEuMjM0LDIuODQ1OS42OTQxbDkuMjU1LTguMDk4Yy44MjUyLDIuNTY4MiwxNC41Njg3LDExLjYzLDE1LjY3MTYsOS45NzIxTDkxLjA2LDQ1LjM2MjRDOTEuNjkyLDQ0LjQxMzgsODYuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",type:"sketch"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===s))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===i.type?`${l("-webkit-mask-position-x",i.x)}\n\t\t\t${l("-webkit-mask-position-y",i.y)}`:`${l("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${r};`:""}`:"";var s})(u),D=k(c).tablet+w(m).tablet+x(f,r).tablet,z=k(c).mobile+w(m).mobile+x(f,r).mobile,v=h(p).normal,I=h(p).hover,T=x(f,r).desktop;return`\n\t\t${N||v?`${L} {\n\t\t\t${N}\n\t\t\t${v}\n\t\t}`:""}\n\t\t${I?`${L}:hover {\n\t\t\t${I}\n\t\t}`:""}\n\n\t\t${T?`@media only screen and (min-width: 1025px) {\n\t\t\t${L}{\n\t\t\t\t${T}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${D?`${n} {\n\t\t\t${L}{\n\t\t\t\t${D}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${z?`${i} {\n\t\t\t${L}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g(b?.normal,L)}\n\t\t${g(b?.hover,L,!0)}\n\t\t${y(b?.overlay,L)}\n\t\t${y(b?.hoverOverlay,L,!0)}\n\t\t${e(d?.normal)?M(d?.normal,L):""}\n\t\t${e(d?.hover)?M(d?.hover,L,!0):""}\n\n\t\t${j}\n\t`.replace(/\s+/g," ")},j=window.wp.i18n,L=((0,j.__)("General","b-blocks"),(0,j.__)("Style","b-blocks"),(0,j.__)("Advanced","b-blocks"),[{label:(0,j.__)("Vertical","b-blocks"),value:"vertical"},{label:(0,j.__)("Horizontal","b-blocks"),value:"horizontal"}].map((t=>t.value))),N=[{label:(0,j.__)("Alternate","b-blocks"),value:"alternate"},{label:(0,j.__)("Left","b-blocks"),value:"left"},{label:(0,j.__)("Right","b-blocks"),value:"right"}].map((t=>t.value)),D=[{label:(0,j.__)("Between markers","b-blocks"),value:"markers"},{label:(0,j.__)("Full length","b-blocks"),value:"full"}].map((t=>t.value)),z=["start","center","end"],v=([{label:(0,j.__)("Circle","b-blocks"),value:"circle"},{label:(0,j.__)("Rounded","b-blocks"),value:"rounded"},{label:(0,j.__)("Square","b-blocks"),value:"square"},{label:(0,j.__)("Diamond","b-blocks"),value:"diamond"},{label:(0,j.__)("Hexagon","b-blocks"),value:"hexagon"}].map((t=>t.value)),{circle:"50%",rounded:"25%",square:"0",diamond:"0",hexagon:"0"}),I=["hexagon"],T={diamond:45},S=([{label:(0,j.__)("Solid","b-blocks"),value:"solid"},{label:(0,j.__)("Dashed","b-blocks"),value:"dashed"},{label:(0,j.__)("Dotted","b-blocks"),value:"dotted"},{label:(0,j.__)("Double","b-blocks"),value:"double"}].map((t=>t.value)),(t={})=>{const{width:e,style:o,offset:n,color:i}=t;return[e?`outline-width: ${e};`:"",o?`outline-style: ${o};`:"",i?`outline-color: ${i};`:"",n?`outline-offset: ${n};`:""].filter(Boolean).join(" ")}),O=[{label:(0,j.__)("Solid","b-blocks"),value:"solid"},{label:(0,j.__)("Dashed","b-blocks"),value:"dashed"},{label:(0,j.__)("Dotted","b-blocks"),value:"dotted"}].map((t=>t.value)),A=["dashed","dotted"],E=((0,j.__)("Auto (follow layout)","b-blocks"),(0,j.__)("Left","b-blocks"),(0,j.__)("Right","b-blocks"),t=>[["core/heading",{level:3,content:t}],["core/paragraph",{content:(0,j.__)("Describe what happened at this point on the timeline.","b-blocks")}]]),Y=(E((0,j.__)("First milestone","b-blocks")),E((0,j.__)("Second milestone","b-blocks")),E((0,j.__)("Third milestone","b-blocks")),JSON.parse('{"attributes":{"align":{"type":"string","default":""},"layout":{"type":"object","default":{"desktop":{"direction":"vertical","side":"alternate","itemGap":"10px","cardWidth":"100%","cardGap":"0px","markerGap":"10px"},"tablet":{"direction":"","side":"","itemGap":"","cardWidth":"","cardGap":"","markerGap":""},"mobile":{"direction":"","side":"","itemGap":"","cardWidth":"","cardGap":"","markerGap":""}}},"connector":{"type":"object","default":{"line":{"show":true,"style":"solid","bg":{"type":"solid","color":"#d9d9d9"},"progress":false,"activeBg":{"type":"solid","color":"#1e1e1e"},"progressFade":false,"extent":"markers","desktop":{"width":"2px","dash":"8px","gap":"6px"},"tablet":{"width":"","dash":"","gap":""},"mobile":{"width":"","dash":"","gap":""}},"arrow":{"show":true,"align":"center","color":"","desktop":{"size":"14px","offset":"16px"},"tablet":{"size":"","offset":""},"mobile":{"size":"","offset":""}}}},"marker":{"type":"object","default":{"shape":"circle","transition":300,"pulse":{"show":false,"bg":{"type":"solid","color":""},"speed":2400},"normal":{"bg":{"type":"solid","color":"#efefef"},"color":{"icon":"#1e1e1e"},"border":{"width":"0px"},"ring":{"width":"0px","style":"solid","offset":"0px","color":""},"shadow":[]},"hover":{"bg":{"type":"solid","color":""},"color":{"icon":""},"border":{},"ring":{"width":"","style":"","offset":"","color":""},"shadow":[]},"desktop":{"size":"34px","iconSize":"16px","radius":{}},"tablet":{"size":"","iconSize":"","radius":{}},"mobile":{"size":"","iconSize":"","radius":{}}}},"card":{"type":"object","default":{"normal":{"bg":{"type":"solid","color":"#efefef"},"border":{"width":"0px"},"shadow":[{"hOffset":"0px","vOffset":"0px","blur":"0px","spreed":"0px","color":"#7090b000","isInset":false}]},"hover":{"bg":{"type":"solid","color":""},"border":{}},"desktop":{"padding":{"top":"16px","right":"16px","bottom":"16px","left":"16px"},"radius":{"top":"4px","right":"4px","bottom":"4px","left":"4px"}},"tablet":{"padding":{},"radius":{}},"mobile":{"padding":{},"radius":{}}}},"date":{"type":"object","default":{"show":true,"color":"#1e1e1e","typo":{"fontSize":{"desktop":"16px"}},"desktop":{"gap":"16px"},"tablet":{"gap":""},"mobile":{"gap":""}}},"advanced":{"type":"object","default":{"dimension":{"padding":{"desktop":{"top":"","right":"","bottom":"","left":""},"tablet":{"top":"","right":"","bottom":"","left":""},"mobile":{"top":"","right":"","bottom":"","left":""}}},"transform":{"normal":{"rotate":{"desktop":{"z":"","y":"","x":""},"tablet":{"z":"","y":"","x":""},"mobile":{"z":"","y":"","x":""},"threeDRotate":false},"offset":{"desktop":{"x":"","y":""},"tablet":{"x":"","y":""},"mobile":{"x":"","y":""}},"scale":{"isProportion":true,"desktop":{"x":"","y":"","scale":""},"tablet":{"x":"","y":"","scale":""},"mobile":{"x":"","y":"","scale":""}},"skew":{"desktop":{"x":"","y":""},"tablet":{"x":"","y":""},"mobile":{"x":"","y":""}},"flipX":false,"flipY":false},"hover":{"rotate":{"desktop":{"z":"","y":"","x":""},"tablet":{"z":"","y":"","x":""},"mobile":{"z":"","y":"","x":""},"threeDRotate":false},"offset":{"desktop":{"x":"","y":""},"tablet":{"x":"","y":""},"mobile":{"x":"","y":""}},"scale":{"isProportion":true,"desktop":{"x":"","y":"","scale":""},"tablet":{"x":"","y":"","scale":""},"mobile":{"x":"","y":"","scale":""}},"skew":{"desktop":{"x":"","y":""},"tablet":{"x":"","y":""},"mobile":{"x":"","y":""}},"flipX":false,"flipY":false},"transition":200},"borderShadow":{"normal":{"radius":{"top":"","right":"","bottom":"","left":""},"shadow":[{"hOffset":"","vOffset":"","blur":"","spreed":"","color":"","isInset":false}],"border":{"top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}}}},"background":{"normal":{"type":"color","color":"","gradient":{"type":"radial","radialType":"ellipse","colors":[{"color":"rgba(58, 66, 222, 1)","position":"0"},{"color":"rgba(176, 195, 235, 1)","position":"80"}],"centerPositions":{"x":50,"y":50},"angel":90},"img":{"url":"","desktop":{"position":"center center","xPosition":0,"yPosition":0,"attachment":"","repeat":"no-repeat","size":"","customSize":"0px"},"tablet":{"position":"center center","xPosition":0,"yPosition":0,"attachment":"","repeat":"no-repeat","size":"","customSize":"0px"},"mobile":{"position":"center center","xPosition":0,"yPosition":0,"attachment":"","repeat":"no-repeat","size":"","customSize":"0px"}},"video":{"url":"","loop":false},"transition":0.3}}}}}}')),C=(t,e)=>{if(null==e)return t;if(Array.isArray(e)){const o=t&&"object"==typeof t&&!Array.isArray(t);return 0===e.length&&o?t:e}if("object"!=typeof e)return e;if(!t||"object"!=typeof t||Array.isArray(t))return e;const o={...t};return Object.keys(e).forEach((n=>{o[n]=C(t[n],e[n])})),o},Q=Object.fromEntries(Object.entries(Y.attributes).map((([t,e])=>[t,e.default]))),_=(t={})=>C(Q,t),U=(t={})=>{const{layout:e={},connector:o={},date:n={}}=t,{line:i={},arrow:r={}}=o,s=(t,o,n,i)=>("desktop"===t?[e.desktop?.[o]]:"tablet"===t?[e.tablet?.[o],e.desktop?.[o]]:[e.mobile?.[o],e.tablet?.[o],e.desktop?.[o]]).find((t=>n.includes(t)))||i,a=t=>s(t,"side",N,"alternate"),l=t=>s(t,"direction",L,"vertical"),c=D.includes(i.extent)?i.extent:"markers",d=O.includes(i.style)?i.style:"solid",b=z.includes(r.align)?r.align:"center";return["b-blocks-timeline",`b-blocks-timeline-desktop-${l("desktop")}`,`b-blocks-timeline-tablet-${l("tablet")}`,`b-blocks-timeline-mobile-${l("mobile")}`,`b-blocks-timeline-desktop-${a("desktop")}`,`b-blocks-timeline-tablet-${a("tablet")}`,`b-blocks-timeline-mobile-${a("mobile")}`,!1===i.show?"b-blocks-timeline-no-line":"",`b-blocks-timeline-line-${d}`,i.progress?"b-blocks-timeline-progress":"",i.progress&&i.progressFade?"b-blocks-timeline-progress-fade":"","full"===c?"b-blocks-timeline-line-full":"",!1===r.show?"b-blocks-timeline-no-arrow":"",`b-blocks-timeline-arrow-${b}`,!1===n.show?"b-blocks-timeline-no-date":""].filter(Boolean).join(" ")},P=window.ReactJSXRuntime,R=t=>{const e=v[t];return`${void 0===e?"":`border-radius: ${e};`} ${I.includes(t)?"clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);":""}`},H=({attributes:t,id:e,isBackend:o=!1})=>{const{layout:r,connector:s,marker:a,card:$,date:m,advanced:g}=_(t),{line:y,arrow:M}=s,k=T[a.shape]||0,h=I.includes(a.shape),w=c(a.pulse?.bg,!0,!0,!1)||c(a.normal.bg,!0,!0,!1),x=`#${e}`,j=`${x} .b-blocks-timeline-items`,L=`${x} .b-blocks-timeline-item`,N=`${x} .b-blocks-timeline-content`,D=`${x} .b-blocks-timeline-card`,z=`${x} .b-blocks-timeline-marker`,v=`${x} .b-blocks-timeline-date`,O=t=>"horizontal"!==(t=>("desktop"===t?r.desktop?.direction:"tablet"===t?r.tablet?.direction||r.desktop?.direction:r.mobile?.direction||r.tablet?.direction||r.desktop?.direction)||"vertical")(t),E=(t,e)=>"desktop"===t?y.desktop[e]:"tablet"===t?y.tablet[e]||y.desktop[e]:y.mobile[e]||y.tablet[e]||y.desktop[e],Y=A.includes(y.style),C=(t,e,o,n)=>`\n\t\t${x} .b-blocks-timeline-item ${e}{ ${o} }\n\t\t${x}.b-blocks-timeline-${t}-right .b-blocks-timeline-item ${e}{ ${n} }\n\t\t${x}.b-blocks-timeline-${t}-alternate .b-blocks-timeline-item:where(:nth-of-type(even)) ${e}{ ${n} }\n\t\t${x} .b-blocks-timeline-item.b-blocks-timeline-side-left ${e}{ ${o} }\n\t\t${x} .b-blocks-timeline-item.b-blocks-timeline-side-right ${e}{ ${n} }\n\t`,Q=t=>{const e=O(t),o=a[t].size,n=k&&o?`calc(${o} / 1.4142)`:o,i=E(t,"width"),s=o?`calc(${o} / 2)`:"17px",d="full"===y.extent?"0px":s,b=`var(--bb-tl-line-start, ${d})`,p=`var(--bb-tl-line-end, ${d})`,g=e?`top: ${b}; bottom: ${p}; left: 50%; right: auto; transform: translateX(-50%);`:`left: ${b}; right: ${p}; top: var(--bb-tl-line-cross, 50%); bottom: auto; transform: translateY(-50%);`,h=r[t].cardGap||"0px",w=M[t].size||"14px",f=M[t].offset||"16px",v=m[t].gap||"16px",I="solid"===($.normal.bg?.type||"solid")?$.normal.bg?.color:"",T=M.color||I||"#efefef",S=!1===M.show?"0px":w,A=(t,o)=>e?`padding-inline: ${t} ${o};`:`padding-block: ${t} ${o};`,Q=`\n\t\t\t${C(t,".b-blocks-timeline-content",A("0",`calc(${h} + ${S})`),A(`calc(${h} + ${S})`,"0"))}\n\t\t\t${C(t,".b-blocks-timeline-date",A(v,"0"),A("0",v))}\n\t\t`,_=(o,n)=>{const i=(o=>{const n=`calc((100% - ${((t,e)=>"desktop"===t?r.desktop[e]:"tablet"===t?r.tablet[e]||r.desktop[e]:r.mobile[e]||r.tablet[e]||r.desktop[e])(t,"cardWidth")||"100%"}) / 2)`,i=e?`calc(${f} + ${w})`:`calc(${n} + ${f} + ${w})`,s=(t,o)=>e?`margin-block: ${t} ${o};`:`margin-inline: ${t} ${o};`;return"center"===o?{arrow:"",anchor:`${s("0","0")}`}:{arrow:(a=o,(e?"start"===a?`top: ${f}; bottom: auto;`:`top: auto; bottom: ${f};`:"start"===a?`inset-inline-start: ${f}; inset-inline-end: auto;`:`inset-inline-start: auto; inset-inline-end: ${f};`)+" transform: none;"),anchor:"start"===o?s(i,"0"):s("0",i)};var a})(n);return`\n\t\t\t\t${o} .b-blocks-timeline-card::after{ ${i.arrow} }\n\t\t\t\t${o} .b-blocks-timeline-marker,\n\t\t\t\t${o} .b-blocks-timeline-date{ ${i.anchor} }\n\t\t\t`};return`\n\t\t${Q}\n\t\t${D}::after{\n\t\t\t${l("width",e?w:`calc(${w} * 2)`)}\n\t\t\t${l("height",e?`calc(${w} * 2)`:w)}\n\t\t\t${l("background",T)}\n\t\t}\n\t\t${_(`${x} .b-blocks-timeline-item`,M.align||"center")}\n\t\t${["start","center","end"].map((t=>_(`${x} .b-blocks-timeline-item.b-blocks-timeline-item-arrow-${t}`,t))).join("")}\n\n\t\t${j}{\n\t\t\t${l(e?"row-gap":"column-gap",r[t].itemGap)}\n\t\t}\n\t\t${j}::before,\n\t\t${j}::after{\n\t\t\t${(t=>{return Y?(e=(t=>{const e=O(t),o=E(t,"gap")||"6px";if("dotted"===y.style){const n=E(t,"width")||"2px";return{image:"radial-gradient(circle closest-side, #000 99%, transparent 100%)",size:e?`${n} calc(${n} + ${o})`:`calc(${n} + ${o}) ${n}`,repeat:e?"repeat-y":"repeat-x"}}const n=E(t,"dash")||"8px";return{image:`repeating-linear-gradient(${e?"to bottom":"to right"}, #000 0 ${n}, transparent ${n} calc(${n} + ${o}))`,size:"auto",repeat:"repeat"}})(t),`\n\t\t\t-webkit-mask-image: ${e.image};\n\t\t\tmask-image: ${e.image};\n\t\t\t-webkit-mask-size: ${e.size};\n\t\t\tmask-size: ${e.size};\n\t\t\t-webkit-mask-repeat: ${e.repeat};\n\t\t\tmask-repeat: ${e.repeat};\n\t\t\t-webkit-mask-position: center;\n\t\t\tmask-position: center;\n\t`):"";var e})(t)}\n\t\t}\n\t\t${j}::before{\n\t\t\t${g}\n\t\t\t${c(y.bg)}\n\t\t\t${l("width",e?i:"auto")}\n\t\t\t${l("height",e?"auto":i)}\n\t\t}\n\t\t${j}::after{\n\t\t\t${g}\n\t\t\t${c(y.activeBg)}\n\t\t\t${l("width",e?i:"auto")}\n\t\t\t${l("height",e?"auto":i)}\n\t\t}\n\t\t${L}{\n\t\t\t${l(e?"column-gap":"row-gap",r[t].markerGap)}\n\t\t}\n\t\t${N}{\n\n\t\t}\n\t\t${D}{\n\t\t\t${l("width",r[t].cardWidth)}\n\t\t\t${l("padding",u($[t].padding))}\n\t\t\t${l("border-radius",u($[t].radius))}\n\t\t}\n\t\t${z}{\n\t\t\t${l("width",n)}\n\t\t\t${l("height",n)}\n\t\t\t${l("font-size",a[t].iconSize)}\n\t\t\t${l("border-radius",u(a[t].radius))}\n\t\t}\n\n\t\t`};return(0,P.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${p("",m.typo).googleFontLink}\n\t\t\t${p(v,m.typo).styles}\n\n\t\t\t${D}{\n\t\t\t\t${c($.normal.bg)}\n\t\t\t\t${d($.normal.border)}\n\t\t\t\t${l("box-shadow",b($.normal.shadow||[]))}\n\t\t\t}\n\t\t\t${D}:hover{\n\t\t\t\t${c($.hover.bg)}\n\t\t\t\t${d($.hover.border)}\n\t\t\t}\n\t\t\t${z}{\n\t\t\t\t${c(a.normal.bg)}\n\t\t\t\t${l("color",a.normal.color.icon)}\n\t\t\t\t${d(a.normal.border)}\n\t\t\t\t${R(a.shape)}\n\t\t\t\t${h?"":S(a.normal.ring)}\n\t\t\t\t${l("box-shadow",b(a.normal.shadow||[]))}\n\t\t\t\t${k?`rotate: ${k}deg;`:""}\n\t\t\t\t${a.transition?`transition: background ${a.transition}ms ease, color ${a.transition}ms ease, border-color ${a.transition}ms ease, outline-color ${a.transition}ms ease, outline-offset ${a.transition}ms ease, box-shadow ${a.transition}ms ease;`:""}\n\t\t\t}\n\t\t\t${k?`${z} svg{ rotate: -${k}deg; }`:""}\n\t\t\t${z}:hover{\n\t\t\t\t${c(a.hover.bg)}\n\t\t\t\t${l("color",a.hover.color.icon)}\n\t\t\t\t${d(a.hover.border)}\n\t\t\t\t${h?"":S(a.hover.ring)}\n\t\t\t\t${l("box-shadow",b(a.hover.shadow||[]))}\n\t\t\t}\n\t\t\t${a.pulse?.show&&!h?`\n\t\t\t\t${z}::after{\n\t\t\t\t\t${w}\n\t\t\t\t\tanimation-name: bb-tl-marker-pulse;\n\t\t\t\t\t${l("animation-duration",a.pulse.speed?`${a.pulse.speed}ms`:"")}\n\t\t\t\t}\n\t\t\t`:""}\n\t\t\t${v}{\n\t\t\t\t${l("color",m.color)}\n\t\t\t}\n\n\t\t\t${Q("desktop")}\n\n\t\t\t${n}{\n\t\t\t\t${Q("tablet")}\n\t\t\t}\n\n\t\t\t${i}{\n\t\t\t\t${Q("mobile")}\n\t\t\t}\n\n\t\t\t${f(e,g,o,!1)}\n\t\t\t`}})},Z=t=>Math.round(1e3*t)/1e3,W=({attributes:t,templateContent:e})=>{const o=(0,s.useRef)(null),n=_(t),{layout:i,connector:r}=n;(0,s.useLayoutEffect)((()=>{const t=o.current?.closest(".wp-block-b-blocks-timeline");if(!t)return;const e=Array.from(t.classList).filter((t=>!t.startsWith("b-blocks-timeline")));t.className=[...e,U(n)].join(" ")}));const{progress:a}=r.line;return(0,s.useEffect)((()=>{const t=o.current;if(t&&e)return"1"!==e.dataset.moved&&(t.append(...Array.from(e.children)),e.dataset.moved="1"),((t,e={})=>{if(!t)return()=>{};let o=null;const n=()=>{null===o&&(o=requestAnimationFrame((()=>{o=null,((t,e={})=>{if(!t)return;const o=getComputedStyle(t),n="grid"===o.display?!o.gridAutoFlow.includes("column"):"row"!==o.flexDirection,i=t.getBoundingClientRect(),r=n?i.height:i.width;if(!r)return;const s=Array.from(t.querySelectorAll(":scope > * > .b-blocks-timeline-marker")),a=s.map((t=>{const e=t.getBoundingClientRect();return n?e.top-i.top+e.height/2:e.left-i.left+e.width/2})).sort(((t,e)=>t-e));if(s.length){const e=s[0].getBoundingClientRect(),o=n?e.left-i.left+e.width/2:e.top-i.top+e.height/2;t.style.setProperty("--bb-tl-line-cross",`${Z(o)}px`)}const l="full"!==e.extent&&a.length>0,c=l?a[0]:0,d=l?a[a.length-1]:r;t.style.setProperty("--bb-tl-line-start",`${Z(c)}px`),t.style.setProperty("--bb-tl-line-end",`${Z(r-d)}px`)})(t,e)})))};n();const i="undefined"!=typeof ResizeObserver?new ResizeObserver(n):null;return i?(i.observe(t),t.querySelectorAll(":scope > *").forEach((t=>i.observe(t)))):window.addEventListener("resize",n),()=>{null!==o&&cancelAnimationFrame(o),i?i.disconnect():window.removeEventListener("resize",n)}})(t,{extent:r.line.extent})}),[e,i,r]),(0,s.useEffect)((()=>{if(a&&o.current)return(t=>{const e=t.ownerDocument?.defaultView||window;let o=null,n=!0;const i=()=>{o=null;const n=t.getBoundingClientRect(),i=(e.innerHeight||t.ownerDocument.documentElement.clientHeight)/2-n.top,r=n.height||1,s=Math.min(Math.max(i/r,0),1);t.style.setProperty("--bb-tl-line-progress",s.toFixed(4))},r=()=>{null===o&&n&&(o=requestAnimationFrame(i))},s=void 0!==e.IntersectionObserver?new e.IntersectionObserver((t=>{n=t.some((t=>t.isIntersecting)),r()})):null;return s&&s.observe(t),e.addEventListener("scroll",r,{passive:!0}),e.addEventListener("resize",r,{passive:!0}),i(),()=>{null!==o&&cancelAnimationFrame(o),s&&s.disconnect(),e.removeEventListener("scroll",r),e.removeEventListener("resize",r)}})(o.current)}),[a]),(0,P.jsx)("div",{className:"b-blocks-timeline-items",ref:o})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-timeline[data-attributes]").forEach((e=>{let o={};try{const t=e.dataset.attributes;t&&"undefined"!==t&&""!==t&&(o=JSON.parse(t))}catch(t){return void console.warn("Timeline: Invalid attributes JSON",t)}const n=e.querySelector(".b-blocks-timeline-innerBlocks-contents > .b-blocks-timeline-items");n&&((0,t.createRoot)(e).render((0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(H,{attributes:o,id:e.id}),(0,P.jsx)(W,{attributes:o,templateContent:n})]})),e?.removeAttribute("data-attributes"))}))}))})();
1 +(()=>{"use strict";const t=window.ReactDOM,e=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),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,n=o.toLowerCase(),i=e.value;if(this.options.removeEvents&&n.startsWith("on"))return void t.removeAttribute(o);if(this.options.removeExternalResources&&("href"===n||n.endsWith(":href"))&&!this.isAllowedUrl(i))return void t.removeAttribute(o);const r=n.replace("xlink:","");this.allowedAttributeSet.has(n)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(i)?t.removeAttribute(o):"style"===n&&this.options.sanitizeStyle&&t.setAttribute(o,this.sanitizeCss(i)):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 n="@media only screen and (min-width: 1025px)",i="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",a="linear-gradient(135deg, #0040E3, #18D4FD)",s=window.React,l=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},c=(t,o)=>e(o)?`${t}: ${o};`:"",d=(t,e=!0,o=!0,n=!0)=>{const{type:i="solid",color:r="",gradient:s=a,image:d={},position:p="center center",attachment:b="",repeat:u="no-repeat",size:m="",overlayColor:$=""}=t||{};return"gradient"===i&&o?c("background",s):"image"===i&&n?`background: ${l(d?.url)};\n\t\t\t\t${c("background-color",$)}\n\t\t\t\t${c("background-position",p)}\n\t\t\t\t${c("background-size",m)}\n\t\t\t\t${c("background-repeat",u)}\n\t\t\t\t${c("background-attachment",b)}\n\t\t\t\t${c("background-repeat",u)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&c("background",r)},p=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():c("border",e(t))},b=(t,e="box")=>{let o="";return t?.map(((n,i)=>{const{hOffset:r="0px",vOffset:a="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=n||{},p=d?"inset":"",b=`${r} ${a} ${s}`,u=i+1>=t.length?"":", ";o+="text"===e?`${b} ${c}${u}`:`${b} ${l} ${c} ${p}${u}`})),o||""},u=(t,e,o=!0)=>{const{fontFamily:n="Default",fontCategory:a="sans-serif",fontVariant:s=400,fontWeight:l,isUploadFont:d=!0,fontSize:p={desktop:null,tablet:null,mobile:null},fontStyle:b,textTransform:u,textDecoration:m,lineHeight:$,letterSpace:y}=e||{},g=!o||!n||"Default"===n,h=p?.desktop||p,f=p?.tablet||h,M=p?.mobile||f,x=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},k=`\n\t\t${g?"":`font-family: '${n}', ${a};`}\n\t\t${c("font-weight",l)}\n\t\t${c("font-size",x(h))}\n\t\t${c("font-style",b)}\n\t\t${c("text-transform",u)}\n\t\t${c("text-decoration",m)}\n\t\t${c("line-height",$)}\n\t\t${c("letter-spacing",y)}\n\t`,w=s&&400!==s?"400i"===s?":ital@1":s?.includes("00i")?`: ital, wght@1, ${s?.replace("00i","00")} `:`: wght@${s} `:"",v=g?"":`https://fonts.googleapis.com/css2?family=${n?.split(" ").join("+")}${w.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||g?"":`@import url(${v});`,styles:`${t}{\n\t\t\t${k}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",x(f))}\n\t\t\t}\n\t\t}\n\t\t${r} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",x(M))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},m=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},$=t=>{const{position:o="center center",xPosition:n=0,yPosition:i=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?`${n} ${i}`: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`},y=(t={})=>t?{desktop:e(t.url)?`background-image: ${l(t.url)}; ${$(t?.desktop)}`:"",tablet:e(t.url)?$(t?.tablet):"",mobile:e(t.url)?$(t?.mobile):""}:"",g=(t,n,a=!1)=>{const{type:s="color",color:l,gradient:d,img:p,video:b}=t||{},u="color"===s?c("background",l):"gradient"===s?(t=>{const{type:o="linear",radialType:n="ellipse",colors:i=[],centerPositions:r={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 c("background","radial"===o?`radial-gradient(${n} at ${r?.x}% ${r?.y}%,${t})`:e)}return""
2 +})(d):"image"===s?y(p).desktop:"",m="image"===s?y(p).tablet:"",$="image"===s?y(p).mobile:"",g=a?`${n}:hover`:n;return`\n\t\t${"video"===s?((t,e)=>{const{url:n,loop:i}=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&&n){const t=o(n);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),r.appendChild(s)}}return s.loop=i,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}`})(b,n):""}\n\n\t\t${u?`${g}{\n\t\t\t${u}\n\t\t}`:""}\n\n\t\t${m?`${i} {\n\t\t\t${g}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${$?`${r} {\n\t\t\t${g}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},h=(t,o,n=!1)=>{const{isEnabled:i,colors:r,opacity:a=1,blend:s,filter:l="",blur:d=0,brightness:p=100,contrast:b=100,saturation:u=100,hue:m=0,position:$={top:0,right:0,bottom:0,left:0},zIndex:y=-1}=t||{},h=`${100!==p?`brightness(${p}%)`:""} ${100!==b?`contrast(${b}%)`:""} ${100!==u?`saturate(${u}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,f=`${l}: ${l?h:""}; -webkit-${l}: ${l?h:""};`,M=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($.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:${y};\n\t\t}\n\t\t${g(r,M,!1)}\n\t\t${M}{\n\t\t\t${c("opacity",a)}\n\t\t\t${c("mix-blend-mode",s)}\n\t\t\t${f}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},f=(t,o,n=!1)=>{const a=(t,o="desktop")=>{if(!e(t))return"";const{skew:n,scale:i,rotate:r,offset:a,flipX:s,flipY:l}=t,{threeDRotate:d}=r||{},{isProportion:p}=i||{},b=[];return e(n)&&(e(n?.[o]?.x)&&b.push(`skewX(${n[o].x}deg)`),e(n?.[o]?.y)&&b.push(`skewY(${n[o].y}deg)`)),p?e(i?.[o]?.scale)&&b.push(`scale(${i[o].scale})`):(e(i?.[o]?.x)&&b.push(`scaleX(${i[o].x})`),e(i?.[o]?.y)&&b.push(`scaleY(${i[o].y})`)),e(r)&&(e(r?.[o]?.z)&&b.push(`rotateZ(${r[o].z}deg)`),d&&(e(r?.[o]?.x)&&b.push(`rotateX(${r[o].x}deg)`),e(r?.[o]?.y)&&b.push(`rotateY(${r[o].y}deg)`))),e(a)&&(e(a?.[o]?.x)&&b.push(`translateX(${a[o].x})`),e(a?.[o]?.y)&&b.push(`translateY(${a[o].y})`)),e(s)&&b.push(s?"scaleX(-1)":""),e(l)&&b.push(l?"scaleY(-1)":""),0===b.length?"":c("transform",b.join(" "))},s=n?`${o}:hover`:o;return`\n\t\t${s} {\n\t\t\t${a(t,"desktop")}\n\t\t}\n\t\t${i}{\n\t\t\t${s} {\n\t\t\t\t${a(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${r}{\n\t\t\t${s} {\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:n,width:i}=t||{},r=(t,e)=>c(t,e),a=(t,e,o)=>r(t,e?.[t]?.[o])+r(`min-${t}`,e?.min?.[o])+r(`max-${t}`,e?.max?.[o]),s=t=>c("padding",m(t)),l=t=>c("margin",m(t));return{desktop:s(e?.desktop)+l(o?.desktop)+a("height",n,"desktop")+a("width",i,"desktop"),tablet:s(e?.tablet)+l(o?.tablet)+a("height",n,"tablet")+a("width",i,"tablet"),mobile:s(e?.mobile)+l(o?.mobile)+a("height",n,"mobile")+a("width",i,"mobile")}},x=t=>{const{normal:e,hover:o}=t||{},n=t=>{const{border:e,radius:o,shadow:n}=t||{},i=c("border-radius",m(o)),r=c("box-shadow",b(n,"box"));return p(e)+i+r};return{normal:n(e),hover:n(o)}},k=t=>{const{zIndex:o,overflow:n}=t||{},i=n?`overflow: ${n};`:"",r=t=>`${c("z-index",o?.[t])} ${c("position",e(o?.[t])?"relative":"")}`;return{desktop:r("desktop")+i,tablet:r("tablet"),mobile:r("mobile")}},w=(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)}},v=(t,o,a=!1,s=!0)=>{const{dimension:d,transform:p,background:b,borderShadow:u,mask:m,animation:$,visibility:y,responsive:v,position:j={},floating:z={},motion:L={},css:N=""}=o||{},D=a?`#${t}>div>div${s?":first-child":""}`:`#${t}>div`;((t,e,o)=>{const n=o?`#${e} > div`:`#${e}`,i=document.querySelector(n);if(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)){const t=new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]});t.observe(i)}})($,t,a);const S=M(d).desktop+k(y).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;`})(b,u,p)+(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: ${"custom"===o.type?l(o.url):`url(${(a=o.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02LjMyODVBMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDUwLjg1LDYuNTQ3NEw0NC41MzIsMTIuODY1MSwzOC4xNiw2LjU0NzRhMjIuMzUyNCwyMi4zNTI0LDAsMSwwLTMxLjYxMiwzMS42MWw2LjMxODEsNi4zMTc3TDYuNTQ3OCw1MC44NDdhMjIuMzUyNCwyMi4zNTI0LDAsMCwwLDMxLjYxMiwzMS42MWw2LjMxODEtNi4zMTc3TDUwLjg1LDgyLjM5MjJhMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDMxLjYxMi0zMS41OTkzWiIvPjwvc3ZnPg==",type:"flower"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1MTYsNDUuMTUxNiwwLDAsMC01Ljc3NjYtMy4zMjQxYy0uMjQ2OC0uMTE1Ny0uNjAxNi0uMzAwOC0uOTg3Mi0uNDc4MnExLjc4MTYtMS44OTcyLDMuNTg2My0zLjc3MTNjLjk0ODYtLjk4LTYuMzYyOC01LjkyMzItNy4wNDkyLTYuMzcwNUE0NC4xNTc5LDQ0LjE1NzksMCwwLDAsNjAuNzUsMTIuMjYwNmwtLjI5My0uMTQ2NSwxLjM5NTktMS41NDI1Yy45NDA5LTEuMDQ4OS02LjMzMTktNS45LTcuMDQ5Mi02LjM3QTQ0LjIxMiw0NC4yMTIsMCwwLDAsNDkuMDQyMi44NjE2Yy0uNTQtLjI0NjctMi4zMTM3LTEuMjY0OC0yLjg0NTgtLjY4NjRRMzIuNzM4MSwxNS4xNjgyLDE4LjExNTQsMjkuMDY2Yy03Ljg0MzYsNy40NS0xNi41NjYzLDE1LjU3OTEtMTguMTA4OCwyNi44Ny0uMTE1Ny44MjUzLDEuMzI2NSwxLjk3NDQsMS43NDMsMi4zMTM4YTQwLjc5OSw0MC43OTksMCwwLDAsNS4zMTM5LDQuMDU2Nyw0NC4yMTc0LDQ0LjIxNzQsMCwwLDAsNS43NjExLDMuMzRjLjY0LjI5MzEsMi4xNzUsMS4yMDMxLDIuODQ1OS42ODY0bDIuMDc0Ny0xLjU1NzljMS40NSwxLjg1ODcsNS45Njk0LDQuNzIsNi42NzEyLDUuMTc1bDEuNDg4NS45NTY0QzI0LjQwMSw3Mi43NjQ3LDIyLjkyLDc0LjYzMTEsMjEuNDcsNzYuNTI4M2MtLjkxLDEuMTg3OCw2LjI2MjUsNS44NjE1LDcuMDQ5Miw2LjM3YTQ0LjE2MzMsNDQuMTYzMywwLDAsMCw1Ljc2MTEsMy4zMzE4Yy42MDE2LjI3NzYsMi4yMjg5LDEuMjM0LDIuODQ1OS42OTQxbDkuMjU1LTguMDk4Yy44MjUyLDIuNTY4MiwxNC41Njg3LDExLjYzLDE1LjY3MTYsOS45NzIxTDkxLjA2LDQ1LjM2MjRDOTEuNjkyLDQ0LjQxMzgsODYuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",type:"sketch"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{
3 +svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===a))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===i.type?`${c("-webkit-mask-position-x",i.x)}\n\t\t\t${c("-webkit-mask-position-y",i.y)}`:`${c("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${r};`:""}`:"";var a})(m),T=M(d).tablet+k(y).tablet+w(v,a).tablet,I=M(d).mobile+k(y).mobile+w(v,a).mobile,A=x(u).normal,E=x(u).hover,O=w(v,a).desktop;return`\n\t\t${S||A?`${D} {\n\t\t\t${S}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${D}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${n} {\n\t\t\t${D}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${T?`${i} {\n\t\t\t${D}{\n\t\t\t\t${T}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${r} {\n\t\t\t${D}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g(b?.normal,D)}\n\t\t${g(b?.hover,D,!0)}\n\t\t${h(b?.overlay,D)}\n\t\t${h(b?.hoverOverlay,D,!0)}\n\t\t${e(p?.normal)?f(p?.normal,D):""}\n\t\t${e(p?.hover)?f(p?.hover,D,!0):""}\n\t\t${((t,e)=>{const{desktop:o={},tablet:n={},mobile:a={}}=t,s=(t={})=>`\n\t\t${e}{\n\t\t\t${c("position",t?.type)}\n\t\t\t${c("left",t?.horizontal?.left)}\n\t\t\t${c("right",t?.horizontal?.right)}\n\t\t\t${c("top",t?.vertical?.top)}\n\t\t\t${c("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${o?.type?s(o):""}\n\t\t\n\t\t${i}{\n\t\t\t${n?.type?s(n):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${a?.type?s(a):""}\n\t\t}\n\t`})(j,D)}\n\t\t${((t,o,n="")=>{const{translate:i={},rotate:r={},scale:a={},isEnabled:s=!1}=t||{};if(!s)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:i,value:t=>["x","y"].some((o=>e(i?.[o]?.[t])))?`${i?.x?.[t]||0}px ${i?.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],n=a?.z?.[t];return e(o)||e(n)?e(n)?`1 ${e(o)?o:1} ${n}`:`1 ${o}`:""}}].forEach((({name:t,property:e,values:o,value:i})=>{const r=i("from"),a=i("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}${n?`-${n}`:""}`;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`:""})(z,D,t)}\n\t\t${((t,o,a)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:b={},scale:u={},effectsRelativeTo:m="viewport",effectOn:$=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:y=!1,mouseTrack:g={},tilt:h={},sticky:f={}}=t||{},M=(t,o)=>e(t)&&!isNaN(t)?Number(t):o,x="viewport"===m,k=x?"view()":"scroll(nearest block)",w=[],v=[],j=[],z=[],L=String(a??"").replace(/[^a-zA-Z0-9]/g,""),N=(t,e,o)=>{w.push(`@keyframes advMe${t}${L}{ ${e} }`),v.push(`advMe${t}${L}`),j.push(k),z.push((t=>{const e=M(t?.top,0),o=M(t?.bottom,100),n=Math.min(e,o),i=Math.max(e,o);return x?`cover ${n}% ${i>=90?"contain 100%":`cover ${i}%`}`:`min(${3*n}vh, ${n}%) min(${3*i}vh, ${i}%)`})(o))};if(s){const t=l?.direction,e=c?.direction,o=t?100*M(l?.speed,4):0,n=e?100*M(c?.speed,4):0;if(o||n){const i="up"===t?-o:o,r="to-left"===e?-n:n,a=[o&&l,n&&c].filter(Boolean);N("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${i}px; }`,{top:Math.min(...a.map((t=>M(t?.top,0)))),bottom:Math.max(...a.map((t=>M(t?.bottom,100))))})}const i=d?.direction;if(i){const t=Math.max(0,1-M(d?.level,5)/10),e={"fade-in":`from{ opacity: ${t}; } to{ opacity: 1; }`,"fade-out":`from{ opacity: 1; } to{ opacity: ${t}; }`,"fade-out-in":`0%{ opacity: 1; } 50%{ opacity: ${t}; } 100%{ opacity: 1; }`,"fade-in-out":`0%{ opacity: ${t}; } 50%{ opacity: 1; } 100%{ opacity: ${t}; }`}[i];e&&N("Opacity",e,d)}const r=p?.direction;if(r){const t=3*M(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&&N("Blur",e,p)}const a=b?.direction;if(a){const t=20*M(b?.level,4);N("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===a?-t:t}deg; }`,b)}if(u?.direction){const t=.15*M(u?.level,4),e=Math.max(0,1-t),o=1+t,n={"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; }`}[u.direction];n&&N("Scale",n,u)}}const D=[];if(y){if(g?.direction){const t="direct"===g?.direction?100:-100;D.push(((e,o)=>`translate(${(e*t).toFixed(2)}px, ${(o*t).toFixed(2)}px)`))}if(h?.direction){const t=12*("direct"===h?.direction?1:-1);D.push(((e,o)=>`perspective(1000px) rotateX(${(o*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const S=(t,e,n)=>{if(!t||!t.defaultView)return;const i=t.defaultView,r=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),a=r.items.get(o)||{x:0,y:0};if(a.rate=e,a.build=n,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 n=!1;r.items.forEach(((e,i)=>{const a=e.el&&e.el.isConnected?e.el:t.querySelector(i);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,n=!0),a.style.transform=e.build(e.x,e.y)})),r.frame=n?i.requestAnimationFrame(s):0,r.last=n?e:0};t.addEventListener("pointermove",(t=>{r.x=2*(t.clientX/i.innerWidth-.5),r.y=2*(t.clientY/i.innerHeight-.5),r.frame||(r.frame=i.requestAnimationFrame(s))}))};if(D.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*M(g?.speed,M(h?.speed,4))),e=(t,e)=>D.map((o=>o(t,e))).join(" ");S(document,t,e),S(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const T=t=>f?.[t]||("desktop"===t?f?.undefined:""),I=o.split(">")[0],A=t=>{const e=T(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?T("desktop"):"mobile"===t?T("tablet")||T("desktop"):"")(t)?"position: static;":""},E=Array.isArray($)?$:e($)?[$]:[],O=t=>!E.length||E.includes(t)?"":`${o}{ animation-name: none; }`
4 +;return`\n\t\t${v.length?`\n\t\t${w.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${o}{\n\t\t\t\tanimation-name: ${v.join(", ")};\n\t\t\t\tanimation-duration: ${v.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${v.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${v.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${v.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${j.join(", ")};\n\t\t\t\tanimation-range: ${z.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${n}{ ${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${D.length?`${o}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${I}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${i}{ ${I}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${r}{ ${I}{ ${A("mobile")} } }`:""}\n\t`})(L,D,t)}\n\t\t${N}\n\t`.replace(/\s+/g," ")},j=window.wp.i18n,z=((0,j.__)("General","b-blocks"),(0,j.__)("Style","b-blocks"),(0,j.__)("Advanced","b-blocks"),[{label:(0,j.__)("Vertical","b-blocks"),value:"vertical"},{label:(0,j.__)("Horizontal","b-blocks"),value:"horizontal"}].map((t=>t.value))),L=[{label:(0,j.__)("Alternate","b-blocks"),value:"alternate"},{label:(0,j.__)("Left","b-blocks"),value:"left"},{label:(0,j.__)("Right","b-blocks"),value:"right"}].map((t=>t.value)),N=[{label:(0,j.__)("Between markers","b-blocks"),value:"markers"},{label:(0,j.__)("Full length","b-blocks"),value:"full"}].map((t=>t.value)),D=["start","center","end"],S=([{label:(0,j.__)("Circle","b-blocks"),value:"circle"},{label:(0,j.__)("Rounded","b-blocks"),value:"rounded"},{label:(0,j.__)("Square","b-blocks"),value:"square"},{label:(0,j.__)("Diamond","b-blocks"),value:"diamond"},{label:(0,j.__)("Hexagon","b-blocks"),value:"hexagon"}].map((t=>t.value)),{circle:"50%",rounded:"25%",square:"0",diamond:"0",hexagon:"0"}),T=["hexagon"],I={diamond:45},A=([{label:(0,j.__)("Solid","b-blocks"),value:"solid"},{label:(0,j.__)("Dashed","b-blocks"),value:"dashed"},{label:(0,j.__)("Dotted","b-blocks"),value:"dotted"},{label:(0,j.__)("Double","b-blocks"),value:"double"}].map((t=>t.value)),(t={})=>{const{width:e,style:o,offset:n,color:i}=t;return[e?`outline-width: ${e};`:"",o?`outline-style: ${o};`:"",i?`outline-color: ${i};`:"",n?`outline-offset: ${n};`:""].filter(Boolean).join(" ")}),E=[{label:(0,j.__)("Solid","b-blocks"),value:"solid"},{label:(0,j.__)("Dashed","b-blocks"),value:"dashed"},{label:(0,j.__)("Dotted","b-blocks"),value:"dotted"}].map((t=>t.value)),O=["dashed","dotted"],C=((0,j.__)("Auto (follow layout)","b-blocks"),(0,j.__)("Left","b-blocks"),(0,j.__)("Right","b-blocks"),t=>[["core/heading",{level:3,content:t}],["core/paragraph",{content:(0,j.__)("Describe what happened at this point on the timeline.","b-blocks")}]]),Y=(C((0,j.__)("First milestone","b-blocks")),C((0,j.__)("Second milestone","b-blocks")),C((0,j.__)("Third milestone","b-blocks")),JSON.parse('{"attributes":{"align":{"type":"string","default":""},"layout":{"type":"object","default":{"desktop":{"direction":"vertical","side":"alternate","itemGap":"10px","cardWidth":"100%","cardGap":"0px","markerGap":"10px"},"tablet":{"direction":"","side":"","itemGap":"","cardWidth":"","cardGap":"","markerGap":""},"mobile":{"direction":"","side":"","itemGap":"","cardWidth":"","cardGap":"","markerGap":""}}},"connector":{"type":"object","default":{"line":{"show":true,"style":"solid","bg":{"type":"solid","color":"#d9d9d9"},"progress":false,"activeBg":{"type":"solid","color":"#1e1e1e"},"progressFade":false,"extent":"markers","desktop":{"width":"2px","dash":"8px","gap":"6px"},"tablet":{"width":"","dash":"","gap":""},"mobile":{"width":"","dash":"","gap":""}},"arrow":{"show":true,"align":"center","color":"","desktop":{"size":"14px","offset":"16px"},"tablet":{"size":"","offset":""},"mobile":{"size":"","offset":""}}}},"marker":{"type":"object","default":{"shape":"circle","transition":300,"pulse":{"show":false,"bg":{"type":"solid","color":""},"speed":2400},"normal":{"bg":{"type":"solid","color":"#efefef"},"color":{"icon":"#1e1e1e"},"border":{"width":"0px"},"ring":{"width":"0px","style":"solid","offset":"0px","color":""},"shadow":[]},"hover":{"bg":{"type":"solid","color":""},"color":{"icon":""},"border":{},"ring":{"width":"","style":"","offset":"","color":""},"shadow":[]},"desktop":{"size":"34px","iconSize":"16px","radius":{}},"tablet":{"size":"","iconSize":"","radius":{}},"mobile":{"size":"","iconSize":"","radius":{}}}},"card":{"type":"object","default":{"normal":{"bg":{"type":"solid","color":"#efefef"},"border":{"width":"0px"},"shadow":[{"hOffset":"0px","vOffset":"0px","blur":"0px","spreed":"0px","color":"#7090b000","isInset":false}]},"hover":{"bg":{"type":"solid","color":""},"border":{}},"desktop":{"padding":{"top":"16px","right":"16px","bottom":"16px","left":"16px"},"radius":{"top":"4px","right":"4px","bottom":"4px","left":"4px"}},"tablet":{"padding":{},"radius":{}},"mobile":{"padding":{},"radius":{}}}},"date":{"type":"object","default":{"show":true,"color":"#1e1e1e","typo":{"fontSize":{"desktop":"16px"}},"desktop":{"gap":"16px"},"tablet":{"gap":""},"mobile":{"gap":""}}},"advanced":{"type":"object","default":{"dimension":{"padding":{"desktop":{"top":"","right":"","bottom":"","left":""},"tablet":{"top":"","right":"","bottom":"","left":""},"mobile":{"top":"","right":"","bottom":"","left":""}}},"transform":{"normal":{"rotate":{"desktop":{"z":"","y":"","x":""},"tablet":{"z":"","y":"","x":""},"mobile":{"z":"","y":"","x":""},"threeDRotate":false},"offset":{"desktop":{"x":"","y":""},"tablet":{"x":"","y":""},"mobile":{"x":"","y":""}},"scale":{"isProportion":true,"desktop":{"x":"","y":"","scale":""},"tablet":{"x":"","y":"","scale":""},"mobile":{"x":"","y":"","scale":""}},"skew":{"desktop":{"x":"","y":""},"tablet":{"x":"","y":""},"mobile":{"x":"","y":""}},"flipX":false,"flipY":false},"hover":{"rotate":{"desktop":{"z":"","y":"","x":""},"tablet":{"z":"","y":"","x":""},"mobile":{"z":"","y":"","x":""},"threeDRotate":false},"offset":{"desktop":{"x":"","y":""},"tablet":{"x":"","y":""},"mobile":{"x":"","y":""}},"scale":{"isProportion":true,"desktop":{"x":"","y":"","scale":""},"tablet":{"x":"","y":"","scale":""},"mobile":{"x":"","y":"","scale":""}},"skew":{"desktop":{"x":"","y":""},"tablet":{"x":"","y":""},"mobile":{"x":"","y":""}},"flipX":false,"flipY":false},"transition":200},"borderShadow":{"normal":{"radius":{"top":"","right":"","bottom":"","left":""},"shadow":[{"hOffset":"","vOffset":"","blur":"","spreed":"","color":"","isInset":false}],"border":{"top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}}}},"background":{"normal":{"type":"color","color":"","gradient":{"type":"radial","radialType":"ellipse","colors":[{"color":"rgba(58, 66, 222, 1)","position":"0"},{"color":"rgba(176, 195, 235, 1)","position":"80"}],"centerPositions":{"x":50,"y":50},"angel":90},"img":{"url":"","desktop":{"position":"center center","xPosition":0,"yPosition":0,"attachment":"","repeat":"no-repeat","size":"","customSize":"0px"},"tablet":{"position":"center center","xPosition":0,"yPosition":0,"attachment":"","repeat":"no-repeat","size":"","customSize":"0px"},"mobile":{"position":"center center","xPosition":0,"yPosition":0,"attachment":"","repeat":"no-repeat","size":"","customSize":"0px"}},"video":{"url":"","loop":false},"transition":0.3}}}}}}')),U=(t,e)=>{if(null==e)return t;if(Array.isArray(e)){const o=t&&"object"==typeof t&&!Array.isArray(t);return 0===e.length&&o?t:e}if("object"!=typeof e)return e;if(!t||"object"!=typeof t||Array.isArray(t))return e;const o={...t};return Object.keys(e).forEach((n=>{o[n]=U(t[n],e[n])})),o},P=Object.fromEntries(Object.entries(Y.attributes).map((([t,e])=>[t,e.default]))),Q=(t={})=>U(P,t),_=(t={})=>{
5 +const{layout:e={},connector:o={},date:n={}}=t,{line:i={},arrow:r={}}=o,a=(t,o,n,i)=>("desktop"===t?[e.desktop?.[o]]:"tablet"===t?[e.tablet?.[o],e.desktop?.[o]]:[e.mobile?.[o],e.tablet?.[o],e.desktop?.[o]]).find((t=>n.includes(t)))||i,s=t=>a(t,"side",L,"alternate"),l=t=>a(t,"direction",z,"vertical"),c=N.includes(i.extent)?i.extent:"markers",d=E.includes(i.style)?i.style:"solid",p=D.includes(r.align)?r.align:"center";return["b-blocks-timeline",`b-blocks-timeline-desktop-${l("desktop")}`,`b-blocks-timeline-tablet-${l("tablet")}`,`b-blocks-timeline-mobile-${l("mobile")}`,`b-blocks-timeline-desktop-${s("desktop")}`,`b-blocks-timeline-tablet-${s("tablet")}`,`b-blocks-timeline-mobile-${s("mobile")}`,!1===i.show?"b-blocks-timeline-no-line":"",`b-blocks-timeline-line-${d}`,i.progress?"b-blocks-timeline-progress":"",i.progress&&i.progressFade?"b-blocks-timeline-progress-fade":"","full"===c?"b-blocks-timeline-line-full":"",!1===r.show?"b-blocks-timeline-no-arrow":"",`b-blocks-timeline-arrow-${p}`,!1===n.show?"b-blocks-timeline-no-date":""].filter(Boolean).join(" ")},R=window.ReactJSXRuntime,H=t=>{const e=S[t];return`${void 0===e?"":`border-radius: ${e};`} ${T.includes(t)?"clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);":""}`},W=({attributes:t,id:e,isBackend:o=!1})=>{const{layout:n,connector:a,marker:s,card:l,date:$,advanced:y}=Q(t),{line:g,arrow:h}=a,f=I[s.shape]||0,M=T.includes(s.shape),x=d(s.pulse?.bg,!0,!0,!1)||d(s.normal.bg,!0,!0,!1),k=`#${e}`,w=`${k} .b-blocks-timeline-items`,j=`${k} .b-blocks-timeline-item`,z=`${k} .b-blocks-timeline-content`,L=`${k} .b-blocks-timeline-card`,N=`${k} .b-blocks-timeline-marker`,D=`${k} .b-blocks-timeline-date`,S=t=>"horizontal"!==(t=>("desktop"===t?n.desktop?.direction:"tablet"===t?n.tablet?.direction||n.desktop?.direction:n.mobile?.direction||n.tablet?.direction||n.desktop?.direction)||"vertical")(t),E=(t,e)=>"desktop"===t?g.desktop[e]:"tablet"===t?g.tablet[e]||g.desktop[e]:g.mobile[e]||g.tablet[e]||g.desktop[e],C=O.includes(g.style),Y=(t,e,o,n)=>`\n\t\t${k} .b-blocks-timeline-item ${e}{ ${o} }\n\t\t${k}.b-blocks-timeline-${t}-right .b-blocks-timeline-item ${e}{ ${n} }\n\t\t${k}.b-blocks-timeline-${t}-alternate .b-blocks-timeline-item:where(:nth-of-type(even)) ${e}{ ${n} }\n\t\t${k} .b-blocks-timeline-item.b-blocks-timeline-side-left ${e}{ ${o} }\n\t\t${k} .b-blocks-timeline-item.b-blocks-timeline-side-right ${e}{ ${n} }\n\t`,U=t=>{const e=S(t),o=s[t].size,i=f&&o?`calc(${o} / 1.4142)`:o,r=E(t,"width"),a=o?`calc(${o} / 2)`:"17px",p="full"===g.extent?"0px":a,b=`var(--bb-tl-line-start, ${p})`,u=`var(--bb-tl-line-end, ${p})`,y=e?`top: ${b}; bottom: ${u}; left: 50%; right: auto; transform: translateX(-50%);`:`left: ${b}; right: ${u}; top: var(--bb-tl-line-cross, 50%); bottom: auto; transform: translateY(-50%);`,M=n[t].cardGap||"0px",x=h[t].size||"14px",v=h[t].offset||"16px",D=$[t].gap||"16px",T="solid"===(l.normal.bg?.type||"solid")?l.normal.bg?.color:"",I=h.color||T||"#efefef",A=!1===h.show?"0px":x,O=(t,o)=>e?`padding-inline: ${t} ${o};`:`padding-block: ${t} ${o};`,U=`\n\t\t\t${Y(t,".b-blocks-timeline-content",O("0",`calc(${M} + ${A})`),O(`calc(${M} + ${A})`,"0"))}\n\t\t\t${Y(t,".b-blocks-timeline-date",O(D,"0"),O("0",D))}\n\t\t`,P=(o,i)=>{const r=(o=>{const i=`calc((100% - ${((t,e)=>"desktop"===t?n.desktop[e]:"tablet"===t?n.tablet[e]||n.desktop[e]:n.mobile[e]||n.tablet[e]||n.desktop[e])(t,"cardWidth")||"100%"}) / 2)`,r=e?`calc(${v} + ${x})`:`calc(${i} + ${v} + ${x})`,a=(t,o)=>e?`margin-block: ${t} ${o};`:`margin-inline: ${t} ${o};`;return"center"===o?{arrow:"",anchor:`${a("0","0")}`}:{arrow:(s=o,(e?"start"===s?`top: ${v}; bottom: auto;`:`top: auto; bottom: ${v};`:"start"===s?`inset-inline-start: ${v}; inset-inline-end: auto;`:`inset-inline-start: auto; inset-inline-end: ${v};`)+" transform: none;"),anchor:"start"===o?a(r,"0"):a("0",r)};var s})(i);return`\n\t\t\t\t${o} .b-blocks-timeline-card::after{ ${r.arrow} }\n\t\t\t\t${o} .b-blocks-timeline-marker,\n\t\t\t\t${o} .b-blocks-timeline-date{ ${r.anchor} }\n\t\t\t`};return`\n\t\t${U}\n\t\t${L}::after{\n\t\t\t${c("width",e?x:`calc(${x} * 2)`)}\n\t\t\t${c("height",e?`calc(${x} * 2)`:x)}\n\t\t\t${c("background",I)}\n\t\t}\n\t\t${P(`${k} .b-blocks-timeline-item`,h.align||"center")}\n\t\t${["start","center","end"].map((t=>P(`${k} .b-blocks-timeline-item.b-blocks-timeline-item-arrow-${t}`,t))).join("")}\n\n\t\t${w}{\n\t\t\t${c(e?"row-gap":"column-gap",n[t].itemGap)}\n\t\t}\n\t\t${w}::before,\n\t\t${w}::after{\n\t\t\t${(t=>{return C?(e=(t=>{const e=S(t),o=E(t,"gap")||"6px";if("dotted"===g.style){const n=E(t,"width")||"2px";return{image:"radial-gradient(circle closest-side, #000 99%, transparent 100%)",size:e?`${n} calc(${n} + ${o})`:`calc(${n} + ${o}) ${n}`,repeat:e?"repeat-y":"repeat-x"}}const n=E(t,"dash")||"8px";return{image:`repeating-linear-gradient(${e?"to bottom":"to right"}, #000 0 ${n}, transparent ${n} calc(${n} + ${o}))`,size:"auto",repeat:"repeat"}})(t),`\n\t\t\t-webkit-mask-image: ${e.image};\n\t\t\tmask-image: ${e.image};\n\t\t\t-webkit-mask-size: ${e.size};\n\t\t\tmask-size: ${e.size};\n\t\t\t-webkit-mask-repeat: ${e.repeat};\n\t\t\tmask-repeat: ${e.repeat};\n\t\t\t-webkit-mask-position: center;\n\t\t\tmask-position: center;\n\t`):"";var e})(t)}\n\t\t}\n\t\t${w}::before{\n\t\t\t${y}\n\t\t\t${d(g.bg)}\n\t\t\t${c("width",e?r:"auto")}\n\t\t\t${c("height",e?"auto":r)}\n\t\t}\n\t\t${w}::after{\n\t\t\t${y}\n\t\t\t${d(g.activeBg)}\n\t\t\t${c("width",e?r:"auto")}\n\t\t\t${c("height",e?"auto":r)}\n\t\t}\n\t\t${j}{\n\t\t\t${c(e?"column-gap":"row-gap",n[t].markerGap)}\n\t\t}\n\t\t${z}{\n\n\t\t}\n\t\t${L}{\n\t\t\t${c("width",n[t].cardWidth)}\n\t\t\t${c("padding",m(l[t].padding))}\n\t\t\t${c("border-radius",m(l[t].radius))}\n\t\t}\n\t\t${N}{\n\t\t\t${c("width",i)}\n\t\t\t${c("height",i)}\n\t\t\t${c("font-size",s[t].iconSize)}\n\t\t\t${c("border-radius",m(s[t].radius))}\n\t\t}\n\n\t\t`};return(0,R.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${u("",$.typo).googleFontLink}\n\t\t\t${u(D,$.typo).styles}\n\n\t\t\t${L}{\n\t\t\t\t${d(l.normal.bg)}\n\t\t\t\t${p(l.normal.border)}\n\t\t\t\t${c("box-shadow",b(l.normal.shadow||[]))}\n\t\t\t}\n\t\t\t${L}:hover{\n\t\t\t\t${d(l.hover.bg)}\n\t\t\t\t${p(l.hover.border)}\n\t\t\t}\n\t\t\t${N}{\n\t\t\t\t${d(s.normal.bg)}\n\t\t\t\t${c("color",s.normal.color.icon)}\n\t\t\t\t${p(s.normal.border)}\n\t\t\t\t${H(s.shape)}\n\t\t\t\t${M?"":A(s.normal.ring)}\n\t\t\t\t${c("box-shadow",b(s.normal.shadow||[]))}\n\t\t\t\t${f?`rotate: ${f}deg;`:""}\n\t\t\t\t${s.transition?`transition: background ${s.transition}ms ease, color ${s.transition}ms ease, border-color ${s.transition}ms ease, outline-color ${s.transition}ms ease, outline-offset ${s.transition}ms ease, box-shadow ${s.transition}ms ease;`:""}\n\t\t\t}\n\t\t\t${f?`${N} svg{ rotate: -${f}deg; }`:""}\n\t\t\t${N}:hover{\n\t\t\t\t${d(s.hover.bg)}\n\t\t\t\t${c("color",s.hover.color.icon)}\n\t\t\t\t${p(s.hover.border)}\n\t\t\t\t${M?"":A(s.hover.ring)}\n\t\t\t\t${c("box-shadow",b(s.hover.shadow||[]))}\n\t\t\t}\n\t\t\t${s.pulse?.show&&!M?`\n\t\t\t\t${N}::after{\n\t\t\t\t\t${x}\n\t\t\t\t\tanimation-name: bb-tl-marker-pulse;\n\t\t\t\t\t${c("animation-duration",s.pulse.speed?`${s.pulse.speed}ms`:"")}\n\t\t\t\t}\n\t\t\t`:""}\n\t\t\t${D}{\n\t\t\t\t${c("color",$.color)}\n\t\t\t}\n\n\t\t\t${U("desktop")}\n\n\t\t\t${i}{\n\t\t\t\t${U("tablet")}\n\t\t\t}\n\n\t\t\t${r}{\n\t\t\t\t${U("mobile")}\n\t\t\t}\n\n\t\t\t${v(e,y,o,!1)}\n\t\t\t`}})},Z=t=>Math.round(1e3*t)/1e3,B=({attributes:t,templateContent:e})=>{const o=(0,s.useRef)(null),n=Q(t),{layout:i,connector:r}=n;(0,s.useLayoutEffect)((()=>{const t=o.current?.closest(".wp-block-b-blocks-timeline");if(!t)return;const e=Array.from(t.classList).filter((t=>!t.startsWith("b-blocks-timeline")));t.className=[...e,_(n)].join(" ")}));const{progress:a}=r.line;return(0,s.useEffect)((()=>{const t=o.current;if(t&&e)return"1"!==e.dataset.moved&&(t.append(...Array.from(e.children)),e.dataset.moved="1"),((t,e={})=>{if(!t)return()=>{};let o=null;const n=()=>{
6 +null===o&&(o=requestAnimationFrame((()=>{o=null,((t,e={})=>{if(!t)return;const o=getComputedStyle(t),n="grid"===o.display?!o.gridAutoFlow.includes("column"):"row"!==o.flexDirection,i=t.getBoundingClientRect(),r=n?i.height:i.width;if(!r)return;const a=Array.from(t.querySelectorAll(":scope > * > .b-blocks-timeline-marker")),s=a.map((t=>{const e=t.getBoundingClientRect();return n?e.top-i.top+e.height/2:e.left-i.left+e.width/2})).sort(((t,e)=>t-e));if(a.length){const e=a[0].getBoundingClientRect(),o=n?e.left-i.left+e.width/2:e.top-i.top+e.height/2;t.style.setProperty("--bb-tl-line-cross",`${Z(o)}px`)}const l="full"!==e.extent&&s.length>0,c=l?s[0]:0,d=l?s[s.length-1]:r;t.style.setProperty("--bb-tl-line-start",`${Z(c)}px`),t.style.setProperty("--bb-tl-line-end",`${Z(r-d)}px`)})(t,e)})))};n();const i="undefined"!=typeof ResizeObserver?new ResizeObserver(n):null;return i?(i.observe(t),t.querySelectorAll(":scope > *").forEach((t=>i.observe(t)))):window.addEventListener("resize",n),()=>{null!==o&&cancelAnimationFrame(o),i?i.disconnect():window.removeEventListener("resize",n)}})(t,{extent:r.line.extent})}),[e,i,r]),(0,s.useEffect)((()=>{if(a&&o.current)return(t=>{const e=t.ownerDocument?.defaultView||window;let o=null,n=!0;const i=()=>{o=null;const n=t.getBoundingClientRect(),i=(e.innerHeight||t.ownerDocument.documentElement.clientHeight)/2-n.top,r=n.height||1,a=Math.min(Math.max(i/r,0),1);t.style.setProperty("--bb-tl-line-progress",a.toFixed(4))},r=()=>{null===o&&n&&(o=requestAnimationFrame(i))},a=void 0!==e.IntersectionObserver?new e.IntersectionObserver((t=>{n=t.some((t=>t.isIntersecting)),r()})):null;return a&&a.observe(t),e.addEventListener("scroll",r,{passive:!0}),e.addEventListener("resize",r,{passive:!0}),i(),()=>{null!==o&&cancelAnimationFrame(o),a&&a.disconnect(),e.removeEventListener("scroll",r),e.removeEventListener("resize",r)}})(o.current)}),[a]),(0,R.jsx)("div",{className:"b-blocks-timeline-items",ref:o})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-timeline[data-attributes]").forEach((e=>{let o={};try{const t=e.dataset.attributes;t&&"undefined"!==t&&""!==t&&(o=JSON.parse(t))}catch(t){return void console.warn("Timeline: Invalid attributes JSON",t)}const n=e.querySelector(".b-blocks-timeline-innerBlocks-contents > .b-blocks-timeline-items");n&&((0,t.createRoot)(e).render((0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(W,{attributes:o,id:e.id}),(0,R.jsx)(B,{attributes:o,templateContent:n})]})),e?.removeAttribute("data-attributes"))}))}))})();