(()=>{"use strict";var e,o={4962:()=>{const e=window.wp.blocks,o=window.wp.i18n,r=window.wp.blockEditor,c=window.wp.components,t=window.ReactJSXRuntime,n=JSON.parse('{"UU":"carhop-blocks/tab","DD":"Tab"}');(0,e.registerBlockType)(n.UU,{icon:{src:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"83.3",height:"83.3",viewBox:"0 0 83.3 83.3",children:(0,t.jsx)("path",{fill:"#146E63",d:"M72.7,0H10.7C4.8,0,0,4.8,0,10.7v62c0,5.9,4.8,10.7,10.7,10.7h62c5.9,0,10.7-4.8,10.7-10.7V10.7c0-5.9-4.8-10.7-10.7-10.7ZM10.7,5.8h62c2.7,0,4.8,2.2,4.8,4.8v8.7H5.8v-8.7c0-2.7,2.2-4.8,4.8-4.8ZM72.7,77.5H10.7c-2.7,0-4.8-2.2-4.8-4.8V25.2h71.7v47.5c0,1.3-.5,2.5-1.4,3.4s-2.1,1.4-3.4,1.4h0ZM9.7,12.5c0-1.5,1.3-2.7,2.8-2.8h19.5c.8-.1,1.7.2,2.3.7.6.6,1,1.3,1,2.2s-.4,1.6-1,2.2c-.6.6-1.5.8-2.3.7H12.5c-.8,0-1.5-.4-2-.9-.5-.6-.8-1.3-.8-2.1h0Z"})})},__experimentalLabel:e=>{const o=e?.title?.trim();return o||n.DD},edit:function({attributes:e,setAttributes:n}){const{title:a,iconId:l,iconUrl:i}=e,s=(0,r.useBlockProps)({className:"block-chapo"});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.InspectorControls,{children:[(0,t.jsx)(c.PanelBody,{title:(0,o.__)("Tab","carhop-blocks"),children:(0,t.jsx)(c.TextControl,{label:(0,o.__)("Titre","carhop-blocks"),value:a,onChange:e=>n({title:e})})}),(0,t.jsx)(c.PanelBody,{title:(0,o.__)("Icône","carhop-blocks"),children:(0,t.jsx)(r.MediaUploadCheck,{children:(0,t.jsx)(r.MediaUpload,{onSelect:e=>n({iconId:e.id,iconUrl:e.url}),allowedTypes:["image"],value:l,render:({open:e})=>(0,t.jsx)(t.Fragment,{children:i?(0,t.jsxs)("div",{className:"tab__icon-preview",children:[(0,t.jsx)("img",{src:i,alt:"",style:{maxWidth:48,height:"auto"}}),(0,t.jsxs)("div",{style:{marginTop:8},children:[(0,t.jsx)(c.Button,{variant:"secondary",onClick:e,style:{marginRight:8},children:(0,o.__)("Remplacer","carhop-blocks")}),(0,t.jsx)(c.Button,{variant:"tertiary",isDestructive:!0,onClick:()=>n({iconId:0,iconUrl:""}),children:(0,o.__)("Supprimer","carhop-blocks")})]})]}):(0,t.jsx)(c.Button,{variant:"secondary",onClick:e,children:(0,o.__)("Choisir une image","carhop-blocks")})})})})})]}),(0,t.jsx)("div",{...s,children:(0,t.jsx)(r.InnerBlocks,{allowedBlocks:["core/heading","core/paragraph","core/list","core/button","core/buttons","core/image","core/embed","core/quote","core/pullquote","core/media-text","core/table","core/group","core/columns","core/post-title","carhop-blocks/cta","carhop-blocks/heading","carhop-blocks/cta-group","carhop-blocks/audio-player","carhop-blocks/content-box","carhop-blocks/content-card","carhop-blocks/notice-panel","shortcode"],template:[["core/heading",{content:"Titre",level:3}],["core/paragraph",{content:"Contenu"}]]})})]})},save:function({attributes:e}){const{title:o}=e;return r.useBlockProps.save({className:"tab"}),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.InnerBlocks.Content,{})})}})}},r={};function c(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,c),n.exports}c.m=o,e=[],c.O=(o,r,t,n)=>{if(!r){var a=1/0;for(h=0;h<e.length;h++){for(var[r,t,n]=e[h],l=!0,i=0;i<r.length;i++)(!1&n||a>=n)&&Object.keys(c.O).every(e=>c.O[e](r[i]))?r.splice(i--,1):(l=!1,n<a&&(a=n));if(l){e.splice(h--,1);var s=t();void 0!==s&&(o=s)}}return o}n=n||0;for(var h=e.length;h>0&&e[h-1][2]>n;h--)e[h]=e[h-1];e[h]=[r,t,n]},c.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6941:0,7345:0};c.O.j=o=>0===e[o];var o=(o,r)=>{var t,n,[a,l,i]=r,s=0;if(a.some(o=>0!==e[o])){for(t in l)c.o(l,t)&&(c.m[t]=l[t]);if(i)var h=i(c)}for(o&&o(r);s<a.length;s++)n=a[s],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return c.O(h)},r=globalThis.webpackChunkcarhop_blocks=globalThis.webpackChunkcarhop_blocks||[];r.forEach(o.bind(null,0)),r.push=o.bind(null,r.push.bind(r))})();var t=c.O(void 0,[7345],()=>c(4962));t=c.O(t)})();