1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{89103:function(t,e,n){"use strict";n.d(e,{j:function(){return d}});var o=n(67294),r=n(93967),a=n.n(r),i=n(91036),c=n.n(i),u=n(47311),l=n(31616),s=n.n(l),_=n(93833),h=n(85893),p=function(t){var e=t.title,n=t.style,o=t.editorMode,r=t.onBlur,i=t.level,l=t.id,p=i?"h".concat(i):"p",d=(0,u.ZP)((0,_.w)(c()(e).replaceAll(" "," ")));return(0,h.jsx)(p,{className:a()(n,s().articleTitle,o&&s().editorMode,i&&"ce-header",i&&s().levelTitle),contentEditable:o,onBlur:r,children:i&&l?(0,h.jsx)("span",{id:l,className:s().anchor,children:d}):d})},d=o.memo(p)},37225:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return x},default:function(){return k}});var o=n(9008),r=n(58549),a=n(89103),i=n(64099),c=n.n(i),u=n(30266),l=n(809),s=n.n(l),_=n(25617),h=n(47828),p=n(25746),d=n(38280),f=function(){encodeURIComponent("".concat(window.location.origin,"/auth/callback"));var t="".concat("https://hi.tander.ru/auth","/realms/").concat("Tander-SSO","/protocol/openid-connect/auth"),e=new URLSearchParams({client_id:"shopMedia",redirect_uri:"".concat(window.location.origin,"/auth/callback"),response_type:"code",scope:"openid email profile"});window.location.href="".concat(t,"?").concat(e.toString())},m=function(){var t=encodeURIComponent(window.location.origin);window.location.href="".concat("https://hi.tander.ru/auth","/realms/").concat("Tander-SSO","/protocol/openid-connect/logout?client_id=").concat("shopMedia","&post_logout_redirect_uri=").concat(t)};var w=n(85893),v=function(){var t=function(){var t=(0,p.o)(),e=t.showLoader,n=t.hideLoader,o=t.setAuth,r=(0,_.v9)((function(t){return t.app})).authKey;return{onLogoutClick:function(){var t=(0,u.Z)(s().mark((function t(){var a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return");case 2:return a={Authorization:r},t.prev=3,e(),t.next=7,h.R.post("/api/auth/logout",{},{headers:a});case 7:200===t.sent.status&&((0,d.kT)("authKey"),(0,d.kT)("refreshToken"),o(),m()),n(),t.next=20;break;case 12:t.prev=12,t.t0=t.catch(3),console.log(t.t0),(0,d.kT)("authKey"),(0,d.kT)("refreshToken"),o(),m(),n();case 20:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(){return t.apply(this,arguments)}}(),onSsoLoginClick:function(){var t=(0,u.Z)(s().mark((function t(e){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),t.next=3,f();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),authKey:r}}(),e=t.onLogoutClick,n=t.onSsoLoginClick,o=t.authKey;return(0,w.jsx)("div",{className:c().authWrapper,children:(0,w.jsxs)("div",{className:c().auth,children:[(0,w.jsx)(a.j,{title:"\u0412\u0445\u043e\u0434 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430"}),o?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("p",{className:c().auth__description,children:"\u0412\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u044b"}),(0,w.jsx)(r.z,{outline:!0,style:c().auth__button,title:"\u0412\u042b\u0419\u0422\u0418",onClick:e})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("p",{className:c().auth__description,children:"\u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 SSO"}),(0,w.jsx)(r.z,{style:c().auth__button,title:"\u0412\u041e\u0419\u0422\u0418 \u0427\u0415\u0420\u0415\u0417 SSO",onClick:n})]})]})})},x=!0;function k(t){var e=t.latestUpdate;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(o.default,{children:[(0,w.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,w.jsx)("meta",{httpEquiv:"Last-Modified",content:new Date(e).toUTCString()})]}),(0,w.jsx)(v,{})]})}},93833:function(t,e,n){"use strict";function o(t){return t.replace(/ /g," ").replace(/&/g,"&").replace(/\s+/g," ").trim()}n.d(e,{w:function(){return o}})},62162:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth",function(){return n(37225)}])},31616:function(t){t.exports={articleTitle:"ArticleTitle_articleTitle__WmLlp",levelTitle:"ArticleTitle_levelTitle__3EQV6",editorMode:"ArticleTitle_editorMode__9XF7W",anchor:"ArticleTitle_anchor__2cHqq"}},64099:function(t){t.exports={authWrapper:"AuthComponent_authWrapper__3y5dF",auth:"AuthComponent_auth__3llIx",auth__label:"AuthComponent_auth__label___swco",auth__email:"AuthComponent_auth__email__3G8hl",auth__password:"AuthComponent_auth__password__2AOkW",auth__message:"AuthComponent_auth__message__oz-YZ",auth__button:"AuthComponent_auth__button__1idth",error:"AuthComponent_error__6-61I"}},75347:function(){},31777:function(){},34017:function(){},59905:function(){}},function(t){t.O(0,[432,36,311,774,888,179],(function(){return e=62162,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
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.