PageSourceSearch

https://tremor-redwood-dashboard-demo.netlify.app/assets/SalesPersonPage-b9b1ede0.js

js tremor-redwood-dashboard-demo.netlify.app collected 2026-10-03 11:32:22 UTC 2,466 bytes, 21 lines download raw bytes

1import{g as r,d as l,t as d,a as n,j as e}from"./index-d7fd9a72.js";import"./index-714914bb.js";const c=r`
2  mutation DeleteSalesPersonMutation($id: Int!) {
3    deleteSalesPerson(id: $id) {
4      id
5    }
6  }
7`,o=({salesPerson:s})=>{const[i]=l.useMutation(c,{onCompleted:()=>{d.toast.success("SalesPerson deleted"),n.navigate(n.routes.salesPeople())},onError:t=>{d.toast.error(t.message)}}),a=t=>{confirm("Are you sure you want to delete salesPerson "+t+"?")&&i({variables:{id:t}})};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rw-segment",children:[e.jsx("header",{className:"rw-segment-header",children:e.jsxs("h2",{className:"rw-heading rw-heading-secondary",children:["SalesPerson ",s.id," Detail"]})}),e.jsx("table",{className:"rw-table",children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{children:"Id"}),e.jsx("td",{children:s.id})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Name"}),e.jsx("td",{children:s.name})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Leads"}),e.jsx("td",{children:s.leads})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Sales"}),e.jsx("td",{children:s.sales})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Quota"}),e.jsx("td",{children:s.quota})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Variance"}),e.jsx("td",{children:s.variance})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Region"}),e.jsx("td",{children:s.region})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Status"}),e.jsx("td",{children:s.status})]}),e.jsxs("tr",{children:[e.jsx("th",{children:"Delta type"}),e.jsx("td",{children:s.deltaType})]})]})})]}),e.jsxs("nav",{className:"rw-button-group",children:[e.jsx(n.Link,{to:n.routes.editSalesPerson({id:s.id}),className:"rw-button rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",className:"rw-button rw-button-red",onClick:()=>a(s.id),children:"Delete"})]})]})},h=r`
8  query FindSalesPersonById($id: Int!) {
9    salesPerson: salesPerson(id: $id) {
10      id
11      name
12      leads
13      sales
14      quota
15      variance
16      region
17      status
18      deltaType
19    }
20  }
21`,x=()=>e.jsx("div",{children:"Loading..."}),j=()=>e.jsx("div",{children:"SalesPerson not found"}),u=({error:s})=>e.jsx("div",{className:"rw-cell-error",children:s==null?void 0:s.message}),m=({salesPerson:s})=>e.jsx(o,{salesPerson:s}),S=l.createCell({QUERY:h,Loading:x,Empty:j,Failure:u,Success:m,displayName:"SalesPersonCell"}),b=({id:s})=>e.jsx(S,{id:s});export{b 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.