PageSourceSearch

https://bmu.edu.bd/_next/static/chunks/230.ce5d19a1876fb9f0.js

js bmu.edu.bd collected 2026-10-02 21:34:02 UTC 7,745 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[230],{50230:(e,t,l)=>{l.r(t),l.d(t,{default:()=>y});var i=l(95155),s=l(12115),n=l(15239),r=l(52619),a=l.n(r),o=l(28122),d=l(51834),c=l(63570),u=l(42328),m=l(64269);let x="bmu:announcement-dismissed:",f=e=>/^(https?:)?\/\//i.test(e),h=e=>f(e)?{target:"_blank",rel:"noopener noreferrer"}:{},p=(e,t)=>{var l,i;return(null!=(l=e.order)?l:0)-(null!=(i=t.order)?i:0)},g=e=>{var t;return(null!=(t=e.images)?t:[]).filter(e=>(null==e?void 0:e.isActive)!==!1&&(0,m.IJ)(null==e?void 0:e.url)).sort((e,t)=>{var l,i;return(null!=(l=e.displayOrder)?l:0)-(null!=(i=t.displayOrder)?i:0)})[0]},v=e=>(null==e?void 0:e.trim())||"",b=e=>{var t,l,i,s;let n=[...null!=(t=e.contents)?t:[]].sort(p).filter(e=>(null==e?void 0:e.isActive)!==!1),r=n.filter(e=>v(e.linkUrl)&&v(e.title)),a=null!=(l=n.find(e=>v(e.description)&&!r.includes(e)))?l:n.find(e=>v(e.title)&&!r.includes(e)),o=v(null==a?void 0:a.title);if(!o)return null;let d=n.find(e=>e!==a&&!r.includes(e)&&v(e.title)),c=n.map(g).find(Boolean),u=e=>e?{label:v(e.title),href:(e=>{let t=e.trim();return t?f(t)||/^[a-z]+:/i.test(t)||t.startsWith("#")||t.startsWith("/")?t:"/".concat(t):"#"})(v(e.linkUrl))}:void 0;return{id:"".concat(e.id,"@").concat((e=>{var t,l;return null!=(l=[e.updatedAt,...(null!=(t=e.contents)?t:[]).map(e=>e.updatedAt)].filter(e=>!!e).sort().pop())?l:""})(e)),eyebrow:v(null==a?void 0:a.subtitle)||void 0,title:o,description:v(null==a?void 0:a.description)||void 0,meta:v(null==d?void 0:d.title)||void 0,image:null!=(i=null==c?void 0:c.url)?i:void 0,imageAlt:null!=(s=null==c?void 0:c.altText)?s:void 0,cta:u(r[0]),secondaryCta:u(r[1])}},y=()=>{var e;let[t,l]=(0,s.useState)(!1),{data:r}=(0,u.Gs)(["section",String(495)],"/bmu/api/v1/sections/".concat(495),u.hD),f=null==r?void 0:r.data,g=(0,s.useMemo)(()=>{var e;return f&&!1!==f.isActive?[...null!=(e=f.components)?e:[]].sort(p).filter(e=>(null==e?void 0:e.isActive)!==!1).map(b).filter(e=>null!==e):[]},[f]),v=g[0],y=g.slice(1,4),w=null==v?void 0:v.id;if((0,s.useEffect)(()=>{if(!w||(e=>{try{return"1"===window.sessionStorage.getItem(x+e)}catch(e){return!1}})(w))return;let e=setTimeout(()=>l(!0),1200);return()=>clearTimeout(e)},[w]),!v)return null;let j=()=>{l(!1),(e=>{try{window.sessionStorage.setItem(x+e,"1")}catch(e){}})(v.id)},N=(0,m.IJ)(v.image);return(0,i.jsx)(d.lG,{open:t,onOpenChange:e=>e?l(!0):j(),children:(0,i.jsxs)(d.Cf,{showCloseButton:!1,className:(0,m.cn)("block gap-0 overflow-x-hidden overflow-y-auto rounded-2xl border-0 p-0","max-h-[90vh] shadow-[0_30px_80px_-24px_rgba(4,33,73,0.6)]","w-[calc(100%-1.5rem)] max-w-[440px] sm:max-w-[560px]","data-[state=open]:slide-in-from-bottom-4 lg:rounded-2xl",N?"lg:grid lg:w-[940px] lg:max-w-[940px] lg:grid-cols-[minmax(0,42%)_minmax(0,58%)]":"lg:w-[620px] lg:max-w-[620px]"),children:[(0,i.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-20 h-1 bg-gradient-to-r from-[#009dc4] via-[#2565eb] to-[#042149]"}),(0,i.jsx)("button",{type:"button",onClick:j,"aria-label":"Close announcement",className:"absolute top-4 right-4 z-20 flex h-9 w-9 items-center justify-center rounded-full bg-white/95 text-textPrimary shadow-md ring-1 ring-black/5 transition-colors duration-200 hover:bg-white hover:text-linkBlue focus-visible:ring-2 focus-visible:ring-skyBlue focus-visible:outline-none motion-reduce:transition-none",children:(0,i.jsx)(o.yGN,{size:18})}),N&&(0,i.jsxs)("div",{className:"relative h-40 w-full overflow-hidden sm:h-52 lg:h-full lg:min-h-[440px]",children:[(0,i.jsx)(n.default,{src:v.image,alt:null!=(e=v.imageAlt)?e:"",fill:!0,sizes:"(max-width: 1024px) 100vw, 400px",className:"object-cover object-center"}),(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[#042149]/95 via-[#042149]/40 to-[#042149]/10 lg:bg-gradient-to-br lg:from-[#042149]/80 lg:via-[#042149]/35 lg:to-[#009dc4]/25"}),(0,i.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex items-center gap-3 p-5",children:[(0,i.jsx)("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white shadow-md",children:(0,i.jsx)(n.default,{src:"/logo.png",alt:"Bangladesh Maritime University",width:34,he
1ight:34,className:"h-8 w-8 object-contain"})}),(0,i.jsxs)("span",{className:"text-sm leading-tight font-semibold text-white",children:["Bangladesh Maritime University",(0,i.jsx)("span",{className:"block text-[11px] font-normal text-white/75",children:"We Strive for Maritime Excellence"})]})]})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-4 p-5 sm:gap-5 sm:p-8 lg:p-10",children:[(0,i.jsxs)("div",{children:[v.eyebrow&&(0,i.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full bg-skyBlue/10 px-3 py-1.5 text-[11px] font-semibold tracking-[0.14em] text-[#046d88] uppercase",children:[(0,i.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,i.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-skyBlue opacity-70 motion-reduce:animate-none"}),(0,i.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-skyBlue"})]}),v.eyebrow]}),(0,i.jsx)(d.L3,{className:(0,m.cn)("pr-8 text-[22px] leading-snug font-semibold text-textPrimary sm:text-2xl lg:text-[32px]",v.eyebrow&&"mt-4"),children:v.title})]}),v.description&&(0,i.jsx)(d.rr,{asChild:!0,children:(0,i.jsx)(c.A,{html:v.description,className:"text-sm leading-relaxed text-desc sm:text-[15px]"})}),v.meta&&(0,i.jsxs)("p",{className:"flex items-start gap-3 rounded-lg border-l-4 border-skyBlue bg-liteBlue px-4 py-2.5 sm:py-3 text-sm font-medium text-textPrimary",children:[(0,i.jsx)(o.wIk,{className:"mt-0.5 shrink-0 text-skyBlue",size:16}),v.meta]}),(v.cta||v.secondaryCta)&&(0,i.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-5",children:[v.cta&&(0,i.jsxs)(a(),{href:v.cta.href,...h(v.cta.href),onClick:j,className:"group inline-flex items-center justify-center gap-2 rounded-full bg-gradient-to-r from-[#042149] to-[#12325C] px-7 py-3.5 text-sm font-semibold text-white shadow-lg shadow-[#042149]/25 transition-all duration-300 hover:shadow-xl hover:shadow-[#042149]/35 hover:brightness-125 focus-visible:ring-2 focus-visible:ring-skyBlue focus-visible:ring-offset-2 focus-visible:outline-none motion-reduce:transition-none",children:[v.cta.label,(0,i.jsx)(o.dyV,{size:17,className:"transition-transform duration-300 group-hover:translate-x-1 motion-reduce:transition-none"})]}),v.secondaryCta&&(0,i.jsx)(a(),{href:v.secondaryCta.href,...h(v.secondaryCta.href),onClick:j,className:"text-center text-sm font-medium text-linkBlue underline-offset-4 transition-colors duration-200 hover:underline focus-visible:underline focus-visible:outline-none sm:text-left",children:v.secondaryCta.label})]}),y.length>0&&(0,i.jsxs)("div",{className:"border-t border-bdrGray pt-4",children:[(0,i.jsx)("p",{className:"text-[11px] font-semibold tracking-[0.14em] text-textGray uppercase",children:"Also announced"}),(0,i.jsx)("ul",{className:"mt-1 divide-y divide-bdrGray/70",children:y.map(e=>(0,i.jsx)("li",{children:e.cta?(0,i.jsxs)(a(),{href:e.cta.href,...h(e.cta.href),onClick:j,className:"group flex items-center gap-3 py-2.5 text-sm text-textPrimary transition-colors duration-200 hover:text-linkBlue focus-visible:text-linkBlue focus-visible:outline-none",children:[(0,i.jsx)("span",{className:"line-clamp-1 flex-1",children:e.title}),(0,i.jsx)(o.fOo,{size:16,className:"shrink-0 text-textGray transition-transform duration-200 group-hover:translate-x-0.5 group-hover:text-linkBlue motion-reduce:transition-none"})]}):(0,i.jsx)("span",{className:"flex items-center gap-3 py-2.5 text-sm text-textPrimary",children:(0,i.jsx)("span",{className:"line-clamp-1 flex-1",children:e.title})})},e.id))})]})]})]})})}}}]);

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.