PageSourceSearch

https://galinfo.com.ua/_next/static/chunks/9737-132dc7e5ecf8312f.js

js galinfo.com.ua collected 2026-10-02 06:37:09 UTC 8,304 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9737],{3370:t=>{t.exports={skeleton:"SkeletonBlock_skeleton__PBqSA",shimmer:"SkeletonBlock_shimmer__4Yho1"}},11483:(t,e,r)=>{"use strict";r.d(e,{H7:()=>c,LU:()=>l,Ng:()=>u,Pu:()=>a,y3:()=>i});var n=r(47479);let s=function(t){return{all:t.ALL,important:-1,news:-2,articles:-3,society:t.SOCIETY,politics:t.POLITICS,economics:t.ECONOMICS,culture:t.CULTURE,health:t.HEALTH,ato:t.ATO,sport:t.SPORT,crime:t.CRIME,accident:t.ACCIDENT,ukraine:t.UKRAINE,lviv:t.LVIV,evropa:t.EVROPA,svit:t.SVIT,volyn:t.VOLYN,reporter:t.REPORTER,"euro-2012":t.EURO_2012,"lvivska-miska-vyborcha-komisiya":t.LVIV_MISKA_VYBORCHA_KOMISIYA,"lvivska-oblasna-vyborcha-komisiya":t.LVIV_OBLASNA_VYBORCHA_KOMISIYA,"blits-intervyu":t.BLITS_INTERVYU,"olimpiyski-igry-v-rio-2016":t.OLIMPIYSKI_IGRY_RIO_2016,"vidverta-rozmova":t.VIDVERTA_ROZMOVA,"vidverta-rozmova-z":t.VIDVERTA_ROZMOVA,tvk:t.TVK,"vybory-zmin":t.VYBORY_ZMIN,"zhurnalistyka-zmin":t.ZHURNALISTYKA_ZMIN,pressluzhba:t.PRESSLUZHBA,"vybory-rektora-lnu":t.VYBORY_REKTORA_LNU,"rayony-lvova":t.RAYONY_LVOVA}}(n.Io);function a(t,e){let r=s[t.toLowerCase()];if(void 0!==r)return r;if(e){let r=(0,n.qG)(t,e);return r?.id||null}return null}function o(t){let e="string"==typeof t?parseInt(t,10):t,r=Object.entries(s).find(([t,r])=>r===e);return r?r[0]:null}function i(t,e){let r=t.toLowerCase()in s;return!!r||(e?(0,n.hM)(t,e):r)}function l(t,e){let r="string"==typeof t?parseInt(t,10):t,s=e||n.Io,a=[s.UKRAINE,s.LVIV,s.EVROPA,s.SVIT,s.VOLYN],i=[s.REPORTER,s.EURO_2012,s.LVIV_MISKA_VYBORCHA_KOMISIYA,s.LVIV_OBLASNA_VYBORCHA_KOMISIYA,s.BLITS_INTERVYU,s.OLIMPIYSKI_IGRY_RIO_2016,s.VIDVERTA_ROZMOVA,s.TVK,s.VYBORY_ZMIN,s.ZHURNALISTYKA_ZMIN,s.PRESSLUZHBA,s.VYBORY_REKTORA_LNU,s.RAYONY_LVOVA];if(a.includes(r)){let t=o(r);return t?`/region/${t}`:""}if(i.includes(r)){let t=o(r);return t?`/topthemes/${t}`:""}let l=o(r);return l?`/${l}`:""}function u(t,e){let r="string"==typeof t?parseInt(t,10):t,s=e||n.Io;return[s.UKRAINE,s.LVIV,s.EVROPA,s.SVIT,s.VOLYN].includes(r)}function c(t,e){let r="string"==typeof t?parseInt(t,10):t,s=e||n.Io;return[s.REPORTER,s.EURO_2012,s.LVIV_MISKA_VYBORCHA_KOMISIYA,s.LVIV_OBLASNA_VYBORCHA_KOMISIYA,s.BLITS_INTERVYU,s.OLIMPIYSKI_IGRY_RIO_2016,s.VIDVERTA_ROZMOVA,s.TVK,s.VYBORY_ZMIN,s.ZHURNALISTYKA_ZMIN,s.PRESSLUZHBA,s.VYBORY_REKTORA_LNU,s.RAYONY_LVOVA].includes(r)}},41748:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(95155);r(12115);var s=r(3370),a=r.n(s);function o({width:t="100%",height:e=16,className:r="",style:s,as:o="div"}){return(0,n.jsx)(o,{className:`${a().skeleton} ${r}`,style:{width:t,height:e,..."span"===o?{display:"inline-block"}:void 0,...s},"aria-hidden":"true"})}},44205:(t,e,r)=>{"use strict";r.d(e,{$P:()=>o,Al:()=>l,F3:()=>u,Vg:()=>a,hD:()=>n,mu:()=>i});class n extends Error{constructor(t,e,r,n){super(t),this.status=e,this.statusText=r,this.response=n,this.name="ApiError"}}async function s(t,e={}){let{timeout:r=6e4,...a}=e,o=new AbortController,i=setTimeout(()=>o.abort(),r);try{let e,r=await fetch(t,{...a,signal:o.signal});clearTimeout(i);let s=r.headers.get("content-type");if(e=s&&s.includes("application/json")?await r.json():await r.text(),!r.ok)throw new n(`HTTP error! status: ${r.status}`,r.status,r.statusText,r);return{data:e,status:r.status,statusText:r.statusText,ok:r.ok}}catch(t){if(clearTimeout(i),t instanceof n)throw t;if(t instanceof Error){if("AbortError"===t.name)throw new n(`Request timeout after ${r}ms`,408,"Request Timeout");throw new n(t.message||"Network error occurred",0,"Network Error")}throw new n("Unknown error occurred",0,"Unknown Error")}}async function a(t,e={}){return s(t,{...e,method:"GET"})}async function o(t,e,r={}){return s(t,{...r,method:"POST",body:e?JSON.stringify(e):void 0,headers:{"Content-Type":"application/json",...r.headers}})}async function i(t,e,r={}){return s(t,{...r,method:"PUT",body:e?JSON.stringify(e):void 0,headers:{"Content-Type":"application/json",...r.headers}})}async function l(t,e={}){return s(t,{...e,method:"DELETE"})}async function u(t,e={},r={}){let n=function(t){let e=new URLSearchParams;return Object.entries(t).forEach(([t,r])=>{null!=r&&(Array.isArray(r)?r.forEach(r=>e.append(t,String(r))):e.append(t,String(r)))}),e.toString()}(e);return a(n?`${t}?${n}`:t,r)}},46338:(t,e,r)=>{"use strict";r.d(e,{MobileProvider:()=>l,l:()=>i});var n=r(95155),s=r(12115),a=r(65836);let o=(0,s.createContext)(void 0),i=()=>{let t=(0,s.useContext)(o);if(void 0===t)throw Error("useMobileContext must be used within a MobileProvider");return t},l=({children:t,initialIsMobile:e=!1})=>{let r=(0,a.a)(e);return(0,n.jsx)(o.Provider,{value:{isMobile:r},children:t})}},49175:(t,e,r)=>{"use strict";r.d(e,{K:()=>o,MenuProvider:()=>i});var n=r(95155),s=r(12115);let a=(0,s.createContext)(void 0);function o(){let t=(0,s.useContext)(a);if(void 0===t)throw Error("useMenuContext must be used within a MenuProvider");return t}function i({children:t,initialMenuData:e=null}
1){let[r,o]=(0,s.useState)(e),[i,l]=(0,s.useState)(!e),[u,c]=(0,s.useState)(null);return(0,s.useEffect)(()=>{e||(async()=>{try{l(!0);let t=await fetch("/api/menu");if(!t.ok)throw Error("Failed to fetch menu data");let e=await t.json();o(e),c(null)}catch(t){c(t instanceof Error?t.message:"Unknown error occurred"),console.error("Error fetching menu data:",t)}finally{l(!1)}})()},[e]),(0,n.jsx)(a.Provider,{value:{menuData:r,loading:i,error:u,getCategoryById:t=>{if(r)return[...r.mainCategories,...r.regions,...r.specialThemes].find(e=>e.id===t)},getCategoryByParam:t=>{if(r)return[...r.mainCategories,...r.regions,...r.specialThemes].find(e=>e.param===t)},getCategoryByTitle:t=>{if(r)return[...r.mainCategories,...r.regions,...r.specialThemes].find(e=>e.title.toUpperCase()===t.toUpperCase()||e.title===t)}},children:t})}},57035:(t,e,r)=>{"use strict";r.d(e,{Wz:()=>o,np:()=>a});var n=r(12115),s=r(44205);function a(t={}){let{limit:e=5,lang:r="1",autoFetch:o=!0,initialData:i=null}=t,[l,u]=(0,n.useState)(i?.importantNews||[]),[c,I]=(0,n.useState)(!1),[d,f]=(0,n.useState)(null),[m,h]=(0,n.useState)(i?.total||0),R=(0,n.useRef)(`${e}:${r}`),A=async(t,n)=>{I(!0),f(null);try{let a=await (0,s.F3)("/api/news/important",{limit:(t||e).toString(),lang:n||r});u(a.data.importantNews),h(a.data.total)}catch(e){let t="Помилка з'єднання з сервером";e instanceof s.hD?(t=e.message,console.error("API Error fetching important news:",{message:e.message,status:e.status,statusText:e.statusText})):console.error("Error fetching important news:",e),f(t)}finally{I(!1)}},O=async t=>{I(!0),f(null);try{let n=await (0,s.F3)(`/api/news/important/${t}`,{limit:e.toString(),lang:r});u(n.data.importantNews),h(n.data.total)}catch(e){let t="Помилка з'єднання з сервером";e instanceof s.hD?(t=e.message,console.error("API Error fetching news by level:",{message:e.message,status:e.status,statusText:e.statusText})):console.error("Error fetching news by level:",e),f(t)}finally{I(!1)}},E=async()=>{await O(2)},y=async()=>{await A()};return(0,n.useEffect)(()=>{let t=`${e}:${r}`,n=o&&(!i||t!==R.current);i&&(R.current=t,u(i.importantNews||[]),h(i.total||0)),n&&A()},[e,r,o,i]),{importantNews:l,loading:c,error:d,total:m,refetch:y,fetchByLevel:O,fetchTopNews:E}}function o(t,e={}){let{limit:r=5,lang:a="1",autoFetch:i=!0}=e,[l,u]=(0,n.useState)([]),[c,I]=(0,n.useState)(!1),[d,f]=(0,n.useState)(null),[m,h]=(0,n.useState)(0),R=async()=>{I(!0),f(null);try{let e=await (0,s.F3)(`/api/news/important/${t}`,{limit:r.toString(),lang:a});u(e.data.importantNews),h(e.data.total)}catch(e){let t="Помилка з'єднання з сервером";e instanceof s.hD?(t=e.message,console.error("API Error fetching news by level:",{message:e.message,status:e.status,statusText:e.statusText})):console.error("Error fetching news by level:",e),f(t)}finally{I(!1)}},A=async()=>{await R()};return(0,n.useEffect)(()=>{i&&R()},[t,r,a,i]),{importantNews:l,loading:c,error:d,total:m,refetch:A}}},65836:(t,e,r)=>{"use strict";r.d(e,{a:()=>s});var n=r(12115);let s=(t=!1)=>{let[e,r]=(0,n.useState)(t);return(0,n.useEffect)(()=>{let t=window.matchMedia("(max-width: 1000px)"),e=()=>r(t.matches);return(e(),"addEventListener"in t)?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):(t.addListener(e),()=>t.removeListener(e))},[]),e}}}]);

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.