(()=>{"use strict";var o,r={3184:()=>{const o=window.wp.blocks,r=window.wp.i18n,e=window.wp.blockEditor,s=window.wp.components,n=window.ReactJSXRuntime,t=JSON.parse('{"UU":"carhop-blocks/scroll-story-block"}');(0,o.registerBlockType)(t.UU,{icon:{src:(0,n.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",children:(0,n.jsx)("path",{d:"M22,13v8a1,1,0,0,1-1,1H13a1,1,0,0,1-1-1V13a1,1,0,0,1,1-1h8A1,1,0,0,1,22,13ZM7,6A1,1,0,0,0,6,7v9a1,1,0,0,0,1,1h3V10.5a.5.5,0,0,1,.5-.5H17V7a1,1,0,0,0-1-1ZM3,13H4V4.5A.5.5,0,0,1,4.5,4H13V3a1,1,0,0,0-1-1H3A1,1,0,0,0,2,3v9A1,1,0,0,0,3,13Z"})}),foreground:"#136f63"},edit:function({attributes:o,setAttributes:t}){const{hasNumbering:c}=o;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.InspectorControls,{children:(0,n.jsx)(s.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,r.__)("Numérotation","deligraph-blocks"),children:(0,n.jsx)(s.CheckboxControl,{label:"Afficher la numérotation",checked:c,onChange:o=>t({hasNumbering:o})})})}),(0,n.jsx)("div",{...(0,e.useBlockProps)({className:"scroll-story-block "+(c?"scroll-story-block--has-numbering":"")}),children:(0,n.jsx)(e.InnerBlocks,{allowedBlocks:["carhop-blocks/narrative-card"],template:[["carhop-blocks/narrative-card",{hasCover:!0,coverPosition:"left",innerBlocks:[["core/heading",{content:"Lorem ipsum"}],["core/paragraph",{content:"Lorem ipsum dolor sit amet consectetur adipisicing elit."}]]}],["carhop-blocks/narrative-card",{hasCover:!0,coverPosition:"right",innerBlocks:[["core/heading",{content:"Lorem ipsum"}],["core/paragraph",{content:"Lorem ipsum dolor sit amet consectetur adipisicing elit."}]]}]]})})]})},save:function({attributes:o}){const{hasNumbering:r}=o;return(0,n.jsx)("div",{...e.useBlockProps.save({className:"scroll-story-block "+(r?"scroll-story-block--has-numbering":"")}),children:(0,n.jsx)(e.InnerBlocks.Content,{})})}})}},e={};function s(o){var n=e[o];if(void 0!==n)return n.exports;var t=e[o]={exports:{}};return r[o](t,t.exports,s),t.exports}s.m=r,o=[],s.O=(r,e,n,t)=>{if(!e){var c=1/0;for(h=0;h<o.length;h++){for(var[e,n,t]=o[h],a=!0,i=0;i<e.length;i++)(!1&t||c>=t)&&Object.keys(s.O).every(o=>s.O[o](e[i]))?e.splice(i--,1):(a=!1,t<c&&(c=t));if(a){o.splice(h--,1);var l=n();void 0!==l&&(r=l)}}return r}t=t||0;for(var h=o.length;h>0&&o[h-1][2]>t;h--)o[h]=o[h-1];o[h]=[e,n,t]},s.o=(o,r)=>Object.prototype.hasOwnProperty.call(o,r),(()=>{var o={6233:0,2029:0};s.O.j=r=>0===o[r];var r=(r,e)=>{var n,t,[c,a,i]=e,l=0;if(c.some(r=>0!==o[r])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(i)var h=i(s)}for(r&&r(e);l<c.length;l++)t=c[l],s.o(o,t)&&o[t]&&o[t][0](),o[t]=0;return s.O(h)},e=globalThis.webpackChunkcarhop_blocks=globalThis.webpackChunkcarhop_blocks||[];e.forEach(r.bind(null,0)),e.push=r.bind(null,e.push.bind(e))})();var n=s.O(void 0,[2029],()=>s(3184));n=s.O(n)})();