(()=>{"use strict";var e,t={249:()=>{const e=window.wp.element,t=window.wp.blocks,o=window.wp.i18n,r=window.wp.blockEditor,n=window.wp.components,s=window.wp.data,l=window.wp.coreData,a=window.wp.date,i=JSON.parse('{"u2":"crosswinds-blocks/project-information"}');(0,t.registerBlockType)(i.u2,{icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:"#171247",class:"fa-primary",d:"M256 192c17.67 0 32-14.33 32-32c0-17.67-14.33-32-32-32S224 142.3 224 160C224 177.7 238.3 192 256 192zM296 336h-16V248C280 234.8 269.3 224 256 224H224C210.8 224 200 234.8 200 248S210.8 272 224 272h8v64h-16C202.8 336 192 346.8 192 360S202.8 384 216 384h80c13.25 0 24-10.75 24-24S309.3 336 296 336z"}),(0,e.createElement)("path",{fill:"#8200ff",class:"fa-secondary",d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"}))},edit:function(t){const{attributes:i,setAttributes:c,context:p}=t,{portafoglioClient:u,portafoglioDate:m}=i,{postId:d,postType:w}=p,g=(0,a.getSettings)(),[b=g.formats.date]=(0,l.useEntityProp)("root","site","date_format"),f="project_category",v=(0,s.useSelect)((e=>{const{getTaxonomy:t}=e(l.store),o=t(f);return o?.visibility?.publicly_queryable?o:{}}),[f]),{postTerms:h,hasPostTerms:y,isLoading:_}=function(e){let{postId:t,term:o}=e;const{slug:r}=o;return(0,s.useSelect)((e=>{const n=o?.visibility?.publicly_queryable;if(!n)return{postTerms:[],_isLoading:!1,hasPostTerms:!1};const{getEntityRecords:s,isResolving:a}=e(l.store),i=["taxonomy",r,{post:t,per_page:-1,context:"view"}],c=s(...i);return{postTerms:c,isLoading:a("getEntityRecords",i),hasPostTerms:!!c?.length}}),[t,o?.visibility?.publicly_queryable])}({postId:d,term:v});let E="";E=null!==h?h.map((t=>(0,e.createElement)("span",{key:t.id},unescape(t.name)))):"";let k="";k=""!==u?(0,e.createElement)("span",null,(0,e.createElement)("strong",null,(0,o.__)("Client: ","crosswinds-blocks"))," ",u," ",(0,e.createElement)("br",null)):"";let C="";""!==m&&(C=(0,e.createElement)("span",null,(0,e.createElement)("strong",null,(0,o.__)("Date: ","crosswinds-blocks"))," ",(0,a.dateI18n)(b,m)," ",(0,e.createElement)("br",null)));const x=(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,o.__)("Project Information","crosswinds-blocks")},(0,e.createElement)(n.TextControl,{label:(0,o.__)("Project Client","crosswinds-blocks"),value:u,onChange:e=>c({portafoglioClient:e})}),(0,o.__)("Project Date","crosswinds-blocks"),(0,e.createElement)(n.DatePicker,{currentDate:m,onChange:e=>c({portafoglioDate:e}),is12Hour:!0,__nextRemoveHelpButton:!0,__nextRemoveResetButton:!0}))));return(0,e.createElement)(e.Fragment,null,x,(0,e.createElement)("p",(0,r.useBlockProps)(),k,C,(0,e.createElement)("strong",null,(0,o.__)("Category: ","portafoglio"))," ",E," ",(0,e.createElement)("br",null)))}})}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var s=o[e]={exports:{}};return t[e](s,s.exports,r),s.exports}r.m=t,e=[],r.O=(t,o,n,s)=>{if(!o){var l=1/0;for(p=0;p<e.length;p++){for(var[o,n,s]=e[p],a=!0,i=0;i<o.length;i++)(!1&s||l>=s)&&Object.keys(r.O).every((e=>r.O[e](o[i])))?o.splice(i--,1):(a=!1,s<l&&(l=s));if(a){e.splice(p--,1);var c=n();void 0!==c&&(t=c)}}return t}s=s||0;for(var p=e.length;p>0&&e[p-1][2]>s;p--)e[p]=e[p-1];e[p]=[o,n,s]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={2113:0,6269:0};r.O.j=t=>0===e[t];var t=(t,o)=>{var n,s,[l,a,i]=o,c=0;if(l.some((t=>0!==e[t]))){for(n in a)r.o(a,n)&&(r.m[n]=a[n]);if(i)var p=i(r)}for(t&&t(o);c<l.length;c++)s=l[c],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return r.O(p)},o=globalThis.webpackChunkstarter_block=globalThis.webpackChunkstarter_block||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var n=r.O(void 0,[6269],(()=>r(249)));n=r.O(n)})();