1/*! For license information please see 234.687c608c.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkuniversity_frontend=self.webpackChunkuniversity_frontend||[]).push([[234],{234(e,t,a){a.r(t),a.d(t,{default:()=>p});var r=a(5043),s=a(3216),l=a(1137),n=a(4849),i=a(6702),o=a(388),d=a(4099),c=a(2371),h=a(6060),u=a(6262),m=a(2932),g=a(8920),x=a(579);const p=()=>{const{slug:e}=(0,s.g)(),{locale:t}=(0,i.F)(),{t:a}=(0,l.Bd)(["common","pages"]),{setSidebarType:p,setBreadcrumbsData:b}=(0,n.Ji)(),{data:f,loading:v}=(0,u.A)({key:"".concat(t,"-grant-allocation-").concat(e||"default"),fetcher:async()=>{if(e)return await(0,g.j)(e,t);{const e=await(0,g.a)(t);return e.length>0?e[0]:null}},ttlMinutes:m.WS.TTL.MEDIUM});return(0,r.useEffect)(()=>{p("info");const e=a("pages:grant_allocation","Grantlarni taqsimlash");b([{label:a("common:home","Bosh sahifa"),href:"/"},{label:a("pages:students","Talabalar"),href:"/students"},{label:e}])},[f,t,p,b,a]),v?(0,x.jsx)(d.JQ,{type:"university"}):f?(0,x.jsx)(o.A,{title:(0,c.MT)(f.title,t)||a("pages:grant_allocation","Grantlarni taqsimlash"),contentType:"info",content:(0,c.MT)(f.content,t),meta:{publishDate:f.published_at},children:f.files&&f.files.length>0&&(0,x.jsx)("div",{className:"mt-8",children:(0,x.jsx)(h.A,{files:f.files})})}):(0,x.jsx)(d.pp,{resourceKey:"info"})}},388(e,t,a){a.d(t,{A:()=>j});var r=a(5043),s=a(4839),l=a(8336),n=a(4656),i=a(1137),o=a(9839),d=a(4099),c=a(2932),h=a(5264),u=a(5088),m=a(67),g=a(8969),x=a(2754),p=a(9350),b=a(6702),f=a(3178),v=a(7698),y=a(579);const j=e=>{let{title:t,content:a,contentBlocks:j,meta:w,heroImage:k,heroImageAlt:N,gallery:A,galleryLayout:M="carousel",breadcrumbs:C,relatedItems:_=[],showRelated:z=!0,showMeta:L=!0,showSocialShare:S=!0,showPrintButton:I=!0,showSidebar:B=!1,sidebarContent:W,socialShare:D={facebook:!0,telegram:!0,instagram:!0},onPrint:T,onRelatedClick:E,className:H="",children:P}=e;const{t:U}=(0,i.Bd)("common"),{locale:q}=(0,b.F)(),[F,O]=r.useState(!1),[R,K]=r.useState(0),[V,$]=r.useState(0),G=r.useRef(null),J=e=>{var t;null===(t=G.current)||void 0===t||t.scrollBy({left:"left"===e?-200:200,behavior:"smooth"})},Q=r.useMemo(()=>{const e=[];return k&&e.push({src:k,alt:N||t}),A&&A.length>0&&A.forEach(t=>{t.src!==k&&e.push(t)}),e},[k,N,t,A]),Z=e=>{K(e),O(!0)},X=()=>{O(!1)},Y=()=>{0!==Q.length&&K(e=>(e+1)%Q.length)},ee=()=>{0!==Q.length&&K(e=>(e-1+Q.length)%Q.length)},te=r.useMemo(()=>a?(0,v.H)(a):"",[a]);return(0,y.jsxs)("div",{className:"flex flex-col gap-6 ".concat(H),children:[C&&C.length>0&&(0,y.jsx)("div",{className:"no-print",children:(0,y.jsx)(l.A,{items:C})}),(0,y.jsx)("div",{className:"w-full",children:(0,y.jsx)("div",{className:"w-full",children:(0,y.jsxs)(s.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.4},className:"printable-content bg-white rounded-2xl shadow-[0_4px_16px_0_rgba(0,0,0,0.05)] overflow-hidden px-6 py-4 md:px-8 md:py-4 border border-gray-100",children:[(0,y.jsxs)("div",{className:"mb-2",children:[(0,y.jsx)("h1",{className:"text-[1.35rem] md:text-[1.55rem] font-[900] leading-[1.2] font-sans text-black tracking-tighter w-full mb-3",children:t}),(0,y.jsx)("div",{className:"border-b border-dashed border-gray-300 mt-1 mb-3"}),L&&w&&(0,y.jsxs)("div",{className:"flex items-center justify-between gap-3 mb-3 no-print",children:[w.updatedAt||w.publishDate?(0,y.jsxs)("div",{className:"flex items-center gap-2 bg-gray-50 border border-gray-100 text-[#334155] rounded-xl px-3 py-1.5 text-sm transition-colors hover:bg-gray-100 cursor-default shadow-sm shadow-black/5 font-semibold tracking-tight whitespace-nowrap",children:[(0,y.jsx)(u.A,{size:16,className:"text-[#334155]",strokeWidth:2.5}),(0,y.jsx)("span",{children:(ae=w.updatedAt||w.publishDate||"",re=q,(0,c.F5)(ae,re||q))})]}):(0,y.jsx)("div",{}),(()=>{const e=(k?1:0)+((null===A||void 0===A?void 0:A.length)||0);return e>0?(0,y.jsxs)("div",{className:"flex items-center gap-2 bg-gray-50 border border-gray-200 text-black rounded-xl px-3 py-1.5 text-sm transition-colors hover:bg-gray-100 cursor-default",children:[(0,y.jsx)(m.A,{size:16,className:"text-black",strokeWidth:2.5}),(0,y.jsx)("span",{className:"font-medium",children:e})]}):null})()]})]}),Q.length>0&&("grid"===M?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"mb-8 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:Q.map((e,t)=>(0,y.jsxs)("div",{onClick:()=>Z(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||Z(t)},role:"button",tabIndex:0,className:"relative aspect-[4/3] rounded-xl overflow-hidden group border border-gray-100 shadow-sm cursor-pointer focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",children:[(0,y.jsx)(d.p$,{src:e.src,alt:e.alt,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}),(0,y.jsx)("div",{className:"absolute inset-0 bg-black/40 group-hover:bg-black/20 transition-all duration-300 flex items-center justify-center opacity-0 group-hover:opacity-100 backdrop-blur-[2px]",children:(0,y.jsx)("div",{className:"bg-white/20 backdrop-blur-md p-3 rounded-full border border-white/30 transform scale-75 group-hover:scale-100 transition-transform duration-300",children:(0,y.jsx)(g.A,{className:"text-white w-6 h-6",strokeWidth:2.5})})})]},t))}),(0,y.jsx)(d.a,{isOpen:F,onClose:X,images:Q,currentIndex:R,onNext:Y,onPrev:ee})]}):(0,y.jsx)("div",{className:"mb-3 w-full overflow-hidden",children:(0,y.jsx)(d.gf,{images:Q,activeIndex:V})}
2)),(0,y.jsx)("div",{className:"prose prose-lg max-w-none prose-headings:font-sans prose-headings:text-[#003B5C] prose-a:text-blue-600 mt-0",children:j?(0,y.jsx)(n.A,{blocks:j}):a?(0,y.jsx)("div",{className:"rich-text-forced",dangerouslySetInnerHTML:{__html:te}}):A&&A.length>0||k||P?null:(0,y.jsx)("p",{className:"text-black italic",children:U("no_info","Ma'lumot mavjud emas")})}),Q.length>1&&"grid"!==M&&(0,y.jsxs)("div",{className:"mt-4 flex items-center gap-2 no-print",children:[(0,y.jsx)("button",{onClick:()=>J("left"),"aria-label":"Scroll thumbnails left",className:"flex-shrink-0 p-2 rounded-full bg-white border border-gray-200 shadow-sm hover:bg-gray-50 transition-all duration-200 text-gray-700",children:(0,y.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,y.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),(0,y.jsx)("div",{ref:G,className:"flex gap-2 overflow-x-auto flex-1 py-[3px]",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:Q.map((e,t)=>(0,y.jsx)("button",{onClick:()=>{$(t),Z(t)},"aria-label":"View image ".concat(t+1),className:"flex-shrink-0 w-[140px] h-[110px] border-[3px] border-transparent hover:border-gray-300 transition-all duration-200 focus:outline-none group/thumb",children:(0,y.jsxs)("div",{className:"w-full h-full overflow-hidden relative",children:[(0,y.jsx)(d.p$,{src:e.src,alt:e.alt,className:"w-full h-full object-cover",width:140,height:110,lazy:0!==t}),(0,y.jsx)("div",{className:"absolute inset-0 bg-black/0 group-hover/thumb:bg-black/20 transition-colors duration-200 flex items-center justify-center",children:(0,y.jsx)(g.A,{className:"text-white opacity-0 group-hover/thumb:opacity-100 transition-opacity duration-200 w-
25 h-5 drop-shadow",strokeWidth:2.5})})]})},t))}),(0,y.jsx)("button",{onClick:()=>J("right"),"aria-label":"Scroll thumbnails right",className:"flex-shrink-0 p-2 rounded-full bg-white border border-gray-200 shadow-sm hover:bg-gray-50 transition-all duration-200 text-gray-700",children:(0,y.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,y.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),"grid"!==M&&(0,y.jsx)(d.a,{isOpen:F,onClose:X,images:Q,currentIndex:R,onNext:Y,onPrev:ee}),P,(null===w||void 0===w?void 0:w.department)&&(()=>{const e=U("common:department_suffix","kafedrasi"),t=w.department,a=t.toLowerCase().endsWith(e.toLowerCase())||t.toLowerCase().includes("kafedrasi")||t.toLowerCase().includes("\u043a\u0430\u0444\u0435\u0434\u0440\u0430")||t.toLowerCase().includes("department");return(0,y.jsxs)("div",{className:"mt-6 flex justify-end items-center gap-2 text-main-dark font-semibold",children:[(0,y.jsx)(h.A,{size:20,className:"text-[#334155]"}),(0,y.jsxs)("span",{className:"text-lg italic",children:["\xab",t,"\xbb",a?"":" ".concat(e)]})]})})(),(null===w||void 0===w?void 0:w.tags)&&w.tags.length>0&&(0,y.jsx)("div",{className:"mt-8 pt-6 border-t border-dashed border-gray-200",children:(0,y.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,y.jsxs)("span",{className:"text-black font-semibold text-sm flex items-center gap-1 mr-2",children:[(0,y.jsx)(p.A,{size:16})," ",U("tags","Teglar"),":"]}),w.tags.map((e,t)=>(0,y.jsxs)("span",{className:"bg-blue-50 text-blue-700 px-3 py-1 rounded-lg text-sm border border-blue-100 hover:bg-blue-100 transition-colors cursor-pointer",children:["#",e]},t))]})}),(0,y.jsx)("div",{className:"my-8 border-t border-dashed border-gray-200"}),(0,y.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4 no-print",children:[S&&(0,y.jsx)(f.A,{title:t,options:D}),I&&(0,y.jsxs)("button",{onClick:()=>{window.print(),null===T||void 0===T||T()},className:"flex items-center gap-2 px-4 py-2 bg-white border border-gray-300 text-black rounded-lg hover:bg-gray-50 transition-colors shadow-sm",children:[(0,y.jsx)(x.A,{size:18,strokeWidth:2.5}),(0,y.jsx)("span",{className:"text-sm font-bold",children:U("print","Chop etish")})]})]})]})})}),z&&_.length>0&&(0,y.jsxs)(s.P.div,{initial:{opacity:0}
2,whileInView:{opacity:1},viewport:{once:!0},className:"mt-6 no-print",children:[(0,y.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,y.jsx)("div",{className:"w-1.5 h-8 bg-blue-600 rounded-full"}),(0,y.jsx)("h3",{className:"text-2xl font-medium text-main",children:U("related_materials","O'xshash materiallar")})]}),(0,y.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:_.slice(0,4).map(e=>(0,y.jsxs)("div",{onClick:()=>null===E||void 0===E?void 0:E(e),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||null===E||void 0===E||E(e)},role:"button",tabIndex:0,className:"group bg-white rounded-xl p-4 border border-gray-200 hover:shadow-lg transition-all duration-300 cursor-pointer flex gap-4",children:[e.image&&(0,y.jsx)("div",{className:"flex-shrink-0 w-24 h-24 rounded-lg overflow-hidden relative",children:(0,y.jsx)(d.p$,{src:e.image,alt:e.title,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500",width:96,height:96})}),(0,y.jsxs)("div",{className:"flex-1 min-w-0 py-1",children:[(0,y.jsxs)("div",{className:"flex items-center gap-2 text-xs text-black font-medium mb-2",children:[(0,y.jsx)(u.A,{size:12}),e.date&&new Date(e.date).toLocaleDateString("uz"===o.Ay.language?"uz-UZ":"ru"===o.Ay.language?"ru-RU":"en-US")]}),(0,y.jsx)("h4",{className:"font-medium text-main line-clamp-2 group-hover:text-blue-600 transition-colors mb-2",children:e.title})]})]},e.id))})]})]});var ae,re}},2754(e,t,a){a.d(t,{A:()=>r});const r=(0,a(7784).A)("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]])},5088(e,t,a){a.d(t,{A:()=>r});const r=(0,a(7784).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},5264(e,t,a){a.d(t,{A:()=>r});const r=(0,a(7784).A)("building",[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]])},8920(e,t,a){a.d(t,{a:()=>l,j:()=>n});var r=a(5514),s=a(2371);const l=async e=>{try{const t="4bbd172e-a839-43fc-a94a-f05dba59e2c5",a=await r.default.get("/projects/".concat(t,"/content/grant-allocation"),{params:{locale:e,with:"files"}}),l=Array.isArray(a.data)?a.data:a.data.data;return Array.isArray(l)?l.map(e=>{const t=e.fields||e||{};return{id:e.uuid||e.id,slug:t.slug||e.slug||"",title:t.title||e.title||"",content:t.content||e.content||"",files:(t.files||[]).map(e=>{var t,a;return{name:e.name||e.title||e.filename||"Hujjat",url:(0,s.getImageUrl)(e.url||e.path||""),size:e.size,ext:e.extension||e.ext||(null===(t=e.url||e.path)||void 0===t||null===(a=t.split(".").pop())||void 0===a?void 0:a.toLowerCase())}}),published_at:e.created_at||e.published_at}}):[]}catch(t){return console.error("Error fetching grant allocations:",t),[]}},n=async(e,t)=>{try{var a;const l="4bbd172e-a839-43fc-a94a-f05dba59e2c5",n=await r.default.get("/projects/".concat(l,"/content/grant-allocation"),{params:{"filter[slug][eq]":e,locale:t,with:"files"}}),i=(Array.isArray(n.data)?n.data:(null===(a=n.data)||void 0===a?void 0:a.data)||[]).find(t=>{var a;return((null===(a=t.fields)||void 0===a?void 0:a.slug)||t.slug)===e});if(!i)return null;const o=i.fields||i||{};return{id:i.uuid||i.id,slug:o.slug||i.slug||"",title:o.title||i.title||"",content:o.content||i.content||"",files:(o.files||[]).map(e=>{var t,a;return{name:e.name||e.title||e.filename||"Hujjat",url:(0,s.getImageUrl)(e.url||e.path||""),size:e.size,ext:e.extension||e.ext||(null===(t=e.url||e.path)||void 0===t||null===(a=t.split(".").pop())||void 0===a?void 0:a.toLowerCase())}}),published_at:i.created_at||i.published_at}}catch(l){return console.error("Error fetching grant allocation by slug: ".concat(e),l),null}}},8969(e,t,a){a.d(t,{A:()=>r});const r=(0,a(7784).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},9350(e,t,a){a.d(t,{A:()=>r});const r=(0,a(7784).A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.
2172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])}}]); 3//# sourceMappingURL=234.687c608c.chunk.js.map
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.