(()=>{"use strict";var c,o={2921:()=>{const c=window.wp.blocks,o=window.wp.i18n,r=window.wp.blockEditor,e=window.wp.components,t=window.ReactJSXRuntime,n=JSON.parse('{"UU":"carhop-blocks/content-card"}');(0,c.registerBlockType)(n.UU,{icon:{foreground:"#136f63",src:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M1,5c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM3,0H1C.4,0,0,.4,0,1v2c0,.6.4,1,1,1s1-.4,1-1v-1h1c.6,0,1-.4,1-1s-.4-1-1-1ZM6,2h2c.6,0,1-.4,1-1s-.4-1-1-1h-2c-.6,0-1,.4-1,1s.4,1,1,1ZM1,10c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM6,7v4c0,.6.4,1,1,1h4c.6,0,1-.4,1-1v-4c0-.6-.4-1-1-1h-4c-.6,0-1,.4-1,1ZM12,16h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1ZM17,9c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM17,4c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM17,14c-.6,0-1,.4-1,1v1h-1c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1v-2c0-.6-.4-1-1-1ZM7,16h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1ZM13,0h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1Z"})})})},edit:function({attributes:c,setAttributes:n,...s}){(0,r.useSetting)("color.palette.theme");const{hasBackgroundColor:a,backgroundColor:l,textColor:h,hasLightBackground:i,hasBorder:d}=c;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.InspectorControls,{children:(0,t.jsx)(e.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,o.__)("Options","carhop-blocks"),children:(0,t.jsx)(e.CheckboxControl,{label:"Bordure",checked:d,onChange:c=>n({hasBorder:c})})})}),(0,t.jsx)("div",{...(0,r.useBlockProps)({className:`content-card ${i?"content-card--bg-light":"content-card--bg-dark"} ${d?"content-card--has-border":""}`,style:{"--content-card-text-color":null!=h?h:"inherit","--content-card-background-color":a?l:"transparent"}}),children:(0,t.jsx)("div",{className:"content-card__innerblocks",children:(0,t.jsx)(r.InnerBlocks,{template:[["core/paragraph",{placeholder:"Ajouter ici le texte"}]],allowedBlocks:["core/heading","core/paragraph","core/group","core/list","core/button","core/buttons","carhop-blocks/heading","carhop-blocks/cta-group","carhop-blocks/cta"]})})})]})},save:function({attributes:c}){const{backgroundColor:o,textColor:e,hasLightBackground:n,hasBackgroundColor:s,hasBorder:a}=c;return(0,t.jsx)("div",{...r.useBlockProps.save({className:`content-card ${n?"content-card--bg-light":"content-card--bg-dark"} ${a?"content-card--has-border":""}`,style:{"--content-card-text-color":null!=e?e:"inherit","--content-card-background-color":s?o:"transparent"}}),children:(0,t.jsx)("div",{className:"content-card__innerblocks",children:(0,t.jsx)(r.InnerBlocks.Content,{})})})}})}},r={};function e(c){var t=r[c];if(void 0!==t)return t.exports;var n=r[c]={exports:{}};return o[c](n,n.exports,e),n.exports}e.m=o,c=[],e.O=(o,r,t,n)=>{if(!r){var s=1/0;for(i=0;i<c.length;i++){for(var[r,t,n]=c[i],a=!0,l=0;l<r.length;l++)(!1&n||s>=n)&&Object.keys(e.O).every(c=>e.O[c](r[l]))?r.splice(l--,1):(a=!1,n<s&&(s=n));if(a){c.splice(i--,1);var h=t();void 0!==h&&(o=h)}}return o}n=n||0;for(var i=c.length;i>0&&c[i-1][2]>n;i--)c[i]=c[i-1];c[i]=[r,t,n]},e.o=(c,o)=>Object.prototype.hasOwnProperty.call(c,o),(()=>{var c={892:0,7684:0};e.O.j=o=>0===c[o];var o=(o,r)=>{var t,n,[s,a,l]=r,h=0;if(s.some(o=>0!==c[o])){for(t in a)e.o(a,t)&&(e.m[t]=a[t]);if(l)var i=l(e)}for(o&&o(r);h<s.length;h++)n=s[h],e.o(c,n)&&c[n]&&c[n][0](),c[n]=0;return e.O(i)},r=globalThis.webpackChunkcarhop_blocks=globalThis.webpackChunkcarhop_blocks||[];r.forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r))})();var t=e.O(void 0,[7684],()=>e(2921));t=e.O(t)})();