@shrfe/assets 1.0.58 → 1.0.60
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/css/sfe-styles.css +1 -0
- package/js/shrfe-core-umd.js +2 -2
- package/package.json +1 -1
- package/wc-lib/{p-d109bae5.entry.js → p-060477b5.entry.js} +1 -1
- package/wc-lib/{p-8e21d95f.entry.js → p-09d3a2bb.entry.js} +1 -1
- package/wc-lib/{p-09c0668e.entry.js → p-1ee53e76.entry.js} +2 -2
- package/wc-lib/{p-874a6465.js → p-22b81781.js} +1 -1
- package/wc-lib/{p-b0eed3ad.entry.js → p-3f9ba416.entry.js} +1 -1
- package/wc-lib/{p-46ec6aec.entry.js → p-519aee10.entry.js} +1 -1
- package/wc-lib/{p-8f9e3a0f.entry.js → p-5c7a11b5.entry.js} +1 -1
- package/wc-lib/{p-b68e8c90.entry.js → p-6020e2ee.entry.js} +1 -1
- package/wc-lib/{p-7fc5f0f5.entry.js → p-7f061876.entry.js} +1 -1
- package/wc-lib/{p-a291201a.entry.js → p-8830849d.entry.js} +1 -1
- package/wc-lib/{p-90a623cf.entry.js → p-987f43de.entry.js} +1 -1
- package/wc-lib/{p-2e812245.entry.js → p-9b886706.entry.js} +1 -1
- package/wc-lib/p-9c8d03a1.entry.js +1 -0
- package/wc-lib/{p-6jVzC3VV.js → p-DdKztCEo.js} +1 -1
- package/wc-lib/{p-046718d6.entry.js → p-a1096cc2.entry.js} +1 -1
- package/wc-lib/{p-f61c7c73.entry.js → p-ad52fbd1.entry.js} +1 -1
- package/wc-lib/{p-e827287f.entry.js → p-baa72403.entry.js} +1 -1
- package/wc-lib/{p-bc54df07.entry.js → p-bc2d52e1.entry.js} +1 -1
- package/wc-lib/{p-acb808d1.entry.js → p-d2d7a599.entry.js} +1 -1
- package/wc-lib/{p-1ecb063c.entry.js → p-f30625eb.entry.js} +1 -1
- package/wc-lib/{p-4ae42657.entry.js → p-fce8a77c.entry.js} +1 -1
- package/wc-lib/wc-lib.esm.js +1 -1
- package/wc-lib/p-a4e4b2c1.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,B as t,c as a,w as i,N as o,a as d,g as l,b as n}from"./p-6jVzC3VV.js";export{s as setNonce}from"./p-6jVzC3VV.js";var r=e=>{const t=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return t.call(this,e);const s=t.call(this,!1),a=this.childNodes;if(e)for(let e=0;e<a.length;e++)2!==a[e].nodeType&&s.appendChild(a[e].cloneNode(!0));return s}};(()=>{t.isDev&&!t.isTesting&&a("Running in development mode."),t.cloneNodeFix&&r(d.prototype);const s=t.scriptDataOpts?i.document&&Array.from(i.document.querySelectorAll("script")).find((e=>new RegExp(`/${o}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===o)):null,l=import.meta.url,n=t.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((async e=>(await l(),n(JSON.parse('[["p-bc54df07",[[514,"swc-file-uploader",{"disabled":[516],"extended":[516],"thumbnail":[513],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"multiple":[516],"type":[513],"maxFileSize":[2,"max-file-size"],"accepts":[16],"testId":[1,"test-id"],"files":[32],"selectedFileIndex":[32]}]]],["p-f61c7c73",[[772,"swc-top-nav",{"maxWidth":[1,"max-width"],"roleWrapperWidth":[514,"role-wrapper-width"],"hasNotifications":[516,"has-notifications"],"hasReadNotifications":[516,"has-read-notifications"],"hasUserRoleDropdown":[516,"has-user-role-dropdown"],"hasSearch":[516,"has-search"],"testId":[513,"test-id"],"areLinksVisible":[32],"isSearchVisible":[32],"searchQuery":[32]},[[0,"change","handleInputEventChange"]],{"isSearchVisible":[{"searchVisibleChangeHandler":0}]}]]],["p-8e21d95f",[[512,"swc-tour-guide",{"startTour":[4,"start-tour"],"dismissible":[4],"useModalOverlay":[4,"use-modal-overlay"],"useHighlightSteps":[4,"use-highlight-steps"],"showArrow":[4,"show-arrow"],"variant":[1],"steps":[16],"testId":[513,"test-id"],"instance":[32],"currentIndex":[32]},null,{"startTour":[{"startTourHandler":0}]}]]],["p-d109bae5",[[514,"swc-toast",{"type":[1025],"position":[1025],"_title":[1025],"message":[1025],"timeout":[1026],"showTitle":[1028,"show-title"],"dismissible":[1028],"isVisible":[1028,"is-visible"],"testId":[513,"test-id"],"timeoutId":[1040],"showToast":[64],"reset":[64]}]]],["p-8f9e3a0f",[[514,"swc-alert",{"message":[1],"intent":[1],"variant":[1],"position":[1],"isVisible":[1028,"is-visible"],"iconButtonAriaLabel":[1,"icon-button-aria-label"],"alertIcon":[32],"dismissIconColor":[32],"show":[64],"hide":[64]}]]],["p-b68e8c90",[[774,"swc-checkbox-group",{"options":[16],"direction":[1],"value":[1040],"testId":[513,"test-id"]},[[0,"checkboxChange","checkboxChangeHandler"]],{"value":[{"valueChangeHandler":0}]}]]],["p-b0eed3ad",[[774,"swc-side-panel",{"isModalOpen":[4,"is-modal-open"],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"size":[1],"position":[1],"testId":[1,"test-id"]}]]],["p-4ae42657",[[774,"swc-banner",{"variant":[1],"showTitleIcon":[4,"show-title-icon"],"dismissible":[4],"testId":[513,"test-id"],"titleId":[32],"bodyId":[32]}]]],["p-acb808d1",[[774,"swc-stepper-item",{"index":[2],"isLastItem":[4,"is-last-item"],"activeIndex":[2,"active-index"],"orientation":[1],"withCheckmark":[4,"with-checkmark"],"lineSize":[1,"line-size"],"idProp":[1,"id-prop"],"testId":[513,"test-id"],"computedStatus":[32]}]]],["p-046718d6",[[514,"swc-tags-input",{"value":[16],"max":[2],"placeholder":[1],"disabled":[4],"hasError":[4,"has-error"],"testId":[513,"test-id"],"newTag":[32],"isFocused":[32],"focusedTagIndex":[32],"tags":[32]},null,{"value":[{"valueChangeHandler":0}],"tags":[{"tagsChangeHandler":0}]}]]],["p-90a623cf",[[514,"swc-radio-input",{"value":[513],"selectedValue":[513,"selected-value"],"disabled":[516],"error":[516],"checked":[516],"label":[1],"testId":[513,"test-id"]}]]],["p-1ecb063c",[[514,"swc-skeleton",{"round":[4],"size":[1],"height":[1],"width":[1],"borderRadius":[1,"border-radius"],"testId":[513,"test-id"]}]]],["p-a4e4b2c1",[[774,"swc-stepper",{"orientation":[1],"activeIndex":[2,"active-index"],"withCheckmark":[4,"with-checkmark"],"lineSize":[1,"line-size"],"testId":[513,"test-id"],"stepItemIds":[32]}]]],["p-46ec6aec",[[772,"swc-table-footer",{"testId":[513,"test-id"]}]]],["p-09c0668e",[[514,"app-playground",{"isCollapsed":[32],"isModalOpen":[32],"showPopoverModal":[32],"selectedOption":[32],"startDate":[32],"endDate":[32],"on":[32]}],[512,"swc-sidebar-test",{"isSidebarCollapsed":[32],"module":[32],"activeRoute":[32],"userDetails":[32],"modules":[32],"resourcesLinks":[32],"guideLinks":[32]}],[514,"swc-pagination-test",{"meta":[32]}],[774,"swc-select",{"value":[8],"options":[16],"placeholder":[513],"searchable":[516],"loading":[516],"width":[513],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"testId":[1,"test-id"],"derivedOptions":[32],"shouldGroupSelections":[32],"searchQueryVal":[32]},null,{"searchQueryVal":[{"searchQueryHandler":0}]}],[774,"swc-breadcrumb-dropdown",{"testId":[1,"test-id"]}],[772,"swc-table-head",{"label":[1],"sortable":[4],"isActive":[4,"is-active"],"testId":[513,"test-id"],"state":[32]},null,{"isActive":[{"isActiveWatchHandler":0}]}],[774,"swc-dialog",{"isModalOpen":[4,"is-modal-open"],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"initialFocusRef":[16],"size":[1],"width":[1],"hasCloseIcon":[4,"has-close-icon"],"animation":[1],"bgColor":[1,"bg-color"],"testId":[1,"test-id"],"headerId":[32]}],[774,"swc-accordion-item",{"value":[1],"testId":[1,"test-id"],"defaultValue":[1,"default-value"],"AccordionHeaderClass":[513,"accordion-header-class"],"AllowMultiple":[516,"allow-multiple"],"variant":[513],"ActiveIdsProp":[16],"hasRadioButton":[4,"has-radio-button"],"hasLeftBorder":[4,"has-left-border"],"reloadComp":[32]}],[514,"swc-avatar-group",{"size":[1],"testId":[1,"test-id"],"shape":[1],"avatarGroupItems":[16]}],[514,"swc-date-picker",{"value":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"disabled":[4],"mode":[1],"enableTime":[4,"enable-time"],"dateFormat":[1,"date-format"],"testId":[1,"test-id"]},null,{"value":[{"watchValue":0}]}],[772,"swc-navigation-menu-trigger",{"testId":[513,"test-id"],"hover":[32]}],[774,"swc-accordion",{"variant":[513],"testId":[1,"test-id"],"allowMultiple":[516,"allow-multiple"],"defaultValue":[1,"default-value"],"hasRadioButton":[4,"has-radio-button"],"hasLeftBorder":[4,"has-left-border"],"activeIds":[32]}],[774,"swc-badge",{"variant":[1],"testId":[513,"test-id"],"intent":[1],"size":[1],"isCounter":[4,"is-counter"],"badgeClasses":[32]},null,{"variant":[{"watchProps":0}],"intent":[{"watchProps":0}],"size":[{"watchProps":0}],"isCounter":[{"watchProps":0}]}],[774,"swc-breadcrumb",{"separator":[513],"testId":[1,"test-id"]}],[774,"swc-breadcrumb-item",{"isCurrentPage":[516,"is-current-page"],"separator":[1],"testId":[1,"test-id"]}],[512,"swc-circular-progress",{"value":[2],"color":[1],"showValue":[4,"show-value"],"max":[2],"size":[1],"testId":[513,"test-id"],"progression":[32]},null,{"value":[{"animateProgression":0}]}],[772,"swc-clickable",{"as":[1],"disabled":[4],"testId":[513,"test-id"]}],[774,"swc-divider",{"orientation":[1],"testId":[513,"test-id"],"hasContent":[32]}],[772,"swc-navigation-menu",{"testId":[513,"test-id"]}],[772,"swc-navigation-menu-item",{"position":[1],"showArrow":[4,"show-arrow"],"testId":[513,"test-id"]}],[772,"swc-popover",{"showArrow":[4,"show-arrow"],"showPopoverModal":[4,"show-popover-modal"],"showContent":[4,"show-content"],"position":[1],"width":[1],"testId":[513,"test-id"],"shouldHide":[32]},[[8,"keydown","handleEscape"]],{"showPopoverModal":[{"handleShowPopover":0}]}],[774,"swc-status-badge",{"variant":[1],"intent":[1],"testId":[513,"test-id"]},null,{"variant":[{"validateVariant":0}],"intent":[{"validateIntent":0}]}],[774,"swc-tab-content",{"value":[1],"activeTab":[1,"active-tab"],"idProp":[513,"id"],"tabTriggerIds":[16],"testId":[513,"test-id"]}],[774,"swc-tab-list",{"orientation":[1],"variant":[1],"testId":[513,"test-id"]}],[774,"swc-tab-trigger",{"value":[1],"disabled":[4],"activeTab":[1,"active-tab"],"orientation":[1],"variant":[1],"size":[1],"idProp":[513,"id"],"tabContentIds":[16],"tabClass":[1,"tab-class"],"testId":[513,"test-id"]}],[772,"swc-table",{"rounded":[4],"maxHeight":[1,"max-height"],"testId":[513,"test-id"],"hasStickyHeader":[4,"has-sticky-header"]}],[772,"swc-table-body",{"testId":[513,"test-id"]}],[772,"swc-table-cell",{"testId":[513,"test-id"]}],[772,"swc-table-header",{"hasStickyHeader":[4,"has-sticky-header"],"testId":[513,"test-id"]}],[772,"swc-table-row",{"testId":[513,"test-id"]}],[774,"swc-tabs",{"defaultTab":[1,"default-tab"],"variant":[1],"orientation":[1],"testId":[513,"test-id"],"size":[1],"activeTab":[32],"tabTriggerIds":[32],"tabContentIds":[32],"tabClass":[32]},[[0,"updateActiveTab","handleUpdateActiveTab"]],{"defaultTab":[{"handleDefaultTab":0}]}],[514,"swc-textarea",{"variant":[1],"hasError":[4,"has-error"],"disabled":[4],"containerClass":[1,"container-class"],"value":[1],"handleChange":[16],"testId":[513,"test-id"]}],[514,"swc-pagination",{"meta":[8],"limits":[16],"maxLimit":[2,"max-limit"],"isSolid":[4,"is-solid"],"type":[1],"testId":[1,"test-id"],"metaClone":[32],"firstPage":[32],"isPerPageFromDB":[32],"defaultPerPage":[32],"isCurrentPageSetFromInput":[32]},null,{"meta":[{"handleMetaChange":0}]}],[774,"swc-multi-select",{"selectedOptions":[16],"originalOptions":[16],"filteredOptions":[16],"placeholder":[513],"searchable":[516],"loading":[516],"width":[513],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"usingFooterSlot":[4,"using-footer-slot"],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"testId":[1,"test-id"],"isAllSelected":[32],"shouldGroupSelections":[32],"isOpen":[32]},null,{"isAllSelected":[{"isAllSelectedHandler":0}],"shouldGroupSelections":[{"groupSelectionHandler":0}],"selectedOptions":[{"selectedOptionsHandler":0}]}],[514,"swc-sidebar-header",{"module":[1],"modulesList":[16],"canSwitchModules":[4,"can-switch-modules"],"testId":[1,"test-id"],"isCurrentModule":[64]}],[774,"swc-single-select",{"selectedOption":[16],"options":[16],"placeholder":[513],"searchable":[516],"loading":[516],"width":[1],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"testId":[1,"test-id"],"isOpen":[32]},[[0,"closeDropdown","closeDropdownMenu"]]],[774,"swc-sidebar-footer",{"userDetails":[16],"testId":[1,"test-id"],"viewingMoreOptions":[32]}],[774,"swc-sidebar-option",{"hasSections":[4,"has-sections"],"isSubsection":[4,"is-subsection"],"sidebarTitle":[1,"sidebar-title"],"isActive":[4,"is-active"],"level":[2],"iconName":[1,"icon-name"],"iconVariant":[1,"icon-variant"],"optionId":[1,"option-id"],"showDropdown":[32],"childHeight":[32]},[[0,"storeChange","handleStoreChange"],[4,"sidebar-collapsed","handleSidebarCollapsed"]]],[774,"swc-sidebar",{"top":[1],"testId":[1,"test-id"]},null,{"top":[{"topChanged":0}]}],[774,"swc-sidebar-body",{"testId":[1,"test-id"]}],[514,"swc-pagination-button-list",{"currentPage":[2,"current-page"],"numberOfPages":[2,"number-of-pages"],"lastPage":[2,"last-page"],"maxButtonCount":[32],"buttonsBeforeEllipsis":[32],"buttonsAfterEllipsis":[32]}],[514,"swc-pagination-input",{"value":[1],"dropdownValues":[16]}],[514,"swc-switch",{"disabled":[516],"checked":[1540],"color":[1],"label":[1],"testId":[513,"test-id"]}],[774,"swc-modal-root",{"isModalOpen":[4,"is-modal-open"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"closeOnEsc":[4,"close-on-esc"],"initialFocusRef":[16]},null,{"isModalOpen":[{"handleOpenChange":0}]}],[772,"swc-tooltip",{"content":[1],"showArrow":[4,"show-arrow"],"showContent":[4,"show-content"],"width":[1],"interactive":[4],"variant":[1],"position":[1],"testId":[513,"test-id"],"tooltipId":[32],"visible":[32]}],[514,"swc-option",{"disabled":[516],"value":[520],"label":[513],"SelectedOptions":[16],"testId":[1,"test-id"]}],[514,"swc-pagination-button",{"number":[2],"currentPage":[2,"current-page"]}],[514,"swc-avatar",{"src":[513],"testId":[513,"test-id"],"alt":[513],"size":[513],"status":[513],"initials":[1],"shape":[1],"hasImageLoaded":[32]}],[514,"swc-progress",{"value":[1026],"max":[2],"color":[1],"showValue":[4,"show-value"],"testId":[513,"test-id"]},null,{"value":[{"validateValue":0}]}],[774,"swc-label",{"required":[4],"disabled":[4],"size":[1],"emphasis":[1],"captionPlacement":[1,"caption-placement"],"showLabelIcon":[4,"show-label-icon"],"testId":[513,"test-id"],"for":[1]}],[774,"swc-dropdown-trigger",{"width":[1],"size":[513],"showDropdownIcon":[516,"show-dropdown-icon"],"customClass":[1,"custom-class"],"testId":[1,"test-id"]}],[772,"swc-dropdown",{"isSubMenu":[516,"is-sub-menu"],"position":[520],"flip":[516],"testId":[1,"test-id"],"isExpanded":[32]},null,{"isExpanded":[{"isExpandedHandler":0}]}],[774,"swc-list",{"width":[1],"selection":[16],"options":[16],"searchable":[516],"placeholder":[513],"loading":[516],"maxHeight":[513,"max-height"],"customClass":[513,"custom-class"],"testId":[1,"test-id"],"hoveredItem":[32],"searchQueryValue":[32]},[[0,"change","handleInputEventChange"]]],[514,"swc-loader",{"size":[1],"testId":[513,"test-id"]}],[774,"swc-icon-button",{"disabled":[4],"size":[1],"intent":[1],"variant":[1],"arialLabel":[1,"arial-label"],"round":[4],"testId":[1,"test-id"]}],[774,"swc-input",{"variant":[1],"clearable":[4],"hasError":[4,"has-error"],"disabled":[4],"containerClass":[1,"container-class"],"value":[1],"handleInputChange":[16],"placeholder":[1],"type":[1],"testId":[513,"test-id"]}],[774,"swc-list-item",{"selected":[4],"disabled":[4],"hideOnClick":[4,"hide-on-click"],"testId":[1,"test-id"]}],[774,"swc-button",{"intent":[513],"variant":[513],"size":[513],"width":[1],"disabled":[4],"type":[513],"round":[4],"isIcon":[4,"is-icon"],"customClass":[1,"custom-class"],"testId":[1,"test-id"]}],[514,"swc-svg-icon",{"name":[513],"variant":[513],"size":[513],"color":[513],"opacity":[513],"testId":[513,"test-id"],"titleProp":[513,"title"]}]]],["p-a291201a",[[514,"swc-tour-guide-step",{"heading":[1],"content":[1],"dismissible":[4],"hasPrevious":[4,"has-previous"],"hasNext":[4,"has-next"],"isLastStep":[4,"is-last-step"],"currentIndex":[2,"current-index"],"numberOfSteps":[2,"number-of-steps"],"startTour":[4,"start-tour"],"variant":[1],"testId":[513,"test-id"]}]]],["p-2e812245",[[514,"swc-checkbox",{"value":[513],"checked":[1540],"error":[4],"disabled":[516],"falseValue":[513,"false-value"],"label":[513],"isIndeterminate":[4,"is-indeterminate"],"testId":[513,"test-id"]}]]],["p-e827287f",[[774,"swc-tag",{"instanceId":[2,"instance-id"],"dismissible":[4],"testId":[513,"test-id"]}]]],["p-7fc5f0f5",[[514,"swc-multiple-file",{"fileInfo":[16],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"uniqueId":[513,"unique-id"]}],[514,"swc-single-file",{"fileInfo":[16],"extended":[516],"thumbnail":[513],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"uniqueId":[513,"unique-id"]}]]]]'),e))));
|
|
1
|
+
import{p as e,B as t,c as a,w as i,N as o,a as d,g as l,b as n}from"./p-DdKztCEo.js";export{s as setNonce}from"./p-DdKztCEo.js";var r=e=>{const t=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return t.call(this,e);const s=t.call(this,!1),a=this.childNodes;if(e)for(let e=0;e<a.length;e++)2!==a[e].nodeType&&s.appendChild(a[e].cloneNode(!0));return s}};(()=>{t.isDev&&!t.isTesting&&a("Running in development mode."),t.cloneNodeFix&&r(d.prototype);const s=t.scriptDataOpts?i.document&&Array.from(i.document.querySelectorAll("script")).find((e=>new RegExp(`/${o}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===o)):null,l=import.meta.url,n=t.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((async e=>(await l(),n(JSON.parse('[["p-bc2d52e1",[[514,"swc-file-uploader",{"disabled":[516],"extended":[516],"thumbnail":[513],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"multiple":[516],"type":[513],"maxFileSize":[2,"max-file-size"],"accepts":[16],"testId":[1,"test-id"],"files":[32],"selectedFileIndex":[32]}]]],["p-ad52fbd1",[[772,"swc-top-nav",{"maxWidth":[1,"max-width"],"roleWrapperWidth":[514,"role-wrapper-width"],"hasNotifications":[516,"has-notifications"],"hasReadNotifications":[516,"has-read-notifications"],"hasUserRoleDropdown":[516,"has-user-role-dropdown"],"hasSearch":[516,"has-search"],"testId":[513,"test-id"],"areLinksVisible":[32],"isSearchVisible":[32],"searchQuery":[32]},[[0,"change","handleInputEventChange"]],{"isSearchVisible":[{"searchVisibleChangeHandler":0}]}]]],["p-09d3a2bb",[[512,"swc-tour-guide",{"startTour":[4,"start-tour"],"dismissible":[4],"useModalOverlay":[4,"use-modal-overlay"],"useHighlightSteps":[4,"use-highlight-steps"],"showArrow":[4,"show-arrow"],"variant":[1],"steps":[16],"testId":[513,"test-id"],"instance":[32],"currentIndex":[32]},null,{"startTour":[{"startTourHandler":0}]}]]],["p-060477b5",[[514,"swc-toast",{"type":[1025],"position":[1025],"_title":[1025],"message":[1025],"timeout":[1026],"showTitle":[1028,"show-title"],"dismissible":[1028],"isVisible":[1028,"is-visible"],"testId":[513,"test-id"],"timeoutId":[1040],"showToast":[64],"reset":[64]}]]],["p-5c7a11b5",[[514,"swc-alert",{"message":[1],"intent":[1],"variant":[1],"position":[1],"isVisible":[1028,"is-visible"],"iconButtonAriaLabel":[1,"icon-button-aria-label"],"alertIcon":[32],"dismissIconColor":[32],"show":[64],"hide":[64]}]]],["p-6020e2ee",[[774,"swc-checkbox-group",{"options":[16],"direction":[1],"value":[1040],"testId":[513,"test-id"]},[[0,"checkboxChange","checkboxChangeHandler"]],{"value":[{"valueChangeHandler":0}]}]]],["p-3f9ba416",[[774,"swc-side-panel",{"isModalOpen":[4,"is-modal-open"],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"size":[1],"position":[1],"testId":[1,"test-id"]}]]],["p-fce8a77c",[[774,"swc-banner",{"variant":[1],"showTitleIcon":[4,"show-title-icon"],"dismissible":[4],"testId":[513,"test-id"],"titleId":[32],"bodyId":[32]}]]],["p-d2d7a599",[[774,"swc-stepper-item",{"index":[2],"isLastItem":[4,"is-last-item"],"activeIndex":[2,"active-index"],"orientation":[1],"withCheckmark":[4,"with-checkmark"],"lineSize":[1,"line-size"],"idProp":[1,"id-prop"],"testId":[513,"test-id"],"computedStatus":[32]}]]],["p-a1096cc2",[[514,"swc-tags-input",{"value":[16],"max":[2],"placeholder":[1],"disabled":[4],"hasError":[4,"has-error"],"testId":[513,"test-id"],"newTag":[32],"isFocused":[32],"focusedTagIndex":[32],"tags":[32]},null,{"value":[{"valueChangeHandler":0}],"tags":[{"tagsChangeHandler":0}]}]]],["p-987f43de",[[514,"swc-radio-input",{"value":[513],"selectedValue":[513,"selected-value"],"disabled":[516],"error":[516],"checked":[516],"label":[1],"testId":[513,"test-id"]}]]],["p-f30625eb",[[514,"swc-skeleton",{"round":[4],"size":[1],"height":[1],"width":[1],"borderRadius":[1,"border-radius"],"testId":[513,"test-id"]}]]],["p-9c8d03a1",[[774,"swc-stepper",{"orientation":[1],"activeIndex":[2,"active-index"],"withCheckmark":[4,"with-checkmark"],"lineSize":[1,"line-size"],"testId":[513,"test-id"],"stepItemIds":[32]}]]],["p-519aee10",[[772,"swc-table-footer",{"testId":[513,"test-id"]}]]],["p-1ee53e76",[[514,"app-playground",{"isCollapsed":[32],"isModalOpen":[32],"showPopoverModal":[32],"selectedOption":[32],"startDate":[32],"endDate":[32],"on":[32]}],[512,"swc-sidebar-test",{"isSidebarCollapsed":[32],"module":[32],"activeRoute":[32],"userDetails":[32],"modules":[32],"resourcesLinks":[32],"guideLinks":[32]}],[514,"swc-pagination-test",{"meta":[32]}],[774,"swc-select",{"value":[8],"options":[16],"placeholder":[513],"searchable":[516],"loading":[516],"width":[513],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"testId":[1,"test-id"],"derivedOptions":[32],"shouldGroupSelections":[32],"searchQueryVal":[32]},null,{"searchQueryVal":[{"searchQueryHandler":0}]}],[774,"swc-breadcrumb-dropdown",{"testId":[1,"test-id"]}],[772,"swc-table-head",{"label":[1],"sortable":[4],"isActive":[4,"is-active"],"testId":[513,"test-id"],"state":[32]},null,{"isActive":[{"isActiveWatchHandler":0}]}],[774,"swc-dialog",{"isModalOpen":[4,"is-modal-open"],"closeOnEsc":[4,"close-on-esc"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"initialFocusRef":[16],"size":[1],"width":[1],"hasCloseIcon":[4,"has-close-icon"],"animation":[1],"bgColor":[1,"bg-color"],"testId":[1,"test-id"],"headerId":[32]}],[774,"swc-accordion-item",{"value":[1],"testId":[1,"test-id"],"defaultValue":[1,"default-value"],"AccordionHeaderClass":[513,"accordion-header-class"],"AllowMultiple":[516,"allow-multiple"],"variant":[513],"ActiveIdsProp":[16],"hasRadioButton":[4,"has-radio-button"],"hasLeftBorder":[4,"has-left-border"],"reloadComp":[32]}],[514,"swc-avatar-group",{"size":[1],"testId":[1,"test-id"],"shape":[1],"avatarGroupItems":[16]}],[514,"swc-date-picker",{"value":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"disabled":[4],"mode":[1],"enableTime":[4,"enable-time"],"dateFormat":[1,"date-format"],"testId":[1,"test-id"]},null,{"value":[{"watchValue":0}]}],[772,"swc-navigation-menu-trigger",{"testId":[513,"test-id"],"hover":[32]}],[774,"swc-accordion",{"variant":[513],"testId":[1,"test-id"],"allowMultiple":[516,"allow-multiple"],"defaultValue":[1,"default-value"],"hasRadioButton":[4,"has-radio-button"],"hasLeftBorder":[4,"has-left-border"],"activeIds":[32]}],[774,"swc-badge",{"variant":[1],"testId":[513,"test-id"],"intent":[1],"size":[1],"isCounter":[4,"is-counter"],"badgeClasses":[32]},null,{"variant":[{"watchProps":0}],"intent":[{"watchProps":0}],"size":[{"watchProps":0}],"isCounter":[{"watchProps":0}]}],[774,"swc-breadcrumb",{"separator":[513],"testId":[1,"test-id"]}],[774,"swc-breadcrumb-item",{"isCurrentPage":[516,"is-current-page"],"separator":[1],"testId":[1,"test-id"]}],[512,"swc-circular-progress",{"value":[2],"color":[1],"showValue":[4,"show-value"],"max":[2],"size":[1],"testId":[513,"test-id"],"progression":[32]},null,{"value":[{"animateProgression":0}]}],[772,"swc-clickable",{"as":[1],"disabled":[4],"testId":[513,"test-id"]}],[774,"swc-divider",{"orientation":[1],"testId":[513,"test-id"],"hasContent":[32]}],[772,"swc-navigation-menu",{"testId":[513,"test-id"]}],[772,"swc-navigation-menu-item",{"position":[1],"showArrow":[4,"show-arrow"],"testId":[513,"test-id"]}],[772,"swc-popover",{"showArrow":[4,"show-arrow"],"showPopoverModal":[4,"show-popover-modal"],"showContent":[4,"show-content"],"position":[1],"width":[1],"testId":[513,"test-id"],"shouldHide":[32]},[[8,"keydown","handleEscape"]],{"showPopoverModal":[{"handleShowPopover":0}]}],[774,"swc-status-badge",{"variant":[1],"intent":[1],"testId":[513,"test-id"]},null,{"variant":[{"validateVariant":0}],"intent":[{"validateIntent":0}]}],[774,"swc-tab-content",{"value":[1],"activeTab":[1,"active-tab"],"idProp":[513,"id"],"tabTriggerIds":[16],"testId":[513,"test-id"]}],[774,"swc-tab-list",{"orientation":[1],"variant":[1],"testId":[513,"test-id"]}],[774,"swc-tab-trigger",{"value":[1],"disabled":[4],"activeTab":[1,"active-tab"],"orientation":[1],"variant":[1],"size":[1],"idProp":[513,"id"],"tabContentIds":[16],"tabClass":[1,"tab-class"],"testId":[513,"test-id"]}],[772,"swc-table",{"rounded":[4],"maxHeight":[1,"max-height"],"testId":[513,"test-id"],"hasStickyHeader":[4,"has-sticky-header"]}],[772,"swc-table-body",{"testId":[513,"test-id"]}],[772,"swc-table-cell",{"testId":[513,"test-id"]}],[772,"swc-table-header",{"hasStickyHeader":[4,"has-sticky-header"],"testId":[513,"test-id"]}],[772,"swc-table-row",{"testId":[513,"test-id"]}],[774,"swc-tabs",{"defaultTab":[1,"default-tab"],"variant":[1],"orientation":[1],"testId":[513,"test-id"],"size":[1],"activeTab":[32],"tabTriggerIds":[32],"tabContentIds":[32],"tabClass":[32]},[[0,"updateActiveTab","handleUpdateActiveTab"]],{"defaultTab":[{"handleDefaultTab":0}]}],[514,"swc-textarea",{"variant":[1],"hasError":[4,"has-error"],"disabled":[4],"containerClass":[1,"container-class"],"value":[1],"handleChange":[16],"testId":[513,"test-id"]}],[514,"swc-pagination",{"meta":[8],"limits":[16],"maxLimit":[2,"max-limit"],"isSolid":[4,"is-solid"],"type":[1],"testId":[1,"test-id"],"metaClone":[32],"firstPage":[32],"isPerPageFromDB":[32],"defaultPerPage":[32],"isCurrentPageSetFromInput":[32]},null,{"meta":[{"handleMetaChange":0}]}],[774,"swc-multi-select",{"selectedOptions":[16],"originalOptions":[16],"filteredOptions":[16],"placeholder":[513],"searchable":[516],"loading":[516],"width":[513],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"usingFooterSlot":[4,"using-footer-slot"],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"testId":[1,"test-id"],"isAllSelected":[32],"shouldGroupSelections":[32],"isOpen":[32]},null,{"isAllSelected":[{"isAllSelectedHandler":0}],"shouldGroupSelections":[{"groupSelectionHandler":0}],"selectedOptions":[{"selectedOptionsHandler":0}]}],[514,"swc-sidebar-header",{"module":[1],"modulesList":[16],"canSwitchModules":[4,"can-switch-modules"],"testId":[1,"test-id"],"isCurrentModule":[64]}],[774,"swc-single-select",{"selectedOption":[16],"options":[16],"placeholder":[513],"searchable":[516],"loading":[516],"width":[1],"maxHeight":[513,"max-height"],"clearable":[516],"flip":[516],"multiple":[4],"showCheckbox":[516,"show-checkbox"],"testId":[1,"test-id"],"isOpen":[32]},[[0,"closeDropdown","closeDropdownMenu"]]],[774,"swc-sidebar-footer",{"userDetails":[16],"testId":[1,"test-id"],"viewingMoreOptions":[32]}],[774,"swc-sidebar-option",{"hasSections":[4,"has-sections"],"isSubsection":[4,"is-subsection"],"sidebarTitle":[1,"sidebar-title"],"isActive":[4,"is-active"],"level":[2],"iconName":[1,"icon-name"],"iconVariant":[1,"icon-variant"],"optionId":[1,"option-id"],"showDropdown":[32],"childHeight":[32]},[[0,"storeChange","handleStoreChange"],[4,"sidebar-collapsed","handleSidebarCollapsed"]]],[774,"swc-sidebar",{"top":[1],"testId":[1,"test-id"]},null,{"top":[{"topChanged":0}]}],[774,"swc-sidebar-body",{"testId":[1,"test-id"]}],[514,"swc-pagination-button-list",{"currentPage":[2,"current-page"],"numberOfPages":[2,"number-of-pages"],"lastPage":[2,"last-page"],"maxButtonCount":[32],"buttonsBeforeEllipsis":[32],"buttonsAfterEllipsis":[32]}],[514,"swc-pagination-input",{"value":[1],"dropdownValues":[16]}],[514,"swc-switch",{"disabled":[516],"checked":[1540],"color":[1],"label":[1],"testId":[513,"test-id"]}],[774,"swc-modal-root",{"isModalOpen":[4,"is-modal-open"],"closeOnOverlayClick":[4,"close-on-overlay-click"],"closeOnEsc":[4,"close-on-esc"],"initialFocusRef":[16]},null,{"isModalOpen":[{"handleOpenChange":0}]}],[772,"swc-tooltip",{"content":[1],"showArrow":[4,"show-arrow"],"showContent":[4,"show-content"],"width":[1],"interactive":[4],"variant":[1],"position":[1],"testId":[513,"test-id"],"tooltipId":[32],"visible":[32]}],[514,"swc-option",{"disabled":[516],"value":[520],"label":[513],"SelectedOptions":[16],"testId":[1,"test-id"]}],[514,"swc-pagination-button",{"number":[2],"currentPage":[2,"current-page"]}],[514,"swc-avatar",{"src":[513],"testId":[513,"test-id"],"alt":[513],"size":[513],"status":[513],"initials":[1],"shape":[1],"hasImageLoaded":[32]}],[514,"swc-progress",{"value":[1026],"max":[2],"color":[1],"showValue":[4,"show-value"],"testId":[513,"test-id"]},null,{"value":[{"validateValue":0}]}],[774,"swc-label",{"required":[4],"disabled":[4],"size":[1],"emphasis":[1],"captionPlacement":[1,"caption-placement"],"showLabelIcon":[4,"show-label-icon"],"testId":[513,"test-id"],"for":[1]}],[774,"swc-dropdown-trigger",{"width":[1],"size":[513],"showDropdownIcon":[516,"show-dropdown-icon"],"customClass":[1,"custom-class"],"testId":[1,"test-id"]}],[772,"swc-dropdown",{"isSubMenu":[516,"is-sub-menu"],"position":[520],"flip":[516],"testId":[1,"test-id"],"isExpanded":[32]},null,{"isExpanded":[{"isExpandedHandler":0}]}],[774,"swc-list",{"width":[1],"selection":[16],"options":[16],"searchable":[516],"placeholder":[513],"loading":[516],"maxHeight":[513,"max-height"],"customClass":[513,"custom-class"],"testId":[1,"test-id"],"hoveredItem":[32],"searchQueryValue":[32]},[[0,"change","handleInputEventChange"]]],[514,"swc-loader",{"size":[1],"testId":[513,"test-id"]}],[774,"swc-icon-button",{"disabled":[4],"size":[1],"intent":[1],"variant":[1],"arialLabel":[1,"arial-label"],"round":[4],"testId":[1,"test-id"]}],[774,"swc-input",{"variant":[1],"clearable":[4],"hasError":[4,"has-error"],"disabled":[4],"containerClass":[1,"container-class"],"value":[1],"handleInputChange":[16],"placeholder":[1],"type":[1],"testId":[513,"test-id"]}],[774,"swc-list-item",{"selected":[4],"disabled":[4],"hideOnClick":[4,"hide-on-click"],"testId":[1,"test-id"]}],[774,"swc-button",{"intent":[513],"variant":[513],"size":[513],"width":[1],"disabled":[4],"type":[513],"round":[4],"isIcon":[4,"is-icon"],"customClass":[1,"custom-class"],"testId":[1,"test-id"]}],[514,"swc-svg-icon",{"name":[513],"variant":[513],"size":[513],"color":[513],"opacity":[513],"testId":[513,"test-id"],"titleProp":[513,"title"]}]]],["p-8830849d",[[514,"swc-tour-guide-step",{"heading":[1],"content":[1],"dismissible":[4],"hasPrevious":[4,"has-previous"],"hasNext":[4,"has-next"],"isLastStep":[4,"is-last-step"],"currentIndex":[2,"current-index"],"numberOfSteps":[2,"number-of-steps"],"startTour":[4,"start-tour"],"variant":[1],"testId":[513,"test-id"]}]]],["p-9b886706",[[514,"swc-checkbox",{"value":[513],"checked":[1540],"error":[4],"disabled":[516],"falseValue":[513,"false-value"],"label":[513],"isIndeterminate":[4,"is-indeterminate"],"testId":[513,"test-id"]}]]],["p-baa72403",[[774,"swc-tag",{"instanceId":[2,"instance-id"],"dismissible":[4],"testId":[513,"test-id"]}]]],["p-7f061876",[[514,"swc-multiple-file",{"fileInfo":[16],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"uniqueId":[513,"unique-id"]}],[514,"swc-single-file",{"fileInfo":[16],"extended":[516],"thumbnail":[513],"inverted":[516],"hasError":[516,"has-error"],"progress":[514],"uniqueId":[513,"unique-id"]}]]]]'),e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,d as s,h as a}from"./p-
|
|
1
|
+
import{r as e,d as s,h as a}from"./p-DdKztCEo.js";const i=class{constructor(a){e(this,a),this.closeModal=s(this,"closeModal",7)}isModalOpen=!1;closeOnEsc=!0;closeOnOverlayClick=!0;size="sm";position="right";testId="";closeModal;closeDialog=()=>{this.closeModal.emit()};render(){return a("swc-modal-root",{key:"2109a329ba0c16d3c3670e113991950ed1aca947",isModalOpen:this.isModalOpen,closeOnEsc:this.closeOnEsc,closeOnOverlayClick:this.closeOnOverlayClick,onCloseModal:this.closeDialog,"data-testid":`swc-side-panel-${this.testId}`},a("div",{key:"29ee628803432a2d2b63b03ca20c6dd211153199",class:`sfe-side-panel sfe-side-panel--${this.position} sfe-side-panel--${this.size}`},a("header",{key:"d1397bcabb9ba65e5fcf68f9144d11a6df96a02f",class:"sfe-side-panel__header"},a("div",{key:"b0b772cc8ab15030f1c0f6fb0260c6230d689416"},a("h3",{key:"18d24ba7ab8ff62b372fe968971f17b03548d3c8",class:"sfe-side-panel__title"},a("slot",{key:"577dbc3cd9c873e9b5b052ab5227999f66a01885",name:"title"})),a("p",{key:"0dd48b9a644f6f777167fe35ae26012a6dfc9999",class:"sfe-side-panel__description"},a("slot",{key:"b0cfbbc74b73e1f82f192e7a9ed6627767c7fa23",name:"description"}))),a("swc-button",{key:"0322a40064c54b9d9d331dc85d1f81c17d551563",round:!0,intent:"neutral",variant:"bare",size:"md","aria-label":"Close",onClick:this.closeDialog},"×")),a("section",{key:"6f3695ffa95dc177592d91d3b6071de30755eda4",class:"sfe-side-panel__body"},a("slot",{key:"adb6cf84a662c0719a8564aae686c621c1cf62e9",name:"body"})),a("footer",{key:"6181329d9d70504c0048c6604c320168129607b0",class:"sfe-side-panel__footer"},a("slot",{key:"538c84d304e9675f8281ac2f2646b7d1e16a2d33",name:"footer"}))))}};i.style=".sfe-side-panel.sc-swc-side-panel{display:flex;flex-direction:column;height:100vh;background-color:white;position:fixed;top:0;bottom:0}.sfe-side-panel--right.sc-swc-side-panel{right:0;animation:slide-left 0.3s ease}.sfe-side-panel--left.sc-swc-side-panel{left:0;animation:slide-right 0.3s ease}.sfe-side-panel--sm.sc-swc-side-panel{width:360px}.sfe-side-panel--md.sc-swc-side-panel{width:480px}.sfe-side-panel--lg.sc-swc-side-panel{width:640px}.sfe-side-panel__header.sc-swc-side-panel{display:flex;justify-content:space-between;align-items:center;padding:1em;border-bottom:1px solid #ccc}.sfe-side-panel__title.sc-swc-side-panel{font-size:1rem;font-weight:500;margin:0}.sfe-side-panel__description.sc-swc-side-panel{font-size:0.875rem;color:gray;margin:0}.sfe-side-panel__body.sc-swc-side-panel{padding:1em;overflow-y:auto}.sfe-side-panel__footer.sc-swc-side-panel{padding:1em;margin:auto auto 2em 0;text-align:right}@keyframes slide-left{from{opacity:0;transform:translateX(50%)}}@keyframes slide-right{from{opacity:0;transform:translateX(-50%)}}";export{i as swc_side_panel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as s}from"./p-
|
|
1
|
+
import{r as e,h as t,H as s}from"./p-DdKztCEo.js";const o=class{constructor(t){e(this,t)}testId="";render(){return t(s,{key:"e860ed5f9c44eb666d7c996b106ea2624c847b9c",class:"sfe-table-footer","data-testid":`swc-table-footer-${this.testId}`},t("slot",{key:"f743bab38b277c4713dbe4950ba12fe2c3b706f8"}))}};export{o as swc_table_footer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,d as s,e as r,h as o,H as
|
|
1
|
+
import{r as e,d as s,e as r,h as o,H as t}from"./p-DdKztCEo.js";const a="solid",i={info:{icon:"Error Circle",subtle:{iconColor:"var(--sfe-color-icon-info-secondary)"}},error:{icon:"Warning",subtle:{iconColor:"var(--sfe-color-icon-critical-secondary)"}},success:{icon:"Checkmark Circle",subtle:{iconColor:"var(--sfe-color-icon-positive-secondary)"}},warning:{icon:"Error Circle",subtle:{iconColor:"var(--sfe-color-icon-warning-secondary)"}}},l=class{constructor(r){e(this,r),this.alertDismissed=s(this,"alertDismissed",7)}get hostElement(){return r(this)}message="Display the message here";intent=a;variant="info";position="top";isVisible=!1;iconButtonAriaLabel="Dismiss alert";alertDismissed;alertIcon={};dismissIconColor=this.computeDismissIconColor();handlePropChange(){this.alertIcon=this.computeAlertIcon(),this.dismissIconColor=this.computeDismissIconColor()}async show(){return this.isVisible=!0,Promise.resolve()}async hide(){return this.isVisible=!1,this.alertDismissed.emit(),Promise.resolve()}computeAlertIcon(){return{name:i[this.variant].icon,color:this.intent===a?"var(--sfe-color-icon-default-inverted-secondary)":i[this.variant][this.intent].iconColor,variant:this.intent===a?"outline":"filled"}}computeDismissIconColor(){return this.intent===a?"var(--sfe-color-icon-default-inverted-secondary)":"var(--sfe-color-icon-default-primary)"}dismissAlert=()=>this.hide();componentWillLoad(){this.handlePropChange()}render(){return o(t,{key:"9717a841efbdb59aacfbe6cbae6085852c9212ef"},this.isVisible&&o("div",{key:"5687d5bc302902fb6b5d92b974325e3d5a5dc041",role:"alert",class:`sfe-alert ${this.variant} ${this.intent} ${this.position}`,"aria-labelledby":"sfe-alert__display-text-id","data-testid":"sfe-alert"},o("div",{key:"43fa23b3e41289f02caa35b9ef1c5f02ed21574c",class:"sfe-alert__message-group"},o("swc-svg-icon",{key:"591752876c9245ee8c5f84e4cf62e13c58afc7ad",name:this.alertIcon?.name,variant:"filled",size:"16",color:this.alertIcon?.color}),o("p",{key:"68d578a9277fe5ed22f44737f7aaebaa709b5e4f",class:"sfe-alert__display-text",id:"sfe-alert__display-text-id"},this.message)),o("div",{key:"8489f4215dde7c1ee967d688b6af34e4634633e7",class:"sfe-alert__icon-group",onClick:this.dismissAlert},o("swc-button",{key:"858bd60ef365e44d5a50aa9b65df6a3c93240115",intent:"neutral",variant:"bare","aria-label":this.iconButtonAriaLabel},o("swc-svg-icon",{key:"dee2f2e84fdb4f4d653cfaa4974d703bb36782d1",name:"Dismiss",variant:"filled",size:"16",color:this.dismissIconColor})))))}};l.style='.sc-swc-alert-h{display:block}.sfe-alert.sc-swc-alert{display:flex;position:fixed;z-index:var(--sfe-stack-level-alert);justify-content:space-between;width:100%;border-radius:var(--sfe-sizing-radius-xsmall);padding:var(--sfe-sizing-padding-mid)}.sfe-alert.top.sc-swc-alert{top:0;left:0}.sfe-alert.bottom.sc-swc-alert{bottom:0;left:0}.sfe-alert__icon-group.sc-swc-alert{position:relative;cursor:pointer}.sfe-alert__icon-group.sc-swc-alert:hover::after{content:"";position:absolute;inset:0;border-radius:var(--sfe-sizing-radius-default, 8px);background-color:transparent;z-index:0}.sfe-alert.solid.sc-swc-alert{color:var(--sfe-color-text-default-inverted-primary)}.sfe-alert.solid.info.sc-swc-alert{background-color:var(--sfe-color-fill-info-solid)}.sfe-alert.solid.error.sc-swc-alert{background-color:var(--sfe-color-fill-critical-solid)}.sfe-alert.solid.success.sc-swc-alert{background-color:var(--sfe-color-fill-positive-solid)}.sfe-alert.solid.warning.sc-swc-alert{background-color:var(--sfe-color-fill-warning-solid)}.sfe-alert.subtle.sc-swc-alert{color:var(--sfe-color-text-default-primary)}.sfe-alert.subtle.info.sc-swc-alert{background-color:var(--sfe-color-fill-info-lightest);border-top:2px solid var(--sfe-color-border-info-solid)}.sfe-alert.subtle.error.sc-swc-alert{background-color:var(--sfe-color-fill-critical-lightest);border-top:2px solid var(--sfe-color-border-critical-solid)}.sfe-alert.subtle.success.sc-swc-alert{background-color:var(--sfe-color-fill-positive-lightest);border-top:2px solid var(--sfe-color-border-positive-solid)}.sfe-alert.subtle.warning.sc-swc-alert{background-color:var(--sfe-color-fill-warning-lightest);border-top:2px solid var(--sfe-color-border-warning-solid)}.sfe-alert__display-text.sc-swc-alert{margin:0;margin-left:4px;font-size:14px;font-weight:400}.sfe-alert__message-group.sc-swc-alert{display:flex;align-items:center}.shr-alert-enter-active.sc-swc-alert-h,.shr-alert-leave-active.sc-swc-alert-h{transition:opacity 0.5s ease}.shr-alert-enter.sc-swc-alert-h,.shr-alert-leave-to.sc-swc-alert-h{opacity:0}';export{l as swc_alert}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,d as c,e as s,h as t,H as h}from"./p-
|
|
1
|
+
import{r as e,d as c,e as s,h as t,H as h}from"./p-DdKztCEo.js";import{h as r,u as o}from"./p-Dcu5mHhz.js";const a=class{constructor(s){e(this,s),this.changeGroupCheckbox=c(this,"changeGroupCheckbox",7)}options;direction="row";value=[];testId="";changeGroupCheckbox;checkboxChangeHandler(e){const{value:c,checked:s}=e.detail;switch(s){case!0:if(this.value.includes(c)){const e=[...this.value,c],s=new Set(e);this.value=Array.from(s)}else this.value=[...this.value,c];break;case!1:this.value.includes(c)&&(this.value=this.value.filter((e=>e!==c)))}s&&!this.value.includes(c)&&(this.value=[...this.value,c]),!s&&this.value.includes(c)&&(this.value=this.value.filter((e=>e!==c)))}get hostEl(){return s(this)}valueChangeHandler(e){this.changeGroupCheckbox.emit(e)}render(){const e=r(this.hostEl,"content");return t(h,{key:"eab0f0ce8d7e173620fbe5d895c63178fa68bb05"},t("div",{key:"0c224d5a018fbc8e789012440cc296a41ce0cf29",class:`sfe-checkbox-grp-wrapper sfe-checkbox-grp-wrapper--${this.direction}`,id:o().generate("swc-grp-checkbox"),"data-testid":`swc-grp-checkbox-${this.testId}`},!e&&this.options?.length>0&&this.options.map((e=>t("swc-checkbox",{key:e.value,value:e.value,label:e.label,checked:this.value.includes(e.value)}))),t("slot",{key:"c443149020b8533f38ff79c9bcb8526b6561e8d2",name:"content"})))}static get watchers(){return{value:[{valueChangeHandler:0}]}}};a.style=".sc-swc-checkbox-group-h .sfe-checkbox-grp-wrapper.sc-swc-checkbox-group{display:flex}.sc-swc-checkbox-group-h .sfe-checkbox-grp-wrapper--row.sc-swc-checkbox-group{flex-direction:row;align-items:center;gap:12px}.sc-swc-checkbox-group-h .sfe-checkbox-grp-wrapper--column.sc-swc-checkbox-group{flex-direction:column;gap:12px;justify-content:center}";export{a as swc_checkbox_group}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,d as s,h as i,H as l}from"./p-6jVzC3VV.js";import{u as t}from"./p-Dcu5mHhz.js";const c=e=>e&&e.length>0?e.map(((e,s)=>{const i=e.name;return{id:s,name:i.substring(0,i.lastIndexOf("."))||i,size:`${(e.size/1024/1024).toFixed(2)} MB`}})):[],a=e=>0===Object.keys(e).length&&e.constructor===Object,n=class{constructor(i){e(this,i),this.updateRemove=s(this,"updateRemove",7),this.updateReplace=s(this,"updateReplace",7),this.uploadRetry=s(this,"uploadRetry",7)}fileInfo=[];inverted=!1;hasError=!1;progress=0;uniqueId=`multiple-file-${t().generate()}`;updateRemove;updateReplace;uploadRetry;get fileDetails(){return c(this.fileInfo)}handleUpdateReplace=(e,s)=>{e.preventDefault(),this.updateReplace.emit(s)};handleUpdateRemove=(e,s)=>{e.preventDefault(),this.updateRemove.emit(s)};handleUploadRetry=e=>{e.preventDefault(),this.uploadRetry.emit(null)};render(){return i(l,{key:"2ac121e3a8320c32e694a4e4a684e0527c9ef2db"},i("section",{key:"42e4a20a2b096218b8416e94b9f097ee16de88bd",class:{"multiple-file-choosen":!0,inverted:this.inverted,uploaded:100===this.progress,"has-error":this.hasError}},this.fileDetails.map(((e,s)=>i("div",{class:"multiple-file-choosen__wrapper",key:s},i("div",{class:"multiple-file-choosen__name"},e.name),i("div",{class:"multiple-file-choosen__size"},e.size),i("div",{class:"d-flex align-items-center justify-content-end"},i("swc-button",{size:"lg",intent:"brand",variant:"bare","aria-label":"replace",class:"mr-1",onClick:s=>this.handleUpdateReplace(s,e.id)},i("span",null,"Replace")),i("swc-icon-button",{intent:"neutral",variant:"bare",size:"lg","aria-label":"dismiss",onClick:s=>this.handleUpdateRemove(s,e.id)},i("swc-svg-icon",{name:"Dismiss",size:"16"})))))),this.progress>0&&100!==this.progress&&this.fileDetails.length>0&&!this.hasError&&i("swc-progress",{key:"3216027ca75a018466a9880f45522f24a08a0146",value:this.progress,max:100,class:"mt-2"}),!this.hasError&&this.fileDetails.length>0&&100===this.progress&&i("div",{key:"10e0c220f9d067b3a9fcb4465c774c5080cb6741",class:"d-flex align-items-center mt-2"},i("div",{key:"ae241bc2b77c88476fe00cb42bd2d969bcd074a8",class:"completed"},"Upload completed")),this.hasError&&i("div",{key:"f4145cd6d422f1aad9048c45d6446ab84a79b6df",class:"d-flex justify-content-between align-items-center mt-2"},i("div",{key:"12c0dea427fc9cf00fd181ff38d044f9c4ca9f73",class:"has-error"},i("swc-svg-icon",{key:"afff19f5d66979b48e136ea7b3e60f514f95215b",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"})),i("swc-button",{key:"bfb59f691bb78aaf21d2c129e2bcff7b9dc5266b",size:"lg",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.handleUploadRetry},i("span",{key:"6b6ef5ee8e0dfa93662b227773e1fc817e6b2fae"},"Retry")))))}};n.style=".sc-swc-multiple-file-h .me-2.sc-swc-multiple-file{margin-right:8px}.sc-swc-multiple-file-h .me-1.sc-swc-multiple-file{margin-right:4px}.sc-swc-multiple-file-h .mt-2.sc-swc-multiple-file{margin-top:8px}.sc-swc-multiple-file-h .d-flex.sc-swc-multiple-file{display:flex}.sc-swc-multiple-file-h .align-items-center.sc-swc-multiple-file{align-items:center}.sc-swc-multiple-file-h .justify-content-end.sc-swc-multiple-file{justify-content:flex-end}.sc-swc-multiple-file-h .justify-content-between.sc-swc-multiple-file{justify-content:space-between}.sc-swc-multiple-file-h .multiple-file-choosen.sc-swc-multiple-file{border-radius:var(--sfe-sizing-radius-default, 8px);background:var(--sfe-color-fill-neutral-lightest, #f5f7f9);padding:var(--sfe-sizing-gap-small, 8px) var(--sfe-sizing-gap-large, 16px) !important;margin-top:8px}.sc-swc-multiple-file-h .multiple-file-choosen.uploaded.sc-swc-multiple-file{background:var(--sfe-color-fill-brand-light, #e4edfc) !important}.sc-swc-multiple-file-h .multiple-file-choosen.inverted.sc-swc-multiple-file{border:1px solid var(--sfe-color-border-neutral-subtle, #dee3e7);background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-multiple-file-h .multiple-file-choosen.has-error.sc-swc-multiple-file{background:var(--sfe-color-fill-critical-light, #f8e0e0)}.sc-swc-multiple-file-h .multiple-file-choosen.has-error.inverted.sc-swc-multiple-file{border:1px solid var(--sfe-color-border-critical-solid, #a22827);background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-multiple-file-h .multiple-file-choosen__wrapper.sc-swc-multiple-file{display:grid;align-items:center;grid-template-columns:2fr 1fr 3fr;gap:22px}.sc-swc-multiple-file-h .multiple-file-choosen__name.sc-swc-multiple-file{color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:3rem}.sc-swc-multiple-file-h .multiple-file-choosen__size.sc-swc-multiple-file{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;white-space:nowrap}.sc-swc-multiple-file-h .multiple-file-choosen.sc-swc-multiple-file div.sc-swc-multiple-file div.completed.sc-swc-multiple-file{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-small, 0.75rem);font-style:normal;font-weight:400;line-height:14px}.sc-swc-multiple-file-h .multiple-file-choosen.sc-swc-multiple-file button.sc-swc-multiple-file span.sc-swc-multiple-file{color:var(--sfe-btn-color-content-bare-brand, #004ca6);font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-default, 0.875rem);font-style:normal;font-weight:400;line-height:16px}.sc-swc-multiple-file-h .multiple-file-choosen.sc-swc-multiple-file button.has-error.sc-swc-multiple-file span.sc-swc-multiple-file{color:var(--sfe-btn-color-content-bare-critical, #a22827)}";const f=class{constructor(i){e(this,i),this.updateRemove=s(this,"updateRemove",7),this.updateReplace=s(this,"updateReplace",7),this.uploadRetry=s(this,"uploadRetry",7)}fileInfo=[];extended=!1;thumbnail="file";inverted=!1;hasError=!1;progress=0;uniqueId=`single-file-${t().generate()}`;updateRemove;updateReplace;uploadRetry;get getFileExtension(){if(this.fileInfo.length>0){const e=this.fileInfo[0].name;return e.split(".").pop()?.toUpperCase()||""}return""}get fileExtensionColour(){return"var(--sfe-color-non-semantic-content-violet-subtle, #4E38BC)"}get fileFontSize(){return this.getFileExtension.length<=3?"13px":"10px"}get shouldShowFile(){return"file"===this.thumbnail||"photo"===this.thumbnail&&this.fileInfo.length>0&&!["PNG","JPEG","JPG"].includes(this.getFileExtension)}get createImageUrl(){return this.fileInfo.length>0?URL.createObjectURL(this.fileInfo[0]):""}get fileDetails(){return c(this.fileInfo)[0]}retryUpload=e=>{e.preventDefault(),this.uploadRetry.emit(null)};replaceFile=e=>{e.preventDefault(),this.updateReplace.emit(null)};removeFile=e=>{this.updateRemove.emit(e)};render(){return i(l,{key:"2fab112e5c844fa5f97055b99a0b361eb237dea1"},i("section",{key:"639d461a0e960a6aa07caa6c75fc121e974aa7b3",class:{"single-file-choosen":!0,inverted:this.inverted,uploaded:100===this.progress,"has-error":this.hasError,extended:this.extended}},!this.extended&&i("div",{key:"78f483485b126aba7c9a21eef0f9847886da8e33",class:"single-file-choosen__wrapper"},i("div",{key:"f47b8180558dd71e55526d80ec838b29d3c54ae3",class:"single-file-choosen__wrapper__name"},this.hasError&&i("swc-svg-icon",{key:"e0b2d269e2dd93bdc69bd60d1a40cbceeba15530",class:"me-2",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"}),this.fileDetails.name),i("div",{key:"f14e897a0d73781f2cec35d330856b9ad7b41d53",class:"single-file-choosen__wrapper__size"},this.fileDetails.size),i("div",{key:"fe7ca3a0596fb70e2b176e37afca63a8266e754e"},this.progress>0&&100!==this.progress&&!a(this.fileDetails)&&!this.extended&&!this.hasError&&i("swc-progress",{key:"f44ed4a8b31ef8b0e9642b26c40f8da9e382130e",value:this.progress,max:100})),i("div",{key:"46a166784ebf4e862abb6c1ab0768d87d660c854",class:"d-flex align-items-center justify-content-end"},this.hasError&&!a(this.fileDetails)&&i("swc-button",{key:"2476338915301207f6a5beb8feda23c9e6239482",size:"lg",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.retryUpload},i("span",{key:"f505613e2e793ab05ee4febff317a44dd0109747",class:"btn-span"},"Retry")),!this.hasError&&!a(this.fileDetails)&&(0===this.progress||100===this.progress)&&i("swc-button",{key:"2b999a7a2145ec98bd5831bede2b8ba44ac101c3",size:"lg",intent:"brand",variant:"bare","aria-label":"replace",class:"me-1",onClick:this.replaceFile},i("span",{key:"2fccac6c8969b39b81ab67d709202144189295aa",class:"btn-span"},"Replace")),i("swc-icon-button",{key:"d3073d0cd23f07dca6536f3f92d51d07f4fbf56e",intent:"neutral",variant:"bare",size:"lg","aria-label":"dismiss",onClick:()=>this.removeFile(this.fileDetails.id)},i("swc-svg-icon",{key:"f38f18b3cc67200a7827c3a7bb33aa3df1f29ba9",name:"Dismiss",size:"16"})))),this.extended&&i("div",{key:"43a8ee67f8ebff72f424f3d440c177d36ee31bcc",class:{"single-file-choosen__extended-wrapper":!0,"no-thumbnail":"none"===this.thumbnail}},"none"!==this.thumbnail&&i("div",{key:"f3f19be181db8ef6814b0730d6f40bcb64f06f91",class:"file__extension"},this.shouldShowFile&&i("div",{key:"4b6f20045850df9b52554096e09c0bcc0e3590ed"},i("svg",{key:"cf71598fbe08e2a3c4ecd1cb826f1283d6df702b",width:"32",height:"40",viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"27d711f22f4ec2ac3a9540e74df1abcf4685de72",d:"M1 6C1 3.5 3.5 1 6 1H21.1071C21.9328 1 22.1149 1.10983 22.6954 1.70367C25.2864 4.35425 28.1524 7.58204 30.3895 9.88063C30.9814 10.4888 31 10.6512 31 11.5V33.5C31 36.5 29.5 39 26 39H6C2.5 39 1 36 1 33.5V6Z",fill:"white",stroke:this.fileExtensionColour,"stroke-width":"1.5"})),i("div",{key:"ee837e612c9f033fbcec55ee1ce0950dd3ffd2a8",class:"file-type",style:{color:this.fileExtensionColour,fontSize:this.fileFontSize}},this.getFileExtension)),"photo"===this.thumbnail&&["PNG","JPEG","JPG"].includes(this.getFileExtension)&&!a(this.fileDetails)&&i("div",{key:"32d1563799342b9f2aa8e3ebbac820ceb5f57bfa",class:"file-img"},i("img",{key:"0bc0df2523031afcfaeb54089c11ef08dd50454d",src:this.createImageUrl,alt:this.fileDetails.name}))),i("div",{key:"f279610d5ad3d4c22521a007a840e2506e3cb865",class:{file:!0,"ms-3":"none"!==this.thumbnail}},i("div",{key:"d221185222370b2d54633c065f01871af85c34ed",class:"file__identifier"},i("div",{key:"3d2ff31776de4987d4383bf90fc3c45a89918156",class:"file__identifier__name"},this.fileDetails.name),i("div",{key:"d200b7d35d69e6591f34eb112e308f582dc62973",class:"d-flex align-items-center justify-content-end"},this.hasError&&!a(this.fileDetails)&&i("swc-button",{key:"7be11951f87101f733d5b2f32df3fdcfdee175a0",size:"md",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.retryUpload},i("span",{key:"b7115268487a3f188a57efeda21236a9954574c1",class:"btn-span"},"Retry")),!this.hasError&&!a(this.fileDetails)&&(0===this.progress||100===this.progress)&&i("swc-button",{key:"d2661388b5050bfdb6a721d92039d67df5159d1a",size:"md",intent:"brand",variant:"bare","aria-label":"replace",class:"me-1",onClick:this.replaceFile},i("span",{key:"8b757acd9f74c3bd294c572c8586b1d4ed92b8b7",class:"btn-span"},"Replace")),i("swc-icon-button",{key:"46274785adfdc8127a6b92ab97732703d439c276",intent:"neutral",variant:"bare",size:"md","aria-label":"dismiss",onClick:()=>this.removeFile(this.fileDetails.id)},i("swc-svg-icon",{key:"1c9bcf75c9fb977a2861d4380a18aa4ce04761ff",name:"Dismiss",size:"16"})))),i("div",{key:"4f07be25cb80a617290097df6848165315dcdaeb",class:"file__identifier__size mt-3 d-flex align-items-center"},this.hasError&&i("div",{key:"05897812cb36ad1ef2c3f9ec93499462347b5855"},i("swc-svg-icon",{key:"4f8468089465ff447a34d5c9c98d4c7549729141","v-if":"hasError",class:"me-2",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"})),i("span",{key:"8b24ca1d228b070f1b9e4b9f2aa7e09e7e5ad379"},this.fileDetails.size)))),this.progress>0&&100!==this.progress&&this.extended&&!a(this.fileDetails)&&!this.hasError&&i("swc-progress",{key:"6fc1066072eed483fcfdd4316cee67e3dce75f95",value:this.progress,max:100})))}};f.style=".sc-swc-single-file-h .single-file-choosen.sc-swc-single-file{border-radius:var(--sfe-sizing-radius-default, 8px);background:var(--sfe-color-fill-neutral-lightest, #f5f7f9);padding:0 var(--sfe-sizing-gap-large, 16px)}.sc-swc-single-file-h .single-file-choosen.uploaded.sc-swc-single-file{background:var(--sfe-color-fill-brand-light, #e4edfc) !important}.sc-swc-single-file-h .single-file-choosen.inverted.sc-swc-single-file{border:1px solid var(--sfe-color-border-neutral-subtle, #dee3e7);background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-single-file-h .single-file-choosen.has-error.sc-swc-single-file{background:var(--sfe-color-fill-critical-light, #f8e0e0)}.sc-swc-single-file-h .single-file-choosen.has-error.inverted.sc-swc-single-file{border:1px solid var(--sfe-color-border-critical-solid, #a22827);background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-single-file-h .single-file-choosen.extended.sc-swc-single-file{padding:var(--sfe-sizing-gap-large, 16px) !important}.sc-swc-single-file-h .single-file-choosen.sc-swc-single-file .btn-span.sc-swc-single-file{color:var(--sfe-btn-color-content-bare-brand, #004ca6);font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-default, 0.875rem);font-style:normal;font-weight:400;line-height:16px}.sc-swc-single-file-h .single-file-choosen__wrapper.sc-swc-single-file{display:grid;align-items:center;grid-template-columns:2fr 1fr 3fr 1fr;gap:10px}.sc-swc-single-file-h .single-file-choosen__wrapper__name.sc-swc-single-file{color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:4.5rem}.sc-swc-single-file-h .single-file-choosen__wrapper__size.sc-swc-single-file{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;white-space:nowrap}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file{display:grid;align-items:center;grid-template-columns:1fr 24fr}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.no-thumbnail.sc-swc-single-file{grid-template-columns:1fr}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__extension.sc-swc-single-file{position:relative;width:32px;height:40px}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__extension.sc-swc-single-file .file-type.sc-swc-single-file{position:absolute;transform:translate(-50%, -50%);top:65%;left:50%}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__extension.sc-swc-single-file .file-img.sc-swc-single-file img.sc-swc-single-file{width:32px;height:32px;border-radius:4px}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__extension.sc-swc-single-file:empty{display:none}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__identifier.sc-swc-single-file{display:grid;grid-template-columns:3fr 1fr;align-items:center}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__identifier__name.sc-swc-single-file{color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;min-width:3.4rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__identifier__size.sc-swc-single-file span.sc-swc-single-file{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;white-space:nowrap}.sc-swc-single-file-h .single-file-choosen.sc-swc-single-file button.has-error.sc-swc-single-file span.sc-swc-single-file{color:var(--sfe-btn-color-content-bare-critical, #a22827)}.sc-swc-single-file-h .me-2.sc-swc-single-file{margin-right:8px}.sc-swc-single-file-h .me-1.sc-swc-single-file{margin-right:4px}.sc-swc-single-file-h .mt-2.sc-swc-single-file{margin-top:8px}.sc-swc-single-file-h .ms-3.sc-swc-single-file{margin-left:16px}.sc-swc-single-file-h .d-flex.sc-swc-single-file{display:flex}.sc-swc-single-file-h .align-items-center.sc-swc-single-file{align-items:center}.sc-swc-single-file-h .justify-content-end.sc-swc-single-file{justify-content:flex-end}.sc-swc-single-file-h .justify-content-between.sc-swc-single-file{justify-content:space-between}";export{n as swc_multiple_file,f as swc_single_file}
|
|
1
|
+
import{r as e,d as s,h as i,H as l}from"./p-DdKztCEo.js";import{u as t}from"./p-Dcu5mHhz.js";const c=e=>e&&e.length>0?e.map(((e,s)=>{const i=e.name;return{id:s,name:i.substring(0,i.lastIndexOf("."))||i,size:`${(e.size/1024/1024).toFixed(2)} MB`}})):[],a=e=>0===Object.keys(e).length&&e.constructor===Object,n=class{constructor(i){e(this,i),this.updateRemove=s(this,"updateRemove",7),this.updateReplace=s(this,"updateReplace",7),this.uploadRetry=s(this,"uploadRetry",7)}fileInfo=[];inverted=!1;hasError=!1;progress=0;uniqueId=`multiple-file-${t().generate()}`;updateRemove;updateReplace;uploadRetry;get fileDetails(){return c(this.fileInfo)}handleUpdateReplace=(e,s)=>{e.preventDefault(),this.updateReplace.emit(s)};handleUpdateRemove=(e,s)=>{e.preventDefault(),this.updateRemove.emit(s)};handleUploadRetry=e=>{e.preventDefault(),this.uploadRetry.emit(null)};render(){return i(l,{key:"2ac121e3a8320c32e694a4e4a684e0527c9ef2db"},i("section",{key:"42e4a20a2b096218b8416e94b9f097ee16de88bd",class:{"multiple-file-choosen":!0,inverted:this.inverted,uploaded:100===this.progress,"has-error":this.hasError}},this.fileDetails.map(((e,s)=>i("div",{class:"multiple-file-choosen__wrapper",key:s},i("div",{class:"multiple-file-choosen__name"},e.name),i("div",{class:"multiple-file-choosen__size"},e.size),i("div",{class:"d-flex align-items-center justify-content-end"},i("swc-button",{size:"lg",intent:"brand",variant:"bare","aria-label":"replace",class:"mr-1",onClick:s=>this.handleUpdateReplace(s,e.id)},i("span",null,"Replace")),i("swc-icon-button",{intent:"neutral",variant:"bare",size:"lg","aria-label":"dismiss",onClick:s=>this.handleUpdateRemove(s,e.id)},i("swc-svg-icon",{name:"Dismiss",size:"16"})))))),this.progress>0&&100!==this.progress&&this.fileDetails.length>0&&!this.hasError&&i("swc-progress",{key:"3216027ca75a018466a9880f45522f24a08a0146",value:this.progress,max:100,class:"mt-2"}),!this.hasError&&this.fileDetails.length>0&&100===this.progress&&i("div",{key:"10e0c220f9d067b3a9fcb4465c774c5080cb6741",class:"d-flex align-items-center mt-2"},i("div",{key:"ae241bc2b77c88476fe00cb42bd2d969bcd074a8",class:"completed"},"Upload completed")),this.hasError&&i("div",{key:"f4145cd6d422f1aad9048c45d6446ab84a79b6df",class:"d-flex justify-content-between align-items-center mt-2"},i("div",{key:"12c0dea427fc9cf00fd181ff38d044f9c4ca9f73",class:"has-error"},i("swc-svg-icon",{key:"afff19f5d66979b48e136ea7b3e60f514f95215b",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"})),i("swc-button",{key:"bfb59f691bb78aaf21d2c129e2bcff7b9dc5266b",size:"lg",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.handleUploadRetry},i("span",{key:"6b6ef5ee8e0dfa93662b227773e1fc817e6b2fae"},"Retry")))))}};n.style=".sc-swc-multiple-file-h .me-2.sc-swc-multiple-file{margin-right:8px}.sc-swc-multiple-file-h .me-1.sc-swc-multiple-file{margin-right:4px}.sc-swc-multiple-file-h .mt-2.sc-swc-multiple-file{margin-top:8px}.sc-swc-multiple-file-h .d-flex.sc-swc-multiple-file{display:flex}.sc-swc-multiple-file-h .align-items-center.sc-swc-multiple-file{align-items:center}.sc-swc-multiple-file-h .justify-content-end.sc-swc-multiple-file{justify-content:flex-end}.sc-swc-multiple-file-h .justify-content-between.sc-swc-multiple-file{justify-content:space-between}.sc-swc-multiple-file-h .multiple-file-choosen.sc-swc-multiple-file{border-radius:var(--sfe-sizing-radius-default, 8px);background:var(--sfe-color-fill-neutral-lightest, #f5f7f9);padding:var(--sfe-sizing-gap-small, 8px) var(--sfe-sizing-gap-large, 16px) !important;margin-top:8px}.sc-swc-multiple-file-h .multiple-file-choosen.uploaded.sc-swc-multiple-file{background:var(--sfe-color-fill-brand-light, #e4edfc) !important}.sc-swc-multiple-file-h .multiple-file-choosen.inverted.sc-swc-multiple-file{border:1px solid var(--sfe-color-border-neutral-subtle, #dee3e7);background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-multiple-file-h .multiple-file-choosen.has-error.sc-swc-multiple-file{background:var(--sfe-color-fill-critical-light, #f8e0e0)}.sc-swc-multiple-file-h .multiple-file-choosen.has-error.inverted.sc-swc-multiple-file{border:1px solid var(--sfe-color-border-critical-solid, #a22827);background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-multiple-file-h .multiple-file-choosen__wrapper.sc-swc-multiple-file{display:grid;align-items:center;grid-template-columns:2fr 1fr 3fr;gap:22px}.sc-swc-multiple-file-h .multiple-file-choosen__name.sc-swc-multiple-file{color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:3rem}.sc-swc-multiple-file-h .multiple-file-choosen__size.sc-swc-multiple-file{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;white-space:nowrap}.sc-swc-multiple-file-h .multiple-file-choosen.sc-swc-multiple-file div.sc-swc-multiple-file div.completed.sc-swc-multiple-file{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-small, 0.75rem);font-style:normal;font-weight:400;line-height:14px}.sc-swc-multiple-file-h .multiple-file-choosen.sc-swc-multiple-file button.sc-swc-multiple-file span.sc-swc-multiple-file{color:var(--sfe-btn-color-content-bare-brand, #004ca6);font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-default, 0.875rem);font-style:normal;font-weight:400;line-height:16px}.sc-swc-multiple-file-h .multiple-file-choosen.sc-swc-multiple-file button.has-error.sc-swc-multiple-file span.sc-swc-multiple-file{color:var(--sfe-btn-color-content-bare-critical, #a22827)}";const f=class{constructor(i){e(this,i),this.updateRemove=s(this,"updateRemove",7),this.updateReplace=s(this,"updateReplace",7),this.uploadRetry=s(this,"uploadRetry",7)}fileInfo=[];extended=!1;thumbnail="file";inverted=!1;hasError=!1;progress=0;uniqueId=`single-file-${t().generate()}`;updateRemove;updateReplace;uploadRetry;get getFileExtension(){if(this.fileInfo.length>0){const e=this.fileInfo[0].name;return e.split(".").pop()?.toUpperCase()||""}return""}get fileExtensionColour(){return"var(--sfe-color-non-semantic-content-violet-subtle, #4E38BC)"}get fileFontSize(){return this.getFileExtension.length<=3?"13px":"10px"}get shouldShowFile(){return"file"===this.thumbnail||"photo"===this.thumbnail&&this.fileInfo.length>0&&!["PNG","JPEG","JPG"].includes(this.getFileExtension)}get createImageUrl(){return this.fileInfo.length>0?URL.createObjectURL(this.fileInfo[0]):""}get fileDetails(){return c(this.fileInfo)[0]}retryUpload=e=>{e.preventDefault(),this.uploadRetry.emit(null)};replaceFile=e=>{e.preventDefault(),this.updateReplace.emit(null)};removeFile=e=>{this.updateRemove.emit(e)};render(){return i(l,{key:"2fab112e5c844fa5f97055b99a0b361eb237dea1"},i("section",{key:"639d461a0e960a6aa07caa6c75fc121e974aa7b3",class:{"single-file-choosen":!0,inverted:this.inverted,uploaded:100===this.progress,"has-error":this.hasError,extended:this.extended}},!this.extended&&i("div",{key:"78f483485b126aba7c9a21eef0f9847886da8e33",class:"single-file-choosen__wrapper"},i("div",{key:"f47b8180558dd71e55526d80ec838b29d3c54ae3",class:"single-file-choosen__wrapper__name"},this.hasError&&i("swc-svg-icon",{key:"e0b2d269e2dd93bdc69bd60d1a40cbceeba15530",class:"me-2",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"}),this.fileDetails.name),i("div",{key:"f14e897a0d73781f2cec35d330856b9ad7b41d53",class:"single-file-choosen__wrapper__size"},this.fileDetails.size),i("div",{key:"fe7ca3a0596fb70e2b176e37afca63a8266e754e"},this.progress>0&&100!==this.progress&&!a(this.fileDetails)&&!this.extended&&!this.hasError&&i("swc-progress",{key:"f44ed4a8b31ef8b0e9642b26c40f8da9e382130e",value:this.progress,max:100})),i("div",{key:"46a166784ebf4e862abb6c1ab0768d87d660c854",class:"d-flex align-items-center justify-content-end"},this.hasError&&!a(this.fileDetails)&&i("swc-button",{key:"2476338915301207f6a5beb8feda23c9e6239482",size:"lg",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.retryUpload},i("span",{key:"f505613e2e793ab05ee4febff317a44dd0109747",class:"btn-span"},"Retry")),!this.hasError&&!a(this.fileDetails)&&(0===this.progress||100===this.progress)&&i("swc-button",{key:"2b999a7a2145ec98bd5831bede2b8ba44ac101c3",size:"lg",intent:"brand",variant:"bare","aria-label":"replace",class:"me-1",onClick:this.replaceFile},i("span",{key:"2fccac6c8969b39b81ab67d709202144189295aa",class:"btn-span"},"Replace")),i("swc-icon-button",{key:"d3073d0cd23f07dca6536f3f92d51d07f4fbf56e",intent:"neutral",variant:"bare",size:"lg","aria-label":"dismiss",onClick:()=>this.removeFile(this.fileDetails.id)},i("swc-svg-icon",{key:"f38f18b3cc67200a7827c3a7bb33aa3df1f29ba9",name:"Dismiss",size:"16"})))),this.extended&&i("div",{key:"43a8ee67f8ebff72f424f3d440c177d36ee31bcc",class:{"single-file-choosen__extended-wrapper":!0,"no-thumbnail":"none"===this.thumbnail}},"none"!==this.thumbnail&&i("div",{key:"f3f19be181db8ef6814b0730d6f40bcb64f06f91",class:"file__extension"},this.shouldShowFile&&i("div",{key:"4b6f20045850df9b52554096e09c0bcc0e3590ed"},i("svg",{key:"cf71598fbe08e2a3c4ecd1cb826f1283d6df702b",width:"32",height:"40",viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"27d711f22f4ec2ac3a9540e74df1abcf4685de72",d:"M1 6C1 3.5 3.5 1 6 1H21.1071C21.9328 1 22.1149 1.10983 22.6954 1.70367C25.2864 4.35425 28.1524 7.58204 30.3895 9.88063C30.9814 10.4888 31 10.6512 31 11.5V33.5C31 36.5 29.5 39 26 39H6C2.5 39 1 36 1 33.5V6Z",fill:"white",stroke:this.fileExtensionColour,"stroke-width":"1.5"})),i("div",{key:"ee837e612c9f033fbcec55ee1ce0950dd3ffd2a8",class:"file-type",style:{color:this.fileExtensionColour,fontSize:this.fileFontSize}},this.getFileExtension)),"photo"===this.thumbnail&&["PNG","JPEG","JPG"].includes(this.getFileExtension)&&!a(this.fileDetails)&&i("div",{key:"32d1563799342b9f2aa8e3ebbac820ceb5f57bfa",class:"file-img"},i("img",{key:"0bc0df2523031afcfaeb54089c11ef08dd50454d",src:this.createImageUrl,alt:this.fileDetails.name}))),i("div",{key:"f279610d5ad3d4c22521a007a840e2506e3cb865",class:{file:!0,"ms-3":"none"!==this.thumbnail}},i("div",{key:"d221185222370b2d54633c065f01871af85c34ed",class:"file__identifier"},i("div",{key:"3d2ff31776de4987d4383bf90fc3c45a89918156",class:"file__identifier__name"},this.fileDetails.name),i("div",{key:"d200b7d35d69e6591f34eb112e308f582dc62973",class:"d-flex align-items-center justify-content-end"},this.hasError&&!a(this.fileDetails)&&i("swc-button",{key:"7be11951f87101f733d5b2f32df3fdcfdee175a0",size:"md",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.retryUpload},i("span",{key:"b7115268487a3f188a57efeda21236a9954574c1",class:"btn-span"},"Retry")),!this.hasError&&!a(this.fileDetails)&&(0===this.progress||100===this.progress)&&i("swc-button",{key:"d2661388b5050bfdb6a721d92039d67df5159d1a",size:"md",intent:"brand",variant:"bare","aria-label":"replace",class:"me-1",onClick:this.replaceFile},i("span",{key:"8b757acd9f74c3bd294c572c8586b1d4ed92b8b7",class:"btn-span"},"Replace")),i("swc-icon-button",{key:"46274785adfdc8127a6b92ab97732703d439c276",intent:"neutral",variant:"bare",size:"md","aria-label":"dismiss",onClick:()=>this.removeFile(this.fileDetails.id)},i("swc-svg-icon",{key:"1c9bcf75c9fb977a2861d4380a18aa4ce04761ff",name:"Dismiss",size:"16"})))),i("div",{key:"4f07be25cb80a617290097df6848165315dcdaeb",class:"file__identifier__size mt-3 d-flex align-items-center"},this.hasError&&i("div",{key:"05897812cb36ad1ef2c3f9ec93499462347b5855"},i("swc-svg-icon",{key:"4f8468089465ff447a34d5c9c98d4c7549729141","v-if":"hasError",class:"me-2",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"})),i("span",{key:"8b24ca1d228b070f1b9e4b9f2aa7e09e7e5ad379"},this.fileDetails.size)))),this.progress>0&&100!==this.progress&&this.extended&&!a(this.fileDetails)&&!this.hasError&&i("swc-progress",{key:"6fc1066072eed483fcfdd4316cee67e3dce75f95",value:this.progress,max:100})))}};f.style=".sc-swc-single-file-h .single-file-choosen.sc-swc-single-file{border-radius:var(--sfe-sizing-radius-default, 8px);background:var(--sfe-color-fill-neutral-lightest, #f5f7f9);padding:0 var(--sfe-sizing-gap-large, 16px)}.sc-swc-single-file-h .single-file-choosen.uploaded.sc-swc-single-file{background:var(--sfe-color-fill-brand-light, #e4edfc) !important}.sc-swc-single-file-h .single-file-choosen.inverted.sc-swc-single-file{border:1px solid var(--sfe-color-border-neutral-subtle, #dee3e7);background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-single-file-h .single-file-choosen.has-error.sc-swc-single-file{background:var(--sfe-color-fill-critical-light, #f8e0e0)}.sc-swc-single-file-h .single-file-choosen.has-error.inverted.sc-swc-single-file{border:1px solid var(--sfe-color-border-critical-solid, #a22827);background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-single-file-h .single-file-choosen.extended.sc-swc-single-file{padding:var(--sfe-sizing-gap-large, 16px) !important}.sc-swc-single-file-h .single-file-choosen.sc-swc-single-file .btn-span.sc-swc-single-file{color:var(--sfe-btn-color-content-bare-brand, #004ca6);font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-default, 0.875rem);font-style:normal;font-weight:400;line-height:16px}.sc-swc-single-file-h .single-file-choosen__wrapper.sc-swc-single-file{display:grid;align-items:center;grid-template-columns:2fr 1fr 3fr 1fr;gap:10px}.sc-swc-single-file-h .single-file-choosen__wrapper__name.sc-swc-single-file{color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:4.5rem}.sc-swc-single-file-h .single-file-choosen__wrapper__size.sc-swc-single-file{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;white-space:nowrap}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file{display:grid;align-items:center;grid-template-columns:1fr 24fr}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.no-thumbnail.sc-swc-single-file{grid-template-columns:1fr}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__extension.sc-swc-single-file{position:relative;width:32px;height:40px}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__extension.sc-swc-single-file .file-type.sc-swc-single-file{position:absolute;transform:translate(-50%, -50%);top:65%;left:50%}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__extension.sc-swc-single-file .file-img.sc-swc-single-file img.sc-swc-single-file{width:32px;height:32px;border-radius:4px}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__extension.sc-swc-single-file:empty{display:none}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__identifier.sc-swc-single-file{display:grid;grid-template-columns:3fr 1fr;align-items:center}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__identifier__name.sc-swc-single-file{color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;min-width:3.4rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sc-swc-single-file-h .single-file-choosen__extended-wrapper.sc-swc-single-file .file__identifier__size.sc-swc-single-file span.sc-swc-single-file{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-large, 1rem);font-style:normal;font-weight:400;line-height:20px;white-space:nowrap}.sc-swc-single-file-h .single-file-choosen.sc-swc-single-file button.has-error.sc-swc-single-file span.sc-swc-single-file{color:var(--sfe-btn-color-content-bare-critical, #a22827)}.sc-swc-single-file-h .me-2.sc-swc-single-file{margin-right:8px}.sc-swc-single-file-h .me-1.sc-swc-single-file{margin-right:4px}.sc-swc-single-file-h .mt-2.sc-swc-single-file{margin-top:8px}.sc-swc-single-file-h .ms-3.sc-swc-single-file{margin-left:16px}.sc-swc-single-file-h .d-flex.sc-swc-single-file{display:flex}.sc-swc-single-file-h .align-items-center.sc-swc-single-file{align-items:center}.sc-swc-single-file-h .justify-content-end.sc-swc-single-file{justify-content:flex-end}.sc-swc-single-file-h .justify-content-between.sc-swc-single-file{justify-content:space-between}";export{n as swc_multiple_file,f as swc_single_file}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,d as s,h as t}from"./p-
|
|
1
|
+
import{r as e,d as s,h as t}from"./p-DdKztCEo.js";const i=class{constructor(t){e(this,t),this.viewPrevious=s(this,"viewPrevious",7),this.viewNext=s(this,"viewNext",7),this.dismissTour=s(this,"dismissTour",7),this.endTour=s(this,"endTour",7)}heading;content;dismissible=!1;hasPrevious=!1;hasNext=!1;isLastStep=!1;currentIndex=0;numberOfSteps=1;startTour=!1;variant;testId="";viewPrevious;viewNext;dismissTour;endTour;handleDismissTour=()=>{this.dismissTour.emit()};handleNext=()=>{this.viewNext.emit()};handlePrevious=()=>{this.viewPrevious.emit()};handleEndTour=()=>{this.endTour.emit()};render(){return this.startTour&&t("div",{key:"e27322d85134944e25c5d05ab95e2916f1c40399",class:{[`sfe-tour-guide-step sfe-tour-guide-step--${this.variant}`]:!0},"data-testid":`swc-tour-guide-step-${this.testId}`},t("div",{key:"89beda0ce5d470946e1e8719175aded4939108a5",class:"flex-wrapper"},t("p",{key:"8072c923880a0a2047eaff3942fb2bcb143d7b40",class:"sfe-tour-guide-step__title m-0",innerHTML:this.heading}),t("swc-icon-button",{key:"855f0cf8b715efc6e71ff2ee5961568dbf067c71","v-if":"dismissible","aria-label":"dismiss tour",intent:"light"===this.variant?"neutral":"inverse",variant:"bare",size:"sm",round:!0,onClick:this.handleDismissTour},t("swc-svg-icon",{key:"574481d789df8046da8aa83a517e9a76ed53ab18",name:"Dismiss",color:"currentColor",size:"12"}))),t("div",{key:"194d1a1a05481b12e5950c1b841335c456338204",class:"sfe-tour-guide-step__content",innerHTML:this.content}),t("div",{key:"0cbfb23734e524902650368e2573c5bf8afab5ee",class:"flex-wrapper col-gap-10"},t("p",{key:"d277077e6fe895efdf1567eb57c50dd44bb9e5e1",class:"sfe-tour-guide-step__steps-info m-0"},this.currentIndex+1," of ",this.numberOfSteps),t("div",{key:"5d38c2a465fc472e5fc08b44ca3e42fac257f7ca"},this.hasPrevious&&t("swc-button",{key:"9f20cc678ed3bb5809636b90ca5aa8a7dc8c2d69",intent:"light"===this.variant?"brand":"inverse",variant:"bare",size:"xs",class:"sfe-tour-guide-step__back-btn",onClick:this.handlePrevious},"Back"),this.hasNext&&t("swc-button",{key:"460b925732e4b8958b35f85609fd455bb8bdc3e6",intent:"light"===this.variant?"brand":"inverse",size:"xs",onClick:this.handleNext},"Next"),this.isLastStep&&t("swc-button",{key:"dd094e2da9685e5bfc8b614dd4f39e4568ed3013",intent:"light"===this.variant?"brand":"inverse",size:"xs",onClick:this.handleEndTour},"Done"))))}};i.style=".sc-swc-tour-guide-step-h .sfe-tour-guide-step__title.sc-swc-tour-guide-step{font-family:var(--sfe-typography-font-sans-font, Matter);font-size:14px;font-style:normal;font-weight:500;line-height:16px}.sc-swc-tour-guide-step-h .sfe-tour-guide-step__content.sc-swc-tour-guide-step{font-family:var(--sfe-typography-font-sans-font, Matter);font-size:12px;font-style:normal;font-weight:400;line-height:16px}.sc-swc-tour-guide-step-h .sfe-tour-guide-step__back-btn.sc-swc-tour-guide-step{margin-inline-end:4px}.sc-swc-tour-guide-step-h .sfe-tour-guide-step__steps-info.sc-swc-tour-guide-step{font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-small, 12px);font-style:normal;font-weight:400;line-height:14px}.sc-swc-tour-guide-step-h .sfe-tour-guide-step--light.sc-swc-tour-guide-step .sfe-tour-guide-step__title.sc-swc-tour-guide-step{color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95))}.sc-swc-tour-guide-step-h .sfe-tour-guide-step--light.sc-swc-tour-guide-step .sfe-tour-guide-step__content.sc-swc-tour-guide-step{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8))}.sc-swc-tour-guide-step-h .sfe-tour-guide-step--light.sc-swc-tour-guide-step .sfe-tour-guide-step__steps-info.sc-swc-tour-guide-step{color:var(--sfe-color-text-default-muted, rgba(0, 0, 0, 0.5))}.sc-swc-tour-guide-step-h .sfe-tour-guide-step--brand.sc-swc-tour-guide-step .sfe-tour-guide-step__title.sc-swc-tour-guide-step{color:var(--sfe-color-text-default-inverted-primary, rgba(255, 255, 255, 0.95))}.sc-swc-tour-guide-step-h .sfe-tour-guide-step--brand.sc-swc-tour-guide-step .sfe-tour-guide-step__content.sc-swc-tour-guide-step{color:var(--sfe-color-text-default-inverted-primary, rgba(255, 255, 255, 0.95))}.sc-swc-tour-guide-step-h .sfe-tour-guide-step--brand.sc-swc-tour-guide-step .sfe-tour-guide-step__steps-info.sc-swc-tour-guide-step{color:var(--color-text-inverted-weakest, rgba(255, 255, 255, 0.5))}.sc-swc-tour-guide-step-h .flex-wrapper.sc-swc-tour-guide-step{width:100%;display:flex;justify-content:space-between;align-items:center}.sc-swc-tour-guide-step-h .col-gap-10.sc-swc-tour-guide-step{column-gap:10px}.sc-swc-tour-guide-step-h .m-0.sc-swc-tour-guide-step{margin:0}";export{i as swc_tour_guide_step}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,d as o,e as s,h as i,H as a}from"./p-
|
|
1
|
+
import{r,d as o,e as s,h as i,H as a}from"./p-DdKztCEo.js";import{u as e}from"./p-Dcu5mHhz.js";const t=class{constructor(s){r(this,s),this.changeRadio=o(this,"changeRadio",7)}value;selectedValue;disabled=!1;error=!1;checked=!1;label;testId="";changeRadio;get hostEl(){return s(this)}radioId=e().generate("swc-radio-");handleRadioChange=r=>{r.preventDefault(),this.changeRadio.emit(r.target.value)};render(){const r=Array.from(this.hostEl.attributes).reduce(((r,o)=>(r[o.name]=o.value,r)),{});return i(a,null,i("span",{class:"swc-radio-wrapper","data-testid":`swc-radio-input-${this.testId}`},i("input",{...r,type:"radio",id:this.radioId,value:this.value,checked:this.checked||this.value.toLowerCase()===this.selectedValue.toLowerCase(),disabled:this.disabled,class:{"sfe-radio":!0,"sfe-radio--error":this.error},onChange:this.handleRadioChange}),this.label&&i("label",{htmlFor:this.radioId,class:"ms-2 "+(this.disabled?"cursor-not-allowed":"cursor-pointer")},this.label)))}};t.style='.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input{appearance:none;width:16px;height:16px;border:2px solid var(--sfe-color-interaction-neutral-faded-subtle);border-radius:100px;position:relative;cursor:pointer;transition:border-color 0.3s ease, background-color 0.3s ease;background-color:white}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input:focus-visible{outline:2px solid #9747ff;outline-offset:1px}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input:checked{border:5px solid var(--sfe-color-interaction-brand-solid-weak) !important}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input:hover{border:2px solid var(--sfe-color-interaction-neutral-faded-strong)}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input:disabled{border-color:var(--sfe-color-interaction-disabled-strong);background-color:#f0f0f0;cursor:not-allowed;opacity:0.5}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input:hover:checked{border:2px solid var(--sfe-color-interaction-brand-solid-subtle)}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:50%;height:50%;background-color:transparent;border-radius:50%;transition:background-color 0.3s ease}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input:checked::before{background-color:transparent}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input:checked:disabled{border:5px solid var(--sfe-color-interaction-disabled-strong) !important}.sc-swc-radio-input-h .sfe-radio--error.sc-swc-radio-input{border:2px solid var(--sfe-color-interaction-critical-solid-weak) !important}.sc-swc-radio-input-h .sfe-radio.sc-swc-radio-input:checked.sfe-radio--error{border:5px solid var(--sfe-color-interaction-brand-solid-weak) !important}.sc-swc-radio-input-h .cursor-pointer.sc-swc-radio-input{cursor:pointer}.sc-swc-radio-input-h .cursor-not-allowed.sc-swc-radio-input{cursor:not-allowed}.sc-swc-radio-input-h .swc-radio-wrapper.sc-swc-radio-input{display:inline-flex;align-items:center}';export{t as swc_radio_input}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,d as e,e as o,h as s,H as r}from"./p-
|
|
1
|
+
import{r as c,d as e,e as o,h as s,H as r}from"./p-DdKztCEo.js";import{u as a}from"./p-Dcu5mHhz.js";const t=class{constructor(o){c(this,o),this.checkboxChange=e(this,"checkboxChange",7)}value;checked=!1;error=!1;disabled=!1;falseValue;label;isIndeterminate=!1;testId="";checkboxChange;get checkboxHostElement(){return o(this)}checkboxId=`${a().generate("_checkbox_")}`;handleChange=c=>{const e=c.target.checked;this.checked=e,this.checkboxChange.emit(e?"boolean"==typeof this.value?{value:!0,checked:e}:{value:this.value,checked:e}:"boolean"==typeof this.value?{value:this.falseValue??!1,checked:!1}:{value:this.value,checked:!1})};render(){const c=this.checkboxHostElement.getAttribute("id");return s(r,{key:"c6b85aa3a46b31e2faf94f16d37add26147c486b"},s("div",{key:"eeec5e127a51e84d65f5e3acfc453f8dc2b0b28d",class:"sfe-checkbox-container"},s("input",{key:"b3d1baefd30f854cb5522fba79c166dbcf7a1a82",type:"checkbox",id:c||this.checkboxId,value:this.value,checked:this.checked,"data-testid":`swc-checkbox-${this.testId}`,disabled:this.disabled,class:{"sfe-checkbox":!0,"sfe-checkbox--error":this.error,checked:this.checked},indeterminate:this.isIndeterminate,onChange:this.handleChange}),this.label&&s("swc-label",{key:"c1c57de6b7f88cee7e749f3af1feb6a1ea3d6a57",for:c||this.checkboxId,disabled:this.disabled,size:"md",class:"sfe-checkbox-label","data-for":this.checkboxId||c},this.label)))}};t.style='.sc-swc-checkbox-h .sfe-checkbox-container.sc-swc-checkbox{display:inline-flex;align-items:center}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox{width:16px;height:16px;position:relative;border:2px solid var(--sfe-color-interaction-neutral-faded-subtle);border-radius:var(--sfe-sizing-radius-small);background-color:#fff;cursor:pointer;line-height:0;margin:0 0.2em 0 0;outline:0;padding:0;vertical-align:text-top;appearance:none;transition:border-color 0.3s ease, background-color 0.3s ease}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:hover{opacity:1;border-color:var(--sfe-color-interaction-neutral-faded-strong)}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:checked{border:none;background-color:var(--sfe-color-interaction-brand-solid-weak);opacity:1}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:focus-visible{outline:2px solid #9747ff;outline-offset:1px}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:disabled{border-color:var(--sfe-color-interaction-disabled-strong);opacity:0.5;cursor:not-allowed}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:indeterminate{background-color:var(--sfe-color-interaction-brand-solid-weak);border-color:var(--sfe-color-interaction-brand-solid-weak)}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:indeterminate::before{content:"";position:absolute;right:50%;top:50%;width:10px;height:2px;background-color:#fff;margin:0 -10px 0 -1px;transform:translate(-50%, -50%)}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:checked:hover{border:none;background-color:var(--sfe-color-interaction-brand-solid-subtle);opacity:1}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:checked:disabled{border:none;background-color:var(--sfe-color-interaction-disabled-strong);opacity:0.5}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:indeterminate:disabled{background-color:var(--sfe-color-interaction-disabled-strong);border-color:var(--sfe-color-interaction-disabled-strong);opacity:1}.sc-swc-checkbox-h .sfe-checkbox.checked.sc-swc-checkbox::before{content:"";position:absolute;right:50%;top:50%;width:4px;height:10px;border:solid #fff;border-width:0 2px 2px 0;margin:-1px 0 0 -1px;transform:rotate(45deg) translate(-50%, -50%);z-index:2}.sc-swc-checkbox-h .sfe-checkbox--error.sc-swc-checkbox{border-color:var(--sfe-color-interaction-critical-solid-weak)}.sc-swc-checkbox-h .sfe-checkbox.sc-swc-checkbox:checked.sfe-checkbox--error{border:none;background-color:var(--sfe-color-interaction-brand-solid-weak);opacity:1}.sc-swc-checkbox-h .sfe-checkbox-label.sc-swc-checkbox{margin-top:0;margin-bottom:0;margin-left:8px}';export{t as swc_checkbox}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,d as t,e as s,h as i}from"./p-DdKztCEo.js";import{u as r}from"./p-Dcu5mHhz.js";const a=class{constructor(s){e(this,s),this.stepChanged=t(this,"stepChanged",7)}get hostElement(){return s(this)}orientation="horizontal";activeIndex=0;withCheckmark=!0;lineSize="150px";testId="";stepChanged;stepItemIds=[];provide=()=>{const e=this.hostElement.querySelectorAll("swc-stepper-item");e.forEach(((t,s)=>{t.activeIndex=this.activeIndex,t.orientation=this.orientation,t.withCheckmark=this.withCheckmark,t.lineSize=this.lineSize,t.index=s,t.isLastItem=s===e.length-1,t.idProp=r().generate(`sfe-stepper-item-${s}`),this.stepItemIds.push(t.idProp)}))};render(){return this.provide(),i("div",{key:"aef80769eeef48547fe02ba74e3a5ea21bb4c94d","aria-orientation":this.orientation,class:`sfe-stepper ${this.orientation}`,"data-testid":`swc-stepper-${this.testId}`},i("slot",{key:"7caee4a9dbc86646c40dace96ae611a06ed45821"}))}};a.style=".sfe-stepper.sc-swc-stepper{display:inline-flex;position:relative}.sfe-stepper.vertical.sc-swc-stepper{flex-direction:column}";export{a as swc_stepper}
|