PageSourceSearch

https://voltaindonesia.com/_next/static/chunks/pages/promo-5b1fbdc957d2d651b175.js

js voltaindonesia.com collected 2026-10-02 04:14:02 UTC 6,191 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2002],{47378:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return x},default:function(){return v}});var n=r(67294),o=r(92809),i=r(83789),s=r(41664),l=r(85893);function a(e){var t,r=e.promo;return(0,l.jsx)("div",{className:"flex flex-col promo-card transition ease-in-out delay-150 opacity-50",children:(0,l.jsx)("div",{className:"rounded-[20px] overflow-hidden border border-gray-200 h-full bg-gray-50",children:(0,l.jsx)("img",{src:null===(t=r.mainImage)||void 0===t?void 0:t.fileUrl,alt:r.title,className:"max-w-full h-full w-full object-contain"})})})}var c=r(46066),d=r(11163);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){var t=e.className,r=(e.style,e.type),n=e.onClick;return(0,l.jsxs)("div",{onClick:n,children:["prev"===r&&(0,l.jsx)("button",{className:"".concat(t," z-10 !bg-[white] shadow-md !rounded-full !w-[35px] !h-[35px]"),children:(0,l.jsx)("img",{src:"/images/icons/chevron-down-light.png",className:"self-center m-auto rotate-90 filter brightness-1 invert"})}),"next"===r&&(0,l.jsx)("button",{className:"".concat(t," z-10 !bg-[white] shadow-md !rounded-full !w-[35px] !h-[35px]"),children:(0,l.jsx)("img",{src:"/images/icons/chevron-down-light.png",className:"self-center m-auto -rotate-90 filter brightness-1 invert"})})]})}function m(e){for(var t,r,o=e.promos,u=(0,d.useRouter)(),m=(0,n.useState)(0),h=m[0],x=m[1],v=(0,n.useState)(!1),g=v[0],b=v[1],j=(0,n.useRef)(null),y=u.query.p;o.length&&o.length<4;)o.push.apply(o,(0,i.Z)(o));var w={dots:!1,focusOnSelect:!0,infinite:!0,speed:500,slidesToShow:3,slidesToScroll:1,centerMode:!0,centerPadding:"30px",prevArrow:(0,l.jsx)(f,{type:"prev"}),nextArrow:(0,l.jsx)(f,{type:"next"}),afterChange:function(e){return function(e){x(e),u.replace("/promo?p=".concat(N(o[e].title)))}(e)},responsive:[{breakpoint:1150,settings:{centerPadding:"15px"}},{breakpoint:767,settings:{centerPadding:"15px",centerMode:!1,slidesToScroll:1,slidesToShow:1}}]};function N(e){return e.toLowerCase().split(" ").join("-")}var O,_=(0,n.useMemo)((function(){return o[h]}),[h]);return(0,n.useEffect)((function(){var e,t=o.findIndex((function(e){return N(e.title)==y})),r=t>=0?t:0;null===(e=j.current)||void 0===e||e.slickGoTo(r),x(r)}),[]),o.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.Z,p(p({ref:j},w),{},{children:o.map((function(e){return(0,l.jsx)("div",{className:"md:px-6 lg:px-8",children:(0,l.jsx)(a,{promo:e})},e._id)}))})),(0,l.jsxs)("section",{className:"py-3 md:py-8 md:pt-10",children:[(0,l.jsx)("h4",{className:"font-extrabold text-2xl",children:_.title}),(0,l.jsxs)("div",{className:"overflow-hidden  ".concat(!g&&"h-[55px]"),children:[(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:_.description}}),(0,l.jsx)("p",{children:_.period}),(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:_.termsCondition}}),(0,l.jsx)("div",{className:"flex justify-end",children:(null===(t=_.linkCTA)||void 0===t?void 0:t.trim())&&(null===(r=_.labelCTA)||void 0===r?void 0:r.trim())&&(0,l.jsx)(s.default,{href:(O=_.linkCTA,/^https?:\/\//i.test(O)||(O="https://".concat(O)),O),children:(0,l.jsx)("button",{className:"font-extrabold text-black py-2 px-6 bg-volta-btn-grad-1a rounded text-sm md:text-md disabled:bg-gray-200 disabled:text-gray-400 disabled:cursor-default w-full md:w-auto buy-btn",children:_.labelCTA})})})]}),(0,l.jsxs)("div",{className:"text-center relative cursor-pointer ".concat(g&&"hidden"),children:[(0,l.jsx)("div",{className:"promo-hidden-desc"}),(0,l.jsxs)("div",{className:"flex flex-col items-center",onClick:function(){return b(!0)},children:[(0,l.jsx)("h4",{className:"font-bold pt-3",children:"Lihat Selengkapnya"}),(0,l.jsx)("img",{src:"/icons/drop-down-grad.svg",alt:"volta"})]})]})]})]}):(0,l.jsx)("div",{className:"h-[70vh] w-full flex justify-center items-center text-center",children:(0,l.jsx)("h2",{className:"text-lg font-bold",children:"Tidak ada promo tersedia"})})}var h=r(59138),x=!0;function v(e){var t=e.promos;return(0,l.jsx)(h.Z,{type:"default",seo:{title:"Volta Indonesia - Promo",description:"Promo Volta"},header:"dark",children:(0,l.jsx)("div",{className:"font-mulish bg-[#F5F5F5] sm:bg-white min-h-[80vh]",id:"promo-page",children:(0,l.jsx)("div",{className:"py-[5rem] pb-[4rem] md:py-20 lg:px-32",children:(0,l.jsx)("div",{className:"pt-[30px] lg:pt-[85px] px-8 lg:px-10",children:(0,l.jsx)(m,{promos:t})})})})})}},24827:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/promo",function(){return r(47378)}])},56586:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},83789:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(56586);var o=r(16988);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},16988:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(56586);function o(e,t){if(e){if("string"===typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}},function(e){e.O(0,[1828,9830,1033,6066,9138,9774,2888,179],(function(){return t=24827,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.