(()=>{"use strict";var e,l={257(){const e=window.wp.blocks,l=window.wp.i18n,n=window.wp.blockEditor,t=window.wp.components,a=window.ReactJSXRuntime;function r({attributes:e,setAttributes:r,toggleLabel:i}){const{isLink:o,linkTarget:s,rel:c}=e;return(0,a.jsx)(n.InspectorControls,{children:(0,a.jsxs)(t.__experimentalToolsPanel,{label:(0,l.__)("Link","clanbite"),resetAll:()=>r({isLink:!1,linkTarget:"_self",rel:""}),children:[(0,a.jsx)(t.__experimentalToolsPanelItem,{label:i,isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>r({isLink:!1,linkTarget:"_self",rel:""}),children:(0,a.jsx)(t.ToggleControl,{label:i,checked:!!o,onChange:e=>r({isLink:!!e}),__nextHasNoMarginBottom:!0})}),o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.__experimentalToolsPanelItem,{label:(0,l.__)("Open in new tab","clanbite"),isShownByDefault:!0,hasValue:()=>"_blank"===s,onDeselect:()=>r({linkTarget:"_self"}),children:(0,a.jsx)(t.ToggleControl,{label:(0,l.__)("Open in new tab","clanbite"),checked:"_blank"===s,onChange:e=>r({linkTarget:e?"_blank":"_self"}),__nextHasNoMarginBottom:!0})}),(0,a.jsx)(t.__experimentalToolsPanelItem,{label:(0,l.__)("Link rel","clanbite"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({rel:""}),children:(0,a.jsx)(t.TextControl,{label:(0,l.__)("Link rel","clanbite"),value:c||"",onChange:e=>r({rel:null!=e?e:""}),help:(0,l.__)("Optional rel value. noopener and noreferrer are added automatically for new tabs.","clanbite"),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})})]}):null]})})}const i=JSON.parse('{"UU":"clanbite/player-website"}');(0,e.registerBlockType)(i.UU,{edit:function({attributes:e,setAttributes:t}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r,{attributes:e,setAttributes:t,toggleLabel:(0,l.__)("Link to website URL","clanbite")}),(0,a.jsx)("div",{...(0,n.useBlockProps)(),children:(0,a.jsx)("p",{className:"clanbite-player-block-placeholder",children:(0,l.__)("Player website (only shows when the player has set one)","clanbite")})})]})}})}},n={};function t(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}};return l[e](r,r.exports,t),r.exports}t.m=l,e=[],t.O=(l,n,a,r)=>{if(!n){var i=1/0;for(b=0;b<e.length;b++){for(var[n,a,r]=e[b],o=!0,s=0;s<n.length;s++)(!1&r||i>=r)&&Object.keys(t.O).every(e=>t.O[e](n[s]))?n.splice(s--,1):(o=!1,r<i&&(i=r));if(o){e.splice(b--,1);var c=a();void 0!==c&&(l=c)}}return l}r=r||0;for(var b=e.length;b>0&&e[b-1][2]>r;b--)e[b]=e[b-1];e[b]=[n,a,r]},t.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={5252:0,7020:0};t.O.j=l=>0===e[l];var l=(l,n)=>{var a,r,[i,o,s]=n,c=0;if(i.some(l=>0!==e[l])){for(a in o)t.o(o,a)&&(t.m[a]=o[a]);if(s)var b=s(t)}for(l&&l(n);c<i.length;c++)r=i[c],t.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return t.O(b)},n=globalThis.webpackChunkclanbite=globalThis.webpackChunkclanbite||[];n.forEach(l.bind(null,0)),n.push=l.bind(null,n.push.bind(n))})();var a=t.O(void 0,[7020],()=>t(257));a=t.O(a)})();