1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{6545:function(e,s,r){Promise.resolve().then(r.bind(r,4327)),Promise.resolve().then(r.bind(r,11)),Promise.resolve().then(r.bind(r,8925)),Promise.resolve().then(r.bind(r,2146))},8925:function(e,s,r){"use strict";var t=r(7437),a=r(8040),l=r(8466),i=r(4839),n=r(8087),o=r(9695),c=r(7661),u=r(4096),d=r(1749);s.default=()=>{let e=(0,n.useTranslations)(),s=(0,d.jD)(),{refresh:r}=(0,d.tv)(),{isLoggedIn:h,logout:p}=(0,c.a)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)(a.v2,{children:[(0,t.jsx)(a.j2,{"aria-label":e("Actions.open-menu"),className:"-ml-2.5 p-2.5",children:(0,t.jsx)(o.dc,{className:"h-6 w-6 stroke-black-1 dark:stroke-white"})}),(0,t.jsx)(l.u,{enter:"transition ease-out duration-75",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease-in duration-100",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,t.jsxs)(a.sd,{modal:!1,className:"absolute left-0 top-18 z-10 w-80 divide-y-2 divide-[#B209320D] bg-white text-2xl font-medium text-black outline outline-2 -outline-offset-2 outline-[#B209320D] dark:divide-[#FFFFFF0D] dark:bg-black-1 dark:text-white dark:outline-[#FFFFFF33]",children:[(0,t.jsx)(a.sN,{children:(0,t.jsxs)(d.rU,{href:u.$,"aria-label":e("General.news"),className:"flex w-full items-center gap-4 p-3 transition-colors hover:bg-primary hover:bg-opacity-10",children:[(0,t.jsx)(o.K1,{className:"size-6 stroke-black transition-colors dark:stroke-white"}),e("General.news")]})}),(0,t.jsx)(a.sN,{children:(0,t.jsxs)(d.rU,{href:u.Z.MAIN,"aria-label":e("General.main"),className:(0,i.Z)("flex w-full items-center gap-4 p-3 transition-colors hover:bg-primary hover:bg-opacity-10",{"text-primary [&>svg]:stroke-primary":s===u.Z.MAIN}),children:[(0,t.jsx)(o.A2,{className:(0,i.Z)("size-6 stroke-black transition-colors dark:stroke-white",{"!stroke-primary":s===u.Z.MAIN})}),e("General.main")]})}),(0,t.jsx)(a.sN,{children:(0,t.jsxs)(d.rU,{href:u.Z.PROFILE,"aria-label":e("General.profile"),className:(0,i.Z)("flex w-full items-center gap-4 p-3 transition-colors hover:bg-primary hover:bg-opacity-10",{"text-primary [&>svg]:stroke-primary":s===u.Z.PROFILE||s===u.Z.AUTH}),children:[(0,t.jsx)(o.nb,{className:(0,i.Z)("size-6 stroke-black transition-colors dark:stroke-white",{"!stroke-primary":s===u.Z.PROFILE||s===u.Z.AUTH})}),e(h?"General.profile":"Actions.sign-in")]})}),(0,t.jsx)(a.sN,{children:(0,t.jsxs)(d.rU,{href:u.Z.NEWSPAPERS,"aria-label":e("General.newspapers"),className:(0,i.Z)("flex w-full items-center gap-4 p-3 transition-colors hover:bg-primary hover:bg-opacity-10",{"text-primary [&>svg]:stroke-primary":s===u.Z.NEWSPAPERS}),children:[(0,t.jsx)(o.db,{className:(0,i.Z)("size-6 stroke-black transition-colors dark:stroke-white",{"!stroke-primary":s===u.Z.NEWSPAPERS})}),e("General.newspapers")]})}),(0,t.jsx)(a.sN,{children:(0,t.jsxs)(d.rU,{href:u.Z.SUBSCRIPTIONS,"aria-label":e("General.subscriptions"),className:(0,i.Z)("flex w-full items-center gap-4 p-3 transition-colors hover:bg-primary hover:bg-opacity-10",{"text-primary":s===u.Z.SUBSCRIPTIONS}),children:[(0,t.jsx)(o.Gz,{className:(0,i.Z)("size-6 stroke-black transition-colors dark:stroke-white",{"!stroke-primary":s===u.Z.SUBSCRIPTIONS})}),e("General.subscriptions")]})}),h?(0,t.jsx)(a.sN,{children:(0,t.jsxs)("button",{type:"button","aria-label":e("Actions.logout"),onClick:()=>{p(),r()},className:"flex w-full items-center gap-4 p-3 text-[#D92D20] transition-colors hover:bg-primary hover:bg-opacity-10",children:[(0,t.jsx)(o.gt,{className:"size-6 stroke-[#D92D20] transition-colors"}),e("Actions.logout")]})}):null]})})]})})})}},2146:function(e,s,r){"use strict";var t=r(7437),a=r(4839),l=r(2265),i=r(8087),n=r(9695),o=r(7661),c=r(2865),u=r(7524),d=r.n(u),h=r(4096),p=r(1749);s.default=()=>{let e=(0,i.useTranslations)(),s=(0,p.jD)(),{refresh:r}=(0,p.tv)(),{isLoggedIn:u,logout:x}=(0,o.a)(),[m,k]=(0,l.useState)(!1),b=()=>k(!1);return(0,l.useEffect)(()=>((0,c.Yh)(m),()=>(0,c.Yh)(!1)),[m]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-label":e("Actions.open-menu"),onClick:()=>k(!0),className:"block p-2.5 lg:hidden",children:(0,t.jsx)(n.dc,{className:"h-6 w-6 stroke-black dark:stroke-white"})}),m?(0,t.jsx)("span",{onClick:b,className:"fixed left-0 top-0 z-[9] h-screen w-screen bg-black bg-opacity-60"}):null,(0,t.jsxs)("div",{className:(0,a.Z)("shadow-sidebar-menu transition-left absolute top-0 z-10 h-full min-h-screen min-w-72 overflow-y-auto bg-white px-4 py-8 text-white dark:bg-[#0D0D0D] lg:hidden",{"left-0":m,"-left-72":!m},d().className),children:[(0,t.jsx)("button",{type:"button","aria-label":e("Actions.close-menu"),onClick:b,className:"absolute right-3 top-3 flex p-2.5",children:(0,t.jsx)(n.aA,{className:"h-6 w-6 stroke-black dark:stroke-white"})}),(0,t.jsx)(n.St,{className:"h-9 w-32 fill-primary"}),(0,t.jsx)("nav",{className:"mt-10",children:(0,t.jsxs)("ul",{className:"flex flex-col gap-4 text-2xl font-medium text-black-2 dark:text-white",children:[(0,t.jsx)("li",{children:(0,t.jsxs)(p.rU,{href:h.Z.OTHERS.NEWS,"aria-label":e("General.news"),className:"inline-block w-full space-x-4 px-3 py-2",children:[(0,t.jsx)(n.K1,{className:"h-6 w-6 stroke-black dark:stroke-white"}),(0,t.jsx)("span",{className:"inline-block py-1 align-middle",children:e("General.news")})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(p.rU,{href:h.Z.MAIN,"aria-label":e("General.main"),onClick:b,className:(0,a.Z)("inline-block w-full space-x-4 px-3 py-2",{"text-[#CA0A3A] [&>
1svg]:!stroke-[#CA0A3A]":s===h.Z.MAIN}),children:[(0,t.jsx)(n.A2,{className:"h-6 w-6 stroke-black dark:stroke-white"}),(0,t.jsx)("span",{className:"inline-block py-1 align-middle",children:e("General.main")})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(p.rU,{href:u?h.Z.PROFILE:h.Z.AUTH,onClick:b,"aria-label":e(u?"General.profile":"Actions.sign-in"),className:(0,a.Z)("inline-block w-full space-x-4 px-3 py-2",{"text-[#CA0A3A] [&>svg]:!stroke-[#CA0A3A]":s===h.Z.PROFILE||s===h.Z.AUTH}),children:[(0,t.jsx)(n.nb,{className:"h-6 w-6 stroke-black dark:stroke-white"}),(0,t.jsx)("span",{className:"inline-block py-1 align-middle",children:e("General.profile")})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(p.rU,{href:h.Z.NEWSPAPERS,onClick:b,"aria-label":e("General.newspapers"),className:(0,a.Z)("inline-block w-full space-x-4 px-3 py-2",{"text-[#CA0A3A] [&>svg]:!stroke-[#CA0A3A]":s===h.Z.NEWSPAPERS}),children:[(0,t.jsx)(n.db,{className:"h-6 w-6 stroke-black dark:stroke-white"}),(0,t.jsx)("span",{className:"inline-block py-1 align-middle",children:e("General.newspapers")})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(p.rU,{href:h.Z.SUBSCRIPTIONS,onClick:b,"aria-label":e("General.subscriptions"),className:(0,a.Z)("inline-block w-full space-x-4 px-3 py-2",{"text-[#CA0A3A] [&>svg]:!stroke-[#CA0A3A]":s===h.Z.SUBSCRIPTIONS}),children:[(0,t.jsx)(n.Gz,{className:"h-6 w-6 stroke-black dark:stroke-white"}),(0,t.jsx)("span",{className:"inline-block py-1 align-middle",children:e("General.subscriptions")})]})})]})}),u?(0,t.jsxs)("button",{type:"button","aria-label":e("Actions.logout"),onClick:()=>{x(),r()},className:"mt-4 space-x-4 px-3 py-2 text-2xl font-medium text-[#E13E33]",children:[(0,t.jsx)(n.gt,{className:"h-6 w-6 stroke-[#E13E33]"}),(0,t.jsx)("span",{className:"inline-block py-1 align-middle",children:e("Actions.logout")})]}):null]})]})}},4096:function(e,s,r){"use strict";r.d(s,{$:function(){return t},Z:function(){return a}});let t="https://darakchi.uz",a={ARCHIVE:"/archive",AUTH:"/auth",AUTHOR:"/author",BUY:"".concat(t,"/buy"),CATEGORIES:{SINGLE:e=>"".concat(t,"/categories/").concat(e)},JOURNALS:e=>"/".concat(e),MAIN:"/",NEWSPAPERS:"/newspapers",OTHERS:{ABOUT:"".concat(t,"/about"),NEWS:t,TEAM:"".concat(t,"/team")},PROFILE:"/profile",SUBSCRIPTIONS:"/subscriptions"}},7661:function(e,s,r){"use strict";r.d(s,{AuthContextProvider:function(){return o},a:function(){return c}});var t=r(7437),a=r(3375),l=r(2265),i=r(2865);let n=(0,l.createContext)({isLoggedIn:!1,setIsLoggedIn:()=>{},logout:()=>{}}),o=e=>{let{children:s}=e,[r,o]=(0,l.useState)(()=>!!(0,a.getCookie)("access")),c=(0,l.useCallback)(()=>{(0,i.dE)(),o(!1)},[]);return(0,t.jsx)(n.Provider,{value:{isLoggedIn:r,setIsLoggedIn:o,logout:c},children:s})},c=()=>{let e=(0,l.useContext)(n);if(!e)throw Error("useAuth must be used within a AuthProvider");return e}},1749:function(e,s,r){"use strict";r.d(s,{rU:function(){return t},jD:function(){return a},tv:function(){return l}});let{Link:t,usePathname:a,useRouter:l,redirect:i,permanentRedirect:n}=(0,r(5758).iV)({locales:["ru","uz","oz","en"],localePrefix:"as-needed"})},2865:function(e,s,r){"use strict";r.d(s,{Br:function(){return u},Kf:function(){return a},UX:function(){return n},Yh:function(){return l},dE:function(){return c},zO:function(){return o}});var t=r(3375);let a=e=>e?e.includes("@")||e.includes("+")?e:"+".concat(e):"",l=e=>{e?document.body.style.overflowY="hidden":document.body.style.overflowY="auto"},i=()=>{let e="darakchi.uz";if(!e)return;let s=e.replace(/^https?:\/\//,"").split("/")[0].split(":")[0];if(!(!s||"localhost"===s||/^\d+(\.\d+){3}$/.test(s)))return"."+s},n=(e,s)=>{let r=i();(0,t.setCookie)("access",e,{maxAge:86400,secure:!0,sameSite:"lax",path:"/",domain:r}),(0,t.setCookie)("refresh",s,{maxAge:7776e3,secure:!0,sameSite:"lax",path:"/",domain:r})},o=e=>{let{seconds:s}=e;return new Date(1e3*s).toISOString().substring(11,19)},c=()=>{let e=i();(0,t.deleteCookie)("access",{domain:e}),(0,t.deleteCookie)("refresh",{domain:e})},u=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}},function(e){e.O(0,[919,202,467,343,28,109,695,971,23,744],function(){return e(e.s=6545)}),_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.