PageSourceSearch

https://buki.com.ua/_next/static/chunks/8044-070d2cf6b8e8dae0.js

js buki.com.ua collected 2026-09-24 21:46:50 UTC 16,649 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]="8295097b-1c5a-4a75-a749-a9111991042e",e._sentryDebugIdIdentifier="sentry-dbid-8295097b-1c5a-4a75-a749-a9111991042e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8044],{8106:(e,t,s)=>{"use strict";s.d(t,{v:()=>l});var r=s(14232);let n=e=>{let t,s=new Set,r=(e,r)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=r?r:"object"!=typeof n||null===n)?n:Object.assign({},t,n),s.forEach(s=>s(t,e))}},n=()=>t,a={setState:r,getState:n,getInitialState:()=>l,subscribe:e=>(s.add(e),()=>s.delete(e))},l=t=e(r,n,a);return a},a=e=>{let t=(e=>e?n(e):n)(e),s=e=>(function(e,t=e=>e){let s=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(s),s})(t,e);return Object.assign(s,t),s},l=e=>e?a(e):a},12124:(e,t,s)=>{"use strict";s.d(t,{A:()=>_});var r=s(37876),n=s(89099),a=s(34906),l=s.n(a),o=s(49420),i=s(21152),c=s.n(i);let d=l().bind(c()),_=e=>{let{isOpen:t=!0,isNotification:s=!0,setNotification:a=null,handleCloseModal:l,status:i="success",handleConfirmationModal:_=null,redirectLink:u=null,textTitle:h=null,textBody:p=null,successButton:m,cancelButton:j}=e,x=(0,o.D)().siteEmail,y=(0,n.useRouter)(),b=()=>{l(),a&&a(!1),u&&y.push(u)},g='<a href="mailto:'.concat(x,'">').concat(x,"</a>");return t&&(0,r.jsxs)("div",{className:c().main,children:[(0,r.jsxs)("div",{className:c().window,children:[(0,r.jsx)("span",{onClick:b,className:c().close}),s?(0,r.jsxs)(r.Fragment,{children:[h&&(0,r.jsx)("p",{className:c().title,children:h}),(0,r.jsx)("p",{className:d({text:!0,[i]:!0}),dangerouslySetInnerHTML:{__html:p.replace("[:EMAIL]",g)}}),(0,r.jsx)("button",{onClick:b,type:"button",children:m||"OK"})]}):(0,r.jsxs)(r.Fragment,{children:[h&&(0,r.jsx)("p",{className:c().title,children:h}),(0,r.jsx)("div",{className:d({text:!0,[i]:!0}),dangerouslySetInnerHTML:{__html:p}}),(0,r.jsxs)("div",{className:c().buttonsWrapper,children:[(0,r.jsx)("button",{className:c().success,onClick:_,type:"button",children:m||"OK"}),(0,r.jsx)("button",{className:c().cancel,onClick:b,type:"button",children:j||"Cancel"})]})]})]}),(0,r.jsx)("div",{onClick:b,className:c().backDrop})]})}},12352:(e,t,s)=>{"use strict";s.d(t,{W:()=>n});let r=e=>!!e&&"object"==typeof e&&(null==e?void 0:e.status)==="fail"&&"statusCode"in e,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};arguments.length>2&&arguments[2];let s=t.defaults||{},n={},a={};for(let[t,l]of Object.entries(e))r(l)?(n[t]=l,a[t]=Object.prototype.hasOwnProperty.call(s,t)?s[t]:{}):a[t]=null!=l?l:Object.prototype.hasOwnProperty.call(s,t)?s[t]:l;return Object.keys(n).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}})(n),hasErrors:!0}:{data:a,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"}},21292:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var r=s(37876),n=s(14232),a=s(42723),l=s.n(a),o=s(639),i=s(48230),c=s.n(i),d=s(34906),_=s.n(d),u=s(94631),h=s(98709),p=s.n(h);let m=_().bind(p()),j=e=>{let{auth:t,order_type:s,order:a,textData:l,duplicate:o,setNotificationMessage:i,setVisibilityNotification:d,setIsBlocking:_}=e,[h,j]=(0,n.useState)(a),x=async()=>{if(t.tutor_info.blocking_data.blocked_by_debt||t.tutor_info.blocking_data.blocked_by_auto||t.tutor_info.blocking_data.blocked_by_auto_permanent||t.tutor_info.blocking_data.blocked_by_admin)return void _(!0);if(3===h.tutor_review_request_count){i("number_of_attempts_exceeded"),d(!0);return}if(Date.now()-1e3*h.date_review_response<=36e5){i("request_timeout"),d(!0);return}let e=await u.Q.sendRequestReview(h.id);"success"===e.status?(j(e.data.order),i("send_request_for_review"),d(!0)):"fail"===e.status&&e.error&&(i(e.error),d(!0))},y=!0===a.has_response&&[1,2,3,4,9].includes(a.status)&&"active"!==s;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:m({orderThumbnail:!0,duplicate:o,has_res:a.has_response&&a.status<4}),children:(0,r.jsxs)("div",{className:p().orderDetails,children:[(0,r.jsxs)("div",{className:m({orderTitleContainer:!0,oneLine:!(h.review_can_be_requested&&h.tutor_review_request_count<3)}),children:[(0,r.jsxs)("p",{children:["".concat(l.order_number_title," "),Date.now()>1e3*a.date_payment_deadline&&"debt"===s?(0,r.jsx)(c(),{legacyBehavior:!0,href:"/zayavka/".concat(a.id),children:(0,r.jsx)("a",{className:p().debt,children:a.id})}):(0,r.jsx)(c(),{legacyBehavior:!0,href:"/zayavka/".concat(a.id),children:(0,r.jsx)("a",{children:a.id})})]}),(0,r.jsxs)("div",{className:p().btnWrapper,children:[h.review_can_be_requested&&h.tutor_review_request_count<3&&(0,r.jsx)("button",{className:p().getReview,onClick:x,children:l.request_to_review}),(0,r.jsx)(r.Fragment,{children:!0===a.has_response&&[1,2,3,4,9].includes(a.status)&&"active"!==s?(0,r.jsx)(c(),{legacyBehavior:!0,href:"/zayavka/".concat(a.id),children:(0,r.jsx)("a",{className:p().moreInfo,children:l.details_button})}):Date.now()>1e3*a.date_payment_deadline&&"debt"===s&&10!==h.status?(0,r.jsx)(c(),{legacyBehavior:!0,href:"/zayavka/".concat(a.id),children:(0,r.jsx)("a",{className:p().debtOrders,children:l.overdue_button})}):10!==h.status?(0,r.jsx)(c(),{legacyBehavior:!0,href:"/zayavka/".concat(a.id),children:(0,r.jsx)("a",{className:p().moreInfo,children:l.details_button})}):null})]})]}),(0,r.jsxs)("ul",{className:p().orderInfoBlock,children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("span",{className:p().title,children:l.client_name_title}),(0,r.jsx)("span",{children:a.client_name})]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("span",{className:p().title,children:l.lessons_level_title}),(0,r.jsxs)("span",{children:[a.lesson_levels.lessons.map(e=>(0,r.jsx)("i",{children:e.name},e.id))," ","/",a.lesson_levels.levels.map(e=>(0,r.jsx)("i",{children:e.name},e.id))]})]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("span",{className:p().title,children:l.location_title}),(0,r.jsxs)("span",{children:[h.location_at_client?(0,r.jsx)("i",{children:l.location_at_client}):null,h.location_at_tutor?(0,r.jsx)("i",{children:l.location_at_tutor}):null,h.location_at_online?(0,r.jsx)("i",{children:l.location_at_online}):null]})]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("span",{className:p().title,children:l.rate_title}),(0,r.jsx)("span",{children:a.rate.name})]}),!!a.info_preferred_time&&(0,r.jsxs)("li",{children:[(0,r.jsx)("span",{className:p().title,children:l.order_time_title}),(0,r.jsx)("span",{children:a.info_preferred_time})]}),!!a.info_problem&&(0,r.jsxs)("li",{children:[(0,r.jsx)("span",{className:p().title,children:l.problem_title}),(0,r.jsx)("span",{children:a.info_problem})]}),!!a.info_other&&(0,r.jsxs)("li",{children:[(0,r.jsx)("span",{className:p().title,children:l.other_info_title}),(0,r.jsx)("span",{children:a.info_other})]}),y&&(0,r.jsx)("div",{className:p().responseOrder,children:(0,r.jsx)("p",{children:"".concat(l.response_order)})})]})]})})})};var x=s(12124),y=s(27609),b=s(37075),g=s.n(b);let f=e=>{let{auth:t,orders:s,type:a,textData:i,dataBanners:d,dataNotifications:_,lang:u}
1=e,[h,p]=(0,n.useState)(!1),[m,b]=(0,n.useState)(""),[f,v]=(0,n.useState)(!1),[w,T]=(0,n.useState)(null);return(0,n.useEffect)(()=>{var e,t;(null==s||null==(e=s.personal)?void 0:e.orders.length)||(null==s||null==(t=s.potential)?void 0:t.orders.length)||l().dataLayer(y.h.noNewOrders())},[s]),(0,n.useEffect)(()=>{f&&T({status:"fail",textTitle:i.modal_bloking.modal_title,textBody:t.tutor_info.blocking_data.blocked_by_auto||t.tutor_info.blocking_data.blocked_by_auto_permanent||t.tutor_info.blocking_data.blocked_by_admin?i.modal_bloking.modal_message_permanent:i.modal_bloking.modal_message_debt,successButton:t.tutor_info.blocking_data.blocked_by_debt?i.modal_bloking.modal_button_debt:null})},[f]),(0,r.jsxs)("div",{children:[Object.entries(s).map(e=>{var l;let[d,_]=e;return(0,r.jsxs)("section",{className:g().ordersGroupWrapper,id:"debt"===d?"overdue_orders":"",children:[0===_.total_count&&"debt"===d?null:"debt"===d?(0,r.jsx)("div",{className:g().heading,children:(0,r.jsx)("div",{className:g().groupTitle,children:(0,r.jsx)("p",{className:g().debt,children:"".concat(i["".concat(d,"_orders")].title," (").concat(_.total_count||0,")")})})}):(0,r.jsxs)("div",{className:g().heading,children:[(0,r.jsxs)("div",{className:g().groupTitle,children:[(0,r.jsx)("p",{children:"".concat(i["".concat(d,"_orders")].title," (").concat(_.total_count||0,")")}),(0,r.jsx)(o.jB,{message:"".concat(i["".concat(d,"_orders")].hint)})]}),!a&&0!==_.total_count&&(0,r.jsx)(c(),{href:i["".concat(d,"_orders")].link_url,children:i["".concat(d,"_orders")].link})]}),0===_.total_count?"debt"===d?null:(0,r.jsx)("div",{className:g().noOrders,children:"active"===d||"archive"===d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"".concat(g().title," ").concat("active"===d?g().underlined:""),children:i["".concat(d,"_orders")].message_title}),"active"===d&&(0,r.jsx)("p",{className:g().messageActiveTitle,children:i["".concat(d,"_orders")].block_title}),(0,r.jsx)("p",{className:g().message,children:"en"===u&&"active"===d?(0,r.jsxs)(r.Fragment,{children:[i.active_orders.message_text_start,(0,r.jsx)(c(),{href:"/nz",className:g().accent,children:i.active_orders.link_text}),i.active_orders.message_text_end]}):(0,r.jsxs)(r.Fragment,{children:[i["".concat(d,"_orders")].message_text,"active"===d&&(0,r.jsx)(c(),{href:"/nz",className:g().accent,children:i.active_orders.link_text})]})}),"active"===d&&(null==t||null==(l=t.tutor_info)?void 0:l.potential_school_tutor)&&(0,r.jsxs)("div",{className:g().joinSchool,children:[(0,r.jsx)("img",{src:"/img/join_bs.png",alt:"icon"}),(0,r.jsxs)("div",{className:g().block,children:[(0,r.jsx)("p",{className:g().or,children:i.join_school.or}),(0,r.jsxs)("p",{className:g().joinSchoolTitle,children:[(0,r.jsx)("span",{children:i.join_school.title}),(0,r.jsx)("img",{src:"/img/buki_school_logo.png",alt:"BukiSchool logo"})]}),(0,r.jsxs)("p",{className:g().joinSchoolText,children:[(0,r.jsx)("img",{src:"/img/join_bs.png",alt:"icon"}),(0,r.jsx)("span",{children:i.join_school.text})]}),(0,r.jsx)(c(),{href:"/school-tutor",className:g().joinBtn,children:i.join_school.btn})]})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:g().sectionTitle,children:i["".concat(d,"_orders")].message_heading}),(0,r.jsx)("p",{className:g().separator}),i["".concat(d,"_orders")].messages.map(e=>{let{message_title:t,message_text:s}=e;return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("p",{className:g().messageTitle,children:t}),(0,r.jsx)("p",{className:g().messageText,children:s})]},t)})]})}):_.orders.map(e=>{let n=!1;return("online"===d||"offline"===d)&&!a&&s.potential.orders.some(t=>{let{id:s}=t;return e.id===s})&&(n=!0),(0,r.jsx)(j,{auth:t,order_type:d,order:e,textData:i,duplicate:n,setNotificationMessage:b,setVisibilityNotification:p,setIsBlocking:v},e.id)})]},d)}),(0,r.jsx)(x.A,{status:"fail",textBody:"".concat(_[m]),handleCloseModal:()=>p(!1),isOpen:h}),(0,r.jsx)(x.A,{handleCloseModal:()=>v(!1),isOpen:f,...w,redirectLink:t.tutor_info.blocking_data.blocked_by_debt?"/mz/#overdue_orders":null})]})}},37075:e=>{e.exports={"gilroy-text":"styles_gilroy-text__YesLA",ordersGroupWrapper:"styles_ordersGroupWrapper__lE8S_",heading:"styles_heading__OwLeT",groupTitle:"styles_groupTitle__ARLis",debt:"styles_debt__7YJ9w",noOrders:"styles_noOrders__qy50B",title:"styles_title__G4X_h",underlined:"styles_underlined__ydlVz",messageActiveTitle:"styles_messageActiveTitle__FXcMS",message:"styles_message__uJdXV",accent:"styles_accent__B_bjc",joinSchool:"styles_joinSchool__rWP6a",block:"styles_block___Ryd1",or:"styles_or__WZArG",joinSchoolTitle:"styles_joinSchoolTitle__GF9Mk",joinSchoolText:"styles_joinSchoolText__bctOV",joinBtn:"styles_joinBtn__eTsdm",sectionTitle:"styles_sectionTitle__5Bzvn",separator:"styles_separator__d0gul",messageTitle:"styles_messageTitle__SbPrA",messageText:"styles_messageText__YNfiC"}},54280:(e,t,s)=>{"use strict";s.d(t,{Y:()=>n});var r=s(31898);function n(e,t){return+(0,r.a)(e)<+(0,r.a)(t)}},57051:(e,t,s)=>{"use strict";s.d(t,{z:()=>n});var r=s(68173);let n=async e=>e.req?(0,r.RW)():await (0,r.$U)()},80965:(e,t,s)=>{var r={"./enTutorOrderText.json":[7520,7520],"./esTutorOrderText.json":[63839,3839],"./plTutorOrderText.json":[20975,975],"./ruTutorOrderText.json":[74314,4314],"./uaTutorOrderText.json":[68245,8245]};function n(e){if(!s.o(r,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],n=t[0];return s.e(t[1]).then(()=>s.t(n,19))}n.keys=()=>Object.keys(r),n.id=80965,e.exports=n},94631:(e,t,s)=>{"use strict";s.d(t,{Q:()=>l});var r=s(67394),n=s(61389);class a{async get(e,t){let s={withCredentials:!0};(null==e?void 0:e.cookie)&&(s.headers=e);try{return(await r.SP.get("".concat(this.paths.getTutorOrder).concat(t),s)).data}catch(e){return(0,n.r)(e)}}async setResponseToReview(e,t){try{return(await r.SP.post(this.paths.setTutorResponseToReview,{order_id:e,review_response_text:t},{withCredentials:!0})).data}catch(e){return(0,n.r)(e)}}async sendRequestReview(e){try{return(await r.SP.post(this.paths.sendTutorRequestReview,{order_id:e},{withCredentials:!0})).data}catch(e){return(0,n.r)(e)}}async setDateFirstLesson(e){try{return(await r.SP.post("".concat(this.paths.setDateFirstLessonTutor),e,{withCredentials:!0})).data}catch(e){return(0,n.r)(e)}}
1async setAnswerPersonalRequest(e){try{return(await r.SP.post(this.paths.setTutorAnswerPersonalRequest,e,{withCredentials:!0})).data}catch(e){return(0,n.r)(e)}}async setAnswerPotentialRequest(e){try{return(await r.SP.post(this.paths.setTutorAnswerPotentialRequest,e,{withCredentials:!0})).data}catch(e){return(0,n.r)(e)}}async setRefusedReason(e){try{return(await r.SP.post(this.paths.setRefusedReason,e,{withCredentials:!0})).data}catch(e){return(0,n.r)(e)}}async getOrders(e,t){let s={withCredentials:!0};(null==t?void 0:t.cookie)&&(s.headers=t);try{return(await r.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,n.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 a("".concat(r.Vd,"/tutor"))},96022:(e,t,s)=>{var r={"./enTutorOrderNotifications.json":[83999,3999],"./esTutorOrderNotifications.json":[65918,5918],"./plTutorOrderNotifications.json":[18670,8670],"./ruTutorOrderNotifications.json":[68281,8281],"./uaTutorOrderNotifications.json":[84804,4804]};function n(e){if(!s.o(r,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],n=t[0];return s.e(t[1]).then(()=>s.t(n,19))}n.keys=()=>Object.keys(r),n.id=96022,e.exports=n},98709:e=>{e.exports={orderThumbnail:"styles_orderThumbnail__YHh1Q",orderInfoBlock:"styles_orderInfoBlock__gTFt2",title:"styles_title__dCBZ8",orderTitleContainer:"styles_orderTitleContainer__TO0ko",btnWrapper:"styles_btnWrapper__QAnuj",moreInfo:"styles_moreInfo__D5bkt","gilroy-text":"styles_gilroy-text__VbETa",debtOrders:"styles_debtOrders__evo18",getReview:"styles_getReview__Gj2eH",oneLine:"styles_oneLine__d_9k8",duplicate:"styles_duplicate__lUDzn",has_res:"styles_has_res__6vgNm",responseOrder:"styles_responseOrder__5qS__",losted:"styles_losted__S7kwg"}}}]);

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.