(()=>{"use strict";var e,o={8999:()=>{const e=window.wp.blocks,o=window.wp.i18n,r=window.wp.blockEditor,s=window.wp.components,t=window.ReactJSXRuntime,c=JSON.parse('{"UU":"carhop-blocks/story-timeline-step"}');(0,e.registerBlockType)(c.UU,{icon:{foreground:"#136f63",src:(0,t.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,t.jsx)("g",{stroke:"null",id:"svg_10",class:"fills",children:(0,t.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:c,...l}){const{year:i}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.InspectorControls,{children:(0,t.jsx)(s.PanelBody,{title:(0,o.__)("Étape de timeline","carhop-blocks"),children:(0,t.jsx)(s.__experimentalNumberControl,{label:(0,o.__)("Année","carhop-blocks"),value:i,onChange:e=>{const o=parseInt(e,10);c({year:Number.isFinite(o)?o:void 0})}})})}),(0,t.jsxs)("div",{...(0,r.useBlockProps)({className:"story-timeline-step",id:`year-${i}`}),children:[(0,t.jsx)("p",{className:"story-timeline-step__year",children:i}),(0,t.jsx)("div",{className:"story-timeline-step__innerblocks",children:(0,t.jsx)(r.InnerBlocks,{allowedBlocks:["core/heading","core/paragraph","core/group","core/list","core/button","core/image","core/buttons","core/columns","core/post-title","core/embed","core/quote","core/pullquote","core/media-text","core/table","carhop-blocks/image-stack","carhop-blocks/heading","carhop-blocks/decorative-shapes","carhop-blocks/scroll-story-block","carhop-blocks/cta-group","carhop-blocks/audio-player","carhop-blocks/localisation-map","carhop-blocks/notice-panel","acf/statistics-datas","ninja-forms/form","gravityforms/form","dynamiques-blocks/sitemap","mailpoet/subscription-form-block","shortcode"]})})]})]})},save:function({attributes:e}){const{year:o}=e;return(0,t.jsxs)("div",{...r.useBlockProps.save({className:"story-timeline-step",id:`year-${o}`}),children:[(0,t.jsx)("p",{className:"story-timeline-step__year",children:o}),(0,t.jsx)("div",{className:"story-timeline-step__innerblocks",children:(0,t.jsx)(r.InnerBlocks.Content,{})})]})}})}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var c=r[e]={exports:{}};return o[e](c,c.exports,s),c.exports}s.m=o,e=[],s.O=(o,r,t,c)=>{if(!r){var l=1/0;for(p=0;p<e.length;p++){for(var[r,t,c]=e[p],i=!0,a=0;a<r.length;a++)(!1&c||l>=c)&&Object.keys(s.O).every(e=>s.O[e](r[a]))?r.splice(a--,1):(i=!1,c<l&&(l=c));if(i){e.splice(p--,1);var n=t();void 0!==n&&(o=n)}}return o}c=c||0;for(var p=e.length;p>0&&e[p-1][2]>c;p--)e[p]=e[p-1];e[p]=[r,t,c]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6896:0,2824:0};s.O.j=o=>0===e[o];var o=(o,r)=>{var t,c,[l,i,a]=r,n=0;if(l.some(o=>0!==e[o])){for(t in i)s.o(i,t)&&(s.m[t]=i[t]);if(a)var p=a(s)}for(o&&o(r);n<l.length;n++)c=l[n],s.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return s.O(p)},r=globalThis.webpackChunkcarhop_blocks=globalThis.webpackChunkcarhop_blocks||[];r.forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r))})();var t=s.O(void 0,[2824],()=>s(8999));t=s.O(t)})();