(()=>{"use strict";var e={n:t=>{var l=t&&t.__esModule?()=>t.default:()=>t;return e.d(l,{a:l}),l},d:(t,l)=>{for(var o in l)e.o(l,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:l[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,l=window.wp.blockEditor,o=window.wp.serverSideRender;var n=e.n(o);const a=window.wp.components,s=JSON.parse('{"UU":"ggmc/discount-code-input"}'),r=window.ReactJSXRuntime;(0,t.registerBlockType)(s.UU,{edit:({attributes:e,setAttributes:t})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.InspectorControls,{children:(0,r.jsxs)(a.PanelBody,{title:"Content",children:[(0,r.jsx)(a.TextControl,{label:"Input Placeholder",value:e.input_placeholder,onChange:e=>t({input_placeholder:e})}),(0,r.jsx)(a.TextControl,{label:"Button Text",value:e.button_text,onChange:e=>t({button_text:e})}),(0,r.jsx)(a.ToggleControl,{label:"Show Label",checked:"yes"===e.show_label,onChange:e=>t({show_label:e?"yes":""})}),"yes"===e.show_label&&(0,r.jsx)(a.TextControl,{label:"Label Text",value:e.label_text,onChange:e=>t({label_text:e})}),(0,r.jsx)(a.ToggleControl,{label:"Collapsible",checked:"yes"===e.collapsible,onChange:e=>t({collapsible:e?"yes":""})})]})}),(0,r.jsx)(n(),{block:s.UU,attributes:e})]}),save:()=>null})})();