| @@ -1 +1,2 @@ | ||
| 1 | -(()=>{"use strict";var t={5795:t=>{t.exports=window.ReactDOM},9940:(t,e,n)=>{var r=n(5795);e.H=r.createRoot,r.hydrateRoot}},e={};const n=window.React;var r=function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}(9940);const o="@media only screen and (max-width: 1024px)",a="@media only screen and (max-width: 640px)",i="linear-gradient(135deg, #0040E3, #18D4FD)",s=(t,e,n=!1)=>{return null==(r=e)||""===r||Array.isArray(r)&&0===r.length||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&""===r.trim()||"number"==typeof r&&0===r?"":`${t}: ${e}${n?" !important":""};`;var r},l=(t,e=!0,n=!0,r=!0)=>{const{type:o="solid",color:a="",gradient:l=i,image:c={},position:d="center center",attachment:$="",repeat:p="no-repeat",size:m="",overlayColor:b=""}=t||{};return"gradient"===o&&n?s("background",l):"image"===o&&r?`background: url(${c?.url});\n\t\t\t\t${s("background-color",b)}\n\t\t\t\t${s("background-position",d)}\n\t\t\t\t${s("background-size",m)}\n\t\t\t\t${s("background-repeat",p)}\n\t\t\t\t${s("background-attachment",$)}\n\t\t\t\t${s("background-repeat",p)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&s("background",a)},c=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:r="0px"}=t;return`${r} ${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():s("border",e(t))},d=(t,e,n=!0)=>{const{fontFamily:r="Default",fontCategory:i="sans-serif",fontVariant:l=400,fontWeight:c,isUploadFont:d=!0,fontSize:$={desktop:null,tablet:null,mobile:null},fontStyle:p,textTransform:m,textDecoration:b,lineHeight:g,letterSpace:u}=e||{},y=!n||!r||"Default"===r,k=$?.desktop||$,h=$?.tablet||k,f=$?.mobile||h,w=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},v=`\n\t\t${y?"":`font-family: '${r}', ${i};`}\n\t\t${s("font-weight",c)}\n\t\t${s("font-size",w(k))}\n\t\t${s("font-style",p)}\n\t\t${s("text-transform",m)}\n\t\t${s("text-decoration",b)}\n\t\t${s("line-height",g)}\n\t\t${s("letter-spacing",u)}\n\t`,L=l&&400!==l?"400i"===l?":ital@1":l?.includes("00i")?`: ital, wght@1, ${l?.replace("00i","00")} `:`: wght@${l} `:"",x=y?"":`https://fonts.googleapis.com/css2?family=${r?.split(" ").join("+")}${L.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||y?"":`@import url(${x});`,styles:`${t}{\n\t\t\t${v}\n\t\t}\n\t\t${o} {\n\t\t\t${t}{\n\t\t\t\t${s("font-size",w(h))}\n\t\t\t}\n\t\t}\n\t\t${a} {\n\t\t\t${t}{\n\t\t\t\t${s("font-size",w(f))}\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""},p=({attributes:t,id:e})=>{const{layout:r,styles:i}=t,{lists:p,divider:m,marker:b}=i,g=`#${e} .bBlocksListMainWrapper .bBlocksListContainer`,u=`${g} .bBlocksListItem`,y=`${u} .bBlocksListItemText`,k=`${g} .bBlocksListItemDivider`,h=`${u} .bBlocksListMarkerIcon`,f=`${u} .bBlocksListMarkerEmoji`,w=`${u} .bBlocksListMarker`,v=t=>"vertical"===r[t].type?"flex-direction:column;":"horizontal"===r[t].type?"flex-direction:row;":"",L=t=>("vertical"===r[t].type?s("align-items",r[t].verticalAlign):"")+("horizontal"===r[t].type?s("justify-content",r[t].horizontalAlign):""),x=t=>("horizontal"===r[t].type?`${s("border-right-style",m.style)}\n\t\t\t${s("border-right-width",m.weight)}\n\t\t\t${s("border-right-color",m.color)}`:"")+("vertical"===r[t].type?`${s("border-bottom-style",m.style)}\n\t\t\t${s("border-bottom-width",m.weight)}\n\t\t\t${s("border-bottom-color",m.color)} \n\t\t\t${s("width",m.width)}`:"");return(0,n.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\n\t\t${d("",p.typography).googleFontLink}\n\t\t${d(y,p.typography).styles}\n\n\t\t${g}{\n\t\t\t${v("desktop")}\n\t\t\t${L("desktop")}\n\t\t\t${s("gap",p.desktop.gap.horizontal)}\n\t\t}\n\t\t${u}{\n\t\t\t${s("gap",b.gap)}\n\t\t}\n\t\t${y}{\n\t\t\t${s("color",p.color)}\n\t\t}\n\t\t${k}{\n\t\t\t${x("desktop")}\n\t\t}\n\t\t\n\t\t${h}{\n\t\t\t${l(b.bg)}\n\t\t\t${s("padding",$(b.desktop.padding))}\n\t\t\t${s("border-radius",$(b.desktop.radius))}\n\t\t\t${c(b.border)}\n\t\t}\n\n\t\t${h}>svg{\n\t\t\t${s("fill",b.color)}\n\t\t\t${s("width",b.iconSize)}\n\t\t\t${s("height",b.iconSize)}\n\t\t}\n\n\t\t${f}{\n\t\t\t${s("font-size",b.iconSize)}\n\t\t}\n\n\t\t${w}{\n\t\t\t${s("background",b.color)}\n\t\t\t${s("height",b.size)}\n\t\t\t${s("width",b.size)}\n\t\t}\n\n\t\t${o}{\n\t\t\t${g}{\n\t\t\t\t${v("tablet")}\n\t\t\t\t${L("tablet")}\n\t\t\t\t${s("gap",p.tablet.gap.horizontal)}\n\t\t\t}\n\n\t\t\t${k}{\n\t\t\t\t${x("tablet")}\n\t\t\t}\n\t\t\t${h}{\n\t\t\t\t${s("padding",$(b.tablet.padding))}\n\t\t\t\t${s("border-radius",$(b.tablet.radius))}\n\t\t\t}\n\n\t\t}\n\n\t\t${a}{\n\t\t\t${g}{\n\t\t\t\t${v("mobile")}\n\t\t\t\t${L("mobile")}\n\t\t\t\t${s("gap",p.mobile.gap.horizontal)}\n\t\t\t}\n\n\t\t\t${k}{\n\t\t\t\t${x("mobile")}\n\t\t\t}\n\t\t\t${h}{\n\t\t\t\t${s("padding",$(b.mobile.padding))}\n\t\t\t\t${s("border-radius",$(b.mobile.radius))}\n\t\t\t}\n\n\t\t}\n\n\t`}})},m=({attributes:t})=>{const{items:e=[],marker:r,styles:o}=t,{divider:a}=o,{markerType:i}=r;return(0,n.createElement)("div",{className:"bBlocksListMainWrapper"},(0,n.createElement)("div",{className:"bBlocksListContainer"},e.length>0&&e.map(((t,o)=>(0,n.createElement)(n.Fragment,{key:o},(0,n.createElement)("a",{className:"bBlocksListItem",rel:"noopener noreferrer",...t.link?{href:t.link,target:t.newWindow?"_blank":"_self"}:{}},(t=>{switch(i){case"emoji":return(0,n.createElement)("span",{className:"bBlocksListMarkerEmoji"},r.emoji);case"icon":return t?(0,n.createElement)("span",{className:"bBlocksListMarkerIcon",dangerouslySetInnerHTML:{__html:t}}):null;case"disc":return(0,n.createElement)("span",{className:"bBlocksListMarkerDisc bBlocksListMarker"});case"square":return(0,n.createElement)("span",{className:"bBlocksListMarkerSquare bBlocksListMarker"});default:return null}})(t.icon),(0,n.createElement)("span",{className:"bBlocksListItemText",placeholder:"Write your list text",dangerouslySetInnerHTML:{__html:t.text}})," "),o<e.length-1&&a.isEnabled&&(0,n.createElement)("div",{className:"bBlocksListItemDivider"}))))))};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-list").forEach((t=>{const e=JSON.parse(t.dataset.attributes);(0,r.H)(t).render((0,n.createElement)(n.Fragment,null,(0,n.createElement)(p,{attributes:e,id:t.id}),(0,n.createElement)(m,{attributes:e}))),t?.removeAttribute("data-attributes")}))}))})(); | |
| 1 | +(()=>{"use strict";const t=window.ReactDOM,e="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",n="linear-gradient(135deg, #0040E3, #18D4FD)",i=window.React;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"),r=e.documentElement;return!r||"svg"!==r.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),r=await e.text();return this.sanitize(`${r}`)}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 r=e.name,n=r.toLowerCase(),i=e.value;if(this.options.removeEvents&&n.startsWith("on"))return void t.removeAttribute(r);if(this.options.removeExternalResources&&("href"===n||n.endsWith(":href"))&&!this.isAllowedUrl(i))return void t.removeAttribute(r);const s=n.replace("xlink:","");this.allowedAttributeSet.has(n)||this.allowedAttributeSet.has(s)?this.options.removeExternalResources&&this.hasExternalUrl(i)?t.removeAttribute(r):"style"===n&&this.options.sanitizeStyle&&t.setAttribute(r,this.sanitizeCss(i)):t.removeAttribute(r)}))}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 s=t=>{const e=(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}})(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},o=(t,e)=>{return null==(r=e)||""===r||Array.isArray(r)&&0===r.length||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&""===r.trim()||"number"==typeof r&&0===r?"":`${t}: ${e};`;var r},a=(t,e=!0,r=!0,i=!0)=>{const{type:a="solid",color:l="",gradient:c=n,image:d={},position:p="center center",attachment:m="",repeat:h="no-repeat",size:u="",overlayColor:g=""}=t||{};return"gradient"===a&&r?o("background",c):"image"===a&&i?`background: ${s(d?.url)};\n\t\t\t\t${o("background-color",g)}\n\t\t\t\t${o("background-position",p)}\n\t\t\t\t${o("background-size",u)}\n\t\t\t\t${o("background-repeat",h)}\n\t\t\t\t${o("background-attachment",m)}\n\t\t\t\t${o("background-repeat",h)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&o("background",l)},l=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:r="solid",width:n="0px"}=t;return`${n} ${r} ${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((r=>t[r]?`border-${r}: ${e(t[r])};`:"")).join(" ").trim():o("border",e(t))},c=(t,n,i=!0)=>{const{fontFamily:s="Default",fontCategory:a="sans-serif",fontVariant:l=400,fontWeight:c,isUploadFont:d=!0,fontSize:p={desktop:null,tablet:null,mobile:null},fontStyle:m,textTransform:h,textDecoration:u,lineHeight:g,letterSpace:b}=n||{},$=!i||!s||"Default"===s,y=p?.desktop||p,f=p?.tablet||y,k=p?.mobile||f,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${$?"":`font-family: '${s}', ${a};`}\n\t\t${o("font-weight",c)}\n\t\t${o("font-size",w(y))}\n\t\t${o("font-style",m)}\n\t\t${o("text-transform",h)}\n\t\t${o("text-decoration",u)}\n\t\t${o("line-height",g)}\n\t\t${o("letter-spacing",b)}\n\t`,v=l&&400!==l?"400i"===l?":ital@1":l?.includes("00i")?`: ital, wght@1, ${l?.replace("00i","00")} `:`: wght@${l} `:"",L=$?"":`https://fonts.googleapis.com/css2?family=${s?.split(" ").join("+")}${v.replace(/ /g,"")}&display=swap`;return{googleFontLink:!d||$?"":`@import url(${L});`,styles:`${t}{\n\t\t\t${x}\n\t\t}\n\t\t${e} {\n\t\t\t${t}{\n\t\t\t\t${o("font-size",w(f))}\n\t\t\t}\n\t\t}\n\t\t${r} {\n\t\t\t${t}{\n\t\t\t\t${o("font-size",w(k))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},d=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},p=window.ReactJSXRuntime,m=({attributes:t,id:n})=>{const{layout:i,styles:s}=t,{lists:m,divider:h,marker:u}=s,g=`#${n} .bBlocksListMainWrapper .bBlocksListContainer`,b=`${g} .bBlocksListItem`,$=`${b} .bBlocksListItemText`,y=`${g} .bBlocksListItemDivider`,f=`${b} .bBlocksListMarkerIcon`,k=`${b} .bBlocksListMarkerEmoji`,w=`${b} .bBlocksListMarker`,x=t=>"vertical"===i[t].type?"flex-direction:column;":"horizontal"===i[t].type?"flex-direction:row;":"",v=t=>("vertical"===i[t].type?o("align-items",i[t].verticalAlign):"")+("horizontal"===i[t].type?o("justify-content",i[t].horizontalAlign):""),L=t=>("horizontal"===i[t].type?`${o("border-right-style",h.style)}\n\t\t\t${o("border-right-width",h.weight)}\n\t\t\t${o("border-right-color",h.color)}`:"")+("vertical"===i[t].type?`${o("border-bottom-style",h.style)}\n\t\t\t${o("border-bottom-width",h.weight)}\n\t\t\t${o("border-bottom-color",h.color)} \n\t\t\t${o("width",h.width)}`:"");return(0,p.jsx)("style",{dangerouslySetInnerHTML:{ | |
| 2 | +__html:`\n\n\t\t${c("",m.typography).googleFontLink}\n\t\t${c($,m.typography).styles}\n\n\t\t${g}{\n\t\t\t${x("desktop")}\n\t\t\t${v("desktop")}\n\t\t\t${o("gap",m.desktop.gap.horizontal)}\n\t\t}\n\t\t${b}{\n\t\t\t${o("gap",u.gap)}\n\t\t}\n\t\t${$}{\n\t\t\t${o("color",m.color)}\n\t\t}\n\t\t${y}{\n\t\t\t${L("desktop")}\n\t\t}\n\t\t\n\t\t${f}{\n\t\t\t${a(u.bg)}\n\t\t\t${o("padding",d(u.desktop.padding))}\n\t\t\t${o("border-radius",d(u.desktop.radius))}\n\t\t\t${l(u.border)}\n\t\t}\n\n\t\t${f}>svg{\n\t\t\t${o("fill",u.color)}\n\t\t\t${o("width",u.iconSize)}\n\t\t\t${o("height",u.iconSize)}\n\t\t}\n\n\t\t${k}{\n\t\t\t${o("font-size",u.iconSize)}\n\t\t}\n\n\t\t${w}{\n\t\t\t${o("background",u.color)}\n\t\t\t${o("height",u.size)}\n\t\t\t${o("width",u.size)}\n\t\t}\n\n\t\t${e}{\n\t\t\t${g}{\n\t\t\t\t${x("tablet")}\n\t\t\t\t${v("tablet")}\n\t\t\t\t${o("gap",m.tablet.gap.horizontal)}\n\t\t\t}\n\n\t\t\t${y}{\n\t\t\t\t${L("tablet")}\n\t\t\t}\n\t\t\t${f}{\n\t\t\t\t${o("padding",d(u.tablet.padding))}\n\t\t\t\t${o("border-radius",d(u.tablet.radius))}\n\t\t\t}\n\n\t\t}\n\n\t\t${r}{\n\t\t\t${g}{\n\t\t\t\t${x("mobile")}\n\t\t\t\t${v("mobile")}\n\t\t\t\t${o("gap",m.mobile.gap.horizontal)}\n\t\t\t}\n\n\t\t\t${y}{\n\t\t\t\t${L("mobile")}\n\t\t\t}\n\t\t\t${f}{\n\t\t\t\t${o("padding",d(u.mobile.padding))}\n\t\t\t\t${o("border-radius",d(u.mobile.radius))}\n\t\t\t}\n\n\t\t}\n\n\t`}})},h=({attributes:t})=>{const{items:e=[],marker:r,styles:n}=t,{divider:s}=n,{markerType:o}=r,a=t=>{switch(o){case"emoji":return(0,p.jsx)("span",{className:"bBlocksListMarkerEmoji",children:r.emoji});case"icon":return t?(0,p.jsx)("span",{className:"bBlocksListMarkerIcon",dangerouslySetInnerHTML:{__html:t}}):null;case"disc":return(0,p.jsx)("span",{className:"bBlocksListMarkerDisc bBlocksListMarker"});case"square":return(0,p.jsx)("span",{className:"bBlocksListMarkerSquare bBlocksListMarker"});default:return null}};return(0,p.jsx)("div",{className:"bBlocksListMainWrapper",children:(0,p.jsx)("div",{className:"bBlocksListContainer",children:e.length>0&&e.map(((t,r)=>(0,p.jsxs)(i.Fragment,{children:[(0,p.jsxs)("a",{className:"bBlocksListItem",rel:"noopener noreferrer",...t.link?{href:t.link,target:t.newWindow?"_blank":"_self"}:{},children:[a(t.icon),(0,p.jsx)("span",{className:"bBlocksListItemText",placeholder:"Write your list text",dangerouslySetInnerHTML:{__html:t.text}})," "]}),r<e.length-1&&s.isEnabled&&(0,p.jsx)("div",{className:"bBlocksListItemDivider"})]},r)))})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-list").forEach((e=>{const r=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(m,{attributes:r,id:e.id}),(0,p.jsx)(h,{attributes:r})]})),e?.removeAttribute("data-attributes")}))}))})(); | |