(()=>{"use strict";var e,r={7191:()=>{const e=window.wp.blocks,r=window.ReactJSXRuntime,o=e=>{const{blockName:o,childPath:t="",pluginName:n="spectra"}=e;if(!["spectra","spectra-pro"].includes(n)||"spectra"===n&&!window?.uagb_blocks_info?.uagb_url||"spectra-pro"===n&&!window?.spectra_pro_blocks_info?.spectra_pro_url)return null;if(!o)return null;let s="";switch(n){case"spectra":s=`${window.uagb_blocks_info.uagb_url}/spectra-v3`;break;case"spectra-pro":s=`${window.spectra_pro_blocks_info.spectra_pro_url}/spectra-pro-v2`}const a=`${s}/assets/block-previews/${t?t+"/":""}${o}.webp`;return(0,r.jsx)("img",{width:"100%",src:a,alt:""})},t=window.wp.blockEditor,n=window.wp.element,s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(0,n.memo)((e=>{const{attributes:o}=e,{style:a,classNames:l}=((e,r=[],o=[],t={})=>(0,n.useMemo)((()=>{const n=[...o],a={...t};return r.forEach((r=>{const{key:o,cssVar:t,className:l,value:i}=r;if(null===t&&null===l)return;const c=`--spectra-${s(o)}`,d=`spectra-${s(o)}`,u=void 0!==t?t:c,p=void 0!==l?l:d,b=e[o]||"",v=void 0!==i?i:b;v&&null!==u&&(a[u]=v),v&&null!==p&&n.push(p)})),{style:a,classNames:n}}),[e,r,o,t]))(o,[{key:"backgroundColor"},{key:"backgroundColorHover"},{key:"backgroundGradient"},{key:"backgroundGradientHover"}]),i=(0,t.useBlockProps)({className:(c=l,c.filter(Boolean).join(" ")),style:a});var c;return(0,r.jsx)("div",{...i,children:(0,r.jsx)(t.InnerBlocks,{allowedBlocks:["spectra/icon"],template:[["spectra/icon"]]})})})),l=window.wp.i18n,i=e=>{var o;const{settings:n}=e,s=(0,t.__experimentalUseMultipleOriginColorsAndGradients)(),a=null!==(o=n?.map((e=>({...e,enableAlpha:!0,clearable:!0}))))&&void 0!==o?o:[];return(0,r.jsx)(t.InspectorControls,{group:"color",children:(0,r.jsx)(t.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,disableCustomColors:!1,disableCustomGradients:!1,...s,...e,settings:a})})},c=(0,n.memo)((e=>{const{clientId:o,setAttributes:t,attributes:{backgroundColorHover:n,backgroundGradientHover:s}}=e;return(0,r.jsx)(i,{settings:[{colorValue:n,gradientValue:s,label:(0,l.__)("Background Hover","ultimate-addons-for-gutenberg"),onColorChange:e=>t({backgroundColorHover:e}),onGradientChange:e=>t({backgroundGradientHover:e}),resetAllFilter:()=>t({backgroundColorHover:void 0,backgroundGradientHover:void 0})}],panelId:o})})),d=(0,n.memo)((e=>(0,r.jsx)(c,{...e}))),u=JSON.parse('{"UU":"spectra/icons"}'),p=e=>({width:24,height:24,fill:"none",className:e&&"spectra-block-icon--colored"}),b={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},v=(e=!0)=>(0,n.createElement)("svg",{viewBox:"0 0 24 25",...p(e)},(0,n.createElement)("path",{d:"M12 22.1681C17.5228 22.1681 22 17.6909 22 12.1681C22 6.64524 17.5228 2.16809 12 2.16809C6.47715 2.16809 2 6.64524 2 12.1681C2 17.6909 6.47715 22.1681 12 22.1681Z",...b}),(0,n.createElement)("path",{d:"M12 6.44757L13.6995 9.89057L17.5 10.4461L14.75 13.1246L15.399 16.9086L12 15.1211L8.601 16.9086L9.25 13.1246L6.5 10.4461L10.3005 9.89057L12 6.44757Z",...b}));(0,e.registerBlockType)(u.UU,{icon:v(),edit:e=>{const{isSelected:t,attributes:{isPreview:n}}=e;return n?(0,r.jsx)(o,{blockName:"icons"}):(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(d,{...e}),(0,r.jsx)(a,{...e})]})},save:()=>(0,r.jsx)(t.InnerBlocks.Content,{})})}},o={};function t(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports}t.m=r,e=[],t.O=(r,o,n,s)=>{if(!o){var a=1/0;for(d=0;d<e.length;d++){for(var[o,n,s]=e[d],l=!0,i=0;i<o.length;i++)(!1&s||a>=s)&&Object.keys(t.O).every((e=>t.O[e](o[i])))?o.splice(i--,1):(l=!1,s<a&&(a=s));if(l){e.splice(d--,1);var c=n();void 0!==c&&(r=c)}}return r}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[o,n,s]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={9831:0,2383:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var n,s,[a,l,i]=o,c=0;if(a.some((r=>0!==e[r]))){for(n in l)t.o(l,n)&&(t.m[n]=l[n]);if(i)var d=i(t)}for(r&&r(o);c<a.length;c++)s=a[c],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return t.O(d)},o=globalThis.webpackChunkspectra_v3=globalThis.webpackChunkspectra_v3||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var n=t.O(void 0,[2383],(()=>t(7191)));n=t.O(n)})();