(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks,l=window.wp.blockEditor,i=window.wp.components,s=window.wp.serverSideRender,o=window.ReactJSXRuntime,n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"billy-blocks/theme-mod","title":"Theme Mod","icon":"admin-generic","category":"billy-blocks","textdomain":"billy","supports":{"inserter":false,"reusable":false,"html":false,"className":true},"attributes":{"themeMod":{"type":"string","default":""},"className":{"type":"string","default":""}},"editorScript":"file:./index.js","render":"file:./render.php"}'),{name:r}=n;(0,t.registerBlockType)({name:r,...n},{edit:function({attributes:t,setAttributes:n}){const{themeMod:r}=t,a=(0,l.useBlockProps)({className:"components-placeholder",style:{minHeight:"auto"}});return(0,o.jsxs)("div",{...a,children:[(0,o.jsx)(l.InspectorControls,{children:(0,o.jsx)(i.PanelBody,{title:(0,e.__)("Theme Mod","billy"),children:(0,o.jsx)(i.SelectControl,{label:(0,e.__)("Setting","billy"),help:(0,e.__)("Modify the value in the Theme Customizer.","billy"),options:globalDataBilly.themeModOptions,value:r??"",onChange:e=>{n({themeMod:e})}})})}),(0,o.jsx)(i.Disabled,{children:(0,o.jsx)(s.ServerSideRender,{block:"billy-blocks/theme-mod",attributes:t})})]})},save:function(){return null}})})();