(()=>{"use strict";var e,r={2397:()=>{const e=window.wp.blocks,r=window.wp.i18n,o=window.wp.blockEditor,l=window.wp.components,n=window.ReactJSXRuntime,i=JSON.parse('{"UU":"carhop-blocks/heading"}');(0,e.registerBlockType)(i.UU,{icon:{foreground:"#136f63",src:(0,n.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,n.jsx)("g",{stroke:"null",id:"svg_10",class:"fills",children:(0,n.jsx)("path",{stroke:"null",d:"m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z"})})})},edit:function({attributes:e,setAttributes:i,...s}){const{hierarchy:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.InspectorControls,{children:(0,n.jsx)(l.PanelBody,{title:(0,r.__)("Aspect","carhop-blocks"),children:(0,n.jsxs)(l.__experimentalToggleGroupControl,{label:"Hiérarchie",value:a,onChange:function(e){i({hierarchy:e})},isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:[(0,n.jsx)(l.__experimentalToggleGroupControlOption,{value:"classic",label:"Classique"}),(0,n.jsx)(l.__experimentalToggleGroupControlOption,{value:"inverted",label:"Inversé"})]})})}),(0,n.jsx)("div",{...(0,o.useBlockProps)({className:`carhop-heading carhop-heading--hierarchy-${a}`}),children:(0,n.jsx)("div",{className:"carhop-heading__innerblocks",children:(0,n.jsx)(o.InnerBlocks,{template:[["core/heading",{placeholder:"Saisir le titre",content:"Titre"}],["core/paragraph",{placeholder:"Saisir le sous-titre supérieur",content:"Sous-titre"}]],allowedBlocks:["core/heading","core/paragraph","core/post-title"]})})})]})},save:function({attributes:e}){const{hierarchy:r}=e;return(0,n.jsx)("div",{...o.useBlockProps.save({className:`carhop-heading carhop-heading--hierarchy-${r}`}),children:(0,n.jsx)("div",{className:"carhop-heading__innerblocks",children:(0,n.jsx)(o.InnerBlocks.Content,{})})})}})}},o={};function l(e){var n=o[e];if(void 0!==n)return n.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,l),i.exports}l.m=r,e=[],l.O=(r,o,n,i)=>{if(!o){var s=1/0;for(h=0;h<e.length;h++){for(var[o,n,i]=e[h],a=!0,t=0;t<o.length;t++)(!1&i||s>=i)&&Object.keys(l.O).every(e=>l.O[e](o[t]))?o.splice(t--,1):(a=!1,i<s&&(s=i));if(a){e.splice(h--,1);var c=n();void 0!==c&&(r=c)}}return r}i=i||0;for(var h=e.length;h>0&&e[h-1][2]>i;h--)e[h]=e[h-1];e[h]=[o,n,i]},l.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={5430:0,6778:0};l.O.j=r=>0===e[r];var r=(r,o)=>{var n,i,[s,a,t]=o,c=0;if(s.some(r=>0!==e[r])){for(n in a)l.o(a,n)&&(l.m[n]=a[n]);if(t)var h=t(l)}for(r&&r(o);c<s.length;c++)i=s[c],l.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return l.O(h)},o=globalThis.webpackChunkcarhop_blocks=globalThis.webpackChunkcarhop_blocks||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var n=l.O(void 0,[6778],()=>l(2397));n=l.O(n)})();