@mozaic-ds/web-components 0.5.0 → 0.6.1

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 (234) hide show
  1. package/package.json +3 -3
  2. package/public/ClickOutside-63071e7a.js +1 -15
  3. package/public/ClickOutside-63071e7a.js.map +1 -1
  4. package/public/DataTableDefaultAction.nested-4da4dc44.js +1 -759
  5. package/public/DataTableDefaultAction.nested-4da4dc44.js.map +1 -1
  6. package/public/DataTableUtilities-60220c78.js +1 -370
  7. package/public/DataTableUtilities-60220c78.js.map +1 -1
  8. package/public/EventForward-8492ff62.js +1 -109
  9. package/public/EventForward-8492ff62.js.map +1 -1
  10. package/public/EventHandler-02058705.js +1 -15
  11. package/public/EventHandler-02058705.js.map +1 -1
  12. package/public/adeo/components/checkbox/Checkbox.js +1 -1
  13. package/public/adeo/components/checkbox/Checkbox.js.map +1 -1
  14. package/public/adeo/components/checkbox/Checkbox.svelte +2 -2
  15. package/public/adeo/components/datatable/DataTable.js +1 -1
  16. package/public/adeo/components/datatable/DataTable.js.map +1 -1
  17. package/public/adeo/components/datatable/DataTable.svelte +18 -18
  18. package/public/adeo/components/fileuploader/FileUploader.js +1 -1
  19. package/public/adeo/components/fileuploader/FileUploader.js.map +1 -1
  20. package/public/adeo/components/fileuploader/FileUploader.svelte +8 -5
  21. package/public/adeo/components/fileuploader/ResultFile.nested.js +1 -1
  22. package/public/adeo/components/fileuploader/ResultFile.nested.js.map +1 -1
  23. package/public/adeo/components/layer/Layer.js +1 -1
  24. package/public/adeo/components/layer/Layer.js.map +1 -1
  25. package/public/adeo/components/layer/Layer.svelte +2 -1
  26. package/public/adeo/components/link/Link.js +1 -1
  27. package/public/adeo/components/link/Link.js.map +1 -1
  28. package/public/adeo/components/link/Link.svelte +1 -1
  29. package/public/adeo/components/phonenumber/PhoneNumber.js +1 -1
  30. package/public/adeo/components/phonenumber/PhoneNumber.js.map +1 -1
  31. package/public/adeo/components/phonenumber/PhoneNumber.svelte +72 -9
  32. package/public/adeo/components/quantityselector/QuantitySelector.js +1 -1
  33. package/public/adeo/components/quantityselector/QuantitySelector.js.map +1 -1
  34. package/public/adeo/components/quantityselector/QuantitySelector.svelte +6 -3
  35. package/public/adeo/components/resultfile/ResultFile.nested.svelte +1 -1
  36. package/public/array-5b770a93.js +1 -13
  37. package/public/array-5b770a93.js.map +1 -1
  38. package/public/axis-fbc0f7b5.js +1 -174
  39. package/public/axis-fbc0f7b5.js.map +1 -1
  40. package/public/band-d7a07d2c.js +1 -186
  41. package/public/band-d7a07d2c.js.map +1 -1
  42. package/public/bricoman/components/chart/Donut.js +1 -1
  43. package/public/bricoman/components/checkbox/Checkbox.js +1 -1
  44. package/public/bricoman/components/checkbox/Checkbox.js.map +1 -1
  45. package/public/bricoman/components/checkbox/Checkbox.svelte +2 -2
  46. package/public/bricoman/components/datatable/DataTable.js +1 -1
  47. package/public/bricoman/components/datatable/DataTable.js.map +1 -1
  48. package/public/bricoman/components/datatable/DataTable.svelte +18 -18
  49. package/public/bricoman/components/fileuploader/FileUploader.js +1 -1
  50. package/public/bricoman/components/fileuploader/FileUploader.js.map +1 -1
  51. package/public/bricoman/components/fileuploader/FileUploader.svelte +8 -5
  52. package/public/bricoman/components/fileuploader/ResultFile.nested.js +1 -1
  53. package/public/bricoman/components/fileuploader/ResultFile.nested.js.map +1 -1
  54. package/public/bricoman/components/header/Header.js +1 -1
  55. package/public/bricoman/components/hero/Hero.js +1 -1
  56. package/public/bricoman/components/layer/Layer.js +1 -1
  57. package/public/bricoman/components/layer/Layer.js.map +1 -1
  58. package/public/bricoman/components/layer/Layer.svelte +2 -1
  59. package/public/bricoman/components/link/Link.js +1 -1
  60. package/public/bricoman/components/link/Link.js.map +1 -1
  61. package/public/bricoman/components/link/Link.svelte +1 -1
  62. package/public/bricoman/components/listbox/Listbox.js +1 -1
  63. package/public/bricoman/components/listbox/Listbox.nested.js +1 -1
  64. package/public/bricoman/components/phonenumber/PhoneNumber.js +1 -1
  65. package/public/bricoman/components/phonenumber/PhoneNumber.js.map +1 -1
  66. package/public/bricoman/components/phonenumber/PhoneNumber.svelte +72 -9
  67. package/public/bricoman/components/price/Price.js +1 -1
  68. package/public/bricoman/components/quantityselector/QuantitySelector.js +1 -1
  69. package/public/bricoman/components/quantityselector/QuantitySelector.js.map +1 -1
  70. package/public/bricoman/components/quantityselector/QuantitySelector.svelte +6 -3
  71. package/public/bricoman/components/resultfile/ResultFile.nested.svelte +1 -1
  72. package/public/components/accordion/Accordion.js +1 -365
  73. package/public/components/accordion/Accordion.js.map +1 -1
  74. package/public/components/autocomplete/Autocomplete.js +1 -1515
  75. package/public/components/autocomplete/Autocomplete.js.map +1 -1
  76. package/public/components/badge/Badge.js +1 -155
  77. package/public/components/badge/Badge.js.map +1 -1
  78. package/public/components/badge/Badge.nested.js +1 -101
  79. package/public/components/badge/Badge.nested.js.map +1 -1
  80. package/public/components/breadcrumb/Breadcrumb.js +1 -372
  81. package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
  82. package/public/components/breadcrumb/Breadcrumb.nested.js +1 -319
  83. package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
  84. package/public/components/button/Button.js +1 -1138
  85. package/public/components/button/Button.js.map +1 -1
  86. package/public/components/card/Card.js +1 -369
  87. package/public/components/card/Card.js.map +1 -1
  88. package/public/components/chart/BarChart.js +1 -582
  89. package/public/components/chart/BarChart.js.map +1 -1
  90. package/public/components/chart/Donut.js +1 -1189
  91. package/public/components/chart/Donut.js.map +1 -1
  92. package/public/components/chart/GroupedBarChart.js +1 -750
  93. package/public/components/chart/GroupedBarChart.js.map +1 -1
  94. package/public/components/chart/LineChart.js +1 -1731
  95. package/public/components/chart/LineChart.js.map +1 -1
  96. package/public/components/chart/Radar.js +1 -729
  97. package/public/components/chart/Radar.js.map +1 -1
  98. package/public/components/chart/StackedBarChart.js +1 -745
  99. package/public/components/chart/StackedBarChart.js.map +1 -1
  100. package/public/components/checkbox/Checkbox.js +1 -307
  101. package/public/components/checkbox/Checkbox.js.map +1 -1
  102. package/public/components/checkbox/Checkbox.svelte +2 -2
  103. package/public/components/checkboxgroup/checkboxGroup.js +1 -404
  104. package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
  105. package/public/components/datatable/DataTable.js +1 -3064
  106. package/public/components/datatable/DataTable.js.map +1 -1
  107. package/public/components/datatable/DataTable.svelte +18 -18
  108. package/public/components/datatable/DataTableDefaultAction.nested.js +1 -4
  109. package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
  110. package/public/components/datatable/DataTableDefaultEdtion.nested.js +1 -164
  111. package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
  112. package/public/components/datatable/DataTableDefaultFilterTags.nested.js +1 -380
  113. package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
  114. package/public/components/datatable/DataTableDefaultSelection.nested.js +1 -424
  115. package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
  116. package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +1 -263
  117. package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
  118. package/public/components/datatable/DataTableFooter.nested.js +1 -637
  119. package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
  120. package/public/components/dropdown/Dropdown.js +1 -1426
  121. package/public/components/dropdown/Dropdown.js.map +1 -1
  122. package/public/components/field/Field.js +1 -375
  123. package/public/components/field/Field.js.map +1 -1
  124. package/public/components/fileuploader/FileUploader.js +1 -555
  125. package/public/components/fileuploader/FileUploader.js.map +1 -1
  126. package/public/components/fileuploader/FileUploader.svelte +8 -5
  127. package/public/components/fileuploader/ResultFile.nested.js +1 -265
  128. package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
  129. package/public/components/flag/Flag.js +1 -174
  130. package/public/components/flag/Flag.js.map +1 -1
  131. package/public/components/header/Header.js +1 -903
  132. package/public/components/header/Header.js.map +1 -1
  133. package/public/components/hero/Hero.js +1 -271
  134. package/public/components/hero/Hero.js.map +1 -1
  135. package/public/components/layer/Layer.js +1 -453
  136. package/public/components/layer/Layer.js.map +1 -1
  137. package/public/components/layer/Layer.svelte +2 -1
  138. package/public/components/link/Link.js +1 -380
  139. package/public/components/link/Link.js.map +1 -1
  140. package/public/components/link/Link.svelte +1 -1
  141. package/public/components/listbox/Listbox.js +1 -595
  142. package/public/components/listbox/Listbox.js.map +1 -1
  143. package/public/components/listbox/Listbox.nested.js +1 -629
  144. package/public/components/listbox/Listbox.nested.js.map +1 -1
  145. package/public/components/loader/Loader.js +1 -246
  146. package/public/components/loader/Loader.js.map +1 -1
  147. package/public/components/loader/Loader.nested.js +1 -176
  148. package/public/components/loader/Loader.nested.js.map +1 -1
  149. package/public/components/modal/Modal.js +1 -395
  150. package/public/components/modal/Modal.js.map +1 -1
  151. package/public/components/notification/Notification.js +1 -458
  152. package/public/components/notification/Notification.js.map +1 -1
  153. package/public/components/optionbutton/OptionButton.js +1 -316
  154. package/public/components/optionbutton/OptionButton.js.map +1 -1
  155. package/public/components/overlay/Overlay.js +1 -104
  156. package/public/components/overlay/Overlay.js.map +1 -1
  157. package/public/components/overlay/OverlayLoader.js +1 -151
  158. package/public/components/overlay/OverlayLoader.js.map +1 -1
  159. package/public/components/pagination/Pagination.js +1 -613
  160. package/public/components/pagination/Pagination.js.map +1 -1
  161. package/public/components/passwordinput/PasswordInput.js +1 -291
  162. package/public/components/passwordinput/PasswordInput.js.map +1 -1
  163. package/public/components/phonenumber/PhoneNumber.js +1 -6894
  164. package/public/components/phonenumber/PhoneNumber.js.map +1 -1
  165. package/public/components/price/Price.js +1 -768
  166. package/public/components/price/Price.js.map +1 -1
  167. package/public/components/progressbar/ProgressBar.js +1 -278
  168. package/public/components/progressbar/ProgressBar.js.map +1 -1
  169. package/public/components/quantityselector/QuantitySelector.js +1 -333
  170. package/public/components/quantityselector/QuantitySelector.js.map +1 -1
  171. package/public/components/quantityselector/QuantitySelector.svelte +6 -3
  172. package/public/components/radio/Radio.js +1 -273
  173. package/public/components/radio/Radio.js.map +1 -1
  174. package/public/components/radiogroup/RadioGroup.js +1 -414
  175. package/public/components/radiogroup/RadioGroup.js.map +1 -1
  176. package/public/components/ratings/StarsInput.js +1 -292
  177. package/public/components/ratings/StarsInput.js.map +1 -1
  178. package/public/components/ratings/StarsResult.js +1 -246
  179. package/public/components/ratings/StarsResult.js.map +1 -1
  180. package/public/components/resultfile/ResultFile.nested.svelte +1 -1
  181. package/public/components/select/Select.js +1 -451
  182. package/public/components/select/Select.js.map +1 -1
  183. package/public/components/sidebar/Sidebar.js +1 -784
  184. package/public/components/sidebar/Sidebar.js.map +1 -1
  185. package/public/components/sidebar/sidebar-feature-group.nested.js +1 -594
  186. package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
  187. package/public/components/sidebar/sidebar-feature.nested.js +1 -402
  188. package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
  189. package/public/components/sidebar/sidebar-section.nested.js +1 -394
  190. package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
  191. package/public/components/sidebar/sidebar-segment.nested.js +1 -200
  192. package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
  193. package/public/components/sidebar/sidebar-separator.nested.js +1 -49
  194. package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
  195. package/public/components/sidebar/sidebar-sub-features.nested.js +1 -312
  196. package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
  197. package/public/components/sidebar/sidebar-user.nested.js +1 -733
  198. package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
  199. package/public/components/stepper/Stepper.js +1 -371
  200. package/public/components/stepper/Stepper.js.map +1 -1
  201. package/public/components/tabs/Tabs.js +1 -615
  202. package/public/components/tabs/Tabs.js.map +1 -1
  203. package/public/components/tabs/Tabs.nested.js +1 -472
  204. package/public/components/tabs/Tabs.nested.js.map +1 -1
  205. package/public/components/tag/Tag.js +1 -665
  206. package/public/components/tag/Tag.js.map +1 -1
  207. package/public/components/tag/Tag.nested.js +1 -554
  208. package/public/components/tag/Tag.nested.js.map +1 -1
  209. package/public/components/taglist/TagList.js +1 -475
  210. package/public/components/taglist/TagList.js.map +1 -1
  211. package/public/components/textarea/Textarea.js +1 -303
  212. package/public/components/textarea/Textarea.js.map +1 -1
  213. package/public/components/textinput/Textinput.js +1 -497
  214. package/public/components/textinput/Textinput.js.map +1 -1
  215. package/public/components/textinput/Textinput.nested.js +1 -320
  216. package/public/components/textinput/Textinput.nested.js.map +1 -1
  217. package/public/components/toggle/Toggle.js +1 -278
  218. package/public/components/toggle/Toggle.js.map +1 -1
  219. package/public/components/tooltip/Tooltip.js +1 -173
  220. package/public/components/tooltip/Tooltip.js.map +1 -1
  221. package/public/index-c33b3772.js +1 -873
  222. package/public/index-c33b3772.js.map +1 -1
  223. package/public/linear-f46d7e9e.js +1 -700
  224. package/public/linear-f46d7e9e.js.map +1 -1
  225. package/public/path-1b5da959.js +1 -186
  226. package/public/path-1b5da959.js.map +1 -1
  227. package/public/sidebar-service-275bf9ef.js +1 -129
  228. package/public/sidebar-service-275bf9ef.js.map +1 -1
  229. package/public/symbol-b05a6e2b.js +1 -169
  230. package/public/symbol-b05a6e2b.js.map +1 -1
  231. package/public/transform-15d69d5d.js +1 -2743
  232. package/public/transform-15d69d5d.js.map +1 -1
  233. package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +1 -1
  234. package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +1 -1
