@kne-components/components-core 0.1.13 → 0.1.14

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 (225) hide show
  1. package/build/asset-manifest.json +146 -146
  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/1151.afd8edff.chunk.css +2 -0
  6. package/build/static/css/{1151.ec1bbfc0.chunk.css.map → 1151.afd8edff.chunk.css.map} +1 -1
  7. package/build/static/css/1153.5df2226a.chunk.css +2 -0
  8. package/build/static/css/{1153.bd20b743.chunk.css.map → 1153.5df2226a.chunk.css.map} +1 -1
  9. package/build/static/css/1454.83e40ef7.chunk.css +2 -0
  10. package/build/static/css/{1454.c0a0991e.chunk.css.map → 1454.83e40ef7.chunk.css.map} +1 -1
  11. package/build/static/css/1554.424ed55d.chunk.css +2 -0
  12. package/build/static/css/{1554.a585edf1.chunk.css.map → 1554.424ed55d.chunk.css.map} +1 -1
  13. package/build/static/css/192.e7738624.chunk.css +2 -0
  14. package/build/static/css/{192.73637503.chunk.css.map → 192.e7738624.chunk.css.map} +1 -1
  15. package/build/static/css/1932.f022467b.chunk.css +2 -0
  16. package/build/static/css/{1932.0bf35bc9.chunk.css.map → 1932.f022467b.chunk.css.map} +1 -1
  17. package/build/static/css/{2503.48eb44fa.chunk.css → 2503.4204d383.chunk.css} +2 -2
  18. package/build/static/css/{2503.48eb44fa.chunk.css.map → 2503.4204d383.chunk.css.map} +1 -1
  19. package/build/static/css/{2517.5b666562.chunk.css → 2517.259d62a7.chunk.css} +2 -2
  20. package/build/static/css/{2517.5b666562.chunk.css.map → 2517.259d62a7.chunk.css.map} +1 -1
  21. package/build/static/css/2637.87819440.chunk.css +2 -0
  22. package/build/static/css/2637.87819440.chunk.css.map +1 -0
  23. package/build/static/css/2716.46fec554.chunk.css +2 -0
  24. package/build/static/css/{2716.6f49ddb5.chunk.css.map → 2716.46fec554.chunk.css.map} +1 -1
  25. package/build/static/css/{2730.e0efe797.chunk.css → 2730.6f2af18f.chunk.css} +2 -2
  26. package/build/static/css/{2730.e0efe797.chunk.css.map → 2730.6f2af18f.chunk.css.map} +1 -1
  27. package/build/static/css/2921.c7ef7d3a.chunk.css +2 -0
  28. package/build/static/css/2921.c7ef7d3a.chunk.css.map +1 -0
  29. package/build/static/css/3333.e451f29c.chunk.css +2 -0
  30. package/build/static/css/{3333.7d0ae50b.chunk.css.map → 3333.e451f29c.chunk.css.map} +1 -1
  31. package/build/static/css/{3843.ea9110c1.chunk.css → 3843.611095e5.chunk.css} +2 -2
  32. package/build/static/css/{3843.ea9110c1.chunk.css.map → 3843.611095e5.chunk.css.map} +1 -1
  33. package/build/static/css/4666.d40200d6.chunk.css +2 -0
  34. package/build/static/css/{4666.6b5dde12.chunk.css.map → 4666.d40200d6.chunk.css.map} +1 -1
  35. package/build/static/css/5196.aefd49f4.chunk.css +2 -0
  36. package/build/static/css/{5196.29f6749e.chunk.css.map → 5196.aefd49f4.chunk.css.map} +1 -1
  37. package/build/static/css/5362.92765283.chunk.css +2 -0
  38. package/build/static/css/{5362.db0ec87d.chunk.css.map → 5362.92765283.chunk.css.map} +1 -1
  39. package/build/static/css/5600.ab1d4eee.chunk.css +2 -0
  40. package/build/static/css/{5600.bc21bda7.chunk.css.map → 5600.ab1d4eee.chunk.css.map} +1 -1
  41. package/build/static/css/5673.7089f80f.chunk.css +2 -0
  42. package/build/static/css/{5673.79f68b31.chunk.css.map → 5673.7089f80f.chunk.css.map} +1 -1
  43. package/build/static/css/5941.1c0190d9.chunk.css +2 -0
  44. package/build/static/css/5941.1c0190d9.chunk.css.map +1 -0
  45. package/build/static/css/{5996.a2ddbe9b.chunk.css → 5996.d0868cd0.chunk.css} +2 -2
  46. package/build/static/css/{5996.a2ddbe9b.chunk.css.map → 5996.d0868cd0.chunk.css.map} +1 -1
  47. package/build/static/css/7227.66d245e3.chunk.css +2 -0
  48. package/build/static/css/{7227.c8f5f467.chunk.css.map → 7227.66d245e3.chunk.css.map} +1 -1
  49. package/build/static/css/8148.d602f232.chunk.css +2 -0
  50. package/build/static/css/8148.d602f232.chunk.css.map +1 -0
  51. package/build/static/css/{8725.baf97c0e.chunk.css → 8725.62429529.chunk.css} +2 -2
  52. package/build/static/css/{8725.baf97c0e.chunk.css.map → 8725.62429529.chunk.css.map} +1 -1
  53. package/build/static/css/9053.cec89ad2.chunk.css +2 -0
  54. package/build/static/css/{9053.6a1a6919.chunk.css.map → 9053.cec89ad2.chunk.css.map} +1 -1
  55. package/build/static/css/931.402bde58.chunk.css +2 -0
  56. package/build/static/css/{931.7a220088.chunk.css.map → 931.402bde58.chunk.css.map} +1 -1
  57. package/build/static/css/9689.27826790.chunk.css +2 -0
  58. package/build/static/css/{9689.7397d527.chunk.css.map → 9689.27826790.chunk.css.map} +1 -1
  59. package/build/static/css/9911.e76960cf.chunk.css +2 -0
  60. package/build/static/css/{9911.75d3b627.chunk.css.map → 9911.e76960cf.chunk.css.map} +1 -1
  61. package/build/static/js/1153.3ffe6820.chunk.js +3 -0
  62. package/build/static/js/{1153.0d52625e.chunk.js.map → 1153.3ffe6820.chunk.js.map} +1 -1
  63. package/build/static/js/{1454.c087b2eb.chunk.js → 1454.fa2e61ce.chunk.js} +3 -3
  64. package/build/static/js/{1454.c087b2eb.chunk.js.map → 1454.fa2e61ce.chunk.js.map} +1 -1
  65. package/build/static/js/1554.9103d1ed.chunk.js +3 -0
  66. package/build/static/js/{1554.2e647156.chunk.js.map → 1554.9103d1ed.chunk.js.map} +1 -1
  67. package/build/static/js/{1664.169d6c37.chunk.js → 1664.c2d4b079.chunk.js} +2 -2
  68. package/build/static/js/{1664.169d6c37.chunk.js.map → 1664.c2d4b079.chunk.js.map} +1 -1
  69. package/build/static/js/{192.db4b6754.chunk.js → 192.44c8bd78.chunk.js} +2 -2
  70. package/build/static/js/{192.db4b6754.chunk.js.map → 192.44c8bd78.chunk.js.map} +1 -1
  71. package/build/static/js/{1922.c52450c3.chunk.js → 1922.e69b6391.chunk.js} +2 -2
  72. package/build/static/js/1922.e69b6391.chunk.js.map +1 -0
  73. package/build/static/js/1932.da6a09a3.chunk.js +2 -0
  74. package/build/static/js/{1932.a0e955f3.chunk.js.map → 1932.da6a09a3.chunk.js.map} +1 -1
  75. package/build/static/js/2503.39ffc95c.chunk.js +2 -0
  76. package/build/static/js/{2503.e9de0bb4.chunk.js.map → 2503.39ffc95c.chunk.js.map} +1 -1
  77. package/build/static/js/2517.90539021.chunk.js +2 -0
  78. package/build/static/js/{2517.bfbef0e3.chunk.js.map → 2517.90539021.chunk.js.map} +1 -1
  79. package/build/static/js/{2637.4a57844b.chunk.js → 2637.80375073.chunk.js} +2 -2
  80. package/build/static/js/2637.80375073.chunk.js.map +1 -0
  81. package/build/static/js/2716.0ff4ed71.chunk.js +3 -0
  82. package/build/static/js/{2716.303242fa.chunk.js.map → 2716.0ff4ed71.chunk.js.map} +1 -1
  83. package/build/static/js/2730.e30ca887.chunk.js +2 -0
  84. package/build/static/js/{2730.40a28c60.chunk.js.map → 2730.e30ca887.chunk.js.map} +1 -1
  85. package/build/static/js/2921.3c63e4bf.chunk.js +2 -0
  86. package/build/static/js/2921.3c63e4bf.chunk.js.map +1 -0
  87. package/build/static/js/{2950.5e36a971.chunk.js → 2950.ba94676e.chunk.js} +2 -2
  88. package/build/static/js/{2950.5e36a971.chunk.js.map → 2950.ba94676e.chunk.js.map} +1 -1
  89. package/build/static/js/3245.e987bbef.chunk.js +3 -0
  90. package/build/static/js/{3245.3eeca0e4.chunk.js.LICENSE.txt → 3245.e987bbef.chunk.js.LICENSE.txt} +3 -3
  91. package/build/static/js/3245.e987bbef.chunk.js.map +1 -0
  92. package/build/static/js/{3333.40a6c257.chunk.js → 3333.db7e928a.chunk.js} +2 -2
  93. package/build/static/js/{3333.40a6c257.chunk.js.map → 3333.db7e928a.chunk.js.map} +1 -1
  94. package/build/static/js/3805.8b4f9a3a.chunk.js +2 -0
  95. package/build/static/js/3805.8b4f9a3a.chunk.js.map +1 -0
  96. package/build/static/js/{3843.a9b49a31.chunk.js → 3843.36ccc92a.chunk.js} +2 -2
  97. package/build/static/js/{3843.a9b49a31.chunk.js.map → 3843.36ccc92a.chunk.js.map} +1 -1
  98. package/build/static/js/4168.cb27218c.chunk.js +2 -0
  99. package/build/static/js/4168.cb27218c.chunk.js.map +1 -0
  100. package/build/static/js/4666.05463332.chunk.js +2 -0
  101. package/build/static/js/{4666.d14420a6.chunk.js.map → 4666.05463332.chunk.js.map} +1 -1
  102. package/build/static/js/5196.79f43391.chunk.js +2 -0
  103. package/build/static/js/{5196.a2cba1ec.chunk.js.map → 5196.79f43391.chunk.js.map} +1 -1
  104. package/build/static/js/5362.cff3d5e8.chunk.js +3 -0
  105. package/build/static/js/{5362.5fc27935.chunk.js.map → 5362.cff3d5e8.chunk.js.map} +1 -1
  106. package/build/static/js/5600.bec6c7cf.chunk.js +2 -0
  107. package/build/static/js/{5600.85ba4bf2.chunk.js.map → 5600.bec6c7cf.chunk.js.map} +1 -1
  108. package/build/static/js/{5673.1fab0476.chunk.js → 5673.bf4ca2d8.chunk.js} +2 -2
  109. package/build/static/js/{5673.1fab0476.chunk.js.map → 5673.bf4ca2d8.chunk.js.map} +1 -1
  110. package/build/static/js/5941.4931c1a5.chunk.js +2 -0
  111. package/build/static/js/5941.4931c1a5.chunk.js.map +1 -0
  112. package/build/static/js/{5996.71e827a6.chunk.js → 5996.f894206e.chunk.js} +2 -2
  113. package/build/static/js/{5996.71e827a6.chunk.js.map → 5996.f894206e.chunk.js.map} +1 -1
  114. package/build/static/js/6213.dd73c376.chunk.js +2 -0
  115. package/build/static/js/6213.dd73c376.chunk.js.map +1 -0
  116. package/build/static/js/6499.afdde7b5.chunk.js +2 -0
  117. package/build/static/js/6499.afdde7b5.chunk.js.map +1 -0
  118. package/build/static/js/6900.7c1ed7ed.chunk.js +2 -0
  119. package/build/static/js/6900.7c1ed7ed.chunk.js.map +1 -0
  120. package/build/static/js/{7227.4db45669.chunk.js → 7227.6ee897e5.chunk.js} +3 -3
  121. package/build/static/js/{7227.4db45669.chunk.js.map → 7227.6ee897e5.chunk.js.map} +1 -1
  122. package/build/static/js/7285.58da05db.chunk.js +2 -0
  123. package/build/static/js/7285.58da05db.chunk.js.map +1 -0
  124. package/build/static/js/7777.5f0afc1a.chunk.js +2 -0
  125. package/build/static/js/{7777.55b9c954.chunk.js.map → 7777.5f0afc1a.chunk.js.map} +1 -1
  126. package/build/static/js/{8016.ffba9f87.chunk.js → 8016.c5fbb5c2.chunk.js} +2 -2
  127. package/build/static/js/{8016.ffba9f87.chunk.js.map → 8016.c5fbb5c2.chunk.js.map} +1 -1
  128. package/build/static/js/{8111.97de8531.chunk.js → 8111.769b1db8.chunk.js} +2 -2
  129. package/build/static/js/{8111.97de8531.chunk.js.map → 8111.769b1db8.chunk.js.map} +1 -1
  130. package/build/static/js/8148.c8cb3414.chunk.js +3 -0
  131. package/build/static/js/8148.c8cb3414.chunk.js.map +1 -0
  132. package/build/static/js/{8151.e9794f31.chunk.js → 8151.05b581fa.chunk.js} +2 -2
  133. package/build/static/js/{8151.e9794f31.chunk.js.map → 8151.05b581fa.chunk.js.map} +1 -1
  134. package/build/static/js/8267.b4d00822.chunk.js +2 -0
  135. package/build/static/js/{8267.a19b2789.chunk.js.map → 8267.b4d00822.chunk.js.map} +1 -1
  136. package/build/static/js/8564.8f01b47a.chunk.js +2 -0
  137. package/build/static/js/8564.8f01b47a.chunk.js.map +1 -0
  138. package/build/static/js/{8725.8c209220.chunk.js → 8725.d7295a22.chunk.js} +2 -2
  139. package/build/static/js/{8725.8c209220.chunk.js.map → 8725.d7295a22.chunk.js.map} +1 -1
  140. package/build/static/js/{9053.94b035ac.chunk.js → 9053.5c8e2f20.chunk.js} +3 -3
  141. package/build/static/js/{9053.94b035ac.chunk.js.map → 9053.5c8e2f20.chunk.js.map} +1 -1
  142. package/build/static/js/{931.75a9d316.chunk.js → 931.04a5ad55.chunk.js} +2 -2
  143. package/build/static/js/{931.75a9d316.chunk.js.map → 931.04a5ad55.chunk.js.map} +1 -1
  144. package/build/static/js/9666.6ab09d66.chunk.js +2 -0
  145. package/build/static/js/9666.6ab09d66.chunk.js.map +1 -0
  146. package/build/static/js/{9911.7aee726d.chunk.js → 9911.5b68f0f3.chunk.js} +2 -2
  147. package/build/static/js/{9911.7aee726d.chunk.js.map → 9911.5b68f0f3.chunk.js.map} +1 -1
  148. package/build/static/js/main.e37e72f0.js +2 -0
  149. package/build/static/js/main.e37e72f0.js.map +1 -0
  150. package/package.json +1 -1
  151. package/build/static/css/1151.ec1bbfc0.chunk.css +0 -2
  152. package/build/static/css/1153.bd20b743.chunk.css +0 -2
  153. package/build/static/css/1454.c0a0991e.chunk.css +0 -2
  154. package/build/static/css/1554.a585edf1.chunk.css +0 -2
  155. package/build/static/css/192.73637503.chunk.css +0 -2
  156. package/build/static/css/1932.0bf35bc9.chunk.css +0 -2
  157. package/build/static/css/2637.ae1f2887.chunk.css +0 -2
  158. package/build/static/css/2637.ae1f2887.chunk.css.map +0 -1
  159. package/build/static/css/2716.6f49ddb5.chunk.css +0 -2
  160. package/build/static/css/2921.935ed0ce.chunk.css +0 -2
  161. package/build/static/css/2921.935ed0ce.chunk.css.map +0 -1
  162. package/build/static/css/3333.7d0ae50b.chunk.css +0 -2
  163. package/build/static/css/4666.6b5dde12.chunk.css +0 -2
  164. package/build/static/css/5196.29f6749e.chunk.css +0 -2
  165. package/build/static/css/5362.db0ec87d.chunk.css +0 -2
  166. package/build/static/css/5600.bc21bda7.chunk.css +0 -2
  167. package/build/static/css/5673.79f68b31.chunk.css +0 -2
  168. package/build/static/css/5941.6743598e.chunk.css +0 -2
  169. package/build/static/css/5941.6743598e.chunk.css.map +0 -1
  170. package/build/static/css/7227.c8f5f467.chunk.css +0 -2
  171. package/build/static/css/8148.7a78b9f0.chunk.css +0 -2
  172. package/build/static/css/8148.7a78b9f0.chunk.css.map +0 -1
  173. package/build/static/css/9053.6a1a6919.chunk.css +0 -2
  174. package/build/static/css/931.7a220088.chunk.css +0 -2
  175. package/build/static/css/9689.7397d527.chunk.css +0 -2
  176. package/build/static/css/9911.75d3b627.chunk.css +0 -2
  177. package/build/static/js/1153.0d52625e.chunk.js +0 -3
  178. package/build/static/js/1554.2e647156.chunk.js +0 -3
  179. package/build/static/js/1922.c52450c3.chunk.js.map +0 -1
  180. package/build/static/js/1932.a0e955f3.chunk.js +0 -2
  181. package/build/static/js/2503.e9de0bb4.chunk.js +0 -2
  182. package/build/static/js/2517.bfbef0e3.chunk.js +0 -2
  183. package/build/static/js/2637.4a57844b.chunk.js.map +0 -1
  184. package/build/static/js/2716.303242fa.chunk.js +0 -3
  185. package/build/static/js/2730.40a28c60.chunk.js +0 -2
  186. package/build/static/js/2921.a64b88fb.chunk.js +0 -2
  187. package/build/static/js/2921.a64b88fb.chunk.js.map +0 -1
  188. package/build/static/js/3245.3eeca0e4.chunk.js +0 -3
  189. package/build/static/js/3245.3eeca0e4.chunk.js.map +0 -1
  190. package/build/static/js/3805.6149ae4b.chunk.js +0 -2
  191. package/build/static/js/3805.6149ae4b.chunk.js.map +0 -1
  192. package/build/static/js/4168.bc1cc45c.chunk.js +0 -2
  193. package/build/static/js/4168.bc1cc45c.chunk.js.map +0 -1
  194. package/build/static/js/4666.d14420a6.chunk.js +0 -2
  195. package/build/static/js/5196.a2cba1ec.chunk.js +0 -2
  196. package/build/static/js/5362.5fc27935.chunk.js +0 -3
  197. package/build/static/js/5600.85ba4bf2.chunk.js +0 -2
  198. package/build/static/js/5941.178c2afc.chunk.js +0 -2
  199. package/build/static/js/5941.178c2afc.chunk.js.map +0 -1
  200. package/build/static/js/6213.8d51d652.chunk.js +0 -2
  201. package/build/static/js/6213.8d51d652.chunk.js.map +0 -1
  202. package/build/static/js/6499.3dcf0f88.chunk.js +0 -2
  203. package/build/static/js/6499.3dcf0f88.chunk.js.map +0 -1
  204. package/build/static/js/6900.67ca7456.chunk.js +0 -2
  205. package/build/static/js/6900.67ca7456.chunk.js.map +0 -1
  206. package/build/static/js/7285.e023f277.chunk.js +0 -2
  207. package/build/static/js/7285.e023f277.chunk.js.map +0 -1
  208. package/build/static/js/7777.55b9c954.chunk.js +0 -2
  209. package/build/static/js/8148.71868223.chunk.js +0 -3
  210. package/build/static/js/8148.71868223.chunk.js.map +0 -1
  211. package/build/static/js/8267.a19b2789.chunk.js +0 -2
  212. package/build/static/js/8564.c755faf3.chunk.js +0 -2
  213. package/build/static/js/8564.c755faf3.chunk.js.map +0 -1
  214. package/build/static/js/9666.7b24426a.chunk.js +0 -2
  215. package/build/static/js/9666.7b24426a.chunk.js.map +0 -1
  216. package/build/static/js/main.d3a20250.js +0 -2
  217. package/build/static/js/main.d3a20250.js.map +0 -1
  218. /package/build/static/js/{1153.0d52625e.chunk.js.LICENSE.txt → 1153.3ffe6820.chunk.js.LICENSE.txt} +0 -0
  219. /package/build/static/js/{1454.c087b2eb.chunk.js.LICENSE.txt → 1454.fa2e61ce.chunk.js.LICENSE.txt} +0 -0
  220. /package/build/static/js/{1554.2e647156.chunk.js.LICENSE.txt → 1554.9103d1ed.chunk.js.LICENSE.txt} +0 -0
  221. /package/build/static/js/{2716.303242fa.chunk.js.LICENSE.txt → 2716.0ff4ed71.chunk.js.LICENSE.txt} +0 -0
  222. /package/build/static/js/{5362.5fc27935.chunk.js.LICENSE.txt → 5362.cff3d5e8.chunk.js.LICENSE.txt} +0 -0
  223. /package/build/static/js/{7227.4db45669.chunk.js.LICENSE.txt → 7227.6ee897e5.chunk.js.LICENSE.txt} +0 -0
  224. /package/build/static/js/{8148.71868223.chunk.js.LICENSE.txt → 8148.c8cb3414.chunk.js.LICENSE.txt} +0 -0
  225. /package/build/static/js/{9053.94b035ac.chunk.js.LICENSE.txt → 9053.5c8e2f20.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([[3333,1151,9034],{10419:(e,t,s)=>{s.r(t),s.d(t,{HtmlPreview:()=>f,ImagePreview:()=>L,OSSFilePreview:()=>C,OfficePreview:()=>g,PdfPreview:()=>S,TextPreview:()=>b,UnknownPreview:()=>F,default:()=>R});var r=s(63114),a=s.n(r),n=s(73884),c=s(13050),o=s(83136),l=s.n(o);const i="style_container__9Fu-3__hcBlJ",d="style_loading__r3aiE__hcBlJ",m="style_text-outer__TzhuG__hcBlJ",u="style_error__wSaxt__hcBlJ";var h=s(87558),p=s(70579);const x=(0,h.createWithFetch)({transformResponse:e=>{let{data:t}=e;return{data:{code:200,results:t}}}})((e=>{let{data:t}=e;const s=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const e=(new DOMParser).parseFromString(t,"text/html");e.querySelectorAll("script").forEach((e=>{e.parentElement.removeChild(e)}));const r=(0,c.getPublicPath)("components-core")+"/iframeResizer.contentWindow.js",a=document.createElement("script");a.src=r,e.head.appendChild(a);const n=document.createElement("style");n.innerText="html,body{height:auto!important;}body{pointer-events: none;background: #FFFFFF;}",e.head.appendChild(n),s.current.srcdoc=e.documentElement.outerHTML}),[t]),(0,n.useEffect)((()=>{a().iframeResize({checkOrigin:!1},s.current)}),[]),(0,p.jsx)("iframe",{title:"\u7b80\u5386\u9884\u89c8",frameBorder:"0",width:"100%",ref:s})})),f=e=>{let{className:t,url:s,maxWidth:r}=e;return(0,p.jsx)("div",{className:l()(t,i),style:{maxWidth:r},children:(0,p.jsx)(x,{url:s})})};var j=s(76329);const v=(0,h.createWithFetch)({cache:"office-preview"})((e=>{let{data:t,className:s,...r}=e;const{data:a}=t;return a.map((e=>{let{url:t}=e;const a=T(t);return(0,n.createElement)(a,{...r,url:t,key:t,className:s})}))})),g=e=>{let{id:t,apis:s,className:r,...a}=e;const{apis:n}=(0,j.usePreset)(),c=Object.assign({},n,s);return(0,p.jsx)(v,{...a,...c.previewOffice,data:{id:t},className:r})};var _=s(55199),N=s(39165),w=(s(71975),s(18267));const P=(0,n.memo)((e=>{let{url:t,maxWidth:s,scale:r,rotate:a,className:o}=e;const[m,u]=(0,n.useState)(0);N.pdfjs.GlobalWorkerOptions.workerSrc=(0,c.getPublicPath)("components-core")+"/pdfjs/build/pdf.worker.js";const[h,x]=(0,n.useState)(s),f=(0,w.useResize)((()=>{f.current.clientWidth&&x(Math.min(f.current.clientWidth,s))}));return(0,p.jsx)("div",{ref:f,className:l()(o,i),style:{maxWidth:s},children:(0,p.jsx)(N.Document,{file:{url:t},options:{standardFontDataUrl:(0,c.getPublicPath)("components-core")+"/pdfjs/standard_fonts/",cMapUrl:(0,c.getPublicPath)("components-core")+"/pdfjs/cmaps/",cMapPacked:!0},error:"PDF\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25",loading:(0,p.jsx)("div",{className:d,children:(0,p.jsx)(_.Spin,{})}),noData:"\u672a\u6307\u5b9aPDF\u6587\u4ef6",onLoadSuccess:e=>{let{numPages:t}=e;u(t),console.log("onLoadSuccess")},onLoadError:e=>{console.log("onLoadError",e)},onSourceError:e=>{console.log("onSourceError",e)},children:(0,p.jsx)(_.Space,{direction:"vertical",children:m>=1&&Array.from(new Array(m),((e,t)=>(0,p.jsx)(N.Page,{className:"preview-item",scale:r/100,rotate:a,pageNumber:t+1,width:h,loading:null,renderAnnotationLayer:!1,renderTextLayer:!0,noData:"\u672a\u6307\u5b9a\u9875\u9762"},"page_".concat(t))))})})})}));P.defaultProps={autoSize:!0,renderTextLayer:!1,scale:100,rotate:0,maxWidth:1200};const S=P;var y=s(91409),E=s.n(y),W=s(89946),k=s.n(W);const b=e=>{let{url:t,className:s,maxWidth:r}=e;const[a,c]=(0,n.useState)(""),[o,h]=(0,n.useState)(!0),[x,f]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{k().get(t).then((e=>{let{data:t}=e;c(t),h(!1)}),(()=>{h(!1),f(!0)}))}),[t]),(0,p.jsxs)("div",{className:l()(s,i),style:{maxWidth:r},children:[o?(0,p.jsx)("div",{className:d,children:(0,p.jsx)(_.Spin,{})}):null,(0,p.jsx)("div",{className:m,children:x?(0,p.jsx)("div",{className:u,children:"\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25"}):(0,p.jsx)(E(),{text:a})})]})},F=e=>{let{maxWidth:t}=e;return(0,p.jsx)("div",{className:i,style:{maxWidth:t},children:(0,p.jsx)("div",{className:m,children:(0,p.jsx)(_.Result,{status:"500",title:"\u4e0d\u652f\u6301\u7684\u6587\u4ef6\u7c7b\u578b",subTitle:"\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u6587\u4ef6\u7c7b\u578b\u9884\u89c8\uff0c\u8bf7\u4e0b\u8f7d\u5230\u672c\u5730\u540e\u8fdb\u884c\u9884\u89c8"})})})},L=e=>{let{url:t,scale:s,rotate:r,className:a,maxWidth:c}=e;const[o,m]=(0,n.useState)(!0),[h,x]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const e=new Image;e.src=t;const s=()=>{m(!1)},r=()=>{m(!1),x(!0)};return e.addEventListener("load",s),e.addEventListener("error",r),()=>{e.removeEventListener("load",s),e.removeEventListener("error",r)}}),[t,s,r]),(0,p.jsxs)("div",{className:l()(a,i),style:{maxWidth:c},children:[o?(0,p.jsx)("div",{className:d,children:(0,p.jsx)(_.Spin,{})}):null,h?(0,p.jsx)("div",{className:u,children:"\u56fe\u7247\u52a0\u8f7d\u5931\u8d25"}):(0,p.jsx)("img",{src:t,alt:"\u7b80\u5386\u9884\u89c8"})]})},D=e=>{const t=(e||"").split("?")[0].toLowerCase();return/.txt$/.test(t)?"txt":/.pdf$/.test(t)?"pdf":/.(png|jpg|jpeg)$/.test(t)?"image":/.(html|htm)$/.test(t)?"html":/.(doc|docx|xls|xlsx|ppt|pptx)$/.test(t)?"office":"unknown"},O=D,T=e=>({txt:b,pdf:S,image:L,html:f,office:g,unknown:F}[D(e)]);const C=(0,s(97211).A)((e=>{let{data:t,id:s,className:r,...a}=e;const n=T(t);return"office"===O(t)?(0,p.jsx)(g,{...a,id:s,className:r}):(0,p.jsx)(n,{...a,className:r,url:t})})),R=e=>{let{id:t,originName:s,...r}=e;return"office"===O(s)?(0,p.jsx)(g,{...r,id:t,originName:s}):(0,p.jsx)(C,{...r,id:t,originName:s})}},71975:()=>{}}]);
