1 line
3.5 KiB
JavaScript
1 line
3.5 KiB
JavaScript
(()=>{"use strict";var e,i={2172:()=>{const e=window.wp.blocks,i=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,r=window.ReactJSXRuntime,l=JSON.parse('{"UU":"carhop-blocks/highlight-timeline-step"}');(0,e.registerBlockType)(l.UU,{icon:{foreground:"#136f63",src:(0,r.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,r.jsx)("g",{stroke:"null",id:"svg_10",class:"fills",children:(0,r.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:l,...t}){const{year:c}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.InspectorControls,{children:(0,r.jsx)(s.PanelBody,{title:(0,i.__)("Étape de timeline","carhop-blocks"),children:(0,r.jsx)(s.__experimentalNumberControl,{label:(0,i.__)("Année","carhop-blocks"),value:c,onChange:e=>{const i=parseInt(e,10);l({year:Number.isFinite(i)?i:void 0})}})})}),(0,r.jsxs)("div",{...(0,o.useBlockProps)({className:"highlight-timeline-step",id:`year-${c}`}),children:[(0,r.jsx)("div",{className:"highlight-timeline-step__year",children:(0,r.jsx)("p",{className:"highlight-timeline-step__year-text",children:c})}),(0,r.jsx)("div",{className:"highlight-timeline-step__innerblocks",children:(0,r.jsx)(o.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-highlight-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:i}=e;return(0,r.jsxs)("div",{...o.useBlockProps.save({className:"highlight-timeline-step swiper-slide",id:`year-${i}`}),children:[(0,r.jsx)("div",{className:"highlight-timeline-step__year",children:(0,r.jsx)("p",{className:"highlight-timeline-step__year-text",children:i})}),(0,r.jsx)("div",{className:"highlight-timeline-step__innerblocks",children:(0,r.jsx)(o.InnerBlocks.Content,{})})]})}})}},o={};function s(e){var r=o[e];if(void 0!==r)return r.exports;var l=o[e]={exports:{}};return i[e](l,l.exports,s),l.exports}s.m=i,e=[],s.O=(i,o,r,l)=>{if(!o){var t=1/0;for(h=0;h<e.length;h++){for(var[o,r,l]=e[h],c=!0,a=0;a<o.length;a++)(!1&l||t>=l)&&Object.keys(s.O).every(e=>s.O[e](o[a]))?o.splice(a--,1):(c=!1,l<t&&(t=l));if(c){e.splice(h--,1);var n=r();void 0!==n&&(i=n)}}return i}l=l||0;for(var h=e.length;h>0&&e[h-1][2]>l;h--)e[h]=e[h-1];e[h]=[o,r,l]},s.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={8319:0,7511:0};s.O.j=i=>0===e[i];var i=(i,o)=>{var r,l,[t,c,a]=o,n=0;if(t.some(i=>0!==e[i])){for(r in c)s.o(c,r)&&(s.m[r]=c[r]);if(a)var h=a(s)}for(i&&i(o);n<t.length;n++)l=t[n],s.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return s.O(h)},o=globalThis.webpackChunkcarhop_blocks=globalThis.webpackChunkcarhop_blocks||[];o.forEach(i.bind(null,0)),o.push=i.bind(null,o.push.bind(o))})();var r=s.O(void 0,[7511],()=>s(2172));r=s.O(r)})(); |