(()=>{"use strict";var n,o={325(){const n=window.wp.blocks,o=window.wp.blockEditor,t=window.wp.components,e=window.wp.i18n,i=JSON.parse('{"UU":"clanbite/notification-bell"}'),r=window.ReactJSXRuntime;(0,n.registerBlockType)(i.UU,{edit:function({attributes:n,setAttributes:i}){const{showDropdown:l,dropdownCount:a}=n,s=(0,o.useBlockProps)({className:"clanbite-notification-bell"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.InspectorControls,{children:(0,r.jsxs)(t.PanelBody,{title:(0,e.__)("Settings","clanbite"),children:[(0,r.jsx)(t.ToggleControl,{label:(0,e.__)("Show dropdown on click","clanbite"),checked:l,onChange:n=>i({showDropdown:n}),__nextHasNoMarginBottom:!0}),l&&(0,r.jsx)(t.RangeControl,{label:(0,e.__)("Notifications in dropdown","clanbite"),value:a,onChange:n=>i({dropdownCount:n}),min:3,max:20})]})}),(0,r.jsx)("div",{...s,children:(0,r.jsxs)("button",{type:"button",className:"clanbite-notification-bell__trigger","aria-label":(0,e.__)("Notifications","clanbite"),children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:(0,r.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"})}),(0,r.jsx)("span",{className:"clanbite-notification-bell__badge",children:"3"})]})})]})}})}},t={};function e(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return o[n](r,r.exports,e),r.exports}e.m=o,n=[],e.O=(o,t,i,r)=>{if(!t){var l=1/0;for(d=0;d<n.length;d++){for(var[t,i,r]=n[d],a=!0,s=0;s<t.length;s++)(!1&r||l>=r)&&Object.keys(e.O).every(n=>e.O[n](t[s]))?t.splice(s--,1):(a=!1,r<l&&(l=r));if(a){n.splice(d--,1);var c=i();void 0!==c&&(o=c)}}return o}r=r||0;for(var d=n.length;d>0&&n[d-1][2]>r;d--)n[d]=n[d-1];n[d]=[t,i,r]},e.o=(n,o)=>Object.prototype.hasOwnProperty.call(n,o),(()=>{var n={4712:0,8448:0};e.O.j=o=>0===n[o];var o=(o,t)=>{var i,r,[l,a,s]=t,c=0;if(l.some(o=>0!==n[o])){for(i in a)e.o(a,i)&&(e.m[i]=a[i]);if(s)var d=s(e)}for(o&&o(t);c<l.length;c++)r=l[c],e.o(n,r)&&n[r]&&n[r][0](),n[r]=0;return e.O(d)},t=globalThis.webpackChunkclanbite=globalThis.webpackChunkclanbite||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var i=e.O(void 0,[8448],()=>e(325));i=e.O(i)})();