(()=>{"use strict";var e,t={646(){const e=window.wp.blocks,t=window.React,i=window.wp.blockEditor,a=window.wp.components,n=window.wp.i18n,o=["vitalisite-fse/accordion-item"],l=[["vitalisite-fse/accordion-item",{summary:"Question 1 ?"}],["vitalisite-fse/accordion-item",{summary:"Question 2 ?"}]],r={simple:"vitalisite-accordion-container",legacy:"vitalisite-accordion-container vitalisite-accordion-variant-legacy"},s={simple:"vitalisite-accordion-container",legacy:"vitalisite-accordion-container vitalisite-accordion-variant-legacy"},c=JSON.parse('{"UU":"vitalisite-fse/accordion"}');(0,e.registerBlockType)(c.UU,{edit:function({attributes:e,setAttributes:s}){const{variant:c}=e,v=(0,i.useBlockProps)({className:r[c]||r.simple});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(i.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:(0,n.__)("Style de l'accordéon","vitalisite-fse")},(0,t.createElement)(a.SelectControl,{label:(0,n.__)("Variante","vitalisite-fse"),value:c,options:[{label:(0,n.__)("Simple (minimaliste)","vitalisite-fse"),value:"simple"},{label:(0,n.__)("Boxed (coloré)","vitalisite-fse"),value:"legacy"}],onChange:e=>s({variant:e})}))),(0,t.createElement)("div",{...v},(0,t.createElement)(i.InnerBlocks,{allowedBlocks:o,template:l,templateLock:!1,renderAppender:i.InnerBlocks.ButtonBlockAppender})))},save:function({attributes:e}){const{variant:a}=e,n=i.useBlockProps.save({className:s[a]||s.simple});return(0,t.createElement)("div",{...n},(0,t.createElement)(i.InnerBlocks.Content,null))}})}},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var o=i[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.m=t,e=[],a.O=(t,i,n,o)=>{if(!i){var l=1/0;for(v=0;v<e.length;v++){for(var[i,n,o]=e[v],r=!0,s=0;s<i.length;s++)(!1&o||l>=o)&&Object.keys(a.O).every(e=>a.O[e](i[s]))?i.splice(s--,1):(r=!1,o<l&&(l=o));if(r){e.splice(v--,1);var c=n();void 0!==c&&(t=c)}}return t}o=o||0;for(var v=e.length;v>0&&e[v-1][2]>o;v--)e[v]=e[v-1];e[v]=[i,n,o]},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={170:0,246:0};a.O.j=t=>0===e[t];var t=(t,i)=>{var n,o,[l,r,s]=i,c=0;if(l.some(t=>0!==e[t])){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(s)var v=s(a)}for(t&&t(i);c<l.length;c++)o=l[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(v)},i=globalThis.webpackChunkvitalisite_fse=globalThis.webpackChunkvitalisite_fse||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var n=a.O(void 0,[246],()=>a(646));n=a.O(n)})();