(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,i=window.wp.blockEditor,c=window.wp.components,o=window.wp.blocks,l=JSON.parse('{"UU":"wc-quick-view-ultimate/quick-view-button"}');(0,o.registerBlockType)(l.UU,{edit:({attributes:o,setAttributes:l})=>{const n=(0,i.useBlockProps)(),{displayType:a}=o;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.InspectorControls,null,(0,e.createElement)(c.PanelBody,{title:(0,t.__)("Settings","woocommerce-products-quick-view"),initialOpen:!0},(0,e.createElement)(c.ToggleControl,{label:(0,t.__)("Display on Hover","woocommerce-products-quick-view"),help:"hover"===a?(0,t.__)("Button will appear when hovering over product image.","woocommerce-products-quick-view"):(0,t.__)("Button will appear where you put the block.","woocommerce-products-quick-view"),checked:"hover"===a,onChange:e=>l({displayType:e?"hover":"under"})}))),(0,e.createElement)("div",n,(0,e.createElement)("div",{className:"wc-quick-view-block-preview"},(0,e.createElement)("div",{className:"wc-quick-view-placeholder"},"hover"===a?(0,e.createElement)("div",{className:"quick_view_ultimate_container"},(0,e.createElement)("div",{className:"quick_view_ultimate_content"},(0,e.createElement)("span",{className:"quick_view_ultimate_button quick_view_ultimate_click"},(0,t.__)("Quick View Button (Hover)","woocommerce-products-quick-view")))):(0,e.createElement)("div",{className:"quick_view_ultimate_container_under"},(0,e.createElement)("div",{className:"quick_view_ultimate_content_under"},(0,e.createElement)("span",{className:"quick_view_ultimate_under_link quick_view_ultimate_click"},(0,t.__)("Quick View Button","woocommerce-products-quick-view"))))))))},save:()=>null})})();