PageSourceSearch

https://assets.pinhome.id/pinhome-blog-v2/v1.39.1-production-5a4ec…/static/chunks/166-d5287f9874d6ec0e.js

js pinhome.id collected 2026-10-01 11:35:29 UTC 9,478 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[166],{451:(e,t,s)=>{"use strict";s.d(t,{bh:()=>l,Qo:()=>a,wc:()=>_});var i=s(6600);let a={fromPost:function(e){return e.map(e=>{var t,s,a;return{title:e.title,text:null==(t=e.seo)?void 0:t.metaDesc,image:(null==(a=e.featuredImage)||null==(s=a.node)?void 0:s.sourceUrl)||"",remark:"".concat(e.seo.readingTime," menit membaca"),date:e.date,link:i.I.article({slug:e.slug}),categories:e.categories.nodes}})}},l={fromPost:function(e){return e.categories.nodes.map(e=>e.name)}},_={fromPost:function(e){let t=e.categories.nodes.map(e=>{var t;let s=null==(t=e.parent)?void 0:t.node.slug,a=s?i.I.category(s,e.slug):i.I.category(e.slug);return{label:e.name,href:a}});return[{label:"Blog",href:i.I.home()},...t,{label:((null==e?void 0:e.title)||"-").replace(/(<([^>]+)>)/gi,"")}]},fromSubCategoryPath:function(e){let t=e.split("/").filter(Boolean).slice(2,4),s=t.map((e,s)=>{let a=0===s;return{label:e.replace(/-/g," "),href:i.I.category(a?e:t[0],a?"":e)}});return[{label:"Blog",href:i.I.home()},...s]},fromCategoryPath:function(e){let t=e.split("/").filter(Boolean).slice(2,3).map(e=>({label:e.replace(/-/g," "),href:i.I.category(e)}));return[{label:"Blog",href:i.I.home()},...t]},fromSearchPost:function(e){return[{label:"Blog",href:i.I.home()},{label:"Cari: ".concat(e),href:i.I.search(e)}]}}},2996:(e,t,s)=>{"use strict";s.d(t,{A:()=>K});var i=s(7876),a=s(4232),l=s(8103),_=s.n(l),r={tabs:"pin-tabs___11nqo",tabs_scrollable:"pin-tabs_scrollable___1qivn",tabs__item:"pin-tabs__item___syo6y","tabs_full-width":"pin-tabs_full-width___138al"};let n=({variant:e="full-width",activeValue:t,tabs:s,"aria-label":l,onChange:n})=>{let[o,c]=(0,a.useState)(t||s?.[0]?.value||"");(0,a.useEffect)(()=>{t&&c(t)},[t]);let m=(0,a.useCallback)((e,t,s)=>{s.stopPropagation(),c(e),"function"==typeof n&&n(e,t)},[n]);return(0,i.jsx)("div",{className:_()(r.tabs,[r[`tabs_${e}`]]),"aria-label":l,children:s.map((e,t)=>{let s=e.value===o;return(0,i.jsx)("button",{className:r.tabs__item,"data-index":t,"aria-selected":s,role:"tab",onClick:s=>m(e.value,t,s),children:e.label},`${e.value}-${t}`)})})};var o=s(8338),c=s(5258),m=s(7530),d=s(4587),u=s.n(d),p=s(8687);function h(e,t){if(!e)return"";let s=Date.parse(e),i=new Intl.DateTimeFormat("id-ID",{day:"numeric",month:"mobile"===t?"short":"long",year:"numeric"}).format(s);if(i){let e=i.split(" ");return"mobile"===t?"".concat(e[1]," ").concat(e[0],", ").concat(e[2]):i}return""}var f=s(8954),x=s.n(f);function g(e){let{categories:t}=e;return(0,i.jsx)("div",{className:x().list__item__category,children:t.map((e,s)=>(0,i.jsxs)("span",{className:x()[function(e){switch(e){case"Lifestyle":return"lifestyle";case"Berita Pinhome":return"news";case"Tips Properti":return"tips";case"Finansial":return"finance";default:return"unknown"}}(e.name)],children:[e.name,s!==t.length-1&&", "]},e.id))})}var w=s(6208),b=s.n(w);function j(e){let{article:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:b().list__item__image,children:(0,i.jsx)(u(),{src:t.image,alt:"imageUrl-".concat(t.title),width:379,height:219})}),(0,i.jsxs)("div",{className:b().list__item__info,children:[(0,i.jsx)(g,{categories:t.categories}),(0,i.jsx)("div",{className:b().list__item__title,children:(0,i.jsx)(p.A,{prefetch:!1,href:t.link,children:t.title})}),(0,i.jsx)("div",{className:b()["list__item__posted-date"],children:h(t.date,"desktop")})]})]})}var v=s(5268),y=s.n(v);function k(e){let{article:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{categories:t.categories}),(0,i.jsxs)("div",{className:y().list__item,children:[(0,i.jsxs)("div",{className:y().list__item__info,children:[(0,i.jsx)("div",{className:y().list__item__title,children:(0,i.jsx)(p.A,{prefetch:!1,href:t.link,children:t.title})}),(0,i.jsx)("div",{className:y().list__item__summary,children:t.text}),(0,i.jsxs)("div",{className:y()["list__item__post-meta"],children:[(0,i.jsx)("div",{className:y()["list__item__posted-date"],children:h(t.date,"mobile")}),(0,i.jsx)("span",{children:"."}),(0,i.jsx)("div",{className:y()["list__item__read-time"],children:t.remark})]})]}),(0,i.jsx)("div",{className:y().list__item__image,children:(0,i.jsx)(u(),{src:t.image,alt:"imageUrl-".concat(t.title),width:101,height:78})})]})]})}var N=s(4688),I=s.n(N);function D(e){let{list:t}=e,{isMobile:s}=(0,m.xv)();return(0,i.jsx)("div",{className:I().wrapper,children:(0,i.jsx)("div",{className:I().list__wrapper,children:t.map((e,t)=>(0,i.jsx)("div",{className:I().list__item__wrapper,children:s?(0,i.jsx)(k,{article:e}):(0,i.jsx)(j,{article:e})},"article-ke-".concat(t+1)))})})}
1var L=s(5553),C=s(8146),P=s(7170),F=s.n(P);function T(e){let{profile:t}=e,[s,l]=(0,a.useState)(!1),[_,r]=(0,a.useState)(!1),{isMobile:n}=(0,m.xv)();(0,a.useEffect)(()=>{let e=document.getElementById("author__description-truncated");l(+(null==e?void 0:e.scrollHeight)>+(null==e?void 0:e.clientHeight))},[]);let o=(0,a.useCallback)(()=>{r(e=>!e)},[]),c=(0,a.useCallback)(()=>{t.socialLink&&window.open(t.socialLink)},[t.socialLink]);return(0,i.jsxs)("div",{className:F().wrapper,children:[(0,i.jsxs)("div",{className:F().flex__wrapper,children:[(0,i.jsx)("div",{className:F().author__image,children:(0,i.jsx)(u(),{src:t.imageUrl,alt:"author-avatar",width:400,height:400})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{className:F().author__name,children:t.name}),(0,i.jsx)("h2",{className:F().author__position,children:t.position}),t.socialLink&&(0,i.jsx)("div",{className:F().author__social,children:(0,i.jsx)(L.K0,{appearance:"outline",icon:(0,i.jsx)(C.IFu,{}),size:"compact",title:"Linkedin Social",onClick:c})}),(0,i.jsx)("p",{className:F().author__description__desktop,children:t.description})]})]}),_?(0,i.jsx)("p",{className:F().author__description__mobile,children:t.description}):(0,i.jsx)("p",{className:F()["author__description__mobile-truncated"],id:"author__description-truncated",children:t.description}),s&&n&&(0,i.jsx)(L.C3,{onClick:o,children:_?"Lihat Lebih Sedikit":"Lihat Selengkapnya"})]})}var B=s(7328),S=s.n(B);function U(e){let{title:t,description:s}=e,a=t&&(0,i.jsx)("title",{children:t}),l=s&&(0,i.jsx)("meta",{name:"description",content:s});return(0,i.jsxs)(S(),{children:[a,l]})}var A=s(9349),Q=s.n(A);let E=[{label:"Artikel",value:"artikel"}];function q(e){let{authorInformation:t,posts:s}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(U,{title:t.metaTitle,description:t.metaDescription}),(0,i.jsxs)("div",{className:Q().wrapper,children:[(0,i.jsx)(T,{profile:t}),s.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:Q().tabs__wrapper,children:(0,i.jsx)(n,{tabs:E,variant:"scrollable"})}),(0,i.jsx)(D,{list:c.Qo.fromPost(s)})]})]})]})}q.getLayout=function(e){return(0,i.jsx)(o.A,{isSearchInputVisible:!1,children:e})};let K=q},4688:e=>{e.exports={wrapper:"styles_wrapper__7GPJ6",list__item__wrapper:"styles_list__item__wrapper__Cw7Gr",list__wrapper:"styles_list__wrapper__decwS"}},5258:(e,t,s)=>{"use strict";s.d(t,{mt:()=>i.m,ID:()=>l.I,bh:()=>_.bh,Qo:()=>_.Qo,wc:()=>_.wc,UK:()=>r,LR:()=>a.L,sl:()=>a.s});var i=s(9017);s(3441);var a=s(7286),l=s(6600),_=s(451);function r(e){let t="",s=function(){return encodeURI(l.I.article({slug:e}))};return{sharePostToTwitter:function(e){t="https://twitter.com/intent/tweet?text=".concat(null==e?void 0:e.text,"&url=").concat(s()),window.open(t)},sharePostToFacebook:function(){t="https://www.facebook.com/sharer/sharer.php?u=".concat(s()),window.open(t)},sharePostToLine:function(){t="line://msg/text/".concat(s()),window.open(t)},sharePostToWhatsapp:function(){t="https://api.whatsapp.com/send?text=".concat(s()),window.open(t)}}}},5268:e=>{e.exports={list__item:"styles_list__item__5hkTC",list__item__title:"styles_list__item__title__sUIOA",list__item__summary:"styles_list__item__summary__ghN3M","list__item__post-meta":"styles_list__item__post-meta__sHWA_",list__item__image:"styles_list__item__image__9koRx"}},6208:e=>{e.exports={list__item__image:"styles_list__item__image__aD6wd",list__item__info:"styles_list__item__info__cKwZI",list__item__category:"styles_list__item__category__xFiuo",list__item__title:"styles_list__item__title__QkW8c","list__item__posted-date":"styles_list__item__posted-date__RsLm0"}},7170:e=>{e.exports={wrapper:"styles_wrapper__U6Uda",flex__wrapper:"styles_flex__wrapper__p0hrn",author__image:"styles_author__image__QbOye",author__name:"styles_author__name__0emvN",author__position:"styles_author__position__41Wwr",author__description__mobile:"styles_author__description__mobile__VB7qj","author__description__mobile-truncated":"styles_author__description__mobile-truncated__mMcz4",author__description__desktop:"styles_author__description__desktop__1Buyd"}},7286:(e,t,s)=>{"use strict";s.d(t,{L:()=>a,s:()=>i});let i=e=>{let t=new Date(e),s=new Intl.DateTimeFormat("id-ID",{month:"short"}).format(t);return"".concat(s," ").concat(t.getDate(),", ").concat(t.getFullYear())},a=e=>{let t=new Date(e),s=new Intl.DateTimeFormat("id-ID",{month:"long"}).format(t);return"".concat(t.getDate()," ").concat(s," ").concat(t.getFullYear())}},8228:(e,t,s)=>{"use strict";function i(e){let{src:t}=e;return t}s.r(t),s.d(t,{default:()=>i})},8954:e=>{e.exports={list__item__category:"styles_list__item__category__I7DLC",lifestyle:"styles_lifestyle__39U4D",tips:"styles_tips__ZZnqj",unknown:"styles_unknown__Ma0u_",news:"styles_news__6eKNE",finance:"styles_finance__uqpnw"}},9349:e=>{e.exports={wrapper:"styles_wrapper__5Lm_t",tabs__wrapper:"styles_tabs__wrapper__T_MQ4"}}}]);

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.