@shrfe/assets 1.0.64 → 1.0.65-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/css/ds/brand/accelerex.css +27 -0
  2. package/css/ds/brand/access-pension.css +27 -0
  3. package/css/ds/brand/arm.css +27 -0
  4. package/css/ds/brand/asiko-energy.css +27 -0
  5. package/css/ds/brand/brand-star.css +27 -0
  6. package/css/ds/brand/chapel-hill-denham.css +27 -0
  7. package/css/ds/brand/coronation.css +27 -0
  8. package/css/ds/brand/custodian.css +27 -0
  9. package/css/ds/brand/fmdq.css +27 -0
  10. package/css/ds/brand/grant-thornton.css +27 -0
  11. package/css/ds/brand/julius-berger.css +27 -0
  12. package/css/ds/brand/providus.css +27 -0
  13. package/css/ds/brand/sterling.css +27 -0
  14. package/css/ds/brand/system.css +27 -0
  15. package/css/ds/brand/titan-trust.css +27 -0
  16. package/css/ds/brand/vdl.css +27 -0
  17. package/css/ds/brand/wema-bank.css +27 -0
  18. package/css/ds/brand/zebet.css +27 -0
  19. package/css/ds/component.css +299 -254
  20. package/css/ds/semantics/color/color.css +353 -120
  21. package/css/ds/semantics/shadow/shadow.css +35 -35
  22. package/css/ds/semantics/sizing/sizing.css +92 -48
  23. package/css/ds/semantics/typography/typography.css +86 -85
  24. package/css/sfe-styles.css +12 -10
  25. package/js/shrfe-core-umd.js +4 -4
  26. package/package.json +1 -1
  27. package/wc-lib/{p-3cc512be.entry.js → p-0b72ab12.entry.js} +1 -1
  28. package/wc-lib/{p-97aa8a56.entry.js → p-0cc19352.entry.js} +1 -1
  29. package/wc-lib/{p-84c4efae.entry.js → p-10c23c12.entry.js} +1 -1
  30. package/wc-lib/{p-99044e0f.entry.js → p-11d9c6ab.entry.js} +1 -1
  31. package/wc-lib/{p-35cafa93.entry.js → p-2eac5d59.entry.js} +1 -1
  32. package/wc-lib/{p-e725f44b.entry.js → p-372a4b08.entry.js} +1 -1
  33. package/wc-lib/{p-93a58264.entry.js → p-3b9cba49.entry.js} +1 -1
  34. package/wc-lib/p-434962b3.entry.js +1 -0
  35. package/wc-lib/{p-89af7770.entry.js → p-4b90088d.entry.js} +1 -1
  36. package/wc-lib/{p-04d897fe.entry.js → p-5a39bffb.entry.js} +1 -1
  37. package/wc-lib/{p-da22638b.entry.js → p-5ec334e6.entry.js} +2 -2
  38. package/wc-lib/{p-da60a5f2.entry.js → p-6e7ee60b.entry.js} +1 -1
  39. package/wc-lib/{p-12553973.entry.js → p-7799bd4f.entry.js} +1 -1
  40. package/wc-lib/{p-60b26a9b.entry.js → p-9af28040.entry.js} +1 -1
  41. package/wc-lib/{p-055adad5.entry.js → p-9c20ecd6.entry.js} +1 -1
  42. package/wc-lib/p-9oFec6fH.js +3 -0
  43. package/wc-lib/{p-325cda6a.entry.js → p-abd9b780.entry.js} +1 -1
  44. package/wc-lib/{p-1a22c124.entry.js → p-c117222e.entry.js} +1 -1
  45. package/wc-lib/{p-b3062a6b.js → p-cc5249f0.js} +1 -1
  46. package/wc-lib/{p-5e246cb4.entry.js → p-dcca5e23.entry.js} +1 -1
  47. package/wc-lib/{p-4e6e0f67.entry.js → p-e96984e8.entry.js} +1 -1
  48. package/wc-lib/wc-lib.esm.js +1 -1
  49. package/wc-lib/p-0039b730.entry.js +0 -1
  50. package/wc-lib/p-DdKztCEo.js +0 -3
