PageSourceSearch

https://www.jaipurliteraturefestival.org/assets/AnnouncementDetailPage-BuVTLHch.js

js jaipurliteraturefestival.org collected 2026-09-24 18:23:41 UTC 2,965 bytes, 1 lines download raw bytes

1import{r,j as e,h as w}from"./index-C5Fk4ELm.js";import{s as D,a as R,d as S,M as v,W as A,F as c,j as E,R as N,S as _,l as P,z as y,D as C,i as f,g as I}from"./AppRoutes-BcPRz_en.js";import{a as T}from"./index-BsTNOytv.js";const L=()=>{const{id:m}=D(),d=R(),l=S(),[o,u]=r.useState({});r.useState(""),r.useState(!1);const x=r.useRef(null),g=r.useRef(null);async function h(){try{const s=l?.state?.item?.slug||m,a=`${w}${encodeURIComponent(s)}`,t=await I(a);let n=t;Array.isArray(t?.data)&&t.data.length===0&&Array.isArray(t?.announcements)&&t.announcements.length>0&&(n={...t,data:t.announcements[0]}),u(n||{})}catch(s){console.error("Press release detail error:",s),d("/404")}}r.useEffect(()=>{if(l?.state?.item){u({data:l.state.item,popular:l.state.popular||[],metadata:l.state.metadata||void 0});return}h()},[m]),r.useEffect(()=>{const s=g.current,a=x.current;if(!s||!a)return;const t=()=>{const n=a.offsetTop+a.offsetHeight,p=window.scrollY+window.innerHeight;s.style.overflowY=p>=n?"auto":"hidden"};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]);const j=s=>{if(!s)return"";let a=String(s).replaceAll(""",'"').replaceAll(/""/g,'"');const n=new DOMParser().parseFromString(a,"text/html");return n.querySelectorAll("a").forEach(i=>{i.style.color="blue",i.style.textDecoration="underline",i.target="_blank",i.rel="noopener noreferrer"}),n.body.innerHTML};return e.jsxs("div",{className:"w-full bg-white",children:[e.jsx(v,{title:o?.metadata?.title,description:o?.metadata?.description}),e.jsx("div",{className:"relative top-0 min-w-full flex bg-bg_dark_purple h-[80px] pt-5"}),e.jsxs(A,{children:[e.jsxs(c,{className:"flex items-center gap-2 mt-5 ssm:mt-20",children:[e.jsx("h1",{onClick:()=>d(E.PRESS_RELEASE),className:"font-SansRegularFont text-[16px] cursor-pointer",children:"Press Releases"}),e.jsx(T,{size:10}),e.jsx("h1",{className:"font-SansRegularFont text-pink_color-900 text-[16px] cursor-pointer",children:"Press Releases Details"})]}),e.jsx("div",{className:"w-full flex flex-col md:flex-row gap-5 smlg:gap-10 mt-6 ssm:mt-8",children:e.jsx("div",{ref:x,className:"w-full min-h-fit md:w-[100%] smlg:w-[100%]",children:e.jsxs("div",{children:[e.jsxs(c,{children:[e.jsx("div",{className:"block ssm:flex items-start xl:items-center flex-col xl:flex-row justify-between mt-6 ssm:mt-8 gap-4",children:e.jsx(N,{color:"text-blue_color-900",className:"text-[24px] smlg:text-[32px] text-wrap w-full xl:max-w-[100%]",text:o?.data?.title})}),e.jsx(_,{className:"text-[16px] text-[#494949] mt-4",text:`${o?.data?.author||""} | ${P(o?.data?.date)}`})]}),e.jsx(c,{className:"flex flex-col gap-6 mt-6 ssm:mt-5",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:y.sanitize(j(o?.data?.description))}})})]})})})]}),e.jsx("div",{className:"mt-20",children:e.jsx(C,{desktopDviderImage:f.PROGRAM_LIST_SECTION_DVIDER,mobileDviderImage:f.PROGRAM_LIST_SECTION_DVIDER_MOBILE})})]})},O=()=>e.jsx(L,{});export{O as default};

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.