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]="bb6e0fdb-cb5a-421c-a084-e1b7b82a4503",e._sentryDebugIdIdentifier="sentry-dbid-bb6e0fdb-cb5a-421c-a084-e1b7b82a4503")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9487],{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,i]of Object.entries(e))s(i)?(r[t]=i,l[t]=Object.prototype.hasOwnProperty.call(a,t)?a[t]:{}):l[t]=null!=i?i:Object.prototype.hasOwnProperty.call(a,t)?a[t]:i;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}}},26604:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(37876),r=a(14232),l=a(80764),i=a(34906),n=a.n(i),o=a(96869),d=a(49420),u=a(26831),c=a(62742),_=a.n(c);let p=n().bind(_()),h=e=>{let t,{values:a,setFieldValue:i,setEditorVisibility:n,setEditorFieldName:c,fieldName:h,loadImage:y}=e,m=(0,d.D)(),g=m.tinyAppKey,f=m.country;if(h.indexOf(".")>0){let e=h.split(".");t=a[e[0]][e[1]]}else t=a.fieldName;let[v,x]=(0,r.useState)(t);return(0,s.jsx)("div",{className:_().overlay,children:(0,s.jsxs)("div",{className:_().editorWrapper,children:[(0,s.jsxs)("div",{className:_().buttonGroup,children:[(0,s.jsx)("p",{className:_().title,children:"РедагÑÐ²Ð°Ð½Ð½Ñ Ð² ÑедакÑоÑÑ"}),(0,s.jsxs)("div",{className:_().buttonWrapper,children:[(0,s.jsx)("button",{type:"button",className:p({btn:!0,green:!0,save:!0}),onClick:()=>{i(h,v),n(!1),c(null)},children:"ÐбеÑегÑи"}),(0,s.jsx)("span",{className:_().hint,children:"ÐбеÑегÑи"})]}),(0,s.jsxs)("div",{className:_().buttonWrapper,children:[(0,s.jsx)("button",{type:"button",className:p({btn:!0,gray:!0,exit:!0}),onClick:()=>{x(""),n(!1),c(null)}}),(0,s.jsx)("span",{className:_().hint,children:"ÐакÑиÑи"})]})]}),(0,s.jsx)("input",{id:"my-file",type:"file",name:"my-file",style:{display:"none"},onChange:""}),(0,s.jsx)(l.K,{value:v,apiKey:g,init:{height:300,content_css:!1,plugins:"preview searchreplace autosave save fullscreen image link lists wordcount table help",language:null===u.i18n||void 0===u.i18n?void 0:u.i18n[f].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);return"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 al
1ignjustify | bullist numlist | image link | preview":"bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link | preview",toolbar_sticky:!0,file_picker_types:"image"},onEditorChange:e=>{x(e)}})]})})}},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:()=>_});var s=a(37876);a(49420);var r=a(50223),l=a(34906),i=a.n(l),n=a(31948),o=a.n(n);let d=i().bind(o()),u=(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])}},c=e=>{var t,a,l,i;let n,{values:c,errors:_,touched:p,field:h,fieldName:y,lang:m,placeholder:g,handleFocus:f,type:v,editor:x,handleOpenEditor:b,handleEditInputValue:j}=e;n=(null==_?void 0:_[h])?!!(null==_||null==(l=_[h])?void 0:l[m])&&!!(null==p||null==(i=p[h])?void 0:i[m]):!!(null==_?void 0:_[y])&&!!(null==p?void 0:p[y]);let N=c[h]?!!c[h].moderated:u(h,c,m).moderatedField,k=c[h]?!!(null==(a=c[h])||null==(t=a.moderated)?void 0:t[m]):u(h,c,m).newValue,w="textarea"===v?(0,s.jsx)(r.D0,{name:y,component:"textarea",placeholder:g,onFocus:e=>f(e),onBlur:e=>{j(y,e.target.value)},style:x?{minHeight:"200px"}:{},className:d({error:n,moderatedField:N,currentNewValue:k,[m]:!0})}):(0,s.jsx)(r.D0,{name:y,placeholder:g,onFocus:e=>f(e),onBlur:e=>{j(y,e.target.value)},className:d({error:n,moderatedField:N,currentNewValue:k,[m]:!0})});return(0,s.jsxs)("div",{className:o().inputBox,children:["textarea"===v&&x&&(0,s.jsxs)("div",{className:o().buttonWrapper,children:[(0,s.jsx)("button",{className:d({statusButton:!0,editor:!0,active:!0}),type:"button",onClick:()=>{b(y)}}),(0,s.jsx)("span",{className:o().hint,children:"РедакÑоÑ"})]}),w]})},_=e=>{var t,a;let{textData:r="ÐÑдкÑиÑи ÑедакÑоÑ",fieldName:l,values:i,errors:n,touched:d,data:u,mainLang:_,currentMultiField:p,setCurrentMultiField:h,langVersions:y,type:m,editor:g,handleOpenEditor:f,placeholder:v,heading:x,handleEditInputValue:b=()=>{}}=e,j="",N=null==n?void 0:n[l],k=null==d?void 0:d[l];if(N){for(let e of y)if(N[e]){j=N[e];break}}let w=()=>{h(l)},C=y.filter(e=>e!==_).map(e=>{var t;return(0,s.jsx)(c,{values:i,errors:n,touched:d,field:l,fieldName:"".concat(l,".").concat(e),lang:e,placeholder:(null==(t=u[l])?void 0:t.placeholder)||v,handleFocus:w,type:m,editor:g,handleOpenEditor:f,textData:r,handleEditInputValue:b},"".concat(l,"_").concat(e))});return(0,s.jsxs)("div",{className:o().fieldWrapper,children:[(0,s.jsx)("p",{children:(null==(t=u[l])?void 0:t.header)||x}),(0,s.jsx)(c,{values:i,errors:n,touched:d,field:l,fieldName:"".concat(l,".").concat(_),lang:_,placeholder:(null==(a=u[l])?void 0:a.placeholder)||v,handleFocus:w,type:m,editor:g,handleOpenEditor:f,handleEditInputValue:b}),p===l&&(0,s.jsx)(s.Fragment,{children:C}),N&&k&&(0,s.jsx)("div",{className:"fieldError",children:j})]})}},51714:(e,t,a)=>{"use strict";a.d(t,{O:()=>s});let s=e=>e.req?{cookie:e.req.headers.cookie}:void 0},62334:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/panel/units_blocks/[id]",function(){return a(95114)}])},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"}},65716:(e,t,a)=>{"use strict";a.d(t,{P:()=>i});var s=a(14232),r=a(89099),l=a.n(r);let i=(e,t)=>{(0,s.useEffect)(()=>{let a=()=>{localStorage.setItem("last_visited_".concat(e),t)};return l().router.events.on("beforeHistoryChange",a),()=>{l().router.events.off("beforeHistoryChange",a)}},[])}},70117:(e,t,a)=>{"use strict";a.d(t,{i:()=>i});var s=a(67394),r=a(61389);class l{async create(e){try{return(await s.SP.post(this.paths.create,{page_metatags:JSON.stringify(e)},{headers:{"Content-Type":"application/json"},withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}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 delete(e){try{return(await s.SP.post(this.paths.delete,{seo_page_metatags_id:e},{withCredentials:!0})).data}catch(e){return(0,r.r)(e)}}async save(e){try{return(await s.SP.post(this.paths.save,{page_metatags:JSON.stringify(e)},{headers:{"Content-Type":"application/json"},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.post(this.paths.getList,{page:e},a)).data}catch(e){return(0,r.r)(e)}}constructor(e){this.api=e,this.paths={get:"".concat(this.api,"/seo/page/metatags/get?seo_page_metatags_id="),save:"".concat(this.api,"/seo/page/metatags/save"),create:"".concat(this.api,"/seo/page/metatags/create"),delete:"".concat(this.api,"/seo/page/metatags/delete"),getList:"".concat(this.api,"/seo/pages/metatags/get")}}}let i=new l("".concat(s.Vd,"/admin"))},78406:e=>{e.exports={"gilroy-text":"styles_gilroy-text__jEFu5",form:"styles_form__bZ1gj",adminInfo:"styles_adminInfo__e6e_w",panelBox:"styles_panelBox__aicva",panelTitle:"styles_panelTitle__NDlFG",fieldWrapper:"styles_fieldWrapper__wYpLS",hide:"styles_hide__QLYlE",inputBox:"styles_inputBox__QWs_X",moderated:"styles_moderated__Vh3CI",orderRow:"styles_orderRow__eY9zX",statusPanel:"styles_statusPanel__w3f7_",buttonContainer:"styles_buttonContainer__hwggS",buttonWrapper:"styles_buttonWrapper__FKGqT",hint:"styles_hint__E8_ST",statusButton:"styles_statusButton__TUc4C",mark:"styles_mark__b_rKT",markOn:"styles_markOn__RYkb4",activeOff:"styles_activeOff__oNe7w",activeOn:"styles_activeOn__xE_vM",clock:"styles_clock__x76JE",clockOn:"styles_clockOn__jVYTu",active:"styles_active__y9243",eventButton:"styles_eventButton__39_SQ"}},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}},95114:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>B});var s=a(37876),r=a(2171),l=a(14232),i=a(89099),n=a(95062),o=a.n(n),d=a(50223),u=a(54443),c=a(26604),_=a(33313),p=a(63436),h=a(15423),y=a(70117),m=a(75597),g=a(65716),f=a(49420),v=a(39091),x=a(92010),b=a(
178406),j=a.n(b),N=a(26831);let k=e=>{let{errors:t,touched:a,values:r,setFieldValue:i,isSubmitting:n,isValidating:o,formData:u,router:p,savingErrors:h,action:y,langVersions:f,mainLang:v,COUNTRY:x}=e,{main_info_title:b}=u,[N,k]=(0,l.useState)(""),[w,C]=(0,l.useState)(!1),[E,O]=(0,l.useState)("");(0,l.useEffect)(()=>{if(n&&!o){let e=Object.keys(t);e.length>0&&window.scrollTo(0,(0,m.kt)(e[0]))}},[t,n,o]),(0,g.P)("units_block",r.id);let F=e=>{C(!0),O(e)};return(0,s.jsx)(d.lV,{className:j().form,children:(0,s.jsxs)("section",{className:j().adminInfo,children:[(0,s.jsxs)("div",{className:j().panelBox,children:[(0,s.jsx)("p",{className:j().panelTitle,children:b}),(0,s.jsx)(_.A,{values:r,errors:t,touched:a,fieldName:"page",data:u,langVersions:f,mainLang:v,currentMultiField:N,setCurrentMultiField:k,editor:!0,handleOpenEditor:F}),(0,s.jsx)(_.A,{values:r,errors:t,touched:a,fieldName:"title",data:u,langVersions:f,mainLang:v,currentMultiField:N,setCurrentMultiField:k,editor:!0,handleOpenEditor:F}),(0,s.jsx)(_.A,{values:r,errors:t,touched:a,fieldName:"metad",data:u,langVersions:f,mainLang:v,currentMultiField:N,setCurrentMultiField:k,editor:!0,handleOpenEditor:F}),(0,s.jsx)(_.A,{values:r,errors:t,touched:a,fieldName:"metak",data:u,langVersions:f,mainLang:v,currentMultiField:N,setCurrentMultiField:k,editor:!0,handleOpenEditor:F}),(0,s.jsx)(_.A,{values:r,errors:t,touched:a,fieldName:"h1",data:u,langVersions:f,mainLang:v,currentMultiField:N,setCurrentMultiField:k,editor:!0,handleOpenEditor:F}),(0,s.jsx)(_.A,{values:r,errors:t,touched:a,fieldName:"h2",data:u,langVersions:f,mainLang:v,currentMultiField:N,setCurrentMultiField:k,editor:!0,handleOpenEditor:F}),(0,s.jsx)(_.A,{values:r,errors:t,touched:a,fieldName:"h2text",data:u,langVersions:f,mainLang:v,currentMultiField:N,setCurrentMultiField:k,type:"textarea",editor:!0,handleOpenEditor:F})]}),w&&(0,s.jsx)(c.A,{values:r,setFieldValue:i,setEditorVisibility:C,setEditorFieldName:O,fieldName:E})]})})},w=e=>{let t=(0,f.D)().country,a=N.i18n[t].defaultLocale,n=N.i18n[t].locales,o=(0,i.useRouter)(),c=(0,r.wA)(),{startFetching:_,stopFetching:m}=(0,l.useContext)(p.A),g={..."create"!==e.action?e.block:(e=>({newBlock:{page:(0,x.i)(e),title:(0,x.i)(e),metad:(0,x.i)(e),metak:(0,x.i)(e),h1:(0,x.i)(e),h2:(0,x.i)(e),h2text:(0,x.i)(e)}}))(t).newBlock},b=((e,t)=>{let{page:a,title:s}=t;return v.Ik().shape({page:v.Ik().shape(e.reduce((e,t)=>({...e,[t]:v.Yj().required(a.required)}),{})),title:v.Ik().shape(e.reduce((e,t)=>({...e,[t]:v.Yj().required(a.required)}),{})),metak:v.Ik().shape(e.reduce((e,t)=>({...e,[t]:v.Yj()}),{})),metad:v.Ik().shape(e.reduce((e,t)=>({...e,[t]:v.Yj()}),{})),h2:v.Ik().shape(e.reduce((e,t)=>({...e,[t]:v.Yj()}),{})),h1:v.Ik().shape(e.reduce((e,t)=>({...e,[t]:v.Yj()}),{})),h2text:v.Ik().shape(e.reduce((e,t)=>({...e,[t]:v.Yj()}),{}))})})(n,e.formData,t),[w,C]=(0,l.useState)(g),[E,O]=(0,l.useState)(!1),[F,S]=(0,l.useState)(""),V=async t=>{let a;if(_(),""!==F&&S(""),"success"===(a="create"===e.action?await y.i.create(t):await y.i.save(t)).status){if(m({type:"success",message:"ÐÐ°Ð½Ñ ÑÑпÑÑно збеÑежено"}),E)return void(e.action?o.push("/panel/units_blocks"):o.back());F&&S("")}else{if(m({type:"error",message:a.error}),a.error&&"unauthorized admin"===a.error){c(h.h.fillAuth(a.auth)),o.push(o.asPath);return}S(a.error)}};return(0,s.jsx)("div",{className:j().form,children:(0,s.jsx)(d.l1,{initialValues:w,validationSchema:b,onSubmit:V,enableReinitialize:!0,component:r=>(0,s.jsxs)("div",{children:[(0,s.jsx)(u.A,{router:o,title:void 0===e.action?"#".concat(w.id," - ").concat(w.title[a]):e.formData.form_title,type:"single",formikProps:r,savingErrors:F,setSavingErrors:S,setIsSaveExit:O}),(0,s.jsx)(k,{formData:e.formData,action:e.action,router:o,dispatch:c,cities:e.cities,lessons:e.lessons,levels:e.levels,savingErrors:F,langVersions:n,mainLang:a,COUNTRY:t,...r})]})})})};w.propTypes={errors:o().objectOf(o().string),touched:o().objectOf(o().bool)};var C=a(50925),E=a(39511),O=a(51714),F=a(12352),S=a(95259),V=a(51218),W=a.n(V);let I=(0,r.Ng)()(e=>!1===e.auth?(0,s.jsx)("div",{className:W().adminLayout,children:(0,s.jsx)(C.A,{})}):e.access_error?(0,s.jsx)("div",{className:W().adminLayout,children:(0,s.jsx)(E.A,{})}):e.error&&""!==e.error?(0,s.jsx)("div",{className:W().adminLayout,children:(0,s.jsx)("p",{children:Object.prototype.hasOwnProperty.call(S,e.error)?S[e.error]:e.error})}):(0,s.jsx)("div",{className:W().adminLayout,children:(0,s.jsx)(w,{...e})}));I.getInitialProps=async e=>{let t,a,{ctx:s}=e,r=(0,O.O)(s),l=await new Promise(e=>{setTimeout(()=>{e(S)},200)});if("create"===s.query.action)a="create";else if("fail"===(t=await y.i.get(r,s.query.id)).status)return{error:t.error};let{hasErrors:i,statusCode:n}=(0,F.W)({block:t});return i?(s.res&&(s.res.statusCode=n),{statusCode:n}):"create"!==a&&t.error&&"unauthorized admin"===t.error?{auth:!1}:(null==t?void 0:t.error)&&"forbidden"===t.error?{access_error:!0}:{block:(null==t?void 0:t.data)||{},action:a,formData:l}};let B=I},95259:e=>{"use strict";e.exports=JSON.parse('{"board_title":"Ðлоки","form_title":"Ðлок","list_title":{"id":"id","title":"Ð
1азва"},"main_info_title":"ÐÑновна ÑнÑоÑмаÑÑÑ","page":{"header":"Ðазва блокÑ:","placeholder":"Ðазва блокÑ","required":"Ðбов\'Ñзкове поле"},"title":{"header":"ТайÑл:","placeholder":"ТайÑл запиÑÑ","required":"Ðбов\'Ñзкове поле"},"metad":{"header":"ÐпиÑ:","placeholder":"ÐÐ¿Ð¸Ñ Ð·Ð°Ð¿Ð¸ÑÑ"},"metak":{"header":"ÐлÑÑÐ¾Ð²Ñ Ñлова:","placeholder":"ÐлÑÑÐ¾Ð²Ñ Ñлова запиÑÑ"},"h1":{"header":"H1:","placeholder":"H1 запиÑÑ"},"h2":{"header":"H2:","placeholder":"H2 запиÑÑ"},"h2text":{"header":"H2 ÑекÑÑ:","placeholder":"H2 ÑекÑÑ Ð·Ð°Ð¿Ð¸ÑÑ"}}')},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=62334)),_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.