if(!customElements.get("remex-p2p-menu")){const t="dev"!=document.querySelector('meta[name="app-env"]')?.getAttribute("content"),e=document.querySelector('meta[name="x-cpl"]')?.getAttribute("content")||"1.0.0",n=async(n,o)=>new Promise(((r,i)=>{if(o&&customElements.get(o))r(!0);else{const a=document.createElement("script");o&&(a.tik=setInterval((()=>{customElements.get(o)&&(clearInterval(a.tik),r(!0))}),100)),a.src=`/cdn/${e}/${t?n.replace(".min.js","").replace(".js",".min.js"):n}`,a.async=!0,a.onload=()=>{a.tik&&clearInterval(a.tik),r(!0)},a.onerror=()=>{a.tik&&clearInterval(a.tik),i(!1)},document.head.appendChild(a)}}));n("microfronts/remex-icon//index.js","remex-icon");class o extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this._i18n={}}async loadScript(t,e){return await n(t,e)}static get observedAttributes(){return["i18n"]}set i18n(t){this._i18n=t||{},this.render()}get i18n(){return this._i18n??{}}attributeChangedCallback(t,e,n){
"i18n"===t&&e!==n&&(this._i18n=JSON.parse(n),this.render())}trans(t,e){let n=void 0!==this._i18n[t]?(this._i18n[t]??t).trim():t.trim();if(void 0!==e)for(var t in e)n=n.replace(t,e[t]).trim();return n.trim()}async connectedCallback(){await this.render()}async render(){this.items=[{label:this.trans("Publicar anuncio"),route:"/p2p/announcements/new",icon:"plusSquare"},{label:this.trans("Mis anuncios"),route:"/p2p/my-announcements",icon:"bullhorn"},{label:this.trans("Medios de Cobranza"),route:"/p2p/payment-methods",icon:"userPaymentMethod"},{icon:"squareStar",label:this.trans("Mi perfil P2P"),route:"/p2p/profile/me"},{icon:"deal",label:this.trans("Mis Tratos"),route:"/p2p/deals"},{icon:"lifebuoy",label:this.trans("Asistencia"),action:()=>{document.querySelector("#zsiq_float")?document.querySelector("#zsiq_float").click():window.location.href="/ayuda"}}]
;const t=await this.isConnected(),e="undefined"!=typeof Telegram&&void 0!==Telegram.WebApp&&""!=getComputedStyle(document.documentElement).getPropertyValue("--tg-theme-bg-color").trim();this.loadScript("microfronts/remex-p2p/flexbox.js","remex-flexbox").then((()=>{
this.shadowRoot.innerHTML=`\n