(()=>{"use strict";var e,t={87(){const e=window.wp.blocks,t=window.wp.i18n,n=window.wp.blockEditor,a=window.wp.components,l=window.ReactJSXRuntime,i=JSON.parse('{"UU":"clanbite/team-manage-link"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:i}){const{label:r}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.InspectorControls,{children:(0,l.jsx)(a.PanelBody,{title:(0,t.__)("Link text","clanbite"),children:(0,l.jsx)(a.TextControl,{label:(0,t.__)("Label","clanbite"),help:(0,t.__)("Leave empty to use the default “Manage team” label on the front end.","clanbite"),value:r,onChange:e=>i({label:null!=e?e:""}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})})}),(0,l.jsxs)("div",{...(0,n.useBlockProps)(),children:[(0,l.jsx)("p",{className:"clanbite-team-manage-link clanbite-team-manage-link--editor-preview",children:(0,l.jsx)("a",{href:"#clanbite-team-manage-link-preview",onClick:e=>e.preventDefault(),children:r||(0,t.__)("Manage team","clanbite")})}),(0,l.jsx)("p",{className:"clanbite-team-block-placeholder",children:(0,t.__)("On the site, this link only appears for users who can edit this team.","clanbite")})]})]})}})}},n={};function a(e){var l=n[e];if(void 0!==l)return l.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,a),i.exports}a.m=t,e=[],a.O=(t,n,l,i)=>{if(!n){var r=1/0;for(p=0;p<e.length;p++){for(var[n,l,i]=e[p],o=!0,s=0;s<n.length;s++)(!1&i||r>=i)&&Object.keys(a.O).every(e=>a.O[e](n[s]))?n.splice(s--,1):(o=!1,i<r&&(r=i));if(o){e.splice(p--,1);var c=l();void 0!==c&&(t=c)}}return t}i=i||0;for(var p=e.length;p>0&&e[p-1][2]>i;p--)e[p]=e[p-1];e[p]=[n,l,i]},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={7473:0,3013:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var l,i,[r,o,s]=n,c=0;if(r.some(t=>0!==e[t])){for(l in o)a.o(o,l)&&(a.m[l]=o[l]);if(s)var p=s(a)}for(t&&t(n);c<r.length;c++)i=r[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(p)},n=globalThis.webpackChunkclanbite=globalThis.webpackChunkclanbite||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=a.O(void 0,[3013],()=>a(87));l=a.O(l)})();