File: /home/zwafgyp/locationdebateau/wp-content/plugins/buddypress/bp-core/blocks/login-form/index.js
(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,o=window.React,n=window.wp.blockEditor,r=window.wp.components,i=window.wp.i18n,s=window.wp.serverSideRender;var l=e.n(s);const d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"bp/login-form","title":"Login Form","category":"widgets","icon":"admin-users","description":"Show a Log In form to logged-out visitors, and a Log Out link to those who are logged in.","keywords":["BuddyPress","connexion","registration","login","community"],"textdomain":"buddypress","attributes":{"title":{"type":"string","default":""},"forgotPwdLink":{"type":"boolean","default":false}},"supports":{"align":true},"editorScript":"file:index.js","style":"file:index.css"}');(0,t.registerBlockType)(d,{icon:{background:"#fff",foreground:"#d84800",src:"admin-users"},edit:({attributes:e,setAttributes:t})=>{const s=(0,n.useBlockProps)(),{title:d,forgotPwdLink:a}=e;return(0,o.createElement)("div",{...s},(0,o.createElement)(n.InspectorControls,null,(0,o.createElement)(r.PanelBody,{title:(0,i.__)("Settings","buddypress"),initialOpen:!0},(0,o.createElement)(r.TextControl,{label:(0,i.__)("Title","buddypress"),value:d,onChange:e=>{t({title:e})}}),(0,o.createElement)(r.ToggleControl,{label:(0,i.__)("Include the link to reset the user password","buddypress"),checked:!!a,onChange:()=>{t({forgotPwdLink:!a})}}))),(0,o.createElement)(r.Disabled,null,(0,o.createElement)(l(),{block:"bp/login-form",attributes:e})))}})})();