@mozaic-ds/web-components 0.11.0 → 0.12.0-beta.0
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.
- package/README.md +2 -1
- package/package.json +5 -5
- package/public/ClickOutside-63071e7a.js +15 -1
- package/public/ClickOutside-63071e7a.js.map +1 -1
- package/public/DataTableDefaultAction.nested-46712849.js +762 -0
- package/public/DataTableDefaultAction.nested-46712849.js.map +1 -0
- package/public/DataTableUtilities-313a448d.js +386 -0
- package/public/DataTableUtilities-313a448d.js.map +1 -0
- package/public/EventForward-8492ff62.js +109 -1
- package/public/EventForward-8492ff62.js.map +1 -1
- package/public/EventHandler-02058705.js +15 -1
- package/public/EventHandler-02058705.js.map +1 -1
- package/public/adeo/components/autocomplete/Autocomplete.js +1 -1
- package/public/adeo/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/adeo/components/autocomplete/Autocomplete.svelte +7 -5
- package/public/adeo/components/header/Header.js +1 -1
- package/public/adeo/components/header/Header.js.map +1 -1
- package/public/adeo/components/pagination/Pagination.js +1 -1
- package/public/adeo/components/pagination/Pagination.js.map +1 -1
- package/public/adeo/components/pagination/Pagination.svelte +5 -4
- package/public/adeo/components/sidebar/sidebar-feature-group.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/adeo/components/sidebar/sidebar-segment.nested.js +1 -1
- package/public/adeo/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/adeo/components/sidebar-feature-group/sidebar-feature-group.nested.svelte +1 -1
- package/public/adeo/components/sidebar-segment/sidebar-segment.nested.svelte +1 -1
- package/public/array-5b770a93.js +13 -1
- package/public/array-5b770a93.js.map +1 -1
- package/public/axis-fbc0f7b5.js +174 -1
- package/public/axis-fbc0f7b5.js.map +1 -1
- package/public/band-d7a07d2c.js +186 -1
- package/public/band-d7a07d2c.js.map +1 -1
- package/public/bricoman/components/autocomplete/Autocomplete.js +1 -1
- package/public/bricoman/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/bricoman/components/autocomplete/Autocomplete.svelte +7 -5
- package/public/bricoman/components/header/Header.js +1 -1
- package/public/bricoman/components/header/Header.js.map +1 -1
- package/public/bricoman/components/pagination/Pagination.js +1 -1
- package/public/bricoman/components/pagination/Pagination.js.map +1 -1
- package/public/bricoman/components/pagination/Pagination.svelte +5 -4
- package/public/bricoman/components/sidebar/sidebar-feature-group.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/bricoman/components/sidebar/sidebar-segment.nested.js +1 -1
- package/public/bricoman/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/bricoman/components/sidebar-feature-group/sidebar-feature-group.nested.svelte +1 -1
- package/public/bricoman/components/sidebar-segment/sidebar-segment.nested.svelte +1 -1
- package/public/bundle.js +56 -60
- package/public/components/accordion/Accordion.js +365 -1
- package/public/components/accordion/Accordion.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.js +1515 -1
- package/public/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.svelte +15 -34
- package/public/components/badge/Badge.js +155 -1
- package/public/components/badge/Badge.js.map +1 -1
- package/public/components/badge/Badge.nested.js +101 -1
- package/public/components/badge/Badge.nested.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.js +372 -1
- package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js +319 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/components/button/Button.js +1141 -1
- package/public/components/button/Button.js.map +1 -1
- package/public/components/button/Button.nested.js +1005 -0
- package/public/components/button/Button.nested.js.map +1 -0
- package/public/components/button/Button.nested.svelte +173 -0
- package/public/components/button/Button.svelte +2 -2
- package/public/components/card/Card.js +369 -1
- package/public/components/card/Card.js.map +1 -1
- package/public/components/carousel/Carousel.js +710 -0
- package/public/components/carousel/Carousel.js.map +1 -0
- package/public/components/carousel/Carousel.svelte +408 -0
- package/public/components/carousel/CarouselCard.nested.js +140 -0
- package/public/components/carousel/CarouselCard.nested.js.map +1 -0
- package/public/components/carousel/carousel.types.d.ts +20 -0
- package/public/components/carousel/carousel.types.d.ts.map +1 -0
- package/public/components/carouselcard/CarouselCard.nested.svelte +54 -0
- package/public/components/chart/BarChart.js +583 -1
- package/public/components/chart/BarChart.js.map +1 -1
- package/public/components/chart/Donut.js +1189 -1
- package/public/components/chart/Donut.js.map +1 -1
- package/public/components/chart/GroupedBarChart.js +750 -1
- package/public/components/chart/GroupedBarChart.js.map +1 -1
- package/public/components/chart/LineChart.js +1731 -1
- package/public/components/chart/LineChart.js.map +1 -1
- package/public/components/chart/Radar.js +729 -1
- package/public/components/chart/Radar.js.map +1 -1
- package/public/components/chart/StackedBarChart.js +745 -1
- package/public/components/chart/StackedBarChart.js.map +1 -1
- package/public/components/checkbox/Checkbox.js +307 -1
- package/public/components/checkbox/Checkbox.js.map +1 -1
- package/public/components/checkboxgroup/checkboxGroup.js +404 -1
- package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
- package/public/components/checkboxgroup/checkboxgroup.types.d.ts.map +1 -1
- package/public/components/datatable/DataTable.js +3098 -1
- package/public/components/datatable/DataTable.js.map +1 -1
- package/public/components/datatable/DataTable.svelte +19 -44
- package/public/components/datatable/DataTableDefaultAction.nested.js +4 -1
- package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js +164 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js +380 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js +424 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +263 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
- package/public/components/datatable/DataTableFooter.nested.js +637 -1
- package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
- package/public/components/datatable/data.d.ts.map +1 -1
- package/public/components/datatable/datatable.types.d.ts +2 -16
- package/public/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/components/datatabledefaultaction/DataTableDefaultAction.nested.svelte +0 -18
- package/public/components/dropdown/Dropdown.js +1426 -1
- package/public/components/dropdown/Dropdown.js.map +1 -1
- package/public/components/field/Field.js +375 -1
- package/public/components/field/Field.js.map +1 -1
- package/public/components/fileuploader/FileUploader.js +603 -1
- package/public/components/fileuploader/FileUploader.js.map +1 -1
- package/public/components/fileuploader/ResultFile.nested.js +344 -1
- package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/components/flag/Flag.js +174 -1
- package/public/components/flag/Flag.js.map +1 -1
- package/public/components/header/Header.js +918 -1
- package/public/components/header/Header.js.map +1 -1
- package/public/components/header/Header.types.d.ts.map +1 -1
- package/public/components/hero/Hero.js +271 -1
- package/public/components/hero/Hero.js.map +1 -1
- package/public/components/kpi/Kpi.js +404 -1
- package/public/components/kpi/Kpi.js.map +1 -1
- package/public/components/layer/Layer.js +471 -1
- package/public/components/layer/Layer.js.map +1 -1
- package/public/components/link/Link.js +380 -1
- package/public/components/link/Link.js.map +1 -1
- package/public/components/link/Link.nested.js +285 -0
- package/public/components/link/Link.nested.js.map +1 -0
- package/public/components/link/Link.nested.svelte +78 -0
- package/public/components/listbox/Listbox.js +595 -1
- package/public/components/listbox/Listbox.js.map +1 -1
- package/public/components/listbox/Listbox.nested.js +629 -1
- package/public/components/listbox/Listbox.nested.js.map +1 -1
- package/public/components/loader/Loader.js +246 -1
- package/public/components/loader/Loader.js.map +1 -1
- package/public/components/loader/Loader.nested.js +176 -1
- package/public/components/loader/Loader.nested.js.map +1 -1
- package/public/components/modal/Modal.js +395 -1
- package/public/components/modal/Modal.js.map +1 -1
- package/public/components/notification/Notification.js +458 -1
- package/public/components/notification/Notification.js.map +1 -1
- package/public/components/optionbutton/OptionButton.js +316 -1
- package/public/components/optionbutton/OptionButton.js.map +1 -1
- package/public/components/overlay/Overlay.js +104 -1
- package/public/components/overlay/Overlay.js.map +1 -1
- package/public/components/overlay/OverlayLoader.js +151 -1
- package/public/components/overlay/OverlayLoader.js.map +1 -1
- package/public/components/pagination/Pagination.js +613 -1
- package/public/components/pagination/Pagination.js.map +1 -1
- package/public/components/passwordinput/PasswordInput.js +291 -1
- package/public/components/passwordinput/PasswordInput.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.js +6894 -1
- package/public/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.svelte +1 -1
- package/public/components/price/Price.js +768 -1
- package/public/components/price/Price.js.map +1 -1
- package/public/components/progressbar/ProgressBar.js +278 -1
- package/public/components/progressbar/ProgressBar.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.js +397 -1
- package/public/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/components/radio/Radio.js +273 -1
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.js +414 -1
- package/public/components/radiogroup/RadioGroup.js.map +1 -1
- package/public/components/radiogroup/radioGroup.types.d.ts.map +1 -1
- package/public/components/ratings/StarsInput.js +292 -1
- package/public/components/ratings/StarsInput.js.map +1 -1
- package/public/components/ratings/StarsResult.js +246 -1
- package/public/components/ratings/StarsResult.js.map +1 -1
- package/public/components/select/Select.js +451 -1
- package/public/components/select/Select.js.map +1 -1
- package/public/components/sidebar/Sidebar.js +784 -1
- package/public/components/sidebar/Sidebar.js.map +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js +592 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js +402 -1
- package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-section.nested.js +394 -1
- package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js +198 -1
- package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js +49 -1
- package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-service.d.ts.map +1 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js +312 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-user.nested.js +733 -1
- package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/components/sidebar/sidebar.types.d.ts.map +1 -1
- package/public/components/sidebar-user/sidebar-user.nested.svelte +0 -1
- package/public/components/starsinput/StarsInput.svelte +2 -9
- package/public/components/stepper/Stepper.js +371 -1
- package/public/components/stepper/Stepper.js.map +1 -1
- package/public/components/tabs/Tabs.js +615 -1
- package/public/components/tabs/Tabs.js.map +1 -1
- package/public/components/tabs/Tabs.nested.js +472 -1
- package/public/components/tabs/Tabs.nested.js.map +1 -1
- package/public/components/tag/Tag.js +665 -1
- package/public/components/tag/Tag.js.map +1 -1
- package/public/components/tag/Tag.nested.js +554 -1
- package/public/components/tag/Tag.nested.js.map +1 -1
- package/public/components/tag/Tag.nested.svelte +5 -5
- package/public/components/tag/Tag.svelte +5 -5
- package/public/components/taglist/TagList.js +475 -1
- package/public/components/taglist/TagList.js.map +1 -1
- package/public/components/textarea/Textarea.js +303 -1
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textinput/Textinput.js +497 -1
- package/public/components/textinput/Textinput.js.map +1 -1
- package/public/components/textinput/Textinput.nested.js +320 -1
- package/public/components/textinput/Textinput.nested.js.map +1 -1
- package/public/components/toggle/Toggle.js +278 -1
- package/public/components/toggle/Toggle.js.map +1 -1
- package/public/components/tooltip/Tooltip.js +173 -1
- package/public/components/tooltip/Tooltip.js.map +1 -1
- package/public/icons/Billzloty24.js +2 -0
- package/public/icons/Billzloty24.js.map +1 -0
- package/public/icons/Billzloty32.js +2 -0
- package/public/icons/Billzloty32.js.map +1 -0
- package/public/icons/Billzloty48.js +2 -0
- package/public/icons/Billzloty48.js.map +1 -0
- package/public/icons/Billzloty64.js +2 -0
- package/public/icons/Billzloty64.js.map +1 -0
- package/public/icons/CardFundingzloty24.js +2 -0
- package/public/icons/CardFundingzloty24.js.map +1 -0
- package/public/icons/CardFundingzloty32.js +2 -0
- package/public/icons/CardFundingzloty32.js.map +1 -0
- package/public/icons/CardFundingzloty48.js +2 -0
- package/public/icons/CardFundingzloty48.js.map +1 -0
- package/public/icons/CardFundingzloty64.js +2 -0
- package/public/icons/CardFundingzloty64.js.map +1 -0
- package/public/icons/Fundingzloty24.js +2 -0
- package/public/icons/Fundingzloty24.js.map +1 -0
- package/public/icons/Fundingzloty32.js +2 -0
- package/public/icons/Fundingzloty32.js.map +1 -0
- package/public/icons/Fundingzloty48.js +2 -0
- package/public/icons/Fundingzloty48.js.map +1 -0
- package/public/icons/Fundingzloty64.js +2 -0
- package/public/icons/Fundingzloty64.js.map +1 -0
- package/public/icons/MonochromeStoreLocationbm24.js +2 -0
- package/public/icons/MonochromeStoreLocationbm24.js.map +1 -0
- package/public/icons/MonochromeStoreLocationbm32.js +2 -0
- package/public/icons/MonochromeStoreLocationbm32.js.map +1 -0
- package/public/icons/MonochromeStoreLocationbm48.js +2 -0
- package/public/icons/MonochromeStoreLocationbm48.js.map +1 -0
- package/public/icons/MonochromeStoreLocationbm64.js +2 -0
- package/public/icons/MonochromeStoreLocationbm64.js.map +1 -0
- package/public/icons/PaymentMonochromeBonificoBancario24.js +2 -0
- package/public/icons/PaymentMonochromeBonificoBancario24.js.map +1 -0
- package/public/icons/PaymentMonochromeBonificoBancario32.js +2 -0
- package/public/icons/PaymentMonochromeBonificoBancario32.js.map +1 -0
- package/public/icons/PaymentMonochromeBonificoBancario48.js +2 -0
- package/public/icons/PaymentMonochromeBonificoBancario48.js.map +1 -0
- package/public/icons/PaymentMonochromeBonificoBancario64.js +2 -0
- package/public/icons/PaymentMonochromeBonificoBancario64.js.map +1 -0
- package/public/icons/Receiptzloty24.js +2 -0
- package/public/icons/Receiptzloty24.js.map +1 -0
- package/public/icons/Receiptzloty32.js +2 -0
- package/public/icons/Receiptzloty32.js.map +1 -0
- package/public/icons/Receiptzloty48.js +2 -0
- package/public/icons/Receiptzloty48.js.map +1 -0
- package/public/icons/Receiptzloty64.js +2 -0
- package/public/icons/Receiptzloty64.js.map +1 -0
- package/public/icons/Renewableenergy24.js +2 -0
- package/public/icons/Renewableenergy24.js.map +1 -0
- package/public/icons/Renewableenergy32.js +2 -0
- package/public/icons/Renewableenergy32.js.map +1 -0
- package/public/icons/Renewableenergy48.js +2 -0
- package/public/icons/Renewableenergy48.js.map +1 -0
- package/public/icons/Renewableenergy64.js +2 -0
- package/public/icons/Renewableenergy64.js.map +1 -0
- package/public/icons/StoreBM24.js +2 -0
- package/public/icons/StoreBM24.js.map +1 -0
- package/public/icons/StoreBM32.js +2 -0
- package/public/icons/StoreBM32.js.map +1 -0
- package/public/icons/StoreBM48.js +2 -0
- package/public/icons/StoreBM48.js.map +1 -0
- package/public/icons/StoreBM64.js +2 -0
- package/public/icons/StoreBM64.js.map +1 -0
- package/public/icons/Wood24.js +2 -0
- package/public/icons/Wood24.js.map +1 -0
- package/public/icons/Wood32.js +2 -0
- package/public/icons/Wood32.js.map +1 -0
- package/public/icons/Wood48.js +2 -0
- package/public/icons/Wood48.js.map +1 -0
- package/public/icons/Wood64.js +2 -0
- package/public/icons/Wood64.js.map +1 -0
- package/public/icons/Woodflooring24.js +2 -0
- package/public/icons/Woodflooring24.js.map +1 -0
- package/public/icons/Woodflooring32.js +2 -0
- package/public/icons/Woodflooring32.js.map +1 -0
- package/public/icons/Woodflooring48.js +2 -0
- package/public/icons/Woodflooring48.js.map +1 -0
- package/public/icons/Woodflooring64.js +2 -0
- package/public/icons/Woodflooring64.js.map +1 -0
- package/public/icons/Woodflooringalt24.js +2 -0
- package/public/icons/Woodflooringalt24.js.map +1 -0
- package/public/icons/Woodflooringalt32.js +2 -0
- package/public/icons/Woodflooringalt32.js.map +1 -0
- package/public/icons/Woodflooringalt48.js +2 -0
- package/public/icons/Woodflooringalt48.js.map +1 -0
- package/public/icons/Woodflooringalt64.js +2 -0
- package/public/icons/Woodflooringalt64.js.map +1 -0
- package/public/icons/Zloty24.js +2 -0
- package/public/icons/Zloty24.js.map +1 -0
- package/public/icons/Zloty32.js +2 -0
- package/public/icons/Zloty32.js.map +1 -0
- package/public/icons/Zloty48.js +2 -0
- package/public/icons/Zloty48.js.map +1 -0
- package/public/icons/Zloty64.js +2 -0
- package/public/icons/Zloty64.js.map +1 -0
- package/public/icons.js +888 -696
- package/public/index-c33b3772.js +873 -1
- package/public/index-c33b3772.js.map +1 -1
- package/public/linear-f46d7e9e.js +700 -1
- package/public/linear-f46d7e9e.js.map +1 -1
- package/public/main.d.ts +1 -0
- package/public/main.d.ts.map +1 -1
- package/public/path-1b5da959.js +186 -1
- package/public/path-1b5da959.js.map +1 -1
- package/public/sidebar-service-275bf9ef.js +129 -1
- package/public/sidebar-service-275bf9ef.js.map +1 -1
- package/public/sidebar-service-589b271b.js +125 -0
- package/public/sidebar-service-589b271b.js.map +1 -0
- package/public/stories/carousel/items.d.ts +3 -0
- package/public/stories/carousel/items.d.ts.map +1 -0
- package/public/symbol-b05a6e2b.js +169 -1
- package/public/symbol-b05a6e2b.js.map +1 -1
- package/public/transform-15d69d5d.js +2743 -1
- package/public/transform-15d69d5d.js.map +1 -1
- package/public/utilities/DataTableUtilities.d.ts.map +1 -1
- package/public/utilities/DataTableUtilities.ts +0 -12
- package/public/utilities/EventForward.js +136 -1
- package/public/utilities/EventForward.js.map +1 -1
- package/public/utilities/EventHandler.js +36 -1
- package/public/utilities/EventHandler.js.map +1 -1
- package/public/utilities/components/carousel/carousel.types.d.ts +20 -0
- package/public/utilities/components/carousel/carousel.types.d.ts.map +1 -0
- package/public/utilities/components/datatable/data.d.ts.map +1 -1
- package/public/utilities/components/datatable/datatable.types.d.ts +2 -16
- package/public/utilities/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/utilities/main.d.ts +1 -0
- package/public/utilities/main.d.ts.map +1 -1
- package/public/utilities/stories/carousel/Carousel.stories.d.ts +8 -0
- package/public/utilities/stories/carousel/Carousel.stories.d.ts.map +1 -0
- package/public/utilities/stories/carousel/items.d.ts +3 -0
- package/public/utilities/stories/carousel/items.d.ts.map +1 -0
- package/public/utilities/stories/datatable/DataTable.stories.d.ts.map +1 -1
- package/public/utilities/stories/ratings/StarsResult.stories.d.ts.map +1 -1
- package/public/utilities/utilities/DataTableUtilities.d.ts.map +1 -1
|
@@ -1,2 +1,734 @@
|
|
|
1
|
-
import{P as e,i as t,s,Q as a,K as i,b as n,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 x,l as p,M as b,t as f,k as _,J as w,x as g,A as v,I as y,G as k,v as $,T as L,n as j,y as z,$ 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){a(e,"svelte-h4x6wa",".mc-sidebar-user.svelte-h4x6wa.svelte-h4x6wa{left:0;right:0;bottom:0;position:absolute;background:#cfd2d8}.mc-sidebar-user__header.svelte-h4x6wa.svelte-h4x6wa{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-h4x6wa.svelte-h4x6wa: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-h4x6wa.svelte-h4x6wa:hover{cursor:pointer}.mc-sidebar-user__header.svelte-h4x6wa:hover .mc-sidebar-user__header__information__icon.svelte-h4x6wa{background:#b3b7c1}.mc-sidebar-user__header__picture.svelte-h4x6wa.svelte-h4x6wa{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-h4x6wa img.svelte-h4x6wa{display:block}.mc-sidebar-user__header__information.svelte-h4x6wa.svelte-h4x6wa{-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-h4x6wa.svelte-h4x6wa{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-h4x6wa.svelte-h4x6wa{font-size:16px;font-weight:bold}.mc-sidebar-user__header__information__title.svelte-h4x6wa.svelte-h4x6wa,.mc-sidebar-user__header__information__identity.svelte-h4x6wa.svelte-h4x6wa{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;max-width:176px}.mc-sidebar-user__icon.svelte-h4x6wa.svelte-h4x6wa{fill:#191919}.mc-sidebar-user__content.svelte-h4x6wa.svelte-h4x6wa{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-h4x6wa.svelte-h4x6wa{height:0;margin:0}.mc-sidebar-user.is-close.svelte-h4x6wa .mc-sidebar-user__header.svelte-h4x6wa{-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-h4x6wa .mc-sidebar-user__header.svelte-h4x6wa{-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 a=e.slice();return a[11]=t[s],a}function V(e){let t,s,a,i,c,f,_,w,g,v,y;function k(e,t){return e[0].imageBase64?D:q}let $=k(e),L=$(e),j=e[4]&&F(e),z=e[1]?.length&&G(e);return{c(){t=u("div"),s=u("button"),a=u("span"),L.c(),i=h(),j&&j.c(),_=h(),z&&z.c(),m(a,"class","mc-sidebar-user__header__picture svelte-h4x6wa"),m(s,"aria-expanded",c=e[4]&&e[3]),m(s,"class","mc-sidebar-user__header svelte-h4x6wa"),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(s,"id","user-trigger"),m(t,"class",w="mc-sidebar-user "+(e[4]?"is-open":"is-close")+" svelte-h4x6wa")},m(r,l){n(r,t,l),x(t,s),x(s,a),L.m(a,null),x(s,i),j&&j.m(s,null),x(t,_),z&&z.m(t,null),g=!0,v||(y=p(t,"click",e[6]),v=!0)},p(e,i){$===($=k(e))&&L?L.p(e,i):(L.d(1),L=$(e),L&&(L.c(),L.m(a,null))),e[4]?j?j.p(e,i):(j=F(e),j.c(),j.m(s,null)):j&&(j.d(1),j=null),(!g||24&i&&c!==(c=e[4]&&e[3]))&&m(s,"aria-expanded",c),(!g||28&i&&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?z?(z.p(e,i),2&i&&r(z,1)):(z=G(e),z.c(),r(z,1),z.m(t,null)):z&&(b(),l(z,1,1,(()=>{z=null})),o()),(!g||16&i&&w!==(w="mc-sidebar-user "+(e[4]?"is-open":"is-close")+" svelte-h4x6wa"))&&m(t,"class",w)},i(e){g||(r(z),g=!0)},o(e){l(z),g=!1},d(e){e&&d(t),L.d(),j&&j.d(),z&&z.d(),v=!1,y()}}}function q(e){let t,s;return{c(){t=L("svg"),s=L("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-h4x6wa"),m(t,"width","24px"),m(t,"height","24px"),m(t,"viewBox","0 0 24 24")},m(e,a){n(e,t,a),x(t,s)},p:j,d(e){e&&d(t)}}}function D(e){let t,s;return{c(){t=u("img"),m(t,"class","base64 svelte-h4x6wa"),z(t,"display","block"),z(t,"width","auto"),z(t,"height","48px"),z(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){n(e,t,s)},p(e,a){1&a&&!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,a,r,l,o,c,p,b=(e[0]?.firstName||"")+"",w=(e[0]?.lastName||"")+"",g=e[0]?.title&&O(e),v=e[1]?.length&&P(e);return{c(){t=u("p"),s=u("span"),a=f(b),r=h(),l=f(w),o=h(),g&&g.c(),c=h(),v&&v.c(),p=i(),m(s,"class","mc-sidebar-user__header__information__identity svelte-h4x6wa"),m(t,"class","mc-sidebar-user__header__information svelte-h4x6wa")},m(e,i){n(e,t,i),x(t,s),x(s,a),x(s,r),x(s,l),x(t,o),g&&g.m(t,null),n(e,c,i),v&&v.m(e,i),n(e,p,i)},p(e,s){1&s&&b!==(b=(e[0]?.firstName||"")+"")&&_(a,b),1&s&&w!==(w=(e[0]?.lastName||"")+"")&&_(l,w),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?v?v.p(e,s):(v=P(e),v.c(),v.m(p.parentNode,p)):v&&(v.d(1),v=null)},d(e){e&&d(t),g&&g.d(),e&&d(c),v&&v.d(e),e&&d(p)}}}function O(e){let t,s,a=K(e[0].title)+"";return{c(){t=u("span"),s=f(a),m(t,"class","mc-sidebar-user__header__information__title svelte-h4x6wa")},m(e,a){n(e,t,a),x(t,s)},p(e,t){1&t&&a!==(a=K(e[0].title)+"")&&_(s,a)},d(e){e&&d(t)}}}function P(e){let t;function s(e,t){return e[4]&&!e[3]?U:S}let a=s(e),i=a(e);return{c(){t=u("span"),i.c(),m(t,"class","mc-sidebar-user__header__information__icon svelte-h4x6wa")},m(e,s){n(e,t,s),i.m(t,null)},p(e,n){a!==(a=s(e))&&(i.d(1),i=a(e),i&&(i.c(),i.m(t,null)))},d(e){e&&d(t),i.d()}}}function S(e){let t,s;return{c(){t=L("svg"),s=L("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-h4x6wa"),m(t,"viewBox","0 0 16 16")},m(e,a){n(e,t,a),x(t,s)},d(e){e&&d(t)}}}function U(e){let t,s;return{c(){t=L("svg"),s=L("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-h4x6wa"),m(t,"width","16px"),m(t,"height","16px"),m(t,"viewBox","0 0 16 16")},m(e,a){n(e,t,a),x(t,s)},d(e){e&&d(t)}}}function G(e){let t,s,a,i=e[1],c=[];for(let t=0;t<i.length;t+=1)c[t]=I(E(e,i,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-h4x6wa"),m(t,"id","user-content")},m(s,i){n(s,t,i);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,null);e[9](t),a=!0},p(e,n){if(134&n){let s;for(i=e[1],s=0;s<i.length;s+=1){const a=E(e,i,s);c[s]?(c[s].p(a,n),r(c[s],1)):(c[s]=I(a),c[s].c(),r(c[s],1),c[s].m(t,null))}for(b(),s=i.length;s<c.length;s+=1)h(s);o()}(!a||24&n&&s!==(s=!e[4]||!e[3]))&&m(t,"aria-hidden",s)},i(e){if(!a){for(let e=0;e<i.length;e+=1)r(c[e]);a=!0}},o(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)l(c[e]);a=!1},d(s){s&&d(t),w(c,s),e[9](null)}}}function I(e){let t,s,a,i,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),a=h()},m(e,r){n(e,t,r),v(s,t,null),x(t,a),i=!0,o||(c=p(t,"click",y(m)),o=!0)},p(t,a){e=t;const i={};2&a&&(i.feature=e[11]),4&a&&(i.a11yLabels=e[2]),s.$set(i)},i(e){i||(r(s.$$.fragment,e),i=!0)},o(e){l(s.$$.fragment,e),i=!1},d(e){e&&d(t),k(s),o=!1,c()}}}function J(e){let t,s,a=e[0]&&V(e);return{c(){a&&a.c(),t=i()},m(e,i){a&&a.m(e,i),n(e,t,i),s=!0},p(e,[s]){e[0]?a?(a.p(e,s),1&s&&r(a,1)):(a=V(e),a.c(),r(a,1),a.m(t.parentNode,t)):a&&(b(),l(a,1,1,(()=>{a=null})),o())},i(e){s||(r(a),s=!0)},o(e){l(a),s=!1},d(e){a&&a.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 a;c(e,A,(e=>s(4,a=e)));let i,{user:n}=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,n=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(i){s(5,i.style.height="",i),s(5,i.style.transition="none",i);const a=window.getComputedStyle(i).height;i.classList.add(t&&e?"is-open":"is-close"),i.classList.remove(t&&e?"is-close":"is-open");const n=window.getComputedStyle(i).height;s(5,i.style.height=a,i),requestAnimationFrame((()=>{s(5,i.style.transition="",i),requestAnimationFrame((()=>{s(5,i.style.height=n,i)}))}));const r=()=>{s(5,i.style.height="",i),i.removeEventListener("transitionend",r)};i.addEventListener("transitionend",r)}}(o,a)},[n,r,l,o,a,i,function(){a?s(3,o=!o):(C(!0),s(3,o=!0))},d,e=>d(e),function(e){$[e?"unshift":"push"]((()=>{i=e,s(5,i)}))}]}class T extends e{constructor(e){super(),t(this,e,Q,J,s,{user:0,data:1,a11yLabels:2},H)}}export{T as default};
|
|
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-589b271b.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-h4x6wa", ".mc-sidebar-user.svelte-h4x6wa.svelte-h4x6wa{left:0;right:0;bottom:0;position:absolute;background:#cfd2d8}.mc-sidebar-user__header.svelte-h4x6wa.svelte-h4x6wa{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-h4x6wa.svelte-h4x6wa: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-h4x6wa.svelte-h4x6wa:hover{cursor:pointer}.mc-sidebar-user__header.svelte-h4x6wa:hover .mc-sidebar-user__header__information__icon.svelte-h4x6wa{background:#b3b7c1}.mc-sidebar-user__header__picture.svelte-h4x6wa.svelte-h4x6wa{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-h4x6wa img.svelte-h4x6wa{display:block}.mc-sidebar-user__header__information.svelte-h4x6wa.svelte-h4x6wa{-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-h4x6wa.svelte-h4x6wa{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-h4x6wa.svelte-h4x6wa{font-size:16px;font-weight:bold}.mc-sidebar-user__header__information__title.svelte-h4x6wa.svelte-h4x6wa,.mc-sidebar-user__header__information__identity.svelte-h4x6wa.svelte-h4x6wa{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;max-width:176px}.mc-sidebar-user__icon.svelte-h4x6wa.svelte-h4x6wa{fill:#191919}.mc-sidebar-user__content.svelte-h4x6wa.svelte-h4x6wa{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-h4x6wa.svelte-h4x6wa{height:0;margin:0}.mc-sidebar-user.is-close.svelte-h4x6wa .mc-sidebar-user__header.svelte-h4x6wa{-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-h4x6wa .mc-sidebar-user__header.svelte-h4x6wa{-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-h4x6wa");
|
|
52
|
+
attr(button, "aria-expanded", button_aria_expanded_value = /*$isSidebarOpen*/ ctx[4] && /*isExpanded*/ ctx[3]);
|
|
53
|
+
attr(button, "class", "mc-sidebar-user__header svelte-h4x6wa");
|
|
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-h4x6wa");
|
|
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-h4x6wa")) {
|
|
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-h4x6wa");
|
|
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-h4x6wa");
|
|
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-h4x6wa");
|
|
246
|
+
attr(p, "class", "mc-sidebar-user__header__information svelte-h4x6wa");
|
|
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-h4x6wa");
|
|
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-h4x6wa");
|
|
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-h4x6wa");
|
|
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-h4x6wa");
|
|
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-h4x6wa");
|
|
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 };
|
|
2
734
|
//# sourceMappingURL=sidebar-user.nested.js.map
|