PageSourceSearch

https://clubmaldives.org/_next/static/chunks/pages/news/[pid]-e7dac617c3cbd21d.js

js clubmaldives.org collected 2026-10-03 01:59:54 UTC 6,637 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[843],{1365:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news/[pid]",function(){return s(6181)}])},6181:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return f},default:function(){return j}});var l=s(5893),i=s(3079),a=s(7294),n=s(1664),c=s.n(n),r=s(9008),d=s.n(r),m=s(4592),o=s(8487),x=s(4865),u=s(2867),h=e=>(0,l.jsx)(l.Fragment,{children:e.data&&(0,l.jsx)("div",{children:e.data.blocks.map((e,t)=>"paragraph"===e.type?(0,l.jsx)("div",{style:{color:"#949AB6"},className:"py-2 text-md md:text-md font-light",dangerouslySetInnerHTML:{__html:e.data.text}},t):"header"===e.type?(0,l.jsx)("div",{style:{color:"#949AB6"},className:"py-2 mt-6 text-xl md:text-md font-semibold",dangerouslySetInnerHTML:{__html:e.data.text}},t):"quote"===e.type?(0,l.jsx)("div",{className:"flex py-4",children:(0,l.jsx)("div",{style:{color:"#949AB6"},className:"text-lg md:text-lg font-light italic",dangerouslySetInnerHTML:{__html:e.data.text}})},t):"image"===e.type?(0,l.jsxs)("div",{className:"py-4",children:[(0,l.jsx)("img",{src:(0,x.V$)(e.data.file.url),className:"rounded-lg",alt:""}),(0,l.jsx)("div",{style:{color:"#949AB6"},className:"py-2 text-sm italic font-light",children:e.data.caption&&e.data.caption})]},t):void 0)})}),p=s(7162),g=s(1818),f=!0;function j(e){let{pageTitle:t,pageSummary:s,pageImage:n,pageId:r}=e,{pid:f}=(0,i.useRouter)().query,[j,b]=(0,a.useState)([]),[v,y]=(0,a.useState)([]),[N,w]=(0,a.useState)([]);(0,a.useEffect)(()=>{k(f)},[]),(0,a.useEffect)(()=>{k(f)},[f]);let _=async()=>{let{data:e,error:t}=await o.O.from("posts").select("id,title,tags,summary").neq("id",f).order("published_at",{ascending:!1}).limit(6);t||y(e)},k=async e=>{w(!0);let{data:t,error:s}=await o.O.from("posts").select("id,title,tags,data,summary,published_at,author:author(label,value)").eq("id",e).single();s||b(t),w(!1),_()};return(0,l.jsxs)(m.Z,{children:[(0,l.jsxs)(d(),{header:!1,children:[(0,l.jsx)("title",{children:t||"Club Maldives"}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{property:"og:type",content:"website"}),(0,l.jsx)("meta",{property:"og:url",content:r}),(0,l.jsx)("meta",{property:"og:image",content:n})]}),(0,l.jsx)("div",{className:"w-screen bg-white min-h-screen",children:N?(0,l.jsx)("div",{className:"w-full flex justify-center items-center py-8 md:mx-8 px-6",children:(0,l.jsx)(u.Z,{})}):(0,l.jsx)(l.Fragment,{children:j&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full bg-white",children:[(0,l.jsx)("div",{className:"container mx-auto md:px-6 px-4 md:py-6 py-4",children:(0,l.jsx)("div",{className:"w-full 2xl:h-[32rem] xl:h-[32rem] lg:h-[28rem] md:h-[24rem] h-[14rem] rounded-xl mb-4",style:{backgroundImage:'url("'.concat((0,x.IE)("public/posts/images/"+j.id+".png"),'")'),backgroundSize:"cover",backgroundPosition:"center"}})}),(0,l.jsx)("div",{className:"w-full bottom-0",children:(0,l.jsxs)("div",{className:"container mx-auto md:px-6 px-4",children:[(0,l.jsx)("p",{className:"italic text-cmc-blue-800 font-inter font-semibold text-xl md:text-2xl w-full",children:j.title}),(0,l.jsx)("div",{className:"cursor-pointer flex items-center",children:j.published_at&&(0,l.jsx)("p",{className:"text-cmc-blue-200 text-md mt-1 font-light mr-2",children:(0,p.Z)(new Date(j.published_at),"dd MMM yyyy - H:m")})})]})})]},j.id),(0,l.jsxs)("div",{className:"container md:px-6 px-4 py-6 md:py-6 mx-auto lg:flex",children:[(0,l.jsxs)("div",{className:"w-full lg:w-2/3 mb-12",children:[(0,l.jsx)("div",{children:(0,l.jsx)(h,{data:j.data})}),(0,l.jsxs)("div",{className:"mt-6",children:[(0,l.jsx)("p",{className:"mb-3 text-sm font-normal text-cmc-blue-200",children:"Share this article:"}),(0,l.jsxs)("div",{className:"flex jsutify-center items-center space-x-3",children:[(0,l.jsx)(g.Dk,{url:"https://clubmaldives.org/news/".concat(j.id),quote:j.title,hashtag:"",children:(0,l.jsx)(g.Vq,{size:32,round:!0})}),(0,l.jsx)(g.B,{url:"https://clubmaldives.org/news/".concat(j.id),title:j.title,children:(0,l.jsx)(g.Zm,{size:32,round:!0})}),(0,l.jsx)(g.UE,{url:"https://clubmaldives.org/news/".concat(j.id),title:j.title,children:(0,l.jsx)(g.Y7,{size:32,round:!0})}),(0,l.jsx)(g.N0,{url:"https://clubmaldives.org/news/".concat(j.id),title:j.title,separator:":: ",children:(0,l.jsx)(g.ud,{size:32,round:!0})}),(0,l.jsx)(g.tq,{url:"https://clubmaldives.org/news/".concat(j.id),title:j.title,children:(0,l.jsx)(g.YG,{size:32,round:!0})})]})]})]}),(0,l.jsx)("div",{className:"w-full lg:w-2/4 mt-0 lg:ml-6 ml-0",children:(0,l.jsxs)("div",{className:"md:p-6 p-4 rounded-xl bg-cmc-gray-200",children:[(0,l.jsx)("div",{className:"w-full flex flex-wrap mb-6",children:(0,l.jsx)("p",{className:"italic text-cmc-blue-800 font-inter font-semibold text-xl md:text-xl w-full",children:"More News"})}),(0,l.jsx)("div",{className:"grid grid-cols-1 gap-6",children:v.map((e,t)=>(0,l.jsxs)("div",{className:3==t?"xl:hidden":"w-full",children:[(0,l.jsx)(c(),{href:"/news/".concat(e.id),as:"/news/".concat(e.id),children:(0,l.jsxs)("div",{className:"cursor-pointer xl:flex",children:[(0,l.jsx)("div",{className:"xl:w-2/5 w-full",children:(0,l.jsx)("div",{className:"w-full 2xl:h-[9rem] xl:h-[7rem] lg:h-[11rem] md:h-[14rem] h-[12rem] rounded-xl",style:{backgroundImage:'url("'.concat((0,x.IE)("public/posts/images/"+e.id+".png"),'")'),backgroundSize:"cover",backgroundPosition:"center"}})}),(0,l.jsxs)("div",{className:"xl:w-3/5 w-full mx-auto xl:px-6 px-0 md:mt-4 mt-4",children:[e.tags&&(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)("div",{className:"bg-cmc-red-800 text-inter font-medium text-xs px-4 py-1 rounded-full text-white mb-2 uppercase",children:e.tags.length>0?e.tags[0].text:""})}),(0,l.jsx)("p",{className:"italic text-cmc-blue-800 font-inter font-medium text-md md:text-md w-full",children:e.title})]})]})}),5!=t&&(0,l.jsx)("div",{className:"w-full bg-cmc-gray-200 md:mt-4 mt-6 border-b border-cmc-gray-400"})]},t))})]})})]})]})})})]})}},4865:function(e,t,s){"use strict";s.d(t,{IE:function(){return d},V$:function(){return r},av:function(){return o},cj:function(){return m}});var l=s(8487),i=s(1354),a=s.n(i);let n="https://cdn.clubmaldives.org",c="https://irrmxnfvamllhtzuybmc.supabase.co",r=e=>e&&n&&c&&e.startsWith(c)?n+e.slice(c.length):e,d=e=>{let{publicURL:t,error:s}=l.O.storage.from("main").getPublicUrl(e);return s?"":r(t)},m=e=>a().enc.Base64.parse(e).toString(a().enc.Utf8),o=e=>a().enc.Base64.stringify(a().enc.Utf8.parse(e))},2480:function(){}},function(e){e.O(0,[259,354,836,751,888,774,179],function(){return e(e.s=1365)}),_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.