(()=>{"use strict";var e,t={836(){const e=window.wp.blocks,t=window.wp.i18n,n=window.wp.blockEditor,r=window.wp.components,o=window.ReactJSXRuntime,a=JSON.parse('{"UU":"clanbite/match-card"}');(0,e.registerBlockType)(a.UU,{edit:function({attributes:e,setAttributes:a}){const{matchId:i}=e;return(0,o.jsxs)("div",{...(0,n.useBlockProps)(),children:[(0,o.jsx)(n.InspectorControls,{children:(0,o.jsx)(r.PanelBody,{title:(0,t.__)("Match card","clanbite"),children:(0,o.jsx)(r.TextControl,{label:(0,t.__)("Match post ID","clanbite"),help:(0,t.__)("The `cp_match` post ID to display.","clanbite"),type:"number",value:i||"",onChange:e=>a({matchId:parseInt(e,10)||0}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})})}),(0,o.jsx)("p",{className:"clanbite-match-card-editor-note",children:(0,t.__)("Match card (preview on the front end).","clanbite")})]})},save:()=>null})}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>{if(!n){var i=1/0;for(p=0;p<e.length;p++){for(var[n,o,a]=e[p],c=!0,l=0;l<n.length;l++)(!1&a||i>=a)&&Object.keys(r.O).every(e=>r.O[e](n[l]))?n.splice(l--,1):(c=!1,a<i&&(i=a));if(c){e.splice(p--,1);var s=o();void 0!==s&&(t=s)}}return t}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[n,o,a]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={1246:0,1602:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[i,c,l]=n,s=0;if(i.some(t=>0!==e[t])){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(l)var p=l(r)}for(t&&t(n);s<i.length;s++)a=i[s],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(p)},n=globalThis.webpackChunkclanbite=globalThis.webpackChunkclanbite||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[1602],()=>r(836));o=r.O(o)})();