daratsakura1.xyz Open in urlscan Pro
2606:4700:3037::ac43:a4d2  Public Scan

Submitted URL: http://daratsakura1.xyz/_next/static/chunks/937-c201f6f756e8fee0.js
Effective URL: https://daratsakura1.xyz/_next/static/chunks/937-c201f6f756e8fee0.js
Submission: On November 05 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[937],{1937:function(t,e,n){n.d(e,{Z:function(){return w}});var i,r=n(7294),o=n(8691),a=n(635),s=function(t,e){return a.Z.get("".concat(e,"/promo/banner"),{headers:t})},u=function(t,e){return a.Z.get("".concat(e,"/banners"),{headers:t})},l=function(t,e){return a.Z.get("".concat(e,"/promo"),{headers:t})},c=function(t,e){return a.Z.get("".concat(e,"/news"),{headers:t})},d=function(t,e){return a.Z.get("".concat(e,"/promo/register"),{headers:t})};var h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.bannerID="",this.bannerImage="",this.bannerPosition="",this.bannerUrl="",this.targetUrl="",this.imageAlt="",this.imageTitle="",this.imageWidth="",this.imageLength=0,this.displayOrder=-1,this.themeVersion=0,this.imagePath="",this.isGlobal=!1}var e=t.prototype;return e.decodeString=function(t){var e=document.createElement("textarea");return e.innerHTML=t,0===e.childNodes.length?"":e.childNodes[0].nodeValue},e.deserialize=function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(i=location.origin)&&void 0!==i?i:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.bannerID=t.bannerID,this.bannerImage=t.bannerImage,this.bannerPosition=t.bannerPosition,this.bannerUrl=t.bannerUrl,this.targetUrl=t.targetUrl,this.imageAlt=t.imageAlt,this.imageTitle=t.imageTitle,this.imageWidth=t.imageWidth,this.imageLength=t.imageLength,this.displayOrder=t.displayOrder,this.themeVersion=null!==(e=t.themeVersion)&&void 0!==e?e:0,this.isGlobal=null!==(n=t.isGlobal)&&void 0!==n&&n,this.imagePath="".concat(r,"/public/assets/images/banner/").concat(this.bannerImage),this.isGlobal?t.themeVersion?this.imagePath="".concat(null===o||void 0===o?void 0:o.global_cdn_url,"/assets/images/banner/").concat(this.decodeString(this.bannerImage)):this.imagePath="".concat(null===o||void 0===o?void 0:o.global_cdn_url,"/").concat(null===o||void 0===o?void 0:o.app_identity,"/assets/images/banner/").concat(this.decodeString(this.bannerImage)):this.imagePath="".concat(r,"/public/assets/images/banner/").concat(this.bannerImage),this},t}();var f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.deserialize=function(t){return this.newsID=t.newsID,this.author=t.oleh,this.date=new Date(1e3*t.tanggal),this.berita=t.berita||"",this},t}();var m=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.deserialize=function(t){return this.partnerID=t.partnerID,this.partnerName=t.partnerName,this.partnerUrl=t.partnerUrl,this},t}(),p=n(5162),v=n(6279),g=n(1287);function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(u){s=!0,r=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return b(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(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t,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.")}()}var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=y(r.useState(t),2),i=n[0],a=n[1],b=y(r.useState([]),2),w=b[0],P=b[1],z=y(r.useState([]),2),L=z[0],T=z[1],I=y(r.useState(),2),D=I[0],S=I[1],k=y(r.useState(),2),O=k[0],A=k[1],_=y(r.useState(!1),2),M=_[0],C=_[1],E=y(r.useState([]),2),N=E[0],U=E[1],V=y(r.useState([]),2),x=V[0],B=V[1],G=r.useContext(o.J).socket,H=function(){s((0,g.nn)(e),e.base_url).then((function(t){if(t.data.status){var n,i,r=null!==(i=null===(n=t.data.data)||void 0===n?void 0:n.map((function(t){return(new p.$i).deserialize(t,void 0,e)})).sort((function(t,e){return t.displayOrder-e.displayOrder})))&&void 0!==i?i:[];a(r)}})).catch((function(t){}))},Z=function(){(0,v.F0)((0,g.nn)(e),e.base_url).then((function(t){var e,n,i;t.data.status&&B(null!==(i=null===(e=t.data)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.map((function(t){return(new m).deserialize(t)})))&&void 0!==i?i:[])}))},F=function(){l((0,g.nn)(e),e.base_url).then((function(t){var e,n;t.data.status&&T(null!==(n=null===(e=t.data.data)||void 0===e?void 0:e.map((function(t){return(new p.O9).deserialize(t)})))&&void 0!==n?n:[])})).catch((function(t){}))},j=function(){u((0,g.nn)(e),e.base_url).then((function(t){if(t.data.status){var n,i=null===(n=t.data.data)||void 0===n?void 0:n.map((function(t){return(new h).deserialize(t,void 0,e)})).filter((function(t){return 1!==t.themeVersion}));i.sort((function(t,e){return t.displayOrder-e.displayOrder})),P(i)}})).catch((function(t){}))},$=function(){var t=null===D||void 0===D?void 0:D.getConfigByModulName();A(t)},Q=function(){c((0,g.nn)(e),e.base_url).then((function(t){if(t.data.status){var e,n=null===(e=t.data.data)||void 0===e?void 0:e.map((function(t){return(new f).deserialize(t)}));U(n)}})).catch((function(){}))},W=function(){return new Promise((function(t,n){d((0,g.nn)(e),e.base_url).then((function(e){var n,i=(new p.O9).deserialize(e.data.data);return S(i),t((null===(n=e.data)||void 0===n?void 0:n.status)?e.data.data:void 0)})).catch((function(t){return n(t)}))}))};return r.useEffect((function(){var t=L.find((function(t){return"register"===t.modul}));S(t),t&&$()}),[L]),r.useEffect((function(){D&&$()}),[D]),r.useEffect((function(){if(D&&O){var t=D.isAktif&&O.getValidPromoTime()&&O.currentQuota>0;C(t)}}),[O]),r.useEffect((function(){return null===G||void 0===G||G.on("bl",(function(t){var n;P(null!==(n=null===t||void 0===t?void 0:t.map((function(t){return(new h).deserialize(t,void 0,e)})).filter((function(t){return 1!==t.themeVersion})).sort((function(t,e){return t.displayOrder-e.displayOrder})))&&void 0!==n?n:[])})),null===G||void 0===G||G.on("prmb",(function(t){var n,i=null!==(n=null===t||void 0===t?void 0:t.map((function(t){return(new p.$i).deserialize(t,void 0,e)})).sort((function(t,e){return t.displayOrder-e.displayOrder})))&&void 0!==n?n:[];a(i)})),null===G||void 0===G||G.on("prm",(function(t){var e;T(null!==(e=null===t||void 0===t?void 0:t.map((function(t){return(new p.O9).deserialize(t)})))&&void 0!==e?e:[])})),null===G||void 0===G||G.on("n",(function(t){var e;U(null!==(e=null===t||void 0===t?void 0:t.map((function(t){return(new f).deserialize(t)})))&&void 0!==e?e:[])})),null===G||void 0===G||G.on("orptr",(function(t){var e;B(null!==(e=null===t||void 0===t?void 0:t.map((function(t){return(new m).deserialize(t)})))&&void 0!==e?e:[])})),function(){null===G||void 0===G||G.off("bl"),null===G||void 0===G||G.off("prmb"),null===G||void 0===G||G.off("prm"),null===G||void 0===G||G.off("n"),null===G||void 0===G||G.off("orptr")}}),[G]),Object.freeze({promoBannerList:i,banners:w,promo:L,registerPromo:D,registerPromoConfig:O,news:N,partners:x,setPromoBannerList:a,fetchPromoBannerList:H,fetchBannerList:j,setBanner:P,fetchPromoList:F,fetchNews:Q,isRegisterPromoActive:M,fetchPartners:Z,fetchRegisterPromoConfig:W})}},5162:function(t,e,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r;n.d(e,{$i:function(){return o},O9:function(){return a}});var o=function(){function t(){i(this,t),this.imagePath="",this.isGlobal=!1}var e=t.prototype;return e.decodeString=function(t){var e=document.createElement("textarea");return e.innerHTML=t,0===e.childNodes.length?"":e.childNodes[0].nodeValue},e.deserialize=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(r=location.origin)&&void 0!==r?r:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.bannerID=t.bannerID,this.promoImg=t.promoImage,this.promoTitle=t.promoTitle,this.promoText=t.promoText,this.promoFooter=t.promoFooter,this.footerType=t.footerType,this.footerLink=t.footerLink,this.footerUrl=t.footerUrl,this.platform=t.platform,this.displayOrder=t.displayOrder,this.isGlobal=null!==(e=t.isGlobal)&&void 0!==e&&e,t.isGlobal?this.imagePath="".concat(null===i||void 0===i?void 0:i.global_cdn_url,"/assets/images/banner/").concat(this.decodeString(this.promoImg)):this.imagePath="".concat(n,"/public/assets/images/banner/").concat(this.promoImg),"image"===this.footerType&&(this.promoFooter="".concat(n,"/public/assets/images/banner/").concat(this.promoFooter)),this},t}(),a=function(){function t(){i(this,t)}var e=t.prototype;return e.deserialize=function(t){return this.promoID=t.promoID,this.modul=t.modul,this.namaPromo=t.namaPromo,this.kodePromo=t.kodePromo,this.configPromo=t.configPromo,this.isAktif=t.isAktif,this.configDate=new Date(1e3*t.configDate),this.configDate=t.configBy,this},e.getConfigByModulName=function(){var t,e,n;return"togel"===(null===(t=this.modul)||void 0===t?void 0:t.toLowerCase())?"prz"===this.kodePromo?(new l).deserialize(this.configPromo):"norek"===this.kodePromo||"nohp"===this.kodePromo?(new c).deserialize(this.configPromo):(new u).deserialize(this.configPromo):"deposit"===(null===(e=this.modul)||void 0===e?void 0:e.toLowerCase())||"register"===(null===(n=this.modul)||void 0===n?void 0:n.toLowerCase())?(new s).deserialize(this.configPromo):void 0},t}(),s=function(){function t(){i(this,t),this.isAktif=!1}var e=t.prototype;return e.deserialize=function(t){var e,n;return this.nilaiPromo=t.nilaiPromo,this.isMoney=t.isMoney,this.isPercent=t.isPercent,this.startDate=t.tanggalMulai,this.endDate=t.tanggalSelesai,this.startTime=t.waktuMulai,this.endTime=t.waktuSelesai,this.minTransaction=t.minTransaksi,this.maxTransaction=t.maxTransaksi,this.dailyLimit=t.limitHarian,this.needApproval=t.needApproval,this.currentQuota=null!==(e=t.currentQuota)&&void 0!==e?e:0,this.isAktif=null!==(n=t.isAktif)&&void 0!==n&&n,this},e.getValidPromoTime=function(){var t=this.startDate.split("-").map((function(t){return parseInt(t,10)})),e=this.endDate.split("-").map((function(t){return parseInt(t,10)})),n=this.startTime.split(":").map((function(t){return parseInt(t,10)})),i=this.endTime.split(":").map((function(t){return parseInt(t,10)})),r=new Date(t[0],t[1]-1,t[2]),o=new Date(e[0],e[1]-1,e[2]);r.setHours(n[0]),r.setMinutes(n[1]),r.setSeconds(n[2]),o.setHours(i[0]),o.setMinutes(i[1]),o.setSeconds(i[2]);var a=(new Date).getTime(),s=new Date;s.setHours(i[0]),s.setMinutes(i[1]),s.setSeconds(i[2]);var u=new Date;return u.setHours(n[0]),u.setMinutes(n[1]),u.setSeconds(n[2]),a>=r.getTime()&&a<=o.getTime()&&a<=s.getTime()&&a>=u.getTime()},t}(),u=function(){function t(){i(this,t),this.pasarList=[],this.gameList=[]}return t.prototype.deserialize=function(t){return this.pasarList=t.pasarList,this.gameList=t.gameList,this.minSaldo=t.minSaldo,this.startTime=t.waktuMulai,this.endTime=t.waktuSelesai,this.mustDeposit=t.mustDeposit,this.freeNewMember=t.freeNewMember,this},t}(),l=function(){function t(){i(this,t),this.pasarList=[],this.gameList=[]}return t.prototype.deserialize=function(t){return this.pasarList=t.pasarList,this.gameList=t.gameList,this.secondPrize=t.secondPrize,this.thirdPrize=t.thirdPrize,this},t}(),c=function(){function t(){i(this,t),this.pasarList=[],this.gameList=[]}return t.prototype.deserialize=function(t){return this.pasarList=t.pasarList,this.gameList=t.gameList,this.secondPrize=t.secondPrize,this.thirdPrize=t.thirdPrize,this},t}()}}]);