PageSourceSearch

https://alner.id/_next/static/chunks/pages/product/sections/recommendation-6c92645fcf96d048.js

js alner.id collected 2026-09-30 14:18:42 UTC 6,796 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1622,9399],{27336:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/sections/recommendation",function(){return r(70417)}])},73943:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var a=r(96540);let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),n=e=>{let t=o(e);return t.charAt(0).toUpperCase()+t.slice(1)},c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},s=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let d=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:d="",children:u,iconNode:h,...p}=e;return(0,a.createElement)("svg",{ref:t,...i,width:l,height:l,stroke:r,strokeWidth:n?24*Number(o)/Number(l):o,className:c("lucide",d),...!u&&!s(p)&&{"aria-hidden":"true"},...p},[...h.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),u=(e,t)=>{let r=(0,a.forwardRef)((r,o)=>{let{className:s,...i}=r;return(0,a.createElement)(d,{ref:o,iconNode:t,className:c("lucide-".concat(l(n(e))),"lucide-".concat(e),s),...i})});return r.displayName=n(e),r}},57470:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(73943).A)("bolt",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]])},23174:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(73943).A)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},1321:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(73943).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},98097:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(73943).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},11557:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(73943).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},31594:(e,t,r)=>{"use strict";r.d(t,{b:()=>s,l:()=>c});var a=r(74848),l=r(96540),o=r(86715);let n=(0,l.createContext)(void 0),c=()=>{let e=(0,l.useContext)(n);if(!e)throw Error("useRoute must be used within a RouteProvider");return e},s=e=>{let{children:t}=e,r=(0,o.useRouter)(),[c,s]=(0,l.useState)(),[i,d]=(0,l.useState)(r.asPath),[u,h]=(0,l.useState)("");(0,l.useEffect)(()=>{let e=()=>{h(i),d(r.asPath)};e();let t=()=>e();return r.events.on("routeChangeComplete",t),()=>{r.events.off("routeChangeComplete",t)}},[r]);let p=r.pathname;return(0,a.jsx)(n.Provider,{value:{push:e=>{if(!(null==e?void 0:e.href))return;let{href:t,params:a}=e,{param:l}=e;if(l){let{name:e,value:r}=l;t=t.includes("[".concat(e,"]"))?t.replace("[".concat(e,"]"),r):"".concat(t,"?").concat(e,"=").concat(r)}if(a&&a.length>0){a.forEach(e=>{let{name:r,value:a}=e;t.includes("[".concat(r,"]"))&&(t=t.replace("[".concat(r,"]"),a))});let e=[];a.forEach(r=>{let{name:a,value:l}=r;t.includes(l)||e.push("".concat(encodeURIComponent(a),"=").concat(encodeURIComponent(l)))}),e.length>0&&(t+=(t.includes("?")?"&":"?")+e.join("&"))}try{if("alner.id"!==new URL(t).host){window.open(t,"_blank");return}}catch(e){}r.push(t,void 0,{scroll:!0}),r.events.on("routeChangeComplete",()=>{document.body.scrollTo(0,0),r.events.off("routeChangeComplete",()=>{document.body.scrollTo(0,0)})})},back:()=>{r.back(),document.body.scrollTo(0,0)},pathname:p,setTitle:s,isReady:()=>r.isReady,reload:e=>{(null==e?void 0:e.hard)?window.location.reload():r.replace(r.asPath)},replace:e=>{if(!(null==e?void 0:e.href))return;let{href:t,param:a}=e;if(a){let{name:e,value:r}=a;t=t.includes("[".concat(e,"]"))?t.replace("[".concat(e,"]"),r):"".concat(t,"?").concat(e,"=").concat(r)}r.replace(t),document.body.scrollTo(0,0)},currentUrl:i,previousUrl:u,trackUrl:e=>{h(i),d(e)}},children:t})}},70417:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var a=r(74848),l=r(80457),o=r(17371),n=r(47633),c=r(44584);function s(e){let{products:t,isLoading:r}=e,{t:s}=(0,o.o)();return r?(0,a.jsxs)("div",{className:"flex flex-col w-full gap-8",children:[(0,a.jsx)("p",{className:"md:text-2xl text-lg font-bold",children:s("shop.product.recommendation_heading")}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-5",children:Array.from({length:6},(e,t)=>(0,a.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,a.jsx)(n.A.Image,{active:!0,className:"w-full aspect-square"}),(0,a.jsx)(n.A,{active:!0,title:{width:"80%"},paragraph:{rows:2,width:["60%","40%"]}}),(0,a.jsx)(n.A.Button,{active:!0,className:"w-full h-8 mt-2"})]},t))}),(0,a.jsx)("div",{className:"flex flex-row items-center justify-center",children:(0,a.jsx)(c.Ay,{type:"primary",ghost:!0,className:"w-fit",children:s("shop.product.recommendation_button")})})]}):t?(0,a.jsxs)("div",{className:"flex flex-col w-full gap-8",children:[(0,a.jsx)("p",{className:"md:text-2xl text-lg font-bold",children:s("shop.product.recommendation_heading")}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-5",children:null==t?void 0:t.result.data.map((e,t)=>(e.qty_available,(0,a.jsx)(l.A,{product:e,isFLashSale:!1},t)))})]}):(0,a.jsx)("div",{children:s("shop.product.recommendation_empty")})}},65288:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var a=r(17371);let l=(e,t)=>
1{let{language:r}=(0,a.o)(),l=t||r;if(null==e)return"";if("number"==typeof e)return e.toString();if("string"==typeof e){if(!e.trim().startsWith("{"))try{return e.replace(/\\u([0-9a-fA-F]{4})/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}catch(t){return e}try{let t=JSON.parse(e);if(t&&"object"==typeof t)return t[l]||t.id||"";return e}catch(t){return console.warn("Invalid JSON, returning original string:",e),e}}if("object"==typeof e){if(void 0!==e[l]&&""!==e[l])return e[l];if(e.id)return e.id}return""}}},e=>{var t=t=>e(e.s=t);e.O(0,[7633,1031,1106,7371,457,636,6593,8792],()=>t(27336)),_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.