PageSourceSearch

https://cdn.tbank.ru/s3aas/ib/supreme/assets/components-SsoLinkAut…oLinkAuth-browser.893c4d7944f837e1.chunk.js

js tbank.ru collected 2026-10-09 21:40:37 UTC 2,881 bytes, 1 lines download raw bytes

1(self.wsp=self.wsp||[]).push([["components-SsoLinkAuth-SsoLinkAuth-browser"],{33135:function(e){e.exports={root:"aYqc5w",header:"bYqc5w",content:"cYqc5w"}},56955:function(e){e.exports={container:"azx2gl",loader:"bzx2gl"}},68932:function(e,t,n){"use strict";n.r(t),n.d(t,{SsoLinkAuth:function(){return B},default:function(){return B}});var o=n(70510),s=n(379),r=n(15976),a=n(77e3),u=n.n(a),i=n(79882),l=n(24765),c=n(89390),d=n(27894),f=n(11344);const m="timeout",h=({status:e,renderErrorMessage:t=()=>null,renderLoadingStatus:n,renderTimeoutMessage:o=()=>null})=>{const{linkAuthProcessor:s}=(0,r.z)({linkAuthProcessor:c.Xx}),a=()=>s.reload();switch(e){case f.kb.ERROR:return t({onReloadButtonClick:a});case f.kb.LOADING:return n({});case m:return o({onReloadButtonClick:a});default:return null}};var g=n(49545),k=n(67611),b=n(33135),x=n.n(b);const p=({onReloadButtonClick:e,title:t,reloadText:n})=>(0,o.jsxs)("div",{className:x().root,"data-testid":"sso:link:message",children:[(0,o.jsx)("div",{className:x().header,"data-testid":"sso:link:message:title",children:t}),(0,o.jsx)("button",{className:x().content,"data-testid":"sso:link:message:reload-button",type:"button",onClick:e,children:n})]}),R=({onReloadButtonClick:e})=>(0,o.jsx)(p,{title:"Время ожидания истекло...",reloadText:"Перезагрузить форму",onReloadButtonClick:e}),C=({onReloadButtonClick:e})=>(0,o.jsx)(p,{title:"Произошла ошибка",reloadText:"Попробовать ещё раз",onReloadButtonClick:e});var T=n(56955),j=n.n(T);const w=[...f.fM,m],B=({width:e="100%",height:t="96px",loadingTimeout:n=g.T6,onSuccess:a=u(),renderErrorMessage:b=({onReloadButtonClick:e})=>(0,o.jsx)(C,{onReloadButtonClick:e}),renderTimeoutMessage:x=({onReloadButtonClick:e})=>(0,o.jsx)(R,{onReloadButtonClick:e})})=>{const{iframeManager:p,parentLogger:T,pubsub:B}=(0,r.z)({iframeManager:c.tX,parentLogger:c.Ho,pubsub:i.CQ}),E=T.child("component"),L=B,[M,v]=(0,s.useState)(p.status),z=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(M===f.kb.LOADING){const e=setTimeout(()=>v(m),n);return E.debug("Timeout started"),()=>{clearTimeout(e),E.debug("Timeout cleared")}}},[M,E,n]),(0,s.useEffect)(()=>{null!==z.current&&p.showIframeIn(z.current,e,t);const n=[L.subscribe(d.fj,v),L.subscribe(k.I6,a)];return()=>{n.forEach(e=>e()),w.includes(M)||E.warn("You are unmounting the component before authorization is complete. This may lead to unpredictable behavior.")}},[]),(0,s.useEffect)(()=>p.resize({width:e}),[p,e]),(0,s.useEffect)(()=>p.resize({height:t}),[p,t]),(0,s.useEffect)(()=>{E.debug(`Iframe status: ${M}`)},[M]),(0,o.jsx)("div",{className:j().container,ref:z,"data-testid":"sso:link:component",children:(0,o.jsx)(h,{status:M,renderErrorMessage:b,renderTimeoutMessage:x,renderLoadingStatus:()=>(0,o.jsx)("div",{className:j().loader,children:(0,o.jsx)(l.y,{size:"xl"})})})})}}}]);

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.