@@ -1,734 +1,2 @@
1
- import { P as SvelteComponent, i as init, s as safe_not_equal, Q as append_styles, K as empty, b as insert, C as transition_in, D as transition_out, E as check_outros, o as detach, ab as component_subscribe, e as element, d as space, g as attr, j as append, l as listen, M as group_outros, t as text, k as set_data, J as destroy_each, x as create_component, A as mount_component, I as stop_propagation, G as destroy_component, v as binding_callbacks, T as svg_element, n as noop, y as set_style, $ as src_url_equal } from '../../index-c33b3772.js';
2
- import { t as toggleSidebar, a as selectFeature, i as isSidebarOpen } from '../../sidebar-service-275bf9ef.js';
3
- import Sidebar_feature_nested from './sidebar-feature.nested.js';
4
-
5
- /* src/components/sidebar/sidebar-user.nested.svelte generated by Svelte v3.58.0 */
6
-
7
- function add_css(target) {
8
- append_styles(target, "svelte-1760hzv", ".mc-sidebar-user.svelte-1760hzv.svelte-1760hzv{left:0;right:0;bottom:0;position:absolute;background:#cfd2d8}.mc-sidebar-user__header.svelte-1760hzv.svelte-1760hzv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:none;border:none;color:#191919;font-size:inherit;font-family:inherit;text-align:initial;margin:0;width:100%;overflow:hidden}.mc-sidebar-user__header.svelte-1760hzv.svelte-1760hzv:focus-visible{-webkit-box-shadow:none;box-shadow:none;border:none;border-radius:12px;outline:1px solid #0b96cc;outline-offset:-5px}.mc-sidebar-user__header.svelte-1760hzv.svelte-1760hzv:hover{cursor:pointer}.mc-sidebar-user__header.svelte-1760hzv:hover .mc-sidebar-user__header__information__icon.svelte-1760hzv{background:#b3b7c1}.mc-sidebar-user__header__picture.svelte-1760hzv.svelte-1760hzv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#5B737D;border-radius:24px;width:48px;min-width:48px;height:48px;overflow:hidden}.mc-sidebar-user__header__picture.svelte-1760hzv img.svelte-1760hzv{display:block}.mc-sidebar-user__header__information.svelte-1760hzv.svelte-1760hzv{-ms-flex-pack:distribute;justify-content:space-around;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex:1;flex:1;margin:0;margin-left:8px;height:40px}.mc-sidebar-user__header__information__icon.svelte-1760hzv.svelte-1760hzv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:32px;height:32px;border-radius:4px}.mc-sidebar-user__header__information__identity.svelte-1760hzv.svelte-1760hzv{font-size:16px;font-weight:bold}.mc-sidebar-user__header__information__title.svelte-1760hzv.svelte-1760hzv,.mc-sidebar-user__header__information__identity.svelte-1760hzv.svelte-1760hzv{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;max-width:176px}.mc-sidebar-user__icon.svelte-1760hzv.svelte-1760hzv{fill:#191919}.mc-sidebar-user__content.svelte-1760hzv.svelte-1760hzv{list-style-type:none;padding:0;overflow:hidden;margin:-8px 0px 24px 0px;-o-transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out}.mc-sidebar-user__content.is-close.svelte-1760hzv.svelte-1760hzv{height:0;margin:0}.mc-sidebar-user.is-close.svelte-1760hzv .mc-sidebar-user__header.svelte-1760hzv{-o-transition:padding 300ms ease-in-out;-webkit-transition:padding 300ms ease-in-out;transition:padding 300ms ease-in-out;padding:12px 8px;margin:8px 0}.mc-sidebar-user.is-open.svelte-1760hzv .mc-sidebar-user__header.svelte-1760hzv{-o-transition:padding 300ms ease-in-out;-webkit-transition:padding 300ms ease-in-out;transition:padding 300ms ease-in-out;padding:12px 24px 12px 32px;margin:8px 0}");
9
- }
10
-
11
- function get_each_context(ctx, list, i) {
12
- const child_ctx = ctx.slice();
13
- child_ctx[11] = list[i];
14
- return child_ctx;
15
- }
16
-
17
- // (57:0) {#if user}
18
- function create_if_block(ctx) {
19
- let div;
20
- let button;
21
- let span;
22
- let t0;
23
- let button_aria_expanded_value;
24
- let button_aria_label_value;
25
- let t1;
26
- let div_class_value;
27
- let current;
28
- let mounted;
29
- let dispose;
30
-
31
- function select_block_type(ctx, dirty) {
32
- if (/*user*/ ctx[0].imageBase64) return create_if_block_6;
33
- return create_else_block_1;
34
- }
35
-
36
- let current_block_type = select_block_type(ctx);
37
- let if_block0 = current_block_type(ctx);
38
- let if_block1 = /*$isSidebarOpen*/ ctx[4] && create_if_block_2(ctx);
39
- let if_block2 = /*data*/ ctx[1]?.length && create_if_block_1(ctx);
40
-
41
- return {
42
- c() {
43
- div = element("div");
44
- button = element("button");
45
- span = element("span");
46
- if_block0.c();
47
- t0 = space();
48
- if (if_block1) if_block1.c();
49
- t1 = space();
50
- if (if_block2) if_block2.c();
51
- attr(span, "class", "mc-sidebar-user__header__picture svelte-1760hzv");
52
- attr(button, "aria-expanded", button_aria_expanded_value = /*$isSidebarOpen*/ ctx[4] && /*isExpanded*/ ctx[3]);
53
- attr(button, "class", "mc-sidebar-user__header svelte-1760hzv");
54
-
55
- attr(button, "aria-label", button_aria_label_value = /*$isSidebarOpen*/ ctx[4] && /*isExpanded*/ ctx[3]
56
- ? /*a11yLabels*/ ctx[2]?.['close-user'] || 'Close the user sub menu'
57
- : /*a11yLabels*/ ctx[2]?.['open-user'] || 'Open the user sub menu');
58
-
59
- attr(button, "aria-controls", "user-content");
60
- attr(div, "class", div_class_value = "mc-sidebar-user " + (/*$isSidebarOpen*/ ctx[4] ? 'is-open' : 'is-close') + " svelte-1760hzv");
61
- },
62
- m(target, anchor) {
63
- insert(target, div, anchor);
64
- append(div, button);
65
- append(button, span);
66
- if_block0.m(span, null);
67
- append(button, t0);
68
- if (if_block1) if_block1.m(button, null);
69
- append(div, t1);
70
- if (if_block2) if_block2.m(div, null);
71
- current = true;
72
-
73
- if (!mounted) {
74
- dispose = listen(div, "click", /*toggle*/ ctx[6]);
75
- mounted = true;
76
- }
77
- },
78
- p(ctx, dirty) {
79
- if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block0) {
80
- if_block0.p(ctx, dirty);
81
- } else {
82
- if_block0.d(1);
83
- if_block0 = current_block_type(ctx);
84
-
85
- if (if_block0) {
86
- if_block0.c();
87
- if_block0.m(span, null);
88
- }
89
- }
90
-
91
- if (/*$isSidebarOpen*/ ctx[4]) {
92
- if (if_block1) {
93
- if_block1.p(ctx, dirty);
94
- } else {
95
- if_block1 = create_if_block_2(ctx);
96
- if_block1.c();
97
- if_block1.m(button, null);
98
- }
99
- } else if (if_block1) {
100
- if_block1.d(1);
101
- if_block1 = null;
102
- }
103
-
104
- if (!current || dirty & /*$isSidebarOpen, isExpanded*/ 24 && button_aria_expanded_value !== (button_aria_expanded_value = /*$isSidebarOpen*/ ctx[4] && /*isExpanded*/ ctx[3])) {
105
- attr(button, "aria-expanded", button_aria_expanded_value);
106
- }
107
-
108
- if (!current || dirty & /*$isSidebarOpen, isExpanded, a11yLabels*/ 28 && button_aria_label_value !== (button_aria_label_value = /*$isSidebarOpen*/ ctx[4] && /*isExpanded*/ ctx[3]
109
- ? /*a11yLabels*/ ctx[2]?.['close-user'] || 'Close the user sub menu'
110
- : /*a11yLabels*/ ctx[2]?.['open-user'] || 'Open the user sub menu')) {
111
- attr(button, "aria-label", button_aria_label_value);
112
- }
113
-
114
- if (/*data*/ ctx[1]?.length) {
115
- if (if_block2) {
116
- if_block2.p(ctx, dirty);
117
-
118
- if (dirty & /*data*/ 2) {
119
- transition_in(if_block2, 1);
120
- }
121
- } else {
122
- if_block2 = create_if_block_1(ctx);
123
- if_block2.c();
124
- transition_in(if_block2, 1);
125
- if_block2.m(div, null);
126
- }
127
- } else if (if_block2) {
128
- group_outros();
129
-
130
- transition_out(if_block2, 1, 1, () => {
131
- if_block2 = null;
132
- });
133
-
134
- check_outros();
135
- }
136
-
137
- if (!current || dirty & /*$isSidebarOpen*/ 16 && div_class_value !== (div_class_value = "mc-sidebar-user " + (/*$isSidebarOpen*/ ctx[4] ? 'is-open' : 'is-close') + " svelte-1760hzv")) {
138
- attr(div, "class", div_class_value);
139
- }
140
- },
141
- i(local) {
142
- if (current) return;
143
- transition_in(if_block2);
144
- current = true;
145
- },
146
- o(local) {
147
- transition_out(if_block2);
148
- current = false;
149
- },
150
- d(detaching) {
151
- if (detaching) detach(div);
152
- if_block0.d();
153
- if (if_block1) if_block1.d();
154
- if (if_block2) if_block2.d();
155
- mounted = false;
156
- dispose();
157
- }
158
- };
159
- }
160
-
161
- // (80:8) {:else}
162
- function create_else_block_1(ctx) {
163
- let svg;
164
- let path;
165
-
166
- return {
167
- c() {
168
- svg = svg_element("svg");
169
- path = svg_element("path");
170
- attr(path, "d", "M12 12.76a5.38 5.38 0 115.38-5.38A5.39 5.39 0 0112 12.76zM12 4a3.38 3.38 0 103.38 3.38A3.39 3.39 0 0012 4zM16.48 13.58a1 1 0 00-.81.11 7.3 7.3 0 01-7.34 0 1 1 0 00-.81-.11l-2.81.87a1 1 0 00-.71 1V21a1 1 0 001 1h14a1 1 0 001-1v-5.59a1 1 0 00-.71-1zM18 20H6v-3.86l1.75-.53a9.36 9.36 0 008.5 0l1.75.53z");
171
- attr(svg, "class", "mc-sidebar-user__icon svelte-1760hzv");
172
- attr(svg, "width", "24px");
173
- attr(svg, "height", "24px");
174
- attr(svg, "viewBox", "0 0 24 24");
175
- },
176
- m(target, anchor) {
177
- insert(target, svg, anchor);
178
- append(svg, path);
179
- },
180
- p: noop,
181
- d(detaching) {
182
- if (detaching) detach(svg);
183
- }
184
- };
185
- }
186
-
187
- // (72:8) {#if user.imageBase64}
188
- function create_if_block_6(ctx) {
189
- let img;
190
- let img_src_value;
191
-
192
- return {
193
- c() {
194
- img = element("img");
195
- attr(img, "class", "base64 svelte-1760hzv");
196
- set_style(img, "display", "block");
197
- set_style(img, "width", "auto");
198
- set_style(img, "height", "48px");
199
- set_style(img, "max-width", "48px");
200
- attr(img, "aria-hidden", "");
201
- attr(img, "alt", "User Picture");
202
- if (!src_url_equal(img.src, img_src_value = "data:image/png;base64, " + /*user*/ ctx[0].imageBase64)) attr(img, "src", img_src_value);
203
- },
204
- m(target, anchor) {
205
- insert(target, img, anchor);
206
- },
207
- p(ctx, dirty) {
208
- if (dirty & /*user*/ 1 && !src_url_equal(img.src, img_src_value = "data:image/png;base64, " + /*user*/ ctx[0].imageBase64)) {
209
- attr(img, "src", img_src_value);
210
- }
211
- },
212
- d(detaching) {
213
- if (detaching) detach(img);
214
- }
215
- };
216
- }
217
-
218
- // (92:6) {#if $isSidebarOpen}
219
- function create_if_block_2(ctx) {
220
- let p;
221
- let span;
222
- let t0_value = (/*user*/ ctx[0]?.firstName || '') + "";
223
- let t0;
224
- let t1;
225
- let t2_value = (/*user*/ ctx[0]?.lastName || '') + "";
226
- let t2;
227
- let t3;
228
- let t4;
229
- let if_block1_anchor;
230
- let if_block0 = /*user*/ ctx[0]?.title && create_if_block_5(ctx);
231
- let if_block1 = /*data*/ ctx[1]?.length && create_if_block_3(ctx);
232
-
233
- return {
234
- c() {
235
- p = element("p");
236
- span = element("span");
237
- t0 = text(t0_value);
238
- t1 = space();
239
- t2 = text(t2_value);
240
- t3 = space();
241
- if (if_block0) if_block0.c();
242
- t4 = space();
243
- if (if_block1) if_block1.c();
244
- if_block1_anchor = empty();
245
- attr(span, "class", "mc-sidebar-user__header__information__identity svelte-1760hzv");
246
- attr(p, "class", "mc-sidebar-user__header__information svelte-1760hzv");
247
- },
248
- m(target, anchor) {
249
- insert(target, p, anchor);
250
- append(p, span);
251
- append(span, t0);
252
- append(span, t1);
253
- append(span, t2);
254
- append(p, t3);
255
- if (if_block0) if_block0.m(p, null);
256
- insert(target, t4, anchor);
257
- if (if_block1) if_block1.m(target, anchor);
258
- insert(target, if_block1_anchor, anchor);
259
- },
260
- p(ctx, dirty) {
261
- if (dirty & /*user*/ 1 && t0_value !== (t0_value = (/*user*/ ctx[0]?.firstName || '') + "")) set_data(t0, t0_value);
262
- if (dirty & /*user*/ 1 && t2_value !== (t2_value = (/*user*/ ctx[0]?.lastName || '') + "")) set_data(t2, t2_value);
263
-
264
- if (/*user*/ ctx[0]?.title) {
265
- if (if_block0) {
266
- if_block0.p(ctx, dirty);
267
- } else {
268
- if_block0 = create_if_block_5(ctx);
269
- if_block0.c();
270
- if_block0.m(p, null);
271
- }
272
- } else if (if_block0) {
273
- if_block0.d(1);
274
- if_block0 = null;
275
- }
276
-
277
- if (/*data*/ ctx[1]?.length) {
278
- if (if_block1) {
279
- if_block1.p(ctx, dirty);
280
- } else {
281
- if_block1 = create_if_block_3(ctx);
282
- if_block1.c();
283
- if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
284
- }
285
- } else if (if_block1) {
286
- if_block1.d(1);
287
- if_block1 = null;
288
- }
289
- },
290
- d(detaching) {
291
- if (detaching) detach(p);
292
- if (if_block0) if_block0.d();
293
- if (detaching) detach(t4);
294
- if (if_block1) if_block1.d(detaching);
295
- if (detaching) detach(if_block1_anchor);
296
- }
297
- };
298
- }
299
-
300
- // (98:10) {#if user?.title}
301
- function create_if_block_5(ctx) {
302
- let span;
303
- let t_value = capitalizeTheFirstLetterOfEachWord(/*user*/ ctx[0].title) + "";
304
- let t;
305
-
306
- return {
307
- c() {
308
- span = element("span");
309
- t = text(t_value);
310
- attr(span, "class", "mc-sidebar-user__header__information__title svelte-1760hzv");
311
- },
312
- m(target, anchor) {
313
- insert(target, span, anchor);
314
- append(span, t);
315
- },
316
- p(ctx, dirty) {
317
- if (dirty & /*user*/ 1 && t_value !== (t_value = capitalizeTheFirstLetterOfEachWord(/*user*/ ctx[0].title) + "")) set_data(t, t_value);
318
- },
319
- d(detaching) {
320
- if (detaching) detach(span);
321
- }
322
- };
323
- }
324
-
325
- // (104:8) {#if data?.length}
326
- function create_if_block_3(ctx) {
327
- let span;
328
-
329
- function select_block_type_1(ctx, dirty) {
330
- if (/*$isSidebarOpen*/ ctx[4] && !/*isExpanded*/ ctx[3]) return create_if_block_4;
331
- return create_else_block;
332
- }
333
-
334
- let current_block_type = select_block_type_1(ctx);
335
- let if_block = current_block_type(ctx);
336
-
337
- return {
338
- c() {
339
- span = element("span");
340
- if_block.c();
341
- attr(span, "class", "mc-sidebar-user__header__information__icon svelte-1760hzv");
342
- },
343
- m(target, anchor) {
344
- insert(target, span, anchor);
345
- if_block.m(span, null);
346
- },
347
- p(ctx, dirty) {
348
- if (current_block_type !== (current_block_type = select_block_type_1(ctx))) {
349
- if_block.d(1);
350
- if_block = current_block_type(ctx);
351
-
352
- if (if_block) {
353
- if_block.c();
354
- if_block.m(span, null);
355
- }
356
- }
357
- },
358
- d(detaching) {
359
- if (detaching) detach(span);
360
- if_block.d();
361
- }
362
- };
363
- }
364
-
365
- // (116:12) {:else}
366
- function create_else_block(ctx) {
367
- let svg;
368
- let path;
369
-
370
- return {
371
- c() {
372
- svg = svg_element("svg");
373
- path = svg_element("path");
374
- attr(path, "d", "M12 9H4a1 1 0 010-2h8a1 1 0 010 2z");
375
- attr(svg, "width", "16px");
376
- attr(svg, "height", "16px");
377
- attr(svg, "class", "mc-sidebar-user__icon svelte-1760hzv");
378
- attr(svg, "viewBox", "0 0 16 16");
379
- },
380
- m(target, anchor) {
381
- insert(target, svg, anchor);
382
- append(svg, path);
383
- },
384
- d(detaching) {
385
- if (detaching) detach(svg);
386
- }
387
- };
388
- }
389
-
390
- // (106:12) {#if $isSidebarOpen && !isExpanded}
391
- function create_if_block_4(ctx) {
392
- let svg;
393
- let path;
394
-
395
- return {
396
- c() {
397
- svg = svg_element("svg");
398
- path = svg_element("path");
399
- attr(path, "d", "M13 7H9V3a1 1 0 00-2 0v4H3a1 1 0 000 2h4v4a1 1 0 002 0V9h4a1 1 0 000-2z");
400
- attr(svg, "class", "mc-sidebar-user__icon svelte-1760hzv");
401
- attr(svg, "width", "16px");
402
- attr(svg, "height", "16px");
403
- attr(svg, "viewBox", "0 0 16 16");
404
- },
405
- m(target, anchor) {
406
- insert(target, svg, anchor);
407
- append(svg, path);
408
- },
409
- d(detaching) {
410
- if (detaching) detach(svg);
411
- }
412
- };
413
- }
414
-
415
- // (129:4) {#if data?.length}
416
- function create_if_block_1(ctx) {
417
- let ul;
418
- let ul_aria_hidden_value;
419
- let current;
420
- let each_value = /*data*/ ctx[1];
421
- let each_blocks = [];
422
-
423
- for (let i = 0; i < each_value.length; i += 1) {
424
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
425
- }
426
-
427
- const out = i => transition_out(each_blocks[i], 1, 1, () => {
428
- each_blocks[i] = null;
429
- });
430
-
431
- return {
432
- c() {
433
- ul = element("ul");
434
-
435
- for (let i = 0; i < each_blocks.length; i += 1) {
436
- each_blocks[i].c();
437
- }
438
-
439
- attr(ul, "aria-hidden", ul_aria_hidden_value = !/*$isSidebarOpen*/ ctx[4] || !/*isExpanded*/ ctx[3]);
440
- attr(ul, "class", "mc-sidebar-user__content is-close svelte-1760hzv");
441
- attr(ul, "id", "user-content");
442
- },
443
- m(target, anchor) {
444
- insert(target, ul, anchor);
445
-
446
- for (let i = 0; i < each_blocks.length; i += 1) {
447
- if (each_blocks[i]) {
448
- each_blocks[i].m(ul, null);
449
- }
450
- }
451
-
452
- /*ul_binding*/ ctx[9](ul);
453
- current = true;
454
- },
455
- p(ctx, dirty) {
456
- if (dirty & /*handleClick, data, a11yLabels*/ 134) {
457
- each_value = /*data*/ ctx[1];
458
- let i;
459
-
460
- for (i = 0; i < each_value.length; i += 1) {
461
- const child_ctx = get_each_context(ctx, each_value, i);
462
-
463
- if (each_blocks[i]) {
464
- each_blocks[i].p(child_ctx, dirty);
465
- transition_in(each_blocks[i], 1);
466
- } else {
467
- each_blocks[i] = create_each_block(child_ctx);
468
- each_blocks[i].c();
469
- transition_in(each_blocks[i], 1);
470
- each_blocks[i].m(ul, null);
471
- }
472
- }
473
-
474
- group_outros();
475
-
476
- for (i = each_value.length; i < each_blocks.length; i += 1) {
477
- out(i);
478
- }
479
-
480
- check_outros();
481
- }
482
-
483
- if (!current || dirty & /*$isSidebarOpen, isExpanded*/ 24 && ul_aria_hidden_value !== (ul_aria_hidden_value = !/*$isSidebarOpen*/ ctx[4] || !/*isExpanded*/ ctx[3])) {
484
- attr(ul, "aria-hidden", ul_aria_hidden_value);
485
- }
486
- },
487
- i(local) {
488
- if (current) return;
489
-
490
- for (let i = 0; i < each_value.length; i += 1) {
491
- transition_in(each_blocks[i]);
492
- }
493
-
494
- current = true;
495
- },
496
- o(local) {
497
- each_blocks = each_blocks.filter(Boolean);
498
-
499
- for (let i = 0; i < each_blocks.length; i += 1) {
500
- transition_out(each_blocks[i]);
501
- }
502
-
503
- current = false;
504
- },
505
- d(detaching) {
506
- if (detaching) detach(ul);
507
- destroy_each(each_blocks, detaching);
508
- /*ul_binding*/ ctx[9](null);
509
- }
510
- };
511
- }
512
-
513
- // (136:8) {#each data as feature}
514
- function create_each_block(ctx) {
515
- let li;
516
- let featurecomponent;
517
- let t;
518
- let current;
519
- let mounted;
520
- let dispose;
521
-
522
- featurecomponent = new Sidebar_feature_nested({
523
- props: {
524
- feature: /*feature*/ ctx[11],
525
- a11yLabels: /*a11yLabels*/ ctx[2]
526
- }
527
- });
528
-
529
- function click_handler() {
530
- return /*click_handler*/ ctx[8](/*feature*/ ctx[11]);
531
- }
532
-
533
- return {
534
- c() {
535
- li = element("li");
536
- create_component(featurecomponent.$$.fragment);
537
- t = space();
538
- },
539
- m(target, anchor) {
540
- insert(target, li, anchor);
541
- mount_component(featurecomponent, li, null);
542
- append(li, t);
543
- current = true;
544
-
545
- if (!mounted) {
546
- dispose = listen(li, "click", stop_propagation(click_handler));
547
- mounted = true;
548
- }
549
- },
550
- p(new_ctx, dirty) {
551
- ctx = new_ctx;
552
- const featurecomponent_changes = {};
553
- if (dirty & /*data*/ 2) featurecomponent_changes.feature = /*feature*/ ctx[11];
554
- if (dirty & /*a11yLabels*/ 4) featurecomponent_changes.a11yLabels = /*a11yLabels*/ ctx[2];
555
- featurecomponent.$set(featurecomponent_changes);
556
- },
557
- i(local) {
558
- if (current) return;
559
- transition_in(featurecomponent.$$.fragment, local);
560
- current = true;
561
- },
562
- o(local) {
563
- transition_out(featurecomponent.$$.fragment, local);
564
- current = false;
565
- },
566
- d(detaching) {
567
- if (detaching) detach(li);
568
- destroy_component(featurecomponent);
569
- mounted = false;
570
- dispose();
571
- }
572
- };
573
- }
574
-
575
- function create_fragment(ctx) {
576
- let if_block_anchor;
577
- let current;
578
- let if_block = /*user*/ ctx[0] && create_if_block(ctx);
579
-
580
- return {
581
- c() {
582
- if (if_block) if_block.c();
583
- if_block_anchor = empty();
584
- },
585
- m(target, anchor) {
586
- if (if_block) if_block.m(target, anchor);
587
- insert(target, if_block_anchor, anchor);
588
- current = true;
589
- },
590
- p(ctx, [dirty]) {
591
- if (/*user*/ ctx[0]) {
592
- if (if_block) {
593
- if_block.p(ctx, dirty);
594
-
595
- if (dirty & /*user*/ 1) {
596
- transition_in(if_block, 1);
597
- }
598
- } else {
599
- if_block = create_if_block(ctx);
600
- if_block.c();
601
- transition_in(if_block, 1);
602
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
603
- }
604
- } else if (if_block) {
605
- group_outros();
606
-
607
- transition_out(if_block, 1, 1, () => {
608
- if_block = null;
609
- });
610
-
611
- check_outros();
612
- }
613
- },
614
- i(local) {
615
- if (current) return;
616
- transition_in(if_block);
617
- current = true;
618
- },
619
- o(local) {
620
- transition_out(if_block);
621
- current = false;
622
- },
623
- d(detaching) {
624
- if (if_block) if_block.d(detaching);
625
- if (detaching) detach(if_block_anchor);
626
- }
627
- };
628
- }
629
-
630
- function capitalizeTheFirstLetterOfEachWord(words) {
631
- let separateWord = words.toLowerCase().split(' ');
632
-
633
- for (let i = 0; i < separateWord.length; i++) {
634
- separateWord[i] = separateWord[i].charAt(0).toUpperCase() + separateWord[i].substring(1);
635
- }
636
-
637
- return separateWord.join(' ');
638
- }
639
-
640
- function instance($$self, $$props, $$invalidate) {
641
- let $isSidebarOpen;
642
- component_subscribe($$self, isSidebarOpen, $$value => $$invalidate(4, $isSidebarOpen = $$value));
643
- let { user } = $$props;
644
- let { data } = $$props;
645
- let { a11yLabels } = $$props;
646
- let content;
647
- let isExpanded = false;
648
-
649
- function updateContentCSS(isExpanded, isOpen) {
650
- if (content) {
651
- $$invalidate(5, content.style.height = '', content);
652
- $$invalidate(5, content.style.transition = 'none', content);
653
- const startHeight = window.getComputedStyle(content).height;
654
- content.classList.add(isOpen && isExpanded ? 'is-open' : 'is-close');
655
- content.classList.remove(isOpen && isExpanded ? 'is-close' : 'is-open');
656
- const height = window.getComputedStyle(content).height;
657
- $$invalidate(5, content.style.height = startHeight, content);
658
-
659
- requestAnimationFrame(() => {
660
- $$invalidate(5, content.style.transition = '', content);
661
-
662
- requestAnimationFrame(() => {
663
- $$invalidate(5, content.style.height = height, content);
664
- });
665
- });
666
-
667
- const handler = () => {
668
- $$invalidate(5, content.style.height = '', content);
669
- content.removeEventListener('transitionend', handler);
670
- };
671
-
672
- content.addEventListener('transitionend', handler);
673
- }
674
- }
675
-
676
- function toggle() {
677
- if (!$isSidebarOpen) {
678
- toggleSidebar(true);
679
- $$invalidate(3, isExpanded = true);
680
- } else {
681
- $$invalidate(3, isExpanded = !isExpanded);
682
- }
683
- }
684
-
685
- function handleClick(feature) {
686
- if (!feature.disabled) {
687
- selectFeature(feature.code);
688
- }
689
- }
690
-
691
- const click_handler = feature => handleClick(feature);
692
-
693
- function ul_binding($$value) {
694
- binding_callbacks[$$value ? 'unshift' : 'push'](() => {
695
- content = $$value;
696
- $$invalidate(5, content);
697
- });
698
- }
699
-
700
- $$self.$$set = $$props => {
701
- if ('user' in $$props) $$invalidate(0, user = $$props.user);
702
- if ('data' in $$props) $$invalidate(1, data = $$props.data);
703
- if ('a11yLabels' in $$props) $$invalidate(2, a11yLabels = $$props.a11yLabels);
704
- };
705
-
706
- $$self.$$.update = () => {
707
- if ($$self.$$.dirty & /*isExpanded, $isSidebarOpen*/ 24) {
708
- updateContentCSS(isExpanded, $isSidebarOpen);
709
- }
710
- };
711
-
712
- return [
713
- user,
714
- data,
715
- a11yLabels,
716
- isExpanded,
717
- $isSidebarOpen,
718
- content,
719
- toggle,
720
- handleClick,
721
- click_handler,
722
- ul_binding
723
- ];
724
- }
725
-
726
- class Sidebar_user_nested extends SvelteComponent {
727
- constructor(options) {
728
- super();
729
- init(this, options, instance, create_fragment, safe_not_equal, { user: 0, data: 1, a11yLabels: 2 }, add_css);
730
- }
731
- }
732
-
733
- export { Sidebar_user_nested as default };
1
+ import{P as e,i as t,s,Q as i,K as n,b as a,C as r,D as l,E as o,o as d,ab as c,e as u,d as h,g as m,j as p,l as v,M as b,t as f,k as _,J as x,x as g,A as z,I as w,G as y,v as k,T as $,n as L,y as j,$ as B}from"../../index-c33b3772.js";import{t as C,a as M,i as A}from"../../sidebar-service-275bf9ef.js";import N from"./sidebar-feature.nested.js";function H(e){i(e,"svelte-1760hzv",".mc-sidebar-user.svelte-1760hzv.svelte-1760hzv{left:0;right:0;bottom:0;position:absolute;background:#cfd2d8}.mc-sidebar-user__header.svelte-1760hzv.svelte-1760hzv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:none;border:none;color:#191919;font-size:inherit;font-family:inherit;text-align:initial;margin:0;width:100%;overflow:hidden}.mc-sidebar-user__header.svelte-1760hzv.svelte-1760hzv:focus-visible{-webkit-box-shadow:none;box-shadow:none;border:none;border-radius:12px;outline:1px solid #0b96cc;outline-offset:-5px}.mc-sidebar-user__header.svelte-1760hzv.svelte-1760hzv:hover{cursor:pointer}.mc-sidebar-user__header.svelte-1760hzv:hover .mc-sidebar-user__header__information__icon.svelte-1760hzv{background:#b3b7c1}.mc-sidebar-user__header__picture.svelte-1760hzv.svelte-1760hzv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#5B737D;border-radius:24px;width:48px;min-width:48px;height:48px;overflow:hidden}.mc-sidebar-user__header__picture.svelte-1760hzv img.svelte-1760hzv{display:block}.mc-sidebar-user__header__information.svelte-1760hzv.svelte-1760hzv{-ms-flex-pack:distribute;justify-content:space-around;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex:1;flex:1;margin:0;margin-left:8px;height:40px}.mc-sidebar-user__header__information__icon.svelte-1760hzv.svelte-1760hzv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:32px;height:32px;border-radius:4px}.mc-sidebar-user__header__information__identity.svelte-1760hzv.svelte-1760hzv{font-size:16px;font-weight:bold}.mc-sidebar-user__header__information__title.svelte-1760hzv.svelte-1760hzv,.mc-sidebar-user__header__information__identity.svelte-1760hzv.svelte-1760hzv{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;max-width:176px}.mc-sidebar-user__icon.svelte-1760hzv.svelte-1760hzv{fill:#191919}.mc-sidebar-user__content.svelte-1760hzv.svelte-1760hzv{list-style-type:none;padding:0;overflow:hidden;margin:-8px 0px 24px 0px;-o-transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out}.mc-sidebar-user__content.is-close.svelte-1760hzv.svelte-1760hzv{height:0;margin:0}.mc-sidebar-user.is-close.svelte-1760hzv .mc-sidebar-user__header.svelte-1760hzv{-o-transition:padding 300ms ease-in-out;-webkit-transition:padding 300ms ease-in-out;transition:padding 300ms ease-in-out;padding:12px 8px;margin:8px 0}.mc-sidebar-user.is-open.svelte-1760hzv .mc-sidebar-user__header.svelte-1760hzv{-o-transition:padding 300ms ease-in-out;-webkit-transition:padding 300ms ease-in-out;transition:padding 300ms ease-in-out;padding:12px 24px 12px 32px;margin:8px 0}")}function E(e,t,s){const i=e.slice();return i[11]=t[s],i}function V(e){let t,s,i,n,c,f,_,x,g,z,w;function y(e,t){return e[0].imageBase64?D:q}let k=y(e),$=k(e),L=e[4]&&F(e),j=e[1]?.length&&G(e);return{c(){t=u("div"),s=u("button"),i=u("span"),$.c(),n=h(),L&&L.c(),_=h(),j&&j.c(),m(i,"class","mc-sidebar-user__header__picture svelte-1760hzv"),m(s,"aria-expanded",c=e[4]&&e[3]),m(s,"class","mc-sidebar-user__header svelte-1760hzv"),m(s,"aria-label",f=e[4]&&e[3]?e[2]?.["close-user"]||"Close the user sub menu":e[2]?.["open-user"]||"Open the user sub menu"),m(s,"aria-controls","user-content"),m(t,"class",x="mc-sidebar-user "+(e[4]?"is-open":"is-close")+" svelte-1760hzv")},m(r,l){a(r,t,l),p(t,s),p(s,i),$.m(i,null),p(s,n),L&&L.m(s,null),p(t,_),j&&j.m(t,null),g=!0,z||(w=v(t,"click",e[6]),z=!0)},p(e,n){k===(k=y(e))&&$?$.p(e,n):($.d(1),$=k(e),$&&($.c(),$.m(i,null))),e[4]?L?L.p(e,n):(L=F(e),L.c(),L.m(s,null)):L&&(L.d(1),L=null),(!g||24&n&&c!==(c=e[4]&&e[3]))&&m(s,"aria-expanded",c),(!g||28&n&&f!==(f=e[4]&&e[3]?e[2]?.["close-user"]||"Close the user sub menu":e[2]?.["open-user"]||"Open the user sub menu"))&&m(s,"aria-label",f),e[1]?.length?j?(j.p(e,n),2&n&&r(j,1)):(j=G(e),j.c(),r(j,1),j.m(t,null)):j&&(b(),l(j,1,1,(()=>{j=null})),o()),(!g||16&n&&x!==(x="mc-sidebar-user "+(e[4]?"is-open":"is-close")+" svelte-1760hzv"))&&m(t,"class",x)},i(e){g||(r(j),g=!0)},o(e){l(j),g=!1},d(e){e&&d(t),$.d(),L&&L.d(),j&&j.d(),z=!1,w()}}}function q(e){let t,s;return{c(){t=$("svg"),s=$("path"),m(s,"d","M12 12.76a5.38 5.38 0 115.38-5.38A5.39 5.39 0 0112 12.76zM12 4a3.38 3.38 0 103.38 3.38A3.39 3.39 0 0012 4zM16.48 13.58a1 1 0 00-.81.11 7.3 7.3 0 01-7.34 0 1 1 0 00-.81-.11l-2.81.87a1 1 0 00-.71 1V21a1 1 0 001 1h14a1 1 0 001-1v-5.59a1 1 0 00-.71-1zM18 20H6v-3.86l1.75-.53a9.36 9.36 0 008.5 0l1.75.53z"),m(t,"class","mc-sidebar-user__icon svelte-1760hzv"),m(t,"width","24px"),m(t,"height","24px"),m(t,"viewBox","0 0 24 24")},m(e,i){a(e,t,i),p(t,s)},p:L,d(e){e&&d(t)}}}function D(e){let t,s;return{c(){t=u("img"),m(t,"class","base64 svelte-1760hzv"),j(t,"display","block"),j(t,"width","auto"),j(t,"height","48px"),j(t,"max-width","48px"),m(t,"aria-hidden",""),m(t,"alt","User Picture"),B(t.src,s="data:image/png;base64, "+e[0].imageBase64)||m(t,"src",s)},m(e,s){a(e,t,s)},p(e,i){1&i&&!B(t.src,s="data:image/png;base64, "+e[0].imageBase64)&&m(t,"src",s)},d(e){e&&d(t)}}}function F(e){let t,s,i,r,l,o,c,v,b=(e[0]?.firstName||"")+"",x=(e[0]?.lastName||"")+"",g=e[0]?.title&&O(e),z=e[1]?.length&&P(e);return{c(){t=u("p"),s=u("span"),i=f(b),r=h(),l=f(x),o=h(),g&&g.c(),c=h(),z&&z.c(),v=n(),m(s,"class","mc-sidebar-user__header__information__identity svelte-1760hzv"),m(t,"class","mc-sidebar-user__header__information svelte-1760hzv")},m(e,n){a(e,t,n),p(t,s),p(s,i),p(s,r),p(s,l),p(t,o),g&&g.m(t,null),a(e,c,n),z&&z.m(e,n),a(e,v,n)},p(e,s){1&s&&b!==(b=(e[0]?.firstName||"")+"")&&_(i,b),1&s&&x!==(x=(e[0]?.lastName||"")+"")&&_(l,x),e[0]?.title?g?g.p(e,s):(g=O(e),g.c(),g.m(t,null)):g&&(g.d(1),g=null),e[1]?.length?z?z.p(e,s):(z=P(e),z.c(),z.m(v.parentNode,v)):z&&(z.d(1),z=null)},d(e){e&&d(t),g&&g.d(),e&&d(c),z&&z.d(e),e&&d(v)}}}function O(e){let t,s,i=K(e[0].title)+"";return{c(){t=u("span"),s=f(i),m(t,"class","mc-sidebar-user__header__information__title svelte-1760hzv")},m(e,i){a(e,t,i),p(t,s)},p(e,t){1&t&&i!==(i=K(e[0].title)+"")&&_(s,i)},d(e){e&&d(t)}}}function P(e){let t;function s(e,t){return e[4]&&!e[3]?U:S}let i=s(e),n=i(e);return{c(){t=u("span"),n.c(),m(t,"class","mc-sidebar-user__header__information__icon svelte-1760hzv")},m(e,s){a(e,t,s),n.m(t,null)},p(e,a){i!==(i=s(e))&&(n.d(1),n=i(e),n&&(n.c(),n.m(t,null)))},d(e){e&&d(t),n.d()}}}function S(e){let t,s;return{c(){t=$("svg"),s=$("path"),m(s,"d","M12 9H4a1 1 0 010-2h8a1 1 0 010 2z"),m(t,"width","16px"),m(t,"height","16px"),m(t,"class","mc-sidebar-user__icon svelte-1760hzv"),m(t,"viewBox","0 0 16 16")},m(e,i){a(e,t,i),p(t,s)},d(e){e&&d(t)}}}function U(e){let t,s;return{c(){t=$("svg"),s=$("path"),m(s,"d","M13 7H9V3a1 1 0 00-2 0v4H3a1 1 0 000 2h4v4a1 1 0 002 0V9h4a1 1 0 000-2z"),m(t,"class","mc-sidebar-user__icon svelte-1760hzv"),m(t,"width","16px"),m(t,"height","16px"),m(t,"viewBox","0 0 16 16")},m(e,i){a(e,t,i),p(t,s)},d(e){e&&d(t)}}}function G(e){let t,s,i,n=e[1],c=[];for(let t=0;t<n.length;t+=1)c[t]=I(E(e,n,t));const h=e=>l(c[e],1,1,(()=>{c[e]=null}));return{c(){t=u("ul");for(let e=0;e<c.length;e+=1)c[e].c();m(t,"aria-hidden",s=!e[4]||!e[3]),m(t,"class","mc-sidebar-user__content is-close svelte-1760hzv"),m(t,"id","user-content")},m(s,n){a(s,t,n);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,null);e[9](t),i=!0},p(e,a){if(134&a){let s;for(n=e[1],s=0;s<n.length;s+=1){const i=E(e,n,s);c[s]?(c[s].p(i,a),r(c[s],1)):(c[s]=I(i),c[s].c(),r(c[s],1),c[s].m(t,null))}for(b(),s=n.length;s<c.length;s+=1)h(s);o()}(!i||24&a&&s!==(s=!e[4]||!e[3]))&&m(t,"aria-hidden",s)},i(e){if(!i){for(let e=0;e<n.length;e+=1)r(c[e]);i=!0}},o(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)l(c[e]);i=!1},d(s){s&&d(t),x(c,s),e[9](null)}}}function I(e){let t,s,i,n,o,c;function m(){return e[8](e[11])}return s=new N({props:{feature:e[11],a11yLabels:e[2]}}),{c(){t=u("li"),g(s.$$.fragment),i=h()},m(e,r){a(e,t,r),z(s,t,null),p(t,i),n=!0,o||(c=v(t,"click",w(m)),o=!0)},p(t,i){e=t;const n={};2&i&&(n.feature=e[11]),4&i&&(n.a11yLabels=e[2]),s.$set(n)},i(e){n||(r(s.$$.fragment,e),n=!0)},o(e){l(s.$$.fragment,e),n=!1},d(e){e&&d(t),y(s),o=!1,c()}}}function J(e){let t,s,i=e[0]&&V(e);return{c(){i&&i.c(),t=n()},m(e,n){i&&i.m(e,n),a(e,t,n),s=!0},p(e,[s]){e[0]?i?(i.p(e,s),1&s&&r(i,1)):(i=V(e),i.c(),r(i,1),i.m(t.parentNode,t)):i&&(b(),l(i,1,1,(()=>{i=null})),o())},i(e){s||(r(i),s=!0)},o(e){l(i),s=!1},d(e){i&&i.d(e),e&&d(t)}}}function K(e){let t=e.toLowerCase().split(" ");for(let e=0;e<t.length;e++)t[e]=t[e].charAt(0).toUpperCase()+t[e].substring(1);return t.join(" ")}function Q(e,t,s){let i;c(e,A,(e=>s(4,i=e)));let n,{user:a}=t,{data:r}=t,{a11yLabels:l}=t,o=!1;function d(e){e.disabled||M(e.code)}return e.$$set=e=>{"user"in e&&s(0,a=e.user),"data"in e&&s(1,r=e.data),"a11yLabels"in e&&s(2,l=e.a11yLabels)},e.$$.update=()=>{24&e.$$.dirty&&function(e,t){if(n){s(5,n.style.height="",n),s(5,n.style.transition="none",n);const i=window.getComputedStyle(n).height;n.classList.add(t&&e?"is-open":"is-close"),n.classList.remove(t&&e?"is-close":"is-open");const a=window.getComputedStyle(n).height;s(5,n.style.height=i,n),requestAnimationFrame((()=>{s(5,n.style.transition="",n),requestAnimationFrame((()=>{s(5,n.style.height=a,n)}))}));const r=()=>{s(5,n.style.height="",n),n.removeEventListener("transitionend",r)};n.addEventListener("transitionend",r)}}(o,i)},[a,r,l,o,i,n,function(){i?s(3,o=!o):(C(!0),s(3,o=!0))},d,e=>d(e),function(e){k[e?"unshift":"push"]((()=>{n=e,s(5,n)}))}]}class T extends e{constructor(e){super(),t(this,e,Q,J,s,{user:0,data:1,a11yLabels:2},H)}}export{T as default};
734
2
  //# sourceMappingURL=sidebar-user.nested.js.map