"use strict";(self.webpackChunkname=self.webpackChunkname||[]).push([[105],{58336:(e,t,r)=>{var n=r(64836);t.Z=void 0;var a=n(r(64938)),i=r(85893),o=(0,a.default)((0,i.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.Z=o},66489:(e,t,r)=>{r.d(t,{Z:()=>x});var n=r(63366),a=r(87462),i=r(81672),o=r(86010),l=r(94780),s=r(70917),c=r(98216),u=r(71657),d=r(90948),f=r(22346),m=r(85893);const v=["className","color","disableShrink","size","style","thickness","value","variant"];let g,p,h,y,b=e=>e;const k=(0,s.F4)(g||(g=b`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),S=(0,s.F4)(p||(p=b`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),Z=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,c.Z)(r.color)}`]]}})((({ownerState:e,theme:t})=>(0,a.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,s.iv)(h||(h=b`
      animation: ${0} 1.4s linear infinite;
    `),k))),w=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),R=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${(0,c.Z)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,a.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,s.iv)(y||(y=b`
      animation: ${0} 1.4s ease-in-out infinite;
    `),S))),x=i.forwardRef((function(e,t){const r=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:d=!1,size:g=40,style:p,thickness:h=3.6,value:y=0,variant:b="indeterminate"}=r,k=(0,n.Z)(r,v),S=(0,a.Z)({},r,{color:s,disableShrink:d,size:g,thickness:h,value:y,variant:b}),x=(e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,i={root:["root",r,`color${(0,c.Z)(n)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(r)}`,a&&"circleDisableShrink"]};return(0,l.Z)(i,f.C,t)})(S),E={},C={},P={};if("determinate"===b){const e=2*Math.PI*((44-h)/2);E.strokeDasharray=e.toFixed(3),P["aria-valuenow"]=Math.round(y),E.strokeDashoffset=`${((100-y)/100*e).toFixed(3)}px`,C.transform="rotate(-90deg)"}return(0,m.jsx)(Z,(0,a.Z)({className:(0,o.Z)(x.root,i),style:(0,a.Z)({width:g,height:g},C,p),ownerState:S,ref:t,role:"progressbar"},P,k,{children:(0,m.jsx)(w,{className:x.svg,ownerState:S,viewBox:"22 22 44 44",children:(0,m.jsx)(R,{className:x.circle,style:E,ownerState:S,cx:44,cy:44,r:(44-h)/2,fill:"none",strokeWidth:h})})}))}))},22346:(e,t,r)=>{r.d(t,{C:()=>i,Z:()=>o});var n=r(1588),a=r(34867);function i(e){return(0,a.Z)("MuiCircularProgress",e)}const o=(0,n.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"])},73586:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(81672);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const i=function(e){var t=e.maxPage,r=e.page,i=e.loading,o=e.action,l=(0,n.useRef)(null),s=(0,n.useCallback)((function(e){l.current&&l.current.disconnect(),i?l.current=null:(l.current=new IntersectionObserver((function(e){var n,i;(n=e,i=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}}(n,i)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].isIntersecting&&r<t&&o()})),e&&l.current&&l.current.observe(e))}),[t,r,i]);return s}},57431:(e,t,r)=>{r.d(t,{Z:()=>C});var n=r(81672),a=r(79895),i=r(63397),o=r(80620),l=r(88441),s=r(16628),c=r(21023),u=r(98850),d=r(66489),f=r(16779),m=r(58336),v=r(73586),g=r(21987),p=r(23972),h=r(43412),y=(0,f.Z)((function(e){return{container:{padding:e.spacing(1)}}}));const b=function(){var e=y(),t=(0,i.useTranslation)().t;return React.createElement(g.Z,{className:e.container},React.createElement(p.Z,{align:"center",variant:"body1"},t(h.w1V)))};var k=r(81810),S=r(5425);function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,l=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(l)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=(0,f.Z)((function(e){return{container:{alignContent:"flex-start",alignItems:"center",display:"grid",height:"100%",justifyItems:"center",width:"100%"},entities:{display:"grid",gridAutoFlow:"row",gridGap:e.spacing(1),gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",width:"100%"},entitiesContainer:{paddingBottom:e.spacing(.5),width:"100%"},fab:{bottom:0,display:"flex",justifyContent:"flex-end",marginRight:e.spacing(1.5),position:"sticky"},filter:{marginTop:e.spacing(),width:"100%"},progress:{height:e.spacing(.5),marginBottom:e.spacing(1),width:"100%"},scrollableContainer:{bottom:0,left:0,overflow:"auto",padding:e.spacing(2),paddingTop:e.spacing(1),position:"absolute",right:0,top:0}}})),E=(0,k.Z)({Component:function(e){var t=e.limit,r=e.filter,f=e.reloadDependencies,g=void 0===f?[]:f,p=e.loadingSkeleton,y=e.loading,k=e.preventReloadWhen,Z=void 0!==k&&k,w=e.sendListingRequest,E=e.children,C=e.details,P=x(),A=(0,i.useTranslation)().t,N=R((0,n.useState)(),2),j=N[0],I=N[1],D=R((0,n.useState)(1),2),M=D[0],T=D[1],$=R((0,n.useState)(0),2),K=$[0],O=$[1],B=R((0,n.useState)(!1),2),F=B[0],J=B[1],z=R((0,n.useState)(!1),2),G=z[0],U=z[1],V=(0,n.useRef)(),W=(0,n.useRef)(!1),L=(0,o.useAtomValue)(S.eZ),q=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{atPage:M}).atPage;return null==w?void 0:w({atPage:e}).then((function(e){var t=e.meta;return O(t.total),e})).finally((function(){J(!1)}))},H=function(){var e;T(1),null===(e=q({atPage:1}))||void 0===e||e.then((function(e){var t=e.result;I(t)})).catch((function(){}))};(0,n.useEffect)((function(){(0,a.kKJ)(C)&&I(void 0),1!==M||(0,a.kKJ)(C)||Z||H()}),[C]),(0,n.useEffect)((function(){var e;(0,a.kKJ)(j)||1===M||null===(e=q())||void 0===e||e.then((function(e){var t=e.result;I((0,a.zoF)(j,t))})).catch((function(){}))}),[M]),(0,n.useEffect)((function(){(0,a.kKJ)(C)||(0,a.kKJ)(j)||(I(void 0),H())}),g),(0,n.useEffect)((function(){(null==L?void 0:L.resourceId)!==(null==C?void 0:C.id)&&(I(void 0),T(1))}),[null==L?void 0:L.resourceId]);var Q=Math.ceil(K/t),X=(0,v.Z)({action:function(){(0,a.fS0)(M,Q)||(J(!0),T(M+1))},loading:y,maxPage:Q,page:M});return React.createElement("div",{className:P.scrollableContainer,ref:V,onScroll:function(e){var t=e.target.scrollTop;W.current&&(0,a.gt)(t,0)||(U((0,a.ffD)((0,a.fS0)(t,0))),W.current=!1,(0,a.gt)(t,0)||H())}},React.createElement("div",{className:P.container},React.createElement("div",{className:P.filter},r),React.createElement("div",{className:P.progress},y&&(0,a.ffD)((0,a.kKJ)(j))&&React.createElement(l.Z,{color:"primary"})),React.createElement("div",{className:P.entitiesContainer},React.createElement("div",{className:P.entities},(0,a.wVM)([[(0,a.Bxt)((0,a.kKJ)(j)),(0,a.Bxt)(p)],[a.xbD,(0,a.Bxt)(React.createElement(b,null))],[a.T,(0,a.Bxt)(React.createElement(React.Fragment,null,E({entities:j,infiniteScrollTriggerRef:X})))]])(j)),React.createElement("div",{className:P.fab},React.createElement(s.Z,{in:G},React.createElement(c.Z,{title:A(h.G8R)},React.createElement(u.Z,{"aria-label":A(h.G8R),color:"primary",size:"small",onClick:function(){var e;null===(e=V.current)||void 0===e||e.scrollTo({behavior:(0,a.gt)((0,a.kE)(j),200)?"auto":"smooth",top:0}),W.current=!0,U(!1)}},React.createElement(m.Z,null)))))),F&&React.createElement(d.Z,null)))},memoProps:["limit","reloadDependencies","loading","preventReloadWhen","filter","details"]});const C=function(e){return React.createElement(E,w({},e))}},57821:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(22054),a=(0,r(16779).Z)((function(e){return{skeleton:{height:62,transform:"none",width:"100%"},skeletons:{display:"grid",gridGap:e.spacing(1)}}}));const i=function(){var e=a(),t=React.createElement(n.Z,{className:e.skeleton});return React.createElement("div",{className:e.skeletons},t,t,t)}}}]);