PageSourceSearch

https://onesapan.com/_next/static/chunks/4679.767ef3f475e920e1.js

js onesapan.com collected 2026-10-07 20:34:40 UTC 6,112 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4679],{34679:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return P}});var a=s(47002),i=s(57437);s(36770);var o=s(30998),t=s(2265),u=s(61943),l=s(11735),c=s(69539);s(2042);var r=s(66648),d=s(70577),p=s(12144),h=s(10150),v=function(e){var n=e.isShowPopup,s=e.closePopupHandler,o=e.title,u=(0,a._)((0,t.useState)(!1),2),l=u[0],c=u[1],v=(0,a._)((0,t.useState)(!1),2),m=v[0],f=v[1];return n?(0,i.jsxs)("div",{className:"sign-in-popup",children:[(0,i.jsxs)("div",{className:"popup-header",children:[(0,i.jsx)("div",{className:"popup-header__title",children:(0,i.jsx)("p",{children:(0,i.jsx)("span",{children:o})})}),(0,i.jsx)("button",{onClick:function(){return s(!1)},type:"button",className:"popup-header__close","aria-label":"Close popup",children:(0,i.jsx)(r.default,{src:"/img/close-auth-popup-icon.svg",alt:"",width:"10",height:"10"})})]}),(0,i.jsx)("div",{className:"popup-body",children:m?(0,i.jsx)(p.M,{closeForm:s,setAnotherWayToLogin:c,setPasswordRecoveryWay:f}):l?(0,i.jsx)(d.M,{closeForm:s,setAnotherWayToLogin:c,setPasswordRecoveryWay:f}):(0,i.jsx)(h.D,{closeForm:s,setAnotherWayToLogin:c})})]}):null};s(80736);var m=s(54550),f=s(59523),x=s(18087),_=s(16463),j=function(e){var n=e.isShowPopup,s=e.closePopupHandler,a=e.title,u=(0,o.useSession)(),l=(0,x.useTranslations)("Authentication"),c=(0,_.usePathname)();return((0,t.useEffect)(function(){n&&s(!1)},[c]),(0,t.useEffect)(function(){var e=function(){s(!1)};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}},[s]),n)?(0,i.jsxs)("div",{className:"sign-in-popup",children:[(0,i.jsxs)("div",{className:"popup-header",children:[(0,i.jsx)("div",{className:"popup-header__title",children:(0,i.jsx)("p",{children:(0,i.jsx)("span",{children:a})})}),(0,i.jsx)("button",{onClick:function(){return s(!1)},type:"button",className:"popup-header__close",children:(0,i.jsx)(r.default,{src:"/img/close-auth-popup-icon.svg",alt:"",width:"10",height:"10"})})]}),(0,i.jsx)("div",{className:"popup-body",children:(0,i.jsx)("div",{className:"sign-in-buttons-container",children:(0,i.jsx)("div",{className:"popup-reviews-footer",children:(0,i.jsx)("input",{className:"button sign-out-button",defaultValue:l("logout"),onClick:function(){var e;(0,m.JY)(null),(0,o.signOut)({callbackUrl:"/"}),(0,f.L)(null==u?void 0:null===(e=u.data)||void 0===e?void 0:e.authToken)}})})})})]}):(0,i.jsx)(i.Fragment,{})},g=s(21633),b=s(42016),N=s(32172),w=function(e){var n,s,o,d,p,h,m,f,_,w,y=e.session,P=e.title,S=e.text,k=e.wrapText,T=e.isInShowPopup,C=e.isOutShowPopup,E=e.closePopupClickHandler,A=e.isMobile,F=(0,x.useTranslations)("Authentication"),H=(0,N.CG)(function(e){return e.localizeParams.data.locale}),L=(0,N.CG)(function(e){return e.currencyParams.data.currency}),M=(0,a._)((0,t.useState)(null),2),W=M[0],O=M[1],G=null==y?void 0:null===(s=y.data)||void 0===s?void 0:null===(n=s.user)||void 0===n?void 0:n.authToken;return(0,t.useEffect)(function(){G&&(0,u._)(function(){var e,n;return(0,l.Jh)(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),e=(0,g.F)(H,G),[4,(0,b.t)(e)];case 1:if(!(null==(n=s.sent())?void 0:n.first_name))return[2];return O(n),[3,3];case 2:return s.sent(),[3,3];case 3:return[2]}})})()},[G,L]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"header-account__icon",children:(null==y?void 0:y.data)?(0,i.jsx)(c.Z,{href:"/profile","aria-label":F("cabinet"),children:(0,i.jsx)(r.default,{priority:!0,src:(null==y?void 0:null===(d=y.data)||void 0===d?void 0:null===(o=d.user)||void 0===o?void 0:o.image)?null==y?void 0:null===(h=y.data)||void 0===h?void 0:null===(p=h.user)||void 0===p?void 0:p.image:A?"/img/header-account-icon-mobile.svg":"/img/header-account-icon.svg",alt:"",width:"31",height:"30"})}):(0,i.jsx)(r.default,{priority:!0,src:(null==y?void 0:null===(f=y.data)||void 0===f?void 0:null===(m=f.user)||void 0===m?void 0:m.image)?null==y?void 0:null===(w=y.data)||void 0===w?void 0:null===(_=w.user)||void 0===_?void 0:_.image:A?"/img/header-account-icon-mobile.svg":"/img/header-account-icon.svg",alt:"",width:"31",height:"30"})}),(null==y?void 0:y.data)?(0,i.jsx)(c.Z,{href:"/profile",children:(0,i.jsxs)("span",{className:"header-account__info",children:[(0,i.jsx)("span",{className:"header-account__title",children:P}),(0,i.jsxs)("span",{className:"header-account__text",children:[S,(0,i.jsx)("span",{className:"header-account__amount-wrap",children:(0,i.jsxs)("span",{className:"header-account__amount header-account_blink",children:[null==W?void 0:W.bonus," \xa0",null==L?void 0:L.currency_code]})})]})]})}):(0,i.jsxs)("span",{className:"header-account__info",children:[(0,i.jsx)("span",{className:"header-account__title",children:P}),(0,i.jsxs)("span",{className:"header-account__text",children:[S,(0,i.jsxs)("span",{className:"header-account__amount-wrap",children:[k,(0,i.jsxs)("span",{className:"header-account__amount",children:[null==W?void 0:W.bonus," \xa0",null==L?void 0:L.currency_code]})]})]})]}
1),(0,i.jsx)(v,{title:F("sign_in"),isShowPopup:T,closePopupHandler:E}),(0,i.jsx)(j,{title:F("sign_out"),isShowPopup:C,closePopupHandler:E})]})},y=s(28630),P=function(e){var n,s,u=e.isMobile,l=void 0!==u&&u,c=e.setSidebarOpen,r=void 0===c?function(){}:c,d=(0,x.useTranslations)("Authentication"),p=(0,o.useSession)(),h=(0,y.pk)(),v=(0,a._)((0,t.useState)(!1),2),m=v[0],f=v[1],_=(0,a._)((0,t.useState)(!1),2),j=_[0],g=_[1],b=d("your_bonuses"),N="",P="";return l&&(b=d("cabinet"),N=d("your_bonuses"),P=d("get")),(0,i.jsx)("div",{className:"header-account",onClick:h?function(){return r(!1)}:function(){(null==p?void 0:p.status)=="unauthenticated"?f(!0):g(!0)},title:null==p?void 0:null===(s=p.data)||void 0===s?void 0:null===(n=s.user)||void 0===n?void 0:n.name,children:(0,i.jsx)(w,{session:p,title:b,text:N,wrapText:P,isInShowPopup:!h&&m,isOutShowPopup:!h&&j,closePopupClickHandler:function(){(null==p?void 0:p.status)=="unauthenticated"?setTimeout(function(){f(!1)},0):setTimeout(function(){g(!1)},0)},isMobile:l})})}},2042:function(){},80736:function(){},36770:function(){}}]);

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.