(()=>{"use strict";var e={n:o=>{var t=o&&o.__esModule?()=>o.default:()=>o;return e.d(t,{a:t}),t},d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=window.wp.blocks,t=window.wp.blockEditor,n=window.wp.serverSideRender;var l=e.n(n);const s=window.wp.components,a=JSON.parse('{"UU":"ggmc/customer-downloads"}'),r=window.ReactJSXRuntime;(0,o.registerBlockType)(a.UU,{edit:({attributes:e,setAttributes:o})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.InspectorControls,{children:(0,r.jsxs)(s.PanelBody,{title:"Content",children:[(0,r.jsx)(s.TextControl,{label:"Title",value:e.title,onChange:e=>o({title:e})}),(0,r.jsx)(s.ToggleControl,{label:"Show Title",checked:"yes"===e.show_title,onChange:e=>o({show_title:e?"yes":""})}),(0,r.jsx)(s.TextareaControl,{label:"Empty Message",value:e.empty_message,onChange:e=>o({empty_message:e})}),(0,r.jsx)(s.TextareaControl,{label:"Login Required Message",value:e.login_message,onChange:e=>o({login_message:e})}),(0,r.jsx)(s.ToggleControl,{label:"Show Product Name",checked:"yes"===e.show_product_name,onChange:e=>o({show_product_name:e?"yes":""})}),(0,r.jsx)(s.ToggleControl,{label:"Show Order Number",checked:"yes"===e.show_order_number,onChange:e=>o({show_order_number:e?"yes":""})}),(0,r.jsx)(s.ToggleControl,{label:"Show Download Limit",checked:"yes"===e.show_download_limit,onChange:e=>o({show_download_limit:e?"yes":""})}),(0,r.jsx)(s.ToggleControl,{label:"Show Expiry Date",checked:"yes"===e.show_expiry_date,onChange:e=>o({show_expiry_date:e?"yes":""})}),(0,r.jsx)(s.TextControl,{label:"Download Button Text",value:e.download_button_text,onChange:e=>o({download_button_text:e})})]})}),(0,r.jsx)(l(),{block:a.UU,attributes:e})]}),save:()=>null})})();