cortex-react-components 2.12.0 → 2.12.2

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 (665) hide show
  1. package/dist/{chunk-4CU7D3X2.mjs → chunk-2C3C5SQQ.mjs} +1 -1
  2. package/dist/{chunk-CSBGSBEU.mjs → chunk-2JKLBLDE.mjs} +1 -1
  3. package/dist/{chunk-IC2ABKAM.mjs → chunk-2LLMXGTP.mjs} +1 -1
  4. package/dist/chunk-2WLZ5T2D.mjs +1 -0
  5. package/dist/{chunk-MU5WPW4N.mjs → chunk-3GLK3JM6.mjs} +1 -1
  6. package/dist/{chunk-Q5Q3DJWU.mjs → chunk-3HD7RAT7.mjs} +1 -1
  7. package/dist/{chunk-CO6AQNZ5.mjs → chunk-3JEM6RIR.mjs} +1 -1
  8. package/dist/{chunk-EOXVYLPB.mjs → chunk-3KBY7FKD.mjs} +1 -1
  9. package/dist/{chunk-PK3OBSCB.mjs → chunk-3ZXW3WQU.mjs} +1 -1
  10. package/dist/{chunk-F5N6KQA2.mjs → chunk-44JXFP6W.mjs} +1 -1
  11. package/dist/{chunk-FKU4VQR6.mjs → chunk-4OAROJ4M.mjs} +1 -1
  12. package/dist/{chunk-JYL3XIJX.mjs → chunk-4OK6PUOO.mjs} +1 -1
  13. package/dist/{chunk-PFLESLNT.mjs → chunk-4RQ27GTD.mjs} +1 -1
  14. package/dist/{chunk-RAGDUV7M.mjs → chunk-52UFJIL4.mjs} +1 -1
  15. package/dist/{chunk-Q5XT55O3.mjs → chunk-532HP37G.mjs} +1 -1
  16. package/dist/{chunk-TEB67NCD.mjs → chunk-55OESIAK.mjs} +1 -1
  17. package/dist/{chunk-AQ6RGBGI.mjs → chunk-56AGUZR5.mjs} +1 -1
  18. package/dist/{chunk-IF3425JX.mjs → chunk-5AYDHF5U.mjs} +1 -1
  19. package/dist/{chunk-2RGAV55J.mjs → chunk-5N2D3BGH.mjs} +1 -1
  20. package/dist/{chunk-74U3NYS2.mjs → chunk-5T4OPJ7F.mjs} +1 -1
  21. package/dist/{chunk-LBUC4M6L.mjs → chunk-5WDNNO37.mjs} +1 -1
  22. package/dist/{chunk-QG5P52CK.mjs → chunk-5WH7SFOR.mjs} +1 -1
  23. package/dist/{chunk-V6GC3UGV.mjs → chunk-5YJFMMVM.mjs} +1 -1
  24. package/dist/{chunk-LKGCU7H6.mjs → chunk-67RPQW7V.mjs} +1 -1
  25. package/dist/{chunk-FGEFYI5E.mjs → chunk-6CAO4IKW.mjs} +1 -1
  26. package/dist/{chunk-MXCW6SOT.mjs → chunk-6GDVIZS5.mjs} +1 -1
  27. package/dist/{chunk-EAFH3DTH.mjs → chunk-6PBOA7BL.mjs} +1 -1
  28. package/dist/{chunk-2LINLX4S.mjs → chunk-6PQ67CC6.mjs} +1 -1
  29. package/dist/{chunk-VMAPGGGW.mjs → chunk-6TLGI4P6.mjs} +1 -1
  30. package/dist/{chunk-LJQPLE4S.mjs → chunk-6UVEJCVM.mjs} +1 -1
  31. package/dist/{chunk-XFPTR527.mjs → chunk-6WVIXUXX.mjs} +1 -1
  32. package/dist/{chunk-E4TE4NV6.mjs → chunk-7EEEXU54.mjs} +1 -1
  33. package/dist/{chunk-JFFTEK6Z.mjs → chunk-7QBPKUWN.mjs} +1 -1
  34. package/dist/{chunk-WUA65ZZB.mjs → chunk-7RKPUKFH.mjs} +1 -1
  35. package/dist/{chunk-YO3GQYRJ.mjs → chunk-7WKUKFCT.mjs} +1 -1
  36. package/dist/{chunk-ZUA4KNIR.mjs → chunk-7Z3TOFNL.mjs} +1 -1
  37. package/dist/{chunk-FHMQVAKQ.mjs → chunk-A4XWPIEI.mjs} +1 -1
  38. package/dist/{chunk-LJOWXPWW.mjs → chunk-A5TPL5CB.mjs} +1 -1
  39. package/dist/{chunk-ZSIYEVUV.mjs → chunk-A7S4L4P2.mjs} +1 -1
  40. package/dist/{chunk-UWEU6TLS.mjs → chunk-AARMIMMZ.mjs} +1 -1
  41. package/dist/{chunk-3UMMMQEH.mjs → chunk-AG6IN5S7.mjs} +1 -1
  42. package/dist/{chunk-GHZ6CUY3.mjs → chunk-AQIMDHFI.mjs} +1 -1
  43. package/dist/{chunk-RNMPX2AU.mjs → chunk-AWMXVMUW.mjs} +1 -1
  44. package/dist/{chunk-D4IMQTVU.mjs → chunk-BEPKJ67R.mjs} +1 -1
  45. package/dist/{chunk-KY7WQYN4.mjs → chunk-BIAOADJS.mjs} +1 -1
  46. package/dist/{chunk-Z22NSJMF.mjs → chunk-BM2ZNFM6.mjs} +1 -1
  47. package/dist/{chunk-MZP7RIQZ.mjs → chunk-BOG3XLGP.mjs} +1 -1
  48. package/dist/{chunk-5WVFEIMC.mjs → chunk-BUTUPCGN.mjs} +1 -1
  49. package/dist/{chunk-HKGW6JI2.mjs → chunk-BXVJNWFA.mjs} +1 -1
  50. package/dist/{chunk-M7ZG6HLI.mjs → chunk-C4SUCDRQ.mjs} +1 -1
  51. package/dist/chunk-CDH5ONCJ.mjs +8 -0
  52. package/dist/{chunk-AB43AQKL.mjs → chunk-CXK2IY4V.mjs} +1 -1
  53. package/dist/{chunk-M7NV6EFH.mjs → chunk-CXXPSCV3.mjs} +1 -1
  54. package/dist/{chunk-7YQNB57R.mjs → chunk-D42KIYIO.mjs} +1 -1
  55. package/dist/{chunk-QTILVWJA.mjs → chunk-DA5SDQDL.mjs} +1 -1
  56. package/dist/{chunk-255P6K5W.mjs → chunk-DFWWQRJ2.mjs} +1 -1
  57. package/dist/{chunk-OCPX4QPC.mjs → chunk-DGJHJHFF.mjs} +1 -1
  58. package/dist/{chunk-PWXCBW2H.mjs → chunk-E2MPOOEL.mjs} +1 -1
  59. package/dist/{chunk-CTAQQFEO.mjs → chunk-E3NWG6B4.mjs} +1 -1
  60. package/dist/{chunk-VGWDYD6Z.mjs → chunk-E43QS242.mjs} +1 -1
  61. package/dist/{chunk-52GADV2R.mjs → chunk-E6IIUYQ7.mjs} +1 -1
  62. package/dist/{chunk-JHNVX4UB.mjs → chunk-E6W2YMC3.mjs} +1 -1
  63. package/dist/{chunk-RHR3YOLG.mjs → chunk-E7SIU5SS.mjs} +1 -1
  64. package/dist/{chunk-J4IHIM6A.mjs → chunk-EBO2R46A.mjs} +1 -1
  65. package/dist/{chunk-LXZAOORS.mjs → chunk-EESKUTPD.mjs} +1 -1
  66. package/dist/{chunk-YRMNCHFO.mjs → chunk-EFIJNPMM.mjs} +1 -1
  67. package/dist/{chunk-X3JZSN3W.mjs → chunk-EGERAM4Q.mjs} +1 -1
  68. package/dist/{chunk-JB7IQQ3N.mjs → chunk-ENRNRNPQ.mjs} +1 -1
  69. package/dist/{chunk-5RTGHMF3.mjs → chunk-EPDV35LO.mjs} +1 -1
  70. package/dist/{chunk-7WIO2CIC.mjs → chunk-ESTO675Y.mjs} +1 -1
  71. package/dist/{chunk-RR4QSUV2.mjs → chunk-EUXJZBRI.mjs} +1 -1
  72. package/dist/{chunk-67QPOSVV.mjs → chunk-EYQ4UGAJ.mjs} +1 -1
  73. package/dist/{chunk-JVN7KTZV.mjs → chunk-EYRTGZWR.mjs} +1 -1
  74. package/dist/{chunk-7BXIU4ZM.mjs → chunk-F5JHHMZQ.mjs} +1 -1
  75. package/dist/{chunk-WUOWA2IX.mjs → chunk-F6KHZ4OS.mjs} +1 -1
  76. package/dist/{chunk-MAAKU7PN.mjs → chunk-FDJHY37W.mjs} +1 -1
  77. package/dist/{chunk-ZGQC6O62.mjs → chunk-FHPZSG7W.mjs} +1 -1
  78. package/dist/{chunk-SRUG246N.mjs → chunk-FJUAYJF4.mjs} +1 -1
  79. package/dist/{chunk-OYZDAMCS.mjs → chunk-FPWCCVDI.mjs} +1 -1
  80. package/dist/{chunk-FOEPKY7T.mjs → chunk-FSV7RCTY.mjs} +1 -1
  81. package/dist/{chunk-2RQDJ5XT.mjs → chunk-FT6JQ4AC.mjs} +1 -1
  82. package/dist/{chunk-YKG4FNS4.mjs → chunk-GCIWMQMK.mjs} +1 -1
  83. package/dist/{chunk-R7ILTSZR.mjs → chunk-GFLX67DN.mjs} +1 -1
  84. package/dist/{chunk-AZKOVKSK.mjs → chunk-GIGKJZGA.mjs} +1 -1
  85. package/dist/{chunk-L5JPAKPM.mjs → chunk-GJUA2KUH.mjs} +1 -1
  86. package/dist/{chunk-KGEIN56Y.mjs → chunk-GNIVCF53.mjs} +1 -1
  87. package/dist/{chunk-KX2NCNCS.mjs → chunk-GYTXBVCX.mjs} +1 -1
  88. package/dist/{chunk-AMV3MECK.mjs → chunk-GZQ7JEUL.mjs} +1 -1
  89. package/dist/{chunk-5WV5ZFEP.mjs → chunk-H45UTXIK.mjs} +1 -1
  90. package/dist/{chunk-7GSXNSLD.mjs → chunk-HH4JDBUN.mjs} +1 -1
  91. package/dist/{chunk-TZKQXT7Y.mjs → chunk-HK52LPE3.mjs} +1 -1
  92. package/dist/{chunk-WI2RL3XQ.mjs → chunk-HLWGNTZD.mjs} +1 -1
  93. package/dist/{chunk-LEC6GEWS.mjs → chunk-HPZPRZWG.mjs} +1 -1
  94. package/dist/{chunk-KVD6XDZT.mjs → chunk-HTCM27MI.mjs} +1 -1
  95. package/dist/{chunk-D275F3RT.mjs → chunk-HTQIVWYI.mjs} +1 -1
  96. package/dist/{chunk-U5PBLRRV.mjs → chunk-HYIRE7BK.mjs} +1 -1
  97. package/dist/chunk-I2BNJCJ7.mjs +1 -0
  98. package/dist/{chunk-Q5NHYYRS.mjs → chunk-IG6J62QA.mjs} +1 -1
  99. package/dist/{chunk-B3F6F2S4.mjs → chunk-JKPUXPHP.mjs} +1 -1
  100. package/dist/{chunk-QQVPLMPJ.mjs → chunk-JTFMN7OL.mjs} +1 -1
  101. package/dist/{chunk-2QZUKVBA.mjs → chunk-JULD2KZR.mjs} +1 -1
  102. package/dist/{chunk-FT3AE7L2.mjs → chunk-JVJG2LOA.mjs} +1 -1
  103. package/dist/{chunk-Q6PKGY27.mjs → chunk-K5GFFN67.mjs} +1 -1
  104. package/dist/chunk-KCOLYVJX.mjs +1 -0
  105. package/dist/{chunk-74JNWOJQ.mjs → chunk-KUVPOOSW.mjs} +1 -1
  106. package/dist/{chunk-HHYHENVF.mjs → chunk-KZTONTWM.mjs} +1 -1
  107. package/dist/{chunk-LVFMFRBR.mjs → chunk-LARQXED4.mjs} +1 -1
  108. package/dist/{chunk-Q3EVV5MV.mjs → chunk-LCIKBYDR.mjs} +1 -1
  109. package/dist/{chunk-76M7JE4D.mjs → chunk-LQDJWEHX.mjs} +1 -1
  110. package/dist/{chunk-LJLV5GUS.mjs → chunk-MZKVGPNQ.mjs} +1 -1
  111. package/dist/{chunk-JVG4XS2E.mjs → chunk-N5BLWWDM.mjs} +1 -1
  112. package/dist/{chunk-DFIXTV2M.mjs → chunk-N5GHL7UZ.mjs} +1 -1
  113. package/dist/{chunk-ISBVFNWD.mjs → chunk-NGC3C4FW.mjs} +1 -1
  114. package/dist/{chunk-I2ZLKSWR.mjs → chunk-NM6U4PLY.mjs} +1 -1
  115. package/dist/{chunk-DBY4SXQI.mjs → chunk-NMAMUYGQ.mjs} +1 -1
  116. package/dist/{chunk-NSMXJCXE.mjs → chunk-NN2RHTGW.mjs} +1 -1
  117. package/dist/{chunk-INCYANPB.mjs → chunk-NQPBIFGO.mjs} +1 -1
  118. package/dist/{chunk-TR6RBROH.mjs → chunk-OF63XSJ4.mjs} +1 -1
  119. package/dist/{chunk-6C4WESLL.mjs → chunk-OGN7YDFB.mjs} +1 -1
  120. package/dist/{chunk-I3E2TYYZ.mjs → chunk-OHDNPAPI.mjs} +1 -1
  121. package/dist/{chunk-FTZRG54P.mjs → chunk-OKAETRO6.mjs} +1 -1
  122. package/dist/{chunk-22LHS2J6.mjs → chunk-OU7KVCBI.mjs} +1 -1
  123. package/dist/{chunk-RLVKIMGU.mjs → chunk-P5U27QUJ.mjs} +1 -1
  124. package/dist/{chunk-5NRGSTPV.mjs → chunk-PMOMDGBA.mjs} +1 -1
  125. package/dist/{chunk-PDY7JYY3.mjs → chunk-PUAHE5VJ.mjs} +1 -1
  126. package/dist/{chunk-56X4PU43.mjs → chunk-PXAKUW3U.mjs} +1 -1
  127. package/dist/{chunk-MGYV46AJ.mjs → chunk-Q6FPZ6J3.mjs} +1 -1
  128. package/dist/{chunk-6WQXZ6IE.mjs → chunk-QAIS2C6W.mjs} +1 -1
  129. package/dist/{chunk-7GMAMIHM.mjs → chunk-QB63WPDB.mjs} +1 -1
  130. package/dist/{chunk-6HLXIE4P.mjs → chunk-QEFMYXHA.mjs} +1 -1
  131. package/dist/{chunk-IJQC7T2R.mjs → chunk-QIDPNZOL.mjs} +1 -1
  132. package/dist/{chunk-RVHCTANZ.mjs → chunk-QMTI6672.mjs} +1 -1
  133. package/dist/{chunk-D3B2YO7G.mjs → chunk-QUDKEIE6.mjs} +1 -1
  134. package/dist/{chunk-2BR55L74.mjs → chunk-QXA6C5VE.mjs} +1 -1
  135. package/dist/{chunk-Q6VAKKW3.mjs → chunk-QXNCGSQE.mjs} +1 -1
  136. package/dist/{chunk-TVZOULLL.mjs → chunk-RAAY7PEH.mjs} +1 -1
  137. package/dist/{chunk-AM2SRWFU.mjs → chunk-RARAKOXE.mjs} +1 -1
  138. package/dist/{chunk-Q67RF7VO.mjs → chunk-RD7LJPUV.mjs} +1 -1
  139. package/dist/{chunk-SOLZ4VQH.mjs → chunk-RFNYVF6F.mjs} +1 -1
  140. package/dist/{chunk-SOIRB5TV.mjs → chunk-RHYQ4V7N.mjs} +1 -1
  141. package/dist/{chunk-TUI4S4GI.mjs → chunk-RPUSKO6J.mjs} +1 -1
  142. package/dist/{chunk-OM5ZUHCN.mjs → chunk-RU435LAU.mjs} +1 -1
  143. package/dist/{chunk-LVK4QE5D.mjs → chunk-S7N4CSMJ.mjs} +1 -1
  144. package/dist/{chunk-AZ4VR5JX.mjs → chunk-SIFQNSEM.mjs} +1 -1
  145. package/dist/{chunk-XBCYPOFD.mjs → chunk-T3BIRW2W.mjs} +1 -1
  146. package/dist/{chunk-4UIARERB.mjs → chunk-T3NMKARZ.mjs} +1 -1
  147. package/dist/{chunk-CTAIR3TE.mjs → chunk-TAVSBP7M.mjs} +1 -1
  148. package/dist/{chunk-TKSXXSHY.mjs → chunk-TFPWTJ2V.mjs} +1 -1
  149. package/dist/{chunk-FMJBJ3HN.mjs → chunk-TNCD5YIY.mjs} +1 -1
  150. package/dist/{chunk-N3B3XNV3.mjs → chunk-TR52MKZR.mjs} +1 -1
  151. package/dist/chunk-TSEOL53Y.mjs +1 -0
  152. package/dist/{chunk-6SWKEZN6.mjs → chunk-TUTSJOO4.mjs} +1 -1
  153. package/dist/{chunk-6XUIHSKG.mjs → chunk-TYMRNSJ3.mjs} +1 -1
  154. package/dist/{chunk-XGIYNUGC.mjs → chunk-TZTQENNX.mjs} +1 -1
  155. package/dist/{chunk-BMA4266L.mjs → chunk-U5UV7T63.mjs} +1 -1
  156. package/dist/{chunk-ZXPDSSCF.mjs → chunk-UBCJPXKD.mjs} +1 -1
  157. package/dist/{chunk-CGDLOY7W.mjs → chunk-UJ6M7EV5.mjs} +1 -1
  158. package/dist/{chunk-KFCSVEI6.mjs → chunk-UXCCCQCB.mjs} +1 -1
  159. package/dist/{chunk-WISC5QJV.mjs → chunk-UY4BSKPK.mjs} +1 -1
  160. package/dist/{chunk-H3CJOE6S.mjs → chunk-VB7K44IF.mjs} +1 -1
  161. package/dist/{chunk-5SHZBJ5R.mjs → chunk-VFPS3FYN.mjs} +1 -1
  162. package/dist/{chunk-FMH5CZ7X.mjs → chunk-VRZHKAJK.mjs} +1 -1
  163. package/dist/{chunk-B4H6T2GP.mjs → chunk-VXZPPTQQ.mjs} +1 -1
  164. package/dist/{chunk-TJVEQJW3.mjs → chunk-WH24BWZV.mjs} +1 -1
  165. package/dist/{chunk-75WE6ZXB.mjs → chunk-WJZDHRGO.mjs} +1 -1
  166. package/dist/{chunk-RULSHTXR.mjs → chunk-WKLJU63E.mjs} +1 -1
  167. package/dist/{chunk-YFAZQYK4.mjs → chunk-WLM2ZFHF.mjs} +1 -1
  168. package/dist/{chunk-EHSOO47V.mjs → chunk-WNBJ7C5Y.mjs} +1 -1
  169. package/dist/{chunk-5BV4MHV6.mjs → chunk-WWTVAR4J.mjs} +1 -1
  170. package/dist/chunk-WXTJ6DVT.mjs +4 -0
  171. package/dist/{chunk-FA7PGHVM.mjs → chunk-X5RHYJW3.mjs} +1 -1
  172. package/dist/{chunk-BG7QXNV5.mjs → chunk-XXFUUOSB.mjs} +1 -1
  173. package/dist/{chunk-TK4JC5PG.mjs → chunk-XXWSCTF5.mjs} +1 -1
  174. package/dist/{chunk-ERJXTG6X.mjs → chunk-YHTFEWSZ.mjs} +1 -1
  175. package/dist/{chunk-OPLUKFRN.mjs → chunk-YUW3HHAK.mjs} +1 -1
  176. package/dist/{chunk-AREQGH47.mjs → chunk-YVNVQONM.mjs} +1 -1
  177. package/dist/{chunk-5BT4EWU5.mjs → chunk-Z756RYIZ.mjs} +1 -1
  178. package/dist/{chunk-4QRKVSTE.mjs → chunk-ZJBZTPLD.mjs} +1 -1
  179. package/dist/{chunk-BA3I4XZE.mjs → chunk-ZKLSTUIP.mjs} +1 -1
  180. package/dist/{chunk-5AWZJAK3.mjs → chunk-ZNV6MCYI.mjs} +1 -1
  181. package/dist/components/AdvancedComponents/AppSidebar.js +1 -1
  182. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  183. package/dist/components/AdvancedComponents/CommentSection.js +1 -1
  184. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  185. package/dist/components/AdvancedComponents/EditableField.js +1 -1
  186. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  187. package/dist/components/AdvancedComponents/app-header.d.ts +2 -2
  188. package/dist/components/AdvancedComponents/app-header.js +1 -1
  189. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  190. package/dist/components/AdvancedComponents/index.js +2 -2
  191. package/dist/components/AdvancedComponents/index.mjs +1 -1
  192. package/dist/components/AdvancedComponents/navigation-tabs.js +2 -2
  193. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  194. package/dist/components/AdvancedComponents/notifications-panel.js +1 -1
  195. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  196. package/dist/components/AdvancedComponents/switch.js +1 -1
  197. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  198. package/dist/components/AdvancedComponents/theme-toggle.js +1 -1
  199. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  200. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  201. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  202. package/dist/components/Blocks/Banner.js +1 -1
  203. package/dist/components/Blocks/Banner.mjs +1 -1
  204. package/dist/components/Blocks/CallToAction.js +1 -1
  205. package/dist/components/Blocks/CallToAction.mjs +1 -1
  206. package/dist/components/Blocks/CaseStudy.js +1 -1
  207. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  208. package/dist/components/Blocks/Code.client.js +1 -1
  209. package/dist/components/Blocks/Code.client.mjs +1 -1
  210. package/dist/components/Blocks/Code.js +1 -1
  211. package/dist/components/Blocks/Code.mjs +1 -1
  212. package/dist/components/Blocks/CollapsibleArea.js +1 -1
  213. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  214. package/dist/components/Blocks/ConsultantProfile.js +1 -1
  215. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  216. package/dist/components/Blocks/Content.js +1 -1
  217. package/dist/components/Blocks/Content.mjs +1 -1
  218. package/dist/components/Blocks/CopyButton.js +1 -1
  219. package/dist/components/Blocks/CopyButton.mjs +1 -1
  220. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  221. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  222. package/dist/components/Blocks/ImageBlock.js +1 -1
  223. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  224. package/dist/components/Blocks/MediaBlock.js +1 -1
  225. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  226. package/dist/components/Blocks/ProposalSummary.js +1 -1
  227. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  228. package/dist/components/Blocks/RelatedPosts.js +1 -1
  229. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  230. package/dist/components/Blocks/RenderBlocks.js +1 -1
  231. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  232. package/dist/components/Blocks/ReusableContentBlock.js +1 -1
  233. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  234. package/dist/components/Blocks/index.js +1 -1
  235. package/dist/components/Blocks/index.mjs +1 -1
  236. package/dist/components/CRM/CogeBoard.js +1 -1
  237. package/dist/components/CRM/CogeBoard.mjs +1 -1
  238. package/dist/components/CRM/DealCard.js +1 -1
  239. package/dist/components/CRM/DealCard.mjs +1 -1
  240. package/dist/components/CRM/DealDetails.js +1 -1
  241. package/dist/components/CRM/DealDetails.mjs +1 -1
  242. package/dist/components/CRM/KanbanBoard.js +1 -1
  243. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  244. package/dist/components/CRM/KanbanColumn.js +1 -1
  245. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  246. package/dist/components/CRM/NewCustomerForm.js +1 -1
  247. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  248. package/dist/components/CRM/NewDealForm.js +1 -1
  249. package/dist/components/CRM/NewDealForm.mjs +1 -1
  250. package/dist/components/CRM/index.js +1 -1
  251. package/dist/components/CRM/index.mjs +1 -1
  252. package/dist/components/Cards/ContentCard.js +1 -1
  253. package/dist/components/Cards/ContentCard.mjs +1 -1
  254. package/dist/components/Cards/CustomerCard.js +1 -1
  255. package/dist/components/Cards/CustomerCard.mjs +1 -1
  256. package/dist/components/Cards/EventCard.js +1 -1
  257. package/dist/components/Cards/EventCard.mjs +1 -1
  258. package/dist/components/Cards/FeatureCard.js +1 -1
  259. package/dist/components/Cards/FeatureCard.mjs +1 -1
  260. package/dist/components/Cards/HeroCard.js +1 -1
  261. package/dist/components/Cards/HeroCard.mjs +1 -1
  262. package/dist/components/Cards/Image.js +1 -1
  263. package/dist/components/Cards/Image.mjs +1 -1
  264. package/dist/components/Cards/PricingCard.js +1 -1
  265. package/dist/components/Cards/PricingCard.mjs +1 -1
  266. package/dist/components/Cards/ProjectCard.js +3 -3
  267. package/dist/components/Cards/ProjectCard.mjs +1 -1
  268. package/dist/components/Cards/ServiceCard.js +1 -1
  269. package/dist/components/Cards/ServiceCard.mjs +1 -1
  270. package/dist/components/Cards/index.js +4 -4
  271. package/dist/components/Cards/index.mjs +1 -1
  272. package/dist/components/Chat/ChatCardArtefact.js +1 -1
  273. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  274. package/dist/components/Chat/ChatCardTask.js +1 -1
  275. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  276. package/dist/components/Chat/ChatInterface.js +2 -2
  277. package/dist/components/Chat/ChatInterface.mjs +1 -1
  278. package/dist/components/Chat/ChatInterfaceMessages.js +2 -2
  279. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  280. package/dist/components/Chat/ChatMessage.js +2 -2
  281. package/dist/components/Chat/ChatMessage.mjs +1 -1
  282. package/dist/components/Chat/CopilotInterface.js +3 -3
  283. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  284. package/dist/components/Chat/capability-menu.js +1 -1
  285. package/dist/components/Chat/capability-menu.mjs +1 -1
  286. package/dist/components/Chat/chat-session-sidebar.js +1 -1
  287. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  288. package/dist/components/Chat/demo-long-messages.js +9 -9
  289. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  290. package/dist/components/Chat/demo-tests.js +24 -24
  291. package/dist/components/Chat/demo-tests.mjs +1 -1
  292. package/dist/components/Chat/demo.js +3 -3
  293. package/dist/components/Chat/demo.mjs +1 -1
  294. package/dist/components/Chat/example-usage.js +2 -2
  295. package/dist/components/Chat/example-usage.mjs +1 -1
  296. package/dist/components/Chat/example-with-file-uploads.js +1 -1
  297. package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
  298. package/dist/components/Chat/example-with-vercel-ai.js +3 -3
  299. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  300. package/dist/components/Chat/index.js +3 -3
  301. package/dist/components/Chat/index.mjs +1 -1
  302. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +2 -2
  303. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  304. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +1 -1
  305. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  306. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +2 -2
  307. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  308. package/dist/components/DeliveryLead/index.js +2 -2
  309. package/dist/components/DeliveryLead/index.mjs +1 -1
  310. package/dist/components/DigitalColleagues/AppSidebarLeft.js +1 -1
  311. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  312. package/dist/components/DigitalColleagues/DashboardHeader.js +1 -1
  313. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  314. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  315. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  316. package/dist/components/DigitalColleagues/MainPage.js +1 -1
  317. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  318. package/dist/components/DigitalColleagues/ManagementSidebar.js +1 -1
  319. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  320. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  321. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  322. package/dist/components/DigitalColleagues/SearchableSelect.js +1 -1
  323. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  324. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  325. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  326. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  327. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  328. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +1 -1
  329. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  330. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  331. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  332. package/dist/components/DigitalColleagues/colleague-card.js +1 -1
  333. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  334. package/dist/components/DigitalColleagues/colleague-form.js +1 -1
  335. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  336. package/dist/components/DigitalColleagues/colleague-type-selection.js +1 -1
  337. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  338. package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -1
  339. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  340. package/dist/components/DigitalColleagues/digital-colleague-options.js +1 -1
  341. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  342. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  343. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  344. package/dist/components/DigitalColleagues/document-preview-examples.js +5 -5
  345. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  346. package/dist/components/DigitalColleagues/document-preview.js +1 -1
  347. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  348. package/dist/components/DigitalColleagues/index.js +1 -1
  349. package/dist/components/DigitalColleagues/index.mjs +1 -1
  350. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  351. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  352. package/dist/components/DigitalColleagues/knowledge-search.js +1 -1
  353. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  354. package/dist/components/DigitalColleagues/team-form.js +1 -1
  355. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  356. package/dist/components/DigitalColleagues/test-data.js +1 -1
  357. package/dist/components/DigitalColleagues/test-data.mjs +1 -1
  358. package/dist/components/DigitalColleagues/types.d.ts +1 -0
  359. package/dist/components/HeaderFooter/BrandLogo.js +1 -1
  360. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  361. package/dist/components/HeaderFooter/Footer.js +1 -1
  362. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  363. package/dist/components/HeaderFooter/Header.js +1 -1
  364. package/dist/components/HeaderFooter/Header.mjs +1 -1
  365. package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
  366. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  367. package/dist/components/HeaderFooter/HeaderMenu.js +1 -1
  368. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  369. package/dist/components/HeaderFooter/HeaderMobile.js +1 -1
  370. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  371. package/dist/components/HeaderFooter/RelatedPagesMenu.js +1 -1
  372. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  373. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  374. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  375. package/dist/components/HeaderFooter/SimpleHeader.js +1 -1
  376. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  377. package/dist/components/HeaderFooter/VideoHeader.js +1 -1
  378. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  379. package/dist/components/HeaderFooter/enhanced-header.js +1 -1
  380. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  381. package/dist/components/HeaderFooter/index.js +1 -1
  382. package/dist/components/HeaderFooter/index.mjs +1 -1
  383. package/dist/components/Heros/DashboardHero/DashboardHero.js +1 -1
  384. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  385. package/dist/components/Heros/DashboardHero/index.js +1 -1
  386. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  387. package/dist/components/Heros/HighImpact/index.js +1 -1
  388. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  389. package/dist/components/Heros/LowImpact/index.js +1 -1
  390. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  391. package/dist/components/Heros/MediumImpact/index.js +1 -1
  392. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  393. package/dist/components/Heros/PostHero/index.js +1 -1
  394. package/dist/components/Heros/PostHero/index.mjs +1 -1
  395. package/dist/components/Heros/RenderHero.js +1 -1
  396. package/dist/components/Heros/RenderHero.mjs +1 -1
  397. package/dist/components/Heros/SectionHero/index.js +1 -1
  398. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  399. package/dist/components/Heros/index.js +1 -1
  400. package/dist/components/Heros/index.mjs +1 -1
  401. package/dist/components/Holidays/ApproveLeave.js +1 -1
  402. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  403. package/dist/components/Holidays/CalendarView.js +1 -1
  404. package/dist/components/Holidays/CalendarView.mjs +1 -1
  405. package/dist/components/Holidays/HolidayGrid.js +1 -1
  406. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  407. package/dist/components/Holidays/HolidayTracker.js +1 -1
  408. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  409. package/dist/components/Holidays/RequestLeave.js +1 -1
  410. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  411. package/dist/components/Holidays/index.js +1 -1
  412. package/dist/components/Holidays/index.mjs +1 -1
  413. package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
  414. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  415. package/dist/components/Layouts/Print.js +2 -2
  416. package/dist/components/Layouts/Print.mjs +1 -1
  417. package/dist/components/Layouts/SlideShow.js +3 -3
  418. package/dist/components/Layouts/SlideShow.mjs +1 -1
  419. package/dist/components/Layouts/index.js +4 -4
  420. package/dist/components/Layouts/index.mjs +1 -1
  421. package/dist/components/Menus/Categories.js +1 -1
  422. package/dist/components/Menus/Categories.mjs +1 -1
  423. package/dist/components/Menus/Filter.js +1 -1
  424. package/dist/components/Menus/Filter.mjs +1 -1
  425. package/dist/components/Menus/Pagination.js +1 -1
  426. package/dist/components/Menus/Pagination.mjs +1 -1
  427. package/dist/components/Menus/ProjectTeam.js +1 -1
  428. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  429. package/dist/components/Menus/RelatedContent.js +1 -1
  430. package/dist/components/Menus/RelatedContent.mjs +1 -1
  431. package/dist/components/Menus/SidebarLeft.js +1 -1
  432. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  433. package/dist/components/Menus/SidebarRight.js +1 -1
  434. package/dist/components/Menus/SidebarRight.mjs +1 -1
  435. package/dist/components/Menus/index.js +1 -1
  436. package/dist/components/Menus/index.mjs +1 -1
  437. package/dist/components/Other/Container.js +1 -1
  438. package/dist/components/Other/Container.mjs +1 -1
  439. package/dist/components/Other/PageShape.js +1 -1
  440. package/dist/components/Other/PageShape.mjs +1 -1
  441. package/dist/components/Other/index.js +1 -1
  442. package/dist/components/Other/index.mjs +1 -1
  443. package/dist/components/Payload/Card/index.js +1 -1
  444. package/dist/components/Payload/Card/index.mjs +1 -1
  445. package/dist/components/Payload/CollectionArchive/index.js +1 -1
  446. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  447. package/dist/components/Payload/Link/index.js +1 -1
  448. package/dist/components/Payload/Link/index.mjs +1 -1
  449. package/dist/components/Payload/Media/ImageMedia/index.js +1 -1
  450. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  451. package/dist/components/Payload/Media/VideoMedia/index.js +1 -1
  452. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  453. package/dist/components/Payload/Media/index.js +1 -1
  454. package/dist/components/Payload/Media/index.mjs +1 -1
  455. package/dist/components/Payload/Pagination/index.js +1 -1
  456. package/dist/components/Payload/Pagination/index.mjs +1 -1
  457. package/dist/components/Payload/RichText/index.js +1 -1
  458. package/dist/components/Payload/RichText/index.mjs +1 -1
  459. package/dist/components/Payload/RichText/serialize.js +1 -1
  460. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  461. package/dist/components/Payload/index.js +1 -1
  462. package/dist/components/Payload/index.mjs +1 -1
  463. package/dist/components/Projects/AddEpicModal.js +1 -1
  464. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  465. package/dist/components/Projects/AddSprintModal.js +1 -1
  466. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  467. package/dist/components/Projects/AddTaskModal.js +1 -1
  468. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  469. package/dist/components/Projects/EpicFilter.js +1 -1
  470. package/dist/components/Projects/EpicFilter.mjs +1 -1
  471. package/dist/components/Projects/EpicsView.js +1 -1
  472. package/dist/components/Projects/EpicsView.mjs +1 -1
  473. package/dist/components/Projects/FileView.js +1 -1
  474. package/dist/components/Projects/FileView.mjs +1 -1
  475. package/dist/components/Projects/KanbanBoardView.js +1 -1
  476. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  477. package/dist/components/Projects/KanbanColumn.js +1 -1
  478. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  479. package/dist/components/Projects/PlanningView.js +1 -1
  480. package/dist/components/Projects/PlanningView.mjs +1 -1
  481. package/dist/components/Projects/ProjectPage.js +1 -1
  482. package/dist/components/Projects/ProjectPage.mjs +1 -1
  483. package/dist/components/Projects/ProjectView.js +1 -1
  484. package/dist/components/Projects/ProjectView.mjs +1 -1
  485. package/dist/components/Projects/ProjectsIndexView.js +1 -1
  486. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  487. package/dist/components/Projects/TaskCard.js +1 -1
  488. package/dist/components/Projects/TaskCard.mjs +1 -1
  489. package/dist/components/Projects/TaskDetailsModal.js +1 -1
  490. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  491. package/dist/components/Projects/TaskSelect.js +1 -1
  492. package/dist/components/Projects/TaskSelect.mjs +1 -1
  493. package/dist/components/Projects/TaskSidebar.js +1 -1
  494. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  495. package/dist/components/Projects/TasksView.js +1 -1
  496. package/dist/components/Projects/TasksView.mjs +1 -1
  497. package/dist/components/Projects/TeamSwitcher.js +1 -1
  498. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  499. package/dist/components/Projects/business-unit-switcher.js +1 -1
  500. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  501. package/dist/components/Projects/file-list.js +1 -1
  502. package/dist/components/Projects/file-list.mjs +1 -1
  503. package/dist/components/Projects/index.css +1 -0
  504. package/dist/components/Projects/index.d.ts +1 -0
  505. package/dist/components/Projects/index.js +4 -0
  506. package/dist/components/Projects/index.mjs +1 -0
  507. package/dist/components/Projects/project-card.js +1 -1
  508. package/dist/components/Projects/project-card.mjs +1 -1
  509. package/dist/components/Projects/project-form.js +1 -1
  510. package/dist/components/Projects/project-form.mjs +1 -1
  511. package/dist/components/Projects/team-card.js +1 -1
  512. package/dist/components/Projects/team-card.mjs +1 -1
  513. package/dist/components/Projects/team-switcher-bar.js +1 -1
  514. package/dist/components/Projects/team-switcher-bar.mjs +1 -1
  515. package/dist/components/Projects/test-data.js +1 -1
  516. package/dist/components/Projects/test-data.mjs +1 -1
  517. package/dist/components/dc-temp/creative.js +1 -1
  518. package/dist/components/dc-temp/creative.mjs +1 -1
  519. package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
  520. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  521. package/dist/components/dc-temp/index.js +1 -1
  522. package/dist/components/dc-temp/index.mjs +1 -1
  523. package/dist/components/dc-temp/markdown-renderer.js +1 -1
  524. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  525. package/dist/components/dc-temp/mock-data.js +1 -1
  526. package/dist/components/dc-temp/mock-data.mjs +1 -1
  527. package/dist/components/dc-temp/utils.js +1 -1
  528. package/dist/components/dc-temp/utils.mjs +1 -1
  529. package/dist/components/index.d.ts +1 -0
  530. package/dist/components/index.js +13 -13
  531. package/dist/components/index.mjs +1 -1
  532. package/dist/components/ui/alert.js +1 -1
  533. package/dist/components/ui/alert.mjs +1 -1
  534. package/dist/components/ui/avatar.js +1 -1
  535. package/dist/components/ui/avatar.mjs +1 -1
  536. package/dist/components/ui/badge.js +1 -1
  537. package/dist/components/ui/badge.mjs +1 -1
  538. package/dist/components/ui/breadcrumb.js +1 -1
  539. package/dist/components/ui/breadcrumb.mjs +1 -1
  540. package/dist/components/ui/button.js +1 -1
  541. package/dist/components/ui/button.mjs +1 -1
  542. package/dist/components/ui/calendar.js +1 -1
  543. package/dist/components/ui/calendar.mjs +1 -1
  544. package/dist/components/ui/card.js +1 -1
  545. package/dist/components/ui/card.mjs +1 -1
  546. package/dist/components/ui/checkbox.js +1 -1
  547. package/dist/components/ui/checkbox.mjs +1 -1
  548. package/dist/components/ui/command.js +1 -1
  549. package/dist/components/ui/command.mjs +1 -1
  550. package/dist/components/ui/dialog.js +1 -1
  551. package/dist/components/ui/dialog.mjs +1 -1
  552. package/dist/components/ui/dropdown-menu.js +1 -1
  553. package/dist/components/ui/dropdown-menu.mjs +1 -1
  554. package/dist/components/ui/hover-card.js +1 -1
  555. package/dist/components/ui/hover-card.mjs +1 -1
  556. package/dist/components/ui/index.js +1 -1
  557. package/dist/components/ui/index.mjs +1 -1
  558. package/dist/components/ui/input.js +1 -1
  559. package/dist/components/ui/input.mjs +1 -1
  560. package/dist/components/ui/inputs/common/styles/index.js +1 -1
  561. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  562. package/dist/components/ui/inputs/text-input/index.js +1 -1
  563. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  564. package/dist/components/ui/inputs/textarea-input/index.js +1 -1
  565. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  566. package/dist/components/ui/label.js +1 -1
  567. package/dist/components/ui/label.mjs +1 -1
  568. package/dist/components/ui/pagination.js +1 -1
  569. package/dist/components/ui/pagination.mjs +1 -1
  570. package/dist/components/ui/popover.js +1 -1
  571. package/dist/components/ui/popover.mjs +1 -1
  572. package/dist/components/ui/progress.js +1 -1
  573. package/dist/components/ui/progress.mjs +1 -1
  574. package/dist/components/ui/scroll-area.js +1 -1
  575. package/dist/components/ui/scroll-area.mjs +1 -1
  576. package/dist/components/ui/select.js +1 -1
  577. package/dist/components/ui/select.mjs +1 -1
  578. package/dist/components/ui/separator.js +1 -1
  579. package/dist/components/ui/separator.mjs +1 -1
  580. package/dist/components/ui/sheet.js +1 -1
  581. package/dist/components/ui/sheet.mjs +1 -1
  582. package/dist/components/ui/sidebar.js +1 -1
  583. package/dist/components/ui/sidebar.mjs +1 -1
  584. package/dist/components/ui/skeleton.js +1 -1
  585. package/dist/components/ui/skeleton.mjs +1 -1
  586. package/dist/components/ui/switch.js +1 -1
  587. package/dist/components/ui/switch.mjs +1 -1
  588. package/dist/components/ui/tabs.js +1 -1
  589. package/dist/components/ui/tabs.mjs +1 -1
  590. package/dist/components/ui/textarea.js +1 -1
  591. package/dist/components/ui/textarea.mjs +1 -1
  592. package/dist/components/ui/toast.js +1 -1
  593. package/dist/components/ui/toast.mjs +1 -1
  594. package/dist/components/ui/toaster.js +1 -1
  595. package/dist/components/ui/toaster.mjs +1 -1
  596. package/dist/components/ui/toggle-group.js +1 -1
  597. package/dist/components/ui/toggle-group.mjs +1 -1
  598. package/dist/components/ui/toggle.js +1 -1
  599. package/dist/components/ui/toggle.mjs +1 -1
  600. package/dist/components/ui/tooltip.js +1 -1
  601. package/dist/components/ui/tooltip.mjs +1 -1
  602. package/dist/globals.css +1 -1
  603. package/dist/index.js +18 -18
  604. package/dist/index.mjs +1 -1
  605. package/dist/metafile-cjs.json +1 -1
  606. package/dist/metafile-esm.json +1 -1
  607. package/dist/pages/Blog.js +1 -1
  608. package/dist/pages/Blog.mjs +1 -1
  609. package/dist/pages/Documentation.js +1 -1
  610. package/dist/pages/Documentation.mjs +1 -1
  611. package/dist/pages/IndexPage.js +1 -1
  612. package/dist/pages/IndexPage.mjs +1 -1
  613. package/dist/pages/Intranet.js +1 -1
  614. package/dist/pages/Intranet.mjs +1 -1
  615. package/dist/pages/LandingPage.js +3 -3
  616. package/dist/pages/LandingPage.mjs +1 -1
  617. package/dist/pages/Page.js +1 -1
  618. package/dist/pages/Page.mjs +1 -1
  619. package/dist/pages/Publish.js +4 -4
  620. package/dist/pages/Publish.mjs +1 -1
  621. package/dist/pages/Website.js +1 -1
  622. package/dist/pages/Website.mjs +1 -1
  623. package/dist/sections/AboutSection.js +1 -1
  624. package/dist/sections/AboutSection.mjs +1 -1
  625. package/dist/sections/BlogDetail.js +1 -1
  626. package/dist/sections/BlogDetail.mjs +1 -1
  627. package/dist/sections/BlogList.js +3 -3
  628. package/dist/sections/BlogList.mjs +1 -1
  629. package/dist/sections/BlogListSection.js +1 -1
  630. package/dist/sections/BlogListSection.mjs +1 -1
  631. package/dist/sections/ContactSection.js +1 -1
  632. package/dist/sections/ContactSection.mjs +1 -1
  633. package/dist/sections/ImageSection.js +1 -1
  634. package/dist/sections/ImageSection.mjs +1 -1
  635. package/dist/sections/MainPageSection.js +1 -1
  636. package/dist/sections/MainPageSection.mjs +1 -1
  637. package/dist/sections/PageSections.js +3 -3
  638. package/dist/sections/PageSections.mjs +1 -1
  639. package/dist/sections/PricingSection.js +1 -1
  640. package/dist/sections/PricingSection.mjs +1 -1
  641. package/dist/sections/ServiceDetail.js +1 -1
  642. package/dist/sections/ServiceDetail.mjs +1 -1
  643. package/dist/sections/ServiceDetailSection.js +1 -1
  644. package/dist/sections/ServiceDetailSection.mjs +1 -1
  645. package/dist/sections/ServiceSection.js +1 -1
  646. package/dist/sections/ServiceSection.mjs +1 -1
  647. package/dist/sections/form/index.js +1 -1
  648. package/dist/sections/form/index.mjs +1 -1
  649. package/dist/sections/index.js +3 -3
  650. package/dist/sections/index.mjs +1 -1
  651. package/dist/styles/Colors.js +1 -1
  652. package/dist/styles/Colors.mjs +1 -1
  653. package/dist/utils/AOSInit.js +2 -2
  654. package/dist/utils/AOSInit.mjs +1 -1
  655. package/dist/utils/cn.js +1 -1
  656. package/dist/utils/cn.mjs +1 -1
  657. package/dist/utils/index.js +2 -2
  658. package/dist/utils/index.mjs +1 -1
  659. package/package.json +1 -1
  660. package/dist/chunk-MDJREBVI.mjs +0 -1
  661. package/dist/chunk-O46BOA4T.mjs +0 -1
  662. package/dist/chunk-PA4ZBJDO.mjs +0 -1
  663. package/dist/chunk-XGRRLABA.mjs +0 -8
  664. package/dist/chunk-ZFUP5NVF.mjs +0 -4
  665. package/dist/chunk-ZWHGOTSF.mjs +0 -1
