(()=>{"use strict";const e=window.wp.blocks,t=window.React,i=window.wp.blockEditor,a=window.wp.components,l=window.wp.i18n,n=JSON.parse('{"UU":"vitalisite-fse/pricing-item"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{title:c,description:s,price:r,buttonText:o,buttonUrl:p}=e,m=(0,i.useBlockProps)({className:"vitalisite-pricing-list-card"});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(i.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:(0,l.__)("Bouton","vitalisite-fse")},(0,t.createElement)(a.TextControl,{label:(0,l.__)("URL du bouton","vitalisite-fse"),value:p,onChange:e=>n({buttonUrl:e})}))),(0,t.createElement)("div",{...m},(0,t.createElement)("div",{className:"vitalisite-pricing-list-card__content"},(0,t.createElement)(i.RichText,{tagName:"h3",value:c,onChange:e=>n({title:e}),placeholder:(0,l.__)("Titre du service...","vitalisite-fse")}),(0,t.createElement)(i.RichText,{tagName:"p",className:"vitalisite-pricing-list-card__description",value:s,onChange:e=>n({description:e}),placeholder:(0,l.__)("Description...","vitalisite-fse")})),(0,t.createElement)("div",{className:"vitalisite-pricing-list-card__action"},(0,t.createElement)(i.RichText,{tagName:"p",className:"vitalisite-pricing-list-card__price",value:r,onChange:e=>n({price:e}),placeholder:"00€"}),(0,t.createElement)("div",{className:"wp-block-button btn-primary"},(0,t.createElement)(i.RichText,{tagName:"span",className:"wp-block-button__link wp-element-button",value:o,onChange:e=>n({buttonText:e}),placeholder:(0,l.__)("Texte du bouton...","vitalisite-fse")})))))},save:()=>null})})();