PageSourceSearch

https://app-cdn.helloscreen.com/NotificationConfirmation.745b58d3.js

js helloscreen.com collected 2026-10-08 16:09:26 UTC 2,704 bytes, 2 lines download raw bytes

1function e(e,t,i,n){Object.defineProperty(e,t,{get:i,set:n,enumerable:!0,configurable:!0})}var t=globalThis.parcelRequire94c2,i=t.register;i("8Cu3Q",function(i,n){Object.defineProperty(i.exports,"__esModule",{value:!0,configurable:!0}),e(i.exports,"default",()=>p);var o=t("ayMG0"),r=t("acw62"),a=t("36IHg"),u=t("aACZr"),c=t("bsRud"),l=t("jFdmN"),f=t("dtKoB"),s=t("5aE2v"),d=t("hW7sX"),m=t("7xuAh");function p(){let[e]=(0,a.useSearchParams)(),t="true"===e.get("unsubscribed");(0,u.default)(t?(0,f.default)("Unsubscribed"):(0,f.default)("Confirm"));let i=(0,m.default)(),{confirm:n,openModal:p}=(0,s.useModal)(),[g,b]=(0,r.useState)(),{confirmation:y,isLoading:h}=(0,d.useApiData)("up.emailNotifications.confirmation.show",{actionId:e.get("actionId")||"",publicKey:e.get("publicKey")||"",secretKey:e.get("secretKey")||""},{enable:!t,onError:({error:e})=>{b(e)}}),{call:v}=(0,d.useApi)("up.emailNotifications.actions.do",{publicKey:e.get("publicKey")||"",secretKey:e.get("secretKey")||""});return(0,r.useEffect)(()=>{t&&n({afterClose:()=>{i(["up.root",{}])},confirmText:(0,f.default)("Return home"),content:(0,f.default)("You will no longer receive email reminders about this."),title:(0,f.default)("Unsubscribed")})},[t,n,i]),(0,r.useEffect)(()=>{if(g)switch(g){case"invalid_authentication":n({afterClose:()=>{i(["up.root",{}])},confirmText:(0,f.default)("Return home"),content:(0,f.default)("The link you clicked on is associated with a different account. Please log out and try again."),title:(0,f.default)("Make sure this is your link")});return;case"notification_confirmation_not_required":case"notification_expired":case"notification_not_found":n({afterClose:()=>{i(["up.root",{}])},confirmText:(0,f.default)("Return home"),content:(0,f.default)("The link you clicked on is wrong or expired"),title:(0,f.default)("Invalid link")});return}},[g,i,n]),(0,r.useEffect)(()=>{y&&p({cancelText:y.alternative?.text,confirmText:y.confirmText,content:y.message,onClick:async t=>{if(t||y.alternative){let n=await v({actionId:t?e.get("actionId"):y.alternative.onClick});if(n.success)return void i(!1===n.redirectUrl?["up.root",{}]:n.redirectUrl)}i(["up.root",{}])},title:(0,f.default)("Confirm"),type:y.danger?"warning":void 0})},[y,i,p,v,e]),(0,o.jsx)(c.default,{children:h&&(0,o.jsx)(l.default,{})})}}),i("aACZr",function(i,n){e(i.exports,"default",()=>a);var o=t("acw62"),r={restoreOnUnmount:!1},a="u">typeof document?function(e,t){void 0===t&&(t=r);var i=(0,o.useRef)(document.title);document.title!==e&&(document.title=e),(0,o.useEffect)(function(){return t&&t.restoreOnUnmount?function(){document.title=i.current}:void 0},[])}:function(e){}});
2//# sourceMappingURL=NotificationConfirmation.745b58d3.js.map

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.