@sula-tech/webcomponents 0.0.0-snapshot-feature-workbench-menu-57f51ec → 0.0.0-snapshot-update-release-workflow-eeeefa9
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sula-avatar_32.cjs.entry.js +176 -99
- package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -1
- package/dist/cjs/sula-profile-menu.cjs.entry.js +1 -1
- package/dist/cjs/sula-profile-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/sula-profile-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/sula-toast-stack.cjs.entry.js +4 -4
- package/dist/cjs/sula-toast.cjs.entry.js +2 -2
- package/dist/cjs/sula-workbench-menu.cjs.entry.js +124 -61
- package/dist/cjs/sula-workbench-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/sula-workbench-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/sula-button/sula-button.css +1 -1
- package/dist/collection/components/sula-calendar/sula-calendar.css +1 -1
- package/dist/collection/components/sula-calendar/sula-calendar.js +56 -17
- package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -1
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js +16 -1
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.css +1 -1
- package/dist/collection/components/sula-chip/sula-chip.js +30 -4
- package/dist/collection/components/sula-chip/sula-chip.js.map +1 -1
- package/dist/collection/components/sula-chip/sula-chip.stories.js +55 -0
- package/dist/collection/components/sula-chip/sula-chip.stories.js.map +1 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.js +3 -3
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.js +1 -1
- package/dist/collection/components/sula-icon-picker/sula-icon-picker.js +2 -2
- package/dist/collection/components/sula-loader/sula-loader.css +1 -1
- package/dist/collection/components/sula-loader/sula-loader.js +1 -1
- package/dist/collection/components/sula-menu/sula-menu.css +1 -1
- package/dist/collection/components/sula-menu/sula-menu.js +13 -13
- package/dist/collection/components/sula-menu/sula-menu.js.map +1 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
- package/dist/collection/components/sula-modal/sula-modal.css +1 -1
- package/dist/collection/components/sula-modal/sula-modal.js +142 -11
- package/dist/collection/components/sula-modal/sula-modal.js.map +1 -1
- package/dist/collection/components/sula-modal/sula-modal.stories.js +48 -0
- package/dist/collection/components/sula-modal/sula-modal.stories.js.map +1 -1
- package/dist/collection/components/sula-profile-menu/sula-profile-menu.css +1 -1
- package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +2 -2
- package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
- package/dist/collection/components/sula-search-bar/sula-search-bar.js +2 -2
- package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +1 -1
- package/dist/collection/components/sula-switch/sula-switch.css +1 -1
- package/dist/collection/components/sula-switch/sula-switch.js +4 -4
- package/dist/collection/components/sula-table/sula-table.js +3 -3
- package/dist/collection/components/sula-table-body/sula-table-body.js +1 -1
- package/dist/collection/components/sula-table-cell/sula-table-cell.js +2 -2
- package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +2 -2
- package/dist/collection/components/sula-table-header/sula-table-header.js +1 -1
- package/dist/collection/components/sula-table-row/sula-table-row.js +1 -1
- package/dist/collection/components/sula-tag/sula-tag.js +3 -3
- package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
- package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
- package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
- package/dist/collection/components/sula-toast/sula-toast.js +2 -2
- package/dist/collection/components/sula-toast-stack/sula-toast-stack.js +4 -4
- package/dist/collection/components/sula-toggle/sula-toggle.js +1 -1
- package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.css +1 -1
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js +138 -74
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js.map +1 -1
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js +218 -99
- package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js.map +1 -1
- package/dist/components/{p-Wd3q-zRy.js → p-1SBJ2JjF.js} +6 -6
- package/dist/components/{p-Wd3q-zRy.js.map → p-1SBJ2JjF.js.map} +1 -1
- package/dist/components/{p-YsuXC_9x.js → p-BD4DLCMm.js} +5 -5
- package/dist/components/{p-YsuXC_9x.js.map → p-BD4DLCMm.js.map} +1 -1
- package/dist/components/{p-DkXdsyPr.js → p-Bdc73E-Z.js} +7 -7
- package/dist/components/{p-DkXdsyPr.js.map → p-Bdc73E-Z.js.map} +1 -1
- package/dist/components/{p-MPkJUrNl.js → p-BlRYoc3b.js} +4 -4
- package/dist/components/{p-MPkJUrNl.js.map → p-BlRYoc3b.js.map} +1 -1
- package/dist/components/{p-B5MmQ8zn.js → p-BrjLS4Oh.js} +5 -5
- package/dist/components/{p-B5MmQ8zn.js.map → p-BrjLS4Oh.js.map} +1 -1
- package/dist/components/{p-CZdy_Df-.js → p-Cktbp7SD.js} +5 -5
- package/dist/components/{p-CZdy_Df-.js.map → p-Cktbp7SD.js.map} +1 -1
- package/dist/components/{p-DpW2KDYm.js → p-DP9qGgPM.js} +4 -4
- package/dist/components/{p-DpW2KDYm.js.map → p-DP9qGgPM.js.map} +1 -1
- package/dist/components/{p-CvpbIDzE.js → p-DTZo84U5.js} +5 -5
- package/dist/components/{p-CvpbIDzE.js.map → p-DTZo84U5.js.map} +1 -1
- package/dist/components/{p-B8AsfKSM.js → p-KIC3LfH4.js} +7 -7
- package/dist/components/{p-B8AsfKSM.js.map → p-KIC3LfH4.js.map} +1 -1
- package/dist/components/{p-DCGHpgTv.js → p-boQwbNNO.js} +5 -5
- package/dist/components/{p-DCGHpgTv.js.map → p-boQwbNNO.js.map} +1 -1
- package/dist/components/sula-avatar.js +1 -1
- package/dist/components/sula-badge.js +1 -1
- package/dist/components/sula-breadcrumb.js +1 -1
- package/dist/components/sula-button.js +1 -1
- package/dist/components/sula-calendar.js +59 -20
- package/dist/components/sula-calendar.js.map +1 -1
- package/dist/components/sula-checkbox.js +1 -1
- package/dist/components/sula-chip.js +15 -7
- package/dist/components/sula-chip.js.map +1 -1
- package/dist/components/sula-dropdown.js +1 -1
- package/dist/components/sula-icon-picker.js +6 -6
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-loader.js +1 -1
- package/dist/components/sula-menu-select-list.js +1 -1
- package/dist/components/sula-menu.js +15 -15
- package/dist/components/sula-menu.js.map +1 -1
- package/dist/components/sula-modal.js +51 -15
- package/dist/components/sula-modal.js.map +1 -1
- package/dist/components/sula-profile-menu.js +1 -1
- package/dist/components/sula-progress-bar.js +3 -3
- package/dist/components/sula-radio-button.js +2 -2
- package/dist/components/sula-search-bar.js +1 -1
- package/dist/components/sula-segmented-control.js +2 -2
- package/dist/components/sula-switch.js +1 -1
- package/dist/components/sula-table-body.js +1 -1
- package/dist/components/sula-table-cell.js +2 -2
- package/dist/components/sula-table-head-cell.js +2 -2
- package/dist/components/sula-table-header.js +1 -1
- package/dist/components/sula-table-row.js +1 -1
- package/dist/components/sula-table.js +3 -3
- package/dist/components/sula-tag.js +4 -4
- package/dist/components/sula-textarea.js +6 -6
- package/dist/components/sula-textfield.js +1 -1
- package/dist/components/sula-tiles.js +2 -2
- package/dist/components/sula-timeline-list.js +2 -2
- package/dist/components/sula-toast-stack.js +6 -6
- package/dist/components/sula-toast.js +1 -1
- package/dist/components/sula-toggle.js +2 -2
- package/dist/components/sula-tooltip.js +2 -2
- package/dist/components/sula-workbench-menu.js +131 -66
- package/dist/components/sula-workbench-menu.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sula-avatar_32.entry.js +176 -99
- package/dist/esm/sula-avatar_32.entry.js.map +1 -1
- package/dist/esm/sula-profile-menu.entry.js +1 -1
- package/dist/esm/sula-profile-menu.entry.js.map +1 -1
- package/dist/esm/sula-toast-stack.entry.js +4 -4
- package/dist/esm/sula-toast.entry.js +2 -2
- package/dist/esm/sula-workbench-menu.entry.js +124 -61
- package/dist/esm/sula-workbench-menu.entry.js.map +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/sula-calendar/sula-calendar.d.ts +9 -3
- package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +1 -0
- package/dist/types/components/sula-chip/sula-chip.d.ts +5 -0
- package/dist/types/components/sula-chip/sula-chip.stories.d.ts +12 -0
- package/dist/types/components/sula-modal/sula-modal.d.ts +21 -0
- package/dist/types/components/sula-modal/sula-modal.stories.d.ts +22 -0
- package/dist/types/components/sula-workbench-menu/sula-workbench-menu.d.ts +18 -9
- package/dist/types/components/sula-workbench-menu/sula-workbench-menu.stories.d.ts +26 -19
- package/dist/types/components.d.ts +79 -23
- package/dist/webcomponents/{p-df271629.entry.js → p-18c84807.entry.js} +6 -6
- package/dist/webcomponents/p-235dcb90.entry.js +880 -0
- package/dist/webcomponents/p-235dcb90.entry.js.map +1 -0
- package/dist/webcomponents/{p-60d2ad8f.entry.js → p-3344a9f9.entry.js} +406 -289
- package/dist/webcomponents/p-3344a9f9.entry.js.map +1 -0
- package/dist/webcomponents/{p-c552c435.entry.js → p-705e2424.entry.js} +16 -16
- package/dist/webcomponents/{p-4251c973.entry.js → p-7e31b463.entry.js} +2 -2
- package/dist/webcomponents/sula-profile-menu.entry.esm.js.map +1 -1
- package/dist/webcomponents/sula-workbench-menu.entry.esm.js.map +1 -1
- package/dist/webcomponents/webcomponents.esm.js +15 -7
- package/package.json +1 -1
- package/dist/webcomponents/p-569d0bad.entry.js +0 -807
- package/dist/webcomponents/p-569d0bad.entry.js.map +0 -1
- package/dist/webcomponents/p-60d2ad8f.entry.js.map +0 -1
- /package/dist/webcomponents/{p-df271629.entry.js.map → p-18c84807.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-c552c435.entry.js.map → p-705e2424.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-4251c973.entry.js.map → p-7e31b463.entry.js.map} +0 -0
|
@@ -0,0 +1,880 @@
|
|
|
1
|
+
import { r as e, c as t, h as i, H as r, a as o } from "./p-BL15Tt3m.js";
|
|
2
|
+
|
|
3
|
+
import { S as a, a as n } from "./p-Cs9RR1ZV.js";
|
|
4
|
+
|
|
5
|
+
const s = '*,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{font-family:Figtree;line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.border{border-width:1px}.outline{outline-style:solid}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host,:host button,:host input,:host option,:host select,:host textarea{font-family:Figtree,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:host{--sula-menu-width:300px;--sula-menu-collapsed-width:88px;--sula-menu-main-item-font-size:1rem;--sula-menu-main-item-line-height:1.25rem;--sula-menu-sub-item-font-size:0.875rem;--sula-menu-main-item-max-lines:2;--sula-menu-main-item-padding-block:0.5rem;display:block;height:100%;overflow:visible;position:relative;transition:width .36s cubic-bezier(.22,1,.36,1);width:var(--sula-menu-width)}:host(.menu-host--density-compact){--sula-menu-main-item-font-size:0.875rem;--sula-menu-main-item-line-height:1.125rem;--sula-menu-sub-item-font-size:0.8125rem;--sula-menu-main-item-padding-block:0.375rem}:host(.menu-host--density-comfortable){--sula-menu-main-item-font-size:1.0625rem;--sula-menu-main-item-line-height:1.5rem;--sula-menu-sub-item-font-size:1rem;--sula-menu-main-item-padding-block:0.625rem}:host(.menu-host--collapsed){width:var(--sula-menu-collapsed-width)}.menu-shell{min-height:100%;overflow:hidden;padding:20px 0 12px;position:relative;transition:padding .36s cubic-bezier(.22,1,.36,1),width .36s cubic-bezier(.22,1,.36,1),transform .36s cubic-bezier(.22,1,.36,1),box-shadow .36s cubic-bezier(.22,1,.36,1),border-radius .28s cubic-bezier(.4,0,.2,1),background-color .22s cubic-bezier(.4,0,.2,1);width:100%}.menu-shell--expanded{box-shadow:0 10px 24px rgba(15,23,42,.08),0 2px 8px rgba(15,23,42,.06);padding:20px 24px 12px;width:var(--sula-menu-width)}.menu-shell--collapsed{box-shadow:0 8px 18px rgba(15,23,42,.06),0 1px 4px rgba(15,23,42,.04)}.menu-shell--preview{border-radius:0 24px 24px 0;bottom:0;box-shadow:0 28px 60px rgba(15,23,42,.18),0 10px 24px rgba(15,23,42,.12);left:0;position:absolute;top:0;width:var(--sula-menu-width);z-index:2}.menu-header{gap:0;transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-group+.menu-group{margin-top:8px}.submenu>li{padding-block:4px}.submenu>li.is-selected{position:relative}.submenu>li.is-selected:before{background:var(--color-brand-primary,#f05223);border-radius:8px;bottom:0;content:"";left:-14px;position:absolute;top:0;width:3px}.submenu-branch>li.is-selected:before{left:-34px}.menu-toggle{background:var(--color-surface-body,#fff);border:1px solid var(--color-line-general,#e5e6e6);border-radius:999px;color:var(--color-icon-primary,#6c6e6e);cursor:pointer;height:32px;margin-left:auto;padding:0;transition:color .16s cubic-bezier(.4,0,.2,1),border-color .16s cubic-bezier(.4,0,.2,1),background-color .16s cubic-bezier(.4,0,.2,1);width:32px}.menu-toggle:hover{border-color:var(--color-brand-primary,#f05223);color:var(--color-brand-primary,#f05223)}.menu-toggle:focus-visible{outline:2px solid var(--color-states-bg-focus,#1355b4);outline-offset:2px}.menu-shell--collapsed .menu-toggle{margin:16px 0 0}.menu-shell--collapsed .menu-item{margin-inline:0;padding-block:10px}.menu-shell--collapsed .item-icon{height:20px;width:20px}.menu-shell--collapsed .item-icon i{font-size:20px}.menu-shell--expanded .user-info{margin-inline:0}.user-info--card .user-avatar{height:44px;width:44px}.user-info--card.user-info--active,.user-info--card:hover{box-shadow:inset 0 0 0 999px rgba(25,29,29,.05)}.user-info--card:active{box-shadow:inset 0 0 0 999px rgba(25,29,29,.11)}.menu-shell--collapsed .menu-footer{padding-inline:18px}.menu-shell--collapsed .menu-nav{scrollbar-width:none}.menu-shell--collapsed .menu-nav::-webkit-scrollbar{display:none}.menu-copy--hidden.menu-item-label--wrap{white-space:nowrap}.menu-nav{padding-bottom:16px;scrollbar-color:var(--color-line-general-strong,#bfc0c0) transparent;scrollbar-width:thin;transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-shell--expanded .menu-nav{margin-inline:-24px;padding-left:24px;padding-right:18px;scrollbar-gutter:stable}.menu-nav::-webkit-scrollbar{width:6px}.menu-nav::-webkit-scrollbar-track{background:transparent}.menu-nav::-webkit-scrollbar-thumb{background:var(--color-line-general-strong,#bfc0c0);border-radius:999px}.menu-nav::-webkit-scrollbar-thumb:hover{background:var(--color-text-disabled,#949595)}.item-icon{height:16px;width:16px}.menu-nav .menu-item,.menu-nav .menu-item>div,.menu-nav .submenu-item,.menu-nav .submenu-item-branch-caret,.menu-nav .submenu-item-branch-content{align-items:flex-start}.submenu-item .submenu-item-label{font-size:var(--sula-menu-sub-item-font-size);line-height:1.25rem}.menu-nav .item-icon,.menu-nav .menu-item-caret,.menu-nav .submenu-item-branch-caret{height:1.25rem}.menu-shell--expanded .menu-item .item-icon{width:18px}.menu-shell--expanded .menu-item .item-icon i{font-size:18px}.menu-footer{transition:padding .36s cubic-bezier(.22,1,.36,1)}.menu-brand-image{flex:0 0 auto;transition:margin .32s cubic-bezier(.22,1,.36,1),transform .32s cubic-bezier(.22,1,.36,1)}.menu-copy{display:block;max-width:220px;min-width:0;opacity:1;overflow:hidden;transform:translateX(0);transform-origin:left center;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1),transform .32s cubic-bezier(.22,1,.36,1);white-space:nowrap}.menu-copy--visible{max-width:100%;opacity:1;pointer-events:auto;transform:translateX(0)}.menu-copy--hidden{max-width:0;opacity:0;pointer-events:none;transform:translateX(-10px)}.menu-title{flex:1 1 auto;min-width:0}.menu-title.menu-copy--visible{max-width:100%}.menu-item-label{flex:1 1 auto;font-size:var(--sula-menu-main-item-font-size);line-height:var(--sula-menu-main-item-line-height)}.menu-item-label--truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-item-label--wrap{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sula-menu-main-item-max-lines);line-clamp:var(--sula-menu-main-item-max-lines);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;word-break:break-word}.menu-item{margin-inline:-8px;padding-block:var(--sula-menu-main-item-padding-block);transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),border-color .24s cubic-bezier(.22,1,.36,1),margin-left .24s cubic-bezier(.22,1,.36,1),padding .32s cubic-bezier(.22,1,.36,1)}.menu-item-caret{max-width:16px;opacity:1;overflow:hidden;transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .18s cubic-bezier(.4,0,.2,1),max-width .28s cubic-bezier(.22,1,.36,1),margin-left .28s cubic-bezier(.22,1,.36,1)}.menu-item-caret--visible{margin-left:12px;max-width:16px;opacity:1}.menu-item-caret--hidden{margin-left:0;max-width:0;opacity:0;transform:translateX(-8px)}.menu-item-caret--expanded{transform:rotate(180deg)}.submenu{max-height:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateY(-6px);transform-origin:top left;transition:max-height .26s cubic-bezier(.22,1,.36,1),opacity .12s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.22,1,.36,1);will-change:max-height,opacity,transform}.submenu--expanded{max-height:999px;opacity:1;pointer-events:auto;transform:translateY(0)}.submenu-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.22,1,.36,1)}.submenu-item--branch{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),border-color .24s cubic-bezier(.22,1,.36,1),margin-left .24s cubic-bezier(.22,1,.36,1)}.submenu-item-branch-content{min-width:0}.submenu-branch{transform-origin:top left}.submenu-grandchild-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .24s cubic-bezier(.22,1,.36,1)}.submenu-grandchild-label{display:block}.menu-header--drilldown{animation:drill-header-forward .38s cubic-bezier(.22,1,.36,1);gap:24px;margin-bottom:32px}.drill-toolbar{padding:0}.menu-header--drilldown .menu-toggle{margin-left:0}.back-btn,.menu-header--drilldown .menu-toggle{background:transparent;border:none;height:24px;width:24px}.back-btn{align-items:center;border-radius:8px;cursor:pointer;display:flex;flex:none;justify-content:center;padding:0;transition:background-color .16s cubic-bezier(.4,0,.2,1)}.back-btn:hover{background:var(--color-surface-on-body,#f3f4f4)}.breadcrumb-row{align-items:center;display:flex;min-width:0;position:relative}.crumb-trail{flex:1 1 auto;gap:2px;min-width:0}.crumb-btn{background:transparent;border:none;border-radius:6px;color:var(--color-text-secondary,#6c6e6e);cursor:pointer;flex:0 1 auto;font:inherit;font-size:12px;font-weight:500;max-width:120px;min-width:28px;overflow:hidden;padding:3px 4px;text-align:left;text-overflow:ellipsis;transition:background-color .16s cubic-bezier(.4,0,.2,1),color .16s cubic-bezier(.4,0,.2,1);white-space:nowrap}.crumb-btn:hover{background:var(--color-surface-on-body,#f3f4f4);color:var(--color-text-primary,#313333)}.crumb-btn--ellipsis{align-items:center;display:flex;flex:none;max-width:none;padding:3px 5px}.crumb-sep{color:var(--color-text-disabled,#949595);flex:none}.crumb-dropdown{background:var(--color-surface-body,#fff);border:1px solid var(--color-line-general,#e5e6e6);border-radius:10px;box-shadow:0 14px 32px rgba(15,23,42,.16);box-sizing:border-box;display:flex;flex-direction:column;gap:1px;max-width:min(230px,100%);min-width:172px;padding:6px;position:absolute;z-index:30}.crumb-dropdown-item{align-items:center;background:transparent;border:none;border-radius:6px;color:var(--color-text-primary,#313333);cursor:pointer;display:flex;font:inherit;font-size:13px;gap:8px;overflow:hidden;padding:7px 8px;text-align:left;white-space:nowrap}.crumb-dropdown-item:hover{background:var(--color-surface-on-body,#f3f4f4)}.context-row{min-width:0}.context-icon{height:24px;margin-right:8px;width:24px}.context-title{-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;font-size:22px;font-weight:700;line-height:26px;min-width:0;overflow:hidden;overflow-wrap:anywhere}.menu-panel .menu-item>sula-icon{align-items:center;height:var(--sula-menu-main-item-line-height);margin-left:8px}.menu-shell--drilled{padding-left:48px}.menu-shell--drilled .menu-nav{margin-left:-48px;padding-left:48px}.drill-layers{inset:0 auto 0 0;pointer-events:none;position:absolute}.drill-layer{animation:drill-layer-in .48s cubic-bezier(.22,1,.36,1);background:var(--color-surface-body,#fff);bottom:0;box-shadow:0 4px 20px var(--color-line-general,#e5e6e6);left:0;position:absolute;top:0}@keyframes drill-layer-in{0%{opacity:0;transform:translateX(160px)}to{opacity:1;transform:translateX(0)}}.menu-panel--forward>li{animation:drill-slide-forward .42s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--row-index, 0)*35ms)}.menu-panel--back>li{animation:drill-slide-back .42s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--row-index, 0)*35ms)}.menu-header--drilldown.menu-header--back{animation-name:drill-header-back}@keyframes drill-header-forward{0%{opacity:0;transform:translateX(32px)}to{opacity:1;transform:translateX(0)}}@keyframes drill-header-back{0%{opacity:0;transform:translateX(-32px)}to{opacity:1;transform:translateX(0)}}@keyframes drill-slide-forward{0%{opacity:0;transform:translateX(56px)}to{opacity:1;transform:translateX(0)}}@keyframes drill-slide-back{0%{opacity:0;transform:translateX(-56px)}to{opacity:1;transform:translateX(0)}}sula-icon{align-items:center;display:inline-flex;flex:none;justify-content:center;line-height:1}sula-icon>i{display:block;line-height:1}.item-icon>.menu-item-image,.item-icon>sula-icon{flex:none}.menu-item-image{display:block;flex:none;-o-object-fit:contain;object-fit:contain;transition:opacity .2s cubic-bezier(.4,0,.2,1)}.menu-item-image--sm{height:.875rem;width:.875rem}.menu-item-image--md{height:1rem;width:1rem}.menu-item-image--lg{height:1.25rem;width:1.25rem}.menu-item-image.is-faded{opacity:.5}.item-icon>.menu-item-image{aspect-ratio:1/1;height:auto;width:100%}.menu-item-image--mask{background-color:currentColor;-webkit-mask:var(--menu-item-image) center/contain no-repeat;mask:var(--menu-item-image) center/contain no-repeat}.user-copy{display:flex;flex-direction:column;min-width:0;overflow:hidden;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1)}.user-copy--visible{max-width:100%;opacity:1;transition:max-width .32s cubic-bezier(.22,1,.36,1),opacity .2s cubic-bezier(.4,0,.2,1) .12s}.user-copy--hidden{max-width:0;opacity:0}.user-avatar img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.profile-origin{height:0;pointer-events:none;width:0}.profile-origin,.profile-popover{left:0;position:fixed;top:0;visibility:hidden}.profile-popover{background:var(--color-surface-body);border:1px solid var(--color-line-general);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.12),0 2px 8px rgba(15,23,42,.06);box-sizing:border-box;opacity:0;outline:none;transform:translateY(6px) scale(.98);transform-origin:bottom left;transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.22,1,.36,1),visibility 0s linear .2s;width:256px;z-index:60}.profile-popover--side{transform:translateX(-6px) scale(.98)}.profile-popover--open{opacity:1;transform:none;transition:opacity .16s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.22,1,.36,1);visibility:visible}@media (prefers-reduced-motion:reduce){.drill-layer,.menu-brand-image,.menu-copy,.menu-footer,.menu-header,.menu-header--drilldown,.menu-item,.menu-item-caret,.menu-nav,.menu-panel--back,.menu-panel--back>li,.menu-panel--forward,.menu-panel--forward>li,.menu-shell,.menu-toggle,.submenu,.submenu-item,:host{animation:none}.menu-item-caret,.profile-popover,.submenu-grandchild-item,.submenu-item{transition:none}}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Light.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-LightItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Regular.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Italic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Medium.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-MediumItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Bold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Black.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BlackItalic.ttf) format("truetype")}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#012b15;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#330d00;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#402705;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#401204;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#402301;--color-gray-50:#fff;--color-gray-100:#f3f4f4;--color-gray-200:#e5e6e6;--color-gray-300:#bfc0c0;--color-gray-400:#acaeae;--color-gray-500:#949595;--color-gray-600:#737575;--color-gray-700:#6c6e6e;--color-gray-800:#313333;--color-gray-900:#272929;--color-gray-950:#191d1d;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#071e40;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:rgba(25,29,29,.02);--color-black-opacity-100:rgba(25,29,29,.05);--color-black-opacity-200:rgba(25,29,29,.11);--color-black-opacity-300:rgba(25,29,29,.28);--color-black-opacity-400:rgba(25,29,29,.36);--color-black-opacity-500:rgba(25,29,29,.44);--color-black-opacity-600:rgba(25,29,29,.62);--color-black-opacity-700:rgba(25,29,29,.64);--color-black-opacity-800:rgba(25,29,29,.72);--color-black-opacity-900:rgba(25,29,29,.8);--color-black-opacity-950:rgba(25,29,29,.96);--color-shadow-opacity-50:rgba(0,0,0,.04);--color-shadow-opacity-100:rgba(0,0,0,.06);--color-shadow-opacity-200:rgba(0,0,0,.12);--color-shadow-opacity-300:rgba(0,0,0,.2);--color-shadow-opacity-400:rgba(0,0,0,.32);--color-shadow-opacity-500:rgba(0,0,0,.5);--color-shadow-opacity-600:rgba(0,0,0,.55);--color-shadow-opacity-700:rgba(0,0,0,.64);--color-shadow-opacity-800:rgba(0,0,0,.73);--color-shadow-opacity-900:rgba(0,0,0,.8);--color-shadow-opacity-950:rgba(0,0,0,.91);--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f3f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#313333;--color-text-secondary:#6c6e6e;--color-text-disabled:#949595;--color-text-link:#1355b4;--color-states-empty-bg-hover:rgba(25,29,29,.05);--color-states-empty-bg-pressed:rgba(25,29,29,.11);--color-states-bg-disabled:rgba(25,29,29,.02);--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e5e6e6;--color-states-negative-pressed:#bfc0c0;--color-icon-primary:#6c6e6e;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#acaeae;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f3f4f4;--color-neutral-neutral-3:#acaeae;--color-neutral-neutral-4:#949595;--color-neutral-neutral-5:#737575;--color-neutral-neutral-6:#6c6e6e;--color-neutral-neutral-7:#313333;--color-neutral-neutral-8:#272929;--color-negative-negative-1:#fff;--color-negative-negative-2:#313333;--color-opacity-body:#fffc;--color-opacity-on-body:rgba(25,29,29,.02);--color-opacity-overlay:rgba(25,29,29,.62);--color-opacity-on-overlay:#ffffff1a;--color-opacity-toast:#ffffff45;--color-line-input:#949595;--color-line-general-strong:#bfc0c0;--color-line-general:#e5e6e6;--color-line-hair:rgba(25,29,29,.05);--color-box-shadow-body:#fff;--color-box-shadow-shadow-color-1:rgba(0,0,0,.04);--color-box-shadow-shadow-color-2:rgba(0,0,0,.06)}.\\!visible{visibility:visible!important}.static{position:static}.z-50{z-index:50}.mb-24{margin-bottom:1.5rem}.mb-40{margin-bottom:2.5rem}.ml-8{margin-left:.5rem}.ml-\\[20px\\]{margin-left:20px}.ml-\\[8px\\]{margin-left:8px}.mr-6{margin-right:1.5rem}.inline{display:inline}.h-9{height:2.25rem}.h-full{height:100%}.max-h-10{max-height:2.5rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-10{max-width:2.5rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{user-select:none}.resize{resize:both}.list-none{list-style-type:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-16{gap:1rem}.gap-8{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:1.25rem}.rounded-xs{border-radius:.5rem}.border-l{border-left-width:1px}.border-line-general{border-color:var(--color-line-general)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-states-empty-bg-hover{background-color:var(--color-states-empty-bg-hover)}.bg-states-empty-bg-pressed{background-color:var(--color-states-empty-bg-pressed)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.p-16{padding:1rem}.p-8{padding:.5rem}.px-0{padding-left:0;padding-right:0}.px-12{padding-left:.75rem;padding-right:.75rem}.px-8{padding-left:.5rem;padding-right:.5rem}.py-8{padding-bottom:.5rem;padding-top:.5rem}.pl-12{padding-left:.75rem}.pl-8{padding-left:.5rem}.pr-8{padding-right:.5rem}.pt-12{padding-top:.75rem}.text-left{text-align:left}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-7{line-height:1.75rem}.text-brand-primary{color:var(--color-brand-primary)}.text-icon-disabled{color:var(--color-icon-disabled)}.text-icon-primary{color:var(--color-icon-primary)}.text-negative-negative-1{color:var(--color-negative-negative-1)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.active\\:bg-states-empty-bg-pressed:active{background-color:var(--color-states-empty-bg-pressed)}';
|
|
6
|
+
|
|
7
|
+
const l = class {
|
|
8
|
+
constructor(i) {
|
|
9
|
+
e(this, i);
|
|
10
|
+
this.itemSelected = t(this, "itemSelected");
|
|
11
|
+
this.itemClicked = t(this, "itemClicked");
|
|
12
|
+
this.levelChanged = t(this, "levelChanged");
|
|
13
|
+
this.profileClicked = t(this, "profileClicked");
|
|
14
|
+
this.profileItemClicked = t(this, "profileItemClicked");
|
|
15
|
+
this.profileSwitchChanged = t(this, "profileSwitchChanged");
|
|
16
|
+
this.menuToggled = t(this, "menuToggled");
|
|
17
|
+
/**
|
|
18
|
+
* Menu title
|
|
19
|
+
*/ this.menuTitle = "";
|
|
20
|
+
/**
|
|
21
|
+
* Menu image
|
|
22
|
+
*/ this.image = "";
|
|
23
|
+
/**
|
|
24
|
+
* Menu width in expanded state. Use a CSS length that does not depend on the
|
|
25
|
+
* host width, for example: 256px, 20rem or clamp(16rem, 25vw, 24rem).
|
|
26
|
+
*/ this.width = "";
|
|
27
|
+
/**
|
|
28
|
+
* Density applied to menu items.
|
|
29
|
+
*/ this.density = a.Default;
|
|
30
|
+
/**
|
|
31
|
+
* Overflow behavior for item labels.
|
|
32
|
+
*/ this.labelOverflow = n.Wrap;
|
|
33
|
+
/**
|
|
34
|
+
* Menu items. Each item may use `icon` (icon font class) or `image` (URL or data URI of an image or SVG).
|
|
35
|
+
*/ this.items = [];
|
|
36
|
+
/**
|
|
37
|
+
* Icon used for items without `icon` or `image`. Use an empty string to show no icon.
|
|
38
|
+
*/ this.defaultIcon = "ph ph-dot-outline";
|
|
39
|
+
/**
|
|
40
|
+
* Options of the profile popover. Use `divider` for a separator and `hasSwitch` + `active` for a toggle row.
|
|
41
|
+
*/ this.profileItems = [];
|
|
42
|
+
this.collapsed = false;
|
|
43
|
+
this.previewExpanded = false;
|
|
44
|
+
this.drillMode = false;
|
|
45
|
+
this.stack = [];
|
|
46
|
+
this.direction = "forward";
|
|
47
|
+
this.selectedPath = [];
|
|
48
|
+
this.crumbMenu = {
|
|
49
|
+
open: false,
|
|
50
|
+
left: 0,
|
|
51
|
+
top: 0
|
|
52
|
+
};
|
|
53
|
+
this.profileOpen = false;
|
|
54
|
+
this.hovering = false;
|
|
55
|
+
}
|
|
56
|
+
get normalizedWidth() {
|
|
57
|
+
var e;
|
|
58
|
+
const t = (e = this.width) === null || e === void 0 ? void 0 : e.trim();
|
|
59
|
+
return t ? t : undefined;
|
|
60
|
+
}
|
|
61
|
+
get hostStyleVariables() {
|
|
62
|
+
return Object.assign({}, this.normalizedWidth ? {
|
|
63
|
+
"--sula-menu-width": this.normalizedWidth
|
|
64
|
+
} : {});
|
|
65
|
+
}
|
|
66
|
+
componentWillLoad() {
|
|
67
|
+
this.syncWithItems(this.items);
|
|
68
|
+
}
|
|
69
|
+
syncWithItems(e) {
|
|
70
|
+
this.drillMode = this.maxDepth(e) > 3;
|
|
71
|
+
const t = this.findSelectedIds(e);
|
|
72
|
+
if (t) {
|
|
73
|
+
this.selectedPath = t;
|
|
74
|
+
} else if (!this.selectedPath.length || !this.isStillSelectable(e, this.selectedPath)) {
|
|
75
|
+
this.selectedPath = [];
|
|
76
|
+
}
|
|
77
|
+
this.stack = this.drillMode ? this.rebuildStack(e, this.stack) : [];
|
|
78
|
+
if (this.drillPath && (this.drillMode || this.drillPath !== this.expandedPath)) this.applyDrillPath(this.drillPath);
|
|
79
|
+
}
|
|
80
|
+
syncDrillPath(e) {
|
|
81
|
+
if (e) this.applyDrillPath(e);
|
|
82
|
+
}
|
|
83
|
+
applyDrillPath(e) {
|
|
84
|
+
var t;
|
|
85
|
+
if (!this.drillMode) {
|
|
86
|
+
this.expandInline(e);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const i = [];
|
|
90
|
+
let r = this.items;
|
|
91
|
+
for (const o of e) {
|
|
92
|
+
const e = this.getVisibleItems(r).find((e => e.id === o));
|
|
93
|
+
if (!e) break;
|
|
94
|
+
i.push(e);
|
|
95
|
+
r = (t = e.children) !== null && t !== void 0 ? t : [];
|
|
96
|
+
}
|
|
97
|
+
const o = i.length === this.stack.length && i.every(((e, t) => e.id === this.stack[t].id));
|
|
98
|
+
if (o) return;
|
|
99
|
+
this.direction = i.length < this.stack.length ? "back" : "forward";
|
|
100
|
+
this.stack = i;
|
|
101
|
+
}
|
|
102
|
+
expandInline(e) {
|
|
103
|
+
var t;
|
|
104
|
+
if (!this.items.length) return;
|
|
105
|
+
this.expandedPath = e;
|
|
106
|
+
const i = [];
|
|
107
|
+
let r = this.items;
|
|
108
|
+
for (const o of e) {
|
|
109
|
+
const e = this.getVisibleItems(r).find((e => e.id === o));
|
|
110
|
+
if (!e) break;
|
|
111
|
+
if (!e.expanded && this.hasVisibleChildren(e)) i.push(o);
|
|
112
|
+
r = (t = e.children) !== null && t !== void 0 ? t : [];
|
|
113
|
+
}
|
|
114
|
+
if (i.length) this.items = this.markExpanded(this.items, i);
|
|
115
|
+
}
|
|
116
|
+
markExpanded(e, t) {
|
|
117
|
+
return e.map((e => Object.assign(Object.assign(Object.assign({}, e), t.includes(e.id) ? {
|
|
118
|
+
expanded: true
|
|
119
|
+
} : {}), e.children ? {
|
|
120
|
+
children: this.markExpanded(e.children, t)
|
|
121
|
+
} : {})));
|
|
122
|
+
}
|
|
123
|
+
maxDepth(e) {
|
|
124
|
+
const t = this.getVisibleItems(e);
|
|
125
|
+
if (!t.length) return 0;
|
|
126
|
+
return 1 + Math.max(...t.map((e => this.maxDepth(e.children))));
|
|
127
|
+
}
|
|
128
|
+
componentDidRender() {
|
|
129
|
+
this.positionProfile();
|
|
130
|
+
}
|
|
131
|
+
onDocumentClick(e) {
|
|
132
|
+
const t = e.composedPath();
|
|
133
|
+
if (this.profileOpen && !t.includes(this.profileEl) && !t.includes(this.userInfoEl)) this.closeProfile();
|
|
134
|
+
if (!this.crumbMenu.open) return;
|
|
135
|
+
if (t.includes(this.crumbEllipsisEl) || t.includes(this.crumbDropdownEl)) return;
|
|
136
|
+
this.closeCrumbMenu();
|
|
137
|
+
}
|
|
138
|
+
onDocumentKeydown(e) {
|
|
139
|
+
var t;
|
|
140
|
+
if (e.key !== "Escape") return;
|
|
141
|
+
this.closeCrumbMenu();
|
|
142
|
+
if (this.profileOpen) {
|
|
143
|
+
this.closeProfile();
|
|
144
|
+
(t = this.userInfoEl) === null || t === void 0 ? void 0 : t.focus();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
onWindowResize() {
|
|
148
|
+
this.positionProfile();
|
|
149
|
+
}
|
|
150
|
+
getVisibleItems(e) {
|
|
151
|
+
var t;
|
|
152
|
+
return (t = e === null || e === void 0 ? void 0 : e.filter((e => !e.hidden))) !== null && t !== void 0 ? t : [];
|
|
153
|
+
}
|
|
154
|
+
hasVisibleChildren(e) {
|
|
155
|
+
return this.getVisibleItems(e.children).length > 0;
|
|
156
|
+
}
|
|
157
|
+
isDrilled() {
|
|
158
|
+
return this.drillMode && this.stack.length > 0;
|
|
159
|
+
}
|
|
160
|
+
findSelectedIds(e, t = []) {
|
|
161
|
+
for (const i of this.getVisibleItems(e)) {
|
|
162
|
+
if (!this.hasVisibleChildren(i)) {
|
|
163
|
+
if (i.selected) return [ ...t, i.id ];
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
const e = this.findSelectedIds(i.children, [ ...t, i.id ]);
|
|
167
|
+
if (e) return e;
|
|
168
|
+
}
|
|
169
|
+
return undefined;
|
|
170
|
+
}
|
|
171
|
+
isStillSelectable(e, t) {
|
|
172
|
+
const i = this.findPath(e, t[t.length - 1]);
|
|
173
|
+
return !!i && !this.hasVisibleChildren(i[i.length - 1]);
|
|
174
|
+
}
|
|
175
|
+
toggleExpanded(e, t) {
|
|
176
|
+
return e.map((e => {
|
|
177
|
+
if (e.id === t) return Object.assign(Object.assign({}, e), {
|
|
178
|
+
expanded: !e.expanded
|
|
179
|
+
});
|
|
180
|
+
if (!e.children) return e;
|
|
181
|
+
return Object.assign(Object.assign({}, e), {
|
|
182
|
+
children: this.toggleExpanded(e.children, t)
|
|
183
|
+
});
|
|
184
|
+
}));
|
|
185
|
+
}
|
|
186
|
+
findPath(e, t, i = []) {
|
|
187
|
+
var r;
|
|
188
|
+
for (const o of this.getVisibleItems(e)) {
|
|
189
|
+
const e = [ ...i, o ];
|
|
190
|
+
if (o.id === t) return e;
|
|
191
|
+
const a = this.findPath((r = o.children) !== null && r !== void 0 ? r : [], t, e);
|
|
192
|
+
if (a) return a;
|
|
193
|
+
}
|
|
194
|
+
return undefined;
|
|
195
|
+
}
|
|
196
|
+
rebuildStack(e, t) {
|
|
197
|
+
var i;
|
|
198
|
+
const r = [];
|
|
199
|
+
let o = e;
|
|
200
|
+
for (const e of t) {
|
|
201
|
+
const t = this.getVisibleItems(o).find((t => t.id === e.id));
|
|
202
|
+
if (!t) break;
|
|
203
|
+
r.push(t);
|
|
204
|
+
o = (i = t.children) !== null && i !== void 0 ? i : [];
|
|
205
|
+
}
|
|
206
|
+
return r;
|
|
207
|
+
}
|
|
208
|
+
isActive(e, t) {
|
|
209
|
+
if (t) return this.selectedPath.includes(e.id);
|
|
210
|
+
return this.selectedPath.length > 0 && this.selectedPath[this.selectedPath.length - 1] === e.id;
|
|
211
|
+
}
|
|
212
|
+
isFaded(e, t) {
|
|
213
|
+
return !!e.disabled && !t;
|
|
214
|
+
}
|
|
215
|
+
emitLevel() {
|
|
216
|
+
this.levelChanged.emit(this.stack.map((e => e.id)));
|
|
217
|
+
}
|
|
218
|
+
toggleInline(e) {
|
|
219
|
+
this.items = this.toggleExpanded(this.items, e);
|
|
220
|
+
}
|
|
221
|
+
enterDrill(e) {
|
|
222
|
+
var t;
|
|
223
|
+
const i = (t = this.findPath(this.items, e.id)) !== null && t !== void 0 ? t : [ e ];
|
|
224
|
+
this.direction = "forward";
|
|
225
|
+
this.stack = i;
|
|
226
|
+
this.closeCrumbMenu();
|
|
227
|
+
this.emitLevel();
|
|
228
|
+
}
|
|
229
|
+
markSelected(e, t) {
|
|
230
|
+
return e.map((e => Object.assign(Object.assign(Object.assign({}, e), {
|
|
231
|
+
selected: e.id === t
|
|
232
|
+
}), e.children ? {
|
|
233
|
+
children: this.markSelected(e.children, t)
|
|
234
|
+
} : {})));
|
|
235
|
+
}
|
|
236
|
+
// Selection lives on the items (like `expanded`), so re-assigning items when a branch is
|
|
237
|
+
// toggled keeps the user's choice instead of falling back to the initially selected item.
|
|
238
|
+
selectItem(e) {
|
|
239
|
+
var t;
|
|
240
|
+
const i = (t = this.findPath(this.items, e.id)) !== null && t !== void 0 ? t : [ e ];
|
|
241
|
+
this.items = this.markSelected(this.items, e.id);
|
|
242
|
+
this.selectedPath = i.map((e => e.id));
|
|
243
|
+
this.itemSelected.emit(e);
|
|
244
|
+
}
|
|
245
|
+
handleRowClick(e) {
|
|
246
|
+
if (e.disabled) return;
|
|
247
|
+
this.itemClicked.emit(e);
|
|
248
|
+
if (this.hasVisibleChildren(e)) {
|
|
249
|
+
if (this.drillMode) {
|
|
250
|
+
this.enterDrill(e);
|
|
251
|
+
} else {
|
|
252
|
+
this.toggleInline(e.id);
|
|
253
|
+
}
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
this.selectItem(e);
|
|
257
|
+
}
|
|
258
|
+
goToDepth(e) {
|
|
259
|
+
this.direction = "back";
|
|
260
|
+
this.stack = e < 0 ? [] : this.stack.slice(0, e + 1);
|
|
261
|
+
this.closeCrumbMenu();
|
|
262
|
+
this.emitLevel();
|
|
263
|
+
}
|
|
264
|
+
toggleCrumbMenu(e) {
|
|
265
|
+
if (this.crumbMenu.open) {
|
|
266
|
+
this.closeCrumbMenu();
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
const t = e.currentTarget;
|
|
270
|
+
this.crumbMenu = {
|
|
271
|
+
open: true,
|
|
272
|
+
left: 0,
|
|
273
|
+
top: t.offsetTop + t.offsetHeight + 6
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
closeCrumbMenu() {
|
|
277
|
+
if (this.crumbMenu.open) this.crumbMenu = Object.assign(Object.assign({}, this.crumbMenu), {
|
|
278
|
+
open: false
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
toggleMenu() {
|
|
282
|
+
this.closeProfile();
|
|
283
|
+
if (this.collapsed) {
|
|
284
|
+
this.collapsed = false;
|
|
285
|
+
this.previewExpanded = false;
|
|
286
|
+
this.menuToggled.emit(true);
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
this.collapsed = true;
|
|
290
|
+
this.menuToggled.emit(false);
|
|
291
|
+
this.previewExpanded = false;
|
|
292
|
+
}
|
|
293
|
+
handleMenuMouseEnter() {
|
|
294
|
+
this.hovering = true;
|
|
295
|
+
if (this.collapsed) this.previewExpanded = true;
|
|
296
|
+
}
|
|
297
|
+
// While the popover is open the preview stays expanded, so the popover keeps its anchor.
|
|
298
|
+
handleMenuMouseLeave() {
|
|
299
|
+
this.hovering = false;
|
|
300
|
+
if (this.collapsed && !this.profileOpen) this.previewExpanded = false;
|
|
301
|
+
}
|
|
302
|
+
toggleProfile() {
|
|
303
|
+
if (this.profileOpen) {
|
|
304
|
+
this.closeProfile();
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
if (this.profileClicked.emit(this.user).defaultPrevented) return;
|
|
308
|
+
this.profileOpen = true;
|
|
309
|
+
requestAnimationFrame((() => {
|
|
310
|
+
var e;
|
|
311
|
+
return (e = this.profileEl) === null || e === void 0 ? void 0 : e.focus();
|
|
312
|
+
}));
|
|
313
|
+
}
|
|
314
|
+
closeProfile() {
|
|
315
|
+
if (!this.profileOpen) return;
|
|
316
|
+
this.profileOpen = false;
|
|
317
|
+
if (this.collapsed && !this.hovering) this.previewExpanded = false;
|
|
318
|
+
}
|
|
319
|
+
// Fixed position, so ancestors with overflow hidden do not clip the popover. A transformed ancestor
|
|
320
|
+
// (e.g. the Storybook docs canvas) becomes the containing block, so coordinates are made relative to its origin.
|
|
321
|
+
positionProfile() {
|
|
322
|
+
var e, t;
|
|
323
|
+
if (!this.profileOpen || !this.profileEl || !this.userInfoEl || !this.shellEl) return;
|
|
324
|
+
const i = 8;
|
|
325
|
+
const r = 12;
|
|
326
|
+
const o = this.userInfoEl.getBoundingClientRect();
|
|
327
|
+
const a = this.shellEl.getBoundingClientRect();
|
|
328
|
+
const n = (t = (e = this.profileOriginEl) === null || e === void 0 ? void 0 : e.getBoundingClientRect()) !== null && t !== void 0 ? t : {
|
|
329
|
+
left: 0,
|
|
330
|
+
top: 0
|
|
331
|
+
};
|
|
332
|
+
const s = this.profileEl.style;
|
|
333
|
+
const l = !this.collapsed || this.previewExpanded;
|
|
334
|
+
s.width = l ? `${a.width - r * 2}px` : "";
|
|
335
|
+
const c = this.profileEl.offsetHeight;
|
|
336
|
+
const d = l ? a.left + r : a.right + i;
|
|
337
|
+
const u = l ? o.top - i : o.bottom;
|
|
338
|
+
s.bottom = "auto";
|
|
339
|
+
s.left = `${d - n.left}px`;
|
|
340
|
+
s.top = `${u - c - n.top}px`;
|
|
341
|
+
}
|
|
342
|
+
// Inner events are composed; stopping them avoids clashing with this menu's own itemClicked.
|
|
343
|
+
handleProfileItemClicked(e) {
|
|
344
|
+
e.stopPropagation();
|
|
345
|
+
this.closeProfile();
|
|
346
|
+
this.profileItemClicked.emit(e.detail);
|
|
347
|
+
}
|
|
348
|
+
handleProfileSwitchChanged(e) {
|
|
349
|
+
e.stopPropagation();
|
|
350
|
+
const {item: t} = e.detail;
|
|
351
|
+
this.profileItems = this.profileItems.map((e => e.id === t.id ? t : e));
|
|
352
|
+
this.profileSwitchChanged.emit(e.detail);
|
|
353
|
+
}
|
|
354
|
+
renderProfilePopover(e) {
|
|
355
|
+
return i("div", {
|
|
356
|
+
part: "profile-popover",
|
|
357
|
+
role: "dialog",
|
|
358
|
+
"aria-label": `Perfil de ${this.user.name}`,
|
|
359
|
+
"aria-hidden": String(!this.profileOpen),
|
|
360
|
+
tabIndex: -1,
|
|
361
|
+
ref: e => this.profileEl = e,
|
|
362
|
+
class: {
|
|
363
|
+
"profile-popover": true,
|
|
364
|
+
"profile-popover--open": this.profileOpen,
|
|
365
|
+
"profile-popover--side": !e
|
|
366
|
+
}
|
|
367
|
+
}, i("sula-profile-menu", {
|
|
368
|
+
user: this.user,
|
|
369
|
+
items: this.profileItems,
|
|
370
|
+
onItemClicked: e => this.handleProfileItemClicked(e),
|
|
371
|
+
onSwitchChanged: e => this.handleProfileSwitchChanged(e)
|
|
372
|
+
}, i("slot", {
|
|
373
|
+
name: "profile-content"
|
|
374
|
+
})));
|
|
375
|
+
}
|
|
376
|
+
isValidIcon(e) {
|
|
377
|
+
return !!e && /ph-[a-z]/.test(e);
|
|
378
|
+
}
|
|
379
|
+
isSvg(e) {
|
|
380
|
+
return /^data:image\/svg\+xml/i.test(e) || /\.svg(\?|#|$)/i.test(e);
|
|
381
|
+
}
|
|
382
|
+
iconOf(e) {
|
|
383
|
+
return this.isValidIcon(e.icon) ? e.icon : this.defaultIcon;
|
|
384
|
+
}
|
|
385
|
+
hasIcon(e) {
|
|
386
|
+
return !!e.image || this.isValidIcon(this.iconOf(e));
|
|
387
|
+
}
|
|
388
|
+
renderItemIcon(e, t, r, o = false) {
|
|
389
|
+
if (!this.hasIcon(e)) return null;
|
|
390
|
+
if (e.image && this.isSvg(e.image)) {
|
|
391
|
+
// SVGs are painted with currentColor through a mask, so they follow the same state colors as the icon font.
|
|
392
|
+
return i("span", {
|
|
393
|
+
class: `menu-item-image menu-item-image--mask menu-item-image--${r} ${t}`,
|
|
394
|
+
style: {
|
|
395
|
+
"--menu-item-image": `url("${e.image.replace(/"/g, "%22")}")`
|
|
396
|
+
},
|
|
397
|
+
"aria-hidden": "true"
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
if (e.image) {
|
|
401
|
+
return i("img", {
|
|
402
|
+
class: {
|
|
403
|
+
"menu-item-image": true,
|
|
404
|
+
[`menu-item-image--${r}`]: true,
|
|
405
|
+
"is-faded": o
|
|
406
|
+
},
|
|
407
|
+
src: e.image,
|
|
408
|
+
alt: ""
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
return i("sula-icon", {
|
|
412
|
+
icon: this.iconOf(e),
|
|
413
|
+
customClass: t
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
getInitials(e) {
|
|
417
|
+
return e.split(" ").filter(Boolean).slice(0, 2).map((e => e[0].toUpperCase())).join("");
|
|
418
|
+
}
|
|
419
|
+
renderUserInfo(e) {
|
|
420
|
+
const t = this.user;
|
|
421
|
+
return i("button", {
|
|
422
|
+
type: "button",
|
|
423
|
+
class: {
|
|
424
|
+
"user-info flex min-w-0 cursor-pointer items-center text-left": true,
|
|
425
|
+
"user-info--card w-full gap-16 rounded-md bg-surface-on-body p-16": e,
|
|
426
|
+
"rounded-xs p-8 hover:bg-states-empty-bg-hover": !e,
|
|
427
|
+
"user-info--active bg-states-empty-bg-hover": this.profileOpen && !e
|
|
428
|
+
},
|
|
429
|
+
title: `Ver perfil de ${t.name}`,
|
|
430
|
+
"aria-label": `Ver perfil de ${t.name}`,
|
|
431
|
+
"aria-haspopup": "dialog",
|
|
432
|
+
"aria-expanded": String(this.profileOpen),
|
|
433
|
+
ref: e => this.userInfoEl = e,
|
|
434
|
+
onClick: () => this.toggleProfile()
|
|
435
|
+
}, i("span", {
|
|
436
|
+
class: "user-avatar flex h-9 w-9 flex-none items-center justify-center overflow-hidden rounded-full bg-brand-primary text-sm font-semibold text-negative-negative-1"
|
|
437
|
+
}, t.photo ? i("img", {
|
|
438
|
+
src: t.photo,
|
|
439
|
+
alt: t.name
|
|
440
|
+
}) : this.getInitials(t.name)), i("span", {
|
|
441
|
+
"aria-hidden": !e,
|
|
442
|
+
class: {
|
|
443
|
+
"user-copy": true,
|
|
444
|
+
"ml-8": !e,
|
|
445
|
+
"flex-1": e,
|
|
446
|
+
"user-copy--visible": e,
|
|
447
|
+
"user-copy--hidden": !e
|
|
448
|
+
}
|
|
449
|
+
}, i("span", {
|
|
450
|
+
part: "user-name",
|
|
451
|
+
class: "user-name truncate text-sm font-semibold text-text-primary"
|
|
452
|
+
}, t.name), t.email && i("span", {
|
|
453
|
+
part: "user-email",
|
|
454
|
+
class: "user-email truncate text-xs text-text-secondary"
|
|
455
|
+
}, t.email)));
|
|
456
|
+
}
|
|
457
|
+
getIconClass(e, t, i) {
|
|
458
|
+
if (t) return `text-icon-disabled ${i}`;
|
|
459
|
+
if (e) return `text-brand-primary ${i}`;
|
|
460
|
+
return `text-icon-primary ${i}`;
|
|
461
|
+
}
|
|
462
|
+
renderCollapseButton() {
|
|
463
|
+
const e = this.collapsed ? "Expandir menu" : "Recolher menu";
|
|
464
|
+
return i("button", {
|
|
465
|
+
type: "button",
|
|
466
|
+
class: "menu-toggle flex flex-none items-center justify-center",
|
|
467
|
+
title: e,
|
|
468
|
+
"aria-label": e,
|
|
469
|
+
"aria-expanded": String(!this.collapsed),
|
|
470
|
+
onClick: () => this.toggleMenu()
|
|
471
|
+
}, i("sula-icon", {
|
|
472
|
+
icon: "ph-bold ph-sidebar",
|
|
473
|
+
customClass: "text-lg"
|
|
474
|
+
}));
|
|
475
|
+
}
|
|
476
|
+
renderRootHeader(e) {
|
|
477
|
+
return i("div", {
|
|
478
|
+
class: {
|
|
479
|
+
"menu-header flex items-center": true,
|
|
480
|
+
"mb-40": e,
|
|
481
|
+
"mb-24 flex-col justify-center px-0": !e
|
|
482
|
+
}
|
|
483
|
+
}, this.image && i("div", {
|
|
484
|
+
class: {
|
|
485
|
+
"menu-brand-image max-h-10 max-w-10 overflow-hidden": true,
|
|
486
|
+
"mr-6": e
|
|
487
|
+
}
|
|
488
|
+
}, i("img", {
|
|
489
|
+
src: this.image,
|
|
490
|
+
alt: this.menuTitle
|
|
491
|
+
})), i("div", {
|
|
492
|
+
"aria-hidden": !e,
|
|
493
|
+
title: e ? this.menuTitle : undefined,
|
|
494
|
+
class: {
|
|
495
|
+
"menu-title menu-copy": true,
|
|
496
|
+
"menu-copy--visible": e,
|
|
497
|
+
"menu-copy--hidden": !e
|
|
498
|
+
}
|
|
499
|
+
}, i("h1", {
|
|
500
|
+
part: "title",
|
|
501
|
+
class: "truncate text-2xl font-bold leading-7 text-text-secondary"
|
|
502
|
+
}, this.menuTitle)), this.renderCollapseButton());
|
|
503
|
+
}
|
|
504
|
+
renderTrail(e) {
|
|
505
|
+
const t = e.length > 2;
|
|
506
|
+
const r = t ? e.slice(-2) : e;
|
|
507
|
+
const o = [ i("button", {
|
|
508
|
+
key: "root",
|
|
509
|
+
type: "button",
|
|
510
|
+
class: "crumb-btn",
|
|
511
|
+
title: `Ir para o início de ${this.menuTitle}`,
|
|
512
|
+
onClick: () => this.goToDepth(-1)
|
|
513
|
+
}, this.menuTitle || "Início") ];
|
|
514
|
+
if (t) {
|
|
515
|
+
o.push(i("button", {
|
|
516
|
+
key: "ellipsis",
|
|
517
|
+
type: "button",
|
|
518
|
+
class: "crumb-btn crumb-btn--ellipsis",
|
|
519
|
+
"aria-haspopup": "true",
|
|
520
|
+
"aria-expanded": String(this.crumbMenu.open),
|
|
521
|
+
title: `${e.length - 2} nível(is) anterior(es)`,
|
|
522
|
+
ref: e => this.crumbEllipsisEl = e,
|
|
523
|
+
onClick: e => this.toggleCrumbMenu(e)
|
|
524
|
+
}, i("sula-icon", {
|
|
525
|
+
icon: "ph-bold ph-dots-three",
|
|
526
|
+
customClass: "text-base text-text-secondary"
|
|
527
|
+
})));
|
|
528
|
+
}
|
|
529
|
+
r.forEach((e => {
|
|
530
|
+
o.push(i("button", {
|
|
531
|
+
key: e.id,
|
|
532
|
+
type: "button",
|
|
533
|
+
class: "crumb-btn",
|
|
534
|
+
title: e.label,
|
|
535
|
+
onClick: () => this.goToDepth(this.stack.indexOf(e))
|
|
536
|
+
}, e.label));
|
|
537
|
+
}));
|
|
538
|
+
const a = [];
|
|
539
|
+
o.forEach(((e, t) => {
|
|
540
|
+
if (t > 0) a.push(i("sula-icon", {
|
|
541
|
+
key: `sep-${t}`,
|
|
542
|
+
icon: "ph ph-caret-right",
|
|
543
|
+
customClass: "crumb-sep text-xs"
|
|
544
|
+
}));
|
|
545
|
+
a.push(e);
|
|
546
|
+
}));
|
|
547
|
+
return i("nav", {
|
|
548
|
+
class: "crumb-trail flex min-w-0 items-center",
|
|
549
|
+
"aria-label": "Caminho de navegação"
|
|
550
|
+
}, a);
|
|
551
|
+
}
|
|
552
|
+
renderCrumbDropdown(e) {
|
|
553
|
+
if (!this.crumbMenu.open || e.length <= 2) return null;
|
|
554
|
+
const t = e.slice(0, -2);
|
|
555
|
+
return i("div", {
|
|
556
|
+
class: "crumb-dropdown",
|
|
557
|
+
role: "menu",
|
|
558
|
+
ref: e => this.crumbDropdownEl = e,
|
|
559
|
+
style: {
|
|
560
|
+
left: `${this.crumbMenu.left}px`,
|
|
561
|
+
top: `${this.crumbMenu.top}px`
|
|
562
|
+
}
|
|
563
|
+
}, t.map((e => i("button", {
|
|
564
|
+
key: e.id,
|
|
565
|
+
type: "button",
|
|
566
|
+
role: "menuitem",
|
|
567
|
+
class: "crumb-dropdown-item",
|
|
568
|
+
onClick: () => this.goToDepth(this.stack.indexOf(e))
|
|
569
|
+
}, i("span", {
|
|
570
|
+
class: "item-icon flex flex-none items-center justify-center"
|
|
571
|
+
}, this.renderItemIcon(e, "text-sm text-icon-primary", "sm")), i("span", {
|
|
572
|
+
class: "min-w-0 truncate"
|
|
573
|
+
}, e.label)))));
|
|
574
|
+
}
|
|
575
|
+
renderDrillHeader(e) {
|
|
576
|
+
const t = this.stack.slice(0, -1);
|
|
577
|
+
const r = t.length ? t[t.length - 1].label : this.menuTitle || "Início";
|
|
578
|
+
const o = i("button", {
|
|
579
|
+
type: "button",
|
|
580
|
+
class: "back-btn",
|
|
581
|
+
title: `Voltar para ${r}`,
|
|
582
|
+
"aria-label": `Voltar para ${r}`,
|
|
583
|
+
onClick: () => this.goToDepth(this.stack.length - 2)
|
|
584
|
+
}, i("sula-icon", {
|
|
585
|
+
icon: "ph ph-arrow-left",
|
|
586
|
+
customClass: "text-xl text-icon-primary"
|
|
587
|
+
}));
|
|
588
|
+
return i("div", {
|
|
589
|
+
key: this.stack.map((e => e.id)).join("/"),
|
|
590
|
+
class: {
|
|
591
|
+
"menu-header menu-header--drilldown flex flex-col": true,
|
|
592
|
+
"menu-header--back": this.direction === "back"
|
|
593
|
+
}
|
|
594
|
+
}, i("div", {
|
|
595
|
+
class: "drill-toolbar flex items-center justify-between"
|
|
596
|
+
}, o, this.renderCollapseButton()), t.length > 0 && i("div", {
|
|
597
|
+
class: "breadcrumb-row"
|
|
598
|
+
}, this.renderTrail(t), this.renderCrumbDropdown(t)), i("div", {
|
|
599
|
+
class: "context-row flex items-center min-w-0"
|
|
600
|
+
}, this.hasIcon(e) && i("span", {
|
|
601
|
+
class: "context-icon flex flex-none items-center justify-center"
|
|
602
|
+
}, this.renderItemIcon(e, "text-xl text-brand-primary", "md")), i("h1", {
|
|
603
|
+
part: "title",
|
|
604
|
+
class: "context-title text-text-primary",
|
|
605
|
+
title: e.label
|
|
606
|
+
}, e.label)));
|
|
607
|
+
}
|
|
608
|
+
renderDrillRow(e, t, r) {
|
|
609
|
+
const o = this.hasVisibleChildren(e);
|
|
610
|
+
const a = this.isActive(e, o);
|
|
611
|
+
const s = this.isFaded(e, a);
|
|
612
|
+
return i("li", {
|
|
613
|
+
class: "list-none",
|
|
614
|
+
key: e.id,
|
|
615
|
+
style: {
|
|
616
|
+
"--row-index": String(Math.min(r, 8))
|
|
617
|
+
}
|
|
618
|
+
}, i("div", {
|
|
619
|
+
class: {
|
|
620
|
+
"menu-item flex items-center justify-between rounded-md px-8": true,
|
|
621
|
+
"cursor-pointer hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed": !e.disabled && !a,
|
|
622
|
+
"cursor-pointer": !e.disabled && a,
|
|
623
|
+
"cursor-not-allowed": !!e.disabled
|
|
624
|
+
},
|
|
625
|
+
"aria-disabled": !!e.disabled,
|
|
626
|
+
onClick: () => this.handleRowClick(e)
|
|
627
|
+
}, i("span", {
|
|
628
|
+
class: "flex min-w-0 flex-1 items-center gap-8"
|
|
629
|
+
}, this.renderIconSlot(e, this.getIconClass(a, s, "text-base"), s, t), i("span", {
|
|
630
|
+
part: "item-label",
|
|
631
|
+
class: {
|
|
632
|
+
"menu-item-label truncate": this.labelOverflow !== n.Wrap,
|
|
633
|
+
"menu-item-label menu-item-label--wrap": this.labelOverflow === n.Wrap,
|
|
634
|
+
"font-bold text-text-primary": a,
|
|
635
|
+
"text-text-disabled": s,
|
|
636
|
+
"text-text-secondary": !a && !s
|
|
637
|
+
}
|
|
638
|
+
}, e.label)), o && i("sula-icon", {
|
|
639
|
+
icon: "ph ph-caret-right",
|
|
640
|
+
customClass: s ? "text-text-disabled text-xs" : "text-text-secondary text-xs"
|
|
641
|
+
})));
|
|
642
|
+
}
|
|
643
|
+
// Strips on the left edge suggest the levels already navigated; the prototype shows at most two.
|
|
644
|
+
renderDrillLayers() {
|
|
645
|
+
const e = Math.min(this.stack.length, 2);
|
|
646
|
+
return i("div", {
|
|
647
|
+
class: "drill-layers",
|
|
648
|
+
"aria-hidden": "true"
|
|
649
|
+
}, Array.from({
|
|
650
|
+
length: e
|
|
651
|
+
}, ((t, r) => i("span", {
|
|
652
|
+
key: r,
|
|
653
|
+
class: "drill-layer",
|
|
654
|
+
style: {
|
|
655
|
+
width: `${12 * (r + 1)}px`,
|
|
656
|
+
zIndex: String(e - r)
|
|
657
|
+
}
|
|
658
|
+
}))));
|
|
659
|
+
}
|
|
660
|
+
renderDrillPanel() {
|
|
661
|
+
const e = this.stack[this.stack.length - 1];
|
|
662
|
+
const t = this.stack.map((e => e.id)).join("/");
|
|
663
|
+
return i("ul", {
|
|
664
|
+
key: t,
|
|
665
|
+
class: {
|
|
666
|
+
"menu-panel flex flex-col": true,
|
|
667
|
+
"menu-panel--forward": this.direction === "forward",
|
|
668
|
+
"menu-panel--back": this.direction === "back"
|
|
669
|
+
}
|
|
670
|
+
}, this.getVisibleItems(e.children).map(((t, i) => this.renderDrillRow(t, this.siblingsHaveIcon(e.children), i))));
|
|
671
|
+
}
|
|
672
|
+
getMainIconClass(e, t) {
|
|
673
|
+
if (t) return "text-icon-disabled text-base";
|
|
674
|
+
if (e) return "text-brand-primary text-base";
|
|
675
|
+
return "text-icon-primary text-base";
|
|
676
|
+
}
|
|
677
|
+
getMainCaretClass(e, t) {
|
|
678
|
+
if (t) return "text-text-disabled text-xs";
|
|
679
|
+
if (e) return "text-text-primary text-xs";
|
|
680
|
+
return "text-text-secondary text-xs";
|
|
681
|
+
}
|
|
682
|
+
getSubIconClass(e, t = false) {
|
|
683
|
+
if (e) return "text-icon-disabled text-base";
|
|
684
|
+
if (t) return "text-brand-primary text-base";
|
|
685
|
+
return "text-icon-primary text-base";
|
|
686
|
+
}
|
|
687
|
+
getSubCaretClass(e) {
|
|
688
|
+
return e ? "text-icon-disabled text-xs" : "text-icon-primary text-xs";
|
|
689
|
+
}
|
|
690
|
+
siblingsHaveIcon(e) {
|
|
691
|
+
return this.getVisibleItems(e).some((e => this.hasIcon(e)));
|
|
692
|
+
}
|
|
693
|
+
renderIconSlot(e, t, r, o = true) {
|
|
694
|
+
if (!o && !this.hasIcon(e)) return null;
|
|
695
|
+
return i("span", {
|
|
696
|
+
class: "item-icon flex flex-none items-center justify-center"
|
|
697
|
+
}, this.renderItemIcon(e, t, "lg", r));
|
|
698
|
+
}
|
|
699
|
+
renderMainRow(e, t, r, o, a, s, l, c) {
|
|
700
|
+
const d = this.labelOverflow === n.Truncate;
|
|
701
|
+
return i("div", {
|
|
702
|
+
class: {
|
|
703
|
+
"menu-item flex items-center rounded-md px-8": true,
|
|
704
|
+
"cursor-pointer hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed": !e.disabled,
|
|
705
|
+
"cursor-not-allowed": !!e.disabled,
|
|
706
|
+
"justify-between": t,
|
|
707
|
+
"justify-center": !t
|
|
708
|
+
},
|
|
709
|
+
title: !t ? e.label : undefined,
|
|
710
|
+
"aria-disabled": !!e.disabled,
|
|
711
|
+
onClick: () => this.handleRowClick(e)
|
|
712
|
+
}, i("div", {
|
|
713
|
+
class: {
|
|
714
|
+
"flex items-center": true,
|
|
715
|
+
"flex-1 min-w-0 gap-8": t,
|
|
716
|
+
"justify-center": !t
|
|
717
|
+
}
|
|
718
|
+
}, this.renderIconSlot(e, this.getMainIconClass(a, s), s, c), i("span", {
|
|
719
|
+
part: "main-item-label",
|
|
720
|
+
title: t ? e.label : undefined,
|
|
721
|
+
"aria-hidden": !t,
|
|
722
|
+
class: {
|
|
723
|
+
"menu-item-label menu-copy": true,
|
|
724
|
+
"menu-item-label--truncate": d,
|
|
725
|
+
"menu-item-label--wrap": !d,
|
|
726
|
+
"menu-copy--visible": t,
|
|
727
|
+
"menu-copy--hidden": !t,
|
|
728
|
+
"font-bold text-text-primary": a,
|
|
729
|
+
"text-text-disabled": s,
|
|
730
|
+
"text-text-secondary": !a && !s
|
|
731
|
+
}
|
|
732
|
+
}, e.label)), r && i("sula-icon", {
|
|
733
|
+
"aria-hidden": !t,
|
|
734
|
+
class: {
|
|
735
|
+
"menu-item-caret flex items-center justify-center": true,
|
|
736
|
+
"menu-item-caret--expanded": o,
|
|
737
|
+
"menu-item-caret--visible": t,
|
|
738
|
+
"menu-item-caret--hidden": !t
|
|
739
|
+
},
|
|
740
|
+
icon: l ? "ph ph-caret-right" : "ph ph-caret-down",
|
|
741
|
+
customClass: this.getMainCaretClass(a, s)
|
|
742
|
+
}));
|
|
743
|
+
}
|
|
744
|
+
renderSubRow(e, t, r, o, a, s, l, c) {
|
|
745
|
+
const d = l ? "ph-bold ph-caret-right" : `ph-bold ph-caret-${o && t ? "up" : "down"}`;
|
|
746
|
+
const onClick = () => this.handleRowClick(e);
|
|
747
|
+
const u = {
|
|
748
|
+
"submenu-item flex min-w-0 items-center rounded-md py-8 pr-8 select-none": true,
|
|
749
|
+
"submenu-item--branch w-full": r,
|
|
750
|
+
"cursor-pointer hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed": !e.disabled,
|
|
751
|
+
"cursor-not-allowed": !!e.disabled,
|
|
752
|
+
"font-bold": a && r
|
|
753
|
+
};
|
|
754
|
+
const f = i("span", {
|
|
755
|
+
class: {
|
|
756
|
+
"submenu-item-label min-w-0 flex-1": true,
|
|
757
|
+
"ml-8": c || this.hasIcon(e),
|
|
758
|
+
"menu-item-label--truncate": this.labelOverflow === n.Truncate,
|
|
759
|
+
"menu-item-label--wrap": this.labelOverflow !== n.Truncate,
|
|
760
|
+
"text-text-primary": !s,
|
|
761
|
+
"text-text-disabled": s,
|
|
762
|
+
"font-bold": a
|
|
763
|
+
}
|
|
764
|
+
}, e.label);
|
|
765
|
+
if (!r) {
|
|
766
|
+
return i("a", {
|
|
767
|
+
class: u,
|
|
768
|
+
style: {
|
|
769
|
+
paddingLeft: "8px"
|
|
770
|
+
},
|
|
771
|
+
title: e.label,
|
|
772
|
+
"aria-disabled": !!e.disabled,
|
|
773
|
+
onClick
|
|
774
|
+
}, this.renderIconSlot(e, this.getSubIconClass(s, a && !r), s, c), f);
|
|
775
|
+
}
|
|
776
|
+
return i("a", {
|
|
777
|
+
class: u,
|
|
778
|
+
style: {
|
|
779
|
+
paddingLeft: "8px"
|
|
780
|
+
},
|
|
781
|
+
title: e.label,
|
|
782
|
+
"aria-disabled": !!e.disabled,
|
|
783
|
+
onClick
|
|
784
|
+
}, i("div", {
|
|
785
|
+
class: "submenu-item-branch-content flex min-w-0 flex-1 items-center"
|
|
786
|
+
}, this.renderIconSlot(e, this.getSubIconClass(s, a && !r), s, c), f), i("div", {
|
|
787
|
+
class: "submenu-item-branch-caret flex flex-none items-center justify-end pl-8"
|
|
788
|
+
}, i("sula-icon", {
|
|
789
|
+
icon: d,
|
|
790
|
+
customClass: this.getSubCaretClass(s)
|
|
791
|
+
})));
|
|
792
|
+
}
|
|
793
|
+
renderInlineList(e, t, r) {
|
|
794
|
+
const o = this.siblingsHaveIcon(e);
|
|
795
|
+
return this.getVisibleItems(e).map((e => {
|
|
796
|
+
const a = this.hasVisibleChildren(e);
|
|
797
|
+
const n = a && this.drillMode;
|
|
798
|
+
const s = a && !n;
|
|
799
|
+
const l = s && !!e.expanded;
|
|
800
|
+
const c = this.isActive(e, a) || l;
|
|
801
|
+
const d = this.isFaded(e, c);
|
|
802
|
+
const u = t === 1 ? this.renderMainRow(e, r, a, l, c, d, n, o) : this.renderSubRow(e, r, a, l, c, d, n, o);
|
|
803
|
+
return i("li", {
|
|
804
|
+
class: {
|
|
805
|
+
"decoration-none list-none": true,
|
|
806
|
+
"menu-group": t === 1,
|
|
807
|
+
"is-selected": t > 1 && c && !a
|
|
808
|
+
},
|
|
809
|
+
key: e.id
|
|
810
|
+
}, u, s && i("ul", {
|
|
811
|
+
"aria-hidden": !r || !l,
|
|
812
|
+
class: {
|
|
813
|
+
submenu: true,
|
|
814
|
+
"submenu--expanded": r && l,
|
|
815
|
+
"ml-[8px] border-l border-line-general pl-12": t === 1,
|
|
816
|
+
"submenu-branch ml-[20px]": t > 1
|
|
817
|
+
}
|
|
818
|
+
}, this.renderInlineList(e.children, t + 1, r)));
|
|
819
|
+
}));
|
|
820
|
+
}
|
|
821
|
+
render() {
|
|
822
|
+
const e = !this.collapsed || this.previewExpanded;
|
|
823
|
+
const t = e && this.isDrilled();
|
|
824
|
+
const o = this.stack[this.stack.length - 1];
|
|
825
|
+
return i(r, {
|
|
826
|
+
key: "bcfe0dcba1c108dd509ddbc03587a48187634886",
|
|
827
|
+
class: {
|
|
828
|
+
"menu-host--collapsed": this.collapsed,
|
|
829
|
+
"menu-host--preview": this.collapsed && this.previewExpanded,
|
|
830
|
+
"menu-host--density-compact": this.density === a.Compact,
|
|
831
|
+
"menu-host--density-comfortable": this.density === a.Comfortable
|
|
832
|
+
},
|
|
833
|
+
style: this.hostStyleVariables,
|
|
834
|
+
onMouseEnter: () => this.handleMenuMouseEnter(),
|
|
835
|
+
onMouseLeave: () => this.handleMenuMouseLeave()
|
|
836
|
+
}, i("aside", {
|
|
837
|
+
key: "1fd3ab998fff6a0bac168956b7e60efd37cb1889",
|
|
838
|
+
part: "shell",
|
|
839
|
+
ref: e => this.shellEl = e,
|
|
840
|
+
class: {
|
|
841
|
+
"menu-shell flex h-full flex-col bg-surface-body shadow-md z-50": true,
|
|
842
|
+
"menu-shell--collapsed": this.collapsed && !this.previewExpanded,
|
|
843
|
+
"menu-shell--expanded": e,
|
|
844
|
+
"menu-shell--preview": this.collapsed && this.previewExpanded,
|
|
845
|
+
"menu-shell--drilled": t
|
|
846
|
+
}
|
|
847
|
+
}, t && this.renderDrillLayers(), t ? this.renderDrillHeader(o) : this.renderRootHeader(e), i("nav", {
|
|
848
|
+
key: "40063d935bf797fde0378a37da3594ebeca1d3ff",
|
|
849
|
+
class: {
|
|
850
|
+
"menu-nav flex h-full flex-col overflow-y-auto overflow-x-hidden": true,
|
|
851
|
+
"px-12": !e
|
|
852
|
+
}
|
|
853
|
+
}, t ? this.renderDrillPanel() : i("ul", {
|
|
854
|
+
class: "flex flex-col"
|
|
855
|
+
}, this.renderInlineList(this.items, 1, e))), this.user && i("div", {
|
|
856
|
+
key: "ce167e4897f3b43ee167fcec275e81abdc20b697",
|
|
857
|
+
class: "menu-footer pt-12"
|
|
858
|
+
}, this.renderUserInfo(e))), this.user && i("span", {
|
|
859
|
+
key: "fa2b56c1c22499896404466de15ad32aa7915f93",
|
|
860
|
+
class: "profile-origin",
|
|
861
|
+
"aria-hidden": "true",
|
|
862
|
+
ref: e => this.profileOriginEl = e
|
|
863
|
+
}), this.user && this.renderProfilePopover(e));
|
|
864
|
+
}
|
|
865
|
+
get el() {
|
|
866
|
+
return o(this);
|
|
867
|
+
}
|
|
868
|
+
static get watchers() {
|
|
869
|
+
return {
|
|
870
|
+
items: [ "syncWithItems" ],
|
|
871
|
+
drillPath: [ "syncDrillPath" ]
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
l.style = s;
|
|
877
|
+
|
|
878
|
+
export { l as sula_workbench_menu };
|
|
879
|
+
//# sourceMappingURL=sula-workbench-menu.entry.esm.js.map
|
|
880
|
+
//# sourceMappingURL=p-235dcb90.entry.js.map
|