1import{a as l}from"./chunk-AAPPULK7.js";import{b as L}from"./chunk-XFT76LM3.js";import{b as U}from"./chunk-B7MEV2DH.js";import{a as q}from"./chunk-M3EMDAFZ.js";import{a as H}from"./chunk-NTCDGAR3.js";import"./chunk-UMK6AGIS.js";import"./chunk-PBAOXUCO.js";import"./chunk-7UZYWCAJ.js";import"./chunk-RIQOBMUM.js";import{o as A}from"./chunk-WX25E2HZ.js";import"./chunk-I5K7UUBW.js";import"./chunk-6BAE5M2B.js";import"./chunk-WSF7ZPQZ.js";import"./chunk-CWWNL6ZE.js";import"./chunk-FSAIB72R.js";import"./chunk-OLSNRRTA.js";import"./chunk-GJNXMHJK.js";import"./chunk-ROYL3S4H.js";import"./chunk-XWMJJGBF.js";import"./chunk-5G7452JJ.js";import"./chunk-O6NNHBDA.js";import{h as Q}from"./chunk-VK3ZU6WP.js";import{G as z}from"./chunk-BRHCVEVW.js";import{Ed as b,Fd as x,Ga as _,Gd as w,Ic as V,Jc as I,Kd as R,Me as v,Ob as s,Oc as u,Pc as o,Qa as p,Qc as r,Ra as m,Rc as D,Sd as T,Zc as g,ac as C,ae as j,ce as W,ed as h,hc as E,hd as d,ic as y,ld as P,mc as F,md as B,nd as O,rd as N,wd as a,xd as k,yd as M}from"./chunk-7DV7UWC6.js";import"./chunk-XS7UEPGF.js";import{a as S}from"./chunk-IP4IO47A.js";v();var K=["startDt"],X=()=>["grey-1100","red-700"],Z=()=>["grey-00","red-100"];function $(e,f){if(e&1){let t=g();o(0,"tr")(1,"td",14)(2,"span"),a(3),r()(),o(4,"td")(5,"span"),a(6),r()(),o(7,"td")(8,"div",15)(9,"span",16),a(10),r(),o(11,"em",17),h("click",function(){let i=p(t).$implicit,c=d();return m(c.copyToken(i==null?null:i.access_token))}),a(12,"Copy"),r()()(),o(13,"td",14)(14,"span"),a(15),j(16,"date"),r()(),o(17,"td",14)(18,"button",18),h("click",function(){let i=p(t).$implicit,c=d();return m(c.deleteToken(i))}),a(19,"delete"),r()()()}if(e&2){let t=f.$implicit,n=f.index;s(3),M(" ",n+1," "),s(3),k(t==null?null:t.token_name.replaceAll('"',"")),s(3),u("title",R(t==null?null:t.access_token)),s(),M(" ",t==null?null:t.access_token),s(5),k(W(16,6,t==null?null:t.expires_at,"medium"))}}function ee(e,f){e&1&&(o(0,"tr")(1,"td",19),a(2,"No Records Found"),r()())}function te(e,f){if(e&1){let t=g();o(0,"un-modal",20),h("closeModal",function(){p(t);let i=d();return m(i.hideViewPanel())}),o(1,"un-modal-header")(2,"div",21)(3,"div",22),a(4," Create New Token "),r()(),o(5,"un-icon",23),h("click",function(){p(t);let i=d();return m(i.hideViewPanel())}),r()(),o(6,"un-modal-content")(7,"div")(8,"div",24)(9,"label"),a(10,"Token Name"),r(),o(11,"input",25),w("ngModelChange",function(i){p(t);let c=d();return x(c.tokenInfo.name,i)||(c.tokenInfo.name=i),m(i)}),r()(),o(12,"div",24)(13,"label"),a(14,"Expired At"),r(),o(15,"input",26),w("ngModelChange",function(i){p(t);let c=d();return x(c.tokenInfo.expiry_at,i)||(c.tokenInfo.expiry_at=i),m(i)}),r(),D(16,"owl-date-time",27,0),r(),o(18,"button",28),h("click",function(){p(t);let i=d();return m(i.createRecord())}),a(19,"Submit"),r()()()()}if(e&2){let t=N(17),n=d();s(5),u("bgSize",30)("size",18)("color",T(10,X))("bg",T(11,Z)),s(6),b("ngModel",n.tokenInfo.name),s(4),b("ngModel",n.tokenInfo.expiry_at),u("min",n.minDate)("owlDateTime",t)("owlDateTimeTrigger",t),s(),u("pickerMode","dialog")}}var G=(()=>{class e{constructor(t,n,i){this.http=t,this.toast=n,this.clipboardService=i,this.minDate=new Date}ngOnInit(){this.getAllTokens()}getAllTokens(){this.http.get("/api/custom-token/all").subscribe(n=>{this.allTokens=n?.data})}copyToken(t){this.clipboardService.copyFromContent(t),this.toast.toast("Token copied successfully",2e3,"green")}startDateOpenDialogue(){this.tokenInfo?.expiry_at||this.startDt.cancel(),this.startDt.open()}hideViewPanel(){this.tokenInfo=null}createNewToken(){this.tokenInfo={name:null,expiry_at:null}}createRecord(){let t="/api/custom-token/create",n=S({},this.tokenInfo);this.http.post(t,n).subscribe(i=>{this.toast.toast("Your unique token has been successfully created.",3e3,"green"),this.getAllTokens(),this.hideViewPanel()})}deleteToken(t){if(confirm("Are you sure want to delete this token?")){let n=`/api/custom-token/delete/${t?.access_token}`;this.http.delete(n).subscribe(i=>{this.toast.toast("Your token has been successfully removed.",3e3,"green"),this.getAllTokens()})}}static{this.\u0275fac=function(n){return new(n||e)(C(Q),C(H),C(q))}}static{this.\u0275cmp=E({type:e,selectors:[["app-my-account-tokens"]],viewQuery:function(n,i){if
1(n&1&&P(K,5),n&2){let c;B(c=O())&&(i.startDt=c.first)}},standalone:!1,decls:24,vars:3,consts:[["startDt",""],[1,"container-un"],[1,"j-between","mb-20"],[1,"a_hdng"],["unButton","","unButtonBorder","",3,"click"],[1,"table_data","unstop_table"],[1,"table","bordered"],[1,"center-align",2,"width","5%"],[2,"width","30%"],[2,"width","20%"],[1,"center-align",2,"width","20%"],[1,"center-align",2,"width","10%"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"center-align"],[1,"align-center","trim_char"],[1,"single-wrap",3,"title"],[3,"click"],[1,"del_btn","red","material-icons",3,"click"],["colspan","5",1,"center"],[3,"closeModal"],[1,"un_org_card","lg"],[1,"title","font-16"],["asBtn","","rounded","full","icon","close.svg",1,"close",3,"click","bgSize","size","color","bg"],[1,"input_fields_bdr","mb-20"],["type","text","name","Name","placeholder","Enter Token Name",3,"ngModelChange","ngModel"],["id","session_date","type","text","readonly","","name","session_date","placeholder","Date",1,"",3,"ngModelChange","ngModel","min","owlDateTime","owlDateTimeTrigger"],[3,"pickerMode"],["unButton","","unButtonCircle","",1,"waves-effect",3,"click"]],template:function(n,i){n&1&&(o(0,"section",1)(1,"div",2)(2,"h2",3),a(3," My Account Token "),r(),o(4,"button",4),h("click",function(){return i.createNewToken()}),a(5," Create New Token "),r()(),o(6,"div",5)(7,"table",6)(8,"thead")(9,"tr")(10,"th",7),a(11,"#"),r(),o(12,"th",8),a(13,"Name"),r(),o(14,"th",9),a(15,"Token"),r(),o(16,"th",10),a(17,"Expiry At"),r(),o(18,"th",11),a(19,"Action"),r()()(),o(20,"tbody"),F(21,$,20,9,"tr",12)(22,ee,3,0,"tr",13),r()()()(),V(23,te,20,12,"un-modal")),n&2&&(s(21),u("ngForOf",i.allTokens),s(),u("ngIf",(i.allTokens==null?null:i.allTokens.length)==0),s(),I(i.tokenInfo?23:-1))},styles:["section[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px}td[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px}.trim_char[_ngcontent-%COMP%]{width:100%;max-width:500px}.trim_char[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{font-style:normal;cursor:pointer;padding:6px 10px;background:#0073e629;color:var(--blue-700);font-size:13px;border-radius:4px;margin-left:10px;transition:.4s}.trim_char[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:hover{background:var(--blue-700);color:var(--grey-00)}.del_btn[_ngcontent-%COMP%]{color:var(--grey-00);font-size:18px;padding:6px;border-radius:50%}"]})}}return e})();v();var ne=[{path:"",redirectTo:"my-activity",pathMatch:"full"},{path:"my-account-tokens",component:G,canActivate:[l],data:{breadcrumb:"Account Tokens",hideFooter:!0,sidebarConfig:{show:!0,type:"default",expand:!0}}},{path:"hiring-plan/payment",loadChildren:()=>import("./chunk-EEL6DIE3.js").then(e=>e.HiringPlanModule),canActivate:[l],data:{hideFooter:!0,headerConfig:{searchBar:!1},sidebarConfig:{show:!1}}},{path:"hiring-plan/premium/:opp_id",loadChildren:()=>import("./chunk-EEL6DIE3.js").then(e=>e.HiringPlanModule),canActivate:[l],data:{breadcrumb:"Premium Plan",hideFooter:!0,headerConfig:{searchBar:!1},sidebarConfig:{show:!1}}},{path:"calendar",loadComponent:()=>import("./chunk-SXJ4IDCR.js").then(e=>e.MyCalendarComponent),canActivate:[l],data:{breadcrumb:"Calendar",hideFooter:!0,sidebarConfig:{show:!0,type:"default",expand:!0}}},{path:"myCourses",canActivate:[l],data:{breadcrumb:"My Courses",hideFooter:!0,sidebarConfig:{show:!0,type:"default",expand:!0}},children:[{path:"",redirectTo:"all/all",pathMatch:"full"},{path:":type/:status",loadComponent:()=>import("./chunk-3RTMJF47.js").then(e=>e.MyCoursesComponent)}]},{path:"registrations",canActivate:[l],data:{breadcrumb:"My Applications",hideFooter:!0,sidebarConfig:{show:!0,type:"default",expand:!0}},children:[{path:"",redirectTo:"all/all",pathMatch:"full"},{path:":type/:status",loadComponent:()=>import("./chunk-YIPTAHKZ.js").then(e=>e.MyRegistrationsComponent),data:{hideFooter:!0,sidebarConfig:{show:!0,type:"default",expand:!0}}}]},{path:"colleges",canActivate:[l],data:{breadcrumb:"My Colleges",hideFooter:!0},children:[{path:"",redirectTo:"all/all",pathMatch:"full"},{path:":type/:status",loadComponent:()=>import("./chunk-SHOXIETA.js").then(e=>e.MyCollegeComponent)}]},{path:"watchlist",canActivate:[l],data:{breadcrumb:"Watchlist",hideFooter:!0},children:[{path:"",redirectTo:"all/live",pathMatch:"full"},{path:":type/:status",loadComponent:()=>import("./chunk-IAKP4FVI.js").then(e=>e.MyWatchlistComponent)}]},{path:"rounds",canActivate:[l],data:{breadcrumb:"My Rounds",hideFooter:!0},children:[{path:"",redirectTo:"all/all",pathMatch:"full"},{path:":type/:status",loadComponent:()=>import("./chunk-BO2TUKUG.js").then(e=>e.MyRoundsComponent)}]},{path:"recently-viewed",canActivate:[l],data:{breadcrumb:"Recently Viewed",hideFooter:!0},children:[{path:"",redirectTo:"all",pathMatch:"full"},{path:":type",loadComponent:()=>import("./chunk-TXPLWO5A.js").then(e=>e.MyRecentlyViewedComponent)}]},{path:"mentor-sessions",canActivate:[l],data:{breadcrumb:"My Sessions",hideFooter:!0},children:[{path:"",redirectTo:"all",pathMatch:"full"},{path:":type",loadComponent:()=>import("./chunk-4KBFQOUE.js").then(e=>e.MenteeBookedSessionsComponent)},{path:":type/:status",loadComponent:()=>import("./chunk-4KBFQOUE.js").then(e=>e.MenteeBookedSessionsComponent)}]},{path:"certificates",loadChildren:()=>import("./chunk-RDPHN4IC.js").then(e=>e.UserCertificateViewModule),canActivate:[l],data:{breadcrumb:"My Certificates",hideFooter:!0}},{path:"certificate-of-appreciation",loadChildren:()=>import("./chunk-KGOFJQYH.js").then(e=>
1e.CertificateOfAcknowledgementModule),canActivate:[l],data:{breadcrumb:"Certificate of Appreciation",hideFooter:!0}},{path:"starred-questions",loadComponent:()=>import("./chunk-LBC5XPKR.js").then(e=>e.StarredQuestionsComponent),canActivate:[l],data:{breadcrumb:"Bookmarked Questions",hideFooter:!0}},{path:"my-activity",loadComponent:()=>import("./chunk-4JE2RZV5.js").then(e=>e.MyActivity),canActivate:[l],data:{hideFooter:!0,sidebarConfig:{show:!0,type:"default",expand:!0}}}],J=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=y({type:e})}static{this.\u0275inj=_({imports:[A.forChild(ne),A]})}}return e})();v();var ye=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=y({type:e})}static{this.\u0275inj=_({imports:[z,J,L,U]})}}return e})();export{ye as UserModule};
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.