PageSourceSearch

https://ostrovwrangelya.org/_next/static/chunks/629-a7eba534cdbe59e8.js

js ostrovwrangelya.org collected 2026-10-02 10:19:15 UTC 13,195 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[629],{6905:function(a,e,t){t.d(e,{v:function(){return n}});var n=t(7294).createContext({captcha:{token:"",captcha:{loginCaptcha:"",registerCaptcha:""}},setCaptcha:function(a){}})},5707:function(a,e,t){var n=t(7294),r=t(6905),i=t(6279),o=t(4554),u=t(1287),s=t(7561);function l(a,e){(null==e||e>a.length)&&(e=a.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=a[t];return n}function c(a,e){return function(a){if(Array.isArray(a))return a}(a)||function(a,e){var t=null==a?null:"undefined"!==typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null!=t){var n,r,i=[],o=!0,u=!1;try{for(t=t.call(a);!(o=(n=t.next()).done)&&(i.push(n.value),!e||i.length!==e);o=!0);}catch(s){u=!0,r=s}finally{try{o||null==t.return||t.return()}finally{if(u)throw r}}return i}}(a,e)||function(a,e){if(!a)return;if("string"===typeof a)return l(a,e);var t=Object.prototype.toString.call(a).slice(8,-1);"Object"===t&&a.constructor&&(t=a.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(a,e)}(a,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e.Z=function(a){var e=c(n.useState(!1),2),t=e[0],l=e[1],d=c(n.useState(!1),2),f=d[0],p=d[1],m=n.useContext(r.v),g=m.captcha,v=m.setCaptcha,h=c(n.useState(),2),b=h[0],y=h[1],w=c(n.useState(!1),2),k=(w[0],w[1]),P=function(){var a=(0,o.ky)(),e=(0,o.an)();v({token:null!==a&&void 0!==a?a:"",captcha:e})},C=function(){(0,o.mc)(),(0,o.JM)()},S=function(){C(),document.cookie="loggedin=true; path=/",setTimeout((function(){window.location.replace("".concat(window.location.origin,"/verify"))}),300)};return{isLoginLoading:t,isRegisterLoading:f,captcha:g,login:function(e,t,n){return new Promise((function(r,i){l(!0);var c=JSON.stringify({u:e,cd:(new Date).getTime()}),d={username:e,password:t,captcha:parseInt(n,10),i:(0,s.HI)(c)};(0,o.pH)(d,(0,u.nn)(a),a.base_url).then((function(a){var e;l(!1);var t,n,i=a.data;i.status?S():y({message:null!==(t=i.message)&&void 0!==t?t:"Gagal melakukan login, harap coba kembali dalam bebera
1pa saat",type:"warning"});P(),r({status:i.status,hasPin:null!==(n=null===(e=i.data)||void 0===e?void 0:e.hasPin)&&void 0!==n&&n})})).catch((function(a){var e;l(!1),y({message:null!==(e=a.message)&&void 0!==e?e:"Gagal melakukan login, harap coba kembali dalam beberapa saat",type:"error"}),P(),i()}))}))},register:function(e){return new Promise((function(t,n){p(!0);var r,i,l=JSON.stringify({u:e.username,cd:(new Date).getTime()});e.captchaToken=null!==(r=g.token)&&void 0!==r?r:"",e.referral=null!==(i=(0,o.py)())&&void 0!==i?i:"",e.i=(0,s.HI)(l),(0,o.a$)(e,(0,u.nn)(a),a.base_url).then((function(a){p(!1);var e=a.data;if(e.status)y({message:e.message,type:"success"}),C();else{var n,r;if(e.data.lc&&e.data.rc)v({captcha:{loginCaptcha:e.data.lc,registerCaptcha:e.data.rc},token:null!==(n=e.data.capthcaKey)&&void 0!==n?n:""});y({message:null!==(r=e.message)&&void 0!==r?r:"Gagal melakukan register, harap coba kembali dalam beberapa saat",type:"warning"}),P()}t(e.status)})).catch((function(a){var e;p(!1),y({message:null!==(e=a.message)&&void 0!==e?e:"Gagal melakukan register, harap coba kembali dalam bebera
1pa saat",type:"error"}),P(),n()}))}))},loadCaptcha:P,saveReferralCode:function(a){(0,o.r7)(a)},message:b,loadIndex:function(){var e;(0,i.FO)(null!==(e=(0,o.py)())&&void 0!==e?e:"",(0,u.nn)(a),a.base_url).then((function(a){var e,t,n=a.data;n.status?(P(),(null===(e=n.data)||void 0===e?void 0:e.referralUsername)?(0,o.u7)(n.data.referralUsername):C()):y({message:null!==(t=n.message)&&void 0!==t?t:"Gagal dalam mengambil index. Silahkan coba lagi dalam beberapa saat",type:"warning"})})).catch((function(a){var e;y({message:null!==(e=a.message)&&void 0!==e?e:"Terjadi kesalahan internal. Harap coba lagi nanti",type:"error"})}))},getRegisterCaptchaImageUrl:function(e){return""===(null===e||void 0===e?void 0:e.captcha.registerCaptcha)?"":"https://".concat(window.location.host).concat(a.captcha_image_endpoint,"?number=").concat(null===e||void 0===e?void 0:e.captcha.registerCaptcha)},getLoginCaptchaImageUrl:function(e){return""===(null===e||void 0===e?void 0:e.captcha.loginCaptcha)?"":"https://".concat(window.location.host).concat(a.captcha_image_endpoint,"?number=").concat(null===e||void 0===e?void 0:e.captcha.loginCaptcha)},agreement:function(e){return new Promise((function(t,n){l(!0),(0,o.zo)(e,(0,u.nn)(a),a.base_url).then((function(a){l(!1);var e=a.data;t(e.status)})).catch((function(a){var e;l(!1),y({message:null!==(e=a.message)&&void 0!==e?e:"Gagal melakukan login, harap coba kembali dalam bebera
1pa saat",type:"error"}),P(),n()}))}))},confirmPINNumber:function(e){return new Promise((function(t,n){l(!0),(0,o.Z3)(e,(0,u.nn)(a),a.base_url).then((function(a){l(!1);var e,n=a.data;n.status||y({message:null!==(e=n.message)&&void 0!==e?e:"Gagal melakukan login, harap coba kembali dalam beberapa saat",type:"warning"});t(n.status)})).catch((function(a){var e;l(!1),y({message:null!==(e=a.message)&&void 0!==e?e:"Gagal melakukan login, harap coba kembali dalam beberapa saat",type:"error"}),P(),n()}))}))},createPINNumber:function(e){return new Promise((function(t,n){l(!0),(0,o.HM)(e,(0,u.nn)(a),a.base_url).then((function(a){l(!1);var e,n=a.data;n.status||y({message:null!==(e=n.message)&&void 0!==e?e:"Gagal melakukan login, harap coba kembali dalam beberapa saat",type:"warning"});P(),t(n.status)})).catch((function(a){var e;l(!1),y({message:null!==(e=a.message)&&void 0!==e?e:"Gagal melakukan login, harap coba kembali dalam beberapa saat",type:"error"}),P(),n()}))}))},setMyStatusToLoggedIn:S,removeReferralCode:C,getReferralCode:o.py,setCaptcha:v,loadIndexWithCb:function(){return new Promise((function(e,t){var n;(0,i.FO)(null!==(n=(0,o.py)())&&void 0!==n?n:"",(0,u.nn)(a),a.base_url).then((function(a){var t,n=a.data;n.status&&(P(),(null===(t=n.data)||void 0===t?void 0:t.referralUsername)?(0,o.u7)(n.data.referralUsername):C());return e(!0)})).catch((function(a){401===a.response.status&&(localStorage.clear(),document.cookie="loggedin=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",window.location.replace("".concat(window.location.origin))),t(a)}))}))},setMessage:y,forgotPasswordRequest:function(e){return new Promise((function(t,n){k(!0),(0,o.gF)(e,(0,u.nn)(a),a.base_url).then((function(a){k(!1),t(a.data)})).catch((function(a){var e;k(!1),y({message:null!==(e=a.message)&&void 0!==e?e:"Gagal melakukan request password. Harap coba lagi dalam bebera
1pa saat lagi",type:"error"}),n(a)}))}))},getRefUsername:function(){var a;return null!==(a=(0,o.t_)())&&void 0!==a?a:""}}}},2063:function(a,e,t){t.d(e,{Z:function(){return h}});var n=t(7294),r=t(8691),i=t(635),o=function(a,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t?i.R.get("".concat(e,"/pasaran/list"),{headers:a}):i.Z.get("".concat(e,"/pasaran/list"),{headers:a})},u=function(a,e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n?i.R.get("".concat(t,"/keluaran?pasarID=").concat(a),{headers:e}):i.Z.get("".concat(t,"/keluaran?pasarID=").concat(a),{headers:e})};function s(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}var l=["Senin","Selasa","Rabu","Kamis","Jumat","Sabtu","Minggu"],c=function(){function a(){s(this,a),this.resultSchedule=[],this.iconUrl=""}return a.prototype.rawDeserialize=function(a,e){var t,n;return{pasarID:a.pasarID,code:a.pasarCode,name:a.pasarName,result:(null!==(t=a.noKeluar)&&void 0!==t?t:"").length>5?a.noKeluar.substr(0,2)+"-"+a.noKeluar.substr(2):null!==(n=a.noKeluar)&&void 0!==n?n:"",periode:a.periodePasar,status:1===a.isOnline,isActive:1===a.isAktif,website:a.websiteResmi,autoClose:1===a.autoClose,closedTime:a.jamTutup,resultTime:a.jamResult,resultDate:null===a.resultDate?0:1e3*a.resultDate,resultSchedule:0===a.jadwalResult.length?l:a.jadwalResult.map((function(a){return l[a-1]}
1)),prevPeriode:a.periodeTerakhir,iconUrl:"".concat(e.global_cdn_url,"/assets/images/lottery/").concat(a.pasarIcon?a.pasarIcon:"".concat(a.pasarName.toLowerCase().replace(" ","-"),".png"))}},a}();var d=function(){function a(){!function(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a)}return a.prototype.deserialize=function(a){var e,t,n,r,i,o;return a.keluaran.length>5&&(a.keluaran=a.keluaran.substr(0,2)+"-"+a.keluaran.substr(2)),(null===(e=a.firstPrize)||void 0===e?void 0:e.length)>5&&(a.firstPrize=a.firstPrize.substr(0,2)+"-"+a.firstPrize.substr(2)),(null===(t=a.secondPrize)||void 0===t?void 0:t.length)>5&&(a.secondPrize=a.secondPrize.substr(0,2)+"-"+a.secondPrize.substr(2)),(null===(n=a.thirdPrize)||void 0===n?void 0:n.length)>5&&(a.thirdPrize=a.thirdPrize.substr(0,2)+"-"+a.thirdPrize.substr(2)),this.result=a.keluaran,this.firstPrize=null!==(r=a.firstPrize)&&void 0!==r?r:"",this.secondPrize=null!==(i=a.secondPrize)&&void 0!==i?i:"",this.thirdPrize=null!==(o=a.thirdPrize)&&void 0!==o?o:"",this.periode=a.periode,this.time=void 0===a.waktu?void 0:new Date(1e3*a.waktu),this.dateString=a.tanggal,this},a}(),f=t(1287);function p(a,e){(null==e||e>a.length)&&(e=a.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=a[t];return n}function m(a,e){return function(a){if(Array.isArray(a))return a}(a)||function(a,e){var t=null==a?null:"undefined"!==typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null!=t){var n,r,i=[],o=!0,u=!1;try{for(t=t.call(a);!(o=(n=t.next()).done)&&(i.push(n.value),!e||i.length!==e);o=!0);}catch(s){u=!0,r=s}finally{try{o||null==t.return||t.return()}finally{if(u)throw r}}return i}}(a,e)||v(a,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(a){return function(a){if(Array.isArray(a))return p(a)}(a)||function(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||v(a)||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 v(a,e){if(a){if("string"===typeof a)return p(a,e);var t=Object.prototype.toString.call(a).slice(8,-1);return"Object"===t&&a.constructor&&(t=a.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(a,e):void 0}}var h=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=m(n.useState(a),2),i=t[0],s=t[1],p=m(n.useState([]),2),v=p[0],h=p[1],b=m(n.useState(!1),2),y=b[0],w=b[1],k=m(n.useState(!1),2),P=k[0],C=k[1],S=n.useContext(r.J).socket,_=function(){w(!0),o((0,f.nn)(e),e.base_url).then((function(a){if(w(!1),a.data.status){var t,n,r=(null!==(n=null===(t=a.data)||void 0===t?void 0:t.data)&&void 0!==n?n:[]).map((function(a){return(new c).rawDeserialize(a,e)}));s(r)}else s([])})).catch((function(a){w(!1),s([])}))},z=function(a){C(!0),u(a,(0,f.nn)(e),e.base_url).then((function(a){if(C(!1),a.data.status){var e,t,n,r=(null!==(n=null===(e=a.data)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.dataKeluaran)&&void 0!==n?n:[]).map((function(a){return(new d).deserialize(a)}));h(r)}else h([])})).catch((function(a){w(!1)}))};return n.useEffect((function(){return null===S||void 0===S||S.on("psr",(function(a){var t=a.map((function(a){return(new c).rawDeserialize(a,e)}));s(t.filter((function(a){return a.isActive})))})),null===S||void 0===S||S.on("psr_st",(function(a){var e=g(i).map((function(e){var t=a.find((function(a){return a.code===e.code}));return t&&(e.status=1===t.isOnline,e.isActive=1===t.isAktif),e}));s(e.filter((function(a){return a.isActive})))})),null===S||void 0===S||S.on("psr_cf",(function(a){var e,t,n,r,o=null!==(e=null===a||void 0===a?void 0:a.code)&&void 0!==e?e:"",u=g(i),c=u.findIndex((function(a){return a.code===o}));-1!=c&&(u[c].name=a.config.pasarName,u[c].website=null!==(t=a.config.websiteResmi)&&void 0!==t?t:u[c].website,u[c].autoClose=1===a.config.autoClose,u[c].closedTime=null!==(n=a.config.jamTutup)&&void 0!==n?n:u[c].closedTime,a.config.jadwalResult&&(u[c].resultSchedule=a.config.jadwalResult.map((function(a){return l[a-1]}))),u[c].status=1===a.config.isOnline,u[c].isActive=1===a.config.isAktif,u[c].resultTime=null!==(r=a.config.jamResult)&&void 0!==r?r:u[c].resultTime);s(u)}
1)),null===S||void 0===S||S.on("psr_rs",(function(a){var e=g(i).map((function(e){var t=a.find((function(a){return a.code===e.code}));return t&&(t.noKeluar.length>5&&(t.noKeluar=t.noKeluar.substr(0,2)+"-"+t.noKeluar.substr(2)),e.result=t.noKeluar,e.resultDate=null===t.resultDate?0:1e3*t.resultDate,e.prevPeriode=t.periodeTerakhir,e.periode=t.periodePasar),e}));s(e)})),function(){null===S||void 0===S||S.off("psr"),null===S||void 0===S||S.off("psr_st"),null===S||void 0===S||S.off("psr_cf"),null===S||void 0===S||S.off("psr_rs")}}),[S]),Object.freeze({fetchPasaranList:_,pasarList:i,pasarLoading:y,fetchPasarResult:z,pasarResult:v,isResultLoading:P,setPasarList:s,setPasarResult:h})}}}]);

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.