PageSourceSearch

https://buki.org.pl/_next/static/chunks/pages/client_orders-81bb16a74098d5b6.js

js buki.org.pl collected 2026-09-28 13:31:53 UTC 7,551 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0a0d707a-8714-4164-8e2b-fbf1c6541e7a",t._sentryDebugIdIdentifier="sentry-dbid-0a0d707a-8714-4164-8e2b-fbf1c6541e7a")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3363],{15925:t=>{t.exports={"gilroy-text":"styles_gilroy-text__jPuA_",wrapper:"styles_wrapper__g3Gxc",noOrders:"styles_noOrders__eziUp"}},20798:(t,e,r)=>{"use strict";r.d(e,{O:()=>s});var a=r(31898);function s(t,e){return(0,a.a)(t,null==e?void 0:e.in).getMinutes()}},30140:(t,e,r)=>{"use strict";r.d(e,{r:()=>i});var a=r(67394),s=r(61389);class n{async get(t,e,r){let n={withCredentials:!0};(null==t?void 0:t.cookie)&&(n.headers=t);try{return(await a.SP.get("".concat(this.paths.getClientOrder).concat(e,"&lang=").concat(r),n)).data}catch(t){return(0,s.r)(t)}}async setReview(t){let{order_id:e,review_text:r,review_mark:n,lang:i}=t;try{return(await a.SP.post(this.paths.setClientOrderReview,{lang:i,order_id:e,review_text:r,review_mark:n},{withCredentials:!0})).data}catch(t){return(0,s.r)(t)}}async getOrders(t,e,r){let n={withCredentials:!0};(null==e?void 0:e.cookie)&&(n.headers=e);try{return(await a.SP.get("".concat(this.paths.getClientOrders).concat({active:"/active",archive:"/archive"}[t],"?lang=").concat(r),n)).data}catch(t){return(0,s.r)(t)}}async getClientChats(t){let e={withCredentials:!0};(null==t?void 0:t.cookie)&&(e.headers=t);try{return(await a.SP.get(this.paths.getClientChats,e)).data}catch(t){return(0,s.r)(t)}}async makePersonalTutor(t,e){try{return(await a.SP.post(this.paths.makePersonalTutor,{order_id:t,tutor_id:e},{withCredentials:!0})).data}catch(t){return(0,s.r)(t)}}async setAppointTutor(t,e){try{return(await a.SP.post(this.paths.setAppointTutor,{order_id:t,tutor_id:e},{withCredentials:!0})).data}catch(t){return(0,s.r)(t)}}async setRate(t,e){try{return(await a.SP.post(this.paths.setRate,{order_id:t,rate_id:e},{withCredentials:!0})).data}catch(t){return(0,s.r)(t)}}async setFirstClass(t,e){try{return(await a.SP.post(this.paths.setFirstClass,{order_id:t,first_class:e},{withCredentials:!0})).data}catch(t){return(0,s.r)(t)}}async getSchoolAuthToken(t,e){let r={withCredentials:!0};(null==e?void 0:e.cookie)&&(r.headers=e);try{return(await a.SP.post(this.paths.getSchoolAuthToken,{order_id:t},r)).data}catch(t){return(0,s.r)(t)}}constructor(t){this.api=t,this.paths={getClientOrder:"".concat(this.api,"/order/?id="),setClientOrderReview:"".concat(this.api,"/order/set_review"),getClientOrders:"".concat(this.api,"/orders"),getClientChats:"".concat(this.api,"/orders/chats"),makePersonalTutor:"".concat(this.api,"/order/make_personal_tutor"),setAppointTutor:"".concat(this.api,"/order/appoint_tutor"),setRate:"".concat(this.api,"/order/set_rate"),setFirstClass:"".concat(this.api,"/order/set_first_class"),getSchoolAuthToken:"".concat(this.api,"/order/get_school_auth_token")}}}let i=new n("".concat(a.Vd,"/client"))},39916:(t,e,r)=>{var a={"./enClientOrderText.json":[5277,5277],"./esClientOrderText.json":[44936,4936],"./plClientOrderText.json":[35352,2971],"./ruClientOrderText.json":[51227,1227],"./uaClientOrderText.json":[42818,2818]};function s(t){if(!r.o(a,t))return Promise.resolve().then(()=>{var e=Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e});var e=a[t],s=e[0];return r.e(e[1]).then(()=>r.t(s,19))}s.keys=()=>Object.keys(a),s.id=39916,t.exports=s},57676:t=>{t.exports={"gilroy-text":"styles_gilroy-text___lofx",orderWrapper:"styles_orderWrapper__Stf_m",mainInfo:"styles_mainInfo__8wqcL",greyText:"styles_greyText__N5x9T",name:"styles_name__9pHch",lessons:"styles_lessons__REmWB",status:"styles_status__cU97I"}},58158:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/client_orders",function(){return r(65913)}])},65913:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>v});var a=r(37876),s=r(2171),n=r(27187),i=r(94344),o=r(9535),l=r(58077),c=r(30140),d=r(25377),u=r(51714),h=r(46294),_=r(57051),p=r(12352),y=r(43042),g=r.n(y);let w=(0,s.Ng)()(t=>t.authError?(0,a.jsx)(o.A,{textData:t.loginData}):(0,a.jsx)(n.A,{auth:t.auth,client:t.auth.client_info,dataHeader:t.dataHeader,textData:t.clientGeneralTextData,schoolLessons:t.schoolLessons,title:t.textData.head_title_active,children:(0,a.jsx)("div",{className:g().profileWrapper,children:(0,a.jsx)(i.A,{...t})})}));w.getInitialProps=async t=>{var e,a;let{ctx:s}=t,n=(await (0,_.z)(s)).country,i=(0,u.O)(s),o=(0,h.U)(s.locale,n),y=await r(39916)("./".concat(o,"ClientOrderText.json")),g=await r(13123)("./".concat(o,"Header.json")),w=await r(37053)("./".concat(o,"Footer.json")),v=await r(54261)("./".concat(o,"ClientLoginText.json")),x=await r(89640)("./".concat(o,"ClientGeneralTextData.json")),[f,m,C,j]=await Promise.all([c.r.getOrders("active",i,o),l.I.getFooter(s.locale),d._.getNotifications(i),l.I.getSchoolLessons(o,i)]),{hasErrors:T,statusCode:O}=(0,p.W)({ordersData:f,schoolLessons:j});return T?(s.res&&(s.res.statusCode=O),{statusCode:O,textData:y,dataHeader:g,dataFooter:w}):f.error&&"unauthorized client"===f.error?{authError:!0,footer:(null==m?void 0:m.data)||{},loginData:v,dataHeader:g,dataFooter:w,pageType:"student_cabinet"}:{orders:(null==f||null==(e=f.data)?void 0:e.orders)||[],footer:(null==m?void 0:m.data)||{},notifications:(null==C||null==(a=C.data)?void 0:a.notifications)||{},auth:null==C?void 0:C.auth,textData:y,dataHeader:g,dataFooter:w,clientGeneralTextData:x,schoolLessons:j||{},pageType:"student_cabinet"}};let v=w},94344:(t,e,r)=>{"use strict";r.d(e,{A:()=>_});var a=r(37876),s=r(48230),n=r.n(s),i=r(91695),o=r(639),l=r(57676),c=r.n(l);let d=t=>{var e,r,s,l;let{textData:d,order:u}=t,h=[3,7].includes(u.status)?u.review_response_status?d.status_title[u.status].with_review:(0,a.jsxs)(a.Fragment,{children:[[7].includes(u.status)&&(0,a.jsxs)(a.Fragment,{children:[d.status_title[u.status].without_review," ",(0,a.jsx)(o.jB,{message:d.review.hint})]}),[3].includes(u.status)&&d.status_title[u.status].title]}):d.status_title[u.status];return(0,a.jsx)(o.T6,{children:(0,a.jsx)(n(),{legacyBehavior:!0,href:"/o/".concat(u.id),children:(0,a.jsxs)("div",{className:c().orderWrapper,children:[(0,a.jsxs)("div",{className:c().mainInfo,children:[(0,a.jsx)("p",{className:c().greyText,children:"№ ".concat(u.id," ").concat(d.order.from," ").concat((0,i.GP)(1e3*u.date_created,"dd.MM.yy"))}),u.tutor_name&&(0,a.jsx)("p",{className:c().name,children:u.tutor_name}),!!(null==u||null==(e=u.lesson[0])?void 0:e.name)&&(0,a.jsxs)("p",{className:c().lessons,children:[null==(r=u.lesson[0])?void 0:r.name," /"," ",(null==u||null==(s=u.levels[0])?void 0:s.name)||(null==u||null==(l=u.levels)?void 0:l[1])&&"..."]})]}),(0,a.jsx)("p",{className:c().status,children:"string"==typeof h?h.replace("[:date]",(null==u?void 0:u.date_pause_off)?"".concat((0,i.GP)(1e3*u.date_pause_off,"dd.MM.yyyy HH:mm")):".."):h})]})})})};var u=r(15925),h=r.n(u);let _=t=>{let{orders:e,type:r,textData:s}=t;return(0,a.jsx)(a.Fragment,{children:e.length>0?(0,a.jsx)("div",{className:h().wrapper,children:e.map(t=>(0,a.jsx)(d,{order:t,textData:s},"order-".concat(t.id)))}):(0,a.jsx)("div",{className:h().noOrders,children:(0,a.jsx)("p",{children:s.order_thumbnail_no_orders_text})})})}},99262:(t,e,r)=>{"use strict";r.d(e,{S:()=>s});var a=r(31898);function s(t){return(0,a.a)(t).getSeconds()}}},t=>{t.O(0,[223,9091,1755,5862,639,8275,7032,4779,8697,636,6593,8792],()=>t(t.s=58158)),_N_E=t.O()}]);

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.