(()=>{"use strict";const e=window.ReactJSXRuntime,{__}=wp.i18n,{registerBlockType:t}=wp.blocks,{RichText:n,MediaUpload:s,InspectorControls:o,InnerBlocks:a}=wp.blockEditor,{Button:i,PanelBody:r,SelectControl:c}=wp.components;t("xgate/faq-item",{title:__("Faq item","xgate"),icon:"smiley",category:"xgate-blocks",attributes:{question:{type:"string"},answer:{type:"string"}},edit:function(t){const{attributes:s,setAttributes:o,className:a}=t,{question:i,answer:r,content:c}=s;return(0,e.jsxs)("div",{className:a,children:[(0,e.jsx)("h1",{children:"Question - Answer"}),(0,e.jsx)(n,{tagName:"h1",placeholder:__("Add Question","xgate"),value:i,onChange:e=>{o({question:e})}}),(0,e.jsx)(n,{tagName:"h2",placeholder:__("Add Answer","xgate"),value:r,onChange:e=>{o({answer:e})}})]})},save:function(){return null}})})();