1"use strict";(self.webpackChunkcachefly_portal2=self.webpackChunkcachefly_portal2||[]).push([[4601],{10791:(e,t,s)=>{s.d(t,{A:()=>r.A});var r=s(87836)},25513:(e,t,s)=>{s.d(t,{A:()=>d});s(65043);var r=s(98139),n=s.n(r),l=s(70579);const i=e=>{let{fill:t="white",...s}=e;return(0,l.jsx)("svg",{viewBox:"0 0 20 20",...s,children:(0,l.jsx)("path",{d:"m19.86 17.52.01-.01-9-16-.01.01C10.69 1.21 10.37 1 10 1s-.69.21-.86.52l-.01-.01-9 16 .01.01c-.08.14-.14.3-.14.48 0 .55.45 1 1 1h18c.55 0 1-.45 1-1 0-.18-.06-.34-.14-.48M11 17H9v-2h2zm0-3H9V6h2z",fill:t||"currentColor"})})};var a=s(17969),o=s(42979);const c={alert:"styles_alert__Kjr1G",small:"styles_small__UcnY6",info:"styles_info__LkXNf",warning:"styles_warning__a9YsR",danger:"styles_danger__ymCW+"},d=e=>{let{children:t,type:s="info",variant:r="medium",...d}=e;return(0,l.jsxs)("div",{...d,className:n()(c.alert,c[s],"small"===r&&c.small,d.className),role:"alert",children:["info"===s&&(0,l.jsx)("span",{children:(0,l.jsx)(a.A,{})}),"warning"===s&&(0,l.jsx)("span",{children:(0,l.jsx)(o.A,{})}),"danger"===s&&(0,l.jsx)("span",{children:(0,l.jsx)(i,{fill:"#da463c",width:32,height:32})}),(0,l.jsx)("div",{className:"p-width-100",children:t})]})}},28729:(e,t,s)=>{s.d(t,{A:()=>o});s(65043);var r=s(49935),n=s(62739),l=s(85873),i=s(46450),a=s(70579);const o=e=>{let{text:t,children:s,toggleClassName:o="btn btn-icon",direction:c="down",disabled:d=!1,onToggle:u,alignMenuEnd:h=!1}=e;return(0,a.jsxs)(r.A,{direction:c,onToggle:u,children:[(0,a.jsxs)(n.A,{className:o,color:"default",disabled:d,children:[t&&(0,a.jsx)("span",{children:t}),(0,a.jsx)(i.A,{fill:"#605D70"})]}),(0,a.jsx)(l.A,{style:{margin:0},container:"#dropdown",end:h,children:s})]})}},29977:(e,t,s)=>{s.d(t,{A:()=>n});s(65043);var r=s(70579);const n=e=>{let{fill:t,...s}=e;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:(0,r.jsx)("path",{fill:"#605D70",d:"M19.2609 17.9378L15.1378 13.8455C15.9686 12.6763 16.3993 11.1994 16.1839 9.63014C15.8147 6.98399 13.6609 4.89168 10.9839 4.64553C7.35318 4.2763 4.27626 7.35322 4.64549 11.0148C4.89164 13.6609 6.98395 15.8455 9.6301 16.2148C11.1993 16.4301 12.6763 15.9994 13.8455 15.1686L17.9378 19.2609C18.1224 19.4455 18.3993 19.4455 18.5839 19.2609L19.2301 18.6148C19.4147 18.4301 19.4147 18.1225 19.2609 17.9378ZM6.46087 10.4301C6.46087 8.24553 8.24549 6.46091 10.4301 6.46091C12.6147 6.46091 14.3993 8.24553 14.3993 10.4301C14.3993 12.6148 12.6147 14.3994 10.4301 14.3994C8.24549 14.3994 6.46087 12.6455 6.46087 10.4301Z"})})}},33093:(e,t,s)=>{s.d(t,{A:()=>n});s(65043);var r=s(70579);const n=e=>{let{fill:t,...s}=e;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:(0,r.jsx)("path",{d:"M7.21472 14.3621L9.8683 17.0157C9.98756 17.1349 10.1665 17.1349 10.2857 17.0157L16.9048 10.3668C17.024 10.2475 17.024 10.0686 16.9048 9.94937L14.281 7.32561C14.1617 7.20635 13.9828 7.20635 13.8636 7.32561L7.21472 13.9745C7.09546 14.0937 7.09546 14.2726 7.21472 14.3621ZM15.1456 6.10317C15.0264 6.22244 15.0264 6.40133 15.1456 6.52059L17.7694 9.14436C17.8887 9.26362 18.0676 9.26362 18.1868 9.14436L18.9322 8.39897C19.4093 7.95174 19.4093 7.23616 18.9322 6.75912L17.5309 5.35779C17.0538 4.88074 16.3084 4.88074 15.8314 5.35779L15.1456 6.10317ZM5.00837 18.7748C4.94874 19.0729 5.21708 19.3413 5.51523 19.2816L8.76512 18.5064C8.88439 18.4766 8.97383 18.417 9.03346 18.3573L9.0931 18.2977C9.15273 18.2381 9.18254 18.0294 9.06328 17.9101L6.37988 15.2267C6.26062 15.1075 6.05191 15.1373 5.99228 15.1969L5.93265 15.2565C5.8432 15.346 5.81339 15.4354 5.78357 15.5249L5.00837 18.7748Z",fill:t||"currentColor"})})}},34222:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(98139),n=s.n(r),l=s(90557),i=s(29977),a=s(76673);const o="styles_wrapper__zRaHD",c="styles_content__Lg26Z";var d=s(70579);const u=e=>{let{onCreate:t,notFoundText:s,actionText:r,coolActionText:u,permission:h=null,showPlusIcon:p=!0,className:m,additionalAction:f}=e,x=(0,a.TU)(h);return"boolean"===typeof h&&(x=h),(0,d.jsx)("div",{className:n()("p-empty-state",o,m&&m),children:(0,d.jsxs)("div",{className:c,children:[(0,d.jsx)(i.A,{width:"100",height:"100"}),(0,d.jsx)("h2",{children:s}),x&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:u}),(0,d.jsxs)("button",{title:"Add New Rule",className:n()("btn btn-primary",p&&"btn-icon-before"),onClick:t,children:[p&&(0,d.jsx)(l.A,{}),(0,d.jsx)("span",{children:r})]})]}),f]})})}},34601:(e,t,s)=>{s.r(t),s.d(t,{default:()=>B});var r=s(65043),n=s(98139),l=s.n(n),i=s(25513),a=s(93734),o=s(51652),c=s(69183),d=s(34222),u=s(80856),h=s(37273),p=s(10791),m=s(28729),f=s(37736),x=s(33093),j=s(70579);const v=e=>{let{fill:t,...s}=e;return(0,j.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...s,children:(0,j.jsxs)("g",{children:[(0,j.jsx)("path",{d:"M13,2c0-0.55-0.45-1-1-1h-0.78c-0.35-0.6-0.98-1-1.72-1S8.12,0.4,7.78,1H7C6.45,1,6,1.45,6,2v2h7V2z",fill:t||"currentColor"}),(0,j.jsx)("path",{d:"M16,2h-2v2v1h-1H6H5V4V2H3C2.45,2,2,2.45,2,3v16c0,0.55,0.45,1,1,1h13c0.55,0,1-0.45,1-1V3C17,2.45,16.55,2,16,2z",fill:t||"currentColor"})]})})};var g=s(55650),y=s(25777);let w=function(e){return e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e}({}),C=function(e){return e.POP="Pop",e.COUNTRY="Country",e.CACHE="Cache",e.STATUS_CODE="Status Codes",e.PATH="Path",e.REFERER="Referrer",e.STORAGE="Storage",e}({});var b=s(90937),A=s(66925),N=s(18576),_=s(24858),O=s(49974),R=s(66715),S=s(96513),E=s(56092),P=s(468);const T="styles_form__B4+35",V="styles_error__8BIcT",H=e=>{let{isOpen:t,toggle:s,automatedReportId:n,success:i,userList:c}=e;const[d,u]=(0,r.useState)(!1),[p,m]=(0,r.useState)(!1),f=(0,o.A)(),{user:x}=(0,g.A)(),v=(0,y.G)(b.cu),A={name:"",service:"",interval:"",type:"",selectedUsers:[x._id]},{register:H,handleSubmit:L,reset:M,formState:{errors:k},setError:D,watch:Z,setValue:U}=(0,_.mN)();(0,r.useEffect)((()=>{n&&(async()=>{try{m(!0);const e=await(0,N.Vg)(`/autoreports/${n}`,{action:"getReport"}),t={...e,selectedUsers:e.users};M(t)}catch(e){const t=(0,S.A)(e);f(t,"Failed to fetch automated report",a.W6),s()}finally{m(!1)}})()}),[n]),(0,r.useEffect)((()=>{M(A)}),[t]);const B=L((async e=>{const{service:t,type:s,interval:r,selectedUsers:l,name:o}=e;if(!o)return void D("name",{message:"Please provide a name"});if(!t)return void D("service",{message:"Please select a service"});if(!s)return void D("type",{message:"Please select a report type"});if(!r)return void D("interval",{message:"Please select a time interval"});if(!l||0===l.length)return void D("selectedUsers",{message:"Please select a recipient"});const c={name:o,type:s,interval:r,users:l,service:t},d="/autoreports";u(!0);try{n?await(0,N.mu)(`${d}/${n}`,c,{action:"updateReport"}):await(0,N.$P)(d,c,{action:"createReport"}),i(),M(A),f(n?"Report updated with success":"New report added with success")}catch(h){const e=(0,S.A)(h);n&&f(e,"Failed to update the report",a.W6),f(e,"Failed to add a new report",a.W6)}finally{u(!1)}})),I=Z("selectedUsers");return(0,j.jsxs)(R.A,{isOpen:t,toggle:s,reset:M,title:n?"Update Automated Report":"New Automated Report",onSubmit:B,submitTitle:n?"Update":"Save",isLoading:d,submitDisabled:d||p,style:{maxWidth:"500px"},children:[(0,j.jsxs)("div",{className:T,children:[(0,j.jsx)(P.A,{name:"name",register:H,placeholder:"Name",isRequired:!0,showRequiredSignal:!0,errors:k,minLength:2,focus:!0}),(0,j.jsxs)("div",{className:"form-field fullwidth",children:[(0,j.jsx)("label",{className:"required",children:"Service:"}),(0,j.jsx)("div",{className:"select",children:(0,j.jsxs)("select",{...H("service"),children:[(0,j.jsx)("option",{value:"",children:"Select"}),v.map((e=>(0,j.jsx)("option",{value:e._id,children:e.name},e._id)))]})}),(0,j.jsx)(O.K,{errors:k,name:"service",render:e=>{let{message:t}=e;return(0,j.jsx)("span",{className:V,children:t})}})]}),(0,j.jsxs)("div",{className:"form-field fullwidth",children:[(0,j.jsx)("label",{className:"required",children:"Report Type:"}),(0,j.jsxs)("div",{className:"select",children:[(0,j.jsxs)("select",{...H("type"),children:[(0,j.jsx)("option",{value:"",children:"Select"}),Object.entries(C).map((e=>{let[t,s]=e;return(0,j.jsx)("option",{value:t,children:s},t)}))]}),(0,j.jsx)(O.K,{errors:k,name:"type",render:e=>{let{message:t}=e;return(0,j.jsx)("span",{className:V,children:t})}})]})]}),(0,j.jsxs)("div",{className:"form-field fullwidth",children:[(0,j.jsx)("label",{className:"required",children:"Report Interval:"}),(0,j.jsxs)("div",{className:"select",children:[(0,j.jsxs)("select",{...H("interval"),children:[(0,j.jsx)("option",{value:"",children:"Select"}),Object.entries(w).map((e=>{let[t,s]=e;return(0,j.jsx)("option",{value:t,children:s},t)}))]}),(0,j.jsx)(O.K,{errors:k,name:"interval",render:e=>{let{message:t}=e;return(0,j.jsx)("span",{className:V,children:t})}})]})]}),(0,j.jsxs)("div",{className:l()("form-field fullwidth"),children:[(0,j.jsx)("label",{className:"required",children:"Recipients:"}),(0,j.jsx)(E.A,{entities:c,register:H,selectedEntities:I,setValue:U,name:"selectedUsers",loading:p,showSelectAll:!0}),(0,j.jsx)(O.K,{errors:k,name:"selectedUsers",render:e=>{let{message:t}=e;return(0,j.jsx)("span",{className:V,children:t})}})]})]}),p&&(0,j.jsx)(h.A,{local:!0})]})};var L=s(87735),M=s(90557);const k=e=>{let{setShowModal:t}=e;return(0,j.jsxs)("div",{className:"p-title-bar p-mb-16",children:[(0,j.jsx)(L.A,{icon:(0,j.jsx)(v,{fill:"white"}),title:"Automated Reports"}),(0,j.jsxs)("button",{title:"New Report",className:"btn btn-primary btn-icon-before ml-5",onClick:()=>t(!0),children:[(0,j.jsx)(M.A,{}),(0,j.jsx)("span",{children:"New report"})]})]})},D="styles_header__PyG7+",Z="styles_row__0HXss",U="styles_note__GJ1NZ",B=()=>{const[e,t]=(0,r.useState)(!1),[s,n]=(0,r.useState)(""),[_,O]=(0,r.useState)([]),[R,S]=(0,r.useState)([]),[E,P]=(0,r.useState)(!0),[T,V]=(0,r.useState)(!1),{getConfirmation:L}=(0,c.A)(),M=(0,o.A)(),B=(0,y.G)(b.cu),{user:I}=(0,g.A)(),$=async()=>{P(!0);try{const{data:e}=await(0,N.Vg)("/autoreports?limit=1000",{action:"getReports"});O(e)}catch(e){console.log(e)}finally{P(!1)}};(0,r.useEffect)((()=>{$(),(async()=>
1{if(!T){V(!0);try{const{data:e}=await(0,N.Vg)("/users?limit=1000",{action:"getUsers"});S([{...I,name:I.fullName?`${I.username} (${I.fullName})`:I.username},...e.filter((e=>e.username!==I.username)).map((e=>({...e,name:e.fullName?`${e.username} (${e.fullName})`:e.username}))).sort(((e,t)=>e.name.localeCompare(t.name)))])}catch(e){console.log(e)}finally{V(!1)}}})()}),[]),(0,r.useEffect)((()=>{e||n("")}),[e]);const Y=e=>{n(e),t(!0)};return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(H,{isOpen:e,toggle:()=>t(!1),automatedReportId:s,success:async()=>{await $(),t(!1)},userList:R}),(0,j.jsxs)("div",{className:"p-container",children:[(0,j.jsxs)(p.A,{children:[(0,j.jsx)(p.A.Item,{text:"Home",href:"/app/automated-reports"}),(0,j.jsx)(p.A.Item,{text:"Reports - Automated Reports",isActive:!0})]}),(0,j.jsx)(k,{setShowModal:()=>t(!0)}),(E||T)&&(0,j.jsx)(h.A,{}),_.length>0&&(0,j.jsx)(i.A,{className:U,children:"Automated reports are sent between 7:00 AM and 9:00 AM UTC"}),_.length>0&&(0,j.jsxs)("div",{className:"p-table-wrapper",children:[(0,j.jsxs)("div",{className:l()("p-table-header",D),children:[(0,j.jsx)("div",{children:"NAME"}),(0,j.jsx)("div",{children:"REPORT TYPE"}),(0,j.jsx)("div",{children:"REPORT INTERVAL"}),(0,j.jsx)("div",{children:"RECIPIENTS"}),(0,j.jsx)("div",{children:"SERVICE"}),(0,j.jsx)("div",{children:"LAST SENT"}),(0,j.jsx)("div",{})]}),_.map((e=>{return(0,j.jsxs)("div",{className:l()("p-table-row",Z),children:[(0,j.jsxs)("div",{className:"p-table-name-col p-cursor-pointer",onClick:()=>Y(e._id),children:[(0,j.jsx)(v,{}),(0,j.jsx)("div",{children:e.name})]}),(0,j.jsx)("div",{children:C[e.type]}),(0,j.jsx)("div",{children:w[e.interval]}),(0,j.jsx)(u.A,{entityName:"user",entities:(s=e.users,R.filter((e=>s.includes(e._id)))),linkToEntity:"/app/users"}),(0,j.jsx)(u.A,{entityName:"service",entities:(t=e.service,B.filter((e=>e._id===t))),linkToEntity:"/app/services"}),(0,j.jsx)("div",{children:e.lastSentAt&&(0,A.as)(e.lastSentAt,"YYYY-MM-DD HH:mm")}),(0,j.jsx)("div",{className:"table-row-actions",children:(0,j.jsxs)(m.A,{toggleClassName:"btn btn-icon btn-small",children:[(0,j.jsxs)("button",{className:"dropdown-item",onClick:()=>Y(e._id),children:[(0,j.jsx)(x.A,{}),"Edit"]}),(0,j.jsxs)("button",{className:"dropdown-item",onClick:()=>(async e=>{if(await L({title:"Attention!",message:"Are you sure you want to delete this report?",confirmBtnText:"Delete"}))try{await(0,N.Al)(`/autoreports/${e}`,{action:"deleteReport"}),await $(),M("Report removed with success")}catch(t){M("Please try again","Something went wrong",a.W6)}})(e._id),children:[(0,j.jsx)(f.A,{}),(0,j.jsx)("span",{children:"Delete"})]})]})})]},e._id);var t,s}))]}),0===_.length&&!E&&!T&&(0,j.jsx)("div",{className:"panel",children:(0,j.jsx)(d.A,{onCreate:()=>t(!0),notFoundText:"There aren't any automated reports yet",coolActionText:"Please go ahead and create the first report",actionText:"Add new",permission:!0})})]})]})}},37736:(e,t,s)=>{s.d(t,{A:()=>n});s(65043);var r=s(70579);const n=e=>{let{fill:t,onClick:s}=e;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",onClick:s,children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",className:"fill-layer",d:"M18.2561 6.80833H14.1647V5.40417C14.1647 4.63188 13.5756 4 12.8555 4H10.8916C10.1715 4 9.58236 4.63188 9.58236 5.40417V6.80833H5.49097C5.22912 6.80833 5 7.05406 5 7.3349V8.38802C5 8.66885 5.22912 8.91458 5.49097 8.91458H18.2561C18.518 8.91458 18.7471 8.66885 18.7471 8.38802V7.3349C18.7471 7.05406 18.518 6.80833 18.2561 6.80833ZM10.8916 5.75521C10.8916 5.54458 11.0225 5.40417 11.2189 5.40417H12.5282C12.7246 5.40417 12.8555 5.54458 12.8555 5.75521V6.80833H10.8916V5.75521ZM16.9469 10.3188H6.80021C6.53836 10.3188 6.30925 10.5645 6.30925 10.8453V19.0948C6.30925 20.0777 7.02933 20.85 7.9458 20.85H15.8013C16.7178 20.85 17.4378 20.0777 17.4378 19.0948V10.8453C17.4378 10.5645 17.2087 10.3188 16.9469 10.3188ZM10.8916 18.0417C10.8916 18.2523 10.7607 18.3927 10.5643 18.3927H9.90967C9.71329 18.3927 9.58236 18.2523 9.58236 18.0417V13.1271C9.58236 12.9165 9.71329 12.776 9.90967 12.776H10.5643C10.7607 12.776 10.8916 12.9165 10.8916 13.1271V18.0417ZM14.1647 18.0417C14.1647 18.2523 14.0338 18.3927 13.8374 18.3927H13.1828C12.9864 18.3927 12.8555 18.2523 12.8555 18.0417V13.1271C12.8555 12.9165 12.9864 12.776 13.1828 12.776H13.8374C14.0338 12.776 14.1647 12.9165 14.1647 13.1271V18.0417Z",fill:t||"currentColor"})})})}},46450:(e,t,s)=>{s.d(t,{A:()=>n});s(65043);var r=s(70579);const n=e=>{let{fill:t,...s}=e;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:(0,r.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",fill:t||"currentColor",fillRule:"evenodd",d:"M7.35876 9H17.1233C17.3991 9 17.5922 9.35858 17.3715 9.60683L12.5996 15.4545C12.4341 15.6752 12.0755 15.6752 11.91 15.4545L7.08293 9.60683C6.88984 9.35858 7.05534 9 7.35876 9Z",clipRule:"evenodd"})})}},49935:(e,t,s)=>{s.d(t,{A:()=>v});var r=s(65043),n=s(65173),l=s.n(n),i=s(44306),a=s(96794);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function d(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},u.apply(this,arguments)}function h(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
1function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var s,r=x(e);if(t){var n=x(this).constructor;s=Reflect.construct(r,arguments,n)}else s=r.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,s)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var j=["defaultOpen"],v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(o,e);var t,s,n,l=m(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=l.call(this,e)).state={isOpen:e.defaultOpen||!1},t.toggle=t.toggle.bind(f(t)),t}return t=o,(s=[{key:"toggle",value:function(e){var t=this;this.setState((function(e){return{isOpen:!e.isOpen}}),(function(){t.props.onToggle&&t.props.onToggle(e,t.state.isOpen)}))}},{key:"render",value:function(){return r.createElement(i.A,u({isOpen:this.state.isOpen,toggle:this.toggle},(0,a.cJ)(this.props,j)))}}])&&h(t.prototype,s),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.Component);v.propTypes=function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach((function(t){d(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({defaultOpen:l().bool,onToggle:l().func},i.A.propTypes)},49974:(e,t,s)=>{s.d(t,{K:()=>l});var r=s(65043),n=s(24858),l=function(e){var t=e.as,s=e.errors,l=e.name,i=e.message,a=e.render,o=function(e,t){if(null==e)return{};var s,r,n={},l=Object.keys(e);for(r=0;r<l.length;r++)t.indexOf(s=l[r])>=0||(n[s]=e[s]);return n}(e,["as","errors","name","message","render"]),c=(0,n.xW)(),d=(0,n.Jt)(s||c.formState.errors,l);if(!d)return null;var u=d.message,h=d.types,p=Object.assign({},o,{children:u||i});return r.isValidElement(t)?r.cloneElement(t,p):a?a({message:u||i,messages:h}):r.createElement(t||r.Fragment,p)}},57181:(e,t,s)=>{s.d(t,{A:()=>n});s(65043);var r=s(70579);const n=e=>{let{fill:t,...s}=e;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:(0,r.jsx)("path",{fill:t||"#605D70",d:"M11.885 4C7.5154 4 4 7.5154 4 11.885C4 16.2546 7.5154 19.77 11.885 19.77C16.2546 19.77 19.77 16.2546 19.77 11.885C19.77 7.5154 16.2546 4 11.885 4ZM11.885 7.97535C12.4435 7.97535 12.8706 8.40246 12.8706 8.96098C12.8706 9.5195 12.4435 9.9466 11.885 9.9466C11.3265 9.9466 10.8994 9.5195 10.8994 8.96098C10.8994 8.40246 11.3265 7.97535 11.885 7.97535ZM13.5277 14.8747C13.5277 15.039 13.3963 15.1704 13.1992 15.1704H10.5708C10.4066 15.1704 10.2423 15.0719 10.2423 14.8747V14.2176C10.2423 14.0534 10.3737 13.8563 10.5708 13.8563C10.7351 13.8563 10.8994 13.7577 10.8994 13.5606V12.2464C10.8994 12.0821 10.768 11.885 10.5708 11.885C10.4066 11.885 10.2423 11.7864 10.2423 11.5893V10.9322C10.2423 10.768 10.3737 10.5708 10.5708 10.5708H12.5421C12.7064 10.5708 12.8706 10.7351 12.8706 10.9322V13.5606C12.8706 13.7248 13.002 13.8563 13.1992 13.8563C13.3634 13.8563 13.5277 14.0205 13.5277 14.2176V14.8747Z"})})}},80533:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(65043),n=s(48991),l=s(57181),i=s(70579);let a=1;const o=(0,i.jsx)(l.A,{className:"p-info-tooltip"}),c=e=>{let{target:t=o,children:s,className:l}=e;const[c,d]=(0,r.useState)(!1),u=(0,r.useRef)(`auto-target-${a}`);return a++,(0,i.jsxs)(i.Fragment,{children:[r.cloneElement(t,{id:u.current}),(0,i.jsx)(n.A,{target:u.current,isOpen:!!s&&c,toggle:()=>d(!c),className:l,children:s})]})},d=(0,r.memo)(c)},80856:(e,t,s)=>{s.d(t,{A:()=>
1o});var r=s(62582),n=s(80533),l=s(57181);const i="styles_wrapper__GPNx0";var a=s(70579);const o=e=>{let{entityName:t,entities:s,linkToEntity:o,allEntities:c}=e;return c?(0,a.jsx)("div",{className:i,children:o?(0,a.jsxs)(r.N_,{to:o,children:["All ",t,"s"]}):(0,a.jsxs)("div",{children:["All ",t,"s"]})}):s&&0!==s.length?1===s.length?(0,a.jsx)("div",{className:i,children:o?(0,a.jsx)(r.N_,{to:`${o}/${s[0]._id}`,children:s[0].name}):(0,a.jsx)("div",{children:s[0].name})}):(0,a.jsxs)("div",{className:i,children:[o?(0,a.jsxs)(r.N_,{to:o,children:[s.length," ",t,"s"]}):(0,a.jsxs)("div",{children:[s.length," ",t,"s"]}),(0,a.jsx)(n.A,{target:(0,a.jsx)(l.A,{className:"p-info-tooltip"}),children:(0,a.jsxs)("ul",{children:[s.slice(0,10).map((e=>(0,a.jsx)("li",{children:e.name},e._id))),s.length>10&&(0,a.jsx)("li",{children:"..."})]})})]}):(0,a.jsx)("div",{children:"---"})}},87735:(e,t,s)=>{s.d(t,{A:()=>d});s(65043);var r=s(98139),n=s.n(r),l=s(62582);const i="styles_title__QG6lK",a="styles_icon__jOqRl",o="styles_link__mzLC8";var c=s(70579);const d=e=>{let{icon:t,title:s,type:r="primary",href:d}=e;const u=d?l.N_:"div";return"secondary"===r?(0,c.jsxs)(u,{className:n()(i,o),...d?{to:d}:{},children:[(0,c.jsx)("span",{className:a,children:t}),(0,c.jsx)("h3",{children:s})]}):(0,c.jsxs)(u,{className:n()("d-flex align-items-center",o),...d?{to:d}:{},children:[(0,c.jsx)("div",{className:"titlebar-icon",children:(0,c.jsx)("span",{children:t})}),(0,c.jsx)("h1",{className:"mr-4",children:s})]})}},87836:(e,t,s)=>{s.d(t,{A:()=>d});s(65043);var r=s(98139),n=s.n(r),l=s(62582);const i="styles_breadcrumb__Cmev7",a="styles_active__d8m+1";var o=s(70579);const c=e=>{let{children:t}=e;return(0,o.jsx)("nav",{"aria-label":"breadcrumb",children:(0,o.jsx)("ol",{className:i,children:t})})};c.Item=e=>{let{isActive:t=!1,className:s,text:r="",href:i=""}=e;const c={};return t&&(c["aria-current"]="page"),(0,o.jsx)("li",{className:n()(s,t&&a),...c,children:t?r:(0,o.jsx)(l.N_,{to:i,children:r})})};const d=c},90557:(e,t,s)=>{s.d(t,{A:()=>n});s(65043);var r=s(70579);const n=e=>{let{fill:t,...s}=e;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:(0,r.jsx)("path",{fill:t||"currentColor",fillRule:"evenodd",d:"M12.8387 6.08871C12.8387 5.48743 12.3513 5 11.75 5C11.1487 5 10.6613 5.48743 10.6613 6.08871V10.6613H6.08871C5.48743 10.6613 5 11.1487 5 11.75C5 12.3513 5.48743 12.8387 6.08871 12.8387H10.6613V17.4113C10.6613 18.0126 11.1487 18.5 11.75 18.5C12.3513 18.5 12.8387 18.0126 12.8387 17.4113V12.8387H17.4113C18.0126 12.8387 18.5 12.3513 18.5 11.75C18.5 11.1487 18.0126 10.6613 17.4113 10.6613H12.8387V6.08871Z",clipRule:"evenodd"})})}}}]); 2//# sourceMappingURL=4601.e744c070.chunk.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.