(()=>{"use strict";const e=window.wp.blocks,s=JSON.parse('{"UU":"better-messages/user-inbox"}'),t=window.wp.blockEditor,o=(window.wp.data,window.wp.i18n),i=(window.wp.serverSideRender,window.wp.components),n=(window.React,window.ReactJSXRuntime);(0,e.registerBlockType)(s.UU,{edit:function({attributes:e,setAttributes:s}){return(0,n.jsx)("div",{...(0,t.useBlockProps)(),children:(0,n.jsxs)("div",{className:"wp-block-better-messages-user-inbox-wrap",children:[(0,n.jsx)("div",{className:"chat-header",children:(0,n.jsxs)("div",{children:[(0,o.__)("Better Messages","bp-better-messages")," - ",(0,o.__)("User Inbox","bp-better-messages")]})}),(0,n.jsx)("div",{className:"chat-settings",children:(0,n.jsx)(i.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,o._x)("Auto open full screen in desktop mode","WP Admin","bp-better-messages"),help:(0,o._x)("The inbox will be opened in full screen mode when accessed from desktop devices or mobile full screen mode is disabled","WP Admin","bp-better-messages"),checked:e.fullScreen,onChange:e=>{s({fullScreen:e})}})})]})})},icon:(0,n.jsxs)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"200px",width:"200px",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M13 6.5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 .5-.5m0 3a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 .5-.5m-.5 2.5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1z"}),(0,n.jsx)("path",{d:"M14 0a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zM2 1a1 1 0 0 0-1 1v1h14V2a1 1 0 0 0-1-1zM1 4v10a1 1 0 0 0 1 1h2V4zm4 0v11h9a1 1 0 0 0 1-1V4z"})]})})})();