(()=>{"use strict";var e,t={406(){const e=window.wp.blocks,t=window.React,l=window.wp.blockEditor,a=window.wp.components,i=window.wp.i18n,o=JSON.parse('{"UU":"vitalisite-fse/card"}');(0,e.registerBlockType)(o.UU,{edit:function({attributes:e,setAttributes:o}){const{title:n,description:s,ctaText:r,ctaUrl:c,textColor:u}=e,v=(0,l.useBlockProps)({className:"vitalisite-card"}),p=u?{color:u}:{};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(l.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:(0,i.__)("Paramètres du bouton","vitalisite-fse")},(0,t.createElement)(a.TextControl,{label:(0,i.__)("Lien du bouton","vitalisite-fse"),value:c,onChange:e=>o({ctaUrl:e}),help:(0,i.__)("Ex: /services ou https://…","vitalisite-fse")})),(0,t.createElement)(l.PanelColorSettings,{title:(0,i.__)("Couleur du texte","vitalisite-fse"),colorSettings:[{value:u,onChange:e=>o({textColor:e}),label:(0,i.__)("Titre & description","vitalisite-fse")}]})),(0,t.createElement)("div",{...v},(0,t.createElement)(l.RichText,{tagName:"h3",className:"wp-block-heading",style:{fontWeight:"300",...p},value:n,onChange:e=>o({title:e}),placeholder:(0,i.__)("Titre...","vitalisite-fse")}),(0,t.createElement)(l.RichText,{tagName:"p",style:p,value:s,onChange:e=>o({description:e}),placeholder:(0,i.__)("Description...","vitalisite-fse")}),(0,t.createElement)("div",{className:"wp-block-buttons"},(0,t.createElement)("div",{className:"wp-block-button is-style-outline"},(0,t.createElement)(l.RichText,{tagName:"a",className:"wp-block-button__link",value:r,onChange:e=>o({ctaText:e}),placeholder:(0,i.__)("Texte bouton","vitalisite-fse")})))))},save:function({attributes:e}){const{title:a,description:i,ctaText:o,ctaUrl:n,textColor:s}=e,r=l.useBlockProps.save({className:"vitalisite-card"}),c=s?{color:s}:{};return(0,t.createElement)("div",{...r},a&&(0,t.createElement)(l.RichText.Content,{tagName:"h3",className:"wp-block-heading",style:{fontWeight:"300",...c},value:a}),i&&(0,t.createElement)(l.RichText.Content,{tagName:"p",style:c,value:i}),o&&(0,t.createElement)("div",{className:"wp-block-buttons"},(0,t.createElement)("div",{className:"wp-block-button is-style-outline"},(0,t.createElement)("a",{className:"wp-block-button__link",href:n},o))))}})}},l={};function a(e){var i=l[e];if(void 0!==i)return i.exports;var o=l[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.m=t,e=[],a.O=(t,l,i,o)=>{if(!l){var n=1/0;for(u=0;u<e.length;u++){for(var[l,i,o]=e[u],s=!0,r=0;r<l.length;r++)(!1&o||n>=o)&&Object.keys(a.O).every(e=>a.O[e](l[r]))?l.splice(r--,1):(s=!1,o<n&&(n=o));if(s){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[l,i,o]},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={860:0,84:0};a.O.j=t=>0===e[t];var t=(t,l)=>{var i,o,[n,s,r]=l,c=0;if(n.some(t=>0!==e[t])){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);if(r)var u=r(a)}for(t&&t(l);c<n.length;c++)o=n[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(u)},l=globalThis.webpackChunkvitalisite_fse=globalThis.webpackChunkvitalisite_fse||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var i=a.O(void 0,[84],()=>a(406));i=a.O(i)})();