@kne-components/components-core 0.2.86 → 0.2.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/build/asset-manifest.json +103 -103
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/{1045.3613d9f0.chunk.css → 1045.4f9a14f6.chunk.css} +2 -2
  6. package/build/static/css/{1045.3613d9f0.chunk.css.map → 1045.4f9a14f6.chunk.css.map} +1 -1
  7. package/build/static/css/1046.ee46a443.chunk.css +2 -0
  8. package/build/static/css/{1046.afe5b390.chunk.css.map → 1046.ee46a443.chunk.css.map} +1 -1
  9. package/build/static/css/1153.f6b8221a.chunk.css +2 -0
  10. package/build/static/css/{1153.d730179e.chunk.css.map → 1153.f6b8221a.chunk.css.map} +1 -1
  11. package/build/static/css/1554.18aa1e22.chunk.css +2 -0
  12. package/build/static/css/{1554.7a876634.chunk.css.map → 1554.18aa1e22.chunk.css.map} +1 -1
  13. package/build/static/css/2716.17643413.chunk.css +2 -0
  14. package/build/static/css/{2716.ed7acf30.chunk.css.map → 2716.17643413.chunk.css.map} +1 -1
  15. package/build/static/css/374.ef3ae120.chunk.css +12 -0
  16. package/build/static/css/{374.158c02d3.chunk.css.map → 374.ef3ae120.chunk.css.map} +1 -1
  17. package/build/static/css/3834.fc316135.chunk.css +2 -0
  18. package/build/static/css/{3834.61dab49b.chunk.css.map → 3834.fc316135.chunk.css.map} +1 -1
  19. package/build/static/css/4194.80c84ce8.chunk.css +2 -0
  20. package/build/static/css/{4194.fc955958.chunk.css.map → 4194.80c84ce8.chunk.css.map} +1 -1
  21. package/build/static/css/4602.70ac68fe.chunk.css +2 -0
  22. package/build/static/css/{4602.4aa99a42.chunk.css.map → 4602.70ac68fe.chunk.css.map} +1 -1
  23. package/build/static/css/4666.0ab16672.chunk.css +2 -0
  24. package/build/static/css/{4666.eb740d33.chunk.css.map → 4666.0ab16672.chunk.css.map} +1 -1
  25. package/build/static/css/{5371.d3e675be.chunk.css → 5371.6234566f.chunk.css} +2 -2
  26. package/build/static/css/{5371.d3e675be.chunk.css.map → 5371.6234566f.chunk.css.map} +1 -1
  27. package/build/static/css/5807.abf00216.chunk.css +2 -0
  28. package/build/static/css/{5807.731383d7.chunk.css.map → 5807.abf00216.chunk.css.map} +1 -1
  29. package/build/static/css/5965.4de41928.chunk.css +2 -0
  30. package/build/static/css/{5965.5999222b.chunk.css.map → 5965.4de41928.chunk.css.map} +1 -1
  31. package/build/static/css/{624.f99f9f07.chunk.css → 624.07b24a4c.chunk.css} +2 -2
  32. package/build/static/css/{624.f99f9f07.chunk.css.map → 624.07b24a4c.chunk.css.map} +1 -1
  33. package/build/static/css/6756.39d7ac8f.chunk.css +2 -0
  34. package/build/static/css/{6756.f9182bc3.chunk.css.map → 6756.39d7ac8f.chunk.css.map} +1 -1
  35. package/build/static/css/7227.8d052394.chunk.css +2 -0
  36. package/build/static/css/{7227.7d5d0dde.chunk.css.map → 7227.8d052394.chunk.css.map} +1 -1
  37. package/build/static/css/{7253.fa959b3b.chunk.css → 7253.fd976b80.chunk.css} +2 -2
  38. package/build/static/css/{7253.fa959b3b.chunk.css.map → 7253.fd976b80.chunk.css.map} +1 -1
  39. package/build/static/css/7277.9269a879.chunk.css +2 -0
  40. package/build/static/css/{7277.a60888ef.chunk.css.map → 7277.9269a879.chunk.css.map} +1 -1
  41. package/build/static/css/{7334.bcb642fc.chunk.css → 7334.4f24e818.chunk.css} +2 -2
  42. package/build/static/css/{7334.bcb642fc.chunk.css.map → 7334.4f24e818.chunk.css.map} +1 -1
  43. package/build/static/css/764.62df0ac1.chunk.css +2 -0
  44. package/build/static/css/764.62df0ac1.chunk.css.map +1 -0
  45. package/build/static/css/{7866.8a9828ff.chunk.css → 7866.4ee85707.chunk.css} +2 -2
  46. package/build/static/css/{7866.8a9828ff.chunk.css.map → 7866.4ee85707.chunk.css.map} +1 -1
  47. package/build/static/css/{8503.2c03d040.chunk.css → 8503.44956045.chunk.css} +2 -2
  48. package/build/static/css/{8503.2c03d040.chunk.css.map → 8503.44956045.chunk.css.map} +1 -1
  49. package/build/static/js/{1045.f3c8115d.chunk.js → 1045.223fbee2.chunk.js} +2 -2
  50. package/build/static/js/{1045.f3c8115d.chunk.js.map → 1045.223fbee2.chunk.js.map} +1 -1
  51. package/build/static/js/1046.ac1e0543.chunk.js +2 -0
  52. package/build/static/js/{1046.66223d8c.chunk.js.map → 1046.ac1e0543.chunk.js.map} +1 -1
  53. package/build/static/js/{1153.98a0390a.chunk.js → 1153.d663cff3.chunk.js} +3 -3
  54. package/build/static/js/{1153.98a0390a.chunk.js.map → 1153.d663cff3.chunk.js.map} +1 -1
  55. package/build/static/js/{1381.82ffec9a.chunk.js → 1381.423999f5.chunk.js} +1 -1
  56. package/build/static/js/{1554.e248db56.chunk.js → 1554.92bd44df.chunk.js} +3 -3
  57. package/build/static/js/{1554.e248db56.chunk.js.map → 1554.92bd44df.chunk.js.map} +1 -1
  58. package/build/static/js/1955.06cbeb39.chunk.js +3 -0
  59. package/build/static/js/1955.06cbeb39.chunk.js.map +1 -0
  60. package/build/static/js/{2233.cc8a0e07.chunk.js → 2233.1ccf5ee4.chunk.js} +2 -2
  61. package/build/static/js/{2233.cc8a0e07.chunk.js.map → 2233.1ccf5ee4.chunk.js.map} +1 -1
  62. package/build/static/js/{2716.595bcb0d.chunk.js → 2716.60f01892.chunk.js} +3 -3
  63. package/build/static/js/{2716.595bcb0d.chunk.js.map → 2716.60f01892.chunk.js.map} +1 -1
  64. package/build/static/js/{2723.3f48296c.chunk.js → 2723.67eebf7c.chunk.js} +1 -1
  65. package/build/static/js/{374.f0c0a430.chunk.js → 374.61875344.chunk.js} +2 -2
  66. package/build/static/js/{374.f0c0a430.chunk.js.map → 374.61875344.chunk.js.map} +1 -1
  67. package/build/static/js/3834.3c9ad6a5.chunk.js +2 -0
  68. package/build/static/js/{3834.b6d91fd7.chunk.js.map → 3834.3c9ad6a5.chunk.js.map} +1 -1
  69. package/build/static/js/3856.5c2d65af.chunk.js +2 -0
  70. package/build/static/js/{3856.9263bd2b.chunk.js.map → 3856.5c2d65af.chunk.js.map} +1 -1
  71. package/build/static/js/{4194.0393de8b.chunk.js → 4194.46954500.chunk.js} +2 -2
  72. package/build/static/js/{4194.0393de8b.chunk.js.map → 4194.46954500.chunk.js.map} +1 -1
  73. package/build/static/js/{4602.0c27a760.chunk.js → 4602.7825388f.chunk.js} +2 -2
  74. package/build/static/js/{4602.0c27a760.chunk.js.map → 4602.7825388f.chunk.js.map} +1 -1
  75. package/build/static/js/{9376.ec715a66.chunk.js → 4614.89a6f8c8.chunk.js} +2 -2
  76. package/build/static/js/{9376.ec715a66.chunk.js.map → 4614.89a6f8c8.chunk.js.map} +1 -1
  77. package/build/static/js/{4666.b40906ca.chunk.js → 4666.0719205a.chunk.js} +3 -3
  78. package/build/static/js/{4666.b40906ca.chunk.js.map → 4666.0719205a.chunk.js.map} +1 -1
  79. package/build/static/js/5371.e0c9d510.chunk.js +2 -0
  80. package/build/static/js/{5371.5dd40d7c.chunk.js.map → 5371.e0c9d510.chunk.js.map} +1 -1
  81. package/build/static/js/{5633.462aeb41.chunk.js → 5633.6d18b4c8.chunk.js} +1 -1
  82. package/build/static/js/{5807.0f8cc3fb.chunk.js → 5807.48084177.chunk.js} +2 -2
  83. package/build/static/js/{5807.0f8cc3fb.chunk.js.map → 5807.48084177.chunk.js.map} +1 -1
  84. package/build/static/js/{5965.f0bfc368.chunk.js → 5965.5cc2f192.chunk.js} +2 -2
  85. package/build/static/js/{5965.f0bfc368.chunk.js.map → 5965.5cc2f192.chunk.js.map} +1 -1
  86. package/build/static/js/5971.e2501754.chunk.js +2 -0
  87. package/build/static/js/5971.e2501754.chunk.js.map +1 -0
  88. package/build/static/js/{624.c9198329.chunk.js → 624.e5cc0619.chunk.js} +2 -2
  89. package/build/static/js/{624.c9198329.chunk.js.map → 624.e5cc0619.chunk.js.map} +1 -1
  90. package/build/static/js/{7227.c235c334.chunk.js → 7227.a2893f2a.chunk.js} +3 -3
  91. package/build/static/js/{7227.c235c334.chunk.js.map → 7227.a2893f2a.chunk.js.map} +1 -1
  92. package/build/static/js/{7253.e9688618.chunk.js → 7253.ed947c60.chunk.js} +2 -2
  93. package/build/static/js/{7253.e9688618.chunk.js.map → 7253.ed947c60.chunk.js.map} +1 -1
  94. package/build/static/js/{7277.74f64852.chunk.js → 7277.389a7643.chunk.js} +2 -2
  95. package/build/static/js/{7277.74f64852.chunk.js.map → 7277.389a7643.chunk.js.map} +1 -1
  96. package/build/static/js/{7334.87a7f34e.chunk.js → 7334.a09c0756.chunk.js} +2 -2
  97. package/build/static/js/{7334.87a7f34e.chunk.js.map → 7334.a09c0756.chunk.js.map} +1 -1
  98. package/build/static/js/764.fe0c958c.chunk.js +2 -0
  99. package/build/static/js/764.fe0c958c.chunk.js.map +1 -0
  100. package/build/static/js/{7866.862afb08.chunk.js → 7866.43fd252b.chunk.js} +2 -2
  101. package/build/static/js/{7866.862afb08.chunk.js.map → 7866.43fd252b.chunk.js.map} +1 -1
  102. package/build/static/js/8503.ad153823.chunk.js +2 -0
  103. package/build/static/js/{8503.09891b68.chunk.js.map → 8503.ad153823.chunk.js.map} +1 -1
  104. package/build/static/js/{main.31e0e8d8.js → main.e3df8eaa.js} +2 -2
  105. package/build/static/js/{main.31e0e8d8.js.map → main.e3df8eaa.js.map} +1 -1
  106. package/package.json +2 -2
  107. package/build/static/css/1046.afe5b390.chunk.css +0 -2
  108. package/build/static/css/1153.d730179e.chunk.css +0 -2
  109. package/build/static/css/1554.7a876634.chunk.css +0 -2
  110. package/build/static/css/2716.ed7acf30.chunk.css +0 -2
  111. package/build/static/css/374.158c02d3.chunk.css +0 -12
  112. package/build/static/css/3834.61dab49b.chunk.css +0 -2
  113. package/build/static/css/4194.fc955958.chunk.css +0 -2
  114. package/build/static/css/4602.4aa99a42.chunk.css +0 -2
  115. package/build/static/css/4666.eb740d33.chunk.css +0 -2
  116. package/build/static/css/5807.731383d7.chunk.css +0 -2
  117. package/build/static/css/5965.5999222b.chunk.css +0 -2
  118. package/build/static/css/6756.f9182bc3.chunk.css +0 -2
  119. package/build/static/css/7227.7d5d0dde.chunk.css +0 -2
  120. package/build/static/css/7277.a60888ef.chunk.css +0 -2
  121. package/build/static/css/764.e1251bd3.chunk.css +0 -2
  122. package/build/static/css/764.e1251bd3.chunk.css.map +0 -1
  123. package/build/static/js/1046.66223d8c.chunk.js +0 -2
  124. package/build/static/js/1955.372399ed.chunk.js +0 -3
  125. package/build/static/js/1955.372399ed.chunk.js.map +0 -1
  126. package/build/static/js/3834.b6d91fd7.chunk.js +0 -2
  127. package/build/static/js/3856.9263bd2b.chunk.js +0 -2
  128. package/build/static/js/5371.5dd40d7c.chunk.js +0 -2
  129. package/build/static/js/5971.b9ee366c.chunk.js +0 -2
  130. package/build/static/js/5971.b9ee366c.chunk.js.map +0 -1
  131. package/build/static/js/764.bde3667a.chunk.js +0 -2
  132. package/build/static/js/764.bde3667a.chunk.js.map +0 -1
  133. package/build/static/js/8503.09891b68.chunk.js +0 -2
  134. /package/build/static/js/{1153.98a0390a.chunk.js.LICENSE.txt → 1153.d663cff3.chunk.js.LICENSE.txt} +0 -0
  135. /package/build/static/js/{1554.e248db56.chunk.js.LICENSE.txt → 1554.92bd44df.chunk.js.LICENSE.txt} +0 -0
  136. /package/build/static/js/{1955.372399ed.chunk.js.LICENSE.txt → 1955.06cbeb39.chunk.js.LICENSE.txt} +0 -0
  137. /package/build/static/js/{2716.595bcb0d.chunk.js.LICENSE.txt → 2716.60f01892.chunk.js.LICENSE.txt} +0 -0
  138. /package/build/static/js/{4666.b40906ca.chunk.js.LICENSE.txt → 4666.0719205a.chunk.js.LICENSE.txt} +0 -0
  139. /package/build/static/js/{7227.c235c334.chunk.js.LICENSE.txt → 7227.a2893f2a.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2233,9376],{94614:(r,n,e)=>{e.r(n),e.d(n,{useDebounce:()=>i,useDebouncedCallback:()=>t,useThrottledCallback:()=>a});var u=e(73884);function t(r,n,e){var t=this,c=(0,u.useRef)(null),i=(0,u.useRef)(0),a=(0,u.useRef)(null),o=(0,u.useRef)([]),f=(0,u.useRef)(),l=(0,u.useRef)(),s=(0,u.useRef)(r),m=(0,u.useRef)(!0);s.current=r;var v="undefined"!=typeof window,d=!n&&0!==n&&v;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var p=!!(e=e||{}).leading,R=!("trailing"in e)||!!e.trailing,b="maxWait"in e,h="debounceOnServer"in e&&!!e.debounceOnServer,k=b?Math.max(+e.maxWait||0,n):null;(0,u.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,u.useMemo)((function(){var r=function(r){var n=o.current,e=f.current;return o.current=f.current=null,i.current=r,l.current=s.current.apply(e,n)},e=function(r,n){d&&cancelAnimationFrame(a.current),a.current=d?requestAnimationFrame(r):setTimeout(r,n)},u=function(r){if(!m.current)return!1;var e=r-c.current;return!c.current||e>=n||e<0||b&&r-i.current>=k},w=function(n){return a.current=null,R&&o.current?r(n):(o.current=f.current=null,l.current)},g=function r(){var t=Date.now();if(u(t))return w(t);if(m.current){var a=n-(t-c.current),o=b?Math.min(a,k-(t-i.current)):a;e(r,o)}},_=function(){if(v||h){var s=Date.now(),d=u(s);if(o.current=[].slice.call(arguments),f.current=t,c.current=s,d){if(!a.current&&m.current)return i.current=c.current,e(g,n),p?r(c.current):l.current;if(b)return e(g,n),r(c.current)}return a.current||e(g,n),l.current}};return _.cancel=function(){a.current&&(d?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,o.current=c.current=f.current=a.current=null},_.isPending=function(){return!!a.current},_.flush=function(){return a.current?w(Date.now()):l.current},_}),[p,b,n,k,R,d,v,h]);return w}function c(r,n){return r===n}function i(r,n,e){var i=e&&e.equalityFn||c,a=(0,u.useRef)(r),o=(0,u.useState)({})[1],f=t((0,u.useCallback)((function(r){a.current=r,o({})}),[o]),n,e),l=(0,u.useRef)(r);return i(l.current,r)||(f(r),l.current=r),[a.current,f]}function a(r,n,e){var u=void 0===e?{}:e,c=u.leading,i=u.trailing;return t(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i})}}}]);
