PageSourceSearch

https://buscatuprofesor.es/_next/static/chunks/pages/panel/users_liqpay_merchants-f9725bdaf2b39cff.js

js buscatuprofesor.es collected 2026-09-29 21:00:41 UTC 12,792 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]="ff653e15-a0e9-428f-add0-0113ce9e6d94",e._sentryDebugIdIdentifier="sentry-dbid-ff653e15-a0e9-428f-add0-0113ce9e6d94")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2836],{1109:e=>{e.exports={"gilroy-text":"styles_gilroy-text__4s02V",wrap:"styles_wrap__gSxW0",positive:"styles_positive__02AjV",marked:"styles_marked__SesT7",lastVisited:"styles_lastVisited__SarRt",serviceNotes:"styles_serviceNotes__Ol8pn",id:"styles_id__kMhSA",name:"styles_name__KvbT9",weight:"styles_weight__BkNhE",orders:"styles_orders__p2qMF",price:"styles_price__BMd6G"}},14297:e=>{e.exports={"gilroy-text":"styles_gilroy-text__RMRmO",wrapper:"styles_wrapper__9jpMb",cont:"styles_cont__O1_59",innerCont:"styles_innerCont__edWvy",actionButtonWrapper:"styles_actionButtonWrapper__wIGzk",actionButton:"styles_actionButton__KVGF6",delete:"styles_delete__GwVH9",copy:"styles_copy__am1vh",edit:"styles_edit__9COou",options:"styles_options__i7_f1",active:"styles_active__rHI82",buttonWrapper:"styles_buttonWrapper__Wh7DO",hint:"styles_hint__PZjqX"}},28143:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var s=a(37876),r=a(34906),i=a.n(r),n=a(26831),l=a(49420),d=a(14297),o=a.n(d);let c=i().bind(o()),_=e=>{let{itemId:t,deleteItem:a,showFullItem:r,router:i,noCopy:d}=e,_=(0,l.D)().country,h=n.i18n[_].defaultLocale;return(0,s.jsx)("div",{className:o().wrapper,children:(0,s.jsx)("div",{className:o().cont,children:(0,s.jsx)("div",{className:o().innerCont,children:(0,s.jsxs)("div",{className:o().actionButtonWrapper,children:[a&&(0,s.jsxs)("div",{className:o().buttonWrapper,children:[(0,s.jsx)("button",{className:c({actionButton:!0,delete:!0}),type:"button",onClick:()=>a(t)}),(0,s.jsx)("span",{className:o().hint,children:"es"===h?"Borrar registro":"Видалити запис"})]}),!d&&(0,s.jsxs)("div",{className:o().buttonWrapper,children:[(0,s.jsx)("button",{className:c({actionButton:!0,copy:!0}),type:"button",onClick:()=>{i.push("".concat(i.pathname,"/[id]?action=copy"),"".concat(i.pathname,"/").concat(t,"?action=copy"))}}),(0,s.jsx)("span",{className:o().hint,children:"es"===h?"Copiar registro":"Скопіювати запис"})]}),(0,s.jsxs)("div",{className:o().buttonWrapper,children:[(0,s.jsx)("button",{className:c({actionButton:!0,edit:!0}),type:"button",onClick:r}),(0,s.jsx)("span",{className:o().hint,children:"es"===h?"Openar registro":"Редагувати запис"})]}),(0,s.jsx)("div",{className:o().buttonWrapper,children:(0,s.jsx)("button",{className:c({actionButton:!0,options:!0}),type:"button"})})]})})})})}},28583:(e,t,a)=>{"use strict";a.d(t,{s:()=>n});var s=a(67394),r=a(61389);class i{async get(e,t){let a={withCredentials:!0};(null==t?void 0:t.cookie)&&(a.headers=t);try{return(await s.SP.get("".concat(this.paths.get).concat(e),a)).data}catch(e){return(0,r.r)(e)}}async delete(e,t){let a={withCredentials:!0};(null==t?void 0:t.cookie)&&(a.headers=t);try{return(await s.SP.post(this.paths.delete,{merchant_id:e},a)).data}catch(e){return(0,r.r)(e)}}async create(e,t){let a={withCredentials:!0};(null==t?void 0:t.cookie)&&(a.headers=t);try{return(await s.SP.post(this.paths.create,{merchant:JSON.stringify(e)},a)).data}catch(e){return(0,r.r)(e)}}async save(e,t){let a={withCredentials:!0};(null==t?void 0:t.cookie)&&(a.headers=t);try{return(await s.SP.post(this.paths.save,{merchant:JSON.stringify(e)},a)).data}catch(e){return(0,r.r)(e)}}async getList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,i={withCredentials:!0};(null==a?void 0:a.cookie)&&(i.headers=a);try{return(await s.SP.post(this.paths.getList,{page:e,filters:t},i)).data}catch(e){return(0,r.r)(e)}}constructor(e){this.api=e,this.paths={getList:"".concat(this.api,"/liqpay_merchants/get"),get:"".concat(this.api,"/liqpay_merchant/get?merchant_id="),create:"".concat(this.api,"/liqpay_merchant/create"),save:"".concat(this.api,"/liqpay_merchant/save"),delete:"".concat(this.api,"/liqpay_merchant/delete")}}}let n=new i("".concat(s.Vd,"/admin"))},29029:e=>{"use strict";e.exports=JSON.parse('{"date_from_filter_title":"Початкова дата:","date_to_filter_title":"Кінцева дата:","board_title":"Лікпей-рахунки","form_edit_title":"Лікпей-рахунок - редагування","form_create_title":"Лікпей-рахунок - створення","form_main_info_title":"Основна інформація","clear_date_filter":"Очистити","btn_show_by_dates":"Показати","board_head_id":"id","board_head_name":"НаÐ
1·Ð²Ð°","board_head_weight_order":"Пропорція по заявках","board_head_weight_wallet":"Пропорція по гаманцях","board_head_weight_top":"Пропорція по ТОПах","board_head_orders":"Кількість заявок","board_head_price":"Загальна ціна","merchant_name":{"header":"Назва:","placeholder":"Назва","warning":"не менше 2 символів","required":"Поле обов\'язкове"},"public_key":{"header":"public_key:","placeholder":"public_key","min":"Не менше 2 символів","max":"Не більше 100 символів","required":"Поле обов\'язкове"},"private_key":{"header":"private_key:","placeholder":"private_key","min":"Не менше 2 символів","max":"Не більше 100 символів","required":"Поле обов\'язкове"},"weight_order":{"header":"Пропорція для оплати заявок:","placeholder":"Пропорція для оплати заявок","warning":"не менше 0","required":"Поле обов\'язкове"},"weight_top":{"header":"Пропорція для оплати ТОПів:","placeholder":"Пропорція для оплати ТОПів","warning":"не менше 0","required":"Поле обов\'язкове"},"weight_wallet":{"header":"Пропорція для оплати гаманців:","placeholder":"Пропорція для оплати гаманців","warning":"не менше 0","required":"Поле обов\'язкове"},"month_limit":{"header":"Ліміт на місяць:","placeholder":"Ліміт на місяць","warning":"не менше 0","required":"Поле обов\'язкове"},"year_limit":{"header":"Ліміт на рік:","placeholder":"Ліміт на рік","warning":"не менше 0","required":"Поле обов\'язкове"},"add_commission_type":{"header":"Додавання комісії до ціни заявки при оплаті:","placeholder":"Додавання комісії до ціни заявки при оплаті","warning":"Значення має бути 0 або 1","required":"Поле обов\'язкове"},"checkbox_login":{"header":"Логін касира Checkbox:","placeholder":"Логін","max":"Не більше 100 символів"},"checkbox_password":{"header":"Пароль касира Checkbox:","placeholder":"Пароль","max":"Не більше 100 символів"},"checkbox_license_key":{"header":"Ключ ліцензії каси Checkbox:","placeholder":"Ключ ліцензії","max":"Не більше 100 символів"},"checkbox_vat_code":{"header":"Код ПДВ з Checkbox:","placeholder":"Код ПДВ","warning":"Тільки число"},"add_vat":{"header":"Додавання ПДВ до ціни заявки при оплаті:","placeholder":"Додавання ПДВ","warning":"Значення має бути 0 або 1","required":"Поле обов\'язкове"}}')},34003:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>I});var s=a(37876),r=a(2171),i=a(14232),n=a(89099),l=a(84552),d=a(54443),o=a(49e3),c=a(87790);a(48230);var _=a(28143),h=a(34906),p=a.n(h),u=a(1109),m=a.n(u);let y=p().bind(m()),g=e=>{let{merchant:t,router:a,isLastVisited:r,textData:i,confirmDelete:n}=e,l=()=>{a.push({pathname:"".concat(a.pathname,"/").concat(t.merchant_id),query:{...a.query}})};return(0,s.jsxs)("div",{className:y({wrap:!0,lastVisited:r}),onDoubleClick:l,children:[(0,s.jsx)("section",{className:m().serviceNotes,children:(0,s.jsx)(_.A,{itemId:t.merchant_id,router:a,deleteItem:n,showFullItem:l,noCopy:!0})}),(0,s.jsx)("section",{className:m().id,children:t.merchant_id}),(0,s.jsx)("section",{className:m().name,children:t.merchant_name}),(0,s.jsx)("section",{className:m().weight,children:t.weight_order}),(0,s.jsx)("section",{className:m().weight,children:t.weight_wallet}),(0,s.jsx)("section",{className:m().weight,children:t.weight_top}),(0,s.jsx)("section",{className:m().orders,children:t.count_payments}),(0,s.jsx)("section",{className:m().price,children:t.sum_payments})]})};var x=a(96288),w=a(28583),b=a(63436),v=a(45781),j=a.n(v);let N=e=>{let{currentFilters:t,textData:a,page:_,total_count:h,page_size:p,pages_count:u,list:m}=e,y=(0,n.useRouter)();(0,r.wA)();let{lastVisitedItem:v}=(0,x.V)("merchant"),{startFetching:N,stopFetching:f}=(0,i.useContext)(b.A),[k,q]=(0,i.useState)(m),[C,S]=(0,i.useState)(!1),[P,W]=(0,i.useState)(null);(0,i.useEffect)(()=>{q(m)},[_,t.date_from,t.date_to]);let A=e=>{y.push({pathname:y.pathname,query:{...y.query,page:e}})},I=async e=>{N();let t=await w.s.delete(e);"success"===t.status?(q(k.filter(t=>t.merchant_id!==e)),S(!1),W(null),f({type:"success",message:"Успішно видалено"})):(console.log("hadleActionError",t),t.auth&&!t.auth.admin?y.push(y.asPath):f({type:"error",message:t.error}))},O=e=>{S(!0),W(e)};return(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A,{router:y,title:a.board_title}),(0,s.jsx)(o.A,{textData:a,currentFilters:t,search:!1}),(0,s.jsx)(c.A,{total:h,changePage:A,page:parseInt(_),pageSize:p,pagesCount:u,singleFilter:!1}),(0,s.jsxs)("div",{className:j().listWrapper,children:[(0,s.jsxs)("div",{className:j().head,children:[(0,s.jsx)("p",{className:j().serviceNotes}),(0,s.jsx)("p",{className:j().id,children:a.board_head_id}),(0,s.jsx)("p",{className:j().name,children:a.board_head_name}),(0,s.jsx)("p",{className:j().weight,children:a.board_head_weight_order}),(0,s.jsx)("p",{className:j().weight,children:a.board_head_weight_wallet}),(0,s.jsx)("p",{className:j().weight,children:a.board_head_weight_top}),(0,s.jsx)("p",{className:j().orders,children:a.board_head_orders}),(0,s.jsx)("p",{className:j().price,children:a.board_head_price})]}),k.length>0?(0,s.jsx)(s.Fragment,{children:k.map(e=>(0,s.jsx)(g,{merchant:e,confirmDelete:O,router:y,isLastVisited:v==e.merchant_id,textData:a.thumbnail},e.merchant_id))}):(0,s.jsx)("p",{children:a.empty_response})]}),h>30&&(0,s.jsx)(c.A,{total:h,changePage:A,page:parseInt(_),pageSize:p,pagesCount:u,singleFilter:!1}),C&&(0,s.jsx)(l.A,{hidePopup:S,setItemDeleted:I,item:P})]})};
1var f=a(50925),k=a(39511),q=a(51714),C=a(12352),S=a(29029),P=a(51218),W=a.n(P);let A=(0,r.Ng)()(e=>e.list?(0,s.jsx)("div",{className:W().adminLayout,children:(0,s.jsx)(N,{...e})}):e.access_error?(0,s.jsx)("div",{className:W().adminLayout,children:(0,s.jsx)(k.A,{})}):(0,s.jsx)("div",{className:W().adminLayout,children:(0,s.jsx)(f.A,{})}));A.getInitialProps=async e=>{var t,a,s,r,i,n,l;let{ctx:d}=e,o=(0,q.O)(d),c=d.query||{},_=await new Promise(e=>{setTimeout(()=>{e(S)},1)}),h=await w.s.getList(c.page,c,o),{hasErrors:p,statusCode:u}=(0,C.W)({list:h});return p?(d.res&&(d.res.statusCode=u),{statusCode:u,textData:_}):h.error&&"unauthorized admin"===h.error?{auth:!1}:(null==h?void 0:h.error)&&"forbidden"===h.error?{access_error:!0}:{list:(null==h||null==(t=h.data)?void 0:t.merchants)||{},total_count:(null==h||null==(a=h.data)?void 0:a.total_count)||0,page_size:(null==h||null==(s=h.data)?void 0:s.page_size)||0,pages_count:(null==h||null==(r=h.data)?void 0:r.pages_count)||0,page:d.query.page||1,filters:(null==h||null==(i=h.data)?void 0:i.filters)||{},currentFilters:c,textData:_,admin_id:null==h||null==(n=h.auth)?void 0:n.admin,admin:null==h||null==(l=h.auth)?void 0:l.admin_info}};let I=A},45781:e=>{e.exports={"gilroy-text":"styles_gilroy-text__3L054",listWrapper:"styles_listWrapper__PkyPT",head:"styles_head__KY_V4",serviceNotes:"styles_serviceNotes__VmfDF",id:"styles_id__hb_gc",name:"styles_name__gotsm",weight:"styles_weight__8_ogk",orders:"styles_orders__o2maY",price:"styles_price__sfHk2"}},51714:(e,t,a)=>{"use strict";a.d(t,{O:()=>s});let s=e=>e.req?{cookie:e.req.headers.cookie}:void 0},78925:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/panel/users_liqpay_merchants",function(){return a(34003)}])}},e=>{e.O(0,[223,9091,233,2918,1635,5618,5352,636,6593,8792],()=>e(e.s=78925)),_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.