1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{3698:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return a(5035)}])},9509:function(e,t,a){"use strict";a.d(t,{aA:function(){return listPosts}});var s=a(8988),r=a(9675),n=a(7825);let o=r.ZPm.enum(["article","video","slideshow"]),i=r.ZPm.object({caption:r.ZPm.string().default(""),credit:r.ZPm.string().default("")}),l=(0,n.vO)(i),c=r.ZPm.object({status:r.ZPm.string(),post_type:o,author_id:r.ZPm.string(),title:r.ZPm.string(),content:r.ZPm.string(),categories:r.ZPm.array(r.ZPm.string()),tags:r.ZPm.array(r.ZPm.string()),display_photo:r.ZPm.file(),publish_date:r.ZPm.date().default(()=>new Date),slideshow_images:r.ZPm.array(r.ZPm.file()).nullish(),slideshow_meta:r.ZPm.array(l).nullish(),video_url:r.ZPm.string().nullish(),video_length:r.ZPm.number().nullish(),is_commentable:r.ZPm.boolean().default(!0),is_ad:r.ZPm.boolean().default(!1)});async function listPosts(e){return(await (0,s.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,a,s;let r=new FormData;for(let t of(r.set("status",e.status),r.set("post_type",e.post_type),r.set("author_id",e.author_id),r.set("title",e.title),r.set("content",e.content),e.categories))r.append("categories",t);for(let t of e.tags)r.append("tags",t);r.set("display_photo",e.display_photo);let o=null!==(t=e.publish_date)&&void 0!==t?t:new Date;if(r.set("publish_date",o.toISOString()),(0,n.XB)(r,"video_url",e.video_url),null!=e.video_length&&r.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!==(s=null===(a=e.slideshow_meta)||void 0===a?void 0:a[t])&&void 0!==s?s:l.encode({caption:"",credit:""});r.append("slideshow_images",n),r.append("slideshow_meta",o)}return r.set("is_ad",n.Xg.str(e.is_ad)),r.set("is_commentable",n.Xg.str(e.is_commentable)),r}});let d=r.ZPm.object({status:r.ZPm.string(),post_type:o,title:r.ZPm.string(),content:r.ZPm.string(),display_photo:r.ZPm.file().or(r.ZPm.string()),categories:r.ZPm.array(r.ZPm.string()),tags:r.ZPm.array(r.ZPm.string()),publish_date:r.ZPm.date(),video_url:r.ZPm.string().nullish(),video_length:r.ZPm.number().nullish(),slideshow_images:r.ZPm.array(r.ZPm.file().or(r.ZPm.string())).optional(),slideshow_meta:r.ZPm.array(l).optional(),is_ad:r.ZPm.boolean(),is_commentable:r.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 a 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",a);for(let a of e.tags)t.append("tags",a);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}})},4308:function(e,t,a){"use strict";a.d(t,{Z:function(){return PostListMasonry_PostListMasonry}});var s=a(1549),r=a(4194),n=a(9630),o=a(2812),i=a(897),l=a(17),c=a.n(l),d=a(4152),_=a(9539),p=a(4963),g=a(159),u=a.n(g),ArticleCardNarrowV2_ArticleCardNarrowV2=function(e){let{data:t,destination:a="post"}=e,r=(0,d.useRouter)();return(0,s.jsx)(c(),{href:"/".concat(a,"/").concat(t.slug),passHref:!0,legacyBehavior:!0,children:(0,s.jsxs)("div",{className:u().container,children:[(0,s.jsxs)("div",{className:u().imageContainer,children:[(0,s.jsx)(i.c,{src:t.displayPhoto,className:u().imageWrapper}),t.isAd&&(0,s.jsx)("div",{className:u().isAd,children:"Ad"}),(()=>{if("video"==t.postType){var e;let a,r;return(0,s.jsxs)("div",{className:u().metaContainer,style:{backgroundColor:"rgba(0, 0, 0, 0.3)"},children:[(0,s.jsx)(_.RLq,{className:u().icon}
1),(0,s.jsx)("span",{children:(e=t.videoLength,a="".concat(Math.floor(e/60)).padStart(2,"0"),r="".concat(e-60*a).padStart(2,"0"),"".concat(a,":").concat(r))})]})}return"slideshow"==t.postType?(0,s.jsxs)("div",{className:u().metaContainer,style:{backgroundColor:"rgba(0, 0, 0, 0.3)"},children:[(0,s.jsx)(p.rKQ,{className:u().icon}),(0,s.jsxs)("span",{children:[t.slideshowLength," ","photos"]})]}):(0,s.jsx)("div",{className:u().metaContainer,children:(0,s.jsx)(p.xOf,{className:u().icon,style:{fontSize:"20px"}})})})()]}),(0,s.jsxs)("div",{className:u().contentDetails,children:[(0,s.jsxs)("div",{className:u().tagsContainer,children:[t.categories.slice(0,1).map(e=>{if(r.asPath!=="/category/".concat(e.slug))return(0,s.jsx)(c(),{href:"/category/".concat(e.slug),legacyBehavior:!0,passHref:!0,children:(0,s.jsx)("div",{className:u().tagItem,children:e.name})},e._id)}),t.tags.slice(0,2).map(e=>{if(r.asPath!=="/tag/".concat(e.slug))return(0,s.jsx)(c(),{href:"/tag/".concat(e.slug),legacyBehavior:!0,passHref:!0,children:(0,s.jsx)("div",{className:u().tagItem,children:e.name})},e._id)})]}),(0,s.jsx)("div",{className:u().title,children:t.title})]})]})})},m=a(462),h=a.n(m),PostListMasonry_PostListMasonry=function(e){let{header:t="",data:a,destination:i="post",className:l="",breakpoints:c}=e,[d,_]=(0,r.useState)([]);return(0,r.useEffect)(()=>{_(a)},[a]),(0,s.jsxs)("div",{className:"".concat(h().container," ").concat(l),children:[t&&(0,s.jsxs)("button",{className:h().header,onClick:()=>{history.back()},children:[(0,s.jsx)(n.O8Q,{className:h().icon}),t]}),(0,s.jsx)(o.G,{columnsCountBreakPoints:c,children:(0,s.jsx)(o.Z,{gutter:"15px",children:(()=>{if(d)return d.map((e,t)=>(0,s.jsx)(ArticleCardNarrowV2_ArticleCardNarrowV2,{data:e,destination:i},t))})()})})]})}},4569:function(e,t,a){"use strict";var s=a(1549),r=a(4229),n=a(1774),o=a.n(n);t.Z=function(e){let{children:t}=e,a="sidebar-wrapper-ad";return(0,s.jsx)("div",{className:o().container,children:(0,s.jsx)("div",{className:o().wrapper,children:(0,s.jsxs)("div",{className:o().content,children:[(0,s.jsx)(r.P,{id:"div-gpt-ad-1737448386118-0",cmd:()=>{let e=googletag.defineSlot("/421864608/ER_Innity_Desktop_Mrec",[300,250],"div-gpt-ad-1737448386118-0");if(null!==e)return e.addService(googletag.pubads()),googletag.pubads().enableSingleRequest(),googletag.enableServices(),gptAdSlots.push(e),googletag.display("div-gpt-ad-1737448386118-0"),()=>googletag.destroySlots([e])}}),t,(0,s.jsx)(r.P,{id:a,cmd:()=>{let e=googletag.defineSlot("/21622890900,421864608/PH_easyrock.com.ph_pc_all_right1_300x600//160x600//120x600//300x250//336x280",[[300,250],[300,600],[160,600],[336,280],[120,600]],a);if(null!==e){let t=googletag.sizeMapping().addSize([728,300],[[300,600],[120,600],[336,280],[160,600],[300,250]]).addSize([0,0],[]).build();return e.defineSizeMapping(t).addService(googletag.pubads()).setConfig({collapseDiv:!0}),gptAdSlots.push(e),googletag.pubads().enableSingleRequest(),googletag.enableServices(),()=>googletag.destroySlots([e])}}})]})})})}},6638:function(e,t,a){"use strict";var s=a(1549),r=a(3096),n=a(4194),o=a(3177),i=a(3392),l=a(5890),c=a.n(l);t.Z=function(){let[e,t]=(0,n.useState)(!1),[,a]=(0,r.a)();(0,n.useEffect)(()=>(a((0,s.jsxs)("div",{className:c().container,children:[(0,s.jsxs)("div",{className:c().wrapper,onClick:()=>t(e=>!e),children:[(0,s.jsx)("div",{className:c().header,children:"Most Requested songs"}),(0,s.jsx)("div",{className:c().control,children:(0,s.jsx)(o.OId,{className:"".concat(c().icon," ").concat(e?c().rotate:"").trim()})})]}),(0,s.jsx)("div",{className:"".concat(c().dataContainer," ").concat(e?c().visible:"").trim(),children:(0,s.jsx)("div",{className:c().dataWrapper,children:(0,s.jsx)(i.Z,{noHeader:!0})})})]})),()=>{a(null)}),[e,a])}},5035:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return v}});var s=a(1549),r=a(9509),n=a(4308),o=a(4152),i=a(6567),l=a.n(i),c=a(4194),d=a(7664),_=a(9126),p=a(5217),g=a.n(p),SearchResultsComponent_SearchResultsComponent=function(){let e=(0,o.useRouter)(),[t,a]=(0,c.useState)(""),[i,p]=(0,c.useState)({initialFetch:!1}),[u,m]=(0,c.useState)({searchQuery:"",skip:0,limit:1}),[h,f]=(0,c.useState)(0),[v,y]=(0,c.useState)(1),[S,x]=(0,c.useState)([]);(0,c.useEffect)(()=>{e.query.q&&a(e.query.q)},[e.query]),(0,c.useEffect)(()=>{m({...u,searchQuery:t})},[t]),(0,c.useEffect)(()=>{x([]),f(0),u.searchQuery&&(0,r.aA)(u).then(e=>{l().done(),p({...i,fetch:!1}),e.data&&x(e.data),e.count&&f(e.count)})},[u.searchQuery]);let{ref:P,inView:b,entry:N}=(0,d.YD)({threshold:0});return(0,c.useEffect)(()=>{b&&!i.loadmore&&(p({...i,loadmore:!0}),m({...u,skip:S.length}),(0,r.aA)({...u,skip:S.length}).then(e=>{p({...i,loadmore:!1}),e.data&&x([...S,...e.data]),e.count&&f(e.count)}))},[b]),(0,s.jsxs)("div",{className:g().container,children:[t&&(0,s.jsxs)("div",{className:g().infoContainer,children:[(0,s.jsxs)("div",{className:g().queryWrapper,children:["Search Results for:"," ",(0,s.jsx)("span",{className:g().query,children:t||""}),(0,s.jsx)("span",{className:g().clear,onClick:()=>{a(""),x([]),f(0),history.back()},children:"back"})]}),(0,s.jsxs)("div",{className:g().resultsInfo,children:[h," ",1!==h?"Results":"Result"]})]}),S&&(0,s.jsx)(n.Z,{breakpoints:{700:1,1350:2},data:S,destination:"post"}),S.length>0&&S.length<h?(0,s.jsx)(_.Z,{block:!0,className:"m-3",onClick:()=>{i.loadmore||(p({...i,loadmore:!0}),m({...u,skip:S.length}),(0,r.aA)({...u,skip:S.length}).then(e=>{p({...i,loadmore:!1}),e.data&&x([...S,...e.data]),e.count&&f(e.count)}))},innerRef:P,children:"See more"}):S.length>0&&S.length==h?(0,s.jsx)(_.Z,{block:!0,disabled:!0,className:"m-3",children:"No more posts to load"}):void 0]})},u=a(4569),m=a(8363),h=a(2126),f=a(6638);function SearchPage(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"frontend-content-container",children:(0,s.jsx)("div",{className:"content-wrapper",children:(0,s.jsxs)("div",{className:"main-container",children:[(0,s.jsx)(f.Z,{}),(0,s.jsx)(SearchResultsComponent_SearchResultsComponent,{})]})})}),(0,s.jsx)(u.Z,{children:(0,s.jsx)(m.Z,{})})]})}SearchPage.layout=h.Z;var v=SearchPage},159:function(e){e.exports={container:"ArticleCardNarrowV2_container__jeT21",imageContainer:"ArticleCardNarrowV2_imageContainer__zBFKs",imageWrapper:"ArticleCardNarrowV2_imageWrapper__QQh_p",isAd:"ArticleCardNarrowV2_isAd__p4GG3",metaContainer:"ArticleCardNarrowV2_metaContainer__Kk3Ot",icon:"ArticleCardNarrowV2_icon__eVfN_",contentDetails:"ArticleCardNarrowV2_contentDetails__dxTeJ",title:"ArticleCardNarrowV2_title__IUkoX",tagsContainer:"ArticleCardNarrowV2_tagsContainer__vhia2",tagItem:"ArticleCardNarrowV2_tagItem__jZkWa"}},462:function(e){e.exports={container:"PostListMasonry_container__x7vKt",header:"PostListMasonry_header__qSQ0L",icon:"PostListMasonry_icon__n61V_"}},5217:function(e){e.exports={container:"SearchResultsComponent_container__UvGB6",infoContainer:"SearchResultsComponent_infoContainer__u_85k",queryWrapper:"SearchResultsComponent_queryWrapper__IW0m_",query:"SearchResultsComponent_query__M3858",clear:"SearchResultsComponent_clear__vgk3B",resultsInfo:"SearchResultsComponent_resultsInfo__PPwJq"}},1774:function(e){e.exports={container:"SidebarWrapper_container__OhpYc",wrapper:"SidebarWrapper_wrapper__aPzKP",content:"SidebarWrapper_content__tEgFY",topAd:"SidebarWrapper_topAd__erJqn",AdSpace:"SidebarWrapper_AdSpace__7_38f"}},5890:function(e){e.exports={container:"Top10SongsStickyWrapper_container__NKpsx",wrapper:"Top10SongsStickyWrapper_wrapper___dshM",header:"Top10SongsStickyWrapper_header__LTbBN",control:"Top10SongsStickyWrapper_control__lhZeg",icon:"Top10SongsStickyWrapper_icon__ZGSVW",rotate:"Top10SongsStickyWrapper_rotate__HpQxr",dataContainer:"Top10SongsStickyWrapper_dataContainer__yKmnU",dataWrapper:"Top10SongsStickyWrapper_dataWrapper__Gd47L",visible:"Top10SongsStickyWrapper_visible__S7wA2"}}},function(e){e.O(0,[9341,8718,1340,2919,623,1397,2126,9774,2888,179],function(){return e(e.s=3698)}
1),_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.