(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var l in o)e.o(o,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:o[l]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,o=window.wp.blockEditor,l=window.wp.serverSideRender;var a=e.n(l);const n=window.wp.components,r=JSON.parse('{"UU":"ggmc/mini-cart"}'),c=window.ReactJSXRuntime;(0,t.registerBlockType)(r.UU,{edit:({attributes:e,setAttributes:t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.InspectorControls,{children:(0,c.jsxs)(n.PanelBody,{title:"Cart Settings",children:[(0,c.jsx)(n.SelectControl,{label:"Cart Style",value:e.cartStyle,options:[{label:"Icon with Count",value:"icon_count"},{label:"Icon with Total",value:"icon_total"},{label:"Icon with Count & Total",value:"icon_count_total"},{label:"Text Only",value:"text_only"}],onChange:e=>t({cartStyle:e})}),"text_only"===e.cartStyle&&(0,c.jsx)(n.TextControl,{label:"Cart Text",value:e.cartText,onChange:e=>t({cartText:e})}),(0,c.jsx)(n.ToggleControl,{label:"Show Cart Dropdown",checked:"yes"===e.showDropdown,onChange:e=>t({showDropdown:e?"yes":""})}),"yes"===e.showDropdown&&(0,c.jsx)(n.ToggleControl,{label:"Show Product Image",checked:"yes"===e.showProductImage,onChange:e=>t({showProductImage:e?"yes":""})}),(0,c.jsx)(n.TextControl,{label:"Empty Cart Text",value:e.emptyCartText,onChange:e=>t({emptyCartText:e})}),(0,c.jsx)(n.TextControl,{label:"Cart Page URL",value:e.cartPageUrl,onChange:e=>t({cartPageUrl:e})}),(0,c.jsx)(n.TextControl,{label:"Checkout Page URL",value:e.checkoutPageUrl,onChange:e=>t({checkoutPageUrl:e})})]})}),(0,c.jsx)(a(),{block:r.UU,attributes:e})]}),save:()=>null})})();