PageSourceSearch

https://buki.com.ua/_next/static/chunks/pages/tops-e77c38396ea6e94c.js

js buki.com.ua collected 2026-10-02 10:02:31 UTC 34,398 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:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="a25d5927-a13d-4d6d-9008-f653bf3b0ee5",e._sentryDebugIdIdentifier="sentry-dbid-a25d5927-a13d-4d6d-9008-f653bf3b0ee5")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4216],{6681:(e,s,t)=>{var a={"./enTutorRaitingPage.json":[53224,3224],"./esTutorRaitingPage.json":[74191,4191],"./plTutorRaitingPage.json":[92159,2159],"./ruTutorRaitingPage.json":[87014,7014],"./uaTutorRaitingPage.json":[65121,5121]};function l(e){if(!t.o(a,e))return Promise.resolve().then(()=>{var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s});var s=a[e],l=s[0];return t.e(s[1]).then(()=>t.t(l,19))}l.keys=()=>Object.keys(a),l.id=6681,e.exports=l},8192:e=>{e.exports={top:"styles_top__FIuM2",payment:"styles_payment__oTT90",button:"styles_button__DH7S8",active:"styles_active__QOeUi","gilroy-text":"styles_gilroy-text__711zr",subsWrapper:"styles_subsWrapper__Yv_jq",header:"styles_header__dqkW_",subscription:"styles_subscription__z4DzX",topWrapper:"styles_topWrapper__F6x7u",mainText:"styles_mainText__x3E8I",textBlock:"styles_textBlock__fB8Uc",titleWrapper:"styles_titleWrapper__NsAO5",title:"styles_title__0LeaE",dateWith:"styles_dateWith__wEH26",priceActive:"styles_priceActive__twM8N",sumWallet:"styles_sumWallet__l7fb_",sumCard:"styles_sumCard__GfFoL",show:"styles_show__6UOU2",priceDetails:"styles_priceDetails__IKRrT",details:"styles_details__gOddN",price:"styles_price__M_Rvf",input:"styles_input__MRhXP",inputTitle:"styles_inputTitle__EQGSI",planList:"styles_planList__ak2b7",topPlan:"styles_topPlan__uAiLa",methods:"styles_methods___pcRf",hiddenForm:"styles_hiddenForm__ipnT5",noTop:"styles_noTop__YYUWF"}},12124:(e,s,t)=>{"use strict";t.d(s,{A:()=>p});var a=t(37876),l=t(89099),i=t(34906),n=t.n(i),r=t(49420),c=t(21152),o=t.n(c);let d=n().bind(o()),p=e=>{let{isOpen:s=!0,isNotification:t=!0,setNotification:i=null,handleCloseModal:n,status:c="success",handleConfirmationModal:p=null,redirectLink:_=null,textTitle:u=null,textBody:h=null,successButton:m,cancelButton:x}=e,j=(0,r.D)().siteEmail,y=(0,l.useRouter)(),v=()=>{n(),i&&i(!1),_&&y.push(_)},f='<a href="mailto:'.concat(j,'">').concat(j,"</a>");return s&&(0,a.jsxs)("div",{className:o().main,children:[(0,a.jsxs)("div",{className:o().window,children:[(0,a.jsx)("span",{onClick:v,className:o().close}),t?(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsx)("p",{className:o().title,children:u}),(0,a.jsx)("p",{className:d({text:!0,[c]:!0}),dangerouslySetInnerHTML:{__html:h.replace("[:EMAIL]",f)}}),(0,a.jsx)("button",{onClick:v,type:"button",children:m||"OK"})]}):(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsx)("p",{className:o().title,children:u}),(0,a.jsx)("div",{className:d({text:!0,[c]:!0}),dangerouslySetInnerHTML:{__html:h}}),(0,a.jsxs)("div",{className:o().buttonsWrapper,children:[(0,a.jsx)("button",{className:o().success,onClick:p,type:"button",children:m||"OK"}),(0,a.jsx)("button",{className:o().cancel,onClick:v,type:"button",children:x||"Cancel"})]})]})]}),(0,a.jsx)("div",{onClick:v,className:o().backDrop})]})}},12352:(e,s,t)=>{"use strict";t.d(s,{W:()=>l});let a=e=>!!e&&"object"==typeof e&&(null==e?void 0:e.status)==="fail"&&"statusCode"in e,l=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};arguments.length>2&&arguments[2];let t=s.defaults||{},l={},i={};for(let[s,n]of Object.entries(e))a(n)?(l[s]=n,i[s]=Object.prototype.hasOwnProperty.call(t,s)?t[s]:{}):i[s]=null!=n?n:Object.prototype.hasOwnProperty.call(t,s)?t[s]:n;return Object.keys(l).length>0?{...(e=>{let s=Object.values(e).map(e=>{if(e&&e.statusCode)return e.statusCode});if(s.includes(404))return{statusCode:404,notFound:!0};if(s.includes(429))return{statusCode:429};if(s.includes(403))return{statusCode:403};if(s.includes(410))return{statusCode:410};if(s.includes(0))return{statusCode:0};else return{statusCode:500}})(l),hasErrors:!0}:{data:i,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"}},26799:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>V});var a=t(37876),l=t(85310),i=t(75596),n=t(14232),r=t(89099),c=t(78229),o=t(48230),d=t.n(o),p=t(91695),_=t(83751),u=t(49420),h=t(8192),m=t.n(h);let x=e=>
1{let{top:{city:s,end_date:t,id:l,start_date:i,lesson:n,location_type:r,months_count:c},textData:o}=e,h=(0,u.D)().country,x=_.W[h].catalogAlias,j=_.W[h].catalogOnlineAlias,y="offline"===r?"/".concat(x,"/").concat(n.alias,"/").concat(s.alias):"/".concat(j,"/").concat(n.alias);return(0,a.jsx)("div",{className:m().topWrapper,children:(0,a.jsxs)("div",{className:m().subscription,children:[(0,a.jsxs)("p",{children:["offline"===r?o.subs_left_offline:o.subs_left_online," ",(0,a.jsx)("strong",{children:"".concat(c," ").concat(o.plan_heading_month)})]}),(0,a.jsxs)("p",{children:["".concat(o.subs_time_before," ").concat((0,p.GP)(1e3*i,"dd.MM.yy")," ").concat("offline"===r?o.subs_time_after_offline[h]:o.subs_time_after_online),(0,a.jsx)(d(),{legacyBehavior:!0,href:y,children:(0,a.jsx)("a",{children:o.subs_time_link_text})})]}),(0,a.jsx)("p",{children:"".concat(o.subs_time_period," ").concat((0,p.GP)(1e3*i,"dd.MM.yy")," - ").concat((0,p.GP)(1e3*t,"dd.MM.yy"))}),(0,a.jsxs)("p",{children:[o.subs_subject," ",(0,a.jsx)("strong",{children:n.name})]})]})})};var j=t(34906),y=t.n(j),v=t(41633),f=t.n(v);let N=y().bind(f()),g=e=>{let{points:s,textData:t}=e,{data_on_education_and_skills:l,for_blogs:i,for_ads:r,for_verified:c,manager_for_orders:o,orders_payed:d,orders_review:p,orders_speed_payed:_,profile_occupancy:u,rating_basic:h,responses_to_personal_requests:m,self_appointed_set_first_class:x,speed_responses_to_personal_requests:j,speed_self_appointed_set_first_class:y}=s,[v,g]=(0,n.useState)(-1),[b,w]=(0,n.useState)("0px"),k=(0,n.useRef)();(0,n.useEffect)(()=>{-1===v?w("0px"):w("".concat(k.current.scrollHeight,"px"))},[v]);let T=e=>{g(e===v?-1:e)};return(0,a.jsxs)("section",{className:f().rating,children:[(0,a.jsxs)("div",{className:f().ratingV
1alue,children:[(0,a.jsx)("p",{children:t.rating_page_title}),(0,a.jsx)("p",{className:f().value,children:h})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(1),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:1===v}),children:t.profile_occupancy_heading}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[u.sum_points,"/"]}),(0,a.jsx)("i",{className:f().max,children:u.sum_max_points})]})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:1===v?k:null,style:1===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{className:f().flexRow,children:[(0,a.jsx)("span",{className:f().title,children:t.profile_occupancy_about}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[u.points_for_information.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:u.points_for_information.max_points})]})]}),(0,a.jsxs)("li",{className:f().flexRow,children:[(0,a.jsx)("span",{className:f().title,children:t.profile_occupancy_photo}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[u.points_avatar.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:u.points_avatar.max_points})]})]}),(0,a.jsxs)("li",{className:f().flexRow,children:[(0,a.jsx)("span",{className:f().title,children:t.profile_occupancy_confirm}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[u.points_terms_confirmed.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:u.points_terms_confirmed.max_points})]})]}),(0,a.jsxs)("li",{className:f().flexRow,children:[(0,a.jsx)("span",{className:f().title,children:t.profile_occupancy_schedule}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[u.points_schedule.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:u.points_schedule.max_points})]})]}),(0,a.jsxs)("li",{className:f().flexRow,children:[(0,a.jsx)("span",{className:f().title,children:t.profile_occupancy_video}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[u.points_video_presentation.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:u.points_video_presentation.max_points})]})]})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(2),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:2===v}),children:t.education_skills_heading}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[l.sum_points,"/"]}),(0,a.jsx)("i",{className:f().max,children:l.sum_max_points})]})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:2===v?k:null,style:2===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{className:f().flexRow,children:[(0,a.jsx)("span",{className:f().title,children:t.education_title}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[l.points_education.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:l.points_education.max_points})]})]}),(0,a.jsx)("li",{className:f().options,children:t.education_options.map((e,s)=>(0,a.jsx)("p",{children:e},s))}),(0,a.jsxs)("li",{className:f().flexRow,children:[(0,a.jsx)("span",{className:f().title,children:t.diploma_title}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[l.points_diploma.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:l.points_diploma.max_points})]})]}),(0,a.jsx)("li",{className:f().options,children:t.diploma_options.map((e,s)=>(0,a.jsx)("p",{children:e},s))}),(0,a.jsx)("li",{children:t.education_skills_notes.map((e,s)=>(0,a.jsx)("p",{children:e},s))})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(3),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:3===v}),children:t.request_to_personal_order_heading}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[m.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:m.max_points})]})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}
1),ref:3===v?k:null,style:3===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsx)("ul",{children:t.request_to_personal_order_text.map((e,s)=>(0,a.jsx)("li",{children:e},s))})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(4),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:4===v}),children:t.speed_responses_to_personal_order_heading}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[j.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:j.max_points})]})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:4===v?k:null,style:4===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsx)("ul",{children:(0,a.jsx)("li",{children:t.speed_responses_to_personal_order_text})})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(5),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:5===v}),children:t.set_dpz_heading}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[x.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:x.max_points})]})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:5===v?k:null,style:5===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:t.set_dpz_personally}),(0,a.jsx)("li",{children:t.dpz_rating_depend}),(0,a.jsx)("li",{className:f().options,children:t.dpz_rating_options.map((e,s)=>(0,a.jsx)("p",{children:e},s))}),(0,a.jsx)("li",{children:t.dpz_notes.map((e,s)=>(0,a.jsx)("p",{children:e},s))})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(6),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:6===v}),children:t.speed_to_set_dpz_heading}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[y.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:y.max_points})]})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:6===v?k:null,style:6===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:t.speed_to_set_after_receiving}),(0,a.jsx)("li",{children:t.algorithm_takes_date}),(0,a.jsx)("li",{children:t.rating_depend_on_speed}),(0,a.jsx)("li",{className:f().options,children:t.speed_dpz_options.map((e,s)=>(0,a.jsx)("p",{children:e},s))}),(0,a.jsx)("li",{children:t.pay_fee_without_dpz}),(0,a.jsx)("li",{children:(0,a.jsx)("p",{children:t.speed_dpz_note})})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(7),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:7===v}),children:t.orders_speed_payed_heading}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[_.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:_.max_points})]})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:7===v?k:null,style:7===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[t.orders_speed_payed_text.map((e,s)=>(0,a.jsx)("li",{children:e},s)),(0,a.jsx)("li",{className:f().options,children:t.orders_speed_payed_options.map((e,s)=>(0,a.jsx)("p",{children:e},s))}),(0,a.jsx)("li",{children:t.orders_speed_payed_notes.map((e,s)=>(0,a.jsx)("p",{children:e},s))})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(8),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:8===v}),children:t.orders_payed_heading}),(0,a.jsx)("span",{className:f().value,children:(0,a.jsx)("i",{className:f().current,children:d.sum_points})})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:8===v?k:null,style:8===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:t.orders_payed_rating}),(0,a.jsxs)("li",{className:N({flexRow:!0,innerPoints:!0}),children:[(0,a.jsx)("span",{className:f().title,children:t.order_payed_in_time_with_dpz}),(0,a.jsx)("span",{className:f().value,children:(0,a.jsx)("i",{className:f().current,children:d.points_paid_orders_with_in_time_first_class.points})})]}),(0,a.jsxs)("li",{className:N({flexRow:!0,innerPoints:!0}),children:[(0,a.jsx)("span",{className:f().title,children:t.order_payed_in_time_without_dpz}),(0,a.jsx)("span",{className:f().value,children:(0,a.jsx)("i",{className:f().current,children:d.points_paid_orders.points})})]}),(0,a.jsxs)("li",{className:N({flexRow:!0,innerPoints:!0}),children:[(0,a.jsx)("span",{className:f().title,children:t.order_payed_late}),(0,a.jsx)("span",{className:f().value,children:(0,a.jsx)("i",{className:f().current,children:d.points_paid_late_orders.points})})]})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(9),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:9===v}),children:t.client_reviews_heading}),(0,a.jsx)("span",{className:f().value,children:(0,a.jsx)("i",{className:f().current,children:p.points})})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}
1),ref:9===v?k:null,style:9===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:t.client_reviews_condition}),(0,a.jsx)("li",{className:f().options,children:t.client_reviews_options.map((e,s)=>(0,a.jsx)("p",{children:e},s))})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(10),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:10===v}),children:t.loss_rating_points_heading}),(0,a.jsx)("span",{className:f().value,children:(0,a.jsx)("i",{className:f().current,children:o.points})})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:10===v?k:null,style:10===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:t.loss_five_points}),(0,a.jsx)("li",{children:t.loss_rating_conditions}),(0,a.jsx)("li",{className:f().options,children:t.loss_rating_options.map((e,s)=>(0,a.jsx)("p",{children:e},s))})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(11),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:11===v}),children:t.blog_posting_heading}),(0,a.jsx)("span",{className:f().value,children:(0,a.jsx)("i",{className:f().current,children:i.points})})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:11===v?k:null,style:11===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:t.can_send_blog}),(0,a.jsx)("li",{children:t.can_earn_blogs_points}),(0,a.jsx)("li",{children:t.moderator_blog_points})]})})]}),(0,a.jsxs)("div",{className:f().raitingItem,children:[(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),onClick:()=>T(12),children:[(0,a.jsx)("span",{className:N({headTitle:!0,active:12===v}),children:t.ads_heading}),(0,a.jsxs)("span",{className:f().value,children:[(0,a.jsxs)("i",{className:f().current,children:[r.points,"/"]}),(0,a.jsx)("i",{className:f().max,children:"60"})]})]}),(0,a.jsx)("div",{className:N({raitingItemBody:!0}),ref:12===v?k:null,style:12===v?{maxHeight:b}:{maxHeight:"0px"},children:(0,a.jsx)("p",{children:t.ads_condition})})]}),!!c.points&&(0,a.jsx)("div",{className:f().raitingItem,children:(0,a.jsxs)("p",{className:N({flexRow:!0,raitingItemHead:!0}),children:[(0,a.jsx)("span",{className:N({headTitle:!1}),children:t.verified_heading}),(0,a.jsx)("span",{className:f().value,children:(0,a.jsx)("i",{className:f().current,children:c.points})})]})})]})},b=y().bind(m()),w=e=>{let{plan:s,textData:t,currentMonthCount:l,handleMonthCount:i,handleDayStart:r,handlePay:c}=e,o=(0,u.D)().country,d=_.W[o].siteName,h=_.W[o].currency,[x,j]=(0,n.useState)("pl"===o?"bank".concat(s.months_count):"card".concat(s.months_count)),[y,v]=(0,n.use
1State)(!1),[f,N]=(0,n.useState)(!1),[g,w]=(0,n.useState)("0px"),k=(0,n.useRef)();(0,n.useEffect)(()=>{l!==s.months_count&&(v(!1),N(!1))},[l]),(0,n.useEffect)(()=>{var e;f?w("".concat(null==(e=k.current)?void 0:e.scrollHeight,"px")):w("0px")},[f]);let T=e=>{j(e),_.W[o].tax&&f&&N(!1)};return(0,a.jsxs)("div",{className:b({topPlan:!0,active:y}),children:[(0,a.jsx)("p",{className:m().title,children:"".concat(s.months_count," ").concat(1===s.months_count?t.plan_heading_month:t.plan_heading_months)}),(0,a.jsx)("p",{className:m().dateWith,children:"".concat(t.plan_start_from," ").concat((0,p.GP)(1e3*s.date_start,"dd.MM.yyyy")).concat(t.plan_details_year)}),(0,a.jsxs)("div",{className:m().planDetails,children:[(0,a.jsx)("div",{className:m().info,children:y?_.W[o].tax&&!["kz","mx"].includes(o)?(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:b({priceActive:!0,[x.includes("wallet")?"sumWallet":"sumCard"]:!0,show:f}),onClick:x.includes("wallet")?null:()=>{N(!f)},children:[t.plan_top_sum,(0,a.jsx)("span",{children:"".concat(Number(x.includes("wallet")?s.base_price:s.price).toFixed(2)," ").concat(h)})]}),(0,a.jsxs)("div",{className:m().details,ref:k,style:{maxHeight:g,opacity:+!!f},children:[(0,a.jsxs)("p",{className:m().priceDetails,children:[t.top_vat.base_price,(0,a.jsxs)("span",{children:[Number(s.base_price).toFixed(2)," ".concat(h)]})]}),"ua"===o&&Number(s.commission)>0&&(0,a.jsxs)("p",{className:m().priceDetails,children:[t.top_vat.service_fee,(0,a.jsxs)("span",{children:[Number(s.commission||0).toFixed(2)," ".concat(h)]})]}),Number(s.vat_rate)>0&&(0,a.jsxs)("p",{className:m().priceDetails,children:[t.top_vat.vat,(0,a.jsxs)("span",{children:[Number(s.vat_rate).toFixed(2)," ".concat(h)]})]})]})]}):(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:b({priceActive:!0,sumWallet:!0}),children:[t.plan_top_sum,(0,a.jsx)("span",{children:"".concat(Number(s.price).toFixed(2)," ").concat(h)})]})}):(0,a.jsxs)("p",{className:m().price,children:["".concat(s.price.toFixed(2)," ").concat(h),(0,a.jsx)("span",{children:(0,a.jsx)("span",{children:"(".concat((s.price/s.months_count).toFixed(2)," ").concat(h,"/").concat(t.plan_heading_month,")")})})]})}),(0,a.jsxs)("div",{className:m().payment,children:[(0,a.jsxs)("div",{className:b({methods:!0,active:y}),children:["pl"===o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"radio",value:"bank".concat(s.months_count),id:"bank".concat(s.months_count),checked:x==="bank".concat(s.months_count),onChange:e=>T(e.target.value)}),(0,a.jsx)("label",{htmlFor:"bank".concat(s.months_count),children:t.plan_pay_bank})]}),(0,a.jsx)("input",{type:"radio",value:"card".concat(s.months_count),id:"card".concat(s.months_count),checked:x==="card".concat(s.months_count),onChange:e=>T(e.target.value)}),(0,a.jsx)("label",{htmlFor:"card".concat(s.months_count),children:t.plan_pay_card}),(0,a.jsx)("input",{type:"radio",value:"wallet".concat(s.months_count),id:"wallet".concat(s.months_count),checked:x==="wallet".concat(s.months_count),onChange:e=>T(e.target.value)}),(0,a.jsx)("label",{htmlFor:"wallet".concat(s.months_count),dangerouslySetInnerHTML:{__html:t.plan_pay_wallet.replace("[:site]",d)}})]}),(0,a.jsx)("button",{className:b({button:!0,active:y}),type:"button",onClick:()=>{y?c(x):(i(s.months_count),r(s.date_start),v(!0))},children:y?t.plan_buy_top:t.plan_choose_top})]})]})]})};var k=t(89e3),T=t(12124),I=t(67394),C=t(61389);class H{async get(e){let s={withCredentials:!0};(null==e?void 0:e.cookie)&&(s.headers=e);try{return(await I.SP.get(this.paths.get,s)).data}catch(e){return(0,C.r)(e)}}async payStripe(e,s){let t={withCredentials:!0};(null==s?void 0:s.cookie)&&(t.headers=s);try{return(await I.SP.post(this.paths.payStripe,{...e},t)).data}catch(e){return(0,C.r)(e)}}async paySolidgate(e,s){let t={withCredentials:!0};(null==s?void 0:s.cookie)&&(t.headers=s);try{return(await I.SP.post(this.paths.paySolidgate,{...e},t)).data}catch(e){return(0,C.r)(e)}}async payPrzelewy(e,s){let t={withCredentials:!0};(null==s?void 0:s.cookie)&&(t.headers=s);try{return(await I.SP.post(this.paths.payPrzelewy,{...e},t)).data}catch(e){return(0,C.r)(e)}}async payLiqpay(e,s){let t={withCredentials:!0};(null==s?void 0:s.cookie)&&(t.headers=s);try{return(await I.SP.post(this.paths.payLiqpay,{...e},t)).data}catch(e){return(0,C.r)(e)}}async payFondy(e,s){let t={withCredentials:!0};(null==s?void 0:s.cookie)&&(t.headers=s);try{return(await I.SP.post(this.paths.payFondy,{...e},t)).data}catch(e){return(0,C.r)(e)}}async payRevolut(e,s){let t={withCredentials:!0};(null==s?void 0:s.cookie)&&(t.headers=s);try{return(await I.SP.post(this.paths.payRevolut,{...e},t)).data}catch(e){return(0,C.r)(e)}}async payWallet(e,s){let t={withCredentials:!0};(null==s?void 0:s.cookie)&&(t.headers=s);try{return(await I.SP.post(this.paths.payWallet,{...e},t)).data}catch(e){return(0,C.r)(e)}}constructor(e){this.api=e,this.paths={get:"".concat(this.api,"/top/get"),payStripe:"".concat(this.api,"/top/get_payment_url/stripe"),paySolidgate:"".concat(this.api,"/top/get_payment_url/solidgate"),payPrzelewy:"".concat(this.api,"/top/get_payment_url/przelewy"),payLiqpay:"".concat(this.api,"/top/get_payment_url/liqpay"),payFondy:"".concat(this.api,"/top/get_payment_form/fondy"),payRevolut:"".concat(this.api,"/top/get_payment_url/revolut"),payWallet:"".concat(this.api,"/top/pay_from_wallet")}}}let P=new H("".concat(I.Vd,"/tutor"));var R=t(31573),S=t(76935);let O=e=>{var s,t,l,i,o,d,p,h,j,y,v,f;let N,{auth:b,textData:I,points:C,top:H,textNotifications:O}=e,D=(0,u.D)().country,W=(0,r.useRouter)(),F=Object.values(H.data.top_available).find(e=>{var s,t;return(null==e||null==(s=e.online)?void 0:s.length)&&H.data.work_online||(null==e||null==(t=e.offline)?void 0:t.length)&&H.data.work_offline}
1),[B,z]=(0,n.useState)(!1),[M,E]=(0,n.useState)([...null==H||null==(s=H.data)?void 0:s.top_actual]),[A,q]=(0,n.useState)([]),[L,U]=(0,n.useState)({}),[V,G]=(0,n.useState)((null==F||null==(t=F.lesson)?void 0:t.id)||0),[X,K]=(0,n.useState)((null==H||null==(l=H.data)?void 0:l.work_offline)?"offline":"online"),[Q,Y]=(0,n.useState)(null),[J,Z]=(0,n.useState)(null),[$,ee]=(0,n.useState)(!1),[es,et]=(0,n.useState)(null),[ea,el]=(0,n.useState)(!1),[ei,en]=(0,n.useState)(!1),[er,ec]=(0,n.useState)({}),[eo,ed]=(0,n.useState)(!!(null==(i=W.query)?void 0:i.payment_status)),ep=(0,n.useRef)(),e_=n.createRef();(0,n.useEffect)(()=>{ep.current&&ep.current.submit()},[ei]),"fondy"===_.W[D].paymentMethod?N=(0,R.z)(er,ep):"liqpay"===_.W[D].paymentMethod&&(N=(0,S.F)(er,ep));let eu=async e=>{if("us"!==D){if(el(!0),M.filter(e=>{let{lesson:s,location_type:t,end_date:a}=e;return s.id===L.lesson_id&&t===L.location_type&&a>L.date_start}).length){el(!1),ee(!0),et({status:"fail",textTitle:I.pay_error_title,textBody:I.pay_top_already_purchased});return}if(e.includes("bank")){let e=await P.payPrzelewy(L);(null==e?void 0:e.status)==="success"?W.push(e.data.payment_url):(null==e?void 0:e.error)&&(ee(!0),et({status:"fail",textTitle:I.pay_error_title,textBody:(null==O?void 0:O[e.error])?O[e.error]:O.other_errors}))}else if(e.includes("card")){let e;switch(_.W[D].paymentMethod){case"revolut":e=await P.payRevolut(L);break;case"stripe":e=await P.payStripe(L);break;case"solidgate":e=await P.paySolidgate(L);break;case"liqpay":e=await P.payLiqpay(L);break;case"fondy":e=await P.payFondy(L)}if((null==e?void 0:e.status)==="success"){var s,t,a;(null==(s=e.data)?void 0:s.payment_url)&&W.push(e.data.payment_url),(null==(t=e.data)?void 0:t.payment_form)&&(ec((null==(a=e.data)?void 0:a.payment_form)||{}),en(!0))}else(null==e?void 0:e.error)&&(ee(!0),et({status:"fail",textTitle:I.pay_error_title,textBody:(null==O?void 0:O[e.error])?O[e.error]:O.other_errors}))}if(e.includes("wallet")){et(null);let e=await P.payWallet(L);(null==e?void 0:e.status)==="success"?(E(e.data.top_actual),ee(!0),et({textTitle:I.pay_success_title,textBody:I.pay_success})):(ee(!0),et({status:"fail",textTitle:I.pay_error_title,textBody:(null==O?void 0:O[e.error])?O[e.error]:O.other_errors}))}el(!1)}};return(0,n.useEffect)(()=>{U({tutor_id:b.tutor,lesson_id:Number(V),location_type:X,date_start:J,months_count:Q})},[V,X,J,Q]),(0,n.useEffect)(()=>{var e;let s=Object.values(H.data.top_available).map(e=>{let{offline:s,online:t}=e;return"online"===X&&!!t.length||"offline"===X&&!!s.length}).some(e=>e);z((null==b||null==(e=b.tutor_info)?void 0:e.filled_profile)&&s)},[]),(0,n.useEffect)(()=>{var e;(null==b||null==(e=b.tutor_info)?void 0:e.filled_profile)&&V&&q(H.data.top_available[V][X])},[V,X]),(0,a.jsxs)("div",{children:[ei&&(0,a.jsx)("div",{className:m().hiddenForm,children:N}),!!M.length&&(0,a.jsxs)("div",{className:m().subsWrapper,children:[(0,a.jsx)("div",{className:m().header,children:(0,a.jsx)("p",{children:I.subs_header})}),M.map(e=>(0,a.jsx)(x,{top:e,textData:I},"top-".concat(e.id)))]}),(0,a.jsx)(g,{textData:I,points:C}),!A.length&&(0,a.jsx)("p",{className:m().noTop,children:I.top_not_available}),B&&(0,a.jsxs)("section",{className:m().top,children:[(0,a.jsx)("div",{className:m().titleWrapper,children:(0,a.jsx)("p",{className:m().title,id:"pay",children:I.buy_top_heading})}),(0,a.jsx)("p",{className:m().mainText,children:I.buy_top_text}),(0,a.jsx)("p",{className:m().textBlock,children:I.buy_top_subtext[D]}),(0,a.jsxs)("div",{className:m().input,children:[(0,a.jsx)("p",{className:m().inputTitle,children:I.buy_top_in}),(0,a.jsx)("select",{onChange:e=>G(e.target.value),children:Object.values(H.data.top_available).map(e=>{let{lesson:s,offline:t,online:l}=e;if("online"===X){if(l.length)return(0,a.jsx)("option",{value:s.id,children:s.name},s.id)}else if("offline"===X&&t.length)return(0,a.jsx)("option",{value:s.id,children:s.name},s.id)})}),(0,a.jsxs)("select",{value:X,onChange:e=>K(e.target.value),children:[H.data.work_offline&&!!(null==(o=H.data.top_available[V].offline)?void 0:o.length)&&(0,a.jsx)("option",{value:"offline",children:!!(null==(d=H.data.top_available[V].offline)?void 0:d.length)&&I.tab_local_title},"offline"),H.data.work_online&&!!(null==(p=H.data.top_available[V].online)?void 0:p.length)&&(0,a.jsx)("option",{value:"online",children:!!(null==(h=H.data.top_available[V].online)?void 0:h.length)&&I.tab_online_title},"online")]})]}),(0,a.jsx)("div",{className:m().planList,children:A.map((e,s)=>(0,a.jsx)(w,{plan:e,textData:I,currentMonthCount:Q,handleMonthCount:Y,handleDayStart:Z,handlePay:eu},s))}),["mx"].includes(D)&&(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,a.jsx)(c.A,{ref:e_,size:"invisible",sitekey:"6LdqIV8lAAAAAGiDueTaPSdc0Xu9bfPkcvGRT1MF",onChange:e=>{e&&e_.current.reset()},hl:"es"})}),(0,a.jsx)("p",{className:m().textBlock,children:I.buy_top_note}),(0,a.jsx)("p",{className:m().textBlock,children:I.top_payment_information})]}),ea&&(0,a.jsx)(k.A,{}),(0,a.jsx)(T.A,{...es,handleCloseModal:()=>ee(!1),isOpen:$}),(0,a.jsx)(T.A,{...es,handleCloseModal:()=>ee(!1),isOpen:$}),(null==(j=W.query)?void 0:j.payment_status)&&(0,a.jsx)(T.A,{status:null==(y=W.query)?void 0:y.payment_status,textTitle:(null==(v=W.query)?void 0:v.payment_status)==="success"?I.pay_success_title:I.pay_error_title,textBody:(null==(f=W.query)?void 0:f.payment_status)==="success"?I.solidgate_successible:I.other_errors,handleCloseModal:()=>{ed(!1),W.replace(W.pathname)},isOpen:eo})]})};var D=t(58077),W=t(25377);class F{async get(e){let s={withCredentials:!0};(null==e?void 0:e.cookie)&&(s.headers=e);try{return(await I.SP.get("".concat(this.paths.get),s)).data}catch(e){return(0,C.r)(e)}}constructor(e){this.api=e,this.paths={get:"".concat(this.api,"/rating/get")}}}let B=new F("".concat(I.Vd,"/tutor"));var z=t(51714),M=t(46294),E=t(57051),A=t(12352),q=t(43042),L=t.n(q);let U=e=>e.authError?(0,a.jsx)(i.A,{textData:e.loginData}):(0,a.jsx)(l.A,{auth:e.auth,textData:e.dataHeader,tutor:e.auth.tutor_info,dataBanners:e.dataBanners,title:e.textData.head_title,children:(0,a.jsx)("div",{className:L().profileWrapper,children:(0,a.jsx)(O,{...e})})});U.getInitialProps=async e=>{var s,a;let{ctx:l}=e,i=(await (0,E.z)(l)).country,n=(0,z.O)(l),r=(0,M.U)(l.locale,i),c=await t(6681)("./".concat(r,"TutorRaitingPage.json")),o=await t(13123)("./".concat(r,"Header.json")),d=await t(37053)("./".concat(r,"Footer.json")),p=await t(11869)("./".concat(r,"TutorBanners.json")),_=await t(54261)("./".concat(r,"ClientLoginText.json")),u=await t(96022)("./".concat(r,"TutorOrderNotifications.json")),[h,m,x,j]=await Promise.all([B.get(n),P.get(n),D.I.getFooter(r),W._.getNotifications(n)]),{hasErrors:y,statusCode:v}=(0,A.W)({points:h,top:m});return y?(l.res&&(l.res.statusCode=v),{statusCode:v,textData:c,dataHeader:o,dataFooter:d}):h.error&&"unauthorized tutor"===h.error?{authError:!0,footer:(null==x?void 0:x.data)||{},loginData:_,dataHeader:o,dataFooter:d,pageType:"tutor_cabinet"}:{top:m,points:(null==h||null==(s=h.data)?void 0:s.rating)||{},footer:(null==x?void 0:x.data)||{},notifications:(null==j||null==(a=j.data)?void 0:a.notifications)||{},auth:null==j?void 0:j.auth,textData:c,dataHeader:o,dataFooter:d,dataBanners:p,textNotifications:u,pageType:"tutor_cabinet"}};let V=U},31573:(e,s,t)=>{"use strict";t.d(s,{z:()=>l});var a=t(37876);let l=(e,s)=>{let t=Object.entries(e);return(0,a.jsx)("form",{action:"https://api.fondy.eu/api/checkout/redirect/",method:"post",ref:s,children:t.map(e=>{let[s,t]=e;return(0,a.jsx)("input",{type:"hidden",name:s,value:t},s)})})}},41633:e=>{e.exports={"gilroy-text":"styles_gilroy-text__5Ja63",rating:"styles_rating__i_YQy",ratingValue:"styles_ratingValue__F06Yy",value:"styles_value__XjoKb",flexRow:"styles_flexRow__8VNb5",raitingItem:"styles_raitingItem__0mofk",raitingItemHead:"styles_raitingItemHead__AF9o0",headTitle:"styles_headTitle__qSXwj",active:"styles_active__xwW0G",max:"styles_max__hr9Iu",raitingItemBody:"styles_raitingItemBody__lhN_9",options:"styles_options__roDPq",innerPoints:"styles_innerPoints__1Av_f",textBlock:"styles_textBlock__l5PBq",top:"styles_top__Ty_t2",title:"styles_title__FeDx0",input:"styles_input__JgkvS",topTab:"styles_topTab__7qVLV",tabHead:"styles_tabHead__Zy4gu",tab:"styles_tab__xw_pm",topPlan:"styles_topPlan__iXDza",planPrice:"styles_planPrice__1yQz7",planDetails:"styles_planDetails__vI5ld",info:"styles_info__coayC",infoTitle:"styles_infoTitle__Z_3ao",infoValue:"styles_infoValue__Pi33X",infoPrice:"styles_infoPrice__Hh5_R",payment:"styles_payment__cnmSj"}},57051:(e,s,t)=>{"use strict";t.d(s,{z:()=>l});var a=t(68173);let l=async e=>e.req?(0,a.RW)():await (0,a.$U)()},76935:(e,s,t)=>{"use strict";t.d(s,{F:()=>l});var a=t(37876);let l=(e,s)=>{let t={};if(e.params)return t=Object.entries(e.params),(0,a.jsx)("form",{action:e.action,method:"post",ref:s,children:t.map(e=>{let[s,t]=e;return(0,a.jsx)("input",{type:"hidden",name:s,value:t},s)})})}},82812:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tops",function(){return t(26799)}])},96022:(e,s,t)=>{var a={"./enTutorOrderNotifications.json":[83999,3999],"./esTutorOrderNotifications.json":[65918,5918],"./plTutorOrderNotifications.json":[18670,8670],"./ruTutorOrderNotifications.json":[68281,8281],"./uaTutorOrderNotifications.json":[84804,4804]};function l(e){if(!t.o(a,e))return Promise.resolve().then(()=>{var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s});var s=a[e],l=s[0];return t.e(s[1]).then(()=>t.t(l,19))}l.keys=()=>Object.keys(a),l.id=96022,e.exports=l}},e=>{e.O(0,[223,9091,8072,5862,351,8961,639,4294,7032,3985,636,6593,8792],()=>e(e.s=82812)),_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.