create-basicjs 0.1.3 → 0.1.5

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 (559) hide show
  1. package/README.md +2 -2
  2. package/bin/create-basicjs.js +31 -4
  3. package/bin/verify-package.js +1 -1
  4. package/package.json +2 -2
  5. package/payload/starter/AGENTS.md +11 -6
  6. package/payload/starter/README.md +1 -1
  7. package/payload/starter/_basic/VERSION +1 -1
  8. package/payload/starter/_basic/assets/cards/almond-blossom.png +0 -0
  9. package/payload/starter/_basic/assets/cards/blackberry.png +0 -0
  10. package/payload/starter/_basic/assets/cards/borage.png +0 -0
  11. package/payload/starter/_basic/assets/cards/chamomile.png +0 -0
  12. package/payload/starter/_basic/assets/cards/dill.png +0 -0
  13. package/payload/starter/_basic/assets/cards/eucalyptus.png +0 -0
  14. package/payload/starter/_basic/assets/cards/fennel.png +0 -0
  15. package/payload/starter/_basic/assets/cards/fig.png +0 -0
  16. package/payload/starter/_basic/assets/cards/juniper.png +0 -0
  17. package/payload/starter/_basic/assets/cards/lavender.png +0 -0
  18. package/payload/starter/_basic/assets/cards/lemon.png +0 -0
  19. package/payload/starter/_basic/assets/cards/olives.png +0 -0
  20. package/payload/starter/_basic/assets/cards/oregano.png +0 -0
  21. package/payload/starter/_basic/assets/cards/pepper.png +0 -0
  22. package/payload/starter/_basic/assets/cards/physalis.png +0 -0
  23. package/payload/starter/_basic/assets/cards/pomegranate.png +0 -0
  24. package/payload/starter/_basic/assets/cards/poppy.png +0 -0
  25. package/payload/starter/_basic/assets/cards/rosehip.png +0 -0
  26. package/payload/starter/_basic/assets/cards/saffron.png +0 -0
  27. package/payload/starter/_basic/assets/categories/cappuccino.png +0 -0
  28. package/payload/starter/_basic/assets/categories/chocolate-milk.png +0 -0
  29. package/payload/starter/_basic/assets/categories/coffee.png +0 -0
  30. package/payload/starter/_basic/assets/categories/frappe.png +0 -0
  31. package/payload/starter/_basic/assets/categories/iced-caffee.png +0 -0
  32. package/payload/starter/_basic/assets/categories/milkshake.png +0 -0
  33. package/payload/starter/_basic/assets/categories/orange-juice.png +0 -0
  34. package/payload/starter/_basic/assets/categories/tea.png +0 -0
  35. package/payload/starter/_basic/assets/fruids/brokoli.png +0 -0
  36. package/payload/starter/_basic/assets/fruids/cilek.png +0 -0
  37. package/payload/starter/_basic/assets/fruids/domates.png +0 -0
  38. package/payload/starter/_basic/assets/fruids/elma.png +0 -0
  39. package/payload/starter/_basic/assets/fruids/havuc.png +0 -0
  40. package/payload/starter/_basic/assets/fruids/karpuz.png +0 -0
  41. package/payload/starter/_basic/assets/fruids/limon.png +0 -0
  42. package/payload/starter/_basic/assets/fruids/muz.png +0 -0
  43. package/payload/starter/_basic/assets/fruids/nar.png +0 -0
  44. package/payload/starter/_basic/assets/fruids/patlican.png +0 -0
  45. package/payload/starter/_basic/assets/fruids/yabanmersini.png +0 -0
  46. package/payload/starter/_basic/assets/fruids/yesilbiber.png +0 -0
  47. package/payload/starter/_basic/basic/LICENSE +1 -1
  48. package/payload/starter/_basic/basic/basic.css +3 -6
  49. package/payload/starter/_basic/basic/basic.js +154 -60
  50. package/payload/starter/_basic/basic/basic.min.js +19 -6
  51. package/payload/starter/_basic/basic/scroll-bar.js +4 -2
  52. package/payload/starter/_basic/basic/scroll-bar.min.js +1 -0
  53. package/payload/starter/_basic/comp/accordion.js +659 -0
  54. package/payload/starter/_basic/comp/action-button.js +22 -23
  55. package/payload/starter/_basic/comp/action-tab-bar.js +8 -8
  56. package/payload/starter/_basic/comp/app-bar.js +12 -11
  57. package/payload/starter/_basic/comp/{badge-v2.js → badge.js} +51 -5
  58. package/payload/starter/_basic/comp/bottom-bar.js +31 -23
  59. package/payload/starter/_basic/comp/breadcrumbs.js +4 -2
  60. package/payload/starter/_basic/comp/canvas.js +652 -0
  61. package/payload/starter/_basic/comp/chat-view.js +827 -0
  62. package/payload/starter/_basic/comp/check-box.js +137 -21
  63. package/payload/starter/_basic/comp/code-editor.js +953 -0
  64. package/payload/starter/_basic/comp/{select-color.js → color-picker.js} +62 -29
  65. package/payload/starter/_basic/comp/context-menu.js +342 -30
  66. package/payload/starter/_basic/comp/{currency-input-b.js → currency-field.js} +48 -29
  67. package/payload/starter/_basic/comp/data-table.js +114 -42
  68. package/payload/starter/_basic/comp/{select-date.js → date-picker.js} +104 -52
  69. package/payload/starter/_basic/comp/dialog.js +214 -76
  70. package/payload/starter/_basic/comp/email-field.js +65 -0
  71. package/payload/starter/_basic/comp/{select-file.js → file-picker.js} +245 -57
  72. package/payload/starter/_basic/comp/filters.js +374 -60
  73. package/payload/starter/_basic/comp/form.js +38 -26
  74. package/payload/starter/_basic/comp/full-screen-select.js +36 -33
  75. package/payload/starter/_basic/comp/gauge.js +12 -8
  76. package/payload/starter/_basic/comp/graph-box.js +3911 -0
  77. package/payload/starter/_basic/comp/grid-group.js +185 -0
  78. package/payload/starter/_basic/comp/hold-to-confirm-button.js +16 -7
  79. package/payload/starter/_basic/comp/image-view.js +598 -0
  80. package/payload/starter/_basic/comp/item-list.js +507 -163
  81. package/payload/starter/_basic/comp/json-editor.js +3221 -0
  82. package/payload/starter/_basic/comp/json-view.js +597 -0
  83. package/payload/starter/_basic/comp/label-editor.js +22 -19
  84. package/payload/starter/_basic/comp/left-menu.js +97 -25
  85. package/payload/starter/_basic/comp/line-progress-bar.js +196 -45
  86. package/payload/starter/_basic/comp/loading-screen.js +49 -18
  87. package/payload/starter/_basic/comp/log-view.js +530 -0
  88. package/payload/starter/_basic/comp/{login-page-v2.js → login-page.js} +205 -106
  89. package/payload/starter/_basic/comp/markdown-view.js +1044 -0
  90. package/payload/starter/_basic/comp/menu-bar.js +624 -0
  91. package/payload/starter/_basic/comp/mini-graph-box.js +20 -11
  92. package/payload/starter/_basic/comp/minimal-accent.js +208 -0
  93. package/payload/starter/_basic/comp/notice.js +15 -13
  94. package/payload/starter/_basic/comp/{number-input-b.js → number-field.js} +26 -19
  95. package/payload/starter/_basic/comp/numeric-keyboard.js +15 -13
  96. package/payload/starter/_basic/comp/page-control.js +21 -4
  97. package/payload/starter/_basic/comp/page-header.js +7 -6
  98. package/payload/starter/_basic/comp/password-field.js +192 -0
  99. package/payload/starter/_basic/comp/period-bar.js +8 -7
  100. package/payload/starter/_basic/comp/{phone-input-b.js → phone-field.js} +80 -45
  101. package/payload/starter/_basic/comp/progress-bar.js +401 -85
  102. package/payload/starter/_basic/comp/property-panel.js +1022 -123
  103. package/payload/starter/_basic/comp/radio-button.js +79 -19
  104. package/payload/starter/_basic/comp/range-slider.js +569 -0
  105. package/payload/starter/_basic/comp/rich-text-editor.js +33 -30
  106. package/payload/starter/_basic/comp/scroll-area.js +308 -0
  107. package/payload/starter/_basic/comp/scrolling-text.js +10 -9
  108. package/payload/starter/_basic/comp/search-input.js +725 -0
  109. package/payload/starter/_basic/comp/search-results.js +60 -24
  110. package/payload/starter/_basic/comp/select-box.js +229 -107
  111. package/payload/starter/_basic/comp/settings-row.js +20 -19
  112. package/payload/starter/_basic/comp/side-panel.js +53 -10
  113. package/payload/starter/_basic/comp/slider-field.js +264 -88
  114. package/payload/starter/_basic/comp/slider.js +541 -86
  115. package/payload/starter/_basic/comp/smart-button.js +433 -352
  116. package/payload/starter/_basic/comp/smart-table.js +740 -185
  117. package/payload/starter/_basic/comp/sortable-list.js +47 -38
  118. package/payload/starter/_basic/comp/spark-line-box.js +25 -16
  119. package/payload/starter/_basic/comp/splitter.js +411 -0
  120. package/payload/starter/_basic/comp/status-bar.js +408 -0
  121. package/payload/starter/_basic/comp/step-bar.js +345 -0
  122. package/payload/starter/_basic/comp/stepper.js +77 -49
  123. package/payload/starter/_basic/comp/tabs.js +67 -18
  124. package/payload/starter/_basic/comp/tag-input.js +50 -10
  125. package/payload/starter/_basic/comp/tap-effect.js +6 -4
  126. package/payload/starter/_basic/comp/text-area-field.js +233 -0
  127. package/payload/starter/_basic/comp/text-field.js +1006 -0
  128. package/payload/starter/_basic/comp/time-line.js +102 -28
  129. package/payload/starter/_basic/comp/{select-time.js → time-picker.js} +104 -51
  130. package/payload/starter/_basic/comp/tiny-select.js +79 -39
  131. package/payload/starter/_basic/comp/tiny-table.js +12 -8
  132. package/payload/starter/_basic/comp/toast.js +87 -34
  133. package/payload/starter/_basic/comp/toggle.js +147 -27
  134. package/payload/starter/_basic/comp/tool-bar.js +760 -0
  135. package/payload/starter/_basic/comp/tooltip.js +80 -17
  136. package/payload/starter/_basic/comp/tree-view.js +124 -41
  137. package/payload/starter/_basic/comp/ui-effects.js +17 -11
  138. package/payload/starter/_basic/comp/ui-standards.js +5 -4
  139. package/payload/starter/_basic/comp/url-field.js +190 -0
  140. package/payload/starter/_basic/comp/web-view.js +70 -16
  141. package/payload/starter/_basic/docs/basic-js-animated-rules.md +15 -9
  142. package/payload/starter/_basic/docs/basic-js-code-rules.md +42 -5
  143. package/payload/starter/_basic/docs/basic-js-components.md +12 -17
  144. package/payload/starter/_basic/docs/basic-js-core.md +5 -4
  145. package/payload/starter/_basic/docs/component-index.md +245 -104
  146. package/payload/starter/_basic/docs/component-template.js +28 -24
  147. package/payload/starter/_basic/docs/handbook/00-introduction.md +6 -2
  148. package/payload/starter/_basic/docs/handbook/00-what-is-new.md +21 -0
  149. package/payload/starter/_basic/docs/handbook/01-label.md +4 -4
  150. package/payload/starter/_basic/docs/handbook/02-box.md +7 -7
  151. package/payload/starter/_basic/docs/handbook/03-image.md +4 -4
  152. package/payload/starter/_basic/docs/handbook/04-common-properties.md +6 -5
  153. package/payload/starter/_basic/docs/handbook/05-autolayout.md +8 -7
  154. package/payload/starter/_basic/docs/handbook/06-button.md +3 -3
  155. package/payload/starter/_basic/docs/handbook/07-input.md +3 -3
  156. package/payload/starter/_basic/docs/handbook/08-page.md +3 -3
  157. package/payload/starter/_basic/docs/handbook/09-useful-examples.md +39 -58
  158. package/payload/starter/_basic/docs/handbook/10-motion.md +6 -6
  159. package/payload/starter/_basic/docs/handbook/11-other-functions.md +1 -0
  160. package/payload/starter/_basic/docs/handbook/13-sound.md +3 -3
  161. package/payload/starter/_basic/docs/handbook/14-using-components.md +180 -0
  162. package/payload/starter/_basic/docs/handbook/15-making-a-component.md +338 -0
  163. package/payload/starter/_basic/docs/what-is-new.md +106 -0
  164. package/payload/starter/_basic/examples/accordion.htm +174 -0
  165. package/payload/starter/_basic/examples/action-button.htm +74 -32
  166. package/payload/starter/_basic/examples/action-tab-bar.htm +5 -6
  167. package/payload/starter/_basic/examples/app-bar.htm +63 -41
  168. package/payload/starter/_basic/examples/badge.htm +96 -0
  169. package/payload/starter/_basic/examples/bottom-bar-2.htm +61 -48
  170. package/payload/starter/_basic/examples/bottom-bar.htm +74 -16
  171. package/payload/starter/_basic/examples/breadcrumbs.htm +160 -150
  172. package/payload/starter/_basic/examples/canvas.htm +190 -0
  173. package/payload/starter/_basic/examples/chat-view.htm +143 -0
  174. package/payload/starter/_basic/examples/check-box-2.htm +71 -82
  175. package/payload/starter/_basic/examples/check-box-3.htm +72 -83
  176. package/payload/starter/_basic/examples/check-box.htm +207 -0
  177. package/payload/starter/_basic/examples/code-editor-2.htm +259 -0
  178. package/payload/starter/_basic/examples/code-editor.htm +225 -0
  179. package/payload/starter/_basic/examples/color-picker.htm +206 -0
  180. package/payload/starter/_basic/examples/context-menu.htm +180 -139
  181. package/payload/starter/_basic/examples/currency-field.htm +105 -0
  182. package/payload/starter/_basic/examples/data-table-2.htm +2 -1
  183. package/payload/starter/_basic/examples/data-table-3.htm +1 -1
  184. package/payload/starter/_basic/examples/data-table-4.htm +15 -12
  185. package/payload/starter/_basic/examples/data-table-5.htm +11 -3
  186. package/payload/starter/_basic/examples/data-table.htm +90 -40
  187. package/payload/starter/_basic/examples/date-picker.htm +239 -0
  188. package/payload/starter/_basic/examples/dialog-centered.htm +394 -40
  189. package/payload/starter/_basic/examples/dialog.htm +267 -46
  190. package/payload/starter/_basic/examples/email-field.htm +102 -0
  191. package/payload/starter/_basic/examples/file-picker.htm +296 -0
  192. package/payload/starter/_basic/examples/filters.htm +33 -22
  193. package/payload/starter/_basic/examples/{form-1.htm → form.htm} +18 -19
  194. package/payload/starter/_basic/examples/full-screen-select.htm +81 -58
  195. package/payload/starter/_basic/examples/gauge.htm +95 -81
  196. package/payload/starter/_basic/examples/graph-box.htm +365 -0
  197. package/payload/starter/_basic/examples/grid-group.htm +179 -0
  198. package/payload/starter/_basic/examples/hold-to-confirm-button.htm +102 -113
  199. package/payload/starter/_basic/examples/image-view.htm +195 -0
  200. package/payload/starter/_basic/examples/item-list-2.htm +138 -94
  201. package/payload/starter/_basic/examples/item-list.htm +191 -86
  202. package/payload/starter/_basic/examples/json-editor.htm +206 -0
  203. package/payload/starter/_basic/examples/json-view.htm +153 -0
  204. package/payload/starter/_basic/examples/label-editor.htm +85 -89
  205. package/payload/starter/_basic/examples/left-menu-2.htm +93 -0
  206. package/payload/starter/_basic/examples/left-menu.htm +42 -37
  207. package/payload/starter/_basic/examples/line-progress-bar.htm +155 -114
  208. package/payload/starter/_basic/examples/loading-screen.htm +149 -125
  209. package/payload/starter/_basic/examples/log-view.htm +175 -0
  210. package/payload/starter/_basic/examples/{login-page-dark-v2.htm → login-page-dark.htm} +265 -267
  211. package/payload/starter/_basic/examples/{login-page-v2.htm → login-page.htm} +266 -267
  212. package/payload/starter/_basic/examples/markdown-view.htm +220 -0
  213. package/payload/starter/_basic/examples/menu-bar-2.htm +225 -0
  214. package/payload/starter/_basic/examples/menu-bar.htm +145 -0
  215. package/payload/starter/_basic/examples/mini-graph-box.htm +98 -109
  216. package/payload/starter/_basic/examples/minimal-accent.htm +196 -0
  217. package/payload/starter/_basic/examples/minimal-theme.htm +432 -0
  218. package/payload/starter/_basic/examples/notice.htm +13 -4
  219. package/payload/starter/_basic/examples/number-field.htm +103 -0
  220. package/payload/starter/_basic/examples/numeric-keyboard.htm +44 -42
  221. package/payload/starter/_basic/examples/page-control.htm +181 -130
  222. package/payload/starter/_basic/examples/page-header.htm +57 -30
  223. package/payload/starter/_basic/examples/password-field.htm +117 -0
  224. package/payload/starter/_basic/examples/period-bar.htm +43 -29
  225. package/payload/starter/_basic/examples/phone-field-select-country.htm +292 -0
  226. package/payload/starter/_basic/examples/phone-field.htm +104 -0
  227. package/payload/starter/_basic/examples/progress-bar-ozden.htm +229 -92
  228. package/payload/starter/_basic/examples/progress-bar.htm +222 -174
  229. package/payload/starter/_basic/examples/property-panel.htm +152 -52
  230. package/payload/starter/_basic/examples/radio-button-2.htm +101 -109
  231. package/payload/starter/_basic/examples/radio-button-3.htm +81 -71
  232. package/payload/starter/_basic/examples/radio-button.htm +289 -0
  233. package/payload/starter/_basic/examples/range-slider.htm +171 -0
  234. package/payload/starter/_basic/examples/rich-text-editor.htm +115 -110
  235. package/payload/starter/_basic/examples/scroll-area.htm +293 -0
  236. package/payload/starter/_basic/examples/scrolling-text.htm +27 -6
  237. package/payload/starter/_basic/examples/search-input-2-light.htm +112 -0
  238. package/payload/starter/_basic/examples/search-input-3-dark.htm +105 -0
  239. package/payload/starter/_basic/examples/{search-input-v2-place.htm → search-input-place.htm} +25 -26
  240. package/payload/starter/_basic/examples/search-input.htm +159 -0
  241. package/payload/starter/_basic/examples/search-results.htm +85 -88
  242. package/payload/starter/_basic/examples/select-box-ozden-dark-text.htm +70 -0
  243. package/payload/starter/_basic/examples/select-box-ozden-item.htm +6 -5
  244. package/payload/starter/_basic/examples/select-box-ozden-text.htm +5 -3
  245. package/payload/starter/_basic/examples/select-box.htm +190 -159
  246. package/payload/starter/_basic/examples/settings-row.htm +92 -43
  247. package/payload/starter/_basic/examples/side-panel-2.htm +63 -25
  248. package/payload/starter/_basic/examples/side-panel.htm +84 -70
  249. package/payload/starter/_basic/examples/slider-2-classic.htm +152 -0
  250. package/payload/starter/_basic/examples/slider-field-ozden.htm +286 -0
  251. package/payload/starter/_basic/examples/slider-field.htm +174 -134
  252. package/payload/starter/_basic/examples/slider.htm +257 -180
  253. package/payload/starter/_basic/examples/smart-button-3-ozden.htm +170 -257
  254. package/payload/starter/_basic/examples/smart-button-4-dark.htm +86 -47
  255. package/payload/starter/_basic/examples/smart-button-5-features.htm +130 -125
  256. package/payload/starter/_basic/examples/smart-button-alternatif.htm +266 -0
  257. package/payload/starter/_basic/examples/smart-button.htm +207 -174
  258. package/payload/starter/_basic/examples/smart-table-2.htm +43 -56
  259. package/payload/starter/_basic/examples/smart-table-3.htm +148 -113
  260. package/payload/starter/_basic/examples/smart-table-4.htm +37 -50
  261. package/payload/starter/_basic/examples/{smart-table-1.htm → smart-table-5.htm} +37 -48
  262. package/payload/starter/_basic/examples/smart-table.htm +183 -0
  263. package/payload/starter/_basic/examples/sortable-list.htm +191 -142
  264. package/payload/starter/_basic/examples/spark-line-box.htm +149 -161
  265. package/payload/starter/_basic/examples/splitter.htm +164 -0
  266. package/payload/starter/_basic/examples/status-bar.htm +166 -0
  267. package/payload/starter/_basic/examples/step-bar.htm +129 -0
  268. package/payload/starter/_basic/examples/stepper-2.htm +71 -59
  269. package/payload/starter/_basic/examples/stepper.htm +146 -135
  270. package/payload/starter/_basic/examples/tabs-2.htm +58 -67
  271. package/payload/starter/_basic/examples/tabs.htm +197 -180
  272. package/payload/starter/_basic/examples/tag-input.htm +150 -153
  273. package/payload/starter/_basic/examples/tap-effect.htm +23 -19
  274. package/payload/starter/_basic/examples/text-area-field.htm +104 -0
  275. package/payload/starter/_basic/examples/text-field-2.htm +113 -0
  276. package/payload/starter/_basic/examples/text-field-3-style.htm +105 -0
  277. package/payload/starter/_basic/examples/text-field-4-custom-unit.htm +96 -0
  278. package/payload/starter/_basic/examples/{input-b-ex5-warning-icon.htm → text-field-5-warning-icon.htm} +19 -19
  279. package/payload/starter/_basic/examples/text-field-6-modern-dark.htm +114 -0
  280. package/payload/starter/_basic/examples/text-field-7-modern.htm +106 -0
  281. package/payload/starter/_basic/examples/text-field-8-light-dark.htm +159 -0
  282. package/payload/starter/_basic/examples/text-field.htm +163 -0
  283. package/payload/starter/_basic/examples/time-line.htm +180 -116
  284. package/payload/starter/_basic/examples/time-picker.htm +240 -0
  285. package/payload/starter/_basic/examples/tiny-select.htm +118 -86
  286. package/payload/starter/_basic/examples/tiny-table.htm +40 -34
  287. package/payload/starter/_basic/examples/toast.htm +145 -147
  288. package/payload/starter/_basic/examples/toggle-2.htm +99 -68
  289. package/payload/starter/_basic/examples/toggle-3.htm +104 -101
  290. package/payload/starter/_basic/examples/toggle.htm +161 -93
  291. package/payload/starter/_basic/examples/tool-bar.htm +172 -0
  292. package/payload/starter/_basic/examples/tooltip-2.htm +110 -60
  293. package/payload/starter/_basic/examples/tooltip-3.htm +124 -65
  294. package/payload/starter/_basic/examples/tooltip-4.htm +218 -0
  295. package/payload/starter/_basic/examples/tooltip.htm +206 -124
  296. package/payload/starter/_basic/examples/tree-view.htm +210 -182
  297. package/payload/starter/_basic/examples/ui-effects.htm +207 -185
  298. package/payload/starter/_basic/examples/ui-standards.htm +200 -139
  299. package/payload/starter/_basic/examples/url-field.htm +120 -0
  300. package/payload/starter/_basic/examples/web-view.htm +109 -110
  301. package/payload/starter/_basic/min/accordion.min.js +2 -0
  302. package/payload/starter/_basic/min/action-button.min.js +1 -1
  303. package/payload/starter/_basic/min/app-bar.min.js +1 -1
  304. package/payload/starter/_basic/min/badge.min.js +2 -0
  305. package/payload/starter/_basic/min/bottom-bar.min.js +1 -1
  306. package/payload/starter/_basic/min/canvas.min.js +2 -0
  307. package/payload/starter/_basic/min/chat-view.min.js +2 -0
  308. package/payload/starter/_basic/min/check-box.min.js +1 -1
  309. package/payload/starter/_basic/min/code-editor.min.js +2 -0
  310. package/payload/starter/_basic/min/color-picker.min.js +2 -0
  311. package/payload/starter/_basic/min/context-menu.min.js +1 -1
  312. package/payload/starter/_basic/min/currency-field.min.js +2 -0
  313. package/payload/starter/_basic/min/data-table.min.js +1 -1
  314. package/payload/starter/_basic/min/date-picker.min.js +2 -0
  315. package/payload/starter/_basic/min/dialog.min.js +1 -1
  316. package/payload/starter/_basic/min/email-field.min.js +2 -0
  317. package/payload/starter/_basic/min/file-picker.min.js +2 -0
  318. package/payload/starter/_basic/min/filters.min.js +1 -1
  319. package/payload/starter/_basic/min/form.min.js +1 -1
  320. package/payload/starter/_basic/min/full-screen-select.min.js +1 -1
  321. package/payload/starter/_basic/min/gauge.min.js +1 -1
  322. package/payload/starter/_basic/min/graph-box.min.js +2 -0
  323. package/payload/starter/_basic/min/grid-group.min.js +2 -0
  324. package/payload/starter/_basic/min/hold-to-confirm-button.min.js +1 -1
  325. package/payload/starter/_basic/min/image-view.min.js +2 -0
  326. package/payload/starter/_basic/min/item-list.min.js +1 -1
  327. package/payload/starter/_basic/min/json-editor.min.js +2 -0
  328. package/payload/starter/_basic/min/json-view.min.js +2 -0
  329. package/payload/starter/_basic/min/label-editor.min.js +1 -1
  330. package/payload/starter/_basic/min/left-menu.min.js +1 -1
  331. package/payload/starter/_basic/min/line-progress-bar.min.js +1 -1
  332. package/payload/starter/_basic/min/loading-screen.min.js +1 -1
  333. package/payload/starter/_basic/min/log-view.min.js +2 -0
  334. package/payload/starter/_basic/min/login-page.min.js +2 -0
  335. package/payload/starter/_basic/min/markdown-view.min.js +2 -0
  336. package/payload/starter/_basic/min/menu-bar.min.js +2 -0
  337. package/payload/starter/_basic/min/mini-graph-box.min.js +1 -1
  338. package/payload/starter/_basic/min/minimal-accent.min.js +2 -0
  339. package/payload/starter/_basic/min/notice.min.js +1 -1
  340. package/payload/starter/_basic/min/number-field.min.js +2 -0
  341. package/payload/starter/_basic/min/numeric-keyboard.min.js +1 -1
  342. package/payload/starter/_basic/min/page-control.min.js +1 -1
  343. package/payload/starter/_basic/min/password-field.min.js +2 -0
  344. package/payload/starter/_basic/min/phone-field.min.js +2 -0
  345. package/payload/starter/_basic/min/progress-bar.min.js +1 -1
  346. package/payload/starter/_basic/min/property-panel.min.js +1 -1
  347. package/payload/starter/_basic/min/radio-button.min.js +1 -1
  348. package/payload/starter/_basic/min/range-slider.min.js +2 -0
  349. package/payload/starter/_basic/min/rich-text-editor.min.js +1 -1
  350. package/payload/starter/_basic/min/scroll-area.min.js +2 -0
  351. package/payload/starter/_basic/min/scrolling-text.min.js +1 -1
  352. package/payload/starter/_basic/min/search-input.min.js +2 -0
  353. package/payload/starter/_basic/min/search-results.min.js +1 -1
  354. package/payload/starter/_basic/min/select-box.min.js +1 -1
  355. package/payload/starter/_basic/min/settings-row.min.js +1 -1
  356. package/payload/starter/_basic/min/side-panel.min.js +1 -1
  357. package/payload/starter/_basic/min/slider-field.min.js +1 -1
  358. package/payload/starter/_basic/min/slider.min.js +1 -1
  359. package/payload/starter/_basic/min/smart-button.min.js +1 -1
  360. package/payload/starter/_basic/min/smart-table.min.js +1 -1
  361. package/payload/starter/_basic/min/sortable-list.min.js +1 -1
  362. package/payload/starter/_basic/min/spark-line-box.min.js +1 -1
  363. package/payload/starter/_basic/min/splitter.min.js +2 -0
  364. package/payload/starter/_basic/min/status-bar.min.js +2 -0
  365. package/payload/starter/_basic/min/step-bar.min.js +2 -0
  366. package/payload/starter/_basic/min/stepper.min.js +1 -1
  367. package/payload/starter/_basic/min/tabs.min.js +1 -1
  368. package/payload/starter/_basic/min/tag-input.min.js +1 -1
  369. package/payload/starter/_basic/min/text-area-field.min.js +2 -0
  370. package/payload/starter/_basic/min/text-field.min.js +2 -0
  371. package/payload/starter/_basic/min/time-line.min.js +1 -1
  372. package/payload/starter/_basic/min/time-picker.min.js +2 -0
  373. package/payload/starter/_basic/min/tiny-select.min.js +1 -1
  374. package/payload/starter/_basic/min/toast.min.js +1 -1
  375. package/payload/starter/_basic/min/toggle.min.js +1 -1
  376. package/payload/starter/_basic/min/tool-bar.min.js +2 -0
  377. package/payload/starter/_basic/min/tooltip.min.js +1 -1
  378. package/payload/starter/_basic/min/tree-view.min.js +1 -1
  379. package/payload/starter/_basic/min/ui-effects.min.js +1 -1
  380. package/payload/starter/_basic/min/url-field.min.js +2 -0
  381. package/payload/starter/_basic/min/web-view.min.js +1 -1
  382. package/payload/templates/booking/app/app.js +11 -8
  383. package/payload/templates/booking/app/settings.js +4 -4
  384. package/payload/templates/booking/index.htm +3 -3
  385. package/payload/templates/booking/pages/account.js +6 -6
  386. package/payload/templates/booking/pages/book.js +1 -1
  387. package/payload/templates/booking/pages/services.js +5 -4
  388. package/payload/templates/classic/app/app.js +15 -11
  389. package/payload/templates/classic/app/settings.js +22 -20
  390. package/payload/templates/classic/assets/_attribute.txt +2 -0
  391. package/payload/templates/classic/assets/cards/dill.png +0 -0
  392. package/payload/templates/classic/assets/cards/fennel.png +0 -0
  393. package/payload/templates/classic/assets/cards/juniper.png +0 -0
  394. package/payload/templates/classic/assets/cards/olives.png +0 -0
  395. package/payload/templates/classic/assets/cards/oregano.png +0 -0
  396. package/payload/templates/classic/assets/cards/pepper.png +0 -0
  397. package/payload/templates/classic/assets/cards/rosehip.png +0 -0
  398. package/payload/templates/classic/assets/categories/cappuccino.png +0 -0
  399. package/payload/templates/classic/assets/categories/chocolate-milk.png +0 -0
  400. package/payload/templates/classic/assets/categories/coffee.png +0 -0
  401. package/payload/templates/classic/assets/categories/frappe.png +0 -0
  402. package/payload/templates/classic/assets/categories/iced-caffee.png +0 -0
  403. package/payload/templates/classic/assets/categories/milkshake.png +0 -0
  404. package/payload/templates/classic/assets/categories/orange-juice.png +0 -0
  405. package/payload/templates/classic/assets/categories/tea.png +0 -0
  406. package/payload/templates/classic/index.htm +2 -2
  407. package/payload/templates/classic/pages/example.js +10 -10
  408. package/payload/templates/classic/pages/examples.js +44 -43
  409. package/payload/templates/classic/pages/home.js +16 -15
  410. package/payload/templates/classic/pages/info-pages.js +5 -5
  411. package/payload/templates/classic/pages/search.js +8 -7
  412. package/payload/templates/classic/pages/settings.js +13 -13
  413. package/payload/templates/classic/pages/tasks.js +1 -0
  414. package/payload/templates/classic/pages/template-pages.js +12 -11
  415. package/payload/templates/coffee-shop/app/app.js +12 -8
  416. package/payload/templates/coffee-shop/app/settings.js +4 -4
  417. package/payload/templates/coffee-shop/index.htm +3 -3
  418. package/payload/templates/coffee-shop/pages/drink.js +1 -1
  419. package/payload/templates/coffee-shop/pages/menu.js +5 -4
  420. package/payload/templates/forms/TEMPLATE.md +1 -1
  421. package/payload/templates/forms/appointment-form.htm +55 -53
  422. package/payload/templates/forms/contact-form-to-mail.htm +38 -37
  423. package/payload/templates/forms/contact-form-to-supabase.htm +47 -46
  424. package/payload/templates/forms/dark-contact-form.htm +43 -40
  425. package/payload/templates/forms/event-registration-form.htm +80 -77
  426. package/payload/templates/forms/feedback-form.htm +54 -54
  427. package/payload/templates/forms/order-form.htm +88 -84
  428. package/payload/templates/forms/recruitment-form.htm +60 -60
  429. package/payload/templates/forms/service/readme.md +9 -8
  430. package/payload/templates/forms/service/send-form-mail.php +38 -21
  431. package/payload/templates/forms/support-ticket-form.htm +67 -65
  432. package/payload/templates/panel/common/module-page.js +2 -2
  433. package/payload/templates/panel/common/theme.js +37 -10
  434. package/payload/templates/panel/common/top-bar.js +45 -40
  435. package/payload/templates/panel/index.htm +63 -60
  436. package/payload/templates/panel/module10/greenhouse.htm +98 -113
  437. package/payload/templates/panel/module11/arduino-projects.htm +47 -58
  438. package/payload/templates/panel/module6/energy-hub.htm +71 -103
  439. package/payload/templates/panel/module7/3d-printers.htm +58 -81
  440. package/payload/templates/panel/module8/cold-rooms.htm +58 -79
  441. package/payload/templates/panel/module9/elevator-fleet.htm +72 -93
  442. package/payload/templates/panel/pages/activity.js +134 -152
  443. package/payload/templates/panel/pages/contents.js +291 -308
  444. package/payload/templates/panel/pages/customers.js +250 -267
  445. package/payload/templates/panel/pages/edit-user.js +31 -30
  446. package/payload/templates/panel/pages/home.js +39 -70
  447. package/payload/templates/panel/pages/media.js +166 -183
  448. package/payload/templates/panel/pages/notifications.js +7 -7
  449. package/payload/templates/panel/pages/orders.js +200 -217
  450. package/payload/templates/panel/pages/products.js +259 -278
  451. package/payload/templates/panel/pages/reports.js +74 -123
  452. package/payload/templates/panel/pages/roles.js +57 -60
  453. package/payload/templates/panel/pages/settings.js +127 -143
  454. package/payload/templates/panel/pages/user-actions.js +106 -110
  455. package/payload/templates/panel/pages/user-list.js +221 -238
  456. package/payload/templates/panel/pages/users.js +14 -29
  457. package/payload/templates/shop/TEMPLATE.md +1 -1
  458. package/payload/templates/shop/app/app.js +11 -8
  459. package/payload/templates/shop/app/settings.js +4 -4
  460. package/payload/templates/shop/index.htm +3 -3
  461. package/payload/templates/shop/pages/account.js +7 -7
  462. package/payload/templates/shop/pages/cart.js +1 -1
  463. package/payload/templates/shop/pages/checkout.js +2 -2
  464. package/payload/templates/shop/pages/product.js +2 -2
  465. package/payload/templates/shop/pages/shop.js +6 -5
  466. package/payload/templates/starter/TEMPLATE.md +1 -1
  467. package/payload/templates/starter/app/app.js +12 -8
  468. package/payload/templates/starter/app/settings.js +14 -11
  469. package/payload/templates/starter/index.htm +3 -3
  470. package/payload/templates/starter/pages/about.js +1 -1
  471. package/payload/templates/starter/pages/home.js +2 -2
  472. package/payload/templates/starter/pages/product.js +1 -1
  473. package/payload/templates/starter/pages/products.js +5 -5
  474. package/payload/templates/starter/pages/settings.js +1 -1
  475. package/payload/templates/starter/pages/tasks.js +8 -8
  476. package/payload/templates/starter/pages/website.js +1 -1
  477. package/payload/starter/_basic/comp/chart-box/chart-4.5.1.umd.min.js +0 -13
  478. package/payload/starter/_basic/comp/chart-box/chart-js-LICENSE.md +0 -9
  479. package/payload/starter/_basic/comp/chart-box.js +0 -868
  480. package/payload/starter/_basic/comp/email-input-b.js +0 -57
  481. package/payload/starter/_basic/comp/input-b.js +0 -759
  482. package/payload/starter/_basic/comp/password-input-b.js +0 -164
  483. package/payload/starter/_basic/comp/search-input-v2.js +0 -427
  484. package/payload/starter/_basic/comp/textarea-b.js +0 -184
  485. package/payload/starter/_basic/comp/url-input-b.js +0 -145
  486. package/payload/starter/_basic/examples/badgeV2.htm +0 -68
  487. package/payload/starter/_basic/examples/chart-box.htm +0 -287
  488. package/payload/starter/_basic/examples/check-box-1.htm +0 -220
  489. package/payload/starter/_basic/examples/currency-input-b.htm +0 -71
  490. package/payload/starter/_basic/examples/email-input-b.htm +0 -67
  491. package/payload/starter/_basic/examples/input-b-ex1.htm +0 -132
  492. package/payload/starter/_basic/examples/input-b-ex2.htm +0 -136
  493. package/payload/starter/_basic/examples/input-b-ex3-style.htm +0 -113
  494. package/payload/starter/_basic/examples/input-b-ex4-custom-unit.htm +0 -112
  495. package/payload/starter/_basic/examples/input-b-ex6-dark.htm +0 -108
  496. package/payload/starter/_basic/examples/input-b-ex7-ozden.htm +0 -153
  497. package/payload/starter/_basic/examples/number-input-b.htm +0 -68
  498. package/payload/starter/_basic/examples/password-input-b.htm +0 -70
  499. package/payload/starter/_basic/examples/phone-input-b-select-country.htm +0 -298
  500. package/payload/starter/_basic/examples/phone-input-b.htm +0 -72
  501. package/payload/starter/_basic/examples/radio-button-1.htm +0 -264
  502. package/payload/starter/_basic/examples/search-input-v2-ozden.htm +0 -128
  503. package/payload/starter/_basic/examples/search-input-v2.htm +0 -65
  504. package/payload/starter/_basic/examples/select-color.htm +0 -215
  505. package/payload/starter/_basic/examples/select-date.htm +0 -244
  506. package/payload/starter/_basic/examples/select-file.htm +0 -268
  507. package/payload/starter/_basic/examples/select-time.htm +0 -249
  508. package/payload/starter/_basic/examples/smart-button-2.htm +0 -220
  509. package/payload/starter/_basic/examples/textarea-b.htm +0 -76
  510. package/payload/starter/_basic/examples/unfinished-login-page-dark-supabase.htm +0 -221
  511. package/payload/starter/_basic/examples/unfinished-login-page-supabase.htm +0 -221
  512. package/payload/starter/_basic/examples/url-input-b.htm +0 -85
  513. package/payload/starter/_basic/min/badge-v2.min.js +0 -2
  514. package/payload/starter/_basic/min/chart-box.min.js +0 -2
  515. package/payload/starter/_basic/min/currency-input-b.min.js +0 -2
  516. package/payload/starter/_basic/min/email-input-b.min.js +0 -2
  517. package/payload/starter/_basic/min/input-b.min.js +0 -2
  518. package/payload/starter/_basic/min/login-page-v2.min.js +0 -2
  519. package/payload/starter/_basic/min/number-input-b.min.js +0 -2
  520. package/payload/starter/_basic/min/password-input-b.min.js +0 -2
  521. package/payload/starter/_basic/min/phone-input-b.min.js +0 -2
  522. package/payload/starter/_basic/min/search-input-v2.min.js +0 -2
  523. package/payload/starter/_basic/min/select-color.min.js +0 -2
  524. package/payload/starter/_basic/min/select-date.min.js +0 -2
  525. package/payload/starter/_basic/min/select-file.min.js +0 -2
  526. package/payload/starter/_basic/min/select-time.min.js +0 -2
  527. package/payload/starter/_basic/min/textarea-b.min.js +0 -2
  528. package/payload/starter/_basic/min/url-input-b.min.js +0 -2
  529. package/payload/templates/panel/common/bridge.min.js +0 -0
  530. package/payload/templates/panel/common/full-view.min.js +0 -1
  531. package/payload/templates/panel/common/main-view.min.js +0 -1
  532. package/payload/templates/panel/common/module-page.min.js +0 -1
  533. package/payload/templates/panel/common/right-view.min.js +0 -1
  534. package/payload/templates/panel/common/start-page.min.js +0 -1
  535. package/payload/templates/panel/common/top-bar-v25-07-29-1.js +0 -330
  536. package/payload/templates/panel/common/top-bar-v25-07-29-2.js +0 -265
  537. package/payload/templates/panel/common/top-bar.min.js +0 -1
  538. package/payload/templates/panel/common/ui-standards.min.js +0 -1
  539. package/payload/templates/panel/managers/database.min.js +0 -1
  540. package/payload/templates/panel/managers/login.min.js +0 -1
  541. package/payload/templates/panel/pages/_page-template.min.js +0 -1
  542. package/payload/templates/panel/pages/contents.min.js +0 -1
  543. package/payload/templates/panel/pages/edit-user.min.js +0 -1
  544. package/payload/templates/panel/pages/edit-users-table.min.js +0 -1
  545. package/payload/templates/panel/pages/home.min.js +0 -1
  546. package/payload/templates/panel/pages/notifications.min.js +0 -1
  547. package/payload/templates/panel/pages/reports.min.js +0 -1
  548. package/payload/templates/panel/pages/settings.min.js +0 -1
  549. package/payload/templates/panel/pages/user-actions.min.js +0 -2
  550. package/payload/templates/panel/pages/users.min.js +0 -1
  551. /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn.png +0 -0
  552. /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn2.png +0 -0
  553. /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn.png +0 -0
  554. /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn2.png +0 -0
  555. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear-round.svg +0 -0
  556. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear.svg +0 -0
  557. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.png +0 -0
  558. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.svg +0 -0
  559. /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/search.svg +0 -0
