(()=>{"use strict";const e=window.ReactJSXRuntime,{__}=wp.i18n,{registerBlockType:t}=wp.blocks,{RichText:i,MediaUpload:s,InspectorControls:a,InnerBlocks:n}=wp.blockEditor,{Button:l,PanelBody:r,SelectControl:o}=wp.components;t("xgate/service-list",{title:__("Service List","xgate"),icon:"excerpt-view",category:"xgate-blocks",attributes:{variant:{type:"string",default:"services"}},providesContext:{"xgate/service-list-variant":"variant"},edit:function(t){const{attributes:i,setAttributes:s}=t,{variant:l}=i;return(0,e.jsxs)("div",{style:{border:"1px solid black",padding:"10px"},children:[(0,e.jsx)("h2",{children:"Service item Container "}),(0,e.jsx)(a,{children:(0,e.jsx)(r,{title:__("Block Settings","xgate"),children:(0,e.jsx)(o,{label:__("Content Variant","xgate"),value:l,options:[{label:__("","xgate"),value:""},{label:__("Services","xgate"),value:"services"},{label:__("Assets","xgate"),value:"assets"}],onChange:e=>{s({variant:e})}})})}),(0,e.jsx)(n,{allowedBlocks:["xgate/service-list-item"]})]})},save:t=>(0,e.jsx)(n.Content,{})})})();