PageSourceSearch

https://rekayasa-sipil.my.id/_next/static/chunks/pages/author/[slug]/favorites-7b9c2aa46e1b27e9.js

js rekayasa-sipil.my.id collected 2026-10-07 11:11:25 UTC 7,124 bytes, 28 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5503],{25376:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/author/[slug]/favorites",function(){return t(33248)}])},690:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});var s=t(85893),a=t(24433),n=t(64709);let l=e=>{let{className:r,loading:t,children:l,...o}=e,i=(0,a.Z)();return(0,s.jsxs)("button",{type:"button",className:`inline-flex items-center justify-center rounded bg-indigo-50 px-2.5 py-1 text-sm font-medium text-indigo-600 shadow-sm hover:bg-indigo-100 dark:bg-indigo-200 dark:hover:bg-indigo-100 ${r}`,disabled:t||o.disabled,...o,children:[(0,s.jsx)(n.Z,{className:"-ml-0.5 mr-1.5 h-4 w-4","aria-hidden":"true"}),t?i["Loading ..."]:i.Refetch]})};var o=e=>{let{className:r="text-center my-5",error:t,hasRefetchBtn:n=!0,loading:o,refetch:i}=e;if(!t)return null;let d=(0,a.Z)(),c=d["Something went wrong"],u=d["Please try again later"];if(t?.networkError)c=d["Network error"],u=t?.networkError.message;else if(t?.graphQLErrors?.length){let e=t?.graphQLErrors[0];c=d["GraphQL error"],u=e?.message||d["Please try again later"]}else u=t?.message||d["Please try again later"];return(0,s.jsxs)("div",{className:r,children:[(0,s.jsx)("svg",{className:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1,stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})}),(0,s.jsx)("h3",{className:"mt-2 text-sm font-medium",children:c||d["Something went wrong"]}),(0,s.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-neutral-400",children:u||d["Please try again later"]}),!!n&&(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(l,{disabled:o,onClick:()=>i?.()})})]})}},38546:function(e,r,t){"use strict";t.d(r,{Z:function(){return x}});var s=t(85893),a=t(23040),n=t(70563),l=t(50831),o=e=>{let{className:r="h-full",ratio:t="aspect-w-4 aspect-h-3"}=e;return(0,s.jsxs)("div",{className:`nc-Card11 group relative flex flex-col overflow-hidden rounded-3xl bg-white dark:bg-neutral-900 ${r}`,children:[(0,s.jsx)("div",{className:`relative z-10 block w-full flex-shrink-0 overflow-hidden rounded-t-3xl ${t}`,children:(0,s.jsx)("div",{children:(0,s.jsx)(n.Z,{width:"100%",height:"100%",containerClassName:"absolute inset-0 leading-none"})})}),(0,s.jsxs)("div",{className:"flex flex-col space-y-3 p-4",children:[(0,s.jsx)(n.Z,{width:"60%"}),(0,s.jsx)("h3",{className:"nc-card-title block text-base font-semibold text-neutral-900 dark:text-neutral-100",children:(0,s.jsx)(n.Z,{})}),(0,s.jsx)(l.Z,{})]})]})},i=t(64836),d=t(22789),c=t(24433),u=t(56105),m=t(95019),g=t(904);let h=(0,c.Z)();var x=e=>{let{className:r="",posts:t,loading:n,onClickLoadmore:l,showLoadmore:c,showNextPagination:x,showPrevPagination:f,onClickNext:p,onClickPrev:j}=e;return(0,s.jsxs)("div",{className:r,children:[t?.length||n?(0,s.jsx)("div",{className:"mt-8 grid gap-6 sm:grid-cols-2 md:gap-x-7 md:gap-y-8 lg:mt-12 lg:grid-cols-3 xl:grid-cols-4",children:!t?.length&&n?[1,1,1,1,1,1,1,1].map((e,r)=>(0,s.jsx)(o,{},r)):(t||[]).map(e=>(0,s.jsx)(i.Z,{post:e},e.databaseId))}):(0,s.jsx)(a.Z,{}),c?(0,s.jsx)("div",{className:"mt-12 flex justify-center lg:mt-14",children:(0,s.jsx)(d.Z,{loading:n,onClick:l,children:h["Show me more"]})}):null,x||f?(0,s.jsxs)("div",{className:"mt-12 flex justify-center gap-4 lg:mt-14",children:[(0,s.jsxs)(g.Z,{pattern:"third",loading:n,onClick:j,disabled:!f,children:[(0,s.jsx)(u.Z,{className:"me-2 h-5 w-5 rtl:rotate-180"}),h.Prev]}),(0,s.jsxs)(g.Z,{pattern:"third",loading:n,onClick:p,disabled:!x,children:[h.Next,(0,s.jsx)(m.Z,{className:"ms-2 h-5 w-5 rtl:rotate-180"})]})]}):null]})}},33248:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSG:function(){return Z},default:function(){return _}});var s=t(85893),a=t(45374),n=t(67294),l=t(54717),o=t(23849),i=t(81372),d=t(6812),c=t(11163),u=t(40168),m=t(38714),g=t(6772),h=t(51360),x=t(75802),f=t(38546),p=t(20762),j=t(3383),N=t(84557),v=t(45007),w=t(690),b=t(8532),y=e=>{let{user:r}=e.data||{},{name:t,ncUserMeta:a}=(0,g.L)(r||{}),{viewer:l}=(0,v.v9)(e=>e.viewer),y=(0,c.useRouter)().query.slug,k=e.data?.categories?.nodes||[],[Z,_]=n.useState(0),L=y!==l?.slug,{loading:I,data:E,refetch:F,error:S,fetchMore:C}=(0,d.aM)(m.FZ,{notifyOnNetworkStatusChange:!0,skip:!y,context:{fetchOptions:{method:"GET"}},fetchPolicy:L?"cache-first":"cache-and-network",variables:{first:20,inUserAndReaction:y+"/LIKE"},onError:e=>{if(Z>3){(0,p.Z)(e);return}_(Z+1),F()}}),M=E?.posts?.nodes||[],P=E?.posts?.pageInfo?.hasNextPage||!1;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(h.Z,{headerMenuItems:e.data?.primaryMenuItems?.nodes||[],footerMenuItems:e.data?.footerMenuItems?.nodes||[],pageFeaturedImageUrl:x.j(a?.featuredImage?.node)?.sourceUrl||null,pageTitle:t,generalSettings:e.data?.generalSettings,children:(0,s.jsx)(j.Z,{user:r||{},children:(0,s.jsxs)("div",{className:"container space-y-16 py-16 lg:space-y-28 lg:pb-28 lg:pt-20",children:[(0,s.jsxs)("main",{children:[(0,s.jsxs)("div",{className:"flex flex-col border-neutral-200 sm:flex-row sm:items-center sm:justify-between sm:border-b dark:border-neutral-600",children:[(0,s.jsx)(N.Z,{currentTab:"favorites"}),(0,s.jsx)("div",{className:"mb-4 block w-full border-b border-neutral-300 sm:hidden dark:border-neutral-500"})]}),!!S&&(0,s.jsx)("div",{className:"mt-8 lg:mt-12",children:(0,s.jsx)(w.Z,{error:S,refetch:F,loading:I})}),(0,s.jsx)(f.Z,{posts:M,loading:I,showLoadmore:P,onClickLoadmore:()=>{!I&&E?.posts?.pageInfo?.hasNextPage&&C({variables:{after:E?.posts?.pageInfo?.endCursor},updateQuery:(e,r)=>{let{fetchMoreResult:t}=r;return(0,u.Z)(e,t)}})}})]}
1),b.NC_SITE_SETTINGS.author_page?.show_top_categories&&(0,s.jsx)(i.default,{categories:k}),b.NC_SITE_SETTINGS.author_page?.show_newsletter_section&&(0,s.jsx)(o.default,{})]})})})})};let k=e=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(y,{...e||{}})});k.variables=e=>{let{params:r}=e;return{id:r?.slug,headerLocation:l.q,footerLocation:l.N}},k.query=(0,a.Ps)(`
2  query PageAuthorFavoritesGetData($id: ID!, $headerLocation: MenuLocationEnum!, $footerLocation: MenuLocationEnum!) {
3    user(id: $id, idType: SLUG) {
4      ...NcmazFcUserFullFields
5    }
6    categories(first:10, where: { orderby: COUNT, order: DESC }) {
7      nodes {
8        ...NcmazFcCategoryFullFieldsFragment
9      }
10    }
11    # common query for all page 
12   generalSettings {
13      ...NcgeneralSettingsFieldsFragment
14    }
15    primaryMenuItems: menuItems(where: { location:  $headerLocation  }, first: 80) {
16      nodes {
17        ...NcPrimaryMenuFieldsFragment
18      }
19    }
20    footerMenuItems: menuItems(where: { location:  $footerLocation  }, first: 50) {
21      nodes {
22        ...NcFooterMenuFieldsFragment
23      }
24    }
25    # end common query for all page
26  }
27`);var Z=!0,_=k}},function(e){e.O(0,[6342,3195,7750,4543,8250,9026,4745,2510,8134,3078,6201,5464,2888,9774,179],function(){return e(e.s=25376)}),_N_E=e.O()}]);
28//# sourceMappingURL=favorites-7b9c2aa46e1b27e9.js.map

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.