PageSourceSearch

https://erafone.com/_next/static/chunks/pages/katalog/personalisasi/[urlKey]-4c048138bf7987ad.js

js erafone.com collected 2026-09-24 18:40:26 UTC 12,127 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1e3],{498:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14232),s=r(77092),a=r(34650),i=r(43148),o=r(62097),l=r(89099),c=r(58827);let u=e=>{let{isOpen:t,onOpen:r,onClose:u}=(0,i.A)(a.IE),d=(0,l.useRouter)(),p=(0,s.KM)(),{onLogout:h}=(0,o.Z)();return(0,n.useEffect)(()=>{if(e)return;let t=e=>{var t,r;c.gZ.includes(e.origin)&&((null==(t=e.data)?void 0:t.action)==="action-handler"&&(u(),null==h||h(void 0,{callback:()=>{d.push("/login").then(()=>{window.location.reload()})}})),(null==(r=e.data)?void 0:r.action)==="close-handler"&&(u(),p()))};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},[e,u,h]),{isOpen:t,onOpen:r,onClose:u}}},7853:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>u,default:()=>d});var n=r(37876),s=r(57610),a=r(56090),i=r(4237),o=r(23451),l=r(58827),c=r(90007),u=!0;let d=e=>{var t,r,u,d;let{isMobile:p,sectionId:h,catId:m}=e,{data:g,isLoading:f}=(0,c.hu)({categoryID:m,section:h}),y=(null==g||null==(t=g.data)?void 0:t.items)||[],b=(null==g||null==(r=g.data)?void 0:r.total_count)||0,x=[{href:"/",label:"Home"},{href:l.R7.personalisasi,label:(null==g||null==(d=g.data)||null==(u=d.category)?void 0:u.name)||""}];return 0!==y.length||f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{}),(()=>{var e,t,r,a;return p?(0,n.jsxs)(s.so,{dir:"column",gap:4,className:"pb-8",children:[(0,n.jsx)(s.Qp,{data:x}),(0,n.jsxs)(s.so,{dir:"column",gap:2,children:[(0,n.jsx)(s.DZ,{className:"text-base",children:null==g||null==(t=g.data)||null==(e=t.category)?void 0:e.name}),b>0&&(0,n.jsxs)(s.EY,{className:"font-semibold text-xs",children:[b," Items"]})]}),(0,n.jsxs)(s.az,{dir:"row",className:"grid grid-cols-2 gap-4",children:[y.map(e=>(0,n.jsx)(o.AA,{id:e.id.toString(),product:e,className:{wrapper:"w-full"}},e.id)),f&&Array.from(Array(12).keys()).map((e,t)=>(0,n.jsx)(s.nh,{height:414,width:193,isRounded:!0},t))]})]}):(0,n.jsxs)(s.aq,{className:"px-16 pb-12 flex flex-col gap-6 w-[1440px]",children:[(0,n.jsx)(s.so,{dir:"column",gap:3,children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.nh,{height:14,width:300,isRounded:!0}),(0,n.jsx)(s.nh,{height:14,width:150,isRounded:!0}),(0,n.jsx)(s.nh,{height:14,width:100,isRounded:!0})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Qp,{data:x,className:{container:"pb-4"}}),(0,n.jsx)(s.DZ,{children:null==g||null==(a=g.data)||null==(r=a.category)?void 0:r.name}),(0,n.jsxs)(s.EY,{className:"font-semibold text-xs",children:[b," Items"]})]})}),(0,n.jsxs)(s.az,{dir:"row",className:"grid grid-cols-6 gap-6",children:[y.map(e=>(0,n.jsx)(o.AA,{id:e.id.toString(),product:e},e.id)),f&&Array.from(Array(12).keys()).map((e,t)=>(0,n.jsx)(s.nh,{height:414,width:193,isRounded:!0},t))]})]})})()]}):(0,n.jsx)(i.A,{})}},29324:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/katalog/personalisasi/[urlKey]",function(){return r(7853)}])},43148:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85278);function s(e){let[t,r]=(0,n.fp)(e);return{isOpen:t,onOpen:()=>r(!0),onClose:()=>r(!1),onToggle:()=>r(e=>!e),onChangeValue:e=>r(e)}}},56090:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(37876),s=r(59412),a=r(37968),i=r(77328),o=r.n(i);let l={title:"erafone.com | Pengalaman Belanja Online Terbaik & Aman",description:"Beli Produk Gadget & Lifestyle Cicilan 0% | 100% Original | Garansi Resmi | Dapatkan Cashback MyEraspace Points | Bebas Ongkir",keywords:"Belanja Online, Gadget, Toko Handphone, Eraspace, Erafone",url:"https://erafone.com"};function c(e){let{type:t="ProductCollection",isPdp:r,displayedTitle:i,title:c=l.title,description:u=l.description,keywords:d=l.keywords,url:p=l.url,imageUrl:h="",price:m,rating:g,canonicalUrl:f="",customSchema:y,customJsonLd:b,brand:x}=e,j="",v="";r&&(j="",v="| erafone.com");let w="".concat((0,a.TP)([j,c])," ").concat(v),O=""===h?"".concat(l.url,"/illustration/erafone-meta.jpg"):h,E=(null==p?void 0:p.startsWith("http"))?p:"".concat(l.url).concat(p);return(0,n.jsxs)(o(),{children:[(0,n.jsx)("meta",{charSet:"UTF-8"}),(0,n.jsx)("title",{children:i?"".concat(i," ").concat(v):w}),(0,n.jsx)("meta",{name:"title",content:w}),(0,n.jsx)("meta",{name:"description",content:u}),(0,n.jsx)("meta",{name:"keywords",content:d}),(0,n.jsx)("meta",{property:"og:site_name",content:"erafone"}),(0,n.jsx)("meta",{property:"og:title",content:w}),(0,n.jsx)("meta",{property:"og:description",content:u}),(0,n.jsx)("meta",{property:"og:url",content:E}),(0,n.jsx)("meta",{property:"og:image",content:O}),(0,n.jsx)("meta",{property:"og:type",content:r?"product":"website"}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"robots",content:"index, follow"}),(0,n.jsx)("meta",{name:"page-type",content:"productdetailpage"}),m&&(0,n.jsx)("meta",{property:"product:price:amount",content:"".concat(m)}),(0,n.jsx)("meta",{property:"product:price:currency",content:"Rp"}),(0,n.jsx)("meta",{name:"twitter:card",content:"product"}
1),(0,n.jsx)("meta",{name:"twitter:site",content:"@eraspaceid"}),(0,n.jsx)("meta",{name:"twitter:creator",content:"@eraspaceid"}),(0,n.jsx)("meta",{name:"twitter:title",content:"".concat(w)}),(0,n.jsx)("meta",{name:"twitter:description",content:w}),(0,n.jsx)("meta",{name:"twitter:image",content:O}),(0,n.jsx)("meta",{name:"twitter:label1",content:"Harga"}),m&&(0,n.jsx)("meta",{name:"twitter:data1",content:(0,s.hG)(m)}),g&&(0,n.jsx)("meta",{itemProp:"ratingValue",content:"".concat(g)})]}),f&&(0,n.jsx)("link",{rel:"canonical",href:f}),(()=>{var e;if(y)return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:y},async:!0});if("Product"===t){let e={"@context":"https://schema.org","@type":t,name:w,description:u,image:[O],url:E,...x&&{brand:{"@type":"Brand",name:x}},...m&&{offers:{"@type":"Offer",priceCurrency:"IDR",price:"".concat(m),availability:"https://schema.org/InStock",itemCondition:"https://schema.org/NewCondition",seller:{"@type":"Organization",name:"Eraspace"}}},...g&&{aggregateRating:{"@type":"AggregateRating",ratingValue:"".concat(g),reviewCount:"1",bestRating:"5",worstRating:"1"}}};return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}})}let r={"@context":"https://schema.org","@type":t,mainEntityOfPage:{"@type":"WebPage","@id":E},name:w,about:u,headline:w,image:O,url:E,author:{"@type":"Organization",name:"Erafone",url:"https://erafone.com"},publisher:{"@type":"Organization",name:"Erafone",logo:{"@type":"ImageObject",url:"https://erafone.com/logo/erafone.png"}},datePublished:new Date().toISOString(),dateModified:new Date().toISOString()},s={ProductCollection:()=>r,Article:()=>r,ArticleDetail:()=>r,Event:()=>({...r,description:u,organizer:{"@type":"Organization",name:"erafone.com",url:p}})},a=null==(e=s[t])?void 0:e.call(s);return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(b||a)},async:!0})})()]})}},89901:(e,t,r)=>{"use strict";r.d(t,{E:()=>g});var n=r(14232),s=r(15154),a=r(68941),i=r(77771),o=r(29382);class l extends o.Q{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(e=>{e.destroy()})}setQueries(e,t){this.queries=e,a.j.batch(()=>{let e=this.observers,r=this.findMatchingObservers(this.queries);r.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,t));let n=r.map(e=>e.observer),a=Object.fromEntries(n.map(e=>[e.options.queryHash,e])),i=n.map(e=>e.getCurrentResult()),o=n.some((t,r)=>t!==e[r]);(e.length!==n.length||o)&&(this.observers=n,this.observersMap=a,this.result=i,this.hasListeners()&&((0,s.iv)(e,n).forEach(e=>{e.destroy()}),(0,s.iv)(n,e).forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(e=>e.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions))}
1findMatchingObservers(e){let t=this.observers,r=new Map(t.map(e=>[e.options.queryHash,e])),n=e.map(e=>this.client.defaultQueryOptions(e)),s=n.flatMap(e=>{let t=r.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]}),a=new Set(s.map(e=>e.defaultedQueryOptions.queryHash)),o=n.filter(e=>!a.has(e.queryHash)),l=new Set(s.map(e=>e.observer)),c=t.filter(e=>!l.has(e)),u=e=>{let t=this.client.defaultQueryOptions(e),r=this.observersMap[t.queryHash];return null!=r?r:new i.$(this.client,t)},d=o.map((e,t)=>{if(e.keepPreviousData){let r=c[t];if(void 0!==r)return{defaultedQueryOptions:e,observer:r}}return{defaultedQueryOptions:e,observer:u(e)}});return s.concat(d).sort((e,t)=>n.indexOf(e.defaultedQueryOptions)-n.indexOf(t.defaultedQueryOptions))}onUpdate(e,t){let r=this.observers.indexOf(e);-1!==r&&(this.result=(0,s._D)(this.result,r,t),this.notify())}notify(){a.j.batch(()=>{this.listeners.forEach(({listener:e})=>{e(this.result)})})}}var c=r(15379),u=r(85461),d=r(67400),p=r(25534),h=r(57780),m=r(13691);function g({queries:e,context:t}){let r=(0,u.jE)({context:t}),s=(0,d.w)(),i=(0,p.h)(),o=n.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=s?"isRestoring":"optimistic",t}),[e,r,s]);o.forEach(e=>{(0,m.tu)(e),(0,h.LJ)(e,i)}),(0,h.wZ)(i);let[g]=n.useState(()=>new l(r,o)),f=g.getOptimisticResult(o);(0,c.r)(n.useCallback(e=>s?()=>void 0:g.subscribe(a.j.batchCalls(e)),[g,s]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),n.useEffect(()=>{g.setQueries(o,{listeners:!1})},[o,g]);let y=f.some((e,t)=>(0,m.EU)(o[t],e,s))?f.flatMap((e,t)=>{let r=o[t],n=g.getObservers()[t];if(r&&n)if((0,m.EU)(r,e,s))return(0,m.iL)(r,n,i);else(0,m.nE)(e,s)&&(0,m.iL)(r,n,i);return[]}):[];if(y.length>0)throw Promise.all(y);let b=g.getQueries(),x=f.find((e,t)=>{var r,n;return(0,h.$1)({result:e,errorResetBoundary:i,useErrorBoundary:null!=(r=null==(n=o[t])?void 0:n.useErrorBoundary)&&r,query:b[t]})});if(null!=x&&x.error)throw x.error;return f}},90007:(e,t,r)=>{"use strict";r.d(t,{$K:()=>l,IM:()=>c,ON:()=>o,Op:()=>x,Wg:()=>p,aY:()=>y,cU:()=>g,fA:()=>b,hu:()=>v,jo:()=>f,qf:()=>m,r6:()=>d,ry:()=>j,tt:()=>h,u_:()=>u});var n=r(79629),s=r(42252),a=r(15526),i=r(68420);let o=(e,t)=>{var r;return(0,s.I)(["catalog-redis",e],()=>(0,i.nd)(e),{...t,enabled:!!e.category_id&&(null==(r=null==t?void 0:t.enabled)||r),staleTime:1/0})},l=(e,t)=>(0,s.I)(["products","catalogs",e],()=>(0,i.W1)(e),{...t,enabled:!!e.category_id}),c=(e,t)=>(0,s.I)(["filters",e],()=>(0,i.tS)(e),{...t,enabled:!!e.category_id}),u=(e,t,r)=>{var n;let a=encodeURIComponent(null==e?void 0:e.toString());return(0,s.I)(["product-specification",a],()=>(0,i.Dz)(a,t),{enabled:!!e&&(null==(n=null==r?void 0:r.enabled)||n),...r})},d=(e,t)=>{let r=encodeURIComponent(null==e?void 0:e.toString());return(0,s.I)(["product-description",r],()=>(0,i.uM)(r,t),{enabled:!!e,staleTime:1/0})},p=(e,t,r)=>(0,s.I)(["product-sap-price",e,t],()=>(0,i.X_)(e,t),{enabled:!!e&&r}),h=(e,t,r)=>(0,s.I)(["product-configurable-variant",e],()=>(0,i.AB)(e,r),{enabled:!!e&&t}),m=(e,t,r,n)=>(0,s.I)(["product-detail",e],()=>(0,i.FH)(e,r),{enabled:!!e&&t,...n}),g=function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,s.I)(["classify-attribute",e],()=>(0,i.j8)(e,t),{enabled:!!e&&r})},f=()=>(0,a.n)(async e=>(0,n.A)(()=>(0,i.UN)(e))),y=(e,t)=>(0,s.I)(["products","catalogs-search",e],()=>(0,i.bS)(e),{...t,enabled:!!e.text}),b=(e,t)=>(0,s.I)(["products-by-sku",e],()=>(0,i.W1)(e),{...t,enabled:!!e.sku}),x=(e,t)=>(0,s.I)(["schedule","session-list",e],()=>(0,i.h2)(e),{enabled:!1,...t}),j=(e,t)=>(0,s.I)(["products","search","filters",e],()=>(0,i.Kn)(e),{...t,enabled:!!e}),v=(e,t)=>{let{section:r,categoryID:n}=e;return(0,s.I)({queryKey:["salesforce",e.section],queryFn:()=>(0,i.ky)({section:r,categoryID:n}),enabled:null==t?void 0:t.enabled,staleTime:1/0,...t})}}},e=>{e.O(0,[8992,9357,4085,9572,7587,6580,3451,4310,636,6593,8792],()=>e(e.s=29324)),_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.