PageSourceSearch

https://legitapp.com/_next/static/chunks/pages/portal/wallet-8fbb7909430ecb19.js

js legitapp.com collected 2026-10-06 09:08:29 UTC 11,690 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8940,7484],{27484:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",r="minute",s="hour",n="week",a="month",i="quarter",c="year",u="date",o="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var s=String(e);return!s||s.length>=t?e:""+Array(t+1-s.length).join(r)+e},h="en",m={};m[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}};var $="$isDayjsObject",g=function(e){return e instanceof x||!(!e||!e[$])},v=function e(t,r,s){var n;if(!t)return h;if("string"==typeof t){var a=t.toLowerCase();m[a]&&(n=a),r&&(m[a]=r,n=a);var i=t.split("-");if(!n&&i.length>1)return e(i[0])}else{var c=t.name;m[c]=t,n=c}return!s&&n&&(h=n),n||!s&&h},p=function(e,t){if(g(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new x(r)},y={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var s=12*(r.year()-t.year())+(r.month()-t.month()),n=t.clone().add(s,a),i=r-n<0,c=t.clone().add(s+(i?-1:1),a);return+(-(s+(r-n)/(i?n-c:c-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(o){return({M:a,y:c,w:n,d:"day",D:u,h:s,m:r,s:t,ms:e,Q:i})[o]||String(o||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};y.l=v,y.i=g,y.w=function(e,t){return p(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function f(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[$]=!0}var h=f.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(y.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var s=t.match(l);if(s){var n=s[2]-1||0,a=(s[7]||"0").substring(0,3);return r?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,a)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,a)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return y},h.isValid=function(){return this.$d.toString()!==o},h.isSame=function(e,t){var r=p(e);return this.startOf(t)<=r&&r<=this.endOf(t)},h.isAfter=function(e,t){return p(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<p(e)},h.$g=function(e,t,r){return y.u(e)?this[t]:this.set(r,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,i){var o=this,l=!!y.u(i)||i,d=y.p(e),f=function(e,t){var r=y.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return l?r:r.endOf("day")},h=function(e,t){return y.w(o.toDate()[e].apply(o.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),o)},m=this.$W,$=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case c:return l?f(1,0):f(31,11);case a:return l?f(1,$):f(0,$+1);case n:var p=this.$locale().weekStart||0,x=(m<p?m+7:m)-p;return f(l?g-x:g+(6-x),$);case"day":case u:return h(v+"Hours",0);case s:return h(v+"Minutes",1);case r:return h(v+"Seconds",2);case t:return h(v+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(n,i){var o,l=y.p(n),d="set"+(this.$u?"UTC":""),f=((o={}).day=d+"Date",o[u]=d+"Date",o[a]=d+"Month",o[c]=d+"FullYear",o[s]=d+"Hours",o[r]=d+"Minutes",o[t]=d+"Seconds",o[e]=d+"Milliseconds",o)[l],h="day"===l?this.$D+(i-this.$W):i;if(l===a||l===c){var m=this.clone().set(u,1);m.$d[f](h),m.init(),this.$d=m.set(u,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[y.p(e)]()},h.add=function(e,i){var u,o=this;e=Number(e);var l=y.p(i),d=function(t){var r=p(o);return y.w(r.date(r.date()+Math.round(t*e)),o)};if(l===a)return this.set(a,this.$M+e);if(l===c)return this.set(c,this.$y+e);if("day"===l)return d(1);if(l===n)return d(7);var f=((u={})[r]=6e4,u[s]=36e5,u[t]=1e3,u)[l]||1,h=this.$d.getTime()+e*f;return y.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||o;var s=e||"YYYY-MM-DDTHH:mm:ssZ",n=y.z(this),a=this.$H,i=this.$m,c=this.$M,u=r.weekdays,l=r.months,f=r.meridiem,h=function(e,r,n,a){return e&&(e[r]||e(t,s))||n[r].slice(0,a)},m=function(e){return y.s(a%12||12,e,"0")},$=f||function(e,t,r){var s=e<12?"AM":"PM";return r?s.toLowerCase():s};return s.replace(d,function(e,s){return s||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return y.s(t.$y,4,"0");case"M":return c+1;case"MM":return y.s(c+1,2,"0");case"MMM":return h(r.monthsShort,c,l,3);case"MMMM":return h(l,c);case"D":return t.$D;case"DD":return y.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,u,2);case"ddd":return h(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(a);case"HH":return y.s(a,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return $(a,i,!0);case"A":return $(a,i,!1);case"m":return String(i);case"mm":return y.s(i,2,"0");case"s":return String(t.$s);case"ss":return y.s(t.$s,2,"0");case"SSS":return y.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,u,o){var l,d=this,f=y.p(u),h=p(e),m=(h.utcOffset()-this.utcOffset())*6e4,$=this-h,g=function(){return y.m(d,h)};switch(f){case c:l=g()/12;break;case a:l=g();break;case i:l=g()/3;break;case n:l=($-m)/6048e5;break;case"day":l=($-m)/864e5;break;case s:l=$/36e5;break;case r:l=$/6e4;break;case t:l=$/1e3;break;default:l=$}return o?l:y.a(l)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return m[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),s=v(e,t,!0);return s&&(r.$L=s),r},h.clone=function(){return y.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}(),M=x.prototype;
1return p.prototype=M,[["$ms",e],["$s",t],["$m",r],["$H",s],["$W","day"],["$M",a],["$y",c],["$D",u]].forEach(function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),p.extend=function(e,t){return e.$i||(e(t,x,p),e.$i=!0),p},p.locale=v,p.isDayjs=g,p.unix=function(e){return p(1e3*e)},p.en=m[h],p.Ls=m,p.p={},p},e.exports=t()},53762:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/portal/wallet",function(){return r(29538)}])},71827:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var s=r(87462),n=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},i=r(36936),c=n.forwardRef(function(e,t){return n.createElement(i.Z,(0,s.Z)({},e,{ref:t,icon:a}))})},71963:function(e,t,r){"use strict";var s=r(85893);r(67294);var n=r(72034);t.Z=e=>{let{strokeWidth:t=40,stroke:r="currentColor",className:a,...i}=e;return(0,s.jsx)(n.Z,{style:{strokeWidth:t,stroke:r},className:a,...i})}},33177:function(e,t,r){"use strict";r.d(t,{q:function(){return v}});var s=r(85893),n=r(67294),a=r(11163),i=r(86896),c=r(33937),u=r(23918),o=r(78361),l=r(36971),d=r(98891),f=r(16172),h=r(94570),m=r(15798);let $={PENDING:"pending",SUCCESS:"success",FAILED:"failed"};var g=e=>{let{isModalOpen:t,setIsModalOpen:r,token:g,tid:v,payment:p}=e,y=(0,i.Z)(),x=(0,a.useRouter)(),{refetchUser:M}=(0,m.Z)(),[_,w]=(0,n.useState)(!1),{accessToken:b}=(0,f.Z)(e=>e.app),[D,N]=(0,n.useState)($.PENDING),S=async()=>{if(v)try{await w(!0);let{status:e}=await o.ZP.get(null,"v1/credit_plan_order/uuid/".concat(v),{},b);e!==$.PENDING?(N(e),w(!1)):setTimeout(S,1e4)}catch(e){w(!1),N($.FAILED),(0,d.OR)((0,l.n)(e).message)}};return(0,n.useEffect)(()=>{x.isReady&&v&&b&&S()},[x.isReady,v]),(0,s.jsxs)(c.Z,{title:"",isModalOpen:t,setIsModalOpen:r,props:{closable:!1,maskClosable:!1,className:"sm:!w-[400px] !w-[300px]"},children:[_&&(0,s.jsx)("div",{children:(0,s.jsx)(h.Z,{})}),D===$.SUCCESS&&(0,s.jsxs)("div",{className:"text-white",children:[(0,s.jsx)("div",{className:"text-center sm:mb-4 sm:text-3xl text-xl font-bold",children:y.formatMessage({id:"Successful"})}),(0,s.jsx)("div",{className:"text-center text-gray-100",children:y.formatMessage({id:"Your_charging_session_is_completed"})}),(0,s.jsx)("div",{className:"sm:my-6 my-4 h-px bg-[repeating-linear-gradient(to_right,theme(colors.gray.100)_0,theme(colors.gray.600)_2px,transparent_2px,transparent_10px)]"}),(0,s.jsxs)("div",{className:"sm:space-y-6 space-y-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("div",{className:"text-gray-100",children:y.formatMessage({id:"Name"})}),(0,s.jsxs)("div",{className:"font-bold sm:text-xl text-base",children:[y.formatMessage({id:"LEGIT_TOKEN"})," - ",Number(g||0)," ",y.formatMessage({id:"LEGIT_Tokens"})]})]}),(0,s.jsxs)("div",{className:"space-y-2 border-b border-gray-400 pb-4",children:[(0,s.jsx)("div",{className:"text-gray-100",children:y.formatMessage({id:"Reference_Number"})}),(0,s.jsxs)("div",{className:"font-bold sm:text-lg text-base",children:["#",v]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("div",{className:"text-gray-100",children:y.formatMessage({id:"Total_Payment"})}),(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsxs)("div",{className:"font-bold sm:text-lg text-base",children:["USD ",Number(p||0).toFixed(2)]}),(0,s.jsx)("div",{className:"w-6 h-6",children:(0,s.jsx)("img",{src:"https://legitapp-static.oss-accelerate.aliyuncs.com/icon_green_tick.png",alt:"success",className:"w-full h-full"})})]})]})]}),(0,s.jsx)("div",{className:"sm:mt-14 mt-8",children:(0,s.jsx)(u.Z,{id:"CONFIRM",onClick:()=>{r(!1),M(),x.replace(x.asPath.split("?")[0])},className:"w-full bg-gradient-red"})})]}),D===$.FAILED&&(0,s.jsxs)("div",{className:"text-white text-center text-lg",children:[y.formatMessage({id:"payment_page_transaction_failed"}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)(u.Z,{id:"payment_page_try_again",className:"w-full bg-gradient-red",onClick:()=>{x.replace(x.asPath.split("?")[0]),r(!1)}})]})]})};let v=e=>{let{children:t}=e,{status:r,token:i,tid:c,payment:u}
1=(0,a.useRouter)().query,[o,l]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{"success"===r&&i&&c&&u&&l(!0)},[r,i,c,u]),(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsx)(g,{isModalOpen:o,setIsModalOpen:l,token:i,tid:c,payment:u})]})}},29538:function(e,t,r){"use strict";r.r(t);var s=r(85893);r(67294);var n=r(14895),a=r(15288),i=r(33177);t.default=()=>(0,s.jsx)(i.q,{children:(0,s.jsx)(a.Z,{children:(0,s.jsx)(n.Z,{})})})}},function(e){e.O(0,[718,228,9635,6127,9407,6050,5675,3892,7855,7311,5288,9171,2888,9774,179],function(){return e(e.s=53762)}),_N_E=e.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.