PageSourceSearch

https://terpusat.com/_next/static/chunks/pages/d/[slug]-f811e4eae0186f8c.js

js terpusat.com collected 2026-09-25 22:04:46 UTC 24,913 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3178],{57867:function(c,a,b){"use strict";var d=b(53778).Z;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(b,g){var c=e.default,a={loading:function(a){return a.error,a.isLoading,a.pastDelay,null}};if(d(b,Promise)?a.loader=function(){return b}:"function"==typeof b?a.loader=b:"object"==typeof b&&(a=f({},a,b)),(a=f({},a,g)).suspense)throw Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");if(a.loadableGenerated&&delete(a=f({},a,a.loadableGenerated)).loadableGenerated,"boolean"==typeof a.ssr&&!a.suspense){if(!a.ssr)return delete a.ssr,h(c,a);delete a.ssr}return c(a)},a.noSSR=h,g(b(82684));var e=g(b(8450));function f(){return(f=Object.assign||function(d){for(var a=1;a<arguments.length;a++){var b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(d[c]=b[c])}return d}).apply(this,arguments)}function g(a){return a&&a.__esModule?a:{default:a}}function h(b,a){return delete a.webpack,delete a.modules,b(a)}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&& void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),c.exports=a.default)},18546:function(e,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.LoadableContext=void 0;var a,f,d=(a=c(82684),a&&a.__esModule?a:{default:a}).default.createContext(null);b.LoadableContext=d},8450:function(e,d,a){"use strict";var b,f=a(13749).Z,g=a(52336).Z;Object.defineProperty(d,"__esModule",{value:!0}),d.default=void 0;var h=(b=a(82684),b&&b.__esModule?b:{default:b}),i=a(18546);function j(){return(j=Object.assign||function(d){for(var a=1;a<arguments.length;a++){var b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(d[c]=b[c])}return d}).apply(this,arguments)}var k=a(48216).useSyncExternalStore,l=[],m=[],n=!1;function o(b){var c=b(),a={loading:!0,loaded:null,error:null};return a.promise=c.then(function(b){return a.loading=!1,a.loaded=b,b}).catch(function(b){throw a.loading=!1,a.error=b,b}),a}var p=function(){function a(b,c){f(this,a),this._loadFn=b,this._opts=c,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return g(a,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var c=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var b=this._res,a=this._opts;if(b.loading){if("number"==typeof a.delay){if(0===a.delay)this._state.pastDelay=!0;else{var d=this;this._delay=setTimeout(function(){d._update({pastDelay:!0})},a.delay)}}if("number"==typeof a.timeout){var e=this;this._timeout=setTimeout(function(){e._update({timedOut:!0})},a.timeout)}}this._res.promise.then(function(){c._update({}),c._clearTimeouts()}).catch(function(a){c._update({}),c._clearTimeouts()}),this._update({})}},{key:"_update",value:function(a){this._state=j({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},a),this._callbacks.forEach(function(a){return a()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(a){var b=this;return this._callbacks.add(a),function(){b._callbacks.delete(a)}}}]),a}();function c(a){return function(e,c){var f=function(){if(!l){var b=new p(e,a);l={getCurrentValue:b.getCurrentValue.bind(b),subscribe:b.subscribe.bind(b),retry:b.retry.bind(b),promise:b.promise.bind(b)}}return l.promise()},g=function(){f();var b=h.default.useContext(i.LoadableContext);b&&Array.isArray(a.modules)&&a.modules.forEach(function(a){b(a)})},a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},c);a.suspense&&(a.lazy=h.default.lazy(a.loader));var l=null;if(!n){var d=a.webpack?a.webpack():a.modules;d&&m.push(function(h){var a=!0,c=!1,e=void 0;try{for(var g,b=d[Symbol.iterator]();!(a=(g=b.next()).done);a=!0){var i=g.value;if(-1!==h.indexOf(i))return f()}}catch(j){c=!0,e=j}finally{try{a||null==b.return||b.return()}finally{if(c)throw e}}})}var b=a.suspense?function(b,c){return g(),h.default.createElement(a.lazy,j({},b,{ref:c}))}:function(b,c){g();var d=k(l.subscribe,l.getCurrentValue,l.getCurrentValue);return h.default.useImperativeHandle(c,function(){return{retry:l.retry}},[]),h.default.useMemo(function(){var c;return d.loading||d.error?h.default.createElement(a.loading,{isLoading:d.loading,pastDelay:d.pastDelay,timedOut:d.timedOut,error:d.error,retry:l.retry}):d.loaded?h.default.createElement((c=d.loaded)&&c.__esModule?c.default:c,b):null},[b,d])};return b.preload=function(){return f()},b.displayName="LoadableComponent",h.default.forwardRef(b)}(o,a)}function q(a,c){for(var b=[];a.length;){var d=a.pop();b.push(d(c))}return Promise.all(b).then(function(){if(a.length)return q(a,c)})}c.preloadAll=function(){return new Promise(function(a,b){q(l).then(a,b)})},c.preloadReady=function(){var a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:[];return new Promise(function(c){var b=function(){return n=!0,c()};q(m,a).then(b,b)})},window.__NEXT_PRELOADREADY=c.preloadReady,d.default=c},51774:function(a,c,b){a.exports=b(57867)},80676:function(f,c,d){"use strict";c.IF=void 0;var a,b=(a=d(82684),a&&a.__esModule?a:{default:a});
1function g(a){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function h(d,c){for(var b=0;b<c.length;b++){var a=c[b];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}function i(a,b){return(i=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a})(a,b)}function j(b,a){return a&&("object"===g(a)||"function"==typeof a)?a:k(b)}function k(a){if(void 0===a)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function l(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function m(a){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(a)}var n=function(c,d){var b=c.props.config||{enabled:!0};b=JSON.parse(JSON.stringify(b));var g=window.onShareThisLoaded;if(window.onShareThisLoaded=function a(){if(!a.complete){if(!b.id){var e="sharethis-"+Date.now();b.id=e}c.buttons.current&&(c.buttons.current.id=b.id,window.__sharethis__.load(d,b)),g&&g(),a.complete=!0}},document.getElementById("sharethis-js"))window.__sharethis__&&window.onShareThisLoaded();else{var a=document.createElement("script");a.setAttribute("id","sharethis-js");var e={property:b.property||"",product:d,source:"reactjs"},f=Object.keys(e).map(function(a){return a+"="+e[a]}).join("&");a.src="https://platform-api.sharethis.com/js/sharethis.js?"+f,a.async=!0,document.body.appendChild(a)}};b.default.Component;var e=function(f){!function c(b,a){if("function"!=typeof a&&null!==a)throw TypeError("Super expression must either be null or a function");b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),a&&i(b,a)}(e,f);var g,k,a,c,d,o=(g=e,k=l(),function(){var a,b=m(g);if(k){var c=m(this).constructor;a=Reflect.construct(b,arguments,c)}else a=b.apply(this,arguments);return j(this,a)});function e(c){var a;return function c(a,b){if(!(a instanceof b))throw TypeError("Cannot call a class as a function")}(this,e),(a=o.call(this,c)).buttons=b.default.createRef(),a}return a=e,c=[{key:"componentDidMount",value:function(){n(this,"inline-share-buttons")}},{key:"render",value:function(){return b.default.createElement("div",{ref:this.buttons})}}],h(a.prototype,c),d&&h(a,d),e}(b.default.Component);c.IF=e,b.default.Component,b.default.Component},1589:function(f,b,c){"use strict";/**
2 * @license React
3 * use-sync-external-store-shim.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */ var a=c(82684),g="function"==typeof Object.is?Object.is:function(a,b){return a===b&&(0!==a||1/a==1/b)||a!=a&&b!=b},h=a.useState,i=a.useEffect,j=a.useLayoutEffect,k=a.useDebugValue;function l(a){var b=a.getSnapshot;a=a.value;try{var c=b();return!g(a,c)}catch(d){return!0}}function d(b,a){return a()}var e="undefined"==typeof window|| void 0===window.document|| void 0===window.document.createElement?d:function(c,b){var a=b(),d=h({inst:{value:a,getSnapshot:b}}),e=d[0].inst,f=d[1];return j(function(){e.value=a,e.getSnapshot=b,l(e)&&f({inst:e})},[c,a,b]),i(function(){return l(e)&&f({inst:e}),c(function(){l(e)&&f({inst:e})})},[c]),k(a),a};b.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:e},48216:function(a,c,b){"use strict";a.exports=b(1589)},14423:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/d/[slug]",function(){return c(35173)}])},83188:function(c,b,a){"use strict";a.d(b,{Z:function(){return h}});var d=a(21967),e=a(37559),f=a(28598),g=a(82684),h=function(a){var c=a.children,h=function(a,d){if(null==a)return{};var b,c,e=function(c,f){if(null==c)return{};var a,b,d={},e=Object.keys(c);for(b=0;b<e.length;b++)a=e[b],f.indexOf(a)>=0||(d[a]=c[a]);return d}(a,d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(c=0;c<f.length;c++)b=f[c],!(d.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(a,b)&&(e[b]=a[b])}return e}(a,["children"]),b=(0,g.useState)(!1),i=b[0],j=b[1];return((0,g.useEffect)(function(){j(!0)},[]),i)?(0,f.jsx)("div",(0,e.Z)((0,d.Z)({},h),{children:c})):null}},35173:function(h,b,a){"use strict";a.r(b),a.d(b,{"__N_SSP":function(){return N},default:function(){return O}});var i=a(28598),j=a(82684),k=a(34376),l=a(49773),m=a(59843),n=a(58426),o=function(a){var b,c,d,e,g
9=null!==(d=null==a?void 0:null===(b=a.product_prices)|| void 0===b?void 0:null===(c=b[1])|| void 0===c?void 0:c.price)&& void 0!==d?d:0,f=null!==(e=null==a?void 0:a.thumbnail_v1)&& void 0!==e?e:"".concat(m.kn).concat(n.sc),h=f.includes("https://")?f:"".concat(m.kn).concat(f);return{"@context":"https://schema.org/","@type":"Product",name:"".concat(a.name),image:["".concat(h),],description:"".concat(a.name," di ").concat(n.iC," tersedia pembayaran COD dengan penawaran spesial."),sku:"".concat(a.id),review:{"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:"4",bestRating:"5"},author:{"@type":"Person",name:"Terpusat"}},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"78"},offers:{"@type":"Offer",url:"".concat(n.FX).concat(a.slug),priceCurrency:"IDR",price:"".concat(g),itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock"}}},p=a(39135),q=a(58629),d=a(51774),e=a.n(d),r=a(80676),s=a(75198),t=a(71017),u=a(60992),v=a(88333),w=function(b){var c=b.product,a=b.images;return(0,i.jsxs)(u.Z,{slide:!1,interval:null,indicators:!0,nextIcon:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"currentColor",className:"bi bi-arrow-right-square-fill",viewBox:"0 0 16 16",children:(0,i.jsx)("path",{d:"M0 14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v12zm4.5-6.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5a.5.5 0 0 1 0-1z"})}),prevIcon:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"currentColor",className:"bi bi-arrow-left-square-fill",viewBox:"0 0 16 16",children:(0,i.jsx)("path",{d:"M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12zm-4.5-6.5H5.707l2.147-2.146a.5.5 0 1 0-.708-.708l-3 3a.5.5 0 0 0 0 .708l3 3a.5.5 0 0 0 .708-.708L5.707 8.5H11.5a.5.5 0 0 0 0-1z"})}),prevLabel:null,nextLabel:null,children:[!a.length&&(0,i.jsx)(u.Z.Item,{children:(0,i.jsx)(v.Z,{debounce:4e3,throttle:4e3,placeholderStyle:"placeholder400",containerStyle:"container400",maxHeightStyle:"imgMaxHeight400",width:"100%",height:"400px",className:"d-block w-100",src:n.sc,alt:"".concat(c.name),enableEqip:!0})}),!!a.length&&a.map(function(b,a){return(0,i.jsxs)(u.Z.Item,{children:[0===a&&(0,i.jsx)(v.Z,{debounce:4e3,throttle:4e3,placeholderStyle:"placeholder400",containerStyle:"container400",maxHeightStyle:"imgMaxHeight400",height:"400px",src:b.url,className:"d-block w-100",alt:"".concat(c.name,"-").concat(a)}),0!==a&&(0,i.jsx)("img",{height:"400px",src:b.url,className:"d-block w-100",alt:"".concat(c.name,"-").concat(a)})]},"".concat(a,"-d"))})]})},x=a(56327),y=a(20185),z=a(83188),A=a(13904),B=a(50974),c=function(c){var d,e,f,g,h,m,n,o,C=c.product,r=c.stock,b=c.prices,D=(0,k.useRouter)(),p=null!==(m=null==b?void 0:null===(d=b[0])|| void 0===d?void 0:d.price)&& void 0!==m?m:0,u=null!==(n=null==b?void 0:null===(e=b[0])|| void 0===e?void 0:null===(f=e.priceName)|| void 0===f?void 0:f.name)&& void 0!==n?n:"",v=null!==(o=null==b?void 0:null===(g=b[0])|| void 0===g?void 0:null===(h=g.priceName)|| void 0===h?void 0:h.quantity)&& void 0!==o?o:0,a=p/v,w=B.y.S,E=function(a){D.push("/admin/product/edit/".concat(a.id))};return(0,i.jsx)(z.Z,{children:(0,i.jsx)(x.Z,{className:"mt-2",children:(0,i.jsx)(x.Z.Body,{children:(0,i.jsxs)(l.Z,{fluid:!0,className:"p-0",children:[(0,i.jsxs)(s.Z,{children:[(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left font-weight-bold fw-bold",children:"Stok"})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-right float-end font-weight-bold fw-bold",children:null!=r?r:0})})]}),!!b.length&&(0,i.jsxs)(j.Fragment,{children:[(0,i.jsx)("h5",{className:"font-14 font-weight-bold fw-bold",children:"Harga Dasar"}),(0,i.jsxs)(s.Z,{children:[(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left",children:u})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:(0,A.o)(p)})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left",children:"Satuan"})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:(0,A.o)(a)})})]}),(0,i.jsx)("h5",{className:"font-14 font-weight-bold fw-bold",children:"Keuntungan Satuan"}),(0,i.jsxs)(s.Z,{children:[(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left",children:"10%"})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:(0,A.o)(a+10*a/100)})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left",children:"15%"})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:(0,A.o)(a+15*a/100)})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left",children:"20%"})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold",children:(0,A.o)(a+20*a/100)})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left",children:"25%"})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:(0,A.o)(a+25*a/100)})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left",children:"30%"})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:(0,A.o)(a+30*a/100)})})]}),(0,i.jsx)("h5",{className:"font-14 font-weight-bold fw-bold",children:"Keuntungan Karungan"}),(0,i.jsxs)(s.Z,{children:[(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,className:(0,q.Z)("mb-2"),children:(0,i.jsx)(x.Z.Text,{className:"font-14 text-left",children:"+20 ribu"})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:6,lg:6,xl:6,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:(0,A.o)(p+w)})})]})]}),(0,i.jsx)(s.Z,{children:(0,i.jsx)(t.Z,{className:"float-end",children:(0,i.jsx)(y.Z,{onClick:function(){return E(C)},variant:"terpusat",size:"sm",className:"btn-block float-end",children:"Ubah Produk"})})})]})})})})};c.defaultProps={stock:0,prices:null};var C=c,D=a(50788),E=a(75241),F=function(b){var c,d,e,f,g,j=b.loading,o=b.product,a=b.prices,h=b.channels,p=(0,E.a)(),k=0,m=null!==(f=null==a?void 0:null===(c=a[0])|| void 0===c?void 0:null===(d=c.priceName)|| void 0===d?void 0:d.name)&& void 0!==f?f:"",n=null!==(g=null==a?void 0:null===(e=a[0])|| void 0===e?void 0:e.price)&& void 0!==g?g:0,q=function(b){var c,d,e,f=arguments.length>1&& void 0!==arguments[1]?arguments[1]:"_blank",g=(null==b?void 0:null===(c=b.channel_type)|| void 0===c?void 0:c.name.toLowerCase())||"primary",h=(null!==(e=null==a?void 0:null===(d=a[0])|| void 0===d?void 0:d.price)&& void 0!==e?e:0)+B.y.S;(0,D.K)("BuyToMP",{platform:g,currency:"IDR",value:h}),window.open(b.link,f)};return(0,i.jsxs)(z.Z,{children:[(0,i.jsx)(x.Z,{className:"mb-4",children:(0,i.jsxs)(x.Z.Body,{children:[(0,i.jsx)("h5",{className:"font-14 font-weight-bold fw-bold",children:"Harga"}),(0,i.jsxs)(l.Z,{fluid:!0,className:"p-0",children:[!!a.length&&a.map(function(a,b){if(2===a.show)return k++,(0,i.jsxs)(s.Z,{children:[(0,i.jsx)(t.Z,{xs:6,sm:6,md:12,lg:12,xl:12,children:(0,i.jsx)(x.Z.Text,{className:"font-13 text-left",children:a.priceName.name})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:12,lg:12,xl:12,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:(0,A.o)(a.price)})})]},b)}),k<2&&(0,i.jsxs)(s.Z,{children:[(0,i.jsx)(t.Z,{xs:6,sm:6,md:12,lg:12,xl:12,children:(0,i.jsx)(x.Z.Text,{className:"font-13 text-left",children:m})}),(0,i.jsx)(t.Z,{xs:6,sm:6,md:12,lg:12,xl:12,children:(0,i.jsx)(x.Z.Text,{className:"font-16 text-right float-end font-weight-bold fw-bold",children:j?"...":(0,A.o)(n+B.y.S)})})]})]})]})}),(0,i.jsx)(x.Z,{children:(0,i.jsxs)(x.Z.Body,{children:[(0,i.jsx)("h5",{className:"font-14 font-weight-bold fw-bold",children:"Dapat dibeli"}),(0,i.jsxs)(x.Z.Text,{className:"font-14 d-grid",children:[(0,i.jsx)(y.Z,{onClick:function(){var c,d,e,f,g,h,i,j=null!==(h=null==p?void 0:null===(c=p.user)|| void 0===c?void 0:null===(d=c.identities)|| void 0===d?void 0:null===(e=d[0])|| void 0===e?void 0:null===(f=e.identity_data)|| void 0===f?void 0:f.full_name)&& void 0!==h?h:"Pengunjung",b=null!==(i=null==a?void 0:null===(g=a[2])|| void 0===g?void 0:g.price)&& void 0!==i?i:0;b||(b=n+B.y.S),(0,D.K)("BuyHere",{platform:"Terpusat",currency:"IDR",value:b}),window.open("https://wa.me/+6289531803699?text=Halo%20Terpusat%2C%20saya%20".concat(j,"%20mau%20beli%20").concat(o.name,"%20dengan%20harga%20").concat((0,A.o)(b),"%20").concat(m,"%20
9dari%20halaman%20").concat(window.location.href,"%20.%20Mohon%20dibantu."),"_blank")},variant:"terpusat",size:"sm",className:"btn-block mb-1",children:"Langsung"}),h.length>0&&h.map(function(a,e){var b,c,d;return(0,i.jsxs)(y.Z,{onClick:function(){return q(a)},variant:"".concat((null==a?void 0:null===(b=a.channel_type)|| void 0===b?void 0:b.name.toLowerCase())||"primary"),size:"sm",className:"btn-block mb-1",children:["di ",null!==(d=null==a?void 0:null===(c=a.channel_type)|| void 0===c?void 0:c.name)&& void 0!==d?d:"Platform"]},"".concat(e,"-").concat(a.id))})]})]})})]})},G=e()(function(){return a.e(1855).then(a.bind(a,71855))},{loadableGenerated:{webpack:function(){return[71855]}},ssr:!1}),H=function(d){var e,f,g,h,j,l,m,o,p,u,v,x,y,z,A,B,D,H,b=d.product,J=d.loadingCsr,a=d.csrProduct,L=(0,E.a)().isAdmin,M=(0,k.useRouter)().query.slug,N=null!==(x=null==a?void 0:a.related)&& void 0!==x?x:[],O="".concat("https://terpusat.com","/d/").concat(M),I=null!==(y=null==b?void 0:b.name)&& void 0!==y?y:"",P=null!==(z=null==b?void 0:b.description)&& void 0!==z?z:"",c=(null==a?void 0:null===(e=a.images)|| void 0===e?void 0:e.length)?null==a?void 0:a.images:(null==a?void 0:null===(f=a.thumbnails)|| void 0===f?void 0:null===(g=f.contents)|| void 0===g?void 0:g.length)?null==a?void 0:null===(h=a.thumbnails)|| void 0===h?void 0:h.contents:[],Q=(null==c?void 0:c.length)?c[0].url:n.sc,R=null!==(A=null==a?void 0:null===(j=a.product_client)|| void 0===j?void 0:null===(l=j[0])|| void 0===l?void 0:l.product_channels)&& void 0!==A?A:[],K=null!==(B=null==a?void 0:null===(m=a.product_client)|| void 0===m?void 0:null===(o=m[0])|| void 0===o?void 0:o.productprices)&& void 0!==B?B:[],S=null!==(D=null==a?void 0:null===(p=a.product_client)|| void 0===p?void 0:null===(u=p[0])|| void 0===u?void 0:u.stock)&& void 0!==D?D:0,T=null!==(H=null==b?void 0:null===(v=b.category_v2)|| void 0===v?void 0:v.name)&& void 0!==H?H:"";return(0,i.jsxs)(s.Z,{className:(0,q.Z)("mt-4 pt-2"),children:[(0,i.jsxs)(t.Z,{xs:12,sm:12,md:4,lg:4,xl:4,className:"mb-4",children:[(0,i.jsx)(w,{product:b,images:c}),L&&(0,i.jsx)(C,{product:b,stock:S,prices:K})]}),(0,i.jsxs)(t.Z,{xs:12,sm:12,md:5,lg:5,xl:5,className:"mb-4",children:[(0,i.jsx)("h2",{className:"font-16 font-weight-bold fw-bold",children:I}),(0,i.jsx)("br",{}),(0,i.jsx)(r.IF,{config:{alignment:"right",color:"white",enabled:!0,font_size:11,labels:null,language:"en",networks:["whatsapp","messenger","facebook","twitter","sharethis",],show_total:!0,padding:12,radius:0,size:30,title:I,url:O,image:Q,description:"Jual produk ".concat(I," ").concat(T," di terpusat.com")}}),(0,i.jsx)("br",{}),(0,i.jsx)("div",{className:"font-14",dangerouslySetInnerHTML:{__html:P}})]}),(0,i.jsx)(t.Z,{xs:12,sm:12,md:3,lg:3,xl:3,children:(0,i.jsx)(F,{loading:J,product:b,channels:R,prices:K})}),(0,i.jsx)(t.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,i.jsx)(G,{loading:J,title:"Produk Terkait",data:N})})]})},I=a(79485),J=a(27050),K=a(70638),f=a(95582);function g(){var a=(0,K.Z)(["\nquery getProductCsrBySlug($where:product_v2_bool_exp!, $folder: FolderWhereUniqueInput!, $where_related:product_v2_bool_exp!, $img_kit: image_kit_filter) {\n    images: image_kit(object: $img_kit) {\n        fileId\n        filePath\n        thumbnail\n        url\n        mime\n    }\n    thumbnails: folder(where: $folder) {\n        id\n        contents {\n            id\n            url\n        }\n    }\n    product_client: product_v2(where: $where) {\n        thumbnail_v1\n        stock\n        product_channels {\n            id\n            link\n            channel_type {\n                id\n                name\n            }\n        }\n        productprices: product_prices(order_by: {index: asc}) {\n            id\n            price\n            price_type_id\n            show\n            index\n            priceName: price_type {\n                name\n                quantity\n            }\n        }\n    }\n    related: product_v2(where: $where_related, offset: 0, limit: 10) {\n        id\n        name\n        slug\n        thumbnail_v1\n        created_at\n        category_v2 {\n          name\n          slug\n        }\n        product_prices(order_by: {index: asc}) {\n          id\n          price\n          priceName: price_type {\n              name\n          }\n        }\n      }\n}"]);return g=function(){return a},a}var L=(0,f.Ps)(g()),M=function(e){var c,d,f=e.errorCode,a=e.product,g=(0,k.useRouter)().query.slug,b=null!==(c=null==a?void 0:a.id)&& void 0!==c?c:0,h=(0,J.a)(L,{variables:{where_related:{status:{_eq:"2"},id:{_neq:b}},where:{slug:{_eq:g}},folder:{slug:g},img_kit:{folder:"products",sort:"ASC_CREATED",id:b,skip:0,limit:5}},skip:!b}),m=h.data,n=h.loading,j=null!==(d=null==a?void 0:a.name)&& void 0!==d?d:"Produk",q={title:200===f?j:"Produk Tidak Ditemukan",description:"Jual produk ".concat(j),follow:!0,schema:200===f?o(a):""};return(0,i.jsx)(p.Z,{seo:q,children:(0,i.jsx)("main",{children:(0,i.jsxs)(l.Z,{fluid:!0,className:"p-0",children:[!b&&(0,i.jsx)(I.Z,{type:"produk",message:"Kembali ke halaman depan, atau hubungi Admin jika Anda tersesat."}),!!b&&(0,i.jsx)(H,{product:a,loadingCsr:n,csrProduct:m})]})})})},N=!0,O=function(a){var b=a.errorCode,c=a.product;return(0,i.jsx)(M,{product:c,errorCode:b})}}},function(a){a.O(0,[2239,7889,4395,9135,7393,9774,2888,179],function(){var b;return a(a.s=14423)}),_N_E=a.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.