(()=>{var e={6942:(e,o)=>{var t;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e="",o=0;o<arguments.length;o++){var t=arguments[o];t&&(e=n(e,l(t)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var t in e)r.call(e,t)&&e[t]&&(o=n(o,t));return o}function n(e,o){return o?e?e+" "+o:e+o:e}e.exports?(s.default=s,e.exports=s):void 0===(t=function(){return s}.apply(o,[]))||(e.exports=t)}()}},o={};function t(r){var s=o[r];if(void 0!==s)return s.exports;var l=o[r]={exports:{}};return e[r](l,l.exports,t),l.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{"use strict";const e=window.wp.blocks,o=JSON.parse('{"UU":"snow-monkey-blocks/panels-item-free","uK":{"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"xY":{"html":false,"color":{"background":true,"gradients":true,"text":true,"link":true},"layout":{"allowSwitching":false,"allowEditing":false,"allowInheriting":false,"default":{"type":"constrained"}}}}'),r=window.ReactJSXRuntime,s=(0,r.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,r.jsx)("path",{d:"M3,3v8h8V3Zm7,7H4V4h6Z"}),(0,r.jsx)("path",{d:"M13,3v8h8V3Zm7,7H14V4h6Z"}),(0,r.jsx)("path",{d:"M3,13v8h8V13Zm7,7H4V14h6Z"}),(0,r.jsx)("path",{d:"M13,13v8h8V13Zm7,7H14V14h6Z"})]});var l=t(6942),n=t.n(l);const a=window.wp.blockEditor,c=window.wp.data,i={to:[{type:"block",blocks:["snow-monkey-blocks/panels-item"],transform:o=>(0,e.createBlock)("snow-monkey-blocks/panels-item",o)},{type:"block",blocks:["snow-monkey-blocks/panels-item-horizontal"],transform:o=>(0,e.createBlock)("snow-monkey-blocks/panels-item-horizontal",o)},{type:"block",blocks:["snow-monkey-blocks/panels-item-block-link"],transform:(o,t)=>(0,e.createBlock)("snow-monkey-blocks/panels-item-block-link",o,t)}]},d=[{attributes:{...o.uK,backgroundColor:{type:"string"},backgroundGradientColor:{type:"string"},textColor:{type:"string"}},supports:{...o.xY,color:{background:!1,gradients:!1,text:!1,link:!1}},migrate(e){const{backgroundColor:o,backgroundGradientColor:t,textColor:r}=e;let s={...e};return o&&(s={...s,backgroundColor:void 0,style:{...s?.style,color:{...s?.style?.color,background:o}}}),t&&(s={...s,backgroundGradientColor:void 0,style:{...s?.style,color:{...s?.style?.color,gradient:t}}}),r&&(s={...s,textColor:void 0,style:{...s?.style,color:{...s?.style?.color,text:r}}}),s},save({attributes:e,className:o}){const{backgroundColor:t,backgroundGradientColor:s,textColor:l}=e,c=n()("c-row__col",o),i=n()("smb-panels__item","smb-panels__item--free"),d={"--smb-panel--background-color":t,"--smb-panel--background-image":s,"--smb-panel--color":l};return(0,r.jsx)("div",{...a.useBlockProps.save({className:c}),children:(0,r.jsx)("div",{className:i,style:d,children:(0,r.jsx)("div",{...a.useInnerBlocksProps.save({className:"smb-panels__item__body"})})})})}}];(0,e.registerBlockType)(o.UU,{icon:{foreground:"#cd162c",src:s},edit:function({attributes:e,clientId:o}){const{templateLock:t}=e,s=(0,a.__experimentalUseColorProps)({style:{color:{...e?.style?.color}},backgroundColor:e?.backgroundColor||void 0,textColor:e?.textColor||void 0,gradient:e?.gradient||void 0}),l=(0,c.useSelect)((e=>!!e("core/block-editor").getBlock(o)?.innerBlocks?.length),[o]),i=n()("smb-panels__item","smb-panels__item--free",s?.className),d=s?.style,p=(0,a.useBlockProps)({className:"c-row__col"}),u=(0,a.useInnerBlocksProps)({className:"smb-panels__item__body"},{templateLock:t,renderAppender:l?void 0:a.InnerBlocks.ButtonBlockAppender});return(0,r.jsx)("div",{...p,children:(0,r.jsx)("div",{className:i,style:d,children:(0,r.jsx)("div",{...u})})})},save:function({attributes:e}){const o=(0,a.__experimentalGetColorClassesAndStyles)({style:{color:{...e?.style?.color}},backgroundColor:e?.backgroundColor||void 0,textColor:e?.textColor||void 0,gradient:e?.gradient||void 0}),t=n()("smb-panels__item","smb-panels__item--free",o?.className),s=o?.style;return(0,r.jsx)("div",{...a.useBlockProps.save({className:"c-row__col"}),children:(0,r.jsx)("div",{className:t,style:s,children:(0,r.jsx)("div",{...a.useInnerBlocksProps.save({className:"smb-panels__item__body"})})})})},transforms:i,deprecated:d})})()})();