PageSourceSearch

https://online.lsk.or.ke/static/js/6899.d6ebb93b.chunk.js

js lsk.or.ke collected 2026-09-26 05:41:54 UTC 4,678 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklsk=self.webpackChunklsk||[]).push([[6899],{96899:(e,s,i)=>{i.r(s),i.d(s,{default:()=>g});var t=i(9950),n=i(24492),l=i(10300),a=i(1201),d=i(98374),r=i(72360),o=i(70431),c=i(22101),h=i(81820),m=i(44414);const v=e=>{var s,i;return(null===e||void 0===e||null===(s=e.get_images)||void 0===s||null===(i=s.find(e=>null===e||void 0===e?void 0:e.image))||void 0===i?void 0:i.image)||(null===e||void 0===e?void 0:e.thumb)||(null===e||void 0===e?void 0:e.image)||""},x=function(){const e=String((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"").trim();return e.length<=150?e:`${e.slice(0,150)}...`},u=e=>{let{news:s}=e;const i=(0,n.Zp)();if(!s)return null;const t=()=>{i(`/news-details/${s.id}`,{state:{news:s}}),window.scrollTo({top:0,behavior:"smooth"})},l=s.publish_date?h.A.dateFormat(s.publish_date,"DD.MM.YYYY"):"";return(0,m.jsx)("div",{className:"col-12 col-md-6 col-lg-3 d-flex",children:(0,m.jsxs)("div",{className:"event-card card w-100 cursor-pointer overflow-hidden",onClick:t,role:"button",tabIndex:0,style:{height:"500px"},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||t()},children:[(0,m.jsx)("div",{className:"eventImage rounded-10px overflow-hidden rounded-bottom-0 position-relative flex-shrink-0",children:(0,m.jsx)("div",{className:"imges-outer",children:(0,m.jsx)("img",{src:v(s),alt:s.title||"News",onError:e=>{e.currentTarget.src="https://images.unsplash.com/photo-1504711434969-e33886168f775?q=80&w=1200"}})})}),(0,m.jsxs)("div",{className:"card-body p-3 p-md-4 d-flex flex-column overflow-hidden flex-grow-1",children:[l&&(0,m.jsx)("div",{className:"font-12px text-muted text-uppercase mb-2 line-height-130",children:l}),(0,m.jsx)("h3",{className:"font-18px font-bold mb-0 line-height-130",children:s.title}),(0,m.jsx)("p",{className:"font-14px line-height-150 opacity-07 flex-grow-1 overflow-hidden mt-2 mb-0",children:x(s.short_description)}),(0,m.jsxs)("div",{className:"mt-auto pt-3 d-flex align-items-center link-primary font-14px font-semibold",children:[(0,m.jsx)("span",{children:"Read more"}),(0,m.jsx)("span",{className:"ms-2 d-inline-flex align-items-center justify-content-center rounded-circle border border-primary",style:{width:22,height:22,fontSize:12},"aria-hidden":!0,children:">"})]})]})]})})};var p=i(71132);const g=()=>{const e=(0,n.Zp)(),[s,i]=(0,t.useState)(!1),[h,v]=(0,t.useState)({data:[],last_page:1}),[x,g]=(0,t.useState)(1),j=(0,l.d4)(e=>{var s;return null===e||void 0===e||null===(s=e.userData)||void 0===s?void 0:s.business_token});(0,t.useEffect)(()=>{(async()=>{try{i(!0);const e=await c.A.request("get","get-member-news",{business_token:j,page:x});if(null!==e&&void 0!==e&&e.status){const s=null===e||void 0===e?void 0:e.data;s&&Array.isArray(null===s||void 0===s?void 0:s.data)?v(s):v({data:[],last_page:1})}else a.oR.error((null===e||void 0===e?void 0:e.message)||"Unable to load news"),v({data:[],last_page:1})}catch(e){console.error(e),v({data:[],last_page:1})}finally{i(!1)}})()},[x,j]);const f=(null===h||void 0===h?void 0:h.data)||[];return(0,m.jsxs)(m.Fragment,{children:[s&&(0,m.jsx)(o.A,{}),(0,m.jsxs)("div",{className:"bg-white",children:[(0,m.jsx)(d.A,{type:"resources"}),(0,m.jsx)("div",{className:"banner-section",children:(0,m.jsx)("div",{className:"FAQ-img text-white",children:(0,m.jsx)("div",{className:"banner-img-FAQ px-4",children:(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"font-40 font-semibold pb-xl-2",children:"News & Updates"}),(0,m.jsx)("div",{className:"pt-2 pt-md-3 line-height-130 font-20px",children:"Stay informed with the latest news and announcements."})]})})})}),(0,m.jsxs)("div",{className:"pageContainer",children:[(0,m.jsx)("div",{className:"border-bottom BackBar mb-4",children:(0,m.jsx)("div",{className:"container py-3",children:(0,m.jsxs)("a",{className:"link-default",onClick:()=>e("/resources"),children:[(0,m.jsx)("span",{children:(0,m.jsx)("svg",{className:"svgFill",width:7,height:12,viewBox:"0 0 7 12",fill:"none",children:(0,m.jsx)("path",{d:"M6.00003 0.679688L0.916698 5.76302C0.666698 6.01302 0.666698 6.42302 0.916698 6.67302L6.00003 11.7563",stroke:"black",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})})})," ","Back"]})})}),(0,m.jsx)("div",{className:"container pb-5",children:(0,m.jsxs)("div",{className:" ",children:[(0,m.jsxs)("div",{className:"row g-3",children:[!s&&0===f.length&&(0,m.jsx)("div",{className:"col-12 text-center py-4 text-muted",children:"No news found"}),f.map(e=>(0,m.jsx)(u,{news:e},e.id))]}),f.length>0&&(null===h||void 0===h?void 0:h.last_page)>1&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(p.A,{page:x,setPage:g,data:h})})]})})]}),(0,m.jsx)(r.A,{})]})]})}}}]);

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.