"use strict";(self.webpackChunkfooconvert=self.webpackChunkfooconvert||[]).push([[463],{9421:function(e,o,t){var n=t(4997),s=t(8824),l=JSON.parse('{"UU":"fc/example-block"}'),a=t(4715),r=t(7723),i=t(8908),c=t(136),p=t(790);const d={styles:{dimensions:{padding:{top:"24px",right:"32px",bottom:"24px",left:"32px"}},typography:{fontSize:"24px"}}};var u=({attributes:{styles:e},clientId:o,setAttributes:t,defaults:n=d})=>{const s=o=>{const n="object"==typeof o?{...e??{},...o}:void 0;t({styles:(0,c.A)(n)})},l=[{key:"background",label:(0,r.__)("Background","fooconvert"),enableAlpha:!0,enableGradient:!0},{key:"text",label:(0,r.__)("Text","fooconvert")}];return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(a.InspectorControls,{group:"styles",children:[(0,p.jsx)(i.ColorToolsPanel,{panelId:o,value:e?.color,onChange:e=>s({color:e}),options:l}),(0,p.jsx)(i.TypographyToolsPanel,{panelId:o,value:e?.typography,onChange:e=>s({typography:e}),defaults:n?.typography}),(0,p.jsx)(i.DimensionToolsPanel,{panelId:o,value:e?.dimensions,onChange:e=>s({dimensions:e}),defaults:n?.dimensions}),(0,p.jsx)(i.BorderToolsPanel,{panelId:o,value:e?.border,onChange:e=>s({border:e})})]})})};(0,n.registerBlockType)(l.UU,{icon:s.A,edit:e=>{const{attributes:{content:o,styles:t},setAttributes:n}=e,s=(0,i.useStyles)(t),l=(0,a.useBlockProps)({className:"fc--example-block",style:{...s},format:"string",allowedFormats:["core/bold","core/italic"],tagName:"div",withoutInteractiveFormatting:!0});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u,{...e}),(0,p.jsx)(a.RichText,{...l,value:o,onChange:e=>n({content:e})})]})},save:()=>null})},8908:function(e){e.exports=window.FooConvert.editor}},function(e){e(e.s=9421)}]);