@bynder/compact-view 3.3.3 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +2 -0
- package/components.js +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* bynder-compactview v3.3.
|
|
3
|
+
* bynder-compactview v3.3.4
|
|
4
4
|
* (c) 2023 Bynder
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -193,4 +193,4 @@ to {
|
|
|
193
193
|
> * {
|
|
194
194
|
pointer-events: auto;
|
|
195
195
|
}
|
|
196
|
-
`;const If={white:"var(--white)","white-rgb":"var(--white-rgb)",gray1000:"var(--gray1000)","gray1000-rgb":"var(--gray1000-rgb)",gray900:"var(--gray900)",gray800:"var(--gray800)",gray700:"var(--gray700)",gray600:"var(--gray600)",gray500:"var(--gray500)",gray400:"var(--gray400)",gray300:"var(--gray300)",gray200:"var(--gray200)",gray100:"var(--gray100)",gray75:"var(--gray75)",gray50:"var(--gray50)",gray25:"var(--gray25)",gray10:"var(--gray10)",blue1000:"var(--blue1000)",blue900:"var(--blue900)",blue800:"var(--blue800)",blue700:"var(--blue700)",blue600:"var(--blue600)",blue500:"var(--blue500)",blue500a10:"var(--blue500a10)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red500a10:"var(--red500a10)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",yellow500a10:"var(--yellow500a10)",yellow600:"var(--yellow600)",yellow700:"var(--yellow700)",green500:"var(--green500)",purple1000:"var(--purple1000)",purple900:"var(--purple900)",purple800:"var(--purple800)",purple700:"var(--purple700)",purple600:"var(--purple600)",purple500:"var(--purple500)",purple400:"var(--purple400)",purple300:"var(--purple300)",purple200:"var(--purple200)",purple100:"var(--purple100)",magenta1000:"var(--magenta1000)",magenta900:"var(--magenta900)",magenta800:"var(--magenta800)",magenta700:"var(--magenta700)",magenta600:"var(--magenta600)",magenta500:"var(--magenta500)",magenta400:"var(--magenta400)",magenta300:"var(--magenta300)",magenta200:"var(--magenta200)",magenta100:"var(--magenta100)",teal1000:"var(--teal1000)",teal900:"var(--teal900)",teal800:"var(--teal800)",teal700:"var(--teal700)",teal600:"var(--teal600)",teal500:"var(--teal500)",teal400:"var(--teal400)",teal300:"var(--teal300)",teal200:"var(--teal200)",teal100:"var(--teal100)",brandPrimary700:"var(--brandPrimary700)",brandPrimary600:"var(--brandPrimary600)",brandPrimary500:"var(--brandPrimary500)","brandPrimary500-rgb":"var(--brandPrimary500-rgb)",brandPrimary300:"var(--brandPrimary300)",brandPrimary100:"var(--brandPrimary100)",spacing1:"var(--spacing1)",spacing2:"var(--spacing2)",spacing3:"var(--spacing3)",spacing4:"var(--spacing4)",spacing5:"var(--spacing5)",spacing6:"var(--spacing6)",spacing7:"var(--spacing7)",spacing8:"var(--spacing8)",spacing9:"var(--spacing9)",layoutSpacing1:"var(--layoutSpacing1)",layoutSpacing2:"var(--layoutSpacing2)",layoutSpacing3:"var(--layoutSpacing3)",layoutSpacing4:"var(--layoutSpacing4)",layoutSpacing5:"var(--layoutSpacing5)",layoutSpacing6:"var(--layoutSpacing6)",layoutSpacing7:"var(--layoutSpacing7)",radiusSmall:"var(--radiusSmall)",radiusMedium:"var(--radiusMedium)",radiusLarge:"var(--radiusLarge)",radiusCircle:"var(--radiusCircle)",radiusPill:"var(--radiusPill)",radiusBase:"var(--radiusBase)",brandRadiusBase:"var(--brandRadiusBase)",fontStackBase:"var(--fontStackBase)",brandFontStackBase:"var(--brandFontStackBase)",fontSize25:"var(--fontSize25)",fontSize50:"var(--fontSize50)",fontSize75:"var(--fontSize75)",fontSize100:"var(--fontSize100)",fontSize200:"var(--fontSize200)",fontSize300:"var(--fontSize300)",fontSize400:"var(--fontSize400)",fontSize500:"var(--fontSize500)",fontSize600:"var(--fontSize600)",fontSize700:"var(--fontSize700)",fontSize800:"var(--fontSize800)",fontSize900:"var(--fontSize900)",fontSize1000:"var(--fontSize1000)",fontSizeBase:"var(--fontSizeBase)",lineHeightBase:"var(--lineHeightBase)",lineHeightHeading:"var(--lineHeightHeading)",lineHeightText:"var(--lineHeightText)",gray900a:"var(--gray900a)",gray800a:"var(--gray800a)",gray700a:"var(--gray700a)",gray600a:"var(--gray600a)",gray500a:"var(--gray500a)",gray400a:"var(--gray400a)",gray300a:"var(--gray300a)",gray200a:"var(--gray200a)",gray100a:"var(--gray100a)",gray75a:"var(--gray75a)",gray50a:"var(--gray50a)",gray25a:"var(--gray25a)",colorText:"var(--colorText)",colorTextMuted:"var(--colorTextMuted)",colorTextDisabled:"var(--colorTextDisabled)",focusRingWidth:"var(--focusRingWidth)",focusRingColorPrimary:"var(--focusRingColorPrimary)",focusRingColorSecondary:"var(--focusRingColorSecondary)",colorShadow:"var(--colorShadow)",elevationStatic:"var(--elevationStatic)",elevation1:"var(--elevation1)",elevation2:"var(--elevation2)",elevation4:"var(--elevation4)",elevation8:"var(--elevation8)",elevation12:"var(--elevation12)",elevation16:"var(--elevation16)",elevation24:"var(--elevation24)",componentButtonPrimaryBorderHover:"var(--componentButtonPrimaryBorderHover)",componentButtonPrimaryBorderActive:"var(--componentButtonPrimaryBorderActive)",componentButtonPrimaryBorderFocus:"var(--componentButtonPrimaryBorderFocus)",componentButtonPrimaryBorderDisabled:"var(--componentButtonPrimaryBorderDisabled)",componentButtonPrimaryColor:"var(--componentButtonPrimaryColor)",componentButtonPrimaryColorHover:"var(--componentButtonPrimaryColorHover)",componentButtonPrimaryColorActive:"var(--componentButtonPrimaryColorActive)",componentButtonPrimaryColorFocus:"var(--componentButtonPrimaryColorFocus)",componentButtonPrimaryColorDisabled:"var(--componentButtonPrimaryColorDisabled)",componentButtonPrimaryFill:"var(--componentButtonPrimaryFill)",componentButtonPrimaryFillHover:"var(--componentButtonPrimaryFillHover)",componentButtonPrimaryFillActive:"var(--componentButtonPrimaryFillActive)",componentButtonPrimaryFillFocus:"var(--componentButtonPrimaryFillFocus)",componentButtonPrimaryFillDisabled:"var(--componentButtonPrimaryFillDisabled)",componentButtonPrimaryFocusRing:"var(--componentButtonPrimaryFocusRing)",componentButtonSecondaryBorder:"var(--componentButtonSecondaryBorder)",componentButtonSecondaryBorderHover:"var(--componentButtonSecondaryBorderHover)",componentButtonSecondaryBorderActive:"var(--componentButtonSecondaryBorderActive)",componentButtonSecondaryBorderFocus:"var(--componentButtonSecondaryBorderFocus)",componentButtonSecondaryBorderDisabled:"var(--componentButtonSecondaryBorderDisabled)",componentButtonSecondaryColor:"var(--componentButtonSecondaryColor)",componentButtonSecondaryColorHover:"var(--componentButtonSecondaryColorHover)",componentButtonSecondaryColorActive:"var(--componentButtonSecondaryColorActive)",componentButtonSecondaryColorFocus:"var(--componentButtonSecondaryColorFocus)",componentButtonSecondaryColorDisabled:"var(--componentButtonSecondaryColorDisabled)",componentButtonSecondaryFill:"var(--componentButtonSecondaryFill)",componentButtonSecondaryFillHover:"var(--componentButtonSecondaryFillHover)",componentButtonSecondaryFillActive:"var(--componentButtonSecondaryFillActive)",componentButtonSecondaryFillFocus:"var(--componentButtonSecondaryFillFocus)",componentButtonSecondaryFillDisabled:"var(--componentButtonSecondaryFillDisabled)",componentButtonSecondaryFocusRing:"var(--componentButtonSecondaryFocusRing)",componentButtonCleanBorderFocus:"var(--componentButtonCleanBorderFocus)",componentButtonCleanBorderActive:"var(--componentButtonCleanBorderActive)",componentButtonCleanColor:"var(--componentButtonCleanColor)",componentButtonCleanColorHover:"var(--componentButtonCleanColorHover)",componentButtonCleanColorActive:"var(--componentButtonCleanColorActive)",componentButtonCleanColorFocus:"var(--componentButtonCleanColorFocus)",componentButtonCleanColorDisabled:"var(--componentButtonCleanColorDisabled)",componentButtonCleanFill:"var(--componentButtonCleanFill)",componentButtonCleanFillHover:"var(--componentButtonCleanFillHover)",componentButtonCleanFillActive:"var(--componentButtonCleanFillActive)",componentButtonCleanFillFocus:"var(--componentButtonCleanFillFocus)",componentButtonCleanFillDisabled:"var(--componentButtonCleanFillDisabled)",componentButtonCleanFocusRing:"var(--componentButtonCleanFocusRing)",componentButtonDangerBorderHover:"var(--componentButtonDangerBorderHover)",componentButtonDangerBorderActive:"var(--componentButtonDangerBorderActive)",componentButtonDangerBorderFocus:"var(--componentButtonDangerBorderFocus)",componentButtonDangerBorderDisabled:"var(--componentButtonDangerBorderDisabled)",componentButtonDangerColor:"var(--componentButtonDangerColor)",componentButtonDangerColorHover:"var(--componentButtonDangerColorHover)",componentButtonDangerColorActive:"var(--componentButtonDangerColorActive)",componentButtonDangerColorFocus:"var(--componentButtonDangerColorFocus)",componentButtonDangerColorDisabled:"var(--componentButtonDangerColorDisabled)",componentButtonDangerFill:"var(--componentButtonDangerFill)",componentButtonDangerFillHover:"var(--componentButtonDangerFillHover)",componentButtonDangerFillActive:"var(--componentButtonDangerFillActive)",componentButtonDangerFillFocus:"var(--componentButtonDangerFillFocus)",componentButtonDangerFillDisabled:"var(--componentButtonDangerFillDisabled)",componentButtonDangerFocusRing:"var(--componentButtonDangerFocusRing)",componentDividerColor:"var(--componentDividerColor)",componentCheckboxBorderUnchecked:"var(--componentCheckboxBorderUnchecked)",componentCheckboxBorderUncheckedHover:"var(--componentCheckboxBorderUncheckedHover)",componentCheckboxBorderUncheckedFocus:"var(--componentCheckboxBorderUncheckedFocus)",componentCheckboxFillDisabled:"var(--componentCheckboxFillDisabled)",componentCheckboxCheckmarkColorDisabled:"var(--componentCheckboxCheckmarkColorDisabled)",componentRadioBorderUnchecked:"var(--componentRadioBorderUnchecked)",componentRadioFillDisabled:"var(--componentRadioFillDisabled)",componentRadioCheckmarkColorDisabled:"var(--componentRadioCheckmarkColorDisabled)",componentRadioBorderUncheckedHover:"var(--componentRadioBorderUncheckedHover)"};function Bf({...e}){const{children:n,color:r="brand",hasBorder:o=!1,isPillShaped:i=!1,icon:a,isSmall:c=!1,isSecondary:l=!1}=e;return t.createElement(Tf,{color:r,hasBorder:o,isPillShaped:i,isSecondary:l,isSmall:c,...e},a&&t.createElement(Nf,{isSmall:c},a),n)}const Tf=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"BadgeStyled",componentId:"sc-11co88f-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;height:",";padding:0 ",";border:2px solid transparent;border-radius:",";color:",";font-weight:normal;font-size:",";line-height:normal;",""],(e=>e.isSmall?"20px":"24px"),(e=>e.isSmall?If.spacing2:"6px"),(e=>e.isPillShaped?If.radiusPill:If.radiusMedium),If.white,If.fontSize50,(e=>{if(!e.isSecondary&&e.color){const t={brand:If.brandPrimary500,gray:If.gray400,black:If.gray900,"black-alpha":If.gray600a,blue:If.blue500,red:If.red400};return e.hasBorder?Nl(["border-color:",";color:",";"],t[e.color],t[e.color]):Nl(["background-color:",";"],t[e.color])}if(e.isSecondary)return Nl(["border-color:",";background-color:",";color:",";"],e.hasBorder?If.gray100:"transparent",e.hasBorder?If.white:If.gray100,If.gray800)})),Nf=Gl.div.withConfig({displayName:"IconHolder2",componentId:"sc-11co88f-1"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],(e=>e.isSmall?If.spacing1:If.spacing2),If.spacing1),Df=Nl(["color:",";font-size:",";font-family:",";line-height:",";"],If.colorText,If.fontSizeBase,If.brandFontStackBase,If.lineHeightBase);Gl.div.withConfig({displayName:"BaseStyles",componentId:"sc-11co88f-2"})(["",""],Df),Gl.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Track1",componentId:"sc-11co88f-3"})(["overflow:hidden;height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":If.radiusPill),(e=>"brand"===e.color?If.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${If["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${If["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${If.gray100a}\n\t\t\t`));const zf=ql(["to{transform:translateX(-40px);}"]),Pf=`rgb(${If["white-rgb"]} / 0.15)`,Of=`rgb(${If["gray1000-rgb"]} / 0.15)`;Gl.div.withConfig({displayName:"Fill2",componentId:"sc-11co88f-4"})(["width:calc(100% + 60px);height:100%;background-image:linear-gradient( -45deg,"," 25%,"," 25%,"," 50%,"," 50%,"," 75%,"," 75%,"," );background-size:40px 40px;background-repeat:repeat-x;animation:"," 0.8s linear infinite;"],Pf,Of,Of,Pf,Pf,Of,Of,zf);const Af=Gl.button.withConfig({displayName:"ButtonStyled1",componentId:"sc-11co88f-5"})(["vertical-align:middle;justify-content:center;align-items:center !important;box-sizing:border-box !important;border:1px solid transparent !important;border-radius:",";outline:none !important;font-weight:400 !important;font-style:normal;font-size:"," !important;font-family:"," !important;line-height:"," !important;text-transform:none !important;text-shadow:none !important;cursor:pointer !important;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;button&,a&{position:relative;display:flex;flex:0 0 auto;flex-wrap:nowrap;min-width:40px;background-position:center;text-align:center;text-decoration:none;white-space:nowrap;fill:currentColor;&:focus{display:flex;}}&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],If.brandRadiusBase,If.fontSizeBase,If.brandFontStackBase,If.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Nl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],If.spacing4,If.fontSize75):Nl(["height:40px !important;padding:0 "," !important;"],If.spacing5)),(e=>{if("primary"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],If.componentButtonPrimaryBorderActive,If.componentButtonPrimaryFillActive,If.componentButtonPrimaryColorActive);return Nl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],If.componentButtonPrimaryFill,If.componentButtonPrimaryColor,e.isPressed&&t,If.componentButtonPrimaryBorderHover,If.componentButtonPrimaryFillHover,If.componentButtonPrimaryColorHover,If.elevation1,If.componentButtonPrimaryBorderFocus,If.componentButtonPrimaryFillFocus,If.componentButtonPrimaryColorFocus,If.componentButtonPrimaryFocusRing,t,If.componentButtonPrimaryBorderDisabled,If.componentButtonPrimaryFillDisabled,If.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Nl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],If.componentButtonSecondaryBorderActive,If.componentButtonSecondaryFillActive,If.componentButtonSecondaryColorActive);return Nl(["border-color:"," !important;background-color:"," !important;color:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],If.componentButtonSecondaryBorder,If.componentButtonSecondaryFill,If.componentButtonSecondaryColor,e.isPressed&&t,If.componentButtonSecondaryBorderHover,If.componentButtonSecondaryFillHover,If.componentButtonSecondaryColorHover,If.elevation1,If.componentButtonSecondaryBorderFocus,If.componentButtonSecondaryFillFocus,If.componentButtonSecondaryColorFocus,If.componentButtonSecondaryFocusRing,t,If.componentButtonSecondaryBorderDisabled,If.componentButtonSecondaryFillDisabled,If.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Nl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],If.componentButtonCleanBorderActive,If.componentButtonCleanFillActive,If.componentButtonCleanColorActive);return Nl(["background-color:"," !important;color:",";"," &:hover{background-color:"," !important;color:"," !important;box-shadow:none !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{background-color:"," !important;color:"," !important;}"],If.componentButtonCleanFill,If.componentButtonCleanColor,e.isPressed&&t,If.componentButtonCleanFillHover,If.componentButtonCleanColorHover,If.componentButtonCleanBorderFocus,If.componentButtonCleanColorFocus,If.componentButtonCleanFocusRing,t,If.componentButtonCleanFillDisabled,If.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Nl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],If.componentButtonDangerBorderActive,If.componentButtonDangerFillActive,If.componentButtonDangerColorActive);return Nl(["border-color:transparent;background-color:"," !important;color:"," !important;box-shadow:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],If.componentButtonDangerFill,If.componentButtonDangerColor,If.elevation1,e.isPressed&&t,If.componentButtonDangerBorderHover,If.componentButtonDangerFillHover,If.componentButtonDangerColorHover,If.elevation2,If.componentButtonDangerBorderFocus,If.componentButtonDangerColorFocus,If.componentButtonDangerFocusRing,t,If.componentButtonDangerBorderDisabled,If.componentButtonDangerFillDisabled,If.componentButtonDangerColorDisabled)}return""})),Rf=Gl.button.withConfig({displayName:"ButtonStyled",componentId:"sc-11co88f-6"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;border:1px solid transparent;border-radius:",";background-color:transparent;outline:none;font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentColor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default;}"," ",";",""],If.brandRadiusBase,If.fontSizeBase,If.brandFontStackBase,If.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Nl(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],If.spacing4,If.fontSize75):Nl(["height:40px;padding:0 ",";"],If.spacing5)),(e=>{if("primary"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none;"],If.componentButtonPrimaryBorderActive,If.componentButtonPrimaryFillActive,If.componentButtonPrimaryColorActive);return Nl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],If.componentButtonPrimaryFill,If.componentButtonPrimaryColor,e.isPressed&&t,If.componentButtonPrimaryBorderHover,If.componentButtonPrimaryFillHover,If.componentButtonPrimaryColorHover,If.elevation1,t,e.isFocusVisible&&Nl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],If.componentButtonPrimaryFillFocus,If.componentButtonPrimaryColorFocus,If.componentButtonPrimaryBorderFocus,If.componentButtonPrimaryFocusRing),If.componentButtonPrimaryBorderDisabled,If.componentButtonPrimaryFillDisabled,If.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none;"],If.componentButtonSecondaryBorderActive,If.componentButtonSecondaryFillActive,If.componentButtonSecondaryColorActive);return Nl(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],If.componentButtonSecondaryBorder,If.componentButtonSecondaryFill,If.componentButtonSecondaryColor,e.isPressed&&t,If.componentButtonSecondaryBorderHover,If.componentButtonSecondaryFillHover,If.componentButtonSecondaryColorHover,If.elevation1,t,e.isFocusVisible&&Nl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],If.componentButtonSecondaryFillFocus,If.componentButtonSecondaryColorFocus,If.componentButtonSecondaryBorderFocus,If.componentButtonSecondaryFocusRing),If.componentButtonSecondaryBorderDisabled,If.componentButtonSecondaryFillDisabled,If.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none;"],If.componentButtonCleanBorderActive,If.componentButtonCleanFillActive,If.componentButtonCleanColorActive);return Nl(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],If.componentButtonCleanFill,If.componentButtonCleanColor,e.isPressed&&t,If.componentButtonCleanFillHover,If.componentButtonCleanColorHover,t,e.isFocusVisible&&Nl(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],If.componentButtonCleanColorFocus,If.componentButtonCleanBorderFocus,If.componentButtonCleanFocusRing),If.componentButtonCleanFillDisabled,If.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none;"],If.componentButtonDangerBorderActive,If.componentButtonDangerFillActive,If.componentButtonDangerColorActive);return Nl(["border-color:transparent;background-color:",";color:",";box-shadow:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],If.componentButtonDangerFill,If.componentButtonDangerColor,If.elevation1,e.isPressed&&t,If.componentButtonDangerBorderHover,If.componentButtonDangerFillHover,If.componentButtonDangerColorHover,If.elevation2,t,e.isFocusVisible&&Nl(["background-color:",";color:",";box-shadow:none;&,&:hover{border-color:",";box-shadow:",";}"],If.componentButtonDangerFillFocus,If.componentButtonDangerColorFocus,If.componentButtonDangerBorderFocus,If.componentButtonDangerFocusRing),If.componentButtonDangerBorderDisabled,If.componentButtonDangerFillDisabled,If.componentButtonDangerColorDisabled)}return""})),Mf=Gl.div.withConfig({displayName:"Icon4",componentId:"sc-11co88f-7"})(["display:flex;align-items:center;height:100%;"]),Ff=Gl(Mf).withConfig({displayName:"LeftIcon1",componentId:"sc-11co88f-8"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.lastChild?`calc(${If.spacing2} * -1) `:If.spacing3),If.spacing2),Lf=Gl(Mf).withConfig({displayName:"RightIcon2",componentId:"sc-11co88f-9"})(["margin-right:calc("," * -1);margin-left:",";"],If.spacing2,If.spacing3);function jf(){return t.createElement(Vf,{viewBox:"0 0 24 24","aria-hidden":"true"},t.createElement($f,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const Hf=ql(["100%{transform:rotate(360deg);}"]),Uf=ql(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),Vf=Gl.svg.withConfig({displayName:"Svg",componentId:"sc-11co88f-10"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Hf),$f=Gl.circle.withConfig({displayName:"Circle",componentId:"sc-11co88f-11"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],Uf),Wf=d((({children:e,className:n="",rightIcon:r,type:o="button","aria-label":i,isFullWidth:a=!1,icon:c,variant:l="secondary",isSmall:s=!1,isDisabled:u=!1,isPressed:d=!1,isLoading:p=!1,...f},m)=>{const h=function({variant:e,isSmall:t,icon:n,isDisabled:r,className:o=""}){return[o,"action-btn","secondary"===e||"clean"===e?"cancel gray":"cta-main blue",t?"button-small":"",n?"button-icon":"",r?"disabled":""].join(" ")}({className:n,variant:l,isSmall:s,icon:c,isDisabled:u});return t.createElement(Af,{"aria-label":i||f.title,className:h,disabled:u||p,type:o,variant:l,isPressed:d,isSmall:s,isFullWidth:a,as:f.href?"a":"button",ref:m,...f},p?t.createElement(t.Fragment,null,t.createElement(Ff,{lastChild:!e},t.createElement(jf,null)),e):t.createElement(t.Fragment,null,c&&t.createElement(Ff,{lastChild:!e},c),e,r&&t.createElement(Lf,null,r)))})),Yf=n("modern"),qf=d((({children:e,variant:n="secondary",isSmall:r=!1,icon:o,rightIcon:i,isDisabled:a=!1,isLoading:c=!1,type:l="button",...s},u)=>{const{isFocusVisible:d,focusProps:p}=Cs();return t.createElement(Rf,{variant:n,isSmall:r,disabled:c||a,type:l,as:s.href?"a":"button",isFocusVisible:d,ref:u,...p,...s},c?t.createElement(t.Fragment,null,t.createElement(Ff,{"data-testid":"ds-button-loading-icon",lastChild:!e},t.createElement(jf,null)),e):t.createElement(t.Fragment,null,o&&t.createElement(Ff,{lastChild:!e},o),e,i&&t.createElement(Lf,null,i)))})),Gf=d(((e,n)=>"legacy"===(i(Yf)||"modern")?t.createElement(Wf,{ref:n,...e}):t.createElement(qf,{ref:n,...e}))),Xf=Object.assign(Gf,{VersionProvider:Yf.Provider}),Kf=n(null);function Zf(){const e=i(Kf);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const Jf=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["height"].includes(e)&&t(e)}).withConfig({displayName:"FrameStyled",componentId:"sc-11co88f-12"})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:",";",""],(e=>e.isCheckeredBackground?"url(\"data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A\") ":If.gray25),(e=>"fixed"===e.height&&Nl(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),Qf=Gl.div.withConfig({displayName:"FocusRing",componentId:"sc-11co88f-13"})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]),em=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["height"].includes(e)&&t(e)}).withConfig({displayName:"Children",componentId:"sc-11co88f-14"})([""," display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"],(e=>"fixed"===e.height&&Nl(["position:absolute;inset:0;"]))),tm=Gl.div.withConfig({displayName:"Overlay1",componentId:"sc-11co88f-15"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]),nm=Gl.div.withConfig({displayName:"BadgeContainer",componentId:"sc-11co88f-16"})(["position:absolute;right:",";bottom:",";"],If.spacing4,If.spacing4),rm=Gl.div.withConfig({displayName:"IconContainer4",componentId:"sc-11co88f-17"})(["position:absolute;bottom:",";left:",";color:",";path{stroke:",";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"],If.spacing4,If.spacing4,If.white,If.gray100a),om=Gl.div.withConfig({displayName:"ProgressContainer",componentId:"sc-11co88f-18"})(["position:absolute;bottom:0;left:0;width:100%;"]),im={paragraphS:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize75,If.lineHeightText),paragraphM:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize100,If.lineHeightText),paragraphL:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize200,If.lineHeightText),uiTextXS:Nl(["font-weight:normal;font-size:",";line-height:20px;"],If.fontSize50),uiTextS:Nl(["font-weight:normal;font-size:",";line-height:20px;"],If.fontSize75),uiTextM:Nl(["font-weight:normal;font-size:",";line-height:20px;"],If.fontSize100),uiTextL:Nl(["font-weight:normal;font-size:",";line-height:24px;"],If.fontSize200),headingXS:Nl(["font-weight:600;font-size:",";line-height:",";"],If.fontSize100,If.lineHeightHeading),headingS:Nl(["font-weight:600;font-size:",";line-height:",";"],If.fontSize200,If.lineHeightHeading),headingM:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize400,If.lineHeightHeading),headingL:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize600,If.lineHeightHeading),headingXL:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize800,If.lineHeightHeading),headingXXL:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize1000,If.lineHeightHeading)};function am({children:e,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...c}){return t.createElement(cm,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a,...c},e)}const cm=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["direction","wrap"].includes(e)&&t(e)}).withConfig({displayName:"FlexStyled",componentId:"sc-11co88f-19"})(["display:flex;flex-direction:",";flex-wrap:",";gap:",";justify-content:",";align-items:",";box-sizing:border-box;width:100%;height:100%;"],(e=>e.direction),(e=>e.wrap),(e=>If[`spacing${e.gap}`]),(e=>e.justifyContent),(e=>e.alignItems));function lm(e){if(!/^#([\da-f]{3}){1,2}$/i.test(e))throw new Error(`Invalid HEX to RGB conversion: ${e}`);let t,n,r;return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):(t="",n="",r=""),`${Number(t)} ${Number(n)} ${Number(r)}`}const sm={"--white":"#ffffff","--white-rgb":lm("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":lm("#002233"),"--gray900":"#1a3847","--gray800":"#334e5c","--gray700":"#4d6470","--gray600":"#667a85","--gray500":"#809199","--gray400":"#99a7ad","--gray300":"#b3bdc2","--gray200":"#ccd3d6","--gray100":"#e6e9eb","--gray75":"#ebedef","--gray50":"#f2f4f5","--gray25":"#f7f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue500-rgb":lm("#0099ff"),"--blue500a10":"rgb(var(--blue500-rgb) / 10%)","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":lm("#f23e0d"),"--red500a10":"rgb(var(--red500-rgb) / 10%)","--red500a50":"rgb(var(--red500-rgb) / 50%)","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":lm("#fea900"),"--yellow500a10":"rgb(var(--yellow500-rgb) / 10%)","--yellow600":"#e59800","--yellow700":"#cb8700","--green500":"#72d400","--purple1000":"#15122e","--purple900":"#1f1b44","--purple800":"#2a245c","--purple700":"#40378a","--purple600":"#5549b8","--purple500":"#6b5ce6","--purple400":"#978ced","--purple300":"#c3bdf5","--purple200":"#e1defa","--purple100":"#f7f6fd","--magenta1000":"#2e0d18","--magenta900":"#451424","--magenta800":"#5c1b30","--magenta700":"#8a2949","--magenta600":"#b83761","--magenta500":"#e6457a","--magenta400":"#eb6a94","--magenta300":"#f5b4c9","--magenta200":"#fad9e4","--magenta100":"#fdf5f8","--teal1000":"#062822","--teal900":"#0a3c32","--teal800":"#0d5144","--teal700":"#147a66","--teal600":"#1ba388","--teal500":"#22ccaa","--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":fm("brandPrimary700","#0087e0"),"--brandPrimary600":fm("brandPrimary600","#0095eb"),"--brandPrimary500":fm("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":fm("brandPrimary500-rgb",lm("#00aaff")),"--brandPrimary300":fm("brandPrimary300","#b3e6ff"),"--brandPrimary100":fm("brandPrimary100","#e5f7ff"),"--spacing1":"2px","--spacing2":"4px","--spacing3":"8px","--spacing4":"12px","--spacing5":"16px","--spacing6":"24px","--spacing7":"32px","--spacing8":"40px","--spacing9":"48px","--layoutSpacing1":"16px","--layoutSpacing2":"24px","--layoutSpacing3":"32px","--layoutSpacing4":"48px","--layoutSpacing5":"64px","--layoutSpacing6":"96px","--layoutSpacing7":"160px","--radiusSmall":"2px","--radiusMedium":"5px","--radiusLarge":"8px","--radiusCircle":"50%","--radiusPill":"9999px","--radiusBase":"var(--radiusMedium)","--brandRadiusBase":"var(--radiusBase)","--fontStackBase":"Source Sans Pro, SourceSansPro, system-ui, sans-serif","--brandFontStackBase":"inherit","--fontSize25":"10px","--fontSize50":"12px","--fontSize75":"14px","--fontSize100":"16px","--fontSize200":"18px","--fontSize300":"20px","--fontSize400":"22px","--fontSize500":"25px","--fontSize600":"28px","--fontSize700":"32px","--fontSize800":"36px","--fontSize900":"40px","--fontSize1000":"45px","--fontSizeBase":"var(--fontSize100)","--lineHeightBase":"1.25","--lineHeightHeading":"1.25","--lineHeightText":"1.5","--gray900a":"rgb(var(--gray1000-rgb) / 90%)","--gray800a":"rgb(var(--gray1000-rgb) / 80%)","--gray700a":"rgb(var(--gray1000-rgb) / 70%)","--gray600a":"rgb(var(--gray1000-rgb) / 60%)","--gray500a":"rgb(var(--gray1000-rgb) / 50%)","--gray400a":"rgb(var(--gray1000-rgb) / 40%)","--gray300a":"rgb(var(--gray1000-rgb) / 30%)","--gray200a":"rgb(var(--gray1000-rgb) / 20%)","--gray100a":"rgb(var(--gray1000-rgb) / 10%)","--gray75a":"rgb(var(--gray1000-rgb) / 7%)","--gray50a":"rgb(var(--gray1000-rgb) / 5%)","--gray25a":"rgb(var(--gray1000-rgb) / 3%)","--colorText":"var(--gray800)","--colorTextMuted":"var(--gray600)","--colorTextDisabled":"var(--gray400)","--focusRingWidth":"2px","--focusRingColorPrimary":"var(--blue500)","--focusRingColorSecondary":"var(--gray200)","--colorShadow":"var(--gray100a)","--elevationStatic":"0 0 0 1px var(--colorShadow)","--elevation1":"0 1px 4px -1px var(--colorShadow)","--elevation2":"0 2px 4px -1px var(--colorShadow)","--elevation4":"0 4px 6px -2px var(--colorShadow)","--elevation8":"0 8px 12px -2px var(--colorShadow)","--elevation12":"0 12px 12px -2px var(--colorShadow)","--elevation16":"0 16px 12px -2px var(--colorShadow)","--elevation24":"0 24px 12px -2px var(--colorShadow)","--componentButtonPrimaryBorderHover":"var(--brandPrimary600)","--componentButtonPrimaryBorderActive":"var(--brandPrimary700)","--componentButtonPrimaryBorderFocus":"var(--brandPrimary500)","--componentButtonPrimaryBorderDisabled":"transparent","--componentButtonPrimaryColor":"var(--white)","--componentButtonPrimaryColorHover":"var(--white)","--componentButtonPrimaryColorActive":"var(--white)","--componentButtonPrimaryColorFocus":"var(--white)","--componentButtonPrimaryColorDisabled":"var(--white)","--componentButtonPrimaryFill":"var(--brandPrimary500)","--componentButtonPrimaryFillHover":"var(--brandPrimary600)","--componentButtonPrimaryFillActive":"var(--brandPrimary700)","--componentButtonPrimaryFillFocus":"var(--brandPrimary500)","--componentButtonPrimaryFillDisabled":"var(--brandPrimary300)","--componentButtonPrimaryFocusRing":"0 0 0 3px rgb(var(--brandPrimary500-rgb) / 30%)","--componentButtonSecondaryBorder":"var(--gray100)","--componentButtonSecondaryBorderHover":"var(--gray200)","--componentButtonSecondaryBorderActive":"var(--gray300)","--componentButtonSecondaryBorderFocus":"var(--gray300)","--componentButtonSecondaryBorderDisabled":"var(--gray50)","--componentButtonSecondaryColor":"var(--gray800)","--componentButtonSecondaryColorHover":"var(--gray800)","--componentButtonSecondaryColorActive":"var(--gray800)","--componentButtonSecondaryColorFocus":"var(--gray800)","--componentButtonSecondaryColorDisabled":"var(--gray300)","--componentButtonSecondaryFill":"var(--gray25)","--componentButtonSecondaryFillHover":"var(--gray50)","--componentButtonSecondaryFillActive":"var(--gray75)","--componentButtonSecondaryFillFocus":"var(--gray25)","--componentButtonSecondaryFillDisabled":"var(--gray25)","--componentButtonSecondaryFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonCleanBorderFocus":"var(--gray200)","--componentButtonCleanBorderActive":"transparent","--componentButtonCleanColor":"var(--gray600)","--componentButtonCleanColorHover":"var(--gray900)","--componentButtonCleanColorActive":"var(--gray900)","--componentButtonCleanColorFocus":"var(--gray900)","--componentButtonCleanColorDisabled":"var(--gray300)","--componentButtonCleanFill":"transparent","--componentButtonCleanFillHover":"var(--gray25a)","--componentButtonCleanFillActive":"var(--gray50a)","--componentButtonCleanFillFocus":"var(--gray25a)","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonDangerBorderHover":"var(--red600)","--componentButtonDangerBorderActive":"var(--red700)","--componentButtonDangerBorderFocus":"var(--red500)","--componentButtonDangerBorderDisabled":"transparent","--componentButtonDangerColor":"var(--white)","--componentButtonDangerColorHover":"var(--white)","--componentButtonDangerColorActive":"var(--white)","--componentButtonDangerColorFocus":"var(--white)","--componentButtonDangerColorDisabled":"var(--white)","--componentButtonDangerFill":"var(--red500)","--componentButtonDangerFillHover":"var(--red600)","--componentButtonDangerFillActive":"var(--red700)","--componentButtonDangerFillFocus":"var(--red500)","--componentButtonDangerFillDisabled":"var(--red500a50)","--componentButtonDangerFocusRing":"0 0 0 3px rgb(var(--red500-rgb) / 30%)","--componentDividerColor":"var(--gray100a)","--componentCheckboxBorderUnchecked":"var(--gray300)","--componentCheckboxBorderUncheckedHover":"var(--gray500)","--componentCheckboxBorderUncheckedFocus":"var(--gray500)","--componentCheckboxFillDisabled":"var(--gray100)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUnchecked":"var(--gray300)","--componentRadioFillDisabled":"var(--gray100)","--componentRadioCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUncheckedHover":"var(--gray500)"},um={"--gray1000":"#ffffff","--gray1000-rgb":lm("#ffffff"),"--gray900":"#e6e9eb","--gray800":"#ccd3d6","--gray700":"#b3bdc2","--gray600":"#99a7ad","--gray500":"#809199","--gray400":"#667a85","--gray300":"#4d6470","--gray200":"#334e5c","--gray100":"#1a3847","--gray75":"#123141","--gray50":"#0d2d3d","--gray25":"#082939","--gray10":"#002233","--componentDividerColor":"var(--gray100a)","--focusRingColorSecondary":"var(--gray200a)","--componentCheckboxBorderUnchecked":"var(--gray300a)","--componentCheckboxBorderUncheckedHover":"var(--gray500a)","--componentCheckboxBorderUncheckedFocus":"var(--gray500a)","--componentCheckboxFillDisabled":"var(--gray100a)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUnchecked":"var(--gray300a)","--componentRadioFillDisabled":"var(--gray100a)","--componentRadioCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUncheckedHover":"var(--gray500a)"},dm=Yl(["",""],Nl([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",pm(sm),"ds-dark-theme",pm(um)));function pm(e){const t=Object.entries(e).map((e=>e.join(":")));return t.join(";")+";"}function fm(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}const mm={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}},hm=t.createContext({zIndexBase:1031});function gm({children:e,noTheme:n,zIndexBase:r=1031,buttonVersion:i="modern",dateFnsLocale:a}){const c=o((()=>({zIndexBase:r,dateFnsLocale:a})),[a,r]);return t.createElement(hm.Provider,{value:c},t.createElement(Ss.Provider,{value:mm},t.createElement(Xf.VersionProvider,{value:i},!n&&t.createElement(dm,null),e)))}const vm=["modal","datepicker","dropdown","tooltip"];function ym(e){return i(hm).zIndexBase+vm.indexOf(e)}function bm({position:e="top-center",timing:n="instant",className:o,...i}){const[l,s]=function(e){var t=void 0===e?{}:e,n=t.delayEnter,o=void 0===n?0:n,i=t.delayLeave,l=void 0===i?0:i,s=t.hideOnScroll,d=void 0===s||s,p=r(!1),f=p[0],m=p[1],h=c(null),g=c(cd.IDLE),v=c(!1),y=u((function(){clearTimeout(h.current),h.current=null,g.current=cd.IDLE}),[]);function b(e,t){if(g.current===cd.ENTERING&&h.current&&y(),f){if(t)return m(!1),h.current=null,void(g.current=cd.IDLE);g.current=cd.LEAVING,h.current=window.setTimeout((function(){m(!1),h.current=null,g.current=cd.IDLE}),l)}}return a((function(){function e(){f&&d&&(y(),m(!1))}function t(){f&&(y(),m(!1))}return window.addEventListener("scroll",e,!0),window.addEventListener("touchend",t,!0),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("touchend",t,!0),h.current&&clearTimeout(h.current)}}),[f,d,y]),[f,{onMouseEnter:function(){g.current===cd.LEAVING&&h.current&&y(),f||(g.current=cd.ENTERING,h.current=window.setTimeout((function(){m(!0),h.current=null,g.current=cd.IDLE}),o))},onMouseLeave:b,onTouchStart:function(){v.current=!1},onTouchMove:function(){v.current=!0},onTouchEnd:function(){v.current||f||m(!0),v.current=!1}},function(){return b(0,!0)}]}({delayEnter:"delay"===n?800:0}),{isFocusVisible:d,focusProps:p}=Cs(),f=ym("tooltip"),m=void 0===i.isOpen?l||d:i.isOpen,{triggerProps:h,layerProps:g,renderLayer:v}=vd({isOpen:m,auto:!0,snap:!0,placement:wm(e),possiblePlacements:xm(e),triggerOffset:8,containerOffset:8}),y="icon"in i?t.createElement(am,{alignItems:"center"},t.createElement(Cm,null,i.icon)," ",i.content):"label"in i&&i.isLabelVertical?t.createElement("div",null,t.createElement(Sm,null,i.label),t.createElement("div",null,i.content)):"label"in i&&!i.isLabelVertical?t.createElement(t.Fragment,null,t.createElement(km,null,i.label)," ",i.content):i.content;return t.createElement(t.Fragment,null,"function"==typeof i.children?i.children({...h,...s,...p}):t.createElement("div",{...h,...s,...p},i.children),m&&v(t.createElement(Em,{...g,zIndex:f,className:o},y)))}function wm(e){return{"top-left":"top-start","top-center":"top-center","top-right":"top-end",left:"left-center",right:"right-center","bottom-left":"bottom-start","bottom-center":"bottom-center","bottom-right":"bottom-end"}[e]}function xm(e){const t=["top-center","bottom-center"],n=["left-center","right-center"],r=["top-end","top-start","bottom-end","bottom-start"];return{"top-left":r,"top-center":t,"top-right":r,left:n,right:n,"bottom-left":r,"bottom-center":t,"bottom-right":r}[e]}const Em=Gl.div.withConfig({displayName:"TooltipContainer",componentId:"sc-11co88f-20"})([""," z-index:",";display:flex;max-width:240px;padding:calc("," / 2) ",";border-radius:",";background:",";color:",";word-break:break-word;"],im.uiTextS,(e=>e.zIndex),If.spacing4,If.spacing4,If.radiusBase,If.gray900a,If.gray10),Cm=Gl.span.withConfig({displayName:"IconContainer3",componentId:"sc-11co88f-21"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],If.spacing1,If.spacing2,If.spacing1,If.spacing2,If.gray400),km=Gl.span.withConfig({displayName:"LabelContainer",componentId:"sc-11co88f-22"})(["margin-right:",";color:",";"],If.spacing2,If.gray400),Sm=Gl.div.withConfig({displayName:"VerticalLabelContainer",componentId:"sc-11co88f-23"})(["color:",";"],If.gray400);function _m({children:e,tooltipPosition:n="top-left"}){const[i,s]=r(!1),d=c(null);function p(){if(d.current){const e=d.current.offsetWidth<d.current.scrollWidth;s(e)}}return function(e){void 0===e&&(e={});var t=e.onResize,n=c(void 0);n.current=t;var i=e.round||Math.round,l=c(),s=r({width:void 0,height:void 0}),d=s[0],p=s[1],f=c(!1);a((function(){return f.current=!1,function(){f.current=!0}}),[]);var m=c({width:void 0,height:void 0}),h=function(e,t){var n=c(null),r=c(null);r.current=t;var o=c(null);a((function(){i()}));var i=u((function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return a((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),u((function(e){o.current=e,i()}),[i])}(u((function(t){return l.current&&l.current.box===e.box&&l.current.round===i||(l.current={box:e.box,round:i,instance:new ResizeObserver((function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=Ou(r,o,"inlineSize"),c=Ou(r,o,"blockSize"),l=a?i(a):void 0,s=c?i(c):void 0;if(m.current.width!==l||m.current.height!==s){var u={width:l,height:s};m.current.width=l,m.current.height=s,n.current?n.current(u):f.current||p(u)}}))}),l.current.instance.observe(t,{box:e.box}),function(){l.current&&l.current.instance.unobserve(t)}}),[e.box,i]),e.ref);o((function(){return{ref:h,width:d.width,height:d.height}}),[h,d.width,d.height])}({ref:d,onResize:()=>{p()}}),l((()=>{p()}),[]),t.createElement(Im,{ref:d},i?t.createElement(bm,{content:e,position:n,timing:"delay"},(n=>t.createElement("span",{...n},e))):e)}const Im=Gl.span.withConfig({displayName:"StyledText",componentId:"sc-11co88f-24"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),Bm=Gl.div.withConfig({displayName:"HeaderStyled1",componentId:"sc-11co88f-25"})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]),Tm=Gl.div.withConfig({displayName:"ThumbnailContainer3",componentId:"sc-11co88f-26"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],If.spacing4),Nm=Gl.div.withConfig({displayName:"Title4",componentId:"sc-11co88f-27"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],im.uiTextM,If.gray800),Dm=Gl.div.withConfig({displayName:"Detail",componentId:"sc-11co88f-28"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],im.uiTextS,If.spacing2,If.gray600),zm=Gl.div.withConfig({displayName:"IconContainer2",componentId:"sc-11co88f-29"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],If.spacing2,If.gray600),Pm=Gl.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-11co88f-30"})([""," padding:",";border-top:1px solid ",";color:",";"],im.uiTextS,(e=>"all"===e.padding?"var(--card-content-padding)":"0"),If.gray100a,If.colorText),Om=d((({children:e,isDisabled:n=!1,isPressed:r=!1,tooltip:o,"aria-label":i,...a},c)=>{const{isFocusVisible:l,focusProps:s}=Cs(),u=t.createElement(Am,{disabled:n,type:"button",isFocusVisible:l,ref:c,isPressed:r,"aria-label":i,...s,...a},e);return o?t.createElement(bm,{timing:"delay",content:o},u):u})),Am=Gl.button.withConfig({displayName:"ContextActionButtonStyled",componentId:"sc-11co88f-31"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;height:32px;padding:0 ",";border:none;border-radius:",";background-color:transparent;box-shadow:0 0 0 1px ",";font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentColor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;",""],If.spacing3,If.brandRadiusBase,If.gray100a,If.fontSize75,If.brandFontStackBase,If.lineHeightBase,(e=>{const t=Nl(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],If.gray10,If.gray800,If.gray100a);return Nl(["background-color:rgb("," / 90%);color:",";"," &:hover{background-color:",";color:",";box-shadow:",",",";}&:active{","}&:disabled{background-color:rgb("," / 70%);color:",";box-shadow:0 0 0 1px ",";cursor:default;}"],If["white-rgb"],If.gray600a,e.isPressed&&t,If.gray10,If.gray800,If.elevation1,If.elevationStatic,t,If["white-rgb"],If.gray200a,If.gray100a)})),Rm=Gl.div.withConfig({displayName:"ImagesStyled",componentId:"sc-11co88f-32"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;"],If.spacing1),Mm=Gl.img.withConfig({displayName:"ImgStyled",componentId:"sc-11co88f-33"})(["object-fit:",";width:100%;height:100%;min-height:0;max-height:410px;&:nth-child(1){grid-row:1 / -1;grid-column:1;}&:nth-child(1):last-child{grid-column:span 2;}&:nth-child(2){grid-row:1;grid-column:2;}&:nth-child(2):last-child{grid-row:span 2;}&:nth-child(3){grid-row:2;grid-column:2;}"],(e=>"fill"===e.contentResize?"cover":"scale-down"));function Fm({children:e,...n}){return t.createElement(Lm,{...n},t.createElement(jm,null,e))}const Lm=Gl.div.withConfig({displayName:"Placeholder1",componentId:"sc-11co88f-34"})(["display:grid;place-items:center;min-height:100px;"]),jm=Gl.div.withConfig({displayName:"IconContainer1",componentId:"sc-11co88f-35"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],If.brandRadiusBase,If.gray10,If.gray600);function Hm(e){return o((()=>e+"-"+yd()),[e])}const Um=Gl.div.withConfig({displayName:"Placeholder",componentId:"sc-11co88f-36"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";"],(e=>e.backgroundColor));function Vm({children:e,variant:n="outlined",isSelected:r=!1,contextAction:i,onClick:a,onSelect:c,as:l="button",href:s,to:u,selectButtonAriaLabel:d,"aria-label":p,...f}){const m=Hm("card-title"),h=o((()=>({variant:n,isSelected:r,cardTitleId:m})),[r,n,m]);return t.createElement(Kf.Provider,{value:h},t.createElement($m,{variant:n,isSelected:r,...f},t.createElement(Wm,{as:l,to:u,href:"a"===l?s:void 0,type:"button"===l?"button":void 0,onClick:function(e){if(c&&(e.metaKey||e.ctrlKey||e.shiftKey))return c(e),void e.preventDefault();null==a||a(e)},"aria-labelledby":p?void 0:m,"aria-label":p},e),i?t.createElement(qm,null,i):null,c?t.createElement(Ym,{type:"button",isSelected:r,onClick:c,"aria-label":d},t.createElement(Su,null)):null))}Vm.Frame=function({children:e,progressBar:n,badge:r,icon:o,isCheckeredBackground:i=!1,height:a="fixed",...c}){const{variant:l,isSelected:s}=Zf();return t.createElement(Jf,{isCheckeredBackground:i,height:a,...c},"clean"===l&&s&&t.createElement(Qf,null),t.createElement(em,{height:a},e),t.createElement(tm,null),n?t.createElement(om,null,n):null,r?t.createElement(nm,null,t.createElement(Bf,{color:"black-alpha"},r)):null,o?t.createElement(rm,null,o):null)},Vm.Header=function({thumbnail:e,title:n,detail:r,icon:o,isNotTruncated:i=!1,...a}){const{cardTitleId:c}=Zf();return t.createElement(Bm,{...a},e?t.createElement(Tm,null,e):null,t.createElement(Nm,{id:c},i?n:t.createElement(_m,null,n)),r?t.createElement(Dm,null,i?r:t.createElement(_m,null,r)):null,o?t.createElement(zm,null,o):null)},Vm.AdditionalInfo=function({children:e,padding:n="all",...r}){return t.createElement(Pm,{padding:n,...r},e)},Vm.ContextActionButton=Om,Vm.Images=function({children:e,...n}){return t.createElement(Rm,{...n},e)},Vm.Img=function({src:e,contentResize:n="fill",alt:r="",...o}){return t.createElement(Mm,{src:e,alt:r,contentResize:n,...o})},Vm.FilePlaceholder=Fm,Vm.PlaceholderIcon=Fm,Vm.IconPlaceholder=function({children:e,backgroundColor:n=If.gray25,iconColor:r=If.gray400a,...o}){const i=t.useMemo((()=>({color:r,size:"48px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}})),[r]);return t.createElement(Um,{...o,backgroundColor:n},t.createElement(Ss.Provider,{value:i},e))};const $m=Gl.div.withConfig({displayName:"Container7",componentId:"sc-11co88f-37"})(["--card-border-radius:",";--card-inner-border-color:",";--card-inner-border-width:1px;--card-selected-border-color:var(--userComponentCardSelectedColor,",");--card-selected-border-width:2px;--card-elevation:",";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:",";--card-actions-opacity:1;}&:focus-within{--card-actions-opacity:1;}"," position:relative;box-sizing:border-box;min-width:224px;border-radius:var(--card-border-radius);background:",";box-shadow:var(--card-box-shadow);"],If.radiusBase,If.gray100a,If.brandPrimary500,If.elevation1,If.gray100a,(e=>"outlined"===e.variant?Nl(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:"," ",";&:hover{--card-inner-border-color:",";--card-elevation:",";}",""],If.spacing4,If.spacing5,If.gray200a,If.elevation2,e.isSelected?Nl(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]):""):Nl(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],If.spacing3)),If.gray10),Wm=Gl.button.withConfig({displayName:"MainAction",componentId:"sc-11co88f-38"})(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:pointer;"]),Ym=Gl.button.withConfig({displayName:"SelectButton",componentId:"sc-11co88f-39"})(["position:absolute;top:",";right:",";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb(var(--white-rgb) / 80%);border-radius:",";background:none;color:transparent;opacity:",";cursor:pointer;&:hover{border-color:",";}&:active{border-width:3px;border-color:",";}",""],If.spacing4,If.spacing4,If.radiusCircle,(e=>e.isSelected?"1":"var(--card-actions-opacity)"),If.white,If.white,(e=>e.isSelected&&Nl(["border:none;background:var(--userComponentCardSelectedColor,",");color:",";&:hover{background:var(--userComponentCardSelectedColorHover,",");box-shadow:",";}&:active{background:var(--userComponentCardSelectedColorActive,",");box-shadow:none;}"],If.brandPrimary500,If.white,If.brandPrimary600,If.elevation1,If.brandPrimary700))),qm=Gl.div.withConfig({displayName:"ActionContainer",componentId:"sc-11co88f-40"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],If.spacing4,If.spacing4);function Gm(){return t.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z"}))}function Xm({isChecked:e=!1,isDisabled:n=!1,isIndeterminate:r=!1,inputProps:o,children:i,onChange:a=(()=>{}),id:c,...l}){const{isFocusVisible:s,focusProps:u}=Cs();return t.createElement(Km,{isIndeterminate:r,isDisabled:n,isChecked:e,className:"ds-checkbox__pointer-events-wrapper",...l},t.createElement(Qm,{type:"checkbox",ref:e=>{e&&(e.indeterminate=r)},"aria-checked":r?"mixed":e,disabled:n,checked:e,onChange:a,id:c,...u,...o}),t.createElement(Zm,null,t.createElement(Jm,{isFocusVisible:s,isIndeterminate:r,isDisabled:n,isChecked:e},e&&t.createElement(Gm,null),r&&t.createElement(eh,null))),i&&t.createElement(th,{isDisabled:n},i))}Xm.pointerEventsClassname="ds-checkbox__pointer-events-wrapper";const Km=Gl.label.withConfig({displayName:"Container6",componentId:"sc-11co88f-41"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],im.uiTextM,If.spacing1,(e=>!e.isDisabled&&"pointer")),Zm=Gl.div.withConfig({displayName:"IndicatorPosition1",componentId:"sc-11co88f-42"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),Jm=Gl.div.withConfig({displayName:"Indicator3",componentId:"sc-11co88f-43"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-radius:calc( "," + 3px );}"," "," "," "," ",":hover &,",":focus-visible &{"," background-color:",";}"],If.componentCheckboxBorderUnchecked,If.radiusMedium,If.focusRingWidth,If.radiusMedium,(e=>e.isFocusVisible&&Nl(["border-color:",";&::before{border-color:",";}"],If.componentCheckboxBorderUncheckedFocus,e.isChecked||e.isIndeterminate?If.focusRingColorPrimary:If.focusRingColorSecondary)),(e=>e.isChecked&&Nl(["border-color:transparent;background-color:",";fill:#fff;"],If.blue500)),(e=>e.isIndeterminate&&Nl(["border-color:transparent;background-color:",";"],If.blue500)),(e=>e.isDisabled&&Nl(["border-color:transparent;background-color:",";fill:",";"],If.componentCheckboxFillDisabled,If.componentCheckboxCheckmarkColorDisabled)),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",(e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${If.componentCheckboxBorderUncheckedHover};`),(e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:If.blue600)),Qm=Gl.input.withConfig({displayName:"Input2",componentId:"sc-11co88f-44"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),eh=Gl.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-11co88f-45"})(["width:8px;height:2px;border-radius:",";background-color:",";"],If.radiusPill,If.white),th=Gl.div.withConfig({displayName:"Label4",componentId:"sc-11co88f-46"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?If.gray400:If.colorText)),nh=n(void 0);function rh(e){if(!i(nh))throw new Error(`<Form.${e}> cannot be rendered outside the <Form.Group> component`)}const oh=Gl.div.withConfig({displayName:"GroupStyled",componentId:"sc-11co88f-47"})(["margin:0;padding:"," 0;border:0;"],If.spacing3),ih=Gl.div.withConfig({displayName:"HelperTextStyled",componentId:"sc-11co88f-48"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],im.uiTextS,If.spacing2,(e=>e.hasIcon?"2px":"0"),(e=>e.isInvalid?If.red500:If.gray600)),ah=Gl.div.withConfig({displayName:"Icon3",componentId:"sc-11co88f-49"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],If.spacing2),ch=Gl.label.withConfig({displayName:"LabelStyled",componentId:"sc-11co88f-50"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],im.uiTextM,If.spacing3,If.colorText),lh=Gl.span.withConfig({displayName:"SecondaryText",componentId:"sc-11co88f-51"})(["color:",";"],If.gray600),sh=Gl.span.withConfig({displayName:"Space",componentId:"sc-11co88f-52"})(["display:inline-block;width:",";"],If.spacing3),uh=Gl.div.withConfig({displayName:"RowStyled",componentId:"sc-11co88f-53"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],If.spacing4),dh=Gl.div.withConfig({displayName:"InputRowStyled",componentId:"sc-11co88f-54"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],If.spacing4);function ph({children:e,onSubmit:n,...r}){return t.createElement("form",{onSubmit:n,...r},e)}ph.Group=function({children:e,...n}){return t.createElement(nh.Provider,{value:"group"},t.createElement(oh,{...n},e))},ph.HelperText=function({icon:e,isInvalid:n,children:r,...o}){return rh("HelperText"),t.createElement(ih,{isInvalid:n,hasIcon:Boolean(e),...o},e&&t.createElement(ah,null,e),r)},ph.Label=function({children:e,secondaryText:n,htmlFor:r,id:o,...i}){return rh("Label"),t.createElement(ch,{htmlFor:r,id:o,...i},e,n?t.createElement(lh,null,t.createElement(sh,null," "),n):null)},ph.Row=function({children:e,...n}){return t.createElement(uh,{...n},e)},ph.InputRow=function({children:e,...n}){return rh("InputRow"),t.createElement(dh,{...n},e)},ph.IconError=function(e){return Bs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)},Gl.ul.withConfig({displayName:"List1",componentId:"sc-11co88f-55"})(["margin:0;padding:0;list-style:none;"]),Gl.li.withConfig({displayName:"Item5",componentId:"sc-11co88f-56"})(["&:not(:last-child){margin-bottom:",";}"],If.spacing2);const fh=Gl.span.withConfig({displayName:"DeleteButton",componentId:"sc-11co88f-57"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc("," * -1) 0 ",";padding:0;border:0;border-radius:",";background:none;color:",";outline:0;cursor:pointer;&:hover{background:",";color:",";}&:active{background:",";}"],If.spacing3,If.spacing3,If.radiusCircle,(e=>e.isDisabled?If.gray400:If.gray600),If.gray50a,If.gray800,If.gray100a);Gl.button.withConfig({displayName:"ChipStyled",componentId:"sc-11co88f-58"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],If.radiusPill,If.gray50,If.gray800,If.brandFontStackBase,(e=>e.onClick&&Nl(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],If.gray75,fh,If.gray800,If.gray100)),(e=>e.isFocusVisible&&Nl(["background:",";box-shadow:inset ",";outline:0;"],If.gray25,If.elevationStatic)),(e=>"m"===e.size&&gh),(e=>"s"===e.size&&hh),(e=>e.isDisabled&&vh));const mh=Gl.div.withConfig({displayName:"ThumbnailContainer2",componentId:"sc-11co88f-59"})(["display:block;"]),hh=Nl([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],im.uiTextS,mh,If.spacing3,If.spacing3),gh=Nl([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],im.uiTextM,mh,If.spacing3,If.spacing4),vh=Nl(["background-color:",";color:",";pointer-events:none;"],If.gray25,If.gray400);function yh(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-11co88f-60"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],If.spacing2,If.spacing3),Gl.div.withConfig({displayName:"StyledHeaderCaption",componentId:"sc-11co88f-61"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:",";margin-left:",";",""],If.spacing4,If.spacing4,im.uiTextM),Gl.div.withConfig({displayName:"StyledContainer",componentId:"sc-11co88f-62"})(["z-index:",";padding:",";border-radius:",";background-color:",";box-shadow:",",",";"],(e=>e.zIndex),If.spacing4,If.radiusMedium,If.white,If.elevationStatic,If.elevation2),Gl.div.withConfig({componentId:"sc-11co88f-63"})(["padding-top:",";"],If.spacing4),Yl(["",""],Nl([".rdp{background-color:",";color:",";","}.rdp-caption{display:flex;justify-content:space-between;align-items:center;}.rdp-table{padding:",";border-spacing:",";}.rdp-head_cell{height:30px;padding:0;text-align:center;","}.rdp-cell{padding:0;}.rdp-day{width:32px;height:32px;border:none;border-radius:",";background-color:",";color:",";outline:none;font-family:inherit;cursor:pointer;"," &_disabled{color:",";pointer-events:none;}&:focus-visible{background-color:",";color:",";box-shadow:0 0 0 2px ",",inset 0 0 0 1px ",";}&:hover{background-color:",";color:",";}}.rdp-day_today{background-color:",";color:",";font-weight:600;}.rdp-day_selected{background-color:",";color:",";&.rdp-day_outside,&.rdp-day_disabled{color:",";}&:focus-visible{background-color:",";color:",";box-shadow:0 0 0 2px ",",inset 0 0 0 1px ",";}&:hover{background-color:",";color:",";}}.rdp-day_outside{color:",";}.rdp-vhidden{display:none;}"],If.white,If.gray800,im.uiTextS,If.spacing1,If.spacing1,im.uiTextS,If.radiusMedium,If.white,If.gray600,im.uiTextS,If.gray200,If.gray50,If.gray800,If.gray200a,If.white,If.gray50,If.gray800,If.gray25,If.gray800,If.blue500,If.white,If.blue200,If.blue500,If.white,If.blue500,If.white,If.blue600,If.white,If.gray200));const bh=Gl.div.withConfig({displayName:"InputWrapper",componentId:"sc-11co88f-64"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--ds-input-height);padding:0 var(--ds-input-side-padding);border:1px solid ",";border-radius:",";background:",";&:hover{border-color:",";box-shadow:",";}&:focus-within{border-color:",";box-shadow:0 0 0 3px ",";}",";",";"],(e=>e.isSmall?Nl(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],If.spacing4,If.spacing2):Nl(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],If.spacing5,If.spacing3)),(e=>e.isInvalid?If.red500:If.gray100),If.radiusMedium,If.gray10,(e=>e.isInvalid?If.red600:If.gray200),If.elevation1,(e=>e.isInvalid?If.red500:If.gray300),If.gray100,(e=>e.isDisabled&&Nl(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],If.gray100,If.gray25,If.gray600,If.gray100)),(e=>"clean"===e.variant&&Nl(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],If.gray25a,If.gray50a))),wh=Gl.input.withConfig({displayName:"InputStyled",componentId:"sc-11co88f-65"})(["&&&{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;background:transparent;color:",";box-shadow:none;outline:none;font-family:",";"," &::-webkit-inner-spin-button,&::-webkit-outer-spin-button{display:none;margin:0;appearance:none;}&[type='number']{appearance:textfield;}&::placeholder{color:",";}&:disabled{color:",";cursor:not-allowed;&::placeholder{color:",";}}}"],If.colorText,If.brandFontStackBase,im.uiTextM,If.gray400,If.gray600,If.gray400),xh=Gl.div.withConfig({displayName:"LeftItems",componentId:"sc-11co88f-66"})(["display:flex;gap:var(--ds-input-icons-gap);align-items:center;margin-right:var(--ds-input-icons-gap);"]),Eh=Gl.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-11co88f-67"})(["flex:none;margin-left:calc("," * -1);color:",";"],If.spacing2,If.gray600),Ch=Gl.div.withConfig({displayName:"PrefixContainer",componentId:"sc-11co88f-68"})(["color:",";"],(e=>e.isDisabled?If.gray400:If.gray600)),kh=Gl.div.withConfig({displayName:"RightItems",componentId:"sc-11co88f-69"})(["display:flex;flex:none;gap:var(--ds-input-icons-gap);align-items:center;margin-right:calc("," * -1);margin-left:var(--ds-input-icons-gap);"],If.spacing2),Sh=Gl.div.withConfig({displayName:"SuffixContainer",componentId:"sc-11co88f-70"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.isDisabled?If.gray400:If.gray600),If.spacing2),_h=Gl.div.withConfig({displayName:"IconRightContainer",componentId:"sc-11co88f-71"})(["display:grid;flex:none;align-items:center;color:",";"],If.gray600),Ih=Gl.button.withConfig({displayName:"ClearButton",componentId:"sc-11co88f-72"})(["flex:none;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:focus{color:",";outline:none;}&:active{color:",";}"],If.gray200a,If.gray300a,If.gray400a);function Bh({icon:e,onClick:n,isTooltipShown:r=!1,label:o,isDisabled:i=!1,...a}){const{isFocusVisible:c,focusProps:l}=Cs();return r?t.createElement(bm,{content:o,isOpen:!!c||void 0},(r=>t.createElement(Th,{...a,...r,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e))):t.createElement(Th,{...a,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e)}const Th=Gl.button.withConfig({displayName:"InteractiveIconWrapper",componentId:"sc-11co88f-73"})(["width:24px;height:24px;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:active{color:",";}&:disabled{color:",";cursor:not-allowed;}",""],If.gray600,If.gray800,If.gray200,(e=>e.isFocusVisible&&Nl(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],If.gray800,If.gray200))),Nh=d((({hasClearButton:e=!1,icon:n,iconRight:o,id:i,name:a,isDisabled:l=!1,isReadOnly:s=!1,isInvalid:u=!1,isSmall:d=!1,onBlur:p,onChange:f,onFocus:m,onKeyDown:h,placeholder:g,type:v="text",value:y,variant:b="outlined","aria-label":w,"aria-labelledby":x,"aria-describedby":E,inputRef:C,maxLength:k,prefix:S,suffix:_,...I},B)=>{const[T,N]=r(!1),D=c(null),z=C||D,P=e&&y.length>0&&"number"!==v&&"password"!==v,O="password"===v?T?"text":"password":v;function A(){var e;null==z||null===(e=z.current)||void 0===e||e.focus()}const R=Boolean(n||S),M="password"===v,F=Boolean(!M&&(P||o)),L=Boolean(F||M||_);return t.createElement(bh,{...I,isDisabled:l,isInvalid:u,isSmall:d,onClick:A,ref:B,variant:b},R&&t.createElement(xh,null,n&&t.createElement(Eh,null,n),S&&t.createElement(Ch,{isDisabled:l},S)),t.createElement(wh,{autoComplete:"off",autoCorrect:"off",disabled:l,isDisabled:l,readOnly:s,onBlur:p,onChange:function(e){const t=e.currentTarget.value;null==f||f(t)},onFocus:m,onKeyDown:h,placeholder:g,ref:z,spellCheck:!1,type:O,value:y,"aria-label":w,"aria-labelledby":x,"aria-describedby":E,id:i,name:a,maxLength:k}),L&&t.createElement(kh,null,_&&t.createElement(Sh,{isDisabled:l},_),M&&t.createElement(Bh,{"data-testid":"ds-input-password-visibility-button",onClick:()=>(N((e=>!e)),void A()),label:T?"Hide password":"Show password",icon:T?t.createElement(Ws,null):t.createElement($s,null),isTooltipShown:!0}),P&&t.createElement(Ih,{"data-testid":"ds-input-clear-button",onClick:function(){null==f||f(""),A()},type:"button"},t.createElement(ku,null)),o&&t.createElement(_h,null,o)))}));function Dh({direction:e="horizontal",...n}){return"horizontal"===e?t.createElement(zh,{...n}):t.createElement(Ph,{role:"separator",...n})}const zh=Gl.hr.withConfig({displayName:"HorizontalDivider",componentId:"sc-11co88f-74"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],If.spacing3,If.componentDividerColor),Ph=Gl.div.withConfig({displayName:"VerticalDivider",componentId:"sc-11co88f-75"})(["box-sizing:content-box;width:1px;margin:0;padding:0 ",";background:",";background-clip:content-box;"],If.spacing2,If.componentDividerColor),Oh=Gl.div.withConfig({displayName:"ArrowStyled",componentId:"sc-11co88f-76"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],If.spacing2,If.spacing2),Ah=n(null);function Rh(){const e=i(Ah);if(!e)throw new Error("Dropdown compound components cannot be rendered outside the Dropdown component");return e}function Mh(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const Fh=n(void 0),Lh=d((({children:e,minWidth:n,...r},o)=>{const l=ym("dropdown"),s=c(null),{dispatch:u}=Rh(),d=i(Fh);return a((()=>()=>{u({type:"purge-menu-items",payload:d})}),[e,u,d]),t.createElement(jh,{minWidth:n,role:"menu",ref:Mh(o,s),zIndex:l,...r},e)})),jh=Gl.div.withConfig({displayName:"ContainerStyled",componentId:"sc-11co88f-77"})(["z-index:",";overflow-y:auto;box-sizing:border-box;min-width:",";max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";color:",";box-shadow:",",",";&:empty{display:none;}"],(e=>e.zIndex),(e=>e.minWidth?e.minWidth:"224px"),If.spacing3,If.spacing3,If.radiusBase,If.gray10,If.colorText,If.elevationStatic,If.elevation2);function Hh({children:e,isChecked:n,isDisabled:r,inputProps:o,onChange:i=(()=>{}),...a}){const{isFocusVisible:c,focusProps:l}=Cs();return t.createElement(Uh,{isDisabled:r,className:"ds-switch__pointer-events-wrapper",...a},e&&t.createElement(Vh,null,e),t.createElement($h,null,t.createElement(Wh,null,t.createElement("input",{role:"switch",type:"checkbox",disabled:r,onChange:i,checked:n,"aria-checked":n,...l,...o}),t.createElement(Yh,{"aria-hidden":"true",isDisabled:r,isFocusVisible:c}))))}Hh.pointerEventsClassname="ds-switch__pointer-events-wrapper";const Uh=Gl.label.withConfig({displayName:"SwitchStyled",componentId:"sc-11co88f-78"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],im.uiTextM,If.spacing1,If.gray800,(e=>!e.isDisabled&&"pointer")),Vh=Gl.span.withConfig({displayName:"Label2",componentId:"sc-11co88f-79"})(["align-self:center;margin-right:",";"],If.spacing4),$h=Gl.span.withConfig({displayName:"ToggleAlignment",componentId:"sc-11co88f-80"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]),Wh=Gl.span.withConfig({displayName:"Toggle",componentId:"sc-11co88f-81"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]),Yh=Gl.span.withConfig({displayName:"Indicator2",componentId:"sc-11co88f-82"})(["position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:100%;height:100%;border-radius:",";background:",";cursor:",";transition:0.2s;&::before{content:'';position:absolute;right:calc(100% - 20px);bottom:2px;left:2px;height:18px;border-radius:50%;background-color:",";box-shadow:",";transition:0.2s;}"," input:checked + &{background-color:",";opacity:",";&::before{right:2px;left:calc(100% - 20px);background-color:",";}}"," ",":hover &,",":focus-visible &{background-color:",";}",":hover input:checked + &,",":focus-visible input:checked + &{background-color:",";}",""],If.radiusPill,(e=>e.isDisabled?If.gray100:If.gray75),(e=>!e.isDisabled&&"pointer"),(e=>e.isDisabled?If.gray50:If.gray10),If.elevation2,Wh,(e=>e.isDisabled?If.gray400:If.blue500),(e=>e.isDisabled?"0.5":"1"),(e=>e.isDisabled?If.gray100:If.gray10),(e=>!e.isDisabled&&Nl(["",":active input + &::before{right:calc(100% - 24px);left:2px;border-radius:9px;}",":active input:checked + &::before{right:2px;left:calc(100% - 24px);}"],".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper")),".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",If.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",(e=>e.isDisabled?If.gray400:If.blue600),(e=>e.isFocusVisible&&Nl([""," input + &{background-color:",";&::after{content:'';position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:2px solid ",";border-radius:100px;}}"," input:checked + &::after{border-color:",";}"],Wh,If.gray100,If.gray200,Wh,If.blue500))),qh=Gl.div.withConfig({displayName:"ItemWrapper1",componentId:"sc-11co88f-83"})(["position:relative;"]),Gh=Gl.button.withConfig({displayName:"ItemStyled1",componentId:"sc-11co88f-84"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:36px;margin:0;padding:0 ",";border:none;background:none;color:",";outline:none;font-family:",";cursor:pointer;"," "," &:hover{background:",";color:",";}&:active{background:",";color:",";}&:disabled{background:none;color:",";cursor:default;}"],im.uiTextS,If.spacing5,(e=>e.isChecked?If.gray800:If.gray600),If.brandFontStackBase,(e=>e.isSubmenuOpen&&Nl(["background:",";color:",";"],If.gray25,If.gray800)),(e=>e.isHighlighted&&Nl(["background:",";color:",";"],If.gray50,If.gray800)),If.gray25,If.gray800,If.gray50,If.gray800,If.gray400),Xh=Gl.span.withConfig({displayName:"CheckboxContainer1",componentId:"sc-11co88f-85"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],If.spacing3),Kh=Gl.span.withConfig({displayName:"Icon2",componentId:"sc-11co88f-86"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],If.spacing3),Zh=Gl.span.withConfig({displayName:"Label1",componentId:"sc-11co88f-87"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),Jh=Gl.span.withConfig({displayName:"RightContainer",componentId:"sc-11co88f-88"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],If.spacing3,If.spacing2),Qh=Gl.span.withConfig({displayName:"SubmenuIconContainer",componentId:"sc-11co88f-89"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],If.spacing3,If.spacing3,(e=>e.isActive?If.gray400:If.gray200),Gh,Gh,If.gray400),eg=Gl(Lh).withConfig({displayName:"SubMenuContainer",componentId:"sc-11co88f-90"})(["margin-top:calc("," * -1);"],If.spacing3),tg=Gl.div.withConfig({displayName:"SectionTitleStyled",componentId:"sc-11co88f-91"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],im.uiTextS,If.spacing4,If.spacing5,If.spacing3,If.gray800);function ng(e){return{"bottom-center":{placement:"bottom-center",possiblePlacements:["bottom-center","top-center"]},"bottom-left":{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"bottom-right":{placement:"bottom-end",preferX:"right",preferY:"bottom",possiblePlacements:["bottom-end","top-end"]},bottom:{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"top-left":{placement:"top-start",preferX:"left",preferY:"top",possiblePlacements:["top-start","bottom-start"]},"top-right":{placement:"top-end",preferX:"right",preferY:"top",possiblePlacements:["top-end","bottom-end"]},"right-center":{placement:"right-center",possiblePlacements:["right-center"]},"left-center":{placement:"left-center",possiblePlacements:["left-center"]}}[e]}const rg={isOpen:!1,isOpenedWithKeyboard:!1,items:[],highlightedItemId:"",hasSearch:!1,keepHighlight:!1};function og(e,t){if("open"===t.type)return{...e,isOpen:!0};if("close"===t.type)return{...rg};if("toggle"===t.type)return{...rg,isOpen:!e.isOpen};if("toggle-from-keyboard"===t.type)return{...rg,isOpen:!e.isOpen,isOpenedWithKeyboard:!e.isOpen};if("highlight-current-item"===t.type){const t=e.items.find((e=>e.isSelected));return e.hasSearch&&t?{...e,highlightedItemId:t.id}:e.isOpenedWithKeyboard&&e.items.length?{...e,highlightedItemId:e.items[0].id}:e}if("highlight-item"===t.type)return{...e,highlightedItemId:t.payload,keepHighlight:!0};if("highlight-previous"===t.type){var n;if(0===e.items.length)return e;const t=null===(n=e.items.find((t=>t.id===e.highlightedItemId)))||void 0===n?void 0:n.parentId,r=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=r.findIndex((t=>t.id===e.highlightedItemId)),i=0===o,a=r.length-1,c=-1===o||i?r[a].id:r[o-1].id;return{...e,highlightedItemId:c}}if("highlight-next"===t.type){var r;if(0===e.items.length)return e;const t=null===(r=e.items.find((t=>t.id===e.highlightedItemId)))||void 0===r?void 0:r.parentId,n=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=n.findIndex((t=>t.id===e.highlightedItemId)),i=o===n.length-1,a=-1===o||i?n[0].id:n[o+1].id;return{...e,highlightedItemId:a}}if("highlight-submenu"===t.type){const t=e.highlightedItemId,n=e.items.find((e=>e.parentId===t));return{...e,highlightedItemId:n.id}}if("add-item"===t.type){const n=t.payload;return e.items.find((e=>e.id===n.id))?e:{...e,items:[...e.items,n]}}if("purge-menu-items"===t.type){const n=t.payload,r=e.items.filter((e=>e.parentId!==n));return{...e,items:r,highlightedItemId:e.keepHighlight?e.highlightedItemId:"",keepHighlight:!1}}return"keep-highlight"===t.type?{...e,keepHighlight:!0}:"set-search-presence"===t.type?{...e,hasSearch:!0}:void function(e,t){throw new Error("Unexpected action: "+t)}(0,t)}const ig=Gl.span.withConfig({displayName:"Text2",componentId:"sc-11co88f-92"})(["width:100%;min-width:0;text-align:left;"]),ag=Gl.div.withConfig({displayName:"Container4",componentId:"sc-11co88f-93"})(["--container-top-padding-compensation:calc("," * -1);position:sticky;top:var(--container-top-padding-compensation);z-index:1;box-sizing:content-box;height:40px;margin-top:var(--container-top-padding-compensation);padding:",";background:linear-gradient(180deg,#fff 22.4%,rgb(255 255 255 / 0) 100%);"],If.spacing3,If.spacing4),cg=Gl.div.withConfig({displayName:"Inner",componentId:"sc-11co88f-94"})(["position:absolute;top:",";right:",";left:",";"],If.spacing4,If.spacing4,If.spacing4),lg=Gl.div.withConfig({displayName:"TextStyled",componentId:"sc-11co88f-95"})([""," padding:"," ",";color:",";"],(e=>"item"===e.fontSize?im.uiTextS:im.uiTextM),If.spacing3,If.spacing5,If.gray400);const sg=Gl.div.withConfig({displayName:"ConcealedActionStyled",componentId:"sc-11co88f-96"})(["width:",";opacity:",";&:focus-within{width:auto;opacity:1;}"],(e=>e.isVisible?"auto":"var(--list-item-concealead-action-width, 0)"),(e=>e.isVisible?"1":"var(--list-item-concealead-action-opacity, 0)")),ug=Gl.div.withConfig({displayName:"Header1",componentId:"sc-11co88f-97"})(["display:flex;justify-content:space-between;align-items:center;padding:"," 0 ",";"],If.spacing3,If.spacing2),dg="ds-thumbnail__pointer-events-wrapper",pg=Gl.div.withConfig({displayName:"OverlayStyled",componentId:"sc-11co88f-98"})(["position:absolute;top:0;left:0;display:grid;place-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:",";color:",";-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);",""],If.gray200a,If.gray10,(e=>e.isConcealed&&Nl(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+dg,"."+dg))),fg=t.createContext({indicator:"none",setIndicator:()=>null}),mg={square:{state:{l:{radius:8,offset:[4,4]},m:{radius:8,offset:[4,4]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[7,7]}},status:{l:{radius:5,offset:[1,1]},m:{radius:5,offset:[1,1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[1,1]}}},circle:{state:{l:{radius:8,offset:[0,0]},m:{radius:8,offset:[2,2]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[9,5]}},status:{l:{radius:5,offset:[-5,-5]},m:{radius:5,offset:[-1,-1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[-1,-1]}}}},hg=Gl.svg.withConfig({displayName:"SvgIcon",componentId:"sc-11co88f-99"})(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]),gg={draft:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.gray400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 7.5 10.5 C 6.671875 10.5 6 11.171875 6 12 C 6 12.828125 6.671875 13.5 7.5 13.5 C 8.328125 13.5 9 12.828125 9 12 C 9 11.171875 8.328125 10.5 7.5 10.5 Z M 10.5 12 C 10.5 11.171875 11.171875 10.5 12 10.5 C 12.828125 10.5 13.5 11.171875 13.5 12 C 13.5 12.828125 12.828125 13.5 12 13.5 C 11.171875 13.5 10.5 12.828125 10.5 12 Z M 15 12 C 15 11.171875 15.671875 10.5 16.5 10.5 C 17.328125 10.5 18 11.171875 18 12 C 18 12.828125 17.328125 13.5 16.5 13.5 C 15.671875 13.5 15 12.828125 15 12 Z M 15 12 ",fill:"white"}))},error:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.red400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 13.5 4.5 L 10.5 4.5 L 10.5 13.5 L 13.5 13.5 Z M 13.5 4.5 ",fill:"white"}),t.createElement("path",{d:"M 13.5 16.5 L 10.5 16.5 L 10.5 19.5 L 13.5 19.5 Z M 13.5 16.5 ",fill:"white"}))},loading:function(){return t.createElement(hg,{viewBox:"0 0 14 14","aria-hidden":"true",fill:If.gray400},t.createElement(yg,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"}))},negative:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.red400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 17.304688 6.695312 C 16.71875 6.109375 15.769531 6.109375 15.183594 6.695312 L 12 9.878906 L 8.816406 6.695312 C 8.230469 6.109375 7.28125 6.109375 6.695312 6.695312 C 6.109375 7.28125 6.109375 8.230469 6.695312 8.816406 L 9.878906 12 L 6.695312 15.183594 C 6.109375 15.769531 6.109375 16.71875 6.695312 17.304688 C 7.28125 17.890625 8.230469 17.890625 8.816406 17.304688 L 12 14.121094 L 15.183594 17.304688 C 15.769531 17.890625 16.71875 17.890625 17.304688 17.304688 C 17.890625 16.71875 17.890625 15.769531 17.304688 15.183594 L 14.121094 12 L 17.304688 8.816406 C 17.890625 8.230469 17.890625 7.28125 17.304688 6.695312 Z M 17.304688 6.695312",fill:"white"}))},positive:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.teal500},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"m5.69215,11.43763c-0.58607,0.58607 -0.58607,1.53629 0,2.12236l3.18355,3.18363c0.21978,0.21971 0.49077,0.35703 0.77456,0.41195c0.12714,0.02461 0.25685,0.03272 0.38568,0.02431c0.35044,-0.02311 0.69432,-0.16853 0.96216,-0.43627l7.42831,-7.42836c0.58604,-0.58608 0.58604,-1.53629 0,-2.12238c-0.58604,-0.58607 -1.53631,-0.58607 -2.12235,0l-6.36715,6.36712l-2.12238,-2.12238c-0.58608,-0.58608 -1.53629,-0.58608 -2.12238,0z",fill:"white"}))}},vg=ql(["0%{transform:rotate(0deg);stroke-dashoffset:6.6;}50%{transform:rotate(720deg);stroke-dashoffset:31.4;}100%{transform:rotate(1080deg);stroke-dashoffset:6.6;}"]),yg=Gl.circle.withConfig({displayName:"SvgSpinner",componentId:"sc-11co88f-100"})(["--spinner-radius:10;--spinner-circumference:calc(2 * var(--spinner-radius) * 3.1415927);stroke:",";transform-origin:center;animation:"," 2s linear infinite;stroke-dasharray:31.4;stroke-linecap:round;"],(e=>e.color||If.gray400),vg),bg={online:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.teal500},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}))},offline:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.gray400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}))},inactive:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:"transparent"},t.createElement("circle",{cx:"12",cy:"12",r:"9",stroke:If.gray400,strokeWidth:"4"}))}};function wg({size:e="m",shape:n="square",variant:i="clean",icon:a,imageUrl:c,backgroundColor:l,iconColor:s,children:u,...d}){const p="content"===i,f="clean"===i;let m;m=l?If[l]||l:f?If.gray50a:l||c?"transparent":If.white;const h=f?If[s]||s||If.gray600:void 0,[g,v]=r("none"),y=o((()=>({indicator:g,setIndicator:v})),[g]);return t.createElement(fg.Provider,{value:y},t.createElement(xg,{size:e,shape:n,hasCheckers:p,indicator:g,variant:i,className:dg,...d},t.createElement(Cg,{iconColor:h,backgroundColor:m,imageUrl:c,size:e,"data-testid":"thumbnail-fill",variant:i},a,p&&!l&&!c&&t.createElement(Sg,{"data-testid":"thumbnail-no-image-line"})),p&&t.createElement(kg,{"data-testid":"thumbnail-inner-shadow"}),u))}wg.Overlay=function({children:e,isConcealed:n=!1,isLoading:r=!1,...o}){return t.createElement(pg,{isConcealed:n,...o},r?t.createElement(jf,null):e)},wg.pointerEventsClassname=dg,wg.Indicator=function({type:e}){const{setIndicator:n}=i(fg),r=gg[e];return a((()=>(n("state"),()=>n("none"))),[n]),t.createElement(r,null)},wg.Status=function({type:e}){const{setIndicator:n}=i(fg),r=bg[e];return a((()=>(n("status"),()=>n("none"))),[n]),t.createElement(r,null)};const xg=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"ThumbnailContainer1",componentId:"sc-11co88f-101"})([""," position:relative;flex:none;border-radius:var(--ds-thumbnail-border-radius);"," "," ",""],(e=>Nl(["--ds-thumbnail-border-radius:",";"],(function(){return"circle"===e.shape?If.radiusCircle:"preview"===e.variant?"0px":If.radiusBase}))),(e=>e.hasCheckers&&Nl(["background:url(\"data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='8' width='8' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='4' width='4' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='4' width='4' y='4' x='4' fill='%23e9ecee'/%3E%3C/svg%3E%0A\");"])),(e=>{const t={xs:"24px",s:"32px",m:"40px",l:"64px"}[e.size];return Nl(["width:",";height:",";"],t,t)}),(e=>{if("none"===e.indicator)return;const{radius:t,offset:n}=mg[e.shape][e.indicator][e.size];return Nl(["--ds-thumbnail-indicator-offset-x:","px;--ds-thumbnail-indicator-offset-y:","px;--ds-thumbnail-indicator-radius:","px;--ds-thumbnail-indicator-cutoff:-webkit-radial-gradient( calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var(--ds-thumbnail-indicator-offset-x) ) ) calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var(--ds-thumbnail-indicator-offset-y) ) ),circle,transparent calc(var(--ds-thumbnail-indicator-radius) + ","px),black 0 );"],n[0],n[1],t,2)})),Eg={xs:If.fontSize100,s:If.fontSize200,m:If.fontSize500,l:If.fontSize500},Cg=Gl.div.withConfig({displayName:"Fill1",componentId:"sc-11co88f-102"})(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:50% 50% no-repeat;background-color:",";background-image:",";background-size:",";color:",";font-weight:600;font-size:",";line-height:1;text-indent:1px;-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);"],(e=>e.backgroundColor),(e=>e.imageUrl?`url(${e.imageUrl}) `:void 0),(e=>"preview"===e.variant?"contain":"cover"),(e=>e.iconColor),(e=>Eg[e.size])),kg=Gl.div.withConfig({displayName:"InnerShadow",componentId:"sc-11co88f-103"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:1px solid ",";border-radius:var(--ds-thumbnail-border-radius);-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);"],If.gray100a),Sg=Gl.div.withConfig({displayName:"NoImage",componentId:"sc-11co88f-104"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],If.red500),_g=n({isDragging:!1,dragIndicator:null}),Ig=d((({children:e,subtext:n,thumbnail:r,rightElements:o,onClick:a,isDisabled:c=!1,isSelected:l=!1,checkedVariant:s,isChecked:u=!1,...d},p)=>{const f=Hm("list-item-label"),{isFocusVisible:m,focusProps:h}=Cs(),g=i(_g),v=t.useRef(null),y=[Xm.pointerEventsClassname,Hh.pointerEventsClassname,wg.pointerEventsClassname].join(" "),b="function"==typeof a,w=b&&!c;return t.createElement(Bg,{isDragging:(null==g?void 0:g.isDragging)??!1,isSelected:l,isActive:b,tabIndex:w?0:void 0,onClick:w?a:void 0,onKeyDown:e=>{"function"!=typeof a||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},isDisabled:c,className:y,isFocusVisible:m,ref:p,...d,...h},"checkbox"===s&&t.createElement(Tg,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(Xm,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})),r&&t.createElement(Ng,{isDisabled:c},r),t.createElement(Dg,{id:f},t.createElement(_m,null,e),n?t.createElement(zg,{isDisabled:c},t.createElement(_m,null,n)):null),(o||(null==g?void 0:g.dragIndicator))&&t.createElement(Pg,{ref:v,onClick:e=>{var t;(null==v||null===(t=v.current)||void 0===t?void 0:t.querySelectorAll("a, button").length)&&e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(am,{alignItems:"center",gap:"3"},o,null==g?void 0:g.dragIndicator)),"switch"===s&&t.createElement(Pg,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(Hh,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})))})),Bg=Gl.div.withConfig({displayName:"ItemStyled",componentId:"sc-11co88f-105"})(["--list-item-right-elements-color:",";display:flex;align-items:center;margin-right:calc("," * -1);margin-left:calc("," * -1);padding:"," ",";border-radius:var(--ds-list-item-border-radius-override,",");&:hover{--list-item-concealead-action-opacity:1;--list-item-concealead-action-width:auto;}"," "," ",""],If.gray200,If.spacing4,If.spacing4,If.spacing3,If.spacing4,If.radiusLarge,(e=>e.isActive&&Nl(["--list-item-right-elements-color:",";outline:none;cursor:pointer;&:hover{--list-item-right-elements-color:",";background:",";}"," &:active{background:",";box-shadow:none;}",""],If.gray200,If.gray600,If.gray25,e.isFocusVisible&&Nl(["--list-item-right-elements-color:",";background:",";&,&:hover{box-shadow:var( --ds-list-item-focus-ring-override,inset 0 0 0 2px ",",inset 0 0 0 4px "," );}"],If.gray600,If.gray25,If.gray50,If.gray10),If.gray50,e.isDisabled&&Nl(["--list-item-right-elements-color:",";color:",";pointer-events:none;"],If.gray200,If.gray200))),(e=>e.isSelected&&Nl(["--list-item-right-elements-color:",";&,&:hover{background:",";}"],If.gray600,If.gray50)),(e=>e.isDragging&&Nl(["--list-item-right-elements-color:",";background:",";box-shadow:",";cursor:grabbing;"],If.gray600,If.gray25,If.elevation4))),Tg=Gl.div.withConfig({displayName:"CheckboxContainer",componentId:"sc-11co88f-106"})(["flex:none;margin-right:",";"],If.spacing4),Ng=Gl.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-11co88f-107"})(["flex:none;margin-right:",";",""],If.spacing4,(e=>e.isDisabled&&"opacity: 50%;")),Dg=Gl.div.withConfig({displayName:"Content2",componentId:"sc-11co88f-108"})([""," flex:1;min-width:0;"],im.uiTextM),zg=Gl.div.withConfig({displayName:"Subtext1",componentId:"sc-11co88f-109"})([""," color:",";"],im.uiTextS,(e=>e.isDisabled?If.gray200:If.gray600)),Pg=Gl.div.withConfig({displayName:"RightElements",componentId:"sc-11co88f-110"})(["flex:none;margin-left:",";color:var(--list-item-right-elements-color);"],If.spacing4);function Og({children:e,isContained:n=!1,...r}){return t.createElement(Ag,{isContained:n,...r},e)}Og.Group=function({title:e,action:n,children:r,...o}){const i=Hm("list-group-header");return t.createElement("div",{...o},t.createElement(ug,null,t.createElement("span",{id:i},e),n),t.createElement("div",{"aria-describedby":i},r))},Og.Item=Ig,Og.Divider=Dh,Og.ConcealedAction=function(e){return t.createElement(sg,{...e})};const Ag=Gl.div.withConfig({displayName:"ListStyled",componentId:"sc-11co88f-111"})(["padding:",";"],(e=>e.isContained?`0 ${If.spacing5}`:`${If.spacing3} 0`)),Rg=Gl.div.withConfig({displayName:"ItemWrapper",componentId:"sc-11co88f-112"})(["--ds-list-item-border-radius-override:0;--ds-list-item-focus-ring-override:none;padding:0 ",";"],If.spacing4);function Mg(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function Fg(e){if(!e||!Mg(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function Lg({children:e,trigger:n,position:r="bottom-left",isClosedOnScroll:i=!1,isKeepingFocusOnTrigger:l=!1,containerRef:s,onOpen:d,onClose:p,minWidth:m,...h}){const[g,v]=f(og,rg),y=c(!0),b=c(),w=Hm("dropdown-menu");var x,E;a((()=>{y.current?y.current=!1:g.isOpen?(v({type:"highlight-current-item"}),null==d||d()):null==p||p()}),[g.isOpen]),x=g.highlightedItemId,E=g.hasSearch,a((()=>{if(!x)return;const e=document.querySelector("#"+x);if(e){const t=e.closest('[role="menu"');t&&(function(e,t,n){const{top:r,bottom:o,height:i}=e.getBoundingClientRect(),a=t.getBoundingClientRect(),c=n?64:0;return!(r>=a.bottom-i||o<=a.top+c+i)}(e,t,E)||e.scrollIntoView(!1))}}),[x,E]);const C=u((()=>{var e;g.isOpen&&(v({type:"close"}),null==b||null===(e=b.current)||void 0===e||e.focus())}),[g.isOpen]);a((()=>{function e(){C()}if(i&&g.isOpen)return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}),[i,C,g.isOpen]),yh("Tab",(()=>{g.isOpen&&C()})),yh("Escape",(()=>{g.isOpen&&C()})),yh("Enter",(e=>{var t;g.isOpen&&g.highlightedItemId&&(null===(t=document.querySelector("#"+g.highlightedItemId))||void 0===t||t.click(),e.preventDefault())})),yh("ArrowDown",(e=>{g.isOpen&&(v({type:"highlight-next"}),e.preventDefault())})),yh("ArrowUp",(e=>{g.isOpen&&(v({type:"highlight-previous"}),e.preventDefault())}));const k=o((()=>({dispatch:v,close:C,highlightedItemId:g.highlightedItemId,hasSearch:g.hasSearch,isKeepingFocusOnTrigger:l,menuId:w})),[C,l,g.hasSearch,g.highlightedItemId,w]),{renderLayer:S,triggerProps:{ref:_},layerProps:I,triggerBounds:B}=vd({isOpen:g.isOpen,onOutsideClick:Mg(b.current)?void 0:()=>v({type:"close"}),onDisappear:e=>{"full"===e&&v({type:"close"})},triggerOffset:4,containerOffset:16,auto:!0,container:Fg(b.current),...ng(r)}),T="bottom"===r?{width:null==B?void 0:B.width,minWidth:"initial",maxWidth:"initial"}:{};return t.createElement(Ah.Provider,{value:k},t.createElement("div",{...h},n({isOpen:g.isOpen,onClick:()=>{v({type:"toggle"})},"aria-haspopup":!0,"aria-expanded":g.isOpen,"aria-controls":w,onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),v({type:"toggle-from-keyboard"}))},ref:Yu(_,b)},{open:()=>{v({type:"open"})},close:()=>{v({type:"close"})}}),g.isOpen&&S(t.createElement(Lh,{id:w,...I,ref:Yu(I.ref,s),style:{...I.style,...T},minWidth:m},e))))}function jg({attr:e,title:n,size:r,children:o,color:a,style:c,...l}){const s=i(Ss),u=r||s.size,d={...s.attr,...e};return t.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...d,...l,style:{color:a,...s.style,...c},height:u,width:u,xmlns:"http://www.w3.org/2000/svg"},n&&t.createElement("title",null,n),o)}function Hg({label:e,labelSecondaryText:n,helperText:r,helperTextIcon:o,id:i,name:a,isInvalid:c,hasClearButton:l,icon:s,iconRight:u,inputRef:d,isDisabled:p,isReadOnly:f,isSmall:m,maxLength:h,onBlur:g,onChange:v,onFocus:y,onKeyDown:b,placeholder:w,type:x,value:E,variant:C,prefix:k,suffix:S,..._}){const I=Hm("input"),B=i||I,T=Hm("helper-text");return t.createElement(ph.Group,{..._},t.createElement(ph.Label,{secondaryText:n,htmlFor:B},e),t.createElement(Nh,{hasClearButton:l,icon:s,iconRight:u,inputRef:d,isDisabled:p,isReadOnly:f,isInvalid:c,isSmall:m,maxLength:h,onBlur:g,onChange:v,onFocus:y,onKeyDown:b,placeholder:w,type:x,value:E,variant:C,id:B,name:a,"aria-describedby":r?T:void 0,prefix:k,suffix:S}),r?t.createElement(ph.HelperText,{icon:o,isInvalid:c,id:T},r):null)}Lg.Divider=Dh,Lg.Item=function({children:e,isDisabled:n,icon:l,checkedVariant:s="checkmark",isChecked:u=!1,badge:d,onClick:p,submenu:f,role:m,...h}){const[g,v]=r(!1),[y,b]=r(!1),w=Hm("dropdown-item"),x=Hm("dropdown-item-label"),E=Hm("dropdown-submenu"),C=Boolean(f),{dispatch:k,...S}=Rh(),_=S.highlightedItemId===w,I=i(Fh),{isFocusVisible:B,focusProps:T}=Cs(),{hoverProps:N}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:l}=e,[s,u]=r(!1),d=c({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a(bs,[]);let{hoverProps:p,triggerHoverEnd:f}=o((()=>{let e=(e,r)=>{if(d.pointerType=r,l||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let o=e.currentTarget;d.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),u(!0)},r=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),u(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{hs&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||hs||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:o,triggerHoverEnd:r}}),[t,n,i,l,d]);return a((()=>{l&&f({currentTarget:d.target},d.pointerType)}),[l]),{hoverProps:p,isHovered:s}}({onHoverStart:()=>{C&&v(!0)},onHoverEnd:()=>{C&&v(!1)}}),D=g&&C,{triggerProps:z,layerProps:P,renderLayer:O}=vd({isOpen:D,auto:!0,placement:"right-start",possiblePlacements:["right-end","right-start","left-start","left-end"],triggerOffset:-4,onParentClose:()=>{}});a((()=>{k({type:"add-item",payload:{id:w,parentId:I,isDisabled:n,isSelected:"checkmark"===s?u:void 0}})})),a((()=>{y&&k({type:"highlight-submenu"})}),[k,y]),a((()=>{var e;S.hasSearch||S.isKeepingFocusOnTrigger||_&&(null===(e=document.querySelector("#"+w))||void 0===e||e.focus())}),[S.hasSearch,S.isKeepingFocusOnTrigger,w,_]),yh("ArrowLeft",(e=>{C&&y&&(k({type:"highlight-item",payload:w}),v(!1),b(!1),e.preventDefault())})),yh("ArrowRight",(e=>{_&&C&&(v(!0),b(!0),e.preventDefault())}));const A=function(e){return"checkbox"===e?Xm.pointerEventsClassname:"switch"===e?Hh.pointerEventsClassname:""}(s),R=function(e,t,n){return e||("checkbox"===t||"switch"===t?"menuitemcheckbox":"checkmark"===t&&n?"menuitemradio":"menuitem")}(m,s,u),M="menuitemcheckbox"===R||"menuitemradio"===R?u:void 0,F=C?{"aria-haspopup":!0,"aria-expanded":g,"aria-controls":E}:{};function L(e){null==p||p(e),C||("menuitemcheckbox"!==R?S.close():k({type:"keep-highlight"}))}return t.createElement(Fh.Provider,{value:w},t.createElement(qh,{...N,...z,onClick:e=>e.stopPropagation()},t.createElement(Gh,{disabled:n,"aria-disabled":n,isChecked:u,"aria-checked":M,"aria-selected":S.hasSearch||S.isKeepingFocusOnTrigger?_:void 0,role:R,onClick:L,tabIndex:-1,id:w,onKeyDown:function(e){C&&(" "!==e.key&&"Enter"!==e.key||(null==p||p(e),v((e=>{const t=!e;return b(t),t})),e.preventDefault()))},isHighlighted:_||B,isSubmenuOpen:g,className:A,...F,...T,...h},"checkbox"===s&&t.createElement(Xh,{onClick:e=>e.stopPropagation()},t.createElement(Xm,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:L})),l&&t.createElement(Kh,null,l),t.createElement(Zh,{id:x},e),"checkmark"===s&&u&&t.createElement(Jh,null,t.createElement(Su,null)),d&&t.createElement(Jh,null,d),"switch"===s&&t.createElement(Jh,{onClick:e=>e.stopPropagation()},t.createElement(Hh,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:L})),C&&t.createElement(Qh,{isActive:g||B||_},t.createElement(Iu,null))),D&&O(t.createElement(eg,{id:E,...P},f))))},Lg.ListItem=function({children:e,isDisabled:n,isChecked:r=!1,onClick:o,role:i="menuitem",rightElements:c,...l}){const s=Hm("dropdown-item"),{dispatch:u,...d}=Rh(),p=d.highlightedItemId===s;a((()=>{u({type:"add-item",payload:{id:s,parentId:void 0,isDisabled:n,isSelected:r}})})),a((()=>{var e;d.hasSearch||d.isKeepingFocusOnTrigger||p&&(null===(e=document.querySelector("#"+s))||void 0===e||e.focus())}),[d.hasSearch,d.isKeepingFocusOnTrigger,s,p]);const f=r?t.createElement(Su,{color:If.gray800}):null;return t.createElement(Rg,{onClick:e=>e.stopPropagation()},t.createElement(Og.Item,{isSelected:p,isDisabled:n,onClick:function(){null==o||o(),d.close()},"aria-disabled":n,"aria-checked":"menuitemradio"===i?r:void 0,"aria-selected":d.hasSearch||d.isKeepingFocusOnTrigger?p:void 0,role:i,rightElements:c?t.createElement(t.Fragment,null,c,f):f,id:s,...l},e))},Lg.SectionTitle=function({children:e,...n}){return t.createElement(tg,{...n},e)},Lg.Arrow=function(e){return t.createElement(Oh,{...e},t.createElement(Cu,null))},Lg.SelectButtonText=function({children:e,...n}){return t.createElement(ig,{...n},t.createElement(_m,null,e))},Lg.SearchInput=function({onChange:e,...n}){const r=c(null),{dispatch:o}=Rh(),{menuId:i}=Rh();return a((()=>{var e;null===(e=r.current)||void 0===e||e.focus()}),[]),a((()=>{o({type:"set-search-presence"})}),[o]),t.createElement(ag,null,t.createElement(cg,null,t.createElement(Nh,{inputRef:r,hasClearButton:!0,icon:t.createElement(Hs,null),onChange:function(t){var n,r;null===(n=document.querySelector(`#${i}`))||void 0===n||null===(r=n.scrollTo)||void 0===r||r.call(n,{top:0}),e(t)},...n})))},Lg.Text=function({fontSize:e="item",children:n,...r}){return t.createElement(lg,{fontSize:e,...r},n)},Gl.div.withConfig({displayName:"EmptyStateStyled",componentId:"sc-11co88f-113"})(["display:grid;grid-template-columns:minmax(10px,472px);justify-content:center;justify-items:center;text-align:center;"]),Gl.p.withConfig({displayName:"Image1",componentId:"sc-11co88f-114"})(["display:grid;place-items:center;width:128px;height:128px;margin:0 0 ",";border-radius:",";background:",";color:",";"],If.spacing5,If.radiusCircle,If.gray25,If.gray400),Gl.h2.withConfig({displayName:"Title3",componentId:"sc-11co88f-115"})([""," margin:0 0 ",";color:",";"],im.headingM,If.spacing4,If.gray800),Gl.p.withConfig({displayName:"Description1",componentId:"sc-11co88f-116"})([""," margin:0;color:",";"],im.paragraphM,If.gray600),Gl.p.withConfig({displayName:"Actions",componentId:"sc-11co88f-117"})(["display:flex;gap:",";justify-content:center;margin:"," 0 0;"],If.spacing4,If.spacing6),Gl.div.withConfig({displayName:"InlineBannerStyled",componentId:"sc-11co88f-118"})([""," display:flex;align-items:flex-start;padding:"," ",";border-radius:",";background:var(--background-color);"],(e=>"info"===e.variant?Nl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],If.blue500a10,If.blue500,If.blue600,If.blue700):"warning"===e.variant?Nl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],If.yellow500a10,If.yellow500,If.yellow600,If.yellow700):"error"===e.variant?Nl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],If.red500a10,If.red500,If.red600,If.red700):Nl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],If.gray50,If.gray500,If.blue600,If.blue700)),If.spacing4,If.spacing4,If.radiusMedium),Gl.div.withConfig({displayName:"IconHolder1",componentId:"sc-11co88f-119"})(["display:flex;width:24px;height:24px;margin-right:",";color:var(--icon-color);"],If.spacing3),Gl.div.withConfig({displayName:"TitleHolder",componentId:"sc-11co88f-120"})([""," margin-bottom:",";color:",";"],im.uiTextM,If.spacing2,If.gray1000),Gl.div.withConfig({displayName:"DescriptionHolder",componentId:"sc-11co88f-121"})([""," color:",";line-height:",";"],im.uiTextS,If.gray800,If.layoutSpacing2),Gl.div.withConfig({displayName:"LinkHolder",componentId:"sc-11co88f-122"})([""," margin-top:",";a{color:var(--link-color);text-decoration:none;}a:hover{color:var(--link-color-hover);}a:focus-visible{border-radius:2px;box-shadow:0 0 0 2px ",";outline:none;}"],im.uiTextS,If.spacing2,If.blue500),Gl.kbd.withConfig({displayName:"KeyboardBadgeStyled",componentId:"sc-11co88f-123"})([""," display:inline-flex;vertical-align:top;box-sizing:border-box;height:24px;padding:"," ",";border-radius:",";background:",";color:",";box-shadow:inset 0 -1px 0 ",";font-family:",";"],im.uiTextS,If.spacing1,If.spacing3,If.radiusMedium,If.gray75,If.gray800,If.gray200a,If.fontStackBase),Gl.span.withConfig({displayName:"KeyboardLabelStyled",componentId:"sc-11co88f-124"})(["position:absolute;overflow:hidden;clip:rect(0 0 0 0);width:1px;height:1px;white-space:nowrap;clip-path:inset(50%);"]),Gl.div.withConfig({displayName:"IconHolder",componentId:"sc-11co88f-125"})(["display:flex;align-items:center;width:20px;height:20px;margin-right:",";margin-left:calc("," * -1);&:not(:last-child){margin-right:calc("," * -1);}svg{fill:currentColor;}"],If.spacing1,If.spacing2,If.spacing2),Gl.div.withConfig({displayName:"StyledItemWrapper",componentId:"sc-11co88f-126"})(["position:relative;user-select:none;"," ",""],(e=>"after"===e.insertPosition&&Nl(["&::after{content:'';position:absolute;bottom:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",If.blue300)),(e=>"before"===e.insertPosition&&Nl(["&::before{content:'';position:absolute;top:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",If.blue300))),Gl.div.withConfig({displayName:"ShadowItem",componentId:"sc-11co88f-127"})(["position:absolute;top:0;box-sizing:content-box;width:100%;height:100%;margin-right:calc("," * -1);margin-left:calc("," * -1);padding-right:",";padding-left:",";border-radius:",";background-color:",";"],If.spacing4,If.spacing4,If.spacing4,If.spacing4,If.radiusLarge,If.gray50),Gl.div.withConfig({displayName:"StyledDragIndicator",componentId:"sc-11co88f-128"})(["cursor:",";"],(e=>e.isDragging?"grabbing":"grab"));const Ug=Yl((e=>Nl(["@keyframes ","{0%{opacity:0;}100%{opacity:1;}}@keyframes ","{0%{opacity:1;}100%{opacity:0;}}@keyframes ","{0%{opacity:0.5;transform:scale(0.95);}100%{opacity:1;transform:scale(1);}}@keyframes ","{0%{opacity:1;transform:scale(1);}100%{opacity:0.5;transform:scale(0.95);}}.",",.","{position:fixed;top:0;right:0;bottom:0;left:0;z-index:",";}.","{background:",";}.","{display:flex;align-items:flex-start;overflow-x:hidden;overflow-y:auto;padding:",";}.","{"," position:relative;display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:520px;margin:auto;border-radius:",";background:",";box-shadow:",";}.","{width:866px;}.","{width:100%;height:100%;min-height:0;}"],"b-modal-overlay-in","b-modal-overlay-out","b-modal-container-in","b-modal-container-out","b-modal__overlay","b-modal__container",e.zIndex,"b-modal__overlay",If.gray200a,"b-modal__container",If.spacing6,"b-modal__modal",Df,If.radiusLarge,If.gray10,If.elevation8,"b-modal__modal--medium","b-modal__modal--full-screen"))),Vg=Gl.div.withConfig({displayName:"HeaderStyled",componentId:"sc-11co88f-129"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],If.spacing4,If.spacing6,(e=>!e.hideCloseIcon&&Nl(["padding-right:calc( "," + 50px + "," );"],If.spacing4,If.spacing6))),$g=Gl.div.withConfig({displayName:"BackButton",componentId:"sc-11co88f-130"})(["margin-right:",";margin-left:calc("," * -1);"],If.spacing4,If.spacing4),Wg=Gl.div.withConfig({displayName:"ModalThumbnail",componentId:"sc-11co88f-131"})(["margin-right:",";"],If.spacing4),Yg=Gl.div.withConfig({displayName:"Headings",componentId:"sc-11co88f-132"})(["flex:1;min-width:0;"]),qg=Gl.h2.withConfig({displayName:"Title2",componentId:"sc-11co88f-133"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],im.uiTextL,If.colorText),Gg=Gl.h3.withConfig({displayName:"SecondaryInformation",componentId:"sc-11co88f-134"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],im.uiTextS,If.gray500),Xg=Gl.div.withConfig({displayName:"ContentStyled",componentId:"sc-11co88f-135"})(["flex:1 1 auto;min-height:0;",""],(e=>e.scrollable&&Nl(["position:relative;&::before,&::after{content:'';position:absolute;left:0;display:block;width:100%;height:6px;}&::before{top:0;z-index:1;background:linear-gradient(to bottom,",",transparent);}&::after{bottom:0;background:linear-gradient(to top,",",transparent);}"],If.colorShadow,If.colorShadow))),Kg=Gl.div.withConfig({displayName:"ContentInner",componentId:"sc-11co88f-136"})([""," box-sizing:border-box;padding:"," ",";color:",";font-family:",";",""],im.paragraphM,If.spacing5,If.spacing6,If.colorText,If.brandFontStackBase,(e=>e.scrollable&&Nl(["position:relative;overflow-x:hidden;overflow-y:auto;height:100%;scroll-behavior:smooth;&::before,&::after{content:'';position:relative;left:0;z-index:1;display:block;height:",";}&::before{margin:calc("," * -1) calc("," * -1) 0;background:linear-gradient( to bottom,",","," 50%,rgb(255 255 255 / 0) );}&::after{margin:0 calc("," * -1) calc("," * -1);background:linear-gradient( to top,",","," 50%,rgb(255 255 255 / 0) );}"],If.spacing5,If.spacing5,If.spacing6,If.gray10,If.gray10,If.spacing6,If.spacing5,If.gray10,If.gray10))),Zg=Gl.div.withConfig({displayName:"ContentExpander",componentId:"sc-11co88f-137"})(["min-height:100%;"]),Jg=Gl.div.withConfig({displayName:"FooterStyled",componentId:"sc-11co88f-138"})(["display:flex;flex:none;padding:",";"],If.spacing6),Qg=Gl.div.withConfig({displayName:"ActionsRight",componentId:"sc-11co88f-139"})(["margin-left:auto;"]),ev=Gl.div.withConfig({displayName:"CloseButton",componentId:"sc-11co88f-140"})(["position:absolute;top:",";right:",";"],If.spacing5,If.spacing4),tv=t.createContext({size:"small",hideCloseIcon:!1}),nv={small:"",medium:"b-modal__modal--medium",fullscreen:"b-modal__modal--full-screen"};function rv({isOpen:e,onClose:n,size:i="small",isCloseButtonHidden:c=!1,closeButtonTitle:l="Close",isClosedOnOverlayClick:s=!1,onCloseAnimationEnd:u,children:d,container:p}){const f={root:"b-modal",overlay:"b-modal__overlay",modalContainer:"b-modal__container",modal:`b-modal__modal ${nv[i]}`,modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},m=!c,h=ym("modal"),g=o((()=>({size:i,hideCloseIcon:c})),[i,c]),[v,y]=r(!1);return a((()=>{e&&y(!0)}),[e]),t.createElement(tv.Provider,{value:g},t.createElement(Yp,{open:e,onClose:n,classNames:f,animationDuration:200,showCloseIcon:!1,closeOnEsc:m,closeOnOverlayClick:s,container:p,onAnimationEnd:()=>{e||(y(!1),null==u||u())}},e||v?d:null,m&&t.createElement(ev,null,t.createElement(Xf,{variant:"clean",icon:t.createElement(Bu,null),"aria-label":l,title:l,onClick:n}))),t.createElement(Ug,{zIndex:h}))}function ov({isOpen:e,onClose:n,size:r,isCloseButtonHidden:o,isClosedOnOverlayClick:i,closeButtonTitle:a,title:c,secondaryInfo:l,thumbnail:s,children:u,actionPrimary:d,actionSecondary:p,actionTertiary:f,container:m,onCloseAnimationEnd:h}){return t.createElement(rv,{isOpen:e,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,size:r,closeButtonTitle:a,onCloseAnimationEnd:h,container:m},t.createElement(rv.Header,{title:c,secondaryInfo:l,thumbnail:s}),t.createElement(rv.Content,null,u),d&&t.createElement(rv.Footer,{actionPrimary:d,actionSecondary:p,actionTertiary:f}))}function iv(e){return t.createElement(ov,{...e})}function av(e){return t.createElement(cv,{role:"status","aria-live":"polite"},e.thumbnail&&t.createElement(lv,null,e.thumbnail),t.createElement(sv,null,t.createElement(uv,{title:"string"==typeof e.title?e.title:""},e.title),e.description&&t.createElement(dv,{title:"string"==typeof e.description?e.description:""},e.description)),t.createElement(pv,null,e.button),"number"==typeof e.progressPercentage&&t.createElement(fv,{style:{width:e.progressPercentage+"%"}}))}rv.Header=function({title:e,secondaryInfo:n,thumbnail:r,backButton:o}){const{hideCloseIcon:a}=i(tv);return t.createElement(Vg,{hideCloseIcon:a},o&&t.createElement($g,null,t.createElement(Xf,{variant:"clean",icon:t.createElement(_u,null),"aria-label":o.title,...o})),r&&t.createElement(Wg,null,r),t.createElement(Yg,null,t.createElement(qg,null,e),n&&t.createElement(Gg,null,n)))},rv.Content=function({children:e}){const{size:n}=i(tv),r="fullscreen"===n;return t.createElement(Xg,{scrollable:r},t.createElement(Kg,{scrollable:r},r?t.createElement(Zg,null,e):e))},rv.Footer=function({actionPrimary:e,actionSecondary:n,actionTertiary:r}){return t.createElement(Jg,null,r,t.createElement(Qg,null,t.createElement(am,{gap:"4"},n,e)))},Gl.div.withConfig({displayName:"NotificationPositionStyled",componentId:"sc-11co88f-141"})(["position:absolute;bottom:0;left:0;z-index:",";opacity:",";transition:all 0.2s ease-out;transform:translateY(","px) translate3d(0,",",0) translateX(",");will-change:transform,opacity;"],(e=>e.isVisible?9999:void 0),(e=>e.isExists?"1":"0"),(e=>-1*e.offset),(e=>e.isItJustAdded?"calc(100% + 16px)":"0"),(e=>e.isDismissed?"-100%":"0")),Gl.div.withConfig({displayName:"NotificationsStyled",componentId:"sc-11co88f-142"})(["position:fixed;bottom:",";left:",";z-index:",";"],If.spacing6,If.spacing6,9999);const cv=Gl.div.withConfig({displayName:"BaloonStyled",componentId:"sc-11co88f-143"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Df,If.spacing5,If.radiusLarge,If.white,If.elevationStatic,If.elevation2),lv=Gl.div.withConfig({displayName:"ThumbnailWrapper1",componentId:"sc-11co88f-144"})(["flex:none;margin-right:",";"],If.spacing5),sv=Gl.div.withConfig({displayName:"Text",componentId:"sc-11co88f-145"})(["flex:1;align-self:center;"]),uv=Gl.h2.withConfig({displayName:"Title1",componentId:"sc-11co88f-146"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),dv=Gl.p.withConfig({displayName:"Description",componentId:"sc-11co88f-147"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],If.spacing2,If.gray500,If.fontSize75),pv=Gl.div.withConfig({displayName:"Action",componentId:"sc-11co88f-148"})(["flex:none;"]),fv=Gl.div.withConfig({displayName:"Progress1",componentId:"sc-11co88f-149"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],If.brandPrimary500);function mv({isPersistent:e,button:n,id:r=yd(),variant:o,thumbnail:i,...a}){return bf((e=>t.createElement(av,{thumbnail:hv(i,o),...a,button:n?p(n,{variant:"clean",onClick(){var t,r;null===(t=(r=n.props).onClick)||void 0===t||t.call(r),bf.dismiss(e.id)}}):t.createElement(Xf,{variant:"clean",onClick:()=>{bf.dismiss(e.id)},icon:t.createElement(Bu,null),title:"Close"})})),{id:r,duration:e?288e5:8e3})}function hv(e,n){return e||(n?{loading:t.createElement(wg,{shape:"circle",backgroundColor:"transparent",icon:t.createElement(jf,null)}),success:t.createElement(wg,{shape:"circle",backgroundColor:"green500",icon:t.createElement(Su,null),iconColor:"white"}),error:t.createElement(wg,{shape:"circle",backgroundColor:"red500",icon:t.createElement(Bu,null),iconColor:"white"})}[n]:void 0)}mv.dismiss=function(e){bf.dismiss(e)},Gl.div.withConfig({displayName:"Track",componentId:"sc-11co88f-150"})(["height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":If.radiusPill),(e=>e.noBackground?"none":If.gray100a)),Gl.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Fill",componentId:"sc-11co88f-151"})(["max-width:100%;height:100%;border-radius:",";background:",";transition:width 0.2s ease-out;"],(e=>e.noCornerRadius?"0":If.radiusPill),(e=>"brand"===e.color?If.brandPrimary500:If.gray600)),Gl.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-11co88f-152"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]);const gv=Gl.div.withConfig({displayName:"Indicator",componentId:"sc-11co88f-153"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-color:",";border-radius:",";}"," ",""],If.componentRadioBorderUnchecked,If.radiusCircle,If.focusRingWidth,(e=>e.isFocusVisible&&If.focusRingColorPrimary),If.radiusCircle,(e=>e.isChecked&&Nl(["border-color:transparent;background-color:",";color:#fff;"],If.blue500)),(e=>e.isDisabled&&Nl(["border-color:transparent;background-color:",";color:",";"],If.componentRadioFillDisabled,If.componentRadioCheckmarkColorDisabled)));Gl.div.withConfig({displayName:"IndicatorMark",componentId:"sc-11co88f-154"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],If.radiusCircle),Gl.input.withConfig({displayName:"Input",componentId:"sc-11co88f-155"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),Gl.label.withConfig({displayName:"Container3",componentId:"sc-11co88f-156"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],im.uiTextM,If.spacing1,(e=>!e.isDisabled&&"pointer"),gv,(e=>{if(!e.isDisabled)return e.isChecked?Nl(["background-color:",";"],If.blue600):Nl(["border-color:",";"],If.componentRadioBorderUncheckedHover)})),Gl.div.withConfig({displayName:"Label",componentId:"sc-11co88f-157"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?If.gray400:If.colorText));const vv=n({value:"",onChange:()=>{}});function yv({children:e,isDisabled:n,onChange:r,value:i,label:a,icon:c}){const l=o((()=>({value:i,onChange:r})),[r,i]);return t.createElement(vv.Provider,{value:l},t.createElement(Lg,{trigger:({isOpen:e,...r})=>t.createElement(Xf,{icon:c,isPressed:e,rightIcon:t.createElement(Lg.Arrow,null),isFullWidth:!0,isDisabled:n,...r},t.createElement(Lg.SelectButtonText,null,a)),position:"bottom"},e))}function bv(e,t,n){return 100*(n-e)/(t-e)+"%"}yv.Item=function({icon:e,children:n,isDisabled:r,value:o}){const a=i(vv);return t.createElement(Lg.Item,{isChecked:o===a.value,role:"menuitemradio",icon:e,isDisabled:r,onClick:()=>{a.onChange(o)}},n)},yv.SectionTitle=Lg.SectionTitle,yv.Divider=Lg.Divider,yv.SearchInput=Lg.SearchInput,yv.Text=Lg.Text,Gl.aside.withConfig({displayName:"Container2",componentId:"sc-11co88f-158"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:1px solid ",";background:",";"],If.spacing5,If.gray100,If.white),Gl.div.withConfig({shouldForwardProp:(e,t)=>!["width","height"].includes(e)&&t(e)}).withConfig({displayName:"Image",componentId:"sc-11co88f-159"})(["width:",";min-width:10px;height:",";min-height:10px;border-radius:",";background:",";"],(e=>e.width),(e=>e.height),If.radiusBase,If.gray100),Gl.div.withConfig({displayName:"TextContainer",componentId:"sc-11co88f-160"})(["display:flex;align-items:center;width:100%;height:20px;&::before{content:'';height:6px;border-radius:",";","}"],If.radiusPill,(e=>"primary"===e.variant?Nl(["width:75%;max-width:240px;background:",";"],If.gray200):"secondary"===e.variant?Nl(["width:50%;max-width:160px;background:",";"],If.gray100):void 0)),Gl.div.withConfig({displayName:"Opacity",componentId:"sc-11co88f-161"})(["opacity:",";"],(({value:e=1})=>e));const wv=Gl.div.withConfig({displayName:"Container1",componentId:"sc-11co88f-162"})(["position:relative;display:flex;gap:",";align-items:center;"],If.spacing3),xv=Gl.div.withConfig({displayName:"SliderContainer",componentId:"sc-11co88f-163"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),Ev=Nl(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;cursor:pointer;border-inline:none;appearance:none;"]),Cv=Nl(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:auto;transform:translateY(-50%);-webkit-appearance:none;appearance:none;&:hover{cursor:pointer;}"]);function kv(e){const t=bv(e.min,e.max,e.value);let n,r;return Array.isArray(e.values)?(n=bv(e.min,e.max,e.values[0]),r=bv(e.min,e.max,e.values[1])):e.isFromCenter?(n=`min(${t}, 50%)`,r=`max(50%, ${t})`):(n="0",r=t),`linear-gradient(\n\t\t90deg,\n\t\t${If.gray100a} ${n},\n\t\t${If.brandPrimary500} ${n},\n\t\t${If.brandPrimary500} ${r},\n\t\t${If.gray100a} ${r}\n\t)`}const Sv=Gl.input.attrs((e=>({style:{"--track-background":kv(e)}}))).withConfig({displayName:"SliderInput",componentId:"sc-11co88f-164"})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;",";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{","}&::-moz-range-thumb{"," transform:none;}&::-webkit-slider-runnable-track{","}&::-moz-range-track{","}"],(e=>e.isRange?"pointer-events: none":"pointer-events: auto"),Cv,Cv,Ev,Ev),_v=Gl.div.withConfig({displayName:"ThumbContainer",componentId:"sc-11co88f-165"})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,",");pointer-events:none;transition:opacity 120ms ease-in-out;",":hover &{--thumb-opacity:1;}",":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";}",":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:0 0 0 3px ",";}",":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";--thumb-size:20px;}"],(e=>e.isInactive?0:1),xv,Sv,If.gray100a,If.elevationStatic,If.elevation1,Sv,If.gray100a,If.gray100a,Sv,If.gray100a,If.elevationStatic,If.elevation2),Iv=Gl.div.withConfig({displayName:"ThumbCircle",componentId:"sc-11co88f-166"})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:",";background:",";box-shadow:var(--thumb-shadow,",",","),var(--thumb-border,0 0 0 1px ",");transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:",";background-color:",";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"],If.radiusCircle,If.gray10,If.elevationStatic,If.elevation1,If.gray75a,If.radiusCircle,If.gray25),Bv=Gl.div.withConfig({displayName:"InputContainer",componentId:"sc-11co88f-167"})(["width:",";input{text-align:center;}"],(function(e){return 40+8*Math.max(e.min.toString().length,e.max.toString().length)+"px"}));function Tv({min:e,max:n,value:r,isTooltipOpen:o,inputPosition:i,isInactive:a}){const c=bv(e,n,r);return t.createElement(_v,{isInactive:a,style:Nv(c),"data-testid":"thumb"},t.createElement(Iv,null),"none"===i&&t.createElement(bm,{isOpen:o,content:r,position:"top-center"},(e=>t.createElement("div",{...e}))))}function Nv(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function Dv({min:e,max:n,value:o,onChange:i,inputPosition:a,isFromCenter:c=!1,isInactive:l,isTooltipHidden:s}){const[u,d]=r(!1),p=Array.isArray(o);return t.createElement(t.Fragment,null,t.createElement(Sv,{min:e,max:n,value:p?o[0]:o,values:o,type:"range",onChange:i,name:"min-input",onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},isFromCenter:c,isRange:p,role:"slider"}),t.createElement(Tv,{isTooltipOpen:u&&!s,min:e,max:n,value:p?o[0]:o,inputPosition:a,isInactive:l}),p&&t.createElement(t.Fragment,null,t.createElement(Sv,{min:e,max:n,value:o[1],type:"range",onChange:i,name:"max-input",values:o,onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},isRange:p}),t.createElement(Tv,{isTooltipOpen:u&&!s,min:e,max:n,value:o[1],inputPosition:a,isInactive:l})))}function zv({min:e,max:n,inputPosition:o="none",value:i,onChange:a,iconLeft:c,iconRight:l,isFromCenter:s=!1,isInactive:u=!1,isTooltipHidden:d=!1,...p}){const[f,m]=r(""),[h,g]=r("none");function v(t){g("none");const r=Number(t.target.value);r<e||n<r||(Array.isArray(i)?("min-input"===t.target.name&&r<i[1]&&a([r,i[1]]),"max-input"===t.target.name&&i[0]<r&&a([i[0],r])):a(r))}function y(e){"Enter"===e.key&&e.target.blur()}const b=String(Array.isArray(i)?i[0]:i),w=String(Array.isArray(i)?i[1]:i);return t.createElement(wv,{...p},("left"===o||"both"===o)&&t.createElement(Bv,{min:e,max:n,"data-testid":"input-left"},t.createElement(Nh,{onChange:m,value:"left"===h?f:b,type:"number",onFocus:()=>{m(b),g("left")},onBlur:()=>{v({target:{name:"min-input",value:f}})},onKeyDown:y})),c,t.createElement(xv,null,t.createElement(Dv,{min:e,max:n,value:i,inputPosition:o,onChange:v,isFromCenter:s,isInactive:u,isTooltipHidden:d})),l,("right"===o||"both"===o)&&t.createElement(Bv,{min:e,max:n,"data-testid":"input-right"},t.createElement(Nh,{onChange:m,value:"right"===h?f:w,type:"number",onFocus:()=>{m(w),g("right")},onBlur:()=>{v({target:{name:"max-input",value:f}})},onKeyDown:y})))}Gl.td.withConfig({displayName:"StyledCell",componentId:"sc-11co88f-168"})([""," "," padding:"," ",";word-break:break-word;&[data-checkbox-cell]{width:16px;}&[data-icon-cell]{width:24px;padding-left:0;}tr &:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}tr &:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}"],(e=>"primary"===e.variant?Nl([""," color:var(--table-row-color-override,inherit);"],im.uiTextM):"secondary"===e.variant?Nl([""," color:var(--table-row-color-override,",");"],im.uiTextS,If.gray600):void 0),(e=>e.isTruncated&&"max-width: 1px;"),If.spacing3,If.spacing4,If.radiusLarge,If.radiusLarge,If.radiusLarge,If.radiusLarge),Gl.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-11co88f-169"})(["flex:none;align-self:flex-start;opacity:var(--table-thumbnail-opacity,1);"]),Gl.div.withConfig({displayName:"Content",componentId:"sc-11co88f-170"})(["flex:1;min-width:0;white-space:",";"],(e=>e.isNoWrap?"nowrap":"normal")),Gl.div.withConfig({displayName:"Subtext",componentId:"sc-11co88f-171"})([""," color:var(--table-row-color-override,",");"],im.uiTextS,If.gray600),Gl.div.withConfig({displayName:"IconRight",componentId:"sc-11co88f-172"})(["flex:none;margin-left:",";color:",";"],If.spacing4,If.gray600),Gl.tr.withConfig({displayName:"DividerRow",componentId:"sc-11co88f-173"})(["&:nth-child(2){display:none;}"]),Gl.td.withConfig({displayName:"DividerCell",componentId:"sc-11co88f-174"})(["padding:"," 0;&::before{content:'';display:block;height:1px;height:1px;background:",";}"],If.spacing3,If.gray100a),Gl.tr.withConfig({displayName:"StyledRow",componentId:"sc-11co88f-175"})([""," "," ",""],(e=>e.isActive&&Nl(["--table-row-right-icon-color:",";border-radius:",";outline:none;cursor:pointer;&:hover{--table-row-right-icon-color:",";background:",";}"," &:active{background:",";box-shadow:none;}"],If.gray200,If.radiusLarge,If.gray600,If.gray25,e.isFocusVisible&&Nl(["--table-row-right-icon-color:",";background:",";box-shadow:inset 0 0 0 2px ",",inset 0 0 0 4px ",";&:hover{box-shadow:inset 0 0 0 2px ",",inset 0 0 0 4px ",";}"],If.gray600,If.gray25,If.gray100,If.gray10,If.gray50,If.gray10),If.gray50)),(e=>e.isPressed&&Nl(["--table-row-right-icon-color:",";&,&:hover{background:",";}"],If.gray600,If.gray50)),(e=>e.isDisabled&&Nl(["--table-row-right-icon-color:",";--table-thumbnail-opacity:50%;--table-row-color-override:",";pointer-events:none;"],If.gray200,If.gray200))),Gl.div.withConfig({displayName:"Icon1",componentId:"sc-11co88f-176"})(["color:var(--table-row-right-icon-color);"]),Gl.thead.withConfig({displayName:"StyledHeader",componentId:"sc-11co88f-177"})(["",""],(e=>"string"==typeof e.stickyOffset&&Nl(["--table-head-sticky-offset:",";position:sticky;top:var(--table-head-sticky-offset);z-index:1;background-color:",";",""],"0"===e.stickyOffset?"0px":e.stickyOffset,If.white,e.isStuck&&Nl(["box-shadow:0 3px 0 ",",0 1px 0 ",";"],If.gray50a,If.gray100a)))),Gl.div.withConfig({displayName:"Trigger",componentId:"sc-11co88f-178"})(["position:absolute;top:calc((var(--table-head-sticky-offset) + 1px) * -1);width:1px;height:1px;"]),Gl.th.withConfig({displayName:"StyledHeadCell",componentId:"sc-11co88f-179"})([""," padding:"," ",";text-align:left;"],im.uiTextM,If.spacing2,If.spacing4),Gl.div.withConfig({displayName:"Static",componentId:"sc-11co88f-180"})(["padding:"," 0;"],If.spacing3),Gl.span.withConfig({displayName:"Active",componentId:"sc-11co88f-181"})(["font-weight:600;"]),Gl.td.withConfig({displayName:"Cell2",componentId:"sc-11co88f-182"})(["height:",";"],If.spacing3),Gl.td.withConfig({displayName:"Cell1",componentId:"sc-11co88f-183"})(["padding:"," ",";"],If.spacing3,If.spacing4),Gl.td.withConfig({displayName:"Cell",componentId:"sc-11co88f-184"})(["padding:",";"],If.spacing4),Gl.table.withConfig({displayName:"StyledTable",componentId:"sc-11co88f-185"})(["width:100%;border-collapse:collapse;table-layout:"," !important;word-wrap:initial !important;"],(e=>e.isFixedLayout?"fixed":"auto")),Gl.button.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"TabStyled",componentId:"sc-11co88f-186"})(["display:flex;flex-grow:1;flex-basis:0;justify-content:center;align-items:center;min-width:0;height:",";padding:"," ",";border:0;border-radius:",";background-color:transparent;color:",";font-family:inherit;text-align:center;cursor:pointer;"," &:disabled{color:",";cursor:default;}&:focus-visible{color:",";box-shadow:inset 0 0 0 2px ",";outline:none;}&:hover:enabled{color:",";",";}",";",";"],(e=>"contained"===e.variant?"36px":"40px"),If.spacing3,If.spacing5,(e=>"pill"===e.shape?If.radiusPill:If.radiusBase),(e=>e.isActive?If.gray800:If.gray600),im.uiTextM,If.gray400,If.gray800,If.gray200,If.gray800,(e=>"clean"===e.variant&&Nl(["background-color:",";"],If.gray25a)),(e=>e.isActive&&"contained"===e.variant&&Nl(["background-color:",";box-shadow:0 0 1px ",",",";"],If.white,If.colorShadow,If.elevation1)),(e=>e.isActive&&"clean"===e.variant&&Nl(["background-color:",";"],If.gray50a))),Gl.span.withConfig({displayName:"Icon",componentId:"sc-11co88f-187"})(["margin-right:",";"],If.spacing3),Gl.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"TabsStyled",componentId:"sc-11co88f-188"})(["display:flex;gap:",";align-items:center;border-radius:",";",";"],If.spacing1,(e=>"pill"===e.shape?If.radiusPill:`calc(${If.radiusBase} + 2px) `),(e=>"contained"===e.variant&&Nl(["padding:",";background-color:",";"],If.spacing1,If.gray50a)));const Pv={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function Ov(e){Object.keys(Pv).forEach((t=>{e.style.setProperty(t,Pv[t],"important")}))}let Av=null;const Rv=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];function Mv({id:e,isDisabled:n=!1,isReadOnly:r=!1,isInvalid:o=!1,onBlur:i,onChange:a,onFocus:s,placeholder:u,value:d,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,minRows:h=2,maxRows:g=8,maxLength:v,...y}){const b=c(null);return function(e,t,n){const r=c(0),[o,i]=function(e,t){let n=e||2,r=t||8;return n>r&&(n=r),n<2&&(n=2),r>8&&(r=8),[n,r]}(t,n);l((()=>{const t=e.current;if(!t)return;const n=function(e){const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,Rv.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;return""===n.boxSizing?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom||"0")+parseFloat(n.paddingTop||"0"),borderSize:parseFloat(n.borderBottomWidth||"0")+parseFloat(n.borderTopWidth||"0")}}(t);if(!n)return;const a=function({sizingData:e,value:t,minRows:n,maxRows:r}){Av||(Av=document.createElement("textarea"),Av.setAttribute("tabindex","-1"),Av.setAttribute("aria-hidden","true"),Ov(Av)),null===Av.parentNode&&document.body.appendChild(Av);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!Av)return;const t=e;Av.style[t]=a[t]})),Ov(Av),Av.value=t;let c=function(e,t){const n=Av.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);Av.value="x";const l=Av.scrollHeight-o;let s=l*n;"border-box"===a.boxSizing&&(s=s+o+i),c=Math.max(s,c);let u=l*r;return"border-box"===a.boxSizing&&(u=u+o+i),c=Math.min(u,c),c}({sizingData:n,value:t.value||t.placeholder||"x",minRows:o,maxRows:i});r.current!==a&&(r.current=a,t.style.setProperty("height",`${a}px`,"important"))}))}(b,h,g),t.createElement(Fv,{value:d,onChange:function(e){if(a){const t=e.currentTarget.value;a(t)}},id:e,disabled:n,readOnly:r,isInvalid:o,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,onBlur:i,onFocus:s,placeholder:u,autoComplete:"off",autoCorrect:"off",ref:b,maxLength:v,...y})}const Fv=Gl.textarea.withConfig({displayName:"TextareaStyled",componentId:"sc-11co88f-189"})(["&&{display:block;box-sizing:border-box;width:100%;margin:0;padding:"," ",";border:1px solid ",";border-radius:",";background:",";color:",";outline:none;font-family:",";resize:none;transition:none;"," &::placeholder{color:",";}&:hover{border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:0 0 0 3px ",";}&:disabled{border-color:",";background:",";color:",";box-shadow:none;}",";}"],If.spacing3,If.spacing5,If.gray100,If.radiusBase,If.white,If.colorText,If.brandFontStackBase,im.paragraphM,If.gray400,If.gray200,If.elevation1,If.gray300,If.gray100a,If.gray100,If.gray25,If.gray600,(e=>e.isInvalid&&Nl(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],If.red500,If.red600,If.red500))),Lv=Gl.div.withConfig({displayName:"RightElementText",componentId:"sc-11co88f-190"})(["display:flex;justify-content:flex-end;align-items:center;color:",";text-align:right;"],If.gray400);Gl.div.withConfig({displayName:"LeftIconContainer",componentId:"sc-11co88f-191"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],If.spacing4),Gl.div.withConfig({displayName:"RightElementsContainer",componentId:"sc-11co88f-192"})(["margin-left:auto;padding-left:",";"],If.spacing4);const jv=Nl(["background-color:"," !important;color:"," !important;","{color:",";}"],If.gray50,If.gray800,Lv,If.gray600);function Hv(e){var t;return null!==(t=Uv[e])&&void 0!==t?t:e}Gl.a.withConfig({displayName:"StyledNavItem",componentId:"sc-11co88f-193"})(["&&{"," display:flex;align-items:center;box-sizing:border-box;width:100%;height:40px;margin:0;padding:"," ",";border:0;border-radius:",";background:none;color:",";outline:none;font-family:",";text-decoration:none;cursor:",";&:hover{background-color:",";color:",";","{color:",";}}&:active{","}"," "," ",";}"],im.uiTextM,If.spacing3,If.spacing4,If.brandRadiusBase,If.gray600,If.brandFontStackBase,(e=>e.disabled?"default":"pointer"),If.gray25,If.gray800,Lv,If.gray600,jv,(e=>e.$isSelected&&jv),(e=>e.$isFocusVisible&&Nl(["background-color:",";color:",";","{color:",";}"],If.gray25,If.gray800,Lv,If.gray600)),(e=>e.disabled&&Nl(["background-color:transparent;color:",";pointer-events:none;","{color:",";}"],If.gray400,Lv,If.gray400))),Gl(Dh).withConfig({displayName:"Divider",componentId:"sc-11co88f-194"})(["margin:"," ",";"],If.spacing2,If.spacing4),Gl.div.withConfig({displayName:"StyledTitleContainer",componentId:"sc-11co88f-195"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],im.uiTextS,If.spacing4,If.gray800),Gl.div.withConfig({displayName:"RightElementIcon",componentId:"sc-11co88f-196"})(["&:last-child{margin-right:calc("," * -1);}"],If.spacing2),Gl.div.withConfig({displayName:"Container",componentId:"sc-11co88f-197"})(["margin:0 ",";"],If.spacing5);var Uv={};function Vv(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){Uv=e}))}),[e])}function $v(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function Wv(e){return t.createElement(t.Fragment,null,t.createElement($v,null),t.createElement(Xv,null,Hv("Oops! Something went wrong")),t.createElement(Kv,null,Hv("Please try again or get in contact with our customer support.")),t.createElement(Zv,null,t.createElement(Xf,{variant:"secondary",title:Hv("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?Hv("Report sent"):Hv("Send report...")),t.createElement(Xf,{variant:"primary",title:Hv("Try again"),onClick:e.onClickRetry},Hv("Try again"))))}var Yv,qv,Gv,Xv=Gl.h1(Yv||(Yv=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),If.spacing8,If.fontSize400),Kv=Gl.span(qv||(qv=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),If.spacing5,If.colorTextDisabled),Zv=Gl.div(Gv||(Gv=_a(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),If.spacing7,If.spacing3);function Jv(e){var n;return t.createElement(iv,{title:Hv("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(Xf,{variant:"primary",title:Hv("Send report"),onClick:e.onDone},Hv("Send report")),actionSecondary:t.createElement(Xf,{variant:"secondary",title:Hv("Cancel"),onClick:e.onCancel},Hv("Cancel")),container:e.container},t.createElement(ny,null,Hv("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(ry,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(oy,null,Hv("We will treat this report as confidential and anonymous.")))}var Qv,ey,ty,ny=Gl.div(Qv||(Qv=_a(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),If.lineHeightText),ry=Gl.div(ey||(ey=_a(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),If.spacing5,If.gray25,If.radiusMedium,If.gray200,If.lineHeightText,If.spacing5,If.spacing4),oy=Gl.span(ty||(ty=_a(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),If.colorTextDisabled,If.lineHeightBase,If.fontSize75);function iy(e){var n=e.error,o=e.onRetry,i=Fa(),c=r(!1),l=c[0],s=c[1],u=r(!1),d=u[0],p=u[1];return a((function(){Aa.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(Wv,{isReportSent:d,onClickSend:function(){s(!0)},onClickRetry:o}),t.createElement(Jv,{isOpen:l,error:n,container:i,onDone:function(){ti(n),s(!1),p(!0)},onCancel:function(){s(!1)}}))}function ay(){var e=ba(Ta()[0].page),n=e[0],r=e[1],o={ASC:Hv("Ascending"),DESC:Hv("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(Xf,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(ly,{$isAscending:"ASC"===n.direction})})}var cy,ly=Gl((function(e){return Bs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)}))(cy||(cy=_a(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),If.spacing6,If.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function sy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function uy(e){var n,o=c(null),i=r(0)[1];!function(e,t){var n=Fa();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,o],e.onClickOutside),l((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=Fa(),u=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var d=e.target.current.getBoundingClientRect(),p=d.x,f=window.innerWidth,m=p+300>f?void 0:p,h=p+300>f?f-d.width-p:void 0,v="Down"===e.direction?d.top+d.height:void 0,y="Up"===e.direction?window.innerHeight-d.top:void 0,b=u.getBoundingClientRect(),w=b.width-(null!=m?m:0)-(null!=h?h:0),x=b.height-(null!=y?y:0)-(null!=v?v:0);m&&w<300&&(m=p+d.width-300);var E={left:m,right:h,top:v,bottom:y,maxWidth:w,maxHeight:x,minWidth:300},C=sy("cv-root cv-dropdown select-none",e.className);return g(t.createElement("div",{role:"menu",id:e.id,className:C,ref:o,style:E},e.children),s)}function dy(e){var n=e.buttonKind,i=void 0===n?"clean":n,a=e.direction,l=void 0===a?"Down":a,s=e.isSmall,u=e.fadeIn,d=Ea(e,["buttonKind","direction","isSmall","fadeIn"]),p=o((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=r(!1),m=f[0],h=f[1],g=c(null),v=function(){return h((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(fy,{variant:i,isSmall:s,onClick:v,ref:g,isDisabled:d.disabled,isPressed:m,"aria-haspopup":!0,"aria-expanded":m,"aria-controls":p,fadeIn:u,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(Cu,{className:"w-6 h-6 ml-1 -mr-2"})),m&&t.createElement(uy,{className:d.className,onClickOutside:v,direction:l,target:g,id:p},d.children(v)))}var py,fy=Gl(Xf)(py||(py=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\ttext-transform: inherit;\n\t","\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.fadeIn?"animation: var(--fade-in-down);":""}));function my(e){var n=e.selected,r=void 0!==n&&n,o=Ea(e,["selected"]),i=sy("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(Su,{className:"w-6 h-6 ml-3 fade-in"})))}function hy(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=ba(Ta()[0].page),i=o[0],a=o[1],c={CREATED_AT:Hv("Date added"),NAME:Hv("Name"),PUBLISHED_AT:Hv("Date published"),UPDATED_AT:Hv("Date modified")};return t.createElement(vy,null,t.createElement(dy,{className:"py-2",title:c[i.field],alt:Hv("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(my,{className:"px-4 py-px text-sm",selected:i.field===n,key:c[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},c[n]))})))})))}var gy,vy=Gl.div(gy||(gy=_a(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function yy(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function by(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:sy("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function wy(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(Vm,null,t.createElement(Vm.Frame,null),t.createElement(Vm.AdditionalInfo,null,t.createElement(by,{width:70+xy(100,r),className:"h-4"})),e.title))})))}function xy(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}var Ey=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Cy=Ey.Provider,ky=function(){return i(Ey)},Sy=function(){return ky().selectionMode};function _y(e){return{tag:"ok",value:e}}function Iy(e){return{tag:"error",error:e}}function By(e){return"ok"===e.tag}function Ty(e){return"error"===e.tag}function Ny(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}function Dy(e){var t;if(e.transformBaseURL){var n=e,r="transformBaseURL",o=n[r],i=Ea(n,[r+""]);return xa(xa({},i),((t={}).transformBaseUrl=xa({},o),t))}return e}var zy=new Map;function Py(e,t,n){return Ca(this,void 0,void 0,(function(){var r,o,i,a,c,l,s,u;return ka(this,(function(d){switch(d.label){case 0:if(!n)return[2,Iy("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?Ny(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),zy.has(i))return[2,_y(zy.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("3.3.3")},c=void 0===r?a:xa(xa({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:c,body:JSON.stringify({query:e,variables:t})},d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,d.sent().json()];case 3:return s=d.sent(),u=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?xa(xa({},e),{searchAssets:xa(xa({},e.searchAssets),{assets:xa(xa({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=Dy(e.files);return xa(xa({},e),{files:xa({},t)})}return e}))})})}):e}(s.data),[3,5];case 4:return[2,Iy(d.sent())];case 5:return void 0!==s.errors?[2,Iy(s.errors.map((function(e){return e.message})).join(","))]:(zy.set(i,u),zy.size>50&&zy.delete(zy.keys().next().value),[2,_y(u)])}}))}))}function Oy(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function Ay(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e),n=Array.from(t).map((function(e){return"0".concat(e.toString(16)).substr(-2)}));return n.join("")}var Ry="42b1eefa-d754-4802-b9c4-bf80d6ab6052",My="".concat("https://d8ejoa1fys2rk.cloudfront.net"),Fy=My+"/5.0.5/modules/compactview/loginCompleted.html",Ly="".concat("https://apiv2.webdamdb.com","/"),jy=["offline","asset:read","collection:read","meta.assetbank:read"];function Hy(e,t,n){return Ca(this,void 0,void 0,(function(){var r,o,i,a;return ka(this,(function(c){switch(c.label){case 0:r=Uy(n)+"token",o=new URLSearchParams({client_id:Ry,code_verifier:t,code:e,redirect_uri:Fy,grant_type:"authorization_code"}),c.label=1;case 1:return c.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=c.sent()).ok?[4,i.json()]:[2,Iy("Failed to fetch access token: ".concat(i.status))];case 3:return[2,_y({refreshToken:(a=c.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Iy(c.sent().toString())];case 5:return[2]}}))}))}function Uy(e){return"webdam"===Vy()?Ly+"oauth2/":Ny(e)+"v6/authentication/oauth2/"}function Vy(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function $y(e){return Ca(this,void 0,void 0,(function(){var t,n,r,o,i,a;return ka(this,(function(c){switch(c.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,Iy("Error opening login window")]:(o.document.head.innerHTML=Wy,o.document.body.innerHTML=Yy,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===My&&e(_y(t))}))})),new Promise((function(e){setTimeout((function(){return e(Iy("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(Iy("Login window closed")))}),1e3)})))])]);case 1:return Ty(i=c.sent())?[2,i]:[2,_y({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var Wy='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',Yy='<div class="cv-spinner"></div>';function qy(e){var n=Fa();return t.createElement(wl,{target:n,disableVendorPrefixes:!0},t.createElement(gm,{zIndexBase:1e6},e.children))}function Gy(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o,c=t.useRef(null),l=r(null),s=l[0],u=l[1];return a((function(){if(null!==c.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(c.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+'/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}dd,h1,h3,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1,h3{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select,textarea{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.border-ui-600{border-color:rgba(0,34,51,.1)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mt-2{margin-top:8px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mt-1{margin-top:-4px}.-mr-1{margin-right:-4px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.shadow-border{-webkit-box-shadow:0 1px 6px -2px rgba(0,34,51,.1);box-shadow:0 1px 6px -2px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.text-body-500{color:rgba(0,34,51,.8)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}',Xy(null!=e?e:document.head,t),n&&Xy(document.head,Zy),u(null!=n?n:c.current)}}),[]),t.createElement("div",{ref:c,style:{display:"flex",height:"100%"},"data-testid":"root"},s&&t.createElement(Ma,{value:s},t.createElement(qy,null,g(t.createElement(Jy,{isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),s))))}function Xy(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var Ky,Zy="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),Jy=Gl.div(Ky||(Ky=_a(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.isContainerMode?"100%":"auto"})),Qy=n("parent");function eb(e){var n=e.children,r=e.isContainerMode,o=void 0!==r&&r;return"parent"===i(Qy)?t.createElement(Qy.Provider,{value:"child"},t.createElement(Gy,{isContainerMode:o},n)):t.createElement(t.Fragment,null,n)}var tb=n(null),nb=function(){return i(tb)};function rb(e){var n=e.children,i=e.isOpen,c=void 0===i||i,l=e.style,s=e.onClose,u=void 0===s?function(){}:s,d=r(null),p=d[0],f=d[1],m=o((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),c?t.createElement(tb.Provider,{value:m},p&&t.createElement(t.Fragment,null,g(t.createElement(eb,null,t.createElement(ab,{className:"z-a-lot"},t.createElement(cb,{style:l,"data-testid":"modal"},n))),p))):null}var ob,ib,ab=Gl.div(ob||(ob=_a(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),If.spacing5,If.gray100a),cb=Gl.div(ib||(ib=_a(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),If.radiusBase);function lb(e){var n=nb();return t.createElement(pb,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(fb,{variant:"clean",onClick:n.onClose,title:Hv("Close"),icon:t.createElement(Bu,null)}),t.createElement(mb,null,e.children))}var sb,ub,db,pb=Gl.div(sb||(sb=_a(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),If.gray10),fb=Gl(Xf)(ub||(ub=_a(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),If.spacing4,If.spacing5),mb=Gl.div(db||(db=_a(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),If.fontSize300);function hb(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},Hv("Connect your brand portal")))}function gb(e){var n=sy("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function vb(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(wb,null,t.createElement(Hg,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:Hv("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&Hv("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(xb,{role:"alert","aria-live":"polite"},t.createElement(gb,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var yb,bb,wb=Gl.div(yb||(yb=_a(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),If.spacing4),xb=Gl.div(bb||(bb=_a(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function Eb(e){return t.createElement(Xf,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},Hv("Connect"))}function Cb(e){return t.createElement(lb,null,t.createElement(hb,null),t.createElement(vb,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(Eb,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var kb=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}wa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(iy,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function Sb(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(gb,null)," ")}var _b=n(null);function Ib(e){var n,o,i,l,s,u,d,p,f;Vv(null!==(n=e.language)&&void 0!==n?n:"en_US");var m=function(){var e,t,n=r(void 0),o=n[0],i=n[1],l=r(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),s=l[0],u=l[1],d=r(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],m=r(w()),h=m[0],g=m[1],v=c();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(w(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function w(e,t){return void 0===e&&(e=o),void 0===t&&(t=s),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){o&&o()||!s||!p||(g("refreshing"),function(e,t){return Ca(this,void 0,void 0,(function(){var n,r,o,i;return ka(this,(function(a){switch(a.label){case 0:n=Uy(t)+"token",r=new URLSearchParams({client_id:Ry,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,Iy("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,_y({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Iy(a.sent().toString())];case 5:return[2]}}))}))}(s,p).then((function(e){By(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:s,accountDomain:p}):(Aa.error(e.error),b())})))}),[o,s,p]),[{getAccessToken:o,accountDomain:p,status:h},y,b]}(),h=m[0],g=m[1],v=m[2],y=function(e){var t=r(null!=e?e:""),n=t[0],o=t[1],i=r(e?"validating":"empty"),l=i[0],s=i[1],u=c();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return Ca(this,void 0,void 0,(function(){var t,n,r;return ka(this,(function(o){switch(o.label){case 0:t=Ny(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(s("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),o(e),s(""===e?"empty":"validating")},l]}(null!==(i=null===(o=e.portal)||void 0===o?void 0:o.url)&&void 0!==i?i:h.accountDomain),b=y[0],w=y[1],x=y[2],E=r(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&Aa.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(l=e.authentication)||void 0===l?void 0:l.hideLogout,null===(s=e.authentication)||void 0===s?void 0:s.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return Ca(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,l,s,u,d;return ka(this,(function(p){switch(p.label){case 0:t=Ay(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,Oy(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,Iy(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=Ay(),i=function(e,t,n){var r={client_id:Ry,code_challenge:e,code_challenge_method:"S256",redirect_uri:Fy,response_type:"code",scope:jy.join(" "),domain:"",state:t},o="auth?";"webdam"===Vy()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return Uy(n)+o+i}(r,o,e),[4,$y(i)];case 5:return Ty(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,Iy("Error logging in")]:[4,Hy(a.value.code,t,e)];case 6:return Ty(c=p.sent())?[2,c]:(l=c.value,s=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,_y({accessToken:u,expiresIn:parseFloat(d),refreshToken:s})])}var f}))}))}(b).then((function(t){e&&(function(e){if(By(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else Aa.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=xa(xa({},h),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(h.status){case"authenticated":return t.createElement(_b.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(eb,{isContainerMode:!0},t.createElement(Cb,{domainValue:b,domainStatus:x,onChangeDomain:w,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(Sb,null)}}var Bb=function(e){return t.createElement(kb,null,t.createElement(Ib,xa({},e)))},Tb=function(){return i(_b)},Nb="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n showInGridView\n showInListView\n }\n}",Db="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(Nb,"\n");function zb(e){var t,n,o,i,c,l=this,s=Tb(),u=r({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,m=function(t){return Ca(l,void 0,void 0,(function(){var n,r;return ka(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=Pb(e,null!=t?t:null),[4,Py(Db,n,s)];case 1:return r=o.sent(),f||(Ty(r)?p({tag:"Failure",value:r.error}):h(r,t)),[2]}}))}))},h=function(e,t){Ob(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=Ob(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:xa(xa({},e.value.searchAssets.assets),{nodes:Sa(Sa([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return a((function(){return m(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(n=e.filter)||void 0===n?void 0:n.metaproperties,null===(o=e.filter)||void 0===o?void 0:o.tags,null===(i=e.filter)||void 0===i?void 0:i.isLimited,e.collection,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return m()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return m(null===(e=Ob(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(c=Ob(d))||void 0===c?void 0:c.pageInfo.hasNextPage)}}var Pb=function(e,t){var n,r,o,i,a,c=e.filter,l=e.predefinedFilter,s=e.collection,u=e.orderBy,d=e.allAssetTypes,p=e.searchTerm,f=e.language,m=(null===(n=null==c?void 0:c.assetTypes)||void 0===n?void 0:n.length)?c.assetTypes:null==l?void 0:l.assetType_in;return{orderBy:u,filter:{collectionId:null!==(r=null==s?void 0:s.id)&&void 0!==r?r:null==l?void 0:l.collectionId,assetType_in:null!=m?m:d,metapropertyOptionId_in:null!==(o=Ab(null==c?void 0:c.metaproperties))&&void 0!==o?o:null==l?void 0:l.metapropertyOptionId_in,searchTerm:null!==(i=null!=p?p:null==l?void 0:l.searchTerm)&&void 0!==i?i:null,tagNames_in:null!==(a=null==c?void 0:c.tags)&&void 0!==a?a:null==l?void 0:l.tagNames_in,isLimitedUse:null==c?void 0:c.isLimited},after:t,language:f}},Ob=function(e,t){var n,r=null!=t?t:e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets},Ab=function(e){return e?e.map((function(e){return e.id})):null};function Rb(e,t,n){return Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,Py("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(Nb),{ids:e,language:n},t)];case 1:return Ty(r=o.sent())?[2,r]:[2,_y(r.value.nodes)]}}))}))}var Mb="object"==typeof v&&v&&v.Object===Object&&v,Fb=Mb,Lb="object"==typeof self&&self&&self.Object===Object&&self,jb=Fb||Lb||Function("return this")(),Hb=jb.Symbol,Ub=Hb,Vb=Object.prototype,$b=Vb.hasOwnProperty,Wb=Vb.toString,Yb=Ub?Ub.toStringTag:void 0,qb=Object.prototype.toString,Gb=function(e){var t=$b.call(e,Yb),n=e[Yb];try{e[Yb]=void 0;var r=!0}catch(e){}var o=Wb.call(e);return r&&(t?e[Yb]=n:delete e[Yb]),o},Xb=Hb?Hb.toStringTag:void 0,Kb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xb&&Xb in Object(e)?Gb(e):function(e){return qb.call(e)}(e)},Zb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Jb=Kb,Qb=Zb,ew=jb["__core-js_shared__"],tw=function(){var e=/[^.]+$/.exec(ew&&ew.keys&&ew.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),nw=Function.prototype.toString,rw=function(e){if(null!=e){try{return nw.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ow=function(e){if(!Qb(e))return!1;var t=Jb(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},iw=function(e){return!!tw&&tw in e},aw=Zb,cw=rw,lw=/^\[object .+?Constructor\]$/,sw=Function.prototype,uw=Object.prototype,dw=sw.toString,pw=uw.hasOwnProperty,fw=RegExp("^"+dw.call(pw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mw=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!aw(e)||iw(e))&&(ow(e)?fw:lw).test(cw(e))}(n)?n:void 0},hw=mw(jb,"DataView"),gw=mw(jb,"Map"),vw=mw(jb,"Promise"),yw=mw(jb,"Set"),bw=mw(jb,"WeakMap"),ww=Kb,xw=rw,Ew=xw(hw),Cw=xw(gw),kw=xw(vw),Sw=xw(yw),_w=xw(bw),Iw=ww;(hw&&"[object DataView]"!=Iw(new hw(new ArrayBuffer(1)))||gw&&"[object Map]"!=Iw(new gw)||vw&&"[object Promise]"!=Iw(vw.resolve())||yw&&"[object Set]"!=Iw(new yw)||bw&&"[object WeakMap]"!=Iw(new bw))&&(Iw=function(e){var t=ww(e),n="[object Object]"==t?e.constructor:void 0,r=n?xw(n):"";if(r)switch(r){case Ew:return"[object DataView]";case Cw:return"[object Map]";case kw:return"[object Promise]";case Sw:return"[object Set]";case _w:return"[object WeakMap]"}return t});var Bw,Tw=Kb,Nw=function(e){return null!=e&&"object"==typeof e},Dw=Object.prototype;Dw.hasOwnProperty,Dw.propertyIsEnumerable,Bw=function(){return arguments}(),Nw(Bw)&&Tw(Bw);var zw={exports:{}},Pw=function(){return!1};!function(e,t){var n=jb,r=Pw,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;e.exports=c}(zw,zw.exports);var Ow={exports:{}};!function(e,t){var n=Mb,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Ow,Ow.exports);var Aw={},Rw={"text/plain":"Text","text/html":"Url",default:"Text"};function Mw(e){return Mw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mw(e)}Object.defineProperty(Aw,"__esModule",{value:!0}),Aw.CopyToClipboard=void 0;var Fw=Hw(t),Lw=Hw((function(e,t){var n,r,o,i,a,c,l=!1;t||(t={}),n=t.debug||!1;try{if(o=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}(),i=document.createRange(),a=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=Rw[t.format]||Rw.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),i.selectNodeContents(c),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),c&&document.body.removeChild(c),o()}return l})),jw=["text","onCopy","options","children"];function Hw(e){return e&&e.__esModule?e:{default:e}}function Uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uw(Object(n),!0).forEach((function(t){Kw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ww(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yw(e,t){return Yw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yw(e,t)}function qw(e,t){if(t&&("object"===Mw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gw(e)}function Gw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xw(e){return Xw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xw(e)}function Kw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yw(e,t)}(a,Fw.default.PureComponent);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Xw(r);if(o){var n=Xw(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return qw(this,e)});function a(){var e;$w(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Kw(Gw(e=i.call.apply(i,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,o=n.onCopy,i=n.children,a=n.options,c=Fw.default.Children.only(i),l=(0,Lw.default)(r,a);o&&o(r,l),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,jw),r=Fw.default.Children.only(t);return Fw.default.cloneElement(r,Vw(Vw({},n),{},{onClick:this.onClick}))}}])&&Ww(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}();Aw.CopyToClipboard=Zw,Kw(Zw,"defaultProps",{onCopy:void 0,options:void 0});var Jw=Aw.CopyToClipboard;Jw.CopyToClipboard=Jw;var Qw=Jw;let ex=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function tx(e){return Bs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22l-4-4h8l-4 4zm0-20l4 4H8l4-4zm0 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM2 12l4-4v8l-4-4zm20 0l-4 4V8l4 4z"}}]}]})(e)}var nx={exports:{}},rx=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},ox=rx,ix=Object.prototype.toString;function ax(e){return"[object Array]"===ix.call(e)}function cx(e){return void 0===e}function lx(e){return null!==e&&"object"==typeof e}function sx(e){if("[object Object]"!==ix.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function ux(e){return"[object Function]"===ix.call(e)}function dx(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),ax(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var px={isArray:ax,isArrayBuffer:function(e){return"[object ArrayBuffer]"===ix.call(e)},isBuffer:function(e){return null!==e&&!cx(e)&&null!==e.constructor&&!cx(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:lx,isPlainObject:sx,isUndefined:cx,isDate:function(e){return"[object Date]"===ix.call(e)},isFile:function(e){return"[object File]"===ix.call(e)},isBlob:function(e){return"[object Blob]"===ix.call(e)},isFunction:ux,isStream:function(e){return lx(e)&&ux(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:dx,merge:function e(){var t={};function n(n,r){sx(t[r])&&sx(n)?t[r]=e(t[r],n):sx(n)?t[r]=e({},n):ax(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)dx(arguments[r],n);return t},extend:function(e,t,n){return dx(t,(function(t,r){e[r]=n&&"function"==typeof t?ox(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},fx=px;function mx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var hx=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(fx.isURLSearchParams(t))r=t.toString();else{var o=[];fx.forEach(t,(function(e,t){null!=e&&(fx.isArray(e)?t+="[]":e=[e],fx.forEach(e,(function(e){fx.isDate(e)?e=e.toISOString():fx.isObject(e)&&(e=JSON.stringify(e)),o.push(mx(t)+"="+mx(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},gx=px;function vx(){this.handlers=[]}vx.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},vx.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},vx.prototype.forEach=function(e){gx.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var yx=vx,bx=px,wx=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},xx=wx,Ex=function(e,t,n,r,o){var i=new Error(e);return xx(i,t,n,r,o)},Cx=Ex,kx=px,Sx=kx.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),kx.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),kx.isString(r)&&a.push("path="+r),kx.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},_x=px,Ix=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Bx=px,Tx=Bx.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=Bx.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},Nx=px,Dx=Sx,zx=hx,Px=Tx,Ox=Ex,Ax=px,Rx=function(e,t){bx.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Mx=wx,Fx={"Content-Type":"application/x-www-form-urlencoded"};function Lx(e,t){!Ax.isUndefined(e)&&Ax.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var jx,Hx={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(jx=function(e){return new Promise((function(t,n){var r=e.data,o=e.headers,i=e.responseType;Nx.isFormData(r)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(c+":"+l)}var s,u,d=(s=e.baseURL,u=e.url,s&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(u)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(s,u):u);function p(){if(a){var r="getAllResponseHeaders"in a?function(e){var t,n,r,o={};return e?(_x.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=_x.trim(e.substr(0,r)).toLowerCase(),n=_x.trim(e.substr(r+1)),t){if(o[t]&&Ix.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}(a.getAllResponseHeaders()):null,o={data:i&&"text"!==i&&"json"!==i?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:r,config:e,request:a};(function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(Cx("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)})(t,n,o),a=null}}if(a.open(e.method.toUpperCase(),zx(d,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,"onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(p)},a.onabort=function(){a&&(n(Ox("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(Ox("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Ox(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Nx.isStandardBrowserEnv()){var f=(e.withCredentials||Px(d))&&e.xsrfCookieName?Dx.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in a&&Nx.forEach(o,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Nx.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&"json"!==i&&(a.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),n(e),a=null)})),r||(r=null),a.send(r)}))}),jx),transformRequest:[function(e,t){return Rx(t,"Accept"),Rx(t,"Content-Type"),Ax.isFormData(e)||Ax.isArrayBuffer(e)||Ax.isBuffer(e)||Ax.isStream(e)||Ax.isFile(e)||Ax.isBlob(e)?e:Ax.isArrayBufferView(e)?e.buffer:Ax.isURLSearchParams(e)?(Lx(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Ax.isObject(e)||t&&"application/json"===t["Content-Type"]?(Lx(t,"application/json"),function(e,t,n){if(Ax.isString(e))try{return(0,JSON.parse)(e),Ax.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&Ax.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Mx(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ax.forEach(["delete","get","head"],(function(e){Hx.headers[e]={}})),Ax.forEach(["post","put","patch"],(function(e){Hx.headers[e]=Ax.merge(Fx)}));var Ux=Hx,Vx=px,$x=Ux,Wx=function(e){return!(!e||!e.__CANCEL__)},Yx=px,qx=function(e,t,n){var r=this||$x;return Vx.forEach(n,(function(n){e=n.call(r,e,t)})),e},Gx=Wx,Xx=Ux;function Kx(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Zx=px,Jx=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,t){return Zx.isPlainObject(e)&&Zx.isPlainObject(t)?Zx.merge(e,t):Zx.isPlainObject(t)?Zx.merge({},t):Zx.isArray(t)?t.slice():t}function l(r){Zx.isUndefined(t[r])?Zx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(e[r],t[r])}Zx.forEach(r,(function(e){Zx.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),Zx.forEach(o,l),Zx.forEach(i,(function(r){Zx.isUndefined(t[r])?Zx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(void 0,t[r])})),Zx.forEach(a,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var s=r.concat(o).concat(i).concat(a),u=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===s.indexOf(e)}));return Zx.forEach(u,l),n},Qx={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},eE={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){eE[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var tE={},nE=Qx.version.split(".");function rE(e,t){for(var n=t?t.split("."):nE,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}eE.transitional=function(e,t,n){var r=t&&rE(t);function o(e,t){return"[Axios v"+Qx.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(o(i," has been removed in "+t));return r&&!tE[i]&&(tE[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}};var oE={isOlderVersion:rE,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],l=void 0===c||a(c,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:eE},iE=px,aE=hx,cE=yx,lE=function(e){return Kx(e),e.headers=e.headers||{},e.data=qx.call(e,e.data,e.headers,e.transformRequest),e.headers=Yx.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Yx.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Xx.adapter)(e).then((function(t){return Kx(e),t.data=qx.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Gx(t)||(Kx(e),t&&t.response&&(t.response.data=qx.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},sE=Jx,uE=oE,dE=uE.validators;function pE(e){this.defaults=e,this.interceptors={request:new cE,response:new cE}}pE.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=sE(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&uE.assertOptions(t,{silentJSONParsing:dE.transitional(dE.boolean,"1.0.0"),forcedJSONParsing:dE.transitional(dE.boolean,"1.0.0"),clarifyTimeoutError:dE.transitional(dE.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var a=[lE,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=e;n.length;){var l=n.shift(),s=n.shift();try{c=l(c)}catch(e){s(e);break}}try{o=lE(c)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},pE.prototype.getUri=function(e){return e=sE(this.defaults,e),aE(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},iE.forEach(["delete","get","head","options"],(function(e){pE.prototype[e]=function(t,n){return this.request(sE(n||{},{method:e,url:t,data:(n||{}).data}))}})),iE.forEach(["post","put","patch"],(function(e){pE.prototype[e]=function(t,n,r){return this.request(sE(r||{},{method:e,url:t,data:n}))}}));var fE=pE;function mE(e){this.message=e}mE.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},mE.prototype.__CANCEL__=!0;var hE=mE,gE=hE;function vE(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new gE(e),t(n.reason))}))}vE.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},vE.source=function(){var e;return{token:new vE((function(t){e=t})),cancel:e}};var yE=vE,bE=px,wE=rx,xE=fE,EE=Jx;function CE(e){var t=new xE(e),n=wE(xE.prototype.request,t);return bE.extend(n,xE.prototype,t),bE.extend(n,t),n}var kE=CE(Ux);kE.Axios=xE,kE.create=function(e){return CE(EE(kE.defaults,e))},kE.Cancel=hE,kE.CancelToken=yE,kE.isCancel=Wx,kE.all=function(e){return Promise.all(e)},kE.spread=function(e){return function(t){return e.apply(null,t)}},kE.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},nx.exports=kE,nx.exports.default=kE;var SE=nx.exports;function _E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_E(Object(n),!0).forEach((function(t){BE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TE(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function NE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||zE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DE(e){return function(e){if(Array.isArray(e))return PE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zE(e,t){if(e){if("string"==typeof e)return PE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PE(e,t):void 0}}function PE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var OE=["theme"];Gl.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1kgkg60-0"})(["button&,a&{display:flex;flex-wrap:nowrap;flex:0 0 auto;white-space:nowrap;position:relative;min-width:40px;text-align:center;background-position:center;fill:currentColor;text-decoration:none;&:focus{display:flex;}}align-items:center !important;box-sizing:border-box !important;text-shadow:none !important;text-transform:none !important;font-family:"," !important;font-size:"," !important;font-weight:400 !important;line-height:"," !important;border-radius:",";outline:none !important;border:1px solid transparent !important;cursor:pointer !important;vertical-align:middle;justify-content:center;font-style:normal;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],If.fontStackBase,If.fontSizeBase,If.lineHeightBase,If.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?Nl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],If.spacing4,If.fontSize75):Nl(["height:40px !important;padding:0 "," !important;"],If.spacing5)}),(function(e){var t=e.theme,n=TE(e,OE);if("primary-dark"===n.variant){var r=Nl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],If.componentButtonPrimaryBorderActive,If.componentButtonPrimaryFillActive,If.componentButtonPrimaryColorActive);return Nl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{background-color:",";color:",";border-color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],If.componentButtonPrimaryFill,If.componentButtonPrimaryColor,n.isPressed&&r,If.componentButtonPrimaryBorderHover,If.componentButtonPrimaryFillHover,If.componentButtonPrimaryColorHover,If.elevation1,If.componentButtonPrimaryFillFocus,If.componentButtonPrimaryColorFocus,If.componentButtonPrimaryBorderFocus,If.componentButtonPrimaryFocusRing,r,If.componentButtonPrimaryBorderDisabled,If.componentButtonPrimaryFillDisabled,If.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=Nl(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return Nl(["color:rgba(255,255,255,0.8) !important;background-color:rgba(255,255,255,0.1) !important;"," &:hover{color:"," !important;background-color:rgba(255,255,255,0.15) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.3) !important;background-color:rgba(255,255,255,0.05) !important;border-color:transparent !important;box-shadow:none !important;}"],n.isPressed&&o,t.legacy.colorWhite,o)}if("clean-dark"===n.variant){var i=Nl(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return Nl(["color:",";background-color:transparent !important;border-color:transparent !important;box-shadow:none !important;border-radius:"," !important;"," &:hover{color:#fff !important;background-color:rgba(255,255,255,0.05) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.15) !important;background-color:transparent !important;}"],t.legacy.colorTextDarker,t.legacy.buttonBorderRadius,n.isPressed&&i,i)}return""}));var AE=Gl.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);Gl(AE).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(If.spacing2," * -1)"):If.spacing3}),If.spacing2),Gl(AE).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],If.spacing2,If.spacing3);var RE,ME=ql(["100%{transform:rotate(360deg);}"]),FE=ql(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);Gl.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],ME),Gl.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],FE),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(RE||(RE={}));var LE,jE,HE,UE=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),VE=Gl(UE).withConfig({displayName:"IconRightContainer",componentId:"sc-16awveu-1"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Gl.input.withConfig({displayName:"StyledInput",componentId:"sc-16awveu-2"})(["box-sizing:border-box;width:100%;height:40px;font-family:",";font-size:",";line-height:",";color:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";"," &::placeholder{color:",";}&:focus,&:hover{& ","{fill:"," !important;}border:1px solid ",";}",";padding-left:","px;padding-right:","px;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.inputType===RE.Select&&"\n background: rgba(0, 34, 51, 0.03) !important;\n color: transparent !important;\n text-shadow: 0 0 0 ".concat(e.theme.legacy.colorText,";\n cursor: pointer;\n\n &:hover {\n background: rgba(0, 34, 51, 0.03) !important;\n }\n ")}),(function(e){return e.theme.legacy.colorTextDisabled}),VE,(function(e){return e.theme.legacy.colorIconActive}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?"\n border: none !important; /* overrides bynder-custom17 */\n &:focus, &:hover {\n border: none;\n }\n ":""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Gl.label.withConfig({displayName:"Label",componentId:"sc-16awveu-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Gl.p.withConfig({displayName:"ErrorMessage",componentId:"sc-16awveu-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Gl(UE).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Gl(UE).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Gl.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Gl.div.withConfig({displayName:"ListContainer",componentId:"sc-16awveu-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Yl(["textarea,input[type='text'],input[type='password'],input[type='datetime'],input[type='datetime-local'],input[type='date'],input[type='month'],input[type='time'],input[type='week'],input[type='number'],input[type='email'],input[type='url'],input[type='search'],input[type='tel'],input[type='color']{height:40px;line-height:",";margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:","px;padding-right:","px;font-size:",";"," &::placeholder{color:",";}&:focus,&:hover{&::placeholder{color:",";}}}"],(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError,";"):""}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled})),function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Backspace="Backspace",e.Escape="Escape",e.Tab="Tab"}(LE||(LE={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(jE||(jE={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(HE||(HE={})),Gl.div.withConfig({displayName:"MainContainer",componentId:"sc-167ea0r-0"})(["background-color:",";border:",";box-shadow:",";border-radius:5px;padding:8px 0;"],(function(e){return e.dark?e.theme.legacy.colorBackgroundDark:e.theme.legacy.colorBackground}),(function(e){return e.borderless?"none":"1px solid ".concat(e.theme.legacy.colorBorder)}),(function(e){return e.borderless?"none":e.theme.legacy.boxShadow}));var $E=Gl.li.withConfig({displayName:"Li",componentId:"sc-167ea0r-1"})(["display:flex;font-size:",";align-items:center;height:36px;padding:0 16px !important;"],(function(e){return e.theme.legacy.fontSizeSmall})),WE=Gl($E).withConfig({displayName:"Item",componentId:"sc-167ea0r-2"})(["cursor:pointer;&&&{&:active,&:focus,&:hover{color:",";background-color:",";outline:none;}}"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextLightActive}),(function(e){return e.dark?e.theme.legacy.colorBackgroundDarkHover:e.theme.legacy.colorBackgroundLight}));Gl($E).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),Gl($E).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),Gl.ul.withConfig({displayName:"Ul",componentId:"sc-167ea0r-5"})(["margin:0;padding:0;list-style-type:none;max-height:",";overflow-y:auto;","{color:",";}"],(function(e){return e.maxHeight||"350px"}),WE,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-167ea0r-6"})(["display:flex;margin-right:8px;fill:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorIcon})),Gl.div.withConfig({displayName:"Divider",componentId:"sc-167ea0r-7"})(["margin:8px 0;border-bottom:1px solid ",";width:100%;"],(function(e){return e.dark?e.theme.legacy.colorRichBlack30:e.theme.legacy.colorBorder})),Gl.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var YE=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),qE=Gl(YE).withConfig({displayName:"IconRightContainer",componentId:"sc-6ftogw-1"})(["right:12px;cursor:",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorMutedIcon}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.disabled?e.theme.legacy.colorMutedIcon:e.theme.legacy.colorMutedIconActive}));Gl.input.withConfig({displayName:"StyledInput",componentId:"sc-6ftogw-2"})(["box-sizing:border-box;width:100%;height:40px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";cursor:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";&:focus,&:hover{& ","{fill:"," !important;}&::placeholder{color:"," !important;}","}&::placeholder{color:"," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.disabled?e.theme.legacy.colorTextDisabled:e.theme.legacy.colorText}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?If.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),qE,(function(e){return e.theme.legacy.colorMutedIconActive}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError," !important;"):e.dark?"":e.disabled?"border: 1px solid ".concat(e.theme.legacy.colorBorder," !important;"):"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus," !important;")}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.borderless?Nl(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Gl.label.withConfig({displayName:"Label",componentId:"sc-6ftogw-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Gl.p.withConfig({displayName:"ErrorMessage",componentId:"sc-6ftogw-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Gl.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Gl(YE).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Gl(YE).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Gl.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),Gl.div.withConfig({displayName:"SpinnerBorder",componentId:"sc-1lat4jy-0"})(["display:flex;width:24px;height:24px;justify-content:center;align-items:center;svg{animation:borderRotate 1s linear infinite;width:20px;height:20px;circle{stroke:",";stroke-linecap:round;animation:borderDash 1.5s ease-in-out infinite;}}@keyframes borderRotate{100%{transform:rotate(360deg);}}@keyframes borderDash{0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}}"],(function(e){switch(e.colorMode){case jE.COLOR:return e.theme.legacy.colorPrimary;case jE.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var GE=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);Gl(GE).withConfig({displayName:"IconRightContainer",componentId:"sc-hv8gko-1"})(["top:0;right:12px;",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.onClick&&"cursor: pointer;"}),(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Gl.input.withConfig({displayName:"StyledInput",componentId:"sc-hv8gko-2"})(["box-sizing:border-box;width:100%;height:","px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";background:",";border-radius:5px;outline:none !important;border:1px solid "," !important;&::placeholder{color:"," !important;}&:focus,&:hover:not([disabled]){&::placeholder{color:"," !important;}border:1px solid "," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";&&:disabled{background:",";border-color:"," !important;}"],(function(e){return e.small?32:40}),(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?Nl(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive&&!e.error?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundLight})),Gl.label.withConfig({displayName:"Label",componentId:"sc-hv8gko-3"})(["font-weight:normal;font-family:",";font-size:",";color:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.colorText})),Gl.p.withConfig({displayName:"ErrorMessage",componentId:"sc-hv8gko-4"})(["margin:4px 0 0;font-size:",";line-height:",";color:",";"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.lineHeightSmall}),(function(e){return e.theme.legacy.colorError})),Gl.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Gl(GE).withConfig({displayName:"IconLeftContainer",componentId:"sc-hv8gko-7"})(["top:0;left:10px;fill:",";color:",";"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIcon})),Gl.p.withConfig({displayName:"Counter",componentId:"sc-hv8gko-8"})(["position:absolute;right:0;font-size:",";color:",";margin:4px 0 0 0;text-align:right;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorTextDisabled})),Gl.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),Gl.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],If.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),Gl.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),Gl.ul.withConfig({displayName:"StyledUserSearchDropdown",componentId:"sc-uhd8g-2"})(["display:block;box-sizing:border-box;overflow-y:auto;padding:"," 0;margin:0;border:none;border-radius:",";background-color:",";box-shadow:0 0 0 1px ",";z-index:1;&:empty{display:none;}> li{list-style:none;}"],If.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var XE=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);Gl(XE).withConfig({displayName:"IconRightContainer",componentId:"sc-uhd8g-4"})(["cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Gl.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),Gl.div.withConfig({displayName:"InfoContainer",componentId:"sc-1ozn84q-1"})(["flex:1;margin-right:12px;color:",";min-width:0;"],(function(e){return e.isDisabled?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Gl.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),Gl.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),Gl.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),Gl.div.withConfig({displayName:"ExtraInfo",componentId:"sc-1ozn84q-5"})(["font-size:14px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.legacy.colorTextLight}));var KE=Gl.div.withConfig({displayName:"LoadingPlaceholder",componentId:"sc-1ozn84q-6"})(["&:after{content:'';display:flex;width:120px;height:6px;border-radius:4px;margin:3px 0;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20}));Gl(KE).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),Gl(KE).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-1ozn84q-9"})(["min-width:40px;height:40px;margin-right:8px;display:flex;align-items:center;justify-content:center;border-radius:",";background-color:",";fill:",";"],(function(e){return e.square?"5px":"50%"}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundActive})),Gl.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),Gl.div.withConfig({displayName:"StyledItemCheck",componentId:"sc-ri03d3-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 2px ",";"," svg{","}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.checked&&"\n background-color: ".concat(e.theme.legacy.colorPrimary,";\n box-shadow: none;\n color: ").concat(e.theme.legacy.colorWhite,";\n ")}),(function(e){return e.checked?"\n opacity: 1;\n transform: scale(1);\n ":"\n opacity: 0;\n "})),Gl.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var ZE=Gl.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);Gl.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),Gl.div.withConfig({displayName:"ListContent",componentId:"sc-ri03d3-4"})(["padding:8px 0;margin:0;display:flex;flex-direction:row;align-items:center;position:relative;justify-content:flex-start;"]),Gl.div.withConfig({displayName:"ListInfo",componentId:"sc-ri03d3-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack80}));var JE=Gl.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);Gl(JE).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),Gl.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),Gl.div.withConfig({displayName:"ListItem",componentId:"sc-ri03d3-9"})(["padding:0 16px;"," ",""],(function(e){return e.pointer&&"\n cursor: pointer;\n "}),(function(e){return e.isFocused&&"\n background-color: ".concat(e.theme.legacy.colorRichBlack03,";\n ")})),Gl.div.withConfig({displayName:"ListIcon",componentId:"sc-ri03d3-10"})(["width:48px;height:48px;margin:0 8px 0 0;border-radius:5px;position:relative;box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:",";fill:",";color:",";box-shadow:none;> svg{width:24px;height:24px;}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50})),Gl.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var QE,eC,tC=Gl.div.withConfig({displayName:"Icon",componentId:"sc-ri03d3-12"})(["background-color:",";width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;flex-shrink:0;img{width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;background-color:",";}"],(function(e){return!e.withImage&&(e.color||e.theme.legacy.colorRichBlack10)}),(function(e){return e.color||e.theme.legacy.colorRichBlack10})),nC=Gl.span.withConfig({displayName:"ComponentIcon",componentId:"sc-ri03d3-13"})(["display:flex;width:32px;height:32px;align-items:center;fill:",";margin-right:8px;justify-content:center;flex-shrink:0;border-radius:5px;","{margin:0;}> img{width:24px;height:24px;border-radius:5px;}"],(function(e){return e.theme.legacy.colorRichBlack30}),tC);Gl.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),Gl.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),Gl(ZE).withConfig({displayName:"EntityListSection",componentId:"sc-ri03d3-16"})(["margin-right:calc("," * -1);padding-right:",";flex:1;overflow-y:auto;overflow-x:hidden;margin-top:4px;min-height:186px;max-height:256px;margin-bottom:12px;"],If.spacing6,If.spacing6),Gl.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],If.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(QE||(QE={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(eC||(eC={})),Gl.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var rC=Gl.div.withConfig({displayName:"DropdownContainer",componentId:"sc-td9xdv-1"})(["top:100%;left:0;border-radius:",";background-color:",";box-shadow:0 1px 6px 0 ",";border:1px solid ",";min-width:170px;overflow:auto;background-clip:padding-box;"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}));Gl.div.withConfig({displayName:"DropdownContent",componentId:"sc-td9xdv-2"})(["position:absolute;min-width:",";"," overflow:auto;background-color:",";box-shadow:0 1px 8px 0 ",";border-radius:",";background-clip:padding-box;z-index:100;",""],(function(e){return e.small?"148px":"200px"}),(function(e){return e.fullWidth&&"width: 100%;"}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:eC.LEFT){case eC.RIGHT:return Nl(["top:110%;right:0;"]);case eC.CENTER:return Nl(["top:110%;left:50%;transform:translateX(-50%);"]);case eC.TOP:return Nl(["top:auto;bottom:110%;"]);case eC.LEFT:default:return Nl(["top:110%;left:0;"])}}(e.position)})),Gl.div.withConfig({displayName:"Entry",componentId:"sc-td9xdv-3"})(["margin:0;display:flex;flex-direction:row;align-items:center;position:relative;text-decoration:none;white-space:nowrap;","{width:24px;}"],nC);var oC=Gl.span.withConfig({displayName:"IconContainer",componentId:"sc-td9xdv-4"})(["display:flex;margin:0 -8px 0 auto;fill:",";svg{margin-left:auto;}"],(function(e){return e.theme.legacy.colorRichBlack80}));Gl.li.withConfig({displayName:"DropdownListItem",componentId:"sc-td9xdv-5"})([""," margin:0;height:36px;display:flex;flex-direction:row;align-items:center;position:relative;color:",";font-size:14px;"," &:hover{background-color:",";cursor:pointer;color:",";}list-style:none;","{fill:",";color:",";}","{margin:0 -8px 0 auto;svg{color:rgba(0,34,51,0.8);}}"],(function(e){return e.woPaddingLeft?"padding: 0 16px 0 0;":"padding: 0 16px;"}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.enabled&&"color: ".concat(e.theme.legacy.colorRichBlack80,";")}),(function(e){return e.theme.legacy.colorRichBlack03}),(function(e){return e.theme.legacy.colorRichBlack80}),nC,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),oC);var iC=Nl(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),aC=Nl(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));Gl.ul.withConfig({displayName:"DropdownList",componentId:"sc-td9xdv-6"})(["list-style:none;padding:8px 0;margin:0;hr{margin:8px 0;}",""],(function(e){return e.scrollable&&"\n max-height: 300px;\n overflow: scroll;\n "})),Gl(rC).withConfig({displayName:"CardDropdownContainer",componentId:"sc-td9xdv-7"})(["top:110%;min-width:200px;background-clip:padding-box;align-self:flex-start;min-height:8px;z-index:1;"]),Gl.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],iC,aC,(function(e){return e.theme.legacy.colorRichBlack50}));var cC=Gl.input.withConfig({displayName:"StyledInput",componentId:"sc-1jv4ai7-0"})(["flex-grow:2;box-sizing:border-box;height:40px;font-size:",";line-height:",";color:",";background:",";padding-left:16px;padding-right:40px;input&{\bwidth:156px;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled}));Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1jv4ai7-1"})(["position:relative;margin-top:","px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.isLabeled?8:0}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Gl.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var lC=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);Gl(lC).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Gl(lC).withConfig({displayName:"IconRightContainer",componentId:"sc-1jv4ai7-5"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}",":focus &{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}),cC,(function(e){return e.theme.legacy.colorIconActive})),Gl.label.withConfig({displayName:"Label",componentId:"sc-1jv4ai7-6"})(["font-weight:normal;font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontSizeH6})),Gl.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1jv4ai7-7"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Gl.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Gl.div.withConfig({displayName:"ListContainer",componentId:"sc-1jv4ai7-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Gl.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&Nl(["background-color:",";"],e.theme.legacy.colorRichBlack03)})),Gl.input.withConfig({displayName:"Input",componentId:"sc-1rwvhxx-0"})(["flex-grow:2;box-sizing:border-box;height:32px;font-size:",";line-height:",";color:",";background:",";padding-left:8px;padding-right:8px;input&{width:20%;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled})),Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1rwvhxx-1"})(["position:relative;padding:2px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Gl.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),Gl.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),Gl.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),Gl.div.withConfig({displayName:"AvailableChipContainer",componentId:"sc-1rwvhxx-5"})(["display:flex;align-items:flex-start;width:100%;height:",";scroll-behavior:smooth;overflow-x:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],"44px"),Gl.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var sC=Gl.div.withConfig({displayName:"Arrow",componentId:"sc-1rwvhxx-7"})(["z-index:2;position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:24px;height:32px;background-color:#fff;border-radius:5px;cursor:pointer;> svg{height:24px;width:24px;fill:",";}&:hover{background-color:#f2f4f5;> svg{fill:",";}}&:active{background-color:#e6e9eb;}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Gl(sC).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),Gl(sC).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var uC=Gl.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],"44px");Gl(uC).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),Gl(uC).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var dC=Gl.div.withConfig({displayName:"ArrowBackground",componentId:"sc-1rwvhxx-13"})(["z-index:1;position:absolute;top:0;background-color:#fff;border-radius:5px 0 0 5px;height:",";width:26px;"],"44px");Gl(dC).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),Gl(dC).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var pC=["isOpen"];function fC(e){var n=e.presetURL,r=e.alwaysVisible,o=new RegExp("[-?]io"),i="".concat(n).concat(o.test(n)?"&download=true":"?download=true");return t.createElement(Lg,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=TE(e,pC);return t.createElement(hC,{isVisible:r||n},t.createElement(Xf,IE(IE({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(Du,null),"aria-label":"More options"})))}},t.createElement(Qw.CopyToClipboard,{text:n,onCopy:function(){mv({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Lg.Item,{icon:t.createElement(Ks,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Lg.Divider,null),t.createElement(Lg.Item,{icon:t.createElement(As,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Lg.Divider,null),t.createElement(Lg.Item,{icon:t.createElement(au,null),onClick:function(){return!1}},t.createElement(mC,{href:i,download:"presetimage"},"Download")))}var mC=Gl.a.withConfig({displayName:"DownloadLink",componentId:"sc-1xq1wim-0"})(["display:block;"]),hC=Gl.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-1xq1wim-1"})(["opacity:",";",":hover &,&:focus-within{opacity:1;}"],(function(e){return e.isVisible?"1":"0"}),".dat-menu-pointer-events-wrapper"),gC=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},vC=function(e){var n=e.name,r=e.onSelect,o=e.subtitle,i=e.isMenuHidden,a=void 0!==i&&i,c=e.isSelected,l=e.baseURL,s="Base"===n?"":"".concat(n,"/"),u=gC(l),d="/transform/".concat(s).concat(u,"/"),p=EC(d,l);return t.createElement(yC,{className:"dat-menu-pointer-events-wrapper",onClick:r,isSelected:c},t.createElement(wg,{variant:"content",imageUrl:p}),t.createElement(bC,null,t.createElement(wC,null,n),t.createElement(xC,null,o)),!a&&t.createElement(fC,{alwaysVisible:!1,presetURL:d}))},yC=Gl.div.withConfig({displayName:"ItemContainer",componentId:"sc-1q57zbs-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],If.spacing3,If.spacing4,If.spacing3,(function(e){return e.isSelected&&If.gray25}),If.gray25),bC=Gl.div.withConfig({displayName:"ItemDetails",componentId:"sc-1q57zbs-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),wC=Gl.p.withConfig({displayName:"Title",componentId:"sc-1q57zbs-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],If.fontSize100,If.lineHeightText,If.gray800,If.spacing4),xC=Gl.p.withConfig({displayName:"Subtitle",componentId:"sc-1q57zbs-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],If.gray600,If.fontSize100,If.lineHeightText,If.spacing4),EC=function(e,t){var n=t.split("/transform"),r=n.length>1?n[0]:"";return"".concat(r).concat(e,"?io=transform:fit,width:80")},CC=t.memo(vC),kC=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL;return t.createElement(_C,null,t.createElement(SC,null,"Base transformation"),t.createElement(CC,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),r.length>0&&t.createElement(SC,null,r.length," Presets"),r.map((function(e){var r=e.name===o;return t.createElement(CC,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:r})})))},SC=Gl.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],If.gray800,If.spacing5,If.spacing5,If.spacing4),_C=Gl.div.withConfig({displayName:"Container",componentId:"sc-yqslcx-1"})(["padding:0px ",";"],If.spacing4),IC=t.memo(kC);function BC(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}var TC=function(e){switch(e.type){case"fill":case"crop":return t.createElement(mu,null);case"fit":return t.createElement(Ns,null);case"extend":return t.createElement(js,null);case"scale":return t.createElement(ou,null);case"rotate":return t.createElement(wu,null);case"flip":return t.createElement(gu,null);case"mirror":return t.createElement(pu,null);case"border":return t.createElement(eu,null);case"background":return t.createElement(tu,null);case"trim":return t.createElement(Zs,null);case"opacity":return t.createElement(Fs,null);case"sepia":return t.createElement(du,null);case"contrast":return t.createElement(Ps,null);case"brightness":return t.createElement(Qs,null);case"grayscale":return t.createElement(xu,null);case"blur":return t.createElement(lu,null);case"sharpness":return t.createElement(hu,null);case"saturation":return t.createElement(su,null);case"text":return t.createElement(iu,null);case"advanced":return t.createElement(Us,null);case"multiple":return t.createElement(Vs,null);case"removebg":return t.createElement(DC,null);default:return null}};function NC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"}))}function DC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2c0-1.1-.9-2-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z"}))}function zC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0 0 18 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82ZM6 7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm12 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"}))}function PC(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(OC,null,t.createElement(ph.Label,null,r),n,t.createElement(ph.HelperText,null,o))}var OC=Gl(ph.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),AC={transformation:null,group:null,label:"Select a transform"},RC=[{label:"Background",transformation:"background",group:"transform"},{label:"Border",transformation:"border",group:"transform"},{label:"Crop",transformation:"crop",group:"transform",description:"Extracts a region of the specified dimensions from the original image without first resizing it."},{label:"Remove Background",transformation:"removebg",group:"transform",description:"We will use the available clipping path information to mask the image, and remove the background."},{label:"Extend",transformation:"extend",group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and extends the canvas if the resized image does not fill the whole area."},{label:"Fill",transformation:"fill",group:"transform",description:"Resizes the image to fill the specified dimensions without distortion. The image may be cropped as a result."},{label:"Fit",transformation:"fit",group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio."},{label:"Flip",transformation:"flip",group:"transform"},{label:"Mirror",transformation:"mirror",group:"transform"},{label:"Rotate",transformation:"rotate",group:"transform"},{label:"Scale",transformation:"scale",group:"transform",description:"Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio."},{label:"Trim",transformation:"trim",group:"transform",description:"Removes any transparent or white colored areas at the edges of an image."},{label:"Text overlay",transformation:"text",group:"overlay"},{label:"Opacity",transformation:"opacity",group:"filter"},{label:"Sepia",transformation:"sepia",group:"filter"},{label:"Contrast",transformation:"contrast",group:"filter"},{label:"Brightness",transformation:"brightness",group:"filter"},{label:"Grayscale",transformation:"grayscale",group:"filter"},{label:"Blur",transformation:"blur",group:"filter"},{label:"Sharpness",transformation:"sharpness",group:"filter"},{label:"Saturation",transformation:"saturation",group:"filter"}];function MC(e){var n,r=RC.find((function(t){return t.transformation===e.transformation}))||AC;return t.createElement(PC,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement(yv,{onChange:function(t){var n=RC.find((function(e){return e.transformation===t})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(TC,{type:r.transformation})},t.createElement(yv.SectionTitle,null,"Transforms"),RC.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement(yv.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(TC,{type:e.transformation})},e.label)})),t.createElement(yv.Divider,null),t.createElement(yv.SectionTitle,null,"Filters"),RC.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement(yv.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(TC,{type:e.transformation})},e.label)})),t.createElement(yv.Divider,null),t.createElement(yv.SectionTitle,null,"Overlay"),RC.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement(yv.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(TC,{type:e.transformation})},e.label)}))))}var FC=function(e){return"number"==typeof e&&!isNaN(e)},LC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!FC(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},jC=function(e){return e&&e>0?e.toString():""};function HC(e){var n=e.id,o=e.height,i=void 0===o?0:o,a=e.width,c=void 0===a?0:a,l=e.showLock,s=void 0!==l&&l,u=e.onDispatch,d=NE(r(!1),2),p=d[0],f=d[1],m=NE(r(1),2),h=m[0],g=m[1],v=t.createElement(VC,null,p?t.createElement(Ms,null):t.createElement(Rs,null)),y=jC(c),b=jC(i);return t.createElement(PC,{label:"Dimensions"},t.createElement(UC,null,t.createElement($C,null,t.createElement(Nh,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(WC,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=LC(t,9e3);u({type:"width",payload:{value:r,id:n}}),p?u({type:"height",payload:{value:r/h,id:n}}):g(i&&r?r/i:1)},iconRight:t.createElement("span",null,"px")})),s?t.createElement(Xf,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(YC,null),t.createElement($C,null,t.createElement(Nh,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(WC,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=LC(t,9e3);u({type:"height",payload:{value:r,id:n}}),p?u({type:"width",payload:{value:r*h,id:n}}):g(c&&r?c/r:1)},iconRight:t.createElement("span",null,"px")}))))}var UC=Gl.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),VC=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],If.gray400a),$C=Gl.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),WC=Gl.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],If.spacing6),YC=Gl.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],If.spacing4);function qC(e){var n=e.onChange,r=e.value,o=void 0===r?0:r,i=e.label,a=e.min,c=e.max;return t.createElement(PC,{label:i},t.createElement(zv,{value:o,onChange:n,min:a,max:c,inputPosition:"right"}))}function GC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M3 3H5V19H21V21H3V3Z",fill:"#334E5C"}),t.createElement("path",{d:"M7 5C13.6274 5 19 10.3726 19 17H17C17 11.4772 12.5228 7 7 7V5Z",fill:"#334E5C"}))}function XC(e){var n=e.io,r=e.onDispatch;return t.createElement(PC,{label:"Angle"},t.createElement(Nh,{type:"number",placeholder:"0",onChange:function(e){return r({type:"angle",payload:{value:parseInt(e,10),id:n.id}})},value:n.angle?n.angle.toString():"",icon:t.createElement(GC,null),iconRight:t.createElement("span",null,"°")}))}function KC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M8 19L8 21H16V19H13L13 5L16 5V3L8 3L8 5H11L11 19H8Z"}))}function ZC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M5 8H3V16H5V13H19V16H21V8H19V11H5V8Z"}))}var JC=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],QC=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}];function ek(e){var n=e.label,o=e.gravity,i=e.onChange,a=NE(r(QC[1]),2),c=a[0],l=a[1],s=NE(r(JC[1]),2),u=s[0],d=s[1],p=function(e){switch(i(e),e){case"topleft":d(JC.find((function(e){return"top"===e.value}))),l(QC.find((function(e){return"left"===e.value})));break;case"top":d(JC.find((function(e){return"top"===e.value}))),l(QC.find((function(e){return"center"===e.value})));break;case"topright":d(JC.find((function(e){return"top"===e.value}))),l(QC.find((function(e){return"right"===e.value})));break;case"left":d(JC.find((function(e){return"center"===e.value}))),l(QC.find((function(e){return"left"===e.value})));break;case"center":d(JC.find((function(e){return"center"===e.value}))),l(QC.find((function(e){return"center"===e.value})));break;case"right":d(JC.find((function(e){return"center"===e.value}))),l(QC.find((function(e){return"right"===e.value})));break;case"bottomleft":d(JC.find((function(e){return"bottom"===e.value}))),l(QC.find((function(e){return"left"===e.value})));break;case"bottom":d(JC.find((function(e){return"bottom"===e.value}))),l(QC.find((function(e){return"center"===e.value})));break;case"bottomright":d(JC.find((function(e){return"bottom"===e.value}))),l(QC.find((function(e){return"right"===e.value})))}};return t.createElement(PC,{label:n},t.createElement(am,null,t.createElement(tk,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(nk,{isSelected:"topleft"===o,onClick:function(){return p("topleft")}}),t.createElement(nk,{isSelected:"top"===o,onClick:function(){return p("top")}}),t.createElement(nk,{isSelected:"topright"===o,onClick:function(){return p("topright")}}),t.createElement(nk,{isSelected:"left"===o,onClick:function(){return p("left")}}),t.createElement(nk,{isSelected:"center"===o,onClick:function(){return p("center")}}),t.createElement(nk,{isSelected:"right"===o,onClick:function(){return p("right")}}),t.createElement(nk,{isSelected:"bottomleft"===o,onClick:function(){return p("bottomleft")}}),t.createElement(nk,{isSelected:"bottom"===o,onClick:function(){return p("bottom")}}),t.createElement(nk,{isSelected:"bottomright"===o,onClick:function(){return p("bottomright")}})),t.createElement(am,{direction:"column",justifyContent:"space-around"},t.createElement(yv,{onChange:function(e){switch(l(QC.find((function(t){return t.value===e}))),e){case"left":"top"===u.value&&i("topleft"),"center"===u.value&&i("left"),"bottom"===u.value&&i("bottomleft");break;case"center":"top"===u.value&&i("top"),"center"===u.value&&i("center"),"bottom"===u.value&&i("bottom");break;case"right":"top"===u.value&&i("topright"),"center"===u.value&&i("right"),"bottom"===u.value&&i("bottomright")}},value:c.value,label:c.label,icon:t.createElement(ZC,null)},QC.map((function(e){return t.createElement(yv.Item,{value:e.value,key:e.value},e.label)}))),t.createElement(yv,{onChange:function(e){switch(d(JC.find((function(t){return t.value===e}))),e){case"top":"left"===c.value&&i("topleft"),"center"===c.value&&i("top"),"right"===c.value&&i("topright");break;case"center":"left"===c.value&&i("left"),"center"===c.value&&i("center"),"right"===c.value&&i("right");break;case"bottom":"left"===c.value&&i("bottomleft"),"center"===c.value&&i("bottom"),"right"===c.value&&i("bottomright")}},value:u.value,label:u.label,icon:t.createElement(KC,null)},JC.map((function(e){return t.createElement(yv.Item,{value:e.value,key:e.value},e.label)}))))))}var tk=Gl(am).withConfig({displayName:"Container",componentId:"sc-ci11hg-0"})(["width:150px;height:92px;padding:5px;margin-right:",";background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";"],If.spacing5,If.gray25,If.gray100a,If.radiusMedium),nk=Gl.div.withConfig({displayName:"Spot",componentId:"sc-ci11hg-1"})(["width:24px;height:24px;background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";&:hover{background-color:",";cursor:pointer;}",""],If.gray10,If.gray100a,If.radiusSmall,If.gray25a,(function(e){return e.isSelected&&Nl(["border:2px solid ",";background:",";"],If.blue500,If.blue100)}));function rk(e){var n=e.color,o=e.label,i=e.onChangeValidation,a=e.onChange,c=NE(r(!0),2),l=c[0],s=c[1],u=function(e){s(e),i(e)};return t.createElement(PC,{label:o},t.createElement(am,null,t.createElement(ok,null,t.createElement(Nh,{value:n,icon:t.createElement("span",null,"#"),onChange:function(e){var t=function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)return"";var r=parseInt(n[1],16).toString(),o=parseInt(n[2],16).toString(),i=parseInt(n[3],16).toString();return"(".concat(r,", ").concat(o,", ").concat(i,")")}(e);t?(a(e),u(!0)):(a(null),u(!1))}}),!l&&t.createElement(ph.HelperText,{isInvalid:!l},"Please type a valid hex value")),t.createElement(ik,null,t.createElement(Nh,{type:"number",placeholder:"100",onChange:null,value:null,iconRight:t.createElement("span",null,"%"),isDisabled:!0}))))}var ok=Gl.div.withConfig({displayName:"FlexInputColor",componentId:"sc-1b7ygj6-0"})(["min-width:0;margin-right:",";"],If.spacing4),ik=Gl.div.withConfig({displayName:"FlexInput",componentId:"sc-1b7ygj6-1"})(["min-width:0;"]),ak=["Arial"],ck=["Regular"];function lk(e){var n,r,o=e.io,i=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(PC,{label:"Text"},t.createElement(Mv,{value:o.content,onChange:function(e){return i({type:"content",payload:{value:e,id:o.id}})}})),t.createElement(PC,{label:"Font"},t.createElement(yv,{value:o.font,label:o.font,onChange:function(e){return i({type:"font",payload:{value:e,id:o.id}})}},ak.map((function(e){return t.createElement(yv.Item,{value:e,key:e},e)})))),t.createElement(PC,{label:""},t.createElement(am,null,t.createElement(sk,null,t.createElement(yv,{value:o.fontType,label:o.fontType,onChange:function(e){return i({type:"fontType",payload:{value:e,id:o.id}})},isDisabled:!0},ck.map((function(e){return t.createElement(yv.Item,{value:e,key:e},e)})))),t.createElement(uk,null,t.createElement(Nh,{type:"number",value:null===(n=o.size)||void 0===n?void 0:n.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return i({type:"size",payload:{value:parseInt(e,10),id:o.id}})}})))),t.createElement(rk,{label:"Text color",onChange:function(e){return i({type:"color",payload:{value:e,id:o.id}})},onChangeValidation:function(e){return i({type:"isValid",payload:e})},color:o.color}),t.createElement(ek,{label:"Position",gravity:o.gravity,onChange:function(e){return i({type:"gravity",payload:{value:e,id:o.id}})}}),t.createElement(PC,{label:"Padding"},t.createElement(Nh,{type:"number",value:null===(r=o.padding)||void 0===r?void 0:r.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return i({type:"padding",payload:{value:parseInt(e,10),id:o.id}})}})),t.createElement(XC,{io:o,onDispatch:i}))}var sk=Gl.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],If.spacing4),uk=Gl.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function dk(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(HC,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(rk,{label:"Background",onChange:function(e){return r({type:"background",payload:{value:e,id:n.id}})},onChangeValidation:function(e){return r({type:"isValid",payload:e})},color:n.background}))}var pk=[{label:"Rectangle",path:"square",icon:t.createElement(fu,null)},{label:"Ellipse",path:"circle",icon:t.createElement(vu,null)}],fk=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(zC,null)}];function mk(e){var n,r=e.onChange,o=e.shape,i=null!==(n=pk.find((function(e){return e.path===o})))&&void 0!==n?n:fk.find((function(e){return e.path===o}));return t.createElement(PC,{label:"Path"},t.createElement(yv,IE({onChange:r,value:o},i),pk.map((function(e){return t.createElement(yv.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement(yv.Divider,null),fk.map((function(e){return t.createElement(yv.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}var hk=[{label:"Focus point",focus:"point",icon:t.createElement(uu,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(tx,null)}];function gk(e){var n=e.gravity,o=e.onChangeGravity,i=NE(r(!1),2),c=i[0],l=i[1],s=NE(r(null),2),u=s[0],d=s[1];a((function(){u||(n?f():p())}),[n,u]);var p=function(){var e=hk.find((function(e){return"point"===e.focus}));d(e)},f=function(){var e=hk.find((function(e){return"gravity"===e.focus}));d(e)};return t.createElement(t.Fragment,null,t.createElement(PC,{label:"Focus",helpText:"gravity"===(null==u?void 0:u.focus)?"Select the direction from where the transformation is being applied.":"Uses the predefined focus point of the asset."},t.createElement(yv,IE(IE({onChange:function(e){var t="gravity"===e,n=hk.find((function(t){return t.focus===e}));d(n),l(t),o(t?"center":null)}},u),{},{value:null==u?void 0:u.focus}),hk.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement(yv.Divider,null):null,t.createElement(yv.Item,{value:e.focus,icon:e.icon},e.label))})))),c&&t.createElement(ek,{label:"Gravity",gravity:n,onChange:o}))}function vk(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(mk,{shape:n.path,onChange:function(e){return r({type:"path",payload:{value:e,id:n.id}})}}),"clippingpath"!==n.path&&t.createElement(t.Fragment,null,t.createElement(HC,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(gk,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity})),"circle"===n.path&&t.createElement(qC,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return r({type:"blur",payload:{value:e,id:n.id}})}}))}function yk(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M4 5H20V7H4V5Z",fill:"#334E5C"}),t.createElement("path",{d:"M4 9H20V12H4V9Z",fill:"#334E5C"}),t.createElement("path",{d:"M20 14H4V19H20V14Z",fill:"#334E5C"}))}function bk(e){var n=e.io,r=e.onDispatch,o=jC(n.width);return t.createElement(t.Fragment,null,t.createElement(rk,{label:"Color",onChange:function(e){return r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){return r({type:"isValid",payload:e})},color:n.color}),t.createElement(PC,{label:"Border"},t.createElement(am,null,t.createElement(wk,null,t.createElement(Nh,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=LC(t,500);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(yk,null),iconRight:t.createElement("span",null,"px")})),t.createElement(xk,null,t.createElement(Nh,{placeholder:"Outside",onChange:null,value:null,iconRight:t.createElement(Cu,null),isDisabled:!0})))))}var wk=Gl.div.withConfig({displayName:"FlexInputColor",componentId:"sc-qgnlb2-0"})(["min-width:0;margin-right:",";"],If.spacing4),xk=Gl.div.withConfig({displayName:"FlexInput",componentId:"sc-qgnlb2-1"})(["min-width:0;"]);function Ek(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(HC,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(gk,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity}))}function Ck(e){var n=e.onDispatch,r=e.io;return t.createElement(qC,{label:BC(r.filter),min:-100,max:100,value:r.amount,onChange:function(e){return n({type:"amount",payload:{value:e,id:r.id}})}})}function kk(e){var n=e.onDispatch,r=e.io;return t.createElement(qC,{label:"Blur",min:0,max:100,value:r.radius,onChange:function(e){return n({type:"radius",payload:{value:e,id:r.id}})}})}function Sk(e){var n=e.io,r=e.onDispatch;return t.createElement(rk,{label:"Color",onChange:function(e){r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){r({type:"isValid",payload:e})},color:n.color})}function _k(e){var n=e.io,r=e.onDispatch,o=jC(n.padding);return t.createElement(PC,{label:"Padding"},t.createElement(am,null,t.createElement(Ik,null,t.createElement(Nh,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=LC(t,3e3);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(yk,null),iconRight:t.createElement("span",null,"px")}))))}var Ik=Gl.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],If.spacing4);function Bk(e){var n=e.io,r=e.onDispatch,o=["contrast","brightness","sharpness","saturation"].includes(n.filter),i=n.transform||n.overlay||n.filter;return t.createElement(t.Fragment,null,t.createElement(MC,{transformation:i,onChange:function(e){return r({type:"transformation",payload:{group:e.group,value:e.transformation,id:n.id}})}}),("fit"===n.transform||"scale"===n.transform)&&t.createElement(HC,{width:n.width,height:n.height,onDispatch:r,id:n.id}),"fill"===n.transform&&t.createElement(Ek,{io:n,onDispatch:r}),"background"===n.transform&&t.createElement(Sk,{io:n,onDispatch:r}),"rotate"===n.transform&&t.createElement(XC,{io:n,onDispatch:r}),"border"===n.transform&&t.createElement(bk,{io:n,onDispatch:r}),"extend"===n.transform&&t.createElement(dk,{io:n,onDispatch:r}),"crop"===n.transform&&t.createElement(vk,{io:n,onDispatch:r}),"trim"===n.transform&&t.createElement(_k,{io:n,onDispatch:r}),"text"===n.overlay&&t.createElement(lk,{io:n,onDispatch:r}),"blur"===n.filter&&t.createElement(kk,{io:n,onDispatch:r}),"opacity"===n.filter&&t.createElement(Ck,{io:n,onDispatch:r}),o&&t.createElement(qC,{label:BC(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}}))}var Tk=[{label:"Auto (recomended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],Nk=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function Dk(e){var n,r,o=e.options,i=e.onDispatch,a=(null===(n=Tk.find((function(e){return e.value===o.format})))||void 0===n?void 0:n.label)||"Select Format",c=(null===(r=Nk.find((function(e){return e.value===String(o.quality)})))||void 0===r?void 0:r.label)||"Select Quality";return t.createElement(t.Fragment,null,t.createElement(PC,{label:"Format",helpText:"Set the output format"},t.createElement(yv,{onChange:function(e){return i({type:"format",payload:e})},label:a,value:o.format},Tk.map((function(e){return t.createElement(yv.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(PC,{label:"Quality"},t.createElement(yv,{onChange:function(e){return i({type:"quality",payload:Number(e)})},label:c,value:String(o.quality)},Nk.map((function(e){return t.createElement(yv.Item,{value:e.value,key:e.label},e.label)})))))}var zk=function(e){var n=e.preset,o=e.onDispatch,i=NE(r([]),2),a=i[0],c=i[1],l=NE(r(!1),2),s=l[0],u=l[1];return t.createElement(Og,null,n.content.io.map((function(e){var n=a.includes(e.id),r=e.transform||e.overlay||e.filter,i=BC(r)||"New transformation",l=Pk(e);return t.createElement(t.Fragment,{key:e.id},t.createElement(Og.Item,{subtext:l,thumbnail:t.createElement(wg,{variant:"clean",icon:t.createElement(TC,{type:r}),shape:"square"}),rightElements:t.createElement(Ok,{isExpanded:n,onDeleteClick:function(t){return function(e,t){e.stopPropagation(),o({type:"deleteTransformation",payload:{id:t}})}(t,e.id)}}),onClick:function(){return function(e){a.includes(e)?c((function(t){return t.filter((function(t){return t!==e}))})):c((function(t){return[].concat(DE(t),[e])}))}(e.id)}},i),n&&t.createElement(Bk,{io:e,onDispatch:o,key:"".concat(e.id,"-transformation")}),t.createElement(Og.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(Og.Item,{key:"add-button",onClick:function(){var e=ex();o({type:"addTransformation",payload:{id:e}}),c((function(t){return[].concat(DE(t),[e])}))},thumbnail:t.createElement(wg,{icon:t.createElement(Gs,null),shape:"square"})},"Add transformation"),t.createElement(Og.Divider,{key:"add-button-divider"}),t.createElement(Og.Item,{key:"advanced-button",subtext:"Format: ".concat(n.content.format.toUpperCase()||"Auto"," • Quality: ").concat(n.content.quality),thumbnail:t.createElement(wg,{variant:"clean",icon:t.createElement(TC,{type:"advanced"}),shape:"square"}),rightElements:s?t.createElement(Tu,null):t.createElement(Nu,null),onClick:function(){u(!s)}},"Output options"),s&&t.createElement(Dk,{options:n.content,onDispatch:o,key:"advanced-options"}))},Pk=function(e){var t="Focus Point";e.gravity&&(t=BC(e.gravity));var n=e.width&&e.height?"".concat(e.width," × ").concat(e.height," px "):"",r=t?"Focus: ".concat(t):"",o=e.color?"Color: #".concat(e.color):"",i=e.background?"Background: #".concat(e.background):"",a=e.path?"Shape: ".concat(e.path):"",c=e.blur?"Blur: ".concat(e.blur):"",l=e.amount?"Amount: ".concat(e.amount):"";switch(e.transform||e.filter){case"fill":return"".concat(n," ").concat(r&&n&&"• "+r);case"background":return o;case"border":return"".concat(o," • Width: ").concat(e.width,"px");case"crop":return"".concat(n," • ").concat(a," ").concat(i&&"• "+i," ").concat(c&&"• "+c);case"extend":return"".concat(n," ").concat(i&&"• "+i);case"fit":case"scale":return n;case"flip":return"Flip vertically";case"mirror":return"Flip horizontally";case"rotate":return"Angle: ".concat(e.angle||0,"°");case"opacity":case"contrast":case"brightness":case"blur":case"sharpness":case"saturation":return l;default:return""}},Ok=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(am,{alignItems:"center"},t.createElement(bm,{content:"Remove transformation"},t.createElement(Xf,{variant:"clean",icon:t.createElement(Ds,{fill:If.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(Tu,null):t.createElement(Nu,null))};function Ak(e){var n,r,o,i=e.preset,a=e.onDispatch,c=null!==(n=null===(r=i.content)||void 0===r||null===(o=r.io)||void 0===o?void 0:o.length)&&void 0!==n?n:0;return t.createElement(t.Fragment,null,t.createElement(Mk,null,t.createElement(Lk,null,"Transformations"),t.createElement(jk,null,1===c?"".concat(c," transformation applied"):c>1?"".concat(c," transformations applied"):"No transformations")),t.createElement(Fk,null,t.createElement(zk,{preset:i,onDispatch:a})))}var Rk,Mk=Gl.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],If.spacing6,If.white,If.spacing4),Fk=Gl.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),Lk=Gl.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],If.gray800),jk=Gl.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],If.gray600);!function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(Rk||(Rk={}));var Hk=function(){return t.createElement(Vk,null,t.createElement(Wk,null),t.createElement(Yk,null,t.createElement(qk,{large:!0}),t.createElement(qk,null)))},Uk=function(){return t.createElement(Gk,null)},Vk=Gl.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),$k=ql(["0%{background-color:","}100%{background-color:","}"],If.gray50a,If.gray100a),Wk=Gl.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],$k),Yk=Gl.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],If.spacing4),qk=Gl.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],If.spacing3,(function(e){return e.large?"110px":"60px"}),If.radiusSmall,$k),Gk=Gl.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],$k),Xk=function(e){var n=e.onPresetSelected,r=e.activeTab,o=e.presets,i=e.preset,c=e.dispatch,l=e.selectedPreset,s=e.isLoading,u=e.baseURL,d=e.canViewPresets,p=e.canViewTransformations;return a((function(){var e,t;r!==Rk.transformations||null!=i&&null!==(e=i.content)&&void 0!==e&&null!==(t=e.io)&&void 0!==t&&t.length||c({type:"init"})}),[r,c,i]),t.createElement(Kk,{direction:"column"},r===Rk.presets?d?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement(Hk,{key:"preset-skeleton-".concat(e)})}))):t.createElement(IC,{baseURL:u,presets:o,onPresetSelected:n,selectedPreset:l}):null:p?t.createElement(Zk,null,t.createElement(Ak,{preset:i,onDispatch:c})):null)},Kk=Gl(am).withConfig({displayName:"SidebarContainer",componentId:"sc-n1gktg-0"})(["width:336px;overflow-y:auto;overflow-x:hidden;background:",";flex:none;box-shadow:-1px 0px 0px rgba(0,34,51,0.1);height:100%;"],If.white),Zk=Gl.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],If.spacing6);function Jk(e){var n=e.url,r=c(null);return l((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(Qk,null,t.createElement(eS,null,t.createElement(tS,null,t.createElement(zu,null)),t.createElement(nS,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(oS,null,n))),t.createElement(rS,null,t.createElement(bm,{content:"Copy URL"},t.createElement(Qw.CopyToClipboard,{text:n,onCopy:function(){mv({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(Xf,{variant:"clean",icon:t.createElement(Js,null),"aria-label":"Copy to clipboard"}))),t.createElement(fC,{alwaysVisible:!0,presetURL:n})))}var Qk=Gl.div.withConfig({displayName:"Container",componentId:"sc-ucc5ld-0"})(["height:50px;background-color:",";border-radius:",";display:flex;align-items:center;justify-content:space-between;box-shadow:",";min-width:0;min-height:0;"],If.white,If.radiusLarge,If.elevationStatic),eS=Gl.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),tS=Gl.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],If.spacing5,If.spacing4,If.gray600),nS=Gl.div.withConfig({displayName:"LinkContainer",componentId:"sc-ucc5ld-3"})(["color:",";font-size:",";cursor:pointer;overflow:scroll;white-space:nowrap;width:100%;height:100%;display:flex;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],If.gray800,If.fontSize100),rS=Gl.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],If.spacing2),oS=Gl.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]);function iS(e){var n=e.url,i=e.canViewTransformations,c=e.hideBottomBar,l=e.activeTab,s=e.onBack,u=e.onDone,d=e.onApply,p=e.onShowTransformations,f=e.hasActiveChanges,m=NE(r(!0),2),h=m[0],g=m[1],v=o((function(){return function(e){if(!e)return"";var t=new URL(e);return t.searchParams.set("".concat(Date.now()),""),t.toString()}(n)}),[n]);return a((function(){g(!0)}),[n]),t.createElement(dS,null,t.createElement(pS,{justifyContent:"space-between",alignItems:"center"},t.createElement(fS,null,t.createElement(Xf,{variant:"clean",icon:t.createElement(cu,null),"aria-label":"Go back",onClick:s})),l===Rk.presets&&i&&t.createElement(vS,{variant:"clean",onClick:p,icon:t.createElement(NC,null)},"Transform"),l===Rk.transformations&&("function"==typeof d&&f?t.createElement(mS,null,t.createElement(vS,{variant:"primary",onClick:d},"Apply transformations")):t.createElement(vS,{variant:"primary",onClick:u},"Done"))),t.createElement(gS,{hideBottomBar:c},n&&t.createElement(uS,{src:v,alt:"",isImageLoading:h,onLoad:function(){g(!1)}}),h&&t.createElement(Uk,null)),!c&&t.createElement(hS,null,t.createElement(Jk,{url:n})))}var aS,cS,lS,sS,uS=Gl.img.withConfig({displayName:"Image",componentId:"sc-dpw9jp-0"})(["display:",";max-width:100%;max-height:100%;background:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(If.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),dS=Gl.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-1"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),pS=Gl(am).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-2"})(["height:90px;width:100%;"]),fS=Gl.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-3"})(["margin-left:",";"],If.layoutSpacing1),mS=Gl.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-4"})(["display:flex;gap:",";"],If.spacing4),hS=Gl.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],If.spacing5),gS=Gl.div.withConfig({displayName:"ImageWrapper",componentId:"sc-dpw9jp-6"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:0;position:relative;",";"],(function(e){return e.hideBottomBar&&Nl(["margin-bottom:",";"],If.spacing8)})),vS=Gl(Xf).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-7"})(["float:right;margin-right:",";"],If.layoutSpacing1),yS=function(e){return e.data},bS=function(e){if(e.response){var t=e.response.data;if(null!=t&&t.error)throw t.error;throw t}if(e.request)throw new Error("Server is not responding, please try again");throw e.message},wS=null===(aS=document.querySelector('meta[name="x-csrf-token"]'))||void 0===aS?void 0:aS.getAttribute("content"),xS={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(cS=window)||void 0===cS?void 0:cS.csrf)||(null===(lS=window)||void 0===lS||null===(sS=lS.Bynder)||void 0===sS?void 0:sS.csrf_token)||wS},ES=SE.create({headers:xS}),CS=function(){return"/v7/dat/presets/",ES.get("/v7/dat/presets/",undefined).then(yS).catch(bS)},kS={id:"",transform:null,overlay:null,filter:null},SS={name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0};function _S(e,t){var n,r=function(){return e.content.io.map((function(e){return IE({},e)}))};switch(t.type){case"init":return SS;case"edit":return IE(IE({isValid:!0},t.payload),{},{content:IE(IE({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return IE(IE({},e),{},{id:ex()})}))})});case"addTransformation":return IE(IE({},e),{},{content:IE(IE({},e.content),{},{io:[].concat(DE(r()),[IE(IE({},kS),{},{id:t.payload.id,transform:"fill"})])})});case"deleteTransformation":return IE(IE({},e),{},{content:IE(IE({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return IE(IE({},e),{},(BE(n={},t.type,t.payload),BE(n,"content",IE(IE({},e.content),{},{io:r()})),n));case"format":case"quality":return IE(IE({},e),{},{content:IE(IE({},e.content),{},BE({io:r()},t.type,t.payload))});case"transformation":return IE(IE({},e),{},{content:IE(IE({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?IE({},e):IE(IE({},IS(t.payload.value)),{},BE({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return IE(IE({},e),{},{content:IE(IE({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?IE({},e):IE(IE({},e),{},BE({},t.type,t.payload.value))}))})});default:return e}}var IS=function(e){switch(e){case"fill":case"fit":case"extend":case"scale":return IE(IE({},kS),{},{height:1e3,width:1e3});case"crop":return IE(IE({},kS),{},{height:1e3,width:1e3,path:"square"});case"background":return IE(IE({},kS),{},{color:"FFF"});case"border":return IE(IE({},kS),{},{color:"FFF",width:1});case"rotate":return IE(IE({},kS),{},{angle:0});case"opacity":return IE(IE({},kS),{},{amount:100});case"blur":return IE(IE({},kS),{},{radius:0});case"text":return IE(IE({},kS),{},{content:"Add Text Here",font:"Arial",size:64,color:"FFF",gravity:"center",padding:20,angle:0});case"brightness":case"contrast":case"sharpness":case"saturation":return IE(IE({},kS),{},{amount:0})}},BS=Gl.div.withConfig({displayName:"FlexContainer",componentId:"sc-inplsu-0"})(["display:flex;min-height:0;height:100%;"]);Gl.div.withConfig({displayName:"NameIconContainer",componentId:"sc-i27a7s-0"})(["display:flex;min-width:0;"]),Gl.div.withConfig({displayName:"DateContainer",componentId:"sc-i27a7s-1"})(["width:385px;font-size:",";color:",";"],If.fontSize75,If.gray600),Gl.div.withConfig({displayName:"Name",componentId:"sc-i27a7s-2"})(["font-size:",";color:",";flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],If.fontSize100,If.gray800),Gl.div.withConfig({displayName:"DescriptionContainer",componentId:"sc-i27a7s-3"})(["display:flex;flex-direction:column;flex:1;min-width:0;padding:0 ",";"],If.spacing4),Gl.div.withConfig({displayName:"Description",componentId:"sc-i27a7s-4"})(["font-size:",";color:",";"],If.fontSize75,If.gray600),Gl.div.withConfig({displayName:"Actions",componentId:"sc-i27a7s-5"})(["display:flex;margin-left:",";justify-content:end;"],If.spacing4),Gl.tr.withConfig({displayName:"Container",componentId:"sc-i27a7s-6"})(["height:72px;&:not(:last-child){border-bottom:solid 1px ",";}"],If.gray50),Gl.th.withConfig({displayName:"Th",componentId:"sc-945e4m-0"})(["color:",";font-size:",";"],If.gray800,If.fontSize100),Gl.table.withConfig({displayName:"Table",componentId:"sc-945e4m-1"})(["width:100%;"]),Gl.header.withConfig({displayName:"Header",componentId:"sc-405vyk-0"})(["position:sticky;z-index:1;top:var(--pageHeaderTopPosition);display:flex;gap:",";justify-content:space-between;align-items:center;margin-bottom:",";padding:"," ",";background:",";"],If.spacing4,If.spacing7,If.spacing5,If.spacing6,If.white),Gl.h3.withConfig({displayName:"Title",componentId:"sc-405vyk-1"})([""," margin:0;"],im.uiTextL);function TS(e){var n,o=e.transformBaseUrl,i=e.transformation,c=e.setTransformation,l=e.closeDat,s=Fa(),u=r(),d=u[0],p=u[1],f=r(),m=f[0],h=f[1];a((function(){var e=s.querySelector(".cv-root");e&&p(e)}),[s]);var v=function(e,t){e&&i&&c({url:e,preset:t,asset:i.asset}),l()},y=function(e,t){w(t)&&i?h({url:e,preset:t,asset:i.asset}):v(e,t)},b=function(){return h(void 0)},w=function(e){return e.content.io.length>0};return d?g(t.createElement(zS,null,t.createElement(PS,{baseURL:o,canViewPresets:!1,canViewTransformations:!0,hideBottomBar:!0,onApply:v,onDone:y,onBack:y,initialTransformations:null===(n=null==i?void 0:i.preset)||void 0===n?void 0:n.content.io}),t.createElement(ov,{isOpen:!!m,title:"Transformations not yet applied",container:d,onClose:b,actionPrimary:t.createElement(Xf,{variant:"primary",onClick:function(){v(null==m?void 0:m.url,null==m?void 0:m.preset),b()}},"Apply transformations"),actionSecondary:t.createElement(Xf,{variant:"secondary",onClick:b},"Cancel"),actionTertiary:t.createElement(Xf,{variant:"secondary",onClick:function(){c(void 0),b(),l()}},"Discard changes")},"Transformations not yet applied. Do you want to apply transformations now, or discard changes?")),d):null}var NS,DS,zS=Gl.div(NS||(NS=_a(["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"],["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"])),If.white,If.radiusBase),PS=Gl((function(e){var n=e.baseURL,i=e.canViewPresets,l=e.canViewTransformations,s=e.hideBottomBar,u=void 0!==s&&s,d=e.initialTransformations,p=e.onDone,m=e.onApply,h=e.onBack,g=i?Rk.presets:Rk.transformations,v=NE(r(n),2),y=v[0],b=v[1],w=NE(r(g),2),x=w[0],E=w[1],C=NE(r(""),2),k=C[0],S=C[1],_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=IE(IE({},SS),{},{content:IE(IE({},SS.content),{},{io:t})}),o=NE(r([]),2),i=o[0],l=o[1],s=NE(r(!1),2),u=s[0],d=s[1],p=NE(f(_S,n),2),m=p[0],h=p[1],g=c(!0);a((function(){return e&&(d(!0),v()),function(){g.current=!1}}),[e]);var v=function(){CS().then((function(e){g.current&&(l(e.presets),d(!1))})).catch((function(e){g.current&&(d(!1),mv({title:e.toString(),variant:"error",isPersistent:!0}))}))};return{presets:i,setPresets:l,preset:m,dispatch:h,isLoading:u,defaultValues:n}}(i,d),I=_.presets,B=_.preset,T=_.dispatch,N=_.isLoading,D=_.defaultValues,z=B.content.io.length>0,P=function(e,t,n){var r=this,i=c(null),l=c(0),s=c(null),u=c([]),d=c(),p=c(),f=c(e),m=c(!0);a((function(){f.current=e}),[e]);var h=!t&&0!==t&&"undefined"!=typeof window;t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,l.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!m.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||y&&e-l.current>=b},a=function(t){return s.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},c=function e(){var r=Date.now();if(o(r))return a(r);if(m.current){var c=t-(r-i.current),s=y?Math.min(c,b-(r-l.current)):c;n(e,s)}},w=function(){var a=Date.now(),f=o(a);if(u.current=[].slice.call(arguments),d.current=r,i.current=a,f){if(!s.current&&m.current)return l.current=i.current,n(c,t),g?e(i.current):p.current;if(y)return n(c,t),e(i.current)}return s.current||n(c,t),p.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,u.current=i.current=d.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?a(Date.now()):p.current},w}),[g,y,t,b,v,h]);return w}((function(){if(B.content.io.length>0){var e=function(e,t){var n=[],r=e.content,o=r.io,i=r.format,a=r.quality;return o.forEach((function(e){n.push(function(e){return{key:"io",value:Object.keys(e).filter((function(t){return"id"!==t&&null!==e[t]})).map((function(t){return"".concat(t,":").concat(e[t])})).join(",")}}(e))})),i&&n.push({key:"format",value:i}),a&&a!==t.content.quality&&n.push({key:"quality",value:a.toString()}),n.map((function(e){var t=e.key,n=e.value;return"".concat(t,"=").concat(n)})).join("&")}(B,D);b("".concat(n,"?").concat(e))}else b(n)}),500);return a((function(){return P(),function(){return P.cancel()}}),[P,B,n]),a((function(){i||l&&E(Rk.transformations)}),[i,l]),t.createElement(BS,null,t.createElement(iS,{url:y,canViewTransformations:l,activeTab:x,onApply:m?function(){return m(y,B)}:void 0,onBack:function(){return h(y,B)},hasActiveChanges:z,onDone:function(){i||z?i&&E(Rk.presets):p(y,B)},onShowTransformations:function(){l&&E(Rk.transformations)},hideBottomBar:u}),t.createElement(Xk,{onPresetSelected:function(e){b(""!==e?n.split("/transform")[0]+"/transform/".concat(e,"/").concat(gC(n),"/"):n),S(e)},activeTab:x,presets:I,preset:B,dispatch:T,selectedPreset:k,isLoading:N,baseURL:n,canViewPresets:i,canViewTransformations:l}))}))(DS||(DS=_a(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),OS=n(null);function AS(e){var n=r(),i=n[0],a=n[1],c=r(""),l=c[0],s=c[1],u=function(e,t){s(e),a((function(n){return{preset:(null==n?void 0:n.asset.id)===t.id?n.preset:void 0,url:e,asset:t}}))},d=o((function(){return{transformation:i,setTransformation:a,openDat:u,closeDat:function(){return s("")}}}),[i]);return t.createElement(OS.Provider,{value:d},e.children,l&&t.createElement(TS,{transformBaseUrl:l,transformation:i,setTransformation:a,closeDat:function(){return s("")}}))}function RS(){var e=i(OS);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function MS(e){var n,o,i,c,l=e.transformBaseUrl,s=e.asset,u=e.toggleDropdown,d=RS(),p=d.transformation,f=d.openDat,m=r(),h=m[0],g=m[1],v=null!==(c=null===(i=null===(o=null===(n=null==p?void 0:p.preset)||void 0===n?void 0:n.content)||void 0===o?void 0:o.io)||void 0===i?void 0:i.length)&&void 0!==c?c:0;return a((function(){if(p){var e=p.url,t="io=transform:fill,width:40,height:40";e.includes("io=transform:fill")&&g(e.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/,t)),g("".concat(e,"&").concat(t))}}),[p]),l?t.createElement(t.Fragment,null,t.createElement(Og.Divider,null),t.createElement(LS,{thumbnail:p&&0!==v?t.createElement(wg,{imageUrl:h,"data-testid":"thumbnail-image"}):t.createElement(wg,{icon:t.createElement(mu,null),"data-testid":"crop-icon"}),rightElements:t.createElement(Pu,null),onClick:function(){u(),f(l,s)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var FS,LS=Gl(Og.Item)(FS||(FS=_a(["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"],["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"]))),jS=n(null);function HS(e){var n=r([]),i=n[0],c=n[1],l=r(),s=l[0],u=l[1],d=function(e){var t=this,n=r([]),o=n[0],i=n[1],c=ky(),l=c.selectionMode,s=c.language,u=Tb(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,Ca(t,void 0,void 0,(function(){var e,t,n;return ka(this,(function(o){switch(o.label){case 0:return r.length?[4,Rb(r,u,s)]:[3,2];case 1:e=o.sent(),d||Ty(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),o}(s),p=Sy(),f=RS().transformation;function m(){c([])}function h(e){c((function(t){var n=e.filter((function(e){return!US(t,e)}));return Sa(Sa([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function g(e){var t;"MultiSelect"!==p?(t=e[0],i.some((function(e){return e.value.id===t.id}))?c([]):c([{type:"asset",value:t}])):c((function(t){var n=e.filter((function(e){return!US(t,e)})),r=e.filter((function(e){return US(t,e)}));return Sa(Sa([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function v(e){c((function(t){return US(t,e)?t.filter((function(t){return t.value.id!==e.id})):Sa(Sa([],t,!0),[{type:"collection",value:e}],!1)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){h(d)}),[d]),a((function(){f&&(m(),h([null==f?void 0:f.asset]))}),[f]);var y=o((function(){return{selection:i,preselectedAssetIds:s,clear:m,selectAssets:h,toggleAssets:g,toggleCollection:v}}),[i]);return t.createElement(jS.Provider,{value:y},e.children)}function US(e,t){return e.some((function(e){return e.value.id===t.id}))}function VS(){var e=i(jS);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function $S(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,c=e.style,l=Sy(),s=Ta()[1],u=VS(),d=ky().hideExternalAccess;return t.createElement("div",{id:r.id,style:c,className:sy("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(Vm,{contextAction:!d&&t.createElement(Vm.ContextActionButton,{"aria-label":Hv("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(Ls,null)),selectButtonAriaLabel:Hv(a?"Deselect":"Select"),onSelect:"MultiSelect"===l?function(e){e.stopPropagation(),u.toggleCollection(r)}:void 0,isSelected:a,onClick:function(){return s({page:"collection",collection:r})},"aria-selected":a,"data-testid":"asset-card"},t.createElement(Vm.Frame,null,t.createElement(Vm.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(Vm.Img,{key:e,src:e,alt:r.name})})))),t.createElement(Vm.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},yy(r.assetCount,Hv("{} asset"),Hv("{} assets")))))}function WS(e){var t=r(void 0),n=t[0],o=t[1],i=c(void 0);function l(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var r=n.getBoundingClientRect();o({width:r.width,height:r.height,scrollWidth:n.scrollWidth})}}))}return a((function(){l();var e=function(){return l()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:l}}function YS(e,t){if(!e)throw new Error("Invariant failed")}function qS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GS(){return GS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GS.apply(this,arguments)}function XS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var KS=new Map,ZS=new Map,JS=new Map,QS=0;function e_(e,t,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var r=n,o=r.root,i=r.rootMargin,a=r.threshold;if(KS.has(e)&&YS(!1),e){var c=function(e){return e?JS.has(e)?JS.get(e):(QS+=1,JS.set(e,QS.toString()),JS.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),l=ZS.get(c);l||(l=new IntersectionObserver(n_,n),c&&ZS.set(c,l));var s={callback:t,element:e,inView:!1,observerId:c,observer:l,thresholds:l.thresholds||(Array.isArray(a)?a:[a])};return KS.set(e,s),l.observe(e),s}}function t_(e){if(e){var t=KS.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&KS.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&JS.delete(o),r&&!i&&r.disconnect(),KS.delete(e)}}}function n_(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=KS.get(r);if(o&&n>=0){var i=o.thresholds.some((function(e){return o.inView?n>e:n>=e}));void 0!==t&&(i=i&&t),o.inView=i,o.callback(i,e)}}))}var r_=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qS(XS(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),qS(XS(t),"node",null),qS(XS(t),"handleNode",(function(e){t.node&&(t_(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),qS(XS(t),"handleChange",(function(e,n){(e!==t.state.inView||e)&&t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.node||YS(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(t_(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(t_(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(t_(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;e_(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r})}},o.render=function(){var e=this.state,t=e.inView,n=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:t,entry:n,ref:this.handleNode});var r=this.props,o=r.children,i=r.as,a=r.tag,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]);return s(i||a||"div",GS({ref:this.handleNode},c),o)},r}(m);qS(r_,"displayName","InView"),qS(r_,"defaultProps",{threshold:0,triggerOnce:!1});var o_={inView:!1,entry:void 0};function i_(e){var n=function(e){void 0===e&&(e={});var t=c(),n=r(o_),o=n[0],i=n[1];return[u((function(n){t.current&&(t_(t.current),e.triggerOnce||i(o_)),n&&e_(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&t_(n)}),e),t.current=n}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]),o.inView,o.entry]}(),o=n[0],i=n[1];return a((function(){i&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[i]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:o,"data-testid":"loading-element"},t.createElement(gb,{className:sy(!i&&"hidden")})))}function a_(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function c_(e){return t.createElement(m_,null,t.createElement(h_,null,t.createElement(a_,null),t.createElement(g_,null)),t.createElement(v_,null,Hv("No results found")),t.createElement(y_,null,Hv("Try adjusting the filter to find assets.")),t.createElement(b_,{variant:"primary",title:Hv("Reset filters"),onClick:e.onReset},Hv("Reset filters")))}var l_,s_,u_,d_,p_,f_,m_=Gl.div(l_||(l_=_a(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),h_=Gl.div(s_||(s_=_a(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),If.gray25),g_=Gl(Hs)(u_||(u_=_a(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),If.spacing2,If.gray300),v_=Gl.h1(d_||(d_=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),If.spacing6,If.fontSize400),y_=Gl.span(p_||(p_=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),If.spacing5,If.colorTextDisabled),b_=Gl(Xf)(f_||(f_=_a(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),If.spacing7);function w_(e){var n,o,i=r(null),a=i[0],c=i[1],l=WS(a).dimensions,s=VS().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=Pa().setSearch,d=e.connection,p=d.data,f=d.isLoading,m=d.loadMore,h=d.hasNextPage,g=void 0!==l?Math.ceil(l.height/184):0,v=void 0!==l?Math.round((l.width-32)/204):0;return t.createElement("div",{role:"listbox",className:"card-list",ref:function(e){c(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(wy,{rows:g,columns:v,title:t.createElement("div",{className:"mt-2 text-sm"}," ")}),"Loaded"===p.tag&&0===(null===(n=p.value)||void 0===n?void 0:n.collections.nodes.length)&&t.createElement(c_,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(i_,{hasNextPage:h,isLoading:f,loadMore:m},null===(o=p.value)||void 0===o?void 0:o.collections.nodes.map((function(e,n){return t.createElement($S,{key:e.id,isSelected:s.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}function x_(){var e=Oa("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=Tb(),i=r({tag:"Loading",value:null}),c=i[0],l=i[1],s=!1,u=function(t){return Ca(n,void 0,void 0,(function(){var n,r;return ka(this,(function(i){switch(i.label){case 0:return l((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,Py("\nquery getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {\n collections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\n nodes {\n id\n name\n assetCount\n thumbnailUrls\n url\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}",xa(xa({},e),{searchTerm:null!==(r=e.searchTerm)&&void 0!==r?r:null,after:null!=t?t:null}),o)];case 1:return n=i.sent(),s||(Ty(n)?l({tag:"Failure",value:n.error}):d(n,t)),[2]}}))}))},d=function(e,t){p()&&t?l((function(t){var n,r,o=null!==(r=null===(n=p(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{collections:xa(xa({},e.value.collections),{nodes:Sa(Sa([],o,!0),e.value.collections.nodes,!0)})}}})):l({tag:"Loaded",value:e.value})},p=function(e){var t,n=null!=e?e:c;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return u(),function(){s=!0}}),[e.searchTerm,e.orderBy]),{data:c,executeQuery:function(){return u()},isLoading:!c||"Loading"===c.tag,loadMore:function(){var e;return u(null===(e=p())||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(t=p())||void 0===t?void 0:t.pageInfo.hasNextPage)}}({searchTerm:n,orderBy:ba("collections")[0]});return a((function(){i.isLoading||o(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(iy,{error:new Error(i.data.value),onRetry:i.executeQuery}):t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto"},t.createElement("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},i.data.value&&t.createElement("span",{className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},yy(i.data.value.collections.totalCount,Hv("{} collection"),Hv("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(hy,{options:["CREATED_AT","NAME"]}),t.createElement(ay,null)),t.createElement(w_,{connection:i}))}var E_=n(null);function C_(e){var n=e.children,i=e.hideLimitedUse,c=void 0!==i&&i,l=r([]),s=l[0],u=l[1],d=r([]),p=d[0],f=d[1],m=r([]),h=m[0],g=m[1],v=r(),y=v[0],b=v[1],w=r({}),x=w[0],E=w[1];function C(e){u((function(t){return k_(t,e)}))}function k(e){u((function(t){return S_(t,e)}))}function S(e){f((function(t){return k_(t,e.id)})),E((function(t){var n;return xa(xa({},t),((n={})[e.id]=e,n))}))}function _(e){f((function(t){return S_(t,e.id)})),E((function(t){var n=t,r=e.id;return Ea(n,["symbol"==typeof r?r:r+""])}))}function I(e){g((function(t){return k_(t,e)}))}function B(e){g((function(t){return S_(t,e)}))}function T(){u([]),f([]),E({}),g([])}a((function(){b(!c&&void 0)}),[c]);var N=p.map((function(e){return x[e]})),D=o((function(){return{assetTypes:s,metaproperties:N,tags:h,isLimited:y,addAssetType:C,removeAssetType:k,addMetaproperty:S,removeMetaproperty:_,addTag:I,removeTag:B,clear:T}}),[s,N,h,y]);return t.createElement(E_.Provider,{value:D},n)}function k_(e,t){return e.includes(t)?e:Sa(Sa([],e,!0),[t],!1)}function S_(e,t){return e.filter((function(e){return e!==t}))}function __(){var e=i(E_);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function I_(e){return Hv({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function B_(e){switch(e){case"AUDIO":return qs;case"DOCUMENT":return nu;case"IMAGE":return yu;case"VIDEO":return Ys;case"ARCHIVE":return Xs}}function T_(e){return t.createElement(D_,{icon:t.createElement(Iu,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right",isVisible:e.isVisible})}var N_,D_=Gl(Xf)(N_||(N_=_a(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"])),(function(e){return!e.isVisible&&"\n\t\tdisplay: none;\n\t"}));function z_(e){return t.createElement(O_,{icon:t.createElement(_u,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left",isVisible:e.isVisible})}var P_,O_=Gl(Xf)(P_||(P_=_a(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"])),(function(e){return!e.isVisible&&"\n\t\tdisplay: none;\n\t"}));function A_(e){var n=r(0),o=n[0],i=n[1],l=c(null),s=WS(l.current),u=s.dimensions,d=s.remeasure,p=null!==l.current?l.current.scrollWidth-l.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(l.current)}),[e.children,l.current]),a((function(){f||i(0)}),[f]);var m=o>0,h=p>5&&o!==p;return t.createElement("div",{className:sy("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(z_,{isVisible:m,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:l},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-o,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(T_,{isVisible:h,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function R_(e){var n=sy("bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex\n\t\t items-center justify-center px-3 rounded-full select-none shadow-border\n\t\t text-sm text-white transition-color",e.className);return t.createElement("div",{className:n,onClick:e.onClick,onKeyDown:function(t){return function(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function M_(e){return t.createElement(R_,{className:"mr-2 fade-in-down","data-testid":"selected-filter:".concat(e.title)},e.icon,t.createElement("span",{className:"max-w-32 truncate",title:e.title},e.title),t.createElement(Bu,{onClick:e.onClick,title:Hv("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function F_(){var e=__(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(j_,{variant:"clean",isSmall:!0,onClick:e.clear},Hv("Clear filters"));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(A_,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=B_(n);return t.createElement(M_,{key:n,onClick:function(){return e.removeAssetType(n)},title:I_(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(M_,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(M_,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var L_,j_=Gl(Xf)(L_||(L_=_a(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),H_=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function U_(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return H_.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function V_(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function $_(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=ky(),a=i.hideExternalAccess,c="SingleSelectFile"===i.selectionMode&&n;return!c&&a?null:c||a?c&&a?t.createElement(Vm.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(mu,null)):t.createElement(Lg,{trigger:function(e){var n=e.isOpen,r=Ea(e,["isOpen"]);return t.createElement(Vm.ContextActionButton,xa({"aria-label":"Menu",isPressed:n},r),t.createElement(Du,null))},isClosedOnScroll:!0},t.createElement(Lg.Item,{icon:t.createElement(Ls,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Lg.Divider,null),t.createElement(Lg.Item,{icon:t.createElement(mu,null),onClick:o},"New transformation")):t.createElement(Vm.ContextActionButton,{"aria-label":Hv("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(Ls,null))}var W_,Y_,q_,G_,X_=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){return{name:e.label,value:e.options.map((function(e){return e.label})).join(", ")}})),r=t.map((function(e){var t=e.name,n=e.value,r="Date"===t?function(e,t,n){wd(2,arguments);var r=String(t),o=n||{},i=o.locale||Ad,a=i.options&&i.options.firstWeekContainsDate,c=null==a?1:bd(a),l=null==o.firstWeekContainsDate?c:bd(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var s=i.options&&i.options.weekStartsOn,u=null==s?0:bd(s),d=null==o.weekStartsOn?u:bd(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var p=xd(e);if(!Sd(p))throw new RangeError("Invalid time value");var f=Rd(p,Cd(p)),m={firstWeekContainsDate:l,weekStartsOn:d,locale:i,_originalDate:p};return r.match(yp).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ep[t])(e,i.formatLong,m):e})).join("").match(vp).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Ep(n);var a=Kd[r];if(a)return!o.useAdditionalWeekYearTokens&&op(n)&&ip(n,t,e),!o.useAdditionalDayOfYearTokens&&rp(n)&&ip(n,t,e),a(f,n,i.localize,m);if(r.match(xp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(new Date(n),"dd MMMM yyyy"):n;return{name:t,value:r}}));return Sa(Sa([],n,!0),r,!0)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(Vm.AdditionalInfo,null,t.createElement(K_,null,n.map((function(e){var n=e.name,r=e.value;return t.createElement(Z_,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(J_,null,n,":"),t.createElement(Q_,{title:r},r))})))):null},K_=Gl.dl(W_||(W_=_a(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),If.fontSize75),Z_=Gl.div(Y_||(Y_=_a(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),J_=Gl.dt(q_||(q_=_a(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),Q_=Gl.dd(G_||(G_=_a(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function eI(e){var n,o,i=e.className,c=e.fadeIn,l=void 0===c||c,s=e.asset,u=e.isSelected,d=e.isOutlined,p=e.onClick,f=e.children,m=void 0===f?null:f,h=r(),g=h[0],v=h[1],y=r(),b=y[0],w=y[1],x=RS(),E=x.openDat,C=x.setTransformation,k=ky().theme,S=function(e){return[e.isArchived&&Hv("archived"),e.isWatermarked&&Hv("watermarked"),e.isLimitedUse&&Hv("limited")].filter((function(e){return e})).join(", ")}(s),_=V_(s);a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));v(t)}),[s.metaproperties]),a((function(){var e,t=null===(e=s.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));w(t)}),[s.textMetaproperties]);var I=function(e){void 0!==p&&(e.stopPropagation(),C(),p(s,e))};return t.createElement(oI,{id:s.id,theme:k,isOutlined:(u||d)&&void 0!==(null==k?void 0:k.colorPrimary),fadeIn:l,className:sy("group",i),"data-drag-select-id":s.id},t.createElement(Vm,{contextAction:t.createElement($_,{transformBaseUrl:null===(o=null===(n=s.files)||void 0===n?void 0:n.transformBaseUrl)||void 0===o?void 0:o.url,portalUrl:s.url,onOpenDAT:function(){var e,t;return E(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,s)}}),selectButtonAriaLabel:Hv(u?"Deselect":"Select"),onSelect:I,onClick:I,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(Vm.Frame,{icon:S?t.createElement(iI,{color:"black-alpha",limitWidth:!!_,"data-testid":"asset-tag"},t.createElement(_m,null,S)):void 0,"data-testid":"asset-type",badge:_},t.createElement(Vm.Images,null,U_(s)&&t.createElement(Vm.Img,{src:U_(s),alt:s.name,contentResize:"fit"}))),m,t.createElement(aI,{"data-testid":"asset-name"},s.name),t.createElement(X_,{metaproperties:g,textMetaproperties:b})))}var tI,nI,rI,oI=Gl.div(tI||(tI=_a(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"])),If.spacing3,(function(e){return e.fadeIn?"animation: var(--fade-in-down);":""}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimary}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimaryHover}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimaryActive})),iI=Gl(Bf)(nI||(nI=_a(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.limitWidth&&"max-width: 142px;"})),aI=Gl.p(rI||(rI=_a(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"])));function cI(e,t,n){var r=this,i=c(null),l=c(0),s=c(null),u=c([]),d=c(),p=c(),f=c(e),m=c(!0);f.current=e;var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,l.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!m.current)return!1;var n=e-i.current,r=e-l.current;return!i.current||n>=t||n<0||y&&r>=b},a=function(t){return s.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},c=function(){var e=Date.now();if(o(e))return a(e);if(m.current){var r=e-i.current,s=e-l.current,u=t-r,d=y?Math.min(u,b-s):u;n(c,d)}},w=function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var h=Date.now(),v=o(h);if(u.current=a,d.current=r,i.current=h,v){if(!s.current&&m.current)return l.current=i.current,n(c,t),g?e(i.current):p.current;if(y)return n(c,t),e(i.current)}return s.current||n(c,t),p.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,u.current=i.current=d.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?a(Date.now()):p.current},w}),[g,y,t,b,v,h]);return w}function lI(e,t){return e===t}function sI(e){return"function"==typeof e?function(){return e}:e}function uI(e,t,n){var o=n&&n.equalityFn||lI,i=function(e){var t=r(sI(e)),n=t[0],o=t[1];return[n,u((function(e){return o(sI(e))}),[])]}(e),l=i[0],s=i[1],d=cI(u((function(e){return s(e)}),[s]),t,n),p=c(e);return a((function(){o(p.current,e)||(d(e),p.current=e)}),[e,d,o]),[l,{cancel:d.cancel,isPending:d.isPending,flush:d.flush}]}var dI={x:null,y:null},pI=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,l=e.onDeselect,s=e.onDragStart,d=e.onDragEnd,p=r(dI),f=p[0],m=p[1],g=r(dI),v=g[0],y=g[1],b=uI(v,10,{leading:!0,maxWait:10})[0],w=r(),x=w[0],E=w[1],C=Fa(),k=t.useMemo((function(){return mI(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=uI(k,50,{leading:!1,maxWait:50})[0],_=r([]),I=_[0],B=_[1],T=bI(I),N=c(f),D=c(v),z=c(null!==N.current.x&&null!==N.current.y&&null!==D.current.x&&null!==D.current.y),P=c({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",O,!1),document.addEventListener("keyup",O,!1),function(){document.removeEventListener("keydown",O,!1),document.removeEventListener("keyup",O,!1)}}),[]);var O=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";P.current={shiftKey:t,metaKey:n},z.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof s&&z.current?(O(P.current),s(null!=x?x:"select")):"function"!=typeof d||z.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[z.current,x]);var A=function(e){N.current=e,m(e),M()},R=function(e){D.current=e,y(e),M()},M=function(){z.current=null!==N.current.x&&null!==N.current.y&&null!==D.current.x&&null!==D.current.y},F=u((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==N.current.x,a=Math.abs(null!==(t=N.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=N.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&R({x:o,y:r})}),[]),L=u((function(){C.removeEventListener("mousemove",F),C.removeEventListener("mouseup",L),A(dI),R(dI)}),[F,C]),j=u((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",F),C.addEventListener("mouseup",L),A({x:n,y:t}))}),[F,L,C]);a((function(){var e=C.querySelector(n);return e&&(vI(C),e.addEventListener("mousedown",j)),function(){e&&(e.removeEventListener("mousedown",j),yI(C))}}),[n,j,F,L,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=gI(t);return t instanceof HTMLElement&&hI(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);B(t)}),[S,C]),a((function(){if(T&&T!==I&&z.current){var e=I.filter((function(e){return!T.includes(e)})),t=T.filter((function(e){return!I.includes(e)}));e.length&&i(e),t.length&&l(t)}}),[I,T,i,l,z]);var H=C.querySelector("#".concat("drag-select-container"));return z.current&&H?h.createPortal(t.createElement("div",xa({},o,{style:o.style?xa(xa(xa({},fI),o.style),k):xa(xa({},fI),k),"data-testid":"drag-selection"})),H):null},fI={position:"absolute",zIndex:100},mI=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),c=Math.abs(t.y-e.y),l=Math.abs(o-e.x),s=r.width+r.left-i-4;return{left:i,top:a,height:c,width:l=Math.min(l,s)}},hI=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},gI=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},vI=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},yI=function(e){var t=e.querySelector("#".concat("drag-select-container"));t&&t.remove()},bI=function(e){var t=c();return a((function(){t.current=e})),t.current};function wI(e){var n,o=e.assets,i=e.count,a=e.hasNextPage,l=void 0!==a&&a,s=e.isLoading,u=void 0!==s&&s,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,m=void 0===f?function(){}:f,h=e.onToggle,g=void 0===h?function(){}:h,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,w=void 0===b?[]:b,x=e.selectionMode,E=void 0===x?"MultiSelect":x,C=e.theme,k=e.children,S=void 0===k?null:k,_=c(null),I=WS(_.current).dimensions,B=r([]),T=B[0],N=B[1],D=r("inactive"),z=D[0],P=D[1],O=function(e,t){if(void 0!==e)return[1,e];if(!t)return[0,0];return[Math.ceil(t.height/188),Math.round((t.width-16)/208)]}(i,I),A=O[0],R=O[1];function M(e){return("inverse"!==z||!w.includes(e.id)||!T.includes(e.id))&&(w.includes(e.id)||T.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:_,"data-drag-select-container":!0},S,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===o.tag&&!o.value&&t.createElement(wy,{rows:A,columns:R}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(pI,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==C?void 0:C.colorPrimary}},onSelect:function(e){N((function(t){return Sa(Sa([],t,!0),e,!0)}))},onDeselect:function(e){N((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){P(e)},onDragEnd:function(e){if(P("inactive"),T.length){var t=[];T.forEach((function(e){var n=function(e){var t;if("Loading"!==o.tag||o.value)return null===(t=o.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):m(t),N([])}}}),t.createElement(i_,{hasNextPage:l,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(eI,{key:e.id,isSelected:M(e),isOutlined:M(e),asset:e,fadeIn:n>=A*R,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=o.value)||void 0===n?void 0:n.length)){var a=o.value.findIndex((function(t){return t.id===e.id})),c=null===(r=o.value)||void 0===r?void 0:r.findIndex((function(e){return e.id===w[w.length-1]}));-1===c&&(c=0),m(c<a?null===(i=o.value)||void 0===i?void 0:i.slice(c,a+1):o.value.slice(a,c+1))}else g([e])}(e,t)}})}))))))}function xI(e){var n,r,o,i,c=e.connection,l=c.data,s=c.isLoading,u=c.loadMore,d=c.hasNextPage,p=c.executeQuery,f=Pa().setIsLoading,m=ky(),h=VS().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=VS(),v=g.selectAssets,y=g.toggleAssets,b=Pa().setSearch,w=__();if(a((function(){s||f(!1)}),[s]),"Failure"===l.tag)return t.createElement(iy,{error:new Error(l.value),onRetry:p});var x=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(wI,{assets:EI(l),count:x,isLoading:s,loadMore:u,hasNextPage:d,theme:m.theme,selectionMode:m.selectionMode,selectedAssetIds:h,onSelect:v,onToggle:y,emptyStateElement:t.createElement(c_,{onReset:function(){w.clear(),b("assets",""),b("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==x&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:x},yy(x,Hv("{} asset"),Hv("{} assets"))),e.showActiveFilters&&t.createElement(F_,null),t.createElement(hy,null),t.createElement(ay,null)))}function EI(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function CI(e){var n=Oa("collection").value,r=Ta()[1],o=ba("collection")[0],i=ky(),a=i.assetTypes,c=i.language,l=zb({collection:e.collection,allAssetTypes:a,searchTerm:n,orderBy:o,language:c});return t.createElement(t.Fragment,null,t.createElement("nav",{className:"px-4 py-4","data-testid":"collection-toolbar"},t.createElement("button",{className:"text-body-400 select-none cursor-pointer",onClick:function(){return r({page:"collections"})},type:"button"},Hv("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(xI,{connection:l,totalCount:e.collection.assetCount}))}var kI,SI,_I,II,BI=Gl(Xm)(kI||(kI=_a(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),If.fontSize75,(function(e){return e.isLoading&&!e.isChecked?"wait":"pointer"})),TI=Gl.li(SI||(SI=_a(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),If.spacing2,If.spacing5,If.gray25),NI=Gl.div(_I||(_I=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"])),(function(e){return e.isChecked?"inherit":If.gray500})),DI=Gl.span(II||(II=_a(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),If.spacing4);function zI(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(TI,null,t.createElement(BI,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option",isLoading:e.isLoading},t.createElement(NI,{isChecked:n},t.createElement(DI,{title:e.metapropertyOption.label},t.createElement(_m,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount))))}function PI(e){return t.createElement(RI,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(MI,null,e.metaproperty.options.map((function(n){return t.createElement(zI,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var OI,AI,RI=Gl.div(OI||(OI=_a(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),If.spacing5),MI=Gl.ul(AI||(AI=_a(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"])));function FI(e){return t.createElement(jI,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(PI,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var LI,jI=Gl.div(LI||(LI=_a(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),If.spacing4);function HI(e){var n,r,o=__(),i=o.metaproperties.map((function(e){return e.id})),a=(n=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),r=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},Sa([],n,!0).sort((function(e,t){return r(e)-r(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(dy,{key:n.id,title:t.createElement(UI,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(PI,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(FI,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function UI(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:sy("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function VI(e){var n=__(),r=n.tags.includes(e.tag.name),o=sy("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(R_,{key:e.tag.id,className:o,onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item"},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}function $I(e){var n=Sa([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(dy,{title:t.createElement(WI,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",Hv("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(VI,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function WI(){return t.createElement(t.Fragment,null,t.createElement(Os,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},Hv("Tags")))}function YI(e){var n=__(),r=n.assetTypes.includes(e.type),o=B_(e.type);return t.createElement(TI,{"data-testid":"advanced-options"},t.createElement(BI,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},isLoading:e.isLoading,"data-testid":"".concat(I_(e.type),"-filter")},t.createElement(NI,{isChecked:r},t.createElement(o,null),t.createElement(GI,null,I_(e.type)),t.createElement("span",{className:"fade-in-down"},e.count))))}var qI,GI=Gl.div(qI||(qI=_a(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),If.spacing3);function XI(e){var n=ky().assetTypes,r=n.filter((function(t){return ZI(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(dy,{title:t.createElement(KI,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},Hv("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(YI,{key:n,type:n,count:ZI(e.count,n),isLoading:e.isLoading})}))))}))}function KI(){return t.createElement(t.Fragment,null,t.createElement(Eu,{className:"mr-2 inline w-6 h-6"}),Hv("Advanced"))}function ZI(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function JI(){var e=__(),n=Oa("assets").value,o=ky(),i=o.assetTypes,c=o.language;Vv(c);var l=function(e){var t=this,n=Tb(),o=r({tag:"Loading",value:null}),i=o[0],c=o[1],l=!1;return a((function(){return Ca(t,void 0,void 0,(function(){var t,r,o,i,a,s;return ka(this,(function(u){switch(u.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),t=e.filter,r=e.searchTerm,o=e.allAssetTypes,i=e.language,[4,Py("\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }",{filter:{assetType_in:null!==(s=t.assetTypes)&&void 0!==s?s:o,collectionId:null,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags,isLimitedUse:t.isLimited},language:i},n)];case 1:return a=u.sent(),l||(Ty(a)?c({tag:"Failure",value:a.error}):c({tag:"Loaded",value:a.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:i,isLoading:"Loading"===i.tag}}({filter:e,searchTerm:n||null,allAssetTypes:i,language:c}),s=l.data,u=l.isLoading;if("Failure"===s.tag||!s.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(QI,null));var d=s.value.searchAssets,p=d.metapropertyFilters,f=d.tags,m=d.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(A_,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(HI,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement($I,{tags:f.nodes,isLoading:u}),t.createElement(XI,{isLoading:u,count:m.assetType})))}function QI(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(by,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(by,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(by,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var eB,tB,nB=Yl(tB||(tB=_a(["",""],["",""])),Nl(eB||(eB=_a(["\n\t.cv-root {\n\t\t","\n\t}:\n"],["\n\t.cv-root {\n\t\t","\n\t}:\n"])),(function(e){return function(e){var t=function(e){var t,n;return{"--componentButtonPrimaryBorderHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderActive":null!==(t=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==t?t:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderFocus":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryColor":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorHover":null==e?void 0:e.colorButtonPrimaryHoverLabel,"--componentButtonPrimaryColorActive":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorFocus":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorDisabled":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryFill":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryFillHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillActive":null!==(n=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==n?n:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillFocus":null==e?void 0:e.colorButtonPrimary}}(e),n=Object.entries(t).map((function(e){return e.join(":")}));return n.join(";")+";"}(e.theme)})));function rB(){var e=Ta()[0],n=Oa(e.page),o=n.value,i=n.isLoading,c=cI(n.setSearch,500),l=r(o),s=l[0],u=l[1];a((function(){u(o)}),[e,o]),a((function(){return function(){c.flush()}}),[e,c]);var d="collections"===e.page?Hv("Search for collections"):Hv("Search for assets");return t.createElement(iB,{value:s,placeholder:d,"aria-label":d,onChange:function(e){return u(t=e),void c(t);var t},"data-testid":"search-input",icon:t.createElement(Hs,null),iconRight:i?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(gb,{className:"relative right-0"})):void 0,hasClearButton:!i&&!!o})}var oB,iB=Gl(Nh)(oB||(oB=_a(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function aB(){var e=Ta(),n=e[0],r=e[1];return t.createElement(lB,null,t.createElement(Xf,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},Hv("Assets")),t.createElement(Xf,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},Hv("Collections")))}var cB,lB=Gl.div(cB||(cB=_a(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),If.spacing2);function sB(){var e,n="authenticated"===(null===(e=i(_b))||void 0===e?void 0:e.status)||!1,r=nb(),o=Tb(),a=void 0!==ky().assetFilter;return n||r||!a?t.createElement(pB,null,!a&&t.createElement(t.Fragment,null,t.createElement(aB,null),t.createElement(rB,null)),t.createElement(fB,null,n&&!(null==o?void 0:o.hideLogout)&&t.createElement(Xf,{variant:"clean",onClick:function(){return null==o?void 0:o.logout()},rightIcon:t.createElement(zs,null)},Hv("Log out")),r&&t.createElement(Xf,{variant:"clean",onClick:function(){return r.onClose()},title:Hv("Close"),icon:t.createElement(Bu,null)}))):null}var uB,dB,pB=Gl.nav(uB||(uB=_a(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),If.gray10,If.spacing5,If.spacing4),fB=Gl.div(dB||(dB=_a(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function mB(){var e=__(),n=e.assetTypes,r=e.metaproperties,o=e.tags,i=e.isLimited,a=Oa("assets").value,c=ba("assets")[0],l=ky(),s=l.assetFilter,u=l.assetTypes,d=l.language,p=zb(void 0===s?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:i},searchTerm:a,orderBy:c,allAssetTypes:u,language:d}:{predefinedFilter:s,orderBy:c,language:d});return t.createElement(xI,{connection:p,showActiveFilters:void 0===s})}function hB(e,t,n){return void 0===n&&(n="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,Py("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return Ty(r=o.sent())?[2,r]:[2,_y(r.value.node)]}}))}))}function gB(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}function vB(e){var n=e.asset,o=e.onChange,i=r({status:"Loading"}),c=i[0],l=i[1],s=Tb(),u=ky().assetFieldSelection,d=RS().transformation;function p(e){l((function(t){return"Data"!==t.status?t:("Custom transformation"===e&&d?setTimeout((function(){return o({url:null==d?void 0:d.url})})):setTimeout((function(){return o(t.files[e])})),xa(xa({},t),{key:e}))}))}return a((function(){var e,t;(null==d?void 0:d.url)&&"Data"===c.status&&p(d.url!==(null===(t=null===(e=c.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url)?"Custom transformation":"transformBaseUrl")}),[d]),a((function(){l({status:"Loading"}),o(void 0),function(e,t,n){return Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,hB(e.id,t,n)];case 1:return By(r=o.sent())&&r.value.files?[2,_y(Dy(r.value.files))]:[2,Iy("Error retrieving asset files")]}}))}))}(n,s,u).then((function(e){if(Ty(e))return Aa.error(e.error),void l({status:"Failure"});var t=e.value,n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),o(t[n])}))}),[n.id,s,u]),t.createElement(xB,null,t.createElement(dy,{title:t.createElement(yB,{state:c}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===c.status},(function(e){var r,o;return"Data"===c.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(c.files).map((function(n){var r,o=n[0],i=n[1];return t.createElement(my,{key:o,className:"px-3 py-2",selected:c.key===o,onClick:function(){p(o),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===o?t.createElement(Ns,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(i.url))&&void 0!==r?r:t.createElement(ru,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},gB(o)),t.createElement("div",{className:"text-sm"},i.width&&i.height&&"".concat(i.width," x ").concat(i.height," px"),i.width&&i.height&&i.fileSize&&t.createElement("span",{className:"mx-2"},"•"),i.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(i.fileSize))))})),t.createElement(MS,{transformBaseUrl:null===(o=null===(r=c.files)||void 0===r?void 0:r.transformBaseUrl)||void 0===o?void 0:o.url,toggleDropdown:e,asset:n}))})))}function yB(e){var n=e.state;return"Loading"===n.status?t.createElement(by,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(EB,null,"Custom transformation"===n.key&&t.createElement(mu,null),gB(n.key)):t.createElement(t.Fragment,null,"Error")}var bB,wB,xB=Gl.div(bB||(bB=_a(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),If.spacing5),EB=Gl.div(wB||(wB=_a(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),If.spacing4);function CB(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(Su,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,Hv("Retry")):t.createElement(t.Fragment,null,yy(r,Hv("Add asset"),Hv("Add assets")))}function kB(e){var n,o=ky(),i=o.assetFieldSelection,l=o.onSuccess,s=o.selectionMode,u=VS().preselectedAssetIds,d=Tb(),p=c(!0),f=r("SingleSelectFile"===s?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=f[0],h=f[1];function g(e,t){if(Ty(e))h({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),l(n,{selectedFile:t})}catch(e){Aa.error(e)}p.current&&(h({status:"Done"}),setTimeout((function(){p.current&&h({status:"Ready"})}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===s&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(vB,{asset:e.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(Xf,{variant:"primary",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var t,n="ReadyWithFile"===m.status?m.file:void 0;h({status:"Loading"}),"MultiSelect"!==s&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?hB(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n showInGridView\n showInListView\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),Ca(this,void 0,void 0,(function(){var r,o,i,a,c,l,s,u,d,p,f,m,h,g;return ka(this,(function(v){switch(v.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o=e.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.assetCount})),i=o.reduce((function(e,t){return e+t}),0),a={ids:e.map((function(e){return e.value.id})),collectionCount:i},[4,Py(r,a,t)];case 1:if(Ty(c=v.sent()))return[2,c];for(l=[],s=0,u=c.value.nodes;s<u.length;s++)"Collection"===(d=u[s]).__typename?l.push.apply(l,d.assets.nodes):l.push(d);for(p=new Set,f=[],m=0,h=l;m<h.length;m++)g=h[m],p.has(g.id)||(f.push(g),p.add(g.id));return[2,_y(f)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},t.createElement(CB,{status:m.status,numberOfSelectedItems:e.selection.length})))}function SB(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(BI,{"aria-label":Hv("Deselect"),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"},t.createElement(IB,null,o)))}var _B,IB=Gl.span(_B||(_B=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n"])),If.fontSize100);function BB(e){var n=e.asset,r=VS();return t.createElement(SB,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(NB,{variant:"content",imageUrl:U_(n),size:"m"}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),V_(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},V_(n)))}var TB,NB=Gl(wg)(TB||(TB=_a(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),If.spacing4);function DB(e){var n=e.collection,r=VS();return t.createElement(SB,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(PB,{variant:"clean",icon:t.createElement(bu,null)}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},yy(n.assetCount,Hv("{} asset"),Hv("{} assets"))))}var zB,PB=Gl(wg)(zB||(zB=_a(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),If.spacing4);function OB(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return"asset"===e.type?t.createElement(BB,{key:e.value.id,asset:e.value}):t.createElement(DB,{key:e.value.id,collection:e.value})})))}function AB(){var e=VS(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(FB,{"data-testid":"selection-footer"},t.createElement(LB,null,t.createElement(dy,{buttonKind:"secondary",direction:"Up",title:Hv("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(OB,{selection:n})})),t.createElement(Xf,{variant:"clean",onClick:r},Hv("Clear selection"))),t.createElement(kB,{selection:n}))}var RB,MB,FB=Gl.div(RB||(RB=_a(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),If.layoutSpacing5,If.spacing6),LB=Gl.span(MB||(MB=_a(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),If.spacing2);function jB(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT","ARCHIVE"]:o,a=e.defaultSearchTerm,c=e.language,l=void 0===c?"en_US":c,s=e.mode,u=void 0===s?"MultiSelect":s,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,m=e.hideExternalAccess,h=e.selectedAssets,g=e.hideLimitedUse,v=e.isContainerMode,y=void 0!==v&&v;Vv(l);var b={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:m};return t.createElement(kb,null,t.createElement(Ba,null,t.createElement(eb,{isContainerMode:y},t.createElement(AS,null,t.createElement(ya,null,t.createElement(C_,{hideLimitedUse:g},t.createElement(za,{defaultValue:a},t.createElement(Cy,{value:b},t.createElement(HS,{preselectedAssetIds:null!=h?h:[]},t.createElement(nB,{theme:b.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(sB,null),t.createElement(HB,null),t.createElement(AB,null)))))))))))}function HB(){var e=Ta()[0],n=ky().assetFilter;return t.createElement(t.Fragment,null,"assets"===e.page&&void 0===n&&t.createElement(JI,null),"assets"===e.page&&t.createElement(mB,null),"collections"===e.page&&t.createElement(x_,null),"collection"===e.page&&t.createElement(CI,{collection:e.collection}))}!function(e={}){if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=ma),void 0===e.release){var t=mr();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n,r={...e,stackParser:(n=e.stackParser||Hi,Array.isArray(n)?Zr(...n):n),integrations:ci(e),transport:e.transport||(Qr()?Pi:Oi)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Mr.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=Zo(),r=n.getScope();r&&r.update(t.initialScope);var o=new e(t);n.bindClient(o)}(zi,r),e.autoSessionTracking&&function(){if(void 0!==mr().document){var e=Zo();e.captureSession&&(ha(e),oo("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&ha(Zo())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Mr.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,tracesSampleRate:1,defaultIntegrations:!1});export{jB as CompactView,Bb as Login,rb as Modal};
|
|
196
|
+
`;const If={white:"var(--white)","white-rgb":"var(--white-rgb)",gray1000:"var(--gray1000)","gray1000-rgb":"var(--gray1000-rgb)",gray900:"var(--gray900)",gray800:"var(--gray800)",gray700:"var(--gray700)",gray600:"var(--gray600)",gray500:"var(--gray500)",gray400:"var(--gray400)",gray300:"var(--gray300)",gray200:"var(--gray200)",gray100:"var(--gray100)",gray75:"var(--gray75)",gray50:"var(--gray50)",gray25:"var(--gray25)",gray10:"var(--gray10)",blue1000:"var(--blue1000)",blue900:"var(--blue900)",blue800:"var(--blue800)",blue700:"var(--blue700)",blue600:"var(--blue600)",blue500:"var(--blue500)",blue500a10:"var(--blue500a10)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red500a10:"var(--red500a10)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",yellow500a10:"var(--yellow500a10)",yellow600:"var(--yellow600)",yellow700:"var(--yellow700)",green500:"var(--green500)",purple1000:"var(--purple1000)",purple900:"var(--purple900)",purple800:"var(--purple800)",purple700:"var(--purple700)",purple600:"var(--purple600)",purple500:"var(--purple500)",purple400:"var(--purple400)",purple300:"var(--purple300)",purple200:"var(--purple200)",purple100:"var(--purple100)",magenta1000:"var(--magenta1000)",magenta900:"var(--magenta900)",magenta800:"var(--magenta800)",magenta700:"var(--magenta700)",magenta600:"var(--magenta600)",magenta500:"var(--magenta500)",magenta400:"var(--magenta400)",magenta300:"var(--magenta300)",magenta200:"var(--magenta200)",magenta100:"var(--magenta100)",teal1000:"var(--teal1000)",teal900:"var(--teal900)",teal800:"var(--teal800)",teal700:"var(--teal700)",teal600:"var(--teal600)",teal500:"var(--teal500)",teal400:"var(--teal400)",teal300:"var(--teal300)",teal200:"var(--teal200)",teal100:"var(--teal100)",brandPrimary700:"var(--brandPrimary700)",brandPrimary600:"var(--brandPrimary600)",brandPrimary500:"var(--brandPrimary500)","brandPrimary500-rgb":"var(--brandPrimary500-rgb)",brandPrimary300:"var(--brandPrimary300)",brandPrimary100:"var(--brandPrimary100)",spacing1:"var(--spacing1)",spacing2:"var(--spacing2)",spacing3:"var(--spacing3)",spacing4:"var(--spacing4)",spacing5:"var(--spacing5)",spacing6:"var(--spacing6)",spacing7:"var(--spacing7)",spacing8:"var(--spacing8)",spacing9:"var(--spacing9)",layoutSpacing1:"var(--layoutSpacing1)",layoutSpacing2:"var(--layoutSpacing2)",layoutSpacing3:"var(--layoutSpacing3)",layoutSpacing4:"var(--layoutSpacing4)",layoutSpacing5:"var(--layoutSpacing5)",layoutSpacing6:"var(--layoutSpacing6)",layoutSpacing7:"var(--layoutSpacing7)",radiusSmall:"var(--radiusSmall)",radiusMedium:"var(--radiusMedium)",radiusLarge:"var(--radiusLarge)",radiusCircle:"var(--radiusCircle)",radiusPill:"var(--radiusPill)",radiusBase:"var(--radiusBase)",brandRadiusBase:"var(--brandRadiusBase)",fontStackBase:"var(--fontStackBase)",brandFontStackBase:"var(--brandFontStackBase)",fontSize25:"var(--fontSize25)",fontSize50:"var(--fontSize50)",fontSize75:"var(--fontSize75)",fontSize100:"var(--fontSize100)",fontSize200:"var(--fontSize200)",fontSize300:"var(--fontSize300)",fontSize400:"var(--fontSize400)",fontSize500:"var(--fontSize500)",fontSize600:"var(--fontSize600)",fontSize700:"var(--fontSize700)",fontSize800:"var(--fontSize800)",fontSize900:"var(--fontSize900)",fontSize1000:"var(--fontSize1000)",fontSizeBase:"var(--fontSizeBase)",lineHeightBase:"var(--lineHeightBase)",lineHeightHeading:"var(--lineHeightHeading)",lineHeightText:"var(--lineHeightText)",gray900a:"var(--gray900a)",gray800a:"var(--gray800a)",gray700a:"var(--gray700a)",gray600a:"var(--gray600a)",gray500a:"var(--gray500a)",gray400a:"var(--gray400a)",gray300a:"var(--gray300a)",gray200a:"var(--gray200a)",gray100a:"var(--gray100a)",gray75a:"var(--gray75a)",gray50a:"var(--gray50a)",gray25a:"var(--gray25a)",colorText:"var(--colorText)",colorTextMuted:"var(--colorTextMuted)",colorTextDisabled:"var(--colorTextDisabled)",focusRingWidth:"var(--focusRingWidth)",focusRingColorPrimary:"var(--focusRingColorPrimary)",focusRingColorSecondary:"var(--focusRingColorSecondary)",colorShadow:"var(--colorShadow)",elevationStatic:"var(--elevationStatic)",elevation1:"var(--elevation1)",elevation2:"var(--elevation2)",elevation4:"var(--elevation4)",elevation8:"var(--elevation8)",elevation12:"var(--elevation12)",elevation16:"var(--elevation16)",elevation24:"var(--elevation24)",componentButtonPrimaryBorderHover:"var(--componentButtonPrimaryBorderHover)",componentButtonPrimaryBorderActive:"var(--componentButtonPrimaryBorderActive)",componentButtonPrimaryBorderFocus:"var(--componentButtonPrimaryBorderFocus)",componentButtonPrimaryBorderDisabled:"var(--componentButtonPrimaryBorderDisabled)",componentButtonPrimaryColor:"var(--componentButtonPrimaryColor)",componentButtonPrimaryColorHover:"var(--componentButtonPrimaryColorHover)",componentButtonPrimaryColorActive:"var(--componentButtonPrimaryColorActive)",componentButtonPrimaryColorFocus:"var(--componentButtonPrimaryColorFocus)",componentButtonPrimaryColorDisabled:"var(--componentButtonPrimaryColorDisabled)",componentButtonPrimaryFill:"var(--componentButtonPrimaryFill)",componentButtonPrimaryFillHover:"var(--componentButtonPrimaryFillHover)",componentButtonPrimaryFillActive:"var(--componentButtonPrimaryFillActive)",componentButtonPrimaryFillFocus:"var(--componentButtonPrimaryFillFocus)",componentButtonPrimaryFillDisabled:"var(--componentButtonPrimaryFillDisabled)",componentButtonPrimaryFocusRing:"var(--componentButtonPrimaryFocusRing)",componentButtonSecondaryBorder:"var(--componentButtonSecondaryBorder)",componentButtonSecondaryBorderHover:"var(--componentButtonSecondaryBorderHover)",componentButtonSecondaryBorderActive:"var(--componentButtonSecondaryBorderActive)",componentButtonSecondaryBorderFocus:"var(--componentButtonSecondaryBorderFocus)",componentButtonSecondaryBorderDisabled:"var(--componentButtonSecondaryBorderDisabled)",componentButtonSecondaryColor:"var(--componentButtonSecondaryColor)",componentButtonSecondaryColorHover:"var(--componentButtonSecondaryColorHover)",componentButtonSecondaryColorActive:"var(--componentButtonSecondaryColorActive)",componentButtonSecondaryColorFocus:"var(--componentButtonSecondaryColorFocus)",componentButtonSecondaryColorDisabled:"var(--componentButtonSecondaryColorDisabled)",componentButtonSecondaryFill:"var(--componentButtonSecondaryFill)",componentButtonSecondaryFillHover:"var(--componentButtonSecondaryFillHover)",componentButtonSecondaryFillActive:"var(--componentButtonSecondaryFillActive)",componentButtonSecondaryFillFocus:"var(--componentButtonSecondaryFillFocus)",componentButtonSecondaryFillDisabled:"var(--componentButtonSecondaryFillDisabled)",componentButtonSecondaryFocusRing:"var(--componentButtonSecondaryFocusRing)",componentButtonCleanBorderFocus:"var(--componentButtonCleanBorderFocus)",componentButtonCleanBorderActive:"var(--componentButtonCleanBorderActive)",componentButtonCleanColor:"var(--componentButtonCleanColor)",componentButtonCleanColorHover:"var(--componentButtonCleanColorHover)",componentButtonCleanColorActive:"var(--componentButtonCleanColorActive)",componentButtonCleanColorFocus:"var(--componentButtonCleanColorFocus)",componentButtonCleanColorDisabled:"var(--componentButtonCleanColorDisabled)",componentButtonCleanFill:"var(--componentButtonCleanFill)",componentButtonCleanFillHover:"var(--componentButtonCleanFillHover)",componentButtonCleanFillActive:"var(--componentButtonCleanFillActive)",componentButtonCleanFillFocus:"var(--componentButtonCleanFillFocus)",componentButtonCleanFillDisabled:"var(--componentButtonCleanFillDisabled)",componentButtonCleanFocusRing:"var(--componentButtonCleanFocusRing)",componentButtonDangerBorderHover:"var(--componentButtonDangerBorderHover)",componentButtonDangerBorderActive:"var(--componentButtonDangerBorderActive)",componentButtonDangerBorderFocus:"var(--componentButtonDangerBorderFocus)",componentButtonDangerBorderDisabled:"var(--componentButtonDangerBorderDisabled)",componentButtonDangerColor:"var(--componentButtonDangerColor)",componentButtonDangerColorHover:"var(--componentButtonDangerColorHover)",componentButtonDangerColorActive:"var(--componentButtonDangerColorActive)",componentButtonDangerColorFocus:"var(--componentButtonDangerColorFocus)",componentButtonDangerColorDisabled:"var(--componentButtonDangerColorDisabled)",componentButtonDangerFill:"var(--componentButtonDangerFill)",componentButtonDangerFillHover:"var(--componentButtonDangerFillHover)",componentButtonDangerFillActive:"var(--componentButtonDangerFillActive)",componentButtonDangerFillFocus:"var(--componentButtonDangerFillFocus)",componentButtonDangerFillDisabled:"var(--componentButtonDangerFillDisabled)",componentButtonDangerFocusRing:"var(--componentButtonDangerFocusRing)",componentDividerColor:"var(--componentDividerColor)",componentCheckboxBorderUnchecked:"var(--componentCheckboxBorderUnchecked)",componentCheckboxBorderUncheckedHover:"var(--componentCheckboxBorderUncheckedHover)",componentCheckboxBorderUncheckedFocus:"var(--componentCheckboxBorderUncheckedFocus)",componentCheckboxFillDisabled:"var(--componentCheckboxFillDisabled)",componentCheckboxCheckmarkColorDisabled:"var(--componentCheckboxCheckmarkColorDisabled)",componentRadioBorderUnchecked:"var(--componentRadioBorderUnchecked)",componentRadioFillDisabled:"var(--componentRadioFillDisabled)",componentRadioCheckmarkColorDisabled:"var(--componentRadioCheckmarkColorDisabled)",componentRadioBorderUncheckedHover:"var(--componentRadioBorderUncheckedHover)"};function Bf({...e}){const{children:n,color:r="brand",hasBorder:o=!1,isPillShaped:i=!1,icon:a,isSmall:c=!1,isSecondary:l=!1}=e;return t.createElement(Tf,{color:r,hasBorder:o,isPillShaped:i,isSecondary:l,isSmall:c,...e},a&&t.createElement(Nf,{isSmall:c},a),n)}const Tf=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"BadgeStyled",componentId:"sc-11co88f-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;height:",";padding:0 ",";border:2px solid transparent;border-radius:",";color:",";font-weight:normal;font-size:",";line-height:normal;",""],(e=>e.isSmall?"20px":"24px"),(e=>e.isSmall?If.spacing2:"6px"),(e=>e.isPillShaped?If.radiusPill:If.radiusMedium),If.white,If.fontSize50,(e=>{if(!e.isSecondary&&e.color){const t={brand:If.brandPrimary500,gray:If.gray400,black:If.gray900,"black-alpha":If.gray600a,blue:If.blue500,red:If.red400};return e.hasBorder?Nl(["border-color:",";color:",";"],t[e.color],t[e.color]):Nl(["background-color:",";"],t[e.color])}if(e.isSecondary)return Nl(["border-color:",";background-color:",";color:",";"],e.hasBorder?If.gray100:"transparent",e.hasBorder?If.white:If.gray100,If.gray800)})),Nf=Gl.div.withConfig({displayName:"IconHolder2",componentId:"sc-11co88f-1"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],(e=>e.isSmall?If.spacing1:If.spacing2),If.spacing1),Df=Nl(["color:",";font-size:",";font-family:",";line-height:",";"],If.colorText,If.fontSizeBase,If.brandFontStackBase,If.lineHeightBase);Gl.div.withConfig({displayName:"BaseStyles",componentId:"sc-11co88f-2"})(["",""],Df),Gl.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Track1",componentId:"sc-11co88f-3"})(["overflow:hidden;height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":If.radiusPill),(e=>"brand"===e.color?If.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${If["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${If["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${If.gray100a}\n\t\t\t`));const zf=ql(["to{transform:translateX(-40px);}"]),Pf=`rgb(${If["white-rgb"]} / 0.15)`,Of=`rgb(${If["gray1000-rgb"]} / 0.15)`;Gl.div.withConfig({displayName:"Fill2",componentId:"sc-11co88f-4"})(["width:calc(100% + 60px);height:100%;background-image:linear-gradient( -45deg,"," 25%,"," 25%,"," 50%,"," 50%,"," 75%,"," 75%,"," );background-size:40px 40px;background-repeat:repeat-x;animation:"," 0.8s linear infinite;"],Pf,Of,Of,Pf,Pf,Of,Of,zf);const Af=Gl.button.withConfig({displayName:"ButtonStyled1",componentId:"sc-11co88f-5"})(["vertical-align:middle;justify-content:center;align-items:center !important;box-sizing:border-box !important;border:1px solid transparent !important;border-radius:",";outline:none !important;font-weight:400 !important;font-style:normal;font-size:"," !important;font-family:"," !important;line-height:"," !important;text-transform:none !important;text-shadow:none !important;cursor:pointer !important;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;button&,a&{position:relative;display:flex;flex:0 0 auto;flex-wrap:nowrap;min-width:40px;background-position:center;text-align:center;text-decoration:none;white-space:nowrap;fill:currentColor;&:focus{display:flex;}}&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],If.brandRadiusBase,If.fontSizeBase,If.brandFontStackBase,If.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Nl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],If.spacing4,If.fontSize75):Nl(["height:40px !important;padding:0 "," !important;"],If.spacing5)),(e=>{if("primary"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],If.componentButtonPrimaryBorderActive,If.componentButtonPrimaryFillActive,If.componentButtonPrimaryColorActive);return Nl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],If.componentButtonPrimaryFill,If.componentButtonPrimaryColor,e.isPressed&&t,If.componentButtonPrimaryBorderHover,If.componentButtonPrimaryFillHover,If.componentButtonPrimaryColorHover,If.elevation1,If.componentButtonPrimaryBorderFocus,If.componentButtonPrimaryFillFocus,If.componentButtonPrimaryColorFocus,If.componentButtonPrimaryFocusRing,t,If.componentButtonPrimaryBorderDisabled,If.componentButtonPrimaryFillDisabled,If.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Nl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],If.componentButtonSecondaryBorderActive,If.componentButtonSecondaryFillActive,If.componentButtonSecondaryColorActive);return Nl(["border-color:"," !important;background-color:"," !important;color:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],If.componentButtonSecondaryBorder,If.componentButtonSecondaryFill,If.componentButtonSecondaryColor,e.isPressed&&t,If.componentButtonSecondaryBorderHover,If.componentButtonSecondaryFillHover,If.componentButtonSecondaryColorHover,If.elevation1,If.componentButtonSecondaryBorderFocus,If.componentButtonSecondaryFillFocus,If.componentButtonSecondaryColorFocus,If.componentButtonSecondaryFocusRing,t,If.componentButtonSecondaryBorderDisabled,If.componentButtonSecondaryFillDisabled,If.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Nl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],If.componentButtonCleanBorderActive,If.componentButtonCleanFillActive,If.componentButtonCleanColorActive);return Nl(["background-color:"," !important;color:",";"," &:hover{background-color:"," !important;color:"," !important;box-shadow:none !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{background-color:"," !important;color:"," !important;}"],If.componentButtonCleanFill,If.componentButtonCleanColor,e.isPressed&&t,If.componentButtonCleanFillHover,If.componentButtonCleanColorHover,If.componentButtonCleanBorderFocus,If.componentButtonCleanColorFocus,If.componentButtonCleanFocusRing,t,If.componentButtonCleanFillDisabled,If.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Nl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],If.componentButtonDangerBorderActive,If.componentButtonDangerFillActive,If.componentButtonDangerColorActive);return Nl(["border-color:transparent;background-color:"," !important;color:"," !important;box-shadow:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],If.componentButtonDangerFill,If.componentButtonDangerColor,If.elevation1,e.isPressed&&t,If.componentButtonDangerBorderHover,If.componentButtonDangerFillHover,If.componentButtonDangerColorHover,If.elevation2,If.componentButtonDangerBorderFocus,If.componentButtonDangerColorFocus,If.componentButtonDangerFocusRing,t,If.componentButtonDangerBorderDisabled,If.componentButtonDangerFillDisabled,If.componentButtonDangerColorDisabled)}return""})),Rf=Gl.button.withConfig({displayName:"ButtonStyled",componentId:"sc-11co88f-6"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;border:1px solid transparent;border-radius:",";background-color:transparent;outline:none;font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentColor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default;}"," ",";",""],If.brandRadiusBase,If.fontSizeBase,If.brandFontStackBase,If.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Nl(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],If.spacing4,If.fontSize75):Nl(["height:40px;padding:0 ",";"],If.spacing5)),(e=>{if("primary"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none;"],If.componentButtonPrimaryBorderActive,If.componentButtonPrimaryFillActive,If.componentButtonPrimaryColorActive);return Nl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],If.componentButtonPrimaryFill,If.componentButtonPrimaryColor,e.isPressed&&t,If.componentButtonPrimaryBorderHover,If.componentButtonPrimaryFillHover,If.componentButtonPrimaryColorHover,If.elevation1,t,e.isFocusVisible&&Nl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],If.componentButtonPrimaryFillFocus,If.componentButtonPrimaryColorFocus,If.componentButtonPrimaryBorderFocus,If.componentButtonPrimaryFocusRing),If.componentButtonPrimaryBorderDisabled,If.componentButtonPrimaryFillDisabled,If.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none;"],If.componentButtonSecondaryBorderActive,If.componentButtonSecondaryFillActive,If.componentButtonSecondaryColorActive);return Nl(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],If.componentButtonSecondaryBorder,If.componentButtonSecondaryFill,If.componentButtonSecondaryColor,e.isPressed&&t,If.componentButtonSecondaryBorderHover,If.componentButtonSecondaryFillHover,If.componentButtonSecondaryColorHover,If.elevation1,t,e.isFocusVisible&&Nl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],If.componentButtonSecondaryFillFocus,If.componentButtonSecondaryColorFocus,If.componentButtonSecondaryBorderFocus,If.componentButtonSecondaryFocusRing),If.componentButtonSecondaryBorderDisabled,If.componentButtonSecondaryFillDisabled,If.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none;"],If.componentButtonCleanBorderActive,If.componentButtonCleanFillActive,If.componentButtonCleanColorActive);return Nl(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],If.componentButtonCleanFill,If.componentButtonCleanColor,e.isPressed&&t,If.componentButtonCleanFillHover,If.componentButtonCleanColorHover,t,e.isFocusVisible&&Nl(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],If.componentButtonCleanColorFocus,If.componentButtonCleanBorderFocus,If.componentButtonCleanFocusRing),If.componentButtonCleanFillDisabled,If.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Nl(["border-color:",";background-color:",";color:",";box-shadow:none;"],If.componentButtonDangerBorderActive,If.componentButtonDangerFillActive,If.componentButtonDangerColorActive);return Nl(["border-color:transparent;background-color:",";color:",";box-shadow:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],If.componentButtonDangerFill,If.componentButtonDangerColor,If.elevation1,e.isPressed&&t,If.componentButtonDangerBorderHover,If.componentButtonDangerFillHover,If.componentButtonDangerColorHover,If.elevation2,t,e.isFocusVisible&&Nl(["background-color:",";color:",";box-shadow:none;&,&:hover{border-color:",";box-shadow:",";}"],If.componentButtonDangerFillFocus,If.componentButtonDangerColorFocus,If.componentButtonDangerBorderFocus,If.componentButtonDangerFocusRing),If.componentButtonDangerBorderDisabled,If.componentButtonDangerFillDisabled,If.componentButtonDangerColorDisabled)}return""})),Mf=Gl.div.withConfig({displayName:"Icon4",componentId:"sc-11co88f-7"})(["display:flex;align-items:center;height:100%;"]),Ff=Gl(Mf).withConfig({displayName:"LeftIcon1",componentId:"sc-11co88f-8"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.lastChild?`calc(${If.spacing2} * -1) `:If.spacing3),If.spacing2),Lf=Gl(Mf).withConfig({displayName:"RightIcon2",componentId:"sc-11co88f-9"})(["margin-right:calc("," * -1);margin-left:",";"],If.spacing2,If.spacing3);function jf(){return t.createElement(Vf,{viewBox:"0 0 24 24","aria-hidden":"true"},t.createElement($f,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const Hf=ql(["100%{transform:rotate(360deg);}"]),Uf=ql(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),Vf=Gl.svg.withConfig({displayName:"Svg",componentId:"sc-11co88f-10"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Hf),$f=Gl.circle.withConfig({displayName:"Circle",componentId:"sc-11co88f-11"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],Uf),Wf=d((({children:e,className:n="",rightIcon:r,type:o="button","aria-label":i,isFullWidth:a=!1,icon:c,variant:l="secondary",isSmall:s=!1,isDisabled:u=!1,isPressed:d=!1,isLoading:p=!1,...f},m)=>{const h=function({variant:e,isSmall:t,icon:n,isDisabled:r,className:o=""}){return[o,"action-btn","secondary"===e||"clean"===e?"cancel gray":"cta-main blue",t?"button-small":"",n?"button-icon":"",r?"disabled":""].join(" ")}({className:n,variant:l,isSmall:s,icon:c,isDisabled:u});return t.createElement(Af,{"aria-label":i||f.title,className:h,disabled:u||p,type:o,variant:l,isPressed:d,isSmall:s,isFullWidth:a,as:f.href?"a":"button",ref:m,...f},p?t.createElement(t.Fragment,null,t.createElement(Ff,{lastChild:!e},t.createElement(jf,null)),e):t.createElement(t.Fragment,null,c&&t.createElement(Ff,{lastChild:!e},c),e,r&&t.createElement(Lf,null,r)))})),Yf=n("modern"),qf=d((({children:e,variant:n="secondary",isSmall:r=!1,icon:o,rightIcon:i,isDisabled:a=!1,isLoading:c=!1,type:l="button",...s},u)=>{const{isFocusVisible:d,focusProps:p}=Cs();return t.createElement(Rf,{variant:n,isSmall:r,disabled:c||a,type:l,as:s.href?"a":"button",isFocusVisible:d,ref:u,...p,...s},c?t.createElement(t.Fragment,null,t.createElement(Ff,{"data-testid":"ds-button-loading-icon",lastChild:!e},t.createElement(jf,null)),e):t.createElement(t.Fragment,null,o&&t.createElement(Ff,{lastChild:!e},o),e,i&&t.createElement(Lf,null,i)))})),Gf=d(((e,n)=>"legacy"===(i(Yf)||"modern")?t.createElement(Wf,{ref:n,...e}):t.createElement(qf,{ref:n,...e}))),Xf=Object.assign(Gf,{VersionProvider:Yf.Provider}),Kf=n(null);function Zf(){const e=i(Kf);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const Jf=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["height"].includes(e)&&t(e)}).withConfig({displayName:"FrameStyled",componentId:"sc-11co88f-12"})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:",";",""],(e=>e.isCheckeredBackground?"url(\"data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A\") ":If.gray25),(e=>"fixed"===e.height&&Nl(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),Qf=Gl.div.withConfig({displayName:"FocusRing",componentId:"sc-11co88f-13"})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]),em=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["height"].includes(e)&&t(e)}).withConfig({displayName:"Children",componentId:"sc-11co88f-14"})([""," display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"],(e=>"fixed"===e.height&&Nl(["position:absolute;inset:0;"]))),tm=Gl.div.withConfig({displayName:"Overlay1",componentId:"sc-11co88f-15"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]),nm=Gl.div.withConfig({displayName:"BadgeContainer",componentId:"sc-11co88f-16"})(["position:absolute;right:",";bottom:",";"],If.spacing4,If.spacing4),rm=Gl.div.withConfig({displayName:"IconContainer4",componentId:"sc-11co88f-17"})(["position:absolute;bottom:",";left:",";color:",";path{stroke:",";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"],If.spacing4,If.spacing4,If.white,If.gray100a),om=Gl.div.withConfig({displayName:"ProgressContainer",componentId:"sc-11co88f-18"})(["position:absolute;bottom:0;left:0;width:100%;"]),im={paragraphS:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize75,If.lineHeightText),paragraphM:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize100,If.lineHeightText),paragraphL:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize200,If.lineHeightText),uiTextXS:Nl(["font-weight:normal;font-size:",";line-height:20px;"],If.fontSize50),uiTextS:Nl(["font-weight:normal;font-size:",";line-height:20px;"],If.fontSize75),uiTextM:Nl(["font-weight:normal;font-size:",";line-height:20px;"],If.fontSize100),uiTextL:Nl(["font-weight:normal;font-size:",";line-height:24px;"],If.fontSize200),headingXS:Nl(["font-weight:600;font-size:",";line-height:",";"],If.fontSize100,If.lineHeightHeading),headingS:Nl(["font-weight:600;font-size:",";line-height:",";"],If.fontSize200,If.lineHeightHeading),headingM:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize400,If.lineHeightHeading),headingL:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize600,If.lineHeightHeading),headingXL:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize800,If.lineHeightHeading),headingXXL:Nl(["font-weight:normal;font-size:",";line-height:",";"],If.fontSize1000,If.lineHeightHeading)};function am({children:e,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...c}){return t.createElement(cm,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a,...c},e)}const cm=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["direction","wrap"].includes(e)&&t(e)}).withConfig({displayName:"FlexStyled",componentId:"sc-11co88f-19"})(["display:flex;flex-direction:",";flex-wrap:",";gap:",";justify-content:",";align-items:",";box-sizing:border-box;width:100%;height:100%;"],(e=>e.direction),(e=>e.wrap),(e=>If[`spacing${e.gap}`]),(e=>e.justifyContent),(e=>e.alignItems));function lm(e){if(!/^#([\da-f]{3}){1,2}$/i.test(e))throw new Error(`Invalid HEX to RGB conversion: ${e}`);let t,n,r;return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):(t="",n="",r=""),`${Number(t)} ${Number(n)} ${Number(r)}`}const sm={"--white":"#ffffff","--white-rgb":lm("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":lm("#002233"),"--gray900":"#1a3847","--gray800":"#334e5c","--gray700":"#4d6470","--gray600":"#667a85","--gray500":"#809199","--gray400":"#99a7ad","--gray300":"#b3bdc2","--gray200":"#ccd3d6","--gray100":"#e6e9eb","--gray75":"#ebedef","--gray50":"#f2f4f5","--gray25":"#f7f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue500-rgb":lm("#0099ff"),"--blue500a10":"rgb(var(--blue500-rgb) / 10%)","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":lm("#f23e0d"),"--red500a10":"rgb(var(--red500-rgb) / 10%)","--red500a50":"rgb(var(--red500-rgb) / 50%)","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":lm("#fea900"),"--yellow500a10":"rgb(var(--yellow500-rgb) / 10%)","--yellow600":"#e59800","--yellow700":"#cb8700","--green500":"#72d400","--purple1000":"#15122e","--purple900":"#1f1b44","--purple800":"#2a245c","--purple700":"#40378a","--purple600":"#5549b8","--purple500":"#6b5ce6","--purple400":"#978ced","--purple300":"#c3bdf5","--purple200":"#e1defa","--purple100":"#f7f6fd","--magenta1000":"#2e0d18","--magenta900":"#451424","--magenta800":"#5c1b30","--magenta700":"#8a2949","--magenta600":"#b83761","--magenta500":"#e6457a","--magenta400":"#eb6a94","--magenta300":"#f5b4c9","--magenta200":"#fad9e4","--magenta100":"#fdf5f8","--teal1000":"#062822","--teal900":"#0a3c32","--teal800":"#0d5144","--teal700":"#147a66","--teal600":"#1ba388","--teal500":"#22ccaa","--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":fm("brandPrimary700","#0087e0"),"--brandPrimary600":fm("brandPrimary600","#0095eb"),"--brandPrimary500":fm("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":fm("brandPrimary500-rgb",lm("#00aaff")),"--brandPrimary300":fm("brandPrimary300","#b3e6ff"),"--brandPrimary100":fm("brandPrimary100","#e5f7ff"),"--spacing1":"2px","--spacing2":"4px","--spacing3":"8px","--spacing4":"12px","--spacing5":"16px","--spacing6":"24px","--spacing7":"32px","--spacing8":"40px","--spacing9":"48px","--layoutSpacing1":"16px","--layoutSpacing2":"24px","--layoutSpacing3":"32px","--layoutSpacing4":"48px","--layoutSpacing5":"64px","--layoutSpacing6":"96px","--layoutSpacing7":"160px","--radiusSmall":"2px","--radiusMedium":"5px","--radiusLarge":"8px","--radiusCircle":"50%","--radiusPill":"9999px","--radiusBase":"var(--radiusMedium)","--brandRadiusBase":"var(--radiusBase)","--fontStackBase":"Source Sans Pro, SourceSansPro, system-ui, sans-serif","--brandFontStackBase":"inherit","--fontSize25":"10px","--fontSize50":"12px","--fontSize75":"14px","--fontSize100":"16px","--fontSize200":"18px","--fontSize300":"20px","--fontSize400":"22px","--fontSize500":"25px","--fontSize600":"28px","--fontSize700":"32px","--fontSize800":"36px","--fontSize900":"40px","--fontSize1000":"45px","--fontSizeBase":"var(--fontSize100)","--lineHeightBase":"1.25","--lineHeightHeading":"1.25","--lineHeightText":"1.5","--gray900a":"rgb(var(--gray1000-rgb) / 90%)","--gray800a":"rgb(var(--gray1000-rgb) / 80%)","--gray700a":"rgb(var(--gray1000-rgb) / 70%)","--gray600a":"rgb(var(--gray1000-rgb) / 60%)","--gray500a":"rgb(var(--gray1000-rgb) / 50%)","--gray400a":"rgb(var(--gray1000-rgb) / 40%)","--gray300a":"rgb(var(--gray1000-rgb) / 30%)","--gray200a":"rgb(var(--gray1000-rgb) / 20%)","--gray100a":"rgb(var(--gray1000-rgb) / 10%)","--gray75a":"rgb(var(--gray1000-rgb) / 7%)","--gray50a":"rgb(var(--gray1000-rgb) / 5%)","--gray25a":"rgb(var(--gray1000-rgb) / 3%)","--colorText":"var(--gray800)","--colorTextMuted":"var(--gray600)","--colorTextDisabled":"var(--gray400)","--focusRingWidth":"2px","--focusRingColorPrimary":"var(--blue500)","--focusRingColorSecondary":"var(--gray200)","--colorShadow":"var(--gray100a)","--elevationStatic":"0 0 0 1px var(--colorShadow)","--elevation1":"0 1px 4px -1px var(--colorShadow)","--elevation2":"0 2px 4px -1px var(--colorShadow)","--elevation4":"0 4px 6px -2px var(--colorShadow)","--elevation8":"0 8px 12px -2px var(--colorShadow)","--elevation12":"0 12px 12px -2px var(--colorShadow)","--elevation16":"0 16px 12px -2px var(--colorShadow)","--elevation24":"0 24px 12px -2px var(--colorShadow)","--componentButtonPrimaryBorderHover":"var(--brandPrimary600)","--componentButtonPrimaryBorderActive":"var(--brandPrimary700)","--componentButtonPrimaryBorderFocus":"var(--brandPrimary500)","--componentButtonPrimaryBorderDisabled":"transparent","--componentButtonPrimaryColor":"var(--white)","--componentButtonPrimaryColorHover":"var(--white)","--componentButtonPrimaryColorActive":"var(--white)","--componentButtonPrimaryColorFocus":"var(--white)","--componentButtonPrimaryColorDisabled":"var(--white)","--componentButtonPrimaryFill":"var(--brandPrimary500)","--componentButtonPrimaryFillHover":"var(--brandPrimary600)","--componentButtonPrimaryFillActive":"var(--brandPrimary700)","--componentButtonPrimaryFillFocus":"var(--brandPrimary500)","--componentButtonPrimaryFillDisabled":"var(--brandPrimary300)","--componentButtonPrimaryFocusRing":"0 0 0 3px rgb(var(--brandPrimary500-rgb) / 30%)","--componentButtonSecondaryBorder":"var(--gray100)","--componentButtonSecondaryBorderHover":"var(--gray200)","--componentButtonSecondaryBorderActive":"var(--gray300)","--componentButtonSecondaryBorderFocus":"var(--gray300)","--componentButtonSecondaryBorderDisabled":"var(--gray50)","--componentButtonSecondaryColor":"var(--gray800)","--componentButtonSecondaryColorHover":"var(--gray800)","--componentButtonSecondaryColorActive":"var(--gray800)","--componentButtonSecondaryColorFocus":"var(--gray800)","--componentButtonSecondaryColorDisabled":"var(--gray300)","--componentButtonSecondaryFill":"var(--gray25)","--componentButtonSecondaryFillHover":"var(--gray50)","--componentButtonSecondaryFillActive":"var(--gray75)","--componentButtonSecondaryFillFocus":"var(--gray25)","--componentButtonSecondaryFillDisabled":"var(--gray25)","--componentButtonSecondaryFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonCleanBorderFocus":"var(--gray200)","--componentButtonCleanBorderActive":"transparent","--componentButtonCleanColor":"var(--gray600)","--componentButtonCleanColorHover":"var(--gray900)","--componentButtonCleanColorActive":"var(--gray900)","--componentButtonCleanColorFocus":"var(--gray900)","--componentButtonCleanColorDisabled":"var(--gray300)","--componentButtonCleanFill":"transparent","--componentButtonCleanFillHover":"var(--gray25a)","--componentButtonCleanFillActive":"var(--gray50a)","--componentButtonCleanFillFocus":"var(--gray25a)","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonDangerBorderHover":"var(--red600)","--componentButtonDangerBorderActive":"var(--red700)","--componentButtonDangerBorderFocus":"var(--red500)","--componentButtonDangerBorderDisabled":"transparent","--componentButtonDangerColor":"var(--white)","--componentButtonDangerColorHover":"var(--white)","--componentButtonDangerColorActive":"var(--white)","--componentButtonDangerColorFocus":"var(--white)","--componentButtonDangerColorDisabled":"var(--white)","--componentButtonDangerFill":"var(--red500)","--componentButtonDangerFillHover":"var(--red600)","--componentButtonDangerFillActive":"var(--red700)","--componentButtonDangerFillFocus":"var(--red500)","--componentButtonDangerFillDisabled":"var(--red500a50)","--componentButtonDangerFocusRing":"0 0 0 3px rgb(var(--red500-rgb) / 30%)","--componentDividerColor":"var(--gray100a)","--componentCheckboxBorderUnchecked":"var(--gray300)","--componentCheckboxBorderUncheckedHover":"var(--gray500)","--componentCheckboxBorderUncheckedFocus":"var(--gray500)","--componentCheckboxFillDisabled":"var(--gray100)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUnchecked":"var(--gray300)","--componentRadioFillDisabled":"var(--gray100)","--componentRadioCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUncheckedHover":"var(--gray500)"},um={"--gray1000":"#ffffff","--gray1000-rgb":lm("#ffffff"),"--gray900":"#e6e9eb","--gray800":"#ccd3d6","--gray700":"#b3bdc2","--gray600":"#99a7ad","--gray500":"#809199","--gray400":"#667a85","--gray300":"#4d6470","--gray200":"#334e5c","--gray100":"#1a3847","--gray75":"#123141","--gray50":"#0d2d3d","--gray25":"#082939","--gray10":"#002233","--componentDividerColor":"var(--gray100a)","--focusRingColorSecondary":"var(--gray200a)","--componentCheckboxBorderUnchecked":"var(--gray300a)","--componentCheckboxBorderUncheckedHover":"var(--gray500a)","--componentCheckboxBorderUncheckedFocus":"var(--gray500a)","--componentCheckboxFillDisabled":"var(--gray100a)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUnchecked":"var(--gray300a)","--componentRadioFillDisabled":"var(--gray100a)","--componentRadioCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUncheckedHover":"var(--gray500a)"},dm=Yl(["",""],Nl([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",pm(sm),"ds-dark-theme",pm(um)));function pm(e){const t=Object.entries(e).map((e=>e.join(":")));return t.join(";")+";"}function fm(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}const mm={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}},hm=t.createContext({zIndexBase:1031});function gm({children:e,noTheme:n,zIndexBase:r=1031,buttonVersion:i="modern",dateFnsLocale:a}){const c=o((()=>({zIndexBase:r,dateFnsLocale:a})),[a,r]);return t.createElement(hm.Provider,{value:c},t.createElement(Ss.Provider,{value:mm},t.createElement(Xf.VersionProvider,{value:i},!n&&t.createElement(dm,null),e)))}const vm=["modal","datepicker","dropdown","tooltip"];function ym(e){return i(hm).zIndexBase+vm.indexOf(e)}function bm({position:e="top-center",timing:n="instant",className:o,...i}){const[l,s]=function(e){var t=void 0===e?{}:e,n=t.delayEnter,o=void 0===n?0:n,i=t.delayLeave,l=void 0===i?0:i,s=t.hideOnScroll,d=void 0===s||s,p=r(!1),f=p[0],m=p[1],h=c(null),g=c(cd.IDLE),v=c(!1),y=u((function(){clearTimeout(h.current),h.current=null,g.current=cd.IDLE}),[]);function b(e,t){if(g.current===cd.ENTERING&&h.current&&y(),f){if(t)return m(!1),h.current=null,void(g.current=cd.IDLE);g.current=cd.LEAVING,h.current=window.setTimeout((function(){m(!1),h.current=null,g.current=cd.IDLE}),l)}}return a((function(){function e(){f&&d&&(y(),m(!1))}function t(){f&&(y(),m(!1))}return window.addEventListener("scroll",e,!0),window.addEventListener("touchend",t,!0),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("touchend",t,!0),h.current&&clearTimeout(h.current)}}),[f,d,y]),[f,{onMouseEnter:function(){g.current===cd.LEAVING&&h.current&&y(),f||(g.current=cd.ENTERING,h.current=window.setTimeout((function(){m(!0),h.current=null,g.current=cd.IDLE}),o))},onMouseLeave:b,onTouchStart:function(){v.current=!1},onTouchMove:function(){v.current=!0},onTouchEnd:function(){v.current||f||m(!0),v.current=!1}},function(){return b(0,!0)}]}({delayEnter:"delay"===n?800:0}),{isFocusVisible:d,focusProps:p}=Cs(),f=ym("tooltip"),m=void 0===i.isOpen?l||d:i.isOpen,{triggerProps:h,layerProps:g,renderLayer:v}=vd({isOpen:m,auto:!0,snap:!0,placement:wm(e),possiblePlacements:xm(e),triggerOffset:8,containerOffset:8}),y="icon"in i?t.createElement(am,{alignItems:"center"},t.createElement(Cm,null,i.icon)," ",i.content):"label"in i&&i.isLabelVertical?t.createElement("div",null,t.createElement(Sm,null,i.label),t.createElement("div",null,i.content)):"label"in i&&!i.isLabelVertical?t.createElement(t.Fragment,null,t.createElement(km,null,i.label)," ",i.content):i.content;return t.createElement(t.Fragment,null,"function"==typeof i.children?i.children({...h,...s,...p}):t.createElement("div",{...h,...s,...p},i.children),m&&v(t.createElement(Em,{...g,zIndex:f,className:o},y)))}function wm(e){return{"top-left":"top-start","top-center":"top-center","top-right":"top-end",left:"left-center",right:"right-center","bottom-left":"bottom-start","bottom-center":"bottom-center","bottom-right":"bottom-end"}[e]}function xm(e){const t=["top-center","bottom-center"],n=["left-center","right-center"],r=["top-end","top-start","bottom-end","bottom-start"];return{"top-left":r,"top-center":t,"top-right":r,left:n,right:n,"bottom-left":r,"bottom-center":t,"bottom-right":r}[e]}const Em=Gl.div.withConfig({displayName:"TooltipContainer",componentId:"sc-11co88f-20"})([""," z-index:",";display:flex;max-width:240px;padding:calc("," / 2) ",";border-radius:",";background:",";color:",";word-break:break-word;"],im.uiTextS,(e=>e.zIndex),If.spacing4,If.spacing4,If.radiusBase,If.gray900a,If.gray10),Cm=Gl.span.withConfig({displayName:"IconContainer3",componentId:"sc-11co88f-21"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],If.spacing1,If.spacing2,If.spacing1,If.spacing2,If.gray400),km=Gl.span.withConfig({displayName:"LabelContainer",componentId:"sc-11co88f-22"})(["margin-right:",";color:",";"],If.spacing2,If.gray400),Sm=Gl.div.withConfig({displayName:"VerticalLabelContainer",componentId:"sc-11co88f-23"})(["color:",";"],If.gray400);function _m({children:e,tooltipPosition:n="top-left"}){const[i,s]=r(!1),d=c(null);function p(){if(d.current){const e=d.current.offsetWidth<d.current.scrollWidth;s(e)}}return function(e){void 0===e&&(e={});var t=e.onResize,n=c(void 0);n.current=t;var i=e.round||Math.round,l=c(),s=r({width:void 0,height:void 0}),d=s[0],p=s[1],f=c(!1);a((function(){return f.current=!1,function(){f.current=!0}}),[]);var m=c({width:void 0,height:void 0}),h=function(e,t){var n=c(null),r=c(null);r.current=t;var o=c(null);a((function(){i()}));var i=u((function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return a((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),u((function(e){o.current=e,i()}),[i])}(u((function(t){return l.current&&l.current.box===e.box&&l.current.round===i||(l.current={box:e.box,round:i,instance:new ResizeObserver((function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=Ou(r,o,"inlineSize"),c=Ou(r,o,"blockSize"),l=a?i(a):void 0,s=c?i(c):void 0;if(m.current.width!==l||m.current.height!==s){var u={width:l,height:s};m.current.width=l,m.current.height=s,n.current?n.current(u):f.current||p(u)}}))}),l.current.instance.observe(t,{box:e.box}),function(){l.current&&l.current.instance.unobserve(t)}}),[e.box,i]),e.ref);o((function(){return{ref:h,width:d.width,height:d.height}}),[h,d.width,d.height])}({ref:d,onResize:()=>{p()}}),l((()=>{p()}),[]),t.createElement(Im,{ref:d},i?t.createElement(bm,{content:e,position:n,timing:"delay"},(n=>t.createElement("span",{...n},e))):e)}const Im=Gl.span.withConfig({displayName:"StyledText",componentId:"sc-11co88f-24"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),Bm=Gl.div.withConfig({displayName:"HeaderStyled1",componentId:"sc-11co88f-25"})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]),Tm=Gl.div.withConfig({displayName:"ThumbnailContainer3",componentId:"sc-11co88f-26"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],If.spacing4),Nm=Gl.div.withConfig({displayName:"Title4",componentId:"sc-11co88f-27"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],im.uiTextM,If.gray800),Dm=Gl.div.withConfig({displayName:"Detail",componentId:"sc-11co88f-28"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],im.uiTextS,If.spacing2,If.gray600),zm=Gl.div.withConfig({displayName:"IconContainer2",componentId:"sc-11co88f-29"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],If.spacing2,If.gray600),Pm=Gl.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-11co88f-30"})([""," padding:",";border-top:1px solid ",";color:",";"],im.uiTextS,(e=>"all"===e.padding?"var(--card-content-padding)":"0"),If.gray100a,If.colorText),Om=d((({children:e,isDisabled:n=!1,isPressed:r=!1,tooltip:o,"aria-label":i,...a},c)=>{const{isFocusVisible:l,focusProps:s}=Cs(),u=t.createElement(Am,{disabled:n,type:"button",isFocusVisible:l,ref:c,isPressed:r,"aria-label":i,...s,...a},e);return o?t.createElement(bm,{timing:"delay",content:o},u):u})),Am=Gl.button.withConfig({displayName:"ContextActionButtonStyled",componentId:"sc-11co88f-31"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;height:32px;padding:0 ",";border:none;border-radius:",";background-color:transparent;box-shadow:0 0 0 1px ",";font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentColor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;",""],If.spacing3,If.brandRadiusBase,If.gray100a,If.fontSize75,If.brandFontStackBase,If.lineHeightBase,(e=>{const t=Nl(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],If.gray10,If.gray800,If.gray100a);return Nl(["background-color:rgb("," / 90%);color:",";"," &:hover{background-color:",";color:",";box-shadow:",",",";}&:active{","}&:disabled{background-color:rgb("," / 70%);color:",";box-shadow:0 0 0 1px ",";cursor:default;}"],If["white-rgb"],If.gray600a,e.isPressed&&t,If.gray10,If.gray800,If.elevation1,If.elevationStatic,t,If["white-rgb"],If.gray200a,If.gray100a)})),Rm=Gl.div.withConfig({displayName:"ImagesStyled",componentId:"sc-11co88f-32"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;"],If.spacing1),Mm=Gl.img.withConfig({displayName:"ImgStyled",componentId:"sc-11co88f-33"})(["object-fit:",";width:100%;height:100%;min-height:0;max-height:410px;&:nth-child(1){grid-row:1 / -1;grid-column:1;}&:nth-child(1):last-child{grid-column:span 2;}&:nth-child(2){grid-row:1;grid-column:2;}&:nth-child(2):last-child{grid-row:span 2;}&:nth-child(3){grid-row:2;grid-column:2;}"],(e=>"fill"===e.contentResize?"cover":"scale-down"));function Fm({children:e,...n}){return t.createElement(Lm,{...n},t.createElement(jm,null,e))}const Lm=Gl.div.withConfig({displayName:"Placeholder1",componentId:"sc-11co88f-34"})(["display:grid;place-items:center;min-height:100px;"]),jm=Gl.div.withConfig({displayName:"IconContainer1",componentId:"sc-11co88f-35"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],If.brandRadiusBase,If.gray10,If.gray600);function Hm(e){return o((()=>e+"-"+yd()),[e])}const Um=Gl.div.withConfig({displayName:"Placeholder",componentId:"sc-11co88f-36"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";"],(e=>e.backgroundColor));function Vm({children:e,variant:n="outlined",isSelected:r=!1,contextAction:i,onClick:a,onSelect:c,as:l="button",href:s,to:u,selectButtonAriaLabel:d,"aria-label":p,...f}){const m=Hm("card-title"),h=o((()=>({variant:n,isSelected:r,cardTitleId:m})),[r,n,m]);return t.createElement(Kf.Provider,{value:h},t.createElement($m,{variant:n,isSelected:r,...f},t.createElement(Wm,{as:l,to:u,href:"a"===l?s:void 0,type:"button"===l?"button":void 0,onClick:function(e){if(c&&(e.metaKey||e.ctrlKey||e.shiftKey))return c(e),void e.preventDefault();null==a||a(e)},"aria-labelledby":p?void 0:m,"aria-label":p},e),i?t.createElement(qm,null,i):null,c?t.createElement(Ym,{type:"button",isSelected:r,onClick:c,"aria-label":d},t.createElement(Su,null)):null))}Vm.Frame=function({children:e,progressBar:n,badge:r,icon:o,isCheckeredBackground:i=!1,height:a="fixed",...c}){const{variant:l,isSelected:s}=Zf();return t.createElement(Jf,{isCheckeredBackground:i,height:a,...c},"clean"===l&&s&&t.createElement(Qf,null),t.createElement(em,{height:a},e),t.createElement(tm,null),n?t.createElement(om,null,n):null,r?t.createElement(nm,null,t.createElement(Bf,{color:"black-alpha"},r)):null,o?t.createElement(rm,null,o):null)},Vm.Header=function({thumbnail:e,title:n,detail:r,icon:o,isNotTruncated:i=!1,...a}){const{cardTitleId:c}=Zf();return t.createElement(Bm,{...a},e?t.createElement(Tm,null,e):null,t.createElement(Nm,{id:c},i?n:t.createElement(_m,null,n)),r?t.createElement(Dm,null,i?r:t.createElement(_m,null,r)):null,o?t.createElement(zm,null,o):null)},Vm.AdditionalInfo=function({children:e,padding:n="all",...r}){return t.createElement(Pm,{padding:n,...r},e)},Vm.ContextActionButton=Om,Vm.Images=function({children:e,...n}){return t.createElement(Rm,{...n},e)},Vm.Img=function({src:e,contentResize:n="fill",alt:r="",...o}){return t.createElement(Mm,{src:e,alt:r,contentResize:n,...o})},Vm.FilePlaceholder=Fm,Vm.PlaceholderIcon=Fm,Vm.IconPlaceholder=function({children:e,backgroundColor:n=If.gray25,iconColor:r=If.gray400a,...o}){const i=t.useMemo((()=>({color:r,size:"48px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}})),[r]);return t.createElement(Um,{...o,backgroundColor:n},t.createElement(Ss.Provider,{value:i},e))};const $m=Gl.div.withConfig({displayName:"Container7",componentId:"sc-11co88f-37"})(["--card-border-radius:",";--card-inner-border-color:",";--card-inner-border-width:1px;--card-selected-border-color:var(--userComponentCardSelectedColor,",");--card-selected-border-width:2px;--card-elevation:",";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:",";--card-actions-opacity:1;}&:focus-within{--card-actions-opacity:1;}"," position:relative;box-sizing:border-box;min-width:224px;border-radius:var(--card-border-radius);background:",";box-shadow:var(--card-box-shadow);"],If.radiusBase,If.gray100a,If.brandPrimary500,If.elevation1,If.gray100a,(e=>"outlined"===e.variant?Nl(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:"," ",";&:hover{--card-inner-border-color:",";--card-elevation:",";}",""],If.spacing4,If.spacing5,If.gray200a,If.elevation2,e.isSelected?Nl(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]):""):Nl(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],If.spacing3)),If.gray10),Wm=Gl.button.withConfig({displayName:"MainAction",componentId:"sc-11co88f-38"})(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:pointer;"]),Ym=Gl.button.withConfig({displayName:"SelectButton",componentId:"sc-11co88f-39"})(["position:absolute;top:",";right:",";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb(var(--white-rgb) / 80%);border-radius:",";background:none;color:transparent;opacity:",";cursor:pointer;&:hover{border-color:",";}&:active{border-width:3px;border-color:",";}",""],If.spacing4,If.spacing4,If.radiusCircle,(e=>e.isSelected?"1":"var(--card-actions-opacity)"),If.white,If.white,(e=>e.isSelected&&Nl(["border:none;background:var(--userComponentCardSelectedColor,",");color:",";&:hover{background:var(--userComponentCardSelectedColorHover,",");box-shadow:",";}&:active{background:var(--userComponentCardSelectedColorActive,",");box-shadow:none;}"],If.brandPrimary500,If.white,If.brandPrimary600,If.elevation1,If.brandPrimary700))),qm=Gl.div.withConfig({displayName:"ActionContainer",componentId:"sc-11co88f-40"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],If.spacing4,If.spacing4);function Gm(){return t.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z"}))}function Xm({isChecked:e=!1,isDisabled:n=!1,isIndeterminate:r=!1,inputProps:o,children:i,onChange:a=(()=>{}),id:c,...l}){const{isFocusVisible:s,focusProps:u}=Cs();return t.createElement(Km,{isIndeterminate:r,isDisabled:n,isChecked:e,className:"ds-checkbox__pointer-events-wrapper",...l},t.createElement(Qm,{type:"checkbox",ref:e=>{e&&(e.indeterminate=r)},"aria-checked":r?"mixed":e,disabled:n,checked:e,onChange:a,id:c,...u,...o}),t.createElement(Zm,null,t.createElement(Jm,{isFocusVisible:s,isIndeterminate:r,isDisabled:n,isChecked:e},e&&t.createElement(Gm,null),r&&t.createElement(eh,null))),i&&t.createElement(th,{isDisabled:n},i))}Xm.pointerEventsClassname="ds-checkbox__pointer-events-wrapper";const Km=Gl.label.withConfig({displayName:"Container6",componentId:"sc-11co88f-41"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],im.uiTextM,If.spacing1,(e=>!e.isDisabled&&"pointer")),Zm=Gl.div.withConfig({displayName:"IndicatorPosition1",componentId:"sc-11co88f-42"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),Jm=Gl.div.withConfig({displayName:"Indicator3",componentId:"sc-11co88f-43"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-radius:calc( "," + 3px );}"," "," "," "," ",":hover &,",":focus-visible &{"," background-color:",";}"],If.componentCheckboxBorderUnchecked,If.radiusMedium,If.focusRingWidth,If.radiusMedium,(e=>e.isFocusVisible&&Nl(["border-color:",";&::before{border-color:",";}"],If.componentCheckboxBorderUncheckedFocus,e.isChecked||e.isIndeterminate?If.focusRingColorPrimary:If.focusRingColorSecondary)),(e=>e.isChecked&&Nl(["border-color:transparent;background-color:",";fill:#fff;"],If.blue500)),(e=>e.isIndeterminate&&Nl(["border-color:transparent;background-color:",";"],If.blue500)),(e=>e.isDisabled&&Nl(["border-color:transparent;background-color:",";fill:",";"],If.componentCheckboxFillDisabled,If.componentCheckboxCheckmarkColorDisabled)),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",(e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${If.componentCheckboxBorderUncheckedHover};`),(e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:If.blue600)),Qm=Gl.input.withConfig({displayName:"Input2",componentId:"sc-11co88f-44"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),eh=Gl.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-11co88f-45"})(["width:8px;height:2px;border-radius:",";background-color:",";"],If.radiusPill,If.white),th=Gl.div.withConfig({displayName:"Label4",componentId:"sc-11co88f-46"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?If.gray400:If.colorText)),nh=n(void 0);function rh(e){if(!i(nh))throw new Error(`<Form.${e}> cannot be rendered outside the <Form.Group> component`)}const oh=Gl.div.withConfig({displayName:"GroupStyled",componentId:"sc-11co88f-47"})(["margin:0;padding:"," 0;border:0;"],If.spacing3),ih=Gl.div.withConfig({displayName:"HelperTextStyled",componentId:"sc-11co88f-48"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],im.uiTextS,If.spacing2,(e=>e.hasIcon?"2px":"0"),(e=>e.isInvalid?If.red500:If.gray600)),ah=Gl.div.withConfig({displayName:"Icon3",componentId:"sc-11co88f-49"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],If.spacing2),ch=Gl.label.withConfig({displayName:"LabelStyled",componentId:"sc-11co88f-50"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],im.uiTextM,If.spacing3,If.colorText),lh=Gl.span.withConfig({displayName:"SecondaryText",componentId:"sc-11co88f-51"})(["color:",";"],If.gray600),sh=Gl.span.withConfig({displayName:"Space",componentId:"sc-11co88f-52"})(["display:inline-block;width:",";"],If.spacing3),uh=Gl.div.withConfig({displayName:"RowStyled",componentId:"sc-11co88f-53"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],If.spacing4),dh=Gl.div.withConfig({displayName:"InputRowStyled",componentId:"sc-11co88f-54"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],If.spacing4);function ph({children:e,onSubmit:n,...r}){return t.createElement("form",{onSubmit:n,...r},e)}ph.Group=function({children:e,...n}){return t.createElement(nh.Provider,{value:"group"},t.createElement(oh,{...n},e))},ph.HelperText=function({icon:e,isInvalid:n,children:r,...o}){return rh("HelperText"),t.createElement(ih,{isInvalid:n,hasIcon:Boolean(e),...o},e&&t.createElement(ah,null,e),r)},ph.Label=function({children:e,secondaryText:n,htmlFor:r,id:o,...i}){return rh("Label"),t.createElement(ch,{htmlFor:r,id:o,...i},e,n?t.createElement(lh,null,t.createElement(sh,null," "),n):null)},ph.Row=function({children:e,...n}){return t.createElement(uh,{...n},e)},ph.InputRow=function({children:e,...n}){return rh("InputRow"),t.createElement(dh,{...n},e)},ph.IconError=function(e){return Bs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)},Gl.ul.withConfig({displayName:"List1",componentId:"sc-11co88f-55"})(["margin:0;padding:0;list-style:none;"]),Gl.li.withConfig({displayName:"Item5",componentId:"sc-11co88f-56"})(["&:not(:last-child){margin-bottom:",";}"],If.spacing2);const fh=Gl.span.withConfig({displayName:"DeleteButton",componentId:"sc-11co88f-57"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc("," * -1) 0 ",";padding:0;border:0;border-radius:",";background:none;color:",";outline:0;cursor:pointer;&:hover{background:",";color:",";}&:active{background:",";}"],If.spacing3,If.spacing3,If.radiusCircle,(e=>e.isDisabled?If.gray400:If.gray600),If.gray50a,If.gray800,If.gray100a);Gl.button.withConfig({displayName:"ChipStyled",componentId:"sc-11co88f-58"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],If.radiusPill,If.gray50,If.gray800,If.brandFontStackBase,(e=>e.onClick&&Nl(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],If.gray75,fh,If.gray800,If.gray100)),(e=>e.isFocusVisible&&Nl(["background:",";box-shadow:inset ",";outline:0;"],If.gray25,If.elevationStatic)),(e=>"m"===e.size&&gh),(e=>"s"===e.size&&hh),(e=>e.isDisabled&&vh));const mh=Gl.div.withConfig({displayName:"ThumbnailContainer2",componentId:"sc-11co88f-59"})(["display:block;"]),hh=Nl([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],im.uiTextS,mh,If.spacing3,If.spacing3),gh=Nl([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],im.uiTextM,mh,If.spacing3,If.spacing4),vh=Nl(["background-color:",";color:",";pointer-events:none;"],If.gray25,If.gray400);function yh(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-11co88f-60"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],If.spacing2,If.spacing3),Gl.div.withConfig({displayName:"StyledHeaderCaption",componentId:"sc-11co88f-61"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:",";margin-left:",";",""],If.spacing4,If.spacing4,im.uiTextM),Gl.div.withConfig({displayName:"StyledContainer",componentId:"sc-11co88f-62"})(["z-index:",";padding:",";border-radius:",";background-color:",";box-shadow:",",",";"],(e=>e.zIndex),If.spacing4,If.radiusMedium,If.white,If.elevationStatic,If.elevation2),Gl.div.withConfig({componentId:"sc-11co88f-63"})(["padding-top:",";"],If.spacing4),Yl(["",""],Nl([".rdp{background-color:",";color:",";","}.rdp-caption{display:flex;justify-content:space-between;align-items:center;}.rdp-table{padding:",";border-spacing:",";}.rdp-head_cell{height:30px;padding:0;text-align:center;","}.rdp-cell{padding:0;}.rdp-day{width:32px;height:32px;border:none;border-radius:",";background-color:",";color:",";outline:none;font-family:inherit;cursor:pointer;"," &_disabled{color:",";pointer-events:none;}&:focus-visible{background-color:",";color:",";box-shadow:0 0 0 2px ",",inset 0 0 0 1px ",";}&:hover{background-color:",";color:",";}}.rdp-day_today{background-color:",";color:",";font-weight:600;}.rdp-day_selected{background-color:",";color:",";&.rdp-day_outside,&.rdp-day_disabled{color:",";}&:focus-visible{background-color:",";color:",";box-shadow:0 0 0 2px ",",inset 0 0 0 1px ",";}&:hover{background-color:",";color:",";}}.rdp-day_outside{color:",";}.rdp-vhidden{display:none;}"],If.white,If.gray800,im.uiTextS,If.spacing1,If.spacing1,im.uiTextS,If.radiusMedium,If.white,If.gray600,im.uiTextS,If.gray200,If.gray50,If.gray800,If.gray200a,If.white,If.gray50,If.gray800,If.gray25,If.gray800,If.blue500,If.white,If.blue200,If.blue500,If.white,If.blue500,If.white,If.blue600,If.white,If.gray200));const bh=Gl.div.withConfig({displayName:"InputWrapper",componentId:"sc-11co88f-64"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--ds-input-height);padding:0 var(--ds-input-side-padding);border:1px solid ",";border-radius:",";background:",";&:hover{border-color:",";box-shadow:",";}&:focus-within{border-color:",";box-shadow:0 0 0 3px ",";}",";",";"],(e=>e.isSmall?Nl(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],If.spacing4,If.spacing2):Nl(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],If.spacing5,If.spacing3)),(e=>e.isInvalid?If.red500:If.gray100),If.radiusMedium,If.gray10,(e=>e.isInvalid?If.red600:If.gray200),If.elevation1,(e=>e.isInvalid?If.red500:If.gray300),If.gray100,(e=>e.isDisabled&&Nl(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],If.gray100,If.gray25,If.gray600,If.gray100)),(e=>"clean"===e.variant&&Nl(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],If.gray25a,If.gray50a))),wh=Gl.input.withConfig({displayName:"InputStyled",componentId:"sc-11co88f-65"})(["&&&{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;background:transparent;color:",";box-shadow:none;outline:none;font-family:",";"," &::-webkit-inner-spin-button,&::-webkit-outer-spin-button{display:none;margin:0;appearance:none;}&[type='number']{appearance:textfield;}&::placeholder{color:",";}&:disabled{color:",";cursor:not-allowed;&::placeholder{color:",";}}}"],If.colorText,If.brandFontStackBase,im.uiTextM,If.gray400,If.gray600,If.gray400),xh=Gl.div.withConfig({displayName:"LeftItems",componentId:"sc-11co88f-66"})(["display:flex;gap:var(--ds-input-icons-gap);align-items:center;margin-right:var(--ds-input-icons-gap);"]),Eh=Gl.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-11co88f-67"})(["flex:none;margin-left:calc("," * -1);color:",";"],If.spacing2,If.gray600),Ch=Gl.div.withConfig({displayName:"PrefixContainer",componentId:"sc-11co88f-68"})(["color:",";"],(e=>e.isDisabled?If.gray400:If.gray600)),kh=Gl.div.withConfig({displayName:"RightItems",componentId:"sc-11co88f-69"})(["display:flex;flex:none;gap:var(--ds-input-icons-gap);align-items:center;margin-right:calc("," * -1);margin-left:var(--ds-input-icons-gap);"],If.spacing2),Sh=Gl.div.withConfig({displayName:"SuffixContainer",componentId:"sc-11co88f-70"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.isDisabled?If.gray400:If.gray600),If.spacing2),_h=Gl.div.withConfig({displayName:"IconRightContainer",componentId:"sc-11co88f-71"})(["display:grid;flex:none;align-items:center;color:",";"],If.gray600),Ih=Gl.button.withConfig({displayName:"ClearButton",componentId:"sc-11co88f-72"})(["flex:none;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:focus{color:",";outline:none;}&:active{color:",";}"],If.gray200a,If.gray300a,If.gray400a);function Bh({icon:e,onClick:n,isTooltipShown:r=!1,label:o,isDisabled:i=!1,...a}){const{isFocusVisible:c,focusProps:l}=Cs();return r?t.createElement(bm,{content:o,isOpen:!!c||void 0},(r=>t.createElement(Th,{...a,...r,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e))):t.createElement(Th,{...a,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e)}const Th=Gl.button.withConfig({displayName:"InteractiveIconWrapper",componentId:"sc-11co88f-73"})(["width:24px;height:24px;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:active{color:",";}&:disabled{color:",";cursor:not-allowed;}",""],If.gray600,If.gray800,If.gray200,(e=>e.isFocusVisible&&Nl(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],If.gray800,If.gray200))),Nh=d((({hasClearButton:e=!1,icon:n,iconRight:o,id:i,name:a,isDisabled:l=!1,isReadOnly:s=!1,isInvalid:u=!1,isSmall:d=!1,onBlur:p,onChange:f,onFocus:m,onKeyDown:h,placeholder:g,type:v="text",value:y,variant:b="outlined","aria-label":w,"aria-labelledby":x,"aria-describedby":E,inputRef:C,maxLength:k,prefix:S,suffix:_,...I},B)=>{const[T,N]=r(!1),D=c(null),z=C||D,P=e&&y.length>0&&"number"!==v&&"password"!==v,O="password"===v?T?"text":"password":v;function A(){var e;null==z||null===(e=z.current)||void 0===e||e.focus()}const R=Boolean(n||S),M="password"===v,F=Boolean(!M&&(P||o)),L=Boolean(F||M||_);return t.createElement(bh,{...I,isDisabled:l,isInvalid:u,isSmall:d,onClick:A,ref:B,variant:b},R&&t.createElement(xh,null,n&&t.createElement(Eh,null,n),S&&t.createElement(Ch,{isDisabled:l},S)),t.createElement(wh,{autoComplete:"off",autoCorrect:"off",disabled:l,isDisabled:l,readOnly:s,onBlur:p,onChange:function(e){const t=e.currentTarget.value;null==f||f(t)},onFocus:m,onKeyDown:h,placeholder:g,ref:z,spellCheck:!1,type:O,value:y,"aria-label":w,"aria-labelledby":x,"aria-describedby":E,id:i,name:a,maxLength:k}),L&&t.createElement(kh,null,_&&t.createElement(Sh,{isDisabled:l},_),M&&t.createElement(Bh,{"data-testid":"ds-input-password-visibility-button",onClick:()=>(N((e=>!e)),void A()),label:T?"Hide password":"Show password",icon:T?t.createElement(Ws,null):t.createElement($s,null),isTooltipShown:!0}),P&&t.createElement(Ih,{"data-testid":"ds-input-clear-button",onClick:function(){null==f||f(""),A()},type:"button"},t.createElement(ku,null)),o&&t.createElement(_h,null,o)))}));function Dh({direction:e="horizontal",...n}){return"horizontal"===e?t.createElement(zh,{...n}):t.createElement(Ph,{role:"separator",...n})}const zh=Gl.hr.withConfig({displayName:"HorizontalDivider",componentId:"sc-11co88f-74"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],If.spacing3,If.componentDividerColor),Ph=Gl.div.withConfig({displayName:"VerticalDivider",componentId:"sc-11co88f-75"})(["box-sizing:content-box;width:1px;margin:0;padding:0 ",";background:",";background-clip:content-box;"],If.spacing2,If.componentDividerColor),Oh=Gl.div.withConfig({displayName:"ArrowStyled",componentId:"sc-11co88f-76"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],If.spacing2,If.spacing2),Ah=n(null);function Rh(){const e=i(Ah);if(!e)throw new Error("Dropdown compound components cannot be rendered outside the Dropdown component");return e}function Mh(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const Fh=n(void 0),Lh=d((({children:e,minWidth:n,...r},o)=>{const l=ym("dropdown"),s=c(null),{dispatch:u}=Rh(),d=i(Fh);return a((()=>()=>{u({type:"purge-menu-items",payload:d})}),[e,u,d]),t.createElement(jh,{minWidth:n,role:"menu",ref:Mh(o,s),zIndex:l,...r},e)})),jh=Gl.div.withConfig({displayName:"ContainerStyled",componentId:"sc-11co88f-77"})(["z-index:",";overflow-y:auto;box-sizing:border-box;min-width:",";max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";color:",";box-shadow:",",",";&:empty{display:none;}"],(e=>e.zIndex),(e=>e.minWidth?e.minWidth:"224px"),If.spacing3,If.spacing3,If.radiusBase,If.gray10,If.colorText,If.elevationStatic,If.elevation2);function Hh({children:e,isChecked:n,isDisabled:r,inputProps:o,onChange:i=(()=>{}),...a}){const{isFocusVisible:c,focusProps:l}=Cs();return t.createElement(Uh,{isDisabled:r,className:"ds-switch__pointer-events-wrapper",...a},e&&t.createElement(Vh,null,e),t.createElement($h,null,t.createElement(Wh,null,t.createElement("input",{role:"switch",type:"checkbox",disabled:r,onChange:i,checked:n,"aria-checked":n,...l,...o}),t.createElement(Yh,{"aria-hidden":"true",isDisabled:r,isFocusVisible:c}))))}Hh.pointerEventsClassname="ds-switch__pointer-events-wrapper";const Uh=Gl.label.withConfig({displayName:"SwitchStyled",componentId:"sc-11co88f-78"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],im.uiTextM,If.spacing1,If.gray800,(e=>!e.isDisabled&&"pointer")),Vh=Gl.span.withConfig({displayName:"Label2",componentId:"sc-11co88f-79"})(["align-self:center;margin-right:",";"],If.spacing4),$h=Gl.span.withConfig({displayName:"ToggleAlignment",componentId:"sc-11co88f-80"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]),Wh=Gl.span.withConfig({displayName:"Toggle",componentId:"sc-11co88f-81"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]),Yh=Gl.span.withConfig({displayName:"Indicator2",componentId:"sc-11co88f-82"})(["position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:100%;height:100%;border-radius:",";background:",";cursor:",";transition:0.2s;&::before{content:'';position:absolute;right:calc(100% - 20px);bottom:2px;left:2px;height:18px;border-radius:50%;background-color:",";box-shadow:",";transition:0.2s;}"," input:checked + &{background-color:",";opacity:",";&::before{right:2px;left:calc(100% - 20px);background-color:",";}}"," ",":hover &,",":focus-visible &{background-color:",";}",":hover input:checked + &,",":focus-visible input:checked + &{background-color:",";}",""],If.radiusPill,(e=>e.isDisabled?If.gray100:If.gray75),(e=>!e.isDisabled&&"pointer"),(e=>e.isDisabled?If.gray50:If.gray10),If.elevation2,Wh,(e=>e.isDisabled?If.gray400:If.blue500),(e=>e.isDisabled?"0.5":"1"),(e=>e.isDisabled?If.gray100:If.gray10),(e=>!e.isDisabled&&Nl(["",":active input + &::before{right:calc(100% - 24px);left:2px;border-radius:9px;}",":active input:checked + &::before{right:2px;left:calc(100% - 24px);}"],".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper")),".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",If.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",(e=>e.isDisabled?If.gray400:If.blue600),(e=>e.isFocusVisible&&Nl([""," input + &{background-color:",";&::after{content:'';position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:2px solid ",";border-radius:100px;}}"," input:checked + &::after{border-color:",";}"],Wh,If.gray100,If.gray200,Wh,If.blue500))),qh=Gl.div.withConfig({displayName:"ItemWrapper1",componentId:"sc-11co88f-83"})(["position:relative;"]),Gh=Gl.button.withConfig({displayName:"ItemStyled1",componentId:"sc-11co88f-84"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:36px;margin:0;padding:0 ",";border:none;background:none;color:",";outline:none;font-family:",";cursor:pointer;"," "," &:hover{background:",";color:",";}&:active{background:",";color:",";}&:disabled{background:none;color:",";cursor:default;}"],im.uiTextS,If.spacing5,(e=>e.isChecked?If.gray800:If.gray600),If.brandFontStackBase,(e=>e.isSubmenuOpen&&Nl(["background:",";color:",";"],If.gray25,If.gray800)),(e=>e.isHighlighted&&Nl(["background:",";color:",";"],If.gray50,If.gray800)),If.gray25,If.gray800,If.gray50,If.gray800,If.gray400),Xh=Gl.span.withConfig({displayName:"CheckboxContainer1",componentId:"sc-11co88f-85"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],If.spacing3),Kh=Gl.span.withConfig({displayName:"Icon2",componentId:"sc-11co88f-86"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],If.spacing3),Zh=Gl.span.withConfig({displayName:"Label1",componentId:"sc-11co88f-87"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),Jh=Gl.span.withConfig({displayName:"RightContainer",componentId:"sc-11co88f-88"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],If.spacing3,If.spacing2),Qh=Gl.span.withConfig({displayName:"SubmenuIconContainer",componentId:"sc-11co88f-89"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],If.spacing3,If.spacing3,(e=>e.isActive?If.gray400:If.gray200),Gh,Gh,If.gray400),eg=Gl(Lh).withConfig({displayName:"SubMenuContainer",componentId:"sc-11co88f-90"})(["margin-top:calc("," * -1);"],If.spacing3),tg=Gl.div.withConfig({displayName:"SectionTitleStyled",componentId:"sc-11co88f-91"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],im.uiTextS,If.spacing4,If.spacing5,If.spacing3,If.gray800);function ng(e){return{"bottom-center":{placement:"bottom-center",possiblePlacements:["bottom-center","top-center"]},"bottom-left":{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"bottom-right":{placement:"bottom-end",preferX:"right",preferY:"bottom",possiblePlacements:["bottom-end","top-end"]},bottom:{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"top-left":{placement:"top-start",preferX:"left",preferY:"top",possiblePlacements:["top-start","bottom-start"]},"top-right":{placement:"top-end",preferX:"right",preferY:"top",possiblePlacements:["top-end","bottom-end"]},"right-center":{placement:"right-center",possiblePlacements:["right-center"]},"left-center":{placement:"left-center",possiblePlacements:["left-center"]}}[e]}const rg={isOpen:!1,isOpenedWithKeyboard:!1,items:[],highlightedItemId:"",hasSearch:!1,keepHighlight:!1};function og(e,t){if("open"===t.type)return{...e,isOpen:!0};if("close"===t.type)return{...rg};if("toggle"===t.type)return{...rg,isOpen:!e.isOpen};if("toggle-from-keyboard"===t.type)return{...rg,isOpen:!e.isOpen,isOpenedWithKeyboard:!e.isOpen};if("highlight-current-item"===t.type){const t=e.items.find((e=>e.isSelected));return e.hasSearch&&t?{...e,highlightedItemId:t.id}:e.isOpenedWithKeyboard&&e.items.length?{...e,highlightedItemId:e.items[0].id}:e}if("highlight-item"===t.type)return{...e,highlightedItemId:t.payload,keepHighlight:!0};if("highlight-previous"===t.type){var n;if(0===e.items.length)return e;const t=null===(n=e.items.find((t=>t.id===e.highlightedItemId)))||void 0===n?void 0:n.parentId,r=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=r.findIndex((t=>t.id===e.highlightedItemId)),i=0===o,a=r.length-1,c=-1===o||i?r[a].id:r[o-1].id;return{...e,highlightedItemId:c}}if("highlight-next"===t.type){var r;if(0===e.items.length)return e;const t=null===(r=e.items.find((t=>t.id===e.highlightedItemId)))||void 0===r?void 0:r.parentId,n=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=n.findIndex((t=>t.id===e.highlightedItemId)),i=o===n.length-1,a=-1===o||i?n[0].id:n[o+1].id;return{...e,highlightedItemId:a}}if("highlight-submenu"===t.type){const t=e.highlightedItemId,n=e.items.find((e=>e.parentId===t));return{...e,highlightedItemId:n.id}}if("add-item"===t.type){const n=t.payload;return e.items.find((e=>e.id===n.id))?e:{...e,items:[...e.items,n]}}if("purge-menu-items"===t.type){const n=t.payload,r=e.items.filter((e=>e.parentId!==n));return{...e,items:r,highlightedItemId:e.keepHighlight?e.highlightedItemId:"",keepHighlight:!1}}return"keep-highlight"===t.type?{...e,keepHighlight:!0}:"set-search-presence"===t.type?{...e,hasSearch:!0}:void function(e,t){throw new Error("Unexpected action: "+t)}(0,t)}const ig=Gl.span.withConfig({displayName:"Text2",componentId:"sc-11co88f-92"})(["width:100%;min-width:0;text-align:left;"]),ag=Gl.div.withConfig({displayName:"Container4",componentId:"sc-11co88f-93"})(["--container-top-padding-compensation:calc("," * -1);position:sticky;top:var(--container-top-padding-compensation);z-index:1;box-sizing:content-box;height:40px;margin-top:var(--container-top-padding-compensation);padding:",";background:linear-gradient(180deg,#fff 22.4%,rgb(255 255 255 / 0) 100%);"],If.spacing3,If.spacing4),cg=Gl.div.withConfig({displayName:"Inner",componentId:"sc-11co88f-94"})(["position:absolute;top:",";right:",";left:",";"],If.spacing4,If.spacing4,If.spacing4),lg=Gl.div.withConfig({displayName:"TextStyled",componentId:"sc-11co88f-95"})([""," padding:"," ",";color:",";"],(e=>"item"===e.fontSize?im.uiTextS:im.uiTextM),If.spacing3,If.spacing5,If.gray400);const sg=Gl.div.withConfig({displayName:"ConcealedActionStyled",componentId:"sc-11co88f-96"})(["width:",";opacity:",";&:focus-within{width:auto;opacity:1;}"],(e=>e.isVisible?"auto":"var(--list-item-concealead-action-width, 0)"),(e=>e.isVisible?"1":"var(--list-item-concealead-action-opacity, 0)")),ug=Gl.div.withConfig({displayName:"Header1",componentId:"sc-11co88f-97"})(["display:flex;justify-content:space-between;align-items:center;padding:"," 0 ",";"],If.spacing3,If.spacing2),dg="ds-thumbnail__pointer-events-wrapper",pg=Gl.div.withConfig({displayName:"OverlayStyled",componentId:"sc-11co88f-98"})(["position:absolute;top:0;left:0;display:grid;place-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:",";color:",";-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);",""],If.gray200a,If.gray10,(e=>e.isConcealed&&Nl(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+dg,"."+dg))),fg=t.createContext({indicator:"none",setIndicator:()=>null}),mg={square:{state:{l:{radius:8,offset:[4,4]},m:{radius:8,offset:[4,4]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[7,7]}},status:{l:{radius:5,offset:[1,1]},m:{radius:5,offset:[1,1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[1,1]}}},circle:{state:{l:{radius:8,offset:[0,0]},m:{radius:8,offset:[2,2]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[9,5]}},status:{l:{radius:5,offset:[-5,-5]},m:{radius:5,offset:[-1,-1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[-1,-1]}}}},hg=Gl.svg.withConfig({displayName:"SvgIcon",componentId:"sc-11co88f-99"})(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]),gg={draft:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.gray400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 7.5 10.5 C 6.671875 10.5 6 11.171875 6 12 C 6 12.828125 6.671875 13.5 7.5 13.5 C 8.328125 13.5 9 12.828125 9 12 C 9 11.171875 8.328125 10.5 7.5 10.5 Z M 10.5 12 C 10.5 11.171875 11.171875 10.5 12 10.5 C 12.828125 10.5 13.5 11.171875 13.5 12 C 13.5 12.828125 12.828125 13.5 12 13.5 C 11.171875 13.5 10.5 12.828125 10.5 12 Z M 15 12 C 15 11.171875 15.671875 10.5 16.5 10.5 C 17.328125 10.5 18 11.171875 18 12 C 18 12.828125 17.328125 13.5 16.5 13.5 C 15.671875 13.5 15 12.828125 15 12 Z M 15 12 ",fill:"white"}))},error:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.red400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 13.5 4.5 L 10.5 4.5 L 10.5 13.5 L 13.5 13.5 Z M 13.5 4.5 ",fill:"white"}),t.createElement("path",{d:"M 13.5 16.5 L 10.5 16.5 L 10.5 19.5 L 13.5 19.5 Z M 13.5 16.5 ",fill:"white"}))},loading:function(){return t.createElement(hg,{viewBox:"0 0 14 14","aria-hidden":"true",fill:If.gray400},t.createElement(yg,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"}))},negative:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.red400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 17.304688 6.695312 C 16.71875 6.109375 15.769531 6.109375 15.183594 6.695312 L 12 9.878906 L 8.816406 6.695312 C 8.230469 6.109375 7.28125 6.109375 6.695312 6.695312 C 6.109375 7.28125 6.109375 8.230469 6.695312 8.816406 L 9.878906 12 L 6.695312 15.183594 C 6.109375 15.769531 6.109375 16.71875 6.695312 17.304688 C 7.28125 17.890625 8.230469 17.890625 8.816406 17.304688 L 12 14.121094 L 15.183594 17.304688 C 15.769531 17.890625 16.71875 17.890625 17.304688 17.304688 C 17.890625 16.71875 17.890625 15.769531 17.304688 15.183594 L 14.121094 12 L 17.304688 8.816406 C 17.890625 8.230469 17.890625 7.28125 17.304688 6.695312 Z M 17.304688 6.695312",fill:"white"}))},positive:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.teal500},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"m5.69215,11.43763c-0.58607,0.58607 -0.58607,1.53629 0,2.12236l3.18355,3.18363c0.21978,0.21971 0.49077,0.35703 0.77456,0.41195c0.12714,0.02461 0.25685,0.03272 0.38568,0.02431c0.35044,-0.02311 0.69432,-0.16853 0.96216,-0.43627l7.42831,-7.42836c0.58604,-0.58608 0.58604,-1.53629 0,-2.12238c-0.58604,-0.58607 -1.53631,-0.58607 -2.12235,0l-6.36715,6.36712l-2.12238,-2.12238c-0.58608,-0.58608 -1.53629,-0.58608 -2.12238,0z",fill:"white"}))}},vg=ql(["0%{transform:rotate(0deg);stroke-dashoffset:6.6;}50%{transform:rotate(720deg);stroke-dashoffset:31.4;}100%{transform:rotate(1080deg);stroke-dashoffset:6.6;}"]),yg=Gl.circle.withConfig({displayName:"SvgSpinner",componentId:"sc-11co88f-100"})(["--spinner-radius:10;--spinner-circumference:calc(2 * var(--spinner-radius) * 3.1415927);stroke:",";transform-origin:center;animation:"," 2s linear infinite;stroke-dasharray:31.4;stroke-linecap:round;"],(e=>e.color||If.gray400),vg),bg={online:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.teal500},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}))},offline:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:If.gray400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}))},inactive:function(){return t.createElement(hg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:"transparent"},t.createElement("circle",{cx:"12",cy:"12",r:"9",stroke:If.gray400,strokeWidth:"4"}))}};function wg({size:e="m",shape:n="square",variant:i="clean",icon:a,imageUrl:c,backgroundColor:l,iconColor:s,children:u,...d}){const p="content"===i,f="clean"===i;let m;m=l?If[l]||l:f?If.gray50a:l||c?"transparent":If.white;const h=f?If[s]||s||If.gray600:void 0,[g,v]=r("none"),y=o((()=>({indicator:g,setIndicator:v})),[g]);return t.createElement(fg.Provider,{value:y},t.createElement(xg,{size:e,shape:n,hasCheckers:p,indicator:g,variant:i,className:dg,...d},t.createElement(Cg,{iconColor:h,backgroundColor:m,imageUrl:c,size:e,"data-testid":"thumbnail-fill",variant:i},a,p&&!l&&!c&&t.createElement(Sg,{"data-testid":"thumbnail-no-image-line"})),p&&t.createElement(kg,{"data-testid":"thumbnail-inner-shadow"}),u))}wg.Overlay=function({children:e,isConcealed:n=!1,isLoading:r=!1,...o}){return t.createElement(pg,{isConcealed:n,...o},r?t.createElement(jf,null):e)},wg.pointerEventsClassname=dg,wg.Indicator=function({type:e}){const{setIndicator:n}=i(fg),r=gg[e];return a((()=>(n("state"),()=>n("none"))),[n]),t.createElement(r,null)},wg.Status=function({type:e}){const{setIndicator:n}=i(fg),r=bg[e];return a((()=>(n("status"),()=>n("none"))),[n]),t.createElement(r,null)};const xg=Gl.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"ThumbnailContainer1",componentId:"sc-11co88f-101"})([""," position:relative;flex:none;border-radius:var(--ds-thumbnail-border-radius);"," "," ",""],(e=>Nl(["--ds-thumbnail-border-radius:",";"],(function(){return"circle"===e.shape?If.radiusCircle:"preview"===e.variant?"0px":If.radiusBase}))),(e=>e.hasCheckers&&Nl(["background:url(\"data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='8' width='8' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='4' width='4' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='4' width='4' y='4' x='4' fill='%23e9ecee'/%3E%3C/svg%3E%0A\");"])),(e=>{const t={xs:"24px",s:"32px",m:"40px",l:"64px"}[e.size];return Nl(["width:",";height:",";"],t,t)}),(e=>{if("none"===e.indicator)return;const{radius:t,offset:n}=mg[e.shape][e.indicator][e.size];return Nl(["--ds-thumbnail-indicator-offset-x:","px;--ds-thumbnail-indicator-offset-y:","px;--ds-thumbnail-indicator-radius:","px;--ds-thumbnail-indicator-cutoff:-webkit-radial-gradient( calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var(--ds-thumbnail-indicator-offset-x) ) ) calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var(--ds-thumbnail-indicator-offset-y) ) ),circle,transparent calc(var(--ds-thumbnail-indicator-radius) + ","px),black 0 );"],n[0],n[1],t,2)})),Eg={xs:If.fontSize100,s:If.fontSize200,m:If.fontSize500,l:If.fontSize500},Cg=Gl.div.withConfig({displayName:"Fill1",componentId:"sc-11co88f-102"})(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:50% 50% no-repeat;background-color:",";background-image:",";background-size:",";color:",";font-weight:600;font-size:",";line-height:1;text-indent:1px;-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);"],(e=>e.backgroundColor),(e=>e.imageUrl?`url(${e.imageUrl}) `:void 0),(e=>"preview"===e.variant?"contain":"cover"),(e=>e.iconColor),(e=>Eg[e.size])),kg=Gl.div.withConfig({displayName:"InnerShadow",componentId:"sc-11co88f-103"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:1px solid ",";border-radius:var(--ds-thumbnail-border-radius);-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);"],If.gray100a),Sg=Gl.div.withConfig({displayName:"NoImage",componentId:"sc-11co88f-104"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],If.red500),_g=n({isDragging:!1,dragIndicator:null}),Ig=d((({children:e,subtext:n,thumbnail:r,rightElements:o,onClick:a,isDisabled:c=!1,isSelected:l=!1,checkedVariant:s,isChecked:u=!1,...d},p)=>{const f=Hm("list-item-label"),{isFocusVisible:m,focusProps:h}=Cs(),g=i(_g),v=t.useRef(null),y=[Xm.pointerEventsClassname,Hh.pointerEventsClassname,wg.pointerEventsClassname].join(" "),b="function"==typeof a,w=b&&!c;return t.createElement(Bg,{isDragging:(null==g?void 0:g.isDragging)??!1,isSelected:l,isActive:b,tabIndex:w?0:void 0,onClick:w?a:void 0,onKeyDown:e=>{"function"!=typeof a||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},isDisabled:c,className:y,isFocusVisible:m,ref:p,...d,...h},"checkbox"===s&&t.createElement(Tg,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(Xm,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})),r&&t.createElement(Ng,{isDisabled:c},r),t.createElement(Dg,{id:f},t.createElement(_m,null,e),n?t.createElement(zg,{isDisabled:c},t.createElement(_m,null,n)):null),(o||(null==g?void 0:g.dragIndicator))&&t.createElement(Pg,{ref:v,onClick:e=>{var t;(null==v||null===(t=v.current)||void 0===t?void 0:t.querySelectorAll("a, button").length)&&e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(am,{alignItems:"center",gap:"3"},o,null==g?void 0:g.dragIndicator)),"switch"===s&&t.createElement(Pg,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(Hh,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})))})),Bg=Gl.div.withConfig({displayName:"ItemStyled",componentId:"sc-11co88f-105"})(["--list-item-right-elements-color:",";display:flex;align-items:center;margin-right:calc("," * -1);margin-left:calc("," * -1);padding:"," ",";border-radius:var(--ds-list-item-border-radius-override,",");&:hover{--list-item-concealead-action-opacity:1;--list-item-concealead-action-width:auto;}"," "," ",""],If.gray200,If.spacing4,If.spacing4,If.spacing3,If.spacing4,If.radiusLarge,(e=>e.isActive&&Nl(["--list-item-right-elements-color:",";outline:none;cursor:pointer;&:hover{--list-item-right-elements-color:",";background:",";}"," &:active{background:",";box-shadow:none;}",""],If.gray200,If.gray600,If.gray25,e.isFocusVisible&&Nl(["--list-item-right-elements-color:",";background:",";&,&:hover{box-shadow:var( --ds-list-item-focus-ring-override,inset 0 0 0 2px ",",inset 0 0 0 4px "," );}"],If.gray600,If.gray25,If.gray50,If.gray10),If.gray50,e.isDisabled&&Nl(["--list-item-right-elements-color:",";color:",";pointer-events:none;"],If.gray200,If.gray200))),(e=>e.isSelected&&Nl(["--list-item-right-elements-color:",";&,&:hover{background:",";}"],If.gray600,If.gray50)),(e=>e.isDragging&&Nl(["--list-item-right-elements-color:",";background:",";box-shadow:",";cursor:grabbing;"],If.gray600,If.gray25,If.elevation4))),Tg=Gl.div.withConfig({displayName:"CheckboxContainer",componentId:"sc-11co88f-106"})(["flex:none;margin-right:",";"],If.spacing4),Ng=Gl.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-11co88f-107"})(["flex:none;margin-right:",";",""],If.spacing4,(e=>e.isDisabled&&"opacity: 50%;")),Dg=Gl.div.withConfig({displayName:"Content2",componentId:"sc-11co88f-108"})([""," flex:1;min-width:0;"],im.uiTextM),zg=Gl.div.withConfig({displayName:"Subtext1",componentId:"sc-11co88f-109"})([""," color:",";"],im.uiTextS,(e=>e.isDisabled?If.gray200:If.gray600)),Pg=Gl.div.withConfig({displayName:"RightElements",componentId:"sc-11co88f-110"})(["flex:none;margin-left:",";color:var(--list-item-right-elements-color);"],If.spacing4);function Og({children:e,isContained:n=!1,...r}){return t.createElement(Ag,{isContained:n,...r},e)}Og.Group=function({title:e,action:n,children:r,...o}){const i=Hm("list-group-header");return t.createElement("div",{...o},t.createElement(ug,null,t.createElement("span",{id:i},e),n),t.createElement("div",{"aria-describedby":i},r))},Og.Item=Ig,Og.Divider=Dh,Og.ConcealedAction=function(e){return t.createElement(sg,{...e})};const Ag=Gl.div.withConfig({displayName:"ListStyled",componentId:"sc-11co88f-111"})(["padding:",";"],(e=>e.isContained?`0 ${If.spacing5}`:`${If.spacing3} 0`)),Rg=Gl.div.withConfig({displayName:"ItemWrapper",componentId:"sc-11co88f-112"})(["--ds-list-item-border-radius-override:0;--ds-list-item-focus-ring-override:none;padding:0 ",";"],If.spacing4);function Mg(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function Fg(e){if(!e||!Mg(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function Lg({children:e,trigger:n,position:r="bottom-left",isClosedOnScroll:i=!1,isKeepingFocusOnTrigger:l=!1,containerRef:s,onOpen:d,onClose:p,minWidth:m,...h}){const[g,v]=f(og,rg),y=c(!0),b=c(),w=Hm("dropdown-menu");var x,E;a((()=>{y.current?y.current=!1:g.isOpen?(v({type:"highlight-current-item"}),null==d||d()):null==p||p()}),[g.isOpen]),x=g.highlightedItemId,E=g.hasSearch,a((()=>{if(!x)return;const e=document.querySelector("#"+x);if(e){const t=e.closest('[role="menu"');t&&(function(e,t,n){const{top:r,bottom:o,height:i}=e.getBoundingClientRect(),a=t.getBoundingClientRect(),c=n?64:0;return!(r>=a.bottom-i||o<=a.top+c+i)}(e,t,E)||e.scrollIntoView(!1))}}),[x,E]);const C=u((()=>{var e;g.isOpen&&(v({type:"close"}),null==b||null===(e=b.current)||void 0===e||e.focus())}),[g.isOpen]);a((()=>{function e(){C()}if(i&&g.isOpen)return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}),[i,C,g.isOpen]),yh("Tab",(()=>{g.isOpen&&C()})),yh("Escape",(()=>{g.isOpen&&C()})),yh("Enter",(e=>{var t;g.isOpen&&g.highlightedItemId&&(null===(t=document.querySelector("#"+g.highlightedItemId))||void 0===t||t.click(),e.preventDefault())})),yh("ArrowDown",(e=>{g.isOpen&&(v({type:"highlight-next"}),e.preventDefault())})),yh("ArrowUp",(e=>{g.isOpen&&(v({type:"highlight-previous"}),e.preventDefault())}));const k=o((()=>({dispatch:v,close:C,highlightedItemId:g.highlightedItemId,hasSearch:g.hasSearch,isKeepingFocusOnTrigger:l,menuId:w})),[C,l,g.hasSearch,g.highlightedItemId,w]),{renderLayer:S,triggerProps:{ref:_},layerProps:I,triggerBounds:B}=vd({isOpen:g.isOpen,onOutsideClick:Mg(b.current)?void 0:()=>v({type:"close"}),onDisappear:e=>{"full"===e&&v({type:"close"})},triggerOffset:4,containerOffset:16,auto:!0,container:Fg(b.current),...ng(r)}),T="bottom"===r?{width:null==B?void 0:B.width,minWidth:"initial",maxWidth:"initial"}:{};return t.createElement(Ah.Provider,{value:k},t.createElement("div",{...h},n({isOpen:g.isOpen,onClick:()=>{v({type:"toggle"})},"aria-haspopup":!0,"aria-expanded":g.isOpen,"aria-controls":w,onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),v({type:"toggle-from-keyboard"}))},ref:Yu(_,b)},{open:()=>{v({type:"open"})},close:()=>{v({type:"close"})}}),g.isOpen&&S(t.createElement(Lh,{id:w,...I,ref:Yu(I.ref,s),style:{...I.style,...T},minWidth:m},e))))}function jg({attr:e,title:n,size:r,children:o,color:a,style:c,...l}){const s=i(Ss),u=r||s.size,d={...s.attr,...e};return t.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...d,...l,style:{color:a,...s.style,...c},height:u,width:u,xmlns:"http://www.w3.org/2000/svg"},n&&t.createElement("title",null,n),o)}function Hg({label:e,labelSecondaryText:n,helperText:r,helperTextIcon:o,id:i,name:a,isInvalid:c,hasClearButton:l,icon:s,iconRight:u,inputRef:d,isDisabled:p,isReadOnly:f,isSmall:m,maxLength:h,onBlur:g,onChange:v,onFocus:y,onKeyDown:b,placeholder:w,type:x,value:E,variant:C,prefix:k,suffix:S,..._}){const I=Hm("input"),B=i||I,T=Hm("helper-text");return t.createElement(ph.Group,{..._},t.createElement(ph.Label,{secondaryText:n,htmlFor:B},e),t.createElement(Nh,{hasClearButton:l,icon:s,iconRight:u,inputRef:d,isDisabled:p,isReadOnly:f,isInvalid:c,isSmall:m,maxLength:h,onBlur:g,onChange:v,onFocus:y,onKeyDown:b,placeholder:w,type:x,value:E,variant:C,id:B,name:a,"aria-describedby":r?T:void 0,prefix:k,suffix:S}),r?t.createElement(ph.HelperText,{icon:o,isInvalid:c,id:T},r):null)}Lg.Divider=Dh,Lg.Item=function({children:e,isDisabled:n,icon:l,checkedVariant:s="checkmark",isChecked:u=!1,badge:d,onClick:p,submenu:f,role:m,...h}){const[g,v]=r(!1),[y,b]=r(!1),w=Hm("dropdown-item"),x=Hm("dropdown-item-label"),E=Hm("dropdown-submenu"),C=Boolean(f),{dispatch:k,...S}=Rh(),_=S.highlightedItemId===w,I=i(Fh),{isFocusVisible:B,focusProps:T}=Cs(),{hoverProps:N}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:l}=e,[s,u]=r(!1),d=c({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a(bs,[]);let{hoverProps:p,triggerHoverEnd:f}=o((()=>{let e=(e,r)=>{if(d.pointerType=r,l||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let o=e.currentTarget;d.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),u(!0)},r=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),u(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{hs&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||hs||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:o,triggerHoverEnd:r}}),[t,n,i,l,d]);return a((()=>{l&&f({currentTarget:d.target},d.pointerType)}),[l]),{hoverProps:p,isHovered:s}}({onHoverStart:()=>{C&&v(!0)},onHoverEnd:()=>{C&&v(!1)}}),D=g&&C,{triggerProps:z,layerProps:P,renderLayer:O}=vd({isOpen:D,auto:!0,placement:"right-start",possiblePlacements:["right-end","right-start","left-start","left-end"],triggerOffset:-4,onParentClose:()=>{}});a((()=>{k({type:"add-item",payload:{id:w,parentId:I,isDisabled:n,isSelected:"checkmark"===s?u:void 0}})})),a((()=>{y&&k({type:"highlight-submenu"})}),[k,y]),a((()=>{var e;S.hasSearch||S.isKeepingFocusOnTrigger||_&&(null===(e=document.querySelector("#"+w))||void 0===e||e.focus())}),[S.hasSearch,S.isKeepingFocusOnTrigger,w,_]),yh("ArrowLeft",(e=>{C&&y&&(k({type:"highlight-item",payload:w}),v(!1),b(!1),e.preventDefault())})),yh("ArrowRight",(e=>{_&&C&&(v(!0),b(!0),e.preventDefault())}));const A=function(e){return"checkbox"===e?Xm.pointerEventsClassname:"switch"===e?Hh.pointerEventsClassname:""}(s),R=function(e,t,n){return e||("checkbox"===t||"switch"===t?"menuitemcheckbox":"checkmark"===t&&n?"menuitemradio":"menuitem")}(m,s,u),M="menuitemcheckbox"===R||"menuitemradio"===R?u:void 0,F=C?{"aria-haspopup":!0,"aria-expanded":g,"aria-controls":E}:{};function L(e){null==p||p(e),C||("menuitemcheckbox"!==R?S.close():k({type:"keep-highlight"}))}return t.createElement(Fh.Provider,{value:w},t.createElement(qh,{...N,...z,onClick:e=>e.stopPropagation()},t.createElement(Gh,{disabled:n,"aria-disabled":n,isChecked:u,"aria-checked":M,"aria-selected":S.hasSearch||S.isKeepingFocusOnTrigger?_:void 0,role:R,onClick:L,tabIndex:-1,id:w,onKeyDown:function(e){C&&(" "!==e.key&&"Enter"!==e.key||(null==p||p(e),v((e=>{const t=!e;return b(t),t})),e.preventDefault()))},isHighlighted:_||B,isSubmenuOpen:g,className:A,...F,...T,...h},"checkbox"===s&&t.createElement(Xh,{onClick:e=>e.stopPropagation()},t.createElement(Xm,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:L})),l&&t.createElement(Kh,null,l),t.createElement(Zh,{id:x},e),"checkmark"===s&&u&&t.createElement(Jh,null,t.createElement(Su,null)),d&&t.createElement(Jh,null,d),"switch"===s&&t.createElement(Jh,{onClick:e=>e.stopPropagation()},t.createElement(Hh,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:L})),C&&t.createElement(Qh,{isActive:g||B||_},t.createElement(Iu,null))),D&&O(t.createElement(eg,{id:E,...P},f))))},Lg.ListItem=function({children:e,isDisabled:n,isChecked:r=!1,onClick:o,role:i="menuitem",rightElements:c,...l}){const s=Hm("dropdown-item"),{dispatch:u,...d}=Rh(),p=d.highlightedItemId===s;a((()=>{u({type:"add-item",payload:{id:s,parentId:void 0,isDisabled:n,isSelected:r}})})),a((()=>{var e;d.hasSearch||d.isKeepingFocusOnTrigger||p&&(null===(e=document.querySelector("#"+s))||void 0===e||e.focus())}),[d.hasSearch,d.isKeepingFocusOnTrigger,s,p]);const f=r?t.createElement(Su,{color:If.gray800}):null;return t.createElement(Rg,{onClick:e=>e.stopPropagation()},t.createElement(Og.Item,{isSelected:p,isDisabled:n,onClick:function(){null==o||o(),d.close()},"aria-disabled":n,"aria-checked":"menuitemradio"===i?r:void 0,"aria-selected":d.hasSearch||d.isKeepingFocusOnTrigger?p:void 0,role:i,rightElements:c?t.createElement(t.Fragment,null,c,f):f,id:s,...l},e))},Lg.SectionTitle=function({children:e,...n}){return t.createElement(tg,{...n},e)},Lg.Arrow=function(e){return t.createElement(Oh,{...e},t.createElement(Cu,null))},Lg.SelectButtonText=function({children:e,...n}){return t.createElement(ig,{...n},t.createElement(_m,null,e))},Lg.SearchInput=function({onChange:e,...n}){const r=c(null),{dispatch:o}=Rh(),{menuId:i}=Rh();return a((()=>{var e;null===(e=r.current)||void 0===e||e.focus()}),[]),a((()=>{o({type:"set-search-presence"})}),[o]),t.createElement(ag,null,t.createElement(cg,null,t.createElement(Nh,{inputRef:r,hasClearButton:!0,icon:t.createElement(Hs,null),onChange:function(t){var n,r;null===(n=document.querySelector(`#${i}`))||void 0===n||null===(r=n.scrollTo)||void 0===r||r.call(n,{top:0}),e(t)},...n})))},Lg.Text=function({fontSize:e="item",children:n,...r}){return t.createElement(lg,{fontSize:e,...r},n)},Gl.div.withConfig({displayName:"EmptyStateStyled",componentId:"sc-11co88f-113"})(["display:grid;grid-template-columns:minmax(10px,472px);justify-content:center;justify-items:center;text-align:center;"]),Gl.p.withConfig({displayName:"Image1",componentId:"sc-11co88f-114"})(["display:grid;place-items:center;width:128px;height:128px;margin:0 0 ",";border-radius:",";background:",";color:",";"],If.spacing5,If.radiusCircle,If.gray25,If.gray400),Gl.h2.withConfig({displayName:"Title3",componentId:"sc-11co88f-115"})([""," margin:0 0 ",";color:",";"],im.headingM,If.spacing4,If.gray800),Gl.p.withConfig({displayName:"Description1",componentId:"sc-11co88f-116"})([""," margin:0;color:",";"],im.paragraphM,If.gray600),Gl.p.withConfig({displayName:"Actions",componentId:"sc-11co88f-117"})(["display:flex;gap:",";justify-content:center;margin:"," 0 0;"],If.spacing4,If.spacing6),Gl.div.withConfig({displayName:"InlineBannerStyled",componentId:"sc-11co88f-118"})([""," display:flex;align-items:flex-start;padding:"," ",";border-radius:",";background:var(--background-color);"],(e=>"info"===e.variant?Nl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],If.blue500a10,If.blue500,If.blue600,If.blue700):"warning"===e.variant?Nl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],If.yellow500a10,If.yellow500,If.yellow600,If.yellow700):"error"===e.variant?Nl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],If.red500a10,If.red500,If.red600,If.red700):Nl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],If.gray50,If.gray500,If.blue600,If.blue700)),If.spacing4,If.spacing4,If.radiusMedium),Gl.div.withConfig({displayName:"IconHolder1",componentId:"sc-11co88f-119"})(["display:flex;width:24px;height:24px;margin-right:",";color:var(--icon-color);"],If.spacing3),Gl.div.withConfig({displayName:"TitleHolder",componentId:"sc-11co88f-120"})([""," margin-bottom:",";color:",";"],im.uiTextM,If.spacing2,If.gray1000),Gl.div.withConfig({displayName:"DescriptionHolder",componentId:"sc-11co88f-121"})([""," color:",";line-height:",";"],im.uiTextS,If.gray800,If.layoutSpacing2),Gl.div.withConfig({displayName:"LinkHolder",componentId:"sc-11co88f-122"})([""," margin-top:",";a{color:var(--link-color);text-decoration:none;}a:hover{color:var(--link-color-hover);}a:focus-visible{border-radius:2px;box-shadow:0 0 0 2px ",";outline:none;}"],im.uiTextS,If.spacing2,If.blue500),Gl.kbd.withConfig({displayName:"KeyboardBadgeStyled",componentId:"sc-11co88f-123"})([""," display:inline-flex;vertical-align:top;box-sizing:border-box;height:24px;padding:"," ",";border-radius:",";background:",";color:",";box-shadow:inset 0 -1px 0 ",";font-family:",";"],im.uiTextS,If.spacing1,If.spacing3,If.radiusMedium,If.gray75,If.gray800,If.gray200a,If.fontStackBase),Gl.span.withConfig({displayName:"KeyboardLabelStyled",componentId:"sc-11co88f-124"})(["position:absolute;overflow:hidden;clip:rect(0 0 0 0);width:1px;height:1px;white-space:nowrap;clip-path:inset(50%);"]),Gl.div.withConfig({displayName:"IconHolder",componentId:"sc-11co88f-125"})(["display:flex;align-items:center;width:20px;height:20px;margin-right:",";margin-left:calc("," * -1);&:not(:last-child){margin-right:calc("," * -1);}svg{fill:currentColor;}"],If.spacing1,If.spacing2,If.spacing2),Gl.div.withConfig({displayName:"StyledItemWrapper",componentId:"sc-11co88f-126"})(["position:relative;user-select:none;"," ",""],(e=>"after"===e.insertPosition&&Nl(["&::after{content:'';position:absolute;bottom:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",If.blue300)),(e=>"before"===e.insertPosition&&Nl(["&::before{content:'';position:absolute;top:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",If.blue300))),Gl.div.withConfig({displayName:"ShadowItem",componentId:"sc-11co88f-127"})(["position:absolute;top:0;box-sizing:content-box;width:100%;height:100%;margin-right:calc("," * -1);margin-left:calc("," * -1);padding-right:",";padding-left:",";border-radius:",";background-color:",";"],If.spacing4,If.spacing4,If.spacing4,If.spacing4,If.radiusLarge,If.gray50),Gl.div.withConfig({displayName:"StyledDragIndicator",componentId:"sc-11co88f-128"})(["cursor:",";"],(e=>e.isDragging?"grabbing":"grab"));const Ug=Yl((e=>Nl(["@keyframes ","{0%{opacity:0;}100%{opacity:1;}}@keyframes ","{0%{opacity:1;}100%{opacity:0;}}@keyframes ","{0%{opacity:0.5;transform:scale(0.95);}100%{opacity:1;transform:scale(1);}}@keyframes ","{0%{opacity:1;transform:scale(1);}100%{opacity:0.5;transform:scale(0.95);}}.",",.","{position:fixed;top:0;right:0;bottom:0;left:0;z-index:",";}.","{background:",";}.","{display:flex;align-items:flex-start;overflow-x:hidden;overflow-y:auto;padding:",";}.","{"," position:relative;display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:520px;margin:auto;border-radius:",";background:",";box-shadow:",";}.","{width:866px;}.","{width:100%;height:100%;min-height:0;}"],"b-modal-overlay-in","b-modal-overlay-out","b-modal-container-in","b-modal-container-out","b-modal__overlay","b-modal__container",e.zIndex,"b-modal__overlay",If.gray200a,"b-modal__container",If.spacing6,"b-modal__modal",Df,If.radiusLarge,If.gray10,If.elevation8,"b-modal__modal--medium","b-modal__modal--full-screen"))),Vg=Gl.div.withConfig({displayName:"HeaderStyled",componentId:"sc-11co88f-129"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],If.spacing4,If.spacing6,(e=>!e.hideCloseIcon&&Nl(["padding-right:calc( "," + 50px + "," );"],If.spacing4,If.spacing6))),$g=Gl.div.withConfig({displayName:"BackButton",componentId:"sc-11co88f-130"})(["margin-right:",";margin-left:calc("," * -1);"],If.spacing4,If.spacing4),Wg=Gl.div.withConfig({displayName:"ModalThumbnail",componentId:"sc-11co88f-131"})(["margin-right:",";"],If.spacing4),Yg=Gl.div.withConfig({displayName:"Headings",componentId:"sc-11co88f-132"})(["flex:1;min-width:0;"]),qg=Gl.h2.withConfig({displayName:"Title2",componentId:"sc-11co88f-133"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],im.uiTextL,If.colorText),Gg=Gl.h3.withConfig({displayName:"SecondaryInformation",componentId:"sc-11co88f-134"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],im.uiTextS,If.gray500),Xg=Gl.div.withConfig({displayName:"ContentStyled",componentId:"sc-11co88f-135"})(["flex:1 1 auto;min-height:0;",""],(e=>e.scrollable&&Nl(["position:relative;&::before,&::after{content:'';position:absolute;left:0;display:block;width:100%;height:6px;}&::before{top:0;z-index:1;background:linear-gradient(to bottom,",",transparent);}&::after{bottom:0;background:linear-gradient(to top,",",transparent);}"],If.colorShadow,If.colorShadow))),Kg=Gl.div.withConfig({displayName:"ContentInner",componentId:"sc-11co88f-136"})([""," box-sizing:border-box;padding:"," ",";color:",";font-family:",";",""],im.paragraphM,If.spacing5,If.spacing6,If.colorText,If.brandFontStackBase,(e=>e.scrollable&&Nl(["position:relative;overflow-x:hidden;overflow-y:auto;height:100%;scroll-behavior:smooth;&::before,&::after{content:'';position:relative;left:0;z-index:1;display:block;height:",";}&::before{margin:calc("," * -1) calc("," * -1) 0;background:linear-gradient( to bottom,",","," 50%,rgb(255 255 255 / 0) );}&::after{margin:0 calc("," * -1) calc("," * -1);background:linear-gradient( to top,",","," 50%,rgb(255 255 255 / 0) );}"],If.spacing5,If.spacing5,If.spacing6,If.gray10,If.gray10,If.spacing6,If.spacing5,If.gray10,If.gray10))),Zg=Gl.div.withConfig({displayName:"ContentExpander",componentId:"sc-11co88f-137"})(["min-height:100%;"]),Jg=Gl.div.withConfig({displayName:"FooterStyled",componentId:"sc-11co88f-138"})(["display:flex;flex:none;padding:",";"],If.spacing6),Qg=Gl.div.withConfig({displayName:"ActionsRight",componentId:"sc-11co88f-139"})(["margin-left:auto;"]),ev=Gl.div.withConfig({displayName:"CloseButton",componentId:"sc-11co88f-140"})(["position:absolute;top:",";right:",";"],If.spacing5,If.spacing4),tv=t.createContext({size:"small",hideCloseIcon:!1}),nv={small:"",medium:"b-modal__modal--medium",fullscreen:"b-modal__modal--full-screen"};function rv({isOpen:e,onClose:n,size:i="small",isCloseButtonHidden:c=!1,closeButtonTitle:l="Close",isClosedOnOverlayClick:s=!1,onCloseAnimationEnd:u,children:d,container:p}){const f={root:"b-modal",overlay:"b-modal__overlay",modalContainer:"b-modal__container",modal:`b-modal__modal ${nv[i]}`,modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},m=!c,h=ym("modal"),g=o((()=>({size:i,hideCloseIcon:c})),[i,c]),[v,y]=r(!1);return a((()=>{e&&y(!0)}),[e]),t.createElement(tv.Provider,{value:g},t.createElement(Yp,{open:e,onClose:n,classNames:f,animationDuration:200,showCloseIcon:!1,closeOnEsc:m,closeOnOverlayClick:s,container:p,onAnimationEnd:()=>{e||(y(!1),null==u||u())}},e||v?d:null,m&&t.createElement(ev,null,t.createElement(Xf,{variant:"clean",icon:t.createElement(Bu,null),"aria-label":l,title:l,onClick:n}))),t.createElement(Ug,{zIndex:h}))}function ov({isOpen:e,onClose:n,size:r,isCloseButtonHidden:o,isClosedOnOverlayClick:i,closeButtonTitle:a,title:c,secondaryInfo:l,thumbnail:s,children:u,actionPrimary:d,actionSecondary:p,actionTertiary:f,container:m,onCloseAnimationEnd:h}){return t.createElement(rv,{isOpen:e,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,size:r,closeButtonTitle:a,onCloseAnimationEnd:h,container:m},t.createElement(rv.Header,{title:c,secondaryInfo:l,thumbnail:s}),t.createElement(rv.Content,null,u),d&&t.createElement(rv.Footer,{actionPrimary:d,actionSecondary:p,actionTertiary:f}))}function iv(e){return t.createElement(ov,{...e})}function av(e){return t.createElement(cv,{role:"status","aria-live":"polite"},e.thumbnail&&t.createElement(lv,null,e.thumbnail),t.createElement(sv,null,t.createElement(uv,{title:"string"==typeof e.title?e.title:""},e.title),e.description&&t.createElement(dv,{title:"string"==typeof e.description?e.description:""},e.description)),t.createElement(pv,null,e.button),"number"==typeof e.progressPercentage&&t.createElement(fv,{style:{width:e.progressPercentage+"%"}}))}rv.Header=function({title:e,secondaryInfo:n,thumbnail:r,backButton:o}){const{hideCloseIcon:a}=i(tv);return t.createElement(Vg,{hideCloseIcon:a},o&&t.createElement($g,null,t.createElement(Xf,{variant:"clean",icon:t.createElement(_u,null),"aria-label":o.title,...o})),r&&t.createElement(Wg,null,r),t.createElement(Yg,null,t.createElement(qg,null,e),n&&t.createElement(Gg,null,n)))},rv.Content=function({children:e}){const{size:n}=i(tv),r="fullscreen"===n;return t.createElement(Xg,{scrollable:r},t.createElement(Kg,{scrollable:r},r?t.createElement(Zg,null,e):e))},rv.Footer=function({actionPrimary:e,actionSecondary:n,actionTertiary:r}){return t.createElement(Jg,null,r,t.createElement(Qg,null,t.createElement(am,{gap:"4"},n,e)))},Gl.div.withConfig({displayName:"NotificationPositionStyled",componentId:"sc-11co88f-141"})(["position:absolute;bottom:0;left:0;z-index:",";opacity:",";transition:all 0.2s ease-out;transform:translateY(","px) translate3d(0,",",0) translateX(",");will-change:transform,opacity;"],(e=>e.isVisible?9999:void 0),(e=>e.isExists?"1":"0"),(e=>-1*e.offset),(e=>e.isItJustAdded?"calc(100% + 16px)":"0"),(e=>e.isDismissed?"-100%":"0")),Gl.div.withConfig({displayName:"NotificationsStyled",componentId:"sc-11co88f-142"})(["position:fixed;bottom:",";left:",";z-index:",";"],If.spacing6,If.spacing6,9999);const cv=Gl.div.withConfig({displayName:"BaloonStyled",componentId:"sc-11co88f-143"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Df,If.spacing5,If.radiusLarge,If.white,If.elevationStatic,If.elevation2),lv=Gl.div.withConfig({displayName:"ThumbnailWrapper1",componentId:"sc-11co88f-144"})(["flex:none;margin-right:",";"],If.spacing5),sv=Gl.div.withConfig({displayName:"Text",componentId:"sc-11co88f-145"})(["flex:1;align-self:center;"]),uv=Gl.h2.withConfig({displayName:"Title1",componentId:"sc-11co88f-146"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),dv=Gl.p.withConfig({displayName:"Description",componentId:"sc-11co88f-147"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],If.spacing2,If.gray500,If.fontSize75),pv=Gl.div.withConfig({displayName:"Action",componentId:"sc-11co88f-148"})(["flex:none;"]),fv=Gl.div.withConfig({displayName:"Progress1",componentId:"sc-11co88f-149"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],If.brandPrimary500);function mv({isPersistent:e,button:n,id:r=yd(),variant:o,thumbnail:i,...a}){return bf((e=>t.createElement(av,{thumbnail:hv(i,o),...a,button:n?p(n,{variant:"clean",onClick(){var t,r;null===(t=(r=n.props).onClick)||void 0===t||t.call(r),bf.dismiss(e.id)}}):t.createElement(Xf,{variant:"clean",onClick:()=>{bf.dismiss(e.id)},icon:t.createElement(Bu,null),title:"Close"})})),{id:r,duration:e?288e5:8e3})}function hv(e,n){return e||(n?{loading:t.createElement(wg,{shape:"circle",backgroundColor:"transparent",icon:t.createElement(jf,null)}),success:t.createElement(wg,{shape:"circle",backgroundColor:"green500",icon:t.createElement(Su,null),iconColor:"white"}),error:t.createElement(wg,{shape:"circle",backgroundColor:"red500",icon:t.createElement(Bu,null),iconColor:"white"})}[n]:void 0)}mv.dismiss=function(e){bf.dismiss(e)},Gl.div.withConfig({displayName:"Track",componentId:"sc-11co88f-150"})(["height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":If.radiusPill),(e=>e.noBackground?"none":If.gray100a)),Gl.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Fill",componentId:"sc-11co88f-151"})(["max-width:100%;height:100%;border-radius:",";background:",";transition:width 0.2s ease-out;"],(e=>e.noCornerRadius?"0":If.radiusPill),(e=>"brand"===e.color?If.brandPrimary500:If.gray600)),Gl.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-11co88f-152"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]);const gv=Gl.div.withConfig({displayName:"Indicator",componentId:"sc-11co88f-153"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-color:",";border-radius:",";}"," ",""],If.componentRadioBorderUnchecked,If.radiusCircle,If.focusRingWidth,(e=>e.isFocusVisible&&If.focusRingColorPrimary),If.radiusCircle,(e=>e.isChecked&&Nl(["border-color:transparent;background-color:",";color:#fff;"],If.blue500)),(e=>e.isDisabled&&Nl(["border-color:transparent;background-color:",";color:",";"],If.componentRadioFillDisabled,If.componentRadioCheckmarkColorDisabled)));Gl.div.withConfig({displayName:"IndicatorMark",componentId:"sc-11co88f-154"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],If.radiusCircle),Gl.input.withConfig({displayName:"Input",componentId:"sc-11co88f-155"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),Gl.label.withConfig({displayName:"Container3",componentId:"sc-11co88f-156"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],im.uiTextM,If.spacing1,(e=>!e.isDisabled&&"pointer"),gv,(e=>{if(!e.isDisabled)return e.isChecked?Nl(["background-color:",";"],If.blue600):Nl(["border-color:",";"],If.componentRadioBorderUncheckedHover)})),Gl.div.withConfig({displayName:"Label",componentId:"sc-11co88f-157"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?If.gray400:If.colorText));const vv=n({value:"",onChange:()=>{}});function yv({children:e,isDisabled:n,onChange:r,value:i,label:a,icon:c}){const l=o((()=>({value:i,onChange:r})),[r,i]);return t.createElement(vv.Provider,{value:l},t.createElement(Lg,{trigger:({isOpen:e,...r})=>t.createElement(Xf,{icon:c,isPressed:e,rightIcon:t.createElement(Lg.Arrow,null),isFullWidth:!0,isDisabled:n,...r},t.createElement(Lg.SelectButtonText,null,a)),position:"bottom"},e))}function bv(e,t,n){return 100*(n-e)/(t-e)+"%"}yv.Item=function({icon:e,children:n,isDisabled:r,value:o}){const a=i(vv);return t.createElement(Lg.Item,{isChecked:o===a.value,role:"menuitemradio",icon:e,isDisabled:r,onClick:()=>{a.onChange(o)}},n)},yv.SectionTitle=Lg.SectionTitle,yv.Divider=Lg.Divider,yv.SearchInput=Lg.SearchInput,yv.Text=Lg.Text,Gl.aside.withConfig({displayName:"Container2",componentId:"sc-11co88f-158"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:1px solid ",";background:",";"],If.spacing5,If.gray100,If.white),Gl.div.withConfig({shouldForwardProp:(e,t)=>!["width","height"].includes(e)&&t(e)}).withConfig({displayName:"Image",componentId:"sc-11co88f-159"})(["width:",";min-width:10px;height:",";min-height:10px;border-radius:",";background:",";"],(e=>e.width),(e=>e.height),If.radiusBase,If.gray100),Gl.div.withConfig({displayName:"TextContainer",componentId:"sc-11co88f-160"})(["display:flex;align-items:center;width:100%;height:20px;&::before{content:'';height:6px;border-radius:",";","}"],If.radiusPill,(e=>"primary"===e.variant?Nl(["width:75%;max-width:240px;background:",";"],If.gray200):"secondary"===e.variant?Nl(["width:50%;max-width:160px;background:",";"],If.gray100):void 0)),Gl.div.withConfig({displayName:"Opacity",componentId:"sc-11co88f-161"})(["opacity:",";"],(({value:e=1})=>e));const wv=Gl.div.withConfig({displayName:"Container1",componentId:"sc-11co88f-162"})(["position:relative;display:flex;gap:",";align-items:center;"],If.spacing3),xv=Gl.div.withConfig({displayName:"SliderContainer",componentId:"sc-11co88f-163"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),Ev=Nl(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;cursor:pointer;border-inline:none;appearance:none;"]),Cv=Nl(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:auto;transform:translateY(-50%);-webkit-appearance:none;appearance:none;&:hover{cursor:pointer;}"]);function kv(e){const t=bv(e.min,e.max,e.value);let n,r;return Array.isArray(e.values)?(n=bv(e.min,e.max,e.values[0]),r=bv(e.min,e.max,e.values[1])):e.isFromCenter?(n=`min(${t}, 50%)`,r=`max(50%, ${t})`):(n="0",r=t),`linear-gradient(\n\t\t90deg,\n\t\t${If.gray100a} ${n},\n\t\t${If.brandPrimary500} ${n},\n\t\t${If.brandPrimary500} ${r},\n\t\t${If.gray100a} ${r}\n\t)`}const Sv=Gl.input.attrs((e=>({style:{"--track-background":kv(e)}}))).withConfig({displayName:"SliderInput",componentId:"sc-11co88f-164"})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;",";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{","}&::-moz-range-thumb{"," transform:none;}&::-webkit-slider-runnable-track{","}&::-moz-range-track{","}"],(e=>e.isRange?"pointer-events: none":"pointer-events: auto"),Cv,Cv,Ev,Ev),_v=Gl.div.withConfig({displayName:"ThumbContainer",componentId:"sc-11co88f-165"})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,",");pointer-events:none;transition:opacity 120ms ease-in-out;",":hover &{--thumb-opacity:1;}",":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";}",":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:0 0 0 3px ",";}",":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";--thumb-size:20px;}"],(e=>e.isInactive?0:1),xv,Sv,If.gray100a,If.elevationStatic,If.elevation1,Sv,If.gray100a,If.gray100a,Sv,If.gray100a,If.elevationStatic,If.elevation2),Iv=Gl.div.withConfig({displayName:"ThumbCircle",componentId:"sc-11co88f-166"})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:",";background:",";box-shadow:var(--thumb-shadow,",",","),var(--thumb-border,0 0 0 1px ",");transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:",";background-color:",";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"],If.radiusCircle,If.gray10,If.elevationStatic,If.elevation1,If.gray75a,If.radiusCircle,If.gray25),Bv=Gl.div.withConfig({displayName:"InputContainer",componentId:"sc-11co88f-167"})(["width:",";input{text-align:center;}"],(function(e){return 40+8*Math.max(e.min.toString().length,e.max.toString().length)+"px"}));function Tv({min:e,max:n,value:r,isTooltipOpen:o,inputPosition:i,isInactive:a}){const c=bv(e,n,r);return t.createElement(_v,{isInactive:a,style:Nv(c),"data-testid":"thumb"},t.createElement(Iv,null),"none"===i&&t.createElement(bm,{isOpen:o,content:r,position:"top-center"},(e=>t.createElement("div",{...e}))))}function Nv(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function Dv({min:e,max:n,value:o,onChange:i,inputPosition:a,isFromCenter:c=!1,isInactive:l,isTooltipHidden:s}){const[u,d]=r(!1),p=Array.isArray(o);return t.createElement(t.Fragment,null,t.createElement(Sv,{min:e,max:n,value:p?o[0]:o,values:o,type:"range",onChange:i,name:"min-input",onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},isFromCenter:c,isRange:p,role:"slider"}),t.createElement(Tv,{isTooltipOpen:u&&!s,min:e,max:n,value:p?o[0]:o,inputPosition:a,isInactive:l}),p&&t.createElement(t.Fragment,null,t.createElement(Sv,{min:e,max:n,value:o[1],type:"range",onChange:i,name:"max-input",values:o,onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},isRange:p}),t.createElement(Tv,{isTooltipOpen:u&&!s,min:e,max:n,value:o[1],inputPosition:a,isInactive:l})))}function zv({min:e,max:n,inputPosition:o="none",value:i,onChange:a,iconLeft:c,iconRight:l,isFromCenter:s=!1,isInactive:u=!1,isTooltipHidden:d=!1,...p}){const[f,m]=r(""),[h,g]=r("none");function v(t){g("none");const r=Number(t.target.value);r<e||n<r||(Array.isArray(i)?("min-input"===t.target.name&&r<i[1]&&a([r,i[1]]),"max-input"===t.target.name&&i[0]<r&&a([i[0],r])):a(r))}function y(e){"Enter"===e.key&&e.target.blur()}const b=String(Array.isArray(i)?i[0]:i),w=String(Array.isArray(i)?i[1]:i);return t.createElement(wv,{...p},("left"===o||"both"===o)&&t.createElement(Bv,{min:e,max:n,"data-testid":"input-left"},t.createElement(Nh,{onChange:m,value:"left"===h?f:b,type:"number",onFocus:()=>{m(b),g("left")},onBlur:()=>{v({target:{name:"min-input",value:f}})},onKeyDown:y})),c,t.createElement(xv,null,t.createElement(Dv,{min:e,max:n,value:i,inputPosition:o,onChange:v,isFromCenter:s,isInactive:u,isTooltipHidden:d})),l,("right"===o||"both"===o)&&t.createElement(Bv,{min:e,max:n,"data-testid":"input-right"},t.createElement(Nh,{onChange:m,value:"right"===h?f:w,type:"number",onFocus:()=>{m(w),g("right")},onBlur:()=>{v({target:{name:"max-input",value:f}})},onKeyDown:y})))}Gl.td.withConfig({displayName:"StyledCell",componentId:"sc-11co88f-168"})([""," "," padding:"," ",";word-break:break-word;&[data-checkbox-cell]{width:16px;}&[data-icon-cell]{width:24px;padding-left:0;}tr &:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}tr &:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}"],(e=>"primary"===e.variant?Nl([""," color:var(--table-row-color-override,inherit);"],im.uiTextM):"secondary"===e.variant?Nl([""," color:var(--table-row-color-override,",");"],im.uiTextS,If.gray600):void 0),(e=>e.isTruncated&&"max-width: 1px;"),If.spacing3,If.spacing4,If.radiusLarge,If.radiusLarge,If.radiusLarge,If.radiusLarge),Gl.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-11co88f-169"})(["flex:none;align-self:flex-start;opacity:var(--table-thumbnail-opacity,1);"]),Gl.div.withConfig({displayName:"Content",componentId:"sc-11co88f-170"})(["flex:1;min-width:0;white-space:",";"],(e=>e.isNoWrap?"nowrap":"normal")),Gl.div.withConfig({displayName:"Subtext",componentId:"sc-11co88f-171"})([""," color:var(--table-row-color-override,",");"],im.uiTextS,If.gray600),Gl.div.withConfig({displayName:"IconRight",componentId:"sc-11co88f-172"})(["flex:none;margin-left:",";color:",";"],If.spacing4,If.gray600),Gl.tr.withConfig({displayName:"DividerRow",componentId:"sc-11co88f-173"})(["&:nth-child(2){display:none;}"]),Gl.td.withConfig({displayName:"DividerCell",componentId:"sc-11co88f-174"})(["padding:"," 0;&::before{content:'';display:block;height:1px;height:1px;background:",";}"],If.spacing3,If.gray100a),Gl.tr.withConfig({displayName:"StyledRow",componentId:"sc-11co88f-175"})([""," "," ",""],(e=>e.isActive&&Nl(["--table-row-right-icon-color:",";border-radius:",";outline:none;cursor:pointer;&:hover{--table-row-right-icon-color:",";background:",";}"," &:active{background:",";box-shadow:none;}"],If.gray200,If.radiusLarge,If.gray600,If.gray25,e.isFocusVisible&&Nl(["--table-row-right-icon-color:",";background:",";box-shadow:inset 0 0 0 2px ",",inset 0 0 0 4px ",";&:hover{box-shadow:inset 0 0 0 2px ",",inset 0 0 0 4px ",";}"],If.gray600,If.gray25,If.gray100,If.gray10,If.gray50,If.gray10),If.gray50)),(e=>e.isPressed&&Nl(["--table-row-right-icon-color:",";&,&:hover{background:",";}"],If.gray600,If.gray50)),(e=>e.isDisabled&&Nl(["--table-row-right-icon-color:",";--table-thumbnail-opacity:50%;--table-row-color-override:",";pointer-events:none;"],If.gray200,If.gray200))),Gl.div.withConfig({displayName:"Icon1",componentId:"sc-11co88f-176"})(["color:var(--table-row-right-icon-color);"]),Gl.thead.withConfig({displayName:"StyledHeader",componentId:"sc-11co88f-177"})(["",""],(e=>"string"==typeof e.stickyOffset&&Nl(["--table-head-sticky-offset:",";position:sticky;top:var(--table-head-sticky-offset);z-index:1;background-color:",";",""],"0"===e.stickyOffset?"0px":e.stickyOffset,If.white,e.isStuck&&Nl(["box-shadow:0 3px 0 ",",0 1px 0 ",";"],If.gray50a,If.gray100a)))),Gl.div.withConfig({displayName:"Trigger",componentId:"sc-11co88f-178"})(["position:absolute;top:calc((var(--table-head-sticky-offset) + 1px) * -1);width:1px;height:1px;"]),Gl.th.withConfig({displayName:"StyledHeadCell",componentId:"sc-11co88f-179"})([""," padding:"," ",";text-align:left;"],im.uiTextM,If.spacing2,If.spacing4),Gl.div.withConfig({displayName:"Static",componentId:"sc-11co88f-180"})(["padding:"," 0;"],If.spacing3),Gl.span.withConfig({displayName:"Active",componentId:"sc-11co88f-181"})(["font-weight:600;"]),Gl.td.withConfig({displayName:"Cell2",componentId:"sc-11co88f-182"})(["height:",";"],If.spacing3),Gl.td.withConfig({displayName:"Cell1",componentId:"sc-11co88f-183"})(["padding:"," ",";"],If.spacing3,If.spacing4),Gl.td.withConfig({displayName:"Cell",componentId:"sc-11co88f-184"})(["padding:",";"],If.spacing4),Gl.table.withConfig({displayName:"StyledTable",componentId:"sc-11co88f-185"})(["width:100%;border-collapse:collapse;table-layout:"," !important;word-wrap:initial !important;"],(e=>e.isFixedLayout?"fixed":"auto")),Gl.button.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"TabStyled",componentId:"sc-11co88f-186"})(["display:flex;flex-grow:1;flex-basis:0;justify-content:center;align-items:center;min-width:0;height:",";padding:"," ",";border:0;border-radius:",";background-color:transparent;color:",";font-family:inherit;text-align:center;cursor:pointer;"," &:disabled{color:",";cursor:default;}&:focus-visible{color:",";box-shadow:inset 0 0 0 2px ",";outline:none;}&:hover:enabled{color:",";",";}",";",";"],(e=>"contained"===e.variant?"36px":"40px"),If.spacing3,If.spacing5,(e=>"pill"===e.shape?If.radiusPill:If.radiusBase),(e=>e.isActive?If.gray800:If.gray600),im.uiTextM,If.gray400,If.gray800,If.gray200,If.gray800,(e=>"clean"===e.variant&&Nl(["background-color:",";"],If.gray25a)),(e=>e.isActive&&"contained"===e.variant&&Nl(["background-color:",";box-shadow:0 0 1px ",",",";"],If.white,If.colorShadow,If.elevation1)),(e=>e.isActive&&"clean"===e.variant&&Nl(["background-color:",";"],If.gray50a))),Gl.span.withConfig({displayName:"Icon",componentId:"sc-11co88f-187"})(["margin-right:",";"],If.spacing3),Gl.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"TabsStyled",componentId:"sc-11co88f-188"})(["display:flex;gap:",";align-items:center;border-radius:",";",";"],If.spacing1,(e=>"pill"===e.shape?If.radiusPill:`calc(${If.radiusBase} + 2px) `),(e=>"contained"===e.variant&&Nl(["padding:",";background-color:",";"],If.spacing1,If.gray50a)));const Pv={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function Ov(e){Object.keys(Pv).forEach((t=>{e.style.setProperty(t,Pv[t],"important")}))}let Av=null;const Rv=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];function Mv({id:e,isDisabled:n=!1,isReadOnly:r=!1,isInvalid:o=!1,onBlur:i,onChange:a,onFocus:s,placeholder:u,value:d,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,minRows:h=2,maxRows:g=8,maxLength:v,...y}){const b=c(null);return function(e,t,n){const r=c(0),[o,i]=function(e,t){let n=e||2,r=t||8;return n>r&&(n=r),n<2&&(n=2),r>8&&(r=8),[n,r]}(t,n);l((()=>{const t=e.current;if(!t)return;const n=function(e){const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,Rv.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;return""===n.boxSizing?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom||"0")+parseFloat(n.paddingTop||"0"),borderSize:parseFloat(n.borderBottomWidth||"0")+parseFloat(n.borderTopWidth||"0")}}(t);if(!n)return;const a=function({sizingData:e,value:t,minRows:n,maxRows:r}){Av||(Av=document.createElement("textarea"),Av.setAttribute("tabindex","-1"),Av.setAttribute("aria-hidden","true"),Ov(Av)),null===Av.parentNode&&document.body.appendChild(Av);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!Av)return;const t=e;Av.style[t]=a[t]})),Ov(Av),Av.value=t;let c=function(e,t){const n=Av.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);Av.value="x";const l=Av.scrollHeight-o;let s=l*n;"border-box"===a.boxSizing&&(s=s+o+i),c=Math.max(s,c);let u=l*r;return"border-box"===a.boxSizing&&(u=u+o+i),c=Math.min(u,c),c}({sizingData:n,value:t.value||t.placeholder||"x",minRows:o,maxRows:i});r.current!==a&&(r.current=a,t.style.setProperty("height",`${a}px`,"important"))}))}(b,h,g),t.createElement(Fv,{value:d,onChange:function(e){if(a){const t=e.currentTarget.value;a(t)}},id:e,disabled:n,readOnly:r,isInvalid:o,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,onBlur:i,onFocus:s,placeholder:u,autoComplete:"off",autoCorrect:"off",ref:b,maxLength:v,...y})}const Fv=Gl.textarea.withConfig({displayName:"TextareaStyled",componentId:"sc-11co88f-189"})(["&&{display:block;box-sizing:border-box;width:100%;margin:0;padding:"," ",";border:1px solid ",";border-radius:",";background:",";color:",";outline:none;font-family:",";resize:none;transition:none;"," &::placeholder{color:",";}&:hover{border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:0 0 0 3px ",";}&:disabled{border-color:",";background:",";color:",";box-shadow:none;}",";}"],If.spacing3,If.spacing5,If.gray100,If.radiusBase,If.white,If.colorText,If.brandFontStackBase,im.paragraphM,If.gray400,If.gray200,If.elevation1,If.gray300,If.gray100a,If.gray100,If.gray25,If.gray600,(e=>e.isInvalid&&Nl(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],If.red500,If.red600,If.red500))),Lv=Gl.div.withConfig({displayName:"RightElementText",componentId:"sc-11co88f-190"})(["display:flex;justify-content:flex-end;align-items:center;color:",";text-align:right;"],If.gray400);Gl.div.withConfig({displayName:"LeftIconContainer",componentId:"sc-11co88f-191"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],If.spacing4),Gl.div.withConfig({displayName:"RightElementsContainer",componentId:"sc-11co88f-192"})(["margin-left:auto;padding-left:",";"],If.spacing4);const jv=Nl(["background-color:"," !important;color:"," !important;","{color:",";}"],If.gray50,If.gray800,Lv,If.gray600);function Hv(e){var t;return null!==(t=Uv[e])&&void 0!==t?t:e}Gl.a.withConfig({displayName:"StyledNavItem",componentId:"sc-11co88f-193"})(["&&{"," display:flex;align-items:center;box-sizing:border-box;width:100%;height:40px;margin:0;padding:"," ",";border:0;border-radius:",";background:none;color:",";outline:none;font-family:",";text-decoration:none;cursor:",";&:hover{background-color:",";color:",";","{color:",";}}&:active{","}"," "," ",";}"],im.uiTextM,If.spacing3,If.spacing4,If.brandRadiusBase,If.gray600,If.brandFontStackBase,(e=>e.disabled?"default":"pointer"),If.gray25,If.gray800,Lv,If.gray600,jv,(e=>e.$isSelected&&jv),(e=>e.$isFocusVisible&&Nl(["background-color:",";color:",";","{color:",";}"],If.gray25,If.gray800,Lv,If.gray600)),(e=>e.disabled&&Nl(["background-color:transparent;color:",";pointer-events:none;","{color:",";}"],If.gray400,Lv,If.gray400))),Gl(Dh).withConfig({displayName:"Divider",componentId:"sc-11co88f-194"})(["margin:"," ",";"],If.spacing2,If.spacing4),Gl.div.withConfig({displayName:"StyledTitleContainer",componentId:"sc-11co88f-195"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],im.uiTextS,If.spacing4,If.gray800),Gl.div.withConfig({displayName:"RightElementIcon",componentId:"sc-11co88f-196"})(["&:last-child{margin-right:calc("," * -1);}"],If.spacing2),Gl.div.withConfig({displayName:"Container",componentId:"sc-11co88f-197"})(["margin:0 ",";"],If.spacing5);var Uv={};function Vv(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){Uv=e}))}),[e])}function $v(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function Wv(e){return t.createElement(t.Fragment,null,t.createElement($v,null),t.createElement(Xv,null,Hv("Oops! Something went wrong")),t.createElement(Kv,null,Hv("Please try again or get in contact with our customer support.")),t.createElement(Zv,null,t.createElement(Xf,{variant:"secondary",title:Hv("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?Hv("Report sent"):Hv("Send report...")),t.createElement(Xf,{variant:"primary",title:Hv("Try again"),onClick:e.onClickRetry},Hv("Try again"))))}var Yv,qv,Gv,Xv=Gl.h1(Yv||(Yv=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),If.spacing8,If.fontSize400),Kv=Gl.span(qv||(qv=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),If.spacing5,If.colorTextDisabled),Zv=Gl.div(Gv||(Gv=_a(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),If.spacing7,If.spacing3);function Jv(e){var n;return t.createElement(iv,{title:Hv("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(Xf,{variant:"primary",title:Hv("Send report"),onClick:e.onDone},Hv("Send report")),actionSecondary:t.createElement(Xf,{variant:"secondary",title:Hv("Cancel"),onClick:e.onCancel},Hv("Cancel")),container:e.container},t.createElement(ny,null,Hv("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(ry,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(oy,null,Hv("We will treat this report as confidential and anonymous.")))}var Qv,ey,ty,ny=Gl.div(Qv||(Qv=_a(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),If.lineHeightText),ry=Gl.div(ey||(ey=_a(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),If.spacing5,If.gray25,If.radiusMedium,If.gray200,If.lineHeightText,If.spacing5,If.spacing4),oy=Gl.span(ty||(ty=_a(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),If.colorTextDisabled,If.lineHeightBase,If.fontSize75);function iy(e){var n=e.error,o=e.onRetry,i=Fa(),c=r(!1),l=c[0],s=c[1],u=r(!1),d=u[0],p=u[1];return a((function(){Aa.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(Wv,{isReportSent:d,onClickSend:function(){s(!0)},onClickRetry:o}),t.createElement(Jv,{isOpen:l,error:n,container:i,onDone:function(){ti(n),s(!1),p(!0)},onCancel:function(){s(!1)}}))}function ay(){var e=ba(Ta()[0].page),n=e[0],r=e[1],o={ASC:Hv("Ascending"),DESC:Hv("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(Xf,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(ly,{$isAscending:"ASC"===n.direction})})}var cy,ly=Gl((function(e){return Bs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)}))(cy||(cy=_a(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),If.spacing6,If.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function sy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function uy(e){var n,o=c(null),i=r(0)[1];!function(e,t){var n=Fa();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,o],e.onClickOutside),l((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=Fa(),u=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var d=e.target.current.getBoundingClientRect(),p=d.x,f=window.innerWidth,m=p+300>f?void 0:p,h=p+300>f?f-d.width-p:void 0,v="Down"===e.direction?d.top+d.height:void 0,y="Up"===e.direction?window.innerHeight-d.top:void 0,b=u.getBoundingClientRect(),w=b.width-(null!=m?m:0)-(null!=h?h:0),x=b.height-(null!=y?y:0)-(null!=v?v:0);m&&w<300&&(m=p+d.width-300);var E={left:m,right:h,top:v,bottom:y,maxWidth:w,maxHeight:x,minWidth:300},C=sy("cv-root cv-dropdown select-none",e.className);return g(t.createElement("div",{role:"menu",id:e.id,className:C,ref:o,style:E},e.children),s)}function dy(e){var n=e.buttonKind,i=void 0===n?"clean":n,a=e.direction,l=void 0===a?"Down":a,s=e.isSmall,u=e.fadeIn,d=Ea(e,["buttonKind","direction","isSmall","fadeIn"]),p=o((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=r(!1),m=f[0],h=f[1],g=c(null),v=function(){return h((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(fy,{variant:i,isSmall:s,onClick:v,ref:g,isDisabled:d.disabled,isPressed:m,"aria-haspopup":!0,"aria-expanded":m,"aria-controls":p,fadeIn:u,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(Cu,{className:"w-6 h-6 ml-1 -mr-2"})),m&&t.createElement(uy,{className:d.className,onClickOutside:v,direction:l,target:g,id:p},d.children(v)))}var py,fy=Gl(Xf)(py||(py=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\ttext-transform: inherit;\n\t","\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.fadeIn?"animation: var(--fade-in-down);":""}));function my(e){var n=e.selected,r=void 0!==n&&n,o=Ea(e,["selected"]),i=sy("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(Su,{className:"w-6 h-6 ml-3 fade-in"})))}function hy(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=ba(Ta()[0].page),i=o[0],a=o[1],c={CREATED_AT:Hv("Date added"),NAME:Hv("Name"),PUBLISHED_AT:Hv("Date published"),UPDATED_AT:Hv("Date modified")};return t.createElement(vy,null,t.createElement(dy,{className:"py-2",title:c[i.field],alt:Hv("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(my,{className:"px-4 py-px text-sm",selected:i.field===n,key:c[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},c[n]))})))})))}var gy,vy=Gl.div(gy||(gy=_a(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function yy(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function by(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:sy("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function wy(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(Vm,null,t.createElement(Vm.Frame,null),t.createElement(Vm.AdditionalInfo,null,t.createElement(by,{width:70+xy(100,r),className:"h-4"})),e.title))})))}function xy(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}var Ey=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Cy=Ey.Provider,ky=function(){return i(Ey)},Sy=function(){return ky().selectionMode};function _y(e){return{tag:"ok",value:e}}function Iy(e){return{tag:"error",error:e}}function By(e){return"ok"===e.tag}function Ty(e){return"error"===e.tag}function Ny(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}function Dy(e){var t;if(e.transformBaseURL){var n=e,r="transformBaseURL",o=n[r],i=Ea(n,[r+""]);return xa(xa({},i),((t={}).transformBaseUrl=xa({},o),t))}return e}var zy=new Map;function Py(e,t,n){return Ca(this,void 0,void 0,(function(){var r,o,i,a,c,l,s,u;return ka(this,(function(d){switch(d.label){case 0:if(!n)return[2,Iy("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?Ny(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),zy.has(i))return[2,_y(zy.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("3.3.4")},c=void 0===r?a:xa(xa({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:c,body:JSON.stringify({query:e,variables:t})},d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,d.sent().json()];case 3:return s=d.sent(),u=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?xa(xa({},e),{searchAssets:xa(xa({},e.searchAssets),{assets:xa(xa({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=Dy(e.files);return xa(xa({},e),{files:xa({},t)})}return e}))})})}):e}(s.data),[3,5];case 4:return[2,Iy(d.sent())];case 5:return void 0!==s.errors?[2,Iy(s.errors.map((function(e){return e.message})).join(","))]:(zy.set(i,u),zy.size>50&&zy.delete(zy.keys().next().value),[2,_y(u)])}}))}))}function Oy(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function Ay(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e),n=Array.from(t).map((function(e){return"0".concat(e.toString(16)).substr(-2)}));return n.join("")}var Ry="42b1eefa-d754-4802-b9c4-bf80d6ab6052",My="".concat("https://d8ejoa1fys2rk.cloudfront.net"),Fy=My+"/5.0.5/modules/compactview/loginCompleted.html",Ly="".concat("https://apiv2.webdamdb.com","/"),jy=["offline","asset:read","collection:read","meta.assetbank:read"];function Hy(e,t,n){return Ca(this,void 0,void 0,(function(){var r,o,i,a;return ka(this,(function(c){switch(c.label){case 0:r=Uy(n)+"token",o=new URLSearchParams({client_id:Ry,code_verifier:t,code:e,redirect_uri:Fy,grant_type:"authorization_code"}),c.label=1;case 1:return c.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=c.sent()).ok?[4,i.json()]:[2,Iy("Failed to fetch access token: ".concat(i.status))];case 3:return[2,_y({refreshToken:(a=c.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Iy(c.sent().toString())];case 5:return[2]}}))}))}function Uy(e){return"webdam"===Vy()?Ly+"oauth2/":Ny(e)+"v6/authentication/oauth2/"}function Vy(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function $y(e){return Ca(this,void 0,void 0,(function(){var t,n,r,o,i,a;return ka(this,(function(c){switch(c.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,Iy("Error opening login window")]:(o.document.head.innerHTML=Wy,o.document.body.innerHTML=Yy,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===My&&e(_y(t))}))})),new Promise((function(e){setTimeout((function(){return e(Iy("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(Iy("Login window closed")))}),1e3)})))])]);case 1:return Ty(i=c.sent())?[2,i]:[2,_y({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var Wy='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',Yy='<div class="cv-spinner"></div>';function qy(e){var n=Fa();return t.createElement(wl,{target:n,disableVendorPrefixes:!0},t.createElement(gm,{zIndexBase:1e6},e.children))}function Gy(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o,c=t.useRef(null),l=r(null),s=l[0],u=l[1];return a((function(){if(null!==c.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(c.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+'/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}dd,h1,h3,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1,h3{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select,textarea{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.border-ui-600{border-color:rgba(0,34,51,.1)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mt-2{margin-top:8px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mt-1{margin-top:-4px}.-mr-1{margin-right:-4px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.shadow-border{-webkit-box-shadow:0 1px 6px -2px rgba(0,34,51,.1);box-shadow:0 1px 6px -2px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.text-body-500{color:rgba(0,34,51,.8)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}',Xy(null!=e?e:document.head,t),n&&Xy(document.head,Zy),u(null!=n?n:c.current)}}),[]),t.createElement("div",{ref:c,style:{display:"flex",height:"100%"},"data-testid":"root"},s&&t.createElement(Ma,{value:s},t.createElement(qy,null,g(t.createElement(Jy,{isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),s))))}function Xy(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var Ky,Zy="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),Jy=Gl.div(Ky||(Ky=_a(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.isContainerMode?"100%":"auto"})),Qy=n("parent");function eb(e){var n=e.children,r=e.isContainerMode,o=void 0!==r&&r;return"parent"===i(Qy)?t.createElement(Qy.Provider,{value:"child"},t.createElement(Gy,{isContainerMode:o},n)):t.createElement(t.Fragment,null,n)}var tb=n(null),nb=function(){return i(tb)};function rb(e){var n=e.children,i=e.isOpen,c=void 0===i||i,l=e.style,s=e.onClose,u=void 0===s?function(){}:s,d=r(null),p=d[0],f=d[1],m=o((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),c?t.createElement(tb.Provider,{value:m},p&&t.createElement(t.Fragment,null,g(t.createElement(eb,null,t.createElement(ab,{className:"z-a-lot"},t.createElement(cb,{style:l,"data-testid":"modal"},n))),p))):null}var ob,ib,ab=Gl.div(ob||(ob=_a(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),If.spacing5,If.gray100a),cb=Gl.div(ib||(ib=_a(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),If.radiusBase);function lb(e){var n=nb();return t.createElement(pb,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(fb,{variant:"clean",onClick:n.onClose,title:Hv("Close"),icon:t.createElement(Bu,null)}),t.createElement(mb,null,e.children))}var sb,ub,db,pb=Gl.div(sb||(sb=_a(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),If.gray10),fb=Gl(Xf)(ub||(ub=_a(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),If.spacing4,If.spacing5),mb=Gl.div(db||(db=_a(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),If.fontSize300);function hb(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},Hv("Connect your brand portal")))}function gb(e){var n=sy("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function vb(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(wb,null,t.createElement(Hg,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:Hv("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&Hv("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(xb,{role:"alert","aria-live":"polite"},t.createElement(gb,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var yb,bb,wb=Gl.div(yb||(yb=_a(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),If.spacing4),xb=Gl.div(bb||(bb=_a(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function Eb(e){return t.createElement(Xf,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},Hv("Connect"))}function Cb(e){return t.createElement(lb,null,t.createElement(hb,null),t.createElement(vb,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(Eb,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var kb=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}wa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(iy,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function Sb(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(gb,null)," ")}var _b=n(null);function Ib(e){var n,o,i,l,s,u,d,p,f;Vv(null!==(n=e.language)&&void 0!==n?n:"en_US");var m=function(){var e,t,n=r(void 0),o=n[0],i=n[1],l=r(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),s=l[0],u=l[1],d=r(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],m=r(w()),h=m[0],g=m[1],v=c();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(w(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function w(e,t){return void 0===e&&(e=o),void 0===t&&(t=s),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){o&&o()||!s||!p||(g("refreshing"),function(e,t){return Ca(this,void 0,void 0,(function(){var n,r,o,i;return ka(this,(function(a){switch(a.label){case 0:n=Uy(t)+"token",r=new URLSearchParams({client_id:Ry,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,Iy("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,_y({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Iy(a.sent().toString())];case 5:return[2]}}))}))}(s,p).then((function(e){By(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:s,accountDomain:p}):(Aa.error(e.error),b())})))}),[o,s,p]),[{getAccessToken:o,accountDomain:p,status:h},y,b]}(),h=m[0],g=m[1],v=m[2],y=function(e){var t=r(null!=e?e:""),n=t[0],o=t[1],i=r(e?"validating":"empty"),l=i[0],s=i[1],u=c();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return Ca(this,void 0,void 0,(function(){var t,n,r;return ka(this,(function(o){switch(o.label){case 0:t=Ny(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(s("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),o(e),s(""===e?"empty":"validating")},l]}(null!==(i=null===(o=e.portal)||void 0===o?void 0:o.url)&&void 0!==i?i:h.accountDomain),b=y[0],w=y[1],x=y[2],E=r(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&Aa.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(l=e.authentication)||void 0===l?void 0:l.hideLogout,null===(s=e.authentication)||void 0===s?void 0:s.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return Ca(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,l,s,u,d;return ka(this,(function(p){switch(p.label){case 0:t=Ay(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,Oy(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,Iy(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=Ay(),i=function(e,t,n){var r={client_id:Ry,code_challenge:e,code_challenge_method:"S256",redirect_uri:Fy,response_type:"code",scope:jy.join(" "),domain:"",state:t},o="auth?";"webdam"===Vy()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return Uy(n)+o+i}(r,o,e),[4,$y(i)];case 5:return Ty(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,Iy("Error logging in")]:[4,Hy(a.value.code,t,e)];case 6:return Ty(c=p.sent())?[2,c]:(l=c.value,s=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,_y({accessToken:u,expiresIn:parseFloat(d),refreshToken:s})])}var f}))}))}(b).then((function(t){e&&(function(e){if(By(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else Aa.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=xa(xa({},h),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(h.status){case"authenticated":return t.createElement(_b.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(eb,{isContainerMode:!0},t.createElement(Cb,{domainValue:b,domainStatus:x,onChangeDomain:w,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(Sb,null)}}var Bb=function(e){return t.createElement(kb,null,t.createElement(Ib,xa({},e)))},Tb=function(){return i(_b)},Nb="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n showInGridView\n showInListView\n }\n}",Db="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(Nb,"\n");function zb(e){var t,n,o,i,c,l=this,s=Tb(),u=r({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,m=function(t){return Ca(l,void 0,void 0,(function(){var n,r;return ka(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=Pb(e,null!=t?t:null),[4,Py(Db,n,s)];case 1:return r=o.sent(),f||(Ty(r)?p({tag:"Failure",value:r.error}):h(r,t)),[2]}}))}))},h=function(e,t){Ob(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=Ob(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:xa(xa({},e.value.searchAssets.assets),{nodes:Sa(Sa([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return a((function(){return m(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(n=e.filter)||void 0===n?void 0:n.metaproperties,null===(o=e.filter)||void 0===o?void 0:o.tags,null===(i=e.filter)||void 0===i?void 0:i.isLimited,e.collection,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return m()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return m(null===(e=Ob(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(c=Ob(d))||void 0===c?void 0:c.pageInfo.hasNextPage)}}var Pb=function(e,t){var n,r,o,i,a,c=e.filter,l=e.predefinedFilter,s=e.collection,u=e.orderBy,d=e.allAssetTypes,p=e.searchTerm,f=e.language,m=(null===(n=null==c?void 0:c.assetTypes)||void 0===n?void 0:n.length)?c.assetTypes:null==l?void 0:l.assetType_in;return{orderBy:u,filter:{collectionId:null!==(r=null==s?void 0:s.id)&&void 0!==r?r:null==l?void 0:l.collectionId,assetType_in:null!=m?m:d,metapropertyOptionId_in:null!==(o=Ab(null==c?void 0:c.metaproperties))&&void 0!==o?o:null==l?void 0:l.metapropertyOptionId_in,searchTerm:null!==(i=null!=p?p:null==l?void 0:l.searchTerm)&&void 0!==i?i:null,tagNames_in:null!==(a=null==c?void 0:c.tags)&&void 0!==a?a:null==l?void 0:l.tagNames_in,isLimitedUse:null==c?void 0:c.isLimited},after:t,language:f}},Ob=function(e,t){var n,r=null!=t?t:e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets},Ab=function(e){return e?e.map((function(e){return e.id})):null};function Rb(e,t,n){return Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,Py("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(Nb),{ids:e,language:n},t)];case 1:return Ty(r=o.sent())?[2,r]:[2,_y(r.value.nodes)]}}))}))}var Mb="object"==typeof v&&v&&v.Object===Object&&v,Fb=Mb,Lb="object"==typeof self&&self&&self.Object===Object&&self,jb=Fb||Lb||Function("return this")(),Hb=jb.Symbol,Ub=Hb,Vb=Object.prototype,$b=Vb.hasOwnProperty,Wb=Vb.toString,Yb=Ub?Ub.toStringTag:void 0,qb=Object.prototype.toString,Gb=function(e){var t=$b.call(e,Yb),n=e[Yb];try{e[Yb]=void 0;var r=!0}catch(e){}var o=Wb.call(e);return r&&(t?e[Yb]=n:delete e[Yb]),o},Xb=Hb?Hb.toStringTag:void 0,Kb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xb&&Xb in Object(e)?Gb(e):function(e){return qb.call(e)}(e)},Zb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Jb=Kb,Qb=Zb,ew=jb["__core-js_shared__"],tw=function(){var e=/[^.]+$/.exec(ew&&ew.keys&&ew.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),nw=Function.prototype.toString,rw=function(e){if(null!=e){try{return nw.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ow=function(e){if(!Qb(e))return!1;var t=Jb(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},iw=function(e){return!!tw&&tw in e},aw=Zb,cw=rw,lw=/^\[object .+?Constructor\]$/,sw=Function.prototype,uw=Object.prototype,dw=sw.toString,pw=uw.hasOwnProperty,fw=RegExp("^"+dw.call(pw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mw=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!aw(e)||iw(e))&&(ow(e)?fw:lw).test(cw(e))}(n)?n:void 0},hw=mw(jb,"DataView"),gw=mw(jb,"Map"),vw=mw(jb,"Promise"),yw=mw(jb,"Set"),bw=mw(jb,"WeakMap"),ww=Kb,xw=rw,Ew=xw(hw),Cw=xw(gw),kw=xw(vw),Sw=xw(yw),_w=xw(bw),Iw=ww;(hw&&"[object DataView]"!=Iw(new hw(new ArrayBuffer(1)))||gw&&"[object Map]"!=Iw(new gw)||vw&&"[object Promise]"!=Iw(vw.resolve())||yw&&"[object Set]"!=Iw(new yw)||bw&&"[object WeakMap]"!=Iw(new bw))&&(Iw=function(e){var t=ww(e),n="[object Object]"==t?e.constructor:void 0,r=n?xw(n):"";if(r)switch(r){case Ew:return"[object DataView]";case Cw:return"[object Map]";case kw:return"[object Promise]";case Sw:return"[object Set]";case _w:return"[object WeakMap]"}return t});var Bw,Tw=Kb,Nw=function(e){return null!=e&&"object"==typeof e},Dw=Object.prototype;Dw.hasOwnProperty,Dw.propertyIsEnumerable,Bw=function(){return arguments}(),Nw(Bw)&&Tw(Bw);var zw={exports:{}},Pw=function(){return!1};!function(e,t){var n=jb,r=Pw,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;e.exports=c}(zw,zw.exports);var Ow={exports:{}};!function(e,t){var n=Mb,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Ow,Ow.exports);var Aw={},Rw={"text/plain":"Text","text/html":"Url",default:"Text"};function Mw(e){return Mw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mw(e)}Object.defineProperty(Aw,"__esModule",{value:!0}),Aw.CopyToClipboard=void 0;var Fw=Hw(t),Lw=Hw((function(e,t){var n,r,o,i,a,c,l=!1;t||(t={}),n=t.debug||!1;try{if(o=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}(),i=document.createRange(),a=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=Rw[t.format]||Rw.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),i.selectNodeContents(c),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),c&&document.body.removeChild(c),o()}return l})),jw=["text","onCopy","options","children"];function Hw(e){return e&&e.__esModule?e:{default:e}}function Uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uw(Object(n),!0).forEach((function(t){Kw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ww(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yw(e,t){return Yw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yw(e,t)}function qw(e,t){if(t&&("object"===Mw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gw(e)}function Gw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xw(e){return Xw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xw(e)}function Kw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yw(e,t)}(a,Fw.default.PureComponent);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Xw(r);if(o){var n=Xw(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return qw(this,e)});function a(){var e;$w(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Kw(Gw(e=i.call.apply(i,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,o=n.onCopy,i=n.children,a=n.options,c=Fw.default.Children.only(i),l=(0,Lw.default)(r,a);o&&o(r,l),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,jw),r=Fw.default.Children.only(t);return Fw.default.cloneElement(r,Vw(Vw({},n),{},{onClick:this.onClick}))}}])&&Ww(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}();Aw.CopyToClipboard=Zw,Kw(Zw,"defaultProps",{onCopy:void 0,options:void 0});var Jw=Aw.CopyToClipboard;Jw.CopyToClipboard=Jw;var Qw=Jw;let ex=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function tx(e){return Bs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22l-4-4h8l-4 4zm0-20l4 4H8l4-4zm0 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM2 12l4-4v8l-4-4zm20 0l-4 4V8l4 4z"}}]}]})(e)}var nx={exports:{}},rx=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},ox=rx,ix=Object.prototype.toString;function ax(e){return"[object Array]"===ix.call(e)}function cx(e){return void 0===e}function lx(e){return null!==e&&"object"==typeof e}function sx(e){if("[object Object]"!==ix.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function ux(e){return"[object Function]"===ix.call(e)}function dx(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),ax(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var px={isArray:ax,isArrayBuffer:function(e){return"[object ArrayBuffer]"===ix.call(e)},isBuffer:function(e){return null!==e&&!cx(e)&&null!==e.constructor&&!cx(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:lx,isPlainObject:sx,isUndefined:cx,isDate:function(e){return"[object Date]"===ix.call(e)},isFile:function(e){return"[object File]"===ix.call(e)},isBlob:function(e){return"[object Blob]"===ix.call(e)},isFunction:ux,isStream:function(e){return lx(e)&&ux(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:dx,merge:function e(){var t={};function n(n,r){sx(t[r])&&sx(n)?t[r]=e(t[r],n):sx(n)?t[r]=e({},n):ax(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)dx(arguments[r],n);return t},extend:function(e,t,n){return dx(t,(function(t,r){e[r]=n&&"function"==typeof t?ox(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},fx=px;function mx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var hx=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(fx.isURLSearchParams(t))r=t.toString();else{var o=[];fx.forEach(t,(function(e,t){null!=e&&(fx.isArray(e)?t+="[]":e=[e],fx.forEach(e,(function(e){fx.isDate(e)?e=e.toISOString():fx.isObject(e)&&(e=JSON.stringify(e)),o.push(mx(t)+"="+mx(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},gx=px;function vx(){this.handlers=[]}vx.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},vx.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},vx.prototype.forEach=function(e){gx.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var yx=vx,bx=px,wx=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},xx=wx,Ex=function(e,t,n,r,o){var i=new Error(e);return xx(i,t,n,r,o)},Cx=Ex,kx=px,Sx=kx.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),kx.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),kx.isString(r)&&a.push("path="+r),kx.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},_x=px,Ix=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Bx=px,Tx=Bx.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=Bx.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},Nx=px,Dx=Sx,zx=hx,Px=Tx,Ox=Ex,Ax=px,Rx=function(e,t){bx.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Mx=wx,Fx={"Content-Type":"application/x-www-form-urlencoded"};function Lx(e,t){!Ax.isUndefined(e)&&Ax.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var jx,Hx={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(jx=function(e){return new Promise((function(t,n){var r=e.data,o=e.headers,i=e.responseType;Nx.isFormData(r)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(c+":"+l)}var s,u,d=(s=e.baseURL,u=e.url,s&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(u)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(s,u):u);function p(){if(a){var r="getAllResponseHeaders"in a?function(e){var t,n,r,o={};return e?(_x.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=_x.trim(e.substr(0,r)).toLowerCase(),n=_x.trim(e.substr(r+1)),t){if(o[t]&&Ix.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}(a.getAllResponseHeaders()):null,o={data:i&&"text"!==i&&"json"!==i?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:r,config:e,request:a};(function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(Cx("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)})(t,n,o),a=null}}if(a.open(e.method.toUpperCase(),zx(d,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,"onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(p)},a.onabort=function(){a&&(n(Ox("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(Ox("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Ox(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Nx.isStandardBrowserEnv()){var f=(e.withCredentials||Px(d))&&e.xsrfCookieName?Dx.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in a&&Nx.forEach(o,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Nx.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&"json"!==i&&(a.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),n(e),a=null)})),r||(r=null),a.send(r)}))}),jx),transformRequest:[function(e,t){return Rx(t,"Accept"),Rx(t,"Content-Type"),Ax.isFormData(e)||Ax.isArrayBuffer(e)||Ax.isBuffer(e)||Ax.isStream(e)||Ax.isFile(e)||Ax.isBlob(e)?e:Ax.isArrayBufferView(e)?e.buffer:Ax.isURLSearchParams(e)?(Lx(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Ax.isObject(e)||t&&"application/json"===t["Content-Type"]?(Lx(t,"application/json"),function(e,t,n){if(Ax.isString(e))try{return(0,JSON.parse)(e),Ax.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&Ax.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Mx(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ax.forEach(["delete","get","head"],(function(e){Hx.headers[e]={}})),Ax.forEach(["post","put","patch"],(function(e){Hx.headers[e]=Ax.merge(Fx)}));var Ux=Hx,Vx=px,$x=Ux,Wx=function(e){return!(!e||!e.__CANCEL__)},Yx=px,qx=function(e,t,n){var r=this||$x;return Vx.forEach(n,(function(n){e=n.call(r,e,t)})),e},Gx=Wx,Xx=Ux;function Kx(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Zx=px,Jx=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,t){return Zx.isPlainObject(e)&&Zx.isPlainObject(t)?Zx.merge(e,t):Zx.isPlainObject(t)?Zx.merge({},t):Zx.isArray(t)?t.slice():t}function l(r){Zx.isUndefined(t[r])?Zx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(e[r],t[r])}Zx.forEach(r,(function(e){Zx.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),Zx.forEach(o,l),Zx.forEach(i,(function(r){Zx.isUndefined(t[r])?Zx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(void 0,t[r])})),Zx.forEach(a,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var s=r.concat(o).concat(i).concat(a),u=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===s.indexOf(e)}));return Zx.forEach(u,l),n},Qx={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},eE={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){eE[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var tE={},nE=Qx.version.split(".");function rE(e,t){for(var n=t?t.split("."):nE,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}eE.transitional=function(e,t,n){var r=t&&rE(t);function o(e,t){return"[Axios v"+Qx.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(o(i," has been removed in "+t));return r&&!tE[i]&&(tE[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}};var oE={isOlderVersion:rE,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],l=void 0===c||a(c,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:eE},iE=px,aE=hx,cE=yx,lE=function(e){return Kx(e),e.headers=e.headers||{},e.data=qx.call(e,e.data,e.headers,e.transformRequest),e.headers=Yx.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Yx.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Xx.adapter)(e).then((function(t){return Kx(e),t.data=qx.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Gx(t)||(Kx(e),t&&t.response&&(t.response.data=qx.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},sE=Jx,uE=oE,dE=uE.validators;function pE(e){this.defaults=e,this.interceptors={request:new cE,response:new cE}}pE.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=sE(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&uE.assertOptions(t,{silentJSONParsing:dE.transitional(dE.boolean,"1.0.0"),forcedJSONParsing:dE.transitional(dE.boolean,"1.0.0"),clarifyTimeoutError:dE.transitional(dE.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var a=[lE,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=e;n.length;){var l=n.shift(),s=n.shift();try{c=l(c)}catch(e){s(e);break}}try{o=lE(c)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},pE.prototype.getUri=function(e){return e=sE(this.defaults,e),aE(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},iE.forEach(["delete","get","head","options"],(function(e){pE.prototype[e]=function(t,n){return this.request(sE(n||{},{method:e,url:t,data:(n||{}).data}))}})),iE.forEach(["post","put","patch"],(function(e){pE.prototype[e]=function(t,n,r){return this.request(sE(r||{},{method:e,url:t,data:n}))}}));var fE=pE;function mE(e){this.message=e}mE.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},mE.prototype.__CANCEL__=!0;var hE=mE,gE=hE;function vE(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new gE(e),t(n.reason))}))}vE.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},vE.source=function(){var e;return{token:new vE((function(t){e=t})),cancel:e}};var yE=vE,bE=px,wE=rx,xE=fE,EE=Jx;function CE(e){var t=new xE(e),n=wE(xE.prototype.request,t);return bE.extend(n,xE.prototype,t),bE.extend(n,t),n}var kE=CE(Ux);kE.Axios=xE,kE.create=function(e){return CE(EE(kE.defaults,e))},kE.Cancel=hE,kE.CancelToken=yE,kE.isCancel=Wx,kE.all=function(e){return Promise.all(e)},kE.spread=function(e){return function(t){return e.apply(null,t)}},kE.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},nx.exports=kE,nx.exports.default=kE;var SE=nx.exports;function _E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_E(Object(n),!0).forEach((function(t){BE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TE(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function NE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||zE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DE(e){return function(e){if(Array.isArray(e))return PE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zE(e,t){if(e){if("string"==typeof e)return PE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PE(e,t):void 0}}function PE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var OE=["theme"];Gl.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1kgkg60-0"})(["button&,a&{display:flex;flex-wrap:nowrap;flex:0 0 auto;white-space:nowrap;position:relative;min-width:40px;text-align:center;background-position:center;fill:currentColor;text-decoration:none;&:focus{display:flex;}}align-items:center !important;box-sizing:border-box !important;text-shadow:none !important;text-transform:none !important;font-family:"," !important;font-size:"," !important;font-weight:400 !important;line-height:"," !important;border-radius:",";outline:none !important;border:1px solid transparent !important;cursor:pointer !important;vertical-align:middle;justify-content:center;font-style:normal;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],If.fontStackBase,If.fontSizeBase,If.lineHeightBase,If.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?Nl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],If.spacing4,If.fontSize75):Nl(["height:40px !important;padding:0 "," !important;"],If.spacing5)}),(function(e){var t=e.theme,n=TE(e,OE);if("primary-dark"===n.variant){var r=Nl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],If.componentButtonPrimaryBorderActive,If.componentButtonPrimaryFillActive,If.componentButtonPrimaryColorActive);return Nl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{background-color:",";color:",";border-color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],If.componentButtonPrimaryFill,If.componentButtonPrimaryColor,n.isPressed&&r,If.componentButtonPrimaryBorderHover,If.componentButtonPrimaryFillHover,If.componentButtonPrimaryColorHover,If.elevation1,If.componentButtonPrimaryFillFocus,If.componentButtonPrimaryColorFocus,If.componentButtonPrimaryBorderFocus,If.componentButtonPrimaryFocusRing,r,If.componentButtonPrimaryBorderDisabled,If.componentButtonPrimaryFillDisabled,If.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=Nl(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return Nl(["color:rgba(255,255,255,0.8) !important;background-color:rgba(255,255,255,0.1) !important;"," &:hover{color:"," !important;background-color:rgba(255,255,255,0.15) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.3) !important;background-color:rgba(255,255,255,0.05) !important;border-color:transparent !important;box-shadow:none !important;}"],n.isPressed&&o,t.legacy.colorWhite,o)}if("clean-dark"===n.variant){var i=Nl(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return Nl(["color:",";background-color:transparent !important;border-color:transparent !important;box-shadow:none !important;border-radius:"," !important;"," &:hover{color:#fff !important;background-color:rgba(255,255,255,0.05) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.15) !important;background-color:transparent !important;}"],t.legacy.colorTextDarker,t.legacy.buttonBorderRadius,n.isPressed&&i,i)}return""}));var AE=Gl.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);Gl(AE).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(If.spacing2," * -1)"):If.spacing3}),If.spacing2),Gl(AE).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],If.spacing2,If.spacing3);var RE,ME=ql(["100%{transform:rotate(360deg);}"]),FE=ql(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);Gl.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],ME),Gl.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],FE),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(RE||(RE={}));var LE,jE,HE,UE=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),VE=Gl(UE).withConfig({displayName:"IconRightContainer",componentId:"sc-16awveu-1"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Gl.input.withConfig({displayName:"StyledInput",componentId:"sc-16awveu-2"})(["box-sizing:border-box;width:100%;height:40px;font-family:",";font-size:",";line-height:",";color:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";"," &::placeholder{color:",";}&:focus,&:hover{& ","{fill:"," !important;}border:1px solid ",";}",";padding-left:","px;padding-right:","px;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.inputType===RE.Select&&"\n background: rgba(0, 34, 51, 0.03) !important;\n color: transparent !important;\n text-shadow: 0 0 0 ".concat(e.theme.legacy.colorText,";\n cursor: pointer;\n\n &:hover {\n background: rgba(0, 34, 51, 0.03) !important;\n }\n ")}),(function(e){return e.theme.legacy.colorTextDisabled}),VE,(function(e){return e.theme.legacy.colorIconActive}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?"\n border: none !important; /* overrides bynder-custom17 */\n &:focus, &:hover {\n border: none;\n }\n ":""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Gl.label.withConfig({displayName:"Label",componentId:"sc-16awveu-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Gl.p.withConfig({displayName:"ErrorMessage",componentId:"sc-16awveu-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Gl(UE).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Gl(UE).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Gl.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Gl.div.withConfig({displayName:"ListContainer",componentId:"sc-16awveu-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Yl(["textarea,input[type='text'],input[type='password'],input[type='datetime'],input[type='datetime-local'],input[type='date'],input[type='month'],input[type='time'],input[type='week'],input[type='number'],input[type='email'],input[type='url'],input[type='search'],input[type='tel'],input[type='color']{height:40px;line-height:",";margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:","px;padding-right:","px;font-size:",";"," &::placeholder{color:",";}&:focus,&:hover{&::placeholder{color:",";}}}"],(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError,";"):""}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled})),function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Backspace="Backspace",e.Escape="Escape",e.Tab="Tab"}(LE||(LE={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(jE||(jE={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(HE||(HE={})),Gl.div.withConfig({displayName:"MainContainer",componentId:"sc-167ea0r-0"})(["background-color:",";border:",";box-shadow:",";border-radius:5px;padding:8px 0;"],(function(e){return e.dark?e.theme.legacy.colorBackgroundDark:e.theme.legacy.colorBackground}),(function(e){return e.borderless?"none":"1px solid ".concat(e.theme.legacy.colorBorder)}),(function(e){return e.borderless?"none":e.theme.legacy.boxShadow}));var $E=Gl.li.withConfig({displayName:"Li",componentId:"sc-167ea0r-1"})(["display:flex;font-size:",";align-items:center;height:36px;padding:0 16px !important;"],(function(e){return e.theme.legacy.fontSizeSmall})),WE=Gl($E).withConfig({displayName:"Item",componentId:"sc-167ea0r-2"})(["cursor:pointer;&&&{&:active,&:focus,&:hover{color:",";background-color:",";outline:none;}}"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextLightActive}),(function(e){return e.dark?e.theme.legacy.colorBackgroundDarkHover:e.theme.legacy.colorBackgroundLight}));Gl($E).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),Gl($E).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),Gl.ul.withConfig({displayName:"Ul",componentId:"sc-167ea0r-5"})(["margin:0;padding:0;list-style-type:none;max-height:",";overflow-y:auto;","{color:",";}"],(function(e){return e.maxHeight||"350px"}),WE,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-167ea0r-6"})(["display:flex;margin-right:8px;fill:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorIcon})),Gl.div.withConfig({displayName:"Divider",componentId:"sc-167ea0r-7"})(["margin:8px 0;border-bottom:1px solid ",";width:100%;"],(function(e){return e.dark?e.theme.legacy.colorRichBlack30:e.theme.legacy.colorBorder})),Gl.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var YE=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),qE=Gl(YE).withConfig({displayName:"IconRightContainer",componentId:"sc-6ftogw-1"})(["right:12px;cursor:",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorMutedIcon}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.disabled?e.theme.legacy.colorMutedIcon:e.theme.legacy.colorMutedIconActive}));Gl.input.withConfig({displayName:"StyledInput",componentId:"sc-6ftogw-2"})(["box-sizing:border-box;width:100%;height:40px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";cursor:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";&:focus,&:hover{& ","{fill:"," !important;}&::placeholder{color:"," !important;}","}&::placeholder{color:"," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.disabled?e.theme.legacy.colorTextDisabled:e.theme.legacy.colorText}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?If.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),qE,(function(e){return e.theme.legacy.colorMutedIconActive}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError," !important;"):e.dark?"":e.disabled?"border: 1px solid ".concat(e.theme.legacy.colorBorder," !important;"):"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus," !important;")}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.borderless?Nl(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Gl.label.withConfig({displayName:"Label",componentId:"sc-6ftogw-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Gl.p.withConfig({displayName:"ErrorMessage",componentId:"sc-6ftogw-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Gl.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Gl(YE).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Gl(YE).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Gl.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),Gl.div.withConfig({displayName:"SpinnerBorder",componentId:"sc-1lat4jy-0"})(["display:flex;width:24px;height:24px;justify-content:center;align-items:center;svg{animation:borderRotate 1s linear infinite;width:20px;height:20px;circle{stroke:",";stroke-linecap:round;animation:borderDash 1.5s ease-in-out infinite;}}@keyframes borderRotate{100%{transform:rotate(360deg);}}@keyframes borderDash{0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}}"],(function(e){switch(e.colorMode){case jE.COLOR:return e.theme.legacy.colorPrimary;case jE.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var GE=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);Gl(GE).withConfig({displayName:"IconRightContainer",componentId:"sc-hv8gko-1"})(["top:0;right:12px;",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.onClick&&"cursor: pointer;"}),(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Gl.input.withConfig({displayName:"StyledInput",componentId:"sc-hv8gko-2"})(["box-sizing:border-box;width:100%;height:","px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";background:",";border-radius:5px;outline:none !important;border:1px solid "," !important;&::placeholder{color:"," !important;}&:focus,&:hover:not([disabled]){&::placeholder{color:"," !important;}border:1px solid "," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";&&:disabled{background:",";border-color:"," !important;}"],(function(e){return e.small?32:40}),(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?Nl(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive&&!e.error?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundLight})),Gl.label.withConfig({displayName:"Label",componentId:"sc-hv8gko-3"})(["font-weight:normal;font-family:",";font-size:",";color:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.colorText})),Gl.p.withConfig({displayName:"ErrorMessage",componentId:"sc-hv8gko-4"})(["margin:4px 0 0;font-size:",";line-height:",";color:",";"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.lineHeightSmall}),(function(e){return e.theme.legacy.colorError})),Gl.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Gl(GE).withConfig({displayName:"IconLeftContainer",componentId:"sc-hv8gko-7"})(["top:0;left:10px;fill:",";color:",";"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIcon})),Gl.p.withConfig({displayName:"Counter",componentId:"sc-hv8gko-8"})(["position:absolute;right:0;font-size:",";color:",";margin:4px 0 0 0;text-align:right;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorTextDisabled})),Gl.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),Gl.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],If.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),Gl.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),Gl.ul.withConfig({displayName:"StyledUserSearchDropdown",componentId:"sc-uhd8g-2"})(["display:block;box-sizing:border-box;overflow-y:auto;padding:"," 0;margin:0;border:none;border-radius:",";background-color:",";box-shadow:0 0 0 1px ",";z-index:1;&:empty{display:none;}> li{list-style:none;}"],If.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var XE=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);Gl(XE).withConfig({displayName:"IconRightContainer",componentId:"sc-uhd8g-4"})(["cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Gl.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),Gl.div.withConfig({displayName:"InfoContainer",componentId:"sc-1ozn84q-1"})(["flex:1;margin-right:12px;color:",";min-width:0;"],(function(e){return e.isDisabled?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Gl.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),Gl.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),Gl.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),Gl.div.withConfig({displayName:"ExtraInfo",componentId:"sc-1ozn84q-5"})(["font-size:14px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.legacy.colorTextLight}));var KE=Gl.div.withConfig({displayName:"LoadingPlaceholder",componentId:"sc-1ozn84q-6"})(["&:after{content:'';display:flex;width:120px;height:6px;border-radius:4px;margin:3px 0;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20}));Gl(KE).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),Gl(KE).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-1ozn84q-9"})(["min-width:40px;height:40px;margin-right:8px;display:flex;align-items:center;justify-content:center;border-radius:",";background-color:",";fill:",";"],(function(e){return e.square?"5px":"50%"}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundActive})),Gl.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),Gl.div.withConfig({displayName:"StyledItemCheck",componentId:"sc-ri03d3-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 2px ",";"," svg{","}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.checked&&"\n background-color: ".concat(e.theme.legacy.colorPrimary,";\n box-shadow: none;\n color: ").concat(e.theme.legacy.colorWhite,";\n ")}),(function(e){return e.checked?"\n opacity: 1;\n transform: scale(1);\n ":"\n opacity: 0;\n "})),Gl.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var ZE=Gl.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);Gl.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),Gl.div.withConfig({displayName:"ListContent",componentId:"sc-ri03d3-4"})(["padding:8px 0;margin:0;display:flex;flex-direction:row;align-items:center;position:relative;justify-content:flex-start;"]),Gl.div.withConfig({displayName:"ListInfo",componentId:"sc-ri03d3-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack80}));var JE=Gl.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);Gl(JE).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),Gl.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),Gl.div.withConfig({displayName:"ListItem",componentId:"sc-ri03d3-9"})(["padding:0 16px;"," ",""],(function(e){return e.pointer&&"\n cursor: pointer;\n "}),(function(e){return e.isFocused&&"\n background-color: ".concat(e.theme.legacy.colorRichBlack03,";\n ")})),Gl.div.withConfig({displayName:"ListIcon",componentId:"sc-ri03d3-10"})(["width:48px;height:48px;margin:0 8px 0 0;border-radius:5px;position:relative;box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:",";fill:",";color:",";box-shadow:none;> svg{width:24px;height:24px;}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50})),Gl.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var QE,eC,tC=Gl.div.withConfig({displayName:"Icon",componentId:"sc-ri03d3-12"})(["background-color:",";width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;flex-shrink:0;img{width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;background-color:",";}"],(function(e){return!e.withImage&&(e.color||e.theme.legacy.colorRichBlack10)}),(function(e){return e.color||e.theme.legacy.colorRichBlack10})),nC=Gl.span.withConfig({displayName:"ComponentIcon",componentId:"sc-ri03d3-13"})(["display:flex;width:32px;height:32px;align-items:center;fill:",";margin-right:8px;justify-content:center;flex-shrink:0;border-radius:5px;","{margin:0;}> img{width:24px;height:24px;border-radius:5px;}"],(function(e){return e.theme.legacy.colorRichBlack30}),tC);Gl.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),Gl.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),Gl(ZE).withConfig({displayName:"EntityListSection",componentId:"sc-ri03d3-16"})(["margin-right:calc("," * -1);padding-right:",";flex:1;overflow-y:auto;overflow-x:hidden;margin-top:4px;min-height:186px;max-height:256px;margin-bottom:12px;"],If.spacing6,If.spacing6),Gl.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],If.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(QE||(QE={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(eC||(eC={})),Gl.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var rC=Gl.div.withConfig({displayName:"DropdownContainer",componentId:"sc-td9xdv-1"})(["top:100%;left:0;border-radius:",";background-color:",";box-shadow:0 1px 6px 0 ",";border:1px solid ",";min-width:170px;overflow:auto;background-clip:padding-box;"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}));Gl.div.withConfig({displayName:"DropdownContent",componentId:"sc-td9xdv-2"})(["position:absolute;min-width:",";"," overflow:auto;background-color:",";box-shadow:0 1px 8px 0 ",";border-radius:",";background-clip:padding-box;z-index:100;",""],(function(e){return e.small?"148px":"200px"}),(function(e){return e.fullWidth&&"width: 100%;"}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:eC.LEFT){case eC.RIGHT:return Nl(["top:110%;right:0;"]);case eC.CENTER:return Nl(["top:110%;left:50%;transform:translateX(-50%);"]);case eC.TOP:return Nl(["top:auto;bottom:110%;"]);case eC.LEFT:default:return Nl(["top:110%;left:0;"])}}(e.position)})),Gl.div.withConfig({displayName:"Entry",componentId:"sc-td9xdv-3"})(["margin:0;display:flex;flex-direction:row;align-items:center;position:relative;text-decoration:none;white-space:nowrap;","{width:24px;}"],nC);var oC=Gl.span.withConfig({displayName:"IconContainer",componentId:"sc-td9xdv-4"})(["display:flex;margin:0 -8px 0 auto;fill:",";svg{margin-left:auto;}"],(function(e){return e.theme.legacy.colorRichBlack80}));Gl.li.withConfig({displayName:"DropdownListItem",componentId:"sc-td9xdv-5"})([""," margin:0;height:36px;display:flex;flex-direction:row;align-items:center;position:relative;color:",";font-size:14px;"," &:hover{background-color:",";cursor:pointer;color:",";}list-style:none;","{fill:",";color:",";}","{margin:0 -8px 0 auto;svg{color:rgba(0,34,51,0.8);}}"],(function(e){return e.woPaddingLeft?"padding: 0 16px 0 0;":"padding: 0 16px;"}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.enabled&&"color: ".concat(e.theme.legacy.colorRichBlack80,";")}),(function(e){return e.theme.legacy.colorRichBlack03}),(function(e){return e.theme.legacy.colorRichBlack80}),nC,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),oC);var iC=Nl(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),aC=Nl(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));Gl.ul.withConfig({displayName:"DropdownList",componentId:"sc-td9xdv-6"})(["list-style:none;padding:8px 0;margin:0;hr{margin:8px 0;}",""],(function(e){return e.scrollable&&"\n max-height: 300px;\n overflow: scroll;\n "})),Gl(rC).withConfig({displayName:"CardDropdownContainer",componentId:"sc-td9xdv-7"})(["top:110%;min-width:200px;background-clip:padding-box;align-self:flex-start;min-height:8px;z-index:1;"]),Gl.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],iC,aC,(function(e){return e.theme.legacy.colorRichBlack50}));var cC=Gl.input.withConfig({displayName:"StyledInput",componentId:"sc-1jv4ai7-0"})(["flex-grow:2;box-sizing:border-box;height:40px;font-size:",";line-height:",";color:",";background:",";padding-left:16px;padding-right:40px;input&{\bwidth:156px;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled}));Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1jv4ai7-1"})(["position:relative;margin-top:","px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.isLabeled?8:0}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Gl.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var lC=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);Gl(lC).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Gl(lC).withConfig({displayName:"IconRightContainer",componentId:"sc-1jv4ai7-5"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}",":focus &{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}),cC,(function(e){return e.theme.legacy.colorIconActive})),Gl.label.withConfig({displayName:"Label",componentId:"sc-1jv4ai7-6"})(["font-weight:normal;font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontSizeH6})),Gl.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1jv4ai7-7"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Gl.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Gl.div.withConfig({displayName:"ListContainer",componentId:"sc-1jv4ai7-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Gl.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&Nl(["background-color:",";"],e.theme.legacy.colorRichBlack03)})),Gl.input.withConfig({displayName:"Input",componentId:"sc-1rwvhxx-0"})(["flex-grow:2;box-sizing:border-box;height:32px;font-size:",";line-height:",";color:",";background:",";padding-left:8px;padding-right:8px;input&{width:20%;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled})),Gl.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1rwvhxx-1"})(["position:relative;padding:2px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Gl.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),Gl.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),Gl.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),Gl.div.withConfig({displayName:"AvailableChipContainer",componentId:"sc-1rwvhxx-5"})(["display:flex;align-items:flex-start;width:100%;height:",";scroll-behavior:smooth;overflow-x:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],"44px"),Gl.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var sC=Gl.div.withConfig({displayName:"Arrow",componentId:"sc-1rwvhxx-7"})(["z-index:2;position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:24px;height:32px;background-color:#fff;border-radius:5px;cursor:pointer;> svg{height:24px;width:24px;fill:",";}&:hover{background-color:#f2f4f5;> svg{fill:",";}}&:active{background-color:#e6e9eb;}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Gl(sC).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),Gl(sC).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var uC=Gl.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],"44px");Gl(uC).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),Gl(uC).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var dC=Gl.div.withConfig({displayName:"ArrowBackground",componentId:"sc-1rwvhxx-13"})(["z-index:1;position:absolute;top:0;background-color:#fff;border-radius:5px 0 0 5px;height:",";width:26px;"],"44px");Gl(dC).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),Gl(dC).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var pC=["isOpen"];function fC(e){var n=e.presetURL,r=e.alwaysVisible,o=new RegExp("[-?]io"),i="".concat(n).concat(o.test(n)?"&download=true":"?download=true");return t.createElement(Lg,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=TE(e,pC);return t.createElement(hC,{isVisible:r||n},t.createElement(Xf,IE(IE({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(Du,null),"aria-label":"More options"})))}},t.createElement(Qw.CopyToClipboard,{text:n,onCopy:function(){mv({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Lg.Item,{icon:t.createElement(Ks,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Lg.Divider,null),t.createElement(Lg.Item,{icon:t.createElement(As,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Lg.Divider,null),t.createElement(Lg.Item,{icon:t.createElement(au,null),onClick:function(){return!1}},t.createElement(mC,{href:i,download:"presetimage"},"Download")))}var mC=Gl.a.withConfig({displayName:"DownloadLink",componentId:"sc-1xq1wim-0"})(["display:block;"]),hC=Gl.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-1xq1wim-1"})(["opacity:",";",":hover &,&:focus-within{opacity:1;}"],(function(e){return e.isVisible?"1":"0"}),".dat-menu-pointer-events-wrapper"),gC=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},vC=function(e){var n=e.name,r=e.onSelect,o=e.subtitle,i=e.isMenuHidden,a=void 0!==i&&i,c=e.isSelected,l=e.baseURL,s="Base"===n?"":"".concat(n,"/"),u=gC(l),d="/transform/".concat(s).concat(u,"/"),p=EC(d,l);return t.createElement(yC,{className:"dat-menu-pointer-events-wrapper",onClick:r,isSelected:c},t.createElement(wg,{variant:"content",imageUrl:p}),t.createElement(bC,null,t.createElement(wC,null,n),t.createElement(xC,null,o)),!a&&t.createElement(fC,{alwaysVisible:!1,presetURL:d}))},yC=Gl.div.withConfig({displayName:"ItemContainer",componentId:"sc-1q57zbs-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],If.spacing3,If.spacing4,If.spacing3,(function(e){return e.isSelected&&If.gray25}),If.gray25),bC=Gl.div.withConfig({displayName:"ItemDetails",componentId:"sc-1q57zbs-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),wC=Gl.p.withConfig({displayName:"Title",componentId:"sc-1q57zbs-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],If.fontSize100,If.lineHeightText,If.gray800,If.spacing4),xC=Gl.p.withConfig({displayName:"Subtitle",componentId:"sc-1q57zbs-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],If.gray600,If.fontSize100,If.lineHeightText,If.spacing4),EC=function(e,t){var n=t.split("/transform"),r=n.length>1?n[0]:"";return"".concat(r).concat(e,"?io=transform:fit,width:80")},CC=t.memo(vC),kC=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL;return t.createElement(_C,null,t.createElement(SC,null,"Base transformation"),t.createElement(CC,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),r.length>0&&t.createElement(SC,null,r.length," Presets"),r.map((function(e){var r=e.name===o;return t.createElement(CC,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:r})})))},SC=Gl.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],If.gray800,If.spacing5,If.spacing5,If.spacing4),_C=Gl.div.withConfig({displayName:"Container",componentId:"sc-yqslcx-1"})(["padding:0px ",";"],If.spacing4),IC=t.memo(kC);function BC(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}var TC=function(e){switch(e.type){case"fill":case"crop":return t.createElement(mu,null);case"fit":return t.createElement(Ns,null);case"extend":return t.createElement(js,null);case"scale":return t.createElement(ou,null);case"rotate":return t.createElement(wu,null);case"flip":return t.createElement(gu,null);case"mirror":return t.createElement(pu,null);case"border":return t.createElement(eu,null);case"background":return t.createElement(tu,null);case"trim":return t.createElement(Zs,null);case"opacity":return t.createElement(Fs,null);case"sepia":return t.createElement(du,null);case"contrast":return t.createElement(Ps,null);case"brightness":return t.createElement(Qs,null);case"grayscale":return t.createElement(xu,null);case"blur":return t.createElement(lu,null);case"sharpness":return t.createElement(hu,null);case"saturation":return t.createElement(su,null);case"text":return t.createElement(iu,null);case"advanced":return t.createElement(Us,null);case"multiple":return t.createElement(Vs,null);case"removebg":return t.createElement(DC,null);default:return null}};function NC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"}))}function DC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2c0-1.1-.9-2-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z"}))}function zC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0 0 18 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82ZM6 7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm12 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"}))}function PC(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(OC,null,t.createElement(ph.Label,null,r),n,t.createElement(ph.HelperText,null,o))}var OC=Gl(ph.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),AC={transformation:null,group:null,label:"Select a transform"},RC=[{label:"Background",transformation:"background",group:"transform"},{label:"Border",transformation:"border",group:"transform"},{label:"Crop",transformation:"crop",group:"transform",description:"Extracts a region of the specified dimensions from the original image without first resizing it."},{label:"Remove Background",transformation:"removebg",group:"transform",description:"We will use the available clipping path information to mask the image, and remove the background."},{label:"Extend",transformation:"extend",group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and extends the canvas if the resized image does not fill the whole area."},{label:"Fill",transformation:"fill",group:"transform",description:"Resizes the image to fill the specified dimensions without distortion. The image may be cropped as a result."},{label:"Fit",transformation:"fit",group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio."},{label:"Flip",transformation:"flip",group:"transform"},{label:"Mirror",transformation:"mirror",group:"transform"},{label:"Rotate",transformation:"rotate",group:"transform"},{label:"Scale",transformation:"scale",group:"transform",description:"Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio."},{label:"Trim",transformation:"trim",group:"transform",description:"Removes any transparent or white colored areas at the edges of an image."},{label:"Text overlay",transformation:"text",group:"overlay"},{label:"Opacity",transformation:"opacity",group:"filter"},{label:"Sepia",transformation:"sepia",group:"filter"},{label:"Contrast",transformation:"contrast",group:"filter"},{label:"Brightness",transformation:"brightness",group:"filter"},{label:"Grayscale",transformation:"grayscale",group:"filter"},{label:"Blur",transformation:"blur",group:"filter"},{label:"Sharpness",transformation:"sharpness",group:"filter"},{label:"Saturation",transformation:"saturation",group:"filter"}];function MC(e){var n,r=RC.find((function(t){return t.transformation===e.transformation}))||AC;return t.createElement(PC,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement(yv,{onChange:function(t){var n=RC.find((function(e){return e.transformation===t})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(TC,{type:r.transformation})},t.createElement(yv.SectionTitle,null,"Transforms"),RC.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement(yv.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(TC,{type:e.transformation})},e.label)})),t.createElement(yv.Divider,null),t.createElement(yv.SectionTitle,null,"Filters"),RC.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement(yv.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(TC,{type:e.transformation})},e.label)})),t.createElement(yv.Divider,null),t.createElement(yv.SectionTitle,null,"Overlay"),RC.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement(yv.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(TC,{type:e.transformation})},e.label)}))))}var FC=function(e){return"number"==typeof e&&!isNaN(e)},LC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!FC(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},jC=function(e){return e&&e>0?e.toString():""};function HC(e){var n=e.id,o=e.height,i=void 0===o?0:o,a=e.width,c=void 0===a?0:a,l=e.showLock,s=void 0!==l&&l,u=e.onDispatch,d=NE(r(!1),2),p=d[0],f=d[1],m=NE(r(1),2),h=m[0],g=m[1],v=t.createElement(VC,null,p?t.createElement(Ms,null):t.createElement(Rs,null)),y=jC(c),b=jC(i);return t.createElement(PC,{label:"Dimensions"},t.createElement(UC,null,t.createElement($C,null,t.createElement(Nh,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(WC,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=LC(t,9e3);u({type:"width",payload:{value:r,id:n}}),p?u({type:"height",payload:{value:r/h,id:n}}):g(i&&r?r/i:1)},iconRight:t.createElement("span",null,"px")})),s?t.createElement(Xf,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(YC,null),t.createElement($C,null,t.createElement(Nh,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(WC,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=LC(t,9e3);u({type:"height",payload:{value:r,id:n}}),p?u({type:"width",payload:{value:r*h,id:n}}):g(c&&r?c/r:1)},iconRight:t.createElement("span",null,"px")}))))}var UC=Gl.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),VC=Gl.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],If.gray400a),$C=Gl.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),WC=Gl.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],If.spacing6),YC=Gl.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],If.spacing4);function qC(e){var n=e.onChange,r=e.value,o=void 0===r?0:r,i=e.label,a=e.min,c=e.max;return t.createElement(PC,{label:i},t.createElement(zv,{value:o,onChange:n,min:a,max:c,inputPosition:"right"}))}function GC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M3 3H5V19H21V21H3V3Z",fill:"#334E5C"}),t.createElement("path",{d:"M7 5C13.6274 5 19 10.3726 19 17H17C17 11.4772 12.5228 7 7 7V5Z",fill:"#334E5C"}))}function XC(e){var n=e.io,r=e.onDispatch;return t.createElement(PC,{label:"Angle"},t.createElement(Nh,{type:"number",placeholder:"0",onChange:function(e){return r({type:"angle",payload:{value:parseInt(e,10),id:n.id}})},value:n.angle?n.angle.toString():"",icon:t.createElement(GC,null),iconRight:t.createElement("span",null,"°")}))}function KC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M8 19L8 21H16V19H13L13 5L16 5V3L8 3L8 5H11L11 19H8Z"}))}function ZC(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M5 8H3V16H5V13H19V16H21V8H19V11H5V8Z"}))}var JC=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],QC=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}];function ek(e){var n=e.label,o=e.gravity,i=e.onChange,a=NE(r(QC[1]),2),c=a[0],l=a[1],s=NE(r(JC[1]),2),u=s[0],d=s[1],p=function(e){switch(i(e),e){case"topleft":d(JC.find((function(e){return"top"===e.value}))),l(QC.find((function(e){return"left"===e.value})));break;case"top":d(JC.find((function(e){return"top"===e.value}))),l(QC.find((function(e){return"center"===e.value})));break;case"topright":d(JC.find((function(e){return"top"===e.value}))),l(QC.find((function(e){return"right"===e.value})));break;case"left":d(JC.find((function(e){return"center"===e.value}))),l(QC.find((function(e){return"left"===e.value})));break;case"center":d(JC.find((function(e){return"center"===e.value}))),l(QC.find((function(e){return"center"===e.value})));break;case"right":d(JC.find((function(e){return"center"===e.value}))),l(QC.find((function(e){return"right"===e.value})));break;case"bottomleft":d(JC.find((function(e){return"bottom"===e.value}))),l(QC.find((function(e){return"left"===e.value})));break;case"bottom":d(JC.find((function(e){return"bottom"===e.value}))),l(QC.find((function(e){return"center"===e.value})));break;case"bottomright":d(JC.find((function(e){return"bottom"===e.value}))),l(QC.find((function(e){return"right"===e.value})))}};return t.createElement(PC,{label:n},t.createElement(am,null,t.createElement(tk,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(nk,{isSelected:"topleft"===o,onClick:function(){return p("topleft")}}),t.createElement(nk,{isSelected:"top"===o,onClick:function(){return p("top")}}),t.createElement(nk,{isSelected:"topright"===o,onClick:function(){return p("topright")}}),t.createElement(nk,{isSelected:"left"===o,onClick:function(){return p("left")}}),t.createElement(nk,{isSelected:"center"===o,onClick:function(){return p("center")}}),t.createElement(nk,{isSelected:"right"===o,onClick:function(){return p("right")}}),t.createElement(nk,{isSelected:"bottomleft"===o,onClick:function(){return p("bottomleft")}}),t.createElement(nk,{isSelected:"bottom"===o,onClick:function(){return p("bottom")}}),t.createElement(nk,{isSelected:"bottomright"===o,onClick:function(){return p("bottomright")}})),t.createElement(am,{direction:"column",justifyContent:"space-around"},t.createElement(yv,{onChange:function(e){switch(l(QC.find((function(t){return t.value===e}))),e){case"left":"top"===u.value&&i("topleft"),"center"===u.value&&i("left"),"bottom"===u.value&&i("bottomleft");break;case"center":"top"===u.value&&i("top"),"center"===u.value&&i("center"),"bottom"===u.value&&i("bottom");break;case"right":"top"===u.value&&i("topright"),"center"===u.value&&i("right"),"bottom"===u.value&&i("bottomright")}},value:c.value,label:c.label,icon:t.createElement(ZC,null)},QC.map((function(e){return t.createElement(yv.Item,{value:e.value,key:e.value},e.label)}))),t.createElement(yv,{onChange:function(e){switch(d(JC.find((function(t){return t.value===e}))),e){case"top":"left"===c.value&&i("topleft"),"center"===c.value&&i("top"),"right"===c.value&&i("topright");break;case"center":"left"===c.value&&i("left"),"center"===c.value&&i("center"),"right"===c.value&&i("right");break;case"bottom":"left"===c.value&&i("bottomleft"),"center"===c.value&&i("bottom"),"right"===c.value&&i("bottomright")}},value:u.value,label:u.label,icon:t.createElement(KC,null)},JC.map((function(e){return t.createElement(yv.Item,{value:e.value,key:e.value},e.label)}))))))}var tk=Gl(am).withConfig({displayName:"Container",componentId:"sc-ci11hg-0"})(["width:150px;height:92px;padding:5px;margin-right:",";background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";"],If.spacing5,If.gray25,If.gray100a,If.radiusMedium),nk=Gl.div.withConfig({displayName:"Spot",componentId:"sc-ci11hg-1"})(["width:24px;height:24px;background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";&:hover{background-color:",";cursor:pointer;}",""],If.gray10,If.gray100a,If.radiusSmall,If.gray25a,(function(e){return e.isSelected&&Nl(["border:2px solid ",";background:",";"],If.blue500,If.blue100)}));function rk(e){var n=e.color,o=e.label,i=e.onChangeValidation,a=e.onChange,c=NE(r(!0),2),l=c[0],s=c[1],u=function(e){s(e),i(e)};return t.createElement(PC,{label:o},t.createElement(am,null,t.createElement(ok,null,t.createElement(Nh,{value:n,icon:t.createElement("span",null,"#"),onChange:function(e){var t=function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)return"";var r=parseInt(n[1],16).toString(),o=parseInt(n[2],16).toString(),i=parseInt(n[3],16).toString();return"(".concat(r,", ").concat(o,", ").concat(i,")")}(e);t?(a(e),u(!0)):(a(null),u(!1))}}),!l&&t.createElement(ph.HelperText,{isInvalid:!l},"Please type a valid hex value")),t.createElement(ik,null,t.createElement(Nh,{type:"number",placeholder:"100",onChange:null,value:null,iconRight:t.createElement("span",null,"%"),isDisabled:!0}))))}var ok=Gl.div.withConfig({displayName:"FlexInputColor",componentId:"sc-1b7ygj6-0"})(["min-width:0;margin-right:",";"],If.spacing4),ik=Gl.div.withConfig({displayName:"FlexInput",componentId:"sc-1b7ygj6-1"})(["min-width:0;"]),ak=["Arial"],ck=["Regular"];function lk(e){var n,r,o=e.io,i=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(PC,{label:"Text"},t.createElement(Mv,{value:o.content,onChange:function(e){return i({type:"content",payload:{value:e,id:o.id}})}})),t.createElement(PC,{label:"Font"},t.createElement(yv,{value:o.font,label:o.font,onChange:function(e){return i({type:"font",payload:{value:e,id:o.id}})}},ak.map((function(e){return t.createElement(yv.Item,{value:e,key:e},e)})))),t.createElement(PC,{label:""},t.createElement(am,null,t.createElement(sk,null,t.createElement(yv,{value:o.fontType,label:o.fontType,onChange:function(e){return i({type:"fontType",payload:{value:e,id:o.id}})},isDisabled:!0},ck.map((function(e){return t.createElement(yv.Item,{value:e,key:e},e)})))),t.createElement(uk,null,t.createElement(Nh,{type:"number",value:null===(n=o.size)||void 0===n?void 0:n.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return i({type:"size",payload:{value:parseInt(e,10),id:o.id}})}})))),t.createElement(rk,{label:"Text color",onChange:function(e){return i({type:"color",payload:{value:e,id:o.id}})},onChangeValidation:function(e){return i({type:"isValid",payload:e})},color:o.color}),t.createElement(ek,{label:"Position",gravity:o.gravity,onChange:function(e){return i({type:"gravity",payload:{value:e,id:o.id}})}}),t.createElement(PC,{label:"Padding"},t.createElement(Nh,{type:"number",value:null===(r=o.padding)||void 0===r?void 0:r.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return i({type:"padding",payload:{value:parseInt(e,10),id:o.id}})}})),t.createElement(XC,{io:o,onDispatch:i}))}var sk=Gl.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],If.spacing4),uk=Gl.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function dk(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(HC,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(rk,{label:"Background",onChange:function(e){return r({type:"background",payload:{value:e,id:n.id}})},onChangeValidation:function(e){return r({type:"isValid",payload:e})},color:n.background}))}var pk=[{label:"Rectangle",path:"square",icon:t.createElement(fu,null)},{label:"Ellipse",path:"circle",icon:t.createElement(vu,null)}],fk=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(zC,null)}];function mk(e){var n,r=e.onChange,o=e.shape,i=null!==(n=pk.find((function(e){return e.path===o})))&&void 0!==n?n:fk.find((function(e){return e.path===o}));return t.createElement(PC,{label:"Path"},t.createElement(yv,IE({onChange:r,value:o},i),pk.map((function(e){return t.createElement(yv.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement(yv.Divider,null),fk.map((function(e){return t.createElement(yv.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}var hk=[{label:"Focus point",focus:"point",icon:t.createElement(uu,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(tx,null)}];function gk(e){var n=e.gravity,o=e.onChangeGravity,i=NE(r(!1),2),c=i[0],l=i[1],s=NE(r(null),2),u=s[0],d=s[1];a((function(){u||(n?f():p())}),[n,u]);var p=function(){var e=hk.find((function(e){return"point"===e.focus}));d(e)},f=function(){var e=hk.find((function(e){return"gravity"===e.focus}));d(e)};return t.createElement(t.Fragment,null,t.createElement(PC,{label:"Focus",helpText:"gravity"===(null==u?void 0:u.focus)?"Select the direction from where the transformation is being applied.":"Uses the predefined focus point of the asset."},t.createElement(yv,IE(IE({onChange:function(e){var t="gravity"===e,n=hk.find((function(t){return t.focus===e}));d(n),l(t),o(t?"center":null)}},u),{},{value:null==u?void 0:u.focus}),hk.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement(yv.Divider,null):null,t.createElement(yv.Item,{value:e.focus,icon:e.icon},e.label))})))),c&&t.createElement(ek,{label:"Gravity",gravity:n,onChange:o}))}function vk(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(mk,{shape:n.path,onChange:function(e){return r({type:"path",payload:{value:e,id:n.id}})}}),"clippingpath"!==n.path&&t.createElement(t.Fragment,null,t.createElement(HC,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(gk,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity})),"circle"===n.path&&t.createElement(qC,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return r({type:"blur",payload:{value:e,id:n.id}})}}))}function yk(e){return t.createElement(jg,IE({},e),t.createElement("path",{d:"M4 5H20V7H4V5Z",fill:"#334E5C"}),t.createElement("path",{d:"M4 9H20V12H4V9Z",fill:"#334E5C"}),t.createElement("path",{d:"M20 14H4V19H20V14Z",fill:"#334E5C"}))}function bk(e){var n=e.io,r=e.onDispatch,o=jC(n.width);return t.createElement(t.Fragment,null,t.createElement(rk,{label:"Color",onChange:function(e){return r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){return r({type:"isValid",payload:e})},color:n.color}),t.createElement(PC,{label:"Border"},t.createElement(am,null,t.createElement(wk,null,t.createElement(Nh,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=LC(t,500);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(yk,null),iconRight:t.createElement("span",null,"px")})),t.createElement(xk,null,t.createElement(Nh,{placeholder:"Outside",onChange:null,value:null,iconRight:t.createElement(Cu,null),isDisabled:!0})))))}var wk=Gl.div.withConfig({displayName:"FlexInputColor",componentId:"sc-qgnlb2-0"})(["min-width:0;margin-right:",";"],If.spacing4),xk=Gl.div.withConfig({displayName:"FlexInput",componentId:"sc-qgnlb2-1"})(["min-width:0;"]);function Ek(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(HC,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(gk,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity}))}function Ck(e){var n=e.onDispatch,r=e.io;return t.createElement(qC,{label:BC(r.filter),min:-100,max:100,value:r.amount,onChange:function(e){return n({type:"amount",payload:{value:e,id:r.id}})}})}function kk(e){var n=e.onDispatch,r=e.io;return t.createElement(qC,{label:"Blur",min:0,max:100,value:r.radius,onChange:function(e){return n({type:"radius",payload:{value:e,id:r.id}})}})}function Sk(e){var n=e.io,r=e.onDispatch;return t.createElement(rk,{label:"Color",onChange:function(e){r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){r({type:"isValid",payload:e})},color:n.color})}function _k(e){var n=e.io,r=e.onDispatch,o=jC(n.padding);return t.createElement(PC,{label:"Padding"},t.createElement(am,null,t.createElement(Ik,null,t.createElement(Nh,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=LC(t,3e3);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(yk,null),iconRight:t.createElement("span",null,"px")}))))}var Ik=Gl.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],If.spacing4);function Bk(e){var n=e.io,r=e.onDispatch,o=["contrast","brightness","sharpness","saturation"].includes(n.filter),i=n.transform||n.overlay||n.filter;return t.createElement(t.Fragment,null,t.createElement(MC,{transformation:i,onChange:function(e){return r({type:"transformation",payload:{group:e.group,value:e.transformation,id:n.id}})}}),("fit"===n.transform||"scale"===n.transform)&&t.createElement(HC,{width:n.width,height:n.height,onDispatch:r,id:n.id}),"fill"===n.transform&&t.createElement(Ek,{io:n,onDispatch:r}),"background"===n.transform&&t.createElement(Sk,{io:n,onDispatch:r}),"rotate"===n.transform&&t.createElement(XC,{io:n,onDispatch:r}),"border"===n.transform&&t.createElement(bk,{io:n,onDispatch:r}),"extend"===n.transform&&t.createElement(dk,{io:n,onDispatch:r}),"crop"===n.transform&&t.createElement(vk,{io:n,onDispatch:r}),"trim"===n.transform&&t.createElement(_k,{io:n,onDispatch:r}),"text"===n.overlay&&t.createElement(lk,{io:n,onDispatch:r}),"blur"===n.filter&&t.createElement(kk,{io:n,onDispatch:r}),"opacity"===n.filter&&t.createElement(Ck,{io:n,onDispatch:r}),o&&t.createElement(qC,{label:BC(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}}))}var Tk=[{label:"Auto (recomended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],Nk=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function Dk(e){var n,r,o=e.options,i=e.onDispatch,a=(null===(n=Tk.find((function(e){return e.value===o.format})))||void 0===n?void 0:n.label)||"Select Format",c=(null===(r=Nk.find((function(e){return e.value===String(o.quality)})))||void 0===r?void 0:r.label)||"Select Quality";return t.createElement(t.Fragment,null,t.createElement(PC,{label:"Format",helpText:"Set the output format"},t.createElement(yv,{onChange:function(e){return i({type:"format",payload:e})},label:a,value:o.format},Tk.map((function(e){return t.createElement(yv.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(PC,{label:"Quality"},t.createElement(yv,{onChange:function(e){return i({type:"quality",payload:Number(e)})},label:c,value:String(o.quality)},Nk.map((function(e){return t.createElement(yv.Item,{value:e.value,key:e.label},e.label)})))))}var zk=function(e){var n=e.preset,o=e.onDispatch,i=NE(r([]),2),a=i[0],c=i[1],l=NE(r(!1),2),s=l[0],u=l[1];return t.createElement(Og,null,n.content.io.map((function(e){var n=a.includes(e.id),r=e.transform||e.overlay||e.filter,i=BC(r)||"New transformation",l=Pk(e);return t.createElement(t.Fragment,{key:e.id},t.createElement(Og.Item,{subtext:l,thumbnail:t.createElement(wg,{variant:"clean",icon:t.createElement(TC,{type:r}),shape:"square"}),rightElements:t.createElement(Ok,{isExpanded:n,onDeleteClick:function(t){return function(e,t){e.stopPropagation(),o({type:"deleteTransformation",payload:{id:t}})}(t,e.id)}}),onClick:function(){return function(e){a.includes(e)?c((function(t){return t.filter((function(t){return t!==e}))})):c((function(t){return[].concat(DE(t),[e])}))}(e.id)}},i),n&&t.createElement(Bk,{io:e,onDispatch:o,key:"".concat(e.id,"-transformation")}),t.createElement(Og.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(Og.Item,{key:"add-button",onClick:function(){var e=ex();o({type:"addTransformation",payload:{id:e}}),c((function(t){return[].concat(DE(t),[e])}))},thumbnail:t.createElement(wg,{icon:t.createElement(Gs,null),shape:"square"})},"Add transformation"),t.createElement(Og.Divider,{key:"add-button-divider"}),t.createElement(Og.Item,{key:"advanced-button",subtext:"Format: ".concat(n.content.format.toUpperCase()||"Auto"," • Quality: ").concat(n.content.quality),thumbnail:t.createElement(wg,{variant:"clean",icon:t.createElement(TC,{type:"advanced"}),shape:"square"}),rightElements:s?t.createElement(Tu,null):t.createElement(Nu,null),onClick:function(){u(!s)}},"Output options"),s&&t.createElement(Dk,{options:n.content,onDispatch:o,key:"advanced-options"}))},Pk=function(e){var t="Focus Point";e.gravity&&(t=BC(e.gravity));var n=e.width&&e.height?"".concat(e.width," × ").concat(e.height," px "):"",r=t?"Focus: ".concat(t):"",o=e.color?"Color: #".concat(e.color):"",i=e.background?"Background: #".concat(e.background):"",a=e.path?"Shape: ".concat(e.path):"",c=e.blur?"Blur: ".concat(e.blur):"",l=e.amount?"Amount: ".concat(e.amount):"";switch(e.transform||e.filter){case"fill":return"".concat(n," ").concat(r&&n&&"• "+r);case"background":return o;case"border":return"".concat(o," • Width: ").concat(e.width,"px");case"crop":return"".concat(n," • ").concat(a," ").concat(i&&"• "+i," ").concat(c&&"• "+c);case"extend":return"".concat(n," ").concat(i&&"• "+i);case"fit":case"scale":return n;case"flip":return"Flip vertically";case"mirror":return"Flip horizontally";case"rotate":return"Angle: ".concat(e.angle||0,"°");case"opacity":case"contrast":case"brightness":case"blur":case"sharpness":case"saturation":return l;default:return""}},Ok=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(am,{alignItems:"center"},t.createElement(bm,{content:"Remove transformation"},t.createElement(Xf,{variant:"clean",icon:t.createElement(Ds,{fill:If.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(Tu,null):t.createElement(Nu,null))};function Ak(e){var n,r,o,i=e.preset,a=e.onDispatch,c=null!==(n=null===(r=i.content)||void 0===r||null===(o=r.io)||void 0===o?void 0:o.length)&&void 0!==n?n:0;return t.createElement(t.Fragment,null,t.createElement(Mk,null,t.createElement(Lk,null,"Transformations"),t.createElement(jk,null,1===c?"".concat(c," transformation applied"):c>1?"".concat(c," transformations applied"):"No transformations")),t.createElement(Fk,null,t.createElement(zk,{preset:i,onDispatch:a})))}var Rk,Mk=Gl.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],If.spacing6,If.white,If.spacing4),Fk=Gl.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),Lk=Gl.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],If.gray800),jk=Gl.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],If.gray600);!function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(Rk||(Rk={}));var Hk=function(){return t.createElement(Vk,null,t.createElement(Wk,null),t.createElement(Yk,null,t.createElement(qk,{large:!0}),t.createElement(qk,null)))},Uk=function(){return t.createElement(Gk,null)},Vk=Gl.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),$k=ql(["0%{background-color:","}100%{background-color:","}"],If.gray50a,If.gray100a),Wk=Gl.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],$k),Yk=Gl.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],If.spacing4),qk=Gl.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],If.spacing3,(function(e){return e.large?"110px":"60px"}),If.radiusSmall,$k),Gk=Gl.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],$k),Xk=function(e){var n=e.onPresetSelected,r=e.activeTab,o=e.presets,i=e.preset,c=e.dispatch,l=e.selectedPreset,s=e.isLoading,u=e.baseURL,d=e.canViewPresets,p=e.canViewTransformations;return a((function(){var e,t;r!==Rk.transformations||null!=i&&null!==(e=i.content)&&void 0!==e&&null!==(t=e.io)&&void 0!==t&&t.length||c({type:"init"})}),[r,c,i]),t.createElement(Kk,{direction:"column"},r===Rk.presets?d?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement(Hk,{key:"preset-skeleton-".concat(e)})}))):t.createElement(IC,{baseURL:u,presets:o,onPresetSelected:n,selectedPreset:l}):null:p?t.createElement(Zk,null,t.createElement(Ak,{preset:i,onDispatch:c})):null)},Kk=Gl(am).withConfig({displayName:"SidebarContainer",componentId:"sc-n1gktg-0"})(["width:336px;overflow-y:auto;overflow-x:hidden;background:",";flex:none;box-shadow:-1px 0px 0px rgba(0,34,51,0.1);height:100%;"],If.white),Zk=Gl.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],If.spacing6);function Jk(e){var n=e.url,r=c(null);return l((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(Qk,null,t.createElement(eS,null,t.createElement(tS,null,t.createElement(zu,null)),t.createElement(nS,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(oS,null,n))),t.createElement(rS,null,t.createElement(bm,{content:"Copy URL"},t.createElement(Qw.CopyToClipboard,{text:n,onCopy:function(){mv({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(Xf,{variant:"clean",icon:t.createElement(Js,null),"aria-label":"Copy to clipboard"}))),t.createElement(fC,{alwaysVisible:!0,presetURL:n})))}var Qk=Gl.div.withConfig({displayName:"Container",componentId:"sc-ucc5ld-0"})(["height:50px;background-color:",";border-radius:",";display:flex;align-items:center;justify-content:space-between;box-shadow:",";min-width:0;min-height:0;"],If.white,If.radiusLarge,If.elevationStatic),eS=Gl.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),tS=Gl.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],If.spacing5,If.spacing4,If.gray600),nS=Gl.div.withConfig({displayName:"LinkContainer",componentId:"sc-ucc5ld-3"})(["color:",";font-size:",";cursor:pointer;overflow:scroll;white-space:nowrap;width:100%;height:100%;display:flex;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],If.gray800,If.fontSize100),rS=Gl.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],If.spacing2),oS=Gl.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]);function iS(e){var n=e.url,i=e.canViewTransformations,c=e.hideBottomBar,l=e.activeTab,s=e.onBack,u=e.onDone,d=e.onApply,p=e.onShowTransformations,f=e.hasActiveChanges,m=NE(r(!0),2),h=m[0],g=m[1],v=o((function(){return function(e){if(!e)return"";var t=new URL(e);return t.searchParams.set("".concat(Date.now()),""),t.toString()}(n)}),[n]);return a((function(){g(!0)}),[n]),t.createElement(dS,null,t.createElement(pS,{justifyContent:"space-between",alignItems:"center"},t.createElement(fS,null,t.createElement(Xf,{variant:"clean",icon:t.createElement(cu,null),"aria-label":"Go back",onClick:s})),l===Rk.presets&&i&&t.createElement(vS,{variant:"clean",onClick:p,icon:t.createElement(NC,null)},"Transform"),l===Rk.transformations&&("function"==typeof d&&f?t.createElement(mS,null,t.createElement(vS,{variant:"primary",onClick:d},"Apply transformations")):t.createElement(vS,{variant:"primary",onClick:u},"Done"))),t.createElement(gS,{hideBottomBar:c},n&&t.createElement(uS,{src:v,alt:"",isImageLoading:h,onLoad:function(){g(!1)}}),h&&t.createElement(Uk,null)),!c&&t.createElement(hS,null,t.createElement(Jk,{url:n})))}var aS,cS,lS,sS,uS=Gl.img.withConfig({displayName:"Image",componentId:"sc-dpw9jp-0"})(["display:",";max-width:100%;max-height:100%;background:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(If.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),dS=Gl.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-1"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),pS=Gl(am).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-2"})(["height:90px;width:100%;"]),fS=Gl.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-3"})(["margin-left:",";"],If.layoutSpacing1),mS=Gl.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-4"})(["display:flex;gap:",";"],If.spacing4),hS=Gl.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],If.spacing5),gS=Gl.div.withConfig({displayName:"ImageWrapper",componentId:"sc-dpw9jp-6"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:0;position:relative;",";"],(function(e){return e.hideBottomBar&&Nl(["margin-bottom:",";"],If.spacing8)})),vS=Gl(Xf).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-7"})(["float:right;margin-right:",";"],If.layoutSpacing1),yS=function(e){return e.data},bS=function(e){if(e.response){var t=e.response.data;if(null!=t&&t.error)throw t.error;throw t}if(e.request)throw new Error("Server is not responding, please try again");throw e.message},wS=null===(aS=document.querySelector('meta[name="x-csrf-token"]'))||void 0===aS?void 0:aS.getAttribute("content"),xS={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(cS=window)||void 0===cS?void 0:cS.csrf)||(null===(lS=window)||void 0===lS||null===(sS=lS.Bynder)||void 0===sS?void 0:sS.csrf_token)||wS},ES=SE.create({headers:xS}),CS=function(){return"/v7/dat/presets/",ES.get("/v7/dat/presets/",undefined).then(yS).catch(bS)},kS={id:"",transform:null,overlay:null,filter:null},SS={name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0};function _S(e,t){var n,r=function(){return e.content.io.map((function(e){return IE({},e)}))};switch(t.type){case"init":return SS;case"edit":return IE(IE({isValid:!0},t.payload),{},{content:IE(IE({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return IE(IE({},e),{},{id:ex()})}))})});case"addTransformation":return IE(IE({},e),{},{content:IE(IE({},e.content),{},{io:[].concat(DE(r()),[IE(IE({},kS),{},{id:t.payload.id,transform:"fill"})])})});case"deleteTransformation":return IE(IE({},e),{},{content:IE(IE({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return IE(IE({},e),{},(BE(n={},t.type,t.payload),BE(n,"content",IE(IE({},e.content),{},{io:r()})),n));case"format":case"quality":return IE(IE({},e),{},{content:IE(IE({},e.content),{},BE({io:r()},t.type,t.payload))});case"transformation":return IE(IE({},e),{},{content:IE(IE({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?IE({},e):IE(IE({},IS(t.payload.value)),{},BE({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return IE(IE({},e),{},{content:IE(IE({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?IE({},e):IE(IE({},e),{},BE({},t.type,t.payload.value))}))})});default:return e}}var IS=function(e){switch(e){case"fill":case"fit":case"extend":case"scale":return IE(IE({},kS),{},{height:1e3,width:1e3});case"crop":return IE(IE({},kS),{},{height:1e3,width:1e3,path:"square"});case"background":return IE(IE({},kS),{},{color:"FFF"});case"border":return IE(IE({},kS),{},{color:"FFF",width:1});case"rotate":return IE(IE({},kS),{},{angle:0});case"opacity":return IE(IE({},kS),{},{amount:100});case"blur":return IE(IE({},kS),{},{radius:0});case"text":return IE(IE({},kS),{},{content:"Add Text Here",font:"Arial",size:64,color:"FFF",gravity:"center",padding:20,angle:0});case"brightness":case"contrast":case"sharpness":case"saturation":return IE(IE({},kS),{},{amount:0})}},BS=Gl.div.withConfig({displayName:"FlexContainer",componentId:"sc-inplsu-0"})(["display:flex;min-height:0;height:100%;"]);Gl.div.withConfig({displayName:"NameIconContainer",componentId:"sc-i27a7s-0"})(["display:flex;min-width:0;"]),Gl.div.withConfig({displayName:"DateContainer",componentId:"sc-i27a7s-1"})(["width:385px;font-size:",";color:",";"],If.fontSize75,If.gray600),Gl.div.withConfig({displayName:"Name",componentId:"sc-i27a7s-2"})(["font-size:",";color:",";flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],If.fontSize100,If.gray800),Gl.div.withConfig({displayName:"DescriptionContainer",componentId:"sc-i27a7s-3"})(["display:flex;flex-direction:column;flex:1;min-width:0;padding:0 ",";"],If.spacing4),Gl.div.withConfig({displayName:"Description",componentId:"sc-i27a7s-4"})(["font-size:",";color:",";"],If.fontSize75,If.gray600),Gl.div.withConfig({displayName:"Actions",componentId:"sc-i27a7s-5"})(["display:flex;margin-left:",";justify-content:end;"],If.spacing4),Gl.tr.withConfig({displayName:"Container",componentId:"sc-i27a7s-6"})(["height:72px;&:not(:last-child){border-bottom:solid 1px ",";}"],If.gray50),Gl.th.withConfig({displayName:"Th",componentId:"sc-945e4m-0"})(["color:",";font-size:",";"],If.gray800,If.fontSize100),Gl.table.withConfig({displayName:"Table",componentId:"sc-945e4m-1"})(["width:100%;"]),Gl.header.withConfig({displayName:"Header",componentId:"sc-405vyk-0"})(["position:sticky;z-index:1;top:var(--pageHeaderTopPosition);display:flex;gap:",";justify-content:space-between;align-items:center;margin-bottom:",";padding:"," ",";background:",";"],If.spacing4,If.spacing7,If.spacing5,If.spacing6,If.white),Gl.h3.withConfig({displayName:"Title",componentId:"sc-405vyk-1"})([""," margin:0;"],im.uiTextL);function TS(e){var n,o=e.transformBaseUrl,i=e.transformation,c=e.setTransformation,l=e.closeDat,s=Fa(),u=r(),d=u[0],p=u[1],f=r(),m=f[0],h=f[1];a((function(){var e=s.querySelector(".cv-root");e&&p(e)}),[s]);var v=function(e,t){e&&i&&c({url:e,preset:t,asset:i.asset}),l()},y=function(e,t){w(t)&&i?h({url:e,preset:t,asset:i.asset}):v(e,t)},b=function(){return h(void 0)},w=function(e){return e.content.io.length>0};return d?g(t.createElement(zS,null,t.createElement(PS,{baseURL:o,canViewPresets:!1,canViewTransformations:!0,hideBottomBar:!0,onApply:v,onDone:y,onBack:y,initialTransformations:null===(n=null==i?void 0:i.preset)||void 0===n?void 0:n.content.io}),t.createElement(ov,{isOpen:!!m,title:"Transformations not yet applied",container:d,onClose:b,actionPrimary:t.createElement(Xf,{variant:"primary",onClick:function(){v(null==m?void 0:m.url,null==m?void 0:m.preset),b()}},"Apply transformations"),actionSecondary:t.createElement(Xf,{variant:"secondary",onClick:b},"Cancel"),actionTertiary:t.createElement(Xf,{variant:"secondary",onClick:function(){c(void 0),b(),l()}},"Discard changes")},"Transformations not yet applied. Do you want to apply transformations now, or discard changes?")),d):null}var NS,DS,zS=Gl.div(NS||(NS=_a(["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"],["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"])),If.white,If.radiusBase),PS=Gl((function(e){var n=e.baseURL,i=e.canViewPresets,l=e.canViewTransformations,s=e.hideBottomBar,u=void 0!==s&&s,d=e.initialTransformations,p=e.onDone,m=e.onApply,h=e.onBack,g=i?Rk.presets:Rk.transformations,v=NE(r(n),2),y=v[0],b=v[1],w=NE(r(g),2),x=w[0],E=w[1],C=NE(r(""),2),k=C[0],S=C[1],_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=IE(IE({},SS),{},{content:IE(IE({},SS.content),{},{io:t})}),o=NE(r([]),2),i=o[0],l=o[1],s=NE(r(!1),2),u=s[0],d=s[1],p=NE(f(_S,n),2),m=p[0],h=p[1],g=c(!0);a((function(){return e&&(d(!0),v()),function(){g.current=!1}}),[e]);var v=function(){CS().then((function(e){g.current&&(l(e.presets),d(!1))})).catch((function(e){g.current&&(d(!1),mv({title:e.toString(),variant:"error",isPersistent:!0}))}))};return{presets:i,setPresets:l,preset:m,dispatch:h,isLoading:u,defaultValues:n}}(i,d),I=_.presets,B=_.preset,T=_.dispatch,N=_.isLoading,D=_.defaultValues,z=B.content.io.length>0,P=function(e,t,n){var r=this,i=c(null),l=c(0),s=c(null),u=c([]),d=c(),p=c(),f=c(e),m=c(!0);a((function(){f.current=e}),[e]);var h=!t&&0!==t&&"undefined"!=typeof window;t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,l.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!m.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||y&&e-l.current>=b},a=function(t){return s.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},c=function e(){var r=Date.now();if(o(r))return a(r);if(m.current){var c=t-(r-i.current),s=y?Math.min(c,b-(r-l.current)):c;n(e,s)}},w=function(){var a=Date.now(),f=o(a);if(u.current=[].slice.call(arguments),d.current=r,i.current=a,f){if(!s.current&&m.current)return l.current=i.current,n(c,t),g?e(i.current):p.current;if(y)return n(c,t),e(i.current)}return s.current||n(c,t),p.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,u.current=i.current=d.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?a(Date.now()):p.current},w}),[g,y,t,b,v,h]);return w}((function(){if(B.content.io.length>0){var e=function(e,t){var n=[],r=e.content,o=r.io,i=r.format,a=r.quality;return o.forEach((function(e){n.push(function(e){return{key:"io",value:Object.keys(e).filter((function(t){return"id"!==t&&null!==e[t]})).map((function(t){return"".concat(t,":").concat(e[t])})).join(",")}}(e))})),i&&n.push({key:"format",value:i}),a&&a!==t.content.quality&&n.push({key:"quality",value:a.toString()}),n.map((function(e){var t=e.key,n=e.value;return"".concat(t,"=").concat(n)})).join("&")}(B,D);b("".concat(n,"?").concat(e))}else b(n)}),500);return a((function(){return P(),function(){return P.cancel()}}),[P,B,n]),a((function(){i||l&&E(Rk.transformations)}),[i,l]),t.createElement(BS,null,t.createElement(iS,{url:y,canViewTransformations:l,activeTab:x,onApply:m?function(){return m(y,B)}:void 0,onBack:function(){return h(y,B)},hasActiveChanges:z,onDone:function(){i||z?i&&E(Rk.presets):p(y,B)},onShowTransformations:function(){l&&E(Rk.transformations)},hideBottomBar:u}),t.createElement(Xk,{onPresetSelected:function(e){b(""!==e?n.split("/transform")[0]+"/transform/".concat(e,"/").concat(gC(n),"/"):n),S(e)},activeTab:x,presets:I,preset:B,dispatch:T,selectedPreset:k,isLoading:N,baseURL:n,canViewPresets:i,canViewTransformations:l}))}))(DS||(DS=_a(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),OS=n(null);function AS(e){var n=r(),i=n[0],a=n[1],c=r(""),l=c[0],s=c[1],u=function(e,t){s(e),a((function(n){return{preset:(null==n?void 0:n.asset.id)===t.id?n.preset:void 0,url:e,asset:t}}))},d=o((function(){return{transformation:i,setTransformation:a,openDat:u,closeDat:function(){return s("")}}}),[i]);return t.createElement(OS.Provider,{value:d},e.children,l&&t.createElement(TS,{transformBaseUrl:l,transformation:i,setTransformation:a,closeDat:function(){return s("")}}))}function RS(){var e=i(OS);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function MS(e){var n,o,i,c,l=e.transformBaseUrl,s=e.asset,u=e.toggleDropdown,d=RS(),p=d.transformation,f=d.openDat,m=r(),h=m[0],g=m[1],v=null!==(c=null===(i=null===(o=null===(n=null==p?void 0:p.preset)||void 0===n?void 0:n.content)||void 0===o?void 0:o.io)||void 0===i?void 0:i.length)&&void 0!==c?c:0;return a((function(){if(p){var e=p.url,t="io=transform:fill,width:40,height:40";e.includes("io=transform:fill")&&g(e.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/,t)),g("".concat(e,"&").concat(t))}}),[p]),l?t.createElement(t.Fragment,null,t.createElement(Og.Divider,null),t.createElement(LS,{thumbnail:p&&0!==v?t.createElement(wg,{imageUrl:h,"data-testid":"thumbnail-image"}):t.createElement(wg,{icon:t.createElement(mu,null),"data-testid":"crop-icon"}),rightElements:t.createElement(Pu,null),onClick:function(){u(),f(l,s)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var FS,LS=Gl(Og.Item)(FS||(FS=_a(["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"],["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"]))),jS=n(null);function HS(e){var n=r([]),i=n[0],c=n[1],l=r(),s=l[0],u=l[1],d=function(e){var t=this,n=r([]),o=n[0],i=n[1],c=ky(),l=c.selectionMode,s=c.language,u=Tb(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,Ca(t,void 0,void 0,(function(){var e,t,n;return ka(this,(function(o){switch(o.label){case 0:return r.length?[4,Rb(r,u,s)]:[3,2];case 1:e=o.sent(),d||Ty(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),o}(s),p=Sy(),f=RS().transformation;function m(){c([])}function h(e){c((function(t){var n=e.filter((function(e){return!US(t,e)}));return Sa(Sa([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function g(e){var t;"MultiSelect"!==p?(t=e[0],i.some((function(e){return e.value.id===t.id}))?c([]):c([{type:"asset",value:t}])):c((function(t){var n=e.filter((function(e){return!US(t,e)})),r=e.filter((function(e){return US(t,e)}));return Sa(Sa([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function v(e){c((function(t){return US(t,e)?t.filter((function(t){return t.value.id!==e.id})):Sa(Sa([],t,!0),[{type:"collection",value:e}],!1)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){h(d)}),[d]),a((function(){f&&(m(),h([null==f?void 0:f.asset]))}),[f]);var y=o((function(){return{selection:i,preselectedAssetIds:s,clear:m,selectAssets:h,toggleAssets:g,toggleCollection:v}}),[i]);return t.createElement(jS.Provider,{value:y},e.children)}function US(e,t){return e.some((function(e){return e.value.id===t.id}))}function VS(){var e=i(jS);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function $S(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,c=e.style,l=Sy(),s=Ta()[1],u=VS(),d=ky().hideExternalAccess;return t.createElement("div",{id:r.id,style:c,className:sy("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(Vm,{contextAction:!d&&t.createElement(Vm.ContextActionButton,{"aria-label":Hv("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(Ls,null)),selectButtonAriaLabel:Hv(a?"Deselect":"Select"),onSelect:"MultiSelect"===l?function(e){e.stopPropagation(),u.toggleCollection(r)}:void 0,isSelected:a,onClick:function(){return s({page:"collection",collection:r})},"aria-selected":a,"data-testid":"asset-card"},t.createElement(Vm.Frame,null,t.createElement(Vm.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(Vm.Img,{key:e,src:e,alt:r.name})})))),t.createElement(Vm.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},yy(r.assetCount,Hv("{} asset"),Hv("{} assets")))))}function WS(e){var t=r(void 0),n=t[0],o=t[1],i=c(void 0);function l(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var r=n.getBoundingClientRect();o({width:r.width,height:r.height,scrollWidth:n.scrollWidth})}}))}return a((function(){l();var e=function(){return l()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:l}}function YS(e,t){if(!e)throw new Error("Invariant failed")}function qS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GS(){return GS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GS.apply(this,arguments)}function XS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var KS=new Map,ZS=new Map,JS=new Map,QS=0;function e_(e,t,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var r=n,o=r.root,i=r.rootMargin,a=r.threshold;if(KS.has(e)&&YS(!1),e){var c=function(e){return e?JS.has(e)?JS.get(e):(QS+=1,JS.set(e,QS.toString()),JS.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),l=ZS.get(c);l||(l=new IntersectionObserver(n_,n),c&&ZS.set(c,l));var s={callback:t,element:e,inView:!1,observerId:c,observer:l,thresholds:l.thresholds||(Array.isArray(a)?a:[a])};return KS.set(e,s),l.observe(e),s}}function t_(e){if(e){var t=KS.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&KS.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&JS.delete(o),r&&!i&&r.disconnect(),KS.delete(e)}}}function n_(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=KS.get(r);if(o&&n>=0){var i=o.thresholds.some((function(e){return o.inView?n>e:n>=e}));void 0!==t&&(i=i&&t),o.inView=i,o.callback(i,e)}}))}var r_=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qS(XS(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),qS(XS(t),"node",null),qS(XS(t),"handleNode",(function(e){t.node&&(t_(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),qS(XS(t),"handleChange",(function(e,n){(e!==t.state.inView||e)&&t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.node||YS(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(t_(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(t_(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(t_(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;e_(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r})}},o.render=function(){var e=this.state,t=e.inView,n=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:t,entry:n,ref:this.handleNode});var r=this.props,o=r.children,i=r.as,a=r.tag,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]);return s(i||a||"div",GS({ref:this.handleNode},c),o)},r}(m);qS(r_,"displayName","InView"),qS(r_,"defaultProps",{threshold:0,triggerOnce:!1});var o_={inView:!1,entry:void 0};function i_(e){var n=function(e){void 0===e&&(e={});var t=c(),n=r(o_),o=n[0],i=n[1];return[u((function(n){t.current&&(t_(t.current),e.triggerOnce||i(o_)),n&&e_(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&t_(n)}),e),t.current=n}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]),o.inView,o.entry]}(),o=n[0],i=n[1];return a((function(){i&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[i]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:o,"data-testid":"loading-element"},t.createElement(gb,{className:sy(!i&&"hidden")})))}function a_(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function c_(e){return t.createElement(m_,null,t.createElement(h_,null,t.createElement(a_,null),t.createElement(g_,null)),t.createElement(v_,null,Hv("No results found")),t.createElement(y_,null,Hv("Try adjusting the filter to find assets.")),t.createElement(b_,{variant:"primary",title:Hv("Reset filters"),onClick:e.onReset},Hv("Reset filters")))}var l_,s_,u_,d_,p_,f_,m_=Gl.div(l_||(l_=_a(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),h_=Gl.div(s_||(s_=_a(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),If.gray25),g_=Gl(Hs)(u_||(u_=_a(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),If.spacing2,If.gray300),v_=Gl.h1(d_||(d_=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),If.spacing6,If.fontSize400),y_=Gl.span(p_||(p_=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),If.spacing5,If.colorTextDisabled),b_=Gl(Xf)(f_||(f_=_a(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),If.spacing7);function w_(e){var n,o,i=r(null),a=i[0],c=i[1],l=WS(a).dimensions,s=VS().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=Pa().setSearch,d=e.connection,p=d.data,f=d.isLoading,m=d.loadMore,h=d.hasNextPage,g=void 0!==l?Math.ceil(l.height/184):0,v=void 0!==l?Math.round((l.width-32)/204):0;return t.createElement("div",{role:"listbox",className:"card-list",ref:function(e){c(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(wy,{rows:g,columns:v,title:t.createElement("div",{className:"mt-2 text-sm"}," ")}),"Loaded"===p.tag&&0===(null===(n=p.value)||void 0===n?void 0:n.collections.nodes.length)&&t.createElement(c_,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(i_,{hasNextPage:h,isLoading:f,loadMore:m},null===(o=p.value)||void 0===o?void 0:o.collections.nodes.map((function(e,n){return t.createElement($S,{key:e.id,isSelected:s.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}function x_(){var e=Oa("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=Tb(),i=r({tag:"Loading",value:null}),c=i[0],l=i[1],s=!1,u=function(t){return Ca(n,void 0,void 0,(function(){var n,r;return ka(this,(function(i){switch(i.label){case 0:return l((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,Py("\nquery getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {\n collections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\n nodes {\n id\n name\n assetCount\n thumbnailUrls\n url\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}",xa(xa({},e),{searchTerm:null!==(r=e.searchTerm)&&void 0!==r?r:null,after:null!=t?t:null}),o)];case 1:return n=i.sent(),s||(Ty(n)?l({tag:"Failure",value:n.error}):d(n,t)),[2]}}))}))},d=function(e,t){p()&&t?l((function(t){var n,r,o=null!==(r=null===(n=p(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{collections:xa(xa({},e.value.collections),{nodes:Sa(Sa([],o,!0),e.value.collections.nodes,!0)})}}})):l({tag:"Loaded",value:e.value})},p=function(e){var t,n=null!=e?e:c;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return u(),function(){s=!0}}),[e.searchTerm,e.orderBy]),{data:c,executeQuery:function(){return u()},isLoading:!c||"Loading"===c.tag,loadMore:function(){var e;return u(null===(e=p())||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(t=p())||void 0===t?void 0:t.pageInfo.hasNextPage)}}({searchTerm:n,orderBy:ba("collections")[0]});return a((function(){i.isLoading||o(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(iy,{error:new Error(i.data.value),onRetry:i.executeQuery}):t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto"},t.createElement("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},i.data.value&&t.createElement("span",{className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},yy(i.data.value.collections.totalCount,Hv("{} collection"),Hv("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(hy,{options:["CREATED_AT","NAME"]}),t.createElement(ay,null)),t.createElement(w_,{connection:i}))}var E_=n(null);function C_(e){var n=e.children,i=e.hideLimitedUse,c=void 0!==i&&i,l=r([]),s=l[0],u=l[1],d=r([]),p=d[0],f=d[1],m=r([]),h=m[0],g=m[1],v=r(),y=v[0],b=v[1],w=r({}),x=w[0],E=w[1];function C(e){u((function(t){return k_(t,e)}))}function k(e){u((function(t){return S_(t,e)}))}function S(e){f((function(t){return k_(t,e.id)})),E((function(t){var n;return xa(xa({},t),((n={})[e.id]=e,n))}))}function _(e){f((function(t){return S_(t,e.id)})),E((function(t){var n=t,r=e.id;return Ea(n,["symbol"==typeof r?r:r+""])}))}function I(e){g((function(t){return k_(t,e)}))}function B(e){g((function(t){return S_(t,e)}))}function T(){u([]),f([]),E({}),g([])}a((function(){b(!c&&void 0)}),[c]);var N=p.map((function(e){return x[e]})),D=o((function(){return{assetTypes:s,metaproperties:N,tags:h,isLimited:y,addAssetType:C,removeAssetType:k,addMetaproperty:S,removeMetaproperty:_,addTag:I,removeTag:B,clear:T}}),[s,N,h,y]);return t.createElement(E_.Provider,{value:D},n)}function k_(e,t){return e.includes(t)?e:Sa(Sa([],e,!0),[t],!1)}function S_(e,t){return e.filter((function(e){return e!==t}))}function __(){var e=i(E_);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function I_(e){return Hv({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function B_(e){switch(e){case"AUDIO":return qs;case"DOCUMENT":return nu;case"IMAGE":return yu;case"VIDEO":return Ys;case"ARCHIVE":return Xs}}function T_(e){return t.createElement(D_,{icon:t.createElement(Iu,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right",isVisible:e.isVisible})}var N_,D_=Gl(Xf)(N_||(N_=_a(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"])),(function(e){return!e.isVisible&&"\n\t\tdisplay: none;\n\t"}));function z_(e){return t.createElement(O_,{icon:t.createElement(_u,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left",isVisible:e.isVisible})}var P_,O_=Gl(Xf)(P_||(P_=_a(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"])),(function(e){return!e.isVisible&&"\n\t\tdisplay: none;\n\t"}));function A_(e){var n=r(0),o=n[0],i=n[1],l=c(null),s=WS(l.current),u=s.dimensions,d=s.remeasure,p=null!==l.current?l.current.scrollWidth-l.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(l.current)}),[e.children,l.current]),a((function(){f||i(0)}),[f]);var m=o>0,h=p>5&&o!==p;return t.createElement("div",{className:sy("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(z_,{isVisible:m,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:l},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-o,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(T_,{isVisible:h,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function R_(e){var n=sy("bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex\n\t\t items-center justify-center px-3 rounded-full select-none shadow-border\n\t\t text-sm text-white transition-color",e.className);return t.createElement("div",{className:n,onClick:e.onClick,onKeyDown:function(t){return function(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function M_(e){return t.createElement(R_,{className:"mr-2 fade-in-down","data-testid":"selected-filter:".concat(e.title)},e.icon,t.createElement("span",{className:"max-w-32 truncate",title:e.title},e.title),t.createElement(Bu,{onClick:e.onClick,title:Hv("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function F_(){var e=__(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(j_,{variant:"clean",isSmall:!0,onClick:e.clear},Hv("Clear filters"));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(A_,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=B_(n);return t.createElement(M_,{key:n,onClick:function(){return e.removeAssetType(n)},title:I_(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(M_,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(M_,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var L_,j_=Gl(Xf)(L_||(L_=_a(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),H_=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function U_(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return H_.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function V_(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function $_(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=ky(),a=i.hideExternalAccess,c="SingleSelectFile"===i.selectionMode&&n;return!c&&a?null:c||a?c&&a?t.createElement(Vm.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(mu,null)):t.createElement(Lg,{trigger:function(e){var n=e.isOpen,r=Ea(e,["isOpen"]);return t.createElement(Vm.ContextActionButton,xa({"aria-label":"Menu",isPressed:n},r),t.createElement(Du,null))},isClosedOnScroll:!0},t.createElement(Lg.Item,{icon:t.createElement(Ls,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Lg.Divider,null),t.createElement(Lg.Item,{icon:t.createElement(mu,null),onClick:o},"New transformation")):t.createElement(Vm.ContextActionButton,{"aria-label":Hv("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(Ls,null))}var W_,Y_,q_,G_,X_=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){return{label:e.label,value:e.options.map((function(e){return e.label})).join(", ")}})),r=t.map((function(e){var t=e.label,n=e.value,r="date"===e.type?function(e,t,n){wd(2,arguments);var r=String(t),o=n||{},i=o.locale||Ad,a=i.options&&i.options.firstWeekContainsDate,c=null==a?1:bd(a),l=null==o.firstWeekContainsDate?c:bd(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var s=i.options&&i.options.weekStartsOn,u=null==s?0:bd(s),d=null==o.weekStartsOn?u:bd(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var p=xd(e);if(!Sd(p))throw new RangeError("Invalid time value");var f=Rd(p,Cd(p)),m={firstWeekContainsDate:l,weekStartsOn:d,locale:i,_originalDate:p};return r.match(yp).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ep[t])(e,i.formatLong,m):e})).join("").match(vp).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Ep(n);var a=Kd[r];if(a)return!o.useAdditionalWeekYearTokens&&op(n)&&ip(n,t,e),!o.useAdditionalDayOfYearTokens&&rp(n)&&ip(n,t,e),a(f,n,i.localize,m);if(r.match(xp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(new Date(n),"dd MMMM yyyy"):n;return{label:t,value:r}}));return Sa(Sa([],n,!0),r,!0)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(Vm.AdditionalInfo,null,t.createElement(K_,null,n.map((function(e){var n=e.label,r=e.value;return t.createElement(Z_,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(J_,null,n,":"),t.createElement(Q_,{title:r},r))})))):null},K_=Gl.dl(W_||(W_=_a(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),If.fontSize75),Z_=Gl.div(Y_||(Y_=_a(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),J_=Gl.dt(q_||(q_=_a(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),Q_=Gl.dd(G_||(G_=_a(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function eI(e){var n,o,i=e.className,c=e.fadeIn,l=void 0===c||c,s=e.asset,u=e.isSelected,d=e.isOutlined,p=e.onClick,f=e.children,m=void 0===f?null:f,h=r(),g=h[0],v=h[1],y=r(),b=y[0],w=y[1],x=RS(),E=x.openDat,C=x.setTransformation,k=ky().theme,S=function(e){return[e.isArchived&&Hv("archived"),e.isWatermarked&&Hv("watermarked"),e.isLimitedUse&&Hv("limited")].filter((function(e){return e})).join(", ")}(s),_=V_(s);a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));v(t)}),[s.metaproperties]),a((function(){var e,t=null===(e=s.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));w(t)}),[s.textMetaproperties]);var I=function(e){void 0!==p&&(e.stopPropagation(),C(),p(s,e))};return t.createElement(oI,{id:s.id,theme:k,isOutlined:(u||d)&&void 0!==(null==k?void 0:k.colorPrimary),fadeIn:l,className:sy("group",i),"data-drag-select-id":s.id},t.createElement(Vm,{contextAction:t.createElement($_,{transformBaseUrl:null===(o=null===(n=s.files)||void 0===n?void 0:n.transformBaseUrl)||void 0===o?void 0:o.url,portalUrl:s.url,onOpenDAT:function(){var e,t;return E(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,s)}}),selectButtonAriaLabel:Hv(u?"Deselect":"Select"),onSelect:I,onClick:I,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(Vm.Frame,{icon:S?t.createElement(iI,{color:"black-alpha",limitWidth:!!_,"data-testid":"asset-tag"},t.createElement(_m,null,S)):void 0,"data-testid":"asset-type",badge:_},t.createElement(Vm.Images,null,U_(s)&&t.createElement(Vm.Img,{src:U_(s),alt:s.name,contentResize:"fit"}))),m,t.createElement(aI,{"data-testid":"asset-name"},s.name),t.createElement(X_,{metaproperties:g,textMetaproperties:b})))}var tI,nI,rI,oI=Gl.div(tI||(tI=_a(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"])),If.spacing3,(function(e){return e.fadeIn?"animation: var(--fade-in-down);":""}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimary}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimaryHover}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimaryActive})),iI=Gl(Bf)(nI||(nI=_a(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.limitWidth&&"max-width: 142px;"})),aI=Gl.p(rI||(rI=_a(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"])));function cI(e,t,n){var r=this,i=c(null),l=c(0),s=c(null),u=c([]),d=c(),p=c(),f=c(e),m=c(!0);f.current=e;var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,l.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!m.current)return!1;var n=e-i.current,r=e-l.current;return!i.current||n>=t||n<0||y&&r>=b},a=function(t){return s.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},c=function(){var e=Date.now();if(o(e))return a(e);if(m.current){var r=e-i.current,s=e-l.current,u=t-r,d=y?Math.min(u,b-s):u;n(c,d)}},w=function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var h=Date.now(),v=o(h);if(u.current=a,d.current=r,i.current=h,v){if(!s.current&&m.current)return l.current=i.current,n(c,t),g?e(i.current):p.current;if(y)return n(c,t),e(i.current)}return s.current||n(c,t),p.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,u.current=i.current=d.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?a(Date.now()):p.current},w}),[g,y,t,b,v,h]);return w}function lI(e,t){return e===t}function sI(e){return"function"==typeof e?function(){return e}:e}function uI(e,t,n){var o=n&&n.equalityFn||lI,i=function(e){var t=r(sI(e)),n=t[0],o=t[1];return[n,u((function(e){return o(sI(e))}),[])]}(e),l=i[0],s=i[1],d=cI(u((function(e){return s(e)}),[s]),t,n),p=c(e);return a((function(){o(p.current,e)||(d(e),p.current=e)}),[e,d,o]),[l,{cancel:d.cancel,isPending:d.isPending,flush:d.flush}]}var dI={x:null,y:null},pI=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,l=e.onDeselect,s=e.onDragStart,d=e.onDragEnd,p=r(dI),f=p[0],m=p[1],g=r(dI),v=g[0],y=g[1],b=uI(v,10,{leading:!0,maxWait:10})[0],w=r(),x=w[0],E=w[1],C=Fa(),k=t.useMemo((function(){return mI(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=uI(k,50,{leading:!1,maxWait:50})[0],_=r([]),I=_[0],B=_[1],T=bI(I),N=c(f),D=c(v),z=c(null!==N.current.x&&null!==N.current.y&&null!==D.current.x&&null!==D.current.y),P=c({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",O,!1),document.addEventListener("keyup",O,!1),function(){document.removeEventListener("keydown",O,!1),document.removeEventListener("keyup",O,!1)}}),[]);var O=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";P.current={shiftKey:t,metaKey:n},z.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof s&&z.current?(O(P.current),s(null!=x?x:"select")):"function"!=typeof d||z.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[z.current,x]);var A=function(e){N.current=e,m(e),M()},R=function(e){D.current=e,y(e),M()},M=function(){z.current=null!==N.current.x&&null!==N.current.y&&null!==D.current.x&&null!==D.current.y},F=u((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==N.current.x,a=Math.abs(null!==(t=N.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=N.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&R({x:o,y:r})}),[]),L=u((function(){C.removeEventListener("mousemove",F),C.removeEventListener("mouseup",L),A(dI),R(dI)}),[F,C]),j=u((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",F),C.addEventListener("mouseup",L),A({x:n,y:t}))}),[F,L,C]);a((function(){var e=C.querySelector(n);return e&&(vI(C),e.addEventListener("mousedown",j)),function(){e&&(e.removeEventListener("mousedown",j),yI(C))}}),[n,j,F,L,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=gI(t);return t instanceof HTMLElement&&hI(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);B(t)}),[S,C]),a((function(){if(T&&T!==I&&z.current){var e=I.filter((function(e){return!T.includes(e)})),t=T.filter((function(e){return!I.includes(e)}));e.length&&i(e),t.length&&l(t)}}),[I,T,i,l,z]);var H=C.querySelector("#".concat("drag-select-container"));return z.current&&H?h.createPortal(t.createElement("div",xa({},o,{style:o.style?xa(xa(xa({},fI),o.style),k):xa(xa({},fI),k),"data-testid":"drag-selection"})),H):null},fI={position:"absolute",zIndex:100},mI=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),c=Math.abs(t.y-e.y),l=Math.abs(o-e.x),s=r.width+r.left-i-4;return{left:i,top:a,height:c,width:l=Math.min(l,s)}},hI=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},gI=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},vI=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},yI=function(e){var t=e.querySelector("#".concat("drag-select-container"));t&&t.remove()},bI=function(e){var t=c();return a((function(){t.current=e})),t.current};function wI(e){var n,o=e.assets,i=e.count,a=e.hasNextPage,l=void 0!==a&&a,s=e.isLoading,u=void 0!==s&&s,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,m=void 0===f?function(){}:f,h=e.onToggle,g=void 0===h?function(){}:h,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,w=void 0===b?[]:b,x=e.selectionMode,E=void 0===x?"MultiSelect":x,C=e.theme,k=e.children,S=void 0===k?null:k,_=c(null),I=WS(_.current).dimensions,B=r([]),T=B[0],N=B[1],D=r("inactive"),z=D[0],P=D[1],O=function(e,t){if(void 0!==e)return[1,e];if(!t)return[0,0];return[Math.ceil(t.height/188),Math.round((t.width-16)/208)]}(i,I),A=O[0],R=O[1];function M(e){return("inverse"!==z||!w.includes(e.id)||!T.includes(e.id))&&(w.includes(e.id)||T.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:_,"data-drag-select-container":!0},S,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===o.tag&&!o.value&&t.createElement(wy,{rows:A,columns:R}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(pI,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==C?void 0:C.colorPrimary}},onSelect:function(e){N((function(t){return Sa(Sa([],t,!0),e,!0)}))},onDeselect:function(e){N((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){P(e)},onDragEnd:function(e){if(P("inactive"),T.length){var t=[];T.forEach((function(e){var n=function(e){var t;if("Loading"!==o.tag||o.value)return null===(t=o.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):m(t),N([])}}}),t.createElement(i_,{hasNextPage:l,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(eI,{key:e.id,isSelected:M(e),isOutlined:M(e),asset:e,fadeIn:n>=A*R,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=o.value)||void 0===n?void 0:n.length)){var a=o.value.findIndex((function(t){return t.id===e.id})),c=null===(r=o.value)||void 0===r?void 0:r.findIndex((function(e){return e.id===w[w.length-1]}));-1===c&&(c=0),m(c<a?null===(i=o.value)||void 0===i?void 0:i.slice(c,a+1):o.value.slice(a,c+1))}else g([e])}(e,t)}})}))))))}function xI(e){var n,r,o,i,c=e.connection,l=c.data,s=c.isLoading,u=c.loadMore,d=c.hasNextPage,p=c.executeQuery,f=Pa().setIsLoading,m=ky(),h=VS().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=VS(),v=g.selectAssets,y=g.toggleAssets,b=Pa().setSearch,w=__();if(a((function(){s||f(!1)}),[s]),"Failure"===l.tag)return t.createElement(iy,{error:new Error(l.value),onRetry:p});var x=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(wI,{assets:EI(l),count:x,isLoading:s,loadMore:u,hasNextPage:d,theme:m.theme,selectionMode:m.selectionMode,selectedAssetIds:h,onSelect:v,onToggle:y,emptyStateElement:t.createElement(c_,{onReset:function(){w.clear(),b("assets",""),b("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==x&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:x},yy(x,Hv("{} asset"),Hv("{} assets"))),e.showActiveFilters&&t.createElement(F_,null),t.createElement(hy,null),t.createElement(ay,null)))}function EI(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function CI(e){var n=Oa("collection").value,r=Ta()[1],o=ba("collection")[0],i=ky(),a=i.assetTypes,c=i.language,l=zb({collection:e.collection,allAssetTypes:a,searchTerm:n,orderBy:o,language:c});return t.createElement(t.Fragment,null,t.createElement("nav",{className:"px-4 py-4","data-testid":"collection-toolbar"},t.createElement("button",{className:"text-body-400 select-none cursor-pointer",onClick:function(){return r({page:"collections"})},type:"button"},Hv("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(xI,{connection:l,totalCount:e.collection.assetCount}))}var kI,SI,_I,II,BI=Gl(Xm)(kI||(kI=_a(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),If.fontSize75,(function(e){return e.isLoading&&!e.isChecked?"wait":"pointer"})),TI=Gl.li(SI||(SI=_a(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),If.spacing2,If.spacing5,If.gray25),NI=Gl.div(_I||(_I=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"])),(function(e){return e.isChecked?"inherit":If.gray500})),DI=Gl.span(II||(II=_a(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),If.spacing4);function zI(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(TI,null,t.createElement(BI,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option",isLoading:e.isLoading},t.createElement(NI,{isChecked:n},t.createElement(DI,{title:e.metapropertyOption.label},t.createElement(_m,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount))))}function PI(e){return t.createElement(RI,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(MI,null,e.metaproperty.options.map((function(n){return t.createElement(zI,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var OI,AI,RI=Gl.div(OI||(OI=_a(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),If.spacing5),MI=Gl.ul(AI||(AI=_a(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"])));function FI(e){return t.createElement(jI,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(PI,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var LI,jI=Gl.div(LI||(LI=_a(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),If.spacing4);function HI(e){var n,r,o=__(),i=o.metaproperties.map((function(e){return e.id})),a=(n=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),r=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},Sa([],n,!0).sort((function(e,t){return r(e)-r(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(dy,{key:n.id,title:t.createElement(UI,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(PI,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(FI,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function UI(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:sy("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function VI(e){var n=__(),r=n.tags.includes(e.tag.name),o=sy("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(R_,{key:e.tag.id,className:o,onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item"},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}function $I(e){var n=Sa([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(dy,{title:t.createElement(WI,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",Hv("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(VI,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function WI(){return t.createElement(t.Fragment,null,t.createElement(Os,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},Hv("Tags")))}function YI(e){var n=__(),r=n.assetTypes.includes(e.type),o=B_(e.type);return t.createElement(TI,{"data-testid":"advanced-options"},t.createElement(BI,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},isLoading:e.isLoading,"data-testid":"".concat(I_(e.type),"-filter")},t.createElement(NI,{isChecked:r},t.createElement(o,null),t.createElement(GI,null,I_(e.type)),t.createElement("span",{className:"fade-in-down"},e.count))))}var qI,GI=Gl.div(qI||(qI=_a(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),If.spacing3);function XI(e){var n=ky().assetTypes,r=n.filter((function(t){return ZI(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(dy,{title:t.createElement(KI,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(gb,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},Hv("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(YI,{key:n,type:n,count:ZI(e.count,n),isLoading:e.isLoading})}))))}))}function KI(){return t.createElement(t.Fragment,null,t.createElement(Eu,{className:"mr-2 inline w-6 h-6"}),Hv("Advanced"))}function ZI(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function JI(){var e=__(),n=Oa("assets").value,o=ky(),i=o.assetTypes,c=o.language;Vv(c);var l=function(e){var t=this,n=Tb(),o=r({tag:"Loading",value:null}),i=o[0],c=o[1],l=!1;return a((function(){return Ca(t,void 0,void 0,(function(){var t,r,o,i,a,s;return ka(this,(function(u){switch(u.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),t=e.filter,r=e.searchTerm,o=e.allAssetTypes,i=e.language,[4,Py("\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }",{filter:{assetType_in:null!==(s=t.assetTypes)&&void 0!==s?s:o,collectionId:null,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags,isLimitedUse:t.isLimited},language:i},n)];case 1:return a=u.sent(),l||(Ty(a)?c({tag:"Failure",value:a.error}):c({tag:"Loaded",value:a.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:i,isLoading:"Loading"===i.tag}}({filter:e,searchTerm:n||null,allAssetTypes:i,language:c}),s=l.data,u=l.isLoading;if("Failure"===s.tag||!s.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(QI,null));var d=s.value.searchAssets,p=d.metapropertyFilters,f=d.tags,m=d.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(A_,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(HI,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement($I,{tags:f.nodes,isLoading:u}),t.createElement(XI,{isLoading:u,count:m.assetType})))}function QI(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(by,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(by,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(by,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var eB,tB,nB=Yl(tB||(tB=_a(["",""],["",""])),Nl(eB||(eB=_a(["\n\t.cv-root {\n\t\t","\n\t}:\n"],["\n\t.cv-root {\n\t\t","\n\t}:\n"])),(function(e){return function(e){var t=function(e){var t,n;return{"--componentButtonPrimaryBorderHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderActive":null!==(t=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==t?t:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderFocus":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryColor":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorHover":null==e?void 0:e.colorButtonPrimaryHoverLabel,"--componentButtonPrimaryColorActive":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorFocus":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorDisabled":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryFill":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryFillHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillActive":null!==(n=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==n?n:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillFocus":null==e?void 0:e.colorButtonPrimary}}(e),n=Object.entries(t).map((function(e){return e.join(":")}));return n.join(";")+";"}(e.theme)})));function rB(){var e=Ta()[0],n=Oa(e.page),o=n.value,i=n.isLoading,c=cI(n.setSearch,500),l=r(o),s=l[0],u=l[1];a((function(){u(o)}),[e,o]),a((function(){return function(){c.flush()}}),[e,c]);var d="collections"===e.page?Hv("Search for collections"):Hv("Search for assets");return t.createElement(iB,{value:s,placeholder:d,"aria-label":d,onChange:function(e){return u(t=e),void c(t);var t},"data-testid":"search-input",icon:t.createElement(Hs,null),iconRight:i?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(gb,{className:"relative right-0"})):void 0,hasClearButton:!i&&!!o})}var oB,iB=Gl(Nh)(oB||(oB=_a(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function aB(){var e=Ta(),n=e[0],r=e[1];return t.createElement(lB,null,t.createElement(Xf,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},Hv("Assets")),t.createElement(Xf,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},Hv("Collections")))}var cB,lB=Gl.div(cB||(cB=_a(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),If.spacing2);function sB(){var e,n="authenticated"===(null===(e=i(_b))||void 0===e?void 0:e.status)||!1,r=nb(),o=Tb(),a=void 0!==ky().assetFilter;return n||r||!a?t.createElement(pB,null,!a&&t.createElement(t.Fragment,null,t.createElement(aB,null),t.createElement(rB,null)),t.createElement(fB,null,n&&!(null==o?void 0:o.hideLogout)&&t.createElement(Xf,{variant:"clean",onClick:function(){return null==o?void 0:o.logout()},rightIcon:t.createElement(zs,null)},Hv("Log out")),r&&t.createElement(Xf,{variant:"clean",onClick:function(){return r.onClose()},title:Hv("Close"),icon:t.createElement(Bu,null)}))):null}var uB,dB,pB=Gl.nav(uB||(uB=_a(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),If.gray10,If.spacing5,If.spacing4),fB=Gl.div(dB||(dB=_a(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function mB(){var e=__(),n=e.assetTypes,r=e.metaproperties,o=e.tags,i=e.isLimited,a=Oa("assets").value,c=ba("assets")[0],l=ky(),s=l.assetFilter,u=l.assetTypes,d=l.language,p=zb(void 0===s?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:i},searchTerm:a,orderBy:c,allAssetTypes:u,language:d}:{predefinedFilter:s,orderBy:c,language:d});return t.createElement(xI,{connection:p,showActiveFilters:void 0===s})}function hB(e,t,n){return void 0===n&&(n="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,Py("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return Ty(r=o.sent())?[2,r]:[2,_y(r.value.node)]}}))}))}function gB(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}function vB(e){var n=e.asset,o=e.onChange,i=r({status:"Loading"}),c=i[0],l=i[1],s=Tb(),u=ky().assetFieldSelection,d=RS().transformation;function p(e){l((function(t){return"Data"!==t.status?t:("Custom transformation"===e&&d?setTimeout((function(){return o({url:null==d?void 0:d.url})})):setTimeout((function(){return o(t.files[e])})),xa(xa({},t),{key:e}))}))}return a((function(){var e,t;(null==d?void 0:d.url)&&"Data"===c.status&&p(d.url!==(null===(t=null===(e=c.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url)?"Custom transformation":"transformBaseUrl")}),[d]),a((function(){l({status:"Loading"}),o(void 0),function(e,t,n){return Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,hB(e.id,t,n)];case 1:return By(r=o.sent())&&r.value.files?[2,_y(Dy(r.value.files))]:[2,Iy("Error retrieving asset files")]}}))}))}(n,s,u).then((function(e){if(Ty(e))return Aa.error(e.error),void l({status:"Failure"});var t=e.value,n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),o(t[n])}))}),[n.id,s,u]),t.createElement(xB,null,t.createElement(dy,{title:t.createElement(yB,{state:c}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===c.status},(function(e){var r,o;return"Data"===c.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(c.files).map((function(n){var r,o=n[0],i=n[1];return t.createElement(my,{key:o,className:"px-3 py-2",selected:c.key===o,onClick:function(){p(o),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===o?t.createElement(Ns,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(i.url))&&void 0!==r?r:t.createElement(ru,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},gB(o)),t.createElement("div",{className:"text-sm"},i.width&&i.height&&"".concat(i.width," x ").concat(i.height," px"),i.width&&i.height&&i.fileSize&&t.createElement("span",{className:"mx-2"},"•"),i.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(i.fileSize))))})),t.createElement(MS,{transformBaseUrl:null===(o=null===(r=c.files)||void 0===r?void 0:r.transformBaseUrl)||void 0===o?void 0:o.url,toggleDropdown:e,asset:n}))})))}function yB(e){var n=e.state;return"Loading"===n.status?t.createElement(by,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(EB,null,"Custom transformation"===n.key&&t.createElement(mu,null),gB(n.key)):t.createElement(t.Fragment,null,"Error")}var bB,wB,xB=Gl.div(bB||(bB=_a(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),If.spacing5),EB=Gl.div(wB||(wB=_a(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),If.spacing4);function CB(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(Su,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,Hv("Retry")):t.createElement(t.Fragment,null,yy(r,Hv("Add asset"),Hv("Add assets")))}function kB(e){var n,o=ky(),i=o.assetFieldSelection,l=o.onSuccess,s=o.selectionMode,u=VS().preselectedAssetIds,d=Tb(),p=c(!0),f=r("SingleSelectFile"===s?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=f[0],h=f[1];function g(e,t){if(Ty(e))h({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),l(n,{selectedFile:t})}catch(e){Aa.error(e)}p.current&&(h({status:"Done"}),setTimeout((function(){p.current&&h({status:"Ready"})}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===s&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(vB,{asset:e.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(Xf,{variant:"primary",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var t,n="ReadyWithFile"===m.status?m.file:void 0;h({status:"Loading"}),"MultiSelect"!==s&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?hB(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),Ca(this,void 0,void 0,(function(){var r,o,i,a,c,l,s,u,d,p,f,m,h,g;return ka(this,(function(v){switch(v.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o=e.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.assetCount})),i=o.reduce((function(e,t){return e+t}),0),a={ids:e.map((function(e){return e.value.id})),collectionCount:i},[4,Py(r,a,t)];case 1:if(Ty(c=v.sent()))return[2,c];for(l=[],s=0,u=c.value.nodes;s<u.length;s++)"Collection"===(d=u[s]).__typename?l.push.apply(l,d.assets.nodes):l.push(d);for(p=new Set,f=[],m=0,h=l;m<h.length;m++)g=h[m],p.has(g.id)||(f.push(g),p.add(g.id));return[2,_y(f)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},t.createElement(CB,{status:m.status,numberOfSelectedItems:e.selection.length})))}function SB(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(BI,{"aria-label":Hv("Deselect"),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"},t.createElement(IB,null,o)))}var _B,IB=Gl.span(_B||(_B=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n"])),If.fontSize100);function BB(e){var n=e.asset,r=VS();return t.createElement(SB,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(NB,{variant:"content",imageUrl:U_(n),size:"m"}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),V_(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},V_(n)))}var TB,NB=Gl(wg)(TB||(TB=_a(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),If.spacing4);function DB(e){var n=e.collection,r=VS();return t.createElement(SB,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(PB,{variant:"clean",icon:t.createElement(bu,null)}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},yy(n.assetCount,Hv("{} asset"),Hv("{} assets"))))}var zB,PB=Gl(wg)(zB||(zB=_a(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),If.spacing4);function OB(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return"asset"===e.type?t.createElement(BB,{key:e.value.id,asset:e.value}):t.createElement(DB,{key:e.value.id,collection:e.value})})))}function AB(){var e=VS(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(FB,{"data-testid":"selection-footer"},t.createElement(LB,null,t.createElement(dy,{buttonKind:"secondary",direction:"Up",title:Hv("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(OB,{selection:n})})),t.createElement(Xf,{variant:"clean",onClick:r},Hv("Clear selection"))),t.createElement(kB,{selection:n}))}var RB,MB,FB=Gl.div(RB||(RB=_a(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),If.layoutSpacing5,If.spacing6),LB=Gl.span(MB||(MB=_a(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),If.spacing2);function jB(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT","ARCHIVE"]:o,a=e.defaultSearchTerm,c=e.language,l=void 0===c?"en_US":c,s=e.mode,u=void 0===s?"MultiSelect":s,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,m=e.hideExternalAccess,h=e.selectedAssets,g=e.hideLimitedUse,v=e.isContainerMode,y=void 0!==v&&v;Vv(l);var b={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:m};return t.createElement(kb,null,t.createElement(Ba,null,t.createElement(eb,{isContainerMode:y},t.createElement(AS,null,t.createElement(ya,null,t.createElement(C_,{hideLimitedUse:g},t.createElement(za,{defaultValue:a},t.createElement(Cy,{value:b},t.createElement(HS,{preselectedAssetIds:null!=h?h:[]},t.createElement(nB,{theme:b.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(sB,null),t.createElement(HB,null),t.createElement(AB,null)))))))))))}function HB(){var e=Ta()[0],n=ky().assetFilter;return t.createElement(t.Fragment,null,"assets"===e.page&&void 0===n&&t.createElement(JI,null),"assets"===e.page&&t.createElement(mB,null),"collections"===e.page&&t.createElement(x_,null),"collection"===e.page&&t.createElement(CI,{collection:e.collection}))}!function(e={}){if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=ma),void 0===e.release){var t=mr();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n,r={...e,stackParser:(n=e.stackParser||Hi,Array.isArray(n)?Zr(...n):n),integrations:ci(e),transport:e.transport||(Qr()?Pi:Oi)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Mr.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=Zo(),r=n.getScope();r&&r.update(t.initialScope);var o=new e(t);n.bindClient(o)}(zi,r),e.autoSessionTracking&&function(){if(void 0!==mr().document){var e=Zo();e.captureSession&&(ha(e),oo("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&ha(Zo())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Mr.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,tracesSampleRate:1,defaultIntegrations:!1});export{jB as CompactView,Bb as Login,rb as Modal};
|