1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9776],{97066:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verifikasi-ktp",function(){return n(68764)}])},8481:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var a=n(85893),r=n(67294);function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?i(e):t}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}var u=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function d(e){var t=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(e){return!1}}();return function(){var n,a=s(e);if(t){var r=s(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return c(this,n)}}var f=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(c,e);var t,n,r,s=d(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=s.call(this,e)).setInvalid=t.setInvalid.bind(i(t)),t}return t=c,(n=[{key:"setInvalid",value:function(e){e.target.setCustomValidity(this.props.title)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.onChange,r=e.value,i=e.placeholder,o=e.wrapperClassName,s=e.inputClassName,c=e.labelClassName,l=e.note,u=e.required,d=e.pattern,f=e.max,p=e.disabled;return(0,a.jsxs)("div",{className:"form-floating ".concat(o||""),children:[(0,a.jsx)("input",{type:"text",className:"form-control ".concat(s||""," ").concat(p?"text-jagel-desc-secondary":""),id:t,placeholder:i,onChange:n,name:t,value:r||"",maxLength:f,required:!!u,pattern:d,onInvalid:this.setInvalid,disabled:!!p}),(0,a.jsx)("label",{htmlFor:t,className:"".concat(c||""),children:i}),l?(0,a.jsx)("div",{className:"fs-8 text-danger",children:l}):null]})}}])&&o(t.prototype,n),r&&o(t,r),c}(r.Component)},68764:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return he}});var a=n(85893),r=n(67294),i=n(28894),o=n(9008),s=n(11163),c=n(35005),l=n(46737),u=n.n(l),d=n(53854);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return!t||"object"!==g(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}var g=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function b(e){var t=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(e){return!1}}();return function(){var n,a=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return m(this,n)}}var j=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(o,e);var t,n,r,i=b(o);function o(){return f(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"showAlert",value:function(){u()({text:"Terima kasih telah menggunakan Jagel\n\njagel ingin meningkatkan kenyamanan dan keamanan bersama dalam bertransaksi. Maka dari itu, kami menghimbau agar pe
1ngguna melakukan verifikasi akun melalui identitas resmi yang berlaku.\n\nApabila terjadi ketidakjelasan identitas, baik secara data maupun secara rekam digital, maka verifikasi akan ditolak oleh jagel.",icon:"/Sticker/JJ-MASKOT.png"})}},{key:"render",value:function(){return(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col-12",children:[(0,a.jsx)("div",{className:"row text-center",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6",children:[(0,a.jsx)("img",{src:"/Verifikasi KTP/verifikasi-ktp-04.png",width:200}),(0,a.jsx)("br",{}),"Terima kasih telah menggunakan jagel!",(0,a.jsx)("br",{}),"Untuk kenyamanan dan keamanan bersama, harap lakukan verifikasi identitas Anda"]})}),(0,a.jsx)("div",{className:"row my-5 text-center",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6",children:[(0,a.jsxs)("span",{className:"px-3 py-2 mb-3 border rounded",children:["Status : ",this.props.message]}),(0,a.jsx)("div",{className:"d-block mt-3 fs-7 text-jagel-primary cursor-pointer",onClick:this.showAlert,children:"Mengapa Verifikasi?"})]})}),(0,a.jsx)("div",{className:"row text-center",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6",children:[(0,a.jsx)(d.vqr,{color:"#66ff66",size:25})," Keamanan data Anda dijamin oleh jagel"]})})]})})}}])&&p(t.prototype,n),r&&p(t,r),o}(r.Component),x=n(28475);function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function P(e,t){return!t||"object"!==N(t)&&"function"!==typeof t?y(e):t}function T(e,t){return T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},T(e,t)}var N=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function K(e){var t=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(e){return!1}}();return function(){var n,a=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return P(this,n)}}var O=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(o,e);var t,n,r,i=K(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).showHideExampleKTP=t.showHideExampleKTP.bind(y(t)),t.uploadImage=t.uploadImage.bind(y(t)),t.state={KTPImageUploaded:"",showExampleKTP:!1},t}return t=o,(n=[{key:"uploadImage",value:function(e){var t,n,a;e.target.files[0].size<=2e6?(this.setState((t={},n=e.target.id,a=e.target.files[0],n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t)),this.props.changeKTP(e.target.files[0])):u()("Gagal Upload","Pastikan ukuran file maksimal 2Mb, dan berformat (.jpeg, .jpg, .png)","error")}},{key:"showHideExampleKTP",value:function(){this.setState({showExampleKTP:!this.state.showExampleKTP})}},{key:"render",value:function(){var e=this.state.KTPImageUploaded,t=this.props.KTPImage;return(0,a.jsxs)("div",{className:"row",children:[(0,a.jsxs)("div",{className:"col-12",children:[(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-12 offset-md-4 col-md-4",children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:URL.createObjectURL(t),width:200}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]}):e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:URL.createObjectURL(e),width:200}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"/Verifikasi KTP/verifikasi ktp-01.png",width:200}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]})}),(0,a.jsx)("div",{className:"col-12 offset-md-4 col-md-4",children:t||e?(0,a.jsx)("label",{className:"w-100 btn btn-light",htmlFor:"KTPImageUploaded",children:"Ulangi"}):(0,a.jsx)("span",{className:"fs-5",children:"Siapkan Foto KTP"})})]}),(0,a.jsx)("div",{className:"row my-4 text-start",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6 fs-7",children:["Hal yang perlu diperhatikan:",(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Foto KTP harus terlihat utuh dan jelas, sehingga data yang tertera dapat terbaca"}),(0,a.jsx)("li",{children:"Foto kartu tidak buram dan tidak gelap"})]})]})}),(0,a.jsx)("div",{className:"row my-4 text-center",children:(0,a.jsx)("div",{className:"col-12 offset-md-3 col-md-6 fs-6 text-jagel-platinum",children:(0,a.jsx)("span",{onClick:this.showHideExampleKTP,className:"cursor-pointer",children:"Lihat Contoh"})})}),(0,a.jsx)("input",{type:"file",id:"KTPImageUploaded",onChange:this.uploadImage,style:{display:"none"},accept:"image/png, image/jpeg, image/jpg",required:!0}),e||t?null:(0,a.jsx)("div",{className:"row text-center",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6 fs-7",children:[(0,a.jsx)(d.vqr,{color:"#66ff66",size:25})," Keamanan data Anda dijamin oleh jagel",(0,a.jsx)("label",{htmlFor:"KTPImageUploaded",className:"w-100 btn btn-jagel1",children:"Unggah Foto KTP"})]})})]}
1),(0,a.jsx)(x.Z,{"aria-labelledby":"contained-modal-title-vcenter",centered:!0,show:this.state.showExampleKTP,onHide:this.showHideExampleKTP,children:(0,a.jsx)(x.Z.Body,{children:(0,a.jsx)("img",{src:this.props.exampleKTPImage,width:"100%"})})})]})}}])&&k(t.prototype,n),r&&k(t,r),o}(r.Component);function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function C(e,t){return!t||"object"!==R(t)&&"function"!==typeof t?I(e):t}function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}var R=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function F(e){var t=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(e){return!1}}();return function(){var n,a=S(e);if(t){var r=S(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return C(this,n)}}var U=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(o,e);var t,n,r,i=F(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).showHideExampleVideo=t.showHideExampleVideo.bind(I(t)),t.uploadVideo=t.uploadVideo.bind(I(t)),t.state={KTPVideoUploaded:"",showExampleVideo:!1},t}return t=o,(n=[{key:"uploadVideo",value:function(e){e.target.files[0].size<=5e6?(this.setState(_({},e.target.id,e.target.files[0])),this.props.changeVideo(e.target.files[0])):swal("Gagal Upload","Pastikan ukuran file video maksimal 5Mb, dan berformat (.mp4, .3gp, .3gpp)","error")}},{key:"showHideExampleVideo",value:function(){this.setState({showExampleVideo:!this.state.showExampleVideo})}},{key:"render",value:function(){var e,t=this.state.KTPVideoUploaded,n=this.props.KTPVideo;return(0,a.jsxs)("div",{className:"row",children:[(0,a.jsxs)("div",{className:"col-12",children:[(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-12 offset-md-3 col-md-6",children:n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("iframe",(e={src:URL.createObjectURL(n),width:200},_(e,"width","100%"),_(e,"height","400"),e)),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]}):t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("iframe",{src:URL.createObjectURL(t),width:"100%",height:"400"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"/Verifikasi KTP/verifikasi ktp-02.png",width:200}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]})}),(0,a.jsx)("div",{className:"col-12 offset-md-4 col-md-4",children:n||t?(0,a.jsx)("label",{className:"w-100 btn btn-light",htmlFor:"KTPVideoUploaded",children:"Ulangi"}):(0,a.jsx)("span",{className:"fs-5",children:"Siapkan Video Wajah dan Kartu"})})]}),(0,a.jsx)("div",{className:"row my-4 text-start",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6 fs-7",children:["Hal yang perlu diperhatikan:",(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Sebutkan 'Saya [nama] ingin pakai jagel' pada Video"}),(0,a.jsx)("li",{children:"Wajah dan KTP harus terlihat pada Video"}),(0,a.jsx)("li",{children:"Durasi Video di bawah 4 detik"}),(0,a.jsx)("li",{children:"Tujukkan sedikit pergerakan untuk memastikan ini Video"})]})]})}),(0,a.jsx)("div",{className:"row my-4 text-center",children:(0,a.jsx)("div",{className:"col-12 offset-md-3 col-md-6 fs-6 text-jagel-platinum",children:(0,a.jsx)("span",{onClick:this.showHideExampleVideo,className:"cursor-pointer",children:"Lihat Contoh"})})}),(0,a.jsx)("input",{type:"file",id:"KTPVideoUploaded",onChange:this.uploadVideo,style:{display:"none"},accept:"video/mp4,video/3gpp,video/3gp",required:!0}),n||t?null:(0,a.jsx)("div",{className:"row text-center",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6 fs-7",children:[(0,a.jsx)(d.vqr,{color:"#66ff66",size:25})," Keamanan data Anda dijamin oleh jagel",(0,a.jsx)("label",{htmlFor:"KTPVideoUploaded",className:"w-100 btn btn-jagel1",children:"Unggah Video Selfie"})]})})]}
1),(0,a.jsx)(x.Z,{"aria-labelledby":"contained-modal-title-vcenter",centered:!0,show:this.state.showExampleVideo,onHide:this.showHideExampleVideo,children:(0,a.jsx)(x.Z.Body,{children:(0,a.jsx)("iframe",{src:this.props.exampleKTPVideo,width:"100%",height:"400"})})})]})}}])&&V(t.prototype,n),r&&V(t,r),o}(r.Component),B=n(8481);function A(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function Z(e,t){return!t||"object"!==q(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e,t){return H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},H(e,t)}var q=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function z(e){var t=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(e){return!1}}();return function(){var n,a=L(e);if(t){var r=L(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Z(this,n)}}var D=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(o,e);var t,n,r,i=z(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(n=[{key:"render",value:function(){var e=this.props,t=e.onChange,n=e.IdNumber,r=e.IdName;return(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col-12",children:[(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6",children:[(0,a.jsx)("img",{src:"/Verifikasi KTP/verifikasi ktp-03.png",width:200}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"fs-5",children:"Pastikan untuk mengisi eKTP/KTP dan nama sesuai yang tertera agar bisa di proses segera"})]})}),(0,a.jsx)("div",{className:"row my-4 text-start",children:(0,a.jsx)("div",{className:"col-12 offset-md-3 col-md-6 fs-7",children:"NB: Jika tidak menggunakan KTP, mohon masukan 16 digit angka dengan menambahkan awalan nol sampai dengan 16 digit."})}),(0,a.jsx)("div",{className:"row text-center",children:(0,a.jsxs)("div",{className:"col-12 offset-md-3 col-md-6 fs-7",children:[(0,a.jsx)(B.Z,{id:"IdNumber",onChange:t,value:n,placeholder:"Nomor eKTP/KTP",required:!0,wrapperClassName:"my-3"}),(0,a.jsx)(B.Z,{id:"IdName",onChange:t,value:r,placeholder:"Nama sesuai dalam KTP",required:!0,wrapperClassName:"my-3"}),(0,a.jsx)(d.vqr,{color:"#66ff66",size:25})," Keamanan data Anda dijamin oleh jagel"]})})]})})}}])&&A(t.prototype,n),r&&A(t,r),o}(r.Component),M=n(26809);function G(e,t){return t||(t=e.slice(0)),e.raw=t,e}function J(){var e=G(["\n width: 20px;\n height: 20px;\n background-color: ",";\n \n &:before {\n position: absolute;\n content: '\u2713';\n color: #fff;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n "]);return J=function(){return e},e}
1function X(){var e=G(["\n width: 20px;\n height: 20px;\n background-color: ",";\n \n &:before {\n position: absolute;\n content: '';\n background-color: #fff;\n width: 8px;\n height: 8px;\n border-radius: 8px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n "]);return X=function(){return e},e}function W(){var e=G(["\n &:after {\n position: absolute;\n content: '","';\n width: max-content;\n color: ",";\n font-weight: ",";\n text-transform: uppercase;\n font-size: 11px;\n bottom: -20px;\n left: 50%;\n transform: translateX(-50%);\n }\n "]);return W=function(){return e},e}function Q(){var e=G(["\n position: relative;\n width: 10px;\n height: 10px;\n border-radius: 20px;\n background-color: #999;\n transition: all 0.4s;\n\n ","\n\n ","\n\n ","\n"]);return Q=function(){return e},e}var Y=M.ZP.div(Q(),(function(e){return e.label&&(0,M.iv)(W(),e.label,(function(e){return e.active||e.complete?e.accentColor||"#24a19c":"#999"}),(function(e){return e.active?600:400}))}),(function(e){return e.active&&(0,M.iv)(X(),e.accentColor||"#24a19c")}),(function(e){return e.complete&&(0,M.iv)(J(),e.accentColor||"#24a19c")}));function $(){var e=G(["\n background-color: ",";\n height: 2px;\n "]);return $=function(){return e},e}function ee(){var e=G(["\n height: 1.5px;\n background-color: #f2f0ed;\n flex: 1;\n transition: all 0.4s;\n\n ","\n"]);return ee=function(){return e},e}var te=M.ZP.div(ee(),(function(e){return e.complete&&(0,M.iv)($(),(function(e){return e.accentColor||"#24a19c"}))}));function ne(e){return r.createElement("div",{style:ae.container},r.createElement("div",{style:ae.stepperContainer},r.Children.map(e.children,(function(t,n){return n===r.Children.count(e.children)-1?r.createElement(r.Fragment,null,r.createElement(Y,{active:e.activeStep===n+1,label:t.props.label,complete:e.activeStep>n+1,accentColor:e.accentColor})):r.createElement(r.Fragment,null,r.createElement(Y,{active:e.activeStep===n+1,complete:e.activeStep>1&&n+1<e.activeStep,label:t.props.label,accentColor:e.accentColor}),r.createElement(te,{complete:e.activeStep>1&&n+1<e.activeStep,accentColor:e.accentColor}))}))),r.Children.map(e.children,(function(t,n){return n+1===e.activeStep?t:(0,r.cloneElement)(t,{hidden:!0})})))}var ae={stepperContainer:{display:"flex",justifyContent:"space-evenly",alignItems:"center",marginBottom:40}};function re(){var e=G(["\n display: ","\n"]);return re=function(){return e},e}var ie=M.ZP.div(re(),(function(e){return e.hidden?"none":"block"}));function oe(e){return r.createElement(ie,e,e.children)}function se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ce(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function le(e){return le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},le(e)}function ue(e,t){return!t||"object"!==fe(t)&&"function"!==typeof t?se(e):t}function de(e,t){return de=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},de(e,t)}var fe=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function pe(e){var t=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(e){return!1}}();return function(){var n,a=le(e);if(t){var r=le(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return ue(this,n)}}var he=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&de(e,t)}(d,e);var t,n,r,l=pe(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=l.call(this,e)).verificationKTP=t.verificationKTP.bind(se(t)),t.changeImageKTP=t.changeImageKTP.bind(se(t)),t.changeVideoKTP=t.changeVideoKTP.bind(se(t)),t.changeText=t.changeText.bind(se(t)),t.getVerificationStatus=t.getVerificationStatus.bind(se(t)),t.validatorInfo=t.validatorInfo.bind(se(t)),t.validatorImage=t.validatorImage.bind(se(t)),t.validatorVideo=t.validatorVideo.bind(se(t)),t.previousForm=t.previousForm.bind(se(t)),t.nextForm=t.nextForm.bind(se(t)),t.uploadImageKTP=t.uploadImageKTP.bind(se(t)),t.uploadVideoKTP=t.uploadVideoKTP.bind(se(t)),t.state={isLoading:!0,KTPImage:"",KTPVideo:"",IdNumber:"",IdName:"",code:0,NextStepFlag:!0,message:"",exampleKTPImage:"",exampleKTPVideo:"",active:1,buttonInfoFlag:!1,buttonImageFlag:!1,buttonVideoFlag:!1},t}return t=d,(n=[{key:"previousForm",value:function(){this.setState({active:1==this.state.active?1:this.state.active-1})}},{key:"nextForm",value:function(){this.setState({active:4==this.state.active?4:this.state.active+1})}},{key:"changeText",value:function(e){var t,n,a;this.setState((t={},n=e.target.id,a=e.target.value,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t))}},{key:"changeImageKTP",value:function(e){this.setState({KTPImage:e,buttonImageFlag:!0})}},{key:"changeVideoKTP",value:function(e){this.setState({KTPVideo:e,buttonVideoFlag:!0})}},{key:"componentDidMount",value:function(){"tesfiturbaru"==localStorage.getItem("dk")?this.getVerificationStatus():s.default.push("/development")}},{key:"getVerificationStatus",value:function(){var e=this;fetch("https://app.jagel.id/api/user/verifyStatus",{method:"GET",headers:{Accept:"application/json",Authorization:"Bearer "+localStorage.getItem("bt")}}).then((function(e){return e.json()})).then((function(t){e.setState({code:t.data.code,buttonInfoFlag:0==t.data.code,message:t.data.message,exampleKTPImage:"https://www.jagel.id/api/newsimage/"+t.data.example_1,exampleKTPVideo:"https://www.jagel.id/api/newsimage/"+t.data.example_2,isLoading:!1})}
1)).catch((function(e){return console.clear()}))}},{key:"verificationKTP",value:function(e){e.preventDefault(),this.uploadImageKTP()}},{key:"validatorInfo",value:function(){0==this.state.code&&this.nextForm()}},{key:"validatorImage",value:function(){this.state.KTPImage&&this.nextForm()}},{key:"validatorVideo",value:function(){this.state.KTPVideo&&this.nextForm()}},{key:"uploadImageKTP",value:function(){var e=this,t=new FormData;t.append("image",this.state.KTPImage),t.append("name",this.state.IdName),t.append("id_number",this.state.IdNumber),t.append("type",1),fetch("https://app.jagel.id/api/user/verifyID",{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+localStorage.getItem("bt")},body:t}).then((function(e){return e.json()})).then((function(t){console.log(t),t.success?e.uploadVideoKTP():u()("Upload Foto KTP Gagal",t.message,"error")})).catch((function(e){return console.clear()}))}},{key:"uploadVideoKTP",value:function(){var e=new FormData;e.append("name",this.state.IdName),e.append("id_number",this.state.IdNumber),e.append("type",2),e.append("video",this.state.KTPVideo),fetch("https://app.jagel.id/api/user/verifyID",{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+localStorage.getItem("bt")},body:e}).then((function(e){return e.json()})).then((function(e){console.log(e),e.success?u()({title:"Terima kasih sudah melakukan verifikasi ID Anda",text:"Proses verifikasi ID akan diproses dalam 1 x 24 jam silahkan tunggu notifikasi jika sudah selesai",icon:"/Verifikasi KTP/verifikasi-ktp-04.png",buttons:!1}):u()("Upload Video KTP Gagal",e.message,"error")})).catch((function(e){return console.clear()}))}},{key:"render",value:function(){return this.state.isLoading?null:(0,a.jsxs)(i.Z,{children:[(0,a.jsx)(o.default,{children:(0,a.jsx)("title",{children:"Verifikasi KTP"})}),(0,a.jsx)("div",{className:"Content-Container-Atas"}),(0,a.jsxs)("div",{className:"container-fluid text-center mt-4",children:[(0,a.jsx)("div",{className:"row text-start",children:(0,a.jsx)("div",{className:"col-12",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col-12 offset-md-2 col-md-8 alert alert-warning",children:["Catatan:",(0,a.jsx)("br",{}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"1 (Satu) kartu identitas hanya dapat didaftarkan pada 1 (satu) akun jagel."}),(0,a.jsx)("li",{children:"Proses verifikasi membutuhkan waktu maksimal 1x24 jam."})]})]})})})}),(0,a.jsx)("form",{onSubmit:this.verificationKTP,children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col-12 col-md-8 offset-md-2",children:[(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col-12 my-3",children:(0,a.jsxs)(ne,{activeStep:this.state.active,accentColor:"var(--primary-color)",children:[(0,a.jsx)(oe,{label:"Info",complete:!1,children:(0,a.jsx)(j,{message:this.state.message})}),(0,a.jsx)(oe,{label:"Foto KTP",children:(0,a.jsx)(O,{exampleKTPImage:this.state.exampleKTPImage,changeKTP
1:this.changeImageKTP,KTPImage:this.state.KTPImage})}),(0,a.jsx)(oe,{label:"Video",children:(0,a.jsx)(U,{exampleKTPVideo:this.state.exampleKTPVideo,changeVideo:this.changeVideoKTP,KTPVideo:this.state.KTPVideo})}),(0,a.jsx)(oe,{label:"Isi No. KTP",children:(0,a.jsx)(D,{onChange:this.changeText,IdName:this.state.IdName,IdNumber:this.state.IdNumber})})]})})}),(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col-12",children:[this.state.active>1?(0,a.jsx)(c.Z,{variant:"light",onClick:this.previousForm,className:"float-start",children:"Kembali"}):null,1==this.state.active?(0,a.jsx)(c.Z,{variant:"jagel1",onClick:this.validatorInfo,className:"float-end ".concat(this.state.buttonInfoFlag?"":"disabled"),children:"Lanjutkan"}):null,2==this.state.active?(0,a.jsx)(c.Z,{variant:"jagel1",onClick:this.nextForm,className:"float-end ".concat(this.state.buttonImageFlag?"":"disabled"),children:"Lanjutkan"}):null,3==this.state.active?(0,a.jsx)(c.Z,{variant:"jagel1",onClick:this.nextForm,className:"float-end ".concat(this.state.buttonVideoFlag?"":"disabled"),children:"Lanjutkan"}):null,(0,a.jsx)(c.Z,{type:"submit",variant:"jagel1",onSubmit:this.verificationKTP,className:"float-end ".concat(4==this.state.active?"":"d-none"),children:"Verifikasi"})]})})]})})})]})]})}}])&&ce(t.prototype,n),r&&ce(t,r),d}(r.Component)}},function(e){e.O(0,[1228,5445,2013,260,6556,4885,208,9038,5675,4500,4801,924,6809,6846,2264,8894,9774,2888,179],(function(){return t=97066,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.