PageSourceSearch

https://fraudspy.com.bd/build/assets/SteadfastApiPage-Bzno1waF.js

js fraudspy.com.bd collected 2026-10-01 12:14:02 UTC 14,404 bytes, 1 lines download raw bytes

1import{d as G,u as J,j as f,r as m,w as Q,e as o,b as l,k as V,l as W,m as X,p as Y,g as e,f as h,t as i,z as d,v as w,x as S,G as Z,F as j,y as T,h as C,s as B}from"./app-D0fs7bu7.js";import{_ as ee}from"./AppLayout.vue_vue_type_script_setup_true_lang-CLnk0tKS.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css            */import"./Primitive-B-7kMMzx.js";import"./VisuallyHidden-OUinVFht.js";import"./createLucideIcon-CAMkqPlT.js";const re={class:"w-full max-w-[1600px] mx-auto px-4 sm:px-6 py-6 font-sans"},ae={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6"},se={class:"rounded-xl bg-gradient-to-br from-white to-gray-50 dark:from-gray-800 dark:to-gray-900 shadow-sm border border-gray-200 dark:border-gray-700 transition-transform duration-200 hover:-translate-y-1 hover:shadow-md border-l-4 border-l-blue-500"},oe={class:"p-4 flex items-center justify-between"},le={class:"text-2xl font-extrabold text-gray-800 dark:text-white mt-1"},ie={class:"rounded-xl bg-gradient-to-br from-white to-gray-50 dark:from-gray-800 dark:to-gray-900 shadow-sm border border-gray-200 dark:border-gray-700 transition-transform duration-200 hover:-translate-y-1 hover:shadow-md border-l-4 border-l-emerald-500"},de={class:"p-4 flex items-center justify-between"},ne={class:"text-2xl font-extrabold text-gray-800 dark:text-white mt-1"},ue={class:"p-4 flex items-center justify-between"},ge={class:"flex flex-col md:flex-row justify-between items-center gap-4 mb-6 sticky top-2 z-20 bg-gray-50/90 dark:bg-[#0f172a]/90 backdrop-blur-md p-2 rounded-xl border border-gray-200 dark:border-gray-700"},be={class:"relative w-full md:w-96 group"},ce={class:"flex items-center gap-3 w-full md:w-auto flex-wrap justify-end"},xe={class:"flex items-center gap-1.5 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg px-2 py-1"},fe=["disabled"],me={key:0,class:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-5"},pe={class:"p-4 border-b border-gray-100 dark:border-gray-700/50 flex justify-between items-start bg-gray-50/50 dark:bg-gray-800/50 rounded-t-2xl"},ye={class:"flex-1 min-w-0"},ve={class:"flex items-center gap-2"},ke=["title"],_e={key:0,class:"h-2 w-2 rounded-full bg-rose-500 animate-pulse"},he={class:"flex items-center gap-2 mt-1"},we=["onClick"],je={class:"text-xs text-gray-400 truncate"},Ce={class:"flex flex-col items-end gap-1 shrink-0"},Le={class:"bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-300 text-xs font-bold px-2 py-1 rounded-md whitespace-nowrap"},Ne={class:"bg-blue-50 text-blue-600 dark:bg-blue-900/30 dark:text-blue-300 text-[10px] font-bold px-2 py-0.5 rounded-md whitespace-nowrap",title:"Sum of all key limits"},Se={class:"p-3 flex-1 flex flex-col gap-2 max-h-[300px] overflow-y-auto custom-scrollbar"},Te={class:"flex justify-between items-center mb-2"},Ke={class:"flex items-center gap-2"},Ae={class:"flex gap-1"},De={key:0,class:"text-[9px] font-bold px-1.5 py-0.5 rounded border uppercase tracking-wider bg-rose-50 text-rose-600 border-rose-100 dark:bg-rose-900/20 dark:text-rose-400 dark:border-rose-800 flex items-center gap-1"},Fe={class:"flex justify-between items-center bg-white/50 dark:bg-black/20 p-1.5 rounded-lg"},Pe={class:"text-xs text-gray-600 dark:text-gray-400 font-medium flex items-center gap-1"},Ve={class:"bg-gray-200 dark:bg-gray-600 text-gray-800 dark:text-gray-200 px-1.5 rounded text-[10px]"},Be={key:0,class:"text-[10px] text-rose-600 font-mono font-bold flex items-center gap-1"},Ie={key:1,class:"text-[10px] text-emerald-600 font-medium"},Ee={key:1,class:"flex flex-col items-center justify-center py-20 text-center"},Me={key:2,class:"mt-8 flex justify-center gap-2"},He=["disabled","onClick","innerHTML"],Ue=G({__name:"SteadfastApiPage",setup(qe){const I=[{title:"Dashboard",href:"/dashboard"},{title:"Superadmin",href:"/superadmin"},{title:"Steadfast API",href:"/superadmin/steadfast/api"}],K=J(),L=f(()=>K?.props?.businesses??{}),n=f(()=>K?.props?.filters??{});function E(r){const t=r?.meta||{};return{current_page:Number(t.current_page??r?.current_page??1),per_page:Number(t.per_page??r?.per_page??25),total:Number(t.total??r?.total??0),last_page:Number(t.last_page??r?.last_page??1)}}const N=f(()=>L.value?.data??[]),k=f(()=>E(L.value)),M=f(()=>{const r=L.value;return Array.isArray(r?.links)?r.links:[{url:r?.prev_page_url,label:"« Previous",active:!1},{url:r?.next_page_url,label:"Next »",active:!1}]}),g=m(n.value?.q??""),A=m(Number(n.value?.per_page??25)),u=m(["1","true",1,!0].includes(n.value?.issues)),b=m(n.value?.min_limit!=null?String(n.value.min_limit):""),c=m(n.value?.max_limit!=null?String(n.value.max_limit):""),p=m(n.value?.sort??""),y=m(!1),v=f(()=>{let r=0,t=0,a=N.value.length;return N.value.forEach(s=>{Array.isArray(s.steadfast_credentials)&&(r+=s.steadfast_credentials.length,s.steadfast_credentials.forEac
1h(_=>{x(_.locked_until)&&t++}))}),{businessCount:a,totalKeys:r,lockedKeys:t}}),D=f(()=>N.value);function H(r){const t={page:r,per_page:A.value};return g.value&&(t.q=g.value),u.value&&(t.issues=1),b.value!==""&&(t.min_limit=b.value),c.value!==""&&(t.max_limit=c.value),p.value&&(t.sort=p.value),t}function F(r=1){y.value=!0,B.get(window.location.pathname,H(r),{preserveState:!0,preserveScroll:!0,replace:!0,only:["businesses","filters"],onFinish:()=>{y.value=!1}})}function U(r){r&&(y.value=!0,B.visit(r,{preserveState:!0,preserveScroll:!0,only:["businesses","filters"],onFinish:()=>{y.value=!1}}))}function q(){F(k.value.current_page)}function O(){u.value=!1,b.value="",c.value="",p.value="",g.value=""}function R(r){if(!r)return null;const t=new Date(r);return isNaN(+t)?null:t.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function x(r){return r?new Date(r).getTime()>Date.now():!1}function $(r){return Array.isArray(r?.steadfast_credentials)?r.steadfast_credentials.reduce((t,a)=>t+(Number(a?.daily_limit)||0),0):0}function z(r){navigator.clipboard.writeText(r)}let P;return Q([g,A,u,b,c,p],()=>{clearTimeout(P),P=window.setTimeout(()=>F(1),350)}),(r,t)=>(l(),o(j,null,[V(W(X),{title:"Steadfast Monitor"}),V(ee,{breadcrumbs:I},{default:Y(()=>[e("div",re,[e("div",ae,[e("div",se,[e("div",oe,[e("div",null,[t[5]||(t[5]=e("p",{class:"text-xs font-bold text-gray-500 uppercase tracking-wide"},"Businesses",-1)),e("h3",le,i(k.value.total),1)]),t[6]||(t[6]=e("div",{class:"h-10 w-10 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center"},[e("i",{class:"fa-solid fa-building"})],-1))])]),e("div",ie,[e("div",de,[e("div",null,[t[7]||(t[7]=e("p",{class:"text-xs font-bold text-gray-500 uppercase tracking-wide"},"Total API Keys",-1)),e("h3",ne,i(v.value.totalKeys),1)]),t[8]||(t[8]=e("div",{class:"h-10 w-10 rounded-full bg-emerald-100 text-emerald-600 flex items-center justify-center"},[e("i",{class:"fa-solid fa-key"})],-1))])]),e("div",{class:d(["rounded-xl shadow-sm border transition-all duration-300 hover:-translate-y-1 hover:shadow-md border-l-4",v.value.lockedKeys>0?"bg-rose-50 border-rose-200 dark:bg-rose-900/20 border-l-rose-500":"bg-white border-gray-200 dark:bg-gray-800 dark:border-gray-700 border-l-gray-300"])},[e("div",ue,[e("div",null,[e("p",{class:d(["text-xs font-bold uppercase tracking-wide",v.value.lockedKeys>0?"text-rose-600":"text-gray-500"])}," Locked / Limit Hit ",2),e("h3",{class:d(["text-2xl font-extrabold mt-1",v.value.lockedKeys>0?"text-rose-600":"text-gray-800 dark:text-white"])},i(v.value.lockedKeys),3)]),e("div",{class:d(["h-10 w-10 rounded-full flex items-center justify-center transition-colors",v.value.lockedKeys>0?"bg-rose-100 text-rose-600 animate-pulse":"bg-gray-100 text-gray-400"])},[...t[9]||(t[9]=[e("i",{class:"fa-solid fa-triangle-exclamation"},null,-1)])],2)])],2)]),e("div",ge,[e("div",be,[t[10]||(t[10]=e("i",{class:"fa-solid fa-search absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 group-focus-within:text-blue-500 transition-colors"},null,-1)),w(e("input",{"onUpdate:modelValue":t[0]||(t[0]=a=>g.value=a),class:"w-full bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg pl-10 pr-4 py-2 text-sm focus:ring-2 focus:ring-blue-500 outline-none transition-all",placeholder:"Search Business Name, UID or Email..."},null,512),[[S,g.value]])]),e("div",ce,[w(e("select",{"onUpdate:modelValue":t[1]||(t[1]=a=>p.value=a),class:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg px-3 py-2 text-sm text-gray-700 dark:text-gray-200 outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",title:"Sort by limit"},[...t[11]||(t[11]=[e("option",{value:""},"Newest",-1),e("option",{value:"limit_desc"},"Limit: High → Low",-1),e("option",{value:"limit_asc"},"Limit: Low → High",-1)])],512),[[Z,p.value]]),e("div",xe,[t[12]||(t[12]=e("span",{class:"text-xs font-medium text-gray-500 whitespace-nowrap"},"Limit",-1)),w(e("input",{"onUpdate:modelValue":t[2]||(t[2]=a=>b.value=a),type:"number",min:"0",inputmode:"numeric",placeholder:"min",class:"w-16 bg-transparent text-sm text-gray-700 dark:text-gray-200 outline-none border-b border-transparent focus:border-blue-400 text-center"},null,512),[[S,b.value]]),t[13]||(t[13]=e("span",{class:"text-gray-400 text-xs"},"–",-1)),w(e("input",{"onUpdate:modelValue":t[3]||(t[3]=a=>c.value=a),type:"number",min:"0",inputmode:"numeric",placeholder:"max",class:"w-16 bg-transparent text-sm text-gray-700 dark:text-gray-200 outline-none border-b border-transparent focus:border-blue-400 text-center"},null,512),[[S,c.value]])]),e("button",{onClick:t[4]||(t[4]=a=>u.value=!u.value),class:d(["flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all border",u.value?"bg-rose-100 text-rose-700 border-rose-200 dark:bg-rose-900/30 dark:text-rose-300":"bg-white text-gray-600 border-gray-200 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-700"])},[e("i",{class:d(["fa-solid",u.value?"fa-toggle-on":"fa-toggle-off"])},null,2),t[14]||(t[14]=e("span",null,"Issues Only",-1))],2),e("button",{onClick:q,disabled:y.value,title:"Refresh Data",class:"h-9 w-9 flex items-center justify-center rounded-lg bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-gray-500 hover:text-blue-600 hover:border-blue-200 transition-all shadow-sm"},[e("i",{class:d(["fa-solid fa-rotate",{"fa-spin":y.value}])},null,2)],8,fe)])]),D.value.length>0?(l(),o("div",me,[(l(!0),o(j,null,T(D.value,a=>(l(),o("div",{key:a.id,class:d(["group relative bg-white dark:bg-gray-800 rounded-2xl border border-gray-200 dark:border-gray-700 shadow-sm hover:shadow-md transition-all duration-200 flex flex-col",{"ring-2 ring-rose-500/50 border-rose-500/30":a.steadfast_credentials?.some(s=>x(s.locked_until))}])},[e("div",pe,[e("div",ye,[e("div",ve,[e("h3",{class:"text-base font-bold text-gray-900 dark:text-white truncate",title:a.name},i(a.name),9,ke),a.steadfast_credentials?.some(s=>x(s.locked_until))?(l(),o("span",_e)):h("",!0)]),e("div",he,[e("code",{onClick:s=>z(a.business_uid),class:"text-[10px] font-mono bg-blue-50 text-blue-600 dar
1k:bg-blue-900/30 dark:text-blue-300 px-1.5 py-0.5 rounded cursor-pointer hover:bg-blue-100 transition-colors",title:"Click to Copy UID"},i(a.business_uid),9,we),e("span",je,i(a.email),1)])]),e("div",Ce,[e("span",Le,i(a.steadfast_credentials?.length||0)+" Keys ",1),e("span",Ne," Total Limit: "+i($(a)),1)])]),e("div",Se,[(l(!0),o(j,null,T(a.steadfast_credentials,(s,_)=>(l(),o("div",{key:s.id,class:d(["p-2.5 rounded-xl border transition-all duration-200",x(s.locked_until)?"bg-rose-50 border-rose-200 dark:bg-rose-900/10 dark:border-rose-800":"bg-white border-gray-100 dark:bg-gray-800 dark:border-gray-700 hover:border-blue-200"])},[e("div",Te,[e("div",Ke,[e("div",{class:d(["h-6 w-6 rounded-full flex items-center justify-center text-xs font-bold",x(s.locked_until)?"bg-rose-200 text-rose-700":"bg-gray-100 text-gray-600"])},i(_+1),3),t[15]||(t[15]=e("span",{class:"text-xs font-semibold text-gray-500"},"API Key",-1))]),e("div",Ae,[e("span",{class:d(["text-[9px] font-bold px-1.5 py-0.5 rounded border uppercase tracking-wider",s.is_active?"bg-emerald-50 text-emerald-600 border-emerald-100 dark:bg-emerald-900/20 dark:text-emerald-400 dark:border-emerald-800":"bg-gray-100 text-gray-500 border-gray-200 dark:bg-gray-700 dark:text-gray-400 dark:border-gray-600"])},i(s.is_active?"ACTIVE":"OFF"),3),x(s.locked_until)?(l(),o("span",De,[...t[16]||(t[16]=[e("i",{class:"fa-solid fa-lock text-[9px]"},null,-1),C(" LOCKED ",-1)])])):h("",!0)])]),e("div",Fe,[e("div",Pe,[t[17]||(t[17]=C(" Limit: ",-1)),e("span",Ve,i(s.daily_limit??0),1)]),x(s.locked_until)?(l(),o("div",Be,[t[18]||(t[18]=e("i",{class:"fa-regular fa-clock"},null,-1)),C(" "+i(R(s.locked_until)),1)])):(l(),o("div",Ie,[...t[19]||(t[19]=[e("i",{class:"fa-solid fa-check-circle"},null,-1),C(" Running ",-1)])]))])],2))),128))]),t[20]||(t[20]=e("div",{class:"p-3 border-t border-gray-100 dark:border-gray-700 bg-gray-50/30 dark:bg-gray-800/30 rounded-b-2xl flex justify-end gap-2"},[e("button",{class:"text-xs font-medium text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 px-3 py-1.5 rounded-lg hover:bg-white dark:hover:bg-gray-700 transition-colors border border-transparent hover:border-gray-200 dark:hover:border-gray-600",title:"Edit / Reset"}," Manage Keys ")],-1))],2))),128))])):(l(),o("div",Ee,[t[21]||(t[21]=e("div",{class:"h-20 w-20 bg-gray-100 dark:bg-gray-800 rounded-full flex items-center justify-center mb-4"},[e("i",{class:"fa-solid fa-filter text-3xl text-gray-300"})],-1)),t[22]||(t[22]=e("h3",{class:"text-lg font-bold text-gray-700 dark:text-gray-200"},"No Businesses Found",-1)),t[23]||(t[23]=e("p",{class:"text-sm text-gray-500"},"Try adjusting your search or filters.",-1)),u.value||b.value!==""||c.value!==""||g.value?(l(),o("button",{key:0,onClick:O,class:"mt-4 text-blue-500 hover:underline"}," Clear filters ")):h("",!0)])),k.value.total>k.value.per_page?(l(),o("div",Me,[(l(!0),o(j,null,T(M.value,(a,s)=>(l(),o("button",{key:s,disabled:!a.url,class:d(["px-3 py-1 rounded-md text-sm font-medium transition-colors",a.active?"bg-blue-600 text-white shadow-md":"bg-white dark:bg-gray-800 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 border border-gray-200 dark:border-gray-700"]),onClick:_=>U(a.url),innerHTML:a.label},null,10,He))),128))])):h("",!0)])]),_:1})],64))}}),We=te(Ue,[["__scopeId","data-v-e6c483c9"]]);export{We as default};

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.