PageSourceSearch

https://www.pelicanolab.com/assets/js/dd817f50.b8d88c49.js

js pelicanolab.com collected 2026-10-08 20:06:47 UTC 2,814 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpelicano_website=self.webpackChunkpelicano_website||[]).push([[6538],{7894:(e,r,s)=>{s.r(r),s.d(r,{default:()=>h});var a=s(6540),n=s(797),i=s(539),t=s(6347),l=s(1410);const c="container_DSwP",u="button_container_DWA6";var o=s(4848),p=function(e){return e.MPP="mpp",e.ICONFIAR="iconfiar",e.DISTINTIVO="distintivo",e.PELICANO="pelicano",e}(p||{});const d="https://ndltobaczpduibdbgeta.supabase.co/storage/v1/object/public/logos/mpp-header-light-900.png",b="https://wgsyrpwxgunhutddkdfv.supabase.co/storage/v1/object/public/app-branding/iconfiar-header-light-900.png",g="https://wgsyrpwxgunhutddkdfv.supabase.co/storage/v1/object/public/app-branding/distintivo-header-light-900.png",m="https://wgsyrpwxgunhutddkdfv.supabase.co/storage/v1/object/public/app-branding/pelicano-banner-900.png",h=()=>{const[e,r]=(0,a.useState)(null),[s,h]=(0,a.useState)(!1),{siteConfig:{customFields:U}}=(0,n.A)(),x=(0,t.zy)(),[I,f]=(0,a.useState)(""),[w,A]=(0,a.useState)(null),j={10258:{url:U.apiUrl_10258,name:p.MPP,imgUrl:d},11623:{url:U.apiUrl_11623,name:p.MPP,imgUrl:d},DEFAULT:{url:U.apiUrl_default,name:p.MPP,imgUrl:d},13110:{url:U.apiUrl_13110,name:p.ICONFIAR,imgUrl:b},13109:{url:U.apiUrl_13109,name:p.ICONFIAR,imgUrl:b},12606:{url:U.apiUrl_12606,name:p.ICONFIAR,imgUrl:b},13108:{url:U.apiUrl_13108,name:p.DISTINTIVO,imgUrl:g},12519:{url:U.apiUrl_12519,name:p.DISTINTIVO,imgUrl:g},21580:{url:U.apiUrl_21580,name:p.PELICANO,imgUrl:m},21577:{url:U.apiUrl_21577,name:p.PELICANO,imgUrl:m},21576:{url:U.apiUrl_21576,name:p.PELICANO,imgUrl:m}};(0,a.useEffect)(()=>{const e=new URLSearchParams(x.search),r=e.get("token"),s=e.get("appid");r&&(f(r),A(s))},[x.search]);return(0,o.jsx)(l.A,{title:"Unsubscribe",children:(0,o.jsx)("div",{className:c,children:(0,o.jsx)("div",{className:"flex max-w-md flex-col items-center",children:(0,o.jsxs)("div",{className:`mx-auto my-8 space-y-6 px-2 text-${"success"===e?"green":"red"}-500`,style:{width:"50%",margin:"0 auto"},children:[(0,o.jsx)("img",{alt:e||"unsubscribe",src:j[w]?.imgUrl}),"error"===e&&(0,o.jsx)(i.A,{id:"unsubscribe.error",children:"Mensaje de error"}),"success"===e&&(0,o.jsx)(i.A,{id:"unsubscribe.success",children:"Mensaje de \xe9xito"}),null===e&&(0,o.jsx)("div",{className:u,children:(0,o.jsx)("button",{onClick:async()=>{if(I){h(!0);try{const e=function(e){return j[e]||j.DEFAULT}(w||"DEFAULT");if(!(await fetch(`${e.url}/store-user/unsubscribe?token=${I}`,{method:"PATCH",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Network response was not ok");r("success")}catch(e){r("error")}finally{h(!1)}}},disabled:s||"success"===e,className:"button button--secondary button--lg",children:s?(0,o.jsx)(i.A,{id:"loading",children:"Cargando..."}):(0,o.jsx)(i.A,{id:"unsubscribe.button",children:"Unsubscribe"})})})]})})})})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.