Plugin Directory

Changeset 3834201


Ignore:
Timestamp:
11/30/2026 05:14:07 AM (less than one hour ago)
Author:
safelayout
Message:

New version: 1.3.3

Location:
safelayout-brilliant-buttons
Files:
145 added
12 edited

Legend:

Unmodified
Added
Removed
  • safelayout-brilliant-buttons/trunk/assets/css/safelayout-brilliant-buttons-admin-feedback.css

    r3817539 r3834201  
    22* Safelayout Brilliant Buttons feedback Stylesheet
    33*
    4 * Version: 1.3.2
     4* Version: 1.3.3
    55*
    66* Table of Contents:
  • safelayout-brilliant-buttons/trunk/assets/css/safelayout-brilliant-buttons-admin.css

    r3817539 r3834201  
    22* Safelayout Brilliant Buttons Admin Stylesheet
    33*
    4 * Version: 1.3.2
     4* Version: 1.3.3
    55*
    66* Table of Contents:
  • safelayout-brilliant-buttons/trunk/build/button/block.json

    r3817539 r3834201  
    33  "apiVersion": 3,
    44  "name": "safelayout/safelayout-button",
    5   "version": "1.3.2",
     5  "version": "1.3.3",
    66  "title": "Button (Safelayout)",
    77  "category": "blocks-safelayout-category",
  • safelayout-brilliant-buttons/trunk/build/button/index.asset.php

    r3817539 r3834201  
    1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'd9b3c8c8b8f370b2a42f');
     1<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'c4bf0aea5b080c7004f5');
  • safelayout-brilliant-buttons/trunk/build/button/index.js

    r3817539 r3834201  
    1 (()=>{var t,o={429(t,o,e){"use strict";const l=window.wp.i18n,n=window.wp.blocks,a=window.wp.blockEditor,i=window.wp.element,s=window.wp.data;var r=e(452),b=e.n(r);const c=window.wp.components,u=window.React,d=window.wp.primitives,f=(0,u.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(d.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),p=(0,u.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(d.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,u.createElement)(d.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,u.createElement)(d.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),m=(0,u.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(d.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),g=(0,u.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(d.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),x=(0,u.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(d.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),h=(0,u.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(d.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),y=(0,u.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(d.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),k=window.ReactJSXRuntime,j=t=>t&&-1!=t.indexOf("gradient"),C=(t,o)=>Math.round(t*10**o)/10**o;function w(t){const{grad:o,id:e}=t;function l(t,o,e){var l=o.slice(e).search(/,|\)|\d/);","==o[e+l]?t.push(0):")"==o[e+l]&&t.push(1)}let n=[],a=[],i=[".","-","+","1","2","3","4","5","6","7","8","9","0"],s=o.indexOf("(")+1,r=0,b=s,c=o.length;for(;b<c;){if(s=1,"#"===o[b])n.push(o.substr(b,s=o.slice(b).search(/,|\)|\s/))),l(a,o,b+s);else if("r"===o[b]||"h"===o[b]||"v"===o[b])n.push(o.substr(b,s=o.indexOf(")",b)-b+1)),l(a,o,b+s);else if(-1!=i.indexOf(o[b])){let t=b+o.slice(b).search(/,|%|\)/),e=o.indexOf("deg",b);-1!=e&&(-1===t||e<t)?r=180-Number(o.substr(b,s=e-b)):a.push(o.substr(b,s=t-b)/100)}b+=s}r=-r*(Math.PI/180);const u=C(.5+.5*Math.sin(r),4),d=C(.5-.5*Math.cos(r),4),f=C(.5+.5*Math.sin(r+Math.PI),4),p=C(.5-.5*Math.cos(r+Math.PI),4);return"radial"===o.substr(0,6)?(0,k.jsx)(S,{id:e,colors:n,offsets:a,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,k.jsx)(M,{id:e,colors:n,offsets:a,x1:u,y1:d,x2:f,y2:p})}function S(t){const{colors:o,offsets:e,id:l,cx:n,cy:a,r:i,fx:s,fy:r}=t;return(0,k.jsx)("radialGradient",{id:l,cx:n,cy:a,r:i,fx:s,fy:r,children:(0,k.jsx)(N,{colors:o,offsets:e})})}function M(t){const{colors:o,offsets:e,id:l,x1:n,y1:a,x2:i,y2:s}=t;return(0,k.jsx)("linearGradient",{id:l,x1:n,y1:a,x2:i,y2:s,children:(0,k.jsx)(N,{colors:o,offsets:e})})}function N(t){const{colors:o,offsets:e}=t;return(0,k.jsx)(k.Fragment,{children:o.map((t,o)=>(0,k.jsx)("stop",{"stop-color":t,offset:e[o]},o))})}function v(t,o,e){return{textAlign:t||null,marginTop:o?.top||null,marginRight:o?.right||null,marginBottom:o?.bottom||null,marginLeft:o?.left||null,paddingTop:e?.top||null,paddingRight:e?.right||null,paddingBottom:e?.bottom||null,paddingLeft:e?.left||null}}function A({icon:t}){const o="path-sl-bb-button-block-list"+t.name?.replaceAll(" ","_"),e=t?.attributes?.color||["#5c5c5c"],l=t.paths,n="47px";return(0,k.jsx)("div",{style:{height:n,width:n},children:(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:o,children:l.map((t,o)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:e[t.color||0],d:t.d,style:t.style},o))}),(0,k.jsx)("use",{href:`#${o}`})]})})}function _({attributes:t,others:o}){const{blockId:e,iconColor:l,iconColorSlug:n,iconStrokeColor:a,iconStrokeColorSlug:i,iconStrokeWidth:s,iconPaths:r,iconAnimColor:b}=t,u=`fillGrad${e}`,d=`strokeGrad${e}`,f=l.map((t,o)=>j(t)?`url(#${u+o})`:""),p=a.map((t,o)=>j(t)?`url(#${d+o})`:"");return(0,k.jsxs)(c.SVG,{viewBox:"4 4 16 16",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsxs)("defs",{children:[f.map((t,o)=>""!=t&&(0,k.jsx)(w,{grad:l[o],id:u+o},o)),p.map((t,o)=>""!=t&&(0,k.jsx)(w,{grad:a[o],id:d+o},o)),j(b)&&(0,k.jsx)(w,{grad:b,id:`animGrad${e}`})]}),r.map((t,o)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:f[t.color||0]||(n&&n[t.color||0]&&""!=n[t.color||0]?`var( --wp--preset--${n[t.color||0]}, ${l[t.color||0]})`:l[t.color||0]),stroke:p[t.strokeColor||0]||(i&&i[t.strokeColor||0]&&""!=i[t.strokeColor||0]?`var( --wp--preset--${i[t.strokeColor||0]}, ${a[t.strokeColor||0]})`:a[t.strokeColor||0]),strokeWidth:s[t.strokeWidth||0],d:t.d,style:t.style},o))]})}function I({attributes:t,others:o}){const{blockId:e,iconColor:l,iconStrokeColor:n,iconStrokeWidth:a,iconPaths:i,iconAnimColor:s}=t,r=`path${e}`,b=`fillGrad${e}`,u=`strokeGrad${e}`,d=l.map((t,o)=>j(t)?`url(#${b+o})`:""),f=n.map((t,o)=>j(t)?`url(#${u+o})`:"");return(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsxs)("defs",{children:[d.map((t,o)=>""!=t&&(0,k.jsx)(w,{grad:l[o],id:b+o},o)),f.map((t,o)=>""!=t&&(0,k.jsx)(w,{grad:n[o],id:u+o},o)),j(s)&&(0,k.jsx)(w,{grad:s,id:`animGrad${e}`})]}),(0,k.jsx)("symbol",{x:"-24",y:"-24",width:"144",height:"144",viewBox:"0 0 24 24",id:r,children:i.map((t,o)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:d[t.color||0]||l[t.color||0],stroke:f[t.strokeColor||0]||n[t.strokeColor||0],strokeWidth:a[t.strokeWidth||0],d:t.d,style:t.style},o))}),!0!==o?.d1?(0,k.jsx)("use",{href:`#${r}`}):(0,k.jsx)("use",{xlinkHref:`#${r}`})]})}const T=e.p+"images/gradients.3ad8dc67.png",z=({colorValue:t,label:o})=>(0,k.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,k.jsx)(c.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:t}),(0,k.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:o,children:o})]}),L=t=>({onToggle:o,isOpen:e})=>{const{colorValue:l,label:n,disabled:a}=t,i={onClick:o,className:b()("block-editor-panel-color-gradient-settings__dropdown","sl-bb-button-block-no-padding-left-right",{"is-open":e}),"aria-expanded":e};return(0,k.jsx)(c.Button,{...i,disabled:a,children:(0,k.jsx)(z,{colorValue:l,label:n})})};function D({settings:t,label:o,disabled:e,position:l}){const n={colorValue:t.gradientValue??t.colorValue,label:o,disabled:e};return(0,k.jsx)(c.Dropdown,{popoverProps:{placement:l?.pos||"left-start",offset:l?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:L(n),renderContent:()=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:b()("block-editor-panel-color-gradient-settings__dropdown-content","sl-bb-button-block-pallet-container"),style:{[`--sl-bb-active-slug-${t?.selectedSlug}`]:"2px solid #3858e9"},children:(0,k.jsx)(U,{...t})})})})}const E={name:"color",title:(0,l.__)("Solid","safelayout-brilliant-buttons"),value:"color"},P={name:"gradient",title:(0,l.__)("Gradient","safelayout-brilliant-buttons"),value:"gradient"},O=[E,P];function B(t,o){const e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",e.style.width="0px",e.style.height="0px",e.style.visibility="hidden",e.style.overflow="hidden",e.style[t]=o,document.body.appendChild(e);const l=window.getComputedStyle(e)[t];return document.body.removeChild(e),"rgba(0,0,0,0)"===l.replace(/\s+/g,"")?"":l}function R(t){return!t||t?.legend<=0?t:t.map(t=>{const o={...t},e=B("backgroundImage",t?.gradient);return e&&"none"!==e?(o.gradient=function(t){if(!t||"string"!=typeof t)return t;const o={"to top":"0deg","to top right":"45deg","to right top":"45deg","to right":"90deg","to bottom right":"135deg","to right bottom":"135deg","to bottom":"180deg","to bottom left":"225deg","to left bottom":"225deg","to left":"270deg","to top left":"315deg","to left top":"315deg"};return t.replace(/linear-gradient\s*\(\s*([^,]+)/i,(t,e)=>{const l=e.trim().toLowerCase();return`linear-gradient(${o[l]??e}`})}((l=e)&&"string"==typeof l?l.replace(/radial-gradient\s*\(\s*([^,]+)\s*,\s*/i,(t,o)=>/^(#|rgb|hsl|var)/i.test(o.trim())?t:"radial-gradient("):l),o):null;var l})}const Y=(0,i.memo)(function({colors:t,onClick:o,img:e,tab:n}){let i=[],s=[],r=[];if("COLOR"===n){const t=(0,a.useSettings)("color.palette.theme")[0]||window?.slbbColorData?.color?.theme||[];s=(0,a.useSettings)("color.palette.default")[0]||window?.slbbColorData?.color?.default||[],r=(0,a.useSettings)("color.palette.custom")[0]||window?.slbbColorData?.color?.custom||[];const o=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/,e=/^(rgb|hsl)a?\(.+?\)$/i;i=t.map(t=>{const l={...t};let n=l.color?l.color.trim():"";if(!n)return null;if(n.startsWith("var(")){const t=B("backgroundColor",n);if(!t||"none"===t)return null;n=t}return o.test(n)||e.test(n)?(l.color=n,l):null}).filter(t=>null!==t),i?.length>0&&(i.push({name:"Current Color",slug:"currentColor",color:"currentColor"}),i.push({name:"Inherit",slug:"Inherit",color:"inherit"}))}else i=(R((0,a.useSettings)("color.gradients.theme")[0]||window?.slbbColorData?.gradient?.theme)||[]).filter(t=>null!==t),s=(R((0,a.useSettings)("color.gradients.default")[0]||window?.slbbColorData?.gradient?.default)||[]).filter(t=>null!==t),r=(R((0,a.useSettings)("color.gradients.custom")[0]||window?.slbbColorData?.gradient?.custom)||[]).filter(t=>null!==t);let u=i&&i?.length>0?(0,l.__)("Theme","safelayout-brilliant-buttons"):"";u=r&&r?.length>0?i&&i?.length>0?(0,l.__)("Theme & Custom","safelayout-brilliant-buttons"):(0,l.__)("Custom","safelayout-brilliant-buttons"):u;const d="COLOR"===n?"color--":"gradient--";return(0,k.jsxs)(k.Fragment,{children:[(i&&i?.length>0||r&&r?.length>0)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.BaseControl.VisualLabel,{style:{margin:"10px 0 0"},children:u}),(0,k.jsxs)("div",{className:b()("sl-bb-button-block-color-gradient-container","sl-bb-button-block-color-gradient-container-theme"),style:{height:"auto",maxHeight:"66px"},children:[i.map((t,e)=>(0,k.jsx)("span",{onClick:o,title:t?.slug,"data-slug":d+t?.slug,style:{background:"COLOR"===n?t?.color:t?.gradient,outline:`var(--sl-bb-active-slug-${d+t?.slug}, initial)`}},e)),i&&i?.length>0&&r&&r?.length>0&&(0,k.jsx)("br",{}),r.map((t,e)=>(0,k.jsx)("span",{onClick:o,title:t?.slug,"data-slug":d+t?.slug,style:{background:"COLOR"===n?t?.color:t?.gradient,outline:`var(--sl-bb-active-slug-${d+t?.slug}, initial)`}},e))]})]}),(0,k.jsx)(c.BaseControl.VisualLabel,{style:{margin:"15px 0 0"},children:(0,l.__)("Default","safelayout-brilliant-buttons")}),(0,k.jsxs)("div",{className:"sl-bb-button-block-color-gradient-container",children:[s.map((t,e)=>(0,k.jsx)("span",{onClick:o,title:t?.slug,"data-slug":d+t?.slug,style:{background:"COLOR"===n?t?.color:t?.gradient}},e)),s&&s?.length>0&&(0,k.jsx)("br",{}),t.map((t,e)=>(0,k.jsx)("span",{onClick:o,title:"COLOR"===n?t:null,style:{background:t}},e)),e&&(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:T})]})]})},(t,o)=>t.tab===o.tab);function U({__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,className:e,label:l,onlySolid:n,selectedSlug:a,onColorChange:i,onColorArrayClick:s,onGradientChange:r,onGradientArrayClick:u,colorValue:d,gradientValue:f,clearable:p,showTitle:m=!1,enableAlpha:g,headingLevel:x}){let h=[];a&&(a=a?.replace(/^(color--|gradient--)/,""),h=[{name:a,slug:a,color:d}]);const y={[E.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.ColorPalette,{value:d,selectedSlug:a,onChange:t=>i(t),__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,clearable:p,enableAlpha:g,colors:h,headingLevel:x}),(0,k.jsx)(Y,{colors:H,onClick:s,tab:"COLOR"})]}),[P.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.GradientPicker,{__nextHasNoMargin:!0,value:j(f)?f:`linear-gradient(${f} 0%, ${f} 100%)`,onChange:t=>r(t),__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,clearable:p,enableAlpha:g,gradients:[],headingLevel:x}),(0,k.jsx)(Y,{colors:X,onClick:u,img:!0,tab:"GRADIENT"})]})};return(0,k.jsx)(c.BaseControl,{__nextHasNoMarginBottom:!0,className:b()("block-editor-color-gradient-control",e),children:(0,k.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,k.jsxs)(c.__experimentalVStack,{spacing:1,children:[m&&(0,k.jsx)("legend",{children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,k.jsx)(c.BaseControl.VisualLabel,{children:l})})}),(0,k.jsx)(c.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:n?[E]:O,initialTabName:j(f)?P.value:E.value,children:t=>{return o=t.value,(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:y[o]});var o}})]})})})}function G(t){const{attribute:o,label:e,onlySolid:l,change:n,click:a,disabled:i,position:s,selectedSlug:r}=t;return(0,k.jsx)(D,{settings:{onlySolid:l,selectedSlug:r,enableAlpha:!0,clearable:!1,colorValue:o,gradientValue:o,onColorChange:n,onGradientChange:n,onColorArrayClick:a,onGradientArrayClick:a,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:e,disabled:i,position:s})}const H=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],X=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],W={rotate:0,clickEffect:"effect001"};let F=[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],V=[{d:"M6.46 6.605 7 8.905l-.54 2.29 2.01 1.24L9.7 14.445l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L17 8.905l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C9.79 12.945 8 11.155 8 8.935c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C10.33 11.945 9 10.605 9 8.945c0-1.65 1.33-3 2.99-3S15 7.295 15 8.945c0 1.66-1.35 3-3.01 3zm3.84 1.1-1.28 2.24-2.08-.47L15 20.645l1.4-2.2h2.5zm-7.7.07 1.25 2.25 2.13-.51L9 20.645 7.6 18.445H5.1z"}],Z=[{d:"M8 14.5h9c.55 0 1 .45 1 1s-.45 1-1 1H7c-.55 0-1-.45-1-1V5.5H4c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H8v1zm-.5 3c.83 0 1.5.67 1.5 1.5S8.33 20.5 7.5 20.5 6 19.83 6 19 6.67 17.5 7.5 17.5zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"}],Q=[{d:"M18.125 10.367C17.558 7.492 15.033 5.333 12 5.333 9.592 5.333 7.5 6.7 6.458 8.7 3.95 8.967 2 11.092 2 13.667c0 2.758 2.242 5 5 5h10.833c2.3 0 4.167-1.867 4.167-4.167 0-2.2-1.708-3.983-3.875-4.133zM17.833 17H7c-1.842 0-3.333-1.492-3.333-3.333 0-1.708 1.275-3.133 2.967-3.308l.892-.092.417-.792C8.733 7.95 10.283 7 12 7c2.183 0 4.067 1.55 4.492 3.692l.25 1.25 1.275.092c1.3.083 2.317 1.175 2.317 2.467 0 1.375-1.125 2.5-2.5 2.5zm-4.625-6.667h-2.417v2.5H8.667l3.333 3.333 3.333-3.333h-2.125z"}];const $={top:"5px",right:"5px",bottom:"5px",left:"5px"};function J(t){return{hasBgShadow:!0,bgShadow:t}}function q(t){return{hasTextShadow:!0,textShadow:t}}const K=t=>et.find(({name:o})=>o===t)||null,tt=t=>it.find(({name:o})=>o===t)||null,ot=()=>({...W,borderRadius:$}),et=[{name:"No Effect",attributes:{...W,hasBgShadow:!1,hasTextShadow:!1,hasIconShadow:!1,hasSubTextShadow:!1,bgPattern:"No Pattern"}},{name:"effect001",attributes:{...W,border:{color:"#5C5CFF",style:"solid",width:"1px"},borderRadius:{top:"50px",right:"50px",bottom:"50px",left:"50px"},hasBgShadow:!1,clickEffect:"effect005"},attribHelp:{hasBg:!1,slbbAnim:"border-color",animColor:"#0000ff"}},{name:"effect002",attributes:{...ot(),...J("0px 1px 1px #000000CF"),clickEffect:"effect004",clickEffectColor:"#f00"},attribHelp:{slbbAnim:"swap-color"}},{name:"effect003",attributes:{...ot(),...J("0px 1px 7px #000"),bgPattern:"pattern002",patternOpacity:.3,clickEffect:"effect003"},attribHelp:{slbbAnim:"slide-bottom",animColor:"#fff"}},{name:"effect004",attributes:{...ot(),...J("0px 1px 2px #000")},attribHelp:{...q("1px 1px 1px #fff"),slbbAnim:"shadow"}},{name:"effect005",attributes:{...ot(),...J("0px 0px 2px #000")},attribHelp:{...q("1px 1px 1px #fff"),slbbAnim:"background-color",animColor:"#ff3"}},{name:"effect006",attributes:{...ot(),borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},...J("0px 1px 2px #202020"),clickEffect:"effect005"},attribHelp:{...q("1px 1px 1px #fff"),slbbAnim:"split-vertical",animColor:"#FFFFCC"}},{name:"effect007",attributes:{...ot(),borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},...J("0px 0px 2px #202020"),bgPattern:"pattern001",patternOpacity:.15,clickEffect:"effect004"},attribHelp:{...q("1px 1px 1px #fff"),slbbAnim:"light1"}}],lt={control:!0,solid:!1,child:1,controlSTColor:!0,labelTwo:(0,l.__)("Animation Text color","safelayout-brilliant-buttons"),solidTwo:!0},nt=[{name:"No Animation"},{name:"light",child:1},{name:"light1",child:1},{name:"swap-color"},{name:"background-color",control:!0,label:(0,l.__)("Animation Background color","safelayout-brilliant-buttons"),solid:!1},{name:"text-color",control:!0,label:(0,l.__)("Animation Text color","safelayout-brilliant-buttons"),solid:!0},{name:"background-and-text-color",control:!0,label:(0,l.__)("Animation Background color","safelayout-brilliant-buttons"),solid:!1,controlTwo:!0,labelTwo:(0,l.__)("Animation Text color","safelayout-brilliant-buttons"),solidTwo:!0},{name:"border-color",control:!0,label:(0,l.__)("Animation Border color","safelayout-brilliant-buttons"),solid:!0},{name:"text-and-border-color",control:!0,label:(0,l.__)("Animation Text and Border color","safelayout-brilliant-buttons"),solid:!0},{name:"split-horizontal",label:(0,l.__)("Animation Split color","safelayout-brilliant-buttons"),...lt},{name:"split-vertical",label:(0,l.__)("Animation Split color","safelayout-brilliant-buttons"),...lt},{name:"stretch-horizontal",label:(0,l.__)("Animation Stretch color","safelayout-brilliant-buttons"),...lt},{name:"stretch-vertical",label:(0,l.__)("Animation Stretch color","safelayout-brilliant-buttons"),...lt},{name:"stretch-corner1",label:(0,l.__)("Animation Stretch color","safelayout-brilliant-buttons"),...lt},{name:"stretch-corner2",label:(0,l.__)("Animation Stretch color","safelayout-brilliant-buttons"),...lt},{name:"slide-top",label:(0,l.__)("Animation Slide color","safelayout-brilliant-buttons"),...lt},{name:"slide-bottom",label:(0,l.__)("Animation Slide color","safelayout-brilliant-buttons"),...lt},{name:"slide-left",label:(0,l.__)("Animation Slide color","safelayout-brilliant-buttons"),...lt},{name:"slide-right",label:(0,l.__)("Animation Slide color","safelayout-brilliant-buttons"),...lt},{name:"ellipse",label:(0,l.__)("Animation Ellipse color","safelayout-brilliant-buttons"),...lt},{name:"rect",label:(0,l.__)("Animation Rect color","safelayout-brilliant-buttons"),...lt},{name:"letter-space"},{name:"brighten"},{name:"darken"},{name:"grayscale"},{name:"sepia"},{name:"opacity"},{name:"shadow"},{name:"yellow-glow"},{name:"red-glow"},{name:"blue-glow"},{name:"violet-glow"},{name:"zoom-in"},{name:"zoom-out"},{name:"push",parent:"sl-bb-button-block-animation-push-parent"},{name:"move-up"},{name:"move-down"},{name:"swing-3D-X",parent:"sl-bb-button-block-animation-swing-3D-parent"},{name:"swing-3D-Y",parent:"sl-bb-button-block-animation-swing-3D-parent"},{name:"swing"},{name:"bell"},{name:"tremble"},{name:"surprise"},{name:"jelly"},{name:"expand"},{name:"wobble"}],at=[{name:"No Animation"},{name:"fill-color",control:!0,label:(0,l.__)("Animation fill color","safelayout-brilliant-buttons")},{name:"shape-color",control:!0,label:(0,l.__)("Animation shape color","safelayout-brilliant-buttons")},{name:"fill-and-shape-color",control:!0,label:(0,l.__)("Animation fill color","safelayout-brilliant-buttons"),controlTwo:!0,labelTwo:(0,l.__)("Animation shape color","safelayout-brilliant-buttons")},{name:"yoyo-X",iconPaths:F},{name:"yoyo-Y",iconPaths:[{d:"M11.4 20.2 6.06 14.77 8.12 14.77C8.73 14.77 9.06 14.39 9.06 13.83L9.06 4.08 13.74 4.08 13.74 13.83C13.74 14.39 14.07 14.77 14.68 14.77L16.74 14.77Z"}]},{name:"rotate-X",iconPaths:F},{name:"rotate-Y",iconPaths:[{d:"M16.626 6.408l1.608 1.128-6.972 10.056H9.654L5.766 12.144l1.608-1.5 3.084 2.88z"}]},{name:"rotate-Z",iconPaths:[{d:"M12.2 5.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L6.95 7.66C8.23 6.2 10.11 5.28 12.2 5.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H2.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H7.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}]},{name:"swing"},{name:"bell"},{name:"tremble"},{name:"surprise"},{name:"jelly"},{name:"expand"},{name:"wobble"},{name:"brighten"},{name:"darken"},{name:"grayscale"},{name:"sepia"},{name:"opacity"},{name:"yellow-glow"},{name:"red-glow"},{name:"blue-glow"},{name:"violet-glow"}],it=[{name:"No Shape"},{name:"shape001"},{name:"shape002"},{name:"shape003"}],st=["No Effect","effect001","effect002","effect003","effect004","effect005"],rt=["No Effect","effect001","effect002","effect003","effect004","effect005","effect006","effect007"],bt=["No Pattern","pattern001","pattern002","pattern003","pattern004","pattern005"],ct=["not use","",".sl-bb-button-block-effect002 .sl-bb-button-effect{background-image:radial-gradient(115% 100% at 50% 0, #fff 5%, #ffffff4d 40%, #00000073 100%);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}","",".sl-bb-button-block-effect004 .sl-bb-button-effect{background-image:linear-gradient(#ffffff4d, #0003 50%, #00000073 50.1%, #0000001a);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect005 .sl-bb-button-effect{background-image:linear-gradient(#ffffff4d, #ffffff12 50%, #0000001f 50.1%, #00000059);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect006 .sl-bb-button-effect{background-image:linear-gradient(-180deg, rgba(255, 126, 49, .07), rgba(230, 44, 3, .55));background-position-y:.8em;background-repeat:no-repeat;border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect007 .sl-bb-button-effect{border-radius:inherit;box-shadow:inset 0 -20px 20px -20px rgba(27, 27, 27, .4);box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}"],ut=".sl-bb-button-block-loading{animation:sl-bb-button-block-loading-anim 1.1s linear infinite;aspect-ratio:1/1;background-blend-mode:difference;background-color:var(--sl-bb-button-text-color);background-repeat:no-repeat;display:none;height:1em;pointer-events:none;width:1em}@keyframes sl-bb-button-block-loading-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}",dt=["not use",ut+".sl-bb-button-block-loading-effect001{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAzOSI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJzbC1iYi1ncmFkaWVudDAxIiB4MT0iNTAlIiB5MT0iMCUiIHgyPSI1MCUiIHkyPSIxMDAlIj48c3RvcCBzdG9wLWNvbG9yPSIlMjNmZmYiIG9mZnNldD0iMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agc3RvcC1jb2xvcj0iJTIzZmZmIiBvZmZzZXQ9IjEiIHN0b3Atb3BhY2l0eT0iMC40Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InNsLWJiLWdyYWRpZW50MDIiIHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiPjxzdG9wIHN0b3AtY29sb3I9IiUyM2ZmZiIgb2Zmc2V0PSIwIiBzdG9wLW9wYWNpdHk9IjAuMSIvPjxzdG9wIHN0b3AtY29sb3I9IiUyM2ZmZiIgb2Zmc2V0PSIxIiBzdG9wLW9wYWNpdHk9IjAuNCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZS13aWR0aD0iNXB4IiBzdHJva2U9InVybCgjc2wtYmItZ3JhZGllbnQwMSkiIGQ9Ik0xOS41IDM2LjQ1IEMxMC4xIDM2LjQ1IDIuNSAyOC44NSAyLjUgMTkuNSBDMi41IDEwLjEgMTAuMSAyLjUgMTkuNSAyLjUiLz48cGF0aCBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjVweCIgc3Ryb2tlPSJ1cmwoI3NsLWJiLWdyYWRpZW50MDIpIiBkPSIgTTE5LjUgMi40NSBDMjguOSAyLjQ1IDM2LjQ1IDEwLjEgMzYuNDUgMTkuNDUgQzM2LjQ1IDI4Ljg1IDI4LjkgMzYuNCAxOS41IDM2LjQiLz48L3N2Zz4=)}",ut+".sl-bb-button-block-loading-effect002{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTEyIDJjLTUuNDQ0IDAtOS44NzIgNC4zNTEtOS45OTcgOS43NjUuMTE2LTQuNzI0IDMuNzA4LTguNTE1IDguMTIyLTguNTE1IDQuNDg3IDAgOC4xMjUgMy45MTggOC4xMjUgOC43NSAwIDEuMDM2LjgzOSAxLjg3NSAxLjg3NSAxLjg3NXMxLjg3NS0uODM5IDEuODc1LTEuODc1YzAtNS41MjMtNC40NzctMTAtMTAtMTB6TTEyIDIyYzUuNDQ0IDAgOS44NzItNC4zNTEgOS45OTctOS43NjUtLjExNiA0LjcyNC0zLjcwOCA4LjUxNS04LjEyMiA4LjUxNS00LjQ4NyAwLTguMTI1LTMuOTE4LTguMTI1LTguNzUgMC0xLjAzNi0uODM5LTEuODc1LTEuODc1LTEuODc1cy0xLjg3NS44MzktMS44NzUgMS44NzVjMCA1LjUyMyA0LjQ3NyAxMCAxMCAxMHoiPjwvcGF0aD48L3N2Zz4=)}",ut+".sl-bb-button-block-loading-effect003{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMuNSAzLjUgMTcgMTciPjxwYXRoIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiIGQ9Ik0xMiAzLjY2N2MtLjQ2IDAtLjgzMy4zNzMtLjgzMy44MzN2MCAxLjY2N2MwIC40Ni4zNzMgLjgzMy44MzMgLjgzM3MuODMzLS4zNzMuODMzLS44MzN2MC0xLjY2N2MwLS40Ni0uMzczLS44MzMtLjgzMy0uODMzdjB6TTE5LjUgMTEuMTY3aC0xLjY2N2MtLjQ2IDAtLjgzMy4zNzMtLjgzMy44MzNzLjM3My44MzMgLjgzMy44MzN2MGgxLjY2N2MuNDYgMCAuODMzLS4zNzMuODMzLS44MzNzLS4zNzMtLjgzMy0uODMzLS44MzN2MHpNNyAxMmMwLS40Ni0uMzczLS44MzMtLjgzMy0uODMzdjBoLTEuNjY3Yy0uNDYgMC0uODMzLjM3My0uODMzLjgzM3MuMzczLjgzMyAuODMzLjgzM3YwaDEuNjY3Yy40NiAwIC44MzMtLjM3My44MzMtLjgzM3Ywek03LjE4MyA2LjE2N2MtLjE1MS0uMTQzLS4zNTUtLjIzLS41NzktLjIzLS40NjYgMC0uODQzLjM3Ny0uODQzLjg0MyAwIC4yNDEuMTAxIC40NTguMjYzIC42MTJsMCAwIDEuMiAxLjE1OGMuMTUuMTQ1IC4zNTQuMjM0IC41NzkuMjM0IC4wMSAwIC4wMjEgMCAuMDMxLS4wMDFsLS4wMDEgMGMuMjM2LS4wMDEuNDQ5LS4xLjYtLjI1OGwwIDBjLjE1LS4xNTEuMjQyLS4zNTguMjQyLS41ODhzLS4wOTMtLjQzNy0uMjQyLS41ODhsMCAwek0xNi4xNjcgOC43ODNjLjIyNC0uMDAxLjQyNi0uMDkuNTc1LS4yMzRsMCAwIDEuMi0xLjE1OGMuMTQzLS4xNDkuMjMxLS4zNTIuMjMxLS41NzYgMC0uNDYtLjM3My0uODMzLS44MzMtLjgzMy0uMTk5IDAtLjM4MS4wNy0uNTI1LjE4NmwuMDAyLS4wMDEtMS4yIDEuMTgzYy0uMTUuMTUxLS4yNDIuMzU4LS4yNDIuNTg4cy4wOTMuNDM3IC4yNDIuNTg4bDAgMGMuMTQuMTQ3IC4zMzIuMjQ0IC41NDcuMjU4bC4wMDMgMHpNMTIgMTdjLS40NiAwLS44MzMuMzczLS44MzMuODMzdjAgMS42NjdjMCAuNDYuMzczIC44MzMuODMzIC44MzNzLjgzMy0uMzczLjgzMy0uODMzdjAtMS42NjdjMC0uNDYtLjM3My0uODMzLS44MzMtLjgzM3Ywek0xNi43NzUgMTUuNDVjLS4xNS0uMTQ1LS4zNTQtLjIzNC0uNTc5LS4yMzQtLjQ2MSAwLS44MzQuMzczLS44MzQuODM0IDAgLjIzNS4wOTggLjQ0OC4yNTUgLjZsMCAwIDEuMiAxLjE4M2MuMTQ5LjE0NCAuMzUxLjIzMiAuNTc1LjIzM2gwYy4wMDEgMCAuMDAzIDAgLjAwNSAwIC4yMzMgMCAuNDQ0LS4wOTYuNTk1LS4yNWwwIDBjLjE1Mi0uMTUxLjI0Ny0uMzYuMjQ3LS41OTJzLS4wOTQtLjQ0MS0uMjQ2LS41OTJsMCAwek03LjIyNSAxNS40NWwtMS4yIDEuMTU4Yy0uMTUyLjE1MS0uMjQ3LjM2LS4yNDcuNTkycy4wOTQuNDQxIC4yNDYuNTkybDAgMGMuMTUxLjE1NCAuMzYyLjI1IC41OTUuMjUgLjAwMiAwIC4wMDMgMCAuMDA1IDBoMGMuMDAyIDAgLjAwNSAwIC4wMDcgMCAuMjEyIDAgLjQwNS0uMDc5LjU1Mi0uMjA5bC0uMDAxLjAwMSAxLjItMS4xNThjLjE1Ny0uMTUyLjI1NS0uMzY1LjI1NS0uNiAwLS40NjEtLjM3My0uODM0LS44MzQtLjgzNC0uMjI1IDAtLjQyOS4wODktLjU3OS4yMzRsMCAweiI+PC9wYXRoPjwvc3ZnPg==)}",ut+".sl-bb-button-block-loading-effect004{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTEzLjg3NSAzLjg3NUMxMy44NzUgMS4zNzUgMTAuMTI1IDEuMzc1IDEwLjEyNSAzLjg3NSAxMC4xMjUgNi4zNzUgMTMuODc1IDYuMzc1IDEzLjg3NSAzLjg3NVpNMTMuODc1IDIwLjEyNUMxMy44NzUgMTcuNjI1IDEwLjEyNSAxNy42MjUgMTAuMTI1IDIwLjEyNSAxMC4xMjUgMjIuNjI1IDEzLjg3NSAyMi42MjUgMTMuODc1IDIwLjEyNVpNMy44NzUgMTMuODc1QzYuMzc1IDEzLjg3NSA2LjM3NSAxMC4xMjUgMy44NzUgMTAuMTI1IDEuMzc1IDEwLjEyNSAxLjM3NSAxMy44NzUgMy44NzUgMTMuODc1Wk0yMiAxMkMyMiA5LjUgMTguMjUgOS41IDE4LjI1IDEyIDE4LjI1IDE0LjUgMjIgMTQuNSAyMiAxMlpNNy41ODIgMTkuMDdDOS40MjQgMTcuMzAyIDYuNjk3IDE0LjU3NSA0LjkyOSAxNi40MTggMy4wODcgMTguMTg2IDUuODE0IDIwLjkxMyA3LjU4MiAxOS4wN1pNNy41ODIgNy41NzhDOS40NTQgNS44MSA2LjY5MyAzLjA1NSA0LjkyOSA0LjkzIDMuMTYxIDYuNjk4IDUuODEzIDkuMzUgNy41ODEgNy41ODJaTTE2LjQxOCAxOS4wN0MxOC4xODYgMjAuODM4IDIwLjgzOCAxOC4xODYgMTkuMDcgMTYuNDE4IDE3LjMwMiAxNC42NSAxNC42NSAxNy4zMDIgMTYuNDE4IDE5LjA3Wk0xOC45NjYgNy41NzhDMjAuODM3IDUuODEgMTguMDc3IDMuMDU1IDE2LjMxMyA0LjkzIDE0LjU0NSA2LjY5OCAxNy4xOTcgOS4zNSAxOC45NjUgNy41ODJaIj48L3BhdGg+PC9zdmc+)}",ut+".sl-bb-button-block-loading-effect005{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTExLjk5MiAyMi4wNjFDMTcuNTE3IDIyLjA2MSAyMi4wMjEgMTcuNTU4IDIyLjAyMSAxMi4wMzNIMTkuNzQ0QzE5Ljc0NCAxNi4zMjcgMTYuMjg2IDE5Ljc4MyAxMS45OTIgMTkuNzgzWk00LjI0MiAxMi4wMzNDNC4yNDIgNy43MzkgNy42OTggNC4yODEgMTEuOTkyIDQuMjgxTDExLjk5MiAyLjAwNEM2LjQ2NyAyLjAwNCAxLjk2NSA2LjUwOCAxLjk2NSAxMi4wMzNaIj48L3BhdGg+PC9zdmc+)}",ut+".sl-bb-button-block-loading-effect006{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMuNSAzLjUgMTcgMTciPjxwYXRoIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiIGQ9Ik0gMTIsMjAuNDM3IEMgOS43NDYsMjAuNDM3IDcuNjI3LDE5LjU1OSA2LjAzNCwxNy45NjYgNC40NDEsMTYuMzczIDMuNTYzLDE0LjI1NCAzLjU2MywxMiAzLjU2Myw5Ljc0NiA0LjQ0MSw3LjYyNyA2LjAzNCw2LjAzNCBMIDcuMzYsNy4zNiB2IDAgYyAtMi41NTksMi41NTkgLTIuNTU5LDYuNzIyIDAsOS4yODEgMS4yMzksMS4yMzkgMi44ODcsMS45MjIgNC42NCwxLjkyMiBtIDAsMCBjIDEuNzUzLDAgMy40MDEsLTAuNjgzIDQuNjQsLTEuOTIyIDIuNTU5LC0yLjU1OSAyLjU1OSwtNi43MjIgMCwtOS4yODEgbCAxLjMyNiwtMS4zMjYgYyAxLjU5NCwxLjU5NCAyLjQ3MSwzLjcxMyAyLjQ3MSw1Ljk2NiAwLDIuMjU0IC0wLjg3OCw0LjM3MyAtMi40NzEsNS45NjYgLTEuNTk0LDEuNTk0IC0zLjcxMywyLjQ3MSAtNS45NjYsMi40NzEiPjwvcGF0aD48L3N2Zz4=)}",ut+".sl-bb-button-block-loading-effect007{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTExLjk5MiAyLjAwNEM5Ljk0IDIgNy44OTEgMi42NDYgNi4yMTcgMy44MzRMNy41MTYgNS43MDVDOS45ODggMy45MDYgMTMuNTM4IDMuODA5IDE2LjEwOCA1LjQ2MyAxNi45MDIgNS45NjIgMTcuNjA2IDYuNjA1IDE4LjE3MiA3LjM1NEwxOS45OCA1Ljk2OUMxOC4xMiAzLjQ5NCAxNS4wOTEgMS45ODUgMTEuOTkyIDIuMDA0Wk0yLjkzMiA3LjczMkMxLjM1IDEwLjk4NiAxLjczOSAxNS4wODMgMy45MTUgMTcuOTc1IDQuODIyIDE5LjIwNyA2LjAxMyAyMC4yMjkgNy4zNzEgMjAuOTM0TDguNDM0IDE4LjkyQzUuODAyIDE3LjU5MyA0LjA5IDE0LjY2NSA0LjI0OSAxMS43MTkgNC4yODcgMTAuNjc0IDQuNTQ0IDkuNjM5IDQuOTk0IDguNjk1Wk0yMS45MjggMTAuNjY0IDE5LjY3MiAxMC45OEMyMC4wOTQgMTMuODIgMTguNzY2IDE2LjgxNyAxNi4zODYgMTguNDE5IDE1LjE3NiAxOS4yNTcgMTMuNzIzIDE5LjczNCAxMi4yNTIgMTkuNzc5IDEyLjI4MSAyMC41MzggMTIuMzExIDIxLjI5NiAxMi4zNCAyMi4wNTUgMTUuODY5IDIxLjk2OSAxOS4yNDIgMTkuODQ0IDIwLjg2MyAxNi43MTIgMjEuNjIzIDE1LjI4MiAyMi4wMTggMTMuNjY1IDIyLjAyMiAxMi4wNDcgMjAuNjA4IDEyLjAyOSAyMC44NzUgMTIuMDMxIDIyLjAyMiAxMi4wMTggMjIuMDE5IDExLjU2NSAyMS45ODkgMTEuMTEzIDIxLjkyOCAxMC42NjRaIj48L3BhdGg+PC9zdmc+)}"],ft=["not use","","",".sl-bb-button-block-click-effect003 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color);border-radius:50%;height:40px;left:calc(var(--sl-bb-button-click-center-x) - 20px);opacity:0;pointer-events:none;position:absolute;top:calc(var(--sl-bb-button-click-center-y) - 20px);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;width:40px;z-index:100}.sl-bb-button-block-click-effect003 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble-anim .4s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble-anim{0%{opacity:.85;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}30%{opacity:.85}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}",".sl-bb-button-block-click-effect004 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color) border-box;border:4px solid transparent;border-radius:50%;height:40px;left:calc(var(--sl-bb-button-click-center-x) - 20px);-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:xor;opacity:0;pointer-events:none;position:absolute;top:calc(var(--sl-bb-button-click-center-y) - 20px);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;width:40px;z-index:100}.sl-bb-button-block-click-effect004 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble-anim .4s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble-anim{0%{opacity:.85;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}30%{opacity:.85}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}",".sl-bb-button-block-click-effect005 .sl-bb-button-click-parent{border-radius:inherit;box-sizing:inherit;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}.sl-bb-button-block-click-effect005 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color);border-radius:50%;left:var(--sl-bb-button-click-center-x);opacity:0;pointer-events:none;position:absolute;top:var(--sl-bb-button-click-center-y);transform:scale(0);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;z-index:100}.sl-bb-button-block-click-effect005 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble1-anim .6s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble1-anim{0%{opacity:.8;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}"],pt=["not use",".sl-bb-button-icon-shape001,.sl-bb-button-icon-shape001-right{background:var(--sl-bb-button-icon-shape-color);border-radius:inherit;bottom:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));left:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}",".sl-bb-button-icon-shape002,.sl-bb-button-icon-shape002-right{background:var(--sl-bb-button-icon-shape-color);border-radius:50%;bottom:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));left:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}",".sl-bb-button-icon-shape003,.sl-bb-button-icon-shape003-right{background:var(--sl-bb-button-icon-shape-color);border-radius:50%;bottom:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));box-shadow:0 0 0 3px #fff, 0 0 0 4px blue;left:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}"],mt=["not use",".sl-bb-button-pattern001{background:repeating-linear-gradient(-75deg, #fff, #0000003a 3px), repeating-linear-gradient(-125deg, #fff, #0000003a 5px)}",".sl-bb-button-pattern002{background:-webkit-repeating-linear-gradient(left, #fff0 0%, #fff0 6%, #ffffff4a 7.5%), -webkit-repeating-linear-gradient(left, #0000 0%, #0000 4%, #00000020 4.5%), -webkit-repeating-linear-gradient(left, #fff0 0%, #fff0 1.2%, #ffffff46 2.2%), -webkit-linear-gradient(-90deg, #a7a7a7d9 0%, #f2f2f2 100%)}",".sl-bb-button-pattern003{background-color:#808080cc;background-image:repeating-linear-gradient(45deg, #0000, #0000 5px, #ffffff80 5px, #ffffff80 10px)}",".sl-bb-button-pattern004{background-color:#808080cc;background-image:repeating-linear-gradient(45deg, #0000, #0000 7px, #ffffff80 7px, #ffffff80 14px)}",".sl-bb-button-pattern005{background-color:#e66464d9;background-image:linear-gradient(to right, #0000 50%, #ffffff80 50%), linear-gradient(to bottom, #0000 50%, #ffffff80 50%);background-size:10px 10px}"],gt=[];gt.wobble=".sl-bb-button-block-animation-wobble{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-wobble:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-wobble:hover{animation:sl-bb-wobble-anim .75s linear 1}@keyframes sl-bb-wobble-anim{16%{transform:translateX(6px)}33%{transform:translateX(-4px)}50%{transform:translateX(3px)}66%{transform:translateX(-2px)}83%{transform:translateX(1px)}}",gt.expand=".sl-bb-button-block-animation-expand{transform:rotateX(.005deg)}.sl-bb-button-block-animation-expand:hover,.sl-bb-button-block-animation-icon-expand:hover .sl-bb-button-block-icon svg{animation:sl-bb-expand-anim .75s linear 1}@keyframes sl-bb-expand-anim{30%{transform:scaleX(1.2)}45%{transform:scaleX(.93)}60%{transform:scaleX(1.1)}73%{transform:scaleX(.95)}87%{transform:scaleX(1.05)}}",gt.jelly=".sl-bb-button-block-animation-jelly{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-jelly:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-jelly:hover{animation:sl-bb-jelly-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-bb-jelly-anim{30%{transform:skew(18deg)}45%{transform:skew(-16deg)}60%{transform:skew(10deg)}73%{transform:skew(-6deg)}87%{transform:skew(4deg)}}",gt.surprise=".sl-bb-button-block-animation-surprise{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-surprise:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-surprise:hover{animation:sl-bb-surprise-anim .75s linear 1}@keyframes sl-bb-surprise-anim{10%{transform:scale(.95) rotate(3deg)}20%{transform:scale(.9) rotate(-3deg)}30%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}50%,70%,90%{transform:scale(1.1) rotate(3deg)}}",gt.tremble=".sl-bb-button-block-animation-tremble{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-tremble:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-tremble:hover{animation:sl-bb-tremble-anim .75s linear 1}@keyframes sl-bb-tremble-anim{10%,30%,50%,70%,90%{transform:rotate(3deg)}20%,40%,60%,80%{transform:rotate(-3deg)}}",gt.bell=".sl-bb-button-block-animation-bell{transform:rotateX(.005deg)}.sl-bb-button-block-animation-bell:hover,.sl-bb-button-block-animation-icon-bell:hover .sl-bb-button-block-icon svg{animation:sl-bb-bell-anim .85s linear 1;transform-origin:50% 0}@keyframes sl-bb-bell-anim{11%{transform:rotate(8deg)}29%{transform:rotate(-6.5deg)}47%{transform:rotate(5deg)}65%{transform:rotate(-3.5deg)}83%{transform:rotate(2deg)}}",gt["swing-3D-Y"]=".sl-bb-button-block-animation-swing-3D-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-swing-3D-Y:hover{animation:sl-bb-swing-3D-Y-anim .85s linear 1}@keyframes sl-bb-swing-3D-Y-anim{20%{transform:rotateY(15deg)}40%{transform:rotateY(-12deg)}60%{transform:rotateY(8deg)}80%{transform:rotateY(-5deg)}to{transform:rotateY(0)}}.sl-bb-button-block-animation-swing-3D-parent{perspective:200px}",gt["swing-3D-X"]=".sl-bb-button-block-animation-swing-3D-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-swing-3D-X:hover{animation:sl-bb-swing-3D-X-anim .85s linear 1}@keyframes sl-bb-swing-3D-X-anim{20%{transform:rotateX(15deg)}40%{transform:rotateX(-12deg)}60%{transform:rotateX(8deg)}80%{transform:rotateX(-5deg)}to{transform:rotateX(0)}}.sl-bb-button-block-animation-swing-3D-parent{perspective:200px}",gt.swing=".sl-bb-button-block-animation-swing{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-swing:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-swing:hover{animation:sl-bb-swing-anim .85s linear 1}@keyframes sl-bb-swing-anim{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}",gt["yoyo-X"]=".sl-bb-button-block-animation-icon-yoyo-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-yoyo-X:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-yoyo-X-anim .75s ease-in-out infinite}@keyframes sl-bb-icon-yoyo-X-anim{25%{transform:translateX(-1px)}75%{transform:translateX(1px)}}",gt["yoyo-Y"]=".sl-bb-button-block-animation-icon-yoyo-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-yoyo-Y:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-yoyo-Y-anim .75s ease-in-out infinite}@keyframes sl-bb-icon-yoyo-Y-anim{25%{transform:translateY(-1px)}75%{transform:translateY(1px)}}",gt["rotate-X"]=".sl-bb-button-block-animation-icon-rotate-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-X:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-X-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-X-anim{to{transform:rotateX(1turn)}}",gt["rotate-Y"]=".sl-bb-button-block-animation-icon-rotate-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-Y:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-Y-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-Y-anim{to{transform:rotateY(1turn)}}",gt["rotate-Z"]=".sl-bb-button-block-animation-icon-rotate-Z{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-Z:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-Z-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-Z-anim{to{transform:rotate(1turn)}}",gt.push=".sl-bb-button-block-animation-push{transition:all .17s ease-out!important;transform:rotateX(.005deg)}.sl-bb-button-block-animation-push:hover{transform:rotateX(10deg);transform-origin:100% 110%}.sl-bb-button-block-animation-push-parent{perspective:200px}",gt["split-horizontal"]=".sl-bb-button-block-animation-split-horizontal .sl-bb-button-anim1{clip-path:polygon(0 0, 0 0, 0 100%, 0 100%, 0 0, 100% 0, 100% 0, 100% 100%, 100% 100%, 100% 0)}.sl-bb-button-block-animation-split-horizontal:hover .sl-bb-button-anim1{clip-path:polygon(50% 0, 0 0, 0 100%, 50% 100%, 50% 0, 50% 0, 100% 0, 100% 100%, 50% 100%, 50% 0)}.sl-bb-button-block-animation-split-horizontal:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-split-horizontal:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["split-vertical"]=".sl-bb-button-block-animation-split-vertical .sl-bb-button-anim1{clip-path:polygon(0 0, 100% 0, 100% 0, 0 0, 0 0, 0 100%, 100% 100%, 100% 100%, 0 100%, 0 100%)}.sl-bb-button-block-animation-split-vertical:hover .sl-bb-button-anim1{clip-path:polygon(0 0, 100% 0, 100% 50%, 0 50%, 0 0, 0 50%, 100% 50%, 100% 100%, 0 100%, 0 50%)}.sl-bb-button-block-animation-split-vertical:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-split-vertical:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["stretch-horizontal"]=".sl-bb-button-block-animation-stretch-horizontal .sl-bb-button-anim1{transform:scaleX(0)}.sl-bb-button-block-animation-stretch-horizontal:hover .sl-bb-button-anim1{transform:scaleX(1)}.sl-bb-button-block-animation-stretch-horizontal{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-horizontal:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-stretch-horizontal:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["stretch-vertical"]=".sl-bb-button-block-animation-stretch-vertical:hover .sl-bb-button-anim1{transform:scaleY(1)}.sl-bb-button-block-animation-stretch-vertical .sl-bb-button-anim1{transform:scaleY(0)}.sl-bb-button-block-animation-stretch-vertical{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-vertical:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-stretch-vertical:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt.ellipse=".sl-bb-button-block-animation-ellipse .sl-bb-button-anim1{border-radius:50%;transform:scale(0)}.sl-bb-button-block-animation-ellipse:hover .sl-bb-button-anim1{transform:scale(2)}.sl-bb-button-block-animation-ellipse{transform:rotateX(.005deg)}.sl-bb-button-block-animation-ellipse:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-ellipse:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt.rect=".sl-bb-button-block-animation-rect .sl-bb-button-anim1{transform:scale(0)}.sl-bb-button-block-animation-rect:hover .sl-bb-button-anim1{transform:scale(1)}.sl-bb-button-block-animation-rect{transform:rotateX(.005deg)}.sl-bb-button-block-animation-rect:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-rect:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["slide-bottom"]=".sl-bb-button-block-animation-slide-bottom .sl-bb-button-anim1{transform:translateY(101%)}.sl-bb-button-block-animation-slide-bottom:hover .sl-bb-button-anim1{transform:translateY(0)}.sl-bb-button-block-animation-slide-bottom{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-bottom:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-bottom:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["slide-top"]=".sl-bb-button-block-animation-slide-top .sl-bb-button-anim1{transform:translateY(-101%)}.sl-bb-button-block-animation-slide-top:hover .sl-bb-button-anim1{transform:translateY(0)}.sl-bb-button-block-animation-slide-top{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-top:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-top:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["slide-left"]=".sl-bb-button-block-animation-slide-left .sl-bb-button-anim1{transform:translateX(-101%)}.sl-bb-button-block-animation-slide-left:hover .sl-bb-button-anim1{transform:translateX(0)}.sl-bb-button-block-animation-slide-left{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-left:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-left:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["slide-right"]=".sl-bb-button-block-animation-slide-right .sl-bb-button-anim1{transform:translateX(101%)}.sl-bb-button-block-animation-slide-right:hover .sl-bb-button-anim1{transform:translateX(0)}.sl-bb-button-block-animation-slide-right{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-right:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-right:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["stretch-corner1"]=".sl-bb-button-block-animation-stretch-corner1 .sl-bb-button-anim1{transform: skewX(-40deg) scaleX(0)}.sl-bb-button-block-animation-stretch-corner1:hover .sl-bb-button-anim1{transform: skewX(40deg) scaleX(1)}.sl-bb-button-block-animation-stretch-corner1{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-corner1:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}",gt["stretch-corner2"]=".sl-bb-button-block-animation-stretch-corner2 .sl-bb-button-anim1{transform: skewX(40deg) scaleX(0)}.sl-bb-button-block-animation-stretch-corner2:hover .sl-bb-button-anim1{transform: skewX(-40deg) scaleX(1)}.sl-bb-button-block-animation-stretch-corner2{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-corner2:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}",gt["text-and-border-color"]=".safelayout-bb-button-block .sl-bb-button-block-animation-text-and-border-color .sl-bb-button-effect-parent{border:1px solid transparent}.sl-bb-button-block-animation-text-and-border-color:hover .sl-bb-button-effect-parent,.sl-bb-button-block-effect009.sl-bb-button-block-animation-text-and-border-color:hover{border-color:var(--sl-bb-button-anim-color) !important}.sl-bb-button-block-animation-text-and-border-color:hover,.sl-bb-button-block-effect009.sl-bb-button-block-animation-text-and-border-color:hover{color:var(--sl-bb-button-anim-color) !important}",gt["border-color"]=".safelayout-bb-button-block .sl-bb-button-block-animation-border-color .sl-bb-button-effect-parent{border:1px solid transparent}.sl-bb-button-block-animation-border-color:hover .sl-bb-button-effect-parent,.sl-bb-button-block-effect009.sl-bb-button-block-animation-border-color:hover{border-color:var(--sl-bb-button-anim-color) !important}",gt["swap-color"]=".sl-bb-button-block-animation-swap-color:hover{color:var(--sl-bb-button-background-color)!important}.sl-bb-button-block-animation-swap-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-text-color)!important}",gt["background-color"]=".sl-bb-button-block-animation-background-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-anim-color)!important}",gt["text-color"]=".sl-bb-button-block-animation-text-color:hover{color:var(--sl-bb-button-anim-color)!important}",gt["background-and-text-color"]=".sl-bb-button-block-animation-background-and-text-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-anim-color)!important}.sl-bb-button-block-animation-background-and-text-color:hover{color:var(--sl-bb-button-anim-two-color)!important}",gt.shadow=".sl-bb-button-block-animation-shadow:hover{box-shadow:0 0 12px 1px rgba(0,0,0,.55)!important}",gt.light=".sl-bb-button-block-animation-light .sl-bb-button-anim1{background:linear-gradient(90deg,transparent 33%,hsla(0,0%,100%,.702),transparent 67%) 100%/300% no-repeat;z-index:10}.sl-bb-button-block-animation-light:hover .sl-bb-button-anim1{background-position:0 0}",gt.light1=".sl-bb-button-block-animation-light1 .sl-bb-button-anim1{background:linear-gradient(45deg,hsla(0,0%,100%,0) 40%,hsla(0,0%,100%,.702) 50%,hsla(0,0%,100%,0) 70%);background-position:-10% 0;background-size:220% auto;z-index:10}.sl-bb-button-block-animation-light1:hover .sl-bb-button-anim1{background-position:110% 0}",gt["letter-space"]=".sl-bb-button-block-animation-letter-space:hover{letter-spacing:1px!important}",gt["fill-color"]=".sl-bb-button-block-animation-icon-fill-color:hover .sl-bb-button-block-icon svg path,.sl-bb-button-block-animation-icon-fill-color:hover .sl-bb-button-block-icon svg symbol path{fill:var(--sl-bb-button-icon-anim-color)!important}",gt["shape-color"]=".sl-bb-button-icon-shape{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-shape-color:hover .sl-bb-button-icon-shape{background:var(--sl-bb-button-icon-anim-color)!important}",gt["fill-and-shape-color"]=".sl-bb-button-icon-shape{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-fill-and-shape-color:hover .sl-bb-button-block-icon svg path{fill:var(--sl-bb-button-icon-anim-color)!important}.sl-bb-button-block-animation-icon-fill-and-shape-color:hover .sl-bb-button-icon-shape{background:var(--sl-bb-button-icon-anim-two-color)!important}",gt["yellow-glow"]=".sl-bb-button-block-animation-yellow-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-yellow-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-yellow-glow:hover{filter:drop-shadow(0 0 5px yellow)}",gt["red-glow"]=".sl-bb-button-block-animation-red-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-red-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-red-glow:hover{filter:drop-shadow(0 0 5px red)}",gt["blue-glow"]=".sl-bb-button-block-animation-blue-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-blue-glow:hover,.sl-bb-button-block-animation-icon-blue-glow:hover .sl-bb-button-block-icon svg{filter:drop-shadow(0 0 5px blue)}",gt["violet-glow"]=".sl-bb-button-block-animation-violet-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-violet-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-violet-glow:hover{filter:drop-shadow(0 0 5px violet)}",gt.brighten=".sl-bb-button-block-animation-brighten{transition:all .17s ease-out!important}.sl-bb-button-block-animation-brighten:hover,.sl-bb-button-block-animation-icon-brighten:hover .sl-bb-button-block-icon svg{filter:brightness(1.15)}",gt.darken=".sl-bb-button-block-animation-darken{transition:all .17s ease-out!important}.sl-bb-button-block-animation-darken:hover,.sl-bb-button-block-animation-icon-darken:hover .sl-bb-button-block-icon svg{filter:brightness(.85)}",gt.grayscale=".sl-bb-button-block-animation-grayscale{transition:all .17s ease-out!important}.sl-bb-button-block-animation-grayscale:hover,.sl-bb-button-block-animation-icon-grayscale:hover .sl-bb-button-block-icon svg{filter:grayscale(80%)}",gt.sepia=".sl-bb-button-block-animation-sepia{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-sepia:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-sepia:hover{filter:sepia(80%)}",gt.opacity=".sl-bb-button-block-animation-opacity{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-opacity:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-opacity:hover{opacity:.7}",gt["zoom-in"]=".sl-bb-button-block-animation-zoom-in{transition:all .17s ease-out!important}.sl-bb-button-block-animation-zoom-in{transform:rotateX(.005deg)}.sl-bb-button-block-animation-zoom-in:hover{transform:scale(1.07)}",gt["zoom-out"]=".sl-bb-button-block-animation-zoom-out{transition:all .17s ease-out!important}.sl-bb-button-block-animation-zoom-out{transform:rotateX(.005deg)}.sl-bb-button-block-animation-zoom-out:hover{transform:scale(.93)}",gt["move-up"]=".sl-bb-button-block-animation-move-up{transition:all .17s ease-out!important}.sl-bb-button-block-animation-move-up:hover{transform:translateY(-2px)}",gt["move-down"]=".sl-bb-button-block-animation-move-down{transition:all .17s ease-out!important}.sl-bb-button-block-animation-move-down:hover{transform:translateY(2px)}";const xt=gt,ht=t=>{let o=kt.find(({name:o})=>o===t);return o?{...yt,...o.attributes}:null},yt={textColor:"#00f",hasBg:!0,bgColor:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)",textAlign:"center",uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,minWidth:void 0,hasBgShadow:!0,bgShadow:"0px 1px 3px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconAnimation:"No Animation",iconAnimColor:"#fff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:F,iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",svgEffect:"",rotate:0,slbbAnim:"slide-top",animColor:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)",clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",animColorTwo:"#f00",hasSubText:!1,subText:"More Text",subTextAlign:"center",subTextFontSize:"11px",animSTColor:void 0,iconAnimColorTwo:"#f00",elementStyle:"",textColorSlug:void 0,bgColorSlug:void 0,iconShapeColorSlug:void 0,iconAnimColorSlug:void 0,iconColorSlug:void 0,iconStrokeColorSlug:void 0,animColorSlug:void 0,clickEffectColorSlug:void 0,animColorTwoSlug:void 0,animSTColorSlug:void 0,iconAnimColorTwoSlug:void 0},kt=[{name:"Button001",attributes:{content:"Free Download",textColor:"#1a1a1a",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#fff",iconName:"003_cloud download",iconPaths:Q,iconColor:["#1a1a1a"],slbbAnim:"background-and-text-color",animColor:"#1a1a1a",animColorTwo:"#fff"}},{name:"Button002",attributes:{content:"Get PRO Version",textColor:"#fff",bgColor:"#1a1a1a",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#1a1a1a",iconName:"001_awards",iconPaths:V,iconColor:["#fff"],slbbAnim:"background-and-text-color",animColor:"#fff",animColorTwo:"#1a1a1a"}},{name:"Button003",attributes:{content:"Explore More",textColor:"#ff8000",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"15px",right:"40px",bottom:"15px",left:"40px"},border:{color:"#ff8000",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconAnimation:"fill-color",iconAnimColor:"#fff",iconColor:["#ff8000"],slbbAnim:"rect",animColor:"#ff8000",animColorTwo:"#fff",animSTColor:"#fff"}},{name:"Button004",attributes:{content:"Explore More",textColor:"#fff",bgColor:"#ff8000",hasBgShadow:!1,blockPadding:{top:"15px",right:"40px",bottom:"15px",left:"40px"},border:{color:"#ff8000",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconAnimation:"fill-color",iconAnimColor:"#ff8000",iconColor:["#fff"],slbbAnim:"rect",animColor:"#fff",animColorTwo:"#ff8000",animSTColor:"#ff8000"}},{name:"Button005",attributes:{content:"Free Download",fontSize:"22px",textColor:"#1a1a1a",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#fff",iconName:"003_cloud download",iconGap:8,iconPaths:Q,iconColor:["#1a1a1a"],slbbAnim:"stretch-horizontal",animColor:"#1a1a1a",animColorTwo:"#fff",clickEffect:"effect004",clickEffectColor:"#fff",hasSubText:!0,subText:"Free 30 days Trial – 1.5GB",animSTColor:"#fff"}},{name:"Button006",attributes:{content:"Get PRO Version",fontSize:"22px",textColor:"#fff",bgColor:"#1a1a1a",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#1a1a1a",iconName:"001_awards",iconPaths:V,iconColor:["#fff"],slbbAnim:"stretch-horizontal",animColor:"#fff",animColorTwo:"#1a1a1a",clickEffect:"effect004",clickEffectColor:"#000",hasSubText:!0,subText:"Starting at only 14.99 USD!",animSTColor:"#1a1a1a"}},{name:"Button007",attributes:{content:"Learn More",textColor:"#b87132",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"15px",right:"30px",bottom:"15px",left:"30px"},border:{color:"#b87132",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#b87132",iconPos:"right",iconGap:10,iconAnimation:"yoyo-X",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#fff"],slbbAnim:"slide-top",animColor:"#b87132",animColorTwo:"#fff",animSTColor:"#fff",clickEffect:"effect004",clickEffectColor:"#404040"}},{name:"Button008",attributes:{content:"Learn More",textColor:"#fff",bgColor:"#b87132",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"15px",right:"30px",bottom:"15px",left:"30px"},border:{color:"#b87132",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#b87132",iconPos:"right",iconGap:10,iconAnimation:"yoyo-X",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#fff"],slbbAnim:"slide-bottom",animColor:"#fff",animColorTwo:"#b87132",animSTColor:"#b87132",clickEffect:"effect004",clickEffectColor:"#404040"}},{name:"Button009",attributes:{content:"Visit Shop",textColor:"#000",bgColor:"#9933ff",uppercase:!0,bgShadow:"0px 0px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},hasIcon:!0,iconAnimation:"yoyo-X",iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#99ffcc",clickEffect:"effect004",clickEffectColor:"#f00"}},{name:"Button010",attributes:{content:"Visit Shop",textColor:"#000",bgColor:"#9933ff",uppercase:!0,bgShadow:"0px 0px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},hasIcon:!0,iconAnimation:"yoyo-X",iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern004",patternOpacity:.4,effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#99ffcc",clickEffect:"effect004",clickEffectColor:"#f00"}},{name:"Button011",attributes:{content:"Visit Shop",textColor:"#fff",bgColor:"#f00",uppercase:!0,bgShadow:"0px 1px 7px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#fff",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],effect:"effect003",slbbAnim:"border-color",animColor:"#ff0",clickEffect:"effect005",clickEffectColor:"#ffff99"}},{name:"Button012",attributes:{content:"Visit Shop",textColor:"#fff",bgColor:"#f00",uppercase:!0,bgShadow:"0px 1px 7px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#fff",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],bgPattern:"pattern001",patternOpacity:.25,effect:"effect003",slbbAnim:"border-color",animColor:"#ff0",clickEffect:"effect005",clickEffectColor:"#ffff99"}},{name:"Button013",attributes:{content:"Buy now",textColor:"#f00",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},border:{color:"#ffa8a8",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"jelly",iconName:"001_cart",iconPaths:Z,iconColor:["#f00"],effect:"No Effect",slbbAnim:"border-color",animColor:"#f00",clickEffect:"effect005",clickEffectColor:"#ffbebe"}},{name:"Button014",attributes:{content:"Buy now",textColor:"#00f",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},border:{color:"#a8a8ff",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"jelly",iconName:"001_cart",iconPaths:Z,iconColor:["#00f"],effect:"No Effect",slbbAnim:"border-color",animColor:"#00f",clickEffect:"effect005",clickEffectColor:"#bebeff"}},{name:"Button015",attributes:{content:"Buy now",textColor:"#000",bgColor:"#99ff99",uppercase:!0,bgShadow:"0px 0px 2px #202020",blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},hasIcon:!0,iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect007",slbbAnim:"light1",clickEffect:"effect004",clickEffectColor:"linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)"}},{name:"Button016",attributes:{content:"Buy now",textColor:"#000",bgColor:"#99ff99",uppercase:!0,bgShadow:"0px 0px 2px #202020",blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},hasIcon:!0,iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern003",patternOpacity:.3,effect:"effect007",slbbAnim:"light1",clickEffect:"effect004",clickEffectColor:"linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)"}},{name:"Button017",attributes:{content:"Add to cart",textColor:"#f00",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#f00",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#f00",iconGap:10,iconAnimation:"fill-and-shape-color",iconAnimColor:"#f00",iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],slbbAnim:"slide-left",animColor:"#f00",clickEffect:"effect003",clickEffectColor:"#FFCCCC",animColorTwo:"#fff",animSTColor:"#fff",iconAnimColorTwo:"#fff"}},{name:"Button018",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#f00",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#f00",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-and-shape-color",iconShape:"shape001",iconShapeColor:"#fff",iconGap:10,iconAnimColor:"#fff",iconName:"001_cart",iconPaths:Z,iconColor:["#f00"],slbbAnim:"slide-left",animColor:"#fff",clickEffect:"effect003",clickEffectColor:"#ff6666",animColorTwo:"#f00",animSTColor:"#f00",iconAnimColorTwo:"#f00"}},{name:"Button019",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#ff8000",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"swing",iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],effect:"effect005",slbbAnim:"stretch-horizontal",animColor:"#666666",clickEffect:"effect001"}},{name:"Button020",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#7f00ff",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconAnimation:"swing",iconPaths:Z,iconColor:["#fff"],effect:"effect005",slbbAnim:"stretch-vertical",animColor:"#a245ff",clickEffect:"effect001"}},{name:"Button021",attributes:{content:"Add to cart",fontSize:"18px",textColor:"#000",bgColor:"#ffff00",uppercase:!0,bgShadow:"0px 1px 1px #000000CF",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#FF8000",clickEffect:"effect002",hasSubText:!0,subText:"for only 8.99 USD!"}},{name:"Button022",attributes:{content:"Add to cart",fontSize:"18px",textColor:"#000",bgColor:"#FF3333",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern002",patternOpacity:.5,effect:"effect005",slbbAnim:"stretch-corner2",animColor:"#FFCCCC",clickEffect:"effect002",hasSubText:!0,subText:"for only 8.99 USD!"}}],jt=e.p+"images/flat-color-icons.62e70cdd.webp",Ct=e.p+"images/linecons-icons.a13e26fe.webp",wt=e.p+"images/filled-icon-set-icons.f4d4703d.webp",St=e.p+"images/genericons-neue-icons.a87844ff.webp",Mt=e.p+"images/font-awesome-regular-icons.66ac7e8a.webp",Nt=e.p+"images/font-awesome-brands-icons.3ad6d184.webp",vt=e.p+"images/font-awesome-solid-icons.ce730a75.webp",At=e.p+"images/material-design-icons.ecdb2a6d.webp",_t=e.p+"images/meteocons-weather-icons.d5aa72b7.webp",It={hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,animation:"No Animation"},Tt=(t,o)=>{const e=[(0,l.__)("one","safelayout-brilliant-buttons"),(0,l.__)("two","safelayout-brilliant-buttons"),(0,l.__)("three","safelayout-brilliant-buttons"),(0,l.__)("four","safelayout-brilliant-buttons"),(0,l.__)("five","safelayout-brilliant-buttons")];return o<=1?"":" "+e[t]},zt=t=>{let o=null;return SLEIiconArray.some(e=>o=e.find(({name:o})=>o===t)),o||null},Lt=t=>{let o="";return SLEIiconArray.some(e=>o=e[0].libCode===t.name.substring(0,3)&&" ("+e[0].libName+")"),o||" (unknown)"},Dt=t=>{let o=null;return SLEIiconArray.some(e=>o=e[0].libCode===t.name.substring(0,3)&&e[0]?.attributes),o||[]},Et=t=>{let o=null;return SLEIiconArray.some(e=>o=e[0].libCode===t&&e[0]?.class),o||""},Pt=t=>(0,k.jsx)(c.Dropdown,{popoverProps:{placement:t?.position?.pos||"left-start",offset:t?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",style:{margin:"16px"},renderToggle:Ot(t),renderContent:()=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:(0,k.jsx)(Rt,{...t})})})})}),Ot=t=>({onToggle:o,isOpen:e})=>{const{name:n,paths:a,color:i,label:s,disabled:r}=t,u={onClick:o,className:b()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":e}),"aria-expanded":e};let d=zt(n);return null===d&&(d={name:n,paths:a,attributes:{color:i}}),((t,o)=>{let e={...It,color:["#3535ff"]||["#5c5c5c"],...Dt(o),...o?.attributes,size:64,blockId:"sl-bb-button-block-selected"+o.name?.replaceAll(" ","_")},l=e?.effect,n=l?K(l):null;n?.attributes&&"999"!==o.name.substring(0,3)&&(e={...e,...n?.attributes}),t.attributes=e,t.effectObj=n})({},d),(0,k.jsx)(c.Button,{...u,disabled:r,className:"sl-bb-button-block-icon-select-btn",title:(0,l.__)("Select or replace the icon","safelayout-brilliant-buttons-pro"),children:(0,k.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,k.jsx)("div",{className:"sl-bb-button-block-panel",children:(0,k.jsx)(A,{icon:d})}),(0,k.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:s})]})})},Bt=[{libName:"Flat color icons - Icons8 (312) (PRO)",image:jt},{libName:"Linecons (48) (PRO)",image:Ct},{libName:"Filled icon set - Icons8 (200) (PRO)",image:wt},{libName:"Genericons Neue (103) (PRO)",image:St},{libName:"Font Awesome regular (163) (PRO)",image:Mt},{libName:"Font Awesome brands (467) (PRO)",image:Nt},{libName:"Font Awesome solid (1390) (PRO)",image:vt},{libName:"Material Design (1261) (PRO)",image:At},{libName:"Meteocons - weather (47) (PRO)",image:_t}];function Rt(t){const{name:o,onIconClick:e}=t;let n,a=[];const[s,r]=(0,i.useState)(""),[b,u]=(0,i.useState)((t=>{let o=null;return SLEIiconArray.some(e=>o=e.find(({name:o})=>o===t)&&e),o?o[0].libName:SLEIiconArray[0][0].libName})(o));if(s)a.push(null),SLEIiconArray.map(t=>a=a.concat(t.filter(({name:t})=>t?.substring(4)?.toLowerCase().includes(s.toLowerCase()))));else if(n=Bt.find(({libName:t})=>t===b),n)a=[];else{let t=-1;SLEIiconArray.some((o,e)=>t=o[0].libName===b&&e+1),a=-1!=t?SLEIiconArray[t-1]:SLEIiconArray[0]}return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.SearchControl,{value:s,style:{marginBottom:"7px"},onChange:r,placeholder:(0,l.__)("Search icon","safelayout-brilliant-buttons")}),(0,k.jsxs)(c.SelectControl,{value:b,onChange:u,__nextHasNoMarginBottom:!0,children:[SLEIiconArray.map(t=>{const o=t[0].libName+" ("+(t.length-1)+")";return(0,k.jsx)("option",{value:t[0].libName,children:o})}),Bt.map(t=>(0,k.jsx)("option",{value:t.libName,className:"sl-bb-button-block-pro-menu",children:t.libName}))]}),(0,k.jsx)(Ut,{icons:a,name:o,onIconClick:e,selectedLibrary:b,searchVal:s,packsImageShow:n}),(0,k.jsx)("div",{style:{textAlign:"center"},children:(0,k.jsx)(c.Disabled,{children:(0,k.jsxs)(c.Button,{variant:"secondary",style:{display:"inline-block",width:"130px",marginTop:"15px",position:"relative"},children:[(0,l.__)("Add Custom SVG","safelayout-brilliant-buttons"),(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"})]})})})]})}const Yt=t=>{const o=document.getElementById(t);o&&(o.classList.remove("sl-bb-list-selected"),o.removeAttribute("id"))},Ut=(0,i.memo)(function({icons:t,name:o,onIconClick:e,selectedLibrary:l,searchVal:n,packsImageShow:a}){return Yt("sl-bb-list-selected-icon"),(0,k.jsxs)("div",{className:"sl-bb-button-block-icons-container",children:[t?.map((t,l)=>{if(l){let a=t.name.substring(0,3);return a>"700"?null:(0,k.jsxs)("div",{id:t.name===o?"sl-bb-list-selected-icon":null,className:"sl-bb-button-block-list"+(t.name===o?" sl-bb-list-selected":""),onClick:e,title:t.name.substring(4)+(n?Lt(t):""),"data-icon-name":t.name,children:[a<="400"&&(0,k.jsx)("span",{className:Et(a),children:String.fromCharCode(59392+t.c)}),a>"400"&&a<="700"&&(0,k.jsx)(A,{icon:t})]},l)}}),a&&(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:a.image})]})},(t,o)=>t.searchVal===o.searchVal&&t.selectedLibrary===o.selectedLibrary);function Gt({attributes:t,setAttributes:o,isInEditor:e=!0,clickEff:n,others:i}){const{blockId:s,textAlign:r,uppercase:c,fontSize:u,lineHeight:d,letterSpacing:f,width:p,minWidth:m,textColor:g,textColorSlug:x,hasBg:h,bgColor:y,bgColorSlug:C,border:w,borderRadius:S,hasIcon:M,iconShape:N,iconShapeColor:A,iconShapeColorSlug:T,iconAnimation:z,iconAnimColor:L,iconAnimColorSlug:D,iconPos:E,iconGap:P,content:O,hasBgShadow:B,bgShadow:R,hasTextShadow:Y,textShadow:U,blockMargin:G,blockPadding:H,label:X,title:W,linkUrl:F,linkRel:V,linkTarget:Z,bgPattern:Q,patternOpacity:$,effect:J,svgEffect:q,rotate:K,animation:ot,slbbAnim:et,animColor:lt,animColorSlug:nt,clickEffect:at,clickEffectColor:it,clickEffectColorSlug:st,hasLoading:rt,loadingText:bt,loadingEffect:ct,animColorTwo:ut,animColorTwoSlug:dt,hasSubText:ft,subText:pt,subTextAlign:mt,subTextFontSize:gt,animSTColor:xt,animSTColorSlug:ht,iconAnimColorTwo:yt,iconAnimColorTwoSlug:kt,elementStyle:jt}=t,Ct=Number(J?.substring(6)),wt=""!=q&&Ct>=31&&Ct<=41,St=Ct>=36&&Ct<=41,Mt=0!=K&&St,Nt="effect001"===at?"translateY(1px)":"effect002"===at?"scale(0.985)":"",vt="effect001"===at||"effect002"===at?Mt?`${Nt} rotate(${K}deg)`:Nt:null,At=D&&""!=D?`var( --wp--preset--${D}, ${L})`:L,_t=j(L)?`url(#animGrad${s})`:At,It=tt(N),Tt={__html:q},zt={textAlign:r||"center"},Lt=i?.oldAnim?ot:et,Dt="effect009"!=J?io(null,w,S):null,Et=ro(Lt);let Pt={textAlign:mt||"left",textShadow:"none",textTransform:"none",fontWeight:"500",fontStyle:"normal",fontSize:gt||null},Ot={...v(null,G,H),textTransform:c?"uppercase":null,"--sl-bb-button-text-color":x&&""!=x?`var( --wp--preset--${x}, ${g})`:g,"--sl-bb-button-background-color":h?C&&""!=C?`var( --wp--preset--${C}, ${y})`:y:"none","--sl-bb-button-anim-color":Lt&&"No Animation"!=Lt?nt&&""!=nt?`var( --wp--preset--${nt}, ${lt})`:lt:null,"--sl-bb-button-anim-two-color":Lt&&"No Animation"!=Lt&&Et?.controlTwo?dt&&""!=dt?`var( --wp--preset--${dt}, ${ut})`:ut:null,"--sl-bb-button-pattern-opacity":String($),"--sl-bb-button-icon-shape-color":"No Shape"!=N?T&&""!=T?`var( --wp--preset--${T}, ${A})`:A:null,"--sl-bb-button-p-top":It?.padding?H?.top||"5px":null,"--sl-bb-button-p-right":It?.padding?H?.right||"10px":null,"--sl-bb-button-p-bottom":It?.padding?H?.bottom||"5px":null,"--sl-bb-button-p-left":It?.padding?H?.left||"10px":null,"--sl-bb-button-click-effect-color":"effect003"===at||"effect004"===at||"effect005"===at?st&&""!=st?`var( --wp--preset--${st}, ${it})`:it:null,"--sl-bb-button-icon-anim-color":"shape-color"===z?At:"fill-color"===z||"fill-and-shape-color"===z?_t:null,"--sl-bb-button-icon-anim-two-color":"fill-and-shape-color"===z?kt&&""!=kt?`var( --wp--preset--${kt}, ${yt})`:yt:null,"--sl-bb-button-anim-slide-text-color":xt?ht&&""!=ht?`var( --wp--preset--${ht}, ${xt})`:xt:null,boxShadow:B?R:null,textShadow:Y?U:null,textDecoration:"auto",cursor:e?null:"pointer",userSelect:e?null:"none",fontSize:"16px"!=u?u:null,lineHeight:"1.5"!=d?d:null,letterSpacing:"0px"!=f?f:null,width:0!=p?p+"%":null,minWidth:m||null};Ot=io(Ot,"effect009"==J?w:null,S);const Bt=Lt&&"No Animation"!=Lt?`sl-bb-button-block-animation-${Lt}`:null,Rt=z&&"No Animation"!=z?`sl-bb-button-block-animation-icon-${z}`:null,Yt="No Effect"!=at?`sl-bb-button-block-click-${at}`:null,Ut=B&&Ct>=36&&Ct<=41?`drop-shadow(${R})`:null,Gt="No Effect"!=ct||rt?"sl-bb-button-block-has-loading":null,Ht=t=>(0,k.jsx)(a.RichText,{tagName:"span",value:O,allowedFormats:["core/bold","core/italic","core/non-breaking-space","core/strikethrough","core/subscript","core/superscript","core/text-color","core/underline"],onChange:t=>o({content:t}),placeholder:(0,l.__)("My Button","safelayout-brilliant-buttons"),className:t,style:zt}),Xt=ft?(0,k.jsxs)("span",{className:"sl-bb-button-block-content",style:zt,children:[Ht(),(0,k.jsx)("span",{style:Pt,className:b()("sl-bb-button-block-sub-text"),children:pt})]}):Ht("sl-bb-button-block-content"),Wt=ft?(0,k.jsxs)("span",{className:"sl-bb-button-block-content",style:zt,children:[(0,k.jsx)(a.RichText.Content,{tagName:"span",value:O,style:zt}),(0,k.jsx)("span",{style:Pt,className:b()("sl-bb-button-block-sub-text"),children:pt})]}):(0,k.jsx)(a.RichText.Content,{tagName:"span",value:O,style:zt,className:"sl-bb-button-block-content"});let Ft=null;!e&&!n||"effect003"!==at&&"effect004"!==at||(Ft=function(t){if(!(0!=t.button||e&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,l=o.getBoundingClientRect(),n=t.clientX-(l.left+l.width/2),a=t.clientY-(l.top+l.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(n,a)),b=o.getElementsByClassName("sl-bb-button-click")[0];b&&(b.classList.remove("sl-bb-button-click-anim"),b.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),b.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),b.style.setProperty("--sl-bb-button-click-x",r.x+"px"),b.style.setProperty("--sl-bb-button-click-y",r.y+"px"),b.offsetWidth,b.classList.add("sl-bb-button-click-anim"))}}),(e||n)&&"effect005"===at&&(Ft=function(t){if(!(0!=t.button||e&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,l=o.getBoundingClientRect(),n=t.clientX-(l.left+l.width/2),a=t.clientY-(l.top+l.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(n,a)),b=Math.max(o.offsetWidth,o.offsetHeight),c=o.getElementsByClassName("sl-bb-button-click")[0];c&&(c.style.setProperty("width",2*b+"px"),c.style.setProperty("height",2*b+"px"),c.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),c.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),c.style.setProperty("--sl-bb-button-click-x",r.x-b+"px"),c.style.setProperty("--sl-bb-button-click-y",r.y-b+"px"),c.classList.remove("sl-bb-button-click-anim"),c.offsetWidth,c.classList.add("sl-bb-button-click-anim"))}});const Vt="fill-color"===z||"fill-and-shape-color"===z?L:"#fff";return(0,k.jsxs)("div",{className:b()(Et?.parent,Yt),style:{filter:Ut,"--sl-bb-button-click-effect-transform":vt,width:0!=p?"100%":null,transform:Mt?`rotate(${K}deg)`:null},children:[(0,k.jsxs)("a",{style:Ot,href:!e&&F||null,target:!e&&Z||null,rel:!e&&V||null,"aria-label":X||null,title:W||null,className:b()(`sl-bb-button-block-${J?.toLowerCase().replace(" ","-")}`,Bt,Rt,Gt),onMouseDown:Ft,children:[(0,k.jsxs)("span",{className:"sl-bb-button-effect-parent",style:Dt,children:[Et?.child>=1&&(0,k.jsx)("span",{className:"sl-bb-button-anim1"}),Et?.child>=2&&(0,k.jsx)("span",{className:"sl-bb-button-anim2"}),"No Pattern"!=Q&&(0,k.jsx)("span",{className:b()("sl-bb-button-block-pattern",`sl-bb-button-${Q}`),style:{position:"absolute"}}),"No Effect"!=J&&"effect001"!=J&&"effect003"!=J&&!wt&&(0,k.jsx)("span",{className:"sl-bb-button-effect"})]}),M?"left"===E?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("span",{className:b()("sl-bb-button-block-icon",It?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=N&&(0,k.jsx)("span",{className:b()("sl-bb-button-icon-shape",`sl-bb-button-icon-${N}`)}),i?.oldSVG&&(0,k.jsx)(I,{attributes:t,others:i}),!i?.oldSVG&&(0,k.jsx)(_,{attributes:{...t,iconAnimColor:Vt},others:i})]}),(i?.d2||""!=O.trim())&&(0,k.jsx)("span",{style:{display:"inline-block",width:P+"px"}}),e?Xt:(i?.d2||""!=O.trim())&&Wt]}):(0,k.jsxs)(k.Fragment,{children:[e?Xt:(i?.d2||""!=O.trim())&&Wt,(i?.d2||""!=O.trim())&&(0,k.jsx)("span",{style:{display:"inline-block",width:P+"px"}}),(0,k.jsxs)("span",{className:b()("sl-bb-button-block-icon",It?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=N&&(0,k.jsx)("span",{className:b()("sl-bb-button-icon-shape",`sl-bb-button-icon-${N}-right`)}),i?.oldSVG&&(0,k.jsx)(I,{attributes:t,others:i}),!i?.oldSVG&&(0,k.jsx)(_,{attributes:{...t,iconAnimColor:Vt},others:i})]})]}):(0,k.jsx)(k.Fragment,{children:e?Xt:Wt}),("effect003"===at||"effect004"===at)&&(0,k.jsx)("span",{className:"sl-bb-button-click"}),"effect005"===at&&(0,k.jsx)("span",{className:"sl-bb-button-click-parent",children:(0,k.jsx)("span",{className:"sl-bb-button-click"})}),!St&&ct&&"No Effect"!==ct&&(0,k.jsx)("span",{style:{display:"none"},className:b()("sl-bb-button-block-loading",`sl-bb-button-block-loading-${ct}`)}),!St&&rt&&(0,k.jsx)("span",{className:"sl-bb-button-block-loading-text",children:bt})]}),wt&&(0,k.jsx)("svg",{width:"0",height:"0",xmlns:"http://www.w3.org/2000/svg",dangerouslySetInnerHTML:Tt,class:"sl-bb-button-block-svg-effect"}),!e&&jt&&""!=jt&&(0,k.jsx)("style",{type:"text/css","data-no-optimize":"1","data-no-minify":"1",children:jt})]})}const Ht=e.p+"images/library-button-image1.ae24fc9c.webp",Xt=e.p+"images/library-button-image2.0534463a.webp",Wt=t=>(0,k.jsx)(c.Dropdown,{popoverProps:{placement:t?.position?.pos||"left-start",offset:t?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",style:{margin:t?.style?.margin||"10px 35px",textAlign:"center"},focusOnMount:!0,renderToggle:Zt(t),renderContent:o=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",style:{height:"440px",width:"710px",paddingTop:"5px"},children:(0,k.jsx)(Qt,{...t,onToggle:o.onToggle,height:"380px"})})})})}),Ft=t=>(0,k.jsx)(c.Dropdown,{popoverProps:{placement:"bottom-start",offset:40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",focusOnMount:!0,renderToggle:Vt(t),renderContent:o=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",style:{height:"280px",width:"710px",paddingTop:"5px"},children:(0,k.jsx)(Qt,{...t,onToggle:o.onToggle,height:"220px"})})})})}),Vt=()=>({onToggle:t,isOpen:o})=>(0,k.jsx)(c.ToolbarButton,{label:(0,l.__)("Pick a Ready-Made Button","safelayout-brilliant-buttons"),showTooltip:!0,onClick:t,"aria-expanded":o,"aria-haspopup":"true",className:b()({"is-open":o}),children:(0,l.__)("Presets","safelayout-brilliant-buttons")}),Zt=t=>({onToggle:o,isOpen:e})=>{const{disabled:n}=t,a={onClick:o,className:b()("sl-bb-button-library-btn",{"is-open":e}),"aria-expanded":e};return(0,k.jsx)(c.Button,{...a,disabled:n,title:(0,l.__)("Pick a Ready-Made Button","safelayout-brilliant-buttons"),children:(0,k.jsx)("div",{children:(0,l.__)("Browse Button Presets","safelayout-brilliant-buttons")})})},Qt=(0,i.memo)(function({onIconClick:t,onToggle:o,height:e}){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",style:{margin:"0 0 5px 0"},children:(0,l.__)("Pick a Ready-Made button—you can customize the text, link and design anytime.","safelayout-brilliant-buttons")}),(0,k.jsxs)("div",{className:"sl-bb-button-block-icons-container",style:{height:e,marginTop:"0"},children:[kt?.map((e,l)=>{const n={...yt,...e.attributes,blockId:"sl-bb-button-block-library-list-"+l};return(0,k.jsx)("div",{className:"sl-bb-button-block-effectlist safelayout-bb-button-block sl-bb-library",onClick:e=>{t(e),o()},title:e.name,"data-button-lib-name":e.name,children:(0,k.jsx)(Gt,{attributes:n,isInEditor:!1,clickEff:!0})},l)}),(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,l.__)("Preview of Pro Version Buttons.","safelayout-brilliant-buttons")}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:Ht}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:Xt})]})]})}),$t=e.p+"images/button-effects1.f33ddb54.png",Jt=e.p+"images/button-effects2.100721b3.png",qt=e.p+"images/button-pattern.5e561e8c.png",Kt=e.p+"images/button-shape.88b038fc.png";let to=[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}];function oo(t){const{attributes:o,setAttributes:e,clientId:n}=t,{align:s,textAlign:r,uppercase:b,fontSize:u,lineHeight:d,letterSpacing:j,width:C,minWidth:w,textColor:S,textColorSlug:M,hasBg:N,bgColor:v,bgColorSlug:A,border:_,borderRadius:I,hasBgShadow:T,bgShadow:z,hasTextShadow:L,textShadow:D,blockPadding:E,blockMargin:P,label:O,title:B,linkUrl:R,linkRel:Y,linkTarget:U,bgPattern:H,patternOpacity:X,effect:W,rotate:F,slbbAnim:V,animColor:Z,animColorSlug:Q,hasIcon:$,iconShape:J,iconShapeColor:q,iconShapeColorSlug:tt,iconAnimation:ot,iconAnimColor:et,iconAnimColorSlug:lt,iconPos:nt,iconGap:at,iconName:it,iconPaths:st,iconColor:rt,iconColorSlug:bt,iconStrokeColor:ct,iconStrokeColorSlug:ut,iconStrokeWidth:dt,clickEffect:ft,clickEffectColor:pt,clickEffectColorSlug:mt,hasLoading:gt,loadingText:xt,loadingEffect:yt,animColorTwo:kt,animColorTwoSlug:jt,hasSubText:Ct,subText:wt,animSTColor:St,animSTColorSlug:Mt,iconAnimColorTwo:Nt,iconAnimColorTwoSlug:vt}=o,[At,_t]=(0,i.useState)(!1),It="_blank"===U,Lt="noreferrer noopener",Et=Number(W?.substring(6)),Ot=Et>=36&&Et<=41,Bt={name:"general",title:(0,l.__)("General Anim","safelayout-brilliant-buttons"),value:"general"},Rt={name:"icon",title:(0,l.__)("Icon Anim","safelayout-brilliant-buttons"),value:"icon"},Ut={[Bt.value]:(0,k.jsxs)(k.Fragment,{children:["No Animation"!=V&&ro(V)?.control&&(0,k.jsx)(G,{attribute:Z,selectedSlug:Q,label:ro(V)?.label,onlySolid:ro(V)?.solid,click:t=>e({animColor:t.target.style.background,animColorSlug:t.target.dataset.slug}),change:t=>e({animColor:t,animColorSlug:void 0})}),"No Animation"!=V&&ro(V)?.controlTwo&&(0,k.jsx)(G,{attribute:kt,selectedSlug:jt,label:ro(V)?.labelTwo,onlySolid:ro(V)?.solidTwo,click:t=>e({animColorTwo:t.target.style.background,animColorTwoSlug:t.target.dataset.slug}),change:t=>e({animColorTwo:t,animColorTwoSlug:void 0})}),"No Animation"!=V&&ro(V)?.controlSTColor&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{style:{display:"inline-block",width:"70%"},children:(0,k.jsx)(G,{attribute:St,selectedSlug:Mt,label:ro(V)?.labelTwo,onlySolid:ro(V)?.solidTwo,click:t=>e({animSTColor:t.target.style.background,animSTColorSlug:t.target.dataset.slug}),change:t=>e({animSTColor:t,animSTColorSlug:void 0})})}),(0,k.jsx)(c.Button,{variant:"secondary",onClick:()=>e({animSTColor:void 0,animSTColorSlug:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"super"},children:(0,l.__)("Reset","safelayout-brilliant-buttons")})]}),(0,k.jsx)(uo,{currentAnim:V,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-anim-name"),a=ro(l),i=wp.data.select("core/block-editor").getBlock(n).attributes.animColor;let s={};a?.solid&&-1!==i.indexOf("gradient")&&(s={animColor:"#fff",animColorSlug:void 0}),Yt("sl-bb-list-selected-anim"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-anim"),e({slbbAnim:l,...s}),ho()}})]}),[Rt.value]:(0,k.jsxs)(k.Fragment,{children:["No Animation"!=ot&&bo(ot)?.control&&(0,k.jsx)(G,{attribute:et,selectedSlug:lt,label:bo(ot)?.label,onlySolid:bo(ot)?.solid,click:t=>e({iconAnimColor:t.target.style.background,iconAnimColorSlug:t.target.dataset.slug}),change:t=>e({iconAnimColor:t,iconAnimColorSlug:void 0}),disabled:Ot||!$}),"No Animation"!=ot&&bo(ot)?.controlTwo&&(0,k.jsx)(G,{attribute:Nt,selectedSlug:vt,label:bo(ot)?.labelTwo,onlySolid:bo(ot)?.solidTwo,click:t=>e({iconAnimColorTwo:t.target.style.background,iconAnimColorTwoSlug:t.target.dataset.slug}),change:t=>e({iconAnimColorTwo:t,iconAnimColorTwoSlug:void 0}),disabled:Ot||!$}),(0,k.jsx)(mo,{currentAnim:ot,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-icon-anim-name");Yt("sl-bb-list-selected-icon-anim"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-icon-anim"),e({iconAnimation:l}),ho()},disabled:Ot||!$})]})},Gt={name:"general",title:(0,l.__)("General","safelayout-brilliant-buttons"),value:"general"},Ht={name:"more",title:(0,l.__)("More Options","safelayout-brilliant-buttons"),value:"more"},Xt=[Gt,Ht],Vt={[Gt.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Wt,{onIconClick:t=>{const o=t.currentTarget.getAttribute("data-button-lib-name"),l=ht(o);l&&(e({...l}),ho())}}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Button effect","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-customizer",children:(0,k.jsx)(co,{currentEffect:W,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-effect-name"),n=K(l);Yt("sl-bb-list-selected-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-effect"),e({effect:l,...n?.attributes}),ho()}})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Link and Title","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-links",className:"sl-bb-button-block-link-panel",children:[(0,k.jsx)(c.TextControl,{label:(0,l.__)("Tooltip","safelayout-brilliant-buttons"),value:B||"",onChange:t=>e({title:t})}),(0,k.jsx)(c.TextControl,{label:(0,l.__)("Label","safelayout-brilliant-buttons"),value:O||"",onChange:t=>e({label:t}),help:(0,l.__)("It is for screen readers.","safelayout-brilliant-buttons")}),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Link url","safelayout-brilliant-buttons")}),(0,k.jsx)(a.LinkControl,{value:{url:R,opensInNewTab:It},onChange:({url:t="",opensInNewTab:o})=>{e({linkUrl:t}),It!==o&&function(t){const o=t?"_blank":void 0;let l=Y;o&&!Y?l=Lt:o||Y!==Lt||(l=void 0),e({linkTarget:o,linkRel:l})}(o)},onRemove:()=>{e({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,k.jsx)(c.TextControl,{label:(0,l.__)("Link rel","safelayout-brilliant-buttons"),value:Y||"",onChange:t=>e({linkRel:t})})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Size","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-expand",children:[(0,k.jsx)(c.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:eo,onChange:t=>e({fontSize:t}),value:u}),(0,k.jsxs)(c.__experimentalGrid,{columns:2,children:[(0,k.jsx)(a.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:t=>e({lineHeight:t}),value:d}),(0,k.jsx)(a.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:t=>e({letterSpacing:t}),value:j})]}),(0,k.jsx)(c.BaseControl.VisualLabel,{style:{display:"block",marginTop:"5px",marginBottom:"0"},children:(0,l.__)("Width","safelayout-brilliant-buttons")}),(0,k.jsxs)(c.__experimentalGrid,{columns:2,style:{alignItems:"center"},children:[(0,k.jsx)(c.__experimentalToggleGroupControl,{value:C,onChange:t=>e({width:t}),size:"small",style:{width:"170px"},children:[25,50,75,100].map(t=>(0,k.jsx)(c.__experimentalToggleGroupControlOption,{value:t,label:t+"%"},t))}),(0,k.jsx)(c.Button,{variant:"secondary",onClick:()=>e({width:0}),size:"small",style:{margin:"0 5px"},children:(0,l.__)("Reset","safelayout-brilliant-buttons")})]}),(0,k.jsxs)("div",{style:{display:"inline-block"},children:[(0,k.jsx)(c.BaseControl.VisualLabel,{style:{display:"block",margin:"8px 0 0"},children:(0,l.__)("Minimum Width","safelayout-brilliant-buttons")}),(0,k.jsx)(c.__experimentalUnitControl,{__unstableInputWidth:"150px",onChange:t=>e({minWidth:t}),value:w,size:"small"})]}),(0,k.jsx)(c.Button,{variant:"secondary",onClick:()=>e({minWidth:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"bottom"},children:(0,l.__)("Reset","safelayout-brilliant-buttons")})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Font","safelayout-brilliant-buttons"),initialOpen:!1,icon:"edit",children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsx)(c.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,k.jsx)("option",{value:"Default",children:"Default"})})]})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Color","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-appearance",className:"sl-bb-button-block-color-panel-icon",children:[(0,k.jsx)(c.ToggleControl,{checked:N,help:(0,l.__)("Add a background color to the button.","safelayout-brilliant-buttons"),label:(0,l.__)("Background color","safelayout-brilliant-buttons"),onChange:t=>e({hasBg:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,k.jsx)(G,{attribute:v,selectedSlug:A,label:(0,l.__)("Background color","safelayout-brilliant-buttons"),click:t=>e({bgColor:t.target.style.background,bgColorSlug:t.target.dataset.slug}),change:t=>t&&e({bgColor:t,bgColorSlug:void 0}),disabled:!N}),(0,k.jsx)(G,{attribute:S,selectedSlug:M,label:(0,l.__)("Text color","safelayout-brilliant-buttons"),click:t=>e({textColor:t.target.style.background,textColorSlug:t.target.dataset.slug}),change:t=>t&&e({textColor:t,textColorSlug:void 0}),onlySolid:!0})]})}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Icon","safelayout-brilliant-buttons"),initialOpen:!1,icon:"art",children:[(0,k.jsx)(c.ToggleControl,{checked:$,help:(0,l.__)("Add an icon to the button.","safelayout-brilliant-buttons"),label:(0,l.__)("Add icon","safelayout-brilliant-buttons"),onChange:t=>e({hasIcon:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,k.jsx)(Pt,{name:it,paths:st,color:rt,label:(0,l.__)("Icon","safelayout-brilliant-buttons")+": "+it.substring(4),onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-icon-name"),n=zt(l),a=Dt(n);Yt("sl-bb-list-selected-icon"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-icon");let i={...a,...n?.attributes};i?.color||(i={...i,color:[rt[0]],iconColorSlug:[bt?.[0]]}),i?.strokeColor||(i={...i,strokeColor:[ct[0]],iconStrokeColorSlug:[ut?.[0]]}),i?.strokeWidth||(i={...i,strokeWidth:[dt[0]]}),i?.iconColorSlug||(i={...i,iconColorSlug:Array(i?.color.length).fill()}),i?.iconStrokeColorSlug||(i={...i,iconStrokeColorSlug:Array(i?.strokeColor.length).fill()}),e({iconName:l,iconPaths:n.paths,iconColor:i.color,iconColorSlug:i.iconColorSlug,iconStrokeColor:i.strokeColor,iconStrokeColorSlug:i.iconStrokeColorSlug,iconStrokeWidth:i.strokeWidth})},disabled:!$}),(0,k.jsxs)("div",{style:{padding:"15px"},children:[(0,k.jsx)(c.ToggleControl,{checked:At,label:(0,l.__)("Show Number, Text or Emoji instead of icon.","safelayout-brilliant-buttons"),onChange:t=>_t(t),disabled:!$}),At&&(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsxs)(c.__experimentalGrid,{columns:2,style:{display:"flex",justifyContent:"space-around",margin:"10px 0 -6px"},children:[(0,k.jsx)(c.TextControl,{label:(0,l.__)("Number / Text","safelayout-brilliant-buttons"),className:"sl-bb-button-block-disabled-element",disabled:!0}),(0,k.jsx)(c.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,k.jsx)("option",{value:"Default",children:"Default"})})]}),(0,k.jsx)("span",{className:"sl-bb-help-msg",children:(0,l.__)('One or two char "01" "2" "A1" "😎" ...',"safelayout-brilliant-buttons")})]})]})]}),(0,k.jsx)("hr",{style:{margin:"7px 0"}}),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Icon position","safelayout-brilliant-buttons")}),(0,k.jsxs)(c.__experimentalToggleGroupControl,{value:nt,isBlock:!0,onChange:t=>e({iconPos:t}),disabled:!$,size:"small",children:[(0,k.jsx)(c.__experimentalToggleGroupControlOption,{value:"left",label:(0,l.__)("Left","safelayout-brilliant-buttons"),disabled:!$}),(0,k.jsx)(c.__experimentalToggleGroupControlOption,{value:"right",label:(0,l.__)("Right","safelayout-brilliant-buttons"),disabled:!$})]}),rt.map((t,o,n)=>(0,k.jsx)(G,{attribute:t,selectedSlug:bt?.[o],label:(0,l.__)("Icon Fill Color","safelayout-brilliant-buttons")+Tt(o,n.length),click:t=>{let l=[...rt],n=[...bt||Array(rt.length).fill()];l[o]=t.target.style.background,n[o]=t.target.dataset.slug,e({iconColor:l,iconColorSlug:n})},change:t=>{let l=[...rt],n=[...bt||Array(rt.length).fill()];t&&(l[o]=t,n[o]=void 0),e({iconColor:l,iconColorSlug:n})},disabled:!$},o)),ct.map((t,o,n)=>(0,k.jsx)(G,{attribute:t,selectedSlug:ut?.[o],label:(0,l.__)("Icon Stroke Color","safelayout-brilliant-buttons")+Tt(o,n.length),click:t=>{let l=[...ct],n=[...ut||Array(ct.length).fill()];l[o]=t.target.style.background,n[o]=t.target.dataset.slug,e({iconStrokeColor:l,iconStrokeColorSlug:n})},change:t=>{let l=[...ct],n=[...ut||Array(ct.length).fill()];t&&(l[o]=t,n[o]=void 0),e({iconStrokeColor:l,iconStrokeColorSlug:n})},disabled:!$},o)),dt.map((t,o,n)=>(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Icon Stroke Width","safelayout-brilliant-buttons")+Tt(o,n.length),min:0,max:200,value:t,className:"sl-bb-button-block-no-margin-bottom",onChange:t=>{let l=[...dt];l[o]=t,e({iconStrokeWidth:l})},disabled:!$},o)),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Icon gap","safelayout-brilliant-buttons")}),(0,k.jsx)(c.RangeControl,{min:0,max:250,className:"sl-bb-button-block-no-margin-bottom",value:at,disabled:!$,onChange:t=>e({iconGap:t})}),(0,k.jsx)("hr",{style:{margin:"7px 0 12px 0"}}),(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsx)(c.Disabled,{children:(0,k.jsx)(c.ToggleControl,{help:(0,l.__)("The button text will be hidden.","safelayout-brilliant-buttons"),label:(0,l.__)("Only show icon","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom"})})]}),(0,k.jsx)("hr",{style:{margin:"7px 0"}}),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Icon background shape","safelayout-brilliant-buttons")}),"No Shape"!=J&&(0,k.jsx)(G,{attribute:q,selectedSlug:tt,label:(0,l.__)("Background shape color","safelayout-brilliant-buttons"),click:t=>e({iconShapeColor:t.target.style.background,iconShapeColorSlug:t.target.dataset.slug}),change:t=>e({iconShapeColor:t,iconShapeColorSlug:void 0}),disabled:!$}),(0,k.jsx)(po,{currentShape:J,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-shape-name");Yt("sl-bb-list-selected-shape"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-shape"),e({iconShape:l}),ho()},disabled:!$}),(0,k.jsx)("hr",{style:{margin:"7px 0"}}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Icon shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.ToggleControl,{label:(0,l.__)("Icon shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom"}),(0,k.jsx)(G,{attribute:"#000",label:(0,l.__)("color","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("blur","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("X offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Y offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:p,children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Icon size","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Background shape size","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Background shape position","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})})]})}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Sub text","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-textcolor",children:[(0,k.jsx)(c.ToggleControl,{checked:Ct,help:(0,l.__)("Add a sub text to the button.","safelayout-brilliant-buttons"),label:(0,l.__)("Sub text","safelayout-brilliant-buttons"),onChange:t=>e({hasSubText:t,subTextAlign:"center",subTextFontSize:"11px"})}),(0,k.jsx)("div",{style:{textAlign:"center",marginBottom:"3px"},children:(0,k.jsx)("textarea",{value:wt?.replaceAll("<br>","\n"),onChange:t=>e({subText:t.target.value?.replaceAll("\n","<br>")}),placeholder:(0,l.__)("More Text","safelayout-brilliant-buttons"),rows:"2",cols:"33",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center",marginBottom:"10px"},disabled:!Ct})}),(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsx)("div",{style:{textAlign:"center"},children:(0,k.jsx)(c.ToolbarGroup,{style:{border:"none"},children:(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.ToolbarButton,{icon:m,label:(0,l.__)("Align text","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.ToolbarButton,{icon:g,label:(0,l.__)("Uppercase","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.ToolbarButton,{icon:"editor-bold",label:(0,l.__)("Bold","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.ToolbarButton,{icon:"editor-italic",label:(0,l.__)("Italic","safelayout-brilliant-buttons"),disabled:!0})]})})}),(0,k.jsx)(c.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Sub Text Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,k.jsx)("option",{value:"Default",children:"Default"})})]}),(0,k.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.ToggleControl,{label:(0,l.__)("Sub text color","safelayout-brilliant-buttons")}),(0,k.jsx)(G,{attribute:"#000",label:(0,l.__)("Sub text color","safelayout-brilliant-buttons"),disabled:!0})]})]}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Sub Text size","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-expand",children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Sub text top","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,k.jsx)(c.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:eo})]})]})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Sub Text shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.ToggleControl,{label:(0,l.__)("Sub Text shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom"}),(0,k.jsx)(G,{attribute:"#000",label:(0,l.__)("color","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("blur","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("X offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Y offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:p,children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsx)(c.TextControl,{label:(0,l.__)("Sub Text Additional CSS class(es)","safelayout-brilliant-buttons"),help:(0,l.__)("Separate multiple classes with spaces.","safelayout-brilliant-buttons"),className:"sl-bb-button-block-disabled-element",disabled:!0})]})})})]})})]}),[Ht.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{style:{height:"8px"}}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Border","safelayout-brilliant-buttons"),initialOpen:!1,icon:x,children:[(0,k.jsx)(c.__experimentalBorderBoxControl,{onChange:t=>e({border:t}),value:_,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,k.jsx)(c.Button,{variant:"secondary",onClick:()=>e({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,l.__)("Reset","safelayout-brilliant-buttons")}),(0,k.jsx)(c.__experimentalBoxControl,{label:(0,l.__)("Border radius","safelayout-brilliant-buttons"),values:I,onChange:t=>e({borderRadius:t})})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Background pattern","safelayout-brilliant-buttons"),initialOpen:!1,icon:"screenoptions",children:[(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Pattern opacity","safelayout-brilliant-buttons"),min:.1,max:1,step:.05,className:"sl-bb-button-block-no-margin-bottom",value:X,withInputField:!1,disabled:"No Pattern"===H,onChange:t=>e({patternOpacity:t})}),(0,k.jsx)(fo,{currentPattern:H,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-pattern-name");Yt("sl-bb-list-selected-pattern"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-pattern"),e({bgPattern:l}),ho()}})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Box shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:[(0,k.jsx)(c.ToggleControl,{checked:T,label:(0,l.__)("Box shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom",onChange:t=>e({hasBgShadow:t})}),(0,k.jsx)(G,{attribute:no(z,3),label:(0,l.__)("color","safelayout-brilliant-buttons"),onlySolid:!0,click:t=>e({bgShadow:ao(z,3,t.target.style.background)}),change:t=>e({bgShadow:ao(z,3,t)}),disabled:!T}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("blur","safelayout-brilliant-buttons"),min:0,max:100,step:Ot?.1:1,className:"sl-bb-button-block-no-margin-bottom",value:no(z,2),disabled:!T,onChange:t=>e({bgShadow:ao(z,2,t)})}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("X offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:no(z,0),disabled:!T,onChange:t=>e({bgShadow:ao(z,0,t)})}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Y offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:no(z,1),disabled:!T,onChange:t=>e({bgShadow:ao(z,1,t)})})]})}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Text shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:[(0,k.jsx)(c.ToggleControl,{checked:L,label:(0,l.__)("Text shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom",onChange:t=>e({hasTextShadow:t})}),(0,k.jsx)(G,{attribute:no(D,3),label:(0,l.__)("color","safelayout-brilliant-buttons"),onlySolid:!0,click:t=>e({textShadow:ao(D,3,t.target.style.background)}),change:t=>e({textShadow:ao(D,3,t)}),disabled:!L}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("blur","safelayout-brilliant-buttons"),min:0,max:100,className:"sl-bb-button-block-no-margin-bottom",value:no(D,2),disabled:!L,onChange:t=>e({textShadow:ao(D,2,t)})}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("X offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:no(D,0),disabled:!L,onChange:t=>e({textShadow:ao(D,0,t)})}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Y offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:no(D,1),disabled:!L,onChange:t=>e({textShadow:ao(D,1,t)})})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Hover animation","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-video",children:(0,k.jsx)(c.TabPanel,{className:"sl-bb-icon-block-panel-tabs",tabs:[Bt,Rt],initialTabName:Bt.value,children:t=>{return o=t.value,(0,k.jsx)(k.Fragment,{children:Ut[o]});var o}})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Click effect","safelayout-brilliant-buttons"),initialOpen:!1,icon:"yes",children:[("effect003"===ft||"effect004"===ft||"effect005"===ft)&&(0,k.jsx)(G,{attribute:pt,selectedSlug:mt,label:(0,l.__)("Click effect color","safelayout-brilliant-buttons"),click:t=>e({clickEffectColor:t.target.style.background,clickEffectColorSlug:t.target.dataset.slug}),change:t=>e({clickEffectColor:t,clickEffectColorSlug:void 0})}),(0,k.jsx)(go,{currentAnim:ft,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-click-name");Yt("sl-bb-list-selected-click-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-click-effect"),e({clickEffect:l}),ho()}})]})}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("After click ( loading )","safelayout-brilliant-buttons"),initialOpen:!1,icon:"update-alt",children:[(0,k.jsx)(c.ToggleControl,{checked:gt,help:(0,l.__)("Change button text after click.","safelayout-brilliant-buttons"),label:(0,l.__)("Change button text","safelayout-brilliant-buttons"),onChange:t=>e({hasLoading:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,k.jsx)(c.TextControl,{label:(0,l.__)("New text","safelayout-brilliant-buttons"),value:xt||"",onChange:t=>e({loadingText:t}),disabled:!gt,help:(0,l.__)('See "After click" effect on the front-end.',"safelayout-brilliant-buttons")}),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Loading effect","safelayout-brilliant-buttons")}),(0,k.jsx)(xo,{currentLoading:yt,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-loading-name");Yt("sl-bb-list-selected-loading-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-loading-effect"),e({loadingEffect:l}),ho()}})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Block spacing","safelayout-brilliant-buttons"),initialOpen:!1,icon:h,children:[(0,k.jsx)(c.__experimentalBoxControl,{label:(0,l.__)("Margin","safelayout-brilliant-buttons"),values:P,onChange:t=>e({blockMargin:t})}),(0,k.jsx)("div",{style:{height:"10px"}}),(0,k.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,k.jsx)(c.__experimentalBoxControl,{label:(0,l.__)("Padding","safelayout-brilliant-buttons"),values:E,onChange:t=>e({blockPadding:t})})]})})]})};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(a.BlockControls,{children:[(0,k.jsx)(a.BlockAlignmentToolbar,{controls:["left","center","right"],value:s,onChange:t=>e({align:t})}),(0,k.jsxs)(c.ToolbarGroup,{children:[!Ot&&(0,k.jsx)(a.AlignmentToolbar,{controls:["left","center","right"],value:r,onChange:t=>e({textAlign:t})}),!Ot&&(0,k.jsx)(c.ToolbarButton,{icon:g,label:(0,l.__)("Uppercase","safelayout-brilliant-buttons"),onClick:()=>e({uppercase:!b}),isPressed:b}),Ot&&(0,k.jsx)(c.ToolbarButton,{icon:y,label:(0,l.__)("Rotate","safelayout-brilliant-buttons"),onClick:()=>e({rotate:(F+45)%360}),isPressed:0!=F})]}),(0,k.jsx)(c.ToolbarGroup,{children:(0,k.jsx)(Ft,{onIconClick:t=>{const o=t.currentTarget.getAttribute("data-button-lib-name"),l=ht(o);l&&(e({...l}),ho())}})})]}),(0,k.jsxs)(a.InspectorControls,{children:[(0,k.jsx)(c.TabPanel,{className:"sl-bb-icon-block-panel-tabs",tabs:Xt,initialTabName:Gt.value,children:t=>{return o=t.value,(0,k.jsx)(k.Fragment,{children:Vt[o]});var o}}),(0,k.jsx)("div",{className:"sl-bb-button-block-upgrade-pro",children:(0,k.jsx)("a",{href:"https://safelayout.com/safelayout-brilliant-buttons-pro/",target:"_blank",className:"button",title:(0,l.__)("Upgrade to pro version and get full features.","safelayout-brilliant-buttons"),children:(0,l.__)("Upgrade to Pro","safelayout-brilliant-buttons")})}),(0,k.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,k.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,k.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})]})}const eo=[{name:"Small",size:"13px",slug:"small"},{name:"Medium",size:"16px",slug:"medium"},{name:"Large",size:"24px",slug:"large"},{name:"Extre Large",size:"36px",slug:"extre large"}];function lo(t,o){return{[`border${t}Width`]:o?.width||null,[`border${t}Color`]:o?.color||null,[`border${t}Style`]:o?.style||null}}function no(t,o){t||(t="1px 1px 1px #fff");let e=t.split("px ")[o];return o<3?parseFloat(e):e}function ao(t,o,e){let l=t.split("px ");return l[o]=e,l.join("px ")}function io(t,o,e){return o&&(t=o?.top?{...t,...lo("Top",o?.top),...lo("Right",o?.right),...lo("Bottom",o?.bottom),...lo("Left",o?.left)}:{...t,...lo("",o)}),e&&(t={...t,borderTopLeftRadius:e?.top||null,borderTopRightRadius:e?.right||null,borderBottomRightRadius:e?.bottom||null,borderBottomLeftRadius:e?.left||null}),t}const so={content:"Button",textColor:"#3e3eff",hasBg:!0,bgColor:"#33FF33",textAlign:"center",uppercase:!0,fontSize:"18px",lineHeight:"1.4",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:[],iconColor:[],iconStrokeColor:[],iconStrokeWidth:[],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",bgPattern:"No Pattern",patternOpacity:.2,slbbAnim:"No Animation",animColor:"#fff",svgEffect:"",rotate:0,clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",animColorTwo:"#f00"},ro=t=>nt.find(({name:o})=>o===t)||null,bo=t=>at.find(({name:o})=>o===t)||null,co=(0,i.memo)(function({currentEffect:t,onIconClick:o}){return Yt("sl-bb-list-selected-effect"),(0,k.jsxs)("div",{className:"sl-bb-button-block-effects-container",style:{height:"207px"},children:[et.map((e,l)=>{const n=e.name,a={...so,...e?.attributes,...e?.attribHelp,blockId:"sl-bb-button-block-effect-list-"+l,blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:n};return(0,k.jsx)("div",{style:{display:"inline-block",height:"94px",padding:"28px 7px",margin:"3px"},id:n===t?"sl-bb-list-selected-effect":null,className:"sl-bb-button-block-effectlist safelayout-bb-button-block"+(n===t?" sl-bb-list-selected":""),onClick:o,title:n,"data-effect-name":n,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1,clickEff:!0})},l)}),(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,l.__)("Preview of Pro Effects.","safelayout-brilliant-buttons")}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:$t}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:Jt})]})},(t,o)=>t.currentEffect===o.currentEffect),uo=(0,i.memo)(function({currentAnim:t,onIconClick:o}){Yt("sl-bb-list-selected-anim");const e={...so,fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007"};return(0,k.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"169px"},children:nt.map((l,n)=>{const a={...e,blockId:"sl-bb-button-block-anim-list-"+n,slbbAnim:l?.name};return"border-color"!==l?.name&&"text-and-border-color"!==l?.name||(a.hasBgShadow=!1,a.animColor="#d63638"),"text-color"===l?.name&&(a.animColor="#d63638"),"swap-color"===l?.name&&(a.hasTextShadow=!1),(0,k.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px"},id:l?.name===t?"sl-bb-list-selected-anim":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(l?.parent||"")+(l?.name===t?" sl-bb-list-selected":""),onClick:o,title:l?.name?.replaceAll("-"," "),"data-anim-name":l?.name,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1})},n)})})},(t,o)=>t.currentAnim===o.currentAnim),fo=(0,i.memo)(function({currentPattern:t,onIconClick:o}){return Yt("sl-bb-list-selected-pattern"),(0,k.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"155px"},children:[bt.map((e,l)=>(0,k.jsx)("div",{style:{display:"inline-block",height:"71px",padding:"7px"},id:e===t?"sl-bb-list-selected-pattern":null,className:"sl-bb-button-block-animlist"+(e===t?" sl-bb-list-selected":""),onClick:o,title:e,"data-pattern-name":e,children:(0,k.jsx)("div",{className:"sl-bb-button-block-pattern sl-bb-button-"+e.toLowerCase().replace(" ","-"),style:{border:"1px solid #ffc3c3",height:"100%",width:"100%",opacity:"0.8",zIndex:"1"}})},l)),(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,l.__)("Preview of Pro Patterns.","safelayout-brilliant-buttons")}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:qt})]})},(t,o)=>t.currentPattern===o.currentPattern),po=(0,i.memo)(function({currentShape:t,onIconClick:o,disabled:e}){Yt("sl-bb-list-selected-shape");const n={...so,bgColor:"#34dd34",fontSize:"13px",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"5px",right:"10px",bottom:"5px",left:"10px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007",hasIcon:!0,iconGap:9,iconPaths:to,iconColor:["#fff"]};return(0,k.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"114px",width:"235px",overflow:e?"hidden":"auto"},children:[it.map((e,l)=>{const a={...n,blockId:"sl-bb-button-block-shape-list-"+l,iconShape:e.name};return(0,k.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:e.name===t?"sl-bb-list-selected-shape":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(e.name===t?" sl-bb-list-selected":""),onClick:o,title:e.name?.replaceAll("-"," "),"data-shape-name":e.name,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1})},l)}),(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,l.__)("Preview of Pro Shapes.","safelayout-brilliant-buttons")}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:Kt}),e&&(0,k.jsx)("span",{className:"sl-bb-button-block-list-disabled"})]})},(t,o)=>t.currentShape===o.currentShape&&t.disabled===o.disabled),mo=(0,i.memo)(function({currentAnim:t,onIconClick:o,disabled:e}){Yt("sl-bb-list-selected-icon-anim");const l={...so,hasIcon:!0,iconColor:["#00f"],bgColor:"#34dd34",fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007",iconAnimColor:"#fff",iconAnimColorTwo:"#f00"};return(0,k.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"167px",width:"235px",overflow:e?"hidden":"auto"},children:[at.map((e,n)=>{const a={...l,blockId:"sl-bb-button-block-icon-anim-list-"+n,iconAnimation:e?.name,iconPaths:e?.iconPaths||to};return"shape-color"!==e?.name&&"fill-and-shape-color"!==e?.name||(a.iconShape="shape002",a.iconShapeColor="#008eff"),(0,k.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:e?.name===t?"sl-bb-list-selected-icon-anim":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(e?.name===t?" sl-bb-list-selected":""),onClick:o,title:e?.name?.replaceAll("-"," "),"data-icon-anim-name":e?.name,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1})},n)}),e&&(0,k.jsx)("span",{className:"sl-bb-button-block-list-disabled"})]})},(t,o)=>t.currentAnim===o.currentAnim&&t.disabled===o.disabled),go=(0,i.memo)(function({currentAnim:t,onIconClick:o}){Yt("sl-bb-list-selected-click-effect");const e={...so,bgColor:"#34dd34",fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"10px",bottom:"3px",left:"10px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007"};return(0,k.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"114px",width:"235px"},children:st.map((l,n)=>{const a={...e,blockId:"sl-bb-button-block-click-effect-list-"+n,clickEffect:l};return(0,k.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:l===t?"sl-bb-list-selected-click-effect":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(l===t?" sl-bb-list-selected":""),onClick:o,title:l?.replaceAll("-"," "),"data-click-name":l,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1,clickEff:!0})},n)})})},(t,o)=>t.currentAnim===o.currentAnim),xo=(0,i.memo)(function({currentLoading:t,onIconClick:o}){return Yt("sl-bb-list-selected-loading-effect"),(0,k.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"110px",width:"235px",fontSize:"20px"},children:rt.map((e,l)=>(0,k.jsx)("div",{style:{display:"inline-block",height:"48px",padding:"13px 0",textAlign:"center",margin:"2px",width:"48px"},id:e===t?"sl-bb-list-selected-loading-effect":null,className:"sl-bb-button-block-animlist"+(e===t?" sl-bb-list-selected":""),onClick:o,title:e,"data-loading-name":e,children:(0,k.jsx)("span",{style:{display:"inline-block",backgroundColor:"No Effect"===e?"transparent":"#006a00"},className:`sl-bb-button-block-loading sl-bb-button-block-loading-${e?.replaceAll(" ","-")}`})},l))})},(t,o)=>t.currentLoading===o.currentLoading),ho=()=>{const t={},o=wp.data.select("core/block-editor"),e=o.getBlocksByName("safelayout/safelayout-button"),l=o.getBlocksByClientId(e),n=[],i=[],r=[],b=[],c=[],u=[],d=[];for(let o=0;o<l.length;o++){let e=l[o]?.attributes,a="";e?.effect&&"No Effect"!=e?.effect&&!n.includes(e?.effect)&&(a=ct[Number(e?.effect?.substring(6))],n.push(e?.effect)),e?.loadingEffect&&"No Effect"!=e?.loadingEffect&&!i.includes(e?.loadingEffect)&&(a+=dt[Number(e?.loadingEffect?.substring(6))],i.push(e?.loadingEffect)),e?.clickEffect&&"No Effect"!=e?.clickEffect&&!r.includes(e?.clickEffect)&&(a+=ft[Number(e?.clickEffect?.substring(6))],r.push(e?.clickEffect)),e?.iconShape&&"No Shape"!=e?.iconShape&&!b.includes(e?.iconShape)&&(a+=pt[Number(e?.iconShape?.substring(5))],b.push(e?.iconShape)),e?.bgPattern&&"No Pattern"!=e?.bgPattern&&!c.includes(e?.bgPattern)&&(a+=mt[Number(e?.bgPattern?.substring(7))],c.push(e?.bgPattern)),e?.iconAnimation&&"No Animation"!=e?.iconAnimation&&xt[e?.iconAnimation]&&!u.includes(e?.iconAnimation)&&(a+=xt[e?.iconAnimation],u.push(e?.iconAnimation)),e?.slbbAnim&&"No Animation"!=e?.slbbAnim&&xt[e?.slbbAnim]&&!u.includes(e?.slbbAnim)&&(a+=xt[e?.slbbAnim],u.push(e?.slbbAnim));let s={};s.elementStyle=a,t[l[o]?.clientId]=s,d.push(l[o]?.clientId)}if(0<l.length){const o=(0,s.dispatch)(a.store);o.__unstableMarkNextChangeAsNotPersistent(),o.updateBlockAttributes(d,t,!0)}},yo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-button","version":"1.3.2","title":"Button (Safelayout)","category":"blocks-safelayout-category","description":"Beautiful and high quality buttons.","supports":{"html":false},"attributes":{"blockId":{"type":"string"},"content":{"type":"string","default":"My Button"},"align":{"type":"string"},"textColor":{"type":"string","default":"#00f"},"textColorSlug":{"type":"string"},"hasBg":{"type":"boolean","default":true},"bgColor":{"type":"string","default":"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)"},"bgColorSlug":{"type":"string"},"textAlign":{"type":"string","default":"center"},"uppercase":{"type":"boolean","default":false},"fontSize":{"type":"string","default":"16px"},"lineHeight":{"type":"string","default":"1.5"},"letterSpacing":{"type":"string","default":"0px"},"width":{"type":"number","default":0},"minWidth":{"type":"string"},"hasBgShadow":{"type":"boolean","default":true},"bgShadow":{"type":"string","default":"0px 1px 3px #000"},"hasTextShadow":{"type":"boolean","default":false},"textShadow":{"type":"string","default":"1px 1px 2px #fff"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"5px","right":"10px","bottom":"5px","left":"10px"}},"border":{"type":"object"},"borderRadius":{"type":"object"},"hasIcon":{"type":"boolean","default":false},"iconShape":{"type":"string","default":"No Shape"},"iconShapeColor":{"type":"string","default":"#3131ff"},"iconShapeColorSlug":{"type":"string"},"iconAnimation":{"type":"string","default":"No Animation"},"iconAnimColor":{"type":"string","default":"#fff"},"iconAnimColorSlug":{"type":"string"},"iconPos":{"type":"string","default":"left"},"iconGap":{"type":"number","default":6},"iconName":{"type":"string","default":"000_next"},"iconPaths":{"type":"array","default":[{"d":"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},"iconColor":{"type":"array","default":["#00f"]},"iconColorSlug":{"type":"array"},"iconStrokeColor":{"type":"array","default":["#000"]},"iconStrokeColorSlug":{"type":"array"},"iconStrokeWidth":{"type":"array","default":[0]},"label":{"type":"string","default":""},"title":{"type":"string","default":""},"linkUrl":{"type":"string","default":""},"linkRel":{"type":"string","default":""},"linkTarget":{"type":"string","default":""},"bgPattern":{"type":"string","default":"No Pattern"},"patternOpacity":{"type":"number","default":0.2},"effect":{"type":"string","default":"No Effect"},"svgEffect":{"type":"string","default":""},"rotate":{"type":"number","default":0},"slbbAnim":{"type":"string","default":"slide-top"},"animColor":{"type":"string","default":"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)"},"animColorSlug":{"type":"string"},"clickEffect":{"type":"string","default":"effect001"},"clickEffectColor":{"type":"string","default":"#1da1f2"},"clickEffectColorSlug":{"type":"string"},"hasLoading":{"type":"boolean","default":false},"loadingText":{"type":"string","default":"Please wait ..."},"loadingEffect":{"type":"string","default":"No Effect"},"animColorTwo":{"type":"string","default":"#f00"},"animColorTwoSlug":{"type":"string"},"hasSubText":{"type":"boolean","default":false},"subText":{"type":"string","default":"More Text"},"subTextAlign":{"type":"string","default":"left"},"subTextFontSize":{"type":"string","default":"13px"},"className":{"type":"string","default":""},"animSTColor":{"type":"string"},"animSTColorSlug":{"type":"string"},"iconAnimColorTwo":{"type":"string","default":"#f00"},"iconAnimColorTwoSlug":{"type":"string"},"elementStyle":{"type":"string","default":""}},"textdomain":"safelayout-brilliant-buttons","editorScript":"file:./index.js","editorStyle":["file:./index.css","file:./style-index.css"],"viewScript":"file:./script.js","viewStyle":"file:./style-index.css"}'),ko={blockId:{type:"string"},content:{type:"string",default:"My Button"},align:{type:"string"},textColor:{type:"string",default:"#00f"},hasBg:{type:"boolean",default:!0},bgColor:{type:"string",default:"#3f3"},textAlign:{type:"string",default:"center"},uppercase:{type:"boolean",default:!1},fontSize:{type:"string",default:"16px"},lineHeight:{type:"string",default:"1.5"},letterSpacing:{type:"string",default:"0px"},width:{type:"number",default:0},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"1px 1px 2px #000"},hasTextShadow:{type:"boolean",default:!1},textShadow:{type:"string",default:"1px 1px 2px #fff"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},border:{type:"object"},borderRadius:{type:"object"},hasIcon:{type:"boolean",default:!1},iconShape:{type:"string",default:"No Shape"},iconShapeColor:{type:"string",default:"#3131ff"},iconAnimation:{type:"string",default:"No Animation"},iconAnimColor:{type:"string",default:"#fff"},iconPos:{type:"string",default:"left"},iconGap:{type:"number",default:6},iconName:{type:"string",default:"000_next"},iconPaths:{type:"array",default:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},iconColor:{type:"array",default:["#00f"]},iconStrokeColor:{type:"array",default:["#000"]},iconStrokeWidth:{type:"array",default:[0]},label:{type:"string",default:""},title:{type:"string",default:""},linkUrl:{type:"string",default:""},linkRel:{type:"string",default:""},linkTarget:{type:"string",default:""},bgPattern:{type:"string",default:"No Pattern"},patternOpacity:{type:"number",default:.2},effect:{type:"string",default:"No Effect"},svgEffect:{type:"string",default:""},rotate:{type:"number",default:0},animation:{type:"string",default:"No Animation"},animColor:{type:"string",default:"#fff"},clickEffect:{type:"string",default:"effect001"},clickEffectColor:{type:"string",default:"#1da1f2"}},jo={...ko,minWidth:{type:"string"},hasLoading:{type:"boolean",default:!1},loadingText:{type:"string",default:"Please wait ..."},loadingEffect:{type:"string",default:"No Effect"}},Co={bgColor:{type:"string",default:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)"},hasBgShadow:{type:"boolean",default:!0},bgShadow:{type:"string",default:"0px 1px 3px #000"},animation:{type:"string",default:"slide-top"},animColor:{type:"string",default:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)"}},wo={...jo,...Co,animColorTwo:{type:"string",default:"#f00"},hasSubText:{type:"boolean",default:!1},subText:{type:"string",default:"More Text"},subTextAlign:{type:"string",default:"left"},subTextFontSize:{type:"string",default:"13px"}};function So({attributes:t,setAttributes:o,isInEditor:e=!0,clickEff:n,others:i}){const{blockId:s,textAlign:r,uppercase:c,fontSize:u,lineHeight:d,letterSpacing:f,width:p,minWidth:m,textColor:g,hasBg:x,bgColor:h,border:y,borderRadius:C,hasIcon:w,iconShape:S,iconShapeColor:M,iconAnimation:N,iconAnimColor:A,iconPos:T,iconGap:z,content:L,hasBgShadow:D,bgShadow:E,hasTextShadow:P,textShadow:O,blockMargin:B,blockPadding:R,label:Y,title:U,linkUrl:G,linkRel:H,linkTarget:X,bgPattern:W,patternOpacity:F,effect:V,svgEffect:Z,rotate:Q,animation:$,slbbAnim:J,animColor:q,clickEffect:K,clickEffectColor:ot,hasLoading:et,loadingText:lt,loadingEffect:nt,animColorTwo:at,hasSubText:it,subText:st,subTextAlign:rt,subTextFontSize:bt}=t,ct=Number(V?.substring(6)),ut=""!=Z&&ct>=31&&ct<=41,dt=ct>=36&&ct<=41,ft=0!=Q&&dt,pt="effect001"===K?"translateY(1px)":"effect002"===K?"scale(0.985)":"",mt="effect001"===K||"effect002"===K?ft?`${pt} rotate(${Q}deg)`:pt:null,gt=j(A)?`url(#animGrad${s})`:A,xt=tt(S),ht={__html:Z},yt={textAlign:r||"center"},kt=i?.oldAnim?$:J,jt=ro(kt);let Ct={textAlign:rt||"left",textShadow:"none",textTransform:"none",fontWeight:"500",fontStyle:"normal",fontSize:bt||null},wt={...v(null,B,R),textTransform:c?"uppercase":null,"--sl-bb-button-text-color":g,"--sl-bb-button-background-color":x?h:"none","--sl-bb-button-anim-color":kt&&"No Animation"!=kt?q:null,"--sl-bb-button-anim-two-color":kt&&"No Animation"!=kt&&jt?.controlTwo?at:null,"--sl-bb-button-pattern-opacity":String(F),"--sl-bb-button-icon-shape-color":"No Shape"!=S?M:null,"--sl-bb-button-p-top":xt?.padding?R?.top||"5px":null,"--sl-bb-button-p-right":xt?.padding?R?.right||"10px":null,"--sl-bb-button-p-bottom":xt?.padding?R?.bottom||"5px":null,"--sl-bb-button-p-left":xt?.padding?R?.left||"10px":null,"--sl-bb-button-click-effect-color":"effect003"===K||"effect004"===K||"effect005"===K?ot:null,"--sl-bb-button-icon-anim-color":"fill-color"===N?gt:null,boxShadow:D?E:null,textShadow:P?O:null,textDecoration:"auto",cursor:e?null:"pointer",userSelect:e?null:"none",fontSize:"16px"!=u?u:null,lineHeight:"1.5"!=d?d:null,letterSpacing:"0px"!=f?f:null,width:0!=p?p+"%":null,minWidth:m||null};wt=io(wt,y,C);const St=kt&&"No Animation"!=kt?`sl-bb-button-block-animation-${kt}`:null,Mt=N&&"No Animation"!=N?`sl-bb-button-block-animation-icon-${N}`:null,Nt="No Effect"!=K?`sl-bb-button-block-click-${K}`:null,vt=D&&ct>=36&&ct<=41?`drop-shadow(${E})`:null,At="No Effect"!=nt||et?"sl-bb-button-block-has-loading":null,_t=t=>(0,k.jsx)(a.RichText,{tagName:"span",value:L,allowedFormats:["core/bold","core/italic","core/non-breaking-space","core/strikethrough","core/subscript","core/superscript","core/text-color","core/underline"],onChange:t=>o({content:t}),placeholder:(0,l.__)("My Button","safelayout-brilliant-buttons"),className:t,style:yt}),It=it?(0,k.jsxs)("span",{className:"sl-bb-button-block-content",style:yt,children:[_t(),(0,k.jsx)("span",{style:Ct,className:b()("sl-bb-button-block-sub-text"),children:st})]}):_t("sl-bb-button-block-content"),Tt=it?(0,k.jsxs)("span",{className:"sl-bb-button-block-content",style:yt,children:[(0,k.jsx)(a.RichText.Content,{tagName:"span",value:L,style:yt}),(0,k.jsx)("span",{style:Ct,className:b()("sl-bb-button-block-sub-text"),children:st})]}):(0,k.jsx)(a.RichText.Content,{tagName:"span",value:L,style:yt,className:"sl-bb-button-block-content"});let zt=null;return!e&&!n||"effect003"!==K&&"effect004"!==K||(zt=function(t){if(!(0!=t.button||e&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,l=o.getBoundingClientRect(),n=t.clientX-(l.left+l.width/2),a=t.clientY-(l.top+l.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(n,a)),b=o.getElementsByClassName("sl-bb-button-click")[0];b&&(b.classList.remove("sl-bb-button-click-anim"),b.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),b.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),b.style.setProperty("--sl-bb-button-click-x",r.x+"px"),b.style.setProperty("--sl-bb-button-click-y",r.y+"px"),b.offsetWidth,b.classList.add("sl-bb-button-click-anim"))}}),(e||n)&&"effect005"===K&&(zt=function(t){if(!(0!=t.button||e&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,l=o.getBoundingClientRect(),n=t.clientX-(l.left+l.width/2),a=t.clientY-(l.top+l.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(n,a)),b=Math.max(o.offsetWidth,o.offsetHeight),c=o.getElementsByClassName("sl-bb-button-click")[0];c&&(c.style.setProperty("width",2*b+"px"),c.style.setProperty("height",2*b+"px"),c.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),c.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),c.style.setProperty("--sl-bb-button-click-x",r.x-b+"px"),c.style.setProperty("--sl-bb-button-click-y",r.y-b+"px"),c.classList.remove("sl-bb-button-click-anim"),c.offsetWidth,c.classList.add("sl-bb-button-click-anim"))}}),(0,k.jsxs)("div",{className:b()(jt?.parent,Nt),style:{filter:vt,"--sl-bb-button-click-effect-transform":mt,width:0!=p?"100%":null,transform:ft?`rotate(${Q}deg)`:null},children:[(0,k.jsxs)("a",{style:wt,href:!e&&G||null,target:!e&&X||null,rel:!e&&H||null,"aria-label":Y||null,title:U||null,className:b()(`sl-bb-button-block-${V?.toLowerCase().replace(" ","-")}`,St,Mt,At),onMouseDown:zt,children:[(0,k.jsxs)("span",{className:"sl-bb-button-effect-parent",children:[jt?.child>=1&&(0,k.jsx)("span",{className:"sl-bb-button-anim1"}),jt?.child>=2&&(0,k.jsx)("span",{className:"sl-bb-button-anim2"}),"No Pattern"!=W&&(0,k.jsx)("span",{className:b()("sl-bb-button-block-pattern",`sl-bb-button-${W}`),style:{position:"absolute"}}),"No Effect"!=V&&"effect001"!=V&&"effect003"!=V&&!ut&&(0,k.jsx)("span",{className:"sl-bb-button-effect"})]}),w?"left"===T?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("span",{className:b()("sl-bb-button-block-icon",xt?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=S&&(0,k.jsx)("span",{className:b()(`sl-bb-button-icon-${S}`)}),i?.oldSVG&&(0,k.jsx)(I,{attributes:t,others:i}),!i?.oldSVG&&(0,k.jsx)(_,{attributes:t,others:i})]}),(i?.d2||""!=L.trim())&&(0,k.jsx)("span",{style:{display:"inline-block",width:z+"px"}}),e?It:(i?.d2||""!=L.trim())&&Tt]}):(0,k.jsxs)(k.Fragment,{children:[e?It:(i?.d2||""!=L.trim())&&Tt,(i?.d2||""!=L.trim())&&(0,k.jsx)("span",{style:{display:"inline-block",width:z+"px"}}),(0,k.jsxs)("span",{className:b()("sl-bb-button-block-icon",xt?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=S&&(0,k.jsx)("span",{className:b()(`sl-bb-button-icon-${S}-right`)}),i?.oldSVG&&(0,k.jsx)(I,{attributes:t,others:i}),!i?.oldSVG&&(0,k.jsx)(_,{attributes:t,others:i})]})]}):(0,k.jsx)(k.Fragment,{children:e?It:Tt}),("effect003"===K||"effect004"===K)&&(0,k.jsx)("span",{className:"sl-bb-button-click"}),"effect005"===K&&(0,k.jsx)("span",{className:"sl-bb-button-click-parent",children:(0,k.jsx)("span",{className:"sl-bb-button-click"})}),!dt&&nt&&"No Effect"!==nt&&(0,k.jsx)("span",{style:{display:"none"},className:b()("sl-bb-button-block-loading",`sl-bb-button-block-loading-${nt}`)}),!dt&&et&&(0,k.jsx)("span",{className:"sl-bb-button-block-loading-text",children:lt})]}),ut&&(0,k.jsx)("svg",{width:"0",height:"0",xmlns:"http://www.w3.org/2000/svg",dangerouslySetInnerHTML:ht,class:"sl-bb-button-block-svg-effect"})]})}const Mo=[{attributes:{...wo,slbbAnim:{type:"string",default:"slide-top"}},save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1})})}},{attributes:wo,migrate:t=>({...t,slbbAnim:t.animation,animation:void 0}),save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{oldAnim:!0}})})}},{attributes:{...jo,...Co},save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{oldSVG:!0}})})}},{attributes:jo,save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{oldSVG:!0}})})}},{attributes:ko,save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{d2:!0,oldSVG:!0}})})}},{attributes:ko,save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{d1:!0,oldSVG:!0}})})}}],{name:No}=yo;(0,n.registerBlockType)({name:No,...yo},{title:(0,l.__)("Button (Safelayout)","safelayout-brilliant-buttons"),description:(0,l.__)("Beautiful buttons.","safelayout-brilliant-buttons"),keywords:[(0,l.__)("Button","safelayout-brilliant-buttons"),(0,l.__)("Buttons","safelayout-brilliant-buttons"),(0,l.__)("Safelayout","safelayout-brilliant-buttons"),(0,l.__)("brilliant","safelayout-brilliant-buttons")],icon:(0,k.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsx)("defs",{children:(0,k.jsxs)("linearGradient",{id:"sl-bb-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,k.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,k.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,k.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,k.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,k.jsx)("path",{fill:"url(#sl-bb-main-icon-grad101)",stroke:"#333333","stroke-width":".5",d:"M20.4 5.4H3.6C2.28 5.4 1.2 6.48 1.2 7.8V16.2C1.2 17.52 2.28 18.6 3.6 18.6H20.4C21.72 18.6 22.8 17.52 22.8 16.2V7.8C22.8 6.48 21.72 5.4 20.4 5.4ZM19.5 15.5C19.5 15.8 19.3 16 19 16H5C4.7 16 4.5 15.8 4.5 15.5V8.5C4.5 8.2 4.7 8 5 8H19C19.3 8 19.5 8.2 19.5 8.5V15.5ZM8 12.8H16V11.3H8V12.8Z"})]}),example:{attributes:{align:"center",bgColor:"linear-gradient(30deg, #0076ff 0%, #47f4ff 52%, #078eff 95%, #0083ff 100%)",fontSize:"46px",hasBgShadow:!0,bgShadow:"1px 2px 3px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",effect:"effect007",borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,bgPattern:"pattern002",patternOpacity:.6}},edit:function(t){const{attributes:o,setAttributes:e,clientId:l}=t,{align:n,className:r}=o;(0,i.useLayoutEffect)(()=>{const t=(0,s.dispatch)(a.store);return t.__unstableMarkNextChangeAsNotPersistent(),t.updateBlockAttributes(l,{blockId:l}),ho(),()=>{ho()}},[]);const c=(0,a.useBlockProps)({className:b()("safelayout-bb-button-block",r),style:{textAlign:n}});return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(oo,{attributes:o,setAttributes:e,clientId:l}),(0,k.jsx)("div",{...c,children:(0,k.jsx)(Gt,{attributes:o,setAttributes:e})})]})},save:function({attributes:t}){const{align:o,className:e}=t,l=a.useBlockProps.save({className:b()("safelayout-bb-button-block",e),style:{textAlign:o}});return(0,k.jsx)("div",{...l,children:(0,k.jsx)(Gt,{attributes:t,isInEditor:!1})})},deprecated:Mo})},452(t,o){var e;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var t="",o=0;o<arguments.length;o++){var e=arguments[o];e&&(t=i(t,a(e)))}return t}function a(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var o="";for(var e in t)l.call(t,e)&&t[e]&&(o=i(o,e));return o}function i(t,o){return o?t?t+" "+o:t+o:t}t.exports?(n.default=n,t.exports=n):void 0===(e=function(){return n}.apply(o,[]))||(t.exports=e)}()}},e={};function l(t){var n=e[t];if(void 0!==n)return n.exports;var a=e[t]={exports:{}};return o[t](a,a.exports,l),a.exports}l.m=o,t=[],l.O=(o,e,n,a)=>{if(!e){var i=1/0;for(c=0;c<t.length;c++){for(var[e,n,a]=t[c],s=!0,r=0;r<e.length;r++)(!1&a||i>=a)&&Object.keys(l.O).every(t=>l.O[t](e[r]))?e.splice(r--,1):(s=!1,a<i&&(i=a));if(s){t.splice(c--,1);var b=n();void 0!==b&&(o=b)}}return o}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[e,n,a]},l.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return l.d(o,{a:o}),o},l.d=(t,o)=>{for(var e in o)l.o(o,e)&&!l.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},l.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var o=globalThis.document;if(!t&&o&&(o.currentScript&&"SCRIPT"===o.currentScript.tagName.toUpperCase()&&(t=o.currentScript.src),!t)){var e=o.getElementsByTagName("script");if(e.length)for(var n=e.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=e[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=t+"../"})(),(()=>{var t={690:0,382:0};l.O.j=o=>0===t[o];var o=(o,e)=>{var n,a,[i,s,r]=e,b=0;if(i.some(o=>0!==t[o])){for(n in s)l.o(s,n)&&(l.m[n]=s[n]);if(r)var c=r(l)}for(o&&o(e);b<i.length;b++)a=i[b],l.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return l.O(c)},e=globalThis.webpackChunksafelayout_brilliant_buttons=globalThis.webpackChunksafelayout_brilliant_buttons||[];e.forEach(o.bind(null,0)),e.push=o.bind(null,e.push.bind(e))})();var n=l.O(void 0,[382],()=>l(429));n=l.O(n)})();
     1(()=>{var t,o={429(t,o,e){"use strict";const l=window.wp.i18n,n=window.wp.blocks,a=window.wp.blockEditor,i=window.wp.element,s=window.wp.data;var r=e(452),b=e.n(r);const c=window.wp.components,u=window.React,d=window.wp.primitives,f=(0,u.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(d.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),p=(0,u.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(d.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,u.createElement)(d.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,u.createElement)(d.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),m=(0,u.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(d.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),g=(0,u.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(d.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),x=(0,u.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)(d.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),h=(0,u.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(d.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),y=(0,u.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,u.createElement)(d.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),k=window.ReactJSXRuntime,j=t=>t&&-1!=t.indexOf("gradient"),C=(t,o)=>Math.round(t*10**o)/10**o;function w(t){const{grad:o,id:e}=t;function l(t,o,e){var l=o.slice(e).search(/,|\)|\d/);","==o[e+l]?t.push(0):")"==o[e+l]&&t.push(1)}let n=[],a=[],i=[".","-","+","1","2","3","4","5","6","7","8","9","0"],s=o.indexOf("(")+1,r=0,b=s,c=o.length;for(;b<c;){if(s=1,"#"===o[b])n.push(o.substr(b,s=o.slice(b).search(/,|\)|\s/))),l(a,o,b+s);else if("r"===o[b]||"h"===o[b]||"v"===o[b])n.push(o.substr(b,s=o.indexOf(")",b)-b+1)),l(a,o,b+s);else if(-1!=i.indexOf(o[b])){let t=b+o.slice(b).search(/,|%|\)/),e=o.indexOf("deg",b);-1!=e&&(-1===t||e<t)?r=180-Number(o.substr(b,s=e-b)):a.push(o.substr(b,s=t-b)/100)}b+=s}r=-r*(Math.PI/180);const u=C(.5+.5*Math.sin(r),4),d=C(.5-.5*Math.cos(r),4),f=C(.5+.5*Math.sin(r+Math.PI),4),p=C(.5-.5*Math.cos(r+Math.PI),4);return"radial"===o.substr(0,6)?(0,k.jsx)(S,{id:e,colors:n,offsets:a,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,k.jsx)(M,{id:e,colors:n,offsets:a,x1:u,y1:d,x2:f,y2:p})}function S(t){const{colors:o,offsets:e,id:l,cx:n,cy:a,r:i,fx:s,fy:r}=t;return(0,k.jsx)("radialGradient",{id:l,cx:n,cy:a,r:i,fx:s,fy:r,children:(0,k.jsx)(N,{colors:o,offsets:e})})}function M(t){const{colors:o,offsets:e,id:l,x1:n,y1:a,x2:i,y2:s}=t;return(0,k.jsx)("linearGradient",{id:l,x1:n,y1:a,x2:i,y2:s,children:(0,k.jsx)(N,{colors:o,offsets:e})})}function N(t){const{colors:o,offsets:e}=t;return(0,k.jsx)(k.Fragment,{children:o.map((t,o)=>(0,k.jsx)("stop",{"stop-color":t,offset:e[o]},o))})}function v(t,o,e){return{textAlign:t||null,marginTop:o?.top||null,marginRight:o?.right||null,marginBottom:o?.bottom||null,marginLeft:o?.left||null,paddingTop:e?.top||null,paddingRight:e?.right||null,paddingBottom:e?.bottom||null,paddingLeft:e?.left||null}}function A({icon:t}){const o="path-sl-bb-button-block-list"+t.name?.replaceAll(" ","_"),e=t?.attributes?.color||["#5c5c5c"],l=t.paths,n="47px";return(0,k.jsx)("div",{style:{height:n,width:n},children:(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,k.jsx)("symbol",{viewBox:"0 0 24 24",id:o,children:l.map((t,o)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:e[t.color||0],d:t.d,style:t.style},o))}),(0,k.jsx)("use",{href:`#${o}`})]})})}function I({attributes:t,others:o}){const{blockId:e,iconColor:l,iconColorSlug:n,iconStrokeColor:a,iconStrokeColorSlug:i,iconStrokeWidth:s,iconPaths:r,iconAnimColor:b}=t,u=`fillGrad${e}`,d=`strokeGrad${e}`,f=l.map((t,o)=>j(t)?`url(#${u+o})`:""),p=a.map((t,o)=>j(t)?`url(#${d+o})`:"");return(0,k.jsxs)(c.SVG,{viewBox:"4 4 16 16",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsxs)("defs",{children:[f.map((t,o)=>""!=t&&(0,k.jsx)(w,{grad:l[o],id:u+o},o)),p.map((t,o)=>""!=t&&(0,k.jsx)(w,{grad:a[o],id:d+o},o)),j(b)&&(0,k.jsx)(w,{grad:b,id:`animGrad${e}`})]}),r.map((t,o)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:f[t.color||0]||(n&&n[t.color||0]&&""!=n[t.color||0]?`var( --wp--preset--${n[t.color||0]}, ${l[t.color||0]})`:l[t.color||0]),stroke:p[t.strokeColor||0]||(i&&i[t.strokeColor||0]&&""!=i[t.strokeColor||0]?`var( --wp--preset--${i[t.strokeColor||0]}, ${a[t.strokeColor||0]})`:a[t.strokeColor||0]),strokeWidth:s[t.strokeWidth||0],d:t.d,style:t.style},o))]})}function _({attributes:t,others:o}){const{blockId:e,iconColor:l,iconStrokeColor:n,iconStrokeWidth:a,iconPaths:i,iconAnimColor:s}=t,r=`path${e}`,b=`fillGrad${e}`,u=`strokeGrad${e}`,d=l.map((t,o)=>j(t)?`url(#${b+o})`:""),f=n.map((t,o)=>j(t)?`url(#${u+o})`:"");return(0,k.jsxs)(c.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsxs)("defs",{children:[d.map((t,o)=>""!=t&&(0,k.jsx)(w,{grad:l[o],id:b+o},o)),f.map((t,o)=>""!=t&&(0,k.jsx)(w,{grad:n[o],id:u+o},o)),j(s)&&(0,k.jsx)(w,{grad:s,id:`animGrad${e}`})]}),(0,k.jsx)("symbol",{x:"-24",y:"-24",width:"144",height:"144",viewBox:"0 0 24 24",id:r,children:i.map((t,o)=>(0,k.jsx)(c.Path,{"vector-effect":"non-scaling-stroke",fill:d[t.color||0]||l[t.color||0],stroke:f[t.strokeColor||0]||n[t.strokeColor||0],strokeWidth:a[t.strokeWidth||0],d:t.d,style:t.style},o))}),!0!==o?.d1?(0,k.jsx)("use",{href:`#${r}`}):(0,k.jsx)("use",{xlinkHref:`#${r}`})]})}const T=e.p+"images/gradients.3ad8dc67.png",z=({colorValue:t,label:o})=>(0,k.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,k.jsx)(c.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:t}),(0,k.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:o,children:o})]}),L=t=>({onToggle:o,isOpen:e})=>{const{colorValue:l,label:n,disabled:a}=t,i={onClick:o,className:b()("block-editor-panel-color-gradient-settings__dropdown","sl-bb-button-block-no-padding-left-right",{"is-open":e}),"aria-expanded":e};return(0,k.jsx)(c.Button,{...i,disabled:a,children:(0,k.jsx)(z,{colorValue:l,label:n})})};function D({settings:t,label:o,disabled:e,position:l}){const n={colorValue:t.gradientValue??t.colorValue,label:o,disabled:e};return(0,k.jsx)(c.Dropdown,{popoverProps:{placement:l?.pos||"left-start",offset:l?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:L(n),renderContent:()=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:b()("block-editor-panel-color-gradient-settings__dropdown-content","sl-bb-button-block-pallet-container"),style:{[`--sl-bb-active-slug-${t?.selectedSlug}`]:"2px solid #3858e9"},children:(0,k.jsx)(U,{...t})})})})}const E={name:"color",title:(0,l.__)("Solid","safelayout-brilliant-buttons"),value:"color"},P={name:"gradient",title:(0,l.__)("Gradient","safelayout-brilliant-buttons"),value:"gradient"},O=[E,P];function B(t,o){const e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",e.style.width="0px",e.style.height="0px",e.style.visibility="hidden",e.style.overflow="hidden",e.style[t]=o,document.body.appendChild(e);const l=window.getComputedStyle(e)[t];return document.body.removeChild(e),"rgba(0,0,0,0)"===l.replace(/\s+/g,"")?"":l}function R(t){return!t||t?.legend<=0?t:t.map(t=>{const o={...t},e=B("backgroundImage",t?.gradient);return e&&"none"!==e?(o.gradient=function(t){if(!t||"string"!=typeof t)return t;const o={"to top":"0deg","to top right":"45deg","to right top":"45deg","to right":"90deg","to bottom right":"135deg","to right bottom":"135deg","to bottom":"180deg","to bottom left":"225deg","to left bottom":"225deg","to left":"270deg","to top left":"315deg","to left top":"315deg"};return t.replace(/linear-gradient\s*\(\s*([^,]+)/i,(t,e)=>{const l=e.trim().toLowerCase();return`linear-gradient(${o[l]??e}`})}((l=e)&&"string"==typeof l?l.replace(/radial-gradient\s*\(\s*([^,]+)\s*,\s*/i,(t,o)=>/^(#|rgb|hsl|var)/i.test(o.trim())?t:"radial-gradient("):l),o):null;var l})}const Y=(0,i.memo)(function({colors:t,onClick:o,img:e,noCurentInherit:n,tab:i}){let s=[],r=[],u=[];if("COLOR"===i){const t=(0,a.useSettings)("color.palette.theme")[0]||window?.slbbColorData?.color?.theme||[];r=(0,a.useSettings)("color.palette.default")[0]||window?.slbbColorData?.color?.default||[],u=(0,a.useSettings)("color.palette.custom")[0]||window?.slbbColorData?.color?.custom||[];const o=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/,e=/^(rgb|hsl)a?\(.+?\)$/i;s=t.map(t=>{const l={...t};let n=l.color?l.color.trim():"";if(!n)return null;if(n.startsWith("var(")){const t=B("backgroundColor",n);if(!t||"none"===t)return null;n=t}return o.test(n)||e.test(n)?(l.color=n,l):null}).filter(t=>null!==t),s?.length>0&&!n&&(s.push({name:"CurrentColor ( CSS keyword )",slug:"currentColor",color:"currentColor"}),s.push({name:"Inherit ( CSS keyword )",slug:"Inherit",color:"inherit"}))}else s=(R((0,a.useSettings)("color.gradients.theme")[0]||window?.slbbColorData?.gradient?.theme)||[]).filter(t=>null!==t),r=(R((0,a.useSettings)("color.gradients.default")[0]||window?.slbbColorData?.gradient?.default)||[]).filter(t=>null!==t),u=(R((0,a.useSettings)("color.gradients.custom")[0]||window?.slbbColorData?.gradient?.custom)||[]).filter(t=>null!==t);let d=s&&s?.length>0?(0,l.__)("Theme","safelayout-brilliant-buttons"):"";d=u&&u?.length>0?s&&s?.length>0?(0,l.__)("Theme & Custom","safelayout-brilliant-buttons"):(0,l.__)("Custom","safelayout-brilliant-buttons"):d;const f="COLOR"===i?"color--":"gradient--";return(0,k.jsxs)(k.Fragment,{children:[(s&&s?.length>0||u&&u?.length>0)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.BaseControl.VisualLabel,{style:{margin:"10px 0 0"},children:d}),(0,k.jsxs)("div",{className:b()("sl-bb-button-block-color-gradient-container","sl-bb-button-block-color-gradient-container-theme"),style:{height:"auto",maxHeight:"66px"},children:[s.map((t,e)=>(0,k.jsx)("span",{onClick:o,title:t?.name,"data-slug":f+t?.slug,style:{background:"COLOR"===i?t?.color:t?.gradient,outline:`var(--sl-bb-active-slug-${f+t?.slug}, initial)`}},e)),s&&s?.length>0&&u&&u?.length>0&&(0,k.jsx)("br",{}),u.map((t,e)=>(0,k.jsx)("span",{onClick:o,title:t?.name,"data-slug":f+t?.slug,style:{background:"COLOR"===i?t?.color:t?.gradient,outline:`var(--sl-bb-active-slug-${f+t?.slug}, initial)`}},e))]})]}),(0,k.jsx)(c.BaseControl.VisualLabel,{style:{margin:"15px 0 0"},children:(0,l.__)("Default","safelayout-brilliant-buttons")}),(0,k.jsxs)("div",{className:"sl-bb-button-block-color-gradient-container",children:[r.map((t,e)=>(0,k.jsx)("span",{onClick:o,title:t?.name,"data-slug":f+t?.slug,style:{background:"COLOR"===i?t?.color:t?.gradient}},e)),r&&r?.length>0&&(0,k.jsx)("br",{}),t.map((t,e)=>(0,k.jsx)("span",{onClick:o,title:"COLOR"===i?t:null,style:{background:t}},e)),e&&(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:T})]})]})},(t,o)=>t.tab===o.tab);function U({__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,className:e,label:l,onlySolid:n,selectedSlug:a,noCurentInherit:i,onColorChange:s,onColorArrayClick:r,onGradientChange:u,onGradientArrayClick:d,colorValue:f,gradientValue:p,clearable:m,showTitle:g=!1,enableAlpha:x,headingLevel:h}){let y=[];a&&(a=a?.replace(/^(color--|gradient--)/,""),y=[{name:a,slug:a,color:f}]);const C={[E.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.ColorPalette,{value:f,selectedSlug:a,onChange:t=>s(t),__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,clearable:m,enableAlpha:x,colors:y,headingLevel:h}),(0,k.jsx)(Y,{colors:H,onClick:r,tab:"COLOR",noCurentInherit:i})]}),[P.value]:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.GradientPicker,{__nextHasNoMargin:!0,value:j(p)?p:`linear-gradient(${p} 0%, ${p} 100%)`,onChange:t=>u(t),__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,clearable:m,enableAlpha:x,gradients:[],headingLevel:h}),(0,k.jsx)(Y,{colors:X,onClick:d,img:!0,tab:"GRADIENT",noCurentInherit:i})]})};return(0,k.jsx)(c.BaseControl,{__nextHasNoMarginBottom:!0,className:b()("block-editor-color-gradient-control",e),children:(0,k.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,k.jsxs)(c.__experimentalVStack,{spacing:1,children:[g&&(0,k.jsx)("legend",{children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,k.jsx)(c.BaseControl.VisualLabel,{children:l})})}),(0,k.jsx)(c.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:n?[E]:O,initialTabName:j(p)?P.value:E.value,children:t=>{return o=t.value,(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:C[o]});var o}})]})})})}function G(t){const{attribute:o,label:e,onlySolid:l,change:n,click:a,disabled:i,position:s,selectedSlug:r,noCurentInherit:b}=t;return(0,k.jsx)(D,{settings:{onlySolid:l,selectedSlug:r,noCurentInherit:b,enableAlpha:!0,clearable:!1,colorValue:o,gradientValue:o,onColorChange:n,onGradientChange:n,onColorArrayClick:a,onGradientArrayClick:a,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:e,disabled:i,position:s})}const H=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],X=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],W={rotate:0,clickEffect:"effect001"};let F=[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],V=[{d:"M6.46 6.605 7 8.905l-.54 2.29 2.01 1.24L9.7 14.445l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L17 8.905l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C9.79 12.945 8 11.155 8 8.935c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C10.33 11.945 9 10.605 9 8.945c0-1.65 1.33-3 2.99-3S15 7.295 15 8.945c0 1.66-1.35 3-3.01 3zm3.84 1.1-1.28 2.24-2.08-.47L15 20.645l1.4-2.2h2.5zm-7.7.07 1.25 2.25 2.13-.51L9 20.645 7.6 18.445H5.1z"}],Z=[{d:"M8 14.5h9c.55 0 1 .45 1 1s-.45 1-1 1H7c-.55 0-1-.45-1-1V5.5H4c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H8v1zm-.5 3c.83 0 1.5.67 1.5 1.5S8.33 20.5 7.5 20.5 6 19.83 6 19 6.67 17.5 7.5 17.5zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"}],Q=[{d:"M18.125 10.367C17.558 7.492 15.033 5.333 12 5.333 9.592 5.333 7.5 6.7 6.458 8.7 3.95 8.967 2 11.092 2 13.667c0 2.758 2.242 5 5 5h10.833c2.3 0 4.167-1.867 4.167-4.167 0-2.2-1.708-3.983-3.875-4.133zM17.833 17H7c-1.842 0-3.333-1.492-3.333-3.333 0-1.708 1.275-3.133 2.967-3.308l.892-.092.417-.792C8.733 7.95 10.283 7 12 7c2.183 0 4.067 1.55 4.492 3.692l.25 1.25 1.275.092c1.3.083 2.317 1.175 2.317 2.467 0 1.375-1.125 2.5-2.5 2.5zm-4.625-6.667h-2.417v2.5H8.667l3.333 3.333 3.333-3.333h-2.125z"}];const $={top:"5px",right:"5px",bottom:"5px",left:"5px"};function J(t){return{hasBgShadow:!0,bgShadow:t}}function q(t){return{hasTextShadow:!0,textShadow:t}}const K=t=>et.find(({name:o})=>o===t)||null,tt=t=>it.find(({name:o})=>o===t)||null,ot=()=>({...W,borderRadius:$}),et=[{name:"No Effect",attributes:{...W,hasBgShadow:!1,hasTextShadow:!1,hasIconShadow:!1,hasSubTextShadow:!1,bgPattern:"No Pattern"}},{name:"effect001",attributes:{...W,border:{color:"#5C5CFF",style:"solid",width:"1px"},borderRadius:{top:"50px",right:"50px",bottom:"50px",left:"50px"},hasBgShadow:!1,clickEffect:"effect005"},attribHelp:{hasBg:!1,slbbAnim:"border-color",animColor:"#0000ff"}},{name:"effect002",attributes:{...ot(),...J("0px 1px 1px #000000CF"),clickEffect:"effect004",clickEffectColor:"#f00"},attribHelp:{slbbAnim:"swap-color"}},{name:"effect003",attributes:{...ot(),...J("0px 1px 7px #000"),bgPattern:"pattern002",patternOpacity:.3,clickEffect:"effect003"},attribHelp:{slbbAnim:"slide-bottom",animColor:"#fff"}},{name:"effect004",attributes:{...ot(),...J("0px 1px 2px #000")},attribHelp:{...q("1px 1px 1px #fff"),slbbAnim:"shadow"}},{name:"effect005",attributes:{...ot(),...J("0px 0px 2px #000")},attribHelp:{...q("1px 1px 1px #fff"),slbbAnim:"background-color",animColor:"#ff3"}},{name:"effect006",attributes:{...ot(),borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},...J("0px 1px 2px #202020"),clickEffect:"effect005"},attribHelp:{...q("1px 1px 1px #fff"),slbbAnim:"split-vertical",animColor:"#FFFFCC"}},{name:"effect007",attributes:{...ot(),borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},...J("0px 0px 2px #202020"),bgPattern:"pattern001",patternOpacity:.15,clickEffect:"effect004"},attribHelp:{...q("1px 1px 1px #fff"),slbbAnim:"light1"}}],lt={control:!0,solid:!1,child:1,controlSTColor:!0,labelTwo:(0,l.__)("Animation Text color","safelayout-brilliant-buttons"),solidTwo:!0},nt=[{name:"No Animation"},{name:"light",child:1},{name:"light1",child:1},{name:"swap-color"},{name:"background-color",control:!0,label:(0,l.__)("Animation Background color","safelayout-brilliant-buttons"),solid:!1},{name:"text-color",control:!0,label:(0,l.__)("Animation Text color","safelayout-brilliant-buttons"),solid:!0},{name:"background-and-text-color",control:!0,label:(0,l.__)("Animation Background color","safelayout-brilliant-buttons"),solid:!1,controlTwo:!0,labelTwo:(0,l.__)("Animation Text color","safelayout-brilliant-buttons"),solidTwo:!0},{name:"border-color",control:!0,label:(0,l.__)("Animation Border color","safelayout-brilliant-buttons"),solid:!0},{name:"text-and-border-color",control:!0,label:(0,l.__)("Animation Text and Border color","safelayout-brilliant-buttons"),solid:!0},{name:"split-horizontal",label:(0,l.__)("Animation Split color","safelayout-brilliant-buttons"),...lt},{name:"split-vertical",label:(0,l.__)("Animation Split color","safelayout-brilliant-buttons"),...lt},{name:"stretch-horizontal",label:(0,l.__)("Animation Stretch color","safelayout-brilliant-buttons"),...lt},{name:"stretch-vertical",label:(0,l.__)("Animation Stretch color","safelayout-brilliant-buttons"),...lt},{name:"stretch-corner1",label:(0,l.__)("Animation Stretch color","safelayout-brilliant-buttons"),...lt},{name:"stretch-corner2",label:(0,l.__)("Animation Stretch color","safelayout-brilliant-buttons"),...lt},{name:"slide-top",label:(0,l.__)("Animation Slide color","safelayout-brilliant-buttons"),...lt},{name:"slide-bottom",label:(0,l.__)("Animation Slide color","safelayout-brilliant-buttons"),...lt},{name:"slide-left",label:(0,l.__)("Animation Slide color","safelayout-brilliant-buttons"),...lt},{name:"slide-right",label:(0,l.__)("Animation Slide color","safelayout-brilliant-buttons"),...lt},{name:"ellipse",label:(0,l.__)("Animation Ellipse color","safelayout-brilliant-buttons"),...lt},{name:"rect",label:(0,l.__)("Animation Rect color","safelayout-brilliant-buttons"),...lt},{name:"letter-space"},{name:"brighten"},{name:"darken"},{name:"grayscale"},{name:"sepia"},{name:"opacity"},{name:"shadow"},{name:"yellow-glow"},{name:"red-glow"},{name:"blue-glow"},{name:"violet-glow"},{name:"zoom-in"},{name:"zoom-out"},{name:"push",parent:"sl-bb-button-block-animation-push-parent"},{name:"move-up"},{name:"move-down"},{name:"swing-3D-X",parent:"sl-bb-button-block-animation-swing-3D-parent"},{name:"swing-3D-Y",parent:"sl-bb-button-block-animation-swing-3D-parent"},{name:"swing"},{name:"bell"},{name:"tremble"},{name:"surprise"},{name:"jelly"},{name:"expand"},{name:"wobble"}],at=[{name:"No Animation"},{name:"fill-color",control:!0,label:(0,l.__)("Animation fill color","safelayout-brilliant-buttons")},{name:"shape-color",control:!0,label:(0,l.__)("Animation shape color","safelayout-brilliant-buttons")},{name:"fill-and-shape-color",control:!0,label:(0,l.__)("Animation fill color","safelayout-brilliant-buttons"),controlTwo:!0,labelTwo:(0,l.__)("Animation shape color","safelayout-brilliant-buttons")},{name:"yoyo-X",iconPaths:F},{name:"yoyo-Y",iconPaths:[{d:"M11.4 20.2 6.06 14.77 8.12 14.77C8.73 14.77 9.06 14.39 9.06 13.83L9.06 4.08 13.74 4.08 13.74 13.83C13.74 14.39 14.07 14.77 14.68 14.77L16.74 14.77Z"}]},{name:"rotate-X",iconPaths:F},{name:"rotate-Y",iconPaths:[{d:"M16.626 6.408l1.608 1.128-6.972 10.056H9.654L5.766 12.144l1.608-1.5 3.084 2.88z"}]},{name:"rotate-Z",iconPaths:[{d:"M12.2 5.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L6.95 7.66C8.23 6.2 10.11 5.28 12.2 5.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H2.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H7.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}]},{name:"swing"},{name:"bell"},{name:"tremble"},{name:"surprise"},{name:"jelly"},{name:"expand"},{name:"wobble"},{name:"brighten"},{name:"darken"},{name:"grayscale"},{name:"sepia"},{name:"opacity"},{name:"yellow-glow"},{name:"red-glow"},{name:"blue-glow"},{name:"violet-glow"}],it=[{name:"No Shape"},{name:"shape001"},{name:"shape002"},{name:"shape003"}],st=["No Effect","effect001","effect002","effect003","effect004","effect005"],rt=["No Effect","effect001","effect002","effect003","effect004","effect005","effect006","effect007"],bt=["No Pattern","pattern001","pattern002","pattern003","pattern004","pattern005"],ct=["not use","",".sl-bb-button-block-effect002 .sl-bb-button-effect{background-image:radial-gradient(115% 100% at 50% 0, #fff 5%, #ffffff4d 40%, #00000073 100%);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}","",".sl-bb-button-block-effect004 .sl-bb-button-effect{background-image:linear-gradient(#ffffff4d, #0003 50%, #00000073 50.1%, #0000001a);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect005 .sl-bb-button-effect{background-image:linear-gradient(#ffffff4d, #ffffff12 50%, #0000001f 50.1%, #00000059);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect006 .sl-bb-button-effect{background-image:linear-gradient(-180deg, rgba(255, 126, 49, .07), rgba(230, 44, 3, .55));background-position-y:.8em;background-repeat:no-repeat;border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect007 .sl-bb-button-effect{border-radius:inherit;box-shadow:inset 0 -20px 20px -20px rgba(27, 27, 27, .4);box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}"],ut=".sl-bb-button-block-loading{animation:sl-bb-button-block-loading-anim 1.1s linear infinite;aspect-ratio:1/1;background-blend-mode:difference;background-color:var(--sl-bb-button-text-color);background-repeat:no-repeat;display:none;height:1em;pointer-events:none;width:1em}@keyframes sl-bb-button-block-loading-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}",dt=["not use",ut+".sl-bb-button-block-loading-effect001{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAzOSI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJzbC1iYi1ncmFkaWVudDAxIiB4MT0iNTAlIiB5MT0iMCUiIHgyPSI1MCUiIHkyPSIxMDAlIj48c3RvcCBzdG9wLWNvbG9yPSIlMjNmZmYiIG9mZnNldD0iMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agc3RvcC1jb2xvcj0iJTIzZmZmIiBvZmZzZXQ9IjEiIHN0b3Atb3BhY2l0eT0iMC40Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InNsLWJiLWdyYWRpZW50MDIiIHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiPjxzdG9wIHN0b3AtY29sb3I9IiUyM2ZmZiIgb2Zmc2V0PSIwIiBzdG9wLW9wYWNpdHk9IjAuMSIvPjxzdG9wIHN0b3AtY29sb3I9IiUyM2ZmZiIgb2Zmc2V0PSIxIiBzdG9wLW9wYWNpdHk9IjAuNCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZS13aWR0aD0iNXB4IiBzdHJva2U9InVybCgjc2wtYmItZ3JhZGllbnQwMSkiIGQ9Ik0xOS41IDM2LjQ1IEMxMC4xIDM2LjQ1IDIuNSAyOC44NSAyLjUgMTkuNSBDMi41IDEwLjEgMTAuMSAyLjUgMTkuNSAyLjUiLz48cGF0aCBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjVweCIgc3Ryb2tlPSJ1cmwoI3NsLWJiLWdyYWRpZW50MDIpIiBkPSIgTTE5LjUgMi40NSBDMjguOSAyLjQ1IDM2LjQ1IDEwLjEgMzYuNDUgMTkuNDUgQzM2LjQ1IDI4Ljg1IDI4LjkgMzYuNCAxOS41IDM2LjQiLz48L3N2Zz4=)}",ut+".sl-bb-button-block-loading-effect002{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTEyIDJjLTUuNDQ0IDAtOS44NzIgNC4zNTEtOS45OTcgOS43NjUuMTE2LTQuNzI0IDMuNzA4LTguNTE1IDguMTIyLTguNTE1IDQuNDg3IDAgOC4xMjUgMy45MTggOC4xMjUgOC43NSAwIDEuMDM2LjgzOSAxLjg3NSAxLjg3NSAxLjg3NXMxLjg3NS0uODM5IDEuODc1LTEuODc1YzAtNS41MjMtNC40NzctMTAtMTAtMTB6TTEyIDIyYzUuNDQ0IDAgOS44NzItNC4zNTEgOS45OTctOS43NjUtLjExNiA0LjcyNC0zLjcwOCA4LjUxNS04LjEyMiA4LjUxNS00LjQ4NyAwLTguMTI1LTMuOTE4LTguMTI1LTguNzUgMC0xLjAzNi0uODM5LTEuODc1LTEuODc1LTEuODc1cy0xLjg3NS44MzktMS44NzUgMS44NzVjMCA1LjUyMyA0LjQ3NyAxMCAxMCAxMHoiPjwvcGF0aD48L3N2Zz4=)}",ut+".sl-bb-button-block-loading-effect003{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMuNSAzLjUgMTcgMTciPjxwYXRoIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiIGQ9Ik0xMiAzLjY2N2MtLjQ2IDAtLjgzMy4zNzMtLjgzMy44MzN2MCAxLjY2N2MwIC40Ni4zNzMgLjgzMy44MzMgLjgzM3MuODMzLS4zNzMuODMzLS44MzN2MC0xLjY2N2MwLS40Ni0uMzczLS44MzMtLjgzMy0uODMzdjB6TTE5LjUgMTEuMTY3aC0xLjY2N2MtLjQ2IDAtLjgzMy4zNzMtLjgzMy44MzNzLjM3My44MzMgLjgzMy44MzN2MGgxLjY2N2MuNDYgMCAuODMzLS4zNzMuODMzLS44MzNzLS4zNzMtLjgzMy0uODMzLS44MzN2MHpNNyAxMmMwLS40Ni0uMzczLS44MzMtLjgzMy0uODMzdjBoLTEuNjY3Yy0uNDYgMC0uODMzLjM3My0uODMzLjgzM3MuMzczLjgzMyAuODMzLjgzM3YwaDEuNjY3Yy40NiAwIC44MzMtLjM3My44MzMtLjgzM3Ywek03LjE4MyA2LjE2N2MtLjE1MS0uMTQzLS4zNTUtLjIzLS41NzktLjIzLS40NjYgMC0uODQzLjM3Ny0uODQzLjg0MyAwIC4yNDEuMTAxIC40NTguMjYzIC42MTJsMCAwIDEuMiAxLjE1OGMuMTUuMTQ1IC4zNTQuMjM0IC41NzkuMjM0IC4wMSAwIC4wMjEgMCAuMDMxLS4wMDFsLS4wMDEgMGMuMjM2LS4wMDEuNDQ5LS4xLjYtLjI1OGwwIDBjLjE1LS4xNTEuMjQyLS4zNTguMjQyLS41ODhzLS4wOTMtLjQzNy0uMjQyLS41ODhsMCAwek0xNi4xNjcgOC43ODNjLjIyNC0uMDAxLjQyNi0uMDkuNTc1LS4yMzRsMCAwIDEuMi0xLjE1OGMuMTQzLS4xNDkuMjMxLS4zNTIuMjMxLS41NzYgMC0uNDYtLjM3My0uODMzLS44MzMtLjgzMy0uMTk5IDAtLjM4MS4wNy0uNTI1LjE4NmwuMDAyLS4wMDEtMS4yIDEuMTgzYy0uMTUuMTUxLS4yNDIuMzU4LS4yNDIuNTg4cy4wOTMuNDM3IC4yNDIuNTg4bDAgMGMuMTQuMTQ3IC4zMzIuMjQ0IC41NDcuMjU4bC4wMDMgMHpNMTIgMTdjLS40NiAwLS44MzMuMzczLS44MzMuODMzdjAgMS42NjdjMCAuNDYuMzczIC44MzMuODMzIC44MzNzLjgzMy0uMzczLjgzMy0uODMzdjAtMS42NjdjMC0uNDYtLjM3My0uODMzLS44MzMtLjgzM3Ywek0xNi43NzUgMTUuNDVjLS4xNS0uMTQ1LS4zNTQtLjIzNC0uNTc5LS4yMzQtLjQ2MSAwLS44MzQuMzczLS44MzQuODM0IDAgLjIzNS4wOTggLjQ0OC4yNTUgLjZsMCAwIDEuMiAxLjE4M2MuMTQ5LjE0NCAuMzUxLjIzMiAuNTc1LjIzM2gwYy4wMDEgMCAuMDAzIDAgLjAwNSAwIC4yMzMgMCAuNDQ0LS4wOTYuNTk1LS4yNWwwIDBjLjE1Mi0uMTUxLjI0Ny0uMzYuMjQ3LS41OTJzLS4wOTQtLjQ0MS0uMjQ2LS41OTJsMCAwek03LjIyNSAxNS40NWwtMS4yIDEuMTU4Yy0uMTUyLjE1MS0uMjQ3LjM2LS4yNDcuNTkycy4wOTQuNDQxIC4yNDYuNTkybDAgMGMuMTUxLjE1NCAuMzYyLjI1IC41OTUuMjUgLjAwMiAwIC4wMDMgMCAuMDA1IDBoMGMuMDAyIDAgLjAwNSAwIC4wMDcgMCAuMjEyIDAgLjQwNS0uMDc5LjU1Mi0uMjA5bC0uMDAxLjAwMSAxLjItMS4xNThjLjE1Ny0uMTUyLjI1NS0uMzY1LjI1NS0uNiAwLS40NjEtLjM3My0uODM0LS44MzQtLjgzNC0uMjI1IDAtLjQyOS4wODktLjU3OS4yMzRsMCAweiI+PC9wYXRoPjwvc3ZnPg==)}",ut+".sl-bb-button-block-loading-effect004{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTEzLjg3NSAzLjg3NUMxMy44NzUgMS4zNzUgMTAuMTI1IDEuMzc1IDEwLjEyNSAzLjg3NSAxMC4xMjUgNi4zNzUgMTMuODc1IDYuMzc1IDEzLjg3NSAzLjg3NVpNMTMuODc1IDIwLjEyNUMxMy44NzUgMTcuNjI1IDEwLjEyNSAxNy42MjUgMTAuMTI1IDIwLjEyNSAxMC4xMjUgMjIuNjI1IDEzLjg3NSAyMi42MjUgMTMuODc1IDIwLjEyNVpNMy44NzUgMTMuODc1QzYuMzc1IDEzLjg3NSA2LjM3NSAxMC4xMjUgMy44NzUgMTAuMTI1IDEuMzc1IDEwLjEyNSAxLjM3NSAxMy44NzUgMy44NzUgMTMuODc1Wk0yMiAxMkMyMiA5LjUgMTguMjUgOS41IDE4LjI1IDEyIDE4LjI1IDE0LjUgMjIgMTQuNSAyMiAxMlpNNy41ODIgMTkuMDdDOS40MjQgMTcuMzAyIDYuNjk3IDE0LjU3NSA0LjkyOSAxNi40MTggMy4wODcgMTguMTg2IDUuODE0IDIwLjkxMyA3LjU4MiAxOS4wN1pNNy41ODIgNy41NzhDOS40NTQgNS44MSA2LjY5MyAzLjA1NSA0LjkyOSA0LjkzIDMuMTYxIDYuNjk4IDUuODEzIDkuMzUgNy41ODEgNy41ODJaTTE2LjQxOCAxOS4wN0MxOC4xODYgMjAuODM4IDIwLjgzOCAxOC4xODYgMTkuMDcgMTYuNDE4IDE3LjMwMiAxNC42NSAxNC42NSAxNy4zMDIgMTYuNDE4IDE5LjA3Wk0xOC45NjYgNy41NzhDMjAuODM3IDUuODEgMTguMDc3IDMuMDU1IDE2LjMxMyA0LjkzIDE0LjU0NSA2LjY5OCAxNy4xOTcgOS4zNSAxOC45NjUgNy41ODJaIj48L3BhdGg+PC9zdmc+)}",ut+".sl-bb-button-block-loading-effect005{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTExLjk5MiAyMi4wNjFDMTcuNTE3IDIyLjA2MSAyMi4wMjEgMTcuNTU4IDIyLjAyMSAxMi4wMzNIMTkuNzQ0QzE5Ljc0NCAxNi4zMjcgMTYuMjg2IDE5Ljc4MyAxMS45OTIgMTkuNzgzWk00LjI0MiAxMi4wMzNDNC4yNDIgNy43MzkgNy42OTggNC4yODEgMTEuOTkyIDQuMjgxTDExLjk5MiAyLjAwNEM2LjQ2NyAyLjAwNCAxLjk2NSA2LjUwOCAxLjk2NSAxMi4wMzNaIj48L3BhdGg+PC9zdmc+)}",ut+".sl-bb-button-block-loading-effect006{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMuNSAzLjUgMTcgMTciPjxwYXRoIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiIGQ9Ik0gMTIsMjAuNDM3IEMgOS43NDYsMjAuNDM3IDcuNjI3LDE5LjU1OSA2LjAzNCwxNy45NjYgNC40NDEsMTYuMzczIDMuNTYzLDE0LjI1NCAzLjU2MywxMiAzLjU2Myw5Ljc0NiA0LjQ0MSw3LjYyNyA2LjAzNCw2LjAzNCBMIDcuMzYsNy4zNiB2IDAgYyAtMi41NTksMi41NTkgLTIuNTU5LDYuNzIyIDAsOS4yODEgMS4yMzksMS4yMzkgMi44ODcsMS45MjIgNC42NCwxLjkyMiBtIDAsMCBjIDEuNzUzLDAgMy40MDEsLTAuNjgzIDQuNjQsLTEuOTIyIDIuNTU5LC0yLjU1OSAyLjU1OSwtNi43MjIgMCwtOS4yODEgbCAxLjMyNiwtMS4zMjYgYyAxLjU5NCwxLjU5NCAyLjQ3MSwzLjcxMyAyLjQ3MSw1Ljk2NiAwLDIuMjU0IC0wLjg3OCw0LjM3MyAtMi40NzEsNS45NjYgLTEuNTk0LDEuNTk0IC0zLjcxMywyLjQ3MSAtNS45NjYsMi40NzEiPjwvcGF0aD48L3N2Zz4=)}",ut+".sl-bb-button-block-loading-effect007{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTExLjk5MiAyLjAwNEM5Ljk0IDIgNy44OTEgMi42NDYgNi4yMTcgMy44MzRMNy41MTYgNS43MDVDOS45ODggMy45MDYgMTMuNTM4IDMuODA5IDE2LjEwOCA1LjQ2MyAxNi45MDIgNS45NjIgMTcuNjA2IDYuNjA1IDE4LjE3MiA3LjM1NEwxOS45OCA1Ljk2OUMxOC4xMiAzLjQ5NCAxNS4wOTEgMS45ODUgMTEuOTkyIDIuMDA0Wk0yLjkzMiA3LjczMkMxLjM1IDEwLjk4NiAxLjczOSAxNS4wODMgMy45MTUgMTcuOTc1IDQuODIyIDE5LjIwNyA2LjAxMyAyMC4yMjkgNy4zNzEgMjAuOTM0TDguNDM0IDE4LjkyQzUuODAyIDE3LjU5MyA0LjA5IDE0LjY2NSA0LjI0OSAxMS43MTkgNC4yODcgMTAuNjc0IDQuNTQ0IDkuNjM5IDQuOTk0IDguNjk1Wk0yMS45MjggMTAuNjY0IDE5LjY3MiAxMC45OEMyMC4wOTQgMTMuODIgMTguNzY2IDE2LjgxNyAxNi4zODYgMTguNDE5IDE1LjE3NiAxOS4yNTcgMTMuNzIzIDE5LjczNCAxMi4yNTIgMTkuNzc5IDEyLjI4MSAyMC41MzggMTIuMzExIDIxLjI5NiAxMi4zNCAyMi4wNTUgMTUuODY5IDIxLjk2OSAxOS4yNDIgMTkuODQ0IDIwLjg2MyAxNi43MTIgMjEuNjIzIDE1LjI4MiAyMi4wMTggMTMuNjY1IDIyLjAyMiAxMi4wNDcgMjAuNjA4IDEyLjAyOSAyMC44NzUgMTIuMDMxIDIyLjAyMiAxMi4wMTggMjIuMDE5IDExLjU2NSAyMS45ODkgMTEuMTEzIDIxLjkyOCAxMC42NjRaIj48L3BhdGg+PC9zdmc+)}"],ft=["not use","","",".sl-bb-button-block-click-effect003 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color);border-radius:50%;height:40px;left:calc(var(--sl-bb-button-click-center-x) - 20px);opacity:0;pointer-events:none;position:absolute;top:calc(var(--sl-bb-button-click-center-y) - 20px);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;width:40px;z-index:100}.sl-bb-button-block-click-effect003 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble-anim .4s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble-anim{0%{opacity:.85;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}30%{opacity:.85}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}",".sl-bb-button-block-click-effect004 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color) border-box;border:4px solid transparent;border-radius:50%;height:40px;left:calc(var(--sl-bb-button-click-center-x) - 20px);-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:xor;opacity:0;pointer-events:none;position:absolute;top:calc(var(--sl-bb-button-click-center-y) - 20px);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;width:40px;z-index:100}.sl-bb-button-block-click-effect004 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble-anim .4s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble-anim{0%{opacity:.85;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}30%{opacity:.85}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}",".sl-bb-button-block-click-effect005 .sl-bb-button-click-parent{border-radius:inherit;box-sizing:inherit;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}.sl-bb-button-block-click-effect005 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color);border-radius:50%;left:var(--sl-bb-button-click-center-x);opacity:0;pointer-events:none;position:absolute;top:var(--sl-bb-button-click-center-y);transform:scale(0);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;z-index:100}.sl-bb-button-block-click-effect005 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble1-anim .6s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble1-anim{0%{opacity:.8;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}"],pt=["not use",".sl-bb-button-icon-shape001,.sl-bb-button-icon-shape001-right{background:var(--sl-bb-button-icon-shape-color);border-radius:inherit;bottom:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));left:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}",".sl-bb-button-icon-shape002,.sl-bb-button-icon-shape002-right{background:var(--sl-bb-button-icon-shape-color);border-radius:50%;bottom:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));left:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}",".sl-bb-button-icon-shape003,.sl-bb-button-icon-shape003-right{background:var(--sl-bb-button-icon-shape-color);border-radius:50%;bottom:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));box-shadow:0 0 0 3px #fff, 0 0 0 4px blue;left:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}"],mt=["not use",".sl-bb-button-pattern001{background:repeating-linear-gradient(-75deg, #fff, #0000003a 3px), repeating-linear-gradient(-125deg, #fff, #0000003a 5px)}",".sl-bb-button-pattern002{background:-webkit-repeating-linear-gradient(left, #fff0 0%, #fff0 6%, #ffffff4a 7.5%), -webkit-repeating-linear-gradient(left, #0000 0%, #0000 4%, #00000020 4.5%), -webkit-repeating-linear-gradient(left, #fff0 0%, #fff0 1.2%, #ffffff46 2.2%), -webkit-linear-gradient(-90deg, #a7a7a7d9 0%, #f2f2f2 100%)}",".sl-bb-button-pattern003{background-color:#808080cc;background-image:repeating-linear-gradient(45deg, #0000, #0000 5px, #ffffff80 5px, #ffffff80 10px)}",".sl-bb-button-pattern004{background-color:#808080cc;background-image:repeating-linear-gradient(45deg, #0000, #0000 7px, #ffffff80 7px, #ffffff80 14px)}",".sl-bb-button-pattern005{background-color:#e66464d9;background-image:linear-gradient(to right, #0000 50%, #ffffff80 50%), linear-gradient(to bottom, #0000 50%, #ffffff80 50%);background-size:10px 10px}"],gt=[];gt.wobble=".sl-bb-button-block-animation-wobble{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-wobble:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-wobble:hover{animation:sl-bb-wobble-anim .75s linear 1}@keyframes sl-bb-wobble-anim{16%{transform:translateX(6px)}33%{transform:translateX(-4px)}50%{transform:translateX(3px)}66%{transform:translateX(-2px)}83%{transform:translateX(1px)}}",gt.expand=".sl-bb-button-block-animation-expand{transform:rotateX(.005deg)}.sl-bb-button-block-animation-expand:hover,.sl-bb-button-block-animation-icon-expand:hover .sl-bb-button-block-icon svg{animation:sl-bb-expand-anim .75s linear 1}@keyframes sl-bb-expand-anim{30%{transform:scaleX(1.2)}45%{transform:scaleX(.93)}60%{transform:scaleX(1.1)}73%{transform:scaleX(.95)}87%{transform:scaleX(1.05)}}",gt.jelly=".sl-bb-button-block-animation-jelly{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-jelly:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-jelly:hover{animation:sl-bb-jelly-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-bb-jelly-anim{30%{transform:skew(18deg)}45%{transform:skew(-16deg)}60%{transform:skew(10deg)}73%{transform:skew(-6deg)}87%{transform:skew(4deg)}}",gt.surprise=".sl-bb-button-block-animation-surprise{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-surprise:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-surprise:hover{animation:sl-bb-surprise-anim .75s linear 1}@keyframes sl-bb-surprise-anim{10%{transform:scale(.95) rotate(3deg)}20%{transform:scale(.9) rotate(-3deg)}30%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}50%,70%,90%{transform:scale(1.1) rotate(3deg)}}",gt.tremble=".sl-bb-button-block-animation-tremble{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-tremble:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-tremble:hover{animation:sl-bb-tremble-anim .75s linear 1}@keyframes sl-bb-tremble-anim{10%,30%,50%,70%,90%{transform:rotate(3deg)}20%,40%,60%,80%{transform:rotate(-3deg)}}",gt.bell=".sl-bb-button-block-animation-bell{transform:rotateX(.005deg)}.sl-bb-button-block-animation-bell:hover,.sl-bb-button-block-animation-icon-bell:hover .sl-bb-button-block-icon svg{animation:sl-bb-bell-anim .85s linear 1;transform-origin:50% 0}@keyframes sl-bb-bell-anim{11%{transform:rotate(8deg)}29%{transform:rotate(-6.5deg)}47%{transform:rotate(5deg)}65%{transform:rotate(-3.5deg)}83%{transform:rotate(2deg)}}",gt["swing-3D-Y"]=".sl-bb-button-block-animation-swing-3D-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-swing-3D-Y:hover{animation:sl-bb-swing-3D-Y-anim .85s linear 1}@keyframes sl-bb-swing-3D-Y-anim{20%{transform:rotateY(15deg)}40%{transform:rotateY(-12deg)}60%{transform:rotateY(8deg)}80%{transform:rotateY(-5deg)}to{transform:rotateY(0)}}.sl-bb-button-block-animation-swing-3D-parent{perspective:200px}",gt["swing-3D-X"]=".sl-bb-button-block-animation-swing-3D-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-swing-3D-X:hover{animation:sl-bb-swing-3D-X-anim .85s linear 1}@keyframes sl-bb-swing-3D-X-anim{20%{transform:rotateX(15deg)}40%{transform:rotateX(-12deg)}60%{transform:rotateX(8deg)}80%{transform:rotateX(-5deg)}to{transform:rotateX(0)}}.sl-bb-button-block-animation-swing-3D-parent{perspective:200px}",gt.swing=".sl-bb-button-block-animation-swing{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-swing:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-swing:hover{animation:sl-bb-swing-anim .85s linear 1}@keyframes sl-bb-swing-anim{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}",gt["yoyo-X"]=".sl-bb-button-block-animation-icon-yoyo-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-yoyo-X:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-yoyo-X-anim .75s ease-in-out infinite}@keyframes sl-bb-icon-yoyo-X-anim{25%{transform:translateX(-1px)}75%{transform:translateX(1px)}}",gt["yoyo-Y"]=".sl-bb-button-block-animation-icon-yoyo-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-yoyo-Y:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-yoyo-Y-anim .75s ease-in-out infinite}@keyframes sl-bb-icon-yoyo-Y-anim{25%{transform:translateY(-1px)}75%{transform:translateY(1px)}}",gt["rotate-X"]=".sl-bb-button-block-animation-icon-rotate-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-X:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-X-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-X-anim{to{transform:rotateX(1turn)}}",gt["rotate-Y"]=".sl-bb-button-block-animation-icon-rotate-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-Y:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-Y-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-Y-anim{to{transform:rotateY(1turn)}}",gt["rotate-Z"]=".sl-bb-button-block-animation-icon-rotate-Z{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-Z:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-Z-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-Z-anim{to{transform:rotate(1turn)}}",gt.push=".sl-bb-button-block-animation-push{transition:all .17s ease-out!important;transform:rotateX(.005deg)}.sl-bb-button-block-animation-push:hover{transform:rotateX(10deg);transform-origin:100% 110%}.sl-bb-button-block-animation-push-parent{perspective:200px}",gt["split-horizontal"]=".sl-bb-button-block-animation-split-horizontal .sl-bb-button-anim1{clip-path:polygon(0 0, 0 0, 0 100%, 0 100%, 0 0, 100% 0, 100% 0, 100% 100%, 100% 100%, 100% 0)}.sl-bb-button-block-animation-split-horizontal:hover .sl-bb-button-anim1{clip-path:polygon(50% 0, 0 0, 0 100%, 50% 100%, 50% 0, 50% 0, 100% 0, 100% 100%, 50% 100%, 50% 0)}.sl-bb-button-block-animation-split-horizontal:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-split-horizontal:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["split-vertical"]=".sl-bb-button-block-animation-split-vertical .sl-bb-button-anim1{clip-path:polygon(0 0, 100% 0, 100% 0, 0 0, 0 0, 0 100%, 100% 100%, 100% 100%, 0 100%, 0 100%)}.sl-bb-button-block-animation-split-vertical:hover .sl-bb-button-anim1{clip-path:polygon(0 0, 100% 0, 100% 50%, 0 50%, 0 0, 0 50%, 100% 50%, 100% 100%, 0 100%, 0 50%)}.sl-bb-button-block-animation-split-vertical:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-split-vertical:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["stretch-horizontal"]=".sl-bb-button-block-animation-stretch-horizontal .sl-bb-button-anim1{transform:scaleX(0)}.sl-bb-button-block-animation-stretch-horizontal:hover .sl-bb-button-anim1{transform:scaleX(1)}.sl-bb-button-block-animation-stretch-horizontal{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-horizontal:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-stretch-horizontal:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["stretch-vertical"]=".sl-bb-button-block-animation-stretch-vertical:hover .sl-bb-button-anim1{transform:scaleY(1)}.sl-bb-button-block-animation-stretch-vertical .sl-bb-button-anim1{transform:scaleY(0)}.sl-bb-button-block-animation-stretch-vertical{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-vertical:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-stretch-vertical:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt.ellipse=".sl-bb-button-block-animation-ellipse .sl-bb-button-anim1{border-radius:50%;transform:scale(0)}.sl-bb-button-block-animation-ellipse:hover .sl-bb-button-anim1{transform:scale(2)}.sl-bb-button-block-animation-ellipse{transform:rotateX(.005deg)}.sl-bb-button-block-animation-ellipse:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-ellipse:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt.rect=".sl-bb-button-block-animation-rect .sl-bb-button-anim1{transform:scale(0)}.sl-bb-button-block-animation-rect:hover .sl-bb-button-anim1{transform:scale(1)}.sl-bb-button-block-animation-rect{transform:rotateX(.005deg)}.sl-bb-button-block-animation-rect:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-rect:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["slide-bottom"]=".sl-bb-button-block-animation-slide-bottom .sl-bb-button-anim1{transform:translateY(101%)}.sl-bb-button-block-animation-slide-bottom:hover .sl-bb-button-anim1{transform:translateY(0)}.sl-bb-button-block-animation-slide-bottom{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-bottom:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-bottom:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["slide-top"]=".sl-bb-button-block-animation-slide-top .sl-bb-button-anim1{transform:translateY(-101%)}.sl-bb-button-block-animation-slide-top:hover .sl-bb-button-anim1{transform:translateY(0)}.sl-bb-button-block-animation-slide-top{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-top:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-top:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["slide-left"]=".sl-bb-button-block-animation-slide-left .sl-bb-button-anim1{transform:translateX(-101%)}.sl-bb-button-block-animation-slide-left:hover .sl-bb-button-anim1{transform:translateX(0)}.sl-bb-button-block-animation-slide-left{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-left:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-left:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["slide-right"]=".sl-bb-button-block-animation-slide-right .sl-bb-button-anim1{transform:translateX(101%)}.sl-bb-button-block-animation-slide-right:hover .sl-bb-button-anim1{transform:translateX(0)}.sl-bb-button-block-animation-slide-right{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-right:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-right:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",gt["stretch-corner1"]=".sl-bb-button-block-animation-stretch-corner1 .sl-bb-button-anim1{transform: skewX(-40deg) scaleX(0)}.sl-bb-button-block-animation-stretch-corner1:hover .sl-bb-button-anim1{transform: skewX(40deg) scaleX(1)}.sl-bb-button-block-animation-stretch-corner1{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-corner1:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}",gt["stretch-corner2"]=".sl-bb-button-block-animation-stretch-corner2 .sl-bb-button-anim1{transform: skewX(40deg) scaleX(0)}.sl-bb-button-block-animation-stretch-corner2:hover .sl-bb-button-anim1{transform: skewX(-40deg) scaleX(1)}.sl-bb-button-block-animation-stretch-corner2{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-corner2:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}",gt["text-and-border-color"]=".safelayout-bb-button-block .sl-bb-button-block-animation-text-and-border-color .sl-bb-button-effect-parent{border:1px solid transparent}.sl-bb-button-block-animation-text-and-border-color:hover .sl-bb-button-effect-parent,.sl-bb-button-block-effect009.sl-bb-button-block-animation-text-and-border-color:hover{border-color:var(--sl-bb-button-anim-color) !important}.sl-bb-button-block-animation-text-and-border-color:hover,.sl-bb-button-block-effect009.sl-bb-button-block-animation-text-and-border-color:hover{color:var(--sl-bb-button-anim-color) !important}",gt["border-color"]=".safelayout-bb-button-block .sl-bb-button-block-animation-border-color .sl-bb-button-effect-parent{border:1px solid transparent}.sl-bb-button-block-animation-border-color:hover .sl-bb-button-effect-parent,.sl-bb-button-block-effect009.sl-bb-button-block-animation-border-color:hover{border-color:var(--sl-bb-button-anim-color) !important}",gt["swap-color"]=".sl-bb-button-block-animation-swap-color:hover{color:var(--sl-bb-button-background-color)!important}.sl-bb-button-block-animation-swap-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-text-color)!important}",gt["background-color"]=".sl-bb-button-block-animation-background-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-anim-color)!important}",gt["text-color"]=".sl-bb-button-block-animation-text-color:hover{color:var(--sl-bb-button-anim-color)!important}",gt["background-and-text-color"]=".sl-bb-button-block-animation-background-and-text-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-anim-color)!important}.sl-bb-button-block-animation-background-and-text-color:hover{color:var(--sl-bb-button-anim-two-color)!important}",gt.shadow=".sl-bb-button-block-animation-shadow:hover{box-shadow:0 0 12px 1px rgba(0,0,0,.55)!important}",gt.light=".sl-bb-button-block-animation-light .sl-bb-button-anim1{background:linear-gradient(90deg,transparent 33%,hsla(0,0%,100%,.702),transparent 67%) 100%/300% no-repeat;z-index:10}.sl-bb-button-block-animation-light:hover .sl-bb-button-anim1{background-position:0 0}",gt.light1=".sl-bb-button-block-animation-light1 .sl-bb-button-anim1{background:linear-gradient(45deg,hsla(0,0%,100%,0) 40%,hsla(0,0%,100%,.702) 50%,hsla(0,0%,100%,0) 70%);background-position:-10% 0;background-size:220% auto;z-index:10}.sl-bb-button-block-animation-light1:hover .sl-bb-button-anim1{background-position:110% 0}",gt["letter-space"]=".sl-bb-button-block-animation-letter-space:hover{letter-spacing:1px!important}",gt["fill-color"]=".sl-bb-button-block-animation-icon-fill-color:hover .sl-bb-button-block-icon svg path,.sl-bb-button-block-animation-icon-fill-color:hover .sl-bb-button-block-icon svg symbol path{fill:var(--sl-bb-button-icon-anim-color)!important}",gt["shape-color"]=".sl-bb-button-icon-shape{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-shape-color:hover .sl-bb-button-icon-shape{background:var(--sl-bb-button-icon-anim-color)!important}",gt["fill-and-shape-color"]=".sl-bb-button-icon-shape{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-fill-and-shape-color:hover .sl-bb-button-block-icon svg path{fill:var(--sl-bb-button-icon-anim-color)!important}.sl-bb-button-block-animation-icon-fill-and-shape-color:hover .sl-bb-button-icon-shape{background:var(--sl-bb-button-icon-anim-two-color)!important}",gt["yellow-glow"]=".sl-bb-button-block-animation-yellow-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-yellow-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-yellow-glow:hover{filter:drop-shadow(0 0 5px yellow)}",gt["red-glow"]=".sl-bb-button-block-animation-red-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-red-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-red-glow:hover{filter:drop-shadow(0 0 5px red)}",gt["blue-glow"]=".sl-bb-button-block-animation-blue-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-blue-glow:hover,.sl-bb-button-block-animation-icon-blue-glow:hover .sl-bb-button-block-icon svg{filter:drop-shadow(0 0 5px blue)}",gt["violet-glow"]=".sl-bb-button-block-animation-violet-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-violet-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-violet-glow:hover{filter:drop-shadow(0 0 5px violet)}",gt.brighten=".sl-bb-button-block-animation-brighten{transition:all .17s ease-out!important}.sl-bb-button-block-animation-brighten:hover,.sl-bb-button-block-animation-icon-brighten:hover .sl-bb-button-block-icon svg{filter:brightness(1.15)}",gt.darken=".sl-bb-button-block-animation-darken{transition:all .17s ease-out!important}.sl-bb-button-block-animation-darken:hover,.sl-bb-button-block-animation-icon-darken:hover .sl-bb-button-block-icon svg{filter:brightness(.85)}",gt.grayscale=".sl-bb-button-block-animation-grayscale{transition:all .17s ease-out!important}.sl-bb-button-block-animation-grayscale:hover,.sl-bb-button-block-animation-icon-grayscale:hover .sl-bb-button-block-icon svg{filter:grayscale(80%)}",gt.sepia=".sl-bb-button-block-animation-sepia{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-sepia:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-sepia:hover{filter:sepia(80%)}",gt.opacity=".sl-bb-button-block-animation-opacity{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-opacity:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-opacity:hover{opacity:.7}",gt["zoom-in"]=".sl-bb-button-block-animation-zoom-in{transition:all .17s ease-out!important}.sl-bb-button-block-animation-zoom-in{transform:rotateX(.005deg)}.sl-bb-button-block-animation-zoom-in:hover{transform:scale(1.07)}",gt["zoom-out"]=".sl-bb-button-block-animation-zoom-out{transition:all .17s ease-out!important}.sl-bb-button-block-animation-zoom-out{transform:rotateX(.005deg)}.sl-bb-button-block-animation-zoom-out:hover{transform:scale(.93)}",gt["move-up"]=".sl-bb-button-block-animation-move-up{transition:all .17s ease-out!important}.sl-bb-button-block-animation-move-up:hover{transform:translateY(-2px)}",gt["move-down"]=".sl-bb-button-block-animation-move-down{transition:all .17s ease-out!important}.sl-bb-button-block-animation-move-down:hover{transform:translateY(2px)}";const xt=gt,ht=t=>{let o=kt.find(({name:o})=>o===t);return o?{...yt,...o.attributes}:null},yt={textColor:"#00f",hasBg:!0,bgColor:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)",textAlign:"center",uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,minWidth:void 0,hasBgShadow:!0,bgShadow:"0px 1px 3px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconAnimation:"No Animation",iconAnimColor:"#fff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:F,iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",svgEffect:"",rotate:0,slbbAnim:"slide-top",animColor:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)",clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",animColorTwo:"#f00",hasSubText:!1,subText:"More Text",subTextAlign:"center",subTextFontSize:"11px",animSTColor:void 0,iconAnimColorTwo:"#f00",elementStyle:"",textColorSlug:void 0,bgColorSlug:void 0,iconShapeColorSlug:void 0,iconAnimColorSlug:void 0,iconColorSlug:void 0,iconStrokeColorSlug:void 0,animColorSlug:void 0,clickEffectColorSlug:void 0,animColorTwoSlug:void 0,animSTColorSlug:void 0,iconAnimColorTwoSlug:void 0},kt=[{name:"Button001",attributes:{content:"Free Download",textColor:"#1a1a1a",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#fff",iconName:"003_cloud download",iconPaths:Q,iconColor:["#1a1a1a"],slbbAnim:"background-and-text-color",animColor:"#1a1a1a",animColorTwo:"#fff"}},{name:"Button002",attributes:{content:"Get PRO Version",textColor:"#fff",bgColor:"#1a1a1a",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#1a1a1a",iconName:"001_awards",iconPaths:V,iconColor:["#fff"],slbbAnim:"background-and-text-color",animColor:"#fff",animColorTwo:"#1a1a1a"}},{name:"Button003",attributes:{content:"Explore More",textColor:"#ff8000",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"15px",right:"40px",bottom:"15px",left:"40px"},border:{color:"#ff8000",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconAnimation:"fill-color",iconAnimColor:"#fff",iconColor:["#ff8000"],slbbAnim:"rect",animColor:"#ff8000",animColorTwo:"#fff",animSTColor:"#fff"}},{name:"Button004",attributes:{content:"Explore More",textColor:"#fff",bgColor:"#ff8000",hasBgShadow:!1,blockPadding:{top:"15px",right:"40px",bottom:"15px",left:"40px"},border:{color:"#ff8000",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconAnimation:"fill-color",iconAnimColor:"#ff8000",iconColor:["#fff"],slbbAnim:"rect",animColor:"#fff",animColorTwo:"#ff8000",animSTColor:"#ff8000"}},{name:"Button005",attributes:{content:"Free Download",fontSize:"22px",textColor:"#1a1a1a",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#fff",iconName:"003_cloud download",iconGap:8,iconPaths:Q,iconColor:["#1a1a1a"],slbbAnim:"stretch-horizontal",animColor:"#1a1a1a",animColorTwo:"#fff",clickEffect:"effect004",clickEffectColor:"#fff",hasSubText:!0,subText:"Free 30 days Trial – 1.5GB",animSTColor:"#fff"}},{name:"Button006",attributes:{content:"Get PRO Version",fontSize:"22px",textColor:"#fff",bgColor:"#1a1a1a",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#1a1a1a",iconName:"001_awards",iconPaths:V,iconColor:["#fff"],slbbAnim:"stretch-horizontal",animColor:"#fff",animColorTwo:"#1a1a1a",clickEffect:"effect004",clickEffectColor:"#000",hasSubText:!0,subText:"Starting at only 14.99 USD!",animSTColor:"#1a1a1a"}},{name:"Button007",attributes:{content:"Learn More",textColor:"#b87132",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"15px",right:"30px",bottom:"15px",left:"30px"},border:{color:"#b87132",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#b87132",iconPos:"right",iconGap:10,iconAnimation:"yoyo-X",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#fff"],slbbAnim:"slide-top",animColor:"#b87132",animColorTwo:"#fff",animSTColor:"#fff",clickEffect:"effect004",clickEffectColor:"#404040"}},{name:"Button008",attributes:{content:"Learn More",textColor:"#fff",bgColor:"#b87132",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"15px",right:"30px",bottom:"15px",left:"30px"},border:{color:"#b87132",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#b87132",iconPos:"right",iconGap:10,iconAnimation:"yoyo-X",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#fff"],slbbAnim:"slide-bottom",animColor:"#fff",animColorTwo:"#b87132",animSTColor:"#b87132",clickEffect:"effect004",clickEffectColor:"#404040"}},{name:"Button009",attributes:{content:"Visit Shop",textColor:"#000",bgColor:"#9933ff",uppercase:!0,bgShadow:"0px 0px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},hasIcon:!0,iconAnimation:"yoyo-X",iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#99ffcc",clickEffect:"effect004",clickEffectColor:"#f00"}},{name:"Button010",attributes:{content:"Visit Shop",textColor:"#000",bgColor:"#9933ff",uppercase:!0,bgShadow:"0px 0px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},hasIcon:!0,iconAnimation:"yoyo-X",iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern004",patternOpacity:.4,effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#99ffcc",clickEffect:"effect004",clickEffectColor:"#f00"}},{name:"Button011",attributes:{content:"Visit Shop",textColor:"#fff",bgColor:"#f00",uppercase:!0,bgShadow:"0px 1px 7px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#fff",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],effect:"effect003",slbbAnim:"border-color",animColor:"#ff0",clickEffect:"effect005",clickEffectColor:"#ffff99"}},{name:"Button012",attributes:{content:"Visit Shop",textColor:"#fff",bgColor:"#f00",uppercase:!0,bgShadow:"0px 1px 7px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#fff",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],bgPattern:"pattern001",patternOpacity:.25,effect:"effect003",slbbAnim:"border-color",animColor:"#ff0",clickEffect:"effect005",clickEffectColor:"#ffff99"}},{name:"Button013",attributes:{content:"Buy now",textColor:"#f00",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},border:{color:"#ffa8a8",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"jelly",iconName:"001_cart",iconPaths:Z,iconColor:["#f00"],effect:"No Effect",slbbAnim:"border-color",animColor:"#f00",clickEffect:"effect005",clickEffectColor:"#ffbebe"}},{name:"Button014",attributes:{content:"Buy now",textColor:"#00f",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},border:{color:"#a8a8ff",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"jelly",iconName:"001_cart",iconPaths:Z,iconColor:["#00f"],effect:"No Effect",slbbAnim:"border-color",animColor:"#00f",clickEffect:"effect005",clickEffectColor:"#bebeff"}},{name:"Button015",attributes:{content:"Buy now",textColor:"#000",bgColor:"#99ff99",uppercase:!0,bgShadow:"0px 0px 2px #202020",blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},hasIcon:!0,iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect007",slbbAnim:"light1",clickEffect:"effect004",clickEffectColor:"linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)"}},{name:"Button016",attributes:{content:"Buy now",textColor:"#000",bgColor:"#99ff99",uppercase:!0,bgShadow:"0px 0px 2px #202020",blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},hasIcon:!0,iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern003",patternOpacity:.3,effect:"effect007",slbbAnim:"light1",clickEffect:"effect004",clickEffectColor:"linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)"}},{name:"Button017",attributes:{content:"Add to cart",textColor:"#f00",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#f00",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#f00",iconGap:10,iconAnimation:"fill-and-shape-color",iconAnimColor:"#f00",iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],slbbAnim:"slide-left",animColor:"#f00",clickEffect:"effect003",clickEffectColor:"#FFCCCC",animColorTwo:"#fff",animSTColor:"#fff",iconAnimColorTwo:"#fff"}},{name:"Button018",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#f00",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#f00",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-and-shape-color",iconShape:"shape001",iconShapeColor:"#fff",iconGap:10,iconAnimColor:"#fff",iconName:"001_cart",iconPaths:Z,iconColor:["#f00"],slbbAnim:"slide-left",animColor:"#fff",clickEffect:"effect003",clickEffectColor:"#ff6666",animColorTwo:"#f00",animSTColor:"#f00",iconAnimColorTwo:"#f00"}},{name:"Button019",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#ff8000",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"swing",iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],effect:"effect005",slbbAnim:"stretch-horizontal",animColor:"#666666",clickEffect:"effect001"}},{name:"Button020",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#7f00ff",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconAnimation:"swing",iconPaths:Z,iconColor:["#fff"],effect:"effect005",slbbAnim:"stretch-vertical",animColor:"#a245ff",clickEffect:"effect001"}},{name:"Button021",attributes:{content:"Add to cart",fontSize:"18px",textColor:"#000",bgColor:"#ffff00",uppercase:!0,bgShadow:"0px 1px 1px #000000CF",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#FF8000",clickEffect:"effect002",hasSubText:!0,subText:"for only 8.99 USD!"}},{name:"Button022",attributes:{content:"Add to cart",fontSize:"18px",textColor:"#000",bgColor:"#FF3333",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern002",patternOpacity:.5,effect:"effect005",slbbAnim:"stretch-corner2",animColor:"#FFCCCC",clickEffect:"effect002",hasSubText:!0,subText:"for only 8.99 USD!"}}],jt=e.p+"images/flat-color-icons.62e70cdd.webp",Ct=e.p+"images/linecons-icons.a13e26fe.webp",wt=e.p+"images/filled-icon-set-icons.f4d4703d.webp",St=e.p+"images/genericons-neue-icons.a87844ff.webp",Mt=e.p+"images/font-awesome-regular-icons.66ac7e8a.webp",Nt=e.p+"images/font-awesome-brands-icons.3ad6d184.webp",vt=e.p+"images/font-awesome-solid-icons.ce730a75.webp",At=e.p+"images/material-design-icons.ecdb2a6d.webp",It=e.p+"images/meteocons-weather-icons.d5aa72b7.webp",_t={hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,animation:"No Animation"},Tt=(t,o)=>{const e=[(0,l.__)("one","safelayout-brilliant-buttons"),(0,l.__)("two","safelayout-brilliant-buttons"),(0,l.__)("three","safelayout-brilliant-buttons"),(0,l.__)("four","safelayout-brilliant-buttons"),(0,l.__)("five","safelayout-brilliant-buttons")];return o<=1?"":" "+e[t]},zt=t=>{let o=null;return SLEIiconArray.some(e=>o=e.find(({name:o})=>o===t)),o||null},Lt=t=>{let o="";return SLEIiconArray.some(e=>o=e[0].libCode===t.name.substring(0,3)&&" ("+e[0].libName+")"),o||" (unknown)"},Dt=t=>{let o=null;return SLEIiconArray.some(e=>o=e[0].libCode===t.name.substring(0,3)&&e[0]?.attributes),o||[]},Et=t=>{let o=null;return SLEIiconArray.some(e=>o=e[0].libCode===t&&e[0]?.class),o||""},Pt=t=>(0,k.jsx)(c.Dropdown,{popoverProps:{placement:t?.position?.pos||"left-start",offset:t?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",style:{margin:"16px"},renderToggle:Ot(t),renderContent:()=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:(0,k.jsx)(Rt,{...t})})})})}),Ot=t=>({onToggle:o,isOpen:e})=>{const{name:n,paths:a,color:i,label:s,disabled:r}=t,u={onClick:o,className:b()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":e}),"aria-expanded":e};let d=zt(n);return null===d&&(d={name:n,paths:a,attributes:{color:i}}),((t,o)=>{let e={..._t,color:["#3535ff"]||["#5c5c5c"],...Dt(o),...o?.attributes,size:64,blockId:"sl-bb-button-block-selected"+o.name?.replaceAll(" ","_")},l=e?.effect,n=l?K(l):null;n?.attributes&&"999"!==o.name.substring(0,3)&&(e={...e,...n?.attributes}),t.attributes=e,t.effectObj=n})({},d),(0,k.jsx)(c.Button,{...u,disabled:r,className:"sl-bb-button-block-icon-select-btn",title:(0,l.__)("Select or replace the icon","safelayout-brilliant-buttons"),children:(0,k.jsxs)(c.__experimentalHStack,{justify:"flex-start",children:[(0,k.jsx)("div",{className:"sl-bb-button-block-panel",children:(0,k.jsx)(A,{icon:d})}),(0,k.jsx)(c.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:s})]})})},Bt=[{libName:"Flat color icons - Icons8 (312) (PRO)",image:jt},{libName:"Linecons (48) (PRO)",image:Ct},{libName:"Filled icon set - Icons8 (200) (PRO)",image:wt},{libName:"Genericons Neue (103) (PRO)",image:St},{libName:"Font Awesome regular (163) (PRO)",image:Mt},{libName:"Font Awesome brands (467) (PRO)",image:Nt},{libName:"Font Awesome solid (1390) (PRO)",image:vt},{libName:"Material Design (1261) (PRO)",image:At},{libName:"Meteocons - weather (47) (PRO)",image:It}];function Rt(t){const{name:o,onIconClick:e}=t;let n,a=[];const[s,r]=(0,i.useState)(""),[b,u]=(0,i.useState)((t=>{let o=null;return SLEIiconArray.some(e=>o=e.find(({name:o})=>o===t)&&e),o?o[0].libName:SLEIiconArray[0][0].libName})(o));if(s)a.push(null),SLEIiconArray.map(t=>a=a.concat(t.filter(({name:t})=>t?.substring(4)?.toLowerCase().includes(s.toLowerCase()))));else if(n=Bt.find(({libName:t})=>t===b),n)a=[];else{let t=-1;SLEIiconArray.some((o,e)=>t=o[0].libName===b&&e+1),a=-1!=t?SLEIiconArray[t-1]:SLEIiconArray[0]}return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.SearchControl,{value:s,style:{marginBottom:"7px"},onChange:r,placeholder:(0,l.__)("Search icon","safelayout-brilliant-buttons")}),(0,k.jsxs)(c.SelectControl,{value:b,onChange:u,__nextHasNoMarginBottom:!0,children:[SLEIiconArray.map(t=>{const o=t[0].libName+" ("+(t.length-1)+")";return(0,k.jsx)("option",{value:t[0].libName,children:o})}),Bt.map(t=>(0,k.jsx)("option",{value:t.libName,className:"sl-bb-button-block-pro-menu",children:t.libName}))]}),(0,k.jsx)(Ut,{icons:a,name:o,onIconClick:e,selectedLibrary:b,searchVal:s,packsImageShow:n}),(0,k.jsx)("div",{style:{textAlign:"center"},children:(0,k.jsx)(c.Disabled,{children:(0,k.jsxs)(c.Button,{variant:"secondary",style:{display:"inline-block",width:"130px",marginTop:"15px",position:"relative"},children:[(0,l.__)("Add Custom SVG","safelayout-brilliant-buttons"),(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"})]})})})]})}const Yt=t=>{const o=document.getElementById(t);o&&(o.classList.remove("sl-bb-list-selected"),o.removeAttribute("id"))},Ut=(0,i.memo)(function({icons:t,name:o,onIconClick:e,selectedLibrary:l,searchVal:n,packsImageShow:a}){return Yt("sl-bb-list-selected-icon"),(0,k.jsxs)("div",{className:"sl-bb-button-block-icons-container",children:[t?.map((t,l)=>{if(l){let a=t.name.substring(0,3);return a>"700"?null:(0,k.jsxs)("div",{id:t.name===o?"sl-bb-list-selected-icon":null,className:"sl-bb-button-block-list"+(t.name===o?" sl-bb-list-selected":""),onClick:e,title:t.name.substring(4)+(n?Lt(t):""),"data-icon-name":t.name,children:[a<="400"&&(0,k.jsx)("span",{className:Et(a),children:String.fromCharCode(59392+t.c)}),a>"400"&&a<="700"&&(0,k.jsx)(A,{icon:t})]},l)}}),a&&(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:a.image})]})},(t,o)=>t.searchVal===o.searchVal&&t.selectedLibrary===o.selectedLibrary);function Gt({attributes:t,setAttributes:o,isInEditor:e=!0,clickEff:n,others:i}){const{blockId:s,textAlign:r,uppercase:c,fontSize:u,lineHeight:d,letterSpacing:f,width:p,minWidth:m,textColor:g,textColorSlug:x,hasBg:h,bgColor:y,bgColorSlug:C,border:w,borderRadius:S,hasIcon:M,iconShape:N,iconShapeColor:A,iconShapeColorSlug:T,iconAnimation:z,iconAnimColor:L,iconAnimColorSlug:D,iconPos:E,iconGap:P,content:O,hasBgShadow:B,bgShadow:R,hasTextShadow:Y,textShadow:U,blockMargin:G,blockPadding:H,label:X,title:W,linkUrl:F,linkRel:V,linkTarget:Z,bgPattern:Q,patternOpacity:$,effect:J,svgEffect:q,rotate:K,animation:ot,slbbAnim:et,animColor:lt,animColorSlug:nt,clickEffect:at,clickEffectColor:it,clickEffectColorSlug:st,hasLoading:rt,loadingText:bt,loadingEffect:ct,animColorTwo:ut,animColorTwoSlug:dt,hasSubText:ft,subText:pt,subTextAlign:mt,subTextFontSize:gt,animSTColor:xt,animSTColorSlug:ht,iconAnimColorTwo:yt,iconAnimColorTwoSlug:kt,elementStyle:jt}=t,Ct=Number(J?.substring(6)),wt=""!=q&&Ct>=31&&Ct<=41,St=Ct>=36&&Ct<=41,Mt=0!=K&&St,Nt="effect001"===at?"translateY(1px)":"effect002"===at?"scale(0.985)":"",vt="effect001"===at||"effect002"===at?Mt?`${Nt} rotate(${K}deg)`:Nt:null,At=D&&""!=D?`var( --wp--preset--${D}, ${L})`:L,It=j(L)?`url(#animGrad${s})`:At,_t=tt(N),Tt={__html:q},zt={textAlign:r||"center"},Lt=i?.oldAnim?ot:et,Dt="effect009"!=J?io(null,w,S):null,Et=ro(Lt);let Pt={textAlign:mt||"left",textShadow:"none",textTransform:"none",fontWeight:"500",fontStyle:"normal",fontSize:gt||null},Ot={...v(null,G,H),textTransform:c?"uppercase":null,"--sl-bb-button-text-color":x&&""!=x?`var( --wp--preset--${x}, ${g})`:g,"--sl-bb-button-background-color":h?C&&""!=C?`var( --wp--preset--${C}, ${y})`:y:"none","--sl-bb-button-anim-color":Lt&&"No Animation"!=Lt?nt&&""!=nt?`var( --wp--preset--${nt}, ${lt})`:lt:null,"--sl-bb-button-anim-two-color":Lt&&"No Animation"!=Lt&&Et?.controlTwo?dt&&""!=dt?`var( --wp--preset--${dt}, ${ut})`:ut:null,"--sl-bb-button-pattern-opacity":String($),"--sl-bb-button-icon-shape-color":"No Shape"!=N?T&&""!=T?`var( --wp--preset--${T}, ${A})`:A:null,"--sl-bb-button-p-top":_t?.padding?H?.top||"5px":null,"--sl-bb-button-p-right":_t?.padding?H?.right||"10px":null,"--sl-bb-button-p-bottom":_t?.padding?H?.bottom||"5px":null,"--sl-bb-button-p-left":_t?.padding?H?.left||"10px":null,"--sl-bb-button-click-effect-color":"effect003"===at||"effect004"===at||"effect005"===at?st&&""!=st?`var( --wp--preset--${st}, ${it})`:it:null,"--sl-bb-button-icon-anim-color":"shape-color"===z?At:"fill-color"===z||"fill-and-shape-color"===z?It:null,"--sl-bb-button-icon-anim-two-color":"fill-and-shape-color"===z?kt&&""!=kt?`var( --wp--preset--${kt}, ${yt})`:yt:null,"--sl-bb-button-anim-slide-text-color":xt?ht&&""!=ht?`var( --wp--preset--${ht}, ${xt})`:xt:null,boxShadow:B?R:null,textShadow:Y?U:null,textDecoration:"auto",cursor:e?null:"pointer",userSelect:e?null:"none",fontSize:"16px"!=u?u:null,lineHeight:"1.5"!=d?d:null,letterSpacing:"0px"!=f?f:null,width:0!=p?p+"%":null,minWidth:m||null};Ot=io(Ot,"effect009"==J?w:null,S);const Bt=Lt&&"No Animation"!=Lt?`sl-bb-button-block-animation-${Lt}`:null,Rt=z&&"No Animation"!=z?`sl-bb-button-block-animation-icon-${z}`:null,Yt="No Effect"!=at?`sl-bb-button-block-click-${at}`:null,Ut=B&&Ct>=36&&Ct<=41?`drop-shadow(${R})`:null,Gt="No Effect"!=ct||rt?"sl-bb-button-block-has-loading":null,Ht=t=>(0,k.jsx)(a.RichText,{tagName:"span",value:O,allowedFormats:["core/bold","core/italic","core/non-breaking-space","core/strikethrough","core/subscript","core/superscript","core/text-color","core/underline"],onChange:t=>o({content:t}),placeholder:(0,l.__)("My Button","safelayout-brilliant-buttons"),className:t,style:zt}),Xt=ft?(0,k.jsxs)("span",{className:"sl-bb-button-block-content",style:zt,children:[Ht(),(0,k.jsx)("span",{style:Pt,className:b()("sl-bb-button-block-sub-text"),children:pt})]}):Ht("sl-bb-button-block-content"),Wt=ft?(0,k.jsxs)("span",{className:"sl-bb-button-block-content",style:zt,children:[(0,k.jsx)(a.RichText.Content,{tagName:"span",value:O,style:zt}),(0,k.jsx)("span",{style:Pt,className:b()("sl-bb-button-block-sub-text"),children:pt})]}):(0,k.jsx)(a.RichText.Content,{tagName:"span",value:O,style:zt,className:"sl-bb-button-block-content"});let Ft=null;!e&&!n||"effect003"!==at&&"effect004"!==at||(Ft=function(t){if(!(0!=t.button||e&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,l=o.getBoundingClientRect(),n=t.clientX-(l.left+l.width/2),a=t.clientY-(l.top+l.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(n,a)),b=o.getElementsByClassName("sl-bb-button-click")[0];b&&(b.classList.remove("sl-bb-button-click-anim"),b.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),b.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),b.style.setProperty("--sl-bb-button-click-x",r.x+"px"),b.style.setProperty("--sl-bb-button-click-y",r.y+"px"),b.offsetWidth,b.classList.add("sl-bb-button-click-anim"))}}),(e||n)&&"effect005"===at&&(Ft=function(t){if(!(0!=t.button||e&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,l=o.getBoundingClientRect(),n=t.clientX-(l.left+l.width/2),a=t.clientY-(l.top+l.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(n,a)),b=Math.max(o.offsetWidth,o.offsetHeight),c=o.getElementsByClassName("sl-bb-button-click")[0];c&&(c.style.setProperty("width",2*b+"px"),c.style.setProperty("height",2*b+"px"),c.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),c.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),c.style.setProperty("--sl-bb-button-click-x",r.x-b+"px"),c.style.setProperty("--sl-bb-button-click-y",r.y-b+"px"),c.classList.remove("sl-bb-button-click-anim"),c.offsetWidth,c.classList.add("sl-bb-button-click-anim"))}});const Vt="fill-color"===z||"fill-and-shape-color"===z?L:"#fff";return(0,k.jsxs)("div",{className:b()(Et?.parent,Yt),style:{filter:Ut,"--sl-bb-button-click-effect-transform":vt,width:0!=p?"100%":null,transform:Mt?`rotate(${K}deg)`:null},children:[(0,k.jsxs)("a",{style:Ot,href:!e&&F||null,target:!e&&Z||null,rel:!e&&V||null,"aria-label":X||null,title:W||null,className:b()(`sl-bb-button-block-${J?.toLowerCase().replace(" ","-")}`,Bt,Rt,Gt),onMouseDown:Ft,children:[(0,k.jsxs)("span",{className:"sl-bb-button-effect-parent",style:Dt,children:[Et?.child>=1&&(0,k.jsx)("span",{className:"sl-bb-button-anim1"}),Et?.child>=2&&(0,k.jsx)("span",{className:"sl-bb-button-anim2"}),"No Pattern"!=Q&&(0,k.jsx)("span",{className:b()("sl-bb-button-block-pattern",`sl-bb-button-${Q}`),style:{position:"absolute"}}),"No Effect"!=J&&"effect001"!=J&&"effect003"!=J&&!wt&&(0,k.jsx)("span",{className:"sl-bb-button-effect"})]}),M?"left"===E?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("span",{className:b()("sl-bb-button-block-icon",_t?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=N&&(0,k.jsx)("span",{className:b()("sl-bb-button-icon-shape",`sl-bb-button-icon-${N}`)}),i?.oldSVG&&(0,k.jsx)(_,{attributes:t,others:i}),!i?.oldSVG&&(0,k.jsx)(I,{attributes:{...t,iconAnimColor:Vt},others:i})]}),(i?.d2||""!=O.trim())&&(0,k.jsx)("span",{style:{display:"inline-block",width:P+"px"}}),e?Xt:(i?.d2||""!=O.trim())&&Wt]}):(0,k.jsxs)(k.Fragment,{children:[e?Xt:(i?.d2||""!=O.trim())&&Wt,(i?.d2||""!=O.trim())&&(0,k.jsx)("span",{style:{display:"inline-block",width:P+"px"}}),(0,k.jsxs)("span",{className:b()("sl-bb-button-block-icon",_t?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=N&&(0,k.jsx)("span",{className:b()("sl-bb-button-icon-shape",`sl-bb-button-icon-${N}-right`)}),i?.oldSVG&&(0,k.jsx)(_,{attributes:t,others:i}),!i?.oldSVG&&(0,k.jsx)(I,{attributes:{...t,iconAnimColor:Vt},others:i})]})]}):(0,k.jsx)(k.Fragment,{children:e?Xt:Wt}),("effect003"===at||"effect004"===at)&&(0,k.jsx)("span",{className:"sl-bb-button-click"}),"effect005"===at&&(0,k.jsx)("span",{className:"sl-bb-button-click-parent",children:(0,k.jsx)("span",{className:"sl-bb-button-click"})}),!St&&ct&&"No Effect"!==ct&&(0,k.jsx)("span",{style:{display:"none"},className:b()("sl-bb-button-block-loading",`sl-bb-button-block-loading-${ct}`)}),!St&&rt&&(0,k.jsx)("span",{className:"sl-bb-button-block-loading-text",children:bt})]}),wt&&(0,k.jsx)("svg",{width:"0",height:"0",xmlns:"http://www.w3.org/2000/svg",dangerouslySetInnerHTML:Tt,class:"sl-bb-button-block-svg-effect"}),!e&&jt&&""!=jt&&(0,k.jsx)("style",{type:"text/css","data-no-optimize":"1","data-no-minify":"1",children:jt})]})}const Ht=e.p+"images/library-button-image1.ae24fc9c.webp",Xt=e.p+"images/library-button-image2.0534463a.webp",Wt=t=>(0,k.jsx)(c.Dropdown,{popoverProps:{placement:t?.position?.pos||"left-start",offset:t?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",style:{margin:t?.style?.margin||"10px 35px",textAlign:"center"},focusOnMount:!0,renderToggle:Zt(t),renderContent:o=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",style:{height:"440px",width:"710px",paddingTop:"5px"},children:(0,k.jsx)(Qt,{...t,onToggle:o.onToggle,height:"380px"})})})})}),Ft=t=>(0,k.jsx)(c.Dropdown,{popoverProps:{placement:"bottom-start",offset:40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",focusOnMount:!0,renderToggle:Vt(t),renderContent:o=>(0,k.jsx)(c.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,k.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,k.jsx)("div",{className:"block-editor-color-gradient-control__panel",style:{height:"280px",width:"710px",paddingTop:"5px"},children:(0,k.jsx)(Qt,{...t,onToggle:o.onToggle,height:"220px"})})})})}),Vt=()=>({onToggle:t,isOpen:o})=>(0,k.jsx)(c.ToolbarButton,{label:(0,l.__)("Pick a Ready-Made Button","safelayout-brilliant-buttons"),showTooltip:!0,onClick:t,"aria-expanded":o,"aria-haspopup":"true",className:b()({"is-open":o}),children:(0,l.__)("Presets","safelayout-brilliant-buttons")}),Zt=t=>({onToggle:o,isOpen:e})=>{const{disabled:n}=t,a={onClick:o,className:b()("sl-bb-button-library-btn",{"is-open":e}),"aria-expanded":e};return(0,k.jsx)(c.Button,{...a,disabled:n,title:(0,l.__)("Pick a Ready-Made Button","safelayout-brilliant-buttons"),children:(0,k.jsx)("div",{children:(0,l.__)("Browse Button Presets","safelayout-brilliant-buttons")})})},Qt=(0,i.memo)(function({onIconClick:t,onToggle:o,height:e}){return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",style:{margin:"0 0 5px 0"},children:(0,l.__)("Pick a Ready-Made button—you can customize the text, link and design anytime.","safelayout-brilliant-buttons")}),(0,k.jsxs)("div",{className:"sl-bb-button-block-icons-container",style:{height:e,marginTop:"0"},children:[kt?.map((e,l)=>{const n={...yt,...e.attributes,blockId:"sl-bb-button-block-library-list-"+l};return(0,k.jsx)("div",{className:"sl-bb-button-block-effectlist safelayout-bb-button-block sl-bb-library",onClick:e=>{t(e),o()},title:e.name,"data-button-lib-name":e.name,children:(0,k.jsx)(Gt,{attributes:n,isInEditor:!1,clickEff:!0})},l)}),(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,l.__)("Preview of Pro Version Buttons.","safelayout-brilliant-buttons")}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:Ht}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:Xt})]})]})}),$t=e.p+"images/button-effects1.f33ddb54.png",Jt=e.p+"images/button-effects2.100721b3.png",qt=e.p+"images/button-pattern.5e561e8c.png",Kt=e.p+"images/button-shape.88b038fc.png";let to=[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}];function oo(t){const{attributes:o,setAttributes:e,clientId:n}=t,{align:s,textAlign:r,uppercase:b,fontSize:u,lineHeight:d,letterSpacing:j,width:C,minWidth:w,textColor:S,textColorSlug:M,hasBg:N,bgColor:v,bgColorSlug:A,border:I,borderRadius:_,hasBgShadow:T,bgShadow:z,hasTextShadow:L,textShadow:D,blockPadding:E,blockMargin:P,label:O,title:B,linkUrl:R,linkRel:Y,linkTarget:U,bgPattern:H,patternOpacity:X,effect:W,rotate:F,slbbAnim:V,animColor:Z,animColorSlug:Q,hasIcon:$,iconShape:J,iconShapeColor:q,iconShapeColorSlug:tt,iconAnimation:ot,iconAnimColor:et,iconAnimColorSlug:lt,iconPos:nt,iconGap:at,iconName:it,iconPaths:st,iconColor:rt,iconColorSlug:bt,iconStrokeColor:ct,iconStrokeColorSlug:ut,iconStrokeWidth:dt,clickEffect:ft,clickEffectColor:pt,clickEffectColorSlug:mt,hasLoading:gt,loadingText:xt,loadingEffect:yt,animColorTwo:kt,animColorTwoSlug:jt,hasSubText:Ct,subText:wt,animSTColor:St,animSTColorSlug:Mt,iconAnimColorTwo:Nt,iconAnimColorTwoSlug:vt}=o,[At,It]=(0,i.useState)(!1),_t="_blank"===U,Lt="noreferrer noopener",Et=Number(W?.substring(6)),Ot=Et>=36&&Et<=41,Bt={name:"general",title:(0,l.__)("General Anim","safelayout-brilliant-buttons"),value:"general"},Rt={name:"icon",title:(0,l.__)("Icon Anim","safelayout-brilliant-buttons"),value:"icon"},Ut={[Bt.value]:(0,k.jsxs)(i.Fragment,{children:["No Animation"!=V&&ro(V)?.control&&(0,k.jsx)(G,{attribute:Z,selectedSlug:Q,label:ro(V)?.label,onlySolid:ro(V)?.solid,click:t=>e({animColor:t.target.style.background,animColorSlug:t.target.dataset.slug}),change:t=>e({animColor:t,animColorSlug:void 0})}),"No Animation"!=V&&ro(V)?.controlTwo&&(0,k.jsx)(G,{attribute:kt,selectedSlug:jt,label:ro(V)?.labelTwo,onlySolid:ro(V)?.solidTwo,click:t=>e({animColorTwo:t.target.style.background,animColorTwoSlug:t.target.dataset.slug}),change:t=>e({animColorTwo:t,animColorTwoSlug:void 0})}),"No Animation"!=V&&ro(V)?.controlSTColor&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{style:{display:"inline-block",width:"70%"},children:(0,k.jsx)(G,{attribute:St,selectedSlug:Mt,label:ro(V)?.labelTwo,onlySolid:ro(V)?.solidTwo,click:t=>e({animSTColor:t.target.style.background,animSTColorSlug:t.target.dataset.slug}),change:t=>e({animSTColor:t,animSTColorSlug:void 0})})}),(0,k.jsx)(c.Button,{variant:"secondary",onClick:()=>e({animSTColor:void 0,animSTColorSlug:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"super"},children:(0,l.__)("Reset","safelayout-brilliant-buttons")})]}),(0,k.jsx)(uo,{currentAnim:V,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-anim-name"),a=ro(l),i=wp.data.select("core/block-editor").getBlock(n).attributes.animColor;let s={};a?.solid&&-1!==i.indexOf("gradient")&&(s={animColor:"#fff",animColorSlug:void 0}),Yt("sl-bb-list-selected-anim"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-anim"),e({slbbAnim:l,...s}),ho()}})]},"generalA"),[Rt.value]:(0,k.jsxs)(i.Fragment,{children:["No Animation"!=ot&&bo(ot)?.control&&(0,k.jsx)(G,{attribute:et,selectedSlug:lt,label:bo(ot)?.label,onlySolid:bo(ot)?.solid,click:t=>e({iconAnimColor:t.target.style.background,iconAnimColorSlug:t.target.dataset.slug}),change:t=>e({iconAnimColor:t,iconAnimColorSlug:void 0}),disabled:Ot||!$}),"No Animation"!=ot&&bo(ot)?.controlTwo&&(0,k.jsx)(G,{attribute:Nt,selectedSlug:vt,label:bo(ot)?.labelTwo,onlySolid:bo(ot)?.solidTwo,click:t=>e({iconAnimColorTwo:t.target.style.background,iconAnimColorTwoSlug:t.target.dataset.slug}),change:t=>e({iconAnimColorTwo:t,iconAnimColorTwoSlug:void 0}),disabled:Ot||!$}),(0,k.jsx)(mo,{currentAnim:ot,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-icon-anim-name");Yt("sl-bb-list-selected-icon-anim"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-icon-anim"),e({iconAnimation:l}),ho()},disabled:Ot||!$})]},"iconA")},Gt={name:"general",title:(0,l.__)("General","safelayout-brilliant-buttons"),value:"general"},Ht={name:"more",title:(0,l.__)("More Options","safelayout-brilliant-buttons"),value:"more"},Xt=[Gt,Ht],Vt={[Gt.value]:(0,k.jsxs)(i.Fragment,{children:[(0,k.jsx)(Wt,{onIconClick:t=>{const o=t.currentTarget.getAttribute("data-button-lib-name"),l=ht(o);l&&(e({...l}),ho())}}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Button effect","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-customizer",children:(0,k.jsx)(co,{currentEffect:W,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-effect-name"),n=K(l);Yt("sl-bb-list-selected-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-effect"),e({effect:l,...n?.attributes}),ho()}})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Link and Title","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-links",className:"sl-bb-button-block-link-panel",children:[(0,k.jsx)(c.TextControl,{label:(0,l.__)("Tooltip","safelayout-brilliant-buttons"),value:B||"",onChange:t=>e({title:t})}),(0,k.jsx)(c.TextControl,{label:(0,l.__)("Label","safelayout-brilliant-buttons"),value:O||"",onChange:t=>e({label:t}),help:(0,l.__)("It is for screen readers.","safelayout-brilliant-buttons")}),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Link url","safelayout-brilliant-buttons")}),(0,k.jsx)(a.LinkControl,{value:{url:R,opensInNewTab:_t},onChange:({url:t="",opensInNewTab:o})=>{e({linkUrl:t}),_t!==o&&function(t){const o=t?"_blank":void 0;let l=Y;o&&!Y?l=Lt:o||Y!==Lt||(l=void 0),e({linkTarget:o,linkRel:l})}(o)},onRemove:()=>{e({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,k.jsx)(c.TextControl,{label:(0,l.__)("Link rel","safelayout-brilliant-buttons"),value:Y||"",onChange:t=>e({linkRel:t})})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Size","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-expand",children:[(0,k.jsx)(c.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:eo,onChange:t=>e({fontSize:t}),value:u}),(0,k.jsxs)(c.__experimentalGrid,{columns:2,children:[(0,k.jsx)(a.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:t=>e({lineHeight:t}),value:d}),(0,k.jsx)(a.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:t=>e({letterSpacing:t}),value:j})]}),(0,k.jsx)(c.BaseControl.VisualLabel,{style:{display:"block",marginTop:"5px",marginBottom:"0"},children:(0,l.__)("Width","safelayout-brilliant-buttons")}),(0,k.jsxs)(c.__experimentalGrid,{columns:2,style:{alignItems:"center"},children:[(0,k.jsx)(c.__experimentalToggleGroupControl,{value:C,onChange:t=>e({width:t}),size:"small",style:{width:"170px"},children:[25,50,75,100].map(t=>(0,k.jsx)(c.__experimentalToggleGroupControlOption,{value:t,label:t+"%"},t))}),(0,k.jsx)(c.Button,{variant:"secondary",onClick:()=>e({width:0}),size:"small",style:{margin:"0 5px"},children:(0,l.__)("Reset","safelayout-brilliant-buttons")})]}),(0,k.jsxs)("div",{style:{display:"inline-block"},children:[(0,k.jsx)(c.BaseControl.VisualLabel,{style:{display:"block",margin:"8px 0 0"},children:(0,l.__)("Minimum Width","safelayout-brilliant-buttons")}),(0,k.jsx)(c.__experimentalUnitControl,{__unstableInputWidth:"150px",onChange:t=>e({minWidth:t}),value:w,size:"small"})]}),(0,k.jsx)(c.Button,{variant:"secondary",onClick:()=>e({minWidth:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"bottom"},children:(0,l.__)("Reset","safelayout-brilliant-buttons")})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Font","safelayout-brilliant-buttons"),initialOpen:!1,icon:"edit",children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsx)(c.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,k.jsx)("option",{value:"Default",children:"Default"})})]})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Color","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-appearance",className:"sl-bb-button-block-color-panel-icon",children:[(0,k.jsx)(c.ToggleControl,{checked:N,help:(0,l.__)("Add a background color to the button.","safelayout-brilliant-buttons"),label:(0,l.__)("Background color","safelayout-brilliant-buttons"),onChange:t=>e({hasBg:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,k.jsx)(G,{attribute:v,selectedSlug:A,label:(0,l.__)("Background color","safelayout-brilliant-buttons"),click:t=>e({bgColor:t.target.style.background,bgColorSlug:t.target.dataset.slug}),change:t=>t&&e({bgColor:t,bgColorSlug:void 0}),disabled:!N}),(0,k.jsx)(G,{attribute:S,selectedSlug:M,label:(0,l.__)("Text color","safelayout-brilliant-buttons"),click:t=>e({textColor:t.target.style.background,textColorSlug:t.target.dataset.slug}),change:t=>t&&e({textColor:t,textColorSlug:void 0}),onlySolid:!0})]})}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Icon","safelayout-brilliant-buttons"),initialOpen:!1,icon:"art",children:[(0,k.jsx)(c.ToggleControl,{checked:$,help:(0,l.__)("Add an icon to the button.","safelayout-brilliant-buttons"),label:(0,l.__)("Add icon","safelayout-brilliant-buttons"),onChange:t=>e({hasIcon:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,k.jsx)(Pt,{name:it,paths:st,color:rt,label:(0,l.__)("Icon","safelayout-brilliant-buttons")+": "+it.substring(4),onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-icon-name"),n=zt(l),a=Dt(n);Yt("sl-bb-list-selected-icon"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-icon");let i={...a,...n?.attributes};i?.color||(i={...i,color:[rt[0]],iconColorSlug:[bt?.[0]]}),i?.strokeColor||(i={...i,strokeColor:[ct[0]],iconStrokeColorSlug:[ut?.[0]]}),i?.strokeWidth||(i={...i,strokeWidth:[dt[0]]}),i?.iconColorSlug||(i={...i,iconColorSlug:Array(i?.color.length).fill()}),i?.iconStrokeColorSlug||(i={...i,iconStrokeColorSlug:Array(i?.strokeColor.length).fill()}),e({iconName:l,iconPaths:n.paths,iconColor:i.color,iconColorSlug:i.iconColorSlug,iconStrokeColor:i.strokeColor,iconStrokeColorSlug:i.iconStrokeColorSlug,iconStrokeWidth:i.strokeWidth})},disabled:!$}),(0,k.jsxs)("div",{style:{padding:"15px"},children:[(0,k.jsx)(c.ToggleControl,{checked:At,label:(0,l.__)("Show Number, Text or Emoji instead of icon.","safelayout-brilliant-buttons"),onChange:t=>It(t),disabled:!$}),At&&(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsxs)(c.__experimentalGrid,{columns:2,style:{display:"flex",justifyContent:"space-around",margin:"10px 0 -6px"},children:[(0,k.jsx)(c.TextControl,{label:(0,l.__)("Number / Text","safelayout-brilliant-buttons"),className:"sl-bb-button-block-disabled-element",disabled:!0}),(0,k.jsx)(c.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,k.jsx)("option",{value:"Default",children:"Default"})})]}),(0,k.jsx)("span",{className:"sl-bb-help-msg",children:(0,l.__)('One or two char "01" "2" "A1" "😎" ...',"safelayout-brilliant-buttons")})]})]})]}),(0,k.jsx)("hr",{style:{margin:"7px 0"}}),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Icon position","safelayout-brilliant-buttons")}),(0,k.jsxs)(c.__experimentalToggleGroupControl,{value:nt,isBlock:!0,onChange:t=>e({iconPos:t}),disabled:!$,size:"small",children:[(0,k.jsx)(c.__experimentalToggleGroupControlOption,{value:"left",label:(0,l.__)("Left","safelayout-brilliant-buttons"),disabled:!$}),(0,k.jsx)(c.__experimentalToggleGroupControlOption,{value:"right",label:(0,l.__)("Right","safelayout-brilliant-buttons"),disabled:!$})]}),rt.map((t,o,n)=>(0,k.jsx)(G,{attribute:t,selectedSlug:bt?.[o],label:(0,l.__)("Icon Fill Color","safelayout-brilliant-buttons")+Tt(o,n.length),click:t=>{let l=[...rt],n=[...bt||Array(rt.length).fill()];l[o]=t.target.style.background,n[o]=t.target.dataset.slug,e({iconColor:l,iconColorSlug:n})},change:t=>{let l=[...rt],n=[...bt||Array(rt.length).fill()];t&&(l[o]=t,n[o]=void 0),e({iconColor:l,iconColorSlug:n})},disabled:!$},o)),ct.map((t,o,n)=>(0,k.jsx)(G,{attribute:t,selectedSlug:ut?.[o],label:(0,l.__)("Icon Stroke Color","safelayout-brilliant-buttons")+Tt(o,n.length),click:t=>{let l=[...ct],n=[...ut||Array(ct.length).fill()];l[o]=t.target.style.background,n[o]=t.target.dataset.slug,e({iconStrokeColor:l,iconStrokeColorSlug:n})},change:t=>{let l=[...ct],n=[...ut||Array(ct.length).fill()];t&&(l[o]=t,n[o]=void 0),e({iconStrokeColor:l,iconStrokeColorSlug:n})},disabled:!$},o)),dt.map((t,o,n)=>(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Icon Stroke Width","safelayout-brilliant-buttons")+Tt(o,n.length),min:0,max:200,value:t,className:"sl-bb-button-block-no-margin-bottom",onChange:t=>{let l=[...dt];l[o]=t,e({iconStrokeWidth:l})},disabled:!$},o)),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Icon gap","safelayout-brilliant-buttons")}),(0,k.jsx)(c.RangeControl,{min:0,max:250,className:"sl-bb-button-block-no-margin-bottom",value:at,disabled:!$,onChange:t=>e({iconGap:t})}),(0,k.jsx)("hr",{style:{margin:"7px 0 12px 0"}}),(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsx)(c.Disabled,{children:(0,k.jsx)(c.ToggleControl,{help:(0,l.__)("The button text will be hidden.","safelayout-brilliant-buttons"),label:(0,l.__)("Only show icon","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom"})})]}),(0,k.jsx)("hr",{style:{margin:"7px 0"}}),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Icon background shape","safelayout-brilliant-buttons")}),"No Shape"!=J&&(0,k.jsx)(G,{attribute:q,selectedSlug:tt,label:(0,l.__)("Background shape color","safelayout-brilliant-buttons"),click:t=>e({iconShapeColor:t.target.style.background,iconShapeColorSlug:t.target.dataset.slug}),change:t=>e({iconShapeColor:t,iconShapeColorSlug:void 0}),disabled:!$}),(0,k.jsx)(po,{currentShape:J,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-shape-name");Yt("sl-bb-list-selected-shape"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-shape"),e({iconShape:l}),ho()},disabled:!$}),(0,k.jsx)("hr",{style:{margin:"7px 0"}}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Icon shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.ToggleControl,{label:(0,l.__)("Icon shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom"}),(0,k.jsx)(G,{attribute:"#000",label:(0,l.__)("color","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("blur","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("X offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Y offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:p,children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Icon size","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Background shape size","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Background shape position","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})})]})}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Sub text","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-textcolor",children:[(0,k.jsx)(c.ToggleControl,{checked:Ct,help:(0,l.__)("Add a sub text to the button.","safelayout-brilliant-buttons"),label:(0,l.__)("Sub text","safelayout-brilliant-buttons"),onChange:t=>e({hasSubText:t,subTextAlign:"center",subTextFontSize:"11px"})}),(0,k.jsx)("div",{style:{textAlign:"center",marginBottom:"3px"},children:(0,k.jsx)("textarea",{value:wt?.replaceAll("<br>","\n"),onChange:t=>e({subText:t.target.value?.replaceAll("\n","<br>")}),placeholder:(0,l.__)("More Text","safelayout-brilliant-buttons"),rows:"2",cols:"33",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center",marginBottom:"10px"},disabled:!Ct})}),(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsx)("div",{style:{textAlign:"center"},children:(0,k.jsx)(c.ToolbarGroup,{style:{border:"none"},children:(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.ToolbarButton,{icon:m,label:(0,l.__)("Align text","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.ToolbarButton,{icon:g,label:(0,l.__)("Uppercase","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.ToolbarButton,{icon:"editor-bold",label:(0,l.__)("Bold","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.ToolbarButton,{icon:"editor-italic",label:(0,l.__)("Italic","safelayout-brilliant-buttons"),disabled:!0})]})})}),(0,k.jsx)(c.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Sub Text Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,k.jsx)("option",{value:"Default",children:"Default"})})]}),(0,k.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.ToggleControl,{label:(0,l.__)("Sub text color","safelayout-brilliant-buttons")}),(0,k.jsx)(G,{attribute:"#000",label:(0,l.__)("Sub text color","safelayout-brilliant-buttons"),disabled:!0})]})]}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Sub Text size","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-expand",children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Sub text top","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,k.jsx)(c.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:eo})]})]})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Sub Text shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsxs)(c.Disabled,{children:[(0,k.jsx)(c.ToggleControl,{label:(0,l.__)("Sub Text shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom"}),(0,k.jsx)(G,{attribute:"#000",label:(0,l.__)("color","safelayout-brilliant-buttons"),disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("blur","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("X offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Y offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:p,children:(0,k.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,k.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,k.jsx)(c.TextControl,{label:(0,l.__)("Sub Text Additional CSS class(es)","safelayout-brilliant-buttons"),help:(0,l.__)("Separate multiple classes with spaces.","safelayout-brilliant-buttons"),className:"sl-bb-button-block-disabled-element",disabled:!0})]})})})]})})]},"general"),[Ht.value]:(0,k.jsxs)(i.Fragment,{children:[(0,k.jsx)("div",{style:{height:"8px"}}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Border","safelayout-brilliant-buttons"),initialOpen:!1,icon:x,children:[(0,k.jsx)(c.__experimentalBorderBoxControl,{onChange:t=>e({border:t}),value:I,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,k.jsx)(c.Button,{variant:"secondary",onClick:()=>e({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,l.__)("Reset","safelayout-brilliant-buttons")}),(0,k.jsx)(c.__experimentalBoxControl,{label:(0,l.__)("Border radius","safelayout-brilliant-buttons"),values:_,onChange:t=>e({borderRadius:t})})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Background pattern","safelayout-brilliant-buttons"),initialOpen:!1,icon:"screenoptions",children:[(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Pattern opacity","safelayout-brilliant-buttons"),min:.1,max:1,step:.05,className:"sl-bb-button-block-no-margin-bottom",value:X,withInputField:!1,disabled:"No Pattern"===H,onChange:t=>e({patternOpacity:t})}),(0,k.jsx)(fo,{currentPattern:H,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-pattern-name");Yt("sl-bb-list-selected-pattern"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-pattern"),e({bgPattern:l}),ho()}})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Box shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:[(0,k.jsx)(c.ToggleControl,{checked:T,label:(0,l.__)("Box shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom",onChange:t=>e({hasBgShadow:t})}),(0,k.jsx)(G,{attribute:no(z,3),label:(0,l.__)("color","safelayout-brilliant-buttons"),onlySolid:!0,noCurentInherit:!0,click:t=>e({bgShadow:ao(z,3,t.target.style.background)}),change:t=>e({bgShadow:ao(z,3,t)}),disabled:!T}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("blur","safelayout-brilliant-buttons"),min:0,max:100,step:Ot?.1:1,className:"sl-bb-button-block-no-margin-bottom",value:no(z,2),disabled:!T,onChange:t=>e({bgShadow:ao(z,2,t)})}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("X offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:no(z,0),disabled:!T,onChange:t=>e({bgShadow:ao(z,0,t)})}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Y offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:no(z,1),disabled:!T,onChange:t=>e({bgShadow:ao(z,1,t)})})]})}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Text shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:[(0,k.jsx)(c.ToggleControl,{checked:L,label:(0,l.__)("Text shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom",onChange:t=>e({hasTextShadow:t})}),(0,k.jsx)(G,{attribute:no(D,3),label:(0,l.__)("color","safelayout-brilliant-buttons"),onlySolid:!0,noCurentInherit:!0,click:t=>e({textShadow:ao(D,3,t.target.style.background)}),change:t=>e({textShadow:ao(D,3,t)}),disabled:!L}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("blur","safelayout-brilliant-buttons"),min:0,max:100,className:"sl-bb-button-block-no-margin-bottom",value:no(D,2),disabled:!L,onChange:t=>e({textShadow:ao(D,2,t)})}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("X offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:no(D,0),disabled:!L,onChange:t=>e({textShadow:ao(D,0,t)})}),(0,k.jsx)(c.RangeControl,{label:(0,l.__)("Y offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:no(D,1),disabled:!L,onChange:t=>e({textShadow:ao(D,1,t)})})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsx)(c.PanelBody,{title:(0,l.__)("Hover animation","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-video",children:(0,k.jsx)(c.TabPanel,{className:"sl-bb-icon-block-panel-tabs",tabs:[Bt,Rt],initialTabName:Bt.value,children:t=>{return o=t.value,(0,k.jsx)(k.Fragment,{children:Ut[o]});var o}})})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Click effect","safelayout-brilliant-buttons"),initialOpen:!1,icon:"yes",children:[("effect003"===ft||"effect004"===ft||"effect005"===ft)&&(0,k.jsx)(G,{attribute:pt,selectedSlug:mt,label:(0,l.__)("Click effect color","safelayout-brilliant-buttons"),click:t=>e({clickEffectColor:t.target.style.background,clickEffectColorSlug:t.target.dataset.slug}),change:t=>e({clickEffectColor:t,clickEffectColorSlug:void 0})}),(0,k.jsx)(go,{currentAnim:ft,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-click-name");Yt("sl-bb-list-selected-click-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-click-effect"),e({clickEffect:l}),ho()}})]})}),!Ot&&(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("After click ( loading )","safelayout-brilliant-buttons"),initialOpen:!1,icon:"update-alt",children:[(0,k.jsx)(c.ToggleControl,{checked:gt,help:(0,l.__)("Change button text after click.","safelayout-brilliant-buttons"),label:(0,l.__)("Change button text","safelayout-brilliant-buttons"),onChange:t=>e({hasLoading:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,k.jsx)(c.TextControl,{label:(0,l.__)("New text","safelayout-brilliant-buttons"),value:xt||"",onChange:t=>e({loadingText:t}),disabled:!gt,help:(0,l.__)('See "After click" effect on the front-end.',"safelayout-brilliant-buttons")}),(0,k.jsx)(c.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,l.__)("Loading effect","safelayout-brilliant-buttons")}),(0,k.jsx)(xo,{currentLoading:yt,onIconClick:t=>{const o=t.currentTarget,l=o.getAttribute("data-loading-name");Yt("sl-bb-list-selected-loading-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-loading-effect"),e({loadingEffect:l}),ho()}})]})}),(0,k.jsx)(c.Panel,{children:(0,k.jsxs)(c.PanelBody,{title:(0,l.__)("Block spacing","safelayout-brilliant-buttons"),initialOpen:!1,icon:h,children:[(0,k.jsx)(c.__experimentalBoxControl,{label:(0,l.__)("Margin","safelayout-brilliant-buttons"),values:P,onChange:t=>e({blockMargin:t})}),(0,k.jsx)("div",{style:{height:"10px"}}),(0,k.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,k.jsx)(c.__experimentalBoxControl,{label:(0,l.__)("Padding","safelayout-brilliant-buttons"),values:E,onChange:t=>e({blockPadding:t})})]})})]},"more")};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(a.BlockControls,{children:[(0,k.jsx)(a.BlockAlignmentToolbar,{controls:["left","center","right"],value:s,onChange:t=>e({align:t})}),(0,k.jsxs)(c.ToolbarGroup,{children:[!Ot&&(0,k.jsx)(a.AlignmentToolbar,{controls:["left","center","right"],value:r,onChange:t=>e({textAlign:t})}),!Ot&&(0,k.jsx)(c.ToolbarButton,{icon:g,label:(0,l.__)("Uppercase","safelayout-brilliant-buttons"),onClick:()=>e({uppercase:!b}),isPressed:b}),Ot&&(0,k.jsx)(c.ToolbarButton,{icon:y,label:(0,l.__)("Rotate","safelayout-brilliant-buttons"),onClick:()=>e({rotate:(F+45)%360}),isPressed:0!=F})]}),(0,k.jsx)(c.ToolbarGroup,{children:(0,k.jsx)(Ft,{onIconClick:t=>{const o=t.currentTarget.getAttribute("data-button-lib-name"),l=ht(o);l&&(e({...l}),ho())}})})]}),(0,k.jsxs)(a.InspectorControls,{children:[(0,k.jsx)(c.TabPanel,{className:"sl-bb-icon-block-panel-tabs",tabs:Xt,initialTabName:Gt.value,children:t=>{return o=t.value,(0,k.jsx)(k.Fragment,{children:Vt[o]});var o}}),(0,k.jsx)("div",{className:"sl-bb-button-block-upgrade-pro",children:(0,k.jsx)("a",{href:"https://safelayout.com/safelayout-brilliant-buttons-pro/",target:"_blank",className:"button",title:(0,l.__)("Upgrade to pro version and get full features.","safelayout-brilliant-buttons"),children:(0,l.__)("Upgrade to Pro","safelayout-brilliant-buttons")})}),(0,k.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,k.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,k.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})]})}const eo=[{name:"Small",size:"13px",slug:"small"},{name:"Medium",size:"16px",slug:"medium"},{name:"Large",size:"24px",slug:"large"},{name:"Extre Large",size:"36px",slug:"extre large"}];function lo(t,o){return{[`border${t}Width`]:o?.width||null,[`border${t}Color`]:o?.color||null,[`border${t}Style`]:o?.style||null}}function no(t,o){t||(t="1px 1px 1px #fff");let e=t.split("px ")[o];return o<3?parseFloat(e):e}function ao(t,o,e){let l=t.split("px ");return l[o]=e,l.join("px ")}function io(t,o,e){return o&&(t=o?.top?{...t,...lo("Top",o?.top),...lo("Right",o?.right),...lo("Bottom",o?.bottom),...lo("Left",o?.left)}:{...t,...lo("",o)}),e&&(t={...t,borderTopLeftRadius:e?.top||null,borderTopRightRadius:e?.right||null,borderBottomRightRadius:e?.bottom||null,borderBottomLeftRadius:e?.left||null}),t}const so={content:"Button",textColor:"#3e3eff",hasBg:!0,bgColor:"#33FF33",textAlign:"center",uppercase:!0,fontSize:"18px",lineHeight:"1.4",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:[],iconColor:[],iconStrokeColor:[],iconStrokeWidth:[],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",bgPattern:"No Pattern",patternOpacity:.2,slbbAnim:"No Animation",animColor:"#fff",svgEffect:"",rotate:0,clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",animColorTwo:"#f00"},ro=t=>nt.find(({name:o})=>o===t)||null,bo=t=>at.find(({name:o})=>o===t)||null,co=(0,i.memo)(function({currentEffect:t,onIconClick:o}){return Yt("sl-bb-list-selected-effect"),(0,k.jsxs)("div",{className:"sl-bb-button-block-effects-container",style:{height:"207px"},children:[et.map((e,l)=>{const n=e.name,a={...so,...e?.attributes,...e?.attribHelp,blockId:"sl-bb-button-block-effect-list-"+l,blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:n};return(0,k.jsx)("div",{style:{display:"inline-block",height:"94px",padding:"28px 7px",margin:"3px"},id:n===t?"sl-bb-list-selected-effect":null,className:"sl-bb-button-block-effectlist safelayout-bb-button-block"+(n===t?" sl-bb-list-selected":""),onClick:o,title:n,"data-effect-name":n,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1,clickEff:!0})},l)}),(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,l.__)("Preview of Pro Effects.","safelayout-brilliant-buttons")}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:$t}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:Jt})]})},(t,o)=>t.currentEffect===o.currentEffect),uo=(0,i.memo)(function({currentAnim:t,onIconClick:o}){Yt("sl-bb-list-selected-anim");const e={...so,fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007"};return(0,k.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"169px"},children:nt.map((l,n)=>{const a={...e,blockId:"sl-bb-button-block-anim-list-"+n,slbbAnim:l?.name};return"border-color"!==l?.name&&"text-and-border-color"!==l?.name||(a.hasBgShadow=!1,a.animColor="#d63638"),"text-color"===l?.name&&(a.animColor="#d63638"),"swap-color"===l?.name&&(a.hasTextShadow=!1),(0,k.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px"},id:l?.name===t?"sl-bb-list-selected-anim":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(l?.parent||"")+(l?.name===t?" sl-bb-list-selected":""),onClick:o,title:l?.name?.replaceAll("-"," "),"data-anim-name":l?.name,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1})},n)})})},(t,o)=>t.currentAnim===o.currentAnim),fo=(0,i.memo)(function({currentPattern:t,onIconClick:o}){return Yt("sl-bb-list-selected-pattern"),(0,k.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"155px"},children:[bt.map((e,l)=>(0,k.jsx)("div",{style:{display:"inline-block",height:"71px",padding:"7px"},id:e===t?"sl-bb-list-selected-pattern":null,className:"sl-bb-button-block-animlist"+(e===t?" sl-bb-list-selected":""),onClick:o,title:e,"data-pattern-name":e,children:(0,k.jsx)("div",{className:"sl-bb-button-block-pattern sl-bb-button-"+e.toLowerCase().replace(" ","-"),style:{border:"1px solid #ffc3c3",height:"100%",width:"100%",opacity:"0.8",zIndex:"1"}})},l)),(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,l.__)("Preview of Pro Patterns.","safelayout-brilliant-buttons")}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:qt})]})},(t,o)=>t.currentPattern===o.currentPattern),po=(0,i.memo)(function({currentShape:t,onIconClick:o,disabled:e}){Yt("sl-bb-list-selected-shape");const n={...so,bgColor:"#34dd34",fontSize:"13px",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"5px",right:"10px",bottom:"5px",left:"10px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007",hasIcon:!0,iconGap:9,iconPaths:to,iconColor:["#fff"]};return(0,k.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"114px",width:"235px",overflow:e?"hidden":"auto"},children:[it.map((e,l)=>{const a={...n,blockId:"sl-bb-button-block-shape-list-"+l,iconShape:e.name};return(0,k.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:e.name===t?"sl-bb-list-selected-shape":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(e.name===t?" sl-bb-list-selected":""),onClick:o,title:e.name?.replaceAll("-"," "),"data-shape-name":e.name,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1})},l)}),(0,k.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,l.__)("Preview of Pro Shapes.","safelayout-brilliant-buttons")}),(0,k.jsx)("img",{className:"sl-bb-lib-menu-img",src:Kt}),e&&(0,k.jsx)("span",{className:"sl-bb-button-block-list-disabled"})]})},(t,o)=>t.currentShape===o.currentShape&&t.disabled===o.disabled),mo=(0,i.memo)(function({currentAnim:t,onIconClick:o,disabled:e}){Yt("sl-bb-list-selected-icon-anim");const l={...so,hasIcon:!0,iconColor:["#00f"],bgColor:"#34dd34",fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007",iconAnimColor:"#fff",iconAnimColorTwo:"#f00"};return(0,k.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"167px",width:"235px",overflow:e?"hidden":"auto"},children:[at.map((e,n)=>{const a={...l,blockId:"sl-bb-button-block-icon-anim-list-"+n,iconAnimation:e?.name,iconPaths:e?.iconPaths||to};return"shape-color"!==e?.name&&"fill-and-shape-color"!==e?.name||(a.iconShape="shape002",a.iconShapeColor="#008eff"),(0,k.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:e?.name===t?"sl-bb-list-selected-icon-anim":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(e?.name===t?" sl-bb-list-selected":""),onClick:o,title:e?.name?.replaceAll("-"," "),"data-icon-anim-name":e?.name,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1})},n)}),e&&(0,k.jsx)("span",{className:"sl-bb-button-block-list-disabled"})]})},(t,o)=>t.currentAnim===o.currentAnim&&t.disabled===o.disabled),go=(0,i.memo)(function({currentAnim:t,onIconClick:o}){Yt("sl-bb-list-selected-click-effect");const e={...so,bgColor:"#34dd34",fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"10px",bottom:"3px",left:"10px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007"};return(0,k.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"114px",width:"235px"},children:st.map((l,n)=>{const a={...e,blockId:"sl-bb-button-block-click-effect-list-"+n,clickEffect:l};return(0,k.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:l===t?"sl-bb-list-selected-click-effect":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(l===t?" sl-bb-list-selected":""),onClick:o,title:l?.replaceAll("-"," "),"data-click-name":l,children:(0,k.jsx)(Gt,{attributes:a,isInEditor:!1,clickEff:!0})},n)})})},(t,o)=>t.currentAnim===o.currentAnim),xo=(0,i.memo)(function({currentLoading:t,onIconClick:o}){return Yt("sl-bb-list-selected-loading-effect"),(0,k.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"110px",width:"235px",fontSize:"20px"},children:rt.map((e,l)=>(0,k.jsx)("div",{style:{display:"inline-block",height:"48px",padding:"13px 0",textAlign:"center",margin:"2px",width:"48px"},id:e===t?"sl-bb-list-selected-loading-effect":null,className:"sl-bb-button-block-animlist"+(e===t?" sl-bb-list-selected":""),onClick:o,title:e,"data-loading-name":e,children:(0,k.jsx)("span",{style:{display:"inline-block",backgroundColor:"No Effect"===e?"transparent":"#006a00"},className:`sl-bb-button-block-loading sl-bb-button-block-loading-${e?.replaceAll(" ","-")}`})},l))})},(t,o)=>t.currentLoading===o.currentLoading),ho=()=>{const t={},o=wp.data.select("core/block-editor"),e=o.getBlocksByName("safelayout/safelayout-button"),l=o.getBlocksByClientId(e),n=[],i=[],r=[],b=[],c=[],u=[],d=[];for(let o=0;o<l.length;o++){let e=l[o]?.attributes,a="";e?.effect&&"No Effect"!=e?.effect&&!n.includes(e?.effect)&&(a=ct[Number(e?.effect?.substring(6))],n.push(e?.effect)),e?.loadingEffect&&"No Effect"!=e?.loadingEffect&&!i.includes(e?.loadingEffect)&&(a+=dt[Number(e?.loadingEffect?.substring(6))],i.push(e?.loadingEffect)),e?.clickEffect&&"No Effect"!=e?.clickEffect&&!r.includes(e?.clickEffect)&&(a+=ft[Number(e?.clickEffect?.substring(6))],r.push(e?.clickEffect)),e?.iconShape&&"No Shape"!=e?.iconShape&&!b.includes(e?.iconShape)&&(a+=pt[Number(e?.iconShape?.substring(5))],b.push(e?.iconShape)),e?.bgPattern&&"No Pattern"!=e?.bgPattern&&!c.includes(e?.bgPattern)&&(a+=mt[Number(e?.bgPattern?.substring(7))],c.push(e?.bgPattern)),e?.iconAnimation&&"No Animation"!=e?.iconAnimation&&xt[e?.iconAnimation]&&!u.includes(e?.iconAnimation)&&(a+=xt[e?.iconAnimation],u.push(e?.iconAnimation)),e?.slbbAnim&&"No Animation"!=e?.slbbAnim&&xt[e?.slbbAnim]&&!u.includes(e?.slbbAnim)&&(a+=xt[e?.slbbAnim],u.push(e?.slbbAnim));let s={};s.elementStyle=a,t[l[o]?.clientId]=s,d.push(l[o]?.clientId)}if(0<l.length){const o=(0,s.dispatch)(a.store);o.__unstableMarkNextChangeAsNotPersistent(),o.updateBlockAttributes(d,t,!0)}},yo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"safelayout/safelayout-button","version":"1.3.3","title":"Button (Safelayout)","category":"blocks-safelayout-category","description":"Beautiful and high quality buttons.","supports":{"html":false},"attributes":{"blockId":{"type":"string"},"content":{"type":"string","default":"My Button"},"align":{"type":"string"},"textColor":{"type":"string","default":"#00f"},"textColorSlug":{"type":"string"},"hasBg":{"type":"boolean","default":true},"bgColor":{"type":"string","default":"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)"},"bgColorSlug":{"type":"string"},"textAlign":{"type":"string","default":"center"},"uppercase":{"type":"boolean","default":false},"fontSize":{"type":"string","default":"16px"},"lineHeight":{"type":"string","default":"1.5"},"letterSpacing":{"type":"string","default":"0px"},"width":{"type":"number","default":0},"minWidth":{"type":"string"},"hasBgShadow":{"type":"boolean","default":true},"bgShadow":{"type":"string","default":"0px 1px 3px #000"},"hasTextShadow":{"type":"boolean","default":false},"textShadow":{"type":"string","default":"1px 1px 2px #fff"},"blockMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""}},"blockPadding":{"type":"object","default":{"top":"5px","right":"10px","bottom":"5px","left":"10px"}},"border":{"type":"object"},"borderRadius":{"type":"object"},"hasIcon":{"type":"boolean","default":false},"iconShape":{"type":"string","default":"No Shape"},"iconShapeColor":{"type":"string","default":"#3131ff"},"iconShapeColorSlug":{"type":"string"},"iconAnimation":{"type":"string","default":"No Animation"},"iconAnimColor":{"type":"string","default":"#fff"},"iconAnimColorSlug":{"type":"string"},"iconPos":{"type":"string","default":"left"},"iconGap":{"type":"number","default":6},"iconName":{"type":"string","default":"000_next"},"iconPaths":{"type":"array","default":[{"d":"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},"iconColor":{"type":"array","default":["#00f"]},"iconColorSlug":{"type":"array"},"iconStrokeColor":{"type":"array","default":["#000"]},"iconStrokeColorSlug":{"type":"array"},"iconStrokeWidth":{"type":"array","default":[0]},"label":{"type":"string","default":""},"title":{"type":"string","default":""},"linkUrl":{"type":"string","default":""},"linkRel":{"type":"string","default":""},"linkTarget":{"type":"string","default":""},"bgPattern":{"type":"string","default":"No Pattern"},"patternOpacity":{"type":"number","default":0.2},"effect":{"type":"string","default":"No Effect"},"svgEffect":{"type":"string","default":""},"rotate":{"type":"number","default":0},"slbbAnim":{"type":"string","default":"slide-top"},"animColor":{"type":"string","default":"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)"},"animColorSlug":{"type":"string"},"clickEffect":{"type":"string","default":"effect001"},"clickEffectColor":{"type":"string","default":"#1da1f2"},"clickEffectColorSlug":{"type":"string"},"hasLoading":{"type":"boolean","default":false},"loadingText":{"type":"string","default":"Please wait ..."},"loadingEffect":{"type":"string","default":"No Effect"},"animColorTwo":{"type":"string","default":"#f00"},"animColorTwoSlug":{"type":"string"},"hasSubText":{"type":"boolean","default":false},"subText":{"type":"string","default":"More Text"},"subTextAlign":{"type":"string","default":"left"},"subTextFontSize":{"type":"string","default":"13px"},"className":{"type":"string","default":""},"animSTColor":{"type":"string"},"animSTColorSlug":{"type":"string"},"iconAnimColorTwo":{"type":"string","default":"#f00"},"iconAnimColorTwoSlug":{"type":"string"},"elementStyle":{"type":"string","default":""}},"textdomain":"safelayout-brilliant-buttons","editorScript":"file:./index.js","editorStyle":["file:./index.css","file:./style-index.css"],"viewScript":"file:./script.js","viewStyle":"file:./style-index.css"}'),ko={blockId:{type:"string"},content:{type:"string",default:"My Button"},align:{type:"string"},textColor:{type:"string",default:"#00f"},hasBg:{type:"boolean",default:!0},bgColor:{type:"string",default:"#3f3"},textAlign:{type:"string",default:"center"},uppercase:{type:"boolean",default:!1},fontSize:{type:"string",default:"16px"},lineHeight:{type:"string",default:"1.5"},letterSpacing:{type:"string",default:"0px"},width:{type:"number",default:0},hasBgShadow:{type:"boolean",default:!1},bgShadow:{type:"string",default:"1px 1px 2px #000"},hasTextShadow:{type:"boolean",default:!1},textShadow:{type:"string",default:"1px 1px 2px #fff"},blockMargin:{type:"object",default:{top:"",right:"",bottom:"",left:""}},blockPadding:{type:"object",default:{top:"",right:"",bottom:"",left:""}},border:{type:"object"},borderRadius:{type:"object"},hasIcon:{type:"boolean",default:!1},iconShape:{type:"string",default:"No Shape"},iconShapeColor:{type:"string",default:"#3131ff"},iconAnimation:{type:"string",default:"No Animation"},iconAnimColor:{type:"string",default:"#fff"},iconPos:{type:"string",default:"left"},iconGap:{type:"number",default:6},iconName:{type:"string",default:"000_next"},iconPaths:{type:"array",default:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}]},iconColor:{type:"array",default:["#00f"]},iconStrokeColor:{type:"array",default:["#000"]},iconStrokeWidth:{type:"array",default:[0]},label:{type:"string",default:""},title:{type:"string",default:""},linkUrl:{type:"string",default:""},linkRel:{type:"string",default:""},linkTarget:{type:"string",default:""},bgPattern:{type:"string",default:"No Pattern"},patternOpacity:{type:"number",default:.2},effect:{type:"string",default:"No Effect"},svgEffect:{type:"string",default:""},rotate:{type:"number",default:0},animation:{type:"string",default:"No Animation"},animColor:{type:"string",default:"#fff"},clickEffect:{type:"string",default:"effect001"},clickEffectColor:{type:"string",default:"#1da1f2"}},jo={...ko,minWidth:{type:"string"},hasLoading:{type:"boolean",default:!1},loadingText:{type:"string",default:"Please wait ..."},loadingEffect:{type:"string",default:"No Effect"}},Co={bgColor:{type:"string",default:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)"},hasBgShadow:{type:"boolean",default:!0},bgShadow:{type:"string",default:"0px 1px 3px #000"},animation:{type:"string",default:"slide-top"},animColor:{type:"string",default:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)"}},wo={...jo,...Co,animColorTwo:{type:"string",default:"#f00"},hasSubText:{type:"boolean",default:!1},subText:{type:"string",default:"More Text"},subTextAlign:{type:"string",default:"left"},subTextFontSize:{type:"string",default:"13px"}};function So({attributes:t,setAttributes:o,isInEditor:e=!0,clickEff:n,others:i}){const{blockId:s,textAlign:r,uppercase:c,fontSize:u,lineHeight:d,letterSpacing:f,width:p,minWidth:m,textColor:g,hasBg:x,bgColor:h,border:y,borderRadius:C,hasIcon:w,iconShape:S,iconShapeColor:M,iconAnimation:N,iconAnimColor:A,iconPos:T,iconGap:z,content:L,hasBgShadow:D,bgShadow:E,hasTextShadow:P,textShadow:O,blockMargin:B,blockPadding:R,label:Y,title:U,linkUrl:G,linkRel:H,linkTarget:X,bgPattern:W,patternOpacity:F,effect:V,svgEffect:Z,rotate:Q,animation:$,slbbAnim:J,animColor:q,clickEffect:K,clickEffectColor:ot,hasLoading:et,loadingText:lt,loadingEffect:nt,animColorTwo:at,hasSubText:it,subText:st,subTextAlign:rt,subTextFontSize:bt}=t,ct=Number(V?.substring(6)),ut=""!=Z&&ct>=31&&ct<=41,dt=ct>=36&&ct<=41,ft=0!=Q&&dt,pt="effect001"===K?"translateY(1px)":"effect002"===K?"scale(0.985)":"",mt="effect001"===K||"effect002"===K?ft?`${pt} rotate(${Q}deg)`:pt:null,gt=j(A)?`url(#animGrad${s})`:A,xt=tt(S),ht={__html:Z},yt={textAlign:r||"center"},kt=i?.oldAnim?$:J,jt=ro(kt);let Ct={textAlign:rt||"left",textShadow:"none",textTransform:"none",fontWeight:"500",fontStyle:"normal",fontSize:bt||null},wt={...v(null,B,R),textTransform:c?"uppercase":null,"--sl-bb-button-text-color":g,"--sl-bb-button-background-color":x?h:"none","--sl-bb-button-anim-color":kt&&"No Animation"!=kt?q:null,"--sl-bb-button-anim-two-color":kt&&"No Animation"!=kt&&jt?.controlTwo?at:null,"--sl-bb-button-pattern-opacity":String(F),"--sl-bb-button-icon-shape-color":"No Shape"!=S?M:null,"--sl-bb-button-p-top":xt?.padding?R?.top||"5px":null,"--sl-bb-button-p-right":xt?.padding?R?.right||"10px":null,"--sl-bb-button-p-bottom":xt?.padding?R?.bottom||"5px":null,"--sl-bb-button-p-left":xt?.padding?R?.left||"10px":null,"--sl-bb-button-click-effect-color":"effect003"===K||"effect004"===K||"effect005"===K?ot:null,"--sl-bb-button-icon-anim-color":"fill-color"===N?gt:null,boxShadow:D?E:null,textShadow:P?O:null,textDecoration:"auto",cursor:e?null:"pointer",userSelect:e?null:"none",fontSize:"16px"!=u?u:null,lineHeight:"1.5"!=d?d:null,letterSpacing:"0px"!=f?f:null,width:0!=p?p+"%":null,minWidth:m||null};wt=io(wt,y,C);const St=kt&&"No Animation"!=kt?`sl-bb-button-block-animation-${kt}`:null,Mt=N&&"No Animation"!=N?`sl-bb-button-block-animation-icon-${N}`:null,Nt="No Effect"!=K?`sl-bb-button-block-click-${K}`:null,vt=D&&ct>=36&&ct<=41?`drop-shadow(${E})`:null,At="No Effect"!=nt||et?"sl-bb-button-block-has-loading":null,It=t=>(0,k.jsx)(a.RichText,{tagName:"span",value:L,allowedFormats:["core/bold","core/italic","core/non-breaking-space","core/strikethrough","core/subscript","core/superscript","core/text-color","core/underline"],onChange:t=>o({content:t}),placeholder:(0,l.__)("My Button","safelayout-brilliant-buttons"),className:t,style:yt}),_t=it?(0,k.jsxs)("span",{className:"sl-bb-button-block-content",style:yt,children:[It(),(0,k.jsx)("span",{style:Ct,className:b()("sl-bb-button-block-sub-text"),children:st})]}):It("sl-bb-button-block-content"),Tt=it?(0,k.jsxs)("span",{className:"sl-bb-button-block-content",style:yt,children:[(0,k.jsx)(a.RichText.Content,{tagName:"span",value:L,style:yt}),(0,k.jsx)("span",{style:Ct,className:b()("sl-bb-button-block-sub-text"),children:st})]}):(0,k.jsx)(a.RichText.Content,{tagName:"span",value:L,style:yt,className:"sl-bb-button-block-content"});let zt=null;return!e&&!n||"effect003"!==K&&"effect004"!==K||(zt=function(t){if(!(0!=t.button||e&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,l=o.getBoundingClientRect(),n=t.clientX-(l.left+l.width/2),a=t.clientY-(l.top+l.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(n,a)),b=o.getElementsByClassName("sl-bb-button-click")[0];b&&(b.classList.remove("sl-bb-button-click-anim"),b.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),b.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),b.style.setProperty("--sl-bb-button-click-x",r.x+"px"),b.style.setProperty("--sl-bb-button-click-y",r.y+"px"),b.offsetWidth,b.classList.add("sl-bb-button-click-anim"))}}),(e||n)&&"effect005"===K&&(zt=function(t){if(!(0!=t.button||e&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,l=o.getBoundingClientRect(),n=t.clientX-(l.left+l.width/2),a=t.clientY-(l.top+l.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(n,a)),b=Math.max(o.offsetWidth,o.offsetHeight),c=o.getElementsByClassName("sl-bb-button-click")[0];c&&(c.style.setProperty("width",2*b+"px"),c.style.setProperty("height",2*b+"px"),c.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),c.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),c.style.setProperty("--sl-bb-button-click-x",r.x-b+"px"),c.style.setProperty("--sl-bb-button-click-y",r.y-b+"px"),c.classList.remove("sl-bb-button-click-anim"),c.offsetWidth,c.classList.add("sl-bb-button-click-anim"))}}),(0,k.jsxs)("div",{className:b()(jt?.parent,Nt),style:{filter:vt,"--sl-bb-button-click-effect-transform":mt,width:0!=p?"100%":null,transform:ft?`rotate(${Q}deg)`:null},children:[(0,k.jsxs)("a",{style:wt,href:!e&&G||null,target:!e&&X||null,rel:!e&&H||null,"aria-label":Y||null,title:U||null,className:b()(`sl-bb-button-block-${V?.toLowerCase().replace(" ","-")}`,St,Mt,At),onMouseDown:zt,children:[(0,k.jsxs)("span",{className:"sl-bb-button-effect-parent",children:[jt?.child>=1&&(0,k.jsx)("span",{className:"sl-bb-button-anim1"}),jt?.child>=2&&(0,k.jsx)("span",{className:"sl-bb-button-anim2"}),"No Pattern"!=W&&(0,k.jsx)("span",{className:b()("sl-bb-button-block-pattern",`sl-bb-button-${W}`),style:{position:"absolute"}}),"No Effect"!=V&&"effect001"!=V&&"effect003"!=V&&!ut&&(0,k.jsx)("span",{className:"sl-bb-button-effect"})]}),w?"left"===T?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("span",{className:b()("sl-bb-button-block-icon",xt?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=S&&(0,k.jsx)("span",{className:b()(`sl-bb-button-icon-${S}`)}),i?.oldSVG&&(0,k.jsx)(_,{attributes:t,others:i}),!i?.oldSVG&&(0,k.jsx)(I,{attributes:t,others:i})]}),(i?.d2||""!=L.trim())&&(0,k.jsx)("span",{style:{display:"inline-block",width:z+"px"}}),e?_t:(i?.d2||""!=L.trim())&&Tt]}):(0,k.jsxs)(k.Fragment,{children:[e?_t:(i?.d2||""!=L.trim())&&Tt,(i?.d2||""!=L.trim())&&(0,k.jsx)("span",{style:{display:"inline-block",width:z+"px"}}),(0,k.jsxs)("span",{className:b()("sl-bb-button-block-icon",xt?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=S&&(0,k.jsx)("span",{className:b()(`sl-bb-button-icon-${S}-right`)}),i?.oldSVG&&(0,k.jsx)(_,{attributes:t,others:i}),!i?.oldSVG&&(0,k.jsx)(I,{attributes:t,others:i})]})]}):(0,k.jsx)(k.Fragment,{children:e?_t:Tt}),("effect003"===K||"effect004"===K)&&(0,k.jsx)("span",{className:"sl-bb-button-click"}),"effect005"===K&&(0,k.jsx)("span",{className:"sl-bb-button-click-parent",children:(0,k.jsx)("span",{className:"sl-bb-button-click"})}),!dt&&nt&&"No Effect"!==nt&&(0,k.jsx)("span",{style:{display:"none"},className:b()("sl-bb-button-block-loading",`sl-bb-button-block-loading-${nt}`)}),!dt&&et&&(0,k.jsx)("span",{className:"sl-bb-button-block-loading-text",children:lt})]}),ut&&(0,k.jsx)("svg",{width:"0",height:"0",xmlns:"http://www.w3.org/2000/svg",dangerouslySetInnerHTML:ht,class:"sl-bb-button-block-svg-effect"})]})}const Mo=[{attributes:{...wo,slbbAnim:{type:"string",default:"slide-top"}},save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1})})}},{attributes:wo,migrate:t=>({...t,slbbAnim:t.animation,animation:void 0}),save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{oldAnim:!0}})})}},{attributes:{...jo,...Co},save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{oldSVG:!0}})})}},{attributes:jo,save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{oldSVG:!0}})})}},{attributes:ko,save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{d2:!0,oldSVG:!0}})})}},{attributes:ko,save({attributes:t}){const{align:o}=t,e=a.useBlockProps.save({className:b()("safelayout-bb-button-block"),style:{textAlign:o}});return(0,k.jsx)("div",{...e,children:(0,k.jsx)(So,{attributes:t,isInEditor:!1,others:{d1:!0,oldSVG:!0}})})}}],{name:No}=yo;(0,n.registerBlockType)({name:No,...yo},{title:(0,l.__)("Button (Safelayout)","safelayout-brilliant-buttons"),description:(0,l.__)("Beautiful buttons.","safelayout-brilliant-buttons"),keywords:[(0,l.__)("Button","safelayout-brilliant-buttons"),(0,l.__)("Buttons","safelayout-brilliant-buttons"),(0,l.__)("Safelayout","safelayout-brilliant-buttons"),(0,l.__)("brilliant","safelayout-brilliant-buttons")],icon:(0,k.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,k.jsx)("defs",{children:(0,k.jsxs)("linearGradient",{id:"sl-bb-main-icon-grad101",x1:"0.15",y1:"0.85",x2:"0.85",y2:"0.15",children:[(0,k.jsx)("stop",{"stop-color":"#FF59BF",offset:"0"}),(0,k.jsx)("stop",{"stop-color":"#FF99D9",offset:"0.25"}),(0,k.jsx)("stop",{"stop-color":"#A6FF66",offset:"0.75"}),(0,k.jsx)("stop",{"stop-color":"#8CFF4C",offset:"1"})]})}),(0,k.jsx)("path",{fill:"url(#sl-bb-main-icon-grad101)",stroke:"#333333","stroke-width":".5",d:"M20.4 5.4H3.6C2.28 5.4 1.2 6.48 1.2 7.8V16.2C1.2 17.52 2.28 18.6 3.6 18.6H20.4C21.72 18.6 22.8 17.52 22.8 16.2V7.8C22.8 6.48 21.72 5.4 20.4 5.4ZM19.5 15.5C19.5 15.8 19.3 16 19 16H5C4.7 16 4.5 15.8 4.5 15.5V8.5C4.5 8.2 4.7 8 5 8H19C19.3 8 19.5 8.2 19.5 8.5V15.5ZM8 12.8H16V11.3H8V12.8Z"})]}),example:{attributes:{align:"center",bgColor:"linear-gradient(30deg, #0076ff 0%, #47f4ff 52%, #078eff 95%, #0083ff 100%)",fontSize:"46px",hasBgShadow:!0,bgShadow:"1px 2px 3px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",effect:"effect007",borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,bgPattern:"pattern002",patternOpacity:.6}},edit:function(t){const{attributes:o,setAttributes:e,clientId:l}=t,{align:n,className:r}=o;(0,i.useLayoutEffect)(()=>{const t=(0,s.dispatch)(a.store);return t.__unstableMarkNextChangeAsNotPersistent(),t.updateBlockAttributes(l,{blockId:l}),ho(),()=>{ho()}},[]);const c=(0,a.useBlockProps)({className:b()("safelayout-bb-button-block",r),style:{textAlign:n}});return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(oo,{attributes:o,setAttributes:e,clientId:l}),(0,k.jsx)("div",{...c,children:(0,k.jsx)(Gt,{attributes:o,setAttributes:e})})]})},save:function({attributes:t}){const{align:o,className:e}=t,l=a.useBlockProps.save({className:b()("safelayout-bb-button-block",e),style:{textAlign:o}});return(0,k.jsx)("div",{...l,children:(0,k.jsx)(Gt,{attributes:t,isInEditor:!1})})},deprecated:Mo})},452(t,o){var e;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var t="",o=0;o<arguments.length;o++){var e=arguments[o];e&&(t=i(t,a(e)))}return t}function a(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var o="";for(var e in t)l.call(t,e)&&t[e]&&(o=i(o,e));return o}function i(t,o){return o?t?t+" "+o:t+o:t}t.exports?(n.default=n,t.exports=n):void 0===(e=function(){return n}.apply(o,[]))||(t.exports=e)}()}},e={};function l(t){var n=e[t];if(void 0!==n)return n.exports;var a=e[t]={exports:{}};return o[t](a,a.exports,l),a.exports}l.m=o,t=[],l.O=(o,e,n,a)=>{if(!e){var i=1/0;for(c=0;c<t.length;c++){for(var[e,n,a]=t[c],s=!0,r=0;r<e.length;r++)(!1&a||i>=a)&&Object.keys(l.O).every(t=>l.O[t](e[r]))?e.splice(r--,1):(s=!1,a<i&&(i=a));if(s){t.splice(c--,1);var b=n();void 0!==b&&(o=b)}}return o}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[e,n,a]},l.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return l.d(o,{a:o}),o},l.d=(t,o)=>{for(var e in o)l.o(o,e)&&!l.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},l.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var o=globalThis.document;if(!t&&o&&(o.currentScript&&"SCRIPT"===o.currentScript.tagName.toUpperCase()&&(t=o.currentScript.src),!t)){var e=o.getElementsByTagName("script");if(e.length)for(var n=e.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=e[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=t+"../"})(),(()=>{var t={690:0,382:0};l.O.j=o=>0===t[o];var o=(o,e)=>{var n,a,[i,s,r]=e,b=0;if(i.some(o=>0!==t[o])){for(n in s)l.o(s,n)&&(l.m[n]=s[n]);if(r)var c=r(l)}for(o&&o(e);b<i.length;b++)a=i[b],l.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return l.O(c)},e=globalThis.webpackChunksafelayout_brilliant_buttons=globalThis.webpackChunksafelayout_brilliant_buttons||[];e.forEach(o.bind(null,0)),e.push=o.bind(null,e.push.bind(e))})();var n=l.O(void 0,[382],()=>l(429));n=l.O(n)})();
  • safelayout-brilliant-buttons/trunk/build/mce/block.json

    r3817539 r3834201  
    33  "apiVersion": 3,
    44  "name": "safelayout/classic-buttons",
    5   "version": "1.3.2",
     5  "version": "1.3.3",
    66  "title": "Safelayout Brilliant Buttons",
    77  "description": "Beautiful and high quality buttons.",
  • safelayout-brilliant-buttons/trunk/build/mce/index.asset.php

    r3817539 r3834201  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '16a032bd20df51c3320f');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'bfbd626f56c400a5d710');
  • safelayout-brilliant-buttons/trunk/build/mce/index.js

    r3817539 r3834201  
    1 (()=>{var t={452(t,o){var e;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var t="",o=0;o<arguments.length;o++){var e=arguments[o];e&&(t=i(t,a(e)))}return t}function a(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var o="";for(var e in t)l.call(t,e)&&t[e]&&(o=i(o,e));return o}function i(t,o){return o?t?t+" "+o:t+o:t}t.exports?(n.default=n,t.exports=n):void 0===(e=function(){return n}.apply(o,[]))||(t.exports=e)}()}},o={};function e(l){var n=o[l];if(void 0!==n)return n.exports;var a=o[l]={exports:{}};return t[l](a,a.exports,e),a.exports}e.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},e.d=(t,o)=>{for(var l in o)e.o(o,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:o[l]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var o=globalThis.document;if(!t&&o&&(o.currentScript&&"SCRIPT"===o.currentScript.tagName.toUpperCase()&&(t=o.currentScript.src),!t)){var l=o.getElementsByTagName("script");if(l.length)for(var n=l.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=l[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t+"../"})(),(()=>{"use strict";const t=window.wp.i18n,o=window.wp.blockEditor,l=window.ReactDOM,n=window.wp.element,a=window.wp.components,i=window.React,s=window.wp.primitives,r=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),b=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),c=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),d=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,i.createElement)(s.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,i.createElement)(s.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),u=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),f=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),m=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));var p=e(452),g=e.n(p);const x=window.ReactJSXRuntime,h=t=>t&&-1!=t.indexOf("gradient"),k=(t,o)=>Math.round(t*10**o)/10**o;function y(t){const{grad:o,id:e}=t;function l(t,o,e){var l=o.slice(e).search(/,|\)|\d/);","==o[e+l]?t.push(0):")"==o[e+l]&&t.push(1)}let n=[],a=[],i=[".","-","+","1","2","3","4","5","6","7","8","9","0"],s=o.indexOf("(")+1,r=0,b=s,c=o.length;for(;b<c;){if(s=1,"#"===o[b])n.push(o.substr(b,s=o.slice(b).search(/,|\)|\s/))),l(a,o,b+s);else if("r"===o[b]||"h"===o[b]||"v"===o[b])n.push(o.substr(b,s=o.indexOf(")",b)-b+1)),l(a,o,b+s);else if(-1!=i.indexOf(o[b])){let t=b+o.slice(b).search(/,|%|\)/),e=o.indexOf("deg",b);-1!=e&&(-1===t||e<t)?r=180-Number(o.substr(b,s=e-b)):a.push(o.substr(b,s=t-b)/100)}b+=s}r=-r*(Math.PI/180);const d=k(.5+.5*Math.sin(r),4),u=k(.5-.5*Math.cos(r),4),f=k(.5+.5*Math.sin(r+Math.PI),4),m=k(.5-.5*Math.cos(r+Math.PI),4);return"radial"===o.substr(0,6)?(0,x.jsx)(j,{id:e,colors:n,offsets:a,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,x.jsx)(C,{id:e,colors:n,offsets:a,x1:d,y1:u,x2:f,y2:m})}function j(t){const{colors:o,offsets:e,id:l,cx:n,cy:a,r:i,fx:s,fy:r}=t;return(0,x.jsx)("radialGradient",{id:l,cx:n,cy:a,r:i,fx:s,fy:r,children:(0,x.jsx)(M,{colors:o,offsets:e})})}function C(t){const{colors:o,offsets:e,id:l,x1:n,y1:a,x2:i,y2:s}=t;return(0,x.jsx)("linearGradient",{id:l,x1:n,y1:a,x2:i,y2:s,children:(0,x.jsx)(M,{colors:o,offsets:e})})}function M(t){const{colors:o,offsets:e}=t;return(0,x.jsx)(x.Fragment,{children:o.map((t,o)=>(0,x.jsx)("stop",{"stop-color":t,offset:e[o]},o))})}function w(t,o,e){return{textAlign:t||null,marginTop:o?.top||null,marginRight:o?.right||null,marginBottom:o?.bottom||null,marginLeft:o?.left||null,paddingTop:e?.top||null,paddingRight:e?.right||null,paddingBottom:e?.bottom||null,paddingLeft:e?.left||null}}function v({icon:t}){const o="path-sl-bb-button-block-list"+t.name?.replaceAll(" ","_"),e=t?.attributes?.color||["#5c5c5c"],l=t.paths,n="47px";return(0,x.jsx)("div",{style:{height:n,width:n},children:(0,x.jsxs)(a.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:o,children:l.map((t,o)=>(0,x.jsx)(a.Path,{"vector-effect":"non-scaling-stroke",fill:e[t.color||0],d:t.d,style:t.style},o))}),(0,x.jsx)("use",{href:`#${o}`})]})})}function S({attributes:t,others:o}){const{blockId:e,iconColor:l,iconColorSlug:n,iconStrokeColor:i,iconStrokeColorSlug:s,iconStrokeWidth:r,iconPaths:b,iconAnimColor:c}=t,d=`fillGrad${e}`,u=`strokeGrad${e}`,f=l.map((t,o)=>h(t)?`url(#${d+o})`:""),m=i.map((t,o)=>h(t)?`url(#${u+o})`:"");return(0,x.jsxs)(a.SVG,{viewBox:"4 4 16 16",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsxs)("defs",{children:[f.map((t,o)=>""!=t&&(0,x.jsx)(y,{grad:l[o],id:d+o},o)),m.map((t,o)=>""!=t&&(0,x.jsx)(y,{grad:i[o],id:u+o},o)),h(c)&&(0,x.jsx)(y,{grad:c,id:`animGrad${e}`})]}),b.map((t,o)=>(0,x.jsx)(a.Path,{"vector-effect":"non-scaling-stroke",fill:f[t.color||0]||(n&&n[t.color||0]&&""!=n[t.color||0]?`var( --wp--preset--${n[t.color||0]}, ${l[t.color||0]})`:l[t.color||0]),stroke:m[t.strokeColor||0]||(s&&s[t.strokeColor||0]&&""!=s[t.strokeColor||0]?`var( --wp--preset--${s[t.strokeColor||0]}, ${i[t.strokeColor||0]})`:i[t.strokeColor||0]),strokeWidth:r[t.strokeWidth||0],d:t.d,style:t.style},o))]})}function N({attributes:t,others:o}){const{blockId:e,iconColor:l,iconStrokeColor:n,iconStrokeWidth:i,iconPaths:s,iconAnimColor:r}=t,b=`path${e}`,c=`fillGrad${e}`,d=`strokeGrad${e}`,u=l.map((t,o)=>h(t)?`url(#${c+o})`:""),f=n.map((t,o)=>h(t)?`url(#${d+o})`:"");return(0,x.jsxs)(a.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsxs)("defs",{children:[u.map((t,o)=>""!=t&&(0,x.jsx)(y,{grad:l[o],id:c+o},o)),f.map((t,o)=>""!=t&&(0,x.jsx)(y,{grad:n[o],id:d+o},o)),h(r)&&(0,x.jsx)(y,{grad:r,id:`animGrad${e}`})]}),(0,x.jsx)("symbol",{x:"-24",y:"-24",width:"144",height:"144",viewBox:"0 0 24 24",id:b,children:s.map((t,o)=>(0,x.jsx)(a.Path,{"vector-effect":"non-scaling-stroke",fill:u[t.color||0]||l[t.color||0],stroke:f[t.strokeColor||0]||n[t.strokeColor||0],strokeWidth:i[t.strokeWidth||0],d:t.d,style:t.style},o))}),!0!==o?.d1?(0,x.jsx)("use",{href:`#${b}`}):(0,x.jsx)("use",{xlinkHref:`#${b}`})]})}const A=e.p+"images/gradients.3ad8dc67.png",_=({colorValue:t,label:o})=>(0,x.jsxs)(a.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)(a.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:t}),(0,x.jsx)(a.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:o,children:o})]}),I=t=>({onToggle:o,isOpen:e})=>{const{colorValue:l,label:n,disabled:i}=t,s={onClick:o,className:g()("block-editor-panel-color-gradient-settings__dropdown","sl-bb-button-block-no-padding-left-right",{"is-open":e}),"aria-expanded":e};return(0,x.jsx)(a.Button,{...s,disabled:i,children:(0,x.jsx)(_,{colorValue:l,label:n})})};function T({settings:t,label:o,disabled:e,position:l}){const n={colorValue:t.gradientValue??t.colorValue,label:o,disabled:e};return(0,x.jsx)(a.Dropdown,{popoverProps:{placement:l?.pos||"left-start",offset:l?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:I(n),renderContent:()=>(0,x.jsx)(a.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:g()("block-editor-panel-color-gradient-settings__dropdown-content","sl-bb-button-block-pallet-container"),style:{[`--sl-bb-active-slug-${t?.selectedSlug}`]:"2px solid #3858e9"},children:(0,x.jsx)(B,{...t})})})})}const L={name:"color",title:(0,t.__)("Solid","safelayout-brilliant-buttons"),value:"color"},z={name:"gradient",title:(0,t.__)("Gradient","safelayout-brilliant-buttons"),value:"gradient"},D=[L,z];function E(t,o){const e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",e.style.width="0px",e.style.height="0px",e.style.visibility="hidden",e.style.overflow="hidden",e.style[t]=o,document.body.appendChild(e);const l=window.getComputedStyle(e)[t];return document.body.removeChild(e),"rgba(0,0,0,0)"===l.replace(/\s+/g,"")?"":l}function P(t){return!t||t?.legend<=0?t:t.map(t=>{const o={...t},e=E("backgroundImage",t?.gradient);return e&&"none"!==e?(o.gradient=function(t){if(!t||"string"!=typeof t)return t;const o={"to top":"0deg","to top right":"45deg","to right top":"45deg","to right":"90deg","to bottom right":"135deg","to right bottom":"135deg","to bottom":"180deg","to bottom left":"225deg","to left bottom":"225deg","to left":"270deg","to top left":"315deg","to left top":"315deg"};return t.replace(/linear-gradient\s*\(\s*([^,]+)/i,(t,e)=>{const l=e.trim().toLowerCase();return`linear-gradient(${o[l]??e}`})}((l=e)&&"string"==typeof l?l.replace(/radial-gradient\s*\(\s*([^,]+)\s*,\s*/i,(t,o)=>/^(#|rgb|hsl|var)/i.test(o.trim())?t:"radial-gradient("):l),o):null;var l})}const O=(0,n.memo)(function({colors:e,onClick:l,img:n,tab:i}){let s=[],r=[],b=[];if("COLOR"===i){const t=(0,o.useSettings)("color.palette.theme")[0]||window?.slbbColorData?.color?.theme||[];r=(0,o.useSettings)("color.palette.default")[0]||window?.slbbColorData?.color?.default||[],b=(0,o.useSettings)("color.palette.custom")[0]||window?.slbbColorData?.color?.custom||[];const e=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/,l=/^(rgb|hsl)a?\(.+?\)$/i;s=t.map(t=>{const o={...t};let n=o.color?o.color.trim():"";if(!n)return null;if(n.startsWith("var(")){const t=E("backgroundColor",n);if(!t||"none"===t)return null;n=t}return e.test(n)||l.test(n)?(o.color=n,o):null}).filter(t=>null!==t),s?.length>0&&(s.push({name:"Current Color",slug:"currentColor",color:"currentColor"}),s.push({name:"Inherit",slug:"Inherit",color:"inherit"}))}else s=(P((0,o.useSettings)("color.gradients.theme")[0]||window?.slbbColorData?.gradient?.theme)||[]).filter(t=>null!==t),r=(P((0,o.useSettings)("color.gradients.default")[0]||window?.slbbColorData?.gradient?.default)||[]).filter(t=>null!==t),b=(P((0,o.useSettings)("color.gradients.custom")[0]||window?.slbbColorData?.gradient?.custom)||[]).filter(t=>null!==t);let c=s&&s?.length>0?(0,t.__)("Theme","safelayout-brilliant-buttons"):"";c=b&&b?.length>0?s&&s?.length>0?(0,t.__)("Theme & Custom","safelayout-brilliant-buttons"):(0,t.__)("Custom","safelayout-brilliant-buttons"):c;const d="COLOR"===i?"color--":"gradient--";return(0,x.jsxs)(x.Fragment,{children:[(s&&s?.length>0||b&&b?.length>0)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.BaseControl.VisualLabel,{style:{margin:"10px 0 0"},children:c}),(0,x.jsxs)("div",{className:g()("sl-bb-button-block-color-gradient-container","sl-bb-button-block-color-gradient-container-theme"),style:{height:"auto",maxHeight:"66px"},children:[s.map((t,o)=>(0,x.jsx)("span",{onClick:l,title:t?.slug,"data-slug":d+t?.slug,style:{background:"COLOR"===i?t?.color:t?.gradient,outline:`var(--sl-bb-active-slug-${d+t?.slug}, initial)`}},o)),s&&s?.length>0&&b&&b?.length>0&&(0,x.jsx)("br",{}),b.map((t,o)=>(0,x.jsx)("span",{onClick:l,title:t?.slug,"data-slug":d+t?.slug,style:{background:"COLOR"===i?t?.color:t?.gradient,outline:`var(--sl-bb-active-slug-${d+t?.slug}, initial)`}},o))]})]}),(0,x.jsx)(a.BaseControl.VisualLabel,{style:{margin:"15px 0 0"},children:(0,t.__)("Default","safelayout-brilliant-buttons")}),(0,x.jsxs)("div",{className:"sl-bb-button-block-color-gradient-container",children:[r.map((t,o)=>(0,x.jsx)("span",{onClick:l,title:t?.slug,"data-slug":d+t?.slug,style:{background:"COLOR"===i?t?.color:t?.gradient}},o)),r&&r?.length>0&&(0,x.jsx)("br",{}),e.map((t,o)=>(0,x.jsx)("span",{onClick:l,title:"COLOR"===i?t:null,style:{background:t}},o)),n&&(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:A})]})]})},(t,o)=>t.tab===o.tab);function B({__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,className:e,label:l,onlySolid:n,selectedSlug:i,onColorChange:s,onColorArrayClick:r,onGradientChange:b,onGradientArrayClick:c,colorValue:d,gradientValue:u,clearable:f,showTitle:m=!1,enableAlpha:p,headingLevel:k}){let y=[];i&&(i=i?.replace(/^(color--|gradient--)/,""),y=[{name:i,slug:i,color:d}]);const j={[L.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.ColorPalette,{value:d,selectedSlug:i,onChange:t=>s(t),__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,clearable:f,enableAlpha:p,colors:y,headingLevel:k}),(0,x.jsx)(O,{colors:Y,onClick:r,tab:"COLOR"})]}),[z.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.GradientPicker,{__nextHasNoMargin:!0,value:h(u)?u:`linear-gradient(${u} 0%, ${u} 100%)`,onChange:t=>b(t),__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,clearable:f,enableAlpha:p,gradients:[],headingLevel:k}),(0,x.jsx)(O,{colors:U,onClick:c,img:!0,tab:"GRADIENT"})]})};return(0,x.jsx)(a.BaseControl,{__nextHasNoMarginBottom:!0,className:g()("block-editor-color-gradient-control",e),children:(0,x.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,x.jsxs)(a.__experimentalVStack,{spacing:1,children:[m&&(0,x.jsx)("legend",{children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,x.jsx)(a.BaseControl.VisualLabel,{children:l})})}),(0,x.jsx)(a.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:n?[L]:D,initialTabName:h(u)?z.value:L.value,children:t=>{return o=t.value,(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:j[o]});var o}})]})})})}function R(t){const{attribute:o,label:e,onlySolid:l,change:n,click:a,disabled:i,position:s,selectedSlug:r}=t;return(0,x.jsx)(T,{settings:{onlySolid:l,selectedSlug:r,enableAlpha:!0,clearable:!1,colorValue:o,gradientValue:o,onColorChange:n,onGradientChange:n,onColorArrayClick:a,onGradientArrayClick:a,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:e,disabled:i,position:s})}const Y=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],U=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],G={rotate:0,clickEffect:"effect001"};let X=[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],H=[{d:"M6.46 6.605 7 8.905l-.54 2.29 2.01 1.24L9.7 14.445l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L17 8.905l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C9.79 12.945 8 11.155 8 8.935c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C10.33 11.945 9 10.605 9 8.945c0-1.65 1.33-3 2.99-3S15 7.295 15 8.945c0 1.66-1.35 3-3.01 3zm3.84 1.1-1.28 2.24-2.08-.47L15 20.645l1.4-2.2h2.5zm-7.7.07 1.25 2.25 2.13-.51L9 20.645 7.6 18.445H5.1z"}],Z=[{d:"M8 14.5h9c.55 0 1 .45 1 1s-.45 1-1 1H7c-.55 0-1-.45-1-1V5.5H4c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H8v1zm-.5 3c.83 0 1.5.67 1.5 1.5S8.33 20.5 7.5 20.5 6 19.83 6 19 6.67 17.5 7.5 17.5zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"}],W=[{d:"M18.125 10.367C17.558 7.492 15.033 5.333 12 5.333 9.592 5.333 7.5 6.7 6.458 8.7 3.95 8.967 2 11.092 2 13.667c0 2.758 2.242 5 5 5h10.833c2.3 0 4.167-1.867 4.167-4.167 0-2.2-1.708-3.983-3.875-4.133zM17.833 17H7c-1.842 0-3.333-1.492-3.333-3.333 0-1.708 1.275-3.133 2.967-3.308l.892-.092.417-.792C8.733 7.95 10.283 7 12 7c2.183 0 4.067 1.55 4.492 3.692l.25 1.25 1.275.092c1.3.083 2.317 1.175 2.317 2.467 0 1.375-1.125 2.5-2.5 2.5zm-4.625-6.667h-2.417v2.5H8.667l3.333 3.333 3.333-3.333h-2.125z"}];const Q={top:"5px",right:"5px",bottom:"5px",left:"5px"};function F(t){return{hasBgShadow:!0,bgShadow:t}}function $(t){return{hasTextShadow:!0,textShadow:t}}const V=t=>q.find(({name:o})=>o===t)||null,J=()=>({...G,borderRadius:Q}),q=[{name:"No Effect",attributes:{...G,hasBgShadow:!1,hasTextShadow:!1,hasIconShadow:!1,hasSubTextShadow:!1,bgPattern:"No Pattern"}},{name:"effect001",attributes:{...G,border:{color:"#5C5CFF",style:"solid",width:"1px"},borderRadius:{top:"50px",right:"50px",bottom:"50px",left:"50px"},hasBgShadow:!1,clickEffect:"effect005"},attribHelp:{hasBg:!1,slbbAnim:"border-color",animColor:"#0000ff"}},{name:"effect002",attributes:{...J(),...F("0px 1px 1px #000000CF"),clickEffect:"effect004",clickEffectColor:"#f00"},attribHelp:{slbbAnim:"swap-color"}},{name:"effect003",attributes:{...J(),...F("0px 1px 7px #000"),bgPattern:"pattern002",patternOpacity:.3,clickEffect:"effect003"},attribHelp:{slbbAnim:"slide-bottom",animColor:"#fff"}},{name:"effect004",attributes:{...J(),...F("0px 1px 2px #000")},attribHelp:{...$("1px 1px 1px #fff"),slbbAnim:"shadow"}},{name:"effect005",attributes:{...J(),...F("0px 0px 2px #000")},attribHelp:{...$("1px 1px 1px #fff"),slbbAnim:"background-color",animColor:"#ff3"}},{name:"effect006",attributes:{...J(),borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},...F("0px 1px 2px #202020"),clickEffect:"effect005"},attribHelp:{...$("1px 1px 1px #fff"),slbbAnim:"split-vertical",animColor:"#FFFFCC"}},{name:"effect007",attributes:{...J(),borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},...F("0px 0px 2px #202020"),bgPattern:"pattern001",patternOpacity:.15,clickEffect:"effect004"},attribHelp:{...$("1px 1px 1px #fff"),slbbAnim:"light1"}}],K={control:!0,solid:!1,child:1,controlSTColor:!0,labelTwo:(0,t.__)("Animation Text color","safelayout-brilliant-buttons"),solidTwo:!0},tt=[{name:"No Animation"},{name:"light",child:1},{name:"light1",child:1},{name:"swap-color"},{name:"background-color",control:!0,label:(0,t.__)("Animation Background color","safelayout-brilliant-buttons"),solid:!1},{name:"text-color",control:!0,label:(0,t.__)("Animation Text color","safelayout-brilliant-buttons"),solid:!0},{name:"background-and-text-color",control:!0,label:(0,t.__)("Animation Background color","safelayout-brilliant-buttons"),solid:!1,controlTwo:!0,labelTwo:(0,t.__)("Animation Text color","safelayout-brilliant-buttons"),solidTwo:!0},{name:"border-color",control:!0,label:(0,t.__)("Animation Border color","safelayout-brilliant-buttons"),solid:!0},{name:"text-and-border-color",control:!0,label:(0,t.__)("Animation Text and Border color","safelayout-brilliant-buttons"),solid:!0},{name:"split-horizontal",label:(0,t.__)("Animation Split color","safelayout-brilliant-buttons"),...K},{name:"split-vertical",label:(0,t.__)("Animation Split color","safelayout-brilliant-buttons"),...K},{name:"stretch-horizontal",label:(0,t.__)("Animation Stretch color","safelayout-brilliant-buttons"),...K},{name:"stretch-vertical",label:(0,t.__)("Animation Stretch color","safelayout-brilliant-buttons"),...K},{name:"stretch-corner1",label:(0,t.__)("Animation Stretch color","safelayout-brilliant-buttons"),...K},{name:"stretch-corner2",label:(0,t.__)("Animation Stretch color","safelayout-brilliant-buttons"),...K},{name:"slide-top",label:(0,t.__)("Animation Slide color","safelayout-brilliant-buttons"),...K},{name:"slide-bottom",label:(0,t.__)("Animation Slide color","safelayout-brilliant-buttons"),...K},{name:"slide-left",label:(0,t.__)("Animation Slide color","safelayout-brilliant-buttons"),...K},{name:"slide-right",label:(0,t.__)("Animation Slide color","safelayout-brilliant-buttons"),...K},{name:"ellipse",label:(0,t.__)("Animation Ellipse color","safelayout-brilliant-buttons"),...K},{name:"rect",label:(0,t.__)("Animation Rect color","safelayout-brilliant-buttons"),...K},{name:"letter-space"},{name:"brighten"},{name:"darken"},{name:"grayscale"},{name:"sepia"},{name:"opacity"},{name:"shadow"},{name:"yellow-glow"},{name:"red-glow"},{name:"blue-glow"},{name:"violet-glow"},{name:"zoom-in"},{name:"zoom-out"},{name:"push",parent:"sl-bb-button-block-animation-push-parent"},{name:"move-up"},{name:"move-down"},{name:"swing-3D-X",parent:"sl-bb-button-block-animation-swing-3D-parent"},{name:"swing-3D-Y",parent:"sl-bb-button-block-animation-swing-3D-parent"},{name:"swing"},{name:"bell"},{name:"tremble"},{name:"surprise"},{name:"jelly"},{name:"expand"},{name:"wobble"}],ot=[{name:"No Animation"},{name:"fill-color",control:!0,label:(0,t.__)("Animation fill color","safelayout-brilliant-buttons")},{name:"shape-color",control:!0,label:(0,t.__)("Animation shape color","safelayout-brilliant-buttons")},{name:"fill-and-shape-color",control:!0,label:(0,t.__)("Animation fill color","safelayout-brilliant-buttons"),controlTwo:!0,labelTwo:(0,t.__)("Animation shape color","safelayout-brilliant-buttons")},{name:"yoyo-X",iconPaths:X},{name:"yoyo-Y",iconPaths:[{d:"M11.4 20.2 6.06 14.77 8.12 14.77C8.73 14.77 9.06 14.39 9.06 13.83L9.06 4.08 13.74 4.08 13.74 13.83C13.74 14.39 14.07 14.77 14.68 14.77L16.74 14.77Z"}]},{name:"rotate-X",iconPaths:X},{name:"rotate-Y",iconPaths:[{d:"M16.626 6.408l1.608 1.128-6.972 10.056H9.654L5.766 12.144l1.608-1.5 3.084 2.88z"}]},{name:"rotate-Z",iconPaths:[{d:"M12.2 5.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L6.95 7.66C8.23 6.2 10.11 5.28 12.2 5.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H2.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H7.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}]},{name:"swing"},{name:"bell"},{name:"tremble"},{name:"surprise"},{name:"jelly"},{name:"expand"},{name:"wobble"},{name:"brighten"},{name:"darken"},{name:"grayscale"},{name:"sepia"},{name:"opacity"},{name:"yellow-glow"},{name:"red-glow"},{name:"blue-glow"},{name:"violet-glow"}],et=[{name:"No Shape"},{name:"shape001"},{name:"shape002"},{name:"shape003"}],lt=["No Effect","effect001","effect002","effect003","effect004","effect005"],nt=["No Effect","effect001","effect002","effect003","effect004","effect005","effect006","effect007"],at=["No Pattern","pattern001","pattern002","pattern003","pattern004","pattern005"],it=["not use","",".sl-bb-button-block-effect002 .sl-bb-button-effect{background-image:radial-gradient(115% 100% at 50% 0, #fff 5%, #ffffff4d 40%, #00000073 100%);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}","",".sl-bb-button-block-effect004 .sl-bb-button-effect{background-image:linear-gradient(#ffffff4d, #0003 50%, #00000073 50.1%, #0000001a);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect005 .sl-bb-button-effect{background-image:linear-gradient(#ffffff4d, #ffffff12 50%, #0000001f 50.1%, #00000059);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect006 .sl-bb-button-effect{background-image:linear-gradient(-180deg, rgba(255, 126, 49, .07), rgba(230, 44, 3, .55));background-position-y:.8em;background-repeat:no-repeat;border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect007 .sl-bb-button-effect{border-radius:inherit;box-shadow:inset 0 -20px 20px -20px rgba(27, 27, 27, .4);box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}"],st=".sl-bb-button-block-loading{animation:sl-bb-button-block-loading-anim 1.1s linear infinite;aspect-ratio:1/1;background-blend-mode:difference;background-color:var(--sl-bb-button-text-color);background-repeat:no-repeat;display:none;height:1em;pointer-events:none;width:1em}@keyframes sl-bb-button-block-loading-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}",rt=["not use",st+".sl-bb-button-block-loading-effect001{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAzOSI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJzbC1iYi1ncmFkaWVudDAxIiB4MT0iNTAlIiB5MT0iMCUiIHgyPSI1MCUiIHkyPSIxMDAlIj48c3RvcCBzdG9wLWNvbG9yPSIlMjNmZmYiIG9mZnNldD0iMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agc3RvcC1jb2xvcj0iJTIzZmZmIiBvZmZzZXQ9IjEiIHN0b3Atb3BhY2l0eT0iMC40Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InNsLWJiLWdyYWRpZW50MDIiIHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiPjxzdG9wIHN0b3AtY29sb3I9IiUyM2ZmZiIgb2Zmc2V0PSIwIiBzdG9wLW9wYWNpdHk9IjAuMSIvPjxzdG9wIHN0b3AtY29sb3I9IiUyM2ZmZiIgb2Zmc2V0PSIxIiBzdG9wLW9wYWNpdHk9IjAuNCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZS13aWR0aD0iNXB4IiBzdHJva2U9InVybCgjc2wtYmItZ3JhZGllbnQwMSkiIGQ9Ik0xOS41IDM2LjQ1IEMxMC4xIDM2LjQ1IDIuNSAyOC44NSAyLjUgMTkuNSBDMi41IDEwLjEgMTAuMSAyLjUgMTkuNSAyLjUiLz48cGF0aCBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjVweCIgc3Ryb2tlPSJ1cmwoI3NsLWJiLWdyYWRpZW50MDIpIiBkPSIgTTE5LjUgMi40NSBDMjguOSAyLjQ1IDM2LjQ1IDEwLjEgMzYuNDUgMTkuNDUgQzM2LjQ1IDI4Ljg1IDI4LjkgMzYuNCAxOS41IDM2LjQiLz48L3N2Zz4=)}",st+".sl-bb-button-block-loading-effect002{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTEyIDJjLTUuNDQ0IDAtOS44NzIgNC4zNTEtOS45OTcgOS43NjUuMTE2LTQuNzI0IDMuNzA4LTguNTE1IDguMTIyLTguNTE1IDQuNDg3IDAgOC4xMjUgMy45MTggOC4xMjUgOC43NSAwIDEuMDM2LjgzOSAxLjg3NSAxLjg3NSAxLjg3NXMxLjg3NS0uODM5IDEuODc1LTEuODc1YzAtNS41MjMtNC40NzctMTAtMTAtMTB6TTEyIDIyYzUuNDQ0IDAgOS44NzItNC4zNTEgOS45OTctOS43NjUtLjExNiA0LjcyNC0zLjcwOCA4LjUxNS04LjEyMiA4LjUxNS00LjQ4NyAwLTguMTI1LTMuOTE4LTguMTI1LTguNzUgMC0xLjAzNi0uODM5LTEuODc1LTEuODc1LTEuODc1cy0xLjg3NS44MzktMS44NzUgMS44NzVjMCA1LjUyMyA0LjQ3NyAxMCAxMCAxMHoiPjwvcGF0aD48L3N2Zz4=)}",st+".sl-bb-button-block-loading-effect003{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMuNSAzLjUgMTcgMTciPjxwYXRoIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiIGQ9Ik0xMiAzLjY2N2MtLjQ2IDAtLjgzMy4zNzMtLjgzMy44MzN2MCAxLjY2N2MwIC40Ni4zNzMgLjgzMy44MzMgLjgzM3MuODMzLS4zNzMuODMzLS44MzN2MC0xLjY2N2MwLS40Ni0uMzczLS44MzMtLjgzMy0uODMzdjB6TTE5LjUgMTEuMTY3aC0xLjY2N2MtLjQ2IDAtLjgzMy4zNzMtLjgzMy44MzNzLjM3My44MzMgLjgzMy44MzN2MGgxLjY2N2MuNDYgMCAuODMzLS4zNzMuODMzLS44MzNzLS4zNzMtLjgzMy0uODMzLS44MzN2MHpNNyAxMmMwLS40Ni0uMzczLS44MzMtLjgzMy0uODMzdjBoLTEuNjY3Yy0uNDYgMC0uODMzLjM3My0uODMzLjgzM3MuMzczLjgzMyAuODMzLjgzM3YwaDEuNjY3Yy40NiAwIC44MzMtLjM3My44MzMtLjgzM3Ywek03LjE4MyA2LjE2N2MtLjE1MS0uMTQzLS4zNTUtLjIzLS41NzktLjIzLS40NjYgMC0uODQzLjM3Ny0uODQzLjg0MyAwIC4yNDEuMTAxIC40NTguMjYzIC42MTJsMCAwIDEuMiAxLjE1OGMuMTUuMTQ1IC4zNTQuMjM0IC41NzkuMjM0IC4wMSAwIC4wMjEgMCAuMDMxLS4wMDFsLS4wMDEgMGMuMjM2LS4wMDEuNDQ5LS4xLjYtLjI1OGwwIDBjLjE1LS4xNTEuMjQyLS4zNTguMjQyLS41ODhzLS4wOTMtLjQzNy0uMjQyLS41ODhsMCAwek0xNi4xNjcgOC43ODNjLjIyNC0uMDAxLjQyNi0uMDkuNTc1LS4yMzRsMCAwIDEuMi0xLjE1OGMuMTQzLS4xNDkuMjMxLS4zNTIuMjMxLS41NzYgMC0uNDYtLjM3My0uODMzLS44MzMtLjgzMy0uMTk5IDAtLjM4MS4wNy0uNTI1LjE4NmwuMDAyLS4wMDEtMS4yIDEuMTgzYy0uMTUuMTUxLS4yNDIuMzU4LS4yNDIuNTg4cy4wOTMuNDM3IC4yNDIuNTg4bDAgMGMuMTQuMTQ3IC4zMzIuMjQ0IC41NDcuMjU4bC4wMDMgMHpNMTIgMTdjLS40NiAwLS44MzMuMzczLS44MzMuODMzdjAgMS42NjdjMCAuNDYuMzczIC44MzMuODMzIC44MzNzLjgzMy0uMzczLjgzMy0uODMzdjAtMS42NjdjMC0uNDYtLjM3My0uODMzLS44MzMtLjgzM3Ywek0xNi43NzUgMTUuNDVjLS4xNS0uMTQ1LS4zNTQtLjIzNC0uNTc5LS4yMzQtLjQ2MSAwLS44MzQuMzczLS44MzQuODM0IDAgLjIzNS4wOTggLjQ0OC4yNTUgLjZsMCAwIDEuMiAxLjE4M2MuMTQ5LjE0NCAuMzUxLjIzMiAuNTc1LjIzM2gwYy4wMDEgMCAuMDAzIDAgLjAwNSAwIC4yMzMgMCAuNDQ0LS4wOTYuNTk1LS4yNWwwIDBjLjE1Mi0uMTUxLjI0Ny0uMzYuMjQ3LS41OTJzLS4wOTQtLjQ0MS0uMjQ2LS41OTJsMCAwek03LjIyNSAxNS40NWwtMS4yIDEuMTU4Yy0uMTUyLjE1MS0uMjQ3LjM2LS4yNDcuNTkycy4wOTQuNDQxIC4yNDYuNTkybDAgMGMuMTUxLjE1NCAuMzYyLjI1IC41OTUuMjUgLjAwMiAwIC4wMDMgMCAuMDA1IDBoMGMuMDAyIDAgLjAwNSAwIC4wMDcgMCAuMjEyIDAgLjQwNS0uMDc5LjU1Mi0uMjA5bC0uMDAxLjAwMSAxLjItMS4xNThjLjE1Ny0uMTUyLjI1NS0uMzY1LjI1NS0uNiAwLS40NjEtLjM3My0uODM0LS44MzQtLjgzNC0uMjI1IDAtLjQyOS4wODktLjU3OS4yMzRsMCAweiI+PC9wYXRoPjwvc3ZnPg==)}",st+".sl-bb-button-block-loading-effect004{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTEzLjg3NSAzLjg3NUMxMy44NzUgMS4zNzUgMTAuMTI1IDEuMzc1IDEwLjEyNSAzLjg3NSAxMC4xMjUgNi4zNzUgMTMuODc1IDYuMzc1IDEzLjg3NSAzLjg3NVpNMTMuODc1IDIwLjEyNUMxMy44NzUgMTcuNjI1IDEwLjEyNSAxNy42MjUgMTAuMTI1IDIwLjEyNSAxMC4xMjUgMjIuNjI1IDEzLjg3NSAyMi42MjUgMTMuODc1IDIwLjEyNVpNMy44NzUgMTMuODc1QzYuMzc1IDEzLjg3NSA2LjM3NSAxMC4xMjUgMy44NzUgMTAuMTI1IDEuMzc1IDEwLjEyNSAxLjM3NSAxMy44NzUgMy44NzUgMTMuODc1Wk0yMiAxMkMyMiA5LjUgMTguMjUgOS41IDE4LjI1IDEyIDE4LjI1IDE0LjUgMjIgMTQuNSAyMiAxMlpNNy41ODIgMTkuMDdDOS40MjQgMTcuMzAyIDYuNjk3IDE0LjU3NSA0LjkyOSAxNi40MTggMy4wODcgMTguMTg2IDUuODE0IDIwLjkxMyA3LjU4MiAxOS4wN1pNNy41ODIgNy41NzhDOS40NTQgNS44MSA2LjY5MyAzLjA1NSA0LjkyOSA0LjkzIDMuMTYxIDYuNjk4IDUuODEzIDkuMzUgNy41ODEgNy41ODJaTTE2LjQxOCAxOS4wN0MxOC4xODYgMjAuODM4IDIwLjgzOCAxOC4xODYgMTkuMDcgMTYuNDE4IDE3LjMwMiAxNC42NSAxNC42NSAxNy4zMDIgMTYuNDE4IDE5LjA3Wk0xOC45NjYgNy41NzhDMjAuODM3IDUuODEgMTguMDc3IDMuMDU1IDE2LjMxMyA0LjkzIDE0LjU0NSA2LjY5OCAxNy4xOTcgOS4zNSAxOC45NjUgNy41ODJaIj48L3BhdGg+PC9zdmc+)}",st+".sl-bb-button-block-loading-effect005{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTExLjk5MiAyMi4wNjFDMTcuNTE3IDIyLjA2MSAyMi4wMjEgMTcuNTU4IDIyLjAyMSAxMi4wMzNIMTkuNzQ0QzE5Ljc0NCAxNi4zMjcgMTYuMjg2IDE5Ljc4MyAxMS45OTIgMTkuNzgzWk00LjI0MiAxMi4wMzNDNC4yNDIgNy43MzkgNy42OTggNC4yODEgMTEuOTkyIDQuMjgxTDExLjk5MiAyLjAwNEM2LjQ2NyAyLjAwNCAxLjk2NSA2LjUwOCAxLjk2NSAxMi4wMzNaIj48L3BhdGg+PC9zdmc+)}",st+".sl-bb-button-block-loading-effect006{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMuNSAzLjUgMTcgMTciPjxwYXRoIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiIGQ9Ik0gMTIsMjAuNDM3IEMgOS43NDYsMjAuNDM3IDcuNjI3LDE5LjU1OSA2LjAzNCwxNy45NjYgNC40NDEsMTYuMzczIDMuNTYzLDE0LjI1NCAzLjU2MywxMiAzLjU2Myw5Ljc0NiA0LjQ0MSw3LjYyNyA2LjAzNCw2LjAzNCBMIDcuMzYsNy4zNiB2IDAgYyAtMi41NTksMi41NTkgLTIuNTU5LDYuNzIyIDAsOS4yODEgMS4yMzksMS4yMzkgMi44ODcsMS45MjIgNC42NCwxLjkyMiBtIDAsMCBjIDEuNzUzLDAgMy40MDEsLTAuNjgzIDQuNjQsLTEuOTIyIDIuNTU5LC0yLjU1OSAyLjU1OSwtNi43MjIgMCwtOS4yODEgbCAxLjMyNiwtMS4zMjYgYyAxLjU5NCwxLjU5NCAyLjQ3MSwzLjcxMyAyLjQ3MSw1Ljk2NiAwLDIuMjU0IC0wLjg3OCw0LjM3MyAtMi40NzEsNS45NjYgLTEuNTk0LDEuNTk0IC0zLjcxMywyLjQ3MSAtNS45NjYsMi40NzEiPjwvcGF0aD48L3N2Zz4=)}",st+".sl-bb-button-block-loading-effect007{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTExLjk5MiAyLjAwNEM5Ljk0IDIgNy44OTEgMi42NDYgNi4yMTcgMy44MzRMNy41MTYgNS43MDVDOS45ODggMy45MDYgMTMuNTM4IDMuODA5IDE2LjEwOCA1LjQ2MyAxNi45MDIgNS45NjIgMTcuNjA2IDYuNjA1IDE4LjE3MiA3LjM1NEwxOS45OCA1Ljk2OUMxOC4xMiAzLjQ5NCAxNS4wOTEgMS45ODUgMTEuOTkyIDIuMDA0Wk0yLjkzMiA3LjczMkMxLjM1IDEwLjk4NiAxLjczOSAxNS4wODMgMy45MTUgMTcuOTc1IDQuODIyIDE5LjIwNyA2LjAxMyAyMC4yMjkgNy4zNzEgMjAuOTM0TDguNDM0IDE4LjkyQzUuODAyIDE3LjU5MyA0LjA5IDE0LjY2NSA0LjI0OSAxMS43MTkgNC4yODcgMTAuNjc0IDQuNTQ0IDkuNjM5IDQuOTk0IDguNjk1Wk0yMS45MjggMTAuNjY0IDE5LjY3MiAxMC45OEMyMC4wOTQgMTMuODIgMTguNzY2IDE2LjgxNyAxNi4zODYgMTguNDE5IDE1LjE3NiAxOS4yNTcgMTMuNzIzIDE5LjczNCAxMi4yNTIgMTkuNzc5IDEyLjI4MSAyMC41MzggMTIuMzExIDIxLjI5NiAxMi4zNCAyMi4wNTUgMTUuODY5IDIxLjk2OSAxOS4yNDIgMTkuODQ0IDIwLjg2MyAxNi43MTIgMjEuNjIzIDE1LjI4MiAyMi4wMTggMTMuNjY1IDIyLjAyMiAxMi4wNDcgMjAuNjA4IDEyLjAyOSAyMC44NzUgMTIuMDMxIDIyLjAyMiAxMi4wMTggMjIuMDE5IDExLjU2NSAyMS45ODkgMTEuMTEzIDIxLjkyOCAxMC42NjRaIj48L3BhdGg+PC9zdmc+)}"],bt=["not use","","",".sl-bb-button-block-click-effect003 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color);border-radius:50%;height:40px;left:calc(var(--sl-bb-button-click-center-x) - 20px);opacity:0;pointer-events:none;position:absolute;top:calc(var(--sl-bb-button-click-center-y) - 20px);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;width:40px;z-index:100}.sl-bb-button-block-click-effect003 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble-anim .4s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble-anim{0%{opacity:.85;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}30%{opacity:.85}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}",".sl-bb-button-block-click-effect004 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color) border-box;border:4px solid transparent;border-radius:50%;height:40px;left:calc(var(--sl-bb-button-click-center-x) - 20px);-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:xor;opacity:0;pointer-events:none;position:absolute;top:calc(var(--sl-bb-button-click-center-y) - 20px);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;width:40px;z-index:100}.sl-bb-button-block-click-effect004 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble-anim .4s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble-anim{0%{opacity:.85;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}30%{opacity:.85}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}",".sl-bb-button-block-click-effect005 .sl-bb-button-click-parent{border-radius:inherit;box-sizing:inherit;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}.sl-bb-button-block-click-effect005 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color);border-radius:50%;left:var(--sl-bb-button-click-center-x);opacity:0;pointer-events:none;position:absolute;top:var(--sl-bb-button-click-center-y);transform:scale(0);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;z-index:100}.sl-bb-button-block-click-effect005 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble1-anim .6s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble1-anim{0%{opacity:.8;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}"],ct=["not use",".sl-bb-button-icon-shape001,.sl-bb-button-icon-shape001-right{background:var(--sl-bb-button-icon-shape-color);border-radius:inherit;bottom:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));left:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}",".sl-bb-button-icon-shape002,.sl-bb-button-icon-shape002-right{background:var(--sl-bb-button-icon-shape-color);border-radius:50%;bottom:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));left:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}",".sl-bb-button-icon-shape003,.sl-bb-button-icon-shape003-right{background:var(--sl-bb-button-icon-shape-color);border-radius:50%;bottom:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));box-shadow:0 0 0 3px #fff, 0 0 0 4px blue;left:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}"],dt=["not use",".sl-bb-button-pattern001{background:repeating-linear-gradient(-75deg, #fff, #0000003a 3px), repeating-linear-gradient(-125deg, #fff, #0000003a 5px)}",".sl-bb-button-pattern002{background:-webkit-repeating-linear-gradient(left, #fff0 0%, #fff0 6%, #ffffff4a 7.5%), -webkit-repeating-linear-gradient(left, #0000 0%, #0000 4%, #00000020 4.5%), -webkit-repeating-linear-gradient(left, #fff0 0%, #fff0 1.2%, #ffffff46 2.2%), -webkit-linear-gradient(-90deg, #a7a7a7d9 0%, #f2f2f2 100%)}",".sl-bb-button-pattern003{background-color:#808080cc;background-image:repeating-linear-gradient(45deg, #0000, #0000 5px, #ffffff80 5px, #ffffff80 10px)}",".sl-bb-button-pattern004{background-color:#808080cc;background-image:repeating-linear-gradient(45deg, #0000, #0000 7px, #ffffff80 7px, #ffffff80 14px)}",".sl-bb-button-pattern005{background-color:#e66464d9;background-image:linear-gradient(to right, #0000 50%, #ffffff80 50%), linear-gradient(to bottom, #0000 50%, #ffffff80 50%);background-size:10px 10px}"],ut=[];ut.wobble=".sl-bb-button-block-animation-wobble{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-wobble:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-wobble:hover{animation:sl-bb-wobble-anim .75s linear 1}@keyframes sl-bb-wobble-anim{16%{transform:translateX(6px)}33%{transform:translateX(-4px)}50%{transform:translateX(3px)}66%{transform:translateX(-2px)}83%{transform:translateX(1px)}}",ut.expand=".sl-bb-button-block-animation-expand{transform:rotateX(.005deg)}.sl-bb-button-block-animation-expand:hover,.sl-bb-button-block-animation-icon-expand:hover .sl-bb-button-block-icon svg{animation:sl-bb-expand-anim .75s linear 1}@keyframes sl-bb-expand-anim{30%{transform:scaleX(1.2)}45%{transform:scaleX(.93)}60%{transform:scaleX(1.1)}73%{transform:scaleX(.95)}87%{transform:scaleX(1.05)}}",ut.jelly=".sl-bb-button-block-animation-jelly{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-jelly:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-jelly:hover{animation:sl-bb-jelly-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-bb-jelly-anim{30%{transform:skew(18deg)}45%{transform:skew(-16deg)}60%{transform:skew(10deg)}73%{transform:skew(-6deg)}87%{transform:skew(4deg)}}",ut.surprise=".sl-bb-button-block-animation-surprise{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-surprise:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-surprise:hover{animation:sl-bb-surprise-anim .75s linear 1}@keyframes sl-bb-surprise-anim{10%{transform:scale(.95) rotate(3deg)}20%{transform:scale(.9) rotate(-3deg)}30%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}50%,70%,90%{transform:scale(1.1) rotate(3deg)}}",ut.tremble=".sl-bb-button-block-animation-tremble{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-tremble:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-tremble:hover{animation:sl-bb-tremble-anim .75s linear 1}@keyframes sl-bb-tremble-anim{10%,30%,50%,70%,90%{transform:rotate(3deg)}20%,40%,60%,80%{transform:rotate(-3deg)}}",ut.bell=".sl-bb-button-block-animation-bell{transform:rotateX(.005deg)}.sl-bb-button-block-animation-bell:hover,.sl-bb-button-block-animation-icon-bell:hover .sl-bb-button-block-icon svg{animation:sl-bb-bell-anim .85s linear 1;transform-origin:50% 0}@keyframes sl-bb-bell-anim{11%{transform:rotate(8deg)}29%{transform:rotate(-6.5deg)}47%{transform:rotate(5deg)}65%{transform:rotate(-3.5deg)}83%{transform:rotate(2deg)}}",ut["swing-3D-Y"]=".sl-bb-button-block-animation-swing-3D-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-swing-3D-Y:hover{animation:sl-bb-swing-3D-Y-anim .85s linear 1}@keyframes sl-bb-swing-3D-Y-anim{20%{transform:rotateY(15deg)}40%{transform:rotateY(-12deg)}60%{transform:rotateY(8deg)}80%{transform:rotateY(-5deg)}to{transform:rotateY(0)}}.sl-bb-button-block-animation-swing-3D-parent{perspective:200px}",ut["swing-3D-X"]=".sl-bb-button-block-animation-swing-3D-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-swing-3D-X:hover{animation:sl-bb-swing-3D-X-anim .85s linear 1}@keyframes sl-bb-swing-3D-X-anim{20%{transform:rotateX(15deg)}40%{transform:rotateX(-12deg)}60%{transform:rotateX(8deg)}80%{transform:rotateX(-5deg)}to{transform:rotateX(0)}}.sl-bb-button-block-animation-swing-3D-parent{perspective:200px}",ut.swing=".sl-bb-button-block-animation-swing{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-swing:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-swing:hover{animation:sl-bb-swing-anim .85s linear 1}@keyframes sl-bb-swing-anim{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}",ut["yoyo-X"]=".sl-bb-button-block-animation-icon-yoyo-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-yoyo-X:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-yoyo-X-anim .75s ease-in-out infinite}@keyframes sl-bb-icon-yoyo-X-anim{25%{transform:translateX(-1px)}75%{transform:translateX(1px)}}",ut["yoyo-Y"]=".sl-bb-button-block-animation-icon-yoyo-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-yoyo-Y:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-yoyo-Y-anim .75s ease-in-out infinite}@keyframes sl-bb-icon-yoyo-Y-anim{25%{transform:translateY(-1px)}75%{transform:translateY(1px)}}",ut["rotate-X"]=".sl-bb-button-block-animation-icon-rotate-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-X:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-X-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-X-anim{to{transform:rotateX(1turn)}}",ut["rotate-Y"]=".sl-bb-button-block-animation-icon-rotate-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-Y:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-Y-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-Y-anim{to{transform:rotateY(1turn)}}",ut["rotate-Z"]=".sl-bb-button-block-animation-icon-rotate-Z{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-Z:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-Z-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-Z-anim{to{transform:rotate(1turn)}}",ut.push=".sl-bb-button-block-animation-push{transition:all .17s ease-out!important;transform:rotateX(.005deg)}.sl-bb-button-block-animation-push:hover{transform:rotateX(10deg);transform-origin:100% 110%}.sl-bb-button-block-animation-push-parent{perspective:200px}",ut["split-horizontal"]=".sl-bb-button-block-animation-split-horizontal .sl-bb-button-anim1{clip-path:polygon(0 0, 0 0, 0 100%, 0 100%, 0 0, 100% 0, 100% 0, 100% 100%, 100% 100%, 100% 0)}.sl-bb-button-block-animation-split-horizontal:hover .sl-bb-button-anim1{clip-path:polygon(50% 0, 0 0, 0 100%, 50% 100%, 50% 0, 50% 0, 100% 0, 100% 100%, 50% 100%, 50% 0)}.sl-bb-button-block-animation-split-horizontal:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-split-horizontal:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["split-vertical"]=".sl-bb-button-block-animation-split-vertical .sl-bb-button-anim1{clip-path:polygon(0 0, 100% 0, 100% 0, 0 0, 0 0, 0 100%, 100% 100%, 100% 100%, 0 100%, 0 100%)}.sl-bb-button-block-animation-split-vertical:hover .sl-bb-button-anim1{clip-path:polygon(0 0, 100% 0, 100% 50%, 0 50%, 0 0, 0 50%, 100% 50%, 100% 100%, 0 100%, 0 50%)}.sl-bb-button-block-animation-split-vertical:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-split-vertical:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["stretch-horizontal"]=".sl-bb-button-block-animation-stretch-horizontal .sl-bb-button-anim1{transform:scaleX(0)}.sl-bb-button-block-animation-stretch-horizontal:hover .sl-bb-button-anim1{transform:scaleX(1)}.sl-bb-button-block-animation-stretch-horizontal{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-horizontal:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-stretch-horizontal:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["stretch-vertical"]=".sl-bb-button-block-animation-stretch-vertical:hover .sl-bb-button-anim1{transform:scaleY(1)}.sl-bb-button-block-animation-stretch-vertical .sl-bb-button-anim1{transform:scaleY(0)}.sl-bb-button-block-animation-stretch-vertical{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-vertical:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-stretch-vertical:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut.ellipse=".sl-bb-button-block-animation-ellipse .sl-bb-button-anim1{border-radius:50%;transform:scale(0)}.sl-bb-button-block-animation-ellipse:hover .sl-bb-button-anim1{transform:scale(2)}.sl-bb-button-block-animation-ellipse{transform:rotateX(.005deg)}.sl-bb-button-block-animation-ellipse:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-ellipse:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut.rect=".sl-bb-button-block-animation-rect .sl-bb-button-anim1{transform:scale(0)}.sl-bb-button-block-animation-rect:hover .sl-bb-button-anim1{transform:scale(1)}.sl-bb-button-block-animation-rect{transform:rotateX(.005deg)}.sl-bb-button-block-animation-rect:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-rect:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["slide-bottom"]=".sl-bb-button-block-animation-slide-bottom .sl-bb-button-anim1{transform:translateY(101%)}.sl-bb-button-block-animation-slide-bottom:hover .sl-bb-button-anim1{transform:translateY(0)}.sl-bb-button-block-animation-slide-bottom{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-bottom:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-bottom:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["slide-top"]=".sl-bb-button-block-animation-slide-top .sl-bb-button-anim1{transform:translateY(-101%)}.sl-bb-button-block-animation-slide-top:hover .sl-bb-button-anim1{transform:translateY(0)}.sl-bb-button-block-animation-slide-top{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-top:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-top:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["slide-left"]=".sl-bb-button-block-animation-slide-left .sl-bb-button-anim1{transform:translateX(-101%)}.sl-bb-button-block-animation-slide-left:hover .sl-bb-button-anim1{transform:translateX(0)}.sl-bb-button-block-animation-slide-left{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-left:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-left:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["slide-right"]=".sl-bb-button-block-animation-slide-right .sl-bb-button-anim1{transform:translateX(101%)}.sl-bb-button-block-animation-slide-right:hover .sl-bb-button-anim1{transform:translateX(0)}.sl-bb-button-block-animation-slide-right{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-right:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-right:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["stretch-corner1"]=".sl-bb-button-block-animation-stretch-corner1 .sl-bb-button-anim1{transform: skewX(-40deg) scaleX(0)}.sl-bb-button-block-animation-stretch-corner1:hover .sl-bb-button-anim1{transform: skewX(40deg) scaleX(1)}.sl-bb-button-block-animation-stretch-corner1{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-corner1:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}",ut["stretch-corner2"]=".sl-bb-button-block-animation-stretch-corner2 .sl-bb-button-anim1{transform: skewX(40deg) scaleX(0)}.sl-bb-button-block-animation-stretch-corner2:hover .sl-bb-button-anim1{transform: skewX(-40deg) scaleX(1)}.sl-bb-button-block-animation-stretch-corner2{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-corner2:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}",ut["text-and-border-color"]=".safelayout-bb-button-block .sl-bb-button-block-animation-text-and-border-color .sl-bb-button-effect-parent{border:1px solid transparent}.sl-bb-button-block-animation-text-and-border-color:hover .sl-bb-button-effect-parent,.sl-bb-button-block-effect009.sl-bb-button-block-animation-text-and-border-color:hover{border-color:var(--sl-bb-button-anim-color) !important}.sl-bb-button-block-animation-text-and-border-color:hover,.sl-bb-button-block-effect009.sl-bb-button-block-animation-text-and-border-color:hover{color:var(--sl-bb-button-anim-color) !important}",ut["border-color"]=".safelayout-bb-button-block .sl-bb-button-block-animation-border-color .sl-bb-button-effect-parent{border:1px solid transparent}.sl-bb-button-block-animation-border-color:hover .sl-bb-button-effect-parent,.sl-bb-button-block-effect009.sl-bb-button-block-animation-border-color:hover{border-color:var(--sl-bb-button-anim-color) !important}",ut["swap-color"]=".sl-bb-button-block-animation-swap-color:hover{color:var(--sl-bb-button-background-color)!important}.sl-bb-button-block-animation-swap-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-text-color)!important}",ut["background-color"]=".sl-bb-button-block-animation-background-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-anim-color)!important}",ut["text-color"]=".sl-bb-button-block-animation-text-color:hover{color:var(--sl-bb-button-anim-color)!important}",ut["background-and-text-color"]=".sl-bb-button-block-animation-background-and-text-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-anim-color)!important}.sl-bb-button-block-animation-background-and-text-color:hover{color:var(--sl-bb-button-anim-two-color)!important}",ut.shadow=".sl-bb-button-block-animation-shadow:hover{box-shadow:0 0 12px 1px rgba(0,0,0,.55)!important}",ut.light=".sl-bb-button-block-animation-light .sl-bb-button-anim1{background:linear-gradient(90deg,transparent 33%,hsla(0,0%,100%,.702),transparent 67%) 100%/300% no-repeat;z-index:10}.sl-bb-button-block-animation-light:hover .sl-bb-button-anim1{background-position:0 0}",ut.light1=".sl-bb-button-block-animation-light1 .sl-bb-button-anim1{background:linear-gradient(45deg,hsla(0,0%,100%,0) 40%,hsla(0,0%,100%,.702) 50%,hsla(0,0%,100%,0) 70%);background-position:-10% 0;background-size:220% auto;z-index:10}.sl-bb-button-block-animation-light1:hover .sl-bb-button-anim1{background-position:110% 0}",ut["letter-space"]=".sl-bb-button-block-animation-letter-space:hover{letter-spacing:1px!important}",ut["fill-color"]=".sl-bb-button-block-animation-icon-fill-color:hover .sl-bb-button-block-icon svg path,.sl-bb-button-block-animation-icon-fill-color:hover .sl-bb-button-block-icon svg symbol path{fill:var(--sl-bb-button-icon-anim-color)!important}",ut["shape-color"]=".sl-bb-button-icon-shape{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-shape-color:hover .sl-bb-button-icon-shape{background:var(--sl-bb-button-icon-anim-color)!important}",ut["fill-and-shape-color"]=".sl-bb-button-icon-shape{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-fill-and-shape-color:hover .sl-bb-button-block-icon svg path{fill:var(--sl-bb-button-icon-anim-color)!important}.sl-bb-button-block-animation-icon-fill-and-shape-color:hover .sl-bb-button-icon-shape{background:var(--sl-bb-button-icon-anim-two-color)!important}",ut["yellow-glow"]=".sl-bb-button-block-animation-yellow-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-yellow-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-yellow-glow:hover{filter:drop-shadow(0 0 5px yellow)}",ut["red-glow"]=".sl-bb-button-block-animation-red-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-red-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-red-glow:hover{filter:drop-shadow(0 0 5px red)}",ut["blue-glow"]=".sl-bb-button-block-animation-blue-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-blue-glow:hover,.sl-bb-button-block-animation-icon-blue-glow:hover .sl-bb-button-block-icon svg{filter:drop-shadow(0 0 5px blue)}",ut["violet-glow"]=".sl-bb-button-block-animation-violet-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-violet-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-violet-glow:hover{filter:drop-shadow(0 0 5px violet)}",ut.brighten=".sl-bb-button-block-animation-brighten{transition:all .17s ease-out!important}.sl-bb-button-block-animation-brighten:hover,.sl-bb-button-block-animation-icon-brighten:hover .sl-bb-button-block-icon svg{filter:brightness(1.15)}",ut.darken=".sl-bb-button-block-animation-darken{transition:all .17s ease-out!important}.sl-bb-button-block-animation-darken:hover,.sl-bb-button-block-animation-icon-darken:hover .sl-bb-button-block-icon svg{filter:brightness(.85)}",ut.grayscale=".sl-bb-button-block-animation-grayscale{transition:all .17s ease-out!important}.sl-bb-button-block-animation-grayscale:hover,.sl-bb-button-block-animation-icon-grayscale:hover .sl-bb-button-block-icon svg{filter:grayscale(80%)}",ut.sepia=".sl-bb-button-block-animation-sepia{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-sepia:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-sepia:hover{filter:sepia(80%)}",ut.opacity=".sl-bb-button-block-animation-opacity{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-opacity:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-opacity:hover{opacity:.7}",ut["zoom-in"]=".sl-bb-button-block-animation-zoom-in{transition:all .17s ease-out!important}.sl-bb-button-block-animation-zoom-in{transform:rotateX(.005deg)}.sl-bb-button-block-animation-zoom-in:hover{transform:scale(1.07)}",ut["zoom-out"]=".sl-bb-button-block-animation-zoom-out{transition:all .17s ease-out!important}.sl-bb-button-block-animation-zoom-out{transform:rotateX(.005deg)}.sl-bb-button-block-animation-zoom-out:hover{transform:scale(.93)}",ut["move-up"]=".sl-bb-button-block-animation-move-up{transition:all .17s ease-out!important}.sl-bb-button-block-animation-move-up:hover{transform:translateY(-2px)}",ut["move-down"]=".sl-bb-button-block-animation-move-down{transition:all .17s ease-out!important}.sl-bb-button-block-animation-move-down:hover{transform:translateY(2px)}";const ft=ut,mt={textColor:"#00f",hasBg:!0,bgColor:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)",textAlign:"center",uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,minWidth:void 0,hasBgShadow:!0,bgShadow:"0px 1px 3px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconAnimation:"No Animation",iconAnimColor:"#fff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:X,iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",svgEffect:"",rotate:0,slbbAnim:"slide-top",animColor:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)",clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",animColorTwo:"#f00",hasSubText:!1,subText:"More Text",subTextAlign:"center",subTextFontSize:"11px",animSTColor:void 0,iconAnimColorTwo:"#f00",elementStyle:"",textColorSlug:void 0,bgColorSlug:void 0,iconShapeColorSlug:void 0,iconAnimColorSlug:void 0,iconColorSlug:void 0,iconStrokeColorSlug:void 0,animColorSlug:void 0,clickEffectColorSlug:void 0,animColorTwoSlug:void 0,animSTColorSlug:void 0,iconAnimColorTwoSlug:void 0},pt=[{name:"Button001",attributes:{content:"Free Download",textColor:"#1a1a1a",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#fff",iconName:"003_cloud download",iconPaths:W,iconColor:["#1a1a1a"],slbbAnim:"background-and-text-color",animColor:"#1a1a1a",animColorTwo:"#fff"}},{name:"Button002",attributes:{content:"Get PRO Version",textColor:"#fff",bgColor:"#1a1a1a",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#1a1a1a",iconName:"001_awards",iconPaths:H,iconColor:["#fff"],slbbAnim:"background-and-text-color",animColor:"#fff",animColorTwo:"#1a1a1a"}},{name:"Button003",attributes:{content:"Explore More",textColor:"#ff8000",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"15px",right:"40px",bottom:"15px",left:"40px"},border:{color:"#ff8000",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconAnimation:"fill-color",iconAnimColor:"#fff",iconColor:["#ff8000"],slbbAnim:"rect",animColor:"#ff8000",animColorTwo:"#fff",animSTColor:"#fff"}},{name:"Button004",attributes:{content:"Explore More",textColor:"#fff",bgColor:"#ff8000",hasBgShadow:!1,blockPadding:{top:"15px",right:"40px",bottom:"15px",left:"40px"},border:{color:"#ff8000",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconAnimation:"fill-color",iconAnimColor:"#ff8000",iconColor:["#fff"],slbbAnim:"rect",animColor:"#fff",animColorTwo:"#ff8000",animSTColor:"#ff8000"}},{name:"Button005",attributes:{content:"Free Download",fontSize:"22px",textColor:"#1a1a1a",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#fff",iconName:"003_cloud download",iconGap:8,iconPaths:W,iconColor:["#1a1a1a"],slbbAnim:"stretch-horizontal",animColor:"#1a1a1a",animColorTwo:"#fff",clickEffect:"effect004",clickEffectColor:"#fff",hasSubText:!0,subText:"Free 30 days Trial – 1.5GB",animSTColor:"#fff"}},{name:"Button006",attributes:{content:"Get PRO Version",fontSize:"22px",textColor:"#fff",bgColor:"#1a1a1a",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#1a1a1a",iconName:"001_awards",iconPaths:H,iconColor:["#fff"],slbbAnim:"stretch-horizontal",animColor:"#fff",animColorTwo:"#1a1a1a",clickEffect:"effect004",clickEffectColor:"#000",hasSubText:!0,subText:"Starting at only 14.99 USD!",animSTColor:"#1a1a1a"}},{name:"Button007",attributes:{content:"Learn More",textColor:"#b87132",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"15px",right:"30px",bottom:"15px",left:"30px"},border:{color:"#b87132",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#b87132",iconPos:"right",iconGap:10,iconAnimation:"yoyo-X",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#fff"],slbbAnim:"slide-top",animColor:"#b87132",animColorTwo:"#fff",animSTColor:"#fff",clickEffect:"effect004",clickEffectColor:"#404040"}},{name:"Button008",attributes:{content:"Learn More",textColor:"#fff",bgColor:"#b87132",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"15px",right:"30px",bottom:"15px",left:"30px"},border:{color:"#b87132",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#b87132",iconPos:"right",iconGap:10,iconAnimation:"yoyo-X",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#fff"],slbbAnim:"slide-bottom",animColor:"#fff",animColorTwo:"#b87132",animSTColor:"#b87132",clickEffect:"effect004",clickEffectColor:"#404040"}},{name:"Button009",attributes:{content:"Visit Shop",textColor:"#000",bgColor:"#9933ff",uppercase:!0,bgShadow:"0px 0px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},hasIcon:!0,iconAnimation:"yoyo-X",iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#99ffcc",clickEffect:"effect004",clickEffectColor:"#f00"}},{name:"Button010",attributes:{content:"Visit Shop",textColor:"#000",bgColor:"#9933ff",uppercase:!0,bgShadow:"0px 0px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},hasIcon:!0,iconAnimation:"yoyo-X",iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern004",patternOpacity:.4,effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#99ffcc",clickEffect:"effect004",clickEffectColor:"#f00"}},{name:"Button011",attributes:{content:"Visit Shop",textColor:"#fff",bgColor:"#f00",uppercase:!0,bgShadow:"0px 1px 7px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#fff",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],effect:"effect003",slbbAnim:"border-color",animColor:"#ff0",clickEffect:"effect005",clickEffectColor:"#ffff99"}},{name:"Button012",attributes:{content:"Visit Shop",textColor:"#fff",bgColor:"#f00",uppercase:!0,bgShadow:"0px 1px 7px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#fff",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],bgPattern:"pattern001",patternOpacity:.25,effect:"effect003",slbbAnim:"border-color",animColor:"#ff0",clickEffect:"effect005",clickEffectColor:"#ffff99"}},{name:"Button013",attributes:{content:"Buy now",textColor:"#f00",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},border:{color:"#ffa8a8",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"jelly",iconName:"001_cart",iconPaths:Z,iconColor:["#f00"],effect:"No Effect",slbbAnim:"border-color",animColor:"#f00",clickEffect:"effect005",clickEffectColor:"#ffbebe"}},{name:"Button014",attributes:{content:"Buy now",textColor:"#00f",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},border:{color:"#a8a8ff",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"jelly",iconName:"001_cart",iconPaths:Z,iconColor:["#00f"],effect:"No Effect",slbbAnim:"border-color",animColor:"#00f",clickEffect:"effect005",clickEffectColor:"#bebeff"}},{name:"Button015",attributes:{content:"Buy now",textColor:"#000",bgColor:"#99ff99",uppercase:!0,bgShadow:"0px 0px 2px #202020",blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},hasIcon:!0,iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect007",slbbAnim:"light1",clickEffect:"effect004",clickEffectColor:"linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)"}},{name:"Button016",attributes:{content:"Buy now",textColor:"#000",bgColor:"#99ff99",uppercase:!0,bgShadow:"0px 0px 2px #202020",blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},hasIcon:!0,iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern003",patternOpacity:.3,effect:"effect007",slbbAnim:"light1",clickEffect:"effect004",clickEffectColor:"linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)"}},{name:"Button017",attributes:{content:"Add to cart",textColor:"#f00",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#f00",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#f00",iconGap:10,iconAnimation:"fill-and-shape-color",iconAnimColor:"#f00",iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],slbbAnim:"slide-left",animColor:"#f00",clickEffect:"effect003",clickEffectColor:"#FFCCCC",animColorTwo:"#fff",animSTColor:"#fff",iconAnimColorTwo:"#fff"}},{name:"Button018",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#f00",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#f00",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-and-shape-color",iconShape:"shape001",iconShapeColor:"#fff",iconGap:10,iconAnimColor:"#fff",iconName:"001_cart",iconPaths:Z,iconColor:["#f00"],slbbAnim:"slide-left",animColor:"#fff",clickEffect:"effect003",clickEffectColor:"#ff6666",animColorTwo:"#f00",animSTColor:"#f00",iconAnimColorTwo:"#f00"}},{name:"Button019",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#ff8000",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"swing",iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],effect:"effect005",slbbAnim:"stretch-horizontal",animColor:"#666666",clickEffect:"effect001"}},{name:"Button020",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#7f00ff",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconAnimation:"swing",iconPaths:Z,iconColor:["#fff"],effect:"effect005",slbbAnim:"stretch-vertical",animColor:"#a245ff",clickEffect:"effect001"}},{name:"Button021",attributes:{content:"Add to cart",fontSize:"18px",textColor:"#000",bgColor:"#ffff00",uppercase:!0,bgShadow:"0px 1px 1px #000000CF",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#FF8000",clickEffect:"effect002",hasSubText:!0,subText:"for only 8.99 USD!"}},{name:"Button022",attributes:{content:"Add to cart",fontSize:"18px",textColor:"#000",bgColor:"#FF3333",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern002",patternOpacity:.5,effect:"effect005",slbbAnim:"stretch-corner2",animColor:"#FFCCCC",clickEffect:"effect002",hasSubText:!0,subText:"for only 8.99 USD!"}}],gt=e.p+"images/flat-color-icons.62e70cdd.webp",xt=e.p+"images/linecons-icons.a13e26fe.webp",ht=e.p+"images/filled-icon-set-icons.f4d4703d.webp",kt=e.p+"images/genericons-neue-icons.a87844ff.webp",yt=e.p+"images/font-awesome-regular-icons.66ac7e8a.webp",jt=e.p+"images/font-awesome-brands-icons.3ad6d184.webp",Ct=e.p+"images/font-awesome-solid-icons.ce730a75.webp",Mt=e.p+"images/material-design-icons.ecdb2a6d.webp",wt=e.p+"images/meteocons-weather-icons.d5aa72b7.webp",vt={hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,animation:"No Animation"},St=(o,e)=>{const l=[(0,t.__)("one","safelayout-brilliant-buttons"),(0,t.__)("two","safelayout-brilliant-buttons"),(0,t.__)("three","safelayout-brilliant-buttons"),(0,t.__)("four","safelayout-brilliant-buttons"),(0,t.__)("five","safelayout-brilliant-buttons")];return e<=1?"":" "+l[o]},Nt=t=>{let o=null;return SLEIiconArray.some(e=>o=e.find(({name:o})=>o===t)),o||null},At=t=>{let o="";return SLEIiconArray.some(e=>o=e[0].libCode===t.name.substring(0,3)&&" ("+e[0].libName+")"),o||" (unknown)"},_t=t=>{let o=null;return SLEIiconArray.some(e=>o=e[0].libCode===t.name.substring(0,3)&&e[0]?.attributes),o||[]},It=t=>{let o=null;return SLEIiconArray.some(e=>o=e[0].libCode===t&&e[0]?.class),o||""},Tt=t=>(0,x.jsx)(a.Dropdown,{popoverProps:{placement:t?.position?.pos||"left-start",offset:t?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",style:{margin:"16px"},renderToggle:Lt(t),renderContent:()=>(0,x.jsx)(a.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:(0,x.jsx)(Dt,{...t})})})})}),Lt=o=>({onToggle:e,isOpen:l})=>{const{name:n,paths:i,color:s,label:r,disabled:b}=o,c={onClick:e,className:g()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":l}),"aria-expanded":l};let d=Nt(n);return null===d&&(d={name:n,paths:i,attributes:{color:s}}),((t,o)=>{let e={...vt,color:["#3535ff"]||["#5c5c5c"],..._t(o),...o?.attributes,size:64,blockId:"sl-bb-button-block-selected"+o.name?.replaceAll(" ","_")},l=e?.effect,n=l?V(l):null;n?.attributes&&"999"!==o.name.substring(0,3)&&(e={...e,...n?.attributes}),t.attributes=e,t.effectObj=n})({},d),(0,x.jsx)(a.Button,{...c,disabled:b,className:"sl-bb-button-block-icon-select-btn",title:(0,t.__)("Select or replace the icon","safelayout-brilliant-buttons-pro"),children:(0,x.jsxs)(a.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)("div",{className:"sl-bb-button-block-panel",children:(0,x.jsx)(v,{icon:d})}),(0,x.jsx)(a.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:r})]})})},zt=[{libName:"Flat color icons - Icons8 (312) (PRO)",image:gt},{libName:"Linecons (48) (PRO)",image:xt},{libName:"Filled icon set - Icons8 (200) (PRO)",image:ht},{libName:"Genericons Neue (103) (PRO)",image:kt},{libName:"Font Awesome regular (163) (PRO)",image:yt},{libName:"Font Awesome brands (467) (PRO)",image:jt},{libName:"Font Awesome solid (1390) (PRO)",image:Ct},{libName:"Material Design (1261) (PRO)",image:Mt},{libName:"Meteocons - weather (47) (PRO)",image:wt}];function Dt(o){const{name:e,onIconClick:l}=o;let i,s=[];const[r,b]=(0,n.useState)(""),[c,d]=(0,n.useState)((t=>{let o=null;return SLEIiconArray.some(e=>o=e.find(({name:o})=>o===t)&&e),o?o[0].libName:SLEIiconArray[0][0].libName})(e));if(r)s.push(null),SLEIiconArray.map(t=>s=s.concat(t.filter(({name:t})=>t?.substring(4)?.toLowerCase().includes(r.toLowerCase()))));else if(i=zt.find(({libName:t})=>t===c),i)s=[];else{let t=-1;SLEIiconArray.some((o,e)=>t=o[0].libName===c&&e+1),s=-1!=t?SLEIiconArray[t-1]:SLEIiconArray[0]}return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.SearchControl,{value:r,style:{marginBottom:"7px"},onChange:b,placeholder:(0,t.__)("Search icon","safelayout-brilliant-buttons")}),(0,x.jsxs)(a.SelectControl,{value:c,onChange:d,__nextHasNoMarginBottom:!0,children:[SLEIiconArray.map(t=>{const o=t[0].libName+" ("+(t.length-1)+")";return(0,x.jsx)("option",{value:t[0].libName,children:o})}),zt.map(t=>(0,x.jsx)("option",{value:t.libName,className:"sl-bb-button-block-pro-menu",children:t.libName}))]}),(0,x.jsx)(Pt,{icons:s,name:e,onIconClick:l,selectedLibrary:c,searchVal:r,packsImageShow:i}),(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsx)(a.Disabled,{children:(0,x.jsxs)(a.Button,{variant:"secondary",style:{display:"inline-block",width:"130px",marginTop:"15px",position:"relative"},children:[(0,t.__)("Add Custom SVG","safelayout-brilliant-buttons"),(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"})]})})})]})}const Et=t=>{const o=document.getElementById(t);o&&(o.classList.remove("sl-bb-list-selected"),o.removeAttribute("id"))},Pt=(0,n.memo)(function({icons:t,name:o,onIconClick:e,selectedLibrary:l,searchVal:n,packsImageShow:a}){return Et("sl-bb-list-selected-icon"),(0,x.jsxs)("div",{className:"sl-bb-button-block-icons-container",children:[t?.map((t,l)=>{if(l){let a=t.name.substring(0,3);return a>"700"?null:(0,x.jsxs)("div",{id:t.name===o?"sl-bb-list-selected-icon":null,className:"sl-bb-button-block-list"+(t.name===o?" sl-bb-list-selected":""),onClick:e,title:t.name.substring(4)+(n?At(t):""),"data-icon-name":t.name,children:[a<="400"&&(0,x.jsx)("span",{className:It(a),children:String.fromCharCode(59392+t.c)}),a>"400"&&a<="700"&&(0,x.jsx)(v,{icon:t})]},l)}}),a&&(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:a.image})]})},(t,o)=>t.searchVal===o.searchVal&&t.selectedLibrary===o.selectedLibrary),Ot=(window.wp.data,e.p+"images/button-effects1.f33ddb54.png"),Bt=e.p+"images/button-effects2.100721b3.png",Rt=e.p+"images/button-pattern.5e561e8c.png",Yt=e.p+"images/button-shape.88b038fc.png";let Ut=[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}];const Gt=[{name:"Small",size:"13px",slug:"small"},{name:"Medium",size:"16px",slug:"medium"},{name:"Large",size:"24px",slug:"large"},{name:"Extre Large",size:"36px",slug:"extre large"}];function Xt(t,o){return{[`border${t}Width`]:o?.width||null,[`border${t}Color`]:o?.color||null,[`border${t}Style`]:o?.style||null}}function Ht(t,o){t||(t="1px 1px 1px #fff");let e=t.split("px ")[o];return o<3?parseFloat(e):e}function Zt(t,o,e){let l=t.split("px ");return l[o]=e,l.join("px ")}function Wt(t,o,e){return o&&(t=o?.top?{...t,...Xt("Top",o?.top),...Xt("Right",o?.right),...Xt("Bottom",o?.bottom),...Xt("Left",o?.left)}:{...t,...Xt("",o)}),e&&(t={...t,borderTopLeftRadius:e?.top||null,borderTopRightRadius:e?.right||null,borderBottomRightRadius:e?.bottom||null,borderBottomLeftRadius:e?.left||null}),t}const Qt={content:"Button",textColor:"#3e3eff",hasBg:!0,bgColor:"#33FF33",textAlign:"center",uppercase:!0,fontSize:"18px",lineHeight:"1.4",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:[],iconColor:[],iconStrokeColor:[],iconStrokeWidth:[],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",bgPattern:"No Pattern",patternOpacity:.2,slbbAnim:"No Animation",animColor:"#fff",svgEffect:"",rotate:0,clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",animColorTwo:"#f00"},Ft=t=>tt.find(({name:o})=>o===t)||null,$t=t=>ot.find(({name:o})=>o===t)||null,Vt=(0,n.memo)(function({currentEffect:o,onIconClick:e}){return Et("sl-bb-list-selected-effect"),(0,x.jsxs)("div",{className:"sl-bb-button-block-effects-container",style:{height:"207px"},children:[q.map((t,l)=>{const n=t.name,a={...Qt,...t?.attributes,...t?.attribHelp,blockId:"sl-bb-button-block-effect-list-"+l,blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:n};return(0,x.jsx)("div",{style:{display:"inline-block",height:"94px",padding:"28px 7px",margin:"3px"},id:n===o?"sl-bb-list-selected-effect":null,className:"sl-bb-button-block-effectlist safelayout-bb-button-block"+(n===o?" sl-bb-list-selected":""),onClick:e,title:n,"data-effect-name":n,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1,clickEff:!0})},l)}),(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,t.__)("Preview of Pro Effects.","safelayout-brilliant-buttons")}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:Ot}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:Bt})]})},(t,o)=>t.currentEffect===o.currentEffect),Jt=(0,n.memo)(function({currentAnim:t,onIconClick:o}){Et("sl-bb-list-selected-anim");const e={...Qt,fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007"};return(0,x.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"169px"},children:tt.map((l,n)=>{const a={...e,blockId:"sl-bb-button-block-anim-list-"+n,slbbAnim:l?.name};return"border-color"!==l?.name&&"text-and-border-color"!==l?.name||(a.hasBgShadow=!1,a.animColor="#d63638"),"text-color"===l?.name&&(a.animColor="#d63638"),"swap-color"===l?.name&&(a.hasTextShadow=!1),(0,x.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px"},id:l?.name===t?"sl-bb-list-selected-anim":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(l?.parent||"")+(l?.name===t?" sl-bb-list-selected":""),onClick:o,title:l?.name?.replaceAll("-"," "),"data-anim-name":l?.name,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1})},n)})})},(t,o)=>t.currentAnim===o.currentAnim),qt=(0,n.memo)(function({currentPattern:o,onIconClick:e}){return Et("sl-bb-list-selected-pattern"),(0,x.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"155px"},children:[at.map((t,l)=>(0,x.jsx)("div",{style:{display:"inline-block",height:"71px",padding:"7px"},id:t===o?"sl-bb-list-selected-pattern":null,className:"sl-bb-button-block-animlist"+(t===o?" sl-bb-list-selected":""),onClick:e,title:t,"data-pattern-name":t,children:(0,x.jsx)("div",{className:"sl-bb-button-block-pattern sl-bb-button-"+t.toLowerCase().replace(" ","-"),style:{border:"1px solid #ffc3c3",height:"100%",width:"100%",opacity:"0.8",zIndex:"1"}})},l)),(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,t.__)("Preview of Pro Patterns.","safelayout-brilliant-buttons")}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:Rt})]})},(t,o)=>t.currentPattern===o.currentPattern),Kt=(0,n.memo)(function({currentShape:o,onIconClick:e,disabled:l}){Et("sl-bb-list-selected-shape");const n={...Qt,bgColor:"#34dd34",fontSize:"13px",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"5px",right:"10px",bottom:"5px",left:"10px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007",hasIcon:!0,iconGap:9,iconPaths:Ut,iconColor:["#fff"]};return(0,x.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"114px",width:"235px",overflow:l?"hidden":"auto"},children:[et.map((t,l)=>{const a={...n,blockId:"sl-bb-button-block-shape-list-"+l,iconShape:t.name};return(0,x.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:t.name===o?"sl-bb-list-selected-shape":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(t.name===o?" sl-bb-list-selected":""),onClick:e,title:t.name?.replaceAll("-"," "),"data-shape-name":t.name,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1})},l)}),(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,t.__)("Preview of Pro Shapes.","safelayout-brilliant-buttons")}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:Yt}),l&&(0,x.jsx)("span",{className:"sl-bb-button-block-list-disabled"})]})},(t,o)=>t.currentShape===o.currentShape&&t.disabled===o.disabled),to=(0,n.memo)(function({currentAnim:t,onIconClick:o,disabled:e}){Et("sl-bb-list-selected-icon-anim");const l={...Qt,hasIcon:!0,iconColor:["#00f"],bgColor:"#34dd34",fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007",iconAnimColor:"#fff",iconAnimColorTwo:"#f00"};return(0,x.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"167px",width:"235px",overflow:e?"hidden":"auto"},children:[ot.map((e,n)=>{const a={...l,blockId:"sl-bb-button-block-icon-anim-list-"+n,iconAnimation:e?.name,iconPaths:e?.iconPaths||Ut};return"shape-color"!==e?.name&&"fill-and-shape-color"!==e?.name||(a.iconShape="shape002",a.iconShapeColor="#008eff"),(0,x.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:e?.name===t?"sl-bb-list-selected-icon-anim":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(e?.name===t?" sl-bb-list-selected":""),onClick:o,title:e?.name?.replaceAll("-"," "),"data-icon-anim-name":e?.name,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1})},n)}),e&&(0,x.jsx)("span",{className:"sl-bb-button-block-list-disabled"})]})},(t,o)=>t.currentAnim===o.currentAnim&&t.disabled===o.disabled),oo=(0,n.memo)(function({currentAnim:t,onIconClick:o}){Et("sl-bb-list-selected-click-effect");const e={...Qt,bgColor:"#34dd34",fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"10px",bottom:"3px",left:"10px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007"};return(0,x.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"114px",width:"235px"},children:lt.map((l,n)=>{const a={...e,blockId:"sl-bb-button-block-click-effect-list-"+n,clickEffect:l};return(0,x.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:l===t?"sl-bb-list-selected-click-effect":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(l===t?" sl-bb-list-selected":""),onClick:o,title:l?.replaceAll("-"," "),"data-click-name":l,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1,clickEff:!0})},n)})})},(t,o)=>t.currentAnim===o.currentAnim),eo=(0,n.memo)(function({currentLoading:t,onIconClick:o}){return Et("sl-bb-list-selected-loading-effect"),(0,x.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"110px",width:"235px",fontSize:"20px"},children:nt.map((e,l)=>(0,x.jsx)("div",{style:{display:"inline-block",height:"48px",padding:"13px 0",textAlign:"center",margin:"2px",width:"48px"},id:e===t?"sl-bb-list-selected-loading-effect":null,className:"sl-bb-button-block-animlist"+(e===t?" sl-bb-list-selected":""),onClick:o,title:e,"data-loading-name":e,children:(0,x.jsx)("span",{style:{display:"inline-block",backgroundColor:"No Effect"===e?"transparent":"#006a00"},className:`sl-bb-button-block-loading sl-bb-button-block-loading-${e?.replaceAll(" ","-")}`})},l))})},(t,o)=>t.currentLoading===o.currentLoading);function lo({attributes:e,setAttributes:l,isInEditor:n=!0,clickEff:a,others:i}){const{blockId:s,textAlign:r,uppercase:b,fontSize:c,lineHeight:d,letterSpacing:u,width:f,minWidth:m,textColor:p,textColorSlug:k,hasBg:y,bgColor:j,bgColorSlug:C,border:M,borderRadius:v,hasIcon:A,iconShape:_,iconShapeColor:I,iconShapeColorSlug:T,iconAnimation:L,iconAnimColor:z,iconAnimColorSlug:D,iconPos:E,iconGap:P,content:O,hasBgShadow:B,bgShadow:R,hasTextShadow:Y,textShadow:U,blockMargin:G,blockPadding:X,label:H,title:Z,linkUrl:W,linkRel:Q,linkTarget:F,bgPattern:$,patternOpacity:V,effect:J,svgEffect:q,rotate:K,animation:tt,slbbAnim:ot,animColor:lt,animColorSlug:nt,clickEffect:at,clickEffectColor:it,clickEffectColorSlug:st,hasLoading:rt,loadingText:bt,loadingEffect:ct,animColorTwo:dt,animColorTwoSlug:ut,hasSubText:ft,subText:mt,subTextAlign:pt,subTextFontSize:gt,animSTColor:xt,animSTColorSlug:ht,iconAnimColorTwo:kt,iconAnimColorTwoSlug:yt,elementStyle:jt}=e,Ct=Number(J?.substring(6)),Mt=""!=q&&Ct>=31&&Ct<=41,wt=Ct>=36&&Ct<=41,vt=0!=K&&wt,St="effect001"===at?"translateY(1px)":"effect002"===at?"scale(0.985)":"",Nt="effect001"===at||"effect002"===at?vt?`${St} rotate(${K}deg)`:St:null,At=D&&""!=D?`var( --wp--preset--${D}, ${z})`:z,_t=h(z)?`url(#animGrad${s})`:At,It=(Et=_,et.find(({name:t})=>t===Et)||null),Tt={__html:q},Lt={textAlign:r||"center"},zt=i?.oldAnim?tt:ot,Dt="effect009"!=J?Wt(null,M,v):null;var Et;const Pt=Ft(zt);let Ot={textAlign:pt||"left",textShadow:"none",textTransform:"none",fontWeight:"500",fontStyle:"normal",fontSize:gt||null},Bt={...w(null,G,X),textTransform:b?"uppercase":null,"--sl-bb-button-text-color":k&&""!=k?`var( --wp--preset--${k}, ${p})`:p,"--sl-bb-button-background-color":y?C&&""!=C?`var( --wp--preset--${C}, ${j})`:j:"none","--sl-bb-button-anim-color":zt&&"No Animation"!=zt?nt&&""!=nt?`var( --wp--preset--${nt}, ${lt})`:lt:null,"--sl-bb-button-anim-two-color":zt&&"No Animation"!=zt&&Pt?.controlTwo?ut&&""!=ut?`var( --wp--preset--${ut}, ${dt})`:dt:null,"--sl-bb-button-pattern-opacity":String(V),"--sl-bb-button-icon-shape-color":"No Shape"!=_?T&&""!=T?`var( --wp--preset--${T}, ${I})`:I:null,"--sl-bb-button-p-top":It?.padding?X?.top||"5px":null,"--sl-bb-button-p-right":It?.padding?X?.right||"10px":null,"--sl-bb-button-p-bottom":It?.padding?X?.bottom||"5px":null,"--sl-bb-button-p-left":It?.padding?X?.left||"10px":null,"--sl-bb-button-click-effect-color":"effect003"===at||"effect004"===at||"effect005"===at?st&&""!=st?`var( --wp--preset--${st}, ${it})`:it:null,"--sl-bb-button-icon-anim-color":"shape-color"===L?At:"fill-color"===L||"fill-and-shape-color"===L?_t:null,"--sl-bb-button-icon-anim-two-color":"fill-and-shape-color"===L?yt&&""!=yt?`var( --wp--preset--${yt}, ${kt})`:kt:null,"--sl-bb-button-anim-slide-text-color":xt?ht&&""!=ht?`var( --wp--preset--${ht}, ${xt})`:xt:null,boxShadow:B?R:null,textShadow:Y?U:null,textDecoration:"auto",cursor:n?null:"pointer",userSelect:n?null:"none",fontSize:"16px"!=c?c:null,lineHeight:"1.5"!=d?d:null,letterSpacing:"0px"!=u?u:null,width:0!=f?f+"%":null,minWidth:m||null};Bt=Wt(Bt,"effect009"==J?M:null,v);const Rt=zt&&"No Animation"!=zt?`sl-bb-button-block-animation-${zt}`:null,Yt=L&&"No Animation"!=L?`sl-bb-button-block-animation-icon-${L}`:null,Ut="No Effect"!=at?`sl-bb-button-block-click-${at}`:null,Gt=B&&Ct>=36&&Ct<=41?`drop-shadow(${R})`:null,Xt="No Effect"!=ct||rt?"sl-bb-button-block-has-loading":null,Ht=e=>(0,x.jsx)(o.RichText,{tagName:"span",value:O,allowedFormats:["core/bold","core/italic","core/non-breaking-space","core/strikethrough","core/subscript","core/superscript","core/text-color","core/underline"],onChange:t=>l({content:t}),placeholder:(0,t.__)("My Button","safelayout-brilliant-buttons"),className:e,style:Lt}),Zt=ft?(0,x.jsxs)("span",{className:"sl-bb-button-block-content",style:Lt,children:[Ht(),(0,x.jsx)("span",{style:Ot,className:g()("sl-bb-button-block-sub-text"),children:mt})]}):Ht("sl-bb-button-block-content"),Qt=ft?(0,x.jsxs)("span",{className:"sl-bb-button-block-content",style:Lt,children:[(0,x.jsx)(o.RichText.Content,{tagName:"span",value:O,style:Lt}),(0,x.jsx)("span",{style:Ot,className:g()("sl-bb-button-block-sub-text"),children:mt})]}):(0,x.jsx)(o.RichText.Content,{tagName:"span",value:O,style:Lt,className:"sl-bb-button-block-content"});let $t=null;!n&&!a||"effect003"!==at&&"effect004"!==at||($t=function(t){if(!(0!=t.button||n&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,e=o.getBoundingClientRect(),l=t.clientX-(e.left+e.width/2),a=t.clientY-(e.top+e.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(l,a)),b=o.getElementsByClassName("sl-bb-button-click")[0];b&&(b.classList.remove("sl-bb-button-click-anim"),b.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),b.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),b.style.setProperty("--sl-bb-button-click-x",r.x+"px"),b.style.setProperty("--sl-bb-button-click-y",r.y+"px"),b.offsetWidth,b.classList.add("sl-bb-button-click-anim"))}}),(n||a)&&"effect005"===at&&($t=function(t){if(!(0!=t.button||n&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,e=o.getBoundingClientRect(),l=t.clientX-(e.left+e.width/2),a=t.clientY-(e.top+e.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(l,a)),b=Math.max(o.offsetWidth,o.offsetHeight),c=o.getElementsByClassName("sl-bb-button-click")[0];c&&(c.style.setProperty("width",2*b+"px"),c.style.setProperty("height",2*b+"px"),c.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),c.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),c.style.setProperty("--sl-bb-button-click-x",r.x-b+"px"),c.style.setProperty("--sl-bb-button-click-y",r.y-b+"px"),c.classList.remove("sl-bb-button-click-anim"),c.offsetWidth,c.classList.add("sl-bb-button-click-anim"))}});const Vt="fill-color"===L||"fill-and-shape-color"===L?z:"#fff";return(0,x.jsxs)("div",{className:g()(Pt?.parent,Ut),style:{filter:Gt,"--sl-bb-button-click-effect-transform":Nt,width:0!=f?"100%":null,transform:vt?`rotate(${K}deg)`:null},children:[(0,x.jsxs)("a",{style:Bt,href:!n&&W||null,target:!n&&F||null,rel:!n&&Q||null,"aria-label":H||null,title:Z||null,className:g()(`sl-bb-button-block-${J?.toLowerCase().replace(" ","-")}`,Rt,Yt,Xt),onMouseDown:$t,children:[(0,x.jsxs)("span",{className:"sl-bb-button-effect-parent",style:Dt,children:[Pt?.child>=1&&(0,x.jsx)("span",{className:"sl-bb-button-anim1"}),Pt?.child>=2&&(0,x.jsx)("span",{className:"sl-bb-button-anim2"}),"No Pattern"!=$&&(0,x.jsx)("span",{className:g()("sl-bb-button-block-pattern",`sl-bb-button-${$}`),style:{position:"absolute"}}),"No Effect"!=J&&"effect001"!=J&&"effect003"!=J&&!Mt&&(0,x.jsx)("span",{className:"sl-bb-button-effect"})]}),A?"left"===E?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("span",{className:g()("sl-bb-button-block-icon",It?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=_&&(0,x.jsx)("span",{className:g()("sl-bb-button-icon-shape",`sl-bb-button-icon-${_}`)}),i?.oldSVG&&(0,x.jsx)(N,{attributes:e,others:i}),!i?.oldSVG&&(0,x.jsx)(S,{attributes:{...e,iconAnimColor:Vt},others:i})]}),(i?.d2||""!=O.trim())&&(0,x.jsx)("span",{style:{display:"inline-block",width:P+"px"}}),n?Zt:(i?.d2||""!=O.trim())&&Qt]}):(0,x.jsxs)(x.Fragment,{children:[n?Zt:(i?.d2||""!=O.trim())&&Qt,(i?.d2||""!=O.trim())&&(0,x.jsx)("span",{style:{display:"inline-block",width:P+"px"}}),(0,x.jsxs)("span",{className:g()("sl-bb-button-block-icon",It?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=_&&(0,x.jsx)("span",{className:g()("sl-bb-button-icon-shape",`sl-bb-button-icon-${_}-right`)}),i?.oldSVG&&(0,x.jsx)(N,{attributes:e,others:i}),!i?.oldSVG&&(0,x.jsx)(S,{attributes:{...e,iconAnimColor:Vt},others:i})]})]}):(0,x.jsx)(x.Fragment,{children:n?Zt:Qt}),("effect003"===at||"effect004"===at)&&(0,x.jsx)("span",{className:"sl-bb-button-click"}),"effect005"===at&&(0,x.jsx)("span",{className:"sl-bb-button-click-parent",children:(0,x.jsx)("span",{className:"sl-bb-button-click"})}),!wt&&ct&&"No Effect"!==ct&&(0,x.jsx)("span",{style:{display:"none"},className:g()("sl-bb-button-block-loading",`sl-bb-button-block-loading-${ct}`)}),!wt&&rt&&(0,x.jsx)("span",{className:"sl-bb-button-block-loading-text",children:bt})]}),Mt&&(0,x.jsx)("svg",{width:"0",height:"0",xmlns:"http://www.w3.org/2000/svg",dangerouslySetInnerHTML:Tt,class:"sl-bb-button-block-svg-effect"}),!n&&jt&&""!=jt&&(0,x.jsx)("style",{type:"text/css","data-no-optimize":"1","data-no-minify":"1",children:jt})]})}const no=e.p+"images/library-button-image1.ae24fc9c.webp",ao=e.p+"images/library-button-image2.0534463a.webp",io=t=>(0,x.jsx)(a.Dropdown,{popoverProps:{placement:t?.position?.pos||"left-start",offset:t?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",style:{margin:t?.style?.margin||"10px 35px",textAlign:"center"},focusOnMount:!0,renderToggle:so(t),renderContent:o=>(0,x.jsx)(a.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",style:{height:"440px",width:"710px",paddingTop:"5px"},children:(0,x.jsx)(ro,{...t,onToggle:o.onToggle,height:"380px"})})})})}),so=o=>({onToggle:e,isOpen:l})=>{const{disabled:n}=o,i={onClick:e,className:g()("sl-bb-button-library-btn",{"is-open":l}),"aria-expanded":l};return(0,x.jsx)(a.Button,{...i,disabled:n,title:(0,t.__)("Pick a Ready-Made Button","safelayout-brilliant-buttons"),children:(0,x.jsx)("div",{children:(0,t.__)("Browse Button Presets","safelayout-brilliant-buttons")})})},ro=(0,n.memo)(function({onIconClick:o,onToggle:e,height:l}){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",style:{margin:"0 0 5px 0"},children:(0,t.__)("Pick a Ready-Made button—you can customize the text, link and design anytime.","safelayout-brilliant-buttons")}),(0,x.jsxs)("div",{className:"sl-bb-button-block-icons-container",style:{height:l,marginTop:"0"},children:[pt?.map((t,l)=>{const n={...mt,...t.attributes,blockId:"sl-bb-button-block-library-list-"+l};return(0,x.jsx)("div",{className:"sl-bb-button-block-effectlist safelayout-bb-button-block sl-bb-library",onClick:t=>{o(t),e()},title:t.name,"data-button-lib-name":t.name,children:(0,x.jsx)(lo,{attributes:n,isInEditor:!1,clickEff:!0})},l)}),(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,t.__)("Preview of Pro Version Buttons.","safelayout-brilliant-buttons")}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:no}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:ao})]})]})}),bo={elementStyle:"",content:"My Button",textColor:"#00f",hasBg:!0,bgColor:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)",textAlign:"center",uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,minWidth:void 0,hasBgShadow:!0,bgShadow:"0px 1px 3px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{top:"5px",right:"10px",bottom:"5px",left:"10px"},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconAnimation:"No Animation",iconAnimColor:"#fff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",svgEffect:"",rotate:0,slbbAnim:"slide-top",animColor:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)",clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",blockId:"",classes:"",top:0,bold:!1,italic:!1,strikethrough:!1,animColorTwo:"#f00",hasSubText:!1,subText:"More Text",subTextAlign:"center",subTextFontSize:"11px",animSTColor:void 0,iconAnimColorTwo:"#f00"};SLBBmceButtons.button=(t,o)=>{const e=(0,l.createRoot)(t),n=o?.effect,a=o?.loadingEffect,i=o?.clickEffect,s=o?.iconShape,r=o?.bgPattern,b=o?.iconAnimation,c=o?.slbbAnim;let d="";d+=n&&"No Effect"!=n&&"effect001"!=n&&"effect003"!=n?`/*|${n}*/`+it[Number(n?.substring(6))]+`/*${n}|*/`:"",d+=a&&"No Effect"!=a?`/*|loading${a}*/`+rt[Number(a?.substring(6))]+`/*loading${a}|*/`:"",d+=i&&"No Effect"!=i&&"effect001"!=i&&"effect002"!=i?`/*|click${i}*/`+bt[Number(i?.substring(6))]+`/*click${i}|*/`:"",d+=s&&"No Shape"!=s?`/*|${s}*/`+ct[Number(s?.substring(5))]+`/*${s}|*/`:"",d+=r&&"No Pattern"!=r?`/*|${r}*/`+dt[Number(r?.substring(7))]+`/*${r}|*/`:"",d+=b&&"No Animation"!=b&&ft[b]?`/*|anim${b}*/`+ft[b]+`/*anim${b}|*/`:"",d+=c&&"No Animation"!=c&&ft[c]&&b!=c?`/*|anim${c}*/`+ft[c]+`/*anim${c}|*/`:"",(0,l.flushSync)(()=>{e.render((0,x.jsx)(lo,{attributes:{...o,elementStyle:d},isInEditor:!1}))})},SLBBmceButtons.menu=(t,o,e)=>{(0,l.createRoot)(t).render((0,x.jsx)(co,{att:o,others:e}))};const co=t=>{let{att:o,others:e}=t;var l;return o={...bo,...o},o?.animation&&(o.slbbAnim=o.animation,o.animation=void 0),o.blockId=(l=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)})()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l(),SLBBmceButtons.att=o,(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(uo,{attributes:o,others:e})})};function uo(e){const{attributes:l,others:i}=e,{content:s,textAlign:p,uppercase:g,fontSize:h,lineHeight:k,letterSpacing:y,width:j,minWidth:C,textColor:M,textColorSlug:w,hasBg:v,bgColor:S,bgColorSlug:N,border:A,borderRadius:_,hasBgShadow:I,bgShadow:T,hasTextShadow:L,textShadow:z,blockPadding:D,blockMargin:E,label:P,title:O,linkUrl:B,linkRel:Y,linkTarget:U,bgPattern:G,patternOpacity:X,effect:H,rotate:Z,slbbAnim:W,animColor:Q,animColorSlug:F,hasIcon:$,iconShape:J,iconShapeColor:q,iconShapeColorSlug:K,iconAnimation:tt,iconAnimColor:ot,iconAnimColorSlug:et,iconPos:lt,iconGap:nt,iconName:at,iconPaths:it,iconColor:st,iconColorSlug:rt,iconStrokeColor:bt,iconStrokeColorSlug:ct,iconStrokeWidth:dt,clickEffect:ut,clickEffectColor:ft,clickEffectColorSlug:gt,hasLoading:xt,loadingText:ht,loadingEffect:kt,bold:yt,italic:jt,strikethrough:Ct,top:Mt,classes:wt,animColorTwo:vt,animColorTwoSlug:At,hasSubText:It,subText:Lt,animSTColor:zt,animSTColorSlug:Dt,iconAnimColorTwo:Pt,iconAnimColorTwoSlug:Ot}=l,[Bt,Rt]=(0,n.useState)(!1),Yt="safelayout-bb-button-dialog-mce-panel",Ut="_blank"===U,Xt="noreferrer noopener",[Wt,Qt]=(0,n.useState)(l),no=t=>{for(var o in t)l[o]=t[o];Qt({...l}),SLBBmceButtons.att=l,i?.callBack&&i.callBack()},ao=Number(H?.substring(6)),so=ao>=36&&ao<=41;let ro="safelayout-bb-button-block"+(yt?" sl-bb-mce-bold":"")+(jt?" sl-bb-mce-italic":"")+(Ct?" sl-bb-mce-strikethrough":""),bo=i?.noCClass?null:"sl-bb-button-block-mce-format-container";const co={name:"general",title:(0,t.__)("General Anim","safelayout-brilliant-buttons"),value:"general"},uo={name:"icon",title:(0,t.__)("Icon Anim","safelayout-brilliant-buttons"),value:"icon"},fo={[co.value]:(0,x.jsxs)(x.Fragment,{children:["No Animation"!=W&&Ft(W)?.control&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{height:"8px"}}),(0,x.jsx)(R,{attribute:Q,selectedSlug:F,label:Ft(W)?.label,onlySolid:Ft(W)?.solid,click:t=>no({animColor:t.target.style.background,animColorSlug:t.target.dataset.slug}),change:t=>no({animColor:t,animColorSlug:void 0}),position:{offset:i?.popoverOffset}})]}),"No Animation"!=W&&Ft(W)?.controlTwo&&(0,x.jsx)(R,{attribute:vt,selectedSlug:At,label:Ft(W)?.labelTwo,onlySolid:Ft(W)?.solidTwo,click:t=>no({animColorTwo:t.target.style.background,animColorTwoSlug:t.target.dataset.slug}),change:t=>no({animColorTwo:t,animColorTwoSlug:void 0}),position:{offset:i?.popoverOffset}}),"No Animation"!=W&&Ft(W)?.controlSTColor&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{display:"inline-block",width:"70%"},children:(0,x.jsx)(R,{attribute:zt,selectedSlug:Dt,label:Ft(W)?.labelTwo,onlySolid:Ft(W)?.solidTwo,click:t=>no({animSTColor:t.target.style.background,animSTColorSlug:t.target.dataset.slug}),change:t=>no({animSTColor:t,animSTColorSlug:void 0}),position:{offset:i?.popoverOffset}})}),(0,x.jsx)(a.Button,{variant:"secondary",onClick:()=>no({animSTColor:void 0,animSTColorSlug:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"super"},children:(0,t.__)("Reset","safelayout-brilliant-buttons")})]}),(0,x.jsx)(Jt,{currentAnim:W,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-anim-name"),l=Ft(e),n=SLBBmceButtons.att.animColor;let a={};l?.solid&&-1!==n.indexOf("gradient")&&(a={animColor:"#fff",animColorSlug:void 0}),Et("sl-bb-list-selected-anim"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-anim"),no({slbbAnim:e,...a})}})]}),[uo.value]:(0,x.jsxs)(x.Fragment,{children:["No Animation"!=tt&&$t(tt)?.control&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{height:"8px"}}),(0,x.jsx)(R,{attribute:ot,selectedSlug:et,label:$t(tt)?.label,onlySolid:$t(tt)?.solid,click:t=>no({iconAnimColor:t.target.style.background,iconAnimColorSlug:t.target.dataset.slug}),change:t=>no({iconAnimColor:t,iconAnimColorSlug:void 0}),disabled:so||!$,position:{offset:i?.popoverOffset}})]}),"No Animation"!=tt&&$t(tt)?.controlTwo&&(0,x.jsx)(R,{attribute:Pt,selectedSlug:Ot,label:$t(tt)?.labelTwo,onlySolid:$t(tt)?.solidTwo,click:t=>no({iconAnimColorTwo:t.target.style.background,iconAnimColorTwoSlug:t.target.dataset.slug}),change:t=>no({iconAnimColorTwo:t,iconAnimColorTwoSlug:void 0}),disabled:so||!$,position:{offset:i?.popoverOffset}}),(0,x.jsx)(to,{currentAnim:tt,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-icon-anim-name");Et("sl-bb-list-selected-icon-anim"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-icon-anim"),no({iconAnimation:e})},disabled:so||!$})]})},mo={name:"general",title:(0,t.__)("General","safelayout-brilliant-buttons"),value:"general"},po={name:"more",title:(0,t.__)("More Options","safelayout-brilliant-buttons"),value:"more"},go=[mo,po],xo={[mo.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(io,{onIconClick:t=>{const o=(t=>{let o=pt.find(({name:o})=>o===t);return o?{...mt,...o.attributes}:null})(t.currentTarget.getAttribute("data-button-lib-name"));o&&no({...o})},position:{pos:i?.popoverOffset?null:"bottom",offset:i?.popoverOffset||5},style:{margin:"8px 35px"}}),!so&&(0,x.jsxs)("div",{style:{textAlign:"center",marginBottom:"3px"},children:[(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",style:{textAlign:"center",fontWeight:"bold"},children:(0,t.__)("Button text","safelayout-brilliant-buttons")}),(0,x.jsx)("textarea",{value:s?.replaceAll("<br>","\n"),onChange:t=>no({content:t.target.value?.replaceAll("\n","<br>")}),placeholder:(0,t.__)("My Button","safelayout-brilliant-buttons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:p}})]}),(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsxs)(a.ToolbarGroup,{style:{border:"none"},children:[!so&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.AlignmentToolbar,{controls:["left","center","right"],value:p,onChange:t=>no({textAlign:t}),label:(0,t.__)("Align text (multiline)","safelayout-brilliant-buttons")}),(0,x.jsx)(a.ToolbarButton,{icon:r,label:(0,t.__)("Uppercase","safelayout-brilliant-buttons"),onClick:()=>no({uppercase:!g}),isPressed:!so&&g}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-bold",label:(0,t.__)("Bold","safelayout-brilliant-buttons"),onClick:()=>no({bold:!yt}),isPressed:!so&&yt}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-italic",label:(0,t.__)("Italic","safelayout-brilliant-buttons"),onClick:()=>no({italic:!jt}),isPressed:!so&&jt}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-strikethrough",label:(0,t.__)("Strike through","safelayout-brilliant-buttons"),onClick:()=>no({strikethrough:!Ct}),isPressed:!so&&Ct})]}),so&&(0,x.jsx)(a.ToolbarButton,{icon:b,label:(0,t.__)("Rotate ( Shape Effects)","safelayout-brilliant-buttons"),onClick:()=>no({rotate:(Z+45)%360}),isPressed:so&&0!=Z})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Button effect","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-customizer",children:(0,x.jsx)(Vt,{currentEffect:H,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-effect-name"),l=V(e);Et("sl-bb-list-selected-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-effect"),no({effect:e,...l?.attributes})}})})}),(0,x.jsx)(a.Panel,{className:"safelayout-bb-button-dialog-mce-panel safelayout-bb-button-dialog-mce-panel-link",children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Link and Title","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-links",className:"sl-bb-button-block-link-panel",children:[(0,x.jsx)(a.TextControl,{label:(0,t.__)("Tooltip","safelayout-brilliant-buttons"),value:O||"",onChange:t=>no({title:t})}),(0,x.jsx)(a.TextControl,{label:(0,t.__)("Label","safelayout-brilliant-buttons"),value:P||"",onChange:t=>no({label:t}),help:(0,t.__)("It is for screen readers.","safelayout-brilliant-buttons")}),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Link url","safelayout-brilliant-buttons")}),(0,x.jsx)(o.LinkControl,{value:{url:B,opensInNewTab:Ut},onChange:({url:t="",opensInNewTab:o})=>{no({linkUrl:t}),Ut!==o&&function(t){const o=t?"_blank":void 0;let e=Y;o&&!Y?e=Xt:o||Y!==Xt||(e=void 0),no({linkTarget:o,linkRel:e})}(o)},onRemove:()=>{no({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,x.jsx)(a.TextControl,{label:(0,t.__)("Link rel","safelayout-brilliant-buttons"),value:Y||"",onChange:t=>no({linkRel:t})})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Position & Size","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-expand",children:[(0,x.jsx)(a.RangeControl,{label:(0,t.__)("top","safelayout-brilliant-buttons"),min:-250,max:250,className:"sl-bb-button-block-no-margin-bottom",value:Mt,onChange:t=>no({top:t})}),(0,x.jsx)(a.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:Gt,onChange:t=>no({fontSize:t}),value:h}),(0,x.jsxs)(a.__experimentalGrid,{columns:2,children:[(0,x.jsx)(o.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:t=>no({lineHeight:t}),value:k}),(0,x.jsx)(o.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:t=>no({letterSpacing:t}),value:y})]}),i?.showWidth&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.BaseControl.VisualLabel,{style:{display:"block",marginTop:"5px",marginBottom:"0"},children:(0,t.__)("Width","safelayout-brilliant-buttons")}),(0,x.jsxs)(a.__experimentalGrid,{columns:2,style:{alignItems:"center"},children:[(0,x.jsx)(a.__experimentalToggleGroupControl,{value:j,onChange:t=>no({width:t}),size:"small",style:{width:"170px"},children:[25,50,75,100].map(t=>(0,x.jsx)(a.__experimentalToggleGroupControlOption,{value:t,label:t+"%"},t))}),(0,x.jsx)(a.Button,{variant:"secondary",onClick:()=>no({width:0}),size:"small",style:{margin:"0 5px"},children:(0,t.__)("Reset","safelayout-brilliant-buttons")})]})]}),(0,x.jsxs)("div",{style:{display:"inline-block"},children:[(0,x.jsx)(a.BaseControl.VisualLabel,{style:{display:"block",margin:"8px 0 0"},children:(0,t.__)("Minimum Width","safelayout-brilliant-buttons")}),(0,x.jsx)(a.__experimentalUnitControl,{__unstableInputWidth:"150px",onChange:t=>no({minWidth:t}),value:C,size:"small"})]}),(0,x.jsx)(a.Button,{variant:"secondary",onClick:()=>no({minWidth:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"bottom"},children:(0,t.__)("Reset","safelayout-brilliant-buttons")})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Font","safelayout-brilliant-buttons"),initialOpen:!1,icon:"edit",children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,x.jsx)("option",{value:"Default",children:"Default"})})]})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Color","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-appearance",className:"sl-bb-button-block-color-panel-icon",children:[(0,x.jsx)(a.ToggleControl,{checked:v,help:(0,t.__)("Add a background color to the button.","safelayout-brilliant-buttons"),label:(0,t.__)("Background color","safelayout-brilliant-buttons"),onChange:t=>no({hasBg:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,x.jsx)(R,{attribute:S,selectedSlug:N,label:(0,t.__)("Background color","safelayout-brilliant-buttons"),click:t=>no({bgColor:t.target.style.background,bgColorSlug:t.target.dataset.slug}),change:t=>t&&no({bgColor:t,bgColorSlug:void 0}),disabled:!v,position:{offset:i?.popoverOffset}}),(0,x.jsx)(R,{attribute:M,selectedSlug:w,label:(0,t.__)("Text color","safelayout-brilliant-buttons"),click:t=>no({textColor:t.target.style.background,textColorSlug:t.target.dataset.slug}),change:t=>t&&no({textColor:t,textColorSlug:void 0}),onlySolid:!0,position:{offset:i?.popoverOffset}})]})}),!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Icon","safelayout-brilliant-buttons"),initialOpen:!1,icon:"art",children:[(0,x.jsx)(a.ToggleControl,{checked:$,help:(0,t.__)("Add an icon to the button.","safelayout-brilliant-buttons"),label:(0,t.__)("Add icon","safelayout-brilliant-buttons"),onChange:t=>no({hasIcon:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,x.jsx)(Tt,{name:at,paths:it,color:st,customIconRefresh:1,label:(0,t.__)("Icon","safelayout-brilliant-buttons")+": "+at.substring(4),onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-icon-name"),l=Nt(e),n=_t(l);Et("sl-bb-list-selected-icon"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-icon");let a={...n,...l?.attributes};a?.color||(a={...a,color:[st[0]],iconColorSlug:[rt?.[0]]}),a?.strokeColor||(a={...a,strokeColor:[bt[0]],iconStrokeColorSlug:[ct?.[0]]}),a?.strokeWidth||(a={...a,strokeWidth:[dt[0]]}),a?.iconColorSlug||(a={...a,iconColorSlug:Array(a?.color.length).fill()}),a?.iconStrokeColorSlug||(a={...a,iconStrokeColorSlug:Array(a?.strokeColor.length).fill()}),no({iconName:e,iconPaths:l.paths,iconColor:a.color,iconColorSlug:a.iconColorSlug,iconStrokeColor:a.strokeColor,iconStrokeColorSlug:a.iconStrokeColorSlug,iconStrokeWidth:a.strokeWidth})},disabled:!$,position:{offset:i?.popoverOffset}}),(0,x.jsxs)("div",{style:{padding:"15px"},children:[(0,x.jsx)(a.ToggleControl,{checked:Bt,label:(0,t.__)("Show Number, Text or Emoji instead of icon.","safelayout-brilliant-buttons"),onChange:t=>Rt(t),disabled:!$}),Bt&&(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsxs)(a.__experimentalGrid,{columns:2,style:{display:"flex",justifyContent:"space-around",margin:"10px 0 -6px"},children:[(0,x.jsx)(a.TextControl,{label:(0,t.__)("Number / Text","safelayout-brilliant-buttons"),className:"sl-bb-button-block-disabled-element",disabled:!0}),(0,x.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,x.jsx)("option",{value:"Default",children:"Default"})})]}),(0,x.jsx)("span",{style:{top:"7px"},className:"sl-bb-help-msg",children:(0,t.__)('One or two char "01" "2" "A1" "😎" ...',"safelayout-brilliant-buttons")})]})]})]}),(0,x.jsx)("hr",{style:{margin:"7px 0"}}),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Icon position","safelayout-brilliant-buttons")}),(0,x.jsxs)(a.__experimentalToggleGroupControl,{value:lt,isBlock:!0,onChange:t=>no({iconPos:t}),disabled:!$,size:"small",children:[(0,x.jsx)(a.__experimentalToggleGroupControlOption,{value:"left",label:(0,t.__)("Left","safelayout-brilliant-buttons"),disabled:!$}),(0,x.jsx)(a.__experimentalToggleGroupControlOption,{value:"right",label:(0,t.__)("Right","safelayout-brilliant-buttons"),disabled:!$})]}),st.map((o,e,l)=>(0,x.jsx)(R,{attribute:o,selectedSlug:rt?.[e],label:(0,t.__)("Icon Fill Color","safelayout-brilliant-buttons")+St(e,l.length),click:t=>{let o=[...st],l=[...rt||Array(st.length).fill()];o[e]=t.target.style.background,l[e]=t.target.dataset.slug,no({iconColor:o,iconColorSlug:l})},change:t=>{let o=[...st],l=[...rt||Array(st.length).fill()];t&&(o[e]=t,l[e]=void 0),no({iconColor:o,iconColorSlug:l})},disabled:!$,position:{offset:i?.popoverOffset}},e)),bt.map((o,e,l)=>(0,x.jsx)(R,{attribute:o,selectedSlug:ct?.[e],label:(0,t.__)("Icon Stroke Color","safelayout-brilliant-buttons")+St(e,l.length),click:t=>{let o=[...bt],l=[...ct||Array(bt.length).fill()];o[e]=t.target.style.background,l[e]=t.target.dataset.slug,no({iconStrokeColor:o,iconStrokeColorSlug:l})},change:t=>{let o=[...bt],l=[...ct||Array(bt.length).fill()];t&&(o[e]=t,l[e]=void 0),no({iconStrokeColor:o,iconStrokeColorSlug:l})},disabled:!$,position:{offset:i?.popoverOffset}},e)),dt.map((o,e,l)=>(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Icon Stroke Width","safelayout-brilliant-buttons")+St(e,l.length),min:0,max:200,value:o,className:"sl-bb-button-block-no-margin-bottom",onChange:t=>{let o=[...dt];o[e]=t,no({iconStrokeWidth:o})},disabled:!$},e)),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Icon gap","safelayout-brilliant-buttons")}),(0,x.jsx)(a.RangeControl,{min:0,max:250,className:"sl-bb-button-block-no-margin-bottom",value:nt,disabled:!$,onChange:t=>no({iconGap:t})}),(0,x.jsx)("hr",{style:{margin:"7px 0 12px 0"}}),(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsx)(a.Disabled,{children:(0,x.jsx)(a.ToggleControl,{help:(0,t.__)("The button text will be hidden.","safelayout-brilliant-buttons"),label:(0,t.__)("Only show icon","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom"})})]}),(0,x.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Icon background shape","safelayout-brilliant-buttons")}),"No Shape"!=J&&(0,x.jsx)(R,{attribute:q,selectedSlug:K,label:(0,t.__)("Background shape color","safelayout-brilliant-buttons"),click:t=>no({iconShapeColor:t.target.style.background,iconShapeColorSlug:t.target.dataset.slug}),change:t=>no({iconShapeColor:t,iconShapeColorSlug:void 0}),disabled:!$,position:{offset:i?.popoverOffset}}),(0,x.jsx)(Kt,{currentShape:J,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-shape-name");Et("sl-bb-list-selected-shape"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-shape"),no({iconShape:e})},disabled:!$}),(0,x.jsx)("hr",{style:{margin:"7px 0"}}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Icon shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:c,children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.ToggleControl,{label:(0,t.__)("Icon shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom"}),(0,x.jsx)(R,{attribute:"#000",label:(0,t.__)("color","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("blur","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("X offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Y offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:d,children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Icon size","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Background shape size","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Background shape position","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})})]})}),!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Sub text","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-textcolor",children:[(0,x.jsx)(a.ToggleControl,{checked:It,help:(0,t.__)("Add a sub text to the button.","safelayout-brilliant-buttons"),label:(0,t.__)("Sub text","safelayout-brilliant-buttons"),onChange:t=>no({hasSubText:t,subTextAlign:"center",subTextFontSize:"11px"})}),(0,x.jsx)("div",{style:{textAlign:"center",marginBottom:"3px"},children:(0,x.jsx)("textarea",{value:Lt?.replaceAll("<br>","\n"),onChange:t=>no({subText:t.target.value?.replaceAll("\n","<br>")}),placeholder:(0,t.__)("More Text","safelayout-brilliant-buttons"),rows:"2",cols:"33",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center",marginBottom:"10px"},disabled:!It})}),(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsx)(a.ToolbarGroup,{style:{border:"none"},children:(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.ToolbarButton,{icon:u,label:(0,t.__)("Align text","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.ToolbarButton,{icon:r,label:(0,t.__)("Uppercase","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-bold",label:(0,t.__)("Bold","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-italic",label:(0,t.__)("Italic","safelayout-brilliant-buttons"),disabled:!0})]})})}),(0,x.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Sub Text Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,x.jsx)("option",{value:"Default",children:"Default"})})]}),(0,x.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.ToggleControl,{label:(0,t.__)("Sub text color","safelayout-brilliant-buttons")}),(0,x.jsx)(R,{attribute:"#000",label:(0,t.__)("Sub text color","safelayout-brilliant-buttons"),disabled:!0})]})]}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Sub Text size","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-expand",children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Sub text top","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,x.jsx)(a.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:Gt})]})]})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Sub Text shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:c,children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.ToggleControl,{label:(0,t.__)("Sub Text shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom"}),(0,x.jsx)(R,{attribute:"#000",label:(0,t.__)("color","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("blur","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("X offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Y offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:d,children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsx)(a.TextControl,{label:(0,t.__)("Sub Text Additional CSS class(es)","safelayout-brilliant-buttons"),help:(0,t.__)("Separate multiple classes with spaces.","safelayout-brilliant-buttons"),className:"sl-bb-button-block-disabled-element",disabled:!0})]})})})]})})]}),[po.value]:(0,x.jsxs)(x.Fragment,{children:[!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Border","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:[(0,x.jsx)(a.__experimentalBorderBoxControl,{onChange:t=>no({border:t}),value:A,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:i?.popoverOffset||40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,x.jsx)(a.Button,{variant:"secondary",onClick:()=>no({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,t.__)("Reset","safelayout-brilliant-buttons")}),(0,x.jsx)(a.__experimentalBoxControl,{label:(0,t.__)("Border radius","safelayout-brilliant-buttons"),values:_,onChange:t=>no({borderRadius:t})})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Background pattern","safelayout-brilliant-buttons"),initialOpen:!1,icon:"screenoptions",children:[(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Pattern opacity","safelayout-brilliant-buttons"),min:.1,max:1,step:.05,className:"sl-bb-button-block-no-margin-bottom",value:X,withInputField:!1,disabled:"No Pattern"===G,onChange:t=>no({patternOpacity:t})}),(0,x.jsx)(qt,{currentPattern:G,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-pattern-name");Et("sl-bb-list-selected-pattern"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-pattern"),no({bgPattern:e})}})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Box shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:c,children:[(0,x.jsx)(a.ToggleControl,{checked:I,label:(0,t.__)("Box shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom",onChange:t=>no({hasBgShadow:t})}),(0,x.jsx)(R,{attribute:Ht(T,3),label:(0,t.__)("color","safelayout-brilliant-buttons"),onlySolid:!0,click:t=>no({bgShadow:Zt(T,3,t.target.style.background)}),change:t=>no({bgShadow:Zt(T,3,t)}),disabled:!I,position:{offset:i?.popoverOffset}}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("blur","safelayout-brilliant-buttons"),min:0,max:100,step:so?.1:1,className:"sl-bb-button-block-no-margin-bottom",value:Ht(T,2),disabled:!I,onChange:t=>no({bgShadow:Zt(T,2,t)})}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("X offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:Ht(T,0),disabled:!I,onChange:t=>no({bgShadow:Zt(T,0,t)})}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Y offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:Ht(T,1),disabled:!I,onChange:t=>no({bgShadow:Zt(T,1,t)})})]})}),!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Text shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:c,children:[(0,x.jsx)(a.ToggleControl,{checked:L,label:(0,t.__)("Text shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom",onChange:t=>no({hasTextShadow:t})}),(0,x.jsx)(R,{attribute:Ht(z,3),label:(0,t.__)("color","safelayout-brilliant-buttons"),onlySolid:!0,click:t=>no({textShadow:Zt(z,3,t.target.style.background)}),change:t=>no({textShadow:Zt(z,3,t)}),disabled:!L,position:{offset:i?.popoverOffset}}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("blur","safelayout-brilliant-buttons"),min:0,max:100,className:"sl-bb-button-block-no-margin-bottom",value:Ht(z,2),disabled:!L,onChange:t=>no({textShadow:Zt(z,2,t)})}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("X offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:Ht(z,0),disabled:!L,onChange:t=>no({textShadow:Zt(z,0,t)})}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Y offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:Ht(z,1),disabled:!L,onChange:t=>no({textShadow:Zt(z,1,t)})})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Hover animation","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-video",children:(0,x.jsx)(a.TabPanel,{className:"sl-bb-icon-block-panel-tabs",tabs:[co,uo],initialTabName:co.value,children:t=>{return o=t.value,(0,x.jsx)(x.Fragment,{children:fo[o]});var o}})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Click effect","safelayout-brilliant-buttons"),initialOpen:!1,icon:"yes",children:[("effect003"===ut||"effect004"===ut||"effect005"===ut)&&(0,x.jsx)(R,{attribute:ft,selectedSlug:gt,label:(0,t.__)("Click effect color","safelayout-brilliant-buttons"),click:t=>no({clickEffectColor:t.target.style.background,clickEffectColorSlug:t.target.dataset.slug}),change:t=>no({clickEffectColor:t,clickEffectColorSlug:void 0}),position:{offset:i?.popoverOffset}}),(0,x.jsx)(oo,{currentAnim:ut,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-click-name");Et("sl-bb-list-selected-click-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-click-effect"),no({clickEffect:e})}})]})}),!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("After click ( loading )","safelayout-brilliant-buttons"),initialOpen:!1,icon:"update-alt",children:[(0,x.jsx)(a.ToggleControl,{checked:xt,help:(0,t.__)("Change button text after click.","safelayout-brilliant-buttons"),label:(0,t.__)("Change button text","safelayout-brilliant-buttons"),onChange:t=>no({hasLoading:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,x.jsx)(a.TextControl,{label:(0,t.__)("New text","safelayout-brilliant-buttons"),value:ht||"",onChange:t=>no({loadingText:t}),disabled:!xt,help:(0,t.__)('See "After click" effect on the front-end.',"safelayout-brilliant-buttons")}),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Loading effect","safelayout-brilliant-buttons")}),(0,x.jsx)(eo,{currentLoading:kt,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-loading-name");Et("sl-bb-list-selected-loading-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-loading-effect"),no({loadingEffect:e})}})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Block spacing","safelayout-brilliant-buttons"),initialOpen:!1,icon:m,children:[(0,x.jsx)(a.__experimentalBoxControl,{label:(0,t.__)("Margin","safelayout-brilliant-buttons"),values:E,onChange:t=>no({blockMargin:t})}),(0,x.jsx)("div",{style:{height:"10px"}}),(0,x.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,x.jsx)(a.__experimentalBoxControl,{label:(0,t.__)("Padding","safelayout-brilliant-buttons"),values:D,onChange:t=>no({blockPadding:t})})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:d,children:(0,x.jsx)(a.TextControl,{label:(0,t.__)("Additional CSS class(es)","safelayout-brilliant-buttons"),value:wt||"",onChange:t=>no({classes:t}),help:(0,t.__)("Separate multiple classes with spaces.","safelayout-brilliant-buttons")})})})]})};return(0,x.jsxs)(x.Fragment,{children:[!i?.hidePreview&&(0,x.jsxs)("div",{className:"sl-bb-button-block-mce-preview-container",children:[(0,x.jsx)("div",{className:"sl-bb-button-block-mce-preview-title",children:"Preview"}),(0,x.jsx)("div",{className:ro,style:{display:"inline-block",top:l.top+"px"},children:(0,x.jsx)(lo,{attributes:{...l,linkUrl:""},isInEditor:!1,clickEff:!0})})]}),(0,x.jsxs)("div",{className:bo,children:[(0,x.jsx)(a.TabPanel,{className:"sl-bb-icon-block-panel-tabs",tabs:go,initialTabName:mo.value,children:t=>{return o=t.value,(0,x.jsx)(x.Fragment,{children:xo[o]});var o}}),(0,x.jsx)("div",{className:"sl-bb-button-block-upgrade-pro",children:(0,x.jsx)("a",{href:"https://safelayout.com/safelayout-brilliant-buttons-pro/",target:"_blank",className:"button",title:(0,t.__)("Upgrade to pro version and get full features.","safelayout-brilliant-buttons"),children:(0,t.__)("Upgrade to Pro","safelayout-brilliant-buttons")})}),(0,x.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})]})}})()})();
     1(()=>{var t={452(t,o){var e;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var t="",o=0;o<arguments.length;o++){var e=arguments[o];e&&(t=i(t,a(e)))}return t}function a(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var o="";for(var e in t)l.call(t,e)&&t[e]&&(o=i(o,e));return o}function i(t,o){return o?t?t+" "+o:t+o:t}t.exports?(n.default=n,t.exports=n):void 0===(e=function(){return n}.apply(o,[]))||(t.exports=e)}()}},o={};function e(l){var n=o[l];if(void 0!==n)return n.exports;var a=o[l]={exports:{}};return t[l](a,a.exports,e),a.exports}e.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},e.d=(t,o)=>{for(var l in o)e.o(o,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:o[l]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var o=globalThis.document;if(!t&&o&&(o.currentScript&&"SCRIPT"===o.currentScript.tagName.toUpperCase()&&(t=o.currentScript.src),!t)){var l=o.getElementsByTagName("script");if(l.length)for(var n=l.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=l[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t+"../"})(),(()=>{"use strict";const t=window.wp.i18n,o=window.wp.blockEditor,l=window.ReactDOM,n=window.wp.element,a=window.wp.components,i=window.React,s=window.wp.primitives,r=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),b=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),c=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),d=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),(0,i.createElement)(s.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),(0,i.createElement)(s.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),u=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),f=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z"})),m=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));var p=e(452),g=e.n(p);const x=window.ReactJSXRuntime,h=t=>t&&-1!=t.indexOf("gradient"),k=(t,o)=>Math.round(t*10**o)/10**o;function y(t){const{grad:o,id:e}=t;function l(t,o,e){var l=o.slice(e).search(/,|\)|\d/);","==o[e+l]?t.push(0):")"==o[e+l]&&t.push(1)}let n=[],a=[],i=[".","-","+","1","2","3","4","5","6","7","8","9","0"],s=o.indexOf("(")+1,r=0,b=s,c=o.length;for(;b<c;){if(s=1,"#"===o[b])n.push(o.substr(b,s=o.slice(b).search(/,|\)|\s/))),l(a,o,b+s);else if("r"===o[b]||"h"===o[b]||"v"===o[b])n.push(o.substr(b,s=o.indexOf(")",b)-b+1)),l(a,o,b+s);else if(-1!=i.indexOf(o[b])){let t=b+o.slice(b).search(/,|%|\)/),e=o.indexOf("deg",b);-1!=e&&(-1===t||e<t)?r=180-Number(o.substr(b,s=e-b)):a.push(o.substr(b,s=t-b)/100)}b+=s}r=-r*(Math.PI/180);const d=k(.5+.5*Math.sin(r),4),u=k(.5-.5*Math.cos(r),4),f=k(.5+.5*Math.sin(r+Math.PI),4),m=k(.5-.5*Math.cos(r+Math.PI),4);return"radial"===o.substr(0,6)?(0,x.jsx)(j,{id:e,colors:n,offsets:a,cx:"0.5",cy:"0.5",r:"0.63",fx:"0.5",fy:"0.5"}):(0,x.jsx)(C,{id:e,colors:n,offsets:a,x1:d,y1:u,x2:f,y2:m})}function j(t){const{colors:o,offsets:e,id:l,cx:n,cy:a,r:i,fx:s,fy:r}=t;return(0,x.jsx)("radialGradient",{id:l,cx:n,cy:a,r:i,fx:s,fy:r,children:(0,x.jsx)(M,{colors:o,offsets:e})})}function C(t){const{colors:o,offsets:e,id:l,x1:n,y1:a,x2:i,y2:s}=t;return(0,x.jsx)("linearGradient",{id:l,x1:n,y1:a,x2:i,y2:s,children:(0,x.jsx)(M,{colors:o,offsets:e})})}function M(t){const{colors:o,offsets:e}=t;return(0,x.jsx)(x.Fragment,{children:o.map((t,o)=>(0,x.jsx)("stop",{"stop-color":t,offset:e[o]},o))})}function w(t,o,e){return{textAlign:t||null,marginTop:o?.top||null,marginRight:o?.right||null,marginBottom:o?.bottom||null,marginLeft:o?.left||null,paddingTop:e?.top||null,paddingRight:e?.right||null,paddingBottom:e?.bottom||null,paddingLeft:e?.left||null}}function v({icon:t}){const o="path-sl-bb-button-block-list"+t.name?.replaceAll(" ","_"),e=t?.attributes?.color||["#5c5c5c"],l=t.paths,n="47px";return(0,x.jsx)("div",{style:{height:n,width:n},children:(0,x.jsxs)(a.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"},children:[(0,x.jsx)("symbol",{viewBox:"0 0 24 24",id:o,children:l.map((t,o)=>(0,x.jsx)(a.Path,{"vector-effect":"non-scaling-stroke",fill:e[t.color||0],d:t.d,style:t.style},o))}),(0,x.jsx)("use",{href:`#${o}`})]})})}function S({attributes:t,others:o}){const{blockId:e,iconColor:l,iconColorSlug:n,iconStrokeColor:i,iconStrokeColorSlug:s,iconStrokeWidth:r,iconPaths:b,iconAnimColor:c}=t,d=`fillGrad${e}`,u=`strokeGrad${e}`,f=l.map((t,o)=>h(t)?`url(#${d+o})`:""),m=i.map((t,o)=>h(t)?`url(#${u+o})`:"");return(0,x.jsxs)(a.SVG,{viewBox:"4 4 16 16",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsxs)("defs",{children:[f.map((t,o)=>""!=t&&(0,x.jsx)(y,{grad:l[o],id:d+o},o)),m.map((t,o)=>""!=t&&(0,x.jsx)(y,{grad:i[o],id:u+o},o)),h(c)&&(0,x.jsx)(y,{grad:c,id:`animGrad${e}`})]}),b.map((t,o)=>(0,x.jsx)(a.Path,{"vector-effect":"non-scaling-stroke",fill:f[t.color||0]||(n&&n[t.color||0]&&""!=n[t.color||0]?`var( --wp--preset--${n[t.color||0]}, ${l[t.color||0]})`:l[t.color||0]),stroke:m[t.strokeColor||0]||(s&&s[t.strokeColor||0]&&""!=s[t.strokeColor||0]?`var( --wp--preset--${s[t.strokeColor||0]}, ${i[t.strokeColor||0]})`:i[t.strokeColor||0]),strokeWidth:r[t.strokeWidth||0],d:t.d,style:t.style},o))]})}function N({attributes:t,others:o}){const{blockId:e,iconColor:l,iconStrokeColor:n,iconStrokeWidth:i,iconPaths:s,iconAnimColor:r}=t,b=`path${e}`,c=`fillGrad${e}`,d=`strokeGrad${e}`,u=l.map((t,o)=>h(t)?`url(#${c+o})`:""),f=n.map((t,o)=>h(t)?`url(#${d+o})`:"");return(0,x.jsxs)(a.SVG,{viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",children:[(0,x.jsxs)("defs",{children:[u.map((t,o)=>""!=t&&(0,x.jsx)(y,{grad:l[o],id:c+o},o)),f.map((t,o)=>""!=t&&(0,x.jsx)(y,{grad:n[o],id:d+o},o)),h(r)&&(0,x.jsx)(y,{grad:r,id:`animGrad${e}`})]}),(0,x.jsx)("symbol",{x:"-24",y:"-24",width:"144",height:"144",viewBox:"0 0 24 24",id:b,children:s.map((t,o)=>(0,x.jsx)(a.Path,{"vector-effect":"non-scaling-stroke",fill:u[t.color||0]||l[t.color||0],stroke:f[t.strokeColor||0]||n[t.strokeColor||0],strokeWidth:i[t.strokeWidth||0],d:t.d,style:t.style},o))}),!0!==o?.d1?(0,x.jsx)("use",{href:`#${b}`}):(0,x.jsx)("use",{xlinkHref:`#${b}`})]})}const A=e.p+"images/gradients.3ad8dc67.png",I=({colorValue:t,label:o})=>(0,x.jsxs)(a.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)(a.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:t}),(0,x.jsx)(a.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:o,children:o})]}),_=t=>({onToggle:o,isOpen:e})=>{const{colorValue:l,label:n,disabled:i}=t,s={onClick:o,className:g()("block-editor-panel-color-gradient-settings__dropdown","sl-bb-button-block-no-padding-left-right",{"is-open":e}),"aria-expanded":e};return(0,x.jsx)(a.Button,{...s,disabled:i,children:(0,x.jsx)(I,{colorValue:l,label:n})})};function T({settings:t,label:o,disabled:e,position:l}){const n={colorValue:t.gradientValue??t.colorValue,label:o,disabled:e};return(0,x.jsx)(a.Dropdown,{popoverProps:{placement:l?.pos||"left-start",offset:l?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:_(n),renderContent:()=>(0,x.jsx)(a.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:g()("block-editor-panel-color-gradient-settings__dropdown-content","sl-bb-button-block-pallet-container"),style:{[`--sl-bb-active-slug-${t?.selectedSlug}`]:"2px solid #3858e9"},children:(0,x.jsx)(B,{...t})})})})}const L={name:"color",title:(0,t.__)("Solid","safelayout-brilliant-buttons"),value:"color"},z={name:"gradient",title:(0,t.__)("Gradient","safelayout-brilliant-buttons"),value:"gradient"},D=[L,z];function E(t,o){const e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",e.style.width="0px",e.style.height="0px",e.style.visibility="hidden",e.style.overflow="hidden",e.style[t]=o,document.body.appendChild(e);const l=window.getComputedStyle(e)[t];return document.body.removeChild(e),"rgba(0,0,0,0)"===l.replace(/\s+/g,"")?"":l}function P(t){return!t||t?.legend<=0?t:t.map(t=>{const o={...t},e=E("backgroundImage",t?.gradient);return e&&"none"!==e?(o.gradient=function(t){if(!t||"string"!=typeof t)return t;const o={"to top":"0deg","to top right":"45deg","to right top":"45deg","to right":"90deg","to bottom right":"135deg","to right bottom":"135deg","to bottom":"180deg","to bottom left":"225deg","to left bottom":"225deg","to left":"270deg","to top left":"315deg","to left top":"315deg"};return t.replace(/linear-gradient\s*\(\s*([^,]+)/i,(t,e)=>{const l=e.trim().toLowerCase();return`linear-gradient(${o[l]??e}`})}((l=e)&&"string"==typeof l?l.replace(/radial-gradient\s*\(\s*([^,]+)\s*,\s*/i,(t,o)=>/^(#|rgb|hsl|var)/i.test(o.trim())?t:"radial-gradient("):l),o):null;var l})}const O=(0,n.memo)(function({colors:e,onClick:l,img:n,noCurentInherit:i,tab:s}){let r=[],b=[],c=[];if("COLOR"===s){const t=(0,o.useSettings)("color.palette.theme")[0]||window?.slbbColorData?.color?.theme||[];b=(0,o.useSettings)("color.palette.default")[0]||window?.slbbColorData?.color?.default||[],c=(0,o.useSettings)("color.palette.custom")[0]||window?.slbbColorData?.color?.custom||[];const e=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/,l=/^(rgb|hsl)a?\(.+?\)$/i;r=t.map(t=>{const o={...t};let n=o.color?o.color.trim():"";if(!n)return null;if(n.startsWith("var(")){const t=E("backgroundColor",n);if(!t||"none"===t)return null;n=t}return e.test(n)||l.test(n)?(o.color=n,o):null}).filter(t=>null!==t),r?.length>0&&!i&&(r.push({name:"CurrentColor ( CSS keyword )",slug:"currentColor",color:"currentColor"}),r.push({name:"Inherit ( CSS keyword )",slug:"Inherit",color:"inherit"}))}else r=(P((0,o.useSettings)("color.gradients.theme")[0]||window?.slbbColorData?.gradient?.theme)||[]).filter(t=>null!==t),b=(P((0,o.useSettings)("color.gradients.default")[0]||window?.slbbColorData?.gradient?.default)||[]).filter(t=>null!==t),c=(P((0,o.useSettings)("color.gradients.custom")[0]||window?.slbbColorData?.gradient?.custom)||[]).filter(t=>null!==t);let d=r&&r?.length>0?(0,t.__)("Theme","safelayout-brilliant-buttons"):"";d=c&&c?.length>0?r&&r?.length>0?(0,t.__)("Theme & Custom","safelayout-brilliant-buttons"):(0,t.__)("Custom","safelayout-brilliant-buttons"):d;const u="COLOR"===s?"color--":"gradient--";return(0,x.jsxs)(x.Fragment,{children:[(r&&r?.length>0||c&&c?.length>0)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.BaseControl.VisualLabel,{style:{margin:"10px 0 0"},children:d}),(0,x.jsxs)("div",{className:g()("sl-bb-button-block-color-gradient-container","sl-bb-button-block-color-gradient-container-theme"),style:{height:"auto",maxHeight:"66px"},children:[r.map((t,o)=>(0,x.jsx)("span",{onClick:l,title:t?.name,"data-slug":u+t?.slug,style:{background:"COLOR"===s?t?.color:t?.gradient,outline:`var(--sl-bb-active-slug-${u+t?.slug}, initial)`}},o)),r&&r?.length>0&&c&&c?.length>0&&(0,x.jsx)("br",{}),c.map((t,o)=>(0,x.jsx)("span",{onClick:l,title:t?.name,"data-slug":u+t?.slug,style:{background:"COLOR"===s?t?.color:t?.gradient,outline:`var(--sl-bb-active-slug-${u+t?.slug}, initial)`}},o))]})]}),(0,x.jsx)(a.BaseControl.VisualLabel,{style:{margin:"15px 0 0"},children:(0,t.__)("Default","safelayout-brilliant-buttons")}),(0,x.jsxs)("div",{className:"sl-bb-button-block-color-gradient-container",children:[b.map((t,o)=>(0,x.jsx)("span",{onClick:l,title:t?.name,"data-slug":u+t?.slug,style:{background:"COLOR"===s?t?.color:t?.gradient}},o)),b&&b?.length>0&&(0,x.jsx)("br",{}),e.map((t,o)=>(0,x.jsx)("span",{onClick:l,title:"COLOR"===s?t:null,style:{background:t}},o)),n&&(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:A})]})]})},(t,o)=>t.tab===o.tab);function B({__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,className:e,label:l,onlySolid:n,selectedSlug:i,noCurentInherit:s,onColorChange:r,onColorArrayClick:b,onGradientChange:c,onGradientArrayClick:d,colorValue:u,gradientValue:f,clearable:m,showTitle:p=!1,enableAlpha:k,headingLevel:y}){let j=[];i&&(i=i?.replace(/^(color--|gradient--)/,""),j=[{name:i,slug:i,color:u}]);const C={[L.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.ColorPalette,{value:u,selectedSlug:i,onChange:t=>r(t),__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,clearable:m,enableAlpha:k,colors:j,headingLevel:y}),(0,x.jsx)(O,{colors:Y,onClick:b,tab:"COLOR",noCurentInherit:s})]}),[z.value]:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.GradientPicker,{__nextHasNoMargin:!0,value:h(f)?f:`linear-gradient(${f} 0%, ${f} 100%)`,onChange:t=>c(t),__experimentalIsRenderedInSidebar:t,__nextHasNoMarginBottom:o,clearable:m,enableAlpha:k,gradients:[],headingLevel:y}),(0,x.jsx)(O,{colors:U,onClick:d,img:!0,tab:"GRADIENT",noCurentInherit:s})]})};return(0,x.jsx)(a.BaseControl,{__nextHasNoMarginBottom:!0,className:g()("block-editor-color-gradient-control",e),children:(0,x.jsx)("fieldset",{className:"block-editor-color-gradient-control__fieldset",children:(0,x.jsxs)(a.__experimentalVStack,{spacing:1,children:[p&&(0,x.jsx)("legend",{children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__color-indicator",children:(0,x.jsx)(a.BaseControl.VisualLabel,{children:l})})}),(0,x.jsx)(a.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:n?[L]:D,initialTabName:h(f)?z.value:L.value,children:t=>{return o=t.value,(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:C[o]});var o}})]})})})}function R(t){const{attribute:o,label:e,onlySolid:l,change:n,click:a,disabled:i,position:s,selectedSlug:r,noCurentInherit:b}=t;return(0,x.jsx)(T,{settings:{onlySolid:l,selectedSlug:r,noCurentInherit:b,enableAlpha:!0,clearable:!1,colorValue:o,gradientValue:o,onColorChange:n,onGradientChange:n,onColorArrayClick:a,onGradientArrayClick:a,__nextHasNoMarginBottom:!0,__experimentalIsRenderedInSidebar:!1},label:e,disabled:i,position:s})}const Y=["#000","#202020","#404040","#808080","#a0a0a0","#e0e0e0","#fff","#009","#00f","#7f00ff","#93f","#b266ff","#c9f","#e5ccff","#099","#0cc","#0ff","#3ff","#6ff","#9ff","#cff","#00994c","#0c6","#00ff80","#3f9","#66ffb2","#9fc","#ccffe5","#090","#0c0","#0f0","#3f3","#6f6","#9f9","#cfc","#990","#cc0","#ff0","#ff3","#ff6","#ff9","#ffc","#994c00","#c60","#ff8000","#f93","#ffb266","#fc9","#ffe5cc","#900","#c00","#f00","#f33","#f66","#f99","#fcc"],U=["linear-gradient(#505050 0%, #cacaca 18%, #8f8f8f 19%, #555 19%, #8f8f8f 37%, #cacaca 38%, #8f8f8f 39%, #878787 39%, #555 39%, #909090 56%, #cbcbcb 58%, #909090 59%, #555 60%, #8f8f8f 77%, #cacaca 79%, #8f8f8f 79%, #555 80%, #8f8f8f 97%, #cacaca 98%, #8d8d8d 99%, #505050 100%)","linear-gradient(#5c482c 0%, #f5e5a6 12%, #5c492c 25%, #f5e5a6 37%, #5d4a2d 50%, #f5e5a6 62%, #5d4b2d 75%, #f5e5a6 86%, #5e4c2e 100%)","linear-gradient(#2c240f 0%, #f6ee91 19%, #2f2c12 36%, #f9f4b5 63%, #302e17 81%, #faf3b3 100%)","linear-gradient(#886e31 0%, #f9c640 16%, #957833 33%, #f9c640 50%, #957833 66%, #f9c640 83%, #886e31 100%)","linear-gradient(#7a7616 0%, #94901e 7%, #88801a 12%, #7c7116 15%, #a39c20 19%, #cac82a 24%, #c0bf28 27%, #b6b726 30%, #d4d22c 35%, #7c7b15 43%, #757415 47%, #6f6e15 49%, #787816 52%, #828317 57%, #a9a621 61%, #d0ca2b 63%, #c7c42b 65%, #bebf2b 68%, #cfd12b 73%, #7e7d16 82%, #8e8d1a 86%, #9e9d1e 90%, #908e1b 94%, #837f19 100%)","linear-gradient(#7a5830 0%, #c29a43 14%, #fff4dc 27%, #c79f49 37%, #fff3db 50%, #daad5f 62%, #fff4dc 73%, #e7bf78 84%, #73652b 100%)","linear-gradient(#4e84ed 0%, #88c0ff 10%, #6ba2f6 16%, #4f85ed 20%, #88c0ff 30%, #4f85ed 40%, #6ba2f6 46%, #88c0ff 50%, #6ba2f6 54%, #4f85ed 60%, #6ba2f6 64%, #88c0ff 70%, #5086ed 79%, #87bfff 90%, #4e84ed 100%)","linear-gradient(#e3c8aa 0%, #e9d1b9 10%, #eedbc8 20%, #f3e5d7 31%, #f8efe6 39%, #fdf9f5 50%, #f8efe6 58%, #f3e5d7 68%, #eedbc8 79%, #e9d1b9 88%, #c1a695 100%)","linear-gradient(#8fbfbf 0%, #fff2ff 35%, #ffbfff 64%, #ff73ff 100%)","linear-gradient(#9c8fb6 0%, #fcfcff 49%, #fcfcff 50%, #fcfcff 51%, #968eb4 99%, #968eb4 100%)","linear-gradient(#78ebff 0%, #b8f0c0 25%, #f5f582 50%, #fab3ba 75%, #ff7aee 100%)","linear-gradient(#4b9d74 0%, #fcfcff 51%, #4e9d74 98%, #4e9d74 100%)","linear-gradient(#57718c 0%, #829bb2 16%, #b3c3d1 34%, #e4ebf0 50%, #b3c3d1 66%, #829bb2 84%, #57718c 100%)","linear-gradient(#c5b358 0%, #dddee0 48%, #d1c89c 79%, #c5b358 100%)","linear-gradient(#93933d 0%, #c6c66e 11%, #d1d77f 25%, #e5ea96 36%, #fdffbe 49%, #e5ea96 61%, #d1d77f 74%, #c6c66e 87%, #93933d 100%)","linear-gradient(#b1785d 0%, #e19766 8%, #efb164 18%, #f5c66e 27%, #fbdb74 34%, #f7eda8 42%, #fdf8e4 49%, #f7eda8 55%, #fbdb74 62%, #f5c66e 72%, #efb164 81%, #e19766 89%, #b1785d 100%)","linear-gradient(#d4900b 0%, #f3a215 16%, #f6b94e 34%, #fad79a 50%, #f6b94e 65%, #f3a215 83%, #d4900b 100%)","linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)","linear-gradient(#bfa704 0%, #bca903 20%, #fffee6 50%, #bca902 80%, #b8a104 100%)","linear-gradient(#d4af37 0%, #fcc200 30%, #fede00 44%, #fede00 48%, #ffdf00 48%, #fcc200 60%, #e8b81b 65%, #d4af37 98%, #d4af37 100%)","linear-gradient(#954c39 0%, #b25744 14%, #e5883b 32%, #ffd175 50%, #e5883b 65%, #b25744 85%, #954c39 100%)"],G={rotate:0,clickEffect:"effect001"};let X=[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],H=[{d:"M6.46 6.605 7 8.905l-.54 2.29 2.01 1.24L9.7 14.445l2.3-.54 2.3.54 1.23-2.01 2.01-1.24L17 8.905l.54-2.3-2-1.24-1.24-2.01-2.3.55-2.29-.54-1.25 2zm5.55 6.34C9.79 12.945 8 11.155 8 8.935c0-2.2 1.79-3.99 4.01-3.99 2.2 0 3.99 1.79 3.99 3.99 0 2.22-1.79 4.01-3.99 4.01zm-.02-1C10.33 11.945 9 10.605 9 8.945c0-1.65 1.33-3 2.99-3S15 7.295 15 8.945c0 1.66-1.35 3-3.01 3zm3.84 1.1-1.28 2.24-2.08-.47L15 20.645l1.4-2.2h2.5zm-7.7.07 1.25 2.25 2.13-.51L9 20.645 7.6 18.445H5.1z"}],Z=[{d:"M8 14.5h9c.55 0 1 .45 1 1s-.45 1-1 1H7c-.55 0-1-.45-1-1V5.5H4c-.55 0-1-.45-1-1s.45-1 1-1h3c.55 0 1 .45 1 1v2h13l-4 7H8v1zm-.5 3c.83 0 1.5.67 1.5 1.5S8.33 20.5 7.5 20.5 6 19.83 6 19 6.67 17.5 7.5 17.5zm9 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"}],W=[{d:"M18.125 10.367C17.558 7.492 15.033 5.333 12 5.333 9.592 5.333 7.5 6.7 6.458 8.7 3.95 8.967 2 11.092 2 13.667c0 2.758 2.242 5 5 5h10.833c2.3 0 4.167-1.867 4.167-4.167 0-2.2-1.708-3.983-3.875-4.133zM17.833 17H7c-1.842 0-3.333-1.492-3.333-3.333 0-1.708 1.275-3.133 2.967-3.308l.892-.092.417-.792C8.733 7.95 10.283 7 12 7c2.183 0 4.067 1.55 4.492 3.692l.25 1.25 1.275.092c1.3.083 2.317 1.175 2.317 2.467 0 1.375-1.125 2.5-2.5 2.5zm-4.625-6.667h-2.417v2.5H8.667l3.333 3.333 3.333-3.333h-2.125z"}];const Q={top:"5px",right:"5px",bottom:"5px",left:"5px"};function F(t){return{hasBgShadow:!0,bgShadow:t}}function $(t){return{hasTextShadow:!0,textShadow:t}}const V=t=>q.find(({name:o})=>o===t)||null,J=()=>({...G,borderRadius:Q}),q=[{name:"No Effect",attributes:{...G,hasBgShadow:!1,hasTextShadow:!1,hasIconShadow:!1,hasSubTextShadow:!1,bgPattern:"No Pattern"}},{name:"effect001",attributes:{...G,border:{color:"#5C5CFF",style:"solid",width:"1px"},borderRadius:{top:"50px",right:"50px",bottom:"50px",left:"50px"},hasBgShadow:!1,clickEffect:"effect005"},attribHelp:{hasBg:!1,slbbAnim:"border-color",animColor:"#0000ff"}},{name:"effect002",attributes:{...J(),...F("0px 1px 1px #000000CF"),clickEffect:"effect004",clickEffectColor:"#f00"},attribHelp:{slbbAnim:"swap-color"}},{name:"effect003",attributes:{...J(),...F("0px 1px 7px #000"),bgPattern:"pattern002",patternOpacity:.3,clickEffect:"effect003"},attribHelp:{slbbAnim:"slide-bottom",animColor:"#fff"}},{name:"effect004",attributes:{...J(),...F("0px 1px 2px #000")},attribHelp:{...$("1px 1px 1px #fff"),slbbAnim:"shadow"}},{name:"effect005",attributes:{...J(),...F("0px 0px 2px #000")},attribHelp:{...$("1px 1px 1px #fff"),slbbAnim:"background-color",animColor:"#ff3"}},{name:"effect006",attributes:{...J(),borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},...F("0px 1px 2px #202020"),clickEffect:"effect005"},attribHelp:{...$("1px 1px 1px #fff"),slbbAnim:"split-vertical",animColor:"#FFFFCC"}},{name:"effect007",attributes:{...J(),borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},...F("0px 0px 2px #202020"),bgPattern:"pattern001",patternOpacity:.15,clickEffect:"effect004"},attribHelp:{...$("1px 1px 1px #fff"),slbbAnim:"light1"}}],K={control:!0,solid:!1,child:1,controlSTColor:!0,labelTwo:(0,t.__)("Animation Text color","safelayout-brilliant-buttons"),solidTwo:!0},tt=[{name:"No Animation"},{name:"light",child:1},{name:"light1",child:1},{name:"swap-color"},{name:"background-color",control:!0,label:(0,t.__)("Animation Background color","safelayout-brilliant-buttons"),solid:!1},{name:"text-color",control:!0,label:(0,t.__)("Animation Text color","safelayout-brilliant-buttons"),solid:!0},{name:"background-and-text-color",control:!0,label:(0,t.__)("Animation Background color","safelayout-brilliant-buttons"),solid:!1,controlTwo:!0,labelTwo:(0,t.__)("Animation Text color","safelayout-brilliant-buttons"),solidTwo:!0},{name:"border-color",control:!0,label:(0,t.__)("Animation Border color","safelayout-brilliant-buttons"),solid:!0},{name:"text-and-border-color",control:!0,label:(0,t.__)("Animation Text and Border color","safelayout-brilliant-buttons"),solid:!0},{name:"split-horizontal",label:(0,t.__)("Animation Split color","safelayout-brilliant-buttons"),...K},{name:"split-vertical",label:(0,t.__)("Animation Split color","safelayout-brilliant-buttons"),...K},{name:"stretch-horizontal",label:(0,t.__)("Animation Stretch color","safelayout-brilliant-buttons"),...K},{name:"stretch-vertical",label:(0,t.__)("Animation Stretch color","safelayout-brilliant-buttons"),...K},{name:"stretch-corner1",label:(0,t.__)("Animation Stretch color","safelayout-brilliant-buttons"),...K},{name:"stretch-corner2",label:(0,t.__)("Animation Stretch color","safelayout-brilliant-buttons"),...K},{name:"slide-top",label:(0,t.__)("Animation Slide color","safelayout-brilliant-buttons"),...K},{name:"slide-bottom",label:(0,t.__)("Animation Slide color","safelayout-brilliant-buttons"),...K},{name:"slide-left",label:(0,t.__)("Animation Slide color","safelayout-brilliant-buttons"),...K},{name:"slide-right",label:(0,t.__)("Animation Slide color","safelayout-brilliant-buttons"),...K},{name:"ellipse",label:(0,t.__)("Animation Ellipse color","safelayout-brilliant-buttons"),...K},{name:"rect",label:(0,t.__)("Animation Rect color","safelayout-brilliant-buttons"),...K},{name:"letter-space"},{name:"brighten"},{name:"darken"},{name:"grayscale"},{name:"sepia"},{name:"opacity"},{name:"shadow"},{name:"yellow-glow"},{name:"red-glow"},{name:"blue-glow"},{name:"violet-glow"},{name:"zoom-in"},{name:"zoom-out"},{name:"push",parent:"sl-bb-button-block-animation-push-parent"},{name:"move-up"},{name:"move-down"},{name:"swing-3D-X",parent:"sl-bb-button-block-animation-swing-3D-parent"},{name:"swing-3D-Y",parent:"sl-bb-button-block-animation-swing-3D-parent"},{name:"swing"},{name:"bell"},{name:"tremble"},{name:"surprise"},{name:"jelly"},{name:"expand"},{name:"wobble"}],ot=[{name:"No Animation"},{name:"fill-color",control:!0,label:(0,t.__)("Animation fill color","safelayout-brilliant-buttons")},{name:"shape-color",control:!0,label:(0,t.__)("Animation shape color","safelayout-brilliant-buttons")},{name:"fill-and-shape-color",control:!0,label:(0,t.__)("Animation fill color","safelayout-brilliant-buttons"),controlTwo:!0,labelTwo:(0,t.__)("Animation shape color","safelayout-brilliant-buttons")},{name:"yoyo-X",iconPaths:X},{name:"yoyo-Y",iconPaths:[{d:"M11.4 20.2 6.06 14.77 8.12 14.77C8.73 14.77 9.06 14.39 9.06 13.83L9.06 4.08 13.74 4.08 13.74 13.83C13.74 14.39 14.07 14.77 14.68 14.77L16.74 14.77Z"}]},{name:"rotate-X",iconPaths:X},{name:"rotate-Y",iconPaths:[{d:"M16.626 6.408l1.608 1.128-6.972 10.056H9.654L5.766 12.144l1.608-1.5 3.084 2.88z"}]},{name:"rotate-Z",iconPaths:[{d:"M12.2 5.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L6.95 7.66C8.23 6.2 10.11 5.28 12.2 5.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H2.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H7.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}]},{name:"swing"},{name:"bell"},{name:"tremble"},{name:"surprise"},{name:"jelly"},{name:"expand"},{name:"wobble"},{name:"brighten"},{name:"darken"},{name:"grayscale"},{name:"sepia"},{name:"opacity"},{name:"yellow-glow"},{name:"red-glow"},{name:"blue-glow"},{name:"violet-glow"}],et=[{name:"No Shape"},{name:"shape001"},{name:"shape002"},{name:"shape003"}],lt=["No Effect","effect001","effect002","effect003","effect004","effect005"],nt=["No Effect","effect001","effect002","effect003","effect004","effect005","effect006","effect007"],at=["No Pattern","pattern001","pattern002","pattern003","pattern004","pattern005"],it=["not use","",".sl-bb-button-block-effect002 .sl-bb-button-effect{background-image:radial-gradient(115% 100% at 50% 0, #fff 5%, #ffffff4d 40%, #00000073 100%);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}","",".sl-bb-button-block-effect004 .sl-bb-button-effect{background-image:linear-gradient(#ffffff4d, #0003 50%, #00000073 50.1%, #0000001a);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect005 .sl-bb-button-effect{background-image:linear-gradient(#ffffff4d, #ffffff12 50%, #0000001f 50.1%, #00000059);border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect006 .sl-bb-button-effect{background-image:linear-gradient(-180deg, rgba(255, 126, 49, .07), rgba(230, 44, 3, .55));background-position-y:.8em;background-repeat:no-repeat;border-radius:inherit;box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}",".sl-bb-button-block-effect007 .sl-bb-button-effect{border-radius:inherit;box-shadow:inset 0 -20px 20px -20px rgba(27, 27, 27, .4);box-sizing:inherit;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}"],st=".sl-bb-button-block-loading{animation:sl-bb-button-block-loading-anim 1.1s linear infinite;aspect-ratio:1/1;background-blend-mode:difference;background-color:var(--sl-bb-button-text-color);background-repeat:no-repeat;display:none;height:1em;pointer-events:none;width:1em}@keyframes sl-bb-button-block-loading-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}",rt=["not use",st+".sl-bb-button-block-loading-effect001{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzOSAzOSI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJzbC1iYi1ncmFkaWVudDAxIiB4MT0iNTAlIiB5MT0iMCUiIHgyPSI1MCUiIHkyPSIxMDAlIj48c3RvcCBzdG9wLWNvbG9yPSIlMjNmZmYiIG9mZnNldD0iMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agc3RvcC1jb2xvcj0iJTIzZmZmIiBvZmZzZXQ9IjEiIHN0b3Atb3BhY2l0eT0iMC40Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InNsLWJiLWdyYWRpZW50MDIiIHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiPjxzdG9wIHN0b3AtY29sb3I9IiUyM2ZmZiIgb2Zmc2V0PSIwIiBzdG9wLW9wYWNpdHk9IjAuMSIvPjxzdG9wIHN0b3AtY29sb3I9IiUyM2ZmZiIgb2Zmc2V0PSIxIiBzdG9wLW9wYWNpdHk9IjAuNCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZS13aWR0aD0iNXB4IiBzdHJva2U9InVybCgjc2wtYmItZ3JhZGllbnQwMSkiIGQ9Ik0xOS41IDM2LjQ1IEMxMC4xIDM2LjQ1IDIuNSAyOC44NSAyLjUgMTkuNSBDMi41IDEwLjEgMTAuMSAyLjUgMTkuNSAyLjUiLz48cGF0aCBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjVweCIgc3Ryb2tlPSJ1cmwoI3NsLWJiLWdyYWRpZW50MDIpIiBkPSIgTTE5LjUgMi40NSBDMjguOSAyLjQ1IDM2LjQ1IDEwLjEgMzYuNDUgMTkuNDUgQzM2LjQ1IDI4Ljg1IDI4LjkgMzYuNCAxOS41IDM2LjQiLz48L3N2Zz4=)}",st+".sl-bb-button-block-loading-effect002{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTEyIDJjLTUuNDQ0IDAtOS44NzIgNC4zNTEtOS45OTcgOS43NjUuMTE2LTQuNzI0IDMuNzA4LTguNTE1IDguMTIyLTguNTE1IDQuNDg3IDAgOC4xMjUgMy45MTggOC4xMjUgOC43NSAwIDEuMDM2LjgzOSAxLjg3NSAxLjg3NSAxLjg3NXMxLjg3NS0uODM5IDEuODc1LTEuODc1YzAtNS41MjMtNC40NzctMTAtMTAtMTB6TTEyIDIyYzUuNDQ0IDAgOS44NzItNC4zNTEgOS45OTctOS43NjUtLjExNiA0LjcyNC0zLjcwOCA4LjUxNS04LjEyMiA4LjUxNS00LjQ4NyAwLTguMTI1LTMuOTE4LTguMTI1LTguNzUgMC0xLjAzNi0uODM5LTEuODc1LTEuODc1LTEuODc1cy0xLjg3NS44MzktMS44NzUgMS44NzVjMCA1LjUyMyA0LjQ3NyAxMCAxMCAxMHoiPjwvcGF0aD48L3N2Zz4=)}",st+".sl-bb-button-block-loading-effect003{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMuNSAzLjUgMTcgMTciPjxwYXRoIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiIGQ9Ik0xMiAzLjY2N2MtLjQ2IDAtLjgzMy4zNzMtLjgzMy44MzN2MCAxLjY2N2MwIC40Ni4zNzMgLjgzMy44MzMgLjgzM3MuODMzLS4zNzMuODMzLS44MzN2MC0xLjY2N2MwLS40Ni0uMzczLS44MzMtLjgzMy0uODMzdjB6TTE5LjUgMTEuMTY3aC0xLjY2N2MtLjQ2IDAtLjgzMy4zNzMtLjgzMy44MzNzLjM3My44MzMgLjgzMy44MzN2MGgxLjY2N2MuNDYgMCAuODMzLS4zNzMuODMzLS44MzNzLS4zNzMtLjgzMy0uODMzLS44MzN2MHpNNyAxMmMwLS40Ni0uMzczLS44MzMtLjgzMy0uODMzdjBoLTEuNjY3Yy0uNDYgMC0uODMzLjM3My0uODMzLjgzM3MuMzczLjgzMyAuODMzLjgzM3YwaDEuNjY3Yy40NiAwIC44MzMtLjM3My44MzMtLjgzM3Ywek03LjE4MyA2LjE2N2MtLjE1MS0uMTQzLS4zNTUtLjIzLS41NzktLjIzLS40NjYgMC0uODQzLjM3Ny0uODQzLjg0MyAwIC4yNDEuMTAxIC40NTguMjYzIC42MTJsMCAwIDEuMiAxLjE1OGMuMTUuMTQ1IC4zNTQuMjM0IC41NzkuMjM0IC4wMSAwIC4wMjEgMCAuMDMxLS4wMDFsLS4wMDEgMGMuMjM2LS4wMDEuNDQ5LS4xLjYtLjI1OGwwIDBjLjE1LS4xNTEuMjQyLS4zNTguMjQyLS41ODhzLS4wOTMtLjQzNy0uMjQyLS41ODhsMCAwek0xNi4xNjcgOC43ODNjLjIyNC0uMDAxLjQyNi0uMDkuNTc1LS4yMzRsMCAwIDEuMi0xLjE1OGMuMTQzLS4xNDkuMjMxLS4zNTIuMjMxLS41NzYgMC0uNDYtLjM3My0uODMzLS44MzMtLjgzMy0uMTk5IDAtLjM4MS4wNy0uNTI1LjE4NmwuMDAyLS4wMDEtMS4yIDEuMTgzYy0uMTUuMTUxLS4yNDIuMzU4LS4yNDIuNTg4cy4wOTMuNDM3IC4yNDIuNTg4bDAgMGMuMTQuMTQ3IC4zMzIuMjQ0IC41NDcuMjU4bC4wMDMgMHpNMTIgMTdjLS40NiAwLS44MzMuMzczLS44MzMuODMzdjAgMS42NjdjMCAuNDYuMzczIC44MzMuODMzIC44MzNzLjgzMy0uMzczLjgzMy0uODMzdjAtMS42NjdjMC0uNDYtLjM3My0uODMzLS44MzMtLjgzM3Ywek0xNi43NzUgMTUuNDVjLS4xNS0uMTQ1LS4zNTQtLjIzNC0uNTc5LS4yMzQtLjQ2MSAwLS44MzQuMzczLS44MzQuODM0IDAgLjIzNS4wOTggLjQ0OC4yNTUgLjZsMCAwIDEuMiAxLjE4M2MuMTQ5LjE0NCAuMzUxLjIzMiAuNTc1LjIzM2gwYy4wMDEgMCAuMDAzIDAgLjAwNSAwIC4yMzMgMCAuNDQ0LS4wOTYuNTk1LS4yNWwwIDBjLjE1Mi0uMTUxLjI0Ny0uMzYuMjQ3LS41OTJzLS4wOTQtLjQ0MS0uMjQ2LS41OTJsMCAwek03LjIyNSAxNS40NWwtMS4yIDEuMTU4Yy0uMTUyLjE1MS0uMjQ3LjM2LS4yNDcuNTkycy4wOTQuNDQxIC4yNDYuNTkybDAgMGMuMTUxLjE1NCAuMzYyLjI1IC41OTUuMjUgLjAwMiAwIC4wMDMgMCAuMDA1IDBoMGMuMDAyIDAgLjAwNSAwIC4wMDcgMCAuMjEyIDAgLjQwNS0uMDc5LjU1Mi0uMjA5bC0uMDAxLjAwMSAxLjItMS4xNThjLjE1Ny0uMTUyLjI1NS0uMzY1LjI1NS0uNiAwLS40NjEtLjM3My0uODM0LS44MzQtLjgzNC0uMjI1IDAtLjQyOS4wODktLjU3OS4yMzRsMCAweiI+PC9wYXRoPjwvc3ZnPg==)}",st+".sl-bb-button-block-loading-effect004{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTEzLjg3NSAzLjg3NUMxMy44NzUgMS4zNzUgMTAuMTI1IDEuMzc1IDEwLjEyNSAzLjg3NSAxMC4xMjUgNi4zNzUgMTMuODc1IDYuMzc1IDEzLjg3NSAzLjg3NVpNMTMuODc1IDIwLjEyNUMxMy44NzUgMTcuNjI1IDEwLjEyNSAxNy42MjUgMTAuMTI1IDIwLjEyNSAxMC4xMjUgMjIuNjI1IDEzLjg3NSAyMi42MjUgMTMuODc1IDIwLjEyNVpNMy44NzUgMTMuODc1QzYuMzc1IDEzLjg3NSA2LjM3NSAxMC4xMjUgMy44NzUgMTAuMTI1IDEuMzc1IDEwLjEyNSAxLjM3NSAxMy44NzUgMy44NzUgMTMuODc1Wk0yMiAxMkMyMiA5LjUgMTguMjUgOS41IDE4LjI1IDEyIDE4LjI1IDE0LjUgMjIgMTQuNSAyMiAxMlpNNy41ODIgMTkuMDdDOS40MjQgMTcuMzAyIDYuNjk3IDE0LjU3NSA0LjkyOSAxNi40MTggMy4wODcgMTguMTg2IDUuODE0IDIwLjkxMyA3LjU4MiAxOS4wN1pNNy41ODIgNy41NzhDOS40NTQgNS44MSA2LjY5MyAzLjA1NSA0LjkyOSA0LjkzIDMuMTYxIDYuNjk4IDUuODEzIDkuMzUgNy41ODEgNy41ODJaTTE2LjQxOCAxOS4wN0MxOC4xODYgMjAuODM4IDIwLjgzOCAxOC4xODYgMTkuMDcgMTYuNDE4IDE3LjMwMiAxNC42NSAxNC42NSAxNy4zMDIgMTYuNDE4IDE5LjA3Wk0xOC45NjYgNy41NzhDMjAuODM3IDUuODEgMTguMDc3IDMuMDU1IDE2LjMxMyA0LjkzIDE0LjU0NSA2LjY5OCAxNy4xOTcgOS4zNSAxOC45NjUgNy41ODJaIj48L3BhdGg+PC9zdmc+)}",st+".sl-bb-button-block-loading-effect005{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTExLjk5MiAyMi4wNjFDMTcuNTE3IDIyLjA2MSAyMi4wMjEgMTcuNTU4IDIyLjAyMSAxMi4wMzNIMTkuNzQ0QzE5Ljc0NCAxNi4zMjcgMTYuMjg2IDE5Ljc4MyAxMS45OTIgMTkuNzgzWk00LjI0MiAxMi4wMzNDNC4yNDIgNy43MzkgNy42OTggNC4yODEgMTEuOTkyIDQuMjgxTDExLjk5MiAyLjAwNEM2LjQ2NyAyLjAwNCAxLjk2NSA2LjUwOCAxLjk2NSAxMi4wMzNaIj48L3BhdGg+PC9zdmc+)}",st+".sl-bb-button-block-loading-effect006{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMuNSAzLjUgMTcgMTciPjxwYXRoIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiIGQ9Ik0gMTIsMjAuNDM3IEMgOS43NDYsMjAuNDM3IDcuNjI3LDE5LjU1OSA2LjAzNCwxNy45NjYgNC40NDEsMTYuMzczIDMuNTYzLDE0LjI1NCAzLjU2MywxMiAzLjU2Myw5Ljc0NiA0LjQ0MSw3LjYyNyA2LjAzNCw2LjAzNCBMIDcuMzYsNy4zNiB2IDAgYyAtMi41NTksMi41NTkgLTIuNTU5LDYuNzIyIDAsOS4yODEgMS4yMzksMS4yMzkgMi44ODcsMS45MjIgNC42NCwxLjkyMiBtIDAsMCBjIDEuNzUzLDAgMy40MDEsLTAuNjgzIDQuNjQsLTEuOTIyIDIuNTU5LC0yLjU1OSAyLjU1OSwtNi43MjIgMCwtOS4yODEgbCAxLjMyNiwtMS4zMjYgYyAxLjU5NCwxLjU5NCAyLjQ3MSwzLjcxMyAyLjQ3MSw1Ljk2NiAwLDIuMjU0IC0wLjg3OCw0LjM3MyAtMi40NzEsNS45NjYgLTEuNTk0LDEuNTk0IC0zLjcxMywyLjQ3MSAtNS45NjYsMi40NzEiPjwvcGF0aD48L3N2Zz4=)}",st+".sl-bb-button-block-loading-effect007{mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjIgMiAyMCAyMCI+PHBhdGggZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIgZD0iTTExLjk5MiAyLjAwNEM5Ljk0IDIgNy44OTEgMi42NDYgNi4yMTcgMy44MzRMNy41MTYgNS43MDVDOS45ODggMy45MDYgMTMuNTM4IDMuODA5IDE2LjEwOCA1LjQ2MyAxNi45MDIgNS45NjIgMTcuNjA2IDYuNjA1IDE4LjE3MiA3LjM1NEwxOS45OCA1Ljk2OUMxOC4xMiAzLjQ5NCAxNS4wOTEgMS45ODUgMTEuOTkyIDIuMDA0Wk0yLjkzMiA3LjczMkMxLjM1IDEwLjk4NiAxLjczOSAxNS4wODMgMy45MTUgMTcuOTc1IDQuODIyIDE5LjIwNyA2LjAxMyAyMC4yMjkgNy4zNzEgMjAuOTM0TDguNDM0IDE4LjkyQzUuODAyIDE3LjU5MyA0LjA5IDE0LjY2NSA0LjI0OSAxMS43MTkgNC4yODcgMTAuNjc0IDQuNTQ0IDkuNjM5IDQuOTk0IDguNjk1Wk0yMS45MjggMTAuNjY0IDE5LjY3MiAxMC45OEMyMC4wOTQgMTMuODIgMTguNzY2IDE2LjgxNyAxNi4zODYgMTguNDE5IDE1LjE3NiAxOS4yNTcgMTMuNzIzIDE5LjczNCAxMi4yNTIgMTkuNzc5IDEyLjI4MSAyMC41MzggMTIuMzExIDIxLjI5NiAxMi4zNCAyMi4wNTUgMTUuODY5IDIxLjk2OSAxOS4yNDIgMTkuODQ0IDIwLjg2MyAxNi43MTIgMjEuNjIzIDE1LjI4MiAyMi4wMTggMTMuNjY1IDIyLjAyMiAxMi4wNDcgMjAuNjA4IDEyLjAyOSAyMC44NzUgMTIuMDMxIDIyLjAyMiAxMi4wMTggMjIuMDE5IDExLjU2NSAyMS45ODkgMTEuMTEzIDIxLjkyOCAxMC42NjRaIj48L3BhdGg+PC9zdmc+)}"],bt=["not use","","",".sl-bb-button-block-click-effect003 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color);border-radius:50%;height:40px;left:calc(var(--sl-bb-button-click-center-x) - 20px);opacity:0;pointer-events:none;position:absolute;top:calc(var(--sl-bb-button-click-center-y) - 20px);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;width:40px;z-index:100}.sl-bb-button-block-click-effect003 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble-anim .4s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble-anim{0%{opacity:.85;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}30%{opacity:.85}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}",".sl-bb-button-block-click-effect004 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color) border-box;border:4px solid transparent;border-radius:50%;height:40px;left:calc(var(--sl-bb-button-click-center-x) - 20px);-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:xor;opacity:0;pointer-events:none;position:absolute;top:calc(var(--sl-bb-button-click-center-y) - 20px);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;width:40px;z-index:100}.sl-bb-button-block-click-effect004 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble-anim .4s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble-anim{0%{opacity:.85;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}30%{opacity:.85}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}",".sl-bb-button-block-click-effect005 .sl-bb-button-click-parent{border-radius:inherit;box-sizing:inherit;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:all .2s linear;width:100%}.sl-bb-button-block-click-effect005 .sl-bb-button-click{background:var(--sl-bb-button-click-effect-color);border-radius:50%;left:var(--sl-bb-button-click-center-x);opacity:0;pointer-events:none;position:absolute;top:var(--sl-bb-button-click-center-y);transform:scale(0);transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y));transition:all 0s linear;z-index:100}.sl-bb-button-block-click-effect005 .sl-bb-button-click-anim{animation:sl-bb-button-block-bubble1-anim .6s cubic-bezier(.215, .61, .355, 1) 1 forwards}@keyframes sl-bb-button-block-bubble1-anim{0%{opacity:.8;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(0)}to{opacity:0;transform:translate(var(--sl-bb-button-click-x), var(--sl-bb-button-click-y)) scale(1)}}"],ct=["not use",".sl-bb-button-icon-shape001,.sl-bb-button-icon-shape001-right{background:var(--sl-bb-button-icon-shape-color);border-radius:inherit;bottom:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));left:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}",".sl-bb-button-icon-shape002,.sl-bb-button-icon-shape002-right{background:var(--sl-bb-button-icon-shape-color);border-radius:50%;bottom:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));left:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-4px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}",".sl-bb-button-icon-shape003,.sl-bb-button-icon-shape003-right{background:var(--sl-bb-button-icon-shape-color);border-radius:50%;bottom:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));box-shadow:0 0 0 3px #fff, 0 0 0 4px blue;left:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));position:absolute !important;right:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));top:calc(-3px - var(--sl-bb-button-icon-shape-size, 0px));z-index:-1}"],dt=["not use",".sl-bb-button-pattern001{background:repeating-linear-gradient(-75deg, #fff, #0000003a 3px), repeating-linear-gradient(-125deg, #fff, #0000003a 5px)}",".sl-bb-button-pattern002{background:-webkit-repeating-linear-gradient(left, #fff0 0%, #fff0 6%, #ffffff4a 7.5%), -webkit-repeating-linear-gradient(left, #0000 0%, #0000 4%, #00000020 4.5%), -webkit-repeating-linear-gradient(left, #fff0 0%, #fff0 1.2%, #ffffff46 2.2%), -webkit-linear-gradient(-90deg, #a7a7a7d9 0%, #f2f2f2 100%)}",".sl-bb-button-pattern003{background-color:#808080cc;background-image:repeating-linear-gradient(45deg, #0000, #0000 5px, #ffffff80 5px, #ffffff80 10px)}",".sl-bb-button-pattern004{background-color:#808080cc;background-image:repeating-linear-gradient(45deg, #0000, #0000 7px, #ffffff80 7px, #ffffff80 14px)}",".sl-bb-button-pattern005{background-color:#e66464d9;background-image:linear-gradient(to right, #0000 50%, #ffffff80 50%), linear-gradient(to bottom, #0000 50%, #ffffff80 50%);background-size:10px 10px}"],ut=[];ut.wobble=".sl-bb-button-block-animation-wobble{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-wobble:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-wobble:hover{animation:sl-bb-wobble-anim .75s linear 1}@keyframes sl-bb-wobble-anim{16%{transform:translateX(6px)}33%{transform:translateX(-4px)}50%{transform:translateX(3px)}66%{transform:translateX(-2px)}83%{transform:translateX(1px)}}",ut.expand=".sl-bb-button-block-animation-expand{transform:rotateX(.005deg)}.sl-bb-button-block-animation-expand:hover,.sl-bb-button-block-animation-icon-expand:hover .sl-bb-button-block-icon svg{animation:sl-bb-expand-anim .75s linear 1}@keyframes sl-bb-expand-anim{30%{transform:scaleX(1.2)}45%{transform:scaleX(.93)}60%{transform:scaleX(1.1)}73%{transform:scaleX(.95)}87%{transform:scaleX(1.05)}}",ut.jelly=".sl-bb-button-block-animation-jelly{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-jelly:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-jelly:hover{animation:sl-bb-jelly-anim .75s linear 1;transform-origin:50% 100%}@keyframes sl-bb-jelly-anim{30%{transform:skew(18deg)}45%{transform:skew(-16deg)}60%{transform:skew(10deg)}73%{transform:skew(-6deg)}87%{transform:skew(4deg)}}",ut.surprise=".sl-bb-button-block-animation-surprise{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-surprise:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-surprise:hover{animation:sl-bb-surprise-anim .75s linear 1}@keyframes sl-bb-surprise-anim{10%{transform:scale(.95) rotate(3deg)}20%{transform:scale(.9) rotate(-3deg)}30%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}50%,70%,90%{transform:scale(1.1) rotate(3deg)}}",ut.tremble=".sl-bb-button-block-animation-tremble{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-tremble:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-tremble:hover{animation:sl-bb-tremble-anim .75s linear 1}@keyframes sl-bb-tremble-anim{10%,30%,50%,70%,90%{transform:rotate(3deg)}20%,40%,60%,80%{transform:rotate(-3deg)}}",ut.bell=".sl-bb-button-block-animation-bell{transform:rotateX(.005deg)}.sl-bb-button-block-animation-bell:hover,.sl-bb-button-block-animation-icon-bell:hover .sl-bb-button-block-icon svg{animation:sl-bb-bell-anim .85s linear 1;transform-origin:50% 0}@keyframes sl-bb-bell-anim{11%{transform:rotate(8deg)}29%{transform:rotate(-6.5deg)}47%{transform:rotate(5deg)}65%{transform:rotate(-3.5deg)}83%{transform:rotate(2deg)}}",ut["swing-3D-Y"]=".sl-bb-button-block-animation-swing-3D-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-swing-3D-Y:hover{animation:sl-bb-swing-3D-Y-anim .85s linear 1}@keyframes sl-bb-swing-3D-Y-anim{20%{transform:rotateY(15deg)}40%{transform:rotateY(-12deg)}60%{transform:rotateY(8deg)}80%{transform:rotateY(-5deg)}to{transform:rotateY(0)}}.sl-bb-button-block-animation-swing-3D-parent{perspective:200px}",ut["swing-3D-X"]=".sl-bb-button-block-animation-swing-3D-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-swing-3D-X:hover{animation:sl-bb-swing-3D-X-anim .85s linear 1}@keyframes sl-bb-swing-3D-X-anim{20%{transform:rotateX(15deg)}40%{transform:rotateX(-12deg)}60%{transform:rotateX(8deg)}80%{transform:rotateX(-5deg)}to{transform:rotateX(0)}}.sl-bb-button-block-animation-swing-3D-parent{perspective:200px}",ut.swing=".sl-bb-button-block-animation-swing{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-swing:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-swing:hover{animation:sl-bb-swing-anim .85s linear 1}@keyframes sl-bb-swing-anim{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}",ut["yoyo-X"]=".sl-bb-button-block-animation-icon-yoyo-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-yoyo-X:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-yoyo-X-anim .75s ease-in-out infinite}@keyframes sl-bb-icon-yoyo-X-anim{25%{transform:translateX(-1px)}75%{transform:translateX(1px)}}",ut["yoyo-Y"]=".sl-bb-button-block-animation-icon-yoyo-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-yoyo-Y:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-yoyo-Y-anim .75s ease-in-out infinite}@keyframes sl-bb-icon-yoyo-Y-anim{25%{transform:translateY(-1px)}75%{transform:translateY(1px)}}",ut["rotate-X"]=".sl-bb-button-block-animation-icon-rotate-X{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-X:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-X-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-X-anim{to{transform:rotateX(1turn)}}",ut["rotate-Y"]=".sl-bb-button-block-animation-icon-rotate-Y{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-Y:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-Y-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-Y-anim{to{transform:rotateY(1turn)}}",ut["rotate-Z"]=".sl-bb-button-block-animation-icon-rotate-Z{transform:rotateX(.005deg)}.sl-bb-button-block-animation-icon-rotate-Z:hover .sl-bb-button-block-icon svg{animation:sl-bb-icon-rotate-Z-anim 1s linear infinite}@keyframes sl-bb-icon-rotate-Z-anim{to{transform:rotate(1turn)}}",ut.push=".sl-bb-button-block-animation-push{transition:all .17s ease-out!important;transform:rotateX(.005deg)}.sl-bb-button-block-animation-push:hover{transform:rotateX(10deg);transform-origin:100% 110%}.sl-bb-button-block-animation-push-parent{perspective:200px}",ut["split-horizontal"]=".sl-bb-button-block-animation-split-horizontal .sl-bb-button-anim1{clip-path:polygon(0 0, 0 0, 0 100%, 0 100%, 0 0, 100% 0, 100% 0, 100% 100%, 100% 100%, 100% 0)}.sl-bb-button-block-animation-split-horizontal:hover .sl-bb-button-anim1{clip-path:polygon(50% 0, 0 0, 0 100%, 50% 100%, 50% 0, 50% 0, 100% 0, 100% 100%, 50% 100%, 50% 0)}.sl-bb-button-block-animation-split-horizontal:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-split-horizontal:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["split-vertical"]=".sl-bb-button-block-animation-split-vertical .sl-bb-button-anim1{clip-path:polygon(0 0, 100% 0, 100% 0, 0 0, 0 0, 0 100%, 100% 100%, 100% 100%, 0 100%, 0 100%)}.sl-bb-button-block-animation-split-vertical:hover .sl-bb-button-anim1{clip-path:polygon(0 0, 100% 0, 100% 50%, 0 50%, 0 0, 0 50%, 100% 50%, 100% 100%, 0 100%, 0 50%)}.sl-bb-button-block-animation-split-vertical:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-split-vertical:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["stretch-horizontal"]=".sl-bb-button-block-animation-stretch-horizontal .sl-bb-button-anim1{transform:scaleX(0)}.sl-bb-button-block-animation-stretch-horizontal:hover .sl-bb-button-anim1{transform:scaleX(1)}.sl-bb-button-block-animation-stretch-horizontal{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-horizontal:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-stretch-horizontal:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["stretch-vertical"]=".sl-bb-button-block-animation-stretch-vertical:hover .sl-bb-button-anim1{transform:scaleY(1)}.sl-bb-button-block-animation-stretch-vertical .sl-bb-button-anim1{transform:scaleY(0)}.sl-bb-button-block-animation-stretch-vertical{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-vertical:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-stretch-vertical:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut.ellipse=".sl-bb-button-block-animation-ellipse .sl-bb-button-anim1{border-radius:50%;transform:scale(0)}.sl-bb-button-block-animation-ellipse:hover .sl-bb-button-anim1{transform:scale(2)}.sl-bb-button-block-animation-ellipse{transform:rotateX(.005deg)}.sl-bb-button-block-animation-ellipse:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-ellipse:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut.rect=".sl-bb-button-block-animation-rect .sl-bb-button-anim1{transform:scale(0)}.sl-bb-button-block-animation-rect:hover .sl-bb-button-anim1{transform:scale(1)}.sl-bb-button-block-animation-rect{transform:rotateX(.005deg)}.sl-bb-button-block-animation-rect:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-rect:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["slide-bottom"]=".sl-bb-button-block-animation-slide-bottom .sl-bb-button-anim1{transform:translateY(101%)}.sl-bb-button-block-animation-slide-bottom:hover .sl-bb-button-anim1{transform:translateY(0)}.sl-bb-button-block-animation-slide-bottom{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-bottom:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-bottom:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["slide-top"]=".sl-bb-button-block-animation-slide-top .sl-bb-button-anim1{transform:translateY(-101%)}.sl-bb-button-block-animation-slide-top:hover .sl-bb-button-anim1{transform:translateY(0)}.sl-bb-button-block-animation-slide-top{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-top:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-top:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["slide-left"]=".sl-bb-button-block-animation-slide-left .sl-bb-button-anim1{transform:translateX(-101%)}.sl-bb-button-block-animation-slide-left:hover .sl-bb-button-anim1{transform:translateX(0)}.sl-bb-button-block-animation-slide-left{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-left:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-left:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["slide-right"]=".sl-bb-button-block-animation-slide-right .sl-bb-button-anim1{transform:translateX(101%)}.sl-bb-button-block-animation-slide-right:hover .sl-bb-button-anim1{transform:translateX(0)}.sl-bb-button-block-animation-slide-right{transform:rotateX(.005deg)}.sl-bb-button-block-animation-slide-right:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}.sl-bb-button-block-animation-slide-right:hover .sl-bb-button-effect-parent{background-color:var(--sl-bb-button-anim-color) !important;transition:background-color 0ms .2s}",ut["stretch-corner1"]=".sl-bb-button-block-animation-stretch-corner1 .sl-bb-button-anim1{transform: skewX(-40deg) scaleX(0)}.sl-bb-button-block-animation-stretch-corner1:hover .sl-bb-button-anim1{transform: skewX(40deg) scaleX(1)}.sl-bb-button-block-animation-stretch-corner1{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-corner1:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}",ut["stretch-corner2"]=".sl-bb-button-block-animation-stretch-corner2 .sl-bb-button-anim1{transform: skewX(40deg) scaleX(0)}.sl-bb-button-block-animation-stretch-corner2:hover .sl-bb-button-anim1{transform: skewX(-40deg) scaleX(1)}.sl-bb-button-block-animation-stretch-corner2{transform:rotateX(.005deg)}.sl-bb-button-block-animation-stretch-corner2:hover{color:var(--sl-bb-button-anim-slide-text-color, var(--sl-bb-button-text-color)) !important}",ut["text-and-border-color"]=".safelayout-bb-button-block .sl-bb-button-block-animation-text-and-border-color .sl-bb-button-effect-parent{border:1px solid transparent}.sl-bb-button-block-animation-text-and-border-color:hover .sl-bb-button-effect-parent,.sl-bb-button-block-effect009.sl-bb-button-block-animation-text-and-border-color:hover{border-color:var(--sl-bb-button-anim-color) !important}.sl-bb-button-block-animation-text-and-border-color:hover,.sl-bb-button-block-effect009.sl-bb-button-block-animation-text-and-border-color:hover{color:var(--sl-bb-button-anim-color) !important}",ut["border-color"]=".safelayout-bb-button-block .sl-bb-button-block-animation-border-color .sl-bb-button-effect-parent{border:1px solid transparent}.sl-bb-button-block-animation-border-color:hover .sl-bb-button-effect-parent,.sl-bb-button-block-effect009.sl-bb-button-block-animation-border-color:hover{border-color:var(--sl-bb-button-anim-color) !important}",ut["swap-color"]=".sl-bb-button-block-animation-swap-color:hover{color:var(--sl-bb-button-background-color)!important}.sl-bb-button-block-animation-swap-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-text-color)!important}",ut["background-color"]=".sl-bb-button-block-animation-background-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-anim-color)!important}",ut["text-color"]=".sl-bb-button-block-animation-text-color:hover{color:var(--sl-bb-button-anim-color)!important}",ut["background-and-text-color"]=".sl-bb-button-block-animation-background-and-text-color:hover .sl-bb-button-effect-parent{background:var(--sl-bb-button-anim-color)!important}.sl-bb-button-block-animation-background-and-text-color:hover{color:var(--sl-bb-button-anim-two-color)!important}",ut.shadow=".sl-bb-button-block-animation-shadow:hover{box-shadow:0 0 12px 1px rgba(0,0,0,.55)!important}",ut.light=".sl-bb-button-block-animation-light .sl-bb-button-anim1{background:linear-gradient(90deg,transparent 33%,hsla(0,0%,100%,.702),transparent 67%) 100%/300% no-repeat;z-index:10}.sl-bb-button-block-animation-light:hover .sl-bb-button-anim1{background-position:0 0}",ut.light1=".sl-bb-button-block-animation-light1 .sl-bb-button-anim1{background:linear-gradient(45deg,hsla(0,0%,100%,0) 40%,hsla(0,0%,100%,.702) 50%,hsla(0,0%,100%,0) 70%);background-position:-10% 0;background-size:220% auto;z-index:10}.sl-bb-button-block-animation-light1:hover .sl-bb-button-anim1{background-position:110% 0}",ut["letter-space"]=".sl-bb-button-block-animation-letter-space:hover{letter-spacing:1px!important}",ut["fill-color"]=".sl-bb-button-block-animation-icon-fill-color:hover .sl-bb-button-block-icon svg path,.sl-bb-button-block-animation-icon-fill-color:hover .sl-bb-button-block-icon svg symbol path{fill:var(--sl-bb-button-icon-anim-color)!important}",ut["shape-color"]=".sl-bb-button-icon-shape{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-shape-color:hover .sl-bb-button-icon-shape{background:var(--sl-bb-button-icon-anim-color)!important}",ut["fill-and-shape-color"]=".sl-bb-button-icon-shape{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-fill-and-shape-color:hover .sl-bb-button-block-icon svg path{fill:var(--sl-bb-button-icon-anim-color)!important}.sl-bb-button-block-animation-icon-fill-and-shape-color:hover .sl-bb-button-icon-shape{background:var(--sl-bb-button-icon-anim-two-color)!important}",ut["yellow-glow"]=".sl-bb-button-block-animation-yellow-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-yellow-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-yellow-glow:hover{filter:drop-shadow(0 0 5px yellow)}",ut["red-glow"]=".sl-bb-button-block-animation-red-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-red-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-red-glow:hover{filter:drop-shadow(0 0 5px red)}",ut["blue-glow"]=".sl-bb-button-block-animation-blue-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-blue-glow:hover,.sl-bb-button-block-animation-icon-blue-glow:hover .sl-bb-button-block-icon svg{filter:drop-shadow(0 0 5px blue)}",ut["violet-glow"]=".sl-bb-button-block-animation-violet-glow{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-violet-glow:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-violet-glow:hover{filter:drop-shadow(0 0 5px violet)}",ut.brighten=".sl-bb-button-block-animation-brighten{transition:all .17s ease-out!important}.sl-bb-button-block-animation-brighten:hover,.sl-bb-button-block-animation-icon-brighten:hover .sl-bb-button-block-icon svg{filter:brightness(1.15)}",ut.darken=".sl-bb-button-block-animation-darken{transition:all .17s ease-out!important}.sl-bb-button-block-animation-darken:hover,.sl-bb-button-block-animation-icon-darken:hover .sl-bb-button-block-icon svg{filter:brightness(.85)}",ut.grayscale=".sl-bb-button-block-animation-grayscale{transition:all .17s ease-out!important}.sl-bb-button-block-animation-grayscale:hover,.sl-bb-button-block-animation-icon-grayscale:hover .sl-bb-button-block-icon svg{filter:grayscale(80%)}",ut.sepia=".sl-bb-button-block-animation-sepia{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-sepia:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-sepia:hover{filter:sepia(80%)}",ut.opacity=".sl-bb-button-block-animation-opacity{transition:all .17s ease-out!important}.sl-bb-button-block-animation-icon-opacity:hover .sl-bb-button-block-icon svg,.sl-bb-button-block-animation-opacity:hover{opacity:.7}",ut["zoom-in"]=".sl-bb-button-block-animation-zoom-in{transition:all .17s ease-out!important}.sl-bb-button-block-animation-zoom-in{transform:rotateX(.005deg)}.sl-bb-button-block-animation-zoom-in:hover{transform:scale(1.07)}",ut["zoom-out"]=".sl-bb-button-block-animation-zoom-out{transition:all .17s ease-out!important}.sl-bb-button-block-animation-zoom-out{transform:rotateX(.005deg)}.sl-bb-button-block-animation-zoom-out:hover{transform:scale(.93)}",ut["move-up"]=".sl-bb-button-block-animation-move-up{transition:all .17s ease-out!important}.sl-bb-button-block-animation-move-up:hover{transform:translateY(-2px)}",ut["move-down"]=".sl-bb-button-block-animation-move-down{transition:all .17s ease-out!important}.sl-bb-button-block-animation-move-down:hover{transform:translateY(2px)}";const ft=ut,mt={textColor:"#00f",hasBg:!0,bgColor:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)",textAlign:"center",uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,minWidth:void 0,hasBgShadow:!0,bgShadow:"0px 1px 3px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconAnimation:"No Animation",iconAnimColor:"#fff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:X,iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",svgEffect:"",rotate:0,slbbAnim:"slide-top",animColor:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)",clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",animColorTwo:"#f00",hasSubText:!1,subText:"More Text",subTextAlign:"center",subTextFontSize:"11px",animSTColor:void 0,iconAnimColorTwo:"#f00",elementStyle:"",textColorSlug:void 0,bgColorSlug:void 0,iconShapeColorSlug:void 0,iconAnimColorSlug:void 0,iconColorSlug:void 0,iconStrokeColorSlug:void 0,animColorSlug:void 0,clickEffectColorSlug:void 0,animColorTwoSlug:void 0,animSTColorSlug:void 0,iconAnimColorTwoSlug:void 0},pt=[{name:"Button001",attributes:{content:"Free Download",textColor:"#1a1a1a",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#fff",iconName:"003_cloud download",iconPaths:W,iconColor:["#1a1a1a"],slbbAnim:"background-and-text-color",animColor:"#1a1a1a",animColorTwo:"#fff"}},{name:"Button002",attributes:{content:"Get PRO Version",textColor:"#fff",bgColor:"#1a1a1a",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#1a1a1a",iconName:"001_awards",iconPaths:H,iconColor:["#fff"],slbbAnim:"background-and-text-color",animColor:"#fff",animColorTwo:"#1a1a1a"}},{name:"Button003",attributes:{content:"Explore More",textColor:"#ff8000",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"15px",right:"40px",bottom:"15px",left:"40px"},border:{color:"#ff8000",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconAnimation:"fill-color",iconAnimColor:"#fff",iconColor:["#ff8000"],slbbAnim:"rect",animColor:"#ff8000",animColorTwo:"#fff",animSTColor:"#fff"}},{name:"Button004",attributes:{content:"Explore More",textColor:"#fff",bgColor:"#ff8000",hasBgShadow:!1,blockPadding:{top:"15px",right:"40px",bottom:"15px",left:"40px"},border:{color:"#ff8000",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},iconAnimation:"fill-color",iconAnimColor:"#ff8000",iconColor:["#fff"],slbbAnim:"rect",animColor:"#fff",animColorTwo:"#ff8000",animSTColor:"#ff8000"}},{name:"Button005",attributes:{content:"Free Download",fontSize:"22px",textColor:"#1a1a1a",bgColor:"#fff",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#fff",iconName:"003_cloud download",iconGap:8,iconPaths:W,iconColor:["#1a1a1a"],slbbAnim:"stretch-horizontal",animColor:"#1a1a1a",animColorTwo:"#fff",clickEffect:"effect004",clickEffectColor:"#fff",hasSubText:!0,subText:"Free 30 days Trial – 1.5GB",animSTColor:"#fff"}},{name:"Button006",attributes:{content:"Get PRO Version",fontSize:"22px",textColor:"#fff",bgColor:"#1a1a1a",hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#1a1a1a",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-color",iconAnimColor:"#1a1a1a",iconName:"001_awards",iconPaths:H,iconColor:["#fff"],slbbAnim:"stretch-horizontal",animColor:"#fff",animColorTwo:"#1a1a1a",clickEffect:"effect004",clickEffectColor:"#000",hasSubText:!0,subText:"Starting at only 14.99 USD!",animSTColor:"#1a1a1a"}},{name:"Button007",attributes:{content:"Learn More",textColor:"#b87132",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"15px",right:"30px",bottom:"15px",left:"30px"},border:{color:"#b87132",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#b87132",iconPos:"right",iconGap:10,iconAnimation:"yoyo-X",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#fff"],slbbAnim:"slide-top",animColor:"#b87132",animColorTwo:"#fff",animSTColor:"#fff",clickEffect:"effect004",clickEffectColor:"#404040"}},{name:"Button008",attributes:{content:"Learn More",textColor:"#fff",bgColor:"#b87132",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"15px",right:"30px",bottom:"15px",left:"30px"},border:{color:"#b87132",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#b87132",iconPos:"right",iconGap:10,iconAnimation:"yoyo-X",iconName:"001_arrow right alt",iconPaths:[{d:"M4 13V11h12l-4-4 1-2 7 7-7 7-1-2 4-4H4z"}],iconColor:["#fff"],slbbAnim:"slide-bottom",animColor:"#fff",animColorTwo:"#b87132",animSTColor:"#b87132",clickEffect:"effect004",clickEffectColor:"#404040"}},{name:"Button009",attributes:{content:"Visit Shop",textColor:"#000",bgColor:"#9933ff",uppercase:!0,bgShadow:"0px 0px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},hasIcon:!0,iconAnimation:"yoyo-X",iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#99ffcc",clickEffect:"effect004",clickEffectColor:"#f00"}},{name:"Button010",attributes:{content:"Visit Shop",textColor:"#000",bgColor:"#9933ff",uppercase:!0,bgShadow:"0px 0px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"10px",right:"10px",bottom:"10px",left:"10px"},hasIcon:!0,iconAnimation:"yoyo-X",iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern004",patternOpacity:.4,effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#99ffcc",clickEffect:"effect004",clickEffectColor:"#f00"}},{name:"Button011",attributes:{content:"Visit Shop",textColor:"#fff",bgColor:"#f00",uppercase:!0,bgShadow:"0px 1px 7px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#fff",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],effect:"effect003",slbbAnim:"border-color",animColor:"#ff0",clickEffect:"effect005",clickEffectColor:"#ffff99"}},{name:"Button012",attributes:{content:"Visit Shop",textColor:"#fff",bgColor:"#f00",uppercase:!0,bgShadow:"0px 1px 7px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#fff",style:"solid",width:"1px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],bgPattern:"pattern001",patternOpacity:.25,effect:"effect003",slbbAnim:"border-color",animColor:"#ff0",clickEffect:"effect005",clickEffectColor:"#ffff99"}},{name:"Button013",attributes:{content:"Buy now",textColor:"#f00",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},border:{color:"#ffa8a8",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"jelly",iconName:"001_cart",iconPaths:Z,iconColor:["#f00"],effect:"No Effect",slbbAnim:"border-color",animColor:"#f00",clickEffect:"effect005",clickEffectColor:"#ffbebe"}},{name:"Button014",attributes:{content:"Buy now",textColor:"#00f",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},border:{color:"#a8a8ff",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"jelly",iconName:"001_cart",iconPaths:Z,iconColor:["#00f"],effect:"No Effect",slbbAnim:"border-color",animColor:"#00f",clickEffect:"effect005",clickEffectColor:"#bebeff"}},{name:"Button015",attributes:{content:"Buy now",textColor:"#000",bgColor:"#99ff99",uppercase:!0,bgShadow:"0px 0px 2px #202020",blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},hasIcon:!0,iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect007",slbbAnim:"light1",clickEffect:"effect004",clickEffectColor:"linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)"}},{name:"Button016",attributes:{content:"Buy now",textColor:"#000",bgColor:"#99ff99",uppercase:!0,bgShadow:"0px 0px 2px #202020",blockPadding:{top:"10px",right:"30px",bottom:"10px",left:"30px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},hasIcon:!0,iconPos:"right",iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern003",patternOpacity:.3,effect:"effect007",slbbAnim:"light1",clickEffect:"effect004",clickEffectColor:"linear-gradient(#ed3908 0%, #ff6e02 19%, #ffb601 31%, #ff0 50%, #ffb600 61%, #ff6d00 81%, #f65304 92%, #ed3908 100%)"}},{name:"Button017",attributes:{content:"Add to cart",textColor:"#f00",bgColor:"#fff",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#f00",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconShape:"shape001",iconShapeColor:"#f00",iconGap:10,iconAnimation:"fill-and-shape-color",iconAnimColor:"#f00",iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],slbbAnim:"slide-left",animColor:"#f00",clickEffect:"effect003",clickEffectColor:"#FFCCCC",animColorTwo:"#fff",animSTColor:"#fff",iconAnimColorTwo:"#fff"}},{name:"Button018",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#f00",uppercase:!0,hasBgShadow:!1,blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},border:{color:"#f00",style:"solid",width:"2px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"fill-and-shape-color",iconShape:"shape001",iconShapeColor:"#fff",iconGap:10,iconAnimColor:"#fff",iconName:"001_cart",iconPaths:Z,iconColor:["#f00"],slbbAnim:"slide-left",animColor:"#fff",clickEffect:"effect003",clickEffectColor:"#ff6666",animColorTwo:"#f00",animSTColor:"#f00",iconAnimColorTwo:"#f00"}},{name:"Button019",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#ff8000",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconAnimation:"swing",iconName:"001_cart",iconPaths:Z,iconColor:["#fff"],effect:"effect005",slbbAnim:"stretch-horizontal",animColor:"#666666",clickEffect:"effect001"}},{name:"Button020",attributes:{content:"Add to cart",textColor:"#fff",bgColor:"#7f00ff",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconAnimation:"swing",iconPaths:Z,iconColor:["#fff"],effect:"effect005",slbbAnim:"stretch-vertical",animColor:"#a245ff",clickEffect:"effect001"}},{name:"Button021",attributes:{content:"Add to cart",fontSize:"18px",textColor:"#000",bgColor:"#ffff00",uppercase:!0,bgShadow:"0px 1px 1px #000000CF",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#000"],effect:"effect002",slbbAnim:"stretch-corner1",animColor:"#FF8000",clickEffect:"effect002",hasSubText:!0,subText:"for only 8.99 USD!"}},{name:"Button022",attributes:{content:"Add to cart",fontSize:"18px",textColor:"#000",bgColor:"#FF3333",uppercase:!0,bgShadow:"0px 1px 2px #000",blockPadding:{top:"13px",right:"30px",bottom:"13px",left:"30px"},borderRadius:{top:"5px",right:"5px",bottom:"5px",left:"5px"},hasIcon:!0,iconName:"001_cart",iconPaths:Z,iconColor:["#000"],bgPattern:"pattern002",patternOpacity:.5,effect:"effect005",slbbAnim:"stretch-corner2",animColor:"#FFCCCC",clickEffect:"effect002",hasSubText:!0,subText:"for only 8.99 USD!"}}],gt=e.p+"images/flat-color-icons.62e70cdd.webp",xt=e.p+"images/linecons-icons.a13e26fe.webp",ht=e.p+"images/filled-icon-set-icons.f4d4703d.webp",kt=e.p+"images/genericons-neue-icons.a87844ff.webp",yt=e.p+"images/font-awesome-regular-icons.66ac7e8a.webp",jt=e.p+"images/font-awesome-brands-icons.3ad6d184.webp",Ct=e.p+"images/font-awesome-solid-icons.ce730a75.webp",Mt=e.p+"images/material-design-icons.ecdb2a6d.webp",wt=e.p+"images/meteocons-weather-icons.d5aa72b7.webp",vt={hasBg:!1,bgShape:"rect",bgShapeVal:"",rotateBg:0,rotate:0,flipHorizontal:!1,flipVertical:!1,color:["#5c5c5c"],strokeColor:["#000"],strokeWidth:[0],hasShadow:!1,shadow:"drop-shadow(2px 2px 1px #000)",hasBgShadow:!1,bgShadow:"drop-shadow(0px 3px 2px #000)",hasBaseShadow:!1,baseShadowWidth:70,baseShadowHeight:12,baseShadowTop:96,svgFilter:"none",bgColor:"#0f0",bgStrokeColor:"#000",bgStrokeWidth:1,padding:10,bgRadius:10,animation:"No Animation"},St=(o,e)=>{const l=[(0,t.__)("one","safelayout-brilliant-buttons"),(0,t.__)("two","safelayout-brilliant-buttons"),(0,t.__)("three","safelayout-brilliant-buttons"),(0,t.__)("four","safelayout-brilliant-buttons"),(0,t.__)("five","safelayout-brilliant-buttons")];return e<=1?"":" "+l[o]},Nt=t=>{let o=null;return SLEIiconArray.some(e=>o=e.find(({name:o})=>o===t)),o||null},At=t=>{let o="";return SLEIiconArray.some(e=>o=e[0].libCode===t.name.substring(0,3)&&" ("+e[0].libName+")"),o||" (unknown)"},It=t=>{let o=null;return SLEIiconArray.some(e=>o=e[0].libCode===t.name.substring(0,3)&&e[0]?.attributes),o||[]},_t=t=>{let o=null;return SLEIiconArray.some(e=>o=e[0].libCode===t&&e[0]?.class),o||""},Tt=t=>(0,x.jsx)(a.Dropdown,{popoverProps:{placement:t?.position?.pos||"left-start",offset:t?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",style:{margin:"16px"},renderToggle:Lt(t),renderContent:()=>(0,x.jsx)(a.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",children:(0,x.jsx)(Dt,{...t})})})})}),Lt=o=>({onToggle:e,isOpen:l})=>{const{name:n,paths:i,color:s,label:r,disabled:b}=o,c={onClick:e,className:g()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":l}),"aria-expanded":l};let d=Nt(n);return null===d&&(d={name:n,paths:i,attributes:{color:s}}),((t,o)=>{let e={...vt,color:["#3535ff"]||["#5c5c5c"],...It(o),...o?.attributes,size:64,blockId:"sl-bb-button-block-selected"+o.name?.replaceAll(" ","_")},l=e?.effect,n=l?V(l):null;n?.attributes&&"999"!==o.name.substring(0,3)&&(e={...e,...n?.attributes}),t.attributes=e,t.effectObj=n})({},d),(0,x.jsx)(a.Button,{...c,disabled:b,className:"sl-bb-button-block-icon-select-btn",title:(0,t.__)("Select or replace the icon","safelayout-brilliant-buttons"),children:(0,x.jsxs)(a.__experimentalHStack,{justify:"flex-start",children:[(0,x.jsx)("div",{className:"sl-bb-button-block-panel",children:(0,x.jsx)(v,{icon:d})}),(0,x.jsx)(a.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:r})]})})},zt=[{libName:"Flat color icons - Icons8 (312) (PRO)",image:gt},{libName:"Linecons (48) (PRO)",image:xt},{libName:"Filled icon set - Icons8 (200) (PRO)",image:ht},{libName:"Genericons Neue (103) (PRO)",image:kt},{libName:"Font Awesome regular (163) (PRO)",image:yt},{libName:"Font Awesome brands (467) (PRO)",image:jt},{libName:"Font Awesome solid (1390) (PRO)",image:Ct},{libName:"Material Design (1261) (PRO)",image:Mt},{libName:"Meteocons - weather (47) (PRO)",image:wt}];function Dt(o){const{name:e,onIconClick:l}=o;let i,s=[];const[r,b]=(0,n.useState)(""),[c,d]=(0,n.useState)((t=>{let o=null;return SLEIiconArray.some(e=>o=e.find(({name:o})=>o===t)&&e),o?o[0].libName:SLEIiconArray[0][0].libName})(e));if(r)s.push(null),SLEIiconArray.map(t=>s=s.concat(t.filter(({name:t})=>t?.substring(4)?.toLowerCase().includes(r.toLowerCase()))));else if(i=zt.find(({libName:t})=>t===c),i)s=[];else{let t=-1;SLEIiconArray.some((o,e)=>t=o[0].libName===c&&e+1),s=-1!=t?SLEIiconArray[t-1]:SLEIiconArray[0]}return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.SearchControl,{value:r,style:{marginBottom:"7px"},onChange:b,placeholder:(0,t.__)("Search icon","safelayout-brilliant-buttons")}),(0,x.jsxs)(a.SelectControl,{value:c,onChange:d,__nextHasNoMarginBottom:!0,children:[SLEIiconArray.map(t=>{const o=t[0].libName+" ("+(t.length-1)+")";return(0,x.jsx)("option",{value:t[0].libName,children:o})}),zt.map(t=>(0,x.jsx)("option",{value:t.libName,className:"sl-bb-button-block-pro-menu",children:t.libName}))]}),(0,x.jsx)(Pt,{icons:s,name:e,onIconClick:l,selectedLibrary:c,searchVal:r,packsImageShow:i}),(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsx)(a.Disabled,{children:(0,x.jsxs)(a.Button,{variant:"secondary",style:{display:"inline-block",width:"130px",marginTop:"15px",position:"relative"},children:[(0,t.__)("Add Custom SVG","safelayout-brilliant-buttons"),(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"})]})})})]})}const Et=t=>{const o=document.getElementById(t);o&&(o.classList.remove("sl-bb-list-selected"),o.removeAttribute("id"))},Pt=(0,n.memo)(function({icons:t,name:o,onIconClick:e,selectedLibrary:l,searchVal:n,packsImageShow:a}){return Et("sl-bb-list-selected-icon"),(0,x.jsxs)("div",{className:"sl-bb-button-block-icons-container",children:[t?.map((t,l)=>{if(l){let a=t.name.substring(0,3);return a>"700"?null:(0,x.jsxs)("div",{id:t.name===o?"sl-bb-list-selected-icon":null,className:"sl-bb-button-block-list"+(t.name===o?" sl-bb-list-selected":""),onClick:e,title:t.name.substring(4)+(n?At(t):""),"data-icon-name":t.name,children:[a<="400"&&(0,x.jsx)("span",{className:_t(a),children:String.fromCharCode(59392+t.c)}),a>"400"&&a<="700"&&(0,x.jsx)(v,{icon:t})]},l)}}),a&&(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:a.image})]})},(t,o)=>t.searchVal===o.searchVal&&t.selectedLibrary===o.selectedLibrary),Ot=(window.wp.data,e.p+"images/button-effects1.f33ddb54.png"),Bt=e.p+"images/button-effects2.100721b3.png",Rt=e.p+"images/button-pattern.5e561e8c.png",Yt=e.p+"images/button-shape.88b038fc.png";let Ut=[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}];const Gt=[{name:"Small",size:"13px",slug:"small"},{name:"Medium",size:"16px",slug:"medium"},{name:"Large",size:"24px",slug:"large"},{name:"Extre Large",size:"36px",slug:"extre large"}];function Xt(t,o){return{[`border${t}Width`]:o?.width||null,[`border${t}Color`]:o?.color||null,[`border${t}Style`]:o?.style||null}}function Ht(t,o){t||(t="1px 1px 1px #fff");let e=t.split("px ")[o];return o<3?parseFloat(e):e}function Zt(t,o,e){let l=t.split("px ");return l[o]=e,l.join("px ")}function Wt(t,o,e){return o&&(t=o?.top?{...t,...Xt("Top",o?.top),...Xt("Right",o?.right),...Xt("Bottom",o?.bottom),...Xt("Left",o?.left)}:{...t,...Xt("",o)}),e&&(t={...t,borderTopLeftRadius:e?.top||null,borderTopRightRadius:e?.right||null,borderBottomRightRadius:e?.bottom||null,borderBottomLeftRadius:e?.left||null}),t}const Qt={content:"Button",textColor:"#3e3eff",hasBg:!0,bgColor:"#33FF33",textAlign:"center",uppercase:!0,fontSize:"18px",lineHeight:"1.4",letterSpacing:"0px",width:0,hasBgShadow:!1,bgShadow:"1px 1px 2px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #000",blockMargin:{},blockPadding:{},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:[],iconColor:[],iconStrokeColor:[],iconStrokeWidth:[],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",bgPattern:"No Pattern",patternOpacity:.2,slbbAnim:"No Animation",animColor:"#fff",svgEffect:"",rotate:0,clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",animColorTwo:"#f00"},Ft=t=>tt.find(({name:o})=>o===t)||null,$t=t=>ot.find(({name:o})=>o===t)||null,Vt=(0,n.memo)(function({currentEffect:o,onIconClick:e}){return Et("sl-bb-list-selected-effect"),(0,x.jsxs)("div",{className:"sl-bb-button-block-effects-container",style:{height:"207px"},children:[q.map((t,l)=>{const n=t.name,a={...Qt,...t?.attributes,...t?.attribHelp,blockId:"sl-bb-button-block-effect-list-"+l,blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:n};return(0,x.jsx)("div",{style:{display:"inline-block",height:"94px",padding:"28px 7px",margin:"3px"},id:n===o?"sl-bb-list-selected-effect":null,className:"sl-bb-button-block-effectlist safelayout-bb-button-block"+(n===o?" sl-bb-list-selected":""),onClick:e,title:n,"data-effect-name":n,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1,clickEff:!0})},l)}),(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,t.__)("Preview of Pro Effects.","safelayout-brilliant-buttons")}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:Ot}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:Bt})]})},(t,o)=>t.currentEffect===o.currentEffect),Jt=(0,n.memo)(function({currentAnim:t,onIconClick:o}){Et("sl-bb-list-selected-anim");const e={...Qt,fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007"};return(0,x.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"169px"},children:tt.map((l,n)=>{const a={...e,blockId:"sl-bb-button-block-anim-list-"+n,slbbAnim:l?.name};return"border-color"!==l?.name&&"text-and-border-color"!==l?.name||(a.hasBgShadow=!1,a.animColor="#d63638"),"text-color"===l?.name&&(a.animColor="#d63638"),"swap-color"===l?.name&&(a.hasTextShadow=!1),(0,x.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px"},id:l?.name===t?"sl-bb-list-selected-anim":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(l?.parent||"")+(l?.name===t?" sl-bb-list-selected":""),onClick:o,title:l?.name?.replaceAll("-"," "),"data-anim-name":l?.name,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1})},n)})})},(t,o)=>t.currentAnim===o.currentAnim),qt=(0,n.memo)(function({currentPattern:o,onIconClick:e}){return Et("sl-bb-list-selected-pattern"),(0,x.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"155px"},children:[at.map((t,l)=>(0,x.jsx)("div",{style:{display:"inline-block",height:"71px",padding:"7px"},id:t===o?"sl-bb-list-selected-pattern":null,className:"sl-bb-button-block-animlist"+(t===o?" sl-bb-list-selected":""),onClick:e,title:t,"data-pattern-name":t,children:(0,x.jsx)("div",{className:"sl-bb-button-block-pattern sl-bb-button-"+t.toLowerCase().replace(" ","-"),style:{border:"1px solid #ffc3c3",height:"100%",width:"100%",opacity:"0.8",zIndex:"1"}})},l)),(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,t.__)("Preview of Pro Patterns.","safelayout-brilliant-buttons")}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:Rt})]})},(t,o)=>t.currentPattern===o.currentPattern),Kt=(0,n.memo)(function({currentShape:o,onIconClick:e,disabled:l}){Et("sl-bb-list-selected-shape");const n={...Qt,bgColor:"#34dd34",fontSize:"13px",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"5px",right:"10px",bottom:"5px",left:"10px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007",hasIcon:!0,iconGap:9,iconPaths:Ut,iconColor:["#fff"]};return(0,x.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"114px",width:"235px",overflow:l?"hidden":"auto"},children:[et.map((t,l)=>{const a={...n,blockId:"sl-bb-button-block-shape-list-"+l,iconShape:t.name};return(0,x.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:t.name===o?"sl-bb-list-selected-shape":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(t.name===o?" sl-bb-list-selected":""),onClick:e,title:t.name?.replaceAll("-"," "),"data-shape-name":t.name,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1})},l)}),(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,t.__)("Preview of Pro Shapes.","safelayout-brilliant-buttons")}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:Yt}),l&&(0,x.jsx)("span",{className:"sl-bb-button-block-list-disabled"})]})},(t,o)=>t.currentShape===o.currentShape&&t.disabled===o.disabled),to=(0,n.memo)(function({currentAnim:t,onIconClick:o,disabled:e}){Et("sl-bb-list-selected-icon-anim");const l={...Qt,hasIcon:!0,iconColor:["#00f"],bgColor:"#34dd34",fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"5px",bottom:"3px",left:"5px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007",iconAnimColor:"#fff",iconAnimColorTwo:"#f00"};return(0,x.jsxs)("div",{className:"sl-bb-button-block-anim-container",style:{height:"167px",width:"235px",overflow:e?"hidden":"auto"},children:[ot.map((e,n)=>{const a={...l,blockId:"sl-bb-button-block-icon-anim-list-"+n,iconAnimation:e?.name,iconPaths:e?.iconPaths||Ut};return"shape-color"!==e?.name&&"fill-and-shape-color"!==e?.name||(a.iconShape="shape002",a.iconShapeColor="#008eff"),(0,x.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:e?.name===t?"sl-bb-list-selected-icon-anim":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(e?.name===t?" sl-bb-list-selected":""),onClick:o,title:e?.name?.replaceAll("-"," "),"data-icon-anim-name":e?.name,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1})},n)}),e&&(0,x.jsx)("span",{className:"sl-bb-button-block-list-disabled"})]})},(t,o)=>t.currentAnim===o.currentAnim&&t.disabled===o.disabled),oo=(0,n.memo)(function({currentAnim:t,onIconClick:o}){Et("sl-bb-list-selected-click-effect");const e={...Qt,bgColor:"#34dd34",fontSize:"13px",hasBgShadow:!0,bgShadow:"0px 0px 2px #202020",hasTextShadow:!0,textShadow:"1px 1px 1px #fff",blockPadding:{top:"3px",right:"10px",bottom:"3px",left:"10px"},borderRadius:{top:"2px",right:"2px",bottom:"2px",left:"2px"},blockMargin:{top:"0",right:"0",bottom:"0",left:"0"},effect:"effect007"};return(0,x.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"114px",width:"235px"},children:lt.map((l,n)=>{const a={...e,blockId:"sl-bb-button-block-click-effect-list-"+n,clickEffect:l};return(0,x.jsx)("div",{style:{display:"inline-block",height:"50px",padding:"13px 0",textAlign:"center",margin:"2px",width:"102px"},id:l===t?"sl-bb-list-selected-click-effect":null,className:"sl-bb-button-block-animlist safelayout-bb-button-block "+(l===t?" sl-bb-list-selected":""),onClick:o,title:l?.replaceAll("-"," "),"data-click-name":l,children:(0,x.jsx)(lo,{attributes:a,isInEditor:!1,clickEff:!0})},n)})})},(t,o)=>t.currentAnim===o.currentAnim),eo=(0,n.memo)(function({currentLoading:t,onIconClick:o}){return Et("sl-bb-list-selected-loading-effect"),(0,x.jsx)("div",{className:"sl-bb-button-block-anim-container",style:{height:"110px",width:"235px",fontSize:"20px"},children:nt.map((e,l)=>(0,x.jsx)("div",{style:{display:"inline-block",height:"48px",padding:"13px 0",textAlign:"center",margin:"2px",width:"48px"},id:e===t?"sl-bb-list-selected-loading-effect":null,className:"sl-bb-button-block-animlist"+(e===t?" sl-bb-list-selected":""),onClick:o,title:e,"data-loading-name":e,children:(0,x.jsx)("span",{style:{display:"inline-block",backgroundColor:"No Effect"===e?"transparent":"#006a00"},className:`sl-bb-button-block-loading sl-bb-button-block-loading-${e?.replaceAll(" ","-")}`})},l))})},(t,o)=>t.currentLoading===o.currentLoading);function lo({attributes:e,setAttributes:l,isInEditor:n=!0,clickEff:a,others:i}){const{blockId:s,textAlign:r,uppercase:b,fontSize:c,lineHeight:d,letterSpacing:u,width:f,minWidth:m,textColor:p,textColorSlug:k,hasBg:y,bgColor:j,bgColorSlug:C,border:M,borderRadius:v,hasIcon:A,iconShape:I,iconShapeColor:_,iconShapeColorSlug:T,iconAnimation:L,iconAnimColor:z,iconAnimColorSlug:D,iconPos:E,iconGap:P,content:O,hasBgShadow:B,bgShadow:R,hasTextShadow:Y,textShadow:U,blockMargin:G,blockPadding:X,label:H,title:Z,linkUrl:W,linkRel:Q,linkTarget:F,bgPattern:$,patternOpacity:V,effect:J,svgEffect:q,rotate:K,animation:tt,slbbAnim:ot,animColor:lt,animColorSlug:nt,clickEffect:at,clickEffectColor:it,clickEffectColorSlug:st,hasLoading:rt,loadingText:bt,loadingEffect:ct,animColorTwo:dt,animColorTwoSlug:ut,hasSubText:ft,subText:mt,subTextAlign:pt,subTextFontSize:gt,animSTColor:xt,animSTColorSlug:ht,iconAnimColorTwo:kt,iconAnimColorTwoSlug:yt,elementStyle:jt}=e,Ct=Number(J?.substring(6)),Mt=""!=q&&Ct>=31&&Ct<=41,wt=Ct>=36&&Ct<=41,vt=0!=K&&wt,St="effect001"===at?"translateY(1px)":"effect002"===at?"scale(0.985)":"",Nt="effect001"===at||"effect002"===at?vt?`${St} rotate(${K}deg)`:St:null,At=D&&""!=D?`var( --wp--preset--${D}, ${z})`:z,It=h(z)?`url(#animGrad${s})`:At,_t=(Et=I,et.find(({name:t})=>t===Et)||null),Tt={__html:q},Lt={textAlign:r||"center"},zt=i?.oldAnim?tt:ot,Dt="effect009"!=J?Wt(null,M,v):null;var Et;const Pt=Ft(zt);let Ot={textAlign:pt||"left",textShadow:"none",textTransform:"none",fontWeight:"500",fontStyle:"normal",fontSize:gt||null},Bt={...w(null,G,X),textTransform:b?"uppercase":null,"--sl-bb-button-text-color":k&&""!=k?`var( --wp--preset--${k}, ${p})`:p,"--sl-bb-button-background-color":y?C&&""!=C?`var( --wp--preset--${C}, ${j})`:j:"none","--sl-bb-button-anim-color":zt&&"No Animation"!=zt?nt&&""!=nt?`var( --wp--preset--${nt}, ${lt})`:lt:null,"--sl-bb-button-anim-two-color":zt&&"No Animation"!=zt&&Pt?.controlTwo?ut&&""!=ut?`var( --wp--preset--${ut}, ${dt})`:dt:null,"--sl-bb-button-pattern-opacity":String(V),"--sl-bb-button-icon-shape-color":"No Shape"!=I?T&&""!=T?`var( --wp--preset--${T}, ${_})`:_:null,"--sl-bb-button-p-top":_t?.padding?X?.top||"5px":null,"--sl-bb-button-p-right":_t?.padding?X?.right||"10px":null,"--sl-bb-button-p-bottom":_t?.padding?X?.bottom||"5px":null,"--sl-bb-button-p-left":_t?.padding?X?.left||"10px":null,"--sl-bb-button-click-effect-color":"effect003"===at||"effect004"===at||"effect005"===at?st&&""!=st?`var( --wp--preset--${st}, ${it})`:it:null,"--sl-bb-button-icon-anim-color":"shape-color"===L?At:"fill-color"===L||"fill-and-shape-color"===L?It:null,"--sl-bb-button-icon-anim-two-color":"fill-and-shape-color"===L?yt&&""!=yt?`var( --wp--preset--${yt}, ${kt})`:kt:null,"--sl-bb-button-anim-slide-text-color":xt?ht&&""!=ht?`var( --wp--preset--${ht}, ${xt})`:xt:null,boxShadow:B?R:null,textShadow:Y?U:null,textDecoration:"auto",cursor:n?null:"pointer",userSelect:n?null:"none",fontSize:"16px"!=c?c:null,lineHeight:"1.5"!=d?d:null,letterSpacing:"0px"!=u?u:null,width:0!=f?f+"%":null,minWidth:m||null};Bt=Wt(Bt,"effect009"==J?M:null,v);const Rt=zt&&"No Animation"!=zt?`sl-bb-button-block-animation-${zt}`:null,Yt=L&&"No Animation"!=L?`sl-bb-button-block-animation-icon-${L}`:null,Ut="No Effect"!=at?`sl-bb-button-block-click-${at}`:null,Gt=B&&Ct>=36&&Ct<=41?`drop-shadow(${R})`:null,Xt="No Effect"!=ct||rt?"sl-bb-button-block-has-loading":null,Ht=e=>(0,x.jsx)(o.RichText,{tagName:"span",value:O,allowedFormats:["core/bold","core/italic","core/non-breaking-space","core/strikethrough","core/subscript","core/superscript","core/text-color","core/underline"],onChange:t=>l({content:t}),placeholder:(0,t.__)("My Button","safelayout-brilliant-buttons"),className:e,style:Lt}),Zt=ft?(0,x.jsxs)("span",{className:"sl-bb-button-block-content",style:Lt,children:[Ht(),(0,x.jsx)("span",{style:Ot,className:g()("sl-bb-button-block-sub-text"),children:mt})]}):Ht("sl-bb-button-block-content"),Qt=ft?(0,x.jsxs)("span",{className:"sl-bb-button-block-content",style:Lt,children:[(0,x.jsx)(o.RichText.Content,{tagName:"span",value:O,style:Lt}),(0,x.jsx)("span",{style:Ot,className:g()("sl-bb-button-block-sub-text"),children:mt})]}):(0,x.jsx)(o.RichText.Content,{tagName:"span",value:O,style:Lt,className:"sl-bb-button-block-content"});let $t=null;!n&&!a||"effect003"!==at&&"effect004"!==at||($t=function(t){if(!(0!=t.button||n&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,e=o.getBoundingClientRect(),l=t.clientX-(e.left+e.width/2),a=t.clientY-(e.top+e.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(l,a)),b=o.getElementsByClassName("sl-bb-button-click")[0];b&&(b.classList.remove("sl-bb-button-click-anim"),b.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),b.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),b.style.setProperty("--sl-bb-button-click-x",r.x+"px"),b.style.setProperty("--sl-bb-button-click-y",r.y+"px"),b.offsetWidth,b.classList.add("sl-bb-button-click-anim"))}}),(n||a)&&"effect005"===at&&($t=function(t){if(!(0!=t.button||n&&t.target.classList.contains("sl-bb-button-block-content"))){var o=t.currentTarget,e=o.getBoundingClientRect(),l=t.clientX-(e.left+e.width/2),a=t.clientY-(e.top+e.height/2),i=new DOMMatrix(getComputedStyle(o).transform),s=new DOMMatrix(getComputedStyle(o.parentNode).transform);s.multiplySelf(i),s.invertSelf();var r=s.transformPoint(new DOMPoint(l,a)),b=Math.max(o.offsetWidth,o.offsetHeight),c=o.getElementsByClassName("sl-bb-button-click")[0];c&&(c.style.setProperty("width",2*b+"px"),c.style.setProperty("height",2*b+"px"),c.style.setProperty("--sl-bb-button-click-center-x",o.offsetWidth/2+"px"),c.style.setProperty("--sl-bb-button-click-center-y",o.offsetHeight/2+"px"),c.style.setProperty("--sl-bb-button-click-x",r.x-b+"px"),c.style.setProperty("--sl-bb-button-click-y",r.y-b+"px"),c.classList.remove("sl-bb-button-click-anim"),c.offsetWidth,c.classList.add("sl-bb-button-click-anim"))}});const Vt="fill-color"===L||"fill-and-shape-color"===L?z:"#fff";return(0,x.jsxs)("div",{className:g()(Pt?.parent,Ut),style:{filter:Gt,"--sl-bb-button-click-effect-transform":Nt,width:0!=f?"100%":null,transform:vt?`rotate(${K}deg)`:null},children:[(0,x.jsxs)("a",{style:Bt,href:!n&&W||null,target:!n&&F||null,rel:!n&&Q||null,"aria-label":H||null,title:Z||null,className:g()(`sl-bb-button-block-${J?.toLowerCase().replace(" ","-")}`,Rt,Yt,Xt),onMouseDown:$t,children:[(0,x.jsxs)("span",{className:"sl-bb-button-effect-parent",style:Dt,children:[Pt?.child>=1&&(0,x.jsx)("span",{className:"sl-bb-button-anim1"}),Pt?.child>=2&&(0,x.jsx)("span",{className:"sl-bb-button-anim2"}),"No Pattern"!=$&&(0,x.jsx)("span",{className:g()("sl-bb-button-block-pattern",`sl-bb-button-${$}`),style:{position:"absolute"}}),"No Effect"!=J&&"effect001"!=J&&"effect003"!=J&&!Mt&&(0,x.jsx)("span",{className:"sl-bb-button-effect"})]}),A?"left"===E?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("span",{className:g()("sl-bb-button-block-icon",_t?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=I&&(0,x.jsx)("span",{className:g()("sl-bb-button-icon-shape",`sl-bb-button-icon-${I}`)}),i?.oldSVG&&(0,x.jsx)(N,{attributes:e,others:i}),!i?.oldSVG&&(0,x.jsx)(S,{attributes:{...e,iconAnimColor:Vt},others:i})]}),(i?.d2||""!=O.trim())&&(0,x.jsx)("span",{style:{display:"inline-block",width:P+"px"}}),n?Zt:(i?.d2||""!=O.trim())&&Qt]}):(0,x.jsxs)(x.Fragment,{children:[n?Zt:(i?.d2||""!=O.trim())&&Qt,(i?.d2||""!=O.trim())&&(0,x.jsx)("span",{style:{display:"inline-block",width:P+"px"}}),(0,x.jsxs)("span",{className:g()("sl-bb-button-block-icon",_t?.height?"sl-bb-button-block-icon-height":""),children:["No Shape"!=I&&(0,x.jsx)("span",{className:g()("sl-bb-button-icon-shape",`sl-bb-button-icon-${I}-right`)}),i?.oldSVG&&(0,x.jsx)(N,{attributes:e,others:i}),!i?.oldSVG&&(0,x.jsx)(S,{attributes:{...e,iconAnimColor:Vt},others:i})]})]}):(0,x.jsx)(x.Fragment,{children:n?Zt:Qt}),("effect003"===at||"effect004"===at)&&(0,x.jsx)("span",{className:"sl-bb-button-click"}),"effect005"===at&&(0,x.jsx)("span",{className:"sl-bb-button-click-parent",children:(0,x.jsx)("span",{className:"sl-bb-button-click"})}),!wt&&ct&&"No Effect"!==ct&&(0,x.jsx)("span",{style:{display:"none"},className:g()("sl-bb-button-block-loading",`sl-bb-button-block-loading-${ct}`)}),!wt&&rt&&(0,x.jsx)("span",{className:"sl-bb-button-block-loading-text",children:bt})]}),Mt&&(0,x.jsx)("svg",{width:"0",height:"0",xmlns:"http://www.w3.org/2000/svg",dangerouslySetInnerHTML:Tt,class:"sl-bb-button-block-svg-effect"}),!n&&jt&&""!=jt&&(0,x.jsx)("style",{type:"text/css","data-no-optimize":"1","data-no-minify":"1",children:jt})]})}const no=e.p+"images/library-button-image1.ae24fc9c.webp",ao=e.p+"images/library-button-image2.0534463a.webp",io=t=>(0,x.jsx)(a.Dropdown,{popoverProps:{placement:t?.position?.pos||"left-start",offset:t?.position?.offset||40},className:"block-editor-tools-panel-color-gradient-settings__dropdown",style:{margin:t?.style?.margin||"10px 35px",textAlign:"center"},focusOnMount:!0,renderToggle:so(t),renderContent:o=>(0,x.jsx)(a.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,x.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,x.jsx)("div",{className:"block-editor-color-gradient-control__panel",style:{height:"440px",width:"710px",paddingTop:"5px"},children:(0,x.jsx)(ro,{...t,onToggle:o.onToggle,height:"380px"})})})})}),so=o=>({onToggle:e,isOpen:l})=>{const{disabled:n}=o,i={onClick:e,className:g()("sl-bb-button-library-btn",{"is-open":l}),"aria-expanded":l};return(0,x.jsx)(a.Button,{...i,disabled:n,title:(0,t.__)("Pick a Ready-Made Button","safelayout-brilliant-buttons"),children:(0,x.jsx)("div",{children:(0,t.__)("Browse Button Presets","safelayout-brilliant-buttons")})})},ro=(0,n.memo)(function({onIconClick:o,onToggle:e,height:l}){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",style:{margin:"0 0 5px 0"},children:(0,t.__)("Pick a Ready-Made button—you can customize the text, link and design anytime.","safelayout-brilliant-buttons")}),(0,x.jsxs)("div",{className:"sl-bb-button-block-icons-container",style:{height:l,marginTop:"0"},children:[pt?.map((t,l)=>{const n={...mt,...t.attributes,blockId:"sl-bb-button-block-library-list-"+l};return(0,x.jsx)("div",{className:"sl-bb-button-block-effectlist safelayout-bb-button-block sl-bb-library",onClick:t=>{o(t),e()},title:t.name,"data-button-lib-name":t.name,children:(0,x.jsx)(lo,{attributes:n,isInEditor:!1,clickEff:!0})},l)}),(0,x.jsx)("div",{className:"sl-bb-lib-menu-msg",children:(0,t.__)("Preview of Pro Version Buttons.","safelayout-brilliant-buttons")}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:no}),(0,x.jsx)("img",{className:"sl-bb-lib-menu-img",src:ao})]})]})}),bo={elementStyle:"",content:"My Button",textColor:"#00f",hasBg:!0,bgColor:"linear-gradient(#ffc559 0%, #ffc559 44%, #ff9730 100%)",textAlign:"center",uppercase:!1,fontSize:"16px",lineHeight:"1.5",letterSpacing:"0px",width:0,minWidth:void 0,hasBgShadow:!0,bgShadow:"0px 1px 3px #000",hasTextShadow:!1,textShadow:"1px 1px 2px #fff",blockMargin:{},blockPadding:{top:"5px",right:"10px",bottom:"5px",left:"10px"},border:{},borderRadius:{},hasIcon:!1,iconShape:"No Shape",iconShapeColor:"#3131ff",iconAnimation:"No Animation",iconAnimColor:"#fff",iconPos:"left",iconGap:6,iconName:"000_next",iconPaths:[{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}],iconColor:["#00f"],iconStrokeColor:["#000"],iconStrokeWidth:[0],label:"",title:"",linkUrl:"",linkRel:"",linkTarget:"",bgPattern:"No Pattern",patternOpacity:.2,effect:"No Effect",svgEffect:"",rotate:0,slbbAnim:"slide-top",animColor:"linear-gradient(#fcff7d 0%, #ffd27d 46%, #ffac59 100%)",clickEffect:"effect001",clickEffectColor:"#1da1f2",hasLoading:!1,loadingText:"Please wait ...",loadingEffect:"No Effect",blockId:"",classes:"",top:0,bold:!1,italic:!1,strikethrough:!1,animColorTwo:"#f00",hasSubText:!1,subText:"More Text",subTextAlign:"center",subTextFontSize:"11px",animSTColor:void 0,iconAnimColorTwo:"#f00"};SLBBmceButtons.button=(t,o)=>{const e=(0,l.createRoot)(t),n=o?.effect,a=o?.loadingEffect,i=o?.clickEffect,s=o?.iconShape,r=o?.bgPattern,b=o?.iconAnimation,c=o?.slbbAnim;let d="";d+=n&&"No Effect"!=n&&"effect001"!=n&&"effect003"!=n?`/*|${n}*/`+it[Number(n?.substring(6))]+`/*${n}|*/`:"",d+=a&&"No Effect"!=a?`/*|loading${a}*/`+rt[Number(a?.substring(6))]+`/*loading${a}|*/`:"",d+=i&&"No Effect"!=i&&"effect001"!=i&&"effect002"!=i?`/*|click${i}*/`+bt[Number(i?.substring(6))]+`/*click${i}|*/`:"",d+=s&&"No Shape"!=s?`/*|${s}*/`+ct[Number(s?.substring(5))]+`/*${s}|*/`:"",d+=r&&"No Pattern"!=r?`/*|${r}*/`+dt[Number(r?.substring(7))]+`/*${r}|*/`:"",d+=b&&"No Animation"!=b&&ft[b]?`/*|anim${b}*/`+ft[b]+`/*anim${b}|*/`:"",d+=c&&"No Animation"!=c&&ft[c]&&b!=c?`/*|anim${c}*/`+ft[c]+`/*anim${c}|*/`:"",(0,l.flushSync)(()=>{e.render((0,x.jsx)(lo,{attributes:{...o,elementStyle:d},isInEditor:!1}))})},SLBBmceButtons.menu=(t,o,e)=>{(0,l.createRoot)(t).render((0,x.jsx)(co,{att:o,others:e}))};const co=t=>{let{att:o,others:e}=t;var l;return o={...bo,...o},o?.animation&&(o.slbbAnim=o.animation,o.animation=void 0),o.blockId=(l=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)})()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l(),SLBBmceButtons.att=o,(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(uo,{attributes:o,others:e})})};function uo(e){const{attributes:l,others:i}=e,{content:s,textAlign:p,uppercase:g,fontSize:h,lineHeight:k,letterSpacing:y,width:j,minWidth:C,textColor:M,textColorSlug:w,hasBg:v,bgColor:S,bgColorSlug:N,border:A,borderRadius:I,hasBgShadow:_,bgShadow:T,hasTextShadow:L,textShadow:z,blockPadding:D,blockMargin:E,label:P,title:O,linkUrl:B,linkRel:Y,linkTarget:U,bgPattern:G,patternOpacity:X,effect:H,rotate:Z,slbbAnim:W,animColor:Q,animColorSlug:F,hasIcon:$,iconShape:J,iconShapeColor:q,iconShapeColorSlug:K,iconAnimation:tt,iconAnimColor:ot,iconAnimColorSlug:et,iconPos:lt,iconGap:nt,iconName:at,iconPaths:it,iconColor:st,iconColorSlug:rt,iconStrokeColor:bt,iconStrokeColorSlug:ct,iconStrokeWidth:dt,clickEffect:ut,clickEffectColor:ft,clickEffectColorSlug:gt,hasLoading:xt,loadingText:ht,loadingEffect:kt,bold:yt,italic:jt,strikethrough:Ct,top:Mt,classes:wt,animColorTwo:vt,animColorTwoSlug:At,hasSubText:_t,subText:Lt,animSTColor:zt,animSTColorSlug:Dt,iconAnimColorTwo:Pt,iconAnimColorTwoSlug:Ot}=l,[Bt,Rt]=(0,n.useState)(!1),Yt="safelayout-bb-button-dialog-mce-panel",Ut="_blank"===U,Xt="noreferrer noopener",[Wt,Qt]=(0,n.useState)(l),no=t=>{for(var o in t)l[o]=t[o];Qt({...l}),SLBBmceButtons.att=l,i?.callBack&&i.callBack()},ao=Number(H?.substring(6)),so=ao>=36&&ao<=41;let ro="safelayout-bb-button-block"+(yt?" sl-bb-mce-bold":"")+(jt?" sl-bb-mce-italic":"")+(Ct?" sl-bb-mce-strikethrough":""),bo=i?.noCClass?null:"sl-bb-button-block-mce-format-container";const co={name:"general",title:(0,t.__)("General Anim","safelayout-brilliant-buttons"),value:"general"},uo={name:"icon",title:(0,t.__)("Icon Anim","safelayout-brilliant-buttons"),value:"icon"},fo={[co.value]:(0,x.jsxs)(n.Fragment,{children:["No Animation"!=W&&Ft(W)?.control&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{height:"8px"}}),(0,x.jsx)(R,{attribute:Q,selectedSlug:F,label:Ft(W)?.label,onlySolid:Ft(W)?.solid,click:t=>no({animColor:t.target.style.background,animColorSlug:t.target.dataset.slug}),change:t=>no({animColor:t,animColorSlug:void 0}),position:{offset:i?.popoverOffset}})]}),"No Animation"!=W&&Ft(W)?.controlTwo&&(0,x.jsx)(R,{attribute:vt,selectedSlug:At,label:Ft(W)?.labelTwo,onlySolid:Ft(W)?.solidTwo,click:t=>no({animColorTwo:t.target.style.background,animColorTwoSlug:t.target.dataset.slug}),change:t=>no({animColorTwo:t,animColorTwoSlug:void 0}),position:{offset:i?.popoverOffset}}),"No Animation"!=W&&Ft(W)?.controlSTColor&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{display:"inline-block",width:"70%"},children:(0,x.jsx)(R,{attribute:zt,selectedSlug:Dt,label:Ft(W)?.labelTwo,onlySolid:Ft(W)?.solidTwo,click:t=>no({animSTColor:t.target.style.background,animSTColorSlug:t.target.dataset.slug}),change:t=>no({animSTColor:t,animSTColorSlug:void 0}),position:{offset:i?.popoverOffset}})}),(0,x.jsx)(a.Button,{variant:"secondary",onClick:()=>no({animSTColor:void 0,animSTColorSlug:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"super"},children:(0,t.__)("Reset","safelayout-brilliant-buttons")})]}),(0,x.jsx)(Jt,{currentAnim:W,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-anim-name"),l=Ft(e),n=SLBBmceButtons.att.animColor;let a={};l?.solid&&-1!==n.indexOf("gradient")&&(a={animColor:"#fff",animColorSlug:void 0}),Et("sl-bb-list-selected-anim"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-anim"),no({slbbAnim:e,...a})}})]},"generalA"),[uo.value]:(0,x.jsxs)(n.Fragment,{children:["No Animation"!=tt&&$t(tt)?.control&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{height:"8px"}}),(0,x.jsx)(R,{attribute:ot,selectedSlug:et,label:$t(tt)?.label,onlySolid:$t(tt)?.solid,click:t=>no({iconAnimColor:t.target.style.background,iconAnimColorSlug:t.target.dataset.slug}),change:t=>no({iconAnimColor:t,iconAnimColorSlug:void 0}),disabled:so||!$,position:{offset:i?.popoverOffset}})]}),"No Animation"!=tt&&$t(tt)?.controlTwo&&(0,x.jsx)(R,{attribute:Pt,selectedSlug:Ot,label:$t(tt)?.labelTwo,onlySolid:$t(tt)?.solidTwo,click:t=>no({iconAnimColorTwo:t.target.style.background,iconAnimColorTwoSlug:t.target.dataset.slug}),change:t=>no({iconAnimColorTwo:t,iconAnimColorTwoSlug:void 0}),disabled:so||!$,position:{offset:i?.popoverOffset}}),(0,x.jsx)(to,{currentAnim:tt,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-icon-anim-name");Et("sl-bb-list-selected-icon-anim"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-icon-anim"),no({iconAnimation:e})},disabled:so||!$})]},"iconA")},mo={name:"general",title:(0,t.__)("General","safelayout-brilliant-buttons"),value:"general"},po={name:"more",title:(0,t.__)("More Options","safelayout-brilliant-buttons"),value:"more"},go=[mo,po],xo={[mo.value]:(0,x.jsxs)(n.Fragment,{children:[(0,x.jsx)(io,{onIconClick:t=>{const o=(t=>{let o=pt.find(({name:o})=>o===t);return o?{...mt,...o.attributes}:null})(t.currentTarget.getAttribute("data-button-lib-name"));o&&no({...o})},position:{pos:i?.popoverOffset?null:"bottom",offset:i?.popoverOffset||5},style:{margin:"8px 35px"}}),!so&&(0,x.jsxs)("div",{style:{textAlign:"center",marginBottom:"3px"},children:[(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",style:{textAlign:"center",fontWeight:"bold"},children:(0,t.__)("Button text","safelayout-brilliant-buttons")}),(0,x.jsx)("textarea",{value:s?.replaceAll("<br>","\n"),onChange:t=>no({content:t.target.value?.replaceAll("\n","<br>")}),placeholder:(0,t.__)("My Button","safelayout-brilliant-buttons"),rows:"2",cols:"35",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:p}})]}),(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsxs)(a.ToolbarGroup,{style:{border:"none"},children:[!so&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.AlignmentToolbar,{controls:["left","center","right"],value:p,onChange:t=>no({textAlign:t}),label:(0,t.__)("Align text (multiline)","safelayout-brilliant-buttons")}),(0,x.jsx)(a.ToolbarButton,{icon:r,label:(0,t.__)("Uppercase","safelayout-brilliant-buttons"),onClick:()=>no({uppercase:!g}),isPressed:!so&&g}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-bold",label:(0,t.__)("Bold","safelayout-brilliant-buttons"),onClick:()=>no({bold:!yt}),isPressed:!so&&yt}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-italic",label:(0,t.__)("Italic","safelayout-brilliant-buttons"),onClick:()=>no({italic:!jt}),isPressed:!so&&jt}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-strikethrough",label:(0,t.__)("Strike through","safelayout-brilliant-buttons"),onClick:()=>no({strikethrough:!Ct}),isPressed:!so&&Ct})]}),so&&(0,x.jsx)(a.ToolbarButton,{icon:b,label:(0,t.__)("Rotate ( Shape Effects)","safelayout-brilliant-buttons"),onClick:()=>no({rotate:(Z+45)%360}),isPressed:so&&0!=Z})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Button effect","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-customizer",children:(0,x.jsx)(Vt,{currentEffect:H,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-effect-name"),l=V(e);Et("sl-bb-list-selected-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-effect"),no({effect:e,...l?.attributes})}})})}),(0,x.jsx)(a.Panel,{className:"safelayout-bb-button-dialog-mce-panel safelayout-bb-button-dialog-mce-panel-link",children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Link and Title","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-links",className:"sl-bb-button-block-link-panel",children:[(0,x.jsx)(a.TextControl,{label:(0,t.__)("Tooltip","safelayout-brilliant-buttons"),value:O||"",onChange:t=>no({title:t})}),(0,x.jsx)(a.TextControl,{label:(0,t.__)("Label","safelayout-brilliant-buttons"),value:P||"",onChange:t=>no({label:t}),help:(0,t.__)("It is for screen readers.","safelayout-brilliant-buttons")}),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Link url","safelayout-brilliant-buttons")}),(0,x.jsx)(o.LinkControl,{value:{url:B,opensInNewTab:Ut},onChange:({url:t="",opensInNewTab:o})=>{no({linkUrl:t}),Ut!==o&&function(t){const o=t?"_blank":void 0;let e=Y;o&&!Y?e=Xt:o||Y!==Xt||(e=void 0),no({linkTarget:o,linkRel:e})}(o)},onRemove:()=>{no({linkUrl:void 0,linkTarget:void 0,linkRel:void 0})}}),(0,x.jsx)(a.TextControl,{label:(0,t.__)("Link rel","safelayout-brilliant-buttons"),value:Y||"",onChange:t=>no({linkRel:t})})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Position & Size","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-expand",children:[(0,x.jsx)(a.RangeControl,{label:(0,t.__)("top","safelayout-brilliant-buttons"),min:-250,max:250,className:"sl-bb-button-block-no-margin-bottom",value:Mt,onChange:t=>no({top:t})}),(0,x.jsx)(a.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:Gt,onChange:t=>no({fontSize:t}),value:h}),(0,x.jsxs)(a.__experimentalGrid,{columns:2,children:[(0,x.jsx)(o.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:t=>no({lineHeight:t}),value:k}),(0,x.jsx)(o.__experimentalLetterSpacingControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",onChange:t=>no({letterSpacing:t}),value:y})]}),i?.showWidth&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.BaseControl.VisualLabel,{style:{display:"block",marginTop:"5px",marginBottom:"0"},children:(0,t.__)("Width","safelayout-brilliant-buttons")}),(0,x.jsxs)(a.__experimentalGrid,{columns:2,style:{alignItems:"center"},children:[(0,x.jsx)(a.__experimentalToggleGroupControl,{value:j,onChange:t=>no({width:t}),size:"small",style:{width:"170px"},children:[25,50,75,100].map(t=>(0,x.jsx)(a.__experimentalToggleGroupControlOption,{value:t,label:t+"%"},t))}),(0,x.jsx)(a.Button,{variant:"secondary",onClick:()=>no({width:0}),size:"small",style:{margin:"0 5px"},children:(0,t.__)("Reset","safelayout-brilliant-buttons")})]})]}),(0,x.jsxs)("div",{style:{display:"inline-block"},children:[(0,x.jsx)(a.BaseControl.VisualLabel,{style:{display:"block",margin:"8px 0 0"},children:(0,t.__)("Minimum Width","safelayout-brilliant-buttons")}),(0,x.jsx)(a.__experimentalUnitControl,{__unstableInputWidth:"150px",onChange:t=>no({minWidth:t}),value:C,size:"small"})]}),(0,x.jsx)(a.Button,{variant:"secondary",onClick:()=>no({minWidth:void 0}),size:"small",style:{margin:"0 10px",verticalAlign:"bottom"},children:(0,t.__)("Reset","safelayout-brilliant-buttons")})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Font","safelayout-brilliant-buttons"),initialOpen:!1,icon:"edit",children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,x.jsx)("option",{value:"Default",children:"Default"})})]})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Color","safelayout-brilliant-buttons"),initialOpen:!1,icon:"admin-appearance",className:"sl-bb-button-block-color-panel-icon",children:[(0,x.jsx)(a.ToggleControl,{checked:v,help:(0,t.__)("Add a background color to the button.","safelayout-brilliant-buttons"),label:(0,t.__)("Background color","safelayout-brilliant-buttons"),onChange:t=>no({hasBg:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,x.jsx)(R,{attribute:S,selectedSlug:N,label:(0,t.__)("Background color","safelayout-brilliant-buttons"),click:t=>no({bgColor:t.target.style.background,bgColorSlug:t.target.dataset.slug}),change:t=>t&&no({bgColor:t,bgColorSlug:void 0}),disabled:!v,position:{offset:i?.popoverOffset}}),(0,x.jsx)(R,{attribute:M,selectedSlug:w,label:(0,t.__)("Text color","safelayout-brilliant-buttons"),click:t=>no({textColor:t.target.style.background,textColorSlug:t.target.dataset.slug}),change:t=>t&&no({textColor:t,textColorSlug:void 0}),onlySolid:!0,position:{offset:i?.popoverOffset}})]})}),!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Icon","safelayout-brilliant-buttons"),initialOpen:!1,icon:"art",children:[(0,x.jsx)(a.ToggleControl,{checked:$,help:(0,t.__)("Add an icon to the button.","safelayout-brilliant-buttons"),label:(0,t.__)("Add icon","safelayout-brilliant-buttons"),onChange:t=>no({hasIcon:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,x.jsx)(Tt,{name:at,paths:it,color:st,customIconRefresh:1,label:(0,t.__)("Icon","safelayout-brilliant-buttons")+": "+at.substring(4),onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-icon-name"),l=Nt(e),n=It(l);Et("sl-bb-list-selected-icon"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-icon");let a={...n,...l?.attributes};a?.color||(a={...a,color:[st[0]],iconColorSlug:[rt?.[0]]}),a?.strokeColor||(a={...a,strokeColor:[bt[0]],iconStrokeColorSlug:[ct?.[0]]}),a?.strokeWidth||(a={...a,strokeWidth:[dt[0]]}),a?.iconColorSlug||(a={...a,iconColorSlug:Array(a?.color.length).fill()}),a?.iconStrokeColorSlug||(a={...a,iconStrokeColorSlug:Array(a?.strokeColor.length).fill()}),no({iconName:e,iconPaths:l.paths,iconColor:a.color,iconColorSlug:a.iconColorSlug,iconStrokeColor:a.strokeColor,iconStrokeColorSlug:a.iconStrokeColorSlug,iconStrokeWidth:a.strokeWidth})},disabled:!$,position:{offset:i?.popoverOffset}}),(0,x.jsxs)("div",{style:{padding:"15px"},children:[(0,x.jsx)(a.ToggleControl,{checked:Bt,label:(0,t.__)("Show Number, Text or Emoji instead of icon.","safelayout-brilliant-buttons"),onChange:t=>Rt(t),disabled:!$}),Bt&&(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsxs)(a.__experimentalGrid,{columns:2,style:{display:"flex",justifyContent:"space-around",margin:"10px 0 -6px"},children:[(0,x.jsx)(a.TextControl,{label:(0,t.__)("Number / Text","safelayout-brilliant-buttons"),className:"sl-bb-button-block-disabled-element",disabled:!0}),(0,x.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,x.jsx)("option",{value:"Default",children:"Default"})})]}),(0,x.jsx)("span",{style:{top:"7px"},className:"sl-bb-help-msg",children:(0,t.__)('One or two char "01" "2" "A1" "😎" ...',"safelayout-brilliant-buttons")})]})]})]}),(0,x.jsx)("hr",{style:{margin:"7px 0"}}),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Icon position","safelayout-brilliant-buttons")}),(0,x.jsxs)(a.__experimentalToggleGroupControl,{value:lt,isBlock:!0,onChange:t=>no({iconPos:t}),disabled:!$,size:"small",children:[(0,x.jsx)(a.__experimentalToggleGroupControlOption,{value:"left",label:(0,t.__)("Left","safelayout-brilliant-buttons"),disabled:!$}),(0,x.jsx)(a.__experimentalToggleGroupControlOption,{value:"right",label:(0,t.__)("Right","safelayout-brilliant-buttons"),disabled:!$})]}),st.map((o,e,l)=>(0,x.jsx)(R,{attribute:o,selectedSlug:rt?.[e],label:(0,t.__)("Icon Fill Color","safelayout-brilliant-buttons")+St(e,l.length),click:t=>{let o=[...st],l=[...rt||Array(st.length).fill()];o[e]=t.target.style.background,l[e]=t.target.dataset.slug,no({iconColor:o,iconColorSlug:l})},change:t=>{let o=[...st],l=[...rt||Array(st.length).fill()];t&&(o[e]=t,l[e]=void 0),no({iconColor:o,iconColorSlug:l})},disabled:!$,position:{offset:i?.popoverOffset}},e)),bt.map((o,e,l)=>(0,x.jsx)(R,{attribute:o,selectedSlug:ct?.[e],label:(0,t.__)("Icon Stroke Color","safelayout-brilliant-buttons")+St(e,l.length),click:t=>{let o=[...bt],l=[...ct||Array(bt.length).fill()];o[e]=t.target.style.background,l[e]=t.target.dataset.slug,no({iconStrokeColor:o,iconStrokeColorSlug:l})},change:t=>{let o=[...bt],l=[...ct||Array(bt.length).fill()];t&&(o[e]=t,l[e]=void 0),no({iconStrokeColor:o,iconStrokeColorSlug:l})},disabled:!$,position:{offset:i?.popoverOffset}},e)),dt.map((o,e,l)=>(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Icon Stroke Width","safelayout-brilliant-buttons")+St(e,l.length),min:0,max:200,value:o,className:"sl-bb-button-block-no-margin-bottom",onChange:t=>{let o=[...dt];o[e]=t,no({iconStrokeWidth:o})},disabled:!$},e)),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Icon gap","safelayout-brilliant-buttons")}),(0,x.jsx)(a.RangeControl,{min:0,max:250,className:"sl-bb-button-block-no-margin-bottom",value:nt,disabled:!$,onChange:t=>no({iconGap:t})}),(0,x.jsx)("hr",{style:{margin:"7px 0 12px 0"}}),(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsx)(a.Disabled,{children:(0,x.jsx)(a.ToggleControl,{help:(0,t.__)("The button text will be hidden.","safelayout-brilliant-buttons"),label:(0,t.__)("Only show icon","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom"})})]}),(0,x.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Icon background shape","safelayout-brilliant-buttons")}),"No Shape"!=J&&(0,x.jsx)(R,{attribute:q,selectedSlug:K,label:(0,t.__)("Background shape color","safelayout-brilliant-buttons"),click:t=>no({iconShapeColor:t.target.style.background,iconShapeColorSlug:t.target.dataset.slug}),change:t=>no({iconShapeColor:t,iconShapeColorSlug:void 0}),disabled:!$,position:{offset:i?.popoverOffset}}),(0,x.jsx)(Kt,{currentShape:J,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-shape-name");Et("sl-bb-list-selected-shape"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-shape"),no({iconShape:e})},disabled:!$}),(0,x.jsx)("hr",{style:{margin:"7px 0"}}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Icon shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:c,children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.ToggleControl,{label:(0,t.__)("Icon shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom"}),(0,x.jsx)(R,{attribute:"#000",label:(0,t.__)("color","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("blur","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("X offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Y offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:d,children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Icon size","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Background shape size","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Background shape position","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})})]})}),!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Sub text","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-textcolor",children:[(0,x.jsx)(a.ToggleControl,{checked:_t,help:(0,t.__)("Add a sub text to the button.","safelayout-brilliant-buttons"),label:(0,t.__)("Sub text","safelayout-brilliant-buttons"),onChange:t=>no({hasSubText:t,subTextAlign:"center",subTextFontSize:"11px"})}),(0,x.jsx)("div",{style:{textAlign:"center",marginBottom:"3px"},children:(0,x.jsx)("textarea",{value:Lt?.replaceAll("<br>","\n"),onChange:t=>no({subText:t.target.value?.replaceAll("\n","<br>")}),placeholder:(0,t.__)("More Text","safelayout-brilliant-buttons"),rows:"2",cols:"33",style:{border:"1px solid #8c8f94",padding:"3px",textAlign:"center",marginBottom:"10px"},disabled:!_t})}),(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsx)("div",{style:{textAlign:"center"},children:(0,x.jsx)(a.ToolbarGroup,{style:{border:"none"},children:(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.ToolbarButton,{icon:u,label:(0,t.__)("Align text","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.ToolbarButton,{icon:r,label:(0,t.__)("Uppercase","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-bold",label:(0,t.__)("Bold","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.ToolbarButton,{icon:"editor-italic",label:(0,t.__)("Italic","safelayout-brilliant-buttons"),disabled:!0})]})})}),(0,x.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Sub Text Font","safelayout-brilliant-buttons"),disabled:!0,children:(0,x.jsx)("option",{value:"Default",children:"Default"})})]}),(0,x.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.ToggleControl,{label:(0,t.__)("Sub text color","safelayout-brilliant-buttons")}),(0,x.jsx)(R,{attribute:"#000",label:(0,t.__)("Sub text color","safelayout-brilliant-buttons"),disabled:!0})]})]}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Sub Text size","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-expand",children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Sub text top","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,x.jsx)(a.FontSizePicker,{withReset:!1,withSlider:!0,fontSizes:Gt})]})]})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Sub Text shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:c,children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsxs)(a.Disabled,{children:[(0,x.jsx)(a.ToggleControl,{label:(0,t.__)("Sub Text shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom"}),(0,x.jsx)(R,{attribute:"#000",label:(0,t.__)("color","safelayout-brilliant-buttons"),disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("blur","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:0,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("X offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Y offset","safelayout-brilliant-buttons"),className:"sl-bb-button-block-no-margin-bottom",value:1,disabled:!0})]})]})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:d,children:(0,x.jsxs)("div",{className:"sl-bb-pro-version-box",children:[(0,x.jsx)("span",{className:"sl-bb-pro-version-badge",children:"PRO"}),(0,x.jsx)(a.TextControl,{label:(0,t.__)("Sub Text Additional CSS class(es)","safelayout-brilliant-buttons"),help:(0,t.__)("Separate multiple classes with spaces.","safelayout-brilliant-buttons"),className:"sl-bb-button-block-disabled-element",disabled:!0})]})})})]})})]},"general"),[po.value]:(0,x.jsxs)(n.Fragment,{children:[!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Border","safelayout-brilliant-buttons"),initialOpen:!1,icon:f,children:[(0,x.jsx)(a.__experimentalBorderBoxControl,{onChange:t=>no({border:t}),value:A,style:{marginTop:"12px"},enableAlpha:!0,popoverPlacement:"left-start",popoverOffset:i?.popoverOffset||40,colors:[{color:"#72aee6"},{color:"#3582c4"},{color:"#e65054"},{color:"#8a2424"},{color:"#f2d675"},{color:"#bd8600"}]}),(0,x.jsx)(a.Button,{variant:"secondary",onClick:()=>no({border:void 0}),style:{marginBottom:"10px"},size:"small",children:(0,t.__)("Reset","safelayout-brilliant-buttons")}),(0,x.jsx)(a.__experimentalBoxControl,{label:(0,t.__)("Border radius","safelayout-brilliant-buttons"),values:I,onChange:t=>no({borderRadius:t})})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Background pattern","safelayout-brilliant-buttons"),initialOpen:!1,icon:"screenoptions",children:[(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Pattern opacity","safelayout-brilliant-buttons"),min:.1,max:1,step:.05,className:"sl-bb-button-block-no-margin-bottom",value:X,withInputField:!1,disabled:"No Pattern"===G,onChange:t=>no({patternOpacity:t})}),(0,x.jsx)(qt,{currentPattern:G,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-pattern-name");Et("sl-bb-list-selected-pattern"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-pattern"),no({bgPattern:e})}})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Box shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:c,children:[(0,x.jsx)(a.ToggleControl,{checked:_,label:(0,t.__)("Box shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom",onChange:t=>no({hasBgShadow:t})}),(0,x.jsx)(R,{attribute:Ht(T,3),label:(0,t.__)("color","safelayout-brilliant-buttons"),onlySolid:!0,noCurentInherit:!0,click:t=>no({bgShadow:Zt(T,3,t.target.style.background)}),change:t=>no({bgShadow:Zt(T,3,t)}),disabled:!_,position:{offset:i?.popoverOffset}}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("blur","safelayout-brilliant-buttons"),min:0,max:100,step:so?.1:1,className:"sl-bb-button-block-no-margin-bottom",value:Ht(T,2),disabled:!_,onChange:t=>no({bgShadow:Zt(T,2,t)})}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("X offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:Ht(T,0),disabled:!_,onChange:t=>no({bgShadow:Zt(T,0,t)})}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Y offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:Ht(T,1),disabled:!_,onChange:t=>no({bgShadow:Zt(T,1,t)})})]})}),!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Text shadow","safelayout-brilliant-buttons"),initialOpen:!1,icon:c,children:[(0,x.jsx)(a.ToggleControl,{checked:L,label:(0,t.__)("Text shadow","safelayout-brilliant-buttons"),className:"sl-bb-button-block-low-margin-bottom",onChange:t=>no({hasTextShadow:t})}),(0,x.jsx)(R,{attribute:Ht(z,3),label:(0,t.__)("color","safelayout-brilliant-buttons"),onlySolid:!0,noCurentInherit:!0,click:t=>no({textShadow:Zt(z,3,t.target.style.background)}),change:t=>no({textShadow:Zt(z,3,t)}),disabled:!L,position:{offset:i?.popoverOffset}}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("blur","safelayout-brilliant-buttons"),min:0,max:100,className:"sl-bb-button-block-no-margin-bottom",value:Ht(z,2),disabled:!L,onChange:t=>no({textShadow:Zt(z,2,t)})}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("X offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:Ht(z,0),disabled:!L,onChange:t=>no({textShadow:Zt(z,0,t)})}),(0,x.jsx)(a.RangeControl,{label:(0,t.__)("Y offset","safelayout-brilliant-buttons"),min:-200,max:200,className:"sl-bb-button-block-no-margin-bottom",value:Ht(z,1),disabled:!L,onChange:t=>no({textShadow:Zt(z,1,t)})})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Hover animation","safelayout-brilliant-buttons"),initialOpen:!1,icon:"editor-video",children:(0,x.jsx)(a.TabPanel,{className:"sl-bb-icon-block-panel-tabs",tabs:[co,uo],initialTabName:co.value,children:t=>{return o=t.value,(0,x.jsx)(x.Fragment,{children:fo[o]});var o}})})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Click effect","safelayout-brilliant-buttons"),initialOpen:!1,icon:"yes",children:[("effect003"===ut||"effect004"===ut||"effect005"===ut)&&(0,x.jsx)(R,{attribute:ft,selectedSlug:gt,label:(0,t.__)("Click effect color","safelayout-brilliant-buttons"),click:t=>no({clickEffectColor:t.target.style.background,clickEffectColorSlug:t.target.dataset.slug}),change:t=>no({clickEffectColor:t,clickEffectColorSlug:void 0}),position:{offset:i?.popoverOffset}}),(0,x.jsx)(oo,{currentAnim:ut,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-click-name");Et("sl-bb-list-selected-click-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-click-effect"),no({clickEffect:e})}})]})}),!so&&(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("After click ( loading )","safelayout-brilliant-buttons"),initialOpen:!1,icon:"update-alt",children:[(0,x.jsx)(a.ToggleControl,{checked:xt,help:(0,t.__)("Change button text after click.","safelayout-brilliant-buttons"),label:(0,t.__)("Change button text","safelayout-brilliant-buttons"),onChange:t=>no({hasLoading:t}),className:"sl-bb-button-block-no-margin-bottom"}),(0,x.jsx)(a.TextControl,{label:(0,t.__)("New text","safelayout-brilliant-buttons"),value:ht||"",onChange:t=>no({loadingText:t}),disabled:!xt,help:(0,t.__)('See "After click" effect on the front-end.',"safelayout-brilliant-buttons")}),(0,x.jsx)(a.BaseControl.VisualLabel,{className:"sl-bb-button-block-no-margin-bottom",children:(0,t.__)("Loading effect","safelayout-brilliant-buttons")}),(0,x.jsx)(eo,{currentLoading:kt,onIconClick:t=>{const o=t.currentTarget,e=o.getAttribute("data-loading-name");Et("sl-bb-list-selected-loading-effect"),o.classList.add("sl-bb-list-selected"),o.setAttribute("id","sl-bb-list-selected-loading-effect"),no({loadingEffect:e})}})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsxs)(a.PanelBody,{title:(0,t.__)("Block spacing","safelayout-brilliant-buttons"),initialOpen:!1,icon:m,children:[(0,x.jsx)(a.__experimentalBoxControl,{label:(0,t.__)("Margin","safelayout-brilliant-buttons"),values:E,onChange:t=>no({blockMargin:t})}),(0,x.jsx)("div",{style:{height:"10px"}}),(0,x.jsx)("hr",{style:{margin:"10px 0",borderTop:"1px solid #e0e0e0"}}),(0,x.jsx)(a.__experimentalBoxControl,{label:(0,t.__)("Padding","safelayout-brilliant-buttons"),values:D,onChange:t=>no({blockPadding:t})})]})}),(0,x.jsx)(a.Panel,{className:Yt,children:(0,x.jsx)(a.PanelBody,{title:(0,t.__)("Advanced","safelayout-brilliant-buttons"),initialOpen:!1,icon:d,children:(0,x.jsx)(a.TextControl,{label:(0,t.__)("Additional CSS class(es)","safelayout-brilliant-buttons"),value:wt||"",onChange:t=>no({classes:t}),help:(0,t.__)("Separate multiple classes with spaces.","safelayout-brilliant-buttons")})})})]},"more")};return(0,x.jsxs)(x.Fragment,{children:[!i?.hidePreview&&(0,x.jsxs)("div",{className:"sl-bb-button-block-mce-preview-container",children:[(0,x.jsx)("div",{className:"sl-bb-button-block-mce-preview-title",children:"Preview"}),(0,x.jsx)("div",{className:ro,style:{display:"inline-block",top:l.top+"px"},children:(0,x.jsx)(lo,{attributes:{...l,linkUrl:""},isInEditor:!1,clickEff:!0})})]}),(0,x.jsxs)("div",{className:bo,children:[(0,x.jsx)(a.TabPanel,{className:"sl-bb-icon-block-panel-tabs",tabs:go,initialTabName:mo.value,children:t=>{return o=t.value,(0,x.jsx)(x.Fragment,{children:xo[o]});var o}}),(0,x.jsx)("div",{className:"sl-bb-button-block-upgrade-pro",children:(0,x.jsx)("a",{href:"https://safelayout.com/safelayout-brilliant-buttons-pro/",target:"_blank",className:"button",title:(0,t.__)("Upgrade to pro version and get full features.","safelayout-brilliant-buttons"),children:(0,t.__)("Upgrade to Pro","safelayout-brilliant-buttons")})}),(0,x.jsxs)("div",{style:{opacity:0,height:"1px"},children:["undefined"!=typeof SLEIwordpressDashiconsIcons&&SLEIwordpressDashiconsIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpressdashicons",children:String.fromCharCode(59392)}),"undefined"!=typeof SLEIwordpressIcons&&SLEIwordpressIcons&&(0,x.jsx)("span",{className:"sl-ei-font-wordpress",children:String.fromCharCode(59392)})]})]})]})}})()})();
  • safelayout-brilliant-buttons/trunk/languages/safelayout-brilliant-buttons.pot

    r3817539 r3834201  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Safelayout Brilliant Buttons 1.3.2\n"
     5"Project-Id-Version: Safelayout Brilliant Buttons 1.3.3\n"
    66"POT-Creation-Date: 2026-11-23 00:52+0330\n"
    77"PO-Revision-Date: 2026-11-23 00:52+0330\n"
  • safelayout-brilliant-buttons/trunk/package.json

    r3817539 r3834201  
    11{
    22        "name": "safelayout-brilliant-buttons",
    3         "version": "1.3.2",
     3        "version": "1.3.3",
    44        "description": "Beautiful and high quality buttons.",
    55        "author": "safelayout",
  • safelayout-brilliant-buttons/trunk/readme.txt

    r3817539 r3834201  
    44Requires at least: 6.5
    55Tested up to: 7.1
    6 Stable tag: 1.3.2
     6Stable tag: 1.3.3
    77Requires PHP: 7.0
    88License: GPLv2 or later
    … …  
    117117== Changelog ==
    118118
     119= 1.3.3 =
     120* Fixed some issue.
     121
    119122= 1.3.2 =
    120123* Fixed color palette issue.
  • safelayout-brilliant-buttons/trunk/safelayout-brilliant-buttons.php

    r3817539 r3834201  
    66Requires at least: 6.5
    77Requires PHP: 7.0
    8 Version: 1.3.2
     8Version: 1.3.3
    99Author: Safelayout
    1010Text Domain: safelayout-brilliant-buttons
    … …  
    1313License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1414
    15 Elementor tested up to: 4.4.1
    16 Elementor Pro tested up to: 4.4.1
     15Elementor tested up to: 4.4.2
     16Elementor Pro tested up to: 4.4.2
    1717*/
    1818
    … …  
    2222       
    2323        // Define the constant used in this plugin
    24         define( 'SAFELAYOUT_BUTTONS_VERSION', '1.3.2' );
     24        define( 'SAFELAYOUT_BUTTONS_VERSION', '1.3.3' );
    2525        define( 'SAFELAYOUT_BUTTONS_PATH', plugin_dir_path( __FILE__ ) );
    2626        define( 'SAFELAYOUT_BUTTONS_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.