1/*! For license information please see 9568.f66fea17.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[9568],{79568:(e,o,n)=>{n.r(o),n.d(o,{DelegatedActionsRevokeScreen:()=>d,DelegatedActionsRevokeScreenView:()=>y,default:()=>d});var t=n(90034),a=n(95287),c=n(95522);const r=(0,n(90513).A)("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var s=n(57722),l=n(99844),i=n(51380),u=n(49931),k=n(23316);n(88404),n(2035),n(30549);const y=e=>{let{appName:o,success:n,error:s,onRevoke:l,onDeny:i,onClose:u}=e;return(0,t.jsx)(k.S,n||s?{title:s?"Something went wrong":"Success!",subtitle:s?"Please try again.":"You've successfully revoked permissions.",icon:s?a.A:c.A,iconVariant:s?"error":"success",onBack:u,watermark:!0}:{title:"Revoke offline access to wallet",subtitle:"By confirming, ".concat(o," will no longer be able to use this wallet on your behalf when you are not online."),icon:r,primaryCta:{label:"Confirm",onClick:l},secondaryCta:{label:"Deny",onClick:i},onBack:u,watermark:!0})},d={component:()=>{let{data:e}=(0,u.a)(),o=(0,l.u)(),{closePrivyModal:n}=(0,i.u)(),[a,c]=(0,s.useState)(!1),[r,k]=(0,s.useState)(),{onRevoke:d,onSuccess:m,onError:v}=e.delegatedActions.revoke,w=async()=>{a?m():v(null!==r&&void 0!==r?r:new i.a("User declined revoking access to their delegated wallet.")),n({shouldCallAuthOnSuccess:!1})};return(0,s.useEffect)(()=>{if(!a&&!r)return;let e=setTimeout(w,l.r);return()=>clearTimeout(e)},[a,r]),(0,t.jsx)(y,{appName:o.name,success:a,error:r,onRevoke:async()=>{try{await d(),c(!0)}catch(e){k(e)}},onDeny:()=>{w()},onClose:w})}}}}]); 3//# sourceMappingURL=9568.f66fea17.chunk.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.