@bynder/compact-view 3.2.4 → 3.3.1

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * bynder-compactview v3.2.4
3
+ * bynder-compactview v3.3.1
4
4
  * (c) 2022 Bynder
5
5
  */
6
6
 
@@ -193,4 +193,4 @@ to {
193
193
  > * {
194
194
  pointer-events: auto;
195
195
  }
196
- `;const Dp={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 Pp({...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(Op,{color:r,hasBorder:o,isPillShaped:i,isSecondary:l,isSmall:c,...e},a&&t.createElement(Ap,{isSmall:c},a),n)}const Op=ql.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?Dp.spacing2:"6px"),(e=>e.isPillShaped?Dp.radiusPill:Dp.radiusMedium),Dp.white,Dp.fontSize50,(e=>{if(!e.isSecondary&&e.color){const t={brand:Dp.brandPrimary500,gray:Dp.gray400,black:Dp.gray900,"black-alpha":Dp.gray600a,blue:Dp.blue500,red:Dp.red400};return e.hasBorder?Tl(["border-color:",";color:",";"],t[e.color],t[e.color]):Tl(["background-color:",";"],t[e.color])}if(e.isSecondary)return Tl(["border-color:",";background-color:",";color:",";"],e.hasBorder?Dp.gray100:"transparent",e.hasBorder?Dp.white:Dp.gray100,Dp.gray800)})),Ap=ql.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?Dp.spacing1:Dp.spacing2),Dp.spacing1),Rp=Tl(["color:",";font-size:",";font-family:",";line-height:",";"],Dp.colorText,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase);ql.div.withConfig({displayName:"BaseStyles",componentId:"sc-11co88f-2"})(["",""],Rp),ql.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":Dp.radiusPill),(e=>"brand"===e.color?Dp.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${Dp["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${Dp["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${Dp.gray100a}\n\t\t\t`));const Fp=Gl(["to{transform:translateX(-40px);}"]),Lp=`rgb(${Dp["white-rgb"]} / 0.15)`,Mp=`rgb(${Dp["gray1000-rgb"]} / 0.15)`;ql.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;"],Lp,Mp,Mp,Lp,Lp,Mp,Mp,Fp);const jp=ql.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;}"," ",";",""],Dp.brandRadiusBase,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Tl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px !important;padding:0 "," !important;"],Dp.spacing5)),(e=>{if("primary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["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;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,e.isPressed&&t,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryFocusRing,t,Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonSecondaryBorderActive,Dp.componentButtonSecondaryFillActive,Dp.componentButtonSecondaryColorActive);return Tl(["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;}"],Dp.componentButtonSecondaryBorder,Dp.componentButtonSecondaryFill,Dp.componentButtonSecondaryColor,e.isPressed&&t,Dp.componentButtonSecondaryBorderHover,Dp.componentButtonSecondaryFillHover,Dp.componentButtonSecondaryColorHover,Dp.elevation1,Dp.componentButtonSecondaryBorderFocus,Dp.componentButtonSecondaryFillFocus,Dp.componentButtonSecondaryColorFocus,Dp.componentButtonSecondaryFocusRing,t,Dp.componentButtonSecondaryBorderDisabled,Dp.componentButtonSecondaryFillDisabled,Dp.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonCleanBorderActive,Dp.componentButtonCleanFillActive,Dp.componentButtonCleanColorActive);return Tl(["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;}"],Dp.componentButtonCleanFill,Dp.componentButtonCleanColor,e.isPressed&&t,Dp.componentButtonCleanFillHover,Dp.componentButtonCleanColorHover,Dp.componentButtonCleanBorderFocus,Dp.componentButtonCleanColorFocus,Dp.componentButtonCleanFocusRing,t,Dp.componentButtonCleanFillDisabled,Dp.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonDangerBorderActive,Dp.componentButtonDangerFillActive,Dp.componentButtonDangerColorActive);return Tl(["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;}"],Dp.componentButtonDangerFill,Dp.componentButtonDangerColor,Dp.elevation1,e.isPressed&&t,Dp.componentButtonDangerBorderHover,Dp.componentButtonDangerFillHover,Dp.componentButtonDangerColorHover,Dp.elevation2,Dp.componentButtonDangerBorderFocus,Dp.componentButtonDangerColorFocus,Dp.componentButtonDangerFocusRing,t,Dp.componentButtonDangerBorderDisabled,Dp.componentButtonDangerFillDisabled,Dp.componentButtonDangerColorDisabled)}return""})),Hp=ql.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;}"," ",";",""],Dp.brandRadiusBase,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Tl(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px;padding:0 ",";"],Dp.spacing5)),(e=>{if("primary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,e.isPressed&&t,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,t,e.isFocusVisible&&Tl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFocusRing),Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonSecondaryBorderActive,Dp.componentButtonSecondaryFillActive,Dp.componentButtonSecondaryColorActive);return Tl(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Dp.componentButtonSecondaryBorder,Dp.componentButtonSecondaryFill,Dp.componentButtonSecondaryColor,e.isPressed&&t,Dp.componentButtonSecondaryBorderHover,Dp.componentButtonSecondaryFillHover,Dp.componentButtonSecondaryColorHover,Dp.elevation1,t,e.isFocusVisible&&Tl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonSecondaryFillFocus,Dp.componentButtonSecondaryColorFocus,Dp.componentButtonSecondaryBorderFocus,Dp.componentButtonSecondaryFocusRing),Dp.componentButtonSecondaryBorderDisabled,Dp.componentButtonSecondaryFillDisabled,Dp.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonCleanBorderActive,Dp.componentButtonCleanFillActive,Dp.componentButtonCleanColorActive);return Tl(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],Dp.componentButtonCleanFill,Dp.componentButtonCleanColor,e.isPressed&&t,Dp.componentButtonCleanFillHover,Dp.componentButtonCleanColorHover,t,e.isFocusVisible&&Tl(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonCleanColorFocus,Dp.componentButtonCleanBorderFocus,Dp.componentButtonCleanFocusRing),Dp.componentButtonCleanFillDisabled,Dp.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonDangerBorderActive,Dp.componentButtonDangerFillActive,Dp.componentButtonDangerColorActive);return Tl(["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;}"],Dp.componentButtonDangerFill,Dp.componentButtonDangerColor,Dp.elevation1,e.isPressed&&t,Dp.componentButtonDangerBorderHover,Dp.componentButtonDangerFillHover,Dp.componentButtonDangerColorHover,Dp.elevation2,t,e.isFocusVisible&&Tl(["background-color:",";color:",";box-shadow:none;&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonDangerFillFocus,Dp.componentButtonDangerColorFocus,Dp.componentButtonDangerBorderFocus,Dp.componentButtonDangerFocusRing),Dp.componentButtonDangerBorderDisabled,Dp.componentButtonDangerFillDisabled,Dp.componentButtonDangerColorDisabled)}return""})),Up=ql.div.withConfig({displayName:"Icon4",componentId:"sc-11co88f-7"})(["display:flex;align-items:center;height:100%;"]),Vp=ql(Up).withConfig({displayName:"LeftIcon1",componentId:"sc-11co88f-8"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.lastChild?`calc(${Dp.spacing2} * -1) `:Dp.spacing3),Dp.spacing2),$p=ql(Up).withConfig({displayName:"RightIcon2",componentId:"sc-11co88f-9"})(["margin-right:calc("," * -1);margin-left:",";"],Dp.spacing2,Dp.spacing3);function Wp(){return t.createElement(Yp,{viewBox:"0 0 24 24","aria-hidden":"true"},t.createElement(Kp,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const Gp=Gl(["100%{transform:rotate(360deg);}"]),qp=Gl(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),Yp=ql.svg.withConfig({displayName:"Svg",componentId:"sc-11co88f-10"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Gp),Kp=ql.circle.withConfig({displayName:"Circle",componentId:"sc-11co88f-11"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],qp),Xp=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(jp,{"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(Vp,{lastChild:!e},t.createElement(Wp,null)),e):t.createElement(t.Fragment,null,c&&t.createElement(Vp,{lastChild:!e},c),e,r&&t.createElement($p,null,r)))})),Zp=n("modern"),Jp=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}=Es();return t.createElement(Hp,{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(Vp,{"data-testid":"ds-button-loading-icon",lastChild:!e},t.createElement(Wp,null)),e):t.createElement(t.Fragment,null,o&&t.createElement(Vp,{lastChild:!e},o),e,i&&t.createElement($p,null,i)))})),Qp=d(((e,n)=>"legacy"===(i(Zp)||"modern")?t.createElement(Xp,{ref:n,...e}):t.createElement(Jp,{ref:n,...e}))),ef=Object.assign(Qp,{VersionProvider:Zp.Provider}),tf=n(null);function nf(){const e=i(tf);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const rf=ql.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\") ":Dp.gray25),(e=>"fixed"===e.height&&Tl(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),of=ql.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);"]),af=ql.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&&Tl(["position:absolute;inset:0;"]))),cf=ql.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);"]),lf=ql.div.withConfig({displayName:"BadgeContainer",componentId:"sc-11co88f-16"})(["position:absolute;right:",";bottom:",";"],Dp.spacing4,Dp.spacing4),sf=ql.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;}}"],Dp.spacing4,Dp.spacing4,Dp.white,Dp.gray100a),uf=ql.div.withConfig({displayName:"ProgressContainer",componentId:"sc-11co88f-18"})(["position:absolute;bottom:0;left:0;width:100%;"]),df={paragraphS:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize75,Dp.lineHeightText),paragraphM:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize100,Dp.lineHeightText),paragraphL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize200,Dp.lineHeightText),uiTextXS:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize50),uiTextS:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize75),uiTextM:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize100),uiTextL:Tl(["font-weight:normal;font-size:",";line-height:24px;"],Dp.fontSize200),headingXS:Tl(["font-weight:600;font-size:",";line-height:",";"],Dp.fontSize100,Dp.lineHeightHeading),headingS:Tl(["font-weight:600;font-size:",";line-height:",";"],Dp.fontSize200,Dp.lineHeightHeading),headingM:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize400,Dp.lineHeightHeading),headingL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize600,Dp.lineHeightHeading),headingXL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize800,Dp.lineHeightHeading),headingXXL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize1000,Dp.lineHeightHeading)};function pf({children:e,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...c}){return t.createElement(ff,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a,...c},e)}const ff=ql.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=>Dp[`spacing${e.gap}`]),(e=>e.justifyContent),(e=>e.alignItems));function mf(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 hf={"--white":"#ffffff","--white-rgb":mf("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":mf("#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":mf("#0099ff"),"--blue500a10":"rgb(var(--blue500-rgb) / 10%)","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":mf("#f23e0d"),"--red500a10":"rgb(var(--red500-rgb) / 10%)","--red500a50":"rgb(var(--red500-rgb) / 50%)","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":mf("#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":bf("brandPrimary700","#0087e0"),"--brandPrimary600":bf("brandPrimary600","#0095eb"),"--brandPrimary500":bf("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":bf("brandPrimary500-rgb",mf("#00aaff")),"--brandPrimary300":bf("brandPrimary300","#b3e6ff"),"--brandPrimary100":bf("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)"},gf={"--gray1000":"#ffffff","--gray1000-rgb":mf("#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)"},vf=Wl(["",""],Tl([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",yf(hf),"ds-dark-theme",yf(gf)));function yf(e){const t=Object.entries(e).map((e=>e.join(":")));return t.join(";")+";"}function bf(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}const wf={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}},xf=t.createContext({zIndexBase:1031});function Ef({children:e,noTheme:n,zIndexBase:r=1031,buttonVersion:i="modern",dateFnsLocale:a}){const c=o((()=>({zIndexBase:r,dateFnsLocale:a})),[a,r]);return t.createElement(xf.Provider,{value:c},t.createElement(ks.Provider,{value:wf},t.createElement(ef.VersionProvider,{value:i},!n&&t.createElement(vf,null),e)))}const Cf=["modal","datepicker","dropdown","tooltip"];function kf(e){return i(xf).zIndexBase+Cf.indexOf(e)}function Sf({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(ad.IDLE),v=c(!1),y=u((function(){clearTimeout(h.current),h.current=null,g.current=ad.IDLE}),[]);function b(e,t){if(g.current===ad.ENTERING&&h.current&&y(),f){if(t)return m(!1),h.current=null,void(g.current=ad.IDLE);g.current=ad.LEAVING,h.current=window.setTimeout((function(){m(!1),h.current=null,g.current=ad.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===ad.LEAVING&&h.current&&y(),f||(g.current=ad.ENTERING,h.current=window.setTimeout((function(){m(!0),h.current=null,g.current=ad.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}=Es(),f=kf("tooltip"),m=void 0===i.isOpen?l||d:i.isOpen,{triggerProps:h,layerProps:g,renderLayer:v}=gd({isOpen:m,auto:!0,snap:!0,placement:_f(e),possiblePlacements:If(e),triggerOffset:8,containerOffset:8}),y="icon"in i?t.createElement(pf,{alignItems:"center"},t.createElement(Tf,null,i.icon)," ",i.content):"label"in i&&i.isLabelVertical?t.createElement("div",null,t.createElement(zf,null,i.label),t.createElement("div",null,i.content)):"label"in i&&!i.isLabelVertical?t.createElement(t.Fragment,null,t.createElement(Nf,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(Bf,{...g,zIndex:f,className:o},y)))}function _f(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 If(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 Bf=ql.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;"],df.uiTextS,(e=>e.zIndex),Dp.spacing4,Dp.spacing4,Dp.radiusBase,Dp.gray900a,Dp.gray10),Tf=ql.span.withConfig({displayName:"IconContainer3",componentId:"sc-11co88f-21"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],Dp.spacing1,Dp.spacing2,Dp.spacing1,Dp.spacing2,Dp.gray400),Nf=ql.span.withConfig({displayName:"LabelContainer",componentId:"sc-11co88f-22"})(["margin-right:",";color:",";"],Dp.spacing2,Dp.gray400),zf=ql.div.withConfig({displayName:"VerticalLabelContainer",componentId:"sc-11co88f-23"})(["color:",";"],Dp.gray400);function Df({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=Pu(r,o,"inlineSize"),c=Pu(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(Pf,{ref:d},i?t.createElement(Sf,{content:e,position:n,timing:"delay"},(n=>t.createElement("span",{...n},e))):e)}const Pf=ql.span.withConfig({displayName:"StyledText",componentId:"sc-11co88f-24"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),Of=ql.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);"]),Af=ql.div.withConfig({displayName:"ThumbnailContainer3",componentId:"sc-11co88f-26"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],Dp.spacing4),Rf=ql.div.withConfig({displayName:"Title4",componentId:"sc-11co88f-27"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],df.uiTextM,Dp.gray800),Ff=ql.div.withConfig({displayName:"Detail",componentId:"sc-11co88f-28"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],df.uiTextS,Dp.spacing2,Dp.gray600),Lf=ql.div.withConfig({displayName:"IconContainer2",componentId:"sc-11co88f-29"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],Dp.spacing2,Dp.gray600),Mf=ql.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-11co88f-30"})([""," padding:",";border-top:1px solid ",";color:",";"],df.uiTextS,(e=>"all"===e.padding?"var(--card-content-padding)":"0"),Dp.gray100a,Dp.colorText),jf=d((({children:e,isDisabled:n=!1,isPressed:r=!1,tooltip:o,"aria-label":i,...a},c)=>{const{isFocusVisible:l,focusProps:s}=Es(),u=t.createElement(Hf,{disabled:n,type:"button",isFocusVisible:l,ref:c,isPressed:r,"aria-label":i,...s,...a},e);return o?t.createElement(Sf,{timing:"delay",content:o},u):u})),Hf=ql.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;",""],Dp.spacing3,Dp.brandRadiusBase,Dp.gray100a,Dp.fontSize75,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>{const t=Tl(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],Dp.gray10,Dp.gray800,Dp.gray100a);return Tl(["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;}"],Dp["white-rgb"],Dp.gray600a,e.isPressed&&t,Dp.gray10,Dp.gray800,Dp.elevation1,Dp.elevationStatic,t,Dp["white-rgb"],Dp.gray200a,Dp.gray100a)})),Uf=ql.div.withConfig({displayName:"ImagesStyled",componentId:"sc-11co88f-32"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;"],Dp.spacing1),Vf=ql.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 $f({children:e,...n}){return t.createElement(Wf,{...n},t.createElement(Gf,null,e))}const Wf=ql.div.withConfig({displayName:"Placeholder1",componentId:"sc-11co88f-34"})(["display:grid;place-items:center;min-height:100px;"]),Gf=ql.div.withConfig({displayName:"IconContainer1",componentId:"sc-11co88f-35"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],Dp.brandRadiusBase,Dp.gray10,Dp.gray600);function qf(e){return o((()=>e+"-"+vd()),[e])}const Yf=ql.div.withConfig({displayName:"Placeholder",componentId:"sc-11co88f-36"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";"],(e=>e.backgroundColor));function Kf({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=qf("card-title"),h=o((()=>({variant:n,isSelected:r,cardTitleId:m})),[r,n,m]);return t.createElement(tf.Provider,{value:h},t.createElement(Xf,{variant:n,isSelected:r,...f},t.createElement(Zf,{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(Qf,null,i):null,c?t.createElement(Jf,{type:"button",isSelected:r,onClick:c,"aria-label":d},t.createElement(ku,null)):null))}Kf.Frame=function({children:e,progressBar:n,badge:r,icon:o,isCheckeredBackground:i=!1,height:a="fixed",...c}){const{variant:l,isSelected:s}=nf();return t.createElement(rf,{isCheckeredBackground:i,height:a,...c},"clean"===l&&s&&t.createElement(of,null),t.createElement(af,{height:a},e),t.createElement(cf,null),n?t.createElement(uf,null,n):null,r?t.createElement(lf,null,t.createElement(Pp,{color:"black-alpha"},r)):null,o?t.createElement(sf,null,o):null)},Kf.Header=function({thumbnail:e,title:n,detail:r,icon:o,isNotTruncated:i=!1,...a}){const{cardTitleId:c}=nf();return t.createElement(Of,{...a},e?t.createElement(Af,null,e):null,t.createElement(Rf,{id:c},i?n:t.createElement(Df,null,n)),r?t.createElement(Ff,null,i?r:t.createElement(Df,null,r)):null,o?t.createElement(Lf,null,o):null)},Kf.AdditionalInfo=function({children:e,padding:n="all",...r}){return t.createElement(Mf,{padding:n,...r},e)},Kf.ContextActionButton=jf,Kf.Images=function({children:e,...n}){return t.createElement(Uf,{...n},e)},Kf.Img=function({src:e,contentResize:n="fill",alt:r="",...o}){return t.createElement(Vf,{src:e,alt:r,contentResize:n,...o})},Kf.FilePlaceholder=$f,Kf.PlaceholderIcon=$f,Kf.IconPlaceholder=function({children:e,backgroundColor:n=Dp.gray25,iconColor:r=Dp.gray400a,...o}){const i=t.useMemo((()=>({color:r,size:"48px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}})),[r]);return t.createElement(Yf,{...o,backgroundColor:n},t.createElement(ks.Provider,{value:i},e))};const Xf=ql.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);"],Dp.radiusBase,Dp.gray100a,Dp.brandPrimary500,Dp.elevation1,Dp.gray100a,(e=>"outlined"===e.variant?Tl(["--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:",";}",""],Dp.spacing4,Dp.spacing5,Dp.gray200a,Dp.elevation2,e.isSelected?Tl(["--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);}"]):""):Tl(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],Dp.spacing3)),Dp.gray10),Zf=ql.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;"]),Jf=ql.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:",";}",""],Dp.spacing4,Dp.spacing4,Dp.radiusCircle,(e=>e.isSelected?"1":"var(--card-actions-opacity)"),Dp.white,Dp.white,(e=>e.isSelected&&Tl(["border:none;background:var(--userComponentCardSelectedColor,",");color:",";&:hover{background:var(--userComponentCardSelectedColorHover,",");box-shadow:",";}&:active{background:var(--userComponentCardSelectedColorActive,",");box-shadow:none;}"],Dp.brandPrimary500,Dp.white,Dp.brandPrimary600,Dp.elevation1,Dp.brandPrimary700))),Qf=ql.div.withConfig({displayName:"ActionContainer",componentId:"sc-11co88f-40"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],Dp.spacing4,Dp.spacing4);function em(){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 tm({isChecked:e=!1,isDisabled:n=!1,isIndeterminate:r=!1,inputProps:o,children:i,onChange:a=(()=>{}),id:c,...l}){const{isFocusVisible:s,focusProps:u}=Es();return t.createElement(nm,{isIndeterminate:r,isDisabled:n,isChecked:e,className:"ds-checkbox__pointer-events-wrapper",...l},t.createElement(im,{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(rm,null,t.createElement(om,{isFocusVisible:s,isIndeterminate:r,isDisabled:n,isChecked:e},e&&t.createElement(em,null),r&&t.createElement(am,null))),i&&t.createElement(cm,{isDisabled:n},i))}tm.pointerEventsClassname="ds-checkbox__pointer-events-wrapper";const nm=ql.label.withConfig({displayName:"Container6",componentId:"sc-11co88f-41"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],df.uiTextM,Dp.spacing1,(e=>!e.isDisabled&&"pointer")),rm=ql.div.withConfig({displayName:"IndicatorPosition1",componentId:"sc-11co88f-42"})(["display:flex;flex:none;align-items:center;&::before{content:'​';}"]),om=ql.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:",";}"],Dp.componentCheckboxBorderUnchecked,Dp.radiusMedium,Dp.focusRingWidth,Dp.radiusMedium,(e=>e.isFocusVisible&&Tl(["border-color:",";&::before{border-color:",";}"],Dp.componentCheckboxBorderUncheckedFocus,e.isChecked||e.isIndeterminate?Dp.focusRingColorPrimary:Dp.focusRingColorSecondary)),(e=>e.isChecked&&Tl(["border-color:transparent;background-color:",";fill:#fff;"],Dp.blue500)),(e=>e.isIndeterminate&&Tl(["border-color:transparent;background-color:",";"],Dp.blue500)),(e=>e.isDisabled&&Tl(["border-color:transparent;background-color:",";fill:",";"],Dp.componentCheckboxFillDisabled,Dp.componentCheckboxCheckmarkColorDisabled)),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",(e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${Dp.componentCheckboxBorderUncheckedHover};`),(e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:Dp.blue600)),im=ql.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%);"]),am=ql.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-11co88f-45"})(["width:8px;height:2px;border-radius:",";background-color:",";"],Dp.radiusPill,Dp.white),cm=ql.div.withConfig({displayName:"Label4",componentId:"sc-11co88f-46"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.colorText)),lm=n(void 0);function sm(e){if(!i(lm))throw new Error(`<Form.${e}> cannot be rendered outside the <Form.Group> component`)}const um=ql.div.withConfig({displayName:"GroupStyled",componentId:"sc-11co88f-47"})(["margin:0;padding:"," 0;border:0;"],Dp.spacing3),dm=ql.div.withConfig({displayName:"HelperTextStyled",componentId:"sc-11co88f-48"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],df.uiTextS,Dp.spacing2,(e=>e.hasIcon?"2px":"0"),(e=>e.isInvalid?Dp.red500:Dp.gray600)),pm=ql.div.withConfig({displayName:"Icon3",componentId:"sc-11co88f-49"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],Dp.spacing2),fm=ql.label.withConfig({displayName:"LabelStyled",componentId:"sc-11co88f-50"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],df.uiTextM,Dp.spacing3,Dp.colorText),mm=ql.span.withConfig({displayName:"SecondaryText",componentId:"sc-11co88f-51"})(["color:",";"],Dp.gray600),hm=ql.span.withConfig({displayName:"Space",componentId:"sc-11co88f-52"})(["display:inline-block;width:",";"],Dp.spacing3),gm=ql.div.withConfig({displayName:"RowStyled",componentId:"sc-11co88f-53"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],Dp.spacing4),vm=ql.div.withConfig({displayName:"InputRowStyled",componentId:"sc-11co88f-54"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],Dp.spacing4);function ym({children:e,onSubmit:n,...r}){return t.createElement("form",{onSubmit:n,...r},e)}ym.Group=function({children:e,...n}){return t.createElement(lm.Provider,{value:"group"},t.createElement(um,{...n},e))},ym.HelperText=function({icon:e,isInvalid:n,children:r,...o}){return sm("HelperText"),t.createElement(dm,{isInvalid:n,hasIcon:Boolean(e),...o},e&&t.createElement(pm,null,e),r)},ym.Label=function({children:e,secondaryText:n,htmlFor:r,id:o,...i}){return sm("Label"),t.createElement(fm,{htmlFor:r,id:o,...i},e,n?t.createElement(mm,null,t.createElement(hm,null," "),n):null)},ym.Row=function({children:e,...n}){return t.createElement(gm,{...n},e)},ym.InputRow=function({children:e,...n}){return sm("InputRow"),t.createElement(vm,{...n},e)},ym.IconError=function(e){return Is({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)},ql.ul.withConfig({displayName:"List1",componentId:"sc-11co88f-55"})(["margin:0;padding:0;list-style:none;"]),ql.li.withConfig({displayName:"Item5",componentId:"sc-11co88f-56"})(["&:not(:last-child){margin-bottom:",";}"],Dp.spacing2);const bm=ql.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:",";}"],Dp.spacing3,Dp.spacing3,Dp.radiusCircle,(e=>e.isDisabled?Dp.gray400:Dp.gray600),Dp.gray50a,Dp.gray800,Dp.gray100a);ql.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;",";",";",";",";",";"],Dp.radiusPill,Dp.gray50,Dp.gray800,Dp.brandFontStackBase,(e=>e.onClick&&Tl(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],Dp.gray75,bm,Dp.gray800,Dp.gray100)),(e=>e.isFocusVisible&&Tl(["background:",";box-shadow:inset ",";outline:0;"],Dp.gray25,Dp.elevationStatic)),(e=>"m"===e.size&&Em),(e=>"s"===e.size&&xm),(e=>e.isDisabled&&Cm));const wm=ql.div.withConfig({displayName:"ThumbnailContainer2",componentId:"sc-11co88f-59"})(["display:block;"]),xm=Tl([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],df.uiTextS,wm,Dp.spacing3,Dp.spacing3),Em=Tl([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],df.uiTextM,wm,Dp.spacing3,Dp.spacing4),Cm=Tl(["background-color:",";color:",";pointer-events:none;"],Dp.gray25,Dp.gray400);function km(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}ql.div.withConfig({displayName:"IconContainer",componentId:"sc-11co88f-60"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],Dp.spacing2,Dp.spacing3),ql.div.withConfig({displayName:"StyledHeaderCaption",componentId:"sc-11co88f-61"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:",";margin-left:",";",""],Dp.spacing4,Dp.spacing4,df.uiTextM),ql.div.withConfig({displayName:"StyledContainer",componentId:"sc-11co88f-62"})(["z-index:",";padding:",";border-radius:",";background-color:",";box-shadow:",",",";"],(e=>e.zIndex),Dp.spacing4,Dp.radiusMedium,Dp.white,Dp.elevationStatic,Dp.elevation2),ql.div.withConfig({componentId:"sc-11co88f-63"})(["padding-top:",";"],Dp.spacing4),Wl(["",""],Tl([".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;}"],Dp.white,Dp.gray800,df.uiTextS,Dp.spacing1,Dp.spacing1,df.uiTextS,Dp.radiusMedium,Dp.white,Dp.gray600,df.uiTextS,Dp.gray200,Dp.gray50,Dp.gray800,Dp.gray200a,Dp.white,Dp.gray50,Dp.gray800,Dp.gray25,Dp.gray800,Dp.blue500,Dp.white,Dp.blue200,Dp.blue500,Dp.white,Dp.blue500,Dp.white,Dp.blue600,Dp.white,Dp.gray200));const Sm=ql.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?Tl(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],Dp.spacing4,Dp.spacing2):Tl(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],Dp.spacing5,Dp.spacing3)),(e=>e.isInvalid?Dp.red500:Dp.gray100),Dp.radiusMedium,Dp.gray10,(e=>e.isInvalid?Dp.red600:Dp.gray200),Dp.elevation1,(e=>e.isInvalid?Dp.red500:Dp.gray300),Dp.gray100,(e=>e.isDisabled&&Tl(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],Dp.gray100,Dp.gray25,Dp.gray600,Dp.gray100)),(e=>"clean"===e.variant&&Tl(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],Dp.gray25a,Dp.gray50a))),_m=ql.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:",";}}}"],Dp.colorText,Dp.brandFontStackBase,df.uiTextM,Dp.gray400,Dp.gray600,Dp.gray400),Im=ql.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);"]),Bm=ql.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-11co88f-67"})(["flex:none;margin-left:calc("," * -1);color:",";"],Dp.spacing2,Dp.gray600),Tm=ql.div.withConfig({displayName:"PrefixContainer",componentId:"sc-11co88f-68"})(["color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.gray600)),Nm=ql.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);"],Dp.spacing2),zm=ql.div.withConfig({displayName:"SuffixContainer",componentId:"sc-11co88f-70"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.isDisabled?Dp.gray400:Dp.gray600),Dp.spacing2),Dm=ql.div.withConfig({displayName:"IconRightContainer",componentId:"sc-11co88f-71"})(["display:grid;flex:none;align-items:center;color:",";"],Dp.gray600),Pm=ql.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:",";}"],Dp.gray200a,Dp.gray300a,Dp.gray400a);function Om({icon:e,onClick:n,isTooltipShown:r=!1,label:o,isDisabled:i=!1,...a}){const{isFocusVisible:c,focusProps:l}=Es();return r?t.createElement(Sf,{content:o,isOpen:!!c||void 0},(r=>t.createElement(Am,{...a,...r,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e))):t.createElement(Am,{...a,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e)}const Am=ql.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;}",""],Dp.gray600,Dp.gray800,Dp.gray200,(e=>e.isFocusVisible&&Tl(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],Dp.gray800,Dp.gray200))),Rm=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),z=c(null),D=C||z,P=e&&y.length>0&&"number"!==v&&"password"!==v,O="password"===v?T?"text":"password":v;function A(){var e;null==D||null===(e=D.current)||void 0===e||e.focus()}const R=Boolean(n||S),F="password"===v,L=Boolean(!F&&(P||o)),M=Boolean(L||F||_);return t.createElement(Sm,{...I,isDisabled:l,isInvalid:u,isSmall:d,onClick:A,ref:B,variant:b},R&&t.createElement(Im,null,n&&t.createElement(Bm,null,n),S&&t.createElement(Tm,{isDisabled:l},S)),t.createElement(_m,{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:D,spellCheck:!1,type:O,value:y,"aria-label":w,"aria-labelledby":x,"aria-describedby":E,id:i,name:a,maxLength:k}),M&&t.createElement(Nm,null,_&&t.createElement(zm,{isDisabled:l},_),F&&t.createElement(Om,{"data-testid":"ds-input-password-visibility-button",onClick:()=>(N((e=>!e)),void A()),label:T?"Hide password":"Show password",icon:T?t.createElement($s,null):t.createElement(Vs,null),isTooltipShown:!0}),P&&t.createElement(Pm,{"data-testid":"ds-input-clear-button",onClick:function(){null==f||f(""),A()},type:"button"},t.createElement(Cu,null)),o&&t.createElement(Dm,null,o)))}));function Fm({direction:e="horizontal",...n}){return"horizontal"===e?t.createElement(Lm,{...n}):t.createElement(Mm,{role:"separator",...n})}const Lm=ql.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;"],Dp.spacing3,Dp.componentDividerColor),Mm=ql.div.withConfig({displayName:"VerticalDivider",componentId:"sc-11co88f-75"})(["box-sizing:content-box;width:1px;margin:0;padding:0 ",";background:",";background-clip:content-box;"],Dp.spacing2,Dp.componentDividerColor),jm=ql.div.withConfig({displayName:"ArrowStyled",componentId:"sc-11co88f-76"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],Dp.spacing2,Dp.spacing2),Hm=n(null);function Um(){const e=i(Hm);if(!e)throw new Error("Dropdown compound components cannot be rendered outside the Dropdown component");return e}function Vm(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const $m=n(void 0),Wm=d((({children:e,minWidth:n,...r},o)=>{const l=kf("dropdown"),s=c(null),{dispatch:u}=Um(),d=i($m);return a((()=>()=>{u({type:"purge-menu-items",payload:d})}),[e,u,d]),t.createElement(Gm,{minWidth:n,role:"menu",ref:Vm(o,s),zIndex:l,...r},e)})),Gm=ql.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"),Dp.spacing3,Dp.spacing3,Dp.radiusBase,Dp.gray10,Dp.colorText,Dp.elevationStatic,Dp.elevation2);function qm({children:e,isChecked:n,isDisabled:r,inputProps:o,onChange:i=(()=>{}),...a}){const{isFocusVisible:c,focusProps:l}=Es();return t.createElement(Ym,{isDisabled:r,className:"ds-switch__pointer-events-wrapper",...a},e&&t.createElement(Km,null,e),t.createElement(Xm,null,t.createElement(Zm,null,t.createElement("input",{role:"switch",type:"checkbox",disabled:r,onChange:i,checked:n,"aria-checked":n,...l,...o}),t.createElement(Jm,{"aria-hidden":"true",isDisabled:r,isFocusVisible:c}))))}qm.pointerEventsClassname="ds-switch__pointer-events-wrapper";const Ym=ql.label.withConfig({displayName:"SwitchStyled",componentId:"sc-11co88f-78"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],df.uiTextM,Dp.spacing1,Dp.gray800,(e=>!e.isDisabled&&"pointer")),Km=ql.span.withConfig({displayName:"Label2",componentId:"sc-11co88f-79"})(["align-self:center;margin-right:",";"],Dp.spacing4),Xm=ql.span.withConfig({displayName:"ToggleAlignment",componentId:"sc-11co88f-80"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]),Zm=ql.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;}"]),Jm=ql.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:",";}",""],Dp.radiusPill,(e=>e.isDisabled?Dp.gray100:Dp.gray75),(e=>!e.isDisabled&&"pointer"),(e=>e.isDisabled?Dp.gray50:Dp.gray10),Dp.elevation2,Zm,(e=>e.isDisabled?Dp.gray400:Dp.blue500),(e=>e.isDisabled?"0.5":"1"),(e=>e.isDisabled?Dp.gray100:Dp.gray10),(e=>!e.isDisabled&&Tl(["",":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",Dp.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",(e=>e.isDisabled?Dp.gray400:Dp.blue600),(e=>e.isFocusVisible&&Tl([""," 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:",";}"],Zm,Dp.gray100,Dp.gray200,Zm,Dp.blue500))),Qm=ql.div.withConfig({displayName:"ItemWrapper1",componentId:"sc-11co88f-83"})(["position:relative;"]),eh=ql.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;}"],df.uiTextS,Dp.spacing5,(e=>e.isChecked?Dp.gray800:Dp.gray600),Dp.brandFontStackBase,(e=>e.isSubmenuOpen&&Tl(["background:",";color:",";"],Dp.gray25,Dp.gray800)),(e=>e.isHighlighted&&Tl(["background:",";color:",";"],Dp.gray50,Dp.gray800)),Dp.gray25,Dp.gray800,Dp.gray50,Dp.gray800,Dp.gray400),th=ql.span.withConfig({displayName:"CheckboxContainer1",componentId:"sc-11co88f-85"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],Dp.spacing3),nh=ql.span.withConfig({displayName:"Icon2",componentId:"sc-11co88f-86"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],Dp.spacing3),rh=ql.span.withConfig({displayName:"Label1",componentId:"sc-11co88f-87"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),oh=ql.span.withConfig({displayName:"RightContainer",componentId:"sc-11co88f-88"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],Dp.spacing3,Dp.spacing2),ih=ql.span.withConfig({displayName:"SubmenuIconContainer",componentId:"sc-11co88f-89"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],Dp.spacing3,Dp.spacing3,(e=>e.isActive?Dp.gray400:Dp.gray200),eh,eh,Dp.gray400),ah=ql(Wm).withConfig({displayName:"SubMenuContainer",componentId:"sc-11co88f-90"})(["margin-top:calc("," * -1);"],Dp.spacing3),ch=ql.div.withConfig({displayName:"SectionTitleStyled",componentId:"sc-11co88f-91"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextS,Dp.spacing4,Dp.spacing5,Dp.spacing3,Dp.gray800);function lh(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 sh={isOpen:!1,isOpenedWithKeyboard:!1,items:[],highlightedItemId:"",hasSearch:!1,keepHighlight:!1};function uh(e,t){if("open"===t.type)return{...e,isOpen:!0};if("close"===t.type)return{...sh};if("toggle"===t.type)return{...sh,isOpen:!e.isOpen};if("toggle-from-keyboard"===t.type)return{...sh,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 dh=ql.span.withConfig({displayName:"Text2",componentId:"sc-11co88f-92"})(["width:100%;min-width:0;text-align:left;"]),ph=ql.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%);"],Dp.spacing3,Dp.spacing4),fh=ql.div.withConfig({displayName:"Inner",componentId:"sc-11co88f-94"})(["position:absolute;top:",";right:",";left:",";"],Dp.spacing4,Dp.spacing4,Dp.spacing4),mh=ql.div.withConfig({displayName:"TextStyled",componentId:"sc-11co88f-95"})([""," padding:"," ",";color:",";"],(e=>"item"===e.fontSize?df.uiTextS:df.uiTextM),Dp.spacing3,Dp.spacing5,Dp.gray400);const hh=ql.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)")),gh=ql.div.withConfig({displayName:"Header1",componentId:"sc-11co88f-97"})(["display:flex;justify-content:space-between;align-items:center;padding:"," 0 ",";"],Dp.spacing3,Dp.spacing2),vh="ds-thumbnail__pointer-events-wrapper",yh=ql.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);",""],Dp.gray200a,Dp.gray10,(e=>e.isConcealed&&Tl(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+vh,"."+vh))),bh=t.createContext({indicator:"none",setIndicator:()=>null}),wh={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]}}}},xh=ql.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);"]),Eh={draft:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 14 14","aria-hidden":"true",fill:Dp.gray400},t.createElement(kh,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"}))},negative:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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"}))}},Ch=Gl(["0%{transform:rotate(0deg);stroke-dashoffset:6.6;}50%{transform:rotate(720deg);stroke-dashoffset:31.4;}100%{transform:rotate(1080deg);stroke-dashoffset:6.6;}"]),kh=ql.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||Dp.gray400),Ch),Sh={online:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:"transparent"},t.createElement("circle",{cx:"12",cy:"12",r:"9",stroke:Dp.gray400,strokeWidth:"4"}))}};function _h({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?Dp[l]||l:f?Dp.gray50a:l||c?"transparent":Dp.white;const h=f?Dp[s]||s||Dp.gray600:void 0,[g,v]=r("none"),y=o((()=>({indicator:g,setIndicator:v})),[g]);return t.createElement(bh.Provider,{value:y},t.createElement(Ih,{size:e,shape:n,hasCheckers:p,indicator:g,variant:i,className:vh,...d},t.createElement(Th,{iconColor:h,backgroundColor:m,imageUrl:c,size:e,"data-testid":"thumbnail-fill",variant:i},a,p&&!l&&!c&&t.createElement(zh,{"data-testid":"thumbnail-no-image-line"})),p&&t.createElement(Nh,{"data-testid":"thumbnail-inner-shadow"}),u))}_h.Overlay=function({children:e,isConcealed:n=!1,isLoading:r=!1,...o}){return t.createElement(yh,{isConcealed:n,...o},r?t.createElement(Wp,null):e)},_h.pointerEventsClassname=vh,_h.Indicator=function({type:e}){const{setIndicator:n}=i(bh),r=Eh[e];return a((()=>(n("state"),()=>n("none"))),[n]),t.createElement(r,null)},_h.Status=function({type:e}){const{setIndicator:n}=i(bh),r=Sh[e];return a((()=>(n("status"),()=>n("none"))),[n]),t.createElement(r,null)};const Ih=ql.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=>Tl(["--ds-thumbnail-border-radius:",";"],(function(){return"circle"===e.shape?Dp.radiusCircle:"preview"===e.variant?"0px":Dp.radiusBase}))),(e=>e.hasCheckers&&Tl(["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 Tl(["width:",";height:",";"],t,t)}),(e=>{if("none"===e.indicator)return;const{radius:t,offset:n}=wh[e.shape][e.indicator][e.size];return Tl(["--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)})),Bh={xs:Dp.fontSize100,s:Dp.fontSize200,m:Dp.fontSize500,l:Dp.fontSize500},Th=ql.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=>Bh[e.size])),Nh=ql.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);"],Dp.gray100a),zh=ql.div.withConfig({displayName:"NoImage",componentId:"sc-11co88f-104"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],Dp.red500),Dh=n({isDragging:!1,dragIndicator:null}),Ph=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=qf("list-item-label"),{isFocusVisible:m,focusProps:h}=Es(),g=i(Dh),v=t.useRef(null),y=[tm.pointerEventsClassname,qm.pointerEventsClassname,_h.pointerEventsClassname].join(" "),b="function"==typeof a,w=b&&!c;return t.createElement(Oh,{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(Ah,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(tm,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})),r&&t.createElement(Rh,{isDisabled:c},r),t.createElement(Fh,{id:f},t.createElement(Df,null,e),n?t.createElement(Lh,{isDisabled:c},t.createElement(Df,null,n)):null),(o||(null==g?void 0:g.dragIndicator))&&t.createElement(Mh,{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(pf,{alignItems:"center",gap:"3"},o,null==g?void 0:g.dragIndicator)),"switch"===s&&t.createElement(Mh,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(qm,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})))})),Oh=ql.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;}"," "," ",""],Dp.gray200,Dp.spacing4,Dp.spacing4,Dp.spacing3,Dp.spacing4,Dp.radiusLarge,(e=>e.isActive&&Tl(["--list-item-right-elements-color:",";outline:none;cursor:pointer;&:hover{--list-item-right-elements-color:",";background:",";}"," &:active{background:",";box-shadow:none;}",""],Dp.gray200,Dp.gray600,Dp.gray25,e.isFocusVisible&&Tl(["--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 "," );}"],Dp.gray600,Dp.gray25,Dp.gray50,Dp.gray10),Dp.gray50,e.isDisabled&&Tl(["--list-item-right-elements-color:",";color:",";pointer-events:none;"],Dp.gray200,Dp.gray200))),(e=>e.isSelected&&Tl(["--list-item-right-elements-color:",";&,&:hover{background:",";}"],Dp.gray600,Dp.gray50)),(e=>e.isDragging&&Tl(["--list-item-right-elements-color:",";background:",";box-shadow:",";cursor:grabbing;"],Dp.gray600,Dp.gray25,Dp.elevation4))),Ah=ql.div.withConfig({displayName:"CheckboxContainer",componentId:"sc-11co88f-106"})(["flex:none;margin-right:",";"],Dp.spacing4),Rh=ql.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-11co88f-107"})(["flex:none;margin-right:",";",""],Dp.spacing4,(e=>e.isDisabled&&"opacity: 50%;")),Fh=ql.div.withConfig({displayName:"Content2",componentId:"sc-11co88f-108"})([""," flex:1;min-width:0;"],df.uiTextM),Lh=ql.div.withConfig({displayName:"Subtext1",componentId:"sc-11co88f-109"})([""," color:",";"],df.uiTextS,(e=>e.isDisabled?Dp.gray200:Dp.gray600)),Mh=ql.div.withConfig({displayName:"RightElements",componentId:"sc-11co88f-110"})(["flex:none;margin-left:",";color:var(--list-item-right-elements-color);"],Dp.spacing4);function jh({children:e,isContained:n=!1,...r}){return t.createElement(Hh,{isContained:n,...r},e)}jh.Group=function({title:e,action:n,children:r,...o}){const i=qf("list-group-header");return t.createElement("div",{...o},t.createElement(gh,null,t.createElement("span",{id:i},e),n),t.createElement("div",{"aria-describedby":i},r))},jh.Item=Ph,jh.Divider=Fm,jh.ConcealedAction=function(e){return t.createElement(hh,{...e})};const Hh=ql.div.withConfig({displayName:"ListStyled",componentId:"sc-11co88f-111"})(["padding:",";"],(e=>e.isContained?`0 ${Dp.spacing5}`:`${Dp.spacing3} 0`)),Uh=ql.div.withConfig({displayName:"ItemWrapper",componentId:"sc-11co88f-112"})(["--ds-list-item-border-radius-override:0;--ds-list-item-focus-ring-override:none;padding:0 ",";"],Dp.spacing4);function Vh(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function $h(e){if(!e||!Vh(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function Wh({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(uh,sh),y=c(!0),b=c(),w=qf("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]),km("Tab",(()=>{g.isOpen&&C()})),km("Escape",(()=>{g.isOpen&&C()})),km("Enter",(e=>{var t;g.isOpen&&g.highlightedItemId&&(null===(t=document.querySelector("#"+g.highlightedItemId))||void 0===t||t.click(),e.preventDefault())})),km("ArrowDown",(e=>{g.isOpen&&(v({type:"highlight-next"}),e.preventDefault())})),km("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}=gd({isOpen:g.isOpen,onOutsideClick:Vh(b.current)?void 0:()=>v({type:"close"}),onDisappear:e=>{"full"===e&&v({type:"close"})},triggerOffset:4,containerOffset:16,auto:!0,container:$h(b.current),...lh(r)}),T="bottom"===r?{width:null==B?void 0:B.width,minWidth:"initial",maxWidth:"initial"}:{};return t.createElement(Hm.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:Wu(_,b)},{open:()=>{v({type:"open"})},close:()=>{v({type:"close"})}}),g.isOpen&&S(t.createElement(Wm,{id:w,...I,ref:Wu(I.ref,s),style:{...I.style,...T},minWidth:m},e))))}function Gh({attr:e,title:n,size:r,children:o,color:a,style:c,...l}){const s=i(ks),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 qh({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=qf("input"),B=i||I,T=qf("helper-text");return t.createElement(ym.Group,{..._},t.createElement(ym.Label,{secondaryText:n,htmlFor:B},e),t.createElement(Rm,{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(ym.HelperText,{icon:o,isInvalid:c,id:T},r):null)}Wh.Divider=Fm,Wh.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=qf("dropdown-item"),x=qf("dropdown-item-label"),E=qf("dropdown-submenu"),C=Boolean(f),{dispatch:k,...S}=Um(),_=S.highlightedItemId===w,I=i($m),{isFocusVisible:B,focusProps:T}=Es(),{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(ys,[]);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=>{ms&&"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||ms||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)}}),z=g&&C,{triggerProps:D,layerProps:P,renderLayer:O}=gd({isOpen:z,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,_]),km("ArrowLeft",(e=>{C&&y&&(k({type:"highlight-item",payload:w}),v(!1),b(!1),e.preventDefault())})),km("ArrowRight",(e=>{_&&C&&(v(!0),b(!0),e.preventDefault())}));const A=function(e){return"checkbox"===e?tm.pointerEventsClassname:"switch"===e?qm.pointerEventsClassname:""}(s),R=function(e,t,n){return e||("checkbox"===t||"switch"===t?"menuitemcheckbox":"checkmark"===t&&n?"menuitemradio":"menuitem")}(m,s,u),F="menuitemcheckbox"===R||"menuitemradio"===R?u:void 0,L=C?{"aria-haspopup":!0,"aria-expanded":g,"aria-controls":E}:{};function M(e){null==p||p(e),C||("menuitemcheckbox"!==R?S.close():k({type:"keep-highlight"}))}return t.createElement($m.Provider,{value:w},t.createElement(Qm,{...N,...D,onClick:e=>e.stopPropagation()},t.createElement(eh,{disabled:n,"aria-disabled":n,isChecked:u,"aria-checked":F,"aria-selected":S.hasSearch||S.isKeepingFocusOnTrigger?_:void 0,role:R,onClick:M,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,...L,...T,...h},"checkbox"===s&&t.createElement(th,{onClick:e=>e.stopPropagation()},t.createElement(tm,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:M})),l&&t.createElement(nh,null,l),t.createElement(rh,{id:x},e),"checkmark"===s&&u&&t.createElement(oh,null,t.createElement(ku,null)),d&&t.createElement(oh,null,d),"switch"===s&&t.createElement(oh,{onClick:e=>e.stopPropagation()},t.createElement(qm,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:M})),C&&t.createElement(ih,{isActive:g||B||_},t.createElement(_u,null))),z&&O(t.createElement(ah,{id:E,...P},f))))},Wh.ListItem=function({children:e,isDisabled:n,isChecked:r=!1,onClick:o,role:i="menuitem",rightElements:c,...l}){const s=qf("dropdown-item"),{dispatch:u,...d}=Um(),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(ku,{color:Dp.gray800}):null;return t.createElement(Uh,{onClick:e=>e.stopPropagation()},t.createElement(jh.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))},Wh.SectionTitle=function({children:e,...n}){return t.createElement(ch,{...n},e)},Wh.Arrow=function(e){return t.createElement(jm,{...e},t.createElement(Eu,null))},Wh.SelectButtonText=function({children:e,...n}){return t.createElement(dh,{...n},t.createElement(Df,null,e))},Wh.SearchInput=function({onChange:e,...n}){const r=c(null),{dispatch:o}=Um(),{menuId:i}=Um();return a((()=>{var e;null===(e=r.current)||void 0===e||e.focus()}),[]),a((()=>{o({type:"set-search-presence"})}),[o]),t.createElement(ph,null,t.createElement(fh,null,t.createElement(Rm,{inputRef:r,hasClearButton:!0,icon:t.createElement(js,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})))},Wh.Text=function({fontSize:e="item",children:n,...r}){return t.createElement(mh,{fontSize:e,...r},n)},ql.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;"]),ql.p.withConfig({displayName:"Image1",componentId:"sc-11co88f-114"})(["display:grid;place-items:center;width:128px;height:128px;margin:0 0 ",";border-radius:",";background:",";color:",";"],Dp.spacing5,Dp.radiusCircle,Dp.gray25,Dp.gray400),ql.h2.withConfig({displayName:"Title3",componentId:"sc-11co88f-115"})([""," margin:0 0 ",";color:",";"],df.headingM,Dp.spacing4,Dp.gray800),ql.p.withConfig({displayName:"Description1",componentId:"sc-11co88f-116"})([""," margin:0;color:",";"],df.paragraphM,Dp.gray600),ql.p.withConfig({displayName:"Actions",componentId:"sc-11co88f-117"})(["display:flex;gap:",";justify-content:center;margin:"," 0 0;"],Dp.spacing4,Dp.spacing6),ql.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?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.blue500a10,Dp.blue500,Dp.blue600,Dp.blue700):"warning"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.yellow500a10,Dp.yellow500,Dp.yellow600,Dp.yellow700):"error"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.red500a10,Dp.red500,Dp.red600,Dp.red700):Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.gray50,Dp.gray500,Dp.blue600,Dp.blue700)),Dp.spacing4,Dp.spacing4,Dp.radiusMedium),ql.div.withConfig({displayName:"IconHolder1",componentId:"sc-11co88f-119"})(["display:flex;width:24px;height:24px;margin-right:",";color:var(--icon-color);"],Dp.spacing3),ql.div.withConfig({displayName:"TitleHolder",componentId:"sc-11co88f-120"})([""," margin-bottom:",";color:",";"],df.uiTextM,Dp.spacing2,Dp.gray1000),ql.div.withConfig({displayName:"DescriptionHolder",componentId:"sc-11co88f-121"})([""," color:",";line-height:",";"],df.uiTextS,Dp.gray800,Dp.layoutSpacing2),ql.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;}"],df.uiTextS,Dp.spacing2,Dp.blue500),ql.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:",";"],df.uiTextS,Dp.spacing1,Dp.spacing3,Dp.radiusMedium,Dp.gray75,Dp.gray800,Dp.gray200a,Dp.fontStackBase),ql.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%);"]),ql.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;}"],Dp.spacing1,Dp.spacing2,Dp.spacing2),ql.div.withConfig({displayName:"StyledItemWrapper",componentId:"sc-11co88f-126"})(["position:relative;user-select:none;"," ",""],(e=>"after"===e.insertPosition&&Tl(["&::after{content:'';position:absolute;bottom:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",Dp.blue300)),(e=>"before"===e.insertPosition&&Tl(["&::before{content:'';position:absolute;top:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",Dp.blue300))),ql.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:",";"],Dp.spacing4,Dp.spacing4,Dp.spacing4,Dp.spacing4,Dp.radiusLarge,Dp.gray50),ql.div.withConfig({displayName:"StyledDragIndicator",componentId:"sc-11co88f-128"})(["cursor:",";"],(e=>e.isDragging?"grabbing":"grab"));const Yh=Wl((e=>Tl(["@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",Dp.gray200a,"b-modal__container",Dp.spacing6,"b-modal__modal",Rp,Dp.radiusLarge,Dp.gray10,Dp.elevation8,"b-modal__modal--medium","b-modal__modal--full-screen"))),Kh=ql.div.withConfig({displayName:"HeaderStyled",componentId:"sc-11co88f-129"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],Dp.spacing4,Dp.spacing6,(e=>!e.hideCloseIcon&&Tl(["padding-right:calc( "," + 50px + "," );"],Dp.spacing4,Dp.spacing6))),Xh=ql.div.withConfig({displayName:"BackButton",componentId:"sc-11co88f-130"})(["margin-right:",";margin-left:calc("," * -1);"],Dp.spacing4,Dp.spacing4),Zh=ql.div.withConfig({displayName:"ModalThumbnail",componentId:"sc-11co88f-131"})(["margin-right:",";"],Dp.spacing4),Jh=ql.div.withConfig({displayName:"Headings",componentId:"sc-11co88f-132"})(["flex:1;min-width:0;"]),Qh=ql.h2.withConfig({displayName:"Title2",componentId:"sc-11co88f-133"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextL,Dp.colorText),eg=ql.h3.withConfig({displayName:"SecondaryInformation",componentId:"sc-11co88f-134"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextS,Dp.gray500),tg=ql.div.withConfig({displayName:"ContentStyled",componentId:"sc-11co88f-135"})(["flex:1 1 auto;min-height:0;",""],(e=>e.scrollable&&Tl(["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);}"],Dp.colorShadow,Dp.colorShadow))),ng=ql.div.withConfig({displayName:"ContentInner",componentId:"sc-11co88f-136"})([""," box-sizing:border-box;padding:"," ",";color:",";font-family:",";",""],df.paragraphM,Dp.spacing5,Dp.spacing6,Dp.colorText,Dp.brandFontStackBase,(e=>e.scrollable&&Tl(["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) );}"],Dp.spacing5,Dp.spacing5,Dp.spacing6,Dp.gray10,Dp.gray10,Dp.spacing6,Dp.spacing5,Dp.gray10,Dp.gray10))),rg=ql.div.withConfig({displayName:"ContentExpander",componentId:"sc-11co88f-137"})(["min-height:100%;"]),og=ql.div.withConfig({displayName:"FooterStyled",componentId:"sc-11co88f-138"})(["display:flex;flex:none;padding:",";"],Dp.spacing6),ig=ql.div.withConfig({displayName:"ActionsRight",componentId:"sc-11co88f-139"})(["margin-left:auto;"]),ag=ql.div.withConfig({displayName:"CloseButton",componentId:"sc-11co88f-140"})(["position:absolute;top:",";right:",";"],Dp.spacing5,Dp.spacing4),cg=t.createContext({size:"small",hideCloseIcon:!1}),lg={small:"",medium:"b-modal__modal--medium",fullscreen:"b-modal__modal--full-screen"};function sg({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 ${lg[i]}`,modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},m=!c,h=kf("modal"),g=o((()=>({size:i,hideCloseIcon:c})),[i,c]),[v,y]=r(!1);return a((()=>{e&&y(!0)}),[e]),t.createElement(cg.Provider,{value:g},t.createElement(Jd,{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(ag,null,t.createElement(ef,{variant:"clean",icon:t.createElement(Iu,null),"aria-label":l,title:l,onClick:n}))),t.createElement(Yh,{zIndex:h}))}function ug({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(sg,{isOpen:e,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,size:r,closeButtonTitle:a,onCloseAnimationEnd:h,container:m},t.createElement(sg.Header,{title:c,secondaryInfo:l,thumbnail:s}),t.createElement(sg.Content,null,u),d&&t.createElement(sg.Footer,{actionPrimary:d,actionSecondary:p,actionTertiary:f}))}function dg(e){return t.createElement(ug,{...e})}function pg(e){return t.createElement(fg,{role:"status","aria-live":"polite"},e.thumbnail&&t.createElement(mg,null,e.thumbnail),t.createElement(hg,null,t.createElement(gg,{title:"string"==typeof e.title?e.title:""},e.title),e.description&&t.createElement(vg,{title:"string"==typeof e.description?e.description:""},e.description)),t.createElement(yg,null,e.button),"number"==typeof e.progressPercentage&&t.createElement(bg,{style:{width:e.progressPercentage+"%"}}))}sg.Header=function({title:e,secondaryInfo:n,thumbnail:r,backButton:o}){const{hideCloseIcon:a}=i(cg);return t.createElement(Kh,{hideCloseIcon:a},o&&t.createElement(Xh,null,t.createElement(ef,{variant:"clean",icon:t.createElement(Su,null),"aria-label":o.title,...o})),r&&t.createElement(Zh,null,r),t.createElement(Jh,null,t.createElement(Qh,null,e),n&&t.createElement(eg,null,n)))},sg.Content=function({children:e}){const{size:n}=i(cg),r="fullscreen"===n;return t.createElement(tg,{scrollable:r},t.createElement(ng,{scrollable:r},r?t.createElement(rg,null,e):e))},sg.Footer=function({actionPrimary:e,actionSecondary:n,actionTertiary:r}){return t.createElement(og,null,r,t.createElement(ig,null,t.createElement(pf,{gap:"4"},n,e)))},ql.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")),ql.div.withConfig({displayName:"NotificationsStyled",componentId:"sc-11co88f-142"})(["position:fixed;bottom:",";left:",";z-index:",";"],Dp.spacing6,Dp.spacing6,9999);const fg=ql.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:",",",";"],Rp,Dp.spacing5,Dp.radiusLarge,Dp.white,Dp.elevationStatic,Dp.elevation2),mg=ql.div.withConfig({displayName:"ThumbnailWrapper1",componentId:"sc-11co88f-144"})(["flex:none;margin-right:",";"],Dp.spacing5),hg=ql.div.withConfig({displayName:"Text",componentId:"sc-11co88f-145"})(["flex:1;align-self:center;"]),gg=ql.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;"]),vg=ql.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;"],Dp.spacing2,Dp.gray500,Dp.fontSize75),yg=ql.div.withConfig({displayName:"Action",componentId:"sc-11co88f-148"})(["flex:none;"]),bg=ql.div.withConfig({displayName:"Progress1",componentId:"sc-11co88f-149"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],Dp.brandPrimary500);function wg({isPersistent:e,button:n,id:r=vd(),variant:o,thumbnail:i,...a}){return kp((e=>t.createElement(pg,{thumbnail:xg(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),kp.dismiss(e.id)}}):t.createElement(ef,{variant:"clean",onClick:()=>{kp.dismiss(e.id)},icon:t.createElement(Iu,null),title:"Close"})})),{id:r,duration:e?288e5:8e3})}function xg(e,n){return e||(n?{loading:t.createElement(_h,{shape:"circle",backgroundColor:"transparent",icon:t.createElement(Wp,null)}),success:t.createElement(_h,{shape:"circle",backgroundColor:"green500",icon:t.createElement(ku,null),iconColor:"white"}),error:t.createElement(_h,{shape:"circle",backgroundColor:"red500",icon:t.createElement(Iu,null),iconColor:"white"})}[n]:void 0)}wg.dismiss=function(e){kp.dismiss(e)},ql.div.withConfig({displayName:"Track",componentId:"sc-11co88f-150"})(["height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":Dp.radiusPill),(e=>e.noBackground?"none":Dp.gray100a)),ql.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":Dp.radiusPill),(e=>"brand"===e.color?Dp.brandPrimary500:Dp.gray600)),ql.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-11co88f-152"})(["display:flex;flex:none;align-items:center;&::before{content:'​';}"]);const Eg=ql.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:",";}"," ",""],Dp.componentRadioBorderUnchecked,Dp.radiusCircle,Dp.focusRingWidth,(e=>e.isFocusVisible&&Dp.focusRingColorPrimary),Dp.radiusCircle,(e=>e.isChecked&&Tl(["border-color:transparent;background-color:",";color:#fff;"],Dp.blue500)),(e=>e.isDisabled&&Tl(["border-color:transparent;background-color:",";color:",";"],Dp.componentRadioFillDisabled,Dp.componentRadioCheckmarkColorDisabled)));ql.div.withConfig({displayName:"IndicatorMark",componentId:"sc-11co88f-154"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],Dp.radiusCircle),ql.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%);"]),ql.label.withConfig({displayName:"Container3",componentId:"sc-11co88f-156"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],df.uiTextM,Dp.spacing1,(e=>!e.isDisabled&&"pointer"),Eg,(e=>{if(!e.isDisabled)return e.isChecked?Tl(["background-color:",";"],Dp.blue600):Tl(["border-color:",";"],Dp.componentRadioBorderUncheckedHover)})),ql.div.withConfig({displayName:"Label",componentId:"sc-11co88f-157"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.colorText));const Cg=n({value:"",onChange:()=>{}});function kg({children:e,isDisabled:n,onChange:r,value:i,label:a,icon:c}){const l=o((()=>({value:i,onChange:r})),[r,i]);return t.createElement(Cg.Provider,{value:l},t.createElement(Wh,{trigger:({isOpen:e,...r})=>t.createElement(ef,{icon:c,isPressed:e,rightIcon:t.createElement(Wh.Arrow,null),isFullWidth:!0,isDisabled:n,...r},t.createElement(Wh.SelectButtonText,null,a)),position:"bottom"},e))}function Sg(e,t,n){return 100*(n-e)/(t-e)+"%"}kg.Item=function({icon:e,children:n,isDisabled:r,value:o}){const a=i(Cg);return t.createElement(Wh.Item,{isChecked:o===a.value,role:"menuitemradio",icon:e,isDisabled:r,onClick:()=>{a.onChange(o)}},n)},kg.SectionTitle=Wh.SectionTitle,kg.Divider=Wh.Divider,kg.SearchInput=Wh.SearchInput,kg.Text=Wh.Text,ql.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:",";"],Dp.spacing5,Dp.gray100,Dp.white),ql.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),Dp.radiusBase,Dp.gray100),ql.div.withConfig({displayName:"TextContainer",componentId:"sc-11co88f-160"})(["display:flex;align-items:center;width:100%;height:20px;&::before{content:'';height:6px;border-radius:",";","}"],Dp.radiusPill,(e=>"primary"===e.variant?Tl(["width:75%;max-width:240px;background:",";"],Dp.gray200):"secondary"===e.variant?Tl(["width:50%;max-width:160px;background:",";"],Dp.gray100):void 0)),ql.div.withConfig({displayName:"Opacity",componentId:"sc-11co88f-161"})(["opacity:",";"],(({value:e=1})=>e));const _g=ql.div.withConfig({displayName:"Container1",componentId:"sc-11co88f-162"})(["position:relative;display:flex;gap:",";align-items:center;"],Dp.spacing3),Ig=ql.div.withConfig({displayName:"SliderContainer",componentId:"sc-11co88f-163"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),Bg=Tl(["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;"]),Tg=Tl(["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 Ng(e){const t=Sg(e.min,e.max,e.value);let n,r;return Array.isArray(e.values)?(n=Sg(e.min,e.max,e.values[0]),r=Sg(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${Dp.gray100a} ${n},\n\t\t${Dp.brandPrimary500} ${n},\n\t\t${Dp.brandPrimary500} ${r},\n\t\t${Dp.gray100a} ${r}\n\t)`}const zg=ql.input.attrs((e=>({style:{"--track-background":Ng(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"),Tg,Tg,Bg,Bg),Dg=ql.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),Ig,zg,Dp.gray100a,Dp.elevationStatic,Dp.elevation1,zg,Dp.gray100a,Dp.gray100a,zg,Dp.gray100a,Dp.elevationStatic,Dp.elevation2),Pg=ql.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%);}"],Dp.radiusCircle,Dp.gray10,Dp.elevationStatic,Dp.elevation1,Dp.gray75a,Dp.radiusCircle,Dp.gray25),Og=ql.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 Ag({min:e,max:n,value:r,isTooltipOpen:o,inputPosition:i,isInactive:a}){const c=Sg(e,n,r);return t.createElement(Dg,{isInactive:a,style:Rg(c),"data-testid":"thumb"},t.createElement(Pg,null),"none"===i&&t.createElement(Sf,{isOpen:o,content:r,position:"top-center"},(e=>t.createElement("div",{...e}))))}function Rg(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function Fg({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(zg,{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(Ag,{isTooltipOpen:u&&!s,min:e,max:n,value:p?o[0]:o,inputPosition:a,isInactive:l}),p&&t.createElement(t.Fragment,null,t.createElement(zg,{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(Ag,{isTooltipOpen:u&&!s,min:e,max:n,value:o[1],inputPosition:a,isInactive:l})))}function Lg({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(_g,{...p},("left"===o||"both"===o)&&t.createElement(Og,{min:e,max:n,"data-testid":"input-left"},t.createElement(Rm,{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(Ig,null,t.createElement(Fg,{min:e,max:n,value:i,inputPosition:o,onChange:v,isFromCenter:s,isInactive:u,isTooltipHidden:d})),l,("right"===o||"both"===o)&&t.createElement(Og,{min:e,max:n,"data-testid":"input-right"},t.createElement(Rm,{onChange:m,value:"right"===h?f:w,type:"number",onFocus:()=>{m(w),g("right")},onBlur:()=>{v({target:{name:"max-input",value:f}})},onKeyDown:y})))}ql.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?Tl([""," color:var(--table-row-color-override,inherit);"],df.uiTextM):"secondary"===e.variant?Tl([""," color:var(--table-row-color-override,",");"],df.uiTextS,Dp.gray600):void 0),(e=>e.isTruncated&&"max-width: 1px;"),Dp.spacing3,Dp.spacing4,Dp.radiusLarge,Dp.radiusLarge,Dp.radiusLarge,Dp.radiusLarge),ql.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-11co88f-169"})(["flex:none;align-self:flex-start;opacity:var(--table-thumbnail-opacity,1);"]),ql.div.withConfig({displayName:"Content",componentId:"sc-11co88f-170"})(["flex:1;min-width:0;white-space:",";"],(e=>e.isNoWrap?"nowrap":"normal")),ql.div.withConfig({displayName:"Subtext",componentId:"sc-11co88f-171"})([""," color:var(--table-row-color-override,",");"],df.uiTextS,Dp.gray600),ql.div.withConfig({displayName:"IconRight",componentId:"sc-11co88f-172"})(["flex:none;margin-left:",";color:",";"],Dp.spacing4,Dp.gray600),ql.tr.withConfig({displayName:"DividerRow",componentId:"sc-11co88f-173"})(["&:nth-child(2){display:none;}"]),ql.td.withConfig({displayName:"DividerCell",componentId:"sc-11co88f-174"})(["padding:"," 0;&::before{content:'';display:block;height:1px;height:1px;background:",";}"],Dp.spacing3,Dp.gray100a),ql.tr.withConfig({displayName:"StyledRow",componentId:"sc-11co88f-175"})([""," "," ",""],(e=>e.isActive&&Tl(["--table-row-right-icon-color:",";border-radius:",";outline:none;cursor:pointer;&:hover{--table-row-right-icon-color:",";background:",";}"," &:active{background:",";box-shadow:none;}"],Dp.gray200,Dp.radiusLarge,Dp.gray600,Dp.gray25,e.isFocusVisible&&Tl(["--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 ",";}"],Dp.gray600,Dp.gray25,Dp.gray100,Dp.gray10,Dp.gray50,Dp.gray10),Dp.gray50)),(e=>e.isPressed&&Tl(["--table-row-right-icon-color:",";&,&:hover{background:",";}"],Dp.gray600,Dp.gray50)),(e=>e.isDisabled&&Tl(["--table-row-right-icon-color:",";--table-thumbnail-opacity:50%;--table-row-color-override:",";pointer-events:none;"],Dp.gray200,Dp.gray200))),ql.div.withConfig({displayName:"Icon1",componentId:"sc-11co88f-176"})(["color:var(--table-row-right-icon-color);"]),ql.thead.withConfig({displayName:"StyledHeader",componentId:"sc-11co88f-177"})(["",""],(e=>"string"==typeof e.stickyOffset&&Tl(["--table-head-sticky-offset:",";position:sticky;top:var(--table-head-sticky-offset);z-index:1;background-color:",";",""],"0"===e.stickyOffset?"0px":e.stickyOffset,Dp.white,e.isStuck&&Tl(["box-shadow:0 3px 0 ",",0 1px 0 ",";"],Dp.gray50a,Dp.gray100a)))),ql.div.withConfig({displayName:"Trigger",componentId:"sc-11co88f-178"})(["position:absolute;top:calc((var(--table-head-sticky-offset) + 1px) * -1);width:1px;height:1px;"]),ql.th.withConfig({displayName:"StyledHeadCell",componentId:"sc-11co88f-179"})([""," padding:"," ",";text-align:left;"],df.uiTextM,Dp.spacing2,Dp.spacing4),ql.div.withConfig({displayName:"Static",componentId:"sc-11co88f-180"})(["padding:"," 0;"],Dp.spacing3),ql.span.withConfig({displayName:"Active",componentId:"sc-11co88f-181"})(["font-weight:600;"]),ql.td.withConfig({displayName:"Cell2",componentId:"sc-11co88f-182"})(["height:",";"],Dp.spacing3),ql.td.withConfig({displayName:"Cell1",componentId:"sc-11co88f-183"})(["padding:"," ",";"],Dp.spacing3,Dp.spacing4),ql.td.withConfig({displayName:"Cell",componentId:"sc-11co88f-184"})(["padding:",";"],Dp.spacing4),ql.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")),ql.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"),Dp.spacing3,Dp.spacing5,(e=>"pill"===e.shape?Dp.radiusPill:Dp.radiusBase),(e=>e.isActive?Dp.gray800:Dp.gray600),df.uiTextM,Dp.gray400,Dp.gray800,Dp.gray200,Dp.gray800,(e=>"clean"===e.variant&&Tl(["background-color:",";"],Dp.gray25a)),(e=>e.isActive&&"contained"===e.variant&&Tl(["background-color:",";box-shadow:0 0 1px ",",",";"],Dp.white,Dp.colorShadow,Dp.elevation1)),(e=>e.isActive&&"clean"===e.variant&&Tl(["background-color:",";"],Dp.gray50a))),ql.span.withConfig({displayName:"Icon",componentId:"sc-11co88f-187"})(["margin-right:",";"],Dp.spacing3),ql.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:",";",";"],Dp.spacing1,(e=>"pill"===e.shape?Dp.radiusPill:`calc(${Dp.radiusBase} + 2px) `),(e=>"contained"===e.variant&&Tl(["padding:",";background-color:",";"],Dp.spacing1,Dp.gray50a)));const Mg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function jg(e){Object.keys(Mg).forEach((t=>{e.style.setProperty(t,Mg[t],"important")}))}let Hg=null;const Ug=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];function Vg({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,Ug.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}){Hg||(Hg=document.createElement("textarea"),Hg.setAttribute("tabindex","-1"),Hg.setAttribute("aria-hidden","true"),jg(Hg)),null===Hg.parentNode&&document.body.appendChild(Hg);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!Hg)return;const t=e;Hg.style[t]=a[t]})),jg(Hg),Hg.value=t;let c=function(e,t){const n=Hg.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);Hg.value="x";const l=Hg.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($g,{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 $g=ql.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;}",";}"],Dp.spacing3,Dp.spacing5,Dp.gray100,Dp.radiusBase,Dp.white,Dp.colorText,Dp.brandFontStackBase,df.paragraphM,Dp.gray400,Dp.gray200,Dp.elevation1,Dp.gray300,Dp.gray100a,Dp.gray100,Dp.gray25,Dp.gray600,(e=>e.isInvalid&&Tl(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],Dp.red500,Dp.red600,Dp.red500))),Wg=ql.div.withConfig({displayName:"RightElementText",componentId:"sc-11co88f-190"})(["display:flex;justify-content:flex-end;align-items:center;color:",";text-align:right;"],Dp.gray400);ql.div.withConfig({displayName:"LeftIconContainer",componentId:"sc-11co88f-191"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],Dp.spacing4),ql.div.withConfig({displayName:"RightElementsContainer",componentId:"sc-11co88f-192"})(["margin-left:auto;padding-left:",";"],Dp.spacing4);const Gg=Tl(["background-color:"," !important;color:"," !important;","{color:",";}"],Dp.gray50,Dp.gray800,Wg,Dp.gray600);function qg(e){var t;return null!==(t=Yg[e])&&void 0!==t?t:e}ql.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{","}"," "," ",";}"],df.uiTextM,Dp.spacing3,Dp.spacing4,Dp.brandRadiusBase,Dp.gray600,Dp.brandFontStackBase,(e=>e.disabled?"default":"pointer"),Dp.gray25,Dp.gray800,Wg,Dp.gray600,Gg,(e=>e.$isSelected&&Gg),(e=>e.$isFocusVisible&&Tl(["background-color:",";color:",";","{color:",";}"],Dp.gray25,Dp.gray800,Wg,Dp.gray600)),(e=>e.disabled&&Tl(["background-color:transparent;color:",";pointer-events:none;","{color:",";}"],Dp.gray400,Wg,Dp.gray400))),ql(Fm).withConfig({displayName:"Divider",componentId:"sc-11co88f-194"})(["margin:"," ",";"],Dp.spacing2,Dp.spacing4),ql.div.withConfig({displayName:"StyledTitleContainer",componentId:"sc-11co88f-195"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],df.uiTextS,Dp.spacing4,Dp.gray800),ql.div.withConfig({displayName:"RightElementIcon",componentId:"sc-11co88f-196"})(["&:last-child{margin-right:calc("," * -1);}"],Dp.spacing2),ql.div.withConfig({displayName:"Container",componentId:"sc-11co88f-197"})(["margin:0 ",";"],Dp.spacing5);var Yg={};function Kg(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){Yg=e}))}),[e])}function Xg(){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 Zg(e){return t.createElement(t.Fragment,null,t.createElement(Xg,null),t.createElement(tv,null,qg("Oops! Something went wrong")),t.createElement(nv,null,qg("Please try again or get in contact with our customer support.")),t.createElement(rv,null,t.createElement(ef,{variant:"secondary",title:qg("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?qg("Report sent"):qg("Send report...")),t.createElement(ef,{variant:"primary",title:qg("Try again"),onClick:e.onClickRetry},qg("Try again"))))}var Jg,Qg,ev,tv=ql.h1(Jg||(Jg=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),Dp.spacing8,Dp.fontSize400),nv=ql.span(Qg||(Qg=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),Dp.spacing5,Dp.colorTextDisabled),rv=ql.div(ev||(ev=_a(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),Dp.spacing7,Dp.spacing3);function ov(e){var n;return t.createElement(dg,{title:qg("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(ef,{variant:"primary",title:qg("Send report"),onClick:e.onDone},qg("Send report")),actionSecondary:t.createElement(ef,{variant:"secondary",title:qg("Cancel"),onClick:e.onCancel},qg("Cancel")),container:e.container},t.createElement(lv,null,qg("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(sv,{"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(uv,null,qg("We will treat this report as confidential and anonymous.")))}var iv,av,cv,lv=ql.div(iv||(iv=_a(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),Dp.lineHeightText),sv=ql.div(av||(av=_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"])),Dp.spacing5,Dp.gray25,Dp.radiusMedium,Dp.gray200,Dp.lineHeightText,Dp.spacing5,Dp.spacing4),uv=ql.span(cv||(cv=_a(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),Dp.colorTextDisabled,Dp.lineHeightBase,Dp.fontSize75);function dv(e){var n=e.error,o=e.onRetry,i=La(),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(Zg,{isReportSent:d,onClickSend:function(){s(!0)},onClickRetry:o}),t.createElement(ov,{isOpen:l,error:n,container:i,onDone:function(){ti(n),s(!1),p(!0)},onCancel:function(){s(!1)}}))}function pv(){var e=ba(Ta()[0].page),n=e[0],r=e[1],o={ASC:qg("Ascending"),DESC:qg("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(ef,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(mv,{$isAscending:"ASC"===n.direction})})}var fv,mv=ql((function(e){return Is({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)}))(fv||(fv=_a(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),Dp.spacing6,Dp.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function hv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function gv(e){var n,o=c(null),i=r(0)[1];!function(e,t){var n=La();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=La(),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={left:m,right:h,top:v,bottom:y,maxWidth:b.width-(null!=m?m:0)-(null!=h?h:0),maxHeight:b.height-(null!=y?y:0)-(null!=v?v:0)},x=hv("cv-root cv-dropdown select-none",e.className);return g(t.createElement("div",{role:"menu",id:e.id,className:x,ref:o,style:w},e.children),s)}function vv(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(bv,{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(Eu,{className:"w-6 h-6 ml-1 -mr-2"})),m&&t.createElement(gv,{className:d.className,onClickOutside:v,direction:l,target:g,id:p},d.children(v)))}var yv,bv=ql(ef)(yv||(yv=_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 wv(e){var n=e.selected,r=void 0!==n&&n,o=Ea(e,["selected"]),i=hv("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(ku,{className:"w-6 h-6 ml-3 fade-in"})))}function xv(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:qg("Date added"),NAME:qg("Name"),PUBLISHED_AT:qg("Date published"),UPDATED_AT:qg("Date modified")};return t.createElement(Cv,null,t.createElement(vv,{className:"py-2",title:c[i.field],alt:qg("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(wv,{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 Ev,Cv=ql.div(Ev||(Ev=_a(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function kv(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function Sv(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:hv("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"‌")}function _v(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(Kf,null,t.createElement(Kf.Frame,null),t.createElement(Kf.AdditionalInfo,null,t.createElement(Sv,{width:70+Iv(100,r),className:"h-4"})),e.title))})))}function Iv(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}var Bv=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Tv=Bv.Provider,Nv=function(){return i(Bv)},zv=function(){return Nv().selectionMode};function Dv(e){return{tag:"ok",value:e}}function Pv(e){return{tag:"error",error:e}}function Ov(e){return"ok"===e.tag}function Av(e){return"error"===e.tag}function Rv(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}function Fv(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 Lv=new Map;function Mv(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,Pv("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?Rv(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),Lv.has(i))return[2,Dv(Lv.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("3.2.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=Fv(e.files);return xa(xa({},e),{files:xa({},t)})}return e}))})})}):e}(s.data),[3,5];case 4:return[2,Pv(d.sent())];case 5:return void 0!==s.errors?[2,Pv(s.errors.map((function(e){return e.message})).join(","))]:(Lv.set(i,u),Lv.size>50&&Lv.delete(Lv.keys().next().value),[2,Dv(u)])}}))}))}function jv(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 Hv(){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 Uv="42b1eefa-d754-4802-b9c4-bf80d6ab6052",Vv="".concat("https://d8ejoa1fys2rk.cloudfront.net"),$v=Vv+"/5.0.5/modules/compactview/loginCompleted.html",Wv="".concat("https://apiv2.webdamdb.com","/"),Gv=["offline","asset:read","collection:read","meta.assetbank:read"];function qv(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=Yv(n)+"token",o=new URLSearchParams({client_id:Uv,code_verifier:t,code:e,redirect_uri:$v,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,Pv("Failed to fetch access token: ".concat(i.status))];case 3:return[2,Dv({refreshToken:(a=c.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Pv(c.sent().toString())];case 5:return[2]}}))}))}function Yv(e){return"webdam"===Kv()?Wv+"oauth2/":Rv(e)+"v6/authentication/oauth2/"}function Kv(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function Xv(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,Pv("Error opening login window")]:(o.document.head.innerHTML=Zv,o.document.body.innerHTML=Jv,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===Vv&&e(Dv(t))}))})),new Promise((function(e){setTimeout((function(){return e(Pv("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(Pv("Login window closed")))}),1e3)})))])]);case 1:return Av(i=c.sent())?[2,i]:[2,Dv({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var Zv='\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>',Jv='<div class="cv-spinner"></div>';function Qv(e){var n=La();return t.createElement(bl,{target:n,disableVendorPrefixes:!0},t.createElement(Ef,{zIndexBase:1e6},e.children))}function ey(e){var n=e.children,o=e.isLoginInContainer,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],template{display:none}dd,dl,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,iframe,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}.pr-1{padding-right:4px}.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}.gap-y-px{grid-row-gap:1px;row-gap:1px}.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}',ty(null!=e?e:document.head,t),n&&ty(document.head,ry),u(null!=n?n:c.current)}}),[]),t.createElement("div",{ref:c,style:{display:"flex",height:"100%"},"data-testid":"root"},s&&t.createElement(Fa,{value:s},t.createElement(Qv,null,g(t.createElement(oy,{isLoginInContainer:i,"data-testid":"ShadowRootInternalContainer"},n),s))))}function ty(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var ny,ry="\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'),oy=ql.div(ny||(ny=_a(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.isLoginInContainer?"100%":"auto"})),iy=n("parent");function ay(e){var n=e.children,r=e.isLoginInContainer,o=void 0!==r&&r;return"parent"===i(iy)?t.createElement(iy.Provider,{value:"child"},t.createElement(ey,{isLoginInContainer:o},n)):t.createElement(t.Fragment,null,n)}var cy=n(null),ly=function(){return i(cy)};function sy(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 document.body.appendChild(e),f(e),function(){e.remove()}}),[]),c?t.createElement(cy.Provider,{value:m},p&&t.createElement(t.Fragment,null,g(t.createElement(ay,null,t.createElement(py,{className:"z-a-lot"},t.createElement(fy,{style:l,"data-testid":"modal"},n))),p))):null}var uy,dy,py=ql.div(uy||(uy=_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"])),Dp.spacing5,Dp.gray100a),fy=ql.div(dy||(dy=_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"])),Dp.radiusBase);function my(e){var n=ly();return t.createElement(yy,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(by,{variant:"clean",onClick:n.onClose,title:qg("Close"),icon:t.createElement(Iu,null)}),t.createElement(wy,null,e.children))}var hy,gy,vy,yy=ql.div(hy||(hy=_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"])),Dp.gray10),by=ql(ef)(gy||(gy=_a(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),Dp.spacing4,Dp.spacing5),wy=ql.div(vy||(vy=_a(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),Dp.fontSize300);function xy(){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}},qg("Connect your brand portal")))}function Ey(e){var n=hv("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 Cy(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(_y,null,t.createElement(qh,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:qg("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&qg("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(Iy,{role:"alert","aria-live":"polite"},t.createElement(Ey,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var ky,Sy,_y=ql.div(ky||(ky=_a(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),Dp.spacing4),Iy=ql.div(Sy||(Sy=_a(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function By(e){return t.createElement(ef,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},qg("Connect"))}function Ty(e){return t.createElement(my,null,t.createElement(xy,null),t.createElement(Cy,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(By,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var Ny=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(dv,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function zy(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(Ey,null)," ")}var Dy=n(null);function Py(e){var n,o,i,l,s,u,d,p,f;Kg(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=Yv(t)+"token",r=new URLSearchParams({client_id:Uv,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,Pv("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,Dv({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Pv(a.sent().toString())];case 5:return[2]}}))}))}(s,p).then((function(e){Ov(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=Rv(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=Hv(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,jv(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,Pv(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=Hv(),i=function(e,t,n){var r={client_id:Uv,code_challenge:e,code_challenge_method:"S256",redirect_uri:$v,response_type:"code",scope:Gv.join(" "),domain:"",state:t},o="auth?";"webdam"===Kv()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return Yv(n)+o+i}(r,o,e),[4,Xv(i)];case 5:return Av(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,Pv("Error logging in")]:[4,qv(a.value.code,t,e)];case 6:return Av(c=p.sent())?[2,c]:(l=c.value,s=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,Dv({accessToken:u,expiresIn:parseFloat(d),refreshToken:s})])}var f}))}))}(b).then((function(t){e&&(function(e){if(Ov(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(){v()},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(h.status){case"authenticated":return t.createElement(Dy.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(ay,{isLoginInContainer:!0},t.createElement(Ty,{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(zy,null)}}var Oy=function(e){return t.createElement(Ny,null,t.createElement(Py,xa({},e)))},Ay=function(){return i(Dy)},Ry="\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}",Fy="\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(Ry,"\n");function Ly(e){var t,n,o,i,c,l=this,s=Ay(),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=My(e,null!=t?t:null),[4,Mv(Fy,n,s)];case 1:return r=o.sent(),f||(Av(r)?p({tag:"Failure",value:r.error}):h(r,t)),[2]}}))}))},h=function(e,t){jy(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=jy(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=jy(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(c=jy(d))||void 0===c?void 0:c.pageInfo.hasNextPage)}}var My=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=Hy(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}},jy=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},Hy=function(e){return e?e.map((function(e){return e.id})):null};function Uy(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,Mv("\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(Ry),{ids:e,language:n},t)];case 1:return Av(r=o.sent())?[2,r]:[2,Dv(r.value.nodes)]}}))}))}var Vy="object"==typeof v&&v&&v.Object===Object&&v,$y=Vy,Wy="object"==typeof self&&self&&self.Object===Object&&self,Gy=$y||Wy||Function("return this")(),qy=Gy.Symbol,Yy=qy,Ky=Object.prototype,Xy=Ky.hasOwnProperty,Zy=Ky.toString,Jy=Yy?Yy.toStringTag:void 0,Qy=Object.prototype.toString,eb=function(e){var t=Xy.call(e,Jy),n=e[Jy];try{e[Jy]=void 0;var r=!0}catch(e){}var o=Zy.call(e);return r&&(t?e[Jy]=n:delete e[Jy]),o},tb=qy?qy.toStringTag:void 0,nb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tb&&tb in Object(e)?eb(e):function(e){return Qy.call(e)}(e)},rb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ob=nb,ib=rb,ab=Gy["__core-js_shared__"],cb=function(){var e=/[^.]+$/.exec(ab&&ab.keys&&ab.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lb=Function.prototype.toString,sb=function(e){if(null!=e){try{return lb.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ub=function(e){if(!ib(e))return!1;var t=ob(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},db=function(e){return!!cb&&cb in e},pb=rb,fb=sb,mb=/^\[object .+?Constructor\]$/,hb=Function.prototype,gb=Object.prototype,vb=hb.toString,yb=gb.hasOwnProperty,bb=RegExp("^"+vb.call(yb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wb=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!pb(e)||db(e))&&(ub(e)?bb:mb).test(fb(e))}(n)?n:void 0},xb=wb(Gy,"DataView"),Eb=wb(Gy,"Map"),Cb=wb(Gy,"Promise"),kb=wb(Gy,"Set"),Sb=wb(Gy,"WeakMap"),_b=nb,Ib=sb,Bb=Ib(xb),Tb=Ib(Eb),Nb=Ib(Cb),zb=Ib(kb),Db=Ib(Sb),Pb=_b;(xb&&"[object DataView]"!=Pb(new xb(new ArrayBuffer(1)))||Eb&&"[object Map]"!=Pb(new Eb)||Cb&&"[object Promise]"!=Pb(Cb.resolve())||kb&&"[object Set]"!=Pb(new kb)||Sb&&"[object WeakMap]"!=Pb(new Sb))&&(Pb=function(e){var t=_b(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ib(n):"";if(r)switch(r){case Bb:return"[object DataView]";case Tb:return"[object Map]";case Nb:return"[object Promise]";case zb:return"[object Set]";case Db:return"[object WeakMap]"}return t});var Ob,Ab=nb,Rb=function(e){return null!=e&&"object"==typeof e},Fb=Object.prototype;Fb.hasOwnProperty,Fb.propertyIsEnumerable,Ob=function(){return arguments}(),Rb(Ob)&&Ab(Ob);var Lb={exports:{}},Mb=function(){return!1};!function(e,t){var n=Gy,r=Mb,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}(Lb,Lb.exports);var jb={exports:{}};!function(e,t){var n=Vy,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}(jb,jb.exports);var Hb={},Ub={"text/plain":"Text","text/html":"Url",default:"Text"};function Vb(e){return Vb="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},Vb(e)}Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.CopyToClipboard=void 0;var $b=qb(t),Wb=qb((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=Ub[t.format]||Ub.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})),Gb=["text","onCopy","options","children"];function qb(e){return e&&e.__esModule?e:{default:e}}function Yb(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 Kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yb(Object(n),!0).forEach((function(t){nw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zb(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 Jb(e,t){return Jb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jb(e,t)}function Qb(e,t){if(t&&("object"===Vb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ew(e)}function ew(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tw(e){return tw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tw(e)}function nw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rw=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&&Jb(e,t)}(a,$b.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=tw(r);if(o){var n=tw(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Qb(this,e)});function a(){var e;Xb(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nw(ew(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=$b.default.Children.only(i),l=(0,Wb.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,Gb),r=$b.default.Children.only(t);return $b.default.cloneElement(r,Kb(Kb({},n),{},{onClick:this.onClick}))}}])&&Zb(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}();Hb.CopyToClipboard=rw,nw(rw,"defaultProps",{onCopy:void 0,options:void 0});var ow=Hb.CopyToClipboard;ow.CopyToClipboard=ow;var iw=ow;let aw=(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 cw(e){return Is({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 lw={exports:{}},sw=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)}},uw=sw,dw=Object.prototype.toString;function pw(e){return"[object Array]"===dw.call(e)}function fw(e){return void 0===e}function mw(e){return null!==e&&"object"==typeof e}function hw(e){if("[object Object]"!==dw.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function gw(e){return"[object Function]"===dw.call(e)}function vw(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),pw(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 yw={isArray:pw,isArrayBuffer:function(e){return"[object ArrayBuffer]"===dw.call(e)},isBuffer:function(e){return null!==e&&!fw(e)&&null!==e.constructor&&!fw(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:mw,isPlainObject:hw,isUndefined:fw,isDate:function(e){return"[object Date]"===dw.call(e)},isFile:function(e){return"[object File]"===dw.call(e)},isBlob:function(e){return"[object Blob]"===dw.call(e)},isFunction:gw,isStream:function(e){return mw(e)&&gw(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:vw,merge:function e(){var t={};function n(n,r){hw(t[r])&&hw(n)?t[r]=e(t[r],n):hw(n)?t[r]=e({},n):pw(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)vw(arguments[r],n);return t},extend:function(e,t,n){return vw(t,(function(t,r){e[r]=n&&"function"==typeof t?uw(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}},bw=yw;function ww(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var xw=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(bw.isURLSearchParams(t))r=t.toString();else{var o=[];bw.forEach(t,(function(e,t){null!=e&&(bw.isArray(e)?t+="[]":e=[e],bw.forEach(e,(function(e){bw.isDate(e)?e=e.toISOString():bw.isObject(e)&&(e=JSON.stringify(e)),o.push(ww(t)+"="+ww(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},Ew=yw;function Cw(){this.handlers=[]}Cw.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},Cw.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Cw.prototype.forEach=function(e){Ew.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var kw=Cw,Sw=yw,_w=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},Iw=_w,Bw=function(e,t,n,r,o){var i=new Error(e);return Iw(i,t,n,r,o)},Tw=Bw,Nw=yw,zw=Nw.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Nw.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Nw.isString(r)&&a.push("path="+r),Nw.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(){}},Dw=yw,Pw=["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"],Ow=yw,Aw=Ow.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=Ow.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},Rw=yw,Fw=zw,Lw=xw,Mw=Aw,jw=Bw,Hw=yw,Uw=function(e,t){Sw.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Vw=_w,$w={"Content-Type":"application/x-www-form-urlencoded"};function Ww(e,t){!Hw.isUndefined(e)&&Hw.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Gw,qw={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Gw=function(e){return new Promise((function(t,n){var r=e.data,o=e.headers,i=e.responseType;Rw.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?(Dw.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=Dw.trim(e.substr(0,r)).toLowerCase(),n=Dw.trim(e.substr(r+1)),t){if(o[t]&&Pw.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(Tw("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(),Lw(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(jw("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(jw("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(jw(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Rw.isStandardBrowserEnv()){var f=(e.withCredentials||Mw(d))&&e.xsrfCookieName?Fw.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in a&&Rw.forEach(o,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Rw.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)}))}),Gw),transformRequest:[function(e,t){return Uw(t,"Accept"),Uw(t,"Content-Type"),Hw.isFormData(e)||Hw.isArrayBuffer(e)||Hw.isBuffer(e)||Hw.isStream(e)||Hw.isFile(e)||Hw.isBlob(e)?e:Hw.isArrayBufferView(e)?e.buffer:Hw.isURLSearchParams(e)?(Ww(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Hw.isObject(e)||t&&"application/json"===t["Content-Type"]?(Ww(t,"application/json"),function(e,t,n){if(Hw.isString(e))try{return(0,JSON.parse)(e),Hw.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&&Hw.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Vw(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, */*"}}};Hw.forEach(["delete","get","head"],(function(e){qw.headers[e]={}})),Hw.forEach(["post","put","patch"],(function(e){qw.headers[e]=Hw.merge($w)}));var Yw=qw,Kw=yw,Xw=Yw,Zw=function(e){return!(!e||!e.__CANCEL__)},Jw=yw,Qw=function(e,t,n){var r=this||Xw;return Kw.forEach(n,(function(n){e=n.call(r,e,t)})),e},ex=Zw,tx=Yw;function nx(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var rx=yw,ox=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 rx.isPlainObject(e)&&rx.isPlainObject(t)?rx.merge(e,t):rx.isPlainObject(t)?rx.merge({},t):rx.isArray(t)?t.slice():t}function l(r){rx.isUndefined(t[r])?rx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(e[r],t[r])}rx.forEach(r,(function(e){rx.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),rx.forEach(o,l),rx.forEach(i,(function(r){rx.isUndefined(t[r])?rx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(void 0,t[r])})),rx.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 rx.forEach(u,l),n},ix={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"}]},ax={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){ax[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var cx={},lx=ix.version.split(".");function sx(e,t){for(var n=t?t.split("."):lx,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}ax.transitional=function(e,t,n){var r=t&&sx(t);function o(e,t){return"[Axios v"+ix.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&&!cx[i]&&(cx[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 ux={isOlderVersion:sx,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:ax},dx=yw,px=xw,fx=kw,mx=function(e){return nx(e),e.headers=e.headers||{},e.data=Qw.call(e,e.data,e.headers,e.transformRequest),e.headers=Jw.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Jw.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||tx.adapter)(e).then((function(t){return nx(e),t.data=Qw.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return ex(t)||(nx(e),t&&t.response&&(t.response.data=Qw.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},hx=ox,gx=ux,vx=gx.validators;function yx(e){this.defaults=e,this.interceptors={request:new fx,response:new fx}}yx.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=hx(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&&gx.assertOptions(t,{silentJSONParsing:vx.transitional(vx.boolean,"1.0.0"),forcedJSONParsing:vx.transitional(vx.boolean,"1.0.0"),clarifyTimeoutError:vx.transitional(vx.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=[mx,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=mx(c)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},yx.prototype.getUri=function(e){return e=hx(this.defaults,e),px(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},dx.forEach(["delete","get","head","options"],(function(e){yx.prototype[e]=function(t,n){return this.request(hx(n||{},{method:e,url:t,data:(n||{}).data}))}})),dx.forEach(["post","put","patch"],(function(e){yx.prototype[e]=function(t,n,r){return this.request(hx(r||{},{method:e,url:t,data:n}))}}));var bx=yx;function wx(e){this.message=e}wx.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},wx.prototype.__CANCEL__=!0;var xx=wx,Ex=xx;function Cx(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 Ex(e),t(n.reason))}))}Cx.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Cx.source=function(){var e;return{token:new Cx((function(t){e=t})),cancel:e}};var kx=Cx,Sx=yw,_x=sw,Ix=bx,Bx=ox;function Tx(e){var t=new Ix(e),n=_x(Ix.prototype.request,t);return Sx.extend(n,Ix.prototype,t),Sx.extend(n,t),n}var Nx=Tx(Yw);Nx.Axios=Ix,Nx.create=function(e){return Tx(Bx(Nx.defaults,e))},Nx.Cancel=xx,Nx.CancelToken=kx,Nx.isCancel=Zw,Nx.all=function(e){return Promise.all(e)},Nx.spread=function(e){return function(t){return e.apply(null,t)}},Nx.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},lw.exports=Nx,lw.exports.default=Nx;var zx=lw.exports;function Dx(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 Px(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dx(Object(n),!0).forEach((function(t){Ox(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ox(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ax(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 Rx(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)||Lx(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 Fx(e){return function(e){if(Array.isArray(e))return Mx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lx(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 Lx(e,t){if(e){if("string"==typeof e)return Mx(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)?Mx(e,t):void 0}}function Mx(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 jx=["theme"];ql.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;}"," ",";",""],Dp.fontStackBase,Dp.fontSizeBase,Dp.lineHeightBase,Dp.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?Tl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px !important;padding:0 "," !important;"],Dp.spacing5)}),(function(e){var t=e.theme,n=Ax(e,jx);if("primary-dark"===n.variant){var r=Tl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["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;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,n.isPressed&&r,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFocusRing,r,Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=Tl(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return Tl(["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=Tl(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return Tl(["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 Hx=ql.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);ql(Hx).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(Dp.spacing2," * -1)"):Dp.spacing3}),Dp.spacing2),ql(Hx).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],Dp.spacing2,Dp.spacing3);var Ux,Vx=Gl(["100%{transform:rotate(360deg);}"]),$x=Gl(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);ql.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Vx),ql.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],$x),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(Ux||(Ux={}));var Wx,Gx,qx,Yx=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),Kx=ql(Yx).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}));ql.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===Ux.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}),Kx,(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):""})),ql.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})),ql.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})),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(Yx).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(Yx).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),ql.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})),Wl(["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"}(Wx||(Wx={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(Gx||(Gx={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(qx||(qx={})),ql.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 Xx=ql.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})),Zx=ql(Xx).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}));ql(Xx).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),ql(Xx).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),ql.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"}),Zx,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),ql.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})),ql.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})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var Jx=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),Qx=ql(Jx).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}));ql.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?Dp.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),Qx,(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?Tl(["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):""})),ql.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})),ql.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})),ql.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(Jx).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(Jx).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),ql.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),ql.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 Gx.COLOR:return e.theme.legacy.colorPrimary;case Gx.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var eE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);ql(eE).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})),ql.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?Tl(["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})),ql.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})),ql.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})),ql.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(eE).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})),ql.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})),ql.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),ql.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],Dp.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),ql.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),ql.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;}"],Dp.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var tE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);ql(tE).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})),ql.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),ql.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})),ql.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),ql.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ql.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),ql.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 nE=ql.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}));ql(nE).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),ql(nE).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),ql.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})),ql.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),ql.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 "})),ql.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var rE=ql.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);ql.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),ql.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;"]),ql.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 oE=ql.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);ql(oE).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),ql.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),ql.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 ")})),ql.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})),ql.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var iE,aE,cE=ql.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})),lE=ql.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}),cE);ql.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),ql.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),ql(rE).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;"],Dp.spacing6,Dp.spacing6),ql.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],Dp.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(iE||(iE={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(aE||(aE={})),ql.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var sE=ql.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}));ql.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]:aE.LEFT){case aE.RIGHT:return Tl(["top:110%;right:0;"]);case aE.CENTER:return Tl(["top:110%;left:50%;transform:translateX(-50%);"]);case aE.TOP:return Tl(["top:auto;bottom:110%;"]);case aE.LEFT:default:return Tl(["top:110%;left:0;"])}}(e.position)})),ql.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;}"],lE);var uE=ql.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}));ql.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}),lE,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),uE);var dE=Tl(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),pE=Tl(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));ql.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 "})),ql(sE).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;"]),ql.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],dE,pE,(function(e){return e.theme.legacy.colorRichBlack50}));var fE=ql.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}));ql.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})),ql.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var mE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);ql(mE).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(mE).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}),fE,(function(e){return e.theme.legacy.colorIconActive})),ql.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})),ql.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})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),ql.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})),ql.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&Tl(["background-color:",";"],e.theme.legacy.colorRichBlack03)})),ql.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})),ql.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})),ql.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),ql.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),ql.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),ql.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"),ql.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var hE=ql.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}));ql(hE).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),ql(hE).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var gE=ql.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],"44px");ql(gE).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),ql(gE).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var vE=ql.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");ql(vE).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),ql(vE).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var yE=["isOpen"];function bE(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(Wh,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=Ax(e,yE);return t.createElement(xE,{isVisible:r||n},t.createElement(ef,Px(Px({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(Nu,null),"aria-label":"More options"})))}},t.createElement(iw.CopyToClipboard,{text:n,onCopy:function(){wg({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Wh.Item,{icon:t.createElement(Ks,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(Os,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(iu,null),onClick:function(){return!1}},t.createElement(wE,{href:i,download:"presetimage"},"Download")))}var wE=ql.a.withConfig({displayName:"DownloadLink",componentId:"sc-1xq1wim-0"})(["display:block;"]),xE=ql.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"),EE=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},CE=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=EE(l),d="/transform/".concat(s).concat(u,"/"),p=BE(d,l);return t.createElement(kE,{className:"dat-menu-pointer-events-wrapper",onClick:r,isSelected:c},t.createElement(_h,{variant:"content",imageUrl:p}),t.createElement(SE,null,t.createElement(_E,null,n),t.createElement(IE,null,o)),!a&&t.createElement(bE,{alwaysVisible:!1,presetURL:d}))},kE=ql.div.withConfig({displayName:"ItemContainer",componentId:"sc-1q57zbs-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],Dp.spacing3,Dp.spacing4,Dp.spacing3,(function(e){return e.isSelected&&Dp.gray25}),Dp.gray25),SE=ql.div.withConfig({displayName:"ItemDetails",componentId:"sc-1q57zbs-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),_E=ql.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;"],Dp.fontSize100,Dp.lineHeightText,Dp.gray800,Dp.spacing4),IE=ql.p.withConfig({displayName:"Subtitle",componentId:"sc-1q57zbs-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],Dp.gray600,Dp.fontSize100,Dp.lineHeightText,Dp.spacing4),BE=function(e,t){var n=t.split("/transform"),r=n.length>1?n[0]:"";return"".concat(r).concat(e,"?io=transform:fit,width:80")},TE=t.memo(CE),NE=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL;return t.createElement(DE,null,t.createElement(zE,null,"Base transformation"),t.createElement(TE,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),r.length>0&&t.createElement(zE,null,r.length," Presets"),r.map((function(e){var r=e.name===o;return t.createElement(TE,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:r})})))},zE=ql.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],Dp.gray800,Dp.spacing5,Dp.spacing5,Dp.spacing4),DE=ql.div.withConfig({displayName:"Container",componentId:"sc-yqslcx-1"})(["padding:0px ",";"],Dp.spacing4),PE=t.memo(NE);function OE(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}var AE=function(e){switch(e.type){case"fill":case"crop":return t.createElement(fu,null);case"fit":return t.createElement(Ts,null);case"extend":return t.createElement(Ms,null);case"scale":return t.createElement(ru,null);case"rotate":return t.createElement(bu,null);case"flip":return t.createElement(hu,null);case"mirror":return t.createElement(du,null);case"border":return t.createElement(Qs,null);case"background":return t.createElement(eu,null);case"trim":return t.createElement(Xs,null);case"opacity":return t.createElement(Fs,null);case"sepia":return t.createElement(uu,null);case"contrast":return t.createElement(Ds,null);case"brightness":return t.createElement(Js,null);case"grayscale":return t.createElement(wu,null);case"blur":return t.createElement(cu,null);case"sharpness":return t.createElement(mu,null);case"saturation":return t.createElement(lu,null);case"text":return t.createElement(ou,null);case"advanced":return t.createElement(Hs,null);case"multiple":return t.createElement(Us,null);case"removebg":return t.createElement(FE,null);default:return null}};function RE(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"}))}function FE(e){return t.createElement(Gh,Px({},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 LE(e){return t.createElement(Gh,Px({},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 ME(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(jE,null,t.createElement(ym.Label,null,r),n,t.createElement(ym.HelperText,null,o))}var jE=ql(ym.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),HE={transformation:null,group:null,label:"Select a transform"},UE=[{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 VE(e){var n,r=UE.find((function(t){return t.transformation===e.transformation}))||HE;return t.createElement(ME,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement(kg,{onChange:function(t){var n=UE.find((function(e){return e.transformation===t})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(AE,{type:r.transformation})},t.createElement(kg.SectionTitle,null,"Transforms"),UE.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)})),t.createElement(kg.Divider,null),t.createElement(kg.SectionTitle,null,"Filters"),UE.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)})),t.createElement(kg.Divider,null),t.createElement(kg.SectionTitle,null,"Overlay"),UE.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)}))))}var $E=function(e){return"number"==typeof e&&!isNaN(e)},WE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!$E(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},GE=function(e){return e&&e>0?e.toString():""};function qE(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=Rx(r(!1),2),p=d[0],f=d[1],m=Rx(r(1),2),h=m[0],g=m[1],v=t.createElement(KE,null,p?t.createElement(Rs,null):t.createElement(As,null)),y=GE(c),b=GE(i);return t.createElement(ME,{label:"Dimensions"},t.createElement(YE,null,t.createElement(XE,null,t.createElement(Rm,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(ZE,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=WE(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(ef,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(JE,null),t.createElement(XE,null,t.createElement(Rm,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(ZE,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=WE(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 YE=ql.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),KE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],Dp.gray400a),XE=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),ZE=ql.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],Dp.spacing6),JE=ql.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],Dp.spacing4);function QE(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(ME,{label:i},t.createElement(Lg,{value:o,onChange:n,min:a,max:c,inputPosition:"right"}))}function eC(e){return t.createElement(Gh,Px({},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 tC(e){var n=e.io,r=e.onDispatch;return t.createElement(ME,{label:"Angle"},t.createElement(Rm,{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(eC,null),iconRight:t.createElement("span",null,"°")}))}function nC(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M8 19L8 21H16V19H13L13 5L16 5V3L8 3L8 5H11L11 19H8Z"}))}function rC(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M5 8H3V16H5V13H19V16H21V8H19V11H5V8Z"}))}var oC=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],iC=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}];function aC(e){var n=e.label,o=e.gravity,i=e.onChange,a=Rx(r(iC[1]),2),c=a[0],l=a[1],s=Rx(r(oC[1]),2),u=s[0],d=s[1],p=function(e){switch(i(e),e){case"topleft":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"top":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"topright":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"right"===e.value})));break;case"left":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"center":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"right":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"right"===e.value})));break;case"bottomleft":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"bottom":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"bottomright":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"right"===e.value})))}};return t.createElement(ME,{label:n},t.createElement(pf,null,t.createElement(cC,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(lC,{isSelected:"topleft"===o,onClick:function(){return p("topleft")}}),t.createElement(lC,{isSelected:"top"===o,onClick:function(){return p("top")}}),t.createElement(lC,{isSelected:"topright"===o,onClick:function(){return p("topright")}}),t.createElement(lC,{isSelected:"left"===o,onClick:function(){return p("left")}}),t.createElement(lC,{isSelected:"center"===o,onClick:function(){return p("center")}}),t.createElement(lC,{isSelected:"right"===o,onClick:function(){return p("right")}}),t.createElement(lC,{isSelected:"bottomleft"===o,onClick:function(){return p("bottomleft")}}),t.createElement(lC,{isSelected:"bottom"===o,onClick:function(){return p("bottom")}}),t.createElement(lC,{isSelected:"bottomright"===o,onClick:function(){return p("bottomright")}})),t.createElement(pf,{direction:"column",justifyContent:"space-around"},t.createElement(kg,{onChange:function(e){switch(l(iC.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(rC,null)},iC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)}))),t.createElement(kg,{onChange:function(e){switch(d(oC.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(nC,null)},oC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)}))))))}var cC=ql(pf).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:",";"],Dp.spacing5,Dp.gray25,Dp.gray100a,Dp.radiusMedium),lC=ql.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;}",""],Dp.gray10,Dp.gray100a,Dp.radiusSmall,Dp.gray25a,(function(e){return e.isSelected&&Tl(["border:2px solid ",";background:",";"],Dp.blue500,Dp.blue100)}));function sC(e){var n=e.color,o=e.label,i=e.onChangeValidation,a=e.onChange,c=Rx(r(!0),2),l=c[0],s=c[1],u=function(e){s(e),i(e)};return t.createElement(ME,{label:o},t.createElement(pf,null,t.createElement(uC,null,t.createElement(Rm,{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(ym.HelperText,{isInvalid:!l},"Please type a valid hex value")),t.createElement(dC,null,t.createElement(Rm,{type:"number",placeholder:"100",onChange:null,value:null,iconRight:t.createElement("span",null,"%"),isDisabled:!0}))))}var uC=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-1b7ygj6-0"})(["min-width:0;margin-right:",";"],Dp.spacing4),dC=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-1b7ygj6-1"})(["min-width:0;"]),pC=["Arial"],fC=["Regular"];function mC(e){var n,r,o=e.io,i=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(ME,{label:"Text"},t.createElement(Vg,{value:o.content,onChange:function(e){return i({type:"content",payload:{value:e,id:o.id}})}})),t.createElement(ME,{label:"Font"},t.createElement(kg,{value:o.font,label:o.font,onChange:function(e){return i({type:"font",payload:{value:e,id:o.id}})}},pC.map((function(e){return t.createElement(kg.Item,{value:e,key:e},e)})))),t.createElement(ME,{label:""},t.createElement(pf,null,t.createElement(hC,null,t.createElement(kg,{value:o.fontType,label:o.fontType,onChange:function(e){return i({type:"fontType",payload:{value:e,id:o.id}})},isDisabled:!0},fC.map((function(e){return t.createElement(kg.Item,{value:e,key:e},e)})))),t.createElement(gC,null,t.createElement(Rm,{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(sC,{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(aC,{label:"Position",gravity:o.gravity,onChange:function(e){return i({type:"gravity",payload:{value:e,id:o.id}})}}),t.createElement(ME,{label:"Padding"},t.createElement(Rm,{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(tC,{io:o,onDispatch:i}))}var hC=ql.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],Dp.spacing4),gC=ql.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function vC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(sC,{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 yC=[{label:"Rectangle",path:"square",icon:t.createElement(pu,null)},{label:"Ellipse",path:"circle",icon:t.createElement(gu,null)}],bC=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(LE,null)}];function wC(e){var n,r=e.onChange,o=e.shape,i=null!==(n=yC.find((function(e){return e.path===o})))&&void 0!==n?n:bC.find((function(e){return e.path===o}));return t.createElement(ME,{label:"Path"},t.createElement(kg,Px({onChange:r,value:o},i),yC.map((function(e){return t.createElement(kg.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement(kg.Divider,null),bC.map((function(e){return t.createElement(kg.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}var xC=[{label:"Focus point",focus:"point",icon:t.createElement(su,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(cw,null)}];function EC(e){var n=e.gravity,o=e.onChangeGravity,i=Rx(r(!1),2),c=i[0],l=i[1],s=Rx(r(null),2),u=s[0],d=s[1];a((function(){u||(n?f():p())}),[n,u]);var p=function(){var e=xC.find((function(e){return"point"===e.focus}));d(e)},f=function(){var e=xC.find((function(e){return"gravity"===e.focus}));d(e)};return t.createElement(t.Fragment,null,t.createElement(ME,{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(kg,Px(Px({onChange:function(e){var t="gravity"===e,n=xC.find((function(t){return t.focus===e}));d(n),l(t),o(t?"center":null)}},u),{},{value:null==u?void 0:u.focus}),xC.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement(kg.Divider,null):null,t.createElement(kg.Item,{value:e.focus,icon:e.icon},e.label))})))),c&&t.createElement(aC,{label:"Gravity",gravity:n,onChange:o}))}function CC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(wC,{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(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(EC,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity})),"circle"===n.path&&t.createElement(QE,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return r({type:"blur",payload:{value:e,id:n.id}})}}))}function kC(e){return t.createElement(Gh,Px({},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 SC(e){var n=e.io,r=e.onDispatch,o=GE(n.width);return t.createElement(t.Fragment,null,t.createElement(sC,{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(ME,{label:"Border"},t.createElement(pf,null,t.createElement(_C,null,t.createElement(Rm,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=WE(t,500);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(kC,null),iconRight:t.createElement("span",null,"px")})),t.createElement(IC,null,t.createElement(Rm,{placeholder:"Outside",onChange:null,value:null,iconRight:t.createElement(Eu,null),isDisabled:!0})))))}var _C=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-qgnlb2-0"})(["min-width:0;margin-right:",";"],Dp.spacing4),IC=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-qgnlb2-1"})(["min-width:0;"]);function BC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(EC,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity}))}function TC(e){var n=e.onDispatch,r=e.io;return t.createElement(QE,{label:OE(r.filter),min:-100,max:100,value:r.amount,onChange:function(e){return n({type:"amount",payload:{value:e,id:r.id}})}})}function NC(e){var n=e.onDispatch,r=e.io;return t.createElement(QE,{label:"Blur",min:0,max:100,value:r.radius,onChange:function(e){return n({type:"radius",payload:{value:e,id:r.id}})}})}function zC(e){var n=e.io,r=e.onDispatch;return t.createElement(sC,{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 DC(e){var n=e.io,r=e.onDispatch,o=GE(n.padding);return t.createElement(ME,{label:"Padding"},t.createElement(pf,null,t.createElement(PC,null,t.createElement(Rm,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=WE(t,3e3);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(kC,null),iconRight:t.createElement("span",null,"px")}))))}var PC=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],Dp.spacing4);function OC(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(VE,{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(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),"fill"===n.transform&&t.createElement(BC,{io:n,onDispatch:r}),"background"===n.transform&&t.createElement(zC,{io:n,onDispatch:r}),"rotate"===n.transform&&t.createElement(tC,{io:n,onDispatch:r}),"border"===n.transform&&t.createElement(SC,{io:n,onDispatch:r}),"extend"===n.transform&&t.createElement(vC,{io:n,onDispatch:r}),"crop"===n.transform&&t.createElement(CC,{io:n,onDispatch:r}),"trim"===n.transform&&t.createElement(DC,{io:n,onDispatch:r}),"text"===n.overlay&&t.createElement(mC,{io:n,onDispatch:r}),"blur"===n.filter&&t.createElement(NC,{io:n,onDispatch:r}),"opacity"===n.filter&&t.createElement(TC,{io:n,onDispatch:r}),o&&t.createElement(QE,{label:OE(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}}))}var AC=[{label:"Auto (recomended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],RC=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function FC(e){var n,r,o=e.options,i=e.onDispatch,a=(null===(n=AC.find((function(e){return e.value===o.format})))||void 0===n?void 0:n.label)||"Select Format",c=(null===(r=RC.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(ME,{label:"Format",helpText:"Set the output format"},t.createElement(kg,{onChange:function(e){return i({type:"format",payload:e})},label:a,value:o.format},AC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(ME,{label:"Quality"},t.createElement(kg,{onChange:function(e){return i({type:"quality",payload:Number(e)})},label:c,value:String(o.quality)},RC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.label},e.label)})))))}var LC=function(e){var n=e.preset,o=e.onDispatch,i=Rx(r([]),2),a=i[0],c=i[1],l=Rx(r(!1),2),s=l[0],u=l[1];return t.createElement(jh,null,n.content.io.map((function(e){var n=a.includes(e.id),r=e.transform||e.overlay||e.filter,i=OE(r)||"New transformation",l=MC(e);return t.createElement(t.Fragment,{key:e.id},t.createElement(jh.Item,{subtext:l,thumbnail:t.createElement(_h,{variant:"clean",icon:t.createElement(AE,{type:r}),shape:"square"}),rightElements:t.createElement(jC,{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(Fx(t),[e])}))}(e.id)}},i),n&&t.createElement(OC,{io:e,onDispatch:o,key:"".concat(e.id,"-transformation")}),t.createElement(jh.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(jh.Item,{key:"add-button",onClick:function(){var e=aw();o({type:"addTransformation",payload:{id:e}}),c((function(t){return[].concat(Fx(t),[e])}))},thumbnail:t.createElement(_h,{icon:t.createElement(qs,null),shape:"square"})},"Add transformation"),t.createElement(jh.Divider,{key:"add-button-divider"}),t.createElement(jh.Item,{key:"advanced-button",subtext:"Format: ".concat(n.content.format.toUpperCase()||"Auto"," • Quality: ").concat(n.content.quality),thumbnail:t.createElement(_h,{variant:"clean",icon:t.createElement(AE,{type:"advanced"}),shape:"square"}),rightElements:s?t.createElement(Bu,null):t.createElement(Tu,null),onClick:function(){u(!s)}},"Output options"),s&&t.createElement(FC,{options:n.content,onDispatch:o,key:"advanced-options"}))},MC=function(e){var t="Focus Point";e.gravity&&(t=OE(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""}},jC=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(pf,{alignItems:"center"},t.createElement(Sf,{content:"Remove transformation"},t.createElement(ef,{variant:"clean",icon:t.createElement(Ns,{fill:Dp.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(Bu,null):t.createElement(Tu,null))};function HC(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(VC,null,t.createElement(WC,null,"Transformations"),t.createElement(GC,null,1===c?"".concat(c," transformation applied"):c>1?"".concat(c," transformations applied"):"No transformations")),t.createElement($C,null,t.createElement(LC,{preset:i,onDispatch:a})))}var UC,VC=ql.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],Dp.spacing6,Dp.white,Dp.spacing4),$C=ql.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),WC=ql.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],Dp.gray800),GC=ql.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],Dp.gray600);!function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(UC||(UC={}));var qC=function(){return t.createElement(KC,null,t.createElement(ZC,null),t.createElement(JC,null,t.createElement(QC,{large:!0}),t.createElement(QC,null)))},YC=function(){return t.createElement(ek,null)},KC=ql.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),XC=Gl(["0%{background-color:","}100%{background-color:","}"],Dp.gray50a,Dp.gray100a),ZC=ql.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],XC),JC=ql.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],Dp.spacing4),QC=ql.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],Dp.spacing3,(function(e){return e.large?"110px":"60px"}),Dp.radiusSmall,XC),ek=ql.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],XC),tk=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!==UC.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(nk,{direction:"column"},r===UC.presets?d?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement(qC,{key:"preset-skeleton-".concat(e)})}))):t.createElement(PE,{baseURL:u,presets:o,onPresetSelected:n,selectedPreset:l}):null:p?t.createElement(rk,null,t.createElement(HC,{preset:i,onDispatch:c})):null)},nk=ql(pf).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%;"],Dp.white),rk=ql.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],Dp.spacing6);function ok(e){var n=e.url,r=c(null);return l((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(ik,null,t.createElement(ak,null,t.createElement(ck,null,t.createElement(zu,null)),t.createElement(lk,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(uk,null,n))),t.createElement(sk,null,t.createElement(Sf,{content:"Copy URL"},t.createElement(iw.CopyToClipboard,{text:n,onCopy:function(){wg({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(ef,{variant:"clean",icon:t.createElement(Zs,null),"aria-label":"Copy to clipboard"}))),t.createElement(bE,{alwaysVisible:!0,presetURL:n})))}var ik=ql.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;"],Dp.white,Dp.radiusLarge,Dp.elevationStatic),ak=ql.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),ck=ql.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],Dp.spacing5,Dp.spacing4,Dp.gray600),lk=ql.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;"],Dp.gray800,Dp.fontSize100),sk=ql.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],Dp.spacing2),uk=ql.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]);function dk(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=Rx(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(vk,null,t.createElement(yk,{justifyContent:"space-between",alignItems:"center"},t.createElement(bk,null,t.createElement(ef,{variant:"clean",icon:t.createElement(au,null),"aria-label":"Go back",onClick:s})),l===UC.presets&&i&&t.createElement(Ck,{variant:"clean",onClick:p,icon:t.createElement(RE,null)},"Transform"),l===UC.transformations&&("function"==typeof d&&f?t.createElement(wk,null,t.createElement(Ck,{variant:"primary",onClick:d},"Apply transformations")):t.createElement(Ck,{variant:"primary",onClick:u},"Done"))),t.createElement(Ek,{hideBottomBar:c},n&&t.createElement(gk,{src:v,alt:"",isImageLoading:h,onLoad:function(){g(!1)}}),h&&t.createElement(YC,null)),!c&&t.createElement(xk,null,t.createElement(ok,{url:n})))}var pk,fk,mk,hk,gk=ql.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(Dp.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),vk=ql.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-1"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),yk=ql(pf).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-2"})(["height:90px;width:100%;"]),bk=ql.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-3"})(["margin-left:",";"],Dp.layoutSpacing1),wk=ql.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-4"})(["display:flex;gap:",";"],Dp.spacing4),xk=ql.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],Dp.spacing5),Ek=ql.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&&Tl(["margin-bottom:",";"],Dp.spacing8)})),Ck=ql(ef).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-7"})(["float:right;margin-right:",";"],Dp.layoutSpacing1),kk=function(e){return e.data},Sk=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},_k=null===(pk=document.querySelector('meta[name="x-csrf-token"]'))||void 0===pk?void 0:pk.getAttribute("content"),Ik={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(fk=window)||void 0===fk?void 0:fk.csrf)||(null===(mk=window)||void 0===mk||null===(hk=mk.Bynder)||void 0===hk?void 0:hk.csrf_token)||_k},Bk=zx.create({headers:Ik}),Tk=function(){return"/v7/dat/presets/",Bk.get("/v7/dat/presets/",undefined).then(kk).catch(Sk)},Nk={id:"",transform:null,overlay:null,filter:null},zk={name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0};function Dk(e,t){var n,r=function(){return e.content.io.map((function(e){return Px({},e)}))};switch(t.type){case"init":return zk;case"edit":return Px(Px({isValid:!0},t.payload),{},{content:Px(Px({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return Px(Px({},e),{},{id:aw()})}))})});case"addTransformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:[].concat(Fx(r()),[Px(Px({},Nk),{},{id:t.payload.id,transform:"fill"})])})});case"deleteTransformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return Px(Px({},e),{},(Ox(n={},t.type,t.payload),Ox(n,"content",Px(Px({},e.content),{},{io:r()})),n));case"format":case"quality":return Px(Px({},e),{},{content:Px(Px({},e.content),{},Ox({io:r()},t.type,t.payload))});case"transformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?Px({},e):Px(Px({},Pk(t.payload.value)),{},Ox({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 Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?Px({},e):Px(Px({},e),{},Ox({},t.type,t.payload.value))}))})});default:return e}}var Pk=function(e){switch(e){case"fill":case"fit":case"extend":case"scale":return Px(Px({},Nk),{},{height:1e3,width:1e3});case"crop":return Px(Px({},Nk),{},{height:1e3,width:1e3,path:"square"});case"background":return Px(Px({},Nk),{},{color:"FFF"});case"border":return Px(Px({},Nk),{},{color:"FFF",width:1});case"rotate":return Px(Px({},Nk),{},{angle:0});case"opacity":return Px(Px({},Nk),{},{amount:100});case"blur":return Px(Px({},Nk),{},{radius:0});case"text":return Px(Px({},Nk),{},{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 Px(Px({},Nk),{},{amount:0})}},Ok=ql.div.withConfig({displayName:"FlexContainer",componentId:"sc-inplsu-0"})(["display:flex;min-height:0;height:100%;"]);ql.div.withConfig({displayName:"NameIconContainer",componentId:"sc-i27a7s-0"})(["display:flex;min-width:0;"]),ql.div.withConfig({displayName:"DateContainer",componentId:"sc-i27a7s-1"})(["width:385px;font-size:",";color:",";"],Dp.fontSize75,Dp.gray600),ql.div.withConfig({displayName:"Name",componentId:"sc-i27a7s-2"})(["font-size:",";color:",";flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],Dp.fontSize100,Dp.gray800),ql.div.withConfig({displayName:"DescriptionContainer",componentId:"sc-i27a7s-3"})(["display:flex;flex-direction:column;flex:1;min-width:0;padding:0 ",";"],Dp.spacing4),ql.div.withConfig({displayName:"Description",componentId:"sc-i27a7s-4"})(["font-size:",";color:",";"],Dp.fontSize75,Dp.gray600),ql.div.withConfig({displayName:"Actions",componentId:"sc-i27a7s-5"})(["display:flex;margin-left:",";justify-content:end;"],Dp.spacing4),ql.tr.withConfig({displayName:"Container",componentId:"sc-i27a7s-6"})(["height:72px;&:not(:last-child){border-bottom:solid 1px ",";}"],Dp.gray50),ql.th.withConfig({displayName:"Th",componentId:"sc-945e4m-0"})(["color:",";font-size:",";"],Dp.gray800,Dp.fontSize100),ql.table.withConfig({displayName:"Table",componentId:"sc-945e4m-1"})(["width:100%;"]),ql.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:",";"],Dp.spacing4,Dp.spacing7,Dp.spacing5,Dp.spacing6,Dp.white),ql.h3.withConfig({displayName:"Title",componentId:"sc-405vyk-1"})([""," margin:0;"],df.uiTextL);function Ak(e){var n,o=e.transformBaseUrl,i=e.transformation,c=e.setTransformation,l=e.closeDat,s=La(),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(Lk,null,t.createElement(Mk,{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(ug,{isOpen:!!m,title:"Transformations not yet applied",container:d,onClose:b,actionPrimary:t.createElement(ef,{variant:"primary",onClick:function(){v(null==m?void 0:m.url,null==m?void 0:m.preset),b()}},"Apply transformations"),actionSecondary:t.createElement(ef,{variant:"secondary",onClick:b},"Cancel"),actionTertiary:t.createElement(ef,{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 Rk,Fk,Lk=ql.div(Rk||(Rk=_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"])),Dp.white,Dp.radiusBase),Mk=ql((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?UC.presets:UC.transformations,v=Rx(r(n),2),y=v[0],b=v[1],w=Rx(r(g),2),x=w[0],E=w[1],C=Rx(r(""),2),k=C[0],S=C[1],_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Px(Px({},zk),{},{content:Px(Px({},zk.content),{},{io:t})}),o=Rx(r([]),2),i=o[0],l=o[1],s=Rx(r(!1),2),u=s[0],d=s[1],p=Rx(f(Dk,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(){Tk().then((function(e){g.current&&(l(e.presets),d(!1))})).catch((function(e){g.current&&(d(!1),wg({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,z=_.defaultValues,D=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,z);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(UC.transformations)}),[i,l]),t.createElement(Ok,null,t.createElement(dk,{url:y,canViewTransformations:l,activeTab:x,onApply:m?function(){return m(y,B)}:void 0,onBack:function(){return h(y,B)},hasActiveChanges:D,onDone:function(){i||D?i&&E(UC.presets):p(y,B)},onShowTransformations:function(){l&&E(UC.transformations)},hideBottomBar:u}),t.createElement(tk,{onPresetSelected:function(e){b(""!==e?n.split("/transform")[0]+"/transform/".concat(e,"/").concat(EE(n),"/"):n),S(e)},activeTab:x,presets:I,preset:B,dispatch:T,selectedPreset:k,isLoading:N,baseURL:n,canViewPresets:i,canViewTransformations:l}))}))(Fk||(Fk=_a(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),jk=n(null);function Hk(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(jk.Provider,{value:d},e.children,l&&t.createElement(Ak,{transformBaseUrl:l,transformation:i,setTransformation:a,closeDat:function(){return s("")}}))}function Uk(){var e=i(jk);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function Vk(e){var n,o,i,c,l=e.transformBaseUrl,s=e.asset,u=e.toggleDropdown,d=Uk(),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(jh.Divider,null),t.createElement(Wk,{thumbnail:p&&0!==v?t.createElement(_h,{imageUrl:h,"data-testid":"thumbnail-image"}):t.createElement(_h,{icon:t.createElement(fu,null),"data-testid":"crop-icon"}),rightElements:t.createElement(Du,null),onClick:function(){u(),f(l,s)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var $k,Wk=ql(jh.Item)($k||($k=_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"]))),Gk=n(null);function qk(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=Nv(),l=c.selectionMode,s=c.language,u=Ay(),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,Uy(r,u,s)]:[3,2];case 1:e=o.sent(),d||Av(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=zv(),f=Uk().transformation;function m(){c([])}function h(e){c((function(t){var n=e.filter((function(e){return!Yk(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!Yk(t,e)})),r=e.filter((function(e){return Yk(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 Yk(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(Gk.Provider,{value:y},e.children)}function Yk(e,t){return e.some((function(e){return e.value.id===t.id}))}function Kk(){var e=i(Gk);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function Xk(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,c=e.style,l=zv(),s=Ta()[1],u=Kk(),d=Nv().hideExternalAccess;return t.createElement("div",{id:r.id,style:c,className:hv("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(Kf,{contextAction:!d&&t.createElement(Kf.ContextActionButton,{"aria-label":qg("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(Ls,null)),selectButtonAriaLabel:qg(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(Kf.Frame,null,t.createElement(Kf.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(Kf.Img,{key:e,src:e,alt:r.name})})))),t.createElement(Kf.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},kv(r.assetCount,qg("{} asset"),qg("{} assets")))))}function Zk(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 Jk(e,t){if(!e)throw new Error("Invariant failed")}function Qk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eS(){return eS=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},eS.apply(this,arguments)}function tS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var nS=new Map,rS=new Map,oS=new Map,iS=0;function aS(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(nS.has(e)&&Jk(!1),e){var c=function(e){return e?oS.has(e)?oS.get(e):(iS+=1,oS.set(e,iS.toString()),oS.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),l=rS.get(c);l||(l=new IntersectionObserver(lS,n),c&&rS.set(c,l));var s={callback:t,element:e,inView:!1,observerId:c,observer:l,thresholds:l.thresholds||(Array.isArray(a)?a:[a])};return nS.set(e,s),l.observe(e),s}}function cS(e){if(e){var t=nS.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&nS.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&oS.delete(o),r&&!i&&r.disconnect(),nS.delete(e)}}}function lS(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=nS.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 sS=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 Qk(tS(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),Qk(tS(t),"node",null),Qk(tS(t),"handleNode",(function(e){t.node&&(cS(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),Qk(tS(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||Jk(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(cS(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(cS(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(cS(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;aS(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",eS({ref:this.handleNode},c),o)},r}(m);Qk(sS,"displayName","InView"),Qk(sS,"defaultProps",{threshold:0,triggerOnce:!1});var uS={inView:!1,entry:void 0};function dS(e){var n=function(e){void 0===e&&(e={});var t=c(),n=r(uS),o=n[0],i=n[1];return[u((function(n){t.current&&(cS(t.current),e.triggerOnce||i(uS)),n&&aS(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&cS(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(Ey,{className:hv(!i&&"hidden")})))}function pS(){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 fS(e){return t.createElement(wS,null,t.createElement(xS,null,t.createElement(pS,null),t.createElement(ES,null)),t.createElement(CS,null,qg("No results found")),t.createElement(kS,null,qg("Try adjusting the filter to find assets.")),t.createElement(SS,{variant:"primary",title:qg("Reset filters"),onClick:e.onReset},qg("Reset filters")))}var mS,hS,gS,vS,yS,bS,wS=ql.div(mS||(mS=_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"]))),xS=ql.div(hS||(hS=_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"])),Dp.gray25),ES=ql(js)(gS||(gS=_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"])),Dp.spacing2,Dp.gray300),CS=ql.h1(vS||(vS=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),Dp.spacing6,Dp.fontSize400),kS=ql.span(yS||(yS=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),Dp.spacing5,Dp.colorTextDisabled),SS=ql(ef)(bS||(bS=_a(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),Dp.spacing7);function _S(e){var n,o,i=r(null),a=i[0],c=i[1],l=Zk(a).dimensions,s=Kk().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(_v,{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(fS,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(dS,{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(Xk,{key:e.id,isSelected:s.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}function IS(){var e=Oa("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=Ay(),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,Mv("\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||(Av(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(dv,{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"},kv(i.data.value.collections.totalCount,qg("{} collection"),qg("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(xv,{options:["CREATED_AT","NAME"]}),t.createElement(pv,null)),t.createElement(_S,{connection:i}))}var BS=n(null);function TS(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 NS(t,e)}))}function k(e){u((function(t){return zS(t,e)}))}function S(e){f((function(t){return NS(t,e.id)})),E((function(t){var n;return xa(xa({},t),((n={})[e.id]=e,n))}))}function _(e){f((function(t){return zS(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 NS(t,e)}))}function B(e){g((function(t){return zS(t,e)}))}function T(){u([]),f([]),E({}),g([])}a((function(){b(!c&&void 0)}),[c]);var N=p.map((function(e){return x[e]})),z=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(BS.Provider,{value:z},n)}function NS(e,t){return e.includes(t)?e:Sa(Sa([],e,!0),[t],!1)}function zS(e,t){return e.filter((function(e){return e!==t}))}function DS(){var e=i(BS);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function PS(e){return qg({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function OS(e){switch(e){case"AUDIO":return Gs;case"DOCUMENT":return tu;case"IMAGE":return vu;case"VIDEO":return Ws;case"ARCHIVE":return Ys}}function AS(e){return t.createElement(FS,{icon:t.createElement(_u,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right",isVisible:e.isVisible})}var RS,FS=ql(ef)(RS||(RS=_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 LS(e){return t.createElement(jS,{icon:t.createElement(Su,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left",isVisible:e.isVisible})}var MS,jS=ql(ef)(MS||(MS=_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 HS(e){var n=r(0),o=n[0],i=n[1],l=c(null),s=Zk(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:hv("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(LS,{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(AS,{isVisible:h,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function US(e){var n=hv("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 VS(e){return t.createElement(US,{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(Iu,{onClick:e.onClick,title:qg("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function $S(){var e=DS(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(GS,{variant:"clean",isSmall:!0,onClick:e.clear},qg("Clear filters"));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(HS,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=OS(n);return t.createElement(VS,{key:n,onClick:function(){return e.removeAssetType(n)},title:PS(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(VS,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(VS,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var WS,GS=ql(ef)(WS||(WS=_a(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),qS=["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 YS(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return qS.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 KS(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function XS(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=Nv(),a=i.hideExternalAccess,c="SingleSelectFile"===i.selectionMode&&n;return!c&&a?null:c||a?c&&a?t.createElement(Kf.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(fu,null)):t.createElement(Wh,{trigger:function(e){var n=e.isOpen,r=Ea(e,["isOpen"]);return t.createElement(Kf.ContextActionButton,xa({"aria-label":"Menu",isPressed:n},r),t.createElement(Nu,null))},isClosedOnScroll:!0},t.createElement(Wh.Item,{icon:t.createElement(Ls,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(fu,null),onClick:o},"New transformation")):t.createElement(Kf.ContextActionButton,{"aria-label":qg("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(Ls,null))}function ZS(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=Uk(),b=y.openDat,w=y.setTransformation,x=Nv().theme,E=function(e){return[e.isArchived&&qg("archived"),e.isWatermarked&&qg("watermarked"),e.isLimitedUse&&qg("limited")].filter((function(e){return e})).join(", ")}(s),C=KS(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]);var k=function(e){void 0!==p&&(e.stopPropagation(),w(),p(s,e))};return t.createElement(t_,{id:s.id,theme:x,isOutlined:(u||d)&&void 0!==(null==x?void 0:x.colorPrimary),fadeIn:l,className:hv("group",i),"data-drag-select-id":s.id},t.createElement(Kf,{contextAction:t.createElement(XS,{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 b(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,s)}}),selectButtonAriaLabel:qg(u?"Deselect":"Select"),onSelect:k,onClick:k,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(Kf.Frame,{icon:E?t.createElement(n_,{color:"black-alpha",limitWidth:!!C,"data-testid":"asset-tag"},t.createElement(Df,null,E)):void 0,"data-testid":"asset-type",badge:C},t.createElement(Kf.Images,null,YS(s)&&t.createElement(Kf.Img,{src:YS(s),alt:s.name,contentResize:"fit"}))),m,t.createElement(r_,{"data-testid":"asset-name"},s.name),!!(null==g?void 0:g.length)&&t.createElement(Kf.AdditionalInfo,null,t.createElement("dl",{className:"text-body-400 text-sm flex flex-col gap-y-px"},g&&g.map((function(e){var n=e.label,r=e.options.map((function(e){return e.label})).join(", ");return t.createElement("div",{className:"flex flex-wrap",key:n},t.createElement("dt",{className:"text-body-300 pr-1"},n,":"),t.createElement("dd",{className:""},r))}))))))}var JS,QS,e_,t_=ql.div(JS||(JS=_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"])),Dp.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})),n_=ql(Pp)(QS||(QS=_a(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.limitWidth&&"max-width: 142px;"})),r_=ql.p(e_||(e_=_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 o_(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 i_(e,t){return e===t}function a_(e){return"function"==typeof e?function(){return e}:e}function c_(e,t,n){var o=n&&n.equalityFn||i_,i=function(e){var t=r(a_(e)),n=t[0],o=t[1];return[n,u((function(e){return o(a_(e))}),[])]}(e),l=i[0],s=i[1],d=o_(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 l_={x:null,y:null},s_=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,l=e.onDeselect,s=e.onDragStart,d=e.onDragEnd,p=r(l_),f=p[0],m=p[1],g=r(l_),v=g[0],y=g[1],b=c_(v,10,{leading:!0,maxWait:10})[0],w=r(),x=w[0],E=w[1],C=La(),k=t.useMemo((function(){return d_(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=c_(k,50,{leading:!1,maxWait:50})[0],_=r([]),I=_[0],B=_[1],T=g_(I),N=c(f),z=c(v),D=c(null!==N.current.x&&null!==N.current.y&&null!==z.current.x&&null!==z.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},D.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof s&&D.current?(O(P.current),s(null!=x?x:"select")):"function"!=typeof d||D.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[D.current,x]);var A=function(e){N.current=e,m(e),F()},R=function(e){z.current=e,y(e),F()},F=function(){D.current=null!==N.current.x&&null!==N.current.y&&null!==z.current.x&&null!==z.current.y},L=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})}),[]),M=u((function(){C.removeEventListener("mousemove",L),C.removeEventListener("mouseup",M),A(l_),R(l_)}),[L,C]),j=u((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",L),C.addEventListener("mouseup",M),A({x:n,y:t}))}),[L,M,C]);a((function(){var e=C.querySelector(n);return e&&(m_(C),e.addEventListener("mousedown",j)),function(){e&&(e.removeEventListener("mousedown",j),h_(C))}}),[n,j,L,M,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=f_(t);return t instanceof HTMLElement&&p_(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);B(t)}),[S,C]),a((function(){if(T&&T!==I&&D.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,D]);var H=C.querySelector("#".concat("drag-select-container"));return D.current&&H?h.createPortal(t.createElement("div",xa({},o,{style:o.style?xa(xa(xa({},u_),o.style),k):xa(xa({},u_),k),"data-testid":"drag-selection"})),H):null},u_={position:"absolute",zIndex:100},d_=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)}},p_=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},f_=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},m_=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},h_=function(e){var t=e.querySelector("#".concat("drag-select-container"));t&&t.remove()},g_=function(e){var t=c();return a((function(){t.current=e})),t.current};function v_(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=Zk(_.current).dimensions,B=r([]),T=B[0],N=B[1],z=r("inactive"),D=z[0],P=z[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 F(e){return("inverse"!==D||!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(_v,{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(s_,{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(dS,{hasNextPage:l,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(ZS,{key:e.id,isSelected:F(e),isOutlined:F(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 y_(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=Nv(),h=Kk().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=Kk(),v=g.selectAssets,y=g.toggleAssets,b=Pa().setSearch,w=DS();if(a((function(){s||f(!1)}),[s]),"Failure"===l.tag)return t.createElement(dv,{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(v_,{assets:b_(l),count:x,isLoading:s,loadMore:u,hasNextPage:d,theme:m.theme,selectionMode:m.selectionMode,selectedAssetIds:h,onSelect:v,onToggle:y,emptyStateElement:t.createElement(fS,{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},kv(x,qg("{} asset"),qg("{} assets"))),e.showActiveFilters&&t.createElement($S,null),t.createElement(xv,null),t.createElement(pv,null)))}function b_(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 w_(e){var n=Oa("collection").value,r=Ta()[1],o=ba("collection")[0],i=Nv(),a=i.assetTypes,c=i.language,l=Ly({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"},qg("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(y_,{connection:l,totalCount:e.collection.assetCount}))}var x_,E_,C_,k_,S_=ql(tm)(x_||(x_=_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"])),Dp.fontSize75,(function(e){return e.isLoading&&!e.isChecked?"wait":"pointer"})),__=ql.li(E_||(E_=_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"])),Dp.spacing2,Dp.spacing5,Dp.gray25),I_=ql.div(C_||(C_=_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":Dp.gray500})),B_=ql.span(k_||(k_=_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"])),Dp.spacing4);function T_(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(__,null,t.createElement(S_,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option",isLoading:e.isLoading},t.createElement(I_,{isChecked:n},t.createElement(B_,{title:e.metapropertyOption.label},t.createElement(Df,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount))))}function N_(e){return t.createElement(P_,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(O_,null,e.metaproperty.options.map((function(n){return t.createElement(T_,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var z_,D_,P_=ql.div(z_||(z_=_a(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),Dp.spacing5),O_=ql.ul(D_||(D_=_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 A_(e){return t.createElement(F_,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(N_,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var R_,F_=ql.div(R_||(R_=_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"])),Dp.spacing4);function L_(e){var n,r,o=DS(),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(vv,{key:n.id,title:t.createElement(M_,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(N_,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(A_,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function M_(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:hv("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function j_(e){var n=DS(),r=n.tags.includes(e.tag.name),o=hv("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(US,{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 H_(e){var n=Sa([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(vv,{title:t.createElement(U_,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(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",qg("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(j_,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function U_(){return t.createElement(t.Fragment,null,t.createElement(Ps,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},qg("Tags")))}function V_(e){var n=DS(),r=n.assetTypes.includes(e.type),o=OS(e.type);return t.createElement(__,{"data-testid":"advanced-options"},t.createElement(S_,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},isLoading:e.isLoading,"data-testid":"".concat(PS(e.type),"-filter")},t.createElement(I_,{isChecked:r},t.createElement(o,null),t.createElement(W_,null,PS(e.type)),t.createElement("span",{className:"fade-in-down"},e.count))))}var $_,W_=ql.div($_||($_=_a(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),Dp.spacing3);function G_(e){var n=Nv().assetTypes,r=n.filter((function(t){return Y_(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(vv,{title:t.createElement(q_,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},qg("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(V_,{key:n,type:n,count:Y_(e.count,n),isLoading:e.isLoading})}))))}))}function q_(){return t.createElement(t.Fragment,null,t.createElement(xu,{className:"mr-2 inline w-6 h-6"}),qg("Advanced"))}function Y_(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 K_(){var e=DS(),n=Oa("assets").value,o=Nv(),i=o.assetTypes,c=o.language;Kg(c);var l=function(e){var t=this,n=Ay(),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,Mv("\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||(Av(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(X_,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(HS,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(L_,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(H_,{tags:f.nodes,isLoading:u}),t.createElement(G_,{isLoading:u,count:m.assetType})))}function X_(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var Z_,J_,Q_=Wl(J_||(J_=_a(["",""],["",""])),Tl(Z_||(Z_=_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 eI(){var e=Ta()[0],n=Oa(e.page),o=n.value,i=n.isLoading,c=o_(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?qg("Search for collections"):qg("Search for assets");return t.createElement(nI,{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(js,null),iconRight:i?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Ey,{className:"relative right-0"})):void 0,hasClearButton:!i&&!!o})}var tI,nI=ql(Rm)(tI||(tI=_a(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function rI(){var e=Ta(),n=e[0],r=e[1];return t.createElement(iI,null,t.createElement(ef,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},qg("Assets")),t.createElement(ef,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},qg("Collections")))}var oI,iI=ql.div(oI||(oI=_a(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),Dp.spacing2);function aI(){var e,n="authenticated"===(null===(e=i(Dy))||void 0===e?void 0:e.status)||!1,r=ly(),o=Ay(),a=void 0!==Nv().assetFilter;return n||r||!a?t.createElement(sI,null,!a&&t.createElement(t.Fragment,null,t.createElement(rI,null),t.createElement(eI,null)),t.createElement(uI,null,n&&!(null==o?void 0:o.hideLogout)&&t.createElement(ef,{variant:"clean",onClick:function(){return null==o?void 0:o.logout()},rightIcon:t.createElement(zs,null)},qg("Log out")),r&&t.createElement(ef,{variant:"clean",onClick:function(){return r.onClose()},title:qg("Close"),icon:t.createElement(Iu,null)}))):null}var cI,lI,sI=ql.nav(cI||(cI=_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"])),Dp.gray10,Dp.spacing5,Dp.spacing4),uI=ql.div(lI||(lI=_a(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function dI(){var e=DS(),n=e.assetTypes,r=e.metaproperties,o=e.tags,i=e.isLimited,a=Oa("assets").value,c=ba("assets")[0],l=Nv(),s=l.assetFilter,u=l.assetTypes,d=l.language,p=Ly(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(y_,{connection:p,showActiveFilters:void 0===s})}function pI(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,Mv("\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 Av(r=o.sent())?[2,r]:[2,Dv(r.value.node)]}}))}))}function fI(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}function mI(e){var n=e.asset,o=e.onChange,i=r({status:"Loading"}),c=i[0],l=i[1],s=Ay(),u=Nv().assetFieldSelection,d=Uk().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,pI(e.id,t,n)];case 1:return Ov(r=o.sent())&&r.value.files?[2,Dv(Fv(r.value.files))]:[2,Pv("Error retrieving asset files")]}}))}))}(n,s,u).then((function(e){if(Av(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(yI,null,t.createElement(vv,{title:t.createElement(hI,{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(wv,{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(Ts,{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(nu,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},fI(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(Vk,{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 hI(e){var n=e.state;return"Loading"===n.status?t.createElement(Sv,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(bI,null,"Custom transformation"===n.key&&t.createElement(fu,null),fI(n.key)):t.createElement(t.Fragment,null,"Error")}var gI,vI,yI=ql.div(gI||(gI=_a(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),Dp.spacing5),bI=ql.div(vI||(vI=_a(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),Dp.spacing4);function wI(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(ku,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,qg("Retry")):t.createElement(t.Fragment,null,kv(r,qg("Add asset"),qg("Add assets")))}function xI(e){var n,o=Nv(),i=o.assetFieldSelection,l=o.onSuccess,s=o.selectionMode,u=Kk().preselectedAssetIds,d=Ay(),p=c(!0),f=r("SingleSelectFile"===s?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=f[0],h=f[1];function g(e,t){if(Av(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(mI,{asset:e.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(ef,{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)?pI(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 }\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,Mv(r,a,t)];case 1:if(Av(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,Dv(f)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},t.createElement(wI,{status:m.status,numberOfSelectedItems:e.selection.length})))}function EI(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(S_,{"aria-label":qg("Deselect"),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"},t.createElement(kI,null,o)))}var CI,kI=ql.span(CI||(CI=_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"])),Dp.fontSize100);function SI(e){var n=e.asset,r=Kk();return t.createElement(EI,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(II,{variant:"content",imageUrl:YS(n),size:"m"}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),KS(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},KS(n)))}var _I,II=ql(_h)(_I||(_I=_a(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),Dp.spacing4);function BI(e){var n=e.collection,r=Kk();return t.createElement(EI,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(NI,{variant:"clean",icon:t.createElement(yu,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"},kv(n.assetCount,qg("{} asset"),qg("{} assets"))))}var TI,NI=ql(_h)(TI||(TI=_a(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),Dp.spacing4);function zI(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(SI,{key:e.value.id,asset:e.value}):t.createElement(BI,{key:e.value.id,collection:e.value})})))}function DI(){var e=Kk(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(AI,{"data-testid":"selection-footer"},t.createElement(RI,null,t.createElement(vv,{buttonKind:"secondary",direction:"Up",title:qg("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(zI,{selection:n})})),t.createElement(ef,{variant:"clean",onClick:r},qg("Clear selection"))),t.createElement(xI,{selection:n}))}var PI,OI,AI=ql.div(PI||(PI=_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"])),Dp.layoutSpacing5,Dp.spacing6),RI=ql.span(OI||(OI=_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"])),Dp.spacing2);function FI(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;Kg(l);var v={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:m};return t.createElement(Ny,null,t.createElement(Ba,null,t.createElement(ay,null,t.createElement(Hk,null,t.createElement(ya,null,t.createElement(TS,{hideLimitedUse:g},t.createElement(Da,{defaultValue:a},t.createElement(Tv,{value:v},t.createElement(qk,{preselectedAssetIds:null!=h?h:[]},t.createElement(Q_,{theme:v.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(aI,null),t.createElement(LI,null),t.createElement(DI,null)))))))))))}function LI(){var e=Ta()[0],n=Nv().assetFilter;return t.createElement(t.Fragment,null,"assets"===e.page&&void 0===n&&t.createElement(K_,null),"assets"===e.page&&t.createElement(dI,null),"collections"===e.page&&t.createElement(IS,null),"collection"===e.page&&t.createElement(w_,{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__?Fr.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)}(Di,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__)&&Fr.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{FI as CompactView,Oy as Login,sy as Modal};
196
+ `;const Dp={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 Pp({...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(Op,{color:r,hasBorder:o,isPillShaped:i,isSecondary:l,isSmall:c,...e},a&&t.createElement(Ap,{isSmall:c},a),n)}const Op=ql.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?Dp.spacing2:"6px"),(e=>e.isPillShaped?Dp.radiusPill:Dp.radiusMedium),Dp.white,Dp.fontSize50,(e=>{if(!e.isSecondary&&e.color){const t={brand:Dp.brandPrimary500,gray:Dp.gray400,black:Dp.gray900,"black-alpha":Dp.gray600a,blue:Dp.blue500,red:Dp.red400};return e.hasBorder?Tl(["border-color:",";color:",";"],t[e.color],t[e.color]):Tl(["background-color:",";"],t[e.color])}if(e.isSecondary)return Tl(["border-color:",";background-color:",";color:",";"],e.hasBorder?Dp.gray100:"transparent",e.hasBorder?Dp.white:Dp.gray100,Dp.gray800)})),Ap=ql.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?Dp.spacing1:Dp.spacing2),Dp.spacing1),Rp=Tl(["color:",";font-size:",";font-family:",";line-height:",";"],Dp.colorText,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase);ql.div.withConfig({displayName:"BaseStyles",componentId:"sc-11co88f-2"})(["",""],Rp),ql.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":Dp.radiusPill),(e=>"brand"===e.color?Dp.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${Dp["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${Dp["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${Dp.gray100a}\n\t\t\t`));const Fp=Gl(["to{transform:translateX(-40px);}"]),Lp=`rgb(${Dp["white-rgb"]} / 0.15)`,Mp=`rgb(${Dp["gray1000-rgb"]} / 0.15)`;ql.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;"],Lp,Mp,Mp,Lp,Lp,Mp,Mp,Fp);const jp=ql.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;}"," ",";",""],Dp.brandRadiusBase,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Tl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px !important;padding:0 "," !important;"],Dp.spacing5)),(e=>{if("primary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["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;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,e.isPressed&&t,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryFocusRing,t,Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonSecondaryBorderActive,Dp.componentButtonSecondaryFillActive,Dp.componentButtonSecondaryColorActive);return Tl(["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;}"],Dp.componentButtonSecondaryBorder,Dp.componentButtonSecondaryFill,Dp.componentButtonSecondaryColor,e.isPressed&&t,Dp.componentButtonSecondaryBorderHover,Dp.componentButtonSecondaryFillHover,Dp.componentButtonSecondaryColorHover,Dp.elevation1,Dp.componentButtonSecondaryBorderFocus,Dp.componentButtonSecondaryFillFocus,Dp.componentButtonSecondaryColorFocus,Dp.componentButtonSecondaryFocusRing,t,Dp.componentButtonSecondaryBorderDisabled,Dp.componentButtonSecondaryFillDisabled,Dp.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonCleanBorderActive,Dp.componentButtonCleanFillActive,Dp.componentButtonCleanColorActive);return Tl(["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;}"],Dp.componentButtonCleanFill,Dp.componentButtonCleanColor,e.isPressed&&t,Dp.componentButtonCleanFillHover,Dp.componentButtonCleanColorHover,Dp.componentButtonCleanBorderFocus,Dp.componentButtonCleanColorFocus,Dp.componentButtonCleanFocusRing,t,Dp.componentButtonCleanFillDisabled,Dp.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonDangerBorderActive,Dp.componentButtonDangerFillActive,Dp.componentButtonDangerColorActive);return Tl(["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;}"],Dp.componentButtonDangerFill,Dp.componentButtonDangerColor,Dp.elevation1,e.isPressed&&t,Dp.componentButtonDangerBorderHover,Dp.componentButtonDangerFillHover,Dp.componentButtonDangerColorHover,Dp.elevation2,Dp.componentButtonDangerBorderFocus,Dp.componentButtonDangerColorFocus,Dp.componentButtonDangerFocusRing,t,Dp.componentButtonDangerBorderDisabled,Dp.componentButtonDangerFillDisabled,Dp.componentButtonDangerColorDisabled)}return""})),Hp=ql.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;}"," ",";",""],Dp.brandRadiusBase,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Tl(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px;padding:0 ",";"],Dp.spacing5)),(e=>{if("primary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,e.isPressed&&t,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,t,e.isFocusVisible&&Tl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFocusRing),Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonSecondaryBorderActive,Dp.componentButtonSecondaryFillActive,Dp.componentButtonSecondaryColorActive);return Tl(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Dp.componentButtonSecondaryBorder,Dp.componentButtonSecondaryFill,Dp.componentButtonSecondaryColor,e.isPressed&&t,Dp.componentButtonSecondaryBorderHover,Dp.componentButtonSecondaryFillHover,Dp.componentButtonSecondaryColorHover,Dp.elevation1,t,e.isFocusVisible&&Tl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonSecondaryFillFocus,Dp.componentButtonSecondaryColorFocus,Dp.componentButtonSecondaryBorderFocus,Dp.componentButtonSecondaryFocusRing),Dp.componentButtonSecondaryBorderDisabled,Dp.componentButtonSecondaryFillDisabled,Dp.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonCleanBorderActive,Dp.componentButtonCleanFillActive,Dp.componentButtonCleanColorActive);return Tl(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],Dp.componentButtonCleanFill,Dp.componentButtonCleanColor,e.isPressed&&t,Dp.componentButtonCleanFillHover,Dp.componentButtonCleanColorHover,t,e.isFocusVisible&&Tl(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonCleanColorFocus,Dp.componentButtonCleanBorderFocus,Dp.componentButtonCleanFocusRing),Dp.componentButtonCleanFillDisabled,Dp.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonDangerBorderActive,Dp.componentButtonDangerFillActive,Dp.componentButtonDangerColorActive);return Tl(["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;}"],Dp.componentButtonDangerFill,Dp.componentButtonDangerColor,Dp.elevation1,e.isPressed&&t,Dp.componentButtonDangerBorderHover,Dp.componentButtonDangerFillHover,Dp.componentButtonDangerColorHover,Dp.elevation2,t,e.isFocusVisible&&Tl(["background-color:",";color:",";box-shadow:none;&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonDangerFillFocus,Dp.componentButtonDangerColorFocus,Dp.componentButtonDangerBorderFocus,Dp.componentButtonDangerFocusRing),Dp.componentButtonDangerBorderDisabled,Dp.componentButtonDangerFillDisabled,Dp.componentButtonDangerColorDisabled)}return""})),Up=ql.div.withConfig({displayName:"Icon4",componentId:"sc-11co88f-7"})(["display:flex;align-items:center;height:100%;"]),Vp=ql(Up).withConfig({displayName:"LeftIcon1",componentId:"sc-11co88f-8"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.lastChild?`calc(${Dp.spacing2} * -1) `:Dp.spacing3),Dp.spacing2),$p=ql(Up).withConfig({displayName:"RightIcon2",componentId:"sc-11co88f-9"})(["margin-right:calc("," * -1);margin-left:",";"],Dp.spacing2,Dp.spacing3);function Wp(){return t.createElement(Yp,{viewBox:"0 0 24 24","aria-hidden":"true"},t.createElement(Kp,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const Gp=Gl(["100%{transform:rotate(360deg);}"]),qp=Gl(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),Yp=ql.svg.withConfig({displayName:"Svg",componentId:"sc-11co88f-10"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Gp),Kp=ql.circle.withConfig({displayName:"Circle",componentId:"sc-11co88f-11"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],qp),Xp=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(jp,{"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(Vp,{lastChild:!e},t.createElement(Wp,null)),e):t.createElement(t.Fragment,null,c&&t.createElement(Vp,{lastChild:!e},c),e,r&&t.createElement($p,null,r)))})),Zp=n("modern"),Jp=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}=Es();return t.createElement(Hp,{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(Vp,{"data-testid":"ds-button-loading-icon",lastChild:!e},t.createElement(Wp,null)),e):t.createElement(t.Fragment,null,o&&t.createElement(Vp,{lastChild:!e},o),e,i&&t.createElement($p,null,i)))})),Qp=d(((e,n)=>"legacy"===(i(Zp)||"modern")?t.createElement(Xp,{ref:n,...e}):t.createElement(Jp,{ref:n,...e}))),ef=Object.assign(Qp,{VersionProvider:Zp.Provider}),tf=n(null);function nf(){const e=i(tf);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const rf=ql.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\") ":Dp.gray25),(e=>"fixed"===e.height&&Tl(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),of=ql.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);"]),af=ql.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&&Tl(["position:absolute;inset:0;"]))),cf=ql.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);"]),lf=ql.div.withConfig({displayName:"BadgeContainer",componentId:"sc-11co88f-16"})(["position:absolute;right:",";bottom:",";"],Dp.spacing4,Dp.spacing4),sf=ql.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;}}"],Dp.spacing4,Dp.spacing4,Dp.white,Dp.gray100a),uf=ql.div.withConfig({displayName:"ProgressContainer",componentId:"sc-11co88f-18"})(["position:absolute;bottom:0;left:0;width:100%;"]),df={paragraphS:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize75,Dp.lineHeightText),paragraphM:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize100,Dp.lineHeightText),paragraphL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize200,Dp.lineHeightText),uiTextXS:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize50),uiTextS:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize75),uiTextM:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize100),uiTextL:Tl(["font-weight:normal;font-size:",";line-height:24px;"],Dp.fontSize200),headingXS:Tl(["font-weight:600;font-size:",";line-height:",";"],Dp.fontSize100,Dp.lineHeightHeading),headingS:Tl(["font-weight:600;font-size:",";line-height:",";"],Dp.fontSize200,Dp.lineHeightHeading),headingM:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize400,Dp.lineHeightHeading),headingL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize600,Dp.lineHeightHeading),headingXL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize800,Dp.lineHeightHeading),headingXXL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize1000,Dp.lineHeightHeading)};function pf({children:e,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...c}){return t.createElement(ff,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a,...c},e)}const ff=ql.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=>Dp[`spacing${e.gap}`]),(e=>e.justifyContent),(e=>e.alignItems));function mf(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 hf={"--white":"#ffffff","--white-rgb":mf("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":mf("#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":mf("#0099ff"),"--blue500a10":"rgb(var(--blue500-rgb) / 10%)","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":mf("#f23e0d"),"--red500a10":"rgb(var(--red500-rgb) / 10%)","--red500a50":"rgb(var(--red500-rgb) / 50%)","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":mf("#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":bf("brandPrimary700","#0087e0"),"--brandPrimary600":bf("brandPrimary600","#0095eb"),"--brandPrimary500":bf("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":bf("brandPrimary500-rgb",mf("#00aaff")),"--brandPrimary300":bf("brandPrimary300","#b3e6ff"),"--brandPrimary100":bf("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)"},gf={"--gray1000":"#ffffff","--gray1000-rgb":mf("#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)"},vf=Wl(["",""],Tl([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",yf(hf),"ds-dark-theme",yf(gf)));function yf(e){const t=Object.entries(e).map((e=>e.join(":")));return t.join(";")+";"}function bf(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}const wf={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}},xf=t.createContext({zIndexBase:1031});function Ef({children:e,noTheme:n,zIndexBase:r=1031,buttonVersion:i="modern",dateFnsLocale:a}){const c=o((()=>({zIndexBase:r,dateFnsLocale:a})),[a,r]);return t.createElement(xf.Provider,{value:c},t.createElement(ks.Provider,{value:wf},t.createElement(ef.VersionProvider,{value:i},!n&&t.createElement(vf,null),e)))}const Cf=["modal","datepicker","dropdown","tooltip"];function kf(e){return i(xf).zIndexBase+Cf.indexOf(e)}function Sf({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(ad.IDLE),v=c(!1),y=u((function(){clearTimeout(h.current),h.current=null,g.current=ad.IDLE}),[]);function b(e,t){if(g.current===ad.ENTERING&&h.current&&y(),f){if(t)return m(!1),h.current=null,void(g.current=ad.IDLE);g.current=ad.LEAVING,h.current=window.setTimeout((function(){m(!1),h.current=null,g.current=ad.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===ad.LEAVING&&h.current&&y(),f||(g.current=ad.ENTERING,h.current=window.setTimeout((function(){m(!0),h.current=null,g.current=ad.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}=Es(),f=kf("tooltip"),m=void 0===i.isOpen?l||d:i.isOpen,{triggerProps:h,layerProps:g,renderLayer:v}=gd({isOpen:m,auto:!0,snap:!0,placement:_f(e),possiblePlacements:If(e),triggerOffset:8,containerOffset:8}),y="icon"in i?t.createElement(pf,{alignItems:"center"},t.createElement(Tf,null,i.icon)," ",i.content):"label"in i&&i.isLabelVertical?t.createElement("div",null,t.createElement(zf,null,i.label),t.createElement("div",null,i.content)):"label"in i&&!i.isLabelVertical?t.createElement(t.Fragment,null,t.createElement(Nf,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(Bf,{...g,zIndex:f,className:o},y)))}function _f(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 If(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 Bf=ql.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;"],df.uiTextS,(e=>e.zIndex),Dp.spacing4,Dp.spacing4,Dp.radiusBase,Dp.gray900a,Dp.gray10),Tf=ql.span.withConfig({displayName:"IconContainer3",componentId:"sc-11co88f-21"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],Dp.spacing1,Dp.spacing2,Dp.spacing1,Dp.spacing2,Dp.gray400),Nf=ql.span.withConfig({displayName:"LabelContainer",componentId:"sc-11co88f-22"})(["margin-right:",";color:",";"],Dp.spacing2,Dp.gray400),zf=ql.div.withConfig({displayName:"VerticalLabelContainer",componentId:"sc-11co88f-23"})(["color:",";"],Dp.gray400);function Df({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=Pu(r,o,"inlineSize"),c=Pu(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(Pf,{ref:d},i?t.createElement(Sf,{content:e,position:n,timing:"delay"},(n=>t.createElement("span",{...n},e))):e)}const Pf=ql.span.withConfig({displayName:"StyledText",componentId:"sc-11co88f-24"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),Of=ql.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);"]),Af=ql.div.withConfig({displayName:"ThumbnailContainer3",componentId:"sc-11co88f-26"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],Dp.spacing4),Rf=ql.div.withConfig({displayName:"Title4",componentId:"sc-11co88f-27"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],df.uiTextM,Dp.gray800),Ff=ql.div.withConfig({displayName:"Detail",componentId:"sc-11co88f-28"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],df.uiTextS,Dp.spacing2,Dp.gray600),Lf=ql.div.withConfig({displayName:"IconContainer2",componentId:"sc-11co88f-29"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],Dp.spacing2,Dp.gray600),Mf=ql.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-11co88f-30"})([""," padding:",";border-top:1px solid ",";color:",";"],df.uiTextS,(e=>"all"===e.padding?"var(--card-content-padding)":"0"),Dp.gray100a,Dp.colorText),jf=d((({children:e,isDisabled:n=!1,isPressed:r=!1,tooltip:o,"aria-label":i,...a},c)=>{const{isFocusVisible:l,focusProps:s}=Es(),u=t.createElement(Hf,{disabled:n,type:"button",isFocusVisible:l,ref:c,isPressed:r,"aria-label":i,...s,...a},e);return o?t.createElement(Sf,{timing:"delay",content:o},u):u})),Hf=ql.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;",""],Dp.spacing3,Dp.brandRadiusBase,Dp.gray100a,Dp.fontSize75,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>{const t=Tl(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],Dp.gray10,Dp.gray800,Dp.gray100a);return Tl(["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;}"],Dp["white-rgb"],Dp.gray600a,e.isPressed&&t,Dp.gray10,Dp.gray800,Dp.elevation1,Dp.elevationStatic,t,Dp["white-rgb"],Dp.gray200a,Dp.gray100a)})),Uf=ql.div.withConfig({displayName:"ImagesStyled",componentId:"sc-11co88f-32"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;"],Dp.spacing1),Vf=ql.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 $f({children:e,...n}){return t.createElement(Wf,{...n},t.createElement(Gf,null,e))}const Wf=ql.div.withConfig({displayName:"Placeholder1",componentId:"sc-11co88f-34"})(["display:grid;place-items:center;min-height:100px;"]),Gf=ql.div.withConfig({displayName:"IconContainer1",componentId:"sc-11co88f-35"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],Dp.brandRadiusBase,Dp.gray10,Dp.gray600);function qf(e){return o((()=>e+"-"+vd()),[e])}const Yf=ql.div.withConfig({displayName:"Placeholder",componentId:"sc-11co88f-36"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";"],(e=>e.backgroundColor));function Kf({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=qf("card-title"),h=o((()=>({variant:n,isSelected:r,cardTitleId:m})),[r,n,m]);return t.createElement(tf.Provider,{value:h},t.createElement(Xf,{variant:n,isSelected:r,...f},t.createElement(Zf,{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(Qf,null,i):null,c?t.createElement(Jf,{type:"button",isSelected:r,onClick:c,"aria-label":d},t.createElement(ku,null)):null))}Kf.Frame=function({children:e,progressBar:n,badge:r,icon:o,isCheckeredBackground:i=!1,height:a="fixed",...c}){const{variant:l,isSelected:s}=nf();return t.createElement(rf,{isCheckeredBackground:i,height:a,...c},"clean"===l&&s&&t.createElement(of,null),t.createElement(af,{height:a},e),t.createElement(cf,null),n?t.createElement(uf,null,n):null,r?t.createElement(lf,null,t.createElement(Pp,{color:"black-alpha"},r)):null,o?t.createElement(sf,null,o):null)},Kf.Header=function({thumbnail:e,title:n,detail:r,icon:o,isNotTruncated:i=!1,...a}){const{cardTitleId:c}=nf();return t.createElement(Of,{...a},e?t.createElement(Af,null,e):null,t.createElement(Rf,{id:c},i?n:t.createElement(Df,null,n)),r?t.createElement(Ff,null,i?r:t.createElement(Df,null,r)):null,o?t.createElement(Lf,null,o):null)},Kf.AdditionalInfo=function({children:e,padding:n="all",...r}){return t.createElement(Mf,{padding:n,...r},e)},Kf.ContextActionButton=jf,Kf.Images=function({children:e,...n}){return t.createElement(Uf,{...n},e)},Kf.Img=function({src:e,contentResize:n="fill",alt:r="",...o}){return t.createElement(Vf,{src:e,alt:r,contentResize:n,...o})},Kf.FilePlaceholder=$f,Kf.PlaceholderIcon=$f,Kf.IconPlaceholder=function({children:e,backgroundColor:n=Dp.gray25,iconColor:r=Dp.gray400a,...o}){const i=t.useMemo((()=>({color:r,size:"48px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}})),[r]);return t.createElement(Yf,{...o,backgroundColor:n},t.createElement(ks.Provider,{value:i},e))};const Xf=ql.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);"],Dp.radiusBase,Dp.gray100a,Dp.brandPrimary500,Dp.elevation1,Dp.gray100a,(e=>"outlined"===e.variant?Tl(["--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:",";}",""],Dp.spacing4,Dp.spacing5,Dp.gray200a,Dp.elevation2,e.isSelected?Tl(["--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);}"]):""):Tl(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],Dp.spacing3)),Dp.gray10),Zf=ql.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;"]),Jf=ql.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:",";}",""],Dp.spacing4,Dp.spacing4,Dp.radiusCircle,(e=>e.isSelected?"1":"var(--card-actions-opacity)"),Dp.white,Dp.white,(e=>e.isSelected&&Tl(["border:none;background:var(--userComponentCardSelectedColor,",");color:",";&:hover{background:var(--userComponentCardSelectedColorHover,",");box-shadow:",";}&:active{background:var(--userComponentCardSelectedColorActive,",");box-shadow:none;}"],Dp.brandPrimary500,Dp.white,Dp.brandPrimary600,Dp.elevation1,Dp.brandPrimary700))),Qf=ql.div.withConfig({displayName:"ActionContainer",componentId:"sc-11co88f-40"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],Dp.spacing4,Dp.spacing4);function em(){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 tm({isChecked:e=!1,isDisabled:n=!1,isIndeterminate:r=!1,inputProps:o,children:i,onChange:a=(()=>{}),id:c,...l}){const{isFocusVisible:s,focusProps:u}=Es();return t.createElement(nm,{isIndeterminate:r,isDisabled:n,isChecked:e,className:"ds-checkbox__pointer-events-wrapper",...l},t.createElement(im,{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(rm,null,t.createElement(om,{isFocusVisible:s,isIndeterminate:r,isDisabled:n,isChecked:e},e&&t.createElement(em,null),r&&t.createElement(am,null))),i&&t.createElement(cm,{isDisabled:n},i))}tm.pointerEventsClassname="ds-checkbox__pointer-events-wrapper";const nm=ql.label.withConfig({displayName:"Container6",componentId:"sc-11co88f-41"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],df.uiTextM,Dp.spacing1,(e=>!e.isDisabled&&"pointer")),rm=ql.div.withConfig({displayName:"IndicatorPosition1",componentId:"sc-11co88f-42"})(["display:flex;flex:none;align-items:center;&::before{content:'​';}"]),om=ql.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:",";}"],Dp.componentCheckboxBorderUnchecked,Dp.radiusMedium,Dp.focusRingWidth,Dp.radiusMedium,(e=>e.isFocusVisible&&Tl(["border-color:",";&::before{border-color:",";}"],Dp.componentCheckboxBorderUncheckedFocus,e.isChecked||e.isIndeterminate?Dp.focusRingColorPrimary:Dp.focusRingColorSecondary)),(e=>e.isChecked&&Tl(["border-color:transparent;background-color:",";fill:#fff;"],Dp.blue500)),(e=>e.isIndeterminate&&Tl(["border-color:transparent;background-color:",";"],Dp.blue500)),(e=>e.isDisabled&&Tl(["border-color:transparent;background-color:",";fill:",";"],Dp.componentCheckboxFillDisabled,Dp.componentCheckboxCheckmarkColorDisabled)),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",(e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${Dp.componentCheckboxBorderUncheckedHover};`),(e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:Dp.blue600)),im=ql.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%);"]),am=ql.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-11co88f-45"})(["width:8px;height:2px;border-radius:",";background-color:",";"],Dp.radiusPill,Dp.white),cm=ql.div.withConfig({displayName:"Label4",componentId:"sc-11co88f-46"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.colorText)),lm=n(void 0);function sm(e){if(!i(lm))throw new Error(`<Form.${e}> cannot be rendered outside the <Form.Group> component`)}const um=ql.div.withConfig({displayName:"GroupStyled",componentId:"sc-11co88f-47"})(["margin:0;padding:"," 0;border:0;"],Dp.spacing3),dm=ql.div.withConfig({displayName:"HelperTextStyled",componentId:"sc-11co88f-48"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],df.uiTextS,Dp.spacing2,(e=>e.hasIcon?"2px":"0"),(e=>e.isInvalid?Dp.red500:Dp.gray600)),pm=ql.div.withConfig({displayName:"Icon3",componentId:"sc-11co88f-49"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],Dp.spacing2),fm=ql.label.withConfig({displayName:"LabelStyled",componentId:"sc-11co88f-50"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],df.uiTextM,Dp.spacing3,Dp.colorText),mm=ql.span.withConfig({displayName:"SecondaryText",componentId:"sc-11co88f-51"})(["color:",";"],Dp.gray600),hm=ql.span.withConfig({displayName:"Space",componentId:"sc-11co88f-52"})(["display:inline-block;width:",";"],Dp.spacing3),gm=ql.div.withConfig({displayName:"RowStyled",componentId:"sc-11co88f-53"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],Dp.spacing4),vm=ql.div.withConfig({displayName:"InputRowStyled",componentId:"sc-11co88f-54"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],Dp.spacing4);function ym({children:e,onSubmit:n,...r}){return t.createElement("form",{onSubmit:n,...r},e)}ym.Group=function({children:e,...n}){return t.createElement(lm.Provider,{value:"group"},t.createElement(um,{...n},e))},ym.HelperText=function({icon:e,isInvalid:n,children:r,...o}){return sm("HelperText"),t.createElement(dm,{isInvalid:n,hasIcon:Boolean(e),...o},e&&t.createElement(pm,null,e),r)},ym.Label=function({children:e,secondaryText:n,htmlFor:r,id:o,...i}){return sm("Label"),t.createElement(fm,{htmlFor:r,id:o,...i},e,n?t.createElement(mm,null,t.createElement(hm,null," "),n):null)},ym.Row=function({children:e,...n}){return t.createElement(gm,{...n},e)},ym.InputRow=function({children:e,...n}){return sm("InputRow"),t.createElement(vm,{...n},e)},ym.IconError=function(e){return Is({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)},ql.ul.withConfig({displayName:"List1",componentId:"sc-11co88f-55"})(["margin:0;padding:0;list-style:none;"]),ql.li.withConfig({displayName:"Item5",componentId:"sc-11co88f-56"})(["&:not(:last-child){margin-bottom:",";}"],Dp.spacing2);const bm=ql.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:",";}"],Dp.spacing3,Dp.spacing3,Dp.radiusCircle,(e=>e.isDisabled?Dp.gray400:Dp.gray600),Dp.gray50a,Dp.gray800,Dp.gray100a);ql.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;",";",";",";",";",";"],Dp.radiusPill,Dp.gray50,Dp.gray800,Dp.brandFontStackBase,(e=>e.onClick&&Tl(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],Dp.gray75,bm,Dp.gray800,Dp.gray100)),(e=>e.isFocusVisible&&Tl(["background:",";box-shadow:inset ",";outline:0;"],Dp.gray25,Dp.elevationStatic)),(e=>"m"===e.size&&Em),(e=>"s"===e.size&&xm),(e=>e.isDisabled&&Cm));const wm=ql.div.withConfig({displayName:"ThumbnailContainer2",componentId:"sc-11co88f-59"})(["display:block;"]),xm=Tl([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],df.uiTextS,wm,Dp.spacing3,Dp.spacing3),Em=Tl([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],df.uiTextM,wm,Dp.spacing3,Dp.spacing4),Cm=Tl(["background-color:",";color:",";pointer-events:none;"],Dp.gray25,Dp.gray400);function km(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}ql.div.withConfig({displayName:"IconContainer",componentId:"sc-11co88f-60"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],Dp.spacing2,Dp.spacing3),ql.div.withConfig({displayName:"StyledHeaderCaption",componentId:"sc-11co88f-61"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:",";margin-left:",";",""],Dp.spacing4,Dp.spacing4,df.uiTextM),ql.div.withConfig({displayName:"StyledContainer",componentId:"sc-11co88f-62"})(["z-index:",";padding:",";border-radius:",";background-color:",";box-shadow:",",",";"],(e=>e.zIndex),Dp.spacing4,Dp.radiusMedium,Dp.white,Dp.elevationStatic,Dp.elevation2),ql.div.withConfig({componentId:"sc-11co88f-63"})(["padding-top:",";"],Dp.spacing4),Wl(["",""],Tl([".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;}"],Dp.white,Dp.gray800,df.uiTextS,Dp.spacing1,Dp.spacing1,df.uiTextS,Dp.radiusMedium,Dp.white,Dp.gray600,df.uiTextS,Dp.gray200,Dp.gray50,Dp.gray800,Dp.gray200a,Dp.white,Dp.gray50,Dp.gray800,Dp.gray25,Dp.gray800,Dp.blue500,Dp.white,Dp.blue200,Dp.blue500,Dp.white,Dp.blue500,Dp.white,Dp.blue600,Dp.white,Dp.gray200));const Sm=ql.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?Tl(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],Dp.spacing4,Dp.spacing2):Tl(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],Dp.spacing5,Dp.spacing3)),(e=>e.isInvalid?Dp.red500:Dp.gray100),Dp.radiusMedium,Dp.gray10,(e=>e.isInvalid?Dp.red600:Dp.gray200),Dp.elevation1,(e=>e.isInvalid?Dp.red500:Dp.gray300),Dp.gray100,(e=>e.isDisabled&&Tl(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],Dp.gray100,Dp.gray25,Dp.gray600,Dp.gray100)),(e=>"clean"===e.variant&&Tl(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],Dp.gray25a,Dp.gray50a))),_m=ql.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:",";}}}"],Dp.colorText,Dp.brandFontStackBase,df.uiTextM,Dp.gray400,Dp.gray600,Dp.gray400),Im=ql.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);"]),Bm=ql.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-11co88f-67"})(["flex:none;margin-left:calc("," * -1);color:",";"],Dp.spacing2,Dp.gray600),Tm=ql.div.withConfig({displayName:"PrefixContainer",componentId:"sc-11co88f-68"})(["color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.gray600)),Nm=ql.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);"],Dp.spacing2),zm=ql.div.withConfig({displayName:"SuffixContainer",componentId:"sc-11co88f-70"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.isDisabled?Dp.gray400:Dp.gray600),Dp.spacing2),Dm=ql.div.withConfig({displayName:"IconRightContainer",componentId:"sc-11co88f-71"})(["display:grid;flex:none;align-items:center;color:",";"],Dp.gray600),Pm=ql.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:",";}"],Dp.gray200a,Dp.gray300a,Dp.gray400a);function Om({icon:e,onClick:n,isTooltipShown:r=!1,label:o,isDisabled:i=!1,...a}){const{isFocusVisible:c,focusProps:l}=Es();return r?t.createElement(Sf,{content:o,isOpen:!!c||void 0},(r=>t.createElement(Am,{...a,...r,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e))):t.createElement(Am,{...a,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e)}const Am=ql.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;}",""],Dp.gray600,Dp.gray800,Dp.gray200,(e=>e.isFocusVisible&&Tl(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],Dp.gray800,Dp.gray200))),Rm=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),z=c(null),D=C||z,P=e&&y.length>0&&"number"!==v&&"password"!==v,O="password"===v?T?"text":"password":v;function A(){var e;null==D||null===(e=D.current)||void 0===e||e.focus()}const R=Boolean(n||S),F="password"===v,L=Boolean(!F&&(P||o)),M=Boolean(L||F||_);return t.createElement(Sm,{...I,isDisabled:l,isInvalid:u,isSmall:d,onClick:A,ref:B,variant:b},R&&t.createElement(Im,null,n&&t.createElement(Bm,null,n),S&&t.createElement(Tm,{isDisabled:l},S)),t.createElement(_m,{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:D,spellCheck:!1,type:O,value:y,"aria-label":w,"aria-labelledby":x,"aria-describedby":E,id:i,name:a,maxLength:k}),M&&t.createElement(Nm,null,_&&t.createElement(zm,{isDisabled:l},_),F&&t.createElement(Om,{"data-testid":"ds-input-password-visibility-button",onClick:()=>(N((e=>!e)),void A()),label:T?"Hide password":"Show password",icon:T?t.createElement($s,null):t.createElement(Vs,null),isTooltipShown:!0}),P&&t.createElement(Pm,{"data-testid":"ds-input-clear-button",onClick:function(){null==f||f(""),A()},type:"button"},t.createElement(Cu,null)),o&&t.createElement(Dm,null,o)))}));function Fm({direction:e="horizontal",...n}){return"horizontal"===e?t.createElement(Lm,{...n}):t.createElement(Mm,{role:"separator",...n})}const Lm=ql.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;"],Dp.spacing3,Dp.componentDividerColor),Mm=ql.div.withConfig({displayName:"VerticalDivider",componentId:"sc-11co88f-75"})(["box-sizing:content-box;width:1px;margin:0;padding:0 ",";background:",";background-clip:content-box;"],Dp.spacing2,Dp.componentDividerColor),jm=ql.div.withConfig({displayName:"ArrowStyled",componentId:"sc-11co88f-76"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],Dp.spacing2,Dp.spacing2),Hm=n(null);function Um(){const e=i(Hm);if(!e)throw new Error("Dropdown compound components cannot be rendered outside the Dropdown component");return e}function Vm(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const $m=n(void 0),Wm=d((({children:e,minWidth:n,...r},o)=>{const l=kf("dropdown"),s=c(null),{dispatch:u}=Um(),d=i($m);return a((()=>()=>{u({type:"purge-menu-items",payload:d})}),[e,u,d]),t.createElement(Gm,{minWidth:n,role:"menu",ref:Vm(o,s),zIndex:l,...r},e)})),Gm=ql.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"),Dp.spacing3,Dp.spacing3,Dp.radiusBase,Dp.gray10,Dp.colorText,Dp.elevationStatic,Dp.elevation2);function qm({children:e,isChecked:n,isDisabled:r,inputProps:o,onChange:i=(()=>{}),...a}){const{isFocusVisible:c,focusProps:l}=Es();return t.createElement(Ym,{isDisabled:r,className:"ds-switch__pointer-events-wrapper",...a},e&&t.createElement(Km,null,e),t.createElement(Xm,null,t.createElement(Zm,null,t.createElement("input",{role:"switch",type:"checkbox",disabled:r,onChange:i,checked:n,"aria-checked":n,...l,...o}),t.createElement(Jm,{"aria-hidden":"true",isDisabled:r,isFocusVisible:c}))))}qm.pointerEventsClassname="ds-switch__pointer-events-wrapper";const Ym=ql.label.withConfig({displayName:"SwitchStyled",componentId:"sc-11co88f-78"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],df.uiTextM,Dp.spacing1,Dp.gray800,(e=>!e.isDisabled&&"pointer")),Km=ql.span.withConfig({displayName:"Label2",componentId:"sc-11co88f-79"})(["align-self:center;margin-right:",";"],Dp.spacing4),Xm=ql.span.withConfig({displayName:"ToggleAlignment",componentId:"sc-11co88f-80"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]),Zm=ql.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;}"]),Jm=ql.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:",";}",""],Dp.radiusPill,(e=>e.isDisabled?Dp.gray100:Dp.gray75),(e=>!e.isDisabled&&"pointer"),(e=>e.isDisabled?Dp.gray50:Dp.gray10),Dp.elevation2,Zm,(e=>e.isDisabled?Dp.gray400:Dp.blue500),(e=>e.isDisabled?"0.5":"1"),(e=>e.isDisabled?Dp.gray100:Dp.gray10),(e=>!e.isDisabled&&Tl(["",":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",Dp.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",(e=>e.isDisabled?Dp.gray400:Dp.blue600),(e=>e.isFocusVisible&&Tl([""," 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:",";}"],Zm,Dp.gray100,Dp.gray200,Zm,Dp.blue500))),Qm=ql.div.withConfig({displayName:"ItemWrapper1",componentId:"sc-11co88f-83"})(["position:relative;"]),eh=ql.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;}"],df.uiTextS,Dp.spacing5,(e=>e.isChecked?Dp.gray800:Dp.gray600),Dp.brandFontStackBase,(e=>e.isSubmenuOpen&&Tl(["background:",";color:",";"],Dp.gray25,Dp.gray800)),(e=>e.isHighlighted&&Tl(["background:",";color:",";"],Dp.gray50,Dp.gray800)),Dp.gray25,Dp.gray800,Dp.gray50,Dp.gray800,Dp.gray400),th=ql.span.withConfig({displayName:"CheckboxContainer1",componentId:"sc-11co88f-85"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],Dp.spacing3),nh=ql.span.withConfig({displayName:"Icon2",componentId:"sc-11co88f-86"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],Dp.spacing3),rh=ql.span.withConfig({displayName:"Label1",componentId:"sc-11co88f-87"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),oh=ql.span.withConfig({displayName:"RightContainer",componentId:"sc-11co88f-88"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],Dp.spacing3,Dp.spacing2),ih=ql.span.withConfig({displayName:"SubmenuIconContainer",componentId:"sc-11co88f-89"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],Dp.spacing3,Dp.spacing3,(e=>e.isActive?Dp.gray400:Dp.gray200),eh,eh,Dp.gray400),ah=ql(Wm).withConfig({displayName:"SubMenuContainer",componentId:"sc-11co88f-90"})(["margin-top:calc("," * -1);"],Dp.spacing3),ch=ql.div.withConfig({displayName:"SectionTitleStyled",componentId:"sc-11co88f-91"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextS,Dp.spacing4,Dp.spacing5,Dp.spacing3,Dp.gray800);function lh(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 sh={isOpen:!1,isOpenedWithKeyboard:!1,items:[],highlightedItemId:"",hasSearch:!1,keepHighlight:!1};function uh(e,t){if("open"===t.type)return{...e,isOpen:!0};if("close"===t.type)return{...sh};if("toggle"===t.type)return{...sh,isOpen:!e.isOpen};if("toggle-from-keyboard"===t.type)return{...sh,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 dh=ql.span.withConfig({displayName:"Text2",componentId:"sc-11co88f-92"})(["width:100%;min-width:0;text-align:left;"]),ph=ql.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%);"],Dp.spacing3,Dp.spacing4),fh=ql.div.withConfig({displayName:"Inner",componentId:"sc-11co88f-94"})(["position:absolute;top:",";right:",";left:",";"],Dp.spacing4,Dp.spacing4,Dp.spacing4),mh=ql.div.withConfig({displayName:"TextStyled",componentId:"sc-11co88f-95"})([""," padding:"," ",";color:",";"],(e=>"item"===e.fontSize?df.uiTextS:df.uiTextM),Dp.spacing3,Dp.spacing5,Dp.gray400);const hh=ql.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)")),gh=ql.div.withConfig({displayName:"Header1",componentId:"sc-11co88f-97"})(["display:flex;justify-content:space-between;align-items:center;padding:"," 0 ",";"],Dp.spacing3,Dp.spacing2),vh="ds-thumbnail__pointer-events-wrapper",yh=ql.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);",""],Dp.gray200a,Dp.gray10,(e=>e.isConcealed&&Tl(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+vh,"."+vh))),bh=t.createContext({indicator:"none",setIndicator:()=>null}),wh={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]}}}},xh=ql.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);"]),Eh={draft:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 14 14","aria-hidden":"true",fill:Dp.gray400},t.createElement(kh,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"}))},negative:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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"}))}},Ch=Gl(["0%{transform:rotate(0deg);stroke-dashoffset:6.6;}50%{transform:rotate(720deg);stroke-dashoffset:31.4;}100%{transform:rotate(1080deg);stroke-dashoffset:6.6;}"]),kh=ql.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||Dp.gray400),Ch),Sh={online:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.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(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:"transparent"},t.createElement("circle",{cx:"12",cy:"12",r:"9",stroke:Dp.gray400,strokeWidth:"4"}))}};function _h({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?Dp[l]||l:f?Dp.gray50a:l||c?"transparent":Dp.white;const h=f?Dp[s]||s||Dp.gray600:void 0,[g,v]=r("none"),y=o((()=>({indicator:g,setIndicator:v})),[g]);return t.createElement(bh.Provider,{value:y},t.createElement(Ih,{size:e,shape:n,hasCheckers:p,indicator:g,variant:i,className:vh,...d},t.createElement(Th,{iconColor:h,backgroundColor:m,imageUrl:c,size:e,"data-testid":"thumbnail-fill",variant:i},a,p&&!l&&!c&&t.createElement(zh,{"data-testid":"thumbnail-no-image-line"})),p&&t.createElement(Nh,{"data-testid":"thumbnail-inner-shadow"}),u))}_h.Overlay=function({children:e,isConcealed:n=!1,isLoading:r=!1,...o}){return t.createElement(yh,{isConcealed:n,...o},r?t.createElement(Wp,null):e)},_h.pointerEventsClassname=vh,_h.Indicator=function({type:e}){const{setIndicator:n}=i(bh),r=Eh[e];return a((()=>(n("state"),()=>n("none"))),[n]),t.createElement(r,null)},_h.Status=function({type:e}){const{setIndicator:n}=i(bh),r=Sh[e];return a((()=>(n("status"),()=>n("none"))),[n]),t.createElement(r,null)};const Ih=ql.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=>Tl(["--ds-thumbnail-border-radius:",";"],(function(){return"circle"===e.shape?Dp.radiusCircle:"preview"===e.variant?"0px":Dp.radiusBase}))),(e=>e.hasCheckers&&Tl(["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 Tl(["width:",";height:",";"],t,t)}),(e=>{if("none"===e.indicator)return;const{radius:t,offset:n}=wh[e.shape][e.indicator][e.size];return Tl(["--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)})),Bh={xs:Dp.fontSize100,s:Dp.fontSize200,m:Dp.fontSize500,l:Dp.fontSize500},Th=ql.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=>Bh[e.size])),Nh=ql.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);"],Dp.gray100a),zh=ql.div.withConfig({displayName:"NoImage",componentId:"sc-11co88f-104"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],Dp.red500),Dh=n({isDragging:!1,dragIndicator:null}),Ph=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=qf("list-item-label"),{isFocusVisible:m,focusProps:h}=Es(),g=i(Dh),v=t.useRef(null),y=[tm.pointerEventsClassname,qm.pointerEventsClassname,_h.pointerEventsClassname].join(" "),b="function"==typeof a,w=b&&!c;return t.createElement(Oh,{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(Ah,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(tm,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})),r&&t.createElement(Rh,{isDisabled:c},r),t.createElement(Fh,{id:f},t.createElement(Df,null,e),n?t.createElement(Lh,{isDisabled:c},t.createElement(Df,null,n)):null),(o||(null==g?void 0:g.dragIndicator))&&t.createElement(Mh,{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(pf,{alignItems:"center",gap:"3"},o,null==g?void 0:g.dragIndicator)),"switch"===s&&t.createElement(Mh,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(qm,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})))})),Oh=ql.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;}"," "," ",""],Dp.gray200,Dp.spacing4,Dp.spacing4,Dp.spacing3,Dp.spacing4,Dp.radiusLarge,(e=>e.isActive&&Tl(["--list-item-right-elements-color:",";outline:none;cursor:pointer;&:hover{--list-item-right-elements-color:",";background:",";}"," &:active{background:",";box-shadow:none;}",""],Dp.gray200,Dp.gray600,Dp.gray25,e.isFocusVisible&&Tl(["--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 "," );}"],Dp.gray600,Dp.gray25,Dp.gray50,Dp.gray10),Dp.gray50,e.isDisabled&&Tl(["--list-item-right-elements-color:",";color:",";pointer-events:none;"],Dp.gray200,Dp.gray200))),(e=>e.isSelected&&Tl(["--list-item-right-elements-color:",";&,&:hover{background:",";}"],Dp.gray600,Dp.gray50)),(e=>e.isDragging&&Tl(["--list-item-right-elements-color:",";background:",";box-shadow:",";cursor:grabbing;"],Dp.gray600,Dp.gray25,Dp.elevation4))),Ah=ql.div.withConfig({displayName:"CheckboxContainer",componentId:"sc-11co88f-106"})(["flex:none;margin-right:",";"],Dp.spacing4),Rh=ql.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-11co88f-107"})(["flex:none;margin-right:",";",""],Dp.spacing4,(e=>e.isDisabled&&"opacity: 50%;")),Fh=ql.div.withConfig({displayName:"Content2",componentId:"sc-11co88f-108"})([""," flex:1;min-width:0;"],df.uiTextM),Lh=ql.div.withConfig({displayName:"Subtext1",componentId:"sc-11co88f-109"})([""," color:",";"],df.uiTextS,(e=>e.isDisabled?Dp.gray200:Dp.gray600)),Mh=ql.div.withConfig({displayName:"RightElements",componentId:"sc-11co88f-110"})(["flex:none;margin-left:",";color:var(--list-item-right-elements-color);"],Dp.spacing4);function jh({children:e,isContained:n=!1,...r}){return t.createElement(Hh,{isContained:n,...r},e)}jh.Group=function({title:e,action:n,children:r,...o}){const i=qf("list-group-header");return t.createElement("div",{...o},t.createElement(gh,null,t.createElement("span",{id:i},e),n),t.createElement("div",{"aria-describedby":i},r))},jh.Item=Ph,jh.Divider=Fm,jh.ConcealedAction=function(e){return t.createElement(hh,{...e})};const Hh=ql.div.withConfig({displayName:"ListStyled",componentId:"sc-11co88f-111"})(["padding:",";"],(e=>e.isContained?`0 ${Dp.spacing5}`:`${Dp.spacing3} 0`)),Uh=ql.div.withConfig({displayName:"ItemWrapper",componentId:"sc-11co88f-112"})(["--ds-list-item-border-radius-override:0;--ds-list-item-focus-ring-override:none;padding:0 ",";"],Dp.spacing4);function Vh(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function $h(e){if(!e||!Vh(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function Wh({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(uh,sh),y=c(!0),b=c(),w=qf("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]),km("Tab",(()=>{g.isOpen&&C()})),km("Escape",(()=>{g.isOpen&&C()})),km("Enter",(e=>{var t;g.isOpen&&g.highlightedItemId&&(null===(t=document.querySelector("#"+g.highlightedItemId))||void 0===t||t.click(),e.preventDefault())})),km("ArrowDown",(e=>{g.isOpen&&(v({type:"highlight-next"}),e.preventDefault())})),km("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}=gd({isOpen:g.isOpen,onOutsideClick:Vh(b.current)?void 0:()=>v({type:"close"}),onDisappear:e=>{"full"===e&&v({type:"close"})},triggerOffset:4,containerOffset:16,auto:!0,container:$h(b.current),...lh(r)}),T="bottom"===r?{width:null==B?void 0:B.width,minWidth:"initial",maxWidth:"initial"}:{};return t.createElement(Hm.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:Wu(_,b)},{open:()=>{v({type:"open"})},close:()=>{v({type:"close"})}}),g.isOpen&&S(t.createElement(Wm,{id:w,...I,ref:Wu(I.ref,s),style:{...I.style,...T},minWidth:m},e))))}function Gh({attr:e,title:n,size:r,children:o,color:a,style:c,...l}){const s=i(ks),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 qh({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=qf("input"),B=i||I,T=qf("helper-text");return t.createElement(ym.Group,{..._},t.createElement(ym.Label,{secondaryText:n,htmlFor:B},e),t.createElement(Rm,{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(ym.HelperText,{icon:o,isInvalid:c,id:T},r):null)}Wh.Divider=Fm,Wh.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=qf("dropdown-item"),x=qf("dropdown-item-label"),E=qf("dropdown-submenu"),C=Boolean(f),{dispatch:k,...S}=Um(),_=S.highlightedItemId===w,I=i($m),{isFocusVisible:B,focusProps:T}=Es(),{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(ys,[]);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=>{ms&&"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||ms||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)}}),z=g&&C,{triggerProps:D,layerProps:P,renderLayer:O}=gd({isOpen:z,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,_]),km("ArrowLeft",(e=>{C&&y&&(k({type:"highlight-item",payload:w}),v(!1),b(!1),e.preventDefault())})),km("ArrowRight",(e=>{_&&C&&(v(!0),b(!0),e.preventDefault())}));const A=function(e){return"checkbox"===e?tm.pointerEventsClassname:"switch"===e?qm.pointerEventsClassname:""}(s),R=function(e,t,n){return e||("checkbox"===t||"switch"===t?"menuitemcheckbox":"checkmark"===t&&n?"menuitemradio":"menuitem")}(m,s,u),F="menuitemcheckbox"===R||"menuitemradio"===R?u:void 0,L=C?{"aria-haspopup":!0,"aria-expanded":g,"aria-controls":E}:{};function M(e){null==p||p(e),C||("menuitemcheckbox"!==R?S.close():k({type:"keep-highlight"}))}return t.createElement($m.Provider,{value:w},t.createElement(Qm,{...N,...D,onClick:e=>e.stopPropagation()},t.createElement(eh,{disabled:n,"aria-disabled":n,isChecked:u,"aria-checked":F,"aria-selected":S.hasSearch||S.isKeepingFocusOnTrigger?_:void 0,role:R,onClick:M,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,...L,...T,...h},"checkbox"===s&&t.createElement(th,{onClick:e=>e.stopPropagation()},t.createElement(tm,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:M})),l&&t.createElement(nh,null,l),t.createElement(rh,{id:x},e),"checkmark"===s&&u&&t.createElement(oh,null,t.createElement(ku,null)),d&&t.createElement(oh,null,d),"switch"===s&&t.createElement(oh,{onClick:e=>e.stopPropagation()},t.createElement(qm,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:M})),C&&t.createElement(ih,{isActive:g||B||_},t.createElement(_u,null))),z&&O(t.createElement(ah,{id:E,...P},f))))},Wh.ListItem=function({children:e,isDisabled:n,isChecked:r=!1,onClick:o,role:i="menuitem",rightElements:c,...l}){const s=qf("dropdown-item"),{dispatch:u,...d}=Um(),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(ku,{color:Dp.gray800}):null;return t.createElement(Uh,{onClick:e=>e.stopPropagation()},t.createElement(jh.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))},Wh.SectionTitle=function({children:e,...n}){return t.createElement(ch,{...n},e)},Wh.Arrow=function(e){return t.createElement(jm,{...e},t.createElement(Eu,null))},Wh.SelectButtonText=function({children:e,...n}){return t.createElement(dh,{...n},t.createElement(Df,null,e))},Wh.SearchInput=function({onChange:e,...n}){const r=c(null),{dispatch:o}=Um(),{menuId:i}=Um();return a((()=>{var e;null===(e=r.current)||void 0===e||e.focus()}),[]),a((()=>{o({type:"set-search-presence"})}),[o]),t.createElement(ph,null,t.createElement(fh,null,t.createElement(Rm,{inputRef:r,hasClearButton:!0,icon:t.createElement(js,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})))},Wh.Text=function({fontSize:e="item",children:n,...r}){return t.createElement(mh,{fontSize:e,...r},n)},ql.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;"]),ql.p.withConfig({displayName:"Image1",componentId:"sc-11co88f-114"})(["display:grid;place-items:center;width:128px;height:128px;margin:0 0 ",";border-radius:",";background:",";color:",";"],Dp.spacing5,Dp.radiusCircle,Dp.gray25,Dp.gray400),ql.h2.withConfig({displayName:"Title3",componentId:"sc-11co88f-115"})([""," margin:0 0 ",";color:",";"],df.headingM,Dp.spacing4,Dp.gray800),ql.p.withConfig({displayName:"Description1",componentId:"sc-11co88f-116"})([""," margin:0;color:",";"],df.paragraphM,Dp.gray600),ql.p.withConfig({displayName:"Actions",componentId:"sc-11co88f-117"})(["display:flex;gap:",";justify-content:center;margin:"," 0 0;"],Dp.spacing4,Dp.spacing6),ql.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?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.blue500a10,Dp.blue500,Dp.blue600,Dp.blue700):"warning"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.yellow500a10,Dp.yellow500,Dp.yellow600,Dp.yellow700):"error"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.red500a10,Dp.red500,Dp.red600,Dp.red700):Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.gray50,Dp.gray500,Dp.blue600,Dp.blue700)),Dp.spacing4,Dp.spacing4,Dp.radiusMedium),ql.div.withConfig({displayName:"IconHolder1",componentId:"sc-11co88f-119"})(["display:flex;width:24px;height:24px;margin-right:",";color:var(--icon-color);"],Dp.spacing3),ql.div.withConfig({displayName:"TitleHolder",componentId:"sc-11co88f-120"})([""," margin-bottom:",";color:",";"],df.uiTextM,Dp.spacing2,Dp.gray1000),ql.div.withConfig({displayName:"DescriptionHolder",componentId:"sc-11co88f-121"})([""," color:",";line-height:",";"],df.uiTextS,Dp.gray800,Dp.layoutSpacing2),ql.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;}"],df.uiTextS,Dp.spacing2,Dp.blue500),ql.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:",";"],df.uiTextS,Dp.spacing1,Dp.spacing3,Dp.radiusMedium,Dp.gray75,Dp.gray800,Dp.gray200a,Dp.fontStackBase),ql.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%);"]),ql.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;}"],Dp.spacing1,Dp.spacing2,Dp.spacing2),ql.div.withConfig({displayName:"StyledItemWrapper",componentId:"sc-11co88f-126"})(["position:relative;user-select:none;"," ",""],(e=>"after"===e.insertPosition&&Tl(["&::after{content:'';position:absolute;bottom:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",Dp.blue300)),(e=>"before"===e.insertPosition&&Tl(["&::before{content:'';position:absolute;top:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",Dp.blue300))),ql.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:",";"],Dp.spacing4,Dp.spacing4,Dp.spacing4,Dp.spacing4,Dp.radiusLarge,Dp.gray50),ql.div.withConfig({displayName:"StyledDragIndicator",componentId:"sc-11co88f-128"})(["cursor:",";"],(e=>e.isDragging?"grabbing":"grab"));const Yh=Wl((e=>Tl(["@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",Dp.gray200a,"b-modal__container",Dp.spacing6,"b-modal__modal",Rp,Dp.radiusLarge,Dp.gray10,Dp.elevation8,"b-modal__modal--medium","b-modal__modal--full-screen"))),Kh=ql.div.withConfig({displayName:"HeaderStyled",componentId:"sc-11co88f-129"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],Dp.spacing4,Dp.spacing6,(e=>!e.hideCloseIcon&&Tl(["padding-right:calc( "," + 50px + "," );"],Dp.spacing4,Dp.spacing6))),Xh=ql.div.withConfig({displayName:"BackButton",componentId:"sc-11co88f-130"})(["margin-right:",";margin-left:calc("," * -1);"],Dp.spacing4,Dp.spacing4),Zh=ql.div.withConfig({displayName:"ModalThumbnail",componentId:"sc-11co88f-131"})(["margin-right:",";"],Dp.spacing4),Jh=ql.div.withConfig({displayName:"Headings",componentId:"sc-11co88f-132"})(["flex:1;min-width:0;"]),Qh=ql.h2.withConfig({displayName:"Title2",componentId:"sc-11co88f-133"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextL,Dp.colorText),eg=ql.h3.withConfig({displayName:"SecondaryInformation",componentId:"sc-11co88f-134"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextS,Dp.gray500),tg=ql.div.withConfig({displayName:"ContentStyled",componentId:"sc-11co88f-135"})(["flex:1 1 auto;min-height:0;",""],(e=>e.scrollable&&Tl(["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);}"],Dp.colorShadow,Dp.colorShadow))),ng=ql.div.withConfig({displayName:"ContentInner",componentId:"sc-11co88f-136"})([""," box-sizing:border-box;padding:"," ",";color:",";font-family:",";",""],df.paragraphM,Dp.spacing5,Dp.spacing6,Dp.colorText,Dp.brandFontStackBase,(e=>e.scrollable&&Tl(["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) );}"],Dp.spacing5,Dp.spacing5,Dp.spacing6,Dp.gray10,Dp.gray10,Dp.spacing6,Dp.spacing5,Dp.gray10,Dp.gray10))),rg=ql.div.withConfig({displayName:"ContentExpander",componentId:"sc-11co88f-137"})(["min-height:100%;"]),og=ql.div.withConfig({displayName:"FooterStyled",componentId:"sc-11co88f-138"})(["display:flex;flex:none;padding:",";"],Dp.spacing6),ig=ql.div.withConfig({displayName:"ActionsRight",componentId:"sc-11co88f-139"})(["margin-left:auto;"]),ag=ql.div.withConfig({displayName:"CloseButton",componentId:"sc-11co88f-140"})(["position:absolute;top:",";right:",";"],Dp.spacing5,Dp.spacing4),cg=t.createContext({size:"small",hideCloseIcon:!1}),lg={small:"",medium:"b-modal__modal--medium",fullscreen:"b-modal__modal--full-screen"};function sg({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 ${lg[i]}`,modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},m=!c,h=kf("modal"),g=o((()=>({size:i,hideCloseIcon:c})),[i,c]),[v,y]=r(!1);return a((()=>{e&&y(!0)}),[e]),t.createElement(cg.Provider,{value:g},t.createElement(Jd,{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(ag,null,t.createElement(ef,{variant:"clean",icon:t.createElement(Iu,null),"aria-label":l,title:l,onClick:n}))),t.createElement(Yh,{zIndex:h}))}function ug({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(sg,{isOpen:e,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,size:r,closeButtonTitle:a,onCloseAnimationEnd:h,container:m},t.createElement(sg.Header,{title:c,secondaryInfo:l,thumbnail:s}),t.createElement(sg.Content,null,u),d&&t.createElement(sg.Footer,{actionPrimary:d,actionSecondary:p,actionTertiary:f}))}function dg(e){return t.createElement(ug,{...e})}function pg(e){return t.createElement(fg,{role:"status","aria-live":"polite"},e.thumbnail&&t.createElement(mg,null,e.thumbnail),t.createElement(hg,null,t.createElement(gg,{title:"string"==typeof e.title?e.title:""},e.title),e.description&&t.createElement(vg,{title:"string"==typeof e.description?e.description:""},e.description)),t.createElement(yg,null,e.button),"number"==typeof e.progressPercentage&&t.createElement(bg,{style:{width:e.progressPercentage+"%"}}))}sg.Header=function({title:e,secondaryInfo:n,thumbnail:r,backButton:o}){const{hideCloseIcon:a}=i(cg);return t.createElement(Kh,{hideCloseIcon:a},o&&t.createElement(Xh,null,t.createElement(ef,{variant:"clean",icon:t.createElement(Su,null),"aria-label":o.title,...o})),r&&t.createElement(Zh,null,r),t.createElement(Jh,null,t.createElement(Qh,null,e),n&&t.createElement(eg,null,n)))},sg.Content=function({children:e}){const{size:n}=i(cg),r="fullscreen"===n;return t.createElement(tg,{scrollable:r},t.createElement(ng,{scrollable:r},r?t.createElement(rg,null,e):e))},sg.Footer=function({actionPrimary:e,actionSecondary:n,actionTertiary:r}){return t.createElement(og,null,r,t.createElement(ig,null,t.createElement(pf,{gap:"4"},n,e)))},ql.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")),ql.div.withConfig({displayName:"NotificationsStyled",componentId:"sc-11co88f-142"})(["position:fixed;bottom:",";left:",";z-index:",";"],Dp.spacing6,Dp.spacing6,9999);const fg=ql.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:",",",";"],Rp,Dp.spacing5,Dp.radiusLarge,Dp.white,Dp.elevationStatic,Dp.elevation2),mg=ql.div.withConfig({displayName:"ThumbnailWrapper1",componentId:"sc-11co88f-144"})(["flex:none;margin-right:",";"],Dp.spacing5),hg=ql.div.withConfig({displayName:"Text",componentId:"sc-11co88f-145"})(["flex:1;align-self:center;"]),gg=ql.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;"]),vg=ql.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;"],Dp.spacing2,Dp.gray500,Dp.fontSize75),yg=ql.div.withConfig({displayName:"Action",componentId:"sc-11co88f-148"})(["flex:none;"]),bg=ql.div.withConfig({displayName:"Progress1",componentId:"sc-11co88f-149"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],Dp.brandPrimary500);function wg({isPersistent:e,button:n,id:r=vd(),variant:o,thumbnail:i,...a}){return kp((e=>t.createElement(pg,{thumbnail:xg(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),kp.dismiss(e.id)}}):t.createElement(ef,{variant:"clean",onClick:()=>{kp.dismiss(e.id)},icon:t.createElement(Iu,null),title:"Close"})})),{id:r,duration:e?288e5:8e3})}function xg(e,n){return e||(n?{loading:t.createElement(_h,{shape:"circle",backgroundColor:"transparent",icon:t.createElement(Wp,null)}),success:t.createElement(_h,{shape:"circle",backgroundColor:"green500",icon:t.createElement(ku,null),iconColor:"white"}),error:t.createElement(_h,{shape:"circle",backgroundColor:"red500",icon:t.createElement(Iu,null),iconColor:"white"})}[n]:void 0)}wg.dismiss=function(e){kp.dismiss(e)},ql.div.withConfig({displayName:"Track",componentId:"sc-11co88f-150"})(["height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":Dp.radiusPill),(e=>e.noBackground?"none":Dp.gray100a)),ql.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":Dp.radiusPill),(e=>"brand"===e.color?Dp.brandPrimary500:Dp.gray600)),ql.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-11co88f-152"})(["display:flex;flex:none;align-items:center;&::before{content:'​';}"]);const Eg=ql.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:",";}"," ",""],Dp.componentRadioBorderUnchecked,Dp.radiusCircle,Dp.focusRingWidth,(e=>e.isFocusVisible&&Dp.focusRingColorPrimary),Dp.radiusCircle,(e=>e.isChecked&&Tl(["border-color:transparent;background-color:",";color:#fff;"],Dp.blue500)),(e=>e.isDisabled&&Tl(["border-color:transparent;background-color:",";color:",";"],Dp.componentRadioFillDisabled,Dp.componentRadioCheckmarkColorDisabled)));ql.div.withConfig({displayName:"IndicatorMark",componentId:"sc-11co88f-154"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],Dp.radiusCircle),ql.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%);"]),ql.label.withConfig({displayName:"Container3",componentId:"sc-11co88f-156"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],df.uiTextM,Dp.spacing1,(e=>!e.isDisabled&&"pointer"),Eg,(e=>{if(!e.isDisabled)return e.isChecked?Tl(["background-color:",";"],Dp.blue600):Tl(["border-color:",";"],Dp.componentRadioBorderUncheckedHover)})),ql.div.withConfig({displayName:"Label",componentId:"sc-11co88f-157"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.colorText));const Cg=n({value:"",onChange:()=>{}});function kg({children:e,isDisabled:n,onChange:r,value:i,label:a,icon:c}){const l=o((()=>({value:i,onChange:r})),[r,i]);return t.createElement(Cg.Provider,{value:l},t.createElement(Wh,{trigger:({isOpen:e,...r})=>t.createElement(ef,{icon:c,isPressed:e,rightIcon:t.createElement(Wh.Arrow,null),isFullWidth:!0,isDisabled:n,...r},t.createElement(Wh.SelectButtonText,null,a)),position:"bottom"},e))}function Sg(e,t,n){return 100*(n-e)/(t-e)+"%"}kg.Item=function({icon:e,children:n,isDisabled:r,value:o}){const a=i(Cg);return t.createElement(Wh.Item,{isChecked:o===a.value,role:"menuitemradio",icon:e,isDisabled:r,onClick:()=>{a.onChange(o)}},n)},kg.SectionTitle=Wh.SectionTitle,kg.Divider=Wh.Divider,kg.SearchInput=Wh.SearchInput,kg.Text=Wh.Text,ql.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:",";"],Dp.spacing5,Dp.gray100,Dp.white),ql.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),Dp.radiusBase,Dp.gray100),ql.div.withConfig({displayName:"TextContainer",componentId:"sc-11co88f-160"})(["display:flex;align-items:center;width:100%;height:20px;&::before{content:'';height:6px;border-radius:",";","}"],Dp.radiusPill,(e=>"primary"===e.variant?Tl(["width:75%;max-width:240px;background:",";"],Dp.gray200):"secondary"===e.variant?Tl(["width:50%;max-width:160px;background:",";"],Dp.gray100):void 0)),ql.div.withConfig({displayName:"Opacity",componentId:"sc-11co88f-161"})(["opacity:",";"],(({value:e=1})=>e));const _g=ql.div.withConfig({displayName:"Container1",componentId:"sc-11co88f-162"})(["position:relative;display:flex;gap:",";align-items:center;"],Dp.spacing3),Ig=ql.div.withConfig({displayName:"SliderContainer",componentId:"sc-11co88f-163"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),Bg=Tl(["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;"]),Tg=Tl(["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 Ng(e){const t=Sg(e.min,e.max,e.value);let n,r;return Array.isArray(e.values)?(n=Sg(e.min,e.max,e.values[0]),r=Sg(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${Dp.gray100a} ${n},\n\t\t${Dp.brandPrimary500} ${n},\n\t\t${Dp.brandPrimary500} ${r},\n\t\t${Dp.gray100a} ${r}\n\t)`}const zg=ql.input.attrs((e=>({style:{"--track-background":Ng(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"),Tg,Tg,Bg,Bg),Dg=ql.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),Ig,zg,Dp.gray100a,Dp.elevationStatic,Dp.elevation1,zg,Dp.gray100a,Dp.gray100a,zg,Dp.gray100a,Dp.elevationStatic,Dp.elevation2),Pg=ql.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%);}"],Dp.radiusCircle,Dp.gray10,Dp.elevationStatic,Dp.elevation1,Dp.gray75a,Dp.radiusCircle,Dp.gray25),Og=ql.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 Ag({min:e,max:n,value:r,isTooltipOpen:o,inputPosition:i,isInactive:a}){const c=Sg(e,n,r);return t.createElement(Dg,{isInactive:a,style:Rg(c),"data-testid":"thumb"},t.createElement(Pg,null),"none"===i&&t.createElement(Sf,{isOpen:o,content:r,position:"top-center"},(e=>t.createElement("div",{...e}))))}function Rg(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function Fg({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(zg,{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(Ag,{isTooltipOpen:u&&!s,min:e,max:n,value:p?o[0]:o,inputPosition:a,isInactive:l}),p&&t.createElement(t.Fragment,null,t.createElement(zg,{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(Ag,{isTooltipOpen:u&&!s,min:e,max:n,value:o[1],inputPosition:a,isInactive:l})))}function Lg({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(_g,{...p},("left"===o||"both"===o)&&t.createElement(Og,{min:e,max:n,"data-testid":"input-left"},t.createElement(Rm,{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(Ig,null,t.createElement(Fg,{min:e,max:n,value:i,inputPosition:o,onChange:v,isFromCenter:s,isInactive:u,isTooltipHidden:d})),l,("right"===o||"both"===o)&&t.createElement(Og,{min:e,max:n,"data-testid":"input-right"},t.createElement(Rm,{onChange:m,value:"right"===h?f:w,type:"number",onFocus:()=>{m(w),g("right")},onBlur:()=>{v({target:{name:"max-input",value:f}})},onKeyDown:y})))}ql.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?Tl([""," color:var(--table-row-color-override,inherit);"],df.uiTextM):"secondary"===e.variant?Tl([""," color:var(--table-row-color-override,",");"],df.uiTextS,Dp.gray600):void 0),(e=>e.isTruncated&&"max-width: 1px;"),Dp.spacing3,Dp.spacing4,Dp.radiusLarge,Dp.radiusLarge,Dp.radiusLarge,Dp.radiusLarge),ql.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-11co88f-169"})(["flex:none;align-self:flex-start;opacity:var(--table-thumbnail-opacity,1);"]),ql.div.withConfig({displayName:"Content",componentId:"sc-11co88f-170"})(["flex:1;min-width:0;white-space:",";"],(e=>e.isNoWrap?"nowrap":"normal")),ql.div.withConfig({displayName:"Subtext",componentId:"sc-11co88f-171"})([""," color:var(--table-row-color-override,",");"],df.uiTextS,Dp.gray600),ql.div.withConfig({displayName:"IconRight",componentId:"sc-11co88f-172"})(["flex:none;margin-left:",";color:",";"],Dp.spacing4,Dp.gray600),ql.tr.withConfig({displayName:"DividerRow",componentId:"sc-11co88f-173"})(["&:nth-child(2){display:none;}"]),ql.td.withConfig({displayName:"DividerCell",componentId:"sc-11co88f-174"})(["padding:"," 0;&::before{content:'';display:block;height:1px;height:1px;background:",";}"],Dp.spacing3,Dp.gray100a),ql.tr.withConfig({displayName:"StyledRow",componentId:"sc-11co88f-175"})([""," "," ",""],(e=>e.isActive&&Tl(["--table-row-right-icon-color:",";border-radius:",";outline:none;cursor:pointer;&:hover{--table-row-right-icon-color:",";background:",";}"," &:active{background:",";box-shadow:none;}"],Dp.gray200,Dp.radiusLarge,Dp.gray600,Dp.gray25,e.isFocusVisible&&Tl(["--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 ",";}"],Dp.gray600,Dp.gray25,Dp.gray100,Dp.gray10,Dp.gray50,Dp.gray10),Dp.gray50)),(e=>e.isPressed&&Tl(["--table-row-right-icon-color:",";&,&:hover{background:",";}"],Dp.gray600,Dp.gray50)),(e=>e.isDisabled&&Tl(["--table-row-right-icon-color:",";--table-thumbnail-opacity:50%;--table-row-color-override:",";pointer-events:none;"],Dp.gray200,Dp.gray200))),ql.div.withConfig({displayName:"Icon1",componentId:"sc-11co88f-176"})(["color:var(--table-row-right-icon-color);"]),ql.thead.withConfig({displayName:"StyledHeader",componentId:"sc-11co88f-177"})(["",""],(e=>"string"==typeof e.stickyOffset&&Tl(["--table-head-sticky-offset:",";position:sticky;top:var(--table-head-sticky-offset);z-index:1;background-color:",";",""],"0"===e.stickyOffset?"0px":e.stickyOffset,Dp.white,e.isStuck&&Tl(["box-shadow:0 3px 0 ",",0 1px 0 ",";"],Dp.gray50a,Dp.gray100a)))),ql.div.withConfig({displayName:"Trigger",componentId:"sc-11co88f-178"})(["position:absolute;top:calc((var(--table-head-sticky-offset) + 1px) * -1);width:1px;height:1px;"]),ql.th.withConfig({displayName:"StyledHeadCell",componentId:"sc-11co88f-179"})([""," padding:"," ",";text-align:left;"],df.uiTextM,Dp.spacing2,Dp.spacing4),ql.div.withConfig({displayName:"Static",componentId:"sc-11co88f-180"})(["padding:"," 0;"],Dp.spacing3),ql.span.withConfig({displayName:"Active",componentId:"sc-11co88f-181"})(["font-weight:600;"]),ql.td.withConfig({displayName:"Cell2",componentId:"sc-11co88f-182"})(["height:",";"],Dp.spacing3),ql.td.withConfig({displayName:"Cell1",componentId:"sc-11co88f-183"})(["padding:"," ",";"],Dp.spacing3,Dp.spacing4),ql.td.withConfig({displayName:"Cell",componentId:"sc-11co88f-184"})(["padding:",";"],Dp.spacing4),ql.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")),ql.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"),Dp.spacing3,Dp.spacing5,(e=>"pill"===e.shape?Dp.radiusPill:Dp.radiusBase),(e=>e.isActive?Dp.gray800:Dp.gray600),df.uiTextM,Dp.gray400,Dp.gray800,Dp.gray200,Dp.gray800,(e=>"clean"===e.variant&&Tl(["background-color:",";"],Dp.gray25a)),(e=>e.isActive&&"contained"===e.variant&&Tl(["background-color:",";box-shadow:0 0 1px ",",",";"],Dp.white,Dp.colorShadow,Dp.elevation1)),(e=>e.isActive&&"clean"===e.variant&&Tl(["background-color:",";"],Dp.gray50a))),ql.span.withConfig({displayName:"Icon",componentId:"sc-11co88f-187"})(["margin-right:",";"],Dp.spacing3),ql.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:",";",";"],Dp.spacing1,(e=>"pill"===e.shape?Dp.radiusPill:`calc(${Dp.radiusBase} + 2px) `),(e=>"contained"===e.variant&&Tl(["padding:",";background-color:",";"],Dp.spacing1,Dp.gray50a)));const Mg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function jg(e){Object.keys(Mg).forEach((t=>{e.style.setProperty(t,Mg[t],"important")}))}let Hg=null;const Ug=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];function Vg({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,Ug.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}){Hg||(Hg=document.createElement("textarea"),Hg.setAttribute("tabindex","-1"),Hg.setAttribute("aria-hidden","true"),jg(Hg)),null===Hg.parentNode&&document.body.appendChild(Hg);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!Hg)return;const t=e;Hg.style[t]=a[t]})),jg(Hg),Hg.value=t;let c=function(e,t){const n=Hg.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);Hg.value="x";const l=Hg.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($g,{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 $g=ql.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;}",";}"],Dp.spacing3,Dp.spacing5,Dp.gray100,Dp.radiusBase,Dp.white,Dp.colorText,Dp.brandFontStackBase,df.paragraphM,Dp.gray400,Dp.gray200,Dp.elevation1,Dp.gray300,Dp.gray100a,Dp.gray100,Dp.gray25,Dp.gray600,(e=>e.isInvalid&&Tl(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],Dp.red500,Dp.red600,Dp.red500))),Wg=ql.div.withConfig({displayName:"RightElementText",componentId:"sc-11co88f-190"})(["display:flex;justify-content:flex-end;align-items:center;color:",";text-align:right;"],Dp.gray400);ql.div.withConfig({displayName:"LeftIconContainer",componentId:"sc-11co88f-191"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],Dp.spacing4),ql.div.withConfig({displayName:"RightElementsContainer",componentId:"sc-11co88f-192"})(["margin-left:auto;padding-left:",";"],Dp.spacing4);const Gg=Tl(["background-color:"," !important;color:"," !important;","{color:",";}"],Dp.gray50,Dp.gray800,Wg,Dp.gray600);function qg(e){var t;return null!==(t=Yg[e])&&void 0!==t?t:e}ql.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{","}"," "," ",";}"],df.uiTextM,Dp.spacing3,Dp.spacing4,Dp.brandRadiusBase,Dp.gray600,Dp.brandFontStackBase,(e=>e.disabled?"default":"pointer"),Dp.gray25,Dp.gray800,Wg,Dp.gray600,Gg,(e=>e.$isSelected&&Gg),(e=>e.$isFocusVisible&&Tl(["background-color:",";color:",";","{color:",";}"],Dp.gray25,Dp.gray800,Wg,Dp.gray600)),(e=>e.disabled&&Tl(["background-color:transparent;color:",";pointer-events:none;","{color:",";}"],Dp.gray400,Wg,Dp.gray400))),ql(Fm).withConfig({displayName:"Divider",componentId:"sc-11co88f-194"})(["margin:"," ",";"],Dp.spacing2,Dp.spacing4),ql.div.withConfig({displayName:"StyledTitleContainer",componentId:"sc-11co88f-195"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],df.uiTextS,Dp.spacing4,Dp.gray800),ql.div.withConfig({displayName:"RightElementIcon",componentId:"sc-11co88f-196"})(["&:last-child{margin-right:calc("," * -1);}"],Dp.spacing2),ql.div.withConfig({displayName:"Container",componentId:"sc-11co88f-197"})(["margin:0 ",";"],Dp.spacing5);var Yg={};function Kg(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){Yg=e}))}),[e])}function Xg(){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 Zg(e){return t.createElement(t.Fragment,null,t.createElement(Xg,null),t.createElement(tv,null,qg("Oops! Something went wrong")),t.createElement(nv,null,qg("Please try again or get in contact with our customer support.")),t.createElement(rv,null,t.createElement(ef,{variant:"secondary",title:qg("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?qg("Report sent"):qg("Send report...")),t.createElement(ef,{variant:"primary",title:qg("Try again"),onClick:e.onClickRetry},qg("Try again"))))}var Jg,Qg,ev,tv=ql.h1(Jg||(Jg=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),Dp.spacing8,Dp.fontSize400),nv=ql.span(Qg||(Qg=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),Dp.spacing5,Dp.colorTextDisabled),rv=ql.div(ev||(ev=_a(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),Dp.spacing7,Dp.spacing3);function ov(e){var n;return t.createElement(dg,{title:qg("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(ef,{variant:"primary",title:qg("Send report"),onClick:e.onDone},qg("Send report")),actionSecondary:t.createElement(ef,{variant:"secondary",title:qg("Cancel"),onClick:e.onCancel},qg("Cancel")),container:e.container},t.createElement(lv,null,qg("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(sv,{"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(uv,null,qg("We will treat this report as confidential and anonymous.")))}var iv,av,cv,lv=ql.div(iv||(iv=_a(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),Dp.lineHeightText),sv=ql.div(av||(av=_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"])),Dp.spacing5,Dp.gray25,Dp.radiusMedium,Dp.gray200,Dp.lineHeightText,Dp.spacing5,Dp.spacing4),uv=ql.span(cv||(cv=_a(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),Dp.colorTextDisabled,Dp.lineHeightBase,Dp.fontSize75);function dv(e){var n=e.error,o=e.onRetry,i=La(),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(Zg,{isReportSent:d,onClickSend:function(){s(!0)},onClickRetry:o}),t.createElement(ov,{isOpen:l,error:n,container:i,onDone:function(){ti(n),s(!1),p(!0)},onCancel:function(){s(!1)}}))}function pv(){var e=ba(Ta()[0].page),n=e[0],r=e[1],o={ASC:qg("Ascending"),DESC:qg("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(ef,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(mv,{$isAscending:"ASC"===n.direction})})}var fv,mv=ql((function(e){return Is({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)}))(fv||(fv=_a(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),Dp.spacing6,Dp.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function hv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function gv(e){var n,o=c(null),i=r(0)[1];!function(e,t){var n=La();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=La(),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=hv("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 vv(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(bv,{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(Eu,{className:"w-6 h-6 ml-1 -mr-2"})),m&&t.createElement(gv,{className:d.className,onClickOutside:v,direction:l,target:g,id:p},d.children(v)))}var yv,bv=ql(ef)(yv||(yv=_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 wv(e){var n=e.selected,r=void 0!==n&&n,o=Ea(e,["selected"]),i=hv("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(ku,{className:"w-6 h-6 ml-3 fade-in"})))}function xv(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:qg("Date added"),NAME:qg("Name"),PUBLISHED_AT:qg("Date published"),UPDATED_AT:qg("Date modified")};return t.createElement(Cv,null,t.createElement(vv,{className:"py-2",title:c[i.field],alt:qg("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(wv,{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 Ev,Cv=ql.div(Ev||(Ev=_a(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function kv(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function Sv(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:hv("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"‌")}function _v(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(Kf,null,t.createElement(Kf.Frame,null),t.createElement(Kf.AdditionalInfo,null,t.createElement(Sv,{width:70+Iv(100,r),className:"h-4"})),e.title))})))}function Iv(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}var Bv=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Tv=Bv.Provider,Nv=function(){return i(Bv)},zv=function(){return Nv().selectionMode};function Dv(e){return{tag:"ok",value:e}}function Pv(e){return{tag:"error",error:e}}function Ov(e){return"ok"===e.tag}function Av(e){return"error"===e.tag}function Rv(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}function Fv(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 Lv=new Map;function Mv(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,Pv("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?Rv(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),Lv.has(i))return[2,Dv(Lv.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("3.3.1")},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=Fv(e.files);return xa(xa({},e),{files:xa({},t)})}return e}))})})}):e}(s.data),[3,5];case 4:return[2,Pv(d.sent())];case 5:return void 0!==s.errors?[2,Pv(s.errors.map((function(e){return e.message})).join(","))]:(Lv.set(i,u),Lv.size>50&&Lv.delete(Lv.keys().next().value),[2,Dv(u)])}}))}))}function jv(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 Hv(){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 Uv="42b1eefa-d754-4802-b9c4-bf80d6ab6052",Vv="".concat("https://d8ejoa1fys2rk.cloudfront.net"),$v=Vv+"/5.0.5/modules/compactview/loginCompleted.html",Wv="".concat("https://apiv2.webdamdb.com","/"),Gv=["offline","asset:read","collection:read","meta.assetbank:read"];function qv(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=Yv(n)+"token",o=new URLSearchParams({client_id:Uv,code_verifier:t,code:e,redirect_uri:$v,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,Pv("Failed to fetch access token: ".concat(i.status))];case 3:return[2,Dv({refreshToken:(a=c.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Pv(c.sent().toString())];case 5:return[2]}}))}))}function Yv(e){return"webdam"===Kv()?Wv+"oauth2/":Rv(e)+"v6/authentication/oauth2/"}function Kv(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function Xv(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,Pv("Error opening login window")]:(o.document.head.innerHTML=Zv,o.document.body.innerHTML=Jv,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===Vv&&e(Dv(t))}))})),new Promise((function(e){setTimeout((function(){return e(Pv("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(Pv("Login window closed")))}),1e3)})))])]);case 1:return Av(i=c.sent())?[2,i]:[2,Dv({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var Zv='\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>',Jv='<div class="cv-spinner"></div>';function Qv(e){var n=La();return t.createElement(bl,{target:n,disableVendorPrefixes:!0},t.createElement(Ef,{zIndexBase:1e6},e.children))}function ey(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,dl,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}.pr-1{padding-right:4px}.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}.gap-y-px{grid-row-gap:1px;row-gap:1px}.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}',ty(null!=e?e:document.head,t),n&&ty(document.head,ry),u(null!=n?n:c.current)}}),[]),t.createElement("div",{ref:c,style:{display:"flex",height:"100%"},"data-testid":"root"},s&&t.createElement(Fa,{value:s},t.createElement(Qv,null,g(t.createElement(oy,{isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),s))))}function ty(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var ny,ry="\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'),oy=ql.div(ny||(ny=_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"})),iy=n("parent");function ay(e){var n=e.children,r=e.isContainerMode,o=void 0!==r&&r;return"parent"===i(iy)?t.createElement(iy.Provider,{value:"child"},t.createElement(ey,{isContainerMode:o},n)):t.createElement(t.Fragment,null,n)}var cy=n(null),ly=function(){return i(cy)};function sy(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(cy.Provider,{value:m},p&&t.createElement(t.Fragment,null,g(t.createElement(ay,null,t.createElement(py,{className:"z-a-lot"},t.createElement(fy,{style:l,"data-testid":"modal"},n))),p))):null}var uy,dy,py=ql.div(uy||(uy=_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"])),Dp.spacing5,Dp.gray100a),fy=ql.div(dy||(dy=_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"])),Dp.radiusBase);function my(e){var n=ly();return t.createElement(yy,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(by,{variant:"clean",onClick:n.onClose,title:qg("Close"),icon:t.createElement(Iu,null)}),t.createElement(wy,null,e.children))}var hy,gy,vy,yy=ql.div(hy||(hy=_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"])),Dp.gray10),by=ql(ef)(gy||(gy=_a(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),Dp.spacing4,Dp.spacing5),wy=ql.div(vy||(vy=_a(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),Dp.fontSize300);function xy(){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}},qg("Connect your brand portal")))}function Ey(e){var n=hv("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 Cy(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(_y,null,t.createElement(qh,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:qg("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&qg("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(Iy,{role:"alert","aria-live":"polite"},t.createElement(Ey,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var ky,Sy,_y=ql.div(ky||(ky=_a(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),Dp.spacing4),Iy=ql.div(Sy||(Sy=_a(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function By(e){return t.createElement(ef,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},qg("Connect"))}function Ty(e){return t.createElement(my,null,t.createElement(xy,null),t.createElement(Cy,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(By,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var Ny=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(dv,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function zy(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(Ey,null)," ")}var Dy=n(null);function Py(e){var n,o,i,l,s,u,d,p,f;Kg(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=Yv(t)+"token",r=new URLSearchParams({client_id:Uv,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,Pv("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,Dv({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Pv(a.sent().toString())];case 5:return[2]}}))}))}(s,p).then((function(e){Ov(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=Rv(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=Hv(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,jv(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,Pv(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=Hv(),i=function(e,t,n){var r={client_id:Uv,code_challenge:e,code_challenge_method:"S256",redirect_uri:$v,response_type:"code",scope:Gv.join(" "),domain:"",state:t},o="auth?";"webdam"===Kv()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return Yv(n)+o+i}(r,o,e),[4,Xv(i)];case 5:return Av(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,Pv("Error logging in")]:[4,qv(a.value.code,t,e)];case 6:return Av(c=p.sent())?[2,c]:(l=c.value,s=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,Dv({accessToken:u,expiresIn:parseFloat(d),refreshToken:s})])}var f}))}))}(b).then((function(t){e&&(function(e){if(Ov(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(){v()},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(h.status){case"authenticated":return t.createElement(Dy.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(ay,{isContainerMode:!0},t.createElement(Ty,{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(zy,null)}}var Oy=function(e){return t.createElement(Ny,null,t.createElement(Py,xa({},e)))},Ay=function(){return i(Dy)},Ry="\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}",Fy="\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(Ry,"\n");function Ly(e){var t,n,o,i,c,l=this,s=Ay(),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=My(e,null!=t?t:null),[4,Mv(Fy,n,s)];case 1:return r=o.sent(),f||(Av(r)?p({tag:"Failure",value:r.error}):h(r,t)),[2]}}))}))},h=function(e,t){jy(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=jy(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=jy(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(c=jy(d))||void 0===c?void 0:c.pageInfo.hasNextPage)}}var My=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=Hy(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}},jy=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},Hy=function(e){return e?e.map((function(e){return e.id})):null};function Uy(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,Mv("\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(Ry),{ids:e,language:n},t)];case 1:return Av(r=o.sent())?[2,r]:[2,Dv(r.value.nodes)]}}))}))}var Vy="object"==typeof v&&v&&v.Object===Object&&v,$y=Vy,Wy="object"==typeof self&&self&&self.Object===Object&&self,Gy=$y||Wy||Function("return this")(),qy=Gy.Symbol,Yy=qy,Ky=Object.prototype,Xy=Ky.hasOwnProperty,Zy=Ky.toString,Jy=Yy?Yy.toStringTag:void 0,Qy=Object.prototype.toString,eb=function(e){var t=Xy.call(e,Jy),n=e[Jy];try{e[Jy]=void 0;var r=!0}catch(e){}var o=Zy.call(e);return r&&(t?e[Jy]=n:delete e[Jy]),o},tb=qy?qy.toStringTag:void 0,nb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tb&&tb in Object(e)?eb(e):function(e){return Qy.call(e)}(e)},rb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ob=nb,ib=rb,ab=Gy["__core-js_shared__"],cb=function(){var e=/[^.]+$/.exec(ab&&ab.keys&&ab.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lb=Function.prototype.toString,sb=function(e){if(null!=e){try{return lb.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ub=function(e){if(!ib(e))return!1;var t=ob(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},db=function(e){return!!cb&&cb in e},pb=rb,fb=sb,mb=/^\[object .+?Constructor\]$/,hb=Function.prototype,gb=Object.prototype,vb=hb.toString,yb=gb.hasOwnProperty,bb=RegExp("^"+vb.call(yb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wb=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!pb(e)||db(e))&&(ub(e)?bb:mb).test(fb(e))}(n)?n:void 0},xb=wb(Gy,"DataView"),Eb=wb(Gy,"Map"),Cb=wb(Gy,"Promise"),kb=wb(Gy,"Set"),Sb=wb(Gy,"WeakMap"),_b=nb,Ib=sb,Bb=Ib(xb),Tb=Ib(Eb),Nb=Ib(Cb),zb=Ib(kb),Db=Ib(Sb),Pb=_b;(xb&&"[object DataView]"!=Pb(new xb(new ArrayBuffer(1)))||Eb&&"[object Map]"!=Pb(new Eb)||Cb&&"[object Promise]"!=Pb(Cb.resolve())||kb&&"[object Set]"!=Pb(new kb)||Sb&&"[object WeakMap]"!=Pb(new Sb))&&(Pb=function(e){var t=_b(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ib(n):"";if(r)switch(r){case Bb:return"[object DataView]";case Tb:return"[object Map]";case Nb:return"[object Promise]";case zb:return"[object Set]";case Db:return"[object WeakMap]"}return t});var Ob,Ab=nb,Rb=function(e){return null!=e&&"object"==typeof e},Fb=Object.prototype;Fb.hasOwnProperty,Fb.propertyIsEnumerable,Ob=function(){return arguments}(),Rb(Ob)&&Ab(Ob);var Lb={exports:{}},Mb=function(){return!1};!function(e,t){var n=Gy,r=Mb,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}(Lb,Lb.exports);var jb={exports:{}};!function(e,t){var n=Vy,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}(jb,jb.exports);var Hb={},Ub={"text/plain":"Text","text/html":"Url",default:"Text"};function Vb(e){return Vb="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},Vb(e)}Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.CopyToClipboard=void 0;var $b=qb(t),Wb=qb((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=Ub[t.format]||Ub.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})),Gb=["text","onCopy","options","children"];function qb(e){return e&&e.__esModule?e:{default:e}}function Yb(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 Kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yb(Object(n),!0).forEach((function(t){nw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zb(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 Jb(e,t){return Jb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jb(e,t)}function Qb(e,t){if(t&&("object"===Vb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ew(e)}function ew(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tw(e){return tw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tw(e)}function nw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rw=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&&Jb(e,t)}(a,$b.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=tw(r);if(o){var n=tw(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Qb(this,e)});function a(){var e;Xb(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nw(ew(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=$b.default.Children.only(i),l=(0,Wb.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,Gb),r=$b.default.Children.only(t);return $b.default.cloneElement(r,Kb(Kb({},n),{},{onClick:this.onClick}))}}])&&Zb(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}();Hb.CopyToClipboard=rw,nw(rw,"defaultProps",{onCopy:void 0,options:void 0});var ow=Hb.CopyToClipboard;ow.CopyToClipboard=ow;var iw=ow;let aw=(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 cw(e){return Is({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 lw={exports:{}},sw=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)}},uw=sw,dw=Object.prototype.toString;function pw(e){return"[object Array]"===dw.call(e)}function fw(e){return void 0===e}function mw(e){return null!==e&&"object"==typeof e}function hw(e){if("[object Object]"!==dw.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function gw(e){return"[object Function]"===dw.call(e)}function vw(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),pw(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 yw={isArray:pw,isArrayBuffer:function(e){return"[object ArrayBuffer]"===dw.call(e)},isBuffer:function(e){return null!==e&&!fw(e)&&null!==e.constructor&&!fw(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:mw,isPlainObject:hw,isUndefined:fw,isDate:function(e){return"[object Date]"===dw.call(e)},isFile:function(e){return"[object File]"===dw.call(e)},isBlob:function(e){return"[object Blob]"===dw.call(e)},isFunction:gw,isStream:function(e){return mw(e)&&gw(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:vw,merge:function e(){var t={};function n(n,r){hw(t[r])&&hw(n)?t[r]=e(t[r],n):hw(n)?t[r]=e({},n):pw(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)vw(arguments[r],n);return t},extend:function(e,t,n){return vw(t,(function(t,r){e[r]=n&&"function"==typeof t?uw(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}},bw=yw;function ww(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var xw=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(bw.isURLSearchParams(t))r=t.toString();else{var o=[];bw.forEach(t,(function(e,t){null!=e&&(bw.isArray(e)?t+="[]":e=[e],bw.forEach(e,(function(e){bw.isDate(e)?e=e.toISOString():bw.isObject(e)&&(e=JSON.stringify(e)),o.push(ww(t)+"="+ww(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},Ew=yw;function Cw(){this.handlers=[]}Cw.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},Cw.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Cw.prototype.forEach=function(e){Ew.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var kw=Cw,Sw=yw,_w=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},Iw=_w,Bw=function(e,t,n,r,o){var i=new Error(e);return Iw(i,t,n,r,o)},Tw=Bw,Nw=yw,zw=Nw.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Nw.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Nw.isString(r)&&a.push("path="+r),Nw.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(){}},Dw=yw,Pw=["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"],Ow=yw,Aw=Ow.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=Ow.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},Rw=yw,Fw=zw,Lw=xw,Mw=Aw,jw=Bw,Hw=yw,Uw=function(e,t){Sw.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Vw=_w,$w={"Content-Type":"application/x-www-form-urlencoded"};function Ww(e,t){!Hw.isUndefined(e)&&Hw.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Gw,qw={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Gw=function(e){return new Promise((function(t,n){var r=e.data,o=e.headers,i=e.responseType;Rw.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?(Dw.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=Dw.trim(e.substr(0,r)).toLowerCase(),n=Dw.trim(e.substr(r+1)),t){if(o[t]&&Pw.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(Tw("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(),Lw(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(jw("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(jw("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(jw(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Rw.isStandardBrowserEnv()){var f=(e.withCredentials||Mw(d))&&e.xsrfCookieName?Fw.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in a&&Rw.forEach(o,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Rw.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)}))}),Gw),transformRequest:[function(e,t){return Uw(t,"Accept"),Uw(t,"Content-Type"),Hw.isFormData(e)||Hw.isArrayBuffer(e)||Hw.isBuffer(e)||Hw.isStream(e)||Hw.isFile(e)||Hw.isBlob(e)?e:Hw.isArrayBufferView(e)?e.buffer:Hw.isURLSearchParams(e)?(Ww(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Hw.isObject(e)||t&&"application/json"===t["Content-Type"]?(Ww(t,"application/json"),function(e,t,n){if(Hw.isString(e))try{return(0,JSON.parse)(e),Hw.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&&Hw.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Vw(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, */*"}}};Hw.forEach(["delete","get","head"],(function(e){qw.headers[e]={}})),Hw.forEach(["post","put","patch"],(function(e){qw.headers[e]=Hw.merge($w)}));var Yw=qw,Kw=yw,Xw=Yw,Zw=function(e){return!(!e||!e.__CANCEL__)},Jw=yw,Qw=function(e,t,n){var r=this||Xw;return Kw.forEach(n,(function(n){e=n.call(r,e,t)})),e},ex=Zw,tx=Yw;function nx(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var rx=yw,ox=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 rx.isPlainObject(e)&&rx.isPlainObject(t)?rx.merge(e,t):rx.isPlainObject(t)?rx.merge({},t):rx.isArray(t)?t.slice():t}function l(r){rx.isUndefined(t[r])?rx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(e[r],t[r])}rx.forEach(r,(function(e){rx.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),rx.forEach(o,l),rx.forEach(i,(function(r){rx.isUndefined(t[r])?rx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(void 0,t[r])})),rx.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 rx.forEach(u,l),n},ix={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"}]},ax={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){ax[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var cx={},lx=ix.version.split(".");function sx(e,t){for(var n=t?t.split("."):lx,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}ax.transitional=function(e,t,n){var r=t&&sx(t);function o(e,t){return"[Axios v"+ix.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&&!cx[i]&&(cx[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 ux={isOlderVersion:sx,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:ax},dx=yw,px=xw,fx=kw,mx=function(e){return nx(e),e.headers=e.headers||{},e.data=Qw.call(e,e.data,e.headers,e.transformRequest),e.headers=Jw.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Jw.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||tx.adapter)(e).then((function(t){return nx(e),t.data=Qw.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return ex(t)||(nx(e),t&&t.response&&(t.response.data=Qw.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},hx=ox,gx=ux,vx=gx.validators;function yx(e){this.defaults=e,this.interceptors={request:new fx,response:new fx}}yx.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=hx(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&&gx.assertOptions(t,{silentJSONParsing:vx.transitional(vx.boolean,"1.0.0"),forcedJSONParsing:vx.transitional(vx.boolean,"1.0.0"),clarifyTimeoutError:vx.transitional(vx.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=[mx,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=mx(c)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},yx.prototype.getUri=function(e){return e=hx(this.defaults,e),px(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},dx.forEach(["delete","get","head","options"],(function(e){yx.prototype[e]=function(t,n){return this.request(hx(n||{},{method:e,url:t,data:(n||{}).data}))}})),dx.forEach(["post","put","patch"],(function(e){yx.prototype[e]=function(t,n,r){return this.request(hx(r||{},{method:e,url:t,data:n}))}}));var bx=yx;function wx(e){this.message=e}wx.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},wx.prototype.__CANCEL__=!0;var xx=wx,Ex=xx;function Cx(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 Ex(e),t(n.reason))}))}Cx.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Cx.source=function(){var e;return{token:new Cx((function(t){e=t})),cancel:e}};var kx=Cx,Sx=yw,_x=sw,Ix=bx,Bx=ox;function Tx(e){var t=new Ix(e),n=_x(Ix.prototype.request,t);return Sx.extend(n,Ix.prototype,t),Sx.extend(n,t),n}var Nx=Tx(Yw);Nx.Axios=Ix,Nx.create=function(e){return Tx(Bx(Nx.defaults,e))},Nx.Cancel=xx,Nx.CancelToken=kx,Nx.isCancel=Zw,Nx.all=function(e){return Promise.all(e)},Nx.spread=function(e){return function(t){return e.apply(null,t)}},Nx.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},lw.exports=Nx,lw.exports.default=Nx;var zx=lw.exports;function Dx(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 Px(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dx(Object(n),!0).forEach((function(t){Ox(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ox(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ax(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 Rx(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)||Lx(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 Fx(e){return function(e){if(Array.isArray(e))return Mx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lx(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 Lx(e,t){if(e){if("string"==typeof e)return Mx(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)?Mx(e,t):void 0}}function Mx(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 jx=["theme"];ql.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;}"," ",";",""],Dp.fontStackBase,Dp.fontSizeBase,Dp.lineHeightBase,Dp.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?Tl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px !important;padding:0 "," !important;"],Dp.spacing5)}),(function(e){var t=e.theme,n=Ax(e,jx);if("primary-dark"===n.variant){var r=Tl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["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;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,n.isPressed&&r,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFocusRing,r,Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=Tl(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return Tl(["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=Tl(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return Tl(["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 Hx=ql.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);ql(Hx).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(Dp.spacing2," * -1)"):Dp.spacing3}),Dp.spacing2),ql(Hx).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],Dp.spacing2,Dp.spacing3);var Ux,Vx=Gl(["100%{transform:rotate(360deg);}"]),$x=Gl(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);ql.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Vx),ql.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],$x),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(Ux||(Ux={}));var Wx,Gx,qx,Yx=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),Kx=ql(Yx).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}));ql.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===Ux.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}),Kx,(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):""})),ql.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})),ql.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})),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(Yx).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(Yx).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),ql.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})),Wl(["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"}(Wx||(Wx={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(Gx||(Gx={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(qx||(qx={})),ql.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 Xx=ql.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})),Zx=ql(Xx).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}));ql(Xx).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),ql(Xx).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),ql.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"}),Zx,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),ql.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})),ql.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})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var Jx=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),Qx=ql(Jx).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}));ql.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?Dp.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),Qx,(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?Tl(["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):""})),ql.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})),ql.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})),ql.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(Jx).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(Jx).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),ql.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),ql.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 Gx.COLOR:return e.theme.legacy.colorPrimary;case Gx.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var eE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);ql(eE).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})),ql.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?Tl(["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})),ql.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})),ql.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})),ql.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(eE).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})),ql.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})),ql.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),ql.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],Dp.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),ql.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),ql.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;}"],Dp.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var tE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);ql(tE).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})),ql.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),ql.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})),ql.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),ql.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ql.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),ql.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 nE=ql.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}));ql(nE).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),ql(nE).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),ql.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})),ql.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),ql.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 "})),ql.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var rE=ql.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);ql.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),ql.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;"]),ql.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 oE=ql.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);ql(oE).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),ql.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),ql.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 ")})),ql.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})),ql.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var iE,aE,cE=ql.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})),lE=ql.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}),cE);ql.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),ql.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),ql(rE).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;"],Dp.spacing6,Dp.spacing6),ql.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],Dp.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(iE||(iE={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(aE||(aE={})),ql.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var sE=ql.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}));ql.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]:aE.LEFT){case aE.RIGHT:return Tl(["top:110%;right:0;"]);case aE.CENTER:return Tl(["top:110%;left:50%;transform:translateX(-50%);"]);case aE.TOP:return Tl(["top:auto;bottom:110%;"]);case aE.LEFT:default:return Tl(["top:110%;left:0;"])}}(e.position)})),ql.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;}"],lE);var uE=ql.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}));ql.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}),lE,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),uE);var dE=Tl(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),pE=Tl(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));ql.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 "})),ql(sE).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;"]),ql.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],dE,pE,(function(e){return e.theme.legacy.colorRichBlack50}));var fE=ql.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}));ql.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})),ql.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var mE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);ql(mE).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(mE).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}),fE,(function(e){return e.theme.legacy.colorIconActive})),ql.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})),ql.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})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),ql.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})),ql.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&Tl(["background-color:",";"],e.theme.legacy.colorRichBlack03)})),ql.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})),ql.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})),ql.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),ql.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),ql.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),ql.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"),ql.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var hE=ql.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}));ql(hE).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),ql(hE).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var gE=ql.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],"44px");ql(gE).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),ql(gE).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var vE=ql.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");ql(vE).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),ql(vE).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var yE=["isOpen"];function bE(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(Wh,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=Ax(e,yE);return t.createElement(xE,{isVisible:r||n},t.createElement(ef,Px(Px({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(Nu,null),"aria-label":"More options"})))}},t.createElement(iw.CopyToClipboard,{text:n,onCopy:function(){wg({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Wh.Item,{icon:t.createElement(Ks,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(Os,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(iu,null),onClick:function(){return!1}},t.createElement(wE,{href:i,download:"presetimage"},"Download")))}var wE=ql.a.withConfig({displayName:"DownloadLink",componentId:"sc-1xq1wim-0"})(["display:block;"]),xE=ql.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"),EE=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},CE=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=EE(l),d="/transform/".concat(s).concat(u,"/"),p=BE(d,l);return t.createElement(kE,{className:"dat-menu-pointer-events-wrapper",onClick:r,isSelected:c},t.createElement(_h,{variant:"content",imageUrl:p}),t.createElement(SE,null,t.createElement(_E,null,n),t.createElement(IE,null,o)),!a&&t.createElement(bE,{alwaysVisible:!1,presetURL:d}))},kE=ql.div.withConfig({displayName:"ItemContainer",componentId:"sc-1q57zbs-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],Dp.spacing3,Dp.spacing4,Dp.spacing3,(function(e){return e.isSelected&&Dp.gray25}),Dp.gray25),SE=ql.div.withConfig({displayName:"ItemDetails",componentId:"sc-1q57zbs-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),_E=ql.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;"],Dp.fontSize100,Dp.lineHeightText,Dp.gray800,Dp.spacing4),IE=ql.p.withConfig({displayName:"Subtitle",componentId:"sc-1q57zbs-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],Dp.gray600,Dp.fontSize100,Dp.lineHeightText,Dp.spacing4),BE=function(e,t){var n=t.split("/transform"),r=n.length>1?n[0]:"";return"".concat(r).concat(e,"?io=transform:fit,width:80")},TE=t.memo(CE),NE=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL;return t.createElement(DE,null,t.createElement(zE,null,"Base transformation"),t.createElement(TE,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),r.length>0&&t.createElement(zE,null,r.length," Presets"),r.map((function(e){var r=e.name===o;return t.createElement(TE,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:r})})))},zE=ql.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],Dp.gray800,Dp.spacing5,Dp.spacing5,Dp.spacing4),DE=ql.div.withConfig({displayName:"Container",componentId:"sc-yqslcx-1"})(["padding:0px ",";"],Dp.spacing4),PE=t.memo(NE);function OE(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}var AE=function(e){switch(e.type){case"fill":case"crop":return t.createElement(fu,null);case"fit":return t.createElement(Ts,null);case"extend":return t.createElement(Ms,null);case"scale":return t.createElement(ru,null);case"rotate":return t.createElement(bu,null);case"flip":return t.createElement(hu,null);case"mirror":return t.createElement(du,null);case"border":return t.createElement(Qs,null);case"background":return t.createElement(eu,null);case"trim":return t.createElement(Xs,null);case"opacity":return t.createElement(Fs,null);case"sepia":return t.createElement(uu,null);case"contrast":return t.createElement(Ds,null);case"brightness":return t.createElement(Js,null);case"grayscale":return t.createElement(wu,null);case"blur":return t.createElement(cu,null);case"sharpness":return t.createElement(mu,null);case"saturation":return t.createElement(lu,null);case"text":return t.createElement(ou,null);case"advanced":return t.createElement(Hs,null);case"multiple":return t.createElement(Us,null);case"removebg":return t.createElement(FE,null);default:return null}};function RE(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"}))}function FE(e){return t.createElement(Gh,Px({},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 LE(e){return t.createElement(Gh,Px({},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 ME(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(jE,null,t.createElement(ym.Label,null,r),n,t.createElement(ym.HelperText,null,o))}var jE=ql(ym.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),HE={transformation:null,group:null,label:"Select a transform"},UE=[{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 VE(e){var n,r=UE.find((function(t){return t.transformation===e.transformation}))||HE;return t.createElement(ME,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement(kg,{onChange:function(t){var n=UE.find((function(e){return e.transformation===t})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(AE,{type:r.transformation})},t.createElement(kg.SectionTitle,null,"Transforms"),UE.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)})),t.createElement(kg.Divider,null),t.createElement(kg.SectionTitle,null,"Filters"),UE.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)})),t.createElement(kg.Divider,null),t.createElement(kg.SectionTitle,null,"Overlay"),UE.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)}))))}var $E=function(e){return"number"==typeof e&&!isNaN(e)},WE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!$E(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},GE=function(e){return e&&e>0?e.toString():""};function qE(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=Rx(r(!1),2),p=d[0],f=d[1],m=Rx(r(1),2),h=m[0],g=m[1],v=t.createElement(KE,null,p?t.createElement(Rs,null):t.createElement(As,null)),y=GE(c),b=GE(i);return t.createElement(ME,{label:"Dimensions"},t.createElement(YE,null,t.createElement(XE,null,t.createElement(Rm,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(ZE,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=WE(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(ef,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(JE,null),t.createElement(XE,null,t.createElement(Rm,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(ZE,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=WE(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 YE=ql.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),KE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],Dp.gray400a),XE=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),ZE=ql.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],Dp.spacing6),JE=ql.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],Dp.spacing4);function QE(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(ME,{label:i},t.createElement(Lg,{value:o,onChange:n,min:a,max:c,inputPosition:"right"}))}function eC(e){return t.createElement(Gh,Px({},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 tC(e){var n=e.io,r=e.onDispatch;return t.createElement(ME,{label:"Angle"},t.createElement(Rm,{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(eC,null),iconRight:t.createElement("span",null,"°")}))}function nC(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M8 19L8 21H16V19H13L13 5L16 5V3L8 3L8 5H11L11 19H8Z"}))}function rC(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M5 8H3V16H5V13H19V16H21V8H19V11H5V8Z"}))}var oC=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],iC=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}];function aC(e){var n=e.label,o=e.gravity,i=e.onChange,a=Rx(r(iC[1]),2),c=a[0],l=a[1],s=Rx(r(oC[1]),2),u=s[0],d=s[1],p=function(e){switch(i(e),e){case"topleft":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"top":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"topright":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"right"===e.value})));break;case"left":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"center":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"right":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"right"===e.value})));break;case"bottomleft":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"bottom":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"bottomright":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"right"===e.value})))}};return t.createElement(ME,{label:n},t.createElement(pf,null,t.createElement(cC,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(lC,{isSelected:"topleft"===o,onClick:function(){return p("topleft")}}),t.createElement(lC,{isSelected:"top"===o,onClick:function(){return p("top")}}),t.createElement(lC,{isSelected:"topright"===o,onClick:function(){return p("topright")}}),t.createElement(lC,{isSelected:"left"===o,onClick:function(){return p("left")}}),t.createElement(lC,{isSelected:"center"===o,onClick:function(){return p("center")}}),t.createElement(lC,{isSelected:"right"===o,onClick:function(){return p("right")}}),t.createElement(lC,{isSelected:"bottomleft"===o,onClick:function(){return p("bottomleft")}}),t.createElement(lC,{isSelected:"bottom"===o,onClick:function(){return p("bottom")}}),t.createElement(lC,{isSelected:"bottomright"===o,onClick:function(){return p("bottomright")}})),t.createElement(pf,{direction:"column",justifyContent:"space-around"},t.createElement(kg,{onChange:function(e){switch(l(iC.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(rC,null)},iC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)}))),t.createElement(kg,{onChange:function(e){switch(d(oC.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(nC,null)},oC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)}))))))}var cC=ql(pf).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:",";"],Dp.spacing5,Dp.gray25,Dp.gray100a,Dp.radiusMedium),lC=ql.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;}",""],Dp.gray10,Dp.gray100a,Dp.radiusSmall,Dp.gray25a,(function(e){return e.isSelected&&Tl(["border:2px solid ",";background:",";"],Dp.blue500,Dp.blue100)}));function sC(e){var n=e.color,o=e.label,i=e.onChangeValidation,a=e.onChange,c=Rx(r(!0),2),l=c[0],s=c[1],u=function(e){s(e),i(e)};return t.createElement(ME,{label:o},t.createElement(pf,null,t.createElement(uC,null,t.createElement(Rm,{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(ym.HelperText,{isInvalid:!l},"Please type a valid hex value")),t.createElement(dC,null,t.createElement(Rm,{type:"number",placeholder:"100",onChange:null,value:null,iconRight:t.createElement("span",null,"%"),isDisabled:!0}))))}var uC=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-1b7ygj6-0"})(["min-width:0;margin-right:",";"],Dp.spacing4),dC=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-1b7ygj6-1"})(["min-width:0;"]),pC=["Arial"],fC=["Regular"];function mC(e){var n,r,o=e.io,i=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(ME,{label:"Text"},t.createElement(Vg,{value:o.content,onChange:function(e){return i({type:"content",payload:{value:e,id:o.id}})}})),t.createElement(ME,{label:"Font"},t.createElement(kg,{value:o.font,label:o.font,onChange:function(e){return i({type:"font",payload:{value:e,id:o.id}})}},pC.map((function(e){return t.createElement(kg.Item,{value:e,key:e},e)})))),t.createElement(ME,{label:""},t.createElement(pf,null,t.createElement(hC,null,t.createElement(kg,{value:o.fontType,label:o.fontType,onChange:function(e){return i({type:"fontType",payload:{value:e,id:o.id}})},isDisabled:!0},fC.map((function(e){return t.createElement(kg.Item,{value:e,key:e},e)})))),t.createElement(gC,null,t.createElement(Rm,{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(sC,{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(aC,{label:"Position",gravity:o.gravity,onChange:function(e){return i({type:"gravity",payload:{value:e,id:o.id}})}}),t.createElement(ME,{label:"Padding"},t.createElement(Rm,{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(tC,{io:o,onDispatch:i}))}var hC=ql.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],Dp.spacing4),gC=ql.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function vC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(sC,{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 yC=[{label:"Rectangle",path:"square",icon:t.createElement(pu,null)},{label:"Ellipse",path:"circle",icon:t.createElement(gu,null)}],bC=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(LE,null)}];function wC(e){var n,r=e.onChange,o=e.shape,i=null!==(n=yC.find((function(e){return e.path===o})))&&void 0!==n?n:bC.find((function(e){return e.path===o}));return t.createElement(ME,{label:"Path"},t.createElement(kg,Px({onChange:r,value:o},i),yC.map((function(e){return t.createElement(kg.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement(kg.Divider,null),bC.map((function(e){return t.createElement(kg.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}var xC=[{label:"Focus point",focus:"point",icon:t.createElement(su,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(cw,null)}];function EC(e){var n=e.gravity,o=e.onChangeGravity,i=Rx(r(!1),2),c=i[0],l=i[1],s=Rx(r(null),2),u=s[0],d=s[1];a((function(){u||(n?f():p())}),[n,u]);var p=function(){var e=xC.find((function(e){return"point"===e.focus}));d(e)},f=function(){var e=xC.find((function(e){return"gravity"===e.focus}));d(e)};return t.createElement(t.Fragment,null,t.createElement(ME,{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(kg,Px(Px({onChange:function(e){var t="gravity"===e,n=xC.find((function(t){return t.focus===e}));d(n),l(t),o(t?"center":null)}},u),{},{value:null==u?void 0:u.focus}),xC.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement(kg.Divider,null):null,t.createElement(kg.Item,{value:e.focus,icon:e.icon},e.label))})))),c&&t.createElement(aC,{label:"Gravity",gravity:n,onChange:o}))}function CC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(wC,{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(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(EC,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity})),"circle"===n.path&&t.createElement(QE,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return r({type:"blur",payload:{value:e,id:n.id}})}}))}function kC(e){return t.createElement(Gh,Px({},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 SC(e){var n=e.io,r=e.onDispatch,o=GE(n.width);return t.createElement(t.Fragment,null,t.createElement(sC,{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(ME,{label:"Border"},t.createElement(pf,null,t.createElement(_C,null,t.createElement(Rm,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=WE(t,500);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(kC,null),iconRight:t.createElement("span",null,"px")})),t.createElement(IC,null,t.createElement(Rm,{placeholder:"Outside",onChange:null,value:null,iconRight:t.createElement(Eu,null),isDisabled:!0})))))}var _C=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-qgnlb2-0"})(["min-width:0;margin-right:",";"],Dp.spacing4),IC=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-qgnlb2-1"})(["min-width:0;"]);function BC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(EC,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity}))}function TC(e){var n=e.onDispatch,r=e.io;return t.createElement(QE,{label:OE(r.filter),min:-100,max:100,value:r.amount,onChange:function(e){return n({type:"amount",payload:{value:e,id:r.id}})}})}function NC(e){var n=e.onDispatch,r=e.io;return t.createElement(QE,{label:"Blur",min:0,max:100,value:r.radius,onChange:function(e){return n({type:"radius",payload:{value:e,id:r.id}})}})}function zC(e){var n=e.io,r=e.onDispatch;return t.createElement(sC,{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 DC(e){var n=e.io,r=e.onDispatch,o=GE(n.padding);return t.createElement(ME,{label:"Padding"},t.createElement(pf,null,t.createElement(PC,null,t.createElement(Rm,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=WE(t,3e3);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(kC,null),iconRight:t.createElement("span",null,"px")}))))}var PC=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],Dp.spacing4);function OC(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(VE,{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(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),"fill"===n.transform&&t.createElement(BC,{io:n,onDispatch:r}),"background"===n.transform&&t.createElement(zC,{io:n,onDispatch:r}),"rotate"===n.transform&&t.createElement(tC,{io:n,onDispatch:r}),"border"===n.transform&&t.createElement(SC,{io:n,onDispatch:r}),"extend"===n.transform&&t.createElement(vC,{io:n,onDispatch:r}),"crop"===n.transform&&t.createElement(CC,{io:n,onDispatch:r}),"trim"===n.transform&&t.createElement(DC,{io:n,onDispatch:r}),"text"===n.overlay&&t.createElement(mC,{io:n,onDispatch:r}),"blur"===n.filter&&t.createElement(NC,{io:n,onDispatch:r}),"opacity"===n.filter&&t.createElement(TC,{io:n,onDispatch:r}),o&&t.createElement(QE,{label:OE(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}}))}var AC=[{label:"Auto (recomended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],RC=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function FC(e){var n,r,o=e.options,i=e.onDispatch,a=(null===(n=AC.find((function(e){return e.value===o.format})))||void 0===n?void 0:n.label)||"Select Format",c=(null===(r=RC.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(ME,{label:"Format",helpText:"Set the output format"},t.createElement(kg,{onChange:function(e){return i({type:"format",payload:e})},label:a,value:o.format},AC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(ME,{label:"Quality"},t.createElement(kg,{onChange:function(e){return i({type:"quality",payload:Number(e)})},label:c,value:String(o.quality)},RC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.label},e.label)})))))}var LC=function(e){var n=e.preset,o=e.onDispatch,i=Rx(r([]),2),a=i[0],c=i[1],l=Rx(r(!1),2),s=l[0],u=l[1];return t.createElement(jh,null,n.content.io.map((function(e){var n=a.includes(e.id),r=e.transform||e.overlay||e.filter,i=OE(r)||"New transformation",l=MC(e);return t.createElement(t.Fragment,{key:e.id},t.createElement(jh.Item,{subtext:l,thumbnail:t.createElement(_h,{variant:"clean",icon:t.createElement(AE,{type:r}),shape:"square"}),rightElements:t.createElement(jC,{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(Fx(t),[e])}))}(e.id)}},i),n&&t.createElement(OC,{io:e,onDispatch:o,key:"".concat(e.id,"-transformation")}),t.createElement(jh.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(jh.Item,{key:"add-button",onClick:function(){var e=aw();o({type:"addTransformation",payload:{id:e}}),c((function(t){return[].concat(Fx(t),[e])}))},thumbnail:t.createElement(_h,{icon:t.createElement(qs,null),shape:"square"})},"Add transformation"),t.createElement(jh.Divider,{key:"add-button-divider"}),t.createElement(jh.Item,{key:"advanced-button",subtext:"Format: ".concat(n.content.format.toUpperCase()||"Auto"," • Quality: ").concat(n.content.quality),thumbnail:t.createElement(_h,{variant:"clean",icon:t.createElement(AE,{type:"advanced"}),shape:"square"}),rightElements:s?t.createElement(Bu,null):t.createElement(Tu,null),onClick:function(){u(!s)}},"Output options"),s&&t.createElement(FC,{options:n.content,onDispatch:o,key:"advanced-options"}))},MC=function(e){var t="Focus Point";e.gravity&&(t=OE(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""}},jC=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(pf,{alignItems:"center"},t.createElement(Sf,{content:"Remove transformation"},t.createElement(ef,{variant:"clean",icon:t.createElement(Ns,{fill:Dp.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(Bu,null):t.createElement(Tu,null))};function HC(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(VC,null,t.createElement(WC,null,"Transformations"),t.createElement(GC,null,1===c?"".concat(c," transformation applied"):c>1?"".concat(c," transformations applied"):"No transformations")),t.createElement($C,null,t.createElement(LC,{preset:i,onDispatch:a})))}var UC,VC=ql.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],Dp.spacing6,Dp.white,Dp.spacing4),$C=ql.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),WC=ql.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],Dp.gray800),GC=ql.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],Dp.gray600);!function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(UC||(UC={}));var qC=function(){return t.createElement(KC,null,t.createElement(ZC,null),t.createElement(JC,null,t.createElement(QC,{large:!0}),t.createElement(QC,null)))},YC=function(){return t.createElement(ek,null)},KC=ql.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),XC=Gl(["0%{background-color:","}100%{background-color:","}"],Dp.gray50a,Dp.gray100a),ZC=ql.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],XC),JC=ql.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],Dp.spacing4),QC=ql.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],Dp.spacing3,(function(e){return e.large?"110px":"60px"}),Dp.radiusSmall,XC),ek=ql.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],XC),tk=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!==UC.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(nk,{direction:"column"},r===UC.presets?d?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement(qC,{key:"preset-skeleton-".concat(e)})}))):t.createElement(PE,{baseURL:u,presets:o,onPresetSelected:n,selectedPreset:l}):null:p?t.createElement(rk,null,t.createElement(HC,{preset:i,onDispatch:c})):null)},nk=ql(pf).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%;"],Dp.white),rk=ql.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],Dp.spacing6);function ok(e){var n=e.url,r=c(null);return l((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(ik,null,t.createElement(ak,null,t.createElement(ck,null,t.createElement(zu,null)),t.createElement(lk,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(uk,null,n))),t.createElement(sk,null,t.createElement(Sf,{content:"Copy URL"},t.createElement(iw.CopyToClipboard,{text:n,onCopy:function(){wg({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(ef,{variant:"clean",icon:t.createElement(Zs,null),"aria-label":"Copy to clipboard"}))),t.createElement(bE,{alwaysVisible:!0,presetURL:n})))}var ik=ql.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;"],Dp.white,Dp.radiusLarge,Dp.elevationStatic),ak=ql.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),ck=ql.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],Dp.spacing5,Dp.spacing4,Dp.gray600),lk=ql.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;"],Dp.gray800,Dp.fontSize100),sk=ql.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],Dp.spacing2),uk=ql.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]);function dk(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=Rx(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(vk,null,t.createElement(yk,{justifyContent:"space-between",alignItems:"center"},t.createElement(bk,null,t.createElement(ef,{variant:"clean",icon:t.createElement(au,null),"aria-label":"Go back",onClick:s})),l===UC.presets&&i&&t.createElement(Ck,{variant:"clean",onClick:p,icon:t.createElement(RE,null)},"Transform"),l===UC.transformations&&("function"==typeof d&&f?t.createElement(wk,null,t.createElement(Ck,{variant:"primary",onClick:d},"Apply transformations")):t.createElement(Ck,{variant:"primary",onClick:u},"Done"))),t.createElement(Ek,{hideBottomBar:c},n&&t.createElement(gk,{src:v,alt:"",isImageLoading:h,onLoad:function(){g(!1)}}),h&&t.createElement(YC,null)),!c&&t.createElement(xk,null,t.createElement(ok,{url:n})))}var pk,fk,mk,hk,gk=ql.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(Dp.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),vk=ql.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-1"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),yk=ql(pf).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-2"})(["height:90px;width:100%;"]),bk=ql.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-3"})(["margin-left:",";"],Dp.layoutSpacing1),wk=ql.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-4"})(["display:flex;gap:",";"],Dp.spacing4),xk=ql.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],Dp.spacing5),Ek=ql.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&&Tl(["margin-bottom:",";"],Dp.spacing8)})),Ck=ql(ef).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-7"})(["float:right;margin-right:",";"],Dp.layoutSpacing1),kk=function(e){return e.data},Sk=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},_k=null===(pk=document.querySelector('meta[name="x-csrf-token"]'))||void 0===pk?void 0:pk.getAttribute("content"),Ik={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(fk=window)||void 0===fk?void 0:fk.csrf)||(null===(mk=window)||void 0===mk||null===(hk=mk.Bynder)||void 0===hk?void 0:hk.csrf_token)||_k},Bk=zx.create({headers:Ik}),Tk=function(){return"/v7/dat/presets/",Bk.get("/v7/dat/presets/",undefined).then(kk).catch(Sk)},Nk={id:"",transform:null,overlay:null,filter:null},zk={name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0};function Dk(e,t){var n,r=function(){return e.content.io.map((function(e){return Px({},e)}))};switch(t.type){case"init":return zk;case"edit":return Px(Px({isValid:!0},t.payload),{},{content:Px(Px({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return Px(Px({},e),{},{id:aw()})}))})});case"addTransformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:[].concat(Fx(r()),[Px(Px({},Nk),{},{id:t.payload.id,transform:"fill"})])})});case"deleteTransformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return Px(Px({},e),{},(Ox(n={},t.type,t.payload),Ox(n,"content",Px(Px({},e.content),{},{io:r()})),n));case"format":case"quality":return Px(Px({},e),{},{content:Px(Px({},e.content),{},Ox({io:r()},t.type,t.payload))});case"transformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?Px({},e):Px(Px({},Pk(t.payload.value)),{},Ox({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 Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?Px({},e):Px(Px({},e),{},Ox({},t.type,t.payload.value))}))})});default:return e}}var Pk=function(e){switch(e){case"fill":case"fit":case"extend":case"scale":return Px(Px({},Nk),{},{height:1e3,width:1e3});case"crop":return Px(Px({},Nk),{},{height:1e3,width:1e3,path:"square"});case"background":return Px(Px({},Nk),{},{color:"FFF"});case"border":return Px(Px({},Nk),{},{color:"FFF",width:1});case"rotate":return Px(Px({},Nk),{},{angle:0});case"opacity":return Px(Px({},Nk),{},{amount:100});case"blur":return Px(Px({},Nk),{},{radius:0});case"text":return Px(Px({},Nk),{},{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 Px(Px({},Nk),{},{amount:0})}},Ok=ql.div.withConfig({displayName:"FlexContainer",componentId:"sc-inplsu-0"})(["display:flex;min-height:0;height:100%;"]);ql.div.withConfig({displayName:"NameIconContainer",componentId:"sc-i27a7s-0"})(["display:flex;min-width:0;"]),ql.div.withConfig({displayName:"DateContainer",componentId:"sc-i27a7s-1"})(["width:385px;font-size:",";color:",";"],Dp.fontSize75,Dp.gray600),ql.div.withConfig({displayName:"Name",componentId:"sc-i27a7s-2"})(["font-size:",";color:",";flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],Dp.fontSize100,Dp.gray800),ql.div.withConfig({displayName:"DescriptionContainer",componentId:"sc-i27a7s-3"})(["display:flex;flex-direction:column;flex:1;min-width:0;padding:0 ",";"],Dp.spacing4),ql.div.withConfig({displayName:"Description",componentId:"sc-i27a7s-4"})(["font-size:",";color:",";"],Dp.fontSize75,Dp.gray600),ql.div.withConfig({displayName:"Actions",componentId:"sc-i27a7s-5"})(["display:flex;margin-left:",";justify-content:end;"],Dp.spacing4),ql.tr.withConfig({displayName:"Container",componentId:"sc-i27a7s-6"})(["height:72px;&:not(:last-child){border-bottom:solid 1px ",";}"],Dp.gray50),ql.th.withConfig({displayName:"Th",componentId:"sc-945e4m-0"})(["color:",";font-size:",";"],Dp.gray800,Dp.fontSize100),ql.table.withConfig({displayName:"Table",componentId:"sc-945e4m-1"})(["width:100%;"]),ql.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:",";"],Dp.spacing4,Dp.spacing7,Dp.spacing5,Dp.spacing6,Dp.white),ql.h3.withConfig({displayName:"Title",componentId:"sc-405vyk-1"})([""," margin:0;"],df.uiTextL);function Ak(e){var n,o=e.transformBaseUrl,i=e.transformation,c=e.setTransformation,l=e.closeDat,s=La(),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(Lk,null,t.createElement(Mk,{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(ug,{isOpen:!!m,title:"Transformations not yet applied",container:d,onClose:b,actionPrimary:t.createElement(ef,{variant:"primary",onClick:function(){v(null==m?void 0:m.url,null==m?void 0:m.preset),b()}},"Apply transformations"),actionSecondary:t.createElement(ef,{variant:"secondary",onClick:b},"Cancel"),actionTertiary:t.createElement(ef,{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 Rk,Fk,Lk=ql.div(Rk||(Rk=_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"])),Dp.white,Dp.radiusBase),Mk=ql((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?UC.presets:UC.transformations,v=Rx(r(n),2),y=v[0],b=v[1],w=Rx(r(g),2),x=w[0],E=w[1],C=Rx(r(""),2),k=C[0],S=C[1],_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Px(Px({},zk),{},{content:Px(Px({},zk.content),{},{io:t})}),o=Rx(r([]),2),i=o[0],l=o[1],s=Rx(r(!1),2),u=s[0],d=s[1],p=Rx(f(Dk,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(){Tk().then((function(e){g.current&&(l(e.presets),d(!1))})).catch((function(e){g.current&&(d(!1),wg({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,z=_.defaultValues,D=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,z);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(UC.transformations)}),[i,l]),t.createElement(Ok,null,t.createElement(dk,{url:y,canViewTransformations:l,activeTab:x,onApply:m?function(){return m(y,B)}:void 0,onBack:function(){return h(y,B)},hasActiveChanges:D,onDone:function(){i||D?i&&E(UC.presets):p(y,B)},onShowTransformations:function(){l&&E(UC.transformations)},hideBottomBar:u}),t.createElement(tk,{onPresetSelected:function(e){b(""!==e?n.split("/transform")[0]+"/transform/".concat(e,"/").concat(EE(n),"/"):n),S(e)},activeTab:x,presets:I,preset:B,dispatch:T,selectedPreset:k,isLoading:N,baseURL:n,canViewPresets:i,canViewTransformations:l}))}))(Fk||(Fk=_a(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),jk=n(null);function Hk(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(jk.Provider,{value:d},e.children,l&&t.createElement(Ak,{transformBaseUrl:l,transformation:i,setTransformation:a,closeDat:function(){return s("")}}))}function Uk(){var e=i(jk);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function Vk(e){var n,o,i,c,l=e.transformBaseUrl,s=e.asset,u=e.toggleDropdown,d=Uk(),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(jh.Divider,null),t.createElement(Wk,{thumbnail:p&&0!==v?t.createElement(_h,{imageUrl:h,"data-testid":"thumbnail-image"}):t.createElement(_h,{icon:t.createElement(fu,null),"data-testid":"crop-icon"}),rightElements:t.createElement(Du,null),onClick:function(){u(),f(l,s)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var $k,Wk=ql(jh.Item)($k||($k=_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"]))),Gk=n(null);function qk(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=Nv(),l=c.selectionMode,s=c.language,u=Ay(),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,Uy(r,u,s)]:[3,2];case 1:e=o.sent(),d||Av(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=zv(),f=Uk().transformation;function m(){c([])}function h(e){c((function(t){var n=e.filter((function(e){return!Yk(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!Yk(t,e)})),r=e.filter((function(e){return Yk(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 Yk(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(Gk.Provider,{value:y},e.children)}function Yk(e,t){return e.some((function(e){return e.value.id===t.id}))}function Kk(){var e=i(Gk);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function Xk(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,c=e.style,l=zv(),s=Ta()[1],u=Kk(),d=Nv().hideExternalAccess;return t.createElement("div",{id:r.id,style:c,className:hv("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(Kf,{contextAction:!d&&t.createElement(Kf.ContextActionButton,{"aria-label":qg("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(Ls,null)),selectButtonAriaLabel:qg(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(Kf.Frame,null,t.createElement(Kf.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(Kf.Img,{key:e,src:e,alt:r.name})})))),t.createElement(Kf.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},kv(r.assetCount,qg("{} asset"),qg("{} assets")))))}function Zk(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 Jk(e,t){if(!e)throw new Error("Invariant failed")}function Qk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eS(){return eS=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},eS.apply(this,arguments)}function tS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var nS=new Map,rS=new Map,oS=new Map,iS=0;function aS(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(nS.has(e)&&Jk(!1),e){var c=function(e){return e?oS.has(e)?oS.get(e):(iS+=1,oS.set(e,iS.toString()),oS.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),l=rS.get(c);l||(l=new IntersectionObserver(lS,n),c&&rS.set(c,l));var s={callback:t,element:e,inView:!1,observerId:c,observer:l,thresholds:l.thresholds||(Array.isArray(a)?a:[a])};return nS.set(e,s),l.observe(e),s}}function cS(e){if(e){var t=nS.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&nS.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&oS.delete(o),r&&!i&&r.disconnect(),nS.delete(e)}}}function lS(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=nS.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 sS=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 Qk(tS(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),Qk(tS(t),"node",null),Qk(tS(t),"handleNode",(function(e){t.node&&(cS(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),Qk(tS(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||Jk(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(cS(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(cS(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(cS(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;aS(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",eS({ref:this.handleNode},c),o)},r}(m);Qk(sS,"displayName","InView"),Qk(sS,"defaultProps",{threshold:0,triggerOnce:!1});var uS={inView:!1,entry:void 0};function dS(e){var n=function(e){void 0===e&&(e={});var t=c(),n=r(uS),o=n[0],i=n[1];return[u((function(n){t.current&&(cS(t.current),e.triggerOnce||i(uS)),n&&aS(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&cS(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(Ey,{className:hv(!i&&"hidden")})))}function pS(){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 fS(e){return t.createElement(wS,null,t.createElement(xS,null,t.createElement(pS,null),t.createElement(ES,null)),t.createElement(CS,null,qg("No results found")),t.createElement(kS,null,qg("Try adjusting the filter to find assets.")),t.createElement(SS,{variant:"primary",title:qg("Reset filters"),onClick:e.onReset},qg("Reset filters")))}var mS,hS,gS,vS,yS,bS,wS=ql.div(mS||(mS=_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"]))),xS=ql.div(hS||(hS=_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"])),Dp.gray25),ES=ql(js)(gS||(gS=_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"])),Dp.spacing2,Dp.gray300),CS=ql.h1(vS||(vS=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),Dp.spacing6,Dp.fontSize400),kS=ql.span(yS||(yS=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),Dp.spacing5,Dp.colorTextDisabled),SS=ql(ef)(bS||(bS=_a(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),Dp.spacing7);function _S(e){var n,o,i=r(null),a=i[0],c=i[1],l=Zk(a).dimensions,s=Kk().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(_v,{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(fS,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(dS,{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(Xk,{key:e.id,isSelected:s.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}function IS(){var e=Oa("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=Ay(),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,Mv("\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||(Av(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(dv,{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"},kv(i.data.value.collections.totalCount,qg("{} collection"),qg("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(xv,{options:["CREATED_AT","NAME"]}),t.createElement(pv,null)),t.createElement(_S,{connection:i}))}var BS=n(null);function TS(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 NS(t,e)}))}function k(e){u((function(t){return zS(t,e)}))}function S(e){f((function(t){return NS(t,e.id)})),E((function(t){var n;return xa(xa({},t),((n={})[e.id]=e,n))}))}function _(e){f((function(t){return zS(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 NS(t,e)}))}function B(e){g((function(t){return zS(t,e)}))}function T(){u([]),f([]),E({}),g([])}a((function(){b(!c&&void 0)}),[c]);var N=p.map((function(e){return x[e]})),z=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(BS.Provider,{value:z},n)}function NS(e,t){return e.includes(t)?e:Sa(Sa([],e,!0),[t],!1)}function zS(e,t){return e.filter((function(e){return e!==t}))}function DS(){var e=i(BS);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function PS(e){return qg({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function OS(e){switch(e){case"AUDIO":return Gs;case"DOCUMENT":return tu;case"IMAGE":return vu;case"VIDEO":return Ws;case"ARCHIVE":return Ys}}function AS(e){return t.createElement(FS,{icon:t.createElement(_u,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right",isVisible:e.isVisible})}var RS,FS=ql(ef)(RS||(RS=_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 LS(e){return t.createElement(jS,{icon:t.createElement(Su,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left",isVisible:e.isVisible})}var MS,jS=ql(ef)(MS||(MS=_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 HS(e){var n=r(0),o=n[0],i=n[1],l=c(null),s=Zk(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:hv("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(LS,{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(AS,{isVisible:h,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function US(e){var n=hv("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 VS(e){return t.createElement(US,{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(Iu,{onClick:e.onClick,title:qg("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function $S(){var e=DS(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(GS,{variant:"clean",isSmall:!0,onClick:e.clear},qg("Clear filters"));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(HS,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=OS(n);return t.createElement(VS,{key:n,onClick:function(){return e.removeAssetType(n)},title:PS(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(VS,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(VS,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var WS,GS=ql(ef)(WS||(WS=_a(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),qS=["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 YS(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return qS.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 KS(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function XS(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=Nv(),a=i.hideExternalAccess,c="SingleSelectFile"===i.selectionMode&&n;return!c&&a?null:c||a?c&&a?t.createElement(Kf.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(fu,null)):t.createElement(Wh,{trigger:function(e){var n=e.isOpen,r=Ea(e,["isOpen"]);return t.createElement(Kf.ContextActionButton,xa({"aria-label":"Menu",isPressed:n},r),t.createElement(Nu,null))},isClosedOnScroll:!0},t.createElement(Wh.Item,{icon:t.createElement(Ls,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(fu,null),onClick:o},"New transformation")):t.createElement(Kf.ContextActionButton,{"aria-label":qg("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(Ls,null))}function ZS(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=Uk(),b=y.openDat,w=y.setTransformation,x=Nv().theme,E=function(e){return[e.isArchived&&qg("archived"),e.isWatermarked&&qg("watermarked"),e.isLimitedUse&&qg("limited")].filter((function(e){return e})).join(", ")}(s),C=KS(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]);var k=function(e){void 0!==p&&(e.stopPropagation(),w(),p(s,e))};return t.createElement(t_,{id:s.id,theme:x,isOutlined:(u||d)&&void 0!==(null==x?void 0:x.colorPrimary),fadeIn:l,className:hv("group",i),"data-drag-select-id":s.id},t.createElement(Kf,{contextAction:t.createElement(XS,{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 b(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,s)}}),selectButtonAriaLabel:qg(u?"Deselect":"Select"),onSelect:k,onClick:k,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(Kf.Frame,{icon:E?t.createElement(n_,{color:"black-alpha",limitWidth:!!C,"data-testid":"asset-tag"},t.createElement(Df,null,E)):void 0,"data-testid":"asset-type",badge:C},t.createElement(Kf.Images,null,YS(s)&&t.createElement(Kf.Img,{src:YS(s),alt:s.name,contentResize:"fit"}))),m,t.createElement(r_,{"data-testid":"asset-name"},s.name),!!(null==g?void 0:g.length)&&t.createElement(Kf.AdditionalInfo,null,t.createElement("dl",{className:"text-body-400 text-sm flex flex-col gap-y-px"},g&&g.map((function(e){var n=e.label,r=e.options.map((function(e){return e.label})).join(", ");return t.createElement("div",{className:"flex flex-wrap",key:n},t.createElement("dt",{className:"text-body-300 pr-1"},n,":"),t.createElement("dd",{className:""},r))}))))))}var JS,QS,e_,t_=ql.div(JS||(JS=_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"])),Dp.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})),n_=ql(Pp)(QS||(QS=_a(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.limitWidth&&"max-width: 142px;"})),r_=ql.p(e_||(e_=_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 o_(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 i_(e,t){return e===t}function a_(e){return"function"==typeof e?function(){return e}:e}function c_(e,t,n){var o=n&&n.equalityFn||i_,i=function(e){var t=r(a_(e)),n=t[0],o=t[1];return[n,u((function(e){return o(a_(e))}),[])]}(e),l=i[0],s=i[1],d=o_(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 l_={x:null,y:null},s_=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,l=e.onDeselect,s=e.onDragStart,d=e.onDragEnd,p=r(l_),f=p[0],m=p[1],g=r(l_),v=g[0],y=g[1],b=c_(v,10,{leading:!0,maxWait:10})[0],w=r(),x=w[0],E=w[1],C=La(),k=t.useMemo((function(){return d_(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=c_(k,50,{leading:!1,maxWait:50})[0],_=r([]),I=_[0],B=_[1],T=g_(I),N=c(f),z=c(v),D=c(null!==N.current.x&&null!==N.current.y&&null!==z.current.x&&null!==z.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},D.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof s&&D.current?(O(P.current),s(null!=x?x:"select")):"function"!=typeof d||D.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[D.current,x]);var A=function(e){N.current=e,m(e),F()},R=function(e){z.current=e,y(e),F()},F=function(){D.current=null!==N.current.x&&null!==N.current.y&&null!==z.current.x&&null!==z.current.y},L=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})}),[]),M=u((function(){C.removeEventListener("mousemove",L),C.removeEventListener("mouseup",M),A(l_),R(l_)}),[L,C]),j=u((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",L),C.addEventListener("mouseup",M),A({x:n,y:t}))}),[L,M,C]);a((function(){var e=C.querySelector(n);return e&&(m_(C),e.addEventListener("mousedown",j)),function(){e&&(e.removeEventListener("mousedown",j),h_(C))}}),[n,j,L,M,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=f_(t);return t instanceof HTMLElement&&p_(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);B(t)}),[S,C]),a((function(){if(T&&T!==I&&D.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,D]);var H=C.querySelector("#".concat("drag-select-container"));return D.current&&H?h.createPortal(t.createElement("div",xa({},o,{style:o.style?xa(xa(xa({},u_),o.style),k):xa(xa({},u_),k),"data-testid":"drag-selection"})),H):null},u_={position:"absolute",zIndex:100},d_=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)}},p_=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},f_=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},m_=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},h_=function(e){var t=e.querySelector("#".concat("drag-select-container"));t&&t.remove()},g_=function(e){var t=c();return a((function(){t.current=e})),t.current};function v_(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=Zk(_.current).dimensions,B=r([]),T=B[0],N=B[1],z=r("inactive"),D=z[0],P=z[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 F(e){return("inverse"!==D||!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(_v,{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(s_,{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(dS,{hasNextPage:l,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(ZS,{key:e.id,isSelected:F(e),isOutlined:F(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 y_(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=Nv(),h=Kk().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=Kk(),v=g.selectAssets,y=g.toggleAssets,b=Pa().setSearch,w=DS();if(a((function(){s||f(!1)}),[s]),"Failure"===l.tag)return t.createElement(dv,{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(v_,{assets:b_(l),count:x,isLoading:s,loadMore:u,hasNextPage:d,theme:m.theme,selectionMode:m.selectionMode,selectedAssetIds:h,onSelect:v,onToggle:y,emptyStateElement:t.createElement(fS,{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},kv(x,qg("{} asset"),qg("{} assets"))),e.showActiveFilters&&t.createElement($S,null),t.createElement(xv,null),t.createElement(pv,null)))}function b_(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 w_(e){var n=Oa("collection").value,r=Ta()[1],o=ba("collection")[0],i=Nv(),a=i.assetTypes,c=i.language,l=Ly({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"},qg("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(y_,{connection:l,totalCount:e.collection.assetCount}))}var x_,E_,C_,k_,S_=ql(tm)(x_||(x_=_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"])),Dp.fontSize75,(function(e){return e.isLoading&&!e.isChecked?"wait":"pointer"})),__=ql.li(E_||(E_=_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"])),Dp.spacing2,Dp.spacing5,Dp.gray25),I_=ql.div(C_||(C_=_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":Dp.gray500})),B_=ql.span(k_||(k_=_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"])),Dp.spacing4);function T_(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(__,null,t.createElement(S_,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option",isLoading:e.isLoading},t.createElement(I_,{isChecked:n},t.createElement(B_,{title:e.metapropertyOption.label},t.createElement(Df,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount))))}function N_(e){return t.createElement(P_,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(O_,null,e.metaproperty.options.map((function(n){return t.createElement(T_,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var z_,D_,P_=ql.div(z_||(z_=_a(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),Dp.spacing5),O_=ql.ul(D_||(D_=_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 A_(e){return t.createElement(F_,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(N_,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var R_,F_=ql.div(R_||(R_=_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"])),Dp.spacing4);function L_(e){var n,r,o=DS(),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(vv,{key:n.id,title:t.createElement(M_,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(N_,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(A_,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function M_(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:hv("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function j_(e){var n=DS(),r=n.tags.includes(e.tag.name),o=hv("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(US,{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 H_(e){var n=Sa([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(vv,{title:t.createElement(U_,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(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",qg("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(j_,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function U_(){return t.createElement(t.Fragment,null,t.createElement(Ps,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},qg("Tags")))}function V_(e){var n=DS(),r=n.assetTypes.includes(e.type),o=OS(e.type);return t.createElement(__,{"data-testid":"advanced-options"},t.createElement(S_,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},isLoading:e.isLoading,"data-testid":"".concat(PS(e.type),"-filter")},t.createElement(I_,{isChecked:r},t.createElement(o,null),t.createElement(W_,null,PS(e.type)),t.createElement("span",{className:"fade-in-down"},e.count))))}var $_,W_=ql.div($_||($_=_a(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),Dp.spacing3);function G_(e){var n=Nv().assetTypes,r=n.filter((function(t){return Y_(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(vv,{title:t.createElement(q_,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},qg("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(V_,{key:n,type:n,count:Y_(e.count,n),isLoading:e.isLoading})}))))}))}function q_(){return t.createElement(t.Fragment,null,t.createElement(xu,{className:"mr-2 inline w-6 h-6"}),qg("Advanced"))}function Y_(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 K_(){var e=DS(),n=Oa("assets").value,o=Nv(),i=o.assetTypes,c=o.language;Kg(c);var l=function(e){var t=this,n=Ay(),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,Mv("\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||(Av(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(X_,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(HS,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(L_,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(H_,{tags:f.nodes,isLoading:u}),t.createElement(G_,{isLoading:u,count:m.assetType})))}function X_(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var Z_,J_,Q_=Wl(J_||(J_=_a(["",""],["",""])),Tl(Z_||(Z_=_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 eI(){var e=Ta()[0],n=Oa(e.page),o=n.value,i=n.isLoading,c=o_(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?qg("Search for collections"):qg("Search for assets");return t.createElement(nI,{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(js,null),iconRight:i?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Ey,{className:"relative right-0"})):void 0,hasClearButton:!i&&!!o})}var tI,nI=ql(Rm)(tI||(tI=_a(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function rI(){var e=Ta(),n=e[0],r=e[1];return t.createElement(iI,null,t.createElement(ef,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},qg("Assets")),t.createElement(ef,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},qg("Collections")))}var oI,iI=ql.div(oI||(oI=_a(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),Dp.spacing2);function aI(){var e,n="authenticated"===(null===(e=i(Dy))||void 0===e?void 0:e.status)||!1,r=ly(),o=Ay(),a=void 0!==Nv().assetFilter;return n||r||!a?t.createElement(sI,null,!a&&t.createElement(t.Fragment,null,t.createElement(rI,null),t.createElement(eI,null)),t.createElement(uI,null,n&&!(null==o?void 0:o.hideLogout)&&t.createElement(ef,{variant:"clean",onClick:function(){return null==o?void 0:o.logout()},rightIcon:t.createElement(zs,null)},qg("Log out")),r&&t.createElement(ef,{variant:"clean",onClick:function(){return r.onClose()},title:qg("Close"),icon:t.createElement(Iu,null)}))):null}var cI,lI,sI=ql.nav(cI||(cI=_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"])),Dp.gray10,Dp.spacing5,Dp.spacing4),uI=ql.div(lI||(lI=_a(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function dI(){var e=DS(),n=e.assetTypes,r=e.metaproperties,o=e.tags,i=e.isLimited,a=Oa("assets").value,c=ba("assets")[0],l=Nv(),s=l.assetFilter,u=l.assetTypes,d=l.language,p=Ly(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(y_,{connection:p,showActiveFilters:void 0===s})}function pI(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,Mv("\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 Av(r=o.sent())?[2,r]:[2,Dv(r.value.node)]}}))}))}function fI(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}function mI(e){var n=e.asset,o=e.onChange,i=r({status:"Loading"}),c=i[0],l=i[1],s=Ay(),u=Nv().assetFieldSelection,d=Uk().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,pI(e.id,t,n)];case 1:return Ov(r=o.sent())&&r.value.files?[2,Dv(Fv(r.value.files))]:[2,Pv("Error retrieving asset files")]}}))}))}(n,s,u).then((function(e){if(Av(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(yI,null,t.createElement(vv,{title:t.createElement(hI,{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(wv,{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(Ts,{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(nu,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},fI(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(Vk,{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 hI(e){var n=e.state;return"Loading"===n.status?t.createElement(Sv,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(bI,null,"Custom transformation"===n.key&&t.createElement(fu,null),fI(n.key)):t.createElement(t.Fragment,null,"Error")}var gI,vI,yI=ql.div(gI||(gI=_a(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),Dp.spacing5),bI=ql.div(vI||(vI=_a(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),Dp.spacing4);function wI(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(ku,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,qg("Retry")):t.createElement(t.Fragment,null,kv(r,qg("Add asset"),qg("Add assets")))}function xI(e){var n,o=Nv(),i=o.assetFieldSelection,l=o.onSuccess,s=o.selectionMode,u=Kk().preselectedAssetIds,d=Ay(),p=c(!0),f=r("SingleSelectFile"===s?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=f[0],h=f[1];function g(e,t){if(Av(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(mI,{asset:e.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(ef,{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)?pI(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 }\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,Mv(r,a,t)];case 1:if(Av(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,Dv(f)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},t.createElement(wI,{status:m.status,numberOfSelectedItems:e.selection.length})))}function EI(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(S_,{"aria-label":qg("Deselect"),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"},t.createElement(kI,null,o)))}var CI,kI=ql.span(CI||(CI=_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"])),Dp.fontSize100);function SI(e){var n=e.asset,r=Kk();return t.createElement(EI,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(II,{variant:"content",imageUrl:YS(n),size:"m"}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),KS(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},KS(n)))}var _I,II=ql(_h)(_I||(_I=_a(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),Dp.spacing4);function BI(e){var n=e.collection,r=Kk();return t.createElement(EI,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(NI,{variant:"clean",icon:t.createElement(yu,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"},kv(n.assetCount,qg("{} asset"),qg("{} assets"))))}var TI,NI=ql(_h)(TI||(TI=_a(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),Dp.spacing4);function zI(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(SI,{key:e.value.id,asset:e.value}):t.createElement(BI,{key:e.value.id,collection:e.value})})))}function DI(){var e=Kk(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(AI,{"data-testid":"selection-footer"},t.createElement(RI,null,t.createElement(vv,{buttonKind:"secondary",direction:"Up",title:qg("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(zI,{selection:n})})),t.createElement(ef,{variant:"clean",onClick:r},qg("Clear selection"))),t.createElement(xI,{selection:n}))}var PI,OI,AI=ql.div(PI||(PI=_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"])),Dp.layoutSpacing5,Dp.spacing6),RI=ql.span(OI||(OI=_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"])),Dp.spacing2);function FI(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;Kg(l);var b={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:m};return t.createElement(Ny,null,t.createElement(Ba,null,t.createElement(ay,{isContainerMode:y},t.createElement(Hk,null,t.createElement(ya,null,t.createElement(TS,{hideLimitedUse:g},t.createElement(Da,{defaultValue:a},t.createElement(Tv,{value:b},t.createElement(qk,{preselectedAssetIds:null!=h?h:[]},t.createElement(Q_,{theme:b.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(aI,null),t.createElement(LI,null),t.createElement(DI,null)))))))))))}function LI(){var e=Ta()[0],n=Nv().assetFilter;return t.createElement(t.Fragment,null,"assets"===e.page&&void 0===n&&t.createElement(K_,null),"assets"===e.page&&t.createElement(dI,null),"collections"===e.page&&t.createElement(IS,null),"collection"===e.page&&t.createElement(w_,{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__?Fr.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)}(Di,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__)&&Fr.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{FI as CompactView,Oy as Login,sy as Modal};