@@ -1 +1 @@
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:"6d8cd085e97bbf303401df0f43523f63d78b5269",class:{[`sfe-tour-guide-step sfe-tour-guide-step--${this.variant}`]:!0},"data-testid":`swc-tour-guide-step-${this.testId}`},t("div",{key:"db20537dc35c9c40bf186c4575f45f3269072df4",class:"flex-wrapper"},t("p",{key:"9048744c55ef9f15df9cfd295d7aeb3095bb9500",class:"sfe-tour-guide-step__title m-0",innerHTML:this.heading}),t("swc-icon-button",{key:"e720f9ea0695fdbaac7b2836eb41d079730cad92","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:"4760d1705b6b020769d756e13c1128b7e83ebd3e",name:"Dismiss",color:"currentColor",size:"12"}))),t("div",{key:"81b415310065691afba62d0213dbdc6bdb535bde",class:"sfe-tour-guide-step__content",innerHTML:this.content}),t("div",{key:"1298834f131da4f6f4463346f6cc7c0888dc893a",class:"flex-wrapper col-gap-10"},t("p",{key:"d148742982d23ae0efda292d8734b13e8187904c",class:"sfe-tour-guide-step__steps-info m-0"},this.currentIndex+1," of ",this.numberOfSteps),t("div",{key:"de7ae99f9e7a8af8caedf0a9a9f8844158282fdd"},this.hasPrevious&&t("swc-button",{key:"0e17f91544862643fe78b3604d05e4dd1fc107e1",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:"df7b4eb01ed188de3b30631fca5afd5749ff6973",intent:"light"===this.variant?"brand":"inverse",size:"xs",onClick:this.handleNext},"Next"),this.isLastStep&&t("swc-button",{key:"854e4f0374b1a678fd21d171874ca5ce21d64df5",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
+ import{r as e,d as s,h as t}from"./p-9oFec6fH.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:"6d8cd085e97bbf303401df0f43523f63d78b5269",class:{[`sfe-tour-guide-step sfe-tour-guide-step--${this.variant}`]:!0},"data-testid":`swc-tour-guide-step-${this.testId}`},t("div",{key:"db20537dc35c9c40bf186c4575f45f3269072df4",class:"flex-wrapper"},t("p",{key:"9048744c55ef9f15df9cfd295d7aeb3095bb9500",class:"sfe-tour-guide-step__title m-0",innerHTML:this.heading}),t("swc-icon-button",{key:"e720f9ea0695fdbaac7b2836eb41d079730cad92","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:"4760d1705b6b020769d756e13c1128b7e83ebd3e",name:"Dismiss",color:"currentColor",size:"12"}))),t("div",{key:"81b415310065691afba62d0213dbdc6bdb535bde",class:"sfe-tour-guide-step__content",innerHTML:this.content}),t("div",{key:"1298834f131da4f6f4463346f6cc7c0888dc893a",class:"flex-wrapper col-gap-10"},t("p",{key:"d148742982d23ae0efda292d8734b13e8187904c",class:"sfe-tour-guide-step__steps-info m-0"},this.currentIndex+1," of ",this.numberOfSteps),t("div",{key:"de7ae99f9e7a8af8caedf0a9a9f8844158282fdd"},this.hasPrevious&&t("swc-button",{key:"0e17f91544862643fe78b3604d05e4dd1fc107e1",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:"df7b4eb01ed188de3b30631fca5afd5749ff6973",intent:"light"===this.variant?"brand":"inverse",size:"xs",onClick:this.handleNext},"Next"),this.isLastStep&&t("swc-button",{key:"854e4f0374b1a678fd21d171874ca5ce21d64df5",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 as e,d as s,h as i,H as l}from"./p-DdKztCEo.js";import{u as t}from"./p-DAupwlOU.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:"f730b8b42b8d652c3dd4209d939f3ec720a57f72"},i("section",{key:"a74683c967a070b6b89805335eb7e3e85fb9021b",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:"f8d640f37cf76f0ebdfeb4de6d7310a36e729b0e",value:this.progress,max:100,class:"mt-2"}),!this.hasError&&this.fileDetails.length>0&&100===this.progress&&i("div",{key:"9d6bf5ff30fc0e08b69f4843c935b3cc15ae6db5",class:"d-flex align-items-center mt-2"},i("div",{key:"f57d8d06bd7bc8197f45c0d774cbb11f3c292722",class:"completed"},"Upload completed")),this.hasError&&i("div",{key:"9c31049ce562124a4d3cc1338c64189ae1cb035f",class:"d-flex justify-content-between align-items-center mt-2"},i("div",{key:"9a57868b0661d437699daab73ad4063ac1f32931",class:"has-error"},i("swc-svg-icon",{key:"4b3a05a6b5588b515655fad3d1c97350be3bbfa7",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"})),i("swc-button",{key:"71e606a05fd167801b016114144809480154d94e",size:"lg",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.handleUploadRetry},i("span",{key:"e342644e6c50581d3cbc401d2bff782d98045e93"},"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:"4687da5aba5b19e48de6e8f25c8e096d21925cb3"},i("section",{key:"e3f66edb9efa7e2da077907f5c68ab9ff8e228bd",class:{"single-file-choosen":!0,inverted:this.inverted,uploaded:100===this.progress,"has-error":this.hasError,extended:this.extended}},!this.extended&&i("div",{key:"416f3bac71a667f558478ffc38ba01c9d88551cf",class:"single-file-choosen__wrapper"},i("div",{key:"8f37c4bfa6cfda1cf7b31ef6360709d2bcf59903",class:"single-file-choosen__wrapper__name"},this.hasError&&i("swc-svg-icon",{key:"e9f599b74784dc7e9f9ae62c9dd339f4af512081",class:"me-2",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"}),this.fileDetails.name),i("div",{key:"846edf2d0b0d0af1339ba43948a93cbc9f1fe49a",class:"single-file-choosen__wrapper__size"},this.fileDetails.size),i("div",{key:"a70ac4edf0a89ce0b9021147cc60c89209178b64"},this.progress>0&&100!==this.progress&&!a(this.fileDetails)&&!this.extended&&!this.hasError&&i("swc-progress",{key:"977d717f4c15145b2d223e2d11ecaf01ecccbf68",value:this.progress,max:100})),i("div",{key:"89de8efcd02bbdafe3e4dbf03b02460331ef9a72",class:"d-flex align-items-center justify-content-end"},this.hasError&&!a(this.fileDetails)&&i("swc-button",{key:"7f39b9b5e86cfac05d2859a0913e8740dbed79e5",size:"lg",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.retryUpload},i("span",{key:"2353aef5d81951d7d9e902f44c6dcdc5469822e4",class:"btn-span"},"Retry")),!this.hasError&&!a(this.fileDetails)&&(0===this.progress||100===this.progress)&&i("swc-button",{key:"65c25c49aedb3ea537c672fd3aa3d9cff3574090",size:"lg",intent:"brand",variant:"bare","aria-label":"replace",class:"me-1",onClick:this.replaceFile},i("span",{key:"de0ff7f676d358d3de08e1d02e9406d64ccf44fb",class:"btn-span"},"Replace")),i("swc-icon-button",{key:"caa3dbce714920afcc0078b98bc99075f99e2b9b",intent:"neutral",variant:"bare",size:"lg","aria-label":"dismiss",onClick:()=>this.removeFile(this.fileDetails.id)},i("swc-svg-icon",{key:"33828e34830f2572bc2b7e499008f660fd464961",name:"Dismiss",size:"16"})))),this.extended&&i("div",{key:"0d157ee7271370de829155b4613d91aaba06c46d",class:{"single-file-choosen__extended-wrapper":!0,"no-thumbnail":"none"===this.thumbnail}},"none"!==this.thumbnail&&i("div",{key:"84e39bf62489b5667f235ab577db3d95d99b34dc",class:"file__extension"},this.shouldShowFile&&i("div",{key:"01443e4796c215cada636811c892ace861bb8a40"},i("svg",{key:"5f5cd60d68ccc81b2847167164480aef29c9ef37",width:"32",height:"40",viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"be55ffa8bcb7dc70b1efa7a907dde6c9279eb343",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:"48344047e977e8376a735f29e327d48ad6a288ec",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:"28e403f7f20af282549297044827735c71ef477c",class:"file-img"},i("img",{key:"257d489cf9cb3ee354d8317e445c17c9da35cccd",src:this.createImageUrl,alt:this.fileDetails.name}))),i("div",{key:"e6db136fd05da084baec94f6bf85205d01f3b9b6",class:{file:!0,"ms-3":"none"!==this.thumbnail}},i("div",{key:"528175e2170a2d90553f04870154cdf35b257aab",class:"file__identifier"},i("div",{key:"0f6ee85dff00c3a525dc8433fc7a9e8f5f73794e",class:"file__identifier__name"},this.fileDetails.name),i("div",{key:"02b651d19a675a8e20dbc8985c4e9e50608d8f72",class:"d-flex align-items-center justify-content-end"},this.hasError&&!a(this.fileDetails)&&i("swc-button",{key:"556a254c24fc6e7201f3f6780c9d5fc14c983ecf",size:"md",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.retryUpload},i("span",{key:"7f67dd11ff201a8cdc2d88db871af01e50fe02a2",class:"btn-span"},"Retry")),!this.hasError&&!a(this.fileDetails)&&(0===this.progress||100===this.progress)&&i("swc-button",{key:"84c01f9542425bd1b3c7db7d913c523cd02e633b",size:"md",intent:"brand",variant:"bare","aria-label":"replace",class:"me-1",onClick:this.replaceFile},i("span",{key:"ce4b80ea691f40725f54c22908219e403704ebee",class:"btn-span"},"Replace")),i("swc-icon-button",{key:"c57c5ad99f8e185d89fc546526a18ca2b2d4c0ba",intent:"neutral",variant:"bare",size:"md","aria-label":"dismiss",onClick:()=>this.removeFile(this.fileDetails.id)},i("swc-svg-icon",{key:"8e46c69a7412d71cdeeb56aed7fecdb7a3980760",name:"Dismiss",size:"16"})))),i("div",{key:"e958e554a161e04134dcba4dbcd7a8ad0854c012",class:"file__identifier__size mt-3 d-flex align-items-center"},this.hasError&&i("div",{key:"b84d6bf0728907e45e3e399fd129aac92b2a971e"},i("swc-svg-icon",{key:"dae63385dbe6d4990145d1fd34979744c0222925","v-if":"hasError",class:"me-2",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"})),i("span",{key:"dd2dbba91306d5814b1aafd40a85152d2509b831"},this.fileDetails.size)))),this.progress>0&&100!==this.progress&&this.extended&&!a(this.fileDetails)&&!this.hasError&&i("swc-progress",{key:"e5b2abd97b022dfff0df51640e9e951a8806524d",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-9oFec6fH.js";import{u as t}from"./p-DAupwlOU.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:"f730b8b42b8d652c3dd4209d939f3ec720a57f72"},i("section",{key:"a74683c967a070b6b89805335eb7e3e85fb9021b",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:"f8d640f37cf76f0ebdfeb4de6d7310a36e729b0e",value:this.progress,max:100,class:"mt-2"}),!this.hasError&&this.fileDetails.length>0&&100===this.progress&&i("div",{key:"9d6bf5ff30fc0e08b69f4843c935b3cc15ae6db5",class:"d-flex align-items-center mt-2"},i("div",{key:"f57d8d06bd7bc8197f45c0d774cbb11f3c292722",class:"completed"},"Upload completed")),this.hasError&&i("div",{key:"9c31049ce562124a4d3cc1338c64189ae1cb035f",class:"d-flex justify-content-between align-items-center mt-2"},i("div",{key:"9a57868b0661d437699daab73ad4063ac1f32931",class:"has-error"},i("swc-svg-icon",{key:"4b3a05a6b5588b515655fad3d1c97350be3bbfa7",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"})),i("swc-button",{key:"71e606a05fd167801b016114144809480154d94e",size:"lg",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.handleUploadRetry},i("span",{key:"e342644e6c50581d3cbc401d2bff782d98045e93"},"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:"4687da5aba5b19e48de6e8f25c8e096d21925cb3"},i("section",{key:"e3f66edb9efa7e2da077907f5c68ab9ff8e228bd",class:{"single-file-choosen":!0,inverted:this.inverted,uploaded:100===this.progress,"has-error":this.hasError,extended:this.extended}},!this.extended&&i("div",{key:"416f3bac71a667f558478ffc38ba01c9d88551cf",class:"single-file-choosen__wrapper"},i("div",{key:"8f37c4bfa6cfda1cf7b31ef6360709d2bcf59903",class:"single-file-choosen__wrapper__name"},this.hasError&&i("swc-svg-icon",{key:"e9f599b74784dc7e9f9ae62c9dd339f4af512081",class:"me-2",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"}),this.fileDetails.name),i("div",{key:"846edf2d0b0d0af1339ba43948a93cbc9f1fe49a",class:"single-file-choosen__wrapper__size"},this.fileDetails.size),i("div",{key:"a70ac4edf0a89ce0b9021147cc60c89209178b64"},this.progress>0&&100!==this.progress&&!a(this.fileDetails)&&!this.extended&&!this.hasError&&i("swc-progress",{key:"977d717f4c15145b2d223e2d11ecaf01ecccbf68",value:this.progress,max:100})),i("div",{key:"89de8efcd02bbdafe3e4dbf03b02460331ef9a72",class:"d-flex align-items-center justify-content-end"},this.hasError&&!a(this.fileDetails)&&i("swc-button",{key:"7f39b9b5e86cfac05d2859a0913e8740dbed79e5",size:"lg",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.retryUpload},i("span",{key:"2353aef5d81951d7d9e902f44c6dcdc5469822e4",class:"btn-span"},"Retry")),!this.hasError&&!a(this.fileDetails)&&(0===this.progress||100===this.progress)&&i("swc-button",{key:"65c25c49aedb3ea537c672fd3aa3d9cff3574090",size:"lg",intent:"brand",variant:"bare","aria-label":"replace",class:"me-1",onClick:this.replaceFile},i("span",{key:"de0ff7f676d358d3de08e1d02e9406d64ccf44fb",class:"btn-span"},"Replace")),i("swc-icon-button",{key:"caa3dbce714920afcc0078b98bc99075f99e2b9b",intent:"neutral",variant:"bare",size:"lg","aria-label":"dismiss",onClick:()=>this.removeFile(this.fileDetails.id)},i("swc-svg-icon",{key:"33828e34830f2572bc2b7e499008f660fd464961",name:"Dismiss",size:"16"})))),this.extended&&i("div",{key:"0d157ee7271370de829155b4613d91aaba06c46d",class:{"single-file-choosen__extended-wrapper":!0,"no-thumbnail":"none"===this.thumbnail}},"none"!==this.thumbnail&&i("div",{key:"84e39bf62489b5667f235ab577db3d95d99b34dc",class:"file__extension"},this.shouldShowFile&&i("div",{key:"01443e4796c215cada636811c892ace861bb8a40"},i("svg",{key:"5f5cd60d68ccc81b2847167164480aef29c9ef37",width:"32",height:"40",viewBox:"0 0 32 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"be55ffa8bcb7dc70b1efa7a907dde6c9279eb343",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:"48344047e977e8376a735f29e327d48ad6a288ec",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:"28e403f7f20af282549297044827735c71ef477c",class:"file-img"},i("img",{key:"257d489cf9cb3ee354d8317e445c17c9da35cccd",src:this.createImageUrl,alt:this.fileDetails.name}))),i("div",{key:"e6db136fd05da084baec94f6bf85205d01f3b9b6",class:{file:!0,"ms-3":"none"!==this.thumbnail}},i("div",{key:"528175e2170a2d90553f04870154cdf35b257aab",class:"file__identifier"},i("div",{key:"0f6ee85dff00c3a525dc8433fc7a9e8f5f73794e",class:"file__identifier__name"},this.fileDetails.name),i("div",{key:"02b651d19a675a8e20dbc8985c4e9e50608d8f72",class:"d-flex align-items-center justify-content-end"},this.hasError&&!a(this.fileDetails)&&i("swc-button",{key:"556a254c24fc6e7201f3f6780c9d5fc14c983ecf",size:"md",intent:"neutral",variant:"bare","aria-label":"dismiss",class:"has-error",onClick:this.retryUpload},i("span",{key:"7f67dd11ff201a8cdc2d88db871af01e50fe02a2",class:"btn-span"},"Retry")),!this.hasError&&!a(this.fileDetails)&&(0===this.progress||100===this.progress)&&i("swc-button",{key:"84c01f9542425bd1b3c7db7d913c523cd02e633b",size:"md",intent:"brand",variant:"bare","aria-label":"replace",class:"me-1",onClick:this.replaceFile},i("span",{key:"ce4b80ea691f40725f54c22908219e403704ebee",class:"btn-span"},"Replace")),i("swc-icon-button",{key:"c57c5ad99f8e185d89fc546526a18ca2b2d4c0ba",intent:"neutral",variant:"bare",size:"md","aria-label":"dismiss",onClick:()=>this.removeFile(this.fileDetails.id)},i("swc-svg-icon",{key:"8e46c69a7412d71cdeeb56aed7fecdb7a3980760",name:"Dismiss",size:"16"})))),i("div",{key:"e958e554a161e04134dcba4dbcd7a8ad0854c012",class:"file__identifier__size mt-3 d-flex align-items-center"},this.hasError&&i("div",{key:"b84d6bf0728907e45e3e399fd129aac92b2a971e"},i("swc-svg-icon",{key:"dae63385dbe6d4990145d1fd34979744c0222925","v-if":"hasError",class:"me-2",name:"Warning",size:"20",variant:"filled",color:"#bf3835",opacity:"1"})),i("span",{key:"dd2dbba91306d5814b1aafd40a85152d2509b831"},this.fileDetails.size)))),this.progress>0&&100!==this.progress&&this.extended&&!a(this.fileDetails)&&!this.hasError&&i("swc-progress",{key:"e5b2abd97b022dfff0df51640e9e951a8806524d",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 a,d as e,h as t}from"./p-DdKztCEo.js";const i=class{constructor(t){a(this,t),this.searchInput=e(this,"searchInput",7),this.toggleSearchInput=e(this,"toggleSearchInput",7),this.showNotification=e(this,"showNotification",7)}maxWidth="100%";roleWrapperWidth=152;hasNotifications=!0;hasReadNotifications=!1;hasUserRoleDropdown=!0;hasSearch=!0;testId="";areLinksVisible=!0;isSearchVisible=!1;searchQuery="";searchInput;toggleSearchInput;showNotification;get roleMenuStyleObj(){return{minWidth:"152px",width:`${this.roleWrapperWidth}px`}}handleInputEventChange(a){const e=a.detail.value;this.searchQuery=e,this.searchInput.emit(e)}toggleSearch=async()=>{this.areLinksVisible?(this.areLinksVisible=!1,setTimeout((()=>{this.isSearchVisible=!0}),400)):(this.isSearchVisible=!1,setTimeout((()=>{this.areLinksVisible=!0}),400))};handleInputChange=a=>{this.searchQuery=a,this.searchInput.emit(a)};handleStopPropagation=a=>{a.stopPropagation()};handleShowNotification=()=>{this.showNotification.emit(!0)};searchVisibleChangeHandler(a){this.toggleSearchInput.emit(a)}render(){return t("header",{key:"a88ad014d303c8a739dc89ec2fbd535cb088418d",class:"topnav","data-testid":`swc-top-nav-${this.testId}`,style:{"--max-width":this.maxWidth}},t("div",{key:"c7342203c491b25c6b152a7b2733cf2aafa2bafc",class:"topnav__content"},t("div",{key:"b1937836282fbff9093079da0d9e409aa643aac6",class:"topnav__left"},t("div",{key:"9a8caeb97a198045e8134ca12ee94be2ca0d7c29",class:"topnav__brand"},t("slot",{key:"fe6f3f77f12cfd1711a2586771d9e2b6d72537ed",name:"companyLogo"},"Logo")),t("div",{key:"e3a44341d609c7652036fb94000114f4ca606650",class:{topnav__links:!0,"fade-enter":this.areLinksVisible,"fade-leave-to":!this.areLinksVisible}},t("slot",{key:"82518710ac09146fa904f564c0c90b2ce84440e2",name:"navLinks"}))),t("div",{key:"2426805082a888b37f9440cef6545011101e1c46",class:{"topnav__search-container":!0,"slide-fade-enter-from":this.isSearchVisible,"slide-fade-leave-to":!this.isSearchVisible},onClick:this.handleStopPropagation},t("swc-input",{key:"1a6010fba249a7174e57b153e0f663d16d1dfed7",value:this.searchQuery,type:"search",placeholder:"Search hint",variant:"faded",containerClass:"w-40 search-transition","arial-expanded":!0,"arial-label":!0,handleInputChange:this.handleInputChange},t("span",{key:"80a586761e2d56b748cfda0cd9e66b47750b4910",slot:"leftAddon"},t("svg",{key:"a8a96895d4299ad94a68bc1943ed97100c592883",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},t("path",{key:"ae69215c7c140c767884b068d2f1bfc54856421d",d:"M8.19009 14.0467C4.68621 14.0467 1.8335 11.194 1.8335 7.69009C1.8335 4.18621 4.68621 1.3335 8.19009 1.3335C11.694 1.3335 14.5467 4.18621 14.5467 7.69009C14.5467 11.194 11.694 14.0467 8.19009 14.0467ZM8.19009 2.26373C5.19474 2.26373 2.76373 4.70094 2.76373 7.69009C2.76373 10.6792 5.19474 13.1164 8.19009 13.1164C11.1854 13.1164 13.6164 10.6792 13.6164 7.69009C13.6164 4.70094 11.1854 2.26373 8.19009 2.26373Z",fill:"black","fill-opacity":"0.7"}),t("path",{key:"cabb590d090a8aefad92369fe448936c7ef63654",d:"M14.7017 14.6668C14.5839 14.6668 14.4661 14.6234 14.373 14.5304L13.1327 13.2901C12.9529 13.1102 12.9529 12.8126 13.1327 12.6327C13.3126 12.4529 13.6102 12.4529 13.7901 12.6327L15.0304 13.873C15.2102 14.0529 15.2102 14.3506 15.0304 14.5304C14.9374 14.6234 14.8195 14.6668 14.7017 14.6668Z",fill:"black","fill-opacity":"0.7"})))),t("div",{key:"44164efad1552ed010d880fecd6dfe3ddaeb96f2",class:"search-list"},this.isSearchVisible&&t("slot",{key:"50fc6ffdac91effba3496f3b4e44679852fc50ee",name:"searchList"}))),t("div",{key:"51526957f10654c54cd6b6c5e20a0d1588e70fbd",class:"topnav__right"},this.hasSearch&&t("swc-icon-button",{key:"59f6f5bb0596e940d9493998ee646d5091c4b347",intent:"neutral",variant:"bare",size:"lg","aria-label":"Search",class:"topnav__search-icon",round:!0,onClick:this.toggleSearch},this.isSearchVisible?t("swc-svg-icon",{name:"Dismiss",size:"16"}):t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t("path",{d:"M7.69009 14.0467C4.18621 14.0467 1.3335 11.194 1.3335 7.69009C1.3335 4.18621 4.18621 1.3335 7.69009 1.3335C11.194 1.3335 14.0467 4.18621 14.0467 7.69009C14.0467 11.194 11.194 14.0467 7.69009 14.0467ZM7.69009 2.26373C4.69474 2.26373 2.26373 4.70094 2.26373 7.69009C2.26373 10.6792 4.69474 13.1164 7.69009 13.1164C10.6854 13.1164 13.1164 10.6792 13.1164 7.69009C13.1164 4.70094 10.6854 2.26373 7.69009 2.26373Z",fill:"black","fill-opacity":"0.7"}),t("path",{d:"M14.2017 14.6668C14.0839 14.6668 13.9661 14.6234 13.873 14.5304L12.6327 13.2901C12.4529 13.1102 12.4529 12.8126 12.6327 12.6327C12.8126 12.4529 13.1102 12.4529 13.2901 12.6327L14.5304 13.873C14.7102 14.0529 14.7102 14.3506 14.5304 14.5304C14.4374 14.6234 14.3195 14.6668 14.2017 14.6668Z",fill:"black","fill-opacity":"0.7"}))),this.hasUserRoleDropdown&&t("swc-dropdown",{key:"5b4ad4941219b6e21bf3c44ac121fbcd7f343b04",class:"topnav__role-switch"},t("span",{key:"1117237c0c0c531e0f671aea473b88aa9cfc3aea",slot:"trigger"},t("swc-dropdown-trigger",{key:"ac2797a8c41baa83c889a701fafe519ebe26a4d3",size:"md",style:this.roleMenuStyleObj},t("div",{key:"cae9afd5e65423b98b6663071f0de390b127108f",class:"topnav__role-liner"},t("swc-svg-icon",{key:"10196cd77c9d956a93ad1a5b605032bdef4c25f3",name:"Person",variant:"filled",size:"20"}),"  ",t("slot",{key:"5a14395ea2a0aa1917168e684d7b326a293b1967",name:"roleSelected"})))),t("span",{key:"002a05dbc7b44c5984b274d24292f7c59857617d",slot:"list"},t("slot",{key:"1a27e3f95325157339bfd73746b6f2a4494775ff",name:"userRolesList"},"User Role Dropdown Menu"))),this.hasNotifications&&t("div",{key:"298fc63aa8f4c4593e2b44c5962f793778826f41",class:"topnav__notification"},t("swc-dropdown",{key:"a891390d15ab896319604a1d9010e6fe2c24830e"},t("span",{key:"9f01362f044fc1c9a850fbc5f67b8b5d5d8296f3",slot:"trigger"},t("swc-icon-button",{key:"8bcd6e861f4490df9c4ca52d49f9916b9d8ca8ff",intent:"brand",variant:"ghost",size:"lg","aria-label":"Alert",class:"alert-btn",round:!0,onClick:this.handleShowNotification},t("svg",{key:"1a9a0c0e0f9461a5f03ff8974087784bb6bf82e5",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t("path",{key:"dbb75ba281b6853ffaf1cc5d4982eb554db10831",d:"M7.9979 0C11.1469 0 13.7418 2.33488 13.9824 5.3554L13.9958 5.57762L14.0003 5.80214L13.9993 9.398L14.9247 11.6202C14.9472 11.6743 14.9649 11.7302 14.9776 11.7871L14.9929 11.8733L15.0015 12.0046C15.0015 12.4526 14.705 12.8387 14.2524 12.9677L14.136 12.9945L14.0015 13.0046L10.4999 13.004L10.4949 13.1653C10.4098 14.469 9.32542 15.5 8.00026 15.5C6.67478 15.5 5.59022 14.4685 5.50558 13.1644L5.49986 13.004L1.99915 13.0046C1.9112 13.0046 1.82383 12.993 1.73927 12.9702L1.61481 12.9277C1.20403 12.7567 0.962056 12.3392 1.01246 11.8757L1.03354 11.7483L1.07596 11.6202L1.99926 9.401L2.00035 5.79281L2.00465 5.56824C2.12726 2.45115 4.77129 0 7.9979 0ZM9.49986 13.004H6.49986L6.50722 13.1454C6.57576 13.8581 7.143 14.425 7.8558 14.4931L8.00026 14.5C8.77996 14.5 9.42071 13.9051 9.49339 13.1445L9.49986 13.004ZM7.9979 1C5.37535 1 3.22741 2.92372 3.0174 5.38498L3.00417 5.59723L3.00026 5.80214V9.5L2.96185 9.69217L1.99914 12.0046L13.9569 12.0066L14.0021 12.0045L13.0387 9.6922L13.0003 9.5L13.0004 5.81241L12.9963 5.60831C12.8911 3.0349 10.6949 1 7.9979 1Z",fill:"#004CA6"})),!this.hasReadNotifications&&t("div",{key:"7626f1368b6caf70b2300d8a6ee8b98112155345",class:"notify"},t("svg",{key:"e8d6802acc9c140f4e1f8fd3523350ea564e61df",xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none"},t("circle",{key:"195da3d35f48586f38f7a775977039b8c94d4847",cx:"2",cy:"2",r:"2",fill:"var(--sfe-color-non-semantic-fill-red-strong)"}))))),t("span",{key:"f1d7ccdbade10df51d0ad2c61b391ad6a31a7c59",slot:"list"},t("slot",{key:"c0651aeac06b5146ab2323ffac1e34b1976abb22",name:"notificationsList"})))),t("div",{key:"442fa65819d84a5c69e35a7431e180394dd30845",class:"topnav__avatar"},t("slot",{key:"c14d312ef15d075d4ca4fedb206c37b9972610ae",name:"userAvatar"})))))}static get watchers(){return{isSearchVisible:[{searchVisibleChangeHandler:0}]}}};i.style=".topnav{position:fixed;top:0;left:0;width:100%;z-index:var(--sfe-stack-level-navs);background:var(--sfe-color-fill-surface)}.topnav__content{border-bottom:0.8px solid var(--sfe-color-border-neutral-light);display:flex;padding:var(--sfe-sizing-gap-mid) var(--sfe-sizing-padding-large);justify-content:space-between;align-items:center;margin-inline:auto;height:var(--sfe-sizing-size-640, 64px);max-width:var(--max-width)}.topnav__links{transition:opacity 0.3s ease}.topnav__role-liner{display:flex;align-items:center}.topnav__left,.topnav__search-container,.topnav__right{display:flex;align-items:center}.topnav__left .topnav__brand{max-height:40px;overflow:hidden;width:auto;display:inline-block}.topnav__left .topnav__brand svg{width:auto;height:100%}.topnav__left .topnav__links{display:flex;margin-left:26px}.topnav__search-container{transition:opacity 0.3s ease, transform 0.3s ease;position:relative;justify-content:center;width:40%}.topnav__search-container .search-list{position:relative}.topnav__right{padding:0 24px 0 8px;justify-content:center;align-items:center}.topnav__right .topnav__search-icon,.topnav__right .topnav__role-switch,.topnav__right .topnav__notification,.topnav__right .topnav__avatar{margin:0 12px}.topnav__right .topnav__notification{position:relative}.topnav__right .topnav__notification .alert-btn .notify{position:absolute;right:13px;top:3px}.topnav__right .topnav__notification .topnav__notification-list{position:relative}.topnav__right .topnav__avatar{align-items:center}.w-40{width:36vw}.fade-leave-to{opacity:0}.fade-enter{opacity:1}.slide-fade-leave-to{transform:translateY(-10px);opacity:0}.slide-fade-enter-from{transform:translateY(0);opacity:1}";export{i as swc_top_nav}
1
+ import{r as a,d as e,h as t}from"./p-9oFec6fH.js";const i=class{constructor(t){a(this,t),this.searchInput=e(this,"searchInput",7),this.toggleSearchInput=e(this,"toggleSearchInput",7),this.showNotification=e(this,"showNotification",7)}maxWidth="100%";roleWrapperWidth=152;hasNotifications=!0;hasReadNotifications=!1;hasUserRoleDropdown=!0;hasSearch=!0;testId="";areLinksVisible=!0;isSearchVisible=!1;searchQuery="";searchInput;toggleSearchInput;showNotification;get roleMenuStyleObj(){return{minWidth:"152px",width:`${this.roleWrapperWidth}px`}}handleInputEventChange(a){const e=a.detail.value;this.searchQuery=e,this.searchInput.emit(e)}toggleSearch=async()=>{this.areLinksVisible?(this.areLinksVisible=!1,setTimeout((()=>{this.isSearchVisible=!0}),400)):(this.isSearchVisible=!1,setTimeout((()=>{this.areLinksVisible=!0}),400))};handleInputChange=a=>{this.searchQuery=a,this.searchInput.emit(a)};handleStopPropagation=a=>{a.stopPropagation()};handleShowNotification=()=>{this.showNotification.emit(!0)};searchVisibleChangeHandler(a){this.toggleSearchInput.emit(a)}render(){return t("header",{key:"a88ad014d303c8a739dc89ec2fbd535cb088418d",class:"topnav","data-testid":`swc-top-nav-${this.testId}`,style:{"--max-width":this.maxWidth}},t("div",{key:"c7342203c491b25c6b152a7b2733cf2aafa2bafc",class:"topnav__content"},t("div",{key:"b1937836282fbff9093079da0d9e409aa643aac6",class:"topnav__left"},t("div",{key:"9a8caeb97a198045e8134ca12ee94be2ca0d7c29",class:"topnav__brand"},t("slot",{key:"fe6f3f77f12cfd1711a2586771d9e2b6d72537ed",name:"companyLogo"},"Logo")),t("div",{key:"e3a44341d609c7652036fb94000114f4ca606650",class:{topnav__links:!0,"fade-enter":this.areLinksVisible,"fade-leave-to":!this.areLinksVisible}},t("slot",{key:"82518710ac09146fa904f564c0c90b2ce84440e2",name:"navLinks"}))),t("div",{key:"2426805082a888b37f9440cef6545011101e1c46",class:{"topnav__search-container":!0,"slide-fade-enter-from":this.isSearchVisible,"slide-fade-leave-to":!this.isSearchVisible},onClick:this.handleStopPropagation},t("swc-input",{key:"1a6010fba249a7174e57b153e0f663d16d1dfed7",value:this.searchQuery,type:"search",placeholder:"Search hint",variant:"faded",containerClass:"w-40 search-transition","arial-expanded":!0,"arial-label":!0,handleInputChange:this.handleInputChange},t("span",{key:"80a586761e2d56b748cfda0cd9e66b47750b4910",slot:"leftAddon"},t("svg",{key:"a8a96895d4299ad94a68bc1943ed97100c592883",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},t("path",{key:"ae69215c7c140c767884b068d2f1bfc54856421d",d:"M8.19009 14.0467C4.68621 14.0467 1.8335 11.194 1.8335 7.69009C1.8335 4.18621 4.68621 1.3335 8.19009 1.3335C11.694 1.3335 14.5467 4.18621 14.5467 7.69009C14.5467 11.194 11.694 14.0467 8.19009 14.0467ZM8.19009 2.26373C5.19474 2.26373 2.76373 4.70094 2.76373 7.69009C2.76373 10.6792 5.19474 13.1164 8.19009 13.1164C11.1854 13.1164 13.6164 10.6792 13.6164 7.69009C13.6164 4.70094 11.1854 2.26373 8.19009 2.26373Z",fill:"black","fill-opacity":"0.7"}),t("path",{key:"cabb590d090a8aefad92369fe448936c7ef63654",d:"M14.7017 14.6668C14.5839 14.6668 14.4661 14.6234 14.373 14.5304L13.1327 13.2901C12.9529 13.1102 12.9529 12.8126 13.1327 12.6327C13.3126 12.4529 13.6102 12.4529 13.7901 12.6327L15.0304 13.873C15.2102 14.0529 15.2102 14.3506 15.0304 14.5304C14.9374 14.6234 14.8195 14.6668 14.7017 14.6668Z",fill:"black","fill-opacity":"0.7"})))),t("div",{key:"44164efad1552ed010d880fecd6dfe3ddaeb96f2",class:"search-list"},this.isSearchVisible&&t("slot",{key:"50fc6ffdac91effba3496f3b4e44679852fc50ee",name:"searchList"}))),t("div",{key:"51526957f10654c54cd6b6c5e20a0d1588e70fbd",class:"topnav__right"},this.hasSearch&&t("swc-icon-button",{key:"59f6f5bb0596e940d9493998ee646d5091c4b347",intent:"neutral",variant:"bare",size:"lg","aria-label":"Search",class:"topnav__search-icon",round:!0,onClick:this.toggleSearch},this.isSearchVisible?t("swc-svg-icon",{name:"Dismiss",size:"16"}):t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t("path",{d:"M7.69009 14.0467C4.18621 14.0467 1.3335 11.194 1.3335 7.69009C1.3335 4.18621 4.18621 1.3335 7.69009 1.3335C11.194 1.3335 14.0467 4.18621 14.0467 7.69009C14.0467 11.194 11.194 14.0467 7.69009 14.0467ZM7.69009 2.26373C4.69474 2.26373 2.26373 4.70094 2.26373 7.69009C2.26373 10.6792 4.69474 13.1164 7.69009 13.1164C10.6854 13.1164 13.1164 10.6792 13.1164 7.69009C13.1164 4.70094 10.6854 2.26373 7.69009 2.26373Z",fill:"black","fill-opacity":"0.7"}),t("path",{d:"M14.2017 14.6668C14.0839 14.6668 13.9661 14.6234 13.873 14.5304L12.6327 13.2901C12.4529 13.1102 12.4529 12.8126 12.6327 12.6327C12.8126 12.4529 13.1102 12.4529 13.2901 12.6327L14.5304 13.873C14.7102 14.0529 14.7102 14.3506 14.5304 14.5304C14.4374 14.6234 14.3195 14.6668 14.2017 14.6668Z",fill:"black","fill-opacity":"0.7"}))),this.hasUserRoleDropdown&&t("swc-dropdown",{key:"5b4ad4941219b6e21bf3c44ac121fbcd7f343b04",class:"topnav__role-switch"},t("span",{key:"1117237c0c0c531e0f671aea473b88aa9cfc3aea",slot:"trigger"},t("swc-dropdown-trigger",{key:"ac2797a8c41baa83c889a701fafe519ebe26a4d3",size:"md",style:this.roleMenuStyleObj},t("div",{key:"cae9afd5e65423b98b6663071f0de390b127108f",class:"topnav__role-liner"},t("swc-svg-icon",{key:"10196cd77c9d956a93ad1a5b605032bdef4c25f3",name:"Person",variant:"filled",size:"20"}),"  ",t("slot",{key:"5a14395ea2a0aa1917168e684d7b326a293b1967",name:"roleSelected"})))),t("span",{key:"002a05dbc7b44c5984b274d24292f7c59857617d",slot:"list"},t("slot",{key:"1a27e3f95325157339bfd73746b6f2a4494775ff",name:"userRolesList"},"User Role Dropdown Menu"))),this.hasNotifications&&t("div",{key:"298fc63aa8f4c4593e2b44c5962f793778826f41",class:"topnav__notification"},t("swc-dropdown",{key:"a891390d15ab896319604a1d9010e6fe2c24830e"},t("span",{key:"9f01362f044fc1c9a850fbc5f67b8b5d5d8296f3",slot:"trigger"},t("swc-icon-button",{key:"8bcd6e861f4490df9c4ca52d49f9916b9d8ca8ff",intent:"brand",variant:"ghost",size:"lg","aria-label":"Alert",class:"alert-btn",round:!0,onClick:this.handleShowNotification},t("svg",{key:"1a9a0c0e0f9461a5f03ff8974087784bb6bf82e5",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},t("path",{key:"dbb75ba281b6853ffaf1cc5d4982eb554db10831",d:"M7.9979 0C11.1469 0 13.7418 2.33488 13.9824 5.3554L13.9958 5.57762L14.0003 5.80214L13.9993 9.398L14.9247 11.6202C14.9472 11.6743 14.9649 11.7302 14.9776 11.7871L14.9929 11.8733L15.0015 12.0046C15.0015 12.4526 14.705 12.8387 14.2524 12.9677L14.136 12.9945L14.0015 13.0046L10.4999 13.004L10.4949 13.1653C10.4098 14.469 9.32542 15.5 8.00026 15.5C6.67478 15.5 5.59022 14.4685 5.50558 13.1644L5.49986 13.004L1.99915 13.0046C1.9112 13.0046 1.82383 12.993 1.73927 12.9702L1.61481 12.9277C1.20403 12.7567 0.962056 12.3392 1.01246 11.8757L1.03354 11.7483L1.07596 11.6202L1.99926 9.401L2.00035 5.79281L2.00465 5.56824C2.12726 2.45115 4.77129 0 7.9979 0ZM9.49986 13.004H6.49986L6.50722 13.1454C6.57576 13.8581 7.143 14.425 7.8558 14.4931L8.00026 14.5C8.77996 14.5 9.42071 13.9051 9.49339 13.1445L9.49986 13.004ZM7.9979 1C5.37535 1 3.22741 2.92372 3.0174 5.38498L3.00417 5.59723L3.00026 5.80214V9.5L2.96185 9.69217L1.99914 12.0046L13.9569 12.0066L14.0021 12.0045L13.0387 9.6922L13.0003 9.5L13.0004 5.81241L12.9963 5.60831C12.8911 3.0349 10.6949 1 7.9979 1Z",fill:"#004CA6"})),!this.hasReadNotifications&&t("div",{key:"7626f1368b6caf70b2300d8a6ee8b98112155345",class:"notify"},t("svg",{key:"e8d6802acc9c140f4e1f8fd3523350ea564e61df",xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none"},t("circle",{key:"195da3d35f48586f38f7a775977039b8c94d4847",cx:"2",cy:"2",r:"2",fill:"var(--sfe-color-non-semantic-fill-red-strong)"}))))),t("span",{key:"f1d7ccdbade10df51d0ad2c61b391ad6a31a7c59",slot:"list"},t("slot",{key:"c0651aeac06b5146ab2323ffac1e34b1976abb22",name:"notificationsList"})))),t("div",{key:"442fa65819d84a5c69e35a7431e180394dd30845",class:"topnav__avatar"},t("slot",{key:"c14d312ef15d075d4ca4fedb206c37b9972610ae",name:"userAvatar"})))))}static get watchers(){return{isSearchVisible:[{searchVisibleChangeHandler:0}]}}};i.style=".topnav{position:fixed;top:0;left:0;width:100%;z-index:var(--sfe-stack-level-navs);background:var(--sfe-color-fill-surface)}.topnav__content{border-bottom:0.8px solid var(--sfe-color-border-neutral-light);display:flex;padding:var(--sfe-sizing-gap-mid) var(--sfe-sizing-padding-large);justify-content:space-between;align-items:center;margin-inline:auto;height:var(--sfe-sizing-size-640, 64px);max-width:var(--max-width)}.topnav__links{transition:opacity 0.3s ease}.topnav__role-liner{display:flex;align-items:center}.topnav__left,.topnav__search-container,.topnav__right{display:flex;align-items:center}.topnav__left .topnav__brand{max-height:40px;overflow:hidden;width:auto;display:inline-block}.topnav__left .topnav__brand svg{width:auto;height:100%}.topnav__left .topnav__links{display:flex;margin-left:26px}.topnav__search-container{transition:opacity 0.3s ease, transform 0.3s ease;position:relative;justify-content:center;width:40%}.topnav__search-container .search-list{position:relative}.topnav__right{padding:0 24px 0 8px;justify-content:center;align-items:center}.topnav__right .topnav__search-icon,.topnav__right .topnav__role-switch,.topnav__right .topnav__notification,.topnav__right .topnav__avatar{margin:0 12px}.topnav__right .topnav__notification{position:relative}.topnav__right .topnav__notification .alert-btn .notify{position:absolute;right:13px;top:3px}.topnav__right .topnav__notification .topnav__notification-list{position:relative}.topnav__right .topnav__avatar{align-items:center}.w-40{width:36vw}.fade-leave-to{opacity:0}.fade-enter{opacity:1}.slide-fade-leave-to{transform:translateY(-10px);opacity:0}.slide-fade-enter-from{transform:translateY(0);opacity:1}";export{i as swc_top_nav}
@@ -0,0 +1 @@
1
+ import{r as e,d as s,e as t,h as i}from"./p-9oFec6fH.js";import{u as r}from"./p-DAupwlOU.js";const p=class{constructor(t){e(this,t),this.stepChanged=s(this,"stepChanged",7)}get hostElement(){return t(this)}orientation="horizontal";activeIndex=0;withCheckmark=!0;lineSize="150px";testId="";stepChanged;stepItemIds=[];provide=()=>{const e=this.hostElement.querySelectorAll("swc-stepper-item");e.forEach(((s,t)=>{s.activeIndex=this.activeIndex,s.orientation=this.orientation,s.withCheckmark=this.withCheckmark,s.lineSize=this.lineSize,s.index=t,s.isLastItem=t===e.length-1,s.idProp=r().generate(`sfe-stepper-item-${t}`),this.stepItemIds.push(s.idProp)}))};render(){return this.provide(),i("div",{key:"b7f4b3d9c2e411423737a85b09ec0cc0824ad496","aria-orientation":this.orientation,class:`sfe-stepper ${this.orientation}`,"data-testid":`swc-stepper-${this.testId}`},i("slot",{key:"563ddc3ec305a2577fae6821da8644a9bcad8b86"}))}};p.style=".sfe-stepper.sc-swc-stepper{display:inline-flex;position:relative}.sfe-stepper.vertical.sc-swc-stepper{flex-direction:column}";export{p as swc_stepper}
@@ -1 +1 @@
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:"3a1f3d73d56cc9db2c65a52ebebf8609eeb74bd4",isModalOpen:this.isModalOpen,closeOnEsc:this.closeOnEsc,closeOnOverlayClick:this.closeOnOverlayClick,onCloseModal:this.closeDialog,"data-testid":`swc-side-panel-${this.testId}`},a("div",{key:"bc3be859ae32a03bdd099b42f59b2040948ccef0",class:`sfe-side-panel sfe-side-panel--${this.position} sfe-side-panel--${this.size}`},a("header",{key:"d113abc839637e8af8fccf93dbd19cff73c7dfad",class:"sfe-side-panel__header"},a("div",{key:"9d421ad03a748a1cb36f980f70252d492cbe6d2e"},a("h3",{key:"919e38e7eeb1df1a88c09c60ba2289570690525d",class:"sfe-side-panel__title"},a("slot",{key:"20f4e4aa8aa67c41594445cb25e73aea588b293f",name:"title"})),a("p",{key:"157e2ea1fb26a2d5181ffe0b9ed2bd50c366993c",class:"sfe-side-panel__description"},a("slot",{key:"0189ad6bf75a0f909f7709b02cf99cce42ee6e16",name:"description"}))),a("swc-button",{key:"f8ca33792f585981ee9de5692209ab9e0506a105",round:!0,intent:"neutral",variant:"bare",size:"md","aria-label":"Close",onClick:this.closeDialog},"×")),a("section",{key:"d0556d1e3cf7f34bd810cdb28c6517bff1890f89",class:"sfe-side-panel__body"},a("slot",{key:"afb501b9269dc0696258d87a85c586a9e279040a",name:"body"})),a("footer",{key:"f7046cac630ba038d684868e930d5acc9dc3e01e",class:"sfe-side-panel__footer"},a("slot",{key:"95f82de14cd87f0eae207a857c3045ac0626bca5",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
+ import{r as e,d as s,h as a}from"./p-9oFec6fH.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:"3a1f3d73d56cc9db2c65a52ebebf8609eeb74bd4",isModalOpen:this.isModalOpen,closeOnEsc:this.closeOnEsc,closeOnOverlayClick:this.closeOnOverlayClick,onCloseModal:this.closeDialog,"data-testid":`swc-side-panel-${this.testId}`},a("div",{key:"bc3be859ae32a03bdd099b42f59b2040948ccef0",class:`sfe-side-panel sfe-side-panel--${this.position} sfe-side-panel--${this.size}`},a("header",{key:"d113abc839637e8af8fccf93dbd19cff73c7dfad",class:"sfe-side-panel__header"},a("div",{key:"9d421ad03a748a1cb36f980f70252d492cbe6d2e"},a("h3",{key:"919e38e7eeb1df1a88c09c60ba2289570690525d",class:"sfe-side-panel__title"},a("slot",{key:"20f4e4aa8aa67c41594445cb25e73aea588b293f",name:"title"})),a("p",{key:"157e2ea1fb26a2d5181ffe0b9ed2bd50c366993c",class:"sfe-side-panel__description"},a("slot",{key:"0189ad6bf75a0f909f7709b02cf99cce42ee6e16",name:"description"}))),a("swc-button",{key:"f8ca33792f585981ee9de5692209ab9e0506a105",round:!0,intent:"neutral",variant:"bare",size:"md","aria-label":"Close",onClick:this.closeDialog},"×")),a("section",{key:"d0556d1e3cf7f34bd810cdb28c6517bff1890f89",class:"sfe-side-panel__body"},a("slot",{key:"afb501b9269dc0696258d87a85c586a9e279040a",name:"body"})),a("footer",{key:"f7046cac630ba038d684868e930d5acc9dc3e01e",class:"sfe-side-panel__footer"},a("slot",{key:"95f82de14cd87f0eae207a857c3045ac0626bca5",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,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-DAupwlOU.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
+ import{r as e,d as c,e as s,h as t,H as h}from"./p-9oFec6fH.js";import{h as r,u as o}from"./p-DAupwlOU.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}