@lifesg/react-design-system 2.12.0 → 2.13.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 (36) hide show
  1. package/chunks/{e-signature-canvas.d1aa8f7d.js → e-signature-canvas.360cd6fb.js} +2 -2
  2. package/chunks/{e-signature-canvas.d1aa8f7d.js.map → e-signature-canvas.360cd6fb.js.map} +1 -1
  3. package/chunks/{index.92540fa2.js → index.803fafd5.js} +333 -325
  4. package/chunks/index.803fafd5.js.map +1 -0
  5. package/chunks/{index.umd.ab8ece5e.js → index.umd.79682d2e.js} +2 -2
  6. package/chunks/{index.umd.ab8ece5e.js.map → index.umd.79682d2e.js.map} +1 -1
  7. package/chunks/{lottie-animation.82628cfc.js → lottie-animation.2fef14fa.js} +2 -2
  8. package/chunks/{lottie-animation.82628cfc.js.map → lottie-animation.2fef14fa.js.map} +1 -1
  9. package/chunks/{lottie-animation.888071d9.js → lottie-animation.9841ee00.js} +2 -2
  10. package/chunks/{lottie-animation.888071d9.js.map → lottie-animation.9841ee00.js.map} +1 -1
  11. package/chunks/{lottie-animation.2dce0f1f.js → lottie-animation.c67f0b11.js} +2 -2
  12. package/chunks/{lottie-animation.2dce0f1f.js.map → lottie-animation.c67f0b11.js.map} +1 -1
  13. package/cjs/chunks/{e-signature-canvas.b3f3ebde.js → e-signature-canvas.0f91bab0.js} +2 -2
  14. package/cjs/chunks/{e-signature-canvas.b3f3ebde.js.map → e-signature-canvas.0f91bab0.js.map} +1 -1
  15. package/cjs/chunks/{index.e7a64b88.js → index.cf48e156.js} +333 -325
  16. package/cjs/chunks/index.cf48e156.js.map +1 -0
  17. package/cjs/chunks/{index.umd.0c240200.js → index.umd.77b1fd29.js} +2 -2
  18. package/cjs/chunks/{index.umd.0c240200.js.map → index.umd.77b1fd29.js.map} +1 -1
  19. package/cjs/chunks/{lottie-animation.dcb03f32.js → lottie-animation.c86d55f4.js} +2 -2
  20. package/cjs/chunks/{lottie-animation.dcb03f32.js.map → lottie-animation.c86d55f4.js.map} +1 -1
  21. package/cjs/chunks/{lottie-animation.b7f30218.js → lottie-animation.d06f2193.js} +2 -2
  22. package/cjs/chunks/{lottie-animation.b7f30218.js.map → lottie-animation.d06f2193.js.map} +1 -1
  23. package/cjs/chunks/{lottie-animation.ece5e09a.js → lottie-animation.e7cc7bc4.js} +2 -2
  24. package/cjs/chunks/{lottie-animation.ece5e09a.js.map → lottie-animation.e7cc7bc4.js.map} +1 -1
  25. package/cjs/index.js +1 -1
  26. package/footer/footer-helper.d.ts +1 -1
  27. package/footer/footer-resource-addon.d.ts +2 -0
  28. package/footer/footer-resource-addon.styles.d.ts +2 -0
  29. package/footer/footer.d.ts +1 -1
  30. package/footer/index.js +29 -21
  31. package/footer/index.js.map +1 -1
  32. package/footer/types.d.ts +2 -0
  33. package/index.js +1 -1
  34. package/package.json +1 -1
  35. package/chunks/index.92540fa2.js.map +0 -1
  36. package/cjs/chunks/index.e7a64b88.js.map +0 -1
@@ -511,12 +511,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from
511
511
  `,yc=I(F)`
512
512
  transform: rotate(${e=>e.$expanded?-180:0}deg);
513
513
  transition: transform 300ms ease-in-out;
514
- `,xc=n=>{var{type:r,className:i,children:a,actionLink:s,actionLinkIcon:l,sizeType:c="default",showIcon:d=!1,customIcon:p,maxCollapsedHeight:h}=n,m=lt(n,["type","className","children","actionLink","actionLinkIcon","sizeType","showIcon","customIcon","maxCollapsedHeight"]);const[f,g]=o(!1),[v,b]=o(!1),{height:y,ref:x}=an();u((()=>{w()}),[h,y]);const w=()=>{g(!h),b($())},$=()=>!!h&&y>h;return t(hc,Object.assign({className:i,$type:r,$sizeType:c,"data-testid":m["data-testid"]},{children:[d&&e(mc,Object.assign({$sizeType:c,$type:r},{children:(()=>{if(r&&p)return p;switch(r){case"success":return e(z,{});case"warning":return e(L,{});case"error":return e(R,{});case"info":case"description":return e(P,{});default:return null}})()})),t(gc,{children:[t(vc,Object.assign({$maxCollapsedHeight:$()?h:void 0,$showMore:f,$hasActionLink:!!s},{children:[e("div",Object.assign({ref:x},{children:a})),s&&t(fc,Object.assign({"data-testid":"action-link",$type:r,$sizeType:c},s,{children:[s.children,l||e(B,{})]}))]})),v&&t(bc,Object.assign({$sizeType:c,$type:r,type:"button",onClick:()=>g(!f)},{children:["Show ",f?"less":"more",e(yc,{$expanded:f})]}))]})]}))},wc=b((()=>ct(void 0,void 0,void 0,(function*(){return{default:(yield import("./lottie-animation.2dce0f1f.js")).LottieSpinner}})))),$c=t=>e(Sc,Object.assign({},t,{children:e(y,Object.assign({fallback:e(kc,{})},{children:e(wc,{})}))})),kc=()=>e("div",{style:{height:"200px",width:"200px"}}),Sc=I.div`
514
+ `,xc=n=>{var{type:r,className:i,children:a,actionLink:s,actionLinkIcon:l,sizeType:c="default",showIcon:d=!1,customIcon:p,maxCollapsedHeight:h}=n,m=lt(n,["type","className","children","actionLink","actionLinkIcon","sizeType","showIcon","customIcon","maxCollapsedHeight"]);const[f,g]=o(!1),[v,b]=o(!1),{height:y,ref:x}=an();u((()=>{w()}),[h,y]);const w=()=>{g(!h),b($())},$=()=>!!h&&y>h;return t(hc,Object.assign({className:i,$type:r,$sizeType:c,"data-testid":m["data-testid"]},{children:[d&&e(mc,Object.assign({$sizeType:c,$type:r},{children:(()=>{if(r&&p)return p;switch(r){case"success":return e(z,{});case"warning":return e(L,{});case"error":return e(R,{});case"info":case"description":return e(P,{});default:return null}})()})),t(gc,{children:[t(vc,Object.assign({$maxCollapsedHeight:$()?h:void 0,$showMore:f,$hasActionLink:!!s},{children:[e("div",Object.assign({ref:x},{children:a})),s&&t(fc,Object.assign({"data-testid":"action-link",$type:r,$sizeType:c},s,{children:[s.children,l||e(B,{})]}))]})),v&&t(bc,Object.assign({$sizeType:c,$type:r,type:"button",onClick:()=>g(!f)},{children:["Show ",f?"less":"more",e(yc,{$expanded:f})]}))]})]}))},wc=b((()=>ct(void 0,void 0,void 0,(function*(){return{default:(yield import("./lottie-animation.c67f0b11.js")).LottieSpinner}})))),$c=t=>e(Sc,Object.assign({},t,{children:e(y,Object.assign({fallback:e(kc,{})},{children:e(wc,{})}))})),kc=()=>e("div",{style:{height:"200px",width:"200px"}}),Sc=I.div`
515
515
  margin: 0 auto;
516
516
  padding: 2rem 1rem;
517
- `,Oc=b((()=>ct(void 0,void 0,void 0,(function*(){return{default:(yield import("./lottie-animation.82628cfc.js")).LottieLoadingDots}})))),Cc=t=>e(Dc,Object.assign({},t,{children:e(y,Object.assign({fallback:e(Tc,{})},{children:e(Oc,{})}))})),Tc=()=>e("div",{style:{height:"16px",width:"64px"}}),Dc=I.div`
517
+ `,Oc=b((()=>ct(void 0,void 0,void 0,(function*(){return{default:(yield import("./lottie-animation.2fef14fa.js")).LottieLoadingDots}})))),Cc=t=>e(Dc,Object.assign({},t,{children:e(y,Object.assign({fallback:e(Tc,{})},{children:e(Oc,{})}))})),Tc=()=>e("div",{style:{height:"16px",width:"64px"}}),Dc=I.div`
518
518
  margin: 0 auto;
519
- `,jc={[dl.colorScheme]:"base",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"base"},_c={[dl.colorScheme]:"bookingsg",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"bookingsg"},Ic={[dl.colorScheme]:"rbs",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"rbs",[dl.resourceScheme]:"rbs"},Ec={[dl.colorScheme]:"mylegacy",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"mylegacy"},Mc={[dl.colorScheme]:"ccube",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"ccube"},Ac={[dl.colorScheme]:"oneservice",[dl.textStyleScheme]:"oneservice",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"base"},Nc=b((()=>ct(void 0,void 0,void 0,(function*(){return{default:(yield import("./lottie-animation.888071d9.js")).LottieLoadingDotsSpinner}})))),Bc=t=>{var{color:n}=t,r=lt(t,["color"]);const i=A(),a=n||hl.Primary({theme:i||jc});return e(Lc,Object.assign({},r,{children:e(y,Object.assign({fallback:e(Rc,{})},{children:e(Nc,{color:a})}))}))},Rc=()=>e("div",{style:{height:"200px",width:"200px"}}),Lc=I.div`
519
+ `,jc={[dl.colorScheme]:"base",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"base"},_c={[dl.colorScheme]:"bookingsg",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"bookingsg"},Ic={[dl.colorScheme]:"rbs",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"rbs",[dl.resourceScheme]:"rbs"},Ec={[dl.colorScheme]:"mylegacy",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"mylegacy"},Mc={[dl.colorScheme]:"ccube",[dl.textStyleScheme]:"base",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"ccube"},Ac={[dl.colorScheme]:"oneservice",[dl.textStyleScheme]:"oneservice",[dl.designTokenScheme]:"base",[dl.resourceScheme]:"base"},Nc=b((()=>ct(void 0,void 0,void 0,(function*(){return{default:(yield import("./lottie-animation.9841ee00.js")).LottieLoadingDotsSpinner}})))),Bc=t=>{var{color:n}=t,r=lt(t,["color"]);const i=A(),a=n||hl.Primary({theme:i||jc});return e(Lc,Object.assign({},r,{children:e(y,Object.assign({fallback:e(Rc,{})},{children:e(Nc,{color:a})}))}))},Rc=()=>e("div",{style:{height:"200px",width:"200px"}}),Lc=I.div`
520
520
  margin: 0 auto;
521
521
  `;var Pc,zc={exports:{}};Pc=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":
522
522
  /*!**********************************************!*\
@@ -2270,7 +2270,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
2270
2270
  overflow: hidden;
2271
2271
  `,df=I.canvas`
2272
2272
  cursor: crosshair;
2273
- `,uf=b((()=>ct(void 0,void 0,void 0,(function*(){return{default:(yield import("./e-signature-canvas.d1aa8f7d.js")).ESignatureCanvas}})))),pf=r=>{const{description:i,id:s,loadingProgress:l,loadingLabel:c="Uploading...",onChange:d,value:p}=r,h=lt(r,["description","id","loadingProgress","loadingLabel","onChange","value"]),[m,f]=o(!1),g=a(null),[v,b]=o(p),x=Fc.useMediaQuery({maxWidth:vl.mobileL}),w=()=>{var e;null===(e=g.current)||void 0===e||e.clear()},$=()=>{var e;if(g.current){const t=null===(e=g.current)||void 0===e?void 0:e.export();b(t),f(!1),null==d||d(t)}};u((()=>{b(p)}),[p]);return t("div",Object.assign({},h,{children:[e(qm,{children:isNaN(l)?v?t(n,{children:[e(Gm,{src:v,alt:"Signature preview"}),e(Km,Object.assign({styleType:"light",onClick:()=>f(!0),id:s,"aria-label":"Edit signature"},{children:e(G,{})}))]}):e(Xm,Object.assign({type:"button",styleType:"secondary","aria-label":"Add signature",id:s,onClick:()=>f(!0)},{children:"Add signature"})):t(Zm,{children:[c&&e(El.BodySmall,{children:c}),e(Nm,{progress:l,"data-testid":`${s||"e-signature"}-progress-bar`})]})}),e(Jm,Object.assign({"data-testid":"signature-modal",show:m},{children:e(ef,{children:t(tf,Object.assign({onClose:()=>f(!1)},{children:[e(nf,{children:"Signature"}),e(rf,{children:t(af,{children:[e(of,{}),e(y,Object.assign({fallback:null},{children:m&&e(uf,{ref:g,baseImageDataURL:v})}))]})}),t(sf,{children:[e(lf,Object.assign({as:Fd.Default,type:"button",styleType:x?"light":"link",icon:e(Z,{}),onClick:w},{children:"Clear"})),e(lf,Object.assign({type:"button",onClick:$},{children:"Save"}))]})]}))})})),i?e(Qm,Object.assign({weight:"regular",as:"p"},{children:i})):null]}))},hf="https://assets.life.gov.sg/react-design-system/img/feedback-rating/feedback-rating-banner.png",mf="Submit",ff="Rate your experience",gf=5,vf=I.input`
2273
+ `,uf=b((()=>ct(void 0,void 0,void 0,(function*(){return{default:(yield import("./e-signature-canvas.360cd6fb.js")).ESignatureCanvas}})))),pf=r=>{const{description:i,id:s,loadingProgress:l,loadingLabel:c="Uploading...",onChange:d,value:p}=r,h=lt(r,["description","id","loadingProgress","loadingLabel","onChange","value"]),[m,f]=o(!1),g=a(null),[v,b]=o(p),x=Fc.useMediaQuery({maxWidth:vl.mobileL}),w=()=>{var e;null===(e=g.current)||void 0===e||e.clear()},$=()=>{var e;if(g.current){const t=null===(e=g.current)||void 0===e?void 0:e.export();b(t),f(!1),null==d||d(t)}};u((()=>{b(p)}),[p]);return t("div",Object.assign({},h,{children:[e(qm,{children:isNaN(l)?v?t(n,{children:[e(Gm,{src:v,alt:"Signature preview"}),e(Km,Object.assign({styleType:"light",onClick:()=>f(!0),id:s,"aria-label":"Edit signature"},{children:e(G,{})}))]}):e(Xm,Object.assign({type:"button",styleType:"secondary","aria-label":"Add signature",id:s,onClick:()=>f(!0)},{children:"Add signature"})):t(Zm,{children:[c&&e(El.BodySmall,{children:c}),e(Nm,{progress:l,"data-testid":`${s||"e-signature"}-progress-bar`})]})}),e(Jm,Object.assign({"data-testid":"signature-modal",show:m},{children:e(ef,{children:t(tf,Object.assign({onClose:()=>f(!1)},{children:[e(nf,{children:"Signature"}),e(rf,{children:t(af,{children:[e(of,{}),e(y,Object.assign({fallback:null},{children:m&&e(uf,{ref:g,baseImageDataURL:v})}))]})}),t(sf,{children:[e(lf,Object.assign({as:Fd.Default,type:"button",styleType:x?"light":"link",icon:e(Z,{}),onClick:w},{children:"Clear"})),e(lf,Object.assign({type:"button",onClick:$},{children:"Save"}))]})]}))})})),i?e(Qm,Object.assign({weight:"regular",as:"p"},{children:i})):null]}))},hf="https://assets.life.gov.sg/react-design-system/img/feedback-rating/feedback-rating-banner.png",mf="Submit",ff="Rate your experience",gf=5,vf=I.input`
2274
2274
  position: absolute;
2275
2275
  opacity: 0;
2276
2276
  width: 0;
@@ -4684,18 +4684,26 @@ object-assign
4684
4684
  object-fit: contain;
4685
4685
  }
4686
4686
  }
4687
- `,kA=()=>t(yA,Object.assign({"data-testid":"download-app-section"},{children:[e(xA,Object.assign({weight:"semibold"},{children:"Download the app"})),t(wA,{children:[e($A,Object.assign({href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-apple"},{children:e("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",alt:"apple-app-store"})})),e($A,Object.assign({href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-android"},{children:e("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",alt:"google-play-store"})}))]})]})),SA={privacy:{href:"https://www.life.gov.sg/privacy-statement",target:"_blank",rel:"noopener"},termsOfUse:{href:"https://www.life.gov.sg/terms-of-use",target:"_blank",rel:"noopener"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0}},OA={privacy:{href:"https://assets.life.gov.sg/bookingsg/BSG_Privacy_Policy.pdf",target:"_blank",rel:"noopener"},termsOfUse:{href:"https://assets.life.gov.sg/bookingsg/BSG_Terms_of_Use.pdf",target:"_blank",rel:"noopener"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0}},CA={privacy:{href:"https://mylegacy.life.gov.sg/privacy-statement",target:"_blank",rel:"noopener"},termsOfUse:{href:"https://mylegacy.life.gov.sg/terms-of-use",target:"_blank",rel:"noopener"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0}};var TA;!function(e){e.getCopyrightInfo=(e=new Date,n)=>{const r=t(n);return`${`${(new Date).getFullYear()} ${r}`} Last Updated ${rd(e).format("D MMMM YYYY")}`};const t=e=>{switch(e){case"bookingsg":return"BookingSG, Government of Singapore.";case"mylegacy":return"MyLegacy@LifeSG, Government of Singapore.";case"ccube":return"Citizen Collective Common, Government of Singapore.";default:return"LifeSG, Government of Singapore."}};e.getFooterLogo=e=>{switch(e){case"bookingsg":return"https://home.booking.gov.sg/images/bookingsg/footer.svg";case"mylegacy":return"https://mylegacy.life.gov.sg/images/site-logo.png";case"ccube":return"https://assets.life.gov.sg/ccube/logo-ccube.svg";default:return"https://assets.life.gov.sg/react-design-system/img/logo/lifesg-primary-logo.svg"}},e.getDisclaimerLinks=(e,t)=>{const n=(e=>{switch(e){case"bookingsg":return OA;case"mylegacy":return CA;default:return SA}})(e);return{privacy:Object.assign(Object.assign(Object.assign({},n.privacy),t&&t.privacy?t.privacy:{}),{children:"Privacy Statement"}),termsOfUse:Object.assign(Object.assign(Object.assign({},n.termsOfUse),t&&t.termsOfUse?t.termsOfUse:{}),{children:"Terms of Use"}),reportVulnerability:Object.assign(Object.assign(Object.assign({},n.reportVulnerability),t&&t.reportVulnerability?t.reportVulnerability:{}),{children:"Report Vulnerability"})}}}(TA||(TA={}));const DA=I.footer`
4687
+ `,kA=()=>t(yA,Object.assign({"data-testid":"download-app-section"},{children:[e(xA,Object.assign({weight:"semibold"},{children:"Download the app"})),t(wA,{children:[e($A,Object.assign({href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-apple"},{children:e("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",alt:"apple-app-store"})})),e($A,Object.assign({href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-android"},{children:e("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",alt:"google-play-store"})}))]})]})),SA={privacy:{href:"https://www.life.gov.sg/privacy-statement",target:"_blank",rel:"noopener"},termsOfUse:{href:"https://www.life.gov.sg/terms-of-use",target:"_blank",rel:"noopener"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0}},OA={privacy:{href:"https://assets.life.gov.sg/bookingsg/BSG_Privacy_Policy.pdf",target:"_blank",rel:"noopener"},termsOfUse:{href:"https://assets.life.gov.sg/bookingsg/BSG_Terms_of_Use.pdf",target:"_blank",rel:"noopener"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0}},CA={privacy:{href:"https://mylegacy.life.gov.sg/privacy-statement",target:"_blank",rel:"noopener"},termsOfUse:{href:"https://mylegacy.life.gov.sg/terms-of-use",target:"_blank",rel:"noopener"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0}};var TA;!function(e){e.getCopyrightInfo=(e=new Date,n)=>{const r=t(n);return`${`${(new Date).getFullYear()} ${r}`} Last Updated ${rd(e).format("D MMMM YYYY")}`};const t=e=>{switch(e){case"bookingsg":return"BookingSG, Government of Singapore.";case"mylegacy":return"MyLegacy@LifeSG, Government of Singapore.";case"ccube":return"Citizen Collective Common, Government of Singapore.";default:return"LifeSG, Government of Singapore."}};e.getFooterLogoAttribute=e=>{switch(e){case"bookingsg":return{src:"https://home.booking.gov.sg/images/bookingsg/footer.svg",alt:"BookingSG"};case"mylegacy":return{src:"https://mylegacy.life.gov.sg/images/site-logo.png",alt:"MyLegacy",style:{width:"10rem",maxHeight:"2rem"}};case"ccube":return{src:"https://assets.life.gov.sg/ccube/logo-ccube.svg",alt:"Ccube"};default:return{src:"https://assets.life.gov.sg/react-design-system/img/logo/lifesg-primary-logo.svg",alt:"LifeSG"}}},e.getDisclaimerLinks=(e,t)=>{const n=(e=>{switch(e){case"bookingsg":return OA;case"mylegacy":return CA;default:return SA}})(e);return{privacy:Object.assign(Object.assign(Object.assign({},n.privacy),t&&t.privacy?t.privacy:{}),{children:"Privacy Statement"}),termsOfUse:Object.assign(Object.assign(Object.assign({},n.termsOfUse),t&&t.termsOfUse?t.termsOfUse:{}),{children:"Terms of Use"}),reportVulnerability:Object.assign(Object.assign(Object.assign({},n.reportVulnerability),t&&t.reportVulnerability?t.reportVulnerability:{}),{children:"Report Vulnerability"})}}}(TA||(TA={}));const DA=I.img`
4688
+ max-height: 4.5rem;
4689
+ max-width: 100%;
4690
+ `,jA=I.div`
4691
+ display: flex;
4692
+ align-items: flex-start;
4693
+ gap: 1rem;
4694
+ margin-top: 1rem;
4695
+ `,_A=()=>{const r=A();return e("div",Object.assign({"data-testid":"resource-addon-section"},{children:"mylegacy"===(null==r?void 0:r.resourceScheme)?t(n,{children:[e(El.XSmall,{children:"My Legacy is a LifeSG initiative, brought to you by the following government agencies:"}),t(jA,{children:[e(DA,{"data-testid":"footer-govtech-logo",src:"https://mylegacy.life.gov.sg/images/agencies/govtech-logo.png",alt:"GovTech Singapore"}),e(DA,{"data-testid":"footer-psd-logo",src:"https://mylegacy.life.gov.sg/images/agencies/psd-logo.png",alt:"Public Service Division",style:{maxHeight:"3.5rem"}})]})]}):null}))},IA=I.footer`
4688
4696
  background: ${hl.Neutral[7]};
4689
- `,jA=I(El.Hyperlink.Small)`
4697
+ `,EA=I(El.Hyperlink.Small)`
4690
4698
  color: ${hl.Neutral[1]};
4691
- `,_A=I(Dx.Content)`
4699
+ `,MA=I(Dx.Content)`
4692
4700
  padding: 4rem 0;
4693
4701
  border-bottom: 1px solid ${hl.Neutral[5]};
4694
4702
 
4695
4703
  ${gl.MaxWidth.tablet} {
4696
4704
  padding: 2rem 0;
4697
4705
  }
4698
- `,IA=I.div`
4706
+ `,AA=I.div`
4699
4707
  grid-column: 1 / span 2;
4700
4708
 
4701
4709
  img {
@@ -4713,7 +4721,7 @@ object-assign
4713
4721
  grid-column: 1 / span 4;
4714
4722
  margin-bottom: 2rem;
4715
4723
  }
4716
- `,EA=I.ul`
4724
+ `,NA=I.ul`
4717
4725
  // first col
4718
4726
  grid-column: 3 / span 2;
4719
4727
  list-style-type: none;
@@ -4754,7 +4762,7 @@ object-assign
4754
4762
  grid-column: 3 / span 2;
4755
4763
  }
4756
4764
  }
4757
- `,MA=I.div`
4765
+ `,BA=I.div`
4758
4766
  grid-column: 9 / span 4;
4759
4767
 
4760
4768
  ${gl.MaxWidth.tablet} {
@@ -4765,7 +4773,7 @@ object-assign
4765
4773
  ${gl.MaxWidth.mobileL} {
4766
4774
  grid-column: 1 / span 4;
4767
4775
  }
4768
- `,AA=I.div`
4776
+ `,RA=I.div`
4769
4777
  display: none;
4770
4778
 
4771
4779
  ${gl.MaxWidth.tablet} {
@@ -4773,7 +4781,7 @@ object-assign
4773
4781
  height: 1px;
4774
4782
  background: ${hl.Neutral[6]};
4775
4783
  }
4776
- `,NA=I(Dx.Content)`
4784
+ `,LA=I(Dx.Content)`
4777
4785
  padding: 1.375rem 0;
4778
4786
 
4779
4787
  ${gl.MaxWidth.tablet} {
@@ -4781,7 +4789,7 @@ object-assign
4781
4789
  flex-direction: column;
4782
4790
  padding: 1rem 0;
4783
4791
  }
4784
- `,BA=I.div`
4792
+ `,PA=I.div`
4785
4793
  grid-column: 1 / span 6;
4786
4794
  display: flex;
4787
4795
 
@@ -4800,7 +4808,7 @@ object-assign
4800
4808
  ${gl.MaxWidth.mobileL} {
4801
4809
  grid-column: 1 / span 4;
4802
4810
  }
4803
- `,RA=I(BA)`
4811
+ `,zA=I(PA)`
4804
4812
  grid-column: 7 / span 6;
4805
4813
  justify-content: flex-end;
4806
4814
 
@@ -4813,7 +4821,7 @@ object-assign
4813
4821
  ${gl.MaxWidth.mobileL} {
4814
4822
  grid-column: 1 / span 4;
4815
4823
  }
4816
- `,LA=I(El.Hyperlink.Small)`
4824
+ `,FA=I(El.Hyperlink.Small)`
4817
4825
  ${Il.getTextStyle("XSmall","regular")}
4818
4826
  color: ${hl.Neutral[1]};
4819
4827
  &:not(:last-child) {
@@ -4842,7 +4850,7 @@ object-assign
4842
4850
  ${gl.MaxWidth.tablet} {
4843
4851
  margin-bottom: 0.625rem;
4844
4852
  }
4845
- `,PA=r=>{var{children:i,links:a,lastUpdated:o,disclaimerLinks:s,showDownloadAddon:l,logoSrc:c,copyrightInfo:d,onFooterLinkClick:u,layout:p="default"}=r,h=lt(r,["children","links","lastUpdated","disclaimerLinks","showDownloadAddon","logoSrc","copyrightInfo","onFooterLinkClick","layout"]);const m="stretch"===p,f=A(),g=t=>t.map(((t,n)=>{const r=lt(t,["data-options"]);return e("li",{children:e(jA,Object.assign({},r,{onClick:e=>((e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):u&&(e.preventDefault(),u(t))})(e,t)}))},n)}));return t(DA,Object.assign({},h,{children:[(()=>{let r=null;return i||((a||l)&&(r=t(n,{children:[e(IA,Object.assign({"data-testid":"logo-section"},{children:e("img",{src:c||TA.getFooterLogo(null==f?void 0:f.resourceScheme),alt:"LifeSG","data-testid":"logo"})})),(null==a?void 0:a[0])&&e(EA,Object.assign({"data-testid":"link-col-1"},{children:g(a[0])}),"link-col-1"),(null==a?void 0:a[1])&&e(EA,Object.assign({"data-testid":"link-col-2"},{children:g(a[1])}),"link-col-2"),l&&e(MA,{children:e(kA,{})})]})),r?e(_A,Object.assign({type:"grid",stretch:m},{children:r})):null)})(),e(AA,{}),t(NA,Object.assign({type:"grid",stretch:m},{children:[e(BA,{children:(()=>{const t=TA.getDisclaimerLinks(null==f?void 0:f.resourceScheme,s);return Object.keys(t).map((n=>e(LA,Object.assign({},t[n]),n)))})()},"disclaimer"),e(RA,{children:e(El.XSmall,Object.assign({"data-testid":"copyright-text"},{children:d||t(n,{children:["©"," ",TA.getCopyrightInfo(o,null==f?void 0:f.resourceScheme)]})}))},"copyright")]}))]}))};var zA=function(e,t){return Number(e.toFixed(t))},FA=function(e,t,n){n&&"function"==typeof n&&n(e,t)},HA={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},WA=function(e){"number"==typeof e&&cancelAnimationFrame(e)},VA=function(e){e.mounted&&(WA(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function YA(e,t,n,r){if(e.mounted){var i=(new Date).getTime();VA(e),e.animation=function(){if(!e.mounted)return WA(e.animation);var a=(new Date).getTime()-i,o=(0,HA[t])(a/n);a>=n?(r(1),e.animation=null):e.animation&&(r(o),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function UA(e,t,n,r){var i=function(e){var t=e.scale,n=e.positionX,r=e.positionY;return!(Number.isNaN(t)||Number.isNaN(n)||Number.isNaN(r))}(t);if(e.mounted&&i){var a=e.setTransformState,o=e.transformState,s=o.scale,l=o.positionX,c=o.positionY,d=t.scale-s,u=t.positionX-l,p=t.positionY-c;0===n?a(t.scale,t.positionX,t.positionY):YA(e,r,n,(function(e){a(s+d*e,l+u*e,c+p*e)}))}}var qA=function(e,t){var n=e.wrapperComponent,r=e.contentComponent,i=e.setup.centerZoomedOut;if(!n||!r)throw new Error("Components are not mounted");var a=function(e,t,n){var r=e.offsetWidth,i=e.offsetHeight,a=t.offsetWidth*n,o=t.offsetHeight*n;return{wrapperWidth:r,wrapperHeight:i,newContentWidth:a,newDiffWidth:r-a,newContentHeight:o,newDiffHeight:i-o}}(n,r,t),o=a.wrapperWidth,s=a.wrapperHeight,l=function(e,t,n,r,i,a,o){var s=e>t?n*(o?1:.5):0,l=r>i?a*(o?1:.5):0;return{minPositionX:e-t-s,maxPositionX:s,minPositionY:r-i-l,maxPositionY:l}}(o,a.newContentWidth,a.newDiffWidth,s,a.newContentHeight,a.newDiffHeight,Boolean(i));return l},XA=function(e,t,n,r){return zA(r?e<t?t:e>n?n:e:e,2)},KA=function(e,t){var n=qA(e,t);return e.bounds=n,n};function GA(e,t,n,r,i,a,o){var s=n.minPositionX,l=n.minPositionY,c=n.maxPositionX,d=n.maxPositionY,u=0,p=0;return o&&(u=i,p=a),{x:XA(e,s-u,c+u,r),y:XA(t,l-p,d+p,r)}}function ZA(e,t,n,r,i,a){var o=e.transformState,s=o.scale,l=o.positionX,c=o.positionY,d=r-s;return"number"!=typeof t||"number"!=typeof n?(console.error("Mouse X and Y position were not provided!"),{x:l,y:c}):GA(l-t*d,c-n*d,i,a,0,0,null)}function QA(e,t,n,r,i){var a=t-(i?r:0);return!Number.isNaN(n)&&e>=n?n:!Number.isNaN(t)&&e<=a?a:e}var JA=function(e,t){var n=e.setup.panning.excluded,r=e.isInitialized,i=e.wrapperComponent,a=t.target,o="shadowRoot"in a&&"composedPath"in t?t.composedPath().some((function(e){return e instanceof Element&&(null==i?void 0:i.contains(e))})):null==i?void 0:i.contains(a);return!!(r&&a&&o)&&!AN(a,n)},eN=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup.panning.disabled;return!(!t||!n||r)};function tN(e,t,n,r,i){var a=e.setup.limitToBounds,o=e.wrapperComponent,s=e.bounds,l=e.transformState,c=l.scale,d=l.positionX,u=l.positionY;if(null!==o&&null!==s&&(t!==d||n!==u)){var p=GA(t,n,s,a,r,i,o),h=p.x,m=p.y;e.setTransformState(c,h,m)}}var nN=function(e,t){var n=e.setup,r=e.transformState.scale,i=n.minScale,a=n.disablePadding;return t>0&&r>=i&&!a?t:0};function rN(e,t,n,r,i,a,o,s,l,c){if(i){var d;if(t>o&&n>o)return(d=o+(e-o)*c)>l?l:d<o?o:d;if(t<a&&n<a)return(d=a+(e-a)*c)<s?s:d>a?a:d}return r?t:XA(e,a,o,i)}function iN(e,t){var n=function(e){var t=e.mounted,n=e.setup,r=n.disabled,i=n.velocityAnimation,a=e.transformState.scale;return!(i.disabled&&!(a>1)&&r&&!t)}(e);if(n){var r=e.lastMousePosition,i=e.velocityTime,a=e.setup,o=e.wrapperComponent,s=a.velocityAnimation.equalToMove,l=Date.now();if(r&&i&&o){var c=function(e,t){return t?Math.min(1,e.offsetWidth/window.innerWidth):1}(o,s),d=t.x-r.x,u=t.y-r.y,p=d/c,h=u/c,m=l-i,f=d*d+u*u,g=Math.sqrt(f)/m;e.velocity={velocityX:p,velocityY:h,total:g}}e.lastMousePosition=t,e.velocityTime=l}}function aN(e,t){var n=e.transformState.scale;VA(e),KA(e,n),void 0!==window.TouchEvent&&t instanceof TouchEvent?function(e,t){var n=t.touches,r=e.transformState,i=r.positionX,a=r.positionY;if(e.isPanning=!0,1===n.length){var o=n[0].clientX,s=n[0].clientY;e.startCoords={x:o-i,y:s-a}}}(e,t):function(e,t){var n=e.transformState,r=n.positionX,i=n.positionY;e.isPanning=!0;var a=t.clientX,o=t.clientY;e.startCoords={x:a-r,y:o-i}}(e,t)}function oN(e,t){var n=e.transformState.scale,r=e.setup,i=r.minScale,a=r.alignmentAnimation,o=a.disabled,s=a.sizeX,l=a.sizeY,c=a.animationTime,d=a.animationType;if(!(o||n<i||!s&&!l)){var u=function(e){var t=e.transformState,n=t.positionX,r=t.positionY,i=t.scale,a=e.setup,o=a.disabled,s=a.limitToBounds,l=a.centerZoomedOut,c=e.wrapperComponent;if(!o&&c&&e.bounds){var d=e.bounds,u=d.maxPositionX,p=d.minPositionX,h=d.maxPositionY,m=d.minPositionY,f=n>u||n<p,g=r>h||r<m,v=ZA(e,n>u?c.offsetWidth:e.setup.minPositionX||0,r>h?c.offsetHeight:e.setup.minPositionY||0,i,e.bounds,s||l),b=v.x,y=v.y;return{scale:i,positionX:f?b:n,positionY:g?y:r}}}(e);u&&UA(e,u,null!=t?t:c,d)}}function sN(e,t,n){var r=e.startCoords,i=e.setup.alignmentAnimation,a=i.sizeX,o=i.sizeY;if(r){var s=function(e,t,n){var r=e.startCoords,i=e.transformState,a=e.setup.panning,o=a.lockAxisX,s=a.lockAxisY,l=i.positionX,c=i.positionY;if(!r)return{x:l,y:c};var d=t-r.x,u=n-r.y;return{x:o?l:d,y:s?c:u}}(e,t,n),l=s.x,c=s.y,d=nN(e,a),u=nN(e,o);iN(e,{x:l,y:c}),tN(e,l,c,d,u)}}function lN(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,r=e.wrapperComponent,i=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var a=null==r?void 0:r.getBoundingClientRect(),o=null==i?void 0:i.getBoundingClientRect(),s=(null==a?void 0:a.width)||0,l=(null==a?void 0:a.height)||0,c=(null==o?void 0:o.width)||0,d=(null==o?void 0:o.height)||0,u=s<c||l<d;!t&&n&&(null==n?void 0:n.total)>.1&&u?function(e){var t=e.velocity,n=e.bounds,r=e.setup,i=e.wrapperComponent,a=function(e){var t=e.mounted,n=e.velocity,r=e.bounds,i=e.setup,a=i.disabled,o=i.velocityAnimation,s=e.transformState.scale;return!(o.disabled&&!(s>1)&&a&&!t||!n||!r)}(e);if(a&&t&&n&&i){var o=t.velocityX,s=t.velocityY,l=t.total,c=n.maxPositionX,d=n.minPositionX,u=n.maxPositionY,p=n.minPositionY,h=r.limitToBounds,m=r.alignmentAnimation,f=r.zoomAnimation,g=r.panning,v=g.lockAxisY,b=g.lockAxisX,y=f.animationType,x=m.sizeX,w=m.sizeY,$=m.velocityAlignmentTime,k=function(e,t){var n=e.setup.velocityAnimation,r=n.equalToMove,i=n.animationTime,a=n.sensitivity;return r?i*t*a:i}(e,l),S=Math.max(k,$),O=nN(e,x),C=nN(e,w),T=O*i.offsetWidth/100,D=C*i.offsetHeight/100,j=c+T,_=d-T,I=u+D,E=p-D,M=e.transformState,A=(new Date).getTime();YA(e,y,S,(function(t){var n=e.transformState,r=n.scale,i=n.positionX,a=n.positionY,l=((new Date).getTime()-A)/$,f=1-(0,HA[m.animationType])(Math.min(1,l)),g=1-t,y=i+o*g,x=a+s*g,w=rN(y,M.positionX,i,b,h,d,c,_,j,f),k=rN(x,M.positionY,a,v,h,p,u,E,I,f);i===y&&a===x||e.setTransformState(r,w,k)}))}}(e):oN(e)}}function cN(e,t,n,r){var i=e.setup,a=i.minScale,o=i.maxScale,s=i.limitToBounds,l=QA(zA(t,2),a,o,0,!1),c=ZA(e,n,r,l,KA(e,l),s);return{scale:l,positionX:c.x,positionY:c.y}}function dN(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,a=e.setup,o=a.minScale,s=a.limitToBounds,l=a.zoomAnimation,c=l.disabled,d=l.animationTime,u=l.animationType,p=c||r>=o;if((r>=1||s)&&oN(e),!p&&i&&e.mounted){var h=cN(e,o,t||i.offsetWidth/2,n||i.offsetHeight/2);h&&UA(e,h,d,u)}}var uN=function(){return uN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},uN.apply(this,arguments)};function pN(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var hN=1,mN=0,fN=0,gN={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,smooth:!0,wheel:{step:.2,disabled:!1,smoothStep:.001,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,allowLeftClickPan:!0,allowMiddleClickPan:!0,allowRightClickPan:!0,wheelPanning:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},vN="react-transform-wrapper",bN="react-transform-component",yN=function(e){var t,n,r,i;return{previousScale:null!==(t=e.initialScale)&&void 0!==t?t:hN,scale:null!==(n=e.initialScale)&&void 0!==n?n:hN,positionX:null!==(r=e.initialPositionX)&&void 0!==r?r:mN,positionY:null!==(i=e.initialPositionY)&&void 0!==i?i:fN}},xN=function(e){var t=uN({},gN);return Object.keys(e).forEach((function(n){var r=void 0!==e[n];if(void 0!==gN[n]&&r){var i=Object.prototype.toString.call(gN[n]),a="[object Object]"===i,o="[object Array]"===i;t[n]=a?uN(uN({},gN[n]),e[n]):o?pN(pN([],gN[n],!0),e[n],!0):e[n]}})),t},wN=function(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,a=e.setup,o=a.maxScale,s=a.minScale,l=a.zoomAnimation,c=a.smooth,d=l.size;if(!i)throw new Error("Wrapper is not mounted");var u=c?r*Math.exp(t*n):r+t*n;return QA(zA(u,3),s,o,d,!1)};function $N(e,t,n,r,i){var a=e.wrapperComponent,o=e.transformState,s=o.scale,l=o.positionX,c=o.positionY;if(!a)return console.error("No WrapperComponent found");var d=(a.offsetWidth/2-l)/s,u=(a.offsetHeight/2-c)/s,p=cN(e,wN(e,t,n),d,u);if(!p)return console.error("Error during zoom event. New transformation state was not calculated.");UA(e,p,r,i)}function kN(e,t,n,r){var i=e.setup,a=e.wrapperComponent,o=i.limitToBounds,s=yN(e.props),l=e.transformState,c=l.scale,d=l.positionX,u=l.positionY;if(a){var p=qA(e,s.scale),h=GA(s.positionX,s.positionY,p,o,0,0,a),m={scale:s.scale,positionX:h.x,positionY:h.y};c===s.scale&&d===s.positionX&&u===s.positionY||(null==r||r(),UA(e,m,t,n))}}var SN=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),$N(e,1,t,n,r)}},ON=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),$N(e,-1,t,n,r)}},CN=function(e){return function(t,n,r,i,a){void 0===i&&(i=300),void 0===a&&(a="easeOut");var o=e.transformState,s=o.positionX,l=o.positionY,c=o.scale,d=e.wrapperComponent,u=e.contentComponent;if(!e.setup.disabled&&d&&u){var p={positionX:Number.isNaN(t)?s:t,positionY:Number.isNaN(n)?l:n,scale:Number.isNaN(r)?c:r};UA(e,p,i,a)}}},TN=function(e){return function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),kN(e,t,n)}},DN=function(e){return function(t,n,r){void 0===n&&(n=200),void 0===r&&(r="easeOut");var i=e.transformState,a=e.wrapperComponent,o=e.contentComponent;if(a&&o){var s=BN(t||i.scale,a,o);UA(e,s,n,r)}}},jN=function(e){return function(t,n,r,i){void 0===r&&(r=600),void 0===i&&(i="easeOut"),VA(e);var a=e.wrapperComponent,o="string"==typeof t?document.getElementById(t):t;if(a&&o&&a.contains(o)){var s=function(e,t,n){var r=e.wrapperComponent,i=e.contentComponent,a=e.transformState,o=e.setup,s=o.limitToBounds,l=o.minScale,c=o.maxScale;if(!r||!i)return a;var d=r.getBoundingClientRect(),u=t.getBoundingClientRect(),p=function(e,t,n,r){var i=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=a.x*r.scale,l=a.y*r.scale;return{x:(i.x-o.x+s)/r.scale,y:(i.y-o.y+l)/r.scale}}(t,r,i,a),h=p.x,m=p.y,f=u.width/a.scale,g=u.height/a.scale,v=r.offsetWidth/f,b=r.offsetHeight/g,y=QA(n||Math.min(v,b),l,c,0,!1),x=(d.width-f*y)/2,w=(d.height-g*y)/2,$=GA((d.left-h)*y+x,(d.top-m)*y+w,qA(e,y),s,0,0,r);return{positionX:$.x,positionY:$.y,scale:y}}(e,o,n);UA(e,s,r,i)}}},_N=function(e){return{instance:e,zoomIn:SN(e),zoomOut:ON(e),setTransform:CN(e),resetTransform:TN(e),centerView:DN(e),zoomToElement:jN(e)}},IN=function(e){var t={};return Object.assign(t,function(e){return{instance:e,state:e.transformState}}(e)),Object.assign(t,_N(e)),t};function EN(){try{return{get passive(){return!1}}}catch(e){return!1}}var MN=".".concat(vN),AN=function(e,t){return t.some((function(t){return e.matches("".concat(MN," ").concat(t,", ").concat(MN," .").concat(t,", ").concat(MN," ").concat(t," *, ").concat(MN," .").concat(t," *"))}))},NN=function(e){e&&clearTimeout(e)},BN=function(e,t,n){var r=n.offsetWidth*e,i=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-r)/2,positionY:(t.offsetHeight-i)/2}};function RN(e,t,n){var r=t.getBoundingClientRect(),i=0,a=0;if("clientX"in e)i=(e.clientX-r.left)/n,a=(e.clientY-r.top)/n;else{var o=e.touches[0];i=(o.clientX-r.left)/n,a=(o.clientY-r.top)/n}return(Number.isNaN(i)||Number.isNaN(a))&&console.error("No mouse or touch offset found"),{x:i,y:a}}var LN=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},PN=function(e,t){var n=e.props,r=n.onWheel,i=n.onZoom,a=e.contentComponent,o=e.setup,s=e.transformState.scale,l=o.limitToBounds,c=o.centerZoomedOut,d=o.zoomAnimation,u=o.wheel,p=o.disablePadding,h=o.smooth,m=d.size,f=d.disabled,g=u.step,v=u.smoothStep;if(!a)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var b=function(e,t){var n=function(e){return e?e.deltaY<0?1:-1:0}(e),r=function(e,t){return"number"==typeof e?e:t}(t,n);return r}(t,null),y=function(e,t,n,r,i){var a=e.transformState.scale,o=e.wrapperComponent,s=e.setup,l=s.maxScale,c=s.minScale,d=s.zoomAnimation,u=s.disablePadding,p=d.size,h=d.disabled;if(!o)throw new Error("Wrapper is not mounted");var m=a+t*n;if(i)return m;var f=!r&&!h;return QA(zA(m,3),c,l,p,f&&!u)}(e,b,h?v*Math.abs(t.deltaY):g,!t.ctrlKey);if(s!==y){var x=KA(e,y),w=RN(t,a,s),$=l&&(f||0===m||c||p),k=ZA(e,w.x,w.y,y,x,$),S=k.x,O=k.y;e.previousWheelEvent=t,e.setTransformState(y,S,O),FA(IN(e),t,r),FA(IN(e),t,i)}},zN=function(e,t){var n=e.props,r=n.onWheelStop,i=n.onZoomStop;NN(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout((function(){e.mounted&&(dN(e,t.x,t.y),e.wheelAnimationTimer=null)}),100);var a=function(e,t){var n=e.previousWheelEvent,r=e.transformState.scale,i=e.setup,a=i.maxScale,o=i.minScale;return!!n&&(r<a||r>o||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaY<t.deltaY||n.deltaY<0&&n.deltaY>t.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))}(e,t);a&&(NN(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,FA(IN(e),t,r),FA(IN(e),t,i))}),160))},FN=function(e){for(var t=0,n=0,r=0;r<2;r+=1)t+=e.touches[r].clientX,n+=e.touches[r].clientY;return{x:t/2,y:n/2}},HN=function(e,t){var n=e.contentComponent,r=e.pinchStartDistance,i=e.wrapperComponent,a=e.transformState.scale,o=e.setup,s=o.limitToBounds,l=o.centerZoomedOut,c=o.zoomAnimation,d=o.alignmentAnimation,u=c.disabled,p=c.size;if(null!==r&&n){var h=function(e,t,n){var r=n.getBoundingClientRect(),i=e.touches,a=zA(i[0].clientX-r.left,5),o=zA(i[0].clientY-r.top,5);return{x:(a+zA(i[1].clientX-r.left,5))/2/t,y:(o+zA(i[1].clientY-r.top,5))/2/t}}(t,a,n);if(Number.isFinite(h.x)&&Number.isFinite(h.y)){var m=LN(t),f=function(e,t){var n=e.pinchStartScale,r=e.pinchStartDistance,i=e.setup,a=i.maxScale,o=i.minScale,s=i.zoomAnimation,l=i.disablePadding,c=s.size,d=s.disabled;if(!n||null===r||!t)throw new Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:QA(zA(t/r*n,2),o,a,c,!d&&!l)}(e,m),g=FN(t),v=g.x-(e.pinchLastCenterX||0),b=g.y-(e.pinchLastCenterY||0);if(f!==a||0!==v||0!==b){e.pinchLastCenterX=g.x,e.pinchLastCenterY=g.y;var y=KA(e,f),x=s&&(u||0===p||l),w=ZA(e,h.x,h.y,f,y,x),$=w.x,k=w.y;e.pinchMidpoint=h,e.lastDistance=m;var S=d.sizeX,O=d.sizeY,C=GA($+v,k+b,y,s,nN(e,S),nN(e,O),i),T=C.x,D=C.y;e.setTransformState(f,T,D)}}}},WN=function(e,t){var n=e.props.onZoomStop,r=e.setup.doubleClick.animationTime;NN(e.doubleClickStopEventTimer),e.doubleClickStopEventTimer=setTimeout((function(){e.doubleClickStopEventTimer=null,FA(IN(e),t,n)}),r)};function VN(e,t){var n=e.setup,r=e.doubleClickStopEventTimer,i=e.transformState,a=e.contentComponent,o=i.scale,s=e.props,l=s.onZoomStart,c=s.onZoom,d=n.doubleClick,u=d.disabled,p=d.mode,h=d.step,m=d.animationTime,f=d.animationType;if(!u&&!r){if("reset"===p)return function(e,t){var n=e.props,r=n.onZoomStart,i=n.onZoom,a=e.setup.doubleClick,o=a.animationTime,s=a.animationType;FA(IN(e),t,r),kN(e,o,s,(function(){return FA(IN(e),t,i)})),WN(e,t)}(e,t);if(!a)return console.error("No ContentComponent found");var g=function(e,t){return"toggle"===e?1===t?1:-1:"zoomOut"===e?-1:1}(p,e.transformState.scale),v=wN(e,g,h);if(o!==v){FA(IN(e),t,l);var b=RN(t,a,o),y=cN(e,v,b.x,b.y);if(!y)return console.error("Error during zoom event. New transformation state was not calculated.");FA(IN(e),t,c),UA(e,y,m,f),WN(e,t)}}}var YN=function(e){var t=this;this.mounted=!0,this.pinchLastCenterX=null,this.pinchLastCenterY=null,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.isWheelPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(e){t.props=e,KA(t,t.transformState.scale),t.setup=xN(e)},this.initializeWindowEvents=function(){var e,n,r=EN(),i=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,a=null==i?void 0:i.defaultView;null===(n=t.wrapperComponent)||void 0===n||n.addEventListener("wheel",t.onWheelPanning,r),null==a||a.addEventListener("mousedown",t.onPanningStart,r),null==a||a.addEventListener("mousemove",t.onPanning,r),null==a||a.addEventListener("mouseup",t.onPanningStop,r),null==i||i.addEventListener("mouseleave",t.clearPanning,r),null==a||a.addEventListener("keyup",t.setKeyUnPressed,r),null==a||a.addEventListener("keydown",t.setKeyPressed,r)},this.cleanupWindowEvents=function(){var e,n,r=EN(),i=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,a=null==i?void 0:i.defaultView;null==a||a.removeEventListener("mousedown",t.onPanningStart,r),null==a||a.removeEventListener("mousemove",t.onPanning,r),null==a||a.removeEventListener("mouseup",t.onPanningStop,r),null==i||i.removeEventListener("mouseleave",t.clearPanning,r),null==a||a.removeEventListener("keyup",t.setKeyUnPressed,r),null==a||a.removeEventListener("keydown",t.setKeyPressed,r),document.removeEventListener("mouseleave",t.clearPanning,r),VA(t),null===(n=t.observer)||void 0===n||n.disconnect()},this.handleInitializeWrapperEvents=function(e){var n=EN();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},this.handleInitialize=function(e,n){var r=!1,i=t.setup.centerOnInit,a=function(e,t){for(var n=0,r=e;n<r.length;n++)if(r[n].target===t)return!0;return!1};t.applyTransformation(),t.onInitCallbacks.forEach((function(e){e(IN(t))})),t.observer=new ResizeObserver((function(o){if(a(o,e)||a(o,n))if(i&&!r){var s=n.offsetWidth,l=n.offsetHeight;(s>0||l>0)&&(r=!0,t.setCenter())}else VA(t),KA(t,t.transformState.scale),oN(t,0)})),t.observer.observe(e),t.observer.observe(n)},this.onWheelZoom=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.setup.wheel,r=n.disabled,i=n.wheelDisabled,a=n.touchPadDisabled,o=n.excluded,s=e.isInitialized,l=e.isPanning,c=t.target;return!(!s||l||r||!c||i&&!t.ctrlKey||a&&t.ctrlKey||AN(c,o))}(t,e);n&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(function(e,t){var n=e.props,r=n.onWheelStart,i=n.onZoomStart;e.wheelStopEventTimer||(VA(e),FA(IN(e),t,r),FA(IN(e),t,i))}(t,e),PN(t,e),zN(t,e))}},this.onWheelPanning=function(e){var n=t.setup,r=n.disabled,i=n.wheel,a=n.panning;if(t.wrapperComponent&&t.contentComponent&&!r&&i.wheelDisabled&&!a.disabled&&a.wheelPanning&&!e.ctrlKey){e.preventDefault(),e.stopPropagation();var o=t.transformState,s=o.positionX,l=o.positionY,c=s-e.deltaX,d=l-e.deltaY,u=a.lockAxisX?s:c,p=a.lockAxisY?l:d,h=t.setup.alignmentAnimation,m=h.sizeX,f=h.sizeY,g=nN(t,m),v=nN(t,f);u===s&&p===l||tN(t,u,p,g,v)}},this.onPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;n||JA(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(0!==e.button||t.setup.panning.allowLeftClickPan)&&(1!==e.button||t.setup.panning.allowMiddleClickPan)&&(2!==e.button||t.setup.panning.allowRightClickPan)&&(e.preventDefault(),e.stopPropagation(),VA(t),aN(t,e),FA(IN(t),e,r))},this.onPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;n||eN(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),sN(t,e.clientX,e.clientY),FA(IN(t),e,r))},this.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(lN(t),FA(IN(t),e,n))},this.onPinchStart=function(e){var n=t.setup.disabled,r=t.props,i=r.onPinchingStart,a=r.onZoomStart;if(!n){var o=function(e,t){var n=e.setup.pinch,r=n.disabled,i=n.excluded,a=e.isInitialized,o=t.target;return!(!a||r||!o||AN(o,i))}(t,e);o&&(function(e,t){var n=LN(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1;var r=FN(t);e.pinchLastCenterX=r.x,e.pinchLastCenterY=r.y,VA(e)}(t,e),VA(t),FA(IN(t),e,i),FA(IN(t),e,a))}},this.onPinch=function(e){var n=t.setup.disabled,r=t.props,i=r.onPinching,a=r.onZoom;if(!n){var o=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,r=e.pinchStartDistance;return!(!n||t||!r)}(t);o&&(e.preventDefault(),e.stopPropagation(),HN(t,e),FA(IN(t),e,i),FA(IN(t),e,a))}},this.onPinchStop=function(e){var n,r,i=t.props,a=i.onPinchingStop,o=i.onZoomStop;t.pinchStartScale&&(r=(n=t).pinchMidpoint,n.velocity=null,n.lastDistance=null,n.pinchMidpoint=null,n.pinchStartScale=null,n.pinchStartDistance=null,dN(n,null==r?void 0:r.x,null==r?void 0:r.y),FA(IN(t),e,a),FA(IN(t),e,o))},this.onTouchPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;if(!n&&JA(t,e)&&!(t.lastTouch&&+new Date-t.lastTouch<200&&1===e.touches.length)){t.lastTouch=+new Date,VA(t);var i=e.touches,a=1===i.length,o=2===i.length;a&&(VA(t),aN(t,e),FA(IN(t),e,r)),o&&t.onPinchStart(e)}},this.onTouchPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n)return;if(!eN(t))return;e.preventDefault(),e.stopPropagation();var i=e.touches[0];sN(t,i.clientX,i.clientY),FA(IN(t),e,r)}else e.touches.length>1&&t.onPinch(e)},this.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},this.onDoubleClick=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.isInitialized,r=e.setup,i=e.wrapperComponent,a=r.doubleClick,o=a.disabled,s=a.excluded,l=t.target,c=null==i?void 0:i.contains(l);return!(!(n&&l&&c)||o||AN(l,s))}(t,e);n&&VN(t,e)}},this.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},this.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},this.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},this.isPressingKeys=function(e){return!e.length||Boolean(e.find((function(e){return t.pressedKeys[e]})))},this.setTransformState=function(e,n,r){var i=t.props.onTransformed;if(Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(r))console.error("Detected NaN set state values");else{e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=r,t.applyTransformation();var a=IN(t);t.onChangeCallbacks.forEach((function(e){return e(a)})),FA(a,{scale:e,positionX:n,positionY:r},i)}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=BN(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},this.handleTransformStyles=function(e,n,r){return t.props.customTransform?t.props.customTransform(e,n,r):function(e,t,n){return"translate(".concat(e,"px, ").concat(t,"px) scale(").concat(n,")")}(e,n,r)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,r=e.positionX,i=e.positionY,a=t.handleTransformStyles(r,i,n);t.contentComponent.style.transform=a}},this.getContext=function(){return IN(t)},this.onChange=function(e){return t.onChangeCallbacks.has(e)||t.onChangeCallbacks.add(e),function(){t.onChangeCallbacks.delete(e)}},this.onInit=function(e){return t.onInitCallbacks.has(e)||t.onInitCallbacks.add(e),function(){t.onInitCallbacks.delete(e)}},this.init=function(e,n){t.cleanupWindowEvents(),t.wrapperComponent=e,t.contentComponent=n,KA(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(e,n),t.initializeWindowEvents(),t.isInitialized=!0;var r=IN(t);FA(r,void 0,t.props.onInit)},this.props=e,this.setup=xN(this.props),this.transformState=yN(this.props)},UN=i.createContext(null),qN=i.forwardRef((function(e,t){var n=a(new YN(e)).current,r=function(e,t){return"function"==typeof e?e(t):e}(e.children,_N(n));return v(t,(function(){return _N(n)}),[n]),u((function(){n.update(e)}),[n,e]),i.createElement(UN.Provider,{value:n},r)}));i.forwardRef((function(e,t){var n,r=a(null),o=f(UN);return u((function(){return o.onChange((function(e){if(r.current){r.current.style.transform=o.handleTransformStyles(0,0,1/e.instance.transformState.scale)}}))}),[o]),i.createElement("div",uN({},e,{ref:(n=[r,t],function(e){n.forEach((function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)}))})}))}));var XN="transform-component-module_wrapper__SPB86",KN="transform-component-module_content__FBWxo";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__SPB86 {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n transform: translate3d(0, 0, 0);\n}\n.transform-component-module_content__FBWxo {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__FBWxo img {\n pointer-events: none;\n}\n");var GN=function(e){var t=e.children,n=e.wrapperClass,r=void 0===n?"":n,o=e.contentClass,s=void 0===o?"":o,l=e.wrapperStyle,c=e.contentStyle,d=e.wrapperProps,p=void 0===d?{}:d,h=e.contentProps,m=void 0===h?{}:h,g=f(UN),v=g.init,b=g.cleanupWindowEvents,y=a(null),x=a(null);return u((function(){var e=y.current,t=x.current;return null!==e&&null!==t&&v&&(null==v||v(e,t)),function(){null==b||b()}}),[]),i.createElement("div",uN({},p,{ref:y,className:"".concat(vN," ").concat(XN," ").concat(r),style:l}),i.createElement("div",uN({},m,{ref:x,className:"".concat(bN," ").concat(KN," ").concat(s),style:c}),t))};const ZN=I.div`
4853
+ `,HA=r=>{var{children:i,links:a,lastUpdated:o,disclaimerLinks:s,showDownloadAddon:l,showResourceAddon:c,logoSrc:d,copyrightInfo:u,onFooterLinkClick:p,layout:h="default"}=r,m=lt(r,["children","links","lastUpdated","disclaimerLinks","showDownloadAddon","showResourceAddon","logoSrc","copyrightInfo","onFooterLinkClick","layout"]);const f="stretch"===h,g=A(),v=t=>t.map(((t,n)=>{const r=lt(t,["data-options"]);return e("li",{children:e(EA,Object.assign({},r,{onClick:e=>((e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):p&&(e.preventDefault(),p(t))})(e,t)}))},n)}));return t(IA,Object.assign({},m,{children:[(()=>{let r=null;if(i)return i;if(a||l){const i=TA.getFooterLogoAttribute(null==g?void 0:g.resourceScheme),{src:o}=i,s=lt(i,["src"]);r=t(n,{children:[e(AA,Object.assign({"data-testid":"logo-section"},{children:e("img",Object.assign({src:d||o,"data-testid":"logo"},s))})),(null==a?void 0:a[0])&&e(NA,Object.assign({"data-testid":"link-col-1"},{children:v(a[0])}),"link-col-1"),(null==a?void 0:a[1])&&e(NA,Object.assign({"data-testid":"link-col-2"},{children:v(a[1])}),"link-col-2"),l&&e(BA,{children:e(kA,{})}),!l&&c&&e(BA,{children:e(_A,{})})]})}return r?e(MA,Object.assign({type:"grid",stretch:f},{children:r})):null})(),e(RA,{}),t(LA,Object.assign({type:"grid",stretch:f},{children:[e(PA,{children:(()=>{const t=TA.getDisclaimerLinks(null==g?void 0:g.resourceScheme,s);return Object.keys(t).map((n=>e(FA,Object.assign({},t[n]),n)))})()},"disclaimer"),e(zA,{children:e(El.XSmall,Object.assign({"data-testid":"copyright-text"},{children:u||t(n,{children:["©"," ",TA.getCopyrightInfo(o,null==g?void 0:g.resourceScheme)]})}))},"copyright")]}))]}))};var WA=function(e,t){return Number(e.toFixed(t))},VA=function(e,t,n){n&&"function"==typeof n&&n(e,t)},YA={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},UA=function(e){"number"==typeof e&&cancelAnimationFrame(e)},qA=function(e){e.mounted&&(UA(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function XA(e,t,n,r){if(e.mounted){var i=(new Date).getTime();qA(e),e.animation=function(){if(!e.mounted)return UA(e.animation);var a=(new Date).getTime()-i,o=(0,YA[t])(a/n);a>=n?(r(1),e.animation=null):e.animation&&(r(o),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function KA(e,t,n,r){var i=function(e){var t=e.scale,n=e.positionX,r=e.positionY;return!(Number.isNaN(t)||Number.isNaN(n)||Number.isNaN(r))}(t);if(e.mounted&&i){var a=e.setTransformState,o=e.transformState,s=o.scale,l=o.positionX,c=o.positionY,d=t.scale-s,u=t.positionX-l,p=t.positionY-c;0===n?a(t.scale,t.positionX,t.positionY):XA(e,r,n,(function(e){a(s+d*e,l+u*e,c+p*e)}))}}var GA=function(e,t){var n=e.wrapperComponent,r=e.contentComponent,i=e.setup.centerZoomedOut;if(!n||!r)throw new Error("Components are not mounted");var a=function(e,t,n){var r=e.offsetWidth,i=e.offsetHeight,a=t.offsetWidth*n,o=t.offsetHeight*n;return{wrapperWidth:r,wrapperHeight:i,newContentWidth:a,newDiffWidth:r-a,newContentHeight:o,newDiffHeight:i-o}}(n,r,t),o=a.wrapperWidth,s=a.wrapperHeight,l=function(e,t,n,r,i,a,o){var s=e>t?n*(o?1:.5):0,l=r>i?a*(o?1:.5):0;return{minPositionX:e-t-s,maxPositionX:s,minPositionY:r-i-l,maxPositionY:l}}(o,a.newContentWidth,a.newDiffWidth,s,a.newContentHeight,a.newDiffHeight,Boolean(i));return l},ZA=function(e,t,n,r){return WA(r?e<t?t:e>n?n:e:e,2)},QA=function(e,t){var n=GA(e,t);return e.bounds=n,n};function JA(e,t,n,r,i,a,o){var s=n.minPositionX,l=n.minPositionY,c=n.maxPositionX,d=n.maxPositionY,u=0,p=0;return o&&(u=i,p=a),{x:ZA(e,s-u,c+u,r),y:ZA(t,l-p,d+p,r)}}function eN(e,t,n,r,i,a){var o=e.transformState,s=o.scale,l=o.positionX,c=o.positionY,d=r-s;return"number"!=typeof t||"number"!=typeof n?(console.error("Mouse X and Y position were not provided!"),{x:l,y:c}):JA(l-t*d,c-n*d,i,a,0,0,null)}function tN(e,t,n,r,i){var a=t-(i?r:0);return!Number.isNaN(n)&&e>=n?n:!Number.isNaN(t)&&e<=a?a:e}var nN=function(e,t){var n=e.setup.panning.excluded,r=e.isInitialized,i=e.wrapperComponent,a=t.target,o="shadowRoot"in a&&"composedPath"in t?t.composedPath().some((function(e){return e instanceof Element&&(null==i?void 0:i.contains(e))})):null==i?void 0:i.contains(a);return!!(r&&a&&o)&&!RN(a,n)},rN=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup.panning.disabled;return!(!t||!n||r)};function iN(e,t,n,r,i){var a=e.setup.limitToBounds,o=e.wrapperComponent,s=e.bounds,l=e.transformState,c=l.scale,d=l.positionX,u=l.positionY;if(null!==o&&null!==s&&(t!==d||n!==u)){var p=JA(t,n,s,a,r,i,o),h=p.x,m=p.y;e.setTransformState(c,h,m)}}var aN=function(e,t){var n=e.setup,r=e.transformState.scale,i=n.minScale,a=n.disablePadding;return t>0&&r>=i&&!a?t:0};function oN(e,t,n,r,i,a,o,s,l,c){if(i){var d;if(t>o&&n>o)return(d=o+(e-o)*c)>l?l:d<o?o:d;if(t<a&&n<a)return(d=a+(e-a)*c)<s?s:d>a?a:d}return r?t:ZA(e,a,o,i)}function sN(e,t){var n=function(e){var t=e.mounted,n=e.setup,r=n.disabled,i=n.velocityAnimation,a=e.transformState.scale;return!(i.disabled&&!(a>1)&&r&&!t)}(e);if(n){var r=e.lastMousePosition,i=e.velocityTime,a=e.setup,o=e.wrapperComponent,s=a.velocityAnimation.equalToMove,l=Date.now();if(r&&i&&o){var c=function(e,t){return t?Math.min(1,e.offsetWidth/window.innerWidth):1}(o,s),d=t.x-r.x,u=t.y-r.y,p=d/c,h=u/c,m=l-i,f=d*d+u*u,g=Math.sqrt(f)/m;e.velocity={velocityX:p,velocityY:h,total:g}}e.lastMousePosition=t,e.velocityTime=l}}function lN(e,t){var n=e.transformState.scale;qA(e),QA(e,n),void 0!==window.TouchEvent&&t instanceof TouchEvent?function(e,t){var n=t.touches,r=e.transformState,i=r.positionX,a=r.positionY;if(e.isPanning=!0,1===n.length){var o=n[0].clientX,s=n[0].clientY;e.startCoords={x:o-i,y:s-a}}}(e,t):function(e,t){var n=e.transformState,r=n.positionX,i=n.positionY;e.isPanning=!0;var a=t.clientX,o=t.clientY;e.startCoords={x:a-r,y:o-i}}(e,t)}function cN(e,t){var n=e.transformState.scale,r=e.setup,i=r.minScale,a=r.alignmentAnimation,o=a.disabled,s=a.sizeX,l=a.sizeY,c=a.animationTime,d=a.animationType;if(!(o||n<i||!s&&!l)){var u=function(e){var t=e.transformState,n=t.positionX,r=t.positionY,i=t.scale,a=e.setup,o=a.disabled,s=a.limitToBounds,l=a.centerZoomedOut,c=e.wrapperComponent;if(!o&&c&&e.bounds){var d=e.bounds,u=d.maxPositionX,p=d.minPositionX,h=d.maxPositionY,m=d.minPositionY,f=n>u||n<p,g=r>h||r<m,v=eN(e,n>u?c.offsetWidth:e.setup.minPositionX||0,r>h?c.offsetHeight:e.setup.minPositionY||0,i,e.bounds,s||l),b=v.x,y=v.y;return{scale:i,positionX:f?b:n,positionY:g?y:r}}}(e);u&&KA(e,u,null!=t?t:c,d)}}function dN(e,t,n){var r=e.startCoords,i=e.setup.alignmentAnimation,a=i.sizeX,o=i.sizeY;if(r){var s=function(e,t,n){var r=e.startCoords,i=e.transformState,a=e.setup.panning,o=a.lockAxisX,s=a.lockAxisY,l=i.positionX,c=i.positionY;if(!r)return{x:l,y:c};var d=t-r.x,u=n-r.y;return{x:o?l:d,y:s?c:u}}(e,t,n),l=s.x,c=s.y,d=aN(e,a),u=aN(e,o);sN(e,{x:l,y:c}),iN(e,l,c,d,u)}}function uN(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,r=e.wrapperComponent,i=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var a=null==r?void 0:r.getBoundingClientRect(),o=null==i?void 0:i.getBoundingClientRect(),s=(null==a?void 0:a.width)||0,l=(null==a?void 0:a.height)||0,c=(null==o?void 0:o.width)||0,d=(null==o?void 0:o.height)||0,u=s<c||l<d;!t&&n&&(null==n?void 0:n.total)>.1&&u?function(e){var t=e.velocity,n=e.bounds,r=e.setup,i=e.wrapperComponent,a=function(e){var t=e.mounted,n=e.velocity,r=e.bounds,i=e.setup,a=i.disabled,o=i.velocityAnimation,s=e.transformState.scale;return!(o.disabled&&!(s>1)&&a&&!t||!n||!r)}(e);if(a&&t&&n&&i){var o=t.velocityX,s=t.velocityY,l=t.total,c=n.maxPositionX,d=n.minPositionX,u=n.maxPositionY,p=n.minPositionY,h=r.limitToBounds,m=r.alignmentAnimation,f=r.zoomAnimation,g=r.panning,v=g.lockAxisY,b=g.lockAxisX,y=f.animationType,x=m.sizeX,w=m.sizeY,$=m.velocityAlignmentTime,k=function(e,t){var n=e.setup.velocityAnimation,r=n.equalToMove,i=n.animationTime,a=n.sensitivity;return r?i*t*a:i}(e,l),S=Math.max(k,$),O=aN(e,x),C=aN(e,w),T=O*i.offsetWidth/100,D=C*i.offsetHeight/100,j=c+T,_=d-T,I=u+D,E=p-D,M=e.transformState,A=(new Date).getTime();XA(e,y,S,(function(t){var n=e.transformState,r=n.scale,i=n.positionX,a=n.positionY,l=((new Date).getTime()-A)/$,f=1-(0,YA[m.animationType])(Math.min(1,l)),g=1-t,y=i+o*g,x=a+s*g,w=oN(y,M.positionX,i,b,h,d,c,_,j,f),k=oN(x,M.positionY,a,v,h,p,u,E,I,f);i===y&&a===x||e.setTransformState(r,w,k)}))}}(e):cN(e)}}function pN(e,t,n,r){var i=e.setup,a=i.minScale,o=i.maxScale,s=i.limitToBounds,l=tN(WA(t,2),a,o,0,!1),c=eN(e,n,r,l,QA(e,l),s);return{scale:l,positionX:c.x,positionY:c.y}}function hN(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,a=e.setup,o=a.minScale,s=a.limitToBounds,l=a.zoomAnimation,c=l.disabled,d=l.animationTime,u=l.animationType,p=c||r>=o;if((r>=1||s)&&cN(e),!p&&i&&e.mounted){var h=pN(e,o,t||i.offsetWidth/2,n||i.offsetHeight/2);h&&KA(e,h,d,u)}}var mN=function(){return mN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},mN.apply(this,arguments)};function fN(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var gN=1,vN=0,bN=0,yN={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,smooth:!0,wheel:{step:.2,disabled:!1,smoothStep:.001,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,allowLeftClickPan:!0,allowMiddleClickPan:!0,allowRightClickPan:!0,wheelPanning:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},xN="react-transform-wrapper",wN="react-transform-component",$N=function(e){var t,n,r,i;return{previousScale:null!==(t=e.initialScale)&&void 0!==t?t:gN,scale:null!==(n=e.initialScale)&&void 0!==n?n:gN,positionX:null!==(r=e.initialPositionX)&&void 0!==r?r:vN,positionY:null!==(i=e.initialPositionY)&&void 0!==i?i:bN}},kN=function(e){var t=mN({},yN);return Object.keys(e).forEach((function(n){var r=void 0!==e[n];if(void 0!==yN[n]&&r){var i=Object.prototype.toString.call(yN[n]),a="[object Object]"===i,o="[object Array]"===i;t[n]=a?mN(mN({},yN[n]),e[n]):o?fN(fN([],yN[n],!0),e[n],!0):e[n]}})),t},SN=function(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,a=e.setup,o=a.maxScale,s=a.minScale,l=a.zoomAnimation,c=a.smooth,d=l.size;if(!i)throw new Error("Wrapper is not mounted");var u=c?r*Math.exp(t*n):r+t*n;return tN(WA(u,3),s,o,d,!1)};function ON(e,t,n,r,i){var a=e.wrapperComponent,o=e.transformState,s=o.scale,l=o.positionX,c=o.positionY;if(!a)return console.error("No WrapperComponent found");var d=(a.offsetWidth/2-l)/s,u=(a.offsetHeight/2-c)/s,p=pN(e,SN(e,t,n),d,u);if(!p)return console.error("Error during zoom event. New transformation state was not calculated.");KA(e,p,r,i)}function CN(e,t,n,r){var i=e.setup,a=e.wrapperComponent,o=i.limitToBounds,s=$N(e.props),l=e.transformState,c=l.scale,d=l.positionX,u=l.positionY;if(a){var p=GA(e,s.scale),h=JA(s.positionX,s.positionY,p,o,0,0,a),m={scale:s.scale,positionX:h.x,positionY:h.y};c===s.scale&&d===s.positionX&&u===s.positionY||(null==r||r(),KA(e,m,t,n))}}var TN=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),ON(e,1,t,n,r)}},DN=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),ON(e,-1,t,n,r)}},jN=function(e){return function(t,n,r,i,a){void 0===i&&(i=300),void 0===a&&(a="easeOut");var o=e.transformState,s=o.positionX,l=o.positionY,c=o.scale,d=e.wrapperComponent,u=e.contentComponent;if(!e.setup.disabled&&d&&u){var p={positionX:Number.isNaN(t)?s:t,positionY:Number.isNaN(n)?l:n,scale:Number.isNaN(r)?c:r};KA(e,p,i,a)}}},_N=function(e){return function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),CN(e,t,n)}},IN=function(e){return function(t,n,r){void 0===n&&(n=200),void 0===r&&(r="easeOut");var i=e.transformState,a=e.wrapperComponent,o=e.contentComponent;if(a&&o){var s=PN(t||i.scale,a,o);KA(e,s,n,r)}}},EN=function(e){return function(t,n,r,i){void 0===r&&(r=600),void 0===i&&(i="easeOut"),qA(e);var a=e.wrapperComponent,o="string"==typeof t?document.getElementById(t):t;if(a&&o&&a.contains(o)){var s=function(e,t,n){var r=e.wrapperComponent,i=e.contentComponent,a=e.transformState,o=e.setup,s=o.limitToBounds,l=o.minScale,c=o.maxScale;if(!r||!i)return a;var d=r.getBoundingClientRect(),u=t.getBoundingClientRect(),p=function(e,t,n,r){var i=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=a.x*r.scale,l=a.y*r.scale;return{x:(i.x-o.x+s)/r.scale,y:(i.y-o.y+l)/r.scale}}(t,r,i,a),h=p.x,m=p.y,f=u.width/a.scale,g=u.height/a.scale,v=r.offsetWidth/f,b=r.offsetHeight/g,y=tN(n||Math.min(v,b),l,c,0,!1),x=(d.width-f*y)/2,w=(d.height-g*y)/2,$=JA((d.left-h)*y+x,(d.top-m)*y+w,GA(e,y),s,0,0,r);return{positionX:$.x,positionY:$.y,scale:y}}(e,o,n);KA(e,s,r,i)}}},MN=function(e){return{instance:e,zoomIn:TN(e),zoomOut:DN(e),setTransform:jN(e),resetTransform:_N(e),centerView:IN(e),zoomToElement:EN(e)}},AN=function(e){var t={};return Object.assign(t,function(e){return{instance:e,state:e.transformState}}(e)),Object.assign(t,MN(e)),t};function NN(){try{return{get passive(){return!1}}}catch(e){return!1}}var BN=".".concat(xN),RN=function(e,t){return t.some((function(t){return e.matches("".concat(BN," ").concat(t,", ").concat(BN," .").concat(t,", ").concat(BN," ").concat(t," *, ").concat(BN," .").concat(t," *"))}))},LN=function(e){e&&clearTimeout(e)},PN=function(e,t,n){var r=n.offsetWidth*e,i=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-r)/2,positionY:(t.offsetHeight-i)/2}};function zN(e,t,n){var r=t.getBoundingClientRect(),i=0,a=0;if("clientX"in e)i=(e.clientX-r.left)/n,a=(e.clientY-r.top)/n;else{var o=e.touches[0];i=(o.clientX-r.left)/n,a=(o.clientY-r.top)/n}return(Number.isNaN(i)||Number.isNaN(a))&&console.error("No mouse or touch offset found"),{x:i,y:a}}var FN=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},HN=function(e,t){var n=e.props,r=n.onWheel,i=n.onZoom,a=e.contentComponent,o=e.setup,s=e.transformState.scale,l=o.limitToBounds,c=o.centerZoomedOut,d=o.zoomAnimation,u=o.wheel,p=o.disablePadding,h=o.smooth,m=d.size,f=d.disabled,g=u.step,v=u.smoothStep;if(!a)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var b=function(e,t){var n=function(e){return e?e.deltaY<0?1:-1:0}(e),r=function(e,t){return"number"==typeof e?e:t}(t,n);return r}(t,null),y=function(e,t,n,r,i){var a=e.transformState.scale,o=e.wrapperComponent,s=e.setup,l=s.maxScale,c=s.minScale,d=s.zoomAnimation,u=s.disablePadding,p=d.size,h=d.disabled;if(!o)throw new Error("Wrapper is not mounted");var m=a+t*n;if(i)return m;var f=!r&&!h;return tN(WA(m,3),c,l,p,f&&!u)}(e,b,h?v*Math.abs(t.deltaY):g,!t.ctrlKey);if(s!==y){var x=QA(e,y),w=zN(t,a,s),$=l&&(f||0===m||c||p),k=eN(e,w.x,w.y,y,x,$),S=k.x,O=k.y;e.previousWheelEvent=t,e.setTransformState(y,S,O),VA(AN(e),t,r),VA(AN(e),t,i)}},WN=function(e,t){var n=e.props,r=n.onWheelStop,i=n.onZoomStop;LN(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout((function(){e.mounted&&(hN(e,t.x,t.y),e.wheelAnimationTimer=null)}),100);var a=function(e,t){var n=e.previousWheelEvent,r=e.transformState.scale,i=e.setup,a=i.maxScale,o=i.minScale;return!!n&&(r<a||r>o||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaY<t.deltaY||n.deltaY<0&&n.deltaY>t.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))}(e,t);a&&(LN(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,VA(AN(e),t,r),VA(AN(e),t,i))}),160))},VN=function(e){for(var t=0,n=0,r=0;r<2;r+=1)t+=e.touches[r].clientX,n+=e.touches[r].clientY;return{x:t/2,y:n/2}},YN=function(e,t){var n=e.contentComponent,r=e.pinchStartDistance,i=e.wrapperComponent,a=e.transformState.scale,o=e.setup,s=o.limitToBounds,l=o.centerZoomedOut,c=o.zoomAnimation,d=o.alignmentAnimation,u=c.disabled,p=c.size;if(null!==r&&n){var h=function(e,t,n){var r=n.getBoundingClientRect(),i=e.touches,a=WA(i[0].clientX-r.left,5),o=WA(i[0].clientY-r.top,5);return{x:(a+WA(i[1].clientX-r.left,5))/2/t,y:(o+WA(i[1].clientY-r.top,5))/2/t}}(t,a,n);if(Number.isFinite(h.x)&&Number.isFinite(h.y)){var m=FN(t),f=function(e,t){var n=e.pinchStartScale,r=e.pinchStartDistance,i=e.setup,a=i.maxScale,o=i.minScale,s=i.zoomAnimation,l=i.disablePadding,c=s.size,d=s.disabled;if(!n||null===r||!t)throw new Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:tN(WA(t/r*n,2),o,a,c,!d&&!l)}(e,m),g=VN(t),v=g.x-(e.pinchLastCenterX||0),b=g.y-(e.pinchLastCenterY||0);if(f!==a||0!==v||0!==b){e.pinchLastCenterX=g.x,e.pinchLastCenterY=g.y;var y=QA(e,f),x=s&&(u||0===p||l),w=eN(e,h.x,h.y,f,y,x),$=w.x,k=w.y;e.pinchMidpoint=h,e.lastDistance=m;var S=d.sizeX,O=d.sizeY,C=JA($+v,k+b,y,s,aN(e,S),aN(e,O),i),T=C.x,D=C.y;e.setTransformState(f,T,D)}}}},UN=function(e,t){var n=e.props.onZoomStop,r=e.setup.doubleClick.animationTime;LN(e.doubleClickStopEventTimer),e.doubleClickStopEventTimer=setTimeout((function(){e.doubleClickStopEventTimer=null,VA(AN(e),t,n)}),r)};function qN(e,t){var n=e.setup,r=e.doubleClickStopEventTimer,i=e.transformState,a=e.contentComponent,o=i.scale,s=e.props,l=s.onZoomStart,c=s.onZoom,d=n.doubleClick,u=d.disabled,p=d.mode,h=d.step,m=d.animationTime,f=d.animationType;if(!u&&!r){if("reset"===p)return function(e,t){var n=e.props,r=n.onZoomStart,i=n.onZoom,a=e.setup.doubleClick,o=a.animationTime,s=a.animationType;VA(AN(e),t,r),CN(e,o,s,(function(){return VA(AN(e),t,i)})),UN(e,t)}(e,t);if(!a)return console.error("No ContentComponent found");var g=function(e,t){return"toggle"===e?1===t?1:-1:"zoomOut"===e?-1:1}(p,e.transformState.scale),v=SN(e,g,h);if(o!==v){VA(AN(e),t,l);var b=zN(t,a,o),y=pN(e,v,b.x,b.y);if(!y)return console.error("Error during zoom event. New transformation state was not calculated.");VA(AN(e),t,c),KA(e,y,m,f),UN(e,t)}}}var XN=function(e){var t=this;this.mounted=!0,this.pinchLastCenterX=null,this.pinchLastCenterY=null,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.isWheelPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(e){t.props=e,QA(t,t.transformState.scale),t.setup=kN(e)},this.initializeWindowEvents=function(){var e,n,r=NN(),i=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,a=null==i?void 0:i.defaultView;null===(n=t.wrapperComponent)||void 0===n||n.addEventListener("wheel",t.onWheelPanning,r),null==a||a.addEventListener("mousedown",t.onPanningStart,r),null==a||a.addEventListener("mousemove",t.onPanning,r),null==a||a.addEventListener("mouseup",t.onPanningStop,r),null==i||i.addEventListener("mouseleave",t.clearPanning,r),null==a||a.addEventListener("keyup",t.setKeyUnPressed,r),null==a||a.addEventListener("keydown",t.setKeyPressed,r)},this.cleanupWindowEvents=function(){var e,n,r=NN(),i=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,a=null==i?void 0:i.defaultView;null==a||a.removeEventListener("mousedown",t.onPanningStart,r),null==a||a.removeEventListener("mousemove",t.onPanning,r),null==a||a.removeEventListener("mouseup",t.onPanningStop,r),null==i||i.removeEventListener("mouseleave",t.clearPanning,r),null==a||a.removeEventListener("keyup",t.setKeyUnPressed,r),null==a||a.removeEventListener("keydown",t.setKeyPressed,r),document.removeEventListener("mouseleave",t.clearPanning,r),qA(t),null===(n=t.observer)||void 0===n||n.disconnect()},this.handleInitializeWrapperEvents=function(e){var n=NN();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},this.handleInitialize=function(e,n){var r=!1,i=t.setup.centerOnInit,a=function(e,t){for(var n=0,r=e;n<r.length;n++)if(r[n].target===t)return!0;return!1};t.applyTransformation(),t.onInitCallbacks.forEach((function(e){e(AN(t))})),t.observer=new ResizeObserver((function(o){if(a(o,e)||a(o,n))if(i&&!r){var s=n.offsetWidth,l=n.offsetHeight;(s>0||l>0)&&(r=!0,t.setCenter())}else qA(t),QA(t,t.transformState.scale),cN(t,0)})),t.observer.observe(e),t.observer.observe(n)},this.onWheelZoom=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.setup.wheel,r=n.disabled,i=n.wheelDisabled,a=n.touchPadDisabled,o=n.excluded,s=e.isInitialized,l=e.isPanning,c=t.target;return!(!s||l||r||!c||i&&!t.ctrlKey||a&&t.ctrlKey||RN(c,o))}(t,e);n&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(function(e,t){var n=e.props,r=n.onWheelStart,i=n.onZoomStart;e.wheelStopEventTimer||(qA(e),VA(AN(e),t,r),VA(AN(e),t,i))}(t,e),HN(t,e),WN(t,e))}},this.onWheelPanning=function(e){var n=t.setup,r=n.disabled,i=n.wheel,a=n.panning;if(t.wrapperComponent&&t.contentComponent&&!r&&i.wheelDisabled&&!a.disabled&&a.wheelPanning&&!e.ctrlKey){e.preventDefault(),e.stopPropagation();var o=t.transformState,s=o.positionX,l=o.positionY,c=s-e.deltaX,d=l-e.deltaY,u=a.lockAxisX?s:c,p=a.lockAxisY?l:d,h=t.setup.alignmentAnimation,m=h.sizeX,f=h.sizeY,g=aN(t,m),v=aN(t,f);u===s&&p===l||iN(t,u,p,g,v)}},this.onPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;n||nN(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(0!==e.button||t.setup.panning.allowLeftClickPan)&&(1!==e.button||t.setup.panning.allowMiddleClickPan)&&(2!==e.button||t.setup.panning.allowRightClickPan)&&(e.preventDefault(),e.stopPropagation(),qA(t),lN(t,e),VA(AN(t),e,r))},this.onPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;n||rN(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),dN(t,e.clientX,e.clientY),VA(AN(t),e,r))},this.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(uN(t),VA(AN(t),e,n))},this.onPinchStart=function(e){var n=t.setup.disabled,r=t.props,i=r.onPinchingStart,a=r.onZoomStart;if(!n){var o=function(e,t){var n=e.setup.pinch,r=n.disabled,i=n.excluded,a=e.isInitialized,o=t.target;return!(!a||r||!o||RN(o,i))}(t,e);o&&(function(e,t){var n=FN(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1;var r=VN(t);e.pinchLastCenterX=r.x,e.pinchLastCenterY=r.y,qA(e)}(t,e),qA(t),VA(AN(t),e,i),VA(AN(t),e,a))}},this.onPinch=function(e){var n=t.setup.disabled,r=t.props,i=r.onPinching,a=r.onZoom;if(!n){var o=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,r=e.pinchStartDistance;return!(!n||t||!r)}(t);o&&(e.preventDefault(),e.stopPropagation(),YN(t,e),VA(AN(t),e,i),VA(AN(t),e,a))}},this.onPinchStop=function(e){var n,r,i=t.props,a=i.onPinchingStop,o=i.onZoomStop;t.pinchStartScale&&(r=(n=t).pinchMidpoint,n.velocity=null,n.lastDistance=null,n.pinchMidpoint=null,n.pinchStartScale=null,n.pinchStartDistance=null,hN(n,null==r?void 0:r.x,null==r?void 0:r.y),VA(AN(t),e,a),VA(AN(t),e,o))},this.onTouchPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;if(!n&&nN(t,e)&&!(t.lastTouch&&+new Date-t.lastTouch<200&&1===e.touches.length)){t.lastTouch=+new Date,qA(t);var i=e.touches,a=1===i.length,o=2===i.length;a&&(qA(t),lN(t,e),VA(AN(t),e,r)),o&&t.onPinchStart(e)}},this.onTouchPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n)return;if(!rN(t))return;e.preventDefault(),e.stopPropagation();var i=e.touches[0];dN(t,i.clientX,i.clientY),VA(AN(t),e,r)}else e.touches.length>1&&t.onPinch(e)},this.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},this.onDoubleClick=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.isInitialized,r=e.setup,i=e.wrapperComponent,a=r.doubleClick,o=a.disabled,s=a.excluded,l=t.target,c=null==i?void 0:i.contains(l);return!(!(n&&l&&c)||o||RN(l,s))}(t,e);n&&qN(t,e)}},this.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},this.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},this.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},this.isPressingKeys=function(e){return!e.length||Boolean(e.find((function(e){return t.pressedKeys[e]})))},this.setTransformState=function(e,n,r){var i=t.props.onTransformed;if(Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(r))console.error("Detected NaN set state values");else{e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=r,t.applyTransformation();var a=AN(t);t.onChangeCallbacks.forEach((function(e){return e(a)})),VA(a,{scale:e,positionX:n,positionY:r},i)}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=PN(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},this.handleTransformStyles=function(e,n,r){return t.props.customTransform?t.props.customTransform(e,n,r):function(e,t,n){return"translate(".concat(e,"px, ").concat(t,"px) scale(").concat(n,")")}(e,n,r)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,r=e.positionX,i=e.positionY,a=t.handleTransformStyles(r,i,n);t.contentComponent.style.transform=a}},this.getContext=function(){return AN(t)},this.onChange=function(e){return t.onChangeCallbacks.has(e)||t.onChangeCallbacks.add(e),function(){t.onChangeCallbacks.delete(e)}},this.onInit=function(e){return t.onInitCallbacks.has(e)||t.onInitCallbacks.add(e),function(){t.onInitCallbacks.delete(e)}},this.init=function(e,n){t.cleanupWindowEvents(),t.wrapperComponent=e,t.contentComponent=n,QA(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(e,n),t.initializeWindowEvents(),t.isInitialized=!0;var r=AN(t);VA(r,void 0,t.props.onInit)},this.props=e,this.setup=kN(this.props),this.transformState=$N(this.props)},KN=i.createContext(null),GN=i.forwardRef((function(e,t){var n=a(new XN(e)).current,r=function(e,t){return"function"==typeof e?e(t):e}(e.children,MN(n));return v(t,(function(){return MN(n)}),[n]),u((function(){n.update(e)}),[n,e]),i.createElement(KN.Provider,{value:n},r)}));i.forwardRef((function(e,t){var n,r=a(null),o=f(KN);return u((function(){return o.onChange((function(e){if(r.current){r.current.style.transform=o.handleTransformStyles(0,0,1/e.instance.transformState.scale)}}))}),[o]),i.createElement("div",mN({},e,{ref:(n=[r,t],function(e){n.forEach((function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)}))})}))}));var ZN="transform-component-module_wrapper__SPB86",QN="transform-component-module_content__FBWxo";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__SPB86 {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n transform: translate3d(0, 0, 0);\n}\n.transform-component-module_content__FBWxo {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__FBWxo img {\n pointer-events: none;\n}\n");var JN=function(e){var t=e.children,n=e.wrapperClass,r=void 0===n?"":n,o=e.contentClass,s=void 0===o?"":o,l=e.wrapperStyle,c=e.contentStyle,d=e.wrapperProps,p=void 0===d?{}:d,h=e.contentProps,m=void 0===h?{}:h,g=f(KN),v=g.init,b=g.cleanupWindowEvents,y=a(null),x=a(null);return u((function(){var e=y.current,t=x.current;return null!==e&&null!==t&&v&&(null==v||v(e,t)),function(){null==b||b()}}),[]),i.createElement("div",mN({},p,{ref:y,className:"".concat(xN," ").concat(ZN," ").concat(r),style:l}),i.createElement("div",mN({},m,{ref:x,className:"".concat(wN," ").concat(QN," ").concat(s),style:c}),t))};const eB=I.div`
4846
4854
  background-color: ${hl.Neutral[6]};
4847
4855
  display: flex;
4848
4856
  align-items: center;
@@ -4854,25 +4862,25 @@ object-assign
4854
4862
  width: 18%;
4855
4863
  height: auto;
4856
4864
  }
4857
- `,QN=t=>e(ZN,Object.assign({},t,{children:e(te,{})})),JN=I.div`
4865
+ `,tB=t=>e(eB,Object.assign({},t,{children:e(te,{})})),nB=I.div`
4858
4866
  display: flex;
4859
4867
  align-items: center;
4860
4868
  justify-content: center;
4861
- `,eB=I.img`
4869
+ `,rB=I.img`
4862
4870
  height: 100%;
4863
4871
  width: 100%;
4864
4872
  object-fit: ${e=>e.$fit||"contain"};
4865
- `,tB=I(QN)`
4873
+ `,iB=I(tB)`
4866
4874
  width: 100%;
4867
4875
  height: 100%;
4868
- `,nB=({src:t,className:n,alt:r,fit:i,placeholder:a,retrieveImageDimension:s,setDimension:l})=>{const[c,d]=o(!0),[p,h]=o();u((()=>{d(!0),h(void 0);const e=new Image;e.src=t,e.onload=()=>{s&&l({src:t,width:e.width,height:e.height}),d(!1)},e.onerror=e=>{d(!1),h(e)}}),[t]);return e(JN,Object.assign({className:n},{children:p?null!=a?a:e(tB,{}):c?e(Cc,{}):e(eB,{src:t,alt:r,$fit:i})}))},rB=I(yl)`
4876
+ `,aB=({src:t,className:n,alt:r,fit:i,placeholder:a,retrieveImageDimension:s,setDimension:l})=>{const[c,d]=o(!0),[p,h]=o();u((()=>{d(!0),h(void 0);const e=new Image;e.src=t,e.onload=()=>{s&&l({src:t,width:e.width,height:e.height}),d(!1)},e.onerror=e=>{d(!1),h(e)}}),[t]);return e(nB,Object.assign({className:n},{children:p?null!=a?a:e(iB,{}):c?e(Cc,{}):e(rB,{src:t,alt:r,$fit:i})}))},oB=I(yl)`
4869
4877
  padding: 0;
4870
4878
  border-radius: 100%;
4871
4879
  background: ${hl.Neutral[8]};
4872
4880
  color: ${hl.Primary};
4873
4881
  height: 2.5rem;
4874
4882
  width: 2.5rem;
4875
- `,iB=I(rB)`
4883
+ `,sB=I(oB)`
4876
4884
  position: absolute;
4877
4885
  top: 3rem;
4878
4886
  right: 3rem;
@@ -4887,7 +4895,7 @@ object-assign
4887
4895
  height: 1.5rem;
4888
4896
  width: 1.5rem;
4889
4897
  }
4890
- `,aB=I(rB)`
4898
+ `,lB=I(oB)`
4891
4899
  position: absolute;
4892
4900
  top: 3rem;
4893
4901
  right: 6.5rem;
@@ -4902,7 +4910,7 @@ object-assign
4902
4910
  height: 1.5rem;
4903
4911
  width: 1.5rem;
4904
4912
  }
4905
- `,oB=I(rB)`
4913
+ `,cB=I(oB)`
4906
4914
  z-index: 4;
4907
4915
  position: absolute;
4908
4916
  top: 50%;
@@ -4926,25 +4934,25 @@ object-assign
4926
4934
  height: 1.25rem;
4927
4935
  width: 1.25rem;
4928
4936
  }
4929
- `,sB=I.div`
4937
+ `,dB=I.div`
4930
4938
  display: flex;
4931
4939
  flex-direction: column;
4932
4940
  width: 100%;
4933
4941
  height: 100%;
4934
- `,lB=I.div`
4942
+ `,uB=I.div`
4935
4943
  user-select: none;
4936
4944
  position: relative;
4937
4945
  display: block;
4938
4946
  overflow: hidden;
4939
4947
  width: 100%;
4940
4948
  height: 100%;
4941
- `,cB=I.div`
4949
+ `,pB=I.div`
4942
4950
  display: block;
4943
4951
  user-select: none;
4944
4952
  height: 100%;
4945
4953
  overflow: hidden;
4946
4954
  touch-action: pan-y;
4947
- `,dB=I.div`
4955
+ `,hB=I.div`
4948
4956
  display: flex;
4949
4957
  transition: all 450ms ease-out 0s;
4950
4958
  position: relative;
@@ -4952,7 +4960,7 @@ object-assign
4952
4960
  user-select: none;
4953
4961
  width: 100%;
4954
4962
  height: 100%;
4955
- `,uB=I.div`
4963
+ `,mB=I.div`
4956
4964
  flex: 0 0 100%;
4957
4965
  box-sizing: border-box;
4958
4966
  display: flex;
@@ -4966,15 +4974,15 @@ object-assign
4966
4974
  height: 100%;
4967
4975
  width: 100%;
4968
4976
  }
4969
- `,pB=I(nB)`
4977
+ `,fB=I(aB)`
4970
4978
  height: 100%;
4971
4979
  width: 100%;
4972
- `,hB=I(QN)`
4980
+ `,gB=I(tB)`
4973
4981
  width: 60vw;
4974
4982
  height: auto;
4975
4983
  max-height: 100%;
4976
4984
  aspect-ratio: 4 / 3;
4977
- `,mB=I.div`
4985
+ `,vB=I.div`
4978
4986
  display: flex;
4979
4987
  justify-content: center;
4980
4988
  padding: 1rem;
@@ -4985,7 +4993,7 @@ object-assign
4985
4993
  margin-left: auto;
4986
4994
  margin-right: auto;
4987
4995
  z-index: 3;
4988
- `,fB=I(El.XSmall)`
4996
+ `,bB=I(El.XSmall)`
4989
4997
  display: inline-flex;
4990
4998
  padding: 0.25rem 1rem;
4991
4999
  justify-content: center;
@@ -4993,7 +5001,7 @@ object-assign
4993
5001
  border-radius: 20px;
4994
5002
  background-color: ${hl.Neutral[8]};
4995
5003
  text-align: center;
4996
- `,gB=I.div`
5004
+ `,yB=I.div`
4997
5005
  flex-shrink: 0;
4998
5006
  display: flex;
4999
5007
  overflow: auto;
@@ -5003,7 +5011,7 @@ object-assign
5003
5011
  ${gl.MaxWidth.mobileL} {
5004
5012
  padding: 1rem 1.25rem;
5005
5013
  }
5006
- `,vB=I.div`
5014
+ `,xB=I.div`
5007
5015
  box-sizing: border-box;
5008
5016
  display: flex;
5009
5017
  align-items: center;
@@ -5011,7 +5019,7 @@ object-assign
5011
5019
  justify-content: center;
5012
5020
  margin-left: auto;
5013
5021
  margin-right: auto;
5014
- `,bB=I.div`
5022
+ `,wB=I.div`
5015
5023
  cursor: pointer;
5016
5024
  background-color: ${hl.Neutral[1]};
5017
5025
  border-radius: 10px;
@@ -5041,10 +5049,10 @@ object-assign
5041
5049
  border: 1px solid ${hl.Neutral[5]};
5042
5050
  }
5043
5051
  `};
5044
- `,yB=I(nB)`
5052
+ `,$B=I(aB)`
5045
5053
  height: 100%;
5046
5054
  width: 100%;
5047
- `,xB=(r,i)=>{var{items:s,initialActiveItemIndex:l,hideThumbnail:c=!1,hideNavigation:d=!1,hideCounter:p=!1,hideMagnifier:h=!1,onClose:m}=r,f=lt(r,["items","initialActiveItemIndex","hideThumbnail","hideNavigation","hideCounter","hideMagnifier","onClose"]);const[g,b]=o(null!=l?l:0),[y,x]=o({}),[w,$]=o(1),[k,S]=o(null),[O,C]=o(null),T=a(null),D=a([]),j=a([]),_=k&&O?k-O:0;v(i,(()=>({currentItemIndex:g,setCurrentItem:B,goToPrevItem:A,goToNextItem:N}))),Cd("keydown",(function(e){"ArrowRight"===e.key?N():"ArrowLeft"===e.key?A():"Escape"===e.key&&m&&m()}),"document"),u((()=>{var e,t;null===(t=null===(e=D.current)||void 0===e?void 0:e[g])||void 0===t||t.scrollIntoView({behavior:"smooth",inline:"center"}),$(1)}),[g]);const I=e=>{$(e.state.scale)};const E=({src:e,height:t,width:n})=>{x((r=>Object.assign(Object.assign({},r),{[e]:{height:t,width:n}})))},M=()=>{const e=y[s[g].src];if((null==T?void 0:T.current)&&e){const{clientHeight:t,clientWidth:n}=T.current,{width:r,height:i}=e,a=i/r<t/n;return r<n&&i<t?a?n/r:t/i:a?t/(i/(r/n)):n/(r/(i/t))}},A=()=>{var e,t;null===(t=null===(e=j.current)||void 0===e?void 0:e[g])||void 0===t||t.resetTransform(),b((e=>0===e?s.length-1:e-1))},N=()=>{var e,t;null===(t=null===(e=j.current)||void 0===e?void 0:e[g])||void 0===t||t.resetTransform(),b((e=>e===s.length-1?0:e+1))},B=e=>{var t,n;null===(n=null===(t=j.current)||void 0===t?void 0:t[g])||void 0===n||n.resetTransform(),b(e)};return t(Vm,Object.assign({},f,{"data-testid":"image-carousel-modal"},{children:[e(iB,Object.assign({"aria-label":"Close image carousel",onClick:m,focusHighlight:!1},{children:e(J,{"aria-hidden":!0})})),!h&&e(aB,Object.assign({"aria-label":1===w?"Zoom in":"Zoom out",onClick:()=>{var e,t,n,r;if(1===w){const n=M();null===(t=null===(e=j.current)||void 0===e?void 0:e[g])||void 0===t||t.centerView(n),$(n)}else $(1),null===(r=null===(n=j.current)||void 0===n?void 0:n[g])||void 0===r||r.resetTransform()},focusHighlight:!1},{children:e(1===w?ne:re,{"aria-hidden":!0})})),t(sB,{children:[t(lB,{children:[!d&&t(n,{children:[e(oB,Object.assign({"aria-label":"View previous image","data-testid":"prev-btn",$position:"left",onClick:A},{children:e(ie,{"aria-hidden":!0})})),e(oB,Object.assign({"aria-label":"View next image","data-testid":"forward-btn",$position:"right",onClick:N},{children:e(ae,{"aria-hidden":!0})}))]}),e(cB,Object.assign({ref:T,onTouchStart:e=>{w<=1&&S(e.touches[0].clientX)},onTouchMove:e=>{!k||w>1||C(e.touches[0].clientX)},onTouchEnd:()=>{T.current&&Math.abs(_)>T.current.offsetWidth/3&&(_>0?N():A()),S(null),C(null)}},{children:e(dB,Object.assign({style:{transform:`translateX(calc(${100*-g}% - ${_}px))`}},{children:s.map(((t,n)=>{var r;return e(uB,Object.assign({"data-testid":"slide-item"},{children:e(qN,Object.assign({ref:e=>j.current[n]=e,panning:{disabled:w<=1},initialScale:1,onZoom:I,onZoomStop:I,onWheel:I},{children:e(GN,{children:e(pB,{src:t.src,alt:null!==(r=t.alt)&&void 0!==r?r:`Image ${n+1}`,placeholder:e(hB,{}),fit:"scale-down",retrieveImageDimension:!0,setDimension:E})})}))}),n)}))}))})),!p&&e(mB,{children:e(fB,Object.assign({weight:"semibold"},{children:`${g+1}/${s.length}`}))})]}),!c&&e(gB,{children:e(vB,{children:s.map(((t,n)=>{var r;const i=null!==(r=t.thumbnailSrc)&&void 0!==r?r:t.src;return e(bB,Object.assign({"data-testid":"thumbnail-item",$active:n===g,onClick:()=>B(n),ref:e=>D.current[n]=e},{children:e(yB,{src:i,alt:`Thumbnail ${n+1}`,fit:"cover"})}),n)}))})})]})]}))},wB=h(xB),$B=I.button`
5055
+ `,kB=(r,i)=>{var{items:s,initialActiveItemIndex:l,hideThumbnail:c=!1,hideNavigation:d=!1,hideCounter:p=!1,hideMagnifier:h=!1,onClose:m}=r,f=lt(r,["items","initialActiveItemIndex","hideThumbnail","hideNavigation","hideCounter","hideMagnifier","onClose"]);const[g,b]=o(null!=l?l:0),[y,x]=o({}),[w,$]=o(1),[k,S]=o(null),[O,C]=o(null),T=a(null),D=a([]),j=a([]),_=k&&O?k-O:0;v(i,(()=>({currentItemIndex:g,setCurrentItem:B,goToPrevItem:A,goToNextItem:N}))),Cd("keydown",(function(e){"ArrowRight"===e.key?N():"ArrowLeft"===e.key?A():"Escape"===e.key&&m&&m()}),"document"),u((()=>{var e,t;null===(t=null===(e=D.current)||void 0===e?void 0:e[g])||void 0===t||t.scrollIntoView({behavior:"smooth",inline:"center"}),$(1)}),[g]);const I=e=>{$(e.state.scale)};const E=({src:e,height:t,width:n})=>{x((r=>Object.assign(Object.assign({},r),{[e]:{height:t,width:n}})))},M=()=>{const e=y[s[g].src];if((null==T?void 0:T.current)&&e){const{clientHeight:t,clientWidth:n}=T.current,{width:r,height:i}=e,a=i/r<t/n;return r<n&&i<t?a?n/r:t/i:a?t/(i/(r/n)):n/(r/(i/t))}},A=()=>{var e,t;null===(t=null===(e=j.current)||void 0===e?void 0:e[g])||void 0===t||t.resetTransform(),b((e=>0===e?s.length-1:e-1))},N=()=>{var e,t;null===(t=null===(e=j.current)||void 0===e?void 0:e[g])||void 0===t||t.resetTransform(),b((e=>e===s.length-1?0:e+1))},B=e=>{var t,n;null===(n=null===(t=j.current)||void 0===t?void 0:t[g])||void 0===n||n.resetTransform(),b(e)};return t(Vm,Object.assign({},f,{"data-testid":"image-carousel-modal"},{children:[e(sB,Object.assign({"aria-label":"Close image carousel",onClick:m,focusHighlight:!1},{children:e(J,{"aria-hidden":!0})})),!h&&e(lB,Object.assign({"aria-label":1===w?"Zoom in":"Zoom out",onClick:()=>{var e,t,n,r;if(1===w){const n=M();null===(t=null===(e=j.current)||void 0===e?void 0:e[g])||void 0===t||t.centerView(n),$(n)}else $(1),null===(r=null===(n=j.current)||void 0===n?void 0:n[g])||void 0===r||r.resetTransform()},focusHighlight:!1},{children:e(1===w?ne:re,{"aria-hidden":!0})})),t(dB,{children:[t(uB,{children:[!d&&t(n,{children:[e(cB,Object.assign({"aria-label":"View previous image","data-testid":"prev-btn",$position:"left",onClick:A},{children:e(ie,{"aria-hidden":!0})})),e(cB,Object.assign({"aria-label":"View next image","data-testid":"forward-btn",$position:"right",onClick:N},{children:e(ae,{"aria-hidden":!0})}))]}),e(pB,Object.assign({ref:T,onTouchStart:e=>{w<=1&&S(e.touches[0].clientX)},onTouchMove:e=>{!k||w>1||C(e.touches[0].clientX)},onTouchEnd:()=>{T.current&&Math.abs(_)>T.current.offsetWidth/3&&(_>0?N():A()),S(null),C(null)}},{children:e(hB,Object.assign({style:{transform:`translateX(calc(${100*-g}% - ${_}px))`}},{children:s.map(((t,n)=>{var r;return e(mB,Object.assign({"data-testid":"slide-item"},{children:e(GN,Object.assign({ref:e=>j.current[n]=e,panning:{disabled:w<=1},initialScale:1,onZoom:I,onZoomStop:I,onWheel:I},{children:e(JN,{children:e(fB,{src:t.src,alt:null!==(r=t.alt)&&void 0!==r?r:`Image ${n+1}`,placeholder:e(gB,{}),fit:"scale-down",retrieveImageDimension:!0,setDimension:E})})}))}),n)}))}))})),!p&&e(vB,{children:e(bB,Object.assign({weight:"semibold"},{children:`${g+1}/${s.length}`}))})]}),!c&&e(yB,{children:e(xB,{children:s.map(((t,n)=>{var r;const i=null!==(r=t.thumbnailSrc)&&void 0!==r?r:t.src;return e(wB,Object.assign({"data-testid":"thumbnail-item",$active:n===g,onClick:()=>B(n),ref:e=>D.current[n]=e},{children:e($B,{src:i,alt:`Thumbnail ${n+1}`,fit:"cover"})}),n)}))})})]})]}))},SB=h(kB),OB=I.button`
5048
5056
  display: flex;
5049
5057
  flex: 1;
5050
5058
  flex-direction: column;
@@ -5109,21 +5117,21 @@ object-assign
5109
5117
  outline: none;
5110
5118
  cursor: not-allowed;
5111
5119
  }
5112
- `,kB=i.forwardRef(((n,r)=>{var{children:i,imgSrc:a,selected:o,error:s,type:l="button"}=n,c=lt(n,["children","imgSrc","selected","error","type"]);return t($B,Object.assign({ref:r,$selected:o,$error:s,type:l},c,{children:[e(Rf,{src:a}),i]}))})),SB=E`
5120
+ `,CB=i.forwardRef(((n,r)=>{var{children:i,imgSrc:a,selected:o,error:s,type:l="button"}=n,c=lt(n,["children","imgSrc","selected","error","type"]);return t(OB,Object.assign({ref:r,$selected:o,$error:s,type:l},c,{children:[e(Rf,{src:a}),i]}))})),TB=E`
5113
5121
  height: 1.125rem;
5114
5122
  width: 1.125rem;
5115
5123
  color: ${hl.Primary};
5116
- `,OB=I.div`
5124
+ `,DB=I.div`
5117
5125
  border-top: 1px solid ${hl.Neutral[5]};
5118
5126
  border-bottom: 1px solid ${hl.Neutral[5]};
5119
- `,CB=I(El.H3)`
5127
+ `,jB=I(El.H3)`
5120
5128
  color: ${hl.Primary};
5121
5129
  margin-bottom: 0.5rem;
5122
- `,TB=I(El.Body)`
5130
+ `,_B=I(El.Body)`
5123
5131
  color: ${hl.Primary};
5124
- `,DB=I(me)`
5125
- ${SB}
5126
- `,jB=I.a`
5132
+ `,IB=I(me)`
5133
+ ${TB}
5134
+ `,EB=I.a`
5127
5135
  padding: 1rem 0;
5128
5136
  display: flex;
5129
5137
  justify-content: space-between;
@@ -5135,31 +5143,31 @@ object-assign
5135
5143
  }
5136
5144
 
5137
5145
  :hover {
5138
- ${CB},
5139
- ${TB},
5140
- ${DB} {
5146
+ ${jB},
5147
+ ${_B},
5148
+ ${IB} {
5141
5149
  color: ${hl.PrimaryDark};
5142
5150
  }
5143
5151
  }
5144
- `,_B=I.div`
5152
+ `,MB=I.div`
5145
5153
  display: flex;
5146
5154
  flex-direction: column;
5147
5155
  flex: 1;
5148
5156
  margin-right: 1rem;
5149
- `,IB=I(El.BodySmall)`
5157
+ `,AB=I(El.BodySmall)`
5150
5158
  margin-top: 0.25rem;
5151
- `,EB=I(Ra.div)`
5159
+ `,NB=I(Ra.div)`
5152
5160
  overflow: hidden;
5153
- `,MB=I.div`
5161
+ `,BB=I.div`
5154
5162
  border-top: 1px solid ${hl.Neutral[5]};
5155
- `,AB=I(El.H5)`
5163
+ `,RB=I(El.H5)`
5156
5164
  color: ${hl.Primary};
5157
5165
  margin-right: 0.5rem;
5158
- `,NB=I(Je)`
5159
- ${SB}
5160
- `,BB=I(Qe)`
5161
- ${SB}
5162
- `,RB=I.button`
5166
+ `,LB=I(Je)`
5167
+ ${TB}
5168
+ `,PB=I(Qe)`
5169
+ ${TB}
5170
+ `,zB=I.button`
5163
5171
  display: flex;
5164
5172
  justify-content: center;
5165
5173
  align-items: center;
@@ -5172,18 +5180,18 @@ object-assign
5172
5180
  border-top: 1px solid ${hl.Neutral[5]};
5173
5181
 
5174
5182
  :hover {
5175
- ${AB},
5176
- ${NB},
5177
- ${BB} {
5183
+ ${RB},
5184
+ ${LB},
5185
+ ${PB} {
5178
5186
  color: ${hl.PrimaryDark};
5179
5187
  }
5180
5188
  }
5181
- `,LB=r=>{var{items:i,maxShown:a,style:s="default",onItemClick:l}=r,c=lt(r,["items","maxShown","style","onItemClick"]);const[d,u]=o(!a||a>=i.length),p=a?i.slice(0,a):i,h=a?i.slice(a):[],m=an(),f=m.ref,g=(e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):l&&(e.preventDefault(),l(t,e))},v=()=>{u(!d)},b=(r,i,a,o)=>t(n,{children:[t(_B,{children:[e("small"===s?TB:CB,Object.assign({"data-testid":`link-title-${r}`,weight:"semibold"},{children:i})),a&&e(IB,Object.assign({"data-testid":`link-description-${r}`},{children:a})),o]}),e(DB,{})]}),y=ya({height:d?m.height:0});return t(OB,Object.assign({},c,{children:[p.map(((t,n)=>{const{title:r,description:i,secondaryDescription:a,onClick:o}=t,s=lt(t,["title","description","secondaryDescription","onClick"]);return e(jB,Object.assign({"data-testid":`list-item-shown-${n}`,onClick:e=>g(e,t)},s,{children:b(n,r,i,a)}),`list-item-shown-${n}`)})),h.length>0&&e(EB,Object.assign({style:y,"data-testid":"minimised-content"},{children:e(MB,Object.assign({ref:f},{children:h.map(((t,n)=>{const{title:r,description:i,onClick:a,secondaryDescription:o}=t,s=lt(t,["title","description","onClick","secondaryDescription"]);return e(jB,Object.assign({"data-testid":`list-item-minimised-${n}`,onClick:e=>g(e,t)},s,{children:b(n,r,i,o)}),`list-item-minimised-${n}`)}))}))})),h.length>0&&t(RB,Object.assign({type:"button",onClick:v,"data-testid":"toggle-button",$showMinimised:d},{children:[e(AB,Object.assign({weight:"semibold","data-testid":"toggle-button-label"},{children:d?"View less":"View more"})),e(d?BB:NB,{})]}))]}))},PB=I.div`
5189
+ `,FB=r=>{var{items:i,maxShown:a,style:s="default",onItemClick:l}=r,c=lt(r,["items","maxShown","style","onItemClick"]);const[d,u]=o(!a||a>=i.length),p=a?i.slice(0,a):i,h=a?i.slice(a):[],m=an(),f=m.ref,g=(e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):l&&(e.preventDefault(),l(t,e))},v=()=>{u(!d)},b=(r,i,a,o)=>t(n,{children:[t(MB,{children:[e("small"===s?_B:jB,Object.assign({"data-testid":`link-title-${r}`,weight:"semibold"},{children:i})),a&&e(AB,Object.assign({"data-testid":`link-description-${r}`},{children:a})),o]}),e(IB,{})]}),y=ya({height:d?m.height:0});return t(DB,Object.assign({},c,{children:[p.map(((t,n)=>{const{title:r,description:i,secondaryDescription:a,onClick:o}=t,s=lt(t,["title","description","secondaryDescription","onClick"]);return e(EB,Object.assign({"data-testid":`list-item-shown-${n}`,onClick:e=>g(e,t)},s,{children:b(n,r,i,a)}),`list-item-shown-${n}`)})),h.length>0&&e(NB,Object.assign({style:y,"data-testid":"minimised-content"},{children:e(BB,Object.assign({ref:f},{children:h.map(((t,n)=>{const{title:r,description:i,onClick:a,secondaryDescription:o}=t,s=lt(t,["title","description","onClick","secondaryDescription"]);return e(EB,Object.assign({"data-testid":`list-item-minimised-${n}`,onClick:e=>g(e,t)},s,{children:b(n,r,i,o)}),`list-item-minimised-${n}`)}))}))})),h.length>0&&t(zB,Object.assign({type:"button",onClick:v,"data-testid":"toggle-button",$showMinimised:d},{children:[e(RB,Object.assign({weight:"semibold","data-testid":"toggle-button-label"},{children:d?"View less":"View more"})),e(d?PB:LB,{})]}))]}))},HB=I.div`
5182
5190
  ${e=>pc({textSize:e.$textSize})}
5183
5191
  ${e=>e.color&&E`
5184
5192
  color: ${e.color};
5185
5193
  `}
5186
- `,zB=h(((t,n)=>{const{baseTextColor:r,baseTextSize:i,inline:a}=t,o=lt(t,["baseTextColor","baseTextSize","inline"]);return e(PB,Object.assign({ref:n,as:a?"span":"div",$textSize:i,$textColor:r},o))})),FB=I.div`
5194
+ `,WB=h(((t,n)=>{const{baseTextColor:r,baseTextSize:i,inline:a}=t,o=lt(t,["baseTextColor","baseTextSize","inline"]);return e(HB,Object.assign({ref:n,as:a?"span":"div",$textSize:i,$textColor:r},o))})),VB=I.div`
5187
5195
  margin-top: 2.5rem;
5188
5196
  display: grid;
5189
5197
  align-items: center;
@@ -5208,7 +5216,7 @@ object-assign
5208
5216
  );
5209
5217
  }
5210
5218
  `}}
5211
- `,HB=I.div`
5219
+ `,YB=I.div`
5212
5220
  position: relative;
5213
5221
  ${e=>{const{startLg:t,colsLg:n,startMd:r,colsMd:i,startSm:a,colsSm:o}=e;return E`
5214
5222
  grid-column: ${t||r||"auto"} / span
@@ -5223,7 +5231,7 @@ object-assign
5223
5231
  grid-column: ${a||"auto"} / span ${o||1};
5224
5232
  }
5225
5233
  `}}
5226
- `,WB={Grid:i.forwardRef(((t,n)=>{const{children:r}=t,i=lt(t,["children"]);return e(FB,Object.assign({ref:n},i,{children:r}))})),Tile:i.forwardRef(((t,n)=>{const{children:r}=t,i=lt(t,["children"]);return e(HB,Object.assign({ref:n},i,{children:r}))}))},VB=I.div`
5234
+ `,UB={Grid:i.forwardRef(((t,n)=>{const{children:r}=t,i=lt(t,["children"]);return e(VB,Object.assign({ref:n},i,{children:r}))})),Tile:i.forwardRef(((t,n)=>{const{children:r}=t,i=lt(t,["children"]);return e(YB,Object.assign({ref:n},i,{children:r}))}))},qB=I.div`
5227
5235
  // matches Layout.Container
5228
5236
  // not able to fully align with Layout.Section due to dynamic spacing
5229
5237
  --sgds-mainnav-max-width: 1320px;
@@ -5241,7 +5249,7 @@ object-assign
5241
5249
  ${gl.MaxWidth.mobileL} {
5242
5250
  --sgds-mainnav-max-width: 100%;
5243
5251
  }
5244
- `,YB=()=>{u((()=>{t()||n()}),[]);const t=()=>document.getElementById(UB),n=()=>{if(!document.getElementById(UB)){const e=document.createElement("script");e.id=UB,e.type="module",e.src=qB,document.head.appendChild(e)}};return e(VB,{dangerouslySetInnerHTML:{__html:"<sgds-masthead></sgds-masthead>"}})},UB="lifesg-ds-masthead-script",qB="https://cdn.jsdelivr.net/npm/@govtechsg/sgds-web-component/Masthead/index.js",XB={notCompress:6,compress:4},KB=I.div`
5252
+ `,XB=()=>{u((()=>{t()||n()}),[]);const t=()=>document.getElementById(KB),n=()=>{if(!document.getElementById(KB)){const e=document.createElement("script");e.id=KB,e.type="module",e.src=GB,document.head.appendChild(e)}};return e(qB,{dangerouslySetInnerHTML:{__html:"<sgds-masthead></sgds-masthead>"}})},KB="lifesg-ds-masthead-script",GB="https://cdn.jsdelivr.net/npm/@govtechsg/sgds-web-component/Masthead/index.js",ZB={notCompress:6,compress:4},QB=I.div`
5245
5253
  position: ${e=>e.$fixed?"sticky":"relative"};
5246
5254
  background-color: white;
5247
5255
  z-index: 30;
@@ -5250,8 +5258,8 @@ object-assign
5250
5258
  right: 0;
5251
5259
  width: 100%;
5252
5260
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
5253
- `,GB=I.nav`
5254
- height: ${e=>e.$compress?XB.compress:XB.notCompress}rem;
5261
+ `,JB=I.nav`
5262
+ height: ${e=>e.$compress?ZB.compress:ZB.notCompress}rem;
5255
5263
  width: 100%;
5256
5264
  display: flex;
5257
5265
  flex-direction: row;
@@ -5263,7 +5271,7 @@ object-assign
5263
5271
  ${gl.MaxWidth.tablet} {
5264
5272
  height: ${3.5}rem;
5265
5273
  }
5266
- `,ZB=I.div`
5274
+ `,eR=I.div`
5267
5275
  display: flex;
5268
5276
  height: 100%;
5269
5277
  margin-left: ${e=>e.$hideNavBranding?"0":"5rem"};
@@ -5273,7 +5281,7 @@ object-assign
5273
5281
  ${gl.MaxWidth.tablet} {
5274
5282
  margin-left: 0rem;
5275
5283
  }
5276
- `,QB=I(yl)`
5284
+ `,tR=I(yl)`
5277
5285
  display: none;
5278
5286
 
5279
5287
  ${gl.MaxWidth.tablet} {
@@ -5281,11 +5289,11 @@ object-assign
5281
5289
  padding: 0 1.5rem;
5282
5290
  margin-right: -1.5rem;
5283
5291
  }
5284
- `,JB=I(et)`
5292
+ `,nR=I(et)`
5285
5293
  height: 1.5rem;
5286
5294
  width: 1.5rem;
5287
5295
  color: ${hl.Neutral[1]};
5288
- `,eR=I.div`
5296
+ `,rR=I.div`
5289
5297
  display: flex;
5290
5298
  flex-direction: row;
5291
5299
  align-items: center;
@@ -5300,7 +5308,7 @@ object-assign
5300
5308
  ${gl.MaxWidth.mobileS} {
5301
5309
  height: 1.25rem;
5302
5310
  }
5303
- `,tR=I.div`
5311
+ `,iR=I.div`
5304
5312
  display: flex;
5305
5313
  background-color: ${hl.Neutral[5]};
5306
5314
  height: 100%;
@@ -5315,7 +5323,7 @@ object-assign
5315
5323
  width: 2px;
5316
5324
  margin: 0 0.75rem;
5317
5325
  }
5318
- `,nR=I.a`
5326
+ `,aR=I.a`
5319
5327
  display: flex;
5320
5328
  justify-content: center;
5321
5329
  height: 100%;
@@ -5326,13 +5334,13 @@ object-assign
5326
5334
  transition: ${Bl.Base};
5327
5335
  object-fit: contain;
5328
5336
  }
5329
- `,rR=({resources:t,onClick:n,"data-id":r,"data-testid":i="navbar-brand",type:a})=>e(nR,Object.assign({role:"link",onClick:e=>{n&&n(e,a)},tabIndex:0,"data-id":r,"data-testid":i,$type:a},{children:e(Rf,{src:t.logoSrc,alt:t.brandName})})),iR=I.div`
5337
+ `,oR=({resources:t,onClick:n,"data-id":r,"data-testid":i="navbar-brand",type:a})=>e(aR,Object.assign({role:"link",onClick:e=>{n&&n(e,a)},tabIndex:0,"data-id":r,"data-testid":i,$type:a},{children:e(Rf,{src:t.logoSrc,alt:t.brandName})})),sR=I.div`
5330
5338
  display: none;
5331
5339
 
5332
5340
  ${gl.MaxWidth.tablet} {
5333
5341
  display: flex;
5334
5342
  }
5335
- `,aR=I.div`
5343
+ `,lR=I.div`
5336
5344
  position: absolute;
5337
5345
  overflow-y: auto;
5338
5346
  overflow-x: hidden;
@@ -5362,19 +5370,19 @@ object-assign
5362
5370
  ${gl.MaxWidth.mobileL} {
5363
5371
  width: 100%;
5364
5372
  }
5365
- `,oR=I.div`
5373
+ `,cR=I.div`
5366
5374
  display: flex;
5367
5375
  flex-direction: column;
5368
- `,sR=I.div`
5376
+ `,dR=I.div`
5369
5377
  display: flex;
5370
5378
  justify-content: space-between;
5371
5379
  position: relative;
5372
5380
  padding: 2.5rem 1.25rem 2rem;
5373
- `,lR=I(Ae)`
5381
+ `,uR=I(Ae)`
5374
5382
  height: 1.5rem;
5375
5383
  width: 1.5rem;
5376
5384
  margin-right: -0.25rem;
5377
- `,cR=I(yl)`
5385
+ `,pR=I(yl)`
5378
5386
  position: absolute;
5379
5387
  right: -0.25rem;
5380
5388
  bottom: 0.65rem;
@@ -5384,7 +5392,7 @@ object-assign
5384
5392
  :focus {
5385
5393
  color: ${hl.Primary};
5386
5394
  }
5387
- `,dR=i.forwardRef(((r,i)=>{const{show:a,resources:s,children:l,hideNavBranding:c,onClose:d,onBrandClick:p}=r,[h,m]=o(0),{primary:f,secondary:g}=s;u((()=>(v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)})),[]);const v=()=>{if(window){const e=.01*window.innerHeight;m(e)}};return e(iR,Object.assign({ref:i,"data-testid":"drawer"},{children:e(aR,Object.assign({$show:a,$viewHeight:h},{children:t(oR,{children:[t(sR,{children:[e(eR,Object.assign({"data-id":"drawer-brand-container"},{children:!c&&t(n,{children:[e(rR,{resources:f,compress:!0,onClick:p,"data-id":"drawer-brand-primary","data-testid":"drawer__brand",type:"primary"}),g&&t(n,{children:[e(tR,{}),e(rR,{resources:g,compress:!0,onClick:p,"data-id":"drawer-brand-secondary","data-testid":"drawer__brand-secondary",type:"secondary"})]})]})})),e(cR,Object.assign({onClick:d,focusHighlight:!1,"aria-label":"Close nav menu"},{children:e(lR,{})}))]}),l]})}))}))})),uR={primary:{brandName:"LifeSG",logoSrc:"https://assets.life.gov.sg/lifesg/logo-lifesg.svg"}},pR={primary:{brandName:"BookingSG",logoSrc:"https://www.booking.gov.sg/logo.svg"}},hR={primary:{brandName:"MyLegacy",logoSrc:"https://assets.life.gov.sg/ccube/logo-ccube.svg"}},mR={primary:{brandName:"CCube",logoSrc:"https://mylegacy.life.gov.sg/images/site-logo.png"}},fR=I.ul`
5395
+ `,hR=i.forwardRef(((r,i)=>{const{show:a,resources:s,children:l,hideNavBranding:c,onClose:d,onBrandClick:p}=r,[h,m]=o(0),{primary:f,secondary:g}=s;u((()=>(v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)})),[]);const v=()=>{if(window){const e=.01*window.innerHeight;m(e)}};return e(sR,Object.assign({ref:i,"data-testid":"drawer"},{children:e(lR,Object.assign({$show:a,$viewHeight:h},{children:t(cR,{children:[t(dR,{children:[e(rR,Object.assign({"data-id":"drawer-brand-container"},{children:!c&&t(n,{children:[e(oR,{resources:f,compress:!0,onClick:p,"data-id":"drawer-brand-primary","data-testid":"drawer__brand",type:"primary"}),g&&t(n,{children:[e(iR,{}),e(oR,{resources:g,compress:!0,onClick:p,"data-id":"drawer-brand-secondary","data-testid":"drawer__brand-secondary",type:"secondary"})]})]})})),e(pR,Object.assign({onClick:d,focusHighlight:!1,"aria-label":"Close nav menu"},{children:e(uR,{})}))]}),l]})}))}))})),mR={primary:{brandName:"LifeSG",logoSrc:"https://assets.life.gov.sg/lifesg/logo-lifesg.svg"}},fR={primary:{brandName:"BookingSG",logoSrc:"https://www.booking.gov.sg/logo.svg"}},gR={primary:{brandName:"MyLegacy",logoSrc:"https://assets.life.gov.sg/ccube/logo-ccube.svg"}},vR={primary:{brandName:"CCube",logoSrc:"https://mylegacy.life.gov.sg/images/site-logo.png"}},bR=I.ul`
5388
5396
  display: flex;
5389
5397
  list-style: none;
5390
5398
  margin-left: 4rem;
@@ -5393,7 +5401,7 @@ object-assign
5393
5401
  ${gl.MaxWidth.tablet} {
5394
5402
  display: none;
5395
5403
  }
5396
- `,gR=I.ul`
5404
+ `,yR=I.ul`
5397
5405
  display: none;
5398
5406
 
5399
5407
  ${gl.MaxWidth.tablet} {
@@ -5402,7 +5410,7 @@ object-assign
5402
5410
  margin-left: 4rem;
5403
5411
  flex-shrink: 0;
5404
5412
  }
5405
- `,vR=I.ul`
5413
+ `,xR=I.ul`
5406
5414
  display: none;
5407
5415
  list-style: none;
5408
5416
 
@@ -5420,7 +5428,7 @@ object-assign
5420
5428
  max-width: unset;
5421
5429
  min-width: unset;
5422
5430
  }
5423
- `,bR=I.li`
5431
+ `,wR=I.li`
5424
5432
  position: relative;
5425
5433
  display: flex;
5426
5434
  align-items: center;
@@ -5445,12 +5453,12 @@ object-assign
5445
5453
  padding: 0 1rem;
5446
5454
  `}}
5447
5455
  }
5448
- `,yR=I(oc.Small)`
5456
+ `,$R=I(oc.Small)`
5449
5457
  ${gl.MaxWidth.tablet} {
5450
5458
  width: 100%;
5451
5459
  padding: 0.685rem 1rem;
5452
5460
  }
5453
- `,xR=I.div`
5461
+ `,kR=I.div`
5454
5462
  display: none;
5455
5463
 
5456
5464
  ${gl.MaxWidth.tablet} {
@@ -5458,11 +5466,11 @@ object-assign
5458
5466
  flex-direction: column;
5459
5467
  margin-top: 2.5rem;
5460
5468
  }
5461
- `,wR=I(El.BodySmall)`
5469
+ `,SR=I(El.BodySmall)`
5462
5470
  margin-bottom: 0.5rem;
5463
- `,$R=I.div`
5471
+ `,OR=I.div`
5464
5472
  display: flex;
5465
- `,kR=I.a`
5473
+ `,CR=I.a`
5466
5474
  :not(:last-child) {
5467
5475
  margin-right: 1rem;
5468
5476
  }
@@ -5484,7 +5492,7 @@ object-assign
5484
5492
  max-width: 100%;
5485
5493
  }
5486
5494
  }
5487
- `,SR=({actionButtons:r,mobile:i=!1,onActionButtonClick:a})=>{const o=e=>{e.stopPropagation()},s=e=>t=>{t.stopPropagation(),"download"===e.type&&window.scrollTo({left:0,top:document.body.scrollHeight,behavior:"smooth"}),a(t,e)},l=(n,r)=>{const i=n?(e=>{const t=CS(e,(e=>"download"===e.type));if(t>-1){const n=[...e],r=n.splice(t,1);return[...n,r[0]]}return e})(r):r;return i.map(((r,i)=>{let a;switch(r.type){case"download":a=n?(l=r.args,t(xR,{children:[e(wR,Object.assign({weight:"semibold"},{children:l&&l.children||"Download the app"})),t($R,{children:[e(kR,Object.assign({href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer","data-testid":"button__app-store",onClick:o},{children:e("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",alt:"apple-app-store"})})),e(kR,Object.assign({href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer","data-testid":"button__play-store",onClick:o},{children:e("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",alt:"google-play-store"})}))]})]})):e(yR,Object.assign({},r.args,{type:"button",onClick:s(r),"data-testid":"action-button__download"},{children:"Download the app"}));break;case"button":{const t=r.args["data-testid"]?`action-button__${r.args["data-testid"]}`:`action-button__button-${n?"mobile-":""}${i+1}`;a=e(yR,Object.assign({},r.args,{type:"button",onClick:s(r),"data-testid":t}));break}case"component":{const e=r.args;a=e&&e.render||null;break}default:a=null}var l;if(a)return e(bR,Object.assign({$mobile:n},{children:a}),`action-button-${i+1}`)}))};if(r){const a=(null==r?void 0:r.mobile)||r.desktop,o=a.filter((e=>!!e.uncollapsible)),s=a.filter((e=>!e.uncollapsible));return i?e(n,{children:s.length>0&&e(vR,{children:l(i,s)})}):t(n,{children:[o.length>0&&e(gR,{children:l(!1,o)}),r.desktop.length>0&&e(fR,{children:l(i,r.desktop)})]})}return e(n,{})},OR=I.ul`
5495
+ `,TR=({actionButtons:r,mobile:i=!1,onActionButtonClick:a})=>{const o=e=>{e.stopPropagation()},s=e=>t=>{t.stopPropagation(),"download"===e.type&&window.scrollTo({left:0,top:document.body.scrollHeight,behavior:"smooth"}),a(t,e)},l=(n,r)=>{const i=n?(e=>{const t=CS(e,(e=>"download"===e.type));if(t>-1){const n=[...e],r=n.splice(t,1);return[...n,r[0]]}return e})(r):r;return i.map(((r,i)=>{let a;switch(r.type){case"download":a=n?(l=r.args,t(kR,{children:[e(SR,Object.assign({weight:"semibold"},{children:l&&l.children||"Download the app"})),t(OR,{children:[e(CR,Object.assign({href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer","data-testid":"button__app-store",onClick:o},{children:e("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",alt:"apple-app-store"})})),e(CR,Object.assign({href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer","data-testid":"button__play-store",onClick:o},{children:e("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",alt:"google-play-store"})}))]})]})):e($R,Object.assign({},r.args,{type:"button",onClick:s(r),"data-testid":"action-button__download"},{children:"Download the app"}));break;case"button":{const t=r.args["data-testid"]?`action-button__${r.args["data-testid"]}`:`action-button__button-${n?"mobile-":""}${i+1}`;a=e($R,Object.assign({},r.args,{type:"button",onClick:s(r),"data-testid":t}));break}case"component":{const e=r.args;a=e&&e.render||null;break}default:a=null}var l;if(a)return e(wR,Object.assign({$mobile:n},{children:a}),`action-button-${i+1}`)}))};if(r){const a=(null==r?void 0:r.mobile)||r.desktop,o=a.filter((e=>!!e.uncollapsible)),s=a.filter((e=>!e.uncollapsible));return i?e(n,{children:s.length>0&&e(xR,{children:l(i,s)})}):t(n,{children:[o.length>0&&e(yR,{children:l(!1,o)}),r.desktop.length>0&&e(bR,{children:l(i,r.desktop)})]})}return e(n,{})},DR=I.ul`
5488
5496
  width: 100%;
5489
5497
  overflow: auto;
5490
5498
  display: flex;
@@ -5499,7 +5507,7 @@ object-assign
5499
5507
  background: ${hl.Neutral[8]};
5500
5508
  border-radius: 0 0 0.5rem 0.5rem;
5501
5509
  box-shadow: ${Kl.ElevationBoxShadow};
5502
- `,CR=I.ul`
5510
+ `,jR=I.ul`
5503
5511
  display: none;
5504
5512
  list-style: none;
5505
5513
 
@@ -5508,7 +5516,7 @@ object-assign
5508
5516
  display: flex;
5509
5517
  flex-direction: column;
5510
5518
  }
5511
- `,TR=I(El.Hyperlink.Small)`
5519
+ `,_R=I(El.Hyperlink.Small)`
5512
5520
  ${Il.getTextStyle("H6","regular")};
5513
5521
  width: 100%;
5514
5522
  display: flex;
@@ -5540,7 +5548,7 @@ object-assign
5540
5548
  padding-right: 1.5rem;
5541
5549
  line-height: 1.125rem;
5542
5550
  }
5543
- `,DR=I.li`
5551
+ `,IR=I.li`
5544
5552
  width: 100%;
5545
5553
  position: relative;
5546
5554
  display: flex;
@@ -5566,7 +5574,7 @@ object-assign
5566
5574
  padding-bottom: 0.625rem;
5567
5575
  }
5568
5576
  }
5569
- `,jR=({items:t,mobile:r=!1,onItemClick:i})=>{const a=e=>t=>{t.stopPropagation(),i(t,e)},o=(n=!1)=>t.map(((t,r)=>{const{children:i,options:o}=t,s=lt(t,["children","options"]),l=n?`link__mobile-${r+1}`:`link__${r+1}`;return e(DR,{children:e(TR,Object.assign({"data-testid":l,weight:"bold"},s,{onClick:a(t)},o,{children:i}))},r)}));if(t&&t.length>0){return e(r?CR:OR,{children:o(r)})}return e(n,{})},_R=I.ul`
5577
+ `,ER=({items:t,mobile:r=!1,onItemClick:i})=>{const a=e=>t=>{t.stopPropagation(),i(t,e)},o=(n=!1)=>t.map(((t,r)=>{const{children:i,options:o}=t,s=lt(t,["children","options"]),l=n?`link__mobile-${r+1}`:`link__${r+1}`;return e(IR,{children:e(_R,Object.assign({"data-testid":l,weight:"bold"},s,{onClick:a(t)},o,{children:i}))},r)}));if(t&&t.length>0){return e(r?jR:DR,{children:o(r)})}return e(n,{})},MR=I.ul`
5570
5578
  display: flex;
5571
5579
  list-style: none;
5572
5580
  position: relative;
@@ -5576,7 +5584,7 @@ object-assign
5576
5584
  ${gl.MaxWidth.tablet} {
5577
5585
  display: none;
5578
5586
  }
5579
- `,IR=I.ul`
5587
+ `,AR=I.ul`
5580
5588
  display: none;
5581
5589
  list-style: none;
5582
5590
 
@@ -5585,7 +5593,7 @@ object-assign
5585
5593
  flex-direction: column;
5586
5594
  overflow: hidden;
5587
5595
  }
5588
- `,ER=I.li`
5596
+ `,NR=I.li`
5589
5597
  display: flex;
5590
5598
  margin-left: 1rem;
5591
5599
 
@@ -5600,7 +5608,7 @@ object-assign
5600
5608
  width: 100%;
5601
5609
  margin-left: 0rem;
5602
5610
  }
5603
- `,MR=I(El.Hyperlink.Small)`
5611
+ `,BR=I(El.Hyperlink.Small)`
5604
5612
  display: flex;
5605
5613
  position: relative;
5606
5614
  align-items: center;
@@ -5624,7 +5632,7 @@ object-assign
5624
5632
  color: ${hl.Neutral[1]};
5625
5633
  }
5626
5634
  }
5627
- `,AR=I.div`
5635
+ `,RR=I.div`
5628
5636
  flex: 1;
5629
5637
  margin-top: 0.25rem;
5630
5638
 
@@ -5633,7 +5641,7 @@ object-assign
5633
5641
  -webkit-box-orient: vertical;
5634
5642
  -webkit-line-clamp: 3;
5635
5643
  white-space: pre-wrap;
5636
- `,NR=I.div`
5644
+ `,LR=I.div`
5637
5645
  position: absolute;
5638
5646
  bottom: 0;
5639
5647
  height: 0.25rem;
@@ -5650,22 +5658,22 @@ object-assign
5650
5658
  width: 0.25rem;
5651
5659
  background-color: ${hl.Primary};
5652
5660
  }
5653
- `,BR=I.div`
5661
+ `,PR=I.div`
5654
5662
  padding-left: 0.5rem;
5655
5663
  margin-right: -0.5rem;
5656
- `,RR=I(yl)`
5664
+ `,zR=I(yl)`
5657
5665
  padding: 0.5rem;
5658
5666
  transform: rotate(${e=>e.$selected?0:180}deg);
5659
5667
  transition: transform 300ms ease-in-out;
5660
5668
  margin: auto 0.25rem auto 0;
5661
- `,LR=I(_)`
5669
+ `,FR=I(_)`
5662
5670
  height: 1.25rem;
5663
5671
  width: 1.25rem;
5664
5672
  color: ${hl.Neutral[3]};
5665
5673
  :hover {
5666
5674
  color: ${hl.Neutral[1]};
5667
5675
  }
5668
- `,PR=({items:r,selectedId:i,mobile:s=!1,hideNavBranding:l,onItemClick:c})=>{const[d,p]=o(-1),[h,m]=o(!1),f=a(null);u((()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&g()};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}}),[]);const g=()=>{m(!1)},v=(e,t)=>n=>{n.stopPropagation(),p(t),m(!0),c(n,e)},b=(e,t)=>{e.stopPropagation(),c(e,t),m(!1)},y=()=>r.map(((n,r)=>{if("component"===n.itemType){const t=n&&n.children||null;return e("li",{children:t},r)}{const a=(e=>{if(e.id===i)return!0;if((null==e?void 0:e.subMenu)&&e.subMenu.length>=1)return!!e.subMenu.find((e=>e.id===i));return!1})(n),{children:o,options:c}=n,u=lt(n,["children","options"]),p=a?s?"bold":"semibold":"regular",m=s?`link__mobile-${r+1}`:`link__${r+1}`,f=d>=0&&d===r&&h;return t(ER,Object.assign({$hiddenBranding:l},{children:[t(MR,Object.assign({"data-testid":m,weight:p,$selected:a},u,{onClick:v(n,r)},c,{children:[e(AR,{children:o}),a&&e(NR,{"data-testid":`${m}-indicator`}),s&&n.subMenu&&e(BR,{children:e(RR,Object.assign({"data-testid":`${m}-expand-collapse-button`,$selected:f,focusHighlight:!1,focusOutline:"browser","aria-label":f?"Collapse":"Expand"},{children:e(LR,{})}))})]})),f&&e(jR,{items:n.subMenu,mobile:s,onItemClick:b})]}),r)}}));return r&&r.length>0?s?e(IR,Object.assign({ref:f},{children:y()})):e(_R,Object.assign({ref:f,$alignLeft:l},{children:y()})):e(n,{})},zR=h(((r,i)=>{var{items:s,className:l,id:c,selectedId:d,compress:p=!1,fixed:h=!0,resources:m,hideNavElements:f=!1,hideNavBranding:g=!1,drawerDismissalExclusions:b=[],actionButtons:y,onItemClick:x,onActionButtonClick:w,onBrandClick:$,masthead:k=!0,layout:S="default"}=r,O=lt(r,["items","className","id","selectedId","compress","fixed","resources","hideNavElements","hideNavBranding","drawerDismissalExclusions","actionButtons","onItemClick","onActionButtonClick","onBrandClick","masthead","layout"]);const[C,T]=o(!1),[D,j]=o(!1),_="stretch"===S,I=a(),E=A(),M=(e=>{switch(e){case"bookingsg":return pR;case"mylegacy":return mR;case"ccube":return hR;default:return uR}})(null==E?void 0:E.resourceScheme),N=(null==m?void 0:m.primary)||M.primary,B=null==m?void 0:m.secondary;v(i,(()=>Object.assign(I.current,{dismissDrawer:()=>{R()}})),[C]),u((()=>(P(),window.addEventListener("resize",P),()=>{window.removeEventListener("resize",P)})),[]);const R=()=>{T(!1),setTimeout((()=>{j(!1)}),550)},L=e=>C&&-1===b.indexOf(e),P=()=>{window.innerWidth<=ml.tablet&&C&&R()},z=(e,t)=>{$&&(e.preventDefault(),$(t)),L("brand-click")&&R()},F=(e,t)=>{t.onClick?t.onClick(e):x&&(e.preventDefault(),x(t)),!(null==t?void 0:t.subMenu)&&L("item-click")&&R()},H=(e,t)=>{t.args&&t.args.onClick?t.args.onClick(e):w&&(e.preventDefault(),w(t)),L("item-click")&&R()},W=()=>{T(!0),j(!0)},V=()=>{L("close-button-click")&&R()},Y=()=>{const t=s.mobile||s.desktop;return t&&t.length>0||y&&(()=>{const e=y.mobile||y.desktop;return!!e&&e.length&&e.some((e=>!e.uncollapsible))})()?e(QB,Object.assign({"aria-label":"Open nav menu","data-testid":"button__mobile-menu",onClick:W,focusHighlight:!1},{children:e(JB,{})})):null};return t(KB,Object.assign({ref:I,$fixed:h,className:l,id:c||"navbar-wrapper","data-testid":O["data-testid"]||"navbar-wrapper"},{children:[k&&e(YB,{}),t(Dx.Content,Object.assign({stretch:_},{children:[t(GB,Object.assign({$compress:p},{children:[!g&&t(eR,Object.assign({$compress:p,"data-id":"brand-container"},{children:[e(rR,{resources:N,onClick:z,"data-id":"brand-primary","data-testid":"main__brand",type:"primary"}),B&&t(n,{children:[e(tR,{$compress:p}),e(rR,{resources:B,onClick:z,"data-id":"brand-secondary","data-testid":"main__brand-secondary",type:"secondary"})]})]})),!f&&t(ZB,Object.assign({$hideNavBranding:g},{children:[e(PR,{items:s.desktop,onItemClick:F,selectedId:d,hideNavBranding:g}),e(SR,{actionButtons:y,onActionButtonClick:H}),Y()]}))]})),!f&&e(Cm,Object.assign({show:D,enableOverlayClick:!0,onOverlayClick:V},{children:t(dR,Object.assign({show:C,resources:{primary:N,secondary:B},onClose:V,onBrandClick:z,actionButtons:y,hideNavBranding:g},{children:[e(PR,{items:s.mobile||s.desktop,onItemClick:F,selectedId:d,mobile:!0}),e(SR,{actionButtons:y,onActionButtonClick:H,mobile:!0})]}))}))]}))]}))})),FR=XB,HR=3.5,WR=E`
5676
+ `,HR=({items:r,selectedId:i,mobile:s=!1,hideNavBranding:l,onItemClick:c})=>{const[d,p]=o(-1),[h,m]=o(!1),f=a(null);u((()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&g()};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}}),[]);const g=()=>{m(!1)},v=(e,t)=>n=>{n.stopPropagation(),p(t),m(!0),c(n,e)},b=(e,t)=>{e.stopPropagation(),c(e,t),m(!1)},y=()=>r.map(((n,r)=>{if("component"===n.itemType){const t=n&&n.children||null;return e("li",{children:t},r)}{const a=(e=>{if(e.id===i)return!0;if((null==e?void 0:e.subMenu)&&e.subMenu.length>=1)return!!e.subMenu.find((e=>e.id===i));return!1})(n),{children:o,options:c}=n,u=lt(n,["children","options"]),p=a?s?"bold":"semibold":"regular",m=s?`link__mobile-${r+1}`:`link__${r+1}`,f=d>=0&&d===r&&h;return t(NR,Object.assign({$hiddenBranding:l},{children:[t(BR,Object.assign({"data-testid":m,weight:p,$selected:a},u,{onClick:v(n,r)},c,{children:[e(RR,{children:o}),a&&e(LR,{"data-testid":`${m}-indicator`}),s&&n.subMenu&&e(PR,{children:e(zR,Object.assign({"data-testid":`${m}-expand-collapse-button`,$selected:f,focusHighlight:!1,focusOutline:"browser","aria-label":f?"Collapse":"Expand"},{children:e(FR,{})}))})]})),f&&e(ER,{items:n.subMenu,mobile:s,onItemClick:b})]}),r)}}));return r&&r.length>0?s?e(AR,Object.assign({ref:f},{children:y()})):e(MR,Object.assign({ref:f,$alignLeft:l},{children:y()})):e(n,{})},WR=h(((r,i)=>{var{items:s,className:l,id:c,selectedId:d,compress:p=!1,fixed:h=!0,resources:m,hideNavElements:f=!1,hideNavBranding:g=!1,drawerDismissalExclusions:b=[],actionButtons:y,onItemClick:x,onActionButtonClick:w,onBrandClick:$,masthead:k=!0,layout:S="default"}=r,O=lt(r,["items","className","id","selectedId","compress","fixed","resources","hideNavElements","hideNavBranding","drawerDismissalExclusions","actionButtons","onItemClick","onActionButtonClick","onBrandClick","masthead","layout"]);const[C,T]=o(!1),[D,j]=o(!1),_="stretch"===S,I=a(),E=A(),M=(e=>{switch(e){case"bookingsg":return fR;case"mylegacy":return vR;case"ccube":return gR;default:return mR}})(null==E?void 0:E.resourceScheme),N=(null==m?void 0:m.primary)||M.primary,B=null==m?void 0:m.secondary;v(i,(()=>Object.assign(I.current,{dismissDrawer:()=>{R()}})),[C]),u((()=>(P(),window.addEventListener("resize",P),()=>{window.removeEventListener("resize",P)})),[]);const R=()=>{T(!1),setTimeout((()=>{j(!1)}),550)},L=e=>C&&-1===b.indexOf(e),P=()=>{window.innerWidth<=ml.tablet&&C&&R()},z=(e,t)=>{$&&(e.preventDefault(),$(t)),L("brand-click")&&R()},F=(e,t)=>{t.onClick?t.onClick(e):x&&(e.preventDefault(),x(t)),!(null==t?void 0:t.subMenu)&&L("item-click")&&R()},H=(e,t)=>{t.args&&t.args.onClick?t.args.onClick(e):w&&(e.preventDefault(),w(t)),L("item-click")&&R()},W=()=>{T(!0),j(!0)},V=()=>{L("close-button-click")&&R()},Y=()=>{const t=s.mobile||s.desktop;return t&&t.length>0||y&&(()=>{const e=y.mobile||y.desktop;return!!e&&e.length&&e.some((e=>!e.uncollapsible))})()?e(tR,Object.assign({"aria-label":"Open nav menu","data-testid":"button__mobile-menu",onClick:W,focusHighlight:!1},{children:e(nR,{})})):null};return t(QB,Object.assign({ref:I,$fixed:h,className:l,id:c||"navbar-wrapper","data-testid":O["data-testid"]||"navbar-wrapper"},{children:[k&&e(XB,{}),t(Dx.Content,Object.assign({stretch:_},{children:[t(JB,Object.assign({$compress:p},{children:[!g&&t(rR,Object.assign({$compress:p,"data-id":"brand-container"},{children:[e(oR,{resources:N,onClick:z,"data-id":"brand-primary","data-testid":"main__brand",type:"primary"}),B&&t(n,{children:[e(iR,{$compress:p}),e(oR,{resources:B,onClick:z,"data-id":"brand-secondary","data-testid":"main__brand-secondary",type:"secondary"})]})]})),!f&&t(eR,Object.assign({$hideNavBranding:g},{children:[e(HR,{items:s.desktop,onItemClick:F,selectedId:d,hideNavBranding:g}),e(TR,{actionButtons:y,onActionButtonClick:H}),Y()]}))]})),!f&&e(Cm,Object.assign({show:D,enableOverlayClick:!0,onOverlayClick:V},{children:t(hR,Object.assign({show:C,resources:{primary:N,secondary:B},onClose:V,onBrandClick:z,actionButtons:y,hideNavBranding:g},{children:[e(HR,{items:s.mobile||s.desktop,onItemClick:F,selectedId:d,mobile:!0}),e(TR,{actionButtons:y,onActionButtonClick:H,mobile:!0})]}))}))]}))]}))})),VR=ZB,YR=3.5,UR=E`
5669
5677
  color: ${hl.Validation.Orange.Icon};
5670
5678
 
5671
5679
  svg {
@@ -5681,7 +5689,7 @@ object-assign
5681
5689
  color: ${hl.Validation.Orange.Icon};
5682
5690
  }
5683
5691
  }
5684
- `,VR=I.div`
5692
+ `,qR=I.div`
5685
5693
  position: ${e=>e.$sticky?"sticky":"relative"};
5686
5694
  left: 0;
5687
5695
  top: 0;
@@ -5690,16 +5698,16 @@ object-assign
5690
5698
  background: ${hl.Neutral[2]};
5691
5699
  z-index: 25;
5692
5700
  cursor: ${e=>e.$clickable?"pointer":"default"};
5693
- `,YR=I(Dx.Content)`
5701
+ `,XR=I(Dx.Content)`
5694
5702
  display: flex;
5695
- `,UR=I.div`
5703
+ `,KR=I.div`
5696
5704
  flex: 1;
5697
5705
 
5698
5706
  display: flex;
5699
5707
  flex-direction: column;
5700
5708
  align-items: flex-start;
5701
5709
  padding: 1.5rem 0;
5702
- `,qR=I.div`
5710
+ `,GR=I.div`
5703
5711
  display: inline-block;
5704
5712
  width: 100%;
5705
5713
 
@@ -5717,7 +5725,7 @@ object-assign
5717
5725
 
5718
5726
  a {
5719
5727
  ${Il.getTextStyle("Body","regular")}
5720
- ${WR}
5728
+ ${UR}
5721
5729
  }
5722
5730
 
5723
5731
  ${e=>{const t="linear-gradient(to bottom, black 50%, transparent 100%)";if(e.$maxCollapsedHeight)return E`
@@ -5726,19 +5734,19 @@ object-assign
5726
5734
  -webkit-mask-image: ${t};
5727
5735
  mask-image: ${t};
5728
5736
  `}}
5729
- `,XR=I(El.Hyperlink.Default)`
5737
+ `,ZR=I(El.Hyperlink.Default)`
5730
5738
  position: relative;
5731
5739
 
5732
- ${WR}
5733
- `,KR=I(yl)`
5740
+ ${UR}
5741
+ `,QR=I(yl)`
5734
5742
  margin-right: -1.5rem;
5735
5743
  padding-left: 1rem;
5736
5744
  height: max-content;
5737
- `,GR=I(Ae)`
5745
+ `,JR=I(Ae)`
5738
5746
  height: 1.875rem;
5739
5747
  width: 1.875rem;
5740
5748
  color: ${hl.Neutral[8]};
5741
- `,ZR=I.button`
5749
+ `,eL=I.button`
5742
5750
  display: flex;
5743
5751
  align-items: center;
5744
5752
  gap: 0.25rem;
@@ -5751,7 +5759,7 @@ object-assign
5751
5759
  ${Il.getTextStyle("BodySmall","semibold")};
5752
5760
 
5753
5761
  cursor: pointer;
5754
- `,QR=I.button`
5762
+ `,tL=I.button`
5755
5763
  clip: rect(0 0 0 0);
5756
5764
  clip-path: inset(50%);
5757
5765
  height: 1px;
@@ -5759,15 +5767,15 @@ object-assign
5759
5767
  position: absolute;
5760
5768
  white-space: nowrap;
5761
5769
  width: 1px;
5762
- `,JR=n=>{var{children:r,visible:i=!0,dismissible:a=!0,sticky:s=!0,onDismiss:l,id:c,forwardedRef:d,maxCollapsedHeight:p,onClick:h,actionButton:m}=n,f=lt(n,["children","visible","dismissible","sticky","onDismiss","id","forwardedRef","maxCollapsedHeight","onClick","actionButton"]);const g=f["data-testid"],[v,b]=o(i),{height:y,ref:x}=an();u((()=>{b(i)}),[i]);const w=e=>{e.stopPropagation(),b(!1),a&&l&&l()},$=e=>{m.onClick&&(e.stopPropagation(),m.onClick(e))};if(!v)return null;return t(VR,Object.assign({ref:d,$sticky:s,$clickable:!!h,onClick:h},f,{children:[t(YR,Object.assign({id:eL("container",c)},{children:[t(UR,{children:[e(qR,Object.assign({"data-testid":eL("text-content",g),$maxCollapsedHeight:p&&y>p?p:void 0},{children:e("div",Object.assign({ref:x},{children:r}))})),m&&e(ZR,Object.assign({id:eL("action-button",c),"data-testid":eL("action-button",g),type:"button"},m,{onClick:$},{children:m.children}))]}),a&&e(KR,Object.assign({onClick:w,id:eL("dismiss-button",c),"data-testid":eL("dismiss-button",g),focusHighlight:!1,type:"button","aria-label":"Dismiss notification"},{children:e(GR,{"aria-hidden":!0})}))]})),h&&e(QR,{"aria-label":"Clickable banner",type:"button"})]}))},eL=(e,t="wrapper")=>`${t}-${e}`,tL=i.forwardRef(((t,n)=>e(JR,Object.assign({},t,{forwardedRef:n})))),nL=Object.assign(tL,{Link:XR}),{entries:rL,setPrototypeOf:iL,isFrozen:aL,getPrototypeOf:oL,getOwnPropertyDescriptor:sL}=Object;let{freeze:lL,seal:cL,create:dL}=Object,{apply:uL,construct:pL}="undefined"!=typeof Reflect&&Reflect;lL||(lL=function(e){return e}),cL||(cL=function(e){return e}),uL||(uL=function(e,t,n){return e.apply(t,n)}),pL||(pL=function(e,t){return new e(...t)});const hL=DL(Array.prototype.forEach),mL=DL(Array.prototype.lastIndexOf),fL=DL(Array.prototype.pop),gL=DL(Array.prototype.push),vL=DL(Array.prototype.splice),bL=DL(String.prototype.toLowerCase),yL=DL(String.prototype.toString),xL=DL(String.prototype.match),wL=DL(String.prototype.replace),$L=DL(String.prototype.indexOf),kL=DL(String.prototype.trim),SL=DL(Object.prototype.hasOwnProperty),OL=DL(RegExp.prototype.test),CL=(TL=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pL(TL,t)});var TL;function DL(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return uL(e,t,r)}}function jL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bL;iL&&iL(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(aL(t)||(t[r]=e),i=e)}e[i]=!0}return e}function _L(e){for(let t=0;t<e.length;t++){SL(e,t)||(e[t]=null)}return e}function IL(e){const t=dL(null);for(const[n,r]of rL(e)){SL(e,n)&&(Array.isArray(r)?t[n]=_L(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=IL(r):t[n]=r)}return t}function EL(e,t){for(;null!==e;){const n=sL(e,t);if(n){if(n.get)return DL(n.get);if("function"==typeof n.value)return DL(n.value)}e=oL(e)}return function(){return null}}const ML=lL(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),AL=lL(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),NL=lL(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),BL=lL(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),RL=lL(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),LL=lL(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),PL=lL(["#text"]),zL=lL(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),FL=lL(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),HL=lL(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),WL=lL(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),VL=cL(/\{\{[\w\W]*|[\w\W]*\}\}/gm),YL=cL(/<%[\w\W]*|[\w\W]*%>/gm),UL=cL(/\$\{[\w\W]*/gm),qL=cL(/^data-[\-\w.\u00B7-\uFFFF]+$/),XL=cL(/^aria-[\-\w]+$/),KL=cL(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),GL=cL(/^(?:\w+script|data):/i),ZL=cL(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),QL=cL(/^html$/i),JL=cL(/^[a-z][.\w]*(-[.\w]+)+$/i);var eP=Object.freeze({__proto__:null,ARIA_ATTR:XL,ATTR_WHITESPACE:ZL,CUSTOM_ELEMENT:JL,DATA_ATTR:qL,DOCTYPE_NAME:QL,ERB_EXPR:YL,IS_ALLOWED_URI:KL,IS_SCRIPT_OR_DATA:GL,MUSTACHE_EXPR:VL,TMPLIT_EXPR:UL});const tP=1,nP=3,rP=7,iP=8,aP=9,oP=function(){return"undefined"==typeof window?null:window};var sP=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oP();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==aP||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:m}=t,f=c.prototype,g=EL(f,"cloneNode"),v=EL(f,"remove"),b=EL(f,"nextSibling"),y=EL(f,"childNodes"),x=EL(f,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,$="";const{implementation:k,createNodeIterator:S,createDocumentFragment:O,getElementsByTagName:C}=r,{importNode:T}=i;let D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof rL&&"function"==typeof x&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:j,ERB_EXPR:_,TMPLIT_EXPR:I,DATA_ATTR:E,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:A,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:B}=eP;let{IS_ALLOWED_URI:R}=eP,L=null;const P=jL({},[...ML,...AL,...NL,...RL,...PL]);let z=null;const F=jL({},[...zL,...FL,...HL,...WL]);let H=Object.seal(dL(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,V=null,Y=!0,U=!0,q=!1,X=!0,K=!1,G=!0,Z=!1,Q=!1,J=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1,ae=!0,oe=!1,se={},le=null;const ce=jL({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const ue=jL({},["audio","video","img","source","image","track"]);let pe=null;const he=jL({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ve=ge,be=!1,ye=null;const xe=jL({},[me,fe,ge],yL);let we=jL({},["mi","mo","mn","ms","mtext"]),$e=jL({},["annotation-xml"]);const ke=jL({},["title","style","font","a","script"]);let Se=null;const Oe=["application/xhtml+xml","text/html"];let Ce=null,Te=null;const De=r.createElement("form"),je=function(e){return e instanceof RegExp||e instanceof Function},_e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=IL(e),Se=-1===Oe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===Se?yL:bL,L=SL(e,"ALLOWED_TAGS")?jL({},e.ALLOWED_TAGS,Ce):P,z=SL(e,"ALLOWED_ATTR")?jL({},e.ALLOWED_ATTR,Ce):F,ye=SL(e,"ALLOWED_NAMESPACES")?jL({},e.ALLOWED_NAMESPACES,yL):xe,pe=SL(e,"ADD_URI_SAFE_ATTR")?jL(IL(he),e.ADD_URI_SAFE_ATTR,Ce):he,de=SL(e,"ADD_DATA_URI_TAGS")?jL(IL(ue),e.ADD_DATA_URI_TAGS,Ce):ue,le=SL(e,"FORBID_CONTENTS")?jL({},e.FORBID_CONTENTS,Ce):ce,W=SL(e,"FORBID_TAGS")?jL({},e.FORBID_TAGS,Ce):IL({}),V=SL(e,"FORBID_ATTR")?jL({},e.FORBID_ATTR,Ce):IL({}),se=!!SL(e,"USE_PROFILES")&&e.USE_PROFILES,Y=!1!==e.ALLOW_ARIA_ATTR,U=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,G=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||KL,ve=e.NAMESPACE||ge,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,$e=e.HTML_INTEGRATION_POINTS||$e,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(U=!1),te&&(ee=!0),se&&(L=jL({},PL),z=[],!0===se.html&&(jL(L,ML),jL(z,zL)),!0===se.svg&&(jL(L,AL),jL(z,FL),jL(z,WL)),!0===se.svgFilters&&(jL(L,NL),jL(z,FL),jL(z,WL)),!0===se.mathMl&&(jL(L,RL),jL(z,HL),jL(z,WL))),e.ADD_TAGS&&(L===P&&(L=IL(L)),jL(L,e.ADD_TAGS,Ce)),e.ADD_ATTR&&(z===F&&(z=IL(z)),jL(z,e.ADD_ATTR,Ce)),e.ADD_URI_SAFE_ATTR&&jL(pe,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(le===ce&&(le=IL(le)),jL(le,e.FORBID_CONTENTS,Ce)),ae&&(L["#text"]=!0),Z&&jL(L,["html","head","body"]),L.table&&(jL(L,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw CL('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw CL('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,$=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(m,a)),null!==w&&"string"==typeof $&&($=w.createHTML(""));lL&&lL(e),Te=e}},Ie=jL({},[...AL,...NL,...BL]),Ee=jL({},[...RL,...LL]),Me=function(e){gL(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){v(e)}},Ae=function(e,t){try{gL(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){gL(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Me(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{const t=xL(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Se&&ve===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=w?w.createHTML(e):e;if(ve===ge)try{t=(new h).parseFromString(i,Se)}catch(e){}if(!t||!t.documentElement){t=k.createDocument(ve,"template",null);try{t.documentElement.innerHTML=be?$:i}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),ve===ge?C.call(t,Z?"html":"body")[0]:Z?t.documentElement:a},Be=function(e){return S.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Le=function(e){return"function"==typeof l&&e instanceof l};function Pe(e,t,r){hL(e,(e=>{e.call(n,t,r,Te)}))}const ze=function(e){let t=null;if(Pe(D.beforeSanitizeElements,e,null),Re(e))return Me(e),!0;const r=Ce(e.nodeName);if(Pe(D.uponSanitizeElement,e,{tagName:r,allowedTags:L}),G&&e.hasChildNodes()&&!Le(e.firstElementChild)&&OL(/<[/\w!]/g,e.innerHTML)&&OL(/<[/\w!]/g,e.textContent))return Me(e),!0;if(e.nodeType===rP)return Me(e),!0;if(G&&e.nodeType===iP&&OL(/<[/\w]/g,e.data))return Me(e),!0;if(!L[r]||W[r]){if(!W[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&OL(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}if(ae&&!le[r]){const t=x(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=g(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,b(e))}}}return Me(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=bL(e.tagName),r=bL(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===fe?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||we[r]):Boolean(Ie[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===fe?"math"===n&&$e[r]:Boolean(Ee[n]):e.namespaceURI===ge?!(t.namespaceURI===fe&&!$e[r])&&!(t.namespaceURI===me&&!we[r])&&!Ee[n]&&(ke[n]||!Ie[n]):!("application/xhtml+xml"!==Se||!ye[e.namespaceURI]))}(e)?(Me(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!OL(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&e.nodeType===nP&&(t=e.textContent,hL([j,_,I],(e=>{t=wL(t,e," ")})),e.textContent!==t&&(gL(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe(D.afterSanitizeElements,e,null),!1):(Me(e),!0)},Fe=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in De))return!1;if(U&&!V[t]&&OL(E,t));else if(Y&&OL(M,t));else if(!z[t]||V[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&OL(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&OL(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&OL(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(OL(R,wL(n,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==$L(n,"data:")||!de[e]){if(q&&!OL(A,wL(n,N,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&xL(e,B)},We=function(e){Pe(D.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let i=t.length;for(;i--;){const a=t[i],{name:o,namespaceURI:s,value:l}=a,c=Ce(o),d=l;let u="value"===o?d:kL(d);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Pe(D.uponSanitizeAttribute,e,r),u=r.attrValue,!ie||"id"!==c&&"name"!==c||(Ae(o,e),u="user-content-"+u),G&&OL(/((--!?|])>)|<\/(style|title)/i,u)){Ae(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ae(o,e);continue}if(!X&&OL(/\/>/i,u)){Ae(o,e);continue}K&&hL([j,_,I],(e=>{u=wL(u,e," ")}));const p=Ce(e.nodeName);if(Fe(p,c,u)){if(w&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(p,c)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}if(u!==d)try{s?e.setAttributeNS(s,o,u):e.setAttribute(o,u),Re(e)?Me(e):fL(n.removed)}catch(t){Ae(o,e)}}else Ae(o,e)}Pe(D.afterSanitizeAttributes,e,null)},Ve=function e(t){let n=null;const r=Be(t);for(Pe(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Pe(D.uponSanitizeShadowNode,n,null),ze(n),We(n),n.content instanceof o&&e(n.content);Pe(D.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Le(e)){if("function"!=typeof e.toString)throw CL("toString is not a function");if("string"!=typeof(e=e.toString()))throw CL("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||_e(t),n.removed=[],"string"==typeof e&&(oe=!1),oe){if(e.nodeName){const t=Ce(e.nodeName);if(!L[t]||W[t])throw CL("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ne("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===tP&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!ee&&!K&&!Z&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(r=Ne(e),!r)return ee?null:ne?$:""}r&&J&&Me(r.firstChild);const d=Be(oe?e:r);for(;s=d.nextNode();)ze(s),We(s),s.content instanceof o&&Ve(s.content);if(oe)return e;if(ee){if(te)for(c=O.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(z.shadowroot||z.shadowrootmode)&&(c=T.call(i,c,!0)),c}let u=Z?r.outerHTML:r.innerHTML;return Z&&L["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&OL(QL,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),K&&hL([j,_,I],(e=>{u=wL(u,e," ")})),w&&ne?w.createHTML(u):u},n.setConfig=function(){_e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Te=null,Q=!1},n.isValidAttribute=function(e,t,n){Te||_e({});const r=Ce(e),i=Ce(t);return Fe(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&gL(D[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=mL(D[e],t);return-1===n?void 0:vL(D[e],n,1)[0]}return fL(D[e])},n.removeHooks=function(e){D[e]=[]},n.removeAllHooks=function(){D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const lP=t=>i.forwardRef(((n,r)=>e(JR,Object.assign({forwardedRef:r},n,{children:t.length>0?t.map(((t,n)=>{if("text"===t.type){const r=t.otherAttributes,i=sP.sanitize(t.content);return e("p",Object.assign({},r,{dangerouslySetInnerHTML:{__html:i}}),n)}{const r=t.otherAttributes;return e(nL.Link,Object.assign({},r,{children:t.content}),n)}})):(console.error("[NotificationBannerHOC] Empty data passed"),null)})))),cP=I.div`
5770
+ `,nL=n=>{var{children:r,visible:i=!0,dismissible:a=!0,sticky:s=!0,onDismiss:l,id:c,forwardedRef:d,maxCollapsedHeight:p,onClick:h,actionButton:m}=n,f=lt(n,["children","visible","dismissible","sticky","onDismiss","id","forwardedRef","maxCollapsedHeight","onClick","actionButton"]);const g=f["data-testid"],[v,b]=o(i),{height:y,ref:x}=an();u((()=>{b(i)}),[i]);const w=e=>{e.stopPropagation(),b(!1),a&&l&&l()},$=e=>{m.onClick&&(e.stopPropagation(),m.onClick(e))};if(!v)return null;return t(qR,Object.assign({ref:d,$sticky:s,$clickable:!!h,onClick:h},f,{children:[t(XR,Object.assign({id:rL("container",c)},{children:[t(KR,{children:[e(GR,Object.assign({"data-testid":rL("text-content",g),$maxCollapsedHeight:p&&y>p?p:void 0},{children:e("div",Object.assign({ref:x},{children:r}))})),m&&e(eL,Object.assign({id:rL("action-button",c),"data-testid":rL("action-button",g),type:"button"},m,{onClick:$},{children:m.children}))]}),a&&e(QR,Object.assign({onClick:w,id:rL("dismiss-button",c),"data-testid":rL("dismiss-button",g),focusHighlight:!1,type:"button","aria-label":"Dismiss notification"},{children:e(JR,{"aria-hidden":!0})}))]})),h&&e(tL,{"aria-label":"Clickable banner",type:"button"})]}))},rL=(e,t="wrapper")=>`${t}-${e}`,iL=i.forwardRef(((t,n)=>e(nL,Object.assign({},t,{forwardedRef:n})))),aL=Object.assign(iL,{Link:ZR}),{entries:oL,setPrototypeOf:sL,isFrozen:lL,getPrototypeOf:cL,getOwnPropertyDescriptor:dL}=Object;let{freeze:uL,seal:pL,create:hL}=Object,{apply:mL,construct:fL}="undefined"!=typeof Reflect&&Reflect;uL||(uL=function(e){return e}),pL||(pL=function(e){return e}),mL||(mL=function(e,t,n){return e.apply(t,n)}),fL||(fL=function(e,t){return new e(...t)});const gL=IL(Array.prototype.forEach),vL=IL(Array.prototype.lastIndexOf),bL=IL(Array.prototype.pop),yL=IL(Array.prototype.push),xL=IL(Array.prototype.splice),wL=IL(String.prototype.toLowerCase),$L=IL(String.prototype.toString),kL=IL(String.prototype.match),SL=IL(String.prototype.replace),OL=IL(String.prototype.indexOf),CL=IL(String.prototype.trim),TL=IL(Object.prototype.hasOwnProperty),DL=IL(RegExp.prototype.test),jL=(_L=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fL(_L,t)});var _L;function IL(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return mL(e,t,r)}}function EL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wL;sL&&sL(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(lL(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ML(e){for(let t=0;t<e.length;t++){TL(e,t)||(e[t]=null)}return e}function AL(e){const t=hL(null);for(const[n,r]of oL(e)){TL(e,n)&&(Array.isArray(r)?t[n]=ML(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=AL(r):t[n]=r)}return t}function NL(e,t){for(;null!==e;){const n=dL(e,t);if(n){if(n.get)return IL(n.get);if("function"==typeof n.value)return IL(n.value)}e=cL(e)}return function(){return null}}const BL=uL(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),RL=uL(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),LL=uL(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),PL=uL(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zL=uL(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),FL=uL(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),HL=uL(["#text"]),WL=uL(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),VL=uL(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),YL=uL(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),UL=uL(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qL=pL(/\{\{[\w\W]*|[\w\W]*\}\}/gm),XL=pL(/<%[\w\W]*|[\w\W]*%>/gm),KL=pL(/\$\{[\w\W]*/gm),GL=pL(/^data-[\-\w.\u00B7-\uFFFF]+$/),ZL=pL(/^aria-[\-\w]+$/),QL=pL(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),JL=pL(/^(?:\w+script|data):/i),eP=pL(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tP=pL(/^html$/i),nP=pL(/^[a-z][.\w]*(-[.\w]+)+$/i);var rP=Object.freeze({__proto__:null,ARIA_ATTR:ZL,ATTR_WHITESPACE:eP,CUSTOM_ELEMENT:nP,DATA_ATTR:GL,DOCTYPE_NAME:tP,ERB_EXPR:XL,IS_ALLOWED_URI:QL,IS_SCRIPT_OR_DATA:JL,MUSTACHE_EXPR:qL,TMPLIT_EXPR:KL});const iP=1,aP=3,oP=7,sP=8,lP=9,cP=function(){return"undefined"==typeof window?null:window};var dP=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cP();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==lP||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:m}=t,f=c.prototype,g=NL(f,"cloneNode"),v=NL(f,"remove"),b=NL(f,"nextSibling"),y=NL(f,"childNodes"),x=NL(f,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,$="";const{implementation:k,createNodeIterator:S,createDocumentFragment:O,getElementsByTagName:C}=r,{importNode:T}=i;let D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof oL&&"function"==typeof x&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:j,ERB_EXPR:_,TMPLIT_EXPR:I,DATA_ATTR:E,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:A,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:B}=rP;let{IS_ALLOWED_URI:R}=rP,L=null;const P=EL({},[...BL,...RL,...LL,...zL,...HL]);let z=null;const F=EL({},[...WL,...VL,...YL,...UL]);let H=Object.seal(hL(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,V=null,Y=!0,U=!0,q=!1,X=!0,K=!1,G=!0,Z=!1,Q=!1,J=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1,ae=!0,oe=!1,se={},le=null;const ce=EL({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const ue=EL({},["audio","video","img","source","image","track"]);let pe=null;const he=EL({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ve=ge,be=!1,ye=null;const xe=EL({},[me,fe,ge],$L);let we=EL({},["mi","mo","mn","ms","mtext"]),$e=EL({},["annotation-xml"]);const ke=EL({},["title","style","font","a","script"]);let Se=null;const Oe=["application/xhtml+xml","text/html"];let Ce=null,Te=null;const De=r.createElement("form"),je=function(e){return e instanceof RegExp||e instanceof Function},_e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=AL(e),Se=-1===Oe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===Se?$L:wL,L=TL(e,"ALLOWED_TAGS")?EL({},e.ALLOWED_TAGS,Ce):P,z=TL(e,"ALLOWED_ATTR")?EL({},e.ALLOWED_ATTR,Ce):F,ye=TL(e,"ALLOWED_NAMESPACES")?EL({},e.ALLOWED_NAMESPACES,$L):xe,pe=TL(e,"ADD_URI_SAFE_ATTR")?EL(AL(he),e.ADD_URI_SAFE_ATTR,Ce):he,de=TL(e,"ADD_DATA_URI_TAGS")?EL(AL(ue),e.ADD_DATA_URI_TAGS,Ce):ue,le=TL(e,"FORBID_CONTENTS")?EL({},e.FORBID_CONTENTS,Ce):ce,W=TL(e,"FORBID_TAGS")?EL({},e.FORBID_TAGS,Ce):AL({}),V=TL(e,"FORBID_ATTR")?EL({},e.FORBID_ATTR,Ce):AL({}),se=!!TL(e,"USE_PROFILES")&&e.USE_PROFILES,Y=!1!==e.ALLOW_ARIA_ATTR,U=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,G=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||QL,ve=e.NAMESPACE||ge,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,$e=e.HTML_INTEGRATION_POINTS||$e,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(U=!1),te&&(ee=!0),se&&(L=EL({},HL),z=[],!0===se.html&&(EL(L,BL),EL(z,WL)),!0===se.svg&&(EL(L,RL),EL(z,VL),EL(z,UL)),!0===se.svgFilters&&(EL(L,LL),EL(z,VL),EL(z,UL)),!0===se.mathMl&&(EL(L,zL),EL(z,YL),EL(z,UL))),e.ADD_TAGS&&(L===P&&(L=AL(L)),EL(L,e.ADD_TAGS,Ce)),e.ADD_ATTR&&(z===F&&(z=AL(z)),EL(z,e.ADD_ATTR,Ce)),e.ADD_URI_SAFE_ATTR&&EL(pe,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(le===ce&&(le=AL(le)),EL(le,e.FORBID_CONTENTS,Ce)),ae&&(L["#text"]=!0),Z&&EL(L,["html","head","body"]),L.table&&(EL(L,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw jL('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw jL('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,$=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(m,a)),null!==w&&"string"==typeof $&&($=w.createHTML(""));uL&&uL(e),Te=e}},Ie=EL({},[...RL,...LL,...PL]),Ee=EL({},[...zL,...FL]),Me=function(e){yL(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){v(e)}},Ae=function(e,t){try{yL(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){yL(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Me(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{const t=kL(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Se&&ve===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=w?w.createHTML(e):e;if(ve===ge)try{t=(new h).parseFromString(i,Se)}catch(e){}if(!t||!t.documentElement){t=k.createDocument(ve,"template",null);try{t.documentElement.innerHTML=be?$:i}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),ve===ge?C.call(t,Z?"html":"body")[0]:Z?t.documentElement:a},Be=function(e){return S.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Le=function(e){return"function"==typeof l&&e instanceof l};function Pe(e,t,r){gL(e,(e=>{e.call(n,t,r,Te)}))}const ze=function(e){let t=null;if(Pe(D.beforeSanitizeElements,e,null),Re(e))return Me(e),!0;const r=Ce(e.nodeName);if(Pe(D.uponSanitizeElement,e,{tagName:r,allowedTags:L}),G&&e.hasChildNodes()&&!Le(e.firstElementChild)&&DL(/<[/\w!]/g,e.innerHTML)&&DL(/<[/\w!]/g,e.textContent))return Me(e),!0;if(e.nodeType===oP)return Me(e),!0;if(G&&e.nodeType===sP&&DL(/<[/\w]/g,e.data))return Me(e),!0;if(!L[r]||W[r]){if(!W[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&DL(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}if(ae&&!le[r]){const t=x(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=g(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,b(e))}}}return Me(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=wL(e.tagName),r=wL(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===fe?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||we[r]):Boolean(Ie[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===fe?"math"===n&&$e[r]:Boolean(Ee[n]):e.namespaceURI===ge?!(t.namespaceURI===fe&&!$e[r])&&!(t.namespaceURI===me&&!we[r])&&!Ee[n]&&(ke[n]||!Ie[n]):!("application/xhtml+xml"!==Se||!ye[e.namespaceURI]))}(e)?(Me(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!DL(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&e.nodeType===aP&&(t=e.textContent,gL([j,_,I],(e=>{t=SL(t,e," ")})),e.textContent!==t&&(yL(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe(D.afterSanitizeElements,e,null),!1):(Me(e),!0)},Fe=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in De))return!1;if(U&&!V[t]&&DL(E,t));else if(Y&&DL(M,t));else if(!z[t]||V[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&DL(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&DL(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&DL(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(DL(R,SL(n,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==OL(n,"data:")||!de[e]){if(q&&!DL(A,SL(n,N,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&kL(e,B)},We=function(e){Pe(D.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let i=t.length;for(;i--;){const a=t[i],{name:o,namespaceURI:s,value:l}=a,c=Ce(o),d=l;let u="value"===o?d:CL(d);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Pe(D.uponSanitizeAttribute,e,r),u=r.attrValue,!ie||"id"!==c&&"name"!==c||(Ae(o,e),u="user-content-"+u),G&&DL(/((--!?|])>)|<\/(style|title)/i,u)){Ae(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ae(o,e);continue}if(!X&&DL(/\/>/i,u)){Ae(o,e);continue}K&&gL([j,_,I],(e=>{u=SL(u,e," ")}));const p=Ce(e.nodeName);if(Fe(p,c,u)){if(w&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(p,c)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}if(u!==d)try{s?e.setAttributeNS(s,o,u):e.setAttribute(o,u),Re(e)?Me(e):bL(n.removed)}catch(t){Ae(o,e)}}else Ae(o,e)}Pe(D.afterSanitizeAttributes,e,null)},Ve=function e(t){let n=null;const r=Be(t);for(Pe(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Pe(D.uponSanitizeShadowNode,n,null),ze(n),We(n),n.content instanceof o&&e(n.content);Pe(D.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Le(e)){if("function"!=typeof e.toString)throw jL("toString is not a function");if("string"!=typeof(e=e.toString()))throw jL("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||_e(t),n.removed=[],"string"==typeof e&&(oe=!1),oe){if(e.nodeName){const t=Ce(e.nodeName);if(!L[t]||W[t])throw jL("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ne("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===iP&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!ee&&!K&&!Z&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(r=Ne(e),!r)return ee?null:ne?$:""}r&&J&&Me(r.firstChild);const d=Be(oe?e:r);for(;s=d.nextNode();)ze(s),We(s),s.content instanceof o&&Ve(s.content);if(oe)return e;if(ee){if(te)for(c=O.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(z.shadowroot||z.shadowrootmode)&&(c=T.call(i,c,!0)),c}let u=Z?r.outerHTML:r.innerHTML;return Z&&L["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&DL(tP,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),K&&gL([j,_,I],(e=>{u=SL(u,e," ")})),w&&ne?w.createHTML(u):u},n.setConfig=function(){_e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Te=null,Q=!1},n.isValidAttribute=function(e,t,n){Te||_e({});const r=Ce(e),i=Ce(t);return Fe(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&yL(D[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=vL(D[e],t);return-1===n?void 0:xL(D[e],n,1)[0]}return bL(D[e])},n.removeHooks=function(e){D[e]=[]},n.removeAllHooks=function(){D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const uP=t=>i.forwardRef(((n,r)=>e(nL,Object.assign({forwardedRef:r},n,{children:t.length>0?t.map(((t,n)=>{if("text"===t.type){const r=t.otherAttributes,i=dP.sanitize(t.content);return e("p",Object.assign({},r,{dangerouslySetInnerHTML:{__html:i}}),n)}{const r=t.otherAttributes;return e(aL.Link,Object.assign({},r,{children:t.content}),n)}})):(console.error("[NotificationBannerHOC] Empty data passed"),null)})))),pP=I.div`
5763
5771
  display: flex;
5764
5772
  flex-direction: column;
5765
- `,dP=I.div`
5773
+ `,hP=I.div`
5766
5774
  display: flex;
5767
5775
  flex-direction: row;
5768
5776
  align-self: center;
5769
5777
  gap: 0.5rem;
5770
- `,uP=I(sw)`
5778
+ `,mP=I(sw)`
5771
5779
  margin-bottom: 0rem !important;
5772
5780
  text-align: center;
5773
5781
  /* Chrome, Safari, Edge, Opera */
@@ -5786,11 +5794,11 @@ object-assign
5786
5794
  ${gl.MaxWidth.mobileM} {
5787
5795
  padding: 0 0.5rem;
5788
5796
  }
5789
- `,pP=I(oc.Small)`
5797
+ `,fP=I(oc.Small)`
5790
5798
  margin: 2rem 0rem;
5791
- `,hP=n=>{var{id:r,value:i=[],"data-testid":s,className:l,cooldownDuration:c,actionButtonProps:d,errorMessage:p,numOfInput:h,onChange:m,onCooldownStart:f,onCooldownEnd:g}=n,v=lt(n,["id","value","data-testid","className","cooldownDuration","actionButtonProps","errorMessage","numOfInput","onChange","onCooldownStart","onCooldownEnd"]);const b=null!=d?d:{},{disabled:y,onClick:x,styleType:w="secondary"}=b,$=lt(b,["disabled","onClick","styleType"]),k=a([]),S=a(m),[O,C]=o(new Array(h).fill("")),[T,D]=o(c),[j,_]=o(new Date);u((()=>{var e;return null===(e=null==k?void 0:k.current[0])||void 0===e||e.focus(),document.addEventListener("paste",M),()=>document.removeEventListener("paste",M)}),[]),u((()=>{if(0!==c){f&&f();const e=B();return()=>e()}}),[j]),u((()=>{S.current=m}),[m]),u((()=>{i.length===h&&C(i)}),[i]);const I=e=>t=>{var n;const r=t.target.value.replace(/[^0-9]/g,"");if(A(r)){const t=[...O];t[e]=r.substring(r.length-1),null===(n=k.current[e+1])||void 0===n||n.focus(),C(t),m&&m(t)}},E=e=>t=>{var n;const{key:r,code:i}=t;if("Backspace"===r||"Backspace"===i){const t=[...O];""!==t[e]?t[e]="":0!==e&&(t[e-1]="",null===(n=k.current[e-1])||void 0===n||n.focus()),C(t),m&&m(t)}},M=e=>{const t=e.clipboardData.getData("text"),n=t.split("");t&&A(t,h)?(C(n),S.current&&S.current(n)):e.preventDefault()},A=(e,t=1)=>!!e&&RegExp(`^[0-9]{${t}}$`).test(e),N=()=>{const e=Date.now(),t=1e3*c;return e<j.valueOf()+t},B=()=>{const e=setInterval((()=>{const t=Date.now(),n=1e3*c,r=Math.ceil((j.valueOf()+n-t)/1e3);D(r),r<=0&&(g&&g(),clearInterval(e))}),1e3);return()=>{clearInterval(e)}},R=(e,t,n)=>n?`${n}-${t}-${e+1}`:`${t}-${e+1}`;return t(cP,Object.assign({id:r,"data-testid":s,className:l},{children:[e(dP,{children:O.map(((t,n)=>e(uP,Object.assign({id:R(n,"otp-input",r),"data-testid":R(n,"otp-input",s),"aria-label":`Enter OTP character ${n+1}`,ref:e=>k.current[n]=e,type:"text",inputMode:"numeric",value:t,error:!!p,onChange:I(n),onKeyDown:E(n),autoComplete:"off"},v),n)))}),p&&e($x,{children:p}),e(pP,Object.assign({styleType:w,type:"button"},$,{onClick:e=>{C(new Array(h).fill("")),N()||(_(new Date),D(c)),x&&x(e)},disabled:y||N()},{children:$.children?$.children:"Resend OTP"+(T?` in ${T} second${T>1?"s":""}`:"")}))]}))},mP=I.nav`
5799
+ `,gP=n=>{var{id:r,value:i=[],"data-testid":s,className:l,cooldownDuration:c,actionButtonProps:d,errorMessage:p,numOfInput:h,onChange:m,onCooldownStart:f,onCooldownEnd:g}=n,v=lt(n,["id","value","data-testid","className","cooldownDuration","actionButtonProps","errorMessage","numOfInput","onChange","onCooldownStart","onCooldownEnd"]);const b=null!=d?d:{},{disabled:y,onClick:x,styleType:w="secondary"}=b,$=lt(b,["disabled","onClick","styleType"]),k=a([]),S=a(m),[O,C]=o(new Array(h).fill("")),[T,D]=o(c),[j,_]=o(new Date);u((()=>{var e;return null===(e=null==k?void 0:k.current[0])||void 0===e||e.focus(),document.addEventListener("paste",M),()=>document.removeEventListener("paste",M)}),[]),u((()=>{if(0!==c){f&&f();const e=B();return()=>e()}}),[j]),u((()=>{S.current=m}),[m]),u((()=>{i.length===h&&C(i)}),[i]);const I=e=>t=>{var n;const r=t.target.value.replace(/[^0-9]/g,"");if(A(r)){const t=[...O];t[e]=r.substring(r.length-1),null===(n=k.current[e+1])||void 0===n||n.focus(),C(t),m&&m(t)}},E=e=>t=>{var n;const{key:r,code:i}=t;if("Backspace"===r||"Backspace"===i){const t=[...O];""!==t[e]?t[e]="":0!==e&&(t[e-1]="",null===(n=k.current[e-1])||void 0===n||n.focus()),C(t),m&&m(t)}},M=e=>{const t=e.clipboardData.getData("text"),n=t.split("");t&&A(t,h)?(C(n),S.current&&S.current(n)):e.preventDefault()},A=(e,t=1)=>!!e&&RegExp(`^[0-9]{${t}}$`).test(e),N=()=>{const e=Date.now(),t=1e3*c;return e<j.valueOf()+t},B=()=>{const e=setInterval((()=>{const t=Date.now(),n=1e3*c,r=Math.ceil((j.valueOf()+n-t)/1e3);D(r),r<=0&&(g&&g(),clearInterval(e))}),1e3);return()=>{clearInterval(e)}},R=(e,t,n)=>n?`${n}-${t}-${e+1}`:`${t}-${e+1}`;return t(pP,Object.assign({id:r,"data-testid":s,className:l},{children:[e(hP,{children:O.map(((t,n)=>e(mP,Object.assign({id:R(n,"otp-input",r),"data-testid":R(n,"otp-input",s),"aria-label":`Enter OTP character ${n+1}`,ref:e=>k.current[n]=e,type:"text",inputMode:"numeric",value:t,error:!!p,onChange:I(n),onKeyDown:E(n),autoComplete:"off"},v),n)))}),p&&e($x,{children:p}),e(fP,Object.assign({styleType:w,type:"button"},$,{onClick:e=>{C(new Array(h).fill("")),N()||(_(new Date),D(c)),x&&x(e)},disabled:y||N()},{children:$.children?$.children:"Resend OTP"+(T?` in ${T} second${T>1?"s":""}`:"")}))]}))},vP=I.nav`
5792
5800
  display: flex;
5793
- `,fP=I.div`
5801
+ `,bP=I.div`
5794
5802
  display: flex;
5795
5803
  align-items: center;
5796
5804
  align-self: flex-start;
@@ -5799,11 +5807,11 @@ object-assign
5799
5807
  ${gl.MaxWidth.tablet} {
5800
5808
  align-self: center;
5801
5809
  }
5802
- `,gP=I.div`
5810
+ `,yP=I.div`
5803
5811
  display: inline-flex;
5804
5812
  padding: 0.125rem;
5805
5813
  align-items: center;
5806
- `,vP=I(yl)`
5814
+ `,xP=I(yl)`
5807
5815
  display: flex;
5808
5816
  padding: 0.625rem;
5809
5817
  justify-content: center;
@@ -5825,7 +5833,7 @@ object-assign
5825
5833
  outline: none;
5826
5834
  box-shadow: inset 0px 0px 4px 1px ${hl.Accent.Light[1]};
5827
5835
  }
5828
- `,bP=I(yl)`
5836
+ `,wP=I(yl)`
5829
5837
  display: flex;
5830
5838
  padding: 0.625rem;
5831
5839
  justify-content: center;
@@ -5859,7 +5867,7 @@ object-assign
5859
5867
  margin-right: 0rem;
5860
5868
  margin-left: 0rem;
5861
5869
  }
5862
- `,yP=I(oc.Default)`
5870
+ `,$P=I(oc.Default)`
5863
5871
  background: ${e=>e.$selected?hl.Primary:hl.Neutral[8]};
5864
5872
  border: 1px solid
5865
5873
  ${e=>e.$selected?hl.Primary:hl.Neutral[5]};
@@ -5937,7 +5945,7 @@ object-assign
5937
5945
  outline: none;
5938
5946
  box-shadow: inset 0px 0px 4px 1px ${hl.Accent.Light[1]};
5939
5947
  }
5940
- `;const xP=I.div`
5948
+ `;const kP=I.div`
5941
5949
  display: flex;
5942
5950
  cursor: pointer;
5943
5951
  min-width: 2.5rem;
@@ -5946,7 +5954,7 @@ object-assign
5946
5954
  justify-content: center;
5947
5955
  align-items: center;
5948
5956
  position: relative;
5949
- `,wP=I.div`
5957
+ `,SP=I.div`
5950
5958
  display: flex;
5951
5959
  justify-content: center;
5952
5960
  margin: 0.625rem;
@@ -5955,12 +5963,12 @@ object-assign
5955
5963
 
5956
5964
  display: flex;
5957
5965
  justify-content: center;
5958
- `,$P=I(El.Body)`
5966
+ `,OP=I(El.Body)`
5959
5967
  white-space: nowrap;
5960
- `,kP=I(El.Body)`
5968
+ `,CP=I(El.Body)`
5961
5969
  white-space: nowrap;
5962
5970
  margin: 0 1rem;
5963
- `,SP=I(sw)`
5971
+ `,TP=I(sw)`
5964
5972
  ${Il.getTextStyle("Body",400)};
5965
5973
  justify-content: center;
5966
5974
  width: 3.5rem;
@@ -5976,7 +5984,7 @@ object-assign
5976
5984
  ${Il.getTextStyle("XSmall",400)};
5977
5985
  }
5978
5986
  }
5979
- `,OP=I.div`
5987
+ `,DP=I.div`
5980
5988
  ${Il.getTextStyle("XSmall",400)};
5981
5989
 
5982
5990
  background-color: ${hl.Primary};
@@ -5989,10 +5997,10 @@ object-assign
5989
5997
  justify-content: center;
5990
5998
  margin-top: 6rem;
5991
5999
  padding: 0.25rem 0.75rem;
5992
- `,CP=I.div`
6000
+ `,jP=I.div`
5993
6001
  width: 9.2rem;
5994
6002
  margin-left: 0.5rem;
5995
- `,TP=i.forwardRef((({id:n,"data-testid":r,className:i,pageSize:a=10,totalItems:s,activePage:l,pageSizeOptions:c=DP,showFirstAndLastNav:d,showPageSizeChanger:p=!1,onPageChange:h,onPageSizeChange:m},f)=>{const g=Fc.useMediaQuery({maxWidth:ml.mobileL}),v=c,[b,y]=o(!1),[x,w]=o(!1),[$,k]=o(""),[S,O]=o(v&&v.length>=1?v[0]:null),[C,T]=o(!g&&p&&S?S.value:a),D=Math.ceil(s/C),j=1===l,_=l===D,I=l>1?()=>P(1):void 0,E=l<D?()=>P(D):void 0,M=l>1?()=>P(l-1):void 0,A=l<D?()=>P(parseInt(l.toString())+1):void 0,N=e=>e?()=>U():()=>V(),B=e=>e?()=>q():()=>Y();u((()=>{l&&R(l)}),[l]),u((()=>{var e;T(a),O(null!==(e=v.find((e=>e.value===a)))&&void 0!==e?e:null)}),[a]);const R=e=>{k(e.toString())},L=()=>{y(!1),w(!1)},P=e=>{h&&(h(e),R(e))},z=()=>{const e=Math.min(D,l+5);P(e),R(e),y(!0),w(!1)},F=()=>{const e=Math.max(1,l-5);P(e),R(e),y(!1),w(!0)},H=e=>{const t=e.target.value;if(void 0===t||0===t.length)k("");else if(/^[0-9]+$/.test(t)){const e=parseInt(t.replace(/[^0-9]/g,""));R(Math.max(1,Math.min(D,e)))}else k(t.replace(/[^0-9]/g,""))},W=e=>{e.preventDefault(),$&&h(parseInt($))},V=()=>{y(!0)},Y=()=>{y(!1)},U=()=>{w(!0)},q=()=>{w(!1)},X=(n,r,i)=>t(xP,{children:[e(vP,Object.assign({focusHighlight:!1,focusOutline:"browser","aria-label":n?"Previous 5 pages":"Next 5 pages",onMouseOver:N(n),onMouseOut:B(n),onFocus:N(n),onBlur:B(n),onClick:n?F:z},{children:e(n&&x?tt:r&&b?nt:at,{"aria-hidden":!0})})),n&&x&&e(OP,{children:"Previous 5 pages"}),r&&b&&e(OP,{children:"Next 5 pages"})]},i);return t(mP,Object.assign({className:i,ref:f,id:n||"pagination-wrapper","data-testid":r||"pagination","aria-label":"Pagination"},{children:[e(fP,{children:t(gP,{children:[d&&e(bP,Object.assign({onClick:I,disabled:j,focusHighlight:!1,$position:"left","aria-label":"First page",focusOutline:"browser"},{children:e(rt,{"aria-hidden":!0})})),e(bP,Object.assign({onClick:M,disabled:j,focusHighlight:!1,$position:"left","aria-label":"Previous page",focusOutline:"browser"},{children:e(fe,{"aria-hidden":!0})})),g?t(wP,{children:[e("form",Object.assign({onSubmit:W},{children:e(SP,{value:$,onChange:H,autoComplete:"off",type:"numeric",id:(n||"pagination")+"-input","data-testid":(r||"pagination")+"-input"})})),e(kP,{children:"/"}),e($P,{children:D})]}):[...Array(D)].map(((t,n)=>{const r=n+1,i=D-5,a=l===r;if(D<=7)return e(yP,Object.assign({onClick:()=>P(r),$selected:a,"aria-label":"Page "+r,"aria-current":!!a&&"page",onMouseOver:L,onFocus:L},{children:r}),r);const o=l+1>5&&2===r,s=l-1<=i&&r===D-1-1;return o||s?X(o,s,r):r<=5&&l+1<=5||r<=1||r===l||r<=l+1&&r>=l-1-1||r>i&&l-1>i||r>D-1?e(yP,Object.assign({onClick:()=>P(r),$selected:a,"aria-label":"Page "+r,"aria-current":!!a&&"page",onMouseOver:L,onFocus:L},{children:r}),r):null})),e(bP,Object.assign({onClick:A,disabled:_,focusHighlight:!1,$position:"right","aria-label":"Next page",focusOutline:"browser"},{children:e(me,{"aria-hidden":!0})})),d&&e(bP,Object.assign({onClick:E,disabled:_,focusHighlight:!1,$position:"right","aria-label":"Last page",focusOutline:"browser"},{children:e(it,{"aria-hidden":!0})}))]})}),p&&!g&&e(CP,{children:e(EI,{options:v,valueExtractor:e=>e.value,listExtractor:e=>e.label,displayValueExtractor:e=>e.label,selectedOption:S,onSelectOption:e=>{O(e);const t=e.value,n=Math.ceil(s/t);T(t);m&&m(l>=n?n:l,t)}})})]}))})),DP=[{value:10,label:"10 / page"},{value:20,label:"20 / page"},{value:30,label:"30 / page"}],jP=I.div`
6003
+ `,_P=i.forwardRef((({id:n,"data-testid":r,className:i,pageSize:a=10,totalItems:s,activePage:l,pageSizeOptions:c=IP,showFirstAndLastNav:d,showPageSizeChanger:p=!1,onPageChange:h,onPageSizeChange:m},f)=>{const g=Fc.useMediaQuery({maxWidth:ml.mobileL}),v=c,[b,y]=o(!1),[x,w]=o(!1),[$,k]=o(""),[S,O]=o(v&&v.length>=1?v[0]:null),[C,T]=o(!g&&p&&S?S.value:a),D=Math.ceil(s/C),j=1===l,_=l===D,I=l>1?()=>P(1):void 0,E=l<D?()=>P(D):void 0,M=l>1?()=>P(l-1):void 0,A=l<D?()=>P(parseInt(l.toString())+1):void 0,N=e=>e?()=>U():()=>V(),B=e=>e?()=>q():()=>Y();u((()=>{l&&R(l)}),[l]),u((()=>{var e;T(a),O(null!==(e=v.find((e=>e.value===a)))&&void 0!==e?e:null)}),[a]);const R=e=>{k(e.toString())},L=()=>{y(!1),w(!1)},P=e=>{h&&(h(e),R(e))},z=()=>{const e=Math.min(D,l+5);P(e),R(e),y(!0),w(!1)},F=()=>{const e=Math.max(1,l-5);P(e),R(e),y(!1),w(!0)},H=e=>{const t=e.target.value;if(void 0===t||0===t.length)k("");else if(/^[0-9]+$/.test(t)){const e=parseInt(t.replace(/[^0-9]/g,""));R(Math.max(1,Math.min(D,e)))}else k(t.replace(/[^0-9]/g,""))},W=e=>{e.preventDefault(),$&&h(parseInt($))},V=()=>{y(!0)},Y=()=>{y(!1)},U=()=>{w(!0)},q=()=>{w(!1)},X=(n,r,i)=>t(kP,{children:[e(xP,Object.assign({focusHighlight:!1,focusOutline:"browser","aria-label":n?"Previous 5 pages":"Next 5 pages",onMouseOver:N(n),onMouseOut:B(n),onFocus:N(n),onBlur:B(n),onClick:n?F:z},{children:e(n&&x?tt:r&&b?nt:at,{"aria-hidden":!0})})),n&&x&&e(DP,{children:"Previous 5 pages"}),r&&b&&e(DP,{children:"Next 5 pages"})]},i);return t(vP,Object.assign({className:i,ref:f,id:n||"pagination-wrapper","data-testid":r||"pagination","aria-label":"Pagination"},{children:[e(bP,{children:t(yP,{children:[d&&e(wP,Object.assign({onClick:I,disabled:j,focusHighlight:!1,$position:"left","aria-label":"First page",focusOutline:"browser"},{children:e(rt,{"aria-hidden":!0})})),e(wP,Object.assign({onClick:M,disabled:j,focusHighlight:!1,$position:"left","aria-label":"Previous page",focusOutline:"browser"},{children:e(fe,{"aria-hidden":!0})})),g?t(SP,{children:[e("form",Object.assign({onSubmit:W},{children:e(TP,{value:$,onChange:H,autoComplete:"off",type:"numeric",id:(n||"pagination")+"-input","data-testid":(r||"pagination")+"-input"})})),e(CP,{children:"/"}),e(OP,{children:D})]}):[...Array(D)].map(((t,n)=>{const r=n+1,i=D-5,a=l===r;if(D<=7)return e($P,Object.assign({onClick:()=>P(r),$selected:a,"aria-label":"Page "+r,"aria-current":!!a&&"page",onMouseOver:L,onFocus:L},{children:r}),r);const o=l+1>5&&2===r,s=l-1<=i&&r===D-1-1;return o||s?X(o,s,r):r<=5&&l+1<=5||r<=1||r===l||r<=l+1&&r>=l-1-1||r>i&&l-1>i||r>D-1?e($P,Object.assign({onClick:()=>P(r),$selected:a,"aria-label":"Page "+r,"aria-current":!!a&&"page",onMouseOver:L,onFocus:L},{children:r}),r):null})),e(wP,Object.assign({onClick:A,disabled:_,focusHighlight:!1,$position:"right","aria-label":"Next page",focusOutline:"browser"},{children:e(me,{"aria-hidden":!0})})),d&&e(wP,Object.assign({onClick:E,disabled:_,focusHighlight:!1,$position:"right","aria-label":"Last page",focusOutline:"browser"},{children:e(it,{"aria-hidden":!0})}))]})}),p&&!g&&e(jP,{children:e(EI,{options:v,valueExtractor:e=>e.value,listExtractor:e=>e.label,displayValueExtractor:e=>e.label,selectedOption:S,onSelectOption:e=>{O(e);const t=e.value,n=Math.ceil(s/t);T(t);m&&m(l>=n?n:l,t)}})})]}))})),IP=[{value:10,label:"10 / page"},{value:20,label:"20 / page"},{value:30,label:"30 / page"}],EP=I.div`
5996
6004
  border-radius: 1rem;
5997
6005
  padding: 0.125rem 0.5rem;
5998
6006
  width: fit-content;
@@ -6011,13 +6019,13 @@ object-assign
6011
6019
  border: 1px solid ${n};
6012
6020
  color: ${r};
6013
6021
  `}}
6014
- `,_P=I.div`
6022
+ `,MP=I.div`
6015
6023
  overflow: hidden;
6016
6024
  display: -webkit-box;
6017
6025
  -webkit-box-orient: vertical;
6018
6026
  -webkit-line-clamp: 2;
6019
6027
  text-align: left;
6020
- `,IP=n=>{var{type:r,colorType:i="black",children:a,icon:o}=n,s=lt(n,["type","colorType","children","icon"]);return t(jP,Object.assign({$type:r,$color:i},s,{children:[o,e(_P,{children:a})]}))},EP=I.div`
6028
+ `,AP=n=>{var{type:r,colorType:i="black",children:a,icon:o}=n,s=lt(n,["type","colorType","children","icon"]);return t(EP,Object.assign({$type:r,$color:i},s,{children:[o,e(MP,{children:a})]}))},NP=I.div`
6021
6029
  max-width: 30rem;
6022
6030
  pointer-events: auto;
6023
6031
  position: absolute;
@@ -6074,23 +6082,23 @@ object-assign
6074
6082
  ${gl.MaxWidth.mobileL} {
6075
6083
  display: none;
6076
6084
  }
6077
- `,MP=I(Wm)`
6085
+ `,BP=I(Wm)`
6078
6086
  padding: 3.5rem 1.25rem 2.5rem;
6079
- `,AP=I.div`
6087
+ `,RP=I.div`
6080
6088
  position: relative;
6081
6089
  width: fit-content;
6082
- `,NP=I.button`
6090
+ `,LP=I.button`
6083
6091
  cursor: pointer;
6084
6092
  background: none;
6085
6093
  border: none;
6086
6094
  padding: 0;
6087
- `,BP=I.div`
6095
+ `,PP=I.div`
6088
6096
  overflow-y: scroll;
6089
6097
 
6090
6098
  ::-webkit-scrollbar {
6091
6099
  display: none; /* Chrome/Safari/Webkit */
6092
6100
  }
6093
- `,RP=r=>{var{children:i,visible:s,onMobileClose:l}=r,c=lt(r,["children","visible","onMobileClose"]);const d=c["data-testid"]||"popover",[p,h]=o("none"),m=a(null),f=Fc.useMediaQuery({maxWidth:ml.mobileL}),g=a(p);u((()=>(y(),window.addEventListener("resize",gp(v,300)),()=>{window.removeEventListener("resize",gp(v,300))})),[]);const v=()=>{y()},b=()=>{l&&l()},y=()=>{const e=x();var t;e&&(t=e,g.current=t,h(t))},x=()=>{if(m.current){const e=m.current.getBoundingClientRect(),t=24,n=e.y<t,r=window.innerWidth-t;return e.x<t?n?"top-left":"left":e.x+e.width>r?n?"top-right":"right":("top-left"===g.current||"left"===g.current)&&e.x-e.width/2>t||("top-right"===g.current||"right"===g.current)&&e.x+2*e.width<r?n?"top-center":"none":n?"top-center":void 0}},w=()=>"string"==typeof i?e(El.BodySmall,{children:i}):i;return t(n,{children:[e(EP,Object.assign({ref:m,"data-testid":d,$visible:s,$offset:p},c,{children:e(qu,{children:w()})})),f&&e(zm,Object.assign({show:s,onOverlayClick:b},{children:e(MP,Object.assign({onClose:b},{children:e(BP,{children:w()})}))}))]})},LP=(n,r)=>i=>{const{onPopoverAppear:s,onPopoverDismiss:l}=i,c=lt(i,["onPopoverAppear","onPopoverDismiss"]),d=r.trigger||"click",p=c,[h,m]=o(!1),f=a(),g=Fc.useMediaQuery({maxWidth:ml.mobileL});u((()=>{if(!g)return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}}),[h]);const v=e=>{f&&!f.current.contains(e.target)&&(h&&m(!1),l&&l())};return t(AP,Object.assign({id:"popover-hoc-wrapper",ref:f},{children:[e(NP,Object.assign({id:`popover-hoc-trigger${r["data-testid"]&&`-${r["data-testid"]}`}`,type:"button",onClick:e=>{e.preventDefault(),("click"===d||g)&&(m(!h),!h&&s&&s(),h&&l&&l())},onMouseEnter:()=>{"hover"!==d||g||m(!0)},onMouseLeave:()=>{"hover"===d&&h&&!g&&m(!1)},"aria-label":"popover-button"},{children:e(n,Object.assign({},p))})),e(RP,Object.assign({visible:h,id:r.id,"data-testid":r["data-testid"],onMobileClose:()=>{m(!1)}},{children:r.content}))]}))},PP=I.div`
6101
+ `,zP=r=>{var{children:i,visible:s,onMobileClose:l}=r,c=lt(r,["children","visible","onMobileClose"]);const d=c["data-testid"]||"popover",[p,h]=o("none"),m=a(null),f=Fc.useMediaQuery({maxWidth:ml.mobileL}),g=a(p);u((()=>(y(),window.addEventListener("resize",gp(v,300)),()=>{window.removeEventListener("resize",gp(v,300))})),[]);const v=()=>{y()},b=()=>{l&&l()},y=()=>{const e=x();var t;e&&(t=e,g.current=t,h(t))},x=()=>{if(m.current){const e=m.current.getBoundingClientRect(),t=24,n=e.y<t,r=window.innerWidth-t;return e.x<t?n?"top-left":"left":e.x+e.width>r?n?"top-right":"right":("top-left"===g.current||"left"===g.current)&&e.x-e.width/2>t||("top-right"===g.current||"right"===g.current)&&e.x+2*e.width<r?n?"top-center":"none":n?"top-center":void 0}},w=()=>"string"==typeof i?e(El.BodySmall,{children:i}):i;return t(n,{children:[e(NP,Object.assign({ref:m,"data-testid":d,$visible:s,$offset:p},c,{children:e(qu,{children:w()})})),f&&e(zm,Object.assign({show:s,onOverlayClick:b},{children:e(BP,Object.assign({onClose:b},{children:e(PP,{children:w()})}))}))]})},FP=(n,r)=>i=>{const{onPopoverAppear:s,onPopoverDismiss:l}=i,c=lt(i,["onPopoverAppear","onPopoverDismiss"]),d=r.trigger||"click",p=c,[h,m]=o(!1),f=a(),g=Fc.useMediaQuery({maxWidth:ml.mobileL});u((()=>{if(!g)return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}}),[h]);const v=e=>{f&&!f.current.contains(e.target)&&(h&&m(!1),l&&l())};return t(RP,Object.assign({id:"popover-hoc-wrapper",ref:f},{children:[e(LP,Object.assign({id:`popover-hoc-trigger${r["data-testid"]&&`-${r["data-testid"]}`}`,type:"button",onClick:e=>{e.preventDefault(),("click"===d||g)&&(m(!h),!h&&s&&s(),h&&l&&l())},onMouseEnter:()=>{"hover"!==d||g||m(!0)},onMouseLeave:()=>{"hover"===d&&h&&!g&&m(!1)},"aria-label":"popover-button"},{children:e(n,Object.assign({},p))})),e(zP,Object.assign({visible:h,id:r.id,"data-testid":r["data-testid"],onMobileClose:()=>{m(!1)}},{children:r.content}))]}))},HP=I.div`
6094
6102
  position: relative;
6095
6103
  width: 100%;
6096
6104
 
@@ -6103,23 +6111,23 @@ object-assign
6103
6111
  ${gl.MaxWidth.tablet} {
6104
6112
  margin: 1rem 0;
6105
6113
  }
6106
- `,zP=I.div`
6114
+ `,WP=I.div`
6107
6115
  display: flex;
6108
6116
  flex-basis: 0;
6109
6117
  justify-content: space-between;
6110
6118
  width: 100%;
6111
- `,FP=I.div`
6119
+ `,VP=I.div`
6112
6120
  height: 0.25rem;
6113
6121
  margin-bottom: 0.5rem;
6114
6122
  border-radius: 0.25rem;
6115
6123
  ${e=>{const{highlighted:t}=e;return`\n background-color: ${(t?hl.Accent.Light[1]:hl.Neutral[6])(e)};\n `}};
6116
- `,HP=I(El.BodySmall)`
6124
+ `,YP=I(El.BodySmall)`
6117
6125
  overflow-wrap: anywhere;
6118
6126
  ${e=>{const{highlighted:t}=e;return`color: ${(t?hl.Primary:hl.Neutral[3])(e)};`}};
6119
- `,WP=I(El.BodySmall)`
6127
+ `,UP=I(El.BodySmall)`
6120
6128
  overflow-wrap: anywhere;
6121
6129
  color: ${hl.Neutral[1]};
6122
- `,VP=I.div`
6130
+ `,qP=I.div`
6123
6131
  display: flex;
6124
6132
  flex-direction: column;
6125
6133
  flex: 1;
@@ -6127,7 +6135,7 @@ object-assign
6127
6135
  &:not(:last-child) {
6128
6136
  margin-right: ${"0.5rem"};
6129
6137
  }
6130
- `;var YP=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),UP=Xs,qP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,XP=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var KP=function(e){return(e=UP(e))&&e.replace(qP,YP).replace(XP,"")},GP=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ZP=function(e){return e.match(GP)||[]},QP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var JP=function(e){return QP.test(e)},ez="\\ud800-\\udfff",tz="\\u2700-\\u27bf",nz="a-z\\xdf-\\xf6\\xf8-\\xff",rz="A-Z\\xc0-\\xd6\\xd8-\\xde",iz="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",az="["+iz+"]",oz="\\d+",sz="["+tz+"]",lz="["+nz+"]",cz="[^"+ez+iz+oz+tz+nz+rz+"]",dz="(?:\\ud83c[\\udde6-\\uddff]){2}",uz="[\\ud800-\\udbff][\\udc00-\\udfff]",pz="["+rz+"]",hz="(?:"+lz+"|"+cz+")",mz="(?:"+pz+"|"+cz+")",fz="(?:['’](?:d|ll|m|re|s|t|ve))?",gz="(?:['’](?:D|LL|M|RE|S|T|VE))?",vz="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",bz="[\\ufe0e\\ufe0f]?",yz=bz+vz+("(?:\\u200d(?:"+["[^"+ez+"]",dz,uz].join("|")+")"+bz+vz+")*"),xz="(?:"+[sz,dz,uz].join("|")+")"+yz,wz=RegExp([pz+"?"+lz+"+"+fz+"(?="+[az,pz,"$"].join("|")+")",mz+"+"+gz+"(?="+[az,pz+hz,"$"].join("|")+")",pz+"?"+hz+"+"+fz,pz+"+"+gz,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oz,xz].join("|"),"g");var $z=ZP,kz=JP,Sz=Xs,Oz=function(e){return e.match(wz)||[]};var Cz=cI,Tz=KP,Dz=function(e,t,n){return e=Sz(e),void 0===(t=n?void 0:t)?kz(e)?Oz(e):$z(e):e.match(t)||[]},jz=RegExp("['’]","g");var _z=Pa(function(e){return function(t){return Cz(Dz(Tz(t).replace(jz,"")),e,"")}}((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})));const Iz=n=>{var{steps:r,currentIndex:i,displayExtractor:a,fadeColor:o,fadePosition:s="both"}=n,l=lt(n,["steps","currentIndex","displayExtractor","fadeColor","fadePosition"]);const c=Fc.useMediaQuery({maxWidth:vl.tablet}),d=e=>a?a(e):e.toString(),u=(e,t)=>_z(`${((e,t)=>e<t?"Completed step":e===t?"Current step":"Uncompleted step")(e,t)} ${e}`);if(!r.length)return null;return t(PP,Object.assign({},l,{children:[e(zP,{children:r.map(((t,n)=>{const r=n<=i;return e(VP,Object.assign({id:u(n,i)},{children:e(FP,{highlighted:r})}),n)}))}),e(zP,{children:c?t(VP,Object.assign({id:u(i,i)},{children:[t(WP,Object.assign({weight:"semibold",id:`${u(i,i)}-counter`},{children:["Step ",i+1," of ",r.length]})),e(WP,Object.assign({weight:"regular",id:`${u(i,i)}-title`},{children:d(r[i])}))]}),i):r.map(((t,n)=>{const r=n<=i,a=n===i,o=a?"bold":"regular";return e(VP,Object.assign({id:`${u(n,i)}-title`},{children:e(HP,Object.assign({highlighted:r,weight:o,"aria-current":a},{children:d(t)}))}),n)}))})]}))},Ez=I.div`
6138
+ `;var XP=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),KP=Xs,GP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ZP=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var QP=function(e){return(e=KP(e))&&e.replace(GP,XP).replace(ZP,"")},JP=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ez=function(e){return e.match(JP)||[]},tz=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var nz=function(e){return tz.test(e)},rz="\\ud800-\\udfff",iz="\\u2700-\\u27bf",az="a-z\\xdf-\\xf6\\xf8-\\xff",oz="A-Z\\xc0-\\xd6\\xd8-\\xde",sz="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lz="["+sz+"]",cz="\\d+",dz="["+iz+"]",uz="["+az+"]",pz="[^"+rz+sz+cz+iz+az+oz+"]",hz="(?:\\ud83c[\\udde6-\\uddff]){2}",mz="[\\ud800-\\udbff][\\udc00-\\udfff]",fz="["+oz+"]",gz="(?:"+uz+"|"+pz+")",vz="(?:"+fz+"|"+pz+")",bz="(?:['’](?:d|ll|m|re|s|t|ve))?",yz="(?:['’](?:D|LL|M|RE|S|T|VE))?",xz="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",wz="[\\ufe0e\\ufe0f]?",$z=wz+xz+("(?:\\u200d(?:"+["[^"+rz+"]",hz,mz].join("|")+")"+wz+xz+")*"),kz="(?:"+[dz,hz,mz].join("|")+")"+$z,Sz=RegExp([fz+"?"+uz+"+"+bz+"(?="+[lz,fz,"$"].join("|")+")",vz+"+"+yz+"(?="+[lz,fz+gz,"$"].join("|")+")",fz+"?"+gz+"+"+bz,fz+"+"+yz,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cz,kz].join("|"),"g");var Oz=ez,Cz=nz,Tz=Xs,Dz=function(e){return e.match(Sz)||[]};var jz=cI,_z=QP,Iz=function(e,t,n){return e=Tz(e),void 0===(t=n?void 0:t)?Cz(e)?Dz(e):Oz(e):e.match(t)||[]},Ez=RegExp("['’]","g");var Mz=Pa(function(e){return function(t){return jz(Iz(_z(t).replace(Ez,"")),e,"")}}((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})));const Az=n=>{var{steps:r,currentIndex:i,displayExtractor:a,fadeColor:o,fadePosition:s="both"}=n,l=lt(n,["steps","currentIndex","displayExtractor","fadeColor","fadePosition"]);const c=Fc.useMediaQuery({maxWidth:vl.tablet}),d=e=>a?a(e):e.toString(),u=(e,t)=>Mz(`${((e,t)=>e<t?"Completed step":e===t?"Current step":"Uncompleted step")(e,t)} ${e}`);if(!r.length)return null;return t(HP,Object.assign({},l,{children:[e(WP,{children:r.map(((t,n)=>{const r=n<=i;return e(qP,Object.assign({id:u(n,i)},{children:e(VP,{highlighted:r})}),n)}))}),e(WP,{children:c?t(qP,Object.assign({id:u(i,i)},{children:[t(UP,Object.assign({weight:"semibold",id:`${u(i,i)}-counter`},{children:["Step ",i+1," of ",r.length]})),e(UP,Object.assign({weight:"regular",id:`${u(i,i)}-title`},{children:d(r[i])}))]}),i):r.map(((t,n)=>{const r=n<=i,a=n===i,o=a?"bold":"regular";return e(qP,Object.assign({id:`${u(n,i)}-title`},{children:e(YP,Object.assign({highlighted:r,weight:o,"aria-current":a},{children:d(t)}))}),n)}))})]}))},Nz=I.div`
6131
6139
  display: flex;
6132
6140
  justify-content: center;
6133
6141
  align-items: center;
@@ -6138,7 +6146,7 @@ object-assign
6138
6146
  border: 2px solid ${hl.Accent.Light[2]};
6139
6147
 
6140
6148
  ${e=>{if(e.$disabled)return`\n\t\t\t\tborder: 2px solid ${hl.Neutral[4](e)};\n\t\t\t`}}
6141
- `,Mz=I.input`
6149
+ `,Bz=I.input`
6142
6150
  position: absolute;
6143
6151
  height: 100%;
6144
6152
  width: 100%;
@@ -6149,7 +6157,7 @@ object-assign
6149
6157
  appearance: none;
6150
6158
  background: transparent;
6151
6159
  border: none;
6152
- `,Az=I.div`
6160
+ `,Rz=I.div`
6153
6161
  height: 0.75rem;
6154
6162
  width: 0.75rem;
6155
6163
  opacity: ${e=>e.$selected?1:0};
@@ -6157,11 +6165,11 @@ object-assign
6157
6165
  background: ${e=>e.$disabled?hl.Neutral[4](e):hl.Primary(e)};
6158
6166
  border-radius: 50%;
6159
6167
  border: 1px solid transparent;
6160
- `,Nz=n=>{var{className:r,checked:i,disabled:a,onChange:o}=n,s=lt(n,["className","checked","disabled","onChange"]);return t(Ez,Object.assign({$selected:i,$disabled:a,className:r,"data-testid":"radio-button"},{children:[e(Mz,Object.assign({type:"radio","data-testid":"radio-input",onChange:e=>{a||null==o||o(e)},checked:i,disabled:a},s)),e(Az,{id:"checkmark","data-testid":"checkmark",$disabled:a,$selected:i})]}))},Bz=I.div`
6168
+ `,Lz=n=>{var{className:r,checked:i,disabled:a,onChange:o}=n,s=lt(n,["className","checked","disabled","onChange"]);return t(Nz,Object.assign({$selected:i,$disabled:a,className:r,"data-testid":"radio-button"},{children:[e(Bz,Object.assign({type:"radio","data-testid":"radio-input",onChange:e=>{a||null==o||o(e)},checked:i,disabled:a},s)),e(Rz,{id:"checkmark","data-testid":"checkmark",$disabled:a,$selected:i})]}))},Pz=I.div`
6161
6169
  display: flex;
6162
6170
  position: ${e=>e.$fixed?"fixed":"relative"};
6163
6171
  width: fit-content;
6164
- `,Rz=I.nav`
6172
+ `,zz=I.nav`
6165
6173
  display: flex;
6166
6174
  flex-direction: column;
6167
6175
  align-items: center;
@@ -6170,7 +6178,7 @@ object-assign
6170
6178
  border: 1px solid ${hl.Neutral[5]};
6171
6179
  background-color: ${hl.Accent.Light[6]};
6172
6180
  padding: 0.5rem 0 1.5rem 0;
6173
- `,Lz=I(Rz)`
6181
+ `,Fz=I(zz)`
6174
6182
  height: 100vh;
6175
6183
  left: 0;
6176
6184
  top: 0;
@@ -6178,13 +6186,13 @@ object-assign
6178
6186
  display: none;
6179
6187
  visibility: hidden;
6180
6188
  }
6181
- `,Pz=I(Rz)`
6189
+ `,Hz=I(zz)`
6182
6190
  display: none;
6183
6191
  visibility: hidden;
6184
6192
  ${gl.MaxWidth.mobileL} {
6185
6193
  display: none; // NOTE: Since mobile view not supported yet
6186
6194
  }
6187
- `,zz=I(Ra.ul)`
6195
+ `,Wz=I(Ra.ul)`
6188
6196
  display: flex;
6189
6197
  flex-direction: column;
6190
6198
  overflow: auto;
@@ -6203,9 +6211,9 @@ object-assign
6203
6211
  border: 0;
6204
6212
  padding: 0;
6205
6213
  `};
6206
- `,Fz=I.li`
6214
+ `,Vz=I.li`
6207
6215
  width: 100%;
6208
- `,Hz=I(oc.Default)`
6216
+ `,Yz=I(oc.Default)`
6209
6217
  width: 100%;
6210
6218
  height: unset;
6211
6219
 
@@ -6257,23 +6265,23 @@ object-assign
6257
6265
  }
6258
6266
  }
6259
6267
  `}
6260
- `,Wz=I.div`
6268
+ `,Uz=I.div`
6261
6269
  height: 1.75rem;
6262
6270
  width: 3.25rem;
6263
6271
  border-radius: 0.5rem;
6264
6272
  margin-bottom: 0.25rem;
6265
- `,Vz=I(El.XSmall)``,Yz=$({selectedItem:void 0,currentItem:void 0,previouslySelectedItemId:void 0,setCurrentItem:()=>{},setPreviouslySelectedItemId:()=>{},setSelectedItem:()=>{}}),Uz=I.ul`
6273
+ `,qz=I(El.XSmall)``,Xz=$({selectedItem:void 0,currentItem:void 0,previouslySelectedItemId:void 0,setCurrentItem:()=>{},setPreviouslySelectedItemId:()=>{},setSelectedItem:()=>{}}),Kz=I.ul`
6266
6274
  display: flex;
6267
6275
  flex-direction: column;
6268
6276
  align-items: center;
6269
6277
  width: 100%;
6270
6278
  list-style: none;
6271
- `,qz=I.li`
6279
+ `,Gz=I.li`
6272
6280
  margin: 0.5rem 0;
6273
6281
  width: 6.5rem;
6274
6282
  height: 1px;
6275
6283
  background-color: ${hl.Neutral[5]};
6276
- `,Xz=I(Ra.li)``,Kz=I(oc.Default)`
6284
+ `,Zz=I(Ra.li)``,Qz=I(oc.Default)`
6277
6285
  justify-content: flex-start;
6278
6286
  width: 100%;
6279
6287
  height: unset;
@@ -6304,26 +6312,26 @@ object-assign
6304
6312
  ${e=>e.$highlight&&E`
6305
6313
  background-color: ${hl.Accent.Light[4]};
6306
6314
  `}
6307
- `,Gz=I(Ra.div)`
6315
+ `,Jz=I(Ra.div)`
6308
6316
  margin: 0.125rem 0 0.125rem 0.5rem;
6309
6317
  overflow: hidden;
6310
- `,Zz=I.div`
6318
+ `,eF=I.div`
6311
6319
  align-self: center;
6312
6320
  padding-left: 0.5rem;
6313
- `,Qz=I(_)`
6321
+ `,tF=I(_)`
6314
6322
  display: flex;
6315
6323
  flex-direction: column;
6316
6324
  justify-content: center;
6317
6325
  color: ${hl.Neutral[3]};
6318
6326
  transform: rotate(${e=>e.$expanded?0:180}deg);
6319
6327
  transition: transform 300ms ease-in-out;
6320
- `,Jz=I.div`
6328
+ `,nF=I.div`
6321
6329
  overflow: hidden;
6322
6330
  display: -webkit-box;
6323
6331
  -webkit-line-clamp: 2;
6324
6332
  -webkit-box-orient: vertical;
6325
6333
  text-align: initial;
6326
- `,eF=I(Ra.ul)``,tF=I.li``,nF=I(oc.Default)`
6334
+ `,rF=I(Ra.ul)``,iF=I.li``,aF=I(oc.Default)`
6327
6335
  width: 100%;
6328
6336
  height: unset;
6329
6337
  justify-content: flex-start;
@@ -6349,7 +6357,7 @@ object-assign
6349
6357
  color: ${hl.Primary} !important;
6350
6358
  }
6351
6359
  }
6352
- `,rF=Object.assign((n=>{var{fixed:r=!0,children:i}=n,s=lt(n,["fixed","children"]);const l=a(null),[c,d]=o(void 0),[p,h]=o(void 0),[m,f]=o(void 0),[v,b]=o(!1),y=g((()=>({currentItem:c,selectedItem:p,previouslySelectedItemId:m,setCurrentItem:d,setSelectedItem:h,setPreviouslySelectedItemId:f})),[c,p,m,d,h,f]),x=ya({width:v?240:0,borderRightWidth:v?1:0,borderTopWidth:v?1:0,borderBottomWidth:v?1:0,borderLeftWidth:0});return Cd("click",(e=>{l.current&&!l.current.contains(e.target)&&(h({itemId:m||(p?p.itemId:void 0),content:void 0}),f(void 0),d(void 0))}),"window",!0),u((()=>{b(p&&!!p.content||c&&!!c.content)}),[c,p]),e(Yz.Provider,Object.assign({value:y},{children:t(Bz,Object.assign({$fixed:r},s,{ref:l,onMouseLeave:()=>{d(void 0)}},{children:[e(Lz,{children:i}),e(zz,Object.assign({style:x,$showDrawer:v,"data-testid":"sidenav-drawer"},{children:c&&c.content||p&&p.content})),e(Pz,{})]}))}))}),{Group:n=>{var{separator:r,children:i}=n,a=lt(n,["separator","children"]);return t(Uz,Object.assign({},a,{children:[i,r&&e(qz,{"data-testid":"divider"})]}))},Item:n=>{var{children:r,icon:i,title:a,onClick:o}=n,s=lt(n,["children","icon","title","onClick"]);const l=s.id||a.toLowerCase().replaceAll(" ","-"),{currentItem:c,previouslySelectedItemId:d,selectedItem:p,setCurrentItem:h,setPreviouslySelectedItemId:m,setSelectedItem:g}=f(Yz);u((()=>{s.selected&&g({itemId:l,content:void 0})}),[s.selected]);return e(Fz,{children:t(Hz,Object.assign({styleType:"link",type:"button",onClick:()=>{m((()=>{if(r&&p)return d||p.itemId})()),h({itemId:l,content:r}),g({itemId:l,content:r}),o&&!r&&o(l)},onMouseEnter:()=>{h({itemId:l,content:r})}},s,{$highlight:p&&p.itemId===l||c&&c.itemId===l},{children:[e(Wz,{children:i}),e(Vz,{children:a})]}))})},DrawerItem:n=>{var{id:r,title:i,onClick:a,children:s}=n,l=lt(n,["id","title","onClick","children"]);const[c,d]=o(!0),[u,p]=o(!1),{currentItem:h,setSelectedItem:m,setPreviouslySelectedItemId:g,setCurrentItem:v}=f(Yz),b=ya({from:{opacity:0},to:{opacity:1}}),y=an(),x=y.ref,w=ya({height:s&&c?y.height:0});return t(Xz,Object.assign({onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)}},l,{style:b},{children:[t(Kz,Object.assign({styleType:"link",type:"button",onClick:()=>{s?d(!c):(m({itemId:h.itemId,content:void 0}),v(void 0),g(void 0),a&&a(r))},$highlight:u&&c,$noChildren:!s},{children:[e(Jz,{children:i}),s&&e(Zz,{children:e(Qz,{"aria-hidden":!0,$expanded:c})})]})),e(Gz,Object.assign({style:w},{children:e(eF,Object.assign({ref:x},{children:s}))}))]}))},DrawerSubitem:t=>{var{id:n,title:r,onClick:i}=t,a=lt(t,["id","title","onClick"]);const{currentItem:o,setSelectedItem:s,setCurrentItem:l,setPreviouslySelectedItemId:c}=f(Yz);return e(tF,Object.assign({},a,{children:e(nF,Object.assign({styleType:"link",type:"button",onClick:()=>{i&&i(n),s({itemId:o.itemId,content:void 0}),l(void 0),c(void 0)}},{children:r}))}))}}),iF=M`
6360
+ `,oF=Object.assign((n=>{var{fixed:r=!0,children:i}=n,s=lt(n,["fixed","children"]);const l=a(null),[c,d]=o(void 0),[p,h]=o(void 0),[m,f]=o(void 0),[v,b]=o(!1),y=g((()=>({currentItem:c,selectedItem:p,previouslySelectedItemId:m,setCurrentItem:d,setSelectedItem:h,setPreviouslySelectedItemId:f})),[c,p,m,d,h,f]),x=ya({width:v?240:0,borderRightWidth:v?1:0,borderTopWidth:v?1:0,borderBottomWidth:v?1:0,borderLeftWidth:0});return Cd("click",(e=>{l.current&&!l.current.contains(e.target)&&(h({itemId:m||(p?p.itemId:void 0),content:void 0}),f(void 0),d(void 0))}),"window",!0),u((()=>{b(p&&!!p.content||c&&!!c.content)}),[c,p]),e(Xz.Provider,Object.assign({value:y},{children:t(Pz,Object.assign({$fixed:r},s,{ref:l,onMouseLeave:()=>{d(void 0)}},{children:[e(Fz,{children:i}),e(Wz,Object.assign({style:x,$showDrawer:v,"data-testid":"sidenav-drawer"},{children:c&&c.content||p&&p.content})),e(Hz,{})]}))}))}),{Group:n=>{var{separator:r,children:i}=n,a=lt(n,["separator","children"]);return t(Kz,Object.assign({},a,{children:[i,r&&e(Gz,{"data-testid":"divider"})]}))},Item:n=>{var{children:r,icon:i,title:a,onClick:o}=n,s=lt(n,["children","icon","title","onClick"]);const l=s.id||a.toLowerCase().replaceAll(" ","-"),{currentItem:c,previouslySelectedItemId:d,selectedItem:p,setCurrentItem:h,setPreviouslySelectedItemId:m,setSelectedItem:g}=f(Xz);u((()=>{s.selected&&g({itemId:l,content:void 0})}),[s.selected]);return e(Vz,{children:t(Yz,Object.assign({styleType:"link",type:"button",onClick:()=>{m((()=>{if(r&&p)return d||p.itemId})()),h({itemId:l,content:r}),g({itemId:l,content:r}),o&&!r&&o(l)},onMouseEnter:()=>{h({itemId:l,content:r})}},s,{$highlight:p&&p.itemId===l||c&&c.itemId===l},{children:[e(Uz,{children:i}),e(qz,{children:a})]}))})},DrawerItem:n=>{var{id:r,title:i,onClick:a,children:s}=n,l=lt(n,["id","title","onClick","children"]);const[c,d]=o(!0),[u,p]=o(!1),{currentItem:h,setSelectedItem:m,setPreviouslySelectedItemId:g,setCurrentItem:v}=f(Xz),b=ya({from:{opacity:0},to:{opacity:1}}),y=an(),x=y.ref,w=ya({height:s&&c?y.height:0});return t(Zz,Object.assign({onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)}},l,{style:b},{children:[t(Qz,Object.assign({styleType:"link",type:"button",onClick:()=>{s?d(!c):(m({itemId:h.itemId,content:void 0}),v(void 0),g(void 0),a&&a(r))},$highlight:u&&c,$noChildren:!s},{children:[e(nF,{children:i}),s&&e(eF,{children:e(tF,{"aria-hidden":!0,$expanded:c})})]})),e(Jz,Object.assign({style:w},{children:e(rF,Object.assign({ref:x},{children:s}))}))]}))},DrawerSubitem:t=>{var{id:n,title:r,onClick:i}=t,a=lt(t,["id","title","onClick"]);const{currentItem:o,setSelectedItem:s,setCurrentItem:l,setPreviouslySelectedItemId:c}=f(Xz);return e(iF,Object.assign({},a,{children:e(aF,Object.assign({styleType:"link",type:"button",onClick:()=>{i&&i(n),s({itemId:o.itemId,content:void 0}),l(void 0),c(void 0)}},{children:r}))}))}}),sF=M`
6353
6361
  from {
6354
6362
  opacity: 0;
6355
6363
  transform: translateY(-20%);
@@ -6358,7 +6366,7 @@ object-assign
6358
6366
  opacity: 1;
6359
6367
  transform: translateY(0);
6360
6368
  }
6361
- `,aF=I.div`
6369
+ `,lF=I.div`
6362
6370
  display: flex;
6363
6371
  flex-direction: row;
6364
6372
  align-items: stretch;
@@ -6373,25 +6381,25 @@ object-assign
6373
6381
  box-shadow: 0 0.125rem 0.5rem rgba(104, 104, 104, 0.25);
6374
6382
  border-radius: 0.5rem;
6375
6383
  ${e=>{if(e.$isAnimated)return E`
6376
- animation: ${iF} 0.3s;
6384
+ animation: ${sF} 0.3s;
6377
6385
  `}}
6378
- `,oF=I.div`
6386
+ `,cF=I.div`
6379
6387
  display: flex;
6380
6388
  align-items: center;
6381
6389
  padding: 0.5rem 0.25rem 0.5rem 1rem;
6382
- `,sF=I(yl)`
6390
+ `,dF=I(yl)`
6383
6391
  padding: 0;
6384
- `,lF=I(Ae)`
6392
+ `,uF=I(Ae)`
6385
6393
  color: ${hl.Neutral[1]};
6386
6394
  height: 1.25rem;
6387
6395
  width: 1.25rem;
6388
- `,cF=I.div`
6396
+ `,pF=I.div`
6389
6397
  flex: 1;
6390
6398
  display: flex;
6391
6399
  align-items: center;
6392
6400
  padding: 0.5rem 1rem 0.5rem 0.25rem;
6393
6401
  cursor: pointer;
6394
- `,dF=I.div`
6402
+ `,hF=I.div`
6395
6403
  flex: 1;
6396
6404
  display: flex;
6397
6405
  flex-direction: column;
@@ -6400,45 +6408,45 @@ object-assign
6400
6408
  ${gl.MaxWidth.mobileM} {
6401
6409
  margin: 0 0.5rem;
6402
6410
  }
6403
- `,uF=I.img`
6411
+ `,mF=I.img`
6404
6412
  width: 2.65rem;
6405
6413
  height: auto;
6406
6414
  align-self: center;
6407
- `,pF=I.div`
6415
+ `,fF=I.div`
6408
6416
  max-width: 30%;
6409
- `,hF=I(oc.Small)`
6417
+ `,gF=I(oc.Small)`
6410
6418
  padding: 0.5rem;
6411
6419
  height: auto;
6412
6420
  & > span {
6413
6421
  overflow-wrap: anywhere;
6414
6422
  ${Il.getTextStyle("XSmall","semibold")};
6415
6423
  }
6416
- `,mF=I(El.H6)`
6424
+ `,vF=I(El.H6)`
6417
6425
  overflow-wrap: anywhere;
6418
6426
  ${gl.MaxWidth.mobileM} {
6419
6427
  ${Il.getTextStyle("XSmall","semibold")}
6420
6428
  }
6421
- `,fF=I(El.XSmall)`
6429
+ `,bF=I(El.XSmall)`
6422
6430
  overflow-wrap: anywhere;
6423
- `,gF=I.div`
6431
+ `,yF=I.div`
6424
6432
  margin-top: 0.25rem;
6425
6433
  display: flex;
6426
6434
  align-items: center;
6427
- `,vF=E`
6435
+ `,xF=E`
6428
6436
  height: 2rem;
6429
6437
  width: 2rem;
6430
6438
  padding-right: 0.25rem;
6431
6439
  color: #ffc107;
6432
- `,bF=I(Be)`
6433
- ${vF}
6434
- `,yF=I(ot)`
6435
- ${vF}
6436
- `,xF=I(Ne)`
6437
- ${vF}
6438
- `,wF="https://assets.life.gov.sg/react-design-system/img/app-icon/app-icon.png",$F="smart-app-banner";const kF=i.forwardRef((function(r,i){const{className:a,show:o,href:s,content:l,offset:c=0,icon:d=wF,animated:u=!1,onDismiss:p,onClick:h}=r,{title:m,message:f,buttonLabel:g,buttonAriaLabel:v,numberOfStars:b}=l,y=e=>{e.stopPropagation(),window.open(s,"_blank","noreferrer"),null==h||h()};return e(n,{children:o&&t(aF,Object.assign({ref:i,$isAnimated:u,$offset:c,className:a},{children:[e(oF,Object.assign({onClick:p,id:`${$F}-dismiss`,"data-testid":`${$F}-dismiss-container`},{children:e(sF,Object.assign({"aria-label":"Dismiss"},{children:e(lF,{})}))})),t(cF,Object.assign({onClick:y,id:`${$F}-proceed`,"data-testid":`${$F}-proceed-container`},{children:[e(uF,{src:d,alt:"lifesg-app-icon"}),t(dF,{children:[e(mF,{children:m}),e(fF,{children:f}),(()=>{if(isNaN(b)||b<0)return;const t=[],n=b-Math.floor(b)>=.4;for(let n=0;n<Math.floor(b);n++)t.push(e(bF,{},`star${n}`));if(n&&t.push(e(yF,{},"halfstar")),t.length<5){const n=5-t.length;for(let r=0;r<n;r++)t.push(e(xF,{},`emptystar${r}`))}return e(gF,{children:t.slice(0,5)})})()]}),e(pF,{children:e(hF,Object.assign({type:"button",onClick:y,"aria-label":v},{children:g}))})]}))]}))})})),SF=i.createContext({currentActiveIndex:0,tabLinks:[],setCurrentActiveIndex:()=>{}}),OF=I.div`
6440
+ `,wF=I(Be)`
6441
+ ${xF}
6442
+ `,$F=I(ot)`
6443
+ ${xF}
6444
+ `,kF=I(Ne)`
6445
+ ${xF}
6446
+ `,SF="https://assets.life.gov.sg/react-design-system/img/app-icon/app-icon.png",OF="smart-app-banner";const CF=i.forwardRef((function(r,i){const{className:a,show:o,href:s,content:l,offset:c=0,icon:d=SF,animated:u=!1,onDismiss:p,onClick:h}=r,{title:m,message:f,buttonLabel:g,buttonAriaLabel:v,numberOfStars:b}=l,y=e=>{e.stopPropagation(),window.open(s,"_blank","noreferrer"),null==h||h()};return e(n,{children:o&&t(lF,Object.assign({ref:i,$isAnimated:u,$offset:c,className:a},{children:[e(cF,Object.assign({onClick:p,id:`${OF}-dismiss`,"data-testid":`${OF}-dismiss-container`},{children:e(dF,Object.assign({"aria-label":"Dismiss"},{children:e(uF,{})}))})),t(pF,Object.assign({onClick:y,id:`${OF}-proceed`,"data-testid":`${OF}-proceed-container`},{children:[e(mF,{src:d,alt:"lifesg-app-icon"}),t(hF,{children:[e(vF,{children:m}),e(bF,{children:f}),(()=>{if(isNaN(b)||b<0)return;const t=[],n=b-Math.floor(b)>=.4;for(let n=0;n<Math.floor(b);n++)t.push(e(wF,{},`star${n}`));if(n&&t.push(e($F,{},"halfstar")),t.length<5){const n=5-t.length;for(let r=0;r<n;r++)t.push(e(kF,{},`emptystar${r}`))}return e(yF,{children:t.slice(0,5)})})()]}),e(fF,{children:e(gF,Object.assign({type:"button",onClick:y,"aria-label":v},{children:g}))})]}))]}))})})),TF=i.createContext({currentActiveIndex:0,tabLinks:[],setCurrentActiveIndex:()=>{}}),DF=I.div`
6439
6447
  position: relative;
6440
6448
  width: 100%;
6441
- `,CF=I.div`
6449
+ `,jF=I.div`
6442
6450
  width: 4rem;
6443
6451
  height: 100%;
6444
6452
  top: 0;
@@ -6448,7 +6456,7 @@ object-assign
6448
6456
  align-items: center;
6449
6457
 
6450
6458
  ${e=>{let t;const n="rgba(255,255,255,0.001)";return t="left"===e.$position?`\n left: 0;\n background-image: linear-gradient(\n to right,\n ${e.$backgroundColor||(e.$showIndicator?"white, white":"white")},\n ${n}\n );\n `:`\n right: 0;\n background-image: linear-gradient(\n to left,\n ${e.$backgroundColor||(e.$showIndicator?"white, white":"white")},\n ${n}\n );\n `,`\n\t\t\t${gl.MaxWidth.tablet} {\n\t\t\t\t${t}\n\t\t\t}\n\t\t`}};
6451
- `,TF=I.div`
6459
+ `,_F=I.div`
6452
6460
  position: relative;
6453
6461
  width: 100%;
6454
6462
  height: 100%;
@@ -6460,7 +6468,7 @@ object-assign
6460
6468
  ::-webkit-scrollbar {
6461
6469
  display: none; /* Chrome/Safari/Webkit */
6462
6470
  }
6463
- `,DF=I(yl)`
6471
+ `,IF=I(yl)`
6464
6472
  display: none;
6465
6473
 
6466
6474
  ${gl.MaxWidth.tablet} {
@@ -6482,7 +6490,7 @@ object-assign
6482
6490
  color: ${hl.Neutral[3]};
6483
6491
  }
6484
6492
  }
6485
- `,jF=h(((r,i)=>{var{children:s,fadeColor:l,fadePosition:c="both",showIndicator:d=!1,onResize:p}=r,h=lt(r,["children","fadeColor","fadePosition","showIndicator","onResize"]);const[m,f]=o("left"===c||"both"===c),[g,b]=o("right"===c||"both"===c),y=a(null),x=a(null),w=xp($,50);function $(){const e=y.current,t=x.current;e&&t&&t.scrollWidth>e.offsetWidth?(b(Math.round(t.scrollLeft)<t.scrollWidth-t.offsetWidth),f(t.scrollLeft>=1)):(b(!1),f(!1))}function k(){$(),p&&p({content:x.current,wrapper:y.current})}an({onResize:k,targetRef:y,refreshMode:"debounce",refreshRate:50}),v(i,(()=>({resize(){k()}}))),u((()=>{const e=x.current;return $(),e&&e.addEventListener("scroll",w),()=>{e&&e.removeEventListener("scroll",w)}}),[]);return t(OF,Object.assign({ref:y},h,{children:[e(TF,Object.assign({ref:x},{children:s})),(()=>{let r;return r=Array.isArray(l)&&l.length>0?{left:l,right:l}:l||{left:void 0,right:void 0},t(n,{children:[m&&e(CF,Object.assign({$backgroundColor:r.left,$position:"left",$showIndicator:d,"data-id":"left-fade"},{children:d&&e(DF,Object.assign({$position:"left","data-id":"left-fade-indicator-button"},{children:e(fe,{})}))})),g&&e(CF,Object.assign({$backgroundColor:r.right,$position:"right",$showIndicator:d,"data-id":"right-fade"},{children:d&&e(DF,Object.assign({$position:"right","data-id":"right-fade-indicator-button"},{children:e(me,{})}))}))]})})()]}))})),_F=I.ul`
6493
+ `,EF=h(((r,i)=>{var{children:s,fadeColor:l,fadePosition:c="both",showIndicator:d=!1,onResize:p}=r,h=lt(r,["children","fadeColor","fadePosition","showIndicator","onResize"]);const[m,f]=o("left"===c||"both"===c),[g,b]=o("right"===c||"both"===c),y=a(null),x=a(null),w=xp($,50);function $(){const e=y.current,t=x.current;e&&t&&t.scrollWidth>e.offsetWidth?(b(Math.round(t.scrollLeft)<t.scrollWidth-t.offsetWidth),f(t.scrollLeft>=1)):(b(!1),f(!1))}function k(){$(),p&&p({content:x.current,wrapper:y.current})}an({onResize:k,targetRef:y,refreshMode:"debounce",refreshRate:50}),v(i,(()=>({resize(){k()}}))),u((()=>{const e=x.current;return $(),e&&e.addEventListener("scroll",w),()=>{e&&e.removeEventListener("scroll",w)}}),[]);return t(DF,Object.assign({ref:y},h,{children:[e(_F,Object.assign({ref:x},{children:s})),(()=>{let r;return r=Array.isArray(l)&&l.length>0?{left:l,right:l}:l||{left:void 0,right:void 0},t(n,{children:[m&&e(jF,Object.assign({$backgroundColor:r.left,$position:"left",$showIndicator:d,"data-id":"left-fade"},{children:d&&e(IF,Object.assign({$position:"left","data-id":"left-fade-indicator-button"},{children:e(fe,{})}))})),g&&e(jF,Object.assign({$backgroundColor:r.right,$position:"right",$showIndicator:d,"data-id":"right-fade"},{children:d&&e(IF,Object.assign({$position:"right","data-id":"right-fade-indicator-button"},{children:e(me,{})}))}))]})})()]}))})),MF=I.ul`
6486
6494
  display: inline-flex;
6487
6495
  width: 100%;
6488
6496
  list-style-type: none;
@@ -6496,7 +6504,7 @@ object-assign
6496
6504
  border-bottom: 4px solid ${hl.Neutral[5]};
6497
6505
  }
6498
6506
  `}}
6499
- `,IF=I.li`
6507
+ `,AF=I.li`
6500
6508
  display: flex;
6501
6509
  justify-content: center;
6502
6510
  flex-shrink: 0;
@@ -6514,13 +6522,13 @@ object-assign
6514
6522
  flex: 1;
6515
6523
  justify-content: center;
6516
6524
  }
6517
- `,EF=I.button`
6525
+ `,NF=I.button`
6518
6526
  position: relative;
6519
6527
  padding: 1rem 1rem 1.25rem;
6520
6528
  border: none;
6521
6529
  background: none;
6522
6530
  cursor: pointer;
6523
- `,MF=I(El.Body)`
6531
+ `,BF=I(El.Body)`
6524
6532
  position: absolute;
6525
6533
  top: 50%;
6526
6534
  left: 50%;
@@ -6531,22 +6539,22 @@ object-assign
6531
6539
  ${e=>{if(e.$active)return E`
6532
6540
  opacity: 0;
6533
6541
  `}}
6534
- `,AF=I(El.Body)`
6542
+ `,RF=I(El.Body)`
6535
6543
  color: ${hl.Primary};
6536
6544
  opacity: 0;
6537
6545
  ${e=>{if(e.$active)return E`
6538
6546
  opacity: 1;
6539
6547
  `}}
6540
- `,NF=I(jF)`
6548
+ `,LF=I(EF)`
6541
6549
  [data-id="left-fade-indicator-button"],
6542
6550
  [data-id="right-fade-indicator-button"] {
6543
6551
  margin-bottom: 4px;
6544
6552
  }
6545
- `,BF=({controlledMode:n,"data-testid":r,onTabClick:i,fullWidthIndicatorLine:o})=>{const{setCurrentActiveIndex:s,currentActiveIndex:l,tabLinks:c}=f(SF),d=Fc.useMediaQuery({maxWidth:vl.mobileL}),u=a(null),p=e=>t=>{t.preventDefault(),n||s(e),i&&i(c[e].title,e)},h=e=>d&&e.length>20?`${e.substring(0,20)}...`:e;return e(NF,Object.assign({onResize:({content:e,wrapper:t})=>{e&&t&&window.innerWidth<=vl.tablet&&u.current&&(e.scrollLeft=u.current.getBoundingClientRect().left)},"data-testid":r},{children:e(_F,Object.assign({role:"tablist",$fullWidthIndicatorLine:o},{children:c.map(((n,i)=>{const a=l===i;return e(IF,Object.assign({role:"none",$active:a,ref:a?u:null,$width:n.width},{children:t(EF,Object.assign({role:"tab",type:"button","aria-selected":a,onClick:p(i),"data-testid":`${r}-link-${i}`},{children:[e(MF,Object.assign({$active:a,weight:"regular"},{children:h(n.title)})),e(AF,Object.assign({$active:a,weight:"semibold","aria-hidden":"true"},{children:h(n.title)}))]}))}),i)}))}))}))},RF=I.div`
6553
+ `,PF=({controlledMode:n,"data-testid":r,onTabClick:i,fullWidthIndicatorLine:o})=>{const{setCurrentActiveIndex:s,currentActiveIndex:l,tabLinks:c}=f(TF),d=Fc.useMediaQuery({maxWidth:vl.mobileL}),u=a(null),p=e=>t=>{t.preventDefault(),n||s(e),i&&i(c[e].title,e)},h=e=>d&&e.length>20?`${e.substring(0,20)}...`:e;return e(LF,Object.assign({onResize:({content:e,wrapper:t})=>{e&&t&&window.innerWidth<=vl.tablet&&u.current&&(e.scrollLeft=u.current.getBoundingClientRect().left)},"data-testid":r},{children:e(MF,Object.assign({role:"tablist",$fullWidthIndicatorLine:o},{children:c.map(((n,i)=>{const a=l===i;return e(AF,Object.assign({role:"none",$active:a,ref:a?u:null,$width:n.width},{children:t(NF,Object.assign({role:"tab",type:"button","aria-selected":a,onClick:p(i),"data-testid":`${r}-link-${i}`},{children:[e(BF,Object.assign({$active:a,weight:"regular"},{children:h(n.title)})),e(RF,Object.assign({$active:a,weight:"semibold","aria-hidden":"true"},{children:h(n.title)}))]}))}),i)}))}))}))},zF=I.div`
6546
6554
  display: flex;
6547
6555
  flex-direction: column;
6548
6556
  width: 100%;
6549
- `,LF=Object.assign((n=>{var{children:r,currentActive:i,initialActive:a=0,onTabClick:s,"data-testid":l,fullWidthIndicatorLine:d}=n,p=lt(n,["children","currentActive","initialActive","onTabClick","data-testid","fullWidthIndicatorLine"]);const[h,m]=o(i||a),f=g((()=>S.toArray(r).filter(Boolean).map((e=>({title:e.props.title,width:e.props.width})))),[r]);u((()=>{"number"==typeof i&&m(i)}),[i]);return e(RF,Object.assign({"data-testid":l},p,{children:t(SF.Provider,Object.assign({value:{tabLinks:f,currentActiveIndex:h,setCurrentActiveIndex:m}},{children:[e(BF,{controlledMode:"number"==typeof i,onTabClick:s,"data-testid":`${l}-tabs`,fullWidthIndicatorLine:d}),S.toArray(r).filter(Boolean).map(((e,t)=>c(e,{key:t,index:t})))]}))}))}),{Item:t=>{var{index:n,children:r}=t,i=lt(t,["index","children"]);const{currentActiveIndex:a}=f(SF);return a===n?e("div",Object.assign({role:"tabpanel"},i,{children:r})):null}}),PF=I.div`
6557
+ `,FF=Object.assign((n=>{var{children:r,currentActive:i,initialActive:a=0,onTabClick:s,"data-testid":l,fullWidthIndicatorLine:d}=n,p=lt(n,["children","currentActive","initialActive","onTabClick","data-testid","fullWidthIndicatorLine"]);const[h,m]=o(i||a),f=g((()=>S.toArray(r).filter(Boolean).map((e=>({title:e.props.title,width:e.props.width})))),[r]);u((()=>{"number"==typeof i&&m(i)}),[i]);return e(zF,Object.assign({"data-testid":l},p,{children:t(TF.Provider,Object.assign({value:{tabLinks:f,currentActiveIndex:h,setCurrentActiveIndex:m}},{children:[e(PF,{controlledMode:"number"==typeof i,onTabClick:s,"data-testid":`${l}-tabs`,fullWidthIndicatorLine:d}),S.toArray(r).filter(Boolean).map(((e,t)=>c(e,{key:t,index:t})))]}))}))}),{Item:t=>{var{index:n,children:r}=t,i=lt(t,["index","children"]);const{currentActiveIndex:a}=f(TF);return a===n?e("div",Object.assign({role:"tabpanel"},i,{children:r})):null}}),HF=I.div`
6550
6558
  border-radius: 4px;
6551
6559
  padding: 0.125rem 0.5rem;
6552
6560
  width: fit-content;
@@ -6580,17 +6588,17 @@ object-assign
6580
6588
  padding: calc(0.5rem - 1px) 1rem;
6581
6589
  `}}
6582
6590
  }
6583
- `,zF=I.div`
6591
+ `,WF=I.div`
6584
6592
  overflow: hidden;
6585
6593
  display: -webkit-box;
6586
6594
  -webkit-box-orient: vertical;
6587
6595
  -webkit-line-clamp: 2;
6588
6596
  text-align: left;
6589
- `,FF=n=>{var{type:r,colorType:i="black",children:a,interactive:o=!1,icon:s,iconPosition:l="left"}=n,c=lt(n,["type","colorType","children","interactive","icon","iconPosition"]);return t(PF,Object.assign({as:o?"button":"div",$type:r,$color:i,$interactive:o},c,{children:["left"===l&&s,e(zF,{children:a}),"right"===l&&s]}))};var HF;rd.extend(ad),function(e){e.formatHourlyDisplay=e=>rd(e,"HH:mm").format("ha"),e.calculateWidth=(e,t,n)=>wd.getTimeDiffInMinutes(e,t)/15*(n/2)}(HF||(HF={}));const WF=1.25,VF=e=>"minified"===e?12:40,YF=e=>"minified"===e?12:40,UF=I.div`
6597
+ `,VF=n=>{var{type:r,colorType:i="black",children:a,interactive:o=!1,icon:s,iconPosition:l="left"}=n,c=lt(n,["type","colorType","children","interactive","icon","iconPosition"]);return t(HF,Object.assign({as:o?"button":"div",$type:r,$color:i,$interactive:o},c,{children:["left"===l&&s,e(WF,{children:a}),"right"===l&&s]}))};var YF;rd.extend(ad),function(e){e.formatHourlyDisplay=e=>rd(e,"HH:mm").format("ha"),e.calculateWidth=(e,t,n)=>wd.getTimeDiffInMinutes(e,t)/15*(n/2)}(YF||(YF={}));const UF=1.25,qF=e=>"minified"===e?12:40,XF=e=>"minified"===e?12:40,KF=I.div`
6590
6598
  position: relative;
6591
6599
  display: flex;
6592
6600
  align-items: center;
6593
- `,qF=I(yl)`
6601
+ `,GF=I(yl)`
6594
6602
  z-index: 2;
6595
6603
  position: absolute;
6596
6604
  bottom: ${({$variant:e})=>"default"===e?"0.25rem":"0rem"};
@@ -6616,39 +6624,39 @@ object-assign
6616
6624
  &:focus {
6617
6625
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
6618
6626
  }
6619
- `,XF=I(me)`
6627
+ `,ZF=I(me)`
6620
6628
  width: 1rem;
6621
6629
  height: 1rem;
6622
6630
  color: ${hl.Primary};
6623
- `,KF=I(fe)`
6631
+ `,QF=I(fe)`
6624
6632
  font-size: 1rem;
6625
6633
  color: ${hl.Primary};
6626
- `,GF=I.div`
6634
+ `,JF=I.div`
6627
6635
  overflow: hidden;
6628
6636
  flex-grow: 1;
6629
6637
  position: relative;
6630
- height: ${({$variant:e})=>`${20+YF(e)}px`};
6631
- `,ZF=I.div`
6638
+ height: ${({$variant:e})=>`${20+XF(e)}px`};
6639
+ `,eH=I.div`
6632
6640
  position: relative;
6633
6641
  white-space: nowrap;
6634
- height: ${WF}rem;
6635
- `,QF=I.div`
6642
+ height: ${UF}rem;
6643
+ `,tH=I.div`
6636
6644
  display: flex;
6637
6645
  white-space: nowrap;
6638
- `,JF=I.div`
6646
+ `,nH=I.div`
6639
6647
  display: inline-block;
6640
- width: ${({$variant:e})=>`${VF(e)}px`};
6648
+ width: ${({$variant:e})=>`${qF(e)}px`};
6641
6649
  position: relative;
6642
6650
  border-left: 1px solid ${hl.Neutral[2]};
6643
- ${e=>{let t=0;switch(e.$variant){case"default":t=e.$isLongMarker?WF:.625;break;case"minified":t=e.$isLongMarker?WF:0;break;default:t=0}return E`
6651
+ ${e=>{let t=0;switch(e.$variant){case"default":t=e.$isLongMarker?UF:.625;break;case"minified":t=e.$isLongMarker?UF:0;break;default:t=0}return E`
6644
6652
  height: ${t}rem;
6645
6653
  `}}
6646
- `,eH=I(El.XSmall)`
6654
+ `,rH=I(El.XSmall)`
6647
6655
  color: ${hl.Neutral[2]};
6648
6656
  position: absolute;
6649
6657
  bottom: 10%;
6650
6658
  left: 10%;
6651
- `,tH=I.div`
6659
+ `,iH=I.div`
6652
6660
  ${e=>"vertical"===e.$type?E`
6653
6661
  display: flex;
6654
6662
  flex-grow: 1;
@@ -6658,7 +6666,7 @@ object-assign
6658
6666
  margin: 1px 0px;
6659
6667
  `:E`
6660
6668
  position: absolute;
6661
- height: ${YF(e.$variant)}px;
6669
+ height: ${XF(e.$variant)}px;
6662
6670
  width: ${e.$width}px;
6663
6671
  left: ${e.$left}px;
6664
6672
  `}
@@ -6674,13 +6682,13 @@ object-assign
6674
6682
  ${e.$bgColor} 20px
6675
6683
  );
6676
6684
  `}
6677
- `,nH=I.div`
6685
+ `,aH=I.div`
6678
6686
  position: absolute;
6679
- top: ${WF}rem;
6680
- height: ${({$variant:e})=>`${YF(e)}px`};
6687
+ top: ${UF}rem;
6688
+ height: ${({$variant:e})=>`${XF(e)}px`};
6681
6689
  z-index: 1;
6682
6690
  border-right: 1px solid ${hl.Neutral[2]};
6683
- `,rH=I(El.XSmall)`
6691
+ `,oH=I(El.XSmall)`
6684
6692
  color: ${e=>e.$color||hl.Neutral[2](e)};
6685
6693
  position: absolute;
6686
6694
  bottom: 0;
@@ -6690,7 +6698,7 @@ object-assign
6690
6698
  white-space: nowrap;
6691
6699
  overflow: hidden;
6692
6700
  text-overflow: ellipsis;
6693
- `,iH=({"data-testid":r,className:i,variant:s="default",startTime:l,endTime:c,slots:d,onSlotClick:p,onClick:h,styleAttributes:m})=>{const f=a(null),[g,v]=o(0),[b,y]=o(0),x=VF(s),w=2.5*x;u((()=>{const e=f.current;return e&&e.addEventListener("scroll",$),()=>{e&&e.removeEventListener("scroll",$)}}),[]);const $=()=>{f.current&&v(f.current.scrollLeft)},k=e=>{f.current&&f.current.scrollBy({left:"left"===e?-w:w,behavior:"smooth"})};an({onResize:()=>{f.current&&y(f.current.clientWidth)},targetRef:f,refreshMode:"debounce",refreshRate:50});const S=e=>e<=x/2,O=e=>{if(r)return`${r}-${e}`},C=(e,t,n)=>{const r=0===e.minute();if("default"===n)return r;return r&&(t?e.hour()%2==0:e.hour()%2==1)};return t(UF,Object.assign({className:i},{children:[t(GF,Object.assign({"data-testid":r,ref:f,$variant:s},{children:[e(ZF,Object.assign({"data-testid":O("time-marker-wrapper"),"data-id":"marker-wrapper"},{children:(()=>{const t=[],n=rd(l,"HH:mm"),r=rd(c,"HH:mm"),i=n.hour()%2==0;for(let a=n;a.isBefore(r);a=a.add(30,"minute")){const n=C(a,i,s);t.push(e(JF,Object.assign({$isLongMarker:n,$variant:s},{children:n&&e(eH,Object.assign({weight:"semibold"},{children:HF.formatHourlyDisplay(a.format("HH:mm"))}))}),a.format("HH:mm")))}return t})()})),t(QF,Object.assign({"data-testid":O("time-slot-wrapper"),"data-id":"slot-wrapper"},{children:[m&&(()=>{const{backgroundColor:r,backgroundColor2:i,styleType:a="default"}=m,o=HF.calculateWidth(l,c,x),d=!!h&&"default"===s;return t(n,{children:[e(nH,{$variant:s}),e(tH,{"data-testid":O("default-timeslot"),$width:o,$variant:s,$left:0,$styleType:a,$bgColor:r,$bgColor2:i,$clickable:d,onClick:d?h:void 0},"default-timeslot")]})})(),d.map((n=>{const{id:r,startTime:i,endTime:a,label:o,clickable:d=!0,styleAttributes:u}=n,{color:h,styleType:m="default",backgroundColor:f,backgroundColor2:g}=u,v=HF.calculateWidth(i,a,x),b=HF.calculateWidth(l,i,x),y=d&&"default"===s;return t("div",{children:[e(nH,{$variant:s,style:{left:`${b}px`}}),e(tH,Object.assign({"data-testid":O(`${r}-timeslot`),$width:v,$left:b,$styleType:m,$variant:s,$bgColor:f,$bgColor2:g,$clickable:y,onClick:()=>y&&p(n)},{children:o&&"default"===s&&e(rH,Object.assign({$slotWidth:v,$color:h,weight:"semibold"},{children:S(v)?"...":o}))})),c!==a&&e(nH,{$variant:s,style:{left:`${b+v}px`}})]},r)}))]}))]})),e(n,{children:g>0&&e(qF,Object.assign({"data-testid":O("arrow-left"),$direction:"left",$variant:s,focusHighlight:!1,focusOutline:"none",onClick:()=>{k("left")}},{children:e(KF,{})}))}),g+b<HF.calculateWidth(l,c,x)?e(qF,Object.assign({"data-testid":O("arrow-right"),$direction:"right",$variant:s,focusHighlight:!1,focusOutline:"none",onClick:()=>{k("right")}},{children:e(XF,{})})):e(n,{})]}))},aH=I.div`
6701
+ `,sH=({"data-testid":r,className:i,variant:s="default",startTime:l,endTime:c,slots:d,onSlotClick:p,onClick:h,styleAttributes:m})=>{const f=a(null),[g,v]=o(0),[b,y]=o(0),x=qF(s),w=2.5*x;u((()=>{const e=f.current;return e&&e.addEventListener("scroll",$),()=>{e&&e.removeEventListener("scroll",$)}}),[]);const $=()=>{f.current&&v(f.current.scrollLeft)},k=e=>{f.current&&f.current.scrollBy({left:"left"===e?-w:w,behavior:"smooth"})};an({onResize:()=>{f.current&&y(f.current.clientWidth)},targetRef:f,refreshMode:"debounce",refreshRate:50});const S=e=>e<=x/2,O=e=>{if(r)return`${r}-${e}`},C=(e,t,n)=>{const r=0===e.minute();if("default"===n)return r;return r&&(t?e.hour()%2==0:e.hour()%2==1)};return t(KF,Object.assign({className:i},{children:[t(JF,Object.assign({"data-testid":r,ref:f,$variant:s},{children:[e(eH,Object.assign({"data-testid":O("time-marker-wrapper"),"data-id":"marker-wrapper"},{children:(()=>{const t=[],n=rd(l,"HH:mm"),r=rd(c,"HH:mm"),i=n.hour()%2==0;for(let a=n;a.isBefore(r);a=a.add(30,"minute")){const n=C(a,i,s);t.push(e(nH,Object.assign({$isLongMarker:n,$variant:s},{children:n&&e(rH,Object.assign({weight:"semibold"},{children:YF.formatHourlyDisplay(a.format("HH:mm"))}))}),a.format("HH:mm")))}return t})()})),t(tH,Object.assign({"data-testid":O("time-slot-wrapper"),"data-id":"slot-wrapper"},{children:[m&&(()=>{const{backgroundColor:r,backgroundColor2:i,styleType:a="default"}=m,o=YF.calculateWidth(l,c,x),d=!!h&&"default"===s;return t(n,{children:[e(aH,{$variant:s}),e(iH,{"data-testid":O("default-timeslot"),$width:o,$variant:s,$left:0,$styleType:a,$bgColor:r,$bgColor2:i,$clickable:d,onClick:d?h:void 0},"default-timeslot")]})})(),d.map((n=>{const{id:r,startTime:i,endTime:a,label:o,clickable:d=!0,styleAttributes:u}=n,{color:h,styleType:m="default",backgroundColor:f,backgroundColor2:g}=u,v=YF.calculateWidth(i,a,x),b=YF.calculateWidth(l,i,x),y=d&&"default"===s;return t("div",{children:[e(aH,{$variant:s,style:{left:`${b}px`}}),e(iH,Object.assign({"data-testid":O(`${r}-timeslot`),$width:v,$left:b,$styleType:m,$variant:s,$bgColor:f,$bgColor2:g,$clickable:y,onClick:()=>y&&p(n)},{children:o&&"default"===s&&e(oH,Object.assign({$slotWidth:v,$color:h,weight:"semibold"},{children:S(v)?"...":o}))})),c!==a&&e(aH,{$variant:s,style:{left:`${b+v}px`}})]},r)}))]}))]})),e(n,{children:g>0&&e(GF,Object.assign({"data-testid":O("arrow-left"),$direction:"left",$variant:s,focusHighlight:!1,focusOutline:"none",onClick:()=>{k("left")}},{children:e(QF,{})}))}),g+b<YF.calculateWidth(l,c,x)?e(GF,Object.assign({"data-testid":O("arrow-right"),$direction:"right",$variant:s,focusHighlight:!1,focusOutline:"none",onClick:()=>{k("right")}},{children:e(ZF,{})})):e(n,{})]}))},lH=I.div`
6694
6702
  display: flex;
6695
6703
  align-items: center;
6696
6704
  justify-content: center;
@@ -6698,27 +6706,27 @@ object-assign
6698
6706
  user-select: none;
6699
6707
  margin-bottom: 0.5rem;
6700
6708
  flex: 1;
6701
- `,oH=I(El.XSmall)`
6709
+ `,cH=I(El.XSmall)`
6702
6710
  ${e=>e.$disabled&&E`
6703
6711
  color: ${hl.Neutral[4]};
6704
6712
  `}
6705
- `,sH=I.div`
6713
+ `,dH=I.div`
6706
6714
  grid-column: 2 / -1;
6707
6715
  display: flex;
6708
- `,lH=I.div`
6716
+ `,uH=I.div`
6709
6717
  width: 100%;
6710
6718
  display: grid;
6711
6719
  grid-template-columns: auto repeat(7, 1fr);
6712
6720
  column-gap: 0.25rem;
6713
- `,cH=I(Ra.div)`
6721
+ `,pH=I(Ra.div)`
6714
6722
  grid-column: 2 / -1;
6715
6723
  overflow: hidden;
6716
- `,dH=I.div`
6724
+ `,hH=I.div`
6717
6725
  display: flex;
6718
6726
  gap: 0.25rem;
6719
6727
  transition: ${Bl.Base};
6720
6728
  overflow: hidden;
6721
- `,uH=I.div`
6729
+ `,mH=I.div`
6722
6730
  display: flex;
6723
6731
  flex-direction: column;
6724
6732
  grid-row: 3 / auto;
@@ -6728,12 +6736,12 @@ object-assign
6728
6736
  overflow: hidden;
6729
6737
 
6730
6738
  ${e=>e.$height&&`height: ${e.$height}px;`}
6731
- `,pH=I.div`
6739
+ `,fH=I.div`
6732
6740
  min-height: 3.75rem;
6733
6741
  :last-child {
6734
6742
  min-height: 0;
6735
6743
  }
6736
- `,hH=I.div`
6744
+ `,gH=I.div`
6737
6745
  ${Il.getFontFamily("Body",700)}
6738
6746
  color: ${hl.Neutral[3]};
6739
6747
  font-size: 0.625rem !important;
@@ -6742,17 +6750,17 @@ object-assign
6742
6750
  :first-line {
6743
6751
  font-size: 0.875rem !important;
6744
6752
  }
6745
- `,mH=I.div`
6753
+ `,vH=I.div`
6746
6754
  display: flex;
6747
6755
  flex-direction: column;
6748
6756
  flex: 1;
6749
6757
  gap: 0.25rem;
6750
- `,fH=I.div`
6758
+ `,bH=I.div`
6751
6759
  grid-row: 4;
6752
6760
  grid-column: 1 / -1;
6753
6761
  display: flex;
6754
6762
  margin-top: 0.5rem;
6755
- `,gH=I(oc.Small)`
6763
+ `,yH=I(oc.Small)`
6756
6764
  width: 100%;
6757
6765
  height: 2.5rem;
6758
6766
  span {
@@ -6760,10 +6768,10 @@ object-assign
6760
6768
  align-items: center;
6761
6769
  gap: 0.5rem;
6762
6770
  }
6763
- `,vH=I(oe)`
6771
+ `,xH=I(oe)`
6764
6772
  transform: rotate(${e=>e.$isExpanded?0:180}deg);
6765
6773
  transition: transform 300ms ease-in-out;
6766
- `,bH=I(tH)`
6774
+ `,wH=I(iH)`
6767
6775
  ${e=>{if("vertical"===e.$type)return E`
6768
6776
  max-width: 200px;
6769
6777
  height: ${e.$height}px;
@@ -6783,7 +6791,7 @@ object-assign
6783
6791
  `:E`
6784
6792
  background-color: ${e.$bgColor};
6785
6793
  `}
6786
- `;var yH=so;var xH=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(null!=o&&(void 0===s?o==o&&!yH(o):n(o,s)))var s=o,l=a}return l};var wH=xH,$H=hS,kH=function(e,t){return e<t};var SH=Pa((function(e,t){return e&&e.length?wH(e,$H(t),kH):void 0}));var OH=xH,CH=function(e,t){return e>t},TH=hS;var DH=Pa((function(e,t){return e&&e.length?OH(e,TH(t),CH):void 0}));const jH=({calendarDate:n,disabledDates:r,selectedDate:i,onSelect:a,minDate:s,maxDate:l,startTime:c,endTime:d,maxVisibleCellHeight:u,slots:p,interval:h=30,variant:m="flexible",enableSelection:f=!0,onSlotClick:v})=>{var b,y,x,w;const $="YYYY-MM-DD",[k,S]=o(!1),[O,C]=o(),T=g((()=>fd.generateDaysForCurrentWeek(n)),[n]),D=Object.values(null!=p?p:{}).flat(),j=null!==(y=null!=c?c:null===(b=SH(D,"startTime"))||void 0===b?void 0:b.startTime)&&void 0!==y?y:"00:00",_=null!==(w=null!=d?d:null===(x=DH(D,"endTime"))||void 0===x?void 0:x.endTime)&&void 0!==w?w:"24:00",I=Math.ceil(wd.getTimeDiffInMinutes(j,_)/h),{height:E,ref:M}=an(),A=u?E<u||k?E:u:E,N=ya({height:A}),B=g((()=>{if(p){const e={};return Object.entries(p).forEach((([t,n])=>{const r=function(e){const t=Array(I).fill({});return e.forEach((e=>{const n=Math.max(0,wd.getTimeDiffInMinutes(j,e.startTime)/h),r=Math.min(I,wd.getTimeDiffInMinutes(j,e.endTime)/h),i=Math.ceil(r)-Math.floor(n);switch(m){case"fixed":t[Math.floor(n)]=Object.assign(Object.assign({},e),{cellLength:r-n});break;case"flexible":for(let a=0;a<i;a++){const o=wd.addMinutesToTime(j,Math.floor(n+a)*h),s=wd.addMinutesToTime(o,h);let l;V_(t[Math.floor(n+a)])?0===a&&n%1!=0?l="top":a===i-1&&r%1!=0&&(l="bottom"):l=void 0,t[Math.floor(n+a)]=Object.assign(Object.assign({},e),{id:`${e.id}-${a}`,startTime:o,endTime:s,cellLength:1,halfFill:l})}}})),t}(n);e[t]=function(e){var t,n,r,i;let a=0;switch(m){case"fixed":for(e=e.reduce(((e,t)=>{const n=e.length>0?e[e.length-1]:e[0];return V_(t)&&V_(n)?e:[...e,t]}),[{}]);a<e.length;){if(V_(e[a])){const o=null!==(n=null===(t=e[a-1])||void 0===t?void 0:t.endTime)&&void 0!==n?n:j,s=null!==(i=null===(r=e[a+1])||void 0===r?void 0:r.startTime)&&void 0!==i?i:_;if(o!==s){const t=wd.getTimeDiffInMinutes(o,s)/h;e[a]=Object.assign(Object.assign({},F(a)),{startTime:o,endTime:s,cellLength:t})}}a++}break;case"flexible":for(;a<e.length;)V_(e[a])?(e[a]=F(a),a++):a+=e[a].cellLength}return e.filter((e=>!V_(e)&&e.cellLength>0))}(r)})),e}return{}}),[p]),R=e=>{C(e)},L=()=>{C(void 0)},P=e=>{e.preventDefault(),S((e=>!e))},z=e=>{var t;const n=fd.isWithinRange(e,s?rd(s):void 0,l?rd(l):void 0),i=null!==(t=r&&r.includes(e.format($)))&&void 0!==t&&t;return!n||i};function F(e,t=1){return{id:`${e.toString()}-${(new Date).getTime()}`,startTime:"",endTime:"",clickable:!1,styleAttributes:{backgroundColor:"#E0E4E5"},cellLength:t}}return t(lH,{children:[e(sH,{children:T.map(((t,n)=>{const r=(e=>{const t=e.format($),n=z(e),r={},a=f&&!n;return n&&(r.disabled=!0),r.interactive=f?a:null,a&&O&&e.isSame(O,"day")&&(r.circleLeft="hover-current",r.circleRight="hover-current",r.circleShadow=!0),[i].includes(t)&&(r.labelType="selected",r.circleLeft="selected-outline",r.circleRight="selected-outline"),r})(t);return e(Au,Object.assign({date:t,calendarDate:rd(i),onSelect:()=>{((e,t)=>{!t&&f&&a(e)})(t,!r.interactive)},onHover:R,onHoverEnd:L},r),`day-${n}`)}))}),e(sH,{children:T.map(((t,n)=>e(aH,{children:e(oH,Object.assign({weight:"semibold",$disabled:z(t)},{children:rd(t).format("ddd")}))},`week-day-${n}`)))}),(()=>{let t=!1;const n=e=>{const n=rd(j,"HH:mm").add(4*e*h,"minutes"),r=n.format("h"),i=n.format("mm"),a=n.format("a");let o=`${r}${"00"!==i?` ${i}`:""}`;return t||"pm"!==a||"00"!==i||(o+=` ${a}`,t=!0),o};return e(uH,Object.assign({$height:A},{children:Array(Math.ceil(I/4)).fill(void 0).map(((t,r)=>e(pH,{children:e(hH,{children:n(r)})},`time-${r}`)))}))})(),e(cH,Object.assign({style:N},{children:e(dH,Object.assign({ref:M},{children:T.map(((t,n)=>{var r;const i=t.format($),a=null!==(r=B[i])&&void 0!==r?r:Array("flexible"===m?I:1).fill(void 0).map(((e,t)=>F(t,"fixed"===m?I:void 0)));return e(mH,{children:a.map((t=>{const{id:n,clickable:r=!0,styleAttributes:a,cellLength:o,halfFill:s}=t,{styleType:l="default",backgroundColor:c,backgroundColor2:d}=a;return e(bH,{$type:"vertical",$variant:"default",$styleType:l,$bgColor:c,$bgColor2:d,$halfFill:s,$clickable:r,$height:"fixed"===m?12*o+4*(o-1):12,onClick:()=>r&&((e,t)=>{v&&v(e,t)})(i,t)},n)}))},`wrapper-${n}`)}))}),`week-cell-${n.format($)}`)})),(()=>{if(u&&M.current&&!(E&&E<u))return e(fH,{children:t(gH,Object.assign({"data-testid":"time-bar-expand-collapse-button",styleType:"light",onClick:P},{children:[e(vH,{$isExpanded:k}),(k?"Hide":"Show")+" later times"]}))})})()]})},_H=I.div`
6794
+ `;var $H=so;var kH=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(null!=o&&(void 0===s?o==o&&!$H(o):n(o,s)))var s=o,l=a}return l};var SH=kH,OH=hS,CH=function(e,t){return e<t};var TH=Pa((function(e,t){return e&&e.length?SH(e,OH(t),CH):void 0}));var DH=kH,jH=function(e,t){return e>t},_H=hS;var IH=Pa((function(e,t){return e&&e.length?DH(e,_H(t),jH):void 0}));const EH=({calendarDate:n,disabledDates:r,selectedDate:i,onSelect:a,minDate:s,maxDate:l,startTime:c,endTime:d,maxVisibleCellHeight:u,slots:p,interval:h=30,variant:m="flexible",enableSelection:f=!0,onSlotClick:v})=>{var b,y,x,w;const $="YYYY-MM-DD",[k,S]=o(!1),[O,C]=o(),T=g((()=>fd.generateDaysForCurrentWeek(n)),[n]),D=Object.values(null!=p?p:{}).flat(),j=null!==(y=null!=c?c:null===(b=TH(D,"startTime"))||void 0===b?void 0:b.startTime)&&void 0!==y?y:"00:00",_=null!==(w=null!=d?d:null===(x=IH(D,"endTime"))||void 0===x?void 0:x.endTime)&&void 0!==w?w:"24:00",I=Math.ceil(wd.getTimeDiffInMinutes(j,_)/h),{height:E,ref:M}=an(),A=u?E<u||k?E:u:E,N=ya({height:A}),B=g((()=>{if(p){const e={};return Object.entries(p).forEach((([t,n])=>{const r=function(e){const t=Array(I).fill({});return e.forEach((e=>{const n=Math.max(0,wd.getTimeDiffInMinutes(j,e.startTime)/h),r=Math.min(I,wd.getTimeDiffInMinutes(j,e.endTime)/h),i=Math.ceil(r)-Math.floor(n);switch(m){case"fixed":t[Math.floor(n)]=Object.assign(Object.assign({},e),{cellLength:r-n});break;case"flexible":for(let a=0;a<i;a++){const o=wd.addMinutesToTime(j,Math.floor(n+a)*h),s=wd.addMinutesToTime(o,h);let l;V_(t[Math.floor(n+a)])?0===a&&n%1!=0?l="top":a===i-1&&r%1!=0&&(l="bottom"):l=void 0,t[Math.floor(n+a)]=Object.assign(Object.assign({},e),{id:`${e.id}-${a}`,startTime:o,endTime:s,cellLength:1,halfFill:l})}}})),t}(n);e[t]=function(e){var t,n,r,i;let a=0;switch(m){case"fixed":for(e=e.reduce(((e,t)=>{const n=e.length>0?e[e.length-1]:e[0];return V_(t)&&V_(n)?e:[...e,t]}),[{}]);a<e.length;){if(V_(e[a])){const o=null!==(n=null===(t=e[a-1])||void 0===t?void 0:t.endTime)&&void 0!==n?n:j,s=null!==(i=null===(r=e[a+1])||void 0===r?void 0:r.startTime)&&void 0!==i?i:_;if(o!==s){const t=wd.getTimeDiffInMinutes(o,s)/h;e[a]=Object.assign(Object.assign({},F(a)),{startTime:o,endTime:s,cellLength:t})}}a++}break;case"flexible":for(;a<e.length;)V_(e[a])?(e[a]=F(a),a++):a+=e[a].cellLength}return e.filter((e=>!V_(e)&&e.cellLength>0))}(r)})),e}return{}}),[p]),R=e=>{C(e)},L=()=>{C(void 0)},P=e=>{e.preventDefault(),S((e=>!e))},z=e=>{var t;const n=fd.isWithinRange(e,s?rd(s):void 0,l?rd(l):void 0),i=null!==(t=r&&r.includes(e.format($)))&&void 0!==t&&t;return!n||i};function F(e,t=1){return{id:`${e.toString()}-${(new Date).getTime()}`,startTime:"",endTime:"",clickable:!1,styleAttributes:{backgroundColor:"#E0E4E5"},cellLength:t}}return t(uH,{children:[e(dH,{children:T.map(((t,n)=>{const r=(e=>{const t=e.format($),n=z(e),r={},a=f&&!n;return n&&(r.disabled=!0),r.interactive=f?a:null,a&&O&&e.isSame(O,"day")&&(r.circleLeft="hover-current",r.circleRight="hover-current",r.circleShadow=!0),[i].includes(t)&&(r.labelType="selected",r.circleLeft="selected-outline",r.circleRight="selected-outline"),r})(t);return e(Au,Object.assign({date:t,calendarDate:rd(i),onSelect:()=>{((e,t)=>{!t&&f&&a(e)})(t,!r.interactive)},onHover:R,onHoverEnd:L},r),`day-${n}`)}))}),e(dH,{children:T.map(((t,n)=>e(lH,{children:e(cH,Object.assign({weight:"semibold",$disabled:z(t)},{children:rd(t).format("ddd")}))},`week-day-${n}`)))}),(()=>{let t=!1;const n=e=>{const n=rd(j,"HH:mm").add(4*e*h,"minutes"),r=n.format("h"),i=n.format("mm"),a=n.format("a");let o=`${r}${"00"!==i?` ${i}`:""}`;return t||"pm"!==a||"00"!==i||(o+=` ${a}`,t=!0),o};return e(mH,Object.assign({$height:A},{children:Array(Math.ceil(I/4)).fill(void 0).map(((t,r)=>e(fH,{children:e(gH,{children:n(r)})},`time-${r}`)))}))})(),e(pH,Object.assign({style:N},{children:e(hH,Object.assign({ref:M},{children:T.map(((t,n)=>{var r;const i=t.format($),a=null!==(r=B[i])&&void 0!==r?r:Array("flexible"===m?I:1).fill(void 0).map(((e,t)=>F(t,"fixed"===m?I:void 0)));return e(vH,{children:a.map((t=>{const{id:n,clickable:r=!0,styleAttributes:a,cellLength:o,halfFill:s}=t,{styleType:l="default",backgroundColor:c,backgroundColor2:d}=a;return e(wH,{$type:"vertical",$variant:"default",$styleType:l,$bgColor:c,$bgColor2:d,$halfFill:s,$clickable:r,$height:"fixed"===m?12*o+4*(o-1):12,onClick:()=>r&&((e,t)=>{v&&v(e,t)})(i,t)},n)}))},`wrapper-${n}`)}))}),`week-cell-${n.format($)}`)})),(()=>{if(u&&M.current&&!(E&&E<u))return e(bH,{children:t(yH,Object.assign({"data-testid":"time-bar-expand-collapse-button",styleType:"light",onClick:P},{children:[e(xH,{$isExpanded:k}),(k?"Hide":"Show")+" later times"]}))})})()]})},MH=I.div`
6787
6795
  min-width: 18.5rem;
6788
6796
 
6789
6797
  [data-id="calendar-header"] {
@@ -6791,27 +6799,27 @@ object-assign
6791
6799
  padding: 0 1.25rem;
6792
6800
  }
6793
6801
  }
6794
- `,IH="YYYY-MM-DD",EH=t=>{var{disabledDates:n,onWeekDisplayChange:r,onChange:i,value:s,minDate:l,maxDate:c,startTime:d,endTime:p,slots:h,interval:m,variant:f,maxVisibleCellHeight:g,showNavigationHeader:v=!0,enableSelection:b,onSlotClick:y,currentCalendarDate:x}=t,w=lt(t,["disabledDates","onWeekDisplayChange","onChange","value","minDate","maxDate","startTime","endTime","slots","interval","variant","maxVisibleCellHeight","showNavigationHeader","enableSelection","onSlotClick","currentCalendarDate"]);const[$,k]=o(s),S=a(),O=a(void 0);u((()=>{k(s)}),[s]);const C=e=>{const t=e.format(IH);k(t),i&&i(t)},T=(e,t)=>{y&&y(e,t)},D=e=>{if(r){const t={week:{firstDayOfWeek:e.startOf("week").format(IH),lastDayOfWeek:e.endOf("week").format(IH)},month:e.month()+1,year:e.year()};r(t)}};return e(_H,Object.assign({},w,{children:e(hu,Object.assign({ref:S,type:"standalone",dynamicHeight:!0,initialCalendarDate:wd.toDayjs($||x).endOf("week").format(IH),selectedStartDate:$,getLeftArrowDate:e=>e.subtract(1,"week"),getRightArrowDate:e=>e.add(1,"week"),isLeftArrowDisabled:e=>l&&rd(e).subtract(1,"week").isBefore(l,"week"),isRightArrowDisabled:e=>c&&rd(e).add(1,"week").isAfter(c,"week"),onCalendarDateChange:e=>{O.current&&O.current.isSame(e,"week")||D(e),O.current=e},showNavigationHeader:v,minDate:l,maxDate:c,getMonthHeaderLabel:e=>rd(e).endOf("week").format("MMM"),getYearHeaderLabel:e=>rd(e).endOf("week").format("YYYY")},{children:({calendarDate:t})=>(t=>e(jH,{calendarDate:t,disabledDates:n,selectedDate:$,minDate:l,maxDate:c,startTime:d,endTime:p,onSelect:C,slots:h,interval:m,variant:f,maxVisibleCellHeight:g,enableSelection:b,onSlotClick:T}))(t)}))}))},MH=I(xu)`
6802
+ `,AH="YYYY-MM-DD",NH=t=>{var{disabledDates:n,onWeekDisplayChange:r,onChange:i,value:s,minDate:l,maxDate:c,startTime:d,endTime:p,slots:h,interval:m,variant:f,maxVisibleCellHeight:g,showNavigationHeader:v=!0,enableSelection:b,onSlotClick:y,currentCalendarDate:x}=t,w=lt(t,["disabledDates","onWeekDisplayChange","onChange","value","minDate","maxDate","startTime","endTime","slots","interval","variant","maxVisibleCellHeight","showNavigationHeader","enableSelection","onSlotClick","currentCalendarDate"]);const[$,k]=o(s),S=a(),O=a(void 0);u((()=>{k(s)}),[s]);const C=e=>{const t=e.format(AH);k(t),i&&i(t)},T=(e,t)=>{y&&y(e,t)},D=e=>{if(r){const t={week:{firstDayOfWeek:e.startOf("week").format(AH),lastDayOfWeek:e.endOf("week").format(AH)},month:e.month()+1,year:e.year()};r(t)}};return e(MH,Object.assign({},w,{children:e(hu,Object.assign({ref:S,type:"standalone",dynamicHeight:!0,initialCalendarDate:wd.toDayjs($||x).endOf("week").format(AH),selectedStartDate:$,getLeftArrowDate:e=>e.subtract(1,"week"),getRightArrowDate:e=>e.add(1,"week"),isLeftArrowDisabled:e=>l&&rd(e).subtract(1,"week").isBefore(l,"week"),isRightArrowDisabled:e=>c&&rd(e).add(1,"week").isAfter(c,"week"),onCalendarDateChange:e=>{O.current&&O.current.isSame(e,"week")||D(e),O.current=e},showNavigationHeader:v,minDate:l,maxDate:c,getMonthHeaderLabel:e=>rd(e).endOf("week").format("MMM"),getYearHeaderLabel:e=>rd(e).endOf("week").format("YYYY")},{children:({calendarDate:t})=>(t=>e(EH,{calendarDate:t,disabledDates:n,selectedDate:$,minDate:l,maxDate:c,startTime:d,endTime:p,onSelect:C,slots:h,interval:m,variant:f,maxVisibleCellHeight:g,enableSelection:b,onSlotClick:T}))(t)}))}))},BH=I(xu)`
6795
6803
  ${e=>{const{$variant:t}=e;if("default"===t)return E`
6796
6804
  ${Il.getFontFamily("H5","semibold")}
6797
6805
  color: ${hl.Neutral[3]};
6798
6806
  `}}
6799
- `,AH=I.div`
6807
+ `,RH=I.div`
6800
6808
  display: flex;
6801
6809
  align-items: center;
6802
6810
  justify-content: center;
6803
6811
  pointer-events: none;
6804
6812
  user-select: none;
6805
6813
  margin-bottom: 0.188rem;
6806
- `,NH=I.div`
6814
+ `,LH=I.div`
6807
6815
  width: 100%;
6808
6816
  display: grid;
6809
6817
  grid-template-columns: repeat(7, 1fr);
6810
- `,BH=I.div`
6818
+ `,PH=I.div`
6811
6819
  grid-column: 1 / -1;
6812
6820
  display: flex;
6813
6821
  min-height: 7.625rem;
6814
- `,RH=I.div`
6822
+ `,zH=I.div`
6815
6823
  ${Il.getTextStyle("XSmall","semibold")}
6816
6824
  margin: 1rem 0rem;
6817
6825
  display: flex;
@@ -6823,12 +6831,12 @@ object-assign
6823
6831
  span {
6824
6832
  display: block;
6825
6833
  }
6826
- `,LH=I.div`
6834
+ `,FH=I.div`
6827
6835
  display: flex;
6828
6836
  flex-direction: column;
6829
6837
  flex: 1;
6830
6838
  margin: 1px;
6831
- `;rd.extend(sd);const PH={id:"1",startTime:"",endTime:"",clickable:!1,styleAttributes:{styleType:"stripes",backgroundColor:"#ECEFEF",backgroundColor2:"#E0E4E5"}},zH=({calendarDate:n,disabledDates:r,selectedDate:i,onSelect:a,minDate:o,maxDate:s,slots:l,enableSelection:c=!0,onSlotClick:d})=>{const u=g((()=>fd.generateDaysForCurrentWeek(n)),[n]),p="YYYY-MM-DD",h=e=>{const t=e.format(p),n=(e=>{const t=fd.isWithinRange(e,o?rd(o):void 0,s?rd(s):void 0),n=r&&r.includes(e.format(p));return!t||n})(e),a={},l={};return n&&(a.$disabledDisplay=!0,l.$disabledDisplay=!0),a.$interactive=c&&!n,[i].includes(t)&&(a.$selected=!0,l.$selected=!0),{styleCircleProps:a,styleLabelProps:l}};return t(NH,{children:[e(gu,{children:u.map(((t,n)=>{const r="default",{styleCircleProps:i,styleLabelProps:o}=h(t);return e(vu,{children:e(wu,Object.assign({$variant:r,onClick:()=>((e,t)=>{!t&&c&&a(e)})(t,!i.$interactive)},i,{children:e(MH,Object.assign({weight:o.$selected?"semibold":"regular",$variant:r},o,{children:t.format("D")}))}))},`day-${n}`)}))}),u.map(((t,n)=>e(AH,{children:e(El.XSmall,Object.assign({weight:"semibold"},{children:rd(t).format("ddd")}))},`week-day-${n}`))),e(BH,{children:u.map(((n,r)=>{const i=n.format(p),a=l&&(l[i]?l[i]:[PH]);return e(LH,{children:a&&a.map((n=>{const{id:r,startTime:a,endTime:o,clickable:s=!0,styleAttributes:l}=n,{color:c,styleType:u="default",backgroundColor:p,backgroundColor2:h}=l;return e(tH,Object.assign({$type:"vertical",$variant:"default",$styleType:u,$bgColor:p,$bgColor2:h,$clickable:s,onClick:()=>s&&((e,t)=>{d(e,t)})(i,n)},{children:t(RH,Object.assign({style:{color:c}},{children:[e("span",{children:fd.convertTo12HourFormat(a)}),o&&a&&e("span",{children:"-"}),e("span",{children:fd.convertTo12HourFormat(o)})]}))}),r)}))},`wrapper-${r}`)}))},`week-cell-${n.format(p)}`)]})},FH=I.div`
6839
+ `;rd.extend(sd);const HH={id:"1",startTime:"",endTime:"",clickable:!1,styleAttributes:{styleType:"stripes",backgroundColor:"#ECEFEF",backgroundColor2:"#E0E4E5"}},WH=({calendarDate:n,disabledDates:r,selectedDate:i,onSelect:a,minDate:o,maxDate:s,slots:l,enableSelection:c=!0,onSlotClick:d})=>{const u=g((()=>fd.generateDaysForCurrentWeek(n)),[n]),p="YYYY-MM-DD",h=e=>{const t=e.format(p),n=(e=>{const t=fd.isWithinRange(e,o?rd(o):void 0,s?rd(s):void 0),n=r&&r.includes(e.format(p));return!t||n})(e),a={},l={};return n&&(a.$disabledDisplay=!0,l.$disabledDisplay=!0),a.$interactive=c&&!n,[i].includes(t)&&(a.$selected=!0,l.$selected=!0),{styleCircleProps:a,styleLabelProps:l}};return t(LH,{children:[e(gu,{children:u.map(((t,n)=>{const r="default",{styleCircleProps:i,styleLabelProps:o}=h(t);return e(vu,{children:e(wu,Object.assign({$variant:r,onClick:()=>((e,t)=>{!t&&c&&a(e)})(t,!i.$interactive)},i,{children:e(BH,Object.assign({weight:o.$selected?"semibold":"regular",$variant:r},o,{children:t.format("D")}))}))},`day-${n}`)}))}),u.map(((t,n)=>e(RH,{children:e(El.XSmall,Object.assign({weight:"semibold"},{children:rd(t).format("ddd")}))},`week-day-${n}`))),e(PH,{children:u.map(((n,r)=>{const i=n.format(p),a=l&&(l[i]?l[i]:[HH]);return e(FH,{children:a&&a.map((n=>{const{id:r,startTime:a,endTime:o,clickable:s=!0,styleAttributes:l}=n,{color:c,styleType:u="default",backgroundColor:p,backgroundColor2:h}=l;return e(iH,Object.assign({$type:"vertical",$variant:"default",$styleType:u,$bgColor:p,$bgColor2:h,$clickable:s,onClick:()=>s&&((e,t)=>{d(e,t)})(i,n)},{children:t(zH,Object.assign({style:{color:c}},{children:[e("span",{children:fd.convertTo12HourFormat(a)}),o&&a&&e("span",{children:"-"}),e("span",{children:fd.convertTo12HourFormat(o)})]}))}),r)}))},`wrapper-${r}`)}))},`week-cell-${n.format(p)}`)]})},VH=I.div`
6832
6840
  min-width: 18.5rem;
6833
6841
 
6834
6842
  [data-id="calendar-header"] {
@@ -6836,7 +6844,7 @@ object-assign
6836
6844
  padding: 0 1.25rem;
6837
6845
  }
6838
6846
  }
6839
- `,HH="YYYY-MM-DD",WH=t=>{var{disabledDates:n,onWeekDisplayChange:r,onChange:i,value:s,minDate:l,maxDate:c,slots:d,showNavigationHeader:p=!0,enableSelection:h,onSlotClick:m,currentCalendarDate:f}=t,g=lt(t,["disabledDates","onWeekDisplayChange","onChange","value","minDate","maxDate","slots","showNavigationHeader","enableSelection","onSlotClick","currentCalendarDate"]);const[v,b]=o(s),y=a(),x=a(void 0);u((()=>{b(s)}),[s]);const w=e=>{const t=e.format(HH);b(t),i&&i(t)},$=(e,t)=>{m&&m(e,t)},k=e=>{if(r){const t={week:{firstDayOfWeek:e.startOf("week").format(HH),lastDayOfWeek:e.endOf("week").format(HH)},month:e.month()+1,year:e.year()};r(t)}};return e(FH,Object.assign({},g,{children:e(hu,Object.assign({ref:y,type:"standalone",dynamicHeight:!0,initialCalendarDate:wd.toDayjs(v||f).endOf("week").format(HH),selectedStartDate:v,getLeftArrowDate:e=>e.subtract(1,"week"),getRightArrowDate:e=>e.add(1,"week"),isLeftArrowDisabled:e=>l&&rd(e).subtract(1,"week").isBefore(l,"week"),isRightArrowDisabled:e=>c&&rd(e).add(1,"week").isAfter(c,"week"),onCalendarDateChange:e=>{x.current&&x.current.isSame(e,"week")||k(e),x.current=e},showNavigationHeader:p,minDate:l,maxDate:c,getMonthHeaderLabel:e=>rd(e).endOf("week").format("MMM"),getYearHeaderLabel:e=>rd(e).endOf("week").format("YYYY")},{children:({calendarDate:t})=>e(zH,{calendarDate:t,disabledDates:n,selectedDate:v,minDate:l,maxDate:c,onSelect:w,slots:d,enableSelection:h,onSlotClick:$})}))}))},VH=I.div`
6847
+ `,YH="YYYY-MM-DD",UH=t=>{var{disabledDates:n,onWeekDisplayChange:r,onChange:i,value:s,minDate:l,maxDate:c,slots:d,showNavigationHeader:p=!0,enableSelection:h,onSlotClick:m,currentCalendarDate:f}=t,g=lt(t,["disabledDates","onWeekDisplayChange","onChange","value","minDate","maxDate","slots","showNavigationHeader","enableSelection","onSlotClick","currentCalendarDate"]);const[v,b]=o(s),y=a(),x=a(void 0);u((()=>{b(s)}),[s]);const w=e=>{const t=e.format(YH);b(t),i&&i(t)},$=(e,t)=>{m&&m(e,t)},k=e=>{if(r){const t={week:{firstDayOfWeek:e.startOf("week").format(YH),lastDayOfWeek:e.endOf("week").format(YH)},month:e.month()+1,year:e.year()};r(t)}};return e(VH,Object.assign({},g,{children:e(hu,Object.assign({ref:y,type:"standalone",dynamicHeight:!0,initialCalendarDate:wd.toDayjs(v||f).endOf("week").format(YH),selectedStartDate:v,getLeftArrowDate:e=>e.subtract(1,"week"),getRightArrowDate:e=>e.add(1,"week"),isLeftArrowDisabled:e=>l&&rd(e).subtract(1,"week").isBefore(l,"week"),isRightArrowDisabled:e=>c&&rd(e).add(1,"week").isAfter(c,"week"),onCalendarDateChange:e=>{x.current&&x.current.isSame(e,"week")||k(e),x.current=e},showNavigationHeader:p,minDate:l,maxDate:c,getMonthHeaderLabel:e=>rd(e).endOf("week").format("MMM"),getYearHeaderLabel:e=>rd(e).endOf("week").format("YYYY")},{children:({calendarDate:t})=>e(WH,{calendarDate:t,disabledDates:n,selectedDate:v,minDate:l,maxDate:c,onSelect:w,slots:d,enableSelection:h,onSlotClick:$})}))}))},qH=I.div`
6840
6848
  display: flex;
6841
6849
  justify-content: center;
6842
6850
  align-items: center;
@@ -6868,7 +6876,7 @@ object-assign
6868
6876
  `;case"disabled":return E`
6869
6877
  background-color: ${hl.Neutral[4]};
6870
6878
  `}}}
6871
- `,YH=I.div`
6879
+ `,XH=I.div`
6872
6880
  width: 4px;
6873
6881
  flex-grow: 1;
6874
6882
  margin-top: 0.5rem;
@@ -6885,12 +6893,12 @@ object-assign
6885
6893
  margin-left: -0.15rem;
6886
6894
  background-color: ${hl.Validation.Red.Icon};
6887
6895
  `}}}
6888
- `,UH=I.div`
6896
+ `,KH=I.div`
6889
6897
  display: flex;
6890
6898
  flex-direction: column;
6891
6899
  align-items: center;
6892
6900
  margin-right: 1rem;
6893
- `,qH=I.div`
6901
+ `,GH=I.div`
6894
6902
  grid-column: ${e=>e.$startCol?e.$startCol:3} / span
6895
6903
  ${e=>e.$colSpan?e.$colSpan:8};
6896
6904
 
@@ -6901,72 +6909,72 @@ object-assign
6901
6909
  ${gl.MaxWidth.mobileL} {
6902
6910
  grid-column: span 4;
6903
6911
  }
6904
- `,XH=I(El.H3)`
6912
+ `,ZH=I(El.H3)`
6905
6913
  margin-bottom: 1rem;
6906
6914
 
6907
6915
  ${gl.MaxWidth.tablet} {
6908
6916
  margin-bottom: 1.5rem;
6909
6917
  }
6910
- `,KH=I(El.H4)`
6918
+ `,QH=I(El.H4)`
6911
6919
  margin-top: -0.125rem;
6912
6920
  margin-bottom: 0.5rem;
6913
- `,GH=I.div`
6921
+ `,JH=I.div`
6914
6922
  display: flex;
6915
6923
 
6916
- :last-of-type ${YH} {
6924
+ :last-of-type ${XH} {
6917
6925
  margin-bottom: 0;
6918
6926
  }
6919
- `,ZH=I.div`
6927
+ `,eW=I.div`
6920
6928
  margin-bottom: 2rem;
6921
6929
  width: 100%;
6922
- `,QH=I(El.H3)`
6930
+ `,tW=I(El.H3)`
6923
6931
  display: flex;
6924
6932
  flex-wrap: wrap;
6925
6933
  margin-bottom: 0.5rem;
6926
6934
  gap: 0.5rem;
6927
- `,JH=I(IP)`
6935
+ `,nW=I(AP)`
6928
6936
  padding: 0.125rem 0.5rem;
6929
- `,eW=({items:r,className:i,title:a,startCol:o,colSpan:s,"data-base-indicator-testid":l,"data-testid":c="timeline"})=>{const d=t=>"string"==typeof t?e(El.Body,Object.assign({className:"timeline-item-content-text"},{children:t})):e(n,{children:t}),u=t=>"string"==typeof t?e(KH,Object.assign({weight:"semibold",className:"timeline-item-title"},{children:t})):e(n,{children:t}),p=e=>e.slice(0,2).map(((e,t)=>O(JH,Object.assign({},e,{type:e.type,key:`status-pill-${t}`,"data-testid":"status-pill",className:"timeline-status-pill"}),e.children))),h=t=>{switch(t){case"completed":return e(le,{});case"error":return e(se,{});default:return null}};return t(qH,Object.assign({className:i,"data-testid":c,$startCol:o,$colSpan:s},{children:[e(XH,Object.assign({id:"timeline-title"},{children:a})),r.map(((n,r)=>{const{title:i,content:a,statuses:o,variant:s}=n,c=l?`circleindicator${r+1}_div_${l}`:"circleindicator",m=s||(0===r?"current":"upcoming-active");return t(GH,{children:[t(UH,{children:[e(VH,Object.assign({"data-testid":c,$variant:m},{children:h(m)})),e(YH,{$variant:m})]}),t(ZH,Object.assign({className:"timeline-item-content"},{children:[u(i),o&&e(QH,{children:p(o)}),d(a)]}))]},`timeline-item-${r}`)}))]}))},tW=["#FFE6BB","#D8EFEB","#E6EAFE","#FAE4E5","#D3EEFC"],nW=15,rW=252,iW=["#FFF2DD","#EBF7F5","#F2F4FE","#FCF1F2","#E9F6FD"],aW=M`
6937
+ `,rW=({items:r,className:i,title:a,startCol:o,colSpan:s,"data-base-indicator-testid":l,"data-testid":c="timeline"})=>{const d=t=>"string"==typeof t?e(El.Body,Object.assign({className:"timeline-item-content-text"},{children:t})):e(n,{children:t}),u=t=>"string"==typeof t?e(QH,Object.assign({weight:"semibold",className:"timeline-item-title"},{children:t})):e(n,{children:t}),p=e=>e.slice(0,2).map(((e,t)=>O(nW,Object.assign({},e,{type:e.type,key:`status-pill-${t}`,"data-testid":"status-pill",className:"timeline-status-pill"}),e.children))),h=t=>{switch(t){case"completed":return e(le,{});case"error":return e(se,{});default:return null}};return t(GH,Object.assign({className:i,"data-testid":c,$startCol:o,$colSpan:s},{children:[e(ZH,Object.assign({id:"timeline-title"},{children:a})),r.map(((n,r)=>{const{title:i,content:a,statuses:o,variant:s}=n,c=l?`circleindicator${r+1}_div_${l}`:"circleindicator",m=s||(0===r?"current":"upcoming-active");return t(JH,{children:[t(KH,{children:[e(qH,Object.assign({"data-testid":c,$variant:m},{children:h(m)})),e(XH,{$variant:m})]}),t(eW,Object.assign({className:"timeline-item-content"},{children:[u(i),o&&e(tW,{children:p(o)}),d(a)]}))]},`timeline-item-${r}`)}))]}))},iW=["#FFE6BB","#D8EFEB","#E6EAFE","#FAE4E5","#D3EEFC"],aW=15,oW=252,sW=["#FFF2DD","#EBF7F5","#F2F4FE","#FCF1F2","#E9F6FD"],lW=M`
6930
6938
  100% {
6931
6939
  -webkit-transform: rotate(360deg);
6932
6940
  transform: rotate(360deg);
6933
6941
  }
6934
- `,oW=I(Lm)`
6942
+ `,cW=I(Lm)`
6935
6943
  color: ${hl.Neutral[3]};
6936
6944
  svg {
6937
6945
  ${e=>{if(e.$loading)return E`
6938
- animation: ${aW} 4s linear infinite;
6946
+ animation: ${lW} 4s linear infinite;
6939
6947
  `}}
6940
6948
  }
6941
- `,sW=I.div`
6949
+ `,dW=I.div`
6942
6950
  display: flex;
6943
6951
  padding-bottom: 1rem;
6944
6952
  justify-content: space-between;
6945
- `,lW=I.div`
6953
+ `,uW=I.div`
6946
6954
  display: flex;
6947
6955
  align-items: center;
6948
6956
  justify-content: center;
6949
6957
  gap: 0.625rem;
6950
- `,cW=I(El.H6)`
6958
+ `,pW=I(El.H6)`
6951
6959
  color: ${hl.Neutral[3]};
6952
- `,dW=I(am)`
6960
+ `,hW=I(am)`
6953
6961
  width: 400px;
6954
- `,uW=r=>{var{selectedDate:i,loading:a,tableContainerRef:o,totalRecords:s,onPreviousDayClick:l,onNextDayClick:c,onRefresh:d,onCalendarDateSelect:u}=r,p=lt(r,["selectedDate","loading","tableContainerRef","totalRecords","onPreviousDayClick","onNextDayClick","onRefresh","onCalendarDateSelect"]);const h=()=>{o.current&&(o.current.scrollTop=0)},m=()=>{d&&(h(),d())};return t(sW,{children:[e(dW,Object.assign({selectedDate:i,loading:a},p,{onRightArrowClick:e=>{h(),c(e)},onLeftArrowClick:e=>{h(),l(e)},onCalendarDateSelect:u})),void 0===s?e(n,{}):t(lW,{children:[t(cW,Object.assign({"data-testid":"timetable-records-results",weight:"semibold"},{children:[s," results found"]})),d&&e(oW,Object.assign({"data-testid":"timetable-records-refresh-btn",styleType:"light",sizeType:"small",disabled:a,onClick:m,$loading:a},{children:e(ce,{})}))]})]})},pW=I.div`
6962
+ `,mW=r=>{var{selectedDate:i,loading:a,tableContainerRef:o,totalRecords:s,onPreviousDayClick:l,onNextDayClick:c,onRefresh:d,onCalendarDateSelect:u}=r,p=lt(r,["selectedDate","loading","tableContainerRef","totalRecords","onPreviousDayClick","onNextDayClick","onRefresh","onCalendarDateSelect"]);const h=()=>{o.current&&(o.current.scrollTop=0)},m=()=>{d&&(h(),d())};return t(dW,{children:[e(hW,Object.assign({selectedDate:i,loading:a},p,{onRightArrowClick:e=>{h(),c(e)},onLeftArrowClick:e=>{h(),l(e)},onCalendarDateSelect:u})),void 0===s?e(n,{}):t(uW,{children:[t(pW,Object.assign({"data-testid":"timetable-records-results",weight:"semibold"},{children:[s," results found"]})),d&&e(cW,Object.assign({"data-testid":"timetable-records-refresh-btn",styleType:"light",sizeType:"small",disabled:a,onClick:m,$loading:a},{children:e(ce,{})}))]})]})},fW=I.div`
6955
6963
  display: flex;
6956
6964
  width: 100%;
6957
- `,hW=I.div`
6965
+ `,gW=I.div`
6958
6966
  border-bottom: 1px solid ${hl.Neutral[5]};
6959
6967
  ${e=>{if(e.$isOnTheHour)return E`
6960
6968
  box-shadow: inset -0.5px 0px ${hl.Accent.Light[1]};
6961
6969
  `}}
6962
- `,mW=I.div`
6970
+ `,vW=I.div`
6963
6971
  display: flex;
6964
6972
  margin-bottom: 2px;
6965
6973
  height: 65px;
6966
- `,fW=I.div`
6974
+ `,bW=I.div`
6967
6975
  width: 2px;
6968
6976
  height: 100%;
6969
- `,gW=I.div`
6977
+ `,yW=I.div`
6970
6978
  height: 100%;
6971
6979
  width: ${({$width:e})=>`${e}px`};
6972
6980
  border-radius: 4px;
@@ -7006,25 +7014,25 @@ object-assign
7006
7014
  cursor: ${r?"pointer":"default"};
7007
7015
  }
7008
7016
  `}}}
7009
- `,vW=I(El.H6)`
7017
+ `,xW=I(El.H6)`
7010
7018
  text-overflow: ellipsis;
7011
7019
  overflow: hidden;
7012
7020
  white-space: nowrap;
7013
- `,bW=I(El.XSmall)`
7021
+ `,wW=I(El.XSmall)`
7014
7022
  color: ${hl.Neutral[3]};
7015
7023
  text-overflow: ellipsis;
7016
7024
  overflow: hidden;
7017
7025
  white-space: nowrap;
7018
- `,yW=i.memo((({id:n,startTime:r,endTime:i,title:a,subtitle:o,status:s,intervalWidth:l,rowBarColor:c,containerRef:d,customPopover:u,roundedStartTime:p=r,roundedEndTime:h=i,onClick:m})=>{const f=0===rd(h,"HH:mm").get("minutes"),g=wd.getTimeDiffInMinutes(p,h)/nW*l-2,v=!!m||u&&"click"===u.trigger;return e((({wrapper:e,children:t})=>u?e(t):t),Object.assign({wrapper:t=>(t=>{const n={position:"bottom-start",rootNode:d,customOffset:u.offset,children:t,trigger:u.trigger,delay:u.delay,popoverContent:u.content};return e(ux,Object.assign({},n,{children:t}))})(t)},{children:e(hW,Object.assign({"data-testid":"block-container",$isOnTheHour:f},{children:t(mW,{children:[t(gW,Object.assign({$width:g,$status:s,$mainColor:c.mainColor,$altColor:c.alternateColor,$isClickable:v,onClick:e=>{m&&m({id:n,startTime:r,endTime:i,status:s,title:a,subtitle:o,customPopover:u},e)}},{children:[a&&e(vW,Object.assign({weight:"semibold"},{children:a})),o&&e(bW,Object.assign({weight:"bold"},{children:o}))]})),e(fW,{})]})}),"block-container-key")}))})),xW=t=>{var{id:n,timetableMinTime:r,timetableMaxTime:i,rowMinTime:a,rowMaxTime:o,rowCells:s,rowBarColor:l,intervalWidth:c,containerRef:d,outOfRangeCellPopover:u}=t,p=lt(t,["id","timetableMinTime","timetableMaxTime","rowMinTime","rowMaxTime","rowCells","rowBarColor","intervalWidth","containerRef","outOfRangeCellPopover"]);const h=p["data-testid"]||"timetable-row",m=a?Ap.roundToNearestInterval(a,nW):r,f=o?Ap.roundToNearestInterval(o,nW,!0):i,v=g((()=>{const e=[];m&&rd(r,"HH:mm").isBefore(rd(m,"HH:mm"))&&e.push({id:n,startTime:r,endTime:m,status:"blocked",customPopover:u});const t=[...s].sort(((e,t)=>{const n=rd(e.startTime,"HH:mm"),r=rd(t.startTime,"HH:mm");return n.isBefore(r)?-1:n.isAfter(r)?1:0}));let l;return t.forEach(((r,i)=>{var a;const{startTime:o,endTime:s}=r;let c=Ap.roundToNearestInterval(o,nW);l&&rd(c,"HH:mm").isBefore(rd(l,"HH:mm"))&&(c=Ap.roundToNearestInterval(o,nW,!0));const d=Ap.roundToNearestInterval(s,nW,!0);e.push(Object.assign(Object.assign({},r),{roundedStartTime:c,roundedEndTime:d}));const u=(null===(a=t[i+1])||void 0===a?void 0:a.startTime)||f,p=rd(Ap.roundToNearestInterval(u,nW),"HH:mm");let h=rd(d,"HH:mm");for(;h.isBefore(p);)if(m=p,h.get("hour")!=m.get("hour")){const t=h.add(1,"hour").startOf("hour");e.push({id:n,startTime:h.format("HH:mm").toString(),endTime:t.format("HH:mm").toString(),status:"disabled"}),h=t}else e.push({id:n,startTime:h.format("HH:mm").toString(),endTime:p.format("HH:mm").toString(),status:"disabled"}),h=p;var m;l=h.format("HH:mm").toString()})),f&&rd(i,"HH:mm").isAfter(rd(f,"HH:mm"))&&e.push({id:n,startTime:f,endTime:i,status:"blocked",customPopover:u}),0!==t.length||a||o||e.push({id:n,startTime:r,endTime:i,status:"blocked",customPopover:u}),e}),[m,r,s,f,i,a,o,n,u]);return e(pW,Object.assign({"data-testid":h},p,{children:v.map(((t,n)=>e(yW,Object.assign({},t,{intervalWidth:c,rowBarColor:l,containerRef:d}),`${n}-row-cell-key`)))}))},wW=I.div``,$W=I.div`
7026
+ `,$W=i.memo((({id:n,startTime:r,endTime:i,title:a,subtitle:o,status:s,intervalWidth:l,rowBarColor:c,containerRef:d,customPopover:u,roundedStartTime:p=r,roundedEndTime:h=i,onClick:m})=>{const f=0===rd(h,"HH:mm").get("minutes"),g=wd.getTimeDiffInMinutes(p,h)/aW*l-2,v=!!m||u&&"click"===u.trigger;return e((({wrapper:e,children:t})=>u?e(t):t),Object.assign({wrapper:t=>(t=>{const n={position:"bottom-start",rootNode:d,customOffset:u.offset,children:t,trigger:u.trigger,delay:u.delay,popoverContent:u.content};return e(ux,Object.assign({},n,{children:t}))})(t)},{children:e(gW,Object.assign({"data-testid":"block-container",$isOnTheHour:f},{children:t(vW,{children:[t(yW,Object.assign({$width:g,$status:s,$mainColor:c.mainColor,$altColor:c.alternateColor,$isClickable:v,onClick:e=>{m&&m({id:n,startTime:r,endTime:i,status:s,title:a,subtitle:o,customPopover:u},e)}},{children:[a&&e(xW,Object.assign({weight:"semibold"},{children:a})),o&&e(wW,Object.assign({weight:"bold"},{children:o}))]})),e(bW,{})]})}),"block-container-key")}))})),kW=t=>{var{id:n,timetableMinTime:r,timetableMaxTime:i,rowMinTime:a,rowMaxTime:o,rowCells:s,rowBarColor:l,intervalWidth:c,containerRef:d,outOfRangeCellPopover:u}=t,p=lt(t,["id","timetableMinTime","timetableMaxTime","rowMinTime","rowMaxTime","rowCells","rowBarColor","intervalWidth","containerRef","outOfRangeCellPopover"]);const h=p["data-testid"]||"timetable-row",m=a?Ap.roundToNearestInterval(a,aW):r,f=o?Ap.roundToNearestInterval(o,aW,!0):i,v=g((()=>{const e=[];m&&rd(r,"HH:mm").isBefore(rd(m,"HH:mm"))&&e.push({id:n,startTime:r,endTime:m,status:"blocked",customPopover:u});const t=[...s].sort(((e,t)=>{const n=rd(e.startTime,"HH:mm"),r=rd(t.startTime,"HH:mm");return n.isBefore(r)?-1:n.isAfter(r)?1:0}));let l;return t.forEach(((r,i)=>{var a;const{startTime:o,endTime:s}=r;let c=Ap.roundToNearestInterval(o,aW);l&&rd(c,"HH:mm").isBefore(rd(l,"HH:mm"))&&(c=Ap.roundToNearestInterval(o,aW,!0));const d=Ap.roundToNearestInterval(s,aW,!0);e.push(Object.assign(Object.assign({},r),{roundedStartTime:c,roundedEndTime:d}));const u=(null===(a=t[i+1])||void 0===a?void 0:a.startTime)||f,p=rd(Ap.roundToNearestInterval(u,aW),"HH:mm");let h=rd(d,"HH:mm");for(;h.isBefore(p);)if(m=p,h.get("hour")!=m.get("hour")){const t=h.add(1,"hour").startOf("hour");e.push({id:n,startTime:h.format("HH:mm").toString(),endTime:t.format("HH:mm").toString(),status:"disabled"}),h=t}else e.push({id:n,startTime:h.format("HH:mm").toString(),endTime:p.format("HH:mm").toString(),status:"disabled"}),h=p;var m;l=h.format("HH:mm").toString()})),f&&rd(i,"HH:mm").isAfter(rd(f,"HH:mm"))&&e.push({id:n,startTime:f,endTime:i,status:"blocked",customPopover:u}),0!==t.length||a||o||e.push({id:n,startTime:r,endTime:i,status:"blocked",customPopover:u}),e}),[m,r,s,f,i,a,o,n,u]);return e(fW,Object.assign({"data-testid":h},p,{children:v.map(((t,n)=>e($W,Object.assign({},t,{intervalWidth:c,rowBarColor:l,containerRef:d}),`${n}-row-cell-key`)))}))},SW=I.div``,OW=I.div`
7019
7027
  display: grid;
7020
7028
  overflow: scroll;
7021
7029
  position: relative;
7022
- grid-template-columns: ${rW}px auto;
7023
- `,kW=I.div`
7030
+ grid-template-columns: ${oW}px auto;
7031
+ `,CW=I.div`
7024
7032
  display: grid;
7025
7033
  overflow: scroll;
7026
7034
  position: relative;
7027
- grid-template-columns: ${rW}px fit-content(100%);
7035
+ grid-template-columns: ${oW}px fit-content(100%);
7028
7036
  padding-bottom: ${e=>e.$allRecordsLoaded?"0":"128px"};
7029
7037
  ${e=>{if(e.$loading)return E`
7030
7038
  :hover {
@@ -7032,12 +7040,12 @@ object-assign
7032
7040
  padding-bottom: 0;
7033
7041
  }
7034
7042
  `}}
7035
- `,SW=I.div`
7043
+ `,TW=I.div`
7036
7044
  position: sticky;
7037
7045
  top: 0;
7038
7046
  left: 0;
7039
7047
  background-color: white;
7040
- width: ${rW}px;
7048
+ width: ${oW}px;
7041
7049
  z-index: 2;
7042
7050
  border-bottom: 1px solid ${hl.Neutral[5]};
7043
7051
  ${e=>e.$isScrolledX||e.$isScrolledY?E`
@@ -7054,7 +7062,7 @@ object-assign
7054
7062
  transition: box-shadow 0.5s ease-in-out,
7055
7063
  clip-path 0.5s ease-in-out;
7056
7064
  `};
7057
- `,OW=I.div`
7065
+ `,DW=I.div`
7058
7066
  display: grid;
7059
7067
  position: sticky;
7060
7068
  grid-column: 1 / 2;
@@ -7062,7 +7070,7 @@ object-assign
7062
7070
  z-index: 1;
7063
7071
  background-color: white;
7064
7072
  grid-template-rows: repeat(${e=>e.$numOfRows}, ${68}px);
7065
- `,CW=I.div`
7073
+ `,jW=I.div`
7066
7074
  display: grid;
7067
7075
  position: sticky;
7068
7076
  grid-column: 2 / 3;
@@ -7077,16 +7085,16 @@ object-assign
7077
7085
  ${e=>{if(e.$isScrolled)return E`
7078
7086
  box-shadow: 0rem 0.125rem 0.5rem ${hl.Neutral[5]};
7079
7087
  `}};
7080
- `,TW=I.div`
7088
+ `,_W=I.div`
7081
7089
  min-width: ${84}px;
7082
7090
  align-content: end;
7083
7091
  margin-bottom: 0.25rem;
7084
- `,DW=I(El.H6)`
7092
+ `,IW=I(El.H6)`
7085
7093
  color: ${hl.Neutral[3]};
7086
- `,jW=I.div`
7094
+ `,EW=I.div`
7087
7095
  display: grid;
7088
7096
  grid-template-rows: repeat(${e=>e.$numOfRows}, ${68}px);
7089
- `,_W=I.div`
7097
+ `,MW=I.div`
7090
7098
  display: flex;
7091
7099
  flex-direction: column;
7092
7100
  align-items: flex-end;
@@ -7094,7 +7102,7 @@ object-assign
7094
7102
  position: sticky;
7095
7103
  left: 0;
7096
7104
  background-color: white;
7097
- width: ${rW}px;
7105
+ width: ${oW}px;
7098
7106
  height: ${68}px;
7099
7107
  text-align: right;
7100
7108
  padding: 0 1rem 0 2rem;
@@ -7106,7 +7114,7 @@ object-assign
7106
7114
  `:E`
7107
7115
  box-shadow: inset -0.5px 0px ${hl.Accent.Light[1]};
7108
7116
  `};
7109
- `,IW=I(El.H5)`
7117
+ `,AW=I(El.H5)`
7110
7118
  display: inline-block;
7111
7119
  text-overflow: ellipsis;
7112
7120
  overflow: hidden;
@@ -7116,7 +7124,7 @@ object-assign
7116
7124
  :hover {
7117
7125
  cursor: ${e=>e.$isClickable?"pointer":"default"};
7118
7126
  }
7119
- `,EW=I(El.XSmall)`
7127
+ `,NW=I(El.XSmall)`
7120
7128
  display: inline-flex;
7121
7129
  gap: 6px;
7122
7130
  align-items: center;
@@ -7124,7 +7132,7 @@ object-assign
7124
7132
  ${e=>{if(!e.$show)return E`
7125
7133
  display: none;
7126
7134
  `}}
7127
- `,MW=I(Bc)`
7135
+ `,BW=I(Bc)`
7128
7136
  display: flex;
7129
7137
  align-items: center;
7130
7138
  justify-content: center;
@@ -7132,26 +7140,26 @@ object-assign
7132
7140
  grid-row: 2;
7133
7141
  width: 100%;
7134
7142
  height: 100%;
7135
- `,AW=I(eh)`
7143
+ `,RW=I(eh)`
7136
7144
  grid-column: 1 / -1;
7137
7145
  grid-row: 2;
7138
7146
  padding: 5rem 0 5rem 0;
7139
- `,NW=I.div`
7147
+ `,LW=I.div`
7140
7148
  display: flex;
7141
7149
  border-bottom: 1px solid ${hl.Neutral[5]};
7142
- `,BW=I.div`
7150
+ `,PW=I.div`
7143
7151
  border-right: 0.5px solid ${hl.Accent.Light[1]};
7144
7152
  width: ${e=>`${e.$width}px`};
7145
7153
  height: 100%;
7146
7154
  padding: 20px 12px 20px 12px;
7147
- `,RW=M`
7155
+ `,zW=M`
7148
7156
  0% {
7149
7157
  background-position: -468px 0;
7150
7158
  }
7151
7159
  100% {
7152
7160
  background-position: 468px 0;
7153
7161
  }
7154
- `,LW=I.div`
7162
+ `,FW=I.div`
7155
7163
  height: 28px;
7156
7164
  width: 100%;
7157
7165
  background: linear-gradient(
@@ -7161,13 +7169,13 @@ object-assign
7161
7169
  ${hl.Neutral[6]} 33%
7162
7170
  );
7163
7171
  background-size: 800px 104px;
7164
- animation: ${RW} 1.5s forwards infinite;
7165
- `,PW=I(ux)`
7172
+ animation: ${zW} 1.5s forwards infinite;
7173
+ `,HW=I(ux)`
7166
7174
  max-width: 24rem !important;
7167
7175
  :hover {
7168
7176
  cursor: default;
7169
7177
  }
7170
- `,zW=r=>{var{date:i,emptyContentMessage:s,rowData:l,loading:c,minTime:d="00:00",maxTime:p="23:00",minDate:h,maxDate:m,totalRecords:f,showCurrentDateAsToday:g,showDateAsShortForm:v,onPage:b,onRefresh:y,onNextDayClick:x,onPreviousDayClick:w,onCalendarDateSelect:$}=r,k=lt(r,["date","emptyContentMessage","rowData","loading","minTime","maxTime","minDate","maxDate","totalRecords","showCurrentDateAsToday","showDateAsShortForm","onPage","onRefresh","onNextDayClick","onPreviousDayClick","onCalendarDateSelect"]);const S=k["data-testid"]||"timetable",C=Ap.roundToNearestInterval(d,60),T=Ap.roundToNearestInterval(p,60,!0),D=Ap.generateHourlyIntervals(C,T),j=0===f||OO.isEmpty(l),_=j||l.length===f,I=a(null),E=a(null),[M,A]=o(!1),[N,B]=o(!1),[R,L]=o(0),[P,z]=o(!1);u((()=>{const e=OO.throttle((()=>{if(I.current&&(A(I.current.scrollLeft>0),B(I.current.scrollTop>0)),P)return;const{scrollTop:e,clientHeight:t,scrollHeight:n}=I.current;Math.ceil(e+t)>=n-1&&!_&&b&&!c&&(z(!0),b())}),100),t=I.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}}),[_,P,c,b]),u((()=>{z(!1)}),[l]);an({onResize:()=>{if(I.current){const e=Math.ceil(60*D.length/nW),t=(I.current.clientWidth-rW)/e;L(t>21?t:21)}},targetRef:I,refreshMode:"debounce",refreshRate:50});const F=(()=>{let e=0;const t=tW.length;return()=>{const n=tW[e],r=iW[e];return e=(e+1)%t,{mainColor:n,alternateColor:r}}})(),H=({wrapper:e,children:t})=>e(t),W=()=>{if(!c&&P)return e(_W,Object.assign({$isScrolled:M},{children:e(LW,{})}))},V=()=>{if(!c&&P)return e(NW,Object.assign({"data-testid":"lazy-loader"},{children:D.map(((t,n)=>e(BW,Object.assign({$width:4*R},{children:e(LW,{})}),`lazy-load-cell-${n}`)))}))};return t(wW,j?Object.assign({},k,{"data-testid":S},{children:[e(uW,{selectedDate:i,loading:c||P,tableContainerRef:I,minDate:h,maxDate:m,totalRecords:f,showCurrentDateAsToday:g,showDateAsShortForm:v,onPreviousDayClick:w,onNextDayClick:x,onRefresh:y,onCalendarDateSelect:$}),e($W,Object.assign({className:"empty-container"},{children:c?e(MW,{$isEmptyContent:j}):e(AW,{type:"no-item-found",description:s})}))]}):Object.assign({},k,{"data-testid":S},{children:[e(uW,{"data-id":"timetable-date-navigator",selectedDate:i,loading:c||P,tableContainerRef:I,minDate:h,maxDate:m,totalRecords:f,showCurrentDateAsToday:g,showDateAsShortForm:v,onPreviousDayClick:w,onNextDayClick:x,onRefresh:y,onCalendarDateSelect:$}),t(kW,Object.assign({"data-id":"timetable-container","data-testid":"timetable-container",ref:I,$loading:c,$allRecordsLoaded:_||!b},{children:[e(SW,{$isScrolledY:N,$isScrolledX:M}),e(OW,Object.assign({$numOfRows:l.length,$isScrolled:M,"data-testid":"row-header-column-id"},{children:t(n,{children:[l.map(((n,r)=>e(H,Object.assign({wrapper:e=>((e,t)=>{if(!e.rowHeaderPopover)return t;const n={position:"bottom-start",rootNode:I,customOffset:e.rowHeaderPopover.offset,children:t,trigger:e.rowHeaderPopover.trigger,delay:e.rowHeaderPopover.delay,popoverContent:e.rowHeaderPopover.content};return O(PW,Object.assign({},n,{key:`${e.id}-popover-trigger`,zIndex:2}),t)})(n,e)},{children:t(_W,Object.assign({$isScrolled:M},{children:[e(IW,Object.assign({$isClickable:!!n.onRowNameClick,onClick:e=>((e,t)=>{e.onRowNameClick&&e.onRowNameClick(e,t)})(n,e),weight:"semibold","data-testid":`${n.id}-row-header-title`},{children:n.name})),e(EW,Object.assign({weight:"bold",$show:!!n.subtitle,"data-testid":`${n.id}-row-header-subtitle`},{children:n.subtitle}))]}),`${n.id}-row-header`)}),r))),W()]})})),e(CW,Object.assign({$numOfColumns:D.length,$isScrolled:N},{children:D.map((t=>e(TW,Object.assign({"data-testid":`${t}-column`},{children:e(DW,Object.assign({weight:"semibold"},{children:t}))}),`${t}-column-key`)))})),c?e(MW,{$isEmptyContent:j}):t(jW,Object.assign({"data-testid":"content-container-id",ref:E,$numOfRows:l.length},{children:[l.map(((t,n)=>e(xW,Object.assign({timetableMinTime:C,timetableMaxTime:T,rowBarColor:F(),intervalWidth:R,containerRef:E},t),`${n}-row-bar`))),V()]}))]}))]}))},FW=e=>{switch(e.$type){case"success":return hl.Validation.Green;case"warning":return hl.Validation.Orange;case"error":return hl.Validation.Red;case"info":return hl.Validation.Blue;default:return}},HW=I(Ra.div)`
7178
+ `,WW=r=>{var{date:i,emptyContentMessage:s,rowData:l,loading:c,minTime:d="00:00",maxTime:p="23:00",minDate:h,maxDate:m,totalRecords:f,showCurrentDateAsToday:g,showDateAsShortForm:v,onPage:b,onRefresh:y,onNextDayClick:x,onPreviousDayClick:w,onCalendarDateSelect:$}=r,k=lt(r,["date","emptyContentMessage","rowData","loading","minTime","maxTime","minDate","maxDate","totalRecords","showCurrentDateAsToday","showDateAsShortForm","onPage","onRefresh","onNextDayClick","onPreviousDayClick","onCalendarDateSelect"]);const S=k["data-testid"]||"timetable",C=Ap.roundToNearestInterval(d,60),T=Ap.roundToNearestInterval(p,60,!0),D=Ap.generateHourlyIntervals(C,T),j=0===f||OO.isEmpty(l),_=j||l.length===f,I=a(null),E=a(null),[M,A]=o(!1),[N,B]=o(!1),[R,L]=o(0),[P,z]=o(!1);u((()=>{const e=OO.throttle((()=>{if(I.current&&(A(I.current.scrollLeft>0),B(I.current.scrollTop>0)),P)return;const{scrollTop:e,clientHeight:t,scrollHeight:n}=I.current;Math.ceil(e+t)>=n-1&&!_&&b&&!c&&(z(!0),b())}),100),t=I.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}}),[_,P,c,b]),u((()=>{z(!1)}),[l]);an({onResize:()=>{if(I.current){const e=Math.ceil(60*D.length/aW),t=(I.current.clientWidth-oW)/e;L(t>21?t:21)}},targetRef:I,refreshMode:"debounce",refreshRate:50});const F=(()=>{let e=0;const t=iW.length;return()=>{const n=iW[e],r=sW[e];return e=(e+1)%t,{mainColor:n,alternateColor:r}}})(),H=({wrapper:e,children:t})=>e(t),W=()=>{if(!c&&P)return e(MW,Object.assign({$isScrolled:M},{children:e(FW,{})}))},V=()=>{if(!c&&P)return e(LW,Object.assign({"data-testid":"lazy-loader"},{children:D.map(((t,n)=>e(PW,Object.assign({$width:4*R},{children:e(FW,{})}),`lazy-load-cell-${n}`)))}))};return t(SW,j?Object.assign({},k,{"data-testid":S},{children:[e(mW,{selectedDate:i,loading:c||P,tableContainerRef:I,minDate:h,maxDate:m,totalRecords:f,showCurrentDateAsToday:g,showDateAsShortForm:v,onPreviousDayClick:w,onNextDayClick:x,onRefresh:y,onCalendarDateSelect:$}),e(OW,Object.assign({className:"empty-container"},{children:c?e(BW,{$isEmptyContent:j}):e(RW,{type:"no-item-found",description:s})}))]}):Object.assign({},k,{"data-testid":S},{children:[e(mW,{"data-id":"timetable-date-navigator",selectedDate:i,loading:c||P,tableContainerRef:I,minDate:h,maxDate:m,totalRecords:f,showCurrentDateAsToday:g,showDateAsShortForm:v,onPreviousDayClick:w,onNextDayClick:x,onRefresh:y,onCalendarDateSelect:$}),t(CW,Object.assign({"data-id":"timetable-container","data-testid":"timetable-container",ref:I,$loading:c,$allRecordsLoaded:_||!b},{children:[e(TW,{$isScrolledY:N,$isScrolledX:M}),e(DW,Object.assign({$numOfRows:l.length,$isScrolled:M,"data-testid":"row-header-column-id"},{children:t(n,{children:[l.map(((n,r)=>e(H,Object.assign({wrapper:e=>((e,t)=>{if(!e.rowHeaderPopover)return t;const n={position:"bottom-start",rootNode:I,customOffset:e.rowHeaderPopover.offset,children:t,trigger:e.rowHeaderPopover.trigger,delay:e.rowHeaderPopover.delay,popoverContent:e.rowHeaderPopover.content};return O(HW,Object.assign({},n,{key:`${e.id}-popover-trigger`,zIndex:2}),t)})(n,e)},{children:t(MW,Object.assign({$isScrolled:M},{children:[e(AW,Object.assign({$isClickable:!!n.onRowNameClick,onClick:e=>((e,t)=>{e.onRowNameClick&&e.onRowNameClick(e,t)})(n,e),weight:"semibold","data-testid":`${n.id}-row-header-title`},{children:n.name})),e(NW,Object.assign({weight:"bold",$show:!!n.subtitle,"data-testid":`${n.id}-row-header-subtitle`},{children:n.subtitle}))]}),`${n.id}-row-header`)}),r))),W()]})})),e(jW,Object.assign({$numOfColumns:D.length,$isScrolled:N},{children:D.map((t=>e(_W,Object.assign({"data-testid":`${t}-column`},{children:e(IW,Object.assign({weight:"semibold"},{children:t}))}),`${t}-column-key`)))})),c?e(BW,{$isEmptyContent:j}):t(EW,Object.assign({"data-testid":"content-container-id",ref:E,$numOfRows:l.length},{children:[l.map(((t,n)=>e(kW,Object.assign({timetableMinTime:C,timetableMaxTime:T,rowBarColor:F(),intervalWidth:R,containerRef:E},t),`${n}-row-bar`))),V()]}))]}))]}))},VW=e=>{switch(e.$type){case"success":return hl.Validation.Green;case"warning":return hl.Validation.Orange;case"error":return hl.Validation.Red;case"info":return hl.Validation.Blue;default:return}},YW=I(Ra.div)`
7171
7179
  display: flex;
7172
7180
  flex-direction: row;
7173
7181
  position: ${e=>e.$fixed?"fixed":"relative"};
@@ -7185,11 +7193,11 @@ object-assign
7185
7193
  }
7186
7194
 
7187
7195
  ${e=>E`
7188
- background: ${FW(e).Background};
7189
- border: 1px solid ${FW(e).Border};
7190
- color: ${FW(e).Text};
7196
+ background: ${VW(e).Background};
7197
+ border: 1px solid ${VW(e).Border};
7198
+ color: ${VW(e).Text};
7191
7199
  `};
7192
- `,WW=I.div`
7200
+ `,UW=I.div`
7193
7201
  display: flex;
7194
7202
  align-items: center;
7195
7203
  gap: 2rem;
@@ -7202,7 +7210,7 @@ object-assign
7202
7210
  flex-direction: column;
7203
7211
  gap: 0.75rem;
7204
7212
  }
7205
- `,VW=I.div`
7213
+ `,qW=I.div`
7206
7214
  display: flex;
7207
7215
  flex-direction: row;
7208
7216
  align-items: flex-start;
@@ -7214,25 +7222,25 @@ object-assign
7214
7222
  height: 1.5rem;
7215
7223
  margin-top: 0.0625rem;
7216
7224
  margin-right: 0.5rem;
7217
- color: ${FW(e).Icon};
7225
+ color: ${VW(e).Icon};
7218
7226
  }
7219
7227
  `};
7220
- `,YW=I.div`
7228
+ `,XW=I.div`
7221
7229
  display: flex;
7222
7230
  flex-direction: column;
7223
- `,UW=I(El.H4)`
7231
+ `,KW=I(El.H4)`
7224
7232
  display: flex;
7225
7233
 
7226
7234
  ${e=>E`
7227
- color: ${FW(e).Text};
7235
+ color: ${VW(e).Text};
7228
7236
  `}
7229
- `,qW=I.div`
7237
+ `,GW=I.div`
7230
7238
  ${e=>E`
7231
7239
  p {
7232
- color: ${FW(e).Text};
7240
+ color: ${VW(e).Text};
7233
7241
  }
7234
7242
  `}
7235
- `,XW=I(oc.Small)`
7243
+ `,ZW=I(oc.Small)`
7236
7244
  align-self: center;
7237
7245
  margin-left: auto;
7238
7246
  height: auto;
@@ -7243,7 +7251,7 @@ object-assign
7243
7251
  align-self: flex-start;
7244
7252
  margin-left: 2rem;
7245
7253
  }
7246
- `,KW=I(yl)`
7254
+ `,QW=I(yl)`
7247
7255
  padding: 0.75rem;
7248
7256
  margin: -0.75rem;
7249
7257
  align-self: stretch;
@@ -7252,7 +7260,7 @@ object-assign
7252
7260
  svg {
7253
7261
  width: 1.5rem;
7254
7262
  height: 1.5rem;
7255
- color: ${FW(e).Text};
7263
+ color: ${VW(e).Text};
7256
7264
  }
7257
7265
  :hover {
7258
7266
  background: transparent;
@@ -7261,7 +7269,7 @@ object-assign
7261
7269
  align-self: center;
7262
7270
  }
7263
7271
  `};
7264
- `,GW=4e3,ZW=n=>{var{type:r="success",title:a,label:s,autoDismiss:l,autoDismissTime:c=GW,onDismiss:d,fixed:p=!0,actionButton:h}=n,m=lt(n,["type","title","label","autoDismiss","autoDismissTime","onDismiss","fixed","actionButton"]);const[f,g]=o(!1),v=Fc.useMediaQuery({maxWidth:ml.tablet});u((()=>{g(!0)}),[]),u((()=>{if(!l)return;const e=setTimeout((()=>{g(!1)}),c);return()=>clearTimeout(e)}),[l]);const b=ya({opacity:f?1:0,transform:f?v?"translateY(0%)":"translateX(0%)":v?"translateY(-1500%)":"translateX(150%)",config:{easing:wr.easeInOutQuart,duration:1e3},onRest:()=>{f||null==d||d()}});return t(HW,Object.assign({style:b,$type:r,$fixed:p},m,{children:[t(WW,{children:[t(VW,Object.assign({$type:r},{children:[(()=>{switch(r){case"success":return e(pe,{});case"warning":return e(ue,{});case"error":return e(se,{});case"info":return e(de,{});default:return null}})(),t(YW,{children:[a&&(i.isValidElement(a)?a:e(UW,Object.assign({$type:r,weight:"semibold"},{children:a}))),s&&e(qW,Object.assign({$type:r},{children:i.isValidElement(s)?s:e(a?El.BodySmall:El.Body,{children:s})}))]})]})),h&&e(XW,Object.assign({styleType:"light",onClick:h.onClick},{children:h.label}))]}),e(KW,Object.assign({$type:r,onClick:()=>{g(!1)}},{children:e(J,{})}))]}))},QW=I.div`
7272
+ `,JW=4e3,eV=n=>{var{type:r="success",title:a,label:s,autoDismiss:l,autoDismissTime:c=JW,onDismiss:d,fixed:p=!0,actionButton:h}=n,m=lt(n,["type","title","label","autoDismiss","autoDismissTime","onDismiss","fixed","actionButton"]);const[f,g]=o(!1),v=Fc.useMediaQuery({maxWidth:ml.tablet});u((()=>{g(!0)}),[]),u((()=>{if(!l)return;const e=setTimeout((()=>{g(!1)}),c);return()=>clearTimeout(e)}),[l]);const b=ya({opacity:f?1:0,transform:f?v?"translateY(0%)":"translateX(0%)":v?"translateY(-1500%)":"translateX(150%)",config:{easing:wr.easeInOutQuart,duration:1e3},onRest:()=>{f||null==d||d()}});return t(YW,Object.assign({style:b,$type:r,$fixed:p},m,{children:[t(UW,{children:[t(qW,Object.assign({$type:r},{children:[(()=>{switch(r){case"success":return e(pe,{});case"warning":return e(ue,{});case"error":return e(se,{});case"info":return e(de,{});default:return null}})(),t(XW,{children:[a&&(i.isValidElement(a)?a:e(KW,Object.assign({$type:r,weight:"semibold"},{children:a}))),s&&e(GW,Object.assign({$type:r},{children:i.isValidElement(s)?s:e(a?El.BodySmall:El.Body,{children:s})}))]})]})),h&&e(ZW,Object.assign({styleType:"light",onClick:h.onClick},{children:h.label}))]}),e(QW,Object.assign({$type:r,onClick:()=>{g(!1)}},{children:e(J,{})}))]}))},tV=I.div`
7265
7273
  position: absolute;
7266
7274
  max-width: 30rem;
7267
7275
  pointer-events: auto;
@@ -7326,10 +7334,10 @@ object-assign
7326
7334
  transition: ${Bl.Base};
7327
7335
  z-index: -1;
7328
7336
  `}
7329
- `,JW=I(qu)`
7337
+ `,nV=I(qu)`
7330
7338
  border-radius: 4px;
7331
7339
  box-shadow: 3px 2px 10px 1px rgba(91, 91, 91, 0.2);
7332
- `,eV=I.div`
7340
+ `,rV=I.div`
7333
7341
  position: absolute;
7334
7342
  overflow: hidden;
7335
7343
 
@@ -7449,28 +7457,28 @@ object-assign
7449
7457
  ${hl.Neutral[8]} transparent;
7450
7458
  }
7451
7459
  `}}}
7452
- `,tV=I.div`
7460
+ `,iV=I.div`
7453
7461
  position: relative;
7454
- `,nV=n=>{var{visible:r,position:i="top",children:s}=n,l=lt(n,["visible","position","children"]);const c=l["data-testid"]||"tooltip",[d,p]=o(i),h=a(null);u((()=>(f(),window.addEventListener("resize",gp(m,300)),()=>{window.removeEventListener("resize",gp(m,300))})),[]);const m=()=>{f()},f=()=>{if(h.current){const e=h.current.getBoundingClientRect();if(e.x<0)switch(i){case"left":case"top":case"bottom":p("right");break;case"right":p("top")}else if(e.x+e.width>window.outerWidth)switch(i){case"right":case"top":case"bottom":p("left");break;case"left":p("top")}else p(i)}};return t(QW,Object.assign({position:d,"data-testid":c,visible:r,ref:h},l,{children:[e(JW,{children:"string"==typeof s?e(El.BodySmall,{children:s}):s}),e(eV,{position:d})]}))},rV=(n,r)=>i=>{const{tooltipVisible:a,position:o}=i,s=lt(i,["tooltipVisible","position"]);return t(tV,{children:[e(n,Object.assign({},s)),e(nV,Object.assign({visible:a,position:o},{children:r.content}))]})},iV=E`
7462
+ `,aV=n=>{var{visible:r,position:i="top",children:s}=n,l=lt(n,["visible","position","children"]);const c=l["data-testid"]||"tooltip",[d,p]=o(i),h=a(null);u((()=>(f(),window.addEventListener("resize",gp(m,300)),()=>{window.removeEventListener("resize",gp(m,300))})),[]);const m=()=>{f()},f=()=>{if(h.current){const e=h.current.getBoundingClientRect();if(e.x<0)switch(i){case"left":case"top":case"bottom":p("right");break;case"right":p("top")}else if(e.x+e.width>window.outerWidth)switch(i){case"right":case"top":case"bottom":p("left");break;case"left":p("top")}else p(i)}};return t(tV,Object.assign({position:d,"data-testid":c,visible:r,ref:h},l,{children:[e(nV,{children:"string"==typeof s?e(El.BodySmall,{children:s}):s}),e(rV,{position:d})]}))},oV=(n,r)=>i=>{const{tooltipVisible:a,position:o}=i,s=lt(i,["tooltipVisible","position"]);return t(iV,{children:[e(n,Object.assign({},s)),e(aV,Object.assign({visible:a,position:o},{children:r.content}))]})},sV=E`
7455
7463
  grid-column: ${e=>e.$stretch?"1 / -1":"span 8"};
7456
7464
 
7457
7465
  ${gl.MaxWidth.mobileL} {
7458
7466
  grid-column: 1 / -1;
7459
7467
  }
7460
- `,aV=I(Dx.Content)`
7468
+ `,lV=I(Dx.Content)`
7461
7469
  background: ${({$background:e})=>e?hl.Neutral[7]:"transparent"};
7462
7470
  padding-top: 2rem;
7463
7471
  padding-bottom: 2rem;
7464
- `,oV=I(El.H3)`
7472
+ `,cV=I(El.H3)`
7465
7473
  margin-bottom: 1rem;
7466
- ${iV}
7467
- `,sV=I(El.Body)`
7474
+ ${sV}
7475
+ `,dV=I(El.Body)`
7468
7476
  margin-bottom: 2rem;
7469
- ${iV}
7470
- `,lV=I.div`
7471
- ${iV}
7472
- `,cV=I.ul`
7473
- ${iV}
7477
+ ${sV}
7478
+ `,uV=I.div`
7479
+ ${sV}
7480
+ `,pV=I.ul`
7481
+ ${sV}
7474
7482
  column-gap: 2rem;
7475
7483
  row-gap: 2rem;
7476
7484
  display: grid;
@@ -7488,7 +7496,7 @@ object-assign
7488
7496
  :not(:last-child) {
7489
7497
  margin-bottom: 2rem;
7490
7498
  }
7491
- `,dV=i.forwardRef(((t,n)=>{var{stretch:r}=t,i=lt(t,["stretch"]);return e(cV,Object.assign({ref:n,$stretch:r},i))})),uV=I.li`
7499
+ `,hV=i.forwardRef(((t,n)=>{var{stretch:r}=t,i=lt(t,["stretch"]);return e(pV,Object.assign({ref:n,$stretch:r},i))})),mV=I.li`
7492
7500
  display: flex;
7493
7501
  flex-direction: column;
7494
7502
 
@@ -7507,7 +7515,7 @@ object-assign
7507
7515
  }
7508
7516
 
7509
7517
  overflow-wrap: break-word;
7510
- `,pV=I.div`
7518
+ `,fV=I.div`
7511
7519
  display: flex;
7512
7520
  height: 100%;
7513
7521
  align-items: center;
@@ -7519,7 +7527,7 @@ object-assign
7519
7527
  width: 1.125rem;
7520
7528
  height: 1.125rem;
7521
7529
  }
7522
- `,hV=I.button`
7530
+ `,gV=I.button`
7523
7531
  ${Il.getTextStyle("Body","regular")}
7524
7532
  color: ${hl.Neutral[1]};
7525
7533
  border: none;
@@ -7535,9 +7543,9 @@ object-assign
7535
7543
  overflow-wrap: anywhere;
7536
7544
  text-align: left;
7537
7545
  }
7538
- `,mV=I.span`
7546
+ `,vV=I.span`
7539
7547
  color: ${hl.Neutral[3]};
7540
- `,fV=I(nc)`
7548
+ `,bV=I(nc)`
7541
7549
  margin-right: 0.5rem;
7542
7550
  #inner1,
7543
7551
  #inner2,
@@ -7545,19 +7553,19 @@ object-assign
7545
7553
  #inner4 {
7546
7554
  border-color: ${hl.Neutral[3]} transparent transparent transparent;
7547
7555
  }
7548
- `,gV=I(Fe)`
7556
+ `,yV=I(Fe)`
7549
7557
  color: ${hl.Validation.Orange.Icon};
7550
7558
  margin-right: 0.5rem;
7551
7559
  height: 1.125rem;
7552
7560
  width: 1.125rem;
7553
- `,vV=I.span`
7561
+ `,xV=I.span`
7554
7562
  color: ${hl.Validation.Orange.Text};
7555
- `,bV=I.span`
7563
+ `,wV=I.span`
7556
7564
  ${Il.getTextStyle("Body","semibold")}
7557
7565
  color: ${hl.Primary};
7558
7566
  text-decoration: underline;
7559
7567
  margin-left: 0.5rem;
7560
- `,yV=I(xc)`
7568
+ `,$V=I(xc)`
7561
7569
  margin-top: 0.5rem;
7562
- `,xV=({label:r,value:i,displayWidth:a="full",maskState:s,maskLoadingState:l,maskChar:c="•",maskRange:d,unmaskRange:p,maskRegex:h,disableMaskUnmask:m,alert:f,maskTransformer:g,onMask:v,onUnmask:b,onTryAgain:y})=>{const[x,w]=o(s);u((()=>{w(s)}),[s]);const $=()=>{switch("fail"===l&&y&&y(),x){case"masked":b&&b(),w("unmasked");break;case"unmasked":v&&v(),w("masked")}},k=()=>"string"!=typeof i?i:"masked"===x?Sd.maskValue(i,{maskChar:c,maskRange:d,unmaskRange:p,maskRegex:h,maskTransformer:g}):i,S=()=>{switch(l){case"fail":return t(n,{children:[e(gV,{}),e(vV,{children:"Error"}),e(bV,{children:"Try again?"})]});case"loading":return t(n,{children:[e(fV,{}),e(mV,{children:"Retrieving..."})]});default:return t(n,{children:[k(),e(pV,{children:"masked"===x?e(Pe,{"data-testid":"masked-icon"}):e(ze,{"data-testid":"unmasked-icon"})})]})}};return t(uV,Object.assign({$widthStyle:a},{children:[e(wx,{children:r}),"string"!=typeof i?i:x?m?e(El.Body,{children:k()}):e(hV,Object.assign({"data-testid":"clickable-label",onClick:$,"aria-busy":"loading"===l,"aria-live":"polite",type:"button"},{children:S()})):e(El.Body,{children:i}),f&&e(yV,Object.assign({sizeType:"small"},f))]}))},wV=Object.assign((r=>{var{items:i,title:a,description:o,topSection:s,bottomSection:l,children:c,background:d=!0,stretch:u,onMask:p,onUnmask:h,onTryAgain:m}=r,f=lt(r,["items","title","description","topSection","bottomSection","children","background","stretch","onMask","onUnmask","onTryAgain"]);const g=e=>()=>{p&&p(e)},v=e=>()=>{h&&h(e)},b=e=>()=>{m&&m(e)},y=()=>{if(i&&i.length>0){const t=i.map(((t,n)=>e(xV,Object.assign({},t,{onMask:g(t),onUnmask:v(t),onTryAgain:b(t)}),n)));return e(cV,Object.assign({$stretch:u},{children:t}))}return null};return e(aV,Object.assign({$background:d},f,{type:"grid"},{children:c||t(n,{children:[a&&e(oV,Object.assign({weight:"semibold",$stretch:u},{children:a})),o&&e(sV,Object.assign({$stretch:u},{children:o})),s&&e(lV,Object.assign({"data-id":"top-section",$stretch:u},{children:s})),y(),l&&e(lV,Object.assign({"data-id":"bottom-section",$stretch:u},{children:l}))]})}))}),{ItemSection:dV,Item:xV});export{zB as $,uc as A,jc as B,hl as C,yh as D,pf as E,Df as F,GE as G,xB as H,wB as I,nw as J,Lm as K,$c as L,kB as M,sw as N,dO as O,iI as P,sI as Q,lI as R,cf as S,II as T,Gx as U,EI as V,PI as W,YI as X,Dx as Y,LB as Z,ct as _,df as a,CO as a0,WB as a1,YB as a2,gl as a3,vl as a4,Vm as a5,FR as a6,HR as a7,zR as a8,JR as a9,Ic as aA,Ec as aB,Mc as aC,Ac as aD,dl as aE,PE as aF,iH as aG,EH as aH,WH as aI,eW as aJ,FE as aK,zW as aL,ZW as aM,yE as aN,nV as aO,rV as aP,Bl as aQ,wV as aR,XE as aS,nL as aa,lP as ab,hP as ac,Cm as ad,TP as ae,SI as af,IP as ag,LP as ah,RP as ai,cx as aj,fx as ak,ux as al,TI as am,Iz as an,Nz as ao,LI as ap,rF as aq,kF as ar,LF as as,FF as at,Il as au,Ol as av,El as aw,rc as ax,iE as ay,_c as az,xc as b,La as c,Cc as d,Bc as e,td as f,za as g,Pd as h,oc as i,Fd as j,Vu as k,qu as l,Zu as m,Pp as n,tm as o,am as p,gm as q,Kl as r,$m as s,Am as t,eh as u,Fp as v,eg as w,PM as x,bA as y,PA as z};
7563
- //# sourceMappingURL=index.92540fa2.js.map
7570
+ `,kV=({label:r,value:i,displayWidth:a="full",maskState:s,maskLoadingState:l,maskChar:c="•",maskRange:d,unmaskRange:p,maskRegex:h,disableMaskUnmask:m,alert:f,maskTransformer:g,onMask:v,onUnmask:b,onTryAgain:y})=>{const[x,w]=o(s);u((()=>{w(s)}),[s]);const $=()=>{switch("fail"===l&&y&&y(),x){case"masked":b&&b(),w("unmasked");break;case"unmasked":v&&v(),w("masked")}},k=()=>"string"!=typeof i?i:"masked"===x?Sd.maskValue(i,{maskChar:c,maskRange:d,unmaskRange:p,maskRegex:h,maskTransformer:g}):i,S=()=>{switch(l){case"fail":return t(n,{children:[e(yV,{}),e(xV,{children:"Error"}),e(wV,{children:"Try again?"})]});case"loading":return t(n,{children:[e(bV,{}),e(vV,{children:"Retrieving..."})]});default:return t(n,{children:[k(),e(fV,{children:"masked"===x?e(Pe,{"data-testid":"masked-icon"}):e(ze,{"data-testid":"unmasked-icon"})})]})}};return t(mV,Object.assign({$widthStyle:a},{children:[e(wx,{children:r}),"string"!=typeof i?i:x?m?e(El.Body,{children:k()}):e(gV,Object.assign({"data-testid":"clickable-label",onClick:$,"aria-busy":"loading"===l,"aria-live":"polite",type:"button"},{children:S()})):e(El.Body,{children:i}),f&&e($V,Object.assign({sizeType:"small"},f))]}))},SV=Object.assign((r=>{var{items:i,title:a,description:o,topSection:s,bottomSection:l,children:c,background:d=!0,stretch:u,onMask:p,onUnmask:h,onTryAgain:m}=r,f=lt(r,["items","title","description","topSection","bottomSection","children","background","stretch","onMask","onUnmask","onTryAgain"]);const g=e=>()=>{p&&p(e)},v=e=>()=>{h&&h(e)},b=e=>()=>{m&&m(e)},y=()=>{if(i&&i.length>0){const t=i.map(((t,n)=>e(kV,Object.assign({},t,{onMask:g(t),onUnmask:v(t),onTryAgain:b(t)}),n)));return e(pV,Object.assign({$stretch:u},{children:t}))}return null};return e(lV,Object.assign({$background:d},f,{type:"grid"},{children:c||t(n,{children:[a&&e(cV,Object.assign({weight:"semibold",$stretch:u},{children:a})),o&&e(dV,Object.assign({$stretch:u},{children:o})),s&&e(uV,Object.assign({"data-id":"top-section",$stretch:u},{children:s})),y(),l&&e(uV,Object.assign({"data-id":"bottom-section",$stretch:u},{children:l}))]})}))}),{ItemSection:hV,Item:kV});export{WB as $,uc as A,jc as B,hl as C,yh as D,pf as E,Df as F,GE as G,kB as H,SB as I,nw as J,Lm as K,$c as L,CB as M,sw as N,dO as O,iI as P,sI as Q,lI as R,cf as S,II as T,Gx as U,EI as V,PI as W,YI as X,Dx as Y,FB as Z,ct as _,df as a,CO as a0,UB as a1,XB as a2,gl as a3,vl as a4,Vm as a5,VR as a6,YR as a7,WR as a8,nL as a9,Ic as aA,Ec as aB,Mc as aC,Ac as aD,dl as aE,PE as aF,sH as aG,NH as aH,UH as aI,rW as aJ,FE as aK,WW as aL,eV as aM,yE as aN,aV as aO,oV as aP,Bl as aQ,SV as aR,XE as aS,aL as aa,uP as ab,gP as ac,Cm as ad,_P as ae,SI as af,AP as ag,FP as ah,zP as ai,cx as aj,fx as ak,ux as al,TI as am,Az as an,Lz as ao,LI as ap,oF as aq,CF as ar,FF as as,VF as at,Il as au,Ol as av,El as aw,rc as ax,iE as ay,_c as az,xc as b,La as c,Cc as d,Bc as e,td as f,za as g,Pd as h,oc as i,Fd as j,Vu as k,qu as l,Zu as m,Pp as n,tm as o,am as p,gm as q,Kl as r,$m as s,Am as t,eh as u,Fp as v,eg as w,PM as x,bA as y,HA as z};
7571
+ //# sourceMappingURL=index.803fafd5.js.map