1 line
51 KiB
JavaScript
1 line
51 KiB
JavaScript
|
"use strict";(self.webpackChunk_npwd_nui=self.webpackChunk_npwd_nui||[]).push([[3894],{33894:function(e,t,o){o.r(t),o.d(t,{GroupedVirtuoso:function(){return io},LogLevel:function(){return q},TableVirtuoso:function(){return Yo},Virtuoso:function(){return ro},VirtuosoGrid:function(){return Mo},VirtuosoGridMockContext:function(){return Pt},VirtuosoMockContext:function(){return Lt}});var n=o(53182),r=o(72367);const i=0,l=1,s=2,c=4;function a(e,t){return o=>e(t(o))}function u(e,t){return t(e)}function d(e,t){return o=>e(t,o)}function f(e,t){return()=>e(t)}function m(e,t){return t(e),e}function h(...e){return e}function g(e){e()}function p(e){return()=>e}function v(e){return void 0!==e}function I(){}function T(e,t){return e(l,t)}function x(e,t){e(i,t)}function w(e){e(s)}function S(e){return e(c)}function C(e,t){return T(e,d(t,i))}function E(e,t){const o=e(l,(e=>{o(),t(e)}));return o}function H(){const e=[];return(t,o)=>{switch(t){case s:return void e.splice(0,e.length);case l:return e.push(o),()=>{const t=e.indexOf(o);t>-1&&e.splice(t,1)};case i:return void e.slice().forEach((e=>{e(o)}));default:throw new Error(`unrecognized action ${t}`)}}}function y(e){let t=e;const o=H();return(e,n)=>{switch(e){case l:n(t);break;case i:t=n;break;case c:return t}return o(e,n)}}function b(e){return m(H(),(t=>C(e,t)))}function z(e,t){return m(y(t),(t=>C(e,t)))}function R(e,...t){const o=function(...e){return t=>e.reduceRight(u,t)}(...t);return(t,n)=>{switch(t){case l:return T(e,o(n));case s:return void w(e)}}}function B(e,t){return e===t}function k(e=B){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function L(e){return t=>o=>{e(o)&&t(o)}}function P(e){return t=>a(t,e)}function O(e){return t=>()=>t(e)}function M(e,t){return o=>n=>o(t=e(t,n))}function F(e){return t=>o=>{e>0?e--:t(o)}}function W(e){let t,o=null;return n=>r=>{o=r,t||(t=setTimeout((()=>{t=void 0,n(o)}),e))}}function V(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout((()=>{n(t)}),e)}}function A(...e){const t=new Array(e.length);let o=0,n=null;const r=Math.pow(2,e.length)-1;return e.forEach(((e,i)=>{const l=Math.pow(2,i);T(e,(e=>{const s=o;o|=l,t[i]=e,s!==r&&o===r&&n&&(n(),n=null)}))})),e=>i=>{const l=()=>e([i].concat(t));o===r?l():n=l}}function D(...e){return function(t,o){switch(t){case l:return function(...e){return()=>{e.map(g)}}(...e.map((e=>T(e,o))));case s:return;default:throw new Error(`unrecognized action ${t}`)}}}function G(e,t=B){return R(e,k(t))}function N(...e){const t=H(),o=new Array(e.length);let n=0;const r=Math.pow(2,e.length)-1;return e.forEach(((e,i)=>{const l=Math.pow(2,i);T(e,(e=>{o[i]=e,n|=l,n===r&&x(t,o)}))})),function(e,i){switch(e){case l:return n===r&&i(o),T(t,i);case s:return w(t);default:throw new Error(`unrecognized action ${e}`)}}}function _(e,t=[],{singleton:o}={singleton:!0}){return{id:U(),constructor:e,dependencies:t,singleton:o}}const U=()=>Symbol(),K="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function $(e,t,o){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),c=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),u=n.createContext({});function h(e,o){e.propsReady&&x(e.propsReady,!1);for(const n of r)x(e[t.required[n]],o[n]);for(const n of i)n in o&&x(e[t.optional[n]],o[n]);e.propsReady&&x(e.propsReady,!0)}function g(e){return a.reduce(((o,n)=>(o[n]=function(e){let t,o;const n=()=>t&&t();return function(r,i){switch(r){case l:if(i){if(o===i)return;return n(),o=i,t=T(e,i),t}return n(),I;case s:return n(),void(o=null);default:throw new Error(`unrecognized action ${r}`)}}}(e[t.events[n]]),o)),{})}const v=n.forwardRef(((l,s)=>{const{children:d,...v}=l,[I]=n.useState((()=>m(function(e){const t=new Map,o=({id:e,constructor:n,dependencies:r,singleton:i})=>{if(i&&t.has(e))return t.get(e);const l=n(r.map((e=>o(e))));return i&&t.set(e,l),l};return o(e)}(e),(e=>h(e,v))))),[S]=n.useState(f(g,I));return K((()=>{for(const e of a)e in v&&T(S[e],v[e]);return()=>{Object.values(S).map(w)}}),[v,S,I]),K((()=>{h(I,v)})),n.useImperativeHandle(s,p(function(e){return c.reduce(((o,n)=>(o[n]=o=>{x(e[t.methods[n]],o)},o)),{})}(I))),n.cre
|