@@ -1,2 +1,2 @@
1
1
  /* Bismillah */
2
- "use strict";const TagInputDefaults={key:"0",width:320,height:"auto",tags:[],suggestions:[],allowCustom:1,showSuggestionsOnFocus:0,maxSuggestions:8,maxTags:0,minLength:1,maxLength:32,lowercase:0,separators:",",placeholder:"Add a tag...",emptyText:"No suggestions",enabled:1,ariaLabel:"Tags",validate:function(e,t){return""},onChange:function(e){},onAdd:function(e,t){},onRemove:function(e,t){},onReject:function(e,t,o){},messages:{duplicate:'"{tag}" is already added.',max:"You can add up to {max} tags.",short:"A tag needs at least {min} characters.",long:"A tag can have up to {max} characters.",notAllowed:"Choose a tag from the list."},styleName:"classic",style:{field:{color:White(1),border:1,borderColor:Black(.2),round:6,padding:[8,6],gap:6,minHeight:44},fieldHover:{borderColor:Black(.5)},fieldFocus:{borderColor:"#141414"},fieldError:{borderColor:"#D64545"},input:{fontSize:15,textColor:Black(.85),minWidth:90,height:28},placeholder:{textColor:Black(.4)},tag:{color:Black(.07),border:0,borderColor:"transparent",round:5,padding:[8,0],height:28,gap:4},tagHover:{color:Black(.12)},tagSelected:{color:"#141414",textColor:White(1),removeColor:White(.8)},tagText:{fontSize:13,textColor:Black(.85)},tagRemove:{color:Black(.45),hoverColor:"#D64545"},panel:{color:White(1),border:1,borderColor:Black(.12),round:8,padding:4,shadow:"0 8px 24px rgba(0, 0, 0, 0.12)",maxHeight:240},option:{fontSize:14,textColor:Black(.85),round:5,padding:[10,7]},optionActive:{color:Black(.06)},highlight:{color:"rgba(255, 196, 0, 0.35)"},empty:{fontSize:13,textColor:Black(.45)},message:{fontSize:12,textColor:"#D64545"},counter:{fontSize:12,textColor:Black(.45)},disabled:{opacity:.5}}},TagInput=function(e={}){basic.applyStylePackage(e,TagInput.styles,TagInputDefaults),mergeIntoIfMissing(e,TagInputDefaults),e.color="transparent";const t=e.tags;e.tags=[];let o=startObject(e);const n=o.style,r="tag-input-"+TagInput._counter++;let a=[],i=-1,l=0,s=0,u=[],c=[],g=-1,p=null,d=null,f=0;const h=function(e){return e=String(e??"").trim().replace(/\s+/g," "),1==o.lowercase&&(e=e.toLocaleLowerCase()),e},m=function(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()},b=function(e){return o.tags.some(function(t){return m(t,e)})},x=function(e){const t=String(o.separators||"");let n=[e];if(t){const o=t.replace(/[\]\\^-]/g,"\\$&");n=e.split(new RegExp("["+o+"\\n\\r]"))}return n.map(h).filter(Boolean)},C=function(e){if(o.maxTags>0&&o.tags.length>=o.maxTags)return"max";if(e.length<o.minLength)return"short";if(o.maxLength>0&&e.length>o.maxLength)return"long";if(b(e))return"duplicate";if(1!=o.allowCustom&&!function(e){return o.suggestions.some(function(t){return m(t,e)})}(e))return"notAllowed";const t=o.validate(e,o);return t?String(t):""},v=function(e,t){return function(e,t){return String(e).replace(/\{(\w+)\}/g,function(e,o){return void 0!==t[o]?t[o]:e})}(o.messages[e]||e,{tag:t,max:"long"==e?o.maxLength:o.maxTags,min:o.minLength})},w=function(){1==o.messageLabel.visible?o.field.borderColor=n.fieldError.borderColor:o.field.borderColor=s?n.fieldFocus.borderColor:n.field.borderColor},E=function(){o.maxTags>0?(o.counterLabel.text=o.tags.length+" / "+o.maxTags,o.counterLabel.visible=1):o.counterLabel.visible=0,o.bottomRow.visible=1==o.counterLabel.visible||1==o.messageLabel.visible?1:0},S=function(){o.field.css.animation="none",o.field.elem.offsetWidth,o.field.css.animation="tagInputShake 0.3s",d=o.after(350,function(){d=null,o.field.css.animation="none"})},k=function(){p&&p(),p=null,o.messageLabel.visible=0,E(),w()},L=function(){const e=o.maxTags>0&&o.tags.length>=o.maxTags;o.input.inputElement.placeholder=e||o.tags.length?"":o.placeholder,o.input.inputElement.setAttribute("aria-label",o.placeholder||o.ariaLabel),o.input.css={flex:e?"0 0 10px":"1 1 "+n.input.minWidth+"px",minWidth:e?"10px":n.input.minWidth+"px"}},T=function(e,t){const o=t===i;e.chip.color=o?n.tagSelected.color:n.tag.color,e.chip.borderColor=o?n.tagSelected.color:n.tag.borderColor,e.label.textColor=o?n.tagSelected.textColor:n.tagText.textColor,e.remove.text=TagInput.getCloseSvg(o?n.tagSelected.removeColor:n.tagRemove.color),e.chip.aria={selected:o?"true":"false"}},D=function(){a.forEach(T)},B=function(){f||(f=1,a.forEach(function(e){e.chip.remove()}),a=[],o.tags.forEach(function(e,t){const r=createIn(o.field,function(){return function(e){const t=HGroup({width:"auto",height:n.tag.height,align:"left center",gap:n.tag.gap,padding:n.tag.padding,color:n.tag.color,border:n.tag.border,borderColor:n.tag.borderColor,round:n.tag.round,clickable:1});t.shrink=0,t.css={maxWidth:"100%",transition:"background-color 0.15s"},t.role="listitem",t.aria={label:e},t.elem.title=e;const o=Label({plainText:e,fontSize:n.tagText.fontSize,textColor:n.tagText.textColor});o.ellipsis=1,o.css.minWidth="0";const r=Label({text:TagInput.getCloseSvg(n.tagRemove.color),width:14,height:14,clickable:1});return r.lineHeight="0",r.shrink=0,r.cursor="pointer",r.css.borderRadius="3px",r.role="button",r.aria={label:"Remove "+e},endGroup(),{tag:e,chip:t,label:o,remove:r}}(e)});a.push(r),o.field.elem.insertBefore(r.chip.elem,o.input.elem),function(e,t){e.chip.on("mouseenter",function(){t!==i&&(e.chip.color=n.tagHover.color)}),e.chip.on("mouseleave",function(){T(e,t)}),e.chip.on("click",function(e,n){n.stopPropagation(),i=t,D(),o.input.inputElement.focus({preventScroll:!0})}),e.remove.on("mouseenter",function(){e.remove.text=TagInput.getCloseSvg(n.tagRemove.hoverColor)}),e.remove.on("mouseleave",function(){T(e,t)}),e.remove.on("click",function(t,n){n.stopPropagation(),1==o.enabled&&(o.removeTag(e.tag),o.input.inputElement.focus({preventScroll:!0}))})}(r,t)}),f=0,D(),L(),E())},H=function(e){const t=o.input.text.trim(),r=TagInput.escapeHtml(e);if(!t)return r;const a=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());if(a<0)return r;const i=TagInput.escapeHtml(e.slice(0,a)),l=TagInput.escapeHtml(e.slice(a,a+t.length)),s=TagInput.escapeHtml(e.slice(a+t.length));return i+"<mark style='"+("background:"+n.highlight.color+"; color: inherit; border-radius: 3px")+"'>"+l+"</mark>"+s},y=function(){c.forEach(function(e,t){e.color=t===g?n.optionActive.color:"transparent",e.aria={selected:t===g?"true":"false"}});const e=c[g];e?(o.input.inputElement.setAttribute("aria-activedescendant",e.elem.id),e.elem.scrollIntoView({block:"nearest"})):o.input.inputElement.removeAttribute("aria-activedescendant")},z=function(){var e,t;u=function(){const e=o.input.text.trim().toLocaleLowerCase(),t=o.suggestions.filter(function(t){return!b(t)&&(!e||t.toLocaleLowerCase().includes(e))}),n=function(t){return Number(t.toLocaleLowerCase().startsWith(e))};return e&&t.sort(function(e,t){return n(t)-n(e)}),t.slice(0,o.maxSuggestions)}(),c=[],g=u.length&&1!=o.allowCustom?0:-1,e=o.list,t=function(){u.length?u.forEach(function(e,t){const a=HGroup({width:"100%",height:"auto",align:"left center",padding:n.option.padding,round:n.option.round,clickable:1});a.elem.id=r+"-option-"+t,a.role="option",a.cursor="pointer",a.shrink=0;const i=Label({text:H(e),fontSize:n.option.fontSize,textColor:n.option.textColor});i.ellipsis=1,i.css.maxWidth="100%",endGroup(),c.push(a),a.on("mouseenter",function(){g=t,y()}),a.on("click",function(){W(e),o.input.inputElement.focus({preventScroll:!0})})}):Label({plainText:o.emptyText,fontSize:n.empty.fontSize,textColor:n.empty.textColor,padding:[10,8]})},e.wrapper&&e.wrapper.remove(),e.wrapper=createIn(e,function(){const e=VGroup({width:"100%",height:"auto",align:"left top",gap:0,position:"relative"});return e.css.alignItems="stretch",t(),endGroup(),e}),y()},A=function(){const e=o.field.elem.getBoundingClientRect(),t=Math.max(withPageZoom(e.width),160);o.panel.width=t,o.list.css.maxHeight=n.panel.maxHeight+"px";const r=o.panel.elem.offsetHeight,a=page.height-withPageZoom(e.bottom)-4-8,i=withPageZoom(e.top)-4-8,l=function(e){o.list.css.maxHeight=Math.max(60,n.panel.maxHeight-e)+"px"};let s=withPageZoom(e.bottom)+4;if(r>a&&i>a){const t=r-i;t>0&&l(t),s=withPageZoom(e.top)-o.panel.elem.offsetHeight-4}else r>a&&l(r-a);let u=withPageZoom(e.left);u=Math.max(8,Math.min(u,page.width-t-8)),o.panel.left=u,o.panel.top=Math.max(8,s)},I=function(){if(1!=o.enabled)return;const e=o.input.text.trim();return o.suggestions.length&&(e||1==o.showSuggestionsOnFocus||1!=o.allowCustom)?(z(),u.length||1!=o.allowCustom?(l||(l=1,o.panel.visible=1,o.input.inputElement.setAttribute("aria-expanded","true")),void A()):F()):F()},F=function(){l&&(l=0,o.panel.visible=0,g=-1,o.input.inputElement.setAttribute("aria-expanded","false"),o.input.inputElement.removeAttribute("aria-activedescendant"))},W=function(e){const t=void 0!==e?e:o.input.text,n=x(t);if(!n.length)return o.input.text="",void F();let r=0;n.forEach(function(e){R(e,0,1)&&r++}),o.input.text="",r&&o.onChange(o),F(),1!=o.showSuggestionsOnFocus&&1==o.allowCustom||I()},R=function(e,t,n){e=h(e);const r=C(e);return r?(t||(a=v(r,e),p&&p(),d&&d(),o.messageLabel.plainText=a,o.messageLabel.visible=1,E(),w(),S(),p=o.after(2500,k),o.onReject(o,e,r)),0):(o.tags.push(e),i=-1,B(),k(),t||(o.onAdd(o,e),n||o.onChange(o)),1);var a},G=function(){i=-1,D()},M=function(e,t){if(1!=o.enabled)return;const n=t.key,r=o.input.text,a=0===o.input.inputElement.selectionStart&&0===o.input.inputElement.selectionEnd;if(1===n.length&&String(o.separators||"").includes(n))return t.preventDefault(),void W();switch(n){case"Enter":t.preventDefault(),l&&g>=0&&void 0!==u[g]?W(u[g]):r.trim()?W():F();break;case"ArrowDown":if(!l){I(),!l||g>=0||!c.length||(g=0,y()),t.preventDefault();break}t.preventDefault(),g=c.length?(g+1)%c.length:-1,y();break;case"ArrowUp":if(!l)break;t.preventDefault(),g=c.length?(g-1+c.length)%c.length:-1,y();break;case"Escape":l?(t.preventDefault(),F()):i>=0&&G();break;case"Backspace":if(r)break;t.preventDefault(),i>=0?o.removeTag(o.tags[i]):o.tags.length&&(i=o.tags.length-1,D());break;case"Delete":if(r||i<0)break;t.preventDefault(),o.removeTag(o.tags[i]);break;case"ArrowLeft":if(!a||!o.tags.length)break;t.preventDefault(),i=i<0?o.tags.length-1:Math.max(0,i-1),D();break;case"ArrowRight":if(i<0)break;t.preventDefault(),i=i>=o.tags.length-1?-1:i+1,D();break;case"Tab":r.trim()&&1==o.allowCustom&&W(),F();break;default:i>=0&&1===n.length&&G()}};return o.getTags=function(){return o.tags.slice()},o.addTag=function(e,t=0){return R(e,t,0)},o.removeTag=function(e,t=0){const n=o.tags.findIndex(function(t){return m(t,String(e))});if(n<0)return 0;const r=o.tags.splice(n,1)[0];return i=-1,B(),l&&z(),t||(o.onRemove(o,r),o.onChange(o)),1},o.setTags=function(e,t=0){o.tags=[],(e||[]).forEach(function(e){R(e,1,1)}),i=-1,B(),k(),l&&z(),t||o.onChange(o)},o.clear=function(e=0){o.setTags([],e)},o.setSuggestions=function(e){o.suggestions=(e||[]).map(h).filter(Boolean),l&&I()},o.setEnabled=function(e){o.enabled=basic.isOn(e)?1:0,o.input.inputElement.disabled=1!=o.enabled,o.css={opacity:1==o.enabled?"1":String(n.disabled.opacity),pointerEvents:1==o.enabled?"":"none"},1!=o.enabled&&F()},o.setPlaceholder=function(e){o.placeholder=e,L()},o.setMaxTags=function(e){o.maxTags=Math.max(0,Number(e)||0),L(),E()},o.focus=function(){o.input.inputElement.focus({preventScroll:!0})},o.blur=function(){o.input.inputElement.blur()},TagInput.injectCss(),o.elem.style.setProperty("--tag-input-placeholder",n.placeholder.textColor),o.contentBox=VGroup({width:"100%",height:"auto",align:"left top",gap:4,position:"relative"}),o.field=HGroup({width:"100%",height:"auto",align:"left center",gap:n.field.gap,padding:n.field.padding,color:n.field.color,border:n.field.border,borderColor:n.field.borderColor,round:n.field.round,clickable:1}),o.field.css={flexWrap:"wrap",minHeight:n.field.minHeight+"px",transition:"border-color 0.15s"},o.field.cursor="text",o.field.role="list",o.field.aria={label:o.ariaLabel},o.input=Input({width:"auto",height:n.input.height,minimal:1,color:"transparent",fontSize:n.input.fontSize,textColor:n.input.textColor}),o.input.elem.classList.add("tag-input-input"),o.input.inputElement.style.padding="0px",o.input.inputElement.style.height="100%",o.input.inputElement.style.width="100%",o.input.inputElement.setAttribute("autocomplete","off"),o.input.inputElement.setAttribute("role","combobox"),o.input.inputElement.setAttribute("aria-autocomplete","list"),o.input.inputElement.setAttribute("aria-expanded","false"),o.input.inputElement.setAttribute("aria-controls",r+"-list"),o.input.inputElement.maxLength=o.maxLength>0?o.maxLength+8:524288,endGroup(),o.bottomRow=HGroup({width:"100%",height:"auto",align:"left center",gap:10}),o.messageLabel=Label({text:"",fontSize:n.message.fontSize,textColor:n.message.textColor,visible:0}),o.messageLabel.css={flex:"1 1 auto",minWidth:"0"},o.messageLabel.role="alert",o.counterLabel=Label({text:"",fontSize:n.counter.fontSize,textColor:n.counter.textColor,visible:0}),o.counterLabel.css={marginLeft:"auto",whiteSpace:"nowrap"},endGroup(),endGroup(),setDefaultContainerBox(page),o.panel=VGroup({width:200,height:"auto",align:"left top",gap:0,color:n.panel.color,border:n.panel.border,borderColor:n.panel.borderColor,round:n.panel.round,padding:n.panel.padding,clickable:1}),o.panel.css.alignItems="stretch",o.panel.boxShadow=n.panel.shadow,o.panel.zIndex=1001,o.list=Box({width:"100%",height:"auto",color:"transparent",scrollY:1,position:"relative"}),o.list.elem.id=r+"-list",o.list.role="listbox",o.list.css.overscrollBehavior="contain",endGroup(),o.panel.visible=0,o.field.on("click",function(){1==o.enabled&&(i=-1,D(),o.input.inputElement.focus({preventScroll:!0}))}),o.field.on("mouseenter",function(){s||1==o.messageLabel.visible||(o.field.borderColor=n.fieldHover.borderColor)}),o.field.on("mouseleave",function(){w()}),o.input.inputElement.addEventListener("focus",function(){s=1,w(),1!=o.showSuggestionsOnFocus&&1==o.allowCustom||I()}),o.input.inputElement.addEventListener("blur",function(){s=0,i=-1,D(),w()}),o.input.inputElement.addEventListener("input",function(){i>=0&&G(),I()}),o.input.inputElement.addEventListener("keydown",function(e){M(0,e)}),o.input.inputElement.addEventListener("paste",function(e){if(1!=o.enabled)return;const t=(e.clipboardData||window.clipboardData).getData("text");x(t).length<=1||(e.preventDefault(),W(o.input.text+t))}),o.panel.on("mousedown",function(e,t){t.preventDefault()}),o.listenTo(document,"pointerdown",function(e,t){o&&(o.elem.contains(t.target)||o.panel.elem.contains(t.target)||F())},!0),o.listenTo(document,"scroll",function(e,t){l&&t.target!==o.list.elem&&A()},!0),o.onPageResize(function(){l&&A()}),o.own(o.panel),o.suggestions=(o.suggestions||[]).map(h).filter(Boolean),o.maxTags=Math.max(0,Number(o.maxTags)||0),(t||[]).forEach(function(e){R(e,1,1)}),B(),o.setEnabled(o.enabled),endObject(o)};TagInput._counter=1,TagInput.escapeHtml=basic.escapeHtml,TagInput.getCloseSvg=function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="'+e+'" stroke-width="2.4" stroke-linecap="round"><path d="M6 6l12 12M18 6 6 18"/></svg>'},TagInput.injectCss=function(){basic.addCss("tag-input-css",".tag-input-input input::placeholder { color: var(--tag-input-placeholder, rgba(0,0,0,0.4)); opacity: 1; }.tag-input-input input { pointer-events: auto; user-select: text; -webkit-user-select: text; }@keyframes tagInputShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }")},TagInput.styles={classic:TagInputDefaults.style,modern:{field:{color:White(1),border:1,borderColor:"#D9DADB",round:10,padding:[8,6],gap:6,minHeight:46},fieldHover:{borderColor:"#A9B8B9"},fieldFocus:{borderColor:"cadetblue"},fieldError:{borderColor:"tomato"},input:{fontSize:15,textColor:Black(.85),minWidth:90,height:30},placeholder:{textColor:Black(.4)},tag:{color:"#DFECEC",border:0,borderColor:"transparent",round:100,padding:[10,0],height:30,gap:5},tagHover:{color:"#CFE2E2"},tagSelected:{color:"cadetblue",textColor:White(1),removeColor:White(.85)},tagText:{fontSize:13,textColor:"#2F5F61"},tagRemove:{color:"#5F9EA0",hoverColor:"tomato"},panel:{color:White(1),border:1,borderColor:"#D9DADB",round:10,padding:4,shadow:"0 8px 24px rgba(0, 0, 0, 0.10)",maxHeight:240},option:{fontSize:14,textColor:Black(.85),round:6,padding:[10,7]},optionActive:{color:"#EEF5F5"},highlight:{color:"#DFECEC"},empty:{fontSize:13,textColor:Black(.45)},message:{fontSize:12,textColor:"tomato"},counter:{fontSize:12,textColor:"cadetblue"},disabled:{opacity:.5}},dark:{field:{color:"#232322",border:1,borderColor:"rgba(255, 255, 255, 0.10)",round:8,padding:[8,6],gap:6,minHeight:44},fieldHover:{borderColor:"rgba(255, 255, 255, 0.30)"},fieldFocus:{borderColor:"#65A293"},fieldError:{borderColor:"#E66767"},input:{fontSize:15,textColor:"rgba(255, 255, 255, 0.90)",minWidth:90,height:28},placeholder:{textColor:"rgba(255, 255, 255, 0.40)"},tag:{color:"rgba(255, 255, 255, 0.10)",border:0,borderColor:"transparent",round:5,padding:[8,0],height:28,gap:4},tagHover:{color:"rgba(255, 255, 255, 0.16)"},tagSelected:{color:"#3D7A6B",textColor:"#FFFFFF",removeColor:"rgba(255, 255, 255, 0.8)"},tagText:{fontSize:13,textColor:"rgba(255, 255, 255, 0.90)"},tagRemove:{color:"rgba(255, 255, 255, 0.50)",hoverColor:"#E66767"},panel:{color:"#232322",border:1,borderColor:"rgba(255, 255, 255, 0.12)",round:10,padding:4,shadow:"0 8px 24px rgba(0, 0, 0, 0.5)",maxHeight:240},option:{fontSize:14,textColor:"rgba(255, 255, 255, 0.85)",round:6,padding:[10,7]},optionActive:{color:"rgba(255, 255, 255, 0.08)"},highlight:{color:"rgba(101, 162, 147, 0.45)"},empty:{fontSize:13,textColor:"rgba(255, 255, 255, 0.45)"},message:{fontSize:12,textColor:"#E66767"},counter:{fontSize:12,textColor:"rgba(255, 255, 255, 0.45)"},disabled:{opacity:.4}}};
2
+ "use strict";const TagInputDefaults={key:"0",width:320,height:"auto",tags:[],suggestions:[],allowCustom:1,showSuggestionsOnFocus:0,maxSuggestions:8,maxTags:0,minLength:1,maxLength:32,lowercase:0,separators:",",placeholder:"Add a tag...",emptyText:"No suggestions",enabled:1,ariaLabel:"Tags",validate:function(e,t){return""},onChange:function(e){},onAdd:function(e,t){},onRemove:function(e,t){},onReject:function(e,t,o){},messages:{duplicate:'"{tag}" is already added.',max:"You can add up to {max} tags.",short:"A tag needs at least {min} characters.",long:"A tag can have up to {max} characters.",notAllowed:"Choose a tag from the list."},styleName:"light",style:{field:{color:White(1),border:1,borderColor:Black(.2),round:6,padding:[8,6],gap:6,minHeight:44},fieldHover:{borderColor:Black(.5)},fieldFocus:{borderColor:"#141414"},fieldError:{borderColor:"#D64545"},input:{fontSize:15,textColor:Black(.85),minWidth:90,height:28},placeholder:{textColor:Black(.4)},tag:{color:Black(.07),border:0,borderColor:"transparent",round:5,padding:[8,0],height:28,gap:4},tagHover:{color:Black(.12)},tagSelected:{color:"#141414",textColor:White(1),removeColor:White(.8)},tagText:{fontSize:13,textColor:Black(.85)},tagRemove:{color:Black(.45),hoverColor:"#D64545"},panel:{color:White(1),border:1,borderColor:Black(.12),round:8,padding:4,shadow:"0 8px 24px rgba(0, 0, 0, 0.12)",maxHeight:240},option:{fontSize:14,textColor:Black(.85),round:5,padding:[10,7]},optionActive:{color:Black(.06)},highlight:{color:"rgba(255, 196, 0, 0.35)",fontFamily:""},empty:{fontSize:13,textColor:Black(.45)},message:{fontSize:12,textColor:"#D64545"},counter:{fontSize:12,textColor:Black(.45)},disabled:{opacity:.5}}},TagInput=function(e={}){basic.applyStylePackage(e,TagInput.styles,TagInputDefaults),mergeIntoIfMissing(e,TagInputDefaults),e.color="transparent";const t=e.tags;e.tags=[];let o=startObject(e);const n=o.style,r="tag-input-"+TagInput._counter++;let a=[],i=-1,l=0,s=0,u=[],c=[],g=-1,p=null,d=null,f=0;const h=function(e){return e=String(e??"").trim().replace(/\s+/g," "),1==o.lowercase&&(e=e.toLocaleLowerCase()),e},m=function(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()},b=function(e){return o.tags.some(function(t){return m(t,e)})},x=function(e){const t=String(o.separators||"");let n=[e];if(t){const o=t.replace(/[\]\\^-]/g,"\\$&");n=e.split(new RegExp("["+o+"\\n\\r]"))}return n.map(h).filter(Boolean)},C=function(e){if(o.maxTags>0&&o.tags.length>=o.maxTags)return"max";if(e.length<o.minLength)return"short";if(o.maxLength>0&&e.length>o.maxLength)return"long";if(b(e))return"duplicate";if(1!=o.allowCustom&&!function(e){return o.suggestions.some(function(t){return m(t,e)})}(e))return"notAllowed";const t=o.validate(e,o);return t?String(t):""},v=function(e,t){return function(e,t){return String(e).replace(/\{(\w+)\}/g,function(e,o){return void 0!==t[o]?t[o]:e})}(o.messages[e]||e,{tag:t,max:"long"==e?o.maxLength:o.maxTags,min:o.minLength})},w=function(){1==o.messageLabel.visible?o.field.borderColor=n.fieldError.borderColor:o.field.borderColor=s?n.fieldFocus.borderColor:n.field.borderColor},S=function(){o.maxTags>0?(o.counterLabel.text=o.tags.length+" / "+o.maxTags,o.counterLabel.visible=1):o.counterLabel.visible=0,o.bottomRow.visible=1==o.counterLabel.visible||1==o.messageLabel.visible?1:0},k=function(){o.field.css.animation="none",o.field.elem.offsetWidth,o.field.css.animation="tagInputShake 0.3s",d=o.after(350,function(){d=null,o.field.css.animation="none"})},T=function(){p&&p(),p=null,o.messageLabel.visible=0,S(),w()},E=function(){const e=o.maxTags>0&&o.tags.length>=o.maxTags;o.input.inputElement.placeholder=e||o.tags.length?"":o.placeholder,o.input.inputElement.setAttribute("aria-label",o.placeholder||o.ariaLabel),o.input.css={flex:e?"0 0 10px":"1 1 "+n.input.minWidth+"px",minWidth:e?"10px":n.input.minWidth+"px"}},L=function(e,t){const o=t===i;e.chip.color=o?n.tagSelected.color:n.tag.color,e.chip.borderColor=o?n.tagSelected.color:n.tag.borderColor,e.label.textColor=o?n.tagSelected.textColor:n.tagText.textColor,e.remove.text=TagInput.getCloseSvg(o?n.tagSelected.removeColor:n.tagRemove.color),e.chip.aria={selected:o?"true":"false"}},I=function(){a.forEach(L)},y=function(){f||(f=1,a.forEach(function(e){e.chip.remove()}),a=[],o.tags.forEach(function(e,t){const r=createIn(o.field,function(){return function(e){const t=HGroup({width:"auto",height:n.tag.height,align:"left center",gap:n.tag.gap,padding:n.tag.padding,color:n.tag.color,border:n.tag.border,borderColor:n.tag.borderColor,round:n.tag.round,clickable:1});t.shrink=0,t.css={maxWidth:"100%",transition:"background-color 0.15s"},t.role="listitem",t.aria={label:e},t.elem.title=e;const o=Label({plainText:e,fontSize:n.tagText.fontSize,textColor:n.tagText.textColor});o.ellipsis=1,o.css.minWidth="0";const r=Label({text:TagInput.getCloseSvg(n.tagRemove.color),width:14,height:14,clickable:1});return r.lineHeight="0",r.shrink=0,r.cursor="pointer",r.css.borderRadius="3px",r.role="button",r.aria={label:"Remove "+e},endGroup(),{tag:e,chip:t,label:o,remove:r}}(e)});a.push(r),o.field.elem.insertBefore(r.chip.elem,o.input.elem),function(e,t){e.chip.on("mouseenter",function(){t!==i&&(e.chip.color=n.tagHover.color)}),e.chip.on("mouseleave",function(){L(e,t)}),e.chip.on("click",function(e,n){n.stopPropagation(),i=t,I(),o.input.inputElement.focus({preventScroll:!0})}),e.remove.on("mouseenter",function(){e.remove.text=TagInput.getCloseSvg(n.tagRemove.hoverColor)}),e.remove.on("mouseleave",function(){L(e,t)}),e.remove.on("click",function(t,n){n.stopPropagation(),1==o.enabled&&(o.removeTag(e.tag),o.input.inputElement.focus({preventScroll:!0}))})}(r,t)}),f=0,I(),E(),S())},A=function(e){const t=o.input.text.trim(),r=TagInput.escapeHtml(e);if(!t)return r;const a=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());if(a<0)return r;const i=TagInput.escapeHtml(e.slice(0,a)),l=TagInput.escapeHtml(e.slice(a,a+t.length)),s=TagInput.escapeHtml(e.slice(a+t.length));let u="background:"+n.highlight.color+"; color: inherit; border-radius: 3px";return n.highlight.fontFamily&&(u+="; font-family: "+n.highlight.fontFamily),i+"<mark style='"+u+"'>"+l+"</mark>"+s},F=function(){c.forEach(function(e,t){e.color=t===g?n.optionActive.color:"transparent",e.aria={selected:t===g?"true":"false"}});const e=c[g];e?(o.input.inputElement.setAttribute("aria-activedescendant",e.elem.id),e.elem.scrollIntoView({block:"nearest"})):o.input.inputElement.removeAttribute("aria-activedescendant")},B=function(){var e,t;u=function(){const e=o.input.text.trim().toLocaleLowerCase(),t=o.suggestions.filter(function(t){return!b(t)&&(!e||t.toLocaleLowerCase().includes(e))}),n=function(t){return Number(t.toLocaleLowerCase().startsWith(e))};return e&&t.sort(function(e,t){return n(t)-n(e)}),t.slice(0,o.maxSuggestions)}(),c=[],g=u.length&&1!=o.allowCustom?0:-1,e=o.list,t=function(){u.length?u.forEach(function(e,t){const a=HGroup({width:"100%",height:"auto",align:"left center",padding:n.option.padding,round:n.option.round,clickable:1});a.elem.id=r+"-option-"+t,a.role="option",a.cursor="pointer",a.shrink=0;const i=Label({text:A(e),fontSize:n.option.fontSize,textColor:n.option.textColor});i.ellipsis=1,i.css.maxWidth="100%",endGroup(),c.push(a),a.on("mouseenter",function(){g=t,F()}),a.on("click",function(){W(e),o.input.inputElement.focus({preventScroll:!0})})}):Label({plainText:o.emptyText,fontSize:n.empty.fontSize,textColor:n.empty.textColor,padding:[10,8]})},e.wrapper&&e.wrapper.remove(),e.wrapper=createIn(e,function(){const e=VGroup({width:"100%",height:"auto",align:"left top",gap:0,position:"relative"});return e.css.alignItems="stretch",t(),endGroup(),e}),F()},z=function(){const e=o.field.elem.getBoundingClientRect(),t=Math.max(withPageZoom(e.width),160);o.panel.width=t,o.list.css.maxHeight=n.panel.maxHeight+"px";const r=o.panel.elem.offsetHeight,a=page.height-withPageZoom(e.bottom)-4-8,i=withPageZoom(e.top)-4-8,l=function(e){o.list.css.maxHeight=Math.max(60,n.panel.maxHeight-e)+"px"};let s=withPageZoom(e.bottom)+4;if(r>a&&i>a){const t=r-i;t>0&&l(t),s=withPageZoom(e.top)-o.panel.elem.offsetHeight-4}else r>a&&l(r-a);let u=withPageZoom(e.left);u=Math.max(8,Math.min(u,page.width-t-8)),o.panel.left=u,o.panel.top=Math.max(8,s)},H=function(){if(1!=o.enabled)return;const e=o.input.text.trim();return o.suggestions.length&&(e||1==o.showSuggestionsOnFocus||1!=o.allowCustom)?(B(),u.length||1!=o.allowCustom?(l||(l=1,o.panel.zIndex=basic.zIndexAbove(o,1001),o.panel.visible=1,o.input.inputElement.setAttribute("aria-expanded","true")),void z()):D()):D()},D=function(){l&&(l=0,o.panel.visible=0,g=-1,o.input.inputElement.setAttribute("aria-expanded","false"),o.input.inputElement.removeAttribute("aria-activedescendant"))},W=function(e){const t=void 0!==e?e:o.input.text,n=x(t);if(!n.length)return o.input.text="",void D();let r=0;n.forEach(function(e){R(e,0,1)&&r++}),o.input.text="",r&&o.onChange(o),D(),1!=o.showSuggestionsOnFocus&&1==o.allowCustom||H()},R=function(e,t,n){e=h(e);const r=C(e);return r?(t||(a=v(r,e),p&&p(),d&&d(),o.messageLabel.plainText=a,o.messageLabel.visible=1,S(),w(),k(),p=o.after(2500,T),o.onReject(o,e,r)),0):(o.tags.push(e),i=-1,y(),T(),t||(o.onAdd(o,e),n||o.onChange(o)),1);var a},M=function(){i=-1,I()},O=function(e,t){if(1!=o.enabled)return;const n=t.key,r=o.input.text,a=0===o.input.inputElement.selectionStart&&0===o.input.inputElement.selectionEnd;if(1===n.length&&String(o.separators||"").includes(n))return t.preventDefault(),void W();switch(n){case"Enter":t.preventDefault(),l&&g>=0&&void 0!==u[g]?W(u[g]):r.trim()?W():D();break;case"ArrowDown":if(!l){H(),!l||g>=0||!c.length||(g=0,F()),t.preventDefault();break}t.preventDefault(),g=c.length?(g+1)%c.length:-1,F();break;case"ArrowUp":if(!l)break;t.preventDefault(),g=c.length?(g-1+c.length)%c.length:-1,F();break;case"Escape":l?(t.preventDefault(),D()):i>=0&&M();break;case"Backspace":if(r)break;t.preventDefault(),i>=0?o.removeTag(o.tags[i]):o.tags.length&&(i=o.tags.length-1,I());break;case"Delete":if(r||i<0)break;t.preventDefault(),o.removeTag(o.tags[i]);break;case"ArrowLeft":if(!a||!o.tags.length)break;t.preventDefault(),i=i<0?o.tags.length-1:Math.max(0,i-1),I();break;case"ArrowRight":if(i<0)break;t.preventDefault(),i=i>=o.tags.length-1?-1:i+1,I();break;case"Tab":r.trim()&&1==o.allowCustom&&W(),D();break;default:i>=0&&1===n.length&&M()}};return o.getTags=function(){return o.tags.slice()},o.addTag=function(e,t=0){return R(e,t,0)},o.removeTag=function(e,t=0){const n=o.tags.findIndex(function(t){return m(t,String(e))});if(n<0)return 0;const r=o.tags.splice(n,1)[0];return i=-1,y(),l&&B(),t||(o.onRemove(o,r),o.onChange(o)),1},o.setTags=function(e,t=0){o.tags=[],(e||[]).forEach(function(e){R(e,1,1)}),i=-1,y(),T(),l&&B(),t||o.onChange(o)},o.clear=function(e=0){o.setTags([],e)},o.setSuggestions=function(e){o.suggestions=(e||[]).map(h).filter(Boolean),l&&H()},o.setEnabled=function(e){o.enabled=basic.isOn(e)?1:0,o.input.inputElement.disabled=1!=o.enabled,o.css={opacity:1==o.enabled?"1":String(n.disabled.opacity),pointerEvents:1==o.enabled?"":"none"},1!=o.enabled&&D()},o.setPlaceholder=function(e){o.placeholder=e,E()},o.setMaxTags=function(e){o.maxTags=Math.max(0,Number(e)||0),E(),S()},o.focus=function(){o.input.inputElement.focus({preventScroll:!0})},o.blur=function(){o.input.inputElement.blur()},TagInput.injectCss(),o.elem.style.setProperty("--tag-input-placeholder",n.placeholder.textColor),o.contentBox=VGroup({width:"100%",height:"auto",align:"left top",gap:4,position:"relative"}),o.field=HGroup({width:"100%",height:"auto",align:"left center",gap:n.field.gap,padding:n.field.padding,color:n.field.color,border:n.field.border,borderColor:n.field.borderColor,round:n.field.round,clickable:1}),o.field.css={flexWrap:"wrap",minHeight:n.field.minHeight+"px",transition:"border-color 0.15s"},o.field.cursor="text",o.field.role="list",o.field.aria={label:o.ariaLabel},o.input=Input({width:"auto",height:n.input.height,minimal:1,color:"transparent",fontSize:n.input.fontSize,textColor:n.input.textColor}),o.input.elem.classList.add("tag-input-input"),o.input.inputElement.style.padding="0px",o.input.inputElement.style.height="100%",o.input.inputElement.style.width="100%",o.input.inputElement.setAttribute("autocomplete","off"),o.input.inputElement.setAttribute("role","combobox"),o.input.inputElement.setAttribute("aria-autocomplete","list"),o.input.inputElement.setAttribute("aria-expanded","false"),o.input.inputElement.setAttribute("aria-controls",r+"-list"),o.input.inputElement.maxLength=o.maxLength>0?o.maxLength+8:524288,endGroup(),o.bottomRow=HGroup({width:"100%",height:"auto",align:"left center",gap:10}),o.messageLabel=Label({text:"",fontSize:n.message.fontSize,textColor:n.message.textColor,visible:0}),o.messageLabel.css={flex:"1 1 auto",minWidth:"0"},o.messageLabel.role="alert",o.counterLabel=Label({text:"",fontSize:n.counter.fontSize,textColor:n.counter.textColor,visible:0}),o.counterLabel.css={marginLeft:"auto",whiteSpace:"nowrap"},endGroup(),endGroup(),setDefaultContainerBox(page),o.panel=VGroup({width:200,height:"auto",align:"left top",gap:0,color:n.panel.color,border:n.panel.border,borderColor:n.panel.borderColor,round:n.panel.round,padding:n.panel.padding,clickable:1}),o.panel.css.alignItems="stretch",o.panel.boxShadow=n.panel.shadow,o.panel.zIndex=1001,o.list=Box({width:"100%",height:"auto",color:"transparent",scrollY:1,position:"relative"}),o.list.elem.id=r+"-list",o.list.role="listbox",o.list.css.overscrollBehavior="contain",endGroup(),o.panel.visible=0,o.field.on("click",function(){1==o.enabled&&(i=-1,I(),o.input.inputElement.focus({preventScroll:!0}))}),o.field.on("mouseenter",function(){s||1==o.messageLabel.visible||(o.field.borderColor=n.fieldHover.borderColor)}),o.field.on("mouseleave",function(){w()}),o.input.inputElement.addEventListener("focus",function(){s=1,w(),1!=o.showSuggestionsOnFocus&&1==o.allowCustom||H()}),o.input.inputElement.addEventListener("blur",function(){s=0,i=-1,I(),w()}),o.input.inputElement.addEventListener("input",function(){i>=0&&M(),H()}),o.input.inputElement.addEventListener("keydown",function(e){O(0,e)}),o.input.inputElement.addEventListener("paste",function(e){if(1!=o.enabled)return;const t=(e.clipboardData||window.clipboardData).getData("text");x(t).length<=1||(e.preventDefault(),W(o.input.text+t))}),o.panel.on("mousedown",function(e,t){t.preventDefault()}),o.listenTo(document,"pointerdown",function(e,t){o&&(o.elem.contains(t.target)||o.panel.elem.contains(t.target)||D())},!0),o.listenTo(document,"scroll",function(e,t){l&&t.target!==o.list.elem&&z()},!0),o.onPageResize(function(){l&&z()}),o.own(o.panel),o.suggestions=(o.suggestions||[]).map(h).filter(Boolean),o.maxTags=Math.max(0,Number(o.maxTags)||0),(t||[]).forEach(function(e){R(e,1,1)}),y(),o.setEnabled(o.enabled),endObject(o)};TagInput._counter=1,TagInput.escapeHtml=basic.escapeHtml,TagInput.getCloseSvg=function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="'+e+'" stroke-width="2.4" stroke-linecap="round"><path d="M6 6l12 12M18 6 6 18"/></svg>'},TagInput.injectCss=function(){basic.addCss("tag-input-css",".tag-input-input input::placeholder { color: var(--tag-input-placeholder, rgba(0,0,0,0.4)); opacity: 1; }.tag-input-input input { pointer-events: auto; user-select: text; -webkit-user-select: text; }@keyframes tagInputShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }")},TagInput.styles={light:TagInputDefaults.style,modern:{field:{color:White(1),border:1,borderColor:"#D9DADB",round:10,padding:[8,6],gap:6,minHeight:46},fieldHover:{borderColor:"#A9B8B9"},fieldFocus:{borderColor:"cadetblue"},fieldError:{borderColor:"tomato"},input:{fontSize:15,textColor:Black(.85),minWidth:90,height:30},placeholder:{textColor:Black(.4)},tag:{color:"#DFECEC",border:0,borderColor:"transparent",round:100,padding:[10,0],height:30,gap:5},tagHover:{color:"#CFE2E2"},tagSelected:{color:"cadetblue",textColor:White(1),removeColor:White(.85)},tagText:{fontSize:13,textColor:"#2F5F61"},tagRemove:{color:"#5F9EA0",hoverColor:"tomato"},panel:{color:White(1),border:1,borderColor:"#D9DADB",round:10,padding:4,shadow:"0 8px 24px rgba(0, 0, 0, 0.10)",maxHeight:240},option:{fontSize:14,textColor:Black(.85),round:6,padding:[10,7]},optionActive:{color:"#EEF5F5"},highlight:{color:"#DFECEC"},empty:{fontSize:13,textColor:Black(.45)},message:{fontSize:12,textColor:"tomato"},counter:{fontSize:12,textColor:"cadetblue"},disabled:{opacity:.5}},dark:{field:{color:"#232322",border:1,borderColor:"rgba(255, 255, 255, 0.10)",round:8,padding:[8,6],gap:6,minHeight:44},fieldHover:{borderColor:"rgba(255, 255, 255, 0.30)"},fieldFocus:{borderColor:"#65A293"},fieldError:{borderColor:"#E66767"},input:{fontSize:15,textColor:"rgba(255, 255, 255, 0.90)",minWidth:90,height:28},placeholder:{textColor:"rgba(255, 255, 255, 0.40)"},tag:{color:"rgba(255, 255, 255, 0.10)",border:0,borderColor:"transparent",round:5,padding:[8,0],height:28,gap:4},tagHover:{color:"rgba(255, 255, 255, 0.16)"},tagSelected:{color:"#3D7A6B",textColor:"#FFFFFF",removeColor:"rgba(255, 255, 255, 0.8)"},tagText:{fontSize:13,textColor:"rgba(255, 255, 255, 0.90)"},tagRemove:{color:"rgba(255, 255, 255, 0.50)",hoverColor:"#E66767"},panel:{color:"#232322",border:1,borderColor:"rgba(255, 255, 255, 0.12)",round:10,padding:4,shadow:"0 8px 24px rgba(0, 0, 0, 0.5)",maxHeight:240},option:{fontSize:14,textColor:"rgba(255, 255, 255, 0.85)",round:6,padding:[10,7]},optionActive:{color:"rgba(255, 255, 255, 0.08)"},highlight:{color:"rgba(101, 162, 147, 0.45)"},empty:{fontSize:13,textColor:"rgba(255, 255, 255, 0.45)"},message:{fontSize:12,textColor:"#E66767"},counter:{fontSize:12,textColor:"rgba(255, 255, 255, 0.45)"},disabled:{opacity:.4}}},TagInput.styles.classic=TagInput.styles.light,TagInput.createMinimalStyle=function(e){return{field:{color:"transparent",border:1,borderColor:e.edge,round:4,padding:[6,3],gap:4,minHeight:28},fieldHover:{borderColor:e.edgeHover},fieldFocus:{borderColor:e.ink},fieldError:{borderColor:e.danger},input:{fontSize:13,textColor:e.text,minWidth:80,height:20},placeholder:{textColor:e.faintText},tag:{color:"transparent",border:1,borderColor:e.line,round:3,padding:[6,0],height:20,gap:3},tagHover:{color:e.hover},tagSelected:{color:e.ink,textColor:e.onInk,removeColor:e.onInk},tagText:{fontSize:12,textColor:e.text},tagRemove:{color:e.softText,hoverColor:e.danger},panel:{color:e.ground,border:1,borderColor:e.line,round:4,padding:4,shadow:"none",maxHeight:200},option:{fontSize:13,textColor:e.text,round:3,padding:[8,5]},optionActive:{color:e.hover},highlight:{color:"transparent",fontFamily:"opensans-bold"},empty:{fontSize:12,textColor:e.softText},message:{fontSize:11,textColor:e.danger},counter:{fontSize:11,textColor:e.softText},disabled:{opacity:.4}}},TagInput.MINIMAL_COLORS={ground:"#FFFFFF",text:Black(.85),softText:Black(.55),faintText:Black(.54),line:Black(.2),edge:Black(.45),edgeHover:Black(.65),ink:"#1F1F1F",onInk:"#FFFFFF",hover:Black(.05),danger:"#C24A36"},TagInput.styles.minimal=TagInput.createMinimalStyle(TagInput.MINIMAL_COLORS),TagInput.MINIMAL_DARK_COLORS={ground:"#1A1A19",text:White(.88),softText:White(.55),faintText:White(.48),line:White(.18),edge:White(.42),edgeHover:White(.62),ink:"#EDEDEB",onInk:"#1A1A19",hover:White(.07),danger:"#FF9F93"},TagInput.styles.minimalDark=TagInput.createMinimalStyle(TagInput.MINIMAL_DARK_COLORS);
@@ -0,0 +1,2 @@
1
+ /* Bismillah */
2
+ "use strict";const TextAreaFieldDefaults={type:"textarea",titleText:"MESSAGE",placeholder:"How can we help you?",required:1,minCharCount:80,showCount:1,lengthText:"length: ",warningText:"The entered text must be longer than 80",warningColor:"#E5885E",maxLength:255,height:170,rightPadding:5,unitStyle:{padding:[12,4],color:"#373836EE",textColor:"white"},scrollBarStyle:{bar_border:0,bar_round:2,bar_borderColor:"rgba(0, 0, 0, 1)",bar_width:4,bar_mouseOverWidth:4,bar_mouseOverColor:"#373836",bar_opacity:.4,bar_mouseOverOpacity:.9,bar_padding:3,bar_color:"#373836",neverHide:1,showDots:1}},TextAreaField=function(e={}){const t=e.rightPadding;basic.applyStylePackage(e,TextField.styles,TextFieldDefaults),e.rightPadding=void 0!==t?t:TextAreaFieldDefaults.rightPadding,mergeIntoIfMissing(e,TextAreaFieldDefaults),e.createInput=0,e.showDescription=0,e.descriptionText="",0!=e.showCount&&(e.showUnit=1);const n=startExtendedObject(TextField,e),i=document.createElement("textarea");n.textareaElem=i;const o=function(){if(!n.showCount)return;const e=n.getValue().length;n.setUnitText(`${n.lengthText}${e}`),n.unit.opacity=e>n.minCharCount?0:1},a=function(e){e.style.height="auto",0!==e.scrollHeight&&(e.style.height=e.scrollHeight+"px",n.after(0,()=>n.inputBox.scrollBar.refreshScroll()))};n.setValue=function(e){e!=i.value&&(n.value=e,i.value=e,n.checkIfInputIsRequiredAndEmpty(),n.showWarningIfNotValid(n.isValid()),o(),a(i))},n.getValue=function(){return i.value},n.setPlaceholder=function(e){n.placeholder=e,i.placeholder=e},n.setMaxLength=function(e){n.maxLength=e,i.maxLength=e},n.isValid=function(){return n.getValue().length>n.minCharCount?1:0};const r="above"===n.titlePosition,l=6;return n.inputGroup.gap=r?n.titleGap:8,n.inputGroup.height="100%",n.inputBox.color="transparent",n.inputBox.height=r?"calc(100% - "+n.fieldTop+"px)":"calc(100% - 20px)",i.classList.add("basic_textbox"),i.classList.add("minimal"),i.style.cssText="background-color:transparent;font-size:"+n.inputFontSize+"px;resize:none;width:100%;padding:0px 0px;box-sizing:border-box",i.style.overflow="hidden",r&&function(){const e=n.scrollBarStyle,t=1+(e.bar_padding+Math.max(e.bar_width,e.bar_mouseOverWidth))+2,o=t+n.warningBall.width+2-1;n.inputGroup.padding=[n.leftPadding,0,1,0],n.warningBall.right=t,i.style.padding=l+"px "+o+"px "+l+"px 0px"}(),i.style.minHeight="calc(100% - 4px)",i.style.height="auto",i.placeholder=n.placeholder,n.applyTextColors(i),i.maxLength=n.maxLength,n.inputBox.elem.appendChild(i),n.inputBox.clickable=1,i.value=n.value,n.inputBox.scrollY=1,n.inputBox.scrollBar=ScrollBar(Object.assign({scrollableBox:n.inputBox},n.scrollBarStyle)),n.focusFunc=function(){n.paintFocus(1),n.onFocus(n)},i.addEventListener("focus",function(){n.focusFunc()}),n.blurFunc=function(){n.paintFocus(0),n.onBlur(n)},i.addEventListener("blur",function(){n.blurFunc()}),n.inputFunc=function(){n.applyFormattedValueToInput(),n.checkIfInputIsRequiredAndEmpty(),n.showWarningIfNotValid(n.isValid()),o(),a(i),n.onChange(n)},i.addEventListener("input",function(){n.inputFunc()}),n.checkIfInputIsRequiredAndEmpty(),o(),n.onResize(function(){a(i)}),endExtendedObject(n)};
@@ -0,0 +1,2 @@
1
+ /* Bismillah */
2
+ "use strict";const TextFieldDefaults={key:"0",styleName:"light",type:"text",width:350,height:"auto",leftPadding:20,rightPadding:60,titleFontSize:16,inputFontSize:20,inputHeight:40,fieldPadding:14,descriptionFontSize:14,titlePosition:"inside",titleGap:4,titleText:"INPUT NAME",placeholder:"input value",value:"",maxLength:30,showDescription:0,descriptionText:"",allowHtml:0,backgroundColor:"#F6F6F6",focusBackgroundColor:"#F3F4E0",hoverBackgroundColor:"",lineColor:"#373836",focusLineColor:"#65A293",backBorderColor:Black(0),focusBackBorderColor:Black(0),hoverBackBorderColor:"",backBorderTopRound:2,backBorderBottomRound:0,titleTextColor:"#555555",titleBold:0,titleLetterSpacing:"",inputTextColor:"#373836",inputColorScheme:"",placeholderColor:"",descriptionTextColor:"#999999",warningBallBorderColor:"#373836",required:0,requiredText:"Required",requiredColor:"white",warningText:"Invalid value format",warningColor:"#E5885E",animatedWarningBall:1,warningBallType:"color",warningBallSize:16,warningBallBorder:2,warningBorderColor:"",warningIconSize:20,requiredIconFile:"",warningIconFile:"",requiredIconColor:"#373836",tooltipStyle:{color:"",hintColor:"white",textColor:"#141414",border:1,borderColor:"#141414",round:4,fontSize:14},selectStyle:{color:"rgba(0,0,0,0.05)",round:3,spacing:0,invertIconColor:0,listBackgroundColor:"whitesmoke",listTextColor:"rgba(0, 0, 0, 0.8)",listOverTextColor:"#65A293",listBorderColor:"rgba(0, 0, 0, 0.6)"},showLeftBox:0,showRightBox:0,showUnit:0,createInput:1,unitText:"",unitStyle:{padding:[12,4],color:"#373836",textColor:"white",round:40,fontSize:14},onFocus:function(o){},onBlur:function(o){},onChange:function(o){}},TextField=function(o={}){basic.applyStylePackage(o,TextField.styles,TextFieldDefaults),mergeIntoIfMissing(o,TextFieldDefaults);const t="auto"===String(o.height),e=startObject(o);""!=e.descriptionText&&(e.showDescription=1),1!=e.showUnit&&""==e.unitText||(e.showUnit=1,e.showRightBox=1);const r="scale(0.3)",n="above"===e.titlePosition,l=n&&""!==String(e.titleText),i=Math.round(1.35*e.titleFontSize),a=l?i+e.titleGap:0;e.status=0,e.fieldTop=a;const c=function(o,t){const r=null==t?"":String(t);1==e.allowHtml?o.text=r:o.plainText=r},d=function(){0!=e.status&&(e.warningBall.opacity=1,e.warningBall.clickable=1,e.warningBall.css.transform="scale(1)")},u=function(){1==e.animatedWarningBall&&e.warningBall.dontMotion(),e.warningBall.opacity=0,e.warningBall.clickable=0,e.warningBall.css.transform=r},s=function(o,t){return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="11" fill="'+t+'"/>'+("required"==o?'<path d="M12 6.5v11M7.2 9.25l9.6 5.5M7.2 14.75l9.6-5.5" stroke="white" stroke-width="2.2" stroke-linecap="round"/>':'<path d="M12 6.5v7" stroke="white" stroke-width="2.6" stroke-linecap="round"/><circle cx="12" cy="17.4" r="1.5" fill="white"/>')+"</svg>")},g=function(o){if("icon"!=e.warningBallType)return void(e.warningBall.color="required"==o?e.requiredColor:e.warningColor);const t=function(o){return"required"==o?e.requiredIconFile||s("required",e.requiredIconColor):e.warningIconFile||s("warning",e.warningColor)}(o);e.warningBall.icon.imageElement.getAttribute("src")!=t&&e.warningBall.icon.load(t)},p=function(o,t,r){u(),g(o),e.warningBall.tooltip&&(e.warningBall.tooltip.setHintText(t),e.warningBall.tooltip.setLbl_color(e.tooltipStyle.color||r)),1!=e.animatedWarningBall?d():e.warningBall.withMotion(d)},C=function(){if(e.required&&0===e.getValue().length)return e.status=1,void p("required",e.requiredText,e.requiredColor);e.status=2,p("warning",e.warningText,e.warningColor),e.warningBorderColor&&b()},B=function(){u(),e.status=0,e.warningBorderColor&&b()};e.applyFormattedValueToInput=function(o){},e.checkIfInputIsRequiredAndEmpty=function(){e.required&&0===e.getValue().length?C():B()},e.isValid=function(){return 1},e.checkInputValue=function(){e.checkIfInputIsRequiredAndEmpty(),e.showWarningIfNotValid(e.isValid())},e.showWarningIfNotValid=function(o){0!==e.getValue().length&&(o?B():(window.lblHint&&(window.lblHint.top=-1e3),C()))},e.setTitleText=function(o){e.titleText=o,e.title&&void 0!==e.title.text&&(c(e.title,o),e.input&&e.input.inputElement.setAttribute("aria-label",e.titleText))},e.setDescriptionText=function(o){e.descriptionText=o,e.description&&void 0!==e.description.text&&c(e.description,o)},e.setMaxLength=function(o){e.maxLength=o,e.input.inputElement.maxLength=o},e.setPlaceholder=function(o){e.placeholder=o,e.input.inputElement.placeholder=o},e.setValue=function(o){o!=e.input.text&&(e.value=o,e.input.text=o,e.checkIfInputIsRequiredAndEmpty(),e.showWarningIfNotValid(e.isValid()))},e.getValue=function(){return e.input.text};let h=0,x=0;const f=function(){return h?e.focusBackgroundColor:x&&e.hoverBackgroundColor?e.hoverBackgroundColor:e.backgroundColor},k=function(o){n&&(o.top=a,o.height=t?e.inputHeight:"calc(100% - "+a+"px)")},b=function(){e.background&&(e.background.borderColor=h?e.focusBackBorderColor:2==e.status&&e.warningBorderColor?e.warningBorderColor:x&&e.hoverBackBorderColor?e.hoverBackBorderColor:e.backBorderColor)};e.paintFocus=function(o){h=o?1:0,e.background.color=f(),b(),e.line.color=o?e.focusLineColor:e.lineColor},e.applyTextColors=function(o){o.style.color=e.inputTextColor,e.placeholderColor&&TextField.setPlaceholderColor(o,e.placeholderColor),e.inputColorScheme&&(o.style.colorScheme=e.inputColorScheme)},e.setBackgroundColor=function(o){e.backgroundColor=o,e.background.color=f()},e.setFocusBackgroundColor=function(o){e.focusBackgroundColor=o},e.setLineColor=function(o){e.lineColor=o,e.line.color=o},e.setFocusLineColor=function(o){e.focusLineColor=o},e.setRequired=function(o){e.required=o?1:0,e.checkInputValue()},e.setRequiredText=function(o){e.requiredText=o},e.setWarningText=function(o){e.warningText=o},e.setWarningColor=function(o){e.warningColor=o},e.setRequiredIcon=function(o){e.requiredIconFile=o,"icon"==e.warningBallType&&1==e.status&&g("required")},e.setWarningIcon=function(o){e.warningIconFile=o,"icon"==e.warningBallType&&2==e.status&&g("warning")},e.setUnitText=function(o){e.unitText=o,e.unit&&void 0!==e.unit.text&&c(e.unit,o)},e.background=Box(0,0,"100%","100%",{color:e.backgroundColor,border:1,borderColor:e.backBorderColor}),e.background.css={borderTopRightRadius:e.backBorderTopRound+"px",borderTopLeftRadius:e.backBorderTopRound+"px",borderBottomRightRadius:e.backBorderBottomRound+"px",borderBottomLeftRadius:e.backBorderBottomRound+"px"},n&&(e.background.top=a,e.background.height=t?e.inputHeight:"calc(100% - "+a+"px)"),e.line=Box({left:0,bottom:0,width:"100%",height:2,color:e.lineColor}),n&&t&&(e.line.css={bottom:"auto",top:a+e.inputHeight-2+"px"}),e.inputGroup=AutoLayout({flow:"vertical",align:"left top",height:"auto",padding:n?[e.leftPadding,0,e.rightPadding,0]:[e.leftPadding,e.fieldPadding,e.rightPadding,e.fieldPadding],gap:n?e.titleGap:0}),that.position="relative",e.title=Label({fontSize:e.titleFontSize,textColor:e.titleTextColor,bold:e.titleBold}),c(e.title,e.titleText),e.titleLetterSpacing&&(that.css.letterSpacing=e.titleLetterSpacing),n&&(that.css={lineHeight:i+"px",marginLeft:-e.leftPadding+"px",whiteSpace:"nowrap"}),n&&!l&&(that.visible=0),1==e.createInput?(e.input=Input({text:e.value,minimal:1,fontSize:e.inputFontSize,height:e.inputHeight,color:"transparent",width:"100%",textColor:e.inputTextColor}),that.inputElement.style.padding="0px 0px",that.inputElement.placeholder=e.placeholder,e.applyTextColors(that.inputElement),that.inputElement.maxLength=e.maxLength,that.inputElement.setAttribute("aria-label",e.titleText)):e.inputBox=Box({color:"transparent",height:e.inputHeight,width:"100%"}),1==e.showDescription&&(e.description=Label({fontSize:e.descriptionFontSize,textColor:e.descriptionTextColor}),c(e.description,e.descriptionText),e.description.css.fontStyle="italic",n&&(e.description.css={marginLeft:-e.leftPadding+"px"})),endAutoLayout(),1==e.showRightBox&&(e.rightBox=AutoLayout({flow:"horizontal",align:"right bottom",padding:[5,7],gap:0}),1==e.showUnit&&(e.unit=Label(e.unitStyle),c(e.unit,e.unitText)),endAutoLayout(),k(e.rightBox)),1==e.showLeftBox&&(e.leftBox=AutoLayout({flow:"horizontal",align:"left center",padding:[20,n?0:14],gap:6}),endAutoLayout(),k(e.leftBox));const w="icon"==e.warningBallType,F=w?e.warningIconSize:e.warningBallSize,T=n?Math.round((e.rightPadding-F)/2):5;if(e.warningBall=Box({right:T,top:n?a+Math.round((e.inputHeight-F)/2):5,width:F,height:F,border:w?0:e.warningBallBorder,color:w?"transparent":e.requiredColor,borderColor:e.warningBallBorderColor,round:100,opacity:0}),w&&(e.warningBall.icon=Icon({left:0,top:0,width:"100%",height:"100%"}),e.warningBall.add(that)),e.warningBall.css.transform=r,1==e.animatedWarningBall&&e.warningBall.setMotion("opacity 0.2s, transform 0.2s"),"undefined"!=typeof Tooltip&&(e.warningBall.tooltip=Tooltip({target:e.warningBall,hintText:"",hintPosition:"left",lbl_border:e.tooltipStyle.border,lbl_color:e.tooltipStyle.color||"white",lbl_textColor:e.tooltipStyle.textColor,lbl_borderColor:e.tooltipStyle.borderColor,lbl_fontSize:e.tooltipStyle.fontSize,lbl_round:e.tooltipStyle.round})),1==e.createInput){const o=e.input.inputElement;e.focusFunc=function(){e.paintFocus(1),e.onFocus(e)},o.addEventListener("focus",function(){e.focusFunc()}),e.blurFunc=function(){e.paintFocus(0),e.onBlur(e)},o.addEventListener("blur",function(){e.blurFunc()}),e.inputFunc=function(){e.applyFormattedValueToInput(),e.checkIfInputIsRequiredAndEmpty(),e.showWarningIfNotValid(e.isValid()),e.value=o.value,e.onChange(e)},o.addEventListener("input",function(){e.inputFunc()}),e.checkInputValue()}return e.onHoverChange(function(o,t){x=t?1:0,e.background.color=f(),e.hoverBackBorderColor&&b()}),endObject(e)};TextField.setPlaceholderColor=function(o,t){basic.addCss("text-field-placeholder",".text-field-placeholder::placeholder { color: var(--text-field-placeholder); opacity: 1; }"),o.classList.add("text-field-placeholder"),o.style.setProperty("--text-field-placeholder",t)},TextField.styles={light:{style:{},leftPadding:15,rightPadding:45,titleFontSize:13,inputFontSize:15,inputHeight:44,descriptionFontSize:13,titlePosition:"above",titleGap:6,backgroundColor:"#FFFFFF",focusBackgroundColor:"#FFFFFF",hoverBackgroundColor:"",lineColor:"transparent",focusLineColor:"transparent",backBorderColor:Black(.12),focusBackBorderColor:"#3D7A6B",hoverBackBorderColor:Black(.3),backBorderTopRound:8,backBorderBottomRound:8,titleTextColor:Black(.65),titleBold:1,inputTextColor:Black(.88),placeholderColor:Black(.38),descriptionTextColor:Black(.55),warningBallType:"icon",warningIconSize:20,eyeIconSize:24,warningColor:"#E5885E",warningBorderColor:"#E5885E",requiredIconColor:Black(.35),tooltipStyle:{color:"#FFFFFF",hintColor:"#FFFFFF",textColor:Black(.88),border:1,borderColor:Black(.15),round:6,fontSize:13},unitStyle:{padding:[10,3],color:"#F2F3F0",textColor:Black(.7),round:6,fontSize:13},selectStyle:{color:Black(.04),round:6,spacing:6,invertIconColor:0,listBackgroundColor:"#FFFFFF",listTextColor:Black(.88),listOverTextColor:"#3D7A6B",listBorderColor:Black(.12)}},dark:{style:{},leftPadding:15,rightPadding:45,titleFontSize:13,inputFontSize:15,inputHeight:44,descriptionFontSize:13,titlePosition:"above",titleGap:6,backgroundColor:"#232322",focusBackgroundColor:"#232322",hoverBackgroundColor:"",lineColor:"transparent",focusLineColor:"transparent",backBorderColor:White(.12),focusBackBorderColor:"#65A293",hoverBackBorderColor:White(.32),backBorderTopRound:8,backBorderBottomRound:8,titleTextColor:White(.65),titleBold:1,inputTextColor:White(.9),inputColorScheme:"dark",placeholderColor:White(.35),descriptionTextColor:White(.5),warningBallType:"icon",warningIconSize:20,eyeIconSize:24,warningColor:"#F0A07A",warningBorderColor:"#F0A07A",requiredIconColor:White(.35),tooltipStyle:{color:"#2C2C2B",hintColor:"#2C2C2B",textColor:White(.9),border:1,borderColor:White(.2),round:6,fontSize:13},unitStyle:{padding:[10,3],color:White(.1),textColor:White(.85),round:6,fontSize:13},selectStyle:{color:White(.06),round:6,spacing:6,invertIconColor:1,listBackgroundColor:"#2C2C2B",listTextColor:White(.9),listOverTextColor:"#65A293",listBorderColor:White(.12)}},modern:{style:{}},modernDark:{style:{},backgroundColor:"#232322",focusBackgroundColor:"#2A2C27",lineColor:White(.75),focusLineColor:"#65A293",backBorderColor:Black(0),focusBackBorderColor:Black(0),titleTextColor:White(.6),inputTextColor:White(.9),placeholderColor:White(.3),descriptionTextColor:White(.4),warningBallBorderColor:White(.75),requiredColor:"#141414",requiredIconColor:White(.75),warningColor:"indianred",tooltipStyle:{hintColor:"#262624",textColor:White(.9),borderColor:White(.75)},unitStyle:{color:White(.85),textColor:"#1A1A19"},selectStyle:{color:White(.06),invertIconColor:1,listBackgroundColor:"#232322",listTextColor:White(.85),listBorderColor:White(.12)}},ozden:{style:{},backgroundColor:"#F6F6F6",focusBackgroundColor:"#FFFFFF",hoverBackgroundColor:"#F6F6F6",lineColor:Black(0),focusLineColor:Black(0),backBorderColor:Black(.05),focusBackBorderColor:Black(.4),backBorderTopRound:8,backBorderBottomRound:8,titleBold:1,warningBallType:"icon",warningColor:"#E5885E",tooltipStyle:{round:6},unitStyle:{color:"#373836EE",textColor:"white"}},ozdenDark:{style:{},backgroundColor:"rgba(255, 255, 255, 0.04)",focusBackgroundColor:"rgba(255, 255, 255, 0.07)",hoverBackgroundColor:"rgba(255, 255, 255, 0.04)",lineColor:Black(0),focusLineColor:Black(0),backBorderColor:"rgba(255, 255, 255, 0.10)",focusBackBorderColor:White(.45),backBorderTopRound:10,backBorderBottomRound:10,titleTextColor:"rgba(255, 255, 255, 0.62)",titleBold:1,titleLetterSpacing:"0.06em",inputTextColor:"rgba(255, 255, 255, 0.94)",inputColorScheme:"dark",placeholderColor:"rgba(255, 255, 255, 0.35)",descriptionTextColor:"rgba(255, 255, 255, 0.35)",warningBallBorderColor:"#1A1A19",warningBallType:"icon",warningColor:"#E5885E",requiredIconColor:"rgba(255, 255, 255, 0.28)",tooltipStyle:{color:"#262624",textColor:"rgba(255, 255, 255, 0.94)",borderColor:"rgba(255, 255, 255, 0.22)",round:6},unitStyle:{color:"rgba(255, 255, 255, 0.07)",textColor:"rgba(255, 255, 255, 0.94)"},selectStyle:{color:"rgba(255, 255, 255, 0.07)",invertIconColor:1,listBackgroundColor:"#262624",listTextColor:"rgba(255, 255, 255, 0.94)",listBorderColor:"rgba(255, 255, 255, 0.22)"}}},TextField.styles.classic=TextField.styles.modern,TextField.createMinimalStyle=function(o){return{style:{},leftPadding:10,rightPadding:26,titleFontSize:12,inputFontSize:13,inputHeight:28,fieldPadding:0,descriptionFontSize:12,titlePosition:"above",titleGap:4,backgroundColor:"transparent",focusBackgroundColor:"transparent",hoverBackgroundColor:"",lineColor:"transparent",focusLineColor:"transparent",backBorderColor:o.edge,focusBackBorderColor:o.ink,hoverBackBorderColor:o.edgeHover,backBorderTopRound:4,backBorderBottomRound:4,titleTextColor:o.softText,titleBold:0,inputTextColor:o.text,inputColorScheme:o.colorScheme,placeholderColor:o.faintText,descriptionTextColor:o.softText,requiredColor:o.faintText,warningBallBorderColor:"transparent",warningColor:o.danger,warningBorderColor:o.danger,warningBallType:"color",warningBallSize:8,warningBallBorder:0,requiredIconColor:o.softText,tooltipStyle:{color:o.ground,hintColor:o.ground,textColor:o.text,border:1,borderColor:o.line,round:4,fontSize:12},selectStyle:{color:"transparent",invertIconColor:o.invertIcons,listBackgroundColor:o.ground,listTextColor:o.text,listOverTextColor:o.ink,listBorderColor:o.line},invertIconColor:o.invertIcons,unitStyle:{padding:[6,1],color:"transparent",textColor:o.softText,round:4,fontSize:11},scrollBarStyle:{bar_color:o.scrollBar,bar_mouseOverColor:o.scrollBar,bar_width:3,bar_mouseOverWidth:4,bar_opacity:.45,bar_mouseOverOpacity:.9,bar_padding:2,showDots:0}}},TextField.MINIMAL_COLORS={ground:"#FFFFFF",text:Black(.85),softText:Black(.55),faintText:Black(.54),line:Black(.2),lineHover:Black(.45),edge:Black(.45),edgeHover:Black(.65),ink:"#1F1F1F",danger:"#C24A36",colorScheme:"",invertIcons:0,scrollBar:"#373836"},TextField.styles.minimal=TextField.createMinimalStyle(TextField.MINIMAL_COLORS),TextField.MINIMAL_DARK_COLORS={ground:"#1A1A19",text:White(.88),softText:White(.55),faintText:White(.48),line:White(.18),lineHover:White(.42),edge:White(.42),edgeHover:White(.62),ink:"#EDEDEB",danger:"#FF9F93",colorScheme:"dark",invertIcons:1,scrollBar:"#CFCFCD"},TextField.styles.minimalDark=TextField.createMinimalStyle(TextField.MINIMAL_DARK_COLORS);
@@ -1,2 +1,2 @@
1
1
  /* Bismillah */
2
- "use strict";const TimeLineDefaults={key:"0",width:320,items:[],itemGap:20,dotSize:12,lineWidth:2,showLine:1,clickableItems:0,enabled:1,onClick:function(t,e,o){},style:{row:{gap:12},dot:{color:"#3871E0",border:0,borderColor:White(1),topSpace:4},line:{color:Black(.12)},time:{fontSize:12,textColor:Black(.4)},title:{fontSize:15,textColor:Black(.85),bold:1},text:{fontSize:14,textColor:Black(.55),lineHeight:"1.45"},hover:{opacity:.6},disabled:{opacity:.4}}},TimeLine=function(t={}){mergeIntoIfMissing(t,TimeLineDefaults),t.color="transparent",t.height="auto";let e=startObject(t);const o=e.style;let i=[];e.items=[];const n=function(t){return"string"==typeof t||"number"==typeof t?{title:String(t)}:Object.assign({time:"",title:"",text:""},t)},l=function(t,i,n){t.clickable=1,t.cursor="pointer",t.setMotion("opacity 0.15s"),t.on("click",function(t,o){1==e.enabled&&e.onClick(e,i,n,o)}),t.on("mouseover",function(){1==e.enabled&&(t.opacity=o.hover.opacity)}),t.on("mouseout",function(){t.opacity=1})},r=function(){i.forEach(function(t){t.remove()}),i=[],createIn(e.content,function(){e.items.forEach(function(t,n){setDefaultContainerBox(e.content),i.push(function(t,i){const n=i==e.items.length-1,r=HGroup({width:"100%",height:"auto",align:"left top",gap:o.row.gap});return r.rail=VGroup({width:e.dotSize,height:"auto",align:"center top",gap:0,shrink:0,css:{alignSelf:"stretch"}}),r.dot=Box({width:e.dotSize,height:e.dotSize,round:100,color:t.color||o.dot.color,border:o.dot.border,borderColor:o.dot.borderColor,shrink:0,css:{marginTop:o.dot.topSpace+"px"}}),1!=e.showLine||n||(r.line=Box({width:e.lineWidth,height:0,color:o.line.color,grow:1})),endGroup(),r.content=VGroup({width:"auto",height:"auto",align:"left top",gap:2,grow:1,css:{minWidth:"0",marginBottom:n?"0px":e.itemGap+"px"}}),""!==t.time&&(r.lblTime=Label({width:"100%",plainText:t.time,fontSize:o.time.fontSize,textColor:o.time.textColor})),""!==t.title&&(r.lblTitle=Label({width:"100%",plainText:t.title,fontSize:o.title.fontSize,textColor:o.title.textColor,bold:o.title.bold})),""!==t.text&&(r.lblText=Label({width:"100%",plainText:t.text,fontSize:o.text.fontSize,textColor:o.text.textColor,lineHeight:o.text.lineHeight})),endGroup(),endGroup(),1==e.clickableItems&&l(r,t,i),r}(t,n))})}),e.opacity=1==e.enabled?1:o.disabled.opacity};return e.setItems=function(t){e.items=(t||[]).map(n),r()},e.getItems=function(){return e.items.slice()},e.addItem=function(t){e.items.push(n(t)),r()},e.clear=function(){e.setItems([])},e.setEnabled=function(t){e.enabled=basic.isOn(t)?1:0,r()},e.refresh=function(){r()},e.role="list",e.content=VGroup({width:"100%",height:"auto",align:"left top",gap:0,position:"relative"}),endGroup(),e.enabled=basic.isOn(e.enabled)?1:0,e.setItems(t.items),endObject(e)};
2
+ "use strict";const TimeLineDefaults={key:"0",width:320,items:[],itemGap:20,dotSize:12,lineWidth:2,showLine:1,clickableItems:0,enabled:1,onClick:function(e,t,i){},styleName:"light",style:{row:{gap:12},dot:{color:"#3871E0",border:0,borderColor:White(1),topSpace:4},line:{color:Black(.12)},time:{fontSize:12,textColor:Black(.54)},title:{fontSize:15,textColor:Black(.85),bold:1},description:{fontSize:14,textColor:Black(.55),lineHeight:"1.45"},hover:{opacity:.6},disabled:{opacity:.4}}},TimeLine=function(e={}){const t=Object.assign({},e);basic.applyStylePackage(e,TimeLine.styles,TimeLineDefaults),mergeIntoIfMissing(e,TimeLineDefaults),e.color="transparent",e.height="auto";let i=startObject(e),o=i.style;let n=[];i.items=[];const l=function(e){return"string"==typeof e||"number"==typeof e?{time:"",text:String(e),description:""}:Object.assign({time:"",text:"",description:""},e)},r=function(e,t,n){e.clickable=1,e.cursor="pointer",e.setMotion("opacity 0.15s"),e.on("click",function(e,o){1==i.enabled&&i.onClick(i,t,n,o)}),e.on("mouseover",function(){1==i.enabled&&(e.opacity=o.hover.opacity)}),e.on("mouseout",function(){e.opacity=1})},s=function(){n.forEach(function(e){e.remove()}),n=[],createIn(i.content,function(){i.items.forEach(function(e,t){setDefaultContainerBox(i.content),n.push(function(e,t){const n=t==i.items.length-1,l=HGroup({width:"100%",height:"auto",align:"left top",gap:o.row.gap});return l.rail=VGroup({width:i.dotSize,height:"auto",align:"center top",gap:0,shrink:0,css:{alignSelf:"stretch"}}),l.dot=Box({width:i.dotSize,height:i.dotSize,round:100,color:e.color||o.dot.color,border:o.dot.border,borderColor:o.dot.borderColor,shrink:0,css:{marginTop:o.dot.topSpace+"px"}}),1!=i.showLine||n||(l.line=Box({width:i.lineWidth,height:0,color:o.line.color,grow:1})),endGroup(),l.content=VGroup({width:"auto",height:"auto",align:"left top",gap:2,grow:1,css:{minWidth:"0",marginBottom:n?"0px":i.itemGap+"px"}}),""!==e.time&&(l.lblTime=Label({width:"100%",plainText:e.time,fontSize:o.time.fontSize,textColor:o.time.textColor})),""!==e.text&&(l.lblTitle=Label({width:"100%",plainText:e.text,fontSize:o.title.fontSize,textColor:o.title.textColor,bold:o.title.bold})),""!==e.description&&(l.lblText=Label({width:"100%",plainText:e.description,fontSize:o.description.fontSize,textColor:o.description.textColor,lineHeight:o.description.lineHeight})),endGroup(),endGroup(),1==i.clickableItems&&r(l,e,t),l}(e,t))})}),i.opacity=1==i.enabled?1:o.disabled.opacity};return i.setItems=function(e){i.items=(e||[]).map(l),s()},i.getItems=function(){return i.items.slice()},i.addItem=function(e){i.items.push(l(e)),s()},i.clear=function(){i.setItems([])},i.setEnabled=function(e){i.enabled=basic.isOn(e)?1:0,s()},i.refresh=function(){s()},i.setTheme=function(e){const n=function(e){const i=Object.assign({},t,{styleName:e});return basic.applyStylePackage(i,TimeLine.styles,TimeLineDefaults),mergeIntoIfMissing(i,TimeLineDefaults),i}(e);i.styleName=e,i.style=n.style,o=n.style,i.dotSize=n.dotSize,i.lineWidth=n.lineWidth,i.itemGap=n.itemGap,s()},i.role="list",i.content=VGroup({width:"100%",height:"auto",align:"left top",gap:0,position:"relative"}),endGroup(),i.enabled=basic.isOn(i.enabled)?1:0,i.setItems(e.items),endObject(i)};TimeLine.styles={light:TimeLineDefaults.style,dark:{dot:{color:"#6C98EF",borderColor:"#1A1A19"},line:{color:White(.16)},time:{textColor:White(.5)},title:{textColor:White(.88)},description:{textColor:White(.6)}}},TimeLine.createMinimalStyle=function(e){return{dotSize:7,lineWidth:1,itemGap:16,style:{row:{gap:10},dot:{color:e.ink,borderColor:e.ground,topSpace:5},line:{color:e.line},time:{fontSize:11,textColor:e.softText},title:{fontSize:13,textColor:e.text,bold:0},description:{fontSize:12,textColor:e.softText}}}},TimeLine.MINIMAL_COLORS={ground:"#FFFFFF",text:Black(.85),softText:Black(.55),line:Black(.2),ink:"#1F1F1F"},TimeLine.styles.minimal=TimeLine.createMinimalStyle(TimeLine.MINIMAL_COLORS),TimeLine.MINIMAL_DARK_COLORS={ground:"#1A1A19",text:White(.88),softText:White(.55),line:White(.18),ink:"#EDEDEB"},TimeLine.styles.minimalDark=TimeLine.createMinimalStyle(TimeLine.MINIMAL_DARK_COLORS);
@@ -0,0 +1,2 @@
1
+ /* Bismillah */
2
+ "use strict";const TimePickerDefaults={key:"0",width:160,height:44,time:null,minTime:null,maxTime:null,minuteStep:5,format:"HH:mm",language:"en",placeholder:"",inline:0,enabled:1,closeOnSelect:1,useScrollBar:1,showNowButton:1,showClearButton:1,onChange:function(e){},onOpen:function(e){},onClose:function(e){},styleName:"light",style:{field:{color:White(1),border:1,borderColor:Black(.2),round:6,padding:[12,0]},fieldHover:{borderColor:Black(.5)},fieldFocus:{borderColor:"#141414"},fieldText:{fontSize:16,textColor:Black(.85)},placeholder:{textColor:Black(.4)},icon:{color:Black(.55),svg:"",size:18},panel:{color:White(1),border:1,borderColor:Black(.12),round:10,padding:12,shadow:"0 8px 24px rgba(0, 0, 0, 0.12)"},columnTitle:{fontSize:12,textColor:Black(.45),activeTextColor:Black(.85)},column:{rows:6,gap:8,barSpace:0},scrollBar:{bar_color:"#141414",bar_mouseOverColor:"#141414",bar_width:4,bar_round:3,bar_opacity:.2,bar_mouseOverOpacity:.5,bar_padding:2,neverHide:1,showDots:0},cell:{width:64,height:36,round:6,fontSize:15,textColor:Black(.85),hoverColor:Black(.06)},selectedCell:{color:"#141414",textColor:White(1)},disabledCell:{textColor:Black(.2)},footerButton:{fontSize:13,textColor:"#3871E0"},divider:{color:Black(.08)},disabled:{opacity:.4}}},TimePicker=function(e={}){basic.applyStylePackage(e,TimePicker.styles,TimePickerDefaults),mergeIntoIfMissing(e,TimePickerDefaults),e.color="transparent",1==e.inline&&(e.width="auto",e.height="auto");let o=startObject(e);const t=TimePicker.languages[o.language]||TimePicker.languages.en,n=o.style,l=n.cell.width,r=n.cell.height,i=l+n.column.barSpace,a=r*n.column.rows,c=2*i+n.column.gap;let u=0,s=0,d="hours",f=[],m=[],h=[];const p=1==o.useScrollBar&&"undefined"!=typeof ScrollBar;o.minutesOfDay=TimePicker.parse(o.time),o.hours=null,o.minutes=null,o.value="",o.timeText="",o.minTime=TimePicker.parse(o.minTime),o.maxTime=TimePicker.parse(o.maxTime),o.minuteStep=Math.max(1,Math.min(60,Math.floor(basic.num(o.minuteStep)||1)));const g=function(e){const t=o.minTime,n=o.maxTime;return null===t&&null===n||(null===t?e<=n:null===n?e>=t:t<=n?e>=t&&e<=n:e>=t||e<=n)},b=function(e){return h.some(function(o){return g(60*e+o)})},x=function(e){const o=h.find(function(o){return g(60*e+o)});return void 0===o?null:o},C=function(){const e=o.minutesOfDay;o.hours=null===e?null:Math.floor(e/60),o.minutes=null===e?null:e%60,o.value=null===e?"":TimePicker.format(e,"HH:mm"),o.timeText=null===e?"":TimePicker.format(e,o.format)},k=function(){if(1==o.inline)return;null!==o.minutesOfDay?(o.fieldText.plainText=o.timeText,o.fieldText.textColor=n.fieldText.textColor):(o.fieldText.plainText=o.placeholder||t.placeholder,o.fieldText.textColor=n.placeholder.textColor);let e=n.field.borderColor;s&&1==o.enabled&&(e=n.fieldHover.borderColor),u&&(e=n.fieldFocus.borderColor),o.field.borderColor=e,o.opacity=1==o.enabled?1:n.disabled.opacity,o.cursor=1==o.enabled?"pointer":"default",o.tabIndex=1==o.enabled?0:-1,o.aria={expanded:u?"true":"false",disabled:1==o.enabled?"false":"true"}},T=function(e,t){const i=Label({width:l,height:r,text:e,textAlign:"center",fontSize:n.cell.fontSize,round:n.cell.round,textColor:n.cell.textColor,color:"transparent"});return i.lineHeight=r+"px",i.shrink=0,i.setMotion("background-color 0.15s"),i.isEnabled=1,i.isSelected=0,i.on("click",function(){1==o.enabled&&i.isEnabled&&t()}),i.on("mouseover",function(){1==o.enabled&&i.isEnabled&&!i.isSelected&&(i.color=n.cell.hoverColor)}),i.on("mouseout",function(){i.isSelected||(i.color="transparent")}),i},w=function(e,t,l){e.isSelected=t?1:0,e.isEnabled=l?1:0,e.color=t?n.selectedCell.color:"transparent",e.textColor=function(e,o){return e?n.selectedCell.textColor:o?n.cell.textColor:n.disabledCell.textColor}(t,l),e.cursor=l&&1==o.enabled?"pointer":"default"},B=function(e){const o=VGroup({width:i,height:"auto",align:"center top",gap:4});return o.title=Label({width:i,text:e,textAlign:"center",fontSize:n.columnTitle.fontSize,textColor:n.columnTitle.textColor}),o.scrollArea=startBox({width:i,height:a,color:"transparent"}),o.scrollBox=startBox(0,0,i,a,{color:"transparent",scrollY:1}),o.scrollBox.css.position="relative",p&&(o.scrollBox.css.scrollbarWidth="none"),o.list=VGroup({width:"100%",height:"auto",align:"center top",gap:0}),endGroup(),endBox(),endBox(),endGroup(),p&&createIn(o.scrollArea,function(){o.scrollBar=ScrollBar(Object.assign({scrollableBox:o.scrollBox},n.scrollBar))}),o},v=function(){m.forEach(function(e){e.remove()}),m=[],h=[];for(let e=0;e<60;e+=o.minuteStep)h.push(e);createIn(o.minutesColumn.list,function(){h.forEach(function(e){m.push(T(basic.twoDigitFormat(e),function(){P(e)}))})})},y=function(e,o,t=0){if(!o)return;const n=o.elem.offsetTop-(a-r)/2;e.scrollBox.elem.scrollTo({top:Math.max(0,n),behavior:t?"smooth":"auto"})},S=function(e=0){const t=null!==o.hours?o.hours:(new Date).getHours();y(o.hoursColumn,f[t],e);const n=null!==o.minutes?o.minutes:0,l=h.indexOf(n-n%o.minuteStep);y(o.minutesColumn,m[Math.max(0,l)],e)},F=function(){p&&(o.hoursColumn&&o.hoursColumn.scrollBar&&o.hoursColumn.scrollBar.refreshScroll(),o.minutesColumn&&o.minutesColumn.scrollBar&&o.minutesColumn.scrollBar.refreshScroll())},M=function(){f.forEach(function(e,t){w(e,o.hours===t,b(t))}),m.forEach(function(e,t){const n=h[t];w(e,o.minutes===n,function(e){return null!==o.hours?g(60*o.hours+e):f.some(function(o,t){return g(60*t+e)})}(n))});const e="hours"==d;o.hoursColumn.title.textColor=e?n.columnTitle.activeTextColor:n.columnTitle.textColor,o.minutesColumn.title.textColor=e?n.columnTitle.textColor:n.columnTitle.activeTextColor,o.nowButton.visible=1==o.showNowButton&&g(D())?1:0,o.clearButton.visible=1==o.showClearButton&&null!==o.minutesOfDay?1:0,o.footer.visible=1==o.showNowButton||1==o.showClearButton?1:0,1==o.inline&&(o.panel.opacity=1==o.enabled?1:n.disabled.opacity,o.panel.clickable=1==o.enabled?1:0)},D=function(){const e=new Date,t=e.getMinutes()-e.getMinutes()%o.minuteStep;return 60*e.getHours()+t},O=function(e){if(!b(e))return;let t=null!==o.minutes?o.minutes:0;g(60*e+t)||(t=x(e)),d="minutes",o.setTime(60*e+t),M(),y(o.minutesColumn,m[h.indexOf(t)],1)},P=function(e){let t=o.hours;if(null===t||!g(60*t+e)){if(t=function(e){const o=(new Date).getHours();return g(60*o+e)?o:f.findIndex(function(o,t){return g(60*t+e)})}(e),t<0)return;y(o.hoursColumn,f[t],1)}o.setTime(60*t+e),H()},H=function(){1!=o.inline&&1==o.closeOnSelect&&(o.close(),o.elem.focus())},I=function(){u&&o.close()},A=function(e){"hours"!=d?function(e){const t=null!==o.hours?o.hours:(new Date).getHours(),n=null!==o.minutes?h.indexOf(o.minutes-o.minutes%o.minuteStep):-1;let l=n<0&&e<0?h.length:n;for(let n=0;n<h.length;n++)if(l=(l+e+h.length)%h.length,g(60*t+h[l]))return o.setTime(60*t+h[l]),void y(o.minutesColumn,m[l],1)}(e):function(e){let t=null!==o.hours?o.hours:(new Date).getHours()-e;for(let o=0;o<24&&(t=(t+e+24)%24,!b(t));o++);let n=null!==o.minutes?o.minutes:0;g(60*t+n)||(n=x(t)),null!==n&&(o.setTime(60*t+n),y(o.hoursColumn,f[t],1))}(e)},z=function(e,t){if(1==o.enabled)if(1==o.inline||u)if("Escape"===t.key||"Enter"===t.key){if(1==o.inline)return;t.preventDefault(),o.close(),o.elem.focus()}else"ArrowUp"===t.key||"ArrowDown"===t.key?(t.preventDefault(),A("ArrowUp"===t.key?-1:1)):"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),d="ArrowLeft"===t.key?"hours":"minutes",M());else"Enter"!==t.key&&" "!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),o.open())};if(o.setTime=function(e,t=0){const n=TimePicker.parse(e);return!(null!==n&&!g(n))&&(n===o.minutesOfDay||(o.minutesOfDay=n,C(),k(),M(),t||o.onChange(o)),!0)},o.getTime=function(){return null===o.minutesOfDay?null:{hours:o.hours,minutes:o.minutes}},o.open=function(){if(1==o.inline||u||1!=o.enabled)return;u=1,d="hours",M();const e=basic.zIndexAbove(o,1e3);o.overlay.zIndex=e,o.panel.zIndex=e+1,o.overlay.visible=1,o.panel.visible=1,function(){const e=o.elem.getBoundingClientRect(),t=o.panel.elem.offsetWidth,n=o.panel.elem.offsetHeight;let l=withPageZoom(e.left),r=withPageZoom(e.bottom)+6;r+n>page.height-8&&(r=withPageZoom(e.top)-n-6),r=Math.max(8,r),l=Math.max(8,Math.min(l,page.width-t-8)),o.panel.left=l,o.panel.top=r}(),S(),F(),o.panel.elem.focus({preventScroll:!0}),k(),o.onOpen(o)},o.close=function(){1!=o.inline&&u&&(u=0,o.overlay.visible=0,o.panel.visible=0,k(),o.onClose(o))},o.toggle=function(){u?o.close():o.open()},o.isOpen=function(){return u},o.setEnabled=function(e){o.enabled=basic.isOn(e)?1:0,1!=o.enabled&&o.close(),k(),M()},o.setMinTime=function(e){o.minTime=TimePicker.parse(e),M()},o.setMaxTime=function(e){o.maxTime=TimePicker.parse(e),M()},o.setMinuteStep=function(e){o.minuteStep=Math.max(1,Math.min(60,Math.floor(basic.num(e)||1))),v(),M(),(u||1==o.inline)&&S(),F()},o.refresh=function(){C(),k(),M(),F()},o.css={outline:"none",userSelect:"none"},1!=o.inline&&(o.clickable=1,o.role="combobox",o.field=HGroup({width:"100%",height:"100%",align:"left center",gap:8,...n.field}),o.field.setMotion("border-color 0.15s"),o.fieldText=Label({width:"auto",fontSize:n.fieldText.fontSize,textColor:n.fieldText.textColor}),that.css={whiteSpace:"nowrap",textOverflow:"ellipsis"},that.grow=1,n.icon.svg?(o.icon=Box({width:n.icon.size,height:n.icon.size,color:"transparent",textColor:n.icon.color}),o.icon.elem.innerHTML=n.icon.svg):(o.icon=startBox({width:18,height:18,color:"transparent",border:2,borderColor:n.icon.color,round:100}),Box({left:6,top:2,width:2,height:6,color:n.icon.color,round:1}),Box({left:6,top:6,width:5,height:2,color:n.icon.color,round:1}),endBox()),o.icon.shrink=0,endGroup()),1!=o.inline){setDefaultContainerBox(page);const e=2e4;o.overlay=Box(-e,-e,2*e,2*e,{color:"transparent"}),o.overlay.css.position="fixed",o.overlay.zIndex=1e3,o.overlay.on("click",function(){o.close()})}return o.panel=VGroup({width:c+2*n.panel.padding+2*n.panel.border,height:"auto",align:"left top",gap:6,color:n.panel.color,border:n.panel.border,borderColor:n.panel.borderColor,round:n.panel.round,padding:n.panel.padding}),o.panel.boxShadow=n.panel.shadow,o.panel.css.outline="none",o.panel.tabIndex=-1,o.panel.clickable=1,o.panel.role="dialog",HGroup({width:c,height:"auto",align:"left top",gap:n.column.gap}),o.hoursColumn=B(t.hour),o.minutesColumn=B(t.minute),endGroup(),o.footer=HGroup({width:c,height:38,justifyContent:"space-between",alignItems:"center"}),o.footer.css={borderTop:"1px solid "+n.divider.color,paddingTop:"6px"},o.nowButton=Label({text:t.now,padding:[8,2],round:4,...n.footerButton}),o.nowButton.cursor="pointer",o.nowButton.on("click",function(){1==o.enabled&&(o.setTime(D()),S(1),H())}),o.clearButton=Label({text:t.clear,padding:[8,2],round:4,...n.footerButton}),o.clearButton.cursor="pointer",o.clearButton.css.marginLeft="auto",o.clearButton.on("click",function(){1==o.enabled&&(o.setTime(null),d="hours",M(),1!=o.inline&&(o.close(),o.elem.focus()))}),endGroup(),endGroup(),createIn(o.hoursColumn.list,function(){for(let e=0;e<24;e++)f.push(T(basic.twoDigitFormat(e),function(){O(e)}))}),v(),1!=o.inline&&(o.panel.zIndex=1001,o.overlay.visible=0,o.panel.visible=0),1!=o.inline?(o.on("click",function(){o.toggle()}),o.on("keydown",z),o.on("mouseover",function(){s=1,k()}),o.on("mouseout",function(){s=0,k()}),o.onPageResize(I),o.own(o.overlay),o.own(o.panel)):(o.panel.tabIndex=0,o.panel.position="relative"),o.panel.on("keydown",z),o.panel.on("mousedown",function(e,o){o.preventDefault()}),o.enabled=basic.isOn(o.enabled)?1:0,null===o.minutesOfDay||g(o.minutesOfDay)||(o.minutesOfDay=null),C(),k(),M(),1==o.inline&&o.after(0,function(){S(),F()}),endObject(o)};TimePicker.languages={en:{placeholder:"Select time",hour:"Hour",minute:"Minute",now:"Now",clear:"Clear"},tr:{placeholder:"Saat seçin",hour:"Saat",minute:"Dakika",now:"Şimdi",clear:"Temizle"}},TimePicker.parse=function(e){if(null==e||""===e)return null;if("number"==typeof e)return Number.isInteger(e)&&e>=0&&e<1440?e:null;if(e instanceof Date)return isNaN(e)?null:60*e.getHours()+e.getMinutes();const o=/^(\d{1,2}):(\d{2})(:\d{2})?$/.exec(String(e).trim());if(!o)return null;const t=basic.num(o[1]),n=basic.num(o[2]);return t>23||n>59?null:60*t+n},TimePicker.format=function(e,o="HH:mm"){if(null==e)return"";const t=Math.floor(e/60),n=e%60,l=t%12||12,r={HH:String(basic.twoDigitFormat(t)),H:String(t),hh:String(basic.twoDigitFormat(l)),h:String(l),mm:String(basic.twoDigitFormat(n)),A:t<12?"AM":"PM",a:t<12?"am":"pm"};return o.replace(/HH|H|hh|h|mm|A|a/g,function(e){return r[e]})},TimePicker.styles={light:TimePickerDefaults.style,dark:{field:{color:"#232322",borderColor:"rgba(255, 255, 255, 0.10)",round:8},fieldHover:{borderColor:"rgba(255, 255, 255, 0.30)"},fieldFocus:{borderColor:"#65A293"},fieldText:{fontSize:15,textColor:"rgba(255, 255, 255, 0.90)"},placeholder:{textColor:"rgba(255, 255, 255, 0.40)"},icon:{color:"rgba(255, 255, 255, 0.55)"},panel:{color:"#232322",borderColor:"rgba(255, 255, 255, 0.12)",shadow:"0 8px 24px rgba(0, 0, 0, 0.5)"},columnTitle:{textColor:"rgba(255, 255, 255, 0.45)",activeTextColor:"rgba(255, 255, 255, 0.90)"},scrollBar:{bar_color:"#FFFFFF",bar_mouseOverColor:"#FFFFFF"},cell:{textColor:"rgba(255, 255, 255, 0.85)",hoverColor:"rgba(255, 255, 255, 0.08)"},selectedCell:{color:"#3D7A6B",textColor:"#FFFFFF"},disabledCell:{textColor:"rgba(255, 255, 255, 0.20)"},footerButton:{textColor:"#65A293"},divider:{color:"rgba(255, 255, 255, 0.08)"}}},TimePicker.styles.classic=TimePicker.styles.light,TimePicker.MINIMAL_ICON='<svg viewBox="0 0 24 24" width="100%" height="100%" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display: block"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>',TimePicker.createMinimalStyle=function(e){return{height:28,style:{field:{color:"transparent",border:1,borderColor:e.edge,round:4,padding:[10,0]},fieldHover:{borderColor:e.edgeHover},fieldFocus:{borderColor:e.ink},fieldText:{fontSize:13,textColor:e.text},placeholder:{textColor:e.faintText},icon:{color:e.softText,svg:TimePicker.MINIMAL_ICON,size:14},panel:{color:e.ground,border:1,borderColor:e.line,round:4,padding:8,shadow:"none"},column:{gap:4,barSpace:14},columnTitle:{fontSize:11,textColor:e.softText,activeTextColor:e.text},scrollBar:{bar_color:e.scrollBar,bar_mouseOverColor:e.scrollBar,bar_width:3,bar_opacity:.3,bar_mouseOverOpacity:.6},cell:{width:52,height:28,round:4,fontSize:13,textColor:e.text,hoverColor:e.hover},selectedCell:{color:e.ink,textColor:e.onInk},disabledCell:{textColor:e.off},footerButton:{fontSize:12,textColor:e.ink},divider:{color:e.line},disabled:{opacity:.4}}}},TimePicker.MINIMAL_COLORS={ground:"#FFFFFF",text:Black(.85),softText:Black(.55),faintText:Black(.54),line:Black(.2),edge:Black(.45),edgeHover:Black(.65),ink:"#1F1F1F",onInk:"#FFFFFF",hover:Black(.05),off:Black(.25),scrollBar:"#141414"},TimePicker.styles.minimal=TimePicker.createMinimalStyle(TimePicker.MINIMAL_COLORS),TimePicker.MINIMAL_DARK_COLORS={ground:"#1A1A19",text:White(.88),softText:White(.55),faintText:White(.48),line:White(.18),edge:White(.42),edgeHover:White(.62),ink:"#EDEDEB",onInk:"#1A1A19",hover:White(.07),off:White(.25),scrollBar:"#FFFFFF"},TimePicker.styles.minimalDark=TimePicker.createMinimalStyle(TimePicker.MINIMAL_DARK_COLORS);
@@ -1,2 +1,2 @@
1
1
  /* Bismillah */
2
- "use strict";const TinySelectDefaults={title:"",list:[],onSelect:function(t,e,o,l){},selectedIndex:0,fontSize:20,border:0,color:"transparent",round:3,width:"auto",height:50,paddingX:12,disabled:0,arrowIcon:"data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#141414"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>'),arrowBorder:0,arrowBorderColor:"rgba(0, 0, 0, 0.2)",arrowBackgroundColor:"transparent",arrowRound:3,arrowSize:24,listFontSize:14,listTextColor:"rgba(0, 0, 0, 0.8)",listOverTextColor:"indianred",listBackgroundColor:"whitesmoke",listBorder:1,listBorderColor:"rgba(0, 0, 0, 0.6)",emptyText:"Empty",invertIconColor:0,labelBoldFont:1,labelTextColor:"rgba(0,0,0,0.8)"},TinySelect=function(t={}){mergeIntoIfMissing(t,TinySelectDefaults);const e=startObject(t);e.closeListBox=null,e.setList=function(t,o=0){e.list=t,e.setSelectedIndex(o)},e.setSelectedIndex=function(t,o=0){e.selectedIndex=t,e.list.length>e.selectedIndex?(e.lblLabel.text=e.list[e.selectedIndex].label,o||e.onSelect(t,e.list[t].id,e.list[t].label,e.title)):e.lblLabel.text=e.emptyText,null!=e.closeListBox&&e.closeListBox()},e.setTitle=function(t){e.title=t,e.lblTitle.text=e.title?e.title+":":""},e.setDisabled=function(t){e.disabled=t;const o=1==t;e.clickable=o?0:1,e.opacity=o?.6:1},e.getIndexById=function(t){return e.list.findIndex(e=>e.id===t)},e.setColor=function(t){e.color=t},e.shrink=0,e.css.whiteSpace="nowrap",e.cursor="pointer",e.clickable=1,e.contentBox=HGroup({width:"auto",height:"100%",position:"relative"}),e.lblTitle=Label({fontSize:e.fontSize}),that.css.marginLeft=e.paddingX+"px",e.lblLabel=Label({fontSize:e.fontSize,textColor:e.labelTextColor}),1==e.labelBoldFont&&(that.css.fontFamily="opensans-bold"),that.css={marginLeft:"6px",marginRight:"4px"},e.icoArrow=Icon({width:e.arrowSize,height:e.arrowSize,color:e.arrowBackgroundColor,border:e.arrowBorder,borderColor:e.arrowBorderColor,round:e.arrowRound,space:0}),that.load(e.arrowIcon),that.setMotion("transform 0.3s"),that.css={marginTop:"2px",marginRight:e.paddingX+"px"},1==e.invertIconColor&&(that.css.filter="invert(100%)"),endGroup();const o=e.remove;e.superRemove=o;let l=0;return e.remove=function(){l||(l=1,e.closeListBox&&e.closeListBox(),o.call(e))},e.on("click",function(){TinySelect.createList(e)}),e.setTitle(e.title),e.setSelectedIndex(e.selectedIndex,1),e.setDisabled(e.disabled),endObject(e)};TinySelect.createList=function(t){if(t.list.length<=0)return null;t.icoArrow.rotate=180,t.closeListBox=function(){t.icoArrow.rotate=0,e.remove(),t.closeListBox=null};const e=startFlexBox();that.color="transparent",that.css.whiteSpace="nowrap",page.add(that),e.grp=startFlexBox({flexDirection:"column",alignItems:"flex-start",color:t.listBackgroundColor,width:"auto",height:"auto",border:t.listBorder,borderColor:t.listBorderColor,round:3}),that.css.padding="5px",that.cursor="pointer",that.position="absolute";for(let e=0;e<t.list.length;e++){const o=Label({fontSize:t.listFontSize,text:t.list[e].label,index:e,spaceX:6,textColor:t.listTextColor});t.selectedIndex!=o.index?(that.on("click",function(){t.setSelectedIndex(o.index)}),that.on("mouseover",function(){o.textColor=t.listOverTextColor}),that.on("mouseout",function(){o.textColor=t.listTextColor})):o.opacity=.5}endFlexBox(),e.on("click",function(){null!=t.closeListBox&&t.closeListBox()});const o=t.elem.getBoundingClientRect();e.grp.left=withPageZoom(o.right)-e.grp.width,e.grp.top=withPageZoom(o.bottom),endFlexBox();let l=0;return e.onResize(function(){l>1&&null!=t.closeListBox&&t.closeListBox(),l++}),makeBasicObject(e),e};
2
+ "use strict";const TinySelectDefaults={titleText:"",list:[],onChange:function(e){},selectedIndex:0,fontSize:20,border:0,color:"transparent",round:3,width:"auto",height:50,paddingX:12,enabled:1,arrowIconFile:"data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#141414"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>'),arrowBorder:0,arrowBorderColor:"rgba(0, 0, 0, 0.2)",arrowBackgroundColor:"transparent",arrowRound:3,arrowSize:24,listFontSize:14,listTextColor:"rgba(0, 0, 0, 0.8)",listOverTextColor:"indianred",listBackgroundColor:"whitesmoke",listBorder:1,listBorderColor:"rgba(0, 0, 0, 0.6)",emptyText:"Empty",allowHtml:0,invertIconColor:0,labelBold:1,labelTextColor:"rgba(0,0,0,0.8)"},TinySelect=function(e={}){mergeIntoIfMissing(e,TinySelectDefaults);const t=startObject(e),o=function(e,o){const l=null==o?"":String(o);1==t.allowHtml?e.text=l:e.plainText=l};t.closeListBox=null,t.setList=function(e,o=0){t.list=e,t.setSelectedIndex(o)},t.setSelectedIndex=function(e,l=0){t.selectedIndex=e;const n=t.getSelectedItem();n?(o(t.lblLabel,n.label),l||t.onChange(t)):o(t.lblLabel,t.emptyText),null!=t.closeListBox&&t.closeListBox()},t.setTitleText=function(e){t.titleText=e,o(t.lblTitle,t.titleText?t.titleText+":":"")},t.setEnabled=function(e){t.enabled=basic.isOn(e)?1:0,t.clickable=t.enabled,t.opacity=t.enabled?1:.6},t.getSelectedItem=function(){return t.list[t.selectedIndex]||null},t.getIndexByValue=function(e){return t.list.findIndex(t=>t.value===e)},t.setColor=function(e){t.color=e},t.shrink=0,t.css.whiteSpace="nowrap",t.cursor="pointer",t.clickable=1,t.contentBox=HGroup({width:"auto",height:"100%",position:"relative"}),t.lblTitle=Label({fontSize:t.fontSize}),that.css.marginLeft=t.paddingX+"px",t.lblLabel=Label({fontSize:t.fontSize,textColor:t.labelTextColor}),1==t.labelBold&&(that.css.fontFamily="opensans-bold"),that.css={marginLeft:"6px",marginRight:"4px"},t.icoArrow=Icon({width:t.arrowSize,height:t.arrowSize,color:t.arrowBackgroundColor,border:t.arrowBorder,borderColor:t.arrowBorderColor,round:t.arrowRound,space:0}),that.load(t.arrowIconFile),that.setMotion("transform 0.3s"),that.css={marginTop:"2px",marginRight:t.paddingX+"px"},1==t.invertIconColor&&(that.css.filter="invert(100%)"),endGroup();const l=t.remove;t.superRemove=l;let n=0;return t.remove=function(){n||(n=1,t.closeListBox&&t.closeListBox(),l.call(t))},t.on("click",function(){TinySelect.createList(t)}),t.setTitleText(t.titleText),t.setSelectedIndex(t.selectedIndex,1),t.setEnabled(t.enabled),endObject(t)};TinySelect.Z_INDEX=1e3,TinySelect.PAGE_MARGIN=8,TinySelect.MIN_LIST_HEIGHT=80,TinySelect.createList=function(e){if(e.list.length<=0)return null;e.icoArrow.rotate=180,e.closeListBox=function(){e.icoArrow.rotate=0,t.remove(),e.closeListBox=null};const t=startFlexBox();that.color="transparent",that.css.whiteSpace="nowrap",page.add(that),t.zIndex=basic.zIndexAbove(e,TinySelect.Z_INDEX),t.grp=startFlexBox({flexDirection:"column",alignItems:"flex-start",color:e.listBackgroundColor,width:"auto",height:"auto",border:e.listBorder,borderColor:e.listBorderColor,round:3}),that.css.padding="5px",that.cursor="pointer",that.position="absolute";for(let t=0;t<e.list.length;t++){const o=Label({fontSize:e.listFontSize,index:t,spaceX:6,textColor:e.listTextColor});1==e.allowHtml?o.text=e.list[t].label:o.plainText=e.list[t].label,o.elem.style.flexShrink="0",e.selectedIndex!=o.index?(that.on("click",function(){e.setSelectedIndex(o.index)}),that.on("mouseover",function(){o.textColor=e.listOverTextColor}),that.on("mouseout",function(){o.textColor=e.listTextColor})):o.opacity=.5}endFlexBox(),t.on("click",function(){null!=e.closeListBox&&e.closeListBox()});const o=e.elem.getBoundingClientRect(),l=withPageZoom(o.top),n=withPageZoom(o.bottom),i=t.grp.height,r=page.height-n-TinySelect.PAGE_MARGIN,a=l-TinySelect.PAGE_MARGIN,s=i>r&&a>r,c=Math.max(TinySelect.MIN_LIST_HEIGHT,s?a:r);i>c&&(t.grp.height=c,t.grp.scrollY=1),t.grp.left=withPageZoom(o.right)-t.grp.width,t.grp.top=s?l-Math.min(i,c):n,endFlexBox();let d=0;return t.onResize(function(){d>1&&null!=e.closeListBox&&e.closeListBox(),d++}),makeBasicObject(t),t};
@@ -1,2 +1,2 @@
1
1
  /* Bismillah */
2
- "use strict";const ToastDefaults={key:"",type:"info",title:"",message:"",allowHtml:0,duration:null,closable:1,showProgress:1,pauseOnHover:1,action:null,position:null,theme:null,scale:null,onClick:null,onClose:function(t,o){},style:{card:{round:10,padding:[14,12],gap:12,border:1},icon:{size:20,marginTop:1},texts:{gap:2},title:{fontSize:14},message:{fontSize:13},action:{fontSize:13,padding:[10,4],round:6,marginTop:6},close:{size:24,iconSize:16,round:6,marginTop:-2,marginRight:-4},progress:{height:3,opacity:.45}}},Toast=function(t={}){mergeIntoIfMissing(t,ToastDefaults);const o=Toast.options,e=Toast.POSITIONS.includes(t.position)?t.position:o.position;if(t.key){const o=Toast.list.find(function(o){return o.key==t.key&&!o.isClosing});if(o)return o.update(t),o.bump(),o}const n=t.action,s=t.onClick;t.scale=Toast.getScale(t.scale),t.style=basic.scaleStyle(t.style,t.scale),t.width="100%",t.height="auto",t.color="transparent",t.position="relative";const i=Toast.getContainer(e),a=e.startsWith("bottom"),r=getDefaultContainerBox();setDefaultContainerBox(i);let l=startObject(t);const c=l.style;let u=null,g=null,p=0,f=0,d=0,h=0;const b=16*l.scale,m=12*l.scale,T="0.2s",x="0.16s";l.toastPosition=e,l.action=n,l.onClick=s,l.isClosing=0;const C=function(){return basic.resolveTheme(Toast.THEMES,l.theme||o.theme)},w=function(t){return 1==l.allowHtml?String(t):Toast.escapeHtml(t)},y=function(){return l.toastPosition.endsWith("left")?{x:-b,y:0}:l.toastPosition.endsWith("right")?{x:b,y:0}:{x:0,y:a?m:-m}},v=function(){const t=C(),o=t.colors[l.type]||t.colors.info,e="error"==l.type;l.card.color=t.background,l.card.borderColor=t.border,l.card.boxShadow=basic.scaleCssText(t.shadow,l.scale),l.card.role=e?"alert":"status",l.card.aria={live:e?"assertive":"polite"},l.card.cursor=l.onClick?"pointer":"default",l.icon.text=Toast.getIconSvg(l.type,o,c.icon.size),l.lblTitle.visible=l.title?1:0,l.lblTitle.text=w(l.title),l.lblTitle.textColor=t.title,l.lblMessage.visible=l.message?1:0,l.lblMessage.text=w(l.message),l.lblMessage.textColor=l.title?t.message:t.title;const n=!(!l.action||!l.action.text);l.btnAction.visible=n?1:0,n&&(l.btnAction.plainText=l.action.text,l.btnAction.textColor=o,l.btnAction.color=Toast.alpha(o,.12)),l.btnClose.visible=1==l.closable?1:0,l.btnClose.text=Toast.getCloseSvg(t.close,c.close.iconSize),l.progress.color=o},S=function(t,o){const e=l.progress.css;o&&(e.transition="none",e.width="100%",l.progress.elem.offsetWidth),e.transition="width "+t+"ms linear",e.width="0%"},k=function(){f=Date.now(),u=l.after(p,function(){u=null,l.close("timeout")})},z=function(){u&&u(),u=null},A=function(){z();const t=null!==l.duration&&void 0!==l.duration?l.duration:o.durations[l.type]??4e3,e=t>0&&1==l.showProgress;l.progress.visible=e?1:0,t>0?(p=t,H()?l.progress.css={transition:"none",width:"100%"}:(k(),e&&S(p,!0))):p=0},H=function(){return 1==l.pauseOnHover&&(d||h)||document.hidden},O=function(){u&&(z(),p=Math.max(0,p-(Date.now()-f)),function(){const t=l.progress.css,o=window.getComputedStyle(l.progress.elem).width;t.transition="none",t.width=o}())},B=function(){l&&(H()?O():!u&&p>0&&!H()&&!l.isClosing&&(k(),l.progress.visible&&S(p,!1)))};l.update=function(t={}){return!l||l.isClosing||(["type","title","message","allowHtml","duration","closable","showProgress","pauseOnHover","theme","onClick","action"].forEach(function(o){o in t&&(l[o]=t[o])}),"duration"in t||(l.duration=null),v(),A()),l},l.bump=function(){if(!l)return;const t=l.card.css;t.transition="transform 0.12s",t.transform="scale(1.03)",l.after(120,function(){t.transform="scale(1)"})},l.close=function(t="api"){if(!l||l.isClosing)return;l.isClosing=1,z(),g&&g(),Toast.list=Toast.list.filter(function(t){return t!==l});const o=l,e=o.card.css,n=y();e.transition="opacity 0.16s, transform "+x,e.opacity="0",e.transform="translate("+n.x+"px, "+n.y+"px) scale(0.98)",setTimeout(function(){const e=o.css;e.height=o.elem.offsetHeight+"px",o.elem.offsetHeight,e.transition="height 0.16s, padding "+x,e.height="0px",e.paddingTop="0px",e.paddingBottom="0px",setTimeout(function(){o.onClose(o,t),o.remove(),l===o&&(l=null)},170)},150)};const I=l.remove;l.superRemove=I,l.remove=function(){l&&(Toast.list=Toast.list.filter(function(t){return t!==l}),I.call(l),l=null)},l.css={overflow:"visible",boxSizing:"border-box"},l.css[a?"paddingTop":"paddingBottom"]=o.gap*Toast.getScale()+"px",l.card=HGroup({width:"100%",height:"auto",align:"left top",gap:c.card.gap,padding:c.card.padding,border:c.card.border,round:c.card.round,clickable:1,position:"relative"}),l.card.css={overflow:"hidden",boxSizing:"border-box",outline:"none"},l.card.tabIndex=-1,l.icon=Label({text:"",width:c.icon.size,height:c.icon.size}),l.icon.shrink=0,l.icon.lineHeight="0",l.icon.css.marginTop=c.icon.marginTop+"px",l.icon.aria={hidden:"true"},l.textGroup=VGroup({width:"auto",height:"auto",align:"left top",gap:c.texts.gap}),l.textGroup.css={flex:"1 1 auto",minWidth:"0"},l.lblTitle=Label({text:"",width:"100%",fontSize:c.title.fontSize}),l.lblTitle.css={fontFamily:"opensans-bold",overflowWrap:"anywhere"},l.lblMessage=Label({text:"",width:"100%",fontSize:c.message.fontSize}),l.lblMessage.css.overflowWrap="anywhere",l.lblMessage.lineHeight="1.45",l.btnAction=Label({text:"",fontSize:c.action.fontSize,padding:c.action.padding,round:c.action.round,clickable:1}),l.btnAction.css={fontFamily:"opensans-bold",marginTop:c.action.marginTop+"px"},l.btnAction.cursor="pointer",l.btnAction.tabIndex=0,l.btnAction.role="button",endGroup(),l.btnClose=Label({text:"",width:c.close.size,height:c.close.size,round:c.close.round,clickable:1}),l.btnClose.shrink=0,l.btnClose.lineHeight="0",l.btnClose.cursor="pointer",l.btnClose.elem.style.display="flex";const M=c.close.marginTop+"px "+c.close.marginRight+"px 0 0";l.btnClose.css={alignItems:"center",justifyContent:"center",margin:M},l.btnClose.tabIndex=0,l.btnClose.role="button",l.btnClose.aria={label:"Close"},l.progress=Box({width:"100%",height:c.progress.height,opacity:c.progress.opacity}),endGroup(),l.progress.position="absolute",l.progress.left=0,l.progress.bottom=0,a||i.elem.firstChild===l.elem||i.elem.insertBefore(l.elem,i.elem.firstChild);const W=function(t,o){"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),o())},E=function(){if(!l||!l.action||l.isClosing)return;!1!==("function"==typeof l.action.onClick?l.action.onClick(l):void 0)&&l.close("action")};l.btnAction.on("click",E),l.btnAction.on("keydown",function(t,o){W(o,E)});const D=function(){l.close("close")};l.btnClose.on("click",D),l.btnClose.on("keydown",function(t,o){W(o,D)}),l.btnClose.on("mouseover",function(){l.btnClose.color=C().closeHover}),l.btnClose.on("mouseout",function(){l.btnClose.color="transparent"}),l.card.on("click",function(t,o){l&&l.onClick&&(l.btnAction.elem.contains(o.target)||l.btnClose.elem.contains(o.target)||l.onClick(l))}),l.card.on("keydown",function(t,o){"Escape"==o.key&&l&&1==l.closable&&l.close("close")}),l.card.on("mouseenter",function(){d=1,B()}),l.card.on("mouseleave",function(){d=0,B()}),l.card.on("focusin",function(){h=1,B()}),l.card.on("focusout",function(){h=0,B()}),g=l.listenTo(document,"visibilitychange",function(){B()}),v();const _=l.card.css,F=y();_.opacity="0",_.transform="translate("+F.x+"px, "+F.y+"px) scale(0.98)",l.card.elem.offsetWidth,_.transition="opacity 0.2s, transform "+T,_.opacity="1",_.transform="translate(0px, 0px) scale(1)",Toast.list.push(l),endObject(l),setDefaultContainerBox(r),A();const P=Toast.list.filter(function(t){return t.toastPosition==e});return P.length>o.maxVisible&&P.slice(0,P.length-o.maxVisible).forEach(function(t){t.close("limit")}),l};Toast.POSITIONS=["top-right","top-center","top-left","bottom-right","bottom-center","bottom-left"],Toast.options={position:"top-right",theme:"auto",width:360,offset:16,offsetTop:null,offsetBottom:null,gap:10,maxVisible:5,zIndex:3e3,smallScreenWidth:520,durations:{success:3e3,info:4e3,warning:5e3,error:7e3,loading:0},scale:null},Toast.THEMES={light:{background:"#FFFFFF",border:"rgba(11, 11, 11, 0.08)",shadow:"0 8px 28px rgba(0, 0, 0, 0.14)",title:"#1B1B1A",message:"#5F5E5A",close:"rgba(11, 11, 11, 0.45)",closeHover:"rgba(11, 11, 11, 0.06)",colors:{success:"#15935F",error:"#D93F3E",warning:"#B77A00",info:"#2A78D6",loading:"#6B6A65"}},dark:{background:"#262625",border:"rgba(255, 255, 255, 0.10)",shadow:"0 8px 28px rgba(0, 0, 0, 0.5)",title:"rgba(255, 255, 255, 0.95)",message:"rgba(255, 255, 255, 0.65)",close:"rgba(255, 255, 255, 0.5)",closeHover:"rgba(255, 255, 255, 0.08)",colors:{success:"#3CC08A",error:"#EF6B6A",warning:"#E8B23A",info:"#5A9CF0",loading:"rgba(255, 255, 255, 0.7)"}}},Toast.list=[],Toast._containers={},Toast._isResizeListening=0,Toast._layoutScale=1,Toast.show=function(t={}){return Toast(t)},Toast.success=function(t,o={}){return Toast(Object.assign({},o,{type:"success",message:t}))},Toast.error=function(t,o={}){return Toast(Object.assign({},o,{type:"error",message:t}))},Toast.warning=function(t,o={}){return Toast(Object.assign({},o,{type:"warning",message:t}))},Toast.info=function(t,o={}){return Toast(Object.assign({},o,{type:"info",message:t}))},Toast.promise=function(t,o={},e={}){const n=Toast(Object.assign({},e,{type:"loading",message:o.loading||"Loading...",duration:0,closable:0})),s=function(t,o){return"function"==typeof t?t(o):t};return t.then(function(t){n.update({type:"success",message:s(o.success,t)||"Done.",closable:1})},function(t){n.update({type:"error",message:s(o.error,t)||"Something went wrong.",closable:1})}),t},Toast.closeAll=function(){Toast.list.slice().forEach(function(t){t.close("api")})},Toast.setOptions=function(t={}){Object.keys(t).forEach(function(o){"durations"==o?Object.assign(Toast.options.durations,t.durations):Toast.options[o]=t[o]}),Toast.layoutContainers()},Toast.getContainer=function(t){let o=Toast._containers[t];if(o&&o.elem.isConnected)return Toast.getScale()!==Toast._layoutScale&&Toast.layoutContainers(),o;const e=getDefaultContainerBox();return setDefaultContainerBox(page),o=VGroup({width:Toast.options.width,height:"auto",align:t.endsWith("left")?"left top":t.endsWith("right")?"right top":"center top",gap:0}),o.css={alignItems:"stretch",overflow:"visible"},o.role="region",o.aria={label:"Notifications"},endGroup(),setDefaultContainerBox(e),o.toastPosition=t,Toast._containers[t]=o,Toast._isResizeListening||(Toast._isResizeListening=1,page.onResize(function(){Toast.layoutContainers()})),Toast.layoutContainers(),o},Toast.getScale=function(t=null){return t??Toast.options.scale??basic.uiScale},Toast.layoutContainers=function(){const t=Toast.options,o=Toast.getScale(),e=t.offset*o,n=(t.offsetTop??t.offset)*o,s=(t.offsetBottom??t.offset)*o,i=page.width<t.smallScreenWidth*o;Toast._layoutScale=o,Object.keys(Toast._containers).forEach(function(a){const r=Toast._containers[a].css;if(r.position="absolute",r.zIndex=String(t.zIndex),r.top="",r.bottom="",r.left="",r.right="",r.transform="none",r.maxWidth="calc(100% - "+2*e+"px)",a.startsWith("top")?r.top=n+"px":r.bottom=s+"px",i)return r.left=e+"px",void(r.width="calc(100% - "+2*e+"px)");r.width=t.width*o+"px",a.endsWith("left")?r.left=e+"px":a.endsWith("right")?r.right=e+"px":(r.left="50%",r.transform="translateX(-50%)")})},Toast.escapeHtml=basic.escapeHtml,Toast.alpha=function(t,o){if(!/^#[0-9a-f]{6}$/i.test(t))return t.replace(/[\d.]+\)$/,o+")");const e=parseInt(t.slice(1),16);return"rgba("+(e>>16)+", "+(e>>8&255)+", "+(255&e)+", "+o+")"},Toast.ICON_PATHS={success:'<circle cx="12" cy="12" r="10"/><path d="m7.5 12.5 3 3 6-6.5"/>',error:'<circle cx="12" cy="12" r="10"/><path d="M15 9l-6 6M9 9l6 6"/>',warning:'<path d="M10.3 3.9 2.4 17.6A2 2 0 0 0 4.1 20.6h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z"/><path d="M12 9.5v4M12 17h.01"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 11v5.5M12 7.5h.01"/>',loading:'<circle cx="12" cy="12" r="9" opacity="0.25"/><path d="M21 12a9 9 0 0 0-9-9"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="0.8s" repeatCount="indefinite"/></path>'},Toast.getIconSvg=function(t,o,e){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+e+'" viewBox="0 0 24 24" fill="none" stroke="'+o+'" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">'+(Toast.ICON_PATHS[t]||Toast.ICON_PATHS.info)+"</svg>"},Toast.getCloseSvg=function(t,o=16){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+o+'" height="'+o+'" viewBox="0 0 24 24" fill="none" stroke="'+t+'" stroke-width="2" stroke-linecap="round"><path d="M6 6l12 12M18 6 6 18"/></svg>'};
2
+ "use strict";const ToastDefaults={key:"",type:"info",titleText:"",messageText:"",allowHtml:0,duration:null,closable:1,showProgress:1,pauseOnHover:1,action:null,position:null,theme:null,scale:null,onClick:null,onClose:function(t,o){},style:{card:{round:10,padding:[14,12],gap:12,border:1},icon:{size:20,marginTop:1},texts:{gap:2},title:{fontSize:14},message:{fontSize:13},action:{fontSize:13,padding:[10,4],round:6,marginTop:6},close:{size:24,iconSize:16,round:6,marginTop:-2,marginRight:-4},progress:{height:3,opacity:.45}}},Toast=function(t={}){t.styleName&&console.warn('Toast: styleName is not used. The colors come with theme ("light", "dark", "auto", "minimal", "minimalDark"), the shapes with style.');const o=Toast.THEMES[t.theme||Toast.options.theme];if(o&&o.style){const e={};mergeIntoIfMissing(e,t.style||{}),mergeIntoIfMissing(e,o.style),t.style=e}mergeIntoIfMissing(t,ToastDefaults);const e=Toast.options,n=Toast.POSITIONS.includes(t.position)?t.position:e.position;if(t.key){const o=Toast.list.find(function(o){return o.key==t.key&&!o.isClosing});if(o)return o.update(t),o.bump(),o}const s=t.action,i=t.onClick;t.scale=Toast.getScale(t.scale),t.style=basic.scaleStyle(t.style,t.scale),t.width="100%",t.height="auto",t.color="transparent",t.position="relative";const a=Toast.getContainer(n),r=n.startsWith("bottom"),l=getDefaultContainerBox();setDefaultContainerBox(a);let c=startObject(t);const u=c.style;let g=null,d=null,p=0,f=0,h=0,b=0;const m=16*c.scale,T=12*c.scale,x="0.2s",y="0.16s";c.toastPosition=n,c.action=s,c.onClick=i,c.isClosing=0;const w=function(){return basic.resolveTheme(Toast.THEMES,c.theme||e.theme)},C=function(t){return 1==c.allowHtml?String(t):Toast.escapeHtml(t)},S=function(){return c.toastPosition.endsWith("left")?{x:-m,y:0}:c.toastPosition.endsWith("right")?{x:m,y:0}:{x:0,y:r?T:-T}},k=function(){const t=w(),o=t.colors[c.type]||t.colors.info,e="error"==c.type;c.card.color=t.background,c.card.borderColor=t.border,c.card.boxShadow=basic.scaleCssText(t.shadow,c.scale),c.card.role=e?"alert":"status",c.card.aria={live:e?"assertive":"polite"},c.card.cursor=c.onClick?"pointer":"default",c.icon.text=Toast.getIconSvg(c.type,o,u.icon.size),c.lblTitle.visible=c.titleText?1:0,c.lblTitle.text=C(c.titleText),c.lblTitle.textColor=t.title,c.lblMessage.visible=c.messageText?1:0,c.lblMessage.text=C(c.messageText),c.lblMessage.textColor=c.titleText?t.message:t.title;const n=!(!c.action||!c.action.text);c.btnAction.visible=n?1:0,n&&(c.btnAction.plainText=c.action.text,c.btnAction.textColor=t.actionText||o,c.btnAction.color=t.actionFill||Toast.alpha(o,.12)),c.btnClose.visible=1==c.closable?1:0,c.btnClose.text=Toast.getCloseSvg(t.close,u.close.iconSize),c.progress.color=o},v=function(t,o){const e=c.progress.css;o&&(e.transition="none",e.width="100%",c.progress.elem.offsetWidth),e.transition="width "+t+"ms linear",e.width="0%"},A=function(){f=Date.now(),g=c.after(p,function(){g=null,c.close("timeout")})},z=function(){g&&g(),g=null},B=function(){z();const t=null!==c.duration&&void 0!==c.duration?c.duration:e.durations[c.type]??4e3,o=t>0&&1==c.showProgress;c.progress.visible=o?1:0,t>0?(p=t,E()?c.progress.css={transition:"none",width:"100%"}:(A(),o&&v(p,!0))):p=0},E=function(){return 1==c.pauseOnHover&&(h||b)||document.hidden},H=function(){g&&(z(),p=Math.max(0,p-(Date.now()-f)),function(){const t=c.progress.css,o=window.getComputedStyle(c.progress.elem).width;t.transition="none",t.width=o}())},M=function(){c&&(E()?H():!g&&p>0&&!E()&&!c.isClosing&&(A(),c.progress.visible&&v(p,!1)))};c.update=function(t={}){return!c||c.isClosing||(["type","titleText","messageText","allowHtml","duration","closable","showProgress","pauseOnHover","theme","onClick","action"].forEach(function(o){o in t&&(c[o]=t[o])}),"duration"in t||(c.duration=null),k(),B()),c},c.bump=function(){if(!c)return;const t=c.card.css;t.transition="transform 0.12s",t.transform="scale(1.03)",c.after(120,function(){t.transform="scale(1)"})},c.close=function(t="api"){if(!c||c.isClosing)return;c.isClosing=1,z(),d&&d(),Toast.list=Toast.list.filter(function(t){return t!==c});const o=c,e=o.card.css,n=S();e.transition="opacity 0.16s, transform "+y,e.opacity="0",e.transform="translate("+n.x+"px, "+n.y+"px) scale(0.98)",setTimeout(function(){const e=o.css;e.height=o.elem.offsetHeight+"px",o.elem.offsetHeight,e.transition="height 0.16s, padding "+y,e.height="0px",e.paddingTop="0px",e.paddingBottom="0px",setTimeout(function(){o.onClose(o,t),o.remove(),c===o&&(c=null)},170)},150)};const F=c.remove;c.superRemove=F,c.remove=function(){c&&(Toast.list=Toast.list.filter(function(t){return t!==c}),F.call(c),c=null)},c.css={overflow:"visible",boxSizing:"border-box"},c.css[r?"paddingTop":"paddingBottom"]=e.gap*Toast.getScale()+"px",c.card=HGroup({width:"100%",height:"auto",align:"left top",gap:u.card.gap,padding:u.card.padding,border:u.card.border,round:u.card.round,clickable:1,position:"relative"}),c.card.css={overflow:"hidden",boxSizing:"border-box",outline:"none"},c.card.tabIndex=-1,c.icon=Label({text:"",width:u.icon.size,height:u.icon.size}),c.icon.shrink=0,c.icon.lineHeight="0",c.icon.css.marginTop=u.icon.marginTop+"px",c.icon.aria={hidden:"true"},c.textGroup=VGroup({width:"auto",height:"auto",align:"left top",gap:u.texts.gap}),c.textGroup.css={flex:"1 1 auto",minWidth:"0"},c.lblTitle=Label({text:"",width:"100%",fontSize:u.title.fontSize}),c.lblTitle.css={fontFamily:"opensans-bold",overflowWrap:"anywhere"},c.lblMessage=Label({text:"",width:"100%",fontSize:u.message.fontSize}),c.lblMessage.css.overflowWrap="anywhere",c.lblMessage.lineHeight="1.45",c.btnAction=Label({text:"",fontSize:u.action.fontSize,padding:u.action.padding,round:u.action.round,clickable:1}),c.btnAction.css={fontFamily:"opensans-bold",marginTop:u.action.marginTop+"px"},c.btnAction.cursor="pointer",c.btnAction.tabIndex=0,c.btnAction.role="button",endGroup(),c.btnClose=Label({text:"",width:u.close.size,height:u.close.size,round:u.close.round,clickable:1}),c.btnClose.shrink=0,c.btnClose.lineHeight="0",c.btnClose.cursor="pointer",c.btnClose.elem.style.display="flex";const I=u.close.marginTop+"px "+u.close.marginRight+"px 0 0";c.btnClose.css={alignItems:"center",justifyContent:"center",margin:I},c.btnClose.tabIndex=0,c.btnClose.role="button",c.btnClose.aria={label:"Close"},c.progress=Box({width:"100%",height:u.progress.height,opacity:u.progress.opacity}),endGroup(),c.progress.position="absolute",c.progress.left=0,c.progress.bottom=0,r||a.elem.firstChild===c.elem||a.elem.insertBefore(c.elem,a.elem.firstChild);const W=function(t,o){"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),o())},D=function(){if(!c||!c.action||c.isClosing)return;!1!==("function"==typeof c.action.onClick?c.action.onClick(c):void 0)&&c.close("action")};c.btnAction.on("click",D),c.btnAction.on("keydown",function(t,o){W(o,D)});const O=function(){c.close("close")};c.btnClose.on("click",O),c.btnClose.on("keydown",function(t,o){W(o,O)}),c.btnClose.on("mouseover",function(){c.btnClose.color=w().closeHover}),c.btnClose.on("mouseout",function(){c.btnClose.color="transparent"}),c.card.on("click",function(t,o){c&&c.onClick&&(c.btnAction.elem.contains(o.target)||c.btnClose.elem.contains(o.target)||c.onClick(c))}),c.card.on("keydown",function(t,o){"Escape"==o.key&&c&&1==c.closable&&c.close("close")}),c.card.on("mouseenter",function(){h=1,M()}),c.card.on("mouseleave",function(){h=0,M()}),c.card.on("focusin",function(){b=1,M()}),c.card.on("focusout",function(){b=0,M()}),d=c.listenTo(document,"visibilitychange",function(){M()}),k();const _=c.card.css,P=S();_.opacity="0",_.transform="translate("+P.x+"px, "+P.y+"px) scale(0.98)",c.card.elem.offsetWidth,_.transition="opacity 0.2s, transform "+x,_.opacity="1",_.transform="translate(0px, 0px) scale(1)",Toast.list.push(c),endObject(c),setDefaultContainerBox(l),B();const L=Toast.list.filter(function(t){return t.toastPosition==n});return L.length>e.maxVisible&&L.slice(0,L.length-e.maxVisible).forEach(function(t){t.close("limit")}),c};Toast.POSITIONS=["top-right","top-center","top-left","bottom-right","bottom-center","bottom-left"],Toast.options={position:"top-right",theme:"auto",width:360,offset:16,offsetTop:null,offsetBottom:null,gap:10,maxVisible:5,zIndex:45e3,smallScreenWidth:520,durations:{success:3e3,info:4e3,warning:5e3,error:7e3,loading:0},scale:null},Toast.THEMES={light:{background:"#FFFFFF",border:"rgba(11, 11, 11, 0.08)",shadow:"0 8px 28px rgba(0, 0, 0, 0.14)",title:"#1B1B1A",message:"#5F5E5A",close:"rgba(11, 11, 11, 0.45)",closeHover:"rgba(11, 11, 11, 0.06)",colors:{success:"#15935F",error:"#D93F3E",warning:"#B77A00",info:"#2A78D6",loading:"#6B6A65"}},dark:{background:"#262625",border:"rgba(255, 255, 255, 0.10)",shadow:"0 8px 28px rgba(0, 0, 0, 0.5)",title:"rgba(255, 255, 255, 0.95)",message:"rgba(255, 255, 255, 0.65)",close:"rgba(255, 255, 255, 0.5)",closeHover:"rgba(255, 255, 255, 0.08)",colors:{success:"#3CC08A",error:"#EF6B6A",warning:"#E8B23A",info:"#5A9CF0",loading:"rgba(255, 255, 255, 0.7)"}}},Toast.MINIMAL_SHAPES={card:{round:4,padding:[12,10],gap:10,border:1},icon:{size:16,marginTop:1},title:{fontSize:13},message:{fontSize:12},action:{fontSize:12,padding:[0,2],round:4,marginTop:4},close:{size:20,iconSize:14,round:4,marginTop:-2,marginRight:-4},progress:{height:2,opacity:.45}},Toast.THEMES.minimal={background:"#FFFFFF",border:Black(.2),shadow:"none",title:Black(.85),message:Black(.55),close:Black(.45),closeHover:Black(.05),actionText:"#1F1F1F",actionFill:"transparent",colors:{success:"#2E9E74",error:"#C24A36",warning:"#B77A00",info:"#3D8BD9",loading:Black(.55)},style:Toast.MINIMAL_SHAPES},Toast.THEMES.minimalDark={background:"#1A1A19",border:White(.18),shadow:"none",title:White(.88),message:White(.55),close:White(.5),closeHover:White(.06),actionText:"#EDEDEB",actionFill:"transparent",colors:{success:"#7FE3B5",error:"#FF9F93",warning:"#E8B23A",info:"#7FB6DE",loading:White(.55)},style:Toast.MINIMAL_SHAPES},Toast.list=[],Toast._containers={},Toast._isResizeListening=0,Toast._layoutScale=1,Toast.show=function(t={}){return Toast(t)},Toast.success=function(t,o={}){return Toast(Object.assign({},o,{type:"success",messageText:t}))},Toast.error=function(t,o={}){return Toast(Object.assign({},o,{type:"error",messageText:t}))},Toast.warning=function(t,o={}){return Toast(Object.assign({},o,{type:"warning",messageText:t}))},Toast.info=function(t,o={}){return Toast(Object.assign({},o,{type:"info",messageText:t}))},Toast.promise=function(t,o={},e={}){const n=Toast(Object.assign({},e,{type:"loading",messageText:o.loading||"Loading...",duration:0,closable:0})),s=function(t,o){return"function"==typeof t?t(o):t};return t.then(function(t){n.update({type:"success",messageText:s(o.success,t)||"Done.",closable:1})},function(t){n.update({type:"error",messageText:s(o.error,t)||"Something went wrong.",closable:1})}),t},Toast.closeAll=function(){Toast.list.slice().forEach(function(t){t.close("api")})},Toast.setOptions=function(t={}){Object.keys(t).forEach(function(o){"durations"==o?Object.assign(Toast.options.durations,t.durations):Toast.options[o]=t[o]}),Toast.layoutContainers()},Toast.getContainer=function(t){let o=Toast._containers[t];if(o&&o.elem.isConnected)return Toast.getScale()!==Toast._layoutScale&&Toast.layoutContainers(),o;const e=getDefaultContainerBox();return setDefaultContainerBox(page),o=VGroup({width:Toast.options.width,height:"auto",align:t.endsWith("left")?"left top":t.endsWith("right")?"right top":"center top",gap:0}),o.css={alignItems:"stretch",overflow:"visible"},o.role="region",o.aria={label:"Notifications"},endGroup(),setDefaultContainerBox(e),o.toastPosition=t,Toast._containers[t]=o,Toast._isResizeListening||(Toast._isResizeListening=1,page.onResize(function(){Toast.layoutContainers()})),Toast.layoutContainers(),o},Toast.getScale=function(t=null){return t??Toast.options.scale??basic.uiScale},Toast.layoutContainers=function(){const t=Toast.options,o=Toast.getScale(),e=t.offset*o,n=(t.offsetTop??t.offset)*o,s=(t.offsetBottom??t.offset)*o,i=page.width<t.smallScreenWidth*o;Toast._layoutScale=o,Object.keys(Toast._containers).forEach(function(a){const r=Toast._containers[a].css;if(r.position="absolute",r.zIndex=String(t.zIndex),r.top="",r.bottom="",r.left="",r.right="",r.transform="none",r.maxWidth="calc(100% - "+2*e+"px)",a.startsWith("top")?r.top=n+"px":r.bottom=s+"px",i)return r.left=e+"px",void(r.width="calc(100% - "+2*e+"px)");r.width=t.width*o+"px",a.endsWith("left")?r.left=e+"px":a.endsWith("right")?r.right=e+"px":(r.left="50%",r.transform="translateX(-50%)")})},Toast.escapeHtml=basic.escapeHtml,Toast.alpha=function(t,o){if(!/^#[0-9a-f]{6}$/i.test(t))return t.replace(/[\d.]+\)$/,o+")");const e=parseInt(t.slice(1),16);return"rgba("+(e>>16)+", "+(e>>8&255)+", "+(255&e)+", "+o+")"},Toast.ICON_PATHS={success:'<circle cx="12" cy="12" r="10"/><path d="m7.5 12.5 3 3 6-6.5"/>',error:'<circle cx="12" cy="12" r="10"/><path d="M15 9l-6 6M9 9l6 6"/>',warning:'<path d="M10.3 3.9 2.4 17.6A2 2 0 0 0 4.1 20.6h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z"/><path d="M12 9.5v4M12 17h.01"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 11v5.5M12 7.5h.01"/>',loading:'<circle cx="12" cy="12" r="9" opacity="0.25"/><path d="M21 12a9 9 0 0 0-9-9"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="0.8s" repeatCount="indefinite"/></path>'},Toast.getIconSvg=function(t,o,e){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+e+'" viewBox="0 0 24 24" fill="none" stroke="'+o+'" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">'+(Toast.ICON_PATHS[t]||Toast.ICON_PATHS.info)+"</svg>"},Toast.getCloseSvg=function(t,o=16){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+o+'" height="'+o+'" viewBox="0 0 24 24" fill="none" stroke="'+t+'" stroke-width="2" stroke-linecap="round"><path d="M6 6l12 12M18 6 6 18"/></svg>'};
@@ -1,2 +1,2 @@
1
1
  /* Bismillah */
2
- "use strict";const ToggleDefaults={key:"0",width:70,height:40,spacing:3,value:0,invertColor:0,offButtonScale:.6,onMark:"",offMark:"",markPlace:"track",animated:1,markStyle:{size:16,lineWidth:3.5,fontSize:12,color:Black(.5),selectedColor:White(.95)},onChange:function(e){},backgroundStyle:{color:"whitesmoke",selectedColor:"#689BD2",border:1,borderColor:Black(.05),selectedBorderColor:"",round:100},buttonStyle:{color:Black(.15),selectedColor:White(.95),border:0,round:100,shadow:"none",selectedShadow:"-1px 0px 4px rgba(0, 0, 0, 0.15)"},styleName:"modern",style:{}},Toggle=function(e={}){basic.applyStylePackage(e,Toggle.styles,ToggleDefaults),mergeIntoIfMissing(e,ToggleDefaults),e.color="transparent",e.clickable=1,e.clipContent=0;let o=startObject(e),t=0,r=0;const n="knob"===o.markPlace;let l=!1,c=!1;const a="0.2s",s="cubic-bezier(0.2, 0.8, 0.2, 1)",d=function(){if(1!=o.animated||!o.onMark&&!o.offMark)return!1;return!(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)},i=function(e){const o=e?1:-1;return n?`rotate(${90*o}deg) scale(0.6)`:`translateX(${6*-o}px) scale(0.6)`},u=function(e){if("mouseover"!==o.secondState)return"none";return`scale(${!!Toggle.MARK_PATHS[e]?1.1:1.05})`},h=function(){if(o.button.css.transform=function(){const e="selected"===o.state,t=`translateX(${e?r:0}px)`;return l&&d()?`${t} scale(1.1, 0.92)`:`scale(${e?1:o.offButtonScale}) ${t}`}(),!d())return;const e="selected"===o.state;o.onMarkBox.css.transform=e?u(o.onMark):i(!0),o.offMarkBox.css.transform=e?i(!1):u(o.offMark)},g=function(e){l=e,h()},f=function(){const e=d();if(!e&&!c)return;const t=n?"0.25s cubic-bezier(0.34, 1.56, 0.64, 1)":a+" "+s;[o.onMarkBox,o.offMarkBox].forEach(function(o){o.setMotion(e?`opacity ${a} ${s}, transform ${t}`:"none"),e||(o.css.transform="none")}),c=e,h()},b=function(e,t,r){const n=o.markStyle;if(e.children.forEach(e=>e.remove()),!t)return;const l=Toggle.MARK_PATHS[t];createIn(e,function(){l?Icon({width:n.size,height:n.size}).load(function(e,t){const r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="${t}" stroke-width="${o.markStyle.lineWidth}" stroke-linecap="round" stroke-linejoin="round"><path d="${e}"/></svg>`;return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r)}(l,r)):Label({plainText:t,fontSize:n.fontSize,bold:1,textColor:r,css:{whiteSpace:"nowrap"}})})},p=function(){const e=HGroup({left:0,top:0,width:"100%",height:"100%",align:"center center",opacity:0});return endGroup(),e},k=function(){o.onMarkBox=p(),o.offMarkBox=p()};return o.state="",o.secondState="",o.switch=function(){o.setValue(1===o.value?0:1)},o.setValue=function(e){o.value=e,o.setState(1===e?"selected":"normal"),o.onChange(o)},o.setBackgroundSelectedColor=function(e){o.backgroundStyle.selectedColor=e,1===o.value&&(o.background.color=e)},o.setState=function(e){switch(o.state=e,o.aria={checked:"selected"===e},e){case"normal":o.button.color=o.buttonStyle.color,o.button.boxShadow=o.buttonStyle.shadow,o.background.color=o.backgroundStyle.color,o.background.borderColor=o.backgroundStyle.borderColor,o.onMarkBox.opacity=0,o.offMarkBox.opacity=1;break;case"selected":o.button.color=o.buttonStyle.selectedColor,o.button.boxShadow=o.buttonStyle.selectedShadow,o.background.color=o.backgroundStyle.selectedColor,o.background.borderColor=o.backgroundStyle.selectedBorderColor||o.backgroundStyle.borderColor,o.onMarkBox.opacity=1,o.offMarkBox.opacity=0}h()},o.setMarks=function(e,t){o.onMark=e,o.offMark=t,b(o.onMarkBox,e,o.markStyle.selectedColor),b(o.offMarkBox,t,o.markStyle.color),f()},o.setAnimated=function(e){o.animated=1==e?1:0,f()},o.setSecondState=function(e){switch(o.secondState=e,"disabled"!==e&&(o.tabIndex=0,o.aria={disabled:null}),e){case"normal":o.background.css.filter="brightness(100%)",o.opacity=1,o.clickable=1,h();break;case"mouseover":o.background.css.filter="brightness(103%)",o.opacity=1,o.clickable=1,h();break;case"disabled":o.background.css.filter="brightness(90%)",o.opacity=.75,o.clickable=0,o.tabIndex=-1,o.aria={disabled:!0}}},o.refresh=function(){t=o.height-2*o.spacing,r=o.width-2*o.spacing-t,o.button.props({left:o.spacing,top:o.spacing,width:t,height:t}),n||(o.onMarkBox.props({left:o.spacing,width:r}),o.offMarkBox.props({left:o.spacing+t,width:r})),o.setState(1===o.value?"selected":"normal"),o.setSecondState(o.secondState||"normal")},o.cursor="pointer",o.role="switch",o.setFocusRing(),1===o.invertColor&&(o.css.filter="invert(100%)"),o.background=Box(0,0,"100%","100%",o.backgroundStyle),o.background.setMotion("background-color 0.2s, border-color 0.2s"),n||k(),o.button=Box(o.buttonStyle),that.setMotion("transform 0.2s"),n&&createIn(o.button,k),o.setMarks(o.onMark,o.offMark),o.on("pointerdown",()=>g(!0)),["pointerup","pointerleave","pointercancel"].forEach(e=>o.on(e,()=>g(!1))),o.on("click",function(e,t){o.switch()}),o.on("keydown",function(e,t){(" "===t.key||"Enter"===t.key)&&!t.repeat&&"disabled"!==o.secondState&&(t.preventDefault(),o.switch())}),o.on("mouseover",function(e,t){o.setSecondState("mouseover")}),o.on("mouseout",function(e,t){o.setSecondState("normal")}),o.onResize(function(e){o.refresh()}),o.refresh(),f(),endObject(o)};Toggle.MARK_PATHS={check:"M5 12.5l4.5 4.5L19 7.5",cross:"M6.5 6.5l11 11M17.5 6.5l-11 11"},Toggle.styles={modern:{style:{}},classic:{style:{},width:60,height:40,spacing:4,offButtonScale:1,backgroundStyle:{color:"lightgray",selectedColor:"#3871E0",border:0},buttonStyle:{color:"white",selectedColor:"white",shadow:"1px 0px 6px rgba(0, 0, 0, 0.3)",selectedShadow:"-1px 0px 6px rgba(0, 0, 0, 0.6)"}},float:{style:{},width:56,height:30,spacing:0,offButtonScale:1,backgroundStyle:{left:1,top:2,width:54,height:26,color:"#F1F1F1",selectedColor:"#CFC3DD",border:0,round:20},buttonStyle:{color:"white",selectedColor:"#8E8EB3",round:16,shadow:"0px 0px 6px rgba(0, 0, 0, 0.4)",selectedShadow:"0px 0px 6px rgba(0, 0, 0, 0.4)"}},round:{style:{},width:60,height:40,spacing:2,offButtonScale:1,backgroundStyle:{color:"lightgray",selectedColor:"#68AF8E",border:0,round:20},buttonStyle:{color:"white",selectedColor:"white",round:18,shadow:"2px 0px 4px rgba(0, 0, 0, 0.3)",selectedShadow:"-2px 0px 4px rgba(0, 0, 0, 0.5)"}},slim:{style:{},width:56,height:28,spacing:2,offButtonScale:1,backgroundStyle:{color:"lightgray",selectedColor:"#60AEAC",border:0,round:28},buttonStyle:{color:"white",selectedColor:"white",round:16,shadow:"none",selectedShadow:"0px 0px 8px rgba(0, 0, 0, 0.4)"}},outline:{style:{},width:60,height:30,spacing:5,offButtonScale:1,backgroundStyle:{color:"white",selectedColor:"#8FA6BE",border:3,borderColor:"#8FA6BE",selectedBorderColor:"#8FA6BE",round:20},buttonStyle:{color:"#8FA6BE",selectedColor:"white",round:16,shadow:"none",selectedShadow:"none"}},square:{style:{},width:56,height:34,spacing:1,offButtonScale:1,backgroundStyle:{color:"lightgray",selectedColor:"#C08BBE",border:0,round:3},buttonStyle:{color:"white",selectedColor:"white",round:3,shadow:"2px 0px 3px rgba(0, 0, 0, 0.2)",selectedShadow:"-2px 0px 3px rgba(0, 0, 0, 0.2)"}},tick:{style:{},width:72,height:36,spacing:3,offButtonScale:1,onMark:"check",offMark:"cross",markStyle:{size:18,lineWidth:2.5,color:"#5F6577",selectedColor:"white"},backgroundStyle:{color:"#D9DCE3",selectedColor:"#7A60F0",border:0},buttonStyle:{color:"white",selectedColor:"white",shadow:"0px 1px 4px rgba(0, 0, 0, 0.2)",selectedShadow:"0px 1px 4px rgba(0, 0, 0, 0.2)"}},badge:{style:{},width:72,height:36,spacing:3,offButtonScale:1,onMark:"check",offMark:"cross",markPlace:"knob",markStyle:{size:18,color:"#B55449",selectedColor:"#3A7756"},backgroundStyle:{color:"#EBC9C4",selectedColor:"#C3DBCE",border:0},buttonStyle:{color:"#F4F4F2",selectedColor:"#F4F4F2",shadow:"0px 1px 3px rgba(0, 0, 0, 0.25)",selectedShadow:"0px 1px 3px rgba(0, 0, 0, 0.25)"}},label:{style:{},width:68,height:30,spacing:2,offButtonScale:1,onMark:"ON",offMark:"OFF",markStyle:{fontSize:11,color:"#5F6577",selectedColor:"white"},backgroundStyle:{color:"#D9DBE1",selectedColor:"#D46864",border:0,round:6},buttonStyle:{color:"white",selectedColor:"white",round:5,shadow:"0px 1px 2px rgba(0, 0, 0, 0.2)",selectedShadow:"0px 1px 2px rgba(0, 0, 0, 0.2)"}}};
2
+ "use strict";const ToggleDefaults={key:"0",width:70,height:40,spacing:3,value:0,invertColor:0,offButtonScale:.6,onMark:"",offMark:"",markPlace:"track",animated:1,focusRingColor:"",markStyle:{size:16,lineWidth:3.5,fontSize:12,color:Black(.5),selectedColor:White(.95)},onChange:function(e){},backgroundStyle:{color:"whitesmoke",selectedColor:"#689BD2",border:1,borderColor:Black(.05),selectedBorderColor:"",round:100},buttonStyle:{color:Black(.15),selectedColor:White(.95),border:0,round:100,shadow:"none",selectedShadow:"-1px 0px 4px rgba(0, 0, 0, 0.15)"},styleName:"ozden",style:{}},Toggle=function(e={}){["backgroundStyle","buttonStyle","markStyle"].forEach(function(o){e[o]&&(e[o]=Object.assign({},e[o]))});const o=e.backgroundStyle||{},t=void 0!==o.borderColor&&void 0===o.selectedBorderColor;basic.applyStylePackage(e,Toggle.styles,ToggleDefaults),mergeIntoIfMissing(e,ToggleDefaults),t&&(e.backgroundStyle.selectedBorderColor=""),void 0===e.shrink&&(e.shrink=0),e.color="transparent",e.clickable=1,e.clipContent=0;let r=startObject(e),l=0,n=0;const c="knob"===r.markPlace;let a=!1,s=!1;const d="0.2s",i="cubic-bezier(0.2, 0.8, 0.2, 1)",u=e=>!!Toggle.MARK_PATHS[e],g=function(){if(1!=r.animated||!r.onMark&&!r.offMark)return!1;return!(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)},h=function(e,o,t){return u(e)?o?"mouseover"!==r.secondState?"none":"scale(1.1)":function(e){const o=e?1:-1;return c?`rotate(${90*o}deg) scale(0.6)`:`translateX(${6*-o}px) scale(0.6)`}(t):"none"},b=function(){if(r.button.css.transform=function(){const e="selected"===r.state,o=`translateX(${e?n:0}px)`;return a&&g()?`${o} scale(1.1, 0.92)`:`scale(${e?1:r.offButtonScale}) ${o}`}(),!g())return;const e="selected"===r.state;r.onMarkBox.css.transform=h(r.onMark,e,!0),r.offMarkBox.css.transform=h(r.offMark,!e,!1)},f=function(e){a=e,b()},k=function(){const e=g();if(!e&&!s)return;const o=c?"0.25s cubic-bezier(0.34, 1.56, 0.64, 1)":d+" "+i;[[r.onMarkBox,r.onMark],[r.offMarkBox,r.offMark]].forEach(function([t,r]){const l=e&&u(r);t.setMotion(l?`opacity ${d} ${i}, transform ${o}`:"none"),l||(t.css.transform="none")}),s=e,b()},p=function(e,o,t){const l=r.markStyle;if(e.children.forEach(e=>e.remove()),!o)return;const n=Toggle.MARK_PATHS[o];createIn(e,function(){n?Icon({width:l.size,height:l.size}).load(function(e,o){const t=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="${o}" stroke-width="${r.markStyle.lineWidth}" stroke-linecap="round" stroke-linejoin="round"><path d="${e}"/></svg>`;return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(t)}(n,t)):Label({plainText:o,fontSize:l.fontSize,bold:1,textColor:t,css:{whiteSpace:"nowrap"}})})},S=function(){const e=HGroup({left:0,top:0,width:"100%",height:"100%",align:"center center",opacity:0});return endGroup(),e},y=function(){r.onMarkBox=S(),r.offMarkBox=S()};return r.state="",r.secondState="",r.switch=function(){r.setValue(1===r.value?0:1)},r.setValue=function(e,o=0){e!==r.value&&(r.value=e,r.setState(1===e?"selected":"normal"),o||r.onChange(r))},r.setBackgroundSelectedColor=function(e){r.backgroundStyle.selectedColor=e,1===r.value&&(r.background.color=e)},r.setState=function(e){switch(r.state=e,r.aria={checked:"selected"===e},e){case"normal":r.button.color=r.buttonStyle.color,r.button.boxShadow=r.buttonStyle.shadow,r.background.color=r.backgroundStyle.color,r.background.borderColor=r.backgroundStyle.borderColor,r.onMarkBox.opacity=0,r.offMarkBox.opacity=1;break;case"selected":r.button.color=r.buttonStyle.selectedColor,r.button.boxShadow=r.buttonStyle.selectedShadow,r.background.color=r.backgroundStyle.selectedColor,r.background.borderColor=r.backgroundStyle.selectedBorderColor||r.backgroundStyle.borderColor,r.onMarkBox.opacity=1,r.offMarkBox.opacity=0}b()},r.setMarks=function(e,o){r.onMark=e,r.offMark=o,p(r.onMarkBox,e,r.markStyle.selectedColor),p(r.offMarkBox,o,r.markStyle.color),k()},r.setAnimated=function(e){r.animated=1==e?1:0,k()},r.setSecondState=function(e){switch(r.secondState=e,"disabled"!==e&&(r.tabIndex=0,r.aria={disabled:null}),e){case"normal":r.background.css.filter="brightness(100%)",r.opacity=1,r.clickable=1,b();break;case"mouseover":r.background.css.filter="brightness(103%)",r.opacity=1,r.clickable=1,b();break;case"disabled":r.background.css.filter="brightness(90%)",r.opacity=.75,r.clickable=0,r.tabIndex=-1,r.aria={disabled:!0}}},r.refresh=function(){l=r.height-2*r.spacing,n=r.width-2*r.spacing-l,r.button.props({left:r.spacing,top:r.spacing,width:l,height:l}),c||(r.onMarkBox.props({left:r.spacing,width:n}),r.offMarkBox.props({left:r.spacing+l,width:n})),r.setState(1===r.value?"selected":"normal"),r.setSecondState(r.secondState||"normal")},r.cursor="pointer",r.role="switch",r.setFocusRing(r.focusRingColor||void 0),r.round=r.backgroundStyle.round,1===r.invertColor&&(r.css.filter="invert(100%)"),r.background=Box(0,0,"100%","100%",r.backgroundStyle),r.background.setMotion("background-color 0.2s, border-color 0.2s"),c||y(),r.button=Box(r.buttonStyle),that.setMotion("transform 0.2s"),c&&createIn(r.button,y),r.setMarks(r.onMark,r.offMark),r.on("pointerdown",()=>f(!0)),["pointerup","pointerleave","pointercancel"].forEach(e=>r.on(e,()=>f(!1))),r.on("click",function(e,o){"disabled"!==r.secondState&&r.switch()}),r.on("keydown",function(e,o){(" "===o.key||"Enter"===o.key)&&!o.repeat&&"disabled"!==r.secondState&&(o.preventDefault(),r.switch())}),r.on("mouseover",function(e,o){"disabled"!==r.secondState&&r.setSecondState("mouseover")}),r.on("mouseout",function(e,o){"disabled"!==r.secondState&&r.setSecondState("normal")}),r.onResize(function(e){r.refresh()}),r.refresh(),k(),endObject(r)};Toggle.MARK_PATHS={check:"M5 12.5l4.5 4.5L19 7.5",cross:"M6.5 6.5l11 11M17.5 6.5l-11 11"},Toggle.styles={ozden:{style:{},height:36,width:65,onMark:"ON",offMark:"OFF",backgroundStyle:{selectedBorderColor:Black(.2)},buttonStyle:{selectedShadow:"-4px 0px 6px -1px rgba(0, 0, 0, 0.5), 0px 0px 0px 1px rgba(0, 0, 0, 0.2)"}},ozdenDark:{style:{},height:36,width:65,onMark:"ON",offMark:"OFF",backgroundStyle:{color:"black",selectedColor:"#2C5A38",borderColor:White(.25)},buttonStyle:{color:White(.25),selectedColor:White(.75)}},light:{style:{},width:52,height:30,spacing:3,offButtonScale:1,focusRingColor:"rgba(61, 122, 107, 0.5)",markStyle:{size:12,lineWidth:3,fontSize:11,color:Black(.45),selectedColor:"#FFFFFF"},backgroundStyle:{color:"#D4D5D1",selectedColor:"#3D7A6B",border:0,borderColor:"transparent",selectedBorderColor:"",round:100},buttonStyle:{color:"#FFFFFF",selectedColor:"#FFFFFF",round:100,shadow:"0 1px 2px rgba(0, 0, 0, 0.25)",selectedShadow:"0 1px 2px rgba(0, 0, 0, 0.25)"}},dark:{style:{},width:52,height:30,spacing:3,offButtonScale:1,focusRingColor:"rgba(101, 162, 147, 0.55)",markStyle:{size:12,lineWidth:3,fontSize:11,color:White(.7),selectedColor:"#0F1F1B"},backgroundStyle:{color:"#3A3A38",selectedColor:"#65A293",border:0,borderColor:"transparent",selectedBorderColor:"",round:100},buttonStyle:{color:"#CFCFCD",selectedColor:"#FFFFFF",round:100,shadow:"0 1px 2px rgba(0, 0, 0, 0.5)",selectedShadow:"0 1px 2px rgba(0, 0, 0, 0.5)"}},classic:{style:{},width:60,height:40,spacing:4,offButtonScale:1,backgroundStyle:{color:"lightgray",selectedColor:"#3871E0",border:0},buttonStyle:{color:"white",selectedColor:"white",shadow:"1px 0px 6px rgba(0, 0, 0, 0.3)",selectedShadow:"-1px 0px 6px rgba(0, 0, 0, 0.6)"}},float:{style:{},width:56,height:30,spacing:0,offButtonScale:1,backgroundStyle:{left:1,top:2,width:54,height:26,color:"#F1F1F1",selectedColor:"#CFC3DD",border:0,round:20},buttonStyle:{color:"white",selectedColor:"#8E8EB3",round:16,shadow:"0px 0px 6px rgba(0, 0, 0, 0.4)",selectedShadow:"0px 0px 6px rgba(0, 0, 0, 0.4)"}},round:{style:{},width:60,height:40,spacing:2,offButtonScale:1,backgroundStyle:{color:"lightgray",selectedColor:"#68AF8E",border:0,round:20},buttonStyle:{color:"white",selectedColor:"white",round:18,shadow:"2px 0px 4px rgba(0, 0, 0, 0.3)",selectedShadow:"-2px 0px 4px rgba(0, 0, 0, 0.5)"}},slim:{style:{},width:56,height:28,spacing:2,offButtonScale:1,backgroundStyle:{color:"lightgray",selectedColor:"#60AEAC",border:0,round:28},buttonStyle:{color:"white",selectedColor:"white",round:16,shadow:"none",selectedShadow:"0px 0px 8px rgba(0, 0, 0, 0.4)"}},outline:{style:{},width:60,height:30,spacing:5,offButtonScale:1,backgroundStyle:{color:"white",selectedColor:"#8FA6BE",border:3,borderColor:"#8FA6BE",selectedBorderColor:"#8FA6BE",round:20},buttonStyle:{color:"#8FA6BE",selectedColor:"white",round:16,shadow:"none",selectedShadow:"none"}},square:{style:{},width:56,height:34,spacing:1,offButtonScale:1,backgroundStyle:{color:"lightgray",selectedColor:"#C08BBE",border:0,round:3},buttonStyle:{color:"white",selectedColor:"white",round:3,shadow:"2px 0px 3px rgba(0, 0, 0, 0.2)",selectedShadow:"-2px 0px 3px rgba(0, 0, 0, 0.2)"}},tick:{style:{},width:72,height:36,spacing:3,offButtonScale:1,onMark:"check",offMark:"cross",markStyle:{size:18,lineWidth:2.5,color:"#5F6577",selectedColor:"white"},backgroundStyle:{color:"#D9DCE3",selectedColor:"#7A60F0",border:0},buttonStyle:{color:"white",selectedColor:"white",shadow:"0px 1px 4px rgba(0, 0, 0, 0.2)",selectedShadow:"0px 1px 4px rgba(0, 0, 0, 0.2)"}},badge:{style:{},width:72,height:36,spacing:3,offButtonScale:1,onMark:"check",offMark:"cross",markPlace:"knob",markStyle:{size:18,color:"#B55449",selectedColor:"#3A7756"},backgroundStyle:{color:"#EBC9C4",selectedColor:"#C3DBCE",border:0},buttonStyle:{color:"#F4F4F2",selectedColor:"#F4F4F2",shadow:"0px 1px 3px rgba(0, 0, 0, 0.25)",selectedShadow:"0px 1px 3px rgba(0, 0, 0, 0.25)"}},label:{style:{},width:68,height:30,spacing:2,offButtonScale:1,onMark:"ON",offMark:"OFF",markStyle:{fontSize:11,color:"#5F6577",selectedColor:"white"},backgroundStyle:{color:"#D9DBE1",selectedColor:"#D46864",border:0,round:6},buttonStyle:{color:"white",selectedColor:"white",round:5,shadow:"0px 1px 2px rgba(0, 0, 0, 0.2)",selectedShadow:"0px 1px 2px rgba(0, 0, 0, 0.2)"}}},Toggle.createMinimalStyle=function(e){return{style:{},width:28,height:16,spacing:3,offButtonScale:1,focusRingColor:e.focus,backgroundStyle:{color:"transparent",selectedColor:"transparent",border:1,borderColor:e.line,selectedBorderColor:e.ink,round:100},buttonStyle:{color:e.knob,selectedColor:e.ink,border:0,round:100,shadow:"none",selectedShadow:"none"},markStyle:{color:e.knob,selectedColor:e.ink}}},Toggle.MINIMAL_COLORS={line:Black(.45),knob:Black(.45),ink:"#1F1F1F",focus:"#3D8BD9"},Toggle.styles.minimal=Toggle.createMinimalStyle(Toggle.MINIMAL_COLORS),Toggle.MINIMAL_DARK_COLORS={line:White(.42),knob:White(.42),ink:"#EDEDEB",focus:"#7FB6DE"},Toggle.styles.minimalDark=Toggle.createMinimalStyle(Toggle.MINIMAL_DARK_COLORS);
@@ -0,0 +1,2 @@
1
+ /* Bismillah */
2
+ "use strict";const ToolBarDefaults={key:"0",left:0,top:0,width:"100%",height:42,shrink:0,items:[],enabled:1,ariaLabel:"Tool bar",moreText:"More",onClick:function(t,o){},styleName:"light",style:{box:{color:"#F4F4F2",lineColor:Black(.12)},layout:{padding:6,gap:2},button:{height:30,padding:8,gap:6,round:6,fontSize:13,iconSize:18,textColor:Black(.72)},buttonHover:{color:Black(.07),borderColor:""},buttonOn:{color:Black(.13),textColor:Black(.92),borderColor:""},separator:{height:18,space:4,color:Black(.16)},bubble:{fontSize:12,padding:[9,5],color:"#2B2B2A",textColor:White(.95),round:6,border:0,shadow:"0 2px 8px "+Black(.18)},disabled:{opacity:.35},focus:{ringColor:"rgba(63, 141, 148, 0.8)"},menuStyleName:"light",menu:{item:{height:30,fontSize:13}},menuMinWidth:170}},ToolBar=function(t={}){const o=t.style;basic.applyStylePackage(t,ToolBar.styles,ToolBarDefaults),mergeIntoIfMissing(t,ToolBarDefaults);const e=startObject(t);let n=e.style,r=[],i=[],l=null,a=null,c=null,u=null,s=0;const h=function(t){return"-"===t?{type:"separator"}:" "===t?{type:"space"}:"object"!=typeof t||null===t?{text:String(t)}:MenuBar.copyItem(t)},d=function(t){return basic.isOn(t.toggle)||!!t.group},p=function(t){return basic.isOn(t.checked)},b=function(t){return 1==e.enabled&&!(void 0!==t.enabled&&!basic.isOn(t.enabled))},f=function(t){return"more"===t.kind||Array.isArray(t.item.items)},m=function(t){return"more"===t.kind?1==e.enabled:b(t.item)},g=function(t){return"button"===t.kind||"more"===t.kind},y=function(){return r.filter(function(t){return g(t)&&0!=t.object.visible&&m(t)})},x=function(t){const o=t.object,e=m(t),r=t===c||"button"===t.kind&&p(t.item);let i="transparent";var l;t.isHovered&&e&&(i=n.buttonHover.color),r&&(i=n.buttonOn.color),o.color=i,n.button.border&&(o.borderColor=function(t,o){return t&&n.buttonOn.borderColor?n.buttonOn.borderColor:o&&n.buttonHover.borderColor?n.buttonHover.borderColor:n.button.borderColor||"transparent"}(r,t.isHovered&&e)),o.textColor=r?n.buttonOn.textColor:n.button.textColor,o.opacity=e?1:n.disabled.opacity,o.cursor=e?"pointer":"default",o.tabIndex=t===a?0:-1,o.aria={disabled:e?"false":"true"},"button"===t.kind&&(l=t.item,d(l)||void 0!==l.checked)&&(o.aria={pressed:p(t.item)?"true":"false"}),f(t)&&(o.aria={expanded:t===c?"true":"false"})},M=function(){!function(){const t=y();t.includes(a)||(a=t[0]||null)}(),r.filter(g).forEach(x)},k=function(t){if("separator"===t.kind)return t.object.props({height:n.separator.height,color:n.separator.color}),void(t.object.css.margin="0 "+n.separator.space+"px");if(!g(t))return;const o="button"===t.kind&&!!t.item.text;t.object.props({height:n.button.height,fontSize:n.button.fontSize,round:n.button.round}),n.button.border&&t.object.props({border:n.button.border,borderColor:n.button.borderColor||"transparent"}),t.object.css={minWidth:n.button.height+"px",padding:o?"0 "+n.button.padding+"px":"0",gap:n.button.gap+"px"},t.object.setFocusRing(n.focus.ringColor),t.tooltip&&(t.tooltip.look=n.bubble)},v=function(){e.color=n.box.color,e.css.borderBottom="1px solid "+n.box.lineColor,e.layout.gap=n.layout.gap,e.layout.padding=[n.layout.padding,0],e.elem.style.setProperty("--tool-bar-icon",n.button.iconSize+"px")},B=function(t){const o=ToolBar.getHintText(t.item);t.object.aria={label:t.item.hint||t.item.text||""},"undefined"!=typeof Tooltip?t.tooltip&&o?t.tooltip.setHintText(o):(t.tooltip&&t.tooltip.remove(),t.tooltip=o?createIn(e.layout,function(){return function(t,o){return Tooltip({target:t.object,hintText:o,hintPosition:"bottom",look:n.bubble})}(t,o)}):null):t.object.elem.title=o},C=function(t,o){t.object=Button({width:"auto",color:"transparent",shrink:0,css:{display:"flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap"}}),t.object.minimal=1,t.object.text=o,t.object.onHoverChange(function(o,e){t.isHovered=e,x(t)}),t.object.on("click",function(o,e){W(t,e)}),t.object.on("keydown",function(o,e){F(t,e)})},T=function(t){const o={kind:"button",item:t,isHovered:0,tooltip:null};return"separator"===t.type||"space"===t.type?(o.kind=t.type,o.object="separator"===t.type?Box({width:1,shrink:0}):Box({width:0,height:1,grow:1,shrink:0,color:"transparent"})):(C(o,ToolBar.getButtonHtml(t)),Array.isArray(t.items)&&(o.object.aria={haspopup:"menu"}),B(o)),k(o),o},w=function(){createIn(e.layout,function(){r=e.items.map(T),l=function(){const t={kind:"more",item:{hint:e.moreText},isHovered:0,tooltip:null};return C(t,ToolBar.getButtonHtml({icon:"more"})),t.object.aria={haspopup:"menu"},B(t),k(t),t.object.visible=0,t}(),r.push(l)})},S=function(){return e.layout.elem.scrollWidth>e.layout.elem.clientWidth},j=function(){if(0===e.layout.elem.clientWidth)return;const t=r.filter(function(t){return t!==l});if(t.forEach(function(t){t.object.visible=1}),l.object.visible=0,i=[],S()){l.object.visible=1;for(let o=t.length-1;o>=0&&S();o--)t[o].object.visible=0,i.unshift(t[o]);H(t)}M()},H=function(t){const o=t.filter(function(t){return 0!=t.object.visible});for(let t=o.length-1;t>=0&&!g(o[t]);t--)o[t].object.visible=0,i.unshift(o[t])},I=function(t){if("object"!=typeof t||null===t)return t;if("separator"===t.type)return"-";const o=Object.assign({},t);return o.toolItem=t,o.onClick=null,o.text=String(t.text||t.hint||t.key||""),t.icon&&(o.icon=ToolBar.getIconSvg(t.icon)),t.shortcut&&(o.shortcut=MenuBar.shortcutText(t.shortcut)),d(t)&&(o.checked=p(t)?1:0),Array.isArray(t.items)&&(o.items=t.items.map(I)),o},A=function(t,o){const n="more"===t.kind?function(){const t=i.map(function(t){return t.item}).filter(function(t){return"space"!==t.type});for(;t.length&&"separator"===t[0].type;)t.shift();for(;t.length&&"separator"===t[t.length-1].type;)t.pop();return t}():t.item.items;0!==n.length&&(e.menu.setItems(n.map(I)),c=t,a=t,e.menu.openBelow(t.object),o&&e.menu.activateFirst(),M())},O=function(){const t=c;c=null,M(),t&&s&&t.object.elem.focus({preventScroll:!0})},D=function(t,o){t.group&&o?MenuBar.forEachItem(e.items,function(o){o.group===t.group&&(o.checked=o===t?1:0)}):t.checked=o?1:0},z=function(t){b(t)&&(d(t)&&D(t,t.group?1:!p(t)),M(),"function"==typeof t.onClick&&t.onClick(e,t),e.isRemoved||e.onClick(e,t))},W=function(t,o){if(t.tooltip&&t.tooltip.hideHint(),!m(t))return;if(a=t,!f(t))return void z(t.item);const e=0===o.detail,n=!e&&u===t;u=null,n||A(t,e)},F=function(t,o){if(c)return;const e=function(t,o){const e=y(),n=e.indexOf(t);return"ArrowRight"===o?e[(n+1)%e.length]:"ArrowLeft"===o?e[(n-1+e.length)%e.length]:"Home"===o?e[0]:"End"===o?e[e.length-1]:null}(t,o.key);e?(o.preventDefault(),function(t){a=t,M(),t.object.elem.focus()}(e)):"ArrowDown"===o.key&&f(t)&&m(t)&&(o.preventDefault(),A(t,1))},N=function(t){let o=null;return MenuBar.forEachItem(e.items,function(e){o||e.key!=t||(o=e)}),o},R=function(t){return r.find(function(o){return o.item===t})},L=function(){return ContextMenu({styleName:n.menuStyleName,style:n.menu,minWidth:n.menuMinWidth,ariaLabel:e.ariaLabel,onClick:function(t,o){z(o.toolItem||o)},onClose:O})};e.setItems=function(t){e.closeMenu(),r.forEach(function(t){t.tooltip&&t.tooltip.remove(),t.object.remove()}),r=[],i=[],l=null,e.items=Array.isArray(t)?t.map(h):[],w(),j(),M()},e.setItemEnabled=function(t,o){const e=N(t);e&&(e.enabled=basic.isOn(o)?1:0,M())},e.setItemChecked=function(t,o){const e=N(t);e&&(D(e,basic.isOn(o)),M())},e.setItemText=function(t,o){const e=N(t);if(!e)return;e.text=o;const n=R(e);n&&(n.object.text=ToolBar.getButtonHtml(e),k(n),B(n),j())},e.setItemHint=function(t,o){const e=N(t);if(!e)return;e.hint=o;const n=R(e);n&&B(n)},e.isItemChecked=function(t){const o=N(t);return!!o&&p(o)},e.getCheckedKeys=function(){const t=[];return MenuBar.forEachItem(e.items,function(o){p(o)&&t.push(o.key)}),t},e.clickItem=function(t){const o=N(t);o&&!Array.isArray(o.items)&&z(o)},e.closeMenu=function(){c&&e.menu.close()},e.setEnabled=function(t){e.enabled=basic.isOn(t)?1:0,1!=e.enabled&&e.closeMenu(),M()},e.setTheme=function(t){e.closeMenu(),e.styleName=t,n=function(t){const e={styleName:t,style:o};return basic.applyStylePackage(e,ToolBar.styles,ToolBarDefaults),mergeIntoIfMissing(e,ToolBarDefaults),e.style}(t),e.style=n,e.menu.remove(),e.menu=L(),v(),r.forEach(k),M()};const E=e.remove;return e.superRemove=E,e.remove=function(){e.isRemoved||(e.menu.remove(),E.call(e))},e.css.boxSizing="border-box",e.role="toolbar",e.aria={label:e.ariaLabel},e.layout=HGroup({width:"100%",height:"100%",align:"left center"}),endGroup(),basic.addCss("tool-bar-icon",".tool-bar-icon { display: block; flex-shrink: 0; width: var(--tool-bar-icon); height: var(--tool-bar-icon); }.tool-bar-icon svg, .tool-bar-icon img { display: block; width: 100%; height: 100%; }.tool-bar-arrow { display: block; flex-shrink: 0; width: 12px; height: 12px; margin-right: -2px; }.tool-bar-arrow svg { display: block; width: 100%; height: 100%; }.tool-bar-icon, .tool-bar-text, .tool-bar-arrow { pointer-events: none; }"),e.menu=L(),e.listenTo(window,"pointerdown",function(){u=c,s=0},!0),e.listenTo(window,"keydown",function(){s=1},!0),e.listenTo(window,"keydown",function(t,o){if(1!=e.enabled||o.defaultPrevented)return;if(0===e.elem.getClientRects().length)return;const n=MenuBar.findShortcutItem(e.items,o);n&&!MenuBar.isDialogOpen()&&(o.preventDefault(),o.repeat||(e.closeMenu(),z(n)))}),v(),e.setItems(t.items),e.onResize(j),document.fonts&&"loaded"!==document.fonts.status&&document.fonts.ready.then(function(){e.isRemoved||j()}),endObject(e)};ToolBar.SVG_START='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">',ToolBar.ICONS={new:'<path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"/><path d="M14 3v5h5"/>',open:'<path d="M3 7a2 2 0 0 1 2-2h4l2 2.5h8a2 2 0 0 1 2 2V17a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>',save:'<path d="M5 3h11l5 5v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M8 3v5h7V3"/><path d="M7 21v-7h10v7"/>',undo:'<path d="M9 14L4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"/>',redo:'<path d="M15 14l5-5-5-5"/><path d="M20 9H9.5a5.5 5.5 0 0 0 0 11H13"/>',cut:'<circle cx="6" cy="6.5" r="2.5"/><circle cx="6" cy="17.5" r="2.5"/><path d="M8 8.2 20 17"/><path d="M8 15.8 20 7"/>',copy:'<rect x="9" y="9" width="12" height="12" rx="2"/><path d="M5 15h-.5A1.5 1.5 0 0 1 3 13.5v-9A1.5 1.5 0 0 1 4.5 3h9A1.5 1.5 0 0 1 15 4.5V5"/>',paste:'<rect x="5" y="4.5" width="14" height="16.5" rx="2"/><rect x="9" y="2.5" width="6" height="4" rx="1"/>',delete:'<path d="M4 7h16"/><path d="M9 7V4.5h6V7"/><path d="M6.5 7l1 13h9l1-13"/><path d="M10.5 11v5"/><path d="M13.5 11v5"/>',search:'<circle cx="10.5" cy="10.5" r="6.5"/><path d="m15.5 15.5 5 5"/>',refresh:'<path d="M20 11a8 8 0 1 0-2.3 6.7"/><path d="M20 4.5V11h-6.5"/>',settings:'<path d="M4 7h9"/><path d="M17 7h3"/><circle cx="15" cy="7" r="2"/><path d="M4 17h3"/><path d="M11 17h9"/><circle cx="9" cy="17" r="2"/>',play:'<path d="M7 4.5v15l12-7.5z"/>',stop:'<rect x="6" y="6" width="12" height="12" rx="2"/>',plus:'<path d="M12 5v14"/><path d="M5 12h14"/>',minus:'<path d="M5 12h14"/>',bold:'<path d="M7 5h6a3.5 3.5 0 0 1 0 7H7z"/><path d="M7 12h7a3.5 3.5 0 0 1 0 7H7z"/>',italic:'<path d="M14.5 5H10"/><path d="M14 19H9.5"/><path d="M13 5l-2 14"/>',underline:'<path d="M7 4v7a5 5 0 0 0 10 0V4"/><path d="M5 20.5h14"/>',alignLeft:'<path d="M4 6h16"/><path d="M4 12h10"/><path d="M4 18h13"/>',alignCenter:'<path d="M4 6h16"/><path d="M7 12h10"/><path d="M5.5 18h13"/>',alignRight:'<path d="M4 6h16"/><path d="M10 12h10"/><path d="M7 18h13"/>',more:'<circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/>',arrowDown:'<path d="m7 10 5 5 5-5"/>'},ToolBar.getIconSvg=function(t){const o=String(t).trim();if(o.startsWith("<"))return o;const e=ToolBar.ICONS[o];return void 0===e?(console.warn("ToolBar: There is no icon named "+o),""):ToolBar.SVG_START+e+"</svg>"},ToolBar.getButtonHtml=function(t){let o="";return t.iconFile?o+='<span class="tool-bar-icon"><img alt="" src="'+basic.escapeHtml(t.iconFile)+'"></span>':t.icon&&(o+='<span class="tool-bar-icon">'+ToolBar.getIconSvg(t.icon)+"</span>"),t.text&&(o+='<span class="tool-bar-text">'+basic.escapeHtml(String(t.text))+"</span>"),Array.isArray(t.items)&&(o+='<span class="tool-bar-arrow">'+ToolBar.getIconSvg("arrowDown")+"</span>"),o},ToolBar.getHintText=function(t){if(!t.shortcut)return t.hint||"";const o=MenuBar.shortcutText(t.shortcut),e=t.hint||t.text;return e?e+" ("+o+")":o},ToolBar.styles={light:ToolBarDefaults.style,dark:{box:{color:"#232322",lineColor:White(.1)},button:{textColor:White(.74)},buttonHover:{color:White(.09)},buttonOn:{color:White(.17),textColor:White(.95)},separator:{color:White(.16)},bubble:{color:"#4A4A48",shadow:"0 2px 8px "+Black(.45)},focus:{ringColor:"rgba(111, 198, 205, 0.8)"},menuStyleName:"dark"}},ToolBar.createMinimalStyle=function(t){return{height:36,style:{box:{color:"transparent",lineColor:t.line},layout:{padding:4,gap:2},button:{height:28,padding:8,gap:6,round:4,fontSize:13,iconSize:14,textColor:t.text,border:1,borderColor:"transparent"},buttonHover:{color:"transparent",borderColor:t.lineHover},buttonOn:{color:"transparent",textColor:t.ink,borderColor:t.ink},separator:{height:16,space:4,color:t.line},bubble:{fontSize:12,padding:[8,4],color:t.ground,textColor:t.text,round:4,border:1,borderColor:t.line,shadow:"none"},disabled:{opacity:.35},focus:{ringColor:t.focus},menuStyleName:t.menuStyleName,menu:{item:{height:28,fontSize:13}},menuMinWidth:170}}},ToolBar.MINIMAL_COLORS={ground:"#FFFFFF",text:Black(.85),line:Black(.2),lineHover:Black(.45),ink:"#1F1F1F",focus:"#3D8BD9",menuStyleName:"minimal"},ToolBar.styles.minimal=ToolBar.createMinimalStyle(ToolBar.MINIMAL_COLORS),ToolBar.MINIMAL_DARK_COLORS={ground:"#1A1A19",text:White(.88),line:White(.18),lineHover:White(.42),ink:"#EDEDEB",focus:"#7FB6DE",menuStyleName:"minimalDark"},ToolBar.styles.minimalDark=ToolBar.createMinimalStyle(ToolBar.MINIMAL_DARK_COLORS);
@@ -1,2 +1,2 @@
1
1
  /* Bismillah */
2
- "use strict";const Tooltip=function(o={}){const t=startObject();t.props({target:null,hintText:"",hintPosition:"top",lbl_fontSize:12,lbl_spaceX:8,lbl_spaceY:3,lbl_color:"rgba(255, 255, 255, 0.90)",lbl_textColor:"rgba(0, 0, 0, 0.85)",lbl_round:3,lbl_border:1,lbl_borderColor:"rgba(0, 0, 0, 0.9)",lbl_arrow:0,content:null,trigger:"hover",look:null,scale:null,visible:0},o);let e=null,l=null,n=null,i=null;const r={top:12,bottom:20,left:25,right:25},c=function(){window.lblHint&&(window.lblHint.remove(),window.lblHint=null)},p=function(){return Object.assign({fontSize:t.lbl_fontSize,padding:[t.lbl_spaceX,t.lbl_spaceY],color:t.lbl_color,textColor:t.lbl_textColor,round:t.lbl_round,border:t.lbl_border,borderColor:t.lbl_borderColor,arrow:t.lbl_arrow,gap:r[t.hintPosition]||r.top,scale:t.scale},t.look||{})},a=function(){return t.look&&t.look.color||t.lbl_color},s=t.remove;t.superRemove=s,t.remove=function(){t._isRemoved||(e(),l(),n(),i(),c(),Tooltip.isPopoverOf(t.target)&&Tooltip.closePopover(),s.call(t))},t.setHintText=function(o){t.hintText=o,window.lblHint&&window.lblHint.label&&(window.lblHint.label.text=o)},t.setLbl_color=function(o){t.lbl_color=o,t.look&&t.look.color&&(t.look=Object.assign({},t.look,{color:o})),window.lblHint&&Tooltip.paintBubble(window.lblHint,o)};const b=function(){return"click"==t.trigger};return e=t.target.on("mouseover",function(){b()||window.lblHint||(window.lblHint=Tooltip.createBubble(t.hintText,p(),t.content))}),l=t.target.on("mousemove",function(o,e){!b()&&window.lblHint&&(window.lblHint.label&&window.lblHint.label.text!=t.hintText&&(window.lblHint.label.text=t.hintText),window.lblHint.look.color!=a()&&Tooltip.paintBubble(window.lblHint,a()),function(o){const e=Tooltip.toPagePoint(o.clientX,o.clientY);t.mouseX=e.x,t.mouseY=e.y,Tooltip.place(window.lblHint,{left:e.x,top:e.y,width:0,height:0},t.hintPosition)}(e))}),n=t.target.on("mouseout",function(){b()||c()}),i=t.target.on("click",function(){b()&&(Tooltip.isPopoverOf(t.target)?Tooltip.closePopover():Tooltip.openPopover(t.target,t.content,Object.assign(p(),{gap:t.look&&t.look.gap||6}),t.hintPosition,t.hintText))}),t.target.clickable=1,endObject(t)};Tooltip.BUBBLE_LOOK={fontSize:13,bold:0,padding:[10,6],color:"rgba(255, 255, 255, 0.95)",textColor:"rgba(0, 0, 0, 0.85)",round:6,border:0,borderColor:"rgba(0, 0, 0, 0.2)",shadow:"",arrow:10,contentGap:8,gap:6,edge:8,grow:0,zIndex:1e5,scale:null},Tooltip.scaleLook=function(o){const t=o.scale??basic.uiScale,e=basic.scaleStyle(o,t);return 1!==t&&(e.arrow=basic.scaleSize(o.arrow,t),e.edge=basic.scaleSize(o.edge,t),e.shadow=basic.scaleCssText(o.shadow,t)),e.scale=t,e},Tooltip.createBubble=function(o,t,e){const l=Tooltip.scaleLook(Object.assign({},Tooltip.BUBBLE_LOOK,t||{})),n="function"==typeof e;return createIn(page,function(){const t=AutoLayout({flow:n?"vertical":"horizontal",hug:1,align:n?"left top":"center center",gap:n?l.contentGap:0,padding:l.padding,color:l.color,round:l.round,border:l.border,borderColor:l.borderColor,clipContent:0,zIndex:l.zIndex,role:"status"});return t.css={position:"absolute",boxShadow:l.shadow||"none"},t.look=l,t.label=null,n?e(t):(t.label=Label({plainText:o,fontSize:l.fontSize,bold:l.bold?1:0,textColor:l.textColor}),t.label.css={whiteSpace:"nowrap",width:"max-content",flexShrink:"0"}),t.arrow=Box({width:l.arrow,height:l.arrow,color:l.color,visible:l.arrow?1:0}),t.arrow.css={position:"absolute",boxSizing:"border-box"},endAutoLayout(),t})},Tooltip.paintBubble=function(o,t){o.look.color=t,o.color=t,o.arrow.color=t},Tooltip.toPagePoint=function(o,t){const e=page.elem.getBoundingClientRect(),l=e.width/page.elem.offsetWidth||1;return{x:(o-e.left)/l,y:(t-e.top)/l}},Tooltip.toPageRect=function(o){const t=o.elem.getBoundingClientRect(),e=Tooltip.toPagePoint(t.left,t.top),l=Tooltip.toPagePoint(t.right,t.bottom);return{left:e.x,top:e.y,width:l.x-e.x,height:l.y-e.y}},Tooltip.getScreenRect=function(){const o=Tooltip.toPagePoint(0,0),t=Tooltip.toPagePoint(window.innerWidth,window.innerHeight);return{left:o.x,top:o.y,right:t.x,bottom:t.y}},Tooltip.place=function(o,t,e="top"){const l=o.look,n=Tooltip.getScreenRect(),i=o.elem.offsetWidth,r=o.elem.offsetHeight,c=l.gap+(l.arrow?.71*l.arrow:0),p=t.left+t.width/2,a=t.top+t.height/2;let s=0,b=0;return"top"==(e=Tooltip.chooseSide(e,t,i,r,c,n,l.edge))&&(b=t.top-c-r),"bottom"==e&&(b=t.top+t.height+c),"left"==e&&(s=t.left-c-i),"right"==e&&(s=t.left+t.width+c),"top"!=e&&"bottom"!=e||(s=p-i/2),"left"!=e&&"right"!=e||(b=a-r/2),s=Math.round(Tooltip.clamp(s,n.left+l.edge,n.right-l.edge-i)),b=Math.round(Tooltip.clamp(b,n.top+l.edge,n.bottom-l.edge-r)),o.left=s,o.top=b,Tooltip.placeArrow(o,e,p-s,a-b),e},Tooltip.chooseSide=function(o,t,e,l,n,i,r){const c={top:t.top-i.top-r,bottom:i.bottom-r-t.top-t.height,left:t.left-i.left-r,right:i.right-r-t.left-t.width},p={top:"bottom",bottom:"top",left:"right",right:"left"}[o]||"bottom",a="top"==o||"bottom"==o?l+n:e+n;return c[o]>=a||c[p]<a?o:p},Tooltip.clamp=function(o,t,e){return Math.max(t,Math.min(e,o))},Tooltip.placeArrow=function(o,t,e,l){const n=o.look,i=o.arrow;if(!n.arrow)return;const r=n.arrow,c=n.border,p=o.elem.clientWidth,a=o.elem.clientHeight,s=n.round+.71*r,b=c+"px solid "+n.borderColor;let d=0,u=0,g=[];"top"==t||"bottom"==t?(d=Tooltip.clamp(e-c,s,p-s)-r/2,u="top"==t?a+c/2-r/2:-c/2-r/2,g="top"==t?["Right","Bottom"]:["Left","Top"]):(u=Tooltip.clamp(l-c,s,a-s)-r/2,d="left"==t?p+c/2-r/2:-c/2-r/2,g="left"==t?["Top","Right"]:["Bottom","Left"]),i.left=d,i.top=u;const f={transform:"rotate(45deg)",borderTop:"none",borderRight:"none",borderBottom:"none",borderLeft:"none"};c&&g.forEach(function(o){f["border"+o]=b}),i.css=f,o.css={transformOrigin:d+r/2+c+"px "+(u+r/2+c)+"px"}},Tooltip.show=function(o,t,e,l="top",n=null){const i=Tooltip.createBubble(t,e,n);return Tooltip.place(i,Tooltip.toPageRect(o),l),document.fonts&&"loaded"!=document.fonts.status&&document.fonts.ready.then(function(){i._isRemoved||o._isRemoved||Tooltip.place(i,Tooltip.toPageRect(o),l)}),i.look.grow&&Tooltip.grow(i),i},Tooltip.openedPopover=null,Tooltip.openPopover=function(o,t,e,l="bottom",n="",i={}){Tooltip.closePopover();const r=Tooltip.show(o,n,e,l,t);r.clickable=1,r.role="dialog";return r.listenTo(window,"pointerdown",function(t,e){r.elem.contains(e.target)||o.elem.contains(e.target)||Tooltip.closePopover()},!0),r.listenTo(window,"keydown",function(t,e){"Escape"==e.key&&(e.stopImmediatePropagation(),Tooltip.closePopover(),o.elem.tabIndex>=0&&o.elem.focus())},!0),r.onPageResize(function(){o._isRemoved||Tooltip.place(r,Tooltip.toPageRect(o),l)}),Tooltip.openedPopover={bubble:r,target:o,close:function(){r.remove(),"function"==typeof i.onClose&&i.onClose()}},r},Tooltip.closePopover=function(){const o=Tooltip.openedPopover;o&&(Tooltip.openedPopover=null,o.close())},Tooltip.isPopoverOf=function(o){return!!Tooltip.openedPopover&&Tooltip.openedPopover.target===o},Tooltip.grow=function(o){window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||(o.opacity=0,o.css={transform:"scale(0.6)"},o.elem.offsetHeight,o.setMotionNow("transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s"),o.opacity=1,o.css={transform:"none"})};
2
+ "use strict";const Tooltip=function(o={}){const t=startObject();t.props({target:null,hintText:"",hintPosition:"top",lbl_fontSize:12,lbl_spaceX:8,lbl_spaceY:3,lbl_color:"rgba(255, 255, 255, 0.90)",lbl_textColor:"rgba(0, 0, 0, 0.85)",lbl_round:3,lbl_border:1,lbl_borderColor:"rgba(0, 0, 0, 0.9)",lbl_arrow:0,content:null,trigger:"hover",look:null,styleName:"",scale:null,visible:0},o);let e=null,l=null,n=null,i=null;const r={top:12,bottom:20,left:25,right:25},c=function(){window.lblHint&&(window.lblHint.remove(),window.lblHint=null)},a=function(){return Object.assign({fontSize:t.lbl_fontSize,padding:[t.lbl_spaceX,t.lbl_spaceY],color:t.lbl_color,textColor:t.lbl_textColor,round:t.lbl_round,border:t.lbl_border,borderColor:t.lbl_borderColor,arrow:t.lbl_arrow,gap:r[t.hintPosition]||r.top,scale:t.scale},Tooltip.looks[t.styleName]||{},t.look||{})},p=function(){return a().color},s=t.remove;t.superRemove=s,t.remove=function(){t._isRemoved||(e(),l(),n(),i(),c(),Tooltip.isPopoverOf(t.target)&&Tooltip.closePopover(),s.call(t))},t.setHintText=function(o){t.hintText=o,window.lblHint&&window.lblHint.label&&window.lblHint.owner===t&&(window.lblHint.label.plainText=o,void 0!==t.mouseX&&Tooltip.place(window.lblHint,{left:t.mouseX,top:t.mouseY,width:0,height:0},t.hintPosition))},t.hideHint=function(){window.lblHint&&window.lblHint.owner===t&&c()},t.setLbl_color=function(o){t.lbl_color=o,t.look&&t.look.color&&(t.look=Object.assign({},t.look,{color:o})),window.lblHint&&Tooltip.paintBubble(window.lblHint,o)};const d=function(){return"click"==t.trigger};return e=t.target.on("mouseover",function(){d()||window.lblHint||(window.lblHint=Tooltip.createBubble(t.hintText,a(),t.content),window.lblHint.owner=t)}),l=t.target.on("mousemove",function(o,e){!d()&&window.lblHint&&(window.lblHint.owner=t,window.lblHint.label&&window.lblHint.label.plainText!=t.hintText&&(window.lblHint.label.plainText=t.hintText),window.lblHint.look.color!=p()&&Tooltip.paintBubble(window.lblHint,p()),function(o){const e=Tooltip.toPagePoint(o.clientX,o.clientY);t.mouseX=e.x,t.mouseY=e.y,Tooltip.place(window.lblHint,{left:e.x,top:e.y,width:0,height:0},t.hintPosition)}(e))}),n=t.target.on("mouseout",function(){d()||c()}),i=t.target.on("click",function(){d()&&(Tooltip.isPopoverOf(t.target)?Tooltip.closePopover():Tooltip.openPopover(t.target,t.content,Object.assign(a(),{gap:t.look&&t.look.gap||6}),t.hintPosition,t.hintText))}),t.target.clickable=1,endObject(t)};Tooltip.BUBBLE_LOOK={fontSize:13,bold:0,padding:[10,6],color:"rgba(255, 255, 255, 0.95)",textColor:"rgba(0, 0, 0, 0.85)",round:6,border:0,borderColor:"rgba(0, 0, 0, 0.2)",shadow:"",arrow:10,contentGap:8,gap:6,edge:8,grow:0,zIndex:1e5,scale:null},Tooltip.scaleLook=function(o){const t=o.scale??basic.uiScale,e=basic.scaleStyle(o,t);return 1!==t&&(e.arrow=basic.scaleSize(o.arrow,t),e.edge=basic.scaleSize(o.edge,t),e.shadow=basic.scaleCssText(o.shadow,t)),e.scale=t,e},Tooltip.createBubble=function(o,t,e){const l=Tooltip.scaleLook(Object.assign({},Tooltip.BUBBLE_LOOK,t||{})),n="function"==typeof e;return createIn(page,function(){const t=AutoLayout({flow:n?"vertical":"horizontal",hug:1,align:n?"left top":"center center",gap:n?l.contentGap:0,padding:l.padding,color:l.color,round:l.round,border:l.border,borderColor:l.borderColor,clipContent:0,zIndex:l.zIndex,role:"status"});return t.css={position:"absolute",boxShadow:l.shadow||"none"},t.look=l,t.label=null,n?e(t):(t.label=Label({plainText:o,fontSize:l.fontSize,bold:l.bold?1:0,textColor:l.textColor}),t.label.css={whiteSpace:"nowrap",width:"max-content",flexShrink:"0"}),t.arrow=Box({width:l.arrow,height:l.arrow,color:l.color,visible:l.arrow?1:0}),t.arrow.css={position:"absolute",boxSizing:"border-box"},endAutoLayout(),t})},Tooltip.paintBubble=function(o,t){o.look.color=t,o.color=t,o.arrow.color=t},Tooltip.toPagePoint=function(o,t){const e=page.elem.getBoundingClientRect(),l=e.width/page.elem.offsetWidth||1;return{x:(o-e.left)/l,y:(t-e.top)/l}},Tooltip.toPageRect=function(o){const t=o.elem.getBoundingClientRect(),e=Tooltip.toPagePoint(t.left,t.top),l=Tooltip.toPagePoint(t.right,t.bottom);return{left:e.x,top:e.y,width:l.x-e.x,height:l.y-e.y}},Tooltip.getScreenRect=function(){const o=Tooltip.toPagePoint(0,0),t=Tooltip.toPagePoint(window.innerWidth,window.innerHeight);return{left:o.x,top:o.y,right:t.x,bottom:t.y}},Tooltip.place=function(o,t,e="top"){const l=o.look,n=Tooltip.getScreenRect(),i=o.elem.offsetWidth,r=o.elem.offsetHeight,c=l.gap+(l.arrow?.71*l.arrow:0),a=t.left+t.width/2,p=t.top+t.height/2;let s=0,d=0;return"top"==(e=Tooltip.chooseSide(e,t,i,r,c,n,l.edge))&&(d=t.top-c-r),"bottom"==e&&(d=t.top+t.height+c),"left"==e&&(s=t.left-c-i),"right"==e&&(s=t.left+t.width+c),"top"!=e&&"bottom"!=e||(s=a-i/2),"left"!=e&&"right"!=e||(d=p-r/2),s=Math.round(Tooltip.clamp(s,n.left+l.edge,n.right-l.edge-i)),d=Math.round(Tooltip.clamp(d,n.top+l.edge,n.bottom-l.edge-r)),o.left=s,o.top=d,Tooltip.placeArrow(o,e,a-s,p-d),e},Tooltip.chooseSide=function(o,t,e,l,n,i,r){const c={top:t.top-i.top-r,bottom:i.bottom-r-t.top-t.height,left:t.left-i.left-r,right:i.right-r-t.left-t.width},a={top:"bottom",bottom:"top",left:"right",right:"left"}[o]||"bottom",p="top"==o||"bottom"==o?l+n:e+n;return c[o]>=p||c[a]<p?o:a},Tooltip.clamp=function(o,t,e){return Math.max(t,Math.min(e,o))},Tooltip.placeArrow=function(o,t,e,l){const n=o.look,i=o.arrow;if(!n.arrow)return;const r=n.arrow,c=n.border,a=o.elem.clientWidth,p=o.elem.clientHeight,s=n.round+.71*r,d=c+"px solid "+n.borderColor;let b=0,u=0,w=[];"top"==t||"bottom"==t?(b=Tooltip.clamp(e-c,s,a-s)-r/2,u="top"==t?p+c/2-r/2:-c/2-r/2,w="top"==t?["Right","Bottom"]:["Left","Top"]):(u=Tooltip.clamp(l-c,s,p-s)-r/2,b="left"==t?a+c/2-r/2:-c/2-r/2,w="left"==t?["Top","Right"]:["Bottom","Left"]),i.left=b,i.top=u;const g={transform:"rotate(45deg)",borderTop:"none",borderRight:"none",borderBottom:"none",borderLeft:"none"};c&&w.forEach(function(o){g["border"+o]=d}),i.css=g,o.css={transformOrigin:b+r/2+c+"px "+(u+r/2+c)+"px"}},Tooltip.show=function(o,t,e,l="top",n=null){const i=Tooltip.createBubble(t,e,n);return Tooltip.place(i,Tooltip.toPageRect(o),l),document.fonts&&"loaded"!=document.fonts.status&&document.fonts.ready.then(function(){i._isRemoved||o._isRemoved||Tooltip.place(i,Tooltip.toPageRect(o),l)}),i.look.grow&&Tooltip.grow(i),Tooltip.followScroll(i,o,l),i},Tooltip.followScroll=function(o,t,e){let l=!1;const n=function(){l=!1,o._isRemoved||t._isRemoved||(o.visible=Tooltip.isInSight(t)?1:0,Tooltip.place(o,Tooltip.toPageRect(t),e))};o.listenTo(window,"scroll",function(){l||(l=!0,requestAnimationFrame(n))},!0)},Tooltip.isInSight=function(o){const t=o.elem.getBoundingClientRect();let e=Math.max(t.left,0),l=Math.max(t.top,0),n=Math.min(t.right,window.innerWidth),i=Math.min(t.bottom,window.innerHeight);for(let t=o.elem.parentElement;t&&t!==document.body;t=t.parentElement){if("visible"==getComputedStyle(t).overflow)continue;const o=t.getBoundingClientRect();e=Math.max(e,o.left),l=Math.max(l,o.top),n=Math.min(n,o.right),i=Math.min(i,o.bottom)}return n>e&&i>l},Tooltip.openedPopover=null,Tooltip.openPopover=function(o,t,e,l="bottom",n="",i={}){Tooltip.closePopover();const r=Tooltip.show(o,n,e,l,t);r.clickable=1,r.role="dialog";return r.listenTo(window,"pointerdown",function(t,e){r.elem.contains(e.target)||o.elem.contains(e.target)||Tooltip.closePopover()},!0),r.listenTo(window,"keydown",function(t,e){"Escape"==e.key&&(e.stopImmediatePropagation(),Tooltip.closePopover(),o.elem.tabIndex>=0&&o.elem.focus())},!0),r.onPageResize(function(){o._isRemoved||Tooltip.place(r,Tooltip.toPageRect(o),l)}),Tooltip.openedPopover={bubble:r,target:o,close:function(){r.remove(),"function"==typeof i.onClose&&i.onClose()}},r},Tooltip.closePopover=function(){const o=Tooltip.openedPopover;o&&(Tooltip.openedPopover=null,o.close())},Tooltip.isPopoverOf=function(o){return!!Tooltip.openedPopover&&Tooltip.openedPopover.target===o},Tooltip.grow=function(o){window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||(o.opacity=0,o.css={transform:"scale(0.6)"},o.elem.offsetHeight,o.setMotionNow("transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s"),o.opacity=1,o.css={transform:"none"})},Tooltip.looks={minimal:{fontSize:12,padding:[8,4],color:"#FFFFFF",textColor:Black(.85),round:4,border:1,borderColor:Black(.2),shadow:"",arrow:0},minimalDark:{fontSize:12,padding:[8,4],color:"#1A1A19",textColor:White(.88),round:4,border:1,borderColor:White(.18),shadow:"",arrow:0}};
@@ -1,2 +1,2 @@
1
1
  /* Bismillah */
2
- "use strict";const TreeViewDefaults={key:"0",width:260,height:320,items:[],value:null,emptyText:"No items",typeAhead:1,useScrollBar:1,enabled:1,ariaLabel:"Tree",onSelect:function(e,n){},onActivate:function(e,n){},onToggle:function(e,n){},onHover:function(e,n){},onLoadChildren:function(e,n){},styleName:"classic",style:{box:{color:"transparent",border:0,borderColor:"transparent",round:0,padding:[4,4]},row:{height:28,fontSize:13,textColor:Black(.8),indent:16,paddingLeft:4,paddingRight:8,gap:6,round:5},rowHover:{color:Black(.05)},rowSelected:{color:Black(.09),textColor:"#141414"},rowFocus:{outlineColor:Black(.25)},arrow:{color:Black(.45),size:12,motion:.15},icon:{size:16},tag:{textColor:"#3A6EA5",fontSize:12},note:{textColor:Black(.4),fontSize:12},disabled:{opacity:.4},empty:{textColor:Black(.4),fontSize:13},scrollBar:{bar_color:"#9A9A98",bar_mouseOverColor:"#6A6A68",bar_width:4,bar_round:3,bar_opacity:.4,bar_mouseOverOpacity:.9,bar_padding:2}}},TreeView=function(e={}){basic.applyStylePackage(e,TreeView.styles,TreeViewDefaults),mergeIntoIfMissing(e,TreeViewDefaults),e.color=e.style.box.color;const n=e.items,t=e.value;e.items=[],e.value=null;const o="auto"===String(e.height);let r=startObject(e);const l=r.style,i="tree-view-"+TreeView._counter++;let c=[],a=new Map,u=new Map,d=null,s=0,f="",p=null,g=1;r.previousValue=null;const h=function(e){return basic.escapeHtml(String(null==e?"":e))},b=function(e){return null!=e&&""!==e},w=function(e,n,t=""){return"<span"+t+' style="'+e.join(";")+'">'+n+"</span>"},x=function(e){"string"!=typeof e&&"number"!=typeof e||(e={key:String(e),text:String(e)});const n=Object.assign({},e);return b(n.key)||(n.key="node-"+g++),n.key=String(n.key),void 0===n.text&&(n.text=n.key),n.expanded=1==n.expanded?1:0,n.children=Array.isArray(e.children)?e.children.map(x):null,n},v=function(e){const n=e.node;return!!(n.children&&n.children.length>0)||1==n.hasChildren&&!n.children},m=function(e){return 1==e.node.expanded&&v(e)},y=function(e){return i+"-"+TreeView.toId(e.node.key)},S=function(e){const n=e.node;let t=function(e){const n=l.arrow,t=["display:inline-flex","align-items:center","justify-content:center","flex:0 0 "+(n.size+4)+"px","height:100%","transform:rotate("+(m(e)?90:0)+"deg)"];n.motion&&t.push("transition:transform "+n.motion+"s");const o=v(e)?TreeView.getChevronSvg(n.color,n.size):"";return w(t,o,' data-tv-arrow="1"')}(e);return n.iconFile&&(t+=function(e){const n=l.icon.size+"px",t=["flex:0 0 "+n,"width:"+n,"height:"+n,"margin-left:"+(l.row.gap-4)+"px","object-fit:contain"];return'<img src="'+h(e.iconFile)+'" alt="" style="'+t.join(";")+'">'}(n)),t+=function(e){const n=["margin-left:"+(e.iconFile?l.row.gap:2)+"px","flex:0 1 auto","min-width:0","overflow:hidden","text-overflow:ellipsis"];return e.textColor&&n.push("color:"+h(e.textColor)),w(n,h(e.text))}(n),b(n.tag)&&(t+=function(e){const n=["margin-left:"+l.row.gap+"px","flex:0 0 auto","color:"+h(e.tagColor||l.tag.textColor),"font-size:"+l.tag.fontSize+"px"];return w(n,h(e.tag))}(n)),b(n.note)&&(t+=function(e){const n=["margin-left:"+l.row.gap+"px","flex:0 1 auto","min-width:0","overflow:hidden","text-overflow:ellipsis","color:"+l.note.textColor,"font-size:"+l.note.fontSize+"px"];return w(n,h(e.note))}(n)),t},C=function(e){if(!e.row)return;const n=e.node,t=e.row,o=n.key===r.value,i=e===d&&!o&&!n.disabled;t.color=function(e,n){return e?l.rowSelected.color:n?l.rowHover.color:"transparent"}(o,i),t.textColor=o?l.rowSelected.textColor:l.row.textColor,t.opacity=n.disabled?l.disabled.opacity:1,t.boxShadow=o&&s?"inset 0 0 0 1px "+l.rowFocus.outlineColor:"none",t.aria={selected:o,disabled:!!n.disabled,expanded:v(e)?m(e):null}},A=function(e){e.row&&(e.row.text=S(e),C(e))},k=function(e,n,t){const o={node:e,parent:n,level:t,row:null,group:null,built:0};a.set(e.key,o);const r=l.row;return o.row=Label({width:"100%",height:r.height,text:"",fontSize:r.fontSize,textColor:r.textColor,color:"transparent",round:r.round,shrink:0,cursor:"default",css:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",boxSizing:"border-box",paddingLeft:r.paddingLeft+t*r.indent+"px",paddingRight:r.paddingRight+"px"},role:"treeitem",aria:{level:t+1}}),o.row.elem.id=y(o),o.row.elem._treeRec=o,o.row.clickable=1,A(o),m(o)&&E(o),o},E=function(e){!e.built&&e.node.children&&(e.built=1,createIn(e.row.containerBox,function(){e.group=VGroup({width:"100%",height:"auto",align:"left top",gap:0,color:"transparent",position:"relative",css:{alignItems:"stretch"},role:"group"}),e.children=e.node.children.map(function(n){return k(n,e,e.level+1)}),endGroup()}),e.row.elem.after(e.group.elem))},B=function(e){e===d&&(d=null),a.delete(e.node.key),(e.children||[]).forEach(B)},z=function(e,n){(e||[]).forEach(function(e){u.set(e.key,{node:e,parent:n}),e.children&&z(e.children,e)})},_=function(e){u.delete(e.key),(e.children||[]).forEach(_)},T=function(e){if(e=String(e),!u.get(e))return a.get(e)||null;const n=r.getPath(e);for(let e=0;e<n.length-1;e++){const t=a.get(n[e].key);if(!t)return null;D(t,1)}return a.get(e)||null},V=function(){null===r.value||u.get(r.value)||(r.previousValue=r.value,r.value=null,r.listArea.aria={activedescendant:null})},F=function(e){e.group&&e.group.remove(),e.row&&e.row.remove(),e.group=null,e.row=null},O=function(){r.lblEmpty.visible=c.length?0:1},I=function(){r&&r.scrollBar&&r.scrollBar.refreshScroll&&r.scrollBar.refreshScroll()},L=function(){return function(){const e=[],n=function(t){t.forEach(function(t){e.push(t),m(t)&&t.children&&n(t.children)})};return n(c),e}().filter(function(e){return!e.node.disabled})},j=function(e){if(!e||!e.row||o)return;const n=r.listArea.elem,t=n.getBoundingClientRect(),l=e.row.elem.getBoundingClientRect();l.top<t.top?n.scrollTop-=t.top-l.top+4:l.bottom>t.bottom&&(n.scrollTop+=l.bottom-t.bottom+4)},R=function(e){if(e===d)return;const n=d;d=e,n&&C(n),e&&C(e),r.onHover(r,e?e.node:null)},D=function(e,n,t){e&&v(e)&&(n=n?1:0,e.node.expanded!=n&&(e.node.expanded=n,n?function(e){e.node.children&&e.built?e.group.visible=1:e.node.children?E(e):(A(e),r.onLoadChildren(r,e.node))}(e):function(e,n){e.group&&(e.group.visible=0);const t=a.get(r.value);n&&t&&H(t,e)&&M(e,1)}(e,t),r&&(A(e),I(),r.onToggle(r,e.node))))},H=function(e,n){for(let t=e.parent;t;t=t.parent)if(t===n)return!0;return!1},M=function(e,n){if(!e||e.node.disabled)return;if(e.node.key===r.value)return;const t=a.get(r.value);r.previousValue=r.value,r.value=e.node.key,t&&C(t),C(e),r.listArea.aria={activedescendant:y(e)},j(e),n&&r.onSelect(r,e.node)},N=function(e){e&&!e.node.disabled&&r.onActivate(r,e.node)},P=function(e){const n=L();if(!n.length)return;let t=n.indexOf(a.get(r.value));-1===t&&(t=e>0?-1:n.length),t=basic.clamp(t+e,0,n.length-1),M(n[t],1)},G=function(){return o?10:Math.max(1,Math.floor(r.listArea.elem.clientHeight/l.row.height)-1)},K=function(e){const n=a.get(r.value);switch(e.key){case"ArrowDown":return P(1),1;case"ArrowUp":return P(-1),1;case"PageDown":return P(G()),1;case"PageUp":return P(-G()),1;case"Home":return P(-1/0),1;case"End":return P(1/0),1;case"ArrowRight":return function(e){if(!e)return void P(1);if(v(e)&&!m(e))return void D(e,1,1);if(!m(e)||!e.children)return;const n=e.children.find(function(e){return!e.node.disabled});M(n,1)}(n),1;case"ArrowLeft":return function(e){e&&(m(e)?D(e,0,1):e.parent&&M(e.parent,1))}(n),1;case"Enter":return N(n),1;case" ":return n&&v(n)&&D(n,!m(n),1),1}return function(e){return 1==r.typeAhead&&1===e.key.length&&!e.ctrlKey&&!e.metaKey&&!e.altKey}(e)?(U(e.key),1):0},U=function(e){p&&p(),p=r.after(600,function(){f="",p=null}),f+=e.toLocaleLowerCase();const n=L();if(!n.length)return;const t=Math.max(0,n.indexOf(a.get(r.value))),o=1===f.length?t+1:t;for(let e=0;e<n.length;e++){const t=n[(o+e)%n.length];if(0===String(t.node.text).toLocaleLowerCase().indexOf(f))return void M(t,1)}},Y=function(e){for(let n=e.target;n&&n!==r.listArea.elem;n=n.parentElement)if(n._treeRec)return n._treeRec;return null},Z=function(e){return!!(e.target&&e.target.closest&&e.target.closest("[data-tv-arrow]"))},q=function(e,n){n&&n.row&&(n.row.elem.before(e.row.elem),e.group&&e.row.elem.after(e.group.elem))},J=function(e,n){return e<0||e>n?n:e};r.setItems=function(e,n=r.value){c.forEach(B),c.forEach(F),c=[],a=new Map,u=new Map,d=null;const t=(Array.isArray(e)?e:[]).map(x);if(z(t,null),createIn(r.list,function(){c=t.map(function(e){return k(e,null,0)})}),r.value=null,null!=n){const e=T(n);e&&M(e,0)}O(),I()},r.getItems=function(){const e=function(n){const t=Object.assign({},n);return n.children&&(t.children=n.children.map(e)),t};return c.map(function(n){return e(n.node)})},r.getNode=function(e){const n=u.get(String(e));return n?n.node:null},r.getParent=function(e){const n=u.get(String(e));return n?n.parent:null},r.getPath=function(e){const n=[];let t=u.get(String(e));for(;t;)n.unshift(t.node),t=t.parent?u.get(t.parent.key):null;return n},r.getSelectedNode=function(){return r.getNode(r.value)},r.setValue=function(e,n=0){if(null==e){const e=a.get(r.value);return r.previousValue=r.value,r.value=null,e&&C(e),void(r.listArea.aria={activedescendant:null})}const t=T(e);t&&(M(t,!n),j(t))};const Q=function(e,n){const t=a.get(String(e));if(t)return void D(t,n);const o=u.get(String(e));o&&(o.node.expanded=n?1:0)};if(r.expand=function(e){Q(e,1)},r.collapse=function(e){Q(e,0)},r.toggle=function(e){const n=r.getNode(e);n&&Q(e,!(1==n.expanded))},r.expandAll=function(){const e=function(n){n.forEach(function(n){n.node.children&&n.node.children.length&&(D(n,1),e(n.children||[]))})};e(c)},r.collapseAll=function(){a.forEach(function(e){D(e,0)}),u.forEach(function(e,n){a.get(n)||(e.node.expanded=0)})},r.reveal=function(e){j(T(e))},r.updateNode=function(e,n={}){const t=u.get(String(e));if(!t)return;Object.keys(n).forEach(function(e){"children"!==e&&"key"!==e&&"expanded"!==e&&(t.node[e]=n[e])});const o=a.get(String(e));o&&A(o),void 0!==n.expanded&&Q(e,n.expanded)},r.setChildren=function(e,n){const t=u.get(String(e));if(!t)return;(t.node.children||[]).forEach(_),t.node.children=(Array.isArray(n)?n:[]).map(x),z(t.node.children,t.node),V();const o=a.get(String(e));o&&function(e){(e.children||[]).forEach(B),e.group&&e.group.remove(),e.group=null,e.children=[],e.built=0,m(e)&&E(e),A(e)}(o),I()},r.addNode=function(e,n,t=-1){const o=null==e,l=o?null:u.get(String(e));if(!o&&!l)return null;const i=x(n);return u.get(i.key)?(console.warn("TreeView: The key is used: "+i.key),null):(o?function(e,n){const t=J(n,c.length);z([e],null);const o=createIn(r.list,function(){return k(e,null,0)});c.splice(t,0,o),q(o,c[t+1])}(i,t):function(e,n,t){const o=e.node;o.children=o.children||[];const r=J(t,o.children.length);z([n],o),o.children.splice(r,0,n);const l=a.get(o.key);if(!l||!l.built)return void(l&&A(l));const i=createIn(l.group,function(){return k(n,l,l.level+1)});l.children.splice(r,0,i),q(i,l.children[r+1]),A(l)}(l,i,t),O(),I(),i)},r.removeNode=function(e){const n=u.get(String(e));if(!n)return;if(n.parent){const e=n.parent.children,t=e.indexOf(n.node);-1!==t&&e.splice(t,1)}_(n.node);const t=a.get(String(e));if(t){const e=t.parent?t.parent.children:c,n=e.indexOf(t);-1!==n&&e.splice(n,1),B(t),F(t)}V();const o=n.parent?a.get(n.parent.key):null;o&&A(o),O(),I()},r.setEnabled=function(e){const n=e?1:0;r.enabled=n,r.listArea.tabIndex=n?0:-1,r.opacity=n?1:l.disabled.opacity,r.listArea.css.pointerEvents=n?"":"none"},r.focus=function(){r.listArea.elem.focus()},r.setEmptyText=function(e){r.emptyText=e,r.lblEmpty.plainText=e},r.clipContent=1,r.border=l.box.border,r.borderColor=l.box.borderColor,r.round=l.box.round,r.listArea=startBox(0,0,"100%",o?"auto":"100%",{color:"transparent",scrollY:o?0:1,clickable:1,css:{outline:"none"},tabIndex:0,role:"tree",aria:{label:r.ariaLabel}}),o&&(r.listArea.css.position="relative"),r.list=VGroup({width:"100%",height:"auto",align:"left top",gap:0,padding:l.box.padding,color:"transparent",position:"relative",css:{alignItems:"stretch"}}),endGroup(),r.lblEmpty=Label({plainText:r.emptyText,width:"100%",top:16,fontSize:l.empty.fontSize,textColor:l.empty.textColor,textAlign:"center",visible:0}),endBox(),!o&&1==r.useScrollBar&&"undefined"!=typeof ScrollBar){const e={scrollableBox:r.listArea,neverHide:0,showDots:0};r.scrollBar=ScrollBar(Object.assign(e,l.scrollBar))}const W=function(){const e=a.get(r.value);e&&C(e)};return r.listArea.on("click",function(e,n){if(1!=r.enabled)return;const t=Y(n);t&&(Z(n)&&v(t)?D(t,!m(t),1):M(t,1))}),r.listArea.on("dblclick",function(e,n){if(1!=r.enabled)return;const t=Y(n);!t||Z(n)||t.node.disabled||(v(t)&&D(t,!m(t),1),N(t))}),r.listArea.on("mousemove",function(e,n){1==r.enabled&&R(Y(n))}),r.listArea.on("mouseleave",function(){R(null)}),r.listArea.on("keydown",function(e,n){!function(e){1==r.enabled&&K(e)&&(e.preventDefault(),e.stopPropagation())}(n)}),r.listArea.on("focus",function(){s=1,W()}),r.listArea.on("blur",function(){s=0,W()}),r.setItems(n,t),1!=r.enabled&&r.setEnabled(0),endObject(r)};TreeView._counter=1,TreeView.toId=function(e){return String(e).replace(/[^A-Za-z0-9_-]/g,function(e){return"_"+e.charCodeAt(0).toString(16)})},TreeView.getChevronSvg=function(e,n){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+n+'" height="'+n+'" viewBox="0 0 12 12" fill="none" stroke="'+e+'" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="display:block"><path d="M4.5 2.5 8 6l-3.5 3.5"/></svg>'},TreeView.styles={classic:TreeViewDefaults.style,modern:{box:{color:"transparent",border:0,borderColor:"transparent",round:0,padding:[6,6]},row:{height:32,fontSize:14,textColor:Black(.75),indent:18,paddingLeft:6,paddingRight:10,gap:8,round:100},rowHover:{color:"#EEF5F5"},rowSelected:{color:"#DFECEC",textColor:"#2F5F61"},rowFocus:{outlineColor:"cadetblue"},arrow:{color:"cadetblue",size:12,motion:.15},icon:{size:16},tag:{textColor:"cadetblue",fontSize:12},note:{textColor:Black(.4),fontSize:12},disabled:{opacity:.4},empty:{textColor:Black(.4),fontSize:14},scrollBar:{bar_color:"#9A9A98",bar_mouseOverColor:"#6A6A68",bar_width:4,bar_round:3,bar_opacity:.4,bar_mouseOverOpacity:.9,bar_padding:2}},dark:{box:{color:"#2C2C2C",border:0,borderColor:"transparent",round:0,padding:[4,4]},row:{height:24,fontSize:12,textColor:"#E6E6E6",indent:12,paddingLeft:2,paddingRight:8,gap:6,round:4},rowHover:{color:"#383838"},rowSelected:{color:"#34435A",textColor:"#FFFFFF"},rowFocus:{outlineColor:"#0C8CE9"},arrow:{color:"#A5A5A5",size:10,motion:.12},icon:{size:14},tag:{textColor:"#A5A5A5",fontSize:12},note:{textColor:"#6E6E6E",fontSize:12},disabled:{opacity:.4},empty:{textColor:"#6E6E6E",fontSize:12},scrollBar:{bar_color:"#8A8A88",bar_mouseOverColor:"#BFBFBD",bar_width:4,bar_round:3,bar_opacity:.4,bar_mouseOverOpacity:.9,bar_padding:2}}};
2
+ "use strict";const TreeViewDefaults={key:"0",width:260,height:320,items:[],value:null,emptyText:"No items",typeAhead:1,useScrollBar:1,enabled:1,ariaLabel:"Tree",onSelect:function(e,t){},onActivate:function(e,t,o){},toggleOnDoubleClick:1,onToggle:function(e,t){},onHover:function(e,t){},onLoadChildren:function(e,t){},styleName:"light",style:{box:{color:"transparent",border:0,borderColor:"transparent",round:0,padding:[4,4]},row:{height:28,fontSize:13,textColor:Black(.8),indent:16,paddingLeft:4,paddingRight:8,gap:6,round:5,border:0,borderColor:"transparent",space:0},rowHover:{color:Black(.05),borderColor:""},rowSelected:{color:Black(.09),textColor:"#141414",borderColor:""},rowFocus:{outlineColor:Black(.25)},arrow:{color:Black(.45),size:12,motion:.15},icon:{size:16},tag:{textColor:"#3A6EA5",fontSize:12},note:{textColor:Black(.4),fontSize:12},disabled:{opacity:.4},empty:{textColor:Black(.4),fontSize:13},scrollBar:{bar_color:"#9A9A98",bar_mouseOverColor:"#6A6A68",bar_width:4,bar_round:3,bar_opacity:.4,bar_mouseOverOpacity:.9,bar_padding:2}}},TreeView=function(e={}){basic.applyStylePackage(e,TreeView.styles,TreeViewDefaults),mergeIntoIfMissing(e,TreeViewDefaults),e.color=e.style.box.color;const t=e.items,o=e.value;e.items=[],e.value=null;const n="auto"===String(e.height);let r=startObject(e);const l=r.style,i="tree-view-"+TreeView._counter++;let c=[],a=new Map,u=new Map,s=null,d=0,f=0,p="",g=null,h=1;r.previousValue=null;const b=function(e){return basic.escapeHtml(String(null==e?"":e))},w=function(e){return null!=e&&""!==e},x=function(e){return void 0!==e.enabled&&!basic.isOn(e.enabled)},m=function(e,t,o=""){return"<span"+o+' style="'+e.join(";")+'">'+t+"</span>"},v=function(e){"string"!=typeof e&&"number"!=typeof e||(e={key:String(e),text:String(e)});const t=Object.assign({},e);return w(t.key)||(t.key="node-"+h++),t.key=String(t.key),void 0===t.text&&(t.text=t.key),t.expanded=1==t.expanded?1:0,t.children=Array.isArray(e.children)?e.children.map(v):null,t},y=function(e){const t=e.node;return!!(t.children&&t.children.length>0)||1==t.hasChildren&&!t.children},C=function(e){return 1==e.node.expanded&&y(e)},S=function(e){return i+"-"+TreeView.toId(e.node.key)},A=function(e){const t=e.node;let o=function(e){const t=l.arrow,o=["display:inline-flex","align-items:center","justify-content:center","flex:0 0 "+(t.size+4)+"px","height:100%","transform:rotate("+(C(e)?90:0)+"deg)"];t.motion&&o.push("transition:transform "+t.motion+"s");const n=y(e)?TreeView.getChevronSvg(t.color,t.size):"";return m(o,n,' data-tv-arrow="1"')}(e);return t.iconFile&&(o+=function(e){const t=l.icon.size+"px",o=["flex:0 0 "+t,"width:"+t,"height:"+t,"margin-left:"+(l.row.gap-4)+"px","object-fit:contain"];return'<img src="'+b(e.iconFile)+'" alt="" style="'+o.join(";")+'">'}(t)),o+=function(e){const t=["margin-left:"+(e.iconFile?l.row.gap:2)+"px","flex:0 1 auto","min-width:0","overflow:hidden","text-overflow:ellipsis"];return e.textColor&&t.push("color:"+b(e.textColor)),m(t,b(e.text),' data-part="text"')}(t),w(t.tag)&&(o+=function(e){const t=["margin-left:"+l.row.gap+"px","flex:0 0 auto","color:"+b(e.tagColor||l.tag.textColor),"font-size:"+l.tag.fontSize+"px"];return m(t,b(e.tag))}(t)),w(t.description)&&(o+=function(e){const t=["margin-left:"+l.row.gap+"px","flex:0 1 auto","min-width:0","overflow:hidden","text-overflow:ellipsis","color:"+b(e.descriptionColor||l.note.textColor),"font-size:"+l.note.fontSize+"px"];return m(t,b(e.description))}(t)),o},k=function(e){if(!e.row)return;const t=e.node,o=e.row,n=t.key===r.value,i=e===s&&!n&&!x(t);o.color=function(e,t){return e?l.rowSelected.color:t?l.rowHover.color:"transparent"}(n,i),l.row.border&&(o.borderColor=function(e,t){return e&&l.rowSelected.borderColor?l.rowSelected.borderColor:t&&l.rowHover.borderColor?l.rowHover.borderColor:l.row.borderColor}(n,i)),o.textColor=n?l.rowSelected.textColor:l.row.textColor,o.opacity=x(t)?l.disabled.opacity:1,o.boxShadow=n&&d&&f?"inset 0 0 0 1px "+l.rowFocus.outlineColor:"none",o.aria={selected:n,disabled:!!x(t),expanded:y(e)?C(e):null}},B=function(e){e.row&&(e.row.text=A(e),k(e))},T=function(e,t,o){const n={node:e,parent:t,level:o,row:null,group:null,built:0};a.set(e.key,n);const r=l.row;return n.row=Label({width:"100%",height:r.height,text:"",fontSize:r.fontSize,textColor:r.textColor,color:"transparent",round:r.round,shrink:0,cursor:"default",css:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",boxSizing:"border-box",paddingLeft:r.paddingLeft+o*r.indent+"px",paddingRight:r.paddingRight+"px"},role:"treeitem",aria:{level:o+1}}),r.border&&n.row.props({border:r.border,borderColor:r.borderColor}),n.row.elem.id=S(n),n.row.elem._treeRec=n,n.row.clickable=1,B(n),C(n)&&E(n),n},E=function(e){!e.built&&e.node.children&&(e.built=1,createIn(e.row.containerBox,function(){e.group=VGroup({width:"100%",height:"auto",align:"left top",gap:l.row.space,color:"transparent",position:"relative",css:{alignItems:"stretch"},role:"group"}),e.children=e.node.children.map(function(t){return T(t,e,e.level+1)}),endGroup()}),e.row.elem.after(e.group.elem))},_=function(e){e===s&&(s=null),a.delete(e.node.key),(e.children||[]).forEach(_)},z=function(e,t){(e||[]).forEach(function(e){u.set(e.key,{node:e,parent:t}),e.children&&z(e.children,e)})},O=function(e){u.delete(e.key),(e.children||[]).forEach(O)},V=function(e){if(e=String(e),!u.get(e))return a.get(e)||null;const t=r.getPath(e);for(let e=0;e<t.length-1;e++){const o=a.get(t[e].key);if(!o)return null;N(o,1)}return a.get(e)||null},F=function(){null===r.value||u.get(r.value)||(r.previousValue=r.value,r.value=null,r.listArea.aria={activedescendant:null})},L=function(e){e.group&&e.group.remove(),e.row&&e.row.remove(),e.group=null,e.row=null},I=function(){r.lblEmpty.visible=c.length?0:1},D=function(){r&&r.scrollBar&&r.scrollBar.refreshScroll&&r.scrollBar.refreshScroll()},M=function(){return function(){const e=[],t=function(o){o.forEach(function(o){e.push(o),C(o)&&o.children&&t(o.children)})};return t(c),e}().filter(function(e){return!x(e.node)})},R=function(e){if(!e||!e.row||n)return;const t=r.listArea.elem,o=t.getBoundingClientRect(),l=e.row.elem.getBoundingClientRect();l.top<o.top?t.scrollTop-=o.top-l.top+4:l.bottom>o.bottom&&(t.scrollTop+=l.bottom-o.bottom+4)},H=function(e){if(e===s)return;const t=s;s=e,t&&k(t),e&&k(e),r.onHover(r,e?e.node:null)},N=function(e,t,o){e&&y(e)&&(t=t?1:0,e.node.expanded!=t&&(e.node.expanded=t,t?function(e){e.node.children&&e.built?e.group.visible=1:e.node.children?E(e):(B(e),r.onLoadChildren(r,e.node))}(e):function(e,t){e.group&&(e.group.visible=0);const o=a.get(r.value);t&&o&&j(o,e)&&P(e,1)}(e,o),r&&(B(e),D(),r.onToggle(r,e.node))))},j=function(e,t){for(let o=e.parent;o;o=o.parent)if(o===t)return!0;return!1},P=function(e,t){if(!e||x(e.node))return;if(e.node.key===r.value)return;const o=a.get(r.value);r.previousValue=r.value,r.value=e.node.key,o&&k(o),k(e),r.listArea.aria={activedescendant:S(e)},R(e),t&&r.onSelect(r,e.node)},K=function(e,t){e&&!x(e.node)&&r.onActivate(r,e.node,t)},W=function(e){const t=M();if(!t.length)return;let o=t.indexOf(a.get(r.value));-1===o&&(o=e>0?-1:t.length),o=basic.clamp(o+e,0,t.length-1),P(t[o],1)},G=function(){return n?10:Math.max(1,Math.floor(r.listArea.elem.clientHeight/l.row.height)-1)},U=function(e){const t=a.get(r.value);switch(e.key){case"ArrowDown":return W(1),1;case"ArrowUp":return W(-1),1;case"PageDown":return W(G()),1;case"PageUp":return W(-G()),1;case"Home":return W(-1/0),1;case"End":return W(1/0),1;case"ArrowRight":return function(e){if(!e)return void W(1);if(y(e)&&!C(e))return void N(e,1,1);if(!C(e)||!e.children)return;const t=e.children.find(function(e){return!x(e.node)});P(t,1)}(t),1;case"ArrowLeft":return function(e){e&&(C(e)?N(e,0,1):e.parent&&P(e.parent,1))}(t),1;case"Enter":return K(t,e),1;case" ":return t&&y(t)&&N(t,!C(t),1),1}return function(e){return 1==r.typeAhead&&1===e.key.length&&!e.ctrlKey&&!e.metaKey&&!e.altKey}(e)?(Y(e.key),1):0},Y=function(e){g&&g(),g=r.after(600,function(){p="",g=null}),p+=e.toLocaleLowerCase();const t=M();if(!t.length)return;const o=Math.max(0,t.indexOf(a.get(r.value))),n=1===p.length?o+1:o;for(let e=0;e<t.length;e++){const o=t[(n+e)%t.length];if(0===String(o.node.text).toLocaleLowerCase().indexOf(p))return void P(o,1)}},Z=function(e){for(let t=e.target;t&&t!==r.listArea.elem;t=t.parentElement)if(t._treeRec)return t._treeRec;return null},q=function(e){return!!(e.target&&e.target.closest&&e.target.closest("[data-tv-arrow]"))},J=function(e,t){t&&t.row&&(t.row.elem.before(e.row.elem),e.group&&e.row.elem.after(e.group.elem))},Q=function(e,t){return e<0||e>t?t:e};r.setItems=function(e,t=r.value){c.forEach(_),c.forEach(L),c=[],a=new Map,u=new Map,s=null;const o=(Array.isArray(e)?e:[]).map(v);if(z(o,null),createIn(r.list,function(){c=o.map(function(e){return T(e,null,0)})}),r.value=null,null!=t){const e=V(t);e&&P(e,0)}I(),D()},r.getItems=function(){const e=function(t){const o=Object.assign({},t);return t.children&&(o.children=t.children.map(e)),o};return c.map(function(t){return e(t.node)})},r.getNode=function(e){const t=u.get(String(e));return t?t.node:null},r.getParent=function(e){const t=u.get(String(e));return t?t.parent:null},r.getPath=function(e){const t=[];let o=u.get(String(e));for(;o;)t.unshift(o.node),o=o.parent?u.get(o.parent.key):null;return t},r.getRowElem=function(e){const t=a.get(e);return t&&t.row?t.row.elem:null},r.getSelectedNode=function(){return r.getNode(r.value)},r.getNodeOfEvent=function(e){const t=Z(e);return t?t.node:null},r.setValue=function(e,t=0){if(null==e){const e=a.get(r.value);return r.previousValue=r.value,r.value=null,e&&k(e),void(r.listArea.aria={activedescendant:null})}const o=V(e);o&&(P(o,!t),R(o))};const X=function(e,t){const o=a.get(String(e));if(o)return void N(o,t);const n=u.get(String(e));n&&(n.node.expanded=t?1:0)};if(r.expand=function(e){X(e,1)},r.collapse=function(e){X(e,0)},r.toggle=function(e){const t=r.getNode(e);t&&X(e,!(1==t.expanded))},r.expandAll=function(){const e=function(t){t.forEach(function(t){t.node.children&&t.node.children.length&&(N(t,1),e(t.children||[]))})};e(c)},r.collapseAll=function(){a.forEach(function(e){N(e,0)}),u.forEach(function(e,t){a.get(t)||(e.node.expanded=0)})},r.reveal=function(e){R(V(e))},r.updateNode=function(e,t={}){const o=u.get(String(e));if(!o)return;Object.keys(t).forEach(function(e){"children"!==e&&"key"!==e&&"expanded"!==e&&(o.node[e]=t[e])});const n=a.get(String(e));n&&B(n),void 0!==t.expanded&&X(e,t.expanded)},r.setChildren=function(e,t){const o=u.get(String(e));if(!o)return;(o.node.children||[]).forEach(O),o.node.children=(Array.isArray(t)?t:[]).map(v),z(o.node.children,o.node),F();const n=a.get(String(e));n&&function(e){(e.children||[]).forEach(_),e.group&&e.group.remove(),e.group=null,e.children=[],e.built=0,C(e)&&E(e),B(e)}(n),D()},r.addNode=function(e,t,o=-1){const n=null==e,l=n?null:u.get(String(e));if(!n&&!l)return null;const i=v(t);return u.get(i.key)?(console.warn("TreeView: The key is used: "+i.key),null):(n?function(e,t){const o=Q(t,c.length);z([e],null);const n=createIn(r.list,function(){return T(e,null,0)});c.splice(o,0,n),J(n,c[o+1])}(i,o):function(e,t,o){const n=e.node;n.children=n.children||[];const r=Q(o,n.children.length);z([t],n),n.children.splice(r,0,t);const l=a.get(n.key);if(l&&!l.built&&C(l))return E(l),void B(l);if(!l||!l.built)return void(l&&B(l));const i=createIn(l.group,function(){return T(t,l,l.level+1)});l.children.splice(r,0,i),J(i,l.children[r+1]),B(l)}(l,i,o),I(),D(),i)},r.removeNode=function(e){const t=u.get(String(e));if(!t)return;if(t.parent){const e=t.parent.children,o=e.indexOf(t.node);-1!==o&&e.splice(o,1)}O(t.node);const o=a.get(String(e));if(o){const e=o.parent?o.parent.children:c,t=e.indexOf(o);-1!==t&&e.splice(t,1),_(o),L(o)}F();const n=t.parent?a.get(t.parent.key):null;n&&B(n),I(),D()},r.setEnabled=function(e){const t=e?1:0;r.enabled=t,r.listArea.tabIndex=t?0:-1,r.opacity=t?1:l.disabled.opacity,r.listArea.css.pointerEvents=t?"":"none"},r.focus=function(){r.listArea.elem.focus()},r.setEmptyText=function(e){r.emptyText=e,r.lblEmpty.plainText=e},r.clipContent=1,r.border=l.box.border,r.borderColor=l.box.borderColor,r.round=l.box.round,r.listArea=startBox(0,0,"100%",n?"auto":"100%",{color:"transparent",scrollY:n?0:1,clickable:1,css:{outline:"none"},tabIndex:0,role:"tree",aria:{label:r.ariaLabel}}),n&&(r.listArea.css.position="relative"),r.list=VGroup({width:"100%",height:"auto",align:"left top",gap:l.row.space,padding:l.box.padding,color:"transparent",position:"relative",css:{alignItems:"stretch"}}),endGroup(),r.lblEmpty=Label({plainText:r.emptyText,left:0,width:"100%",top:16,fontSize:l.empty.fontSize,textColor:l.empty.textColor,textAlign:"center",visible:0}),endBox(),!n&&1==r.useScrollBar&&"undefined"!=typeof ScrollBar){const e={scrollableBox:r.listArea,neverHide:0,showDots:0};r.scrollBar=ScrollBar(Object.assign(e,l.scrollBar))}const $=function(){const e=a.get(r.value);e&&k(e)};return r.listArea.on("click",function(e,t){if(1!=r.enabled)return;const o=Z(t);o&&(q(t)&&y(o)?N(o,!C(o),1):P(o,1))}),r.listArea.on("dblclick",function(e,t){if(1!=r.enabled)return;const o=Z(t);!o||q(t)||x(o.node)||(y(o)&&1==r.toggleOnDoubleClick&&N(o,!C(o),1),K(o,t))}),r.listArea.on("mousemove",function(e,t){1==r.enabled&&H(Z(t))}),r.listArea.on("mouseleave",function(){H(null)}),r.listArea.on("keydown",function(e,t){f||(f=1,$()),function(e){1==r.enabled&&U(e)&&(e.preventDefault(),e.stopPropagation())}(t)}),r.listArea.on("mousedown",function(){f=0,$()}),r.listArea.on("focus",function(){d=1,f=r.listArea.elem.matches(":focus-visible")?1:0,$()}),r.listArea.on("blur",function(){d=0,$()}),r.setItems(t,o),1!=r.enabled&&r.setEnabled(0),endObject(r)};TreeView._counter=1,TreeView.toId=function(e){return String(e).replace(/[^A-Za-z0-9_-]/g,function(e){return"_"+e.charCodeAt(0).toString(16)})},TreeView.getChevronSvg=function(e,t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+t+'" viewBox="0 0 12 12" fill="none" stroke="'+e+'" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="display:block"><path d="M4.5 2.5 8 6l-3.5 3.5"/></svg>'},TreeView.styles={light:TreeViewDefaults.style,modern:{box:{color:"transparent",border:0,borderColor:"transparent",round:0,padding:[6,6]},row:{height:32,fontSize:14,textColor:Black(.75),indent:18,paddingLeft:6,paddingRight:10,gap:8,round:100},rowHover:{color:"#EEF5F5"},rowSelected:{color:"#DFECEC",textColor:"#2F5F61"},rowFocus:{outlineColor:"cadetblue"},arrow:{color:"cadetblue",size:12,motion:.15},icon:{size:16},tag:{textColor:"cadetblue",fontSize:12},note:{textColor:Black(.4),fontSize:12},disabled:{opacity:.4},empty:{textColor:Black(.4),fontSize:14},scrollBar:{bar_color:"#9A9A98",bar_mouseOverColor:"#6A6A68",bar_width:4,bar_round:3,bar_opacity:.4,bar_mouseOverOpacity:.9,bar_padding:2}},dark:{box:{color:"#2C2C2C",border:0,borderColor:"transparent",round:0,padding:[4,4]},row:{height:24,fontSize:12,textColor:"#E6E6E6",indent:12,paddingLeft:2,paddingRight:8,gap:6,round:4},rowHover:{color:"#383838"},rowSelected:{color:"#34435A",textColor:"#FFFFFF"},rowFocus:{outlineColor:"#0C8CE9"},arrow:{color:"#A5A5A5",size:10,motion:.12},icon:{size:14},tag:{textColor:"#A5A5A5",fontSize:12},note:{textColor:"#6E6E6E",fontSize:12},disabled:{opacity:.4},empty:{textColor:"#6E6E6E",fontSize:12},scrollBar:{bar_color:"#8A8A88",bar_mouseOverColor:"#BFBFBD",bar_width:4,bar_round:3,bar_opacity:.4,bar_mouseOverOpacity:.9,bar_padding:2}}},TreeView.styles.classic=TreeView.styles.light,TreeView.createMinimalStyle=function(e){return{box:{color:"transparent",border:1,borderColor:e.line,round:4,padding:[4,4]},row:{height:28,fontSize:13,textColor:e.text,indent:16,paddingLeft:6,paddingRight:8,gap:6,round:3,border:1,borderColor:"transparent",space:2},rowHover:{color:"transparent",borderColor:e.lineHover},rowSelected:{color:"transparent",textColor:e.ink,borderColor:e.ink},rowFocus:{outlineColor:e.focus},arrow:{color:e.softText,size:12,motion:.15},icon:{size:14},tag:{textColor:e.softText,fontSize:11},note:{textColor:e.faintText,fontSize:12},disabled:{opacity:.4},empty:{textColor:e.softText,fontSize:12},scrollBar:{bar_color:e.scrollBar,bar_mouseOverColor:e.scrollBar,bar_width:3,bar_round:2,bar_opacity:.45,bar_mouseOverOpacity:.9,bar_padding:2}}},TreeView.MINIMAL_COLORS={line:Black(.2),text:Black(.85),softText:Black(.55),faintText:Black(.54),lineHover:Black(.45),ink:"#1F1F1F",focus:"#3D8BD9",scrollBar:"#373836"},TreeView.styles.minimal=TreeView.createMinimalStyle(TreeView.MINIMAL_COLORS),TreeView.MINIMAL_DARK_COLORS={line:White(.18),text:White(.88),softText:White(.55),faintText:White(.48),lineHover:White(.42),ink:"#EDEDEB",focus:"#7FB6DE",scrollBar:"#CFCFCD"},TreeView.styles.minimalDark=TreeView.createMinimalStyle(TreeView.MINIMAL_DARK_COLORS);