PageSourceSearch

https://buki.org.pl/_next/static/chunks/pages/zayavka/[id]-ed167569f2662931.js

js buki.org.pl collected 2026-09-28 13:34:19 UTC 45,181 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="54d4886c-4e8c-4a23-8445-464de60bbdda",e._sentryDebugIdIdentifier="sentry-dbid-54d4886c-4e8c-4a23-8445-464de60bbdda")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4869],{1139:(e,t,s)=>{"use strict";s.d(t,{S:()=>a});let a=e=>e&&"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):null!=e?e:""},1364:e=>{e.exports={"gilroy-text":"datepicker_gilroy-text__l9E75",scope:"datepicker_scope__7AKdO"}},3811:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(37876),r=s(14232),n=s(48230),l=s.n(n),i=s(58587),o=s.n(i);let c=e=>{let{textData:t,blockingInfo:s,handleBlocking:n=null,isOpen:i=!1,pageType:c=null}=e,[d,_]=(0,r.useState)(!1),u=()=>{_(!1),n()};(0,r.useEffect)(()=>{_(i)},[i]);let p=(0,a.jsxs)("div",{className:"".concat(o().window," ").concat(o().debt),children:[(0,a.jsx)("p",{className:o().title,children:null==t?void 0:t.modal_title}),(0,a.jsx)("p",{className:o().text,dangerouslySetInnerHTML:{__html:null==t?void 0:t.modal_message_debt}}),(0,a.jsx)("div",{className:o().buttonsWrapper,children:(0,a.jsx)(l(),{legacyBehavior:!0,href:"/mz#overdue_orders",children:(0,a.jsx)("a",{className:o().button,onClick:u,type:"button",children:(null==t?void 0:t.modal_button_debt)||"OK"})})})]}),h=(0,a.jsxs)("div",{className:"".concat(o().window," ").concat(o().permanent),children:[(0,a.jsx)("a",{onClick:u,className:o().close}),(0,a.jsx)("p",{className:o().title,children:null==t?void 0:t.modal_title}),(0,a.jsx)("p",{className:o().text,dangerouslySetInnerHTML:{__html:null==t?void 0:t.modal_message_permanent}})]}),x=(0,a.jsxs)("div",{className:"".concat(o().window," ").concat(o().toManyOrders),children:[(0,a.jsx)("a",{onClick:u,className:o().close}),(0,a.jsx)("p",{className:o().title,children:null==t?void 0:t.modal_title}),(0,a.jsxs)("p",{className:o().text,children:[null==t?void 0:t.modal_text_1,(0,a.jsx)("strong",{children:" ".concat(s.count_orders_active," ").concat(null==t?void 0:t.modal_count_active_orders)})]}),(0,a.jsx)("p",{className:o().text,dangerouslySetInnerHTML:{__html:null==t?void 0:t.modal_text_2}})]});return(0,a.jsxs)("div",{style:d?{display:"block"}:{display:"none"},className:o().main,children:[s.blocking_data.blocked_by_debt&&p,s.blocking_data.blocked_by_auto&&!s.blocking_data.blocked_by_debt&&h,s.blocking_data.blocked_by_auto_permanent&&!s.blocking_data.blocked_by_debt&&h,s.blocking_data.blocked_by_admin&&!s.blocking_data.blocked_by_debt&&h,"order"===c&&s.has_too_many_active_orders&&!s.blocking_data.blocked_by_debt&&x,(0,a.jsx)("div",{className:o().backDrop})]})}},4609:(e,t,s)=>{"use strict";s.d(t,{L:()=>o});var a=s(27799),r=s(66421),n=s(65613),l=s(57829),i=s(43024);let o=e=>{switch(e){case"ua":return a.uk;case"ru":return r.ru;case"es":return n.es;case"pl":return l.pl;default:return i.c}}},8106:(e,t,s)=>{"use strict";s.d(t,{v:()=>l});var a=s(14232);let r=e=>{let t,s=new Set,a=(e,a)=>{let r="function"==typeof e?e(t):e;if(!Object.is(r,t)){let e=t;t=(null!=a?a:"object"!=typeof r||null===r)?r:Object.assign({},t,r),s.forEach(s=>s(t,e))}},r=()=>t,n={setState:a,getState:r,getInitialState:()=>l,subscribe:e=>(s.add(e),()=>s.delete(e))},l=t=e(a,r,n);return n},n=e=>{let t=(e=>e?r(e):r)(e),s=e=>(function(e,t=e=>e){let s=a.useSyncExternalStore(e.subscribe,a.useCallback(()=>t(e.getState()),[e,t]),a.useCallback(()=>t(e.getInitialState()),[e,t]));return a.useDebugValue(s),s})(t,e);return Object.assign(s,t),s},l=e=>e?n(e):n},12124:(e,t,s)=>{"use strict";s.d(t,{A:()=>_});var a=s(37876),r=s(89099),n=s(34906),l=s.n(n),i=s(49420),o=s(21152),c=s.n(o);let d=l().bind(c()),_=e=>{let{isOpen:t=!0,isNotification:s=!0,setNotification:n=null,handleCloseModal:l,status:o="success",handleConfirmationModal:_=null,redirectLink:u=null,textTitle:p=null,textBody:h=null,successButton:x,cancelButton:m}=e,y=(0,i.D)().siteEmail,j=(0,r.useRouter)(),f=()=>{l(),n&&n(!1),u&&j.push(u)},b='<a href="mailto:'.concat(y,'">').concat(y,"</a>");return t&&(0,a.jsxs)("div",{className:c().main,children:[(0,a.jsxs)("div",{className:c().window,children:[(0,a.jsx)("span",{onClick:f,className:c().close}),s?(0,a.jsxs)(a.Fragment,{children:[p&&(0,a.jsx)("p",{className:c().title,children:p}),(0,a.jsx)("p",{className:d({text:!0,[o]:!0}),dangerouslySetInnerHTML:{__html:h.replace("[:EMAIL]",b)}}),(0,a.jsx)("button",{onClick:f,type:"button",children:x||"OK"})]}):(0,a.jsxs)(a.Fragment,{children:[p&&(0,a.jsx)("p",{className:c().title,children:p}),(0,a.jsx)("div",{className:d({text:!0,[o]:!0}),dangerouslySetInnerHTML:{__html:h}}),(0,a.jsxs)("div",{className:c().buttonsWrapper,children:[(0,a.jsx)("button",{className:c().success,onClick:_,type:"button",children:x||"OK"}),(0,a.jsx)("button",{className:c().cancel,onClick:f,type:"button",children:m||"Cancel"})]})]})]}),(0,a.jsx)("div",{onClick:f,className:c().backDrop})]})}},12352:(e,t,s)=>{"use strict";s.d(t,{W:()=>r});let a=e=>!!e&&"object"==typeof e&&(null==e?void 0:e.status)==="fail"&&"statusCode"in e,r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};arguments.length>2&&arguments[2];let s=t.defaults||{},r={},n={};for(let[t,l]of Object.entries(e))a(l)?(r[t]=l,n[t]=Object.prototype.hasOwnProperty.call(s,t)?s[t]:{}):n[t]=null!=l?l:Object.prototype.hasOwnProperty.call(s,t)?s[t]:l;return Object.keys(r).length>0?{...(e=>{let t=Object.values(e).map(e=>{if(e&&e.statusCode)return e.statusCode});if(t.includes(404))return{statusCode:404,notFound:!0};if(t.includes(429))return{statusCode:429};if(t.includes(403))return{statusCode:403};if(t.includes(410))return{statusCode:410};if(t.includes(0))return{statusCode:0};else return{statusCode:500}})(r),hasErrors:!0}:{data:n,hasErrors:!1,statusCode:200}}},21152:e=>{e.exports={"gilroy-text":"styles_gilroy-text__92K2v",main:"styles_main__3UGDK",backDrop:"styles_backDrop__MyJ8a",window:"styles_window__XfZnu",title:"styles_title__oeOVI",text:"styles_text__QliG9",success:"styles_success__Cf705",fail:"styles_fail__koDlK",buttonsWrapper:"styles_buttonsWrapper__ziQiQ",cancel:"styles_cancel__hVLrs",icon:"styles_icon__lb8U4",close:"styles_close__v25qH"}},26901:e=>{e.exports={"gilroy-text":"styles_gilroy-text__02KV1",overlay:"styles_overlay__Lhrx2",acceptNewUser:"styles_acceptNewUser__nzZYu",heading:"styles_heading__Exe82",textPopup:"styles_textPopup__zHXkw",priceValue:"styles_priceValue__H45Zl",close:"styles_close__34M5t",buttonWrapper:"styles_buttonWrapper__5UmpC",accept:"styles_accept__c6dm9",refuse:"styles_refuse____rGd"}},40323:e=>{function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=40323,e.exports=t},45595:e=>{e.exports={orderInfo:"styles_orderInfo__GbpWu",buttonWrapper:"styles_buttonWrapper__nbfEz",acceptButton:"styles_acceptButton__CgcV6",payButtons:"styles_payButtons___VpLI",greenButton:"styles_greenButton__OL7A6",reviewWraper:"styles_reviewWraper__PqNOe",dateWrapper:"styles_dateWrapper__gxxbX","gilroy-text":"styles_gilroy-text__0_vpN",orderWrapper:"styles_orderWrapper__L_im_",greenTextButton:"styles_greenTextButton__T4Z
1QT",orderInfoChat:"styles_orderInfoChat__vxR1_",orderTitle:"styles_orderTitle__C6Oy8",admin:"styles_admin__xRWU2",orderNumber:"styles_orderNumber__d9XlV",orderStatus:"styles_orderStatus__pvHdz",smallText:"styles_smallText__AEPCS",nextStepBlock:"styles_nextStepBlock__OkY8P",title:"styles_title__32DN0",dataValueContainer:"styles_dataValueContainer__jxlYV",dateText:"styles_dateText___WxnY",dateValue:"styles_dateValue__VpCWI",chatBlock:"styles_chatBlock__1gGcZ",adminData:"styles_adminData__mwHQe",adminPhoto:"styles_adminPhoto__qJ0te",adminMainData:"styles_adminMainData__hlfwj",adminName:"styles_adminName__FiT7W",online:"styles_online__iVtIZ",offline:"styles_offline__42_Ui",headingHint:"styles_headingHint__qowlr",reviewText:"styles_reviewText__6ooht",textareaWrapper:"styles_textareaWrapper__uT6m2",fieldLimitLeft:"styles_fieldLimitLeft__S9Nxa",centerBtn:"styles_centerBtn__wNiFj",reviewResponse:"styles_reviewResponse___gF04",paymentBanner:"styles_paymentBanner__ISjfi",logo:"styles_logo__POBPS",text:"styles_text__o1o4n",disabled:"styles_disabled__diXxY",rejectLink:"styles_rejectLink__kG9iW",responseTime:"styles_responseTime__w__k_",orderDetailsWrapper:"styles_orderDetailsWrapper__PB7GH",orderDetailsTitle:"styles_orderDetailsTitle__fRCDG",orderDetails:"styles_orderDetails__rnvlH",salary:"styles_salary__ws_jW",orderInfoBlock:"styles_orderInfoBlock__Thu_f",description:"styles_description__TFCrC",thanksForResponse:"styles_thanksForResponse__WtS_m",payMethodWrapper:"styles_payMethodWrapper__GQTus",singlePrice:"styles_singlePrice__QYujB",taxPrice:"styles_taxPrice__b45_8",details:"styles_details__FZEXu",showMore:"styles_showMore__6NxtP",rotated:"styles_rotated__DdQaa",chatBanner:"styles_chatBanner__MUWp9",accent:"styles_accent__scSjF"}},50759:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});var a=s(37876),r=s(14232),n=s(91695),l=s(34906),i=s.n(l),o=s(69169),c=s.n(o),d=s(3860),_=s(77045),u=s(1139);let p=i().bind(c()),h=e=>{let{author:t,history:s,recipient:l,recipient_id:i,order_id:o,unableChat:h,datePaymentDeadline:x=null,status:m,textData:y,isBlocked:j=null}=e,f=(0,d.Lo)(e=>e.connection),b=(0,d.Lo)(e=>e.author),g=(0,d.Lo)(e=>e.messages),v=(0,d.Lo)(e=>e.error),N=[...s].sort((e,t)=>e.id-t.id),[w,k]=(0,r.useState)(""),[T,C]=(0,r.useState)(!1),[O,D]=(0,r.useState)(null),S=(0,r.useRef)(null),B=(0,r.useRef)(null),R=()=>{let e=g[g.length-1];g.length&&(e.recipient===l||e.sender===l)&&(e.recipient===t||e.sender===t)&&S.current.scrollIntoView({behavior:"smooth",block:e.sender===t?"nearest":"center"})};(0,r.useEffect)(()=>{(e=>{e.current.scrollTop=e.current.scrollHeight})(B)},[]),(0,r.useEffect)(()=>{C(!f)},[f]),(0,r.useEffect)(()=>{D(v)},[v]),(0,r.useEffect)(R,[g]);let W=g.reduce((e,t)=>t.order_id!==o?e:(t.sender===l||t.recipient===l)&&0===N.filter(e=>{let{id:s}=e;return s===t.id}).length?[...e,t]:e,N),F=!1;("client"===l&&"tutor"===t||"tutor"===l&&"client"===t)&&W.length-3>=0&&(F=3===W.slice(W.length-3).filter(e=>e.sender===t).length),f||(F=!0),j&&(F=!0);let E=!0,P=!0;return"client"===t&&"tutor"===l&&(7===m||10===m)&&(E=!1),"tutor"===t&&"client"===l&&7===m&&(E=!1),"tutor"===t&&"admin"===l&&7===m&&(E=!0,P=!0),(0,r.useEffect)(()=>{O&&(0,_.d)("error","Chat error",{error:O,recipient_id:i,order_id:o,url:null==f?void 0:f.url})},[O]),(0,a.jsxs)(a.Fragment,{children:[P&&(0,a.jsxs)("div",{className:c().chatWrapper,ref:B,children:[(0,a.jsx)("p",{className:c().placeholder,style:{textAlign:W.length?"left":"center"},children:W.length?y.chat_placeholder[l].filled_chat:y.chat_placeholder[l].clear_chat}),W.map(e=>(0,a.jsxs)("div",{className:p({msg:!0,[e.sender===t?"in":"out"]:!0}),children:[(0,a.jsx)("p",{className:c().text,dangerouslySetInnerHTML:{__html:(0,u.S)(e.msg_text).split("\n").join("<br />")}}),(0,a.jsx)("p",{className:c().date,children:"".concat((0,n.GP)(1e3*e.datetime,"yyyy-dd-MM H:mm:ss "))})]},e.id)),(0,a.jsx)("div",{ref:S})]}),E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:c().messageBox,children:[(0,a.jsx)("textarea",{value:w,placeholder:y.chat_placeholder_textarea,onChange:e=>{k(e.target.value)},disabled:F}),(0,a.jsx)("button",{className:p({greenButton:!0,isDisabled:F}),type:"button",onClick:()=>
1{if(w&&!(w.length>999)&&f&&(null==b?void 0:b.id)){let e={msg_service:0,msg_type:0,msg_data:{sender:t,sender_id:b.id,recipient:l,recipient_id:i,auto_msg:!1,order_id:o,msg_text:w}};f.send(JSON.stringify(e)),k(""),R()}},disabled:!i||F,children:y.chat_button})]}),T&&(0,a.jsx)("span",{className:c().connectionError,children:y.socket_unavailable}),!!w&&w.length>999&&(0,a.jsx)("span",{className:c().maxError,children:y.chat_max_warning})]}),"admin"!==l&&m<4&&(0,a.jsx)("div",{className:c().hint,children:"tutor"===t?y.chat_tutor_hint:y.chat_client_hint}),O&&(0,a.jsxs)("div",{className:c().disabledError,children:["message_contains_url"===O?null==y?void 0:y.message_contains_url:O,(0,a.jsx)("span",{onClick:()=>D(null)})]})]})}},57051:(e,t,s)=>{"use strict";s.d(t,{z:()=>r});var a=s(68173);let r=async e=>e.req?(0,a.RW)():await (0,a.$U)()},57534:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>ee});var a=s(37876),r=s(2171),n=s(77328),l=s.n(n),i=s(85310),o=s(75596),c=s(14232),d=s(48230),_=s.n(d),u=s(89099),p=s(95252),h=s(91695),x=s(73409),m=s(56856),y=s(34906),j=s.n(y),f=s(59546),b=s.n(f),g=s(94631);let v=j().bind(b()),N=e=>{let{setReasonsBlockVisibility:t,orderId:s,removeReasons:r,textData:n,sendTutorResponse:l,setNotificationMessage:i,setVisibilityNotification:o}=e,d=[{value:14,data:n.not_take_students_14},{value:30,data:n.not_take_students_30},{value:60,data:n.not_take_students_60},{value:90,data:n.not_take_students_90},{value:180,data:n.not_take_students_180},{value:360,data:n.not_take_students_360}],[_,u]=(0,c.useState)(null),[p,h]=(0,c.useState)(null),[x,m]=(0,c.useState)(""),[y,j]=(0,c.useState)({order_id:s,reason:null,pause_days:0}),f=e=>{let t=e.target.value;u(t),1==t&&h(14)};return(0,c.useEffect)(()=>{j({order_id:s,reason:"another"===_?x:Number(_),pause_days:1==_?Number(p):0})},[_,p,x]),(0,a.jsx)("div",{className:b().overlay,children:(0,a.jsxs)("div",{className:v({reasonsRefusal:!0}),children:[(0,a.jsx)("span",{className:b().close,type:"button",onClick:()=>{t(!1)}}),(0,a.jsx)("p",{className:b().heading,children:n.reason_refuse_heading}),(0,a.jsx)("div",{className:b().bodyOrderReason,children:(0,a.jsxs)("div",{className:b().optionsList,children:[Object.entries(r.lost_tutor).map(e=>{let[t,s]=e;return(0,a.jsxs)(c.Fragment,{children:[(0,a.jsxs)("label",{className:b().answerOption,children:[(0,a.jsx)("input",{type:"radio",onChange:f,checked:_==s,name:"answer-option",value:s}),(0,a.jsx)("span",{children:n[t]})]}),1==s&&(0,a.jsxs)("div",{className:v({pauseSelect:!0,show:1==_}),children:[(0,a.jsx)("p",{children:n.not_take_students_text}),(0,a.jsx)("select",{value:p,onChange:e=>h(e.target.value),children:d.map(e=>{let{value:t,data:s}=e;return(0,a.jsx)("option",{value:t,children:s},t)})})]})]},"reason-".concat(s))}),(0,a.jsx)("div",{children:(0,a.jsx)("textarea",{onFocus:()=>u("another"),value:x,placeholder:n.reason_refuse_textarea_placeholder,onChange:e=>m(e.target.value)})})]})}),(0,a.jsx)("div",{className:b().buttonWrapper,children:(0,a.jsx)("button",{type:"button",disabled:!y.reason,className:b().send,onClick:()=>{l(1).then(async e=>{if("success"===e){let e=await g.Q.setRefusedReason(y);"success"!==e.status&&(i(e.error),o(!0))}}).catch(e=>{console.error(e)}),t(!1)},children:n.reason_refuse_send_btn})})]})})};var w=s(42723),k=s.n(w),T=s(27609),C=s(83751),O=s(49420),D=s(26901),S=s.n(D);let B=e=>{let{setNewUserVisibility:t,sendTutorResponse:s,acceptOrderAnswer:r,order:n,textData:l}=e,i=(0,O.D)().country,o=C.W[i].currency,c=async()=>{await s(r),t(!1),k().dataLayer(T.h.takeOrder())},d=()=>{t(!1)};return(0,a.jsx)("div",{className:S().overlay,children:(0,a.jsxs)("div",{className:S().acceptNewUser,children:[(0,a.jsx)("span",{className:S().close,type:"button",onClick:d}),(0,a.jsx)("p",{className:S().heading,children:l.accept_order_heading}),(0,a.jsx)("p",{className:S().textPopup,children:l.accept_order_text}),(0,a.jsx)("p",{className:S().priceValue,children:"".concat(n.price_sum," ").concat(o)})," ",(0,a.jsxs)("div",{className:S().buttonWrapper,children:[(0,a.jsx)("button",{type:"button",className:S().refuse,onClick:d,children:l.accept_order_btn_no}),(0,a.jsx)("button",{type:"button",className:S().accept,onClick:c,children:l.accept_order_btn_yes})]})]})})};var R=s(50759),W=s(12124),F=s(3811),E=s(89e3),P=s(3958),I=s(4609),M=s(3860),q=s(1364),L=s.n(q),A=s(45595),H=s.n(A);let U=j().bind(H()),V=e=>{var t,s,r,n,l,i,o,d,y,j;let f,{auth:b,order:v,removeReasons:w,textData:k,textDataNotifications:T,dataChatText:D,prices:S,dataFooter:{local_phone:q}}=e,A=(0,O.D)(),V=A.country,G=A.apiURL,Q=C.W[V].currency,z=C.W[V].siteName,K=(0,u.useRouter)(),X="kz"===K.locale?"ru":K.locale,{handleOpenBillingNotFilled:Y}=(0,c.useContext)(P.A);(0,m.E)("uk",(0,I.L)(X));let[Z,J]=(0,c.useState)(!1),[$,ee]=(0,c.useState)(!1),[et,es]=(0,c.useState)(!1),[ea,er]=(0,c.useState)(""),[en,el]=(0,c.useState)(v),[ei,eo]=(0,c.useState)(en.date_first_class),[e
1c,ed]=(0,c.useState)(!1),[e_,eu]=(0,c.useState)(""),[ep,eh]=(0,c.useState)("pl"===V?"bank":"card"),[ex,em]=(0,c.useState)(!!(null==(t=K.query)?void 0:t.payment_status)),[ey,ej]=(0,c.useState)(!1),[ef,eb]=(0,c.useState)(!1),[eg,ev]=(0,c.useState)(!1),[eN,ew]=(0,c.useState)(!1),[ek,eT]=(0,c.useState)(!1),eC=(0,p.c)(new Date(b.tutor_info.terms_confirmed_at),new Date(b.tutor_info.terms_release_date))>=0;(0,c.useEffect)(()=>{el(v)},[v.id]),(0,c.useEffect)(()=>{let e=setTimeout(()=>{(0,M.Uz)({role:"tutor",id:b.tutor}),(0,M.tq)()},400);return()=>clearTimeout(e)},[v.id]),(0,c.useEffect)(()=>{let e=()=>{(0,M.Bn)(),(0,M.rP)()};return K.events.on("routeChangeStart",e),()=>{K.events.off("routeChangeStart",e)}},[v.id]);let eO=async()=>{if(b.tutor_info.blocking_data.blocked_by_debt||b.tutor_info.blocking_data.blocked_by_auto||b.tutor_info.blocking_data.blocked_by_auto_permanent||b.tutor_info.blocking_data.blocked_by_admin)return void ej(!0);eC&&J(!0)},eD=async()=>{if(eC){if(b.tutor_info.blocking_data.blocked_by_debt||b.tutor_info.blocking_data.blocked_by_auto||b.tutor_info.blocking_data.blocked_by_auto_permanent||b.tutor_info.blocking_data.blocked_by_admin)return void ej(!0);if(b.tutor_info.has_too_many_active_orders)return void eb(!0);b.tutor_info.date_first_order_payment?await eB(2):ee(!0)}},eS=async()=>{if(ei){ew(!0);let e=await g.Q.setDateFirstLesson({order_id:en.id,first_class:(0,h.GP)(ei,"yyyy-MM-dd")}).finally(()=>ew(!1));return"success"===e.status?(el(e.data.order),ed(!1)):"fail"===e.status&&e.error&&(er(e.error),es(!0)),e.status}},eB=async e=>{let t;return b.tutor_info.blocking_data.blocked_by_debt||b.tutor_info.blocking_data.blocked_by_auto||b.tutor_info.blocking_data.blocked_by_auto_permanent?void ej(!0):(ew(!0),"success"===(t="new_potential"===en.access_mode?await g.Q.setAnswerPotentialRequest({order_id:en.id,response:e}).finally(()=>ew(!1)):await g.Q.setAnswerPersonalRequest({order_id:en.id,response:e}).finally(()=>ew(!1))).status?el(t.data.order):"fail"===t.status&&t.error&&("need_fill_out_billing_information"===t.error?Y():(er(t.error),es(!0))),t.status)},eR=async()=>{if(b.tutor_info.blocking_data.blocked_by_debt||b.tutor_info.blocking_data.blocked_by_auto||b.tutor_info.blocking_data.blocked_by_auto_permanent||b.tutor_info.blocking_data.blocked_by_admin)return void ej(!0);if(3===en.tutor_review_request_count){er("number_of_attempts_exceeded"),es(!0);return}if(ew(!0),Date.now()-1e3*en.date_review_response<=36e5){er("request_timeout"),es(!0);return}let e=await g.Q.sendRequestReview(en.id).finally(()=>ew(!1));"success"===e.status?(el(e.data.order),er("send_request_for_review"),es(!0)):"fail"===e.status&&e.error&&!ey&&(er(e.error),es(!0))},eW=async()=>{if(!ek){if(e_.length<6){er("review_too_short"),es(!0);return}ew(!0),eT(!0);let e=await g.Q.setResponseToReview(en.id,e_).finally(()=>ew(!1));eT(!1),"success"===e.status?el(e.data.order):"fail"===e.status&&e.error&&!ey&&(er(e.error),es(!0))}},eF=()=>{"us"!==V&&(null==b?void 0:b.current_role)==="tutor"&&K.push({pathname:"/tutor-checkout",query:{type:"order",order_id:v.id}})};f=[4,5,6,9].includes(en.status)&&b.tutor!==en.tutor_id?(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:k.next_step_text[1]}}):5===en.status?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:k.next_step_text[en.status].before_date}}),(0,a.jsx)("strong",{children:en.date_first_class.split("-").reverse().join("-")}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:k.next_step_text[en.status].after_date}})]}):6===en.status?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:k.next_step_text[en.status].before_date}}),(0,a.jsx)("strong",{children:(0,h.GP)(1e3*en.date_payment_deadline,"dd-MM-yyyy")}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:k.next_step_text[en.status].after_date}})]}):1===en.review_status?(0,a.jsxs)("span",{children:[k.client_set_review_next_step.can_look_review,(0,a.jsx)(_(),{legacyBehavior:!0,href:"/user-".concat(b.tutor),children:(0,a.jsx)("a",{children:k.client_set_review_next_step.pesonal_profile})}),k.client_set_review_next_step.add_mark_to_rating]}):(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:k.next_step_text[en.status]}});let eE=(0,a.jsxs)("section",{className:H().orderInfo,children:[6!==en.status&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:H().orderTitle,children:k.order_cost_title}),(0,a.jsx)("p",{className:H().smallText,children:k.order_step_payment})]}),(0,a.jsxs)("div",{className:H().payButtons,children:[(0,a.jsx)("input",{type:"radio",value:"card",id:"card",checked:"card"===ep,onChange:e=>eh(e.target.value)}),(0,a.jsx)("label",{htmlFor:"card",children:k.pay_bank[V]}),(0,a.jsx)("input",{type:"radio",value:"wallet",id:"wallet",checked:"wallet"===ep,onChange:e=>eh(e.target.value)}),(0,a.jsx)("label",{htmlFor:"wallet",children:k.pay_wallet.replace("[:site]",z)}),(0,a.jsx)("button",{className:H().greenButton,onClick:eF,children:k.pay_button})]})]}),eP=C.W[V].tax&&S?(0,a.jsxs)("section",{className:H().orderInfo,children:[6!==en.status&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:H().orderTitle,children:k.order_cost_title}),(0,a.jsx)("p",{className:H().smallText,children:k.order_step_payment})]}),(0,a.jsx)("div",{className:H().payButtons,children:(0,a.jsxs)("button",{className:H().greenButton,onClick:eF,children:[k.pay_button," ",Number(S.price||S.base_price).toFixed(2)," ",Q]})})]}):null,eI=Object.values(en.lesson_levels).reduce((e,t,s)=>
10===s?[...e,...t.levels]:(t.levels.forEach(t=>{e.some(e=>e.id===t.id)||e.push(t)}),e),[]);return(0,a.jsx)("div",{className:H().orderWrapper,children:"no_access"===en.access_mode?(0,a.jsx)("p",{children:k.no_access_text}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{className:H().orderInfo,children:[(0,a.jsx)("p",{className:H().orderNumber,children:"".concat(k.order_number_title," ").concat(en.id)}),(0,a.jsxs)("p",{className:H().orderStatus,children:["".concat(k.order_status_title,": "),(0,a.jsx)("strong",{children:1===en.review_status?k.client_set_review:en.status<4&&"new_personal"===en.access_mode||[4,5,6,9].includes(en.status)&&b.tutor!==en.tutor_id?k.order_status_text[1]:k.order_status_text[en.status]}),9===en.status&&b.tutor===en.tutor_id&&(0,a.jsxs)(a.Fragment,{children:[" ".concat(k.pause_date," "),(0,a.jsx)("strong",{children:(0,h.GP)(1e3*en.date_pause_off,"dd-MM-yyyy")})]})]}),10!==en.status&&(0,a.jsxs)("div",{className:H().nextStepBlock,children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.next_step_title,": ")}),f]}),en.review_can_be_requested&&en.tutor_review_request_count<3?(0,a.jsx)("div",{className:H().buttonWrapper,children:(0,a.jsx)("span",{className:H().acceptButton,onClick:eR,children:k.request_to_review})}):null,7===en.status&&1===en.review_status?(0,a.jsxs)("div",{className:H().reviewWraper,children:[(0,a.jsx)("p",{className:H().reviewText,children:en.review_text}),!!en.review_response_text&&1===en.review_response_status&&(0,a.jsx)("div",{children:(0,a.jsx)("p",{className:H().reviewText,children:k.thanks_to_review})}),en.review_response_can_be_set&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:H().textareaWrapper,children:[(0,a.jsx)("textarea",{onChange:e=>eu(e.target.value),placeholder:k.response_to_review_placeholder}),(0,a.jsx)("p",{className:H().fieldLimitLeft,children:e_.length})]}),e_.length>1e3&&(0,a.jsx)("div",{className:"fieldError",children:T.review_too_long}),(0,a.jsx)("div",{className:H().centerBtn,children:(0,a.jsx)("button",{disabled:e_.length>1e3,className:H().greenButton,onClick:eW,children:k.response_to_review})})]}),!!en.review_response_text&&2===en.review_response_status&&(0,a.jsx)("p",{className:H().reviewResponse,children:en.review_response_text})]}):null,[4,5,6,9].includes(en.status)&&b.tutor===en.tutor_id&&(0,a.jsx)("div",{className:"".concat(H().dateWrapper," ").concat(L().scope),children:!en.date_first_class||ec?(0,a.jsxs)(a.Fragment,{children:[ec&&(0,a.jsx)("p",{className:H().dateText,children:k.set_first_lesson_text}),(0,a.jsx)(m.Ay,{selected:ei?new Date(ei):ei,placeholderText:(0,h.GP)(new Date,"dd.MM.yyyy",{locale:(0,I.L)(K.locale)}),onChange:e=>eo(e),minDate:new Date,maxDate:(0,x.f)(new Date,21),dateFormat:"dd.MM.yyyy",locale:"uk"}),(0,a.jsx)("button",{className:H().greenButton,onClick:eS,children:ec?k.save_date:k.accept_date})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:H().dataValueContainer,children:[(0,a.jsx)("p",{className:H().dateText,children:k.your_first_lesson_text}),(0,a.jsx)("p",{className:H().dateValue,children:(0,h.GP)(new Date(ei),"dd.MM.yyyy")})]}),en.status<6&&en.tutor_change_first_class_count<2&&(0,a.jsx)("button",{className:H().greenButton,onClick:()=>ed(!0),children:k.change_date_btn})]})}),6===en.status&&b.tutor===en.tutor_id&&(0,a.jsx)(a.Fragment,{children:C.W[V].tax&&S?eP:eE}),0===en.personal_request_response&&en.personal_request&&[1,2,3,9].includes(en.status)||3===en.status&&"new_potential"===en.access_mode&&!en.potential_response||[4,5,6].includes(en.status)&&0===en.personal_request_response&&en.personal_request&&b.tutor!==en.tutor_id?(0,a.jsxs)("div",{className:H().buttonWrapper,children:[(0,a.jsx)("span",{className:U({acceptButton:!0,disabled:!eC}),onClick:eD,children:k.accept_order}),(0,a.jsx)("span",{className:U({rejectLink:!0,disabled:!eC}),onClick:eO,children:k.reject_order})]}):null,0!==en.personal_request_response&&en.personal_request&&([1,2,3,9].includes(en.status)||4===en.status&&b.tutor!==en.tutor_id)&&(0,a.jsx)("p",{className:H().thanksForResponse,children:2==en.personal_request_response?k.thanks_for_personal_request_response:k.thanks_for_potential_request_refuse}),en.potential_response&&"new_potential"===en.access_mode&&3===en.status&&(0,a.jsx)("p",{className:H().thanksForResponse,children:2==en.potential_response?k.thanks_for_potential_request_response:k.thanks_for_potential_request_refuse}),0===en.personal_request_response&&en.status<3&&(0,a.jsx)("p",{className:H().responseTime,children:k.median_response_time})]}),"new_potential"!==en.access_mode&&([1,2,3].includes(en.status)||[4,5,6,9].includes(en.status)&&b.tutor===en.tutor_id)&&(0,a.jsxs)("section",{className:H().orderInfo,id:"client_chat_block",children:[(0,a.jsx)("p",{className:H().orderTitle,children:k.chat_title}),["es","mx","us"].includes(V)&&(0,a.jsxs)("div",{className:H().chatBanner,children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:H().accent,children:k.chat_alert.warning}),k.chat_alert.text]}),(0,a.jsx)("p",{className:H().accent,children:k.chat_alert.text_warning})]}),(0,a.jsx)(R.A,{history:en.chat_messages.client,recipient:"client",recipient_id:v.client_id,order_id:v.id,author:"tutor",status:en.status,datePaymentDeadline:en.date_payment_deadline,textData:D,isBlocked:b.tutor_info.blocking_data.blocked_by_debt||b.tutor_info.blocking_data.blocked_by_auto||b.tutor_info.blocking_data.blocked_by_auto_permanent||b.tutor_info.blocking_data.blocked_by_admin})]}),(4===en.status||5===en.status)&&b.tutor===en.tutor_id&&(0,a.jsx)(a.Fragment,{children:C.W[V].tax&&S?eP:eE}),(0,a.jsx)("section",{className:H().centerBtn,children:["kz","pl","mx","es"].includes(V)&&!!(null==v?void 0:v.payment_id)&&(0,a.jsx)("a",{target:"_blank",download:!0,href:"".concat(G,"/tutor/billing_data/get_invoice_file?payment_id=").concat(null==v?void 0:v.payment_id),rel:"noreferrer",className:H().greenTextButton,children:k.invoice_download})}),(0,a.jsx)("section",{className:H().orderDetailsWrapper,children:(0,a.jsxs)("div",{className:H().orderDetails,children:[(0,a.jsxs)("ul",{className:H().orderInfoBlock,children:[en.lesson_levels[0]&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.lessons_title,":")}),(0,a.jsx)("span",{children:en.lesson_levels.map(e=>(0,a.jsx)("i",{children:e.name},e.id))})]}),!!eI.length&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.levels_title,":")}),(0,a.jsx)("span",{className:H().description,children:eI.map(e=>(0,a.jsx)("i",{children:e.name},e.id))})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.rate_title,":")}),(0,a.jsx)("span",{children:en.rate.name})]}),!!en.class_duration&&!!en.class_regularity&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.duration_title,":")}),(0,a.jsx)("span",{className:H().description,children:"".concat(en.class_duration).c
1oncat(k.hour," / ").concat(4===en.class_regularity?en.class_regularity_short_course_times:en.class_regularity," ").concat(k.how).concat(k.agree_with_student)})]}),C.W[V].tax&&S?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{children:[(0,a.jsxs)("span",{className:H().title,children:["".concat(k.order_price_title," "),(0,a.jsx)(_(),{legacyBehavior:!0,href:["pl","es","mx"].includes(V)?"/p/offer":"/p/oferta",children:(0,a.jsx)("a",{children:k.offer_title})}),":"]}),(0,a.jsx)("span",{children:S.base_price?"".concat(Number(S.base_price).toFixed(2)," ").concat(Q):"------"})]}),(0,a.jsxs)("li",{children:[(0,a.jsxs)("span",{className:H().title,children:[Number(S.vat_rate)>0?k.total_payment_vat_title:k.fee_included,":"]}),(0,a.jsx)("span",{children:S.price?"".concat(Number(S.price).toFixed(2)," ").concat(Q):"------"})]})]}):(0,a.jsxs)("li",{children:[(0,a.jsxs)("span",{className:H().title,children:["".concat(k.order_price_title," "),(0,a.jsx)(_(),{legacyBehavior:!0,href:["pl","es","mx"].includes(V)?"/p/offer":"/p/oferta",children:(0,a.jsx)("a",{children:k.offer_title})}),":"]}),(0,a.jsx)("span",{children:en.price_sum?"".concat(en.price_sum," ").concat(Q):"------"})]}),!!en.class_duration&&!!en.class_regularity&&4!==en.class_regularity&&"kz"!==V&&(0,a.jsx)("li",{className:H().salary,children:"".concat(k.your_salary," ").concat(en.class_duration*en.class_regularity*en.rate.id*16," - ").concat(en.class_duration*en.class_regularity*en.rate.id*24," ").concat(Q," ").concat(k.averange_text)})]}),(0,a.jsxs)("ul",{className:H().orderInfoBlock,children:[en.location_at_client+en.location_at_tutor+en.location_at_online>0&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.location_title,":")}),(0,a.jsxs)("span",{className:H().description,children:[en.location_at_client?(0,a.jsx)("i",{children:k.location_at_client}):null,en.location_at_tutor?(0,a.jsx)("i",{children:k.location_at_tutor}):null,en.location_at_online?(0,a.jsx)("i",{children:k.location_at_online}):null]})]}),!!en.location_at_client&&(null==(r=en.locations)||null==(s=r.client_place)?void 0:s[0])&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.location_at_client_title,":")}),(0,a.jsxs)("span",{className:H().description,children:[en.locations.client_place[0].city.name?(0,a.jsx)("i",{children:en.locations.client_place[0].city.name}):null,en.locations.client_place[0].district.name?(0,a.jsx)("i",{children:en.locations.client_place[0].district.name}):null,en.locations.client_place[0].subdistrict.name?(0,a.jsx)("i",{children:en.locations.client_place[0].subdistrict.name}):null]})]}),""!==en.locations.client_place[0].address&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.location_at_client_street,":")}),(0,a.jsx)("span",{className:H().description,children:en.locations.client_place[0].address})]})]}),!!en.location_at_tutor&&(null==(l=en.locations)||null==(n=l.tutor_place)?void 0:n[0])&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.location_at_tutor_title,":")}),(0,a.jsx)("span",{className:H().description,children:en.locations.tutor_place.map((e,t)=>(0,a.jsxs)("span",{children:[e.city.name?(0,a.jsx)("i",{children:e.city.name}):null,e.district.name?(0,a.jsx)("i",{children:e.district.name}):null,e.subdistrict.name?(0,a.jsx)("i",{children:e.subdistrict.name}):null,t+1<en.locations.tutor_place.length&&(0,a.jsx)("br",{})]},t))})]}),""!==en.locations.tutor_place[0].address&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.location_at_tutor_street,":")}),(0,a.jsx)("span",{className:H().description,children:en.locations.tutor_place[0].address})]})]})]}),(0,a.jsxs)("ul",{className:H().orderInfoBlock,children:[""!==en.client_name&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.client_name_title,":")}),(0,a.jsx)("span",{children:en.client_name})]}),b.tutor===en.tutor_id&&(0,a.jsxs)(a.Fragment,{children:[!!en.client_phone_formatted&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.client_name_phone,":")}),(0,a.jsx)("span",{children:en.client_phone_formatted})]}),!!en.client_email&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:"".concat(k.client_name_email,":")}),(0,a.jsx)("span",{children:en.client_email})]})]})]}),(0,a.jsxs)("ul",{className:H().orderInfoBlock,children:[!!en.info_preferred_time&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:k.order_time_title}),(0,a.jsx)("span",{className:H().description,children:en.info_preferred_time})]}),!!en.info_problem&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:k.problem_title}),(0,a.jsx)("span",{className:H().description,children:en.info_problem})]}),!!en.info_other&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:k.other_info_title}),(0,a.jsx)("span",{className:H().description,children:en.info_other})]}),!!en.tutor_sex&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:k.tutor_sex_title}),(0,a.jsx)("span",{children:k.tutor_sex_value[en.tutor_sex]})]}),!!en.langs.length&&(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:H().title,children:k.languages}),en.langs.map((e,t)=>{let{id:s,name:r}=e;return t>0?(0,a.jsx)("span",{children:", ".concat(r)},s):(0,a.jsx)("span",{children:r},s)})]})]})]})}),([5,6,7].includes(en.status)||[4,9].includes(en.status)&&b.tutor===en.tutor_id)&&(0,a.jsxs)("section",{className:H().orderInfo+" "+H().orderInfoChat,id:"admin_chat_block",children:[(0,a.jsx)("p",{className:H().orderTitle,children:k.chat_admin_title}),(0,a.jsx)("p",{className:H().admin,children:k.chat_admin_text}),(0,a.jsxs)("div",{className:H().chatBlock,children:[(0,a.jsxs)("div",{className:H().adminData,children:[(0,a.jsx)("div",{className:H().adminPhoto,children:(0,a.jsx)("img",{src:(null==en||null==(i=en.admin)?void 0:i.avatar)?en.admin.avatar:"/img/no_images.png"})}),(0,a.jsxs)("div",{className:H().adminMainData,children:[(0,a.jsx)("p",{className:H().adminName,children:en.admin.name}),(0,a.jsx)("p",{className:H().adminEmail,children:(0,a.jsx)("a",{href:"mailto:".concat(en.admin.email),children:en.admin.email})}),["mx","es"].includes(V)&&!!(null==q||null==(o=q[V])?void 0:o.length)&&q[V].map((e,t)=>(0,a.jsx)("a",{href:"tel:".concat(e),className:H().adminPhone,children:e},t)),(0,a.jsx)("p",{className:H().headingHint,children:D.chat_admin_msg})]})]}),[4,5,6,9].includes(en.status)&&b.tutor===en.tutor_id&&(0,a.jsx)(R.A,{history:en.chat_messages.admin,recipient:"admin",recipient_id:v.admin.id||101,order_id:v.id,unableChat:!1,author:"tutor",textData:D})]})]}),Z&&(0,a.jsx)(N,{setReasonsBlockVisibility:J,orderId:en.id,removeReasons:w,textData:k,sendTutorResponse:eB,setNotificationMessage:er,setVisibilityNotification:es}),$&&(0,a.jsx)(B,{setNewUserVisibility:ee,acceptOrderAnswer:2,sendTutorResponse:eB,order:en,textData:k}),et&&""!==ea&&(0,a.jsx)(W.A,{textBody:T[ea]?"".concat(T[ea]):T.other_errors,handleCloseModal:()=>es(!1),isOpen:et}),ey&&(0,a.jsx)(F.A,{textData:k.modal_bloking,blockingInfo:b.tutor_info,handleBlocking:()=>{ej(!1)},isOpen:ey}),ef&&(0,a.jsx)(F.A,{textData:k.modal_to_many_orders,blockingInfo:b.tutor_info,handleBlocking:()=>eb(!1),isOpen:ef,pageType:"order"}),(0,a.jsx)(W.A,{textTitle:k.modal_pay.modal_title,textBody:k.modal_pay.modal_success,isOpen:eg,handleCloseModal:()=>ev(!1)}),(null==(d=K.query)?void 0:d.payment_status)&&(0,a.jsx)(W.A,{status:null==(y=K.query)?void 0:y.payment_status,textBody:(null==(j=K.query)?void 0:j.payment_status)==="success"?k.solidgate_successible:T.other_errors,handleCloseModal:()=>{em(!1),K.replace({pathname:K.pathname,query:{id:K.query.id}})},isOpen:ex}),eN&&(0,a.jsx)(E.A,{})]})})};var G=s(58077),Q=s(25377),z=s(51714),K=s(46294),X=s(57051),Y=s(12352),Z=s(43042),J=s.n(Z);let $=(0,r.Ng)()(e=>{let t=(0,O.D)().country,s=e.accessError?(0,a.jsx)("div",{className:J().errorMessage,children:(0,a.jsx)("h3",{children:e.textData.message_not_your_order})}):(0,a.jsxs)(a.Fragment,{children:[["mx","ua"].includes(t)&&(0,a.jsx)(l(),{children:(0,a.jsx)("script",{src:"https://www.google.com/recaptcha/api.js",async:!0,defer:!0})}),(0,a.jsx)(V,{order:e.order,removeReasons:e.removeReasons,textData:e.textData,dataBanners:e.dataBanners,textDataNotifications:e.textNotifications,dataChatText:e.dataChatText,dataFooter:e.dataFooter,auth:e.auth,prices:e.prices})]});return e.authError?(0,a.jsx)(o.A,{textData:e.loginData}):(0,a.jsx)(i.A,{auth:e.auth,textData:e.dataHeader,dataBanners:e.dataBanners,tutor:e.auth.tutor_info,title:e.textData.head_title_order,children:(0,a.jsx)("div",{className:J().profileWrapper,children:s})})});$.getInitialProps=async e=>{var t,a,r;let{ctx:n}=e,l=(await (0,X.z)(n)).country,i=(0,z.O)(n),o=(0,K.U)(n.locale,l),c=await s(80965)("./".concat(o,"TutorOrderText.json")),d=await s(13123)("./".concat(o,"Header.json")),_=await s(37053)("./".concat(o,"Footer.json")),u=await s(11869)("./".concat(o,"TutorBanners.json")),p=await s(54261)("./".concat(o,"ClientLoginText.json")),h=await s(63915)("./".concat(o,"ChatText.json")),x=await s(96022)("./".concat(o,"TutorOrderNotifications.json")),[m,y,j]=await Promise.all([g.Q.get(i,n.query.id),G.I.getFooter(o),Q._.getNotifications(i)]),{hasErrors:f,statusCode:b}=(0,Y.W)({order:m});if(f)return n.res&&(n.res.statusCode=b),{statusCode:b,textData:c,dataHeader:d,dataFooter:_};if(m.error){if("unauthorized tutor"===m.error)return{authError:!0,footer:(null==y?void 0:y.data)||{},loginData:p,dataHeader:d,dataFooter:_,pageType:"tutor_cabinet"};if("no_access"===m.error||"no_order"===m.error)return{accessError:!0,footer:(null==y?void 0:y.data)||{},auth:null==j?void 0:j.auth,notifications:(null==j||null==(r=j.data)?void 0:r.notifications)||{},textData:c,textDataNotifications:x,dataHeader:d,dataFooter:_,dataBanners:u,dataChatText:h,pageType:"tutor_cabinet"}}return{order:m.data.order,prices:(null==m||null==(t=m.data)?void 0:t.prices)||null,removeReasons:m.data.remove_reasons,footer:(null==y?void 0:y.data)||{},notifications:(null==j||null==(a=j.data)?void 0:a.notifications)||{},auth:null==j?void 0:j.auth,textData:c,dataHeader:d,dataFooter:_,textNotifications:x,dataBanners:u,dataChatText:h}};let ee=$},58587:e=>{e.exports={"gilroy-text":"styles_gilroy-text__RlIpR",main:"styles_main__I24Je",backDrop:"styles_backDrop__hqOr_",window:"styles_window__i8298",debt:"styles_debt___kiQp",title:"styles_title__eD2uA",text:"styles_text__p4T5Y",permanent:"styles_permanent__0gsy_",toManyOrders:"styles_toManyOrders__xa3k0",close:"styles_close__D2QBU",success:"styles_success__I9A8C",fail:"styles_fail__RvsOv",button:"styles_button__0g9Mo",buttonsWrapper:"styles_buttonsWrapper__H0_eF",cancel:"styles_cancel__mXwf1",icon:"styles_icon__dK_2T"}},59546:e=>{e.exports={"gilroy-text":"styles_gilroy-text__9jB2N",overlay:"styles_overlay__4Wvhx",reasonsRefusal:"styles_reasonsRefusal__S09zF",heading:"styles_heading__5iEJy",close:"styles_close__uhn7f",bodyOrderPause:"styles_bodyOrderPause__lS7Fm",bodyOrderReason:"styles_bodyOrderReason__GmGWp",pauseSelect:"styles_pauseSelect__O_NCN",show:"styles_show__GJeX8",buttonWrapper:"styles_buttonWrapper__GAD68"}},63915:(e,t,s)=>{var a={"./enChatText.json":[59690,9690],"./esChatText.json":[8209,8209],"./plChatText.json":[62113,2113],"./ruChatText.json":[39084,9084],"./uaChatText.json":[71071,1071]};function r(e){if(!s.o(a,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=a[e],r=t[0];return s.e(t[1]).then(()=>s.t(r,19))}r.keys=()=>Object.keys(a),r.id=63915,e.exports=r},68081:(e,t,s)=>{"use strict";s.d(t,{R8:()=>o,Yz:()=>l,h2:()=>d,pq:()=>i,uP:()=>n,z3:()=>c});var a=s(27021);function r(e,t,s,r,n){(0,a.KG)({level:e,message:t,attributes:s,severityNumber:n},r)}function n(e,t,{scope:s}={}){r("trace",e,t,s)}function l(e,t,{scope:s}={}){r("debug",e,t,s)}function i(e,t,{scope:s}={}){r("info",e,t,s)}function o(e,t,{scope:s}={}){r("warn",e,t,s)}function c(e,t,{scope:s}={}){r("error",e,t,s)}function d(e,t,{scope:s}={}){r("fatal",e,t,s)}},69169:e=>{e.exports={messageBox:"styles_messageBox__66ZdF",greenButton:"styles_greenButton__KA3mv","gilroy-text":"styles_gilroy-text__6aiu_",isDisabled:"styles_isDisabled__4I_Uc",chatWrapper:"styles_chatWrapper__xPX_W",placeholder:"styles_placeholder__W9mH7",msg:"styles_msg__qnO9E",text:"styles_text__rqFRM",date:"styles_date__EWywA",out:"styles_out__9OKhE",in:"styles_in___tQs_",hint:"styles_hint__yM_9x",maxError:"styles_maxError__bllrC",connectionError:"styles_connectionError__GvgO9",fadeIn:"styles_fadeIn__uTbgr",disabledError:"styles_disabledError__aQkMh"}},77045:(e,t,s)=>{"use strict";s.d(t,{d:()=>r});var a=s(68081);let r=(e,t,s)=>{switch(e){case"trace":a.uP(t,s);break;case"debug":a.Yz(t,s);break;case"info":default:a.pq(t,s);break;case"warn":a.R8(t,s);break;case"error":a.z3(t,s);break;case"fatal":a.h2(t,s)}}},80965:(e,t,s)=>{var a={"./enTutorOrderText.json":[7520,7520],"./esTutorOrderText.json":[63839,3839],"./plTutorOrderText.json":[20975,975],"./ruTutorOrderText.json":[74314,4314],"./uaTutorOrderText.json":[68245,8245]};function r(e){if(!s.o(a,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=a[e],r=t[0];return s.e(t[1]).then(()=>s.t(r,19))}r.keys=()=>Object.keys(a),r.id=80965,e.exports=r},81232:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/zayavka/[id]",function(){return s(57534)}])},94631:(e,t,s)=>{"use strict";s.d(t,{Q:()=>l});var a=s(67394),r=s(61389);class n{async get(e,t){let s={withCredentials:!0};(null==e?void 0:e.cookie)&&(s.headers=e);try{return(await a.SP.get("".concat(this.paths.getTutorOrder).concat(t),s)).data}catch(e){return(0,r.r)(e)}}async setResponseToReview(e,t){try{return(await a.SP.post(this.paths.setTutorResponseToReview,{order_id:e,review_response_text:t},{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}async sendRequestReview(e){try{return(await a.SP.post(this.paths.sendTutorRequestReview,{order_id:e},{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}async setDateFirstLesson(e){try{return(await a.SP.post("".concat(this.paths.setDateFirstLessonTutor),e,{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}
1async setAnswerPersonalRequest(e){try{return(await a.SP.post(this.paths.setTutorAnswerPersonalRequest,e,{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}async setAnswerPotentialRequest(e){try{return(await a.SP.post(this.paths.setTutorAnswerPotentialRequest,e,{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}async setRefusedReason(e){try{return(await a.SP.post(this.paths.setRefusedReason,e,{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}async getOrders(e,t){let s={withCredentials:!0};(null==t?void 0:t.cookie)&&(s.headers=t);try{return(await a.SP.get("".concat(this.paths.getTutorOrders).concat({new:"/new",my:"/my",new_personal:"/new_personal",new_online:"/new_online",new_potential:"/new_potential",new_offline:"/new_offline",active:"/active",archive:"/archive"}[e]),s)).data}catch(e){return(0,r.r)(e)}}constructor(e){this.api=e,this.paths={getTutorOrder:"".concat(this.api,"/order/get?id="),setTutorResponseToReview:"".concat(this.api,"/order/response_review"),sendTutorRequestReview:"".concat(this.api,"/order/request_review"),setDateFirstLessonTutor:"".concat(this.api,"/order/set_first_class"),setTutorAnswerPersonalRequest:"".concat(this.api,"/order/respond_personal"),setTutorAnswerPotentialRequest:"".concat(this.api,"/order/respond_potential"),setRefusedReason:"".concat(this.api,"/order/set_refused_reason "),getTutorOrders:"".concat(this.api,"/orders")}}}let l=new n("".concat(a.Vd,"/tutor"))},96022:(e,t,s)=>{var a={"./enTutorOrderNotifications.json":[83999,3999],"./esTutorOrderNotifications.json":[65918,5918],"./plTutorOrderNotifications.json":[18670,8670],"./ruTutorOrderNotifications.json":[68281,8281],"./uaTutorOrderNotifications.json":[84804,4804]};function r(e){if(!s.o(a,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=a[e],r=t[0];return s.e(t[1]).then(()=>s.t(r,19))}r.keys=()=>Object.keys(a),r.id=96022,e.exports=r}},e=>{e.O(0,[1121,6701,223,9091,1755,5862,351,1315,9558,639,8275,7032,974,1054,636,6593,8792],()=>e(e.s=81232)),_N_E=e.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.