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]="4bfb7a29-7253-46c4-9f02-d694168eb07d",e._sentryDebugIdIdentifier="sentry-dbid-4bfb7a29-7253-46c4-9f02-d694168eb07d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5920],{11430:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(37876);a(14232);var r=a(35755),l=a.n(r);let n=e=>{let{setOverlayVisibility:t,setDataForOverlay:a,index:r,setFieldValue:n,values:i,fieldNames:o}=e,c=()=>{t(!1),a(null)},d="documents"===o[0]?i[o[0]][r].original_name:i[o[0]][r].name;return(0,s.jsxs)("div",{className:l().confirmAction,children:[(0,s.jsx)("span",{className:l().close,type:"button",onClick:c,children:"x"}),(0,s.jsx)("p",{children:"Ðи дÑйÑно бажаÑÑе видалиÑи Ñайл ".concat(d," ?")}),(0,s.jsxs)("div",{className:l().buttonWrapper,children:[(0,s.jsx)("button",{type:"button",className:l().apply,onClick:()=>{for(name of o)n(name,i[name].filter((e,t)=>t!==r));t(!1),a(null)},children:"Так"}),(0,s.jsx)("button",{type:"button",className:l().cancel,onClick:c,children:"ÐÑÑ"})]})]})};var i=a(56213),o=a.n(i);let c=e=>{let{setIsSavingSuccessfuly:t}=e,a=()=>{t(null)};return(0,s.jsxs)("div",{className:o().confirmAction,children:[(0,s.jsx)("span",{className:o().close,type:"button",onClick:a,children:"x"}),(0,s.jsx)("p",{children:"ÐаÑÑ Ð´Ð°Ð½Ñ ÑÑпÑÑно збеÑеженÑ"}),(0,s.jsx)("div",{className:o().buttonWrapper,children:(0,s.jsx)("button",{type:"button",className:o().apply,onClick:a,children:"Так"})})]})};var d=a(70941),_=a.n(d);let u=e=>{let{values:t,setFieldValue:a,setOverlayVisibility:r,setDataForOverlay:l,options:i={},isSavingSuccessfuly:o,setIsSavingSuccessfuly:d}=e;return(0,s.jsx)("div",{className:_().overlay,children:o?(0,s.jsx)(c,{setIsSavingSuccessfuly:d}):(0,s.jsx)(n,{index:i.index,fieldNames:i.fieldNames,values:t,setOverlayVisibility:r,setDataForOverlay:l,setFieldValue:a})})}},12352:(e,t,a)=>{"use strict";a.d(t,{W:()=>r});let s=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 a=t.defaults||{},r={},l={};for(let[t,n]of Object.entries(e))s(n)?(r[t]=n,l[t]=Object.prototype.hasOwnProperty.call(a,t)?a[t]:{}):l[t]=null!=n?n:Object.prototype.hasOwnProperty.call(a,t)?a[t]:n;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:l,hasErrors:!1,statusCode:200}}},20158:e=>{e.exports={"gilroy-text":"styles_gilroy-text__Lf8TQ",inputBox:"styles_inputBox__rD_f7",orderRow:"styles_orderRow__wAtdT",rowItem:"styles_rowItem__n4oQd",listWrapper:"styles_listWrapper__qidCS"}},20393:e=>{e.exports={"gilroy-text":"styles_gilroy-text__ixsRX",overlay:"styles_overlay__dcpEY",confirmAction:"styles_confirmAction__YJsHg",close:"styles_close__JNyqg",buttonWrapper:"styles_buttonWrapper__kQpF0",apply:"styles_apply__VAUp0",cancel:"styles_cancel__mXSFm"}},26604:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(37876),r=a(14232),l=a(80764),n=a(34906),i=a.n(n),o=a(96869),c=a(49420),d=a(26831),_=a(62742),u=a.n(_);let p=i().bind(u()),h=e=>{let t,{values:a,setFieldValue:n,setEditorVisibility:i,setEditorFieldName:_,fieldName:h,loadImage:y}=e,m=(0,c.D)(),x=m.tinyAppKey,v=m.country;if(h.indexOf(".")>0){let e=h.split(".");t=a[e[0]][e[1]]}else t=a.fieldName;let[f,g]=(0,r.useState)(t);return(0,s.jsx)("div",{className:u().overlay,children:(0,s.jsxs)("div",{className:u().editorWrapper,children:[(0,s.jsxs)("div",{className:u().buttonGroup,children:[(0,s.jsx)("p",{className:u().title,children:"РедагÑÐ²Ð°Ð½Ð½Ñ Ð² ÑедакÑоÑÑ"}),(0,s.jsxs)("div",{className:u().buttonWrapper,children:[(0,s.jsx)("button",{type:"button",className:p({btn:!0,green:!0,save:!0}),onClick:()=>{n(h,f),i(!1),_(null)},children:"ÐбеÑегÑи"}),(0,s.jsx)("span",{className:u().hint,children:"ÐбеÑегÑи"})]}),(0,s.jsxs)("div",{className:u().buttonWrapper,children:[(0,s.jsx)("button",{type:"button",className:p({btn:!0,gray:!0,exit:!0}),onClick:()=>{g(""),i(!1),_(null)}}),(0,s.jsx)("span",{className:u().hint,children:"ÐакÑиÑи"})]})]}),(0,s.jsx)("input",{id:"my-file",type:"file",name:"my-file",style:{display:"none"},onChange:""}),(0,s.jsx)(l.K,{value:f,apiKey:x,init:{height:300,content_css:!1,plugins:"preview searchreplace autosave save fullscreen image link lists wordcount table help",language:null===d.i18n||void 0===d.i18n?void 0:d.i18n[v].defaultLocale,convert_urls:!1,link_assume_external_targets:!0,min_height:500,automatic_uploads:!0,images_upload_handler:async e=>{let t=await y(e.blob(),a.id?a.id:0);
1return"success"===t.status?"".concat(t.data.image.url):Promise.reject({message:o[t.error.file],remove:!0})},menubar:"file edit insert view format tools table help",toolbar:a.id?"bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | image link | preview":"bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link | preview",toolbar_sticky:!0,file_picker_types:"image"},onEditorChange:e=>{g(e)}})]})})}},28547:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(37876);a(14232);var r=a(20393),l=a.n(r);let n=e=>{let{setVisibilityNotification:t,message:a}=e,r=()=>{t(!1)};return(0,s.jsx)("div",{className:l().overlay,children:(0,s.jsxs)("div",{className:l().confirmAction,children:[(0,s.jsx)("span",{className:l().close,type:"button",onClick:r,children:"x"}),(0,s.jsx)("p",{children:a}),(0,s.jsx)("div",{className:l().buttonWrapper,children:(0,s.jsx)("button",{type:"button",className:l().apply,onClick:r,children:"OK"})})]})})}},31948:e=>{e.exports={"gilroy-text":"styles_gilroy-text__MWTkc",flag:"styles_flag__6CpSe",inputBox:"styles_inputBox__ZP4MG",mx:"styles_mx__JH2Ns",in:"styles_in__MEWFV",us:"styles_us__Zixqb",kz:"styles_kz__b3IlT",ng:"styles_ng__BQ3ei",es:"styles_es__sN5jV",pl:"styles_pl__Vw0GF",en:"styles_en__novSr",ru:"styles_ru__43Dky",ua:"styles_ua__RQL5J",fieldWrapper:"styles_fieldWrapper__jr_jP",fixedWrapper:"styles_fixedWrapper__eQpy_",error:"styles_error__Uhmdh",moderatedField:"styles_moderatedField__edGIE",currentNewValue:"styles_currentNewValue__oE1Vg",buttonWrapper:"styles_buttonWrapper__Bq_EN",hint:"styles_hint__A_t3h",statusButton:"styles_statusButton__H6ktc",editor:"styles_editor__iEv_c"}},33313:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(37876);a(49420);var r=a(50223),l=a(34906),n=a.n(l),i=a(31948),o=a.n(i);let c=n().bind(o()),d=(e,t,a)=>{var s;let r=e.split(".").reduce((e,t)=>e&&e[t],t);return{moderatedField:!!(null==r?void 0:r.moderated),newValue:!!(null==r||null==(s=r.moderated)?void 0:s[a])}},_=e=>{var t,a,l,n;let i,{values:_,errors:u,touched:p,field:h,fieldName:y,lang:m,placeholder:x,handleFocus:v,type:f,editor:g,handleOpenEditor:b,handleEditInputValue:j}=e;i=(null==u?void 0:u[h])?!!(null==u||null==(l=u[h])?void 0:l[m])&&!!(null==p||null==(n=p[h])?void 0:n[m]):!!(null==u?void 0:u[y])&&!!(null==p?void 0:p[y]);let w=_[h]?!!_[h].moderated:d(h,_,m).moderatedField,N=_[h]?!!(null==(a=_[h])||null==(t=a.moderated)?void 0:t[m]):d(h,_,m).newValue,k="textarea"===f?(0,s.jsx)(r.D0,{name:y,component:"textarea",placeholder:x,onFocus:e=>v(e),onBlur:e=>{j(y,e.target.value)},style:g?{minHeight:"200px"}:{},className:c({error:i,moderatedField:w,currentNewValue:N,[m]:!0})}):(0,s.jsx)(r.D0,{name:y,placeholder:x,onFocus:e=>v(e),onBlur:e=>{j(y,e.target.value)},className:c({error:i,moderatedField:w,currentNewValue:N,[m]:!0})});return(0,s.jsxs)("div",{className:o().inputBox,children:["textarea"===f&&g&&(0,s.jsxs)("div",{className:o().buttonWrapper,children:[(0,s.jsx)("button",{className:c({statusButton:!0,editor:!0,active:!0}),type:"button",onClick:()=>{b(y)}}),(0,s.jsx)("span",{className:o().hint,children:"РедакÑоÑ"})]}),k]})},u=e=>{var t,a;let{textData:r="ÐÑдкÑиÑи ÑедакÑоÑ",fieldName:l,values:n,errors:i,touched:c,data:d,mainLang:u,currentMultiField:p,setCurrentMultiField:h,langVersions:y,type:m,editor:x,handleOpenEditor:v,placeholder:f,heading:g,handleEditInputValue:b=()=>{}}=e,j="",w=null==i?void 0:i[l],N=null==c?void 0:c[l];if(w){for(let e of y)if(w[e]){j=w[e];break}}let k=()=>{h(l)},C=y.filter(e=>e!==u).map(e=>{var t;return(0,s.jsx)(_,{values:n,errors:i,touched:c,field:l,fieldName:"".concat(l,".").concat(e),lang:e,placeholder:(null==(t=d[l])?void 0:t.placeholder)||f,handleFocus:k,type:m,editor:x,handleOpenEditor:v,textData:r,handleEditInputValue:b},"".concat(l,"_").concat(e))});return(0,s.jsxs)("div",{className:o().fieldWrapper,children:[(0,s.jsx)("p",{children:(null==(t=d[l])?void 0:t.header)||g}),(0,s.jsx)(_,{values:n,errors:i,touched:c,field:l,fieldName:"".concat(l,".").concat(u),lang:u,placeholder:(null==(a=d[l])?void 0:a.placeholder)||f,handleFocus:k,type:m,editor:x,handleOpenEditor:v,handleEditInputValue:b}),p===l&&(0,s.jsx)(s.Fragment,{children:C}),w&&N&&(0,s.jsx)("div",{className:"fieldError",children:j})]})}},35755:e=>{e.exports={"gilroy-text":"styles_gilroy-text__aOhcE",confirmAction:"styles_confirmAction__8htcq",close:"styles_close__1VrHR",buttonWrapper:"styles_buttonWrapper__krS3U",apply:"styles_apply__snOph",cancel:"styles_cancel__6HzgT"}},41612:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(37876),r=a(14232),l=a(50223),n=a(20158),i=a.n(n),o=a(75597);let c=e=>{let{errors:t,touched:a,values:n,setFieldValue:c,items:d,formData:_,field:u}=e,[p,h]=(0,r.useState)(""),[y,m]=(0,r.useState)(!1),x=(0,o.WH)(d,p);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:_[u].header}),(0,s.jsxs)("div",{className:i().inputBox,children:[(0,s.jsx)("input",{type:"checkbox",onChange:()=>{y?c(u,[]):c(u,Object.values(d).map(e=>{let{id:t}=e;return t})),m(!y)},value:y,checked:y}),(0,s.jsx)("input",{type:"text",value:p,onChange:e=>h(e.target.value)})]}),(0,s.jsx)(l.Kw,{className:"fieldError",component:"div",name:u}),(0,s.jsx)("div",{className:i().inputBox,children:(0,s.jsx)(l.ED,{name:u,render:e=>(0,s.jsx)("div",{className:i().listWrapper,children:x.map(t=>(0,s.jsxs)("label",{children:[(0,s.jsx)(l.D0,{type:"checkbox",checked:n[u].includes(t.value),onChange:()=>(t=>{let a=n[u].indexOf(t);a>=0?e.remove(a):e.push(t)})(t.value)}),t.label]},t.value))})})})]})}},43148:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/panel/news_show/news_cats/[id]",function(){return a(92494)}])},44409:e=>{e.exports={"gilroy-text":"styles_gilroy-text__L5OM6",form:"styles_form__T_tUe",adminInfo:"styles_adminInfo___IYFs",panelBox:"styles_panelBox__6kiSK",panelTitle:"styles_panelTitle___VP_E",tutorDataWrapper:"styles_tutorDataWrapper__zjOT8",fieldWrapper:"styles_fieldWrapper__0vfku",hide:"styles_hide__2YbAo",buttonGreen:"styles_buttonGreen___vf8C",buttonOrange:"styles_buttonOrange__kAe
10D",inputBox:"styles_inputBox__hQoC9",moderated:"styles_moderated__pfkwq",buttonWrapper:"styles_buttonWrapper__C7yqu",orderRow:"styles_orderRow__Ahb2n",statusPanel:"styles_statusPanel__9_d8S",buttonContainer:"styles_buttonContainer__G0azI",hint:"styles_hint__laksl",statusButton:"styles_statusButton__q1dlD",notBtn:"styles_notBtn___EFQM",editor:"styles_editor__il2S6",mark:"styles_mark__CPlNd",markOff:"styles_markOff__LMB7S",activeOn:"styles_activeOn__CBEcc",activeOff:"styles_activeOff___GeG5",clock:"styles_clock__SlpwW",clockOn:"styles_clockOn__xg3Ky",active:"styles_active__rYF3M",eventButton:"styles_eventButton__6hovf"}},52047:(e,t,a)=>{"use strict";a.d(t,{W:()=>n});var s=a(67394),r=a(61389);class l{async get(e,t){let a={withCredentials:!0};(null==e?void 0:e.cookie)&&(a.headers=e);try{return(await s.SP.get("".concat(this.paths.get).concat(t),a)).data}catch(e){return(0,r.r)(e)}}async deleteCategory(e){try{return(await s.SP.post(this.paths.delete,{id:e},{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}async create(e){try{return(await s.SP.post(this.paths.create,{news_category:JSON.stringify(e)},{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}async save(e){try{return(await s.SP.post(this.paths.save,{news_category:JSON.stringify(e)},{withCredentials:!0})).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?arguments[1]:void 0,a={withCredentials:!0};(null==t?void 0:t.cookie)&&(a.headers=t);try{return(await s.SP.get("".concat(this.paths.getList,"?page=").concat(e),a)).data}catch(e){return(0,r.r)(e)}}async setActive(e){try{return(await s.SP.post(this.paths.setActive,{id:e},{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}constructor(e){this.api=e,this.paths={get:"".concat(this.api,"/news_category/get?id="),save:"".concat(this.api,"/news_category/save"),create:"".concat(this.api,"/news_category/create"),delete:"".concat(this.api,"/news_category/delete"),getList:"".concat(this.api,"/news_categories/get"),setActive:"".concat(this.api,"/news_category/set_active_or_inactive")}}}let n=new l("".concat(s.Vd,"/admin"))},56213:e=>{e.exports={"gilroy-text":"styles_gilroy-text__0ZNV3",confirmAction:"styles_confirmAction__IfTqf",close:"styles_close__JrJ6W",buttonWrapper:"styles_buttonWrapper__9Zevk",apply:"styles_apply__CXf9r",cancel:"styles_cancel__Wr4QH"}},59199:e=>{"use strict";e.exports=JSON.parse('{"board_title":"Ðовини","list_title":{"popular":"ÐопÑлÑÑне","id":"id","name":"Ðазва"},"board_text_filter_label":"","board_text_filter_placeholder":"ÐоÑÑк...","main_info_title":"ÐÑновна ÑнÑоÑмаÑÑÑ","image_info_title":"ÐобÑаженнÑ","image_info_del_btn":"ÐидалиÑи головне зобÑаженнÑ","image_info_add_btn":"ÐодаÑи головне зобÑаженнÑ","image_new_msg":"* ÐобÑÐ°Ð¶ÐµÐ½Ð½Ñ Ð³Ð¾Ñове до збеÑеженнÑ. ÐÐ»Ñ Ð·Ð±ÐµÑÐµÐ¶ÐµÐ½Ð½Ñ Ð·Ð¾Ð±ÑÐ°Ð¶ÐµÐ½Ð½Ñ Ð½Ð° ÑеÑвеÑÑ Ð·Ð±ÐµÑежÑÑÑ Ð½Ð¾Ð²Ð¸Ð½Ñ","meta_info_title":"ÐеÑаÑеги","url_title":"ÐдÑеÑа ÑÑоÑÑнки","metatag_title":"ÐеÑаÑеги","online_metatag_title":"ÐеÑаÑеги","news_form_title":"СÑвоÑÐµÐ½Ð½Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸","news_button_hints":{"active":"ÐкÑивна новина","set_published":"ÐпÑблÑкÑваÑи"},"name":{"header":"Ðазва новини:","placeholder":"Ðазва","warning":"вÑд 10 до 100 ÑимволÑв","required":"ÐеобÑ
Ñдно заповниÑи"},"preview":{"header":"ÐÐ½Ð¾Ð½Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸:","placeholder":"ÐÐ½Ð¾Ð½Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸"},"text":{"header":"ТекÑÑ Ð½Ð¾Ð²Ð¸Ð½Ð¸:","placeholder":"ТекÑÑ Ð½Ð¾Ð²Ð¸Ð½Ð¸","warning":"вÑд 100 до 10000 ÑимволÑв","required":"ÐеобÑ
Ñдно заповниÑи"},"alias":{"header":"ÐÑевдонÑм:","placeholder":"ÐÑевдонÑм"},"news_category_id":{"header":"ÐÑновна ÑÑбÑика:","placeholder":"ÐÑновна ÑÑбÑика","required":"ÐеобÑ
Ñдно заповниÑи"},"similar_news_ids":{"header":"СÑ
Ð¾Ð¶Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸:","placeholder":"СÑ
Ð¾Ð¶Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸","max":"ÐибеÑÑÑÑ Ð½Ðµ бÑлÑÑе 3 новин","warning":"ID Ð¼Ð°Ñ Ð±ÑÑи ÑиÑлом"},"news_categories":{"header":"Ð ÑбÑики:","placeholder":"Ð ÑбÑики"}
1,"source":{"header":"ÐжеÑело новини:","placeholder":"ÐжеÑело новини"},"date":{"header":"ÐаÑа новин:","placeholder":"ÐаÑа новин"},"time":{"header":"Ð§Ð°Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸:","placeholder":"Ð§Ð°Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸"},"author":{"header":"ID авÑоÑа новини:","placeholder":"ID"},"user_type":{"header":"ÐвÑÐ¾Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸","placeholder":"ÐвÑÐ¾Ñ Ð½Ð¾Ð²Ð¸Ð½Ð¸","types":{"tutor":"Tutor","author":"Author"}},"lessons":{"header":"ÐвÑÐ·Ð°Ð½Ñ Ð¿ÑедмеÑи:","placeholder":"ÐоÑÑк"},"levels":{"header":"Ð ÑÐ²Ð½Ñ Ð¿ÑдгоÑовки:","placeholder":"ÐоÑÑк"},"seo_faq":{"header":"FAQ:","placeholder":"FAQ"},"title":{"header":"ТайÑл:","placeholder":"ТайÑл"},"description":{"header":"ÐпиÑ:","placeholder":"ÐпиÑ"},"url":{"header":"ÐÑевдонÑм:","placeholder":"url"},"redirect_url":{"header":"РедÑÑÐµÐºÑ 301:","placeholder":"ÐдÑеÑа 301 ÑедÑÑекÑÑ"},"No blog":"ÐÐµÐ¼Ð°Ñ Ð±Ð»Ð¾Ð³Ñ Ð· Ñаким id","no_blog":"ÐÐµÐ¼Ð°Ñ Ð±Ð»Ð¾Ð³Ñ Ð· Ñаким id","wrong_status":"Ðеможлива дÑÑ Ð· блогом в ÑÐ°ÐºÐ¾Ð¼Ñ ÑÑаÑÑÑÑ","incorrect_id":"ÐевÑÑне знаÑеннÑ, ÑпÑобÑйÑе Ñе Ñаз","no_id":"ÐевÑÑне знаÑеннÑ, ÑпÑобÑйÑе Ñе Ñаз"}')},62742:e=>{e.exports={"gilroy-text":"styles_gilroy-text__CDtWJ",overlay:"styles_overlay__J82pe",editorWrapper:"styles_editorWrapper__jNHqj",buttonGroup:"styles_buttonGroup__AEjgO",title:"styles_title__WFKsh",buttonWrapper:"styles_buttonWrapper__1c1yU",hint:"styles_hint__p2Bc9",btn:"styles_btn__j3SiJ",gray:"styles_gray__iUVZt",green:"styles_green__pjLFb",create:"styles_create__6MMlS",save:"styles_save__63JCj",saveExit:"styles_saveExit__9d6fc",exit:"styles_exit__vQ9yr"}},63527:e=>{"use strict";e.exports=JSON.parse('{"main_info_title":"ÐÑновна ÑнÑоÑмаÑÑÑ","meta_info_title":"ÐеÑаÑеги","url_title":"ÐдÑеÑа ÑÑоÑÑнки","category_form_title":"СÑвоÑÐµÐ½Ð½Ñ ÐºÐ°ÑегоÑÑÑ","news_button_hints":{"active":"ÐкÑивна каÑегоÑÑÑ","set_published":"ÐкÑивÑваÑи"},"name":{"header":"Ðазва каÑегоÑÑÑ:","placeholder":"Ðазва","warning":"вÑд 10 до 100 ÑимволÑв","required":"ÐеобÑ
Ñдно заповниÑи"},"icon":{"header":"Ðконка:","placeholder":"ÐºÐ»Ð°Ñ Ð´Ð»Ñ Ð·Ð¾Ð±ÑаженнÑ"},"alias":{"header":"ÐÑевдонÑм:","placeholder":"ÐÑевдонÑм"},"title":{"header":"ТайÑл:","placeholder":"ТайÑл"},"incorrect_id":"ÐевÑÑне знаÑеннÑ, ÑпÑобÑйÑе Ñе Ñаз","no_id":"ÐевÑÑне знаÑеннÑ, ÑпÑобÑйÑе Ñе Ñаз"}')},70941:e=>{e.exports={"gilroy-text":"styles_gilroy-text__xxf0d",overlay:"styles_overlay___7kbh"}},92010:(e,t,a)=>{"use strict";a.d(t,{i:()=>r});var s=a(26831);let r=e=>{let t=s.i18n[e].locales,a={};return t.map(function(e){a[e]=""}),a}},92494:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>P});var s=a(37876),r=a(2171),l=a(14232),n=a(89099),i=a(95062),o=a.n(i),c=a(50223),d=a(34906),_=a.n(d),u=a(15423),p=a(52047),h=a(44409),y=a.n(h),m=a(75597);a(11430);var x=a(54443);a(41612),a(26604);var v=a(28547),f=a(33313),g=a(49420),b=a(39091),j=a(59199),w=a(26831);let{name:N,text:k}=j,C=(e,t)=>{let a=w.i18n[t].locales;return b.Ik().shape({name:b.Ik().shape(((e,t,a)=>{let s;if("boolean"==typeof t.required)s=t.required?b.Yj().min(t.min,"ÐÑд ".concat(t.min," до ").concat(t.max," ÑимволÑв")).max(t.max,"ÐÑд ".concat(t.min," до ").concat(t.max," ÑимволÑв")).required():b.Yj().matches(new RegExp("^[\\W\\w]{".concat(t.min,",").concat(t.max,"}$")),{excludeEmptyString:!0,message:"ÐÑд ".concat(t.min," до ").concat(t.max," ÑимволÑв")});else for(let r of(s={},a))s[r]=t.required.includes(r)?b.Yj().min(t.min,"ÐÑд ".concat(t.min," до ").concat(t.max," ÑимволÑв")).max(t.max,"ÐÑд ".concat(t.min," до ").concat(t.max," ÑимволÑв")).required(e.required):b.Yj().matches(new RegExp("^[\\W\\w]{".concat(t.min,",").concat(t.max,"}$")),{excludeEmptyString:!0,message:"ÐÑд ".concat(t.min," до ").concat(t.max," ÑимволÑв")});return s})(N,e.name,a))})};var W=a(92010);let O=_().bind(y()),S=e=>{let{errors:t,touched:a,values:r,setFieldValue:n,isSubmitting:i,isValidating:o,formData:d,router:_,action:u,dispatch:h}=e,x=(0,g.D)().country,b=w.i18n[x].defaultLocale,j=w.i18n[x].locales,{main_info_title:N,meta_info_title:k,news_button_hints:C,icon:W}=d,[S,E]=(0,l.useState)(""),[A,B]=(0,l.useState)(!1),[F,q]=(0,l.useState)("");(0,l.useEffect)(()=>
1{if(i&&!o){let e=Object.keys(t);e.length>0&&window.scrollTo(0,(0,m.kt)(e[0]))}},[t,i,o]);let I=async()=>{let e=await p.W.setActive(r.id);"success"===e.status?n("active",!r.active):(B(!0),E(e.error))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.lV,{className:y().form,children:[(0,s.jsx)("section",{className:y().adminInfo,children:(0,s.jsxs)("div",{className:y().panelBox,children:[(0,s.jsx)("p",{className:y().panelTitle,children:N}),(0,s.jsx)("div",{className:y().statusPanel,children:r.id&&(0,s.jsxs)("div",{className:y().buttonWrapper,children:[(0,s.jsx)("button",{className:O({statusButton:!0,activeOff:!r.active,activeOn:r.active,active:!0}),type:"button",onClick:I}),(0,s.jsx)("span",{className:y().hint,children:C.set_published})]})}),(0,s.jsx)(f.A,{values:r,errors:t,touched:a,fieldName:"name",data:d,langVersions:j,mainLang:b,currentMultiField:F,setCurrentMultiField:q}),(0,s.jsxs)("div",{className:y().fieldWrapper,children:[(0,s.jsx)("p",{children:W.header}),(0,s.jsx)("div",{className:y().inputBox,children:(0,s.jsx)(c.D0,{name:"icon",type:"text",placeholder:W.placeholder})}),(0,s.jsx)(c.Kw,{className:"fieldError",component:"div",name:"icon"})]})]})}),(0,s.jsx)("section",{className:y().adminInfo,children:(0,s.jsxs)("div",{className:y().panelBox,children:[(0,s.jsx)("p",{className:y().panelTitle,children:k}),(0,s.jsx)("div",{className:y().fieldWrapper,children:(0,s.jsx)(f.A,{values:r,errors:t,touched:a,fieldName:"title",data:d,langVersions:j,mainLang:b,currentMultiField:F,setCurrentMultiField:q})})]})})]}),A&&""!==S&&(0,s.jsx)(v.A,{message:"".concat(d[S]),setVisibilityNotification:B})]})},E=e=>{let t=(0,g.D)().country,a=w.i18n[t].defaultLocale,i=(0,n.useRouter)(),o=(0,r.wA)(),d={..."create"!==e.action?e.newsCategory.data.news_category:({newCategoryItem:{alias:"",active:!1,name:(0,W.i)(t),icon:""}}).newCategoryItem,...{action:e.action}},_="create"!==e.action?C(e.newsCategory.data.rules,t):C(e.rules,t),[h,m]=(0,l.useState)(d),[v,f]=(0,l.useState)(null),[b,j]=(0,l.useState)(_),[N,k]=(0,l.useState)(!1),[O,E]=(0,l.useState)(""),A=async t=>{let a;if(null!==v&&f(null),""!==O&&E(""),"success"===(a="create"===e.action?await p.W.create(t):await p.W.save(t)).status){if(N)return void(e.action?i.push("/panel/news_show"):i.back());m(a.data.news_category),f(!0),O&&E(""),j(_)}else{if(a.error&&"unauthorized admin"===a.error){o(u.h.fillAuth(a.auth)),i.push(i.asPath);return}E(a.error),f(!1)}};return(0,s.jsx)("div",{className:y().form,children:(0,s.jsx)(c.l1,{initialValues:h,validationSchema:b,onSubmit:A,enableReinitialize:!0,component:t=>(0,s.jsxs)("div",{children:[(0,s.jsx)(x.A,{router:i,title:void 0===e.action?"#".concat(h.id," - ").concat(h.name[a]):e.formData.category_form_title,type:"single",formikProps:t,uniqErrors:O,setUniqErrors:E,setIsSaveExit:k}),(0,s.jsx)(S,{formData:e.formData,action:e.action,router:i,dispatch:o,...t})]})})})};E.propTypes={errors:o().objectOf(o().string),touched:o().objectOf(o().bool)};var A=a(50925),B=a(39511),F=a(63527),q=a(51218),I=a.n(q),D=a(12352);let V=(0,r.Ng)()(e=>!1===e.auth?(0,s.jsx)("div",{className:I().adminLayout,children:(0,s.jsx)(A.A,{})}):e.access_error?(0,s.jsx)("div",{className:I().adminLayout,children:(0,s.jsx)(B.A,{})}):e.error&&""!==e.error?(0,s.jsx)("div",{className:I().adminLayout,children:(0,s.jsx)("p",{children:Object.prototype.hasOwnProperty.call(F,e.error)?F[e.error]:e.error})}):(0,s.jsx)("div",{className:I().adminLayout,children:(0,s.jsx)(E,{...e})}));V.getInitialProps=async e=>{var t,a;let s,r,l,{ctx:n}=e,i=(null==n||null==(a=n.req)||null==(t=a.headers)?void 0:t.cookie)?{cookie:n.req.headers.cookie}:void 0,o=await new Promise(e=>{setTimeout(()=>{e(F)},200)});if(l={name:{required:["ua","ru","en"],min:10,max:100}},"create"===n.query.action)r="create";else if("fail"===(s=await p.W.get(i,n.query.id)).status)return{error:s.error};let{hasErrors:c,statusCode:d}=(0,D.W)({rules:l,newsCategory:s});return c?(n.res&&(n.res.statusCode=d),{statusCode:d}):"create"!==r&&s.error&&"unauthorized admin"===s.error?{auth:!1}:(null==s?void 0:s.error)&&"forbidden"===s.error?{access_error:!0}:{newsCategory:s,action:r,formData:o,rules:l}};let P=V},96869:e=>{"use strict";e.exports=JSON.parse('{"not a file":"не Ñ Ñайлом","upload_fail":"зобÑÐ°Ð¶ÐµÐ½Ð½Ñ Ð½Ðµ заванÑажено","format_availability":"недопÑÑÑимий mime type зобÑаженнÑ","max_size":"пеÑевиÑено допÑÑÑимий ÑозмÑÑ Ð·Ð¾Ð±ÑаженнÑ","max_name_length":"пеÑевиÑено допÑÑÑÐ¸Ð¼Ñ Ð´Ð¾Ð²Ð¶Ð¸Ð½Ñ Ð½Ð°Ð·Ð²Ð¸ зобÑаженнÑ","incorrect_filename":"недопÑÑÑима назва ÑайлÑ","image_min_width_height":"недопÑÑÑима ÑиÑина або виÑоÑа зобÑаженнÑ"}')}},e=>{e.O(0,[223,9091,764,233,2918,7261,636,6593,8792],()=>e(e.s=43148)),_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.