PageSourceSearch

https://thedebriefingacademy.com/_next/static/chunks/197-bae2fe44baf1c8c2.js

js thedebriefingacademy.com collected 2026-10-04 04:20:48 UTC 7,282 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{197:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var a=t(4051),r=t.n(a),o=t(5893),i=t(7294),l=t(1664),s=t.n(l),u=t(1163),c=t(2947),d=t(8580),m=t(7206),_=t.n(m);t(4803),t(8);function h(e,n,t,a,r,o,i){try{var l=e[o](i),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(a,r)}function f(e){return function(){var n=this,t=arguments;return new Promise((function(a,r){var o=e.apply(n,t);function i(e){h(o,a,r,i,l,"next",e)}function l(e){h(o,a,r,i,l,"throw",e)}i(void 0)}))}}var p=t(381);function g(){var e,n=function(){document.getElementById("mySidebar").style.width="0"},t=function(){document.getElementById("dropdownSubmenu").classList.toggle("show")},a=(0,u.useRouter)(),l=a.pathname?a.pathname:"",m=(0,i.useState)({}),h=m[0],g=m[1],v=(0,i.useState)(""),b=v[0],x=v[1],w=(0,i.useState)(""),k=w[0],S=w[1],j=(0,i.useState)(""),H=(j[0],j[1]),N=function(){var e=c.ts();g(e)},y=function(){var e=f(r().mark((function e(){var n,t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.Pg();case 2:1===(n=e.sent).data.status?(t=n.data.data[0],x(t)):x();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=f(r().mark((function e(){var n,t,a,o,i,l,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d.ts(),t=[],!n){e.next=15;break}return e.prev=3,e.next=6,d.p0(n?n._id:null);case 6:(a=e.sent)&&(1===a.data.status&&(o=a.data.log.user_country_code?a.data.log.user_country_code:"",H("CA"===o?"CAD":"USD"),(i=new Date).setDate(i.getDate()+1),i.setUTCHours(3,59,59,59),i.toISOString(),(t=a.data.log.user_wallet.length>0?a.data.log.user_wallet:[])&&t.length>0&&(l=t.filter((function(e){return e.creditexpiry>=p(new Date).format("YYYY-MM-DD")})),console.log(62,l.length),l&&l.length>0&&(s=l.reduce((function(e,n){return e+n.credit}),0))&&s>0&&S(s))),setTimeout((function(){}),1e3)),e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",e.t0);case 13:e.next=16;break;case 15:case 16:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){N(),y(),C()}),[]),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"mobile-main",children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)("div",{className:"device-menu",children:(0,o.jsx)("div",{className:"item-burger",children:(0,o.jsxs)("div",{className:"menu-burger",onClick:function(){document.getElementById("mySidebar").style.width="100%"},children:[(0,o.jsx)("span",{}),(0,o.jsx)("span",{className:"middle"}),(0,o.jsx)("span",{})]})})}),(0,o.jsxs)("div",{id:"mySidebar",className:"sidebar",children:[(0,o.jsx)("a",{className:"closebtn",onClick:n,children:"\xd7"}),b?(0,o.jsxs)("ul",{className:"navbar-nav mr-auto mt-2 mt-lg-0",children:[null===(e=b.menu_items)||void 0===e?void 0:e.map((function(e,r){var i;return(0,o.jsxs)("li",{className:e.sub_menu.length?"nav-item dropdown":"nav-item",id:e.sub_menu.length?"drpdownMenu":"",children:[(0,o.jsx)(s(),{href:e.link?e.link:"#",children:(0,o.jsxs)("a",{className:e.sub_menu.length?a.pathname==e.link?"nav-link dropdown-toggle active":"nav-link dropdown-toggle":a.pathname==e.link?"nav-link active":"nav-link",onClick:e.sub_menu.length?t:"",children:[e.title," "]})}),e.sub_menu.length?(0,o.jsx)("ul",{className:"dropdown-menu",id:"dropdownSubmenu",children:null===(i=e.sub_menu)||void 0===i?void 0:i.map((function(e,t){return(0,o.jsx)("li",{className:"dropdown-item",children:(0,o.jsx)(s(),{href:e.sub_link?e.sub_link:"",children:(0,o.jsx)("a",{className:l==e.sub_link?"active":"",onClick:n,children:e.sub_title})})},t)}))}):""]},r)})),(0,o.jsx)("li",{className:"nav-item",children:h?(0,o.jsx)("a",{className:"nav-link",onClick:function(){c.kS();N(),a.push("/login")},children:"LOGOUT"}):""}),k?(0,o.jsx)("li",{className:_().walletList+" "+_().mobilewallet,children:(0,o.jsxs)("div",{className:_().walletSec,children:[(0,o.jsx)("div",{className:_().walletlabel,children:" Wallet "}),(0,o.jsxs)("div",{className:_().balanceAmount,children:[" ","$",parseFloat(k).toFixed(2)," "]})]})}):"",(0,o.jsx)("li",{className:"nav-item",children:(0,o.jsx)("a",{href:"https://academyarchive.com/",target:"_blank",children:(0,o.jsx)("a",{className:"nav-link",children:(0,o.jsxs)("button",{className:"archiveButton",children:[" ","ACADEMY ARCHIVE"]})})})}),(0,o.jsx)("li",{className:"nav-item",children:h?(0,o.jsx)(s(),{href:"/dashboard/courses",children:(0,o.jsxs)("button",{className:"headerButton loginMenu",children:[" ","DASHBOARD"," "]})}):(0,o.jsx)(s(),{href:"/login",children:(0,o.jsxs)("button",{className:"headerButton loginMenu",children:[" ","LOGIN"," "]})})})]}):""]})]})})})}},2947:function(e,n,t){"use strict";t.d(n,{DQ:function(){return u},G2:function(){return h},Hx:function(){return p},KV:function(){return b},Pg:function(){return x},YR:function(){return s},ek:function(){return g},gF:function(){return f},gQ:function(){return v},kS:function(){return c},ts:function(){return d},wj:function(){return _},xo:function(){return m}});var a=t(6112),r=t(5934),o=t(6245),i=t(9669).default,l="userToken";function s(e){return i.post(a.Z+"/authenticate",{email:e.email,password:e.password})}function u(e){return localStorage.setItem(l,e),!0}function c(){localStorage.removeItem(l)}function d(){try{var e=localStorage.getItem(l);return(0,o.Z)(e)}catch(n){return null}}function m(){return i.post(a.Z+"/user/checkUserexist",{token:localStorage.getItem(l)})}function _(e){return i.post(a.Z+"/user/verifyUserEmail",{data:e})}function h(e){return i.post(a.Z+"/user/sendVerificationmail",{email:e})}function f(e){return i.post(a.Z+"/user/forgotPassword",{data:e})}function p(e){return i.post(a.Z+"/user/getUserDatas",{id:e,token:localStorage.getItem(l)})}function g(e){return i.post(a.Z+"/user/updateUserDetails",{data:e,token:localStorage.getItem("userToken")})}function v(e){return i.post(a.Z+"/user/updatePassword",{data:e,token:localStorage.getItem(l)})}function b(e){var n=new FormData,t=localStorage.getItem(l);n.append("file",e.upload_files),n.append("token",t);var o=Date.now().toString()+"-"+e.upload_files.name,s=(0,r.Z)();return i.post(a.Z+"/user/updateProfileImg?uid="+s+"&file="+o,n,{})}function x(){return i.post(a.Z+"/user/getHeader",{})}},7206:function(e){e.exports={headerSection:"Header_headerSection__gtC5S",headerContainer:"Header_headerContainer__m5wGA",headerBlock:"Header_headerBlock__zQCt7",logoSection:"Header_logoSection__RNoIg",headerLogo:"Header_headerLogo__yE0Pv",menuSection:"Header_menuSection__mREBc",menuUl:"Header_menuUl__bmW4d",colorLi:"Header_colorLi__GYMMV",active:"Header_active__gnzlZ",menuLogout:"Header_menuLogout__6tag0",buttonSection:"Header_buttonSection__Pp5tg",menuSectionMobile:"Header_menuSectionMobile__sFikH",topSection:"Header_topSection__Ywh8J",loginMenu:"Header_loginMenu__0YvSc",drpMen:"Header_drpMen__3Rdkq",menuSubArrw:"Header_menuSubArrw__RLrH7",walletList:"Header_walletList__ZLcPW",walletSec:"Header_walletSec__Wkh2i",walletlabel:"Header_walletlabel__hXFjr",balanceAmount:"Header_balanceAmount__KwBDC",mobilewallet:"Header_mobilewallet__F0msC",tooltipHeader:"Header_tooltipHeader__Tb4Jc",tooltipBody:"Header_tooltipBody__i5lpO"}}
1}]);

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.