1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6527],{53371:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/campaign/[slug]/latest-news",function(){return n(92018)}])},92018:function(e,a,n){"use strict";n.r(a),n.d(a,{__N_SSP:function(){return C},default:function(){return q}});var t=n(11527),r=n(64962),s=n(50959),i=n(35425),l=n.n(i),o=n(89133),c=n(69854),d=n(24341),u=n.n(d),h=n(30370),x=n.n(h),m=n(8883),g=n.n(m),p=n(77662),f=n(1769),b=n(60252),v=n(75474),y=n(7453),w=n(27964),j=l()({loader:()=>n.e(6370).then(n.bind(n,6370)),ssr:!1},{loadableGenerated:{webpack:()=>[6370]}}),k=e=>{var a,n,i,l,d,h=(0,w.useRouter)(),m=(0,f.useSearchParams)(),{data:k}=(0,y.ly)({slug:null!==(l=m.get("slug"))&&void 0!==l?l:""}),N=null!==(d=null==k?void 0:null===(n=k.campaign)||void 0===n?void 0:null===(i=n.updates)||void 0===i?void 0:i.totalCount)&&void 0!==d?d:0,_=(a=(0,r.Z)(function*(a){var{pageParam:n=""}=a;return yield(0,v.zs)(e.id,n)}),function(e){return a.apply(this,arguments)}),{isLoading:C,isError:q,data:K,hasNextPage:Z,fetchNextPage:F}=(0,b.N)({queryKey:["latest-news-list-".concat(m.get("slug"))],queryFn:_,getNextPageParam:e=>e.next?e.next:null,staleTime:6e4});return(0,s.useEffect)(()=>{u().extend(x())},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Z,{variant:"icon",color:"red",onClick:h.back,children:(0,t.jsxs)("span",{className:"overflow-hidden text-ellipsis text-base font-semibold capitalize",children:["Updates ",N>0&&"(".concat(N,")")]})}),(0,t.jsx)(c.Z,{children:(0,t.jsx)(g(),{pageStart:0,loadMore:F,hasMore:Z,loader:(0,t.jsx)(p.$,{},0),useWindow:!0,children:(0,t.jsx)(j,{data:K,isLoading:C,isError:q,hasNextPage:Z})})})]})},N=n(35884),_=n(38027),C=!0,q=e=>{var a,n,{data:r,isLoading:s}=(0,y.ly)({slug:e.slug}),i=null==r?void 0:r.campaign;return s?(0,t.jsx)(_.q,{}):(null==i?void 0:null===(a=i.parent_campaign)||void 0===a?void 0:a.id)>0?(0,t.jsx)(N.Lm,{parentLink:"/campaign/".concat(null===(n=i.parent_campaign)||void 0===n?void 0:n.id)}):(0,t.jsx)(k,{id:e.id})}},69854:function(e,a,n){"use strict";var t=n(11527);n(50959);var r=n(40507),s=n.n(r),i=e=>(0,t.jsx)("main",{style:e.style,className:"relative mt-0 mb-0 ml-auto mr-auto box-border min-h-[calc(100vh-15px)] w-full bg-white p-[16px]",children:e.children});i.propTypes={id:s().string,padding:s().string,style:s().shape({}),children:s().node},i.defaultProps={padding:"10px 16px"},a.Z=i},77662:function(e,a,n){"use strict";n.d(a,{$:function(){return c},Z:function(){return d}});var t=n(11527);n(50959);var r=n(79228),s=n(2206);function i(){var e=(0,r.Z)(["\n width: ","px;\n "]);return i=function(){return e},e}function l(){var e=(0,r.Z)(["\n ","\n margin: 0 auto;\n padding: 20px;\n text-align: center;\n\n .spinner {\n animation: rotate 1.4s linear infinite;\n -webkit-animation: rotate 1.4s linear infinite;\n -moz-animation: rotate 1.4s linear infinite;\n width: 32px;\n height: 32px;\n position: relative;\n display: inline-block;\n }\n\n @keyframes rotate {\n to {\n transform: rotate(360deg);\n }\n }\n\n @-webkit-keyframes rotate {\n to {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @-moz-keyframes rotate {\n to {\n transform: rotate(360deg);\n }\n }\n\n .path {\n stroke-dasharray: 170;\n stroke-dashoffset: 20;\n }\n"]);return l=function(){return e},e}var o=s.ZP.div.withConfig({displayName:"style__SpinnerWrapper",componentId:"sc-__sc-4e53bd2e-0"})(l(),e=>e.width&&(0,s.iv)(i(),e=>e.width)),c=e=>{var{width:a=200}=e;return(0,t.jsx)(o,{width:a,children:(0,t.jsxs)("svg",{className:"spinner",width:"32px",height:"32px",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{className:"path",fill:"transparent",strokeWidth:"2",cx:"33",cy:"33",r:"30",stroke:"url(#gradient)"}),(0,t.jsxs)("linearGradient",{id:"gradient",children:[(0,t.jsx)("stop",{offset:"50%",stopColor:"#00aeef",stopOpacity:"1"}),(0,t.jsx)("stop",{offset:"65%",stopColor:"#00aeef",stopOpacity:".5"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#00aeef",stopOpacity:"0"})]})]})})},d=c},89133:function(e,a,n){"use strict";n.d(a,{Z:function(){return d}});var t=n(11527);n(50959);var r="fixed top-0 left-0 z-10 flex flex-row min-w-full",s={red:"".concat(r," text-white"),white:"".concat(r," bg-white"),transparent:"".concat(r," bg-gradient-to-b from-[#3A3A3A] to-white")},i={red:{height:"60px",backgroundColor:"#AB1313"},white:{height:"60px",color:"#3a3a3a"},transparent:{height:"60px",color:"#ffffff"}},l=e=>s[e],o=e=>i[e],c=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"16px",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})}),d=e=>{var{children:a,color:n="red",variant:r,actionComponent:s,withSearchBar:i,onClick:d,iconComponent:u,testId:h}=e;return(0,t.jsx)("header",{className:l(n),style:o(n),children:(0,t.jsxs)("div",{className:"mx-auto flex items-center px-3",style:{width:"480px"},children:[i&&"logo"===r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:d,children:(0,t.jsx)("img",{className:"mr-3.5 h-6 w-6",src:{red:"https://assets.kitabisa.cc/images/logos/logogram__ktbs_white.png",white:"https://assets.kitabisa.cc/images/logos/logogram__ktbs_blue.svg",transparent:""}[n]})}),"red"===n&&(0,t.jsx)("div",{className:"text-12px mr-4 flex h-9 w-full items-center justify-between rounded-3xl border-none bg-[#1bbaf5] px-4 text-sm text-white focus:outline-none",onClick:d,children:(0,t.jsx)("span",{children:"Cari yang ingin kamu bantu"})}),"white"===n&&(0,t.jsx)("input",{className:" text-14px mr-4 flex h-9 w-full items-center justify-between border-none px-4 text-sm focus:outline-none",autoFocus:!0,t
1ype:"search",placeholder:"Cari yang ingin kamu bantu"})]}),!i&&"logo"===r&&(0,t.jsx)("button",{onClick:d,children:(0,t.jsx)("img",{className:"mr-3.5 h-4",src:{red:"https://assets.kitabisa.cc/images/logos/logo__ktbs-white-no-icon.png",white:"https://assets.kitabisa.cc/images/logos/logo__ktbs-blue-no-icon.svg",transparent:""}[n]})}),"icon"===r&&u&&u,"icon"===r&&!u&&(0,t.jsx)("button",{className:"mr-5 border-none leading-none focus:outline-none active:outline-none",onClick:d,"data-testid":h,children:c}),"icon"===r&&"transparent"!==n&&a&&(0,t.jsx)("div",{className:"truncate",children:a}),!i&&s&&s.length&&(0,t.jsx)("div",{className:"ml-auto flex",children:s.map((e,a)=>(0,t.jsx)("div",{className:"ml-3",children:e},a))})]})})}},38027:function(e,a,n){"use strict";n.d(a,{q:function(){return s}});var t=n(11527),r=n(19201),s=()=>(0,t.jsxs)(r.ZP,{uniqueKey:"latest-news-loader",speed:2,width:"100%",height:1e3,backgroundColor:"#F2F3F4",foregroundColor:"#ecebeb",className:"p-3",children:[(0,t.jsx)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"70%",height:"40"}),(0,t.jsx)("rect",{x:"0",y:"50",rx:"4",ry:"4",width:"100%",height:"100"}),(0,t.jsx)("rect",{x:"0",y:"160",rx:"4",ry:"4",width:"100%",height:"200"}),(0,t.jsx)("rect",{x:"0",y:"370",rx:"4",ry:"4",width:"70%",height:"40"}),(0,t.jsx)("rect",{x:"0",y:"420",rx:"4",ry:"4",width:"100%",height:"100"}),(0,t.jsx)("rect",{x:"0",y:"530",rx:"4",ry:"4",width:"100%",height:"300"})]})},35884:function(e,a,n){"use strict";n.d(a,{CS:function(){return x},HY:function(){return y},Lm:function(){return v},lk:function(){return o},qm:function(){return w.q}});var t=n(38257),r=n(92776),s=n(65922),i=n(11527);n(50959);var l=e=>{var{as:a,children:n}=e,l=(0,s.Z)(e,["as","children"]);return(0,i.jsx)(a||"span",(0,r.Z)((0,t.Z)({},l),{children:n}))},o=e=>{var{children:a}=e;return(0,i.jsx)("div",{className:"space-y-3 py-4",children:a})},c=n(60029),d=n(77575),u=n(24341),h=n.n(u),x=e=>{var{imgUrl:a,alt:n,name:t,title:r,description:s="",time:o}=e;return(0,i.jsxs)("div",{className:"border-b border-davy",children:[(0,i.jsxs)("div",{className:"flex items-center pt-3 pb-6",children:[(0,i.jsx)(c.Z,{size:"xs",src:a,alt:n}),(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(l,{className:"text-sm font-normal text-mineshaft80",children:t}),(0,i.jsx)(l,{className:"text-sm font-normal text-tundora",children:o?h().unix(o).fromNow():null})]})]}),(0,i.jsxs)("div",{className:"flex flex-col space-y-[16px]",children:[(0,i.jsx)(l,{as:"h1",className:"text-base font-semibold text-mineshaft80",children:r}),(0,i.jsx)("div",{className:"wysiwyg z-10 text-body font-normal text-mineshaft80",dangerouslySetInnerHTML:{__html:(0,d.b)(s)}})]})]})};n(55855);var m=n(1769);n(94345);var g=n(79643),p=n.n(g),f=n(91909),b=n(27964),v=e=>{var{parentLink:a}=e,n=(0,b.useRouter)();return(0,i.jsxs)("main",{style:{paddingTop:60},className:"relative my-0 mx-auto min-h-screen max-w-480 overflow-x-hidden bg-white",children:[(0,i.jsx)(f.Z,{variant:"icon",color:"blue",onClick:n.back,children:(0,i.jsx)("div",{className:"flex items-center justify-between",children:(0,i.jsx)("h1",{className:"text-base font-semibold",children:"Kabar Terbaru"})})}),(0,i.jsx)("div",{className:"absolute top-[50%] left-[50%] w-10/12 translate-x-[-50%] translate-y-[-50%] p-[14px]",children:(0,i.jsxs)("div",{className:"w-full space-y-4",children:[(0,i.jsx)("img",{className:"mx-auto",src:"https://assets.kitabisa.cc/images/illustrations/illustration_pencairan-fundraiser.svg",alt:"fundraiser-page-illustration"}),(0,i.jsx)("h4",{className:"mx-auto w-[296px] text-center text-base font-bold text-mineshaft80",children:"Kabar Terbaru dilaporkan oleh penggalangan dana induk"}),(0,i.jsx)("p",{className:"text-center text-body text-tundora",children:"Ini adalah penggalangan dana fundraiser yang membantu penggalangan dana induk. Kamu bisa melihat kabar terbaru di halaman penggalangan dana induk."}),(0,i.jsx)(p(),{className:"block rounded-lg border bg-cerulean50 p-4 text-center text-body font-bold text-white",href:a,children:"Lihat penggalangan dana induk"})]})})]})},y=e=>{var{error:a}=e,n=(0,m.useSearchParams)();return(0,i.jsxs)("div",{className:"absolute top-[50%] left-[50%] w-full translate-x-[-50%] translate-y-[-50%] p-6",children:[(0,i.jsxs)("div",{className:"w-full space-y-4",children:[(0,i.jsx)("img",{className:"mx-auto",src:"https://assets.kitabisa.cc/images/illustrations/illustration_kabar-terbaru-empty.svg",alt:"empty-illustration"}),(0,i.jsx)(l,{as:"h4",className:"mx-auto w-[256px] text-center text-body font-normal text-[#989898]",children:a?"Maaf, terjadi kesalahan. Cobalah beberapa saat lagi.":"Belum ada kabar terbaru penggalangan dana ini"}),a&&(0,i.jsx)("button",{className:"w-full rounded-sm border border-cerulean50 p-4 text-body font-semibold text-cerulean50",onClick:()=>{},children:"Coba Lagi"})]}),!a&&(0,i.jsx)("div",{className:"mt-4 rounded-sm bg-skull p-3",children:(0,i.jsxs)(l,{as:"div",className:"text-xs",children:[(0,i.jsx)("strong",{children:"Disclaimer"}),": Informasi, opini dan foto yang ada di halaman galang dana ini adalah milik dan tanggung jawab pengalang dana. Jika ada masalah/kecurigaan silhkan",(0,i.jsx)(l,{className:"pl-1",as:"a",href:"/campaign/".concat(n.get("slug"),"/report-abuse"),children:"lapor kepada kami disini."})]})})]})},w=n(38027)}
1,7453:function(e,a,n){"use strict";n.d(a,{F2:function(){return d},JJ:function(){return l},Kp:function(){return i},M8:function(){return c},ij:function(){return o},ly:function(){return s}});var t=n(11487),r=n(75474),s=e=>{var{slug:a,staleTime:n,refetchInteval:s,enabled:i=!0}=e;return(0,t.a)({queryKey:["campaign",a],queryFn:()=>(0,r.J0)(a),staleTime:6e5|n,refetchInterval:6e5|s,enabled:i})},i=e=>{var{campaignIds:a}=e;return(0,t.a)({queryKey:["campaign-by-ids",(a||[]).join(",")],queryFn:()=>(0,r.N2)(a),refetchOnWindowFocus:!1,staleTime:1/0})},l=e=>(0,t.a)({queryKey:["campaign-published-details",e],queryFn:()=>(0,r.J0)(e),staleTime:6e5}),o=e=>{var{campaignId:a,sortBy:n,nextToken:s,staleTime:i,refetchInteval:l}=e;return(0,t.a)({queryKey:["campaign-donations",a,n,s],queryFn:()=>(0,r.GA)(a,n,s),enabled:!!a,staleTime:i||6e5,refetchInterval:l||6e5,keepPreviousData:!0})},c=e=>{var{campaignId:a,enabled:n=!0}=e;return(0,t.a)({queryKey:["donation-info",a],queryFn:()=>(0,r.k3)(a),enabled:!!a&&n,staleTime:1/0,refetchInterval:!1})},d=e=>{var{campaignId:a,nextToken:n}=e;return(0,t.a)({queryKey:["campaign-updates",a,n],queryFn:()=>(0,r.XU)(a,n),enabled:!!a,keepPreviousData:!0})}},91807:function(e,a,n){"use strict";n.d(a,{s:function(){return u}});var t=n(62950),r=n(24341),s=n.n(r),i=n(71947),l=n.n(i),o=n(2447),c=n.n(o),d=n(69430),u=function(){var{clientName:e="kanvas",platformName:a="pwa",secretKey:n=d.Cn}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,t.Z)(),i=s()().unix(),o=c().stringify(l()("".concat(e).concat(i),n));return{"X-Ktbs-Request-ID":r,"X-Ktbs-Api-Version":"1.0.0","X-Ktbs-Client-Version":"1.0.0","X-Ktbs-Platform-Name":a,"X-Ktbs-Client-Name":e,"X-Ktbs-Signature":o,"X-Ktbs-Time":"".concat(i)}}},77575:function(e,a,n){"use strict";n.d(a,{D:function(){return r},b:function(){return t}});var t=e=>e.replace(/<img\s/g,'<img loading="lazy" decoding="async" fetchpriority="low" width="auto" height="auto" ').replace(/<iframe\s/g,'<iframe loading="lazy" ').replace(/@import\surl\(+.+\);/g,"").replace(/font-family:[a-zA-Z0-9,'-\s]+;/g,""),r=e=>e.replace(/<img\s/g,'<img loading="lazy" decoding="async" fetchpriority="low" width="480" height="100%" ').replace(/<iframe\s/g,'<iframe loading="lazy" ')},91054:function(){}},function(e){e.O(0,[4920,9643,6885,3595,3289,1487,8655,5292,5474,9774,2888,179],function(){return e(e.s=53371)}),_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.