|
1
|
|
-(()=>{"use strict";var __webpack_modules__={2343(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{I:()=>useRunJs});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1609),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);const useRunJs=(htmlCode,delay=300)=>{const timer=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(htmlCode)return timer.current&&clearTimeout(timer.current),timer.current=setTimeout((()=>{const matchedScripts=htmlCode.match(/<script\b[^>]*>([\s\S]*?)<\/script>/gm);matchedScripts&&matchedScripts.forEach((scriptTag=>{const scriptContentMatch=scriptTag.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);scriptContentMatch&&scriptContentMatch[1]&&eval(scriptContentMatch[1])}))}),delay),()=>{timer.current&&clearTimeout(timer.current)}}),[htmlCode,delay])}},1609(t){t.exports=window.React}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](i,i.exports,__webpack_require__),i.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var __webpack_exports__={};const external_ReactDOM_namespaceObject=window.ReactDOM,isExist=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),escapeHTML=(t="")=>t?t?.replace(/<([a-z][a-z0-9]*)\b([^>]*)>/gi,((t,e,i)=>{const r=["style","href","target","rel","class"];return["b","strong","i","em","span","a","br"].includes(e.toLowerCase())?`<${e}${i.replace(/([a-z0-9-]+)=["'][^"']*["']/gi,((t,e)=>r.includes(e.toLowerCase())?t:""))}>`:t?.replace(/</g,"<").replace(/>/g,">")})):"",sanitizeURL=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}},sanitizeHTML=t=>{const e=(new DOMParser).parseFromString(t,"text/html"),i=["b","strong","i","em","span","a","br"],r=["style","href","target","rel","class"];return e.body.querySelectorAll("*").forEach((t=>{i.includes(t.tagName.toLowerCase())?[...t.attributes].forEach((e=>{if(r.includes(e.name)||t.removeAttribute(e.name),"href"===e.name){const i=sanitizeURL(e.value);i?t.setAttribute("href",i):t.removeAttribute("href")}})):t.remove()})),e.body.innerHTML},sanitizeInput=t=>t.replace(/[<>]/g,"").replace(/javascript:/gi,"").replace(/on\w+=/gi,"").trim();class SVGSanitizer{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","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","fill","stroke","stroke-width","stroke-linecap","stroke-linejoin","opacity","fill-opacity","stroke-opacity","viewBox","preserveAspectRatio","xmlns","xmlns:xlink"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t}}sanitize(t){const e=(new DOMParser).parseFromString(t,"image/svg+xml");return this.removeScripts(e),this.sanitizeElements(e),(new XMLSerializer).serializeToString(e.documentElement)}async sanitizeFile(t){const e=await fetch(t),i=await e.text();return this.sanitize(`${i}`)}removeScripts(t){this.options.removeScripts&&(t.querySelectorAll("script").forEach((t=>t.remove())),t.querySelectorAll("*").forEach((t=>{t.tagName.toLowerCase().includes("script")&&t.remove()})))}sanitizeElements(t){t.querySelectorAll("*").forEach((t=>{const e=t.tagName.toLowerCase();this.options.allowedTags.includes(e)?this.sanitizeAttributes(t):t.remove()}))}sanitizeAttributes(t){Array.from(t.attributes).forEach((e=>{const i=e.name.toLowerCase(),r=e.value;if(this.options.removeEvents&&i.startsWith("on"))return void t.removeAttribute(i);if(this.options.removeExternalResources&&("href"===i||"xlink:href"===i)&&!this.isAllowedUrl(r))return void t.removeAttribute(i);const n=i.replace("xlink:","");this.options.allowedAttributes.includes(n)?"style"===i&&this.options.sanitizeStyle&&this.sanitizeStyleAttribute(t,r):t.removeAttribute(i)}))}isAllowedUrl(t){if(t.startsWith("data:")||t.startsWith("#"))return!0;try{const e=new URL(t);return this.options.allowedProtocols.includes(e.protocol.replace(":",""))}catch{return!1}}sanitizeStyleAttribute(t,e){const i=e.replace(/expression\(|javascript:|url\(javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"");t.setAttribute("style",i)}}const deskBreakpoint="@media only screen and (min-width: 1025px)",tabBreakpoint="@media only screen and (max-width: 1024px)",mobileBreakpoint="@media only screen and (max-width: 640px)",primaryColor="#146EF5",primaryColor100="#e7f0fe",primaryColor200="#b6d2fc",primaryColor300="#85b4fa",primaryColor400="#5495f8",primaryColor500="#2377f6",primaryColor600="#095edc",primaryColor700="#0749ab",primaryColor800="#05347a",primaryColor900="#031f49",primaryColor1000="#010a18",secondaryColor="#FF7A00",titleColor="#070127",contentColor="#485781",gradient="linear-gradient(135deg, #0040E3, #18D4FD)";var external_React_=__webpack_require__(1609),React,_path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},_extends.apply(null,arguments)}var SvgBlob=function(t){return React.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:121,height:89},t),_path||(_path=React.createElement("path",{d:"M100.016 7.397c-9.77-6.177-26.708-11.063-35.59-3.684-7.442 6.177-2.38 15.204-9.416 21.59-10.6 9.614-28.159-5.442-41.858 2.632C.676 35.255-4.28 59.149 4.278 73.798c13.137 22.524 53.13 13.854 61.194 12.106 4.5-.993 53.495-12.265 55.469-42.705.957-14.946-9.841-28.78-20.925-35.802"})))};const blob="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==";var circle_React,_circle;function circle_extends(){return circle_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},circle_extends.apply(null,arguments)}var SvgCircle=function(t){return circle_React.createElement("svg",circle_extends({xmlns:"http://www.w3.org/2000/svg",width:89,height:89},t),_circle||(_circle=circle_React.createElement("circle",{cx:44.5,cy:44.5,r:44.5})))};const circle="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==";var flower_React,flower_path;function flower_extends(){return flower_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},flower_extends.apply(null,arguments)}var SvgFlower=function(t){return flower_React.createElement("svg",flower_extends({xmlns:"http://www.w3.org/2000/svg",width:89,height:89},t),flower_path||(flower_path=flower_React.createElement("path",{d:"m76.133 44.475 6.33-6.328a22.349 22.349 0 0 0-31.613-31.6l-6.318 6.318-6.372-6.318a22.352 22.352 0 1 0-31.612 31.61l6.318 6.318-6.318 6.372a22.352 22.352 0 0 0 31.612 31.61l6.318-6.318 6.372 6.253a22.349 22.349 0 0 0 31.612-31.6Z"})))};const flower="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02LjMyODVBMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDUwLjg1LDYuNTQ3NEw0NC41MzIsMTIuODY1MSwzOC4xNiw2LjU0NzRhMjIuMzUyNCwyMi4zNTI0LDAsMSwwLTMxLjYxMiwzMS42MWw2LjMxODEsNi4zMTc3TDYuNTQ3OCw1MC44NDdhMjIuMzUyNCwyMi4zNTI0LDAsMCwwLDMxLjYxMiwzMS42MWw2LjMxODEtNi4zMTc3TDUwLjg1LDgyLjM5MjJhMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDMxLjYxMi0zMS41OTkzWiIvPjwvc3ZnPg==";var hexagon_React,hexagon_path;function hexagon_extends(){return hexagon_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},hexagon_extends.apply(null,arguments)}var SvgHexagon=function(t){return hexagon_React.createElement("svg",hexagon_extends({xmlns:"http://www.w3.org/2000/svg",width:103,height:89},t),hexagon_path||(hexagon_path=hexagon_React.createElement("path",{d:"M77.211 0H25.752L0 44.505 25.752 89h51.46L103 44.505ZM61.77 62.261H41.222L30.939 44.504 41.222 26.74h20.547l10.283 17.766Z"})))};const hexagon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=";var sketch_React,sketch_path;function sketch_extends(){return sketch_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},sketch_extends.apply(null,arguments)}var SvgSketch=function(t){return sketch_React.createElement("svg",sketch_extends({xmlns:"http://www.w3.org/2000/svg",width:91.114,height:89},t),sketch_path||(sketch_path=sketch_React.createElement("path",{d:"m82.175 37.527 1.612-1.612c.948-.949-6.37-5.931-7.05-6.378a45 45 0 0 0-5.776-3.325c-.247-.115-.602-.3-.987-.478q1.781-1.897 3.586-3.771c.949-.98-6.363-5.923-7.05-6.37a44 44 0 0 0-5.76-3.332l-.293-.147 1.396-1.542c.94-1.05-6.332-5.9-7.05-6.37a44 44 0 0 0-5.76-3.34c-.54-.247-2.314-1.265-2.847-.687q-13.458 14.993-28.08 28.891c-7.844 7.45-16.567 15.58-18.11 26.87-.115.825 1.327 1.974 1.744 2.314a41 41 0 0 0 5.314 4.057 44 44 0 0 0 5.76 3.34c.64.293 2.176 1.203 2.847.686l2.074-1.558c1.45 1.859 5.97 4.72 6.671 5.175l1.489.956a257 257 0 0 0-4.435 5.622c-.91 1.188 6.263 5.862 7.05 6.37a44 44 0 0 0 5.76 3.332c.602.278 2.23 1.234 2.846.694l9.255-8.098c.825 2.568 14.569 11.63 15.672 9.972L91.06 45.362c.632-.948-4.335-5.036-8.885-7.835"})))};const sketch="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1MTYsNDUuMTUxNiwwLDAsMC01Ljc3NjYtMy4zMjQxYy0uMjQ2OC0uMTE1Ny0uNjAxNi0uMzAwOC0uOTg3Mi0uNDc4MnExLjc4MTYtMS44OTcyLDMuNTg2My0zLjc3MTNjLjk0ODYtLjk4LTYuMzYyOC01LjkyMzItNy4wNDkyLTYuMzcwNUE0NC4xNTc5LDQ0LjE1NzksMCwwLDAsNjAuNzUsMTIuMjYwNmwtLjI5My0uMTQ2NSwxLjM5NTktMS41NDI1Yy45NDA5LTEuMDQ4OS02LjMzMTktNS45LTcuMDQ5Mi02LjM3QTQ0LjIxMiw0NC4yMTIsMCwwLDAsNDkuMDQyMi44NjE2Yy0uNTQtLjI0NjctMi4zMTM3LTEuMjY0OC0yLjg0NTgtLjY4NjRRMzIuNzM4MSwxNS4xNjgyLDE4LjExNTQsMjkuMDY2Yy03Ljg0MzYsNy40NS0xNi41NjYzLDE1LjU3OTEtMTguMTA4OCwyNi44Ny0uMTE1Ny44MjUzLDEuMzI2NSwxLjk3NDQsMS43NDMsMi4zMTM4YTQwLjc5OSw0MC43OTksMCwwLDAsNS4zMTM5LDQuMDU2Nyw0NC4yMTc0LDQ0LjIxNzQsMCwwLDAsNS43NjExLDMuMzRjLjY0LjI5MzEsMi4xNzUsMS4yMDMxLDIuODQ1OS42ODY0bDIuMDc0Ny0xLjU1NzljMS40NSwxLjg1ODcsNS45Njk0LDQuNzIsNi42NzEyLDUuMTc1bDEuNDg4NS45NTY0QzI0LjQwMSw3Mi43NjQ3LDIyLjkyLDc0LjYzMTEsMjEuNDcsNzYuNTI4M2MtLjkxLDEuMTg3OCw2LjI2MjUsNS44NjE1LDcuMDQ5Miw2LjM3YTQ0LjE2MzMsNDQuMTYzMywwLDAsMCw1Ljc2MTEsMy4zMzE4Yy42MDE2LjI3NzYsMi4yMjg5LDEuMjM0LDIuODQ1OS42OTQxbDkuMjU1LTguMDk4Yy44MjUyLDIuNTY4MiwxNC41Njg3LDExLjYzLDE1LjY3MTYsOS45NzIxTDkxLjA2LDQ1LjM2MjRDOTEuNjkyLDQ0LjQxMzgsODYuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=";var triangle_React,triangle_path;function triangle_extends(){return triangle_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)({}).hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},triangle_extends.apply(null,arguments)}var SvgTriangle=function(t){return triangle_React.createElement("svg",triangle_extends({xmlns:"http://www.w3.org/2000/svg",width:103,height:89},t),triangle_path||(triangle_path=triangle_React.createElement("path",{d:"M77.255 44.505 51.5 0 25.755 44.505 0 89h103z"})))};const triangle="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=";var defaultGradient,getCSS_primaryColor300,getCSS_tabBreakpoint,getCSS_mobileBreakpoint;const safeCSSUrl=t=>{const e=sanitizeURL(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},isValidCSS=(t,e)=>isExist(e)?`${t}: ${e};`:"",getBackgroundCSS=(t,e=!0,i=!0,r=!0)=>{const{type:n="solid",color:a="",gradient:s=defaultGradient,image:o={},position:l="center center",attachment:c="",repeat:d="no-repeat",size:u="",overlayColor:p=""}=t||{};return"gradient"===n&&i?isValidCSS("background",s):"image"===n&&r?`background: ${safeCSSUrl(o?.url)};\n\t\t\t\t${isValidCSS("background-color",p)}\n\t\t\t\t${isValidCSS("background-position",l)}\n\t\t\t\t${isValidCSS("background-size",u)}\n\t\t\t\t${isValidCSS("background-repeat",d)}\n\t\t\t\t${isValidCSS("background-attachment",c)}\n\t\t\t\t${isValidCSS("background-repeat",d)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&isValidCSS("background",a)},getBorderCSS=t=>{const{width:e="",style:i="solid",color:r="",side:n="all",radius:a=""}=t||{},s=t=>{const e=n?.toLowerCase();return e?.includes("all")||e?.includes(t)},o=`${e} ${i} ${r}`,l=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>s(t)?`border-${t}: ${o};`:"")).join(""):""}\n\t\t${isValidCSS("border-radius",a)}\n\t`;return l},getBorderBoxCSS=t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:i="solid",width:r="0px"}=t;return`${r} ${i} ${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((i=>t[i]?`border-${i}: ${e(t[i])};`:"")).join(" ").trim():isValidCSS("border",e(t))},getColorsCSS=t=>{const{color:e="",bgType:i="solid",bg:r="",gradient:n=defaultGradient}=t||{};return`\n\t\t${isValidCSS("color",e)}\n\t\t${n||r?isValidCSS("background","gradient"===i?n:r):""}\n\t`},getIconCSS=(t,e=!0,i=!0)=>{const{fontSize:r=16,colorType:n="solid",color:a="inherit",gradient:s=defaultGradient}=t||{},o="gradient"===n?`color: transparent; background-image: ${s}; -webkit-background-clip: text; background-clip: text;`:isValidCSS("color",a);return`\n\t\t${r&&e?isValidCSS("font-size",r?`${r}px`:""):""}\n\t\t${i?o:""}\n\t`},getMultiShadowCSS=(t,e="box")=>{let i="";return t?.map(((r,n)=>{const{hOffset:a="0px",vOffset:s="0px",blur:o="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=r||{},u=d?"inset":"",p=`${a} ${s} ${o}`,g=n+1>=t.length?"":", ";i+="text"===e?`${p} ${c}${g}`:`${p} ${l} ${c} ${u}${g}`})),i||""},getSeparatorCSS=t=>{const{width:e="50%",height:i="2px",style:r="solid",color:n=getCSS_primaryColor300}=t||{};return`\n\t\t${isValidCSS("width",e)}\n\t\t${0===parseInt(i)?"":`border-top: ${i} ${r} ${n};`}\n\t`},getShadowCSS=(t,e="box")=>{const{hOffset:i="0px",vOffset:r="0px",blur:n="0px",spreed:a="0px",color:s="#7090b0",isInset:o=!1}=t||{},l=`${i} ${r} ${n}`;return("text"===e?`${l} ${s}`:`${l} ${a} ${s} ${o?"inset":""}`)||"none"},getSpaceCSS=t=>{const{side:e=2,vertical:i="0px",horizontal:r="0px",top:n="0px",right:a="0px",bottom:s="0px",left:o="0px"}=t||{};return 2===e?`${i} ${r}`:`${n} ${a} ${s} ${o}`},getTypoCSS=(t,e,i=!0)=>{const{fontFamily:r="Default",fontCategory:n="sans-serif",fontVariant:a=400,fontWeight:s,isUploadFont:o=!0,fontSize:l={desktop:null,tablet:null,mobile:null},fontStyle:c,textTransform:d,textDecoration:u,lineHeight:p,letterSpace:g}=e||{},S=!i||!r||"Default"===r,M=l?.desktop||l,m=l?.tablet||M,h=l?.mobile||m,y=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},b=`\n\t\t${S?"":`font-family: '${r}', ${n};`}\n\t\t${isValidCSS("font-weight",s)}\n\t\t${isValidCSS("font-size",y(M))}\n\t\t${isValidCSS("font-style",c)}\n\t\t${isValidCSS("text-transform",d)}\n\t\t${isValidCSS("text-decoration",u)}\n\t\t${isValidCSS("line-height",p)}\n\t\t${isValidCSS("letter-spacing",g)}\n\t`,x=a&&400!==a?"400i"===a?":ital@1":a?.includes("00i")?`: ital, wght@1, ${a?.replace("00i","00")} `:`: wght@${a} `:"",w=S?"":`https://fonts.googleapis.com/css2?family=${r?.split(" ").join("+")}${x.replace(/ /g,"")}&display=swap`;return{googleFontLink:!o||S?"":`@import url(${w});`,styles:`${t}{\n\t\t\t${b}\n\t\t}\n\t\t${getCSS_tabBreakpoint} {\n\t\t\t${t}{\n\t\t\t\t${isValidCSS("font-size",y(m))}\n\t\t\t}\n\t\t}\n\t\t${getCSS_mobileBreakpoint} {\n\t\t\t${t}{\n\t\t\t\t${isValidCSS("font-size",y(h))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},getBoxCSS=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""},getGradientCSS=t=>{const{type:e="linear",radialType:i="ellipse",colors:r=[],centerPositions:n={x:0,y:0},angel:a=0}=t||{};if(isExist(t)){const t=r?.map((({color:t,position:e})=>`${t} ${e}%`)),s=`linear-gradient(${a}deg, ${t})`;return isValidCSS("background","radial"===e?`radial-gradient(${i} at ${n?.x}% ${n?.y}%,${t})`:s)}return""},getImagePosition=t=>{const{position:e="center center",xPosition:i=0,yPosition:r=0,attachment:n="",repeat:a="no-repeat",size:s="cover",customSize:o="0px"}=t||{},l=t=>"initial"!==t||isExist(t);return`\n\t\t${l(e)?`background-position: ${"custom"===e?`${i} ${r}`:e};`:""}\n\t\t${n&&l(n)?`background-attachment: ${n};`:""}\n\t\t${l(a)?`background-repeat: ${a};`:""}\n\t\t${l(s)?`background-size: ${"custom"===s?`${o} auto`:s};`:""}\n\t`},getImageCSS=(t={})=>t?{desktop:isExist(t.url)?`background-image: ${safeCSSUrl(t.url)}; ${getImagePosition(t?.desktop)}`:"",tablet:isExist(t.url)?getImagePosition(t?.tablet):"",mobile:isExist(t.url)?getImagePosition(t?.mobile):""}:"",getVideoCSS=(t,e)=>{const{url:i,loop:r}=t||{},n=document.querySelector(e),a=n?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!a&&n&&i){const t=sanitizeURL(i);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),n.appendChild(s)}}return s.loop=r,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}`},getAdvBGCSS=(t,e,i=!1)=>{const{type:r="color",color:n,gradient:a,img:s,video:o}=t||{},l="color"===r?isValidCSS("background",n):"gradient"===r?getGradientCSS(a):"image"===r?getImageCSS(s).desktop:"",c="image"===r?getImageCSS(s).tablet:"",d="image"===r?getImageCSS(s).mobile:"",u=i?`${e}:hover`:e;return`\n\t\t${"video"===r?getVideoCSS(o,e):""}\n\n\t\t${l?`${u}{\n\t\t\t${l}\n\t\t}`:""}\n\n\t\t${c?`${tabBreakpoint} {\n\t\t\t${u}{\n\t\t\t\t${c}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${d?`${mobileBreakpoint} {\n\t\t\t${u}{\n\t\t\t\t${d}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},getOverlayCSS=(t,e,i=!1)=>{const{isEnabled:r,colors:n,opacity:a=1,blend:s,filter:o="",blur:l=0,brightness:c=100,contrast:d=100,saturation:u=100,hue:p=0,position:g={top:0,right:0,bottom:0,left:0},zIndex:S=-1}=t||{},M=`${100!==c?`brightness(${c}%)`:""} ${100!==d?`contrast(${d}%)`:""} ${100!==u?`saturate(${u}%)`:""} ${0!==l?`blur(${l}px)`:""} ${0!==p?`hue-rotate(${p}deg)`:""}`,m=`${o}: ${o?M:""}; -webkit-${o}: ${o?M:""};`,h=i?`${e}:hover::after`:`${e}::after`;return r?`\n\t\t${e}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${e}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${isExist(g.top)?g.top:0};\n\t\t\tright:${isExist(g.right)?g.right:0};\n\t\t\tbottom:${isExist(g.bottom)?g.bottom:0};\n\t\t\tleft:${isExist(g.left)?g.left:0};\n\t\t\tz-index:${S};\n\t\t}\n\t\t${getAdvBGCSS(n,h,!1)}\n\t\t${h}{\n\t\t\t${isValidCSS("opacity",a)}\n\t\t\t${isValidCSS("mix-blend-mode",s)}\n\t\t\t${m}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},getTransformCSS=(t,e,i=!1)=>{const r=(t,e="desktop")=>{if(!isExist(t))return"";const{skew:i,scale:r,rotate:n,offset:a,flipX:s,flipY:o}=t,{threeDRotate:l}=n||{},{isProportion:c}=r||{},d=[];return isExist(i)&&(isExist(i?.[e]?.x)&&d.push(`skewX(${i[e].x}deg)`),isExist(i?.[e]?.y)&&d.push(`skewY(${i[e].y}deg)`)),c?isExist(r?.[e]?.scale)&&d.push(`scale(${r[e].scale})`):(isExist(r?.[e]?.x)&&d.push(`scaleX(${r[e].x})`),isExist(r?.[e]?.y)&&d.push(`scaleY(${r[e].y})`)),isExist(n)&&(isExist(n?.[e]?.z)&&d.push(`rotateZ(${n[e].z}deg)`),l&&(isExist(n?.[e]?.x)&&d.push(`rotateX(${n[e].x}deg)`),isExist(n?.[e]?.y)&&d.push(`rotateY(${n[e].y}deg)`))),isExist(a)&&(isExist(a?.[e]?.x)&&d.push(`translateX(${a[e].x})`),isExist(a?.[e]?.y)&&d.push(`translateY(${a[e].y})`)),isExist(s)&&d.push(s?"scaleX(-1)":""),isExist(o)&&d.push(o?"scaleY(-1)":""),0===d.length?"":isValidCSS("transform",d.join(" "))},n=i?`${e}:hover`:e;return`\n\t\t${n} {\n\t\t\t${r(t,"desktop")}\n\t\t}\n\t\t${tabBreakpoint}{\n\t\t\t${n} {\n\t\t\t\t${r(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${mobileBreakpoint}{\n\t\t\t${n} {\n\t\t\t\t${r(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},getMaskCSS=t=>{const{isMask:e=!1,shape:i={type:"circle"},size:r={type:"contain",scale:"100%"},position:n={type:"center center",x:50,y:50},repeat:a="no-repeat"}=t||{},s=[{svg:circle,type:"circle"},{svg:flower,type:"flower"},{svg:sketch,type:"sketch"},{svg:triangle,type:"triangle"},{svg:blob,type:"blob"},{svg:hexagon,type:"hexagon"}];return e?`-webkit-mask-image: ${"custom"===i.type?safeCSSUrl(i.url):`url(${(o=i.type,s.find((t=>t.type===o))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===r.type?r.scale:r.type};\n\t\t${"custom"===n.type?`${isValidCSS("-webkit-mask-position-x",n.x)}\n\t\t\t${isValidCSS("-webkit-mask-position-y",n.y)}`:`${isValidCSS("-webkit-mask-position",n.type)}`}\n\t\t${"cover"!==r.type?`-webkit-mask-repeat: ${a};`:""}`:"";var o},dimensionCSS=t=>{const{padding:e,margin:i,height:r,width:n}=t||{},a=(t,e)=>isValidCSS(t,e),s=(t,e,i)=>a(t,e?.[t]?.[i])+a(`min-${t}`,e?.min?.[i])+a(`max-${t}`,e?.max?.[i]),o=t=>isValidCSS("padding",getBoxCSS(t)),l=t=>isValidCSS("margin",getBoxCSS(t));return{desktop:o(e?.desktop)+l(i?.desktop)+s("height",r,"desktop")+s("width",n,"desktop"),tablet:o(e?.tablet)+l(i?.tablet)+s("height",r,"tablet")+s("width",n,"tablet"),mobile:o(e?.mobile)+l(i?.mobile)+s("height",r,"mobile")+s("width",n,"mobile")}},borderShadowCSS=t=>{const{normal:e,hover:i}=t||{},r=t=>{const{border:e,radius:i,shadow:r}=t||{},n=isValidCSS("border-radius",getBoxCSS(i)),a=isValidCSS("box-shadow",getMultiShadowCSS(r,"box"));return getBorderBoxCSS(e)+n+a};return{normal:r(e),hover:r(i)}},visibilityCSS=t=>{const{zIndex:e,overflow:i}=t||{},r=i?`overflow: ${i};`:"",n=t=>`${isValidCSS("z-index",e?.[t])} ${isValidCSS("position",isExist(e?.[t])?"relative":"")}`;return{desktop:n("desktop")+r,tablet:n("tablet"),mobile:n("mobile")}},responsiveCSS=(t,e)=>{const{desktop:i=!1,tablet:r=!1,mobile:n=!1}=t||{},a=e?"opacity: 0.5;":"display: none;",s=t=>t?a:"";return{desktop:s(i),tablet:s(r),mobile:s(n)}},transitionCSS=(t,e,i)=>{const{transition:r=.4}=t||{},{transition:n=.4}=e||{},{transition:a=200}=i||{};return`transition: background ${r}s, border ${n}s, border-radius ${n}s, box-shadow ${n}s, transform ${a}ms ease-in-out;`},animationFn=(t,e,i)=>{const r=i?`#${e} > div`:`#${e}`,n=document.querySelector(r);n&&t&&t.type&&(n.setAttribute("data-aos",t.type),n.setAttribute("data-aos-duration",1e3*t.duration||.4),n.setAttribute("data-aos-delay",1e3*t.delay||0),n.classList.contains("aos-init")||(n.classList.add("aos-init"),window?.AOS?.init()),i)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?n.classList.add("aos-animate"):n.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(n)},generateCSS=(t,e,i=!1,r=!0)=>{const{dimension:n,transform:a,background:s,borderShadow:o,mask:l,animation:c,visibility:d,responsive:u,css:p=""}=e||{},g=i?`#${t}>div>div${r?":first-child":""}`:`#${t}>div`;animationFn(c,t,i);const S=dimensionCSS(n).desktop+visibilityCSS(d).desktop+transitionCSS(s,o,a)+getMaskCSS(l),M=dimensionCSS(n).tablet+visibilityCSS(d).tablet+responsiveCSS(u,i).tablet,m=dimensionCSS(n).mobile+visibilityCSS(d).mobile+responsiveCSS(u,i).mobile,h=borderShadowCSS(o).normal,y=borderShadowCSS(o).hover,b=responsiveCSS(u,i).desktop;return`\n\t\t${S||h?`${g} {\n\t\t\t${S}\n\t\t\t${h}\n\t\t}`:""}\n\t\t${y?`${g}:hover {\n\t\t\t${y}\n\t\t}`:""}\n\n\t\t${b?`${deskBreakpoint} {\n\t\t\t${g}{\n\t\t\t\t${b}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M?`${tabBreakpoint} {\n\t\t\t${g}{\n\t\t\t\t${M}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${m?`${mobileBreakpoint} {\n\t\t\t${g}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${getAdvBGCSS(s?.normal,g)}\n\t\t${getAdvBGCSS(s?.hover,g,!0)}\n\t\t${getOverlayCSS(s?.overlay,g)}\n\t\t${getOverlayCSS(s?.hoverOverlay,g,!0)}\n\t\t${isExist(a?.normal)?getTransformCSS(a?.normal,g):""}\n\t\t${isExist(a?.hover)?getTransformCSS(a?.hover,g,!0):""}\n\n\t\t${p}\n\t`.replace(/\s+/g," ")},Advanced_generateCSS=generateCSS,external_ReactJSXRuntime_namespaceObject=window.ReactJSXRuntime,Style=({attributes:t,id:e,isBackend:i=!1})=>{const{advanced:r}=t;return(0,external_ReactJSXRuntime_namespaceObject.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${Advanced_generateCSS(e,r,i)}\n\t`}})},Common_Style=Style;var useRunJs=__webpack_require__(2343);const HTMLBlock=({attributes:t})=>{const{htmlCode:e}=t;return(0,useRunJs.I)(e,10),(0,external_ReactJSXRuntime_namespaceObject.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})},Frontend_HTMLBlock=HTMLBlock;document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-html").forEach((t=>{const e=JSON.parse(t.dataset.attributes);(0,external_ReactDOM_namespaceObject.createRoot)(t).render((0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment,{children:[(0,external_ReactJSXRuntime_namespaceObject.jsx)(Common_Style,{attributes:e,id:t.id}),(0,external_ReactJSXRuntime_namespaceObject.jsx)(Frontend_HTMLBlock,{attributes:e})]})),t?.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),i=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"),i=e.documentElement;return!i||"svg"!==i.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),i=await e.text();return this.sanitize(`${i}`)}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 i=e.name,n=i.toLowerCase(),o=e.value;if(this.options.removeEvents&&n.startsWith("on"))return void t.removeAttribute(i);if(this.options.removeExternalResources&&("href"===n||n.endsWith(":href"))&&!this.isAllowedUrl(o))return void t.removeAttribute(i);const r=n.replace("xlink:","");this.allowedAttributeSet.has(n)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(o)?t.removeAttribute(i):"style"===n&&this.options.sanitizeStyle&&t.setAttribute(i,this.sanitizeCss(o)):t.removeAttribute(i)}))}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)",o="@media only screen and (max-width: 1024px)",r="@media only screen and (max-width: 640px)",s=window.React,a=t=>{const e=i(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},l=(t,i)=>e(i)?`${t}: ${i};`:"",c=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:i="center center",xPosition:n=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(i)?`background-position: ${"custom"===i?`${n} ${o}`:i};`:""}\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`},d=(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,n,s=!1)=>{const{type:a="color",color:c,gradient:u,img:p,video:M}=t||{},m="color"===a?l("background",c):"gradient"===a?(t=>{const{type:i="linear",radialType:n="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 l("background","radial"===i?`radial-gradient(${n} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(u):"image"===a?d(p).desktop:"",y="image"===a?d(p).tablet:"",$="image"===a?d(p).mobile:"",h=s?`${n}:hover`:n;return`\n\t\t${"video"===a?((t,e)=>{const{url:n,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&&n){const t=i(n);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}`})(M,n):""}\n\n\t\t${m?`${h}{\n\t\t\t${m}\n\t\t}`:""}\n\n\t\t${y?`${o} {\n\t\t\t${h}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${$?`${r} {\n\t\t\t${h}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},M=(t,i,n=!1)=>{const{isEnabled:o,colors:r,opacity:s=1,blend:a,filter:c="",blur:u=0,brightness:d=100,contrast:M=100,saturation:m=100,hue:y=0,position:$={top:0,right:0,bottom:0,left:0},zIndex:h=-1}=t||{},b=`${100!==d?`brightness(${d}%)`:""} ${100!==M?`contrast(${M}%)`:""} ${100!==m?`saturate(${m}%)`:""} ${0!==u?`blur(${u}px)`:""} ${0!==y?`hue-rotate(${y}deg)`:""}`,g=`${c}: ${c?b:""}; -webkit-${c}: ${c?b:""};`,x=n?`${i}:hover::after`:`${i}::after`;return o?`\n\t\t${i}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${i}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${e($.top)?$.top:0};\n\t\t\tright:${e($.right)?$.right:0};\n\t\t\tbottom:${e($.bottom)?$.bottom:0};\n\t\t\tleft:${e($.left)?$.left:0};\n\t\t\tz-index:${h};\n\t\t}\n\t\t${p(r,x,!1)}\n\t\t${x}{\n\t\t\t${l("opacity",s)}\n\t\t\t${l("mix-blend-mode",a)}\n\t\t\t${g}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},m=(t,i,n=!1)=>{const s=(t,i="desktop")=>{if(!e(t))return"";const{skew:n,scale:o,rotate:r,offset:s,flipX:a,flipY:c}=t,{threeDRotate:u}=r||{},{isProportion:d}=o||{},p=[];return e(n)&&(e(n?.[i]?.x)&&p.push(`skewX(${n[i].x}deg)`),e(n?.[i]?.y)&&p.push(`skewY(${n[i].y}deg)`)),d?e(o?.[i]?.scale)&&p.push(`scale(${o[i].scale})`):(e(o?.[i]?.x)&&p.push(`scaleX(${o[i].x})`),e(o?.[i]?.y)&&p.push(`scaleY(${o[i].y})`)),e(r)&&(e(r?.[i]?.z)&&p.push(`rotateZ(${r[i].z}deg)`),u&&(e(r?.[i]?.x)&&p.push(`rotateX(${r[i].x}deg)`),e(r?.[i]?.y)&&p.push(`rotateY(${r[i].y}deg)`))),e(s)&&(e(s?.[i]?.x)&&p.push(`translateX(${s[i].x})`),e(s?.[i]?.y)&&p.push(`translateY(${s[i].y})`)),e(a)&&p.push(a?"scaleX(-1)":""),e(c)&&p.push(c?"scaleY(-1)":""), |
|
2
|
+0===p.length?"":l("transform",p.join(" "))},a=n?`${i}:hover`:i;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`},y=t=>{const{padding:e,margin:i,height:n,width:o}=t||{},r=(t,e)=>l(t,e),s=(t,e,i)=>r(t,e?.[t]?.[i])+r(`min-${t}`,e?.min?.[i])+r(`max-${t}`,e?.max?.[i]),a=t=>l("padding",c(t)),u=t=>l("margin",c(t));return{desktop:a(e?.desktop)+u(i?.desktop)+s("height",n,"desktop")+s("width",o,"desktop"),tablet:a(e?.tablet)+u(i?.tablet)+s("height",n,"tablet")+s("width",o,"tablet"),mobile:a(e?.mobile)+u(i?.mobile)+s("height",n,"mobile")+s("width",o,"mobile")}},$=t=>{const{normal:e,hover:i}=t||{},n=t=>{const{border:e,radius:i,shadow:n}=t||{},o=l("border-radius",c(i)),r=l("box-shadow",((t,e="box")=>{let i="";return t?.map(((n,o)=>{const{hOffset:r="0px",vOffset:s="0px",blur:a="0px",spreed:l="0px",color:c="#e7f0fe",isInset:u=!1}=n||{},d=u?"inset":"",p=`${r} ${s} ${a}`,M=o+1>=t.length?"":", ";i+="text"===e?`${p} ${c}${M}`:`${p} ${l} ${c} ${d}${M}`})),i||""})(n,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:i="solid",width:n="0px"}=t;return`${n} ${i} ${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((i=>t[i]?`border-${i}: ${e(t[i])};`:"")).join(" ").trim():l("border",e(t))})(e)+o+r};return{normal:n(e),hover:n(i)}},h=t=>{const{zIndex:i,overflow:n}=t||{},o=n?`overflow: ${n};`:"",r=t=>`${l("z-index",i?.[t])} ${l("position",e(i?.[t])?"relative":"")}`;return{desktop:r("desktop")+o,tablet:r("tablet"),mobile:r("mobile")}},b=(t,e)=>{const{desktop:i=!1,tablet:n=!1,mobile:o=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",s=t=>t?r:"";return{desktop:s(i),tablet:s(n),mobile:s(o)}},g=(t,i,s=!1,c=!0)=>{const{dimension:u,transform:d,background:g,borderShadow:x,mask:w,animation:j,visibility:N,responsive:f,position:L={},floating:D={},motion:v={},css:z=""}=i||{},k=s?`#${t}>div>div${c?":first-child":""}`:`#${t}>div`;((t,e,i)=>{const n=i?`#${e} > div`:`#${e}`,o=document.querySelector(n);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()),i)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?o.classList.add("aos-animate"):o.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(o)})(j,t,s);const T=y(u).desktop+h(N).desktop+((t,e,i)=>{const{transition:n=.4}=t||{},{transition:o=.4}=e||{},{transition:r=200}=i||{};return`transition: background ${n}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${r}ms ease-in-out;`})(g,x,d)+(t=>{const{isMask:e=!1,shape:i={type:"circle"},size:n={type:"contain",scale:"100%"},position:o={type:"center center",x:50,y:50},repeat:r="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===i.type?a(i.url):`url(${(s=i.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"===o.type?`${l("-webkit-mask-position-x",o.x)}\n\t\t\t${l("-webkit-mask-position-y",o.y)}`:`${l("-webkit-mask-position",o.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${r};`:""}`:"";var s})(w),I=y(u).tablet+h(N).tablet+b(f,s).tablet,S=y(u).mobile+h(N).mobile+b(f,s).mobile,A=$(x).normal,E=$(x).hover,O=b(f,s).desktop;return`\n\t\t${T||A?`${k} {\n\t\t\t${T}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${k}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${n} {\n\t\t\t${k}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${o} {\n\t\t\t${k}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${r} {\n\t\t\t${k}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${p(g?.normal,k)}\n\t\t${p(g?.hover,k,!0)}\n\t\t${M(g?.overlay,k)}\n\t\t${M(g?.hoverOverlay,k,!0)}\n\t\t${e(d?.normal)?m(d?.normal,k):""}\n\t\t${e(d?.hover)?m(d?.hover,k,!0):""}\n\t\t${((t,e)=>{const{desktop:i={},tablet:n={},mobile:s={}}=t,a=(t={})=>`\n\t\t${e}{\n\t\t\t${l("position",t?.type)}\n\t\t\t${l("left",t?.horizontal?.left)}\n\t\t\t${l("right",t?.horizontal?.right)}\n\t\t\t${l("top",t?.vertical?.top)}\n\t\t\t${l("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${i?.type?a(i):""}\n\t\t\n\t\t${o}{\n\t\t\t${n?.type?a(n):""}\n\t\t}\n\n\t\t${r}{\n\t\t\t${s?.type?a(s):""}\n\t\t}\n\t`})(L,k)}\n\t\t${((t,i,n="")=>{ |
|
3
|
+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((i=>e(o?.[i]?.[t])))?`${o?.x?.[t]||0}px ${o?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:r,value:t=>["x","y","z"].filter((i=>e(r?.[i]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${r[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:s,value:t=>{const i=s?.y?.[t],n=s?.z?.[t];return e(i)||e(n)?e(n)?`1 ${e(i)?i:1} ${n}`:`1 ${i}`:""}}].forEach((({name:t,property:e,values:i,value:o})=>{const r=o("from"),s=o("to");if(!r||!s)return;const a=Number(i?.duration)>0?Number(i.duration):1e3,u=Number(i?.delay)>0?Number(i.delay):0,d=`advFloat${t}${n?`-${n}`:""}`;l.push(`@keyframes ${d}{ from{ ${e}: ${r}; } to{ ${e}: ${s}; } }`),c.push(`${d} ${a}ms ease-in-out ${u}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${i}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(D,k,t)}\n\t\t${((t,i,s)=>{const{isEnable:a=!1,vertical:l={},horizontal:c={},transparency:u={},blur:d={},rotate:p={},scale:M={},effectsRelativeTo:m="viewport",effectOn:y=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:$=!1,mouseTrack:h={},tilt:b={},sticky:g={}}=t||{},x=(t,i)=>e(t)&&!isNaN(t)?Number(t):i,w="viewport"===m,j=w?"view()":"scroll(nearest block)",N=[],f=[],L=[],D=[],v=String(s??"").replace(/[^a-zA-Z0-9]/g,""),z=(t,e,i)=>{N.push(`@keyframes advMe${t}${v}{ ${e} }`),f.push(`advMe${t}${v}`),L.push(j),D.push((t=>{const e=x(t?.top,0),i=x(t?.bottom,100),n=Math.min(e,i),o=Math.max(e,i);return w?`cover ${n}% ${o>=90?"contain 100%":`cover ${o}%`}`:`min(${3*n}vh, ${n}%) min(${3*o}vh, ${o}%)`})(i))};if(a){const t=l?.direction,e=c?.direction,i=t?100*x(l?.speed,4):0,n=e?100*x(c?.speed,4):0;if(i||n){const o="up"===t?-i:i,r="to-left"===e?-n:n,s=[i&&l,n&&c].filter(Boolean);z("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=u?.direction;if(o){const t=Math.max(0,1-x(u?.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&&z("Opacity",e,u)}const r=d?.direction;if(r){const t=3*x(d?.level,4),e={"fade-in":`from{ filter: blur(${t}px); } to{ filter: blur(0px); }`,"fade-out":`from{ filter: blur(0px); } to{ filter: blur(${t}px); }`,"fade-out-in":`0%{ filter: blur(0px); } 50%{ filter: blur(${t}px); } 100%{ filter: blur(0px); }`,"fade-in-out":`0%{ filter: blur(${t}px); } 50%{ filter: blur(0px); } 100%{ filter: blur(${t}px); }`}[r];e&&z("Blur",e,d)}const s=p?.direction;if(s){const t=20*x(p?.level,4);z("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===s?-t:t}deg; }`,p)}if(M?.direction){const t=.15*x(M?.level,4),e=Math.max(0,1-t),i=1+t,n={"scale-up":`from{ scale: 1; } to{ scale: ${i}; }`,"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: ${i}; } 100%{ scale: 1; }`}[M.direction];n&&z("Scale",n,M)}}const k=[];if($){if(h?.direction){const t="direct"===h?.direction?100:-100;k.push(((e,i)=>`translate(${(e*t).toFixed(2)}px, ${(i*t).toFixed(2)}px)`))}if(b?.direction){const t=12*("direct"===b?.direction?1:-1);k.push(((e,i)=>`perspective(1000px) rotateX(${(i*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const T=(t,e,n)=>{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(i)||{x:0,y:0};if(s.rate=e,s.build=n,r.items.set(i,s),r.bound)return;r.bound=!0;const a=e=>{const i=r.last?Math.min(e-r.last,100):16.7;r.last=e;let n=!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*i/1e3,l=r.x-e.x,c=r.y-e.y,u=Math.sqrt(l*l+c*c);u<=a?(e.x=r.x,e.y=r.y):(e.x+=l/u*a,e.y+=c/u*a,n=!0),s.style.transform=e.build(e.x,e.y)})),r.frame=n?o.requestAnimationFrame(a):0,r.last=n?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(k.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*x(h?.speed,x(b?.speed,4))),e=(t,e)=>k.map((i=>i(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>g?.[t]||("desktop"===t?g?.undefined:""),S=i.split(">")[0],A=t=>{const e=I(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?I("desktop"):"mobile"===t?I("tablet")||I("desktop"):"")(t)?"position: static;":""},E=Array.isArray(y)?y:e(y)?[y]:[],O=t=>!E.length||E.includes(t)?"":`${i}{ animation-name: none; }`;return`\n\t\t${f.length?`\n\t\t${N.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${i}{\n\t\t\t\tanimation-name: ${f.join(", ")};\n\t\t\t\tanimation-duration: ${f.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${f.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${f.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${f.map((()=>w?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${L.join(", ")};\n\t\t\t\tanimation-range: ${D.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${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${k.length?`${i}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${S}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${o}{ ${S}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${r}{ ${S}{ ${A("mobile")} } }`:""}\n\t`})(v,k,t)}\n\t\t${z}\n\t`.replace(/\s+/g," ")},x=window.ReactJSXRuntime,w=({attributes:t,id:e,isBackend:i=!1})=>{const{advanced:n}=t;return(0,x.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${g(e,n,i)}\n\t`}})},j=/^(?:text|application)\/(?:x-)?(?:java|ecma)script$/i,N=({attributes:t})=>{const{htmlCode:e}=t,i=((t,e=300,i=!0)=>{const n=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const o=n?.current;if(!i||!t||!o)return;const r=[],s=setTimeout((()=>{o?.querySelectorAll("script")?.forEach((t=>{if(!(t=>{const e=(t||"").trim();return!e||"module"===e.toLowerCase()||j.test(e)})(t.getAttribute("type")))return;const e=document?.createElement("script");Array.from(t?.attributes)?.forEach((({name:t,value:i})=>e?.setAttribute(t,i))),t.src||(e.textContent=t?.textContent),t?.replaceWith(e),r.push(e)}))}),e);return()=>{clearTimeout(s),r?.forEach((t=>t?.remove()))}}),[t,e,i]),n})(e,10);return(0,x.jsx)("div",{ref:i,dangerouslySetInnerHTML:{__html:e}})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-html").forEach((e=>{const i=JSON.parse(e.dataset.attributes);(0,t.createRoot)(e).render((0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(w,{attributes:i,id:e.id}),(0,x.jsx)(N,{attributes:i})]})),e?.removeAttribute("data-attributes")}))}))})(); |