PageSourceSearch

https://kryptoskatt-bc97c.web.app/static/js/2700.fa39de1f.chunk.js

js kryptoskatt-bc97c.web.app collected 2026-10-03 12:28:02 UTC 10,286 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkreact_frontend=self.webpackChunkreact_frontend||[]).push([[2700],{11451:(e,s,n)=>{n.d(s,{A:()=>N});n(9950);const o="warning-modal_Overlay__lf4j8",t="warning-modal_Modal__9ouKw",a="warning-modal_ModalHeaderContainer__JTxlV",i="warning-modal_arrowImg__Is8nS",l="warning-modal_closeImg__-0DFT",r="warning-modal_contentContainer__aqfAi",c="warning-modal_inputContainer__Azzpk",d="warning-modal_title__8mRn3",m="warning-modal_desc__1ML0n",p="warning-modal_selectWalletCount__Vts7x",_="warning-modal_scrollableContainer__hXQjX",u="warning-modal_nameCell__THNIq",g="warning-modal_avatar__EimRq",h="warning-modal_noteContainer__kkbrs",v="warning-modal_closeBtnContainer__R14+2",y="warning-modal_cancelBtn__9kj2I";var x=n(13590),k=n(63031),j=n(44414);const N=e=>{let{data:s,closeHandler:n,handleDeleteBtn:N,updateTransactionSettings:b,isMultiple:w,multipleContacts:f,handleDeleteAllBtn:C}=e;return(0,j.jsx)("div",{className:o,children:(0,j.jsxs)("div",{className:t,children:[(0,j.jsxs)("div",{className:a,children:[(0,j.jsxs)("h1",{children:[(0,j.jsx)("img",{src:x.T.LeftArrow,alt:"back",className:i,onClick:n}),null===s||void 0===s?void 0:s.modalTitle]}),(0,j.jsx)("img",{src:x.T.CrossBlack,alt:"close",onClick:n,className:l})]}),(0,j.jsxs)("div",{className:r,children:[!w&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:c,children:null!==s&&void 0!==s&&s.isContact?(0,j.jsxs)("div",{className:u,children:[(0,j.jsx)("div",{className:g,style:{backgroundColor:(0,k.Xf)((0,k.rU)(null===s||void 0===s?void 0:s.title))},children:(0,k.rU)(null===s||void 0===s?void 0:s.title)}),(0,j.jsx)("span",{children:null===s||void 0===s?void 0:s.title})]}):(0,j.jsxs)("div",{children:[(0,j.jsx)("img",{src:null===s||void 0===s?void 0:s.logo,alt:null===s||void 0===s?void 0:s.modalTitle}),(0,j.jsx)("div",{className:d,children:null===s||void 0===s?void 0:s.title}),(0,j.jsx)("div",{className:m,children:null===s||void 0===s?void 0:s.desc})]})}),(0,j.jsxs)("div",{className:h,style:"Update Transaction settings"===(null===s||void 0===s?void 0:s.modalTitle)?{background:"#F4F6FF"}:void 0,children:[(0,j.jsx)("img",{src:x.T.InfoLightBlack,alt:"info"}),null===s||void 0===s?void 0:s.infoNote]})]}),w&&(0,j.jsxs)("div",{style:{marginTop:-50},children:[(0,j.jsxs)("div",{className:h,style:"Update Transaction settings"===(null===s||void 0===s?void 0:s.modalTitle)?{background:"#F4F6FF"}:void 0,children:[(0,j.jsx)("img",{src:x.T.InfoLightBlack,alt:"info"}),null===s||void 0===s?void 0:s.infoNote]}),(0,j.jsxs)("div",{className:p,children:["Selected Contacts (",null===f||void 0===f?void 0:f.length,")"]}),(0,j.jsx)("div",{className:_,children:f.map(e=>(0,j.jsxs)("div",{className:u,children:[(0,j.jsx)("div",{className:g,style:{backgroundColor:(0,k.Xf)((0,k.rU)(e.name))},children:(0,k.rU)(e.name)}),(0,j.jsx)("span",{children:e.name})]}))})]})]}),(0,j.jsxs)("div",{className:v,children:[(0,j.jsx)("button",{onClick:n,"data-testid":"close-btn",className:y,children:"Cancel"}),(0,j.jsx)("button",{onClick:w?C:N||b,style:{background:N?"#FF3D00B2":"#00C693"},"data-testid":"delete-btn",children:N?null===s||void 0===s?void 0:s.modalTitle:"Update Settings"})]})]})})}},82700:(e,s,n)=>{n.r(s),n.d(s,{default:()=>v});var o=n(9950),t=n(28429);const a={kcRoot:"kryptos-connect_kcRoot__Y+Lzq",container:"kryptos-connect_container__Ba8oK",iconHeading:"kryptos-connect_iconHeading__RYZGh",walletIcon:"kryptos-connect_walletIcon__4f-xh",kryptosIcon:"kryptos-connect_kryptosIcon__GT54p",kryptosLetter:"kryptos-connect_kryptosLetter__Eq+H7",logoImage:"kryptos-connect_logoImage__i9xSw",heading:"kryptos-connect_heading__fnFxl",subheading:"kryptos-connect_subheading__xRCs6",appName:"kryptos-connect_appName__8wpdj",securityNotice:"kryptos-connect_securityNotice__bqTXS",lockIcon:"kryptos-connect_lockIcon__pKnlp",noticeText:"kryptos-connect_noticeText__PEiyY",permissionCard:"kryptos-connect_permissionCard__9Vvek",permissionTitle:"kryptos-connect_permissionTitle__UWVUz",permissionRow:"kryptos-connect_permissionRow__DUbV3",permissionLabel:"kryptos-connect_permissionLabel__4AYNv",toggleSwitch:"kryptos-connect_toggleSwitch__8s+UN",toggleTrack:"kryptos-connect_toggleTrack__T+MSb",active:"kryptos-connect_active__MIsif",toggleThumb:"kryptos-connect_toggleThumb__u18oQ",buttonRow:"kryptos-connect_buttonRow__pbWL6",cancelBtn:"kryptos-connect_cancelBtn__4YckW",authorizeBtn:"kryptos-connect_authorizeBtn__VWsuy",emptyState:"kryptos-connect_emptyState__TFkXO",loadingContainer:"kryptos-connect_loadingContainer__zpDeX",title:"kryptos-connect_title__CUohS",redirectBtn:"kryptos-connect_redirectBtn__4LpMP",testBadge:"kryptos-connect_testBadge__8oWb+"};var i=n(13590),l=n(45612),r=n(11229),c=n(11451),d=n(8748),m=n(2836),p=n(66648),_=n(14765),u=n(91376),g=n(44414);const h={openid:{label:"Basic OpenID Connect access (required)",required:!0},profile:{label:"View your basic profile information",required:!1},email:{label:"Access your verified email address",required:!1},holdings:{label:"View your crypto holdings and portfolio balances",required:!1},transactions:{label:"Access your complete transaction history",required:!1},"defi-portfolio":{label:"View your DeFi portfolio and positions",required:!1},"nft-portfolio":{label:"Access your NFT holdings and transactions",required:!1},ledger:{label:"View your ledger entries and account history",required:!1},tax:{label:"Access your financial data for tax calculations and reporting",required:!1},integrations:{label:"Connect and manage third-party apps and services linked to your account",required:!1},offline_access:{label:"Allow access to your data even when you\u2019re offline",required:!1},offline_access2:{label:"Allow access to your data even when you\u2019re offline",required:!1}},v=()=>{const e=(0,t.Zp)(),s=(()=>{const{search:e}=(0,t.zy)();return(0,o.useMemo)(()=>{const s=new URLSearchParams(e);return{interactionId:s.get("interactionId"),resumeUrl:decodeURIComponent(s.get("resumeUrl")||""),clientId:s.get("clientId"),clientName:s.get("clientName"),redirectUri:decodeURIComponent(s.get("redirectUri")||""),scope:s.get("scope"),error:s.get("error"),timestamp:s.get("timestamp")}},[e])})(),[n,v]=(0,o.useState)(!0),[y,x]=(0,o.useState)([]),[k,j]=(0,o.useState)([]),[N,b]=(0,o.useState)(""),[w,f]=(0,o.useState)(!1),[C,T]=(0,o.useState)(!1),[I,q]=(0,o.useState)(""),B=(e,s)=>{(0,l.y)("Error",s||e.message,"info")};(0,o.useEffect)(()=>{(async()=>{try{const e=s;if(console.log("params",e),(null===e||void 0===e||!e.scope)&&(null===e||void 0===e||!e.interactionId))return B(new Error("Missing required parameters")),void T(!0);const n=e.scope.split(" ").filter(e=>h[e]);if(0===n.length)return B(new Error("No valid permissions requested.")),void T(!0);j(n),x(n),b(e.clientName||e.clientId||"The application"),v(!1)}catch(e){B(e,"Failed to initialize consent page"),T(!0)}})()},[s]);const S=async e=>{v(!0);try{const n=await(0,r.u)({consent_granted:e,granted_scopes:y,resumeUrl:s.resumeUrl});n&&n.error&&(q(null===n||void 0===n?void 0:n.message),T(!0))}catch(n){q((null===n||void 0===n?void 0:n.message)||"Failed to process the request"),T(!0)}finally{v(!1)}},R=e=>{e&&0===y.length?(0,l.y)("Error","Please select at least one permission to grant.","info"):e?S(e):f(!0)},U=()=>{console.log("call"),(0,m.CI)(p.j2).then(()=>{_.A.reset(),(0,u.shutdown)(),localStorage.clear(),sessionStorage.clear(),e(d.S3),window.location.reload()})};return n&&!C?(0,g.jsxs)("div",{className:a.loadingContainer,children:[(0,g.jsx)("img",{src:i.T.Loader,alt:"Loading..."}),(0,g.jsx)("p",{children:"Loading..."})]}):C?(0,g.jsxs)("div",{className:a.container,children:[(0,g.jsxs)("div",{className:a.iconHeading,children:[(0,g.jsx)("div",{className:a.kryptosIcon,children:(0,g.jsx)("img",{src:i.T.KryptosGreen,alt:"Kryptos",className:a.logoImage})}),(0,g.jsx)("h1",{className:a.heading,children:"Kryptos Connect"})]}),(0,g.jsx)("div",{className:a.subheading,children:"Request can not be process at the moment please try again later"}),(0,g.jsxs)("div",{className:a.permissionCard,children:[(0,g.jsx)("div",{className:a.permissionTitle,children:"Error:"}),(0,g.jsx)("div",{className:a.permissionRow,style:{borderColor:"#EC5252",background:"#EC674529"},children:(0,g.jsxs)("span",{className:a.permissionLabel,children:[(0,g.jsx)("img",{src:i.T.CrossRedFilled,alt:""}),I||"Some thing went wrong please try again."]})})]}),(0,g.jsx)("div",{className:a.buttonRow,children:(0,g.jsx)("button",{className:a.authorizeBtn,onClick:U,children:"Redirect to Login page"})})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:a.container,children:[(0,g.jsxs)("div",{className:a.iconHeading,children:[(0,g.jsx)("div",{className:a.kryptosIcon,children:(0,g.jsx)("img",{src:i.T.KryptosGreen,alt:"Kryptos",className:a.logoImage})}),(0,g.jsx)("h1",{className:a.heading,children:"Kryptos Connect"})]}),(0,g.jsxs)("div",{className:a.subheading,children:[(0,g.jsxs)("span",{className:a.appName,children:[N," "]}),"requests access to your Kryptos data"]}),(0,g.jsxs)("div",{className:a.securityNotice,children:[(0,g.jsx)("span",{className:a.lockIcon,children:(0,g.jsx)("img",{src:i.T.LockBlack,alt:"Lock"})}),(0,g.jsx)("span",{className:a.noticeText,children:"This application will use the following data from your Kryptos account to provide services."})]}),(0,g.jsxs)("div",{className:a.permissionCard,children:[(0,g.jsx)("div",{className:a.permissionTitle,children:"Requested Permissions:"}),null===k||void 0===k?void 0:k.filter(e=>"openid"!==e&&"profile"!==e).map(e=>{const s=h[e];return s?(0,g.jsx)("div",{className:a.permissionRow,children:(0,g.jsxs)("span",{className:a.permissionLabel,children:[(0,g.jsx)("img",{src:i.T.CheckCircle,alt:""}),s.label,s.required&&(0,g.jsx)("span",{className:a.requiredBadge,children:"(Required)"})]})},e):null})]}),(0,g.jsxs)("div",{className:a.buttonRow,children:[(0,g.jsx)("button",{className:a.cancelBtn,onClick:()=>R(!1),disabled:n,children:"Cancel"}),(0,g.jsx)("button",{className:a.authorizeBtn,onClick:()=>R(!0),disabled:n,children:n?"Authorizing...":"Authorize"})]})]}),w&&(0,g.jsx)(c.A,{data:{modalTitle:"Deny Access",title:N,infoNote:"Are you sure you want to deny access? The application will not be able to access your account.",logo:i.T.KryptosGreen},closeHandler:()=>f(!1),handleDeleteBtn:()=>{f(!1),S(!1)}})]})}}}]);

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.