(()=>{"use strict";window.wp.i18n;const t=window.wp.blocks;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,n,o){return(n=function(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}const o=window.React,i=window.wp.element,r=window.wp.blockEditor,a=window.wp.components;window.wp.serverSideRender,i.Component,window.wp.compose,i.Component,i.Component;class l extends i.Component{constructor(t){super(t),n(this,"onChangeType",(t=>{this.props.setAttributes({type:t})})),this.state={initiated:!1,post_types:[],loading:!0,show_instructions:!1}}render(){const{className:t,attributes:e}=this.props,{type:n}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(r.InspectorControls,null,(0,o.createElement)(a.PanelBody,{title:"Options"},(0,o.createElement)(a.SelectControl,{label:"Notifications Block Poition",labelPosition:"top",value:n,options:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"}],onChange:this.onChangeType}))),(0,o.createElement)(r.BlockControls,null),(0,o.createElement)(a.Disabled,null,(0,o.createElement)("div",{class:"atw-block atw-bg-gray-100 atw-px-4 atw-py-2 atw-rounded-lg atw-text-sm atw-text-center"},(0,o.createElement)("span",{class:"fas fa-warning atw-not-italic atw-text-gray-400 atw-mr-2"}),(0,o.createElement)("span",{class:"atw-text-xs atw-text-gray-600"},"Notifications (if any) will show here."))))}}const s=l,p=JSON.parse('{"name":"wpadverts/single-notification","textdomain":"wpadverts","apiVersion":1,"title":"Classifieds Single Notification","icon":"megaphone","category":"wpadverts","example":{},"attributes":{"post_type":{"type":"string","default":""},"type":{"type":"string","default":"top"}}}');(0,t.registerBlockType)(p,{edit:s,save:({attributes:t})=>null})})();