1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86],{5305:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/home/event",function(){return n(6919)}])},6919:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return v},default:function(){return x}});var a=n(5893),s=n(7294);n(2088);var o=n(1163),i=n(7853),c=n(2022),r=n(9249),l=n(9008),d=n.n(l),u=n(6154),p=n(1664),m=n.n(p),h=n(6914),g=n(7078),v=!0;function x(e){let{staticData:t}=e,n=(0,o.useRouter)(),[l,p]=(0,s.useState)({}),[v,x]=(0,s.useState)(""),[w,j]=(0,s.useState)(new Date().toISOString().split("T")[0]),[f,_]=(0,s.useState)("distance"),[b,y]=(0,s.useState)([]),[N,S]=(0,s.useState)(0);async function E(e){let t=await fetch("/city.json"),n=await t.json(),a=n.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()));return a}(0,s.useEffect)(()=>{let{search:e,location:t,page:a}=n.query;e&&x(e),a&&S(a-1),t&&E(t).then(e=>{p(e[0])}).catch(e=>{console.log("Error:",e)})},[n.query]),(0,s.useEffect)(()=>{let e=!0;(0,g.Fg)("view_event_service","page_view");let t=async()=>{try{let t="https://api.strongbee.tech/"+"api/v2/event/public/get-list?tags=&words=".concat(encodeURIComponent(v),"&sorted-by=").concat(f,"&limit=20&page=").concat(N,"&date=").concat(encodeURIComponent(w),"&latitude=").concat(l.latitude||"6.59167","&longitude=").concat(l.longitude||"106.8"),n=await u.Z.get(t);e&&y(n.data)}catch(e){console.error(e)}};return t(),()=>{e=!1}},[v,l,w,f,N]);let k=e=>{let t={...n.query,...e};n.push({pathname:n.pathname,query:t})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d(),{children:[(0,a.jsxs)("title",{children:[t.title," | STRONGBEE"]}),(0,a.jsx)("meta",{name:"description",content:t.description}),(0,a.jsx)("link",{rel:"canonical",href:"https://app.strongbee.co.id/home/event"}),(0,a.jsx)("meta",{property:"og:title",content:t.title+" | STRONGBEE"}),(0,a.jsx)("meta",{property:"og:description",content:t.description}),(0,a.jsx)("meta",{property:"og:image",content:"https://strongbee-web.s3.amazonaws.com/wp-content/uploads/2024/01/31164012/banner-photo-1-scaled.webp"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:t.title+" | STRONGBEE"}),(0,a.jsx)("meta",{name:"twitter:description",content:t.description}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://strongbee-web.s3.amazonaws.com/wp-content/uploads/2024/01/31164012/banner-photo-1-scaled.webp"})]}),(0,a.jsx)("div",{className:" layoutContainer",children:(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-12 col-md-4",children:(0,a.jsx)("div",{className:"",children:(0,a.jsx)(i.Z,{setLocation:p,setSearch:e=>{let t=e.target.value;x(t),k({search:t})},setDate:e=>{e.target.value},setFilter:_,search:v,date:w,filter:f,location:l})})}),(0,a.jsxs)("div",{className:"col-12 col-md-8",children:[(0,a.jsx)(h.Z,{}),b.result&&b.result.map((e,t)=>{var n,s,o,i,r,l,d;return(0,a.jsx)(m(),{href:"/home/event/".concat(null===(n=null===(s=null===(o=null===(i=null===(r=null===(l=null===(d=e.name)||void 0===d?void 0:d.replaceAll(" - ",""))||void 0===l?void 0:l.replaceAll(" ","-"))||void 0===r?void 0:r.replaceAll("(",""))||void 0===i?void 0:i.replaceAll(")",""))||void 0===o?void 0:o.replaceAll("/",""))||void 0===s?void 0:s.replaceAll("#",""))||void 0===n?void 0:n.replaceAll("%",""),"/").concat(e.id),onClick:()=>(0,g.Fg)("click_to_detail_events","click","event",e.name),children:(0,a.jsx)(c.Z,{name:e.name,subname:e.city,subname2:new Date(e.start_date).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric"}),price:e.price,picture:e.photo_url,duration:0})},t)}),(0,a.jsx)(r.Z,{setCurentPage:e=>{S(e),k({search:v,page:e+1}),window.scrollTo({top:0,behavior:"smooth"})},selectedPage:N,totalPage:b.pages})]})]})})]})}},6914:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(5893);function s(e){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{backgroundColor:"rgba(194, 181, 173, 0.2)",borderRadius:"16px",padding:"0.5em",marginBottom:"1.5em"},children:(0,a.jsxs)("div",{className:"d-flex",children:[(0,a.jsx)("div",{className:"d-flex justify-content-center",children:(0,a.jsx)("img",{src:"https://strongbee-web.s3.amazonaws.com/wp-content/uploads/2024/01/31112831/Shape-1.svg",alt:"",style:{padding:"10px",minWidth:"40px"}})}),(0,a.jsx)("div",{className:" d-flex align-self-center",children:(0,a.jsxs)("p",{style:{margin:"0 0 0 0"},children:[" ","The schedule displays times in WIB (Waktu Indonesia Barat)"]})})]})})})}n(7294)}},function(e){e.O(0,[6154,9690,1578,2646,1664,8288,2689,9774,2888,179],function(){return e(e.s=5305)}),_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.