PageSourceSearch

https://rekonise.com/chunk-TZEEMWAQ.js

js rekonise.com collected 2026-10-01 11:51:09 UTC 6,243 bytes, 1 lines download raw bytes

1import{a as P,b as F,c as L,d as z}from"./chunk-HCKMG35W.js";import{a as j}from"./chunk-QVMGNSYF.js";import{a as V}from"./chunk-5XJN6G4E.js";import{a as A}from"./chunk-UAJ3LDZG.js";import{e as I}from"./chunk-QRHPXOKA.js";import{a as k}from"./chunk-BR7SVKEQ.js";import{a as M,b as R}from"./chunk-7OXH5EWV.js";import{f as D}from"./chunk-FTXGPRFJ.js";import{a as E,d as T}from"./chunk-BRRFPLOY.js";import"./chunk-HGFVTFKX.js";import{Hb as v,Ib as f,Kb as w,Pb as c,Ub as i,Vb as n,_b as x,bb as h,bc as p,dc as l,ea as C,gb as r,lb as b,na as u,oa as _,qc as o,sb as S,sc as g,yb as m,yd as y}from"./chunk-EL2YAQZX.js";import"./chunk-EQDQRRRY.js";function B(t,s){t&1&&(i(0,"span",4)(1,"mat-icon",7),o(2,"check"),n(),o(3," Connected "),n())}function q(t,s){t&1&&(i(0,"p",10),o(1," Discord connected. "),n())}function H(t,s){t&1&&(i(0,"p",11),o(1," That Discord account is already linked to another Rekonise account. "),n())}function O(t,s){t&1&&(i(0,"p",12),o(1," Connecting Discord failed. Please try again. "),n())}function U(t,s){t&1&&(i(0,"p",13),o(1,"Loading\u2026"),n())}function $(t,s){t&1&&(i(0,"p",13),o(1,"Could not load Discord status."),n())}function G(t,s){if(t&1){let e=x();i(0,"img",25),p("error",function(){u(e);let a=l(4);return _(a.avatarError=!0)}),n()}if(t&2){let e=l(4);f("src",e.status.discord_user.avatar_url,h)}}function J(t,s){if(t&1&&(i(0,"div",19)(1,"span",26),o(2),n()()),t&2){let e=l(4);r(2),g(" ",(e.status.discord_user.global_name||e.status.discord_user.username).charAt(0)," ")}}function K(t,s){if(t&1&&(i(0,"div",14),m(1,G,1,1,"img",18)(2,J,3,1,"div",19),i(3,"div",20)(4,"p",21),o(5),n(),i(6,"p",22),o(7),n()(),i(8,"span",23)(9,"mat-icon",24),o(10,"check_circle"),n(),o(11," Linked "),n()()),t&2){let e=l(3);r(),c(e.avatarError?2:1),r(4),g(" ",e.status.discord_user.global_name||e.status.discord_user.username," "),r(2),g(" @",e.status.discord_user.username," ")}}function N(t,s){if(t&1){let e=x();i(0,"div",15)(1,"p",13),o(2," Link your Discord account so upcoming bot features can recognize you. "),n(),i(3,"button",27),p("click",function(){u(e);let a=l(3);return _(a.connect())}),o(4," Connect Discord "),n()()}}function Q(t,s){t&1&&(i(0,"p",17),o(1," Connect your Discord account first to add the bot. "),n())}function W(t,s){if(t&1){let e=x();m(0,K,12,3,"div",14)(1,N,5,0,"div",15),i(2,"button",16),p("click",function(){u(e);let a=l(2);return _(a.openInstall())}),o(3," Add the Rekonise bot "),n(),m(4,Q,2,0,"p",17)}if(t&2){let e=l(2);c(e.status.connected&&e.status.discord_user?0:e.status.connected?-1:1),r(2),f("disabled",!e.status.connected),r(2),c(e.status.connected?-1:4)}}function X(t,s){if(t&1&&(i(0,"div",6)(1,"p",8),o(2," Add the Rekonise bot to Discord. Share your stats anywhere with "),i(3,"code",9),o(4,"/stats"),n(),o(5,". "),n(),m(6,q,2,0,"p",10)(7,H,2,0,"p",11)(8,O,2,0,"p",12)(9,U,2,0,"p",13)(10,$,2,0,"p",13)(11,W,5,3),n()),t&2){let e=l();r(6),c(e.callbackResult==="connected"?6:e.callbackResult==="taken"?7:e.callbackResult==="error"?8:-1),r(3),c(e.loading?9:e.status?11:10)}}var _t=(()=>{class t{constructor(e,d){this.title=e,this.actionChips=d,this.status=null,this.loading=!0,this.callbackResult=null,this.expanded=!0,this.avatarError=!1,this.http=C(D),this.route=C(I),this.title.set("Integrations"),this.actionChips.setState([P,F,L,z])}ngOnInit(){this.callbackResult=this.route.snapshot.queryParamMap.get("discord"),this.http.get(`${k.api}/discord/status`).subscribe({next:e=>{this.status=e,this.loading=!1},error:()=>this.loading=!1})}connect(){this.status?.connect_url&&(window.location.href=this.status.connect_url)}openInstall(){this.status?.install_url&&window.open(this.status.install_url,"_blank")}static{this.\u0275fac=function(d){return new(d||t)(b(A),b(j))}}static{this.\u0275cmp=S({type:t,selectors:[["app-dashboard-settings-integrations"]],decls:11,vars:7,consts:[[1,"max-w-2xl","pb-40"],["type","button","aria-controls","discord-integration-body",1,"flex","w-full","items-center","gap-3","text-left",3,"click"],[1,"text-[#5865F2]"],[1,"text-lg","font-medium"],[1,"ml-auto","inline-flex","items-center","gap-1","rounded-full","bg-primary/15","px-2.5","py-1","text-xs","font-semibold","text-primary"],[1,"text-muted","transition-transform","duration-200"],["
1id","discord-integration-body",1,"mt-3"],[1,"!h-3.5","!w-3.5","!text-[14px]"],[1,"mb-4","text-sm","text-muted"],[1,"rounded","bg-white/10","px-1.5","py-0.5","text-xs"],[1,"mb-4","rounded-lg","border","border-primary/25","bg-primary/10","px-3","py-2","text-sm","text-primary"],[1,"mb-4","rounded-lg","border","border-amber-500/25","bg-amber-500/10","px-3","py-2","text-sm","text-amber-300"],[1,"mb-4","rounded-lg","border","border-rose-500/25","bg-rose-500/10","px-3","py-2","text-sm","text-rose-300"],[1,"text-sm","text-muted"],[1,"mb-4","flex","items-center","gap-3","rounded-xl","border","border-white/10","bg-white/[0.04]","px-4","py-3"],[1,"mb-4","flex","flex-wrap","items-center","justify-between","gap-3","rounded-xl","border","border-white/10","bg-white/[0.04]","px-4","py-3"],["mat-stroked-button","",3,"click","disabled"],[1,"mt-2","text-xs","text-muted"],["alt","",1,"h-10","w-10","rounded-full",3,"src"],[1,"grid","h-10","w-10","shrink-0","place-items-center","rounded-full","bg-white/5"],[1,"min-w-0","flex-1"],[1,"truncate","text-sm","font-medium","text-gray-100"],[1,"truncate","text-xs","text-muted"],[1,"inline-flex","shrink-0","items-center","gap-1","text-xs","font-semibold","text-primary"],[1,"!h-4","!w-4","!text-[16px]"],["alt","",1,"h-10","w-10","rounded-full",3,"error","src"],[1,"text-sm","font-semibold","uppercase","text-white/60"],["mat-flat-button","",1,"!bg-[#5865F2]","!text-white",3,"click"]],template:function(d,a){d&1&&(i(0,"div",0)(1,"app-card")(2,"button",1),p("click",function(){return a.expanded=!a.expanded}),i(3,"mat-icon",2),o(4,"smart_toy"),n(),i(5,"h2",3),o(6,"Discord"),n(),m(7,B,4,0,"span",4),i(8,"mat-icon",5),o(9,"expand_more"),n()(),m(10,X,12,2,"div",6),n()()),d&2&&(r(2),v("aria-expanded",a.expanded),r(5),c(a.status!=null&&a.status.connected?7:-1),r(),w("ml-auto",!(a.status!=null&&a.status.connected))("rotate-180",a.expanded),r(2),c(a.expanded?10:-1))},dependencies:[y,T,E,R,M,V],encapsulation:2})}}return t})();export{_t as DashboardSettingsIntegrationsComponent};

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.