PageSourceSearch

https://dynamic-lebkuchen-0238db.netlify.app/static/js/3099.51753248.chunk.js

js dynamic-lebkuchen-0238db.netlify.app collected 2026-10-03 10:41:32 UTC 15,031 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[3099],{3099:(e,r,i)=>{i.r(r),i.d(r,{TelegramAuthScreen:()=>h,TelegramAuthScreenView:()=>p,default:()=>h});var t=i(90034),n=i(57722),a=i(78055),o=i(99844),l=i(51380),s=i(49931),c=i(47098),d=i(23316),u=i(32094);i(30549),i(2035),i(82425),i(82595),i(88404);const p=e=>{let{success:r,errorMessage:i,onRetry:n}=e,a=r?"Successfully connected with Telegram":i?i.message:"Verifying connection to Telegram";return(0,t.jsx)(d.S,{title:a,subtitle:r?"You're good to go!":i?i.detail:"Just a few moments more",icon:u.T,iconVariant:"loading",iconLoadingStatus:{success:r,fail:!!i},secondaryCta:null!==i&&void 0!==i&&i.retryable&&n?{label:"Retry",onClick:n}:void 0,watermark:!0})},h={component:()=>{let{authenticated:e,logout:r,ready:i,user:d}=(0,s.u)(),{setModalData:u,navigate:h,resetNavigation:v,data:g}=(0,s.a)(),m=(0,o.u)(),{initLoginWithTelegram:f,loginWithTelegram:y,updateWallets:b,setReadyToTrue:x,closePrivyModal:w,createAnalyticsEvent:C,getAuthMeta:A}=(0,l.u)(),[I,j]=(0,n.useState)(!1),[S,k]=(0,n.useState)(void 0),N=(0,a.a)();async function T(){try{let r=await async function(){let r;if(!e){if(N.enabled&&"error"===N.status)throw new a.C(N.error,null,l.b.CAPTCHA_FAILURE);return N.enabled&&"success"!==N.status&&(N.execute(),r=await N.waitForResult()),r}}();await y({captchaToken:r}),j(!0),x(!0)}catch(d){var r,i,t,n,o,s,c;if((null===d||void 0===d?void 0:d.privyErrorCode)===l.b.ALLOWLIST_REJECTED)return k(void 0),v(),void h("AllowlistRejectionScreen");if((null===d||void 0===d?void 0:d.privyErrorCode)===l.b.USER_LIMIT_REACHED)return console.error(new l.j(d).toString()),k(void 0),v(),void h("UserLimitReachedScreen");if((null===d||void 0===d?void 0:d.privyErrorCode)===l.b.USER_DOES_NOT_EXIST)return k(void 0),v(),void h("AccountNotFoundScreen");if((null===d||void 0===d?void 0:d.privyErrorCode)===l.b.ACCOUNT_TRANSFER_REQUIRED&&null!==(r=d.data)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&r.nonce)return k(void 0),v(),u({accountTransfer:{nonce:null===(i=d.data)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.nonce,account:null===(t=d.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.subject,telegramAuthResult:null===(n=A())||void 0===n?void 0:n.telegramAuthResult,telegramWebAppData:null===(o=A())||void 0===o?void 0:o.telegramWebAppData,displayName:null===(s=d.data)||void 0===s||null===(s=s.data)||void 0===s||null===(s=s.account)||void 0===s?void 0:s.displayName,linkMethod:"telegram",embeddedWalletAddress:null===(c=d.data)||void 0===c||null===(c=c.data)||void 0===c||null===(c=c.otherUser)||void 0===c?void 0:c.embeddedWalletAddress}}),void h("LinkConflictScreen");let{retryable:e,detail:p}=(0,a.q)(d);k({retryable:e,detail:p,message:"Authentication failed"})}}return(0,n.useEffect)(()=>{T()},[]),(0,n.useEffect)(()=>{if(!(i&&e&&I&&d))return;if(null!==m&&void 0!==m&&m.legal.requireUsersAcceptTerms&&!d.hasAcceptedTerms){let e=setTimeout(()=>{h("AffirmativeConsentScreen")},o.q);return()=>clearTimeout(e)}if((0,c.s)(d,m.embeddedWallets)){let e=setTimeout(()=>{u({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),C({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,provider:"telegram",screen:"TelegramAuthScreen"}}),r()},callAuthOnSuccessOnClose:!0}}),h("EmbeddedWalletOnAccountCreateScreen")},o.q);return()=>clearTimeout(e)}b();let t=setTimeout(()=>w({shouldCallAuthOnSuccess:!0,isSuccess:!0}),o.q);return()=>clearTimeout(t)},[i,e,I,d]),(0,t.jsx)(p,{success:I,errorMessage:S,onRetry:null!==S&&void 0!==S&&S.retryable?async()=>{try{var e,r;k(void 0),null!==g&&void 0!==g&&null!==(e=g.telegramAuthModalData)&&void 0!==e&&e.seamlessAuth||await f(void 0,null===g||void 0===g||null===(r=g.login)||void 0===r?void 0:r.disableSignup),await T()}catch(i){let{retryable:e,detail:r}=(0,a.q)(i);k({retryable:e,detail:r,message:"Authentication failed"})}}:void 0})},isCaptchaRequired:!0,isShownBeforeReady:!0}},23316:(e,r,i)=>{i.d(r,{S:()=>u});var t=i(24107),n=i(15882),a=i(90034),o=i(67980),l=i(43122);const s=["primaryCta","secondaryCta","helpText","watermark","children"],c=["label"],d=["label"],u=e=>{let{primaryCta:r,secondaryCta:i,helpText:u,watermark:p=!0,children:h}=e,v=(0,n.A)(e,s),g=r||i?(0,a.jsxs)(a.Fragment,{children:[r&&(()=>{let{label:e}=r,i=(0,n.A)(r,c),l=i.variant||"primary";return(0,a.jsx)(o.B,(0,t.A)((0,t.A)({},i),{},{variant:l,style:(0,t.A)({width:"100%"},i.style),children:e}))})(),i&&(()=>{let{label:e}=i,r=(0,n.A)(i,d),l=r.variant||"secondary";return(0,a.jsx)(o.B,(0,t.A)((0,t.A)({},r),{},{variant:l,style:(0,t.A)({width:"100%"},r.style),children:e}))})()]}):null;return(0,a.jsxs)(l.S,{id:v.id,className:v.className,children:[(0,a.jsx)(l.S.Header,(0,t.A)({},v)),h?(0,a.jsx)(l.S.Body,{children:h}):null,u||g||p?(0,a.jsxs)(l.S.Footer,{children:[u?(0,a.jsx)(l.S.HelpText,{children:u}):null,g?(0,a.jsx)(l.S.Actions,{children:g}):null,p?(0,a.jsx)(l.S.Watermark,{}):null]}):null]})}}
1,32094:(e,r,i)=>{i.d(r,{T:()=>a});var t=i(24107),n=i(90034);function a(e){return(0,n.jsxs)("svg",(0,t.A)((0,t.A)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),{},{children:[(0,n.jsx)("rect",{width:"512",height:"512",rx:"15%",fill:"#37aee2"}),(0,n.jsx)("path",{fill:"#c8daea",d:"M199 404c-11 0-10-4-13-14l-32-105 245-144"}),(0,n.jsx)("path",{fill:"#a9c9dd",d:"M199 404c7 0 11-4 16-8l45-43-56-34"}),(0,n.jsx)("path",{fill:"#f6fbfe",d:"M204 319l135 99c14 9 26 4 30-14l55-258c5-22-9-32-24-25L79 245c-21 8-21 21-4 26l83 26 190-121c9-5 17-3 11 4"})]}))}},43122:(e,r,i)=>{i.d(r,{S:()=>E});var t=i(24107),n=i(15882),a=i(90034),o=i(57722),l=i(52610),s=i(1991),c=i(33898),d=i(76107);const u=["children"],p=["title","subtitle","icon","iconVariant","iconLoadingStatus","showBack","onBack","showInfo","onInfo","showClose","onClose","step"],h=["children"],v=["children"],g=["children"],m=["children"],f=l.I4.div.withConfig({displayName:"ScreenRoot",componentId:"sc-2e815abe-0"})(["--screen-space:16px;--screen-space-lg:calc(var(--screen-space) * 1.5);position:relative;overflow:hidden;margin:0 calc(-1 * var(--screen-space));height:100%;border-radius:var(--privy-border-radius-lg);"]),y=l.I4.div.withConfig({displayName:"ScreenRootInner",componentId:"sc-2e815abe-1"})(["display:flex;flex-direction:column;gap:calc(var(--screen-space) * 1.5);width:100%;background:var(--privy-color-background);padding:0 var(--screen-space-lg) var(--screen-space);height:100%;border-radius:var(--privy-border-radius-lg);"]),b=l.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),x=(0,l.I4)(c.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),w=l.I4.div.withConfig({displayName:"BodyContainer",componentId:"sc-2e815abe-4"})(["flex:1 1 auto;display:flex;flex-direction:column;overflow-y:auto;padding:3px;margin:-3px;&::-webkit-scrollbar{display:none;}scrollbar-gutter:stable both-edges;scrollbar-width:none;-ms-overflow-style:none;"," background-repeat:no-repeat;background-size:100% 32px,100% 16px;background-attachment:local,scroll;"],e=>{let{$colorScheme:r}=e;return"light"===r?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===r?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0}),C=l.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]);let A=l.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),I=l.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),j=l.I4.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),S=l.I4.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),k=l.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;height:64px;display:flex;align-items:center;justify-content:center;"],e=>{let{$variant:r}=e;switch(r){case"success":return"var(--privy-color-success-bg, #EAFCEF)";case"warning":return"var(--privy-color-warn, #FEF3C7)";case"error":return"var(--privy-color-error-bg, #FEE2E2)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}),N=l.I4.div.withConfig({displayName:"LogoContainer",componentId:"sc-2e815abe-11"})(["display:flex;align-items:center;justify-content:center;margin-bottom:var(--screen-space);img,svg{max-height:90px;max-width:180px;}"]),T=l.I4.div.withConfig({displayName:"LoadingWithIconContainer",componentId:"sc-2e815abe-12"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:82px;> div{position:relative;}> div > :first-child{position:relative;}> div > :last-child{position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%);}"]);const E=e=>{let{children:r}=e,i=(0,n.A)(e,u);return(0,a.jsx)(f,{children:(0,a.jsx)(y,(0,t.A)((0,t.A)({},i),{},{children:r}))})};let R=l.I4.div.withConfig({displayName:"ProgressBarContainer",componentId:"sc-2e815abe-13"})(["position:absolute;top:0;left:calc(-1 * var(--screen-space-lg));width:calc(100% + calc(var(--screen-space-lg) * 2));height:4px;background:var(--privy-color-background-2);border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden;"]),z=(0,l.I4)(c.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),F=l.I4.div.withConfig({displayName:"ProgressBarFill",componentId:"sc-2e815abe-15"})(["height:100%;width:","%;background:var(--privy-color-foreground-3);border-radius:2px;transition:width 300ms ease-in-out;"],e=>{let{pct:r}=e;return r}),L=e=>{let{step:r}=e;return r?(0,a.jsx)(R,{children:(0,a.jsx)(F,{pct:Math.min(100,r.current/r.total*100)})}):null};E.Header=e=>{let{title:r,subtitle:i,icon:o,iconVariant:l,iconLoadingStatus:s,showBack:c,onBack:d,showInfo:u,onInfo:h,showClose:v,onClose:g,step:m}=e,f=(0,n.A)(e,p);return(0,a.jsxs)(b,(0,t.A)((0,t.A)({},f),{},{children:[(0,a.jsx)(x,{backFn:c?d:void 0,infoFn:u?h:void 0,onClose:v?g:void 0,closeable:v}),(o||l||r||i)&&(0,a.jsxs)(A,{children:[o||l?(0,a.jsx)(E.Icon,{icon:o,variant:l,loadingStatus:s}):null,(0,a.jsxs)(I,{children:[r&&(0,a.jsx)(j,{children:r}),i&&(0,a.jsx)(S,{children:i})]})]}),m&&(0,a.jsx)(L,{step:m})]}))},(E.Body=o.forwardRef((e,r)=>{let{children:i}=e,o=(0,n.A)(e,h);return(0,a.jsx)(w,(0,t.A)((0,t.A)({ref:r},o),{},{children:i}))})).displayName="Screen.Body",E.Footer=e=>{let{children:r}=e,i=(0,n.A)(e,v);return(0,a.jsx)(C,(0,t.A)((0,t.A)({id:"privy-content-footer-container"},i),{},{children:r}))},E.Actions=e=>{let{children:r}=e,i=(0,n.A)(e,g);return(0,a.jsx)(B,(0,t.A)((0,t.A)({},i),{},{children:r}))},E.HelpText=e=>{let{children:r}=e,i=(0,n.A)(e,m);return(0,a.jsx)(W,(0,t.A)((0,t.A)({},i),{},{children:r}))},E.Watermark=()=>(0,a.jsx)(z,{}),E.Icon=e=>{let{icon:r,variant:i="subtle",loadingStatus:t}=e;return"logo"===i&&r?(0,a.jsx)(N,"string"==typeof r?{children:(0,a.jsx)("img",{src:r,alt:""})}:o.isValidElement(r)?{children:r}:{children:o.createElement(r)}):"loading"===i?r?(0,a.jsx)(T,{children:(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,a.jsx)(s.a4,{success:null===t||void 0===t?void 0:t.success,fail:null===t||void 0===t?void 0:t.fail}),"string"==typeof r?(0,a.jsx)("span",{style:{background:"url('".concat(r,"') 0 0 / contain"),height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):o.isValidElement(r)?o.cloneElement(r,{style:{width:"38px",height:"38px"}}):o.createElement(r,{style:{width:"38px",height:"38px"}})]})}):(0,a.jsx)(k,{$variant:i,children:(0,a.jsx)(d.N,{size:"64px"})}):(0,a.jsx)(k,{$variant:i,children:r&&("string"==typeof r?(0,a.jsx)("img",{src:r,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):o.isValidElement(r)?r:o.createElement(r,{width:32,height:32,stroke:(()=>{switch(i){case"success":return"var(--privy-color-icon-success)";case"warning":return"var(--privy-color-icon-warning)";case"error":return"var(--privy-color-icon-error)";default:return"var(--privy-color-icon-muted)"}})(),strokeWidth:2}))})};let B=l.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),W=l.I4.p.withConfig({displayName:"HelpTextContainer",componentId:"sc-2e815abe-17"})(["&&{margin:0;width:100%;text-align:center;color:var(--privy-color-foreground-3);font-size:14px;line-height:22px;& a{color:var(--privy-color-accent);}}"])},47098:(e,r,i)=>{i.d(r,{s:()=>n});var t=i(78055);const n=(e,r)=>(0,t.s)(e,r.ethereum.createOnLogin)||(0,t.k)(e,r.solana.createOnLogin)},76107:(e,r,i)=>{i.d(r,{N:()=>a});var t=i(90034),n=i(52610);const a=e=>{let{size:r,centerIcon:i}=e;return(0,t.jsx)(o,{$size:r,children:(0,t.jsxs)(l,{children:[(0,t.jsx)(c,{}),(0,t.jsx)(d,{}),i?(0,t.jsx)(s,{children:i}):null]})})};let o=n.I4.div.withConfig({displayName:"LoadingContainer",componentId:"sc-ebc93df8-0"})(["--spinner-size:",";display:inline-flex;justify-content:center;align-items:center;@media all and (display-mode:standalone){margin-bottom:30px;}"],e=>e.$size?e.$size:"96px"),l=n.I4.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),s=n.I4.div.withConfig({displayName:"CenterIconContainer",componentId:"sc-ebc93df8-2"})(["position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;svg,img{width:calc(var(--spinner-size) * 0.4);height:calc(var(--spinner-size) * 0.4);border-radius:var(--privy-border-radius-full);}"]),c=n.I4.div.withConfig({displayName:"CircleFixed",componentId:"sc-ebc93df8-3"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);&&{border:4px solid var(--privy-color-border-default);border-radius:50%;}"]),d=n.I4.div.withConfig({displayName:"CircleRotate",componentId:"sc-ebc93df8-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);animation:spin 1200ms linear infinite;&&{border:4px solid;border-color:var(--privy-color-icon-subtle) transparent transparent transparent;border-radius:50%;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"])}}]);
2//# sourceMappingURL=3099.51753248.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.