(()=>{"use strict";const e=window.wp.blockEditor,i=window.wp.blocks,t=window.wp.components,s=window.wp.i18n,l=window.ReactJSXRuntime;(0,i.registerBlockType)("ally/custom-link",{apiVersion:3,title:(0,s.__)("Ally Widget Trigger","pojo-accessibility"),icon:"admin-links",category:"widgets",attributes:{linkText:{type:"string",default:(0,s.__)("Open Ally Widget","pojo-accessibility")}},edit:({attributes:i,setAttributes:n})=>{const o=(0,e.useBlockProps)();return(0,l.jsx)("div",{...o,children:(0,l.jsx)(t.TextControl,{label:(0,s.__)("Link Text","pojo-accessibility"),value:i.linkText,onChange:e=>n({linkText:e})})})},save:({attributes:i})=>{const t=e.useBlockProps.save();return(0,l.jsx)("div",{...t,children:(0,l.jsx)("a",{className:"ally-widget-trigger",href:"#",children:i.linkText})})}})})();