PageSourceSearch

https://voltaindonesia.com/_next/static/chunks/6089-434be5b2beb3e454fb2c.js

js voltaindonesia.com collected 2026-10-02 04:13:43 UTC 25,376 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6089],{39917:function(t,e,n){"use strict";var r=n(53848),o=n(83115);e.default=function(t){var e=t.src,n=t.sizes,o=t.unoptimized,u=void 0!==o&&o,l=t.priority,f=void 0!==l&&l,m=t.loading,y=t.lazyBoundary,v=void 0===y?"200px":y,g=t.className,b=t.quality,S=t.width,w=t.height,P=t.objectFit,I=t.objectPosition,k=t.onLoadingComplete,j=t.loader,A=void 0===j?T:j,C=t.placeholder,x=void 0===C?"empty":C,E=t.blurDataURL,z=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["src","sizes","unoptimized","priority","loading","lazyBoundary","className","quality","width","height","objectFit","objectPosition","onLoadingComplete","loader","placeholder","blurDataURL"]),M=n?"responsive":"intrinsic";"layout"in z&&(z.layout&&(M=z.layout),delete z.layout);var _="";if(function(t){return"object"===typeof t&&(h(t)||function(t){return void 0!==t.src}(t))}(e)){var R=h(e)?e.default:e;if(!R.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(R)));if(E=E||R.blurDataURL,_=R.src,(!M||"fill"!==M)&&(w=w||R.height,S=S||R.width,!R.height||!R.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(R)))}e="string"===typeof e?e:_;var N=D(S),L=D(w),F=D(b),V=!f&&("lazy"===m||"undefined"===typeof m);(e.startsWith("data:")||e.startsWith("blob:"))&&(u=!0,V=!1);d.has(e)&&(V=!1);0;var W,q,B,U=c.useIntersection({rootMargin:v,disabled:!V}),H=r(U,2),K=H[0],Z=H[1],J=!V||Z,G={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:P,objectPosition:I},Q="blur"===x?{filter:"blur(20px)",backgroundSize:P||"cover",backgroundImage:'url("'.concat(E,'")'),backgroundPosition:I||"0% 0%"}:{};if("fill"===M)W={display:"block",overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",margin:0};else if("undefined"!==typeof N&&"undefined"!==typeof L){var $=L/N,X=isNaN($)?"100%":"".concat(100*$,"%");"responsive"===M?(W={display:"block",overflow:"hidden",position:"relative",boxSizing:"border-box",margin:0},q={display:"block",boxSizing:"border-box",paddingTop:X}):"intrinsic"===M?(W={display:"inline-block",maxWidth:"100%",overflow:"hidden",position:"relative",boxSizing:"border-box",margin:0},q={boxSizing:"border-box",display:"block",maxWidth:"100%"},B='<svg width="'.concat(N,'" height="').concat(L,'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>')):"fixed"===M&&(W={overflow:"hidden",boxSizing:"border-box",display:"inline-block",position:"relative",width:N,height:L})}else 0;var Y={src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",srcSet:void 0,sizes:void 0};J&&(Y=O({src:e,unoptimized:u,layout:M,width:N,quality:F,sizes:n,loader:A}));var tt=e;return i.default.createElement("div",{style:W},q?i.default.createElement("div",{style:q},B?i.default.createElement("img",{style:{maxWidth:"100%",display:"block",margin:0,border:"none",padding:0},alt:"","aria-hidden":!0,src:"data:image/svg+xml;base64,".concat(s.toBase64(B))}):null):null,i.default.createElement("img",Object.assign({},z,Y,{decoding:"async","data-nimg":M,className:g,ref:function(t){K(t),function(t,e,n,r,o){if(!t)return;var i=function(){t.src.startsWith("data:")||("decode"in t?t.decode():Promise.resolve()).catch((function(){})).then((function(){if("blur"===r&&(t.style.filter="none",t.style.backgroundSize="none",t.style.backgroundImage="none"),d.add(e),o){var n=t.naturalWidth,i=t.naturalHeight;
1o({naturalWidth:n,naturalHeight:i})}}))};t.complete?i():t.onload=i}(t,tt,0,x,k)},style:p({},G,Q)})),i.default.createElement("noscript",null,i.default.createElement("img",Object.assign({},z,O({src:e,unoptimized:u,layout:M,width:N,quality:F,sizes:n,loader:A}),{decoding:"async","data-nimg":M,style:G,className:g,loading:m||"lazy"}))),f?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Y.src+Y.srcSet+Y.sizes,rel:"preload",as:"image",href:Y.srcSet?void 0:Y.src,imagesrcset:Y.srcSet,imagesizes:Y.sizes})):null)};var i=f(n(67294)),a=f(n(70639)),s=n(28997),u=n(5809),c=n(7426);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return t&&t.__esModule?t:{default:t}}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){l(t,e,n[e])}))}return t}var d=new Set;var m=new Map([["default",function(t){var e=t.root,n=t.src,r=t.width,o=t.quality;0;return"".concat(e,"?url=").concat(encodeURIComponent(n),"&w=").concat(r,"&q=").concat(o||75)}],["imgix",function(t){var e=t.root,n=t.src,r=t.width,o=t.quality,i=new URL("".concat(e).concat(P(n))),a=i.searchParams;a.set("auto",a.get("auto")||"format"),a.set("fit",a.get("fit")||"max"),a.set("w",a.get("w")||r.toString()),o&&a.set("q",o.toString());return i.href}],["cloudinary",function(t){var e=t.root,n=t.src,r=t.width,o=t.quality,i=["f_auto","c_limit","w_"+r,"q_"+(o||"auto")].join(",")+"/";return"".concat(e).concat(i).concat(P(n))}],["akamai",function(t){var e=t.root,n=t.src,r=t.width;return"".concat(e).concat(P(n),"?imwidth=").concat(r)}],["custom",function(t){var e=t.src;throw new Error('Image with src "'.concat(e,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function h(t){return void 0!==t.default}var y={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default"}||u.imageConfigDefault,v=y.deviceSizes,g=y.imageSizes,b=y.loader,S=y.path,w=(y.domains,[].concat(o(v),o(g)));function O(t){var e=t.src,n=t.unoptimized,r=t.layout,i=t.width,a=t.quality,s=t.sizes,u=t.loader;if(n)return{src:e,srcSet:void 0,sizes:void 0};var c=function(t,e,n){if(n&&("fill"===e||"responsive"===e)){for(var r,i=/(^|\s)(1?\d?\d)vw/g,a=[];r=i.exec(n);r)a.push(parseInt(r[2]));if(a.length){var s=.01*Math.min.apply(Math,a);return{widths:w.filter((function(t){return t>=v[0]*s})),kind:"w"}}return{widths:w,kind:"w"}}return"number"!==typeof t||"fill"===e||"responsive"===e?{widths:v,kind:"w"}:{widths:o(new Set([t,2*t].map((function(t){return w.find((function(e){return e>=t}))||w[w.length-1]})))),kind:"x"}}(i,r,s),l=c.widths,f=c.kind,p=l.length-1;return{sizes:s||"w"!==f?s:"100vw",srcSet:l.map((function(t,n){return"".concat(u({src:e,quality:a,width:t})," ").concat("w"===f?t:n+1).concat(f)})).join(", "),src:u({src:e,quality:a,width:l[p]})}}function D(t){return"number"===typeof t?t:"string"===typeof t?parseInt(t,10):void 0}function T(t){var e=m.get(b);if(e)return e(p({root:S},t));throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(u.VALID_LOADERS.join(", "),". Received: ").concat(b))}function P(t){return"/"===t[0]?t.slice(1):t}v.sort((function(t,e){return t-e})),w.sort((function(t,e){return t-e}))},28997:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toBase64=function(t){return window.btoa(t)}},5809:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.imageConfigDefault=e.VALID_LOADERS=void 0;e.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"];e.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",domains:[],disableStaticImages:!1,minimumCacheTTL:60}},25675:function(t,e,n){t.exports=n(39917)},98130:function(t,e,n){"use strict";var r=n(67294),o=n(45697);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}
1function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function d(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t)||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.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(t);if(0===e)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),o=r?r[1]:"",i=r?r[3]:"",a=r?r[2]:n,s=a.length>=e?a:(d(Array(e)).map((function(){return"0"})).join("")+a).slice(-1*e);return"".concat(o).concat(s).concat(i)}var y={daysInHours:!1,zeroPadTime:2};function v(t,e){var n=t.days,r=t.hours,o=t.minutes,i=t.seconds,a=Object.assign(Object.assign({},y),e),s=a.daysInHours,u=a.zeroPadTime,c=a.zeroPadDays,l=void 0===c?u:c,f=Math.min(2,u),p=s?h(r+24*n,u):h(r,f);return{days:s?"":h(n,l),hours:p,minutes:h(o,f),seconds:h(i,f)}}var g=function(t){u(n,t);var e=p(n);function n(){var t;return i(this,n),(t=e.apply(this,arguments)).state={count:t.props.count||3},t.startCountdown=function(){t.interval=window.setInterval((function(){0===t.state.count-1?(t.stopCountdown(),t.props.onComplete&&t.props.onComplete()):t.setState((function(t){return{count:t.count-1}}))}),1e3)},t.stopCountdown=function(){clearInterval(t.interval)},t.addTime=function(e){t.stopCountdown(),t.setState((function(t){return{count:t.count+e}}),t.startCountdown)},t}return s(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,r.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(r.Component);g.propTypes={count:o.number,children:o.element,onComplete:o.func};var b=function(t){u(n,t);var e=p(n);function n(t){var o;if(i(this,n),(o=e.call(this,t)).mounted=!1,o.initialTimestamp=o.calcOffsetStartTimestamp(),o.offsetStartTimestamp=o.props.autoStart?0:o.initialTimestamp,o.offsetTime=0,o.legacyMode=!1,o.legacyCountdownRef=(0,r.createRef)(),o.tick=function(){var t=o.calcTimeDelta(),e=t.completed&&!o.props.overtime?void 0:o.props.onTick;o.setTimeDeltaState(t,void 0,e)},o.start=function(){if(!o.isStarted()){var t=o.offsetStartTimestamp;o.offsetStartTimestamp=0,o.offsetTime+=t?o.calcOffsetStartTimestamp()-t:0;var e=o.calcTimeDelta();o.setTimeDeltaState(e,"STARTED",o.props.onStart),o.props.controlled||e.completed&&!o.props.overtime||(o.clearTimer(),o.interval=window.setInterval(o.tick,o.props.intervalDelay))}},o.pause=function(){o.isPaused()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.setTimeDeltaState(o.state.timeDelta,"PAUSED",o.props.onPause))},o.stop=function(){o.isStopped()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.offsetTime=o.offsetStartTimestamp-o.initialTimestamp,o.setTimeDeltaState(o.calcTimeDelta(),"STOPPED",o.props.onStop))},o.isStarted=function(){return o.isStatus("STARTED")},o.isPaused=function(){return o.isStatus("PAUSED")},o.isStopped=function(){return o.isStatus("STOPPED")},o.isCompleted=function(){return o.isStatus("COMPLETED")},t.date){var a=o.calcTimeDelta();
1o.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else o.legacyMode=!0;return o}return s(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(t){this.legacyMode||this.props.date!==t.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var t=this.props,e=t.date,n=t.now,r=t.precision,o=t.controlled,i=t.overtime;return function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.now,o=void 0===r?Date.now:r,i=n.precision,a=void 0===i?0:i,s=n.controlled,u=n.offsetTime,c=void 0===u?0:u,l=n.overtime;e="string"===typeof t?new Date(t).getTime():t instanceof Date?t.getTime():t,s||(e+=c);var f=s?e:e-o(),p=Math.min(20,Math.max(0,a)),d=Math.round(1e3*parseFloat(((l?f:Math.max(0,f))/1e3).toFixed(p))),m=Math.abs(d)/1e3;return{total:d,days:Math.floor(m/86400),hours:Math.floor(m/3600%24),minutes:Math.floor(m/60%60),seconds:Math.floor(m%60),milliseconds:Number((m%1*1e3).toFixed()),completed:d<=0}}(e,{now:n,precision:r,controlled:o,offsetTime:this.offsetTime,overtime:i})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(t){this.legacyCountdownRef.current.addTime(t)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(t){return this.state.status===t}},{key:"setTimeDeltaState",value:function(t,e,n){var r=this;if(this.mounted){var o=t.completed&&!this.state.timeDelta.completed,i=t.completed&&"STARTED"===e;o&&!this.props.overtime&&this.clearTimer();return this.setState((function(n){var o=e||n.status;return t.completed&&!r.props.overtime?o="COMPLETED":e||"COMPLETED"!==o||(o="STOPPED"),{timeDelta:t,status:o}}),(function(){n&&n(r.state.timeDelta),r.props.onComplete&&(o||i)&&r.props.onComplete(t,i)}))}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var t=this.props,e=t.daysInHours,n=t.zeroPadTime,r=t.zeroPadDays,o=this.state.timeDelta;return Object.assign(Object.assign({},o),{api:this.getApi(),props:this.props,formatted:v(o,{daysInHours:e,zeroPadTime:n,zeroPadDays:r})})}},{key:"render",value:function(){if(this.legacyMode){var t=this.props,e=t.count,n=t.children,o=t.onComplete;return(0,r.createElement)(g,{ref:this.legacyCountdownRef,count:e,onComplete:o},n)}var i=this.props,a=i.className,s=i.overtime,u=i.children,c=i.renderer,l=this.getRenderProps();if(c)return c(l);if(u&&this.state.timeDelta.completed&&!s)return(0,r.cloneElement)(u,{countdown:l});var f=l.formatted,p=f.days,d=f.hours,m=f.minutes,h=f.seconds;return(0,r.createElement)("span",{className:a},l.total<0?"-":"",p,p?":":"",d,":",m,":",h)}}]),n}(r.Component);b.defaultProps=Object.assign(Object.assign({},y),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),b.propTypes={date:(0,o.oneOfType)([(0,o.instanceOf)(Date),o.string,o.number]),daysInHours:o.bool,zeroPadTime:o.number,zeroPadDays:o.number,controlled:o.bool,intervalDelay:o.number,precision:o.number,autoStart:o.bool,overtime:o.bool,className:o.string,children:o.element,renderer:o.func,now:o.func,onMount:o.func,onStart:o.func,onPause:o.func,onStop:o.func,onTick:o.func,onComplete:o.func},e.ZP=b},71470:function(t,e,n){"use strict";e.Z=void 0;var r=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==g(t)&&"function"!==typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}r.default=t,n&&n.set(t,r);return r}(n(67294)),o=["placeholder","separator","isLastChild","inputStyle","focus","isDisabled","hasErrored","errorStyle","focusStyle","disabledStyle","shouldAutoFocus","isInputNum","index","value","className","isInputSecure"];function i(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}
1function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return(g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var b=function(t){return"object"===g(t)}
1,S=function(t){f(n,t);var e=d(n);function n(t){var o;return u(this,n),v(h(o=e.call(this,t)),"getClasses",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return!b(t)&&!1!==t})).join(" ")})),v(h(o),"getType",(function(){var t=o.props,e=t.isInputSecure,n=t.isInputNum;return e?"password":n?"tel":"text"})),o.input=r.default.createRef(),o}return l(n,[{key:"componentDidMount",value:function(){var t=this.props,e=t.focus,n=t.shouldAutoFocus,r=this.input.current;r&&e&&n&&r.focus()}},{key:"componentDidUpdate",value:function(t){var e=this.props.focus,n=this.input.current;t.focus!==e&&n&&e&&(n.focus(),n.select())}},{key:"render",value:function(){var t=this.props,e=t.placeholder,n=t.separator,i=t.isLastChild,u=t.inputStyle,c=t.focus,l=t.isDisabled,f=t.hasErrored,p=t.errorStyle,d=t.focusStyle,m=t.disabledStyle,h=(t.shouldAutoFocus,t.isInputNum),y=t.index,v=t.value,g=t.className,S=(t.isInputSecure,s(t,o));return r.default.createElement("div",{className:g,style:{display:"flex",alignItems:"center"}},r.default.createElement("input",a({"aria-label":"".concat(0===y?"Please enter verification code. ":"").concat(h?"Digit":"Character"," ").concat(y+1),autoComplete:"off",style:Object.assign({width:"1em",textAlign:"center"},b(u)&&u,c&&b(d)&&d,l&&b(m)&&m,f&&b(p)&&p),placeholder:e,className:this.getClasses(u,c&&d,l&&m,f&&p),type:this.getType(),maxLength:"1",ref:this.input,disabled:l,value:v||""},S)),!i&&n)}}]),n}(r.PureComponent),w=function(t){f(n,t);var e=d(n);function n(){var t;u(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return v(h(t=e.call.apply(e,[this].concat(i))),"state",{activeInput:0}),v(h(t),"getOtpValue",(function(){return t.props.value?t.props.value.toString().split(""):[]})),v(h(t),"getPlaceholderValue",(function(){var e=t.props,n=e.placeholder,r=e.numInputs;if("string"===typeof n){if(n.length===r)return n;n.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}})),v(h(t),"handleOtpChange",(function(e){(0,t.props.onChange)(e.join(""))})),v(h(t),"isInputValueValid",(function(e){return(t.props.isInputNum?!isNaN(parseInt(e,10)):"string"===typeof e)&&1===e.trim().length})),v(h(t),"focusInput",(function(e){var n=t.props.numInputs,r=Math.max(Math.min(n-1,e),0);t.setState({activeInput:r})})),v(h(t),"focusNextInput",(function(){var e=t.state.activeInput;t.focusInput(e+1)})),v(h(t),"focusPrevInput",(function(){var e=t.state.activeInput;t.focusInput(e-1)})),v(h(t),"changeCodeAtFocus",(function(e){var n=t.state.activeInput,r=t.getOtpValue();r[n]=e[0],t.handleOtpChange(r)})),v(h(t),"handleOnPaste",(function(e){e.preventDefault();var n=t.state.activeInput,r=t.props,o=r.numInputs;if(!r.isDisabled){for(var i=t.getOtpValue(),a=n,s=e.clipboardData.getData("text/plain").slice(0,o-n).split(""),u=0;u<o;++u)u>=n&&s.length>0&&(i[u]=s.shift(),a++);t.setState({activeInput:a},(function(){t.focusInput(a),t.handleOtpChange(i)}))}})),v(h(t),"handleOnChange",(function(e){var n=e.target.value;t.isInputValueValid(n)&&t.changeCodeAtFocus(n)})),v(h(t),"handleOnKeyDown",(function(e){8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),t.changeCodeAtFocus(""),t.focusPrevInput()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),t.changeCodeAtFocus("")):37===e.ke
1yCode||"ArrowLeft"===e.key?(e.preventDefault(),t.focusPrevInput()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),t.focusNextInput()):32!==e.keyCode&&" "!==e.key&&"Spacebar"!==e.key&&"Space"!==e.key||e.preventDefault()})),v(h(t),"handleOnInput",(function(e){if(t.isInputValueValid(e.target.value))t.focusNextInput();else if(!t.props.isInputNum){var n=e.nativeEvent;null===n.data&&"deleteContentBackward"===n.inputType&&(e.preventDefault(),t.changeCodeAtFocus(""),t.focusPrevInput())}})),v(h(t),"renderInputs",(function(){for(var e=t.state.activeInput,n=t.props,o=n.numInputs,i=n.inputStyle,a=n.focusStyle,s=n.separator,u=n.isDisabled,c=n.disabledStyle,l=n.hasErrored,f=n.errorStyle,p=n.shouldAutoFocus,d=n.isInputNum,m=n.isInputSecure,h=n.className,y=[],v=t.getOtpValue(),g=t.getPlaceholderValue(),b=t.props["data-cy"],w=t.props["data-testid"],O=function(n){y.push(r.default.createElement(S,{placeholder:g&&g[n],key:n,index:n,focus:e===n,value:v&&v[n],onChange:t.handleOnChange,onKeyDown:t.handleOnKeyDown,onInput:t.handleOnInput,onPaste:t.handleOnPaste,onFocus:function(e){t.setState({activeInput:n}),e.target.select()},onBlur:function(){return t.setState({activeInput:-1})},separator:s,inputStyle:i,focusStyle:a,isLastChild:n===o-1,isDisabled:u,disabledStyle:c,hasErrored:l,errorStyle:f,shouldAutoFocus:p,isInputNum:d,isInputSecure:m,className:h,"data-cy":b&&"".concat(b,"-").concat(n),"data-testid":w&&"".concat(w,"-").concat(n)}))},D=0;D<o;D++)O(D);return y})),t}return l(n,[{key:"render",value:function(){var t=this.props.containerStyle;return r.default.createElement("div",{style:Object.assign({display:"flex"},b(t)&&t),className:b(t)?"":t},this.renderInputs())}}]),n}(r.Component);v(w,"defaultProps",{numInputs:4,onChange:function(t){return console.log(t)},isDisabled:!1,shouldAutoFocus:!1,value:"",isInputSecure:!1});var O=w;e.Z=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.