(()=>{"use strict";var e,t={487:(e,t,l)=>{const a=window.wp.blocks,r=window.React,n=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,c=window.wp.serverSideRender;var i=l.n(c);const p=JSON.parse('{"UU":"project-pages-blocks/tag-cloud"}');(0,a.registerBlockType)(p.UU,{edit:function({attributes:e,setAttributes:t}){const l=(0,o.useBlockProps)({className:"project-pages-blocks"}),{align:a,label:c,hideEmpty:g,specifyTags:m}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:(0,n.__)("Settings","projectpages"),initialOpen:!0},(0,r.createElement)(s.PanelRow,null,(0,r.createElement)("fieldset",null,(0,r.createElement)(s.TextControl,{label:(0,n.__)("Label","projectpages"),value:c,placeholder:(0,n.__)("e.g. Tags:","projectpages"),onChange:e=>{t({label:e})},help:(0,n.__)("Text to display before the tag list","projectpages")}))),(0,r.createElement)(s.PanelRow,null,(0,r.createElement)("fieldset",null,(0,r.createElement)(s.ToggleControl,{label:(0,n.__)("Hide Empty Tags","projectpages"),checked:g,onChange:()=>{t({hideEmpty:!g})},help:(0,n.__)("Hide tags with no associated Project Pages","projectpages")}))),(0,r.createElement)(s.PanelRow,null,(0,r.createElement)("fieldset",null,(0,r.createElement)(s.TextControl,{label:(0,n.__)("Specify Tags","projectpages"),value:m,placeholder:(0,n.__)("e.g. maker,furniture,commissions","projectpages"),onChange:e=>{t({specifyTags:e})},help:(0,n.__)("Comma deliminated tags to show","projectpages")})))),(0,r.createElement)(s.PanelBody,{title:(0,n.__)("Project Pages","projectpages"),initialOpen:!0},(0,r.createElement)(s.PanelRow,null,(0,r.createElement)(s.__experimentalText,{color:"#1e1e1e",size:"12px",weight:"400",align:"justify"},"Project Pages is a side project made for the ❤️ of making. It really helps me to hear what you think, so please do give feedback by clicking the button below:")),(0,r.createElement)(s.PanelRow,null,(0,r.createElement)(s.Button,{variant:"primary",href:"https://forms.gle/sAhUjTcNABN6ZgGLA",target:"_blank"},"Give Feedback")))),(0,r.createElement)(o.BlockControls,{group:"block"},(0,r.createElement)(o.AlignmentControl,{value:a,onChange:e=>{t({align:void 0===e?"none":e})}})),(0,r.createElement)("div",{...l},(0,r.createElement)(s.Disabled,null,(0,r.createElement)(i(),{block:p.UU,skipBlockSupportAttributes:!0,attributes:e}))))},save:function({attributes:e}){const t=o.useBlockProps.save({className:"project-pages-blocks-log-summary"}),{align:l,label:a,hideEmpty:s,specifyTags:c}=e,i=t.className;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{...t,className:i},(0,r.createElement)(o.RichText.Content,{tagName:"div",value:(0,n.__)(" Tag List will display here","projectpages"),style:{textAlign:l}})))}})}},l={};function a(e){var r=l[e];if(void 0!==r)return r.exports;var n=l[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.m=t,e=[],a.O=(t,l,r,n)=>{if(!l){var o=1/0;for(p=0;p<e.length;p++){for(var[l,r,n]=e[p],s=!0,c=0;c<l.length;c++)(!1&n||o>=n)&&Object.keys(a.O).every((e=>a.O[e](l[c])))?l.splice(c--,1):(s=!1,n<o&&(o=n));if(s){e.splice(p--,1);var i=r();void 0!==i&&(t=i)}}return t}n=n||0;for(var p=e.length;p>0&&e[p-1][2]>n;p--)e[p]=e[p-1];e[p]=[l,r,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={44:0,116:0};a.O.j=t=>0===e[t];var t=(t,l)=>{var r,n,[o,s,c]=l,i=0;if(o.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)var p=c(a)}for(t&&t(l);i<o.length;i++)n=o[i],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(p)},l=globalThis.webpackChunkproject_pages_blocks=globalThis.webpackChunkproject_pages_blocks||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var r=a.O(void 0,[116],(()=>a(487)));r=a.O(r)})();