(()=>{"use strict";var e,t={899(){const e=window.wp.blocks,t=window.wp.blockEditor,n=window.wp.components,o=window.wp.data,r=window.wp.i18n;function i(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=i(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const s=function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=i(e))&&(o&&(o+=" "),o+=t);return o};function l(e){return!e||"center center"===e}const a=window.ReactJSXRuntime,c=JSON.parse('{"UU":"clanbite/team-cover"}');(0,e.registerBlockType)(c.UU,{edit:function({attributes:e,clientId:i,setAttributes:c}){const{contentPosition:p,templateLock:u}=e,v=(0,o.useSelect)(e=>e(t.store).getBlock(i).innerBlocks.length>0,[i]),d=s({"has-custom-content-position":!l(p)},function(e){var t;if(!e)return"";const n=e.split(" "),o=n[0],r=null!==(t=n[1])&&void 0!==t?t:n[0],i=[];return o&&i.push(`is-position-${o}`),r&&r!==o&&i.push(`is-position-${r}`),i.join(" ")}(p)),f=(0,t.useBlockProps)(),h=(0,t.useInnerBlocksProps)({className:"team-cover__inner-container"},{template:v?void 0:[],templateInsertUpdatesSelection:!0,templateLock:u});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.BlockControls,{group:"block",children:(0,a.jsx)(t.__experimentalBlockAlignmentMatrixControl,{label:(0,r.__)("Change content position","clanbite"),value:p,onChange:e=>c({contentPosition:e}),isDisabled:!v})}),(0,a.jsxs)("div",{...f,className:s(d,f.className),children:[(0,a.jsx)(n.Placeholder,{className:"team-cover__background--placeholder",withIllustration:!0}),(0,a.jsx)("div",{...h})]})]})},save:function(){return(0,a.jsx)(t.InnerBlocks.Content,{})}})}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var s=1/0;for(p=0;p<e.length;p++){for(var[n,r,i]=e[p],l=!0,a=0;a<n.length;a++)(!1&i||s>=i)&&Object.keys(o.O).every(e=>o.O[e](n[a]))?n.splice(a--,1):(l=!1,i<s&&(s=i));if(l){e.splice(p--,1);var c=r();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,r,i]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={8294:0,7242:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[s,l,a]=n,c=0;if(s.some(t=>0!==e[t])){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(a)var p=a(o)}for(t&&t(n);c<s.length;c++)i=s[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(p)},n=globalThis.webpackChunkclanbite=globalThis.webpackChunkclanbite||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[7242],()=>o(899));r=o.O(r)})();