(()=>{"use strict";var e,t={853(){const e=window.wp.blocks,t=window.React,i=window.wp.blockEditor,r=window.wp.components,o=window.wp.i18n,n=[["core/columns",{verticalAlignment:"center"},[["core/column",{width:"50%"},[["core/heading",{level:2,content:"Titre de la section"}],["core/paragraph",{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}],["core/buttons",{},[["core/button",{text:"En savoir plus"}]]]]],["core/column",{width:"50%"},[["core/image",{sizeSlug:"large",className:"vitalisite-rounded-image"}]]]]]],a=JSON.parse('{"UU":"vitalisite-fse/text-image"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{reversed:s,hasBackground:l}=e,c=["vitalisite-text-image","vitalisite-section",s?"is-reversed":"",l?"has-background":""].filter(Boolean).join(" "),d=(0,i.useBlockProps)({className:c});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(i.InspectorControls,null,(0,t.createElement)(r.PanelBody,{title:(0,o.__)("Mise en page","vitalisite-fse")},(0,t.createElement)(r.ToggleControl,{label:(0,o.__)("Inverser l'ordre","vitalisite-fse"),help:s?(0,o.__)("Image à gauche, texte à droite","vitalisite-fse"):(0,o.__)("Texte à gauche, image à droite","vitalisite-fse"),checked:s,onChange:e=>a({reversed:e})}),(0,t.createElement)(r.ToggleControl,{label:(0,o.__)("Afficher un fond","vitalisite-fse"),help:l?(0,o.__)("Fond coloré avec padding","vitalisite-fse"):(0,o.__)("Pas de fond","vitalisite-fse"),checked:l,onChange:e=>a({hasBackground:e})}))),(0,t.createElement)("section",{...d},(0,t.createElement)(i.InnerBlocks,{template:n})))},save:function({attributes:e}){const{reversed:r,hasBackground:o}=e,n=["vitalisite-text-image","vitalisite-section",r?"is-reversed":"",o?"has-background":""].filter(Boolean).join(" "),a=i.useBlockProps.save({className:n});return(0,t.createElement)("section",{...a},(0,t.createElement)(i.InnerBlocks.Content,null))}})}},i={};function r(e){var o=i[e];if(void 0!==o)return o.exports;var n=i[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.m=t,e=[],r.O=(t,i,o,n)=>{if(!i){var a=1/0;for(d=0;d<e.length;d++){for(var[i,o,n]=e[d],s=!0,l=0;l<i.length;l++)(!1&n||a>=n)&&Object.keys(r.O).every(e=>r.O[e](i[l]))?i.splice(l--,1):(s=!1,n<a&&(a=n));if(s){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[i,o,n]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={915:0,651:0};r.O.j=t=>0===e[t];var t=(t,i)=>{var o,n,[a,s,l]=i,c=0;if(a.some(t=>0!==e[t])){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(l)var d=l(r)}for(t&&t(i);c<a.length;c++)n=a[c],r.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return r.O(d)},i=globalThis.webpackChunkvitalisite_fse=globalThis.webpackChunkvitalisite_fse||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var o=r.O(void 0,[651],()=>r(853));o=r.O(o)})();