2
- //# sourceMappingURL=2233.cc8a0e07.chunk.js.map
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2233,4614],{94614:(r,n,e)=>{e.r(n),e.d(n,{useDebounce:()=>i,useDebouncedCallback:()=>t,useThrottledCallback:()=>a});var u=e(73884);function t(r,n,e){var t=this,c=(0,u.useRef)(null),i=(0,u.useRef)(0),a=(0,u.useRef)(null),o=(0,u.useRef)([]),f=(0,u.useRef)(),l=(0,u.useRef)(),s=(0,u.useRef)(r),m=(0,u.useRef)(!0);s.current=r;var v="undefined"!=typeof window,d=!n&&0!==n&&v;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var p=!!(e=e||{}).leading,R=!("trailing"in e)||!!e.trailing,b="maxWait"in e,h="debounceOnServer"in e&&!!e.debounceOnServer,k=b?Math.max(+e.maxWait||0,n):null;(0,u.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,u.useMemo)((function(){var r=function(r){var n=o.current,e=f.current;return o.current=f.current=null,i.current=r,l.current=s.current.apply(e,n)},e=function(r,n){d&&cancelAnimationFrame(a.current),a.current=d?requestAnimationFrame(r):setTimeout(r,n)},u=function(r){if(!m.current)return!1;var e=r-c.current;return!c.current||e>=n||e<0||b&&r-i.current>=k},w=function(n){return a.current=null,R&&o.current?r(n):(o.current=f.current=null,l.current)},g=function r(){var t=Date.now();if(u(t))return w(t);if(m.current){var a=n-(t-c.current),o=b?Math.min(a,k-(t-i.current)):a;e(r,o)}},_=function(){if(v||h){var s=Date.now(),d=u(s);if(o.current=[].slice.call(arguments),f.current=t,c.current=s,d){if(!a.current&&m.current)return i.current=c.current,e(g,n),p?r(c.current):l.current;if(b)return e(g,n),r(c.current)}return a.current||e(g,n),l.current}};return _.cancel=function(){a.current&&(d?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,o.current=c.current=f.current=a.current=null},_.isPending=function(){return!!a.current},_.flush=function(){return a.current?w(Date.now()):l.current},_}),[p,b,n,k,R,d,v,h]);return w}function c(r,n){return r===n}function i(r,n,e){var i=e&&e.equalityFn||c,a=(0,u.useRef)(r),o=(0,u.useState)({})[1],f=t((0,u.useCallback)((function(r){a.current=r,o({})}),[o]),n,e),l=(0,u.useRef)(r);return i(l.current,r)||(f(r),l.current=r),[a.current,f]}function a(r,n,e){var u=void 0===e?{}:e,c=u.leading,i=u.trailing;return t(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i})}}}]);
2
+ //# sourceMappingURL=2233.1ccf5ee4.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/2233.cc8a0e07.chunk.js","mappings":"+PAkHwB,SAAAA,EAEtBC,EAASC,EAAeF,GAAiB,IAAAG,EAAA,KACnCC,GAAeC,EAAAA,EAAAA,QAAO,MACtBC,GAAiBD,EAAAA,EAAAA,QAAO,GACxBE,GAAUF,EAAAA,EAAAA,QAAO,MACjBG,GAAWH,EAAAA,EAAAA,QAAkB,IAC7BI,GAAWJ,EAAAA,EAAAA,UACXK,GAASL,EAAAA,EAAAA,UACTM,GAAUN,EAAAA,EAAAA,QAAOJ,GACjBW,GAAUP,EAAAA,EAAAA,SAAA,GAEhBM,EAAQE,QAAUZ,EAElB,IAAMa,EAAiC,oBAAXC,OAEtBC,GAAUd,GAAiB,IAATA,GAAcY,EAEtC,GAAoB,mBAATb,EACT,MAAU,IAAAgB,UAAU,uBAGtBf,GAAQA,GAAQ,EAGhB,IAAMgB,KAFNlB,EAAUA,GAAW,CAAE,GAEGmB,QACpBC,IAAW,aAAcpB,MAAYA,EAAQqB,SAC7CC,EAAS,YAAatB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AAAA,EAAAA,QAAOwB,GAO7B,OALKvB,EAAGI,EAAcG,QAASgB,KAC7BpB,EAAUoB,GACVnB,EAAcG,QAAUgB,GAGnB,CAACtB,EAAYM,QAAcJ,EACpC,CCiBc,SAAUH,EAGtBD,EACAwB,EAAYE,GACyC,IAAA9B,OAAA,IAAA8B,EAAF,CAAE,EAAAA,EAAA7B,EAAAD,EAAnDkB,QAAchB,EAAAF,EAAEoB,SAElB,OAAOrB,EAAqBK,EAAMwB,EAAM,CACtCD,QAASC,EACTV,aAAA,IAJOjB,GAAOA,EAKdmB,cAAA,IALwBlB,GAAOA,GAOnC,C","sources":["../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useDebounce.ts","../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useThrottledCallback.ts"],"sourcesContent":["import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n /**\n * If the setting is set to true, all debouncing and timers will happen on the server side as well\n */\n debounceOnServer?: boolean;\n}\n\nexport interface ControlFunctions<ReturnT> {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => ReturnT | undefined;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function return the result of the last func invocation.\n * Note, that if there are no previous invocations you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState<T extends (...args: any) => ReturnType<T>>\n extends ControlFunctions<ReturnType<T>> {\n (...args: Parameters<T>): ReturnType<T> | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * <button onClick={clickHandler}>click me</button>\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<\n T extends (...args: any) => ReturnType<T>,\n>(func: T, wait?: number, options?: Options): DebouncedState<T> {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef<unknown[]>([]);\n const lastThis = useRef<unknown>();\n const result = useRef<ReturnType<T>>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n // Always keep the latest version of debounce callback, with no wait time.\n funcRef.current = func;\n\n const isClientSide = typeof window !== 'undefined';\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && isClientSide;\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const debounceOnServer =\n 'debounceOnServer' in options ? !!options.debounceOnServer : false; // `false` by default\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF\n ? requestAnimationFrame(pendingFunc)\n : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing\n ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState<T> = (...args: Parameters<T>): ReturnType<T> => {\n if (!isClientSide && !debounceOnServer) {\n return;\n }\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF\n ? cancelAnimationFrame(timerId.current)\n : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current =\n lastCallTime.current =\n lastThis.current =\n timerId.current =\n null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [\n leading,\n maxing,\n wait,\n maxWait,\n trailing,\n useRAF,\n isClientSide,\n debounceOnServer,\n ]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality<T>(left: T, right: T): boolean {\n return left === right;\n}\n\nexport default function useDebounce<T>(\n value: T,\n delay: number,\n options?: {\n maxWait?: number;\n leading?: boolean;\n trailing?: boolean;\n equalityFn?: (left: T, right: T) => boolean;\n }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const activeValue = useRef(value);\n const [, forceUpdate] = useState({});\n const debounced = useDebouncedCallback(\n useCallback(\n (value: T) => {\n activeValue.current = value;\n forceUpdate({});\n },\n [forceUpdate]\n ),\n delay,\n options\n );\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [activeValue.current as T, debounced];\n}\n","import useDebouncedCallback, {\n CallOptions,\n DebouncedState,\n} from './useDebouncedCallback';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds (or once per browser frame).\n *\n * The throttled function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the throttled function.\n *\n * Subsequent calls to the throttled function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `throttle` and `debounce`.\n *\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0]\n * The number of milliseconds to throttle invocations to; if omitted,\n * `requestAnimationFrame` is used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * const scrollHandler = useThrottledCallback(updatePosition, 100)\n * window.addEventListener('scroll', scrollHandler)\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * const throttled = useThrottledCallback(renewToken, 300000, { 'trailing': false })\n * <button onClick={throttled}>click</button>\n *\n * // Cancel the trailing throttled invocation.\n * window.addEventListener('popstate', throttled.cancel);\n */\nexport default function useThrottledCallback<\n T extends (...args: any) => ReturnType<T>,\n>(\n func: T,\n wait: number,\n { leading = true, trailing = true }: CallOptions = {}\n): DebouncedState<T> {\n return useDebouncedCallback(func, wait, {\n maxWait: wait,\n leading,\n trailing,\n });\n}\n"],"names":["c","e","u","i","a","r","o","f","l","v","m","d","g","current","p","window","w","TypeError","s","leading","x","trailing","h","y","debounceOnServer","F","Math","max","maxWait","n","A","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn"],"sourceRoot":""}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ACzBL,EAASK,QACPT,EAAaS,QACbJ,EAASI,QACTN,EAAQM,QACN,IACN,EAEAiB,EAAKc,UAAY,WACf,QAASrC,EAAQM,OACnB,EAEAiB,EAAKe,MAAQ,WACX,OAAQtC,EAAQM,QAA2BZ,EAAamC,KAAKC,OAAnC3B,EAAOG,OACnC,EAEOiB,CACT,GAAG,CACDZ,EACAI,EACApB,EACAuB,EACAL,EACAJ,EACAF,EACAS,IAGF,OAAOO,CACT,CCtSA,SAAS3B,EAAiBE,EAASwB,GACjC,OAAOxB,IAASwB,CAClB,CAEwB,SAAAzB,EACtByB,EACAE,EACA3B,GAOA,IAAME,EAAMF,GAAWA,EAAQ0C,YAAe3C,EAExCI,GAAcF,EAAAA,EAAAA,QAAOwB,GAClBrB,GAAeP,EAAAA,EAAAA,UAAS,CAAE,GACnC,GAAMQ,EAAYT,GAChBE,EAAAA,EAAAA,cACE,SAACG,GACCE,EAAYM,QAAUR,EACtBG,EAAY,CAAE,EAChB,GACA,CAACA,IAEHuB,EACA3B,GAEIM,GAAgBL,EAAAA,EAAAA,QAAOwB,GAO7B,OALKvB,EAAGI,EAAcG,QAASgB,KAC7BpB,EAAUoB,GACVnB,EAAcG,QAAUgB,GAGnB,CAACtB,EAAYM,QAAcJ,EACpC,CCiBc,SAAUH,EAGtBD,EACAwB,EAAYE,GACyC,IAAA9B,OAAA,IAAA8B,EAAF,CAAE,EAAAA,EAAA7B,EAAAD,EAAnDkB,QAAchB,EAAAF,EAAEoB,SAElB,OAAOrB,EAAqBK,EAAMwB,EAAM,CACtCD,QAASC,EACTV,aAAA,IAJOjB,GAAOA,EAKdmB,cAAA,IALwBlB,GAAOA,GAOnC,C","sources":["../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useDebounce.ts","../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useThrottledCallback.ts"],"sourcesContent":["import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n /**\n * If the setting is set to true, all debouncing and timers will happen on the server side as well\n */\n debounceOnServer?: boolean;\n}\n\nexport interface ControlFunctions<ReturnT> {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => ReturnT | undefined;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function return the result of the last func invocation.\n * Note, that if there are no previous invocations you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState<T extends (...args: any) => ReturnType<T>>\n extends ControlFunctions<ReturnType<T>> {\n (...args: Parameters<T>): ReturnType<T> | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * <button onClick={clickHandler}>click me</button>\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<\n T extends (...args: any) => ReturnType<T>,\n>(func: T, wait?: number, options?: Options): DebouncedState<T> {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef<unknown[]>([]);\n const lastThis = useRef<unknown>();\n const result = useRef<ReturnType<T>>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n // Always keep the latest version of debounce callback, with no wait time.\n funcRef.current = func;\n\n const isClientSide = typeof window !== 'undefined';\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && isClientSide;\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const debounceOnServer =\n 'debounceOnServer' in options ? !!options.debounceOnServer : false; // `false` by default\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF\n ? requestAnimationFrame(pendingFunc)\n : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing\n ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState<T> = (...args: Parameters<T>): ReturnType<T> => {\n if (!isClientSide && !debounceOnServer) {\n return;\n }\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF\n ? cancelAnimationFrame(timerId.current)\n : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current =\n lastCallTime.current =\n lastThis.current =\n timerId.current =\n null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [\n leading,\n maxing,\n wait,\n maxWait,\n trailing,\n useRAF,\n isClientSide,\n debounceOnServer,\n ]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality<T>(left: T, right: T): boolean {\n return left === right;\n}\n\nexport default function useDebounce<T>(\n value: T,\n delay: number,\n options?: {\n maxWait?: number;\n leading?: boolean;\n trailing?: boolean;\n equalityFn?: (left: T, right: T) => boolean;\n }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const activeValue = useRef(value);\n const [, forceUpdate] = useState({});\n const debounced = useDebouncedCallback(\n useCallback(\n (value: T) => {\n activeValue.current = value;\n forceUpdate({});\n },\n [forceUpdate]\n ),\n delay,\n options\n );\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [activeValue.current as T, debounced];\n}\n","import useDebouncedCallback, {\n CallOptions,\n DebouncedState,\n} from './useDebouncedCallback';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds (or once per browser frame).\n *\n * The throttled function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the throttled function.\n *\n * Subsequent calls to the throttled function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `throttle` and `debounce`.\n *\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0]\n * The number of milliseconds to throttle invocations to; if omitted,\n * `requestAnimationFrame` is used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * const scrollHandler = useThrottledCallback(updatePosition, 100)\n * window.addEventListener('scroll', scrollHandler)\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * const throttled = useThrottledCallback(renewToken, 300000, { 'trailing': false })\n * <button onClick={throttled}>click</button>\n *\n * // Cancel the trailing throttled invocation.\n * window.addEventListener('popstate', throttled.cancel);\n */\nexport default function useThrottledCallback<\n T extends (...args: any) => ReturnType<T>,\n>(\n func: T,\n wait: number,\n { leading = true, trailing = true }: CallOptions = {}\n): DebouncedState<T> {\n return useDebouncedCallback(func, wait, {\n maxWait: wait,\n leading,\n trailing,\n });\n}\n"],"names":["c","e","u","i","a","r","o","f","l","v","m","d","g","current","p","window","w","TypeError","s","leading","x","trailing","h","y","debounceOnServer","F","Math","max","maxWait","n","A","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- /*! For license information please see 2716.595bcb0d.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1760,2716,9379],{62716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>y});var o=r(89379),n=r(53986),s=r(73884),a=r(83136),l=r.n(a);const i={"state-tag":"style_state-tag__Kx27z__h6iWu","state-result-tag":"style_state-result-tag__CssDz__h6iWu","state-skill-tag":"style_state-skill-tag__k0bQE__h6iWu","event-tag":"style_event-tag__cg6SE__h6iWu","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__h6iWu","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__h6iWu","state-tag-filterResult":"style_state-tag-filterResult__KTkot__h6iWu","show-bg":"style_show-bg__OcL+R__h6iWu","tag-text":"style_tag-text__JHCt+__h6iWu","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__h6iWu"};var c=r(55199),u=r(70579);const f=["showBorder","text","type","showBackground","className","filterName"],_={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},p=t=>{let{showBorder:e,text:r,type:a,showBackground:p,className:y,filterName:g}=t,d=(0,n.A)(t,f);const b=(0,s.useMemo)((()=>{var t,e;return{color:(null===_||void 0===_||null===(t=_[a])||void 0===t?void 0:t.color)||_[a],borderColor:(null===_||void 0===_||null===(e=_[a])||void 0===e?void 0:e.borderColor)||_[a]}}),[a]);return(0,u.jsxs)(c.Space,{"data-testid":"components-core-state-tag",className:l()(i["state-tag-wrapper"],"filterResult"===a?i["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[g?(0,u.jsxs)("span",{className:i["state-tag-filter-name"],children:[g,":"]}):null,(0,u.jsx)(c.Tag,(0,o.A)((0,o.A)({color:b.color},d),{},{style:{background:p?b.color+"0F":"none",color:b.color,border:e?"1px solid ".concat(b.borderColor):"none"},className:l()(i["state-tag"],y,"result"===a?i["state-result-tag"]:"","skill"===a?i["state-skill-tag"]:"",i["state-tag-".concat(a)],p?i["show-bg"]:"",e?i["show-border"]:"",null!==d&&void 0!==d&&d.onClick?i["event-tag"]:""),children:(0,u.jsx)("span",{className:i["tag-text"],children:r})}))]})};p.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const y=p},51153:(t,e,r)=>{var o=r(73884),n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var o,s={},c=null,u=null;for(o in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)a.call(e,o)&&!i.hasOwnProperty(o)&&(s[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===s[o]&&(s[o]=e[o]);return{$$typeof:n,type:t,key:c,ref:u,props:s,_owner:l.current}}e.Fragment=s,e.jsx=c,e.jsxs=c},70579:(t,e,r)=>{t.exports=r(51153)},64467:(t,e,r)=>{r.d(e,{A:()=>n});var o=r(20816);function n(t,e,r){return(e=(0,o.A)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},89379:(t,e,r)=>{r.d(e,{A:()=>s});var o=r(64467);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){(0,o.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},53986:(t,e,r)=>{function o(t,e){if(null==t)return{};var r,o,n=function(t,e){if(null==t)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.includes(o))continue;r[o]=t[o]}return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],e.includes(r)||{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}r.d(e,{A:()=>o})},20816:(t,e,r)=>{r.d(e,{A:()=>n});var o=r(82284);function n(t){var e=function(t,e){if("object"!=(0,o.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=(0,o.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,o.A)(e)?e:e+""}},82284:(t,e,r)=>{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}r.d(e,{A:()=>o})}}]);
3
- //# sourceMappingURL=2716.595bcb0d.chunk.js.map
1
+ /*! For license information please see 2716.60f01892.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1760,2716,9379],{62716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>y});var o=r(89379),n=r(53986),s=r(73884),a=r(83136),l=r.n(a);const c={"state-tag":"style_state-tag__Kx27z__4u7VJ","state-result-tag":"style_state-result-tag__CssDz__4u7VJ","state-skill-tag":"style_state-skill-tag__k0bQE__4u7VJ","event-tag":"style_event-tag__cg6SE__4u7VJ","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__4u7VJ","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__4u7VJ","state-tag-filterResult":"style_state-tag-filterResult__KTkot__4u7VJ","show-bg":"style_show-bg__OcL+R__4u7VJ","tag-text":"style_tag-text__JHCt+__4u7VJ","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__4u7VJ"};var u=r(55199),i=r(70579);const f=["showBorder","text","type","showBackground","className","filterName"],_={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},p=t=>{let{showBorder:e,text:r,type:a,showBackground:p,className:y,filterName:g}=t,d=(0,n.A)(t,f);const b=(0,s.useMemo)((()=>{var t,e;return{color:(null===_||void 0===_||null===(t=_[a])||void 0===t?void 0:t.color)||_[a],borderColor:(null===_||void 0===_||null===(e=_[a])||void 0===e?void 0:e.borderColor)||_[a]}}),[a]);return(0,i.jsxs)(u.Space,{"data-testid":"components-core-state-tag",className:l()(c["state-tag-wrapper"],"filterResult"===a?c["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[g?(0,i.jsxs)("span",{className:c["state-tag-filter-name"],children:[g,":"]}):null,(0,i.jsx)(u.Tag,(0,o.A)((0,o.A)({color:b.color},d),{},{style:{background:p?b.color+"0F":"none",color:b.color,border:e?"1px solid ".concat(b.borderColor):"none"},className:l()(c["state-tag"],y,"result"===a?c["state-result-tag"]:"","skill"===a?c["state-skill-tag"]:"",c["state-tag-".concat(a)],p?c["show-bg"]:"",e?c["show-border"]:"",null!==d&&void 0!==d&&d.onClick?c["event-tag"]:""),children:(0,i.jsx)("span",{className:c["tag-text"],children:r})}))]})};p.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const y=p},51153:(t,e,r)=>{var o=r(73884),n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,r){var o,s={},u=null,i=null;for(o in void 0!==r&&(u=""+r),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(i=e.ref),e)a.call(e,o)&&!c.hasOwnProperty(o)&&(s[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===s[o]&&(s[o]=e[o]);return{$$typeof:n,type:t,key:u,ref:i,props:s,_owner:l.current}}e.Fragment=s,e.jsx=u,e.jsxs=u},70579:(t,e,r)=>{t.exports=r(51153)},64467:(t,e,r)=>{r.d(e,{A:()=>n});var o=r(20816);function n(t,e,r){return(e=(0,o.A)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},89379:(t,e,r)=>{r.d(e,{A:()=>s});var o=r(64467);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){(0,o.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},53986:(t,e,r)=>{function o(t,e){if(null==t)return{};var r,o,n=function(t,e){if(null==t)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.includes(o))continue;r[o]=t[o]}return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],e.includes(r)||{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}r.d(e,{A:()=>o})},20816:(t,e,r)=>{r.d(e,{A:()=>n});var o=r(82284);function n(t){var e=function(t,e){if("object"!=(0,o.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=(0,o.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,o.A)(e)?e:e+""}},82284:(t,e,r)=>{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}r.d(e,{A:()=>o})}}]);
3
+ //# sourceMappingURL=2716.60f01892.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/2716.595bcb0d.chunk.js","mappings":";oPACA,SAAgB,YAAY,gCAAgC,mBAAmB,uCAAuC,kBAAkB,sCAAsC,YAAY,gCAAgC,kCAAkC,sDAAsD,wBAAwB,4CAA4C,yBAAyB,6CAA6C,UAAU,8BAA8B,WAAW,+BAA+B,oBAAo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SACnB2B,EAAE3B,GAAK0B,EAAE1B,EACX,CACA,OAAO2B,CACT,CDHQ,CAA6Bb,EAAGa,GACtC,GAAI9B,OAAOsC,sBAAuB,CAChC,IAAIc,EAAIpD,OAAOsC,sBAAsBrB,GACrC,IAAKY,EAAI,EAAGA,EAAIuB,EAAEN,OAAQjB,IAAKU,EAAIa,EAAEvB,GAAIC,EAAEqB,SAASZ,IAAM,CAAC,EAAEc,qBAAqBlC,KAAKF,EAAGsB,KAAOW,EAAEX,GAAKtB,EAAEsB,GAC5G,CACA,OAAOW,CACT,mEETA,SAASI,EAAcxB,GACrB,IAAIoB,ECFN,SAAqBpB,EAAGD,GACtB,GAAI,WAAY,OAAQC,KAAOA,EAAG,OAAOA,EACzC,IAAIb,EAAIa,EAAElC,OAAO2D,aACjB,QAAI,IAAWtC,EAAG,CAChB,IAAIiC,EAAIjC,EAAEE,KAAKW,EAAGD,GAAK,WACvB,GAAI,WAAY,OAAQqB,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAQ,WAAa3B,EAAI4B,OAASC,QAAQ5B,EAC5C,CDPUyB,CAAYzB,EAAG,UACvB,MAAO,WAAY,OAAQoB,GAAKA,EAAIA,EAAI,EAC1C,mBELA,SAASS,EAAQpB,GAGf,OAAOoB,EAAU,mBAAqB/D,QAAU,iBAAmBA,OAAOgE,SAAW,SAAUrB,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqB3C,QAAU2C,EAAEsB,cAAgBjE,QAAU2C,IAAM3C,OAAOK,UAAY,gBAAkBsC,CACpH,EAAGoB,EAAQpB,EACb","sources":["webpack://@kne-components/components-core/./src/components/StateTag/style.module.scss?5aff","components/StateTag/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"state-tag\":\"style_state-tag__Kx27z__h6iWu\",\"state-result-tag\":\"style_state-result-tag__CssDz__h6iWu\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__h6iWu\",\"event-tag\":\"style_event-tag__cg6SE__h6iWu\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__h6iWu\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__h6iWu\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__h6iWu\",\"show-bg\":\"style_show-bg__OcL+R__h6iWu\",\"tag-text\":\"style_tag-text__JHCt+__h6iWu\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__h6iWu\"};","import React, { useMemo } from \"react\";\nimport classnames from \"classnames\";\n\nimport style from \"./style.module.scss\";\nimport { Space, Tag } from \"antd\";\n\nconst tagTypeEnum = {\n default: \"#666666\",\n skill: {\n color: \"#666666\",\n borderColor: \"#EEEEEE\",\n },\n result: \"#666666\",\n filterResult: \"#5CB8B2\",\n success: \"#027A48\",\n progress: \"#F09700\",\n danger: \"#D14343\",\n info: \"#155ACF\",\n other: \"#6740C3\",\n};\n\nconst StateTag = ({\n showBorder,\n text,\n type,\n showBackground,\n className,\n filterName,\n ...props\n}) => {\n const tagColor = useMemo(\n () => ({\n color: tagTypeEnum?.[type]?.color || tagTypeEnum[type],\n borderColor: tagTypeEnum?.[type]?.borderColor || tagTypeEnum[type],\n }),\n [type]\n );\n\n return (\n <Space\n data-testid={\"components-core-state-tag\"}\n className={classnames(\n style[\"state-tag-wrapper\"],\n type === \"filterResult\" ? style[\"state-tag-filter-result-wrapper\"] : \"\"\n )}\n align=\"center\"\n size={4}\n >\n {filterName ? (\n <span className={style[\"state-tag-filter-name\"]}>{filterName}:</span>\n ) : null}\n <Tag\n color={tagColor.color}\n {...props}\n style={{\n background: showBackground ? tagColor.color + \"0F\" : \"none\",\n color: tagColor.color,\n border: showBorder ? `1px solid ${tagColor.borderColor}` : \"none\",\n }}\n className={classnames(\n style[\"state-tag\"],\n className,\n type === \"result\" ? style[\"state-result-tag\"] : \"\",\n type === \"skill\" ? style[\"state-skill-tag\"] : \"\",\n style[`state-tag-${type}`],\n showBackground ? style[\"show-bg\"] : \"\",\n showBorder ? style[\"show-border\"] : \"\",\n props?.onClick ? style[\"event-tag\"] : \"\"\n )}\n >\n <span className={style[\"tag-text\"]}>{text}</span>\n </Tag>\n </Space>\n );\n};\n\nStateTag.defaultProps = {\n color: \"#666666\",\n type: \"default\",\n showBorder: false,\n showBackground: true,\n text: \"\",\n className: \"\",\n};\n\nexport default StateTag;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nexport { _objectSpread2 as default };","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };"],"names":["tagTypeEnum","default","skill","color","borderColor","result","filterResult","success","progress","danger","info","other","StateTag","_ref","showBorder","text","type","showBackground","className","filterName","props","_objectWithoutProperties","_excluded","tagColor","useMemo","_tagTypeEnum$type","_tagTypeEnum$type2","_jsxs","Space","classnames","style","align","size","children","_jsx","Tag","_objectSpread","background","border","concat","onClick","defaultProps","f","require","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module","_defineProperty","r","t","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","i","includes","s","propertyIsEnumerable","toPropertyKey","toPrimitive","TypeError","String","Number","_typeof","iterator","constructor"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/2716.60f01892.chunk.js","mappings":";oPACA,SAAgB,YAAY,gCAAgC,mB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EAAI,CAAC,EACT,IAAK,IAAI3B,KAAK0B,EAAG,GAAI,CAAC,EAAE3B,eAAeiB,KAAKU,EAAG1B,GAAI,CACjD,GAAIc,EAAEkC,SAAShD,GAAI,SACnB2B,EAAE3B,GAAK0B,EAAE1B,EACX,CACA,OAAO2B,CACT,CDHQ,CAA6Bb,EAAGa,GACtC,GAAI9B,OAAOsC,sBAAuB,CAChC,IAAIc,EAAIpD,OAAOsC,sBAAsBrB,GACrC,IAAKY,EAAI,EAAGA,EAAIuB,EAAEN,OAAQjB,IAAKU,EAAIa,EAAEvB,GAAIC,EAAEqB,SAASZ,IAAM,CAAC,EAAEc,qBAAqBlC,KAAKF,EAAGsB,KAAOW,EAAEX,GAAKtB,EAAEsB,GAC5G,CACA,OAAOW,CACT,mEETA,SAASI,EAAcxB,GACrB,IAAIoB,ECFN,SAAqBpB,EAAGD,GACtB,GAAI,WAAY,OAAQC,KAAOA,EAAG,OAAOA,EACzC,IAAIb,EAAIa,EAAElC,OAAO2D,aACjB,QAAI,IAAWtC,EAAG,CAChB,IAAIiC,EAAIjC,EAAEE,KAAKW,EAAGD,GAAK,WACvB,GAAI,WAAY,OAAQqB,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAQ,WAAa3B,EAAI4B,OAASC,QAAQ5B,EAC5C,CDPUyB,CAAYzB,EAAG,UACvB,MAAO,WAAY,OAAQoB,GAAKA,EAAIA,EAAI,EAC1C,mBELA,SAASS,EAAQpB,GAGf,OAAOoB,EAAU,mBAAqB/D,QAAU,iBAAmBA,OAAOgE,SAAW,SAAUrB,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqB3C,QAAU2C,EAAEsB,cAAgBjE,QAAU2C,IAAM3C,OAAOK,UAAY,gBAAkBsC,CACpH,EAAGoB,EAAQpB,EACb","sources":["webpack://@kne-components/components-core/./src/components/StateTag/style.module.scss?5aff","components/StateTag/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"state-tag\":\"style_state-tag__Kx27z__4u7VJ\",\"state-result-tag\":\"style_state-result-tag__CssDz__4u7VJ\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__4u7VJ\",\"event-tag\":\"style_event-tag__cg6SE__4u7VJ\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__4u7VJ\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__4u7VJ\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__4u7VJ\",\"show-bg\":\"style_show-bg__OcL+R__4u7VJ\",\"tag-text\":\"style_tag-text__JHCt+__4u7VJ\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__4u7VJ\"};","import React, { useMemo } from \"react\";\nimport classnames from \"classnames\";\n\nimport style from \"./style.module.scss\";\nimport { Space, Tag } from \"antd\";\n\nconst tagTypeEnum = {\n default: \"#666666\",\n skill: {\n color: \"#666666\",\n borderColor: \"#EEEEEE\",\n },\n result: \"#666666\",\n filterResult: \"#5CB8B2\",\n success: \"#027A48\",\n progress: \"#F09700\",\n danger: \"#D14343\",\n info: \"#155ACF\",\n other: \"#6740C3\",\n};\n\nconst StateTag = ({\n showBorder,\n text,\n type,\n showBackground,\n className,\n filterName,\n ...props\n}) => {\n const tagColor = useMemo(\n () => ({\n color: tagTypeEnum?.[type]?.color || tagTypeEnum[type],\n borderColor: tagTypeEnum?.[type]?.borderColor || tagTypeEnum[type],\n }),\n [type]\n );\n\n return (\n <Space\n data-testid={\"components-core-state-tag\"}\n className={classnames(\n style[\"state-tag-wrapper\"],\n type === \"filterResult\" ? style[\"state-tag-filter-result-wrapper\"] : \"\"\n )}\n align=\"center\"\n size={4}\n >\n {filterName ? (\n <span className={style[\"state-tag-filter-name\"]}>{filterName}:</span>\n ) : null}\n <Tag\n color={tagColor.color}\n {...props}\n style={{\n background: showBackground ? tagColor.color + \"0F\" : \"none\",\n color: tagColor.color,\n border: showBorder ? `1px solid ${tagColor.borderColor}` : \"none\",\n }}\n className={classnames(\n style[\"state-tag\"],\n className,\n type === \"result\" ? style[\"state-result-tag\"] : \"\",\n type === \"skill\" ? style[\"state-skill-tag\"] : \"\",\n style[`state-tag-${type}`],\n showBackground ? style[\"show-bg\"] : \"\",\n showBorder ? style[\"show-border\"] : \"\",\n props?.onClick ? style[\"event-tag\"] : \"\"\n )}\n >\n <span className={style[\"tag-text\"]}>{text}</span>\n </Tag>\n </Space>\n );\n};\n\nStateTag.defaultProps = {\n color: \"#666666\",\n type: \"default\",\n showBorder: false,\n showBackground: true,\n text: \"\",\n className: \"\",\n};\n\nexport default StateTag;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nexport { _objectSpread2 as default };","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };"],"names":["tagTypeEnum","default","skill","color","borderColor","result","filterResult","success","progress","danger","info","other","StateTag","_ref","showBorder","text","type","showBackground","className","filterName","props","_objectWithoutProperties","_excluded","tagColor","useMemo","_tagTypeEnum$type","_tagTypeEnum$type2","_jsxs","Space","classnames","style","align","size","children","_jsx","Tag","_objectSpread","background","border","concat","onClick","defaultProps","f","require","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module","_defineProperty","r","t","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","i","includes","s","propertyIsEnumerable","toPropertyKey","toPrimitive","TypeError","String","Number","_typeof","iterator","constructor"],"sourceRoot":""}
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2723],{82723:(e,n,o)=>{o.r(n),o.d(n,{default:()=>c.Content});var c=o(24614)}}]);
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2723],{82723:(e,n,o)=>{o.r(n),o.d(n,{default:()=>c.Content});var c=o(76216)}}]);