PageSourceSearch

https://static-prod.mightycause.com/mc-client/chunk-ALW27YUJ.js

js mightycause.com collected 2026-09-24 07:15:51 UTC 8,961 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fb0d1303-f4e8-5436-9ef5-695d1966d1b5")}catch(e){}}();
3import{b as le}from"./chunk-F6MQN56U.js";import{a as re}from"./chunk-XZCN7ZFF.js";import"./chunk-CZRYKVLO.js";import"./chunk-XSZZWV5I.js";import"./chunk-TJQH26S6.js";import"./chunk-AOVG3ODU.js";import"./chunk-YUNWLS6E.js";import"./chunk-MCT5D75J.js";import"./chunk-K5PPCAPC.js";import"./chunk-UHZ4BJZN.js";import"./chunk-Z3EW3FH5.js";import"./chunk-Q5UIOSSP.js";import"./chunk-2GXNKGGH.js";import{a as pe,b as se,c as de,e as ce,f as ue,h as fe,i as _e,k as Ce,l as Se,n as he,p as ve}from"./chunk-IZJQTZVB.js";import"./chunk-6HTRP6U7.js";import"./chunk-BSKHYKXK.js";import"./chunk-I5X7DE55.js";import"./chunk-ETZRMDHS.js";import"./chunk-NPR23P7I.js";import"./chunk-BVS47MGJ.js";import"./chunk-WDJPTZC5.js";import"./chunk-XZFXRJRY.js";import"./chunk-AAFBOZHS.js";import"./chunk-T5Q4IEHB.js";import"./chunk-A7W5NRHC.js";import"./chunk-NTJ4CINI.js";import"./chunk-6UNLROVI.js";import"./chunk-XBHOMARE.js";import"./chunk-DSHWJW7U.js";import"./chunk-FLZNG7WM.js";import"./chunk-Y53ZYOIU.js";import"./chunk-3YM57F2T.js";import"./chunk-4QRFWAA5.js";import"./chunk-4OKMPB3H.js";import{a as me}from"./chunk-AGVOJNE2.js";import"./chunk-HJXQJEZE.js";import"./chunk-I664YVIA.js";import"./chunk-YSTTJCSR.js";import"./chunk-CN4EGA4I.js";import"./chunk-Z5M2FKAZ.js";import"./chunk-5NDSS4DO.js";import"./chunk-TTUVP5SZ.js";import"./chunk-5CMUHLSG.js";import"./chunk-TNAGEFXD.js";import"./chunk-YH4N3M4B.js";import"./chunk-BHOSW24E.js";import"./chunk-56LBQIQP.js";import"./chunk-IKWIL4NU.js";import"./chunk-5K5PYV5V.js";import"./chunk-TDGVUJZJ.js";import{d as W}from"./chunk-MWF7JXGK.js";import"./chunk-UJXOZNZV.js";import{a as ne,b as oe}from"./chunk-KS3Q7H57.js";import"./chunk-DAOAKQM2.js";import"./chunk-MGCQ5S6F.js";import"./chunk-MJXNRHWH.js";import"./chunk-BUOPWRDV.js";import{d as ee,e as te}from"./chunk-UQU3EU23.js";import"./chunk-346ISJSG.js";import{b as ie,d as ae}from"./chunk-CNRKNNWP.js";import{d as Q}from"./chunk-L6Z7ZO7O.js";import"./chunk-TLCCWCNW.js";import{a as X}from"./chunk-5SJALNJN.js";import{a as z,d as G,i as J}from"./chunk-XEY266ER.js";import"./chunk-SEDEP525.js";import"./chunk-SECBI6OV.js";import"./chunk-LXBG4CPT.js";import"./chunk-56KVT3OQ.js";import{H as K,b as q,g as U,n as j}from"./chunk-MF7VZYLI.js";import{a as N,b as O,e as $}from"./chunk-NFMDOWTR.js";import"./chunk-QE6DXY66.js";import{a as Y,b as Z}from"./chunk-B5YZVWIB.js";import"./chunk-HCSN2NMS.js";import"./chunk-FDIRDMLL.js";import"./chunk-XQLUXGKM.js";import"./chunk-3JHJJCIF.js";import"./chunk-J4X36CU5.js";import"./chunk-X3ZU2Z3D.js";import"./chunk-QZXCI4ZV.js";import"./chunk-VO633UWN.js";import"./chunk-XIKGSSI2.js";import"./chunk-MNZQGPDO.js";import{g as H,k as V,p as A}from"./chunk-NK2KZLT6.js";import"./chunk-MU5APV2L.js";import"./chunk-KRFZY2QT.js";import"./chunk-DFSGG2NH.js";import"./chunk-MREDPIUE.js";import"./chunk-BWICLBYB.js";import"./chunk-TYTNPDEC.js";import"./chunk-WAPZ5LEW.js";import{L as F}from"./chunk-746D4QTP.js";import{Ac as M,Dc as L,Ib as I,Ob as p,Sc as r,Tc as y,Ua as D,Uc as S,Yc as T,Zc as b,_c as g,a as x,cc as h,dc as v,gc as k,hc as P,ic as d,id as B,jc as a,kc as t,lc as c,pc as u,qa as C,qb as m,qc as f,uc as R,va as w,wa as E}from"./chunk-BZJI6Z2X.js";import"./chunk-CS7K6LXP.js";var Me=e=>["/user",e],ye=(e,i)=>i.value;function Te(e,i){if(e&1&&(a(0,"mat-option",8),r(1),t()),e&2){let n=i.$implicit;d("value",n.value),m(),S(" ",n.viewValue," ")}}function be(e,i){e&1&&(a(0,"th",28),r(1,"Key"),t())}function ge(e,i){if(e&1&&(a(0,"td",29),r(1),t()),e&2){let n=i.$implicit;m(),S(" ",n.key," ")}}function xe(e,i){e&1&&(a(0,"th",28),r(1,"User Name"),t())}function we(e,i){if(e&1&&(a(0,"td",29)(1,"a",30),r(2),t()()),e&2){let n=i.$implicit;m(),d("routerLink",B(2,Me,n.user_id)),m(),y(n.user_name)}}function Ee(e,i){e&1&&(a(0,"th",28),r(1,"User Email"),t())}function De(e,i){if(e&1&&(a(0,"td",29),r(1),t()),e&2){let n=i.$implicit;m(),S(" ",n.user_email," ")}}function Ie(e,i){e&1&&(a(0,"th",28),r(1,"IP Address"),t())}function ke(e,i){if(e&1&&(a(0,"td",29),r(1),t()),e&2){let n=i.$implicit;m(),S(" ",n.ip_address," ")}}function Pe(e,i){e&1&&(a(0,"th",28),r(1,"Attempt Count"),t())}function Re(e,i){if(e&1&&(a(0,"td",29),r(1),t()),e&2){let n=i.$implicit;m(),S(" ",n.value," ")}}function Le(e,i){e&1&&(a(0,"th",28),c(1,"i",31),t())}function Be(e,i){if(e&1){let n=R();a(0,"td",29)(1,"button",32),M("click",function(){let o=w(n).$implicit,_=L();return E(_.delete(o))}),c(2,"i",33),t()()}}function Fe(e,i){e&1&&c(0,"tr",34)}
3function He(e,i){e&1&&c(0,"tr",35)}function Ve(e,i){e&1&&(a(0,"div",26)(1,"p"),r(2,"No results found."),t()())}function Ae(e,i){e&1&&(a(0,"div",27)(1,"div",36),c(2,"mat-spinner",37),t()())}var ft=(()=>{class e{dialog=C(W);route=C(H);spamContentService=C(re);queryParamsService=C(le);spamType="user_id";searchText="";spamColumns=["key","user_name","user_email","ip_address","value","actions"];spamLoading;spamContents=[];spamTypes=[{value:"user_id",viewValue:"User"},{value:"ip_address",viewValue:"IP address"}];subscriptions=new x;platformId=C(D);ngOnInit(){F(this.platformId)&&this.subscriptions.add(this.route.queryParams.subscribe(()=>{this.queryParamsService.handleSpamContentParams(this.route)}))}ngOnDestroy(){this.subscriptions.unsubscribe()}searchSpam(){if(this.spamLoading||this.searchText==="")return;this.spamLoading=!0;let n={type:this.spamType,value:this.searchText};this.spamContentService.fetchSpamData(n).subscribe({next:l=>{this.spamContents=l,this.spamLoading=!1},error:()=>{this.spamLoading=!1}})}delete(n){this.dialog.open(me,{data:{title:"Are you sure?",confirmButtonText:"Delete",cancelButtonText:"Cancel",confirmButtonColor:"warn"}}).afterClosed().subscribe(o=>{if(o){let _={key:n.key};this.spamContentService.deleteSpamData(_).subscribe(()=>{this.searchSpam()})}})}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=I({type:e,selectors:[["app-spam"]],decls:50,vars:9,consts:[[1,"min-vh-100"],[1,"dashboard-container-fluid"],[1,"row"],[1,"col-12"],[1,"dashboard-heading","mb-2"],[1,"row","align-items-center"],[1,"col-12","col-md-3"],[3,"valueChange","value"],[3,"value"],["type","text","matInput","",3,"ngModelChange","ngModel"],["matPrefix","","fontSet","fa-solid","fontIcon","fa-search"],["mat-raised-button","","color","primary","type","button",1,"custom",3,"click","disabled"],[1,"col-12","mt-2","mb-3"],[1,"table-wrapper"],[1,"table-responsive"],["mat-table","",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user_name"],["matColumnDef","user_email"],["matColumnDef","ip_address"],["matColumnDef","value"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-no-results"],[1,"update-overlay"],["mat-header-cell",""],["mat-cell",""],[3,"routerLink"],[1,"fal","fa-tools"],["mat-icon-button","","color","warn","aria-label","Delete",3,"click"],[1,"fa-light","fa-trash-can"],["mat-header-row",""],["mat-row",""],[1,"spinner"],["diameter","50"]],template:function(l,o){l&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),r(5,"Spam"),t()()(),a(6,"div",5)(7,"div",6)(8,"mat-form-field")(9,"mat-label"),r(10,"Type"),t(),a(11,"mat-select",7),g("valueChange",function(s){return b(o.spamType,s)||(o.spamType=s),s}),k(12,Te,2,2,"mat-option",8,ye),t()()(),a(14,"div",6)(15,"mat-form-field")(16,"mat-label"),r(17),t(),a(18,"input",9),g("ngModelChange",function(s){return b(o.searchText,s)||(o.searchText=s),s}),t(),c(19,"mat-icon",10),t()(),a(20,"div",6)(21,"button",11),M("click",function(){return o.searchSpam()}),r(22," Search "),t()()(),a(23,"div",2)(24,"div",12)(25,"div",13)(26,"div",14)(27,"table",15),u(28,16),p(29,be,2,0,"th",17)(30,ge,2,1,"td",18),f(),u(31,19),p(32,xe,2,0,"th",17)(33,we,3,4,"td",18),f(),u(34,20),p(35,Ee,2,0,"th",17)(36,De,2,1,"td",18),f(),u(37,21),p(38,Ie,2,0,"th",17)(39,ke,2,1,"td",18),f(),u(40,22),p(41,Pe,2,0,"th",17)(42,Re,2,1,"td",18),f(),u(43,23),p(44,Le,2,0,"th",17)(45,Be,3,0,"td",18),f(),p(46,Fe,1,0,"tr",24)(47,He,1,0,"tr",25),t()(),h(48,Ve,3,0,"div",26),h(49,Ae,3,0,"div",27),t()()()()()),l&2&&(m(11),T("value",o.spamType),m(),P(o.spamTypes),m(5),y(o.spamType==="ip_address"?"Enter ip address":"Enter user id or email"),m(),T("ngModel",o.searchText),m(3),d("disabled",o.searchText===""),m(6),d("dataSource",o.spamContents),m(19),d("matHeaderRowDef",o.spamColumns),m(),d("matRowDefColumns",o.spamColumns),m(),v(o.spamContents.length===0?48:-1),m(),v(o.spamLoading?49:-1))},dependencies:[K,q,U,j,A,V,X,J,z,G,ae,ie,Q,te,ee,Z,Y,$,O,N,ve,pe,de,_e,ce,se,Ce,ue,fe,Se,he,oe,ne],encapsulation:2})}return e})();export{ft as SpamComponent};
4
5//# debugId=fb0d1303-f4e8-5436-9ef5-695d1966d1b5

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.