!function(e){var t={};function n(r){if(t[r])return t[r].exports;var l=t[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,n),l.l=!0,l.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)n.d(r,l,function(t){return e[t]}.bind(null,l));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=wp.element,l=(r.createElement,r.useState,r.useEffect,r.Fragment,r.render,wp.data);l.dispatch,l.select;function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,l=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(l)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var a=wp.element,o=(a.createElement,a.useState),c=a.useEffect,u=a.Fragment,m=(a.render,wp.data),d=(m.dispatch,m.select),p=function(e){var t=i(o(!0),2),n=t[0],r=t[1],l=i(o(!0),2),a=l[0],m=l[1],p=i(o(null),2),s=p[0],f=p[1];return c((function(){m(!0),fetch("".concat(window.vibebp.api.url,"/profile?client_id=").concat(window.vibebp.settings.client_id,"&force"),{method:"post",body:JSON.stringify({id:e.id,token:d("vibebp").getToken()})}).then((function(e){return e.json()})).then((function(e){f(e),m(!1)})),r(!0)}),[e.id]),n?wp.element.createElement("div",{className:"single_item_popup"},wp.element.createElement("div",{className:"header"},wp.element.createElement("span",null),wp.element.createElement("span",{className:"button small",onClick:function(){r(!1)}},wp.element.createElement("span",{className:"vicon vicon-close"}),window.vibebp.translations.close)),a?wp.element.createElement("div",{className:"loader"},wp.element.createElement("div",{class:"lds-ellipsis"},wp.element.createElement("div",null),wp.element.createElement("div",null),wp.element.createElement("div",null),wp.element.createElement("div",null))):wp.element.createElement(u,null,s.length?wp.element.createElement("div",{className:"member_card",dangerouslySetInnerHTML:{__html:s}}):"")):""},s=(n(0),wp.element),f=(s.createElement,s.useState,s.useEffect,s.Fragment,s.render),v=wp.data;v.dispatch,v.select;document.addEventListener("member_card_clicked",(function(e){e.detail.original_event.preventDefault(),document.getElementById("single_item_popup")&&document.getElementById("single_item_popup").remove();var t=document.createElement("div");t.innerHTML="",t.id="single_item_popup",document.body.appendChild(t),e.detail.hasOwnProperty("id")&&f(wp.element.createElement(p,{id:e.detail.id,member:e.detail.member}),document.getElementById("single_item_popup"))}))}]);