(()=>{"use strict";var e,n={8198:()=>{const e=window.wp.blocks,n=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,c=window.ReactJSXRuntime,r=JSON.parse('{"UU":"carhop-blocks/notice-panel"}');(0,e.registerBlockType)(r.UU,{icon:{src:(0,c.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",children:(0,c.jsx)("path",{d:"M16 24L8 16L16 8L24 16L16 24Z"})})},edit:function({attributes:e,setAttributes:r}){const{hasIcon:i}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.InspectorControls,{children:(0,c.jsx)(s.PanelBody,{title:(0,n.__)("Icone","carhop-blocks"),children:(0,c.jsx)(s.CheckboxControl,{label:(0,n.__)("Afficher une icône","carhop-blocks"),checked:i,onChange:e=>r({hasIcon:e})})})}),(0,c.jsx)("div",{...(0,o.useBlockProps)({className:"notice-panel"}),children:(0,c.jsxs)("div",{className:`notice-panel__content has-icon-${i}`,children:[i&&(0,c.jsx)("div",{className:"icon"}),(0,c.jsx)("div",{className:"innerblocks",children:(0,c.jsx)(o.InnerBlocks,{template:[["core/paragraph",{placeholder:"Ajouter ici le texte"}]]})})]})})]})},save:function({attributes:e}){const{hasIcon:n}=e;return(0,c.jsx)("div",{...o.useBlockProps.save({className:"notice-panel"}),children:(0,c.jsxs)("div",{className:`notice-panel__content has-icon-${n}`,children:[n&&(0,c.jsx)("div",{className:"icon"}),(0,c.jsx)("div",{className:"innerblocks",children:(0,c.jsx)(o.InnerBlocks.Content,{})})]})})}})}},o={};function s(e){var c=o[e];if(void 0!==c)return c.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,s),r.exports}s.m=n,e=[],s.O=(n,o,c,r)=>{if(!o){var i=1/0;for(h=0;h<e.length;h++){for(var[o,c,r]=e[h],t=!0,a=0;a<o.length;a++)(!1&r||i>=r)&&Object.keys(s.O).every(e=>s.O[e](o[a]))?o.splice(a--,1):(t=!1,r<i&&(i=r));if(t){e.splice(h--,1);var l=c();void 0!==l&&(n=l)}}return n}r=r||0;for(var h=e.length;h>0&&e[h-1][2]>r;h--)e[h]=e[h-1];e[h]=[o,c,r]},s.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={4247:0,5871:0};s.O.j=n=>0===e[n];var n=(n,o)=>{var c,r,[i,t,a]=o,l=0;if(i.some(n=>0!==e[n])){for(c in t)s.o(t,c)&&(s.m[c]=t[c]);if(a)var h=a(s)}for(n&&n(o);l<i.length;l++)r=i[l],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(h)},o=globalThis.webpackChunkcarhop_blocks=globalThis.webpackChunkcarhop_blocks||[];o.forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o))})();var c=s.O(void 0,[5871],()=>s(8198));c=s.O(c)})();