1/*! For license information please see 7279.app.01a5d406c109d8101a1a.js.LICENSE.txt */ 2"use strict"; 3!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]="ddfa7c84-e5b5-506c-b74c-e84fe14e1306")}catch(e){}}(); 4(self.webpackChunkcodio_dashboard=self.webpackChunkcodio_dashboard||[]).push([[7279],{33686(e,n,t){t.d(n,{A:()=>o});var i=t(37095),r=t(59022);const a=i.A.createActions(["fetch","clear","remove","set"]);a.fetch=e=>r.DT.get(e),a.clear=()=>r.DT.clear(),a.remove=e=>r.DT.remove(e),a.set=(e,n)=>r.DT.set(e,n);const o=a},57279(e,n,t){t.d(n,{Ay:()=>K,Kh:()=>_,id:()=>q});var i=t(130),r=t(39323),a=t(41851),o=t(76832),s=t(59763),l=t(26411),d=t(20743),c=t(60673),u=t(13285),h=t(49568),p=t(96540),A=t(2543),m=t.n(A),x=t(51249),v=t(83231),g=t(45480),j=t(23043),C=t(31635),f=t(12141),b=t(25284),y=t(9594),w=t(46942),M=t.n(w),L=t(41622),S=t(33686),T=t(58783),N=t(14040),k=t(68240),I=t(74848),P=t(48320);const B=(0,y.Ay)(u.A,{name:"MuiCodioAdvancedList",slot:"root"})((()=>({gap:0,overflow:"auto","&.MuiCodioAdvancedList-disableGutters":{".MuiCodioAdvancedListTab-root, .MuiCodioAdvancedList-filtersContainer, .MuiCodioAdvancedList-tabContainer":{padding:0}}}))),F=(0,y.Ay)(c.A,{name:"MuiCodioAdvancedList",slot:"tabContainer"})((({theme:e})=>({padding:e.spacing(0,5)}))),z=({children:e,className:n,...t})=>{const i=M()("MuiCodioAdvancedList-tabContainer",n);return(0,I.jsx)(F,{...t,className:i,children:e})},D=(0,y.Ay)(u.A,{name:"MuiCodioAdvancedList",slot:"filtersContainer"})((({theme:e})=>({margin:e.spacing(2,0),padding:e.spacing(0,5),gap:e.spacing(3)}))),E=({children:e,className:n,...t})=>{const i=M()("MuiCodioAdvancedList-filtersContainer",n);return(0,I.jsx)(D,{...t,className:i,children:e})},R=(0,y.Ay)(d.A,{name:"MuiCodioCloseButton",slot:"root"})((({theme:e})=>({padding:0,marginLeft:e.spacing(1)}))),W=p.createContext({}),G=p.forwardRef((({sortingOptions:e,onTabChange:n=()=>{},onTabClose:t=()=>{},onTabAdd:i=()=>{},urlSupport:r=!0,defaultSorting:c,initialState:h={},hideTabs:A,showAddTab:g,onBack:j,children:y,onStateUpdated:w=()=>{},loading:k,className:F,disableGutters:D,listVariant:G,renderItemFunc:U,hideSearch:V,hideSorting:H,tabIndicatorColor:_,...q},K)=>{var O=(0,P.dC)(1);try{const P=()=>{if(!r)return{};const e=(0,L.rG)(location.search);return e.tab=parseInt(e.tab,10),isNaN(e.tab)&&delete e.tab,m().isEmpty(e)?(n=location.pathname,S.A.fetch(n)||{}):e;var n},O=P(),[$,J]=(0,p.useState)(h.filter||O.filter||""),Q=()=>(m().isArray(y)||(y=y.toArray?y.toArray():[y]),m()(y).flatten().compact().value()),X=()=>{if(A)return null;const e=h.tab||O.tab||0,n=Q();return n.length&&n[e]?e:0},[Y,Z]=(0,p.useState)((()=>X())),ee=()=>{if(h.sorting)return h.sorting;const n=c?c[Y]:null,t=(O.sProp&&e&&e.find((({value:e})=>e===O.sProp))?O.sProp:null)||n?.property||e&&e[0].value;return{direction:O.sDirection||n?.direction||T.M.ascend,property:t}},[ne,te]=(0,p.useState)((()=>ee())),ie=(0,p.useMemo)((()=>({listVariant:G,renderItemFunc:U,loading:k})),[G,U,k]),re=()=>{const n={};return V||(n.filter=$||""),e&&!H&&(n.sDirection=ne.direction,n.sProp=ne.property),A||(n.tab=Y||0),n},ae=()=>{if(!r)return;const e=re();if(m().isEmpty(e))return;const n=new URLSearchParams(e);history.pushState({},"",`?${n.toString()}`),((e,n)=>{S.A.set(e,n)})(location.pathname,e)};(0,p.useEffect)((()=>{w({filter:$,tab:Y,sorting:ne}),ae()}),[Y,$,ne]);const oe=(e,t,i)=>{const r=c&&(c[t]||c[0]);te(r),Z(t),n(t);const a=Q(),o=m().isFinite(i)?i:t,{permanentFilter:s}=a[o].props;s&&J(s)},se=e=>{if(Y!==e)return;const n=Q(),{permanentFilter:t}=n[e].props;t&&$!==t&&J(t)};(0,p.useImperativeHandle)(K,(()=>({setState:e=>{m().isNumber(e.tab)&&Z(e.tab),m().isString(e.filter)&&J(e.filter),e.sorting&&te(e.sorting)}})),[]);const le=(e,n)=>{n.stopPropagation(),Y>=e&&oe(null,Y-1,Y===e?Y-1:Y),t(e)},de=()=>m().isFunction(j)?(0,I.jsx)(l.A,{title:"Back",children:(0,I.jsx)(d.A,{onClick:j,children:(0,I.jsx)(x.A,{})})}):null,ce=()=>{if(A)return null;const e=Q(),n=p.Children.map(e,((e,n)=>{const t=(0,I.jsx)(R,{onClick:e=>le(n,e),size:"small",children:(0,I.jsx)(v.A,{})}),i=(0,I.jsxs)(u.A,{direction:"row",children:[(0,I.jsx)(s.A,{noWrap:!0,sx:{maxWidth:200},children:e.props.title}),e.props.closable?t:null]});return(0,I.jsx)(a.A,{label:i,value:n,component:e.props.closable?"span":o.A,onClick:()=>se(n)})}));return(0,I.jsx)(z,{children:(0,I.jsxs)(f.A,{onChange:oe,indicatorColor:_||("outlined"!==G?"background":void 0),variant:"scrollable",children:[de(),n]})})},ue=()=>e.filter((e=>!e.applyToTabs||e.applyToTabs.includes(Y))),he=()=>{const e=Q();return p.Children.map(e,((e,n)=>A?e:(0,I.jsx)(b.A,{value:n,sx:{overflow:"auto",padding:0},children:e})))},pe=g&&g[Y]?(0,I.jsx)(o.A,{variant:"contained",color:"tertiary",onClick:i,disabled:!$,sx:{whiteSpace:"nowrap"},children:"Add as Tab"}):null,Ae=()=>!e&&H&&V?null:(0,I.jsxs)(E,{direction:"row",sx:{justifyContent:"end"},children:[V?null:(0,I.jsx)(u.A,{direction:"row",spacing:1,sx:{flex:1},children:(0,I.jsx)(N.A,{value:$,onChange:e=>J(e),showClearButton:!0,fullWidth:!0,endAdornment:pe})}),!H&&e?(0,I.jsx)(u.A,{direction:"row",spacing:2,children:(0,I.jsx)(T.A,{direction:ne.direction,property:ne.property,onChange:e=>te(e),data:ue()})}):null]}),me=M()("MuiCodioAdvancedList-root",F,{"MuiCodioAdvancedList-disableGutters":D}),xe=(0,I.jsxs)(I.Fragment,{children:[ce(),Ae(),he()]});return A?(0,I.jsx)(W.Provider,{value:ie,children:(0,I.jsx)(B,{className:me,...q,children:xe})}):(0,I.jsx)(W.Provider,{value:ie,children:(0,I.jsx)(B,{ref:K,className:me,...q,children:(0,I.jsx)(C.Ay,{value:Y,children:xe})})})}finally{O.f()}})),U=(0,y.Ay)(u.A,{name:"MuiCodioAdvancedListTab",slot:"root"})((({theme:e})=>({gap:e.spacing(2),overflow:"auto",height:"100%",padding:e.spacing(0,5)}))),V=(0,y.Ay)(c.A,{name:"MuiCodioAdvancedListTabContent",slot:"root"})((()=>({position:"relative",overflow:"auto"}))),H=(0,y.Ay)(r.A)((({theme:e})=>({color:(e.vars||e).palette.primary.main,zIndex:e.zIndex.drawer+1,backgroundColor:"transparent",position:"absolute"}))),_=({title:e,hint:n,emptyContent:t,renderItemFunc:r,items:a,children:o,className:c,pagination:A,closable:m,permanentFilter:x,...v})=>{const C=(0,p.useContext)(W),f=M()("MuiCodioAdvancedListTab-root",c),b=e=>(0,I.jsx)(k.A,{variant:C.listVariant,children:e.map(r||C.renderItemFunc)});return(0,I.jsxs)(U,{className:f,...v,children:[n||null,(0,I.jsxs)(V,{sx:{minHeight:C.loading?100:"auto"},children:[C.loading?(0,I.jsx)(H,{open:!0,children:(0,I.jsx)(i.A,{})}):null,(()=>{if(!a)return null;if(a.isEmpty())return o;if(h.Wq(a))return a.map(((e,n)=>(0,I.jsxs)(u.A,{spacing:0,children:[(0,I.jsx)(s.A,{variant:"h6",children:n}),b(e)]},n))).toList();if(h.Lv(a))return b(a);throw new Error("Unsupported items type")})()]}),A&&(A.hasNext||A.hasPrevious)?(0,I.jsxs)(u.A,{direction:"row",spacing:1,sx:{alignSelf:"end"},children:[(0,I.jsx)(l.A,{title:"Previous page",children:(0,I.jsx)("span",{children:(0,I.jsx)(d.A,{onClick:A.onPrev,disabled:!A.hasPrevious,children:(0,I.jsx)(g.A,{})})})}),(0,I.jsx)(l.A,{title:"Next page",children:(0,I.jsx)("span",{children:(0,I.jsx)(d.A,{onClick:A.onNext,disabled:!A.hasNext,children:(0,I.jsx)(j.A,{})})})})]}):null]})},q=48,K=p.memo(G)},68240(e,n,t){t.d(n,{A:()=>u,c:()=>c});var i=t(35730),r=t(3035),a=t(9594),o=t(96540),s=t(74848);const l=(0,a.Ay)(r.A,{name:"MuiCodioList",slot:"root"})((({theme:e})=>({"& > :not(:last-child)":{marginBottom:e.spacing(.5)}}))),d=(0,a.Ay)(i.Ay,{name:"MuiCodioListItem",slot:"root"})((({theme:e})=>({borderRadius:e.shape.borderRadius,"& > .MuiListItemButton-root":{"& .MuiListItemButton-gutters":{paddingRight:e.spacing(2)},"& .MuiButtonBase-root.Mui-disabled":{pointerEvents:"auto"}},"& .MuiListItemIcon-root":{minWidth:32}}))),c=o.forwardRef(((e,n)=>(0,s.jsx)(d,{ref:n,...e}))),u=o.forwardRef(((e,n)=>{const{children:t,variant:i,...r}=e;return(0,s.jsx)(l,{ref:n,...r,variant:i,children:o.Children.map(t,(e=>(0,o.cloneElement)(e,{variant:i})))})}))},14040(e,n,t){t.d(n,{A:()=>u});var i=t(13285),r=t(26411),a=t(20743),o=t(28137),s=t(83231),l=(t(96540),t(52038)),d=t(74848),c=t(48320);const u=({showClearButton:e,value:n,onChange:t=()=>{},placeholder:u="Search",endAdornment:h,...p})=>{var A=(0,c.dC)(1);try{const c=e=>{t(e.target.value)};return(0,d.jsx)(l.A,{placeholder:u,value:n,onChange:c,startAdornment:(0,d.jsx)(o.A,{}),endAdornment:(0,d.jsxs)(i.A,{spacing:1,direction:"row",children:[e&&n?(0,d.jsx)(r.A,{title:"Clear search",children:(0,d.jsx)(a.A,{onClick:()=>t(""),children:(0,d.jsx)(s.A,{fontSize:p.size})})}):null,h]}),...p})}finally{A.f()}}},58783(e,n,t){t.d(n,{A:()=>v,M:()=>m});var i=t(13285),r=t(11694),a=t(26411),o=t(34022),s=t(13690),l=t(14198),d=(t(96540),t(2543)),c=t.n(d),u=t(16410),h=t(83769),p=t(74848),A=t(48320);const m={ascend:"asc",descend:"desc"}
4,x=({direction:e=m.ascend,property:n="",onChange:t=()=>{},data:d=[],size:x="medium"})=>{var v=(0,A.dC)(1);try{const A=(e,i)=>{i&&t({direction:i,property:n})},v=n=>{const{value:i}=n.target;t({direction:e,property:i})},g=c().map(d||[],(e=>(0,p.jsx)(l.A,{value:e.value,children:e.label},e.label)));return(0,p.jsxs)(i.A,{direction:"row",spacing:1,children:[(0,p.jsx)(s.A,{hiddenLabel:!0,onChange:v,variant:"filled",value:n,size:x,children:g}),(0,p.jsxs)(r.A,{value:e,exclusive:!0,onChange:A,size:x,children:[(0,p.jsx)(a.A,{title:"Sort Ascending",children:(0,p.jsx)(o.A,{value:m.ascend,children:(0,p.jsx)(u.A,{})})}),(0,p.jsx)(a.A,{title:"Sort Descending",children:(0,p.jsx)(o.A,{value:m.descend,children:(0,p.jsx)(h.A,{})})})]})]})}finally{v.f()}};x.displayName="Sorter";const v=x}}]); 5//# sourceMappingURL=http://sourcemaps.codio.test:22334/dashboard/js/7279.app.01a5d406c109d8101a1a.js.map 6//# debugId=ddfa7c84-e5b5-506c-b74c-e84fe14e1306
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.