(()=>{"use strict";var r,e={6120:()=>{const r=window.wp.blocks,e=window.wp.i18n,o=window.wp.blockEditor,l=window.wp.components,n=window.ReactJSXRuntime,s=JSON.parse('{"UU":"carhop-blocks/card-grid"}');(0,r.registerBlockType)(s.UU,{icon:{foreground:"#136f63",src:(0,n.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 100 100",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"m50,99.84988l-43.14852,-24.92494l0,-49.84988l43.14852,-24.92494l43.14852,24.92494l0,49.84988l-43.14852,24.92494zm-40.75518,-26.32675l40.75518,23.52312l40.75518,-23.52312l0,-47.04625l-40.75518,-23.55731l-40.75518,23.55731l0,47.04625z"}),(0,n.jsx)("path",{d:"m50,86.13945l-31.28439,-18.05263l0,-36.13945l31.28439,-18.05263l31.28439,18.05263l0,36.13945l-31.28439,18.05263zm-13.50528,-28.344l13.50528,7.79545l13.50528,-7.79545l0,-15.59091l-13.50528,-7.79545l-13.50528,7.79545l0,15.59091z"})]})})},edit:function({attributes:r,setAttributes:s,...c}){const{columns:t,cardsWithBorder:i}=r;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.InspectorControls,{children:[(0,n.jsx)(l.PanelBody,{title:(0,e.__)("Nombre de colonnes","carhop-blocks"),children:(0,n.jsx)(l.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,initialPosition:3,label:"Nombre de colonnes",max:4,min:2,onChange:r=>s({columns:r})})}),(0,n.jsx)(l.PanelBody,{title:(0,e.__)("Bordure des cartes","carhop-blocks"),children:(0,n.jsx)(l.CheckboxControl,{label:"Avec bordure",checked:i,onChange:r=>s({cardsWithBorder:r})})})]}),(0,n.jsx)("section",{...(0,o.useBlockProps)({className:`card-grid card-grid--columns-${t} card-grid--cards-${i?"with-border":"without-border"}`}),children:(0,n.jsx)("div",{className:"card-grid__innerblocks",children:(0,n.jsx)(o.InnerBlocks,{template:[["carhop-blocks/content-card",{placeholder:"Ajouter ici le texte"}]],allowedBlocks:["carhop-blocks/content-card"]})})})]})},save:function({attributes:r}){const{columns:e,cardsWithBorder:l,align:s}=r;return(0,n.jsx)("section",{...o.useBlockProps.save({className:`card-grid card-grid--columns-${e} card-grid--cards-${l?"with-border":"without-border"}${s?` align${s}`:""}`}),children:(0,n.jsx)("div",{className:"card-grid__innerblocks",children:(0,n.jsx)(o.InnerBlocks.Content,{})})})}})}},o={};function l(r){var n=o[r];if(void 0!==n)return n.exports;var s=o[r]={exports:{}};return e[r](s,s.exports,l),s.exports}l.m=e,r=[],l.O=(e,o,n,s)=>{if(!o){var c=1/0;for(d=0;d<r.length;d++){for(var[o,n,s]=r[d],t=!0,i=0;i<o.length;i++)(!1&s||c>=s)&&Object.keys(l.O).every(r=>l.O[r](o[i]))?o.splice(i--,1):(t=!1,s<c&&(c=s));if(t){r.splice(d--,1);var a=n();void 0!==a&&(e=a)}}return e}s=s||0;for(var d=r.length;d>0&&r[d-1][2]>s;d--)r[d]=r[d-1];r[d]=[o,n,s]},l.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={7227:0,5235:0};l.O.j=e=>0===r[e];var e=(e,o)=>{var n,s,[c,t,i]=o,a=0;if(c.some(e=>0!==r[e])){for(n in t)l.o(t,n)&&(l.m[n]=t[n]);if(i)var d=i(l)}for(e&&e(o);a<c.length;a++)s=c[a],l.o(r,s)&&r[s]&&r[s][0](),r[s]=0;return l.O(d)},o=globalThis.webpackChunkcarhop_blocks=globalThis.webpackChunkcarhop_blocks||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var n=l.O(void 0,[5235],()=>l(6120));n=l.O(n)})();