PageSourceSearch

https://carmensbest.com/build/assets/Index-c064af40.js

js carmensbest.com collected 2026-10-02 12:42:04 UTC 4,868 bytes, 1 lines download raw bytes

1import{d as Q,r as b,m as $,p as G,g as n,o as r,j as x,w as d,a as t,h as c,X as J,c as p,F as y,i as h,t as g,Y as X,$ as Y}from"./debounce-066c2ac9.js";import{t as z}from"./throttle-ba353df1.js";import{R as u}from"./ResellerStatus-c3734953.js";const H={class:"px-6 py-3"},K={class:"space-y-4"},M=t("p",{class:"text-sm text-gray-900 mb-3"},"Status",-1),W={class:"space-y-2"},Z=t("p",{class:"text-sm text-gray-900 mb-3"},"Reseller Package",-1),ee={class:"space-y-2"},te={class:"max-h-[calc(100vh-193px)] overflow-auto"},ae={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 w-6/12"},se={class:"text-black"},oe={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 w-6/12"},le={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},ne={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},re={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},ce={class:"flex items-center justify-center mx-auto"},pe=Q({__name:"Index",props:["items","allItemsCount","activityLogsCount","pendingCount","approvedCount","rejectedCount","suspendedCount","selectedTab","filterQuery","filterDate","filterLogEvent","filterLogQuery","resellerStatuses","packageTypes"],setup(i){const l=i,R=b(route("admin.accounts.resellers.index")),o=b({tab:l.selectedTab,query:l.filterQuery,date:l.filterDate,status:[],package:[]}),v=$(()=>l.items),k=b(l.filterDate),T=[{name:"All",value:null,count:l.allItemsCount},{name:"Pending",value:u.PENDING.toString(),count:l.pendingCount},{name:"Approved",value:u.APPROVED.toString(),count:l.approvedCount},{name:"Rejected",value:u.REJECTED.toString(),count:l.rejectedCount},{name:"Suspended",value:u.SUSPENDED.toString(),count:l.suspendedCount},{name:"Activity Logs",value:"activity_logs",count:l.activityLogsCount}],U=[{text:"Reseller"},{text:"Reseller Package"},{text:"Status"},{text:"Date Created"}],f=(s,a)=>a.indexOf(s)!==-1,C=(s,a)=>{const _=a.indexOf(s);_===-1?a.push(s):a.splice(_,1)},w=()=>{X.get(route("admin.accounts.resellers.index"),Y(o.value),{preserveState:!0})},L=s=>{let a=route("admin.accounts.resellers.view",s.id);return s.status===u.PENDING||s.status===u.REJECTED?route("admin.accounts.resellers.view",s.id):s.status===u.APPROVED||s.status===u.SUSPENDED?route("admin.accounts.resellers.show",s.id):a};return G(()=>o.value.query,z(()=>{w()},1e3)),(s,a)=>{const _=n("export-button"),V=n("Tabs"),D=n("jet-checkbox"),j=n("date-picker"),N=n("Filter"),A=n("jet-status-pill"),B=n("ViewButton"),F=n("DataTable"),q=n("pagination"),I=n("ActivityLogs"),O=n("admin-layout");return r(),x(O,{title:"Resellers"},{default:d(()=>[t("div",null,[c(V,{tabs:T,"button-items":!0,"active-tab":o.value.tab,"onUpdate:tab":a[0]||(a[0]=e=>o.value.tab=e),"tab-route":R.value},{buttons:d(()=>[c(_,{"route-link":s.route("admin.accounts.resellers.export")},{default:d(()=>[J(" Export ")]),_:1},8,["route-link"])]),_:1},8,["active-tab","tab-route"])]),o.value.tab!=="activity_logs"?(r(),p(y,{key:0},[t("div",H,[c(N,{textFilters:!0,search:o.value.query,"onUpdate:searchText":a[3]||(a[3]=e=>o.value.query=e),"onUpdate:filters":w,"custom-filters":o.value.tab!=="activity_logs"},{fields:d(()=>[t("div",K,[t("div",null,[M,t("div",W,[(r(!0),p(y,null,h(i.resellerStatuses,e=>(r(),x(D,{key:e,id:e.id,label:e.label,checked:f(e.id,o.value.status),"onUpdate:checked":m=>C(e.id,o.value.status)},null,8,["id","label","checked","onUpdate:checked"]))),128))])]),t("div",null,[Z,t("div",ee,[(r(!0),p(y,null,h(i.packageTypes,e=>(r(),x(D,{key:e,id:e.id,label:e.label,checked:f(e.id,o.value.package),"onUpdate:checked":m=>C(e.id,o.value.package)},null,8,["id","label","checked","onUpdate:checked"]))),128))])]),c(j,{id:"filterDate",label:"Date Created",placeholder:"Filter Date Created",modelValue:k.value,"onUpdate:modelValue":[a[1]||(a[1]=e=>k.value=e),a[2]||(a[2]=e=>o.value.date=e)],enableTimePicker:!1},null,8,["modelValue"])])]),_:1},8,["search","custom-filters"])]),t("div",te,[c(F,{headers:U,"no-action":!1,checkbox:!1,count:v.value.data.length,tableClass:"membershipPlansIndex_table"},{body:d(()=>[(r(!0),p(y,null,h(v.value.data,e=>{var m,E,S,P;return r(),p("tr",{key:e.name},[t("td",ae,[t("p",se,g(e.name),1),t("p",null,g(e.email),1)]),t("td",oe,g((m=e.package_type_meta)==null?void 0:m.description),1),t("td",le,[c(A,{customClass:(E=e.status_meta)==null?void 0:E.background,textColor:(S=e.status_meta)==null?void 0:S.color,text:(P=e.status_meta)==null?void 0:P.description},null,8,["customClass","textColor","text"])]),t("td",ne,g(e.created_at_formatted),1),t("td",re,[t("div",ce,[c(B,{eye:"","route-link":L(e)},null,8,["route-link"])])])])}),128))]),_:1},8,["count"]),c(q,{items:v.value},null,8,["items"])])],64)):(r(),x(I,{key:1,logs:v.value,"result-route":s.route("admin.accounts.resellers.index"),query:i.filterLogQuery,event:i.filterLogEvent,tab:o.value.tab},null,8,["logs","result-route","query","event","tab"]))]),_:1})}}});
1export{pe 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.