(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,n=window.wp.blocks,r=window.wp.blockEditor,l=window.wp.components,o=window.wp.serverSideRender;var a=e.n(o);const s=window.wp.i18n,i=JSON.parse('{"UU":"vitalisite-fse/opening-hours"}');(0,n.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:n}){const{showStatus:o,showEmergency:c,emergencyText:u}=e,d=(0,r.useBlockProps)({className:"vitalisite-opening-hours-block"});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(r.InspectorControls,null,(0,t.createElement)(l.PanelBody,{title:(0,s.__)("Réglages","vitalisite-fse")},(0,t.createElement)(l.ToggleControl,{label:(0,s.__)("Afficher le statut ouvert/fermé","vitalisite-fse"),checked:o,onChange:e=>n({showStatus:e})}),(0,t.createElement)(l.ToggleControl,{label:(0,s.__)("Afficher le message d'urgence","vitalisite-fse"),checked:c,onChange:e=>n({showEmergency:e})}),c&&(0,t.createElement)(l.TextareaControl,{label:(0,s.__)("Texte d'urgence","vitalisite-fse"),value:u,onChange:e=>n({emergencyText:e})}))),(0,t.createElement)("div",{...d},(0,t.createElement)(l.Disabled,null,(0,t.createElement)(a(),{block:i.UU,attributes:e}))))},save:()=>null})})();