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/interactive-checklist/view.js +4 -1 2.1.0 → 2.1.8 View file →
@@ -1 +1,4 @@
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),n=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}},i="@media only screen and (max-width: 1024px)",o="@media only screen and (max-width: 640px)",s="linear-gradient(135deg, #0040E3, #18D4FD)",r=window.React,a=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},c=(t,n)=>e(n)?`${t}: ${n};`:"",l=(t,e=!0,n=!0,i=!0)=>{const{type:o="solid",color:r="",gradient:l=s,image:d={},position:M="center center",attachment:$="",repeat:u="no-repeat",size:g="",overlayColor:p=""}=t||{};return"gradient"===o&&n?c("background",l):"image"===o&&i?`background: ${a(d?.url)};\n\t\t\t\t${c("background-color",p)}\n\t\t\t\t${c("background-position",M)}\n\t\t\t\t${c("background-size",g)}\n\t\t\t\t${c("background-repeat",u)}\n\t\t\t\t${c("background-attachment",$)}\n\t\t\t\t${c("background-repeat",u)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&c("background",r)},d=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:i="0px"}=t;return`${i} ${n} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>t[n]?`border-${n}: ${e(t[n])};`:"")).join(" ").trim():c("border",e(t))},M=(t,e,n=!0)=>{const{fontFamily:s="Default",fontCategory:r="sans-serif",fontVariant:a=400,fontWeight:l,isUploadFont:d=!0,fontSize:M={desktop:null,tablet:null,mobile:null},fontStyle:$,textTransform:u,textDecoration:g,lineHeight:p,letterSpace:y}=e||{},b=!n||!s||"Default"===s,h=M?.desktop||M,j=M?.tablet||h,N=M?.mobile||j,m=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},w=`\n\t\t${b?"":`font-family: '${s}', ${r};`}\n\t\t${c("font-weight",l)}\n\t\t${c("font-size",m(h))}\n\t\t${c("font-style",$)}\n\t\t${c("text-transform",u)}\n\t\t${c("text-decoration",g)}\n\t\t${c("line-height",p)}\n\t\t${c("letter-spacing",y)}\n\t`,L=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",k=b?"":`https://fonts.googleapis.com/css2?family=${s?.split(" ").join("+")}${L.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||b?"":`@import url(${k});`,styles:`${t}{\n\t\t\t${w}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",m(j))}\n\t\t\t}\n\t\t}\n\t\t${o} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",m(N))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},$=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""},u=t=>{const{position:n="center center",xPosition:i=0,yPosition:o=0,attachment:s="",repeat:r="no-repeat",size:a="cover",customSize:c="0px"}=t||{},l=t=>"initial"!==t||e(t);return`\n\t\t${l(n)?`background-position: ${"custom"===n?`${i} ${o}`:n};`:""}\n\t\t${s&&l(s)?`background-attachment: ${s};`:""}\n\t\t${l(r)?`background-repeat: ${r};`:""}\n\t\t${l(a)?`background-size: ${"custom"===a?`${c} auto`:a};`:""}\n\t`},g=(t={})=>t?{desktop:e(t.url)?`background-image: ${a(t.url)}; ${u(t?.desktop)}`:"",tablet:e(t.url)?u(t?.tablet):"",mobile:e(t.url)?u(t?.mobile):""}:"",p=(t,s,r=!1)=>{const{type:a="color",color:l,gradient:d,img:M,video:$}=t||{},u="color"===a?c("background",l):"gradient"===a?(t=>{const{type:n="linear",radialType:i="ellipse",colors:o=[],centerPositions:s={x:0,y:0},angel:r=0}=t||{};if(e(t)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${r}deg, ${t})`;return c("background","radial"===n?`radial-gradient(${i} at ${s?.x}% ${s?.y}%,${t})`:e)}return""})(d):"image"===a?g(M).desktop:"",p="image"===a?g(M).tablet:"",y="image"===a?g(M).mobile:"",b=r?`${s}:hover`:s;return`\n\t\t${"video"===a?((t,e)=>{const{url:i,loop:o}=t||{},s=document.querySelector(e),r=s?.querySelector(".bPlVideo"),a=document.createElement("video");if(a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),!r&&s&&i){const t=n(i);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),s.appendChild(a)}}return a.loop=o,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}`})($,s):""}\n\n\t\t${u?`${b}{\n\t\t\t${u}\n\t\t}`:""}\n\n\t\t${p?`${i} {\n\t\t\t${b}{\n\t\t\t\t${p}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y?`${o} {\n\t\t\t${b}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},y=(t,n,i=!1)=>{const{isEnabled:o,colors:s,opacity:r=1,blend:a,filter:l="",blur:d=0,brightness:M=100,contrast:$=100,saturation:u=100,hue:g=0,position:y={top:0,right:0,bottom:0,left:0},zIndex:b=-1}=t||{},h=`${100!==M?`brightness(${M}%)`:""} ${100!==$?`contrast(${$}%)`:""} ${100!==u?`saturate(${u}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==g?`hue-rotate(${g}deg)`:""}`,j=`${l}: ${l?h:""}; -webkit-${l}: ${l?h:""};`,N=i?`${n}:hover::after`:`${n}::after`;return o?`\n\t\t${n}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${n}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e(y.top)?y.top:0};\n\t\t\tright:${e(y.right)?y.right:0};\n\t\t\tbottom:${e(y.bottom)?y.bottom:0};\n\t\t\tleft:${e(y.left)?y.left:0};\n\t\t\tz-index:${b};\n\t\t}\n\t\t${p(s,N,!1)}\n\t\t${N}{\n\t\t\t${c("opacity",r)}\n\t\t\t${c("mix-blend-mode",a)}\n\t\t\t${j}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},b=(t,n,s=!1)=>{const r=(t,n="desktop")=>{if(!e(t))return"";const{skew:i,scale:o,rotate:s,offset:r,flipX:a,flipY:l}=t,{threeDRotate:d}=s||{},{isProportion:M}=o||{},$=[];return e(i)&&(e(i?.[n]?.x)&&$.push(`skewX(${i[n].x}deg)`),e(i?.[n]?.y)&&$.push(`skewY(${i[n].y}deg)`)),M?e(o?.[n]?.scale)&&$.push(`scale(${o[n].scale})`):(e(o?.[n]?.x)&&$.push(`scaleX(${o[n].x})`),e(o?.[n]?.y)&&$.push(`scaleY(${o[n].y})`)),e(s)&&(e(s?.[n]?.z)&&$.push(`rotateZ(${s[n].z}deg)`),d&&(e(s?.[n]?.x)&&$.push(`rotateX(${s[n].x}deg)`),e(s?.[n]?.y)&&$.push(`rotateY(${s[n].y}deg)`))),e(r)&&(e(r?.[n]?.x)&&$.push(`translateX(${r[n].x})`),e(r?.[n]?.y)&&$.push(`translateY(${r[n].y})`)),e(a)&&$.push(a?"scaleX(-1)":""),e(l)&&$.push(l?"scaleY(-1)":""),0===$.length?"":c("transform",$.join(" "))},a=s?`${n}:hover`:n;return`\n\t\t${a} {\n\t\t\t${r(t,"desktop")}\n\t\t}\n\t\t${i}{\n\t\t\t${a} {\n\t\t\t\t${r(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${o}{\n\t\t\t${a} {\n\t\t\t\t${r(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},h=t=>{const{padding:e,margin:n,height:i,width:o}=t||{},s=(t,e)=>c(t,e),r=(t,e,n)=>s(t,e?.[t]?.[n])+s(`min-${t}`,e?.min?.[n])+s(`max-${t}`,e?.max?.[n]),a=t=>c("padding",$(t)),l=t=>c("margin",$(t));return{desktop:a(e?.desktop)+l(n?.desktop)+r("height",i,"desktop")+r("width",o,"desktop"),tablet:a(e?.tablet)+l(n?.tablet)+r("height",i,"tablet")+r("width",o,"tablet"),mobile:a(e?.mobile)+l(n?.mobile)+r("height",i,"mobile")+r("width",o,"mobile")}},j=t=>{const{normal:e,hover:n}=t||{},i=t=>{const{border:e,radius:n,shadow:i}=t||{},o=c("border-radius",$(n)),s=c("box-shadow",((t,e="box")=>{let n="";return t?.map(((i,o)=>{const{hOffset:s="0px",vOffset:r="0px",blur:a="0px",spreed:c="0px",color:l="#e7f0fe",isInset:d=!1}=i||{},M=d?"inset":"",$=`${s} ${r} ${a}`,u=o+1>=t.length?"":", ";n+="text"===e?`${$} ${l}${u}`:`${$} ${c} ${l} ${M}${u}`})),n||""})(i,"box"));return d(e)+o+s};return{normal:i(e),hover:i(n)}},N=t=>{const{zIndex:n,overflow:i}=t||{},o=i?`overflow: ${i};`:"",s=t=>`${c("z-index",n?.[t])} ${c("position",e(n?.[t])?"relative":"")}`;return{desktop:s("desktop")+o,tablet:s("tablet"),mobile:s("mobile")}},m=(t,e)=>{const{desktop:n=!1,tablet:i=!1,mobile:o=!1}=t||{},s=e?"opacity: 0.5;":"display: none;",r=t=>t?s:"";return{desktop:r(n),tablet:r(i),mobile:r(o)}},w=(t,n,s=!1,r=!0)=>{const{dimension:l,transform:d,background:M,borderShadow:$,mask:u,animation:g,visibility:w,responsive:L,css:k=""}=n||{},x=s?`#${t}>div>div${r?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const i=n?`#${e} > div`:`#${e}`,o=document.querySelector(i);o&&t&&t.type&&(o.setAttribute("data-aos",t.type),o.setAttribute("data-aos-duration",1e3*t.duration||.4),o.setAttribute("data-aos-delay",1e3*t.delay||0),o.classList.contains("aos-init")||(o.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?o.classList.add("aos-animate"):o.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(o)})(g,t,s);const D=h(l).desktop+N(w).desktop+((t,e,n)=>{const{transition:i=.4}=t||{},{transition:o=.4}=e||{},{transition:s=200}=n||{};return`transition: background ${i}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${s}ms ease-in-out;`})(M,$,d)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:i={type:"contain",scale:"100%"},position:o={type:"center center",x:50,y:50},repeat:s="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?a(n.url):`url(${(r=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM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gMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===r))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===i.type?i.scale:i.type};\n\t\t${"custom"===o.type?`${c("-webkit-mask-position-x",o.x)}\n\t\t\t${c("-webkit-mask-position-y",o.y)}`:`${c("-webkit-mask-position",o.type)}`}\n\t\t${"cover"!==i.type?`-webkit-mask-repeat: ${s};`:""}`:"";var r})(u),z=h(l).tablet+N(w).tablet+m(L,s).tablet,I=h(l).mobile+N(w).mobile+m(L,s).mobile,T=j($).normal,v=j($).hover,S=m(L,s).desktop;return`\n\t\t${D||T?`${x} {\n\t\t\t${D}\n\t\t\t${T}\n\t\t}`:""}\n\t\t${v?`${x}:hover {\n\t\t\t${v}\n\t\t}`:""}\n\n\t\t${S?`@media only screen and (min-width: 1025px) {\n\t\t\t${x}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${z?`${i} {\n\t\t\t${x}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${o} {\n\t\t\t${x}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${p(M?.normal,x)}\n\t\t${p(M?.hover,x,!0)}\n\t\t${y(M?.overlay,x)}\n\t\t${y(M?.hoverOverlay,x,!0)}\n\t\t${e(d?.normal)?b(d?.normal,x):""}\n\t\t${e(d?.hover)?b(d?.hover,x,!0):""}\n\n\t\t${k}\n\t`.replace(/\s+/g," ")},L=window.ReactJSXRuntime,k=({attributes:t,id:e,isBackend:n=!1})=>{const{heading:i={},checkbox:o={},item:s={},progress:r={},advanced:a}=t,u=o.accent||"#4f46e5",g=o.size||"20px",p=r.typography?.fontSize?.desktop||"12px",y=`#${e} .bBlocks-interactive-checklist-wrapper`,b=`${y} .bBlocks-interactive-checklist-heading`,h=`${y} .bBlocks-interactive-checklist-progress-text`,j=`${y} .bBlocks-interactive-checklist-progress-track`,N=`${y} .bBlocks-interactive-checklist-progress-fill`,m=`${y} .bBlocks-interactive-checklist-list`,k=`${y} .bBlocks-interactive-checklist-item`,x=`${y} .bBlocks-interactive-checklist-label`,D=`${y} .bBlocks-interactive-checklist-checkbox`,z=`${y} .bBlocks-interactive-checklist-box`,I=`${y} .bBlocks-interactive-checklist-reset`;return(0,L.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${M("",i.typography).googleFontLink}\n\t\t\t${M("",s.typography).googleFontLink}\n\t\t\t${y}{\n\t\t\t\t${c("color",s.color)}\n\t\t\t}\n\t\t\t${M(b,i.typography).styles}\n\t\t\t${b}{\n\t\t\t\t${c("color",i.color)}\n\t\t\t\t${l(i.bg)}\n\t\t\t\t${d(i.border)}\n\t\t\t\t${c("border-radius",$(i.borderRadius))}\n\t\t\t\t${c("padding",$(i.padding))}\n\t\t\t}\n\t\t\t${M("",r.typography).googleFontLink}\n\t\t\t${M(h,r.typography).styles}\n\t\t\t${j}{\n\t\t\t\t${c("height",r.height)}\n\t\t\t\t${l(r.trackBg)}\n\t\t\t}\n\t\t\t${N}{\n\t\t\t\t${r.fillBg?.color||r.fillBg?.gradient||r.fillBg?.image?.url?l(r.fillBg):`background: ${u};`}\n\t\t\t}\n\t\t\t${m}{ gap: ${s.gap||"12px"}; }\n\t\t\t${M(x,s.typography).styles}\n\t\t\t${x}{\n\t\t\t\t${c("color",s.color)}\n\t\t\t\tpadding-left: calc(${g} + 12px);\n\t\t\t}\n\t\t\t${D}{ width: ${g}; height: ${g}; }\n\t\t\t${z}{\n\t\t\t\twidth: ${g};\n\t\t\t\theight: ${g};\n\t\t\t\tborder-color: ${u};\n\t\t\t}\n\t\t\t${z}::after{\n\t\t\t\t${c("background-color",o.checkColor)}\n\t\t\t}\n\t\t\t${D}:checked + .bBlocks-interactive-checklist-box,\n\t\t\t${k}.is-checked .bBlocks-interactive-checklist-box{\n\t\t\t\tbackground: ${u};\n\t\t\t\tborder-color: ${u};\n\t\t\t}\n\t\t\t${D}:focus-visible + .bBlocks-interactive-checklist-box{\n\t\t\t\toutline: 2px solid ${u};\n\t\t\t\toutline-offset: 2px;\n\t\t\t}\n\t\t\t${I}{\n\t\t\t\tcolor: ${u};\n\t\t\t\tfont-size: ${p};\n\t\t\t}\n\t\t\t${I}:focus-visible{ outline: 2px solid ${u}; }\n\t\t\t${w(e,a,n,!1)}\n\t\t\t`}})},x="bBlocks-interactive-checklist",D="bb_checklist_",z=["h2","h3","h4"],I=({attributes:t,id:e})=>{const{heading:n={},items:i=[],checkbox:o={},item:s={},progress:a={},reset:c={},persistKey:l=""}=t,d=(l||e||"").toString(),M="round"===o.style?"round":"square",$=!0===s.strike,u=!1!==a.show,g=!1!==c.show,p=z.includes(n.tag)?n.tag:"h3",y=(n.text||"").toString().trim()?n.text:"",b=(Array.isArray(i)?i:[]).filter((t=>(t&&t.label||"").toString().trim())),[h,j]=(0,r.useState)({});(0,r.useEffect)((()=>{j((t=>{try{const e=window.localStorage&&window.localStorage.getItem(D+t),n=e&&JSON.parse(e);return n&&"object"==typeof n?n:{}}catch(t){return{}}})(d))}),[d]);const N=b.length,m=b.filter((t=>h[t.id])).length,w=N>0?Math.round(m/N*100):0,k=[`${x}-wrapper`,`${x}-checkbox-${M}`,$?`${x}-has-strike`:"",N>0&&m===N?"is-complete":""].filter(Boolean).join(" ");return(0,L.jsxs)("div",{className:k,children:[y&&(0,L.jsx)(p,{className:`${x}-heading`,dangerouslySetInnerHTML:{__html:y}}),u&&N>0&&(0,L.jsxs)("div",{className:`${x}-progress`,children:[(0,L.jsx)("p",{className:`${x}-progress-text`,"aria-live":"polite","aria-atomic":"true",children:`${m} of ${N} complete`}),(0,L.jsx)("div",{className:`${x}-progress-track`,"aria-hidden":"true",children:(0,L.jsx)("span",{className:`${x}-progress-fill`,style:{width:`${w}%`}})})]}),0===N?(0,L.jsx)("p",{className:`${x}-empty`,children:"No checklist items to display."}):(0,L.jsx)("ul",{className:`${x}-list`,children:b.map((t=>{const e=!!h[t.id];return(0,L.jsx)("li",{className:`${x}-item ${e?"is-checked":""}`,children:(0,L.jsxs)("label",{className:`${x}-label`,children:[(0,L.jsx)("input",{type:"checkbox",className:`${x}-checkbox`,checked:e,onChange:()=>{return e=t.id,void j((t=>{const n={...t,[e]:!t[e]};try{window.localStorage&&window.localStorage.setItem(D+d,JSON.stringify(n))}catch(t){}return n}));var e}}),(0,L.jsx)("span",{className:`${x}-box`,"aria-hidden":"true"}),(0,L.jsx)("span",{className:`${x}-text`,children:t.label})]})},t.id)}))}),g&&N>0&&(0,L.jsx)("button",{type:"button",className:`${x}-reset`,onClick:()=>{if(window.confirm("Reset your checklist progress?")){j({});try{window.localStorage&&window.localStorage.removeItem(D+d)}catch(t){}}},children:"Reset progress"})]})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-interactive-checklist").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(k,{attributes:n,id:e.id}),(0,L.jsx)(I,{attributes:n,id:e.id})]})),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),n=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}};new class{constructor(t={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t},this.allowedTagSet=new Set(this.options.allowedTags.map((t=>t.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((t=>t.toLowerCase())))}sanitize(t){if("string"!=typeof t||""===t.trim())return"";const e=(new DOMParser).parseFromString(t,"image/svg+xml"),n=e.documentElement;return!n||"svg"!==n.localName.toLowerCase()||e.getElementsByTagName("parsererror").length?"":(this.removeScripts(e),this.sanitizeElements(e),(new XMLSerializer).serializeToString(e.documentElement))}async sanitizeFile(t){const e=await fetch(t),n=await e.text();return this.sanitize(`${n}`)}removeScripts(t){this.options.removeScripts&&Array.from(t.querySelectorAll("*")).forEach((t=>{t.localName.toLowerCase().includes("script")&&t.remove()}))}sanitizeElements(t){Array.from(t.querySelectorAll("*")).forEach((t=>{const e=t.localName.toLowerCase();this.allowedTagSet.has(e)?("style"===e&&this.options.sanitizeStyle&&(t.textContent=this.sanitizeCss(t.textContent)),this.sanitizeAttributes(t)):t.remove()}))}sanitizeAttributes(t){Array.from(t.attributes).forEach((e=>{const n=e.name,i=n.toLowerCase(),o=e.value;if(this.options.removeEvents&&i.startsWith("on"))return void t.removeAttribute(n);if(this.options.removeExternalResources&&("href"===i||i.endsWith(":href"))&&!this.isAllowedUrl(o))return void t.removeAttribute(n);const r=i.replace("xlink:","");this.allowedAttributeSet.has(i)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(o)?t.removeAttribute(n):"style"===i&&this.options.sanitizeStyle&&t.setAttribute(n,this.sanitizeCss(o)):t.removeAttribute(n)}))}hasExternalUrl(t){return!("string"!=typeof t||!/url\s*\(/i.test(t))&&Array.from(t.matchAll(/url\s*\(\s*['"]?([^'")]*)/gi)).some((([,t])=>!t.trim().startsWith("#")))}isAllowedUrl(t){const e=String(t||"").trim();if(e.startsWith("#"))return!0;if(/^data:/i.test(e))return this.options.allowedProtocols.includes("data")&&/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(e);try{return this.options.allowedProtocols.includes(new URL(e).protocol.replace(":",""))}catch{return!1}}sanitizeCss(t){return String(t||"").replace(/expression\s*\(/gi,"").replace(/javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/@import[^;]*;?/gi,"").replace(/url\s*\(\s*(['"]?)(?!#)[^)]*\)/gi,"none")}};const i="@media only screen and (min-width: 1025px)",o="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",s="linear-gradient(135deg, #0040E3, #18D4FD)",a=window.React,l=t=>{const e=n(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},c=(t,n)=>e(n)?`${t}: ${n};`:"",d=(t,e=!0,n=!0,i=!0)=>{const{type:o="solid",color:r="",gradient:a=s,image:d={},position:p="center center",attachment:u="",repeat:$="no-repeat",size:m="",overlayColor:y=""}=t||{};return"gradient"===o&&n?c("background",a):"image"===o&&i?`background: ${l(d?.url)};\n\t\t\t\t${c("background-color",y)}\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",$)}\n\t\t\t\t${c("background-attachment",u)}\n\t\t\t\t${c("background-repeat",$)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&c("background",r)},p=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:i="0px"}=t;return`${i} ${n} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>t[n]?`border-${n}: ${e(t[n])};`:"")).join(" ").trim():c("border",e(t))},u=(t,e,n=!0)=>{const{fontFamily:i="Default",fontCategory:s="sans-serif",fontVariant:a=400,fontWeight:l,isUploadFont:d=!0,fontSize:p={desktop:null,tablet:null,mobile:null},fontStyle:u,textTransform:$,textDecoration:m,lineHeight:y,letterSpace:M}=e||{},g=!n||!i||"Default"===i,h=p?.desktop||p,b=p?.tablet||h,x=p?.mobile||b,w=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},f=`\n\t\t${g?"":`font-family: '${i}', ${s};`}\n\t\t${c("font-weight",l)}\n\t\t${c("font-size",w(h))}\n\t\t${c("font-style",u)}\n\t\t${c("text-transform",$)}\n\t\t${c("text-decoration",m)}\n\t\t${c("line-height",y)}\n\t\t${c("letter-spacing",M)}\n\t`,j=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",N=g?"":`https://fonts.googleapis.com/css2?family=${i?.split(" ").join("+")}${j.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||g?"":`@import url(${N});`,styles:`${t}{\n\t\t\t${f}\n\t\t}\n\t\t${o} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",w(b))}\n\t\t\t}\n\t\t}\n\t\t${r} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",w(x))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},$=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},m=t=>{const{position:n="center center",xPosition:i=0,yPosition:o=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(n)?`background-position: ${"custom"===n?`${i} ${o}`:n};`:""}\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`},y=(t={})=>t?{desktop:e(t.url)?`background-image: ${l(t.url)}; ${m(t?.desktop)}`:"",tablet:e(t.url)?m(t?.tablet):"",mobile:e(t.url)?m(t?.mobile):""}:"",M=(t,i,s=!1)=>{const{type:a="color",color:l,gradient:d,img:p,video:u}=t||{},$="color"===a?c("background",l):"gradient"===a?(t=>{const{type:n="linear",radialType:i="ellipse",colors:o=[],centerPositions:r={x:0,y:0},angel:s=0}=t||{};if(e(t)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${s}deg, ${t})`;return c("background","radial"===n?`radial-gradient(${i} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(d):"image"===a?y(p).desktop:"",m="image"===a?y(p).tablet:"",M="image"===a?y(p).mobile:"",g=s?`${i}:hover`:i;return`\n\t\t${"video"===a?((t,e)=>{const{url:i,loop:o}=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&&i){
2 +const t=n(i);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),r.appendChild(a)}}return a.loop=o,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,i):""}\n\n\t\t${$?`${g}{\n\t\t\t${$}\n\t\t}`:""}\n\n\t\t${m?`${o} {\n\t\t\t${g}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M?`${r} {\n\t\t\t${g}{\n\t\t\t\t${M}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},g=(t,n,i=!1)=>{const{isEnabled:o,colors:r,opacity:s=1,blend:a,filter:l="",blur:d=0,brightness:p=100,contrast:u=100,saturation:$=100,hue:m=0,position:y={top:0,right:0,bottom:0,left:0},zIndex:g=-1}=t||{},h=`${100!==p?`brightness(${p}%)`:""} ${100!==u?`contrast(${u}%)`:""} ${100!==$?`saturate(${$}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,b=`${l}: ${l?h:""}; -webkit-${l}: ${l?h:""};`,x=i?`${n}:hover::after`:`${n}::after`;return o?`\n\t\t${n}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${n}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e(y.top)?y.top:0};\n\t\t\tright:${e(y.right)?y.right:0};\n\t\t\tbottom:${e(y.bottom)?y.bottom:0};\n\t\t\tleft:${e(y.left)?y.left:0};\n\t\t\tz-index:${g};\n\t\t}\n\t\t${M(r,x,!1)}\n\t\t${x}{\n\t\t\t${c("opacity",s)}\n\t\t\t${c("mix-blend-mode",a)}\n\t\t\t${b}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},h=(t,n,i=!1)=>{const s=(t,n="desktop")=>{if(!e(t))return"";const{skew:i,scale:o,rotate:r,offset:s,flipX:a,flipY:l}=t,{threeDRotate:d}=r||{},{isProportion:p}=o||{},u=[];return e(i)&&(e(i?.[n]?.x)&&u.push(`skewX(${i[n].x}deg)`),e(i?.[n]?.y)&&u.push(`skewY(${i[n].y}deg)`)),p?e(o?.[n]?.scale)&&u.push(`scale(${o[n].scale})`):(e(o?.[n]?.x)&&u.push(`scaleX(${o[n].x})`),e(o?.[n]?.y)&&u.push(`scaleY(${o[n].y})`)),e(r)&&(e(r?.[n]?.z)&&u.push(`rotateZ(${r[n].z}deg)`),d&&(e(r?.[n]?.x)&&u.push(`rotateX(${r[n].x}deg)`),e(r?.[n]?.y)&&u.push(`rotateY(${r[n].y}deg)`))),e(s)&&(e(s?.[n]?.x)&&u.push(`translateX(${s[n].x})`),e(s?.[n]?.y)&&u.push(`translateY(${s[n].y})`)),e(a)&&u.push(a?"scaleX(-1)":""),e(l)&&u.push(l?"scaleY(-1)":""),0===u.length?"":c("transform",u.join(" "))},a=i?`${n}:hover`:n;return`\n\t\t${a} {\n\t\t\t${s(t,"desktop")}\n\t\t}\n\t\t${o}{\n\t\t\t${a} {\n\t\t\t\t${s(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${r}{\n\t\t\t${a} {\n\t\t\t\t${s(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},b=t=>{const{padding:e,margin:n,height:i,width:o}=t||{},r=(t,e)=>c(t,e),s=(t,e,n)=>r(t,e?.[t]?.[n])+r(`min-${t}`,e?.min?.[n])+r(`max-${t}`,e?.max?.[n]),a=t=>c("padding",$(t)),l=t=>c("margin",$(t));return{desktop:a(e?.desktop)+l(n?.desktop)+s("height",i,"desktop")+s("width",o,"desktop"),tablet:a(e?.tablet)+l(n?.tablet)+s("height",i,"tablet")+s("width",o,"tablet"),mobile:a(e?.mobile)+l(n?.mobile)+s("height",i,"mobile")+s("width",o,"mobile")}},x=t=>{const{normal:e,hover:n}=t||{},i=t=>{const{border:e,radius:n,shadow:i}=t||{},o=c("border-radius",$(n)),r=c("box-shadow",((t,e="box")=>{let n="";return t?.map(((i,o)=>{const{hOffset:r="0px",vOffset:s="0px",blur:a="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=i||{},p=d?"inset":"",u=`${r} ${s} ${a}`,$=o+1>=t.length?"":", ";n+="text"===e?`${u} ${c}${$}`:`${u} ${l} ${c} ${p}${$}`})),n||""})(i,"box"));return p(e)+o+r};return{normal:i(e),hover:i(n)}},w=t=>{const{zIndex:n,overflow:i}=t||{},o=i?`overflow: ${i};`:"",r=t=>`${c("z-index",n?.[t])} ${c("position",e(n?.[t])?"relative":"")}`;return{desktop:r("desktop")+o,tablet:r("tablet"),mobile:r("mobile")}},f=(t,e)=>{const{desktop:n=!1,tablet:i=!1,mobile:o=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",s=t=>t?r:"";return{desktop:s(n),tablet:s(i),mobile:s(o)}},j=(t,n,s=!1,a=!0)=>{const{dimension:d,transform:p,background:u,borderShadow:$,mask:m,animation:y,visibility:j,responsive:N,position:k={},floating:L={},motion:v={},css:D=""}=n||{},z=s?`#${t}>div>div${a?":first-child":""}`:`#${t}>div`;((t,e,n)=>{const i=n?`#${e} > div`:`#${e}`,o=document.querySelector(i);o&&t&&t.type&&(o.setAttribute("data-aos",t.type),o.setAttribute("data-aos-duration",1e3*t.duration||.4),o.setAttribute("data-aos-delay",1e3*t.delay||0),o.classList.contains("aos-init")||(o.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?o.classList.add("aos-animate"):o.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(o)})(y,t,s);const S=b(d).desktop+w(j).desktop+((t,e,n)=>{const{transition:i=.4}=t||{},{transition:o=.4}=e||{},{transition:r=200}=n||{};return`transition: background ${i}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${r}ms ease-in-out;`})(u,$,p)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:i={type:"contain",scale:"100%"},position:o={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?l(n.url):`url(${(s=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMC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:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{
3 +svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===s))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===i.type?i.scale:i.type};\n\t\t${"custom"===o.type?`${c("-webkit-mask-position-x",o.x)}\n\t\t\t${c("-webkit-mask-position-y",o.y)}`:`${c("-webkit-mask-position",o.type)}`}\n\t\t${"cover"!==i.type?`-webkit-mask-repeat: ${r};`:""}`:"";var s})(m),T=b(d).tablet+w(j).tablet+f(N,s).tablet,I=b(d).mobile+w(j).mobile+f(N,s).mobile,A=x($).normal,E=x($).hover,O=f(N,s).desktop;return`\n\t\t${S||A?`${z} {\n\t\t\t${S}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${z}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${i} {\n\t\t\t${z}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${T?`${o} {\n\t\t\t${z}{\n\t\t\t\t${T}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${r} {\n\t\t\t${z}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M(u?.normal,z)}\n\t\t${M(u?.hover,z,!0)}\n\t\t${g(u?.overlay,z)}\n\t\t${g(u?.hoverOverlay,z,!0)}\n\t\t${e(p?.normal)?h(p?.normal,z):""}\n\t\t${e(p?.hover)?h(p?.hover,z,!0):""}\n\t\t${((t,e)=>{const{desktop:n={},tablet:i={},mobile:s={}}=t,a=(t={})=>`\n\t\t${e}{\n\t\t\t${c("position",t?.type)}\n\t\t\t${c("left",t?.horizontal?.left)}\n\t\t\t${c("right",t?.horizontal?.right)}\n\t\t\t${c("top",t?.vertical?.top)}\n\t\t\t${c("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${n?.type?a(n):""}\n\t\t\n\t\t${o}{\n\t\t\t${i?.type?a(i):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${s?.type?a(s):""}\n\t\t}\n\t`})(k,z)}\n\t\t${((t,n,i="")=>{const{translate:o={},rotate:r={},scale:s={},isEnabled:a=!1}=t||{};if(!a)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:o,value:t=>["x","y"].some((n=>e(o?.[n]?.[t])))?`${o?.x?.[t]||0}px ${o?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:r,value:t=>["x","y","z"].filter((n=>e(r?.[n]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${r[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:s,value:t=>{const n=s?.y?.[t],i=s?.z?.[t];return e(n)||e(i)?e(i)?`1 ${e(n)?n:1} ${i}`:`1 ${n}`:""}}].forEach((({name:t,property:e,values:n,value:o})=>{const r=o("from"),s=o("to");if(!r||!s)return;const a=Number(n?.duration)>0?Number(n.duration):1e3,d=Number(n?.delay)>0?Number(n.delay):0,p=`advFloat${t}${i?`-${i}`:""}`;l.push(`@keyframes ${p}{ from{ ${e}: ${r}; } to{ ${e}: ${s}; } }`),c.push(`${p} ${a}ms ease-in-out ${d}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${n}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(L,z,t)}\n\t\t${((t,n,s)=>{const{isEnable:a=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:u={},scale:$={},effectsRelativeTo:m="viewport",effectOn:y=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:M=!1,mouseTrack:g={},tilt:h={},sticky:b={}}=t||{},x=(t,n)=>e(t)&&!isNaN(t)?Number(t):n,w="viewport"===m,f=w?"view()":"scroll(nearest block)",j=[],N=[],k=[],L=[],v=String(s??"").replace(/[^a-zA-Z0-9]/g,""),D=(t,e,n)=>{j.push(`@keyframes advMe${t}${v}{ ${e} }`),N.push(`advMe${t}${v}`),k.push(f),L.push((t=>{const e=x(t?.top,0),n=x(t?.bottom,100),i=Math.min(e,n),o=Math.max(e,n);return w?`cover ${i}% ${o>=90?"contain 100%":`cover ${o}%`}`:`min(${3*i}vh, ${i}%) min(${3*o}vh, ${o}%)`})(n))};if(a){const t=l?.direction,e=c?.direction,n=t?100*x(l?.speed,4):0,i=e?100*x(c?.speed,4):0;if(n||i){const o="up"===t?-n:n,r="to-left"===e?-i:i,s=[n&&l,i&&c].filter(Boolean);D("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${o}px; }`,{top:Math.min(...s.map((t=>x(t?.top,0)))),bottom:Math.max(...s.map((t=>x(t?.bottom,100))))})}const o=d?.direction;if(o){const t=Math.max(0,1-x(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}; }`}[o];e&&D("Opacity",e,d)}const r=p?.direction;if(r){const t=3*x(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&&D("Blur",e,p)}const s=u?.direction;if(s){const t=20*x(u?.level,4);D("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===s?-t:t}deg; }`,u)}if($?.direction){const t=.15*x($?.level,4),e=Math.max(0,1-t),n=1+t,i={"scale-up":`from{ scale: 1; } to{ scale: ${n}; }`,"scale-down":`from{ scale: 1; } to{ scale: ${e}; }`,"scale-down-up":`0%{ scale: 1; } 50%{ scale: ${e}; } 100%{ scale: 1; }`,"scale-up-down":`0%{ scale: 1; } 50%{ scale: ${n}; } 100%{ scale: 1; }`}[$.direction];i&&D("Scale",i,$)}}const z=[];if(M){if(g?.direction){const t="direct"===g?.direction?100:-100;z.push(((e,n)=>`translate(${(e*t).toFixed(2)}px, ${(n*t).toFixed(2)}px)`))}if(h?.direction){const t=12*("direct"===h?.direction?1:-1);z.push(((e,n)=>`perspective(1000px) rotateX(${(n*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const S=(t,e,i)=>{if(!t||!t.defaultView)return;const o=t.defaultView,r=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),s=r.items.get(n)||{x:0,y:0};if(s.rate=e,s.build=i,r.items.set(n,s),r.bound)return;r.bound=!0;const a=e=>{const n=r.last?Math.min(e-r.last,100):16.7;r.last=e;let i=!1;r.items.forEach(((e,o)=>{const s=e.el&&e.el.isConnected?e.el:t.querySelector(o);if(!s)return;e.el=s;const a=e.rate*n/1e3,l=r.x-e.x,c=r.y-e.y,d=Math.sqrt(l*l+c*c);d<=a?(e.x=r.x,e.y=r.y):(e.x+=l/d*a,e.y+=c/d*a,i=!0),s.style.transform=e.build(e.x,e.y)})),r.frame=i?o.requestAnimationFrame(a):0,r.last=i?e:0};t.addEventListener("pointermove",(t=>{r.x=2*(t.clientX/o.innerWidth-.5),r.y=2*(t.clientY/o.innerHeight-.5),r.frame||(r.frame=o.requestAnimationFrame(a))}))};if(z.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*x(g?.speed,x(h?.speed,4))),e=(t,e)=>z.map((n=>n(t,e))).join(" ");S(document,t,e),S(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const T=t=>b?.[t]||("desktop"===t?b?.undefined:""),I=n.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(y)?y:e(y)?[y]:[],O=t=>!E.length||E.includes(t)?"":`${n}{ animation-name: none; }`;return`\n\t\t${N.length?`\n\t\t${j.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${n}{\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((()=>w?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${k.join(", ")};\n\t\t\t\tanimation-range: ${L.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${i}{ ${O("desktop")} }`:""}\n\t\t\t${O("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${O("tablet-portrait")} }`:""}\n\t\t\t${O("mobile-portrait")?`${r}{ ${O("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${z.length?`${n}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${I}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${o}{ ${I}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${r}{ ${I}{ ${A("mobile")} } }`:""}\n\t`})(v,z,t)}\n\t\t${D}\n\t`.replace(/\s+/g," ")},N=window.ReactJSXRuntime,k=({attributes:t,id:e,isBackend:n=!1})=>{
4 +const{heading:i={},checkbox:o={},item:r={},progress:s={},advanced:a}=t,l=o.accent||"#4f46e5",m=o.size||"20px",y=s.typography?.fontSize?.desktop||"12px",M=`#${e} .bBlocks-interactive-checklist-wrapper`,g=`${M} .bBlocks-interactive-checklist-heading`,h=`${M} .bBlocks-interactive-checklist-progress-text`,b=`${M} .bBlocks-interactive-checklist-progress-track`,x=`${M} .bBlocks-interactive-checklist-progress-fill`,w=`${M} .bBlocks-interactive-checklist-list`,f=`${M} .bBlocks-interactive-checklist-item`,k=`${M} .bBlocks-interactive-checklist-label`,L=`${M} .bBlocks-interactive-checklist-checkbox`,v=`${M} .bBlocks-interactive-checklist-box`,D=`${M} .bBlocks-interactive-checklist-reset`;return(0,N.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t${u("",i.typography).googleFontLink}\n\t\t\t${u("",r.typography).googleFontLink}\n\t\t\t${M}{\n\t\t\t\t${c("color",r.color)}\n\t\t\t}\n\t\t\t${u(g,i.typography).styles}\n\t\t\t${g}{\n\t\t\t\t${c("color",i.color)}\n\t\t\t\t${d(i.bg)}\n\t\t\t\t${p(i.border)}\n\t\t\t\t${c("border-radius",$(i.borderRadius))}\n\t\t\t\t${c("padding",$(i.padding))}\n\t\t\t}\n\t\t\t${u("",s.typography).googleFontLink}\n\t\t\t${u(h,s.typography).styles}\n\t\t\t${b}{\n\t\t\t\t${c("height",s.height)}\n\t\t\t\t${d(s.trackBg)}\n\t\t\t}\n\t\t\t${x}{\n\t\t\t\t${s.fillBg?.color||s.fillBg?.gradient||s.fillBg?.image?.url?d(s.fillBg):`background: ${l};`}\n\t\t\t}\n\t\t\t${w}{ gap: ${r.gap||"12px"}; }\n\t\t\t${u(k,r.typography).styles}\n\t\t\t${k}{\n\t\t\t\t${c("color",r.color)}\n\t\t\t\tpadding-left: calc(${m} + 12px);\n\t\t\t}\n\t\t\t${L}{ width: ${m}; height: ${m}; }\n\t\t\t${v}{\n\t\t\t\twidth: ${m};\n\t\t\t\theight: ${m};\n\t\t\t\tborder-color: ${l};\n\t\t\t}\n\t\t\t${v}::after{\n\t\t\t\t${c("background-color",o.checkColor)}\n\t\t\t}\n\t\t\t${L}:checked + .bBlocks-interactive-checklist-box,\n\t\t\t${f}.is-checked .bBlocks-interactive-checklist-box{\n\t\t\t\tbackground: ${l};\n\t\t\t\tborder-color: ${l};\n\t\t\t}\n\t\t\t${L}:focus-visible + .bBlocks-interactive-checklist-box{\n\t\t\t\toutline: 2px solid ${l};\n\t\t\t\toutline-offset: 2px;\n\t\t\t}\n\t\t\t${D}{\n\t\t\t\tcolor: ${l};\n\t\t\t\tfont-size: ${y};\n\t\t\t}\n\t\t\t${D}:focus-visible{ outline: 2px solid ${l}; }\n\t\t\t${j(e,a,n,!1)}\n\t\t\t`}})},L="bBlocks-interactive-checklist",v="bb_checklist_",D=["h2","h3","h4"],z=({attributes:t,id:e})=>{const{heading:n={},items:i=[],checkbox:o={},item:r={},progress:s={},reset:l={},persistKey:c=""}=t,d=(c||e||"").toString(),p="round"===o.style?"round":"square",u=!0===r.strike,$=!1!==s.show,m=!1!==l.show,y=D.includes(n.tag)?n.tag:"h3",M=(n.text||"").toString().trim()?n.text:"",g=(Array.isArray(i)?i:[]).filter((t=>(t&&t.label||"").toString().trim())),[h,b]=(0,a.useState)({});(0,a.useEffect)((()=>{b((t=>{try{const e=window.localStorage&&window.localStorage.getItem(v+t),n=e&&JSON.parse(e);return n&&"object"==typeof n?n:{}}catch(t){return{}}})(d))}),[d]);const x=g.length,w=g.filter((t=>h[t.id])).length,f=x>0?Math.round(w/x*100):0,j=[`${L}-wrapper`,`${L}-checkbox-${p}`,u?`${L}-has-strike`:"",x>0&&w===x?"is-complete":""].filter(Boolean).join(" ");return(0,N.jsxs)("div",{className:j,children:[M&&(0,N.jsx)(y,{className:`${L}-heading`,dangerouslySetInnerHTML:{__html:M}}),$&&x>0&&(0,N.jsxs)("div",{className:`${L}-progress`,children:[(0,N.jsx)("p",{className:`${L}-progress-text`,"aria-live":"polite","aria-atomic":"true",children:`${w} of ${x} complete`}),(0,N.jsx)("div",{className:`${L}-progress-track`,"aria-hidden":"true",children:(0,N.jsx)("span",{className:`${L}-progress-fill`,style:{width:`${f}%`}})})]}),0===x?(0,N.jsx)("p",{className:`${L}-empty`,children:"No checklist items to display."}):(0,N.jsx)("ul",{className:`${L}-list`,children:g.map((t=>{const e=!!h[t.id];return(0,N.jsx)("li",{className:`${L}-item ${e?"is-checked":""}`,children:(0,N.jsxs)("label",{className:`${L}-label`,children:[(0,N.jsx)("input",{type:"checkbox",className:`${L}-checkbox`,checked:e,onChange:()=>{return e=t.id,void b((t=>{const n={...t,[e]:!t[e]};try{window.localStorage&&window.localStorage.setItem(v+d,JSON.stringify(n))}catch(t){}return n}));var e}}),(0,N.jsx)("span",{className:`${L}-box`,"aria-hidden":"true"}),(0,N.jsx)("span",{className:`${L}-text`,children:t.label})]})},t.id)}))}),m&&x>0&&(0,N.jsx)("button",{type:"button",className:`${L}-reset`,onClick:()=>{if(window.confirm("Reset your checklist progress?")){b({});try{window.localStorage&&window.localStorage.removeItem(v+d)}catch(t){}}},children:"Reset progress"})]})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-interactive-checklist").forEach((e=>{const n=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(k,{attributes:n,id:e.id}),(0,N.jsx)(z,{attributes:n,id:e.id})]})),e?.removeAttribute("data-attributes")}))}))})();