2
- //# sourceMappingURL=3333.40a6c257.chunk.js.map
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3333,1151,9034],{10419:(e,t,s)=>{s.r(t),s.d(t,{HtmlPreview:()=>f,ImagePreview:()=>L,OSSFilePreview:()=>O,OfficePreview:()=>g,PdfPreview:()=>S,TextPreview:()=>b,UnknownPreview:()=>F,default:()=>T});var r=s(63114),a=s.n(r),n=s(73884),c=s(13050),o=s(83136),l=s.n(o);const i="style_container__9Fu-3__Mq2HC",d="style_loading__r3aiE__Mq2HC",m="style_text-outer__TzhuG__Mq2HC",u="style_error__wSaxt__Mq2HC";var h=s(87558),p=s(70579);const x=(0,h.createWithFetch)({transformResponse:e=>{let{data:t}=e;return{data:{code:200,results:t}}}})((e=>{let{data:t}=e;const s=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const e=(new DOMParser).parseFromString(t,"text/html");e.querySelectorAll("script").forEach((e=>{e.parentElement.removeChild(e)}));const r=(0,c.getPublicPath)("components-core")+"/iframeResizer.contentWindow.js",a=document.createElement("script");a.src=r,e.head.appendChild(a);const n=document.createElement("style");n.innerText="html,body{height:auto!important;}body{pointer-events: none;background: #FFFFFF;}",e.head.appendChild(n),s.current.srcdoc=e.documentElement.outerHTML}),[t]),(0,n.useEffect)((()=>{a().iframeResize({checkOrigin:!1},s.current)}),[]),(0,p.jsx)("iframe",{title:"\u7b80\u5386\u9884\u89c8",frameBorder:"0",width:"100%",ref:s})})),f=e=>{let{className:t,url:s,maxWidth:r}=e;return(0,p.jsx)("div",{className:l()(t,i),style:{maxWidth:r},children:(0,p.jsx)(x,{url:s})})};var j=s(76329);const v=(0,h.createWithFetch)({cache:"office-preview"})((e=>{let{data:t,className:s,...r}=e;const{data:a}=t;return a.map((e=>{let{url:t}=e;const a=D(t);return(0,n.createElement)(a,{...r,url:t,key:t,className:s})}))})),g=e=>{let{id:t,apis:s,className:r,...a}=e;const{apis:n}=(0,j.usePreset)(),c=Object.assign({},n,s);return(0,p.jsx)(v,{...a,...c.previewOffice,data:{id:t},className:r})};var _=s(55199),N=s(39165),w=(s(71975),s(18267));const P=(0,n.memo)((e=>{let{url:t,maxWidth:s,scale:r,rotate:a,className:o}=e;const[m,u]=(0,n.useState)(0);N.pdfjs.GlobalWorkerOptions.workerSrc=(0,c.getPublicPath)("components-core")+"/pdfjs/build/pdf.worker.js";const[h,x]=(0,n.useState)(s),f=(0,w.useResize)((()=>{f.current.clientWidth&&x(Math.min(f.current.clientWidth,s))}));return(0,p.jsx)("div",{ref:f,className:l()(o,i),style:{maxWidth:s},children:(0,p.jsx)(N.Document,{file:{url:t},options:{standardFontDataUrl:(0,c.getPublicPath)("components-core")+"/pdfjs/standard_fonts/",cMapUrl:(0,c.getPublicPath)("components-core")+"/pdfjs/cmaps/",cMapPacked:!0},error:"PDF\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25",loading:(0,p.jsx)("div",{className:d,children:(0,p.jsx)(_.Spin,{})}),noData:"\u672a\u6307\u5b9aPDF\u6587\u4ef6",onLoadSuccess:e=>{let{numPages:t}=e;u(t),console.log("onLoadSuccess")},onLoadError:e=>{console.log("onLoadError",e)},onSourceError:e=>{console.log("onSourceError",e)},children:(0,p.jsx)(_.Space,{direction:"vertical",children:m>=1&&Array.from(new Array(m),((e,t)=>(0,p.jsx)(N.Page,{className:"preview-item",scale:r/100,rotate:a,pageNumber:t+1,width:h,loading:null,renderAnnotationLayer:!1,renderTextLayer:!0,noData:"\u672a\u6307\u5b9a\u9875\u9762"},"page_".concat(t))))})})})}));P.defaultProps={autoSize:!0,renderTextLayer:!1,scale:100,rotate:0,maxWidth:1200};const S=P;var y=s(91409),E=s.n(y),W=s(89946),k=s.n(W);const b=e=>{let{url:t,className:s,maxWidth:r}=e;const[a,c]=(0,n.useState)(""),[o,h]=(0,n.useState)(!0),[x,f]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{k().get(t).then((e=>{let{data:t}=e;c(t),h(!1)}),(()=>{h(!1),f(!0)}))}),[t]),(0,p.jsxs)("div",{className:l()(s,i),style:{maxWidth:r},children:[o?(0,p.jsx)("div",{className:d,children:(0,p.jsx)(_.Spin,{})}):null,(0,p.jsx)("div",{className:m,children:x?(0,p.jsx)("div",{className:u,children:"\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25"}):(0,p.jsx)(E(),{text:a})})]})},F=e=>{let{maxWidth:t}=e;return(0,p.jsx)("div",{className:i,style:{maxWidth:t},children:(0,p.jsx)("div",{className:m,children:(0,p.jsx)(_.Result,{status:"500",title:"\u4e0d\u652f\u6301\u7684\u6587\u4ef6\u7c7b\u578b",subTitle:"\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u6587\u4ef6\u7c7b\u578b\u9884\u89c8\uff0c\u8bf7\u4e0b\u8f7d\u5230\u672c\u5730\u540e\u8fdb\u884c\u9884\u89c8"})})})},L=e=>{let{url:t,scale:s,rotate:r,className:a,maxWidth:c}=e;const[o,m]=(0,n.useState)(!0),[h,x]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const e=new Image;e.src=t;const s=()=>{m(!1)},r=()=>{m(!1),x(!0)};return e.addEventListener("load",s),e.addEventListener("error",r),()=>{e.removeEventListener("load",s),e.removeEventListener("error",r)}}),[t,s,r]),(0,p.jsxs)("div",{className:l()(a,i),style:{maxWidth:c},children:[o?(0,p.jsx)("div",{className:d,children:(0,p.jsx)(_.Spin,{})}):null,h?(0,p.jsx)("div",{className:u,children:"\u56fe\u7247\u52a0\u8f7d\u5931\u8d25"}):(0,p.jsx)("img",{src:t,alt:"\u7b80\u5386\u9884\u89c8"})]})},C=e=>{const t=(e||"").split("?")[0].toLowerCase();return/.txt$/.test(t)?"txt":/.pdf$/.test(t)?"pdf":/.(png|jpg|jpeg)$/.test(t)?"image":/.(html|htm)$/.test(t)?"html":/.(doc|docx|xls|xlsx|ppt|pptx)$/.test(t)?"office":"unknown"},M=C,D=e=>({txt:b,pdf:S,image:L,html:f,office:g,unknown:F}[C(e)]);const O=(0,s(97211).A)((e=>{let{data:t,id:s,className:r,...a}=e;const n=D(t);return"office"===M(t)?(0,p.jsx)(g,{...a,id:s,className:r}):(0,p.jsx)(n,{...a,className:r,url:t})})),T=e=>{let{id:t,originName:s,...r}=e;return"office"===M(s)?(0,p.jsx)(g,{...r,id:t,originName:s}):(0,p.jsx)(O,{...r,id:t,originName:s})}},71975:()=>{}}]);
2
+ //# sourceMappingURL=3333.db7e928a.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/3333.40a6c257.chunk.js","mappings":"mYACA,QAA4B,gCAA5B,EAA0K,8BAA1K,EAAie,iCAAje,EAA0gB,4B,0BCM1gB,MAAMA,GAAmBC,EAAAA,EAAAA,iBAAgB,CACvCC,kBAAmBC,IAAe,IAAd,KAAEC,GAAMD,EAC1B,MAAO,CACLC,KAAM,CACJC,KAAM,IACNC,QAASF,GAEZ,GAPoBH,EAStBM,IAAe,IAAd,KAAEH,GAAMG,EACV,MAAMC,GAAMC,EAAAA,EAAAA,QAAO,MAqBnB,OApBAC,EAAAA,EAAAA,YAAU,KACR,MACMC,GADS,IAAIC,WACQC,gBAAgBT,EAAM,aACjDO,EAAYG,iBAAiB,UAAUC,SAASC,IAC9CA,EAAGC,cAAcC,YAAYF,EAAG,IAElC,MAAMG,GACJC,EAAAA,EAAAA,eAAc,mBAAqB,kCAC/BC,EAASC,SAASC,cAAc,UACtCF,EAAOG,IAAML,EACbR,EAAYc,KAAKC,YAAYL,GAC7B,MAAMM,EAAQL,SAASC,cAAc,SACrCI,EAAMC,UACJ,mFACFjB,EAAYc,KAAKC,YAAYC,GAC7BnB,EAAIqB,QAAQC,OAASnB,EAAYoB,gBAAgBC,SAAS,GACzD,CAAC5B,KACJM,EAAAA,EAAAA,YAAU,KACRuB,IAAAA,aAA0B,CAAE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sH,EAAWtH,IACN+B,EAAAA,EAAAA,KAACmG,EAAa,IAAKvF,EAAOO,GAAIA,EAAId,UAAWA,KAE/CL,EAAAA,EAAAA,KAACe,EAAgB,IAAKH,EAAOP,UAAWA,EAAWC,IAAKrC,GAAQ,ICEzE,EAPoBD,IAAmC,IAAlC,GAAEmD,EAAE,WAAEoF,KAAe3F,GAAO5C,EAC/C,MAA+B,WAA3BuH,EAAWgB,IACNvG,EAAAA,EAAAA,KAACmG,EAAa,IAAKvF,EAAOO,GAAIA,EAAIoF,WAAYA,KAEhDvG,EAAAA,EAAAA,KAACwG,EAAc,IAAK5F,EAAOO,GAAIA,EAAIoF,WAAYA,GAAc,C","sources":["webpack://@kne-components/components-core/./src/components/FilePreview/style.module.scss?a805","components/FilePreview/HtmlPreview.js","components/FilePreview/OfficePreview.js","components/FilePreview/PdfPreview.js","components/FilePreview/TextPreview.js","components/FilePreview/UnknownPreview.js","components/FilePreview/ImagePreview.js","components/FilePreview/typeFormat.js","components/FilePreview/OSSFilePreview.js","components/FilePreview/FilePreview.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style_container__9Fu-3__hcBlJ\",\"container-html\":\"style_container-html__IsNVq__hcBlJ\",\"html-inner\":\"style_html-inner__S05cI__hcBlJ\",\"loading\":\"style_loading__r3aiE__hcBlJ\",\"control-bar\":\"style_control-bar__kTKau__hcBlJ\",\"scroller\":\"style_scroller__HOq7b__hcBlJ\",\"outer\":\"style_outer__ntu--__hcBlJ\",\"file-name\":\"style_file-name__UPbbe__hcBlJ\",\"file-options\":\"style_file-options__5TE5l__hcBlJ\",\"scale-input\":\"style_scale-input__JdF1K__hcBlJ\",\"text-outer\":\"style_text-outer__TzhuG__hcBlJ\",\"error\":\"style_error__wSaxt__hcBlJ\",\"text-inner\":\"style_text-inner__jdi-A__hcBlJ\",\"image-inner\":\"style_image-inner__zTiFU__hcBlJ\"};","import iFrameResize from \"iframe-resizer\";\nimport { useEffect, useRef } from \"react\";\nimport { getPublicPath } from \"@kne/remote-loader\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport { createWithFetch } from \"@kne/react-fetch\";\n\nconst HtmlInnerPreview = createWithFetch({\n transformResponse: ({ data }) => {\n return {\n data: {\n code: 200,\n results: data,\n },\n };\n },\n})(({ data }) => {\n const ref = useRef(null);\n useEffect(() => {\n const parser = new DOMParser();\n const domDocument = parser.parseFromString(data, \"text/html\");\n domDocument.querySelectorAll(\"script\").forEach((el) => {\n el.parentElement.removeChild(el);\n });\n const scriptPath =\n getPublicPath(\"components-core\") + \"/iframeResizer.contentWindow.js\";\n const script = document.createElement(\"script\");\n script.src = scriptPath;\n domDocument.head.appendChild(script);\n const style = document.createElement(\"style\");\n style.innerText =\n \"html,body{height:auto!important;}body{pointer-events: none;background: #FFFFFF;}\";\n domDocument.head.appendChild(style);\n ref.current.srcdoc = domDocument.documentElement.outerHTML;\n }, [data]);\n useEffect(() => {\n iFrameResize.iframeResize({ checkOrigin: false }, ref.current);\n }, []);\n return <iframe title=\"简历预览\" frameBorder=\"0\" width=\"100%\" ref={ref} />;\n});\n\nconst HtmlPreview = ({ className, url, maxWidth }) => {\n return (\n <div\n className={classnames(className, style[\"container\"])}\n style={{\n maxWidth,\n }}\n >\n <HtmlInnerPreview url={url} />\n {/*<iframe\n title=\"简历预览\"\n src={url}\n frameBorder=\"0\"\n width=\"100%\"\n ref={ref}\n onLoad={() => {\n const scriptPath =\n getPublicPath(\"components-core\") +\n \"/iframeResizer.contentWindow.js\";\n if (!ref.current.contentDocument) {\n console.warn(\n `跨域情况无法开启自动高度计算,请将${scriptPath}脚本加入目标页面`\n );\n return;\n }\n const script = document.createElement(\"script\");\n script.src = scriptPath;\n ref.current.contentDocument.head.appendChild(script);\n ref.current.contentDocument.body.style = \"pointer-events: none;\";\n }}\n />*/}\n </div>\n );\n};\n\nexport default HtmlPreview;\n","import { usePreset } from \"@components/Global\";\nimport { createWithFetch } from \"@kne/react-fetch\";\nimport { typeFormatComponent } from \"./typeFormat\";\n\nconst OfficePreviewInner = createWithFetch({\n cache: \"office-preview\",\n})(({ data, className, ...props }) => {\n const { data: fileList } = data;\n return fileList.map(({ url }) => {\n const PreviewComponent = typeFormatComponent(url);\n return (\n <PreviewComponent {...props} url={url} key={url} className={className} />\n );\n });\n});\n\nconst OfficePreview = ({ id, apis: propsApis, className, ...props }) => {\n const { apis: baseApis } = usePreset();\n const apis = Object.assign({}, baseApis, propsApis);\n return (\n <OfficePreviewInner\n {...props}\n {...apis.previewOffice}\n data={{ id }}\n className={className}\n />\n );\n};\n\nexport default OfficePreview;\n","import { memo, useState } from \"react\";\nimport { Space, Spin } from \"antd\";\nimport { Document, Page, pdfjs } from \"react-pdf\";\nimport \"react-pdf/dist/esm/Page/TextLayer.css\";\nimport style from \"./style.module.scss\";\nimport { useResize } from \"@components/Common\";\nimport { getPublicPath } from \"@kne/remote-loader\";\nimport classnames from \"classnames\";\n\nconst PdfPreview = memo(({ url, maxWidth, scale, rotate, className }) => {\n const [numPages, setNumPages] = useState(0);\n pdfjs.GlobalWorkerOptions.workerSrc =\n getPublicPath(\"components-core\") + \"/pdfjs/build/pdf.worker.js\";\n const [width, setWidth] = useState(maxWidth);\n const ref = useResize(() => {\n if (ref.current.clientWidth) {\n setWidth(Math.min(ref.current.clientWidth, maxWidth));\n }\n });\n\n return (\n <div\n ref={ref}\n className={classnames(className, style[\"container\"])}\n style={{\n maxWidth: maxWidth,\n }}\n >\n <Document\n file={{ url }}\n options={{\n standardFontDataUrl:\n getPublicPath(\"components-core\") + \"/pdfjs/standard_fonts/\",\n cMapUrl: getPublicPath(\"components-core\") + \"/pdfjs/cmaps/\",\n cMapPacked: true,\n }}\n error=\"PDF文件加载失败\"\n loading={\n <div className={style[\"loading\"]}>\n <Spin />\n </div>\n }\n noData=\"未指定PDF文件\"\n onLoadSuccess={({ numPages }) => {\n setNumPages(numPages);\n console.log(\"onLoadSuccess\");\n }}\n onLoadError={(props) => {\n console.log(\"onLoadError\", props);\n }}\n onSourceError={(props) => {\n console.log(\"onSourceError\", props);\n }}\n >\n <Space direction=\"vertical\">\n {numPages >= 1 &&\n Array.from(new Array(numPages), (el, index) => (\n <Page\n key={`page_${index}`}\n className=\"preview-item\"\n scale={scale / 100}\n rotate={rotate}\n pageNumber={index + 1}\n width={width}\n loading={null}\n renderAnnotationLayer={false}\n renderTextLayer={true}\n noData=\"未指定页面\"\n />\n ))}\n </Space>\n </Document>\n </div>\n );\n});\n\nPdfPreview.defaultProps = {\n autoSize: true,\n renderTextLayer: false,\n scale: 100,\n rotate: 0,\n maxWidth: 1200,\n};\n\nexport default PdfPreview;\n","import { useState, useEffect } from \"react\";\nimport TextEscape from \"@kne/react-text-escape\";\nimport axios from \"axios\";\nimport style from \"./style.module.scss\";\nimport { Spin } from \"antd\";\nimport classnames from \"classnames\";\n\nconst TextPreview = ({ url, className, maxWidth }) => {\n const [text, setText] = useState(\"\");\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(false);\n useEffect(() => {\n axios.get(url).then(\n ({ data }) => {\n setText(data);\n setLoading(false);\n },\n () => {\n setLoading(false);\n setError(true);\n }\n );\n }, [url]);\n\n return (\n <div\n className={classnames(className, style[\"container\"])}\n style={{\n maxWidth,\n }}\n >\n {loading ? (\n <div className={style[\"loading\"]}>\n <Spin />\n </div>\n ) : null}\n <div className={style[\"text-outer\"]}>\n {error ? (\n <div className={style[\"error\"]}>文件加载失败</div>\n ) : (\n <TextEscape text={text} />\n )}\n </div>\n </div>\n );\n};\n\nexport default TextPreview;\n","import { Result } from \"antd\";\nimport style from \"./style.module.scss\";\n\nconst UnknownPreview = ({ maxWidth }) => {\n return (\n <div\n className={style[\"container\"]}\n style={{\n maxWidth,\n }}\n >\n <div className={style[\"text-outer\"]}>\n <Result\n status=\"500\"\n title=\"不支持的文件类型\"\n subTitle=\"系统不支持该文件类型预览,请下载到本地后进行预览\"\n />\n </div>\n </div>\n );\n};\n\nexport default UnknownPreview;\n","import { useEffect, useState } from \"react\";\nimport style from \"./style.module.scss\";\nimport { Spin } from \"antd\";\nimport classnames from \"classnames\";\n\nconst ImagePreview = ({ url, scale, rotate, className, maxWidth }) => {\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(false);\n useEffect(() => {\n const image = new Image();\n image.src = url;\n const handlerLoad = () => {\n setLoading(false);\n };\n\n const handlerError = () => {\n setLoading(false);\n setError(true);\n };\n\n image.addEventListener(\"load\", handlerLoad);\n image.addEventListener(\"error\", handlerError);\n return () => {\n image.removeEventListener(\"load\", handlerLoad);\n image.removeEventListener(\"error\", handlerError);\n };\n }, [url, scale, rotate]);\n return (\n <div\n className={classnames(className, style[\"container\"])}\n style={{\n maxWidth,\n }}\n >\n {loading ? (\n <div className={style[\"loading\"]}>\n <Spin />\n </div>\n ) : null}\n {error ? (\n <div className={style[\"error\"]}>图片加载失败</div>\n ) : (\n <img src={url} alt=\"简历预览\" />\n )}\n </div>\n );\n};\n\nexport default ImagePreview;\n","import HtmlPreview from \"./HtmlPreview\";\nimport OfficePreview from \"./OfficePreview\";\nimport PdfPreview from \"./PdfPreview\";\nimport TextPreview from \"./TextPreview\";\nimport UnknownPreview from \"./UnknownPreview\";\nimport ImagePreview from \"./ImagePreview\";\n\nconst typeFormat = (url) => {\n const path = (url || \"\").split(\"?\")[0];\n const _path = path.toLowerCase();\n if (/.txt$/.test(_path)) {\n return \"txt\";\n }\n if (/.pdf$/.test(_path)) {\n return \"pdf\";\n }\n if (/.(png|jpg|jpeg)$/.test(_path)) {\n return \"image\";\n }\n if (/.(html|htm)$/.test(_path)) {\n return \"html\";\n }\n if (/.(doc|docx|xls|xlsx|ppt|pptx)$/.test(_path)) {\n return \"office\";\n }\n return \"unknown\";\n};\n\nexport default typeFormat;\n\nexport const typeFormatComponent = (url) => {\n const mapping = {\n txt: TextPreview,\n pdf: PdfPreview,\n image: ImagePreview,\n html: HtmlPreview,\n office: OfficePreview,\n unknown: UnknownPreview,\n };\n\n return mapping[typeFormat(url)];\n};\n","import withOSSFile from \"@common/hocs/withOSSFile\";\nimport typeFormat, { typeFormatComponent } from \"./typeFormat\";\nimport OfficePreview from \"./OfficePreview\";\n\nconst OSSFilePreview = withOSSFile(({ data, id, className, ...props }) => {\n const PreviewComponent = typeFormatComponent(data);\n if (typeFormat(data) === \"office\") {\n return <OfficePreview {...props} id={id} className={className} />;\n }\n return <PreviewComponent {...props} className={className} url={data} />;\n});\n\nexport default OSSFilePreview;\n","import typeFormat from \"./typeFormat\";\nimport OfficePreview from \"./OfficePreview\";\nimport OSSFilePreview from \"./OSSFilePreview\";\n\nconst FilePreview = ({ id, originName, ...props }) => {\n if (typeFormat(originName) === \"office\") {\n return <OfficePreview {...props} id={id} originName={originName} />;\n }\n return <OSSFilePreview {...props} id={id} originName={originName} />;\n};\n\nexport default FilePreview;\n"],"names":["HtmlInnerPreview","createWithFetch","transformResponse","_ref","data","code","results","_ref2","ref","useRef","useEffect","domDocument","DOMParser","parseFromString","querySelectorAll","forEach","el","parentElement","removeChild","scriptPath","getPublicPath","script","document","createElement","src","head","appendChild","style","innerText","current","srcdoc","documentElement","outerHTML","iFrameResize","checkOrigin","_jsx","title","frameBorder","width","_ref3","className","url","maxWidth","classnames","children","OfficePreviewInner","cache","props","fileList","map","PreviewComponent","typeFormatComponent","_createElement","key","id","apis","propsApis","baseApis","usePreset","Object","assign","previewOffice","PdfPreview","memo","scale","rotate","numPages","setNumPages","useState","pdfjs","GlobalWorkerOptions","workerSrc","setWidth","useResize","clientWidth","Math","min","Document","file","options","standardFontDataUrl","cMapUrl","cMapPacked","error","loading","Spin","noData","onLoadSuccess","console","log","onLoadError","onSourceError","Space","direction","Array","from","index","Page","pageNumber","renderAnnotationLayer","renderTextLayer","concat","defaultProps","autoSize","text","setText","setLoading","setError","axios","then","_jsxs","TextEscape","Result","status","subTitle","image","Image","handlerLoad","handlerError","addEventListener","removeEventListener","alt","typeFormat","_path","split","toLowerCase","test","txt","TextPreview","pdf","ImagePreview","html","HtmlPreview","office","OfficePreview","unknown","UnknownPreview","withOSSFile","originName","OSSFilePreview"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/3333.db7e928a.chunk.js","mappings":"mYACA,QAA4B,gCAA5B,EAA0K,8BAA1K,EAAie,iCAAje,EAA0gB,4B,0BCM1gB,MAAMA,GAAmBC,EAAAA,EAAAA,iBAAgB,CACvCC,kBAAmBC,IAAe,IAAd,KAAEC,GAAMD,EAC1B,MAAO,CACLC,KAAM,CACJC,KAAM,IACNC,QAASF,GAEZ,GAPoBH,EAStBM,IAAe,IAAd,KAAEH,GAAMG,EACV,MAAMC,GAAMC,EAAAA,EAAAA,QAAO,MAqBnB,OApBAC,EAAAA,EAAAA,YAAU,KACR,MACMC,GADS,IAAIC,WACQC,gBAAgBT,EAAM,aACjDO,EAAYG,iBAAiB,UAAUC,SAASC,IAC9CA,EAAGC,cAAcC,YAAYF,EAAG,IAElC,MAAMG,GACJC,EAAAA,EAAAA,eAAc,mBAAqB,kCAC/BC,EAASC,SAASC,cAAc,UACtCF,EAAOG,IAAML,EACbR,EAAYc,KAAKC,YAAYL,GAC7B,MAAMM,EAAQL,SAASC,cAAc,SACrCI,EAAMC,UACJ,mFACFjB,EAAYc,KAAKC,YAAYC,GAC7BnB,EAAIqB,QAAQC,OAASnB,EAAYoB,gBAAgBC,SAAS,GACzD,CAAC5B,KACJM,EAAAA,EAAAA,YAAU,KACRuB,IAAAA,aAA0B,CAAEC,aAAa,GAAS1B,EAAIqB,QAAQ,GAC7D,KACIM,EAAAA,EAAAA,KAAA,UAAQC,MAAM,2BAAOC,YAAY,IAAIC,MAAM,OAAO9B,IAAKA,GAAO,IAsCvE,EAnCoB+B,IAAmC,IAAlC,UAAEC,EAAS,IAAEC,EAAG,SAAEC,GAAUH,EAC/C,OACEJ,EAAAA,EAAAA,KAAA,OACEK,UAAWG,IAAWH,EAAWb,GACjCA,MAAO,CACLe,YACAE,UAEFT,EAAAA,EAAAA,KAACnC,EAAgB,CAACyC,IAAKA,KAuBnB,E,eCpEV,MAA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KAACwG,EAAc,IAAK5F,EAAOO,GAAIA,EAAIoF,WAAYA,GAAc,C","sources":["webpack://@kne-components/components-core/./src/components/FilePreview/style.module.scss?a805","components/FilePreview/HtmlPreview.js","components/FilePreview/OfficePreview.js","components/FilePreview/PdfPreview.js","components/FilePreview/TextPreview.js","components/FilePreview/UnknownPreview.js","components/FilePreview/ImagePreview.js","components/FilePreview/typeFormat.js","components/FilePreview/OSSFilePreview.js","components/FilePreview/FilePreview.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style_container__9Fu-3__Mq2HC\",\"container-html\":\"style_container-html__IsNVq__Mq2HC\",\"html-inner\":\"style_html-inner__S05cI__Mq2HC\",\"loading\":\"style_loading__r3aiE__Mq2HC\",\"control-bar\":\"style_control-bar__kTKau__Mq2HC\",\"scroller\":\"style_scroller__HOq7b__Mq2HC\",\"outer\":\"style_outer__ntu--__Mq2HC\",\"file-name\":\"style_file-name__UPbbe__Mq2HC\",\"file-options\":\"style_file-options__5TE5l__Mq2HC\",\"scale-input\":\"style_scale-input__JdF1K__Mq2HC\",\"text-outer\":\"style_text-outer__TzhuG__Mq2HC\",\"error\":\"style_error__wSaxt__Mq2HC\",\"text-inner\":\"style_text-inner__jdi-A__Mq2HC\",\"image-inner\":\"style_image-inner__zTiFU__Mq2HC\"};","import iFrameResize from \"iframe-resizer\";\nimport { useEffect, useRef } from \"react\";\nimport { getPublicPath } from \"@kne/remote-loader\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport { createWithFetch } from \"@kne/react-fetch\";\n\nconst HtmlInnerPreview = createWithFetch({\n transformResponse: ({ data }) => {\n return {\n data: {\n code: 200,\n results: data,\n },\n };\n },\n})(({ data }) => {\n const ref = useRef(null);\n useEffect(() => {\n const parser = new DOMParser();\n const domDocument = parser.parseFromString(data, \"text/html\");\n domDocument.querySelectorAll(\"script\").forEach((el) => {\n el.parentElement.removeChild(el);\n });\n const scriptPath =\n getPublicPath(\"components-core\") + \"/iframeResizer.contentWindow.js\";\n const script = document.createElement(\"script\");\n script.src = scriptPath;\n domDocument.head.appendChild(script);\n const style = document.createElement(\"style\");\n style.innerText =\n \"html,body{height:auto!important;}body{pointer-events: none;background: #FFFFFF;}\";\n domDocument.head.appendChild(style);\n ref.current.srcdoc = domDocument.documentElement.outerHTML;\n }, [data]);\n useEffect(() => {\n iFrameResize.iframeResize({ checkOrigin: false }, ref.current);\n }, []);\n return <iframe title=\"简历预览\" frameBorder=\"0\" width=\"100%\" ref={ref} />;\n});\n\nconst HtmlPreview = ({ className, url, maxWidth }) => {\n return (\n <div\n className={classnames(className, style[\"container\"])}\n style={{\n maxWidth,\n }}\n >\n <HtmlInnerPreview url={url} />\n {/*<iframe\n title=\"简历预览\"\n src={url}\n frameBorder=\"0\"\n width=\"100%\"\n ref={ref}\n onLoad={() => {\n const scriptPath =\n getPublicPath(\"components-core\") +\n \"/iframeResizer.contentWindow.js\";\n if (!ref.current.contentDocument) {\n console.warn(\n `跨域情况无法开启自动高度计算,请将${scriptPath}脚本加入目标页面`\n );\n return;\n }\n const script = document.createElement(\"script\");\n script.src = scriptPath;\n ref.current.contentDocument.head.appendChild(script);\n ref.current.contentDocument.body.style = \"pointer-events: none;\";\n }}\n />*/}\n </div>\n );\n};\n\nexport default HtmlPreview;\n","import { usePreset } from \"@components/Global\";\nimport { createWithFetch } from \"@kne/react-fetch\";\nimport { typeFormatComponent } from \"./typeFormat\";\n\nconst OfficePreviewInner = createWithFetch({\n cache: \"office-preview\",\n})(({ data, className, ...props }) => {\n const { data: fileList } = data;\n return fileList.map(({ url }) => {\n const PreviewComponent = typeFormatComponent(url);\n return (\n <PreviewComponent {...props} url={url} key={url} className={className} />\n );\n });\n});\n\nconst OfficePreview = ({ id, apis: propsApis, className, ...props }) => {\n const { apis: baseApis } = usePreset();\n const apis = Object.assign({}, baseApis, propsApis);\n return (\n <OfficePreviewInner\n {...props}\n {...apis.previewOffice}\n data={{ id }}\n className={className}\n />\n );\n};\n\nexport default OfficePreview;\n","import { memo, useState } from \"react\";\nimport { Space, Spin } from \"antd\";\nimport { Document, Page, pdfjs } from \"react-pdf\";\nimport \"react-pdf/dist/esm/Page/TextLayer.css\";\nimport style from \"./style.module.scss\";\nimport { useResize } from \"@components/Common\";\nimport { getPublicPath } from \"@kne/remote-loader\";\nimport classnames from \"classnames\";\n\nconst PdfPreview = memo(({ url, maxWidth, scale, rotate, className }) => {\n const [numPages, setNumPages] = useState(0);\n pdfjs.GlobalWorkerOptions.workerSrc =\n getPublicPath(\"components-core\") + \"/pdfjs/build/pdf.worker.js\";\n const [width, setWidth] = useState(maxWidth);\n const ref = useResize(() => {\n if (ref.current.clientWidth) {\n setWidth(Math.min(ref.current.clientWidth, maxWidth));\n }\n });\n\n return (\n <div\n ref={ref}\n className={classnames(className, style[\"container\"])}\n style={{\n maxWidth: maxWidth,\n }}\n >\n <Document\n file={{ url }}\n options={{\n standardFontDataUrl:\n getPublicPath(\"components-core\") + \"/pdfjs/standard_fonts/\",\n cMapUrl: getPublicPath(\"components-core\") + \"/pdfjs/cmaps/\",\n cMapPacked: true,\n }}\n error=\"PDF文件加载失败\"\n loading={\n <div className={style[\"loading\"]}>\n <Spin />\n </div>\n }\n noData=\"未指定PDF文件\"\n onLoadSuccess={({ numPages }) => {\n setNumPages(numPages);\n console.log(\"onLoadSuccess\");\n }}\n onLoadError={(props) => {\n console.log(\"onLoadError\", props);\n }}\n onSourceError={(props) => {\n console.log(\"onSourceError\", props);\n }}\n >\n <Space direction=\"vertical\">\n {numPages >= 1 &&\n Array.from(new Array(numPages), (el, index) => (\n <Page\n key={`page_${index}`}\n className=\"preview-item\"\n scale={scale / 100}\n rotate={rotate}\n pageNumber={index + 1}\n width={width}\n loading={null}\n renderAnnotationLayer={false}\n renderTextLayer={true}\n noData=\"未指定页面\"\n />\n ))}\n </Space>\n </Document>\n </div>\n );\n});\n\nPdfPreview.defaultProps = {\n autoSize: true,\n renderTextLayer: false,\n scale: 100,\n rotate: 0,\n maxWidth: 1200,\n};\n\nexport default PdfPreview;\n","import { useState, useEffect } from \"react\";\nimport TextEscape from \"@kne/react-text-escape\";\nimport axios from \"axios\";\nimport style from \"./style.module.scss\";\nimport { Spin } from \"antd\";\nimport classnames from \"classnames\";\n\nconst TextPreview = ({ url, className, maxWidth }) => {\n const [text, setText] = useState(\"\");\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(false);\n useEffect(() => {\n axios.get(url).then(\n ({ data }) => {\n setText(data);\n setLoading(false);\n },\n () => {\n setLoading(false);\n setError(true);\n }\n );\n }, [url]);\n\n return (\n <div\n className={classnames(className, style[\"container\"])}\n style={{\n maxWidth,\n }}\n >\n {loading ? (\n <div className={style[\"loading\"]}>\n <Spin />\n </div>\n ) : null}\n <div className={style[\"text-outer\"]}>\n {error ? (\n <div className={style[\"error\"]}>文件加载失败</div>\n ) : (\n <TextEscape text={text} />\n )}\n </div>\n </div>\n );\n};\n\nexport default TextPreview;\n","import { Result } from \"antd\";\nimport style from \"./style.module.scss\";\n\nconst UnknownPreview = ({ maxWidth }) => {\n return (\n <div\n className={style[\"container\"]}\n style={{\n maxWidth,\n }}\n >\n <div className={style[\"text-outer\"]}>\n <Result\n status=\"500\"\n title=\"不支持的文件类型\"\n subTitle=\"系统不支持该文件类型预览,请下载到本地后进行预览\"\n />\n </div>\n </div>\n );\n};\n\nexport default UnknownPreview;\n","import { useEffect, useState } from \"react\";\nimport style from \"./style.module.scss\";\nimport { Spin } from \"antd\";\nimport classnames from \"classnames\";\n\nconst ImagePreview = ({ url, scale, rotate, className, maxWidth }) => {\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(false);\n useEffect(() => {\n const image = new Image();\n image.src = url;\n const handlerLoad = () => {\n setLoading(false);\n };\n\n const handlerError = () => {\n setLoading(false);\n setError(true);\n };\n\n image.addEventListener(\"load\", handlerLoad);\n image.addEventListener(\"error\", handlerError);\n return () => {\n image.removeEventListener(\"load\", handlerLoad);\n image.removeEventListener(\"error\", handlerError);\n };\n }, [url, scale, rotate]);\n return (\n <div\n className={classnames(className, style[\"container\"])}\n style={{\n maxWidth,\n }}\n >\n {loading ? (\n <div className={style[\"loading\"]}>\n <Spin />\n </div>\n ) : null}\n {error ? (\n <div className={style[\"error\"]}>图片加载失败</div>\n ) : (\n <img src={url} alt=\"简历预览\" />\n )}\n </div>\n );\n};\n\nexport default ImagePreview;\n","import HtmlPreview from \"./HtmlPreview\";\nimport OfficePreview from \"./OfficePreview\";\nimport PdfPreview from \"./PdfPreview\";\nimport TextPreview from \"./TextPreview\";\nimport UnknownPreview from \"./UnknownPreview\";\nimport ImagePreview from \"./ImagePreview\";\n\nconst typeFormat = (url) => {\n const path = (url || \"\").split(\"?\")[0];\n const _path = path.toLowerCase();\n if (/.txt$/.test(_path)) {\n return \"txt\";\n }\n if (/.pdf$/.test(_path)) {\n return \"pdf\";\n }\n if (/.(png|jpg|jpeg)$/.test(_path)) {\n return \"image\";\n }\n if (/.(html|htm)$/.test(_path)) {\n return \"html\";\n }\n if (/.(doc|docx|xls|xlsx|ppt|pptx)$/.test(_path)) {\n return \"office\";\n }\n return \"unknown\";\n};\n\nexport default typeFormat;\n\nexport const typeFormatComponent = (url) => {\n const mapping = {\n txt: TextPreview,\n pdf: PdfPreview,\n image: ImagePreview,\n html: HtmlPreview,\n office: OfficePreview,\n unknown: UnknownPreview,\n };\n\n return mapping[typeFormat(url)];\n};\n","import withOSSFile from \"@common/hocs/withOSSFile\";\nimport typeFormat, { typeFormatComponent } from \"./typeFormat\";\nimport OfficePreview from \"./OfficePreview\";\n\nconst OSSFilePreview = withOSSFile(({ data, id, className, ...props }) => {\n const PreviewComponent = typeFormatComponent(data);\n if (typeFormat(data) === \"office\") {\n return <OfficePreview {...props} id={id} className={className} />;\n }\n return <PreviewComponent {...props} className={className} url={data} />;\n});\n\nexport default OSSFilePreview;\n","import typeFormat from \"./typeFormat\";\nimport OfficePreview from \"./OfficePreview\";\nimport OSSFilePreview from \"./OSSFilePreview\";\n\nconst FilePreview = ({ id, originName, ...props }) => {\n if (typeFormat(originName) === \"office\") {\n return <OfficePreview {...props} id={id} originName={originName} />;\n }\n return <OSSFilePreview {...props} id={id} originName={originName} />;\n};\n\nexport default FilePreview;\n"],"names":["HtmlInnerPreview","createWithFetch","transformResponse","_ref","data","code","results","_ref2","ref","useRef","useEffect","domDocument","DOMParser","parseFromString","querySelectorAll","forEach","el","parentElement","removeChild","scriptPath","getPublicPath","script","document","createElement","src","head","appendChild","style","innerText","current","srcdoc","documentElement","outerHTML","iFrameResize","checkOrigin","_jsx","title","frameBorder","width","_ref3","className","url","maxWidth","classnames","children","OfficePreviewInner","cache","props","fileList","map","PreviewComponent","typeFormatComponent","_createElement","key","id","apis","propsApis","baseApis","usePreset","Object","assign","previewOffice","PdfPreview","memo","scale","rotate","numPages","setNumPages","useState","pdfjs","GlobalWorkerOptions","workerSrc","setWidth","useResize","clientWidth","Math","min","Document","file","options","standardFontDataUrl","cMapUrl","cMapPacked","error","loading","Spin","noData","onLoadSuccess","console","log","onLoadError","onSourceError","Space","direction","Array","from","index","Page","pageNumber","renderAnnotationLayer","renderTextLayer","concat","defaultProps","autoSize","text","setText","setLoading","setError","axios","then","_jsxs","TextEscape","Result","status","subTitle","image","Image","handlerLoad","handlerError","addEventListener","removeEventListener","alt","typeFormat","_path","split","toLowerCase","test","txt","TextPreview","pdf","ImagePreview","html","HtmlPreview","office","OfficePreview","unknown","UnknownPreview","withOSSFile","originName","OSSFilePreview"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3805],{3805:(e,t,i)=>{i.r(t),i.d(t,{default:()=>q});var n=i(51922),s=i(96499),o=i(26803),r=i(18564);class l extends s.aY{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?(0,s.bP)(e)?["timed","allDay"]:["allDay"]:["timed"]}}const a=(0,s.x)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function d(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return(0,o.n)(s.V.Consumer,null,(i=>{if(!e.isLabeled)return(0,o.n)("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:n,options:r,viewApi:l}=i,d=null==r.slotLabelFormat?a:Array.isArray(r.slotLabelFormat)?(0,s.x)(r.slotLabelFormat[0]):(0,s.x)(r.slotLabelFormat),f={level:0,time:e.time,date:n.toDate(e.date),view:l,text:n.format(e.date,d)};return(0,o.n)(s.C,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:f,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:c,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(e=>(0,o.n)("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},(0,o.n)(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function c(e){return e.text}class f extends s.B{render(){return this.props.slatMetas.map((e=>(0,o.n)("tr",{key:e.key},(0,o.n)(d,Object.assign({},e)))))}}const h=(0,s.x)({week:"short"});class g extends s.be{constructor(){var e;super(...arguments),e=this,this.allDaySplitter=new l,this.headerElRef=(0,o._3)(),this.rootElRef=(0,o._3)(),this.scrollerElRef=(0,o._3)(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{options:n}=e.context,{dateProfile:r}=e.props,l=r.renderRange,a=1===(0,s.bl)(l.start,l.end)?(0,s.b0)(e.context,l.start,"week"):{};return n.weekNumbers&&"day"===t?(0,o.n)(s.cq,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:l.start,defaultFormat:h},(e=>(0,o.n)("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:i}},(0,o.n)(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a})))):(0,o.n)("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},(0,o.n)("div",{className:"fc-timegrid-axis-frame",style:{height:i}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:i}=this.context,n={text:t.allDayText,view:i};return(0,o.n)(s.C,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:n,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:p,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},(t=>(0,o.n)("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},(0,o.n)(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,i){let{context:n,props:r}=this,l=[],a=(0,s.cc)(n.options);return e&&l.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(l.push({type:"body",key:"all-day",chunk:{content:t}}),l.push({type:"body",key:"all-day-divider",outerContent:(0,o.n)("tr",{role:"presentation",className:"fc-scrollgrid-section"},(0,o.n)("td",{className:"fc-timegrid-divider "+n.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(n.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:i}}),(0,o.n)(s.ct,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:n.viewSpec},(0,o.n)(s.b$,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,t,i,n,r,l,a){let d=this.context.pluginHooks.scrollGridImpl;if(!d)throw new Error("No ScrollGrid implementation");let{context:c,props:h}=this,g=!h.forPrint&&(0,s.cc)(c.options),p=!h.forPrint&&(0,s.cb)(c.options),u=[];e&&u.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>(0,o.n)("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(u.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>(0,o.n)("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),u.push({key:"all-day-divider",type:"body",outerContent:(0,o.n)("tr",{role:"presentation",className:"fc-scrollgrid-section"},(0,o.n)("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let m=c.options.nowIndicator;return u.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:e=>(0,o.n)("div",{className:"fc-timegrid-axis-chunk"},(0,o.n)("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,(0,o.n)("tbody",null,(0,o.n)(f,{slatMetas:l}))),(0,o.n)("div",{className:"fc-timegrid-now-indicator-container"},(0,o.n)(s.ch,{unit:m?"minute":"day"},(e=>{let t=m&&a&&a.safeComputeTop(e);return"number"===typeof t?(0,o.n)(s.ck,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:i}]}),p&&u.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:s.ca},{key:"cols",content:s.ca}]}),(0,o.n)(s.ct,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},(0,o.n)(d,{liquid:!h.isHeightAuto&&!h.forPrint,forPrint:h.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:n,minWidth:r}]}],sections:u}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return!0!==e&&!0!==t||(e=void 0,t=5),{dayMaxEvents:e,dayMaxEventRows:t}}}function p(e){return e.text}class u{constructor(e,t,i){this.positions=e,this.dateProfile=t,this.slotDuration=i}safeComputeTop(e){let{dateProfile:t}=this;if((0,s.H)(t.currentRange,e)){let i=(0,s.q)(e),n=e.valueOf()-i.valueOf();if(n>=(0,s.bs)(t.slotMinTime)&&n<(0,s.bs)(t.slotMaxTime))return this.computeTimeTop((0,s.d)(n))}return null}computeDateTop(e,t){return t||(t=(0,s.q)(e)),this.computeTimeTop((0,s.d)(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,i,{positions:n,dateProfile:o}=this,r=n.els.length,l=(e.milliseconds-(0,s.bs)(o.slotMinTime))/(0,s.bs)(this.slotDuration);return l=Math.max(0,l),l=Math.min(r,l),t=Math.floor(l),t=Math.min(t,r-1),i=l-t,n.tops[t]+n.getHeight(t)*i}}class m extends s.B{render(){let{props:e,context:t}=this,{options:i}=t,{slatElRefs:n}=e;return(0,o.n)("tbody",null,e.slatMetas.map(((r,l)=>{let a={time:r.time,date:t.dateEnv.toDate(r.date),view:t.viewApi};return(0,o.n)("tr",{key:r.key,ref:n.createRef(r.key)},e.axis&&(0,o.n)(d,Object.assign({},r)),(0,o.n)(s.C,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!r.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":r.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:i.slotLaneContent,classNameGenerator:i.slotLaneClassNames,didMount:i.slotLaneDidMount,willUnmount:i.slotLaneWillUnmount}))})))}}class v extends s.B{constructor(){super(...arguments),this.rootElRef=(0,o._3)(),this.slatElRefs=new s.cf}render(){let{props:e,context:t}=this;return(0,o.n)("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},(0,o.n)("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,(0,o.n)(m,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;if(t.onCoords&&null!==t.clientWidth){this.rootElRef.current.offsetHeight&&t.onCoords(new u(new s.ba(this.rootElRef.current,(i=this.slatElRefs.currentMap,t.slatMetas.map((e=>i[e.key]))),!1,!0),this.props.dateProfile,e.options.slotDuration))}var i}}function b(e,t){let i,n=[];for(i=0;i<t;i+=1)n.push([]);if(e)for(i=0;i<e.length;i+=1)n[e[i].col].push(e[i]);return n}function x(e,t){let i=[];if(e){for(let n=0;n<t;n+=1)i[n]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)i[t.col].segs.push(t)}else for(let n=0;n<t;n+=1)i[n]=null;return i}class y extends s.B{render(){let{props:e}=this;return(0,o.n)(s.cr,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>P(e.hiddenSegs,e),defaultGenerator:S,forceTimed:!0},(e=>(0,o.n)(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function S(e){return e.shortText}function w(e,t,i){let n=new s.bA;null!=t&&(n.strictOrder=t),null!=i&&(n.maxStackCnt=i);let o=n.addSegs(e),r=(0,s.bE)(o),l=function(e){const{entriesByLevel:t}=e,i=D(((e,t)=>e+":"+t),((n,o)=>{let r=function(e,t,i){let{levelCoords:n,entriesByLevel:o}=e,r=o[t][i],l=n[t]+r.thickness,a=n.length,d=t;for(;d<a&&n[d]<l;d+=1);for(;d<a;d+=1){let e,t=o[d],i=(0,s.bD)(t,r.span.start,s.bC),n=i[0]+i[1],l=n;for(;(e=t[l])&&e.span.start<r.span.end;)l+=1;if(n<l)return{level:d,lateralStart:n,lateralEnd:l}}return null}(e,n,o),l=C(r,i),a=t[n][o];return[Object.assign(Object.assign({},a),{nextLevelNodes:l[0]}),a.thickness+l[1]]}));return C(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,i)[0]}(n);return l=function(e,t){const i=D(((e,t,i)=>(0,s.bB)(e)),((e,n,s)=>{let o,{nextLevelNodes:r,thickness:l}=e,a=l+s,d=l/a,c=[];if(r.length)for(let t of r)if(void 0===o){let e=i(t,n,a);o=e[0],c.push(e[1])}else{let e=i(t,o,0);c.push(e[1])}else o=t;let f=(o-n)*d;return[o-f,Object.assign(Object.assign({},e),{thickness:f,nextLevelNodes:c})]}));return e.map((e=>i(e,0,0)[1]))}(l,1),{segRects:function(e){let t=[];const i=D(((e,t,i)=>(0,s.bB)(e)),((e,i,s)=>{let o=Object.assign(Object.assign({},e),{levelCoord:i,stackDepth:s,stackForward:0});return t.push(o),o.stackForward=n(e.nextLevelNodes,i+e.thickness,s+1)+1}));function n(e,t,n){let s=0;for(let o of e)s=Math.max(i(o,t,n),s);return s}return n(e,0,0),t}(l),hiddenGroups:r}}function C(e,t){if(!e)return[[],0];let{level:i,lateralStart:n,lateralEnd:s}=e,o=n,r=[];for(;o<s;)r.push(t(i,o)),o+=1;return r.sort(R),[r.map(k),r[0][1]]}function R(e,t){return t[1]-e[1]}function k(e){return e[0]}function D(e,t){const i={};return function(){let n=e(...arguments);return n in i?i[n]:i[n]=t(...arguments)}}function M(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=[];if(i)for(let o=0;o<e.length;o+=1){let r=e[o],l=i.computeDateTop(r.start,t),a=Math.max(l+(n||0),i.computeDateTop(r.end,t));s.push({start:Math.round(l),end:Math.round(a)})}return s}const E=(0,s.x)({hour:"numeric",minute:"2-digit",meridiem:!1});class z extends s.B{render(){return(0,o.n)(s.cj,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:E}))}}class N extends s.B{constructor(){super(...arguments),this.sortEventSegs=(0,s.z)(s.bR)}render(){let{props:e,context:t}=this,{options:i}=t,n=i.selectMirror,r=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||n&&e.dateSelectionSegs||[],l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,i.eventOrder);return(0,o.n)(s.cl,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},(t=>(0,o.n)("div",{className:"fc-timegrid-col-frame"},(0,o.n)("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),(0,o.n)("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,l,!1,!1,!1)),(0,o.n)("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(r,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(n),"mirror")),(0,o.n)("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),(0,s.cm)(i)&&(0,o.n)(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(e,t,i,n,s,o){let{props:r}=this;return r.forPrint?P(e,r):this.renderPositionedFgSegs(e,t,i,n,s,o)}renderPositionedFgSegs(e,t,i,n,r,l){let{eventMaxStack:a,eventShortHeight:d,eventOrderStrict:c,eventMinHeight:f}=this.context.options,{date:h,slatCoords:g,eventSelection:p,todayRange:u,nowDate:m}=this.props,v=i||n||r,b=M(e,h,g,f),{segPlacements:x,hiddenGroups:y}=function(e,t,i,n){let s=[],o=[];for(let d=0;d<e.length;d+=1){let i=t[d];i?s.push({index:d,thickness:1,span:i}):o.push(e[d])}let{segRects:r,hiddenGroups:l}=w(s,i,n),a=[];for(let d of r)a.push({seg:e[d.index],rect:d});for(let d of o)a.push({seg:d,rect:null});return{segPlacements:a,hiddenGroups:l}}(e,b,c,a);return(0,o.n)(o.FK,null,this.renderHiddenGroups(y,e),x.map((e=>{let{seg:a,rect:c}=e,f=a.eventRange.instance.instanceId,h=v||Boolean(!t[f]&&c),g=T(c&&c.span),b=!v&&c?this.computeSegHStyle(c):{left:0,right:0},x=Boolean(c)&&c.stackForward>0,y=Boolean(c)&&c.span.end-c.span.start<d;return(0,o.n)("div",{className:"fc-timegrid-event-harness"+(x?" fc-timegrid-event-harness-inset":""),key:l||f,style:Object.assign(Object.assign({visibility:h?"":"hidden"},g),b)},(0,o.n)(z,Object.assign({seg:a,isDragging:i,isResizing:n,isDateSelecting:r,isSelected:f===p,isShort:y},(0,s.bS)(a,u,m))))})))}renderHiddenGroups(e,t){let{extraDateSpan:i,dateProfile:n,todayRange:r,nowDate:l,eventSelection:a,eventDrag:d,eventResize:c}=this.props;return(0,o.n)(o.FK,null,e.map((e=>{let f=T(e.span),h=(g=e.entries,p=t,g.map((e=>p[e.index])));var g,p;return(0,o.n)(y,{key:(0,s.bw)((0,s.cs)(h)),hiddenSegs:h,top:f.top,bottom:f.bottom,extraDateSpan:i,dateProfile:n,todayRange:r,nowDate:l,eventSelection:a,eventDrag:d,eventResize:c})})))}renderFillSegs(e,t){let{props:i,context:n}=this,r=M(e,i.date,i.slatCoords,n.options.eventMinHeight).map(((n,r)=>{let l=e[r];return(0,o.n)("div",{key:(0,s.bT)(l.eventRange),className:"fc-timegrid-bg-harness",style:T(n)},"bg-event"===t?(0,o.n)(s.cp,Object.assign({seg:l},(0,s.bS)(l,i.todayRange,i.nowDate))):(0,s.co)(t))}));return(0,o.n)(o.FK,null,r)}renderNowIndicator(e){let{slatCoords:t,date:i}=this.props;return t?e.map(((e,n)=>(0,o.n)(s.ck,{key:n,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,i)},isAxis:!1,date:i}))):null}computeSegHStyle(e){let t,i,{isRtl:n,options:s}=this.context,o=s.slotEventOverlap,r=e.levelCoord,l=e.levelCoord+e.thickness;o&&(l=Math.min(1,r+2*(l-r))),n?(t=1-l,i=r):(t=r,i=1-l);let a={zIndex:e.stackDepth+1,left:100*t+"%",right:100*i+"%"};return o&&!e.stackForward&&(a[n?"marginLeft":"marginRight"]=20),a}}function P(e,t){let{todayRange:i,nowDate:n,eventSelection:r,eventDrag:l,eventResize:a}=t,d=(l?l.affectedInstances:null)||(a?a.affectedInstances:null)||{};return(0,o.n)(o.FK,null,e.map((e=>{let t=e.eventRange.instance.instanceId;return(0,o.n)("div",{key:t,style:{visibility:d[t]?"hidden":""}},(0,o.n)(z,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===r,isShort:!1},(0,s.bS)(e,i,n))))})))}function T(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}class H extends s.B{constructor(){super(...arguments),this.splitFgEventSegs=(0,s.z)(b),this.splitBgEventSegs=(0,s.z)(b),this.splitBusinessHourSegs=(0,s.z)(b),this.splitNowIndicatorSegs=(0,s.z)(b),this.splitDateSelectionSegs=(0,s.z)(b),this.splitEventDrag=(0,s.z)(x),this.splitEventResize=(0,s.z)(x),this.rootElRef=(0,o._3)(),this.cellElRefs=new s.cf}render(){let{props:e,context:t}=this,i=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),n=e.cells.length,r=this.splitFgEventSegs(e.fgEventSegs,n),l=this.splitBgEventSegs(e.bgEventSegs,n),a=this.splitBusinessHourSegs(e.businessHourSegs,n),d=this.splitNowIndicatorSegs(e.nowIndicatorSegs,n),c=this.splitDateSelectionSegs(e.dateSelectionSegs,n),f=this.splitEventDrag(e.eventDrag,n),h=this.splitEventResize(e.eventResize,n);return(0,o.n)("div",{className:"fc-timegrid-cols",ref:this.rootElRef},(0,o.n)("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,(0,o.n)("tbody",{role:"presentation"},(0,o.n)("tr",{role:"row"},e.axis&&(0,o.n)("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},(0,o.n)("div",{className:"fc-timegrid-col-frame"},(0,o.n)("div",{className:"fc-timegrid-now-indicator-container"},"number"===typeof i&&(0,o.n)(s.ck,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:i},isAxis:!0,date:e.nowDate})))),e.cells.map(((t,i)=>(0,o.n)(N,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:r[i],bgEventSegs:l[i],businessHourSegs:a[i],nowIndicatorSegs:d[i],dateSelectionSegs:c[i],eventDrag:f[i],eventResize:h[i],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;var t;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new s.ba(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.cells.map((e=>t[e.key]))),!0,!1))}}class W extends s.be{constructor(){super(...arguments),this.processSlotOptions=(0,s.z)(G),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:i}=this.state;if(t&&i){if(e.time){let n=i.computeTimeTop(e.time);n=Math.ceil(n),n&&(n+=1),t(n)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return(0,o.n)("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},(0,o.n)(v,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),(0,o.n)(H,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:i,options:n}=this.context,{colCoords:o}=this,{dateProfile:r}=this.props,{slatCoords:l}=this.state,{snapDuration:a,snapsPerSlot:d}=this.processSlotOptions(this.props.slotDuration,n.snapDuration),c=o.leftToIndex(e),f=l.positions.topToIndex(t);if(null!=c&&null!=f){let e=this.props.cells[c],n=l.positions.tops[f],h=l.positions.getHeight(f),g=(t-n)/h,p=f*d+Math.floor(g*d),u=this.props.cells[c].date,m=(0,s.bp)(r.slotMinTime,(0,s.bo)(a,p)),v=i.add(u,m),b=i.add(v,a);return{dateProfile:r,dateSpan:Object.assign({range:{start:v,end:b},allDay:!1},e.extraDateSpan),dayEl:o.els[c],rect:{left:o.lefts[c],right:o.rights[c],top:n,bottom:n+h},layer:0}}return null}}function G(e,t){let i=t||e,n=(0,s.bt)(e,i);return null===n&&(i=e,n=1),{snapDuration:i,snapsPerSlot:n}}class O extends s.bW{sliceRange(e,t){let i=[];for(let n=0;n<t.length;n+=1){let o=(0,s.o)(e,t[n]);o&&i.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:n})}return i}}class I extends s.be{constructor(){super(...arguments),this.buildDayRanges=(0,s.z)(A),this.slicer=new O,this.timeColsRef=(0,o._3)()}render(){let{props:e,context:t}=this,{dateProfile:i,dayTableModel:n}=e,{nowIndicator:r,nextDayThreshold:l}=t.options,a=this.buildDayRanges(n,i,t.dateEnv);return(0,o.n)(s.ch,{unit:r?"minute":"day"},((s,d)=>(0,o.n)(W,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,i,null,t,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:i,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:n.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:s,nowIndicatorSegs:r&&this.slicer.sliceNowDate(s,i,l,t,a),todayRange:d,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords}))))}}function A(e,t,i){let n=[];for(let s of e.headerDates)n.push({start:i.add(s,t.slotMinTime),end:i.add(s,t.slotMaxTime)});return n}const L=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function F(e,t,i,n,o){let r=new Date(0),l=e,a=(0,s.d)(0),d=i||function(e){let t,i,n;for(t=L.length-1;t>=0;t-=1)if(i=(0,s.d)(L[t]),n=(0,s.bt)(i,e),null!==n&&n>1)return i;return e}(n),c=[];for(;(0,s.bs)(l)<(0,s.bs)(t);){let e=o.add(r,l),t=null!==(0,s.bt)(a,d);c.push({date:e,time:l,key:e.toISOString(),isoTimeStr:(0,s.bu)(e),isLabeled:t}),l=(0,s.bp)(l,n),a=(0,s.bp)(a,n)}return c}function j(e,t){let i=new s.bO(e.renderRange,t);return new s.bV(i,!1)}(0,s.cw)('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');const B={allDaySlot:Boolean};var q=(0,n.createPlugin)({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:B,views:{timeGrid:{component:class extends g{constructor(){super(...arguments),this.buildTimeColsModel=(0,s.z)(j),this.buildSlatMetas=(0,s.z)(F)}render(){let{options:e,dateEnv:t,dateProfileGenerator:i}=this.context,{props:n}=this,{dateProfile:l}=n,a=this.buildTimeColsModel(l,i),d=this.allDaySplitter.splitProps(n),c=this.buildSlatMetas(l.slotMinTime,l.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:f}=e,h=!f,g=f,p=e.dayHeaders&&(0,o.n)(s.bK,{dates:a.headerDates,dateProfile:l,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),u=!1!==e.allDaySlot&&(t=>(0,o.n)(r.t7,Object.assign({},d.allDay,{dateProfile:l,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:h?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint},this.getAllDayMaxEventProps()))),m=t=>(0,o.n)(I,Object.assign({},d.timed,{dayTableModel:a,dateProfile:l,axis:h,slotDuration:e.slotDuration,slatMetas:c,forPrint:n.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(p,u,m,a.colCnt,f,c,this.state.slatCoords):this.renderSimpleLayout(p,u,m)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}})}}]);
2
+ //# sourceMappingURL=3805.8b4f9a3a.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/js/3805.8b4f9a3a.chunk.js","mappings":"gOAIA,MAAMA,UAAuBC,EAAAA,GACzBC,UAAAA,GACI,MAAO,CACHC,OAAQ,CAAC,EACTC,MAAO,CAAC,EAEhB,CACAC,kBAAAA,CAAmBC,GACf,OAAIA,EAASH,OACF,CAAC,UAEL,CAAC,QACZ,CACAI,kBAAAA,CAAmBC,GACf,OAAKA,EAASL,QAGVM,EAAAA,EAAAA,IAAeD,GACR,CAAC,QAAS,UAEd,CAAC,UALG,CAAC,QAMhB,EAGJ,MAAME,GAA4BC,EAAAA,EAAAA,GAAgB,CAC9CC,KAAM,UACNC,OAAQ,UACRC,gBAAgB,EAChBC,SAAU,UAEd,SAASC,EAAiBC,GACtB,IAAIC,EAAa,CACb,mBACA,yBACAD,EAAME,UAAY,uBAAyB,0BAE/C,OAAQC,EAAAA,EAAAA,GAAcC,EAAAA,EAAgBC,SAAU,MAAOC,IACnD,IAAKN,EAAME,UACP,OAAQC,EAAAA,EAAAA,GAAc,KAAM,CAAEI,UAAWN,EAAWO,KAAK,KAAM,YAAaR,EAAMS,aAEtF,IAAI,QAAEC,EAAO,QAAEC,EAAO,QAAEC,GAAYN,EAChCO,EACwB,MAA3BF,EAAQG,gBAA0BrB,EAC/BsB,MAAMC,QAAQL,EAAQG,kBAAmBpB,EAAAA,EAAAA,GAAgBiB,EAAQG,gBAAgB,KAC7EpB,EAAAA,EAAAA,GAAgBiB,EAAQG,iBAC5BG,EAAc,CACdC,MAAO,EACPC,KAAMnB,EAAMmB,KACZC,KAAMV,EAAQW,OA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OAAO,CAAC,EAAG0c,EAAWzgB,MAAO,CAAEoe,cAAeA,EAAe5Y,YAAaA,EAAawH,KAAM2T,EAAiB1V,aAAczJ,EAAQyJ,aAAcvH,UAAWA,EAAW8E,SAAU3H,EAAM2H,SAAUsB,kBAAmBL,EAAWK,kBAAmByD,cAAe9D,EAAW8D,cAAeC,YAAa/D,EAAW+D,YAAa3D,aAAcJ,EAAWI,aAAc+R,aAAcnY,KAAKoD,iBAAkBqB,WAAYuB,EAAWvB,WAAYsT,mBAAoB/X,KAAKsB,0BAClhB,OAAO6b,EACDnd,KAAKmF,oBAAoBiY,EAAera,EAAegb,EAAiBpD,EAAcvV,OAAQC,EAAapF,EAAWD,KAAKoB,MAAMC,YACjIrB,KAAKsD,mBAAmB8Z,EAAera,EAAegb,EAChE,GC7lCQC,gBAAgB,EAChBxB,YAAY,EACZhV,aAAc,WACdoO,kBAAkB,GAEtBqI,YAAa,CACTpa,KAAM,WACNyE,SAAU,CAAE4V,KAAM,IAEtBC,aAAc,CACVta,KAAM,WACNyE,SAAU,CAAE8V,MAAO,M","sources":["../node_modules/@fullcalendar/timegrid/internal.js","../node_modules/@fullcalendar/timegrid/index.js"],"sourcesContent":["import { Splitter, hasBgRendering, createFormatter, ViewContextType, ContentContainer, BaseComponent, DateComponent, diffDays, buildNavLinkAttrs, WeekNumberContainer, getStickyHeaderDates, ViewContainer, SimpleScrollGrid, getStickyFooterScrollbar, NowTimer, NowIndicatorContainer, renderScrollShim, rangeContainsMarker, startOfDay, asRoughMs, createDuration, RefMap, PositionCache, MoreLinkContainer, SegHierarchy, groupIntersectingEntries, binarySearch, getEntrySpanEnd, buildEntryKey, StandardEvent, memoize, sortEventSegs, DayCellContainer, hasCustomDayCellContent, getSegMeta, buildIsoString, computeEarliestSegStart, buildEventRangeKey, BgEvent, renderFill, addDurations, multiplyDuration, wholeDivideDurations, Slicer, intersectRanges, formatIsoTimeString, DayHeader, DaySeriesModel, DayTableModel, injectStyles } from '@fullcalendar/core/internal.js';\nimport { createElement, createRef, Fragment } from '@fullcalendar/core/preact.js';\nimport { DayTable } from '@fullcalendar/daygrid/internal.js';\n\nclass AllDaySplitter extends Splitter {\n getKeyInfo() {\n return {\n allDay: {},\n timed: {},\n };\n }\n getKeysForDateSpan(dateSpan) {\n if (dateSpan.allDay) {\n return ['allDay'];\n }\n return ['timed'];\n }\n getKeysForEventDef(eventDef) {\n if (!eventDef.allDay) {\n return ['timed'];\n }\n if (hasBgRendering(eventDef)) {\n return ['timed', 'allDay'];\n }\n return ['allDay'];\n }\n}\n\nconst DEFAULT_SLAT_LABEL_FORMAT = createFormatter({\n hour: 'numeric',\n minute: '2-digit',\n omitZeroMinute: true,\n meridiem: 'short',\n});\nfunction TimeColsAxisCell(props) {\n let classNames = [\n 'fc-timegrid-slot',\n 'fc-timegrid-slot-label',\n props.isLabeled ? 'fc-scrollgrid-shrink' : 'fc-timegrid-slot-minor',\n ];\n return (createElement(ViewContextType.Consumer, null, (context) => {\n if (!props.isLabeled) {\n return (createElement(\"td\", { className: classNames.join(' '), \"data-time\": props.isoTimeStr }));\n }\n let { dateEnv, options, viewApi } = context;\n let labelFormat = // TODO: fully pre-parse\n options.slotLabelFormat == null ? DEFAULT_SLAT_LABEL_FORMAT :\n Array.isArray(options.slotLabelFormat) ? createFormatter(options.slotLabelFormat[0]) :\n createFormatter(options.slotLabelFormat);\n let renderProps = {\n level: 0,\n time: props.time,\n date: dateEnv.toDate(props.date),\n view: viewApi,\n text: dateEnv.format(props.date, labelFormat),\n };\n return (createElement(ContentContainer, { elTag: \"td\", elClasses: classNames, elAttrs: {\n 'data-time': props.isoTimeStr,\n }, renderProps: renderProps, generatorName: \"slotLabelContent\", customGenerator: options.slotLabelContent, defaultGenerator: renderInnerContent, classNameGenerator: options.slotLabelClassNames, didMount: options.slotLabelDidMount, willUnmount: options.slotLabelWillUnmount }, (InnerContent) => (createElement(\"div\", { className: \"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame\" },\n createElement(InnerContent, { elTag: \"div\", elClasses: [\n 'fc-timegrid-slot-label-cushion',\n 'fc-scrollgrid-shrink-cushion',\n ] })))));\n }));\n}\nfunction renderInnerContent(props) {\n return props.text;\n}\n\nclass TimeBodyAxis extends BaseComponent {\n render() {\n return this.props.slatMetas.map((slatMeta) => (createElement(\"tr\", { key: slatMeta.key },\n createElement(TimeColsAxisCell, Object.assign({}, slatMeta)))));\n }\n}\n\nconst DEFAULT_WEEK_NUM_FORMAT = createFormatter({ week: 'short' });\nconst AUTO_ALL_DAY_MAX_EVENT_ROWS = 5;\nclass TimeColsView extends DateComponent {\n constructor() {\n super(...arguments);\n this.allDaySplitter = new AllDaySplitter(); // for use by subclasses\n this.headerElRef = createRef();\n this.rootElRef = createRef();\n this.scrollerElRef = createRef();\n this.state = {\n slatCoords: null,\n };\n this.handleScrollTopRequest = (scrollTop) => {\n let scrollerEl = this.scrollerElRef.current;\n if (scrollerEl) { // TODO: not sure how this could ever be null. weirdness with the reducer\n scrollerEl.scrollTop = scrollTop;\n }\n };\n /* Header Render Methods\n ------------------------------------------------------------------------------------------------------------------*/\n this.renderHeadAxis = (rowKey, frameHeight = '') => {\n let { options } = this.context;\n let { dateProfile } = this.props;\n let range = dateProfile.renderRange;\n let dayCnt = diffDays(range.start, range.end);\n // only do in day views (to avoid doing in week views that dont need it)\n let navLinkAttrs = (dayCnt === 1)\n ? buildNavLinkAttrs(this.context, range.start, 'week')\n : {};\n if (options.weekNumbers && rowKey === 'day') {\n return (createElement(WeekNumberContainer, { elTag: \"th\", elClasses: [\n 'fc-timegrid-axis',\n 'fc-scrollgrid-shrink',\n ], elAttrs: {\n 'aria-hidden': true,\n }, date: range.start, defaultFormat: DEFAULT_WEEK_NUM_FORMAT }, (InnerContent) => (createElement(\"div\", { className: [\n 'fc-timegrid-axis-frame',\n 'fc-scrollgrid-shrink-frame',\n 'fc-timegrid-axis-frame-liquid',\n ].join(' '), style: { height: frameHeight } },\n createElement(InnerContent, { elTag: \"a\", elClasses: [\n 'fc-timegrid-axis-cushion',\n 'fc-scrollgrid-shrink-cushion',\n 'fc-scrollgrid-sync-inner',\n ], elAttrs: navLinkAttrs })))));\n }\n return (createElement(\"th\", { \"aria-hidden\": true, className: \"fc-timegrid-axis\" },\n createElement(\"div\", { className: \"fc-timegrid-axis-frame\", style: { height: frameHeight } })));\n };\n /* Table Component Render Methods\n ------------------------------------------------------------------------------------------------------------------*/\n // only a one-way height sync. we don't send the axis inner-content height to the DayGrid,\n // but DayGrid still needs to have classNames on inner elements in order to measure.\n this.renderTableRowAxis = (rowHeight) => {\n let { options, viewApi } = this.context;\n let renderProps = {\n text: options.allDayText,\n view: viewApi,\n };\n return (\n // TODO: make reusable hook. used in list view too\n createElement(ContentContainer, { elTag: \"td\", elClasses: [\n 'fc-timegrid-axis',\n 'fc-scrollgrid-shrink',\n ], elAttrs: {\n 'aria-hidden': true,\n }, renderProps: renderProps, generatorName: \"allDayContent\", customGenerator: options.allDayContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayClassNames, didMount: options.allDayDidMount, willUnmount: options.allDayWillUnmount }, (InnerContent) => (createElement(\"div\", { className: [\n 'fc-timegrid-axis-frame',\n 'fc-scrollgrid-shrink-frame',\n rowHeight == null ? ' fc-timegrid-axis-frame-liquid' : '',\n ].join(' '), style: { height: rowHeight } },\n createElement(InnerContent, { elTag: \"span\", elClasses: [\n 'fc-timegrid-axis-cushion',\n 'fc-scrollgrid-shrink-cushion',\n 'fc-scrollgrid-sync-inner',\n ] })))));\n };\n this.handleSlatCoords = (slatCoords) => {\n this.setState({ slatCoords });\n };\n }\n // rendering\n // ----------------------------------------------------------------------------------------------------\n renderSimpleLayout(headerRowContent, allDayContent, timeContent) {\n let { context, props } = this;\n let sections = [];\n let stickyHeaderDates = getStickyHeaderDates(context.options);\n if (headerRowContent) {\n sections.push({\n type: 'header',\n key: 'header',\n isSticky: stickyHeaderDates,\n chunk: {\n elRef: this.headerElRef,\n tableClassName: 'fc-col-header',\n rowContent: headerRowContent,\n },\n });\n }\n if (allDayContent) {\n sections.push({\n type: 'body',\n key: 'all-day',\n chunk: { content: allDayContent },\n });\n sections.push({\n type: 'body',\n key: 'all-day-divider',\n outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?\n createElement(\"tr\", { role: \"presentation\", className: \"fc-scrollgrid-section\" },\n createElement(\"td\", { className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),\n });\n }\n sections.push({\n type: 'body',\n key: 'body',\n liquid: true,\n expandRows: Boolean(context.options.expandRows),\n chunk: {\n scrollerElRef: this.scrollerElRef,\n content: timeContent,\n },\n });\n return (createElement(ViewContainer, { elRef: this.rootElRef, elClasses: ['fc-timegrid'], viewSpec: context.viewSpec },\n createElement(SimpleScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, collapsibleWidth: props.forPrint, cols: [{ width: 'shrink' }], sections: sections })));\n }\n renderHScrollLayout(headerRowContent, allDayContent, timeContent, colCnt, dayMinWidth, slatMetas, slatCoords) {\n let ScrollGrid = this.context.pluginHooks.scrollGridImpl;\n if (!ScrollGrid) {\n throw new Error('No ScrollGrid implementation');\n }\n let { context, props } = this;\n let stickyHeaderDates = !props.forPrint && getStickyHeaderDates(context.options);\n let stickyFooterScrollbar = !props.forPrint && getStickyFooterScrollbar(context.options);\n let sections = [];\n if (headerRowContent) {\n sections.push({\n type: 'header',\n key: 'header',\n isSticky: stickyHeaderDates,\n syncRowHeights: true,\n chunks: [\n {\n key: 'axis',\n rowContent: (arg) => (createElement(\"tr\", { role: \"presentation\" }, this.renderHeadAxis('day', arg.rowSyncHeights[0]))),\n },\n {\n key: 'cols',\n elRef: this.headerElRef,\n tableClassName: 'fc-col-header',\n rowContent: headerRowContent,\n },\n ],\n });\n }\n if (allDayContent) {\n sections.push({\n type: 'body',\n key: 'all-day',\n syncRowHeights: true,\n chunks: [\n {\n key: 'axis',\n rowContent: (contentArg) => (createElement(\"tr\", { role: \"presentation\" }, this.renderTableRowAxis(contentArg.rowSyncHeights[0]))),\n },\n {\n key: 'cols',\n content: allDayContent,\n },\n ],\n });\n sections.push({\n key: 'all-day-divider',\n type: 'body',\n outerContent: ( // TODO: rename to cellContent so don't need to define <tr>?\n createElement(\"tr\", { role: \"presentation\", className: \"fc-scrollgrid-section\" },\n createElement(\"td\", { colSpan: 2, className: 'fc-timegrid-divider ' + context.theme.getClass('tableCellShaded') }))),\n });\n }\n let isNowIndicator = context.options.nowIndicator;\n sections.push({\n type: 'body',\n key: 'body',\n liquid: true,\n expandRows: Boolean(context.options.expandRows),\n chunks: [\n {\n key: 'axis',\n content: (arg) => (\n // TODO: make this now-indicator arrow more DRY with TimeColsContent\n createElement(\"div\", { className: \"fc-timegrid-axis-chunk\" },\n createElement(\"table\", { \"aria-hidden\": true, style: { height: arg.expandRows ? arg.clientHeight : '' } },\n arg.tableColGroupNode,\n createElement(\"tbody\", null,\n createElement(TimeBodyAxis, { slatMetas: slatMetas }))),\n createElement(\"div\", { className: \"fc-timegrid-now-indicator-container\" },\n createElement(NowTimer, { unit: isNowIndicator ? 'minute' : 'day' /* hacky */ }, (nowDate) => {\n let nowIndicatorTop = isNowIndicator &&\n slatCoords &&\n slatCoords.safeComputeTop(nowDate); // might return void\n if (typeof nowIndicatorTop === 'number') {\n return (createElement(NowIndicatorContainer, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: nowDate }));\n }\n return null;\n })))),\n },\n {\n key: 'cols',\n scrollerElRef: this.scrollerElRef,\n content: timeContent,\n },\n ],\n });\n if (stickyFooterScrollbar) {\n sections.push({\n key: 'footer',\n type: 'footer',\n isSticky: true,\n chunks: [\n {\n key: 'axis',\n content: renderScrollShim,\n },\n {\n key: 'cols',\n content: renderScrollShim,\n },\n ],\n });\n }\n return (createElement(ViewContainer, { elRef: this.rootElRef, elClasses: ['fc-timegrid'], viewSpec: context.viewSpec },\n createElement(ScrollGrid, { liquid: !props.isHeightAuto && !props.forPrint, forPrint: props.forPrint, collapsibleWidth: false, colGroups: [\n { width: 'shrink', cols: [{ width: 'shrink' }] },\n { cols: [{ span: colCnt, minWidth: dayMinWidth }] },\n ], sections: sections })));\n }\n /* Dimensions\n ------------------------------------------------------------------------------------------------------------------*/\n getAllDayMaxEventProps() {\n let { dayMaxEvents, dayMaxEventRows } = this.context.options;\n if (dayMaxEvents === true || dayMaxEventRows === true) { // is auto?\n dayMaxEvents = undefined;\n dayMaxEventRows = AUTO_ALL_DAY_MAX_EVENT_ROWS; // make sure \"auto\" goes to a real number\n }\n return { dayMaxEvents, dayMaxEventRows };\n }\n}\nfunction renderAllDayInner(renderProps) {\n return renderProps.text;\n}\n\nclass TimeColsSlatsCoords {\n constructor(positions, dateProfile, slotDuration) {\n this.positions = positions;\n this.dateProfile = dateProfile;\n this.slotDuration = slotDuration;\n }\n safeComputeTop(date) {\n let { dateProfile } = this;\n if (rangeContainsMarker(dateProfile.currentRange, date)) {\n let startOfDayDate = startOfDay(date);\n let timeMs = date.valueOf() - startOfDayDate.valueOf();\n if (timeMs >= asRoughMs(dateProfile.slotMinTime) &&\n timeMs < asRoughMs(dateProfile.slotMaxTime)) {\n return this.computeTimeTop(createDuration(timeMs));\n }\n }\n return null;\n }\n // Computes the top coordinate, relative to the bounds of the grid, of the given date.\n // A `startOfDayDate` must be given for avoiding ambiguity over how to treat midnight.\n computeDateTop(when, startOfDayDate) {\n if (!startOfDayDate) {\n startOfDayDate = startOfDay(when);\n }\n return this.computeTimeTop(createDuration(when.valueOf() - startOfDayDate.valueOf()));\n }\n // Computes the top coordinate, relative to the bounds of the grid, of the given time (a Duration).\n // This is a makeshify way to compute the time-top. Assumes all slatMetas dates are uniform.\n // Eventually allow computation with arbirary slat dates.\n computeTimeTop(duration) {\n let { positions, dateProfile } = this;\n let len = positions.els.length;\n // floating-point value of # of slots covered\n let slatCoverage = (duration.milliseconds - asRoughMs(dateProfile.slotMinTime)) / asRoughMs(this.slotDuration);\n let slatIndex;\n let slatRemainder;\n // compute a floating-point number for how many slats should be progressed through.\n // from 0 to number of slats (inclusive)\n // constrained because slotMinTime/slotMaxTime might be customized.\n slatCoverage = Math.max(0, slatCoverage);\n slatCoverage = Math.min(len, slatCoverage);\n // an integer index of the furthest whole slat\n // from 0 to number slats (*exclusive*, so len-1)\n slatIndex = Math.floor(slatCoverage);\n slatIndex = Math.min(slatIndex, len - 1);\n // how much further through the slatIndex slat (from 0.0-1.0) must be covered in addition.\n // could be 1.0 if slatCoverage is covering *all* the slots\n slatRemainder = slatCoverage - slatIndex;\n return positions.tops[slatIndex] +\n positions.getHeight(slatIndex) * slatRemainder;\n }\n}\n\nclass TimeColsSlatsBody extends BaseComponent {\n render() {\n let { props, context } = this;\n let { options } = context;\n let { slatElRefs } = props;\n return (createElement(\"tbody\", null, props.slatMetas.map((slatMeta, i) => {\n let renderProps = {\n time: slatMeta.time,\n date: context.dateEnv.toDate(slatMeta.date),\n view: context.viewApi,\n };\n return (createElement(\"tr\", { key: slatMeta.key, ref: slatElRefs.createRef(slatMeta.key) },\n props.axis && (createElement(TimeColsAxisCell, Object.assign({}, slatMeta))),\n createElement(ContentContainer, { elTag: \"td\", elClasses: [\n 'fc-timegrid-slot',\n 'fc-timegrid-slot-lane',\n !slatMeta.isLabeled && 'fc-timegrid-slot-minor',\n ], elAttrs: {\n 'data-time': slatMeta.isoTimeStr,\n }, renderProps: renderProps, generatorName: \"slotLaneContent\", customGenerator: options.slotLaneContent, classNameGenerator: options.slotLaneClassNames, didMount: options.slotLaneDidMount, willUnmount: options.slotLaneWillUnmount })));\n })));\n }\n}\n\n/*\nfor the horizontal \"slats\" that run width-wise. Has a time axis on a side. Depends on RTL.\n*/\nclass TimeColsSlats extends BaseComponent {\n constructor() {\n super(...arguments);\n this.rootElRef = createRef();\n this.slatElRefs = new RefMap();\n }\n render() {\n let { props, context } = this;\n return (createElement(\"div\", { ref: this.rootElRef, className: \"fc-timegrid-slots\" },\n createElement(\"table\", { \"aria-hidden\": true, className: context.theme.getClass('table'), style: {\n minWidth: props.tableMinWidth,\n width: props.clientWidth,\n height: props.minHeight,\n } },\n props.tableColGroupNode /* relies on there only being a single <col> for the axis */,\n createElement(TimeColsSlatsBody, { slatElRefs: this.slatElRefs, axis: props.axis, slatMetas: props.slatMetas }))));\n }\n componentDidMount() {\n this.updateSizing();\n }\n componentDidUpdate() {\n this.updateSizing();\n }\n componentWillUnmount() {\n if (this.props.onCoords) {\n this.props.onCoords(null);\n }\n }\n updateSizing() {\n let { context, props } = this;\n if (props.onCoords &&\n props.clientWidth !== null // means sizing has stabilized\n ) {\n let rootEl = this.rootElRef.current;\n if (rootEl.offsetHeight) { // not hidden by css\n props.onCoords(new TimeColsSlatsCoords(new PositionCache(this.rootElRef.current, collectSlatEls(this.slatElRefs.currentMap, props.slatMetas), false, true), this.props.dateProfile, context.options.slotDuration));\n }\n }\n }\n}\nfunction collectSlatEls(elMap, slatMetas) {\n return slatMetas.map((slatMeta) => elMap[slatMeta.key]);\n}\n\nfunction splitSegsByCol(segs, colCnt) {\n let segsByCol = [];\n let i;\n for (i = 0; i < colCnt; i += 1) {\n segsByCol.push([]);\n }\n if (segs) {\n for (i = 0; i < segs.length; i += 1) {\n segsByCol[segs[i].col].push(segs[i]);\n }\n }\n return segsByCol;\n}\nfunction splitInteractionByCol(ui, colCnt) {\n let byRow = [];\n if (!ui) {\n for (let i = 0; i < colCnt; i += 1) {\n byRow[i] = null;\n }\n }\n else {\n for (let i = 0; i < colCnt; i += 1) {\n byRow[i] = {\n affectedInstances: ui.affectedInstances,\n isEvent: ui.isEvent,\n segs: [],\n };\n }\n for (let seg of ui.segs) {\n byRow[seg.col].segs.push(seg);\n }\n }\n return byRow;\n}\n\nclass TimeColMoreLink extends BaseComponent {\n render() {\n let { props } = this;\n return (createElement(MoreLinkContainer, { elClasses: ['fc-timegrid-more-link'], elStyle: {\n top: props.top,\n bottom: props.bottom,\n }, allDayDate: null, moreCnt: props.hiddenSegs.length, allSegs: props.hiddenSegs, hiddenSegs: props.hiddenSegs, extraDateSpan: props.extraDateSpan, dateProfile: props.dateProfile, todayRange: props.todayRange, popoverContent: () => renderPlainFgSegs(props.hiddenSegs, props), defaultGenerator: renderMoreLinkInner, forceTimed: true }, (InnerContent) => (createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-timegrid-more-link-inner', 'fc-sticky'] }))));\n }\n}\nfunction renderMoreLinkInner(props) {\n return props.shortText;\n}\n\n// segInputs assumed sorted\nfunction buildPositioning(segInputs, strictOrder, maxStackCnt) {\n let hierarchy = new SegHierarchy();\n if (strictOrder != null) {\n hierarchy.strictOrder = strictOrder;\n }\n if (maxStackCnt != null) {\n hierarchy.maxStackCnt = maxStackCnt;\n }\n let hiddenEntries = hierarchy.addSegs(segInputs);\n let hiddenGroups = groupIntersectingEntries(hiddenEntries);\n let web = buildWeb(hierarchy);\n web = stretchWeb(web, 1); // all levelCoords/thickness will have 0.0-1.0\n let segRects = webToRects(web);\n return { segRects, hiddenGroups };\n}\nfunction buildWeb(hierarchy) {\n const { entriesByLevel } = hierarchy;\n const buildNode = cacheable((level, lateral) => level + ':' + lateral, (level, lateral) => {\n let siblingRange = findNextLevelSegs(hierarchy, level, lateral);\n let nextLevelRes = buildNodes(siblingRange, buildNode);\n let entry = entriesByLevel[level][lateral];\n return [\n Object.assign(Object.assign({}, entry), { nextLevelNodes: nextLevelRes[0] }),\n entry.thickness + nextLevelRes[1], // the pressure builds\n ];\n });\n return buildNodes(entriesByLevel.length\n ? { level: 0, lateralStart: 0, lateralEnd: entriesByLevel[0].length }\n : null, buildNode)[0];\n}\nfunction buildNodes(siblingRange, buildNode) {\n if (!siblingRange) {\n return [[], 0];\n }\n let { level, lateralStart, lateralEnd } = siblingRange;\n let lateral = lateralStart;\n let pairs = [];\n while (lateral < lateralEnd) {\n pairs.push(buildNode(level, lateral));\n lateral += 1;\n }\n pairs.sort(cmpDescPressures);\n return [\n pairs.map(extractNode),\n pairs[0][1], // first item's pressure\n ];\n}\nfunction cmpDescPressures(a, b) {\n return b[1] - a[1];\n}\nfunction extractNode(a) {\n return a[0];\n}\nfunction findNextLevelSegs(hierarchy, subjectLevel, subjectLateral) {\n let { levelCoords, entriesByLevel } = hierarchy;\n let subjectEntry = entriesByLevel[subjectLevel][subjectLateral];\n let afterSubject = levelCoords[subjectLevel] + subjectEntry.thickness;\n let levelCnt = levelCoords.length;\n let level = subjectLevel;\n // skip past levels that are too high up\n for (; level < levelCnt && levelCoords[level] < afterSubject; level += 1)\n ; // do nothing\n for (; level < levelCnt; level += 1) {\n let entries = entriesByLevel[level];\n let entry;\n let searchIndex = binarySearch(entries, subjectEntry.span.start, getEntrySpanEnd);\n let lateralStart = searchIndex[0] + searchIndex[1]; // if exact match (which doesn't collide), go to next one\n let lateralEnd = lateralStart;\n while ( // loop through entries that horizontally intersect\n (entry = entries[lateralEnd]) && // but not past the whole seg list\n entry.span.start < subjectEntry.span.end) {\n lateralEnd += 1;\n }\n if (lateralStart < lateralEnd) {\n return { level, lateralStart, lateralEnd };\n }\n }\n return null;\n}\nfunction stretchWeb(topLevelNodes, totalThickness) {\n const stretchNode = cacheable((node, startCoord, prevThickness) => buildEntryKey(node), (node, startCoord, prevThickness) => {\n let { nextLevelNodes, thickness } = node;\n let allThickness = thickness + prevThickness;\n let thicknessFraction = thickness / allThickness;\n let endCoord;\n let newChildren = [];\n if (!nextLevelNodes.length) {\n endCoord = totalThickness;\n }\n else {\n for (let childNode of nextLevelNodes) {\n if (endCoord === undefined) {\n let res = stretchNode(childNode, startCoord, allThickness);\n endCoord = res[0];\n newChildren.push(res[1]);\n }\n else {\n let res = stretchNode(childNode, endCoord, 0);\n newChildren.push(res[1]);\n }\n }\n }\n let newThickness = (endCoord - startCoord) * thicknessFraction;\n return [endCoord - newThickness, Object.assign(Object.assign({}, node), { thickness: newThickness, nextLevelNodes: newChildren })];\n });\n return topLevelNodes.map((node) => stretchNode(node, 0, 0)[1]);\n}\n// not sorted in any particular order\nfunction webToRects(topLevelNodes) {\n let rects = [];\n const processNode = cacheable((node, levelCoord, stackDepth) => buildEntryKey(node), (node, levelCoord, stackDepth) => {\n let rect = Object.assign(Object.assign({}, node), { levelCoord,\n stackDepth, stackForward: 0 });\n rects.push(rect);\n return (rect.stackForward = processNodes(node.nextLevelNodes, levelCoord + node.thickness, stackDepth + 1) + 1);\n });\n function processNodes(nodes, levelCoord, stackDepth) {\n let stackForward = 0;\n for (let node of nodes) {\n stackForward = Math.max(processNode(node, levelCoord, stackDepth), stackForward);\n }\n return stackForward;\n }\n processNodes(topLevelNodes, 0, 0);\n return rects; // TODO: sort rects by levelCoord to be consistent with toRects?\n}\n// TODO: move to general util\nfunction cacheable(keyFunc, workFunc) {\n const cache = {};\n return (...args) => {\n let key = keyFunc(...args);\n return (key in cache)\n ? cache[key]\n : (cache[key] = workFunc(...args));\n };\n}\n\nfunction computeSegVCoords(segs, colDate, slatCoords = null, eventMinHeight = 0) {\n let vcoords = [];\n if (slatCoords) {\n for (let i = 0; i < segs.length; i += 1) {\n let seg = segs[i];\n let spanStart = slatCoords.computeDateTop(seg.start, colDate);\n let spanEnd = Math.max(spanStart + (eventMinHeight || 0), // :(\n slatCoords.computeDateTop(seg.end, colDate));\n vcoords.push({\n start: Math.round(spanStart),\n end: Math.round(spanEnd), //\n });\n }\n }\n return vcoords;\n}\nfunction computeFgSegPlacements(segs, segVCoords, // might not have for every seg\neventOrderStrict, eventMaxStack) {\n let segInputs = [];\n let dumbSegs = []; // segs without coords\n for (let i = 0; i < segs.length; i += 1) {\n let vcoords = segVCoords[i];\n if (vcoords) {\n segInputs.push({\n index: i,\n thickness: 1,\n span: vcoords,\n });\n }\n else {\n dumbSegs.push(segs[i]);\n }\n }\n let { segRects, hiddenGroups } = buildPositioning(segInputs, eventOrderStrict, eventMaxStack);\n let segPlacements = [];\n for (let segRect of segRects) {\n segPlacements.push({\n seg: segs[segRect.index],\n rect: segRect,\n });\n }\n for (let dumbSeg of dumbSegs) {\n segPlacements.push({ seg: dumbSeg, rect: null });\n }\n return { segPlacements, hiddenGroups };\n}\n\nconst DEFAULT_TIME_FORMAT = createFormatter({\n hour: 'numeric',\n minute: '2-digit',\n meridiem: false,\n});\nclass TimeColEvent extends BaseComponent {\n render() {\n return (createElement(StandardEvent, Object.assign({}, this.props, { elClasses: [\n 'fc-timegrid-event',\n 'fc-v-event',\n this.props.isShort && 'fc-timegrid-event-short',\n ], defaultTimeFormat: DEFAULT_TIME_FORMAT })));\n }\n}\n\nclass TimeCol extends BaseComponent {\n constructor() {\n super(...arguments);\n this.sortEventSegs = memoize(sortEventSegs);\n }\n // TODO: memoize event-placement?\n render() {\n let { props, context } = this;\n let { options } = context;\n let isSelectMirror = options.selectMirror;\n let mirrorSegs = // yuck\n (props.eventDrag && props.eventDrag.segs) ||\n (props.eventResize && props.eventResize.segs) ||\n (isSelectMirror && props.dateSelectionSegs) ||\n [];\n let interactionAffectedInstances = // TODO: messy way to compute this\n (props.eventDrag && props.eventDrag.affectedInstances) ||\n (props.eventResize && props.eventResize.affectedInstances) ||\n {};\n let sortedFgSegs = this.sortEventSegs(props.fgEventSegs, options.eventOrder);\n return (createElement(DayCellContainer, { elTag: \"td\", elRef: props.elRef, elClasses: [\n 'fc-timegrid-col',\n ...(props.extraClassNames || []),\n ], elAttrs: Object.assign({ role: 'gridcell' }, props.extraDataAttrs), date: props.date, dateProfile: props.dateProfile, todayRange: props.todayRange, extraRenderProps: props.extraRenderProps }, (InnerContent) => (createElement(\"div\", { className: \"fc-timegrid-col-frame\" },\n createElement(\"div\", { className: \"fc-timegrid-col-bg\" },\n this.renderFillSegs(props.businessHourSegs, 'non-business'),\n this.renderFillSegs(props.bgEventSegs, 'bg-event'),\n this.renderFillSegs(props.dateSelectionSegs, 'highlight')),\n createElement(\"div\", { className: \"fc-timegrid-col-events\" }, this.renderFgSegs(sortedFgSegs, interactionAffectedInstances, false, false, false)),\n createElement(\"div\", { className: \"fc-timegrid-col-events\" }, this.renderFgSegs(mirrorSegs, {}, Boolean(props.eventDrag), Boolean(props.eventResize), Boolean(isSelectMirror), 'mirror')),\n createElement(\"div\", { className: \"fc-timegrid-now-indicator-container\" }, this.renderNowIndicator(props.nowIndicatorSegs)),\n hasCustomDayCellContent(options) && (createElement(InnerContent, { elTag: \"div\", elClasses: ['fc-timegrid-col-misc'] }))))));\n }\n renderFgSegs(sortedFgSegs, segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey) {\n let { props } = this;\n if (props.forPrint) {\n return renderPlainFgSegs(sortedFgSegs, props);\n }\n return this.renderPositionedFgSegs(sortedFgSegs, segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey);\n }\n renderPositionedFgSegs(segs, // if not mirror, needs to be sorted\n segIsInvisible, isDragging, isResizing, isDateSelecting, forcedKey) {\n let { eventMaxStack, eventShortHeight, eventOrderStrict, eventMinHeight } = this.context.options;\n let { date, slatCoords, eventSelection, todayRange, nowDate } = this.props;\n let isMirror = isDragging || isResizing || isDateSelecting;\n let segVCoords = computeSegVCoords(segs, date, slatCoords, eventMinHeight);\n let { segPlacements, hiddenGroups } = computeFgSegPlacements(segs, segVCoords, eventOrderStrict, eventMaxStack);\n return (createElement(Fragment, null,\n this.renderHiddenGroups(hiddenGroups, segs),\n segPlacements.map((segPlacement) => {\n let { seg, rect } = segPlacement;\n let instanceId = seg.eventRange.instance.instanceId;\n let isVisible = isMirror || Boolean(!segIsInvisible[instanceId] && rect);\n let vStyle = computeSegVStyle(rect && rect.span);\n let hStyle = (!isMirror && rect) ? this.computeSegHStyle(rect) : { left: 0, right: 0 };\n let isInset = Boolean(rect) && rect.stackForward > 0;\n let isShort = Boolean(rect) && (rect.span.end - rect.span.start) < eventShortHeight; // look at other places for this problem\n return (createElement(\"div\", { className: 'fc-timegrid-event-harness' +\n (isInset ? ' fc-timegrid-event-harness-inset' : ''), key: forcedKey || instanceId, style: Object.assign(Object.assign({ visibility: isVisible ? '' : 'hidden' }, vStyle), hStyle) },\n createElement(TimeColEvent, Object.assign({ seg: seg, isDragging: isDragging, isResizing: isResizing, isDateSelecting: isDateSelecting, isSelected: instanceId === eventSelection, isShort: isShort }, getSegMeta(seg, todayRange, nowDate)))));\n })));\n }\n // will already have eventMinHeight applied because segInputs already had it\n renderHiddenGroups(hiddenGroups, segs) {\n let { extraDateSpan, dateProfile, todayRange, nowDate, eventSelection, eventDrag, eventResize } = this.props;\n return (createElement(Fragment, null, hiddenGroups.map((hiddenGroup) => {\n let positionCss = computeSegVStyle(hiddenGroup.span);\n let hiddenSegs = compileSegsFromEntries(hiddenGroup.entries, segs);\n return (createElement(TimeColMoreLink, { key: buildIsoString(computeEarliestSegStart(hiddenSegs)), hiddenSegs: hiddenSegs, top: positionCss.top, bottom: positionCss.bottom, extraDateSpan: extraDateSpan, dateProfile: dateProfile, todayRange: todayRange, nowDate: nowDate, eventSelection: eventSelection, eventDrag: eventDrag, eventResize: eventResize }));\n })));\n }\n renderFillSegs(segs, fillType) {\n let { props, context } = this;\n let segVCoords = computeSegVCoords(segs, props.date, props.slatCoords, context.options.eventMinHeight); // don't assume all populated\n let children = segVCoords.map((vcoords, i) => {\n let seg = segs[i];\n return (createElement(\"div\", { key: buildEventRangeKey(seg.eventRange), className: \"fc-timegrid-bg-harness\", style: computeSegVStyle(vcoords) }, fillType === 'bg-event' ?\n createElement(BgEvent, Object.assign({ seg: seg }, getSegMeta(seg, props.todayRange, props.nowDate))) :\n renderFill(fillType)));\n });\n return createElement(Fragment, null, children);\n }\n renderNowIndicator(segs) {\n let { slatCoords, date } = this.props;\n if (!slatCoords) {\n return null;\n }\n return segs.map((seg, i) => (createElement(NowIndicatorContainer\n // key doesn't matter. will only ever be one\n , { \n // key doesn't matter. will only ever be one\n key: i, elClasses: ['fc-timegrid-now-indicator-line'], elStyle: {\n top: slatCoords.computeDateTop(seg.start, date),\n }, isAxis: false, date: date })));\n }\n computeSegHStyle(segHCoords) {\n let { isRtl, options } = this.context;\n let shouldOverlap = options.slotEventOverlap;\n let nearCoord = segHCoords.levelCoord; // the left side if LTR. the right side if RTL. floating-point\n let farCoord = segHCoords.levelCoord + segHCoords.thickness; // the right side if LTR. the left side if RTL. floating-point\n let left; // amount of space from left edge, a fraction of the total width\n let right; // amount of space from right edge, a fraction of the total width\n if (shouldOverlap) {\n // double the width, but don't go beyond the maximum forward coordinate (1.0)\n farCoord = Math.min(1, nearCoord + (farCoord - nearCoord) * 2);\n }\n if (isRtl) {\n left = 1 - farCoord;\n right = nearCoord;\n }\n else {\n left = nearCoord;\n right = 1 - farCoord;\n }\n let props = {\n zIndex: segHCoords.stackDepth + 1,\n left: left * 100 + '%',\n right: right * 100 + '%',\n };\n if (shouldOverlap && !segHCoords.stackForward) {\n // add padding to the edge so that forward stacked events don't cover the resizer's icon\n props[isRtl ? 'marginLeft' : 'marginRight'] = 10 * 2; // 10 is a guesstimate of the icon's width\n }\n return props;\n }\n}\nfunction renderPlainFgSegs(sortedFgSegs, { todayRange, nowDate, eventSelection, eventDrag, eventResize }) {\n let hiddenInstances = (eventDrag ? eventDrag.affectedInstances : null) ||\n (eventResize ? eventResize.affectedInstances : null) ||\n {};\n return (createElement(Fragment, null, sortedFgSegs.map((seg) => {\n let instanceId = seg.eventRange.instance.instanceId;\n return (createElement(\"div\", { key: instanceId, style: { visibility: hiddenInstances[instanceId] ? 'hidden' : '' } },\n createElement(TimeColEvent, Object.assign({ seg: seg, isDragging: false, isResizing: false, isDateSelecting: false, isSelected: instanceId === eventSelection, isShort: false }, getSegMeta(seg, todayRange, nowDate)))));\n })));\n}\nfunction computeSegVStyle(segVCoords) {\n if (!segVCoords) {\n return { top: '', bottom: '' };\n }\n return {\n top: segVCoords.start,\n bottom: -segVCoords.end,\n };\n}\nfunction compileSegsFromEntries(segEntries, allSegs) {\n return segEntries.map((segEntry) => allSegs[segEntry.index]);\n}\n\nclass TimeColsContent extends BaseComponent {\n constructor() {\n super(...arguments);\n this.splitFgEventSegs = memoize(splitSegsByCol);\n this.splitBgEventSegs = memoize(splitSegsByCol);\n this.splitBusinessHourSegs = memoize(splitSegsByCol);\n this.splitNowIndicatorSegs = memoize(splitSegsByCol);\n this.splitDateSelectionSegs = memoize(splitSegsByCol);\n this.splitEventDrag = memoize(splitInteractionByCol);\n this.splitEventResize = memoize(splitInteractionByCol);\n this.rootElRef = createRef();\n this.cellElRefs = new RefMap();\n }\n render() {\n let { props, context } = this;\n let nowIndicatorTop = context.options.nowIndicator &&\n props.slatCoords &&\n props.slatCoords.safeComputeTop(props.nowDate); // might return void\n let colCnt = props.cells.length;\n let fgEventSegsByRow = this.splitFgEventSegs(props.fgEventSegs, colCnt);\n let bgEventSegsByRow = this.splitBgEventSegs(props.bgEventSegs, colCnt);\n let businessHourSegsByRow = this.splitBusinessHourSegs(props.businessHourSegs, colCnt);\n let nowIndicatorSegsByRow = this.splitNowIndicatorSegs(props.nowIndicatorSegs, colCnt);\n let dateSelectionSegsByRow = this.splitDateSelectionSegs(props.dateSelectionSegs, colCnt);\n let eventDragByRow = this.splitEventDrag(props.eventDrag, colCnt);\n let eventResizeByRow = this.splitEventResize(props.eventResize, colCnt);\n return (createElement(\"div\", { className: \"fc-timegrid-cols\", ref: this.rootElRef },\n createElement(\"table\", { role: \"presentation\", style: {\n minWidth: props.tableMinWidth,\n width: props.clientWidth,\n } },\n props.tableColGroupNode,\n createElement(\"tbody\", { role: \"presentation\" },\n createElement(\"tr\", { role: \"row\" },\n props.axis && (createElement(\"td\", { \"aria-hidden\": true, className: \"fc-timegrid-col fc-timegrid-axis\" },\n createElement(\"div\", { className: \"fc-timegrid-col-frame\" },\n createElement(\"div\", { className: \"fc-timegrid-now-indicator-container\" }, typeof nowIndicatorTop === 'number' && (createElement(NowIndicatorContainer, { elClasses: ['fc-timegrid-now-indicator-arrow'], elStyle: { top: nowIndicatorTop }, isAxis: true, date: props.nowDate })))))),\n props.cells.map((cell, i) => (createElement(TimeCol, { key: cell.key, elRef: this.cellElRefs.createRef(cell.key), dateProfile: props.dateProfile, date: cell.date, nowDate: props.nowDate, todayRange: props.todayRange, extraRenderProps: cell.extraRenderProps, extraDataAttrs: cell.extraDataAttrs, extraClassNames: cell.extraClassNames, extraDateSpan: cell.extraDateSpan, fgEventSegs: fgEventSegsByRow[i], bgEventSegs: bgEventSegsByRow[i], businessHourSegs: businessHourSegsByRow[i], nowIndicatorSegs: nowIndicatorSegsByRow[i], dateSelectionSegs: dateSelectionSegsByRow[i], eventDrag: eventDragByRow[i], eventResize: eventResizeByRow[i], slatCoords: props.slatCoords, eventSelection: props.eventSelection, forPrint: props.forPrint }))))))));\n }\n componentDidMount() {\n this.updateCoords();\n }\n componentDidUpdate() {\n this.updateCoords();\n }\n updateCoords() {\n let { props } = this;\n if (props.onColCoords &&\n props.clientWidth !== null // means sizing has stabilized\n ) {\n props.onColCoords(new PositionCache(this.rootElRef.current, collectCellEls(this.cellElRefs.currentMap, props.cells), true, // horizontal\n false));\n }\n }\n}\nfunction collectCellEls(elMap, cells) {\n return cells.map((cell) => elMap[cell.key]);\n}\n\n/* A component that renders one or more columns of vertical time slots\n----------------------------------------------------------------------------------------------------------------------*/\nclass TimeCols extends DateComponent {\n constructor() {\n super(...arguments);\n this.processSlotOptions = memoize(processSlotOptions);\n this.state = {\n slatCoords: null,\n };\n this.handleRootEl = (el) => {\n if (el) {\n this.context.registerInteractiveComponent(this, {\n el,\n isHitComboAllowed: this.props.isHitComboAllowed,\n });\n }\n else {\n this.context.unregisterInteractiveComponent(this);\n }\n };\n this.handleScrollRequest = (request) => {\n let { onScrollTopRequest } = this.props;\n let { slatCoords } = this.state;\n if (onScrollTopRequest && slatCoords) {\n if (request.time) {\n let top = slatCoords.computeTimeTop(request.time);\n top = Math.ceil(top); // zoom can give weird floating-point values. rather scroll a little bit further\n if (top) {\n top += 1; // to overcome top border that slots beyond the first have. looks better\n }\n onScrollTopRequest(top);\n }\n return true;\n }\n return false;\n };\n this.handleColCoords = (colCoords) => {\n this.colCoords = colCoords;\n };\n this.handleSlatCoords = (slatCoords) => {\n this.setState({ slatCoords });\n if (this.props.onSlatCoords) {\n this.props.onSlatCoords(slatCoords);\n }\n };\n }\n render() {\n let { props, state } = this;\n return (createElement(\"div\", { className: \"fc-timegrid-body\", ref: this.handleRootEl, style: {\n // these props are important to give this wrapper correct dimensions for interactions\n // TODO: if we set it here, can we avoid giving to inner tables?\n width: props.clientWidth,\n minWidth: props.tableMinWidth,\n } },\n createElement(TimeColsSlats, { axis: props.axis, dateProfile: props.dateProfile, slatMetas: props.slatMetas, clientWidth: props.clientWidth, minHeight: props.expandRows ? props.clientHeight : '', tableMinWidth: props.tableMinWidth, tableColGroupNode: props.axis ? props.tableColGroupNode : null /* axis depends on the colgroup's shrinking */, onCoords: this.handleSlatCoords }),\n createElement(TimeColsContent, { cells: props.cells, axis: props.axis, dateProfile: props.dateProfile, businessHourSegs: props.businessHourSegs, bgEventSegs: props.bgEventSegs, fgEventSegs: props.fgEventSegs, dateSelectionSegs: props.dateSelectionSegs, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange, nowDate: props.nowDate, nowIndicatorSegs: props.nowIndicatorSegs, clientWidth: props.clientWidth, tableMinWidth: props.tableMinWidth, tableColGroupNode: props.tableColGroupNode, slatCoords: state.slatCoords, onColCoords: this.handleColCoords, forPrint: props.forPrint })));\n }\n componentDidMount() {\n this.scrollResponder = this.context.createScrollResponder(this.handleScrollRequest);\n }\n componentDidUpdate(prevProps) {\n this.scrollResponder.update(prevProps.dateProfile !== this.props.dateProfile);\n }\n componentWillUnmount() {\n this.scrollResponder.detach();\n }\n queryHit(positionLeft, positionTop) {\n let { dateEnv, options } = this.context;\n let { colCoords } = this;\n let { dateProfile } = this.props;\n let { slatCoords } = this.state;\n let { snapDuration, snapsPerSlot } = this.processSlotOptions(this.props.slotDuration, options.snapDuration);\n let colIndex = colCoords.leftToIndex(positionLeft);\n let slatIndex = slatCoords.positions.topToIndex(positionTop);\n if (colIndex != null && slatIndex != null) {\n let cell = this.props.cells[colIndex];\n let slatTop = slatCoords.positions.tops[slatIndex];\n let slatHeight = slatCoords.positions.getHeight(slatIndex);\n let partial = (positionTop - slatTop) / slatHeight; // floating point number between 0 and 1\n let localSnapIndex = Math.floor(partial * snapsPerSlot); // the snap # relative to start of slat\n let snapIndex = slatIndex * snapsPerSlot + localSnapIndex;\n let dayDate = this.props.cells[colIndex].date;\n let time = addDurations(dateProfile.slotMinTime, multiplyDuration(snapDuration, snapIndex));\n let start = dateEnv.add(dayDate, time);\n let end = dateEnv.add(start, snapDuration);\n return {\n dateProfile,\n dateSpan: Object.assign({ range: { start, end }, allDay: false }, cell.extraDateSpan),\n dayEl: colCoords.els[colIndex],\n rect: {\n left: colCoords.lefts[colIndex],\n right: colCoords.rights[colIndex],\n top: slatTop,\n bottom: slatTop + slatHeight,\n },\n layer: 0,\n };\n }\n return null;\n }\n}\nfunction processSlotOptions(slotDuration, snapDurationOverride) {\n let snapDuration = snapDurationOverride || slotDuration;\n let snapsPerSlot = wholeDivideDurations(slotDuration, snapDuration);\n if (snapsPerSlot === null) {\n snapDuration = slotDuration;\n snapsPerSlot = 1;\n // TODO: say warning?\n }\n return { snapDuration, snapsPerSlot };\n}\n\nclass DayTimeColsSlicer extends Slicer {\n sliceRange(range, dayRanges) {\n let segs = [];\n for (let col = 0; col < dayRanges.length; col += 1) {\n let segRange = intersectRanges(range, dayRanges[col]);\n if (segRange) {\n segs.push({\n start: segRange.start,\n end: segRange.end,\n isStart: segRange.start.valueOf() === range.start.valueOf(),\n isEnd: segRange.end.valueOf() === range.end.valueOf(),\n col,\n });\n }\n }\n return segs;\n }\n}\n\nclass DayTimeCols extends DateComponent {\n constructor() {\n super(...arguments);\n this.buildDayRanges = memoize(buildDayRanges);\n this.slicer = new DayTimeColsSlicer();\n this.timeColsRef = createRef();\n }\n render() {\n let { props, context } = this;\n let { dateProfile, dayTableModel } = props;\n let { nowIndicator, nextDayThreshold } = context.options;\n let dayRanges = this.buildDayRanges(dayTableModel, dateProfile, context.dateEnv);\n // give it the first row of cells\n // TODO: would move this further down hierarchy, but sliceNowDate needs it\n return (createElement(NowTimer, { unit: nowIndicator ? 'minute' : 'day' }, (nowDate, todayRange) => (createElement(TimeCols, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(props, dateProfile, null, context, dayRanges), { forPrint: props.forPrint, axis: props.axis, dateProfile: dateProfile, slatMetas: props.slatMetas, slotDuration: props.slotDuration, cells: dayTableModel.cells[0], tableColGroupNode: props.tableColGroupNode, tableMinWidth: props.tableMinWidth, clientWidth: props.clientWidth, clientHeight: props.clientHeight, expandRows: props.expandRows, nowDate: nowDate, nowIndicatorSegs: nowIndicator && this.slicer.sliceNowDate(nowDate, dateProfile, nextDayThreshold, context, dayRanges), todayRange: todayRange, onScrollTopRequest: props.onScrollTopRequest, onSlatCoords: props.onSlatCoords })))));\n }\n}\nfunction buildDayRanges(dayTableModel, dateProfile, dateEnv) {\n let ranges = [];\n for (let date of dayTableModel.headerDates) {\n ranges.push({\n start: dateEnv.add(date, dateProfile.slotMinTime),\n end: dateEnv.add(date, dateProfile.slotMaxTime),\n });\n }\n return ranges;\n}\n\n// potential nice values for the slot-duration and interval-duration\n// from largest to smallest\nconst STOCK_SUB_DURATIONS = [\n { hours: 1 },\n { minutes: 30 },\n { minutes: 15 },\n { seconds: 30 },\n { seconds: 15 },\n];\nfunction buildSlatMetas(slotMinTime, slotMaxTime, explicitLabelInterval, slotDuration, dateEnv) {\n let dayStart = new Date(0);\n let slatTime = slotMinTime;\n let slatIterator = createDuration(0);\n let labelInterval = explicitLabelInterval || computeLabelInterval(slotDuration);\n let metas = [];\n while (asRoughMs(slatTime) < asRoughMs(slotMaxTime)) {\n let date = dateEnv.add(dayStart, slatTime);\n let isLabeled = wholeDivideDurations(slatIterator, labelInterval) !== null;\n metas.push({\n date,\n time: slatTime,\n key: date.toISOString(),\n isoTimeStr: formatIsoTimeString(date),\n isLabeled,\n });\n slatTime = addDurations(slatTime, slotDuration);\n slatIterator = addDurations(slatIterator, slotDuration);\n }\n return metas;\n}\n// Computes an automatic value for slotLabelInterval\nfunction computeLabelInterval(slotDuration) {\n let i;\n let labelInterval;\n let slotsPerLabel;\n // find the smallest stock label interval that results in more than one slots-per-label\n for (i = STOCK_SUB_DURATIONS.length - 1; i >= 0; i -= 1) {\n labelInterval = createDuration(STOCK_SUB_DURATIONS[i]);\n slotsPerLabel = wholeDivideDurations(labelInterval, slotDuration);\n if (slotsPerLabel !== null && slotsPerLabel > 1) {\n return labelInterval;\n }\n }\n return slotDuration; // fall back\n}\n\nclass DayTimeColsView extends TimeColsView {\n constructor() {\n super(...arguments);\n this.buildTimeColsModel = memoize(buildTimeColsModel);\n this.buildSlatMetas = memoize(buildSlatMetas);\n }\n render() {\n let { options, dateEnv, dateProfileGenerator } = this.context;\n let { props } = this;\n let { dateProfile } = props;\n let dayTableModel = this.buildTimeColsModel(dateProfile, dateProfileGenerator);\n let splitProps = this.allDaySplitter.splitProps(props);\n let slatMetas = this.buildSlatMetas(dateProfile.slotMinTime, dateProfile.slotMaxTime, options.slotLabelInterval, options.slotDuration, dateEnv);\n let { dayMinWidth } = options;\n let hasAttachedAxis = !dayMinWidth;\n let hasDetachedAxis = dayMinWidth;\n let headerContent = options.dayHeaders && (createElement(DayHeader, { dates: dayTableModel.headerDates, dateProfile: dateProfile, datesRepDistinctDays: true, renderIntro: hasAttachedAxis ? this.renderHeadAxis : null }));\n let allDayContent = (options.allDaySlot !== false) && ((contentArg) => (createElement(DayTable, Object.assign({}, splitProps.allDay, { dateProfile: dateProfile, dayTableModel: dayTableModel, nextDayThreshold: options.nextDayThreshold, tableMinWidth: contentArg.tableMinWidth, colGroupNode: contentArg.tableColGroupNode, renderRowIntro: hasAttachedAxis ? this.renderTableRowAxis : null, showWeekNumbers: false, expandRows: false, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }, this.getAllDayMaxEventProps()))));\n let timeGridContent = (contentArg) => (createElement(DayTimeCols, Object.assign({}, splitProps.timed, { dayTableModel: dayTableModel, dateProfile: dateProfile, axis: hasAttachedAxis, slotDuration: options.slotDuration, slatMetas: slatMetas, forPrint: props.forPrint, tableColGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: contentArg.expandRows, onScrollTopRequest: this.handleScrollTopRequest })));\n return hasDetachedAxis\n ? this.renderHScrollLayout(headerContent, allDayContent, timeGridContent, dayTableModel.colCnt, dayMinWidth, slatMetas, this.state.slatCoords)\n : this.renderSimpleLayout(headerContent, allDayContent, timeGridContent);\n }\n}\nfunction buildTimeColsModel(dateProfile, dateProfileGenerator) {\n let daySeries = new DaySeriesModel(dateProfile.renderRange, dateProfileGenerator);\n return new DayTableModel(daySeries, false);\n}\n\nvar css_248z = \".fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:\\\"\\\\00a0\\\"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:\\\"\\\\00a0-\\\\00a0\\\"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}\";\ninjectStyles(css_248z);\n\nexport { DayTimeCols, DayTimeColsSlicer, DayTimeColsView, TimeCols, TimeColsSlatsCoords, TimeColsView, buildDayRanges, buildSlatMetas, buildTimeColsModel };\n","import { createPlugin } from '@fullcalendar/core/index.js';\nimport { DayTimeColsView } from './internal.js';\nimport '@fullcalendar/core/internal.js';\nimport '@fullcalendar/core/preact.js';\nimport '@fullcalendar/daygrid/internal.js';\n\nconst OPTION_REFINERS = {\n allDaySlot: Boolean,\n};\n\nvar index = createPlugin({\n name: '@fullcalendar/timegrid',\n initialView: 'timeGridWeek',\n optionRefiners: OPTION_REFINERS,\n views: {\n timeGrid: {\n component: DayTimeColsView,\n usesMinMaxTime: true,\n allDaySlot: true,\n slotDuration: '00:30:00',\n slotEventOverlap: true, // a bad name. confused with overlap/constraint system\n },\n timeGridDay: {\n type: 'timeGrid',\n duration: { days: 1 },\n },\n timeGridWeek: {\n type: 'timeGrid',\n duration: { weeks: 1 },\n },\n },\n});\n\nexport { index as default };\n"],"names":["AllDaySplitter","Splitter","getKeyInfo","allDay","timed","getKeysForDateSpan","dateSpan","getKeysForEventDef","eventDef","hasBgRendering","DEFAULT_SLAT_LABEL_FORMAT","createFormatter","hour","minute","omitZeroMinute","meridiem","TimeColsAxisCell","props","classNames","isLabeled","createElement","ViewContextType","Consumer","context","className","join","isoTimeStr","dateEnv","options","viewApi","labelFormat","slotLabelFormat","Array","isArray","renderProps","level","time","date","toDate","view","text","format","ContentContainer","elTag","elClasses","elAttrs","generatorName","customGenerator","slotLabelContent","defaultGenerator","renderInnerContent","classNameGenerator","slotLabelClassNames","didMount","slotLabelDidMount","willUnmount","slotLabelWillUnmount","InnerContent","TimeBodyAxis","BaseComponent","render","this","slatMetas","map","slatMeta","key","Object","assign","DEFAULT_WEEK_NUM_FORMAT","week","TimeColsView","DateComponent","constructor","_this","super","arguments","allDaySplitter","headerElRef","createRef","rootElRef","scrollerElRef","state","slatCoords","handleScrollTopRequest","scrollTop","scrollerEl","current","renderHeadAxis","rowKey","frameHeight","length","undefined","dateProfile","range","renderRange","navLinkAttrs","diffDays","start","end","buildNavLinkAttrs","weekNumbers","WeekNumberContainer","defaultFormat","style","height","renderTableRowAxis","rowHeight","allDayText","allDayContent","renderAllDayInner","allDayClassNames","allDayDidMount","allDayWillUnmount","handleSlatCoords","setState","renderSimpleLayout","headerRowContent","timeContent","sections","stickyHeaderDates","getStickyHeaderDates","push","type","isSticky","chunk","elRef","tableClassName","rowContent","content","outerContent","role","theme","getClass","liquid","expandRows","Boolean","ViewContainer","viewSpec","SimpleScrollGrid","isHeightAuto","forPrint","collapsibleWidth","cols","width","renderHScrollLayout","colCnt","dayMinWidth","ScrollGrid","pluginHooks","scrollGridImpl","Error","stickyFooterScrollbar","getStickyFooterScrollbar","syncRowHeights","chunks","arg","rowSyncHeights","contentArg","colSpan","isNowIndicator","nowIndicator","clientHeight","tableColGroupNode","NowTimer","unit","nowDate","nowIndicatorTop","safeComputeTop","NowIndicatorContainer","elStyle","top","isAxis","renderScrollShim","colGroups","span","minWidth","getAllDayMaxEventProps","dayMaxEvents","dayMaxEventRows","TimeColsSlatsCoords","positions","slotDuration","rangeContainsMarker","currentRange","startOfDayDate","startOfDay","timeMs","valueOf","asRoughMs","slotMinTime","slotMaxTime","computeTimeTop","createDuration","computeDateTop","when","duration","slatIndex","slatRemainder","len","els","slatCoverage","milliseconds","Math","max","min","floor","tops","getHeight","TimeColsSlatsBody","slatElRefs","i","ref","axis","slotLaneContent","slotLaneClassNames","slotLaneDidMount","slotLaneWillUnmount","TimeColsSlats","RefMap","tableMinWidth","clientWidth","minHeight","componentDidMount","updateSizing","componentDidUpdate","componentWillUnmount","onCoords","offsetHeight","PositionCache","elMap","currentMap","splitSegsByCol","segs","segsByCol","col","splitInteractionByCol","ui","byRow","affectedInstances","isEvent","seg","TimeColMoreLink","MoreLinkContainer","bottom","allDayDate","moreCnt","hiddenSegs","allSegs","extraDateSpan","todayRange","popoverContent","renderPlainFgSegs","renderMoreLinkInner","forceTimed","shortText","buildPositioning","segInputs","strictOrder","maxStackCnt","hierarchy","SegHierarchy","hiddenEntries","addSegs","hiddenGroups","groupIntersectingEntries","web","entriesByLevel","buildNode","cacheable","lateral","siblingRange","subjectLevel","subjectLateral","levelCoords","subjectEntry","afterSubject","thickness","levelCnt","entry","entries","searchIndex","binarySearch","getEntrySpanEnd","lateralStart","lateralEnd","findNextLevelSegs","nextLevelRes","buildNodes","nextLevelNodes","buildWeb","topLevelNodes","totalThickness","stretchNode","node","startCoord","prevThickness","buildEntryKey","endCoord","allThickness","thicknessFraction","newChildren","childNode","res","newThickness","stretchWeb","segRects","rects","processNode","levelCoord","stackDepth","rect","stackForward","processNodes","nodes","webToRects","pairs","sort","cmpDescPressures","extractNode","a","b","keyFunc","workFunc","cache","computeSegVCoords","colDate","eventMinHeight","vcoords","spanStart","spanEnd","round","DEFAULT_TIME_FORMAT","TimeColEvent","StandardEvent","isShort","defaultTimeFormat","TimeCol","sortEventSegs","memoize","isSelectMirror","selectMirror","mirrorSegs","eventDrag","eventResize","dateSelectionSegs","interactionAffectedInstances","sortedFgSegs","fgEventSegs","eventOrder","DayCellContainer","extraClassNames","extraDataAttrs","extraRenderProps","renderFillSegs","businessHourSegs","bgEventSegs","renderFgSegs","renderNowIndicator","nowIndicatorSegs","hasCustomDayCellContent","segIsInvisible","isDragging","isResizing","isDateSelecting","forcedKey","renderPositionedFgSegs","eventMaxStack","eventShortHeight","eventOrderStrict","eventSelection","isMirror","segVCoords","segPlacements","dumbSegs","index","segRect","dumbSeg","computeFgSegPlacements","Fragment","renderHiddenGroups","segPlacement","instanceId","eventRange","instance","isVisible","vStyle","computeSegVStyle","hStyle","computeSegHStyle","left","right","isInset","visibility","isSelected","getSegMeta","hiddenGroup","positionCss","segEntries","segEntry","buildIsoString","computeEarliestSegStart","fillType","children","buildEventRangeKey","BgEvent","renderFill","segHCoords","isRtl","shouldOverlap","slotEventOverlap","nearCoord","farCoord","zIndex","_ref","hiddenInstances","TimeColsContent","splitFgEventSegs","splitBgEventSegs","splitBusinessHourSegs","splitNowIndicatorSegs","splitDateSelectionSegs","splitEventDrag","splitEventResize","cellElRefs","cells","fgEventSegsByRow","bgEventSegsByRow","businessHourSegsByRow","nowIndicatorSegsByRow","dateSelectionSegsByRow","eventDragByRow","eventResizeByRow","cell","updateCoords","onColCoords","TimeCols","processSlotOptions","handleRootEl","el","registerInteractiveComponent","isHitComboAllowed","unregisterInteractiveComponent","handleScrollRequest","request","onScrollTopRequest","ceil","handleColCoords","colCoords","onSlatCoords","scrollResponder","createScrollResponder","prevProps","update","detach","queryHit","positionLeft","positionTop","snapDuration","snapsPerSlot","colIndex","leftToIndex","topToIndex","slatTop","slatHeight","partial","snapIndex","dayDate","addDurations","multiplyDuration","add","dayEl","lefts","rights","layer","snapDurationOverride","wholeDivideDurations","DayTimeColsSlicer","Slicer","sliceRange","dayRanges","segRange","intersectRanges","isStart","isEnd","DayTimeCols","buildDayRanges","slicer","timeColsRef","dayTableModel","nextDayThreshold","sliceProps","sliceNowDate","ranges","headerDates","STOCK_SUB_DURATIONS","hours","minutes","seconds","buildSlatMetas","explicitLabelInterval","dayStart","Date","slatTime","slatIterator","labelInterval","slotsPerLabel","computeLabelInterval","metas","toISOString","formatIsoTimeString","buildTimeColsModel","dateProfileGenerator","daySeries","DaySeriesModel","DayTableModel","injectStyles","OPTION_REFINERS","allDaySlot","createPlugin","name","initialView","optionRefiners","views","timeGrid","component","splitProps","slotLabelInterval","hasAttachedAxis","hasDetachedAxis","headerContent","dayHeaders","DayHeader","dates","datesRepDistinctDays","renderIntro","DayTable","colGroupNode","renderRowIntro","showWeekNumbers","headerAlignElRef","timeGridContent","usesMinMaxTime","timeGridDay","days","timeGridWeek","weeks"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3843,9034,7050],{90580:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(55199),o=r(83136),c=r.n(o),a=r(63361);const s={descriptions:"style_descriptions__HozsO__hcBlJ","descriptions-item":"style_descriptions-item__vV+UK__hcBlJ","col-label":"style_col-label__ZFEwt__hcBlJ","col-content":"style_col-content__wtZ9I__hcBlJ"};var i=r(70579);const u=e=>{let{dataSource:t,isFull:r,className:o,...u}=e;return(0,i.jsx)(n.Row,{...u,className:c()(s.descriptions,o),children:t.map(((e,o)=>{const u=e.slice(0,2).filter((e=>"function"===typeof e.display?e.display(e,t):!1!==e.display));return u.slice(0,2).map(((e,t)=>{let{label:l,content:p,featureId:f}=e;const d=(0,i.jsx)(n.Col,{span:24/u.length,className:c()(s["col-item"],"descriptions-col-item"),children:(0,i.jsxs)(n.Row,{wrap:!1,className:c()(s["descriptions-item"],"descriptions-item"),children:[(0,i.jsx)(n.Col,{span:r?8:4*u.length,className:c()(s["col-label"],"descriptions-col-label"),children:l}),(0,i.jsx)(n.Col,{span:r?16:24-4*u.length,className:c()(s["col-content"],"descriptions-col-content"),children:p})]})},"".concat(o,"-").concat(t));return f?(0,i.jsx)(a.default,{id:f,children:d},"".concat(o,"-").concat(t)):d}))}))})}},63361:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x,useFeatureCall:()=>y});var n=r(73884),o=r(76329),c=r(33097),a=r.n(c),s=r(15797),i=r.n(s),u=r(1488),l=r.n(u),p=r(70579);const f=(e,t,r)=>{e&&(Array.isArray(e)?e.forEach((e=>{f(e,t,r)})):(t(Object.assign({},l()(e,["children"]),{parentId:r})),f(e.children,t,r?r+":"+e.id:e.id)))},d=i()((e=>{const t=(()=>{const t=new Map;return f(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),r=(e=>Array.from(e.keys()).filter((t=>{const r=e.get(t);return!(Array.isArray(r.dependencies)&&r.dependencies.length>0&&r.dependencies.some((r=>!e.get(t))))})))(t);return{profile:e,features:r,profileMap:t}})),b=(e,t)=>{let{profileMap:r,features:n}=t;const o=r.get(e);return-1!==n.indexOf(e)&&!0!==o.close&&a()(o,"dependencies",[]).every((t=>{const o=r.get(e);return n.indexOf(t)>-1&&!0!==o.close}))},j=(0,n.createContext)(null),{Provider:v}=j,y=e=>{const{features:t,profile:r,profileMap:c,debug:s}=(()=>{const e=(0,o.usePreset)(),{profile:t,debug:r}=a()(e,"features",{debug:!1,profile:{}});return Object.assign({},d(t),{debug:r})})(),i="system"===r.type?r.id:"root",u=(0,n.useContext)(j),l=u?u+":"+e:i+":"+e;return(0,n.useEffect)((()=>{t&&t.length>0&&s&&console.log("[featureId] ".concat(l,",[state] ").concat(b(l,{features:t,profileMap:c})),c.get(l))}),[t,c,s,l]),{isPass:!(e&&t&&t.length>0)||b(l,{features:t,profileMap:c}),currentId:l,feature:c.get(l)}},x=e=>{let{id:t,children:r}=e;const{isPass:n,feature:o,currentId:c}=y(t);return(0,p.jsx)(v,{value:c,children:"function"===typeof r?r({isPass:n,options:n?a()(o,"options"):a()(o,"rejectedOptions"),currentId:c}):n&&r})}},51104:(e,t,r)=>{var n=r(96614),o=r(28673);e.exports=function(e,t){return e&&n(t,o(t),e)}},55119:(e,t,r)=>{var n=r(96614),o=r(30474);e.exports=function(e,t){return e&&n(t,o(t),e)}},97132:(e,t,r)=>{var n=r(5538),o=r(80726),c=r(78420),a=r(51104),s=r(55119),i=r(44353),u=r(91980),l=r(98124),p=r(29075),f=r(59395),d=r(68592),b=r(26924),j=r(38268),v=r(18630),y=r(20310),x=r(54052),h=r(44543),g=r(57887),m=r(46686),A=r(45921),_=r(28673),w=r(30474),I="[object Arguments]",O="[object Function]",C="[object Object]",M={};M[I]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[C]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[O]=M["[object WeakMap]"]=!1,e.exports=function e(t,r,S,F,U,k){var B,E=1&r,N=2&r,P=4&r;if(S&&(B=U?S(t,F,U,k):S(t)),void 0!==B)return B;if(!m(t))return t;var D=x(t);if(D){if(B=j(t),!E)return u(t,B)}else{var J=b(t),R=J==O||"[object GeneratorFunction]"==J;if(h(t))return i(t,E);if(J==C||J==I||R&&!U){if(B=N||R?{}:y(t),!E)return N?p(t,s(B,t)):l(t,a(B,t))}else{if(!M[J])return U?t:{};B=v(t,J,E)}}k||(k=new n);var V=k.get(t);if(V)return V;k.set(t,B),A(t)?t.forEach((function(n){B.add(e(n,r,S,n,t,k))})):g(t)&&t.forEach((function(n,o){B.set(o,e(n,r,S,o,t,k))}));var Z=D?void 0:(P?N?d:f:N?w:_)(t);return o(Z||t,(function(n,o){Z&&(n=t[o=n]),c(B,o,e(n,r,S,o,t,k))})),B}},80755:(e,t,r)=>{var n=r(48895),o=r(77116);e.exports=function e(t,r,c,a,s){var i=-1,u=t.length;for(c||(c=o),s||(s=[]);++i<u;){var l=t[i];r>0&&c(l)?r>1?e(l,r-1,c,a,s):n(s,l):a||(s[s.length]=l)}return s}},5791:(e,t,r)=>{var n=r(26924),o=r(22761);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},20449:(e,t,r)=>{var n=r(26924),o=r(22761);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},53871:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var c=Array(o);++n<o;)c[n]=e[n+t];return c}},88140:(e,t,r)=>{var n=r(35324),o=r(74065),c=r(21676),a=r(70914);e.exports=function(e,t){return t=n(t,e),null==(e=c(e,t))||delete e[a(o(t))]}},6806:(e,t,r)=>{var n=r(61516);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},18962:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},11295:(e,t,r)=>{var n=r(9812),o=n?n.prototype:void 0,c=o?o.valueOf:void 0;e.exports=function(e){return c?Object(c.call(e)):{}}},98124:(e,t,r)=>{var n=r(96614),o=r(69621);e.exports=function(e,t){return n(e,o(e),t)}},29075:(e,t,r)=>{var n=r(96614),o=r(56326);e.exports=function(e,t){return n(e,o(e),t)}},96761:(e,t,r)=>{var n=r(12322);e.exports=function(e){return n(e)?void 0:e}},15857:(e,t,r)=>{var n=r(20819),o=r(55636),c=r(46350);e.exports=function(e){return c(o(e,void 0,n),e+"")}},68592:(e,t,r)=>{var n=r(4262),o=r(56326),c=r(30474);e.exports=function(e){return n(e,c,o)}},56326:(e,t,r)=>{var n=r(48895),o=r(85990),c=r(69621),a=r(57828),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,c(e)),e=o(e);return t}:a;e.exports=s},38268:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},18630:(e,t,r)=>{var n=r(61516),o=r(6806),c=r(18962),a=r(11295),s=r(38710);e.exports=function(e,t,r){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return c(e);case"[object Symbol]":return a(e)}}},77116:(e,t,r)=>{var n=r(9812),o=r(22777),c=r(54052),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return c(e)||o(e)||!!(a&&e&&e[a])}},21676:(e,t,r)=>{var n=r(52969),o=r(53871);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},20819:(e,t,r)=>{var n=r(80755);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},57887:(e,t,r)=>{var n=r(5791),o=r(47574),c=r(56832),a=c&&c.isMap,s=a?o(a):n;e.exports=s},45921:(e,t,r)=>{var n=r(20449),o=r(47574),c=r(56832),a=c&&c.isSet,s=a?o(a):n;e.exports=s},74065:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},1488:(e,t,r)=>{var n=r(50149),o=r(97132),c=r(88140),a=r(35324),s=r(96614),i=r(96761),u=r(15857),l=r(68592),p=u((function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,l(e),r),u&&(r=o(r,7,i));for(var p=t.length;p--;)c(r,t[p]);return r}));e.exports=p}}]);
2
- //# sourceMappingURL=3843.a9b49a31.chunk.js.map
1
+ (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3843,9034,7050],{90580:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(55199),o=r(83136),c=r.n(o),a=r(63361);const s={descriptions:"style_descriptions__HozsO__Mq2HC","descriptions-item":"style_descriptions-item__vV+UK__Mq2HC","col-label":"style_col-label__ZFEwt__Mq2HC","col-content":"style_col-content__wtZ9I__Mq2HC"};var i=r(70579);const u=e=>{let{dataSource:t,isFull:r,className:o,...u}=e;return(0,i.jsx)(n.Row,{...u,className:c()(s.descriptions,o),children:t.map(((e,o)=>{const u=e.slice(0,2).filter((e=>"function"===typeof e.display?e.display(e,t):!1!==e.display));return u.slice(0,2).map(((e,t)=>{let{label:l,content:p,featureId:f}=e;const d=(0,i.jsx)(n.Col,{span:24/u.length,className:c()(s["col-item"],"descriptions-col-item"),children:(0,i.jsxs)(n.Row,{wrap:!1,className:c()(s["descriptions-item"],"descriptions-item"),children:[(0,i.jsx)(n.Col,{span:r?8:4*u.length,className:c()(s["col-label"],"descriptions-col-label"),children:l}),(0,i.jsx)(n.Col,{span:r?16:24-4*u.length,className:c()(s["col-content"],"descriptions-col-content"),children:p})]})},"".concat(o,"-").concat(t));return f?(0,i.jsx)(a.default,{id:f,children:d},"".concat(o,"-").concat(t)):d}))}))})}},63361:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x,useFeatureCall:()=>y});var n=r(73884),o=r(76329),c=r(33097),a=r.n(c),s=r(15797),i=r.n(s),u=r(1488),l=r.n(u),p=r(70579);const f=(e,t,r)=>{e&&(Array.isArray(e)?e.forEach((e=>{f(e,t,r)})):(t(Object.assign({},l()(e,["children"]),{parentId:r})),f(e.children,t,r?r+":"+e.id:e.id)))},d=i()((e=>{const t=(()=>{const t=new Map;return f(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),r=(e=>Array.from(e.keys()).filter((t=>{const r=e.get(t);return!(Array.isArray(r.dependencies)&&r.dependencies.length>0&&r.dependencies.some((r=>!e.get(t))))})))(t);return{profile:e,features:r,profileMap:t}})),b=(e,t)=>{let{profileMap:r,features:n}=t;const o=r.get(e);return-1!==n.indexOf(e)&&!0!==o.close&&a()(o,"dependencies",[]).every((t=>{const o=r.get(e);return n.indexOf(t)>-1&&!0!==o.close}))},j=(0,n.createContext)(null),{Provider:v}=j,y=e=>{const{features:t,profile:r,profileMap:c,debug:s}=(()=>{const e=(0,o.usePreset)(),{profile:t,debug:r}=a()(e,"features",{debug:!1,profile:{}});return Object.assign({},d(t),{debug:r})})(),i="system"===r.type?r.id:"root",u=(0,n.useContext)(j),l=u?u+":"+e:i+":"+e;return(0,n.useEffect)((()=>{t&&t.length>0&&s&&console.log("[featureId] ".concat(l,",[state] ").concat(b(l,{features:t,profileMap:c})),c.get(l))}),[t,c,s,l]),{isPass:!(e&&t&&t.length>0)||b(l,{features:t,profileMap:c}),currentId:l,feature:c.get(l)}},x=e=>{let{id:t,children:r}=e;const{isPass:n,feature:o,currentId:c}=y(t);return(0,p.jsx)(v,{value:c,children:"function"===typeof r?r({isPass:n,options:n?a()(o,"options"):a()(o,"rejectedOptions"),currentId:c}):n&&r})}},51104:(e,t,r)=>{var n=r(96614),o=r(28673);e.exports=function(e,t){return e&&n(t,o(t),e)}},55119:(e,t,r)=>{var n=r(96614),o=r(30474);e.exports=function(e,t){return e&&n(t,o(t),e)}},97132:(e,t,r)=>{var n=r(5538),o=r(80726),c=r(78420),a=r(51104),s=r(55119),i=r(44353),u=r(91980),l=r(98124),p=r(29075),f=r(59395),d=r(68592),b=r(26924),j=r(38268),v=r(18630),y=r(20310),x=r(54052),g=r(44543),h=r(57887),m=r(46686),A=r(45921),_=r(28673),w=r(30474),I="[object Arguments]",C="[object Function]",M="[object Object]",O={};O[I]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[M]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[C]=O["[object WeakMap]"]=!1,e.exports=function e(t,r,S,F,U,k){var E,N=1&r,P=2&r,H=4&r;if(S&&(E=U?S(t,F,U,k):S(t)),void 0!==E)return E;if(!m(t))return t;var q=x(t);if(q){if(E=j(t),!N)return u(t,E)}else{var B=b(t),D=B==C||"[object GeneratorFunction]"==B;if(g(t))return i(t,N);if(B==M||B==I||D&&!U){if(E=P||D?{}:y(t),!N)return P?p(t,s(E,t)):l(t,a(E,t))}else{if(!O[B])return U?t:{};E=v(t,B,N)}}k||(k=new n);var R=k.get(t);if(R)return R;k.set(t,E),A(t)?t.forEach((function(n){E.add(e(n,r,S,n,t,k))})):h(t)&&t.forEach((function(n,o){E.set(o,e(n,r,S,o,t,k))}));var V=q?void 0:(H?P?d:f:P?w:_)(t);return o(V||t,(function(n,o){V&&(n=t[o=n]),c(E,o,e(n,r,S,o,t,k))})),E}},80755:(e,t,r)=>{var n=r(48895),o=r(77116);e.exports=function e(t,r,c,a,s){var i=-1,u=t.length;for(c||(c=o),s||(s=[]);++i<u;){var l=t[i];r>0&&c(l)?r>1?e(l,r-1,c,a,s):n(s,l):a||(s[s.length]=l)}return s}},5791:(e,t,r)=>{var n=r(26924),o=r(22761);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},20449:(e,t,r)=>{var n=r(26924),o=r(22761);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},53871:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var c=Array(o);++n<o;)c[n]=e[n+t];return c}},88140:(e,t,r)=>{var n=r(35324),o=r(74065),c=r(21676),a=r(70914);e.exports=function(e,t){return t=n(t,e),null==(e=c(e,t))||delete e[a(o(t))]}},6806:(e,t,r)=>{var n=r(61516);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},18962:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},11295:(e,t,r)=>{var n=r(9812),o=n?n.prototype:void 0,c=o?o.valueOf:void 0;e.exports=function(e){return c?Object(c.call(e)):{}}},98124:(e,t,r)=>{var n=r(96614),o=r(69621);e.exports=function(e,t){return n(e,o(e),t)}},29075:(e,t,r)=>{var n=r(96614),o=r(56326);e.exports=function(e,t){return n(e,o(e),t)}},96761:(e,t,r)=>{var n=r(12322);e.exports=function(e){return n(e)?void 0:e}},15857:(e,t,r)=>{var n=r(20819),o=r(55636),c=r(46350);e.exports=function(e){return c(o(e,void 0,n),e+"")}},68592:(e,t,r)=>{var n=r(4262),o=r(56326),c=r(30474);e.exports=function(e){return n(e,c,o)}},56326:(e,t,r)=>{var n=r(48895),o=r(85990),c=r(69621),a=r(57828),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,c(e)),e=o(e);return t}:a;e.exports=s},38268:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},18630:(e,t,r)=>{var n=r(61516),o=r(6806),c=r(18962),a=r(11295),s=r(38710);e.exports=function(e,t,r){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return c(e);case"[object Symbol]":return a(e)}}},77116:(e,t,r)=>{var n=r(9812),o=r(22777),c=r(54052),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return c(e)||o(e)||!!(a&&e&&e[a])}},21676:(e,t,r)=>{var n=r(52969),o=r(53871);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},20819:(e,t,r)=>{var n=r(80755);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},57887:(e,t,r)=>{var n=r(5791),o=r(47574),c=r(56832),a=c&&c.isMap,s=a?o(a):n;e.exports=s},45921:(e,t,r)=>{var n=r(20449),o=r(47574),c=r(56832),a=c&&c.isSet,s=a?o(a):n;e.exports=s},74065:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},1488:(e,t,r)=>{var n=r(50149),o=r(97132),c=r(88140),a=r(35324),s=r(96614),i=r(96761),u=r(15857),l=r(68592),p=u((function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,l(e),r),u&&(r=o(r,7,i));for(var p=t.length;p--;)c(r,t[p]);return r}));e.exports=p}}]);
2
+ //# sourceMappingURL=3843.36ccc92a.chunk.js.map