1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7800],{9509:function(e,t,s){"use strict";s.d(t,{aA:function(){return listPosts}});var a=s(8988),i=s(9675),n=s(7825);let o=i.ZPm.enum(["article","video","slideshow"]),l=i.ZPm.object({caption:i.ZPm.string().default(""),credit:i.ZPm.string().default("")}),r=(0,n.vO)(l),c=i.ZPm.object({status:i.ZPm.string(),post_type:o,author_id:i.ZPm.string(),title:i.ZPm.string(),content:i.ZPm.string(),categories:i.ZPm.array(i.ZPm.string()),tags:i.ZPm.array(i.ZPm.string()),display_photo:i.ZPm.file(),publish_date:i.ZPm.date().default(()=>new Date),slideshow_images:i.ZPm.array(i.ZPm.file()).nullish(),slideshow_meta:i.ZPm.array(r).nullish(),video_url:i.ZPm.string().nullish(),video_length:i.ZPm.number().nullish(),is_commentable:i.ZPm.boolean().default(!0),is_ad:i.ZPm.boolean().default(!1)});async function listPosts(e){return(await (0,a.Z)({method:"GET",url:"/v1/post",params:e,headers:{Accept:"application/json"}})).data}(0,n.y4)(c,{decode(e){let t=e.get("publish_date");return{status:e.get("status"),post_type:e.get("post_type"),author_id:e.get("author_id"),title:e.get("title"),content:e.get("content"),categories:e.getAll("categories"),tags:e.getAll("tags"),display_photo:e.get("display_photo"),publish_date:"string"==typeof t?new Date(t):new Date,video_url:e.get("video_url"),video_length:Number.parseInt(e.get("video_length"),10)||null,slideshow_images:e.getAll("slideshow_images"),slideshow_meta:e.getAll("slideshow_meta"),is_ad:(0,n.Xg)(e.get("is_ad")),is_commentable:(0,n.Xg)(e.get("is_commentable"))}},encode(e){var t,s,a;let i=new FormData;for(let t of(i.set("status",e.status),i.set("post_type",e.post_type),i.set("author_id",e.author_id),i.set("title",e.title),i.set("content",e.content),e.categories))i.append("categories",t);for(let t of e.tags)i.append("tags",t);i.set("display_photo",e.display_photo);let o=null!==(t=e.publish_date)&&void 0!==t?t:new Date;if(i.set("publish_date",o.toISOString()),(0,n.XB)(i,"video_url",e.video_url),null!=e.video_length&&i.set("video_length",e.video_length.toString()),null!=e.slideshow_images)for(let t=0;t<e.slideshow_images.length;t++){let n=e.slideshow_images[t],o=null!==(a=null===(s=e.slideshow_meta)||void 0===s?void 0:s[t])&&void 0!==a?a:r.encode({caption:"",credit:""});i.append("slideshow_images",n),i.append("slideshow_meta",o)}return i.set("is_ad",n.Xg.str(e.is_ad)),i.set("is_commentable",n.Xg.str(e.is_commentable)),i}});let d=i.ZPm.object({status:i.ZPm.string(),post_type:o,title:i.ZPm.string(),content:i.ZPm.string(),display_photo:i.ZPm.file().or(i.ZPm.string()),categories:i.ZPm.array(i.ZPm.string()),tags:i.ZPm.array(i.ZPm.string()),publish_date:i.ZPm.date(),video_url:i.ZPm.string().nullish(),video_length:i.ZPm.number().nullish(),slideshow_images:i.ZPm.array(i.ZPm.file().or(i.ZPm.string())).optional(),slideshow_meta:i.ZPm.array(r).optional(),is_ad:i.ZPm.boolean(),is_commentable:i.ZPm.boolean()});(0,n.y4)(d,{decode(e){let t=e.get("publish_date");return{status:e.get("status"),post_type:e.get("post_type"),title:e.get("title"),content:e.get("content"),display_photo:e.get("display_photo"),categories:e.getAll("categories"),tags:e.getAll("tags"),publish_date:"string"==typeof t?new Date(t):new Date,video_url:e.get("video_url"),video_length:Number.parseInt(e.get("video_length"),10)||null,slideshow_images:e.getAll("slideshow_images"),slideshow_meta:e.getAll("slideshow_meta"),is_ad:(0,n.Xg)(e.get("is_ad")),is_commentable:(0,n.Xg)(e.get("is_commentable"))}},encode(e){let t=new FormData;for(let s of(t.set("status",e.status),t.set("post_type",e.post_type),t.set("title",e.title),t.set("content",e.content),t.set("display_photo",e.display_photo),e.categories))t.append("categories",s);for(let s of e.tags)t.append("tags",s);return t.set("publish_date",e.publish_date.toISOString()),(0,n.XB)(t,"video_url",e.video_url),null!=e.video_length&&t.set("video_length",e.video_length.toString()),t.set("is_ad",String(e.is_ad)),t.set("is_commentable",String(e.is_commentable)),t}})},6901:function(e,t,s){"use strict";s.d(t,{J:function(){return PageContent_PageContent}});var a=s(1549),i=s(3274),n=s.n(i),o=s(1250),l=s.n(o);let r="<html><head></head><body>",c="</body></html>",d={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">"},_=/&(nbsp|amp|quot|lt|gt);/g,replacer=(e,t)=>{var s;return null!==(s=d[t])&&void 0!==s?s:""};
1var PageContent_PageContent=function(e){let{content:t,className:s="",ad:i,after:o}=e,d=function(e,t){e.startsWith(r)&&e.endsWith(c)&&(e=e.slice(r.length,-c.length)),e=e.replace(_,replacer);let s=!1;if(t){let t=e.split("<p>");(s=t.length>3)&&(t[2]+='<div class="'.concat(l().sh_container,'"><span>advertisement</span><div id="showheroes-wrapper"></div></div>'),e=t.join("</p>"))}return{has_ad:s,content:e}}(t,(null==i?void 0:i.zid)!==void 0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n(),{async:!0,src:"https://platform.twitter.com/widgets.js"}),(0,a.jsx)(n(),{async:!0,src:"https://www.tiktok.com/embed.js"}),(0,a.jsx)(n(),{async:!0,src:"https://www.instagram.com/embed.js"}),(0,a.jsx)(n(),{async:!0,defer:!0,src:"https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"}),d.has_ad&&(0,a.jsx)(n(),{async:!0,src:"https://content.viralize.tv/display/?zid=".concat(i.zid,"&u=").concat(i.url)}),(0,a.jsx)("div",{className:s,dangerouslySetInnerHTML:{__html:d.content}}),o]})}},3901:function(e,t,s){"use strict";var a=s(1549),i=s(897),n=s(1001),o=s(17),l=s.n(o),r=s(4152),c=s(4194),d=s(9539),_=s(4963),p=s(5877),g=s.n(p);t.Z=function(e){let{data:t,mini:s,className:o,destination:p="post"}=e,m=(0,r.useRouter)(),[h]=(0,c.useState)(t);return(0,a.jsxs)("div",{className:"".concat(o," ").concat(s?g().mini:""," ").concat(g().container," "),children:[(0,a.jsx)(l(),{href:"/".concat(p,"/").concat(h.slug),children:(0,a.jsxs)("div",{className:"".concat(o," ").concat(s?g().mini:""," ").concat(g().wrapper," "),children:[(0,a.jsx)(i.c,{src:h.displayPhoto,className:g().imageWrapper}),(0,a.jsxs)("div",{className:g().contentDetails,children:[(0,a.jsx)("div",{className:g().title,children:h.title}),(0,a.jsx)("div",{className:g().date,children:(0,n.Z)(new Date(h.publishDate),"MMMM d, yyyy")}),(0,a.jsx)("div",{className:g().excerpt,children:h.excerpt})]}),(()=>{if("video"===h.postType){var e,t;let s;return(0,a.jsxs)("div",{className:g().metaContainer,style:{backgroundColor:"rgba(0, 0, 0, 0.3)"},children:[(0,a.jsx)(d.RLq,{className:g().icon}),(0,a.jsx)("span",{children:(s=Math.floor((t=null!==(e=Number(h.videoLength))&&void 0!==e?e:0)/60),"".concat(String(s).padStart(2,"0"),":").concat(String(t-60*s).padStart(2,"0")))})]})}return"slideshow"===h.postType?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:g().metaContainer,style:{backgroundColor:"rgba(0, 0, 0, 0.3)"},children:[(0,a.jsx)(_.rKQ,{className:g().icon}),(0,a.jsxs)("span",{children:[h.slideshowLength," ","photos"]})]})}):(0,a.jsx)("div",{className:g().metaContainer,children:(0,a.jsx)(_.xOf,{className:g().icon,style:{fontSize:"20px"}})})})()]})}),(0,a.jsxs)("div",{className:g().tagContainer,children:[(()=>{if(h.isAd)return(0,a.jsx)("div",{className:"".concat(g().tagItem," ").concat(g().ad),children:"Ad"})})(),h.categories.filter(e=>"/category/".concat(e.slug)!==m.asPath).slice(0,1).map(e=>(0,a.jsx)(l(),{href:"/category/".concat(e.slug),children:(0,a.jsx)("div",{className:g().tagItem,children:e.name})},e._id)),h.tags.filter(e=>"/tag/".concat(e.slug)!==m.asPath).slice(0,3).map(e=>(0,a.jsx)(l(),{href:"/tag/".concat(e.slug),children:(0,a.jsx)("div",{className:g().tagItem,children:e.name})},e._id))]})]})}},6745:function(e,t,s){"use strict";var a=s(1549),i=s(7310),n=s(4229),o=s(897),l=s(6901),r=s(3096),c=s(4181),d=s(1001),_=s(2060),p=s.n(_),g=s(66),m=s.n(g),h=s(6098),u=s.n(h),v=s(17),x=s.n(v),j=s(4152),P=s(4194),w=s(5664),y=s(8408),f=s(234),C=s(9630),b=s(7664),N=s(7325),Z=s(4460),S=s(6228),A=s.n(S);let{publicRuntimeConfig:k}=p()(),V=m()(()=>s.e(6722).then(s.t.bind(s,6722,23)),{loadableGenerated:{webpack:()=>[6722]},ssr:!1}),W=m()(()=>Promise.all([s.e(5912),s.e(3406)]).then(s.bind(s,4334)),{loadableGenerated:{webpack:()=>[4334]}});function PlayIcon(e){let{onClick:t}=e;return(0,a.jsx)("button",{className:A().playIcon,onClick:t,children:(0,a.jsx)(C.Z7H,{className:A().icon})})}function Tags(e){let{tags:t}=e;return t.map(e=>(0,a.jsx)(x(),{href:"/tag/".concat(e.slug),passHref:!0,children:(0,a.jsx)("div",{className:A().tagItem,children:e.name})},e.slug))}t.Z=function(e){let{data:t}=e,s=(0,j.useRouter)(),[,_]=(0,r.a)(),p=(0,c._)(),[g,m]=(0,P.useState)(!1),{ref:h,inView:v}=(0,b.YD)({threshold:0,initialInView:!0}),x="".concat(k.DOMAIN).concat(s.asPath);return(0,P.useEffect)(()=>(_((0,a.jsxs)("div",{className:"".concat(A().stickyPreviewContainer," ").concat(v?"":A().show),children:[(0,a.jsx)("button",{type:"button",className:A().controlWrapper,onClick:()=>{window.history.back()},children:(0,a.jsx)(C.jUh,{className:A().icon})}),(0,a.jsx)("div",{className:A().dpContainer,children:(0,a.jsx)(o.c,{src:t.displayPhoto,background:!0})}),(0,a.jsxs)("div",{className:A().contentContainer,children:[(0,a.jsx)("div",{className:A().title,children:t.title}),(0,a.jsxs)("div",{className:A().shareContainer,children:[(0,a.jsx)(N.Z,{url:x,children:(0,a.jsx)("div",{className:A().facebookButton,onClick:()=>{w.C.event("initiate_social_sharing",{platform:"facebook",url:s.asPath})},children:(0,a.jsx)(y.tBk,{className:A().icon})})}),(0,a.jsx)(Z.Z,{url:x,children:(0,a.jsx)("div",{className:A().twitterButton,onClick:()=>{w.C.event("initiate_social_sharing",{platform:"twitter",url:s.asPath})},children:(0,a.jsx)(f.LCd,{className:A().icon})})}),(0,a.jsx)("div",{className:A().shareButton,onClick:()=>m(!0),children:(0,a.jsx)(y.LCi,{className:A().icon})})]})]})]})),()=>{_(null)}),[t,v,_,s.asPath,x]),(0,P.useEffect)(()=>{w.C.event("post_view",{title:t.title}),t.isAd&&w.C.event("sponsored_content",{title:"".concat(t.title)})}
1,[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(W,{isOpen:g,setIsOpen:m}),(0,a.jsxs)(u(),{children:[(0,a.jsx)("link",{rel:"canonical",href:"".concat(k.DOMAIN,"/post/").concat(t.slug)}),(0,a.jsx)("title",{children:t.title}),(0,a.jsx)("meta",{name:"description",content:t.excerpt}),(0,a.jsx)("meta",{name:"robots",content:"index"}),(0,a.jsx)("meta",{name:"googlebot",content:"index"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:description",content:t.excerpt}),(0,a.jsx)("meta",{name:"twitter:title",content:t.title}),(0,a.jsx)("meta",{name:"og:url",content:"".concat(k.DOMAIN,"/post/").concat(t.slug)}),(0,a.jsx)("meta",{name:"og:title",content:t.title}),(0,a.jsx)("meta",{name:"og:description",content:t.excerpt}),(0,a.jsx)("meta",{name:"og:type",content:"article"}),t.displayPhoto&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"og:image",content:(0,i.Rg)(t.displayPhoto)}),(0,a.jsx)("meta",{name:"twitter:image",content:(0,i.Rg)(t.displayPhoto)}),(0,a.jsx)("meta",{name:"og:image:alt",content:t.title}),(0,a.jsx)("meta",{property:"og:image:width",content:"700"}),(0,a.jsx)("meta",{property:"og:image:height",content:"369"})]}),(0,a.jsx)("meta",{name:"article:published_time",content:t.publishDate})]}),(0,a.jsx)("img",{src:(0,i.Rg)(t.displayPhoto),style:{display:"none"},width:"700px",height:"369px"}),(0,a.jsx)("div",{className:A().container,children:(0,a.jsxs)("div",{className:A().postWrapper,children:[(0,a.jsx)("header",{className:A().mediaWrapper,children:(0,a.jsxs)("div",{className:A().displayPhotoContainer,ref:h,children:[t.displayPhoto&&(0,a.jsx)(o.c,{src:t.displayPhoto,className:A().displayPhotoWrapper,alt:t.title,width:"100%",height:"auto",background:!0}),"string"==typeof t.videoURL&&(0,a.jsx)(V,{light:(0,a.jsx)("div",{}),playIcon:(0,a.jsx)(PlayIcon,{onClick:()=>p.setIsVideoPlaying(!0)}),url:t.videoURL,className:A().videoWrapper,width:"100%",height:"100%",controls:!0,playing:p.isVideoPlaying,onPlay:()=>{p.setIsVideoPlaying(!0),w.C.event("post_video",{title:t.title})},onPause:()=>{p.setIsVideoPlaying(!1)}})]})}),t.isAd&&(0,a.jsx)("div",{className:A().sponsored,children:"Sponsored Content"}),(0,a.jsx)("div",{className:A().postTitle,children:t.title}),(0,a.jsxs)("div",{className:A().metaContainer,children:[(0,a.jsx)("div",{className:A().dateWrapper,children:(0,d.Z)(new Date(t.publishDate),"MMMM d, yyyy")}),(0,a.jsxs)("div",{className:A().shareContainer,children:[(0,a.jsx)(N.Z,{url:x,children:(0,a.jsxs)("div",{className:A().facebookButton,children:[(0,a.jsx)(y.tBk,{className:A().icon}),(0,a.jsx)("span",{children:"SHARE"})]})}),(0,a.jsx)(Z.Z,{url:x,children:(0,a.jsxs)("div",{className:A().twitterButton,children:[(0,a.jsx)(f.LCd,{className:A().icon}),(0,a.jsx)("span",{children:"SHARE"})]})}),(0,a.jsx)("div",{className:A().shareButton,onClick:()=>m(!0),children:(0,a.jsx)(y.LCi,{className:A().icon})})]})]}),(0,a.jsx)("div",{className:A().divider}),(0,a.jsx)(n.P,{id:"div-gpt-ad-1718873520695-0",style:{marginTop:"12px"},cmd:()=>{let e=googletag.defineSlot("/21622890900,421864608/ph_loveradio.com.ph_res_article_mid1",[[300,250],[336,280]],"div-gpt-ad-1718873520695-0");if(null!==e){let t=googletag.sizeMapping().addSize([728,300],[[728,90],[300,250]]).addSize([0,0],[[300,250],[336,280]]).build();gptAdSlots.push(e.setCollapseEmptyDiv(!0).defineSizeMapping(t).addService(googletag.pubads())),googletag.pubads().enableSingleRequest(),googletag.enableServices(),googletag.display("div-gpt-ad-1718873520695-0")}}}),(0,a.jsx)(l.J,{content:t.content,className:A().postContent,ad:{zid:k.SHOWHEROES_ZID,url:k.SHOWHEROES_URL}}),(0,a.jsx)(n.P,{id:"div-gpt-ad-1718873609352-0",cmd:()=>{let e=googletag.defineSlot("/21622890900,421864608/ph_loveradio.com.ph_res_article_below",[[336,280],[300,250]],"div-gpt-ad-1718873609352-0");if(null!==e){let t=googletag.sizeMapping().addSize([728,300],[[728,90],[300,250]]).addSize([0,0],[[300,250],[320,50],[320,100]]).build();return e.defineSizeMapping(t).addService(googletag.pubads()).setConfig({collapseDiv:!0}),gptAdSlots.push(e),googletag.pubads().enableSingleRequest(),googletag.enableServices(),googletag.display("div-gpt-ad-1718873609352-0"),()=>googletag.destroySlots([e])}}}),(0,a.jsx)("div",{className:A().tagsContainer,children:(0,a.jsx)(Tags,{tags:t.tags})})]})})]})}},1854:function(e,t,s){"use strict";var a=s(1549),i=s(9509),n=s(3901),o=s(4194),l=s(7687),r=s.n(l);t.Z=function(e){let{header:t,slug:s}=e,[l,c]=(0,o.useState)([]),[d]=(0,o.useState)({skip:0,limit:5});return(0,o.useEffect)(()=>{(0,i.aA)(d).then(e=>{c(e.data)}).catch(e=>{console.error(e)})},[d]),(0,a.jsxs)("div",{className:r().container,children:[(0,a.jsx)("div",{className:r().header,children:t}),(0,a.jsx)("div",{className:r().postListContainer,children:(()=>
1{if(l.length>0)return l.filter(e=>e.slug!==s).map(e=>(0,a.jsx)("div",{className:r().postItem,children:(0,a.jsx)(n.Z,{data:e,mini:!0},e._id)},e._id))})()})]})}},1250:function(e){e.exports={sh_container:"PageContent_sh_container__C6wCN"}},5877:function(e){e.exports={container:"ArticleCard_container__e5_ca",tagContainer:"ArticleCard_tagContainer__hLmzs",tagItem:"ArticleCard_tagItem__GEB8d",ad:"ArticleCard_ad__bf52c",wrapper:"ArticleCard_wrapper__dWtNn",imageWrapper:"ArticleCard_imageWrapper__nhQs5",contentDetails:"ArticleCard_contentDetails__qUk1W",title:"ArticleCard_title__UXS7Q",date:"ArticleCard_date__wEk2N",excerpt:"ArticleCard_excerpt__ZeA9u",metaContainer:"ArticleCard_metaContainer__1_aKy",icon:"ArticleCard_icon__oBK3S",mini:"ArticleCard_mini__A2GjP"}},6228:function(e){e.exports={playIcon:"PostView_playIcon__Se70H",icon:"PostView_icon__VYbzv",stickyPreviewContainer:"PostView_stickyPreviewContainer___IOAH",show:"PostView_show__9Xel_",controlWrapper:"PostView_controlWrapper__tqFw2",dpContainer:"PostView_dpContainer__XvOMQ",contentContainer:"PostView_contentContainer__fUCJ8",title:"PostView_title__nXyph",shareContainer:"PostView_shareContainer___wwL2",facebookButton:"PostView_facebookButton__v9kJ3",twitterButton:"PostView_twitterButton__ZsgUi",shareButton:"PostView_shareButton__mzgcQ",container:"PostView_container___I1z_",postWrapper:"PostView_postWrapper__prFzH",mediaWrapper:"PostView_mediaWrapper__R1ndq",displayPhotoContainer:"PostView_displayPhotoContainer___zCiv",displayPhotoWrapper:"PostView_displayPhotoWrapper__S131N",videoWrapper:"PostView_videoWrapper__5cie9",slideShowButton:"PostView_slideShowButton__jXysg",metaData:"PostView_metaData__DMXWZ",sponsored:"PostView_sponsored__UBjSi",metaContainer:"PostView_metaContainer__i3DAv",dateWrapper:"PostView_dateWrapper__Zoy6W",postTitle:"PostView_postTitle__lo8dw",divider:"PostView_divider__7KLZ_",postContent:"PostView_postContent__yx5eG",tagsContainer:"PostView_tagsContainer__UWwcQ",tagItem:"PostView_tagItem__yDUdy",commentContainer:"PostView_commentContainer__PMq0Q"}},7687:function(e){e.exports={container:"RelatedArticlesWidget_container__069hE",header:"RelatedArticlesWidget_header__Xo_X1",postListContainer:"RelatedArticlesWidget_postListContainer__ZDtLW"}}}]);
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.