PageSourceSearch

https://video.envysion.com/ui/assets/List-a767c09c.js

js envysion.com collected 2026-10-02 15:00:00 UTC 4,087 bytes, 2 lines download raw bytes

1var g=Object.defineProperty;var x=(a,o,e)=>o in a?g(a,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[o]=e;var n=(a,o,e)=>(x(a,typeof o!="symbol"?o+"":o,e),e);import{U as b,V as y,j as r,a as t,r as p,D as v,y as w,F as G,ak as C,b as j,q as D,bk as P,kE as R,J as S,M as T,N as q}from"./index-06f33dcd.js";import{P as N}from"./index-288a9f01.js";import{D as F}from"./index-ddb02c7b.js";import{n as M,d as V}from"./fields-dd10d0b9.js";import{S as _}from"./index-ac753feb.js";var d={},B=y;Object.defineProperty(d,"__esModule",{value:!0});var h=d.default=void 0,E=B(b()),z=r,W=(0,E.default)((0,z.jsx)("path",{d:"M22 9V7h-2v2h-2v2h2v2h2v-2h2V9zM8 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 1c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95zm4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17z"}),"GroupAdd");h=d.default=W;class m extends p.Component{constructor(){super(...arguments);n(this,"state",{error:""});n(this,"submitNewGroup",async e=>{const{createGroup:s}=this.props,i={...e,description:e.description||""};try{this.setState({error:""}),await s(i)}catch({response:u}){let l="New group creation failed";u&&(l=u.data.error.message),this.setState({error:l})}})}render(){const{toggle:e}=this.props,{error:s}=this.state,i=[M,V];return r.jsxs(p.Fragment,{children:[r.jsx(v,{children:"Create a Group"}),r.jsx(w,{children:r.jsx(G,{structure:i,onSubmit:this.submitNewGroup,onCancel:e,error:s,final:!0})})]})}}m.propTypes={toggle:t.func.isRequired,createGroup:t.func.isRequired};const k=[{id:"name",numeric:!1,label:"Group",style:{width:"30%"}},{id:"description",numeric:!1,label:"Description",style:{width:"40%"}},{id:"owner",numeric:!1,label:"Owner",style:{width:"20%"}},{id:"members",numeric:!1,label:"Members",style:{width:"10%"}}],O=a=>({root:{maxWidth:a.spacing(128),width:"100%"},table:{width:"100%",overflowX:"auto"},tableCell:{color:"inherit"},tableControls:{display:"flex",justifyContent:"flex-end",margin:`0 auto ${a.spacing(2)}`},filterBox:{margin:0,maxWidth:400,minWidth:200}});class c extends p.PureComponent{constructor(){super(...arguments);n(this,"state",{filteredGroups:null,filterValue:this.props.filterValue,groups:[]});n(this,"handleFilterChange",(e,s)=>{this.props.setRouteState({filterValue:s}),this.setState({filteredGroups:e,filterValue:s})});n(this,"createNewGroup",async e=>{const s=await R(e);this.goToGroupDetails(s.id)});n(this,"goToGroupDetails",e=>{this.props.history.push(`/admin/groups/${e}`)})}static getDerivedStateFromProps(e,s){const{groups:i}=e;return P(s.groups)?{groups:i}:null}render(){const{classes:e}=this.props,{groups:s,filteredGroups:i,filterValue:u}=this.state;return r.jsx(S,{title:"Groups",PageHeaderProps:{title:"Groups"},actions:r.jsx(F,{tooltip:"Create a new group",ButtonProps:{name:"create-group-button",color:"inherit"},DialogProps:{maxWidth:"sm",fullWidth:!0},icon:r.jsx(h,{}),children:l=>r.jsx(m,{createGroup:this.createNewGroup,toggle:l})}),children:r.jsx(N,{introTextProps:{helpText:"<strong>Groups</strong> are used to share clips with a specified set of Envysion users.",learnMorePath:"/administrative-user-setup/groups/",isContained:!0},children:r.jsxs("div",{className:e.root,children:[r.jsx("div",{className:e.tableControls,children:r.jsx(T,{className:e.filterBox,dataSet:s,onDataSetUpdate:this.handleFilterChange,fields:["name","description","owner"],filterValue:u})}),r.jsx(q,{children:r.jsx(_,{paginate:!0,columns:k,data:i||s,TableCellProps:{classes:{body:e.tableCell}},clickRow:(l,f)=>this.goToGroupDetails(f.id),className:e.table,order:"asc",orderBy:"name"})})]})})})}}c.propTypes={classes:t.shape({}).isRequired,groups:t.arrayOf(t.shape({id:t.oneOfType([t.string,t.number]),name:t.string,description:t.string,owner:t.string,members:t.number})),filterValue:t.string,setRouteState:t.func.isRequired,history:t.shape({push:t.func.isRequired}).isRequired};c.defaultProps={filterValue:null,groups:[]};const J=C(j,D(O))(c);export{J as default};
2//# sourceMappingURL=List-a767c09c.js.map

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.