(()=>{"use strict";var e,t={716:()=>{const e=window.wp.blocks,t=window.wp.blockEditor,r=window.wp.url,o=window.wp.element,a=window.wp.i18n,i=JSON.parse('{"UU":"matador-jobs/job-relative-age"}');(0,e.registerBlockType)(i.UU,{edit:function(e){var i=e.attributes,n=e.setAttributes,l=e.context,s=(0,t.useBlockProps)({className:"matador-job-relative-age-block"}),c=i.postId,p=void 0===c?l.postId:c,v=i.relativeAge;return(0,o.useEffect)((function(){wp.apiFetch({path:(0,r.addQueryArgs)("matador/v1/jobs/job-listings/".concat(p),{fields:"relativeAge"})}).then((function(e){var t;null!=e&&e.relativeAge&&(t=null==e?void 0:e.relativeAge,n({relativeAge:t}))}))}),[p,n]),React.createElement(React.Fragment,null,React.createElement("p",s,v||(0,a.__)("Loading...","matador-jobs")))}})}},r={};function o(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,r,a,i)=>{if(!r){var n=1/0;for(p=0;p<e.length;p++){for(var[r,a,i]=e[p],l=!0,s=0;s<r.length;s++)(!1&i||n>=i)&&Object.keys(o.O).every((e=>o.O[e](r[s])))?r.splice(s--,1):(l=!1,i<n&&(n=i));if(l){e.splice(p--,1);var c=a();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]=[r,a,i]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={406:0,58:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var a,i,[n,l,s]=r,c=0;if(n.some((t=>0!==e[t]))){for(a in l)o.o(l,a)&&(o.m[a]=l[a]);if(s)var p=s(o)}for(t&&t(r);c<n.length;c++)i=n[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(p)},r=globalThis.webpackChunkmatador_plugin=globalThis.webpackChunkmatador_plugin||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=o.O(void 0,[58],(()=>o(716)));a=o.O(a)})();