@masterteam/components 0.0.264 → 0.0.265

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 (756) hide show
  1. package/.angular/cache/21.2.7/@masterteam/components/.tsbuildinfo +1 -0
  2. package/.angular/cache/21.2.7/@masterteam/components/angular-compiler.db +0 -0
  3. package/.angular/cache/21.2.7/@masterteam/components/angular-compiler.db-lock +0 -0
  4. package/.angular/cache/21.2.7/ng-packagr/045efd332b9db1d21b3a595a37ae03ebb11b457a5dc6e2d1cbc561b694e17f1a +1 -0
  5. package/.angular/cache/21.2.7/ng-packagr/0727b170af3d53236c0cafe16ea670d089e48d4c5c525b1dbcc1c684bb6e99c7 +1 -0
  6. package/.angular/cache/21.2.7/ng-packagr/0873bc9048494ebc33fe0a7b856324c7c4ca681b0dcaa87338e3290186906d49 +1 -0
  7. package/.angular/cache/21.2.7/ng-packagr/1010cd8fc996d0c2df519ed60085f4b1f38ccfc873900055bc75fc20a3c26bab +1 -0
  8. package/.angular/cache/21.2.7/ng-packagr/12379a8ab7254ad3df2635823a358cfce32e6d0f390be68596cc97e02307e6c4 +1 -0
  9. package/.angular/cache/21.2.7/ng-packagr/1239e7a937657b62f858d17d47738ed30facbdaa91032511e29ed148b748400b +1 -0
  10. package/.angular/cache/21.2.7/ng-packagr/133b9ecf47ba424244902da90d77cd3f135b85f95c01b16de7b2247f57518f01 +1 -0
  11. package/.angular/cache/21.2.7/ng-packagr/175d45dc6da51834e7fe937c09d23dbf28d2a823f838ef5271fd3e148776d6ec +1 -0
  12. package/.angular/cache/21.2.7/ng-packagr/19d99ad4d927324b03cdbef34331ba2c58bd580f1f0ca591cb5f8dbf436c913c +1 -0
  13. package/.angular/cache/21.2.7/ng-packagr/1a86918763f95c1c2b9fa781bda1ceedf15aead87f0e11ea1324318af43a897a +1 -0
  14. package/.angular/cache/21.2.7/ng-packagr/1f08100dbc280be7da64c809315376eb7d0cfd074916a6042f609f03f4276a8e +1 -0
  15. package/.angular/cache/21.2.7/ng-packagr/2224877a7e762b86541428e4c40d61f54f505867c305769ae42e67e4aa81bd93 +1 -0
  16. package/.angular/cache/21.2.7/ng-packagr/24957fb7ec060692ebcf1471e1bdce39f40aed938959e580048ade58015762d2 +1 -0
  17. package/.angular/cache/21.2.7/ng-packagr/295fcdc1c4462e7feae96a24255369508a559faaecc4676267749a7ce23e4b6d +1 -0
  18. package/.angular/cache/21.2.7/ng-packagr/2b37e2f2d6564d10bad1fd0ecc16453962fd855cd1e36ad7aa24baf3e4f2e8b3 +1 -0
  19. package/.angular/cache/21.2.7/ng-packagr/2c20f0929771e857b570ba2beffe91f598f299ce26d4825fe4315bfe5a3dd40a +1 -0
  20. package/.angular/cache/21.2.7/ng-packagr/37dea2e5798cad4a21d66292eeed5be26d04500d9a1534332ad42ce664a058c2 +1 -0
  21. package/.angular/cache/21.2.7/ng-packagr/3b6239b640fcb5ea7067a2655a2901d32f55372812b586aa008e77c59e8f2090 +1 -0
  22. package/.angular/cache/21.2.7/ng-packagr/3beb1b4dfe75d1e6749cf91f05d51ba4eece939f5c15f6f33ed587bfd198f0a3 +1 -0
  23. package/.angular/cache/21.2.7/ng-packagr/3f161e6c2ead4519d0663dd79199dafceb2cc22da7ce92a72b809b93bfce0bb0 +1 -0
  24. package/.angular/cache/21.2.7/ng-packagr/43551862d17cd02626e18b30243390081a6247784485660048b060a3d4ab7fa7 +1 -0
  25. package/.angular/cache/21.2.7/ng-packagr/47aedf032519b41d96866fcf8fbd4f1dfd29f9e9a534b39dee0e44d402227d2d +1 -0
  26. package/.angular/cache/21.2.7/ng-packagr/4a1768888c60921955bfdfba8b31c8d853bd7b2a7d3a7b83934de049e1e6e6a2 +1 -0
  27. package/.angular/cache/21.2.7/ng-packagr/4a783e339117597607bff17eeca0ad24d84b8cbc1e28927e7e453ccfa6223180 +1 -0
  28. package/.angular/cache/21.2.7/ng-packagr/4d9331b2050326f586cd8f6593a9e04e1c7944b2f9e98023649023c099597a5d +1 -0
  29. package/.angular/cache/21.2.7/ng-packagr/4e379f506919d47af7008658c75242aa05f0056c1caec4061d7fa5746f776049 +1 -0
  30. package/.angular/cache/21.2.7/ng-packagr/55009bb7d44552dd816ce32fa2b0f7985f3f08fefd6409c2b4f6b9ffe35dad83 +1 -0
  31. package/.angular/cache/21.2.7/ng-packagr/58ae3f1f9664f7b16844d2e4a279dd4ca9371de014cf5687320c2d5cb259a74f +1 -0
  32. package/.angular/cache/21.2.7/ng-packagr/5c08e906bd3fe1aa6c1d62f2bbb2b3f276e1c17fe45ef081e76bd1b865ac3dfa +1 -0
  33. package/.angular/cache/21.2.7/ng-packagr/5ce333a40ad635188347fa9bc601d5fd14be6baacbae7d096259d725ac9757af +1 -0
  34. package/.angular/cache/21.2.7/ng-packagr/5f32cceaee6a6ea19cc6cbff5ea089b752f13a0fdcd32597d4c99d5e1e031bb5 +1 -0
  35. package/.angular/cache/21.2.7/ng-packagr/691ad4ccdc0a8ede36e1f4e5e97638c20c2d3142916ffac3a1b172178c139205 +1 -0
  36. package/.angular/cache/21.2.7/ng-packagr/6b57160e0d2da3f31693831e84a3f4209c1f33a04abd636e34af03956e7329d8 +1 -0
  37. package/.angular/cache/21.2.7/ng-packagr/70bc711a1d7b631845885c26adc2d6b1bff47d11332b2625cedfa11e9d5ac79a +1 -0
  38. package/.angular/cache/21.2.7/ng-packagr/7427c266237012afaef486c2af94ee08a491e8d7b6fc7e5ee887980830bbd333 +1 -0
  39. package/.angular/cache/21.2.7/ng-packagr/7e8fa7c61cf9a932ba3a0e65eb73c7412e81666b7a8f923dac7b75acfbb94b1d +1 -0
  40. package/.angular/cache/21.2.7/ng-packagr/81aab7fdab43cbdfa869db759d6113ae01ec6f5e0e9061d7fc089c260886e4d1 +1 -0
  41. package/.angular/cache/21.2.7/ng-packagr/83a81758045ff710a34ea3cf6f54435a1f5dea9839d8c0adda0bbce7c3fb6e8b +1 -0
  42. package/.angular/cache/21.2.7/ng-packagr/883eae810a4c09f06617bdc2e4bc30a69f09726401b2a051840969f635d076f1 +1 -0
  43. package/.angular/cache/21.2.7/ng-packagr/8a6b9be66de40c57054dca5fde376c3cec1bec1ae191a16f1ae6a83306d9ebfe +1 -0
  44. package/.angular/cache/21.2.7/ng-packagr/8d42c8144f6929de46984094bf390a0c4168404ab13a5194839f6ba5e42bc3ce +1 -0
  45. package/.angular/cache/21.2.7/ng-packagr/91093656c61a5404f0d576f872247eeb480dd938e6999d481a97893c72b5f3d0 +1 -0
  46. package/.angular/cache/21.2.7/ng-packagr/91e881172037c63d819e30d30e390e0d7dc0dee9808b3902275ccc8b1887d864 +1 -0
  47. package/.angular/cache/21.2.7/ng-packagr/9ef28cf3a676e7bd0d37762c4868b4810efca2f241ed0dae75ebca41988e2c00 +1 -0
  48. package/.angular/cache/21.2.7/ng-packagr/a07cbea405c1831b3f686a8e57c4b500d89cbab2b95e110487890269945feeaa +1 -0
  49. package/.angular/cache/21.2.7/ng-packagr/a463deba940880d9461612c9cd00d90062bf97aa31b1c4556b8b47a967cb6882 +1 -0
  50. package/.angular/cache/21.2.7/ng-packagr/ab03ed1e4a371113b41b663d526d2b06565ceb062e6f033f726f1e455fc5d1d6 +1 -0
  51. package/.angular/cache/21.2.7/ng-packagr/ad0e84be4f2211aff6187b4bec9adbe15f0e8b36851e9c6c63b38303c2daad37 +1 -0
  52. package/.angular/cache/21.2.7/ng-packagr/aece79242dae70eb748605e37483e75e122e4ce414fa8be875499e8af26ee5d6 +1 -0
  53. package/.angular/cache/21.2.7/ng-packagr/aff32db91ce03de30d2bbc84f266fe3fb2c6629d5eeb39a364204d9499484368 +1 -0
  54. package/.angular/cache/21.2.7/ng-packagr/b0671e73a162927d28ef1742ec008e514264bc2ce29f2255bedaea553492fe5d +1 -0
  55. package/.angular/cache/21.2.7/ng-packagr/bb50d71f3cdeebbb85fd983be8103f9c216060464f8e7e534271197391e6dcf7 +1 -0
  56. package/.angular/cache/21.2.7/ng-packagr/c64241290ab30d8761b2f5493a039427f5cda1a48b5be88ce62ee5c714c0f690 +1 -0
  57. package/.angular/cache/21.2.7/ng-packagr/c794d2e79b26ab378c0dbf8afa7b8ac1337ba9afb288941d44a086cb1bd4bad2 +1 -0
  58. package/.angular/cache/21.2.7/ng-packagr/d942edf8fd8e8e884138ffcdb1a07ad14a0b5e211f8ccea1dc9ea0b48f50cfc9 +1 -0
  59. package/.angular/cache/21.2.7/ng-packagr/dbe0b9b9f18ba7b96d9c84f4fd16cde158c9701c202d00113e6f88ba93407bce +1 -0
  60. package/.angular/cache/21.2.7/ng-packagr/f564395a410a2723aac48e582f5fe416bfeaa48677cea47b10c5152d4f2b6672 +1 -0
  61. package/.angular/cache/21.2.7/ng-packagr/fc9b0d27f081ca7b2a4cbefa75136d7bd7a8c341dbaa0587855071a6003906b8 +1 -0
  62. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar-text.tsbuildinfo +1 -0
  63. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar.tsbuildinfo +1 -0
  64. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-breadcrumb.tsbuildinfo +1 -0
  65. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-business-fields.tsbuildinfo +1 -0
  66. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button-group.tsbuildinfo +1 -0
  67. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button.tsbuildinfo +1 -0
  68. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-card.tsbuildinfo +1 -0
  69. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-checkbox-field.tsbuildinfo +1 -0
  70. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-chip.tsbuildinfo +1 -0
  71. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page-menu.tsbuildinfo +1 -0
  72. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page.tsbuildinfo +1 -0
  73. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-color-picker-field.tsbuildinfo +1 -0
  74. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-confirmation.tsbuildinfo +1 -0
  75. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-date-field.tsbuildinfo +1 -0
  76. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dialog.tsbuildinfo +1 -0
  77. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-drawer.tsbuildinfo +1 -0
  78. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dynamic-drawer.tsbuildinfo +1 -0
  79. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-editor-field.tsbuildinfo +1 -0
  80. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-empty-state.tsbuildinfo +1 -0
  81. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-entities.tsbuildinfo +1 -0
  82. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-field-validation.tsbuildinfo +1 -0
  83. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-formula.tsbuildinfo +1 -0
  84. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-icon-field.tsbuildinfo +1 -0
  85. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-list.tsbuildinfo +1 -0
  86. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-location-field.tsbuildinfo +1 -0
  87. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-menu.tsbuildinfo +1 -0
  88. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-modal.tsbuildinfo +1 -0
  89. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-module-summary-card.tsbuildinfo +1 -0
  90. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-multi-select-field.tsbuildinfo +1 -0
  91. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-number-field.tsbuildinfo +1 -0
  92. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page-header.tsbuildinfo +1 -0
  93. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page.tsbuildinfo +1 -0
  94. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-paginator.tsbuildinfo +1 -0
  95. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-pick-list-field.tsbuildinfo +1 -0
  96. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-progress.tsbuildinfo +1 -0
  97. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-property-filter-builder.tsbuildinfo +1 -0
  98. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-button-field.tsbuildinfo +1 -0
  99. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards-field.tsbuildinfo +1 -0
  100. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards.tsbuildinfo +1 -0
  101. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-runtime-action.tsbuildinfo +1 -0
  102. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-select-field.tsbuildinfo +1 -0
  103. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-sidebar.tsbuildinfo +1 -0
  104. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-slider-field.tsbuildinfo +1 -0
  105. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-statistic-card.tsbuildinfo +1 -0
  106. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-table.tsbuildinfo +1 -0
  107. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tabs.tsbuildinfo +1 -0
  108. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-text-field.tsbuildinfo +1 -0
  109. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-textarea-field.tsbuildinfo +1 -0
  110. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toast.tsbuildinfo +1 -0
  111. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toggle-field.tsbuildinfo +1 -0
  112. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tooltip.tsbuildinfo +1 -0
  113. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-topbar.tsbuildinfo +1 -0
  114. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tree.tsbuildinfo +1 -0
  115. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-treeselect-field.tsbuildinfo +1 -0
  116. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-upload-field.tsbuildinfo +1 -0
  117. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-uploader.tsbuildinfo +1 -0
  118. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-user-search-field.tsbuildinfo +1 -0
  119. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components.tsbuildinfo +1 -0
  120. package/angular.json +32 -0
  121. package/api/api.ts +1 -0
  122. package/api/public-api.ts +5 -0
  123. package/assets/common.css +309 -2
  124. package/avatar/avatar.html +32 -0
  125. package/avatar/avatar.scss +0 -0
  126. package/avatar/avatar.ts +54 -0
  127. package/avatar/ng-package.json +6 -0
  128. package/avatar/public-api.ts +1 -0
  129. package/avatar-text/avatar-text.html +26 -0
  130. package/avatar-text/avatar-text.scss +0 -0
  131. package/avatar-text/avatar-text.ts +52 -0
  132. package/avatar-text/ng-package.json +6 -0
  133. package/avatar-text/public-api.ts +1 -0
  134. package/breadcrumb/breadcrumb.html +53 -0
  135. package/breadcrumb/breadcrumb.scss +0 -0
  136. package/breadcrumb/breadcrumb.ts +26 -0
  137. package/breadcrumb/ng-package.json +6 -0
  138. package/breadcrumb/public-api.ts +1 -0
  139. package/business-fields/entity-list-field/entity-list-add-token.ts +25 -0
  140. package/business-fields/entity-list-field/entity-list-field.html +70 -0
  141. package/business-fields/entity-list-field/entity-list-field.scss +3 -0
  142. package/business-fields/entity-list-field/entity-list-field.ts +1067 -0
  143. package/business-fields/lookup-matrix-field/lookup-matrix-field.html +38 -0
  144. package/business-fields/lookup-matrix-field/lookup-matrix-field.spec.ts +183 -0
  145. package/business-fields/lookup-matrix-field/lookup-matrix-field.ts +239 -0
  146. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.html +95 -0
  147. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.ts +336 -0
  148. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-form-token.ts +42 -0
  149. package/business-fields/ng-package.json +6 -0
  150. package/business-fields/public-api.ts +8 -0
  151. package/business-fields/schedule-item-selector-field/schedule-item-selector-field.html +32 -0
  152. package/business-fields/schedule-item-selector-field/schedule-item-selector-field.ts +272 -0
  153. package/business-fields/schedule-predecessor-field/schedule-predecessor-field.html +89 -0
  154. package/business-fields/schedule-predecessor-field/schedule-predecessor-field.ts +441 -0
  155. package/business-fields/schema-connection-field/schema-connection-field.html +58 -0
  156. package/business-fields/schema-connection-field/schema-connection-field.scss +0 -0
  157. package/business-fields/schema-connection-field/schema-connection-field.ts +456 -0
  158. package/button/button.html +44 -0
  159. package/button/button.scss +0 -0
  160. package/button/button.ts +120 -0
  161. package/button/ng-package.json +6 -0
  162. package/button/public-api.ts +1 -0
  163. package/button-group/button-group.html +3 -0
  164. package/button-group/button-group.scss +20 -0
  165. package/button-group/button-group.ts +12 -0
  166. package/button-group/ng-package.json +6 -0
  167. package/button-group/public-api.ts +1 -0
  168. package/card/card.html +26 -0
  169. package/card/card.scss +0 -0
  170. package/card/card.ts +29 -0
  171. package/card/ng-package.json +6 -0
  172. package/card/public-api.ts +1 -0
  173. package/checkbox-field/checkbox-field.html +31 -0
  174. package/checkbox-field/checkbox-field.scss +0 -0
  175. package/checkbox-field/checkbox-field.spec.ts +21 -0
  176. package/checkbox-field/checkbox-field.ts +123 -0
  177. package/checkbox-field/ng-package.json +6 -0
  178. package/checkbox-field/public-api.ts +1 -0
  179. package/chip/chip.html +16 -0
  180. package/chip/chip.scss +19 -0
  181. package/chip/chip.ts +45 -0
  182. package/chip/ng-package.json +6 -0
  183. package/chip/public-api.ts +1 -0
  184. package/client-page/client-page.html +232 -0
  185. package/client-page/client-page.ts +588 -0
  186. package/client-page/index.ts +2 -0
  187. package/client-page/ng-package.json +6 -0
  188. package/client-page/public-api.ts +1 -0
  189. package/client-page-menu/client-page-menu.html +142 -0
  190. package/client-page-menu/client-page-menu.ts +199 -0
  191. package/client-page-menu/index.ts +2 -0
  192. package/client-page-menu/ng-package.json +6 -0
  193. package/client-page-menu/public-api.ts +1 -0
  194. package/color-picker-field/color-picker-field.html +45 -0
  195. package/color-picker-field/color-picker-field.scss +52 -0
  196. package/color-picker-field/color-picker-field.ts +131 -0
  197. package/color-picker-field/ng-package.json +6 -0
  198. package/color-picker-field/public-api.ts +1 -0
  199. package/confirmation/confirmation-dialog.html +83 -0
  200. package/confirmation/confirmation-dialog.scss +0 -0
  201. package/confirmation/confirmation-dialog.ts +15 -0
  202. package/confirmation/confirmation.spec.ts +43 -0
  203. package/confirmation/confirmation.ts +103 -0
  204. package/confirmation/ng-package.json +6 -0
  205. package/confirmation/public-api.ts +2 -0
  206. package/date-field/date-field.html +65 -0
  207. package/date-field/date-field.scss +0 -0
  208. package/date-field/date-field.spec.ts +118 -0
  209. package/date-field/date-field.ts +196 -0
  210. package/date-field/ng-package.json +6 -0
  211. package/date-field/public-api.ts +1 -0
  212. package/dialog/dialog.ts +29 -0
  213. package/dialog/ng-package.json +6 -0
  214. package/dialog/public-api.ts +1 -0
  215. package/drawer/drawer.html +67 -0
  216. package/drawer/drawer.scss +1 -0
  217. package/drawer/drawer.ts +348 -0
  218. package/drawer/ng-package.json +5 -0
  219. package/drawer/public-api.ts +1 -0
  220. package/dynamic-drawer/dynamic-drawer-host.ts +476 -0
  221. package/dynamic-drawer/dynamic-drawer.spec.ts +204 -0
  222. package/dynamic-drawer/dynamic-drawer.ts +235 -0
  223. package/dynamic-drawer/ng-package.json +6 -0
  224. package/dynamic-drawer/public-api.ts +2 -0
  225. package/editor-field/editor-field.html +38 -0
  226. package/editor-field/editor-field.scss +219 -0
  227. package/editor-field/editor-field.ts +126 -0
  228. package/editor-field/ng-package.json +6 -0
  229. package/editor-field/public-api.ts +1 -0
  230. package/empty-state/empty-state.html +236 -0
  231. package/empty-state/empty-state.ts +85 -0
  232. package/empty-state/ng-package.json +6 -0
  233. package/empty-state/public-api.ts +1 -0
  234. package/entities/comparison/comparison-entity-list/comparison-entity-list.html +87 -0
  235. package/entities/comparison/comparison-entity-list/comparison-entity-list.ts +93 -0
  236. package/entities/comparison/comparison-value/comparison-value.html +31 -0
  237. package/entities/comparison/comparison-value/comparison-value.ts +53 -0
  238. package/entities/currency-display.utils.spec.ts +94 -0
  239. package/entities/currency-display.utils.ts +92 -0
  240. package/entities/entities-manage/entities-manage.html +74 -0
  241. package/entities/entities-manage/entities-manage.scss +72 -0
  242. package/entities/entities-manage/entities-manage.ts +121 -0
  243. package/entities/entities-manage/entities-resize-base.ts +153 -0
  244. package/entities/entities-preview/entities-preview.css +77 -0
  245. package/entities/entities-preview/entities-preview.html +56 -0
  246. package/entities/entities-preview/entities-preview.ts +281 -0
  247. package/entities/entity-attachment/entity-attachment.html +49 -0
  248. package/entities/entity-attachment/entity-attachment.ts +462 -0
  249. package/entities/entity-checkbox/entity-checkbox.html +28 -0
  250. package/entities/entity-checkbox/entity-checkbox.ts +65 -0
  251. package/entities/entity-comparison.model.ts +39 -0
  252. package/entities/entity-connection/entity-connection.html +12 -0
  253. package/entities/entity-connection/entity-connection.ts +75 -0
  254. package/entities/entity-currency/entity-currency.html +12 -0
  255. package/entities/entity-currency/entity-currency.ts +59 -0
  256. package/entities/entity-date/entity-date.html +16 -0
  257. package/entities/entity-date/entity-date.ts +50 -0
  258. package/entities/entity-display.utils.ts +94 -0
  259. package/entities/entity-field/entity-field.ts +94 -0
  260. package/entities/entity-leaf-details/entity-leaf-details.html +35 -0
  261. package/entities/entity-leaf-details/entity-leaf-details.ts +56 -0
  262. package/entities/entity-location/entity-location.html +34 -0
  263. package/entities/entity-location/entity-location.ts +98 -0
  264. package/entities/entity-long-text/entity-long-text.html +9 -0
  265. package/entities/entity-long-text/entity-long-text.ts +45 -0
  266. package/entities/entity-lookup/entity-lookup.html +25 -0
  267. package/entities/entity-lookup/entity-lookup.ts +68 -0
  268. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.html +39 -0
  269. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.spec.ts +148 -0
  270. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.ts +152 -0
  271. package/entities/entity-percentage/entity-percentage.html +22 -0
  272. package/entities/entity-percentage/entity-percentage.ts +163 -0
  273. package/entities/entity-phase-gate/entity-phase-gate.html +20 -0
  274. package/entities/entity-phase-gate/entity-phase-gate.ts +129 -0
  275. package/entities/entity-preview/entity-preview-body.html +8 -0
  276. package/entities/entity-preview/entity-preview-body.ts +19 -0
  277. package/entities/entity-preview/entity-preview.html +14 -0
  278. package/entities/entity-preview/entity-preview.ts +33 -0
  279. package/entities/entity-preview/entity-value-preview.html +62 -0
  280. package/entities/entity-preview/entity-value-preview.spec.ts +191 -0
  281. package/entities/entity-preview/entity-value-preview.ts +69 -0
  282. package/entities/entity-schedule-item/entity-schedule-item.html +19 -0
  283. package/entities/entity-schedule-item/entity-schedule-item.ts +41 -0
  284. package/entities/entity-sections.util.ts +103 -0
  285. package/entities/entity-status/entity-status.html +20 -0
  286. package/entities/entity-status/entity-status.ts +60 -0
  287. package/entities/entity-text/entity-text.html +20 -0
  288. package/entities/entity-text/entity-text.ts +35 -0
  289. package/entities/entity-user/entity-user.html +181 -0
  290. package/entities/entity-user/entity-user.ts +179 -0
  291. package/entities/entity.model.ts +407 -0
  292. package/entities/leaf-details-display.utils.ts +269 -0
  293. package/entities/ng-package.json +6 -0
  294. package/entities/percentage-color.utils.spec.ts +94 -0
  295. package/entities/percentage-color.utils.ts +80 -0
  296. package/entities/public-api.ts +30 -0
  297. package/field-validation/character-limit.validator.ts +22 -0
  298. package/field-validation/error-message.pipe.spec.ts +184 -0
  299. package/field-validation/error-message.pipe.ts +80 -0
  300. package/field-validation/field-validation.ts +168 -0
  301. package/field-validation/ng-package.json +6 -0
  302. package/field-validation/public-api.ts +2 -0
  303. package/formula/formula-editor/formula-editor.html +89 -0
  304. package/formula/formula-editor/formula-editor.scss +25 -0
  305. package/formula/formula-editor/formula-editor.ts +467 -0
  306. package/formula/formula-editor/index.ts +1 -0
  307. package/formula/formula-editor-code/formula-autocomplete-normalization.util.spec.ts +58 -0
  308. package/formula/formula-editor-code/formula-autocomplete-normalization.util.ts +64 -0
  309. package/formula/formula-editor-code/formula-completion-range.util.spec.ts +62 -0
  310. package/formula/formula-editor-code/formula-completion-range.util.ts +71 -0
  311. package/formula/formula-editor-code/formula-completion-suggestion.util.spec.ts +23 -0
  312. package/formula/formula-editor-code/formula-completion-suggestion.util.ts +18 -0
  313. package/formula/formula-editor-code/formula-editor-code.html +15 -0
  314. package/formula/formula-editor-code/formula-editor-code.scss +90 -0
  315. package/formula/formula-editor-code/formula-editor-code.ts +1095 -0
  316. package/formula/formula-editor-code/index.ts +1 -0
  317. package/formula/formula-status-bar/formula-status-bar.html +119 -0
  318. package/formula/formula-status-bar/formula-status-bar.ts +66 -0
  319. package/formula/formula-status-bar/index.ts +1 -0
  320. package/formula/formula-toolbar/formula-toolbar.html +361 -0
  321. package/formula/formula-toolbar/formula-toolbar.ts +532 -0
  322. package/formula/formula-toolbar/index.ts +2 -0
  323. package/formula/formula-toolbar/operators.ts +122 -0
  324. package/formula/models/formula-block.model.ts +61 -0
  325. package/formula/models/formula-token.model.spec.ts +57 -0
  326. package/formula/models/formula-token.model.ts +852 -0
  327. package/formula/models/index.ts +5 -0
  328. package/formula/models/smart-block.model.ts +132 -0
  329. package/formula/models/validation-result.model.ts +80 -0
  330. package/formula/ng-package.json +6 -0
  331. package/formula/public-api.ts +8 -0
  332. package/formula/runtime/formula-runtime-catalogs.ts +554 -0
  333. package/formula/runtime/formula-runtime-engine.spec.ts +328 -0
  334. package/formula/runtime/formula-runtime-engine.ts +794 -0
  335. package/formula/runtime/formula-runtime.model.ts +53 -0
  336. package/formula/runtime/index.ts +3 -0
  337. package/formula/toolbar-item/index.ts +1 -0
  338. package/formula/toolbar-item/toolbar-item.html +143 -0
  339. package/formula/toolbar-item/toolbar-item.scss +14 -0
  340. package/formula/toolbar-item/toolbar-item.ts +223 -0
  341. package/icon-field/icon-field.html +58 -0
  342. package/icon-field/icon-field.scss +24 -0
  343. package/icon-field/icon-field.spec.ts +77 -0
  344. package/icon-field/icon-field.ts +205 -0
  345. package/icon-field/ng-package.json +6 -0
  346. package/icon-field/public-api.ts +1 -0
  347. package/list/list.html +22 -0
  348. package/list/list.ts +36 -0
  349. package/list/ng-package.json +6 -0
  350. package/list/public-api.ts +1 -0
  351. package/location-field/location-field.html +86 -0
  352. package/location-field/location-field.spec.ts +295 -0
  353. package/location-field/location-field.ts +662 -0
  354. package/location-field/location-manual-dialog.html +43 -0
  355. package/location-field/location-manual-dialog.ts +104 -0
  356. package/location-field/location-value.ts +67 -0
  357. package/location-field/ng-package.json +6 -0
  358. package/location-field/public-api.ts +3 -0
  359. package/menu/menu.html +71 -0
  360. package/menu/menu.scss +3 -0
  361. package/menu/menu.ts +186 -0
  362. package/menu/ng-package.json +6 -0
  363. package/menu/public-api.ts +1 -0
  364. package/modal/modal.ts +127 -0
  365. package/modal/ng-package.json +6 -0
  366. package/modal/public-api.ts +1 -0
  367. package/module-summary-card/module-summary-card.html +43 -0
  368. package/module-summary-card/module-summary-card.scss +0 -0
  369. package/module-summary-card/module-summary-card.ts +40 -0
  370. package/module-summary-card/ng-package.json +6 -0
  371. package/module-summary-card/public-api.ts +1 -0
  372. package/multi-select-field/multi-select-field.html +140 -0
  373. package/multi-select-field/multi-select-field.scss +0 -0
  374. package/multi-select-field/multi-select-field.spec.ts +21 -0
  375. package/multi-select-field/multi-select-field.ts +397 -0
  376. package/multi-select-field/ng-package.json +6 -0
  377. package/multi-select-field/public-api.ts +1 -0
  378. package/ng-package.json +9 -0
  379. package/number-field/ng-package.json +6 -0
  380. package/number-field/number-field.html +39 -0
  381. package/number-field/number-field.scss +8 -0
  382. package/number-field/number-field.spec.ts +21 -0
  383. package/number-field/number-field.ts +124 -0
  384. package/number-field/public-api.ts +1 -0
  385. package/package.json +54 -278
  386. package/page/index.ts +1 -0
  387. package/page/ng-package.json +6 -0
  388. package/page/page.html +37 -0
  389. package/page/page.ts +43 -0
  390. package/page/public-api.ts +1 -0
  391. package/page-header/index.ts +2 -0
  392. package/page-header/ng-package.json +6 -0
  393. package/page-header/page-header.html +60 -0
  394. package/page-header/page-header.ts +54 -0
  395. package/page-header/public-api.ts +1 -0
  396. package/paginator/ng-package.json +6 -0
  397. package/paginator/paginator.html +50 -0
  398. package/paginator/paginator.scss +0 -0
  399. package/paginator/paginator.ts +53 -0
  400. package/paginator/public-api.ts +1 -0
  401. package/pick-list-field/ng-package.json +6 -0
  402. package/pick-list-field/pick-list-field.html +39 -0
  403. package/pick-list-field/pick-list-field.scss +26 -0
  404. package/pick-list-field/pick-list-field.ts +259 -0
  405. package/pick-list-field/public-api.ts +1 -0
  406. package/progress/ng-package.json +6 -0
  407. package/progress/progress.html +36 -0
  408. package/progress/progress.ts +61 -0
  409. package/progress/public-api.ts +1 -0
  410. package/property-filter-builder/ng-package.json +6 -0
  411. package/property-filter-builder/property-filter-builder.html +192 -0
  412. package/property-filter-builder/property-filter-builder.ts +548 -0
  413. package/property-filter-builder/public-api.ts +1 -0
  414. package/radio-button-field/ng-package.json +6 -0
  415. package/radio-button-field/public-api.ts +1 -0
  416. package/radio-button-field/radio-button-field.html +44 -0
  417. package/radio-button-field/radio-button-field.scss +0 -0
  418. package/radio-button-field/radio-button-field.ts +114 -0
  419. package/radio-cards/ng-package.json +6 -0
  420. package/radio-cards/public-api.ts +1 -0
  421. package/radio-cards/radio-cards.css +3 -0
  422. package/radio-cards/radio-cards.html +54 -0
  423. package/radio-cards/radio-cards.spec.ts +22 -0
  424. package/radio-cards/radio-cards.ts +92 -0
  425. package/radio-cards-field/ng-package.json +6 -0
  426. package/radio-cards-field/public-api.ts +1 -0
  427. package/radio-cards-field/radio-cards-field.css +0 -0
  428. package/radio-cards-field/radio-cards-field.html +38 -0
  429. package/radio-cards-field/radio-cards-field.spec.ts +22 -0
  430. package/radio-cards-field/radio-cards-field.ts +182 -0
  431. package/runtime-action/ng-package.json +6 -0
  432. package/runtime-action/payload-builder.ts +246 -0
  433. package/runtime-action/public-api.ts +4 -0
  434. package/runtime-action/runtime-action-context.store.ts +26 -0
  435. package/runtime-action/runtime-action.runner.ts +302 -0
  436. package/runtime-action/runtime-action.types.ts +82 -0
  437. package/select-field/current-user.util.ts +54 -0
  438. package/select-field/ng-package.json +6 -0
  439. package/select-field/public-api.ts +1 -0
  440. package/select-field/select-field.html +142 -0
  441. package/select-field/select-field.scss +0 -0
  442. package/select-field/select-field.spec.ts +21 -0
  443. package/select-field/select-field.ts +471 -0
  444. package/sidebar/ng-package.json +6 -0
  445. package/sidebar/public-api.ts +1 -0
  446. package/sidebar/sidebar.html +368 -0
  447. package/sidebar/sidebar.ts +303 -0
  448. package/slider-field/ng-package.json +7 -0
  449. package/slider-field/public-api.ts +1 -0
  450. package/slider-field/slider-field.html +33 -0
  451. package/slider-field/slider-field.scss +11 -0
  452. package/slider-field/slider-field.spec.ts +44 -0
  453. package/slider-field/slider-field.ts +166 -0
  454. package/src/lib/base/base.facade.ts +159 -0
  455. package/src/lib/base/crud-base.state.ts +248 -0
  456. package/src/lib/config/date-format.config.ts +55 -0
  457. package/src/lib/config/ds-identity.preset.ts +538 -0
  458. package/src/lib/config/ds-identity.tokens.ts +209 -0
  459. package/src/lib/config/dynamic-form.model.ts +1162 -0
  460. package/src/lib/config/povide-messages.ts +5 -0
  461. package/src/lib/config/provide-confirmation.ts +5 -0
  462. package/src/lib/config/providemt.ts +506 -0
  463. package/src/lib/config/public-api.ts +0 -0
  464. package/src/lib/pipes/mt-date-format.pipe.spec.ts +60 -0
  465. package/src/lib/pipes/mt-date-format.pipe.ts +81 -0
  466. package/src/lib/utils/api-request.helper.ts +59 -0
  467. package/src/lib/utils/clock-time.util.ts +58 -0
  468. package/src/lib/utils/color.utils.ts +187 -0
  469. package/src/lib/utils/entity-adapter.ts +50 -0
  470. package/src/lib/utils/field-id.ts +42 -0
  471. package/src/lib/utils/http-context.ts +35 -0
  472. package/src/lib/utils/inputs.ts +6 -0
  473. package/src/lib/utils/state-helpers.ts +49 -0
  474. package/src/lib/utils/theme.ts +281 -0
  475. package/src/public-api.ts +30 -0
  476. package/statistic-card/ng-package.json +6 -0
  477. package/statistic-card/public-api.ts +1 -0
  478. package/statistic-card/statistic-card.html +31 -0
  479. package/statistic-card/statistic-card.scss +0 -0
  480. package/statistic-card/statistic-card.ts +59 -0
  481. package/table/ng-package.json +7 -0
  482. package/table/public-api.ts +10 -0
  483. package/table/table-actions-menu/public-api.ts +1 -0
  484. package/table/table-actions-menu/table-actions-menu.html +75 -0
  485. package/table/table-actions-menu/table-actions-menu.ts +171 -0
  486. package/table/table-caption/public-api.ts +1 -0
  487. package/table/table-caption/table-caption.html +118 -0
  488. package/table/table-caption/table-caption.ts +221 -0
  489. package/table/table-column-filter/public-api.ts +1 -0
  490. package/table/table-column-filter/table-column-filter.html +44 -0
  491. package/table/table-column-filter/table-column-filter.ts +106 -0
  492. package/table/table-export/html-to-text.util.ts +67 -0
  493. package/table/table-export/public-api.ts +1 -0
  494. package/table/table-export/table-export.service.spec.ts +186 -0
  495. package/table/table-export/table-export.service.ts +325 -0
  496. package/table/table-filter/public-api.ts +1 -0
  497. package/table/table-filter/table-filter.css +9 -0
  498. package/table/table-filter/table-filter.html +63 -0
  499. package/table/table-filter/table-filter.ts +126 -0
  500. package/table/table-filter-field/public-api.ts +1 -0
  501. package/table/table-filter-field/table-filter-field.html +182 -0
  502. package/table/table-filter-field/table-filter-field.ts +208 -0
  503. package/table/table-grouping/public-api.ts +1 -0
  504. package/table/table-grouping/table-grouping.spec.ts +218 -0
  505. package/table/table-grouping/table-grouping.ts +237 -0
  506. package/table/table-types.ts +242 -0
  507. package/table/table-value.utils.spec.ts +63 -0
  508. package/table/table-value.utils.ts +1014 -0
  509. package/table/table.css +145 -0
  510. package/table/table.html +572 -0
  511. package/table/table.ts +2042 -0
  512. package/tabs/ng-package.json +6 -0
  513. package/tabs/public-api.ts +1 -0
  514. package/tabs/tabs.html +417 -0
  515. package/tabs/tabs.scss +3 -0
  516. package/tabs/tabs.spec.ts +79 -0
  517. package/tabs/tabs.ts +397 -0
  518. package/text-field/ng-package.json +6 -0
  519. package/text-field/public-api.ts +1 -0
  520. package/text-field/text-field.html +75 -0
  521. package/text-field/text-field.scss +56 -0
  522. package/text-field/text-field.ts +251 -0
  523. package/textarea-field/ng-package.json +6 -0
  524. package/textarea-field/public-api.ts +1 -0
  525. package/textarea-field/textarea-field.html +37 -0
  526. package/textarea-field/textarea-field.scss +0 -0
  527. package/textarea-field/textarea-field.spec.ts +21 -0
  528. package/textarea-field/textarea-field.ts +169 -0
  529. package/toast/ng-package.json +6 -0
  530. package/toast/public-api.ts +2 -0
  531. package/toast/toast.html +18 -0
  532. package/toast/toast.service.ts +67 -0
  533. package/toast/toast.ts +21 -0
  534. package/toggle-field/ng-package.json +6 -0
  535. package/toggle-field/public-api.ts +1 -0
  536. package/toggle-field/toggle-field.html +78 -0
  537. package/toggle-field/toggle-field.scss +24 -0
  538. package/toggle-field/toggle-field.ts +150 -0
  539. package/tooltip/ng-package.json +6 -0
  540. package/tooltip/public-api.ts +2 -0
  541. package/tooltip/tooltip.ts +30 -0
  542. package/tooltip/truncate-tooltip.ts +124 -0
  543. package/topbar/ng-package.json +6 -0
  544. package/topbar/public-api.ts +1 -0
  545. package/topbar/topbar.html +52 -0
  546. package/topbar/topbar.ts +27 -0
  547. package/tree/ng-package.json +6 -0
  548. package/tree/public-api.ts +2 -0
  549. package/tree/tree-types.ts +55 -0
  550. package/tree/tree.html +126 -0
  551. package/tree/tree.scss +1 -0
  552. package/tree/tree.ts +303 -0
  553. package/treeselect-field/ng-package.json +6 -0
  554. package/treeselect-field/public-api.ts +1 -0
  555. package/treeselect-field/treeselect-field.html +71 -0
  556. package/treeselect-field/treeselect-field.ts +348 -0
  557. package/tsconfig.check.json +20 -0
  558. package/tsconfig.json +16 -0
  559. package/tsconfig.spec.json +24 -0
  560. package/upload-field/ng-package.json +6 -0
  561. package/upload-field/public-api.ts +2 -0
  562. package/upload-field/secure-image.pipe.ts +258 -0
  563. package/upload-field/upload-field.html +274 -0
  564. package/upload-field/upload-field.scss +0 -0
  565. package/upload-field/upload-field.spec.ts +169 -0
  566. package/upload-field/upload-field.ts +764 -0
  567. package/upload-field/upload-file-preview/upload-file-preview.html +41 -0
  568. package/upload-field/upload-file-preview/upload-file-preview.scss +0 -0
  569. package/upload-field/upload-file-preview/upload-file-preview.ts +57 -0
  570. package/upload-field/upload-user-preview/upload-user-preview.css +0 -0
  571. package/upload-field/upload-user-preview/upload-user-preview.html +73 -0
  572. package/upload-field/upload-user-preview/upload-user-preview.ts +54 -0
  573. package/uploader/ng-package.json +6 -0
  574. package/uploader/public-api.ts +1 -0
  575. package/uploader/uploader.service.spec.ts +271 -0
  576. package/uploader/uploader.service.ts +733 -0
  577. package/user-search-field/ng-package.json +6 -0
  578. package/user-search-field/public-api.ts +1 -0
  579. package/user-search-field/user-search-field.html +88 -0
  580. package/user-search-field/user-search-field.scss +4 -0
  581. package/user-search-field/user-search-field.spec.ts +176 -0
  582. package/user-search-field/user-search-field.ts +483 -0
  583. package/fesm2022/masterteam-components-avatar-text.mjs +0 -46
  584. package/fesm2022/masterteam-components-avatar-text.mjs.map +0 -1
  585. package/fesm2022/masterteam-components-avatar.mjs +0 -50
  586. package/fesm2022/masterteam-components-avatar.mjs.map +0 -1
  587. package/fesm2022/masterteam-components-breadcrumb.mjs +0 -27
  588. package/fesm2022/masterteam-components-breadcrumb.mjs.map +0 -1
  589. package/fesm2022/masterteam-components-business-fields.mjs +0 -1907
  590. package/fesm2022/masterteam-components-business-fields.mjs.map +0 -1
  591. package/fesm2022/masterteam-components-button-group.mjs +0 -20
  592. package/fesm2022/masterteam-components-button-group.mjs.map +0 -1
  593. package/fesm2022/masterteam-components-button.mjs +0 -82
  594. package/fesm2022/masterteam-components-button.mjs.map +0 -1
  595. package/fesm2022/masterteam-components-card.mjs +0 -28
  596. package/fesm2022/masterteam-components-card.mjs.map +0 -1
  597. package/fesm2022/masterteam-components-checkbox-field.mjs +0 -92
  598. package/fesm2022/masterteam-components-checkbox-field.mjs.map +0 -1
  599. package/fesm2022/masterteam-components-chip.mjs +0 -39
  600. package/fesm2022/masterteam-components-chip.mjs.map +0 -1
  601. package/fesm2022/masterteam-components-client-page-menu.mjs +0 -153
  602. package/fesm2022/masterteam-components-client-page-menu.mjs.map +0 -1
  603. package/fesm2022/masterteam-components-client-page.mjs +0 -413
  604. package/fesm2022/masterteam-components-client-page.mjs.map +0 -1
  605. package/fesm2022/masterteam-components-color-picker-field.mjs +0 -106
  606. package/fesm2022/masterteam-components-color-picker-field.mjs.map +0 -1
  607. package/fesm2022/masterteam-components-confirmation.mjs +0 -98
  608. package/fesm2022/masterteam-components-confirmation.mjs.map +0 -1
  609. package/fesm2022/masterteam-components-date-field.mjs +0 -158
  610. package/fesm2022/masterteam-components-date-field.mjs.map +0 -1
  611. package/fesm2022/masterteam-components-dialog.mjs +0 -33
  612. package/fesm2022/masterteam-components-dialog.mjs.map +0 -1
  613. package/fesm2022/masterteam-components-drawer.mjs +0 -268
  614. package/fesm2022/masterteam-components-drawer.mjs.map +0 -1
  615. package/fesm2022/masterteam-components-dynamic-drawer.mjs +0 -608
  616. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +0 -1
  617. package/fesm2022/masterteam-components-editor-field.mjs +0 -103
  618. package/fesm2022/masterteam-components-editor-field.mjs.map +0 -1
  619. package/fesm2022/masterteam-components-empty-state.mjs +0 -53
  620. package/fesm2022/masterteam-components-empty-state.mjs.map +0 -1
  621. package/fesm2022/masterteam-components-entities.mjs +0 -2183
  622. package/fesm2022/masterteam-components-entities.mjs.map +0 -1
  623. package/fesm2022/masterteam-components-field-validation.mjs +0 -237
  624. package/fesm2022/masterteam-components-field-validation.mjs.map +0 -1
  625. package/fesm2022/masterteam-components-formula.mjs +0 -3848
  626. package/fesm2022/masterteam-components-formula.mjs.map +0 -1
  627. package/fesm2022/masterteam-components-icon-field.mjs +0 -158
  628. package/fesm2022/masterteam-components-icon-field.mjs.map +0 -1
  629. package/fesm2022/masterteam-components-list.mjs +0 -31
  630. package/fesm2022/masterteam-components-list.mjs.map +0 -1
  631. package/fesm2022/masterteam-components-location-field.mjs +0 -607
  632. package/fesm2022/masterteam-components-location-field.mjs.map +0 -1
  633. package/fesm2022/masterteam-components-menu.mjs +0 -135
  634. package/fesm2022/masterteam-components-menu.mjs.map +0 -1
  635. package/fesm2022/masterteam-components-modal.mjs +0 -108
  636. package/fesm2022/masterteam-components-modal.mjs.map +0 -1
  637. package/fesm2022/masterteam-components-module-summary-card.mjs +0 -34
  638. package/fesm2022/masterteam-components-module-summary-card.mjs.map +0 -1
  639. package/fesm2022/masterteam-components-multi-select-field.mjs +0 -321
  640. package/fesm2022/masterteam-components-multi-select-field.mjs.map +0 -1
  641. package/fesm2022/masterteam-components-number-field.mjs +0 -102
  642. package/fesm2022/masterteam-components-number-field.mjs.map +0 -1
  643. package/fesm2022/masterteam-components-page-header.mjs +0 -42
  644. package/fesm2022/masterteam-components-page-header.mjs.map +0 -1
  645. package/fesm2022/masterteam-components-page.mjs +0 -35
  646. package/fesm2022/masterteam-components-page.mjs.map +0 -1
  647. package/fesm2022/masterteam-components-paginator.mjs +0 -43
  648. package/fesm2022/masterteam-components-paginator.mjs.map +0 -1
  649. package/fesm2022/masterteam-components-pick-list-field.mjs +0 -210
  650. package/fesm2022/masterteam-components-pick-list-field.mjs.map +0 -1
  651. package/fesm2022/masterteam-components-progress.mjs +0 -63
  652. package/fesm2022/masterteam-components-progress.mjs.map +0 -1
  653. package/fesm2022/masterteam-components-property-filter-builder.mjs +0 -386
  654. package/fesm2022/masterteam-components-property-filter-builder.mjs.map +0 -1
  655. package/fesm2022/masterteam-components-radio-button-field.mjs +0 -85
  656. package/fesm2022/masterteam-components-radio-button-field.mjs.map +0 -1
  657. package/fesm2022/masterteam-components-radio-cards-field.mjs +0 -131
  658. package/fesm2022/masterteam-components-radio-cards-field.mjs.map +0 -1
  659. package/fesm2022/masterteam-components-radio-cards.mjs +0 -74
  660. package/fesm2022/masterteam-components-radio-cards.mjs.map +0 -1
  661. package/fesm2022/masterteam-components-runtime-action.mjs +0 -406
  662. package/fesm2022/masterteam-components-runtime-action.mjs.map +0 -1
  663. package/fesm2022/masterteam-components-select-field.mjs +0 -415
  664. package/fesm2022/masterteam-components-select-field.mjs.map +0 -1
  665. package/fesm2022/masterteam-components-sidebar.mjs +0 -155
  666. package/fesm2022/masterteam-components-sidebar.mjs.map +0 -1
  667. package/fesm2022/masterteam-components-slider-field.mjs +0 -128
  668. package/fesm2022/masterteam-components-slider-field.mjs.map +0 -1
  669. package/fesm2022/masterteam-components-statistic-card.mjs +0 -42
  670. package/fesm2022/masterteam-components-statistic-card.mjs.map +0 -1
  671. package/fesm2022/masterteam-components-table.mjs +0 -3372
  672. package/fesm2022/masterteam-components-table.mjs.map +0 -1
  673. package/fesm2022/masterteam-components-tabs.mjs +0 -289
  674. package/fesm2022/masterteam-components-tabs.mjs.map +0 -1
  675. package/fesm2022/masterteam-components-text-field.mjs +0 -202
  676. package/fesm2022/masterteam-components-text-field.mjs.map +0 -1
  677. package/fesm2022/masterteam-components-textarea-field.mjs +0 -126
  678. package/fesm2022/masterteam-components-textarea-field.mjs.map +0 -1
  679. package/fesm2022/masterteam-components-toast.mjs +0 -80
  680. package/fesm2022/masterteam-components-toast.mjs.map +0 -1
  681. package/fesm2022/masterteam-components-toggle-field.mjs +0 -116
  682. package/fesm2022/masterteam-components-toggle-field.mjs.map +0 -1
  683. package/fesm2022/masterteam-components-tooltip.mjs +0 -147
  684. package/fesm2022/masterteam-components-tooltip.mjs.map +0 -1
  685. package/fesm2022/masterteam-components-topbar.mjs +0 -32
  686. package/fesm2022/masterteam-components-topbar.mjs.map +0 -1
  687. package/fesm2022/masterteam-components-tree.mjs +0 -260
  688. package/fesm2022/masterteam-components-tree.mjs.map +0 -1
  689. package/fesm2022/masterteam-components-treeselect-field.mjs +0 -265
  690. package/fesm2022/masterteam-components-treeselect-field.mjs.map +0 -1
  691. package/fesm2022/masterteam-components-upload-field.mjs +0 -846
  692. package/fesm2022/masterteam-components-upload-field.mjs.map +0 -1
  693. package/fesm2022/masterteam-components-uploader.mjs +0 -425
  694. package/fesm2022/masterteam-components-uploader.mjs.map +0 -1
  695. package/fesm2022/masterteam-components-user-search-field.mjs +0 -374
  696. package/fesm2022/masterteam-components-user-search-field.mjs.map +0 -1
  697. package/fesm2022/masterteam-components.mjs +0 -2512
  698. package/fesm2022/masterteam-components.mjs.map +0 -1
  699. package/types/masterteam-components-avatar-text.d.ts +0 -23
  700. package/types/masterteam-components-avatar.d.ts +0 -23
  701. package/types/masterteam-components-breadcrumb.d.ts +0 -18
  702. package/types/masterteam-components-business-fields.d.ts +0 -675
  703. package/types/masterteam-components-button-group.d.ts +0 -8
  704. package/types/masterteam-components-button.d.ts +0 -62
  705. package/types/masterteam-components-card.d.ts +0 -14
  706. package/types/masterteam-components-checkbox-field.d.ts +0 -38
  707. package/types/masterteam-components-chip.d.ts +0 -21
  708. package/types/masterteam-components-client-page-menu.d.ts +0 -55
  709. package/types/masterteam-components-client-page.d.ts +0 -115
  710. package/types/masterteam-components-color-picker-field.d.ts +0 -39
  711. package/types/masterteam-components-confirmation.d.ts +0 -41
  712. package/types/masterteam-components-date-field.d.ts +0 -57
  713. package/types/masterteam-components-dialog.d.ts +0 -12
  714. package/types/masterteam-components-drawer.d.ts +0 -62
  715. package/types/masterteam-components-dynamic-drawer.d.ts +0 -159
  716. package/types/masterteam-components-editor-field.d.ts +0 -39
  717. package/types/masterteam-components-empty-state.d.ts +0 -47
  718. package/types/masterteam-components-entities.d.ts +0 -1102
  719. package/types/masterteam-components-field-validation.d.ts +0 -59
  720. package/types/masterteam-components-formula.d.ts +0 -759
  721. package/types/masterteam-components-icon-field.d.ts +0 -44
  722. package/types/masterteam-components-list.d.ts +0 -18
  723. package/types/masterteam-components-location-field.d.ts +0 -173
  724. package/types/masterteam-components-menu.d.ts +0 -55
  725. package/types/masterteam-components-modal.d.ts +0 -30
  726. package/types/masterteam-components-module-summary-card.d.ts +0 -18
  727. package/types/masterteam-components-multi-select-field.d.ts +0 -104
  728. package/types/masterteam-components-number-field.d.ts +0 -47
  729. package/types/masterteam-components-page-header.d.ts +0 -30
  730. package/types/masterteam-components-page.d.ts +0 -26
  731. package/types/masterteam-components-paginator.d.ts +0 -20
  732. package/types/masterteam-components-pick-list-field.d.ts +0 -65
  733. package/types/masterteam-components-progress.d.ts +0 -30
  734. package/types/masterteam-components-property-filter-builder.d.ts +0 -90
  735. package/types/masterteam-components-radio-button-field.d.ts +0 -41
  736. package/types/masterteam-components-radio-cards-field.d.ts +0 -39
  737. package/types/masterteam-components-radio-cards.d.ts +0 -33
  738. package/types/masterteam-components-runtime-action.d.ts +0 -105
  739. package/types/masterteam-components-select-field.d.ts +0 -136
  740. package/types/masterteam-components-sidebar.d.ts +0 -71
  741. package/types/masterteam-components-slider-field.d.ts +0 -41
  742. package/types/masterteam-components-statistic-card.d.ts +0 -28
  743. package/types/masterteam-components-table.d.ts +0 -937
  744. package/types/masterteam-components-tabs.d.ts +0 -80
  745. package/types/masterteam-components-text-field.d.ts +0 -60
  746. package/types/masterteam-components-textarea-field.d.ts +0 -45
  747. package/types/masterteam-components-toast.d.ts +0 -27
  748. package/types/masterteam-components-toggle-field.d.ts +0 -44
  749. package/types/masterteam-components-tooltip.d.ts +0 -26
  750. package/types/masterteam-components-topbar.d.ts +0 -20
  751. package/types/masterteam-components-tree.d.ts +0 -106
  752. package/types/masterteam-components-treeselect-field.d.ts +0 -79
  753. package/types/masterteam-components-upload-field.d.ts +0 -112
  754. package/types/masterteam-components-uploader.d.ts +0 -53
  755. package/types/masterteam-components-user-search-field.d.ts +0 -110
  756. package/types/masterteam-components.d.ts +0 -1261
@@ -0,0 +1 @@
1
+ {"hash":"12514e507f61b21e03e7cb60f9000fa3c570d899a7bc8fe93af5e65f56830636","types":[{"exports":["CURRENCY_COMPACT_THRESHOLD","ComparisonEntityList","ComparisonValue","ComparisonValueSide","DEFAULT_PHASE_GATE_COLOR","EntitiesManage","EntitiesPreview","EntitiesResizeBase","EntityAttachment","EntityAttachmentItemValue","EntityAttachmentValue","EntityBaseConfig","EntityCheckbox","EntityClickEvent","EntityComparisonField","EntityComparisonOperation","EntityConfiguration","EntityConnection","EntityConnectionValue","EntityCurrency","EntityData","EntityDate","EntityField","EntityLabelPosition","EntityLeafDetails","EntityLeafDetailsConfig","EntityListComparison","EntityListComparisonRow","EntityLocation","EntityLocationValue","EntityLongText","EntityLookup","EntityLookupCheckListItem","EntityLookupCheckListPropValue","EntityLookupCheckListValue","EntityLookupModuleCheckList","EntityLookupValue","EntityMultiLookupValue","EntityMultiUserValue","EntityNestedPropertyMeta","EntityPercentage","EntityPercentageConfig","EntityPhaseGate","EntityPhaseGateValue","EntityPreview","EntityPreviewBody","EntityPropertyConfiguration","EntityResizeEvent","EntityScheduleItem","EntityScheduleItemValue","EntitySectionConfig","EntitySectionGroup","EntitySectionLabel","EntitySize","EntityStatus","EntityStatusValue","EntityText","EntityUser","EntityUserConfig","EntityUserValue","EntityViewType","LEAF_DETAILS_KEY_SEPARATOR","LeafDetailsCatalogConfiguration","LeafDetailsCatalogLevelValue","LeafDetailsCatalogStatusValue","LeafDetailsEntityCollectionValue","LeafDetailsEntityValue","LeafDetailsRuntimeChildSchema","LeafDetailsRuntimeStatusCount","LeafDetailsRuntimeStatusDetails","LeafDetailsRuntimeValue","LeafDetailsStatusSummary","LeafLevelSavedConfig","PercentageColorRule","PercentageColorSource","PropertyValueComparison","SECTION_KEY_PREFIX","ValueComparison","buildDisplayEntities","buildSectionKey","compactCurrencyDisplay","currencyUnitOf","expandLeafDetailsEntity","getEntitySectionTitle","groupEntitiesIntoSections","isEntitySection","isLeafDetailsCatalogConfiguration","isLeafDetailsCollectionValue","isLeafDetailsRuntimeValue","isLeafDetailsSyntheticKey","isLeafDetailsValue","isSectionKey","matchesPercentageColorRule","parseCurrencyAmount","resolveLocalizedLabel","resolvePercentageColor"],"facadeModuleId":"C:\\Users\\ABDULLAH WISHAH\\Documents\\GitHub\\components\\dist\\masterteam\\components\\tmp-typings\\entities\\masterteam-components-entities.d.ts","isDynamicEntry":false,"isEntry":true,"isImplicitEntry":false,"moduleIds":["C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-comparison.model.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity.model.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-field/entity-field.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-text/entity-text.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-date/entity-date.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-status/entity-status.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-user/entity-user.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-percentage/entity-percentage.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-currency/entity-currency.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-checkbox/entity-checkbox.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-long-text/entity-long-text.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-lookup/entity-lookup.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-phase-gate/entity-phase-gate.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-attachment/entity-attachment.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-location/entity-location.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-connection/entity-connection.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-schedule-item/entity-schedule-item.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-leaf-details/entity-leaf-details.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/leaf-details-display.utils.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/currency-display.utils.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/percentage-color.utils.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-sections.util.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-preview/entity-preview.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-preview/entity-preview-body.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/comparison/comparison-value/comparison-value.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/comparison/comparison-entity-list/comparison-entity-list.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entities-preview/entities-preview.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entities-manage/entities-resize-base.d.ts","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entities-manage/entities-manage.d.ts","C:\\Users\\ABDULLAH WISHAH\\Documents\\GitHub\\components\\dist\\masterteam\\components\\tmp-typings\\entities\\masterteam-components-entities.d.ts"],"name":"masterteam-components-entities.d","type":"chunk","dynamicImports":[],"fileName":"masterteam-components-entities.d.ts","implicitlyLoadedBefore":[],"importedBindings":{"@masterteam/components/entities":["*"],"@angular/core":["*","ElementRef","NgZone"],"@masterteam/components":["MTDateFormatType"],"@angular/common/http":["HttpContext"],"@masterteam/icons":["MTIcon"],"@angular/cdk/drag-drop":["CdkDragDrop"]},"imports":["@masterteam/components/entities","@angular/core","@masterteam/components","@angular/common/http","@masterteam/icons","@angular/cdk/drag-drop"],"modules":{"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-comparison.model.d.ts":{"code":"interface ComparisonValueSide {\n raw: unknown;\n value: unknown;\n display?: string | null;\n}\ninterface ValueComparison {\n kind: 'Value';\n oldValue: ComparisonValueSide;\n newValue: ComparisonValueSide;\n}\ninterface EntityComparisonField {\n propertyKey: string;\n label: string;\n value: unknown;\n display?: string | null;\n}\ntype EntityComparisonOperation = 'CreateRecord' | 'UpdateRecord' | 'DeleteRecord';\ninterface EntityListComparisonRow {\n kind: 'ModuleRecord';\n operation: EntityComparisonOperation;\n entityId: number;\n oldValues: EntityComparisonField[];\n newValues: EntityComparisonField[];\n}\ninterface EntityListComparison {\n kind: 'EntityList';\n targetModuleKey: string;\n rows: EntityListComparisonRow[];\n}\ntype PropertyValueComparison = ValueComparison | EntityListComparison;","originalLength":885,"removedExports":[],"renderedExports":["ComparisonValueSide","ValueComparison","EntityComparisonField","EntityComparisonOperation","EntityListComparisonRow","EntityListComparison","PropertyValueComparison"],"renderedLength":835},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity.model.d.ts":{"code":"type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime'\n/**\n * Time-of-day. The value on the wire is still a full ISO instant (the\n * backend stores and returns the same shape as `DateTime`); only the\n * rendering and the picker are narrowed to the clock time.\n */\n | 'Time' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'MultiUser' | 'Lookup' | 'LookupMultiSelect'\n/**\n * Calculated, read-only lookup resolved by the backend to the schema phase\n * gate the record currently sits on. Never editable at runtime.\n */\n | 'PhaseGate' | 'Attachment' | 'Location' | 'LookupMatrix' | 'LookupModuleCheckList' | 'LeafDetails' | 'Connection' | 'ScheduleItemSelector'\n/**\n * Layout marker, not a value. Rendered full-width and non-resizable; the\n * preview layer (`groupEntitiesIntoSections`) turns each marker into a titled\n * section box that owns every entity following it until the next marker.\n */\n | 'Section';\ntype EntityLabelPosition = 'top' | 'bottom';\n/** Entity size – controls column span (1-24) inside a 24-column grid */\ntype EntitySize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;\ninterface EntityBaseConfig {\n /** Column span of the entity card (1-24). Default: 8 */\n size?: EntitySize;\n /** Whether to show a dashed border around the entity card */\n showBorder?: boolean;\n /** Whether to hide the entity name label. Prefer hideLabel for new config. */\n hideName?: boolean;\n /** Whether to hide the entity label */\n hideLabel?: boolean;\n /** Controls whether the label is rendered above or below the value */\n labelPosition?: EntityLabelPosition;\n /** Legacy misspelled alias kept for compatibility */\n labelPostion?: EntityLabelPosition;\n /** Whether the entity content is aligned to the end (right in LTR) */\n alignEnd?: boolean;\n /**\n * Custom localized label override. When present it replaces the catalog\n * label; it also serves as the heading for `Section` markers.\n */\n label?: EntitySectionLabel;\n}\ninterface EntityUserConfig extends EntityBaseConfig {\n showDisplayName?: boolean;\n showPhoneNumber?: boolean;\n showEmail?: boolean;\n /**\n * Whether the user's own picture is rendered. When `false` the avatar stays\n * in place but falls back to the generic user icon instead of `photoUrl`.\n */\n showUserImage?: boolean;\n /** Maximum users shown before the MultiUser preview collapses behind +N. */\n maxVisibleUsers?: number;\n}\n/**\n * One Progress/Percentage color rule. Bounds are inclusive and at least one of\n * `minValue`/`maxValue` must be present — a rule with neither matches nothing.\n */\ninterface PercentageColorRule {\n minValue?: number | null;\n maxValue?: number | null;\n color: string;\n}\ninterface EntityPercentageConfig extends EntityBaseConfig {\n /**\n * The colour to paint the bar with. The backend resolves the rules and ships\n * the winner here on render/value/fetch responses, so this always wins over\n * a client-side evaluation of `colorRules`.\n */\n color?: string;\n /** Ordered rules — evaluated in order, first match wins. */\n colorRules?: PercentageColorRule[] | null;\n /** Fallback colour applied when no rule matches. */\n defaultColor?: string | null;\n}\ninterface LeafLevelSavedConfig {\n /** Position order for this level entity in the preview grid */\n order: number;\n /** Column span (1-24), persisted from drag-resize */\n size?: EntitySize;\n /** Status keys the user has chosen to display */\n selectedStatuses: string[];\n}\ninterface EntityLeafDetailsConfig extends EntityBaseConfig {\n /** Per-level display overrides for LeafDetails entities */\n leafLevels?: Record<string, LeafLevelSavedConfig>;\n}\n/** A localized label ({ en, ar }) — used by section headings and custom labels. */\ninterface EntitySectionLabel {\n en?: string;\n ar?: string;\n}\n/** Configuration for a `Section` layout marker (`viewType: 'Section'`). */\ninterface EntitySectionConfig extends EntityBaseConfig {\n /** Section heading, localized. Empty/absent renders a header-less box. */\n label?: EntitySectionLabel;\n}\ntype EntityConfiguration = EntityBaseConfig | EntityUserConfig | EntityPercentageConfig | EntityLeafDetailsConfig | EntitySectionConfig;\ninterface EntityStatusValue {\n key: string;\n display: string;\n color: string;\n description?: string;\n}\ninterface EntityLookupValue {\n key: string;\n display: string;\n color: string;\n description?: string;\n}\ntype EntityMultiLookupValue = EntityLookupValue[];\n/**\n * A `PhaseGate` value — the schema phase gate the record currently sits on.\n *\n * Calculated and read-only: the backend owns it, nothing in the runtime writes\n * it back. `key` is the stable phase-gate key; the schema phase-gate *id* rides\n * on the owning entity's `rawValue`, not here. `display` is resolved for the\n * request language, and `en`/`ar` carry the explicit per-language labels so the\n * renderer can follow a client-side language switch without a refetch.\n */\ninterface EntityPhaseGateValue {\n key: string;\n display: string;\n en?: string;\n ar?: string;\n description?: string;\n /**\n * Optional presentation metadata (hex). Absent → the renderer's\n * `DEFAULT_PHASE_GATE_COLOR` neutral badge.\n */\n color?: string;\n}\ninterface EntityUserValue {\n id?: string;\n userName?: string;\n name?: string;\n displayName?: string;\n photoUrl?: string;\n phoneNumber?: string;\n email?: string;\n /**\n * `false` when the user is no longer linked to the current application\n * (e.g. removed/deleted) but is still referenced by historical records.\n */\n isLinkedToCurrentApplication?: boolean;\n}\ntype EntityMultiUserValue = EntityUserValue[];\ninterface LeafDetailsStatusSummary {\n key: string;\n display: string;\n color: string | null;\n /** Always 0 in preview/configuration context; populated from runtime fetch */\n count: number;\n}\ninterface LeafDetailsCatalogStatusValue {\n key: string;\n display: string;\n description?: string | null;\n color: string | null;\n icon?: string | null;\n order?: number;\n}\ninterface LeafDetailsCatalogLevelValue {\n levelId: number;\n levelName: string;\n levelIcon: string;\n statuses: LeafDetailsCatalogStatusValue[];\n}\ninterface LeafDetailsEntityValue {\n levelId: number;\n levelName: string;\n levelIcon: string;\n statuses: LeafDetailsStatusSummary[];\n}\ntype LeafDetailsEntityCollectionValue = LeafDetailsEntityValue[];\ntype LeafDetailsCatalogConfiguration = LeafDetailsCatalogLevelValue[];\ntype EntityPropertyConfiguration = Record<string, unknown> | LeafDetailsCatalogConfiguration | null;\ninterface LeafDetailsRuntimeStatusDetails {\n key: string;\n display: string;\n color: string | null;\n description?: string | null;\n icon?: string | null;\n order?: number;\n}\ninterface LeafDetailsRuntimeStatusCount {\n details: LeafDetailsRuntimeStatusDetails;\n count: number;\n}\ninterface LeafDetailsRuntimeChildSchema {\n levelId: number;\n levelName: string;\n levelIcon: string;\n totalCount?: number;\n statuses: LeafDetailsRuntimeStatusCount[];\n}\ninterface LeafDetailsRuntimeValue {\n totalCount?: number;\n childSchemas: LeafDetailsRuntimeChildSchema[];\n}\ninterface EntityAttachmentItemValue {\n id?: string;\n name?: string;\n fileName?: string;\n contentType?: string;\n extension?: string;\n size?: number;\n}\ntype EntityAttachmentValue = Array<EntityAttachmentItemValue | string>;\ninterface EntityLocationValue {\n display_name?: string;\n address?: string;\n lat?: string | number;\n lon?: string | number;\n lng?: string | number;\n [key: string]: unknown;\n}\ninterface EntityConnectionValue {\n /** Human-readable label of the connected record (read from `rawValue.display`). */\n display?: string;\n [key: string]: unknown;\n}\n/** A single property key/value captured for a checklist entry. */\ninterface EntityLookupCheckListPropValue {\n key: string;\n /**\n * Rendered value resolved by the backend, in the same shape a top-level\n * property of the same `viewType` carries. Paired with the matching\n * `EntityNestedPropertyMeta` to render it as a real typed entity.\n */\n value: unknown;\n}\n/** One checklist entry: a selected lookup item plus its captured property values. */\ninterface EntityLookupCheckListItem {\n lookupKey: string;\n props: EntityLookupCheckListPropValue[];\n}\n/**\n * Rendered view model for a `LookupModuleCheckList` value.\n * The backend renderer wraps the checklist entries in `{ items: [...] }`.\n */\ninterface EntityLookupCheckListValue {\n items: EntityLookupCheckListItem[];\n}\ninterface EntityScheduleItemValue {\n id: number;\n name: string;\n levelDataId?: number;\n parentId?: number | null;\n status?: string | null;\n plannedStart?: string | null;\n plannedFinish?: string | null;\n moduleKey?: string;\n itemType?: string;\n}\n/**\n * Catalog metadata for a property nested inside another property's value.\n * Mirrors the top-level catalog property shape, which the backend sends under\n * `catalog.nestedProperties` keyed by the owning property key. Only\n * `LookupModuleCheckList` values carry nested properties today.\n */\ninterface EntityNestedPropertyMeta {\n id?: number;\n key: string;\n normalizedKey?: string;\n label: string;\n viewType: EntityViewType;\n configuration?: EntityPropertyConfiguration;\n order?: number;\n}\ninterface EntityData {\n id?: number;\n propertyId?: number;\n key?: string;\n normalizedKey?: string;\n name?: string;\n rawValue?: string;\n order?: number;\n propertyConfiguration?: EntityPropertyConfiguration;\n /**\n * Catalog metadata for the properties captured inside `value`. The stored\n * checklist value only carries property keys, so without this the nested\n * props have no label and no view type to render with.\n */\n nestedProperties?: EntityNestedPropertyMeta[];\n value: string | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityMultiLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;\n viewType: EntityViewType;\n type?: string;\n configuration?: EntityConfiguration;\n /** Present on submitted ChangeRequest records — frozen old→new snapshot. */\n comparison?: PropertyValueComparison;\n}\n/** Emitted when an entity is resized via the drag handle */\ninterface EntityResizeEvent {\n entity: EntityData;\n previousSize: EntitySize;\n newSize: EntitySize;\n}","originalLength":11197,"removedExports":[],"renderedExports":["EntityViewType","EntityLabelPosition","EntitySize","EntityBaseConfig","EntityUserConfig","PercentageColorRule","EntityPercentageConfig","LeafLevelSavedConfig","EntityLeafDetailsConfig","EntitySectionLabel","EntitySectionConfig","EntityConfiguration","EntityStatusValue","EntityLookupValue","EntityMultiLookupValue","EntityPhaseGateValue","EntityUserValue","EntityMultiUserValue","LeafDetailsStatusSummary","LeafDetailsCatalogStatusValue","LeafDetailsCatalogLevelValue","LeafDetailsEntityValue","LeafDetailsEntityCollectionValue","LeafDetailsCatalogConfiguration","EntityPropertyConfiguration","LeafDetailsRuntimeStatusDetails","LeafDetailsRuntimeStatusCount","LeafDetailsRuntimeChildSchema","LeafDetailsRuntimeValue","EntityAttachmentItemValue","EntityAttachmentValue","EntityLocationValue","EntityConnectionValue","EntityLookupCheckListPropValue","EntityLookupCheckListItem","EntityLookupCheckListValue","EntityScheduleItemValue","EntityNestedPropertyMeta","EntityData","EntityResizeEvent"],"renderedLength":10842},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-field/entity-field.d.ts":{"code":"type EntityFieldGap = 'compact' | 'normal' | 'relaxed';\ndeclare class EntityField {\n readonly label: _angular_core.InputSignal<string>;\n readonly labelIconName: _angular_core.InputSignal<string | null>;\n readonly configuration: _angular_core.InputSignal<EntityConfiguration | null | undefined>;\n readonly gap: _angular_core.InputSignal<EntityFieldGap>;\n readonly hideLabel: _angular_core.Signal<boolean>;\n readonly labelPosition: _angular_core.Signal<_masterteam_components_entities.EntityLabelPosition>;\n readonly labelContainerClass: _angular_core.Signal<string>;\n readonly contentContainerClass: _angular_core.Signal<string>;\n readonly containerClass: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityField, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityField, \"mt-entity-field\", never, { \"label\": { \"alias\": \"label\"; \"required\": false; \"isSignal\": true; }; \"labelIconName\": { \"alias\": \"labelIconName\"; \"required\": false; \"isSignal\": true; }; \"configuration\": { \"alias\": \"configuration\"; \"required\": false; \"isSignal\": true; }; \"gap\": { \"alias\": \"gap\"; \"required\": false; \"isSignal\": true; }; }, {}, never, [\"*\"], true, never>;\n}","originalLength":1409,"removedExports":[],"renderedExports":["EntityField"],"renderedLength":1220},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-text/entity-text.d.ts":{"code":"declare class EntityText {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly displayValue: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityText, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityText, \"mt-entity-text\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":963,"removedExports":[],"renderedExports":["EntityText"],"renderedLength":844},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-date/entity-date.d.ts":{"code":"declare class EntityDate {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<unknown>;\n readonly viewType: _angular_core.InputSignal<\"Date\" | \"DateTime\" | \"Time\">;\n readonly displayName: _angular_core.Signal<string>;\n /**\n * `Time` carries a wall-clock value (`HH:mm:ss`) with no date and no zone, so\n * `mtDateFormat` renders it as stored instead of shifting it into the\n * viewer's timezone the way its `DateTime` sibling is shifted.\n */\n readonly resolvedViewType: _angular_core.Signal<MTDateFormatType>;\n readonly displayValue: _angular_core.Signal<unknown>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityDate, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityDate, \"mt-entity-date\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; \"viewType\": { \"alias\": \"viewType\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1505,"removedExports":[],"renderedExports":["EntityDate"],"renderedLength":1302},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-status/entity-status.d.ts":{"code":"declare class EntityStatus {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<EntityStatusValue | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly statusValue: _angular_core.Signal<EntityStatusValue | null>;\n readonly badgeStyle: _angular_core.Signal<{\n color?: undefined;\n backgroundColor?: undefined;\n } | {\n color: string;\n backgroundColor: string;\n }>;\n readonly emptyLabel = \"_\";\n readonly statusLabel: _angular_core.Signal<string>;\n private hexToRgba;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityStatus, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityStatus, \"mt-entity-status\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1334,"removedExports":[],"renderedExports":["EntityStatus"],"renderedLength":1176},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-user/entity-user.d.ts":{"code":"declare class EntityUser {\n readonly httpContext: HttpContext;\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n readonly expanded: _angular_core.WritableSignal<boolean>;\n readonly displayName: _angular_core.Signal<string>;\n readonly isMultiUser: _angular_core.Signal<boolean>;\n /** Resolved user objects from either a User or MultiUser entity value. */\n readonly users: _angular_core.Signal<EntityUserValue[]>;\n readonly maxVisibleUsers: _angular_core.Signal<number>;\n readonly visibleUsers: _angular_core.Signal<EntityUserValue[]>;\n readonly hiddenUserCount: _angular_core.Signal<number>;\n /** First user retained for the existing single-user computed API. */\n private readonly userValue;\n userNameFor(user: EntityUserValue): string;\n userPhotoFor(user: EntityUserValue): string;\n labelTextFor(user: EntityUserValue): string;\n isUnlinkedUser(user: EntityUserValue): boolean;\n phoneNumberFor(user: EntityUserValue): string;\n emailFor(user: EntityUserValue): string;\n hasContactInfoFor(user: EntityUserValue): boolean;\n readonly emptyUserName: _angular_core.Signal<string>;\n readonly rawUserName: _angular_core.Signal<string | null>;\n readonly userName: _angular_core.Signal<string>;\n readonly userPhoto: _angular_core.Signal<string>;\n readonly labelText: _angular_core.Signal<string>;\n /**\n * `true` when the referenced user is no longer linked to the application.\n * Drives the inline info badge/tooltip next to the display name.\n */\n readonly isUnlinked: _angular_core.Signal<string | false | undefined>;\n private readonly config;\n readonly showDisplayName: _angular_core.Signal<boolean>;\n readonly showPhoneNumber: _angular_core.Signal<boolean>;\n readonly showEmail: _angular_core.Signal<boolean>;\n /**\n * When off, the avatar falls back to the generic user icon so the layout keeps\n * its shape while the user's real picture stays hidden.\n */\n readonly showUserImage: _angular_core.Signal<boolean>;\n readonly phoneNumber: _angular_core.Signal<string>;\n readonly email: _angular_core.Signal<string>;\n readonly hasContactInfo: _angular_core.Signal<boolean>;\n constructor();\n showAllUsers(): void;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityUser, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityUser, \"mt-entity-user\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":2904,"removedExports":[],"renderedExports":["EntityUser"],"renderedLength":2556},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-percentage/entity-percentage.d.ts":{"code":"declare class EntityPercentage {\n private readonly transloco;\n /** Active locale, so number formatting follows the UI language. */\n private readonly locale;\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly rawValue: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly displayValue: _angular_core.Signal<string>;\n private readonly rawNumericValue;\n readonly hasNumericValue: _angular_core.Signal<boolean>;\n readonly numericValue: _angular_core.Signal<number>;\n readonly maxValue: _angular_core.Signal<number>;\n readonly hideName: _angular_core.Signal<boolean>;\n /**\n * The bar colour. The backend evaluates the property's colour rules and\n * returns the winner as `color` on render/value/fetch responses, so a\n * resolved colour always wins — the rules are only evaluated here for\n * configurations that arrive without one (a catalog read, or the\n * property-form preview).\n */\n readonly progressColor: _angular_core.Signal<string>;\n /**\n * Renders a percentage for the active locale.\n *\n * This used to echo the backend's string and only append `%` when that string\n * already carried one — so in Arabic, where the API returns a bare `\"25\"`,\n * the symbol vanished and a progress value rendered as an unlabelled `25`.\n * Next to a bar that could be a percentage, a count or a score (finding\n * H-08).\n *\n * Formatting from the NUMBER through `Intl.NumberFormat` makes the symbol,\n * the decimal separator and the digit shapes follow the locale instead of the\n * payload. `maximumFractionDigits: 1` preserves the precision the old code\n * kept; `style: 'percent'` expects a fraction, hence the /100.\n *\n * Non-numeric values pass through untouched — a status string or an em dash\n * must not be mangled into `NaN%`.\n */\n private formatPercentageDisplay;\n private parseNumericValue;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPercentage, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPercentage, \"mt-entity-percentage\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; \"rawValue\": { \"alias\": \"rawValue\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":2912,"removedExports":[],"renderedExports":["EntityPercentage"],"renderedLength":2733},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-currency/entity-currency.d.ts":{"code":"declare class EntityCurrency {\n private readonly transloco;\n /** Active locale, so number formatting follows the UI language. */\n private readonly locale;\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n /** The backend's fully grouped string — always the tooltip, never truncated. */\n readonly fullValue: _angular_core.Signal<string>;\n /**\n * What the cell renders: the backend's string, or a compact form of it when\n * the amount is large enough that the currency token would be truncated away.\n * See {@link compactCurrencyDisplay} (finding H-06).\n */\n readonly displayValue: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityCurrency, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityCurrency, \"mt-entity-currency\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1499,"removedExports":[],"renderedExports":["EntityCurrency"],"renderedLength":1370},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-checkbox/entity-checkbox.d.ts":{"code":"declare class EntityCheckbox {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly rawValue: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly emptyLabel = \"_\";\n readonly hideName: _angular_core.Signal<boolean>;\n readonly checkboxState: _angular_core.Signal<boolean | null>;\n private parseBoolean;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityCheckbox, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityCheckbox, \"mt-entity-checkbox\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; \"rawValue\": { \"alias\": \"rawValue\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1264,"removedExports":[],"renderedExports":["EntityCheckbox"],"renderedLength":1125},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-long-text/entity-long-text.d.ts":{"code":"declare class EntityLongText {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly displayValue: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLongText, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLongText, \"mt-entity-long-text\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":980,"removedExports":[],"renderedExports":["EntityLongText"],"renderedLength":861},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-lookup/entity-lookup.d.ts":{"code":"declare class EntityLookup {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<EntityLookupValue | EntityMultiLookupValue | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly lookupValues: _angular_core.Signal<EntityMultiLookupValue>;\n lookupBadgeStyle(lookup: EntityLookupValue): Record<string, string>;\n readonly emptyLabel = \"_\";\n lookupLabel(lookup: EntityLookupValue): string;\n private hexToRgba;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLookup, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLookup, \"mt-entity-lookup\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1245,"removedExports":[],"renderedExports":["EntityLookup"],"renderedLength":1083},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-phase-gate/entity-phase-gate.d.ts":{"code":"/**\n * Badge color used when the phase gate carries no `color`. `color` is optional\n * presentation metadata, so a phase gate without one must still read as a\n * badge rather than as bare text — this is the same neutral slate the table\n * falls back to for uncategorized status chips.\n */\ndeclare const DEFAULT_PHASE_GATE_COLOR = \"#475569\";\n/**\n * Preview renderer for `PhaseGate` properties — a calculated, read-only lookup\n * pointing at the schema phase gate the record currently sits on. It renders\n * exactly like {@link EntityLookup} (colored badge) but resolves its label\n * per-language.\n *\n * Label resolution, in order:\n * 1. `value.ar` / `value.en` for the active language — the backend sends both\n * so a client-side language switch re-renders without a refetch, which is\n * why they win over the already-resolved `display`.\n * 2. `value.display`, then the other locale.\n * 3. The flat display, for payloads that send the value as a bare string\n * (comparison snapshots build their sides that way).\n * 4. `rawValue` — the schema phase-gate id — as a last resort.\n */\ndeclare class EntityPhaseGate {\n private readonly transloco;\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<EntityPhaseGateValue | undefined>;\n private readonly activeLang;\n readonly displayName: _angular_core.Signal<string>;\n readonly phaseGateValue: _angular_core.Signal<EntityPhaseGateValue | null>;\n /** Resolved label, or `null` when nothing at all is available. */\n private readonly resolvedLabel;\n readonly hasValue: _angular_core.Signal<boolean>;\n readonly phaseGateLabel: _angular_core.Signal<string>;\n readonly badgeStyle: _angular_core.Signal<{\n color: string;\n backgroundColor?: undefined;\n } | {\n color: string;\n backgroundColor: string;\n }>;\n readonly emptyLabel = \"_\";\n /** The value flattened to a plain display string by the sender. */\n private flatDisplay;\n /** The schema phase-gate id. */\n private rawId;\n private hexToRgba;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPhaseGate, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPhaseGate, \"mt-entity-phase-gate\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":2842,"removedExports":[],"renderedExports":["DEFAULT_PHASE_GATE_COLOR","EntityPhaseGate"],"renderedLength":2664},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-attachment/entity-attachment.d.ts":{"code":"type AttachmentReference = EntityAttachmentItemValue | string;\ndeclare class EntityAttachment {\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly shape: _angular_core.InputSignal<\"default\" | \"compact\">;\n readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;\n readonly endPoint: _angular_core.InputSignal<string>;\n readonly context: _angular_core.InputSignal<HttpContext | undefined>;\n private readonly httpClient;\n private readonly transloco;\n readonly displayName: _angular_core.Signal<string>;\n readonly loading: _angular_core.WritableSignal<boolean>;\n readonly attachments: _angular_core.WritableSignal<EntityAttachmentItemValue[]>;\n /** Key of the compact chip currently hovered, so it can reveal the download affordance. */\n readonly hoveredAttachmentKey: _angular_core.WritableSignal<string | null>;\n readonly attachmentReferences: _angular_core.Signal<AttachmentReference[]>;\n readonly uploadValue: _angular_core.Signal<string | EntityAttachmentItemValue | (string | EntityAttachmentItemValue)[] | null>;\n readonly hasAttachments: _angular_core.Signal<boolean>;\n readonly isMultiple: _angular_core.Signal<boolean>;\n readonly acceptTypes: _angular_core.Signal<string | undefined>;\n protected readonly empty = \"-\";\n constructor();\n attachmentTrackBy(index: number, attachment: EntityAttachmentItemValue): string;\n attachmentTooltip(attachment: EntityAttachmentItemValue): string;\n /**\n * Compact chips are clickable downloads but only show a file-type glyph,\n * which doesn't read as actionable. Swap to a download icon while hovered\n * so the action is obvious.\n */\n attachmentActionIcon(index: number, attachment: EntityAttachmentItemValue): MTIcon;\n attachmentIcon(attachment: EntityAttachmentItemValue): MTIcon;\n onCompactAttachmentClick(event: MouseEvent, attachment: EntityAttachmentItemValue): void;\n downloadAttachment(attachment: EntityAttachmentItemValue): void;\n private resolveAttachment$;\n private normalizeAttachmentValue;\n private normalizeAttachmentItem;\n private requiresMetadataRequest;\n private isAttachmentItemValue;\n private resolveExtension;\n private normalizeAcceptTypes;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityAttachment, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityAttachment, \"mt-entity-attachment\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"shape\": { \"alias\": \"shape\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; \"endPoint\": { \"alias\": \"endPoint\"; \"required\": false; \"isSignal\": true; }; \"context\": { \"alias\": \"context\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":3391,"removedExports":[],"renderedExports":["EntityAttachment"],"renderedLength":3015},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-location/entity-location.d.ts":{"code":"declare class EntityLocation {\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly location: _angular_core.Signal<EntityLocationValue | null>;\n readonly displayValue: _angular_core.Signal<string>;\n readonly coordinates: _angular_core.Signal<string>;\n readonly mapsUrl: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLocation, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLocation, \"mt-entity-location\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":825,"removedExports":[],"renderedExports":["EntityLocation"],"renderedLength":675},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-connection/entity-connection.d.ts":{"code":"declare class EntityConnection {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | EntityConnectionValue | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n /** The connection display lives on `rawValue.display`; fall back to `value`. */\n readonly connection: _angular_core.Signal<EntityConnectionValue | null>;\n readonly displayValue: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityConnection, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityConnection, \"mt-entity-connection\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1206,"removedExports":[],"renderedExports":["EntityConnection"],"renderedLength":1054},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-schedule-item/entity-schedule-item.d.ts":{"code":"/**\n * Preview renderer for `ScheduleItemSelector` properties.\n *\n * The value is the array of resolved schedule items returned by runtime\n * rendering (`{ id, name, status, ... }`); each one is shown as a chip.\n */\ndeclare class EntityScheduleItem {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly items: _angular_core.Signal<EntityScheduleItemValue[]>;\n readonly emptyLabel = \"_\";\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityScheduleItem, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityScheduleItem, \"mt-entity-schedule-item\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":929,"removedExports":[],"renderedExports":["EntityScheduleItem"],"renderedLength":805},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.d.ts":{"code":"interface RenderedItem {\n lookupKey: string;\n /** Humanized lookup key for display. */\n lookupLabel: string;\n /** One entity per captured property, rendered by its catalog view type. */\n props: EntityData[];\n}\ndeclare class EntityLookupModuleCheckList {\n readonly data: _angular_core.InputSignal<EntityData>;\n /**\n * Catalog metadata for the captured properties, keyed by property key. The\n * stored value carries keys only — this is what gives each nested prop its\n * label and view type.\n */\n private readonly metaByKey;\n /**\n * Normalizes the stored value into a flat list of checklist entries.\n * Accepts both the rendered view model (`{ items: [...] }`) and the raw\n * stored array (`[{ lookupKey, props }]`); returns `[]` for anything else.\n */\n readonly items: _angular_core.Signal<RenderedItem[]>;\n readonly hasItems: _angular_core.Signal<boolean>;\n readonly emptyLabel: string;\n /**\n * Builds the entity for one captured property. Without catalog metadata the\n * key is all there is to show it with, so it degrades to a humanized label\n * and plain text.\n */\n private toNestedEntity;\n private extractEntries;\n private resolveLookupKey;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLookupModuleCheckList, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLookupModuleCheckList, \"mt-entity-lookup-module-check-list\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1672,"removedExports":[],"renderedExports":["EntityLookupModuleCheckList"],"renderedLength":1562},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-leaf-details/entity-leaf-details.d.ts":{"code":"declare class EntityLeafDetails {\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly leafValue: _angular_core.Signal<LeafDetailsEntityValue | null>;\n /** Label shown below the badges: \"Level Name (total)\" */\n readonly labelWithTotal: _angular_core.Signal<string>;\n readonly labelIcon: _angular_core.Signal<string | null>;\n statusColor(color: string | null): string;\n /**\n * Foreground for the count, chosen against the badge colour instead of always\n * white — a light catalog colour measured 2.59:1 with white on it, the lowest\n * contrast in the product (findings M-04, H-03).\n */\n statusTextColor(color: string | null): string;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLeafDetails, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLeafDetails, \"mt-entity-leaf-details\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1107,"removedExports":[],"renderedExports":["EntityLeafDetails"],"renderedLength":974},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/leaf-details-display.utils.d.ts":{"code":"declare const LEAF_DETAILS_KEY_SEPARATOR = \"::leaflevel::\";\ndeclare function isLeafDetailsValue(value: unknown): value is LeafDetailsEntityValue;\ndeclare function isLeafDetailsCollectionValue(value: unknown): value is LeafDetailsEntityCollectionValue;\ndeclare function isLeafDetailsCatalogConfiguration(value: unknown): value is LeafDetailsCatalogConfiguration;\ndeclare function isLeafDetailsRuntimeValue(value: unknown): value is LeafDetailsRuntimeValue;\ndeclare function isLeafDetailsSyntheticKey(key?: string | null): boolean;\ndeclare function expandLeafDetailsEntity(entity: EntityData): EntityData[];\ndeclare function buildDisplayEntities(entities: EntityData[]): EntityData[];","originalLength":905,"removedExports":[],"renderedExports":["LEAF_DETAILS_KEY_SEPARATOR","isLeafDetailsValue","isLeafDetailsCollectionValue","isLeafDetailsCatalogConfiguration","isLeafDetailsRuntimeValue","isLeafDetailsSyntheticKey","expandLeafDetailsEntity","buildDisplayEntities"],"renderedLength":682},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/currency-display.utils.d.ts":{"code":"/**\n * The largest amount still rendered in full.\n *\n * The reviewer measured exactly where the line falls: `100,000 SAR` fits a card\n * slot, `1,000,000 SAR` does not and loses its currency to the ellipsis. So the\n * comparison below is inclusive — anything ABOVE this compacts, and everything\n * a tenant sees today at or under it is untouched.\n */\ndeclare const CURRENCY_COMPACT_THRESHOLD = 100000;\n/**\n * The numeric amount inside a formatted currency string.\n *\n * Strips the currency token, the grouping separators and the bidirectional\n * marks `Intl` leaves around them, and normalises Arabic-Indic digits so an\n * `ar-SA` payload parses like an `en` one. `null` when there is no number.\n */\ndeclare function parseCurrencyAmount(raw: string | null | undefined): number | null;\n/**\n * Whatever is left of a formatted amount once the number is removed — `SAR`,\n * `ر.س`, `$`. Read from the payload rather than configured, so a tenant's own\n * currency survives untouched.\n */\ndeclare function currencyUnitOf(formatted: string): string;\n/**\n * A large currency amount shortened so it fits a card slot, with the unit kept.\n *\n * A budget of a million or more used to render as `1,000,000 …`: the digits\n * survived the ellipsis and the currency did not, so the largest and most\n * consequential figures in the product were the only ones whose unit could not\n * be read (finding H-06). Compact notation keeps the whole thing inside the\n * slot — `SAR 1M` instead of `1,000,000 SAR` — and callers put the exact figure\n * in a tooltip, which is where a precise number belongs on a summary card.\n *\n * Returns `formatted` unchanged whenever the value already fits, is not a\n * number, or the runtime has no compact notation — so no tenant sees an\n * existing number change shape for no reason.\n */\ndeclare function compactCurrencyDisplay(formatted: string, rawValue: string | null | undefined, locale: string, threshold?: number): string;","originalLength":1967,"removedExports":[],"renderedExports":["CURRENCY_COMPACT_THRESHOLD","parseCurrencyAmount","currencyUnitOf","compactCurrencyDisplay"],"renderedLength":1938},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/percentage-color.utils.d.ts":{"code":"/**\n * Anything that can supply a percentage colour: an ordered rule set plus the\n * fallback used when no rule matches.\n */\ninterface PercentageColorSource {\n colorRules?: PercentageColorRule[] | null;\n defaultColor?: string | null;\n}\n/**\n * Whether `value` falls inside a rule's band. Both bounds are inclusive, an\n * absent bound is open-ended, and a rule carrying neither bound is malformed —\n * it never matches rather than swallowing every value.\n */\ndeclare function matchesPercentageColorRule(value: number, rule?: PercentageColorRule | null): boolean;\n/**\n * The colour for a percentage value: rules in their configured order, first\n * match wins, `defaultColor` when nothing matches.\n *\n * The backend owns this evaluation and ships the winner as `color` on\n * render/value/fetch responses, so callers must prefer that resolved colour.\n * This exists for the surfaces that hold a raw rule set and no resolved colour\n * — the property-form preview, and catalog reads that never went through a\n * value response.\n */\ndeclare function resolvePercentageColor(value: unknown, source?: PercentageColorSource | null): string | null;","originalLength":1217,"removedExports":[],"renderedExports":["PercentageColorSource","matchesPercentageColorRule","resolvePercentageColor"],"renderedLength":1141},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-sections.util.d.ts":{"code":"/**\n * A section is persisted/transported as an ordinary display item whose\n * `propertyKey` carries this sentinel prefix instead of a real property key\n * (mirrors the LeafDetails synthetic-key convention). Both the customization\n * builder and the runtime renderer recognize it, so the constant lives here in\n * the shared entities layer rather than in either consumer.\n */\ndeclare const SECTION_KEY_PREFIX = \"__section__::\";\n/** True when a display item's key denotes a section marker. */\ndeclare function isSectionKey(key?: string | null): boolean;\n/** Mints a unique section marker key. */\ndeclare function buildSectionKey(): string;\n/**\n * Resolves a localized label (`{ en, ar }`) for the given language, falling\n * back across locales. Returns '' when nothing is set.\n */\ndeclare function resolveLocalizedLabel(label: EntitySectionLabel | null | undefined, lang?: string): string;\n/**\n * A run of entities that belong to the same section. `section` is the marker\n * entity (`viewType: 'Section'`) whose title heads the group, or `null` for the\n * leading run of entities that appear before the first marker (rendered bare,\n * with no box — so a card with no markers looks exactly like it did before\n * sections existed).\n */\ninterface EntitySectionGroup {\n section: EntityData | null;\n entities: EntityData[];\n}\n/** True when the entity is a `Section` layout marker rather than a value. */\ndeclare function isEntitySection(entity: EntityData | null | undefined): entity is EntityData;\n/**\n * Splits a flat, order-sorted entity list into section groups. Membership is\n * purely positional: each entity belongs to whichever `Section` marker precedes\n * it. Pass the output of `buildDisplayEntities` (already sorted by `order`).\n *\n * Zero markers → a single `{ section: null }` group holding everything, so the\n * bare-grid rendering is unchanged. Empty leading/trailing runs are dropped.\n */\ndeclare function groupEntitiesIntoSections(entities: EntityData[]): EntitySectionGroup[];\n/**\n * Resolves a section marker's display label for the given language, falling\n * back across locales and finally to the entity's `name`.\n */\ndeclare function getEntitySectionTitle(section: EntityData | null | undefined, lang?: string): string;","originalLength":2368,"removedExports":[],"renderedExports":["SECTION_KEY_PREFIX","isSectionKey","buildSectionKey","resolveLocalizedLabel","EntitySectionGroup","isEntitySection","groupEntitiesIntoSections","getEntitySectionTitle"],"renderedLength":2241},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-preview/entity-preview.d.ts":{"code":"declare class EntityPreview {\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly attachmentShape: _angular_core.InputSignal<\"default\" | \"compact\">;\n readonly comparisonKind: _angular_core.Signal<\"Value\" | \"EntityList\" | null>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, \"mt-entity-preview\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; \"attachmentShape\": { \"alias\": \"attachmentShape\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":714,"removedExports":[],"renderedExports":["EntityPreview"],"renderedLength":615},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entity-preview/entity-preview-body.d.ts":{"code":"declare class EntityPreviewBody {\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly attachmentShape: _angular_core.InputSignal<\"default\" | \"compact\">;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, \"mt-entity-preview-body\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; \"attachmentShape\": { \"alias\": \"attachmentShape\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":639,"removedExports":[],"renderedExports":["EntityPreviewBody"],"renderedLength":550},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/comparison/comparison-value/comparison-value.d.ts":{"code":"declare class ComparisonValue {\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly comparison: _angular_core.Signal<ValueComparison | null>;\n readonly oldEntity: _angular_core.Signal<EntityData | null>;\n readonly newEntity: _angular_core.Signal<EntityData | null>;\n private buildSide;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComparisonValue, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComparisonValue, \"mt-comparison-value\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":773,"removedExports":[],"renderedExports":["ComparisonValue"],"renderedLength":596},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/comparison/comparison-entity-list/comparison-entity-list.d.ts":{"code":"interface OperationBadge {\n label: string;\n classes: string;\n}\ndeclare class ComparisonEntityList {\n private readonly transloco;\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly comparison: _angular_core.Signal<EntityListComparison | null>;\n readonly rows: _angular_core.Signal<EntityListComparisonRow[]>;\n readonly targetModuleKey: _angular_core.Signal<string>;\n readonly label: _angular_core.Signal<string>;\n badgeFor(op: EntityComparisonOperation): OperationBadge;\n displayField(value: unknown, display?: string | null): string;\n rowId(_i: number, row: EntityListComparisonRow): number | string;\n oldField(row: EntityListComparisonRow, propertyKey: string): {\n value: unknown;\n display?: string | null;\n } | undefined;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComparisonEntityList, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComparisonEntityList, \"mt-comparison-entity-list\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}","originalLength":1344,"removedExports":[],"renderedExports":["ComparisonEntityList"],"renderedLength":1089},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entities-preview/entities-preview.d.ts":{"code":"interface EntityClickEvent {\n entity: EntityData;\n key: string;\n source: MouseEvent;\n}\n/**\n * One entity's fully-resolved render inputs.\n *\n * Precomputing these is what keeps large grids cheap. The template used to call\n * `isClickable` / `isActive` / `getColSpan` roughly eight times per entity on\n * *every* change detection pass; in a client-list card grid (60 cards of ~50\n * entities) that was tens of thousands of calls per tick. A slot is now rebuilt\n * only when the entity list, the clickable/active key sets, or the tooltip\n * strings actually change.\n */\ninterface EntitySlot {\n entity: EntityData;\n trackKey: string;\n containerClass: string;\n colSpan: string;\n clickable: boolean;\n rowClickIgnore: 'true' | null;\n title: string | null;\n}\n/** A section box (or the leading bare run) with its slots already resolved. */\ninterface EntitySlotGroup {\n trackKey: string;\n boxed: boolean;\n title: string;\n slots: EntitySlot[];\n}\ndeclare class EntitiesPreview {\n private readonly transloco;\n private readonly elementRef;\n private readonly destroyRef;\n private readonly zone;\n /** Array of entity data to display */\n readonly entities: _angular_core.InputSignal<EntityData[]>;\n readonly attachmentShape: _angular_core.InputSignal<\"default\" | \"compact\">;\n /**\n * Soft \"stack every field full-width when the host is narrower than the\n * 24-column grid reads well\" behavior (the ≤400px container-query fallback,\n * default on). Set to `false` in wide-enough card layouts — e.g. client-list\n * cards (~350px) — so the per-entity `size` configuration is honored instead\n * of forcing every item to full width. A hard ≤280px stack always applies\n * regardless, so the 24-column gap floor can never overflow the host (#1081).\n */\n readonly stackOnNarrow: _angular_core.InputSignal<boolean>;\n /**\n * Set of entity keys that should appear interactive (cursor pointer,\n * clicks emit). Pass `new Set([...])` from a computed signal in the host\n * for reactive enabling — when the host's set changes, Angular re-renders\n * via its normal change detection, no manual subscriptions required.\n *\n * Pass a *stable* reference: a host method that mints a fresh `Set` on every\n * call re-writes this input on every change detection pass and defeats the\n * slot memoization below.\n */\n readonly clickableKeys: _angular_core.InputSignal<ReadonlySet<string>>;\n /**\n * Set of entity keys that should render with the \"active\" treatment\n * (e.g. currently the filter source). Same reactive pattern — and the same\n * stable-reference requirement — as `clickableKeys`.\n */\n readonly activeKeys: _angular_core.InputSignal<ReadonlySet<string>>;\n /** Tooltip text shown on hover when an entity is clickable but not active. */\n readonly clickableTooltip: _angular_core.InputSignal<string>;\n /** Tooltip text shown on hover when an entity is the current active filter. */\n readonly activeTooltip: _angular_core.InputSignal<string>;\n /**\n * Emits when an individual entity slot is clicked. Only fires when the\n * entity's key is present in `clickableKeys`.\n */\n readonly entityClick: _angular_core.OutputEmitterRef<EntityClickEvent>;\n /**\n * The active language as a signal. Section headings are resolved per-language\n * in a `computed`, so under `OnPush` a plain `getActiveLang()` read would\n * freeze them at whatever language was active on first render.\n */\n private readonly activeLang;\n /** Entities expanded and sorted by order */\n readonly displayEntities: _angular_core.Signal<EntityData[]>;\n /**\n * The display entities split into section groups. With no `Section` markers\n * this is a single `{ section: null }` group, so the bare grid renders\n * exactly as before.\n */\n readonly sectionGroups: _angular_core.Signal<_masterteam_components_entities.EntitySectionGroup[]>;\n /**\n * The render model the template iterates. Split from `sectionGroups` on\n * purpose: grouping only re-runs when the entities themselves change, while\n * this cheap mapping re-runs when the key sets or tooltips change.\n */\n protected readonly slotGroups: _angular_core.Signal<EntitySlotGroup[]>;\n /**\n * Whether the host is too narrow for the 24-column grid to stay legible.\n *\n * Measured rather than assumed: this component is narrow because of the\n * column layout it sits in, not because of the viewport, so a media query\n * would answer the wrong question — the same reason the stylesheet uses a\n * container query.\n */\n private readonly hostWidth;\n protected readonly isNarrowHost: _angular_core.Signal<boolean>;\n constructor();\n protected onSlotClick(source: MouseEvent, slot: EntitySlot): void;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntitiesPreview, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesPreview, \"mt-entities-preview\", never, { \"entities\": { \"alias\": \"entities\"; \"required\": true; \"isSignal\": true; }; \"attachmentShape\": { \"alias\": \"attachmentShape\"; \"required\": false; \"isSignal\": true; }; \"stackOnNarrow\": { \"alias\": \"stackOnNarrow\"; \"required\": false; \"isSignal\": true; }; \"clickableKeys\": { \"alias\": \"clickableKeys\"; \"required\": false; \"isSignal\": true; }; \"activeKeys\": { \"alias\": \"activeKeys\"; \"required\": false; \"isSignal\": true; }; \"clickableTooltip\": { \"alias\": \"clickableTooltip\"; \"required\": false; \"isSignal\": true; }; \"activeTooltip\": { \"alias\": \"activeTooltip\"; \"required\": false; \"isSignal\": true; }; }, { \"entityClick\": \"entityClick\"; }, never, never, true, never>;\n}","originalLength":5918,"removedExports":[],"renderedExports":["EntityClickEvent","EntitiesPreview"],"renderedLength":5701},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entities-manage/entities-resize-base.d.ts":{"code":"/**\n * Base class that encapsulates all entity resize-via-drag logic.\n *\n * Extend this directive in any component that needs column-resize behaviour\n * on a 24-column CSS grid. The subclass must:\n * - Provide a `model.required<EntityData[]>()` (or equivalent) for the\n * entity list so `updateEntitySize()` can be called after resize.\n * - Contain a `.grid` element (or override `getGridElement()`).\n *\n * Resize flow:\n * 1. `onResizeStart(event, entity)` — called from a mousedown on the handle\n * 2. mousemove → snaps to nearest column, updates `resizePreviewSize`\n * 3. mouseup → emits `entityResized` with previous & new size\n */\ndeclare abstract class EntitiesResizeBase {\n protected readonly elRef: ElementRef<any>;\n protected readonly zone: NgZone;\n protected readonly doc: Document;\n /** Emits when an entity is resized via the drag handle */\n readonly entityResized: _angular_core.OutputEmitterRef<EntityResizeEvent>;\n /** The entity currently being resized (null when idle) */\n readonly resizingEntity: _angular_core.WritableSignal<EntityData | null>;\n /** Live preview size while dragging */\n readonly resizePreviewSize: _angular_core.WritableSignal<EntitySize | null>;\n /** Bound listeners kept for cleanup */\n private _onMouseMove;\n private _onMouseUp;\n /**\n * Returns the grid element used to compute column widths.\n * Override if the grid selector differs.\n */\n protected getGridElement(): HTMLElement | null;\n /**\n * Returns the grid-column span string for a given entity.\n * While resizing the active entity, returns the preview size.\n */\n getResizeColSpan(entity: EntityData): string;\n /** Starts a resize operation from the right-edge handle */\n onResizeStart(event: MouseEvent, entity: EntityData): void;\n /**\n * Called when a resize operation completes with a changed size.\n * Subclasses should update the entity list and emit events here.\n */\n protected abstract onResizeComplete(entity: EntityData, previousSize: EntitySize, newSize: EntitySize): void;\n /** Removes global mouse listeners */\n private _cleanupListeners;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntitiesResizeBase, never>;\n static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EntitiesResizeBase, never, never, {}, { \"entityResized\": \"entityResized\"; }, never, never, true, never>;\n}","originalLength":2587,"removedExports":[],"renderedExports":["EntitiesResizeBase"],"renderedLength":2405},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-typings/entities/entities-manage/entities-manage.d.ts":{"code":"declare class EntitiesManage extends EntitiesResizeBase {\n /** Array of entity data – supports two-way binding to keep order in sync */\n readonly entities: _angular_core.ModelSignal<EntityData[]>;\n /** Emits the reordered entities array after each drag-drop */\n readonly entitiesReordered: _angular_core.OutputEmitterRef<EntityData[]>;\n /** Emits when an entity cell is clicked (for opening edit drawer) */\n readonly entityClicked: _angular_core.OutputEmitterRef<EntityData>;\n /**\n * Emits when an item dragged from a *different* connected list (e.g. a sidebar\n * \"add section\" tool) is dropped onto this grid. `index` is the target slot;\n * `data` is the dropped `cdkDragData`. The host decides what to insert.\n */\n readonly externalItemDropped: _angular_core.OutputEmitterRef<{\n index: number;\n data: unknown;\n }>;\n /** Entities expanded and sorted by their configured order */\n readonly displayEntities: _angular_core.Signal<EntityData[]>;\n /** Returns the grid-column span for a given entity size (1-24) */\n getColSpan(entity: EntityData): string;\n /** True when the entity is a full-width `Section` layout marker. */\n isSection(entity: EntityData): boolean;\n /** Handle drag-drop reorder */\n onDrop(event: CdkDragDrop<EntityData[]>): void;\n protected onResizeComplete(entity: EntityData, previousSize: EntitySize, newSize: EntitySize): void;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntitiesManage, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesManage, \"mt-entities-manage\", never, { \"entities\": { \"alias\": \"entities\"; \"required\": true; \"isSignal\": true; }; }, { \"entities\": \"entitiesChange\"; \"entitiesReordered\": \"entitiesReordered\"; \"entityClicked\": \"entityClicked\"; \"externalItemDropped\": \"externalItemDropped\"; }, never, never, true, never>;\n}","originalLength":2117,"removedExports":[],"renderedExports":["EntitiesManage"],"renderedLength":1871},"C:\\Users\\ABDULLAH WISHAH\\Documents\\GitHub\\components\\dist\\masterteam\\components\\tmp-typings\\entities\\masterteam-components-entities.d.ts":{"code":null,"originalLength":136,"removedExports":[],"renderedExports":[],"renderedLength":0}},"referencedFiles":[],"code":"import * as _masterteam_components_entities from '@masterteam/components/entities';\nimport * as _angular_core from '@angular/core';\nimport { ElementRef, NgZone } from '@angular/core';\nimport { MTDateFormatType } from '@masterteam/components';\nimport { HttpContext } from '@angular/common/http';\nimport { MTIcon } from '@masterteam/icons';\nimport { CdkDragDrop } from '@angular/cdk/drag-drop';\n\ninterface ComparisonValueSide {\n raw: unknown;\n value: unknown;\n display?: string | null;\n}\ninterface ValueComparison {\n kind: 'Value';\n oldValue: ComparisonValueSide;\n newValue: ComparisonValueSide;\n}\ninterface EntityComparisonField {\n propertyKey: string;\n label: string;\n value: unknown;\n display?: string | null;\n}\ntype EntityComparisonOperation = 'CreateRecord' | 'UpdateRecord' | 'DeleteRecord';\ninterface EntityListComparisonRow {\n kind: 'ModuleRecord';\n operation: EntityComparisonOperation;\n entityId: number;\n oldValues: EntityComparisonField[];\n newValues: EntityComparisonField[];\n}\ninterface EntityListComparison {\n kind: 'EntityList';\n targetModuleKey: string;\n rows: EntityListComparisonRow[];\n}\ntype PropertyValueComparison = ValueComparison | EntityListComparison;\n\ntype EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime'\n/**\n * Time-of-day. The value on the wire is still a full ISO instant (the\n * backend stores and returns the same shape as `DateTime`); only the\n * rendering and the picker are narrowed to the clock time.\n */\n | 'Time' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'MultiUser' | 'Lookup' | 'LookupMultiSelect'\n/**\n * Calculated, read-only lookup resolved by the backend to the schema phase\n * gate the record currently sits on. Never editable at runtime.\n */\n | 'PhaseGate' | 'Attachment' | 'Location' | 'LookupMatrix' | 'LookupModuleCheckList' | 'LeafDetails' | 'Connection' | 'ScheduleItemSelector'\n/**\n * Layout marker, not a value. Rendered full-width and non-resizable; the\n * preview layer (`groupEntitiesIntoSections`) turns each marker into a titled\n * section box that owns every entity following it until the next marker.\n */\n | 'Section';\ntype EntityLabelPosition = 'top' | 'bottom';\n/** Entity size – controls column span (1-24) inside a 24-column grid */\ntype EntitySize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;\ninterface EntityBaseConfig {\n /** Column span of the entity card (1-24). Default: 8 */\n size?: EntitySize;\n /** Whether to show a dashed border around the entity card */\n showBorder?: boolean;\n /** Whether to hide the entity name label. Prefer hideLabel for new config. */\n hideName?: boolean;\n /** Whether to hide the entity label */\n hideLabel?: boolean;\n /** Controls whether the label is rendered above or below the value */\n labelPosition?: EntityLabelPosition;\n /** Legacy misspelled alias kept for compatibility */\n labelPostion?: EntityLabelPosition;\n /** Whether the entity content is aligned to the end (right in LTR) */\n alignEnd?: boolean;\n /**\n * Custom localized label override. When present it replaces the catalog\n * label; it also serves as the heading for `Section` markers.\n */\n label?: EntitySectionLabel;\n}\ninterface EntityUserConfig extends EntityBaseConfig {\n showDisplayName?: boolean;\n showPhoneNumber?: boolean;\n showEmail?: boolean;\n /**\n * Whether the user's own picture is rendered. When `false` the avatar stays\n * in place but falls back to the generic user icon instead of `photoUrl`.\n */\n showUserImage?: boolean;\n /** Maximum users shown before the MultiUser preview collapses behind +N. */\n maxVisibleUsers?: number;\n}\n/**\n * One Progress/Percentage color rule. Bounds are inclusive and at least one of\n * `minValue`/`maxValue` must be present — a rule with neither matches nothing.\n */\ninterface PercentageColorRule {\n minValue?: number | null;\n maxValue?: number | null;\n color: string;\n}\ninterface EntityPercentageConfig extends EntityBaseConfig {\n /**\n * The colour to paint the bar with. The backend resolves the rules and ships\n * the winner here on render/value/fetch responses, so this always wins over\n * a client-side evaluation of `colorRules`.\n */\n color?: string;\n /** Ordered rules — evaluated in order, first match wins. */\n colorRules?: PercentageColorRule[] | null;\n /** Fallback colour applied when no rule matches. */\n defaultColor?: string | null;\n}\ninterface LeafLevelSavedConfig {\n /** Position order for this level entity in the preview grid */\n order: number;\n /** Column span (1-24), persisted from drag-resize */\n size?: EntitySize;\n /** Status keys the user has chosen to display */\n selectedStatuses: string[];\n}\ninterface EntityLeafDetailsConfig extends EntityBaseConfig {\n /** Per-level display overrides for LeafDetails entities */\n leafLevels?: Record<string, LeafLevelSavedConfig>;\n}\n/** A localized label ({ en, ar }) — used by section headings and custom labels. */\ninterface EntitySectionLabel {\n en?: string;\n ar?: string;\n}\n/** Configuration for a `Section` layout marker (`viewType: 'Section'`). */\ninterface EntitySectionConfig extends EntityBaseConfig {\n /** Section heading, localized. Empty/absent renders a header-less box. */\n label?: EntitySectionLabel;\n}\ntype EntityConfiguration = EntityBaseConfig | EntityUserConfig | EntityPercentageConfig | EntityLeafDetailsConfig | EntitySectionConfig;\ninterface EntityStatusValue {\n key: string;\n display: string;\n color: string;\n description?: string;\n}\ninterface EntityLookupValue {\n key: string;\n display: string;\n color: string;\n description?: string;\n}\ntype EntityMultiLookupValue = EntityLookupValue[];\n/**\n * A `PhaseGate` value — the schema phase gate the record currently sits on.\n *\n * Calculated and read-only: the backend owns it, nothing in the runtime writes\n * it back. `key` is the stable phase-gate key; the schema phase-gate *id* rides\n * on the owning entity's `rawValue`, not here. `display` is resolved for the\n * request language, and `en`/`ar` carry the explicit per-language labels so the\n * renderer can follow a client-side language switch without a refetch.\n */\ninterface EntityPhaseGateValue {\n key: string;\n display: string;\n en?: string;\n ar?: string;\n description?: string;\n /**\n * Optional presentation metadata (hex). Absent → the renderer's\n * `DEFAULT_PHASE_GATE_COLOR` neutral badge.\n */\n color?: string;\n}\ninterface EntityUserValue {\n id?: string;\n userName?: string;\n name?: string;\n displayName?: string;\n photoUrl?: string;\n phoneNumber?: string;\n email?: string;\n /**\n * `false` when the user is no longer linked to the current application\n * (e.g. removed/deleted) but is still referenced by historical records.\n */\n isLinkedToCurrentApplication?: boolean;\n}\ntype EntityMultiUserValue = EntityUserValue[];\ninterface LeafDetailsStatusSummary {\n key: string;\n display: string;\n color: string | null;\n /** Always 0 in preview/configuration context; populated from runtime fetch */\n count: number;\n}\ninterface LeafDetailsCatalogStatusValue {\n key: string;\n display: string;\n description?: string | null;\n color: string | null;\n icon?: string | null;\n order?: number;\n}\ninterface LeafDetailsCatalogLevelValue {\n levelId: number;\n levelName: string;\n levelIcon: string;\n statuses: LeafDetailsCatalogStatusValue[];\n}\ninterface LeafDetailsEntityValue {\n levelId: number;\n levelName: string;\n levelIcon: string;\n statuses: LeafDetailsStatusSummary[];\n}\ntype LeafDetailsEntityCollectionValue = LeafDetailsEntityValue[];\ntype LeafDetailsCatalogConfiguration = LeafDetailsCatalogLevelValue[];\ntype EntityPropertyConfiguration = Record<string, unknown> | LeafDetailsCatalogConfiguration | null;\ninterface LeafDetailsRuntimeStatusDetails {\n key: string;\n display: string;\n color: string | null;\n description?: string | null;\n icon?: string | null;\n order?: number;\n}\ninterface LeafDetailsRuntimeStatusCount {\n details: LeafDetailsRuntimeStatusDetails;\n count: number;\n}\ninterface LeafDetailsRuntimeChildSchema {\n levelId: number;\n levelName: string;\n levelIcon: string;\n totalCount?: number;\n statuses: LeafDetailsRuntimeStatusCount[];\n}\ninterface LeafDetailsRuntimeValue {\n totalCount?: number;\n childSchemas: LeafDetailsRuntimeChildSchema[];\n}\ninterface EntityAttachmentItemValue {\n id?: string;\n name?: string;\n fileName?: string;\n contentType?: string;\n extension?: string;\n size?: number;\n}\ntype EntityAttachmentValue = Array<EntityAttachmentItemValue | string>;\ninterface EntityLocationValue {\n display_name?: string;\n address?: string;\n lat?: string | number;\n lon?: string | number;\n lng?: string | number;\n [key: string]: unknown;\n}\ninterface EntityConnectionValue {\n /** Human-readable label of the connected record (read from `rawValue.display`). */\n display?: string;\n [key: string]: unknown;\n}\n/** A single property key/value captured for a checklist entry. */\ninterface EntityLookupCheckListPropValue {\n key: string;\n /**\n * Rendered value resolved by the backend, in the same shape a top-level\n * property of the same `viewType` carries. Paired with the matching\n * `EntityNestedPropertyMeta` to render it as a real typed entity.\n */\n value: unknown;\n}\n/** One checklist entry: a selected lookup item plus its captured property values. */\ninterface EntityLookupCheckListItem {\n lookupKey: string;\n props: EntityLookupCheckListPropValue[];\n}\n/**\n * Rendered view model for a `LookupModuleCheckList` value.\n * The backend renderer wraps the checklist entries in `{ items: [...] }`.\n */\ninterface EntityLookupCheckListValue {\n items: EntityLookupCheckListItem[];\n}\ninterface EntityScheduleItemValue {\n id: number;\n name: string;\n levelDataId?: number;\n parentId?: number | null;\n status?: string | null;\n plannedStart?: string | null;\n plannedFinish?: string | null;\n moduleKey?: string;\n itemType?: string;\n}\n/**\n * Catalog metadata for a property nested inside another property's value.\n * Mirrors the top-level catalog property shape, which the backend sends under\n * `catalog.nestedProperties` keyed by the owning property key. Only\n * `LookupModuleCheckList` values carry nested properties today.\n */\ninterface EntityNestedPropertyMeta {\n id?: number;\n key: string;\n normalizedKey?: string;\n label: string;\n viewType: EntityViewType;\n configuration?: EntityPropertyConfiguration;\n order?: number;\n}\ninterface EntityData {\n id?: number;\n propertyId?: number;\n key?: string;\n normalizedKey?: string;\n name?: string;\n rawValue?: string;\n order?: number;\n propertyConfiguration?: EntityPropertyConfiguration;\n /**\n * Catalog metadata for the properties captured inside `value`. The stored\n * checklist value only carries property keys, so without this the nested\n * props have no label and no view type to render with.\n */\n nestedProperties?: EntityNestedPropertyMeta[];\n value: string | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityMultiLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;\n viewType: EntityViewType;\n type?: string;\n configuration?: EntityConfiguration;\n /** Present on submitted ChangeRequest records — frozen old→new snapshot. */\n comparison?: PropertyValueComparison;\n}\n/** Emitted when an entity is resized via the drag handle */\ninterface EntityResizeEvent {\n entity: EntityData;\n previousSize: EntitySize;\n newSize: EntitySize;\n}\n\ntype EntityFieldGap = 'compact' | 'normal' | 'relaxed';\ndeclare class EntityField {\n readonly label: _angular_core.InputSignal<string>;\n readonly labelIconName: _angular_core.InputSignal<string | null>;\n readonly configuration: _angular_core.InputSignal<EntityConfiguration | null | undefined>;\n readonly gap: _angular_core.InputSignal<EntityFieldGap>;\n readonly hideLabel: _angular_core.Signal<boolean>;\n readonly labelPosition: _angular_core.Signal<_masterteam_components_entities.EntityLabelPosition>;\n readonly labelContainerClass: _angular_core.Signal<string>;\n readonly contentContainerClass: _angular_core.Signal<string>;\n readonly containerClass: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityField, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityField, \"mt-entity-field\", never, { \"label\": { \"alias\": \"label\"; \"required\": false; \"isSignal\": true; }; \"labelIconName\": { \"alias\": \"labelIconName\"; \"required\": false; \"isSignal\": true; }; \"configuration\": { \"alias\": \"configuration\"; \"required\": false; \"isSignal\": true; }; \"gap\": { \"alias\": \"gap\"; \"required\": false; \"isSignal\": true; }; }, {}, never, [\"*\"], true, never>;\n}\n\ndeclare class EntityText {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly displayValue: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityText, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityText, \"mt-entity-text\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityDate {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<unknown>;\n readonly viewType: _angular_core.InputSignal<\"Date\" | \"DateTime\" | \"Time\">;\n readonly displayName: _angular_core.Signal<string>;\n /**\n * `Time` carries a wall-clock value (`HH:mm:ss`) with no date and no zone, so\n * `mtDateFormat` renders it as stored instead of shifting it into the\n * viewer's timezone the way its `DateTime` sibling is shifted.\n */\n readonly resolvedViewType: _angular_core.Signal<MTDateFormatType>;\n readonly displayValue: _angular_core.Signal<unknown>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityDate, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityDate, \"mt-entity-date\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; \"viewType\": { \"alias\": \"viewType\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityStatus {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<EntityStatusValue | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly statusValue: _angular_core.Signal<EntityStatusValue | null>;\n readonly badgeStyle: _angular_core.Signal<{\n color?: undefined;\n backgroundColor?: undefined;\n } | {\n color: string;\n backgroundColor: string;\n }>;\n readonly emptyLabel = \"_\";\n readonly statusLabel: _angular_core.Signal<string>;\n private hexToRgba;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityStatus, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityStatus, \"mt-entity-status\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityUser {\n readonly httpContext: HttpContext;\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n readonly expanded: _angular_core.WritableSignal<boolean>;\n readonly displayName: _angular_core.Signal<string>;\n readonly isMultiUser: _angular_core.Signal<boolean>;\n /** Resolved user objects from either a User or MultiUser entity value. */\n readonly users: _angular_core.Signal<EntityUserValue[]>;\n readonly maxVisibleUsers: _angular_core.Signal<number>;\n readonly visibleUsers: _angular_core.Signal<EntityUserValue[]>;\n readonly hiddenUserCount: _angular_core.Signal<number>;\n /** First user retained for the existing single-user computed API. */\n private readonly userValue;\n userNameFor(user: EntityUserValue): string;\n userPhotoFor(user: EntityUserValue): string;\n labelTextFor(user: EntityUserValue): string;\n isUnlinkedUser(user: EntityUserValue): boolean;\n phoneNumberFor(user: EntityUserValue): string;\n emailFor(user: EntityUserValue): string;\n hasContactInfoFor(user: EntityUserValue): boolean;\n readonly emptyUserName: _angular_core.Signal<string>;\n readonly rawUserName: _angular_core.Signal<string | null>;\n readonly userName: _angular_core.Signal<string>;\n readonly userPhoto: _angular_core.Signal<string>;\n readonly labelText: _angular_core.Signal<string>;\n /**\n * `true` when the referenced user is no longer linked to the application.\n * Drives the inline info badge/tooltip next to the display name.\n */\n readonly isUnlinked: _angular_core.Signal<string | false | undefined>;\n private readonly config;\n readonly showDisplayName: _angular_core.Signal<boolean>;\n readonly showPhoneNumber: _angular_core.Signal<boolean>;\n readonly showEmail: _angular_core.Signal<boolean>;\n /**\n * When off, the avatar falls back to the generic user icon so the layout keeps\n * its shape while the user's real picture stays hidden.\n */\n readonly showUserImage: _angular_core.Signal<boolean>;\n readonly phoneNumber: _angular_core.Signal<string>;\n readonly email: _angular_core.Signal<string>;\n readonly hasContactInfo: _angular_core.Signal<boolean>;\n constructor();\n showAllUsers(): void;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityUser, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityUser, \"mt-entity-user\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityPercentage {\n private readonly transloco;\n /** Active locale, so number formatting follows the UI language. */\n private readonly locale;\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly rawValue: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly displayValue: _angular_core.Signal<string>;\n private readonly rawNumericValue;\n readonly hasNumericValue: _angular_core.Signal<boolean>;\n readonly numericValue: _angular_core.Signal<number>;\n readonly maxValue: _angular_core.Signal<number>;\n readonly hideName: _angular_core.Signal<boolean>;\n /**\n * The bar colour. The backend evaluates the property's colour rules and\n * returns the winner as `color` on render/value/fetch responses, so a\n * resolved colour always wins — the rules are only evaluated here for\n * configurations that arrive without one (a catalog read, or the\n * property-form preview).\n */\n readonly progressColor: _angular_core.Signal<string>;\n /**\n * Renders a percentage for the active locale.\n *\n * This used to echo the backend's string and only append `%` when that string\n * already carried one — so in Arabic, where the API returns a bare `\"25\"`,\n * the symbol vanished and a progress value rendered as an unlabelled `25`.\n * Next to a bar that could be a percentage, a count or a score (finding\n * H-08).\n *\n * Formatting from the NUMBER through `Intl.NumberFormat` makes the symbol,\n * the decimal separator and the digit shapes follow the locale instead of the\n * payload. `maximumFractionDigits: 1` preserves the precision the old code\n * kept; `style: 'percent'` expects a fraction, hence the /100.\n *\n * Non-numeric values pass through untouched — a status string or an em dash\n * must not be mangled into `NaN%`.\n */\n private formatPercentageDisplay;\n private parseNumericValue;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPercentage, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPercentage, \"mt-entity-percentage\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; \"rawValue\": { \"alias\": \"rawValue\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityCurrency {\n private readonly transloco;\n /** Active locale, so number formatting follows the UI language. */\n private readonly locale;\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n /** The backend's fully grouped string — always the tooltip, never truncated. */\n readonly fullValue: _angular_core.Signal<string>;\n /**\n * What the cell renders: the backend's string, or a compact form of it when\n * the amount is large enough that the currency token would be truncated away.\n * See {@link compactCurrencyDisplay} (finding H-06).\n */\n readonly displayValue: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityCurrency, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityCurrency, \"mt-entity-currency\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityCheckbox {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly rawValue: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly emptyLabel = \"_\";\n readonly hideName: _angular_core.Signal<boolean>;\n readonly checkboxState: _angular_core.Signal<boolean | null>;\n private parseBoolean;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityCheckbox, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityCheckbox, \"mt-entity-checkbox\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; \"rawValue\": { \"alias\": \"rawValue\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityLongText {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly displayValue: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLongText, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLongText, \"mt-entity-long-text\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityLookup {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<EntityLookupValue | EntityMultiLookupValue | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly lookupValues: _angular_core.Signal<EntityMultiLookupValue>;\n lookupBadgeStyle(lookup: EntityLookupValue): Record<string, string>;\n readonly emptyLabel = \"_\";\n lookupLabel(lookup: EntityLookupValue): string;\n private hexToRgba;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLookup, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLookup, \"mt-entity-lookup\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\n/**\n * Badge color used when the phase gate carries no `color`. `color` is optional\n * presentation metadata, so a phase gate without one must still read as a\n * badge rather than as bare text — this is the same neutral slate the table\n * falls back to for uncategorized status chips.\n */\ndeclare const DEFAULT_PHASE_GATE_COLOR = \"#475569\";\n/**\n * Preview renderer for `PhaseGate` properties — a calculated, read-only lookup\n * pointing at the schema phase gate the record currently sits on. It renders\n * exactly like {@link EntityLookup} (colored badge) but resolves its label\n * per-language.\n *\n * Label resolution, in order:\n * 1. `value.ar` / `value.en` for the active language — the backend sends both\n * so a client-side language switch re-renders without a refetch, which is\n * why they win over the already-resolved `display`.\n * 2. `value.display`, then the other locale.\n * 3. The flat display, for payloads that send the value as a bare string\n * (comparison snapshots build their sides that way).\n * 4. `rawValue` — the schema phase-gate id — as a last resort.\n */\ndeclare class EntityPhaseGate {\n private readonly transloco;\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<EntityPhaseGateValue | undefined>;\n private readonly activeLang;\n readonly displayName: _angular_core.Signal<string>;\n readonly phaseGateValue: _angular_core.Signal<EntityPhaseGateValue | null>;\n /** Resolved label, or `null` when nothing at all is available. */\n private readonly resolvedLabel;\n readonly hasValue: _angular_core.Signal<boolean>;\n readonly phaseGateLabel: _angular_core.Signal<string>;\n readonly badgeStyle: _angular_core.Signal<{\n color: string;\n backgroundColor?: undefined;\n } | {\n color: string;\n backgroundColor: string;\n }>;\n readonly emptyLabel = \"_\";\n /** The value flattened to a plain display string by the sender. */\n private flatDisplay;\n /** The schema phase-gate id. */\n private rawId;\n private hexToRgba;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPhaseGate, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPhaseGate, \"mt-entity-phase-gate\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ntype AttachmentReference = EntityAttachmentItemValue | string;\ndeclare class EntityAttachment {\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly shape: _angular_core.InputSignal<\"default\" | \"compact\">;\n readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;\n readonly endPoint: _angular_core.InputSignal<string>;\n readonly context: _angular_core.InputSignal<HttpContext | undefined>;\n private readonly httpClient;\n private readonly transloco;\n readonly displayName: _angular_core.Signal<string>;\n readonly loading: _angular_core.WritableSignal<boolean>;\n readonly attachments: _angular_core.WritableSignal<EntityAttachmentItemValue[]>;\n /** Key of the compact chip currently hovered, so it can reveal the download affordance. */\n readonly hoveredAttachmentKey: _angular_core.WritableSignal<string | null>;\n readonly attachmentReferences: _angular_core.Signal<AttachmentReference[]>;\n readonly uploadValue: _angular_core.Signal<string | EntityAttachmentItemValue | (string | EntityAttachmentItemValue)[] | null>;\n readonly hasAttachments: _angular_core.Signal<boolean>;\n readonly isMultiple: _angular_core.Signal<boolean>;\n readonly acceptTypes: _angular_core.Signal<string | undefined>;\n protected readonly empty = \"-\";\n constructor();\n attachmentTrackBy(index: number, attachment: EntityAttachmentItemValue): string;\n attachmentTooltip(attachment: EntityAttachmentItemValue): string;\n /**\n * Compact chips are clickable downloads but only show a file-type glyph,\n * which doesn't read as actionable. Swap to a download icon while hovered\n * so the action is obvious.\n */\n attachmentActionIcon(index: number, attachment: EntityAttachmentItemValue): MTIcon;\n attachmentIcon(attachment: EntityAttachmentItemValue): MTIcon;\n onCompactAttachmentClick(event: MouseEvent, attachment: EntityAttachmentItemValue): void;\n downloadAttachment(attachment: EntityAttachmentItemValue): void;\n private resolveAttachment$;\n private normalizeAttachmentValue;\n private normalizeAttachmentItem;\n private requiresMetadataRequest;\n private isAttachmentItemValue;\n private resolveExtension;\n private normalizeAcceptTypes;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityAttachment, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityAttachment, \"mt-entity-attachment\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"shape\": { \"alias\": \"shape\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; \"endPoint\": { \"alias\": \"endPoint\"; \"required\": false; \"isSignal\": true; }; \"context\": { \"alias\": \"context\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityLocation {\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly location: _angular_core.Signal<EntityLocationValue | null>;\n readonly displayValue: _angular_core.Signal<string>;\n readonly coordinates: _angular_core.Signal<string>;\n readonly mapsUrl: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLocation, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLocation, \"mt-entity-location\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityConnection {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n /** Individual inputs (used when data is not provided) */\n readonly name: _angular_core.InputSignal<string | undefined>;\n readonly value: _angular_core.InputSignal<string | EntityConnectionValue | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n /** The connection display lives on `rawValue.display`; fall back to `value`. */\n readonly connection: _angular_core.Signal<EntityConnectionValue | null>;\n readonly displayValue: _angular_core.Signal<string>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityConnection, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityConnection, \"mt-entity-connection\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; \"name\": { \"alias\": \"name\"; \"required\": false; \"isSignal\": true; }; \"value\": { \"alias\": \"value\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\n/**\n * Preview renderer for `ScheduleItemSelector` properties.\n *\n * The value is the array of resolved schedule items returned by runtime\n * rendering (`{ id, name, status, ... }`); each one is shown as a chip.\n */\ndeclare class EntityScheduleItem {\n /** Full entity data object */\n readonly data: _angular_core.InputSignal<EntityData | undefined>;\n readonly displayName: _angular_core.Signal<string>;\n readonly items: _angular_core.Signal<EntityScheduleItemValue[]>;\n readonly emptyLabel = \"_\";\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityScheduleItem, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityScheduleItem, \"mt-entity-schedule-item\", never, { \"data\": { \"alias\": \"data\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ninterface RenderedItem {\n lookupKey: string;\n /** Humanized lookup key for display. */\n lookupLabel: string;\n /** One entity per captured property, rendered by its catalog view type. */\n props: EntityData[];\n}\ndeclare class EntityLookupModuleCheckList {\n readonly data: _angular_core.InputSignal<EntityData>;\n /**\n * Catalog metadata for the captured properties, keyed by property key. The\n * stored value carries keys only — this is what gives each nested prop its\n * label and view type.\n */\n private readonly metaByKey;\n /**\n * Normalizes the stored value into a flat list of checklist entries.\n * Accepts both the rendered view model (`{ items: [...] }`) and the raw\n * stored array (`[{ lookupKey, props }]`); returns `[]` for anything else.\n */\n readonly items: _angular_core.Signal<RenderedItem[]>;\n readonly hasItems: _angular_core.Signal<boolean>;\n readonly emptyLabel: string;\n /**\n * Builds the entity for one captured property. Without catalog metadata the\n * key is all there is to show it with, so it degrades to a humanized label\n * and plain text.\n */\n private toNestedEntity;\n private extractEntries;\n private resolveLookupKey;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLookupModuleCheckList, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLookupModuleCheckList, \"mt-entity-lookup-module-check-list\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityLeafDetails {\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly leafValue: _angular_core.Signal<LeafDetailsEntityValue | null>;\n /** Label shown below the badges: \"Level Name (total)\" */\n readonly labelWithTotal: _angular_core.Signal<string>;\n readonly labelIcon: _angular_core.Signal<string | null>;\n statusColor(color: string | null): string;\n /**\n * Foreground for the count, chosen against the badge colour instead of always\n * white — a light catalog colour measured 2.59:1 with white on it, the lowest\n * contrast in the product (findings M-04, H-03).\n */\n statusTextColor(color: string | null): string;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLeafDetails, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLeafDetails, \"mt-entity-leaf-details\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare const LEAF_DETAILS_KEY_SEPARATOR = \"::leaflevel::\";\ndeclare function isLeafDetailsValue(value: unknown): value is LeafDetailsEntityValue;\ndeclare function isLeafDetailsCollectionValue(value: unknown): value is LeafDetailsEntityCollectionValue;\ndeclare function isLeafDetailsCatalogConfiguration(value: unknown): value is LeafDetailsCatalogConfiguration;\ndeclare function isLeafDetailsRuntimeValue(value: unknown): value is LeafDetailsRuntimeValue;\ndeclare function isLeafDetailsSyntheticKey(key?: string | null): boolean;\ndeclare function expandLeafDetailsEntity(entity: EntityData): EntityData[];\ndeclare function buildDisplayEntities(entities: EntityData[]): EntityData[];\n\n/**\n * The largest amount still rendered in full.\n *\n * The reviewer measured exactly where the line falls: `100,000 SAR` fits a card\n * slot, `1,000,000 SAR` does not and loses its currency to the ellipsis. So the\n * comparison below is inclusive — anything ABOVE this compacts, and everything\n * a tenant sees today at or under it is untouched.\n */\ndeclare const CURRENCY_COMPACT_THRESHOLD = 100000;\n/**\n * The numeric amount inside a formatted currency string.\n *\n * Strips the currency token, the grouping separators and the bidirectional\n * marks `Intl` leaves around them, and normalises Arabic-Indic digits so an\n * `ar-SA` payload parses like an `en` one. `null` when there is no number.\n */\ndeclare function parseCurrencyAmount(raw: string | null | undefined): number | null;\n/**\n * Whatever is left of a formatted amount once the number is removed — `SAR`,\n * `ر.س`, `$`. Read from the payload rather than configured, so a tenant's own\n * currency survives untouched.\n */\ndeclare function currencyUnitOf(formatted: string): string;\n/**\n * A large currency amount shortened so it fits a card slot, with the unit kept.\n *\n * A budget of a million or more used to render as `1,000,000 …`: the digits\n * survived the ellipsis and the currency did not, so the largest and most\n * consequential figures in the product were the only ones whose unit could not\n * be read (finding H-06). Compact notation keeps the whole thing inside the\n * slot — `SAR 1M` instead of `1,000,000 SAR` — and callers put the exact figure\n * in a tooltip, which is where a precise number belongs on a summary card.\n *\n * Returns `formatted` unchanged whenever the value already fits, is not a\n * number, or the runtime has no compact notation — so no tenant sees an\n * existing number change shape for no reason.\n */\ndeclare function compactCurrencyDisplay(formatted: string, rawValue: string | null | undefined, locale: string, threshold?: number): string;\n\n/**\n * Anything that can supply a percentage colour: an ordered rule set plus the\n * fallback used when no rule matches.\n */\ninterface PercentageColorSource {\n colorRules?: PercentageColorRule[] | null;\n defaultColor?: string | null;\n}\n/**\n * Whether `value` falls inside a rule's band. Both bounds are inclusive, an\n * absent bound is open-ended, and a rule carrying neither bound is malformed —\n * it never matches rather than swallowing every value.\n */\ndeclare function matchesPercentageColorRule(value: number, rule?: PercentageColorRule | null): boolean;\n/**\n * The colour for a percentage value: rules in their configured order, first\n * match wins, `defaultColor` when nothing matches.\n *\n * The backend owns this evaluation and ships the winner as `color` on\n * render/value/fetch responses, so callers must prefer that resolved colour.\n * This exists for the surfaces that hold a raw rule set and no resolved colour\n * — the property-form preview, and catalog reads that never went through a\n * value response.\n */\ndeclare function resolvePercentageColor(value: unknown, source?: PercentageColorSource | null): string | null;\n\n/**\n * A section is persisted/transported as an ordinary display item whose\n * `propertyKey` carries this sentinel prefix instead of a real property key\n * (mirrors the LeafDetails synthetic-key convention). Both the customization\n * builder and the runtime renderer recognize it, so the constant lives here in\n * the shared entities layer rather than in either consumer.\n */\ndeclare const SECTION_KEY_PREFIX = \"__section__::\";\n/** True when a display item's key denotes a section marker. */\ndeclare function isSectionKey(key?: string | null): boolean;\n/** Mints a unique section marker key. */\ndeclare function buildSectionKey(): string;\n/**\n * Resolves a localized label (`{ en, ar }`) for the given language, falling\n * back across locales. Returns '' when nothing is set.\n */\ndeclare function resolveLocalizedLabel(label: EntitySectionLabel | null | undefined, lang?: string): string;\n/**\n * A run of entities that belong to the same section. `section` is the marker\n * entity (`viewType: 'Section'`) whose title heads the group, or `null` for the\n * leading run of entities that appear before the first marker (rendered bare,\n * with no box — so a card with no markers looks exactly like it did before\n * sections existed).\n */\ninterface EntitySectionGroup {\n section: EntityData | null;\n entities: EntityData[];\n}\n/** True when the entity is a `Section` layout marker rather than a value. */\ndeclare function isEntitySection(entity: EntityData | null | undefined): entity is EntityData;\n/**\n * Splits a flat, order-sorted entity list into section groups. Membership is\n * purely positional: each entity belongs to whichever `Section` marker precedes\n * it. Pass the output of `buildDisplayEntities` (already sorted by `order`).\n *\n * Zero markers → a single `{ section: null }` group holding everything, so the\n * bare-grid rendering is unchanged. Empty leading/trailing runs are dropped.\n */\ndeclare function groupEntitiesIntoSections(entities: EntityData[]): EntitySectionGroup[];\n/**\n * Resolves a section marker's display label for the given language, falling\n * back across locales and finally to the entity's `name`.\n */\ndeclare function getEntitySectionTitle(section: EntityData | null | undefined, lang?: string): string;\n\ndeclare class EntityPreview {\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly attachmentShape: _angular_core.InputSignal<\"default\" | \"compact\">;\n readonly comparisonKind: _angular_core.Signal<\"Value\" | \"EntityList\" | null>;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, \"mt-entity-preview\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; \"attachmentShape\": { \"alias\": \"attachmentShape\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class EntityPreviewBody {\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly attachmentShape: _angular_core.InputSignal<\"default\" | \"compact\">;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, \"mt-entity-preview-body\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; \"attachmentShape\": { \"alias\": \"attachmentShape\"; \"required\": false; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ndeclare class ComparisonValue {\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly comparison: _angular_core.Signal<ValueComparison | null>;\n readonly oldEntity: _angular_core.Signal<EntityData | null>;\n readonly newEntity: _angular_core.Signal<EntityData | null>;\n private buildSide;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComparisonValue, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComparisonValue, \"mt-comparison-value\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ninterface OperationBadge {\n label: string;\n classes: string;\n}\ndeclare class ComparisonEntityList {\n private readonly transloco;\n readonly data: _angular_core.InputSignal<EntityData>;\n readonly comparison: _angular_core.Signal<EntityListComparison | null>;\n readonly rows: _angular_core.Signal<EntityListComparisonRow[]>;\n readonly targetModuleKey: _angular_core.Signal<string>;\n readonly label: _angular_core.Signal<string>;\n badgeFor(op: EntityComparisonOperation): OperationBadge;\n displayField(value: unknown, display?: string | null): string;\n rowId(_i: number, row: EntityListComparisonRow): number | string;\n oldField(row: EntityListComparisonRow, propertyKey: string): {\n value: unknown;\n display?: string | null;\n } | undefined;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComparisonEntityList, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComparisonEntityList, \"mt-comparison-entity-list\", never, { \"data\": { \"alias\": \"data\"; \"required\": true; \"isSignal\": true; }; }, {}, never, never, true, never>;\n}\n\ninterface EntityClickEvent {\n entity: EntityData;\n key: string;\n source: MouseEvent;\n}\n/**\n * One entity's fully-resolved render inputs.\n *\n * Precomputing these is what keeps large grids cheap. The template used to call\n * `isClickable` / `isActive` / `getColSpan` roughly eight times per entity on\n * *every* change detection pass; in a client-list card grid (60 cards of ~50\n * entities) that was tens of thousands of calls per tick. A slot is now rebuilt\n * only when the entity list, the clickable/active key sets, or the tooltip\n * strings actually change.\n */\ninterface EntitySlot {\n entity: EntityData;\n trackKey: string;\n containerClass: string;\n colSpan: string;\n clickable: boolean;\n rowClickIgnore: 'true' | null;\n title: string | null;\n}\n/** A section box (or the leading bare run) with its slots already resolved. */\ninterface EntitySlotGroup {\n trackKey: string;\n boxed: boolean;\n title: string;\n slots: EntitySlot[];\n}\ndeclare class EntitiesPreview {\n private readonly transloco;\n private readonly elementRef;\n private readonly destroyRef;\n private readonly zone;\n /** Array of entity data to display */\n readonly entities: _angular_core.InputSignal<EntityData[]>;\n readonly attachmentShape: _angular_core.InputSignal<\"default\" | \"compact\">;\n /**\n * Soft \"stack every field full-width when the host is narrower than the\n * 24-column grid reads well\" behavior (the ≤400px container-query fallback,\n * default on). Set to `false` in wide-enough card layouts — e.g. client-list\n * cards (~350px) — so the per-entity `size` configuration is honored instead\n * of forcing every item to full width. A hard ≤280px stack always applies\n * regardless, so the 24-column gap floor can never overflow the host (#1081).\n */\n readonly stackOnNarrow: _angular_core.InputSignal<boolean>;\n /**\n * Set of entity keys that should appear interactive (cursor pointer,\n * clicks emit). Pass `new Set([...])` from a computed signal in the host\n * for reactive enabling — when the host's set changes, Angular re-renders\n * via its normal change detection, no manual subscriptions required.\n *\n * Pass a *stable* reference: a host method that mints a fresh `Set` on every\n * call re-writes this input on every change detection pass and defeats the\n * slot memoization below.\n */\n readonly clickableKeys: _angular_core.InputSignal<ReadonlySet<string>>;\n /**\n * Set of entity keys that should render with the \"active\" treatment\n * (e.g. currently the filter source). Same reactive pattern — and the same\n * stable-reference requirement — as `clickableKeys`.\n */\n readonly activeKeys: _angular_core.InputSignal<ReadonlySet<string>>;\n /** Tooltip text shown on hover when an entity is clickable but not active. */\n readonly clickableTooltip: _angular_core.InputSignal<string>;\n /** Tooltip text shown on hover when an entity is the current active filter. */\n readonly activeTooltip: _angular_core.InputSignal<string>;\n /**\n * Emits when an individual entity slot is clicked. Only fires when the\n * entity's key is present in `clickableKeys`.\n */\n readonly entityClick: _angular_core.OutputEmitterRef<EntityClickEvent>;\n /**\n * The active language as a signal. Section headings are resolved per-language\n * in a `computed`, so under `OnPush` a plain `getActiveLang()` read would\n * freeze them at whatever language was active on first render.\n */\n private readonly activeLang;\n /** Entities expanded and sorted by order */\n readonly displayEntities: _angular_core.Signal<EntityData[]>;\n /**\n * The display entities split into section groups. With no `Section` markers\n * this is a single `{ section: null }` group, so the bare grid renders\n * exactly as before.\n */\n readonly sectionGroups: _angular_core.Signal<_masterteam_components_entities.EntitySectionGroup[]>;\n /**\n * The render model the template iterates. Split from `sectionGroups` on\n * purpose: grouping only re-runs when the entities themselves change, while\n * this cheap mapping re-runs when the key sets or tooltips change.\n */\n protected readonly slotGroups: _angular_core.Signal<EntitySlotGroup[]>;\n /**\n * Whether the host is too narrow for the 24-column grid to stay legible.\n *\n * Measured rather than assumed: this component is narrow because of the\n * column layout it sits in, not because of the viewport, so a media query\n * would answer the wrong question — the same reason the stylesheet uses a\n * container query.\n */\n private readonly hostWidth;\n protected readonly isNarrowHost: _angular_core.Signal<boolean>;\n constructor();\n protected onSlotClick(source: MouseEvent, slot: EntitySlot): void;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntitiesPreview, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesPreview, \"mt-entities-preview\", never, { \"entities\": { \"alias\": \"entities\"; \"required\": true; \"isSignal\": true; }; \"attachmentShape\": { \"alias\": \"attachmentShape\"; \"required\": false; \"isSignal\": true; }; \"stackOnNarrow\": { \"alias\": \"stackOnNarrow\"; \"required\": false; \"isSignal\": true; }; \"clickableKeys\": { \"alias\": \"clickableKeys\"; \"required\": false; \"isSignal\": true; }; \"activeKeys\": { \"alias\": \"activeKeys\"; \"required\": false; \"isSignal\": true; }; \"clickableTooltip\": { \"alias\": \"clickableTooltip\"; \"required\": false; \"isSignal\": true; }; \"activeTooltip\": { \"alias\": \"activeTooltip\"; \"required\": false; \"isSignal\": true; }; }, { \"entityClick\": \"entityClick\"; }, never, never, true, never>;\n}\n\n/**\n * Base class that encapsulates all entity resize-via-drag logic.\n *\n * Extend this directive in any component that needs column-resize behaviour\n * on a 24-column CSS grid. The subclass must:\n * - Provide a `model.required<EntityData[]>()` (or equivalent) for the\n * entity list so `updateEntitySize()` can be called after resize.\n * - Contain a `.grid` element (or override `getGridElement()`).\n *\n * Resize flow:\n * 1. `onResizeStart(event, entity)` — called from a mousedown on the handle\n * 2. mousemove → snaps to nearest column, updates `resizePreviewSize`\n * 3. mouseup → emits `entityResized` with previous & new size\n */\ndeclare abstract class EntitiesResizeBase {\n protected readonly elRef: ElementRef<any>;\n protected readonly zone: NgZone;\n protected readonly doc: Document;\n /** Emits when an entity is resized via the drag handle */\n readonly entityResized: _angular_core.OutputEmitterRef<EntityResizeEvent>;\n /** The entity currently being resized (null when idle) */\n readonly resizingEntity: _angular_core.WritableSignal<EntityData | null>;\n /** Live preview size while dragging */\n readonly resizePreviewSize: _angular_core.WritableSignal<EntitySize | null>;\n /** Bound listeners kept for cleanup */\n private _onMouseMove;\n private _onMouseUp;\n /**\n * Returns the grid element used to compute column widths.\n * Override if the grid selector differs.\n */\n protected getGridElement(): HTMLElement | null;\n /**\n * Returns the grid-column span string for a given entity.\n * While resizing the active entity, returns the preview size.\n */\n getResizeColSpan(entity: EntityData): string;\n /** Starts a resize operation from the right-edge handle */\n onResizeStart(event: MouseEvent, entity: EntityData): void;\n /**\n * Called when a resize operation completes with a changed size.\n * Subclasses should update the entity list and emit events here.\n */\n protected abstract onResizeComplete(entity: EntityData, previousSize: EntitySize, newSize: EntitySize): void;\n /** Removes global mouse listeners */\n private _cleanupListeners;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntitiesResizeBase, never>;\n static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EntitiesResizeBase, never, never, {}, { \"entityResized\": \"entityResized\"; }, never, never, true, never>;\n}\n\ndeclare class EntitiesManage extends EntitiesResizeBase {\n /** Array of entity data – supports two-way binding to keep order in sync */\n readonly entities: _angular_core.ModelSignal<EntityData[]>;\n /** Emits the reordered entities array after each drag-drop */\n readonly entitiesReordered: _angular_core.OutputEmitterRef<EntityData[]>;\n /** Emits when an entity cell is clicked (for opening edit drawer) */\n readonly entityClicked: _angular_core.OutputEmitterRef<EntityData>;\n /**\n * Emits when an item dragged from a *different* connected list (e.g. a sidebar\n * \"add section\" tool) is dropped onto this grid. `index` is the target slot;\n * `data` is the dropped `cdkDragData`. The host decides what to insert.\n */\n readonly externalItemDropped: _angular_core.OutputEmitterRef<{\n index: number;\n data: unknown;\n }>;\n /** Entities expanded and sorted by their configured order */\n readonly displayEntities: _angular_core.Signal<EntityData[]>;\n /** Returns the grid-column span for a given entity size (1-24) */\n getColSpan(entity: EntityData): string;\n /** True when the entity is a full-width `Section` layout marker. */\n isSection(entity: EntityData): boolean;\n /** Handle drag-drop reorder */\n onDrop(event: CdkDragDrop<EntityData[]>): void;\n protected onResizeComplete(entity: EntityData, previousSize: EntitySize, newSize: EntitySize): void;\n static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntitiesManage, never>;\n static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesManage, \"mt-entities-manage\", never, { \"entities\": { \"alias\": \"entities\"; \"required\": true; \"isSignal\": true; }; }, { \"entities\": \"entitiesChange\"; \"entitiesReordered\": \"entitiesReordered\"; \"entityClicked\": \"entityClicked\"; \"externalItemDropped\": \"externalItemDropped\"; }, never, never, true, never>;\n}\n\nexport { CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildDisplayEntities, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, expandLeafDetailsEntity, getEntitySectionTitle, groupEntitiesIntoSections, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isSectionKey, matchesPercentageColorRule, parseCurrencyAmount, resolveLocalizedLabel, resolvePercentageColor };\nexport type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };\n","map":null,"preliminaryFileName":"masterteam-components-entities.d.ts","sourcemapFileName":null}],"fesm2022":[{"exports":["CURRENCY_COMPACT_THRESHOLD","ComparisonEntityList","ComparisonValue","DEFAULT_PHASE_GATE_COLOR","EntitiesManage","EntitiesPreview","EntitiesResizeBase","EntityAttachment","EntityCheckbox","EntityConnection","EntityCurrency","EntityDate","EntityField","EntityLeafDetails","EntityLocation","EntityLongText","EntityLookup","EntityLookupModuleCheckList","EntityPercentage","EntityPhaseGate","EntityPreview","EntityPreviewBody","EntityScheduleItem","EntityStatus","EntityText","EntityUser","LEAF_DETAILS_KEY_SEPARATOR","SECTION_KEY_PREFIX","buildDisplayEntities","buildSectionKey","compactCurrencyDisplay","currencyUnitOf","expandLeafDetailsEntity","getEntitySectionTitle","groupEntitiesIntoSections","isEntitySection","isLeafDetailsCatalogConfiguration","isLeafDetailsCollectionValue","isLeafDetailsRuntimeValue","isLeafDetailsSyntheticKey","isLeafDetailsValue","isSectionKey","matchesPercentageColorRule","parseCurrencyAmount","resolveLocalizedLabel","resolvePercentageColor"],"facadeModuleId":"C:\\Users\\ABDULLAH WISHAH\\Documents\\GitHub\\components\\dist\\masterteam\\components\\tmp-esm2022\\entities\\masterteam-components-entities.js","isDynamicEntry":false,"isEntry":true,"isImplicitEntry":false,"moduleIds":["C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity.model.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-comparison.model.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-display.utils.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-field/entity-field.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-text/entity-text.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-date/entity-date.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-status/entity-status.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-user/entity-user.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/percentage-color.utils.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-percentage/entity-percentage.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/currency-display.utils.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-currency/entity-currency.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-checkbox/entity-checkbox.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-long-text/entity-long-text.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-lookup/entity-lookup.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-sections.util.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-phase-gate/entity-phase-gate.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-attachment/entity-attachment.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-location/entity-location.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-connection/entity-connection.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-schedule-item/entity-schedule-item.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-leaf-details/entity-leaf-details.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-preview/entity-value-preview.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/leaf-details-display.utils.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-preview/entity-preview-body.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/comparison/comparison-value/comparison-value.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/comparison/comparison-entity-list/comparison-entity-list.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-preview/entity-preview.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entities-preview/entities-preview.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entities-manage/entities-resize-base.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entities-manage/entities-manage.js","C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/public-api.js","C:\\Users\\ABDULLAH WISHAH\\Documents\\GitHub\\components\\dist\\masterteam\\components\\tmp-esm2022\\entities\\masterteam-components-entities.js"],"name":"masterteam-components-entities","type":"chunk","dynamicImports":[],"fileName":"masterteam-components-entities.mjs","implicitlyLoadedBefore":[],"importedBindings":{"@angular/core":["input","computed","*","ChangeDetectionStrategy","Component","signal","effect","untracked","inject","ElementRef","DestroyRef","NgZone","output","Directive","model"],"@masterteam/components/tooltip":["TruncateTooltip","Tooltip"],"@masterteam/icons":["Icon"],"@masterteam/components":["MTDateFormatPipe","REQUEST_CONTEXT","readableTextOn"],"@angular/common/http":["HttpContext","HttpClient"],"@jsverse/transloco":["TranslocoPipe","TranslocoService"],"@masterteam/components/avatar":["Avatar"],"@masterteam/components/upload-field":["SecureImagePipe","UploadField"],"@masterteam/components/progress":["Progress"],"@angular/core/rxjs-interop":["toSignal"],"@angular/forms":["FormsModule","*"],"@masterteam/components/button":["Button"],"rxjs":["forkJoin","finalize","of","take","switchMap","EMPTY","map","catchError"],"@masterteam/components/chip":["Chip"],"primeng/tooltip":["TooltipModule","*"],"@angular/common":["NgTemplateOutlet","DOCUMENT"],"@angular/cdk/drag-drop":["CdkDrag","CdkDropList","CdkDragPlaceholder"]},"imports":["@angular/core","@masterteam/components/tooltip","@masterteam/icons","@masterteam/components","@angular/common/http","@jsverse/transloco","@masterteam/components/avatar","@masterteam/components/upload-field","@masterteam/components/progress","@angular/core/rxjs-interop","@angular/forms","@masterteam/components/button","rxjs","@masterteam/components/chip","primeng/tooltip","@angular/common","@angular/cdk/drag-drop"],"modules":{"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity.model.js":{"code":"","originalLength":40,"removedExports":[],"renderedExports":[],"renderedLength":0},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-comparison.model.js":{"code":"","originalLength":51,"removedExports":[],"renderedExports":[],"renderedLength":0},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-display.utils.js":{"code":"const ENTITY_EMPTY_VALUE_PLACEHOLDER = '_';\nfunction isValueMissing(value) {\n if (value === null || value === undefined) {\n return true;\n }\n if (typeof value === 'string') {\n return value.trim().length === 0;\n }\n return false;\n}\nfunction displayOrPlaceholder(value) {\n if (isValueMissing(value)) {\n return ENTITY_EMPTY_VALUE_PLACEHOLDER;\n }\n return String(value);\n}\nfunction isEntityLabelHidden(configuration) {\n const config = configuration;\n return config?.hideLabel ?? config?.hideName ?? false;\n}\nfunction isEntityAlignEnd(configuration) {\n const config = configuration;\n return config?.alignEnd ?? false;\n}\n/**\n * The product default: label above value.\n *\n * It used to be `bottom`, which is why Portfolio and Program cards rendered\n * \"06/07/2026\" then \"Start Date\" while Project cards — whose properties had\n * been through the property-configuration drawer, and so carry an explicit\n * `labelPosition` — rendered the label first. Two orders inside one Explore\n * module, reachable by clicking a different item in the same sidebar\n * (finding M-13). Label-first reads better down a column of mixed field types,\n * so it is what every unconfigured property now gets.\n *\n * An explicit configuration still wins: an administrator who deliberately\n * chose value-above-label for a property keeps it.\n */\nfunction resolveEntityLabelPosition(configuration) {\n const config = configuration;\n return config?.labelPosition ?? config?.labelPostion ?? 'top';\n}\n/**\n * Rewrites a localised numeric string into something `parseFloat` can read.\n *\n * `rawNumericValue` can fall back to the already-formatted display string, so\n * whatever `Intl.NumberFormat` produced has to survive a round trip. Under\n * `ar` that is harmless (Latin digits plus invisible direction marks), but\n * `ar-SA` renders Arabic-Indic digits and an Arabic decimal separator, which\n * parse to NaN — the bar would silently disappear rather than show a value.\n *\n * Handles Arabic-Indic (U+0660-0669) and Eastern Arabic-Indic (U+06F0-06F9)\n * digits, the Arabic decimal separator, thousands separators, and the\n * bidirectional marks Intl inserts around the percent sign.\n */\nfunction normalizeNumerals(input) {\n return input\n .replace(/[‎‏؜]/g, '')\n .replace(/[٠-٩]/g, (d) => String(d.charCodeAt(0) - 0x0660))\n .replace(/[۰-۹]/g, (d) => String(d.charCodeAt(0) - 0x06f0))\n .replace(/[٫]/g, '.')\n .replace(/[٬  ]/g, '');\n}","originalLength":2588,"removedExports":[],"renderedExports":["ENTITY_EMPTY_VALUE_PLACEHOLDER","isValueMissing","displayOrPlaceholder","isEntityLabelHidden","isEntityAlignEnd","resolveEntityLabelPosition","normalizeNumerals"],"renderedLength":2490},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-field/entity-field.js":{"code":"class EntityField {\n label = input('', ...(ngDevMode ? [{ debugName: \"label\" }] : /* istanbul ignore next */ []));\n labelIconName = input(null, ...(ngDevMode ? [{ debugName: \"labelIconName\" }] : /* istanbul ignore next */ []));\n configuration = input(...(ngDevMode ? [undefined, { debugName: \"configuration\" }] : /* istanbul ignore next */ []));\n gap = input('compact', ...(ngDevMode ? [{ debugName: \"gap\" }] : /* istanbul ignore next */ []));\n hideLabel = computed(() => isEntityLabelHidden(this.configuration()), ...(ngDevMode ? [{ debugName: \"hideLabel\" }] : /* istanbul ignore next */ []));\n labelPosition = computed(() => resolveEntityLabelPosition(this.configuration()), ...(ngDevMode ? [{ debugName: \"labelPosition\" }] : /* istanbul ignore next */ []));\n labelContainerClass = computed(() => {\n const justifyClass = isEntityAlignEnd(this.configuration())\n ? 'justify-end'\n : '';\n return `flex min-w-0 max-w-full items-center gap-1 text-sm text-gray-500 ${justifyClass}`.trimEnd();\n }, ...(ngDevMode ? [{ debugName: \"labelContainerClass\" }] : /* istanbul ignore next */ []));\n contentContainerClass = computed(() => {\n const alignClass = isEntityAlignEnd(this.configuration())\n ? 'self-end'\n : 'self-stretch';\n return `min-w-0 max-w-full ${alignClass}`;\n }, ...(ngDevMode ? [{ debugName: \"contentContainerClass\" }] : /* istanbul ignore next */ []));\n containerClass = computed(() => {\n const gapClass = this.gap() === 'relaxed'\n ? 'gap-2'\n : this.gap() === 'normal'\n ? 'gap-1'\n : 'gap-0.5';\n const directionClass = this.labelPosition() === 'top' ? 'flex-col-reverse' : 'flex-col';\n const alignClass = isEntityAlignEnd(this.configuration())\n ? 'items-end'\n : '';\n return `flex min-w-0 ${directionClass} ${gapClass} ${alignClass}`.trimEnd();\n }, ...(ngDevMode ? [{ debugName: \"containerClass\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityField, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityField, isStandalone: true, selector: \"mt-entity-field\", inputs: { label: { classPropertyName: \"label\", publicName: \"label\", isSignal: true, isRequired: false, transformFunction: null }, labelIconName: { classPropertyName: \"labelIconName\", publicName: \"labelIconName\", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: \"configuration\", publicName: \"configuration\", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: \"gap\", publicName: \"gap\", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: \"block min-w-0 w-full\" }, ngImport: i0, template: `\r\n <div [class]=\"containerClass()\">\r\n <div [class]=\"contentContainerClass()\">\r\n <ng-content />\r\n </div>\r\n @if (!hideLabel()) {\r\n <div [class]=\"labelContainerClass()\">\r\n @if (labelIconName(); as iconName) {\r\n <mt-icon [icon]=\"iconName\" size=\"xs\" class=\"shrink-0\" />\r\n }\r\n <span\r\n class=\"block min-w-0 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n {{ label() }}\r\n </span>\r\n </div>\r\n }\r\n </div>\r\n `, isInline: true, dependencies: [{ kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }, { kind: \"component\", type: Icon, selector: \"mt-icon\", inputs: [\"icon\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityField, decorators: [{\n type: Component,\n args: [{\n selector: 'mt-entity-field',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [TruncateTooltip, Icon],\n template: `\r\n <div [class]=\"containerClass()\">\r\n <div [class]=\"contentContainerClass()\">\r\n <ng-content />\r\n </div>\r\n @if (!hideLabel()) {\r\n <div [class]=\"labelContainerClass()\">\r\n @if (labelIconName(); as iconName) {\r\n <mt-icon [icon]=\"iconName\" size=\"xs\" class=\"shrink-0\" />\r\n }\r\n <span\r\n class=\"block min-w-0 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n {{ label() }}\r\n </span>\r\n </div>\r\n }\r\n </div>\r\n `,\n host: {\n class: 'block min-w-0 w-full',\n },\n }]\n }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: \"label\", required: false }] }], labelIconName: [{ type: i0.Input, args: [{ isSignal: true, alias: \"labelIconName\", required: false }] }], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: \"configuration\", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: \"gap\", required: false }] }] } });","originalLength":5642,"removedExports":[],"renderedExports":["EntityField"],"renderedLength":5253},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-text/entity-text.js":{"code":"class EntityText {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => {\n const d = this.data();\n if (d) {\n return displayOrPlaceholder(typeof d.value === 'string' ? d.value : null);\n }\n return displayOrPlaceholder(this.value());\n }, ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityText, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.8\", type: EntityText, isStandalone: true, selector: \"mt-entity-text\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <!--\\n Two lines before the ellipsis, not one. Portfolio and project names were\\n being cut mid-word on the Explore board (\\\"Smart City Infrastructure Po\\u2026\\\"),\\n which makes similarly-titled records indistinguishable without opening each\\n one (finding H-06). `line-clamp-2` still ellipsises what genuinely does not\\n fit, and `mtTruncateTooltip` reads `scrollHeight > clientHeight`, so the\\n tooltip keeps working for the clamped case exactly as it did for the\\n single-line one.\\n -->\\n <div\\n class=\\\"min-w-0 max-w-full line-clamp-2 break-words text-sm font-semibold\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n [innerHTML]=\\\"displayValue()\\\"\\n ></div>\\n</mt-entity-field>\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityText, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-text', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <!--\\n Two lines before the ellipsis, not one. Portfolio and project names were\\n being cut mid-word on the Explore board (\\\"Smart City Infrastructure Po\\u2026\\\"),\\n which makes similarly-titled records indistinguishable without opening each\\n one (finding H-06). `line-clamp-2` still ellipsises what genuinely does not\\n fit, and `mtTruncateTooltip` reads `scrollHeight > clientHeight`, so the\\n tooltip keeps working for the clamped case exactly as it did for the\\n single-line one.\\n -->\\n <div\\n class=\\\"min-w-0 max-w-full line-clamp-2 break-words text-sm font-semibold\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n [innerHTML]=\\\"displayValue()\\\"\\n ></div>\\n</mt-entity-field>\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });","originalLength":4516,"removedExports":[],"renderedExports":["EntityText"],"renderedLength":4156},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-date/entity-date.js":{"code":"class EntityDate {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n viewType = input('Date', ...(ngDevMode ? [{ debugName: \"viewType\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n /**\n * `Time` carries a wall-clock value (`HH:mm:ss`) with no date and no zone, so\n * `mtDateFormat` renders it as stored instead of shifting it into the\n * viewer's timezone the way its `DateTime` sibling is shifted.\n */\n resolvedViewType = computed(() => {\n switch (this.data()?.viewType ?? this.viewType()) {\n case 'DateTime':\n return 'dateTime';\n case 'Time':\n return 'time';\n default:\n return 'date';\n }\n }, ...(ngDevMode ? [{ debugName: \"resolvedViewType\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => this.data()?.rawValue ?? this.data()?.value ?? this.value(), ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityDate, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityDate, isStandalone: true, selector: \"mt-entity-date\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, viewType: { classPropertyName: \"viewType\", publicName: \"viewType\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n >\\n @if (displayValue()) {\\n {{ displayValue() | mtDateFormat: resolvedViewType() }}\\n } @else {\\n -\\n }\\n </span>\\n</mt-entity-field>\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }, { kind: \"pipe\", type: MTDateFormatPipe, name: \"mtDateFormat\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityDate, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-date', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip, MTDateFormatPipe], template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n >\\n @if (displayValue()) {\\n {{ displayValue() | mtDateFormat: resolvedViewType() }}\\n } @else {\\n -\\n }\\n </span>\\n</mt-entity-field>\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], viewType: [{ type: i0.Input, args: [{ isSignal: true, alias: \"viewType\", required: false }] }] } });","originalLength":4573,"removedExports":[],"renderedExports":["EntityDate"],"renderedLength":4217},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-status/entity-status.js":{"code":"class EntityStatus {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n statusValue = computed(() => {\n const d = this.data();\n if (d && typeof d.value === 'object' && d.value !== null) {\n return d.value;\n }\n return this.value() ?? null;\n }, ...(ngDevMode ? [{ debugName: \"statusValue\" }] : /* istanbul ignore next */ []));\n badgeStyle = computed(() => {\n const status = this.statusValue();\n if (!status?.color)\n return {};\n return {\n color: status.color,\n backgroundColor: this.hexToRgba(status.color, 0.12),\n };\n }, ...(ngDevMode ? [{ debugName: \"badgeStyle\" }] : /* istanbul ignore next */ []));\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n statusLabel = computed(() => displayOrPlaceholder(this.statusValue()?.display), ...(ngDevMode ? [{ debugName: \"statusLabel\" }] : /* istanbul ignore next */ []));\n hexToRgba(hex, alpha) {\n const r = parseInt(hex.slice(1, 3), 16);\n const g = parseInt(hex.slice(3, 5), 16);\n const b = parseInt(hex.slice(5, 7), 16);\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityStatus, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityStatus, isStandalone: true, selector: \"mt-entity-status\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (statusValue(); as status) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ statusLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityStatus, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-status', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (statusValue(); as status) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ statusLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });","originalLength":4688,"removedExports":[],"renderedExports":["EntityStatus"],"renderedLength":4359},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-user/entity-user.js":{"code":"class EntityUser {\n httpContext = new HttpContext().set(REQUEST_CONTEXT, {\n useBaseUrl: true,\n });\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n expanded = signal(false, ...(ngDevMode ? [{ debugName: \"expanded\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n isMultiUser = computed(() => this.data()?.viewType === 'MultiUser', ...(ngDevMode ? [{ debugName: \"isMultiUser\" }] : /* istanbul ignore next */ []));\n /** Resolved user objects from either a User or MultiUser entity value. */\n users = computed(() => {\n const val = this.data()?.value;\n const values = Array.isArray(val) ? val : [val];\n return values.filter(isEntityUserValue);\n }, ...(ngDevMode ? [{ debugName: \"users\" }] : /* istanbul ignore next */ []));\n maxVisibleUsers = computed(() => {\n const configured = Number(this.config().maxVisibleUsers);\n return Number.isInteger(configured) && configured > 0 ? configured : 5;\n }, ...(ngDevMode ? [{ debugName: \"maxVisibleUsers\" }] : /* istanbul ignore next */ []));\n visibleUsers = computed(() => {\n const users = this.users();\n if (!this.isMultiUser() || this.expanded()) {\n return users;\n }\n return users.slice(0, this.maxVisibleUsers());\n }, ...(ngDevMode ? [{ debugName: \"visibleUsers\" }] : /* istanbul ignore next */ []));\n hiddenUserCount = computed(() => this.users().length - this.visibleUsers().length, ...(ngDevMode ? [{ debugName: \"hiddenUserCount\" }] : /* istanbul ignore next */ []));\n /** First user retained for the existing single-user computed API. */\n userValue = computed(() => this.users()[0] ?? null, ...(ngDevMode ? [{ debugName: \"userValue\" }] : /* istanbul ignore next */ []));\n userNameFor(user) {\n return displayOrPlaceholder(user.displayName ?? null);\n }\n userPhotoFor(user) {\n return this.showUserImage() ? (user.photoUrl ?? '') : '';\n }\n labelTextFor(user) {\n return user.name ?? '';\n }\n isUnlinkedUser(user) {\n return user.isLinkedToCurrentApplication === false && !!user.userName;\n }\n phoneNumberFor(user) {\n return user.phoneNumber ?? '';\n }\n emailFor(user) {\n return user.email ?? '';\n }\n hasContactInfoFor(user) {\n return ((this.showPhoneNumber() && !!this.phoneNumberFor(user)) ||\n (this.showEmail() && !!this.emailFor(user)));\n }\n emptyUserName = computed(() => displayOrPlaceholder(null), ...(ngDevMode ? [{ debugName: \"emptyUserName\" }] : /* istanbul ignore next */ []));\n rawUserName = computed(() => this.userValue()?.displayName ?? null, ...(ngDevMode ? [{ debugName: \"rawUserName\" }] : /* istanbul ignore next */ []));\n userName = computed(() => displayOrPlaceholder(this.rawUserName()), ...(ngDevMode ? [{ debugName: \"userName\" }] : /* istanbul ignore next */ []));\n userPhoto = computed(() => this.showUserImage() ? (this.userValue()?.photoUrl ?? '') : '', ...(ngDevMode ? [{ debugName: \"userPhoto\" }] : /* istanbul ignore next */ []));\n labelText = computed(() => this.userValue()?.name ?? '', ...(ngDevMode ? [{ debugName: \"labelText\" }] : /* istanbul ignore next */ []));\n /**\n * `true` when the referenced user is no longer linked to the application.\n * Drives the inline info badge/tooltip next to the display name.\n */\n isUnlinked = computed(() => this.userValue()?.isLinkedToCurrentApplication === false &&\n this.userValue()?.userName, ...(ngDevMode ? [{ debugName: \"isUnlinked\" }] : /* istanbul ignore next */ []));\n // ── Configuration-driven visibility ──\n config = computed(() => this.data()?.configuration ?? {}, ...(ngDevMode ? [{ debugName: \"config\" }] : /* istanbul ignore next */ []));\n showDisplayName = computed(() => this.config().showDisplayName ?? true, ...(ngDevMode ? [{ debugName: \"showDisplayName\" }] : /* istanbul ignore next */ []));\n showPhoneNumber = computed(() => this.config().showPhoneNumber ?? false, ...(ngDevMode ? [{ debugName: \"showPhoneNumber\" }] : /* istanbul ignore next */ []));\n showEmail = computed(() => this.config().showEmail ?? false, ...(ngDevMode ? [{ debugName: \"showEmail\" }] : /* istanbul ignore next */ []));\n /**\n * When off, the avatar falls back to the generic user icon so the layout keeps\n * its shape while the user's real picture stays hidden.\n */\n showUserImage = computed(() => this.config().showUserImage ?? true, ...(ngDevMode ? [{ debugName: \"showUserImage\" }] : /* istanbul ignore next */ []));\n phoneNumber = computed(() => this.userValue()?.phoneNumber ?? '', ...(ngDevMode ? [{ debugName: \"phoneNumber\" }] : /* istanbul ignore next */ []));\n email = computed(() => this.userValue()?.email ?? '', ...(ngDevMode ? [{ debugName: \"email\" }] : /* istanbul ignore next */ []));\n hasContactInfo = computed(() => (this.showPhoneNumber() && !!this.phoneNumber()) ||\n (this.showEmail() && !!this.email()), ...(ngDevMode ? [{ debugName: \"hasContactInfo\" }] : /* istanbul ignore next */ []));\n constructor() {\n effect(() => {\n void this.data()?.value;\n untracked(() => this.expanded.set(false));\n });\n }\n showAllUsers() {\n this.expanded.set(true);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityUser, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityUser, isStandalone: true, selector: \"mt-entity-user\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (isMultiUser()) {\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\"\\r\\n data-testid=\\\"multi-user-list\\\"\\r\\n >\\r\\n @for (user of visibleUsers(); track user.id ?? $index) {\\r\\n <div\\r\\n class=\\\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 ps-1 pe-2\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-7! h-7! text-white! text-sm! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <span\\r\\n class=\\\"max-w-36 truncate text-xs text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n }\\r\\n\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-xs text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.phone\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.mail-01\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n } @empty {\\r\\n <span class=\\\"text-sm text-gray-700\\\">{{ emptyUserName() }}</span>\\r\\n }\\r\\n\\r\\n @if (hiddenUserCount() > 0) {\\r\\n <button\\r\\n type=\\\"button\\\"\\r\\n class=\\\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\\\"\\r\\n data-testid=\\\"show-all-users\\\"\\r\\n [attr.aria-label]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n [mtTooltip]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n (click)=\\\"showAllUsers()\\\"\\r\\n >\\r\\n +{{ hiddenUserCount() }}\\r\\n </button>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n @if (users()[0]; as user) {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <div class=\\\"flex min-w-0 flex-1 flex-col\\\">\\r\\n <div class=\\\"flex min-w-0 items-center gap-1\\\">\\r\\n <span\\r\\n class=\\\"truncate text-sm text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-sm text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n @if (labelTextFor(user)) {\\r\\n <span class=\\\"truncate text-xs text-gray-500\\\">{{\\r\\n labelTextFor(user)\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (hasContactInfoFor(user)) {\\r\\n <div class=\\\"ms-auto flex shrink-0 items-center gap-1.5\\\">\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n icon=\\\"communication.phone\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n icon=\\\"communication.mail-01\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n @if (showDisplayName()) {\\r\\n <span class=\\\"truncate text-sm text-gray-700\\\">{{\\r\\n emptyUserName()\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: Avatar, selector: \"mt-avatar\", inputs: [\"label\", \"icon\", \"image\", \"styleClass\", \"size\", \"shape\", \"badge\", \"badgeSize\", \"badgeSeverity\"], outputs: [\"onImageError\"] }, { kind: \"directive\", type: Tooltip, selector: \"[mtTooltip]\" }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }, { kind: \"component\", type: Icon, selector: \"mt-icon\", inputs: [\"icon\"] }, { kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"pipe\", type: SecureImagePipe, name: \"secureImage\" }, { kind: \"pipe\", type: TranslocoPipe, name: \"transloco\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityUser, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-user', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [\n Avatar,\n Tooltip,\n TruncateTooltip,\n Icon,\n SecureImagePipe,\n EntityField,\n TranslocoPipe,\n ], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (isMultiUser()) {\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\"\\r\\n data-testid=\\\"multi-user-list\\\"\\r\\n >\\r\\n @for (user of visibleUsers(); track user.id ?? $index) {\\r\\n <div\\r\\n class=\\\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 ps-1 pe-2\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-7! h-7! text-white! text-sm! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <span\\r\\n class=\\\"max-w-36 truncate text-xs text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n }\\r\\n\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-xs text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.phone\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.mail-01\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n } @empty {\\r\\n <span class=\\\"text-sm text-gray-700\\\">{{ emptyUserName() }}</span>\\r\\n }\\r\\n\\r\\n @if (hiddenUserCount() > 0) {\\r\\n <button\\r\\n type=\\\"button\\\"\\r\\n class=\\\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\\\"\\r\\n data-testid=\\\"show-all-users\\\"\\r\\n [attr.aria-label]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n [mtTooltip]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n (click)=\\\"showAllUsers()\\\"\\r\\n >\\r\\n +{{ hiddenUserCount() }}\\r\\n </button>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n @if (users()[0]; as user) {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <div class=\\\"flex min-w-0 flex-1 flex-col\\\">\\r\\n <div class=\\\"flex min-w-0 items-center gap-1\\\">\\r\\n <span\\r\\n class=\\\"truncate text-sm text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-sm text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n @if (labelTextFor(user)) {\\r\\n <span class=\\\"truncate text-xs text-gray-500\\\">{{\\r\\n labelTextFor(user)\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (hasContactInfoFor(user)) {\\r\\n <div class=\\\"ms-auto flex shrink-0 items-center gap-1.5\\\">\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n icon=\\\"communication.phone\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n icon=\\\"communication.mail-01\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n @if (showDisplayName()) {\\r\\n <span class=\\\"truncate text-sm text-gray-700\\\">{{\\r\\n emptyUserName()\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }] } });\nfunction isEntityUserValue(value) {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n return false;\n }\n return 'displayName' in value;\n}","originalLength":22052,"removedExports":[],"renderedExports":["EntityUser"],"renderedLength":21325},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/percentage-color.utils.js":{"code":"/** A finite number, or null for anything that cannot be compared numerically. */\nfunction toFiniteNumber(value) {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n const parsed = typeof value === 'number'\n ? value\n : Number(String(value).replace(/%/g, '').trim());\n return Number.isFinite(parsed) ? parsed : null;\n}\n/**\n * Whether `value` falls inside a rule's band. Both bounds are inclusive, an\n * absent bound is open-ended, and a rule carrying neither bound is malformed —\n * it never matches rather than swallowing every value.\n */\nfunction matchesPercentageColorRule(value, rule) {\n if (!rule) {\n return false;\n }\n const min = toFiniteNumber(rule.minValue);\n const max = toFiniteNumber(rule.maxValue);\n if (min === null && max === null) {\n return false;\n }\n if (min !== null && value < min) {\n return false;\n }\n return max === null || value <= max;\n}\n/**\n * The colour for a percentage value: rules in their configured order, first\n * match wins, `defaultColor` when nothing matches.\n *\n * The backend owns this evaluation and ships the winner as `color` on\n * render/value/fetch responses, so callers must prefer that resolved colour.\n * This exists for the surfaces that hold a raw rule set and no resolved colour\n * — the property-form preview, and catalog reads that never went through a\n * value response.\n */\nfunction resolvePercentageColor(value, source) {\n const fallback = source?.defaultColor?.trim() || null;\n const numericValue = toFiniteNumber(value);\n const rules = source?.colorRules;\n if (numericValue === null || !Array.isArray(rules)) {\n return fallback;\n }\n const match = rules.find((rule) => matchesPercentageColorRule(numericValue, rule));\n return match?.color?.trim() || fallback;\n}","originalLength":1915,"removedExports":[],"renderedExports":["matchesPercentageColorRule","resolvePercentageColor"],"renderedLength":1850},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-percentage/entity-percentage.js":{"code":"class EntityPercentage {\n transloco = inject(TranslocoService);\n /** Active locale, so number formatting follows the UI language. */\n locale = computed(() => this.transloco.getActiveLang() || 'en', ...(ngDevMode ? [{ debugName: \"locale\" }] : /* istanbul ignore next */ []));\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n rawValue = input(...(ngDevMode ? [undefined, { debugName: \"rawValue\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => {\n const d = this.data();\n const raw = d\n ? typeof d.value === 'string'\n ? d.value\n : null\n : this.value();\n return displayOrPlaceholder(this.formatPercentageDisplay(raw));\n }, ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n rawNumericValue = computed(() => this.data()?.rawValue ??\n this.rawValue() ??\n this.value() ??\n this.displayValue(), ...(ngDevMode ? [{ debugName: \"rawNumericValue\" }] : /* istanbul ignore next */ []));\n hasNumericValue = computed(() => {\n return this.parseNumericValue(this.rawNumericValue()) !== null;\n }, ...(ngDevMode ? [{ debugName: \"hasNumericValue\" }] : /* istanbul ignore next */ []));\n numericValue = computed(() => {\n const num = this.parseNumericValue(this.rawNumericValue());\n return num === null ? 0 : Math.min(num, 100);\n }, ...(ngDevMode ? [{ debugName: \"numericValue\" }] : /* istanbul ignore next */ []));\n maxValue = computed(() => {\n const num = this.parseNumericValue(this.rawNumericValue());\n if (num === null)\n return 100;\n return num > 100 ? Math.ceil(num) : 100;\n }, ...(ngDevMode ? [{ debugName: \"maxValue\" }] : /* istanbul ignore next */ []));\n // ── Configuration-driven visibility ──\n hideName = computed(() => isEntityLabelHidden(this.data()?.configuration), ...(ngDevMode ? [{ debugName: \"hideName\" }] : /* istanbul ignore next */ []));\n /**\n * The bar colour. The backend evaluates the property's colour rules and\n * returns the winner as `color` on render/value/fetch responses, so a\n * resolved colour always wins — the rules are only evaluated here for\n * configurations that arrive without one (a catalog read, or the\n * property-form preview).\n */\n progressColor = computed(() => {\n const d = this.data();\n const direct = d?.configuration;\n const fromProperty = d?.propertyConfiguration;\n const resolved = direct?.color?.trim() || fromProperty?.color?.trim();\n if (resolved) {\n return resolved;\n }\n const raw = this.rawNumericValue();\n return (resolvePercentageColor(raw, direct) ??\n resolvePercentageColor(raw, fromProperty) ??\n 'primary');\n }, ...(ngDevMode ? [{ debugName: \"progressColor\" }] : /* istanbul ignore next */ []));\n /**\n * Renders a percentage for the active locale.\n *\n * This used to echo the backend's string and only append `%` when that string\n * already carried one — so in Arabic, where the API returns a bare `\"25\"`,\n * the symbol vanished and a progress value rendered as an unlabelled `25`.\n * Next to a bar that could be a percentage, a count or a score (finding\n * H-08).\n *\n * Formatting from the NUMBER through `Intl.NumberFormat` makes the symbol,\n * the decimal separator and the digit shapes follow the locale instead of the\n * payload. `maximumFractionDigits: 1` preserves the precision the old code\n * kept; `style: 'percent'` expects a fraction, hence the /100.\n *\n * Non-numeric values pass through untouched — a status string or an em dash\n * must not be mangled into `NaN%`.\n */\n formatPercentageDisplay(raw) {\n if (isValueMissing(raw)) {\n return raw;\n }\n const num = this.parseNumericValue(raw);\n if (num === null) {\n return raw;\n }\n try {\n return new Intl.NumberFormat(this.locale(), {\n style: 'percent',\n maximumFractionDigits: 1,\n }).format(num / 100);\n }\n catch {\n // An unknown locale tag must not cost the user their number.\n return `${Number(num.toFixed(1))}%`;\n }\n }\n parseNumericValue(raw) {\n if (isValueMissing(raw)) {\n return null;\n }\n const normalizedRawValue = normalizeNumerals(String(raw))\n .replace(/[%٪]/g, '')\n .trim();\n if (!normalizedRawValue) {\n return null;\n }\n const numericValue = Number.parseFloat(normalizedRawValue);\n return Number.isNaN(numericValue) ? null : numericValue;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPercentage, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityPercentage, isStandalone: true, selector: \"mt-entity-percentage\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, rawValue: { classPropertyName: \"rawValue\", publicName: \"rawValue\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<div class=\\\"flex flex-col gap-1\\\">\\r\\n <div class=\\\"flex items-center justify-between\\\">\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-xs font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n <span class=\\\"text-xs font-bold\\\" [class.ms-auto]=\\\"hideName()\\\">{{\\r\\n displayValue()\\r\\n }}</span>\\r\\n </div>\\r\\n @if (hasNumericValue()) {\\r\\n <mt-progress\\r\\n [value]=\\\"numericValue()\\\"\\r\\n [showLabel]=\\\"false\\\"\\r\\n [height]=\\\"9\\\"\\r\\n [maxValue]=\\\"maxValue()\\\"\\r\\n [color]=\\\"progressColor()\\\"\\r\\n >\\r\\n </mt-progress>\\r\\n } @else {\\r\\n <div class=\\\"h-[9px] rounded-full bg-gray-200\\\"></div>\\r\\n }\\r\\n</div>\\r\\n\", dependencies: [{ kind: \"component\", type: Progress, selector: \"mt-progress\", inputs: [\"value\", \"mode\", \"showLabel\", \"unit\", \"color\", \"minValue\", \"maxValue\", \"height\", \"circleSize\", \"strokeWidth\", \"customClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPercentage, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-percentage', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [Progress], template: \"<div class=\\\"flex flex-col gap-1\\\">\\r\\n <div class=\\\"flex items-center justify-between\\\">\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-xs font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n <span class=\\\"text-xs font-bold\\\" [class.ms-auto]=\\\"hideName()\\\">{{\\r\\n displayValue()\\r\\n }}</span>\\r\\n </div>\\r\\n @if (hasNumericValue()) {\\r\\n <mt-progress\\r\\n [value]=\\\"numericValue()\\\"\\r\\n [showLabel]=\\\"false\\\"\\r\\n [height]=\\\"9\\\"\\r\\n [maxValue]=\\\"maxValue()\\\"\\r\\n [color]=\\\"progressColor()\\\"\\r\\n >\\r\\n </mt-progress>\\r\\n } @else {\\r\\n <div class=\\\"h-[9px] rounded-full bg-gray-200\\\"></div>\\r\\n }\\r\\n</div>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], rawValue: [{ type: i0.Input, args: [{ isSignal: true, alias: \"rawValue\", required: false }] }] } });","originalLength":8930,"removedExports":[],"renderedExports":["EntityPercentage"],"renderedLength":8442},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/currency-display.utils.js":{"code":"/**\n * The largest amount still rendered in full.\n *\n * The reviewer measured exactly where the line falls: `100,000 SAR` fits a card\n * slot, `1,000,000 SAR` does not and loses its currency to the ellipsis. So the\n * comparison below is inclusive — anything ABOVE this compacts, and everything\n * a tenant sees today at or under it is untouched.\n */\nconst CURRENCY_COMPACT_THRESHOLD = 100_000;\n/**\n * The numeric amount inside a formatted currency string.\n *\n * Strips the currency token, the grouping separators and the bidirectional\n * marks `Intl` leaves around them, and normalises Arabic-Indic digits so an\n * `ar-SA` payload parses like an `en` one. `null` when there is no number.\n */\nfunction parseCurrencyAmount(raw) {\n if (typeof raw !== 'string') {\n return null;\n }\n const numeric = normalizeNumerals(raw).replace(/[^0-9.+-]/g, '');\n if (!numeric || !/\\d/.test(numeric)) {\n return null;\n }\n const parsed = Number.parseFloat(numeric);\n return Number.isFinite(parsed) ? parsed : null;\n}\n/**\n * Whatever is left of a formatted amount once the number is removed — `SAR`,\n * `ر.س`, `$`. Read from the payload rather than configured, so a tenant's own\n * currency survives untouched.\n */\nfunction currencyUnitOf(formatted) {\n return normalizeNumerals(formatted)\n .replace(/[0-9.,+-]/g, '')\n .trim();\n}\n/**\n * A large currency amount shortened so it fits a card slot, with the unit kept.\n *\n * A budget of a million or more used to render as `1,000,000 …`: the digits\n * survived the ellipsis and the currency did not, so the largest and most\n * consequential figures in the product were the only ones whose unit could not\n * be read (finding H-06). Compact notation keeps the whole thing inside the\n * slot — `SAR 1M` instead of `1,000,000 SAR` — and callers put the exact figure\n * in a tooltip, which is where a precise number belongs on a summary card.\n *\n * Returns `formatted` unchanged whenever the value already fits, is not a\n * number, or the runtime has no compact notation — so no tenant sees an\n * existing number change shape for no reason.\n */\nfunction compactCurrencyDisplay(formatted, rawValue, locale, threshold = CURRENCY_COMPACT_THRESHOLD) {\n const amount = parseCurrencyAmount(rawValue ?? formatted);\n if (amount === null || Math.abs(amount) <= threshold) {\n return formatted;\n }\n let compact;\n try {\n compact = new Intl.NumberFormat(locale, {\n notation: 'compact',\n maximumFractionDigits: 1,\n }).format(amount);\n }\n catch {\n return formatted;\n }\n const unit = currencyUnitOf(formatted);\n if (!unit) {\n return compact;\n }\n // Keep the payload's own unit placement — `SAR 1,000` and `1,000 SAR` are\n // both in use, and flipping one to the other reads as a different currency.\n return formatted.trimStart().startsWith(unit)\n ? `${unit} ${compact}`\n : `${compact} ${unit}`;\n}","originalLength":3103,"removedExports":[],"renderedExports":["CURRENCY_COMPACT_THRESHOLD","parseCurrencyAmount","currencyUnitOf","compactCurrencyDisplay"],"renderedLength":2964},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-currency/entity-currency.js":{"code":"class EntityCurrency {\n transloco = inject(TranslocoService);\n /** Active locale, so number formatting follows the UI language. */\n locale = computed(() => this.transloco.getActiveLang() || 'en', ...(ngDevMode ? [{ debugName: \"locale\" }] : /* istanbul ignore next */ []));\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n /** The backend's fully grouped string — always the tooltip, never truncated. */\n fullValue = computed(() => {\n const d = this.data();\n if (d) {\n return displayOrPlaceholder(typeof d.value === 'string' ? d.value : null);\n }\n return displayOrPlaceholder(this.value());\n }, ...(ngDevMode ? [{ debugName: \"fullValue\" }] : /* istanbul ignore next */ []));\n /**\n * What the cell renders: the backend's string, or a compact form of it when\n * the amount is large enough that the currency token would be truncated away.\n * See {@link compactCurrencyDisplay} (finding H-06).\n */\n displayValue = computed(() => compactCurrencyDisplay(this.fullValue(), this.data()?.rawValue, this.locale()), ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityCurrency, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.8\", type: EntityCurrency, isStandalone: true, selector: \"mt-entity-currency\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n [mtTooltip]=\\\"fullValue()\\\"\\n tooltipPosition=\\\"top\\\"\\n >\\n {{ displayValue() }}\\n </span>\\n</mt-entity-field>\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"directive\", type: Tooltip, selector: \"[mtTooltip]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityCurrency, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-currency', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Tooltip], template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n [mtTooltip]=\\\"fullValue()\\\"\\n tooltipPosition=\\\"top\\\"\\n >\\n {{ displayValue() }}\\n </span>\\n</mt-entity-field>\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });","originalLength":4416,"removedExports":[],"renderedExports":["EntityCurrency"],"renderedLength":3929},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-checkbox/entity-checkbox.js":{"code":"class EntityCheckbox {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n rawValue = input(...(ngDevMode ? [undefined, { debugName: \"rawValue\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n hideName = computed(() => isEntityLabelHidden(this.data()?.configuration), ...(ngDevMode ? [{ debugName: \"hideName\" }] : /* istanbul ignore next */ []));\n checkboxState = computed(() => {\n const raw = this.data()?.rawValue ?? this.rawValue();\n if (raw !== undefined && raw !== null) {\n return this.parseBoolean(raw);\n }\n const val = this.data()?.value ?? this.value();\n if (typeof val === 'string') {\n return this.parseBoolean(val);\n }\n return null;\n }, ...(ngDevMode ? [{ debugName: \"checkboxState\" }] : /* istanbul ignore next */ []));\n parseBoolean(value) {\n const normalized = value.trim().toLowerCase();\n if (!normalized.length) {\n return null;\n }\n if (normalized === 'true') {\n return true;\n }\n if (normalized === 'false') {\n return false;\n }\n return null;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityCheckbox, isStandalone: true, selector: \"mt-entity-checkbox\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, rawValue: { classPropertyName: \"rawValue\", publicName: \"rawValue\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<div class=\\\"flex items-center gap-2\\\">\\r\\n @if (checkboxState() === true) {\\r\\n <svg class=\\\"w-5 h-5 text-green-500\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else if (checkboxState() === false) {\\r\\n <svg class=\\\"w-5 h-5 text-gray-300\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n</div>\\r\\n\", changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityCheckbox, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: \"<div class=\\\"flex items-center gap-2\\\">\\r\\n @if (checkboxState() === true) {\\r\\n <svg class=\\\"w-5 h-5 text-green-500\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else if (checkboxState() === false) {\\r\\n <svg class=\\\"w-5 h-5 text-gray-300\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n</div>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], rawValue: [{ type: i0.Input, args: [{ isSignal: true, alias: \"rawValue\", required: false }] }] } });","originalLength":5940,"removedExports":[],"renderedExports":["EntityCheckbox"],"renderedLength":5670},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-long-text/entity-long-text.js":{"code":"class EntityLongText {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => {\n const d = this.data();\n const raw = d\n ? typeof d.value === 'string'\n ? d.value\n : null\n : this.value();\n if (isValueMissing(raw)) {\n return ENTITY_EMPTY_VALUE_PLACEHOLDER;\n }\n return raw;\n }, ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLongText, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.8\", type: EntityLongText, isStandalone: true, selector: \"mt-entity-long-text\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"text-sm font-semibold break-words\\\"\\r\\n [innerHTML]=\\\"displayValue()\\\"\\r\\n ></div>\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLongText, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-long-text', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"text-sm font-semibold break-words\\\"\\r\\n [innerHTML]=\\\"displayValue()\\\"\\r\\n ></div>\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });","originalLength":3340,"removedExports":[],"renderedExports":["EntityLongText"],"renderedLength":3014},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-lookup/entity-lookup.js":{"code":"class EntityLookup {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n lookupValues = computed(() => {\n const value = this.data()?.value ?? this.value();\n if (Array.isArray(value)) {\n return value;\n }\n if (typeof value === 'object' && value !== null) {\n return [value];\n }\n return [];\n }, ...(ngDevMode ? [{ debugName: \"lookupValues\" }] : /* istanbul ignore next */ []));\n lookupBadgeStyle(lookup) {\n if (!lookup?.color)\n return {};\n return {\n color: lookup.color,\n backgroundColor: this.hexToRgba(lookup.color, 0.12),\n };\n }\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n lookupLabel(lookup) {\n return displayOrPlaceholder(lookup.display);\n }\n hexToRgba(hex, alpha) {\n const r = parseInt(hex.slice(1, 3), 16);\n const g = parseInt(hex.slice(3, 5), 16);\n const b = parseInt(hex.slice(5, 7), 16);\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLookup, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityLookup, isStandalone: true, selector: \"mt-entity-lookup\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (lookupValues().length) {\\r\\n <div class=\\\"flex flex-wrap gap-2\\\" data-testid=\\\"lookup-values\\\">\\r\\n @for (lookup of lookupValues(); track lookup.key) {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md px-3 py-2 text-xs font-semibold\\\"\\r\\n data-testid=\\\"lookup-value\\\"\\r\\n [style]=\\\"lookupBadgeStyle(lookup)\\\"\\r\\n >\\r\\n {{ lookupLabel(lookup) }}\\r\\n </span>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLookup, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-lookup', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (lookupValues().length) {\\r\\n <div class=\\\"flex flex-wrap gap-2\\\" data-testid=\\\"lookup-values\\\">\\r\\n @for (lookup of lookupValues(); track lookup.key) {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md px-3 py-2 text-xs font-semibold\\\"\\r\\n data-testid=\\\"lookup-value\\\"\\r\\n [style]=\\\"lookupBadgeStyle(lookup)\\\"\\r\\n >\\r\\n {{ lookupLabel(lookup) }}\\r\\n </span>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });","originalLength":5035,"removedExports":[],"renderedExports":["EntityLookup"],"renderedLength":4706},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-sections.util.js":{"code":"/**\n * A section is persisted/transported as an ordinary display item whose\n * `propertyKey` carries this sentinel prefix instead of a real property key\n * (mirrors the LeafDetails synthetic-key convention). Both the customization\n * builder and the runtime renderer recognize it, so the constant lives here in\n * the shared entities layer rather than in either consumer.\n */\nconst SECTION_KEY_PREFIX = '__section__::';\n/** True when a display item's key denotes a section marker. */\nfunction isSectionKey(key) {\n return typeof key === 'string' && key.startsWith(SECTION_KEY_PREFIX);\n}\n/** Mints a unique section marker key. */\nfunction buildSectionKey() {\n return `${SECTION_KEY_PREFIX}${crypto.randomUUID()}`;\n}\n/**\n * Resolves a localized label (`{ en, ar }`) for the given language, falling\n * back across locales. Returns '' when nothing is set.\n */\nfunction resolveLocalizedLabel(label, lang) {\n if (!label)\n return '';\n const primary = lang === 'ar' ? label.ar : label.en;\n return (primary || label.en || label.ar || '').trim();\n}\n/** True when the entity is a `Section` layout marker rather than a value. */\nfunction isEntitySection(entity) {\n return entity?.viewType === 'Section';\n}\n/**\n * Splits a flat, order-sorted entity list into section groups. Membership is\n * purely positional: each entity belongs to whichever `Section` marker precedes\n * it. Pass the output of `buildDisplayEntities` (already sorted by `order`).\n *\n * Zero markers → a single `{ section: null }` group holding everything, so the\n * bare-grid rendering is unchanged. Empty leading/trailing runs are dropped.\n */\nfunction groupEntitiesIntoSections(entities) {\n const groups = [];\n let current = { section: null, entities: [] };\n const flush = () => {\n if (current.section || current.entities.length > 0) {\n groups.push(current);\n }\n };\n for (const entity of entities) {\n if (isEntitySection(entity)) {\n flush();\n current = { section: entity, entities: [] };\n }\n else {\n current.entities.push(entity);\n }\n }\n flush();\n return groups;\n}\n/**\n * Resolves a section marker's display label for the given language, falling\n * back across locales and finally to the entity's `name`.\n */\nfunction getEntitySectionTitle(section, lang) {\n if (!section)\n return '';\n const label = section.configuration\n ?.label;\n return resolveLocalizedLabel(label, lang) || (section.name ?? '');\n}","originalLength":2612,"removedExports":[],"renderedExports":["SECTION_KEY_PREFIX","isSectionKey","buildSectionKey","resolveLocalizedLabel","isEntitySection","groupEntitiesIntoSections","getEntitySectionTitle"],"renderedLength":2514},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-phase-gate/entity-phase-gate.js":{"code":"/** `#RGB` / `#RRGGBB`. Anything else is used as-is for the text color only. */\nconst HEX_COLOR_PATTERN = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\n/**\n * Badge color used when the phase gate carries no `color`. `color` is optional\n * presentation metadata, so a phase gate without one must still read as a\n * badge rather than as bare text — this is the same neutral slate the table\n * falls back to for uncategorized status chips.\n */\nconst DEFAULT_PHASE_GATE_COLOR = '#475569';\n/**\n * Preview renderer for `PhaseGate` properties — a calculated, read-only lookup\n * pointing at the schema phase gate the record currently sits on. It renders\n * exactly like {@link EntityLookup} (colored badge) but resolves its label\n * per-language.\n *\n * Label resolution, in order:\n * 1. `value.ar` / `value.en` for the active language — the backend sends both\n * so a client-side language switch re-renders without a refetch, which is\n * why they win over the already-resolved `display`.\n * 2. `value.display`, then the other locale.\n * 3. The flat display, for payloads that send the value as a bare string\n * (comparison snapshots build their sides that way).\n * 4. `rawValue` — the schema phase-gate id — as a last resort.\n */\nclass EntityPhaseGate {\n transloco = inject(TranslocoService);\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n activeLang = toSignal(this.transloco.langChanges$, {\n initialValue: this.transloco.getActiveLang(),\n });\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n phaseGateValue = computed(() => {\n const value = this.data()?.value;\n if (value && typeof value === 'object' && !Array.isArray(value)) {\n return value;\n }\n return this.value() ?? null;\n }, ...(ngDevMode ? [{ debugName: \"phaseGateValue\" }] : /* istanbul ignore next */ []));\n /** Resolved label, or `null` when nothing at all is available. */\n resolvedLabel = computed(() => {\n const phaseGate = this.phaseGateValue();\n if (phaseGate) {\n const localized = resolveLocalizedLabel(phaseGate, this.activeLang());\n const label = localized || phaseGate.display?.trim();\n if (label)\n return label;\n }\n return this.flatDisplay() ?? this.rawId();\n }, ...(ngDevMode ? [{ debugName: \"resolvedLabel\" }] : /* istanbul ignore next */ []));\n hasValue = computed(() => this.resolvedLabel() !== null, ...(ngDevMode ? [{ debugName: \"hasValue\" }] : /* istanbul ignore next */ []));\n phaseGateLabel = computed(() => displayOrPlaceholder(this.resolvedLabel()), ...(ngDevMode ? [{ debugName: \"phaseGateLabel\" }] : /* istanbul ignore next */ []));\n badgeStyle = computed(() => {\n const color = this.phaseGateValue()?.color?.trim() || DEFAULT_PHASE_GATE_COLOR;\n if (!HEX_COLOR_PATTERN.test(color))\n return { color };\n return {\n color,\n backgroundColor: this.hexToRgba(color, 0.12),\n };\n }, ...(ngDevMode ? [{ debugName: \"badgeStyle\" }] : /* istanbul ignore next */ []));\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n /** The value flattened to a plain display string by the sender. */\n flatDisplay() {\n const value = this.data()?.value;\n return typeof value === 'string' && value.trim() ? value.trim() : null;\n }\n /** The schema phase-gate id. */\n rawId() {\n const rawValue = this.data()?.rawValue;\n return typeof rawValue === 'string' && rawValue.trim()\n ? rawValue.trim()\n : null;\n }\n hexToRgba(hex, alpha) {\n const expanded = hex.length === 4\n ? `#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`\n : hex;\n const r = parseInt(expanded.slice(1, 3), 16);\n const g = parseInt(expanded.slice(3, 5), 16);\n const b = parseInt(expanded.slice(5, 7), 16);\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPhaseGate, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityPhaseGate, isStandalone: true, selector: \"mt-entity-phase-gate\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasValue()) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ phaseGateLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPhaseGate, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-phase-gate', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasValue()) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ phaseGateLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });","originalLength":7592,"removedExports":[],"renderedExports":["DEFAULT_PHASE_GATE_COLOR","EntityPhaseGate"],"renderedLength":7069},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-attachment/entity-attachment.js":{"code":"class EntityAttachment {\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n shape = input('default', ...(ngDevMode ? [{ debugName: \"shape\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n endPoint = input('uploader', ...(ngDevMode ? [{ debugName: \"endPoint\" }] : /* istanbul ignore next */ []));\n context = input(undefined, ...(ngDevMode ? [{ debugName: \"context\" }] : /* istanbul ignore next */ []));\n httpClient = inject(HttpClient);\n transloco = inject(TranslocoService);\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n loading = signal(false, ...(ngDevMode ? [{ debugName: \"loading\" }] : /* istanbul ignore next */ []));\n attachments = signal([], ...(ngDevMode ? [{ debugName: \"attachments\" }] : /* istanbul ignore next */ []));\n /** Key of the compact chip currently hovered, so it can reveal the download affordance. */\n hoveredAttachmentKey = signal(null, ...(ngDevMode ? [{ debugName: \"hoveredAttachmentKey\" }] : /* istanbul ignore next */ []));\n attachmentReferences = computed(() => this.normalizeAttachmentValue(this.data()?.value ?? this.value()), ...(ngDevMode ? [{ debugName: \"attachmentReferences\" }] : /* istanbul ignore next */ []));\n uploadValue = computed(() => {\n const references = this.attachmentReferences().map((reference) => {\n if (typeof reference === 'string') {\n return reference.trim();\n }\n if (reference.fileName) {\n return reference;\n }\n return reference.id?.trim() || reference;\n });\n if (!references.length) {\n return null;\n }\n return references.length === 1 ? references[0] : references;\n }, ...(ngDevMode ? [{ debugName: \"uploadValue\" }] : /* istanbul ignore next */ []));\n hasAttachments = computed(() => this.shape() === 'compact'\n ? this.attachments().length > 0\n : this.uploadValue() != null, ...(ngDevMode ? [{ debugName: \"hasAttachments\" }] : /* istanbul ignore next */ []));\n isMultiple = computed(() => this.attachmentReferences().length > 1, ...(ngDevMode ? [{ debugName: \"isMultiple\" }] : /* istanbul ignore next */ []));\n acceptTypes = computed(() => this.normalizeAcceptTypes(this.data()?.configuration?.['AcceptTypes']), ...(ngDevMode ? [{ debugName: \"acceptTypes\" }] : /* istanbul ignore next */ []));\n empty = '-';\n constructor() {\n effect((onCleanup) => {\n if (this.shape() !== 'compact') {\n this.loading.set(false);\n this.attachments.set([]);\n return;\n }\n const references = this.attachmentReferences();\n if (!references.length) {\n this.loading.set(false);\n this.attachments.set([]);\n return;\n }\n const shouldFetchMetadata = references.some((reference) => this.requiresMetadataRequest(reference));\n if (!shouldFetchMetadata) {\n this.attachments.set(references.filter(this.isAttachmentItemValue).map((reference) => ({\n ...reference,\n name: reference.name ??\n reference.fileName ??\n reference.id ??\n reference.name,\n extension: this.resolveExtension(reference),\n })));\n this.loading.set(false);\n return;\n }\n this.loading.set(true);\n const sub = forkJoin(references.map((reference) => this.resolveAttachment$(reference)))\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe((attachments) => {\n this.attachments.set(attachments.filter((attachment) => attachment != null));\n });\n onCleanup(() => sub.unsubscribe());\n });\n }\n attachmentTrackBy(index, attachment) {\n return (attachment.id ?? attachment.fileName ?? attachment.name ?? String(index));\n }\n attachmentTooltip(attachment) {\n const name = attachment.name ??\n attachment.fileName ??\n attachment.id ??\n this.transloco.translate('components.entitiesPreview.attachment');\n return this.transloco.translate('components.entitiesPreview.downloadAttachment', { name });\n }\n /**\n * Compact chips are clickable downloads but only show a file-type glyph,\n * which doesn't read as actionable. Swap to a download icon while hovered\n * so the action is obvious.\n */\n attachmentActionIcon(index, attachment) {\n return this.hoveredAttachmentKey() ===\n this.attachmentTrackBy(index, attachment)\n ? 'general.download-01'\n : this.attachmentIcon(attachment);\n }\n attachmentIcon(attachment) {\n const extension = this.resolveExtension(attachment);\n const contentType = attachment.contentType?.toLowerCase() ?? '';\n if (contentType.startsWith('image/')) {\n return 'image.image-03';\n }\n switch (extension) {\n case '.pdf':\n return 'file.file-06';\n case '.doc':\n case '.docx':\n case '.txt':\n case '.rtf':\n return 'file.file-04';\n case '.xls':\n case '.xlsx':\n case '.csv':\n return 'file.file-03';\n case '.ppt':\n case '.pptx':\n return 'file.file-05';\n default:\n return 'file.clipboard-attachment';\n }\n }\n onCompactAttachmentClick(event, attachment) {\n event.stopPropagation();\n this.downloadAttachment(attachment);\n }\n downloadAttachment(attachment) {\n const resolvedAttachment$ = this.requiresMetadataRequest(attachment)\n ? this.resolveAttachment$(attachment)\n : of(this.normalizeAttachmentItem(attachment));\n resolvedAttachment$\n .pipe(take(1), switchMap((resolvedAttachment) => {\n if (!resolvedAttachment?.fileName) {\n return EMPTY;\n }\n return this.httpClient\n .get(`${this.endPoint()}/${resolvedAttachment.fileName}`, {\n responseType: 'blob',\n context: this.context(),\n })\n .pipe(take(1), map((blob) => ({\n attachment: resolvedAttachment,\n blob,\n })));\n }))\n .subscribe(({ attachment, blob }) => {\n const downloadBlob = new Blob([blob], {\n type: attachment.contentType || blob.type || 'application/octet-stream',\n });\n const objectUrl = window.URL.createObjectURL(downloadBlob);\n const anchor = document.createElement('a');\n anchor.href = objectUrl;\n anchor.download =\n attachment.name ??\n attachment.fileName ??\n attachment.id ??\n 'attachment';\n anchor.click();\n window.URL.revokeObjectURL(objectUrl);\n });\n }\n resolveAttachment$(reference) {\n const normalizedAttachment = this.normalizeAttachmentItem(reference);\n if (!this.requiresMetadataRequest(reference)) {\n return of(normalizedAttachment);\n }\n const attachmentId = typeof reference === 'string' ? reference.trim() : reference.id?.trim();\n if (!attachmentId) {\n return of(normalizedAttachment);\n }\n return this.httpClient\n .get(`${this.endPoint()}/${attachmentId}/metaData`, {\n context: this.context(),\n })\n .pipe(take(1), map((response) => this.normalizeAttachmentItem(response.data)), catchError(() => of(normalizedAttachment)));\n }\n normalizeAttachmentValue(value) {\n if (value === null || value === undefined) {\n return [];\n }\n if (Array.isArray(value)) {\n return value.flatMap((item) => this.normalizeAttachmentValue(item));\n }\n if (typeof value === 'string') {\n const trimmedValue = value.trim();\n if (!trimmedValue || trimmedValue === '[]') {\n return [];\n }\n if ((trimmedValue.startsWith('[') && trimmedValue.endsWith(']')) ||\n (trimmedValue.startsWith('{') && trimmedValue.endsWith('}'))) {\n try {\n return this.normalizeAttachmentValue(JSON.parse(trimmedValue));\n }\n catch {\n return [trimmedValue];\n }\n }\n return [trimmedValue];\n }\n if (typeof value === 'object') {\n const envelope = value;\n // Backend attachment envelope:\n // { value: <id | id[]>, attachments: [{ value: <id>, name, fileName }] }\n // The stored items don't carry the storage key (their `fileName` is the\n // display name), only the upload id, so resolve every attachment by its\n // id through the metadata endpoint — the same contract\n // `mt-upload-field` uses.\n if (Array.isArray(envelope.attachments)) {\n return envelope.attachments.flatMap((item) => this.normalizeAttachmentValue(item));\n }\n // A single backend attachment item carries its upload id under `value`.\n if (typeof envelope.value === 'string' &&\n envelope.id === undefined &&\n (envelope.fileName !== undefined || envelope.name !== undefined)) {\n return this.normalizeAttachmentValue(envelope.value);\n }\n // Envelope with no resolved attachments yet — unwrap the inner id(s).\n if ('value' in envelope &&\n envelope.id === undefined &&\n envelope.fileName === undefined &&\n envelope.name === undefined) {\n return this.normalizeAttachmentValue(envelope.value);\n }\n return [value];\n }\n return [];\n }\n normalizeAttachmentItem(value) {\n if (!value) {\n return null;\n }\n if (typeof value === 'string') {\n const trimmedValue = value.trim();\n return trimmedValue\n ? {\n id: trimmedValue,\n name: trimmedValue,\n }\n : null;\n }\n const normalizedAttachment = {\n ...value,\n name: value.name ?? value.fileName ?? value.id ?? '',\n extension: this.resolveExtension(value),\n };\n return normalizedAttachment.name ||\n normalizedAttachment.fileName ||\n normalizedAttachment.id\n ? normalizedAttachment\n : null;\n }\n requiresMetadataRequest(reference) {\n if (typeof reference === 'string') {\n return reference.trim().length > 0;\n }\n return !!reference.id?.trim() && !reference.fileName;\n }\n isAttachmentItemValue(reference) {\n return typeof reference === 'object' && reference != null;\n }\n resolveExtension(value) {\n const explicitExtension = value.extension?.trim();\n if (explicitExtension) {\n return explicitExtension.startsWith('.')\n ? explicitExtension.toLowerCase()\n : `.${explicitExtension.toLowerCase()}`;\n }\n const fileName = value.fileName ?? value.name;\n if (!fileName || !fileName.includes('.')) {\n return undefined;\n }\n return `.${fileName.split('.').pop().toLowerCase()}`;\n }\n normalizeAcceptTypes(value) {\n if (Array.isArray(value)) {\n const acceptTypes = value\n .map((item) => (typeof item === 'string' ? item.trim() : ''))\n .filter(Boolean);\n return acceptTypes.length ? acceptTypes.join(',') : undefined;\n }\n if (typeof value === 'string') {\n const acceptTypes = value.trim();\n return acceptTypes || undefined;\n }\n return undefined;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityAttachment, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityAttachment, isStandalone: true, selector: \"mt-entity-attachment\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: \"shape\", publicName: \"shape\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, endPoint: { classPropertyName: \"endPoint\", publicName: \"endPoint\", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: \"context\", publicName: \"context\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"relaxed\\\"\\r\\n>\\r\\n @if (hasAttachments()) {\\r\\n @if (shape() === \\\"compact\\\") {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (\\r\\n attachment of attachments();\\r\\n track attachmentTrackBy($index, attachment)\\r\\n ) {\\r\\n <mt-button\\r\\n iconPos=\\\"top\\\"\\r\\n size=\\\"small\\\"\\r\\n severity=\\\"secondary\\\"\\r\\n variant=\\\"outlined\\\"\\r\\n [icon]=\\\"attachmentActionIcon($index, attachment)\\\"\\r\\n [tooltip]=\\\"attachmentTooltip(attachment)\\\"\\r\\n styleClass=\\\"h-9! w-9! rounded-lg! transition-all duration-200 hover:scale-105 hover:border-primary-500! hover:text-primary-600! hover:bg-primary-50!\\\"\\r\\n (onClick)=\\\"onCompactAttachmentClick($event, attachment)\\\"\\r\\n (mouseenter)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (mouseleave)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n (onFocus)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (onBlur)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <mt-upload-field\\r\\n class=\\\"w-full\\\"\\r\\n [ngModel]=\\\"uploadValue()\\\"\\r\\n [ngModelOptions]=\\\"{ standalone: true }\\\"\\r\\n [shape]=\\\"'card'\\\"\\r\\n [multiple]=\\\"isMultiple()\\\"\\r\\n [readonly]=\\\"true\\\"\\r\\n [endPoint]=\\\"endPoint()\\\"\\r\\n [accept]=\\\"acceptTypes()\\\"\\r\\n [context]=\\\"context()\\\"\\r\\n />\\r\\n }\\r\\n } @else {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ empty }}</span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"ngmodule\", type: FormsModule }, { kind: \"directive\", type: i1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i1.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"component\", type: UploadField, selector: \"mt-upload-field\", inputs: [\"label\", \"title\", \"description\", \"endPoint\", \"size\", \"userImgClass\", \"shape\", \"multiple\", \"accept\", \"isDragging\", \"fileSizeLimit\", \"readonly\", \"context\"], outputs: [\"isDraggingChange\", \"onChange\"] }, { kind: \"component\", type: Button, selector: \"mt-button\", inputs: [\"icon\", \"label\", \"tooltip\", \"class\", \"type\", \"styleClass\", \"severity\", \"badge\", \"variant\", \"badgeSeverity\", \"size\", \"iconPos\", \"autofocus\", \"fluid\", \"raised\", \"rounded\", \"text\", \"plain\", \"outlined\", \"link\", \"disabled\", \"loading\", \"pInputs\", \"ariaLabel\"], outputs: [\"onClick\", \"onFocus\", \"onBlur\"] }, { kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityAttachment, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-attachment', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FormsModule, UploadField, Button, EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"relaxed\\\"\\r\\n>\\r\\n @if (hasAttachments()) {\\r\\n @if (shape() === \\\"compact\\\") {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (\\r\\n attachment of attachments();\\r\\n track attachmentTrackBy($index, attachment)\\r\\n ) {\\r\\n <mt-button\\r\\n iconPos=\\\"top\\\"\\r\\n size=\\\"small\\\"\\r\\n severity=\\\"secondary\\\"\\r\\n variant=\\\"outlined\\\"\\r\\n [icon]=\\\"attachmentActionIcon($index, attachment)\\\"\\r\\n [tooltip]=\\\"attachmentTooltip(attachment)\\\"\\r\\n styleClass=\\\"h-9! w-9! rounded-lg! transition-all duration-200 hover:scale-105 hover:border-primary-500! hover:text-primary-600! hover:bg-primary-50!\\\"\\r\\n (onClick)=\\\"onCompactAttachmentClick($event, attachment)\\\"\\r\\n (mouseenter)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (mouseleave)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n (onFocus)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (onBlur)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <mt-upload-field\\r\\n class=\\\"w-full\\\"\\r\\n [ngModel]=\\\"uploadValue()\\\"\\r\\n [ngModelOptions]=\\\"{ standalone: true }\\\"\\r\\n [shape]=\\\"'card'\\\"\\r\\n [multiple]=\\\"isMultiple()\\\"\\r\\n [readonly]=\\\"true\\\"\\r\\n [endPoint]=\\\"endPoint()\\\"\\r\\n [accept]=\\\"acceptTypes()\\\"\\r\\n [context]=\\\"context()\\\"\\r\\n />\\r\\n }\\r\\n } @else {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ empty }}</span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"shape\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], endPoint: [{ type: i0.Input, args: [{ isSignal: true, alias: \"endPoint\", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: \"context\", required: false }] }] } });","originalLength":20081,"removedExports":[],"renderedExports":["EntityAttachment"],"renderedLength":19419},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-location/entity-location.js":{"code":"class EntityLocation {\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n location = computed(() => normalizeEntityLocation(this.data()?.value), ...(ngDevMode ? [{ debugName: \"location\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => displayOrPlaceholder(this.location()?.display_name ?? this.location()?.address ?? null), ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n coordinates = computed(() => {\n const location = this.location();\n const lat = location?.lat;\n const lon = location?.lon ?? location?.lng;\n if (lat === undefined || lon === undefined || lat === '' || lon === '') {\n return '';\n }\n return `${lat}, ${lon}`;\n }, ...(ngDevMode ? [{ debugName: \"coordinates\" }] : /* istanbul ignore next */ []));\n mapsUrl = computed(() => {\n const location = this.location();\n const lat = location?.lat;\n const lon = location?.lon ?? location?.lng;\n if (lat === undefined || lon === undefined || lat === '' || lon === '') {\n return '';\n }\n return `https://www.google.com/maps/?q=${encodeURIComponent(`${lat},${lon}`)}`;\n }, ...(ngDevMode ? [{ debugName: \"mapsUrl\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLocation, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityLocation, isStandalone: true, selector: \"mt-entity-location\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [labelIconName]=\\\"'map.marker-pin-01'\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (mapsUrl()) {\\r\\n <a\\r\\n [href]=\\\"mapsUrl()\\\"\\r\\n target=\\\"_blank\\\"\\r\\n rel=\\\"noopener noreferrer\\\"\\r\\n class=\\\"flex min-w-0 max-w-full items-center gap-1.5 text-sm font-semibold text-primary-600 hover:text-primary-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"map.marker-pin-01\\\" size=\\\"sm\\\" class=\\\"shrink-0\\\" />\\r\\n <span class=\\\"min-w-0 truncate\\\">{{ displayValue() }}</span>\\r\\n </a>\\r\\n } @else {\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (coordinates()) {\\r\\n <div class=\\\"min-w-0 truncate text-xs text-gray-500\\\">\\r\\n {{ coordinates() }}\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"component\", type: Icon, selector: \"mt-icon\", inputs: [\"icon\"] }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLocation, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-location', changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityField, Icon, TruncateTooltip], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [labelIconName]=\\\"'map.marker-pin-01'\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (mapsUrl()) {\\r\\n <a\\r\\n [href]=\\\"mapsUrl()\\\"\\r\\n target=\\\"_blank\\\"\\r\\n rel=\\\"noopener noreferrer\\\"\\r\\n class=\\\"flex min-w-0 max-w-full items-center gap-1.5 text-sm font-semibold text-primary-600 hover:text-primary-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"map.marker-pin-01\\\" size=\\\"sm\\\" class=\\\"shrink-0\\\" />\\r\\n <span class=\\\"min-w-0 truncate\\\">{{ displayValue() }}</span>\\r\\n </a>\\r\\n } @else {\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (coordinates()) {\\r\\n <div class=\\\"min-w-0 truncate text-xs text-gray-500\\\">\\r\\n {{ coordinates() }}\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }] } });\nfunction normalizeEntityLocation(value) {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n if (typeof value === 'string') {\n const trimmed = value.trim();\n if (!trimmed)\n return null;\n try {\n return normalizeEntityLocation(JSON.parse(trimmed));\n }\n catch {\n return {\n display_name: trimmed,\n address: trimmed,\n };\n }\n }\n if (typeof value !== 'object' || Array.isArray(value)) {\n return {\n display_name: String(value),\n address: String(value),\n };\n }\n const source = value;\n const displayName = readString(source['display_name']) ??\n readString(source['displayName']) ??\n readString(source['address']) ??\n readString(source['name']);\n const lon = source['lon'] ?? source['lng'];\n return {\n ...source,\n ...(displayName ? { display_name: displayName, address: displayName } : {}),\n ...(lon !== undefined ? { lon: lon } : {}),\n };\n}\nfunction readString(value) {\n return typeof value === 'string' && value.trim() ? value.trim() : undefined;\n}","originalLength":6432,"removedExports":[],"renderedExports":["EntityLocation"],"renderedLength":6026},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-connection/entity-connection.js":{"code":"class EntityConnection {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n /** The connection display lives on `rawValue.display`; fall back to `value`. */\n connection = computed(() => {\n const d = this.data();\n return (normalizeEntityConnection(d?.value ?? d?.rawValue) ??\n normalizeEntityConnection(this.value()));\n }, ...(ngDevMode ? [{ debugName: \"connection\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => displayOrPlaceholder(this.connection()?.display), ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityConnection, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.8\", type: EntityConnection, isStandalone: true, selector: \"mt-entity-connection\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityConnection, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-connection', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });\nfunction normalizeEntityConnection(value) {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n if (typeof value === 'string') {\n const trimmed = value.trim();\n if (!trimmed)\n return null;\n try {\n return normalizeEntityConnection(JSON.parse(trimmed));\n }\n catch {\n return { display: trimmed };\n }\n }\n if (typeof value !== 'object' || Array.isArray(value)) {\n return { display: String(value) };\n }\n const source = value;\n // Parsed payload uses `display`; the serialized JSON value uses `Display`.\n const display = typeof source['display'] === 'string'\n ? source['display']\n : typeof source['Display'] === 'string'\n ? source['Display']\n : undefined;\n return { ...source, ...(display !== undefined ? { display } : {}) };\n}","originalLength":4641,"removedExports":[],"renderedExports":["EntityConnection"],"renderedLength":4275},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-schedule-item/entity-schedule-item.js":{"code":"/**\n * Preview renderer for `ScheduleItemSelector` properties.\n *\n * The value is the array of resolved schedule items returned by runtime\n * rendering (`{ id, name, status, ... }`); each one is shown as a chip.\n */\nclass EntityScheduleItem {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n items = computed(() => {\n const value = this.data()?.value;\n if (!Array.isArray(value))\n return [];\n return value.filter((item) => !!item && typeof item === 'object' && 'name' in item);\n }, ...(ngDevMode ? [{ debugName: \"items\" }] : /* istanbul ignore next */ []));\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityScheduleItem, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityScheduleItem, isStandalone: true, selector: \"mt-entity-schedule-item\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (items().length) {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (item of items(); track item.id) {\\r\\n <mt-chip [label]=\\\"item.name\\\" size=\\\"small\\\" />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"component\", type: Chip, selector: \"mt-chip\", inputs: [\"label\", \"icon\", \"image\", \"removable\", \"removeIcon\", \"styleClass\", \"size\"], outputs: [\"onRemove\", \"onImageError\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityScheduleItem, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-schedule-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Chip], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (items().length) {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (item of items(); track item.id) {\\r\\n <mt-chip [label]=\\\"item.name\\\" size=\\\"small\\\" />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }] } });","originalLength":3707,"removedExports":[],"renderedExports":["EntityScheduleItem"],"renderedLength":3342},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-leaf-details/entity-leaf-details.js":{"code":"/** Neutral grey for a status the catalog left without a colour. */\nconst DEFAULT_STATUS_COLOR = '#9CA3AF';\nclass EntityLeafDetails {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n leafValue = computed(() => {\n const v = this.data().value;\n if (v && typeof v === 'object' && !Array.isArray(v) && 'levelId' in v) {\n return v;\n }\n return null;\n }, ...(ngDevMode ? [{ debugName: \"leafValue\" }] : /* istanbul ignore next */ []));\n /** Label shown below the badges: \"Level Name (total)\" */\n labelWithTotal = computed(() => {\n const leaf = this.leafValue();\n const name = this.data().name ?? leaf?.levelName ?? '';\n if (!leaf)\n return name;\n const total = leaf.statuses.reduce((sum, s) => sum + s.count, 0);\n return `${name} (${total})`;\n }, ...(ngDevMode ? [{ debugName: \"labelWithTotal\" }] : /* istanbul ignore next */ []));\n labelIcon = computed(() => this.leafValue()?.levelIcon ?? null, ...(ngDevMode ? [{ debugName: \"labelIcon\" }] : /* istanbul ignore next */ []));\n statusColor(color) {\n return color ?? DEFAULT_STATUS_COLOR;\n }\n /**\n * Foreground for the count, chosen against the badge colour instead of always\n * white — a light catalog colour measured 2.59:1 with white on it, the lowest\n * contrast in the product (findings M-04, H-03).\n */\n statusTextColor(color) {\n return readableTextOn(this.statusColor(color));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLeafDetails, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityLeafDetails, isStandalone: true, selector: \"mt-entity-leaf-details\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"labelWithTotal()\\\"\\r\\n [labelIconName]=\\\"labelIcon()\\\"\\r\\n [configuration]=\\\"data().configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (leafValue(); as leaf) {\\r\\n <div class=\\\"flex flex-wrap gap-1.5\\\">\\r\\n @for (status of leaf.statuses; track status.key) {\\r\\n <!--\\r\\n The badge is a count, and the colour is the only thing saying WHICH\\r\\n count \\u2014 so the status name has to be reachable without hovering, and\\r\\n the number has to be legible on whatever hex the tenant's catalog\\r\\n carries. The tooltip names it for a pointer, the aria-label names it\\r\\n for a screen reader, and the foreground is chosen against the badge\\r\\n colour rather than hardcoded white (findings M-04, H-03).\\r\\n -->\\r\\n <div\\r\\n class=\\\"flex h-7 min-w-7 items-center justify-center rounded-lg px-1.5 text-xs font-bold tabular-nums\\\"\\r\\n role=\\\"img\\\"\\r\\n [style.background-color]=\\\"statusColor(status.color)\\\"\\r\\n [style.color]=\\\"statusTextColor(status.color)\\\"\\r\\n [attr.aria-label]=\\\"status.display + ': ' + status.count\\\"\\r\\n [pTooltip]=\\\"status.display\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ status.count }}\\r\\n </div>\\r\\n }\\r\\n @if (leaf.statuses.length === 0) {\\r\\n <span class=\\\"text-sm text-muted-color\\\">\\u2014</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"ngmodule\", type: TooltipModule }, { kind: \"directive\", type: i1$1.Tooltip, selector: \"[pTooltip]\", inputs: [\"tooltipPosition\", \"tooltipEvent\", \"positionStyle\", \"tooltipStyleClass\", \"tooltipZIndex\", \"escape\", \"showDelay\", \"hideDelay\", \"life\", \"positionTop\", \"positionLeft\", \"autoHide\", \"fitContent\", \"hideOnEscape\", \"showOnEllipsis\", \"pTooltip\", \"tooltipDisabled\", \"tooltipOptions\", \"appendTo\", \"ptTooltip\", \"pTooltipPT\", \"pTooltipUnstyled\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLeafDetails, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-leaf-details', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityField, TooltipModule], template: \"<mt-entity-field\\r\\n [label]=\\\"labelWithTotal()\\\"\\r\\n [labelIconName]=\\\"labelIcon()\\\"\\r\\n [configuration]=\\\"data().configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (leafValue(); as leaf) {\\r\\n <div class=\\\"flex flex-wrap gap-1.5\\\">\\r\\n @for (status of leaf.statuses; track status.key) {\\r\\n <!--\\r\\n The badge is a count, and the colour is the only thing saying WHICH\\r\\n count \\u2014 so the status name has to be reachable without hovering, and\\r\\n the number has to be legible on whatever hex the tenant's catalog\\r\\n carries. The tooltip names it for a pointer, the aria-label names it\\r\\n for a screen reader, and the foreground is chosen against the badge\\r\\n colour rather than hardcoded white (findings M-04, H-03).\\r\\n -->\\r\\n <div\\r\\n class=\\\"flex h-7 min-w-7 items-center justify-center rounded-lg px-1.5 text-xs font-bold tabular-nums\\\"\\r\\n role=\\\"img\\\"\\r\\n [style.background-color]=\\\"statusColor(status.color)\\\"\\r\\n [style.color]=\\\"statusTextColor(status.color)\\\"\\r\\n [attr.aria-label]=\\\"status.display + ': ' + status.count\\\"\\r\\n [pTooltip]=\\\"status.display\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ status.count }}\\r\\n </div>\\r\\n }\\r\\n @if (leaf.statuses.length === 0) {\\r\\n <span class=\\\"text-sm text-muted-color\\\">\\u2014</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }] } });","originalLength":6499,"removedExports":[],"renderedExports":["EntityLeafDetails"],"renderedLength":6118},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-preview/entity-value-preview.js":{"code":"/**\n * Renders an entity value by view type.\n *\n * `LookupModuleCheckList` is deliberately not handled here: that component\n * renders each of its nested properties *through* this one, so routing it back\n * through here would make the two files import each other. `EntityPreviewBody`\n * owns that case and delegates every other view type to this component.\n */\nclass EntityValuePreview {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n attachmentShape = input('default', ...(ngDevMode ? [{ debugName: \"attachmentShape\" }] : /* istanbul ignore next */ []));\n /** Lookup variants share the same colored-badge renderer. */\n previewType = computed(() => {\n const viewType = this.data().viewType;\n return viewType === 'LookupMatrix' || viewType === 'LookupMultiSelect'\n ? 'Lookup'\n : viewType;\n }, ...(ngDevMode ? [{ debugName: \"previewType\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityValuePreview, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityValuePreview, isStandalone: true, selector: \"mt-entity-value-preview\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: \"attachmentShape\", publicName: \"attachmentShape\", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: \"block min-w-0 w-full\" }, ngImport: i0, template: \"@switch (previewType()) {\\r\\n @case (\\\"Text\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LongText\\\") {\\r\\n <mt-entity-long-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Date\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"DateTime\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'DateTime'\\\" />\\r\\n }\\r\\n @case (\\\"Time\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'Time'\\\" />\\r\\n }\\r\\n @case (\\\"User\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"MultiUser\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Percentage\\\") {\\r\\n <mt-entity-percentage [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Currency\\\") {\\r\\n <mt-entity-currency [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Number\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Checkbox\\\") {\\r\\n <mt-entity-checkbox [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Lookup\\\") {\\r\\n <mt-entity-lookup [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Status\\\") {\\r\\n <mt-entity-status [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"PhaseGate\\\") {\\r\\n <mt-entity-phase-gate [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Attachment\\\") {\\r\\n <mt-entity-attachment [data]=\\\"data()\\\" [shape]=\\\"attachmentShape()\\\" />\\r\\n }\\r\\n @case (\\\"Location\\\") {\\r\\n <mt-entity-location [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Connection\\\") {\\r\\n <mt-entity-connection [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"ScheduleItemSelector\\\") {\\r\\n <mt-entity-schedule-item [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LeafDetails\\\") {\\r\\n <mt-entity-leaf-details [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n}\\r\\n\", dependencies: [{ kind: \"component\", type: EntityText, selector: \"mt-entity-text\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityLongText, selector: \"mt-entity-long-text\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityDate, selector: \"mt-entity-date\", inputs: [\"data\", \"name\", \"value\", \"viewType\"] }, { kind: \"component\", type: EntityUser, selector: \"mt-entity-user\", inputs: [\"data\"] }, { kind: \"component\", type: EntityPercentage, selector: \"mt-entity-percentage\", inputs: [\"data\", \"name\", \"value\", \"rawValue\"] }, { kind: \"component\", type: EntityCurrency, selector: \"mt-entity-currency\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityCheckbox, selector: \"mt-entity-checkbox\", inputs: [\"data\", \"name\", \"value\", \"rawValue\"] }, { kind: \"component\", type: EntityLookup, selector: \"mt-entity-lookup\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityPhaseGate, selector: \"mt-entity-phase-gate\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityAttachment, selector: \"mt-entity-attachment\", inputs: [\"data\", \"name\", \"shape\", \"value\", \"endPoint\", \"context\"] }, { kind: \"component\", type: EntityStatus, selector: \"mt-entity-status\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityLeafDetails, selector: \"mt-entity-leaf-details\", inputs: [\"data\"] }, { kind: \"component\", type: EntityLocation, selector: \"mt-entity-location\", inputs: [\"data\"] }, { kind: \"component\", type: EntityConnection, selector: \"mt-entity-connection\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityScheduleItem, selector: \"mt-entity-schedule-item\", inputs: [\"data\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityValuePreview, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-value-preview', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [\n EntityText,\n EntityLongText,\n EntityDate,\n EntityUser,\n EntityPercentage,\n EntityCurrency,\n EntityCheckbox,\n EntityLookup,\n EntityPhaseGate,\n EntityAttachment,\n EntityStatus,\n EntityLeafDetails,\n EntityLocation,\n EntityConnection,\n EntityScheduleItem,\n ], host: {\n class: 'block min-w-0 w-full',\n }, template: \"@switch (previewType()) {\\r\\n @case (\\\"Text\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LongText\\\") {\\r\\n <mt-entity-long-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Date\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"DateTime\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'DateTime'\\\" />\\r\\n }\\r\\n @case (\\\"Time\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'Time'\\\" />\\r\\n }\\r\\n @case (\\\"User\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"MultiUser\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Percentage\\\") {\\r\\n <mt-entity-percentage [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Currency\\\") {\\r\\n <mt-entity-currency [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Number\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Checkbox\\\") {\\r\\n <mt-entity-checkbox [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Lookup\\\") {\\r\\n <mt-entity-lookup [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Status\\\") {\\r\\n <mt-entity-status [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"PhaseGate\\\") {\\r\\n <mt-entity-phase-gate [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Attachment\\\") {\\r\\n <mt-entity-attachment [data]=\\\"data()\\\" [shape]=\\\"attachmentShape()\\\" />\\r\\n }\\r\\n @case (\\\"Location\\\") {\\r\\n <mt-entity-location [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Connection\\\") {\\r\\n <mt-entity-connection [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"ScheduleItemSelector\\\") {\\r\\n <mt-entity-schedule-item [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LeafDetails\\\") {\\r\\n <mt-entity-leaf-details [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"attachmentShape\", required: false }] }] } });","originalLength":9375,"removedExports":[],"renderedExports":["EntityValuePreview"],"renderedLength":8159},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.js":{"code":"/**\n * Nested props render inside the entry card's own grid, so they take the label\n * treatment and leave sizing to the grid.\n */\nconst NESTED_PROP_CONFIG = {\n labelPosition: 'top',\n hideLabel: false,\n};\n/**\n * Derive a readable label from a raw lookup key. The stored checklist value\n * only carries the key of the selected lookup item (e.g. `Open_test`) and the\n * response resolves no display for it, so this strips separators and\n * title-cases the key.\n */\nfunction humanizeKey(key) {\n const words = key\n .replace(/[_-]+/g, ' ')\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .trim();\n if (!words)\n return key;\n return words.charAt(0).toUpperCase() + words.slice(1);\n}\nclass EntityLookupModuleCheckList {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n /**\n * Catalog metadata for the captured properties, keyed by property key. The\n * stored value carries keys only — this is what gives each nested prop its\n * label and view type.\n */\n metaByKey = computed(() => {\n const map = new Map();\n for (const meta of this.data().nestedProperties ?? []) {\n map.set(meta.key, meta);\n }\n return map;\n }, ...(ngDevMode ? [{ debugName: \"metaByKey\" }] : /* istanbul ignore next */ []));\n /**\n * Normalizes the stored value into a flat list of checklist entries.\n * Accepts both the rendered view model (`{ items: [...] }`) and the raw\n * stored array (`[{ lookupKey, props }]`); returns `[]` for anything else.\n */\n items = computed(() => {\n const raw = this.data().value;\n const entries = this.extractEntries(raw);\n return entries\n .filter((entry) => entry && typeof entry === 'object')\n .map((entry) => {\n const record = entry;\n const props = record['props'] ?? record['Props'];\n const lookupKey = this.resolveLookupKey(entry);\n return {\n lookupKey,\n lookupLabel: humanizeKey(lookupKey),\n props: (Array.isArray(props) ? props : []).map((prop) => this.toNestedEntity(prop)),\n };\n });\n }, ...(ngDevMode ? [{ debugName: \"items\" }] : /* istanbul ignore next */ []));\n hasItems = computed(() => this.items().length > 0, ...(ngDevMode ? [{ debugName: \"hasItems\" }] : /* istanbul ignore next */ []));\n emptyLabel = displayOrPlaceholder(null);\n /**\n * Builds the entity for one captured property. Without catalog metadata the\n * key is all there is to show it with, so it degrades to a humanized label\n * and plain text.\n */\n toNestedEntity(prop) {\n const propRecord = (prop ?? {});\n const key = String(propRecord['key'] ?? propRecord['Key'] ?? '');\n const meta = this.metaByKey().get(key);\n const value = propRecord['value'] ?? propRecord['Value'] ?? null;\n return {\n propertyId: meta?.id,\n key,\n normalizedKey: meta?.normalizedKey,\n name: meta?.label ?? humanizeKey(key),\n value: (value ?? ''),\n viewType: meta?.viewType ?? 'Text',\n propertyConfiguration: meta?.configuration,\n configuration: NESTED_PROP_CONFIG,\n order: meta?.order,\n };\n }\n extractEntries(raw) {\n if (Array.isArray(raw)) {\n return raw;\n }\n const wrapped = raw?.items;\n if (Array.isArray(wrapped)) {\n return wrapped;\n }\n if (typeof raw === 'string' && raw.trim()) {\n try {\n return this.extractEntries(JSON.parse(raw));\n }\n catch {\n return [];\n }\n }\n return [];\n }\n resolveLookupKey(entry) {\n const record = entry;\n const key = entry.lookupKey ?? record['Lookupkey'] ?? record['lookupkey'];\n return typeof key === 'string' ? key : '';\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLookupModuleCheckList, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityLookupModuleCheckList, isStandalone: true, selector: \"mt-entity-lookup-module-check-list\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"data().name ?? ''\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasItems()) {\\r\\n <div class=\\\"flex flex-col gap-2\\\">\\r\\n @for (item of items(); track $index) {\\r\\n <div\\r\\n class=\\\"rounded-lg border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-primary-50 px-2 py-1 text-xs font-semibold text-primary-700\\\"\\r\\n >\\r\\n {{ item.lookupLabel || emptyLabel }}\\r\\n </span>\\r\\n @if (item.props.length) {\\r\\n <div class=\\\"mt-2 grid grid-cols-1 gap-x-4 gap-y-3 sm:grid-cols-2\\\">\\r\\n @for (prop of item.props; track prop.key) {\\r\\n <div class=\\\"min-w-0 overflow-hidden\\\">\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"prop\\\"\\r\\n attachmentShape=\\\"compact\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-gray-100 px-3 py-2 text-xs font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"component\", type: EntityValuePreview, selector: \"mt-entity-value-preview\", inputs: [\"data\", \"attachmentShape\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLookupModuleCheckList, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-lookup-module-check-list', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityField, EntityValuePreview], template: \"<mt-entity-field\\r\\n [label]=\\\"data().name ?? ''\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasItems()) {\\r\\n <div class=\\\"flex flex-col gap-2\\\">\\r\\n @for (item of items(); track $index) {\\r\\n <div\\r\\n class=\\\"rounded-lg border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-primary-50 px-2 py-1 text-xs font-semibold text-primary-700\\\"\\r\\n >\\r\\n {{ item.lookupLabel || emptyLabel }}\\r\\n </span>\\r\\n @if (item.props.length) {\\r\\n <div class=\\\"mt-2 grid grid-cols-1 gap-x-4 gap-y-3 sm:grid-cols-2\\\">\\r\\n @for (prop of item.props; track prop.key) {\\r\\n <div class=\\\"min-w-0 overflow-hidden\\\">\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"prop\\\"\\r\\n attachmentShape=\\\"compact\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-gray-100 px-3 py-2 text-xs font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }] } });","originalLength":8400,"removedExports":[],"renderedExports":["EntityLookupModuleCheckList"],"renderedLength":8009},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/leaf-details-display.utils.js":{"code":"const LEAF_DETAILS_KEY_SEPARATOR = '::leaflevel::';\nfunction isLeafDetailsStatusSummary(value) {\n return (!!value &&\n typeof value === 'object' &&\n 'key' in value &&\n 'display' in value &&\n 'count' in value);\n}\nfunction isLeafDetailsCatalogStatusValue(value) {\n return (!!value && typeof value === 'object' && 'key' in value && 'display' in value);\n}\nfunction isLeafDetailsCatalogLevelValue(value) {\n return (!!value &&\n typeof value === 'object' &&\n 'levelId' in value &&\n 'levelName' in value &&\n 'levelIcon' in value &&\n 'statuses' in value &&\n Array.isArray(value.statuses) &&\n value.statuses.every(isLeafDetailsCatalogStatusValue));\n}\nfunction isLeafDetailsRuntimeStatusDetails(value) {\n return (!!value && typeof value === 'object' && 'key' in value && 'display' in value);\n}\nfunction isLeafDetailsRuntimeStatusCount(value) {\n return (!!value &&\n typeof value === 'object' &&\n 'details' in value &&\n isLeafDetailsRuntimeStatusDetails(value.details) &&\n 'count' in value);\n}\nfunction isLeafDetailsRuntimeChildSchema(value) {\n return (!!value &&\n typeof value === 'object' &&\n 'levelId' in value &&\n 'levelName' in value &&\n 'levelIcon' in value &&\n 'statuses' in value &&\n Array.isArray(value.statuses) &&\n value.statuses.every(isLeafDetailsRuntimeStatusCount));\n}\nfunction isLeafDetailsValue(value) {\n return (!!value &&\n typeof value === 'object' &&\n !Array.isArray(value) &&\n 'levelId' in value &&\n 'statuses' in value &&\n Array.isArray(value.statuses) &&\n value.statuses.every(isLeafDetailsStatusSummary));\n}\nfunction isLeafDetailsCollectionValue(value) {\n return Array.isArray(value) && value.every(isLeafDetailsValue);\n}\nfunction isLeafDetailsCatalogConfiguration(value) {\n return Array.isArray(value) && value.every(isLeafDetailsCatalogLevelValue);\n}\nfunction isLeafDetailsRuntimeValue(value) {\n return (!!value &&\n typeof value === 'object' &&\n !Array.isArray(value) &&\n 'childSchemas' in value &&\n Array.isArray(value.childSchemas) &&\n value.childSchemas.every(isLeafDetailsRuntimeChildSchema));\n}\nfunction isLeafDetailsSyntheticKey(key) {\n return key?.includes(LEAF_DETAILS_KEY_SEPARATOR) ?? false;\n}\nfunction toLeafDetailsStatusSummary(status) {\n return {\n key: status.details.key,\n display: status.details.display,\n color: status.details.color ?? null,\n count: status.count,\n };\n}\nfunction normalizeLeafDetailsCollection(value) {\n if (isLeafDetailsCollectionValue(value)) {\n return value;\n }\n if (isLeafDetailsValue(value)) {\n return [value];\n }\n if (isLeafDetailsRuntimeValue(value)) {\n return value.childSchemas.map((schema) => ({\n levelId: schema.levelId,\n levelName: schema.levelName,\n levelIcon: schema.levelIcon,\n statuses: schema.statuses.map(toLeafDetailsStatusSummary),\n }));\n }\n if (typeof value === 'string' && value.trim().length > 0) {\n try {\n return normalizeLeafDetailsCollection(JSON.parse(value));\n }\n catch {\n return [];\n }\n }\n return [];\n}\nfunction normalizeLeafDetailsCatalogConfiguration(value) {\n if (isLeafDetailsCatalogConfiguration(value)) {\n return value.map((level) => ({\n levelId: level.levelId,\n levelName: level.levelName,\n levelIcon: level.levelIcon,\n statuses: level.statuses.map((status) => ({\n key: status.key,\n display: status.display,\n color: status.color ?? null,\n count: 0,\n })),\n }));\n }\n if (typeof value === 'string' && value.trim().length > 0) {\n try {\n return normalizeLeafDetailsCatalogConfiguration(JSON.parse(value));\n }\n catch {\n return [];\n }\n }\n return [];\n}\nfunction expandLeafDetailsEntity(entity) {\n if (entity.viewType !== 'LeafDetails') {\n return [entity];\n }\n if (isLeafDetailsSyntheticKey(entity.key) &&\n isLeafDetailsValue(entity.value)) {\n return [entity];\n }\n const configuration = entity.configuration;\n const levels = normalizeLeafDetailsCollection(entity.value);\n const fallbackLevels = levels.length\n ? levels\n : normalizeLeafDetailsCollection(entity.rawValue);\n const resolvedLevels = fallbackLevels.length\n ? fallbackLevels\n : normalizeLeafDetailsCatalogConfiguration(entity.propertyConfiguration);\n if (resolvedLevels.length === 0) {\n return [entity];\n }\n const expanded = resolvedLevels.flatMap((level) => {\n const levelConfig = configuration?.leafLevels?.[String(level.levelId)];\n if (configuration?.leafLevels && !levelConfig) {\n return [];\n }\n const selectedStatuses = levelConfig?.selectedStatuses?.length\n ? new Set(levelConfig.selectedStatuses)\n : null;\n return [\n {\n ...entity,\n key: entity.key\n ? `${entity.key}${LEAF_DETAILS_KEY_SEPARATOR}${level.levelId}`\n : entity.key,\n name: level.levelName,\n value: {\n ...level,\n statuses: selectedStatuses\n ? level.statuses.filter((status) => selectedStatuses.has(status.key))\n : level.statuses,\n },\n order: levelConfig?.order ?? entity.order,\n configuration: {\n ...configuration,\n size: levelConfig?.size ?? configuration?.size,\n },\n },\n ];\n });\n return expanded.length > 0 ? expanded : [entity];\n}\nfunction buildDisplayEntities(entities) {\n return entities\n .flatMap((entity) => expandLeafDetailsEntity(entity))\n .sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n}","originalLength":6239,"removedExports":[],"renderedExports":["LEAF_DETAILS_KEY_SEPARATOR","isLeafDetailsValue","isLeafDetailsCollectionValue","isLeafDetailsCatalogConfiguration","isLeafDetailsRuntimeValue","isLeafDetailsSyntheticKey","expandLeafDetailsEntity","buildDisplayEntities"],"renderedLength":6128},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-preview/entity-preview-body.js":{"code":"class EntityPreviewBody {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n attachmentShape = input('default', ...(ngDevMode ? [{ debugName: \"attachmentShape\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPreviewBody, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityPreviewBody, isStandalone: true, selector: \"mt-entity-preview-body\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: \"attachmentShape\", publicName: \"attachmentShape\", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: \"w-full\" }, ngImport: i0, template: \"@if (data().viewType === \\\"LookupModuleCheckList\\\") {\\r\\n <mt-entity-lookup-module-check-list [data]=\\\"data()\\\" />\\r\\n} @else {\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n}\\r\\n\", dependencies: [{ kind: \"component\", type: EntityLookupModuleCheckList, selector: \"mt-entity-lookup-module-check-list\", inputs: [\"data\"] }, { kind: \"component\", type: EntityValuePreview, selector: \"mt-entity-value-preview\", inputs: [\"data\", \"attachmentShape\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPreviewBody, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-preview-body', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityLookupModuleCheckList, EntityValuePreview], host: {\n class: 'w-full',\n }, template: \"@if (data().viewType === \\\"LookupModuleCheckList\\\") {\\r\\n <mt-entity-lookup-module-check-list [data]=\\\"data()\\\" />\\r\\n} @else {\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"attachmentShape\", required: false }] }] } });","originalLength":2746,"removedExports":[],"renderedExports":["EntityPreviewBody"],"renderedLength":2404},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/comparison/comparison-value/comparison-value.js":{"code":"class ComparisonValue {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n comparison = computed(() => {\n const c = this.data().comparison;\n return c?.kind === 'Value' ? c : null;\n }, ...(ngDevMode ? [{ debugName: \"comparison\" }] : /* istanbul ignore next */ []));\n oldEntity = computed(() => this.buildSide(this.comparison()?.oldValue), ...(ngDevMode ? [{ debugName: \"oldEntity\" }] : /* istanbul ignore next */ []));\n newEntity = computed(() => this.buildSide(this.comparison()?.newValue), ...(ngDevMode ? [{ debugName: \"newEntity\" }] : /* istanbul ignore next */ []));\n buildSide(side) {\n if (!side)\n return null;\n const base = this.data();\n return {\n ...base,\n rawValue: side.raw === null || side.raw === undefined\n ? undefined\n : String(side.raw),\n value: (side.display ?? side.value ?? ''),\n comparison: undefined,\n };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: ComparisonValue, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: ComparisonValue, isStandalone: true, selector: \"mt-comparison-value\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: \"block w-full\" }, ngImport: i0, template: \"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 items-stretch gap-3\\\">\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-muted-color\\\"\\r\\n >Before</span\\r\\n >\\r\\n @if (oldEntity(); as old) {\\r\\n <mt-entity-preview-body [data]=\\\"old\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n <div class=\\\"flex shrink-0 items-center text-muted-color\\\" aria-hidden=\\\"true\\\">\\r\\n &rarr;\\r\\n </div>\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-primary-200 bg-primary-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-primary-600\\\"\\r\\n >After</span\\r\\n >\\r\\n @if (newEntity(); as next) {\\r\\n <mt-entity-preview-body [data]=\\\"next\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n </div>\\r\\n}\\r\\n\", dependencies: [{ kind: \"component\", type: EntityPreviewBody, selector: \"mt-entity-preview-body\", inputs: [\"data\", \"attachmentShape\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: ComparisonValue, decorators: [{\n type: Component,\n args: [{ selector: 'mt-comparison-value', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityPreviewBody], host: {\n class: 'block w-full',\n }, template: \"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 items-stretch gap-3\\\">\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-muted-color\\\"\\r\\n >Before</span\\r\\n >\\r\\n @if (oldEntity(); as old) {\\r\\n <mt-entity-preview-body [data]=\\\"old\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n <div class=\\\"flex shrink-0 items-center text-muted-color\\\" aria-hidden=\\\"true\\\">\\r\\n &rarr;\\r\\n </div>\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-primary-200 bg-primary-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-primary-600\\\"\\r\\n >After</span\\r\\n >\\r\\n @if (newEntity(); as next) {\\r\\n <mt-entity-preview-body [data]=\\\"next\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n </div>\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }] } });","originalLength":4788,"removedExports":[],"renderedExports":["ComparisonValue"],"renderedLength":4535},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/comparison/comparison-entity-list/comparison-entity-list.js":{"code":"const OPERATION_BADGE_KEYS = {\n CreateRecord: {\n key: 'components.comparisonEntities.added',\n classes: 'bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-200',\n },\n UpdateRecord: {\n key: 'components.comparisonEntities.updated',\n classes: 'bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-200',\n },\n DeleteRecord: {\n key: 'components.comparisonEntities.removed',\n classes: 'bg-rose-50 text-rose-700 ring-1 ring-inset ring-rose-200',\n },\n};\nclass ComparisonEntityList {\n transloco = inject(TranslocoService);\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n comparison = computed(() => {\n const c = this.data().comparison;\n return c?.kind === 'EntityList' ? c : null;\n }, ...(ngDevMode ? [{ debugName: \"comparison\" }] : /* istanbul ignore next */ []));\n rows = computed(() => this.comparison()?.rows ?? [], ...(ngDevMode ? [{ debugName: \"rows\" }] : /* istanbul ignore next */ []));\n targetModuleKey = computed(() => this.comparison()?.targetModuleKey ?? '', ...(ngDevMode ? [{ debugName: \"targetModuleKey\" }] : /* istanbul ignore next */ []));\n label = computed(() => this.data().name ?? '', ...(ngDevMode ? [{ debugName: \"label\" }] : /* istanbul ignore next */ []));\n badgeFor(op) {\n const config = OPERATION_BADGE_KEYS[op];\n return {\n label: this.transloco.translate(config.key),\n classes: config.classes,\n };\n }\n displayField(value, display) {\n if (display && display.trim().length > 0)\n return display;\n return displayOrPlaceholder(value);\n }\n rowId(_i, row) {\n return row.entityId ?? _i;\n }\n oldField(row, propertyKey) {\n return row.oldValues.find((v) => v.propertyKey === propertyKey);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: ComparisonEntityList, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: ComparisonEntityList, isStandalone: true, selector: \"mt-comparison-entity-list\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: \"block w-full\" }, ngImport: i0, template: \"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 flex-col gap-2\\\">\\r\\n @if (label()) {\\r\\n <div class=\\\"flex items-baseline justify-between\\\">\\r\\n <span class=\\\"text-sm font-medium text-color\\\">{{ label() }}</span>\\r\\n @if (targetModuleKey()) {\\r\\n <span class=\\\"text-xs text-muted-color\\\">{{ targetModuleKey() }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n @if (rows().length === 0) {\\r\\n <div class=\\\"text-sm text-muted-color\\\">_</div>\\r\\n } @else {\\r\\n <ul class=\\\"flex flex-col gap-2\\\">\\r\\n @for (row of rows(); track rowId($index, row)) {\\r\\n <li\\r\\n class=\\\"flex flex-col gap-2 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <div class=\\\"flex items-center justify-between gap-2\\\">\\r\\n <span\\r\\n class=\\\"inline-flex items-center rounded px-2 py-0.5 text-xs font-medium\\\"\\r\\n [class]=\\\"badgeFor(row.operation).classes\\\"\\r\\n >\\r\\n {{ badgeFor(row.operation).label }}\\r\\n </span>\\r\\n <span class=\\\"text-xs text-muted-color\\\">#{{ row.entityId }}</span>\\r\\n </div>\\r\\n\\r\\n @switch (row.operation) {\\r\\n @case (\\\"CreateRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @case (\\\"DeleteRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.oldValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color line-through\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @default {\\r\\n <dl class=\\\"flex flex-col gap-1\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\">\\r\\n <span\\r\\n class=\\\"max-w-[40%] truncate text-sm text-muted-color line-through\\\"\\r\\n >\\r\\n {{\\r\\n displayField(\\r\\n $any(oldField(row, f.propertyKey))?.value,\\r\\n $any(oldField(row, f.propertyKey))?.display\\r\\n )\\r\\n }}\\r\\n </span>\\r\\n <span class=\\\"text-muted-color\\\" aria-hidden=\\\"true\\\"\\r\\n >&rarr;</span\\r\\n >\\r\\n <span class=\\\"max-w-[40%] truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </span>\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n }\\r\\n </li>\\r\\n }\\r\\n </ul>\\r\\n }\\r\\n </div>\\r\\n}\\r\\n\", changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: ComparisonEntityList, decorators: [{\n type: Component,\n args: [{ selector: 'mt-comparison-entity-list', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [], host: {\n class: 'block w-full',\n }, template: \"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 flex-col gap-2\\\">\\r\\n @if (label()) {\\r\\n <div class=\\\"flex items-baseline justify-between\\\">\\r\\n <span class=\\\"text-sm font-medium text-color\\\">{{ label() }}</span>\\r\\n @if (targetModuleKey()) {\\r\\n <span class=\\\"text-xs text-muted-color\\\">{{ targetModuleKey() }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n @if (rows().length === 0) {\\r\\n <div class=\\\"text-sm text-muted-color\\\">_</div>\\r\\n } @else {\\r\\n <ul class=\\\"flex flex-col gap-2\\\">\\r\\n @for (row of rows(); track rowId($index, row)) {\\r\\n <li\\r\\n class=\\\"flex flex-col gap-2 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <div class=\\\"flex items-center justify-between gap-2\\\">\\r\\n <span\\r\\n class=\\\"inline-flex items-center rounded px-2 py-0.5 text-xs font-medium\\\"\\r\\n [class]=\\\"badgeFor(row.operation).classes\\\"\\r\\n >\\r\\n {{ badgeFor(row.operation).label }}\\r\\n </span>\\r\\n <span class=\\\"text-xs text-muted-color\\\">#{{ row.entityId }}</span>\\r\\n </div>\\r\\n\\r\\n @switch (row.operation) {\\r\\n @case (\\\"CreateRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @case (\\\"DeleteRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.oldValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color line-through\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @default {\\r\\n <dl class=\\\"flex flex-col gap-1\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\">\\r\\n <span\\r\\n class=\\\"max-w-[40%] truncate text-sm text-muted-color line-through\\\"\\r\\n >\\r\\n {{\\r\\n displayField(\\r\\n $any(oldField(row, f.propertyKey))?.value,\\r\\n $any(oldField(row, f.propertyKey))?.display\\r\\n )\\r\\n }}\\r\\n </span>\\r\\n <span class=\\\"text-muted-color\\\" aria-hidden=\\\"true\\\"\\r\\n >&rarr;</span\\r\\n >\\r\\n <span class=\\\"max-w-[40%] truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </span>\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n }\\r\\n </li>\\r\\n }\\r\\n </ul>\\r\\n }\\r\\n </div>\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }] } });","originalLength":11063,"removedExports":[],"renderedExports":["ComparisonEntityList"],"renderedLength":10752},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entity-preview/entity-preview.js":{"code":"class EntityPreview {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n attachmentShape = input('default', ...(ngDevMode ? [{ debugName: \"attachmentShape\" }] : /* istanbul ignore next */ []));\n comparisonKind = computed(() => {\n const c = this.data().comparison;\n if (!c)\n return null;\n if (c.kind === 'Value')\n return 'Value';\n if (c.kind === 'EntityList')\n return 'EntityList';\n return null;\n }, ...(ngDevMode ? [{ debugName: \"comparisonKind\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityPreview, isStandalone: true, selector: \"mt-entity-preview\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: \"attachmentShape\", publicName: \"attachmentShape\", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: \"w-full\" }, ngImport: i0, template: \"@switch (comparisonKind()) {\\r\\n @case (\\\"Value\\\") {\\r\\n <mt-comparison-value [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"EntityList\\\") {\\r\\n <mt-comparison-entity-list [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-preview-body\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n }\\r\\n}\\r\\n\", dependencies: [{ kind: \"component\", type: EntityPreviewBody, selector: \"mt-entity-preview-body\", inputs: [\"data\", \"attachmentShape\"] }, { kind: \"component\", type: ComparisonValue, selector: \"mt-comparison-value\", inputs: [\"data\"] }, { kind: \"component\", type: ComparisonEntityList, selector: \"mt-comparison-entity-list\", inputs: [\"data\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPreview, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-preview', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityPreviewBody, ComparisonValue, ComparisonEntityList], host: {\n class: 'w-full',\n }, template: \"@switch (comparisonKind()) {\\r\\n @case (\\\"Value\\\") {\\r\\n <mt-comparison-value [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"EntityList\\\") {\\r\\n <mt-comparison-entity-list [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-preview-body\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n }\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"attachmentShape\", required: false }] }] } });","originalLength":3451,"removedExports":[],"renderedExports":["EntityPreview"],"renderedLength":3036},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entities-preview/entities-preview.js":{"code":"const EMPTY_KEY_SET = new Set();\n/**\n * Below this host width a field narrower than {@link MIN_NARROW_SPAN} cannot\n * hold its own value. Matches the container query in the stylesheet, which\n * handles the `stackOnNarrow` case the same way.\n */\nconst NARROW_HOST_WIDTH = 400;\n/**\n * The smallest share of the 24-column grid a field may take on a narrow host —\n * half the row.\n *\n * A card that opts out of the soft stack still laid its fields on 24 columns,\n * so a three-field row inside a ~350px card gave each field about 90px, and at\n * that width a budget rendered \"10,000 S…\" and a date \"01/07/2…\" — finding H-06\n * in its narrowest form, and the reviewer was explicit that a date must never\n * be truncated. Raising the floor to half the row is done here rather than in\n * CSS because the grid cannot be re-tracked safely: a field configured `span 24`\n * would spill into implicit columns and collapse the explicit ones to zero.\n */\nconst MIN_NARROW_SPAN = 12;\n/** Classes every entity slot carries, before its per-slot modifiers. */\nconst SLOT_BASE_CLASS = 'min-w-0 overflow-hidden flex items-center rounded transition-colors';\n/** Opt-in dashed frame (`configuration.showBorder`). */\nconst SLOT_BORDER_CLASS = 'border p-3 border-dashed border-gray-200 rounded-lg';\nclass EntitiesPreview {\n transloco = inject(TranslocoService);\n elementRef = inject(ElementRef);\n destroyRef = inject(DestroyRef);\n zone = inject(NgZone);\n /** Array of entity data to display */\n entities = input.required(...(ngDevMode ? [{ debugName: \"entities\" }] : /* istanbul ignore next */ []));\n attachmentShape = input('default', ...(ngDevMode ? [{ debugName: \"attachmentShape\" }] : /* istanbul ignore next */ []));\n /**\n * Soft \"stack every field full-width when the host is narrower than the\n * 24-column grid reads well\" behavior (the ≤400px container-query fallback,\n * default on). Set to `false` in wide-enough card layouts — e.g. client-list\n * cards (~350px) — so the per-entity `size` configuration is honored instead\n * of forcing every item to full width. A hard ≤280px stack always applies\n * regardless, so the 24-column gap floor can never overflow the host (#1081).\n */\n stackOnNarrow = input(true, ...(ngDevMode ? [{ debugName: \"stackOnNarrow\" }] : /* istanbul ignore next */ []));\n /**\n * Set of entity keys that should appear interactive (cursor pointer,\n * clicks emit). Pass `new Set([...])` from a computed signal in the host\n * for reactive enabling — when the host's set changes, Angular re-renders\n * via its normal change detection, no manual subscriptions required.\n *\n * Pass a *stable* reference: a host method that mints a fresh `Set` on every\n * call re-writes this input on every change detection pass and defeats the\n * slot memoization below.\n */\n clickableKeys = input(EMPTY_KEY_SET, ...(ngDevMode ? [{ debugName: \"clickableKeys\" }] : /* istanbul ignore next */ []));\n /**\n * Set of entity keys that should render with the \"active\" treatment\n * (e.g. currently the filter source). Same reactive pattern — and the same\n * stable-reference requirement — as `clickableKeys`.\n */\n activeKeys = input(EMPTY_KEY_SET, ...(ngDevMode ? [{ debugName: \"activeKeys\" }] : /* istanbul ignore next */ []));\n /** Tooltip text shown on hover when an entity is clickable but not active. */\n clickableTooltip = input(this.transloco.translate('components.entitiesPreview.filterByThis'), ...(ngDevMode ? [{ debugName: \"clickableTooltip\" }] : /* istanbul ignore next */ []));\n /** Tooltip text shown on hover when an entity is the current active filter. */\n activeTooltip = input(this.transloco.translate('components.entitiesPreview.clearFilter'), ...(ngDevMode ? [{ debugName: \"activeTooltip\" }] : /* istanbul ignore next */ []));\n /**\n * Emits when an individual entity slot is clicked. Only fires when the\n * entity's key is present in `clickableKeys`.\n */\n entityClick = output();\n /**\n * The active language as a signal. Section headings are resolved per-language\n * in a `computed`, so under `OnPush` a plain `getActiveLang()` read would\n * freeze them at whatever language was active on first render.\n */\n activeLang = toSignal(this.transloco.langChanges$, {\n initialValue: this.transloco.getActiveLang(),\n });\n /** Entities expanded and sorted by order */\n displayEntities = computed(() => buildDisplayEntities(this.entities()), ...(ngDevMode ? [{ debugName: \"displayEntities\" }] : /* istanbul ignore next */ []));\n /**\n * The display entities split into section groups. With no `Section` markers\n * this is a single `{ section: null }` group, so the bare grid renders\n * exactly as before.\n */\n sectionGroups = computed(() => groupEntitiesIntoSections(this.displayEntities()), ...(ngDevMode ? [{ debugName: \"sectionGroups\" }] : /* istanbul ignore next */ []));\n /**\n * The render model the template iterates. Split from `sectionGroups` on\n * purpose: grouping only re-runs when the entities themselves change, while\n * this cheap mapping re-runs when the key sets or tooltips change.\n */\n slotGroups = computed(() => {\n const clickableKeys = this.clickableKeys();\n const activeKeys = this.activeKeys();\n const clickableTooltip = this.clickableTooltip();\n const activeTooltip = this.activeTooltip();\n const lang = this.activeLang();\n const narrow = this.isNarrowHost();\n return this.sectionGroups().map((group, groupIndex) => ({\n trackKey: group.section?.key ?? `__group__${groupIndex}`,\n boxed: !!group.section,\n title: getEntitySectionTitle(group.section, lang),\n slots: group.entities.map((entity, entityIndex) => {\n const key = resolveEntityKey(entity);\n const clickable = key.length > 0 && clickableKeys.has(key);\n const active = clickable && activeKeys.has(key);\n return {\n entity,\n trackKey: entity.key ?? String(entity.order ?? entityIndex),\n containerClass: buildSlotClass(entity, clickable, active),\n colSpan: `span ${resolveSpan(entity, narrow)}`,\n clickable,\n rowClickIgnore: clickable ? 'true' : null,\n title: clickable ? (active ? activeTooltip : clickableTooltip) : null,\n };\n }),\n }));\n }, ...(ngDevMode ? [{ debugName: \"slotGroups\" }] : /* istanbul ignore next */ []));\n /**\n * Whether the host is too narrow for the 24-column grid to stay legible.\n *\n * Measured rather than assumed: this component is narrow because of the\n * column layout it sits in, not because of the viewport, so a media query\n * would answer the wrong question — the same reason the stylesheet uses a\n * container query.\n */\n hostWidth = signal(Number.POSITIVE_INFINITY, ...(ngDevMode ? [{ debugName: \"hostWidth\" }] : /* istanbul ignore next */ []));\n isNarrowHost = computed(() => this.hostWidth() <= NARROW_HOST_WIDTH, ...(ngDevMode ? [{ debugName: \"isNarrowHost\" }] : /* istanbul ignore next */ []));\n constructor() {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n const element = this.elementRef.nativeElement;\n // `ResizeObserver` callbacks fire outside Angular's zone, so writing the\n // signal there marks this component dirty but schedules nothing to act on\n // it. Running the write inside the zone is what makes the re-render happen\n // (and is a no-op passthrough in a zoneless host).\n const observer = new ResizeObserver((entries) => {\n const width = entries[0]?.contentRect.width;\n if (typeof width === 'number' && width > 0) {\n this.zone.run(() => this.hostWidth.set(width));\n }\n });\n observer.observe(element);\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n onSlotClick(source, slot) {\n if (!slot.clickable)\n return;\n source.stopPropagation();\n this.entityClick.emit({\n entity: slot.entity,\n key: resolveEntityKey(slot.entity),\n source,\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntitiesPreview, isStandalone: true, selector: \"mt-entities-preview\", inputs: { entities: { classPropertyName: \"entities\", publicName: \"entities\", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: \"attachmentShape\", publicName: \"attachmentShape\", isSignal: true, isRequired: false, transformFunction: null }, stackOnNarrow: { classPropertyName: \"stackOnNarrow\", publicName: \"stackOnNarrow\", isSignal: true, isRequired: false, transformFunction: null }, clickableKeys: { classPropertyName: \"clickableKeys\", publicName: \"clickableKeys\", isSignal: true, isRequired: false, transformFunction: null }, activeKeys: { classPropertyName: \"activeKeys\", publicName: \"activeKeys\", isSignal: true, isRequired: false, transformFunction: null }, clickableTooltip: { classPropertyName: \"clickableTooltip\", publicName: \"clickableTooltip\", isSignal: true, isRequired: false, transformFunction: null }, activeTooltip: { classPropertyName: \"activeTooltip\", publicName: \"activeTooltip\", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { entityClick: \"entityClick\" }, host: { properties: { \"class.mt-entities-stack-narrow\": \"stackOnNarrow()\" }, classAttribute: \"block min-w-0 w-full\" }, ngImport: i0, template: \"<div class=\\\"flex flex-col gap-4\\\">\\r\\n @for (group of slotGroups(); track group.trackKey) {\\r\\n @if (group.boxed) {\\r\\n <!-- Titled section box (matches the client-form section view) -->\\r\\n <div\\r\\n class=\\\"flex flex-col gap-0 overflow-hidden rounded-md border border-surface-200 bg-surface-0\\\"\\r\\n >\\r\\n @if (group.title) {\\r\\n <h3\\r\\n class=\\\"m-0 border-b border-surface-200 bg-surface-50 px-4 py-3 text-lg font-semibold text-color\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ group.title }}\\r\\n </h3>\\r\\n }\\r\\n <div class=\\\"p-4\\\">\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n </div>\\r\\n </div>\\r\\n } @else {\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\\r\\n<!--\\r\\n Every binding here reads a value the component already resolved into the slot\\r\\n (see `EntitiesPreview.slotGroups`). Keep it that way: this template runs once\\r\\n per entity per change detection pass, and a card grid renders thousands of\\r\\n them, so a method call or a fresh object literal in this block is measurably\\r\\n expensive.\\r\\n-->\\r\\n<ng-template #entityGrid let-slots>\\r\\n <div class=\\\"mt-entities-grid grid grid-cols-24 gap-x-3 gap-y-5\\\">\\r\\n @for (slot of slots; track slot.trackKey) {\\r\\n <div\\r\\n [class]=\\\"slot.containerClass\\\"\\r\\n [attr.data-row-click-ignore]=\\\"slot.rowClickIgnore\\\"\\r\\n [attr.title]=\\\"slot.title\\\"\\r\\n [style.grid-column]=\\\"slot.colSpan\\\"\\r\\n (click)=\\\"onSlotClick($event, slot)\\\"\\r\\n >\\r\\n <mt-entity-preview\\r\\n [data]=\\\"slot.entity\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n</ng-template>\\r\\n\", styles: [\":host{container-type:inline-size}@container (max-width: 400px){:host(.mt-entities-stack-narrow) .mt-entities-grid{grid-template-columns:1fr;column-gap:0}:host(.mt-entities-stack-narrow) .mt-entities-grid>*{grid-column:1 / -1!important}}@container (max-width: 280px){.mt-entities-grid{grid-template-columns:1fr;column-gap:0}.mt-entities-grid>*{grid-column:1 / -1!important}}.mt-entity-filterable{cursor:url(\\\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54L22 3z'/%3E%3C/svg%3E\\\") 7 3,zoom-in!important}.mt-entity-filter-active{cursor:url(\\\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%2314b8a6' stroke='%2314b8a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54L22 3z'/%3E%3C/svg%3E\\\") 7 3,zoom-out!important}.mt-entity-filterable:hover{background-color:#ccfbf147;outline:1px dashed rgb(20 184 166 / .28);outline-offset:2px}.mt-entity-filter-active{background-color:#ccfbf14d;box-shadow:inset 0 0 0 1.5px #14b8a666,0 0 0 1px #ffffff80}\\n\"], dependencies: [{ kind: \"component\", type: EntityPreview, selector: \"mt-entity-preview\", inputs: [\"data\", \"attachmentShape\"] }, { kind: \"directive\", type: NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesPreview, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entities-preview', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityPreview, NgTemplateOutlet], host: {\n class: 'block min-w-0 w-full',\n '[class.mt-entities-stack-narrow]': 'stackOnNarrow()',\n }, template: \"<div class=\\\"flex flex-col gap-4\\\">\\r\\n @for (group of slotGroups(); track group.trackKey) {\\r\\n @if (group.boxed) {\\r\\n <!-- Titled section box (matches the client-form section view) -->\\r\\n <div\\r\\n class=\\\"flex flex-col gap-0 overflow-hidden rounded-md border border-surface-200 bg-surface-0\\\"\\r\\n >\\r\\n @if (group.title) {\\r\\n <h3\\r\\n class=\\\"m-0 border-b border-surface-200 bg-surface-50 px-4 py-3 text-lg font-semibold text-color\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ group.title }}\\r\\n </h3>\\r\\n }\\r\\n <div class=\\\"p-4\\\">\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n </div>\\r\\n </div>\\r\\n } @else {\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\\r\\n<!--\\r\\n Every binding here reads a value the component already resolved into the slot\\r\\n (see `EntitiesPreview.slotGroups`). Keep it that way: this template runs once\\r\\n per entity per change detection pass, and a card grid renders thousands of\\r\\n them, so a method call or a fresh object literal in this block is measurably\\r\\n expensive.\\r\\n-->\\r\\n<ng-template #entityGrid let-slots>\\r\\n <div class=\\\"mt-entities-grid grid grid-cols-24 gap-x-3 gap-y-5\\\">\\r\\n @for (slot of slots; track slot.trackKey) {\\r\\n <div\\r\\n [class]=\\\"slot.containerClass\\\"\\r\\n [attr.data-row-click-ignore]=\\\"slot.rowClickIgnore\\\"\\r\\n [attr.title]=\\\"slot.title\\\"\\r\\n [style.grid-column]=\\\"slot.colSpan\\\"\\r\\n (click)=\\\"onSlotClick($event, slot)\\\"\\r\\n >\\r\\n <mt-entity-preview\\r\\n [data]=\\\"slot.entity\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n</ng-template>\\r\\n\", styles: [\":host{container-type:inline-size}@container (max-width: 400px){:host(.mt-entities-stack-narrow) .mt-entities-grid{grid-template-columns:1fr;column-gap:0}:host(.mt-entities-stack-narrow) .mt-entities-grid>*{grid-column:1 / -1!important}}@container (max-width: 280px){.mt-entities-grid{grid-template-columns:1fr;column-gap:0}.mt-entities-grid>*{grid-column:1 / -1!important}}.mt-entity-filterable{cursor:url(\\\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54L22 3z'/%3E%3C/svg%3E\\\") 7 3,zoom-in!important}.mt-entity-filter-active{cursor:url(\\\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%2314b8a6' stroke='%2314b8a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54L22 3z'/%3E%3C/svg%3E\\\") 7 3,zoom-out!important}.mt-entity-filterable:hover{background-color:#ccfbf147;outline:1px dashed rgb(20 184 166 / .28);outline-offset:2px}.mt-entity-filter-active{background-color:#ccfbf14d;box-shadow:inset 0 0 0 1.5px #14b8a666,0 0 0 1px #ffffff80}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { entities: [{ type: i0.Input, args: [{ isSignal: true, alias: \"entities\", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"attachmentShape\", required: false }] }], stackOnNarrow: [{ type: i0.Input, args: [{ isSignal: true, alias: \"stackOnNarrow\", required: false }] }], clickableKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: \"clickableKeys\", required: false }] }], activeKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: \"activeKeys\", required: false }] }], clickableTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: \"clickableTooltip\", required: false }] }], activeTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: \"activeTooltip\", required: false }] }], entityClick: [{ type: i0.Output, args: [\"entityClick\"] }] } });\n/**\n * The column span a field renders at: its configured size, floored to half the\n * row once the host is too narrow for that size to hold the value.\n */\nfunction resolveSpan(entity, narrow) {\n const size = (entity.configuration?.size ?? 8);\n return narrow && size < MIN_NARROW_SPAN ? MIN_NARROW_SPAN : size;\n}\n/** Stable key resolution shared with the host — must agree on order. */\nfunction resolveEntityKey(entity) {\n return entity.key || entity.normalizedKey || entity.name || '';\n}\nfunction buildSlotClass(entity, clickable, active) {\n let result = SLOT_BASE_CLASS;\n if (entity.configuration?.showBorder)\n result += ` ${SLOT_BORDER_CLASS}`;\n if (clickable) {\n result += active ? ' mt-entity-filter-active' : ' mt-entity-filterable';\n }\n return result;\n}","originalLength":19603,"removedExports":[],"renderedExports":["EntitiesPreview"],"renderedLength":18981},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entities-manage/entities-resize-base.js":{"code":"/**\n * Base class that encapsulates all entity resize-via-drag logic.\n *\n * Extend this directive in any component that needs column-resize behaviour\n * on a 24-column CSS grid. The subclass must:\n * - Provide a `model.required<EntityData[]>()` (or equivalent) for the\n * entity list so `updateEntitySize()` can be called after resize.\n * - Contain a `.grid` element (or override `getGridElement()`).\n *\n * Resize flow:\n * 1. `onResizeStart(event, entity)` — called from a mousedown on the handle\n * 2. mousemove → snaps to nearest column, updates `resizePreviewSize`\n * 3. mouseup → emits `entityResized` with previous & new size\n */\nclass EntitiesResizeBase {\n elRef = inject(ElementRef);\n zone = inject(NgZone);\n doc = inject(DOCUMENT);\n /** Emits when an entity is resized via the drag handle */\n entityResized = output();\n // ── Resize state ──\n /** The entity currently being resized (null when idle) */\n resizingEntity = signal(null, ...(ngDevMode ? [{ debugName: \"resizingEntity\" }] : /* istanbul ignore next */ []));\n /** Live preview size while dragging */\n resizePreviewSize = signal(null, ...(ngDevMode ? [{ debugName: \"resizePreviewSize\" }] : /* istanbul ignore next */ []));\n /** Bound listeners kept for cleanup */\n _onMouseMove = null;\n _onMouseUp = null;\n // ── Public API ──\n /**\n * Returns the grid element used to compute column widths.\n * Override if the grid selector differs.\n */\n getGridElement() {\n return this.elRef.nativeElement.querySelector('.grid');\n }\n /**\n * Returns the grid-column span string for a given entity.\n * While resizing the active entity, returns the preview size.\n */\n getResizeColSpan(entity) {\n if (this.resizingEntity() === entity && this.resizePreviewSize() !== null) {\n return `span ${this.resizePreviewSize()}`;\n }\n const size = entity.configuration?.size ?? 8;\n return `span ${size}`;\n }\n /** Starts a resize operation from the right-edge handle */\n onResizeStart(event, entity) {\n // Prevent the drag-drop from starting\n event.preventDefault();\n event.stopPropagation();\n const gridEl = this.getGridElement();\n if (!gridEl)\n return;\n const gridRect = gridEl.getBoundingClientRect();\n const gridWidth = gridRect.width;\n const columnWidth = gridWidth / 24;\n const previousSize = entity.configuration?.size ?? 8;\n // Left edge of the entity cell\n const cellEl = event.target.closest('.entity-cell');\n if (!cellEl)\n return;\n const cellRect = cellEl.getBoundingClientRect();\n const isRtl = this.doc.documentElement.getAttribute('dir') === 'rtl' ||\n getComputedStyle(this.doc.documentElement).direction === 'rtl';\n this.resizingEntity.set(entity);\n this.resizePreviewSize.set(previousSize);\n // Run mouse listeners outside Angular zone for performance\n this.zone.runOutsideAngular(() => {\n this._onMouseMove = (e) => {\n // In RTL the logical end is the left edge; dragging left widens the cell\n const rawWidth = isRtl\n ? cellRect.right - e.clientX\n : e.clientX - cellRect.left;\n // Snap to nearest full column (min 1, max 12)\n let cols = Math.round(rawWidth / columnWidth);\n cols = Math.max(1, Math.min(24, cols));\n const current = this.resizePreviewSize();\n if (current !== cols) {\n this.zone.run(() => this.resizePreviewSize.set(cols));\n }\n };\n this._onMouseUp = () => {\n this._cleanupListeners();\n const newSize = this.resizePreviewSize();\n this.resizingEntity.set(null);\n this.resizePreviewSize.set(null);\n if (newSize !== previousSize) {\n this.zone.run(() => {\n this.onResizeComplete(entity, previousSize, newSize);\n });\n }\n };\n this.doc.addEventListener('mousemove', this._onMouseMove);\n this.doc.addEventListener('mouseup', this._onMouseUp, { once: true });\n });\n }\n /** Removes global mouse listeners */\n _cleanupListeners() {\n if (this._onMouseMove) {\n this.doc.removeEventListener('mousemove', this._onMouseMove);\n this._onMouseMove = null;\n }\n if (this._onMouseUp) {\n this.doc.removeEventListener('mouseup', this._onMouseUp);\n this._onMouseUp = null;\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesResizeBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"21.2.8\", type: EntitiesResizeBase, isStandalone: true, outputs: { entityResized: \"entityResized\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesResizeBase, decorators: [{\n type: Directive\n }], propDecorators: { entityResized: [{ type: i0.Output, args: [\"entityResized\"] }] } });","originalLength":5560,"removedExports":[],"renderedExports":["EntitiesResizeBase"],"renderedLength":5335},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/entities-manage/entities-manage.js":{"code":"class EntitiesManage extends EntitiesResizeBase {\n /** Array of entity data – supports two-way binding to keep order in sync */\n entities = model.required(...(ngDevMode ? [{ debugName: \"entities\" }] : /* istanbul ignore next */ []));\n /** Emits the reordered entities array after each drag-drop */\n entitiesReordered = output();\n /** Emits when an entity cell is clicked (for opening edit drawer) */\n entityClicked = output();\n /**\n * Emits when an item dragged from a *different* connected list (e.g. a sidebar\n * \"add section\" tool) is dropped onto this grid. `index` is the target slot;\n * `data` is the dropped `cdkDragData`. The host decides what to insert.\n */\n externalItemDropped = output();\n /** Entities expanded and sorted by their configured order */\n displayEntities = computed(() => buildDisplayEntities(this.entities()), ...(ngDevMode ? [{ debugName: \"displayEntities\" }] : /* istanbul ignore next */ []));\n /** Returns the grid-column span for a given entity size (1-24) */\n getColSpan(entity) {\n if (isEntitySection(entity))\n return 'span 24';\n return this.getResizeColSpan(entity);\n }\n /** True when the entity is a full-width `Section` layout marker. */\n isSection(entity) {\n return isEntitySection(entity);\n }\n /** Handle drag-drop reorder */\n onDrop(event) {\n // Item dragged in from another connected list — let the host handle it.\n if (event.previousContainer !== event.container) {\n this.externalItemDropped.emit({\n index: event.currentIndex,\n data: event.item.data,\n });\n return;\n }\n if (event.previousIndex === event.currentIndex)\n return;\n const items = [...this.displayEntities()];\n const [moved] = items.splice(event.previousIndex, 1);\n items.splice(event.currentIndex, 0, moved);\n // Reassign order based on new positions\n const reordered = items.map((item, index) => ({\n ...item,\n order: index + 1,\n }));\n // Update the model (two-way binding)\n this.entities.set(reordered);\n // Emit the reordered list\n this.entitiesReordered.emit(reordered);\n }\n // ── Resize completion (from EntitiesResizeBase) ──\n onResizeComplete(entity, previousSize, newSize) {\n const currentEntities = this.entities();\n const sourceEntities = currentEntities.some((e) => e === entity)\n ? currentEntities\n : this.displayEntities();\n const updated = sourceEntities.map((e) => e === entity || (isLeafDetailsSyntheticKey(e.key) && e.key === entity.key)\n ? {\n ...e,\n configuration: {\n ...e.configuration,\n size: newSize,\n },\n }\n : e);\n this.entities.set(updated);\n this.entityResized.emit({\n entity: {\n ...entity,\n configuration: { ...entity.configuration, size: newSize },\n },\n previousSize,\n newSize,\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesManage, deps: null, target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntitiesManage, isStandalone: true, selector: \"mt-entities-manage\", inputs: { entities: { classPropertyName: \"entities\", publicName: \"entities\", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { entities: \"entitiesChange\", entitiesReordered: \"entitiesReordered\", entityClicked: \"entityClicked\", externalItemDropped: \"externalItemDropped\" }, usesInheritance: true, ngImport: i0, template: \"<div\\r\\n cdkDropList\\r\\n cdkDropListOrientation=\\\"mixed\\\"\\r\\n [cdkDropListData]=\\\"displayEntities()\\\"\\r\\n (cdkDropListDropped)=\\\"onDrop($event)\\\"\\r\\n class=\\\"grid grid-cols-24 gap-x-4 gap-y-6\\\"\\r\\n>\\r\\n @for (\\r\\n entity of displayEntities();\\r\\n track entity.key ?? entity.order ?? $index\\r\\n ) {\\r\\n @if (isSection(entity)) {\\r\\n <!-- Section marker: full-width, non-resizable header row -->\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell section-row group relative min-w-0 flex items-center gap-2 px-4 py-2.5 cursor-grab active:cursor-grabbing rounded-md border border-surface-200 bg-surface-50 transition-colors hover:bg-emphasis\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n >\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-11 bg-black/10 rounded-md\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <span\\r\\n class=\\\"flex-1 min-w-0 truncate text-base font-semibold\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ entity.name }}\\r\\n </span>\\r\\n <mt-icon\\r\\n icon=\\\"editor.pencil-01\\\"\\r\\n class=\\\"shrink-0 opacity-0 transition-opacity group-hover:opacity-60\\\"\\r\\n />\\r\\n </div>\\r\\n } @else {\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell group relative min-w-0 flex items-center p-3 cursor-grab active:cursor-grabbing rounded-lg transition-colors bg-surface-100/60\\\"\\r\\n [class.border]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-dashed]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-gray-300]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n >\\r\\n <!-- Drag placeholder -->\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-12 bg-black/10 rounded-xl\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <mt-entity-preview\\r\\n [data]=\\\"entity\\\"\\r\\n class=\\\"flex-1 min-w-0 cursor-pointer\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n />\\r\\n\\r\\n <!-- Resize handle (right edge) -->\\r\\n <div\\r\\n class=\\\"resize-handle\\\"\\r\\n (mousedown)=\\\"onResizeStart($event, entity)\\\"\\r\\n (click)=\\\"$event.stopPropagation()\\\"\\r\\n >\\r\\n <div class=\\\"resize-handle-bar\\\"></div>\\r\\n </div>\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\", styles: [\".cdk-drag{cursor:grab}.cdk-drag:active{cursor:grabbing}.cdk-drag-preview{cursor:grabbing;overflow:hidden}.cdk-drag-placeholder{opacity:.5}.cdk-drop-list-dragging .cdk-drag{cursor:grabbing}.entity-cell{position:relative}.resize-handle{position:absolute;top:0;inset-inline-end:-4px;width:8px;height:100%;cursor:col-resize;z-index:10;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease}.entity-cell:hover .resize-handle,.entity-cell.resizing .resize-handle{opacity:1}.resize-handle-bar{width:3px;height:24px;border-radius:2px;background-color:var(--p-primary-color, #6366f1);transition:height .15s ease,background-color .15s ease}.resize-handle:hover .resize-handle-bar{height:36px;background-color:var(--p-primary-color, #4f46e5)}.entity-cell.resizing{outline:2px dashed var(--p-primary-color, #6366f1);outline-offset:-1px;border-radius:8px;-webkit-user-select:none;user-select:none}\\n\"], dependencies: [{ kind: \"component\", type: EntityPreview, selector: \"mt-entity-preview\", inputs: [\"data\", \"attachmentShape\"] }, { kind: \"component\", type: Icon, selector: \"mt-icon\", inputs: [\"icon\"] }, { kind: \"directive\", type: CdkDrag, selector: \"[cdkDrag]\", inputs: [\"cdkDragData\", \"cdkDragLockAxis\", \"cdkDragRootElement\", \"cdkDragBoundary\", \"cdkDragStartDelay\", \"cdkDragFreeDragPosition\", \"cdkDragDisabled\", \"cdkDragConstrainPosition\", \"cdkDragPreviewClass\", \"cdkDragPreviewContainer\", \"cdkDragScale\"], outputs: [\"cdkDragStarted\", \"cdkDragReleased\", \"cdkDragEnded\", \"cdkDragEntered\", \"cdkDragExited\", \"cdkDragDropped\", \"cdkDragMoved\"], exportAs: [\"cdkDrag\"] }, { kind: \"directive\", type: CdkDropList, selector: \"[cdkDropList], cdk-drop-list\", inputs: [\"cdkDropListConnectedTo\", \"cdkDropListData\", \"cdkDropListOrientation\", \"id\", \"cdkDropListLockAxis\", \"cdkDropListDisabled\", \"cdkDropListSortingDisabled\", \"cdkDropListEnterPredicate\", \"cdkDropListSortPredicate\", \"cdkDropListAutoScrollDisabled\", \"cdkDropListAutoScrollStep\", \"cdkDropListElementContainer\", \"cdkDropListHasAnchor\"], outputs: [\"cdkDropListDropped\", \"cdkDropListEntered\", \"cdkDropListExited\", \"cdkDropListSorted\"], exportAs: [\"cdkDropList\"] }, { kind: \"directive\", type: CdkDragPlaceholder, selector: \"ng-template[cdkDragPlaceholder]\", inputs: [\"data\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesManage, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entities-manage', standalone: true, imports: [EntityPreview, Icon, CdkDrag, CdkDropList, CdkDragPlaceholder], template: \"<div\\r\\n cdkDropList\\r\\n cdkDropListOrientation=\\\"mixed\\\"\\r\\n [cdkDropListData]=\\\"displayEntities()\\\"\\r\\n (cdkDropListDropped)=\\\"onDrop($event)\\\"\\r\\n class=\\\"grid grid-cols-24 gap-x-4 gap-y-6\\\"\\r\\n>\\r\\n @for (\\r\\n entity of displayEntities();\\r\\n track entity.key ?? entity.order ?? $index\\r\\n ) {\\r\\n @if (isSection(entity)) {\\r\\n <!-- Section marker: full-width, non-resizable header row -->\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell section-row group relative min-w-0 flex items-center gap-2 px-4 py-2.5 cursor-grab active:cursor-grabbing rounded-md border border-surface-200 bg-surface-50 transition-colors hover:bg-emphasis\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n >\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-11 bg-black/10 rounded-md\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <span\\r\\n class=\\\"flex-1 min-w-0 truncate text-base font-semibold\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ entity.name }}\\r\\n </span>\\r\\n <mt-icon\\r\\n icon=\\\"editor.pencil-01\\\"\\r\\n class=\\\"shrink-0 opacity-0 transition-opacity group-hover:opacity-60\\\"\\r\\n />\\r\\n </div>\\r\\n } @else {\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell group relative min-w-0 flex items-center p-3 cursor-grab active:cursor-grabbing rounded-lg transition-colors bg-surface-100/60\\\"\\r\\n [class.border]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-dashed]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-gray-300]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n >\\r\\n <!-- Drag placeholder -->\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-12 bg-black/10 rounded-xl\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <mt-entity-preview\\r\\n [data]=\\\"entity\\\"\\r\\n class=\\\"flex-1 min-w-0 cursor-pointer\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n />\\r\\n\\r\\n <!-- Resize handle (right edge) -->\\r\\n <div\\r\\n class=\\\"resize-handle\\\"\\r\\n (mousedown)=\\\"onResizeStart($event, entity)\\\"\\r\\n (click)=\\\"$event.stopPropagation()\\\"\\r\\n >\\r\\n <div class=\\\"resize-handle-bar\\\"></div>\\r\\n </div>\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\", styles: [\".cdk-drag{cursor:grab}.cdk-drag:active{cursor:grabbing}.cdk-drag-preview{cursor:grabbing;overflow:hidden}.cdk-drag-placeholder{opacity:.5}.cdk-drop-list-dragging .cdk-drag{cursor:grabbing}.entity-cell{position:relative}.resize-handle{position:absolute;top:0;inset-inline-end:-4px;width:8px;height:100%;cursor:col-resize;z-index:10;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease}.entity-cell:hover .resize-handle,.entity-cell.resizing .resize-handle{opacity:1}.resize-handle-bar{width:3px;height:24px;border-radius:2px;background-color:var(--p-primary-color, #6366f1);transition:height .15s ease,background-color .15s ease}.resize-handle:hover .resize-handle-bar{height:36px;background-color:var(--p-primary-color, #4f46e5)}.entity-cell.resizing{outline:2px dashed var(--p-primary-color, #6366f1);outline-offset:-1px;border-radius:8px;-webkit-user-select:none;user-select:none}\\n\"] }]\n }], propDecorators: { entities: [{ type: i0.Input, args: [{ isSignal: true, alias: \"entities\", required: true }] }, { type: i0.Output, args: [\"entitiesChange\"] }], entitiesReordered: [{ type: i0.Output, args: [\"entitiesReordered\"] }], entityClicked: [{ type: i0.Output, args: [\"entityClicked\"] }], externalItemDropped: [{ type: i0.Output, args: [\"externalItemDropped\"] }] } });","originalLength":13821,"removedExports":[],"renderedExports":["EntitiesManage"],"renderedLength":13255},"C:/Users/ABDULLAH WISHAH/Documents/GitHub/components/dist/masterteam/components/tmp-esm2022/entities/public-api.js":{"code":"","originalLength":1583,"removedExports":[],"renderedExports":[],"renderedLength":0},"C:\\Users\\ABDULLAH WISHAH\\Documents\\GitHub\\components\\dist\\masterteam\\components\\tmp-esm2022\\entities\\masterteam-components-entities.js":{"code":"/**\n * Generated bundle index. Do not edit.\n */","originalLength":136,"removedExports":[],"renderedExports":[],"renderedLength":47}},"referencedFiles":[],"code":"import * as i0 from '@angular/core';\nimport { input, computed, ChangeDetectionStrategy, Component, signal, effect, untracked, inject, ElementRef, DestroyRef, NgZone, output, Directive, model } from '@angular/core';\nimport { TruncateTooltip, Tooltip } from '@masterteam/components/tooltip';\nimport { Icon } from '@masterteam/icons';\nimport { MTDateFormatPipe, REQUEST_CONTEXT, readableTextOn } from '@masterteam/components';\nimport { HttpContext, HttpClient } from '@angular/common/http';\nimport { TranslocoPipe, TranslocoService } from '@jsverse/transloco';\nimport { Avatar } from '@masterteam/components/avatar';\nimport { SecureImagePipe, UploadField } from '@masterteam/components/upload-field';\nimport { Progress } from '@masterteam/components/progress';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport * as i1 from '@angular/forms';\nimport { FormsModule } from '@angular/forms';\nimport { Button } from '@masterteam/components/button';\nimport { forkJoin, finalize, of, take, switchMap, EMPTY, map, catchError } from 'rxjs';\nimport { Chip } from '@masterteam/components/chip';\nimport * as i1$1 from 'primeng/tooltip';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { NgTemplateOutlet, DOCUMENT } from '@angular/common';\nimport { CdkDrag, CdkDropList, CdkDragPlaceholder } from '@angular/cdk/drag-drop';\n\nconst ENTITY_EMPTY_VALUE_PLACEHOLDER = '_';\nfunction isValueMissing(value) {\n if (value === null || value === undefined) {\n return true;\n }\n if (typeof value === 'string') {\n return value.trim().length === 0;\n }\n return false;\n}\nfunction displayOrPlaceholder(value) {\n if (isValueMissing(value)) {\n return ENTITY_EMPTY_VALUE_PLACEHOLDER;\n }\n return String(value);\n}\nfunction isEntityLabelHidden(configuration) {\n const config = configuration;\n return config?.hideLabel ?? config?.hideName ?? false;\n}\nfunction isEntityAlignEnd(configuration) {\n const config = configuration;\n return config?.alignEnd ?? false;\n}\n/**\n * The product default: label above value.\n *\n * It used to be `bottom`, which is why Portfolio and Program cards rendered\n * \"06/07/2026\" then \"Start Date\" while Project cards — whose properties had\n * been through the property-configuration drawer, and so carry an explicit\n * `labelPosition` — rendered the label first. Two orders inside one Explore\n * module, reachable by clicking a different item in the same sidebar\n * (finding M-13). Label-first reads better down a column of mixed field types,\n * so it is what every unconfigured property now gets.\n *\n * An explicit configuration still wins: an administrator who deliberately\n * chose value-above-label for a property keeps it.\n */\nfunction resolveEntityLabelPosition(configuration) {\n const config = configuration;\n return config?.labelPosition ?? config?.labelPostion ?? 'top';\n}\n/**\n * Rewrites a localised numeric string into something `parseFloat` can read.\n *\n * `rawNumericValue` can fall back to the already-formatted display string, so\n * whatever `Intl.NumberFormat` produced has to survive a round trip. Under\n * `ar` that is harmless (Latin digits plus invisible direction marks), but\n * `ar-SA` renders Arabic-Indic digits and an Arabic decimal separator, which\n * parse to NaN — the bar would silently disappear rather than show a value.\n *\n * Handles Arabic-Indic (U+0660-0669) and Eastern Arabic-Indic (U+06F0-06F9)\n * digits, the Arabic decimal separator, thousands separators, and the\n * bidirectional marks Intl inserts around the percent sign.\n */\nfunction normalizeNumerals(input) {\n return input\n .replace(/[‎‏؜]/g, '')\n .replace(/[٠-٩]/g, (d) => String(d.charCodeAt(0) - 0x0660))\n .replace(/[۰-۹]/g, (d) => String(d.charCodeAt(0) - 0x06f0))\n .replace(/[٫]/g, '.')\n .replace(/[٬  ]/g, '');\n}\n\nclass EntityField {\n label = input('', ...(ngDevMode ? [{ debugName: \"label\" }] : /* istanbul ignore next */ []));\n labelIconName = input(null, ...(ngDevMode ? [{ debugName: \"labelIconName\" }] : /* istanbul ignore next */ []));\n configuration = input(...(ngDevMode ? [undefined, { debugName: \"configuration\" }] : /* istanbul ignore next */ []));\n gap = input('compact', ...(ngDevMode ? [{ debugName: \"gap\" }] : /* istanbul ignore next */ []));\n hideLabel = computed(() => isEntityLabelHidden(this.configuration()), ...(ngDevMode ? [{ debugName: \"hideLabel\" }] : /* istanbul ignore next */ []));\n labelPosition = computed(() => resolveEntityLabelPosition(this.configuration()), ...(ngDevMode ? [{ debugName: \"labelPosition\" }] : /* istanbul ignore next */ []));\n labelContainerClass = computed(() => {\n const justifyClass = isEntityAlignEnd(this.configuration())\n ? 'justify-end'\n : '';\n return `flex min-w-0 max-w-full items-center gap-1 text-sm text-gray-500 ${justifyClass}`.trimEnd();\n }, ...(ngDevMode ? [{ debugName: \"labelContainerClass\" }] : /* istanbul ignore next */ []));\n contentContainerClass = computed(() => {\n const alignClass = isEntityAlignEnd(this.configuration())\n ? 'self-end'\n : 'self-stretch';\n return `min-w-0 max-w-full ${alignClass}`;\n }, ...(ngDevMode ? [{ debugName: \"contentContainerClass\" }] : /* istanbul ignore next */ []));\n containerClass = computed(() => {\n const gapClass = this.gap() === 'relaxed'\n ? 'gap-2'\n : this.gap() === 'normal'\n ? 'gap-1'\n : 'gap-0.5';\n const directionClass = this.labelPosition() === 'top' ? 'flex-col-reverse' : 'flex-col';\n const alignClass = isEntityAlignEnd(this.configuration())\n ? 'items-end'\n : '';\n return `flex min-w-0 ${directionClass} ${gapClass} ${alignClass}`.trimEnd();\n }, ...(ngDevMode ? [{ debugName: \"containerClass\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityField, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityField, isStandalone: true, selector: \"mt-entity-field\", inputs: { label: { classPropertyName: \"label\", publicName: \"label\", isSignal: true, isRequired: false, transformFunction: null }, labelIconName: { classPropertyName: \"labelIconName\", publicName: \"labelIconName\", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: \"configuration\", publicName: \"configuration\", isSignal: true, isRequired: false, transformFunction: null }, gap: { classPropertyName: \"gap\", publicName: \"gap\", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: \"block min-w-0 w-full\" }, ngImport: i0, template: `\r\n <div [class]=\"containerClass()\">\r\n <div [class]=\"contentContainerClass()\">\r\n <ng-content />\r\n </div>\r\n @if (!hideLabel()) {\r\n <div [class]=\"labelContainerClass()\">\r\n @if (labelIconName(); as iconName) {\r\n <mt-icon [icon]=\"iconName\" size=\"xs\" class=\"shrink-0\" />\r\n }\r\n <span\r\n class=\"block min-w-0 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n {{ label() }}\r\n </span>\r\n </div>\r\n }\r\n </div>\r\n `, isInline: true, dependencies: [{ kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }, { kind: \"component\", type: Icon, selector: \"mt-icon\", inputs: [\"icon\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityField, decorators: [{\n type: Component,\n args: [{\n selector: 'mt-entity-field',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [TruncateTooltip, Icon],\n template: `\r\n <div [class]=\"containerClass()\">\r\n <div [class]=\"contentContainerClass()\">\r\n <ng-content />\r\n </div>\r\n @if (!hideLabel()) {\r\n <div [class]=\"labelContainerClass()\">\r\n @if (labelIconName(); as iconName) {\r\n <mt-icon [icon]=\"iconName\" size=\"xs\" class=\"shrink-0\" />\r\n }\r\n <span\r\n class=\"block min-w-0 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >\r\n {{ label() }}\r\n </span>\r\n </div>\r\n }\r\n </div>\r\n `,\n host: {\n class: 'block min-w-0 w-full',\n },\n }]\n }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: \"label\", required: false }] }], labelIconName: [{ type: i0.Input, args: [{ isSignal: true, alias: \"labelIconName\", required: false }] }], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: \"configuration\", required: false }] }], gap: [{ type: i0.Input, args: [{ isSignal: true, alias: \"gap\", required: false }] }] } });\n\nclass EntityText {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => {\n const d = this.data();\n if (d) {\n return displayOrPlaceholder(typeof d.value === 'string' ? d.value : null);\n }\n return displayOrPlaceholder(this.value());\n }, ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityText, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.8\", type: EntityText, isStandalone: true, selector: \"mt-entity-text\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <!--\\n Two lines before the ellipsis, not one. Portfolio and project names were\\n being cut mid-word on the Explore board (\\\"Smart City Infrastructure Po\\u2026\\\"),\\n which makes similarly-titled records indistinguishable without opening each\\n one (finding H-06). `line-clamp-2` still ellipsises what genuinely does not\\n fit, and `mtTruncateTooltip` reads `scrollHeight > clientHeight`, so the\\n tooltip keeps working for the clamped case exactly as it did for the\\n single-line one.\\n -->\\n <div\\n class=\\\"min-w-0 max-w-full line-clamp-2 break-words text-sm font-semibold\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n [innerHTML]=\\\"displayValue()\\\"\\n ></div>\\n</mt-entity-field>\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityText, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-text', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <!--\\n Two lines before the ellipsis, not one. Portfolio and project names were\\n being cut mid-word on the Explore board (\\\"Smart City Infrastructure Po\\u2026\\\"),\\n which makes similarly-titled records indistinguishable without opening each\\n one (finding H-06). `line-clamp-2` still ellipsises what genuinely does not\\n fit, and `mtTruncateTooltip` reads `scrollHeight > clientHeight`, so the\\n tooltip keeps working for the clamped case exactly as it did for the\\n single-line one.\\n -->\\n <div\\n class=\\\"min-w-0 max-w-full line-clamp-2 break-words text-sm font-semibold\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n [innerHTML]=\\\"displayValue()\\\"\\n ></div>\\n</mt-entity-field>\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });\n\nclass EntityDate {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n viewType = input('Date', ...(ngDevMode ? [{ debugName: \"viewType\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n /**\n * `Time` carries a wall-clock value (`HH:mm:ss`) with no date and no zone, so\n * `mtDateFormat` renders it as stored instead of shifting it into the\n * viewer's timezone the way its `DateTime` sibling is shifted.\n */\n resolvedViewType = computed(() => {\n switch (this.data()?.viewType ?? this.viewType()) {\n case 'DateTime':\n return 'dateTime';\n case 'Time':\n return 'time';\n default:\n return 'date';\n }\n }, ...(ngDevMode ? [{ debugName: \"resolvedViewType\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => this.data()?.rawValue ?? this.data()?.value ?? this.value(), ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityDate, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityDate, isStandalone: true, selector: \"mt-entity-date\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, viewType: { classPropertyName: \"viewType\", publicName: \"viewType\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n >\\n @if (displayValue()) {\\n {{ displayValue() | mtDateFormat: resolvedViewType() }}\\n } @else {\\n -\\n }\\n </span>\\n</mt-entity-field>\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }, { kind: \"pipe\", type: MTDateFormatPipe, name: \"mtDateFormat\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityDate, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-date', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip, MTDateFormatPipe], template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n >\\n @if (displayValue()) {\\n {{ displayValue() | mtDateFormat: resolvedViewType() }}\\n } @else {\\n -\\n }\\n </span>\\n</mt-entity-field>\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], viewType: [{ type: i0.Input, args: [{ isSignal: true, alias: \"viewType\", required: false }] }] } });\n\nclass EntityStatus {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n statusValue = computed(() => {\n const d = this.data();\n if (d && typeof d.value === 'object' && d.value !== null) {\n return d.value;\n }\n return this.value() ?? null;\n }, ...(ngDevMode ? [{ debugName: \"statusValue\" }] : /* istanbul ignore next */ []));\n badgeStyle = computed(() => {\n const status = this.statusValue();\n if (!status?.color)\n return {};\n return {\n color: status.color,\n backgroundColor: this.hexToRgba(status.color, 0.12),\n };\n }, ...(ngDevMode ? [{ debugName: \"badgeStyle\" }] : /* istanbul ignore next */ []));\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n statusLabel = computed(() => displayOrPlaceholder(this.statusValue()?.display), ...(ngDevMode ? [{ debugName: \"statusLabel\" }] : /* istanbul ignore next */ []));\n hexToRgba(hex, alpha) {\n const r = parseInt(hex.slice(1, 3), 16);\n const g = parseInt(hex.slice(3, 5), 16);\n const b = parseInt(hex.slice(5, 7), 16);\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityStatus, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityStatus, isStandalone: true, selector: \"mt-entity-status\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (statusValue(); as status) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ statusLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityStatus, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-status', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (statusValue(); as status) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ statusLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });\n\nclass EntityUser {\n httpContext = new HttpContext().set(REQUEST_CONTEXT, {\n useBaseUrl: true,\n });\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n expanded = signal(false, ...(ngDevMode ? [{ debugName: \"expanded\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n isMultiUser = computed(() => this.data()?.viewType === 'MultiUser', ...(ngDevMode ? [{ debugName: \"isMultiUser\" }] : /* istanbul ignore next */ []));\n /** Resolved user objects from either a User or MultiUser entity value. */\n users = computed(() => {\n const val = this.data()?.value;\n const values = Array.isArray(val) ? val : [val];\n return values.filter(isEntityUserValue);\n }, ...(ngDevMode ? [{ debugName: \"users\" }] : /* istanbul ignore next */ []));\n maxVisibleUsers = computed(() => {\n const configured = Number(this.config().maxVisibleUsers);\n return Number.isInteger(configured) && configured > 0 ? configured : 5;\n }, ...(ngDevMode ? [{ debugName: \"maxVisibleUsers\" }] : /* istanbul ignore next */ []));\n visibleUsers = computed(() => {\n const users = this.users();\n if (!this.isMultiUser() || this.expanded()) {\n return users;\n }\n return users.slice(0, this.maxVisibleUsers());\n }, ...(ngDevMode ? [{ debugName: \"visibleUsers\" }] : /* istanbul ignore next */ []));\n hiddenUserCount = computed(() => this.users().length - this.visibleUsers().length, ...(ngDevMode ? [{ debugName: \"hiddenUserCount\" }] : /* istanbul ignore next */ []));\n /** First user retained for the existing single-user computed API. */\n userValue = computed(() => this.users()[0] ?? null, ...(ngDevMode ? [{ debugName: \"userValue\" }] : /* istanbul ignore next */ []));\n userNameFor(user) {\n return displayOrPlaceholder(user.displayName ?? null);\n }\n userPhotoFor(user) {\n return this.showUserImage() ? (user.photoUrl ?? '') : '';\n }\n labelTextFor(user) {\n return user.name ?? '';\n }\n isUnlinkedUser(user) {\n return user.isLinkedToCurrentApplication === false && !!user.userName;\n }\n phoneNumberFor(user) {\n return user.phoneNumber ?? '';\n }\n emailFor(user) {\n return user.email ?? '';\n }\n hasContactInfoFor(user) {\n return ((this.showPhoneNumber() && !!this.phoneNumberFor(user)) ||\n (this.showEmail() && !!this.emailFor(user)));\n }\n emptyUserName = computed(() => displayOrPlaceholder(null), ...(ngDevMode ? [{ debugName: \"emptyUserName\" }] : /* istanbul ignore next */ []));\n rawUserName = computed(() => this.userValue()?.displayName ?? null, ...(ngDevMode ? [{ debugName: \"rawUserName\" }] : /* istanbul ignore next */ []));\n userName = computed(() => displayOrPlaceholder(this.rawUserName()), ...(ngDevMode ? [{ debugName: \"userName\" }] : /* istanbul ignore next */ []));\n userPhoto = computed(() => this.showUserImage() ? (this.userValue()?.photoUrl ?? '') : '', ...(ngDevMode ? [{ debugName: \"userPhoto\" }] : /* istanbul ignore next */ []));\n labelText = computed(() => this.userValue()?.name ?? '', ...(ngDevMode ? [{ debugName: \"labelText\" }] : /* istanbul ignore next */ []));\n /**\n * `true` when the referenced user is no longer linked to the application.\n * Drives the inline info badge/tooltip next to the display name.\n */\n isUnlinked = computed(() => this.userValue()?.isLinkedToCurrentApplication === false &&\n this.userValue()?.userName, ...(ngDevMode ? [{ debugName: \"isUnlinked\" }] : /* istanbul ignore next */ []));\n // ── Configuration-driven visibility ──\n config = computed(() => this.data()?.configuration ?? {}, ...(ngDevMode ? [{ debugName: \"config\" }] : /* istanbul ignore next */ []));\n showDisplayName = computed(() => this.config().showDisplayName ?? true, ...(ngDevMode ? [{ debugName: \"showDisplayName\" }] : /* istanbul ignore next */ []));\n showPhoneNumber = computed(() => this.config().showPhoneNumber ?? false, ...(ngDevMode ? [{ debugName: \"showPhoneNumber\" }] : /* istanbul ignore next */ []));\n showEmail = computed(() => this.config().showEmail ?? false, ...(ngDevMode ? [{ debugName: \"showEmail\" }] : /* istanbul ignore next */ []));\n /**\n * When off, the avatar falls back to the generic user icon so the layout keeps\n * its shape while the user's real picture stays hidden.\n */\n showUserImage = computed(() => this.config().showUserImage ?? true, ...(ngDevMode ? [{ debugName: \"showUserImage\" }] : /* istanbul ignore next */ []));\n phoneNumber = computed(() => this.userValue()?.phoneNumber ?? '', ...(ngDevMode ? [{ debugName: \"phoneNumber\" }] : /* istanbul ignore next */ []));\n email = computed(() => this.userValue()?.email ?? '', ...(ngDevMode ? [{ debugName: \"email\" }] : /* istanbul ignore next */ []));\n hasContactInfo = computed(() => (this.showPhoneNumber() && !!this.phoneNumber()) ||\n (this.showEmail() && !!this.email()), ...(ngDevMode ? [{ debugName: \"hasContactInfo\" }] : /* istanbul ignore next */ []));\n constructor() {\n effect(() => {\n void this.data()?.value;\n untracked(() => this.expanded.set(false));\n });\n }\n showAllUsers() {\n this.expanded.set(true);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityUser, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityUser, isStandalone: true, selector: \"mt-entity-user\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (isMultiUser()) {\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\"\\r\\n data-testid=\\\"multi-user-list\\\"\\r\\n >\\r\\n @for (user of visibleUsers(); track user.id ?? $index) {\\r\\n <div\\r\\n class=\\\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 ps-1 pe-2\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-7! h-7! text-white! text-sm! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <span\\r\\n class=\\\"max-w-36 truncate text-xs text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n }\\r\\n\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-xs text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.phone\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.mail-01\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n } @empty {\\r\\n <span class=\\\"text-sm text-gray-700\\\">{{ emptyUserName() }}</span>\\r\\n }\\r\\n\\r\\n @if (hiddenUserCount() > 0) {\\r\\n <button\\r\\n type=\\\"button\\\"\\r\\n class=\\\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\\\"\\r\\n data-testid=\\\"show-all-users\\\"\\r\\n [attr.aria-label]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n [mtTooltip]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n (click)=\\\"showAllUsers()\\\"\\r\\n >\\r\\n +{{ hiddenUserCount() }}\\r\\n </button>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n @if (users()[0]; as user) {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <div class=\\\"flex min-w-0 flex-1 flex-col\\\">\\r\\n <div class=\\\"flex min-w-0 items-center gap-1\\\">\\r\\n <span\\r\\n class=\\\"truncate text-sm text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-sm text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n @if (labelTextFor(user)) {\\r\\n <span class=\\\"truncate text-xs text-gray-500\\\">{{\\r\\n labelTextFor(user)\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (hasContactInfoFor(user)) {\\r\\n <div class=\\\"ms-auto flex shrink-0 items-center gap-1.5\\\">\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n icon=\\\"communication.phone\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n icon=\\\"communication.mail-01\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n @if (showDisplayName()) {\\r\\n <span class=\\\"truncate text-sm text-gray-700\\\">{{\\r\\n emptyUserName()\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: Avatar, selector: \"mt-avatar\", inputs: [\"label\", \"icon\", \"image\", \"styleClass\", \"size\", \"shape\", \"badge\", \"badgeSize\", \"badgeSeverity\"], outputs: [\"onImageError\"] }, { kind: \"directive\", type: Tooltip, selector: \"[mtTooltip]\" }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }, { kind: \"component\", type: Icon, selector: \"mt-icon\", inputs: [\"icon\"] }, { kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"pipe\", type: SecureImagePipe, name: \"secureImage\" }, { kind: \"pipe\", type: TranslocoPipe, name: \"transloco\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityUser, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-user', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [\n Avatar,\n Tooltip,\n TruncateTooltip,\n Icon,\n SecureImagePipe,\n EntityField,\n TranslocoPipe,\n ], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (isMultiUser()) {\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\"\\r\\n data-testid=\\\"multi-user-list\\\"\\r\\n >\\r\\n @for (user of visibleUsers(); track user.id ?? $index) {\\r\\n <div\\r\\n class=\\\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 ps-1 pe-2\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-7! h-7! text-white! text-sm! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <span\\r\\n class=\\\"max-w-36 truncate text-xs text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n }\\r\\n\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-xs text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.phone\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.mail-01\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n } @empty {\\r\\n <span class=\\\"text-sm text-gray-700\\\">{{ emptyUserName() }}</span>\\r\\n }\\r\\n\\r\\n @if (hiddenUserCount() > 0) {\\r\\n <button\\r\\n type=\\\"button\\\"\\r\\n class=\\\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\\\"\\r\\n data-testid=\\\"show-all-users\\\"\\r\\n [attr.aria-label]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n [mtTooltip]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n (click)=\\\"showAllUsers()\\\"\\r\\n >\\r\\n +{{ hiddenUserCount() }}\\r\\n </button>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n @if (users()[0]; as user) {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <div class=\\\"flex min-w-0 flex-1 flex-col\\\">\\r\\n <div class=\\\"flex min-w-0 items-center gap-1\\\">\\r\\n <span\\r\\n class=\\\"truncate text-sm text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-sm text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n @if (labelTextFor(user)) {\\r\\n <span class=\\\"truncate text-xs text-gray-500\\\">{{\\r\\n labelTextFor(user)\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (hasContactInfoFor(user)) {\\r\\n <div class=\\\"ms-auto flex shrink-0 items-center gap-1.5\\\">\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n icon=\\\"communication.phone\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n icon=\\\"communication.mail-01\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n @if (showDisplayName()) {\\r\\n <span class=\\\"truncate text-sm text-gray-700\\\">{{\\r\\n emptyUserName()\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }] } });\nfunction isEntityUserValue(value) {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n return false;\n }\n return 'displayName' in value;\n}\n\n/** A finite number, or null for anything that cannot be compared numerically. */\nfunction toFiniteNumber(value) {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n const parsed = typeof value === 'number'\n ? value\n : Number(String(value).replace(/%/g, '').trim());\n return Number.isFinite(parsed) ? parsed : null;\n}\n/**\n * Whether `value` falls inside a rule's band. Both bounds are inclusive, an\n * absent bound is open-ended, and a rule carrying neither bound is malformed —\n * it never matches rather than swallowing every value.\n */\nfunction matchesPercentageColorRule(value, rule) {\n if (!rule) {\n return false;\n }\n const min = toFiniteNumber(rule.minValue);\n const max = toFiniteNumber(rule.maxValue);\n if (min === null && max === null) {\n return false;\n }\n if (min !== null && value < min) {\n return false;\n }\n return max === null || value <= max;\n}\n/**\n * The colour for a percentage value: rules in their configured order, first\n * match wins, `defaultColor` when nothing matches.\n *\n * The backend owns this evaluation and ships the winner as `color` on\n * render/value/fetch responses, so callers must prefer that resolved colour.\n * This exists for the surfaces that hold a raw rule set and no resolved colour\n * — the property-form preview, and catalog reads that never went through a\n * value response.\n */\nfunction resolvePercentageColor(value, source) {\n const fallback = source?.defaultColor?.trim() || null;\n const numericValue = toFiniteNumber(value);\n const rules = source?.colorRules;\n if (numericValue === null || !Array.isArray(rules)) {\n return fallback;\n }\n const match = rules.find((rule) => matchesPercentageColorRule(numericValue, rule));\n return match?.color?.trim() || fallback;\n}\n\nclass EntityPercentage {\n transloco = inject(TranslocoService);\n /** Active locale, so number formatting follows the UI language. */\n locale = computed(() => this.transloco.getActiveLang() || 'en', ...(ngDevMode ? [{ debugName: \"locale\" }] : /* istanbul ignore next */ []));\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n rawValue = input(...(ngDevMode ? [undefined, { debugName: \"rawValue\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => {\n const d = this.data();\n const raw = d\n ? typeof d.value === 'string'\n ? d.value\n : null\n : this.value();\n return displayOrPlaceholder(this.formatPercentageDisplay(raw));\n }, ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n rawNumericValue = computed(() => this.data()?.rawValue ??\n this.rawValue() ??\n this.value() ??\n this.displayValue(), ...(ngDevMode ? [{ debugName: \"rawNumericValue\" }] : /* istanbul ignore next */ []));\n hasNumericValue = computed(() => {\n return this.parseNumericValue(this.rawNumericValue()) !== null;\n }, ...(ngDevMode ? [{ debugName: \"hasNumericValue\" }] : /* istanbul ignore next */ []));\n numericValue = computed(() => {\n const num = this.parseNumericValue(this.rawNumericValue());\n return num === null ? 0 : Math.min(num, 100);\n }, ...(ngDevMode ? [{ debugName: \"numericValue\" }] : /* istanbul ignore next */ []));\n maxValue = computed(() => {\n const num = this.parseNumericValue(this.rawNumericValue());\n if (num === null)\n return 100;\n return num > 100 ? Math.ceil(num) : 100;\n }, ...(ngDevMode ? [{ debugName: \"maxValue\" }] : /* istanbul ignore next */ []));\n // ── Configuration-driven visibility ──\n hideName = computed(() => isEntityLabelHidden(this.data()?.configuration), ...(ngDevMode ? [{ debugName: \"hideName\" }] : /* istanbul ignore next */ []));\n /**\n * The bar colour. The backend evaluates the property's colour rules and\n * returns the winner as `color` on render/value/fetch responses, so a\n * resolved colour always wins — the rules are only evaluated here for\n * configurations that arrive without one (a catalog read, or the\n * property-form preview).\n */\n progressColor = computed(() => {\n const d = this.data();\n const direct = d?.configuration;\n const fromProperty = d?.propertyConfiguration;\n const resolved = direct?.color?.trim() || fromProperty?.color?.trim();\n if (resolved) {\n return resolved;\n }\n const raw = this.rawNumericValue();\n return (resolvePercentageColor(raw, direct) ??\n resolvePercentageColor(raw, fromProperty) ??\n 'primary');\n }, ...(ngDevMode ? [{ debugName: \"progressColor\" }] : /* istanbul ignore next */ []));\n /**\n * Renders a percentage for the active locale.\n *\n * This used to echo the backend's string and only append `%` when that string\n * already carried one — so in Arabic, where the API returns a bare `\"25\"`,\n * the symbol vanished and a progress value rendered as an unlabelled `25`.\n * Next to a bar that could be a percentage, a count or a score (finding\n * H-08).\n *\n * Formatting from the NUMBER through `Intl.NumberFormat` makes the symbol,\n * the decimal separator and the digit shapes follow the locale instead of the\n * payload. `maximumFractionDigits: 1` preserves the precision the old code\n * kept; `style: 'percent'` expects a fraction, hence the /100.\n *\n * Non-numeric values pass through untouched — a status string or an em dash\n * must not be mangled into `NaN%`.\n */\n formatPercentageDisplay(raw) {\n if (isValueMissing(raw)) {\n return raw;\n }\n const num = this.parseNumericValue(raw);\n if (num === null) {\n return raw;\n }\n try {\n return new Intl.NumberFormat(this.locale(), {\n style: 'percent',\n maximumFractionDigits: 1,\n }).format(num / 100);\n }\n catch {\n // An unknown locale tag must not cost the user their number.\n return `${Number(num.toFixed(1))}%`;\n }\n }\n parseNumericValue(raw) {\n if (isValueMissing(raw)) {\n return null;\n }\n const normalizedRawValue = normalizeNumerals(String(raw))\n .replace(/[%٪]/g, '')\n .trim();\n if (!normalizedRawValue) {\n return null;\n }\n const numericValue = Number.parseFloat(normalizedRawValue);\n return Number.isNaN(numericValue) ? null : numericValue;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPercentage, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityPercentage, isStandalone: true, selector: \"mt-entity-percentage\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, rawValue: { classPropertyName: \"rawValue\", publicName: \"rawValue\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<div class=\\\"flex flex-col gap-1\\\">\\r\\n <div class=\\\"flex items-center justify-between\\\">\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-xs font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n <span class=\\\"text-xs font-bold\\\" [class.ms-auto]=\\\"hideName()\\\">{{\\r\\n displayValue()\\r\\n }}</span>\\r\\n </div>\\r\\n @if (hasNumericValue()) {\\r\\n <mt-progress\\r\\n [value]=\\\"numericValue()\\\"\\r\\n [showLabel]=\\\"false\\\"\\r\\n [height]=\\\"9\\\"\\r\\n [maxValue]=\\\"maxValue()\\\"\\r\\n [color]=\\\"progressColor()\\\"\\r\\n >\\r\\n </mt-progress>\\r\\n } @else {\\r\\n <div class=\\\"h-[9px] rounded-full bg-gray-200\\\"></div>\\r\\n }\\r\\n</div>\\r\\n\", dependencies: [{ kind: \"component\", type: Progress, selector: \"mt-progress\", inputs: [\"value\", \"mode\", \"showLabel\", \"unit\", \"color\", \"minValue\", \"maxValue\", \"height\", \"circleSize\", \"strokeWidth\", \"customClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPercentage, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-percentage', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [Progress], template: \"<div class=\\\"flex flex-col gap-1\\\">\\r\\n <div class=\\\"flex items-center justify-between\\\">\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-xs font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n <span class=\\\"text-xs font-bold\\\" [class.ms-auto]=\\\"hideName()\\\">{{\\r\\n displayValue()\\r\\n }}</span>\\r\\n </div>\\r\\n @if (hasNumericValue()) {\\r\\n <mt-progress\\r\\n [value]=\\\"numericValue()\\\"\\r\\n [showLabel]=\\\"false\\\"\\r\\n [height]=\\\"9\\\"\\r\\n [maxValue]=\\\"maxValue()\\\"\\r\\n [color]=\\\"progressColor()\\\"\\r\\n >\\r\\n </mt-progress>\\r\\n } @else {\\r\\n <div class=\\\"h-[9px] rounded-full bg-gray-200\\\"></div>\\r\\n }\\r\\n</div>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], rawValue: [{ type: i0.Input, args: [{ isSignal: true, alias: \"rawValue\", required: false }] }] } });\n\n/**\n * The largest amount still rendered in full.\n *\n * The reviewer measured exactly where the line falls: `100,000 SAR` fits a card\n * slot, `1,000,000 SAR` does not and loses its currency to the ellipsis. So the\n * comparison below is inclusive — anything ABOVE this compacts, and everything\n * a tenant sees today at or under it is untouched.\n */\nconst CURRENCY_COMPACT_THRESHOLD = 100_000;\n/**\n * The numeric amount inside a formatted currency string.\n *\n * Strips the currency token, the grouping separators and the bidirectional\n * marks `Intl` leaves around them, and normalises Arabic-Indic digits so an\n * `ar-SA` payload parses like an `en` one. `null` when there is no number.\n */\nfunction parseCurrencyAmount(raw) {\n if (typeof raw !== 'string') {\n return null;\n }\n const numeric = normalizeNumerals(raw).replace(/[^0-9.+-]/g, '');\n if (!numeric || !/\\d/.test(numeric)) {\n return null;\n }\n const parsed = Number.parseFloat(numeric);\n return Number.isFinite(parsed) ? parsed : null;\n}\n/**\n * Whatever is left of a formatted amount once the number is removed — `SAR`,\n * `ر.س`, `$`. Read from the payload rather than configured, so a tenant's own\n * currency survives untouched.\n */\nfunction currencyUnitOf(formatted) {\n return normalizeNumerals(formatted)\n .replace(/[0-9.,+-]/g, '')\n .trim();\n}\n/**\n * A large currency amount shortened so it fits a card slot, with the unit kept.\n *\n * A budget of a million or more used to render as `1,000,000 …`: the digits\n * survived the ellipsis and the currency did not, so the largest and most\n * consequential figures in the product were the only ones whose unit could not\n * be read (finding H-06). Compact notation keeps the whole thing inside the\n * slot — `SAR 1M` instead of `1,000,000 SAR` — and callers put the exact figure\n * in a tooltip, which is where a precise number belongs on a summary card.\n *\n * Returns `formatted` unchanged whenever the value already fits, is not a\n * number, or the runtime has no compact notation — so no tenant sees an\n * existing number change shape for no reason.\n */\nfunction compactCurrencyDisplay(formatted, rawValue, locale, threshold = CURRENCY_COMPACT_THRESHOLD) {\n const amount = parseCurrencyAmount(rawValue ?? formatted);\n if (amount === null || Math.abs(amount) <= threshold) {\n return formatted;\n }\n let compact;\n try {\n compact = new Intl.NumberFormat(locale, {\n notation: 'compact',\n maximumFractionDigits: 1,\n }).format(amount);\n }\n catch {\n return formatted;\n }\n const unit = currencyUnitOf(formatted);\n if (!unit) {\n return compact;\n }\n // Keep the payload's own unit placement — `SAR 1,000` and `1,000 SAR` are\n // both in use, and flipping one to the other reads as a different currency.\n return formatted.trimStart().startsWith(unit)\n ? `${unit} ${compact}`\n : `${compact} ${unit}`;\n}\n\nclass EntityCurrency {\n transloco = inject(TranslocoService);\n /** Active locale, so number formatting follows the UI language. */\n locale = computed(() => this.transloco.getActiveLang() || 'en', ...(ngDevMode ? [{ debugName: \"locale\" }] : /* istanbul ignore next */ []));\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n /** The backend's fully grouped string — always the tooltip, never truncated. */\n fullValue = computed(() => {\n const d = this.data();\n if (d) {\n return displayOrPlaceholder(typeof d.value === 'string' ? d.value : null);\n }\n return displayOrPlaceholder(this.value());\n }, ...(ngDevMode ? [{ debugName: \"fullValue\" }] : /* istanbul ignore next */ []));\n /**\n * What the cell renders: the backend's string, or a compact form of it when\n * the amount is large enough that the currency token would be truncated away.\n * See {@link compactCurrencyDisplay} (finding H-06).\n */\n displayValue = computed(() => compactCurrencyDisplay(this.fullValue(), this.data()?.rawValue, this.locale()), ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityCurrency, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.8\", type: EntityCurrency, isStandalone: true, selector: \"mt-entity-currency\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n [mtTooltip]=\\\"fullValue()\\\"\\n tooltipPosition=\\\"top\\\"\\n >\\n {{ displayValue() }}\\n </span>\\n</mt-entity-field>\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"directive\", type: Tooltip, selector: \"[mtTooltip]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityCurrency, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-currency', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Tooltip], template: \"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n [mtTooltip]=\\\"fullValue()\\\"\\n tooltipPosition=\\\"top\\\"\\n >\\n {{ displayValue() }}\\n </span>\\n</mt-entity-field>\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });\n\nclass EntityCheckbox {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n rawValue = input(...(ngDevMode ? [undefined, { debugName: \"rawValue\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n hideName = computed(() => isEntityLabelHidden(this.data()?.configuration), ...(ngDevMode ? [{ debugName: \"hideName\" }] : /* istanbul ignore next */ []));\n checkboxState = computed(() => {\n const raw = this.data()?.rawValue ?? this.rawValue();\n if (raw !== undefined && raw !== null) {\n return this.parseBoolean(raw);\n }\n const val = this.data()?.value ?? this.value();\n if (typeof val === 'string') {\n return this.parseBoolean(val);\n }\n return null;\n }, ...(ngDevMode ? [{ debugName: \"checkboxState\" }] : /* istanbul ignore next */ []));\n parseBoolean(value) {\n const normalized = value.trim().toLowerCase();\n if (!normalized.length) {\n return null;\n }\n if (normalized === 'true') {\n return true;\n }\n if (normalized === 'false') {\n return false;\n }\n return null;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityCheckbox, isStandalone: true, selector: \"mt-entity-checkbox\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, rawValue: { classPropertyName: \"rawValue\", publicName: \"rawValue\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<div class=\\\"flex items-center gap-2\\\">\\r\\n @if (checkboxState() === true) {\\r\\n <svg class=\\\"w-5 h-5 text-green-500\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else if (checkboxState() === false) {\\r\\n <svg class=\\\"w-5 h-5 text-gray-300\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n</div>\\r\\n\", changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityCheckbox, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: \"<div class=\\\"flex items-center gap-2\\\">\\r\\n @if (checkboxState() === true) {\\r\\n <svg class=\\\"w-5 h-5 text-green-500\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else if (checkboxState() === false) {\\r\\n <svg class=\\\"w-5 h-5 text-gray-300\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n</div>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], rawValue: [{ type: i0.Input, args: [{ isSignal: true, alias: \"rawValue\", required: false }] }] } });\n\nclass EntityLongText {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => {\n const d = this.data();\n const raw = d\n ? typeof d.value === 'string'\n ? d.value\n : null\n : this.value();\n if (isValueMissing(raw)) {\n return ENTITY_EMPTY_VALUE_PLACEHOLDER;\n }\n return raw;\n }, ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLongText, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.8\", type: EntityLongText, isStandalone: true, selector: \"mt-entity-long-text\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"text-sm font-semibold break-words\\\"\\r\\n [innerHTML]=\\\"displayValue()\\\"\\r\\n ></div>\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLongText, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-long-text', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"text-sm font-semibold break-words\\\"\\r\\n [innerHTML]=\\\"displayValue()\\\"\\r\\n ></div>\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });\n\nclass EntityLookup {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n lookupValues = computed(() => {\n const value = this.data()?.value ?? this.value();\n if (Array.isArray(value)) {\n return value;\n }\n if (typeof value === 'object' && value !== null) {\n return [value];\n }\n return [];\n }, ...(ngDevMode ? [{ debugName: \"lookupValues\" }] : /* istanbul ignore next */ []));\n lookupBadgeStyle(lookup) {\n if (!lookup?.color)\n return {};\n return {\n color: lookup.color,\n backgroundColor: this.hexToRgba(lookup.color, 0.12),\n };\n }\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n lookupLabel(lookup) {\n return displayOrPlaceholder(lookup.display);\n }\n hexToRgba(hex, alpha) {\n const r = parseInt(hex.slice(1, 3), 16);\n const g = parseInt(hex.slice(3, 5), 16);\n const b = parseInt(hex.slice(5, 7), 16);\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLookup, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityLookup, isStandalone: true, selector: \"mt-entity-lookup\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (lookupValues().length) {\\r\\n <div class=\\\"flex flex-wrap gap-2\\\" data-testid=\\\"lookup-values\\\">\\r\\n @for (lookup of lookupValues(); track lookup.key) {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md px-3 py-2 text-xs font-semibold\\\"\\r\\n data-testid=\\\"lookup-value\\\"\\r\\n [style]=\\\"lookupBadgeStyle(lookup)\\\"\\r\\n >\\r\\n {{ lookupLabel(lookup) }}\\r\\n </span>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLookup, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-lookup', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (lookupValues().length) {\\r\\n <div class=\\\"flex flex-wrap gap-2\\\" data-testid=\\\"lookup-values\\\">\\r\\n @for (lookup of lookupValues(); track lookup.key) {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md px-3 py-2 text-xs font-semibold\\\"\\r\\n data-testid=\\\"lookup-value\\\"\\r\\n [style]=\\\"lookupBadgeStyle(lookup)\\\"\\r\\n >\\r\\n {{ lookupLabel(lookup) }}\\r\\n </span>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });\n\n/**\n * A section is persisted/transported as an ordinary display item whose\n * `propertyKey` carries this sentinel prefix instead of a real property key\n * (mirrors the LeafDetails synthetic-key convention). Both the customization\n * builder and the runtime renderer recognize it, so the constant lives here in\n * the shared entities layer rather than in either consumer.\n */\nconst SECTION_KEY_PREFIX = '__section__::';\n/** True when a display item's key denotes a section marker. */\nfunction isSectionKey(key) {\n return typeof key === 'string' && key.startsWith(SECTION_KEY_PREFIX);\n}\n/** Mints a unique section marker key. */\nfunction buildSectionKey() {\n return `${SECTION_KEY_PREFIX}${crypto.randomUUID()}`;\n}\n/**\n * Resolves a localized label (`{ en, ar }`) for the given language, falling\n * back across locales. Returns '' when nothing is set.\n */\nfunction resolveLocalizedLabel(label, lang) {\n if (!label)\n return '';\n const primary = lang === 'ar' ? label.ar : label.en;\n return (primary || label.en || label.ar || '').trim();\n}\n/** True when the entity is a `Section` layout marker rather than a value. */\nfunction isEntitySection(entity) {\n return entity?.viewType === 'Section';\n}\n/**\n * Splits a flat, order-sorted entity list into section groups. Membership is\n * purely positional: each entity belongs to whichever `Section` marker precedes\n * it. Pass the output of `buildDisplayEntities` (already sorted by `order`).\n *\n * Zero markers → a single `{ section: null }` group holding everything, so the\n * bare-grid rendering is unchanged. Empty leading/trailing runs are dropped.\n */\nfunction groupEntitiesIntoSections(entities) {\n const groups = [];\n let current = { section: null, entities: [] };\n const flush = () => {\n if (current.section || current.entities.length > 0) {\n groups.push(current);\n }\n };\n for (const entity of entities) {\n if (isEntitySection(entity)) {\n flush();\n current = { section: entity, entities: [] };\n }\n else {\n current.entities.push(entity);\n }\n }\n flush();\n return groups;\n}\n/**\n * Resolves a section marker's display label for the given language, falling\n * back across locales and finally to the entity's `name`.\n */\nfunction getEntitySectionTitle(section, lang) {\n if (!section)\n return '';\n const label = section.configuration\n ?.label;\n return resolveLocalizedLabel(label, lang) || (section.name ?? '');\n}\n\n/** `#RGB` / `#RRGGBB`. Anything else is used as-is for the text color only. */\nconst HEX_COLOR_PATTERN = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\n/**\n * Badge color used when the phase gate carries no `color`. `color` is optional\n * presentation metadata, so a phase gate without one must still read as a\n * badge rather than as bare text — this is the same neutral slate the table\n * falls back to for uncategorized status chips.\n */\nconst DEFAULT_PHASE_GATE_COLOR = '#475569';\n/**\n * Preview renderer for `PhaseGate` properties — a calculated, read-only lookup\n * pointing at the schema phase gate the record currently sits on. It renders\n * exactly like {@link EntityLookup} (colored badge) but resolves its label\n * per-language.\n *\n * Label resolution, in order:\n * 1. `value.ar` / `value.en` for the active language — the backend sends both\n * so a client-side language switch re-renders without a refetch, which is\n * why they win over the already-resolved `display`.\n * 2. `value.display`, then the other locale.\n * 3. The flat display, for payloads that send the value as a bare string\n * (comparison snapshots build their sides that way).\n * 4. `rawValue` — the schema phase-gate id — as a last resort.\n */\nclass EntityPhaseGate {\n transloco = inject(TranslocoService);\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n activeLang = toSignal(this.transloco.langChanges$, {\n initialValue: this.transloco.getActiveLang(),\n });\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n phaseGateValue = computed(() => {\n const value = this.data()?.value;\n if (value && typeof value === 'object' && !Array.isArray(value)) {\n return value;\n }\n return this.value() ?? null;\n }, ...(ngDevMode ? [{ debugName: \"phaseGateValue\" }] : /* istanbul ignore next */ []));\n /** Resolved label, or `null` when nothing at all is available. */\n resolvedLabel = computed(() => {\n const phaseGate = this.phaseGateValue();\n if (phaseGate) {\n const localized = resolveLocalizedLabel(phaseGate, this.activeLang());\n const label = localized || phaseGate.display?.trim();\n if (label)\n return label;\n }\n return this.flatDisplay() ?? this.rawId();\n }, ...(ngDevMode ? [{ debugName: \"resolvedLabel\" }] : /* istanbul ignore next */ []));\n hasValue = computed(() => this.resolvedLabel() !== null, ...(ngDevMode ? [{ debugName: \"hasValue\" }] : /* istanbul ignore next */ []));\n phaseGateLabel = computed(() => displayOrPlaceholder(this.resolvedLabel()), ...(ngDevMode ? [{ debugName: \"phaseGateLabel\" }] : /* istanbul ignore next */ []));\n badgeStyle = computed(() => {\n const color = this.phaseGateValue()?.color?.trim() || DEFAULT_PHASE_GATE_COLOR;\n if (!HEX_COLOR_PATTERN.test(color))\n return { color };\n return {\n color,\n backgroundColor: this.hexToRgba(color, 0.12),\n };\n }, ...(ngDevMode ? [{ debugName: \"badgeStyle\" }] : /* istanbul ignore next */ []));\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n /** The value flattened to a plain display string by the sender. */\n flatDisplay() {\n const value = this.data()?.value;\n return typeof value === 'string' && value.trim() ? value.trim() : null;\n }\n /** The schema phase-gate id. */\n rawId() {\n const rawValue = this.data()?.rawValue;\n return typeof rawValue === 'string' && rawValue.trim()\n ? rawValue.trim()\n : null;\n }\n hexToRgba(hex, alpha) {\n const expanded = hex.length === 4\n ? `#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`\n : hex;\n const r = parseInt(expanded.slice(1, 3), 16);\n const g = parseInt(expanded.slice(3, 5), 16);\n const b = parseInt(expanded.slice(5, 7), 16);\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPhaseGate, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityPhaseGate, isStandalone: true, selector: \"mt-entity-phase-gate\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasValue()) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ phaseGateLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPhaseGate, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-phase-gate', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasValue()) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ phaseGateLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });\n\nclass EntityAttachment {\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n shape = input('default', ...(ngDevMode ? [{ debugName: \"shape\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n endPoint = input('uploader', ...(ngDevMode ? [{ debugName: \"endPoint\" }] : /* istanbul ignore next */ []));\n context = input(undefined, ...(ngDevMode ? [{ debugName: \"context\" }] : /* istanbul ignore next */ []));\n httpClient = inject(HttpClient);\n transloco = inject(TranslocoService);\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n loading = signal(false, ...(ngDevMode ? [{ debugName: \"loading\" }] : /* istanbul ignore next */ []));\n attachments = signal([], ...(ngDevMode ? [{ debugName: \"attachments\" }] : /* istanbul ignore next */ []));\n /** Key of the compact chip currently hovered, so it can reveal the download affordance. */\n hoveredAttachmentKey = signal(null, ...(ngDevMode ? [{ debugName: \"hoveredAttachmentKey\" }] : /* istanbul ignore next */ []));\n attachmentReferences = computed(() => this.normalizeAttachmentValue(this.data()?.value ?? this.value()), ...(ngDevMode ? [{ debugName: \"attachmentReferences\" }] : /* istanbul ignore next */ []));\n uploadValue = computed(() => {\n const references = this.attachmentReferences().map((reference) => {\n if (typeof reference === 'string') {\n return reference.trim();\n }\n if (reference.fileName) {\n return reference;\n }\n return reference.id?.trim() || reference;\n });\n if (!references.length) {\n return null;\n }\n return references.length === 1 ? references[0] : references;\n }, ...(ngDevMode ? [{ debugName: \"uploadValue\" }] : /* istanbul ignore next */ []));\n hasAttachments = computed(() => this.shape() === 'compact'\n ? this.attachments().length > 0\n : this.uploadValue() != null, ...(ngDevMode ? [{ debugName: \"hasAttachments\" }] : /* istanbul ignore next */ []));\n isMultiple = computed(() => this.attachmentReferences().length > 1, ...(ngDevMode ? [{ debugName: \"isMultiple\" }] : /* istanbul ignore next */ []));\n acceptTypes = computed(() => this.normalizeAcceptTypes(this.data()?.configuration?.['AcceptTypes']), ...(ngDevMode ? [{ debugName: \"acceptTypes\" }] : /* istanbul ignore next */ []));\n empty = '-';\n constructor() {\n effect((onCleanup) => {\n if (this.shape() !== 'compact') {\n this.loading.set(false);\n this.attachments.set([]);\n return;\n }\n const references = this.attachmentReferences();\n if (!references.length) {\n this.loading.set(false);\n this.attachments.set([]);\n return;\n }\n const shouldFetchMetadata = references.some((reference) => this.requiresMetadataRequest(reference));\n if (!shouldFetchMetadata) {\n this.attachments.set(references.filter(this.isAttachmentItemValue).map((reference) => ({\n ...reference,\n name: reference.name ??\n reference.fileName ??\n reference.id ??\n reference.name,\n extension: this.resolveExtension(reference),\n })));\n this.loading.set(false);\n return;\n }\n this.loading.set(true);\n const sub = forkJoin(references.map((reference) => this.resolveAttachment$(reference)))\n .pipe(finalize(() => this.loading.set(false)))\n .subscribe((attachments) => {\n this.attachments.set(attachments.filter((attachment) => attachment != null));\n });\n onCleanup(() => sub.unsubscribe());\n });\n }\n attachmentTrackBy(index, attachment) {\n return (attachment.id ?? attachment.fileName ?? attachment.name ?? String(index));\n }\n attachmentTooltip(attachment) {\n const name = attachment.name ??\n attachment.fileName ??\n attachment.id ??\n this.transloco.translate('components.entitiesPreview.attachment');\n return this.transloco.translate('components.entitiesPreview.downloadAttachment', { name });\n }\n /**\n * Compact chips are clickable downloads but only show a file-type glyph,\n * which doesn't read as actionable. Swap to a download icon while hovered\n * so the action is obvious.\n */\n attachmentActionIcon(index, attachment) {\n return this.hoveredAttachmentKey() ===\n this.attachmentTrackBy(index, attachment)\n ? 'general.download-01'\n : this.attachmentIcon(attachment);\n }\n attachmentIcon(attachment) {\n const extension = this.resolveExtension(attachment);\n const contentType = attachment.contentType?.toLowerCase() ?? '';\n if (contentType.startsWith('image/')) {\n return 'image.image-03';\n }\n switch (extension) {\n case '.pdf':\n return 'file.file-06';\n case '.doc':\n case '.docx':\n case '.txt':\n case '.rtf':\n return 'file.file-04';\n case '.xls':\n case '.xlsx':\n case '.csv':\n return 'file.file-03';\n case '.ppt':\n case '.pptx':\n return 'file.file-05';\n default:\n return 'file.clipboard-attachment';\n }\n }\n onCompactAttachmentClick(event, attachment) {\n event.stopPropagation();\n this.downloadAttachment(attachment);\n }\n downloadAttachment(attachment) {\n const resolvedAttachment$ = this.requiresMetadataRequest(attachment)\n ? this.resolveAttachment$(attachment)\n : of(this.normalizeAttachmentItem(attachment));\n resolvedAttachment$\n .pipe(take(1), switchMap((resolvedAttachment) => {\n if (!resolvedAttachment?.fileName) {\n return EMPTY;\n }\n return this.httpClient\n .get(`${this.endPoint()}/${resolvedAttachment.fileName}`, {\n responseType: 'blob',\n context: this.context(),\n })\n .pipe(take(1), map((blob) => ({\n attachment: resolvedAttachment,\n blob,\n })));\n }))\n .subscribe(({ attachment, blob }) => {\n const downloadBlob = new Blob([blob], {\n type: attachment.contentType || blob.type || 'application/octet-stream',\n });\n const objectUrl = window.URL.createObjectURL(downloadBlob);\n const anchor = document.createElement('a');\n anchor.href = objectUrl;\n anchor.download =\n attachment.name ??\n attachment.fileName ??\n attachment.id ??\n 'attachment';\n anchor.click();\n window.URL.revokeObjectURL(objectUrl);\n });\n }\n resolveAttachment$(reference) {\n const normalizedAttachment = this.normalizeAttachmentItem(reference);\n if (!this.requiresMetadataRequest(reference)) {\n return of(normalizedAttachment);\n }\n const attachmentId = typeof reference === 'string' ? reference.trim() : reference.id?.trim();\n if (!attachmentId) {\n return of(normalizedAttachment);\n }\n return this.httpClient\n .get(`${this.endPoint()}/${attachmentId}/metaData`, {\n context: this.context(),\n })\n .pipe(take(1), map((response) => this.normalizeAttachmentItem(response.data)), catchError(() => of(normalizedAttachment)));\n }\n normalizeAttachmentValue(value) {\n if (value === null || value === undefined) {\n return [];\n }\n if (Array.isArray(value)) {\n return value.flatMap((item) => this.normalizeAttachmentValue(item));\n }\n if (typeof value === 'string') {\n const trimmedValue = value.trim();\n if (!trimmedValue || trimmedValue === '[]') {\n return [];\n }\n if ((trimmedValue.startsWith('[') && trimmedValue.endsWith(']')) ||\n (trimmedValue.startsWith('{') && trimmedValue.endsWith('}'))) {\n try {\n return this.normalizeAttachmentValue(JSON.parse(trimmedValue));\n }\n catch {\n return [trimmedValue];\n }\n }\n return [trimmedValue];\n }\n if (typeof value === 'object') {\n const envelope = value;\n // Backend attachment envelope:\n // { value: <id | id[]>, attachments: [{ value: <id>, name, fileName }] }\n // The stored items don't carry the storage key (their `fileName` is the\n // display name), only the upload id, so resolve every attachment by its\n // id through the metadata endpoint — the same contract\n // `mt-upload-field` uses.\n if (Array.isArray(envelope.attachments)) {\n return envelope.attachments.flatMap((item) => this.normalizeAttachmentValue(item));\n }\n // A single backend attachment item carries its upload id under `value`.\n if (typeof envelope.value === 'string' &&\n envelope.id === undefined &&\n (envelope.fileName !== undefined || envelope.name !== undefined)) {\n return this.normalizeAttachmentValue(envelope.value);\n }\n // Envelope with no resolved attachments yet — unwrap the inner id(s).\n if ('value' in envelope &&\n envelope.id === undefined &&\n envelope.fileName === undefined &&\n envelope.name === undefined) {\n return this.normalizeAttachmentValue(envelope.value);\n }\n return [value];\n }\n return [];\n }\n normalizeAttachmentItem(value) {\n if (!value) {\n return null;\n }\n if (typeof value === 'string') {\n const trimmedValue = value.trim();\n return trimmedValue\n ? {\n id: trimmedValue,\n name: trimmedValue,\n }\n : null;\n }\n const normalizedAttachment = {\n ...value,\n name: value.name ?? value.fileName ?? value.id ?? '',\n extension: this.resolveExtension(value),\n };\n return normalizedAttachment.name ||\n normalizedAttachment.fileName ||\n normalizedAttachment.id\n ? normalizedAttachment\n : null;\n }\n requiresMetadataRequest(reference) {\n if (typeof reference === 'string') {\n return reference.trim().length > 0;\n }\n return !!reference.id?.trim() && !reference.fileName;\n }\n isAttachmentItemValue(reference) {\n return typeof reference === 'object' && reference != null;\n }\n resolveExtension(value) {\n const explicitExtension = value.extension?.trim();\n if (explicitExtension) {\n return explicitExtension.startsWith('.')\n ? explicitExtension.toLowerCase()\n : `.${explicitExtension.toLowerCase()}`;\n }\n const fileName = value.fileName ?? value.name;\n if (!fileName || !fileName.includes('.')) {\n return undefined;\n }\n return `.${fileName.split('.').pop().toLowerCase()}`;\n }\n normalizeAcceptTypes(value) {\n if (Array.isArray(value)) {\n const acceptTypes = value\n .map((item) => (typeof item === 'string' ? item.trim() : ''))\n .filter(Boolean);\n return acceptTypes.length ? acceptTypes.join(',') : undefined;\n }\n if (typeof value === 'string') {\n const acceptTypes = value.trim();\n return acceptTypes || undefined;\n }\n return undefined;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityAttachment, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityAttachment, isStandalone: true, selector: \"mt-entity-attachment\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: \"shape\", publicName: \"shape\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null }, endPoint: { classPropertyName: \"endPoint\", publicName: \"endPoint\", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: \"context\", publicName: \"context\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"relaxed\\\"\\r\\n>\\r\\n @if (hasAttachments()) {\\r\\n @if (shape() === \\\"compact\\\") {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (\\r\\n attachment of attachments();\\r\\n track attachmentTrackBy($index, attachment)\\r\\n ) {\\r\\n <mt-button\\r\\n iconPos=\\\"top\\\"\\r\\n size=\\\"small\\\"\\r\\n severity=\\\"secondary\\\"\\r\\n variant=\\\"outlined\\\"\\r\\n [icon]=\\\"attachmentActionIcon($index, attachment)\\\"\\r\\n [tooltip]=\\\"attachmentTooltip(attachment)\\\"\\r\\n styleClass=\\\"h-9! w-9! rounded-lg! transition-all duration-200 hover:scale-105 hover:border-primary-500! hover:text-primary-600! hover:bg-primary-50!\\\"\\r\\n (onClick)=\\\"onCompactAttachmentClick($event, attachment)\\\"\\r\\n (mouseenter)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (mouseleave)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n (onFocus)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (onBlur)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <mt-upload-field\\r\\n class=\\\"w-full\\\"\\r\\n [ngModel]=\\\"uploadValue()\\\"\\r\\n [ngModelOptions]=\\\"{ standalone: true }\\\"\\r\\n [shape]=\\\"'card'\\\"\\r\\n [multiple]=\\\"isMultiple()\\\"\\r\\n [readonly]=\\\"true\\\"\\r\\n [endPoint]=\\\"endPoint()\\\"\\r\\n [accept]=\\\"acceptTypes()\\\"\\r\\n [context]=\\\"context()\\\"\\r\\n />\\r\\n }\\r\\n } @else {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ empty }}</span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"ngmodule\", type: FormsModule }, { kind: \"directive\", type: i1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i1.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"component\", type: UploadField, selector: \"mt-upload-field\", inputs: [\"label\", \"title\", \"description\", \"endPoint\", \"size\", \"userImgClass\", \"shape\", \"multiple\", \"accept\", \"isDragging\", \"fileSizeLimit\", \"readonly\", \"context\"], outputs: [\"isDraggingChange\", \"onChange\"] }, { kind: \"component\", type: Button, selector: \"mt-button\", inputs: [\"icon\", \"label\", \"tooltip\", \"class\", \"type\", \"styleClass\", \"severity\", \"badge\", \"variant\", \"badgeSeverity\", \"size\", \"iconPos\", \"autofocus\", \"fluid\", \"raised\", \"rounded\", \"text\", \"plain\", \"outlined\", \"link\", \"disabled\", \"loading\", \"pInputs\", \"ariaLabel\"], outputs: [\"onClick\", \"onFocus\", \"onBlur\"] }, { kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityAttachment, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-attachment', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FormsModule, UploadField, Button, EntityField], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"relaxed\\\"\\r\\n>\\r\\n @if (hasAttachments()) {\\r\\n @if (shape() === \\\"compact\\\") {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (\\r\\n attachment of attachments();\\r\\n track attachmentTrackBy($index, attachment)\\r\\n ) {\\r\\n <mt-button\\r\\n iconPos=\\\"top\\\"\\r\\n size=\\\"small\\\"\\r\\n severity=\\\"secondary\\\"\\r\\n variant=\\\"outlined\\\"\\r\\n [icon]=\\\"attachmentActionIcon($index, attachment)\\\"\\r\\n [tooltip]=\\\"attachmentTooltip(attachment)\\\"\\r\\n styleClass=\\\"h-9! w-9! rounded-lg! transition-all duration-200 hover:scale-105 hover:border-primary-500! hover:text-primary-600! hover:bg-primary-50!\\\"\\r\\n (onClick)=\\\"onCompactAttachmentClick($event, attachment)\\\"\\r\\n (mouseenter)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (mouseleave)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n (onFocus)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (onBlur)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <mt-upload-field\\r\\n class=\\\"w-full\\\"\\r\\n [ngModel]=\\\"uploadValue()\\\"\\r\\n [ngModelOptions]=\\\"{ standalone: true }\\\"\\r\\n [shape]=\\\"'card'\\\"\\r\\n [multiple]=\\\"isMultiple()\\\"\\r\\n [readonly]=\\\"true\\\"\\r\\n [endPoint]=\\\"endPoint()\\\"\\r\\n [accept]=\\\"acceptTypes()\\\"\\r\\n [context]=\\\"context()\\\"\\r\\n />\\r\\n }\\r\\n } @else {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ empty }}</span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"shape\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }], endPoint: [{ type: i0.Input, args: [{ isSignal: true, alias: \"endPoint\", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: \"context\", required: false }] }] } });\n\nclass EntityLocation {\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n location = computed(() => normalizeEntityLocation(this.data()?.value), ...(ngDevMode ? [{ debugName: \"location\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => displayOrPlaceholder(this.location()?.display_name ?? this.location()?.address ?? null), ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n coordinates = computed(() => {\n const location = this.location();\n const lat = location?.lat;\n const lon = location?.lon ?? location?.lng;\n if (lat === undefined || lon === undefined || lat === '' || lon === '') {\n return '';\n }\n return `${lat}, ${lon}`;\n }, ...(ngDevMode ? [{ debugName: \"coordinates\" }] : /* istanbul ignore next */ []));\n mapsUrl = computed(() => {\n const location = this.location();\n const lat = location?.lat;\n const lon = location?.lon ?? location?.lng;\n if (lat === undefined || lon === undefined || lat === '' || lon === '') {\n return '';\n }\n return `https://www.google.com/maps/?q=${encodeURIComponent(`${lat},${lon}`)}`;\n }, ...(ngDevMode ? [{ debugName: \"mapsUrl\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLocation, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityLocation, isStandalone: true, selector: \"mt-entity-location\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [labelIconName]=\\\"'map.marker-pin-01'\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (mapsUrl()) {\\r\\n <a\\r\\n [href]=\\\"mapsUrl()\\\"\\r\\n target=\\\"_blank\\\"\\r\\n rel=\\\"noopener noreferrer\\\"\\r\\n class=\\\"flex min-w-0 max-w-full items-center gap-1.5 text-sm font-semibold text-primary-600 hover:text-primary-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"map.marker-pin-01\\\" size=\\\"sm\\\" class=\\\"shrink-0\\\" />\\r\\n <span class=\\\"min-w-0 truncate\\\">{{ displayValue() }}</span>\\r\\n </a>\\r\\n } @else {\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (coordinates()) {\\r\\n <div class=\\\"min-w-0 truncate text-xs text-gray-500\\\">\\r\\n {{ coordinates() }}\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"component\", type: Icon, selector: \"mt-icon\", inputs: [\"icon\"] }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLocation, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-location', changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityField, Icon, TruncateTooltip], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [labelIconName]=\\\"'map.marker-pin-01'\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (mapsUrl()) {\\r\\n <a\\r\\n [href]=\\\"mapsUrl()\\\"\\r\\n target=\\\"_blank\\\"\\r\\n rel=\\\"noopener noreferrer\\\"\\r\\n class=\\\"flex min-w-0 max-w-full items-center gap-1.5 text-sm font-semibold text-primary-600 hover:text-primary-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"map.marker-pin-01\\\" size=\\\"sm\\\" class=\\\"shrink-0\\\" />\\r\\n <span class=\\\"min-w-0 truncate\\\">{{ displayValue() }}</span>\\r\\n </a>\\r\\n } @else {\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (coordinates()) {\\r\\n <div class=\\\"min-w-0 truncate text-xs text-gray-500\\\">\\r\\n {{ coordinates() }}\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }] } });\nfunction normalizeEntityLocation(value) {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n if (typeof value === 'string') {\n const trimmed = value.trim();\n if (!trimmed)\n return null;\n try {\n return normalizeEntityLocation(JSON.parse(trimmed));\n }\n catch {\n return {\n display_name: trimmed,\n address: trimmed,\n };\n }\n }\n if (typeof value !== 'object' || Array.isArray(value)) {\n return {\n display_name: String(value),\n address: String(value),\n };\n }\n const source = value;\n const displayName = readString(source['display_name']) ??\n readString(source['displayName']) ??\n readString(source['address']) ??\n readString(source['name']);\n const lon = source['lon'] ?? source['lng'];\n return {\n ...source,\n ...(displayName ? { display_name: displayName, address: displayName } : {}),\n ...(lon !== undefined ? { lon: lon } : {}),\n };\n}\nfunction readString(value) {\n return typeof value === 'string' && value.trim() ? value.trim() : undefined;\n}\n\nclass EntityConnection {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n /** Individual inputs (used when data is not provided) */\n name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : /* istanbul ignore next */ []));\n value = input(...(ngDevMode ? [undefined, { debugName: \"value\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? this.name() ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n /** The connection display lives on `rawValue.display`; fall back to `value`. */\n connection = computed(() => {\n const d = this.data();\n return (normalizeEntityConnection(d?.value ?? d?.rawValue) ??\n normalizeEntityConnection(this.value()));\n }, ...(ngDevMode ? [{ debugName: \"connection\" }] : /* istanbul ignore next */ []));\n displayValue = computed(() => displayOrPlaceholder(this.connection()?.display), ...(ngDevMode ? [{ debugName: \"displayValue\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityConnection, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"21.2.8\", type: EntityConnection, isStandalone: true, selector: \"mt-entity-connection\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: \"value\", publicName: \"value\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"directive\", type: TruncateTooltip, selector: \"[mtTruncateTooltip]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityConnection, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-connection', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, TruncateTooltip], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: \"name\", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: \"value\", required: false }] }] } });\nfunction normalizeEntityConnection(value) {\n if (value === null || value === undefined || value === '') {\n return null;\n }\n if (typeof value === 'string') {\n const trimmed = value.trim();\n if (!trimmed)\n return null;\n try {\n return normalizeEntityConnection(JSON.parse(trimmed));\n }\n catch {\n return { display: trimmed };\n }\n }\n if (typeof value !== 'object' || Array.isArray(value)) {\n return { display: String(value) };\n }\n const source = value;\n // Parsed payload uses `display`; the serialized JSON value uses `Display`.\n const display = typeof source['display'] === 'string'\n ? source['display']\n : typeof source['Display'] === 'string'\n ? source['Display']\n : undefined;\n return { ...source, ...(display !== undefined ? { display } : {}) };\n}\n\n/**\n * Preview renderer for `ScheduleItemSelector` properties.\n *\n * The value is the array of resolved schedule items returned by runtime\n * rendering (`{ id, name, status, ... }`); each one is shown as a chip.\n */\nclass EntityScheduleItem {\n /** Full entity data object */\n data = input(...(ngDevMode ? [undefined, { debugName: \"data\" }] : /* istanbul ignore next */ []));\n displayName = computed(() => this.data()?.name ?? '', ...(ngDevMode ? [{ debugName: \"displayName\" }] : /* istanbul ignore next */ []));\n items = computed(() => {\n const value = this.data()?.value;\n if (!Array.isArray(value))\n return [];\n return value.filter((item) => !!item && typeof item === 'object' && 'name' in item);\n }, ...(ngDevMode ? [{ debugName: \"items\" }] : /* istanbul ignore next */ []));\n emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityScheduleItem, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityScheduleItem, isStandalone: true, selector: \"mt-entity-schedule-item\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (items().length) {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (item of items(); track item.id) {\\r\\n <mt-chip [label]=\\\"item.name\\\" size=\\\"small\\\" />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"component\", type: Chip, selector: \"mt-chip\", inputs: [\"label\", \"icon\", \"image\", \"removable\", \"removeIcon\", \"styleClass\", \"size\"], outputs: [\"onRemove\", \"onImageError\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityScheduleItem, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-schedule-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityField, Chip], template: \"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (items().length) {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (item of items(); track item.id) {\\r\\n <mt-chip [label]=\\\"item.name\\\" size=\\\"small\\\" />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: false }] }] } });\n\n/** Neutral grey for a status the catalog left without a colour. */\nconst DEFAULT_STATUS_COLOR = '#9CA3AF';\nclass EntityLeafDetails {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n leafValue = computed(() => {\n const v = this.data().value;\n if (v && typeof v === 'object' && !Array.isArray(v) && 'levelId' in v) {\n return v;\n }\n return null;\n }, ...(ngDevMode ? [{ debugName: \"leafValue\" }] : /* istanbul ignore next */ []));\n /** Label shown below the badges: \"Level Name (total)\" */\n labelWithTotal = computed(() => {\n const leaf = this.leafValue();\n const name = this.data().name ?? leaf?.levelName ?? '';\n if (!leaf)\n return name;\n const total = leaf.statuses.reduce((sum, s) => sum + s.count, 0);\n return `${name} (${total})`;\n }, ...(ngDevMode ? [{ debugName: \"labelWithTotal\" }] : /* istanbul ignore next */ []));\n labelIcon = computed(() => this.leafValue()?.levelIcon ?? null, ...(ngDevMode ? [{ debugName: \"labelIcon\" }] : /* istanbul ignore next */ []));\n statusColor(color) {\n return color ?? DEFAULT_STATUS_COLOR;\n }\n /**\n * Foreground for the count, chosen against the badge colour instead of always\n * white — a light catalog colour measured 2.59:1 with white on it, the lowest\n * contrast in the product (findings M-04, H-03).\n */\n statusTextColor(color) {\n return readableTextOn(this.statusColor(color));\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLeafDetails, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityLeafDetails, isStandalone: true, selector: \"mt-entity-leaf-details\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"labelWithTotal()\\\"\\r\\n [labelIconName]=\\\"labelIcon()\\\"\\r\\n [configuration]=\\\"data().configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (leafValue(); as leaf) {\\r\\n <div class=\\\"flex flex-wrap gap-1.5\\\">\\r\\n @for (status of leaf.statuses; track status.key) {\\r\\n <!--\\r\\n The badge is a count, and the colour is the only thing saying WHICH\\r\\n count \\u2014 so the status name has to be reachable without hovering, and\\r\\n the number has to be legible on whatever hex the tenant's catalog\\r\\n carries. The tooltip names it for a pointer, the aria-label names it\\r\\n for a screen reader, and the foreground is chosen against the badge\\r\\n colour rather than hardcoded white (findings M-04, H-03).\\r\\n -->\\r\\n <div\\r\\n class=\\\"flex h-7 min-w-7 items-center justify-center rounded-lg px-1.5 text-xs font-bold tabular-nums\\\"\\r\\n role=\\\"img\\\"\\r\\n [style.background-color]=\\\"statusColor(status.color)\\\"\\r\\n [style.color]=\\\"statusTextColor(status.color)\\\"\\r\\n [attr.aria-label]=\\\"status.display + ': ' + status.count\\\"\\r\\n [pTooltip]=\\\"status.display\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ status.count }}\\r\\n </div>\\r\\n }\\r\\n @if (leaf.statuses.length === 0) {\\r\\n <span class=\\\"text-sm text-muted-color\\\">\\u2014</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"ngmodule\", type: TooltipModule }, { kind: \"directive\", type: i1$1.Tooltip, selector: \"[pTooltip]\", inputs: [\"tooltipPosition\", \"tooltipEvent\", \"positionStyle\", \"tooltipStyleClass\", \"tooltipZIndex\", \"escape\", \"showDelay\", \"hideDelay\", \"life\", \"positionTop\", \"positionLeft\", \"autoHide\", \"fitContent\", \"hideOnEscape\", \"showOnEllipsis\", \"pTooltip\", \"tooltipDisabled\", \"tooltipOptions\", \"appendTo\", \"ptTooltip\", \"pTooltipPT\", \"pTooltipUnstyled\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLeafDetails, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-leaf-details', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityField, TooltipModule], template: \"<mt-entity-field\\r\\n [label]=\\\"labelWithTotal()\\\"\\r\\n [labelIconName]=\\\"labelIcon()\\\"\\r\\n [configuration]=\\\"data().configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (leafValue(); as leaf) {\\r\\n <div class=\\\"flex flex-wrap gap-1.5\\\">\\r\\n @for (status of leaf.statuses; track status.key) {\\r\\n <!--\\r\\n The badge is a count, and the colour is the only thing saying WHICH\\r\\n count \\u2014 so the status name has to be reachable without hovering, and\\r\\n the number has to be legible on whatever hex the tenant's catalog\\r\\n carries. The tooltip names it for a pointer, the aria-label names it\\r\\n for a screen reader, and the foreground is chosen against the badge\\r\\n colour rather than hardcoded white (findings M-04, H-03).\\r\\n -->\\r\\n <div\\r\\n class=\\\"flex h-7 min-w-7 items-center justify-center rounded-lg px-1.5 text-xs font-bold tabular-nums\\\"\\r\\n role=\\\"img\\\"\\r\\n [style.background-color]=\\\"statusColor(status.color)\\\"\\r\\n [style.color]=\\\"statusTextColor(status.color)\\\"\\r\\n [attr.aria-label]=\\\"status.display + ': ' + status.count\\\"\\r\\n [pTooltip]=\\\"status.display\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ status.count }}\\r\\n </div>\\r\\n }\\r\\n @if (leaf.statuses.length === 0) {\\r\\n <span class=\\\"text-sm text-muted-color\\\">\\u2014</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }] } });\n\n/**\n * Renders an entity value by view type.\n *\n * `LookupModuleCheckList` is deliberately not handled here: that component\n * renders each of its nested properties *through* this one, so routing it back\n * through here would make the two files import each other. `EntityPreviewBody`\n * owns that case and delegates every other view type to this component.\n */\nclass EntityValuePreview {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n attachmentShape = input('default', ...(ngDevMode ? [{ debugName: \"attachmentShape\" }] : /* istanbul ignore next */ []));\n /** Lookup variants share the same colored-badge renderer. */\n previewType = computed(() => {\n const viewType = this.data().viewType;\n return viewType === 'LookupMatrix' || viewType === 'LookupMultiSelect'\n ? 'Lookup'\n : viewType;\n }, ...(ngDevMode ? [{ debugName: \"previewType\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityValuePreview, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityValuePreview, isStandalone: true, selector: \"mt-entity-value-preview\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: \"attachmentShape\", publicName: \"attachmentShape\", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: \"block min-w-0 w-full\" }, ngImport: i0, template: \"@switch (previewType()) {\\r\\n @case (\\\"Text\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LongText\\\") {\\r\\n <mt-entity-long-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Date\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"DateTime\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'DateTime'\\\" />\\r\\n }\\r\\n @case (\\\"Time\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'Time'\\\" />\\r\\n }\\r\\n @case (\\\"User\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"MultiUser\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Percentage\\\") {\\r\\n <mt-entity-percentage [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Currency\\\") {\\r\\n <mt-entity-currency [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Number\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Checkbox\\\") {\\r\\n <mt-entity-checkbox [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Lookup\\\") {\\r\\n <mt-entity-lookup [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Status\\\") {\\r\\n <mt-entity-status [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"PhaseGate\\\") {\\r\\n <mt-entity-phase-gate [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Attachment\\\") {\\r\\n <mt-entity-attachment [data]=\\\"data()\\\" [shape]=\\\"attachmentShape()\\\" />\\r\\n }\\r\\n @case (\\\"Location\\\") {\\r\\n <mt-entity-location [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Connection\\\") {\\r\\n <mt-entity-connection [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"ScheduleItemSelector\\\") {\\r\\n <mt-entity-schedule-item [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LeafDetails\\\") {\\r\\n <mt-entity-leaf-details [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n}\\r\\n\", dependencies: [{ kind: \"component\", type: EntityText, selector: \"mt-entity-text\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityLongText, selector: \"mt-entity-long-text\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityDate, selector: \"mt-entity-date\", inputs: [\"data\", \"name\", \"value\", \"viewType\"] }, { kind: \"component\", type: EntityUser, selector: \"mt-entity-user\", inputs: [\"data\"] }, { kind: \"component\", type: EntityPercentage, selector: \"mt-entity-percentage\", inputs: [\"data\", \"name\", \"value\", \"rawValue\"] }, { kind: \"component\", type: EntityCurrency, selector: \"mt-entity-currency\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityCheckbox, selector: \"mt-entity-checkbox\", inputs: [\"data\", \"name\", \"value\", \"rawValue\"] }, { kind: \"component\", type: EntityLookup, selector: \"mt-entity-lookup\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityPhaseGate, selector: \"mt-entity-phase-gate\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityAttachment, selector: \"mt-entity-attachment\", inputs: [\"data\", \"name\", \"shape\", \"value\", \"endPoint\", \"context\"] }, { kind: \"component\", type: EntityStatus, selector: \"mt-entity-status\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityLeafDetails, selector: \"mt-entity-leaf-details\", inputs: [\"data\"] }, { kind: \"component\", type: EntityLocation, selector: \"mt-entity-location\", inputs: [\"data\"] }, { kind: \"component\", type: EntityConnection, selector: \"mt-entity-connection\", inputs: [\"data\", \"name\", \"value\"] }, { kind: \"component\", type: EntityScheduleItem, selector: \"mt-entity-schedule-item\", inputs: [\"data\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityValuePreview, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-value-preview', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [\n EntityText,\n EntityLongText,\n EntityDate,\n EntityUser,\n EntityPercentage,\n EntityCurrency,\n EntityCheckbox,\n EntityLookup,\n EntityPhaseGate,\n EntityAttachment,\n EntityStatus,\n EntityLeafDetails,\n EntityLocation,\n EntityConnection,\n EntityScheduleItem,\n ], host: {\n class: 'block min-w-0 w-full',\n }, template: \"@switch (previewType()) {\\r\\n @case (\\\"Text\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LongText\\\") {\\r\\n <mt-entity-long-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Date\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"DateTime\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'DateTime'\\\" />\\r\\n }\\r\\n @case (\\\"Time\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'Time'\\\" />\\r\\n }\\r\\n @case (\\\"User\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"MultiUser\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Percentage\\\") {\\r\\n <mt-entity-percentage [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Currency\\\") {\\r\\n <mt-entity-currency [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Number\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Checkbox\\\") {\\r\\n <mt-entity-checkbox [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Lookup\\\") {\\r\\n <mt-entity-lookup [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Status\\\") {\\r\\n <mt-entity-status [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"PhaseGate\\\") {\\r\\n <mt-entity-phase-gate [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Attachment\\\") {\\r\\n <mt-entity-attachment [data]=\\\"data()\\\" [shape]=\\\"attachmentShape()\\\" />\\r\\n }\\r\\n @case (\\\"Location\\\") {\\r\\n <mt-entity-location [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Connection\\\") {\\r\\n <mt-entity-connection [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"ScheduleItemSelector\\\") {\\r\\n <mt-entity-schedule-item [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LeafDetails\\\") {\\r\\n <mt-entity-leaf-details [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"attachmentShape\", required: false }] }] } });\n\n/**\n * Nested props render inside the entry card's own grid, so they take the label\n * treatment and leave sizing to the grid.\n */\nconst NESTED_PROP_CONFIG = {\n labelPosition: 'top',\n hideLabel: false,\n};\n/**\n * Derive a readable label from a raw lookup key. The stored checklist value\n * only carries the key of the selected lookup item (e.g. `Open_test`) and the\n * response resolves no display for it, so this strips separators and\n * title-cases the key.\n */\nfunction humanizeKey(key) {\n const words = key\n .replace(/[_-]+/g, ' ')\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .trim();\n if (!words)\n return key;\n return words.charAt(0).toUpperCase() + words.slice(1);\n}\nclass EntityLookupModuleCheckList {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n /**\n * Catalog metadata for the captured properties, keyed by property key. The\n * stored value carries keys only — this is what gives each nested prop its\n * label and view type.\n */\n metaByKey = computed(() => {\n const map = new Map();\n for (const meta of this.data().nestedProperties ?? []) {\n map.set(meta.key, meta);\n }\n return map;\n }, ...(ngDevMode ? [{ debugName: \"metaByKey\" }] : /* istanbul ignore next */ []));\n /**\n * Normalizes the stored value into a flat list of checklist entries.\n * Accepts both the rendered view model (`{ items: [...] }`) and the raw\n * stored array (`[{ lookupKey, props }]`); returns `[]` for anything else.\n */\n items = computed(() => {\n const raw = this.data().value;\n const entries = this.extractEntries(raw);\n return entries\n .filter((entry) => entry && typeof entry === 'object')\n .map((entry) => {\n const record = entry;\n const props = record['props'] ?? record['Props'];\n const lookupKey = this.resolveLookupKey(entry);\n return {\n lookupKey,\n lookupLabel: humanizeKey(lookupKey),\n props: (Array.isArray(props) ? props : []).map((prop) => this.toNestedEntity(prop)),\n };\n });\n }, ...(ngDevMode ? [{ debugName: \"items\" }] : /* istanbul ignore next */ []));\n hasItems = computed(() => this.items().length > 0, ...(ngDevMode ? [{ debugName: \"hasItems\" }] : /* istanbul ignore next */ []));\n emptyLabel = displayOrPlaceholder(null);\n /**\n * Builds the entity for one captured property. Without catalog metadata the\n * key is all there is to show it with, so it degrades to a humanized label\n * and plain text.\n */\n toNestedEntity(prop) {\n const propRecord = (prop ?? {});\n const key = String(propRecord['key'] ?? propRecord['Key'] ?? '');\n const meta = this.metaByKey().get(key);\n const value = propRecord['value'] ?? propRecord['Value'] ?? null;\n return {\n propertyId: meta?.id,\n key,\n normalizedKey: meta?.normalizedKey,\n name: meta?.label ?? humanizeKey(key),\n value: (value ?? ''),\n viewType: meta?.viewType ?? 'Text',\n propertyConfiguration: meta?.configuration,\n configuration: NESTED_PROP_CONFIG,\n order: meta?.order,\n };\n }\n extractEntries(raw) {\n if (Array.isArray(raw)) {\n return raw;\n }\n const wrapped = raw?.items;\n if (Array.isArray(wrapped)) {\n return wrapped;\n }\n if (typeof raw === 'string' && raw.trim()) {\n try {\n return this.extractEntries(JSON.parse(raw));\n }\n catch {\n return [];\n }\n }\n return [];\n }\n resolveLookupKey(entry) {\n const record = entry;\n const key = entry.lookupKey ?? record['Lookupkey'] ?? record['lookupkey'];\n return typeof key === 'string' ? key : '';\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLookupModuleCheckList, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityLookupModuleCheckList, isStandalone: true, selector: \"mt-entity-lookup-module-check-list\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: \"<mt-entity-field\\r\\n [label]=\\\"data().name ?? ''\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasItems()) {\\r\\n <div class=\\\"flex flex-col gap-2\\\">\\r\\n @for (item of items(); track $index) {\\r\\n <div\\r\\n class=\\\"rounded-lg border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-primary-50 px-2 py-1 text-xs font-semibold text-primary-700\\\"\\r\\n >\\r\\n {{ item.lookupLabel || emptyLabel }}\\r\\n </span>\\r\\n @if (item.props.length) {\\r\\n <div class=\\\"mt-2 grid grid-cols-1 gap-x-4 gap-y-3 sm:grid-cols-2\\\">\\r\\n @for (prop of item.props; track prop.key) {\\r\\n <div class=\\\"min-w-0 overflow-hidden\\\">\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"prop\\\"\\r\\n attachmentShape=\\\"compact\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-gray-100 px-3 py-2 text-xs font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\", dependencies: [{ kind: \"component\", type: EntityField, selector: \"mt-entity-field\", inputs: [\"label\", \"labelIconName\", \"configuration\", \"gap\"] }, { kind: \"component\", type: EntityValuePreview, selector: \"mt-entity-value-preview\", inputs: [\"data\", \"attachmentShape\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityLookupModuleCheckList, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-lookup-module-check-list', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityField, EntityValuePreview], template: \"<mt-entity-field\\r\\n [label]=\\\"data().name ?? ''\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasItems()) {\\r\\n <div class=\\\"flex flex-col gap-2\\\">\\r\\n @for (item of items(); track $index) {\\r\\n <div\\r\\n class=\\\"rounded-lg border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-primary-50 px-2 py-1 text-xs font-semibold text-primary-700\\\"\\r\\n >\\r\\n {{ item.lookupLabel || emptyLabel }}\\r\\n </span>\\r\\n @if (item.props.length) {\\r\\n <div class=\\\"mt-2 grid grid-cols-1 gap-x-4 gap-y-3 sm:grid-cols-2\\\">\\r\\n @for (prop of item.props; track prop.key) {\\r\\n <div class=\\\"min-w-0 overflow-hidden\\\">\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"prop\\\"\\r\\n attachmentShape=\\\"compact\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-gray-100 px-3 py-2 text-xs font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }] } });\n\nconst LEAF_DETAILS_KEY_SEPARATOR = '::leaflevel::';\nfunction isLeafDetailsStatusSummary(value) {\n return (!!value &&\n typeof value === 'object' &&\n 'key' in value &&\n 'display' in value &&\n 'count' in value);\n}\nfunction isLeafDetailsCatalogStatusValue(value) {\n return (!!value && typeof value === 'object' && 'key' in value && 'display' in value);\n}\nfunction isLeafDetailsCatalogLevelValue(value) {\n return (!!value &&\n typeof value === 'object' &&\n 'levelId' in value &&\n 'levelName' in value &&\n 'levelIcon' in value &&\n 'statuses' in value &&\n Array.isArray(value.statuses) &&\n value.statuses.every(isLeafDetailsCatalogStatusValue));\n}\nfunction isLeafDetailsRuntimeStatusDetails(value) {\n return (!!value && typeof value === 'object' && 'key' in value && 'display' in value);\n}\nfunction isLeafDetailsRuntimeStatusCount(value) {\n return (!!value &&\n typeof value === 'object' &&\n 'details' in value &&\n isLeafDetailsRuntimeStatusDetails(value.details) &&\n 'count' in value);\n}\nfunction isLeafDetailsRuntimeChildSchema(value) {\n return (!!value &&\n typeof value === 'object' &&\n 'levelId' in value &&\n 'levelName' in value &&\n 'levelIcon' in value &&\n 'statuses' in value &&\n Array.isArray(value.statuses) &&\n value.statuses.every(isLeafDetailsRuntimeStatusCount));\n}\nfunction isLeafDetailsValue(value) {\n return (!!value &&\n typeof value === 'object' &&\n !Array.isArray(value) &&\n 'levelId' in value &&\n 'statuses' in value &&\n Array.isArray(value.statuses) &&\n value.statuses.every(isLeafDetailsStatusSummary));\n}\nfunction isLeafDetailsCollectionValue(value) {\n return Array.isArray(value) && value.every(isLeafDetailsValue);\n}\nfunction isLeafDetailsCatalogConfiguration(value) {\n return Array.isArray(value) && value.every(isLeafDetailsCatalogLevelValue);\n}\nfunction isLeafDetailsRuntimeValue(value) {\n return (!!value &&\n typeof value === 'object' &&\n !Array.isArray(value) &&\n 'childSchemas' in value &&\n Array.isArray(value.childSchemas) &&\n value.childSchemas.every(isLeafDetailsRuntimeChildSchema));\n}\nfunction isLeafDetailsSyntheticKey(key) {\n return key?.includes(LEAF_DETAILS_KEY_SEPARATOR) ?? false;\n}\nfunction toLeafDetailsStatusSummary(status) {\n return {\n key: status.details.key,\n display: status.details.display,\n color: status.details.color ?? null,\n count: status.count,\n };\n}\nfunction normalizeLeafDetailsCollection(value) {\n if (isLeafDetailsCollectionValue(value)) {\n return value;\n }\n if (isLeafDetailsValue(value)) {\n return [value];\n }\n if (isLeafDetailsRuntimeValue(value)) {\n return value.childSchemas.map((schema) => ({\n levelId: schema.levelId,\n levelName: schema.levelName,\n levelIcon: schema.levelIcon,\n statuses: schema.statuses.map(toLeafDetailsStatusSummary),\n }));\n }\n if (typeof value === 'string' && value.trim().length > 0) {\n try {\n return normalizeLeafDetailsCollection(JSON.parse(value));\n }\n catch {\n return [];\n }\n }\n return [];\n}\nfunction normalizeLeafDetailsCatalogConfiguration(value) {\n if (isLeafDetailsCatalogConfiguration(value)) {\n return value.map((level) => ({\n levelId: level.levelId,\n levelName: level.levelName,\n levelIcon: level.levelIcon,\n statuses: level.statuses.map((status) => ({\n key: status.key,\n display: status.display,\n color: status.color ?? null,\n count: 0,\n })),\n }));\n }\n if (typeof value === 'string' && value.trim().length > 0) {\n try {\n return normalizeLeafDetailsCatalogConfiguration(JSON.parse(value));\n }\n catch {\n return [];\n }\n }\n return [];\n}\nfunction expandLeafDetailsEntity(entity) {\n if (entity.viewType !== 'LeafDetails') {\n return [entity];\n }\n if (isLeafDetailsSyntheticKey(entity.key) &&\n isLeafDetailsValue(entity.value)) {\n return [entity];\n }\n const configuration = entity.configuration;\n const levels = normalizeLeafDetailsCollection(entity.value);\n const fallbackLevels = levels.length\n ? levels\n : normalizeLeafDetailsCollection(entity.rawValue);\n const resolvedLevels = fallbackLevels.length\n ? fallbackLevels\n : normalizeLeafDetailsCatalogConfiguration(entity.propertyConfiguration);\n if (resolvedLevels.length === 0) {\n return [entity];\n }\n const expanded = resolvedLevels.flatMap((level) => {\n const levelConfig = configuration?.leafLevels?.[String(level.levelId)];\n if (configuration?.leafLevels && !levelConfig) {\n return [];\n }\n const selectedStatuses = levelConfig?.selectedStatuses?.length\n ? new Set(levelConfig.selectedStatuses)\n : null;\n return [\n {\n ...entity,\n key: entity.key\n ? `${entity.key}${LEAF_DETAILS_KEY_SEPARATOR}${level.levelId}`\n : entity.key,\n name: level.levelName,\n value: {\n ...level,\n statuses: selectedStatuses\n ? level.statuses.filter((status) => selectedStatuses.has(status.key))\n : level.statuses,\n },\n order: levelConfig?.order ?? entity.order,\n configuration: {\n ...configuration,\n size: levelConfig?.size ?? configuration?.size,\n },\n },\n ];\n });\n return expanded.length > 0 ? expanded : [entity];\n}\nfunction buildDisplayEntities(entities) {\n return entities\n .flatMap((entity) => expandLeafDetailsEntity(entity))\n .sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n}\n\nclass EntityPreviewBody {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n attachmentShape = input('default', ...(ngDevMode ? [{ debugName: \"attachmentShape\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPreviewBody, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityPreviewBody, isStandalone: true, selector: \"mt-entity-preview-body\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: \"attachmentShape\", publicName: \"attachmentShape\", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: \"w-full\" }, ngImport: i0, template: \"@if (data().viewType === \\\"LookupModuleCheckList\\\") {\\r\\n <mt-entity-lookup-module-check-list [data]=\\\"data()\\\" />\\r\\n} @else {\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n}\\r\\n\", dependencies: [{ kind: \"component\", type: EntityLookupModuleCheckList, selector: \"mt-entity-lookup-module-check-list\", inputs: [\"data\"] }, { kind: \"component\", type: EntityValuePreview, selector: \"mt-entity-value-preview\", inputs: [\"data\", \"attachmentShape\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPreviewBody, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-preview-body', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityLookupModuleCheckList, EntityValuePreview], host: {\n class: 'w-full',\n }, template: \"@if (data().viewType === \\\"LookupModuleCheckList\\\") {\\r\\n <mt-entity-lookup-module-check-list [data]=\\\"data()\\\" />\\r\\n} @else {\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"attachmentShape\", required: false }] }] } });\n\nclass ComparisonValue {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n comparison = computed(() => {\n const c = this.data().comparison;\n return c?.kind === 'Value' ? c : null;\n }, ...(ngDevMode ? [{ debugName: \"comparison\" }] : /* istanbul ignore next */ []));\n oldEntity = computed(() => this.buildSide(this.comparison()?.oldValue), ...(ngDevMode ? [{ debugName: \"oldEntity\" }] : /* istanbul ignore next */ []));\n newEntity = computed(() => this.buildSide(this.comparison()?.newValue), ...(ngDevMode ? [{ debugName: \"newEntity\" }] : /* istanbul ignore next */ []));\n buildSide(side) {\n if (!side)\n return null;\n const base = this.data();\n return {\n ...base,\n rawValue: side.raw === null || side.raw === undefined\n ? undefined\n : String(side.raw),\n value: (side.display ?? side.value ?? ''),\n comparison: undefined,\n };\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: ComparisonValue, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: ComparisonValue, isStandalone: true, selector: \"mt-comparison-value\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: \"block w-full\" }, ngImport: i0, template: \"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 items-stretch gap-3\\\">\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-muted-color\\\"\\r\\n >Before</span\\r\\n >\\r\\n @if (oldEntity(); as old) {\\r\\n <mt-entity-preview-body [data]=\\\"old\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n <div class=\\\"flex shrink-0 items-center text-muted-color\\\" aria-hidden=\\\"true\\\">\\r\\n &rarr;\\r\\n </div>\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-primary-200 bg-primary-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-primary-600\\\"\\r\\n >After</span\\r\\n >\\r\\n @if (newEntity(); as next) {\\r\\n <mt-entity-preview-body [data]=\\\"next\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n </div>\\r\\n}\\r\\n\", dependencies: [{ kind: \"component\", type: EntityPreviewBody, selector: \"mt-entity-preview-body\", inputs: [\"data\", \"attachmentShape\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: ComparisonValue, decorators: [{\n type: Component,\n args: [{ selector: 'mt-comparison-value', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityPreviewBody], host: {\n class: 'block w-full',\n }, template: \"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 items-stretch gap-3\\\">\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-muted-color\\\"\\r\\n >Before</span\\r\\n >\\r\\n @if (oldEntity(); as old) {\\r\\n <mt-entity-preview-body [data]=\\\"old\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n <div class=\\\"flex shrink-0 items-center text-muted-color\\\" aria-hidden=\\\"true\\\">\\r\\n &rarr;\\r\\n </div>\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-primary-200 bg-primary-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-primary-600\\\"\\r\\n >After</span\\r\\n >\\r\\n @if (newEntity(); as next) {\\r\\n <mt-entity-preview-body [data]=\\\"next\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n </div>\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }] } });\n\nconst OPERATION_BADGE_KEYS = {\n CreateRecord: {\n key: 'components.comparisonEntities.added',\n classes: 'bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-200',\n },\n UpdateRecord: {\n key: 'components.comparisonEntities.updated',\n classes: 'bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-200',\n },\n DeleteRecord: {\n key: 'components.comparisonEntities.removed',\n classes: 'bg-rose-50 text-rose-700 ring-1 ring-inset ring-rose-200',\n },\n};\nclass ComparisonEntityList {\n transloco = inject(TranslocoService);\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n comparison = computed(() => {\n const c = this.data().comparison;\n return c?.kind === 'EntityList' ? c : null;\n }, ...(ngDevMode ? [{ debugName: \"comparison\" }] : /* istanbul ignore next */ []));\n rows = computed(() => this.comparison()?.rows ?? [], ...(ngDevMode ? [{ debugName: \"rows\" }] : /* istanbul ignore next */ []));\n targetModuleKey = computed(() => this.comparison()?.targetModuleKey ?? '', ...(ngDevMode ? [{ debugName: \"targetModuleKey\" }] : /* istanbul ignore next */ []));\n label = computed(() => this.data().name ?? '', ...(ngDevMode ? [{ debugName: \"label\" }] : /* istanbul ignore next */ []));\n badgeFor(op) {\n const config = OPERATION_BADGE_KEYS[op];\n return {\n label: this.transloco.translate(config.key),\n classes: config.classes,\n };\n }\n displayField(value, display) {\n if (display && display.trim().length > 0)\n return display;\n return displayOrPlaceholder(value);\n }\n rowId(_i, row) {\n return row.entityId ?? _i;\n }\n oldField(row, propertyKey) {\n return row.oldValues.find((v) => v.propertyKey === propertyKey);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: ComparisonEntityList, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: ComparisonEntityList, isStandalone: true, selector: \"mt-comparison-entity-list\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: \"block w-full\" }, ngImport: i0, template: \"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 flex-col gap-2\\\">\\r\\n @if (label()) {\\r\\n <div class=\\\"flex items-baseline justify-between\\\">\\r\\n <span class=\\\"text-sm font-medium text-color\\\">{{ label() }}</span>\\r\\n @if (targetModuleKey()) {\\r\\n <span class=\\\"text-xs text-muted-color\\\">{{ targetModuleKey() }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n @if (rows().length === 0) {\\r\\n <div class=\\\"text-sm text-muted-color\\\">_</div>\\r\\n } @else {\\r\\n <ul class=\\\"flex flex-col gap-2\\\">\\r\\n @for (row of rows(); track rowId($index, row)) {\\r\\n <li\\r\\n class=\\\"flex flex-col gap-2 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <div class=\\\"flex items-center justify-between gap-2\\\">\\r\\n <span\\r\\n class=\\\"inline-flex items-center rounded px-2 py-0.5 text-xs font-medium\\\"\\r\\n [class]=\\\"badgeFor(row.operation).classes\\\"\\r\\n >\\r\\n {{ badgeFor(row.operation).label }}\\r\\n </span>\\r\\n <span class=\\\"text-xs text-muted-color\\\">#{{ row.entityId }}</span>\\r\\n </div>\\r\\n\\r\\n @switch (row.operation) {\\r\\n @case (\\\"CreateRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @case (\\\"DeleteRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.oldValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color line-through\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @default {\\r\\n <dl class=\\\"flex flex-col gap-1\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\">\\r\\n <span\\r\\n class=\\\"max-w-[40%] truncate text-sm text-muted-color line-through\\\"\\r\\n >\\r\\n {{\\r\\n displayField(\\r\\n $any(oldField(row, f.propertyKey))?.value,\\r\\n $any(oldField(row, f.propertyKey))?.display\\r\\n )\\r\\n }}\\r\\n </span>\\r\\n <span class=\\\"text-muted-color\\\" aria-hidden=\\\"true\\\"\\r\\n >&rarr;</span\\r\\n >\\r\\n <span class=\\\"max-w-[40%] truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </span>\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n }\\r\\n </li>\\r\\n }\\r\\n </ul>\\r\\n }\\r\\n </div>\\r\\n}\\r\\n\", changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: ComparisonEntityList, decorators: [{\n type: Component,\n args: [{ selector: 'mt-comparison-entity-list', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [], host: {\n class: 'block w-full',\n }, template: \"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 flex-col gap-2\\\">\\r\\n @if (label()) {\\r\\n <div class=\\\"flex items-baseline justify-between\\\">\\r\\n <span class=\\\"text-sm font-medium text-color\\\">{{ label() }}</span>\\r\\n @if (targetModuleKey()) {\\r\\n <span class=\\\"text-xs text-muted-color\\\">{{ targetModuleKey() }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n @if (rows().length === 0) {\\r\\n <div class=\\\"text-sm text-muted-color\\\">_</div>\\r\\n } @else {\\r\\n <ul class=\\\"flex flex-col gap-2\\\">\\r\\n @for (row of rows(); track rowId($index, row)) {\\r\\n <li\\r\\n class=\\\"flex flex-col gap-2 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <div class=\\\"flex items-center justify-between gap-2\\\">\\r\\n <span\\r\\n class=\\\"inline-flex items-center rounded px-2 py-0.5 text-xs font-medium\\\"\\r\\n [class]=\\\"badgeFor(row.operation).classes\\\"\\r\\n >\\r\\n {{ badgeFor(row.operation).label }}\\r\\n </span>\\r\\n <span class=\\\"text-xs text-muted-color\\\">#{{ row.entityId }}</span>\\r\\n </div>\\r\\n\\r\\n @switch (row.operation) {\\r\\n @case (\\\"CreateRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @case (\\\"DeleteRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.oldValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color line-through\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @default {\\r\\n <dl class=\\\"flex flex-col gap-1\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\">\\r\\n <span\\r\\n class=\\\"max-w-[40%] truncate text-sm text-muted-color line-through\\\"\\r\\n >\\r\\n {{\\r\\n displayField(\\r\\n $any(oldField(row, f.propertyKey))?.value,\\r\\n $any(oldField(row, f.propertyKey))?.display\\r\\n )\\r\\n }}\\r\\n </span>\\r\\n <span class=\\\"text-muted-color\\\" aria-hidden=\\\"true\\\"\\r\\n >&rarr;</span\\r\\n >\\r\\n <span class=\\\"max-w-[40%] truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </span>\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n }\\r\\n </li>\\r\\n }\\r\\n </ul>\\r\\n }\\r\\n </div>\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }] } });\n\nclass EntityPreview {\n data = input.required(...(ngDevMode ? [{ debugName: \"data\" }] : /* istanbul ignore next */ []));\n attachmentShape = input('default', ...(ngDevMode ? [{ debugName: \"attachmentShape\" }] : /* istanbul ignore next */ []));\n comparisonKind = computed(() => {\n const c = this.data().comparison;\n if (!c)\n return null;\n if (c.kind === 'Value')\n return 'Value';\n if (c.kind === 'EntityList')\n return 'EntityList';\n return null;\n }, ...(ngDevMode ? [{ debugName: \"comparisonKind\" }] : /* istanbul ignore next */ []));\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntityPreview, isStandalone: true, selector: \"mt-entity-preview\", inputs: { data: { classPropertyName: \"data\", publicName: \"data\", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: \"attachmentShape\", publicName: \"attachmentShape\", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: \"w-full\" }, ngImport: i0, template: \"@switch (comparisonKind()) {\\r\\n @case (\\\"Value\\\") {\\r\\n <mt-comparison-value [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"EntityList\\\") {\\r\\n <mt-comparison-entity-list [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-preview-body\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n }\\r\\n}\\r\\n\", dependencies: [{ kind: \"component\", type: EntityPreviewBody, selector: \"mt-entity-preview-body\", inputs: [\"data\", \"attachmentShape\"] }, { kind: \"component\", type: ComparisonValue, selector: \"mt-comparison-value\", inputs: [\"data\"] }, { kind: \"component\", type: ComparisonEntityList, selector: \"mt-comparison-entity-list\", inputs: [\"data\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntityPreview, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entity-preview', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [EntityPreviewBody, ComparisonValue, ComparisonEntityList], host: {\n class: 'w-full',\n }, template: \"@switch (comparisonKind()) {\\r\\n @case (\\\"Value\\\") {\\r\\n <mt-comparison-value [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"EntityList\\\") {\\r\\n <mt-comparison-entity-list [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-preview-body\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n }\\r\\n}\\r\\n\" }]\n }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: \"data\", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"attachmentShape\", required: false }] }] } });\n\nconst EMPTY_KEY_SET = new Set();\n/**\n * Below this host width a field narrower than {@link MIN_NARROW_SPAN} cannot\n * hold its own value. Matches the container query in the stylesheet, which\n * handles the `stackOnNarrow` case the same way.\n */\nconst NARROW_HOST_WIDTH = 400;\n/**\n * The smallest share of the 24-column grid a field may take on a narrow host —\n * half the row.\n *\n * A card that opts out of the soft stack still laid its fields on 24 columns,\n * so a three-field row inside a ~350px card gave each field about 90px, and at\n * that width a budget rendered \"10,000 S…\" and a date \"01/07/2…\" — finding H-06\n * in its narrowest form, and the reviewer was explicit that a date must never\n * be truncated. Raising the floor to half the row is done here rather than in\n * CSS because the grid cannot be re-tracked safely: a field configured `span 24`\n * would spill into implicit columns and collapse the explicit ones to zero.\n */\nconst MIN_NARROW_SPAN = 12;\n/** Classes every entity slot carries, before its per-slot modifiers. */\nconst SLOT_BASE_CLASS = 'min-w-0 overflow-hidden flex items-center rounded transition-colors';\n/** Opt-in dashed frame (`configuration.showBorder`). */\nconst SLOT_BORDER_CLASS = 'border p-3 border-dashed border-gray-200 rounded-lg';\nclass EntitiesPreview {\n transloco = inject(TranslocoService);\n elementRef = inject(ElementRef);\n destroyRef = inject(DestroyRef);\n zone = inject(NgZone);\n /** Array of entity data to display */\n entities = input.required(...(ngDevMode ? [{ debugName: \"entities\" }] : /* istanbul ignore next */ []));\n attachmentShape = input('default', ...(ngDevMode ? [{ debugName: \"attachmentShape\" }] : /* istanbul ignore next */ []));\n /**\n * Soft \"stack every field full-width when the host is narrower than the\n * 24-column grid reads well\" behavior (the ≤400px container-query fallback,\n * default on). Set to `false` in wide-enough card layouts — e.g. client-list\n * cards (~350px) — so the per-entity `size` configuration is honored instead\n * of forcing every item to full width. A hard ≤280px stack always applies\n * regardless, so the 24-column gap floor can never overflow the host (#1081).\n */\n stackOnNarrow = input(true, ...(ngDevMode ? [{ debugName: \"stackOnNarrow\" }] : /* istanbul ignore next */ []));\n /**\n * Set of entity keys that should appear interactive (cursor pointer,\n * clicks emit). Pass `new Set([...])` from a computed signal in the host\n * for reactive enabling — when the host's set changes, Angular re-renders\n * via its normal change detection, no manual subscriptions required.\n *\n * Pass a *stable* reference: a host method that mints a fresh `Set` on every\n * call re-writes this input on every change detection pass and defeats the\n * slot memoization below.\n */\n clickableKeys = input(EMPTY_KEY_SET, ...(ngDevMode ? [{ debugName: \"clickableKeys\" }] : /* istanbul ignore next */ []));\n /**\n * Set of entity keys that should render with the \"active\" treatment\n * (e.g. currently the filter source). Same reactive pattern — and the same\n * stable-reference requirement — as `clickableKeys`.\n */\n activeKeys = input(EMPTY_KEY_SET, ...(ngDevMode ? [{ debugName: \"activeKeys\" }] : /* istanbul ignore next */ []));\n /** Tooltip text shown on hover when an entity is clickable but not active. */\n clickableTooltip = input(this.transloco.translate('components.entitiesPreview.filterByThis'), ...(ngDevMode ? [{ debugName: \"clickableTooltip\" }] : /* istanbul ignore next */ []));\n /** Tooltip text shown on hover when an entity is the current active filter. */\n activeTooltip = input(this.transloco.translate('components.entitiesPreview.clearFilter'), ...(ngDevMode ? [{ debugName: \"activeTooltip\" }] : /* istanbul ignore next */ []));\n /**\n * Emits when an individual entity slot is clicked. Only fires when the\n * entity's key is present in `clickableKeys`.\n */\n entityClick = output();\n /**\n * The active language as a signal. Section headings are resolved per-language\n * in a `computed`, so under `OnPush` a plain `getActiveLang()` read would\n * freeze them at whatever language was active on first render.\n */\n activeLang = toSignal(this.transloco.langChanges$, {\n initialValue: this.transloco.getActiveLang(),\n });\n /** Entities expanded and sorted by order */\n displayEntities = computed(() => buildDisplayEntities(this.entities()), ...(ngDevMode ? [{ debugName: \"displayEntities\" }] : /* istanbul ignore next */ []));\n /**\n * The display entities split into section groups. With no `Section` markers\n * this is a single `{ section: null }` group, so the bare grid renders\n * exactly as before.\n */\n sectionGroups = computed(() => groupEntitiesIntoSections(this.displayEntities()), ...(ngDevMode ? [{ debugName: \"sectionGroups\" }] : /* istanbul ignore next */ []));\n /**\n * The render model the template iterates. Split from `sectionGroups` on\n * purpose: grouping only re-runs when the entities themselves change, while\n * this cheap mapping re-runs when the key sets or tooltips change.\n */\n slotGroups = computed(() => {\n const clickableKeys = this.clickableKeys();\n const activeKeys = this.activeKeys();\n const clickableTooltip = this.clickableTooltip();\n const activeTooltip = this.activeTooltip();\n const lang = this.activeLang();\n const narrow = this.isNarrowHost();\n return this.sectionGroups().map((group, groupIndex) => ({\n trackKey: group.section?.key ?? `__group__${groupIndex}`,\n boxed: !!group.section,\n title: getEntitySectionTitle(group.section, lang),\n slots: group.entities.map((entity, entityIndex) => {\n const key = resolveEntityKey(entity);\n const clickable = key.length > 0 && clickableKeys.has(key);\n const active = clickable && activeKeys.has(key);\n return {\n entity,\n trackKey: entity.key ?? String(entity.order ?? entityIndex),\n containerClass: buildSlotClass(entity, clickable, active),\n colSpan: `span ${resolveSpan(entity, narrow)}`,\n clickable,\n rowClickIgnore: clickable ? 'true' : null,\n title: clickable ? (active ? activeTooltip : clickableTooltip) : null,\n };\n }),\n }));\n }, ...(ngDevMode ? [{ debugName: \"slotGroups\" }] : /* istanbul ignore next */ []));\n /**\n * Whether the host is too narrow for the 24-column grid to stay legible.\n *\n * Measured rather than assumed: this component is narrow because of the\n * column layout it sits in, not because of the viewport, so a media query\n * would answer the wrong question — the same reason the stylesheet uses a\n * container query.\n */\n hostWidth = signal(Number.POSITIVE_INFINITY, ...(ngDevMode ? [{ debugName: \"hostWidth\" }] : /* istanbul ignore next */ []));\n isNarrowHost = computed(() => this.hostWidth() <= NARROW_HOST_WIDTH, ...(ngDevMode ? [{ debugName: \"isNarrowHost\" }] : /* istanbul ignore next */ []));\n constructor() {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n const element = this.elementRef.nativeElement;\n // `ResizeObserver` callbacks fire outside Angular's zone, so writing the\n // signal there marks this component dirty but schedules nothing to act on\n // it. Running the write inside the zone is what makes the re-render happen\n // (and is a no-op passthrough in a zoneless host).\n const observer = new ResizeObserver((entries) => {\n const width = entries[0]?.contentRect.width;\n if (typeof width === 'number' && width > 0) {\n this.zone.run(() => this.hostWidth.set(width));\n }\n });\n observer.observe(element);\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n onSlotClick(source, slot) {\n if (!slot.clickable)\n return;\n source.stopPropagation();\n this.entityClick.emit({\n entity: slot.entity,\n key: resolveEntityKey(slot.entity),\n source,\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntitiesPreview, isStandalone: true, selector: \"mt-entities-preview\", inputs: { entities: { classPropertyName: \"entities\", publicName: \"entities\", isSignal: true, isRequired: true, transformFunction: null }, attachmentShape: { classPropertyName: \"attachmentShape\", publicName: \"attachmentShape\", isSignal: true, isRequired: false, transformFunction: null }, stackOnNarrow: { classPropertyName: \"stackOnNarrow\", publicName: \"stackOnNarrow\", isSignal: true, isRequired: false, transformFunction: null }, clickableKeys: { classPropertyName: \"clickableKeys\", publicName: \"clickableKeys\", isSignal: true, isRequired: false, transformFunction: null }, activeKeys: { classPropertyName: \"activeKeys\", publicName: \"activeKeys\", isSignal: true, isRequired: false, transformFunction: null }, clickableTooltip: { classPropertyName: \"clickableTooltip\", publicName: \"clickableTooltip\", isSignal: true, isRequired: false, transformFunction: null }, activeTooltip: { classPropertyName: \"activeTooltip\", publicName: \"activeTooltip\", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { entityClick: \"entityClick\" }, host: { properties: { \"class.mt-entities-stack-narrow\": \"stackOnNarrow()\" }, classAttribute: \"block min-w-0 w-full\" }, ngImport: i0, template: \"<div class=\\\"flex flex-col gap-4\\\">\\r\\n @for (group of slotGroups(); track group.trackKey) {\\r\\n @if (group.boxed) {\\r\\n <!-- Titled section box (matches the client-form section view) -->\\r\\n <div\\r\\n class=\\\"flex flex-col gap-0 overflow-hidden rounded-md border border-surface-200 bg-surface-0\\\"\\r\\n >\\r\\n @if (group.title) {\\r\\n <h3\\r\\n class=\\\"m-0 border-b border-surface-200 bg-surface-50 px-4 py-3 text-lg font-semibold text-color\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ group.title }}\\r\\n </h3>\\r\\n }\\r\\n <div class=\\\"p-4\\\">\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n </div>\\r\\n </div>\\r\\n } @else {\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\\r\\n<!--\\r\\n Every binding here reads a value the component already resolved into the slot\\r\\n (see `EntitiesPreview.slotGroups`). Keep it that way: this template runs once\\r\\n per entity per change detection pass, and a card grid renders thousands of\\r\\n them, so a method call or a fresh object literal in this block is measurably\\r\\n expensive.\\r\\n-->\\r\\n<ng-template #entityGrid let-slots>\\r\\n <div class=\\\"mt-entities-grid grid grid-cols-24 gap-x-3 gap-y-5\\\">\\r\\n @for (slot of slots; track slot.trackKey) {\\r\\n <div\\r\\n [class]=\\\"slot.containerClass\\\"\\r\\n [attr.data-row-click-ignore]=\\\"slot.rowClickIgnore\\\"\\r\\n [attr.title]=\\\"slot.title\\\"\\r\\n [style.grid-column]=\\\"slot.colSpan\\\"\\r\\n (click)=\\\"onSlotClick($event, slot)\\\"\\r\\n >\\r\\n <mt-entity-preview\\r\\n [data]=\\\"slot.entity\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n</ng-template>\\r\\n\", styles: [\":host{container-type:inline-size}@container (max-width: 400px){:host(.mt-entities-stack-narrow) .mt-entities-grid{grid-template-columns:1fr;column-gap:0}:host(.mt-entities-stack-narrow) .mt-entities-grid>*{grid-column:1 / -1!important}}@container (max-width: 280px){.mt-entities-grid{grid-template-columns:1fr;column-gap:0}.mt-entities-grid>*{grid-column:1 / -1!important}}.mt-entity-filterable{cursor:url(\\\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54L22 3z'/%3E%3C/svg%3E\\\") 7 3,zoom-in!important}.mt-entity-filter-active{cursor:url(\\\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%2314b8a6' stroke='%2314b8a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54L22 3z'/%3E%3C/svg%3E\\\") 7 3,zoom-out!important}.mt-entity-filterable:hover{background-color:#ccfbf147;outline:1px dashed rgb(20 184 166 / .28);outline-offset:2px}.mt-entity-filter-active{background-color:#ccfbf14d;box-shadow:inset 0 0 0 1.5px #14b8a666,0 0 0 1px #ffffff80}\\n\"], dependencies: [{ kind: \"component\", type: EntityPreview, selector: \"mt-entity-preview\", inputs: [\"data\", \"attachmentShape\"] }, { kind: \"directive\", type: NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesPreview, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entities-preview', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [EntityPreview, NgTemplateOutlet], host: {\n class: 'block min-w-0 w-full',\n '[class.mt-entities-stack-narrow]': 'stackOnNarrow()',\n }, template: \"<div class=\\\"flex flex-col gap-4\\\">\\r\\n @for (group of slotGroups(); track group.trackKey) {\\r\\n @if (group.boxed) {\\r\\n <!-- Titled section box (matches the client-form section view) -->\\r\\n <div\\r\\n class=\\\"flex flex-col gap-0 overflow-hidden rounded-md border border-surface-200 bg-surface-0\\\"\\r\\n >\\r\\n @if (group.title) {\\r\\n <h3\\r\\n class=\\\"m-0 border-b border-surface-200 bg-surface-50 px-4 py-3 text-lg font-semibold text-color\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ group.title }}\\r\\n </h3>\\r\\n }\\r\\n <div class=\\\"p-4\\\">\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n </div>\\r\\n </div>\\r\\n } @else {\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\\r\\n<!--\\r\\n Every binding here reads a value the component already resolved into the slot\\r\\n (see `EntitiesPreview.slotGroups`). Keep it that way: this template runs once\\r\\n per entity per change detection pass, and a card grid renders thousands of\\r\\n them, so a method call or a fresh object literal in this block is measurably\\r\\n expensive.\\r\\n-->\\r\\n<ng-template #entityGrid let-slots>\\r\\n <div class=\\\"mt-entities-grid grid grid-cols-24 gap-x-3 gap-y-5\\\">\\r\\n @for (slot of slots; track slot.trackKey) {\\r\\n <div\\r\\n [class]=\\\"slot.containerClass\\\"\\r\\n [attr.data-row-click-ignore]=\\\"slot.rowClickIgnore\\\"\\r\\n [attr.title]=\\\"slot.title\\\"\\r\\n [style.grid-column]=\\\"slot.colSpan\\\"\\r\\n (click)=\\\"onSlotClick($event, slot)\\\"\\r\\n >\\r\\n <mt-entity-preview\\r\\n [data]=\\\"slot.entity\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n</ng-template>\\r\\n\", styles: [\":host{container-type:inline-size}@container (max-width: 400px){:host(.mt-entities-stack-narrow) .mt-entities-grid{grid-template-columns:1fr;column-gap:0}:host(.mt-entities-stack-narrow) .mt-entities-grid>*{grid-column:1 / -1!important}}@container (max-width: 280px){.mt-entities-grid{grid-template-columns:1fr;column-gap:0}.mt-entities-grid>*{grid-column:1 / -1!important}}.mt-entity-filterable{cursor:url(\\\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54L22 3z'/%3E%3C/svg%3E\\\") 7 3,zoom-in!important}.mt-entity-filter-active{cursor:url(\\\"data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%2314b8a6' stroke='%2314b8a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54L22 3z'/%3E%3C/svg%3E\\\") 7 3,zoom-out!important}.mt-entity-filterable:hover{background-color:#ccfbf147;outline:1px dashed rgb(20 184 166 / .28);outline-offset:2px}.mt-entity-filter-active{background-color:#ccfbf14d;box-shadow:inset 0 0 0 1.5px #14b8a666,0 0 0 1px #ffffff80}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { entities: [{ type: i0.Input, args: [{ isSignal: true, alias: \"entities\", required: true }] }], attachmentShape: [{ type: i0.Input, args: [{ isSignal: true, alias: \"attachmentShape\", required: false }] }], stackOnNarrow: [{ type: i0.Input, args: [{ isSignal: true, alias: \"stackOnNarrow\", required: false }] }], clickableKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: \"clickableKeys\", required: false }] }], activeKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: \"activeKeys\", required: false }] }], clickableTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: \"clickableTooltip\", required: false }] }], activeTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: \"activeTooltip\", required: false }] }], entityClick: [{ type: i0.Output, args: [\"entityClick\"] }] } });\n/**\n * The column span a field renders at: its configured size, floored to half the\n * row once the host is too narrow for that size to hold the value.\n */\nfunction resolveSpan(entity, narrow) {\n const size = (entity.configuration?.size ?? 8);\n return narrow && size < MIN_NARROW_SPAN ? MIN_NARROW_SPAN : size;\n}\n/** Stable key resolution shared with the host — must agree on order. */\nfunction resolveEntityKey(entity) {\n return entity.key || entity.normalizedKey || entity.name || '';\n}\nfunction buildSlotClass(entity, clickable, active) {\n let result = SLOT_BASE_CLASS;\n if (entity.configuration?.showBorder)\n result += ` ${SLOT_BORDER_CLASS}`;\n if (clickable) {\n result += active ? ' mt-entity-filter-active' : ' mt-entity-filterable';\n }\n return result;\n}\n\n/**\n * Base class that encapsulates all entity resize-via-drag logic.\n *\n * Extend this directive in any component that needs column-resize behaviour\n * on a 24-column CSS grid. The subclass must:\n * - Provide a `model.required<EntityData[]>()` (or equivalent) for the\n * entity list so `updateEntitySize()` can be called after resize.\n * - Contain a `.grid` element (or override `getGridElement()`).\n *\n * Resize flow:\n * 1. `onResizeStart(event, entity)` — called from a mousedown on the handle\n * 2. mousemove → snaps to nearest column, updates `resizePreviewSize`\n * 3. mouseup → emits `entityResized` with previous & new size\n */\nclass EntitiesResizeBase {\n elRef = inject(ElementRef);\n zone = inject(NgZone);\n doc = inject(DOCUMENT);\n /** Emits when an entity is resized via the drag handle */\n entityResized = output();\n // ── Resize state ──\n /** The entity currently being resized (null when idle) */\n resizingEntity = signal(null, ...(ngDevMode ? [{ debugName: \"resizingEntity\" }] : /* istanbul ignore next */ []));\n /** Live preview size while dragging */\n resizePreviewSize = signal(null, ...(ngDevMode ? [{ debugName: \"resizePreviewSize\" }] : /* istanbul ignore next */ []));\n /** Bound listeners kept for cleanup */\n _onMouseMove = null;\n _onMouseUp = null;\n // ── Public API ──\n /**\n * Returns the grid element used to compute column widths.\n * Override if the grid selector differs.\n */\n getGridElement() {\n return this.elRef.nativeElement.querySelector('.grid');\n }\n /**\n * Returns the grid-column span string for a given entity.\n * While resizing the active entity, returns the preview size.\n */\n getResizeColSpan(entity) {\n if (this.resizingEntity() === entity && this.resizePreviewSize() !== null) {\n return `span ${this.resizePreviewSize()}`;\n }\n const size = entity.configuration?.size ?? 8;\n return `span ${size}`;\n }\n /** Starts a resize operation from the right-edge handle */\n onResizeStart(event, entity) {\n // Prevent the drag-drop from starting\n event.preventDefault();\n event.stopPropagation();\n const gridEl = this.getGridElement();\n if (!gridEl)\n return;\n const gridRect = gridEl.getBoundingClientRect();\n const gridWidth = gridRect.width;\n const columnWidth = gridWidth / 24;\n const previousSize = entity.configuration?.size ?? 8;\n // Left edge of the entity cell\n const cellEl = event.target.closest('.entity-cell');\n if (!cellEl)\n return;\n const cellRect = cellEl.getBoundingClientRect();\n const isRtl = this.doc.documentElement.getAttribute('dir') === 'rtl' ||\n getComputedStyle(this.doc.documentElement).direction === 'rtl';\n this.resizingEntity.set(entity);\n this.resizePreviewSize.set(previousSize);\n // Run mouse listeners outside Angular zone for performance\n this.zone.runOutsideAngular(() => {\n this._onMouseMove = (e) => {\n // In RTL the logical end is the left edge; dragging left widens the cell\n const rawWidth = isRtl\n ? cellRect.right - e.clientX\n : e.clientX - cellRect.left;\n // Snap to nearest full column (min 1, max 12)\n let cols = Math.round(rawWidth / columnWidth);\n cols = Math.max(1, Math.min(24, cols));\n const current = this.resizePreviewSize();\n if (current !== cols) {\n this.zone.run(() => this.resizePreviewSize.set(cols));\n }\n };\n this._onMouseUp = () => {\n this._cleanupListeners();\n const newSize = this.resizePreviewSize();\n this.resizingEntity.set(null);\n this.resizePreviewSize.set(null);\n if (newSize !== previousSize) {\n this.zone.run(() => {\n this.onResizeComplete(entity, previousSize, newSize);\n });\n }\n };\n this.doc.addEventListener('mousemove', this._onMouseMove);\n this.doc.addEventListener('mouseup', this._onMouseUp, { once: true });\n });\n }\n /** Removes global mouse listeners */\n _cleanupListeners() {\n if (this._onMouseMove) {\n this.doc.removeEventListener('mousemove', this._onMouseMove);\n this._onMouseMove = null;\n }\n if (this._onMouseUp) {\n this.doc.removeEventListener('mouseup', this._onMouseUp);\n this._onMouseUp = null;\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesResizeBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"21.2.8\", type: EntitiesResizeBase, isStandalone: true, outputs: { entityResized: \"entityResized\" }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesResizeBase, decorators: [{\n type: Directive\n }], propDecorators: { entityResized: [{ type: i0.Output, args: [\"entityResized\"] }] } });\n\nclass EntitiesManage extends EntitiesResizeBase {\n /** Array of entity data – supports two-way binding to keep order in sync */\n entities = model.required(...(ngDevMode ? [{ debugName: \"entities\" }] : /* istanbul ignore next */ []));\n /** Emits the reordered entities array after each drag-drop */\n entitiesReordered = output();\n /** Emits when an entity cell is clicked (for opening edit drawer) */\n entityClicked = output();\n /**\n * Emits when an item dragged from a *different* connected list (e.g. a sidebar\n * \"add section\" tool) is dropped onto this grid. `index` is the target slot;\n * `data` is the dropped `cdkDragData`. The host decides what to insert.\n */\n externalItemDropped = output();\n /** Entities expanded and sorted by their configured order */\n displayEntities = computed(() => buildDisplayEntities(this.entities()), ...(ngDevMode ? [{ debugName: \"displayEntities\" }] : /* istanbul ignore next */ []));\n /** Returns the grid-column span for a given entity size (1-24) */\n getColSpan(entity) {\n if (isEntitySection(entity))\n return 'span 24';\n return this.getResizeColSpan(entity);\n }\n /** True when the entity is a full-width `Section` layout marker. */\n isSection(entity) {\n return isEntitySection(entity);\n }\n /** Handle drag-drop reorder */\n onDrop(event) {\n // Item dragged in from another connected list — let the host handle it.\n if (event.previousContainer !== event.container) {\n this.externalItemDropped.emit({\n index: event.currentIndex,\n data: event.item.data,\n });\n return;\n }\n if (event.previousIndex === event.currentIndex)\n return;\n const items = [...this.displayEntities()];\n const [moved] = items.splice(event.previousIndex, 1);\n items.splice(event.currentIndex, 0, moved);\n // Reassign order based on new positions\n const reordered = items.map((item, index) => ({\n ...item,\n order: index + 1,\n }));\n // Update the model (two-way binding)\n this.entities.set(reordered);\n // Emit the reordered list\n this.entitiesReordered.emit(reordered);\n }\n // ── Resize completion (from EntitiesResizeBase) ──\n onResizeComplete(entity, previousSize, newSize) {\n const currentEntities = this.entities();\n const sourceEntities = currentEntities.some((e) => e === entity)\n ? currentEntities\n : this.displayEntities();\n const updated = sourceEntities.map((e) => e === entity || (isLeafDetailsSyntheticKey(e.key) && e.key === entity.key)\n ? {\n ...e,\n configuration: {\n ...e.configuration,\n size: newSize,\n },\n }\n : e);\n this.entities.set(updated);\n this.entityResized.emit({\n entity: {\n ...entity,\n configuration: { ...entity.configuration, size: newSize },\n },\n previousSize,\n newSize,\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesManage, deps: null, target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"21.2.8\", type: EntitiesManage, isStandalone: true, selector: \"mt-entities-manage\", inputs: { entities: { classPropertyName: \"entities\", publicName: \"entities\", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { entities: \"entitiesChange\", entitiesReordered: \"entitiesReordered\", entityClicked: \"entityClicked\", externalItemDropped: \"externalItemDropped\" }, usesInheritance: true, ngImport: i0, template: \"<div\\r\\n cdkDropList\\r\\n cdkDropListOrientation=\\\"mixed\\\"\\r\\n [cdkDropListData]=\\\"displayEntities()\\\"\\r\\n (cdkDropListDropped)=\\\"onDrop($event)\\\"\\r\\n class=\\\"grid grid-cols-24 gap-x-4 gap-y-6\\\"\\r\\n>\\r\\n @for (\\r\\n entity of displayEntities();\\r\\n track entity.key ?? entity.order ?? $index\\r\\n ) {\\r\\n @if (isSection(entity)) {\\r\\n <!-- Section marker: full-width, non-resizable header row -->\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell section-row group relative min-w-0 flex items-center gap-2 px-4 py-2.5 cursor-grab active:cursor-grabbing rounded-md border border-surface-200 bg-surface-50 transition-colors hover:bg-emphasis\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n >\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-11 bg-black/10 rounded-md\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <span\\r\\n class=\\\"flex-1 min-w-0 truncate text-base font-semibold\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ entity.name }}\\r\\n </span>\\r\\n <mt-icon\\r\\n icon=\\\"editor.pencil-01\\\"\\r\\n class=\\\"shrink-0 opacity-0 transition-opacity group-hover:opacity-60\\\"\\r\\n />\\r\\n </div>\\r\\n } @else {\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell group relative min-w-0 flex items-center p-3 cursor-grab active:cursor-grabbing rounded-lg transition-colors bg-surface-100/60\\\"\\r\\n [class.border]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-dashed]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-gray-300]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n >\\r\\n <!-- Drag placeholder -->\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-12 bg-black/10 rounded-xl\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <mt-entity-preview\\r\\n [data]=\\\"entity\\\"\\r\\n class=\\\"flex-1 min-w-0 cursor-pointer\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n />\\r\\n\\r\\n <!-- Resize handle (right edge) -->\\r\\n <div\\r\\n class=\\\"resize-handle\\\"\\r\\n (mousedown)=\\\"onResizeStart($event, entity)\\\"\\r\\n (click)=\\\"$event.stopPropagation()\\\"\\r\\n >\\r\\n <div class=\\\"resize-handle-bar\\\"></div>\\r\\n </div>\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\", styles: [\".cdk-drag{cursor:grab}.cdk-drag:active{cursor:grabbing}.cdk-drag-preview{cursor:grabbing;overflow:hidden}.cdk-drag-placeholder{opacity:.5}.cdk-drop-list-dragging .cdk-drag{cursor:grabbing}.entity-cell{position:relative}.resize-handle{position:absolute;top:0;inset-inline-end:-4px;width:8px;height:100%;cursor:col-resize;z-index:10;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease}.entity-cell:hover .resize-handle,.entity-cell.resizing .resize-handle{opacity:1}.resize-handle-bar{width:3px;height:24px;border-radius:2px;background-color:var(--p-primary-color, #6366f1);transition:height .15s ease,background-color .15s ease}.resize-handle:hover .resize-handle-bar{height:36px;background-color:var(--p-primary-color, #4f46e5)}.entity-cell.resizing{outline:2px dashed var(--p-primary-color, #6366f1);outline-offset:-1px;border-radius:8px;-webkit-user-select:none;user-select:none}\\n\"], dependencies: [{ kind: \"component\", type: EntityPreview, selector: \"mt-entity-preview\", inputs: [\"data\", \"attachmentShape\"] }, { kind: \"component\", type: Icon, selector: \"mt-icon\", inputs: [\"icon\"] }, { kind: \"directive\", type: CdkDrag, selector: \"[cdkDrag]\", inputs: [\"cdkDragData\", \"cdkDragLockAxis\", \"cdkDragRootElement\", \"cdkDragBoundary\", \"cdkDragStartDelay\", \"cdkDragFreeDragPosition\", \"cdkDragDisabled\", \"cdkDragConstrainPosition\", \"cdkDragPreviewClass\", \"cdkDragPreviewContainer\", \"cdkDragScale\"], outputs: [\"cdkDragStarted\", \"cdkDragReleased\", \"cdkDragEnded\", \"cdkDragEntered\", \"cdkDragExited\", \"cdkDragDropped\", \"cdkDragMoved\"], exportAs: [\"cdkDrag\"] }, { kind: \"directive\", type: CdkDropList, selector: \"[cdkDropList], cdk-drop-list\", inputs: [\"cdkDropListConnectedTo\", \"cdkDropListData\", \"cdkDropListOrientation\", \"id\", \"cdkDropListLockAxis\", \"cdkDropListDisabled\", \"cdkDropListSortingDisabled\", \"cdkDropListEnterPredicate\", \"cdkDropListSortPredicate\", \"cdkDropListAutoScrollDisabled\", \"cdkDropListAutoScrollStep\", \"cdkDropListElementContainer\", \"cdkDropListHasAnchor\"], outputs: [\"cdkDropListDropped\", \"cdkDropListEntered\", \"cdkDropListExited\", \"cdkDropListSorted\"], exportAs: [\"cdkDropList\"] }, { kind: \"directive\", type: CdkDragPlaceholder, selector: \"ng-template[cdkDragPlaceholder]\", inputs: [\"data\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"21.2.8\", ngImport: i0, type: EntitiesManage, decorators: [{\n type: Component,\n args: [{ selector: 'mt-entities-manage', standalone: true, imports: [EntityPreview, Icon, CdkDrag, CdkDropList, CdkDragPlaceholder], template: \"<div\\r\\n cdkDropList\\r\\n cdkDropListOrientation=\\\"mixed\\\"\\r\\n [cdkDropListData]=\\\"displayEntities()\\\"\\r\\n (cdkDropListDropped)=\\\"onDrop($event)\\\"\\r\\n class=\\\"grid grid-cols-24 gap-x-4 gap-y-6\\\"\\r\\n>\\r\\n @for (\\r\\n entity of displayEntities();\\r\\n track entity.key ?? entity.order ?? $index\\r\\n ) {\\r\\n @if (isSection(entity)) {\\r\\n <!-- Section marker: full-width, non-resizable header row -->\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell section-row group relative min-w-0 flex items-center gap-2 px-4 py-2.5 cursor-grab active:cursor-grabbing rounded-md border border-surface-200 bg-surface-50 transition-colors hover:bg-emphasis\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n >\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-11 bg-black/10 rounded-md\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <span\\r\\n class=\\\"flex-1 min-w-0 truncate text-base font-semibold\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ entity.name }}\\r\\n </span>\\r\\n <mt-icon\\r\\n icon=\\\"editor.pencil-01\\\"\\r\\n class=\\\"shrink-0 opacity-0 transition-opacity group-hover:opacity-60\\\"\\r\\n />\\r\\n </div>\\r\\n } @else {\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell group relative min-w-0 flex items-center p-3 cursor-grab active:cursor-grabbing rounded-lg transition-colors bg-surface-100/60\\\"\\r\\n [class.border]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-dashed]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-gray-300]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n >\\r\\n <!-- Drag placeholder -->\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-12 bg-black/10 rounded-xl\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <mt-entity-preview\\r\\n [data]=\\\"entity\\\"\\r\\n class=\\\"flex-1 min-w-0 cursor-pointer\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n />\\r\\n\\r\\n <!-- Resize handle (right edge) -->\\r\\n <div\\r\\n class=\\\"resize-handle\\\"\\r\\n (mousedown)=\\\"onResizeStart($event, entity)\\\"\\r\\n (click)=\\\"$event.stopPropagation()\\\"\\r\\n >\\r\\n <div class=\\\"resize-handle-bar\\\"></div>\\r\\n </div>\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\", styles: [\".cdk-drag{cursor:grab}.cdk-drag:active{cursor:grabbing}.cdk-drag-preview{cursor:grabbing;overflow:hidden}.cdk-drag-placeholder{opacity:.5}.cdk-drop-list-dragging .cdk-drag{cursor:grabbing}.entity-cell{position:relative}.resize-handle{position:absolute;top:0;inset-inline-end:-4px;width:8px;height:100%;cursor:col-resize;z-index:10;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease}.entity-cell:hover .resize-handle,.entity-cell.resizing .resize-handle{opacity:1}.resize-handle-bar{width:3px;height:24px;border-radius:2px;background-color:var(--p-primary-color, #6366f1);transition:height .15s ease,background-color .15s ease}.resize-handle:hover .resize-handle-bar{height:36px;background-color:var(--p-primary-color, #4f46e5)}.entity-cell.resizing{outline:2px dashed var(--p-primary-color, #6366f1);outline-offset:-1px;border-radius:8px;-webkit-user-select:none;user-select:none}\\n\"] }]\n }], propDecorators: { entities: [{ type: i0.Input, args: [{ isSignal: true, alias: \"entities\", required: true }] }, { type: i0.Output, args: [\"entitiesChange\"] }], entitiesReordered: [{ type: i0.Output, args: [\"entitiesReordered\"] }], entityClicked: [{ type: i0.Output, args: [\"entityClicked\"] }], externalItemDropped: [{ type: i0.Output, args: [\"externalItemDropped\"] }] } });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildDisplayEntities, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, expandLeafDetailsEntity, getEntitySectionTitle, groupEntitiesIntoSections, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isSectionKey, matchesPercentageColorRule, parseCurrencyAmount, resolveLocalizedLabel, resolvePercentageColor };\n//# sourceMappingURL=masterteam-components-entities.mjs.map\n","map":null,"preliminaryFileName":"masterteam-components-entities.mjs","sourcemapFileName":"masterteam-components-entities.mjs.map"},{"fileName":"masterteam-components-entities.mjs.map","names":[],"needsCodeReference":false,"originalFileName":null,"originalFileNames":[],"source":"{\"version\":3,\"file\":\"masterteam-components-entities.mjs\",\"sources\":[\"../../../../packages/masterteam/components/entities/entity-display.utils.ts\",\"../../../../packages/masterteam/components/entities/entity-field/entity-field.ts\",\"../../../../packages/masterteam/components/entities/entity-text/entity-text.ts\",\"../../../../packages/masterteam/components/entities/entity-text/entity-text.html\",\"../../../../packages/masterteam/components/entities/entity-date/entity-date.ts\",\"../../../../packages/masterteam/components/entities/entity-date/entity-date.html\",\"../../../../packages/masterteam/components/entities/entity-status/entity-status.ts\",\"../../../../packages/masterteam/components/entities/entity-status/entity-status.html\",\"../../../../packages/masterteam/components/entities/entity-user/entity-user.ts\",\"../../../../packages/masterteam/components/entities/entity-user/entity-user.html\",\"../../../../packages/masterteam/components/entities/percentage-color.utils.ts\",\"../../../../packages/masterteam/components/entities/entity-percentage/entity-percentage.ts\",\"../../../../packages/masterteam/components/entities/entity-percentage/entity-percentage.html\",\"../../../../packages/masterteam/components/entities/currency-display.utils.ts\",\"../../../../packages/masterteam/components/entities/entity-currency/entity-currency.ts\",\"../../../../packages/masterteam/components/entities/entity-currency/entity-currency.html\",\"../../../../packages/masterteam/components/entities/entity-checkbox/entity-checkbox.ts\",\"../../../../packages/masterteam/components/entities/entity-checkbox/entity-checkbox.html\",\"../../../../packages/masterteam/components/entities/entity-long-text/entity-long-text.ts\",\"../../../../packages/masterteam/components/entities/entity-long-text/entity-long-text.html\",\"../../../../packages/masterteam/components/entities/entity-lookup/entity-lookup.ts\",\"../../../../packages/masterteam/components/entities/entity-lookup/entity-lookup.html\",\"../../../../packages/masterteam/components/entities/entity-sections.util.ts\",\"../../../../packages/masterteam/components/entities/entity-phase-gate/entity-phase-gate.ts\",\"../../../../packages/masterteam/components/entities/entity-phase-gate/entity-phase-gate.html\",\"../../../../packages/masterteam/components/entities/entity-attachment/entity-attachment.ts\",\"../../../../packages/masterteam/components/entities/entity-attachment/entity-attachment.html\",\"../../../../packages/masterteam/components/entities/entity-location/entity-location.ts\",\"../../../../packages/masterteam/components/entities/entity-location/entity-location.html\",\"../../../../packages/masterteam/components/entities/entity-connection/entity-connection.ts\",\"../../../../packages/masterteam/components/entities/entity-connection/entity-connection.html\",\"../../../../packages/masterteam/components/entities/entity-schedule-item/entity-schedule-item.ts\",\"../../../../packages/masterteam/components/entities/entity-schedule-item/entity-schedule-item.html\",\"../../../../packages/masterteam/components/entities/entity-leaf-details/entity-leaf-details.ts\",\"../../../../packages/masterteam/components/entities/entity-leaf-details/entity-leaf-details.html\",\"../../../../packages/masterteam/components/entities/entity-preview/entity-value-preview.ts\",\"../../../../packages/masterteam/components/entities/entity-preview/entity-value-preview.html\",\"../../../../packages/masterteam/components/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.ts\",\"../../../../packages/masterteam/components/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.html\",\"../../../../packages/masterteam/components/entities/leaf-details-display.utils.ts\",\"../../../../packages/masterteam/components/entities/entity-preview/entity-preview-body.ts\",\"../../../../packages/masterteam/components/entities/entity-preview/entity-preview-body.html\",\"../../../../packages/masterteam/components/entities/comparison/comparison-value/comparison-value.ts\",\"../../../../packages/masterteam/components/entities/comparison/comparison-value/comparison-value.html\",\"../../../../packages/masterteam/components/entities/comparison/comparison-entity-list/comparison-entity-list.ts\",\"../../../../packages/masterteam/components/entities/comparison/comparison-entity-list/comparison-entity-list.html\",\"../../../../packages/masterteam/components/entities/entity-preview/entity-preview.ts\",\"../../../../packages/masterteam/components/entities/entity-preview/entity-preview.html\",\"../../../../packages/masterteam/components/entities/entities-preview/entities-preview.ts\",\"../../../../packages/masterteam/components/entities/entities-preview/entities-preview.html\",\"../../../../packages/masterteam/components/entities/entities-manage/entities-resize-base.ts\",\"../../../../packages/masterteam/components/entities/entities-manage/entities-manage.ts\",\"../../../../packages/masterteam/components/entities/entities-manage/entities-manage.html\",\"../../../../packages/masterteam/components/entities/masterteam-components-entities.ts\"],\"sourcesContent\":[\"import { EntityConfiguration, EntityLabelPosition } from './entity.model';\\r\\n\\r\\nexport const ENTITY_EMPTY_VALUE_PLACEHOLDER = '_';\\r\\n\\r\\nexport function isValueMissing(value: unknown): boolean {\\r\\n if (value === null || value === undefined) {\\r\\n return true;\\r\\n }\\r\\n\\r\\n if (typeof value === 'string') {\\r\\n return value.trim().length === 0;\\r\\n }\\r\\n\\r\\n return false;\\r\\n}\\r\\n\\r\\nexport function displayOrPlaceholder(value: unknown): string {\\r\\n if (isValueMissing(value)) {\\r\\n return ENTITY_EMPTY_VALUE_PLACEHOLDER;\\r\\n }\\r\\n\\r\\n return String(value);\\r\\n}\\r\\n\\r\\nexport function isEntityLabelHidden(\\r\\n configuration?: EntityConfiguration | null,\\r\\n): boolean {\\r\\n const config = configuration as\\r\\n | {\\r\\n hideLabel?: boolean;\\r\\n hideName?: boolean;\\r\\n }\\r\\n | null\\r\\n | undefined;\\r\\n\\r\\n return config?.hideLabel ?? config?.hideName ?? false;\\r\\n}\\r\\n\\r\\nexport function isEntityAlignEnd(\\r\\n configuration?: EntityConfiguration | null,\\r\\n): boolean {\\r\\n const config = configuration as { alignEnd?: boolean } | null | undefined;\\r\\n return config?.alignEnd ?? false;\\r\\n}\\r\\n\\r\\n/**\\r\\n * The product default: label above value.\\r\\n *\\r\\n * It used to be `bottom`, which is why Portfolio and Program cards rendered\\r\\n * \\\"06/07/2026\\\" then \\\"Start Date\\\" while Project cards — whose properties had\\r\\n * been through the property-configuration drawer, and so carry an explicit\\r\\n * `labelPosition` — rendered the label first. Two orders inside one Explore\\r\\n * module, reachable by clicking a different item in the same sidebar\\r\\n * (finding M-13). Label-first reads better down a column of mixed field types,\\r\\n * so it is what every unconfigured property now gets.\\r\\n *\\r\\n * An explicit configuration still wins: an administrator who deliberately\\r\\n * chose value-above-label for a property keeps it.\\r\\n */\\r\\nexport function resolveEntityLabelPosition(\\r\\n configuration?: EntityConfiguration | null,\\r\\n): EntityLabelPosition {\\r\\n const config = configuration as\\r\\n | {\\r\\n labelPosition?: EntityLabelPosition;\\r\\n labelPostion?: EntityLabelPosition;\\r\\n }\\r\\n | null\\r\\n | undefined;\\r\\n\\r\\n return config?.labelPosition ?? config?.labelPostion ?? 'top';\\r\\n}\\r\\n\\r\\n/**\\r\\n * Rewrites a localised numeric string into something `parseFloat` can read.\\r\\n *\\r\\n * `rawNumericValue` can fall back to the already-formatted display string, so\\r\\n * whatever `Intl.NumberFormat` produced has to survive a round trip. Under\\r\\n * `ar` that is harmless (Latin digits plus invisible direction marks), but\\r\\n * `ar-SA` renders Arabic-Indic digits and an Arabic decimal separator, which\\r\\n * parse to NaN — the bar would silently disappear rather than show a value.\\r\\n *\\r\\n * Handles Arabic-Indic (U+0660-0669) and Eastern Arabic-Indic (U+06F0-06F9)\\r\\n * digits, the Arabic decimal separator, thousands separators, and the\\r\\n * bidirectional marks Intl inserts around the percent sign.\\r\\n */\\r\\nexport function normalizeNumerals(input: string): string {\\r\\n return input\\r\\n .replace(/[‎‏؜]/g, '')\\r\\n .replace(/[٠-٩]/g, (d) => String(d.charCodeAt(0) - 0x0660))\\r\\n .replace(/[۰-۹]/g, (d) => String(d.charCodeAt(0) - 0x06f0))\\r\\n .replace(/[٫]/g, '.')\\r\\n .replace(/[٬  ]/g, '');\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { TruncateTooltip } from '@masterteam/components/tooltip';\\r\\nimport { Icon } from '@masterteam/icons';\\r\\nimport {\\r\\n isEntityAlignEnd,\\r\\n isEntityLabelHidden,\\r\\n resolveEntityLabelPosition,\\r\\n} from '../entity-display.utils';\\r\\nimport { EntityConfiguration } from '../entity.model';\\r\\n\\r\\ntype EntityFieldGap = 'compact' | 'normal' | 'relaxed';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-field',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [TruncateTooltip, Icon],\\r\\n template: `\\r\\n <div [class]=\\\"containerClass()\\\">\\r\\n <div [class]=\\\"contentContainerClass()\\\">\\r\\n <ng-content />\\r\\n </div>\\r\\n @if (!hideLabel()) {\\r\\n <div [class]=\\\"labelContainerClass()\\\">\\r\\n @if (labelIconName(); as iconName) {\\r\\n <mt-icon [icon]=\\\"iconName\\\" size=\\\"xs\\\" class=\\\"shrink-0\\\" />\\r\\n }\\r\\n <span\\r\\n class=\\\"block min-w-0 truncate\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ label() }}\\r\\n </span>\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n `,\\r\\n host: {\\r\\n class: 'block min-w-0 w-full',\\r\\n },\\r\\n})\\r\\nexport class EntityField {\\r\\n readonly label = input<string>('');\\r\\n readonly labelIconName = input<string | null>(null);\\r\\n readonly configuration = input<EntityConfiguration | null | undefined>();\\r\\n readonly gap = input<EntityFieldGap>('compact');\\r\\n\\r\\n readonly hideLabel = computed(() =>\\r\\n isEntityLabelHidden(this.configuration()),\\r\\n );\\r\\n\\r\\n readonly labelPosition = computed(() =>\\r\\n resolveEntityLabelPosition(this.configuration()),\\r\\n );\\r\\n\\r\\n readonly labelContainerClass = computed(() => {\\r\\n const justifyClass = isEntityAlignEnd(this.configuration())\\r\\n ? 'justify-end'\\r\\n : '';\\r\\n\\r\\n return `flex min-w-0 max-w-full items-center gap-1 text-sm text-gray-500 ${justifyClass}`.trimEnd();\\r\\n });\\r\\n\\r\\n readonly contentContainerClass = computed(() => {\\r\\n const alignClass = isEntityAlignEnd(this.configuration())\\r\\n ? 'self-end'\\r\\n : 'self-stretch';\\r\\n\\r\\n return `min-w-0 max-w-full ${alignClass}`;\\r\\n });\\r\\n\\r\\n readonly containerClass = computed(() => {\\r\\n const gapClass =\\r\\n this.gap() === 'relaxed'\\r\\n ? 'gap-2'\\r\\n : this.gap() === 'normal'\\r\\n ? 'gap-1'\\r\\n : 'gap-0.5';\\r\\n\\r\\n const directionClass =\\r\\n this.labelPosition() === 'top' ? 'flex-col-reverse' : 'flex-col';\\r\\n\\r\\n const alignClass = isEntityAlignEnd(this.configuration())\\r\\n ? 'items-end'\\r\\n : '';\\r\\n\\r\\n return `flex min-w-0 ${directionClass} ${gapClass} ${alignClass}`.trimEnd();\\r\\n });\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { TruncateTooltip } from '@masterteam/components/tooltip';\\r\\nimport { displayOrPlaceholder } from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityData } from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-text',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField, TruncateTooltip],\\r\\n templateUrl: './entity-text.html',\\r\\n})\\r\\nexport class EntityText {\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<string>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n readonly displayValue = computed(() => {\\r\\n const d = this.data();\\r\\n if (d) {\\r\\n return displayOrPlaceholder(typeof d.value === 'string' ? d.value : null);\\r\\n }\\r\\n return displayOrPlaceholder(this.value());\\r\\n });\\r\\n}\\r\\n\",\"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <!--\\n Two lines before the ellipsis, not one. Portfolio and project names were\\n being cut mid-word on the Explore board (\\\"Smart City Infrastructure Po…\\\"),\\n which makes similarly-titled records indistinguishable without opening each\\n one (finding H-06). `line-clamp-2` still ellipsises what genuinely does not\\n fit, and `mtTruncateTooltip` reads `scrollHeight > clientHeight`, so the\\n tooltip keeps working for the clamped case exactly as it did for the\\n single-line one.\\n -->\\n <div\\n class=\\\"min-w-0 max-w-full line-clamp-2 break-words text-sm font-semibold\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n [innerHTML]=\\\"displayValue()\\\"\\n ></div>\\n</mt-entity-field>\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport {\\r\\n MTDateFormatPipe,\\r\\n type MTDateFormatType,\\r\\n} from '@masterteam/components';\\r\\nimport { TruncateTooltip } from '@masterteam/components/tooltip';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityData } from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-date',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField, TruncateTooltip, MTDateFormatPipe],\\r\\n templateUrl: './entity-date.html',\\r\\n})\\r\\nexport class EntityDate {\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<unknown>();\\r\\n readonly viewType = input<'Date' | 'DateTime' | 'Time'>('Date');\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n /**\\r\\n * `Time` carries a wall-clock value (`HH:mm:ss`) with no date and no zone, so\\r\\n * `mtDateFormat` renders it as stored instead of shifting it into the\\r\\n * viewer's timezone the way its `DateTime` sibling is shifted.\\r\\n */\\r\\n readonly resolvedViewType = computed<MTDateFormatType>(() => {\\r\\n switch (this.data()?.viewType ?? this.viewType()) {\\r\\n case 'DateTime':\\r\\n return 'dateTime';\\r\\n case 'Time':\\r\\n return 'time';\\r\\n default:\\r\\n return 'date';\\r\\n }\\r\\n });\\r\\n readonly displayValue = computed(\\r\\n () => this.data()?.rawValue ?? this.data()?.value ?? this.value(),\\r\\n );\\r\\n}\\r\\n\",\"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n mtTruncateTooltip\\n tooltipPosition=\\\"top\\\"\\n >\\n @if (displayValue()) {\\n {{ displayValue() | mtDateFormat: resolvedViewType() }}\\n } @else {\\n -\\n }\\n </span>\\n</mt-entity-field>\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport {\\r\\n displayOrPlaceholder,\\r\\n ENTITY_EMPTY_VALUE_PLACEHOLDER,\\r\\n} from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityData, EntityStatusValue } from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-status',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField],\\r\\n templateUrl: './entity-status.html',\\r\\n})\\r\\nexport class EntityStatus {\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<EntityStatusValue>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n\\r\\n readonly statusValue = computed<EntityStatusValue | null>(() => {\\r\\n const d = this.data();\\r\\n if (d && typeof d.value === 'object' && d.value !== null) {\\r\\n return d.value as EntityStatusValue;\\r\\n }\\r\\n return this.value() ?? null;\\r\\n });\\r\\n\\r\\n readonly badgeStyle = computed(() => {\\r\\n const status = this.statusValue();\\r\\n if (!status?.color) return {};\\r\\n return {\\r\\n color: status.color,\\r\\n backgroundColor: this.hexToRgba(status.color, 0.12),\\r\\n };\\r\\n });\\r\\n\\r\\n readonly emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\\r\\n\\r\\n readonly statusLabel = computed(() =>\\r\\n displayOrPlaceholder(this.statusValue()?.display),\\r\\n );\\r\\n\\r\\n private hexToRgba(hex: string, alpha: number): string {\\r\\n const r = parseInt(hex.slice(1, 3), 16);\\r\\n const g = parseInt(hex.slice(3, 5), 16);\\r\\n const b = parseInt(hex.slice(5, 7), 16);\\r\\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\\r\\n }\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (statusValue(); as status) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ statusLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n effect,\\r\\n input,\\r\\n signal,\\r\\n untracked,\\r\\n} from '@angular/core';\\r\\nimport { HttpContext } from '@angular/common/http';\\r\\nimport { TranslocoPipe } from '@jsverse/transloco';\\r\\nimport { Avatar } from '@masterteam/components/avatar';\\r\\nimport { Tooltip, TruncateTooltip } from '@masterteam/components/tooltip';\\r\\nimport { Icon } from '@masterteam/icons';\\r\\nimport { EntityData, EntityUserConfig, EntityUserValue } from '../entity.model';\\r\\nimport { SecureImagePipe } from '@masterteam/components/upload-field';\\r\\nimport { displayOrPlaceholder } from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { REQUEST_CONTEXT } from '@masterteam/components';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-user',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [\\r\\n Avatar,\\r\\n Tooltip,\\r\\n TruncateTooltip,\\r\\n Icon,\\r\\n SecureImagePipe,\\r\\n EntityField,\\r\\n TranslocoPipe,\\r\\n ],\\r\\n templateUrl: './entity-user.html',\\r\\n})\\r\\nexport class EntityUser {\\r\\n readonly httpContext = new HttpContext().set(REQUEST_CONTEXT, {\\r\\n useBaseUrl: true,\\r\\n });\\r\\n\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n readonly expanded = signal(false);\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? '');\\r\\n readonly isMultiUser = computed(() => this.data()?.viewType === 'MultiUser');\\r\\n\\r\\n /** Resolved user objects from either a User or MultiUser entity value. */\\r\\n readonly users = computed<EntityUserValue[]>(() => {\\r\\n const val = this.data()?.value;\\r\\n const values = Array.isArray(val) ? val : [val];\\r\\n return values.filter(isEntityUserValue);\\r\\n });\\r\\n\\r\\n readonly maxVisibleUsers = computed(() => {\\r\\n const configured = Number(this.config().maxVisibleUsers);\\r\\n return Number.isInteger(configured) && configured > 0 ? configured : 5;\\r\\n });\\r\\n\\r\\n readonly visibleUsers = computed(() => {\\r\\n const users = this.users();\\r\\n if (!this.isMultiUser() || this.expanded()) {\\r\\n return users;\\r\\n }\\r\\n\\r\\n return users.slice(0, this.maxVisibleUsers());\\r\\n });\\r\\n\\r\\n readonly hiddenUserCount = computed(\\r\\n () => this.users().length - this.visibleUsers().length,\\r\\n );\\r\\n\\r\\n /** First user retained for the existing single-user computed API. */\\r\\n private readonly userValue = computed(() => this.users()[0] ?? null);\\r\\n\\r\\n userNameFor(user: EntityUserValue): string {\\r\\n return displayOrPlaceholder(user.displayName ?? null);\\r\\n }\\r\\n\\r\\n userPhotoFor(user: EntityUserValue): string {\\r\\n return this.showUserImage() ? (user.photoUrl ?? '') : '';\\r\\n }\\r\\n\\r\\n labelTextFor(user: EntityUserValue): string {\\r\\n return user.name ?? '';\\r\\n }\\r\\n\\r\\n isUnlinkedUser(user: EntityUserValue): boolean {\\r\\n return user.isLinkedToCurrentApplication === false && !!user.userName;\\r\\n }\\r\\n\\r\\n phoneNumberFor(user: EntityUserValue): string {\\r\\n return user.phoneNumber ?? '';\\r\\n }\\r\\n\\r\\n emailFor(user: EntityUserValue): string {\\r\\n return user.email ?? '';\\r\\n }\\r\\n\\r\\n hasContactInfoFor(user: EntityUserValue): boolean {\\r\\n return (\\r\\n (this.showPhoneNumber() && !!this.phoneNumberFor(user)) ||\\r\\n (this.showEmail() && !!this.emailFor(user))\\r\\n );\\r\\n }\\r\\n\\r\\n readonly emptyUserName = computed(() => displayOrPlaceholder(null));\\r\\n\\r\\n readonly rawUserName = computed(() => this.userValue()?.displayName ?? null);\\r\\n\\r\\n readonly userName = computed(() => displayOrPlaceholder(this.rawUserName()));\\r\\n\\r\\n readonly userPhoto = computed(() =>\\r\\n this.showUserImage() ? (this.userValue()?.photoUrl ?? '') : '',\\r\\n );\\r\\n\\r\\n readonly labelText = computed(() => this.userValue()?.name ?? '');\\r\\n\\r\\n /**\\r\\n * `true` when the referenced user is no longer linked to the application.\\r\\n * Drives the inline info badge/tooltip next to the display name.\\r\\n */\\r\\n readonly isUnlinked = computed(\\r\\n () =>\\r\\n this.userValue()?.isLinkedToCurrentApplication === false &&\\r\\n this.userValue()?.userName,\\r\\n );\\r\\n\\r\\n // ── Configuration-driven visibility ──\\r\\n\\r\\n private readonly config = computed(\\r\\n () => (this.data()?.configuration as EntityUserConfig) ?? {},\\r\\n );\\r\\n\\r\\n readonly showDisplayName = computed(\\r\\n () => this.config().showDisplayName ?? true,\\r\\n );\\r\\n\\r\\n readonly showPhoneNumber = computed(\\r\\n () => this.config().showPhoneNumber ?? false,\\r\\n );\\r\\n\\r\\n readonly showEmail = computed(() => this.config().showEmail ?? false);\\r\\n\\r\\n /**\\r\\n * When off, the avatar falls back to the generic user icon so the layout keeps\\r\\n * its shape while the user's real picture stays hidden.\\r\\n */\\r\\n readonly showUserImage = computed(() => this.config().showUserImage ?? true);\\r\\n\\r\\n readonly phoneNumber = computed(() => this.userValue()?.phoneNumber ?? '');\\r\\n\\r\\n readonly email = computed(() => this.userValue()?.email ?? '');\\r\\n\\r\\n readonly hasContactInfo = computed(\\r\\n () =>\\r\\n (this.showPhoneNumber() && !!this.phoneNumber()) ||\\r\\n (this.showEmail() && !!this.email()),\\r\\n );\\r\\n\\r\\n constructor() {\\r\\n effect(() => {\\r\\n void this.data()?.value;\\r\\n untracked(() => this.expanded.set(false));\\r\\n });\\r\\n }\\r\\n\\r\\n showAllUsers(): void {\\r\\n this.expanded.set(true);\\r\\n }\\r\\n}\\r\\n\\r\\nfunction isEntityUserValue(value: unknown): value is EntityUserValue {\\r\\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\\r\\n return false;\\r\\n }\\r\\n\\r\\n return 'displayName' in value;\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (isMultiUser()) {\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\"\\r\\n data-testid=\\\"multi-user-list\\\"\\r\\n >\\r\\n @for (user of visibleUsers(); track user.id ?? $index) {\\r\\n <div\\r\\n class=\\\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 ps-1 pe-2\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-7! h-7! text-white! text-sm! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <span\\r\\n class=\\\"max-w-36 truncate text-xs text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n }\\r\\n\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-xs text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.phone\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex shrink-0\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"communication.mail-01\\\" size=\\\"xs\\\" />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n } @empty {\\r\\n <span class=\\\"text-sm text-gray-700\\\">{{ emptyUserName() }}</span>\\r\\n }\\r\\n\\r\\n @if (hiddenUserCount() > 0) {\\r\\n <button\\r\\n type=\\\"button\\\"\\r\\n class=\\\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\\\"\\r\\n data-testid=\\\"show-all-users\\\"\\r\\n [attr.aria-label]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n [mtTooltip]=\\\"\\r\\n 'components.userReference.showMore'\\r\\n | transloco: { count: hiddenUserCount() }\\r\\n \\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n (click)=\\\"showAllUsers()\\\"\\r\\n >\\r\\n +{{ hiddenUserCount() }}\\r\\n </button>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n @if (users()[0]; as user) {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [image]=\\\"\\r\\n userPhotoFor(user)\\r\\n ? (userPhotoFor(user)\\r\\n | secureImage: true : httpContext : 'avatar/')\\r\\n : ''\\r\\n \\\"\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n\\r\\n @if (showDisplayName()) {\\r\\n <div class=\\\"flex min-w-0 flex-1 flex-col\\\">\\r\\n <div class=\\\"flex min-w-0 items-center gap-1\\\">\\r\\n <span\\r\\n class=\\\"truncate text-sm text-gray-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >{{ userNameFor(user) }}</span\\r\\n >\\r\\n @if (isUnlinkedUser(user)) {\\r\\n <mt-icon\\r\\n icon=\\\"general.info-circle\\\"\\r\\n class=\\\"shrink-0 text-sm text-amber-500\\\"\\r\\n [mtTooltip]=\\\"'components.userReference.notLinked' | transloco\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n @if (labelTextFor(user)) {\\r\\n <span class=\\\"truncate text-xs text-gray-500\\\">{{\\r\\n labelTextFor(user)\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (hasContactInfoFor(user)) {\\r\\n <div class=\\\"ms-auto flex shrink-0 items-center gap-1.5\\\">\\r\\n @if (showPhoneNumber() && phoneNumberFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'tel:' + phoneNumberFor(user)\\\"\\r\\n [attr.aria-label]=\\\"phoneNumberFor(user)\\\"\\r\\n [mtTooltip]=\\\"phoneNumberFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n icon=\\\"communication.phone\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n @if (showEmail() && emailFor(user)) {\\r\\n <a\\r\\n [href]=\\\"'mailto:' + emailFor(user)\\\"\\r\\n [attr.aria-label]=\\\"emailFor(user)\\\"\\r\\n [mtTooltip]=\\\"emailFor(user)\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n class=\\\"inline-flex\\\"\\r\\n >\\r\\n <mt-avatar\\r\\n styleClass=\\\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\\\"\\r\\n icon=\\\"communication.mail-01\\\"\\r\\n badgeSeverity=\\\"secondary\\\"\\r\\n />\\r\\n </a>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <div class=\\\"flex min-w-0 items-center gap-2\\\">\\r\\n <mt-avatar\\r\\n [icon]=\\\"'user.user-01'\\\"\\r\\n styleClass=\\\"w-10! h-10! text-white! text-xxl! bg-primary-500!\\\"\\r\\n ></mt-avatar>\\r\\n @if (showDisplayName()) {\\r\\n <span class=\\\"truncate text-sm text-gray-700\\\">{{\\r\\n emptyUserName()\\r\\n }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import { PercentageColorRule } from './entity.model';\\r\\n\\r\\n/**\\r\\n * Anything that can supply a percentage colour: an ordered rule set plus the\\r\\n * fallback used when no rule matches.\\r\\n */\\r\\nexport interface PercentageColorSource {\\r\\n colorRules?: PercentageColorRule[] | null;\\r\\n defaultColor?: string | null;\\r\\n}\\r\\n\\r\\n/** A finite number, or null for anything that cannot be compared numerically. */\\r\\nfunction toFiniteNumber(value: unknown): number | null {\\r\\n if (value === null || value === undefined || value === '') {\\r\\n return null;\\r\\n }\\r\\n\\r\\n const parsed =\\r\\n typeof value === 'number'\\r\\n ? value\\r\\n : Number(String(value).replace(/%/g, '').trim());\\r\\n\\r\\n return Number.isFinite(parsed) ? parsed : null;\\r\\n}\\r\\n\\r\\n/**\\r\\n * Whether `value` falls inside a rule's band. Both bounds are inclusive, an\\r\\n * absent bound is open-ended, and a rule carrying neither bound is malformed —\\r\\n * it never matches rather than swallowing every value.\\r\\n */\\r\\nexport function matchesPercentageColorRule(\\r\\n value: number,\\r\\n rule?: PercentageColorRule | null,\\r\\n): boolean {\\r\\n if (!rule) {\\r\\n return false;\\r\\n }\\r\\n\\r\\n const min = toFiniteNumber(rule.minValue);\\r\\n const max = toFiniteNumber(rule.maxValue);\\r\\n\\r\\n if (min === null && max === null) {\\r\\n return false;\\r\\n }\\r\\n\\r\\n if (min !== null && value < min) {\\r\\n return false;\\r\\n }\\r\\n\\r\\n return max === null || value <= max;\\r\\n}\\r\\n\\r\\n/**\\r\\n * The colour for a percentage value: rules in their configured order, first\\r\\n * match wins, `defaultColor` when nothing matches.\\r\\n *\\r\\n * The backend owns this evaluation and ships the winner as `color` on\\r\\n * render/value/fetch responses, so callers must prefer that resolved colour.\\r\\n * This exists for the surfaces that hold a raw rule set and no resolved colour\\r\\n * — the property-form preview, and catalog reads that never went through a\\r\\n * value response.\\r\\n */\\r\\nexport function resolvePercentageColor(\\r\\n value: unknown,\\r\\n source?: PercentageColorSource | null,\\r\\n): string | null {\\r\\n const fallback = source?.defaultColor?.trim() || null;\\r\\n const numericValue = toFiniteNumber(value);\\r\\n const rules = source?.colorRules;\\r\\n\\r\\n if (numericValue === null || !Array.isArray(rules)) {\\r\\n return fallback;\\r\\n }\\r\\n\\r\\n const match = rules.find((rule) =>\\r\\n matchesPercentageColorRule(numericValue, rule),\\r\\n );\\r\\n\\r\\n return match?.color?.trim() || fallback;\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n inject,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { TranslocoService } from '@jsverse/transloco';\\r\\nimport { Progress } from '@masterteam/components/progress';\\r\\nimport {\\r\\n displayOrPlaceholder,\\r\\n isEntityLabelHidden,\\r\\n isValueMissing,\\r\\n normalizeNumerals,\\r\\n} from '../entity-display.utils';\\r\\nimport { EntityData, EntityPercentageConfig } from '../entity.model';\\r\\nimport { resolvePercentageColor } from '../percentage-color.utils';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-percentage',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [Progress],\\r\\n templateUrl: './entity-percentage.html',\\r\\n})\\r\\nexport class EntityPercentage {\\r\\n private readonly transloco = inject(TranslocoService);\\r\\n /** Active locale, so number formatting follows the UI language. */\\r\\n private readonly locale = computed(\\r\\n () => this.transloco.getActiveLang() || 'en',\\r\\n );\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<string>();\\r\\n readonly rawValue = input<string>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n\\r\\n readonly displayValue = computed(() => {\\r\\n const d = this.data();\\r\\n const raw = d\\r\\n ? typeof d.value === 'string'\\r\\n ? d.value\\r\\n : null\\r\\n : this.value();\\r\\n return displayOrPlaceholder(this.formatPercentageDisplay(raw));\\r\\n });\\r\\n\\r\\n private readonly rawNumericValue = computed(\\r\\n () =>\\r\\n this.data()?.rawValue ??\\r\\n this.rawValue() ??\\r\\n this.value() ??\\r\\n this.displayValue(),\\r\\n );\\r\\n\\r\\n readonly hasNumericValue = computed(() => {\\r\\n return this.parseNumericValue(this.rawNumericValue()) !== null;\\r\\n });\\r\\n\\r\\n readonly numericValue = computed(() => {\\r\\n const num = this.parseNumericValue(this.rawNumericValue());\\r\\n return num === null ? 0 : Math.min(num, 100);\\r\\n });\\r\\n\\r\\n readonly maxValue = computed(() => {\\r\\n const num = this.parseNumericValue(this.rawNumericValue());\\r\\n if (num === null) return 100;\\r\\n return num > 100 ? Math.ceil(num) : 100;\\r\\n });\\r\\n\\r\\n // ── Configuration-driven visibility ──\\r\\n\\r\\n readonly hideName = computed(() =>\\r\\n isEntityLabelHidden(this.data()?.configuration),\\r\\n );\\r\\n\\r\\n /**\\r\\n * The bar colour. The backend evaluates the property's colour rules and\\r\\n * returns the winner as `color` on render/value/fetch responses, so a\\r\\n * resolved colour always wins — the rules are only evaluated here for\\r\\n * configurations that arrive without one (a catalog read, or the\\r\\n * property-form preview).\\r\\n */\\r\\n readonly progressColor = computed(() => {\\r\\n const d = this.data();\\r\\n const direct = d?.configuration as EntityPercentageConfig | undefined;\\r\\n const fromProperty = d?.propertyConfiguration as\\r\\n | EntityPercentageConfig\\r\\n | undefined;\\r\\n\\r\\n const resolved = direct?.color?.trim() || fromProperty?.color?.trim();\\r\\n if (resolved) {\\r\\n return resolved;\\r\\n }\\r\\n\\r\\n const raw = this.rawNumericValue();\\r\\n return (\\r\\n resolvePercentageColor(raw, direct) ??\\r\\n resolvePercentageColor(raw, fromProperty) ??\\r\\n 'primary'\\r\\n );\\r\\n });\\r\\n\\r\\n /**\\r\\n * Renders a percentage for the active locale.\\r\\n *\\r\\n * This used to echo the backend's string and only append `%` when that string\\r\\n * already carried one — so in Arabic, where the API returns a bare `\\\"25\\\"`,\\r\\n * the symbol vanished and a progress value rendered as an unlabelled `25`.\\r\\n * Next to a bar that could be a percentage, a count or a score (finding\\r\\n * H-08).\\r\\n *\\r\\n * Formatting from the NUMBER through `Intl.NumberFormat` makes the symbol,\\r\\n * the decimal separator and the digit shapes follow the locale instead of the\\r\\n * payload. `maximumFractionDigits: 1` preserves the precision the old code\\r\\n * kept; `style: 'percent'` expects a fraction, hence the /100.\\r\\n *\\r\\n * Non-numeric values pass through untouched — a status string or an em dash\\r\\n * must not be mangled into `NaN%`.\\r\\n */\\r\\n private formatPercentageDisplay(\\r\\n raw: string | null | undefined,\\r\\n ): string | null | undefined {\\r\\n if (isValueMissing(raw)) {\\r\\n return raw;\\r\\n }\\r\\n\\r\\n const num = this.parseNumericValue(raw);\\r\\n if (num === null) {\\r\\n return raw;\\r\\n }\\r\\n\\r\\n try {\\r\\n return new Intl.NumberFormat(this.locale(), {\\r\\n style: 'percent',\\r\\n maximumFractionDigits: 1,\\r\\n }).format(num / 100);\\r\\n } catch {\\r\\n // An unknown locale tag must not cost the user their number.\\r\\n return `${Number(num.toFixed(1))}%`;\\r\\n }\\r\\n }\\r\\n\\r\\n private parseNumericValue(raw: unknown): number | null {\\r\\n if (isValueMissing(raw)) {\\r\\n return null;\\r\\n }\\r\\n\\r\\n const normalizedRawValue = normalizeNumerals(String(raw))\\r\\n .replace(/[%٪]/g, '')\\r\\n .trim();\\r\\n if (!normalizedRawValue) {\\r\\n return null;\\r\\n }\\r\\n\\r\\n const numericValue = Number.parseFloat(normalizedRawValue);\\r\\n return Number.isNaN(numericValue) ? null : numericValue;\\r\\n }\\r\\n}\\r\\n\",\"<div class=\\\"flex flex-col gap-1\\\">\\r\\n <div class=\\\"flex items-center justify-between\\\">\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-xs font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n <span class=\\\"text-xs font-bold\\\" [class.ms-auto]=\\\"hideName()\\\">{{\\r\\n displayValue()\\r\\n }}</span>\\r\\n </div>\\r\\n @if (hasNumericValue()) {\\r\\n <mt-progress\\r\\n [value]=\\\"numericValue()\\\"\\r\\n [showLabel]=\\\"false\\\"\\r\\n [height]=\\\"9\\\"\\r\\n [maxValue]=\\\"maxValue()\\\"\\r\\n [color]=\\\"progressColor()\\\"\\r\\n >\\r\\n </mt-progress>\\r\\n } @else {\\r\\n <div class=\\\"h-[9px] rounded-full bg-gray-200\\\"></div>\\r\\n }\\r\\n</div>\\r\\n\",\"import { normalizeNumerals } from './entity-display.utils';\\r\\n\\r\\n/**\\r\\n * The largest amount still rendered in full.\\r\\n *\\r\\n * The reviewer measured exactly where the line falls: `100,000 SAR` fits a card\\r\\n * slot, `1,000,000 SAR` does not and loses its currency to the ellipsis. So the\\r\\n * comparison below is inclusive — anything ABOVE this compacts, and everything\\r\\n * a tenant sees today at or under it is untouched.\\r\\n */\\r\\nexport const CURRENCY_COMPACT_THRESHOLD = 100_000;\\r\\n\\r\\n/**\\r\\n * The numeric amount inside a formatted currency string.\\r\\n *\\r\\n * Strips the currency token, the grouping separators and the bidirectional\\r\\n * marks `Intl` leaves around them, and normalises Arabic-Indic digits so an\\r\\n * `ar-SA` payload parses like an `en` one. `null` when there is no number.\\r\\n */\\r\\nexport function parseCurrencyAmount(\\r\\n raw: string | null | undefined,\\r\\n): number | null {\\r\\n if (typeof raw !== 'string') {\\r\\n return null;\\r\\n }\\r\\n\\r\\n const numeric = normalizeNumerals(raw).replace(/[^0-9.+-]/g, '');\\r\\n if (!numeric || !/\\\\d/.test(numeric)) {\\r\\n return null;\\r\\n }\\r\\n\\r\\n const parsed = Number.parseFloat(numeric);\\r\\n return Number.isFinite(parsed) ? parsed : null;\\r\\n}\\r\\n\\r\\n/**\\r\\n * Whatever is left of a formatted amount once the number is removed — `SAR`,\\r\\n * `ر.س`, `$`. Read from the payload rather than configured, so a tenant's own\\r\\n * currency survives untouched.\\r\\n */\\r\\nexport function currencyUnitOf(formatted: string): string {\\r\\n return normalizeNumerals(formatted)\\r\\n .replace(/[0-9.,+-]/g, '')\\r\\n .trim();\\r\\n}\\r\\n\\r\\n/**\\r\\n * A large currency amount shortened so it fits a card slot, with the unit kept.\\r\\n *\\r\\n * A budget of a million or more used to render as `1,000,000 …`: the digits\\r\\n * survived the ellipsis and the currency did not, so the largest and most\\r\\n * consequential figures in the product were the only ones whose unit could not\\r\\n * be read (finding H-06). Compact notation keeps the whole thing inside the\\r\\n * slot — `SAR 1M` instead of `1,000,000 SAR` — and callers put the exact figure\\r\\n * in a tooltip, which is where a precise number belongs on a summary card.\\r\\n *\\r\\n * Returns `formatted` unchanged whenever the value already fits, is not a\\r\\n * number, or the runtime has no compact notation — so no tenant sees an\\r\\n * existing number change shape for no reason.\\r\\n */\\r\\nexport function compactCurrencyDisplay(\\r\\n formatted: string,\\r\\n rawValue: string | null | undefined,\\r\\n locale: string,\\r\\n threshold: number = CURRENCY_COMPACT_THRESHOLD,\\r\\n): string {\\r\\n const amount = parseCurrencyAmount(rawValue ?? formatted);\\r\\n if (amount === null || Math.abs(amount) <= threshold) {\\r\\n return formatted;\\r\\n }\\r\\n\\r\\n let compact: string;\\r\\n try {\\r\\n compact = new Intl.NumberFormat(locale, {\\r\\n notation: 'compact',\\r\\n maximumFractionDigits: 1,\\r\\n }).format(amount);\\r\\n } catch {\\r\\n return formatted;\\r\\n }\\r\\n\\r\\n const unit = currencyUnitOf(formatted);\\r\\n if (!unit) {\\r\\n return compact;\\r\\n }\\r\\n\\r\\n // Keep the payload's own unit placement — `SAR 1,000` and `1,000 SAR` are\\r\\n // both in use, and flipping one to the other reads as a different currency.\\r\\n return formatted.trimStart().startsWith(unit)\\r\\n ? `${unit} ${compact}`\\r\\n : `${compact} ${unit}`;\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n inject,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { TranslocoService } from '@jsverse/transloco';\\r\\nimport { Tooltip } from '@masterteam/components/tooltip';\\r\\nimport { compactCurrencyDisplay } from '../currency-display.utils';\\r\\nimport { displayOrPlaceholder } from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityData } from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-currency',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField, Tooltip],\\r\\n templateUrl: './entity-currency.html',\\r\\n})\\r\\nexport class EntityCurrency {\\r\\n private readonly transloco = inject(TranslocoService);\\r\\n /** Active locale, so number formatting follows the UI language. */\\r\\n private readonly locale = computed(\\r\\n () => this.transloco.getActiveLang() || 'en',\\r\\n );\\r\\n\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<string>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n\\r\\n /** The backend's fully grouped string — always the tooltip, never truncated. */\\r\\n readonly fullValue = computed(() => {\\r\\n const d = this.data();\\r\\n if (d) {\\r\\n return displayOrPlaceholder(typeof d.value === 'string' ? d.value : null);\\r\\n }\\r\\n return displayOrPlaceholder(this.value());\\r\\n });\\r\\n\\r\\n /**\\r\\n * What the cell renders: the backend's string, or a compact form of it when\\r\\n * the amount is large enough that the currency token would be truncated away.\\r\\n * See {@link compactCurrencyDisplay} (finding H-06).\\r\\n */\\r\\n readonly displayValue = computed(() =>\\r\\n compactCurrencyDisplay(\\r\\n this.fullValue(),\\r\\n this.data()?.rawValue,\\r\\n this.locale(),\\r\\n ),\\r\\n );\\r\\n}\\r\\n\",\"<mt-entity-field\\n [label]=\\\"displayName()\\\"\\n [configuration]=\\\"data()?.configuration\\\"\\n>\\n <span\\n class=\\\"block min-w-0 truncate text-sm font-semibold tabular-nums whitespace-nowrap\\\"\\n [mtTooltip]=\\\"fullValue()\\\"\\n tooltipPosition=\\\"top\\\"\\n >\\n {{ displayValue() }}\\n </span>\\n</mt-entity-field>\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport {\\r\\n ENTITY_EMPTY_VALUE_PLACEHOLDER,\\r\\n isEntityLabelHidden,\\r\\n} from '../entity-display.utils';\\r\\nimport { EntityData } from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-checkbox',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n templateUrl: './entity-checkbox.html',\\r\\n})\\r\\nexport class EntityCheckbox {\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<string>();\\r\\n readonly rawValue = input<string>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n readonly emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\\r\\n\\r\\n readonly hideName = computed(() =>\\r\\n isEntityLabelHidden(this.data()?.configuration),\\r\\n );\\r\\n\\r\\n readonly checkboxState = computed<boolean | null>(() => {\\r\\n const raw = this.data()?.rawValue ?? this.rawValue();\\r\\n if (raw !== undefined && raw !== null) {\\r\\n return this.parseBoolean(raw);\\r\\n }\\r\\n\\r\\n const val = this.data()?.value ?? this.value();\\r\\n if (typeof val === 'string') {\\r\\n return this.parseBoolean(val);\\r\\n }\\r\\n\\r\\n return null;\\r\\n });\\r\\n\\r\\n private parseBoolean(value: string): boolean | null {\\r\\n const normalized = value.trim().toLowerCase();\\r\\n if (!normalized.length) {\\r\\n return null;\\r\\n }\\r\\n\\r\\n if (normalized === 'true') {\\r\\n return true;\\r\\n }\\r\\n\\r\\n if (normalized === 'false') {\\r\\n return false;\\r\\n }\\r\\n\\r\\n return null;\\r\\n }\\r\\n}\\r\\n\",\"<div class=\\\"flex items-center gap-2\\\">\\r\\n @if (checkboxState() === true) {\\r\\n <svg class=\\\"w-5 h-5 text-green-500\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else if (checkboxState() === false) {\\r\\n <svg class=\\\"w-5 h-5 text-gray-300\\\" viewBox=\\\"0 0 20 20\\\" fill=\\\"currentColor\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5.414l-2.293-2.293a1 1 0 011.414-1.414L10 11.172l3.879-3.879a1 1 0 111.414 1.414L10 13.414l-.707-.707-.293-.293z\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n />\\r\\n </svg>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-gray-100 px-1 text-[10px] font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n @if (!hideName()) {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ displayName() }}</span>\\r\\n }\\r\\n</div>\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport {\\r\\n ENTITY_EMPTY_VALUE_PLACEHOLDER,\\r\\n isValueMissing,\\r\\n} from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityData } from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-long-text',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField],\\r\\n templateUrl: './entity-long-text.html',\\r\\n})\\r\\nexport class EntityLongText {\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<string>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n\\r\\n readonly displayValue = computed(() => {\\r\\n const d = this.data();\\r\\n const raw = d\\r\\n ? typeof d.value === 'string'\\r\\n ? d.value\\r\\n : null\\r\\n : this.value();\\r\\n\\r\\n if (isValueMissing(raw)) {\\r\\n return ENTITY_EMPTY_VALUE_PLACEHOLDER;\\r\\n }\\r\\n\\r\\n return raw as string;\\r\\n });\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"text-sm font-semibold break-words\\\"\\r\\n [innerHTML]=\\\"displayValue()\\\"\\r\\n ></div>\\r\\n</mt-entity-field>\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport {\\r\\n displayOrPlaceholder,\\r\\n ENTITY_EMPTY_VALUE_PLACEHOLDER,\\r\\n} from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport {\\r\\n EntityData,\\r\\n EntityLookupValue,\\r\\n EntityMultiLookupValue,\\r\\n} from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-lookup',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField],\\r\\n templateUrl: './entity-lookup.html',\\r\\n})\\r\\nexport class EntityLookup {\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<EntityLookupValue | EntityMultiLookupValue>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n\\r\\n readonly lookupValues = computed<EntityMultiLookupValue>(() => {\\r\\n const value = this.data()?.value ?? this.value();\\r\\n if (Array.isArray(value)) {\\r\\n return value as EntityMultiLookupValue;\\r\\n }\\r\\n\\r\\n if (typeof value === 'object' && value !== null) {\\r\\n return [value as EntityLookupValue];\\r\\n }\\r\\n\\r\\n return [];\\r\\n });\\r\\n\\r\\n lookupBadgeStyle(lookup: EntityLookupValue): Record<string, string> {\\r\\n if (!lookup?.color) return {};\\r\\n return {\\r\\n color: lookup.color,\\r\\n backgroundColor: this.hexToRgba(lookup.color, 0.12),\\r\\n };\\r\\n }\\r\\n\\r\\n readonly emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\\r\\n\\r\\n lookupLabel(lookup: EntityLookupValue): string {\\r\\n return displayOrPlaceholder(lookup.display);\\r\\n }\\r\\n\\r\\n private hexToRgba(hex: string, alpha: number): string {\\r\\n const r = parseInt(hex.slice(1, 3), 16);\\r\\n const g = parseInt(hex.slice(3, 5), 16);\\r\\n const b = parseInt(hex.slice(5, 7), 16);\\r\\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\\r\\n }\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (lookupValues().length) {\\r\\n <div class=\\\"flex flex-wrap gap-2\\\" data-testid=\\\"lookup-values\\\">\\r\\n @for (lookup of lookupValues(); track lookup.key) {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md px-3 py-2 text-xs font-semibold\\\"\\r\\n data-testid=\\\"lookup-value\\\"\\r\\n [style]=\\\"lookupBadgeStyle(lookup)\\\"\\r\\n >\\r\\n {{ lookupLabel(lookup) }}\\r\\n </span>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import type {\\r\\n EntityData,\\r\\n EntitySectionConfig,\\r\\n EntitySectionLabel,\\r\\n} from './entity.model';\\r\\n\\r\\n/**\\r\\n * A section is persisted/transported as an ordinary display item whose\\r\\n * `propertyKey` carries this sentinel prefix instead of a real property key\\r\\n * (mirrors the LeafDetails synthetic-key convention). Both the customization\\r\\n * builder and the runtime renderer recognize it, so the constant lives here in\\r\\n * the shared entities layer rather than in either consumer.\\r\\n */\\r\\nexport const SECTION_KEY_PREFIX = '__section__::';\\r\\n\\r\\n/** True when a display item's key denotes a section marker. */\\r\\nexport function isSectionKey(key?: string | null): boolean {\\r\\n return typeof key === 'string' && key.startsWith(SECTION_KEY_PREFIX);\\r\\n}\\r\\n\\r\\n/** Mints a unique section marker key. */\\r\\nexport function buildSectionKey(): string {\\r\\n return `${SECTION_KEY_PREFIX}${crypto.randomUUID()}`;\\r\\n}\\r\\n\\r\\n/**\\r\\n * Resolves a localized label (`{ en, ar }`) for the given language, falling\\r\\n * back across locales. Returns '' when nothing is set.\\r\\n */\\r\\nexport function resolveLocalizedLabel(\\r\\n label: EntitySectionLabel | null | undefined,\\r\\n lang?: string,\\r\\n): string {\\r\\n if (!label) return '';\\r\\n const primary = lang === 'ar' ? label.ar : label.en;\\r\\n return (primary || label.en || label.ar || '').trim();\\r\\n}\\r\\n\\r\\n/**\\r\\n * A run of entities that belong to the same section. `section` is the marker\\r\\n * entity (`viewType: 'Section'`) whose title heads the group, or `null` for the\\r\\n * leading run of entities that appear before the first marker (rendered bare,\\r\\n * with no box — so a card with no markers looks exactly like it did before\\r\\n * sections existed).\\r\\n */\\r\\nexport interface EntitySectionGroup {\\r\\n section: EntityData | null;\\r\\n entities: EntityData[];\\r\\n}\\r\\n\\r\\n/** True when the entity is a `Section` layout marker rather than a value. */\\r\\nexport function isEntitySection(\\r\\n entity: EntityData | null | undefined,\\r\\n): entity is EntityData {\\r\\n return entity?.viewType === 'Section';\\r\\n}\\r\\n\\r\\n/**\\r\\n * Splits a flat, order-sorted entity list into section groups. Membership is\\r\\n * purely positional: each entity belongs to whichever `Section` marker precedes\\r\\n * it. Pass the output of `buildDisplayEntities` (already sorted by `order`).\\r\\n *\\r\\n * Zero markers → a single `{ section: null }` group holding everything, so the\\r\\n * bare-grid rendering is unchanged. Empty leading/trailing runs are dropped.\\r\\n */\\r\\nexport function groupEntitiesIntoSections(\\r\\n entities: EntityData[],\\r\\n): EntitySectionGroup[] {\\r\\n const groups: EntitySectionGroup[] = [];\\r\\n let current: EntitySectionGroup = { section: null, entities: [] };\\r\\n\\r\\n const flush = (): void => {\\r\\n if (current.section || current.entities.length > 0) {\\r\\n groups.push(current);\\r\\n }\\r\\n };\\r\\n\\r\\n for (const entity of entities) {\\r\\n if (isEntitySection(entity)) {\\r\\n flush();\\r\\n current = { section: entity, entities: [] };\\r\\n } else {\\r\\n current.entities.push(entity);\\r\\n }\\r\\n }\\r\\n flush();\\r\\n\\r\\n return groups;\\r\\n}\\r\\n\\r\\n/**\\r\\n * Resolves a section marker's display label for the given language, falling\\r\\n * back across locales and finally to the entity's `name`.\\r\\n */\\r\\nexport function getEntitySectionTitle(\\r\\n section: EntityData | null | undefined,\\r\\n lang?: string,\\r\\n): string {\\r\\n if (!section) return '';\\r\\n const label = (section.configuration as EntitySectionConfig | undefined)\\r\\n ?.label;\\r\\n return resolveLocalizedLabel(label, lang) || (section.name ?? '');\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n inject,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { toSignal } from '@angular/core/rxjs-interop';\\r\\nimport { TranslocoService } from '@jsverse/transloco';\\r\\nimport {\\r\\n displayOrPlaceholder,\\r\\n ENTITY_EMPTY_VALUE_PLACEHOLDER,\\r\\n} from '../entity-display.utils';\\r\\nimport { resolveLocalizedLabel } from '../entity-sections.util';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityData, EntityPhaseGateValue } from '../entity.model';\\r\\n\\r\\n/** `#RGB` / `#RRGGBB`. Anything else is used as-is for the text color only. */\\r\\nconst HEX_COLOR_PATTERN = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\\r\\n\\r\\n/**\\r\\n * Badge color used when the phase gate carries no `color`. `color` is optional\\r\\n * presentation metadata, so a phase gate without one must still read as a\\r\\n * badge rather than as bare text — this is the same neutral slate the table\\r\\n * falls back to for uncategorized status chips.\\r\\n */\\r\\nexport const DEFAULT_PHASE_GATE_COLOR = '#475569';\\r\\n\\r\\n/**\\r\\n * Preview renderer for `PhaseGate` properties — a calculated, read-only lookup\\r\\n * pointing at the schema phase gate the record currently sits on. It renders\\r\\n * exactly like {@link EntityLookup} (colored badge) but resolves its label\\r\\n * per-language.\\r\\n *\\r\\n * Label resolution, in order:\\r\\n * 1. `value.ar` / `value.en` for the active language — the backend sends both\\r\\n * so a client-side language switch re-renders without a refetch, which is\\r\\n * why they win over the already-resolved `display`.\\r\\n * 2. `value.display`, then the other locale.\\r\\n * 3. The flat display, for payloads that send the value as a bare string\\r\\n * (comparison snapshots build their sides that way).\\r\\n * 4. `rawValue` — the schema phase-gate id — as a last resort.\\r\\n */\\r\\n@Component({\\r\\n selector: 'mt-entity-phase-gate',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField],\\r\\n templateUrl: './entity-phase-gate.html',\\r\\n})\\r\\nexport class EntityPhaseGate {\\r\\n private readonly transloco = inject(TranslocoService);\\r\\n\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<EntityPhaseGateValue>();\\r\\n\\r\\n private readonly activeLang = toSignal(this.transloco.langChanges$, {\\r\\n initialValue: this.transloco.getActiveLang(),\\r\\n });\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n\\r\\n readonly phaseGateValue = computed<EntityPhaseGateValue | null>(() => {\\r\\n const value = this.data()?.value;\\r\\n if (value && typeof value === 'object' && !Array.isArray(value)) {\\r\\n return value as EntityPhaseGateValue;\\r\\n }\\r\\n return this.value() ?? null;\\r\\n });\\r\\n\\r\\n /** Resolved label, or `null` when nothing at all is available. */\\r\\n private readonly resolvedLabel = computed<string | null>(() => {\\r\\n const phaseGate = this.phaseGateValue();\\r\\n if (phaseGate) {\\r\\n const localized = resolveLocalizedLabel(phaseGate, this.activeLang());\\r\\n const label = localized || phaseGate.display?.trim();\\r\\n if (label) return label;\\r\\n }\\r\\n\\r\\n return this.flatDisplay() ?? this.rawId();\\r\\n });\\r\\n\\r\\n readonly hasValue = computed(() => this.resolvedLabel() !== null);\\r\\n\\r\\n readonly phaseGateLabel = computed(() =>\\r\\n displayOrPlaceholder(this.resolvedLabel()),\\r\\n );\\r\\n\\r\\n readonly badgeStyle = computed(() => {\\r\\n const color =\\r\\n this.phaseGateValue()?.color?.trim() || DEFAULT_PHASE_GATE_COLOR;\\r\\n if (!HEX_COLOR_PATTERN.test(color)) return { color };\\r\\n return {\\r\\n color,\\r\\n backgroundColor: this.hexToRgba(color, 0.12),\\r\\n };\\r\\n });\\r\\n\\r\\n readonly emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\\r\\n\\r\\n /** The value flattened to a plain display string by the sender. */\\r\\n private flatDisplay(): string | null {\\r\\n const value = this.data()?.value;\\r\\n return typeof value === 'string' && value.trim() ? value.trim() : null;\\r\\n }\\r\\n\\r\\n /** The schema phase-gate id. */\\r\\n private rawId(): string | null {\\r\\n const rawValue = this.data()?.rawValue;\\r\\n return typeof rawValue === 'string' && rawValue.trim()\\r\\n ? rawValue.trim()\\r\\n : null;\\r\\n }\\r\\n\\r\\n private hexToRgba(hex: string, alpha: number): string {\\r\\n const expanded =\\r\\n hex.length === 4\\r\\n ? `#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`\\r\\n : hex;\\r\\n const r = parseInt(expanded.slice(1, 3), 16);\\r\\n const g = parseInt(expanded.slice(3, 5), 16);\\r\\n const b = parseInt(expanded.slice(5, 7), 16);\\r\\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\\r\\n }\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasValue()) {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit\\\"\\r\\n [style]=\\\"badgeStyle()\\\"\\r\\n >\\r\\n {{ phaseGateLabel() }}\\r\\n </span>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import { HttpClient, HttpContext } from '@angular/common/http';\\r\\nimport {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n effect,\\r\\n inject,\\r\\n input,\\r\\n signal,\\r\\n} from '@angular/core';\\r\\nimport { FormsModule } from '@angular/forms';\\r\\nimport { TranslocoService } from '@jsverse/transloco';\\r\\nimport { Button } from '@masterteam/components/button';\\r\\nimport { UploadField } from '@masterteam/components/upload-field';\\r\\nimport { MTIcon } from '@masterteam/icons';\\r\\nimport {\\r\\n EMPTY,\\r\\n catchError,\\r\\n finalize,\\r\\n forkJoin,\\r\\n map,\\r\\n of,\\r\\n switchMap,\\r\\n take,\\r\\n} from 'rxjs';\\r\\n\\r\\nimport {\\r\\n EntityAttachmentItemValue,\\r\\n EntityAttachmentValue,\\r\\n EntityData,\\r\\n} from '../entity.model';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\n\\r\\ninterface AttachmentMetadataResponse {\\r\\n data: EntityAttachmentItemValue;\\r\\n}\\r\\n\\r\\ntype AttachmentReference = EntityAttachmentItemValue | string;\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-attachment',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [FormsModule, UploadField, Button, EntityField],\\r\\n templateUrl: './entity-attachment.html',\\r\\n})\\r\\nexport class EntityAttachment {\\r\\n readonly data = input<EntityData>();\\r\\n readonly name = input<string>();\\r\\n readonly shape = input<'default' | 'compact'>('default');\\r\\n readonly value = input<\\r\\n EntityAttachmentValue | EntityAttachmentItemValue | string | null\\r\\n >();\\r\\n readonly endPoint = input<string>('uploader');\\r\\n readonly context = input<HttpContext | undefined>(undefined);\\r\\n\\r\\n private readonly httpClient = inject(HttpClient);\\r\\n private readonly transloco = inject(TranslocoService);\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n readonly loading = signal(false);\\r\\n readonly attachments = signal<EntityAttachmentItemValue[]>([]);\\r\\n /** Key of the compact chip currently hovered, so it can reveal the download affordance. */\\r\\n readonly hoveredAttachmentKey = signal<string | null>(null);\\r\\n readonly attachmentReferences = computed(() =>\\r\\n this.normalizeAttachmentValue(this.data()?.value ?? this.value()),\\r\\n );\\r\\n readonly uploadValue = computed(() => {\\r\\n const references = this.attachmentReferences().map((reference) => {\\r\\n if (typeof reference === 'string') {\\r\\n return reference.trim();\\r\\n }\\r\\n\\r\\n if (reference.fileName) {\\r\\n return reference;\\r\\n }\\r\\n\\r\\n return reference.id?.trim() || reference;\\r\\n });\\r\\n\\r\\n if (!references.length) {\\r\\n return null;\\r\\n }\\r\\n\\r\\n return references.length === 1 ? references[0] : references;\\r\\n });\\r\\n readonly hasAttachments = computed(() =>\\r\\n this.shape() === 'compact'\\r\\n ? this.attachments().length > 0\\r\\n : this.uploadValue() != null,\\r\\n );\\r\\n readonly isMultiple = computed(() => this.attachmentReferences().length > 1);\\r\\n readonly acceptTypes = computed(() =>\\r\\n this.normalizeAcceptTypes(\\r\\n (this.data()?.configuration as Record<string, unknown> | undefined)?.[\\r\\n 'AcceptTypes'\\r\\n ],\\r\\n ),\\r\\n );\\r\\n\\r\\n protected readonly empty = '-';\\r\\n\\r\\n constructor() {\\r\\n effect((onCleanup) => {\\r\\n if (this.shape() !== 'compact') {\\r\\n this.loading.set(false);\\r\\n this.attachments.set([]);\\r\\n return;\\r\\n }\\r\\n\\r\\n const references = this.attachmentReferences();\\r\\n\\r\\n if (!references.length) {\\r\\n this.loading.set(false);\\r\\n this.attachments.set([]);\\r\\n return;\\r\\n }\\r\\n\\r\\n const shouldFetchMetadata = references.some((reference) =>\\r\\n this.requiresMetadataRequest(reference),\\r\\n );\\r\\n\\r\\n if (!shouldFetchMetadata) {\\r\\n this.attachments.set(\\r\\n references.filter(this.isAttachmentItemValue).map((reference) => ({\\r\\n ...reference,\\r\\n name:\\r\\n reference.name ??\\r\\n reference.fileName ??\\r\\n reference.id ??\\r\\n reference.name,\\r\\n extension: this.resolveExtension(reference),\\r\\n })),\\r\\n );\\r\\n this.loading.set(false);\\r\\n return;\\r\\n }\\r\\n\\r\\n this.loading.set(true);\\r\\n\\r\\n const sub = forkJoin(\\r\\n references.map((reference) => this.resolveAttachment$(reference)),\\r\\n )\\r\\n .pipe(finalize(() => this.loading.set(false)))\\r\\n .subscribe((attachments) => {\\r\\n this.attachments.set(\\r\\n attachments.filter(\\r\\n (attachment): attachment is EntityAttachmentItemValue =>\\r\\n attachment != null,\\r\\n ),\\r\\n );\\r\\n });\\r\\n\\r\\n onCleanup(() => sub.unsubscribe());\\r\\n });\\r\\n }\\r\\n\\r\\n attachmentTrackBy(\\r\\n index: number,\\r\\n attachment: EntityAttachmentItemValue,\\r\\n ): string {\\r\\n return (\\r\\n attachment.id ?? attachment.fileName ?? attachment.name ?? String(index)\\r\\n );\\r\\n }\\r\\n\\r\\n attachmentTooltip(attachment: EntityAttachmentItemValue): string {\\r\\n const name =\\r\\n attachment.name ??\\r\\n attachment.fileName ??\\r\\n attachment.id ??\\r\\n this.transloco.translate('components.entitiesPreview.attachment');\\r\\n\\r\\n return this.transloco.translate(\\r\\n 'components.entitiesPreview.downloadAttachment',\\r\\n { name },\\r\\n );\\r\\n }\\r\\n\\r\\n /**\\r\\n * Compact chips are clickable downloads but only show a file-type glyph,\\r\\n * which doesn't read as actionable. Swap to a download icon while hovered\\r\\n * so the action is obvious.\\r\\n */\\r\\n attachmentActionIcon(\\r\\n index: number,\\r\\n attachment: EntityAttachmentItemValue,\\r\\n ): MTIcon {\\r\\n return this.hoveredAttachmentKey() ===\\r\\n this.attachmentTrackBy(index, attachment)\\r\\n ? 'general.download-01'\\r\\n : this.attachmentIcon(attachment);\\r\\n }\\r\\n\\r\\n attachmentIcon(attachment: EntityAttachmentItemValue): MTIcon {\\r\\n const extension = this.resolveExtension(attachment);\\r\\n const contentType = attachment.contentType?.toLowerCase() ?? '';\\r\\n\\r\\n if (contentType.startsWith('image/')) {\\r\\n return 'image.image-03';\\r\\n }\\r\\n\\r\\n switch (extension) {\\r\\n case '.pdf':\\r\\n return 'file.file-06';\\r\\n case '.doc':\\r\\n case '.docx':\\r\\n case '.txt':\\r\\n case '.rtf':\\r\\n return 'file.file-04';\\r\\n case '.xls':\\r\\n case '.xlsx':\\r\\n case '.csv':\\r\\n return 'file.file-03';\\r\\n case '.ppt':\\r\\n case '.pptx':\\r\\n return 'file.file-05';\\r\\n default:\\r\\n return 'file.clipboard-attachment';\\r\\n }\\r\\n }\\r\\n\\r\\n onCompactAttachmentClick(\\r\\n event: MouseEvent,\\r\\n attachment: EntityAttachmentItemValue,\\r\\n ): void {\\r\\n event.stopPropagation();\\r\\n this.downloadAttachment(attachment);\\r\\n }\\r\\n\\r\\n downloadAttachment(attachment: EntityAttachmentItemValue): void {\\r\\n const resolvedAttachment$ = this.requiresMetadataRequest(attachment)\\r\\n ? this.resolveAttachment$(attachment)\\r\\n : of(this.normalizeAttachmentItem(attachment));\\r\\n\\r\\n resolvedAttachment$\\r\\n .pipe(\\r\\n take(1),\\r\\n switchMap((resolvedAttachment) => {\\r\\n if (!resolvedAttachment?.fileName) {\\r\\n return EMPTY;\\r\\n }\\r\\n\\r\\n return this.httpClient\\r\\n .get(`${this.endPoint()}/${resolvedAttachment.fileName}`, {\\r\\n responseType: 'blob',\\r\\n context: this.context(),\\r\\n })\\r\\n .pipe(\\r\\n take(1),\\r\\n map((blob) => ({\\r\\n attachment: resolvedAttachment,\\r\\n blob,\\r\\n })),\\r\\n );\\r\\n }),\\r\\n )\\r\\n .subscribe(({ attachment, blob }) => {\\r\\n const downloadBlob = new Blob([blob], {\\r\\n type:\\r\\n attachment.contentType || blob.type || 'application/octet-stream',\\r\\n });\\r\\n const objectUrl = window.URL.createObjectURL(downloadBlob);\\r\\n const anchor = document.createElement('a');\\r\\n\\r\\n anchor.href = objectUrl;\\r\\n anchor.download =\\r\\n attachment.name ??\\r\\n attachment.fileName ??\\r\\n attachment.id ??\\r\\n 'attachment';\\r\\n anchor.click();\\r\\n\\r\\n window.URL.revokeObjectURL(objectUrl);\\r\\n });\\r\\n }\\r\\n\\r\\n private resolveAttachment$(reference: AttachmentReference) {\\r\\n const normalizedAttachment = this.normalizeAttachmentItem(reference);\\r\\n\\r\\n if (!this.requiresMetadataRequest(reference)) {\\r\\n return of(normalizedAttachment);\\r\\n }\\r\\n\\r\\n const attachmentId =\\r\\n typeof reference === 'string' ? reference.trim() : reference.id?.trim();\\r\\n\\r\\n if (!attachmentId) {\\r\\n return of(normalizedAttachment);\\r\\n }\\r\\n\\r\\n return this.httpClient\\r\\n .get<AttachmentMetadataResponse>(\\r\\n `${this.endPoint()}/${attachmentId}/metaData`,\\r\\n {\\r\\n context: this.context(),\\r\\n },\\r\\n )\\r\\n .pipe(\\r\\n take(1),\\r\\n map((response) => this.normalizeAttachmentItem(response.data)),\\r\\n catchError(() => of(normalizedAttachment)),\\r\\n );\\r\\n }\\r\\n\\r\\n private normalizeAttachmentValue(value: unknown): AttachmentReference[] {\\r\\n if (value === null || value === undefined) {\\r\\n return [];\\r\\n }\\r\\n\\r\\n if (Array.isArray(value)) {\\r\\n return value.flatMap((item) => this.normalizeAttachmentValue(item));\\r\\n }\\r\\n\\r\\n if (typeof value === 'string') {\\r\\n const trimmedValue = value.trim();\\r\\n\\r\\n if (!trimmedValue || trimmedValue === '[]') {\\r\\n return [];\\r\\n }\\r\\n\\r\\n if (\\r\\n (trimmedValue.startsWith('[') && trimmedValue.endsWith(']')) ||\\r\\n (trimmedValue.startsWith('{') && trimmedValue.endsWith('}'))\\r\\n ) {\\r\\n try {\\r\\n return this.normalizeAttachmentValue(JSON.parse(trimmedValue));\\r\\n } catch {\\r\\n return [trimmedValue];\\r\\n }\\r\\n }\\r\\n\\r\\n return [trimmedValue];\\r\\n }\\r\\n\\r\\n if (typeof value === 'object') {\\r\\n const envelope = value as {\\r\\n value?: unknown;\\r\\n attachments?: unknown;\\r\\n id?: unknown;\\r\\n fileName?: unknown;\\r\\n name?: unknown;\\r\\n };\\r\\n\\r\\n // Backend attachment envelope:\\r\\n // { value: <id | id[]>, attachments: [{ value: <id>, name, fileName }] }\\r\\n // The stored items don't carry the storage key (their `fileName` is the\\r\\n // display name), only the upload id, so resolve every attachment by its\\r\\n // id through the metadata endpoint — the same contract\\r\\n // `mt-upload-field` uses.\\r\\n if (Array.isArray(envelope.attachments)) {\\r\\n return envelope.attachments.flatMap((item) =>\\r\\n this.normalizeAttachmentValue(item),\\r\\n );\\r\\n }\\r\\n\\r\\n // A single backend attachment item carries its upload id under `value`.\\r\\n if (\\r\\n typeof envelope.value === 'string' &&\\r\\n envelope.id === undefined &&\\r\\n (envelope.fileName !== undefined || envelope.name !== undefined)\\r\\n ) {\\r\\n return this.normalizeAttachmentValue(envelope.value);\\r\\n }\\r\\n\\r\\n // Envelope with no resolved attachments yet — unwrap the inner id(s).\\r\\n if (\\r\\n 'value' in envelope &&\\r\\n envelope.id === undefined &&\\r\\n envelope.fileName === undefined &&\\r\\n envelope.name === undefined\\r\\n ) {\\r\\n return this.normalizeAttachmentValue(envelope.value);\\r\\n }\\r\\n\\r\\n return [value as EntityAttachmentItemValue];\\r\\n }\\r\\n\\r\\n return [];\\r\\n }\\r\\n\\r\\n private normalizeAttachmentItem(\\r\\n value: AttachmentReference | null | undefined,\\r\\n ): EntityAttachmentItemValue | null {\\r\\n if (!value) {\\r\\n return null;\\r\\n }\\r\\n\\r\\n if (typeof value === 'string') {\\r\\n const trimmedValue = value.trim();\\r\\n\\r\\n return trimmedValue\\r\\n ? {\\r\\n id: trimmedValue,\\r\\n name: trimmedValue,\\r\\n }\\r\\n : null;\\r\\n }\\r\\n\\r\\n const normalizedAttachment: EntityAttachmentItemValue = {\\r\\n ...value,\\r\\n name: value.name ?? value.fileName ?? value.id ?? '',\\r\\n extension: this.resolveExtension(value),\\r\\n };\\r\\n\\r\\n return normalizedAttachment.name ||\\r\\n normalizedAttachment.fileName ||\\r\\n normalizedAttachment.id\\r\\n ? normalizedAttachment\\r\\n : null;\\r\\n }\\r\\n\\r\\n private requiresMetadataRequest(reference: AttachmentReference): boolean {\\r\\n if (typeof reference === 'string') {\\r\\n return reference.trim().length > 0;\\r\\n }\\r\\n\\r\\n return !!reference.id?.trim() && !reference.fileName;\\r\\n }\\r\\n\\r\\n private isAttachmentItemValue(\\r\\n reference: AttachmentReference,\\r\\n ): reference is EntityAttachmentItemValue {\\r\\n return typeof reference === 'object' && reference != null;\\r\\n }\\r\\n\\r\\n private resolveExtension(\\r\\n value: EntityAttachmentItemValue,\\r\\n ): string | undefined {\\r\\n const explicitExtension = value.extension?.trim();\\r\\n\\r\\n if (explicitExtension) {\\r\\n return explicitExtension.startsWith('.')\\r\\n ? explicitExtension.toLowerCase()\\r\\n : `.${explicitExtension.toLowerCase()}`;\\r\\n }\\r\\n\\r\\n const fileName = value.fileName ?? value.name;\\r\\n if (!fileName || !fileName.includes('.')) {\\r\\n return undefined;\\r\\n }\\r\\n\\r\\n return `.${fileName.split('.').pop()!.toLowerCase()}`;\\r\\n }\\r\\n\\r\\n private normalizeAcceptTypes(value: unknown): string | undefined {\\r\\n if (Array.isArray(value)) {\\r\\n const acceptTypes = value\\r\\n .map((item) => (typeof item === 'string' ? item.trim() : ''))\\r\\n .filter(Boolean);\\r\\n\\r\\n return acceptTypes.length ? acceptTypes.join(',') : undefined;\\r\\n }\\r\\n\\r\\n if (typeof value === 'string') {\\r\\n const acceptTypes = value.trim();\\r\\n return acceptTypes || undefined;\\r\\n }\\r\\n\\r\\n return undefined;\\r\\n }\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"relaxed\\\"\\r\\n>\\r\\n @if (hasAttachments()) {\\r\\n @if (shape() === \\\"compact\\\") {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (\\r\\n attachment of attachments();\\r\\n track attachmentTrackBy($index, attachment)\\r\\n ) {\\r\\n <mt-button\\r\\n iconPos=\\\"top\\\"\\r\\n size=\\\"small\\\"\\r\\n severity=\\\"secondary\\\"\\r\\n variant=\\\"outlined\\\"\\r\\n [icon]=\\\"attachmentActionIcon($index, attachment)\\\"\\r\\n [tooltip]=\\\"attachmentTooltip(attachment)\\\"\\r\\n styleClass=\\\"h-9! w-9! rounded-lg! transition-all duration-200 hover:scale-105 hover:border-primary-500! hover:text-primary-600! hover:bg-primary-50!\\\"\\r\\n (onClick)=\\\"onCompactAttachmentClick($event, attachment)\\\"\\r\\n (mouseenter)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (mouseleave)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n (onFocus)=\\\"\\r\\n hoveredAttachmentKey.set(attachmentTrackBy($index, attachment))\\r\\n \\\"\\r\\n (onBlur)=\\\"hoveredAttachmentKey.set(null)\\\"\\r\\n />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <mt-upload-field\\r\\n class=\\\"w-full\\\"\\r\\n [ngModel]=\\\"uploadValue()\\\"\\r\\n [ngModelOptions]=\\\"{ standalone: true }\\\"\\r\\n [shape]=\\\"'card'\\\"\\r\\n [multiple]=\\\"isMultiple()\\\"\\r\\n [readonly]=\\\"true\\\"\\r\\n [endPoint]=\\\"endPoint()\\\"\\r\\n [accept]=\\\"acceptTypes()\\\"\\r\\n [context]=\\\"context()\\\"\\r\\n />\\r\\n }\\r\\n } @else {\\r\\n <span class=\\\"text-sm font-semibold\\\">{{ empty }}</span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { TruncateTooltip } from '@masterteam/components/tooltip';\\r\\nimport { Icon } from '@masterteam/icons';\\r\\nimport { displayOrPlaceholder } from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityData, EntityLocationValue } from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-location',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [EntityField, Icon, TruncateTooltip],\\r\\n templateUrl: './entity-location.html',\\r\\n})\\r\\nexport class EntityLocation {\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? '');\\r\\n readonly location = computed(() =>\\r\\n normalizeEntityLocation(this.data()?.value),\\r\\n );\\r\\n readonly displayValue = computed(() =>\\r\\n displayOrPlaceholder(\\r\\n this.location()?.display_name ?? this.location()?.address ?? null,\\r\\n ),\\r\\n );\\r\\n readonly coordinates = computed(() => {\\r\\n const location = this.location();\\r\\n const lat = location?.lat;\\r\\n const lon = location?.lon ?? location?.lng;\\r\\n if (lat === undefined || lon === undefined || lat === '' || lon === '') {\\r\\n return '';\\r\\n }\\r\\n return `${lat}, ${lon}`;\\r\\n });\\r\\n readonly mapsUrl = computed(() => {\\r\\n const location = this.location();\\r\\n const lat = location?.lat;\\r\\n const lon = location?.lon ?? location?.lng;\\r\\n if (lat === undefined || lon === undefined || lat === '' || lon === '') {\\r\\n return '';\\r\\n }\\r\\n return `https://www.google.com/maps/?q=${encodeURIComponent(`${lat},${lon}`)}`;\\r\\n });\\r\\n}\\r\\n\\r\\nfunction normalizeEntityLocation(\\r\\n value: EntityData['value'] | undefined,\\r\\n): EntityLocationValue | null {\\r\\n if (value === null || value === undefined || value === '') {\\r\\n return null;\\r\\n }\\r\\n\\r\\n if (typeof value === 'string') {\\r\\n const trimmed = value.trim();\\r\\n if (!trimmed) return null;\\r\\n\\r\\n try {\\r\\n return normalizeEntityLocation(\\r\\n JSON.parse(trimmed) as EntityData['value'],\\r\\n );\\r\\n } catch {\\r\\n return {\\r\\n display_name: trimmed,\\r\\n address: trimmed,\\r\\n };\\r\\n }\\r\\n }\\r\\n\\r\\n if (typeof value !== 'object' || Array.isArray(value)) {\\r\\n return {\\r\\n display_name: String(value),\\r\\n address: String(value),\\r\\n };\\r\\n }\\r\\n\\r\\n const source = value as Record<string, unknown>;\\r\\n const displayName =\\r\\n readString(source['display_name']) ??\\r\\n readString(source['displayName']) ??\\r\\n readString(source['address']) ??\\r\\n readString(source['name']);\\r\\n const lon = source['lon'] ?? source['lng'];\\r\\n\\r\\n return {\\r\\n ...source,\\r\\n ...(displayName ? { display_name: displayName, address: displayName } : {}),\\r\\n ...(lon !== undefined ? { lon: lon as string | number } : {}),\\r\\n };\\r\\n}\\r\\n\\r\\nfunction readString(value: unknown): string | undefined {\\r\\n return typeof value === 'string' && value.trim() ? value.trim() : undefined;\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [labelIconName]=\\\"'map.marker-pin-01'\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (mapsUrl()) {\\r\\n <a\\r\\n [href]=\\\"mapsUrl()\\\"\\r\\n target=\\\"_blank\\\"\\r\\n rel=\\\"noopener noreferrer\\\"\\r\\n class=\\\"flex min-w-0 max-w-full items-center gap-1.5 text-sm font-semibold text-primary-600 hover:text-primary-700\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n <mt-icon icon=\\\"map.marker-pin-01\\\" size=\\\"sm\\\" class=\\\"shrink-0\\\" />\\r\\n <span class=\\\"min-w-0 truncate\\\">{{ displayValue() }}</span>\\r\\n </a>\\r\\n } @else {\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n }\\r\\n\\r\\n @if (coordinates()) {\\r\\n <div class=\\\"min-w-0 truncate text-xs text-gray-500\\\">\\r\\n {{ coordinates() }}\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { TruncateTooltip } from '@masterteam/components/tooltip';\\r\\nimport { displayOrPlaceholder } from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityConnectionValue, EntityData } from '../entity.model';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-connection',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField, TruncateTooltip],\\r\\n templateUrl: './entity-connection.html',\\r\\n})\\r\\nexport class EntityConnection {\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n /** Individual inputs (used when data is not provided) */\\r\\n readonly name = input<string>();\\r\\n readonly value = input<EntityConnectionValue | string>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? this.name() ?? '');\\r\\n\\r\\n /** The connection display lives on `rawValue.display`; fall back to `value`. */\\r\\n readonly connection = computed<EntityConnectionValue | null>(() => {\\r\\n const d = this.data();\\r\\n return (\\r\\n normalizeEntityConnection(d?.value ?? d?.rawValue) ??\\r\\n normalizeEntityConnection(this.value())\\r\\n );\\r\\n });\\r\\n\\r\\n readonly displayValue = computed(() =>\\r\\n displayOrPlaceholder(this.connection()?.display),\\r\\n );\\r\\n}\\r\\n\\r\\nfunction normalizeEntityConnection(\\r\\n value: unknown,\\r\\n): EntityConnectionValue | null {\\r\\n if (value === null || value === undefined || value === '') {\\r\\n return null;\\r\\n }\\r\\n\\r\\n if (typeof value === 'string') {\\r\\n const trimmed = value.trim();\\r\\n if (!trimmed) return null;\\r\\n\\r\\n try {\\r\\n return normalizeEntityConnection(JSON.parse(trimmed));\\r\\n } catch {\\r\\n return { display: trimmed };\\r\\n }\\r\\n }\\r\\n\\r\\n if (typeof value !== 'object' || Array.isArray(value)) {\\r\\n return { display: String(value) };\\r\\n }\\r\\n\\r\\n const source = value as Record<string, unknown>;\\r\\n // Parsed payload uses `display`; the serialized JSON value uses `Display`.\\r\\n const display =\\r\\n typeof source['display'] === 'string'\\r\\n ? (source['display'] as string)\\r\\n : typeof source['Display'] === 'string'\\r\\n ? (source['Display'] as string)\\r\\n : undefined;\\r\\n\\r\\n return { ...source, ...(display !== undefined ? { display } : {}) };\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n>\\r\\n <div\\r\\n class=\\\"min-w-0 max-w-full truncate text-sm font-semibold\\\"\\r\\n mtTruncateTooltip\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ displayValue() }}\\r\\n </div>\\r\\n</mt-entity-field>\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { Chip } from '@masterteam/components/chip';\\r\\nimport { ENTITY_EMPTY_VALUE_PLACEHOLDER } from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityData, EntityScheduleItemValue } from '../entity.model';\\r\\n\\r\\n/**\\r\\n * Preview renderer for `ScheduleItemSelector` properties.\\r\\n *\\r\\n * The value is the array of resolved schedule items returned by runtime\\r\\n * rendering (`{ id, name, status, ... }`); each one is shown as a chip.\\r\\n */\\r\\n@Component({\\r\\n selector: 'mt-entity-schedule-item',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityField, Chip],\\r\\n templateUrl: './entity-schedule-item.html',\\r\\n})\\r\\nexport class EntityScheduleItem {\\r\\n /** Full entity data object */\\r\\n readonly data = input<EntityData>();\\r\\n\\r\\n readonly displayName = computed(() => this.data()?.name ?? '');\\r\\n\\r\\n readonly items = computed<EntityScheduleItemValue[]>(() => {\\r\\n const value = this.data()?.value;\\r\\n if (!Array.isArray(value)) return [];\\r\\n return (value as unknown[]).filter(\\r\\n (item): item is EntityScheduleItemValue =>\\r\\n !!item && typeof item === 'object' && 'name' in item,\\r\\n );\\r\\n });\\r\\n\\r\\n readonly emptyLabel = ENTITY_EMPTY_VALUE_PLACEHOLDER;\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"displayName()\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (items().length) {\\r\\n <div class=\\\"flex flex-wrap items-center gap-2\\\">\\r\\n @for (item of items(); track item.id) {\\r\\n <mt-chip [label]=\\\"item.name\\\" size=\\\"small\\\" />\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex items-center px-3 py-2 rounded-md text-xs font-semibold w-fit text-gray-500 bg-gray-100\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { TooltipModule } from 'primeng/tooltip';\\r\\nimport { readableTextOn } from '@masterteam/components';\\r\\nimport { EntityData, LeafDetailsEntityValue } from '../entity.model';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\n\\r\\n/** Neutral grey for a status the catalog left without a colour. */\\r\\nconst DEFAULT_STATUS_COLOR = '#9CA3AF';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-leaf-details',\\r\\n standalone: true,\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [EntityField, TooltipModule],\\r\\n templateUrl: './entity-leaf-details.html',\\r\\n})\\r\\nexport class EntityLeafDetails {\\r\\n readonly data = input.required<EntityData>();\\r\\n\\r\\n readonly leafValue = computed<LeafDetailsEntityValue | null>(() => {\\r\\n const v = this.data().value;\\r\\n if (v && typeof v === 'object' && !Array.isArray(v) && 'levelId' in v) {\\r\\n return v as LeafDetailsEntityValue;\\r\\n }\\r\\n return null;\\r\\n });\\r\\n\\r\\n /** Label shown below the badges: \\\"Level Name (total)\\\" */\\r\\n readonly labelWithTotal = computed(() => {\\r\\n const leaf = this.leafValue();\\r\\n const name = this.data().name ?? leaf?.levelName ?? '';\\r\\n if (!leaf) return name;\\r\\n const total = leaf.statuses.reduce((sum, s) => sum + s.count, 0);\\r\\n return `${name} (${total})`;\\r\\n });\\r\\n\\r\\n readonly labelIcon = computed(() => this.leafValue()?.levelIcon ?? null);\\r\\n\\r\\n statusColor(color: string | null): string {\\r\\n return color ?? DEFAULT_STATUS_COLOR;\\r\\n }\\r\\n\\r\\n /**\\r\\n * Foreground for the count, chosen against the badge colour instead of always\\r\\n * white — a light catalog colour measured 2.59:1 with white on it, the lowest\\r\\n * contrast in the product (findings M-04, H-03).\\r\\n */\\r\\n statusTextColor(color: string | null): string {\\r\\n return readableTextOn(this.statusColor(color));\\r\\n }\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"labelWithTotal()\\\"\\r\\n [labelIconName]=\\\"labelIcon()\\\"\\r\\n [configuration]=\\\"data().configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (leafValue(); as leaf) {\\r\\n <div class=\\\"flex flex-wrap gap-1.5\\\">\\r\\n @for (status of leaf.statuses; track status.key) {\\r\\n <!--\\r\\n The badge is a count, and the colour is the only thing saying WHICH\\r\\n count — so the status name has to be reachable without hovering, and\\r\\n the number has to be legible on whatever hex the tenant's catalog\\r\\n carries. The tooltip names it for a pointer, the aria-label names it\\r\\n for a screen reader, and the foreground is chosen against the badge\\r\\n colour rather than hardcoded white (findings M-04, H-03).\\r\\n -->\\r\\n <div\\r\\n class=\\\"flex h-7 min-w-7 items-center justify-center rounded-lg px-1.5 text-xs font-bold tabular-nums\\\"\\r\\n role=\\\"img\\\"\\r\\n [style.background-color]=\\\"statusColor(status.color)\\\"\\r\\n [style.color]=\\\"statusTextColor(status.color)\\\"\\r\\n [attr.aria-label]=\\\"status.display + ': ' + status.count\\\"\\r\\n [pTooltip]=\\\"status.display\\\"\\r\\n tooltipPosition=\\\"top\\\"\\r\\n >\\r\\n {{ status.count }}\\r\\n </div>\\r\\n }\\r\\n @if (leaf.statuses.length === 0) {\\r\\n <span class=\\\"text-sm text-muted-color\\\">—</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { EntityData, EntityViewType } from '../entity.model';\\r\\nimport { EntityText } from '../entity-text/entity-text';\\r\\nimport { EntityLongText } from '../entity-long-text/entity-long-text';\\r\\nimport { EntityDate } from '../entity-date/entity-date';\\r\\nimport { EntityUser } from '../entity-user/entity-user';\\r\\nimport { EntityPercentage } from '../entity-percentage/entity-percentage';\\r\\nimport { EntityCurrency } from '../entity-currency/entity-currency';\\r\\nimport { EntityCheckbox } from '../entity-checkbox/entity-checkbox';\\r\\nimport { EntityLookup } from '../entity-lookup/entity-lookup';\\r\\nimport { EntityPhaseGate } from '../entity-phase-gate/entity-phase-gate';\\r\\nimport { EntityAttachment } from '../entity-attachment/entity-attachment';\\r\\nimport { EntityStatus } from '../entity-status/entity-status';\\r\\nimport { EntityLeafDetails } from '../entity-leaf-details/entity-leaf-details';\\r\\nimport { EntityLocation } from '../entity-location/entity-location';\\r\\nimport { EntityConnection } from '../entity-connection/entity-connection';\\r\\nimport { EntityScheduleItem } from '../entity-schedule-item/entity-schedule-item';\\r\\n\\r\\n/**\\r\\n * Renders an entity value by view type.\\r\\n *\\r\\n * `LookupModuleCheckList` is deliberately not handled here: that component\\r\\n * renders each of its nested properties *through* this one, so routing it back\\r\\n * through here would make the two files import each other. `EntityPreviewBody`\\r\\n * owns that case and delegates every other view type to this component.\\r\\n */\\r\\n@Component({\\r\\n selector: 'mt-entity-value-preview',\\r\\n standalone: true,\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [\\r\\n EntityText,\\r\\n EntityLongText,\\r\\n EntityDate,\\r\\n EntityUser,\\r\\n EntityPercentage,\\r\\n EntityCurrency,\\r\\n EntityCheckbox,\\r\\n EntityLookup,\\r\\n EntityPhaseGate,\\r\\n EntityAttachment,\\r\\n EntityStatus,\\r\\n EntityLeafDetails,\\r\\n EntityLocation,\\r\\n EntityConnection,\\r\\n EntityScheduleItem,\\r\\n ],\\r\\n templateUrl: './entity-value-preview.html',\\r\\n host: {\\r\\n class: 'block min-w-0 w-full',\\r\\n },\\r\\n})\\r\\nexport class EntityValuePreview {\\r\\n readonly data = input.required<EntityData>();\\r\\n readonly attachmentShape = input<'default' | 'compact'>('default');\\r\\n\\r\\n /** Lookup variants share the same colored-badge renderer. */\\r\\n readonly previewType = computed<EntityViewType>(() => {\\r\\n const viewType = this.data().viewType;\\r\\n return viewType === 'LookupMatrix' || viewType === 'LookupMultiSelect'\\r\\n ? 'Lookup'\\r\\n : viewType;\\r\\n });\\r\\n}\\r\\n\",\"@switch (previewType()) {\\r\\n @case (\\\"Text\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LongText\\\") {\\r\\n <mt-entity-long-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Date\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"DateTime\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'DateTime'\\\" />\\r\\n }\\r\\n @case (\\\"Time\\\") {\\r\\n <mt-entity-date [data]=\\\"data()\\\" [viewType]=\\\"'Time'\\\" />\\r\\n }\\r\\n @case (\\\"User\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"MultiUser\\\") {\\r\\n <mt-entity-user [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Percentage\\\") {\\r\\n <mt-entity-percentage [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Currency\\\") {\\r\\n <mt-entity-currency [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Number\\\") {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Checkbox\\\") {\\r\\n <mt-entity-checkbox [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Lookup\\\") {\\r\\n <mt-entity-lookup [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Status\\\") {\\r\\n <mt-entity-status [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"PhaseGate\\\") {\\r\\n <mt-entity-phase-gate [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Attachment\\\") {\\r\\n <mt-entity-attachment [data]=\\\"data()\\\" [shape]=\\\"attachmentShape()\\\" />\\r\\n }\\r\\n @case (\\\"Location\\\") {\\r\\n <mt-entity-location [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"Connection\\\") {\\r\\n <mt-entity-connection [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"ScheduleItemSelector\\\") {\\r\\n <mt-entity-schedule-item [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"LeafDetails\\\") {\\r\\n <mt-entity-leaf-details [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-text [data]=\\\"data()\\\" />\\r\\n }\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { displayOrPlaceholder } from '../entity-display.utils';\\r\\nimport { EntityField } from '../entity-field/entity-field';\\r\\nimport { EntityValuePreview } from '../entity-preview/entity-value-preview';\\r\\nimport {\\r\\n EntityConfiguration,\\r\\n EntityData,\\r\\n EntityLookupCheckListItem,\\r\\n EntityLookupCheckListValue,\\r\\n EntityNestedPropertyMeta,\\r\\n} from '../entity.model';\\r\\n\\r\\ninterface RenderedItem {\\r\\n lookupKey: string;\\r\\n /** Humanized lookup key for display. */\\r\\n lookupLabel: string;\\r\\n /** One entity per captured property, rendered by its catalog view type. */\\r\\n props: EntityData[];\\r\\n}\\r\\n\\r\\n/**\\r\\n * Nested props render inside the entry card's own grid, so they take the label\\r\\n * treatment and leave sizing to the grid.\\r\\n */\\r\\nconst NESTED_PROP_CONFIG: EntityConfiguration = {\\r\\n labelPosition: 'top',\\r\\n hideLabel: false,\\r\\n};\\r\\n\\r\\n/**\\r\\n * Derive a readable label from a raw lookup key. The stored checklist value\\r\\n * only carries the key of the selected lookup item (e.g. `Open_test`) and the\\r\\n * response resolves no display for it, so this strips separators and\\r\\n * title-cases the key.\\r\\n */\\r\\nfunction humanizeKey(key: string): string {\\r\\n const words = key\\r\\n .replace(/[_-]+/g, ' ')\\r\\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\\r\\n .trim();\\r\\n if (!words) return key;\\r\\n return words.charAt(0).toUpperCase() + words.slice(1);\\r\\n}\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-lookup-module-check-list',\\r\\n standalone: true,\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [EntityField, EntityValuePreview],\\r\\n templateUrl: './entity-lookup-module-check-list.html',\\r\\n})\\r\\nexport class EntityLookupModuleCheckList {\\r\\n readonly data = input.required<EntityData>();\\r\\n\\r\\n /**\\r\\n * Catalog metadata for the captured properties, keyed by property key. The\\r\\n * stored value carries keys only — this is what gives each nested prop its\\r\\n * label and view type.\\r\\n */\\r\\n private readonly metaByKey = computed(() => {\\r\\n const map = new Map<string, EntityNestedPropertyMeta>();\\r\\n for (const meta of this.data().nestedProperties ?? []) {\\r\\n map.set(meta.key, meta);\\r\\n }\\r\\n return map;\\r\\n });\\r\\n\\r\\n /**\\r\\n * Normalizes the stored value into a flat list of checklist entries.\\r\\n * Accepts both the rendered view model (`{ items: [...] }`) and the raw\\r\\n * stored array (`[{ lookupKey, props }]`); returns `[]` for anything else.\\r\\n */\\r\\n readonly items = computed<RenderedItem[]>(() => {\\r\\n const raw = this.data().value;\\r\\n const entries = this.extractEntries(raw);\\r\\n\\r\\n return entries\\r\\n .filter((entry) => entry && typeof entry === 'object')\\r\\n .map((entry) => {\\r\\n const record = entry as unknown as Record<string, unknown>;\\r\\n const props = record['props'] ?? record['Props'];\\r\\n const lookupKey = this.resolveLookupKey(entry);\\r\\n return {\\r\\n lookupKey,\\r\\n lookupLabel: humanizeKey(lookupKey),\\r\\n props: (Array.isArray(props) ? props : []).map((prop) =>\\r\\n this.toNestedEntity(prop),\\r\\n ),\\r\\n };\\r\\n });\\r\\n });\\r\\n\\r\\n readonly hasItems = computed(() => this.items().length > 0);\\r\\n\\r\\n readonly emptyLabel = displayOrPlaceholder(null);\\r\\n\\r\\n /**\\r\\n * Builds the entity for one captured property. Without catalog metadata the\\r\\n * key is all there is to show it with, so it degrades to a humanized label\\r\\n * and plain text.\\r\\n */\\r\\n private toNestedEntity(prop: unknown): EntityData {\\r\\n const propRecord = (prop ?? {}) as Record<string, unknown>;\\r\\n const key = String(propRecord['key'] ?? propRecord['Key'] ?? '');\\r\\n const meta = this.metaByKey().get(key);\\r\\n const value = propRecord['value'] ?? propRecord['Value'] ?? null;\\r\\n\\r\\n return {\\r\\n propertyId: meta?.id,\\r\\n key,\\r\\n normalizedKey: meta?.normalizedKey,\\r\\n name: meta?.label ?? humanizeKey(key),\\r\\n value: (value ?? '') as EntityData['value'],\\r\\n viewType: meta?.viewType ?? 'Text',\\r\\n propertyConfiguration: meta?.configuration,\\r\\n configuration: NESTED_PROP_CONFIG,\\r\\n order: meta?.order,\\r\\n };\\r\\n }\\r\\n\\r\\n private extractEntries(raw: unknown): EntityLookupCheckListItem[] {\\r\\n if (Array.isArray(raw)) {\\r\\n return raw as EntityLookupCheckListItem[];\\r\\n }\\r\\n\\r\\n const wrapped = (raw as EntityLookupCheckListValue | null)?.items;\\r\\n if (Array.isArray(wrapped)) {\\r\\n return wrapped;\\r\\n }\\r\\n\\r\\n if (typeof raw === 'string' && raw.trim()) {\\r\\n try {\\r\\n return this.extractEntries(JSON.parse(raw));\\r\\n } catch {\\r\\n return [];\\r\\n }\\r\\n }\\r\\n\\r\\n return [];\\r\\n }\\r\\n\\r\\n private resolveLookupKey(entry: EntityLookupCheckListItem): string {\\r\\n const record = entry as unknown as Record<string, unknown>;\\r\\n const key = entry.lookupKey ?? record['Lookupkey'] ?? record['lookupkey'];\\r\\n return typeof key === 'string' ? key : '';\\r\\n }\\r\\n}\\r\\n\",\"<mt-entity-field\\r\\n [label]=\\\"data().name ?? ''\\\"\\r\\n [configuration]=\\\"data()?.configuration\\\"\\r\\n gap=\\\"normal\\\"\\r\\n>\\r\\n @if (hasItems()) {\\r\\n <div class=\\\"flex flex-col gap-2\\\">\\r\\n @for (item of items(); track $index) {\\r\\n <div\\r\\n class=\\\"rounded-lg border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-primary-50 px-2 py-1 text-xs font-semibold text-primary-700\\\"\\r\\n >\\r\\n {{ item.lookupLabel || emptyLabel }}\\r\\n </span>\\r\\n @if (item.props.length) {\\r\\n <div class=\\\"mt-2 grid grid-cols-1 gap-x-4 gap-y-3 sm:grid-cols-2\\\">\\r\\n @for (prop of item.props; track prop.key) {\\r\\n <div class=\\\"min-w-0 overflow-hidden\\\">\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"prop\\\"\\r\\n attachmentShape=\\\"compact\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n } @else {\\r\\n <span\\r\\n class=\\\"inline-flex w-fit items-center rounded-md bg-gray-100 px-3 py-2 text-xs font-semibold text-gray-500\\\"\\r\\n >\\r\\n {{ emptyLabel }}\\r\\n </span>\\r\\n }\\r\\n</mt-entity-field>\\r\\n\",\"import type {\\r\\n EntityData,\\r\\n EntityLeafDetailsConfig,\\r\\n LeafDetailsCatalogConfiguration,\\r\\n LeafDetailsCatalogLevelValue,\\r\\n LeafDetailsCatalogStatusValue,\\r\\n LeafDetailsEntityCollectionValue,\\r\\n LeafDetailsEntityValue,\\r\\n LeafDetailsRuntimeChildSchema,\\r\\n LeafDetailsRuntimeStatusCount,\\r\\n LeafDetailsRuntimeStatusDetails,\\r\\n LeafDetailsRuntimeValue,\\r\\n LeafDetailsStatusSummary,\\r\\n} from './entity.model';\\r\\n\\r\\nexport const LEAF_DETAILS_KEY_SEPARATOR = '::leaflevel::';\\r\\n\\r\\nfunction isLeafDetailsStatusSummary(\\r\\n value: unknown,\\r\\n): value is LeafDetailsStatusSummary {\\r\\n return (\\r\\n !!value &&\\r\\n typeof value === 'object' &&\\r\\n 'key' in value &&\\r\\n 'display' in value &&\\r\\n 'count' in value\\r\\n );\\r\\n}\\r\\n\\r\\nfunction isLeafDetailsCatalogStatusValue(\\r\\n value: unknown,\\r\\n): value is LeafDetailsCatalogStatusValue {\\r\\n return (\\r\\n !!value && typeof value === 'object' && 'key' in value && 'display' in value\\r\\n );\\r\\n}\\r\\n\\r\\nfunction isLeafDetailsCatalogLevelValue(\\r\\n value: unknown,\\r\\n): value is LeafDetailsCatalogLevelValue {\\r\\n return (\\r\\n !!value &&\\r\\n typeof value === 'object' &&\\r\\n 'levelId' in value &&\\r\\n 'levelName' in value &&\\r\\n 'levelIcon' in value &&\\r\\n 'statuses' in value &&\\r\\n Array.isArray(value.statuses) &&\\r\\n value.statuses.every(isLeafDetailsCatalogStatusValue)\\r\\n );\\r\\n}\\r\\n\\r\\nfunction isLeafDetailsRuntimeStatusDetails(\\r\\n value: unknown,\\r\\n): value is LeafDetailsRuntimeStatusDetails {\\r\\n return (\\r\\n !!value && typeof value === 'object' && 'key' in value && 'display' in value\\r\\n );\\r\\n}\\r\\n\\r\\nfunction isLeafDetailsRuntimeStatusCount(\\r\\n value: unknown,\\r\\n): value is LeafDetailsRuntimeStatusCount {\\r\\n return (\\r\\n !!value &&\\r\\n typeof value === 'object' &&\\r\\n 'details' in value &&\\r\\n isLeafDetailsRuntimeStatusDetails(value.details) &&\\r\\n 'count' in value\\r\\n );\\r\\n}\\r\\n\\r\\nfunction isLeafDetailsRuntimeChildSchema(\\r\\n value: unknown,\\r\\n): value is LeafDetailsRuntimeChildSchema {\\r\\n return (\\r\\n !!value &&\\r\\n typeof value === 'object' &&\\r\\n 'levelId' in value &&\\r\\n 'levelName' in value &&\\r\\n 'levelIcon' in value &&\\r\\n 'statuses' in value &&\\r\\n Array.isArray(value.statuses) &&\\r\\n value.statuses.every(isLeafDetailsRuntimeStatusCount)\\r\\n );\\r\\n}\\r\\n\\r\\nexport function isLeafDetailsValue(\\r\\n value: unknown,\\r\\n): value is LeafDetailsEntityValue {\\r\\n return (\\r\\n !!value &&\\r\\n typeof value === 'object' &&\\r\\n !Array.isArray(value) &&\\r\\n 'levelId' in value &&\\r\\n 'statuses' in value &&\\r\\n Array.isArray(value.statuses) &&\\r\\n value.statuses.every(isLeafDetailsStatusSummary)\\r\\n );\\r\\n}\\r\\n\\r\\nexport function isLeafDetailsCollectionValue(\\r\\n value: unknown,\\r\\n): value is LeafDetailsEntityCollectionValue {\\r\\n return Array.isArray(value) && value.every(isLeafDetailsValue);\\r\\n}\\r\\n\\r\\nexport function isLeafDetailsCatalogConfiguration(\\r\\n value: unknown,\\r\\n): value is LeafDetailsCatalogConfiguration {\\r\\n return Array.isArray(value) && value.every(isLeafDetailsCatalogLevelValue);\\r\\n}\\r\\n\\r\\nexport function isLeafDetailsRuntimeValue(\\r\\n value: unknown,\\r\\n): value is LeafDetailsRuntimeValue {\\r\\n return (\\r\\n !!value &&\\r\\n typeof value === 'object' &&\\r\\n !Array.isArray(value) &&\\r\\n 'childSchemas' in value &&\\r\\n Array.isArray(value.childSchemas) &&\\r\\n value.childSchemas.every(isLeafDetailsRuntimeChildSchema)\\r\\n );\\r\\n}\\r\\n\\r\\nexport function isLeafDetailsSyntheticKey(key?: string | null): boolean {\\r\\n return key?.includes(LEAF_DETAILS_KEY_SEPARATOR) ?? false;\\r\\n}\\r\\n\\r\\nfunction toLeafDetailsStatusSummary(\\r\\n status: LeafDetailsRuntimeStatusCount,\\r\\n): LeafDetailsStatusSummary {\\r\\n return {\\r\\n key: status.details.key,\\r\\n display: status.details.display,\\r\\n color: status.details.color ?? null,\\r\\n count: status.count,\\r\\n };\\r\\n}\\r\\n\\r\\nfunction normalizeLeafDetailsCollection(\\r\\n value: unknown,\\r\\n): LeafDetailsEntityCollectionValue {\\r\\n if (isLeafDetailsCollectionValue(value)) {\\r\\n return value;\\r\\n }\\r\\n\\r\\n if (isLeafDetailsValue(value)) {\\r\\n return [value];\\r\\n }\\r\\n\\r\\n if (isLeafDetailsRuntimeValue(value)) {\\r\\n return value.childSchemas.map((schema) => ({\\r\\n levelId: schema.levelId,\\r\\n levelName: schema.levelName,\\r\\n levelIcon: schema.levelIcon,\\r\\n statuses: schema.statuses.map(toLeafDetailsStatusSummary),\\r\\n }));\\r\\n }\\r\\n\\r\\n if (typeof value === 'string' && value.trim().length > 0) {\\r\\n try {\\r\\n return normalizeLeafDetailsCollection(JSON.parse(value));\\r\\n } catch {\\r\\n return [];\\r\\n }\\r\\n }\\r\\n\\r\\n return [];\\r\\n}\\r\\n\\r\\nfunction normalizeLeafDetailsCatalogConfiguration(\\r\\n value: unknown,\\r\\n): LeafDetailsEntityCollectionValue {\\r\\n if (isLeafDetailsCatalogConfiguration(value)) {\\r\\n return value.map((level) => ({\\r\\n levelId: level.levelId,\\r\\n levelName: level.levelName,\\r\\n levelIcon: level.levelIcon,\\r\\n statuses: level.statuses.map((status) => ({\\r\\n key: status.key,\\r\\n display: status.display,\\r\\n color: status.color ?? null,\\r\\n count: 0,\\r\\n })),\\r\\n }));\\r\\n }\\r\\n\\r\\n if (typeof value === 'string' && value.trim().length > 0) {\\r\\n try {\\r\\n return normalizeLeafDetailsCatalogConfiguration(JSON.parse(value));\\r\\n } catch {\\r\\n return [];\\r\\n }\\r\\n }\\r\\n\\r\\n return [];\\r\\n}\\r\\n\\r\\nexport function expandLeafDetailsEntity(entity: EntityData): EntityData[] {\\r\\n if (entity.viewType !== 'LeafDetails') {\\r\\n return [entity];\\r\\n }\\r\\n\\r\\n if (\\r\\n isLeafDetailsSyntheticKey(entity.key) &&\\r\\n isLeafDetailsValue(entity.value)\\r\\n ) {\\r\\n return [entity];\\r\\n }\\r\\n\\r\\n const configuration = entity.configuration as\\r\\n | EntityLeafDetailsConfig\\r\\n | undefined;\\r\\n const levels = normalizeLeafDetailsCollection(entity.value);\\r\\n const fallbackLevels = levels.length\\r\\n ? levels\\r\\n : normalizeLeafDetailsCollection(entity.rawValue);\\r\\n const resolvedLevels = fallbackLevels.length\\r\\n ? fallbackLevels\\r\\n : normalizeLeafDetailsCatalogConfiguration(entity.propertyConfiguration);\\r\\n\\r\\n if (resolvedLevels.length === 0) {\\r\\n return [entity];\\r\\n }\\r\\n\\r\\n const expanded = resolvedLevels.flatMap((level) => {\\r\\n const levelConfig = configuration?.leafLevels?.[String(level.levelId)];\\r\\n if (configuration?.leafLevels && !levelConfig) {\\r\\n return [];\\r\\n }\\r\\n\\r\\n const selectedStatuses = levelConfig?.selectedStatuses?.length\\r\\n ? new Set(levelConfig.selectedStatuses)\\r\\n : null;\\r\\n\\r\\n return [\\r\\n {\\r\\n ...entity,\\r\\n key: entity.key\\r\\n ? `${entity.key}${LEAF_DETAILS_KEY_SEPARATOR}${level.levelId}`\\r\\n : entity.key,\\r\\n name: level.levelName,\\r\\n value: {\\r\\n ...level,\\r\\n statuses: selectedStatuses\\r\\n ? level.statuses.filter((status) =>\\r\\n selectedStatuses.has(status.key),\\r\\n )\\r\\n : level.statuses,\\r\\n },\\r\\n order: levelConfig?.order ?? entity.order,\\r\\n configuration: {\\r\\n ...configuration,\\r\\n size: levelConfig?.size ?? configuration?.size,\\r\\n },\\r\\n } satisfies EntityData,\\r\\n ];\\r\\n });\\r\\n\\r\\n return expanded.length > 0 ? expanded : [entity];\\r\\n}\\r\\n\\r\\nexport function buildDisplayEntities(entities: EntityData[]): EntityData[] {\\r\\n return entities\\r\\n .flatMap((entity) => expandLeafDetailsEntity(entity))\\r\\n .sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\\r\\n}\\r\\n\",\"import { ChangeDetectionStrategy, Component, input } from '@angular/core';\\r\\nimport { EntityData } from '../entity.model';\\r\\nimport { EntityLookupModuleCheckList } from '../entity-lookup-module-check-list/entity-lookup-module-check-list';\\r\\nimport { EntityValuePreview } from './entity-value-preview';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-preview-body',\\r\\n standalone: true,\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [EntityLookupModuleCheckList, EntityValuePreview],\\r\\n templateUrl: './entity-preview-body.html',\\r\\n host: {\\r\\n class: 'w-full',\\r\\n },\\r\\n})\\r\\nexport class EntityPreviewBody {\\r\\n readonly data = input.required<EntityData>();\\r\\n readonly attachmentShape = input<'default' | 'compact'>('default');\\r\\n}\\r\\n\",\"@if (data().viewType === \\\"LookupModuleCheckList\\\") {\\r\\n <mt-entity-lookup-module-check-list [data]=\\\"data()\\\" />\\r\\n} @else {\\r\\n <mt-entity-value-preview\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { EntityData } from '../../entity.model';\\r\\nimport {\\r\\n ComparisonValueSide,\\r\\n ValueComparison,\\r\\n} from '../../entity-comparison.model';\\r\\nimport { EntityPreviewBody } from '../../entity-preview/entity-preview-body';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-comparison-value',\\r\\n standalone: true,\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [EntityPreviewBody],\\r\\n templateUrl: './comparison-value.html',\\r\\n host: {\\r\\n class: 'block w-full',\\r\\n },\\r\\n})\\r\\nexport class ComparisonValue {\\r\\n readonly data = input.required<EntityData>();\\r\\n\\r\\n readonly comparison = computed<ValueComparison | null>(() => {\\r\\n const c = this.data().comparison;\\r\\n return c?.kind === 'Value' ? c : null;\\r\\n });\\r\\n\\r\\n readonly oldEntity = computed<EntityData | null>(() =>\\r\\n this.buildSide(this.comparison()?.oldValue),\\r\\n );\\r\\n\\r\\n readonly newEntity = computed<EntityData | null>(() =>\\r\\n this.buildSide(this.comparison()?.newValue),\\r\\n );\\r\\n\\r\\n private buildSide(side: ComparisonValueSide | undefined): EntityData | null {\\r\\n if (!side) return null;\\r\\n const base = this.data();\\r\\n return {\\r\\n ...base,\\r\\n rawValue:\\r\\n side.raw === null || side.raw === undefined\\r\\n ? undefined\\r\\n : String(side.raw),\\r\\n value: (side.display ?? side.value ?? '') as EntityData['value'],\\r\\n comparison: undefined,\\r\\n };\\r\\n }\\r\\n}\\r\\n\",\"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 items-stretch gap-3\\\">\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-muted-color\\\"\\r\\n >Before</span\\r\\n >\\r\\n @if (oldEntity(); as old) {\\r\\n <mt-entity-preview-body [data]=\\\"old\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n <div class=\\\"flex shrink-0 items-center text-muted-color\\\" aria-hidden=\\\"true\\\">\\r\\n &rarr;\\r\\n </div>\\r\\n <div\\r\\n class=\\\"flex min-w-0 flex-1 flex-col gap-1 rounded-md border border-primary-200 bg-primary-50 px-3 py-2\\\"\\r\\n >\\r\\n <span class=\\\"text-xs font-medium uppercase tracking-wide text-primary-600\\\"\\r\\n >After</span\\r\\n >\\r\\n @if (newEntity(); as next) {\\r\\n <mt-entity-preview-body [data]=\\\"next\\\" />\\r\\n } @else {\\r\\n <span class=\\\"text-sm text-muted-color\\\">_</span>\\r\\n }\\r\\n </div>\\r\\n </div>\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n inject,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { TranslocoService } from '@jsverse/transloco';\\r\\nimport { EntityData } from '../../entity.model';\\r\\nimport {\\r\\n EntityComparisonOperation,\\r\\n EntityListComparison,\\r\\n EntityListComparisonRow,\\r\\n} from '../../entity-comparison.model';\\r\\nimport { displayOrPlaceholder } from '../../entity-display.utils';\\r\\n\\r\\ninterface OperationBadge {\\r\\n label: string;\\r\\n classes: string;\\r\\n}\\r\\n\\r\\nconst OPERATION_BADGE_KEYS: Record<\\r\\n EntityComparisonOperation,\\r\\n { key: string; classes: string }\\r\\n> = {\\r\\n CreateRecord: {\\r\\n key: 'components.comparisonEntities.added',\\r\\n classes:\\r\\n 'bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-200',\\r\\n },\\r\\n UpdateRecord: {\\r\\n key: 'components.comparisonEntities.updated',\\r\\n classes: 'bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-200',\\r\\n },\\r\\n DeleteRecord: {\\r\\n key: 'components.comparisonEntities.removed',\\r\\n classes: 'bg-rose-50 text-rose-700 ring-1 ring-inset ring-rose-200',\\r\\n },\\r\\n};\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-comparison-entity-list',\\r\\n standalone: true,\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [],\\r\\n templateUrl: './comparison-entity-list.html',\\r\\n host: {\\r\\n class: 'block w-full',\\r\\n },\\r\\n})\\r\\nexport class ComparisonEntityList {\\r\\n private readonly transloco = inject(TranslocoService);\\r\\n readonly data = input.required<EntityData>();\\r\\n\\r\\n readonly comparison = computed<EntityListComparison | null>(() => {\\r\\n const c = this.data().comparison;\\r\\n return c?.kind === 'EntityList' ? c : null;\\r\\n });\\r\\n\\r\\n readonly rows = computed<EntityListComparisonRow[]>(\\r\\n () => this.comparison()?.rows ?? [],\\r\\n );\\r\\n\\r\\n readonly targetModuleKey = computed<string>(\\r\\n () => this.comparison()?.targetModuleKey ?? '',\\r\\n );\\r\\n\\r\\n readonly label = computed<string>(() => this.data().name ?? '');\\r\\n\\r\\n badgeFor(op: EntityComparisonOperation): OperationBadge {\\r\\n const config = OPERATION_BADGE_KEYS[op];\\r\\n return {\\r\\n label: this.transloco.translate(config.key),\\r\\n classes: config.classes,\\r\\n };\\r\\n }\\r\\n\\r\\n displayField(value: unknown, display?: string | null): string {\\r\\n if (display && display.trim().length > 0) return display;\\r\\n return displayOrPlaceholder(value);\\r\\n }\\r\\n\\r\\n rowId(_i: number, row: EntityListComparisonRow): number | string {\\r\\n return row.entityId ?? _i;\\r\\n }\\r\\n\\r\\n oldField(\\r\\n row: EntityListComparisonRow,\\r\\n propertyKey: string,\\r\\n ): { value: unknown; display?: string | null } | undefined {\\r\\n return row.oldValues.find((v) => v.propertyKey === propertyKey);\\r\\n }\\r\\n}\\r\\n\",\"@if (comparison(); as cmp) {\\r\\n <div class=\\\"flex w-full min-w-0 flex-col gap-2\\\">\\r\\n @if (label()) {\\r\\n <div class=\\\"flex items-baseline justify-between\\\">\\r\\n <span class=\\\"text-sm font-medium text-color\\\">{{ label() }}</span>\\r\\n @if (targetModuleKey()) {\\r\\n <span class=\\\"text-xs text-muted-color\\\">{{ targetModuleKey() }}</span>\\r\\n }\\r\\n </div>\\r\\n }\\r\\n @if (rows().length === 0) {\\r\\n <div class=\\\"text-sm text-muted-color\\\">_</div>\\r\\n } @else {\\r\\n <ul class=\\\"flex flex-col gap-2\\\">\\r\\n @for (row of rows(); track rowId($index, row)) {\\r\\n <li\\r\\n class=\\\"flex flex-col gap-2 rounded-md border border-surface-200 bg-surface-50 px-3 py-2\\\"\\r\\n >\\r\\n <div class=\\\"flex items-center justify-between gap-2\\\">\\r\\n <span\\r\\n class=\\\"inline-flex items-center rounded px-2 py-0.5 text-xs font-medium\\\"\\r\\n [class]=\\\"badgeFor(row.operation).classes\\\"\\r\\n >\\r\\n {{ badgeFor(row.operation).label }}\\r\\n </span>\\r\\n <span class=\\\"text-xs text-muted-color\\\">#{{ row.entityId }}</span>\\r\\n </div>\\r\\n\\r\\n @switch (row.operation) {\\r\\n @case (\\\"CreateRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @case (\\\"DeleteRecord\\\") {\\r\\n <dl class=\\\"grid grid-cols-1 gap-1 sm:grid-cols-2\\\">\\r\\n @for (f of row.oldValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"truncate text-sm text-color line-through\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n @default {\\r\\n <dl class=\\\"flex flex-col gap-1\\\">\\r\\n @for (f of row.newValues; track f.propertyKey) {\\r\\n <div class=\\\"flex min-w-0 flex-col\\\">\\r\\n <dt class=\\\"text-xs text-muted-color\\\">{{ f.label }}</dt>\\r\\n <dd class=\\\"flex min-w-0 flex-wrap items-center gap-2\\\">\\r\\n <span\\r\\n class=\\\"max-w-[40%] truncate text-sm text-muted-color line-through\\\"\\r\\n >\\r\\n {{\\r\\n displayField(\\r\\n $any(oldField(row, f.propertyKey))?.value,\\r\\n $any(oldField(row, f.propertyKey))?.display\\r\\n )\\r\\n }}\\r\\n </span>\\r\\n <span class=\\\"text-muted-color\\\" aria-hidden=\\\"true\\\"\\r\\n >&rarr;</span\\r\\n >\\r\\n <span class=\\\"max-w-[40%] truncate text-sm text-color\\\">\\r\\n {{ displayField(f.value, f.display) }}\\r\\n </span>\\r\\n </dd>\\r\\n </div>\\r\\n }\\r\\n </dl>\\r\\n }\\r\\n }\\r\\n </li>\\r\\n }\\r\\n </ul>\\r\\n }\\r\\n </div>\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n input,\\r\\n} from '@angular/core';\\r\\nimport { EntityData } from '../entity.model';\\r\\nimport { EntityPreviewBody } from './entity-preview-body';\\r\\nimport { ComparisonValue } from '../comparison/comparison-value/comparison-value';\\r\\nimport { ComparisonEntityList } from '../comparison/comparison-entity-list/comparison-entity-list';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entity-preview',\\r\\n standalone: true,\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n imports: [EntityPreviewBody, ComparisonValue, ComparisonEntityList],\\r\\n templateUrl: './entity-preview.html',\\r\\n host: {\\r\\n class: 'w-full',\\r\\n },\\r\\n})\\r\\nexport class EntityPreview {\\r\\n readonly data = input.required<EntityData>();\\r\\n readonly attachmentShape = input<'default' | 'compact'>('default');\\r\\n\\r\\n readonly comparisonKind = computed<'Value' | 'EntityList' | null>(() => {\\r\\n const c = this.data().comparison;\\r\\n if (!c) return null;\\r\\n if (c.kind === 'Value') return 'Value';\\r\\n if (c.kind === 'EntityList') return 'EntityList';\\r\\n return null;\\r\\n });\\r\\n}\\r\\n\",\"@switch (comparisonKind()) {\\r\\n @case (\\\"Value\\\") {\\r\\n <mt-comparison-value [data]=\\\"data()\\\" />\\r\\n }\\r\\n @case (\\\"EntityList\\\") {\\r\\n <mt-comparison-entity-list [data]=\\\"data()\\\" />\\r\\n }\\r\\n @default {\\r\\n <mt-entity-preview-body\\r\\n [data]=\\\"data()\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n }\\r\\n}\\r\\n\",\"import {\\r\\n ChangeDetectionStrategy,\\r\\n Component,\\r\\n computed,\\r\\n DestroyRef,\\r\\n ElementRef,\\r\\n inject,\\r\\n input,\\r\\n NgZone,\\r\\n output,\\r\\n signal,\\r\\n} from '@angular/core';\\r\\nimport { NgTemplateOutlet } from '@angular/common';\\r\\nimport { toSignal } from '@angular/core/rxjs-interop';\\r\\nimport { TranslocoService } from '@jsverse/transloco';\\r\\nimport { EntityData, EntitySize } from '../entity.model';\\r\\nimport { buildDisplayEntities } from '../leaf-details-display.utils';\\r\\nimport {\\r\\n getEntitySectionTitle,\\r\\n groupEntitiesIntoSections,\\r\\n} from '../entity-sections.util';\\r\\nimport { EntityPreview } from '../entity-preview/entity-preview';\\r\\n\\r\\nexport interface EntityClickEvent {\\r\\n entity: EntityData;\\r\\n key: string;\\r\\n source: MouseEvent;\\r\\n}\\r\\n\\r\\nconst EMPTY_KEY_SET: ReadonlySet<string> = new Set();\\r\\n\\r\\n/**\\r\\n * Below this host width a field narrower than {@link MIN_NARROW_SPAN} cannot\\r\\n * hold its own value. Matches the container query in the stylesheet, which\\r\\n * handles the `stackOnNarrow` case the same way.\\r\\n */\\r\\nconst NARROW_HOST_WIDTH = 400;\\r\\n\\r\\n/**\\r\\n * The smallest share of the 24-column grid a field may take on a narrow host —\\r\\n * half the row.\\r\\n *\\r\\n * A card that opts out of the soft stack still laid its fields on 24 columns,\\r\\n * so a three-field row inside a ~350px card gave each field about 90px, and at\\r\\n * that width a budget rendered \\\"10,000 S…\\\" and a date \\\"01/07/2…\\\" — finding H-06\\r\\n * in its narrowest form, and the reviewer was explicit that a date must never\\r\\n * be truncated. Raising the floor to half the row is done here rather than in\\r\\n * CSS because the grid cannot be re-tracked safely: a field configured `span 24`\\r\\n * would spill into implicit columns and collapse the explicit ones to zero.\\r\\n */\\r\\nconst MIN_NARROW_SPAN: EntitySize = 12;\\r\\n\\r\\n/** Classes every entity slot carries, before its per-slot modifiers. */\\r\\nconst SLOT_BASE_CLASS =\\r\\n 'min-w-0 overflow-hidden flex items-center rounded transition-colors';\\r\\n\\r\\n/** Opt-in dashed frame (`configuration.showBorder`). */\\r\\nconst SLOT_BORDER_CLASS = 'border p-3 border-dashed border-gray-200 rounded-lg';\\r\\n\\r\\n/**\\r\\n * One entity's fully-resolved render inputs.\\r\\n *\\r\\n * Precomputing these is what keeps large grids cheap. The template used to call\\r\\n * `isClickable` / `isActive` / `getColSpan` roughly eight times per entity on\\r\\n * *every* change detection pass; in a client-list card grid (60 cards of ~50\\r\\n * entities) that was tens of thousands of calls per tick. A slot is now rebuilt\\r\\n * only when the entity list, the clickable/active key sets, or the tooltip\\r\\n * strings actually change.\\r\\n */\\r\\ninterface EntitySlot {\\r\\n entity: EntityData;\\r\\n trackKey: string;\\r\\n containerClass: string;\\r\\n colSpan: string;\\r\\n clickable: boolean;\\r\\n rowClickIgnore: 'true' | null;\\r\\n title: string | null;\\r\\n}\\r\\n\\r\\n/** A section box (or the leading bare run) with its slots already resolved. */\\r\\ninterface EntitySlotGroup {\\r\\n trackKey: string;\\r\\n boxed: boolean;\\r\\n title: string;\\r\\n slots: EntitySlot[];\\r\\n}\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entities-preview',\\r\\n changeDetection: ChangeDetectionStrategy.OnPush,\\r\\n standalone: true,\\r\\n imports: [EntityPreview, NgTemplateOutlet],\\r\\n templateUrl: './entities-preview.html',\\r\\n styleUrls: ['./entities-preview.css'],\\r\\n host: {\\r\\n class: 'block min-w-0 w-full',\\r\\n '[class.mt-entities-stack-narrow]': 'stackOnNarrow()',\\r\\n },\\r\\n})\\r\\nexport class EntitiesPreview {\\r\\n private readonly transloco = inject(TranslocoService);\\r\\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\\r\\n private readonly destroyRef = inject(DestroyRef);\\r\\n private readonly zone = inject(NgZone);\\r\\n /** Array of entity data to display */\\r\\n readonly entities = input.required<EntityData[]>();\\r\\n readonly attachmentShape = input<'default' | 'compact'>('default');\\r\\n\\r\\n /**\\r\\n * Soft \\\"stack every field full-width when the host is narrower than the\\r\\n * 24-column grid reads well\\\" behavior (the ≤400px container-query fallback,\\r\\n * default on). Set to `false` in wide-enough card layouts — e.g. client-list\\r\\n * cards (~350px) — so the per-entity `size` configuration is honored instead\\r\\n * of forcing every item to full width. A hard ≤280px stack always applies\\r\\n * regardless, so the 24-column gap floor can never overflow the host (#1081).\\r\\n */\\r\\n readonly stackOnNarrow = input(true);\\r\\n\\r\\n /**\\r\\n * Set of entity keys that should appear interactive (cursor pointer,\\r\\n * clicks emit). Pass `new Set([...])` from a computed signal in the host\\r\\n * for reactive enabling — when the host's set changes, Angular re-renders\\r\\n * via its normal change detection, no manual subscriptions required.\\r\\n *\\r\\n * Pass a *stable* reference: a host method that mints a fresh `Set` on every\\r\\n * call re-writes this input on every change detection pass and defeats the\\r\\n * slot memoization below.\\r\\n */\\r\\n readonly clickableKeys = input<ReadonlySet<string>>(EMPTY_KEY_SET);\\r\\n\\r\\n /**\\r\\n * Set of entity keys that should render with the \\\"active\\\" treatment\\r\\n * (e.g. currently the filter source). Same reactive pattern — and the same\\r\\n * stable-reference requirement — as `clickableKeys`.\\r\\n */\\r\\n readonly activeKeys = input<ReadonlySet<string>>(EMPTY_KEY_SET);\\r\\n\\r\\n /** Tooltip text shown on hover when an entity is clickable but not active. */\\r\\n readonly clickableTooltip = input<string>(\\r\\n this.transloco.translate('components.entitiesPreview.filterByThis'),\\r\\n );\\r\\n\\r\\n /** Tooltip text shown on hover when an entity is the current active filter. */\\r\\n readonly activeTooltip = input<string>(\\r\\n this.transloco.translate('components.entitiesPreview.clearFilter'),\\r\\n );\\r\\n\\r\\n /**\\r\\n * Emits when an individual entity slot is clicked. Only fires when the\\r\\n * entity's key is present in `clickableKeys`.\\r\\n */\\r\\n readonly entityClick = output<EntityClickEvent>();\\r\\n\\r\\n /**\\r\\n * The active language as a signal. Section headings are resolved per-language\\r\\n * in a `computed`, so under `OnPush` a plain `getActiveLang()` read would\\r\\n * freeze them at whatever language was active on first render.\\r\\n */\\r\\n private readonly activeLang = toSignal(this.transloco.langChanges$, {\\r\\n initialValue: this.transloco.getActiveLang(),\\r\\n });\\r\\n\\r\\n /** Entities expanded and sorted by order */\\r\\n readonly displayEntities = computed(() =>\\r\\n buildDisplayEntities(this.entities()),\\r\\n );\\r\\n\\r\\n /**\\r\\n * The display entities split into section groups. With no `Section` markers\\r\\n * this is a single `{ section: null }` group, so the bare grid renders\\r\\n * exactly as before.\\r\\n */\\r\\n readonly sectionGroups = computed(() =>\\r\\n groupEntitiesIntoSections(this.displayEntities()),\\r\\n );\\r\\n\\r\\n /**\\r\\n * The render model the template iterates. Split from `sectionGroups` on\\r\\n * purpose: grouping only re-runs when the entities themselves change, while\\r\\n * this cheap mapping re-runs when the key sets or tooltips change.\\r\\n */\\r\\n protected readonly slotGroups = computed<EntitySlotGroup[]>(() => {\\r\\n const clickableKeys = this.clickableKeys();\\r\\n const activeKeys = this.activeKeys();\\r\\n const clickableTooltip = this.clickableTooltip();\\r\\n const activeTooltip = this.activeTooltip();\\r\\n const lang = this.activeLang();\\r\\n const narrow = this.isNarrowHost();\\r\\n\\r\\n return this.sectionGroups().map((group, groupIndex) => ({\\r\\n trackKey: group.section?.key ?? `__group__${groupIndex}`,\\r\\n boxed: !!group.section,\\r\\n title: getEntitySectionTitle(group.section, lang),\\r\\n slots: group.entities.map((entity, entityIndex) => {\\r\\n const key = resolveEntityKey(entity);\\r\\n const clickable = key.length > 0 && clickableKeys.has(key);\\r\\n const active = clickable && activeKeys.has(key);\\r\\n\\r\\n return {\\r\\n entity,\\r\\n trackKey: entity.key ?? String(entity.order ?? entityIndex),\\r\\n containerClass: buildSlotClass(entity, clickable, active),\\r\\n colSpan: `span ${resolveSpan(entity, narrow)}`,\\r\\n clickable,\\r\\n rowClickIgnore: clickable ? ('true' as const) : null,\\r\\n title: clickable ? (active ? activeTooltip : clickableTooltip) : null,\\r\\n };\\r\\n }),\\r\\n }));\\r\\n });\\r\\n\\r\\n /**\\r\\n * Whether the host is too narrow for the 24-column grid to stay legible.\\r\\n *\\r\\n * Measured rather than assumed: this component is narrow because of the\\r\\n * column layout it sits in, not because of the viewport, so a media query\\r\\n * would answer the wrong question — the same reason the stylesheet uses a\\r\\n * container query.\\r\\n */\\r\\n private readonly hostWidth = signal(Number.POSITIVE_INFINITY);\\r\\n protected readonly isNarrowHost = computed(\\r\\n () => this.hostWidth() <= NARROW_HOST_WIDTH,\\r\\n );\\r\\n\\r\\n constructor() {\\r\\n if (typeof ResizeObserver === 'undefined') {\\r\\n return;\\r\\n }\\r\\n\\r\\n const element = this.elementRef.nativeElement;\\r\\n // `ResizeObserver` callbacks fire outside Angular's zone, so writing the\\r\\n // signal there marks this component dirty but schedules nothing to act on\\r\\n // it. Running the write inside the zone is what makes the re-render happen\\r\\n // (and is a no-op passthrough in a zoneless host).\\r\\n const observer = new ResizeObserver((entries) => {\\r\\n const width = entries[0]?.contentRect.width;\\r\\n if (typeof width === 'number' && width > 0) {\\r\\n this.zone.run(() => this.hostWidth.set(width));\\r\\n }\\r\\n });\\r\\n observer.observe(element);\\r\\n this.destroyRef.onDestroy(() => observer.disconnect());\\r\\n }\\r\\n\\r\\n protected onSlotClick(source: MouseEvent, slot: EntitySlot): void {\\r\\n if (!slot.clickable) return;\\r\\n source.stopPropagation();\\r\\n this.entityClick.emit({\\r\\n entity: slot.entity,\\r\\n key: resolveEntityKey(slot.entity),\\r\\n source,\\r\\n });\\r\\n }\\r\\n}\\r\\n\\r\\n/**\\r\\n * The column span a field renders at: its configured size, floored to half the\\r\\n * row once the host is too narrow for that size to hold the value.\\r\\n */\\r\\nfunction resolveSpan(entity: EntityData, narrow: boolean): EntitySize {\\r\\n const size = (entity.configuration?.size ?? 8) as EntitySize;\\r\\n return narrow && size < MIN_NARROW_SPAN ? MIN_NARROW_SPAN : size;\\r\\n}\\r\\n\\r\\n/** Stable key resolution shared with the host — must agree on order. */\\r\\nfunction resolveEntityKey(entity: EntityData): string {\\r\\n return entity.key || entity.normalizedKey || entity.name || '';\\r\\n}\\r\\n\\r\\nfunction buildSlotClass(\\r\\n entity: EntityData,\\r\\n clickable: boolean,\\r\\n active: boolean,\\r\\n): string {\\r\\n let result = SLOT_BASE_CLASS;\\r\\n if (entity.configuration?.showBorder) result += ` ${SLOT_BORDER_CLASS}`;\\r\\n if (clickable) {\\r\\n result += active ? ' mt-entity-filter-active' : ' mt-entity-filterable';\\r\\n }\\r\\n return result;\\r\\n}\\r\\n\",\"<div class=\\\"flex flex-col gap-4\\\">\\r\\n @for (group of slotGroups(); track group.trackKey) {\\r\\n @if (group.boxed) {\\r\\n <!-- Titled section box (matches the client-form section view) -->\\r\\n <div\\r\\n class=\\\"flex flex-col gap-0 overflow-hidden rounded-md border border-surface-200 bg-surface-0\\\"\\r\\n >\\r\\n @if (group.title) {\\r\\n <h3\\r\\n class=\\\"m-0 border-b border-surface-200 bg-surface-50 px-4 py-3 text-lg font-semibold text-color\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ group.title }}\\r\\n </h3>\\r\\n }\\r\\n <div class=\\\"p-4\\\">\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n </div>\\r\\n </div>\\r\\n } @else {\\r\\n <ng-container\\r\\n [ngTemplateOutlet]=\\\"entityGrid\\\"\\r\\n [ngTemplateOutletContext]=\\\"{ $implicit: group.slots }\\\"\\r\\n />\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\\r\\n<!--\\r\\n Every binding here reads a value the component already resolved into the slot\\r\\n (see `EntitiesPreview.slotGroups`). Keep it that way: this template runs once\\r\\n per entity per change detection pass, and a card grid renders thousands of\\r\\n them, so a method call or a fresh object literal in this block is measurably\\r\\n expensive.\\r\\n-->\\r\\n<ng-template #entityGrid let-slots>\\r\\n <div class=\\\"mt-entities-grid grid grid-cols-24 gap-x-3 gap-y-5\\\">\\r\\n @for (slot of slots; track slot.trackKey) {\\r\\n <div\\r\\n [class]=\\\"slot.containerClass\\\"\\r\\n [attr.data-row-click-ignore]=\\\"slot.rowClickIgnore\\\"\\r\\n [attr.title]=\\\"slot.title\\\"\\r\\n [style.grid-column]=\\\"slot.colSpan\\\"\\r\\n (click)=\\\"onSlotClick($event, slot)\\\"\\r\\n >\\r\\n <mt-entity-preview\\r\\n [data]=\\\"slot.entity\\\"\\r\\n [attachmentShape]=\\\"attachmentShape()\\\"\\r\\n />\\r\\n </div>\\r\\n }\\r\\n </div>\\r\\n</ng-template>\\r\\n\",\"import {\\r\\n Directive,\\r\\n ElementRef,\\r\\n inject,\\r\\n NgZone,\\r\\n output,\\r\\n signal,\\r\\n} from '@angular/core';\\r\\nimport { DOCUMENT } from '@angular/common';\\r\\nimport { EntityData, EntityResizeEvent, EntitySize } from '../entity.model';\\r\\n\\r\\n/**\\r\\n * Base class that encapsulates all entity resize-via-drag logic.\\r\\n *\\r\\n * Extend this directive in any component that needs column-resize behaviour\\r\\n * on a 24-column CSS grid. The subclass must:\\r\\n * - Provide a `model.required<EntityData[]>()` (or equivalent) for the\\r\\n * entity list so `updateEntitySize()` can be called after resize.\\r\\n * - Contain a `.grid` element (or override `getGridElement()`).\\r\\n *\\r\\n * Resize flow:\\r\\n * 1. `onResizeStart(event, entity)` — called from a mousedown on the handle\\r\\n * 2. mousemove → snaps to nearest column, updates `resizePreviewSize`\\r\\n * 3. mouseup → emits `entityResized` with previous & new size\\r\\n */\\r\\n@Directive()\\r\\nexport abstract class EntitiesResizeBase {\\r\\n protected readonly elRef = inject(ElementRef);\\r\\n protected readonly zone = inject(NgZone);\\r\\n protected readonly doc = inject(DOCUMENT);\\r\\n\\r\\n /** Emits when an entity is resized via the drag handle */\\r\\n readonly entityResized = output<EntityResizeEvent>();\\r\\n\\r\\n // ── Resize state ──\\r\\n\\r\\n /** The entity currently being resized (null when idle) */\\r\\n readonly resizingEntity = signal<EntityData | null>(null);\\r\\n\\r\\n /** Live preview size while dragging */\\r\\n readonly resizePreviewSize = signal<EntitySize | null>(null);\\r\\n\\r\\n /** Bound listeners kept for cleanup */\\r\\n private _onMouseMove: ((e: MouseEvent) => void) | null = null;\\r\\n private _onMouseUp: ((e: MouseEvent) => void) | null = null;\\r\\n\\r\\n // ── Public API ──\\r\\n\\r\\n /**\\r\\n * Returns the grid element used to compute column widths.\\r\\n * Override if the grid selector differs.\\r\\n */\\r\\n protected getGridElement(): HTMLElement | null {\\r\\n return this.elRef.nativeElement.querySelector('.grid');\\r\\n }\\r\\n\\r\\n /**\\r\\n * Returns the grid-column span string for a given entity.\\r\\n * While resizing the active entity, returns the preview size.\\r\\n */\\r\\n getResizeColSpan(entity: EntityData): string {\\r\\n if (this.resizingEntity() === entity && this.resizePreviewSize() !== null) {\\r\\n return `span ${this.resizePreviewSize()}`;\\r\\n }\\r\\n const size: EntitySize = entity.configuration?.size ?? 8;\\r\\n return `span ${size}`;\\r\\n }\\r\\n\\r\\n /** Starts a resize operation from the right-edge handle */\\r\\n onResizeStart(event: MouseEvent, entity: EntityData): void {\\r\\n // Prevent the drag-drop from starting\\r\\n event.preventDefault();\\r\\n event.stopPropagation();\\r\\n\\r\\n const gridEl = this.getGridElement();\\r\\n if (!gridEl) return;\\r\\n\\r\\n const gridRect = gridEl.getBoundingClientRect();\\r\\n const gridWidth = gridRect.width;\\r\\n const columnWidth = gridWidth / 24;\\r\\n\\r\\n const previousSize: EntitySize = entity.configuration?.size ?? 8;\\r\\n\\r\\n // Left edge of the entity cell\\r\\n const cellEl = (event.target as HTMLElement).closest(\\r\\n '.entity-cell',\\r\\n ) as HTMLElement | null;\\r\\n if (!cellEl) return;\\r\\n const cellRect = cellEl.getBoundingClientRect();\\r\\n const isRtl =\\r\\n this.doc.documentElement.getAttribute('dir') === 'rtl' ||\\r\\n getComputedStyle(this.doc.documentElement).direction === 'rtl';\\r\\n\\r\\n this.resizingEntity.set(entity);\\r\\n this.resizePreviewSize.set(previousSize);\\r\\n\\r\\n // Run mouse listeners outside Angular zone for performance\\r\\n this.zone.runOutsideAngular(() => {\\r\\n this._onMouseMove = (e: MouseEvent) => {\\r\\n // In RTL the logical end is the left edge; dragging left widens the cell\\r\\n const rawWidth = isRtl\\r\\n ? cellRect.right - e.clientX\\r\\n : e.clientX - cellRect.left;\\r\\n // Snap to nearest full column (min 1, max 12)\\r\\n let cols = Math.round(rawWidth / columnWidth);\\r\\n cols = Math.max(1, Math.min(24, cols)) as EntitySize;\\r\\n const current = this.resizePreviewSize();\\r\\n if (current !== cols) {\\r\\n this.zone.run(() => this.resizePreviewSize.set(cols as EntitySize));\\r\\n }\\r\\n };\\r\\n\\r\\n this._onMouseUp = () => {\\r\\n this._cleanupListeners();\\r\\n\\r\\n const newSize = this.resizePreviewSize() as EntitySize;\\r\\n this.resizingEntity.set(null);\\r\\n this.resizePreviewSize.set(null);\\r\\n\\r\\n if (newSize !== previousSize) {\\r\\n this.zone.run(() => {\\r\\n this.onResizeComplete(entity, previousSize, newSize);\\r\\n });\\r\\n }\\r\\n };\\r\\n\\r\\n this.doc.addEventListener('mousemove', this._onMouseMove);\\r\\n this.doc.addEventListener('mouseup', this._onMouseUp, { once: true });\\r\\n });\\r\\n }\\r\\n\\r\\n /**\\r\\n * Called when a resize operation completes with a changed size.\\r\\n * Subclasses should update the entity list and emit events here.\\r\\n */\\r\\n protected abstract onResizeComplete(\\r\\n entity: EntityData,\\r\\n previousSize: EntitySize,\\r\\n newSize: EntitySize,\\r\\n ): void;\\r\\n\\r\\n /** Removes global mouse listeners */\\r\\n private _cleanupListeners(): void {\\r\\n if (this._onMouseMove) {\\r\\n this.doc.removeEventListener('mousemove', this._onMouseMove);\\r\\n this._onMouseMove = null;\\r\\n }\\r\\n if (this._onMouseUp) {\\r\\n this.doc.removeEventListener('mouseup', this._onMouseUp);\\r\\n this._onMouseUp = null;\\r\\n }\\r\\n }\\r\\n}\\r\\n\",\"import { Component, computed, model, output } from '@angular/core';\\r\\nimport {\\r\\n CdkDrag,\\r\\n CdkDragDrop,\\r\\n CdkDragPlaceholder,\\r\\n CdkDropList,\\r\\n} from '@angular/cdk/drag-drop';\\r\\nimport { Icon } from '@masterteam/icons';\\r\\nimport { EntityData, EntitySize } from '../entity.model';\\r\\nimport {\\r\\n buildDisplayEntities,\\r\\n isLeafDetailsSyntheticKey,\\r\\n} from '../leaf-details-display.utils';\\r\\nimport { isEntitySection } from '../entity-sections.util';\\r\\nimport { EntityPreview } from '../entity-preview/entity-preview';\\r\\nimport { EntitiesResizeBase } from './entities-resize-base';\\r\\n\\r\\n@Component({\\r\\n selector: 'mt-entities-manage',\\r\\n standalone: true,\\r\\n imports: [EntityPreview, Icon, CdkDrag, CdkDropList, CdkDragPlaceholder],\\r\\n templateUrl: './entities-manage.html',\\r\\n styleUrl: './entities-manage.scss',\\r\\n})\\r\\nexport class EntitiesManage extends EntitiesResizeBase {\\r\\n /** Array of entity data – supports two-way binding to keep order in sync */\\r\\n readonly entities = model.required<EntityData[]>();\\r\\n\\r\\n /** Emits the reordered entities array after each drag-drop */\\r\\n readonly entitiesReordered = output<EntityData[]>();\\r\\n\\r\\n /** Emits when an entity cell is clicked (for opening edit drawer) */\\r\\n readonly entityClicked = output<EntityData>();\\r\\n\\r\\n /**\\r\\n * Emits when an item dragged from a *different* connected list (e.g. a sidebar\\r\\n * \\\"add section\\\" tool) is dropped onto this grid. `index` is the target slot;\\r\\n * `data` is the dropped `cdkDragData`. The host decides what to insert.\\r\\n */\\r\\n readonly externalItemDropped = output<{ index: number; data: unknown }>();\\r\\n\\r\\n /** Entities expanded and sorted by their configured order */\\r\\n readonly displayEntities = computed(() =>\\r\\n buildDisplayEntities(this.entities()),\\r\\n );\\r\\n\\r\\n /** Returns the grid-column span for a given entity size (1-24) */\\r\\n getColSpan(entity: EntityData): string {\\r\\n if (isEntitySection(entity)) return 'span 24';\\r\\n return this.getResizeColSpan(entity);\\r\\n }\\r\\n\\r\\n /** True when the entity is a full-width `Section` layout marker. */\\r\\n isSection(entity: EntityData): boolean {\\r\\n return isEntitySection(entity);\\r\\n }\\r\\n\\r\\n /** Handle drag-drop reorder */\\r\\n onDrop(event: CdkDragDrop<EntityData[]>): void {\\r\\n // Item dragged in from another connected list — let the host handle it.\\r\\n if (event.previousContainer !== event.container) {\\r\\n this.externalItemDropped.emit({\\r\\n index: event.currentIndex,\\r\\n data: event.item.data,\\r\\n });\\r\\n return;\\r\\n }\\r\\n\\r\\n if (event.previousIndex === event.currentIndex) return;\\r\\n\\r\\n const items = [...this.displayEntities()];\\r\\n const [moved] = items.splice(event.previousIndex, 1);\\r\\n items.splice(event.currentIndex, 0, moved);\\r\\n\\r\\n // Reassign order based on new positions\\r\\n const reordered = items.map((item, index) => ({\\r\\n ...item,\\r\\n order: index + 1,\\r\\n }));\\r\\n\\r\\n // Update the model (two-way binding)\\r\\n this.entities.set(reordered);\\r\\n\\r\\n // Emit the reordered list\\r\\n this.entitiesReordered.emit(reordered);\\r\\n }\\r\\n\\r\\n // ── Resize completion (from EntitiesResizeBase) ──\\r\\n\\r\\n protected override onResizeComplete(\\r\\n entity: EntityData,\\r\\n previousSize: EntitySize,\\r\\n newSize: EntitySize,\\r\\n ): void {\\r\\n const currentEntities = this.entities();\\r\\n const sourceEntities = currentEntities.some((e) => e === entity)\\r\\n ? currentEntities\\r\\n : this.displayEntities();\\r\\n const updated = sourceEntities.map((e) =>\\r\\n e === entity || (isLeafDetailsSyntheticKey(e.key) && e.key === entity.key)\\r\\n ? {\\r\\n ...e,\\r\\n configuration: {\\r\\n ...e.configuration,\\r\\n size: newSize,\\r\\n },\\r\\n }\\r\\n : e,\\r\\n );\\r\\n this.entities.set(updated);\\r\\n\\r\\n this.entityResized.emit({\\r\\n entity: {\\r\\n ...entity,\\r\\n configuration: { ...entity.configuration, size: newSize },\\r\\n },\\r\\n previousSize,\\r\\n newSize,\\r\\n });\\r\\n }\\r\\n}\\r\\n\",\"<div\\r\\n cdkDropList\\r\\n cdkDropListOrientation=\\\"mixed\\\"\\r\\n [cdkDropListData]=\\\"displayEntities()\\\"\\r\\n (cdkDropListDropped)=\\\"onDrop($event)\\\"\\r\\n class=\\\"grid grid-cols-24 gap-x-4 gap-y-6\\\"\\r\\n>\\r\\n @for (\\r\\n entity of displayEntities();\\r\\n track entity.key ?? entity.order ?? $index\\r\\n ) {\\r\\n @if (isSection(entity)) {\\r\\n <!-- Section marker: full-width, non-resizable header row -->\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell section-row group relative min-w-0 flex items-center gap-2 px-4 py-2.5 cursor-grab active:cursor-grabbing rounded-md border border-surface-200 bg-surface-50 transition-colors hover:bg-emphasis\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n >\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-11 bg-black/10 rounded-md\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <span\\r\\n class=\\\"flex-1 min-w-0 truncate text-base font-semibold\\\"\\r\\n dir=\\\"auto\\\"\\r\\n >\\r\\n {{ entity.name }}\\r\\n </span>\\r\\n <mt-icon\\r\\n icon=\\\"editor.pencil-01\\\"\\r\\n class=\\\"shrink-0 opacity-0 transition-opacity group-hover:opacity-60\\\"\\r\\n />\\r\\n </div>\\r\\n } @else {\\r\\n <div\\r\\n cdkDrag\\r\\n [cdkDragData]=\\\"entity\\\"\\r\\n class=\\\"entity-cell group relative min-w-0 flex items-center p-3 cursor-grab active:cursor-grabbing rounded-lg transition-colors bg-surface-100/60\\\"\\r\\n [class.border]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-dashed]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.border-gray-300]=\\\"entity.configuration?.showBorder\\\"\\r\\n [class.resizing]=\\\"resizingEntity() === entity\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n >\\r\\n <!-- Drag placeholder -->\\r\\n <div\\r\\n *cdkDragPlaceholder\\r\\n class=\\\"h-full min-h-12 bg-black/10 rounded-xl\\\"\\r\\n [style.grid-column]=\\\"getColSpan(entity)\\\"\\r\\n ></div>\\r\\n\\r\\n <mt-entity-preview\\r\\n [data]=\\\"entity\\\"\\r\\n class=\\\"flex-1 min-w-0 cursor-pointer\\\"\\r\\n (click)=\\\"entityClicked.emit(entity)\\\"\\r\\n />\\r\\n\\r\\n <!-- Resize handle (right edge) -->\\r\\n <div\\r\\n class=\\\"resize-handle\\\"\\r\\n (mousedown)=\\\"onResizeStart($event, entity)\\\"\\r\\n (click)=\\\"$event.stopPropagation()\\\"\\r\\n >\\r\\n <div class=\\\"resize-handle-bar\\\"></div>\\r\\n </div>\\r\\n </div>\\r\\n }\\r\\n }\\r\\n</div>\\r\\n\",\"/**\\n * Generated bundle index. Do not edit.\\n */\\n\\nexport * from './public-api';\\n\"],\"names\":[\"i1\"],\"mappings\":\";;;;;;;;;;;;;;;;;;;;;AAEO,MAAM,8BAA8B,GAAG,GAAG;AAE3C,SAAU,cAAc,CAAC,KAAc,EAAA;IAC3C,IA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