PageSourceSearch

https://aimchuan-portofolio.vercel.app/_next/static/chunks/pages/curated-products/[slug]-d64f2a89a12f6fca.js

js aimchuan-portofolio.vercel.app collected 2026-10-03 06:13:54 UTC 10,151 bytes, 16 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[414],{15109:function(e,t,n){"use strict";n.d(t,{Z:function(){return createLucideIcon}});var r=n(67294);/**
2 * @license lucide-react v0.563.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let mergeClasses=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),toCamelCase=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),toPascalCase=e=>{let t=toCamelCase(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
7 * @license lucide-react v0.563.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var a={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"};/**
12 * @license lucide-react v0.563.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let hasA11yProp=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},s=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:l,iconNode:o,...c},d)=>(0,r.createElement)("svg",{ref:d,...a,width:t,height:t,stroke:e,strokeWidth:s?24*Number(n)/Number(t):n,className:mergeClasses("lucide",i),...!l&&!hasA11yProp(c)&&{"aria-hidden":"true"},...c},[...o.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(l)?l:[l]])),createLucideIcon=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...a},i)=>(0,r.createElement)(s,{ref:i,iconNode:t,className:mergeClasses(`lucide-${toKebabCase(toPascalCase(e))}`,`lucide-${e}`,n),...a}
16));return n.displayName=toPascalCase(e),n}},53219:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(15109);let a=(0,r.Z)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},95870:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/curated-products/[slug]",function(){return n(69662)}])},10872:function(e,t,n){"use strict";n.d(t,{Z:function(){return PageHead}});var r=n(85893),a=n(9008),s=n.n(a),i=n(4298),l=n.n(i);function PageHead(e){let{title:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{children:(0,r.jsx)("title",{children:"".concat(t," | Aimchuan Portofolio")})}),(0,r.jsx)(l(),{defer:!0,src:"/umami-analytics/script.js","data-website-id":"7a7af256-3b6d-4df4-9814-75d3436d1109",strategy:"afterInteractive","data-cache":"true"}),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(l(),{id:"gtm-script",strategy:"afterInteractive",children:"\n            (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n            j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n            'https://www.googletagmanager.com/gtm.js?id='
16+i+dl;f.parentNode.insertBefore(j,f);\n            })(window,document,'script','dataLayer','GTM-523H889S');\n          "})})]})}},97508:function(e,t,n){"use strict";n.d(t,{v:function(){return CuratedProvider},J:function(){return useCurated}});var r=n(85893),a=n(67294);let s=(0,a.createContext)(void 0);function CuratedProvider(e){let{children:t}=e,n=function(){let[e,t]=(0,a.useState)([]),[n,r]=(0,a.useState)(!1),[s,i]=(0,a.useState)(null);async function loadAffiliateData(){r(!0),i(null);try{let e=await fetch("/api/curated-products"),n=await e.json();if(n.success)t(n.data);else throw Error(n.message||"Gagal memuat data")}catch(e){console.error("Gagal mengambil data affiliate:",e),i(e.message)}finally{r(!1)}}return(0,a.useEffect)(()=>{loadAffiliateData()},[]),{products:e,setProducts:t,loading:n,error:s,refreshData:loadAffiliateData,getProductBySlug:t=>t&&e.find(e=>e.slug.toString()===t.toString())||null}}();return(0,r.jsx)(s.Provider,{value:n,children:t})}function useCurated(){let e=(0,a.useContext)(s);if(void 0===e)throw Error("useCurated must be used within a CuratedProvider");return e}},48583:function(e,t,n){"use strict";n.d(t,{Z:function(){return LinktreeCuratedLoading}});var r=n(85893),a=n(53637);function LinktreeCuratedLoading(){return(0,r.jsx)(a.Z,{fluid:!0,className:"\n          bg-white min-vh-100\n          d-flex align-items-center\n          justify-content-center\n        ",children:(0,r.jsx)("p",{className:"text-muted fw-bold",style:{fontSize:"11px",letterSpacing:"1px"},children:"LOADING..."})})}},69662:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return CuratedProductsPage}});var r=n(85893),a=n(11163),s=n(10872),i=n(67294),l=n(53637),o=n(84082),c=n(53219),d=n(15109);let u=(0,d.Z)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]]);var f=n(22424),m=n(97508);let p=(0,d.Z)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);function LinktreeCuratedNotFound(){let e=(0,a.useRouter)(),{id:t}=e.query;return(0,r.jsx)(l.Z,{fluid:!0,className:"\n          bg-white min-vh-100\n          d-flex align-items-center\n          justify-content-center p-4\n        ",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(p,{size:48,className:"text-muted mb-3 opacity-20"}),(0,r.jsx)("h5",{className:"fw-bold text-dark",children:"Item Not Found"}),(0,r.jsx)("p",{className:"text-muted small mb-4",children:"Maaf Lur, log item produk ini tidak tersedia."}),(0,r.jsx)(o.Z,{color:"dark",size:"sm",className:"rounded-pill px-4 shadow-none",onClick:()=>e.push("/curated-products"),style:{fontSize:"11px",fontWeight:"bold"},children:"BACK TO LIST"})]})})}var h=n(48583);function LinktreeCuratedProductDetail(){let e=(0,a.useRouter)(),{slug:t}=e.query,{products:n,loading:s,getProductBySlug:d}=(0,m.J)(),p=(0,i.useMemo)(()=>d(t),[t,n,d]);return(0,i.useEffect)(()=>{e.isReady},[e.isReady,t,p,s]),function(){let n=!e.isReady||s?(0,r.jsx)(h.Z,{}):t&&!p?(0,r.jsx)(LinktreeCuratedNotFound,{}):p?void 0:null;return void 0!==n?n:(0,r.jsx)(l.Z,{fluid:!0,className:"\n          bg-white min-vh-100\n          p-0 d-flex flex-column\n        ",children:(0,r.jsx)("div",{className:"mx-auto w-100",style:{maxWidth:"600px"},children:(0,r.jsxs)("div",{className:"py-2 py-md-3 px-3",children:[(0,r.jsxs)(o.Z,{color:"link",className:"\n          p-0 text-decoration-none text-muted\n          mb-5 d-flex align-items-center\n          gap-2 shadow-none\n        ",onClick:()=>e.back(),style:{fontSize:"11px",fontWeight:"bold",letterSpacing:"1px"},children:[(0,r.jsx)(c.Z,{size:14})," BACK"]}),(0,r.jsxs)("div",{className:"animate-fade-in",children:[(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsxs)("small",{className:"text-muted fw-bold",style:{fontSize:"10px"},children:["LOG PRODUCT #",null==p?void 0:p.id," ",null==p?void 0:p.name]}),(0,r.jsx)("h1",{className:"text-dark fw-bold mt-1",style:{fontSize:"1.75rem"},children:null==p?void 0:p.name})]}),(0,r.jsx)("img",{src:null==p?void 0:p.image,className:"\n          img-fluid rounded-3\n          mb-4 border\n        ",alt:null==p?void 0:p.name,style:{width:"100%",aspectRatio:"16/9",objectFit:"contain"}}),function(){let e=(null==p?void 0:p.description)||"",t=f.default.sanitize(e);return(0,r.jsx)("p",{className:"text-muted mb-5",style:{lineHeight:"1.7",fontSize:"14px",textAlign:"justify"},dangerouslySetInnerHTML:{__html:t}})}(),(0,r.jsx)("div",{className:"d-flex flex-column gap-2",children:null==p?void 0:p.links.map((e,t)=>(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"\n              btn btn-outline-dark\n              d-flex align-items-center\n              justify-content-center\n              gap-2 py-3 rounded-3\n              shadow-none text-decoration-none\n            ",style:{fontSize:"13px",fontWeight:"bold"},children:[(0,r.jsx)(u,{size:16})," BUY ON ",e.platform.toUpperCase()]},t))})]}),(0,r.jsx)("footer",{className:"mt-5 pt-5 text-center border-top border-light",children:(0,r.jsxs)("p",{className:"text-muted",style:{fontSize:"10px",letterSpacing:"1px"},children:["\xa9 ",new Date().getFullYear()," — AIMCHUAN CURATED PRODUCTS"]})})]})})})}()}function CuratedProductsPage(){let e=(0,a.useRouter)(),{slug:t}=e.query;return function(){let e=function(e){if(!e||"string"!=typeof e)return"";let t=e.replace(/-/g," ");return t.replace(/\b\w/g,e=>e.toUpperCase())}(t);return(0,r.jsxs)(m.v,{children:[(0,r.jsx)(s.Z,{title:"Product #".concat(e," - Curated Products")}),(0,r.jsx)(LinktreeCuratedProductDetail,{})]})}()}},11163:function(e,t,n){e.exports=n(59974)},53637:function(e,t,n){"use strict";var r=n(67294),a=n(45697),s=n.n(a),i=n(93967),l=n.n(i),o=n(22040),c=["className","cssModule","fluid","tag"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d={tag:o.iC,fluid:s().oneOfType([s().bool,s().string]),className:s().string,cssModule:s().object};function Container(e){var t=e.className,n=e.cssModule,a=e.fluid,s=e.tag,i=void 0===s?"div":s,d=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,c),u="container";!0===a?u="container-fluid":a&&(u="container-".concat(a));var f=(0,o.mx)(l()(t,u),n);return r.createElement(i,_extends({},d,{className:f}))}
16Container.propTypes=d,t.Z=Container}},function(e){e.O(0,[617,424,774,888,179],function(){return e(e.s=95870)}),_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.