"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const block_editor_1=require("@wordpress/block-editor"),classnames_1=__importDefault(require("classnames")),element_1=require("@wordpress/element"),tab_button_1=require("./tab-button");function Edit({attributes:e,context:t}){const o=(0,block_editor_1.useBlockProps)(),{id:r,title:l,order:c}=e,n=(null==t?void 0:t.selectedTab)===r,a=(0,classnames_1.default)("wp-block-woocommerce-product-tab__content",{"is-selected":n});return(0,element_1.createElement)("div",{...o},(0,element_1.createElement)(tab_button_1.TabButton,{id:r,selected:n,order:c},l),(0,element_1.createElement)("div",{id:`woocommerce-product-tab__${r}-content`,"aria-labelledby":`woocommerce-product-tab__${r}`,role:"tabpanel",className:a},(0,element_1.createElement)(block_editor_1.InnerBlocks,{templateLock:"contentOnly"})))}exports.Edit=Edit;