@@ -1 +1 @@
1
- import{a as p}from"./chunk-PK3OBSCB.mjs";import{a as v}from"./chunk-LJQPLE4S.mjs";import{c as b,d as h}from"./chunk-N3B3XNV3.mjs";import{a as k}from"./chunk-X3JZSN3W.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
1
+ import{a as p}from"./chunk-3ZXW3WQU.mjs";import{a as v}from"./chunk-6UVEJCVM.mjs";import{c as b,d as h}from"./chunk-TR52MKZR.mjs";import{a as k}from"./chunk-EGERAM4Q.mjs";import{a}from"./chunk-TSEOL53Y.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
@@ -1 +1 @@
1
- import{f as o}from"./chunk-N3B3XNV3.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
1
+ import{f as o}from"./chunk-TR52MKZR.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
@@ -1 +1 @@
1
- import{a as l,b as m,d as c}from"./chunk-JHNVX4UB.mjs";import{a as p}from"./chunk-7BXIU4ZM.mjs";import{a as N}from"./chunk-B4H6T2GP.mjs";import{a as r}from"./chunk-TVZOULLL.mjs";import{a as v}from"./chunk-L5JPAKPM.mjs";import{a as D,f as g,g as P,i as h}from"./chunk-3UMMMQEH.mjs";import{b as s}from"./chunk-ZUA4KNIR.mjs";import{a as d}from"./chunk-MDJREBVI.mjs";import{useState as x}from"react";import{CalendarIcon as S}from"lucide-react";import{format as C}from"date-fns";import{jsx as t,jsxs as i}from"react/jsx-runtime";var I=({isOpen:b,onClose:f,onAddSprint:A})=>{let[e,o]=x({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),y=a=>{a.preventDefault(),!(!e.name||!e.startDate||!e.endDate)&&(A({name:e.name,description:e.description,startDate:e.startDate,endDate:e.endDate,isActive:e.isActive,isSelected:!1}),o({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),f())},u=()=>{o({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),f()};return t(D,{open:b,onOpenChange:u,children:i(g,{className:"sm:max-w-md",children:[t(P,{children:t(h,{children:"Add New Sprint"})}),i("form",{onSubmit:y,className:"space-y-4",children:[i("div",{className:"space-y-2",children:[t(r,{htmlFor:"name",children:"Sprint Name *"}),t(v,{id:"name",value:e.name,onChange:a=>o(n=>({...n,name:a.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),i("div",{className:"space-y-2",children:[t(r,{htmlFor:"description",children:"Description"}),t(N,{id:"description",value:e.description,onChange:a=>o(n=>({...n,description:a.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),i("div",{className:"grid grid-cols-2 gap-4",children:[i("div",{className:"space-y-2",children:[t(r,{children:"Start Date *"}),i(l,{children:[t(m,{asChild:!0,children:i(s,{variant:"outline",className:d("w-full justify-start text-left font-normal",!e.startDate&&"text-muted-foreground"),children:[t(S,{className:"mr-2 h-4 w-4"}),e.startDate?C(e.startDate,"PPP"):"Pick a date"]})}),t(c,{className:"w-auto p-0",align:"start",children:t(p,{mode:"single",selected:e.startDate,onSelect:a=>o(n=>({...n,startDate:a})),initialFocus:!0})})]})]}),i("div",{className:"space-y-2",children:[t(r,{children:"End Date *"}),i(l,{children:[t(m,{asChild:!0,children:i(s,{variant:"outline",className:d("w-full justify-start text-left font-normal",!e.endDate&&"text-muted-foreground"),children:[t(S,{className:"mr-2 h-4 w-4"}),e.endDate?C(e.endDate,"PPP"):"Pick a date"]})}),t(c,{className:"w-auto p-0",align:"start",children:t(p,{mode:"single",selected:e.endDate,onSelect:a=>o(n=>({...n,endDate:a})),initialFocus:!0,disabled:a=>e.startDate?a<e.startDate:!1})})]})]})]}),i("div",{className:"flex items-center space-x-2",children:[t("input",{type:"checkbox",id:"isActive",checked:e.isActive,onChange:a=>o(n=>({...n,isActive:a.target.checked})),className:"rounded border-gray-300"}),t(r,{htmlFor:"isActive",children:"Set as active sprint"})]}),i("div",{className:"flex justify-end gap-3 pt-4",children:[t(s,{type:"button",variant:"outline",onClick:u,children:"Cancel"}),t(s,{type:"submit",disabled:!e.name||!e.startDate||!e.endDate,children:"Add Sprint"})]})]})]})})};export{I as a};
1
+ import{a as l,b as m,d as c}from"./chunk-E6W2YMC3.mjs";import{a as p}from"./chunk-F5JHHMZQ.mjs";import{a as N}from"./chunk-VXZPPTQQ.mjs";import{a as r}from"./chunk-RAAY7PEH.mjs";import{a as D,f as g,g as P,i as h}from"./chunk-AG6IN5S7.mjs";import{a as v}from"./chunk-GJUA2KUH.mjs";import{b as s}from"./chunk-7Z3TOFNL.mjs";import{a as d}from"./chunk-TSEOL53Y.mjs";import{useState as x}from"react";import{CalendarIcon as S}from"lucide-react";import{format as C}from"date-fns";import{jsx as t,jsxs as i}from"react/jsx-runtime";var I=({isOpen:b,onClose:f,onAddSprint:A})=>{let[e,o]=x({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),y=a=>{a.preventDefault(),!(!e.name||!e.startDate||!e.endDate)&&(A({name:e.name,description:e.description,startDate:e.startDate,endDate:e.endDate,isActive:e.isActive,isSelected:!1}),o({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),f())},u=()=>{o({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),f()};return t(D,{open:b,onOpenChange:u,children:i(g,{className:"sm:max-w-md",children:[t(P,{children:t(h,{children:"Add New Sprint"})}),i("form",{onSubmit:y,className:"space-y-4",children:[i("div",{className:"space-y-2",children:[t(r,{htmlFor:"name",children:"Sprint Name *"}),t(v,{id:"name",value:e.name,onChange:a=>o(n=>({...n,name:a.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),i("div",{className:"space-y-2",children:[t(r,{htmlFor:"description",children:"Description"}),t(N,{id:"description",value:e.description,onChange:a=>o(n=>({...n,description:a.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),i("div",{className:"grid grid-cols-2 gap-4",children:[i("div",{className:"space-y-2",children:[t(r,{children:"Start Date *"}),i(l,{children:[t(m,{asChild:!0,children:i(s,{variant:"outline",className:d("w-full justify-start text-left font-normal",!e.startDate&&"text-muted-foreground"),children:[t(S,{className:"mr-2 h-4 w-4"}),e.startDate?C(e.startDate,"PPP"):"Pick a date"]})}),t(c,{className:"w-auto p-0",align:"start",children:t(p,{mode:"single",selected:e.startDate,onSelect:a=>o(n=>({...n,startDate:a})),initialFocus:!0})})]})]}),i("div",{className:"space-y-2",children:[t(r,{children:"End Date *"}),i(l,{children:[t(m,{asChild:!0,children:i(s,{variant:"outline",className:d("w-full justify-start text-left font-normal",!e.endDate&&"text-muted-foreground"),children:[t(S,{className:"mr-2 h-4 w-4"}),e.endDate?C(e.endDate,"PPP"):"Pick a date"]})}),t(c,{className:"w-auto p-0",align:"start",children:t(p,{mode:"single",selected:e.endDate,onSelect:a=>o(n=>({...n,endDate:a})),initialFocus:!0,disabled:a=>e.startDate?a<e.startDate:!1})})]})]})]}),i("div",{className:"flex items-center space-x-2",children:[t("input",{type:"checkbox",id:"isActive",checked:e.isActive,onChange:a=>o(n=>({...n,isActive:a.target.checked})),className:"rounded border-gray-300"}),t(r,{htmlFor:"isActive",children:"Set as active sprint"})]}),i("div",{className:"flex justify-end gap-3 pt-4",children:[t(s,{type:"button",variant:"outline",onClick:u,children:"Cancel"}),t(s,{type:"submit",disabled:!e.name||!e.startDate||!e.endDate,children:"Add Sprint"})]})]})]})})};export{I as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as e,b as l,c as r,d as a}from"./chunk-KY7WQYN4.mjs";import{b as t}from"./chunk-ZUA4KNIR.mjs";import{Moon as m,Sun as T}from"lucide-react";import{useTheme as p}from"next-themes";import{jsx as o,jsxs as i}from"react/jsx-runtime";function u(){let{setTheme:s,theme:n}=p();return o(e,{children:i(l,{children:[o(r,{asChild:!0,children:i(t,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>s(n==="light"?"dark":"light"),children:[o(T,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),o(m,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),o("span",{className:"sr-only",children:"Toggle theme"})]})}),o(a,{children:"Toggle theme"})]})})}export{u as a};
4
+ import{a as e,b as l,c as r,d as a}from"./chunk-BIAOADJS.mjs";import{b as t}from"./chunk-7Z3TOFNL.mjs";import{Moon as m,Sun as T}from"lucide-react";import{useTheme as p}from"next-themes";import{jsx as o,jsxs as i}from"react/jsx-runtime";function u(){let{setTheme:s,theme:n}=p();return o(e,{children:i(l,{children:[o(r,{asChild:!0,children:i(t,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>s(n==="light"?"dark":"light"),children:[o(T,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),o(m,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),o("span",{className:"sr-only",children:"Toggle theme"})]})}),o(a,{children:"Toggle theme"})]})})}export{u as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-MDJREBVI.mjs";import*as t from"react";import{jsx as l}from"react/jsx-runtime";var s=t.forwardRef(({className:r,type:o,...n},i)=>l("input",{type:o,className:e("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:i,...n}));s.displayName="Input";export{s as a};
1
+ import{a as e}from"./chunk-TSEOL53Y.mjs";import*as t from"react";import{jsx as l}from"react/jsx-runtime";var s=t.forwardRef(({className:r,type:o,...n},i)=>l("input",{type:o,className:e("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:i,...n}));s.displayName="Input";export{s as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as s,b as i,c,e as l}from"./chunk-YO3GQYRJ.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{useSearchParams as u,usePathname as h,useRouter as x}from"next/navigation";import{ExternalLink as y}from"lucide-react";import{jsx as e,jsxs as m}from"react/jsx-runtime";var N=n("transition-colors duration-400 hover:text-primary ease-in-out");function S({title:o,links:a}){let p=u(),d=h(),{replace:C}=x();function f(r){let t=new URLSearchParams(p);r?t.set("category",r):t.delete("category"),C(`${d}?${t.toString()}`)}return m(s,{children:[e(i,{children:e(c,{className:"text-accent",children:o&&o})}),e(l,{children:a&&a.length>0&&e("nav",{"aria-label":"footer links navigation",children:e("ul",{className:"grid gap-2.5 ",children:a.map((r,t)=>m("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:g=>{g.preventDefault(),f(r.href)},children:[r.label,e(y,{className:"ml-1 h-3 w-3"})]},t))})})})]})}export{S as a};
4
+ import{a as s,b as i,c,e as l}from"./chunk-7WKUKFCT.mjs";import{a as n}from"./chunk-TSEOL53Y.mjs";import{useSearchParams as u,usePathname as h,useRouter as x}from"next/navigation";import{ExternalLink as y}from"lucide-react";import{jsx as e,jsxs as m}from"react/jsx-runtime";var N=n("transition-colors duration-400 hover:text-primary ease-in-out");function S({title:o,links:a}){let p=u(),d=h(),{replace:C}=x();function f(r){let t=new URLSearchParams(p);r?t.set("category",r):t.delete("category"),C(`${d}?${t.toString()}`)}return m(s,{children:[e(i,{children:e(c,{className:"text-accent",children:o&&o})}),e(l,{children:a&&a.length>0&&e("nav",{"aria-label":"footer links navigation",children:e("ul",{className:"grid gap-2.5 ",children:a.map((r,t)=>m("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:g=>{g.preventDefault(),f(r.href)},children:[r.label,e(y,{className:"ml-1 h-3 w-3"})]},t))})})})]})}export{S as a};
@@ -1 +1 @@
1
- import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as s}from"./chunk-WISCWNL2.mjs";import{FaCircleCheck as m,FaAnglesRight as g}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function u({title:n,description:d,features:t,price:l,duration:i,button:a}){return r("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[r("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[e("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:n}),e("p",{children:d})]}),e("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:r("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[t&&t.length>0&&e("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:t.map((p,c)=>r("li",{className:"flex items-start gap-3 lg:gap-4",children:[e("span",{className:"text-accent pt-1",children:e(m,{})}),e("span",{children:p})]},c))}),r("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[l&&l,e("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:i&&i})]}),a&&e("div",{className:"flex-none mr-0 sm:ml-auto",children:e(o,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:r(s,{href:a.href,openNewTab:a.openNewTab,children:[e("span",{className:"relative z-1",children:a.label}),e("span",{className:"relative z-1 pl-2",children:e(g,{})})]})})})]})})]})}export{u as a};
1
+ import{b as o}from"./chunk-7Z3TOFNL.mjs";import{a as s}from"./chunk-WISCWNL2.mjs";import{FaCircleCheck as m,FaAnglesRight as g}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function u({title:n,description:d,features:t,price:l,duration:i,button:a}){return r("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[r("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[e("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:n}),e("p",{children:d})]}),e("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:r("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[t&&t.length>0&&e("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:t.map((p,c)=>r("li",{className:"flex items-start gap-3 lg:gap-4",children:[e("span",{className:"text-accent pt-1",children:e(m,{})}),e("span",{children:p})]},c))}),r("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[l&&l,e("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:i&&i})]}),a&&e("div",{className:"flex-none mr-0 sm:ml-auto",children:e(o,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:r(s,{href:a.href,openNewTab:a.openNewTab,children:[e("span",{className:"relative z-1",children:a.label}),e("span",{className:"relative z-1 pl-2",children:e(g,{})})]})})})]})})]})}export{u as a};
@@ -1 +1 @@
1
- import{b as o}from"./chunk-CSBGSBEU.mjs";import{a as n}from"./chunk-YO3GQYRJ.mjs";import{jsx as r,jsxs as s}from"react/jsx-runtime";var f=({title:d,status:a,taskCount:l,children:m,onDrop:c,isCompact:t=!1})=>{let u=e=>{e.preventDefault()},i=e=>{e.preventDefault(),c(a)};return s(n,{className:`p-4 bg-card border-l-4 ${(()=>{switch(a){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 ${t?"lg:max-w-xs":""}`,onDragOver:u,onDrop:i,children:[s("div",{className:"flex items-center justify-between mb-4",children:[r("h3",{className:`font-semibold text-foreground select-none-important ${t?"text-base":"text-lg"}`,children:d}),r(o,{variant:"secondary",className:"bg-muted text-muted-foreground",children:l})]}),r("div",{className:"space-y-4 min-h-[200px]",children:m})]})};export{f as a};
1
+ import{b as o}from"./chunk-2JKLBLDE.mjs";import{a as n}from"./chunk-7WKUKFCT.mjs";import{jsx as r,jsxs as s}from"react/jsx-runtime";var f=({title:d,status:a,taskCount:l,children:m,onDrop:c,isCompact:t=!1})=>{let u=e=>{e.preventDefault()},i=e=>{e.preventDefault(),c(a)};return s(n,{className:`p-4 bg-card border-l-4 ${(()=>{switch(a){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 ${t?"lg:max-w-xs":""}`,onDragOver:u,onDrop:i,children:[s("div",{className:"flex items-center justify-between mb-4",children:[r("h3",{className:`font-semibold text-foreground select-none-important ${t?"text-base":"text-lg"}`,children:d}),r(o,{variant:"secondary",className:"bg-muted text-muted-foreground",children:l})]}),r("div",{className:"space-y-4 min-h-[200px]",children:m})]})};export{f as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as m,d as p,f,g as d,i as u}from"./chunk-3UMMMQEH.mjs";import w from"next/image";import a from"path";import{useState as s}from"react";import{Fragment as j,jsx as o,jsxs as c}from"react/jsx-runtime";function N(t){try{let e=new URL(t),{hostname:n}=e;return n.endsWith("sharepoint.com")}catch{return!1}}function W(t){return t.startsWith("http")}function v(t,e){let n=t;if(N(t))n=`/docs/api/content/sharepoint?url=${t}`;else if(W(t))n=t;else if(e.source==="github"){let i=t.replace("./","");if(i.startsWith("/")&&(i=i.slice(1)),e.linked){if(e.linked.path){let r=a.dirname(e.linked.path);r.startsWith(".")||(i=`${r}/${i}`)}n=`/docs/api/github/content?owner=${e.linked.owner}&repo=${e.linked.repo}&path=${i}&branch=${e.linked.branch}`}else{if(e.file){let r=a.dirname(e.file);r.startsWith(".")||(i=`${r}/${i}`)}n=`/docs/api/github/content?owner=${e.owner}&repo=${e.repo}&path=${i}&branch=${e.branch}`}}else if(t.startsWith("/"))n=t;else if(t.startsWith("./")){let i=t.replace("./","");e.file&&(i=`/${a.dirname(e.file)}/${i}`),n=i}else n="/image-not-found.png";return n}function S({src:t,alt:e}){let[n,i]=s(!1),[r,$]=s(!1),[l,y]=s({width:0,height:0}),k=()=>{r&&i(!0)},z=()=>{i(!1)},I=D=>{let{naturalWidth:h,naturalHeight:g}=D.target;y({width:h,height:g}),$(h>300||g>300)};return c(j,{children:[o("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:k,children:o(w,{sizes:"100vw",height:l.height,width:l.width,src:t,alt:e||"",onLoad:I,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),o(m,{open:n,onOpenChange:i,children:c(f,{className:"flex flex-col items-center justify-center",children:[c(d,{className:"flex w-full justify-end",children:[o(u,{className:"hidden",children:e}),o(p,{})]}),o("div",{className:"flex items-center justify-center",children:o(w,{height:l.height,width:l.width,src:t,alt:e||"",unoptimized:!0,className:"object-contain"})})]})})]})}function P({props:t,baseContext:e}){let{src:n}=t;return n=v(n,e),o(S,{src:n,alt:t.alt})}export{P as a};
4
+ import{a as m,d as p,f,g as d,i as u}from"./chunk-AG6IN5S7.mjs";import w from"next/image";import a from"path";import{useState as s}from"react";import{Fragment as j,jsx as o,jsxs as c}from"react/jsx-runtime";function N(t){try{let e=new URL(t),{hostname:n}=e;return n.endsWith("sharepoint.com")}catch{return!1}}function W(t){return t.startsWith("http")}function v(t,e){let n=t;if(N(t))n=`/docs/api/content/sharepoint?url=${t}`;else if(W(t))n=t;else if(e.source==="github"){let i=t.replace("./","");if(i.startsWith("/")&&(i=i.slice(1)),e.linked){if(e.linked.path){let r=a.dirname(e.linked.path);r.startsWith(".")||(i=`${r}/${i}`)}n=`/docs/api/github/content?owner=${e.linked.owner}&repo=${e.linked.repo}&path=${i}&branch=${e.linked.branch}`}else{if(e.file){let r=a.dirname(e.file);r.startsWith(".")||(i=`${r}/${i}`)}n=`/docs/api/github/content?owner=${e.owner}&repo=${e.repo}&path=${i}&branch=${e.branch}`}}else if(t.startsWith("/"))n=t;else if(t.startsWith("./")){let i=t.replace("./","");e.file&&(i=`/${a.dirname(e.file)}/${i}`),n=i}else n="/image-not-found.png";return n}function S({src:t,alt:e}){let[n,i]=s(!1),[r,$]=s(!1),[l,y]=s({width:0,height:0}),k=()=>{r&&i(!0)},z=()=>{i(!1)},I=D=>{let{naturalWidth:h,naturalHeight:g}=D.target;y({width:h,height:g}),$(h>300||g>300)};return c(j,{children:[o("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:k,children:o(w,{sizes:"100vw",height:l.height,width:l.width,src:t,alt:e||"",onLoad:I,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),o(m,{open:n,onOpenChange:i,children:c(f,{className:"flex flex-col items-center justify-center",children:[c(d,{className:"flex w-full justify-end",children:[o(u,{className:"hidden",children:e}),o(p,{})]}),o("div",{className:"flex items-center justify-center",children:o(w,{height:l.height,width:l.width,src:t,alt:e||"",unoptimized:!0,className:"object-contain"})})]})})]})}function P({props:t,baseContext:e}){let{src:n}=t;return n=v(n,e),o(S,{src:n,alt:t.alt})}export{P as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-MDJREBVI.mjs";import{jsx as m}from"react/jsx-runtime";function a({className:t,...r}){return m("div",{className:e("animate-pulse rounded-md bg-primary/10",t),...r})}export{a};
1
+ import{a as e}from"./chunk-TSEOL53Y.mjs";import{jsx as m}from"react/jsx-runtime";function a({className:t,...r}){return m("div",{className:e("animate-pulse rounded-md bg-primary/10",t),...r})}export{a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as n}from"./chunk-INCYANPB.mjs";import{b as r}from"./chunk-ZUA4KNIR.mjs";import{a as d,b as p,c as v}from"./chunk-SOLZ4VQH.mjs";import{b as g}from"./chunk-CSBGSBEU.mjs";import{useState as A}from"react";import{Toaster as D,toast as o}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as a}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:h}){let[t,c]=A([]),m=k(),u=()=>{t.length===l.length?c([]):c(l.map(e=>e.id))},N=e=>{c(i=>i.includes(e)?i.filter(b=>b!==e):[...i,e])},x=async()=>{let e=await f(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])},y=async()=>{let e=await h(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])};return a("div",{className:"space-y-4",children:[a("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),a("div",{className:"space-x-2",children:[s(r,{onClick:x,disabled:t.length===0,variant:"default",children:"Approve Selected"}),s(r,{onClick:y,disabled:t.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:a("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:"select-all",checked:t.length===l.length,onCheckedChange:u,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),a("span",{className:"text-sm font-medium text-gray-500",children:[t.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:`select-${e.id}`,checked:t.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),a("div",{className:"ml-3 flex items-center",children:[a(d,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(i=>i[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),a("div",{className:"flex items-center space-x-2",children:[a("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
4
+ import{a as n}from"./chunk-NQPBIFGO.mjs";import{b as r}from"./chunk-7Z3TOFNL.mjs";import{a as d,b as p,c as v}from"./chunk-RFNYVF6F.mjs";import{b as g}from"./chunk-2JKLBLDE.mjs";import{useState as A}from"react";import{Toaster as D,toast as o}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as a}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:h}){let[t,c]=A([]),m=k(),u=()=>{t.length===l.length?c([]):c(l.map(e=>e.id))},N=e=>{c(i=>i.includes(e)?i.filter(b=>b!==e):[...i,e])},x=async()=>{let e=await f(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])},y=async()=>{let e=await h(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])};return a("div",{className:"space-y-4",children:[a("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),a("div",{className:"space-x-2",children:[s(r,{onClick:x,disabled:t.length===0,variant:"default",children:"Approve Selected"}),s(r,{onClick:y,disabled:t.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:a("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:"select-all",checked:t.length===l.length,onCheckedChange:u,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),a("span",{className:"text-sm font-medium text-gray-500",children:[t.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:`select-${e.id}`,checked:t.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),a("div",{className:"ml-3 flex items-center",children:[a(d,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(i=>i[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),a("div",{className:"flex items-center space-x-2",children:[a("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as n}from"./chunk-GHZ6CUY3.mjs";import{a as x}from"./chunk-Z22NSJMF.mjs";import{a as A}from"./chunk-FGEFYI5E.mjs";import{a as w}from"./chunk-L5JPAKPM.mjs";import{b as v}from"./chunk-ZUA4KNIR.mjs";import{a as g,e as y}from"./chunk-YO3GQYRJ.mjs";import{useEffect as U,useState as r}from"react";import{Plus as V,Search as $,File as R,Filter as q}from"lucide-react";import{motion as z,AnimatePresence as G}from"motion/react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function M({initialFiles:c=[],onFileAdd:k,onFileEdit:S,onFileDelete:D,onFileClick:E,compactView:d=!1,className:H}){let[h,C]=r(c),[a,N]=r(""),[o,P]=r("all"),[s,B]=r("all");U(()=>{C(c)},[c]);let O=Array.from(new Set(h.map(l=>l.mimeType))),t=h.filter(l=>{let F=l.name.toLowerCase().includes(a.toLowerCase()),u=o==="all"||l.mimeType===o;return F&&u}),b=t.slice(0,10),I=t.filter(Boolean),T=()=>{k?.()},m=l=>{S?.(l)},p=l=>{console.log("deleting file",l),C(F=>F.filter(u=>u.name!==l.name)),D?.(l.id)},f=l=>{E?.(l)},L=()=>{N(""),P("all")};return e("div",{className:"px-2 md:px-4 py-4 space-y-8",children:e(G,{mode:"wait",children:e(z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:i("div",{className:`space-y-6 ${H||""}`,children:[e(x,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:T},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),e(g,{children:e(y,{className:"pt-6",children:i("div",{className:"flex flex-col md:flex-row gap-4",children:[e("div",{className:"flex-1",children:i("div",{className:"relative",children:[e($,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(w,{placeholder:"Search files...",value:a,onChange:l=>N(l.target.value),className:"pl-9"})]})}),(a||o!=="all")&&i(v,{variant:"outline",onClick:L,className:"gap-2",children:[e(q,{className:"h-4 w-4"}),"Clear"]})]})})}),i("div",{className:"space-y-4",children:[e(A,{activeTab:s,onTabChange:B,tabOptions:[{value:"all",label:`All Files (${t.length})`},{value:"recent",label:`Recent (${b.length})`}],maxWidth:"500px",gridCols:3}),s==="all"&&e(n,{files:t,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d}),s==="recent"&&e(n,{files:b,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d}),s==="shared"&&e(n,{files:I,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d})]}),t.length===0&&e(g,{children:e(y,{className:"pt-6",children:i("div",{className:"text-center py-8",children:[e(R,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),e("p",{className:"text-muted-foreground mb-4",children:a||o!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),i(v,{onClick:T,className:"gap-2",children:[e(V,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}export{M as a};
4
+ import{a as n}from"./chunk-AQIMDHFI.mjs";import{a as x}from"./chunk-BM2ZNFM6.mjs";import{a as A}from"./chunk-6CAO4IKW.mjs";import{a as w}from"./chunk-GJUA2KUH.mjs";import{b as v}from"./chunk-7Z3TOFNL.mjs";import{a as g,e as y}from"./chunk-7WKUKFCT.mjs";import{useEffect as U,useState as r}from"react";import{Plus as V,Search as $,File as R,Filter as q}from"lucide-react";import{motion as z,AnimatePresence as G}from"motion/react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function M({initialFiles:c=[],onFileAdd:k,onFileEdit:S,onFileDelete:D,onFileClick:E,compactView:d=!1,className:H}){let[h,C]=r(c),[a,N]=r(""),[o,P]=r("all"),[s,B]=r("all");U(()=>{C(c)},[c]);let O=Array.from(new Set(h.map(l=>l.mimeType))),t=h.filter(l=>{let F=l.name.toLowerCase().includes(a.toLowerCase()),u=o==="all"||l.mimeType===o;return F&&u}),b=t.slice(0,10),I=t.filter(Boolean),T=()=>{k?.()},m=l=>{S?.(l)},p=l=>{console.log("deleting file",l),C(F=>F.filter(u=>u.name!==l.name)),D?.(l.id)},f=l=>{E?.(l)},L=()=>{N(""),P("all")};return e("div",{className:"px-2 md:px-4 py-4 space-y-8",children:e(G,{mode:"wait",children:e(z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:i("div",{className:`space-y-6 ${H||""}`,children:[e(x,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:T},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),e(g,{children:e(y,{className:"pt-6",children:i("div",{className:"flex flex-col md:flex-row gap-4",children:[e("div",{className:"flex-1",children:i("div",{className:"relative",children:[e($,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(w,{placeholder:"Search files...",value:a,onChange:l=>N(l.target.value),className:"pl-9"})]})}),(a||o!=="all")&&i(v,{variant:"outline",onClick:L,className:"gap-2",children:[e(q,{className:"h-4 w-4"}),"Clear"]})]})})}),i("div",{className:"space-y-4",children:[e(A,{activeTab:s,onTabChange:B,tabOptions:[{value:"all",label:`All Files (${t.length})`},{value:"recent",label:`Recent (${b.length})`}],maxWidth:"500px",gridCols:3}),s==="all"&&e(n,{files:t,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d}),s==="recent"&&e(n,{files:b,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d}),s==="shared"&&e(n,{files:I,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d})]}),t.length===0&&e(g,{children:e(y,{className:"pt-6",children:i("div",{className:"text-center py-8",children:[e(R,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),e("p",{className:"text-muted-foreground mb-4",children:a||o!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),i(v,{onClick:T,className:"gap-2",children:[e(V,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}export{M as a};
@@ -1,4 +1,4 @@
1
- import{a as r}from"./chunk-MDJREBVI.mjs";import n from"next/link";import p from"next/image";import{jsx as o,jsxs as a}from"react/jsx-runtime";var e={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function c({slug:s,image:t,title:i,description:l}){return a(n,{href:s,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[o("span",{className:r("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),o(p,{src:t.src,alt:t.alt,fill:!0,sizes:`
1
+ import{a as r}from"./chunk-TSEOL53Y.mjs";import n from"next/link";import p from"next/image";import{jsx as o,jsxs as a}from"react/jsx-runtime";var e={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function c({slug:s,image:t,title:i,description:l}){return a(n,{href:s,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[o("span",{className:r("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),o(p,{src:t.src,alt:t.alt,fill:!0,sizes:`
2
2
  (min-width:${e.md}) 50vw,
3
3
  (min-width:${e.lg}) 25vw,
4
4
  100vw
@@ -1 +1 @@
1
- import{b as c}from"./chunk-CSBGSBEU.mjs";import{a as s,b as r,c as o,e as n}from"./chunk-YO3GQYRJ.mjs";import{CalendarIcon as x,UserIcon as C}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function N({deal:a,customer:i,categories:p,onClick:d,compact:f=!1}){let m=p.find(l=>l.type==="proposition"&&(a.categories??[]).includes(l.id));return f?t(s,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:d,children:[t(r,{className:"pb-1 pt-2",children:[e(o,{className:"text-sm font-semibold text-foreground",children:i?.name}),e("p",{className:"text-sm text-foreground mt-1",children:a.description})]}),e(n,{className:"text-xs text-gray-200 pb-2",children:e("div",{className:"flex justify-between items-center mb-1",children:e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})})})]}):t(s,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:d,children:[t(r,{className:"pb-2",children:[e("div",{className:"flex justify-between items-center",children:e(o,{className:"text-lg font-semibold text-foreground",children:i?.name})}),e("p",{className:"text-sm text-foreground mt-1",children:a.description})]}),t(n,{children:[t("div",{className:"flex justify-between items-center mb-3",children:[t("div",{className:"flex items-center text-sm text-foreground",children:[e(C,{className:"w-4 h-4 mr-1 text-xs"}),e("span",{children:a.assignee.name})]}),e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})]}),e("div",{className:"flex justify-between items-left mb-3",children:t("div",{className:"flex items-center text-xs text-gray-200",children:[e(x,{className:"w-3 h-3 mr-1"}),e("span",{children:new Date(a.updatedAt).toLocaleDateString()})]})}),e("div",{className:"flex justify-between items-left",children:m&&e(c,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:m.name})})]})]})}export{N as a};
1
+ import{b as c}from"./chunk-2JKLBLDE.mjs";import{a as s,b as r,c as o,e as n}from"./chunk-7WKUKFCT.mjs";import{CalendarIcon as x,UserIcon as C}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function N({deal:a,customer:i,categories:p,onClick:d,compact:f=!1}){let m=p.find(l=>l.type==="proposition"&&(a.categories??[]).includes(l.id));return f?t(s,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:d,children:[t(r,{className:"pb-1 pt-2",children:[e(o,{className:"text-sm font-semibold text-foreground",children:i?.name}),e("p",{className:"text-sm text-foreground mt-1",children:a.description})]}),e(n,{className:"text-xs text-gray-200 pb-2",children:e("div",{className:"flex justify-between items-center mb-1",children:e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})})})]}):t(s,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:d,children:[t(r,{className:"pb-2",children:[e("div",{className:"flex justify-between items-center",children:e(o,{className:"text-lg font-semibold text-foreground",children:i?.name})}),e("p",{className:"text-sm text-foreground mt-1",children:a.description})]}),t(n,{children:[t("div",{className:"flex justify-between items-center mb-3",children:[t("div",{className:"flex items-center text-sm text-foreground",children:[e(C,{className:"w-4 h-4 mr-1 text-xs"}),e("span",{children:a.assignee.name})]}),e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})]}),e("div",{className:"flex justify-between items-left mb-3",children:t("div",{className:"flex items-center text-xs text-gray-200",children:[e(x,{className:"w-3 h-3 mr-1"}),e("span",{children:new Date(a.updatedAt).toLocaleDateString()})]})}),e("div",{className:"flex justify-between items-left",children:m&&e(c,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:m.name})})]})]})}export{N as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as b}from"./chunk-52GADV2R.mjs";import{a as I}from"./chunk-56X4PU43.mjs";import{a as S}from"./chunk-O46BOA4T.mjs";import{useChat as me}from"@ai-sdk/react";import{useState as r}from"react";import{motion as fe,AnimatePresence as he}from"motion/react";import{Users as ye}from"lucide-react";import{jsx as n,jsxs as Ce}from"react/jsx-runtime";function Le({aiConfig:w,useCustomChat:F,enableAI:D=!0,messages:T=[],businessUnits:B=[],capabilities:R=[],sidebarItems:x=[],notifications:N=[],sessions:M=[],onNewChat:A,onSessionSelect:L,onSessionDelete:P,onSessionEdit:k=()=>{},onBusinessUnitChange:E=()=>{},onNotificationRemove:K=()=>{},onRemoveAll:O=()=>{},onActionClick:$=()=>{},onSearch:q=p=>console.log("Search query:",p),initialTeam:z="design",currentSession:m=null,showCapabilities:ve=!0,title:W="Digital Colleagues",enableFileUpload:f=!0,maxFileSize:h=10,allowedFileTypes:y=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:H="/headerlogo.png",appName:X="Nuvia",tagline:G="AI-Powered Workspace",actionIcon:J=n(ye,{className:"mr-2 h-4 w-4"}),actionText:Q="Collaborate",sidebarInitiallyClosed:V=!1}){let p={...w,onError:e=>{i?.setMessages(t=>[...t,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:e.message}]}]),console.error("Error in CopilotInterface:",e)}},Y=me(p||{}),i=D?F||Y:null,[Z,u]=r(""),[_,C]=r(!1),j=i?.messages||T,l=Z,ee=i?.status==="submitted"||_,se=i?.addToolResult?(e,t,s)=>{i.addToolResult({tool:t,toolCallId:e,output:s}),i.sendMessage()}:()=>{},o=B||[],te={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[ie,ne]=r(()=>o.length===0?te:o.find(e=>e.id===z)||o[0]),[a,c]=r([]),[oe,ae]=r(!1),re=e=>{if(!e||!f)return;let t=[];Array.from(e).forEach(s=>{if(s.size>h*1024*1024){alert(`File ${s.name} is too large. Maximum size is ${h}MB.`);return}if(y.length>0&&!y.some(d=>s.type.match(d))){alert(`File type ${s.type} is not allowed.`);return}let U={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:s,status:"pending",progress:0};if(s.type.startsWith("image/")){let d=new FileReader;d.onload=ue=>{c(ge=>ge.map(g=>g.id===U.id?{...g,preview:ue.target?.result}:g))},d.readAsDataURL(s)}t.push(U)}),c(s=>[...s,...t])},le=e=>{c(t=>t.filter(s=>s.id!==e))},v=()=>{if(!(!l.trim()&&a.length===0)){if(i){let e=a.length>0?ce(a.map(t=>t.file)):void 0;i.sendMessage({text:l,files:e},{body:{timestamp:Date.now()}}),u("")}else console.log("Message to send:",l),console.log("Files to upload:",a),u(""),C(!0),setTimeout(()=>{C(!1)},1500);c([])}},ce=e=>{let t=new DataTransfer;return e.forEach(s=>t.items.add(s)),t.files},de=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),v())},pe=e=>{u(e)};return n(b,{sidebarItems:x||[],title:W,notifications:N||[],businessUnits:o,currentBusinessUnit:ie,onBusinessUnitChange:e=>{e&&(ne(e),E?.(e))},onSearch:q,showTabs:!1,onActionClick:$,actionIcon:J,actionText:Q,onNotificationRemove:K,onRemoveAll:O,logo:H,appName:X,tagline:G,sidebarInitiallyClosed:V,children:n(he,{mode:"wait",children:n(fe.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:Ce("div",{className:"h-full flex",children:[n("div",{className:"w-80 flex-shrink-0 h-full p-2",children:n(I,{sessions:M||[],currentSession:m,teams:o,onNewChat:A,onSessionSelect:L,onSessionEdit:k,onSessionDelete:P})}),n("div",{className:"flex-1 h-full p-2",children:n(S,{messages:j||[],input:l,isTyping:ee,currentSessionTitle:m?.title,capabilities:R||[],onInputChange:pe,addToolResult:se,onSendMessage:v,onKeyPress:de,fileUploads:a,isDragOver:oe,enableFileUpload:f,onFileUpload:re,onRemoveFile:le,onDragOver:ae})})]})},"chat-interface")})})}export{Le as a};
4
+ import{a as b}from"./chunk-E6IIUYQ7.mjs";import{a as I}from"./chunk-PXAKUW3U.mjs";import{a as S}from"./chunk-2WLZ5T2D.mjs";import{useChat as me}from"@ai-sdk/react";import{useState as r}from"react";import{motion as fe,AnimatePresence as he}from"motion/react";import{Users as ye}from"lucide-react";import{jsx as n,jsxs as Ce}from"react/jsx-runtime";function Le({aiConfig:w,useCustomChat:F,enableAI:D=!0,messages:T=[],businessUnits:B=[],capabilities:R=[],sidebarItems:x=[],notifications:N=[],sessions:M=[],onNewChat:A,onSessionSelect:L,onSessionDelete:P,onSessionEdit:k=()=>{},onBusinessUnitChange:E=()=>{},onNotificationRemove:K=()=>{},onRemoveAll:O=()=>{},onActionClick:$=()=>{},onSearch:q=p=>console.log("Search query:",p),initialTeam:z="design",currentSession:m=null,showCapabilities:ve=!0,title:W="Digital Colleagues",enableFileUpload:f=!0,maxFileSize:h=10,allowedFileTypes:y=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:H="/headerlogo.png",appName:X="Nuvia",tagline:G="AI-Powered Workspace",actionIcon:J=n(ye,{className:"mr-2 h-4 w-4"}),actionText:Q="Collaborate",sidebarInitiallyClosed:V=!1}){let p={...w,onError:e=>{i?.setMessages(t=>[...t,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:e.message}]}]),console.error("Error in CopilotInterface:",e)}},Y=me(p||{}),i=D?F||Y:null,[Z,u]=r(""),[_,C]=r(!1),j=i?.messages||T,l=Z,ee=i?.status==="submitted"||_,se=i?.addToolResult?(e,t,s)=>{i.addToolResult({tool:t,toolCallId:e,output:s}),i.sendMessage()}:()=>{},o=B||[],te={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[ie,ne]=r(()=>o.length===0?te:o.find(e=>e.id===z)||o[0]),[a,c]=r([]),[oe,ae]=r(!1),re=e=>{if(!e||!f)return;let t=[];Array.from(e).forEach(s=>{if(s.size>h*1024*1024){alert(`File ${s.name} is too large. Maximum size is ${h}MB.`);return}if(y.length>0&&!y.some(d=>s.type.match(d))){alert(`File type ${s.type} is not allowed.`);return}let U={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:s,status:"pending",progress:0};if(s.type.startsWith("image/")){let d=new FileReader;d.onload=ue=>{c(ge=>ge.map(g=>g.id===U.id?{...g,preview:ue.target?.result}:g))},d.readAsDataURL(s)}t.push(U)}),c(s=>[...s,...t])},le=e=>{c(t=>t.filter(s=>s.id!==e))},v=()=>{if(!(!l.trim()&&a.length===0)){if(i){let e=a.length>0?ce(a.map(t=>t.file)):void 0;i.sendMessage({text:l,files:e},{body:{timestamp:Date.now()}}),u("")}else console.log("Message to send:",l),console.log("Files to upload:",a),u(""),C(!0),setTimeout(()=>{C(!1)},1500);c([])}},ce=e=>{let t=new DataTransfer;return e.forEach(s=>t.items.add(s)),t.files},de=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),v())},pe=e=>{u(e)};return n(b,{sidebarItems:x||[],title:W,notifications:N||[],businessUnits:o,currentBusinessUnit:ie,onBusinessUnitChange:e=>{e&&(ne(e),E?.(e))},onSearch:q,showTabs:!1,onActionClick:$,actionIcon:J,actionText:Q,onNotificationRemove:K,onRemoveAll:O,logo:H,appName:X,tagline:G,sidebarInitiallyClosed:V,children:n(he,{mode:"wait",children:n(fe.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:Ce("div",{className:"h-full flex",children:[n("div",{className:"w-80 flex-shrink-0 h-full p-2",children:n(I,{sessions:M||[],currentSession:m,teams:o,onNewChat:A,onSessionSelect:L,onSessionEdit:k,onSessionDelete:P})}),n("div",{className:"flex-1 h-full p-2",children:n(S,{messages:j||[],input:l,isTyping:ee,currentSessionTitle:m?.title,capabilities:R||[],onInputChange:pe,addToolResult:se,onSendMessage:v,onKeyPress:de,fileUploads:a,isDragOver:oe,enableFileUpload:f,onFileUpload:re,onRemoveFile:le,onDragOver:ae})})]})},"chat-interface")})})}export{Le as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as n,f as d}from"./chunk-3UMMMQEH.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import*as i from"react";import{Command as o}from"cmdk";import{Search as s}from"lucide-react";import{jsx as m,jsxs as C}from"react/jsx-runtime";var p=i.forwardRef(({className:e,...t},a)=>m(o,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));p.displayName=o.displayName;var P=({children:e,...t})=>m(n,{...t,children:m(d,{className:"overflow-hidden p-0",children:m(p,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),c=i.forwardRef(({className:e,...t},a)=>C("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m(s,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m(o.Input,{ref:a,className:r("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));c.displayName=o.Input.displayName;var f=i.forwardRef(({className:e,...t},a)=>m(o.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));f.displayName=o.List.displayName;var l=i.forwardRef((e,t)=>m(o.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));l.displayName=o.Empty.displayName;var u=i.forwardRef(({className:e,...t},a)=>m(o.Group,{ref:a,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));u.displayName=o.Group.displayName;var g=i.forwardRef(({className:e,...t},a)=>m(o.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));g.displayName=o.Separator.displayName;var y=i.forwardRef(({className:e,...t},a)=>m(o.Item,{ref:a,className:r("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));y.displayName=o.Item.displayName;var R=({className:e,...t})=>m("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});R.displayName="CommandShortcut";export{p as a,P as b,c,f as d,l as e,u as f,g,y as h,R as i};
4
+ import{a as n,f as d}from"./chunk-AG6IN5S7.mjs";import{a as r}from"./chunk-TSEOL53Y.mjs";import*as i from"react";import{Command as o}from"cmdk";import{Search as s}from"lucide-react";import{jsx as m,jsxs as C}from"react/jsx-runtime";var p=i.forwardRef(({className:e,...t},a)=>m(o,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));p.displayName=o.displayName;var P=({children:e,...t})=>m(n,{...t,children:m(d,{className:"overflow-hidden p-0",children:m(p,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),c=i.forwardRef(({className:e,...t},a)=>C("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m(s,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m(o.Input,{ref:a,className:r("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));c.displayName=o.Input.displayName;var f=i.forwardRef(({className:e,...t},a)=>m(o.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));f.displayName=o.List.displayName;var l=i.forwardRef((e,t)=>m(o.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));l.displayName=o.Empty.displayName;var u=i.forwardRef(({className:e,...t},a)=>m(o.Group,{ref:a,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));u.displayName=o.Group.displayName;var g=i.forwardRef(({className:e,...t},a)=>m(o.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));g.displayName=o.Separator.displayName;var y=i.forwardRef(({className:e,...t},a)=>m(o.Item,{ref:a,className:r("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));y.displayName=o.Item.displayName;var R=({className:e,...t})=>m("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});R.displayName="CommandShortcut";export{p as a,P as b,c,f as d,l as e,u as f,g,y as h,R as i};
@@ -0,0 +1 @@
1
+ var re=e=>{let r=oe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{let s=a.split("-");return s[0]===""&&s.length!==1&&s.shift(),Q(s,r)||te(a)},getConflictingClassGroupIds:(a,s)=>{let u=t[a]||[];return s&&o[a]?[...u,...o[a]]:u}}},Q=(e,r)=>{if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),i=o?Q(e.slice(1),o):void 0;if(i)return i;if(r.validators.length===0)return;let n=e.join("-");return r.validators.find(({validator:a})=>a(n))?.classGroupId},Z=/^\[(.+)\]$/,te=e=>{if(Z.test(e)){let r=Z.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},oe=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return se(Object.entries(e.classGroups),t).forEach(([n,a])=>{$(a,o,n,r)}),o},$=(e,r,t,o)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?r:H(r,i);n.classGroupId=t;return}if(typeof i=="function"){if(ne(i)){$(i(o),r,t,o);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([n,a])=>{$(a,H(r,n),t,o)})})},H=(e,r)=>{let t=e;return r.split("-").forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},ne=e=>e.isThemeGetter,se=(e,r)=>r?e.map(([t,o])=>{let i=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,s])=>[r+a,s])):n);return[t,i]}):e,le=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,i=(n,a)=>{t.set(n,a),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let a=t.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return i(n,a),a},set(n,a){t.has(n)?t.set(n,a):i(n,a)}}};var ie=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,i=r[0],n=r.length,a=s=>{let u=[],g=0,m=0,y;for(let p=0;p<s.length;p++){let f=s[p];if(g===0){if(f===i&&(o||s.slice(p,p+n)===r)){u.push(s.slice(m,p)),m=p+n;continue}if(f==="/"){y=p;continue}}f==="["?g++:f==="]"&&g--}let x=u.length===0?s:s.substring(m),v=x.startsWith("!"),w=v?x.substring(1):x,b=y&&y>m?y-m:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:b}};return t?s=>t({className:s,parseClassName:a}):a},ae=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},ce=e=>({cache:le(e.cacheSize),parseClassName:ie(e),...re(e)}),de=/\s+/,pe=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:i}=r,n=[],a=e.trim().split(de),s="";for(let u=a.length-1;u>=0;u-=1){let g=a[u],{modifiers:m,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:v}=t(g),w=!!v,b=o(w?x.substring(0,v):x);if(!b){if(!w){s=g+(s.length>0?" "+s:s);continue}if(b=o(x),!b){s=g+(s.length>0?" "+s:s);continue}w=!1}let p=ae(m).join(":"),f=y?p+"!":p,h=f+b;if(n.includes(h))continue;n.push(h);let M=i(b,w);for(let S=0;S<M.length;++S){let N=M[S];n.push(f+N)}s=g+(s.length>0?" "+s:s)}return s};function ue(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=Y(r))&&(o&&(o+=" "),o+=t);return o}var Y=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=Y(e[o]))&&(t&&(t+=" "),t+=r);return t};function be(e,...r){let t,o,i,n=a;function a(u){let g=r.reduce((m,y)=>y(m),e());return t=ce(g),o=t.cache.get,i=t.cache.set,n=s,s(u)}function s(u){let g=o(u);if(g)return g;let m=pe(u,t);return i(u,m),m}return function(){return n(ue.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},D=/^\[(?:([a-z-]+):)?(.+)\]$/i,ge=/^\d+\/\d+$/,fe=new Set(["px","full","screen"]),me=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,he=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ye=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,we=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>R(e)||fe.has(e)||ge.test(e),z=e=>P(e,"length",Pe),R=e=>!!e&&!Number.isNaN(Number(e)),V=e=>P(e,"number",R),T=e=>!!e&&Number.isInteger(Number(e)),ve=e=>e.endsWith("%")&&R(e.slice(0,-1)),l=e=>D.test(e),A=e=>me.test(e),ke=new Set(["length","size","percentage"]),Ce=e=>P(e,ke,ee),ze=e=>P(e,"position",ee),Ae=new Set(["image","url"]),Se=e=>P(e,Ae,Ie),Re=e=>P(e,"",Me),G=()=>!0,P=(e,r,t)=>{let o=D.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Pe=e=>he.test(e)&&!ye.test(e),ee=()=>!1,Me=e=>xe.test(e),Ie=e=>we.test(e);var Te=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),i=c("borderColor"),n=c("borderRadius"),a=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),g=c("grayscale"),m=c("hueRotate"),y=c("invert"),x=c("gap"),v=c("gradientColorStops"),w=c("gradientColorStopPositions"),b=c("inset"),p=c("margin"),f=c("opacity"),h=c("padding"),M=c("saturate"),S=c("scale"),N=c("sepia"),F=c("skew"),B=c("space"),U=c("translate"),L=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",l,r],d=()=>[l,r],q=()=>["",C,z],E=()=>["auto",R,l],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",l],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[R,l];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[C,z],blur:["none","",A,l],brightness:k(),borderColor:[e],borderRadius:["none","","full",A,l],borderSpacing:d(),borderWidth:q(),contrast:k(),grayscale:I(),hueRotate:k(),invert:I(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[ve,z],inset:O(),margin:O(),opacity:k(),padding:d(),saturate:k(),scale:k(),sepia:I(),skew:k(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),l]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,l]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",T,l]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",T,l]},l]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[T,l]},l]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",A,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",V]}],"font-family":[{font:[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",R,V]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",C,z]}],"underline-offset":[{"underline-offset":["auto",C,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),ze]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ce]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Se]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:_()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[C,l]}],"outline-w":[{outline:[C,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[C,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,Re]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",A,l]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[y]}],saturate:[{saturate:[M]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[T,l]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[C,z,V]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ge=be(Te);export{Ge as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as i}from"./chunk-TVZOULLL.mjs";import{b as m}from"./chunk-ZUA4KNIR.mjs";import{useState as v,useEffect as u}from"react";import{FileText as p,ListChecks as f,AlertTriangle as N,Users as k,Briefcase as h,ShieldAlert as z,Calendar as w,User as j,Building as L,X as D}from"lucide-react";import{Fragment as S,jsx as e,jsxs as a}from"react/jsx-runtime";var g={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function E({submissions:l,isLoading:y=!1}){let[n,s]=v(null);u(()=>{let t=d=>{d.key==="Escape"&&s(null)};if(n)return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[n]);let c=t=>new Date(t).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),r=l.find(t=>t.id.toString()===n);function o(t){return typeof t=="object"&&t!==null&&"projectName"in t?t.projectName:`Project #${t}`}function x(t){return typeof t=="object"&&t!==null&&"name"in t?t.name:`Customer #${t}`}return y?e("div",{className:"container mx-auto p-4 max-w-6xl",children:e("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:a("div",{className:"animate-pulse",children:[e("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),e("div",{className:"space-y-4",children:[...Array(5)].map((t,d)=>e("div",{className:"h-16 bg-gray-200 rounded"},d))})]})})}):l.length===0?e("div",{className:"container mx-auto p-4 max-w-6xl",children:e("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:a("div",{className:"text-center py-12",children:[e(p,{className:"mx-auto h-12 w-12 text-gray-400"}),e("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),e("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):a(S,{children:[e("div",{className:"container mx-auto p-4 max-w-6xl",children:a("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[a("div",{className:"mb-6",children:[e("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),e("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),e("div",{className:"overflow-y-auto max-h-96",children:a("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[e("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:a("tr",{children:[e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),e("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:l.map(t=>a("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{children:[e("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:o(t.project)}),a("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[e(L,{className:"h-3 w-3"}),x(t.customer)]})]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[e(j,{className:"h-3 w-3"}),typeof t.project=="object"&&t.project!==null&&"deliveryLead"in t.project&&typeof t.project.deliveryLead=="object"&&t.project.deliveryLead!==null&&"name"in t.project.deliveryLead?t.project.deliveryLead.name:"\u2014"]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"flex flex-wrap gap-1",children:[t.milestones?.slice(0,3).map((d,b)=>e("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${g[d.rag]}`,children:d.rag},b)),t.milestones&&t.milestones.length>3&&a("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",t.milestones.length-3," more"]}),!t.milestones&&e("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[e(w,{className:"h-3 w-3"}),c(t.createdAt)]})}),e("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:e(m,{variant:"ghost",size:"sm",onClick:()=>s(t.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},t.id))})]})})]})}),r&&e("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:a("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[a("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[a("div",{children:[e("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:o(r.project)}),a("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[x(r.customer)," \u2022"," ",c(r.createdAt)]})]}),e("button",{onClick:()=>s(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:e(D,{className:"h-6 w-6"})})]}),a("div",{className:"p-6 space-y-6",children:[a("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(p,{className:"h-4 w-4"}),"Project Summary"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectSummary})]}),a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(k,{className:"h-4 w-4"}),"Project Update"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectUpdate})]}),r.projectConcerns&&a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(N,{className:"h-4 w-4"}),"Project Concerns"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectConcerns})]}),r.commercialOpportunities&&a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(h,{className:"h-4 w-4"}),"Commercial Opportunities"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.commercialOpportunities})]}),r.commercialRisks&&a("div",{className:"lg:col-span-2",children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(z,{className:"h-4 w-4"}),"Commercial Risks"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.commercialRisks})]})]}),a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(f,{className:"h-4 w-4"}),"Milestones"]}),r.milestones&&r.milestones.length>0?e("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:a("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[e("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:a("tr",{children:[e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),e("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:r.milestones.map((t,d)=>a("tr",{children:[e("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:t.name}),e("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:t.commentary||"-"}),e("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:t.dueDate?c(t.dueDate):"-"}),e("td",{className:"px-4 py-2",children:e("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${g[t.rag]}`,children:t.rag})})]},d))})]})}):e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),e("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:e(m,{onClick:()=>s(null),variant:"outline",children:"Close"})})]})})]})}export{E as a};
4
+ import{a as i}from"./chunk-RAAY7PEH.mjs";import{b as m}from"./chunk-7Z3TOFNL.mjs";import{useState as v,useEffect as u}from"react";import{FileText as p,ListChecks as f,AlertTriangle as N,Users as k,Briefcase as h,ShieldAlert as z,Calendar as w,User as j,Building as L,X as D}from"lucide-react";import{Fragment as S,jsx as e,jsxs as a}from"react/jsx-runtime";var g={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function E({submissions:l,isLoading:y=!1}){let[n,s]=v(null);u(()=>{let t=d=>{d.key==="Escape"&&s(null)};if(n)return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[n]);let c=t=>new Date(t).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),r=l.find(t=>t.id.toString()===n);function o(t){return typeof t=="object"&&t!==null&&"projectName"in t?t.projectName:`Project #${t}`}function x(t){return typeof t=="object"&&t!==null&&"name"in t?t.name:`Customer #${t}`}return y?e("div",{className:"container mx-auto p-4 max-w-6xl",children:e("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:a("div",{className:"animate-pulse",children:[e("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),e("div",{className:"space-y-4",children:[...Array(5)].map((t,d)=>e("div",{className:"h-16 bg-gray-200 rounded"},d))})]})})}):l.length===0?e("div",{className:"container mx-auto p-4 max-w-6xl",children:e("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:a("div",{className:"text-center py-12",children:[e(p,{className:"mx-auto h-12 w-12 text-gray-400"}),e("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),e("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):a(S,{children:[e("div",{className:"container mx-auto p-4 max-w-6xl",children:a("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[a("div",{className:"mb-6",children:[e("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),e("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),e("div",{className:"overflow-y-auto max-h-96",children:a("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[e("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:a("tr",{children:[e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),e("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:l.map(t=>a("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{children:[e("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:o(t.project)}),a("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[e(L,{className:"h-3 w-3"}),x(t.customer)]})]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[e(j,{className:"h-3 w-3"}),typeof t.project=="object"&&t.project!==null&&"deliveryLead"in t.project&&typeof t.project.deliveryLead=="object"&&t.project.deliveryLead!==null&&"name"in t.project.deliveryLead?t.project.deliveryLead.name:"\u2014"]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"flex flex-wrap gap-1",children:[t.milestones?.slice(0,3).map((d,b)=>e("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${g[d.rag]}`,children:d.rag},b)),t.milestones&&t.milestones.length>3&&a("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",t.milestones.length-3," more"]}),!t.milestones&&e("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[e(w,{className:"h-3 w-3"}),c(t.createdAt)]})}),e("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:e(m,{variant:"ghost",size:"sm",onClick:()=>s(t.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},t.id))})]})})]})}),r&&e("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:a("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[a("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[a("div",{children:[e("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:o(r.project)}),a("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[x(r.customer)," \u2022"," ",c(r.createdAt)]})]}),e("button",{onClick:()=>s(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:e(D,{className:"h-6 w-6"})})]}),a("div",{className:"p-6 space-y-6",children:[a("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(p,{className:"h-4 w-4"}),"Project Summary"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectSummary})]}),a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(k,{className:"h-4 w-4"}),"Project Update"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectUpdate})]}),r.projectConcerns&&a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(N,{className:"h-4 w-4"}),"Project Concerns"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectConcerns})]}),r.commercialOpportunities&&a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(h,{className:"h-4 w-4"}),"Commercial Opportunities"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.commercialOpportunities})]}),r.commercialRisks&&a("div",{className:"lg:col-span-2",children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(z,{className:"h-4 w-4"}),"Commercial Risks"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.commercialRisks})]})]}),a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(f,{className:"h-4 w-4"}),"Milestones"]}),r.milestones&&r.milestones.length>0?e("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:a("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[e("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:a("tr",{children:[e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),e("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:r.milestones.map((t,d)=>a("tr",{children:[e("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:t.name}),e("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:t.commentary||"-"}),e("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:t.dueDate?c(t.dueDate):"-"}),e("td",{className:"px-4 py-2",children:e("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${g[t.rag]}`,children:t.rag})})]},d))})]})}):e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),e("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:e(m,{onClick:()=>s(null),variant:"outline",children:"Close"})})]})})]})}export{E as a};
@@ -1 +1 @@
1
- import{a as g}from"./chunk-PC6TVU7J.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{a as v,b as p,c as f}from"./chunk-SOLZ4VQH.mjs";import{ChevronLeft as $,ChevronRight as A}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y(...e){return e.filter(Boolean).join(" ")}function B({currentDate:e,setCurrentDate:i,holidays:u,employees:n}){let b=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),x=()=>{i(new Date(e.getFullYear(),e.getMonth()-1,1))},N=()=>{i(new Date(e.getFullYear(),e.getMonth()+1,1))},w=()=>{i(new Date)},k=r=>r.toLocaleString("default",{weekday:"short"}).charAt(0);return a("div",{className:"px-4 sm:px-6 lg:px-8",children:[a("div",{className:"sm:flex sm:items-center",children:[a("div",{className:"sm:flex-auto",children:[t("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),t("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),a("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[a(d,{onClick:x,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Previous month"}),t($,{className:"h-5 w-5","aria-hidden":"true"})]}),t(d,{variant:"outline",onClick:w,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),a(d,{onClick:N,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Next month"}),t(A,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),t("div",{className:"mt-8 flow-root",children:t("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:t("div",{className:"max-h-[60vh] overflow-y-auto",children:a("table",{className:"min-w-full border-separate border-spacing-0",children:[t("thead",{className:"sticky top-0 z-20 bg-white",children:a("tr",{children:[t("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(b)].map((r,s)=>{let l=new Date(e.getFullYear(),e.getMonth(),s+1);return a("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${g(l)?"bg-gray-200":""}`,children:[t("div",{children:k(l)}),t("div",{children:s+1})]},s)})]})}),t("tbody",{children:n.map((r,s)=>a("tr",{children:[t("td",{className:y(s!==n.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:a("div",{className:"flex items-center",children:[a(v,{className:"h-11 w-11",children:[t(p,{src:r.image,alt:r.name}),t(f,{children:r.name.split(" ").map(l=>l[0]).join("")})]}),t("div",{className:"ml-4",children:t("div",{className:"font-medium text-accent",children:r.name})})]})}),[...Array(b)].map((l,h)=>{let m=new Date(e.getFullYear(),e.getMonth(),h+1),o=u.find(c=>c.userId===r.id&&new Date(c.startDate)<=m&&new Date(c.endDate)>=m);return t("td",{className:y(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",g(m)?"bg-gray-200":"bg-white"),children:t("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${o?o.status==="approved"?"bg-green-500":o.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:o?`${r.name}: ${o.status} (${o.startDate} - ${o.endDate}) - ${o.leaveType}`:"",children:o&&o.leaveType!=="Full Day"&&t("div",{className:`h-3 w-6 ${o.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${r.id}-${h}`)})]},r.id))})]})})})})]})}export{B as a};
1
+ import{a as g}from"./chunk-PC6TVU7J.mjs";import{b as d}from"./chunk-7Z3TOFNL.mjs";import{a as v,b as p,c as f}from"./chunk-RFNYVF6F.mjs";import{ChevronLeft as $,ChevronRight as A}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y(...e){return e.filter(Boolean).join(" ")}function B({currentDate:e,setCurrentDate:i,holidays:u,employees:n}){let b=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),x=()=>{i(new Date(e.getFullYear(),e.getMonth()-1,1))},N=()=>{i(new Date(e.getFullYear(),e.getMonth()+1,1))},w=()=>{i(new Date)},k=r=>r.toLocaleString("default",{weekday:"short"}).charAt(0);return a("div",{className:"px-4 sm:px-6 lg:px-8",children:[a("div",{className:"sm:flex sm:items-center",children:[a("div",{className:"sm:flex-auto",children:[t("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),t("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),a("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[a(d,{onClick:x,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Previous month"}),t($,{className:"h-5 w-5","aria-hidden":"true"})]}),t(d,{variant:"outline",onClick:w,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),a(d,{onClick:N,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Next month"}),t(A,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),t("div",{className:"mt-8 flow-root",children:t("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:t("div",{className:"max-h-[60vh] overflow-y-auto",children:a("table",{className:"min-w-full border-separate border-spacing-0",children:[t("thead",{className:"sticky top-0 z-20 bg-white",children:a("tr",{children:[t("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(b)].map((r,s)=>{let l=new Date(e.getFullYear(),e.getMonth(),s+1);return a("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${g(l)?"bg-gray-200":""}`,children:[t("div",{children:k(l)}),t("div",{children:s+1})]},s)})]})}),t("tbody",{children:n.map((r,s)=>a("tr",{children:[t("td",{className:y(s!==n.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:a("div",{className:"flex items-center",children:[a(v,{className:"h-11 w-11",children:[t(p,{src:r.image,alt:r.name}),t(f,{children:r.name.split(" ").map(l=>l[0]).join("")})]}),t("div",{className:"ml-4",children:t("div",{className:"font-medium text-accent",children:r.name})})]})}),[...Array(b)].map((l,h)=>{let m=new Date(e.getFullYear(),e.getMonth(),h+1),o=u.find(c=>c.userId===r.id&&new Date(c.startDate)<=m&&new Date(c.endDate)>=m);return t("td",{className:y(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",g(m)?"bg-gray-200":"bg-white"),children:t("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${o?o.status==="approved"?"bg-green-500":o.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:o?`${r.name}: ${o.status} (${o.startDate} - ${o.endDate}) - ${o.leaveType}`:"",children:o&&o.leaveType!=="Full Day"&&t("div",{className:`h-3 w-6 ${o.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${r.id}-${h}`)})]},r.id))})]})})})})]})}export{B as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as K}from"./chunk-TVZOULLL.mjs";import{a as y}from"./chunk-FT3AE7L2.mjs";import{a as k}from"./chunk-L5JPAKPM.mjs";import{b as p}from"./chunk-ZUA4KNIR.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{a as u,e as v}from"./chunk-YO3GQYRJ.mjs";import{useState as h,useEffect as A}from"react";import{Search as D,X as F,FileText as L,Tag as I}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function H({selectedDocuments:l,onDocumentsChange:N,availableDocuments:x,label:S,placeholder:B="Search knowledge documents...",maxSelections:r,disabled:c=!1}){let[i,w]=h(""),[f,C]=h([]),[g,n]=h(!1);A(()=>{if(!i.trim()){C([]),n(!1);return}let e=x.filter(a=>{if(l.map(m=>m.id).includes(a.id))return!1;let o=i.toLowerCase();return a.title.toLowerCase().includes(o)||a.description?.toLowerCase().includes(o)||a.tags?.some(m=>m.toLowerCase().includes(o))||Object.values(a.metadata||{}).some(m=>String(m).toLowerCase().includes(o))});C(e),n(!0)},[i,l,x]);let z=e=>{r&&l.length>=r||(N([...l,e]),w(""),n(!1))},T=e=>{N(l.filter(a=>a.id!==e))},b=!r||l.length<r;return s("div",{className:"space-y-2",children:[t(K,{children:S}),s("div",{className:"relative",children:[s("div",{className:"relative",children:[t(D,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(k,{value:i,onChange:e=>w(e.target.value),placeholder:b?B:`Maximum ${r} documents selected`,className:"pl-9",disabled:c||!b,onFocus:()=>i&&n(!0)})]}),g&&f.length>0&&t(u,{className:"absolute top-full left-0 right-0 z-10 mt-1 max-h-60",children:t(y,{className:"h-full",children:t(v,{className:"p-2",children:f.map(e=>t(p,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>z(e),disabled:c,children:s("div",{className:"flex items-start gap-3 w-full",children:[t(L,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"text-left flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm truncate",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description}),e.tags&&e.tags.length>0&&s("div",{className:"flex flex-wrap gap-1 mt-2",children:[e.tags.slice(0,3).map(a=>t(d,{variant:"outline",className:"text-xs",children:a},a)),e.tags.length>3&&s(d,{variant:"outline",className:"text-xs",children:["+",e.tags.length-3," more"]})]})]})]})},e.id))})})}),g&&i&&f.length===0&&t(u,{className:"absolute top-full left-0 right-0 z-10 mt-1",children:s(v,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',i,'"']})})]}),l.length>0&&s("div",{className:"space-y-2",children:[s("div",{className:"text-sm text-muted-foreground",children:["Selected (",l.length,r&&`/${r}`,")"]}),t("div",{className:"space-y-2",children:l.map(e=>t(u,{className:"p-3",children:s("div",{className:"flex items-start gap-3",children:[t(L,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.tags&&e.tags.length>0&&t("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map(a=>s(d,{variant:"outline",className:"text-xs",children:[t(I,{className:"h-3 w-3 mr-1"}),a]},a))})]}),t(p,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>T(e.id),disabled:c,children:t(F,{className:"h-3 w-3"})})]})},e.id))})]}),g&&t("div",{className:"fixed inset-0 z-0",onClick:()=>n(!1)})]})}export{H as a};
4
+ import{a as K}from"./chunk-RAAY7PEH.mjs";import{a as y}from"./chunk-JVJG2LOA.mjs";import{a as k}from"./chunk-GJUA2KUH.mjs";import{b as p}from"./chunk-7Z3TOFNL.mjs";import{b as d}from"./chunk-2JKLBLDE.mjs";import{a as u,e as v}from"./chunk-7WKUKFCT.mjs";import{useState as h,useEffect as A}from"react";import{Search as D,X as F,FileText as L,Tag as I}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function H({selectedDocuments:l,onDocumentsChange:N,availableDocuments:x,label:S,placeholder:B="Search knowledge documents...",maxSelections:r,disabled:c=!1}){let[i,w]=h(""),[f,C]=h([]),[g,n]=h(!1);A(()=>{if(!i.trim()){C([]),n(!1);return}let e=x.filter(a=>{if(l.map(m=>m.id).includes(a.id))return!1;let o=i.toLowerCase();return a.title.toLowerCase().includes(o)||a.description?.toLowerCase().includes(o)||a.tags?.some(m=>m.toLowerCase().includes(o))||Object.values(a.metadata||{}).some(m=>String(m).toLowerCase().includes(o))});C(e),n(!0)},[i,l,x]);let z=e=>{r&&l.length>=r||(N([...l,e]),w(""),n(!1))},T=e=>{N(l.filter(a=>a.id!==e))},b=!r||l.length<r;return s("div",{className:"space-y-2",children:[t(K,{children:S}),s("div",{className:"relative",children:[s("div",{className:"relative",children:[t(D,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(k,{value:i,onChange:e=>w(e.target.value),placeholder:b?B:`Maximum ${r} documents selected`,className:"pl-9",disabled:c||!b,onFocus:()=>i&&n(!0)})]}),g&&f.length>0&&t(u,{className:"absolute top-full left-0 right-0 z-10 mt-1 max-h-60",children:t(y,{className:"h-full",children:t(v,{className:"p-2",children:f.map(e=>t(p,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>z(e),disabled:c,children:s("div",{className:"flex items-start gap-3 w-full",children:[t(L,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"text-left flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm truncate",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description}),e.tags&&e.tags.length>0&&s("div",{className:"flex flex-wrap gap-1 mt-2",children:[e.tags.slice(0,3).map(a=>t(d,{variant:"outline",className:"text-xs",children:a},a)),e.tags.length>3&&s(d,{variant:"outline",className:"text-xs",children:["+",e.tags.length-3," more"]})]})]})]})},e.id))})})}),g&&i&&f.length===0&&t(u,{className:"absolute top-full left-0 right-0 z-10 mt-1",children:s(v,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',i,'"']})})]}),l.length>0&&s("div",{className:"space-y-2",children:[s("div",{className:"text-sm text-muted-foreground",children:["Selected (",l.length,r&&`/${r}`,")"]}),t("div",{className:"space-y-2",children:l.map(e=>t(u,{className:"p-3",children:s("div",{className:"flex items-start gap-3",children:[t(L,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),s("div",{className:"flex-1 min-w-0",children:[t("div",{className:"font-medium text-sm",children:e.title}),e.description&&t("div",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.tags&&e.tags.length>0&&t("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map(a=>s(d,{variant:"outline",className:"text-xs",children:[t(I,{className:"h-3 w-3 mr-1"}),a]},a))})]}),t(p,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>T(e.id),disabled:c,children:t(F,{className:"h-3 w-3"})})]})},e.id))})]}),g&&t("div",{className:"fixed inset-0 z-0",onClick:()=>n(!1)})]})}export{H as a};
@@ -1 +1 @@
1
- import{b as p}from"./chunk-ZUA4KNIR.mjs";import{a as s}from"./chunk-MDJREBVI.mjs";import c from"next/link";import{jsx as P,jsxs as u}from"react/jsx-runtime";var v=m=>{let{type:f,appearance:t="inline",children:n,className:o,label:r,newTab:g,reference:e,size:y,url:a}=m,l=f==="reference"&&typeof e?.value=="object"&&e.value.slug?`${e?.relationTo!=="pages"?`/${e?.relationTo}`:""}/${e.value.slug}`:a;if(!l)return null;let b=t==="link"?"clear":y,i=g?{rel:"noopener noreferrer",target:"_blank"}:{};return t==="inline"?u(c,{className:s(o),href:l||a||"",...i,children:[r&&r,n&&n]}):P(p,{asChild:!0,className:o,size:b,variant:t,children:u(c,{className:s(o),href:l||a||"",...i,children:[r&&r,n&&n]})})};export{v as a};
1
+ import{b as p}from"./chunk-7Z3TOFNL.mjs";import{a as s}from"./chunk-TSEOL53Y.mjs";import c from"next/link";import{jsx as P,jsxs as u}from"react/jsx-runtime";var v=m=>{let{type:f,appearance:t="inline",children:n,className:o,label:r,newTab:g,reference:e,size:y,url:a}=m,l=f==="reference"&&typeof e?.value=="object"&&e.value.slug?`${e?.relationTo!=="pages"?`/${e?.relationTo}`:""}/${e.value.slug}`:a;if(!l)return null;let b=t==="link"?"clear":y,i=g?{rel:"noopener noreferrer",target:"_blank"}:{};return t==="inline"?u(c,{className:s(o),href:l||a||"",...i,children:[r&&r,n&&n]}):P(p,{asChild:!0,className:o,size:b,variant:t,children:u(c,{className:s(o),href:l||a||"",...i,children:[r&&r,n&&n]})})};export{v as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as t}from"./chunk-MDJREBVI.mjs";import*as c from"react";import*as r from"@radix-ui/react-scroll-area";import{jsx as l,jsxs as f}from"react/jsx-runtime";var S=c.forwardRef(({className:o,children:e,...i},a)=>f(r.Root,{ref:a,className:t("relative overflow-hidden",o),...i,children:[l(r.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),l(m,{}),l(r.Corner,{})]}));S.displayName=r.Root.displayName;var m=c.forwardRef(({className:o,orientation:e="vertical",...i},a)=>l(r.ScrollAreaScrollbar,{ref:a,orientation:e,className:t("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",o),...i,children:l(r.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));m.displayName=r.ScrollAreaScrollbar.displayName;export{S as a,m as b};
4
+ import{a as t}from"./chunk-TSEOL53Y.mjs";import*as c from"react";import*as r from"@radix-ui/react-scroll-area";import{jsx as l,jsxs as f}from"react/jsx-runtime";var S=c.forwardRef(({className:o,children:e,...i},a)=>f(r.Root,{ref:a,className:t("relative overflow-hidden",o),...i,children:[l(r.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),l(m,{}),l(r.Corner,{})]}));S.displayName=r.Root.displayName;var m=c.forwardRef(({className:o,orientation:e="vertical",...i},a)=>l(r.ScrollAreaScrollbar,{ref:a,orientation:e,className:t("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",o),...i,children:l(r.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));m.displayName=r.ScrollAreaScrollbar.displayName;export{S as a,m as b};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as d}from"./chunk-MDJREBVI.mjs";import{useState as x,useEffect as P}from"react";import y from"next/link";import{Printer as V,Presentation as $}from"lucide-react";import{usePathname as R}from"next/navigation";import{ExternalLink as M}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var H=({children:m,pageId:g,tableOfContents:v=[],edit:h=!0,path:r="/admin/collections/pages/",relatedContent:u=[{title:"Related Content",links:[]}]})=>{let[c,b]=x(!1),w=()=>{b(!c)};return P(()=>{if(typeof window>"u")return;let l=()=>{let i=window.location.hash;if(i){let f=i.substring(1),n=document.getElementById(f);if(n){let p=n.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:p,behavior:"smooth"})}}};return l(),window.addEventListener("hashchange",l),()=>{window.removeEventListener("hashchange",l)}},[]),a("div",{className:"",children:[e("div",{className:d(c?"col-span-3":"col-span-4","xl:col-span-3"),children:m}),e(I,{pageId:g,tableOfContents:v,edit:h,path:r,relatedContent:u,isSidebarVisible:c}),e("div",{className:"block md:hidden mt-8",children:e("div",{className:"space-y-6",children:m})})]})};var I=({pageId:m,tableOfContents:g=[],edit:v=!0,path:h="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:u})=>{let[c,b]=x(""),[w,l]=x(!1),[i,f]=x(!1),n=R(),C=()=>{l(!w),f(!1)},p=()=>{f(!i),l(!1)},N=t=>{switch(t){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},k=()=>{let t=n.split("/"),o="/print"+n,s=window.open(o,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");s&&s.focus()},L=()=>{let t=n.split("/"),o="/present"+n,s=window.open(o,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");s&&s.focus()};return e("div",{className:d("fixed right-2 z-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-x-full",u?"translate-x-0":"md:translate-x-0"),children:a("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[a("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[a(y,{href:`${h}${m}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),e("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),a("a",{onClick:C,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:e("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),e("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),a("a",{onClick:p,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),e("small",{className:"text-center text-xs font-medium",children:" Related "})]}),e("hr",{className:"dark:border-gray-400"}),a("a",{onClick:L,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),e("small",{className:"text-xs font-medium",children:"Present"})]}),a("a",{onClick:k,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]})]}),w&&e("div",{className:d("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:a("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[e("div",{className:"flex text-accent",children:"On this Page"}),e("ul",{className:"flex flex-col space-y-2",children:g.map((t,o)=>e("li",{className:N(t.tag),children:e("a",{href:`#${t.id}`,className:`text-xs ${c===t.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:t.text})},o))})]})}),i&&r&&r.length>0&&e("div",{className:d("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:a("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[e("div",{className:"flex text-accent",children:"Related Content"}),e("ul",{className:"flex flex-col space-y-2",children:r.map((t,o)=>t.links&&t.links.length>0?t.links.map((s,z)=>a(y,{href:s.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[s.name,s.href.startsWith("http")&&e(M,{className:"ml-1 h-3 w-3"})]},z)):null)})]})})]})})};export{H as a};
4
+ import{a as d}from"./chunk-TSEOL53Y.mjs";import{useState as x,useEffect as P}from"react";import y from"next/link";import{Printer as V,Presentation as $}from"lucide-react";import{usePathname as R}from"next/navigation";import{ExternalLink as M}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var H=({children:m,pageId:g,tableOfContents:v=[],edit:h=!0,path:r="/admin/collections/pages/",relatedContent:u=[{title:"Related Content",links:[]}]})=>{let[c,b]=x(!1),w=()=>{b(!c)};return P(()=>{if(typeof window>"u")return;let l=()=>{let i=window.location.hash;if(i){let f=i.substring(1),n=document.getElementById(f);if(n){let p=n.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:p,behavior:"smooth"})}}};return l(),window.addEventListener("hashchange",l),()=>{window.removeEventListener("hashchange",l)}},[]),a("div",{className:"",children:[e("div",{className:d(c?"col-span-3":"col-span-4","xl:col-span-3"),children:m}),e(I,{pageId:g,tableOfContents:v,edit:h,path:r,relatedContent:u,isSidebarVisible:c}),e("div",{className:"block md:hidden mt-8",children:e("div",{className:"space-y-6",children:m})})]})};var I=({pageId:m,tableOfContents:g=[],edit:v=!0,path:h="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:u})=>{let[c,b]=x(""),[w,l]=x(!1),[i,f]=x(!1),n=R(),C=()=>{l(!w),f(!1)},p=()=>{f(!i),l(!1)},N=t=>{switch(t){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},k=()=>{let t=n.split("/"),o="/print"+n,s=window.open(o,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");s&&s.focus()},L=()=>{let t=n.split("/"),o="/present"+n,s=window.open(o,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");s&&s.focus()};return e("div",{className:d("fixed right-2 z-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-x-full",u?"translate-x-0":"md:translate-x-0"),children:a("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[a("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[a(y,{href:`${h}${m}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),e("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),a("a",{onClick:C,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:e("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),e("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),a("a",{onClick:p,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),e("small",{className:"text-center text-xs font-medium",children:" Related "})]}),e("hr",{className:"dark:border-gray-400"}),a("a",{onClick:L,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),e("small",{className:"text-xs font-medium",children:"Present"})]}),a("a",{onClick:k,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]})]}),w&&e("div",{className:d("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:a("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[e("div",{className:"flex text-accent",children:"On this Page"}),e("ul",{className:"flex flex-col space-y-2",children:g.map((t,o)=>e("li",{className:N(t.tag),children:e("a",{href:`#${t.id}`,className:`text-xs ${c===t.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:t.text})},o))})]})}),i&&r&&r.length>0&&e("div",{className:d("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:a("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[e("div",{className:"flex text-accent",children:"Related Content"}),e("ul",{className:"flex flex-col space-y-2",children:r.map((t,o)=>t.links&&t.links.length>0?t.links.map((s,z)=>a(y,{href:s.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[s.name,s.href.startsWith("http")&&e(M,{className:"ml-1 h-3 w-3"})]},z)):null)})]})})]})})};export{H as a};