import{t as e}from"../../jsx-runtime-B-hbsSup.js";var t=e(),{__:n}=wp.i18n,{registerBlockType:r}=wp.blocks,{SelectControl:i}=wp.components;r(`buymecoffee/guten-block`,{title:n(`Buy Me Coffee`),icon:`coffee`,category:`formatting`,keywords:[n(`Buy Me Coffee`),n(`Gutenberg Block`),n(`buymecoffee-gutenberg-block`)],attributes:{widget:{value:`buymecoffee_button`,type:`string`}},edit({attributes:e,setAttributes:r}){return(0,t.jsxs)(`div`,{className:`buymecoffee-guten-wrapper`,style:{padding:`23px`,border:`1px solid #ccc`},children:[(0,t.jsx)(`div`,{className:`buymecoffee-logo`,children:`Buy Me Coffee`}),(0,t.jsx)(i,{label:n(`Select a Widget`),value:e.widget,options:{widgets:[{value:`buymecoffee_button`,text:`Button`},{value:`buymecoffee_form`,text:`Form`},{value:`buymecoffee_basic`,text:`Basic full template`}]}.widgets.map(e=>({value:e.value,label:e.text})),onChange:e=>r({widget:e})})]})},save({attributes:e}){return`[`+e.widget+`]`}});