(()=>{"use strict";var e,t={181:(e,t,r)=>{const n=window.wp.blocks,o=window.wp.element,s=(window.wp.i18n,window.wp.blockEditor),l=(window.wp.components,window.wp.serverSideRender);var i=r.n(l);const a=JSON.parse('{"u2":"powerpress/player-block"}');(0,n.registerBlockType)(a.u2,{edit:function(e){const{subscribe:t}=wp.data;if(t((()=>{let t=wp.data.select("core/editor").getCurrentPostId(),r=e.attributes.feed_slug,n=wpCookies.get("pp_event_"+r+"_"+t+"_success"),o=wpCookies.get("pp_event_"+r+"_"+t+"_add_notice");if((n||o)&&(n&&(wpCookies.remove("pp_event_"+r+"_"+t+"_success","/"),e.setAttributes({updated:!0})),o)){let n=document.getElementsByClassName("pp-block-error-"+e.clientId);n.length>0&&(n[0].innerHTML=o.replace("+"," "),n[0].classList.add("alert"),n[0].classList.add("alert-danger"),wpCookies.remove("pp_event_"+r+"_"+t+"_add_notice","/"))}})),""!==e.clientId){var r=0;let t=setInterval((function(){document.getElementById("select-feed-"+e.clientId)&&(document.getElementById("select-feed-"+e.clientId).removeAttribute("disabled"),document.getElementById("select-feed-"+e.clientId).addEventListener("change",(function(t){e.setAttributes({feed_slug:t.currentTarget.value}),t.currentTarget.setAttribute("disabled","disabled")})),clearInterval(t)),r>20&&clearInterval(t),r++}),500)}return""===e.attributes.id?(e.setAttributes({id:e.clientId}),(0,o.createElement)("p",null,"LOADING")):(0,o.createElement)("div",{...(0,s.useBlockProps)()},(0,o.createElement)(i(),{block:"powerpress/player-block",attributes:e.attributes}))},save:function(){return null}})}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.m=t,e=[],n.O=(t,r,o,s)=>{if(!r){var l=1/0;for(c=0;c<e.length;c++){r=e[c][0],o=e[c][1],s=e[c][2];for(var i=!0,a=0;a<r.length;a++)(!1&s||l>=s)&&Object.keys(n.O).every((e=>n.O[e](r[a])))?r.splice(a--,1):(i=!1,s<l&&(l=s));if(i){e.splice(c--,1);var d=o();void 0!==d&&(t=d)}}return t}s=s||0;for(var c=e.length;c>0&&e[c-1][2]>s;c--)e[c]=e[c-1];e[c]=[r,o,s]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={826:0,431:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,s,l=r[0],i=r[1],a=r[2],d=0;if(l.some((t=>0!==e[t]))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(a)var c=a(n)}for(t&&t(r);d<l.length;d++)s=l[d],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(c)},r=self.webpackChunkplayer_block=self.webpackChunkplayer_block||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o=n.O(void 0,[431],(()=>n(181)));o=n.O(o)})();