@kentico/xperience-admin-base 24.0.3 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
System.register(["react","react-router-dom","@kentico/xperience-admin-components","react-dom"],(function(e,t){var n={},r={},o={},i={};return Object.defineProperty(n,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach((function(t){n[t]=e[t]}))},function(e){r.Link=e.Link,r.NavLink=e.NavLink,r.Navigate=e.Navigate,r.Route=e.Route,r.Routes=e.Routes,r.UNSAFE_NavigationContext=e.UNSAFE_NavigationContext,r.generatePath=e.generatePath,r.resolvePath=e.resolvePath,r.useHref=e.useHref,r.useLocation=e.useLocation,r.useMatch=e.useMatch,r.useNavigate=e.useNavigate,r.useParams=e.useParams,r.useResolvedPath=e.useResolvedPath},function(e){o.ActionMenuDivider=e.ActionMenuDivider,o.ActionMenuHeadline=e.ActionMenuHeadline,o.ActionTile=e.ActionTile,o.ActionTileSize=e.ActionTileSize,o.ActionTileState=e.ActionTileState,o.ActionTileType=e.ActionTileType,o.ApplicationTile=e.ApplicationTile,o.ApplicationTileState=e.ApplicationTileState,o.AssetTilePreview=e.AssetTilePreview,o.AssetTileSelectable=e.AssetTileSelectable,o.Avatar=e.Avatar,o.AvatarButton=e.AvatarButton,o.AvatarSize=e.AvatarSize,o.BarItem=e.BarItem,o.BarItemDraggable=e.BarItemDraggable,o.BarItemGroup=e.BarItemGroup,o.BarItemHeaderColumnAlign=e.BarItemHeaderColumnAlign,o.BorderRadius=e.BorderRadius,o.Box=e.Box,o.Breadcrumbs=e.Breadcrumbs,o.Button=e.Button,o.ButtonColor=e.ButtonColor,o.ButtonSize=e.ButtonSize,o.ButtonType=e.ButtonType,o.Callout=e.Callout,o.CalloutType=e.CalloutType,o.Card=e.Card,o.CellType=e.CellType,o.Checkbox=e.Checkbox,o.CodeEditor=e.CodeEditor,o.Colors=e.Colors,o.Cols=e.Cols,o.Column=e.Column,o.ColumnContentType=e.ColumnContentType,o.Condition=e.Condition,o.ConditionBuilder=e.ConditionBuilder,o.ConditionGroup=e.ConditionGroup,o.ConditionGroupOverview=e.ConditionGroupOverview,o.ConditionOperatorLine=e.ConditionOperatorLine,o.ConditionOperatorOverview=e.ConditionOperatorOverview,o.ConditionOperatorOverviewType=e.ConditionOperatorOverviewType,o.ConditionOperatorSelect=e.ConditionOperatorSelect,o.ConditionPicker=e.ConditionPicker,o.DateTimePicker=e.DateTimePicker,o.DateTimePickerTimeFormat=e.DateTimePickerTimeFormat,o.Dialog=e.Dialog,o.Dimensions=e.Dimensions,o.DropDownActionMenu=e.DropDownActionMenu,o.DropDownPlacement=e.DropDownPlacement,o.FormItemWrapper=e.FormItemWrapper,o.FunnelChart=e.FunnelChart,o.FunnelOrientation=e.FunnelOrientation,o.Gradients=e.Gradients,o.Grid=e.Grid,o.Headline=e.Headline,o.HeadlineSize=e.HeadlineSize,o.Icon=e.Icon,o.IconToggleButtons=e.IconToggleButtons,o.Inline=e.Inline,o.Input=e.Input,o.KXIcons=e.KXIcons,o.LinkButton=e.LinkButton,o.MenuItem=e.MenuItem,o.NotificationBarAlert=e.NotificationBarAlert,o.NotificationBarInfo=e.NotificationBarInfo,o.OptionTile=e.OptionTile,o.OptionalTooltip=e.OptionalTooltip,o.Pagination=e.Pagination,o.Paper=e.Paper,o.PaperElevation=e.PaperElevation,o.RadioButton=e.RadioButton,o.RadioGroup=e.RadioGroup,o.RichTextEditor=e.RichTextEditor,o.Row=e.Row,o.RowWrap=e.RowWrap,o.Select=e.Select,o.SelectGroupCell=e.SelectGroupCell,o.SideMenu=e.SideMenu,o.SideMenuItemState=e.SideMenuItemState,o.SideMenuItemTile=e.SideMenuItemTile,o.SidePanel=e.SidePanel,o.SidePanelSize=e.SidePanelSize,o.SimpleStatusAlign=e.SimpleStatusAlign,o.SimpleStatusDefault=e.SimpleStatusDefault,o.SimpleStatusSuccess=e.SimpleStatusSuccess,o.SnackbarItemVariant=e.SnackbarItemVariant,o.Spacing=e.Spacing,o.Spinner=e.Spinner,o.Stack=e.Stack,o.StickyHeader=e.StickyHeader,o.Table=e.Table,o.Tag=e.Tag,o.TextArea=e.TextArea,o.TextWithLabel=e.TextWithLabel,o.Tooltip=e.Tooltip,o.TooltipPlacement=e.TooltipPlacement,o.TreeNode=e.TreeNode,o.TreeNodeLeadingIcon=e.TreeNodeLeadingIcon,o.TreeNodeTitle=e.TreeNodeTitle,o.TreeView=e.TreeView,o.UploadTile=e.UploadTile,o.UploadTileSize=e.UploadTileSize,o.ViewMenu=e.ViewMenu,o.Zindex=e.Zindex,o.createSelectGroup=e.createSelectGroup,o.dialogConfig=e.dialogConfig,o.useHandleClickOutside=e.useHandleClickOutside,o.useMediaBreakpoints=e.useMediaBreakpoints,o.useMobileKeyboard=e.useMobileKeyboard,o.useScrollDown=e.useScrollDown,o.useSidePanel=e.useSidePanel,o.useSnackbar=e.useSnackbar,o.useTheme=e.useTheme,o.useWindowDimensions=e.useWindowDimensions},function(e){i.createPortal=e.createPortal,i.default=e.default}],execute:function(){e((()=>{var e={7993:(e,t)=>{"use strict";t.Z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return r(e[0],e[1])||null;var n=e.slice(1).reduce((function(e,t){return r(e,t)}),e[0]);return n||null};var n=new WeakMap;function r(e,t){if(e&&t){var r=n.get(e)||new WeakMap;n.set(e,r);var i=r.get(t)||function(n){o(e,n),o(t,n)};return r.set(t,i),i}return e||t}function o(e,t){"function"==typeof e?e(t):e.current=t}},7608:(e,t)=>{var n;
|
|
2
|
-
/*!
|
|
3
|
-
Copyright (c) 2018 Jed Watson.
|
|
4
|
-
Licensed under the MIT License (MIT), see
|
|
5
|
-
http://jedwatson.github.io/classnames
|
|
6
|
-
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".actions___l1tBA{margin:auto auto auto 0}.actions___l1tBA .action-button___nYdY8{margin-right:16px;float:left}","",{version:3,sources:["webpack://./src/components/ActionList/ActionList.module.scss"],names:[],mappings:"AAAA,iBAAS,uBAAuB,CAAC,wCAAwB,iBAAiB,CAAC,UAAU",sourcesContent:[".actions{margin:auto auto auto 0}.actions .action-button{margin-right:16px;float:left}"],sourceRoot:""}]),a.locals={actions:"actions___l1tBA","action-button":"action-button___nYdY8",actionButton:"action-button___nYdY8"};const s=a},1728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".loader-wrapper___HNbA5{background-color:var(--color-background-disabled);position:fixed;height:4px;width:100%;top:0;left:0;visibility:hidden;animation:linear;animation-name:show-with-delay___FFldY;animation-duration:.3s;animation-fill-mode:forwards}.loader___sEB2C{height:4px;position:absolute;background-color:var(--color-product);width:25%;animation:linear infinite;animation-name:run___fUcX0;animation-duration:1s}@keyframes show-with-delay___FFldY{99%{visibility:hidden}100%{visibility:visible}}@keyframes run___fUcX0{0%{left:0}50%{left:100%}100%{left:0}}","",{version:3,sources:["webpack://./src/components/loader/Loader.module.scss"],names:[],mappings:"AAAA,wBAAgB,iDAAiD,CAAC,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,sCAA8B,CAAC,sBAAsB,CAAC,4BAA4B,CAAC,gBAAQ,UAAU,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,SAAS,CAAC,yBAAyB,CAAC,0BAAkB,CAAC,qBAAqB,CAAC,mCAA2B,IAAI,iBAAiB,CAAC,KAAK,kBAAkB,CAAC,CAAC,uBAAe,GAAG,MAAM,CAAC,IAAI,SAAS,CAAC,KAAK,MAAM,CAAC",sourcesContent:[".loader-wrapper{background-color:var(--color-background-disabled);position:fixed;height:4px;width:100%;top:0;left:0;visibility:hidden;animation:linear;animation-name:show-with-delay;animation-duration:.3s;animation-fill-mode:forwards}.loader{height:4px;position:absolute;background-color:var(--color-product);width:25%;animation:linear infinite;animation-name:run;animation-duration:1s}@keyframes show-with-delay{99%{visibility:hidden}100%{visibility:visible}}@keyframes run{0%{left:0}50%{left:100%}100%{left:0}}"],sourceRoot:""}]),a.locals={"loader-wrapper":"loader-wrapper___HNbA5",loaderWrapper:"loader-wrapper___HNbA5","show-with-delay":"show-with-delay___FFldY",showWithDelay:"show-with-delay___FFldY",loader:"loader___sEB2C",run:"run___fUcX0"};const s=a},6539:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.loader-wrapper___FISwk{display:flex;height:100%;justify-content:center;align-items:center}.loader-wrapper___FISwk .content___Njmd2{display:flex;flex-direction:column;gap:40px}.loader-wrapper___FISwk .content___Njmd2 .title___Ysc2k{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:24px;line-height:32px;color:var(--color-text-default-on-light);margin:0;padding:0;animation:loader___LREO6 6.2s ease;display:flex;justify-content:center}.loader-wrapper___FISwk .content___Njmd2 .loader___LREO6{width:200px;display:flex;align-self:center;height:4px;overflow:hidden;background-color:#c6c6c6;border-radius:8px;animation:loader___LREO6 6.2s ease;transform-origin:50% 100%}.loader-wrapper___FISwk .content___Njmd2 .loader___LREO6 .loader-bubble___MKfBA{width:200px;height:4px;background-image:var(--gradient-dark-xperience-violet);border-radius:16px;animation:bubble___sjG18 1.7s ease infinite;transform-origin:0 100%;animation-delay:.55s}@keyframes bubble___sjG18{0%{transform:translate(-195px)}50%{transform:translate(195px)}100%{transform:translate(-195px)}}@keyframes loader___LREO6{0%{opacity:0;transform:translate(0) scaleX(0.01)}10%{opacity:.2;transform:translate(0) scaleX(0.01)}14%{opacity:1;transform:translate(0) scale(1)}100%{opacity:1;transform:translate(0) scale(1)}}',"",{version:3,sources:["webpack://./src/components/page-loader/PageLoader.module.scss"],names:[],mappings:"AAAA,wBAAgB,YAAY,CAAC,WAAW,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,yCAAyB,YAAY,CAAC,qBAAqB,CAAC,QAAQ,CAAC,wDAAgC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS,CAAC,kCAA0B,CAAC,YAAY,CAAC,sBAAsB,CAAC,yDAAiC,WAAW,CAAC,YAAY,CAAC,iBAAiB,CAAC,UAAU,CAAC,eAAe,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,kCAA0B,CAAC,yBAAyB,CAAC,gFAAgD,WAAW,CAAC,UAAU,CAAC,sDAAsD,CAAC,kBAAkB,CAAC,2CAAmC,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,0BAAkB,GAAG,2BAA2B,CAAC,IAAI,0BAA0B,CAAC,KAAK,2BAA2B,CAAC,CAAC,0BAAkB,GAAG,SAAS,CAAC,mCAAmC,CAAC,IAAI,UAAU,CAAC,mCAAmC,CAAC,IAAI,SAAS,CAAC,+BAA+B,CAAC,KAAK,SAAS,CAAC,+BAA+B,CAAC",sourcesContent:['.loader-wrapper{display:flex;height:100%;justify-content:center;align-items:center}.loader-wrapper .content{display:flex;flex-direction:column;gap:40px}.loader-wrapper .content .title{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:24px;line-height:32px;color:var(--color-text-default-on-light);margin:0;padding:0;animation:loader 6.2s ease;display:flex;justify-content:center}.loader-wrapper .content .loader{width:200px;display:flex;align-self:center;height:4px;overflow:hidden;background-color:#c6c6c6;border-radius:8px;animation:loader 6.2s ease;transform-origin:50% 100%}.loader-wrapper .content .loader .loader-bubble{width:200px;height:4px;background-image:var(--gradient-dark-xperience-violet);border-radius:16px;animation:bubble 1.7s ease infinite;transform-origin:0 100%;animation-delay:.55s}@keyframes bubble{0%{transform:translate(-195px)}50%{transform:translate(195px)}100%{transform:translate(-195px)}}@keyframes loader{0%{opacity:0;transform:translate(0) scaleX(0.01)}10%{opacity:.2;transform:translate(0) scaleX(0.01)}14%{opacity:1;transform:translate(0) scale(1)}100%{opacity:1;transform:translate(0) scale(1)}}'],sourceRoot:""}]),a.locals={"loader-wrapper":"loader-wrapper___FISwk",loaderWrapper:"loader-wrapper___FISwk",content:"content___Njmd2",title:"title___Ysc2k",loader:"loader___LREO6","loader-bubble":"loader-bubble___MKfBA",loaderBubble:"loader-bubble___MKfBA",bubble:"bubble___sjG18"};const s=a},79:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.message-pane___Giq7y{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:40vh;padding:64px 17%;text-align:center;flex:auto;box-sizing:content-box}.message-pane___Giq7y .subheadline___Ewicq{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);margin-bottom:24px}.message-pane___Giq7y .children___nHi_P{margin:24px 0 0}',"",{version:3,sources:["webpack://./src/components/page-message-pane/PageMessagePane.module.scss"],names:[],mappings:"AAAA,sBAAc,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,eAAe,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,sBAAsB,CAAC,2CAA2B,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,kBAAkB,CAAC,wCAAwB,eAAe",sourcesContent:['.message-pane{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:40vh;padding:64px 17%;text-align:center;flex:auto;box-sizing:content-box}.message-pane .subheadline{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);margin-bottom:24px}.message-pane .children{margin:24px 0 0}'],sourceRoot:""}]),a.locals={"message-pane":"message-pane___Giq7y",messagePane:"message-pane___Giq7y",subheadline:"subheadline___Ewicq",children:"children___nHi_P"};const s=a},2560:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.drop-tile-wrapper___R1S_i{width:106.8px;height:75.04px}.drop-tile___TwYGb{width:100px;height:66px;background:var(--gradient-background-desk);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);border-radius:4px;display:flex;align-items:center;justify-content:center;margin-left:16px}.drop-tile-text___G0Qjt{text-align:center;color:var(--color-text-default-on-light);font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:12px;line-height:13.2px;color:var(--color-text-default-on-light)}',"",{version:3,sources:["webpack://./src/forms/form-components/asset-selector-form-component/AssetSelectorDropTile.module.scss"],names:[],mappings:"AAAA,2BAAmB,aAAa,CAAC,cAAc,CAAC,mBAAW,WAAW,CAAC,WAAW,CAAC,0CAA0C,CAAC,mEAAmE,CAAC,iBAAiB,CAAC,YAAY,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,wBAAgB,iBAAiB,CAAC,wCAAwC,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,kBAAkB,CAAC,wCAAwC",sourcesContent:['.drop-tile-wrapper{width:106.8px;height:75.04px}.drop-tile{width:100px;height:66px;background:var(--gradient-background-desk);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);border-radius:4px;display:flex;align-items:center;justify-content:center;margin-left:16px}.drop-tile-text{text-align:center;color:var(--color-text-default-on-light);font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:12px;line-height:13.2px;color:var(--color-text-default-on-light)}'],sourceRoot:""}]),a.locals={"drop-tile-wrapper":"drop-tile-wrapper___R1S_i",dropTileWrapper:"drop-tile-wrapper___R1S_i","drop-tile":"drop-tile___TwYGb",dropTile:"drop-tile___TwYGb","drop-tile-text":"drop-tile-text___G0Qjt",dropTileText:"drop-tile-text___G0Qjt"};const s=a},5307:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.asset-selector-wrapper___zx2Cs{border:1px dashed var(--color-input-border);border-radius:20px;color:var(--color-border-default);width:300px;min-width:100%;background:var(--color-paper-background)}.asset-selector-wrapper___zx2Cs .description___ALLPI{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);color:var(--color-text-default-on-light);vertical-align:center}.asset-selector-wrapper___zx2Cs .asset-source-button___LyOhA{display:inline;margin:8px}.disabled___lLnlO{color:var(--color-text-disabled) !important;background:var(--color-background-disabled) !important;border-color:var(--color-border-disabled) !important}.invalid___IkEWA{border:1px dashed var(--color-border-alert)}.drop-zone___ZhxpQ{background:var(--color-info-background-low-emphasis)}',"",{version:3,sources:["webpack://./src/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.module.scss"],names:[],mappings:"AAAA,gCAAwB,2CAA2C,CAAC,kBAAkB,CAAC,iCAAiC,CAAC,WAAW,CAAC,cAAc,CAAC,wCAAwC,CAAC,qDAAqC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,wCAAwC,CAAC,qBAAqB,CAAC,6DAA6C,cAAc,CAAC,UAAU,CAAC,kBAAU,2CAA2C,CAAC,sDAAsD,CAAC,oDAAoD,CAAC,iBAAS,2CAA2C,CAAC,mBAAW,oDAAoD",sourcesContent:['.asset-selector-wrapper{border:1px dashed var(--color-input-border);border-radius:20px;color:var(--color-border-default);width:300px;min-width:100%;background:var(--color-paper-background)}.asset-selector-wrapper .description{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);color:var(--color-text-default-on-light);vertical-align:center}.asset-selector-wrapper .asset-source-button{display:inline;margin:8px}.disabled{color:var(--color-text-disabled) !important;background:var(--color-background-disabled) !important;border-color:var(--color-border-disabled) !important}.invalid{border:1px dashed var(--color-border-alert)}.drop-zone{background:var(--color-info-background-low-emphasis)}'],sourceRoot:""}]),a.locals={"asset-selector-wrapper":"asset-selector-wrapper___zx2Cs",assetSelectorWrapper:"asset-selector-wrapper___zx2Cs",description:"description___ALLPI","asset-source-button":"asset-source-button___LyOhA",assetSourceButton:"asset-source-button___LyOhA",disabled:"disabled___lLnlO",invalid:"invalid___IkEWA","drop-zone":"drop-zone___ZhxpQ",dropZone:"drop-zone___ZhxpQ"};const s=a},7532:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".edit-button___3NKty{padding-top:16px}","",{version:3,sources:["webpack://./src/forms/form-components/condition-builder-form-component/ConditionBuilderForm.module.scss"],names:[],mappings:"AAAA,qBAAa,gBAAgB",sourcesContent:[".edit-button{padding-top:16px}"],sourceRoot:""}]),a.locals={"edit-button":"edit-button___3NKty",editButton:"edit-button___3NKty"};const s=a},7589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".container___Q4MT9{display:flex;flex-direction:row}.date-input___sibRQ{flex:1;padding-right:8px}.picker___iYtoH{margin-top:4px}.now-button___CHr32{display:flex;align-items:center}.calendar-button___jnxUO{margin-right:16px}","",{version:3,sources:["webpack://./src/forms/form-components/date-input-form-component/DateInputFormComponent.module.scss"],names:[],mappings:"AAAA,mBAAW,YAAY,CAAC,kBAAkB,CAAC,oBAAY,MAAM,CAAC,iBAAiB,CAAC,gBAAQ,cAAc,CAAC,oBAAY,YAAY,CAAC,kBAAkB,CAAC,yBAAiB,iBAAiB",sourcesContent:[".container{display:flex;flex-direction:row}.date-input{flex:1;padding-right:8px}.picker{margin-top:4px}.now-button{display:flex;align-items:center}.calendar-button{margin-right:16px}"],sourceRoot:""}]),a.locals={container:"container___Q4MT9","date-input":"date-input___sibRQ",dateInput:"date-input___sibRQ",picker:"picker___iYtoH","now-button":"now-button___CHr32",nowButton:"now-button___CHr32","calendar-button":"calendar-button___jnxUO",calendarButton:"calendar-button___jnxUO"};const s=a},6351:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".container___X4DQQ{display:flex;flex-direction:row}.date-input___g1YQz{flex:1;padding-right:8px}.picker___uujqq{margin-top:4px}.now-button___ZnfHo{display:flex;align-items:center}.calendar-button___TWxHh{margin-right:16px}","",{version:3,sources:["webpack://./src/forms/form-components/datetime-input-form-component/DateTimeInputFormComponent.module.scss"],names:[],mappings:"AAAA,mBAAW,YAAY,CAAC,kBAAkB,CAAC,oBAAY,MAAM,CAAC,iBAAiB,CAAC,gBAAQ,cAAc,CAAC,oBAAY,YAAY,CAAC,kBAAkB,CAAC,yBAAiB,iBAAiB",sourcesContent:[".container{display:flex;flex-direction:row}.date-input{flex:1;padding-right:8px}.picker{margin-top:4px}.now-button{display:flex;align-items:center}.calendar-button{margin-right:16px}"],sourceRoot:""}]),a.locals={container:"container___X4DQQ","date-input":"date-input___g1YQz",dateInput:"date-input___g1YQz",picker:"picker___uujqq","now-button":"now-button___ZnfHo",nowButton:"now-button___ZnfHo","calendar-button":"calendar-button___TWxHh",calendarButton:"calendar-button___TWxHh"};const s=a},815:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.select___iLPwu{display:flex;flex-wrap:wrap;align-items:center}.icon-selector-input-wrapper___IG7T9{display:flex;flex-direction:column;flex:1}.icon-selector-input-wrapper___IG7T9 .icon-selector-input___RKnrR{display:inline-flex;border-radius:5000px;border-width:1px;border-color:var(--color-input-border);border-style:solid;height:40px;background-color:var(--color-input-background);box-sizing:border-box;align-items:center;color:var(--color-text-default-on-light)}.icon-selector-input-wrapper___IG7T9 .icon-selector-input___RKnrR .icon-name___cxVcV{font-family:"Inter",sans-serif;font-weight:400;font-size:14px;line-height:20px;color:var(--color-text-default-on-light);flex:1 1 0;padding-left:8px}.icon-selector-input-wrapper___IG7T9.disabled___yXKcx>.icon-selector-input___RKnrR{color:var(--color-text-disabled);background-color:var(--color-background-disabled);border-color:var(--color-border-disabled)}.icon-selector-input-wrapper___IG7T9.disabled___yXKcx>.icon-selector-input___RKnrR .icon-name___cxVcV{color:var(--color-text-disabled)}',"",{version:3,sources:["webpack://./src/forms/form-components/icon-selector/IconSelector.module.scss"],names:[],mappings:"AAAA,gBAAQ,YAAY,CAAC,cAAc,CAAC,kBAAkB,CAAC,qCAA6B,YAAY,CAAC,qBAAqB,CAAC,MAAM,CAAC,kEAAkD,mBAAmB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,sCAAsC,CAAC,kBAAkB,CAAC,WAAW,CAAC,8CAA8C,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,qFAA6D,8BAA8B,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,UAAU,CAAC,gBAAgB,CAAC,mFAA2D,gCAAgC,CAAC,iDAAiD,CAAC,yCAAyC,CAAC,sGAAsE,gCAAgC",sourcesContent:['.select{display:flex;flex-wrap:wrap;align-items:center}.icon-selector-input-wrapper{display:flex;flex-direction:column;flex:1}.icon-selector-input-wrapper .icon-selector-input{display:inline-flex;border-radius:5000px;border-width:1px;border-color:var(--color-input-border);border-style:solid;height:40px;background-color:var(--color-input-background);box-sizing:border-box;align-items:center;color:var(--color-text-default-on-light)}.icon-selector-input-wrapper .icon-selector-input .icon-name{font-family:"Inter",sans-serif;font-weight:400;font-size:14px;line-height:20px;color:var(--color-text-default-on-light);flex:1 1 0;padding-left:8px}.icon-selector-input-wrapper.disabled>.icon-selector-input{color:var(--color-text-disabled);background-color:var(--color-background-disabled);border-color:var(--color-border-disabled)}.icon-selector-input-wrapper.disabled>.icon-selector-input .icon-name{color:var(--color-text-disabled)}'],sourceRoot:""}]),a.locals={select:"select___iLPwu","icon-selector-input-wrapper":"icon-selector-input-wrapper___IG7T9",iconSelectorInputWrapper:"icon-selector-input-wrapper___IG7T9","icon-selector-input":"icon-selector-input___RKnrR",iconSelectorInput:"icon-selector-input___RKnrR","icon-name":"icon-name___cxVcV",iconName:"icon-name___cxVcV",disabled:"disabled___yXKcx"};const s=a},4428:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.container___phvKx .header___UtgfN{padding-bottom:4px;align-items:center;display:flex}.container___phvKx .label-container___nyBlA{display:inline-block;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.container___phvKx .label-container___nyBlA.disabled___t5gu0{color:var(--color-text-disabled)}.container___phvKx .buttons-container___xh6dM{display:inline-block;padding-left:16px}',"",{version:3,sources:["webpack://./src/forms/form-components/macro-wrapper-form-component/MacroWrapperFormComponent.module.scss"],names:[],mappings:"AAAA,mCAAmB,kBAAkB,CAAC,kBAAkB,CAAC,YAAY,CAAC,4CAA4B,oBAAoB,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,6DAAqC,gCAAgC,CAAC,8CAA8B,oBAAoB,CAAC,iBAAiB",sourcesContent:['.container .header{padding-bottom:4px;align-items:center;display:flex}.container .label-container{display:inline-block;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.container .label-container.disabled{color:var(--color-text-disabled)}.container .buttons-container{display:inline-block;padding-left:16px}'],sourceRoot:""}]),a.locals={container:"container___phvKx",header:"header___UtgfN","label-container":"label-container___nyBlA",labelContainer:"label-container___nyBlA",disabled:"disabled___t5gu0","buttons-container":"buttons-container___xh6dM",buttonsContainer:"buttons-container___xh6dM"};const s=a},1647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".label-override___oWLfO{font-size:16px;line-height:20px;margin-bottom:16px}.container___oMmvO{display:flex;flex-direction:row;gap:16px}.container___oMmvO>*{flex-grow:1}","",{version:3,sources:["webpack://./src/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.module.scss"],names:[],mappings:"AAAA,wBAAgB,cAAc,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,mBAAW,YAAY,CAAC,kBAAkB,CAAC,QAAQ,CAAC,qBAAa,WAAW",sourcesContent:[".label-override{font-size:16px;line-height:20px;margin-bottom:16px}.container{display:flex;flex-direction:row;gap:16px}.container>*{flex-grow:1}"],sourceRoot:""}]),a.locals={"label-override":"label-override___oWLfO",labelOverride:"label-override___oWLfO",container:"container___oMmvO"};const s=a},5124:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".container___zbhlz{flex:1 1 auto}","",{version:3,sources:["webpack://./src/forms/form-components/object-selector-form-component/ObjectSelectorBase.module.scss"],names:[],mappings:"AAAA,mBAAW,aAAa",sourcesContent:[".container{flex:1 1 auto}"],sourceRoot:""}]),a.locals={container:"container___zbhlz"};const s=a},4791:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.focused___YYXsB{border-radius:20px;box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-focus)}.focused___YYXsB.invalid___DOmtP{box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-alert-focus)}.container___e30xz .value___eqZRB,.container___e30xz .placeholder___PsiJQ{font-family:"Inter",sans-serif;font-weight:400;font-size:14px;line-height:20px;color:var(--color-text-default-on-light);margin-left:10px}.container___e30xz .dropdown-indicator___Sm8ld{margin-right:16px;color:var(--color-icon-default)}.container___e30xz .clear-indicator___wtaP7{color:var(--color-icon-default)}.container___e30xz .clear-indicator___wtaP7.disabled___oEj39{display:none}.container___e30xz .control___CdG38{border-radius:20px;box-shadow:none;border-color:var(--color-input-border);padding:1px 0}.container___e30xz .control___CdG38:hover,.container___e30xz .control___CdG38:focus-within{border-color:var(--color-border-hover)}.container___e30xz .control___CdG38.disabled___oEj39{border-color:var(--color-border-disabled)}.container___e30xz .control___CdG38.disabled___oEj39.disabled-background___NU2fs{background-color:var(--color-background-disabled)}.container___e30xz .control___CdG38.disabled___oEj39 .dropdown-indicator___Sm8ld{color:var(--color-icon-disabled)}.container___e30xz .control___CdG38.disabled___oEj39 .clear-indicator___wtaP7{display:none}.container___e30xz .control___CdG38.disabled___oEj39 .value___eqZRB{color:var(--color-text-disabled)}.container___e30xz .placeholder___PsiJQ{color:var(--color-text-hint)}.container___e30xz .value-container___VvWww{row-gap:4px;width:min-content}.container___e30xz .tag-spacer___5i7nP{margin-right:4px;overflow:auto}.not-empty___AXAUx .value-container___VvWww{padding-left:16px}.invalid___DOmtP .container___e30xz .control___CdG38{border-color:var(--color-border-alert)}.invalid___DOmtP .container___e30xz .control___CdG38:hover,.invalid___DOmtP .container___e30xz .control___CdG38:focus-within{border-color:var(--color-alert-hover)}',"",{version:3,sources:["webpack://./src/forms/form-components/object-selector-form-component/async-drop-down-selector/AsyncDropDownSelector.module.scss"],names:[],mappings:"AAAA,iBAAS,kBAAkB,CAAC,0EAA0E,CAAC,iCAAiB,gFAAgF,CAAC,0EAA0C,8BAA8B,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,gBAAgB,CAAC,+CAA+B,iBAAiB,CAAC,+BAA+B,CAAC,4CAA4B,+BAA+B,CAAC,6DAAqC,YAAY,CAAC,oCAAoB,kBAAkB,CAAC,eAAe,CAAC,sCAAsC,CAAC,aAAa,CAAC,2FAA2D,sCAAsC,CAAC,qDAA6B,yCAAyC,CAAC,iFAAiD,iDAAiD,CAAC,iFAAiD,gCAAgC,CAAC,8EAA8C,YAAY,CAAC,oEAAoC,gCAAgC,CAAC,wCAAwB,4BAA4B,CAAC,4CAA4B,WAAW,CAAC,iBAAiB,CAAC,uCAAuB,gBAAgB,CAAC,aAAa,CAAC,4CAA4B,iBAAiB,CAAC,qDAA6B,sCAAsC,CAAC,6HAA6E,qCAAqC",sourcesContent:['.focused{border-radius:20px;box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-focus)}.focused.invalid{box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-alert-focus)}.container .value,.container .placeholder{font-family:"Inter",sans-serif;font-weight:400;font-size:14px;line-height:20px;color:var(--color-text-default-on-light);margin-left:10px}.container .dropdown-indicator{margin-right:16px;color:var(--color-icon-default)}.container .clear-indicator{color:var(--color-icon-default)}.container .clear-indicator.disabled{display:none}.container .control{border-radius:20px;box-shadow:none;border-color:var(--color-input-border);padding:1px 0}.container .control:hover,.container .control:focus-within{border-color:var(--color-border-hover)}.container .control.disabled{border-color:var(--color-border-disabled)}.container .control.disabled.disabled-background{background-color:var(--color-background-disabled)}.container .control.disabled .dropdown-indicator{color:var(--color-icon-disabled)}.container .control.disabled .clear-indicator{display:none}.container .control.disabled .value{color:var(--color-text-disabled)}.container .placeholder{color:var(--color-text-hint)}.container .value-container{row-gap:4px;width:min-content}.container .tag-spacer{margin-right:4px;overflow:auto}.not-empty .value-container{padding-left:16px}.invalid .container .control{border-color:var(--color-border-alert)}.invalid .container .control:hover,.invalid .container .control:focus-within{border-color:var(--color-alert-hover)}'],sourceRoot:""}]),a.locals={focused:"focused___YYXsB",invalid:"invalid___DOmtP",container:"container___e30xz",value:"value___eqZRB",placeholder:"placeholder___PsiJQ","dropdown-indicator":"dropdown-indicator___Sm8ld",dropdownIndicator:"dropdown-indicator___Sm8ld","clear-indicator":"clear-indicator___wtaP7",clearIndicator:"clear-indicator___wtaP7",disabled:"disabled___oEj39",control:"control___CdG38","disabled-background":"disabled-background___NU2fs",disabledBackground:"disabled-background___NU2fs","value-container":"value-container___VvWww",valueContainer:"value-container___VvWww","tag-spacer":"tag-spacer___5i7nP",tagSpacer:"tag-spacer___5i7nP","not-empty":"not-empty___AXAUx",notEmpty:"not-empty___AXAUx"};const s=a},8286:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.container___QbjmB{display:flex;flex-direction:column-reverse}.container___QbjmB .label-container___Os9Nq{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:4px;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.container___QbjmB ul{padding-left:0;list-style-position:inside;margin-top:0;margin-bottom:0}',"",{version:3,sources:["webpack://./src/forms/form-components/password-form-component/PasswordFormComponent.module.scss"],names:[],mappings:"AAAA,mBAAW,YAAY,CAAC,6BAA6B,CAAC,4CAA4B,YAAY,CAAC,kBAAkB,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,sBAAc,cAAc,CAAC,0BAA0B,CAAC,YAAY,CAAC,eAAe",sourcesContent:['.container{display:flex;flex-direction:column-reverse}.container .label-container{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:4px;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.container ul{padding-left:0;list-style-position:inside;margin-top:0;margin-bottom:0}'],sourceRoot:""}]),a.locals={container:"container___QbjmB","label-container":"label-container___Os9Nq",labelContainer:"label-container___Os9Nq"};const s=a},7002:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.label___kZ7EZ{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);margin:0;padding:0}',"",{version:3,sources:["webpack://./src/forms/form-components/text-with-label-form-component/TextWithLabelFormComponent.module.scss"],names:[],mappings:"AAAA,eAAO,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS",sourcesContent:['.label{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);margin:0;padding:0}'],sourceRoot:""}]),a.locals={label:"label___kZ7EZ"};const s=a},4409:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.no-rows-text___VqUA3{padding-top:16px;font-style:italic;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.rule-column___EARro{flex-grow:0}',"",{version:3,sources:["webpack://./src/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponent.module.scss"],names:[],mappings:"AAAA,sBAAc,gBAAgB,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,qBAAa,WAAW",sourcesContent:['.no-rows-text{padding-top:16px;font-style:italic;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.rule-column{flex-grow:0}'],sourceRoot:""}]),a.locals={"no-rows-text":"no-rows-text___VqUA3",noRowsText:"no-rows-text___VqUA3","rule-column":"rule-column___EARro",ruleColumn:"rule-column___EARro"};const s=a},783:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.form-category___iUBKT{display:flex;column-gap:8px}.title___YHITe{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:16px;line-height:24px;color:var(--color-text-default-on-light);margin:0;padding:0}.form-components___bDJgO{padding-top:24px}.info-icon___FW58x{font-size:16px;display:flex;align-items:center;color:var(--color-icon-default)}',"",{version:3,sources:["webpack://./src/forms/form/formCategory/FormCategory.module.scss"],names:[],mappings:"AAAA,uBAAe,YAAY,CAAC,cAAc,CAAC,eAAO,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS,CAAC,yBAAiB,gBAAgB,CAAC,mBAAW,cAAc,CAAC,YAAY,CAAC,kBAAkB,CAAC,+BAA+B",sourcesContent:['.form-category{display:flex;column-gap:8px}.title{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:16px;line-height:24px;color:var(--color-text-default-on-light);margin:0;padding:0}.form-components{padding-top:24px}.info-icon{font-size:16px;display:flex;align-items:center;color:var(--color-icon-default)}'],sourceRoot:""}]),a.locals={"form-category":"form-category___iUBKT",formCategory:"form-category___iUBKT",title:"title___YHITe","form-components":"form-components___bDJgO",formComponents:"form-components___bDJgO","info-icon":"info-icon___FW58x",infoIcon:"info-icon___FW58x"};const s=a},9939:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.asset-panel-content___u5bNI{flex:1;min-width:584px}.asset-panel-content___u5bNI .content-panel___ZboJG{height:calc(100% - 56px)}.asset-panel-content___u5bNI .content-panel-without-selector___GJmoi{height:100%}.asset-panel-content___u5bNI .tree-view___e7Xih{height:100%;overflow:auto;padding-top:3px;margin-top:-3px;padding-left:3px;margin-left:-3px;padding-right:3px;box-sizing:content-box;width:272px}.asset-panel-content___u5bNI .content___eCw0x{display:flex;flex-direction:column;color:var(--color-text-default-on-light)}.asset-panel-content___u5bNI .content___eCw0x .assets-count___MQeqq{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:12px;line-height:13.2px;color:var(--color-text-default-on-light)}.asset-panel-content___u5bNI .content___eCw0x .grid___tCTF_{min-height:0}.asset-panel-content___u5bNI .content___eCw0x .grid-wrapper___n2PJi{overflow-y:auto;overflow-x:hidden;padding:8px 8px 16px;margin:-8px -8px 0}',"",{version:3,sources:["webpack://./src/shared-components/Assets/AssetPanelContent/AssetPanelContent.module.scss"],names:[],mappings:"AAAA,6BAAqB,MAAM,CAAC,eAAe,CAAC,oDAAoC,wBAAwB,CAAC,qEAAqD,WAAW,CAAC,gDAAgC,WAAW,CAAC,aAAa,CAAC,eAAe,CAAC,eAAe,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,WAAW,CAAC,8CAA8B,YAAY,CAAC,qBAAqB,CAAC,wCAAwC,CAAC,oEAA4C,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,4DAAoC,YAAY,CAAC,oEAA4C,eAAe,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,kBAAkB",sourcesContent:['.asset-panel-content{flex:1;min-width:584px}.asset-panel-content .content-panel{height:calc(100% - 56px)}.asset-panel-content .content-panel-without-selector{height:100%}.asset-panel-content .tree-view{height:100%;overflow:auto;padding-top:3px;margin-top:-3px;padding-left:3px;margin-left:-3px;padding-right:3px;box-sizing:content-box;width:272px}.asset-panel-content .content{display:flex;flex-direction:column;color:var(--color-text-default-on-light)}.asset-panel-content .content .assets-count{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:12px;line-height:13.2px;color:var(--color-text-default-on-light)}.asset-panel-content .content .grid{min-height:0}.asset-panel-content .content .grid-wrapper{overflow-y:auto;overflow-x:hidden;padding:8px 8px 16px;margin:-8px -8px 0}'],sourceRoot:""}]),a.locals={"asset-panel-content":"asset-panel-content___u5bNI",assetPanelContent:"asset-panel-content___u5bNI","content-panel":"content-panel___ZboJG",contentPanel:"content-panel___ZboJG","content-panel-without-selector":"content-panel-without-selector___GJmoi",contentPanelWithoutSelector:"content-panel-without-selector___GJmoi","tree-view":"tree-view___e7Xih",treeView:"tree-view___e7Xih",content:"content___eCw0x","assets-count":"assets-count___MQeqq",assetsCount:"assets-count___MQeqq",grid:"grid___tCTF_","grid-wrapper":"grid-wrapper___n2PJi",gridWrapper:"grid-wrapper___n2PJi"};const s=a},3828:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".slid-to-right___UvOJL{transition:250ms cubic-bezier(0.23, 1, 0.32, 1);transform:translateX(16.66%) !important}","",{version:3,sources:["webpack://./src/shared-components/Assets/AssetPanel/AssetPanel.module.scss"],names:[],mappings:"AAAA,uBAAe,+CAA+C,CAAC,uCAAuC",sourcesContent:[".slid-to-right{transition:250ms cubic-bezier(0.23, 1, 0.32, 1);transform:translateX(16.66%) !important}"],sourceRoot:""}]),a.locals={"slid-to-right":"slid-to-right___UvOJL",slidToRight:"slid-to-right___UvOJL"};const s=a},7107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".hidden___fFsgh{visibility:hidden}","",{version:3,sources:["webpack://./src/shared-components/Assets/AssetTileHidden/AssetTileHidden.module.scss"],names:[],mappings:"AAAA,gBAAQ,iBAAiB",sourcesContent:[".hidden{visibility:hidden}"],sourceRoot:""}]),a.locals={hidden:"hidden___fFsgh"};const s=a},2129:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".spinner___r_M5F{font-size:32px;color:var(--color-icon-default);margin:24px 16px 24px 24px}.loading-headline___VHeyD{display:flex;justify-content:center;align-items:center}","",{version:3,sources:["webpack://./src/shared-components/Assets/AssetsLoader/AssetsLoader.module.scss"],names:[],mappings:"AAAA,iBAAS,cAAc,CAAC,+BAA+B,CAAC,0BAA0B,CAAC,0BAAkB,YAAY,CAAC,sBAAsB,CAAC,kBAAkB",sourcesContent:[".spinner{font-size:32px;color:var(--color-icon-default);margin:24px 16px 24px 24px}.loading-headline{display:flex;justify-content:center;align-items:center}"],sourceRoot:""}]),a.locals={spinner:"spinner___r_M5F","loading-headline":"loading-headline___VHeyD",loadingHeadline:"loading-headline___VHeyD"};const s=a},6123:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.container___eu1y7{display:flex;flex-direction:column;align-items:flex-start}.empty-condition___lgSCn{font-style:italic;color:var(--color-text-default-on-light)}.headline___AwtvL{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);padding-bottom:12px}.headline-operator___Omyli{padding:0 8px}',"",{version:3,sources:["webpack://./src/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.module.scss"],names:[],mappings:"AAAA,mBAAW,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,yBAAiB,iBAAiB,CAAC,wCAAwC,CAAC,kBAAU,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,mBAAmB,CAAC,2BAAmB,aAAa",sourcesContent:['.container{display:flex;flex-direction:column;align-items:flex-start}.empty-condition{font-style:italic;color:var(--color-text-default-on-light)}.headline{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);padding-bottom:12px}.headline-operator{padding:0 8px}'],sourceRoot:""}]),a.locals={container:"container___eu1y7","empty-condition":"empty-condition___lgSCn",emptyCondition:"empty-condition___lgSCn",headline:"headline___AwtvL","headline-operator":"headline-operator___Omyli",headlineOperator:"headline-operator___Omyli"};const s=a},587:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".plain-text-parameter____HdoD{display:flex;align-items:center;height:100%}.component-parameter___vbZl2{min-width:264px;display:flex;align-items:center;height:100%}.component-parameter___vbZl2>div{width:100%}.component-parameter___vbZl2.select___A4mhN{width:264px}","",{version:3,sources:["webpack://./src/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.module.scss"],names:[],mappings:"AAAA,8BAAsB,YAAY,CAAC,kBAAkB,CAAC,WAAW,CAAC,6BAAqB,eAAe,CAAC,YAAY,CAAC,kBAAkB,CAAC,WAAW,CAAC,iCAAyB,UAAU,CAAC,4CAA4B,WAAW",sourcesContent:[".plain-text-parameter{display:flex;align-items:center;height:100%}.component-parameter{min-width:264px;display:flex;align-items:center;height:100%}.component-parameter>div{width:100%}.component-parameter.select{width:264px}"],sourceRoot:""}]),a.locals={"plain-text-parameter":"plain-text-parameter____HdoD",plainTextParameter:"plain-text-parameter____HdoD","component-parameter":"component-parameter___vbZl2",componentParameter:"component-parameter___vbZl2",select:"select___A4mhN"};const s=a},7835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".operator-select___mvgSF{max-width:88px}","",{version:3,sources:["webpack://./src/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.module.scss"],names:[],mappings:"AAAA,yBAAiB,cAAc",sourcesContent:[".operator-select{max-width:88px}"],sourceRoot:""}]),a.locals={"operator-select":"operator-select___mvgSF",operatorSelect:"operator-select___mvgSF"};const s=a},3368:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".overview-card-group___hYPE6{padding-bottom:24px}","",{version:3,sources:["webpack://./src/shared-components/OverviewCardGroup/OverviewCardGroup.module.scss"],names:[],mappings:"AAAA,6BAAqB,mBAAmB",sourcesContent:[".overview-card-group{padding-bottom:24px}"],sourceRoot:""}]),a.locals={"overview-card-group":"overview-card-group___hYPE6",overviewCardGroup:"overview-card-group___hYPE6"};const s=a},4221:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".tags___V15UX>:not(:first-of-type){margin-left:4px}","",{version:3,sources:["webpack://./src/shared-components/OverviewCard/CardComponents/TagList/TagListCardComponent.module.scss"],names:[],mappings:"AAAA,mCAA2B,eAAe",sourcesContent:[".tags>:not(:first-of-type){margin-left:4px}"],sourceRoot:""}]),a.locals={tags:"tags___V15UX"};const s=a},5198:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.list-of-items___EKH5Y{list-style-type:none;margin:0}.list-of-items___EKH5Y .item___f31kZ{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.list-of-items___EKH5Y .item___f31kZ:not(:last-child){margin-bottom:8px}.list-of-items___EKH5Y .item___f31kZ .pre-text___zwsdI::after{content:" "}.list-of-items___EKH5Y .item___f31kZ .link___It1S1{color:var(--color-link)}.list-of-items___EKH5Y .item___f31kZ .link___It1S1:hover{color:var(--color-link-hover)}',"",{version:3,sources:["webpack://./src/shared-components/OverviewCard/CardComponents/UnorderedList/UnorderedListCardComponent.module.scss"],names:[],mappings:"AAAA,uBAAe,oBAAoB,CAAC,QAAQ,CAAC,qCAAqB,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,sDAAsC,iBAAiB,CAAC,8DAAsC,WAAW,CAAC,mDAA2B,uBAAuB,CAAC,yDAAiC,6BAA6B",sourcesContent:['.list-of-items{list-style-type:none;margin:0}.list-of-items .item{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.list-of-items .item:not(:last-child){margin-bottom:8px}.list-of-items .item .pre-text::after{content:" "}.list-of-items .item .link{color:var(--color-link)}.list-of-items .item .link:hover{color:var(--color-link-hover)}'],sourceRoot:""}]),a.locals={"list-of-items":"list-of-items___EKH5Y",listOfItems:"list-of-items___EKH5Y",item:"item___f31kZ","pre-text":"pre-text___zwsdI",preText:"pre-text___zwsdI",link:"link___It1S1"};const s=a},5e3:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".overview-card-section___T1qhD:not(:last-child):not(:empty){margin-bottom:24px}","",{version:3,sources:["webpack://./src/shared-components/OverviewCard/OverviewCard.module.scss"],names:[],mappings:"AAAA,4DAAoD,kBAAkB",sourcesContent:[".overview-card-section:not(:last-child):not(:empty){margin-bottom:24px}"],sourceRoot:""}]),a.locals={"overview-card-section":"overview-card-section___T1qhD",overviewCardSection:"overview-card-section___T1qhD"};const s=a},7013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".overlay___GjPB4{z-index:10000}","",{version:3,sources:["webpack://./src/shared-components/PromptDialog/PromptDialogComponent.module.scss"],names:[],mappings:"AAAA,iBAAS,aAAa",sourcesContent:[".overlay{z-index:10000}"],sourceRoot:""}]),a.locals={overlay:"overlay___GjPB4"};const s=a},9164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".filter___JVH4h{flex-grow:1;min-width:120px}","",{version:3,sources:["webpack://./src/shared-components/SearchInput/SearchInput.module.scss"],names:[],mappings:"AAAA,gBAAQ,WAAW,CAAC,eAAe",sourcesContent:[".filter{flex-grow:1;min-width:120px}"],sourceRoot:""}]),a.locals={filter:"filter___JVH4h"};const s=a},5927:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".wrapper___rrqlJ{position:relative}.status-wrapper___zxq38{opacity:0;position:absolute}.status-wrapper___zxq38.is-visible___BhwL0{opacity:1}.button-wrapper___cxO8V{opacity:0;transition:opacity 200ms}.button-wrapper___cxO8V.is-visible___BhwL0{opacity:1}","",{version:3,sources:["webpack://./src/shared-components/TextArea/TextAreaActionButtons/CopyButton/TextAreaCopyButton.module.scss"],names:[],mappings:"AAAA,iBAAS,iBAAiB,CAAC,wBAAgB,SAAS,CAAC,iBAAiB,CAAC,2CAA2B,SAAS,CAAC,wBAAgB,SAAS,CAAC,wBAAwB,CAAC,2CAA2B,SAAS",sourcesContent:[".wrapper{position:relative}.status-wrapper{opacity:0;position:absolute}.status-wrapper.is-visible{opacity:1}.button-wrapper{opacity:0;transition:opacity 200ms}.button-wrapper.is-visible{opacity:1}"],sourceRoot:""}]),a.locals={wrapper:"wrapper___rrqlJ","status-wrapper":"status-wrapper___zxq38",statusWrapper:"status-wrapper___zxq38","is-visible":"is-visible___BhwL0",isVisible:"is-visible___BhwL0","button-wrapper":"button-wrapper___cxO8V",buttonWrapper:"button-wrapper___cxO8V"};const s=a},7473:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".header-text___c1Pqe{color:var(--color-text-hint);padding-bottom:12px;font-size:14px}","",{version:3,sources:["webpack://./src/template-components/builder/PropertiesDialog.module.scss"],names:[],mappings:"AAAA,qBAAa,4BAA4B,CAAC,mBAAmB,CAAC,cAAc",sourcesContent:[".header-text{color:var(--color-text-hint);padding-bottom:12px;font-size:14px}"],sourceRoot:""}]),a.locals={"header-text":"header-text___c1Pqe",headerText:"header-text___c1Pqe"};const s=a},3862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".row___bHhPy{height:100%}.scrollable___d2usK{height:100%;overflow-y:auto;overflow-x:hidden;padding-left:16px;margin-left:-16px;padding-right:8px}","",{version:3,sources:["webpack://./src/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.module.scss"],names:[],mappings:"AAAA,aAAK,WAAW,CAAC,oBAAY,WAAW,CAAC,eAAe,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB",sourcesContent:[".row{height:100%}.scrollable{height:100%;overflow-y:auto;overflow-x:hidden;padding-left:16px;margin-left:-16px;padding-right:8px}"],sourceRoot:""}]),a.locals={row:"row___bHhPy",scrollable:"scrollable___d2usK"};const s=a},729:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".secondary-menu___DUjeS{list-style:none;margin:0;padding:8px;box-sizing:content-box}.secondary-menu___DUjeS li{padding:0;text-align:left}.secondary-menu___DUjeS li:not(:last-child){margin-bottom:4px}","",{version:3,sources:["webpack://./src/template-components/secondary-menu/SecondaryMenu.module.scss"],names:[],mappings:"AAAA,wBAAgB,eAAe,CAAC,QAAQ,CAAC,WAAW,CAAC,sBAAsB,CAAC,2BAAmB,SAAS,CAAC,eAAe,CAAC,4CAAoC,iBAAiB",sourcesContent:[".secondary-menu{list-style:none;margin:0;padding:8px;box-sizing:content-box}.secondary-menu li{padding:0;text-align:left}.secondary-menu li:not(:last-child){margin-bottom:4px}"],sourceRoot:""}]),a.locals={"secondary-menu":"secondary-menu___DUjeS",secondaryMenu:"secondary-menu___DUjeS"};const s=a},2338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.nav-link___C5wr6{text-decoration:none;width:100%;cursor:pointer;min-height:32px;display:flex;padding:0 8px;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.nav-link___C5wr6.main___ySSEW{width:208px}.nav-link___C5wr6.submenu-1___ezwaG{width:176px}.nav-link___C5wr6.submenu-2___Ztt29{width:152px}.nav-link___C5wr6:focus{outline:none}.nav-link___C5wr6.focused___jKban{box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-focus)}.nav-link___C5wr6 .label___XcVs2{display:inline-block;width:-moz-fit-content;width:fit-content;padding:8px;border-radius:4px;min-height:32px}.nav-link___C5wr6 .label___XcVs2 .label-content___DKMmK{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.nav-link___C5wr6.active___hHbiZ .label___XcVs2{background-color:var(--color-product-selected);color:var(--color-text-default-on-dark)}.nav-link___C5wr6:hover .label___XcVs2{background-color:var(--color-hover);color:var(--color-text-default-on-light)}.nav-link___C5wr6:hover.active___hHbiZ .label___XcVs2{background-color:var(--color-product-selected-hover);color:var(--color-text-default-on-dark)}',"",{version:3,sources:["webpack://./src/template-components/secondary-menu/SecondaryMenuCell.module.scss"],names:[],mappings:"AAAA,kBAAU,oBAAoB,CAAC,UAAU,CAAC,cAAc,CAAC,eAAe,CAAC,YAAY,CAAC,aAAa,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,+BAAe,WAAW,CAAC,oCAAoB,WAAW,CAAC,oCAAoB,WAAW,CAAC,wBAAgB,YAAY,CAAC,kCAAkB,0EAA0E,CAAC,iCAAiB,oBAAoB,CAAC,sBAAiB,CAAjB,iBAAiB,CAAC,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,wDAAgC,eAAe,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,gDAAwB,8CAA8C,CAAC,uCAAuC,CAAC,uCAAuB,mCAAmC,CAAC,wCAAwC,CAAC,sDAA8B,oDAAoD,CAAC,uCAAuC",sourcesContent:['.nav-link{text-decoration:none;width:100%;cursor:pointer;min-height:32px;display:flex;padding:0 8px;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.nav-link.main{width:208px}.nav-link.submenu-1{width:176px}.nav-link.submenu-2{width:152px}.nav-link:focus{outline:none}.nav-link.focused{box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-focus)}.nav-link .label{display:inline-block;width:fit-content;padding:8px;border-radius:4px;min-height:32px}.nav-link .label .label-content{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.nav-link.active .label{background-color:var(--color-product-selected);color:var(--color-text-default-on-dark)}.nav-link:hover .label{background-color:var(--color-hover);color:var(--color-text-default-on-light)}.nav-link:hover.active .label{background-color:var(--color-product-selected-hover);color:var(--color-text-default-on-dark)}'],sourceRoot:""}]),a.locals={"nav-link":"nav-link___C5wr6",navLink:"nav-link___C5wr6",main:"main___ySSEW","submenu-1":"submenu-1___ezwaG",submenu1:"submenu-1___ezwaG","submenu-2":"submenu-2___Ztt29",submenu2:"submenu-2___Ztt29",focused:"focused___jKban",label:"label___XcVs2","label-content":"label-content___DKMmK",labelContent:"label-content___DKMmK",active:"active___hHbiZ"};const s=a},2239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.headline___zgx8n{display:flex;align-items:flex-start;padding:8px;gap:8px;background:rgba(0,0,0,0)}.headline___zgx8n .label___PW1mQ{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:12px;line-height:13.2px;color:var(--color-text-default-on-light);color:var(--color-tab-text);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.headline___zgx8n.main___GOcMH{width:208px}.headline___zgx8n.main___GOcMH .label___PW1mQ{max-width:168px}.headline___zgx8n.submenu-1___NZ7zZ{width:176px}.headline___zgx8n.submenu-1___NZ7zZ .label___PW1mQ{max-width:136px}.headline___zgx8n.submenu-2___ckW1_{width:152px}.headline___zgx8n.submenu-2___ckW1_ .label___PW1mQ{max-width:112px}.headline___zgx8n::after{content:"";flex:1 1;border-bottom:1px solid var(--color-tab-text);min-width:16px;margin-top:8px}',"",{version:3,sources:["webpack://./src/template-components/secondary-menu/SecondaryMenuHeadline.module.scss"],names:[],mappings:"AAAA,kBAAU,YAAY,CAAC,sBAAsB,CAAC,WAAW,CAAC,OAAO,CAAC,wBAAwB,CAAC,iCAAiB,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,2BAA2B,CAAC,eAAe,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,+BAAe,WAAW,CAAC,8CAAsB,eAAe,CAAC,oCAAoB,WAAW,CAAC,mDAA2B,eAAe,CAAC,oCAAoB,WAAW,CAAC,mDAA2B,eAAe,CAAC,yBAAiB,UAAU,CAAC,QAAQ,CAAC,6CAA6C,CAAC,cAAc,CAAC,cAAc",sourcesContent:['.headline{display:flex;align-items:flex-start;padding:8px;gap:8px;background:rgba(0,0,0,0)}.headline .label{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:12px;line-height:13.2px;color:var(--color-text-default-on-light);color:var(--color-tab-text);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.headline.main{width:208px}.headline.main .label{max-width:168px}.headline.submenu-1{width:176px}.headline.submenu-1 .label{max-width:136px}.headline.submenu-2{width:152px}.headline.submenu-2 .label{max-width:112px}.headline::after{content:"";flex:1 1;border-bottom:1px solid var(--color-tab-text);min-width:16px;margin-top:8px}'],sourceRoot:""}]),a.locals={headline:"headline___zgx8n",label:"label___PW1mQ",main:"main___GOcMH","submenu-1":"submenu-1___NZ7zZ",submenu1:"submenu-1___NZ7zZ","submenu-2":"submenu-2___ckW1_",submenu2:"submenu-2___ckW1_"};const s=a},7100:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".status-bar___FbKL4{display:flex;min-height:40px;margin:16px 28px 16px 16px;justify-content:space-between;z-index:1000}.status-bar___FbKL4 .left___ohuGv{display:flex;gap:16px;flex-grow:1;flex-shrink:100000}.status-bar___FbKL4 .right___lmzyr{display:flex;justify-content:flex-end;flex-shrink:1;gap:40px}.paper___M_7Mt{overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 98px)}.main___YYhDJ{width:224px}.submenu-1____Z4lV{margin-top:4px;margin-left:16px;border-radius:8px;width:192px;background-color:var(--color-shelf-background)}.submenu-2___sfJtL{margin-top:4px;margin-left:8px;border-radius:8px;width:min(168px,100% - 8px);background-color:var(--color-shelf-background)}","",{version:3,sources:["webpack://./src/template-components/secondary-menu/SecondaryMenuWrapper.module.scss"],names:[],mappings:"AAAA,oBAAY,YAAY,CAAC,eAAe,CAAC,0BAA0B,CAAC,6BAA6B,CAAC,YAAY,CAAC,kCAAkB,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,kBAAkB,CAAC,mCAAmB,YAAY,CAAC,wBAAwB,CAAC,aAAa,CAAC,QAAQ,CAAC,eAAO,eAAe,CAAC,iBAAiB,CAAC,6BAA6B,CAAC,cAAM,WAAW,CAAC,mBAAW,cAAc,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,WAAW,CAAC,8CAA8C,CAAC,mBAAW,cAAc,CAAC,eAAe,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,8CAA8C",sourcesContent:[".status-bar{display:flex;min-height:40px;margin:16px 28px 16px 16px;justify-content:space-between;z-index:1000}.status-bar .left{display:flex;gap:16px;flex-grow:1;flex-shrink:100000}.status-bar .right{display:flex;justify-content:flex-end;flex-shrink:1;gap:40px}.paper{overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 98px)}.main{width:224px}.submenu-1{margin-top:4px;margin-left:16px;border-radius:8px;width:192px;background-color:var(--color-shelf-background)}.submenu-2{margin-top:4px;margin-left:8px;border-radius:8px;width:min(168px,100% - 8px);background-color:var(--color-shelf-background)}"],sourceRoot:""}]),a.locals={"status-bar":"status-bar___FbKL4",statusBar:"status-bar___FbKL4",left:"left___ohuGv",right:"right___lmzyr",paper:"paper___M_7Mt",main:"main___YYhDJ","submenu-1":"submenu-1____Z4lV",submenu1:"submenu-1____Z4lV","submenu-2":"submenu-2___sfJtL",submenu2:"submenu-2___sfJtL"};const s=a},4625:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".side-menu-wrapper___NfzeL{display:flex;justify-content:center}","",{version:3,sources:["webpack://./src/template-components/side-menu/TemplateSideMenu.module.scss"],names:[],mappings:"AAAA,2BAAmB,YAAY,CAAC,sBAAsB",sourcesContent:[".side-menu-wrapper{display:flex;justify-content:center}"],sourceRoot:""}]),a.locals={"side-menu-wrapper":"side-menu-wrapper___NfzeL",sideMenuWrapper:"side-menu-wrapper___NfzeL"};const s=a},5666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".side-panel___w53xb{right:104px}.content-wrapper___drJGl{height:-moz-fit-content;height:fit-content;padding-bottom:24px}.footer-container___UbzJp{width:100%;display:grid;grid-template-columns:minmax(0, 1fr) auto}.additional-actions___gLHEe{width:0;min-width:100%;display:flex;flex-wrap:wrap;gap:12px}","",{version:3,sources:["webpack://./src/template-components/side-panel/TemplateSidePanel.module.scss"],names:[],mappings:"AAAA,oBAAY,WAAW,CAAC,yBAAiB,uBAAkB,CAAlB,kBAAkB,CAAC,mBAAmB,CAAC,0BAAkB,UAAU,CAAC,YAAY,CAAC,yCAAyC,CAAC,4BAAoB,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,cAAc,CAAC,QAAQ",sourcesContent:[".side-panel{right:104px}.content-wrapper{height:fit-content;padding-bottom:24px}.footer-container{width:100%;display:grid;grid-template-columns:minmax(0, 1fr) auto}.additional-actions{width:0;min-width:100%;display:flex;flex-wrap:wrap;gap:12px}"],sourceRoot:""}]),a.locals={"side-panel":"side-panel___w53xb",sidePanel:"side-panel___w53xb","content-wrapper":"content-wrapper___drJGl",contentWrapper:"content-wrapper___drJGl","footer-container":"footer-container___UbzJp",footerContainer:"footer-container___UbzJp","additional-actions":"additional-actions___gLHEe",additionalActions:"additional-actions___gLHEe"};const s=a},5732:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".application-menu-mobile___LrbEB{width:100vw;height:72px;background:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);display:flex;justify-content:center;gap:32px;z-index:4000;bottom:0;position:fixed}","",{version:3,sources:["webpack://./src/templates/app/application-menu-mobile/ApplicationMenuMobile.module.scss"],names:[],mappings:"AAAA,iCAAyB,WAAW,CAAC,WAAW,CAAC,wCAAwC,CAAC,mEAAmE,CAAC,YAAY,CAAC,sBAAsB,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,cAAc",sourcesContent:[".application-menu-mobile{width:100vw;height:72px;background:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);display:flex;justify-content:center;gap:32px;z-index:4000;bottom:0;position:fixed}"],sourceRoot:""}]),a.locals={"application-menu-mobile":"application-menu-mobile___LrbEB",applicationMenuMobile:"application-menu-mobile___LrbEB"};const s=a},2371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i),s=n(7647),l=n.n(s),c=new URL(n(8256),n.b),u=a()(o()),d=l()(c);u.push([e.id,".side-bar___LE3YE{width:96px;background-color:inherit;transition:background-color 100ms ease-out 300ms;height:100vh;z-index:4000;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.side-bar___LE3YE.scrollable___NlQ8f{width:116px}.side-bar___LE3YE ul{list-style:none;margin:0;padding-left:0;list-style-position:inside}.side-bar___LE3YE .bottom___UL17x ul{width:96px;padding-bottom:32px;display:flex;flex-direction:column-reverse;gap:24px}.side-bar___LE3YE .bottom___UL17x ul li{display:flex;justify-content:center}.side-bar___LE3YE .upper___uEN4J{padding:16px 8px 4px 8px;overflow-y:auto;overflow-x:hidden;box-sizing:content-box}.side-bar___LE3YE .upper___uEN4J ul{width:80px;display:flex;flex-direction:column}.side-bar___LE3YE .upper___uEN4J ul li:not(:first-child):not(:last-child){padding-bottom:16px}.side-bar___LE3YE .upper___uEN4J ul li.logo___H1lAE{display:flex;justify-content:center;padding-bottom:40px}.side-bar___LE3YE .upper___uEN4J ul li.logo___H1lAE a{width:40px;height:40px;background:url("+d+") no-repeat;background-position:center}.side-bar___LE3YE.rollout___Ro9Iy{background-color:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);transition:none;z-index:4001;position:relative}.scrollable-application-list___QFNVE{left:116px}","",{version:3,sources:["webpack://./src/templates/app/application-menu/ApplicationMenu.module.scss"],names:[],mappings:"AAAA,kBAAU,UAAU,CAAC,wBAAwB,CAAC,gDAAgD,CAAC,YAAY,CAAC,YAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,6BAA6B,CAAC,QAAQ,CAAC,qCAAqB,WAAW,CAAC,qBAAa,eAAe,CAAC,QAAQ,CAAC,cAAc,CAAC,0BAA0B,CAAC,qCAAqB,UAAU,CAAC,mBAAmB,CAAC,YAAY,CAAC,6BAA6B,CAAC,QAAQ,CAAC,wCAAwB,YAAY,CAAC,sBAAsB,CAAC,iCAAiB,wBAAwB,CAAC,eAAe,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,oCAAoB,UAAU,CAAC,YAAY,CAAC,qBAAqB,CAAC,0EAA0D,mBAAmB,CAAC,oDAA4B,YAAY,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,sDAA8B,UAAU,CAAC,WAAW,CAAC,4DAA0D,CAAC,0BAA0B,CAAC,kCAAkB,8CAA8C,CAAC,mEAAmE,CAAC,eAAe,CAAC,YAAY,CAAC,iBAAiB,CAAC,qCAA6B,UAAU",sourcesContent:['.side-bar{width:96px;background-color:inherit;transition:background-color 100ms ease-out 300ms;height:100vh;z-index:4000;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.side-bar.scrollable{width:116px}.side-bar ul{list-style:none;margin:0;padding-left:0;list-style-position:inside}.side-bar .bottom ul{width:96px;padding-bottom:32px;display:flex;flex-direction:column-reverse;gap:24px}.side-bar .bottom ul li{display:flex;justify-content:center}.side-bar .upper{padding:16px 8px 4px 8px;overflow-y:auto;overflow-x:hidden;box-sizing:content-box}.side-bar .upper ul{width:80px;display:flex;flex-direction:column}.side-bar .upper ul li:not(:first-child):not(:last-child){padding-bottom:16px}.side-bar .upper ul li.logo{display:flex;justify-content:center;padding-bottom:40px}.side-bar .upper ul li.logo a{width:40px;height:40px;background:url("/images/kentico-logo-short.svg") no-repeat;background-position:center}.side-bar.rollout{background-color:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);transition:none;z-index:4001;position:relative}.scrollable-application-list{left:116px}'],sourceRoot:""}]),u.locals={"side-bar":"side-bar___LE3YE",sideBar:"side-bar___LE3YE",scrollable:"scrollable___NlQ8f",bottom:"bottom___UL17x",upper:"upper___uEN4J",logo:"logo___H1lAE",rollout:"rollout___Ro9Iy","scrollable-application-list":"scrollable-application-list___QFNVE",scrollableApplicationList:"scrollable-application-list___QFNVE"};const p=u},8743:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.overlay___wZiFU{position:relative}.overlay___wZiFU::after{content:" ";z-index:3999;position:fixed;height:100%;top:0;left:0;right:0;background:var(--color-overlay-background)}.container___BSXXm{width:0;height:100vh;position:fixed;top:0;left:96px;border-top-right-radius:8px;border-bottom-right-radius:8px;background:var(--color-paper-background);transition:width 500ms cubic-bezier(0.23, 1, 0.32, 1);z-index:4000}.container___BSXXm.visible___zF80u{box-shadow:0 8px 16px rgba(38,38,38,.16),0 0 8px rgba(38,38,38,.03);width:400px}.content____8gYw{padding:24px;overflow:clip}.search___BMvyt{margin-bottom:24px}.no-items___ns82N{font-family:"Inter",sans-serif;font-weight:400;font-size:14px;line-height:20px;color:var(--color-text-default-on-light);margin-right:16px;display:flex;justify-content:center}.scrollable___VF4iD{height:calc(100vh - 112px)}.scrollable___VF4iD .scrollable-content___GODmh{height:100%;overflow-y:auto;overflow-x:hidden;margin-right:-20px}.scrollable___VF4iD .scrollable-content___GODmh.list-view___VJGJA{margin-left:-4px}',"",{version:3,sources:["webpack://./src/templates/app/application-menu/application-list/ApplicationList.module.scss"],names:[],mappings:"AAAA,iBAAS,iBAAiB,CAAC,wBAAgB,WAAW,CAAC,YAAY,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,0CAA0C,CAAC,mBAAW,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,KAAK,CAAC,SAAS,CAAC,2BAA2B,CAAC,8BAA8B,CAAC,wCAAwC,CAAC,qDAAqD,CAAC,YAAY,CAAC,mCAAmB,mEAAmE,CAAC,WAAW,CAAC,iBAAS,YAAY,CAAC,aAAa,CAAC,gBAAQ,kBAAkB,CAAC,kBAAU,8BAA8B,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,iBAAiB,CAAC,YAAY,CAAC,sBAAsB,CAAC,oBAAY,0BAA0B,CAAC,gDAAgC,WAAW,CAAC,eAAe,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,kEAA0C,gBAAgB",sourcesContent:['.overlay{position:relative}.overlay::after{content:" ";z-index:3999;position:fixed;height:100%;top:0;left:0;right:0;background:var(--color-overlay-background)}.container{width:0;height:100vh;position:fixed;top:0;left:96px;border-top-right-radius:8px;border-bottom-right-radius:8px;background:var(--color-paper-background);transition:width 500ms cubic-bezier(0.23, 1, 0.32, 1);z-index:4000}.container.visible{box-shadow:0 8px 16px rgba(38,38,38,.16),0 0 8px rgba(38,38,38,.03);width:400px}.content{padding:24px;overflow:clip}.search{margin-bottom:24px}.no-items{font-family:"Inter",sans-serif;font-weight:400;font-size:14px;line-height:20px;color:var(--color-text-default-on-light);margin-right:16px;display:flex;justify-content:center}.scrollable{height:calc(100vh - 112px)}.scrollable .scrollable-content{height:100%;overflow-y:auto;overflow-x:hidden;margin-right:-20px}.scrollable .scrollable-content.list-view{margin-left:-4px}'],sourceRoot:""}]),a.locals={overlay:"overlay___wZiFU",container:"container___BSXXm",visible:"visible___zF80u",content:"content____8gYw",search:"search___BMvyt","no-items":"no-items___ns82N",noItems:"no-items___ns82N",scrollable:"scrollable___VF4iD","scrollable-content":"scrollable-content___GODmh",scrollableContent:"scrollable-content___GODmh","list-view":"list-view___VJGJA",listView:"list-view___VJGJA"};const s=a},7259:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.header___wrFPD{padding:8px 0 8px 16px;display:flex;align-items:flex-start;justify-content:space-between;width:336px;box-sizing:content-box}@media only screen and (max-width: 599.98px){.header___wrFPD{padding-right:16px;width:initial;align-items:center;cursor:pointer}.header___wrFPD.collapsible___r9hZ7 .icon___hulol{color:var(--color-icon-default)}}.header___wrFPD .category-title___bgMOb{width:320px;font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:16px;line-height:24px;color:var(--color-text-default-on-light);margin:0;padding:0;color:var(--color-text-default-on-light);text-align:left;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.header___wrFPD .category-title___bgMOb.with-toggle___K8e7W{width:264px}.scrollable___sHntY{height:calc(calc(100vh - 112px) - calc(40px))}.scrollable___sHntY .scrollable-content___re5IZ{height:100%;overflow-y:auto;overflow-x:hidden;padding-top:3px;margin-top:-3px;padding-left:3px;margin-left:-3px;margin-right:-20px}.scrollable___sHntY .scrollable-content___re5IZ.list-view___IipXB{margin-left:-8px}.list___Gsqzy{margin-top:8px;display:flex;list-style:none;-webkit-padding-start:0;padding-inline-start:0;margin-left:4px}.list___Gsqzy.list-view___IipXB{flex-direction:column;gap:4px;margin-right:8px}.list___Gsqzy.tiles-view___jTqCA{width:calc(400px - 2 * 28px);column-gap:8px;row-gap:16px;margin-right:4px;flex-wrap:wrap}',"",{version:3,sources:["webpack://./src/templates/app/application-menu/application-list/ApplicationListGroup.module.scss"],names:[],mappings:"AAAA,gBAAQ,sBAAsB,CAAC,YAAY,CAAC,sBAAsB,CAAC,6BAA6B,CAAC,WAAW,CAAC,sBAAsB,CAAC,6CAA6C,gBAAQ,kBAAkB,CAAC,aAAa,CAAC,kBAAkB,CAAC,cAAc,CAAC,kDAA0B,+BAA+B,CAAC,CAAC,wCAAwB,WAAW,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS,CAAC,wCAAwC,CAAC,eAAe,CAAC,sBAAsB,CAAC,eAAe,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,2BAA2B,CAAC,4DAAoC,WAAW,CAAC,oBAAY,6CAA6C,CAAC,gDAAgC,WAAW,CAAC,eAAe,CAAC,iBAAiB,CAAC,eAAe,CAAC,eAAe,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,kEAA0C,gBAAgB,CAAC,cAAM,cAAc,CAAC,YAAY,CAAC,eAAe,CAAC,uBAAsB,CAAtB,sBAAsB,CAAC,eAAe,CAAC,gCAAgB,qBAAqB,CAAC,OAAO,CAAC,gBAAgB,CAAC,iCAAiB,4BAA4B,CAAC,cAAc,CAAC,YAAY,CAAC,gBAAgB,CAAC,cAAc",sourcesContent:['.header{padding:8px 0 8px 16px;display:flex;align-items:flex-start;justify-content:space-between;width:336px;box-sizing:content-box}@media only screen and (max-width: 599.98px){.header{padding-right:16px;width:initial;align-items:center;cursor:pointer}.header.collapsible .icon{color:var(--color-icon-default)}}.header .category-title{width:320px;font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:16px;line-height:24px;color:var(--color-text-default-on-light);margin:0;padding:0;color:var(--color-text-default-on-light);text-align:left;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.header .category-title.with-toggle{width:264px}.scrollable{height:calc(calc(100vh - 112px) - calc(40px))}.scrollable .scrollable-content{height:100%;overflow-y:auto;overflow-x:hidden;padding-top:3px;margin-top:-3px;padding-left:3px;margin-left:-3px;margin-right:-20px}.scrollable .scrollable-content.list-view{margin-left:-8px}.list{margin-top:8px;display:flex;list-style:none;padding-inline-start:0;margin-left:4px}.list.list-view{flex-direction:column;gap:4px;margin-right:8px}.list.tiles-view{width:calc(400px - 2 * 28px);column-gap:8px;row-gap:16px;margin-right:4px;flex-wrap:wrap}'],sourceRoot:""}]),a.locals={header:"header___wrFPD",collapsible:"collapsible___r9hZ7",icon:"icon___hulol","category-title":"category-title___bgMOb",categoryTitle:"category-title___bgMOb","with-toggle":"with-toggle___K8e7W",withToggle:"with-toggle___K8e7W",scrollable:"scrollable___sHntY","scrollable-content":"scrollable-content___re5IZ",scrollableContent:"scrollable-content___re5IZ","list-view":"list-view___IipXB",listView:"list-view___IipXB",list:"list___Gsqzy","tiles-view":"tiles-view___jTqCA",tilesView:"tiles-view___jTqCA"};const s=a},9286:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.list-item___Gser8{width:352px}@media only screen and (max-width: 599.98px){.list-item___Gser8{width:100%}}.list-item___Gser8 .row___bbDqQ{cursor:pointer;border-radius:8px;height:40px;padding:0 16px;align-items:center;display:flex;gap:24px}.list-item___Gser8 .row___bbDqQ .icon___G_E2s{font-size:16px;color:var(--color-tab-icon)}.list-item___Gser8 .row___bbDqQ .label___YXXQy{flex-grow:1;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);color:var(--color-tab-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-item___Gser8 .row___bbDqQ .label___YXXQy::after{content:"";display:block}@media(hover: hover)and (pointer: fine){.list-item___Gser8 .row___bbDqQ:hover{background-color:var(--color-hover)}.list-item___Gser8 .row___bbDqQ:hover .icon___G_E2s{color:var(--color-tab-icon-selected)}.list-item___Gser8 .row___bbDqQ:hover .label___YXXQy{color:var(--color-tab-text-selected)}}.list-item___Gser8 .row___bbDqQ.activated___snwMO{background-color:var(--color-product-selected);cursor:default}.list-item___Gser8 .row___bbDqQ.activated___snwMO .icon___G_E2s{color:var(--color-icon-default-on-dark)}.list-item___Gser8 .row___bbDqQ.activated___snwMO .label___YXXQy{color:var(--color-text-default-on-dark)}@media(hover: hover)and (pointer: fine){.list-item___Gser8 .row___bbDqQ.activated___snwMO:hover{background-color:var(--color-product-selected-hover)}}.list-item___Gser8 a{text-decoration:none}.list-item___Gser8 a:focus{outline:none}.list-item___Gser8 a.focused___JqE1R{box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-focus)}',"",{version:3,sources:["webpack://./src/templates/app/application-menu/application-list/ApplicationListItem.module.scss"],names:[],mappings:"AAAA,mBAAW,WAAW,CAAC,6CAA6C,mBAAW,UAAU,CAAC,CAAC,gCAAgB,cAAc,CAAC,iBAAiB,CAAC,WAAW,CAAC,cAAc,CAAC,kBAAkB,CAAC,YAAY,CAAC,QAAQ,CAAC,8CAAsB,cAAc,CAAC,2BAA2B,CAAC,+CAAuB,WAAW,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,2BAA2B,CAAC,eAAe,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,sDAA8B,UAAU,CAAC,aAAa,CAAC,wCAAwC,sCAAsB,mCAAmC,CAAC,oDAA4B,oCAAoC,CAAC,qDAA6B,oCAAoC,CAAC,CAAC,kDAA0B,8CAA8C,CAAC,cAAc,CAAC,gEAAgC,uCAAuC,CAAC,iEAAiC,uCAAuC,CAAC,wCAAwC,wDAAgC,oDAAoD,CAAC,CAAC,qBAAa,oBAAoB,CAAC,2BAAmB,YAAY,CAAC,qCAAqB,0EAA0E",sourcesContent:['.list-item{width:352px}@media only screen and (max-width: 599.98px){.list-item{width:100%}}.list-item .row{cursor:pointer;border-radius:8px;height:40px;padding:0 16px;align-items:center;display:flex;gap:24px}.list-item .row .icon{font-size:16px;color:var(--color-tab-icon)}.list-item .row .label{flex-grow:1;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);color:var(--color-tab-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-item .row .label::after{content:"";display:block}@media(hover: hover)and (pointer: fine){.list-item .row:hover{background-color:var(--color-hover)}.list-item .row:hover .icon{color:var(--color-tab-icon-selected)}.list-item .row:hover .label{color:var(--color-tab-text-selected)}}.list-item .row.activated{background-color:var(--color-product-selected);cursor:default}.list-item .row.activated .icon{color:var(--color-icon-default-on-dark)}.list-item .row.activated .label{color:var(--color-text-default-on-dark)}@media(hover: hover)and (pointer: fine){.list-item .row.activated:hover{background-color:var(--color-product-selected-hover)}}.list-item a{text-decoration:none}.list-item a:focus{outline:none}.list-item a.focused{box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-focus)}'],sourceRoot:""}]),a.locals={"list-item":"list-item___Gser8",listItem:"list-item___Gser8",row:"row___bbDqQ",icon:"icon___G_E2s",label:"label___YXXQy",activated:"activated___snwMO",focused:"focused___JqE1R"};const s=a},7602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.container___w4USC{width:100%}.container___w4USC .title___IQcgF{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:24px;line-height:32px;color:var(--color-text-default-on-light);margin:0;padding:0;color:var(--color-text-default-on-light);padding:24px 0;display:flex;gap:16px;align-items:center}.container___w4USC .search___iP3I3{margin-bottom:24px}.container___w4USC .no-items___avK0g{font-family:"Inter",sans-serif;font-weight:400;font-size:14px;line-height:20px;color:var(--color-text-default-on-light);padding:8px 16px 0 16px;display:flex;justify-content:center}',"",{version:3,sources:["webpack://./src/templates/app/application-menu/application-list/ApplicationListMobile.module.scss"],names:[],mappings:"AAAA,mBAAW,UAAU,CAAC,kCAAkB,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS,CAAC,wCAAwC,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,CAAC,kBAAkB,CAAC,mCAAmB,kBAAkB,CAAC,qCAAqB,8BAA8B,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,uBAAuB,CAAC,YAAY,CAAC,sBAAsB",sourcesContent:['.container{width:100%}.container .title{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:24px;line-height:32px;color:var(--color-text-default-on-light);margin:0;padding:0;color:var(--color-text-default-on-light);padding:24px 0;display:flex;gap:16px;align-items:center}.container .search{margin-bottom:24px}.container .no-items{font-family:"Inter",sans-serif;font-weight:400;font-size:14px;line-height:20px;color:var(--color-text-default-on-light);padding:8px 16px 0 16px;display:flex;justify-content:center}'],sourceRoot:""}]),a.locals={container:"container___w4USC",title:"title___IQcgF",search:"search___iP3I3","no-items":"no-items___avK0g",noItems:"no-items___avK0g"};const s=a},4236:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i),s=n(7647),l=n.n(s),c=new URL(n(8256),n.b),u=a()(o()),d=l()(c);u.push([e.id,".application-menu-mobile___ZrAYM{width:100vw;height:72px;background:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);display:flex;justify-content:center;gap:32px;z-index:4000;bottom:0;position:fixed}.small-status-bar___ObWgb{width:calc(100vw - 16px);height:40px;padding:0 16px;margin:8px;display:flex;justify-content:space-between;align-items:center;gap:16px;border:none;position:fixed;top:0;z-index:1000}.small-status-bar___ObWgb .logo___utI63{width:40px;height:40px;background:url("+d+") no-repeat;background-position:center;width:24px;height:24px}.main___tAFHq{display:flex;flex-direction:column;min-height:100%;max-width:100%;overflow-x:auto;position:relative;padding:56px 0 72px 0;background:var(--gradient-background-desk) no-repeat center center fixed;background-attachment:scroll}.main___tAFHq .status-bar-wrapper___g0TPm{padding:8px;position:fixed;top:0;background:#fff}.main___tAFHq .status-bar-on-app-list____JhNt{border:none;box-shadow:none;position:initial;margin:0}.main___tAFHq.with-application-list___dOFvP{background:#fff}.main___tAFHq .canvas___pFYkE{display:flex;padding:0 32px}.main___tAFHq .canvas___pFYkE .placeholder___qMPR6{flex:auto}.main___tAFHq .guard___yTxMY{box-shadow:0 8px 32px rgba(38,38,38,.24),0 0 8px rgba(38,38,38,.03)}","",{version:3,sources:["webpack://./src/templates/app/main-mobile/MainMobile.module.scss"],names:[],mappings:"AAAA,iCAAyB,WAAW,CAAC,WAAW,CAAC,wCAAwC,CAAC,mEAAmE,CAAC,YAAY,CAAC,sBAAsB,CAAC,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,0BAAkB,wBAAwB,CAAC,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,wCAAwB,UAAU,CAAC,WAAW,CAAC,4DAA0D,CAAC,0BAA0B,CAAC,UAAU,CAAC,WAAW,CAAC,cAAM,YAAY,CAAC,qBAAqB,CAAC,eAAe,CAAC,cAAc,CAAC,eAAe,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,wEAAwE,CAAC,4BAA4B,CAAC,0CAA0B,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,eAAe,CAAC,8CAA8B,WAAW,CAAC,eAAe,CAAC,gBAAgB,CAAC,QAAQ,CAAC,4CAA4B,eAAe,CAAC,8BAAc,YAAY,CAAC,cAAc,CAAC,mDAA2B,SAAS,CAAC,6BAAa,mEAAmE",sourcesContent:['.application-menu-mobile{width:100vw;height:72px;background:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);display:flex;justify-content:center;gap:32px;z-index:4000;bottom:0;position:fixed}.small-status-bar{width:calc(100vw - 16px);height:40px;padding:0 16px;margin:8px;display:flex;justify-content:space-between;align-items:center;gap:16px;border:none;position:fixed;top:0;z-index:1000}.small-status-bar .logo{width:40px;height:40px;background:url("/images/kentico-logo-short.svg") no-repeat;background-position:center;width:24px;height:24px}.main{display:flex;flex-direction:column;min-height:100%;max-width:100%;overflow-x:auto;position:relative;padding:56px 0 72px 0;background:var(--gradient-background-desk) no-repeat center center fixed;background-attachment:scroll}.main .status-bar-wrapper{padding:8px;position:fixed;top:0;background:#fff}.main .status-bar-on-app-list{border:none;box-shadow:none;position:initial;margin:0}.main.with-application-list{background:#fff}.main .canvas{display:flex;padding:0 32px}.main .canvas .placeholder{flex:auto}.main .guard{box-shadow:0 8px 32px rgba(38,38,38,.24),0 0 8px rgba(38,38,38,.03)}'],sourceRoot:""}]),u.locals={"application-menu-mobile":"application-menu-mobile___ZrAYM",applicationMenuMobile:"application-menu-mobile___ZrAYM","small-status-bar":"small-status-bar___ObWgb",smallStatusBar:"small-status-bar___ObWgb",logo:"logo___utI63",main:"main___tAFHq","status-bar-wrapper":"status-bar-wrapper___g0TPm",statusBarWrapper:"status-bar-wrapper___g0TPm","status-bar-on-app-list":"status-bar-on-app-list____JhNt",statusBarOnAppList:"status-bar-on-app-list____JhNt","with-application-list":"with-application-list___dOFvP",withApplicationList:"with-application-list___dOFvP",canvas:"canvas___pFYkE",placeholder:"placeholder___qMPR6",guard:"guard___yTxMY"};const p=u},6448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".main___NBmcp{display:flex;flex-direction:row;overflow-x:hidden;overflow-y:hidden;position:relative}.main___NBmcp .content___Zf4ls{display:flex;flex-direction:column;flex-grow:1;max-width:100%;overflow-x:hidden;height:100vh}.main___NBmcp .content___Zf4ls .canvas___EKv8D{display:flex;height:100%;overflow-x:hidden;overflow-y:hidden;margin-top:24px;padding-left:16px}.main___NBmcp .content___Zf4ls .canvas___EKv8D .placeholder____bFqt{flex:auto;min-width:0}","",{version:3,sources:["webpack://./src/templates/app/main/Main.module.scss"],names:[],mappings:"AAAA,cAAM,YAAY,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,+BAAe,YAAY,CAAC,qBAAqB,CAAC,WAAW,CAAC,cAAc,CAAC,iBAAiB,CAAC,YAAY,CAAC,+CAAuB,YAAY,CAAC,WAAW,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,eAAe,CAAC,iBAAiB,CAAC,oEAAoC,SAAS,CAAC,WAAW",sourcesContent:[".main{display:flex;flex-direction:row;overflow-x:hidden;overflow-y:hidden;position:relative}.main .content{display:flex;flex-direction:column;flex-grow:1;max-width:100%;overflow-x:hidden;height:100vh}.main .content .canvas{display:flex;height:100%;overflow-x:hidden;overflow-y:hidden;margin-top:24px;padding-left:16px}.main .content .canvas .placeholder{flex:auto;min-width:0}"],sourceRoot:""}]),a.locals={main:"main___NBmcp",content:"content___Zf4ls",canvas:"canvas___EKv8D",placeholder:"placeholder____bFqt"};const s=a},6590:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,"@media only screen and (max-width: 599.98px){.site-selector___cxt_s{width:100%}.site-selector___cxt_s .paper___FXmhd{border:none;box-shadow:none;border-radius:0 !important}.site-selector___cxt_s .paper___FXmhd button{border-radius:0}}","",{version:3,sources:["webpack://./src/templates/app/siteselector/SiteSelector.module.scss"],names:[],mappings:"AAAA,6CAA6C,uBAAe,UAAU,CAAC,sCAAsB,WAAW,CAAC,eAAe,CAAC,0BAA0B,CAAC,6CAA6B,eAAe,CAAC",sourcesContent:["@media only screen and (max-width: 599.98px){.site-selector{width:100%}.site-selector .paper{border:none;box-shadow:none;border-radius:0 !important}.site-selector .paper button{border-radius:0}}"],sourceRoot:""}]),a.locals={"site-selector":"site-selector___cxt_s",siteSelector:"site-selector___cxt_s",paper:"paper___FXmhd"};const s=a},3017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".cell___RiU7G{min-width:40px;height:40px;display:flex;justify-content:center;align-items:center;background:none;border:none;padding:0}.cell___RiU7G.active___SoANB{background-color:var(--color-background-selected)}.cell___RiU7G:focus{outline:none}.cell___RiU7G.focused___Gzxfp{box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-focus)}","",{version:3,sources:["webpack://./src/templates/app/small-status-bar/Cell.module.scss"],names:[],mappings:"AAAA,cAAM,cAAc,CAAC,WAAW,CAAC,YAAY,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,eAAe,CAAC,WAAW,CAAC,SAAS,CAAC,6BAAa,iDAAiD,CAAC,oBAAY,YAAY,CAAC,8BAAc,0EAA0E",sourcesContent:[".cell{min-width:40px;height:40px;display:flex;justify-content:center;align-items:center;background:none;border:none;padding:0}.cell.active{background-color:var(--color-background-selected)}.cell:focus{outline:none}.cell.focused{box-shadow:0 0 0 1px var(--color-focus-light),0 0 0 3px var(--color-focus)}"],sourceRoot:""}]),a.locals={cell:"cell___RiU7G",active:"active___SoANB",focused:"focused___Gzxfp"};const s=a},2495:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i),s=n(7647),l=n.n(s),c=new URL(n(8256),n.b),u=a()(o()),d=l()(c);u.push([e.id,".small-status-bar____I3Lj{width:calc(100vw - 16px);height:40px;padding:0 16px;margin:8px;display:flex;justify-content:space-between;align-items:center;gap:16px;border:none;position:fixed;top:0;z-index:1000}.small-status-bar____I3Lj .logo___LLm2l{width:40px;height:40px;background:url("+d+") no-repeat;background-position:center;width:24px;height:24px}","",{version:3,sources:["webpack://./src/templates/app/small-status-bar/SmallStatusBar.module.scss"],names:[],mappings:"AAAA,0BAAkB,wBAAwB,CAAC,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,wCAAwB,UAAU,CAAC,WAAW,CAAC,4DAA0D,CAAC,0BAA0B,CAAC,UAAU,CAAC,WAAW",sourcesContent:['.small-status-bar{width:calc(100vw - 16px);height:40px;padding:0 16px;margin:8px;display:flex;justify-content:space-between;align-items:center;gap:16px;border:none;position:fixed;top:0;z-index:1000}.small-status-bar .logo{width:40px;height:40px;background:url("/images/kentico-logo-short.svg") no-repeat;background-position:center;width:24px;height:24px}'],sourceRoot:""}]),u.locals={"small-status-bar":"small-status-bar____I3Lj",smallStatusBar:"small-status-bar____I3Lj",logo:"logo___LLm2l"};const p=u},1028:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".status-bar___maJdl{display:flex;min-height:40px;margin:16px 28px 16px 16px;justify-content:space-between;z-index:1000}.status-bar___maJdl .left___Fmj67{display:flex;gap:16px;flex-grow:1;flex-shrink:100000}.status-bar___maJdl .right___rbzxw{display:flex;justify-content:flex-end;flex-shrink:1;gap:40px}","",{version:3,sources:["webpack://./src/templates/app/status-bar/StatusBar.module.scss"],names:[],mappings:"AAAA,oBAAY,YAAY,CAAC,eAAe,CAAC,0BAA0B,CAAC,6BAA6B,CAAC,YAAY,CAAC,kCAAkB,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,kBAAkB,CAAC,mCAAmB,YAAY,CAAC,wBAAwB,CAAC,aAAa,CAAC,QAAQ",sourcesContent:[".status-bar{display:flex;min-height:40px;margin:16px 28px 16px 16px;justify-content:space-between;z-index:1000}.status-bar .left{display:flex;gap:16px;flex-grow:1;flex-shrink:100000}.status-bar .right{display:flex;justify-content:flex-end;flex-shrink:1;gap:40px}"],sourceRoot:""}]),a.locals={"status-bar":"status-bar___maJdl",statusBar:"status-bar___maJdl",left:"left___Fmj67",right:"right___rbzxw"};const s=a},9597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".template-wrapper___CkN3m{width:100%;height:100%}.content-wrapper___iYgLJ{height:100%;overflow:auto}.content-wrapper___iYgLJ .content___VnsTN{padding:32px}.portal___LkVeS{display:flex;justify-content:flex-end;gap:12px}@media only screen and (min-width: 1920px){.content-wrapper___iYgLJ{padding-bottom:32px}.content-wrapper___iYgLJ .content___VnsTN{padding-top:64px}}@media only screen and (max-width: 1366px){.content-wrapper___iYgLJ .content___VnsTN .side-column___a1Vob{display:none}}","",{version:3,sources:["webpack://./src/templates/builder-edit/BuilderEditTemplate.module.scss"],names:[],mappings:"AAAA,0BAAkB,UAAU,CAAC,WAAW,CAAC,yBAAiB,WAAW,CAAC,aAAa,CAAC,0CAA0B,YAAY,CAAC,gBAAQ,YAAY,CAAC,wBAAwB,CAAC,QAAQ,CAAC,2CAA2C,yBAAiB,mBAAmB,CAAC,0CAA0B,gBAAgB,CAAC,CAAC,2CAA2C,+DAAuC,YAAY,CAAC",sourcesContent:[".template-wrapper{width:100%;height:100%}.content-wrapper{height:100%;overflow:auto}.content-wrapper .content{padding:32px}.portal{display:flex;justify-content:flex-end;gap:12px}@media only screen and (min-width: 1920px){.content-wrapper{padding-bottom:32px}.content-wrapper .content{padding-top:64px}}@media only screen and (max-width: 1366px){.content-wrapper .content .side-column{display:none}}"],sourceRoot:""}]),a.locals={"template-wrapper":"template-wrapper___CkN3m",templateWrapper:"template-wrapper___CkN3m","content-wrapper":"content-wrapper___iYgLJ",contentWrapper:"content-wrapper___iYgLJ",content:"content___VnsTN",portal:"portal___LkVeS","side-column":"side-column___a1Vob",sideColumn:"side-column___a1Vob"};const s=a},610:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".template-wrapper___jnF9n{display:flex;flex-direction:column;gap:12px}.actions-wrapper___kFNKi{display:flex;gap:16px;margin-bottom:12px}.condition-builder-wrapper___Baj0Y{background-color:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);padding:32px;border-radius:16px;width:65vw}","",{version:3,sources:["webpack://./src/templates/condition-builder/ConditionBuilderTemplate.module.scss"],names:[],mappings:"AAAA,0BAAkB,YAAY,CAAC,qBAAqB,CAAC,QAAQ,CAAC,yBAAiB,YAAY,CAAC,QAAQ,CAAC,kBAAkB,CAAC,mCAA2B,8CAA8C,CAAC,mEAAmE,CAAC,YAAY,CAAC,kBAAkB,CAAC,UAAU",sourcesContent:[".template-wrapper{display:flex;flex-direction:column;gap:12px}.actions-wrapper{display:flex;gap:16px;margin-bottom:12px}.condition-builder-wrapper{background-color:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);padding:32px;border-radius:16px;width:65vw}"],sourceRoot:""}]),a.locals={"template-wrapper":"template-wrapper___jnF9n",templateWrapper:"template-wrapper___jnF9n","actions-wrapper":"actions-wrapper___kFNKi",actionsWrapper:"actions-wrapper___kFNKi","condition-builder-wrapper":"condition-builder-wrapper___Baj0Y",conditionBuilderWrapper:"condition-builder-wrapper___Baj0Y"};const s=a},438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.dashboard___WLlV4{padding:8px 40px 40px 40px;display:flex;flex-direction:column;gap:40px;box-sizing:content-box}@media only screen and (max-width: 599.98px){.dashboard___WLlV4{padding-top:40px;gap:32px}}.dashboard___WLlV4 .title-wrapper___tqXE4{display:flex;align-items:baseline;gap:16px}.dashboard___WLlV4 .title-wrapper___tqXE4 .title___W9I1g{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:48px;line-height:56px;color:var(--color-text-default-on-light);margin:0;padding:0;background:var(--gradient-dark-xperience-violet);width:min-content;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:rgba(0,0,0,0);align-items:flex-start}.dashboard___WLlV4 .categories___at5xX{margin-left:-40px}@media only screen and (min-width: 1920px){.dashboard___WLlV4 .categories___at5xX{margin-left:-64px}}@media only screen and (max-width: 599.98px){.dashboard___WLlV4 .categories___at5xX{margin-left:0}}.dashboard___WLlV4 .categories___at5xX .category___uptRh{padding-bottom:48px;padding-left:48px;width:228px}@media only screen and (min-width: 1920px){.dashboard___WLlV4 .categories___at5xX .category___uptRh{padding-left:64px;width:336px}}@media only screen and (max-width: 599.98px){.dashboard___WLlV4 .categories___at5xX .category___uptRh{padding-left:0;padding-bottom:24px;width:initial}}.dashboard___WLlV4 .categories___at5xX .category___uptRh .category-title___Ut7xf{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:16px;line-height:24px;color:var(--color-text-default-on-light);margin:0;padding:0;padding-bottom:16px}.dashboard___WLlV4 .categories___at5xX .category___uptRh .applications___UJ3sT{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media only screen and (min-width: 1920px){.dashboard___WLlV4 .categories___at5xX .category___uptRh .applications___UJ3sT{gap:16px}}@media only screen and (max-width: 599.98px){.dashboard___WLlV4 .categories___at5xX .category___uptRh .applications___UJ3sT{grid-template-columns:1fr;gap:8px}}',"",{version:3,sources:["webpack://./src/templates/dashboard/Dashboard.module.scss"],names:[],mappings:"AAAA,mBAAW,0BAA0B,CAAC,YAAY,CAAC,qBAAqB,CAAC,QAAQ,CAAC,sBAAsB,CAAC,6CAA6C,mBAAW,gBAAgB,CAAC,QAAQ,CAAC,CAAC,0CAA0B,YAAY,CAAC,oBAAoB,CAAC,QAAQ,CAAC,yDAAiC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS,CAAC,gDAAgD,CAAC,iBAAiB,CAAC,4BAAoB,CAApB,oBAAoB,CAAC,qCAAqC,CAAC,sBAAsB,CAAC,uCAAuB,iBAAiB,CAAC,2CAA2C,uCAAuB,iBAAiB,CAAC,CAAC,6CAA6C,uCAAuB,aAAa,CAAC,CAAC,yDAAiC,mBAAmB,CAAC,iBAAiB,CAAC,WAAW,CAAC,2CAA2C,yDAAiC,iBAAiB,CAAC,WAAW,CAAC,CAAC,6CAA6C,yDAAiC,cAAc,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,iFAAiD,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS,CAAC,mBAAmB,CAAC,+EAA+C,YAAY,CAAC,6BAA6B,CAAC,QAAQ,CAAC,2CAA2C,+EAA+C,QAAQ,CAAC,CAAC,6CAA6C,+EAA+C,yBAAyB,CAAC,OAAO,CAAC",sourcesContent:['.dashboard{padding:8px 40px 40px 40px;display:flex;flex-direction:column;gap:40px;box-sizing:content-box}@media only screen and (max-width: 599.98px){.dashboard{padding-top:40px;gap:32px}}.dashboard .title-wrapper{display:flex;align-items:baseline;gap:16px}.dashboard .title-wrapper .title{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:48px;line-height:56px;color:var(--color-text-default-on-light);margin:0;padding:0;background:var(--gradient-dark-xperience-violet);width:min-content;background-clip:text;-webkit-text-fill-color:rgba(0,0,0,0);align-items:flex-start}.dashboard .categories{margin-left:-40px}@media only screen and (min-width: 1920px){.dashboard .categories{margin-left:-64px}}@media only screen and (max-width: 599.98px){.dashboard .categories{margin-left:0}}.dashboard .categories .category{padding-bottom:48px;padding-left:48px;width:228px}@media only screen and (min-width: 1920px){.dashboard .categories .category{padding-left:64px;width:336px}}@media only screen and (max-width: 599.98px){.dashboard .categories .category{padding-left:0;padding-bottom:24px;width:initial}}.dashboard .categories .category .category-title{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:16px;line-height:24px;color:var(--color-text-default-on-light);margin:0;padding:0;padding-bottom:16px}.dashboard .categories .category .applications{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media only screen and (min-width: 1920px){.dashboard .categories .category .applications{gap:16px}}@media only screen and (max-width: 599.98px){.dashboard .categories .category .applications{grid-template-columns:1fr;gap:8px}}'],sourceRoot:""}]),a.locals={dashboard:"dashboard___WLlV4","title-wrapper":"title-wrapper___tqXE4",titleWrapper:"title-wrapper___tqXE4",title:"title___W9I1g",categories:"categories___at5xX",category:"category___uptRh","category-title":"category-title___Ut7xf",categoryTitle:"category-title___Ut7xf",applications:"applications___UJ3sT"};const s=a},6221:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".template-wrapper___PJ8_x{display:flex;flex-direction:column;position:relative;gap:24px}.actions-wrapper___lAvuy{display:flex;gap:16px;padding-bottom:8px}","",{version:3,sources:["webpack://./src/templates/edit/EditTemplate.module.scss"],names:[],mappings:"AAAA,0BAAkB,YAAY,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,yBAAiB,YAAY,CAAC,QAAQ,CAAC,kBAAkB",sourcesContent:[".template-wrapper{display:flex;flex-direction:column;position:relative;gap:24px}.actions-wrapper{display:flex;gap:16px;padding-bottom:8px}"],sourceRoot:""}]),a.locals={"template-wrapper":"template-wrapper___PJ8_x",templateWrapper:"template-wrapper___PJ8_x","actions-wrapper":"actions-wrapper___lAvuy",actionsWrapper:"actions-wrapper___lAvuy"};const s=a},8998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".preview-iframe___qJuAC{width:100%;height:100%;border:0;border-radius:8px;display:block}","",{version:3,sources:["webpack://./src/templates/email-preview/EmailPreviewTemplate.module.scss"],names:[],mappings:"AAAA,wBAAgB,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,iBAAiB,CAAC,aAAa",sourcesContent:[".preview-iframe{width:100%;height:100%;border:0;border-radius:8px;display:block}"],sourceRoot:""}]),a.locals={"preview-iframe":"preview-iframe___qJuAC",previewIframe:"preview-iframe___qJuAC"};const s=a},8032:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".funnel___GQ0lS{height:400px;width:100%;padding:24px}","",{version:3,sources:["webpack://./src/templates/email-statistics/EmailStatisticsTemplate.module.scss"],names:[],mappings:"AAAA,gBAAQ,YAAY,CAAC,UAAU,CAAC,YAAY",sourcesContent:[".funnel{height:400px;width:100%;padding:24px}"],sourceRoot:""}]),a.locals={funnel:"funnel___GQ0lS"};const s=a},3290:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".eye-icon___TBOLF{font-size:16px}.main____m15Q,.main____m15Q span{display:flex;flex:1;gap:16px;align-self:center}.right___Ig7dS{display:flex;gap:32px}.required-spacer___vuhog{min-width:96px;align-self:center}","",{version:3,sources:["webpack://./src/templates/field-editor/FieldEditorBarItemHeader.module.scss"],names:[],mappings:"AAAA,kBAAU,cAAc,CAAC,iCAAiB,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC,eAAO,YAAY,CAAC,QAAQ,CAAC,yBAAiB,cAAc,CAAC,iBAAiB",sourcesContent:[".eye-icon{font-size:16px}.main,.main span{display:flex;flex:1;gap:16px;align-self:center}.right{display:flex;gap:32px}.required-spacer{min-width:96px;align-self:center}"],sourceRoot:""}]),a.locals={"eye-icon":"eye-icon___TBOLF",eyeIcon:"eye-icon___TBOLF",main:"main____m15Q",right:"right___Ig7dS","required-spacer":"required-spacer___vuhog",requiredSpacer:"required-spacer___vuhog"};const s=a},4792:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.form-container___Ufuc0{max-width:480px}.validation-section-form-container___xkUf8{max-width:100%}.first-headline____5mcf,.headline___j7tlB{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:16px;line-height:24px;color:var(--color-text-default-on-light);margin:0;padding:0;padding-bottom:16px}.headline___j7tlB{padding-top:32px}.footer___bNVQB{display:flex;justify-content:flex-end;gap:12px;padding-top:32px}',"",{version:3,sources:["webpack://./src/templates/field-editor/FieldEditorForm.module.scss"],names:[],mappings:"AAAA,wBAAgB,eAAe,CAAC,2CAAmC,cAAc,CAAC,0CAA0B,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS,CAAC,mBAAmB,CAAC,kBAAU,gBAAgB,CAAC,gBAAQ,YAAY,CAAC,wBAAwB,CAAC,QAAQ,CAAC,gBAAgB",sourcesContent:['.form-container{max-width:480px}.validation-section-form-container{max-width:100%}.first-headline,.headline{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:16px;line-height:24px;color:var(--color-text-default-on-light);margin:0;padding:0;padding-bottom:16px}.headline{padding-top:32px}.footer{display:flex;justify-content:flex-end;gap:12px;padding-top:32px}'],sourceRoot:""}]),a.locals={"form-container":"form-container___Ufuc0",formContainer:"form-container___Ufuc0","validation-section-form-container":"validation-section-form-container___xkUf8",validationSectionFormContainer:"validation-section-form-container___xkUf8","first-headline":"first-headline____5mcf",firstHeadline:"first-headline____5mcf",headline:"headline___j7tlB",footer:"footer___bNVQB"};const s=a},7648:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".wrapper___bwmDp{padding-bottom:16px}.actions___xnPgg{padding-bottom:16px;display:flex}.pagination___eRWbv{padding-top:16px;display:flex;align-items:center}.pagination-wrapper___eLb1L{width:50%}","",{version:3,sources:["webpack://./src/templates/listing/Listing.module.scss"],names:[],mappings:"AAAA,iBAAS,mBAAmB,CAAC,iBAAS,mBAAmB,CAAC,YAAY,CAAC,oBAAY,gBAAgB,CAAC,YAAY,CAAC,kBAAkB,CAAC,4BAAoB,SAAS",sourcesContent:[".wrapper{padding-bottom:16px}.actions{padding-bottom:16px;display:flex}.pagination{padding-top:16px;display:flex;align-items:center}.pagination-wrapper{width:50%}"],sourceRoot:""}]),a.locals={wrapper:"wrapper___bwmDp",actions:"actions___xnPgg",pagination:"pagination___eRWbv","pagination-wrapper":"pagination-wrapper___eLb1L",paginationWrapper:"pagination-wrapper___eLb1L"};const s=a},5146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.content___q7_Vv{padding:24px 48px 48px 32px;display:flex;flex-direction:column;gap:48px;max-width:576px;box-sizing:content-box}.content___q7_Vv .title-wrapper___gPuNx{display:flex;align-items:baseline;gap:16px}.content___q7_Vv .title-wrapper___gPuNx img{height:50px}.content___q7_Vv .section-title___LkL0r{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:24px;line-height:32px;color:var(--color-text-default-on-light);margin:0;padding:0;max-width:576px;display:flex;align-items:center;gap:8px;padding-bottom:16px}.content___q7_Vv .section-content___TQ4Yq{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:16px;line-height:24px;color:var(--color-text-default-on-light)}.content___q7_Vv .section-content___TQ4Yq a{color:var(--color-link)}.content___q7_Vv .section-content___TQ4Yq a:hover{color:var(--color-link-hover)}',"",{version:3,sources:["webpack://./src/templates/no-license/NoLicenseTemplate.module.scss"],names:[],mappings:"AAAA,iBAAS,2BAA2B,CAAC,YAAY,CAAC,qBAAqB,CAAC,QAAQ,CAAC,eAAe,CAAC,sBAAsB,CAAC,wCAAwB,YAAY,CAAC,oBAAoB,CAAC,QAAQ,CAAC,4CAA4B,WAAW,CAAC,wCAAwB,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,QAAQ,CAAC,SAAS,CAAC,eAAe,CAAC,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,mBAAmB,CAAC,0CAA0B,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,4CAA4B,uBAAuB,CAAC,kDAAkC,6BAA6B",sourcesContent:['.content{padding:24px 48px 48px 32px;display:flex;flex-direction:column;gap:48px;max-width:576px;box-sizing:content-box}.content .title-wrapper{display:flex;align-items:baseline;gap:16px}.content .title-wrapper img{height:50px}.content .section-title{font-family:"GT Walsheim",sans-serif;font-weight:700;font-size:24px;line-height:32px;color:var(--color-text-default-on-light);margin:0;padding:0;max-width:576px;display:flex;align-items:center;gap:8px;padding-bottom:16px}.content .section-content{font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:16px;line-height:24px;color:var(--color-text-default-on-light)}.content .section-content a{color:var(--color-link)}.content .section-content a:hover{color:var(--color-link-hover)}'],sourceRoot:""}]),a.locals={content:"content___q7_Vv","title-wrapper":"title-wrapper___gPuNx",titleWrapper:"title-wrapper___gPuNx","section-title":"section-title___LkL0r",sectionTitle:"section-title___LkL0r","section-content":"section-content___TQ4Yq",sectionContent:"section-content___TQ4Yq"};const s=a},49:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,'.permission-set___pmsFb{display:flex;flex-wrap:nowrap;padding:12px 16px;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);min-width:-moz-fit-content;min-width:fit-content;justify-content:space-between}.permission-set___pmsFb .content-container___zcV1S{flex:1 1 auto}.permission-set___pmsFb .content-container___zcV1S .content-item___WJMYU{flex:0 0 auto}.permission-set___pmsFb .content-container___zcV1S .plain-text-parameter___BsVOM{display:flex;align-items:center;height:40px}.permission-set___pmsFb .content-container___zcV1S .permission-selector___ws_Gk{flex:1 1 auto}',"",{version:3,sources:["webpack://./src/templates/permissions/detail/PermissionSet.module.scss"],names:[],mappings:"AAAA,wBAAgB,YAAY,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,0BAAqB,CAArB,qBAAqB,CAAC,6BAA6B,CAAC,mDAAmC,aAAa,CAAC,yEAAiD,aAAa,CAAC,iFAAyD,YAAY,CAAC,kBAAkB,CAAC,WAAW,CAAC,gFAAwD,aAAa",sourcesContent:['.permission-set{display:flex;flex-wrap:nowrap;padding:12px 16px;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light);min-width:fit-content;justify-content:space-between}.permission-set .content-container{flex:1 1 auto}.permission-set .content-container .content-item{flex:0 0 auto}.permission-set .content-container .plain-text-parameter{display:flex;align-items:center;height:40px}.permission-set .content-container .permission-selector{flex:1 1 auto}'],sourceRoot:""}]),a.locals={"permission-set":"permission-set___pmsFb",permissionSet:"permission-set___pmsFb","content-container":"content-container___zcV1S",contentContainer:"content-container___zcV1S","content-item":"content-item___WJMYU",contentItem:"content-item___WJMYU","plain-text-parameter":"plain-text-parameter___BsVOM",plainTextParameter:"plain-text-parameter___BsVOM","permission-selector":"permission-selector___ws_Gk",permissionSelector:"permission-selector___ws_Gk"};const s=a},4983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".container___WYJR_{flex:1 1 auto}","",{version:3,sources:["webpack://./src/templates/permissions/permissions-item-selector/PermissionItemSelector.module.scss"],names:[],mappings:"AAAA,mBAAW,aAAa",sourcesContent:[".container{flex:1 1 auto}"],sourceRoot:""}]),a.locals={container:"container___WYJR_"};const s=a},58:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".template-wrapper___OOHqB{display:flex;position:relative;height:100%}.template-wrapper___OOHqB .menu___CW5E8{display:none}.template-wrapper___OOHqB .content-wrapper-flexible___GYKpu{overflow-x:hidden;overflow-y:auto;flex:auto}.template-wrapper___OOHqB>.content-wrapper-flexible___GYKpu{padding:0 0 0 8px;margin-left:-8px}.template-wrapper___OOHqB>.content-wrapper-flexible___GYKpu .template-wrapper___OOHqB{padding:0}.template-wrapper___OOHqB>.content-wrapper-flexible___GYKpu>.content-wrapper___EqXUp{height:100%;padding-bottom:16px}.template-wrapper-with-menu___SpVTF .menu___CW5E8{flex:0;display:block;position:sticky;top:0;height:100%}.template-wrapper-with-menu___SpVTF>.content-wrapper-flexible___GYKpu{padding:0 0 0 24px}.template-wrapper-with-menu___SpVTF>.content-wrapper-flexible___GYKpu>.content-wrapper___EqXUp{padding-bottom:16px}","",{version:3,sources:["webpack://./src/templates/section-layout/SectionLayout.module.scss"],names:[],mappings:"AAAA,0BAAkB,YAAY,CAAC,iBAAiB,CAAC,WAAW,CAAC,wCAAwB,YAAY,CAAC,4DAA4C,iBAAiB,CAAC,eAAe,CAAC,SAAS,CAAC,4DAA4C,iBAAiB,CAAC,gBAAgB,CAAC,sFAA8D,SAAS,CAAC,qFAA6D,WAAW,CAAC,mBAAmB,CAAC,kDAAkC,MAAM,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,sEAAsD,kBAAkB,CAAC,+FAAuE,mBAAmB",sourcesContent:[".template-wrapper{display:flex;position:relative;height:100%}.template-wrapper .menu{display:none}.template-wrapper .content-wrapper-flexible{overflow-x:hidden;overflow-y:auto;flex:auto}.template-wrapper>.content-wrapper-flexible{padding:0 0 0 8px;margin-left:-8px}.template-wrapper>.content-wrapper-flexible .template-wrapper{padding:0}.template-wrapper>.content-wrapper-flexible>.content-wrapper{height:100%;padding-bottom:16px}.template-wrapper-with-menu .menu{flex:0;display:block;position:sticky;top:0;height:100%}.template-wrapper-with-menu>.content-wrapper-flexible{padding:0 0 0 24px}.template-wrapper-with-menu>.content-wrapper-flexible>.content-wrapper{padding-bottom:16px}"],sourceRoot:""}]),a.locals={"template-wrapper":"template-wrapper___OOHqB",templateWrapper:"template-wrapper___OOHqB",menu:"menu___CW5E8","content-wrapper-flexible":"content-wrapper-flexible___GYKpu",contentWrapperFlexible:"content-wrapper-flexible___GYKpu","content-wrapper":"content-wrapper___EqXUp",contentWrapper:"content-wrapper___EqXUp","template-wrapper-with-menu":"template-wrapper-with-menu___SpVTF",templateWrapperWithMenu:"template-wrapper-with-menu___SpVTF"};const s=a},8242:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".container___ev3nV{height:32px;display:inline-flex}.breadcrumb-item___mhOE0{display:flex;align-items:center}.breadcrumb-item___mhOE0 .icon___rusOQ{font-size:8px;color:var(--color-icon-default);padding:0 8px}.breadcrumb-item___mhOE0 .cell___EzBvD{position:relative;height:100%;display:flex;align-items:center;white-space:nowrap;color:var(--color-text-default-on-light);text-decoration:none}","",{version:3,sources:["webpack://./src/templates/settings/detail/SettingsBreadcrumbs.module.scss"],names:[],mappings:"AAAA,mBAAW,WAAW,CAAC,mBAAmB,CAAC,yBAAiB,YAAY,CAAC,kBAAkB,CAAC,uCAAuB,aAAa,CAAC,+BAA+B,CAAC,aAAa,CAAC,uCAAuB,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,oBAAoB",sourcesContent:[".container{height:32px;display:inline-flex}.breadcrumb-item{display:flex;align-items:center}.breadcrumb-item .icon{font-size:8px;color:var(--color-icon-default);padding:0 8px}.breadcrumb-item .cell{position:relative;height:100%;display:flex;align-items:center;white-space:nowrap;color:var(--color-text-default-on-light);text-decoration:none}"],sourceRoot:""}]),a.locals={container:"container___ev3nV","breadcrumb-item":"breadcrumb-item___mhOE0",breadcrumbItem:"breadcrumb-item___mhOE0",icon:"icon___rusOQ",cell:"cell___EzBvD"};const s=a},6579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".form-component___m3pm1{max-width:325px}.search-headline___FqoPA{text-decoration:underline;text-decoration-color:var(--color-product)}","",{version:3,sources:["webpack://./src/templates/settings/detail/SettingsDetailsTemplate.module.scss"],names:[],mappings:"AAAA,wBAAgB,eAAe,CAAC,yBAAiB,yBAAyB,CAAC,0CAA0C",sourcesContent:[".form-component{max-width:325px}.search-headline{text-decoration:underline;text-decoration-color:var(--color-product)}"],sourceRoot:""}]),a.locals={"form-component":"form-component___m3pm1",formComponent:"form-component___m3pm1","search-headline":"search-headline___FqoPA",searchHeadline:"search-headline___FqoPA"};const s=a},6399:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".template-wrapper___cg_hs{height:100%;display:flex;flex-direction:column;align-content:stretch}.tree-wrapper___cAGTL{height:calc(100% - 112px)}","",{version:3,sources:["webpack://./src/templates/settings/layout/SettingsLayoutTemplate.module.scss"],names:[],mappings:"AAAA,0BAAkB,WAAW,CAAC,YAAY,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,sBAAc,yBAAyB",sourcesContent:[".template-wrapper{height:100%;display:flex;flex-direction:column;align-content:stretch}.tree-wrapper{height:calc(100% - 112px)}"],sourceRoot:""}]),a.locals={"template-wrapper":"template-wrapper___cg_hs",templateWrapper:"template-wrapper___cg_hs","tree-wrapper":"tree-wrapper___cAGTL",treeWrapper:"tree-wrapper___cAGTL"};const s=a},6661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".filter___FmuQ7{flex-grow:1;min-width:320px}.save____xyjV{margin-right:16px}","",{version:3,sources:["webpack://./src/templates/settings/layout/SettingsSearchRowComponent.module.scss"],names:[],mappings:"AAAA,gBAAQ,WAAW,CAAC,eAAe,CAAC,cAAM,iBAAiB",sourcesContent:[".filter{flex-grow:1;min-width:320px}.save{margin-right:16px}"],sourceRoot:""}]),a.locals={filter:"filter___FmuQ7",save:"save____xyjV"};const s=a},4159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".view-menu-wrapper___wGbRO{display:flex;justify-content:center}","",{version:3,sources:["webpack://./src/templates/side-navigation-layout/SideNavigationLayoutTemplate.module.scss"],names:[],mappings:"AAAA,2BAAmB,YAAY,CAAC,sBAAsB",sourcesContent:[".view-menu-wrapper{display:flex;justify-content:center}"],sourceRoot:""}]),a.locals={"view-menu-wrapper":"view-menu-wrapper___wGbRO",viewMenuWrapper:"view-menu-wrapper___wGbRO"};const s=a},4797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2031),o=n.n(r),i=n(2414),a=n.n(i)()(o());a.push([e.id,".template-wrapper___dwwDc{display:flex;flex-grow:1;height:100%}.template-wrapper___dwwDc .tree-wrapper___eEsjh{overflow:hidden;display:flex;height:100%}.template-wrapper___dwwDc .tree-wrapper___eEsjh .tree___CclbT{flex-grow:1;overflow:auto;margin:0 -1px}.template-wrapper___dwwDc .scrollable___DZ1KH{overflow:auto;max-height:100%}.template-wrapper___dwwDc .scrollable___DZ1KH.overflowing___DIQMD{padding-right:8px}","",{version:3,sources:["webpack://./src/templates/tree/TreeTemplate.module.scss"],names:[],mappings:"AAAA,0BAAkB,YAAY,CAAC,WAAW,CAAC,WAAW,CAAC,gDAAgC,eAAe,CAAC,YAAY,CAAC,WAAW,CAAC,8DAAsC,WAAW,CAAC,aAAa,CAAC,aAAa,CAAC,8CAA8B,aAAa,CAAC,eAAe,CAAC,kEAA0C,iBAAiB",sourcesContent:[".template-wrapper{display:flex;flex-grow:1;height:100%}.template-wrapper .tree-wrapper{overflow:hidden;display:flex;height:100%}.template-wrapper .tree-wrapper .tree{flex-grow:1;overflow:auto;margin:0 -1px}.template-wrapper .scrollable{overflow:auto;max-height:100%}.template-wrapper .scrollable.overflowing{padding-right:8px}"],sourceRoot:""}]),a.locals={"template-wrapper":"template-wrapper___dwwDc",templateWrapper:"template-wrapper___dwwDc","tree-wrapper":"tree-wrapper___eEsjh",treeWrapper:"tree-wrapper___eEsjh",tree:"tree___CclbT",scrollable:"scrollable___DZ1KH",overflowing:"overflowing___DIQMD"};const s=a},2414:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},7647:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},2031:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},2520:function(e){
|
|
7
|
-
/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */
|
|
8
|
-
e.exports=function(){"use strict";function e(t){return e="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},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){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 r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||a(e)||s(e)||c()}function i(e){if(Array.isArray(e))return l(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function l(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}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,d=Object.setPrototypeOf,p=Object.isFrozen,f=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,g=Object.freeze,h=Object.seal,A=Object.create,v="undefined"!=typeof Reflect&&Reflect,b=v.apply,C=v.construct;b||(b=function(e,t,n){return e.apply(t,n)}),g||(g=function(e){return e}),h||(h=function(e){return e}),C||(C=function(e,t){return r(e,o(t))});var x=P(Array.prototype.forEach),y=P(Array.prototype.pop),w=P(Array.prototype.push),_=P(String.prototype.toLowerCase),O=P(String.prototype.toString),S=P(String.prototype.match),j=P(String.prototype.replace),T=P(String.prototype.indexOf),D=P(String.prototype.trim),B=P(RegExp.prototype.test),k=E(TypeError);function P(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function E(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(e,n)}}function I(e,t,n){n=n||_,d&&d(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(p(t)||(t[r]=i),o=i)}e[o]=!0}return e}function M(e){var t,n=A(null);for(t in e)!0===b(u,e,[t])&&(n[t]=e[t]);return n}function L(e,t){for(;null!==e;){var n=m(e,t);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var N=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),W=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=g(["#text"]),Y=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Z=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Q=h(/<%[\w\W]*|[\w\W]*%>/gm),X=h(/\${[\w\W]*}/gm),K=h(/^data-[\-\w.\u00B7-\uFFFF]/),J=h(/^aria-[\-\w]+$/),$=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=h(/^(?:\w+script|data):/i),te=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=h(/^html$/i),re=function(){return"undefined"==typeof window?null:window},oe=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ie(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return ie(e)};if(n.version="2.4.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,p=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,m=t.DOMParser,h=t.trustedTypes,A=c.prototype,v=L(A,"cloneNode"),b=L(A,"nextSibling"),C=L(A,"childNodes"),P=L(A,"parentNode");if("function"==typeof s){var E=i.createElement("template");E.content&&E.content.ownerDocument&&(i=E.content.ownerDocument)}var ae=oe(h,r),se=ae?ae.createHTML(""):"",le=i,ce=le.implementation,ue=le.createNodeIterator,de=le.createDocumentFragment,pe=le.getElementsByTagName,fe=r.importNode,me={};try{me=M(i).documentMode?i.documentMode:{}}catch(e){}var ge={};n.isSupported="function"==typeof P&&ce&&void 0!==ce.createHTMLDocument&&9!==me;var he,Ae,ve=q,be=Q,Ce=X,xe=K,ye=J,we=ee,_e=te,Oe=$,Se=null,je=I({},[].concat(o(N),o(R),o(F),o(W),o(V))),Te=null,De=I({},[].concat(o(Y),o(Z),o(U),o(G))),Be=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Pe=null,Ee=!0,Ie=!0,Me=!1,Le=!1,Ne=!1,Re=!1,Fe=!1,ze=!1,We=!1,He=!1,Ve=!0,Ye=!1,Ze="user-content-",Ue=!0,Ge=!1,qe={},Qe=null,Xe=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ke=null,Je=I({},["audio","video","img","source","image","track"]),$e=null,et=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",ot=rt,it=!1,at=null,st=I({},[tt,nt,rt],O),lt=["application/xhtml+xml","text/html"],ct="text/html",ut=null,dt=i.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=M(t),he=he=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ct:t.PARSER_MEDIA_TYPE,Ae="application/xhtml+xml"===he?O:_,Se="ALLOWED_TAGS"in t?I({},t.ALLOWED_TAGS,Ae):je,Te="ALLOWED_ATTR"in t?I({},t.ALLOWED_ATTR,Ae):De,at="ALLOWED_NAMESPACES"in t?I({},t.ALLOWED_NAMESPACES,O):st,$e="ADD_URI_SAFE_ATTR"in t?I(M(et),t.ADD_URI_SAFE_ATTR,Ae):et,Ke="ADD_DATA_URI_TAGS"in t?I(M(Je),t.ADD_DATA_URI_TAGS,Ae):Je,Qe="FORBID_CONTENTS"in t?I({},t.FORBID_CONTENTS,Ae):Xe,ke="FORBID_TAGS"in t?I({},t.FORBID_TAGS,Ae):{},Pe="FORBID_ATTR"in t?I({},t.FORBID_ATTR,Ae):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,Ee=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,Me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,ze=t.RETURN_DOM||!1,We=t.RETURN_DOM_FRAGMENT||!1,He=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,Ye=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,Ge=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,ot=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Be.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Be.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Be.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ie=!1),We&&(ze=!0),qe&&(Se=I({},o(V)),Te=[],!0===qe.html&&(I(Se,N),I(Te,Y)),!0===qe.svg&&(I(Se,R),I(Te,Z),I(Te,G)),!0===qe.svgFilters&&(I(Se,F),I(Te,Z),I(Te,G)),!0===qe.mathMl&&(I(Se,W),I(Te,U),I(Te,G))),t.ADD_TAGS&&(Se===je&&(Se=M(Se)),I(Se,t.ADD_TAGS,Ae)),t.ADD_ATTR&&(Te===De&&(Te=M(Te)),I(Te,t.ADD_ATTR,Ae)),t.ADD_URI_SAFE_ATTR&&I($e,t.ADD_URI_SAFE_ATTR,Ae),t.FORBID_CONTENTS&&(Qe===Xe&&(Qe=M(Qe)),I(Qe,t.FORBID_CONTENTS,Ae)),Ue&&(Se["#text"]=!0),Ne&&I(Se,["html","head","body"]),Se.table&&(I(Se,["tbody"]),delete ke.tbody),g&&g(t),ut=t)},mt=I({},["mi","mo","mn","ms","mtext"]),gt=I({},["foreignobject","desc","title","annotation-xml"]),ht=I({},["title","style","font","a","script"]),At=I({},R);I(At,F),I(At,z);var vt=I({},W);I(vt,H);var bt=function(e){var t=P(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||mt[r]):Boolean(At[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&>[r]:Boolean(vt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!gt[r])&&!(t.namespaceURI===tt&&!mt[r])&&!vt[n]&&(ht[n]||!At[n]):!("application/xhtml+xml"!==he||!at[e.namespaceURI]))},Ct=function(e){w(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},xt=function(e,t){try{w(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(ze||We)try{Ct(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){var t,n;if(Fe)e="<remove></remove>"+e;else{var r=S(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&ot===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(ot===rt)try{t=(new m).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(ot,"template",null);try{t.documentElement.innerHTML=it?se:o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),ot===rt?pe.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:a},wt=function(e){return ue.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},_t=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},St=function(e,t,r){ge[e]&&x(ge[e],(function(e){e.call(n,t,r,ut)}))},jt=function(e){var t;if(St("beforeSanitizeElements",e,null),_t(e))return Ct(e),!0;if(B(/[\u0080-\uFFFF]/,e.nodeName))return Ct(e),!0;var r=Ae(e.nodeName);if(St("uponSanitizeElement",e,{tagName:r,allowedTags:Se}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&(!Ot(e.content)||!Ot(e.content.firstElementChild))&&B(/<[/\w]/g,e.innerHTML)&&B(/<[/\w]/g,e.textContent))return Ct(e),!0;if("select"===r&&B(/<template/i,e.innerHTML))return Ct(e),!0;if(!Se[r]||ke[r]){if(!ke[r]&&Dt(r)){if(Be.tagNameCheck instanceof RegExp&&B(Be.tagNameCheck,r))return!1;if(Be.tagNameCheck instanceof Function&&Be.tagNameCheck(r))return!1}if(Ue&&!Qe[r]){var o=P(e)||e.parentNode,i=C(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(v(i[a],!0),b(e))}return Ct(e),!0}return e instanceof c&&!bt(e)?(Ct(e),!0):"noscript"!==r&&"noembed"!==r||!B(/<\/no(script|embed)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=j(t,ve," "),t=j(t,be," "),t=j(t,Ce," "),e.textContent!==t&&(w(n.removed,{element:e.cloneNode()}),e.textContent=t)),St("afterSanitizeElements",e,null),!1):(Ct(e),!0)},Tt=function(e,t,n){if(Ve&&("id"===t||"name"===t)&&(n in i||n in dt))return!1;if(Ie&&!Pe[t]&&B(xe,t));else if(Ee&&B(ye,t));else if(!Te[t]||Pe[t]){if(!(Dt(e)&&(Be.tagNameCheck instanceof RegExp&&B(Be.tagNameCheck,e)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(e))&&(Be.attributeNameCheck instanceof RegExp&&B(Be.attributeNameCheck,t)||Be.attributeNameCheck instanceof Function&&Be.attributeNameCheck(t))||"is"===t&&Be.allowCustomizedBuiltInElements&&(Be.tagNameCheck instanceof RegExp&&B(Be.tagNameCheck,n)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(n))))return!1}else if($e[t]);else if(B(Oe,j(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Ke[e])if(Me&&!B(we,j(n,_e,"")));else if(n)return!1;return!0},Dt=function(e){return e.indexOf("-")>0},Bt=function(t){var r,o,i,a;St("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};for(a=s.length;a--;){var c=r=s[a],u=c.name,d=c.namespaceURI;if(o="value"===u?r.value:D(r.value),i=Ae(u),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,St("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(xt(u,t),l.keepAttr))if(B(/\/>/i,o))xt(u,t);else{Le&&(o=j(o,ve," "),o=j(o,be," "),o=j(o,Ce," "));var p=Ae(t.nodeName);if(Tt(p,i,o)){if(!Ye||"id"!==i&&"name"!==i||(xt(u,t),o=Ze+o),ae&&"object"===e(h)&&"function"==typeof h.getAttributeType)if(d);else switch(h.getAttributeType(p,i)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{d?t.setAttributeNS(d,u,o):t.setAttribute(u,o),y(n.removed)}catch(e){}}}}St("afterSanitizeAttributes",t,null)}},kt=function e(t){var n,r=wt(t);for(St("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)St("uponSanitizeShadowNode",n,null),jt(n)||(n.content instanceof a&&e(n.content),Bt(n));St("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var i,s,c,u,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((it=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!Ot(o)){if("function"!=typeof o.toString)throw k("toString is not a function");if("string"!=typeof(o=o.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(Ot(o))return t.toStaticHTML(o.outerHTML)}return o}if(Re||ft(p),n.removed=[],"string"==typeof o&&(Ge=!1),Ge){if(o.nodeName){var f=Ae(o.nodeName);if(!Se[f]||ke[f])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof l)1===(s=(i=yt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!ze&&!Le&&!Ne&&-1===o.indexOf("<"))return ae&&He?ae.createHTML(o):o;if(!(i=yt(o)))return ze?null:He?se:""}i&&Fe&&Ct(i.firstChild);for(var m=wt(Ge?o:i);c=m.nextNode();)3===c.nodeType&&c===u||jt(c)||(c.content instanceof a&&kt(c.content),Bt(c),u=c);if(u=null,Ge)return o;if(ze){if(We)for(d=de.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return Te.shadowroot&&(d=fe.call(r,d,!0)),d}var g=Ne?i.outerHTML:i.innerHTML;return Ne&&Se["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&B(ne,i.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+g),Le&&(g=j(g,ve," "),g=j(g,be," "),g=j(g,Ce," ")),ae&&He?ae.createHTML(g):g},n.setConfig=function(e){ft(e),Re=!0},n.clearConfig=function(){ut=null,Re=!1},n.isValidAttribute=function(e,t,n){ut||ft({});var r=Ae(e),o=Ae(t);return Tt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ge[e]=ge[e]||[],w(ge[e],t))},n.removeHook=function(e){if(ge[e])return y(ge[e])},n.removeHooks=function(e){ge[e]&&(ge[e]=[])},n.removeAllHooks=function(){ge={}},n}return ie()}()},4204:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},63:(e,t,n)=>{"use strict";var r=n(9415),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),h=0;h<a.length;++h){var A=a[h];if(!(i[A]||r&&r[A]||g&&g[A]||s&&s[A])){var v=p(n,A);try{c(t,A,v)}catch(e){}}}}return t}},4507:(e,t)=>{"use strict";
|
|
9
|
-
/** @license React v16.13.1
|
|
10
|
-
* react-is.production.min.js
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,A=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,C=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case h:case g:case l:return e;default:return t}}case o:return t}}}function y(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return y(e)||x(e)===u},t.isConcurrentMode=y,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===C||e.$$typeof===A)},t.typeOf=x},9415:(e,t,n)=>{"use strict";e.exports=n(4507)},6053:(e,t,n)=>{"use strict";
|
|
17
|
-
/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-jsx-runtime.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var r=n(5954),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},7458:(e,t,n)=>{"use strict";e.exports=n(6053)},5748:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var m=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:m,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},9736:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},7706:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},1567:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},6306:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},2062:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7412:(e,t,n)=>{const r=n(4255).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},4255:(e,t,n)=>{function r(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;){"/"===r[--i]&&o++}if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a}t.R=r;var o=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},8256:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MDAgNTAwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2YwNWEyMjt9LmNscy0ye2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PGNpcmNsZSBjbGFzcz0iY2xzLTEiIGN4PSIyNTAiIGN5PSIyNTAiIHI9IjI1MCIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTI1MCwyMTYuNjFhMzMuNTMsMzMuNTMsMCwxLDEtMjMuNjksOS44MkEzMy41MywzMy41MywwLDAsMSwyNTAsMjE2LjYxIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMzM2LjA2LDIyN2g3MmEyLjcyLDIuNzIsMCwwLDEsMS43NS42MSwyLjc4LDIuNzgsMCwwLDEsLjk0LDEuNkM0MTIuNTIsMjM4LjMsNDE3LjE1LDI3MywzODgsMjczSDMzNi41NWMtMjguMzQsMC0yOS00Ni0uMzQtNDYiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0xNjMuOTQsMjczaC03MmEyLjczLDIuNzMsMCwwLDEtMi42OS0yLjIxQzg3LjQ4LDI2MS43MSw4Mi44NSwyMjcsMTEyLDIyN0gxNjMuNmMyOC4zNCwwLDI5LDQ2LC4zNCw0NiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTI5NC42LDE3Mi44OGw1MC45My01MC45NGEyLjc2LDIuNzYsMCwwLDEsMy40OC0uM2M3LjcxLDUuMjMsMzUuNDQsMjYuNCwxNC43OSw0Ny4wNmwtMzYuNDUsMzYuNDVjLTIwLjA1LDIwLTUzLTEyLjEtMzIuNzUtMzIuMjciLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0yMDUuNCwzMjcuMTMsMTU0LjQ3LDM3OGEyLjcxLDIuNzEsMCwwLDEtMy40OC4zM2MtNy43MS01LjI2LTM1LjQ1LTI2LjQzLTE0Ljc5LTQ3LjA2bDM2LjQ1LTM2LjQ4QzE5Mi43LDI3NC44LDIyNS42NCwzMDYuOTIsMjA1LjQsMzI3LjEzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTIyNywxNjMuOTJ2LTcyYTIuNzMsMi43MywwLDAsMSwyLjI0LTIuNjljOS4wNy0xLjczLDQzLjc2LTYuMzgsNDMuNzYsMjIuODN2NTEuNDJjMCwyOC4zNC00NiwyOS00NiwuMzMiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0yNzMsMzM2LjA4djcyYTIuNzEsMi43MSwwLDAsMS0uNjQsMS43NCwyLjY3LDIuNjcsMCwwLDEtMS42LjkyQzI2MS42OSw0MTIuNTEsMjI3LDQxNy4xNCwyMjcsMzg4VjMzNi4zOEMyMjcsMzA4LjA3LDI3MywzMDcuNDEsMjczLDMzNi4wOFoiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0xNzIuODksMjA1LjM5LDEyMiwxNTQuNDZhMi42OSwyLjY5LDAsMCwxLS44LTEuNjcsMi43MywyLjczLDAsMCwxLC40Ni0xLjc4YzUuMjctNy43NCwyNi40NC0zNS40NSw0Ny4xLTE0LjgybDM2LjQ0LDM2LjQ3YzIwLjA1LDIwLTEyLjEsNTMtMzIuMjcsMzIuNzMiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0zMjcuMTEsMjk0LjYxLDM3OCwzNDUuNTJhMi43MywyLjczLDAsMCwxLC43OSwxLjY3LDIuNzgsMi43OCwwLDAsMS0uNDUsMS44Yy01LjI3LDcuNzUtMjYuNDQsMzUuNDUtNDcuMSwxNC44M2wtMzYuNDQtMzYuNDhjLTIwLjA2LTIwLDEyLjEtNTMsMzIuMjctMzIuNzMiLz48L3N2Zz4="},3271:e=>{"use strict";e.exports=o},5954:e=>{"use strict";e.exports=n},493:e=>{"use strict";e.exports=i},4880:e=>{"use strict";e.exports=r},3186:(e,t,n)=>{var r=n(4882).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),s=new T(r||[]);return a(i,"_invoke",{value:_(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m={};function g(){}function h(){}function A(){}var v={};d(v,l,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(D([])));C&&C!==n&&i.call(C,l)&&(v=C);var x=A.prototype=g.prototype=Object.create(v);function y(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,a,s,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return B()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function D(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:B}}function B(){return{value:void 0,done:!0}}return h.prototype=A,a(x,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:h,configurable:!0}),h.displayName=d(A,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},y(w.prototype),d(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(x),d(x,u,"Generator"),d(x,l,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},4882:e=>{function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2409:(e,t,n)=>{var r=n(3186)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},a={};function s(t){var n=a[t];if(void 0!==n)return n.exports;var r=a[t]={id:t,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.exports}s.m=e,s.y=t,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="",s.b=document.baseURI||self.location.href,s.nc=void 0;var l={};return(0,s(7412).s)(1),(()=>{"use strict";s.r(l),s.d(l,{ActionButton:()=>Tf,ActionLinkButton:()=>Lf,ActionType:()=>t,AntiForgeryProvider:()=>Qp,AppLinkButton:()=>Pf,AppTemplate:()=>bA,AssetFolderTreeView:()=>Jt,AssetPanel:()=>fr,AssetPanelContent:()=>lr,AssetRichTextEditorPlugin:()=>vd,AssetSelectorExtensionValidationRule:()=>ap,AssetSelectorFormComponent:()=>Or,AssetSelectorValidationRule:()=>ip,AssetTileDimensions:()=>jn,AssetTileHidden:()=>Tn,AssetsLoader:()=>Pn,AutoRefreshCardComponent:()=>tg,BreadcrumbsContext:()=>lm,BreadcrumbsProvider:()=>ab,BuilderEditTemplate:()=>nC,ButtonEditTemplateActionComponent:()=>UA,Callout:()=>ff,CheckboxFormComponent:()=>jr,CodeEditorFormComponent:()=>Rd,ComponentType:()=>qm,ConditionBuilderFormComponent:()=>di,ConditionBuilderOverview:()=>ao,ConditionBuilderOverviewCardComponent:()=>rg,ConditionBuilderTemplate:()=>rv,ConfirmationDialog:()=>mf,ContentWithSidebarLayoutWrapper:()=>Fm,CustomRightSidebarProvider:()=>ef,DashboardTemplate:()=>BA,DateFormatValidationRule:()=>xp,DateInFutureValidationRule:()=>yp,DateInputFormComponent:()=>bi,DateTimeInputFormComponent:()=>Oi,DebouncerTime:()=>X,DecimalFormatValidationRule:()=>Cp,DecimalNumberInputFormComponent:()=>ji,DropDownSelectorFormComponent:()=>No,DropDownSelectorParameterOverview:()=>lo,EditTemplate:()=>YA,EditableObjectStatusContext:()=>Fd,EditableObjectStatusProvider:()=>Hd,EmailPreviewTemplate:()=>sC,EmailStatisticsTemplate:()=>pC,EmailValidationRule:()=>dp,ExtensionSelectorFormComponent:()=>Di,FieldEditorCommands:()=>nb,FieldEditorTemplate:()=>rb,Form:()=>Jd,FormCardComponent:()=>og,FormContext:()=>uo,FormFieldContext:()=>Po,FormSubmissionStatus:()=>co,IconSelectorFormComponent:()=>Ei,IdentifierValidationRule:()=>gp,ListingTemplate:()=>mv,Loader:()=>Dg,LocalizationContext:()=>y,LocalizationProvider:()=>O,LogonPath:()=>Pp,MacroWrapperFormComponent:()=>Fi,MaxItemsValidationRule:()=>cp,MaxLengthValidationRule:()=>$d,MaximumNumberValidationRule:()=>vp,MinLengthValidationRule:()=>ep,MinimumNumberValidationRule:()=>bp,NamespaceCodeNameFormComponent:()=>Vi,NestedPageProvider:()=>of,NoLicenseTemplate:()=>XA,NotificationMessageType:()=>n,NotificationsContext:()=>F,NotificationsProvider:()=>W,NumberInputFormComponent:()=>Yi,NumberInputParameterOverview:()=>so,ObjectCodeNameSelectorParameterOverview:()=>_o,ObjectSelectorBase:()=>id,ObjectSelectorFormComponent:()=>sd,ObjectSelectorParameterOverview:()=>yo,ObjectSelectorValidationRule:()=>sp,OverviewCard:()=>Jf,OverviewCommands:()=>$m,OverviewTemplate:()=>eg,PageLocation:()=>am,PageMessagePane:()=>Ng,ParameterSimpleOverview:()=>qr,ParameterText:()=>Gr,PasswordFormComponent:()=>pd,PermissionsTemplate:()=>kC,Portal:()=>Rg,PromptDialog:()=>bf,PromptDialogComponent:()=>vf,PromptDialogProvider:()=>_f,PropertiesDialog:()=>Zm,PropertiesDialogProvider:()=>Xm,RadioGroupFormComponent:()=>gd,RefetchAllProvider:()=>kp,RequiredValueValidationRule:()=>tp,RichTextEditorFormComponent:()=>Ad,RoutingContentPlaceholder:()=>Jg,SearchInput:()=>Cg,SecondaryMenuNavigationContext:()=>kA,SecondaryMenuNavigationProvider:()=>MA,SectionLayoutTemplate:()=>Nv,ServerValidationRule:()=>up,SettingsDetailsTemplate:()=>Ub,SettingsLayoutTemplate:()=>Ib,SettingsSearchTemplate:()=>qb,SideNavigationLayoutTemplate:()=>ub,SimpleStatusSuccessCardComponent:()=>hg,StringContentCardComponent:()=>ig,TagListCardComponent:()=>dg,TemplateDialog:()=>Mm,TemplateDialogProvider:()=>km,TemplateLoader:()=>gm,TemplatePropertiesContext:()=>im,TemplatePropertiesProvider:()=>sm,TemplateSideMenu:()=>wm,TemplateSidePanelProvider:()=>jm,TextAreaActionButton:()=>Ff,TextAreaCopyButton:()=>Vf,TextAreaFormComponent:()=>Od,TextInputFormComponent:()=>bd,TextWithLabelFormComponent:()=>_d,TreeTemplate:()=>vb,UnorderedListCardComponent:()=>gg,ValidationRuleListFormComponent:()=>Nd,ViewMenuItem:()=>Wg,findLastIndex:()=>Yp,getBaseUri:()=>U,getLogonUrl:()=>Ip,getPathWithoutBasePath:()=>G,getReturnUrl:()=>Mp,handleResponseStatus:()=>Vp,keysToCamelCase:()=>Km,postToAdmin:()=>Hp,useAntiForgery:()=>qp,useAssetDataManager:()=>Un,useAssetPanel:()=>nr,useAssetTilesColumnCount:()=>$n,useAssetsInfiniteScroll:()=>Xn,useBlocker:()=>B,useBreadcrumbs:()=>um,useChunkedUpload:()=>Tp,useComponent:()=>E,useComponentWillUnmount:()=>Op,useCustomRightSidebarContext:()=>$p,useDisplayDialogInFullscreen:()=>Ao,useEditableObjectStatusObservee:()=>Wd,useEditableObjectStatusObserver:()=>zd,useFieldInfoObject:()=>I,useFormComponentCommand:()=>mo,useFormComponentCommandProvider:()=>go,useInterval:()=>M,useLinkRetriever:()=>_p,useLocalization:()=>w,useNestedPage:()=>rf,useNotificationMessage:()=>V,useNotifications:()=>z,usePageCommand:()=>cf,usePageCommandProvider:()=>j,usePagePath:()=>q,usePrompt:()=>xf,usePropertiesDialog:()=>Qm,useRefetchAllContext:()=>Bp,useSecondaryMenuNavigation:()=>PA,useSelectorStatusText:()=>bo,useTemplateDialog:()=>Bm,useTemplateSidePanel:()=>Sm,useValidationRule:()=>ho});var e={};s.r(e),s.d(e,{FILE:()=>Pt,HTML:()=>Mt,TEXT:()=>It,URL:()=>Et});var t,n,r=s(5954),o=s(4880),i=s(3271);function a(e){return a="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},a(e)}function c(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function f(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}function m(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function g(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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||m(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 h(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(e){e.Link="link",e.Command="command"}(t||(t={})),function(e){e.Success="success",e.Error="error",e.Warning="warning",e.Info="info"}(n||(n={}));var A=s(2409),v=s.n(A),b=s(2520),C=s.n(b);const x=JSON.parse('{"admin":{"content":{"pages":{"archive":"Archive","content":"Content","createNewVersion":"Create new version","editPage":"Edit page","noFieldsTitle":"This page has no editable fields.","noPageBuilderTitle":"Page Builder is not available for this page.","noPageBuilderText":"If this page is expected to have Page Builder enabled, verify that the given content type has the \'Page Builder\' feature enabled in Content types -> Edit content type -> Features.","noPreviewTitle":"Preview is not available for this page.","noPreviewText":"If this page is expected to have a visual representation, verify that the given content type has the \'URL\' feature enabled in Content types -> Edit content type -> Features.","save":"Save","publish":"Publish","noChangesToSave":"There are no unsaved changes.","templateSelector":{"selectTemplate":"Select a template","defaultDividerLabel":"Default","defaultDividerTooltip":"Default page templates - determines a page\'s layout. Templates of this type first need to be created by the site\'s developers. They cannot be modified in \'Preset page templates\' application.","presetDividerLabel":"Preset","presetDividerTooltip":"You can configure a page based on a template and save it as a preset page template. Preset page templates can be modified in the \'Preset page templates\' application and reused later."},"createNewPage":{"headline":"Creating new item","hint":"Select content type for the new item","noPageTypesMessage":"Cannot create a new page, because there are no available content types for pages. Your administrators need to create a new content type with the \'Page\' feature enabled."},"archived":{"title":"Archived","tooltip":"This page is archived."},"published":{"title":"Published","tooltip":"The current version is in the published step."},"unpublished":{"title":"Draft","tooltip":"This page has not been published yet."},"versionNotPublished":{"title":"Draft","tooltip":"The current version is not yet in the published step."},"preview":"Preview"},"contentTree":{"createNewItem":"New page","nodeActions":{"label":"More actions"},"dialogs":{"deletePageConfirmation":{"headline":"Are you sure you want to delete the following items?","confirmActionLabel":"Yes, delete"}},"preview":{"moreButtonLabel":"and more"},"move":{"pageMovedUnderItselfError":"You cannot move a page under itself.","confirmResolveConflicts":"Add suffix and move","confirmResolveConflictsHeader":"item(s) with conflicting URLs found in the target destination","confirmResolveConflictsText":"Items must have unique URLs. What would you like to do with the conflicting items?","confirmMove":"Yes, move items","confirmMoveHeader":"Are you sure you want to move \'{0}\' and all its child pages?"}},"pageBuilder":{"restrictedWidgets":{"saveWarning":"The page update includes a section type change, and some widgets could not be inserted due to the new section\'s widget zone restrictions. The widgets are available in the widget insert dialog and you can add them again to valid zones. After saving the page, these widgets will be lost permanently."},"propertiesDialog":{"headline":"properties","confirmActionLabel":"Apply","discardChanges":"Are you sure you want to close the dialog?\\r\\n\\r\\nYou have unsaved changes.\\r\\n\\r\\nSelect OK to continue or Cancel to continue editing."},"saveAsTemplate":{"unsavedChanges":"You have unsaved changes on this page. Save your changes first to create a new template.","saveAsTemplateAction":"Save as template"},"changeTemplate":{"confirmChange":"By changing the template, all the content (widgets and sections with their data and properties) will be lost","dialogHeadline":"Do you really want to apply changes?","dialogConfirm":"Yes, apply","keepConfigurationLabel":"Keep current widgets and sections if possible","keepConfigurationTooltip":"Widgets and sections from the current template will be transferred if the new template contains editable areas with matching identifiers. Otherwise, Page Builder content from the current page will be discarded. If you\'re unsure about the expected behavior on your site, consult your administrators.","calloutWarning":"You can now select a new template for your page. Note that changing the template may result in loss of your widget data. <a href=\\"https://devnet.kentico.com/CMSPages/DocLinkMapper.ashx?version=xp&link=page_templates_using_mvc\\">Read more about page templates in our documentation</a>"}},"pageMenuActions":{"showMoreActions":"Show more actions"},"pageSelector":{"buttonLabel":"Add page","invalidPageName":"DELETED PAGE","statusTextMultiple":"Select up to {0} items","statusTextSingleWithCurrentCount":"Selected {0} item, maximum is {1}","statusTextMultipleWithCurrentCount":"Selected {0} items, maximum is {1}","pagePanel":{"headlineSingle":"Select a page","headlineMultiple":"Select pages","selectButtonLabel":"Select"}},"urlSelector":{"inputPlaceholder":"Enter URL","inputButtonConnector":"OR","inputTooltip":"Relative URLs will be resolved on the live site.","buttonLabel":"Select","buttonTooltip":"Select a page from the content tree","pagePanel":{"headline":"Select a page","selectButtonLabel":"Select"}},"contentItemSelector":{"buttons":{"selectExistingButtonLabel":"Select existing","createNewButtonLabel":"Create new"},"or":"or","contentItemPanel":{"headline":"Select content items","selectButtonLabel":"Select","showMore":"Show more ({0})","showLess":"Show less"},"createContentItemPanel":{"headline":"Create new item","saveButtonLabel":"Save"},"closePrompts":{"closeAll":{"headline":"You have unsaved changes","message":"Are you sure you want to close ALL dialogs and discard the unsaved changes?","confirmLabel":"Discard"},"closeOne":{"headline":"You have unsaved changes","message":"Are you sure you want to close the current dialog and discard the unsaved changes?","confirmLabel":"Discard"}}},"contentItemAssetUploader":{"uploadCancelled":"File upload was canceled."},"plugins":{"insertLink":{"buttonLabel":"Insert link","options":{"asset":{"title":"Media file","tooltip":"Insert link to a file from a media library.","panelHeadline":"Select media file to link","selectButtonLabel":"Insert","disabledOptionTooltip":"Cannot insert link to a file from a media library. No available library to select the files from.","noExistingLibrary":"Cannot insert link to a file from a media library. No available library to select the files from."},"external":{"title":"Web URL","tooltip":"Insert link to an external website or resource."},"page":{"title":"Page","tooltip":"Insert link to a page from the content tree.","panelHeadline":"Select page to link","selectButtonLabel":"Insert"}}}},"properties":{"url":{"headline":"URL"}},"contentItems":{"content":"Content","archived":{"tooltip":"This content item is archived."},"unpublished":{"tooltip":"This content item has not been published yet."},"createNewContentItem":{"headline":"Creating new item","hint":"Select content type for the new item","noContentTypesMessage":"Cannot create a new content item because there are no available content types. Contact your administrators about the configuration of your project."}}},"app":{"productName":"Kentico Xperience","validationError":"There were some issues submitting your form. See the individual inputs for details.","logon":{"userName":"User name","password":"Password","keepSigned":"Keep me signed in","signIn":"Sign in","buttonLabel":"Sign in","buttonLabelExternal":"Sign in via SSO","enterUserName":"Enter a user name","forgottenPassword":"Forgotten password","externalLogonError":"You don\'t have the permission to access the Xperience administration. If you think this is an error, contact your administrator."},"passwordReset":{"header":"Create new password","email":"Enter email address associated with your account","newPassword":"Password","create":"Create","invalidTokenHeader":"The password reset link has expired","invalidToken":"Request a fresh link by clicking the \'Resend password reset email\' button.","resendPasswordResetEmail":"Resend password reset email","resetRequested":"An email with a new password reset link was sent to your address."},"passwordResetLink":{"header":"Forgotten password","email":"Email associated with your account","signIn":"Sign In","submit":"Submit","emailEmpty":"Enter an email address","resetRequestedHeader":"Password reset requested","resetRequestedPt1":"If an account with the provided email address ","resetRequestedPt2":" exists, you will receive an email containing link to reset your password.","resetRequestedExternal":" If you are using an external authentication provider, you need to reset your password on the website of your authentication provider."},"register":{"signUp":"Sign Up","userName":"User name","password":"Password","buttonLabel":"Sign Up","linkExpired":"The registration link has expired"}},"base":{"fetch":{"unexpectedError":"We have encountered an unexpected error. Error status code:","networkError":"We have encountered an unexpected error. Original error status:"},"notFound":{"title":"Ooops!","text":"The page you were looking for could not be found (404 Error)."},"command":{"forbiddenAccess":"<b>Access Denied</b><br>You don\'t have the permission to perform this action. If you think this is an error, contact your administrator."},"template":{"errorTitle":"Something went wrong!","errorText":"We have encountered an unexpected error.","errorReload":"Reload page","goToDashboard":"Go to dashboard","forbiddenAccessTitle":"Access Denied","forbiddenAccessText":"You don\'t have permission to access this application. If you think this is an error, contact your administrator."},"listing":{"noDataTitle":"There are no records to display","search":{"noSearchResultTitle":"We couldn\'t find any match","noSearchResultText":"Try rephrasing your search phrase or start over","clearButtonLabel":"Clear your search phrase here","placeholder":"Search"},"table":{"selectRow":"Select row","selectAllRows":"Select all rows"}},"permissions":{"save":"Save","delete":"Delete","noDataTitle":"There are no records to display","noChangesToSave":"There are no unsaved changes.","newPermissionSetButtonLabel":"Add permission set","permissionSetLabel1":"For application","permissionSetLabel2":"allow users to","appSelectPlaceholder":"Choose an application","appSelectApplicationDisabled":"Permission set for this application is already defined","appSelectValidation":"Please select an application."},"settings":{"settings":"Settings","save":"Save","searchPlaceholder":"Search in Settings","noSettingsTitle":"There are no settings to display","noSettingsText":"This category does not contain any settings or you are not allowed to view these settings. Try selecting a sub-category if available.","noSettingsFoundTitle":"No matches found","noSettingsFoundText":"Try adjusting your search phrase","settingFound":"setting found","settingsFound":"settings found","noSearchPhrase":"Enter a search phrase","clearSearchPhrase":"Clear search phrase"},"edit":{"noElementTitle":"There is no form element to display.","noElementText":"This can be caused by a form misconfiguration or an unexpected error."},"app":{"profile":"Account","signOut":"Sign out","applicationList":{"searchPlaceholder":"Search for all applications","noApplicationsFound":"No matching applications found.","search":"Search","applications":"Applications","list":"View as list","tiles":"View as tiles"},"siteSelector":{"sites":"Sites","siteUnavailable":"Site unavailable","noSitesAvailable":"No sites available"},"applicationMenuMobile":{"home":"Home","applications":"Applications"}},"dashboard":{"home":"Home","applications":"Applications"},"fieldEditor":{"deleteField":"Delete field","fieldsCollectionEmpty":"The collection of fields is empty.","fieldRequired":"Required","fieldVisible":"This field is visible in the editing form","fieldInvisible":"This field is not visible in the editing form","save":"Save","cancel":"Cancel","newFieldButtonLabel":"New field","newCategoryButtonLabel":"New category","newField":"New field","newCategory":"New category","fundamentalField":"This field is fundamental so it cannot be deleted","cancelConfirmation":"Changes you made are not saved. Do you want to discard the unsaved changes?","deleteConfirmation":"Are you sure to remove the field?","categoryIndicator":"Category"},"callout":{"quickTip":"Quick tip","friendlyWarning":"Friendly warning"},"conditionBuilder":{"addGroupLabel":"Add condition group","addConditionLabel":"Add another condition","and":"And","cancelConfirmation":"Changes you made are not saved. Do you want to discard the unsaved changes?","conditionPickerHeadline":"Pick a suitable condition","conditionPickerNoData":"No matching results found","conditionPickerSearch":"Search","deleteConditionTooltip":"Remove condition","deleteConditionGroupTooltip":"Remove condition group","textBeforeOperatorSelector":"Applies if:","textAfterOperatorSelector":"of the following condition groups are fulfilled.","textBeforeOperatorSelectorInConditionGroup":"Applies if:","textAfterOperatorSelectorInConditionGroup":"of the following conditions are fulfilled.","or":"Or","overview":{"headlineBeforeOperator":"Applies if","headlineAfterOperator":"of the following conditions are fulfilled:","all":"All","any":"Any","emptyCondition":"Conditions not defined yet.","loaderError":"An unexpected error occurred and your conditions couldn\'t be loaded."}},"assetPanel":{"headline":"Media panel","actionButtonLabel":"Select file","cancelButtonLabel":"Cancel","noExistingLibrary":"Cannot insert file from a media library. No available library to select the files from."},"assetPanelContent":{"fileCounter":{"default":"Files","selected":"Files selected"}},"assetLoader":{"loadMore":"Loading more items..."},"assetUploadTile":{"buttonLabel":"Browse","firstLine":"Drag&Drop files here","secondLine":"or","inactiveMessage":"Upload currently unavailable. Another upload is already in progress."},"formComponent":{"conditionBuilder":{"editButton":{"edit":"Edit condition","add":"Add condition"},"editDialogConfirm":"Apply","editDialogCancel":"Cancel","editDialogHeader":"Create your own condition"},"dateInput":{"today":"TODAY"},"dateTimeInput":{"now":"NOW","save":"SAVE"},"richTextEditor":{"insertImage":{"headline":"Insert image","actionButtonLabel":"Insert","buttonLabel":"Insert image","disabledButtonTooltip":"Cannot insert image. No available library to select the files from.","noExistingLibrary":"Cannot insert image. No available library to select the files from."}},"namespaceCodeName":{"explanationText":"<ul><li>Only alphanumeric characters and underscores allowed</li><li>Must begin with a letter or an underscore</li></ul>","namespace":"Namespace","name":"Name"},"assetSelector":{"library":"Media Library","selectAssets":"Select or Drag&Drop files from a","dropTileText":"Dropping item"},"objectSelector":{"invalidItemName":"DELETED ITEM","statusTextMultiple":"Select up to {0} items","statusTextSingle":"Select 1 item","statusTextSingleWithCurrentCount":"Selected {0} item, maximum is {1}","statusTextMultipleWithCurrentCount":"Selected {0} items, maximum is {1}"},"formSelector":{"editInFormsButton":"Edit in forms"},"fileSelector":{"label":"or Drag&Drop here","buttonTitle":"Upload file"},"extensionSelector":{"checkboxLabel":"Inherit from settings"},"password":{"passwordLength":"<li>At least {0} characters</li>","passwordLengthOne":"<li>At least 1 character</li>","uniqueCharacterCount":"<li>At least {0} unique characters</li>","uniqueCharacterCountOne":"<li>At least 1 unique character</li>","numberCount":"<li>Must contain a number</li>","symbolCount":"<li>Must contain a special character</li>","uppercaseCount":"<li>Must contain an uppercase letter</li>","lowercaseCount":"<li>Must contain a lowercase letter</li>"},"validationRules":{"addRule":"Add Rule","editRule":"Edit Rule","dialog":{"submit":"Submit"},"deleteConfirmation":"Are you sure you want to remove the validation rule?","noRules":"No rule defined."},"dropDown":{"clearSelection":"Clear selection"},"singleObjectSelector":{"invalidValue":"Invalid value <{0}>"},"iconSelector":{"select":"Select","dialogTitle":"Select an icon","clear":"Clear","searchPlaceholder":"Search for icon","none":"No icon selected"},"macroWrapper":{"textMode":"Standard mode","macroMode":"Macro mode"}},"dialog":{"close":"Close","cancel":"Cancel"},"textArea":{"copyButtonLabel":"Copy","copySuccess":"Copied","copyError":"There was an error while copying"},"pageLoader":{"preparingYourExperience":"Preparing your Xperience","loading":"Loading"},"pagePanel":{"cancel":"Cancel","page":"page selected","pages":"pages selected","noChildren":"This item has no children"},"contentItemPanel":{"cancel":"Cancel","items":"items","name":"Name","contentType":"Content type","workflowStep":"Workflow step","lastModified":"Last modified","itemsSelected":"items selected","noContentItems":"There are no content items of the selected types available."},"promptDialog":{"title":"You have unsaved changes","message":"Are you sure you want to continue and discard the unsaved changes?","confirm":"Discard"}},"digitalmarketing":{"dataprotection":{"personaldatamanagement":{"search":"Search","enterEmail":"Enter email","noMatchingDataSubject":"No matching data subjects found.","dataErasureDialogHeadline":"Delete personal data","dataErasureDialogConfirm":"Delete","dataErasureOpenDialogButtonLabel":"Select data to delete"}},"activityList":{"crossSiteActivity":{"yes":"Yes"}},"plugins":{"insertDynamicText":{"buttonLabel":"Insert Dynamic Text","dialog":{"headline":"Insert Dynamic Text","insertButtonLabel":"Insert"}},"insertDoubleOptInLink":{"buttonLabel":"Insert Double Opt-In Link","dialog":{"headline":"Double opt-in link","insertButtonLabel":"Insert"}}},"statistics":{"noData":"No emails have been sent yet, so statistics are not available."}}}}');var y=r.default.createContext({});y.displayName="LocalizationContext";var w=function(){return r.default.useContext(y)},_=s(7458),O=function(e){var t=e.children;return(0,_.jsx)(y.Provider,{value:{localization:x},children:t})},S=r.default.createContext({executeCommand:function(){throw new Error("CommandContext can not be used outside template-based pages.")},registerCommand:function(){throw new Error("CommandContext can not be used outside template-based pages.")}});S.displayName="CommandContext";var j=function(){return(0,r.useContext)(S)};function T(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,r.useRef)({}),i=(0,r.useContext)(o.UNSAFE_NavigationContext),a=i.navigator;return(0,r.useEffect)((function(){if(t){var r=a.block((function(t){t.location.pathname!==window.location.pathname&&(n.current=D(D({},t),{},{retry:function(){r(),t.retry()}}),e(n.current))}));return r}}),[a,e,t]),n.current}var k=function(e,t){return System.import(e).then((function(e){return{default:e[t]}}))},P=function(e,t){if(e.startsWith("@")){var n,r=(o=e.split("/"),{packageName:"".concat(o[0],"/").concat(o[1]),importName:o.length>2?o[2]:"default"});return(t=null!==(n=t)&&void 0!==n?n:k)(r.packageName,r.importName)}var o;throw new Error("Missing leading '@' character in filename. Current filename '".concat(e,"'."))};function E(e,t){var n=g((0,r.useState)(null),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){i((0,r.lazy)((function(){return P(e,t)})))}),[e,t]),o}var I=function(e,t){var n=g((0,r.useState)({name:e,fieldValues:t}),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){e===o.name&&JSON.stringify(t)===JSON.stringify(o.fieldValues)||i({name:e,fieldValues:t})}),[o,e,t]),o};function M(e,t){var n=(0,r.useRef)(e);(0,r.useEffect)((function(){n.current=e}),[e]),(0,r.useEffect)((function(){if(null!==t){n.current();var e=setInterval((function(){return n.current()}),t);return function(){return clearInterval(e)}}}),[t])}function L(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(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 N(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=r.default.createContext({redirectToDialog:!1,setRedirectToDialog:function(){throw new Error("setIsDialogOpen must be defined in provider")},addDialogMessage:function(){throw new Error("addDialogMessage must be defined in provider")},removeDialogMessage:function(){throw new Error("removeDialogMessage must be defined in provider")},canProcessMessageType:function(){throw new Error("canProcessMessageType must be defined in provider")},clearMessages:function(){throw new Error("clearMessages must be defined in provider")},messages:[]});F.displayName="NotificationsContext";var z=function(){return r.default.useContext(F)},W=function(e){var t=e.children,o=g((0,r.useState)(!1),2),i=o[0],a=o[1],s=g((0,r.useState)([]),2),l=s[0],c=s[1],u=(0,r.useCallback)((function(e){c((function(t){return t.filter((function(t){return t.id!==e}))}))}),[c]);(0,r.useEffect)((function(){i||c([])}),[i]);var d=(0,r.useCallback)((function(e){c((function(t){return t.some((function(t){return t.message===e.message}))?t:[].concat(L(t),[R(R({},e),{},{id:e.id||(new Date).getTime()+Math.random(),onClose:u})])}))}),[u]),p=(0,r.useCallback)((function(e){return e===n.Error}),[]),f=(0,r.useCallback)((function(){c([])}),[]);return(0,_.jsx)(F.Provider,{value:{redirectToDialog:i,messages:l,removeDialogMessage:u,addDialogMessage:d,canProcessMessageType:p,setRedirectToDialog:a,clearMessages:f},children:t})},H=function(e){switch(e){case n.Error:return i.SnackbarItemVariant.Error;case n.Warning:return i.SnackbarItemVariant.Warning;case n.Info:return i.SnackbarItemVariant.Info;case n.Success:return i.SnackbarItemVariant.Success;default:return i.SnackbarItemVariant.Info}};function V(){var e=(0,i.useSnackbar)(),t=e.addMessage,n=e.clearMessages,o=z(),a=o.redirectToDialog,s=o.addDialogMessage,l=o.canProcessMessageType,c=o.clearMessages,u=(0,r.useRef)(a);return(0,r.useEffect)((function(){u.current=a}),[a]),{addNotificationMessage:(0,r.useCallback)((function(e){u.current&&l(e.type)?s({message:e.message,type:e.type}):t({message:e.message,variant:H(e.type),messageAsHtml:e.messageAsHtml})}),[l,s,t]),clearMessages:(0,r.useCallback)((function(){n(),c()}),[n,c])}}var Y=function(e,t){if(!e||"/"===e)return"/";var n=Z(e);if(!t)return n;var r=Z(t);return(n.toUpperCase()+"/").startsWith(r.toUpperCase()+"/")?n.substr(r.length)||"/":n},Z=function(e){return"/"+e.replace(/\/+$/g,"").replace(/^\/+/g,"")},U=function(){return new URL(document.baseURI||"/")},G=function(e){return Y(e,U().pathname)},q=function(){return G((0,o.useResolvedPath)("").pathname).substring(1)};function Q(e,t,n){var o=this,i=(0,r.useRef)(null),a=(0,r.useRef)(0),s=(0,r.useRef)(null),l=(0,r.useRef)([]),c=(0,r.useRef)(),u=(0,r.useRef)(),d=(0,r.useRef)(e),p=(0,r.useRef)(!0);(0,r.useEffect)((function(){d.current=e}),[e]);var f=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,h="maxWait"in n,A=h?Math.max(+n.maxWait||0,t):null;(0,r.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var v=(0,r.useMemo)((function(){var e=function(e){var t=l.current,n=c.current;return l.current=c.current=null,a.current=e,u.current=d.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(s.current),s.current=f?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!p.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||h&&e-a.current>=A},v=function(t){return s.current=null,g&&l.current?e(t):(l.current=c.current=null,u.current)},b=function e(){var o=Date.now();if(r(o))return v(o);if(p.current){var s=t-(o-i.current),l=h?Math.min(s,A-(o-a.current)):s;n(e,l)}},C=function(){var d=Date.now(),f=r(d);if(l.current=[].slice.call(arguments),c.current=o,i.current=d,f){if(!s.current&&p.current)return a.current=i.current,n(b,t),m?e(i.current):u.current;if(h)return n(b,t),e(i.current)}return s.current||n(b,t),u.current};return C.cancel=function(){s.current&&(f?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=i.current=c.current=s.current=null},C.isPending=function(){return!!s.current},C.flush=function(){return s.current?v(Date.now()):u.current},C}),[m,h,t,A,g,f]);return v}var X=1e3;function K(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var J="function"==typeof Symbol&&Symbol.observable||"@@observable",$=function(){return Math.random().toString(36).substring(7).split("").join(".")},ee={INIT:"@@redux/INIT"+$(),REPLACE:"@@redux/REPLACE"+$(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$()}};function te(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ne(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(K(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(K(1));return n(ne)(e,t)}if("function"!=typeof e)throw new Error(K(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(K(3));return i}function d(e){if("function"!=typeof e)throw new Error(K(4));if(l)throw new Error(K(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(K(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!te(e))throw new Error(K(7));if(void 0===e.type)throw new Error(K(8));if(l)throw new Error(K(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function f(e){if("function"!=typeof e)throw new Error(K(10));o=e,p({type:ee.REPLACE})}function m(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(K(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[J]=function(){return this},e}return p({type:ee.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[J]=m,r}function re(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function oe(e){return"object"==typeof e}const ie="dnd-core/INIT_COORDS",ae="dnd-core/BEGIN_DRAG",se="dnd-core/PUBLISH_DRAG_SOURCE",le="dnd-core/HOVER",ce="dnd-core/DROP",ue="dnd-core/END_DRAG";function de(e,t){return{type:ie,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const pe={type:ie,payload:{clientOffset:null,sourceClientOffset:null}};function fe(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(de(o)),function(e,t,n){re(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){re(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(pe);let c=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){re("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(l)}e.dispatch(de(o,c));const u=s.getSource(l).beginDrag(a,l);if(null==u)return;!function(e){re(oe(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:ae,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){me(e,t,n[t])}))}return e}function he(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){re(e.isDragging(),"Cannot call drop while not dragging."),re(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;(function(e){re(void 0===e||oe(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),s={type:ce,payload:{dropResult:ge({},t,a)}};e.dispatch(s)}))}}function Ae(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){re(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:ue}}}function ve(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function be(e){return function(t,{clientOffset:n}={}){!function(e){re(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];ve(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){re(t.isDragging(),"Cannot call hover while not dragging."),re(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];re(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");re(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:le,payload:{targetIds:r,clientOffset:n||null}}}}function Ce(e){return function(){if(e.getMonitor().isDragging())return{type:se}}}class xe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:fe(e),publishDragSource:Ce(e),hover:be(e),drop:he(e),endDrag:Ae(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function ye(e,t){return{x:e.x-t.x,y:e.y-t.y}}const we=[],_e=[];we.__IS_NONE__=!0,_e.__IS_ALL__=!0;class Oe{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;re("function"==typeof e,"listener must be a function."),re(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){if(e===we)return!1;if(e===_e||void 0===t)return!0;const n=(r=e,t.filter((e=>r.indexOf(e)>-1)));var r;return n.length>0}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){re("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return re(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(re(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return ve(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(re(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!ve(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?ye(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?ye(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const Se="undefined"!=typeof global?global:self,je=Se.MutationObserver||Se.WebKitMutationObserver;function Te(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const De="function"==typeof je?function(e){let t=1;const n=new je(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Te;class Be{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const ke=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=De(this.flush),this.requestErrorThrow=Te((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},Pe=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Be(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(ke.registerPendingError);const Ee="dnd-core/ADD_SOURCE",Ie="dnd-core/ADD_TARGET",Me="dnd-core/REMOVE_SOURCE",Le="dnd-core/REMOVE_TARGET";function Ne(e,t){t&&Array.isArray(e)?e.forEach((e=>Ne(e,!1))):re("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Re;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Re||(Re={}));let Fe=0;function ze(e){const t=(Fe++).toString();switch(e){case Re.SOURCE:return`S${t}`;case Re.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function We(e){switch(e[0]){case"S":return Re.SOURCE;case"T":return Re.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function He(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class Ve{addSource(e,t){Ne(e),function(e){re("function"==typeof e.canDrag,"Expected canDrag to be a function."),re("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),re("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(Re.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Ee,payload:{sourceId:e}}}(n)),n}addTarget(e,t){Ne(e,!0),function(e){re("function"==typeof e.canDrop,"Expected canDrop to be a function."),re("function"==typeof e.hover,"Expected hover to be a function."),re("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(Re.TARGET,e,t);return this.store.dispatch(function(e){return{type:Ie,payload:{targetId:e}}}(n)),n}containsHandler(e){return He(this.dragSources,e)||He(this.dropTargets,e)}getSource(e,t=!1){re(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return re(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return re(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return re(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return We(e)===Re.SOURCE}isTargetId(e){return We(e)===Re.TARGET}removeSource(e){var t;re(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Me,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},ke.enqueueTask(Pe.create(t))}removeTarget(e){re(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Le,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);re(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){re(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=ze(e);return this.types.set(r,t),e===Re.SOURCE?this.dragSources.set(r,n):e===Re.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Ye=(e,t)=>e===t;function Ze(e=we,t){switch(t.type){case le:break;case Ee:case Ie:case Le:case Me:return we;default:return _e}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(n,r),i=o.length>0||!function(e,t,n=Ye){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!i)return we;const a=r[r.length-1],s=n[n.length-1];return a!==s&&(a&&o.push(a),s&&o.push(s)),o}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ge={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function qe(e=Ge,t){const{payload:n}=t;switch(t.type){case ie:case ae:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case le:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ue(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case ue:case ce:return Ge;default:return e}var r,o}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qe(e,t,n[t])}))}return e}const Ke={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Je(e=Ke,t){const{payload:n}=t;switch(t.type){case ae:return Xe({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case se:return Xe({},e,{isSourcePublic:!0});case le:return Xe({},e,{targetIds:n.targetIds});case Le:return-1===e.targetIds.indexOf(n.targetId)?e:Xe({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case ce:return Xe({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case ue:return Xe({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function $e(e=0,t){switch(t.type){case Ee:case Ie:return e+1;case Me:case Le:return e-1;default:return e}}function et(e=0){return e+1}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tt(e,t,n[t])}))}return e}function rt(e={},t){return{dirtyHandlerIds:Ze(e.dirtyHandlerIds,{type:t.type,payload:nt({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:qe(e.dragOffset,t),refCount:$e(e.refCount,t),dragOperation:Je(e.dragOperation,t),stateId:et(e.stateId)};var n,r,o}function ot(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return ne(rt,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new Oe(o,new Ve(o)),a=new xe(o,i),s=e(a,t,n);return a.receiveBackend(s),a}const it=(0,r.createContext)({dragDropManager:void 0});function at(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}let st=0;const lt=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ct=(0,r.memo)((function(e){var{children:t}=e,n=at(e,["children"]);const[o,i]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=ut(),n,r){const o=t;o[lt]||(o[lt]={dragDropManager:ot(e,t,n,r)});return o[lt]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,r.useEffect)((()=>{if(i){const e=ut();return++st,()=>{0==--st&&(e[lt]=null)}}}),[]),(0,_.jsx)(it.Provider,{value:o,children:t})}));function ut(){return"undefined"!=typeof global?global:window}var dt=s(4204);const pt="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function ft(e,t,n){const[o,i]=function(e,t,n){const[o,i]=(0,r.useState)((()=>t(e))),a=(0,r.useCallback)((()=>{const r=t(e);dt(o,r)||(i(r),n&&n())}),[o,e,n]);return pt(a),[o,a]}(e,t,n);return pt((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})}),[e,i]),o}function mt(e,t,n){return ft(t,e||(()=>({})),(()=>n.reconnect()))}function gt(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,r.useMemo)((()=>"function"==typeof e?e():e),n)}function ht(e){return(0,r.useMemo)((()=>e.hooks.dropTarget()),[e])}function At(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<i.length;a++){const l=i[a];if(!s(l))return!1;const c=e[l],u=t[l];if(o=n?n.call(r,c,u,l):void 0,!1===o||void 0===o&&c!==u)return!1}return!0}function vt(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function bt(e){return(t=null,n=null)=>{if(!(0,r.isValidElement)(t)){const r=t;return e(r,n),r}const o=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(o);const i=n?t=>e(t,n):e;return function(e,t){const n=e.ref;return re("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,r.cloneElement)(e,{ref:e=>{xt(n,e),xt(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(o,i)}}function Ct(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=bt(r);t[n]=()=>e}})),t}function xt(e,t){"function"==typeof e?e(t):e.current=t}class yt{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!At(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Ct({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,vt(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function wt(){const{dragDropManager:e}=(0,r.useContext)(it);return re(null!=e,"Expected drag drop context"),e}let _t=!1;class Ot{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;re(!_t,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return _t=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{_t=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}class St{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function jt(e,t,n){const o=wt(),i=function(e,t){const n=(0,r.useMemo)((()=>new St(e,t)),[t]);return(0,r.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return(0,r.useMemo)((()=>(re(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);pt((function(){const[e,r]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(a,i,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}),[o,t,i,n,a.map((e=>e.toString())).join("|")])}function Tt(e,t){const n=gt(e,t),o=function(){const e=wt();return(0,r.useMemo)((()=>new Ot(e)),[e])}(),i=function(e){const t=wt(),n=(0,r.useMemo)((()=>new yt(t.getBackend())),[t]);return pt((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return jt(n,o,i),[mt(n.collect,o,i),ht(i)]}function Dt(e){let t=null;return()=>(null==t&&(t=e()),t)}class Bt{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach((e=>o.push(e))),o}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class kt{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Pt="__NATIVE_FILE__",Et="__NATIVE_URL__",It="__NATIVE_TEXT__",Mt="__NATIVE_HTML__";function Lt(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const Nt={[Pt]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Mt]:{exposeProperties:{html:(e,t)=>Lt(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Et]:{exposeProperties:{urls:(e,t)=>Lt(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[It]:{exposeProperties:{text:(e,t)=>Lt(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Rt(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Nt).filter((e=>{const n=Nt[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const Ft=Dt((()=>/firefox/i.test(navigator.userAgent))),zt=Dt((()=>Boolean(window.safari)));class Wt{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,l=0,c=i.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];c=s-1}}a=Math.max(0,c);const u=e-t[a],d=u*u;return n[a]+r[a]*u+o[a]*d+i[a]*u*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],i=[],a=[];let s,l;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],l=t[r+1]-t[r],i.push(s),o.push(l),a.push(l/s);const c=[a[0]];for(let e=0;e<i.length-1;e++){const t=a[e],n=a[e+1];if(t*n<=0)c.push(0);else{s=i[e];const r=i[e+1],o=s+r;c.push(3*o/((o+r)/t+(o+s)/n))}}c.push(a[a.length-1]);const u=[],d=[];let p;for(let e=0;e<c.length-1;e++){p=a[e];const t=c[e],n=1/i[e],r=t+c[e+1]-p-p;u.push((p-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=u,this.c3s=d}}function Ht(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Vt(e){return{x:e.clientX,y:e.clientY}}function Yt(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(Ft()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Ht(i?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:l,offsetHeight:c}=e,{anchorX:u,anchorY:d}=r,{dragPreviewWidth:p,dragPreviewHeight:f}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return zt()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,l,c),{offsetX:m,offsetY:g}=o,h=0===g||g;return{x:0===m||m?m:new Wt([0,.5,1],[s.x,s.x/l*p,s.x+p-l]).interpolate(u),y:h?g:(()=>{let e=new Wt([0,.5,1],[s.y,s.y/c*f,s.y+f-c]).interpolate(d);return zt()&&i&&(e+=(window.devicePixelRatio-1)*f),e})()}}class Zt{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ut(e,t,n[t])}))}return e}class qt{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Gt({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Gt({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(e).some((n=>e[n]===t))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Nt[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new kt(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Ht(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=Vt(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=Rt(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=Yt(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Rt(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Vt(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=Vt(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Rt(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Vt(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Zt(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Bt(this.isNodeInDocument)}}const Qt=function(e,t,n){return new qt(e,t,n)};var Xt=s(7608),Kt=s.n(Xt),Jt=r.default.forwardRef((function(e,t){var n=e.rootPath,r=e.selectedPath,o=e.nodes,a=e.onNodeToggle,s=e.onNodeClick,l=o&&o[n];return(0,_.jsx)(_.Fragment,{children:l&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(i.TreeView,{ref:t,selectedIdentifier:r,dataTestId:"asset-folders-tree",children:function e(t,n){var r,l=0===n;return(0,_.jsx)(i.TreeNode,{isDraggable:!1,level:n,nodeIdentifier:t.path,onNodeToggle:function(e){return a(t,e)},loading:t.isLoading,onNodeClick:function(){return s(t)},isExpanded:t.isExpanded||l,isToggleable:t.hasChildren,toggleDisabled:l,renderNode:function(e){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.TreeNodeLeadingIcon,{isSelected:e,children:(0,_.jsx)(i.Icon,{name:"xp-folder"})}),(0,_.jsx)(i.TreeNodeTitle,{isSelected:e,children:t.name})]})},children:null===(r=t.children)||void 0===r?void 0:r.map((function(t){return e(o[t],n+1)}))},"".concat(t.path))}(l,0)})})})}));function $t(e){return(0,r.useMemo)((()=>e.hooks.dragSource()),[e])}function en(e){return(0,r.useMemo)((()=>e.hooks.dragPreview()),[e])}Jt.displayName="AssetFolderTreeView";class tn{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!At(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!At(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Ct({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,vt(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,vt(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}let nn=!1,rn=!1;class on{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){re(!nn,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return nn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{nn=!1}}isDragging(){if(!this.sourceId)return!1;re(!rn,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return rn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{rn=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}class an{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function sn(e,t,n){const o=wt(),i=function(e,t,n){const o=(0,r.useMemo)((()=>new an(e,t,n)),[t,n]);return(0,r.useEffect)((()=>{o.spec=e}),[e]),o}(e,t,n),a=function(e){return(0,r.useMemo)((()=>{const t=e.type;return re(null!=t,"spec.type must be defined"),t}),[e])}(e);pt((function(){if(null!=a){const[e,r]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(a,i,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}}),[o,t,n,i,a])}function ln(e,t){const n=gt(e,t);re(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=function(){const e=wt();return(0,r.useMemo)((()=>new on(e)),[e])}(),i=function(e,t){const n=wt(),o=(0,r.useMemo)((()=>new tn(n.getBackend())),[n]);return pt((()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource())),[o,e]),pt((()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview())),[o,t]),o}(n.options,n.previewOptions);return sn(n,o,i),[mt(n.collect,o,i),$t(i),en(i)]}function cn(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 un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dn=function(e){var t=g(ln((function(){return{type:"Asset",item:e.asset,collect:function(e){return{isDragging:e.isDragging()}}}})),2),n=t[0].isDragging,r=t[1];return(0,_.jsx)(i.AssetTileSelectable,un(un({ref:r},e),{},{isDragging:n,isSelected:n||e.isSelected}))},pn=s(5748),fn=s.n(pn),mn=s(6306),gn=s.n(mn),hn=s(9736),An=s.n(hn),vn=s(1567),bn=s.n(vn),Cn=s(7706),xn=s.n(Cn),yn=s(2062),wn=s.n(yn),_n=s(7107),On={};On.styleTagTransform=wn(),On.setAttributes=bn(),On.insert=An().bind(null,"head"),On.domAPI=gn(),On.insertStyleElement=xn();fn()(_n.Z,On);const Sn=_n.Z&&_n.Z.locals?_n.Z.locals:void 0;var jn,Tn=function(e){var t=e.isPreview;return(0,_.jsx)("div",{className:Sn.hidden,children:t?(0,_.jsx)(i.AssetTilePreview,{size:0,name:"hidden_tile",disabled:!0,dataTestId:"asset-tile-hidden"},"hidden_tile"):(0,_.jsx)(i.AssetTileSelectable,{size:0,name:"hidden_tile",disabled:!0},"hidden_tile")})};Tn.displayName="AssetTileHidden",function(e){e.SelectableTileMaxWidth="218px",e.PreviewTileMaxWidth="323px"}(jn||(jn={}));var Dn=s(2129),Bn={};Bn.styleTagTransform=wn(),Bn.setAttributes=bn(),Bn.insert=An().bind(null,"head"),Bn.domAPI=gn(),Bn.insertStyleElement=xn();fn()(Dn.Z,Bn);const kn=Dn.Z&&Dn.Z.locals?Dn.Z.locals:void 0;var Pn=function(e){var t=e.observerRef,n=w().localization;return(0,_.jsxs)("div",{ref:t,className:kn.loadingHeadline,children:[(0,_.jsx)(i.Spinner,{className:kn.spinner}),(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,labelColor:i.Colors.TextDefaultOnLight,children:n.admin.base.assetLoader.loadMore})]})};function En(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 In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?En(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Mn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Ln;const Nn=new Uint8Array(16);function Rn(){if(!Ln&&(Ln="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ln))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ln(Nn)}const Fn=[];for(let e=0;e<256;++e)Fn.push((e+256).toString(16).slice(1));function zn(e,t=0){return(Fn[e[t+0]]+Fn[e[t+1]]+Fn[e[t+2]]+Fn[e[t+3]]+"-"+Fn[e[t+4]]+Fn[e[t+5]]+"-"+Fn[e[t+6]]+Fn[e[t+7]]+"-"+Fn[e[t+8]]+Fn[e[t+9]]+"-"+Fn[e[t+10]]+Fn[e[t+11]]+Fn[e[t+12]]+Fn[e[t+13]]+Fn[e[t+14]]+Fn[e[t+15]]).toLowerCase()}const Wn=function(e,t,n){if(Mn.randomUUID&&!t&&!e)return Mn.randomUUID();const r=(e=e||{}).random||(e.rng||Rn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return zn(r)};function Hn(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 Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Zn(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 Un=function(e){var t=g((0,r.useState)(0),2),n=t[0],o=t[1],i=g((0,r.useState)(""),2),a=i[0],s=i[1],l=(0,r.useRef)(0),c=(0,r.useRef)(0),d=(0,r.useRef)(""),f=function(e){var t=g(r.default.useState({}),2),n=t[0],o=t[1],i=j().executeCommand,a=go().executeCommand,s=function(){var t=p(v().mark((function t(n,r,o){var s;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s="LoadAssetFolders",!e){t.next=5;break}return t.next=4,a(e,s,{libraryIdentifier:n,folderPath:r,isSelected:o});case 4:case 7:return t.abrupt("return",t.sent);case 5:return t.next=7,i(s,{libraryIdentifier:n,folderPath:r,isSelected:o});case 8:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),l=function(e){return In(In({},e),{},{children:[],areChildrenLoaded:!1,isLoading:!1,isExpanded:!1})},c=function(){var e=p(v().mark((function e(t,n){var r,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(t,n,!0);case 2:if(null!=(r=e.sent)&&r.folders){e.next=5;break}return e.abrupt("return",[]);case 5:return i=r.folders.map(l),o((function(e){var t=i.reduce((function(e,t){var n=t.path,r=i.filter((function(e){return e.parentPath===n}));return In(In({},e),{},u({},n,In(In({},t),{},{isLoading:!1,children:r.map((function(e){return e.path})),isExpanded:r.length>0,areChildrenLoaded:r.length>0})))}),e);return t})),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),d=function(){var e=p(v().mark((function e(t,n,r){var i,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(t,n,!1);case 2:if((i=e.sent)&&i.folders){e.next=5;break}return e.abrupt("return");case 5:a=i.folders.map(l),o((function(e){var t=a.reduce((function(e,t){var n=t.path;return In(In({},e),{},u({},n,In(In({},t),{},{isLoading:!1,children:[]})))}),e),n=a[0].parentPath;return t[n]=In(In({},t[n]),{},{isLoading:!1,areChildrenLoaded:!0,children:a.map((function(e){return e.path})),isExpanded:r}),t}));case 7:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),f=function(){var e=p(v().mark((function e(t,n,r){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r||n.areChildrenLoaded){e.next=4;break}return e.next=3,d(t,n.path,r);case 3:return e.abrupt("return");case 4:o((function(e){return In(In({},e),{},u({},n.path,In(In({},n),{},{isExpanded:r})))}));case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();return{folders:n,toggleFolder:f,loadFolders:c,clearFolders:function(){return o({})}}}(e),m=f.folders,h=f.toggleFolder,A=f.loadFolders,b=f.clearFolders,C=function(e,t,n){var o=g((0,r.useState)([]),2),i=o[0],a=o[1],s=g((0,r.useState)(!1),2),l=s[0],c=s[1],u=g((0,r.useState)(!1),2),d=u[0],f=u[1],m=g((0,r.useState)(0),2),h=m[0],A=m[1],b=(0,r.useRef)(null),C=(0,r.useRef)(!1),x=(0,r.useRef)(0),y=(0,r.useRef)(""),w=(0,r.useRef)([]),_=(0,r.useRef)([]),O=j().executeCommand,S=go().executeCommand,T=function(e){return function(t,r){return n?S(n,e,t,r):O(e,t,r)}},D=function(e,t,n,r,o){return T("LoadAssetItems")({libraryIdentifier:e,folderPath:t,pageIndex:n,pageSize:r,allowedExtensions:o})},B=function(){var e=p(v().mark((function e(t,n,r,o){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",T("UploadAssets")({libraryIdentifier:t,folderPath:n,allowedExtensions:o},r));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),k=function(){var e=p(v().mark((function e(t,n,r){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",T("UpdateAssetBinary")({libraryIdentifier:t,originalAssetIdentifier:n},r));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),P=function(){var n=p(v().mark((function n(r,o,i,s,l){var u,d,p,f,m,g,h;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,D(r,o,i,s,l);case 2:if(d=n.sent){n.next=5;break}return n.abrupt("return",-1);case 5:if(o===t.current&&r===e.current){n.next=7;break}return n.abrupt("return",-1);case 7:return p=[],0===i?p=d.assets.map(z):(f=w.current.filter((function(e){return!e.isPlaceholder})),m=new Set(f.map((function(e){return e.identifier}))),g=d.assets.filter((function(e){return!m.has(e.identifier)})).map(z),p=[].concat(L(f),L(g))),h=null!==(u=w.current.filter((function(e){return e.isPlaceholder})))&&void 0!==u?u:[],E()&&_.current.forEach((function(e){var t=h.findIndex((function(t){return t.identifier===e.identifier}));if(t>=0){var n=h.splice(t,1)[0],r=p.findIndex((function(t){return t.identifier===e.identifier}));r>=0&&(p[r]=n)}})),w.current=[].concat(L(h),L(p)),a([].concat(L(E()?h:[]),L(p))),A(d.totalCount),c(d.totalCount>p.length),n.abrupt("return",i);case 16:case"end":return n.stop()}}),n)})));return function(e,t,r,o,i){return n.apply(this,arguments)}}(),E=function(){return C.current&&y.current===t.current&&x.current===e.current},I=function(){var n=p(v().mark((function n(r,o,s,l){var c,u,p,f,m,g,h,b;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(d||s.length<=0)){n.next=2;break}return n.abrupt("return");case 2:N(r,o),c=[],u=Yn(s);try{for(u.s();!(p=u.n()).done;)f=p.value,c.push({identifier:Wn(),name:f.name,size:f.size,isPlaceholder:!0,uploadProgress:0})}catch(e){u.e(e)}finally{u.f()}return w.current=[].concat(c,L(i)),a(w.current),F(w.current),n.next=11,B(r,o,s,l);case 11:if(m=n.sent,R(),y.current===t.current&&x.current===e.current){n.next=15;break}return n.abrupt("return");case 15:if(null!=m&&m.assets){n.next=18;break}return a(null===(g=w.current)||void 0===g?void 0:g.filter((function(e){return!e.isPlaceholder}))),n.abrupt("return");case 18:h=m.assets.map(z).map((function(e){return Vn(Vn({},e),{},{identifier:e.hasError?Wn():e.identifier})})),w.current=[].concat(L(h),L(w.current.filter((function(e){return!e.isPlaceholder})))),a(w.current),b=h.filter((function(e){return!e.hasError})).length,A((function(e){return e+b}));case 23:case"end":return n.stop()}}),n)})));return function(e,t,r,o){return n.apply(this,arguments)}}(),M=function(){var n=p(v().mark((function n(r,o,s,l){var c,u,p,f,m,g,h;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!d&&1===l.length){n.next=2;break}return n.abrupt("return");case 2:if(c=i.find((function(e){return e.identifier===s}))){n.next=5;break}return n.abrupt("return");case 5:return N(r,o),u={identifier:s,name:l[0].name,size:l[0].size,isPlaceholder:!0,uploadProgress:0},w.current=i.map((function(e){return e.identifier===s?u:e})),a(w.current),F(w.current),_.current=[].concat(L(_.current),[c]),n.next=13,k(r,s,l);case 13:if(p=n.sent,R(),y.current===t.current&&x.current===e.current){n.next=17;break}return n.abrupt("return");case 17:if(null!=p&&p.asset){n.next=23;break}return _.current=_.current.filter((function(e){return e.identifier!==c.identifier})),f=w.current.findIndex((function(e){return e.identifier===s})),w.current[f]=c,a(w.current),n.abrupt("return");case 23:(m=p.asset).hasError||(_.current=_.current.filter((function(e){return e.identifier!==c.identifier}))),g=Vn(Vn({},z(m)),{},{identifier:s,isRestorable:m.hasError}),h=w.current.findIndex((function(e){return e.identifier===s})),w.current[h]=g,a(w.current);case 29:case"end":return n.stop()}}),n)})));return function(e,t,r,o){return n.apply(this,arguments)}}(),N=function(e,t){f(!0),C.current=!0,x.current=e,y.current=t},R=function(){clearInterval(b.current),f(!1),C.current=!1},F=function(e){b.current=window.setTimeout((function(){w.current=null==e?void 0:e.map((function(e){return Vn(Vn({},e),{},{uploadProgress:e.isPlaceholder?98:0})})),a(w.current)}),200)},z=function(e){return Vn(Vn({},e),{},{isPlaceholder:!1,uploadProgress:void 0,isRestorable:!1})};return{loadAssets:P,restoreAsset:function(e){var t,n=null!==(t=null==i?void 0:i.findIndex((function(t){return t.identifier===e})))&&void 0!==t?t:-1;if(!(n<0)){var r=_.current.find((function(t){return t.identifier===e}));if(r){var o=L(i);o[n]=r,C.current&&(w.current=o),_.current=_.current.filter((function(t){return t.identifier!==e})),a(o)}}},assets:i,hasMoreAssetsToLoad:l,uploadAssets:I,updateAssetBinary:M,clearAssets:function(){a([]),A(0),c(!1)},uploadInProgress:d,totalAssetsCount:h,removeAsset:function(e){var t,n=null!==(t=null==i?void 0:i.findIndex((function(t){return t.identifier===e.identifier})))&&void 0!==t?t:-1;if(n>=0){var r=L(i);r.splice(n,1),C.current&&(w.current=r),a(r)}}}}(c,d,e),x=C.loadAssets,y=C.restoreAsset,w=C.assets,_=C.hasMoreAssetsToLoad,O=C.clearAssets,S=C.uploadAssets,T=C.updateAssetBinary,D=C.uploadInProgress,B=C.totalAssetsCount,k=C.removeAsset,P=function(e){var t=g(r.default.useState([]),2),n=t[0],o=t[1],i=j().executeCommand,a=go().executeCommand,s=function(){var t=p(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n="LoadAssetLibraries",!e){t.next=3;break}return t.abrupt("return",a(e,n));case 3:return t.abrupt("return",i(n));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=function(){var e=p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:if(null!=(t=e.sent)&&t.libraries){e.next=5;break}return e.abrupt("return",[]);case 5:return o(t.libraries),e.abrupt("return",t.libraries);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{loadLibraries:l,libraries:n}}(e),E=P.libraries,I=P.loadLibraries,M=function(){var e=p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c.current<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,A(c.current,d.current);case 4:return t=e.sent,t.some((function(e){return e.path===d.current}))||W(""),e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=p(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c.current<=0)){e.next=2;break}return e.abrupt("return");case 2:return 0===l.current&&O(),e.next=5,x(c.current,d.current,l.current,50,t);case 5:n=e.sent,l.current===n&&(l.current+=1);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=p(v().mark((function e(t,n){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c.current<=0)){e.next=2;break}return e.abrupt("return");case 2:h(c.current,t,n);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),F=function(){var e=p(v().mark((function e(t,n){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c.current<=0)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,S(c.current,d.current,t,n);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),z=function(){var e=p(v().mark((function e(t,n){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c.current<=0)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,T(c.current,d.current,t,n);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),W=function(e){s(e),l.current=0,d.current=e};return{libraries:E,folders:m,assets:w,hasMoreAssetsToLoad:_,loadLibraries:I,loadFolders:M,loadAssets:N,restoreAsset:y,toggleFolder:R,uploadAssets:F,updateAssetBinary:z,removeAsset:k,setSelectedLibraryIdentifier:function(e){c.current=e,l.current=0,o(e)},setSelectedFolderPath:W,selectedLibraryIdentifier:n,selectedFolderPath:a,uploadInProgress:D,totalAssetsCount:B,resetData:function(){b(),O(),s(""),o(0),l.current=0}}};function Gn(){return Gn=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},Gn.apply(this,arguments)}var qn=function(e){var t=(0,r.useRef)(e);return t.current=e,t},Qn=function(e){var t=void 0===e?{}:e,n=t.root,o=t.rootMargin,i=t.threshold,a=void 0===i?0:i,s=t.trackVisibility,l=t.delay,c=t.unobserveOnEnter,u=t.onChange,d=t.onEnter,p=t.onLeave,f=(0,r.useState)({inView:!1,scrollDirection:{}}),m=f[0],g=f[1],h=(0,r.useRef)(!1),A=(0,r.useRef)({}),v=(0,r.useRef)(),b=(0,r.useRef)(!1),C=qn(u),x=qn(d),y=qn(p),w=(0,r.useRef)(),_=(0,r.useCallback)((function(){v.current&&(v.current.disconnect(),A.current={})}),[]),O=(0,r.useCallback)((function(e){e&&e!==w.current&&(_(),w.current=e),v.current&&w.current&&v.current.observe(w.current)}),[_]),S=(0,r.useCallback)((function(){if(w.current){var e=w.current.getBoundingClientRect(),t=e.x,n=e.y;A.current={x:t,y:n}}}),[w]);return(0,r.useEffect)((function(){if(!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window))return console.error("💡 react-cool-inview: the browser doesn't support Intersection Observer, please install polyfill: https://github.com/wellyshen/react-cool-inview#intersection-observer-polyfill"),function(){return null};var e=!0;return v.current=new IntersectionObserver((function(t){var n=t[0],r=n.intersectionRatio,o=n.isIntersecting,i=n.boundingClientRect,l=i.x,u=i.y,d=n.isVisible,p={},f=Array.isArray(a)?Math.min.apply(Math,a):a,m=void 0!==o?o:r>0;m=f>0?r>=f:m,l<A.current.x&&(p.horizontal="left"),l>A.current.x&&(p.horizontal="right"),A.current.x=l,u<A.current.y&&(p.vertical="up"),u>A.current.y&&(p.vertical="down"),A.current.y=u;var v={entry:n,scrollDirection:p,observe:O,unobserve:_};s&&(void 0!==d||b.current||(console.warn("💡 react-cool-inview: the browser doesn't support Intersection Observer v2, fallback to v1 behavior"),b.current=!0),void 0!==d&&(m=d)),m&&!h.current&&(c&&_(),x.current&&x.current(v)),!m&&h.current&&y.current&&y.current(v),C.current&&C.current(Gn({},v,{inView:m})),e&&g({inView:m,scrollDirection:p,entry:n}),h.current=m}),{root:n,rootMargin:o,threshold:a,trackVisibility:s,delay:l}),O(),function(){e=!1,_()}}),[c,n,o,JSON.stringify(a),s,l,O,_]),Gn({},m,{observe:O,unobserve:_,updatePosition:S})},Xn=function(e,t){var n,o=(0,r.useRef)(0),a="0px 0px ".concat(60*parseInt(i.Dimensions.GridUnit,10),"px 0px"),s=Qn({root:e.current,rootMargin:a,onEnter:(n=p(v().mark((function n(r){var i,s,l;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r.unobserve,s=r.observe,l=r.entry,clearTimeout(o.current),i(),n.next=5,t();case 5:s(),o.current=window.setTimeout((function(){var n=new IntersectionObserver(function(){var e=p(v().mark((function e(n,r){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.disconnect(),!n[0].isIntersecting){e.next=4;break}return e.next=4,t();case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{root:e.current,rootMargin:a});n.observe(l.target)}),1500);case 7:case"end":return n.stop()}}),n)}))),function(e){return n.apply(this,arguments)})});return{observe:s.observe}};function Kn(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function Jn(e){void 0===e&&(e={});var t=e.onResize,n=(0,r.useRef)(void 0);n.current=t;var o=e.round||Math.round,i=(0,r.useRef)(),a=(0,r.useState)({width:void 0,height:void 0}),s=a[0],l=a[1],c=(0,r.useRef)(!1);(0,r.useEffect)((function(){return c.current=!1,function(){c.current=!0}}),[]);var u=(0,r.useRef)({width:void 0,height:void 0}),d=function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(null);o.current=t;var i=(0,r.useRef)(null);(0,r.useEffect)((function(){a()}));var a=(0,r.useCallback)((function(){var t=i.current,r=o.current,a=t||(r?r instanceof Element?r:r.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(0,r.useEffect)((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),(0,r.useCallback)((function(e){i.current=e,a()}),[a])}((0,r.useCallback)((function(t){return i.current&&i.current.box===e.box&&i.current.round===o||(i.current={box:e.box,round:o,instance:new ResizeObserver((function(t){var r=t[0],i="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=Kn(r,i,"inlineSize"),s=Kn(r,i,"blockSize"),d=a?o(a):void 0,p=s?o(s):void 0;if(u.current.width!==d||u.current.height!==p){var f={width:d,height:p};u.current.width=d,u.current.height=p,n.current?n.current(f):c.current||l(f)}}))}),i.current.instance.observe(t,{box:e.box}),function(){i.current&&i.current.instance.unobserve(t)}}),[e.box,o]),e.ref);return(0,r.useMemo)((function(){return{ref:d,width:s.width,height:s.height}}),[d,s.width,s.height])}var $n=function(e,t){var n=g((0,r.useState)(),2),o=n[0],a=n[1],s=Jn({ref:e}).width,l=(0,r.useCallback)((function(){if(!s)return 2;var e=parseInt(i.Spacing.L,10),n=Math.ceil((s+e)/(t+e));return n<2?2:n}),[t,s]);return(0,r.useEffect)((function(){a(l())}),[a,l]),o};function er(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 tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nr=function(e){var t=g((0,r.useState)({assetPanelEnabled:!1,imageExtensions:""}),2),n=t[0],o=t[1],i=go().executeCommand,a=(0,r.useCallback)(p(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"GetAssetPluginButtonStatus",t.next=3,i(e,"GetAssetPluginButtonStatus");case 3:if(n=t.sent){t.next=6;break}return t.abrupt("return");case 6:o({assetPanelEnabled:n.enabled,imageExtensions:n.imageExtensions});case 7:case"end":return t.stop()}}),t)}))),[]);return(0,r.useEffect)((function(){a()}),[a]),tr(tr({},n),{},{onLibrariesLoad:function(e){o((function(t){var n;return tr(tr({},t),{},{assetPanelEnabled:(null!==(n=null==e?void 0:e.length)&&void 0!==n?n:0)>0})}))}})},rr=s(9939),or={};or.styleTagTransform=wn(),or.setAttributes=bn(),or.insert=An().bind(null,"head"),or.domAPI=gn(),or.insertStyleElement=xn();fn()(rr.Z,or);const ir=rr.Z&&rr.Z.locals?rr.Z.locals:void 0;function ar(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 sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lr=function(e){var t,n,o=e.assets,a=e.selectedAssetIdentifiers,s=e.folders,l=e.rootFolderPath,c=e.selectedFolderPath,u=e.libraries,d=e.assetsTotalCount,p=e.hasMoreAssetsToLoad,f=e.onSelectionChange,m=e.onFolderToggle,g=e.onFolderClick,h=e.onUpload,A=e.onErrorClose,v=e.onLibraryChange,b=e.onLoadNextPage,C=e.uploadInProgress,x=e.selectedLibraryIdentifier,y=e.acceptFiles,O=w().localization,S=(0,r.useContext)(it),j=(0,r.useRef)(null),T=(0,i.useSidePanel)().getCurrentSidePanelRef,D=Xn(null!==(t=T())&&void 0!==t?t:j,b).observe,B=(0,r.useRef)(null),k=$n(B,parseInt(jn.SelectableTileMaxWidth)),P=function(){return u&&u.length>1},E=Kt()(P()?ir.contentPanel:ir.contentPanelWithoutSelector);return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(i.Box,{className:ir.assetPanelContent,children:[(0,_.jsx)(i.Row,{wrap:i.RowWrap.NoWrap,children:P()&&(0,_.jsx)(i.Column,{width:34,children:(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,_.jsx)(i.Select,{value:x.toString(),onChange:function(e){return function(e){e&&Number(e)!==x&&v(Number(e))}(e)},dataTestId:"select-library",children:u.map((function(e){return(0,_.jsx)(i.MenuItem,{primaryLabel:e.name,value:e.identifier.toString(),dataTestId:"select-library-item"},e.identifier)}))})})})}),(0,_.jsxs)(i.Row,{wrap:i.RowWrap.NoWrap,className:E,spacingX:i.Spacing.L,children:[(0,_.jsx)(i.Column,{width:34,children:(0,_.jsx)("div",{className:ir.treeView,children:(0,_.jsx)(Jt,{nodes:s,rootPath:l,onNodeClick:g,selectedPath:c,onNodeToggle:m})})}),(0,_.jsxs)(i.Column,{className:ir.content,children:[(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,_.jsx)("span",{className:ir.assetsCount,children:(n=a.length,n>0?"".concat(n," ").concat(O.admin.base.assetPanelContent.fileCounter.selected):"".concat(d," ").concat(O.admin.base.assetPanelContent.fileCounter.default))})}),(0,_.jsxs)("div",{ref:j,className:ir.gridWrapper,children:[(0,_.jsxs)(i.Grid,{cols:k,ref:B,rowGap:i.Spacing.L,columnGap:i.Spacing.L,className:ir.grid,dataTestId:"asset-grid",children:[(0,_.jsx)(i.UploadTile,{disabled:C,inactiveMessage:O.admin.base.assetUploadTile.inactiveMessage,onUpload:h,firstLineLabel:O.admin.base.assetUploadTile.firstLine,secondLineLabel:O.admin.base.assetUploadTile.secondLine,buttonLabel:O.admin.base.assetUploadTile.buttonLabel,size:i.UploadTileSize.Compact,acceptFiles:y}),!o||0===o.length&&(0,_.jsx)(Tn,{}),o&&o.map((function(e){var t=sr(sr({},e),{},{errorState:e.errorMessage?{errorMessage:e.errorMessage,onErrorClose:function(){return A(e)}}:void 0,uploadState:e.isPlaceholder?{uploadProgress:e.uploadProgress}:void 0,isSelected:a.indexOf(e.identifier)>=0,url:e.isImage?e.urlPath.path:void 0,disabled:!1,dimensions:e.isImage?e.dimensions:void 0,onChange:function(t){return function(e,t){f&&f(e,t)}(t,e)},dataTestId:"asset-tile"});return void 0!==S.dragDropManager?(0,_.jsx)(dn,sr({asset:e},t),e.identifier):(0,_.jsx)(i.AssetTileSelectable,sr({},t),e.identifier)}))]}),p&&(0,_.jsx)(Pn,{observerRef:D})]})]})]})]})})},cr=s(3828),ur={};ur.styleTagTransform=wn(),ur.setAttributes=bn(),ur.insert=An().bind(null,"head"),ur.domAPI=gn(),ur.insertStyleElement=xn();fn()(cr.Z,ur);const dr=cr.Z&&cr.Z.locals?cr.Z.locals:void 0;var pr=["visible","onLibrariesLoad","onSelectAssets","fieldInfo","allowedExtensions","actionButtonLabel","headline","shiftRight","preselectedAsset","onPanelClosed"],fr=function(e){var t=e.visible,n=e.onLibrariesLoad,o=e.onSelectAssets,a=e.fieldInfo,s=e.allowedExtensions,l=e.actionButtonLabel,c=e.headline,u=e.shiftRight,d=e.preselectedAsset,f=e.onPanelClosed,m=h(e,pr),A=document.getElementById("sidePanelPlaceholder"),b=g((0,r.useState)(null!=u&&u),2),C=b[0],x=b[1],y=g((0,r.useState)([]),2),O=y[0],S=y[1],j=g((0,r.useState)(!1),2),T=j[0],D=j[1],B=Un(a),k=B.libraries,P=B.folders,E=B.assets,I=B.hasMoreAssetsToLoad,M=B.loadLibraries,L=B.loadFolders,N=B.loadAssets,R=B.toggleFolder,F=B.uploadAssets,z=B.setSelectedLibraryIdentifier,W=B.setSelectedFolderPath,H=B.selectedLibraryIdentifier,V=B.selectedFolderPath,Y=B.uploadInProgress,Z=B.totalAssetsCount,U=B.removeAsset,G=B.resetData,q="kxp.assetPanel.folderPath",Q="kxp.assetPanel.libraryIdentifier",X=w().localization;(0,r.useEffect)((function(){x(null!=u&&u)}),[u]);var K=(0,r.useCallback)((function(e){W(e),localStorage.setItem(q,e)}),[W]),J=(0,r.useCallback)((function(e){z(e),localStorage.setItem(Q,e.toString())}),[z]),$=(0,r.useCallback)((function(e){J(e.libraryIdentifier),K(e.folderPath),S([e])}),[K,J]),ee=(0,r.useCallback)(function(){var e=p(v().mark((function e(t){var r,o,i,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:if(r=e.sent,n(r),!(r.length<=0)){e.next=7;break}return z(0),e.abrupt("return");case 7:return t?$(t):(i=te(r),J(i),a=null!==(o=localStorage.getItem(q))&&void 0!==o?o:"",K(a)),e.next=10,L();case 10:return e.next=12,N(s);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[s,N,L,M,n,$,K,J,z]);(0,r.useEffect)((function(){var e=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ee(d);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t&&e()}),[t,d]);var te=function(e){var t=Number(localStorage.getItem(Q));return e.some((function(e){return e.identifier===t}))?t:e[0].identifier},ne=function(){D(!1),G(),S([]),null==f||f()},re=(0,_.jsx)(i.Button,{label:null!=l?l:X.admin.base.assetPanel.actionButtonLabel,color:i.ButtonColor.Primary,onClick:function(){null==o||o(O),ne()},disabled:!T,dataTestId:"confirm-action"}),oe=(0,_.jsx)(i.Button,{label:X.admin.base.assetPanel.cancelButtonLabel,color:i.ButtonColor.Secondary,onClick:ne,dataTestId:"cancel-action"}),ie=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:N(s);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ae=Kt()(C&&dr.slidToRight);return(0,_.jsx)(Rg,{container:A,children:(0,_.jsxs)(i.SidePanel,{headline:null!=c?c:X.admin.base.assetPanel.headline,size:i.SidePanelSize.Full,isVisible:t,onCloseClick:ne,footer:(0,_.jsxs)(_.Fragment,{children:[oe,re]}),className:ae,dataTestId:"asset-panel",children:[m.enabled&&H>0&&(0,_.jsx)(lr,{assets:E,hasMoreAssetsToLoad:I,folders:P,rootFolderPath:"",selectedFolderPath:V,selectedAssetIdentifiers:null==O?void 0:O.map((function(e){return e.identifier})),uploadInProgress:Y,assetsTotalCount:Z,onFolderToggle:function(e,t){return R(e,t)},onFolderClick:function(e){K(e.path),N(s)},onLoadNextPage:ie,onSelectionChange:function(e,t){var n=e?[t]:[];D(n.length>0),S(n)},onUpload:function(e){return F(e,s)},onErrorClose:U,selectedLibraryIdentifier:H,libraries:k,onLibraryChange:function(e){J(e),K(""),L(),N(s)},acceptFiles:function(){if(s){for(var e=s.split(";"),t=0;t<e.length;t++)e[t]=".".concat(e[t]);return e.join(",")}}()}),!m.enabled&&(0,_.jsx)(Ng,{title:m.disabledLabel})]})})},mr=function(e){return e?"xp-i-circle":void 0},gr=s(2560),hr={};hr.styleTagTransform=wn(),hr.setAttributes=bn(),hr.insert=An().bind(null,"head"),hr.domAPI=gn(),hr.insertStyleElement=xn();fn()(gr.Z,hr);const Ar=gr.Z&&gr.Z.locals?gr.Z.locals:void 0;var vr=function(){var e=w().localization;return(0,_.jsx)("div",{className:Ar.dropTileWrapper,children:(0,_.jsx)("div",{className:Ar.dropTile,children:(0,_.jsx)("div",{className:Ar.dropTileText,children:e.admin.base.formComponent.assetSelector.dropTileText})})})},br=s(5307),Cr={};Cr.styleTagTransform=wn(),Cr.setAttributes=bn(),Cr.insert=An().bind(null,"head"),Cr.domAPI=gn(),Cr.insertStyleElement=xn();fn()(br.Z,Cr);const xr=br.Z&&br.Z.locals?br.Z.locals:void 0;function yr(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 wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _r,Or=function(e){return(0,_.jsx)(ct,{backend:Qt,context:window,children:(0,_.jsx)(Sr,wr({},e))})},Sr=function(e){var t,n=g((0,r.useState)({assets:e.assets,disabled:null!==(t=e.disabled)&&void 0!==t&&t,libraryExists:!0}),2),o=n[0],a=n[1];(0,r.useEffect)((function(){a((function(t){var n;return wr(wr({},t),{},{assets:e.assets,disabled:null!==(n=e.disabled)&&void 0!==n&&n})}))}),[a,e.assets,e.disabled]);var s=g((0,r.useState)(!1),2),l=s[0],c=s[1],u=g(r.default.useState(),2),d=u[0],f=u[1],m=r.default.useRef(null),h=$n(m,parseInt(jn.PreviewTileMaxWidth)),A=w().localization,b=g(Tt((function(){return{accept:"Asset",drop:function(e){return T([e])},canDrop:function(e){return!(t=e).hasError&&void 0===t.uploadProgress;var t},collect:function(e){return{isOver:e.isOver(),canDrop:e.canDrop()}}}}),[o.assets]),2),C=b[0],x=C.isOver,y=C.canDrop,O=b[1];(0,r.useEffect)((function(){a((function(t){var n;return wr(wr({},t),{},{disabled:null!==(n=e.disabled)&&void 0!==n&&n})}))}),[e.disabled]);var S=Kt()(xr.assetSelectorWrapper,y&&xr.dropZone,e.disabled&&xr.disabled,e.invalid&&xr.invalid),j=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f(t),c(!0);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(e){var t=[].concat(L(e),L(o.assets));k(t)},D=function(e,t){if(o.assets.length>0){var n=L(o.assets),r=n.indexOf(e);n.splice.apply(n,[r,1].concat(L(t))),k(n)}},B=function(e){D(e,[])},k=function(t){a((function(e){return wr(wr({},e),{},{assets:t})})),e.onChange&&e.onChange(t)},P=function(e){if(e.errorMessage)return{errorMessage:e.errorMessage,onErrorClose:function(){B(e)}}};return(0,_.jsx)(i.FormItemWrapper,{ref:O,label:e.label,statusText:e.statusText,explanationText:e.explanationText,validationMessage:e.validationMessage,invalid:e.invalid,disabled:e.disabled,markAsRequired:e.required,labelIconTooltip:e.tooltip,labelIcon:mr(e.tooltip),tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,dataTestId:"asset-selector",children:(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:S,children:[(0,_.jsxs)(i.Box,{className:xr.description,spacing:i.Spacing.L,children:[A.admin.base.formComponent.assetSelector.selectAssets,(0,_.jsx)("div",{className:xr.assetSourceButton,children:(0,_.jsx)(i.Button,{label:A.admin.base.formComponent.assetSelector.library,size:i.ButtonSize.S,onClick:function(){c(!0)},disabled:o.disabled,dataTestId:"button-media-library"})})]}),x&&(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,_.jsx)(vr,{})}),(0,_.jsx)("div",{ref:m,children:o.assets.length>0&&(0,_.jsx)(i.Box,{spacingX:i.Spacing.L,spacingBottom:i.Spacing.L,children:(0,_.jsx)(i.Grid,{cols:h,columnGap:i.Spacing.L,rowGap:i.Spacing.L,dataTestId:"asset-grid",children:o.assets.map((function(t,n){return(0,_.jsx)(i.AssetTilePreview,{name:t.name,disabled:!!e.disabled,dimensions:t.isImage?t.dimensions:void 0,size:t.size,url:t.isImage?t.urlPath.path:void 0,errorState:P(t),actions:e.disabled?[]:[{icon:"xp-bin",onClick:function(){return function(e){B(e)}(t)}}],onClick:e.disabled?void 0:function(){return j(t)}},n)}))})})}),(0,_.jsx)(fr,{visible:l,enabled:o.libraryExists&&!o.disabled,disabledLabel:o.libraryExists?"":A.admin.base.assetPanel.noExistingLibrary,onSelectAssets:function(e){d?(D(d,e),f(void 0)):T(e)},onLibrariesLoad:function(e){var t,n=(null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0)>0;a((function(e){return wr(wr({},e),{},{libraryExists:n})}))},fieldInfo:{name:e.name,fieldValues:e.fieldValues},allowedExtensions:e.allowedExtensions,onPanelClosed:function(){c(!1),f(void 0)},shiftRight:y,preselectedAsset:d})]})})})},jr=function(e){return(0,_.jsx)(i.Checkbox,{name:e.name,label:e.label,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},checked:e.value,disabled:e.disabled,invalid:e.invalid,validationMessage:e.validationMessage,markAsRequired:e.required,inactiveMessage:e.inactiveMessage,labelIcon:mr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml})};!function(e){e.All="All",e.Any="Any"}(_r||(_r={}));var Tr=function(e,t){return e===_r.All?t.admin.base.conditionBuilder.and:t.admin.base.conditionBuilder.or},Dr=function(e){var t={},n=-1;return e.forEach((function(e,r){t[r.toString()]=e,n=r})),{mappedResult:t,lastUsedIndex:n}},Br=function(e,t){return e===_r.All?t.admin.base.conditionBuilder.overview.all:t.admin.base.conditionBuilder.overview.any},kr=function(e,t){var n=t.find((function(t){return t.macroRuleName.toLocaleLowerCase()===e.toLocaleLowerCase()}));if(!n)throw new Error("Could not find macro rule configuration: ".concat(e));return n},Pr=function(e){return void 0!==e.properties},Er=function(e){var t={};return e.parameters.forEach((function(e){Pr(e)&&(t[e.properties.name]=e.properties.value)})),t},Ir=function(e){var t=e.groups.map((function(e){return{operator:e.operator,items:e.items.map((function(e){var t;return{macroRuleName:(null===(t=e.macroRule)||void 0===t?void 0:t.macroRuleName)||"",value:Er(e.macroRule)}}))}}));return{operator:e.operator,groups:t}},Mr=function(e){return void 0!==e.value},Lr="ConditionParametersForm";function Nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rr(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,c(r.key),r)}}function Fr(e,t,n){return t&&Rr(e.prototype,t),n&&Rr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wr(e,t){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wr(e,t)}function Hr(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&&Wr(e,t)}function Vr(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zr(e)}function Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yr(e)}function Zr(e){var t=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}}();return function(){var n,r=Yr(e);if(t){var o=Yr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vr(this,n)}}var Ur=function(e){Hr(n,e);var t=Zr(n);function n(){var e;Nr(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return u(zr(e=t.call.apply(t,[this].concat(o))),"state",{hasError:!1,error:null}),e}return Fr(n,[{key:"componentDidCatch",value:function(e,t){console.error("Uncaught error:",e,t)}},{key:"componentDidUpdate",value:function(e,t){t.hasError&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))}(e.dependencies,this.props.dependencies)&&this.setState({hasError:!1,error:null})}},{key:"render",value:function(){return this.state.hasError?(0,_.jsx)(_.Fragment,{children:this.props.fallback(this.state.error)}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(r.default.Component),Gr=function(e){return(0,_.jsx)("span",{children:e.parameter.value})};Gr.displayName="ParameterText";var qr=function(e){return(0,_.jsx)("b",{children:e.value})};qr.displayName="ParameterSimpleOverview";var Qr=function(e,t){return System.import(e).then((function(e){return{default:t in e?e[t]:qr}})).catch((function(){return{default:qr}}))},Xr=["macroRule"];function Kr(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 Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $r=function(e){var t=e.macroRule,n=h(e,Xr),o=(0,r.useMemo)((function(){return Er(t)}),[t]),i=E("".concat(n.componentName,"ParameterOverview"),Qr);return(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(Dg,{}),children:i&&(0,_.jsx)(i,Jr(Jr({},n),{},{fieldValues:o}))})},eo=function(e){var t=e.errorMessage,n=g((0,r.useState)(!0),2),o=n[0],a=n[1];return o?(0,_.jsx)(i.NotificationBarAlert,{onDismiss:function(){return a(!1)},children:t}):null},to=s(6123),no={};no.styleTagTransform=wn(),no.setAttributes=bn(),no.insert=An().bind(null,"head"),no.domAPI=gn(),no.insertStyleElement=xn();fn()(to.Z,no);const ro=to.Z&&to.Z.locals?to.Z.locals:void 0;function oo(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 io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ao=function(e){var t=e.data,n=w().localization,o=t.operator||_r.All;return(0,_.jsx)(Ur,{fallback:function(){return(0,_.jsx)(eo,{errorMessage:n.admin.base.conditionBuilder.overview.loaderError})},children:(0,_.jsxs)("div",{className:ro.container,children:[0===t.groups.length&&(0,_.jsx)("div",{className:ro.emptyCondition,children:n.admin.base.conditionBuilder.overview.emptyCondition}),t.groups.length>0&&(0,_.jsxs)("div",{className:ro.headline,children:[n.admin.base.conditionBuilder.overview.headlineBeforeOperator,(0,_.jsx)("b",{className:ro.headlineOperator,children:Br(o,n).toUpperCase()}),n.admin.base.conditionBuilder.overview.headlineAfterOperator]}),t.groups.map((function(e,a){return(0,_.jsxs)(r.default.Fragment,{children:[(0,_.jsx)(i.ConditionGroupOverview,{children:e.items.map((function(t,o){var a;return(0,_.jsxs)(r.default.Fragment,{children:[(0,_.jsx)(uo.Provider,{value:{name:"".concat(Lr,":").concat(t.macroRule.macroRuleName),preventNesting:!0},children:(0,_.jsx)("span",{children:null===(a=t.macroRule)||void 0===a?void 0:a.parameters.map((function(e,n){return(0,_.jsxs)(r.default.Fragment,{children:[n>0&&" ",Pr(e)&&(0,_.jsx)($r,io(io({},e.properties),{},{macroRule:t.macroRule})),Mr(e)&&(0,_.jsx)(Gr,{parameter:e})]},n)}))})}),o+1<e.items.length&&(0,_.jsx)(i.ConditionOperatorOverview,{operator:Tr(e.operator||_r.All,n),type:i.ConditionOperatorOverviewType.ConditionSeparator})]},o)}))}),a+1<t.groups.length&&(0,_.jsx)(i.ConditionOperatorOverview,{operator:Tr(o,n),type:i.ConditionOperatorOverviewType.GroupSeparator})]},a)}))]})})};ao.displayName="ConditionBuilderOverview";var so=function(e){return(0,_.jsx)("b",{children:void 0===e.value||null===e.value?"?":e.value.toString()})};so.displayName="NumberInputParameterOverview";var lo=function(e){var t,n=null,r=null===(t=e.options)||void 0===t?void 0:t.find((function(t){return t.value===e.value}));return(n=r?r.text:e.value)?(0,_.jsx)("b",{children:n}):null};lo.displayName="DropDownSelectorParameterOverview";var co,uo=r.default.createContext({name:"DefaultForm",dataChanged:!1,preventNesting:!0});uo.displayName="FormContext",function(e){e.Error="error",e.ValidationFailure="validationFailure",e.ValidationSuccess="validationSuccess"}(co||(co={}));var po="ComponentCommand",fo=function(e,t,n,r,o){for(var i=r.parentContext,a={formName:e,fieldValues:t.fieldValues,fieldName:t.name,commandName:n,commandData:JSON.stringify(o)};(null==r||!r.preventNesting)&&null!==(s=i)&&void 0!==s&&s.parentContext;){var s;a={formName:e,fieldValues:i.fieldInfo.fieldValues,fieldName:i.fieldInfo.name,commandName:po,commandData:JSON.stringify(a)},i=i.parentContext}return a},mo=function(e,t,n,o){var i=(0,r.useContext)(uo).name,a=(0,r.useContext)(Po),s=cf(po,{data:fo(i,e,t,a,null==n?void 0:n.data),executeOnMount:null==n?void 0:n.executeOnMount,before:null==n?void 0:n.before,after:function(e){var t;null==n||null===(t=n.after)||void 0===t||t.call(n,e)}},o);return{execute:function(n,r,o){var l=fo(i,e,t,a,n);return s.execute(l,r,o)}}},go=function(){var e=j().executeCommand,t=(0,r.useContext)(uo),n=(0,r.useContext)(Po),o=(0,r.useCallback)(function(){var r=p(v().mark((function r(o,i,a,s,l){var c;return v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=fo(t.name,o,i,n,a),r.abrupt("return",e(po,c,s,l));case 2:case"end":return r.stop()}}),r)})));return function(e,t,n,o,i){return r.apply(this,arguments)}}(),[t.name,e,n]);return{executeCommand:o}};function ho(e){var t=g((0,r.useState)(null),2),n=t[0],o=t[1];return(0,r.useEffect)((function(){return P(e).then((function(e){var t=e.default;o((function(){return t}))})),function(){}}),[e]),n}var Ao=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=(0,i.useWindowDimensions)(),r=n.width,o=n.height;return r<e||o<t},vo=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return null!==(t=null==e?void 0:e.replace(/{([0-9]+)}/g,(function(e,t){return void 0===r[t]?e:"".concat(r[t])})))&&void 0!==t?t:null},bo=function(e,t,n){var o=g((0,r.useState)(""),2),i=o[0],a=o[1];return(0,r.useEffect)((function(){if(0!==e&&1!==e){var r=0===t?vo(n.statusTextMultiple,e):vo(1===t?n.statusTextSingleWithCurrentCount:n.statusTextMultipleWithCurrentCount,t,e);r&&a(r)}}),[e,t,n]),i},Co="LoadSelectedObjects",xo=function(e,t){var n=go().executeCommand,o=I(e,t),i=(0,r.useCallback)(function(){var e=p(v().mark((function e(t){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(o,Co,{selectedIdentifiers:t});case 2:return r=e.sent,e.abrupt("return",null==r?void 0:r.objects);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,o]);return{loadSelectedOptions:i}},yo=function(e){var t=g((0,r.useState)(),2),n=t[0],o=t[1],i=xo(e.name,e.fieldValues).loadSelectedOptions,a=(0,r.useCallback)(function(){var e=p(v().mark((function e(t){var n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(t);case 2:n=e.sent,r=null==n?void 0:n.map((function(e){return e.text})),o(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,i]);(0,r.useEffect)((function(){a(e.value)}),[a,e.value]);var s="";return s=n?n.join(", "):e.value,(0,_.jsx)("b",{children:s})};function wo(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}yo.displayName="ObjectSelectorParameterOverview";var _o=function(e){return(0,_.jsx)(yo,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))};function Oo(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function So(){return So=Object.assign?Object.assign.bind():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},So.apply(this,arguments)}function jo(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 To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}_o.displayName="ObjectCodeNameSelectorParameterOverview";var Do="FormComponent",Bo=function(e){var t=E("".concat(e.componentName).concat(Do));return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(Dg,{}),children:t&&(0,_.jsx)(t,To({},e))})})},ko=function(e){var t=ho(e.ruleName),n=g((0,r.useState)({isValid:!0,errorMessage:null,hasChanged:!1}),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){if(e.allowRevalidate&&t&&void 0!==e.value){var n=t(e,e.value,e.fieldValues);n.hasChanged=(a=n,(r=o).isValid!==a.isValid||r.errorMessage!==a.errorMessage),i(n),e.onValidated(n)}var r,a}),[e,t]),null},Po=r.default.createContext({fieldInfo:{name:"DefaultFormField",fieldValues:{}},parentContext:void 0,preventNesting:!0});function Eo(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 Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eo(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Po.displayName="FormFieldContext";var Mo=function(e){var t=So({},(Oo(e),e)),n=g((0,r.useState)({}),2),o=n[0],i=n[1],a=g((0,r.useState)(!1),2),s=a[0],l=a[1],c=g((0,r.useState)([]),2),d=c[0],p=c[1],f=g((0,r.useState)({}),2),m=f[0],h=f[1],A=(0,r.useRef)(!1),v=(0,r.useContext)(uo),b=(0,r.useContext)(Po),C=I(t.name,t.fieldValues);(0,r.useEffect)((function(){v.dataChanged||l(!1)}),[v.dataChanged]),(0,r.useEffect)((function(){var e,n=[];null===(e=t.validationRules)||void 0===e||e.forEach((function(e){e.isValid||n.push(e)})),p(n)}),[t.validationRules]),(0,r.useEffect)((function(){var e,n=[];s&&(null===(e=t.validationRules)||void 0===e||e.forEach((function(e,t){var r=o[t]||null;null===r||r.isValid||n.push(r)})),t.onValidated&&t.onValidated(n));p(n)}),[o]);var x=d.length>0?d[0].errorMessage:null,y=g((0,r.useState)({fieldInfo:C,parentContext:b,preventNesting:v.preventNesting}),2),w=y[0],O=y[1];return(0,r.useEffect)((function(){O({fieldInfo:C,parentContext:b,preventNesting:v.preventNesting})}),[C,b,v.preventNesting]),(0,_.jsx)(Po.Provider,{value:w,children:(0,_.jsxs)("div",{className:t.fieldCssClass,children:[t.validationRules?t.validationRules.map((function(e,n){return(0,_.jsx)(ko,Io(Io({},e),{},{fieldValues:t.fieldValues,value:t.value,allowRevalidate:s,onValidated:function(e){return function(e,n){if(n.isValid&&s&&A.current&&!m[e]){var r,o=Io(Io({},m),{},u({},e,n));Object.keys(o).length===(null===(r=t.validationRules)||void 0===r?void 0:r.length)&&t.onValidChange&&t.onValidChange(),h(o)}n.hasChanged&&i((function(t){return Io(Io({},t),{},u({},e,n))}))}(n,e)}}),n)})):null,(0,_.jsx)(Bo,Io(Io({},t),{},{invalid:d.length>0,validationMessage:x||void 0,onChange:function(e){var n;l(!0),A.current=!0,h({}),t.onChange&&t.onChange(e),null!==(n=t.validationRules)&&void 0!==n&&n.length||t.onValidChange&&t.onValidChange()}}))]})})},Lo=["value","label","disabled","placeholder","name","invalid","required","inactiveMessage","tooltip","explanationText","validationMessage","options","maxContentHeight","onChange"],No=function(e){var t=e.value,n=e.label,r=e.disabled,o=e.placeholder,a=e.name,s=e.invalid,l=e.required,c=e.inactiveMessage,u=e.tooltip,d=e.explanationText,p=e.validationMessage,f=e.options,m=e.maxContentHeight,g=e.onChange,A=h(e,Lo),v=w().localization;return(0,_.jsx)(i.Select,{value:null!=t?t:void 0,dataTestId:a,label:n,onChange:function(e){return null==g?void 0:g(e)},disabled:r,placeholder:o,name:a,invalid:s,markAsRequired:l,inactiveMessage:c,labelIcon:mr(u),labelIconTooltip:u,explanationText:d,maxContentHeight:m,validationMessage:p,clearable:!l,clearButtonTooltip:v.admin.base.formComponent.dropDown.clearSelection,tooltipAsHtml:A.tooltipAsHtml,explanationTextAsHtml:A.explanationTextAsHtml,children:null==f?void 0:f.map((function(e,t){return(0,_.jsx)(i.MenuItem,{primaryLabel:e.text,value:e.value},t)}))})};No.displayName="DropDownSelectorFormComponent";var Ro=s(587),Fo={};Fo.styleTagTransform=wn(),Fo.setAttributes=bn(),Fo.insert=An().bind(null,"head"),Fo.domAPI=gn(),Fo.insertStyleElement=xn();fn()(Ro.Z,Fo);const zo=Ro.Z&&Ro.Z.locals?Ro.Z.locals:void 0;var Wo=["onChange","onDelete","initialParametersValue","macroRule"];function Ho(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 Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yo=function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.onDelete,a=void 0===o?function(){}:o,s=e.initialParametersValue,l=e.macroRule,c=h(e,Wo),d=g((0,r.useState)((function(){return Er(l)})),2),p=d[0],f=d[1],m=w().localization;(0,r.useEffect)((function(){var e,t,n=[];l.parameters.forEach((function(e){if(!Mr(e)){var t=e;n.push(t.properties)}})),f((e=s,t={},n.forEach((function(n){return t[n.name]=void 0===e[n.name]?n.value:e[n.name]})),t))}),[s,l.parameters,l]);var A=function(e,t){var r=Vo(Vo({},p),{},u({},e,t));f(r),n(r)};return(0,_.jsx)(uo.Provider,{value:{name:"".concat(Lr,":").concat(l.macroRuleName),preventNesting:!0},children:(0,_.jsx)(i.Condition,Vo(Vo({deleteButton:{onDelete:a,tooltipText:m.admin.base.conditionBuilder.deleteConditionTooltip}},c),{},{children:null==l?void 0:l.parameters.map((function(e,t){return function(e,t,n,o){if(!e)return null;if(Mr(e)){var i=e;return(0,_.jsx)("div",{className:zo.plainTextParameter,children:i.value},t)}var a=e,s=a.properties.componentName.endsWith(No.displayName.replace(Do,"")),l=Kt()(zo.componentParameter,s&&zo.select);return(0,r.createElement)(Mo,Vo(Vo({},a.properties),{},{disabled:!1,key:t,value:n[a.properties.name],fieldValues:n,onChange:function(e){return o(a.properties.name,e)},fieldCssClass:l}))}(e,t,p,A)}))}))})},Zo=s(7835),Uo={};Uo.styleTagTransform=wn(),Uo.setAttributes=bn(),Uo.insert=An().bind(null,"head"),Uo.domAPI=gn(),Uo.insertStyleElement=xn();fn()(Zo.Z,Uo);const Go=Zo.Z&&Zo.Z.locals?Zo.Z.locals:void 0;var qo=function(e){var t=e.value,n=e.onChange,r=e.onDelete,o=e.inConditionGroup,a=w().localization;return(0,_.jsxs)(i.ConditionOperatorSelect,{deleteButton:r?{onDelete:r,tooltipText:a.admin.base.conditionBuilder.deleteConditionGroupTooltip}:void 0,children:[(0,_.jsx)("span",{children:o?a.admin.base.conditionBuilder.textBeforeOperatorSelectorInConditionGroup:a.admin.base.conditionBuilder.textBeforeOperatorSelector}),(0,_.jsx)("div",{className:Go.operatorSelect,children:(0,_.jsxs)(i.Select,{value:t,onChange:function(e){return n(e)},children:[(0,_.jsx)(i.MenuItem,{primaryLabel:_r.All,value:_r.All}),(0,_.jsx)(i.MenuItem,{primaryLabel:_r.Any,value:_r.Any})]})}),(0,_.jsx)("span",{children:o?a.admin.base.conditionBuilder.textAfterOperatorSelectorInConditionGroup:a.admin.base.conditionBuilder.textAfterOperatorSelector})]})},Qo=function(e){var t=e.macroRuleCategories,n=e.onClose,o=e.onItemSelect,a=w().localization,s=t[0].name,l=g((0,r.useState)(void 0),2),c=l[0],u=l[1],d=g((0,r.useState)(s),2),p=d[0],f=d[1],m=function(){var e;return(null===(e=t.find((function(e){return e.name===p})))||void 0===e?void 0:e.macroRules)||[]};return(0,_.jsx)(i.ConditionPicker,{items:c?m().filter((function(e){return e.label.toLocaleLowerCase().includes(c.toLocaleLowerCase())})):m(),onItemSelect:o,categories:t.map((function(e){return{label:e.label,id:e.name}})),selectedCategoryId:p,onCategoryChange:f,onSearch:function(e){f(s),u(e)},searchValue:c,onClose:n,headline:a.admin.base.conditionBuilder.conditionPickerHeadline,noItemsText:a.admin.base.conditionBuilder.conditionPickerNoData,searchPlaceholder:a.admin.base.conditionBuilder.conditionPickerSearch})};Qo.displayName="ConditionBuilderConditionPicker";var Xo=["onChange","onDelete","conditionGroupInitialValue","onPickerCloseRequest","onPickerOpenRequest","isPickerVisible"];function Ko(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 Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $o=function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.onDelete,a=e.conditionGroupInitialValue,s=e.onPickerCloseRequest,l=e.onPickerOpenRequest,c=e.isPickerVisible,u=h(e,Xo),d=g((0,r.useState)({}),2),p=d[0],f=d[1],m=g((0,r.useState)(0),2),A=m[0],v=m[1],b=g((0,r.useState)(_r.All),2),C=b[0],x=b[1],y=w().localization;(0,r.useEffect)((function(){if(a){var e=Dr(a.items);v(e.lastUsedIndex),f(e.mappedResult),x(a.operator)}}),[a]);var O=function(e,t){for(var r=Jo({},p),o=Jo({},p[e]),i=L(o.macroRule.parameters),a=0;a<i.length;a++){var s=i[a];if(Pr(s)){var l=s,c=t[l.properties.name];i[a]=Jo(Jo({},l),{},{properties:Jo(Jo({},l.properties),{},{value:c})})}}r[e]={macroRule:Jo(Jo({},o.macroRule),{},{parameters:i}),id:r[e].id},f(r),n({operator:C,items:Object.values(r)})};return(0,_.jsxs)(i.ConditionGroup,Jo(Jo({},u),{},{isActionVisible:!c,onActionClick:l,children:[Object.keys(p).length>1?(0,_.jsx)(qo,{onChange:function(e){x(e),n({operator:e,items:Object.values(p)})},value:C,inConditionGroup:!0,onDelete:o}):[],Object.keys(p).map((function(e,t){return(0,_.jsxs)("div",{children:[(0,_.jsx)(Yo,{onDelete:function(){return t=e,r={},Object.keys(p).forEach((function(e){t!==e&&(r[e]=p[e])})),void n({operator:C,items:Object.values(r)});var t,r},onChange:function(t){return O(e,t)},initialParametersValue:Er(p[e].macroRule),macroRule:p[e].macroRule}),t+1!==Object.keys(p).length&&(0,_.jsx)(i.ConditionOperatorLine,{operator:Tr(C,y)})]},p[e].id)})),c?(0,_.jsxs)(_.Fragment,{children:[Object.keys(p).length>0&&(0,_.jsx)(i.ConditionOperatorLine,{operator:Tr(C,y)}),(0,_.jsx)(Qo,{macroRuleCategories:u.availableMacroRules,onItemSelect:function(e){var t=A+1,r=Jo({},p),o=kr(e.value,u.availableMacroRuleConfigurations);r[t.toString()]={macroRule:o,id:Wn()},f(r),v(t),s(),n({operator:C,items:Object.values(r)})},onClose:s})]}):[]]}))},ei=["initialConfiguration","availableMacroRules","availableMacroRuleConfigurations","onChange"];function ti(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 ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ri="local_picker",oi=function(e){var t=e.initialConfiguration,n=e.availableMacroRules,o=e.availableMacroRuleConfigurations,a=e.onChange,s=h(e,ei),l=g((0,r.useState)(null),2),c=l[0],u=l[1],d=g((0,r.useState)({}),2),p=d[0],f=d[1],m=g((0,r.useState)(0),2),A=m[0],v=m[1],b=g((0,r.useState)(_r.All),2),C=b[0],x=b[1],y=w().localization;(0,r.useEffect)((function(){if(t){var e=Dr(t.groups.map((function(e){return ni(ni({},e),{},{items:e.items.map((function(e){return ni(ni({},e),{},{id:e.id||Wn()})}))})})));v(e.lastUsedIndex),f(e.mappedResult),x(t.operator||_r.All)}}),[t]);var O=function(e,t){if(0===t.items.length)S(e);else{var n=ni({},p);n[e]=t,f(n),a({operator:C,groups:Object.values(n)})}},S=function(e){var t={};Object.keys(p).forEach((function(n){e!==n&&(t[n]=p[n])})),f(t),a({operator:C,groups:Object.values(t)})};return(0,_.jsxs)(i.ConditionBuilder,ni(ni({},s),{},{isActionVisible:c!==ri,onActionClick:function(){return u(ri)},actionLabel:y.admin.base.conditionBuilder.addGroupLabel,children:[Object.keys(p).length>1?(0,_.jsx)(qo,{onChange:function(e){x(e),a({operator:e,groups:Object.values(p)})},value:C}):[],Object.keys(p).map((function(e,t){return(0,_.jsxs)("div",{children:[(0,_.jsx)($o,{availableMacroRules:n,availableMacroRuleConfigurations:o,onChange:function(t){return O(e,t)},onDelete:function(){return S(e)},conditionGroupInitialValue:p[e],actionLabel:y.admin.base.conditionBuilder.addConditionLabel,isPickerVisible:(r=e,c===r),onPickerOpenRequest:function(){return u(e)},onPickerCloseRequest:function(){return u(null)}}),t+1!==Object.keys(p).length&&(0,_.jsx)(i.ConditionOperatorLine,{operator:Tr(C,y)})]},e);var r})),Object.keys(p).length>0?(0,_.jsx)(i.ConditionOperatorLine,{operator:Tr(C,y)}):[],c===ri?(0,_.jsx)(Qo,{macroRuleCategories:n,onItemSelect:function(e){var t=A+1,n=ni({},p),r={macroRule:kr(e.value,o),id:Wn()};n[t.toString()]={operator:_r.All,items:[r]},f(n),v(t),u(null),a({operator:C,groups:Object.values(n)})},onClose:function(){return u(null)}}):[]]}))},ii="65vw",ai=s(7532),si={};si.styleTagTransform=wn(),si.setAttributes=bn(),si.insert=An().bind(null,"head"),si.domAPI=gn(),si.insertStyleElement=xn();fn()(ai.Z,si);const li=ai.Z&&ai.Z.locals?ai.Z.locals:void 0;var ci=["initialConfiguration","availableMacroRules","availableMacroRuleConfigurations","onChange","label","inactiveMessage","invalid","validationMessage","disabled","required","explanationText","tooltip"],ui="GetMacro",di=function(e){var t=e.initialConfiguration,n=e.availableMacroRules,o=e.availableMacroRuleConfigurations,a=e.onChange,s=e.label,l=e.inactiveMessage,c=e.invalid,u=e.validationMessage,d=e.disabled,f=e.required,m=e.explanationText,A=e.tooltip,b=h(e,ci),C=g((0,r.useState)(!1),2),x=C[0],y=C[1],O=g((0,r.useState)(!1),2),S=O[0],j=O[1],T=g((0,r.useState)(!1),2),D=T[0],B=T[1],k=g((0,r.useState)(t),2),P=k[0],E=k[1],I=g((0,r.useState)(t),2),M=I[0],L=I[1],N=z(),R=N.setRedirectToDialog,F=N.messages,W=N.removeDialogMessage,H=Ao(1024);(0,r.useEffect)((function(){R(x)}),[R,x]);var V=go().executeCommand,Y=w().localization,Z=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V(b,ui,Ir(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(){D?j(!0):(L(P),y(!1))},G=function(){var e=p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=5;break}return e.next=3,Z(M);case 3:(null==(t=e.sent)?void 0:t.status)===co.ValidationSuccess&&(E(M),y(!1),B(!1),t&&t.result&&a(t.result));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=P.groups.length>0?Y.admin.base.formComponent.conditionBuilder.editButton.edit:Y.admin.base.formComponent.conditionBuilder.editButton.add;return(0,_.jsxs)(i.FormItemWrapper,{markAsRequired:f,label:s,labelIcon:mr(A),labelIconTooltip:A,inactiveMessage:l,disabled:d,invalid:c,validationMessage:u,explanationText:m,tooltipAsHtml:b.tooltipAsHtml,explanationTextAsHtml:b.explanationTextAsHtml,children:[(0,_.jsx)(ao,{data:P}),(0,_.jsx)("div",{className:li.editButton,children:(0,_.jsx)(i.Button,{label:q,onClick:function(){return y(!0)},dataTestId:"add-condition"})}),(0,_.jsx)(i.Dialog,{isOpen:x,onClose:U,height:"100%",width:ii,isFullScreen:H,headerCloseButton:{tooltipText:Y.admin.base.dialog.close,shortcuts:"Esc"},isDismissable:!0,headline:Y.admin.base.formComponent.conditionBuilder.editDialogHeader,confirmAction:{label:Y.admin.base.formComponent.conditionBuilder.editDialogConfirm,onClick:G},cancelAction:{label:Y.admin.base.formComponent.conditionBuilder.editDialogCancel,onClick:U},notificationBar:F.map((function(e){return(0,_.jsx)(i.NotificationBarAlert,{dataTestId:"notification-bar",onDismiss:function(){return e.id&&W(e.id)},children:e.message},e.id)})),children:(0,_.jsx)(oi,{initialConfiguration:P,availableMacroRuleConfigurations:o,availableMacroRules:n,onChange:function(e){B(!0),L(e)}})}),(0,_.jsx)(vf,{showDialog:S,onCancellation:function(){return j(!1)},onConfirmation:function(){j(!1),y(!1),B(!1)},texts:{headline:Y.admin.base.promptDialog.title,confirmLabel:Y.admin.base.promptDialog.confirm,message:Y.admin.base.promptDialog.message}})]})},pi=function(e){if(e)return e.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/,/,"")},fi=function(e){if(e)return e.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},mi=s(7589),gi={};gi.styleTagTransform=wn(),gi.setAttributes=bn(),gi.insert=An().bind(null,"head"),gi.domAPI=gn(),gi.insertStyleElement=xn();fn()(mi.Z,gi);const hi=mi.Z&&mi.Z.locals?mi.Z.locals:void 0;var Ai=["startYear","endYear","months"],vi=function(e){if(e){if("string"==typeof e){var t=new Date(e.replace("Z",""));return fi(t)}return fi(e)}},bi=function(e){var t=e.startYear,n=e.endYear,o=e.months,a=h(e,Ai),s=g((0,r.useState)(vi(a.value)),2),l=s[0],c=s[1],u=g((0,r.useState)(a.value?new Date(a.value):null),2),d=u[0],f=u[1],m=g((0,r.useState)(!1),2),A=m[0],b=m[1],C=g((0,r.useState)(!1),2),x=C[0],y=C[1],O=new Date(t,1,1),S=new Date(n,1,1),j=new Date(a.invalidFormatDate),T=(0,r.useRef)(null),D=(0,r.useRef)(null),B=(0,r.useRef)(null),k=go().executeCommand,P=Array.from({length:n-t+1},(function(e,n){return t+n})),E=w().localization,I=function(e,t){return t.code===e&&!t.shiftKey&&!t.altKey&&!t.ctrlKey},M=function(e){return e?new Date(e.getTime()-6e4*e.getTimezoneOffset()):null};(0,r.useEffect)((function(){var e;new Date(a.value).getTime()!==(null===(e=M(d))||void 0===e?void 0:e.getTime())&&j.getTime()!==new Date(a.value).getTime()&&(c(vi(a.value)),f(a.value?new Date(a.value):null))}),[a.value]);var L=Q(p(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.disabled){e.next=2;break}return e.abrupt("return");case 2:if(l){e.next=5;break}return F(null),e.abrupt("return");case 5:return e.next=7,k(a,"ValidateDateValue",{value:l});case 7:null!=(t=e.sent)&&t.isValid?(n=new Date(l),F(isNaN(n.getTime())?j:n)):F(j);case 9:case"end":return e.stop()}}),e)}))),X),N=(0,r.useCallback)((function(e){var t;if(null!==e){var n,r,o=e.target,i=null==o||null===(n=o.closest("button"))||void 0===n?void 0:n.getAttribute("data-id");if((null===(r=B.current)||void 0===r?void 0:r.getAttribute("data-id"))===i)return}b(!1),null===(t=T.current)||void 0===t||t.focus()}),[]),R=(0,r.useCallback)((function(e){if(A&&function(e,t){return t.code===e&&!t.shiftKey&&!t.altKey&&!t.ctrlKey}("Escape",e)){var t,n,r=null===(n=(null===(t=e.target)||void 0===t?void 0:t.querySelectorAll("div[data-day]"))[0])||void 0===n?void 0:n.getAttribute("data-day");if(r){var o=Number.parseInt(r),i=null==d?void 0:d.getDate(),a=(new Date).getDate();!o||o!==i&&o!==a||(document.removeEventListener("keydown",R),N(null))}}}),[A,d,N]);(0,r.useEffect)((function(){L()}),[l,L]),(0,r.useEffect)((function(){if(A){var e;document.querySelectorAll('[data-id="picker"]')[0]&&document.addEventListener("keydown",R);var t=null===(e=D.current)||void 0===e?void 0:e.querySelectorAll('[tabIndex="0"]')[0];t&&(null==t||t.focus())}}),[A,R]),(0,i.useHandleClickOutside)(D,N);var F=function(e){var t=null;null===e?f(null):j.getTime()===e.getTime()?t=j:(e.setHours(0,0,0,0),t=M(e),f(e),c(fi(e))),!a.disabled&&x&&a.onChange&&a.onChange(t)},z=(0,_.jsx)("div",{className:hi.calendarButton,children:(0,_.jsx)(i.Button,{"data-id":"button-"+Math.random().toString(36).substring(7),buttonRef:B,color:i.ButtonColor.Quinary,icon:"xp-calendar",disabled:a.disabled,onClick:function(){return b(!A)}})});return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.FormItemWrapper,{label:a.label,disabled:a.disabled,inactiveMessage:a.inactiveMessage,explanationText:a.explanationText,markAsRequired:a.required,invalid:a.invalid,validationMessage:a.validationMessage,labelIcon:mr(a.tooltip),labelIconTooltip:a.tooltip,tooltipAsHtml:a.tooltipAsHtml,explanationTextAsHtml:a.explanationTextAsHtml,children:(0,_.jsxs)("div",{className:hi.container,children:[(0,_.jsx)("div",{className:hi.dateInput,onKeyDown:function(e){!A&&I("ArrowDown",e)&&(b(!0),e.preventDefault()),A&&I("Escape",e)&&(b(!1),e.preventDefault())},"aria-hidden":"true",children:(0,_.jsx)(i.Input,{ref:T,value:null!=l?l:void 0,name:a.name,disabled:a.disabled,type:"text",onChange:function(e){c(e.target.value),y(!0)},actionElement:z})}),(0,_.jsx)("div",{className:hi.nowButton,children:(0,_.jsx)(i.Button,{label:E.admin.base.formComponent.dateInput.today,type:i.ButtonType.Button,size:i.ButtonSize.S,color:i.ButtonColor.Tertiary,onClick:function(){y(!0),F(new Date)},disabled:a.disabled})})]})}),A&&(0,_.jsx)("div",{className:hi.picker,children:(0,_.jsx)(i.DateTimePicker,{"data-id":"picker",ref:D,minDate:O,maxDate:S,years:P,months:o,value:d,onChange:function(e){e&&(y(!0),F(e),b(!1))}})})]})},Ci=s(6351),xi={};xi.styleTagTransform=wn(),xi.setAttributes=bn(),xi.insert=An().bind(null,"head"),xi.domAPI=gn(),xi.insertStyleElement=xn();fn()(Ci.Z,xi);const yi=Ci.Z&&Ci.Z.locals?Ci.Z.locals:void 0;var wi=["startYear","endYear","months"],_i=function(e){if(e){if("string"==typeof e){var t=new Date(e.replace("Z",""));return pi(t)}return pi(e)}},Oi=function(e){var t=e.startYear,n=e.endYear,o=e.months,a=h(e,wi),s=g((0,r.useState)(_i(a.value)),2),l=s[0],c=s[1],u=g((0,r.useState)(a.value?new Date(a.value):null),2),d=u[0],f=u[1],m=g((0,r.useState)(!1),2),A=m[0],b=m[1],C=g((0,r.useState)(!1),2),x=C[0],y=C[1],O=new Date(t,1,1),S=new Date(n,1,1),j=new Date(a.invalidFormatDate),T=(0,r.useRef)(null),D=(0,r.useRef)(null),B=(0,r.useRef)(null),k=go().executeCommand,P=Array.from({length:n-t+1},(function(e,n){return t+n})),E=w().localization,I=function(e,t){return t.code===e&&!t.shiftKey&&!t.altKey&&!t.ctrlKey},M=function(e){return e?new Date(e.getTime()-6e4*e.getTimezoneOffset()):null};(0,r.useEffect)((function(){var e;new Date(a.value).getTime()!==(null===(e=M(d))||void 0===e?void 0:e.getTime())&&j.getTime()!==new Date(a.value).getTime()&&(c(_i(a.value)),f(a.value?new Date(a.value):null))}),[a.value]);var L=Q(p(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.disabled){e.next=2;break}return e.abrupt("return");case 2:if(l){e.next=5;break}return z(null),e.abrupt("return");case 5:return e.next=7,k(a,"ValidateDateValue",{value:l});case 7:null!=(t=e.sent)&&t.isValid?(n=new Date(l),z(isNaN(n.getTime())?j:n)):z(j);case 9:case"end":return e.stop()}}),e)}))),X),N=(0,r.useCallback)((function(e){var t;if(null!==e){var n,r,o=e.target,i=null==o||null===(n=o.closest("button"))||void 0===n?void 0:n.getAttribute("data-id");if((null===(r=B.current)||void 0===r?void 0:r.getAttribute("data-id"))===i)return}b(!1),null===(t=T.current)||void 0===t||t.focus()}),[]),R=(0,r.useCallback)((function(e){if(A&&function(e,t){return t.code===e&&!t.shiftKey&&!t.altKey&&!t.ctrlKey}("Escape",e)){var t,n,r=null===(n=(null===(t=e.target)||void 0===t?void 0:t.querySelectorAll("div[data-day]"))[0])||void 0===n?void 0:n.getAttribute("data-day");if(r){var o=Number.parseInt(r),i=null==d?void 0:d.getDate(),a=(new Date).getDate();!o||o!==i&&o!==a||(document.removeEventListener("keydown",R),N(null))}}}),[A,d,N]);(0,r.useEffect)((function(){L()}),[l,L]),(0,r.useEffect)((function(){if(A){var e;document.querySelectorAll('[data-id="picker"]')[0]&&document.addEventListener("keydown",R);var t=null===(e=D.current)||void 0===e?void 0:e.querySelectorAll('[tabIndex="0"]')[0];t&&(null==t||t.focus())}}),[A,R]),(0,i.useHandleClickOutside)(D,N);var F,z=function(e){var t=null;null===e?f(null):j.getTime()===e.getTime()?t=j:(t=M(e),f(e),c(pi(e))),!a.disabled&&x&&a.onChange&&a.onChange(t)},W=(0,_.jsx)("div",{className:yi.calendarButton,children:(0,_.jsx)(i.Button,{"data-id":"button-"+Math.random().toString(36).substring(7),buttonRef:B,color:i.ButtonColor.Quinary,icon:"xp-calendar",disabled:a.disabled,onClick:function(){return b(!A)}})});return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.FormItemWrapper,{label:a.label,disabled:a.disabled,inactiveMessage:a.inactiveMessage,explanationText:a.explanationText,markAsRequired:a.required,invalid:a.invalid,validationMessage:a.validationMessage,labelIcon:mr(a.tooltip),labelIconTooltip:a.tooltip,tooltipAsHtml:a.tooltipAsHtml,explanationTextAsHtml:a.explanationTextAsHtml,children:(0,_.jsxs)("div",{className:yi.container,children:[(0,_.jsx)("div",{className:yi.dateInput,onKeyDown:function(e){!A&&I("ArrowDown",e)&&(b(!0),e.preventDefault()),A&&I("Escape",e)&&(b(!1),e.preventDefault())},"aria-hidden":"true",children:(0,_.jsx)(i.Input,{ref:T,value:null!=l?l:void 0,name:a.name,disabled:a.disabled,type:"text",onChange:function(e){c(e.target.value),y(!0)},actionElement:W})}),(0,_.jsx)("div",{className:yi.nowButton,children:(0,_.jsx)(i.Button,{label:E.admin.base.formComponent.dateTimeInput.now,type:i.ButtonType.Button,size:i.ButtonSize.S,color:i.ButtonColor.Tertiary,onClick:function(){y(!0),z(new Date)},disabled:a.disabled})})]})}),A&&(0,_.jsx)("div",{className:yi.picker,children:(0,_.jsx)(i.DateTimePicker,{"data-id":"picker",ref:D,minDate:O,maxDate:S,years:P,months:o,value:d,onChange:function(e){e&&(y(!0),z(e),b(!1))},timePicker:{timeFormat:i.DateTimePickerTimeFormat.Hours12,defaultTime:(F=new Date,{hours:F.getHours(),minutes:F.getMinutes()}),actionLabel:E.admin.base.formComponent.dateTimeInput.save}})})]})},Si=["delimiter"],ji=function(e){var t,n=e.delimiter,o=h(e,Si),a=g((0,r.useState)(null!==(t=o.value)&&void 0!==t?t:void 0),2),s=a[0],l=a[1],c=g((0,r.useState)(!1),2),u=c[0],d=c[1],p=Q((function(){var e;null!=s&&(e=""===s?null:function(e,t){return new RegExp("^[-]?\\d*(\\".concat(e,"\\d*)?$")).test(t)}(n,s)?Number(s):Number.NaN,!o.disabled&&u&&o.onChange&&o.onChange(e))}),X);return(0,r.useEffect)((function(){l(o.value)}),[l,o.value]),(0,r.useEffect)((function(){p()}),[s,p]),(0,_.jsx)(i.Input,{type:"number",label:o.label,name:o.name,value:s,onChange:function(e){l(e.target.value),d(!0)},invalid:o.invalid,validationMessage:o.validationMessage,disabled:o.disabled,markAsRequired:o.required,inactiveMessage:o.inactiveMessage,labelIcon:mr(o.tooltip),labelIconTooltip:o.tooltip,explanationText:o.explanationText,dataTestId:o.name,tooltipAsHtml:o.tooltipAsHtml,explanationTextAsHtml:o.explanationTextAsHtml})},Ti=["allowedExtensions","inheritSystemSettings","settingsAllowedExtensions"],Di=function(e){var t=e.allowedExtensions,n=e.inheritSystemSettings,o=e.settingsAllowedExtensions,a=h(e,Ti),s=g((0,r.useState)(null!=t?t:""),2),l=s[0],c=s[1],u=g((0,r.useState)(n),2),d=u[0],p=u[1],f=g((0,r.useState)(a.validationMessage),2),m=f[0],A=f[1],v=g((0,r.useState)(a.invalid),2),b=v[0],C=v[1],x=w().localization;(0,r.useEffect)((function(){A(a.validationMessage),C(a.invalid)}),[a]);return(0,_.jsxs)(i.FormItemWrapper,{invalid:b,disabled:a.disabled,children:[(0,_.jsx)(i.Input,{type:"text",label:a.label,value:d?o:l,invalid:b,validationMessage:m,onChange:function(e){a.onChange&&!d&&(c(e.target.value),a.onChange(e.target.value))},labelIcon:mr(a.tooltip),labelIconTooltip:a.tooltip,disabled:d||a.disabled,tooltipAsHtml:a.tooltipAsHtml,explanationTextAsHtml:a.explanationTextAsHtml}),(0,_.jsx)(i.Checkbox,{checked:d,disabled:a.disabled,label:x.admin.base.formComponent.extensionSelector.checkboxLabel,validationMessage:"","data-testid":"inherit-settings",onChange:function(e){p(e.target.checked),a.onChange&&a.onChange(e.target.checked?"_INHERITED_":l),e.target.checked&&(A(void 0),C(!1))}})]})},Bi=s(815),ki={};ki.styleTagTransform=wn(),ki.setAttributes=bn(),ki.insert=An().bind(null,"head"),ki.domAPI=gn(),ki.insertStyleElement=xn();fn()(Bi.Z,ki);const Pi=Bi.Z&&Bi.Z.locals?Bi.Z.locals:void 0;var Ei=function(e){var t=w().localization,n=g((0,r.useState)(!1),2),o=n[0],a=n[1],s=g((0,r.useState)(e.value),2),l=s[0],c=s[1],u=g((0,r.useState)(null),2),d=u[0],p=u[1],f=g((0,r.useState)(""),2),m=f[0],h=f[1],A=g((0,r.useState)(""),2),v=A[0],b=A[1],C=Object.keys(i.KXIcons),x=function(t){c(t),a(!1),e.onChange&&e.onChange(t)},y=Q((function(e){b(e)}),250),O=Kt()(Pi.iconSelectorInputWrapper,e.disabled&&Pi.disabled);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.FormItemWrapper,{label:e.label,disabled:e.disabled,inactiveMessage:e.inactiveMessage,explanationText:e.explanationText,markAsRequired:e.required,invalid:e.invalid,validationMessage:e.validationMessage,labelIcon:mr(e.tooltip),labelIconTooltip:e.tooltip,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,children:(0,_.jsxs)(i.Box,{className:Pi.select,children:[(0,_.jsx)(i.Box,{spacingRight:i.Spacing.M,className:O,children:(0,_.jsxs)(i.Box,{spacing:i.Spacing.S,className:Pi.iconSelectorInput,children:[l&&(0,_.jsx)(i.Box,{spacingLeft:i.Spacing.S,children:(0,_.jsx)(i.Icon,{name:l})}),(0,_.jsx)(i.Box,{className:Pi.iconName,children:l||t.admin.base.formComponent.iconSelector.none}),!e.required&&!e.disabled&&l&&(0,_.jsx)(i.Button,{icon:"xp-times-circle",color:i.ButtonColor.Quinary,size:i.ButtonSize.S,title:t.admin.base.formComponent.iconSelector.clear,onClick:function(){return x(null)},tabIndex:0})]})}),(0,_.jsx)(i.Button,{label:t.admin.base.formComponent.iconSelector.select,disabled:e.disabled,size:i.ButtonSize.M,onClick:function(){return a(!0)}})]})}),(0,_.jsx)(i.Dialog,{width:1024,height:800,headline:t.admin.base.formComponent.iconSelector.dialogTitle,isDismissable:!0,isOpen:o,headerCloseButton:{tooltipText:t.admin.base.dialog.close,shortcuts:"Esc"},onAfterOpen:function(){p(l),h(""),b("")},onClose:function(){return a(!1)},cancelAction:{label:t.admin.base.dialog.cancel,onClick:function(){return a(!1)}},confirmAction:{label:t.admin.base.formComponent.iconSelector.select,onClick:function(){return x(null!=d?d:l)}},headerContent:(0,_.jsx)(i.Box,{spacingX:i.Spacing.XL,spacingBottom:i.Spacing.XL,spacingRight:i.Spacing.XXXXL,children:(0,_.jsx)(i.Input,{placeholder:t.admin.base.formComponent.iconSelector.searchPlaceholder,onChange:function(e){h(e.target.value),y(e.target.value)},value:m})}),children:(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,_.jsx)(i.Grid,{cols:9,columnGap:i.Spacing.M,rowGap:i.Spacing.L,children:C.filter((function(e){return function(e,t){return!t||e.toUpperCase().indexOf(t.toUpperCase())>=0}(e.substring(3),v)})).map((function(e){var t=e,n=t.substring(3);return(0,_.jsx)(r.default.Fragment,{children:(0,_.jsx)(i.ActionTile,{icon:t,label:n,size:i.ActionTileSize.Small,type:i.ActionTileType.Default,state:t===d?i.ActionTileState.Selected:i.ActionTileState.Default,onClick:function(){p(t)}},t)},t)}))})})})]})},Ii=s(4428),Mi={};Mi.styleTagTransform=wn(),Mi.setAttributes=bn(),Mi.insert=An().bind(null,"head"),Mi.domAPI=gn(),Mi.insertStyleElement=xn();fn()(Ii.Z,Mi);const Li=Ii.Z&&Ii.Z.locals?Ii.Z.locals:void 0;function Ni(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 Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fi=function(e){var t=g((0,r.useState)(e.isMacro),2),n=t[0],o=t[1],a=g((0,r.useState)(e.isMacro?"":e.value),2),s=a[0],l=a[1],c=g((0,r.useState)(e.isMacro?e.value:""),2),u=c[0],d=c[1],p=g((0,r.useState)(e.fieldValues),2),f=p[0],m=p[1],h=w().localization,A=function(t){e.onChange&&e.onChange(t),n?d(t):l(t)};(0,r.useEffect)((function(){null===e.value&&(l(""),d(""),o(e.isMacro))}),[e]),(0,r.useEffect)((function(){m(e.fieldValues)}),[e.fieldValues]);var v=[{id:"1",icon:"xp-rectangle-a",tooltip:h.admin.base.formComponent.macroWrapper.textMode,tooltipPlacement:i.TooltipPlacement.Top},{id:"2",icon:"xp-braces",tooltip:h.admin.base.formComponent.macroWrapper.macroMode,tooltipPlacement:i.TooltipPlacement.Top}],b=Kt()(Li.labelContainer,e.disabled&&Li.disabled),C=E("".concat(e.innerComponentName,"FormComponent"));return(0,_.jsx)(i.FormItemWrapper,{children:(0,_.jsxs)("div",{className:Li.container,children:[(0,_.jsxs)("div",{className:Li.header,children:[(0,_.jsx)("div",{className:b,children:(0,_.jsx)("label",{children:e.label})}),(0,_.jsx)("div",{className:Li.buttonsContainer,children:!e.disabled&&e.supportsMacro&&(0,_.jsx)(i.IconToggleButtons,{selectedItemId:n?"2":"1",items:v,onChange:function(t){o((function(e){return!e})),e.onChange&&"1"===t?e.onChange(s):e.onChange&&e.onChange(u)}})})]}),(0,_.jsxs)("div",{children:[n&&(0,_.jsx)(i.Input,Ri(Ri({onChange:function(e){A(e.target.value)}},e.innerComponentProperties),{},{label:"",value:u,disabled:e.disabled})),!n&&C&&(0,_.jsx)(C,Ri(Ri({onChange:A},e.innerComponentProperties),{},{value:s,disabled:e.disabled,fieldValues:f,invalid:e.invalid,validationMessage:e.validationMessage}))]})]})})},zi=s(1647),Wi={};Wi.styleTagTransform=wn(),Wi.setAttributes=bn(),Wi.insert=An().bind(null,"head"),Wi.domAPI=gn(),Wi.insertStyleElement=xn();fn()(zi.Z,Wi);const Hi=zi.Z&&zi.Z.locals?zi.Z.locals:void 0;var Vi=function(e){var t,n=w().localization,r=g((null===(t=e.value)||void 0===t?void 0:t.split("."))||["",""],2),o=r[0],a=void 0===o?"":o,s=r[1],l=void 0===s?"":s;return(0,_.jsx)(i.FormItemWrapper,{labelClassnames:Hi.labelOverride,label:e.label,invalid:e.invalid,validationMessage:e.validationMessage,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,disabled:e.disabled,children:(0,_.jsxs)("div",{className:Hi.container,children:[(0,_.jsx)(i.Input,{markAsRequired:e.required,invalid:e.invalid,label:n.admin.base.formComponent.namespaceCodeName.namespace,value:a,onChange:function(t){var n;-1===t.target.value.indexOf(".")&&(null===(n=e.onChange)||void 0===n||n.call(e,"".concat(t.target.value,".").concat(l)))},disabled:e.disabled,explanationText:n.admin.base.formComponent.namespaceCodeName.explanationText,explanationTextAsHtml:!0,dataTestId:"code-name-namespace"}),(0,_.jsx)(i.Input,{markAsRequired:e.required,invalid:e.invalid,label:n.admin.base.formComponent.namespaceCodeName.name,value:l,onChange:function(t){var n;-1===t.target.value.indexOf(".")&&(null===(n=e.onChange)||void 0===n||n.call(e,"".concat(a,".").concat(t.target.value)))},disabled:e.disabled,explanationText:n.admin.base.formComponent.namespaceCodeName.explanationText,explanationTextAsHtml:!0,dataTestId:"code-name"})]})})},Yi=function(e){var t=g((0,r.useState)(e.value+""),2),n=t[0],o=t[1];return(0,_.jsx)(i.Input,{type:"text",label:e.label,name:e.name,value:null!=n?n:void 0,onChange:function(t){if(e.onChange){var n=t.target.value;if(""===n||"-"===n)return o(n),void e.onChange(null);if(Number.isInteger(Number(n))){var r=n.replace(/(^0+)|(\.)|(\s)/g,"");o(r),e.onChange(Number(r))}}},invalid:e.invalid,validationMessage:e.validationMessage,disabled:e.disabled,markAsRequired:e.required,inactiveMessage:e.inactiveMessage,labelIcon:mr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,onBlur:function(){e.onChange&&""===e.value&&e.onChange(null)},placeholder:e.watermarkText,dataTestId:e.name,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml})};function Zi(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 Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gi=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),qi=Math.abs,Qi=String.fromCharCode,Xi=Object.assign;function Ki(e){return e.trim()}function Ji(e,t,n){return e.replace(t,n)}function $i(e,t){return e.indexOf(t)}function ea(e,t){return 0|e.charCodeAt(t)}function ta(e,t,n){return e.slice(t,n)}function na(e){return e.length}function ra(e){return e.length}function oa(e,t){return t.push(e),e}var ia=1,aa=1,sa=0,la=0,ca=0,ua="";function da(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ia,column:aa,length:a,return:""}}function pa(e,t){return Xi(da("",null,null,"",null,null,0),e,{length:-e.length},t)}function fa(){return ca=la>0?ea(ua,--la):0,aa--,10===ca&&(aa=1,ia--),ca}function ma(){return ca=la<sa?ea(ua,la++):0,aa++,10===ca&&(aa=1,ia++),ca}function ga(){return ea(ua,la)}function ha(){return la}function Aa(e,t){return ta(ua,e,t)}function va(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ba(e){return ia=aa=1,sa=na(ua=e),la=0,[]}function Ca(e){return ua="",e}function xa(e){return Ki(Aa(la-1,_a(91===e?e+2:40===e?e+1:e)))}function ya(e){for(;(ca=ga())&&ca<33;)ma();return va(e)>2||va(ca)>3?"":" "}function wa(e,t){for(;--t&&ma()&&!(ca<48||ca>102||ca>57&&ca<65||ca>70&&ca<97););return Aa(e,ha()+(t<6&&32==ga()&&32==ma()))}function _a(e){for(;ma();)switch(ca){case e:return la;case 34:case 39:34!==e&&39!==e&&_a(ca);break;case 40:41===e&&_a(e);break;case 92:ma()}return la}function Oa(e,t){for(;ma()&&e+ca!==57&&(e+ca!==84||47!==ga()););return"/*"+Aa(t,la-1)+"*"+Qi(47===e?e:ma())}function Sa(e){for(;!va(ga());)ma();return Aa(e,la)}var ja="-ms-",Ta="-moz-",Da="-webkit-",Ba="comm",ka="rule",Pa="decl",Ea="@keyframes";function Ia(e,t){for(var n="",r=ra(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ma(e,t,n,r){switch(e.type){case"@import":case Pa:return e.return=e.return||e.value;case Ba:return"";case Ea:return e.return=e.value+"{"+Ia(e.children,r)+"}";case ka:e.value=e.props.join(",")}return na(n=Ia(e.children,r))?e.return=e.value+"{"+n+"}":""}function La(e){return Ca(Na("",null,null,null,[""],e=ba(e),0,[0],e))}function Na(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,g=1,h=1,A=1,v=0,b="",C=o,x=i,y=r,w=b;h;)switch(m=v,v=ma()){case 40:if(108!=m&&58==ea(w,d-1)){-1!=$i(w+=Ji(xa(v),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:w+=xa(v);break;case 9:case 10:case 13:case 32:w+=ya(m);break;case 92:w+=wa(ha()-1,7);continue;case 47:switch(ga()){case 42:case 47:oa(Fa(Oa(ma(),ha()),t,n),l);break;default:w+="/"}break;case 123*g:s[c++]=na(w)*A;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:f>0&&na(w)-d&&oa(f>32?za(w+";",r,n,d-1):za(Ji(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(oa(y=Ra(w,t,n,c,u,o,s,b,C=[],x=[],d),i),123===v)if(0===u)Na(w,t,y,y,C,i,d,s,x);else switch(99===p&&110===ea(w,3)?100:p){case 100:case 109:case 115:Na(e,y,y,r&&oa(Ra(e,y,y,0,0,o,s,b,o,C=[],d),x),o,x,d,s,r?C:x);break;default:Na(w,y,y,y,[""],x,0,s,x)}}c=u=f=0,g=A=1,b=w="",d=a;break;case 58:d=1+na(w),f=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==fa())continue;switch(w+=Qi(v),v*g){case 38:A=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(na(w)-1)*A,A=1;break;case 64:45===ga()&&(w+=xa(ma())),p=ga(),u=d=na(b=w+=Sa(ha())),v++;break;case 45:45===m&&2==na(w)&&(g=0)}}return i}function Ra(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=ra(p),m=0,g=0,h=0;m<r;++m)for(var A=0,v=ta(e,d+1,d=qi(g=a[m])),b=e;A<f;++A)(b=Ki(g>0?p[A]+" "+v:Ji(v,/&\f/g,p[A])))&&(l[h++]=b);return da(e,t,n,0===o?ka:s,l,c,u)}function Fa(e,t,n){return da(e,t,n,Ba,Qi(ca),ta(e,2,-2),0)}function za(e,t,n,r){return da(e,t,n,Pa,ta(e,0,r),ta(e,r+1,-1),r)}var Wa=function(e,t,n){for(var r=0,o=0;r=o,o=ga(),38===r&&12===o&&(t[n]=1),!va(o);)ma();return Aa(e,la)},Ha=function(e,t){return Ca(function(e,t){var n=-1,r=44;do{switch(va(r)){case 0:38===r&&12===ga()&&(t[n]=1),e[n]+=Wa(la-1,t,n);break;case 2:e[n]+=xa(r);break;case 4:if(44===r){e[++n]=58===ga()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Qi(r)}}while(r=ma());return e}(ba(e),t))},Va=new WeakMap,Ya=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Va.get(n))&&!r){Va.set(e,!0);for(var o=[],i=Ha(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Za=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ua(e,t){switch(function(e,t){return 45^ea(e,0)?(((t<<2^ea(e,0))<<2^ea(e,1))<<2^ea(e,2))<<2^ea(e,3):0}(e,t)){case 5103:return Da+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Da+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Da+e+Ta+e+ja+e+e;case 6828:case 4268:return Da+e+ja+e+e;case 6165:return Da+e+ja+"flex-"+e+e;case 5187:return Da+e+Ji(e,/(\w+).+(:[^]+)/,Da+"box-$1$2"+ja+"flex-$1$2")+e;case 5443:return Da+e+ja+"flex-item-"+Ji(e,/flex-|-self/,"")+e;case 4675:return Da+e+ja+"flex-line-pack"+Ji(e,/align-content|flex-|-self/,"")+e;case 5548:return Da+e+ja+Ji(e,"shrink","negative")+e;case 5292:return Da+e+ja+Ji(e,"basis","preferred-size")+e;case 6060:return Da+"box-"+Ji(e,"-grow","")+Da+e+ja+Ji(e,"grow","positive")+e;case 4554:return Da+Ji(e,/([^-])(transform)/g,"$1"+Da+"$2")+e;case 6187:return Ji(Ji(Ji(e,/(zoom-|grab)/,Da+"$1"),/(image-set)/,Da+"$1"),e,"")+e;case 5495:case 3959:return Ji(e,/(image-set\([^]*)/,Da+"$1$`$1");case 4968:return Ji(Ji(e,/(.+:)(flex-)?(.*)/,Da+"box-pack:$3"+ja+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Da+e+e;case 4095:case 3583:case 4068:case 2532:return Ji(e,/(.+)-inline(.+)/,Da+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(na(e)-1-t>6)switch(ea(e,t+1)){case 109:if(45!==ea(e,t+4))break;case 102:return Ji(e,/(.+:)(.+)-([^]+)/,"$1"+Da+"$2-$3$1"+Ta+(108==ea(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$i(e,"stretch")?Ua(Ji(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ea(e,t+1))break;case 6444:switch(ea(e,na(e)-3-(~$i(e,"!important")&&10))){case 107:return Ji(e,":",":"+Da)+e;case 101:return Ji(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Da+(45===ea(e,14)?"inline-":"")+"box$3$1"+Da+"$2$3$1"+ja+"$2box$3")+e}break;case 5936:switch(ea(e,t+11)){case 114:return Da+e+ja+Ji(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Da+e+ja+Ji(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Da+e+ja+Ji(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Da+e+ja+e+e}return e}var Ga=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Pa:e.return=Ua(e.value,e.length);break;case Ea:return Ia([pa(e,{value:Ji(e.value,"@","@"+Da)})],r);case ka:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ia([pa(e,{props:[Ji(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ia([pa(e,{props:[Ji(t,/:(plac\w+)/,":"+Da+"input-$1")]}),pa(e,{props:[Ji(t,/:(plac\w+)/,":-moz-$1")]}),pa(e,{props:[Ji(t,/:(plac\w+)/,ja+"input-$1")]})],r)}return""}))}}];const qa=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Ga;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[Ma,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[Ya,Za].concat(r,p),u=ra(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,Ia(La(e?e+"{"+t.styles+"}":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Gi({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return m.sheet.hydrate(s),m};var Qa=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const Xa=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const Ka={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ja=/[A-Z]|^ms/g,$a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,es=function(e){return 45===e.charCodeAt(1)},ts=function(e){return null!=e&&"boolean"!=typeof e},ns=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return es(e)?e:e.replace(Ja,"-$&").toLowerCase()})),rs=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($a,(function(e,t,n){return is={name:t,styles:n,next:is},t}))}return 1===Ka[e]||es(e)||"number"!=typeof t||0===t?t:t+"px"};function os(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return is={name:n.name,styles:n.styles,next:is},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)is={name:r.name,styles:r.styles,next:is},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=os(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":ts(a)&&(r+=ns(i)+":"+rs(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=os(e,t,a);switch(i){case"animation":case"animationName":r+=ns(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)ts(a[l])&&(r+=ns(i)+":"+rs(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=is,i=n(e);return is=o,os(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var is,as=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var ss=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";is=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=os(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=os(n,t,e[a]),r&&(o+=i[a]);as.lastIndex=0;for(var s,l="";null!==(s=as.exec(o));)l+="-"+s[1];return{name:Xa(o)+l,styles:o,next:is}},ls=!!r.useInsertionEffect&&r.useInsertionEffect,cs=ls||function(e){return e()},us=(ls||r.useLayoutEffect,{}.hasOwnProperty),ds=(0,r.createContext)("undefined"!=typeof HTMLElement?qa({key:"css"}):null);ds.Provider;var ps=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(ds);return e(t,o,n)}))},fs=(0,r.createContext)({});var ms="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gs=function(e,t){var n={};for(var r in t)us.call(t,r)&&(n[r]=t[r]);return n[ms]=e,n},hs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Qa(t,n,r);cs((function(){return function(e,t,n){Qa(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},As=ps((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[ms],a=[o],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=ss(a,void 0,(0,r.useContext)(fs));s+=t.key+"-"+l.name;var c={};for(var u in e)us.call(e,u)&&"css"!==u&&u!==ms&&(c[u]=e[u]);return c.ref=n,c.className=s,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(hs,{cache:t,serialized:l,isStringTag:"string"==typeof i}),(0,r.createElement)(i,c))}));s(63);var vs=function(e,t){var n=arguments;if(null==t||!us.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=As,i[1]=gs(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)};function bs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ss(t)}var Cs=s(493);Math.min,Math.max;const xs=["top","right","bottom","left"];xs.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function ys(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ws(e){return ys(e).getComputedStyle(e)}function _s(e){return Ds(e)?(e.nodeName||"").toLowerCase():""}let Os;function Ss(){if(Os)return Os;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Os=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),Os):navigator.userAgent}function js(e){return e instanceof ys(e).HTMLElement}function Ts(e){return e instanceof ys(e).Element}function Ds(e){return e instanceof ys(e).Node}function Bs(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ys(e).ShadowRoot||e instanceof ShadowRoot)}function ks(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ws(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ps(){return!/^((?!chrome|android).)*safari/i.test(Ss())}function Es(e){return["html","body","#document"].includes(_s(e))}Math.min,Math.max;const Is=Math.round;function Ms(e){const t=ws(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,a=Is(n)!==o||Is(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function Ls(e){return Ts(e)?e:e.contextElement}const Ns={x:1,y:1};function Rs(e){const t=Ls(e);if(!js(t))return Ns;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=Ms(t);let a=(i?Is(n.width):n.width)/r,s=(i?Is(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function Fs(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),s=Ls(e);let l=Ns;t&&(r?Ts(r)&&(l=Rs(r)):l=Rs(e));const c=s?ys(s):window,u=!Ps()&&n;let d=(a.left+(u&&(null==(o=c.visualViewport)?void 0:o.offsetLeft)||0))/l.x,p=(a.top+(u&&(null==(i=c.visualViewport)?void 0:i.offsetTop)||0))/l.y,f=a.width/l.x,m=a.height/l.y;if(s){const e=ys(s),t=r&&Ts(r)?ys(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Rs(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,d*=e.x,p*=e.y,f*=e.x,m*=e.y,d+=t.x,p+=t.y,n=ys(n).frameElement}}return{width:f,height:m,top:p,right:d+f,bottom:p+m,left:d,x:d,y:p}}function zs(e){return((Ds(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ws(e){if("html"===_s(e))return e;const t=e.assignedSlot||e.parentNode||(Bs(e)?e.host:null)||zs(e);return Bs(t)?t.host:t}function Hs(e){const t=Ws(e);return Es(t)?e.ownerDocument.body:js(t)&&ks(t)?t:Hs(t)}function Vs(e,t){var n;void 0===t&&(t=[]);const r=Hs(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ys(r);return o?t.concat(i,i.visualViewport||[],ks(r)?r:[]):t.concat(r,Vs(r))}const Ys=r.useLayoutEffect;var Zs=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Us=function(){};function Gs(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function qs(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Gs(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Qs=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===a(e)&&null!==e?[e]:[];var t},Xs=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Ui({},h(e,Zs))},Ks=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Js(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function $s(e){return Js(e)?window.pageYOffset:e.scrollTop}function el(e,t){Js(e)?window.scrollTo(0,t):e.scrollTop=t}function tl(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function nl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Us,o=$s(e),i=t-o,a=10,s=0;function l(){var t=tl(s+=a,o,i,n);el(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function rl(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?el(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&el(e,Math.max(t.offsetTop-o,0))}function ol(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var il=!1,al={get passive(){return il=!0}},sl="undefined"!=typeof window?window:{};sl.addEventListener&&sl.removeEventListener&&(sl.addEventListener("p",Us,al),sl.removeEventListener("p",Us,!1));var ll=il;function cl(e){return null!=e}function ul(e,t,n){return e?t:n}function dl(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,g=p.top,h=n.offsetParent.getBoundingClientRect().top,A=a?window.innerHeight:Js(u=l)?window.innerHeight:u.clientHeight,v=$s(l),b=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),x=h-C,y=A-g,w=x+v,_=d-v-g,O=f-A+v+b,S=v+g-C,j=160;switch(o){case"auto":case"bottom":if(y>=m)return{placement:"bottom",maxHeight:t};if(_>=m&&!a)return i&&nl(l,O,j),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&y>=r)return i&&nl(l,O,j),{placement:"bottom",maxHeight:a?y-b:_-b};if("auto"===o||a){var T=t,D=a?x:w;return D>=r&&(T=Math.min(D-b-s,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return i&&el(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(x>=m)return{placement:"top",maxHeight:t};if(w>=m&&!a)return i&&nl(l,S,j),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&x>=r){var B=t;return(!a&&w>=r||a&&x>=r)&&(B=a?x-C:w-C),i&&nl(l,S,j),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var pl=function(e){return"auto"===e?"bottom":e},fl=(0,r.createContext)(null),ml=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,c=((0,r.useContext)(fl)||{}).setPortalPlacement,u=(0,r.useRef)(null),d=g((0,r.useState)(o),2),p=d[0],f=d[1],m=g((0,r.useState)(null),2),h=m[0],A=m[1],v=l.spacing.controlHeight;return Ys((function(){var e=u.current;if(e){var t="fixed"===a,r=dl({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:v});f(r.maxHeight),A(r.placement),null==c||c(r.placement)}}),[o,i,a,s,n,c,v]),t({ref:u,placerProps:Ui(Ui({},e),{},{placement:h||pl(i),maxHeight:p})})},gl=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Ui({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},hl=gl,Al=gl,vl=function(e){var t=e.children,n=e.innerProps;return vs("div",So({},Ks(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};vl.defaultProps={children:"No options"};var bl=function(e){var t=e.children,n=e.innerProps;return vs("div",So({},Ks(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};bl.defaultProps={children:"Loading..."};var Cl,xl=["size"];var yl,wl,_l={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ol=function(e){var t=e.size,n=h(e,xl);return vs("svg",So({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_l},n))},Sl=function(e){return vs(Ol,So({size:20},e),vs("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},jl=function(e){return vs(Ol,So({size:20},e),vs("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Tl=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ui({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Dl=Tl,Bl=Tl,kl=function(){var e=bs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Cl||(yl=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],wl||(wl=yl.slice(0)),Cl=Object.freeze(Object.defineProperties(yl,{raw:{value:Object.freeze(wl)}})))),Pl=function(e){var t=e.delay,n=e.offset;return vs("span",{css:bs({animation:"".concat(kl," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},El=function(e){var t=e.innerProps,n=e.isRtl;return vs("div",So({},Ks(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),vs(Pl,{delay:0,offset:n}),vs(Pl,{delay:160,offset:!0}),vs(Pl,{delay:320,offset:!n}))};El.defaultProps={size:4};var Il=["data"],Ml=["innerRef","isDisabled","isHidden","inputClassName"],Ll={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Nl={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ui({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ll)},Rl=function(e){return Ui({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ll)},Fl=function(e){var t=e.children,n=e.innerProps;return vs("div",n,t)};var zl={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return vs("div",So({},Ks(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||vs(Sl,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return vs("div",So({ref:o},Ks(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return vs("div",So({},Ks(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||vs(jl,null))},DownChevron:jl,CrossIcon:Sl,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return vs("div",So({},Ks(e,"group",{group:!0}),s),vs(i,So({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),vs("div",null,t))},GroupHeading:function(e){var t=Xs(e);t.data;var n=h(t,Il);return vs("div",So({},Ks(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return vs("div",So({},Ks(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return vs("span",So({},t,Ks(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Xs(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=h(r,Ml);return vs("div",So({},Ks(e,"input",{"input-container":!0}),{"data-value":n||""}),vs("input",So({className:t({input:!0},s),ref:o,style:Rl(a),disabled:i},l)))},LoadingIndicator:El,Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return vs("div",So({},Ks(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return vs("div",So({},Ks(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,r.useRef)(null),c=(0,r.useRef)(null),u=g((0,r.useState)(pl(a)),2),d=u[0],p=u[1],f=(0,r.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=g((0,r.useState)(null),2),h=m[0],A=m[1],v=(0,r.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||A({offset:n,rect:e})}}),[o,s,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Ys((function(){v()}),[v]);var b=(0,r.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&l.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...Ts(e)?Vs(e):e.contextElement?Vs(e.contextElement):[],...Vs(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Ts(e)&&!s&&d.observe(e),Ts(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let p=s?Fs(e):null;return s&&function t(){const r=Fs(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}(o,l.current,v,{elementResize:"ResizeObserver"in window}))}),[o,v]);Ys((function(){b()}),[b]);var C=(0,r.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==s||!h)return null;var x=vs("div",So({ref:C},Ks(Ui(Ui({},e),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return vs(fl.Provider,{value:f},t?(0,Cs.createPortal)(x,t):x)},LoadingMessage:bl,NoOptionsMessage:vl,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return vs(l,{data:r,innerProps:Ui(Ui({},Ks(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},vs(c,{data:r,innerProps:Ui({},Ks(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),vs(u,{data:r,innerProps:Ui(Ui({},Ks(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:Fl,MultiValueLabel:Fl,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return vs("div",So({role:"button"},n),t||vs(Sl,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return vs("div",So({},Ks(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return vs("div",So({},Ks(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return vs("div",So({},Ks(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return vs("div",So({},Ks(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return vs("div",So({},Ks(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Wl=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Hl(e){var t=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}}();return function(){var n,r=Yr(e);if(t){var o=Yr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vr(this,n)}}var Vl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Yl(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Vl(r)&&Vl(o)))return!1;var r,o;return!0}for(var Zl={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ul=function(e){return vs("span",So({css:Zl},e))},Gl={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t){var u=s?" disabled":"",d="".concat(l?"selected":"focused").concat(u);return"option ".concat(i," ").concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ql=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,u=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,f=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,h=l.menuIsOpen,A=l.options,v=l.screenReaderStatus,b=l.tabSelectsValue,C=l["aria-label"],x=l["aria-live"],y=(0,r.useMemo)((function(){return Ui(Ui({},Gl),u||{})}),[u]),w=(0,r.useMemo)((function(){var e,n="";if(t&&y.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,l=t.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",p=o||a||void 0,f=p?p.map(d):[],g=Ui({isDisabled:c&&m(c,s),label:u,labels:f},t);n=y.onChange(g)}return n}),[t,y,m,s,d]),_=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&s&&s.includes(n));if(t&&y.onFocus){var a={focused:t,label:d(t),isDisabled:m(t,s),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:s};e=y.onFocus(a)}return e}),[n,o,d,m,y,i,s]),O=(0,r.useMemo)((function(){var e="";if(h&&A.length&&y.onFilter){var t=v({count:i.length});e=y.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,h,y,A,v]),S=(0,r.useMemo)((function(){var e="";if(y.guidance){var t=o?"value":h?"menu":"input";e=y.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,s),isMulti:f,isSearchable:g,tabSelectsValue:b})}return e}),[C,n,o,f,m,g,h,y,s,b]),j="".concat(_," ").concat(O," ").concat(S),T=vs(r.Fragment,null,vs("span",{id:"aria-selection"},w),vs("span",{id:"aria-context"},j)),D="initial-input-focus"===(null==t?void 0:t.action);return vs(r.Fragment,null,vs(Ul,{id:c},D&&T),vs(Ul,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},a&&!D&&T))},Ql=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Xl=new RegExp("["+Ql.map((function(e){return e.letters})).join("")+"]","g"),Kl={},Jl=0;Jl<Ql.length;Jl++)for(var $l=Ql[Jl],ec=0;ec<$l.letters.length;ec++)Kl[$l.letters[ec]]=$l.base;var tc=function(e){return e.replace(Xl,(function(e){return Kl[e]}))},nc=function(e,t){void 0===t&&(t=Yl);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(tc),rc=function(e){return e.replace(/^\s+|\s+$/g,"")},oc=function(e){return"".concat(e.label," ").concat(e.value)},ic=["innerRef"];function ac(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=g(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=g(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(h(e,ic),"onExited","in","enter","exit","appear");return vs("input",So({ref:t},n,{css:bs({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var sc=["boxSizing","height","overflow","paddingRight","position"],lc={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cc(e){e.preventDefault()}function uc(e){e.stopPropagation()}function dc(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function pc(){return"ontouchstart"in window||navigator.maxTouchPoints}var fc=!("undefined"==typeof window||!window.document||!window.document.createElement),mc=0,gc={capture:!1,passive:!1};var hc=function(){return document.activeElement&&document.activeElement.blur()},Ac={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function vc(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),c=(0,r.useRef)(0),u=(0,r.useRef)(null),d=(0,r.useCallback)((function(e,t){if(null!==u.current){var r=u.current,c=r.scrollTop,d=r.scrollHeight,p=r.clientHeight,f=u.current,m=t>0,g=d-p-c,h=!1;g>t&&s.current&&(o&&o(e),s.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>g?(n&&!s.current&&n(e),f.scrollTop=d,h=!0,s.current=!0):!m&&-t>c&&(i&&!l.current&&i(e),f.scrollTop=0,h=!0,l.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,i,a]),p=(0,r.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,r.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),m=(0,r.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),g=(0,r.useCallback)((function(e){if(e){var t=!!ll&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,p]),h=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,p]);return(0,r.useEffect)((function(){if(t){var e=u.current;return g(e),function(){h(e)}}}),[t,g,h]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(fc){var t=document.body,n=t&&t.style;if(o&&sc.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&mc<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(lc).forEach((function(e){var t=lc[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&pc()&&(t.addEventListener("touchmove",cc,gc),e&&(e.addEventListener("touchstart",dc,gc),e.addEventListener("touchmove",uc,gc))),mc+=1}}),[o]),l=(0,r.useCallback)((function(e){if(fc){var t=document.body,n=t&&t.style;mc=Math.max(mc-1,0),o&&mc<1&&sc.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&pc()&&(t.removeEventListener("touchmove",cc,gc),e&&(e.removeEventListener("touchstart",dc,gc),e.removeEventListener("touchmove",uc,gc)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=a.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){a.current=e}}({isEnabled:n});return vs(r.Fragment,null,n&&vs("div",{onClick:hc,css:Ac}),t((function(e){i(e),a(e)})))}var bc={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Cc=function(e){var t=e.name,n=e.onFocus;return vs("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:bc,value:"",onChange:function(){}})},xc={clearIndicator:Bl,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Ui({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Dl,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Ui({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ui({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Ui(Ui({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Nl),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Ui({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Al,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return Ui((u(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),u(n,"position","absolute"),u(n,"width","100%"),u(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Ui({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Ui({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Ui({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Ui({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:hl,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return Ui({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Ui({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Ui({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Ui({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var yc,wc={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},_c={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ol(),captureMenuScroll:!ol(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Ui({ignoreCase:!0,ignoreAccents:!0,stringify:oc,trim:!0,matchFrom:"any"},yc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?rc(t):t,c=a?rc(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=nc(l),c=tc(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Oc(e,t,n,r){return{type:"option",data:t,isDisabled:kc(e,t,n),isSelected:Pc(e,t,n),label:Dc(e,t),value:Bc(e,t),index:r}}function Sc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Oc(e,n,t,r)})).filter((function(t){return Tc(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Oc(e,n,t,r);return Tc(e,i)?i:void 0})).filter(cl)}function jc(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,L(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Tc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Ic(e)||!i)&&Ec(e,{label:a,value:s,data:o},r)}var Dc=function(e,t){return e.getOptionLabel(t)},Bc=function(e,t){return e.getOptionValue(t)};function kc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Pc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Bc(e,t);return n.some((function(t){return Bc(e,t)===r}))}function Ec(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ic=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Mc=1,Lc=function(e){Hr(n,e);var t=Hl(n);function n(e){var r;if(Nr(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(L(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=ul(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(ul(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=ul(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qs.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Dc(r.props,e)},r.getOptionValue=function(e){return Bc(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=xc[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Ui(Ui({},zl),e.components);var e},r.buildCategorizedOptions=function(){return Sc(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return jc(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Ui({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Js(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Ic(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,m=f.focusedOption,g=f.focusedValue,h=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)r.removeValue(g);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!m||p&&r.isOptionSelected(m,h))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Mc),r.state.selectValue=Qs(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.buildFocusableOptions(),i=o.indexOf(r.state.selectValue[0]);r.state.focusedOption=o[i]}return r}return Fr(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&rl(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(rl(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(wc):Ui(Ui({},wc),this.props.theme):wc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return kc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Pc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ec(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,g=o||this.getElementId("input"),h=Ui(Ui(Ui({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(u,So({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},h)):r.createElement(ac,So({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Us,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,g=u.placeholder,h=this.state,A=h.selectValue,v=h.focusedValue,b=h.isFocused;if(!this.hasValue()||!d)return m?null:r.createElement(l,So({},c,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return A.map((function(t,s){var l=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,So({},c,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var C=A[0];return r.createElement(s,So({},c,{data:C,isDisabled:p}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,So({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return r.createElement(e,So({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return r.createElement(n,So({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,So({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,g=f.inputValue,h=f.isLoading,A=f.loadingMessage,v=f.minMenuHeight,b=f.maxMenuHeight,C=f.menuIsOpen,x=f.menuPlacement,y=f.menuPosition,w=f.menuPortalTarget,_=f.menuShouldBlockScroll,O=f.menuShouldScrollIntoView,S=f.noOptionsMessage,j=f.onMenuScrollToTop,T=f.onMenuScrollToBottom;if(!C)return null;var D,B=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=p===i,m=a?void 0:function(){return e.onOptionHover(i)},g=a?void 0:function(){return e.selectOption(i)},h="".concat(e.getElementId("option"),"-").concat(n),A={id:h,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return r.createElement(u,So({},d,{innerProps:A,data:i,isDisabled:a,isSelected:s,key:h,label:l,type:o,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return r.createElement(n,So({},d,{key:l,data:i,options:a,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return B(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return B(t,"".concat(t.index))}));else if(h){var k=A({inputValue:g});if(null===k)return null;D=r.createElement(l,d,k)}else{var P=S({inputValue:g});if(null===P)return null;D=r.createElement(c,d,P)}var E={minMenuHeight:v,maxMenuHeight:b,menuPlacement:x,menuPosition:y,menuShouldScrollIntoView:O},I=r.createElement(ml,So({},d,E),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return r.createElement(i,So({},d,E,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:s}),r.createElement(vc,{captureEnabled:m,onTopArrive:j,onBottomArrive:T,lockEnabled:_},(function(t){return r.createElement(a,So({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:h,maxHeight:l,focusedOption:p}),D)})))}));return w||"fixed"===y?r.createElement(s,So({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:x,menuPosition:y}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(a&&!o){if(s&&!this.hasValue())return r.createElement(Cc,{name:a,onFocus:this.onValueInputFocus});if(i){if(n){var c=l.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return r.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return r.createElement(ql,So({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return r.createElement(o,So({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,So({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,So({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,So({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,d=e.inputValue,p=e.isMulti,f=Qs(c),m={};if(n&&(c!==n.value||l!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var g=u?function(e,t){return jc(Sc(e,t))}(e,f):[],h=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,f):null,A=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:f,focusedOption:A,focusedValue:h,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=i,C=a&&s;return a&&!C&&(b={value:ul(p,f,f[0]||null),options:f,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(b=null),Ui(Ui(Ui({},m),v),{},{prevProps:e,ariaSelection:b,prevWasFocused:C})}}]),n}(r.Component);Lc.defaultProps=_c;var Nc=(0,r.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,a=e.defaultValue,s=void 0===a?null:a,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,m=e.value,A=h(e,Wl),v=g((0,r.useState)(void 0!==l?l:n),2),b=v[0],C=v[1],x=g((0,r.useState)(void 0!==c?c:i),2),y=x[0],w=x[1],_=g((0,r.useState)(void 0!==m?m:s),2),O=_[0],S=_[1],j=(0,r.useCallback)((function(e,t){"function"==typeof u&&u(e,t),S(e)}),[u]),T=(0,r.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),C(void 0!==n?n:e)}),[d]),D=(0,r.useCallback)((function(){"function"==typeof f&&f(),w(!0)}),[f]),B=(0,r.useCallback)((function(){"function"==typeof p&&p(),w(!1)}),[p]),k=void 0!==l?l:b,P=void 0!==c?c:y,E=void 0!==m?m:O;return Ui(Ui({},A),{},{inputValue:k,menuIsOpen:P,onChange:j,onInputChange:T,onMenuClose:B,onMenuOpen:D,value:E})}(e);return r.createElement(Lc,So({ref:t},n))}));const Rc=Nc;const Fc=Symbol("useLazyRef empty value");var zc=setTimeout;function Wc(e,t){var n=t.useCachedSetTimeout?zc:setTimeout;return new Promise((function(t){n(t,e)}))}const Hc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.useCachedSetTimeout,r=Wc(e,{useCachedSetTimeout:n});function o(e){return r.then((function(){return e}))}return o.then=function(){return r.then.apply(r,arguments)},o.catch=Promise.resolve().catch,o};var Vc=s(7993),Yc=e=>({isFirstLoad:!0,options:[],hasMore:!0,isLoading:!1,additional:e.additional}),Zc=(e,t,n)=>e-t-10<n,Uc=(e,t)=>[...e,...t],Gc='[react-select-async-paginate] response of "loadOptions" should be an object with "options" prop, which contains array of options.',qc=e=>{if(!(e=>{if(!e)return!1;const{options:t,hasMore:n}=e;return!!Array.isArray(t)&&("boolean"==typeof n||void 0===n)})(e))throw console.error(Gc,"Received:",e),new Error(Gc);return!0},Qc=e=>e+1,Xc=(e,t=[])=>{const{defaultOptions:n,loadOptionsOnMenuOpen:o=!0,debounceTimeout:i=0,inputValue:a,menuIsOpen:s,filterOption:l=null,reduceOptions:c=Uc,shouldLoadMore:u=Zc}=e,d=function(){var e=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),p=(0,r.useRef)(!0),f=(0,r.useRef)(e);f.current=e;const m=(0,r.useState)(0)[1],g=(e=>{const t=(0,r.useRef)(Fc);return t.current===Fc&&(t.current=e()),t})((()=>(({options:e,defaultOptions:t,additional:n,defaultAdditional:r})=>{const o=!0===t?null:t instanceof Array?t:e;return o?{"":{isFirstLoad:!1,isLoading:!1,options:o,hasMore:!0,additional:r||n}}:{}})(e))),h=(0,r.useCallback)((e=>{(async(e,t,n,r,o,i)=>{const a=t.current.inputValue,s=!n.current[a],l=s?Yc(t.current):n.current[a];if(l.isLoading||!l.hasMore)return;if(o((e=>({...e,[a]:{...l,isLoading:!0}}))),r>0&&"input-change"===e){await Hc(r);const e=t.current.inputValue;if(a!==e)return void o((e=>{if(s){const{[a]:t,...n}=e;return n}return{...e,[a]:{...l,isLoading:!1}}}))}let c,u=!1;try{const{loadOptions:e}=t.current;c=await e(a,l.options,l.additional)}catch(e){u=!0}if(u)o((e=>({...e,[a]:{...l,isLoading:!1}})));else if(qc(c)){const{options:e,hasMore:t}=c,n=c.hasOwnProperty("additional")?c.additional:l.additional;o((r=>({...r,[a]:{...l,options:i(l.options,e,n),hasMore:!!t,isLoading:!1,isFirstLoad:!1,additional:n}})))}})(e,f,g,i,(e=>{g.current=e(g.current),d.current&&m(Qc)}),c)}),[i]),A=(0,r.useCallback)((()=>{const e=f.current.inputValue;g.current[e]&&h("menu-scroll")}),[h]);(0,r.useEffect)((()=>{p.current?p.current=!1:(g.current={},m(Qc)),!0===n&&h("autoload")}),t),(0,r.useEffect)((()=>{s&&!g.current[a]&&h("input-change")}),[a]),(0,r.useEffect)((()=>{s&&!g.current[""]&&o&&h("menu-toggle")}),[s]);const v=g.current[a]||Yc(e);return{handleScrolledToBottom:A,shouldLoadMore:u,filterOption:l,isLoading:v.isLoading,isFirstLoad:v.isFirstLoad,options:v.options}};var Kc,Jc=(Kc=zl.MenuList,function(e){const{selectProps:t,innerRef:n}=e,{handleScrolledToBottom:o,shouldLoadMore:i}=t,a=(0,r.useRef)(),s=(0,r.useRef)(null),l=(0,r.useCallback)((()=>{const e=s.current;if(!e)return!1;const{scrollTop:t,scrollHeight:n,clientHeight:r}=e;return i(n,r,t)}),[i]),c=(0,r.useCallback)((()=>{l()&&o&&o()}),[l,o]),u=(0,r.useCallback)((()=>{c(),a.current=setTimeout(u,300)}),[c]);return(0,r.useEffect)((()=>(u(),()=>{a.current&&clearTimeout(a.current)})),[]),(0,_.jsx)(Kc,{...e,innerRef:(0,Vc.Z)(n,s)})});var $c=function(e){function t(t){const{components:n,selectRef:o,isLoading:i,cacheUniqs:a,...s}=t,l=((e,t=[])=>{const{inputValue:n,menuIsOpen:o,defaultInputValue:i,defaultMenuIsOpen:a,onInputChange:s,onMenuClose:l,onMenuOpen:c}=e,[u,d]=(0,r.useState)(i||""),[p,f]=(0,r.useState)(!!a),m="string"==typeof n?n:u,g="boolean"==typeof o?o:p,h=(0,r.useCallback)(((e,t)=>{s&&s(e,t),d(e)}),[s]),A=(0,r.useCallback)((()=>{l&&l(),f(!1)}),[l]),v=(0,r.useCallback)((()=>{c&&c(),f(!0)}),[c]);return{...Xc({...e,inputValue:m,menuIsOpen:g},t),inputValue:m,menuIsOpen:g,onInputChange:h,onMenuClose:A,onMenuOpen:v}})(s,a),c=(e=>(0,r.useMemo)((()=>({MenuList:Jc,...e})),[e]))(n),u="boolean"==typeof i?i:l.isLoading;return(0,_.jsx)(e,{...t,...l,isLoading:u,components:c,ref:o})}return t.defaultProps={selectRef:null,cacheUniqs:[],components:{}},t}(Rc);function eu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=tu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const nu=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=tu(e))&&(r&&(r+=" "),r+=t);return r},ru="undefined"!=typeof window?r.default.useLayoutEffect:()=>{};let ou=new Map;function iu(e,t){if(e===t)return e;let n=ou.get(e);if(n)return n(t),t;let r=ou.get(t);return r?(r(e),e):t}function au(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function su(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=au(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=iu(n,o):t[e]=void 0!==o?o:n:t[e]=nu(n,o)}}return t}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let lu=new Map,cu=new Set;function uu(){if("undefined"==typeof window)return;let e=t=>{let n=lu.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),lu.delete(t.target)),0===lu.size)){for(let e of cu)e();cu.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=lu.get(t.target);n||(n=new Set,lu.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?uu():document.addEventListener("DOMContentLoaded",uu));"undefined"!=typeof window&&window.visualViewport;new Map;function du(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function pu(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function fu(){return pu(/^Mac/i)}function mu(e){return!(0!==e.mozInputSource||!e.isTrusted)||(du(/Android/i)&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}new WeakMap;const gu=r.default.createContext(null);gu.displayName="PressResponderContext";new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);class hu{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Au(e){let t=(0,r.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,ru((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,r=e=>{var r,o;t.current.isFocused=!1,n.disabled&&(null===(o=(r=t.current).onBlur)||void 0===o||o.call(r,new hu("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}}),[])}function vu(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=Au(a),l=(0,r.useCallback)((e=>{e.target===e.currentTarget&&(n&&n(e),i&&i(!0),s(e))}),[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||o)?l:void 0,onBlur:t||!o&&!i?null:a}}}let bu=null,Cu=new Set,xu=!1,yu=!1,wu=!1;const _u={Tab:!0,Escape:!0};function Ou(e,t){for(let n of Cu)n(e,t)}function Su(e){yu=!0,function(e){return!(e.metaKey||!fu()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(bu="keyboard",Ou("keyboard",e))}function ju(e){bu="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(yu=!0,Ou("pointer",e))}function Tu(e){mu(e)&&(yu=!0,bu="virtual")}function Du(e){e.target!==window&&e.target!==document&&(yu||wu||(bu="virtual",Ou("virtual",e)),yu=!1,wu=!1)}function Bu(){yu=!1,wu=!0}function ku(){if("undefined"==typeof window||xu)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){yu=!0,e.apply(this,arguments)},document.addEventListener("keydown",Su,!0),document.addEventListener("keyup",Su,!0),document.addEventListener("click",Tu,!0),window.addEventListener("focus",Du,!0),window.addEventListener("blur",Bu,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",ju,!0),document.addEventListener("pointermove",ju,!0),document.addEventListener("pointerup",ju,!0)):(document.addEventListener("mousedown",ju,!0),document.addEventListener("mousemove",ju,!0),document.addEventListener("mouseup",ju,!0)),xu=!0}function Pu(){return"pointer"!==bu}function Eu(e,t,n){ku(),(0,r.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!_u[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(Pu())};return Cu.add(t),()=>{Cu.delete(t)}}),t)}function Iu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,r.useRef)({isFocusWithin:!1}),s=(0,r.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),l=Au(s),c=(0,r.useCallback)((e=>{a.current.isFocusWithin||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,l(e))}),[o,i,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:c,onBlur:s}}}"undefined"!=typeof document&&("loading"!==document.readyState?ku():document.addEventListener("DOMContentLoaded",ku));const Mu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"];Mu.join(":not([hidden]),");Mu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');Mu.join(':not([hidden]):not([tabindex="-1"]),');function Lu(e,t){return t.some((t=>t.contains(e)))}class Nu{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null),o=new Ru({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&Lu(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n.removeChild(t),r.length>0&&r.forEach((e=>n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.length>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new Nu;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){eu(this,"fastMap",new Map),this.root=new Ru({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ru{addChild(e){this.children.push(e),e.parent=this}removeChild(e){this.children.splice(this.children.indexOf(e),1),e.parent=void 0}constructor(e){eu(this,"children",[]),eu(this,"contain",!1),this.scopeRef=e.scopeRef}}new Nu;function Fu(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||Pu()}),[a,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),u=(0,r.useCallback)((()=>c(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,r.useCallback)((e=>{i.current.isFocused=e,s(e),u()}),[u]);Eu((e=>{i.current.isFocusVisible=e,u()}),[],{isTextInput:n});let{focusProps:p}=vu({isDisabled:o,onFocusChange:d}),{focusWithinProps:f}=Iu({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:i.current.isFocused&&l,focusProps:o?f:p}}var zu;!function(e){e.Standard="standard",e.Floating="floating"}(zu||(zu={}));var Wu=s(4791),Hu={};Hu.styleTagTransform=wn(),Hu.setAttributes=bn(),Hu.insert=An().bind(null,"head"),Hu.domAPI=gn(),Hu.insertStyleElement=xn();fn()(Wu.Z,Hu);const Vu=Wu.Z&&Wu.Z.locals?Wu.Z.locals:void 0;var Yu=["className","children"],Zu=["className","children"],Uu=["className"],Gu=["children","className"],qu=["className"],Qu=["children"];function Xu(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 Ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ju=function(e){var t=g((0,r.useState)(e.dataTestId||"object-selector-input"),1)[0],n=Fu({isTextInput:!0}),o=n.isFocusVisible,a=n.focusProps,s=w().localization.admin.base.formComponent,l=function(e){return Kt()(e,Vu.value)},c=(0,r.useCallback)((function(e){var t=e.className,n=e.children,r=h(e,Yu),o=Kt()(t,Vu.container);return(0,_.jsx)(zl.SelectContainer,Ku(Ku({className:o},r),{},{children:n}))}),[]),u=(0,r.useCallback)((function(e){var t,n=e.className,r=e.children,o=h(e,Zu),i=o.selectProps.value,a=null!==(t=null==i?void 0:i.length)&&void 0!==t?t:0,s=!(o.isDisabled&&o.isMulti&&a>0),l=Kt()(n,Vu.control,o.isDisabled&&Vu.disabled,s&&Vu.disabledBackground);return(0,_.jsx)(zl.Control,Ku(Ku({className:l},o),{},{children:r}))}),[]),d=(0,r.useCallback)((function(e){return e=Ku(Ku({},e),{},{getStyles:function(){return{}}}),(0,_.jsx)(zl.Option,Ku(Ku({},e),{},{children:(0,_.jsx)(i.MenuItem,{large:!0,primaryLabel:e.label,selected:e.isSelected,disabled:e.isDisabled,isMultiSelect:!0,onClick:e.innerProps.onClick,dataTestId:e.label.toLocaleLowerCase().replace(/\s/g,"-"),noHoverCss:!0,isSubmenuOpened:e.isFocused})}))}),[]),p=(0,r.useCallback)((function(e){var n=e.selectProps;return(0,_.jsx)("div",{className:Vu.dropdownIndicator,children:(0,_.jsx)(i.Icon,{name:n.menuIsOpen?"xp-chevron-up":"xp-chevron-down","data-testid":"".concat(t,"-dropdown-indicator")})})}),[t]),f=(0,r.useCallback)((function(e){var t=e.getValue().some((function(e){return e.isRemovable})),n=Kt()(Vu.clearIndicator,!t&&Vu.disabled);return(0,_.jsx)(zl.ClearIndicator,Ku(Ku({className:n},e),{},{children:(0,_.jsx)(i.Button,{title:s.dropDown.clearSelection,color:i.ButtonColor.Quinary,icon:"xp-times-circle"})}))}),[s.dropDown.clearSelection]),m=(0,r.useCallback)((function(e){var t=e.className,n=h(e,Uu),r=Kt()(t,Vu.placeholder);return(0,_.jsx)(zl.Placeholder,Ku({className:r},n))}),[]),A=(0,r.useCallback)((function(e){var t=e.children,n=e.className,r=h(e,Gu);return(0,_.jsx)(zl.SingleValue,Ku(Ku({className:l(n)},r),{},{children:t}))}),[]),v=(0,r.useCallback)((function(e){var n=e.className,r=h(e,qu);return(0,_.jsx)(zl.Input,Ku({className:l(n),"data-testid":t},r))}),[t]),b=(0,r.useCallback)((function(e){var t=e.children,n=h(e,Qu),r=Kt()(n.className,Vu.valueContainer);return(0,_.jsx)(zl.ValueContainer,Ku(Ku({className:r},n),{},{children:t}))}),[]),C=(0,r.useCallback)((function(t){var n=t.index,r=t.data,o=t.selectProps,a=t.removeProps,s=n===o.value.length-1,l=Kt()(!s&&Vu.tagSpacer);return(0,_.jsx)("div",{className:l,children:(0,_.jsx)(i.Tag,{label:r.label,background:{color:r.isValid?i.Colors.BackgroundTagDefault:i.Colors.AlertBackgroundHighEmphasis},removable:r.isRemovable,onRemoveClick:r.isRemovable||void 0===r.isRemovable?a.onClick:null,onRemoveMouseDown:a.onMouseDown,disabled:e.isDisabled})})}),[e.isDisabled]),x=(0,r.useCallback)((function(){return void 0===e.menuType||null===e.menuType?parseInt(i.Zindex.DropDown):parseInt(e.menuType===zu.Floating?i.Zindex.Dialog:i.Zindex.DropDown)}),[e.menuType]),y=Kt()(o&&Vu.focused,e.invalid&&Vu.invalid,e.isMulti&&e.value.length&&Vu.notEmpty);return(0,_.jsx)("div",{className:y,children:(0,r.createElement)($c,Ku(Ku({},e),{},{key:JSON.stringify(e.options),menuPortalTarget:e.menuType===zu.Floating?document.querySelector("#".concat(i.dialogConfig.dialogContainerId)):null,closeMenuOnSelect:!e.isMulti,hideSelectedOptions:!1,tabSelectsValue:!1,isClearable:void 0!==e.onClear,onChange:function(t,n){var r,o;"clear"===n.action?null===(r=e.onClear)||void 0===r||r.call(e):null===(o=e.onChange)||void 0===o||o.call(e,t,n)},onFocus:a.onFocus,onBlur:a.onBlur,components:{Control:u,DropdownIndicator:p,ClearIndicator:f,Input:v,MultiValue:C,Option:d,Placeholder:m,SelectContainer:c,SingleValue:A,ValueContainer:b},styles:{indicatorSeparator:function(){return{display:"none"}},menuPortal:function(e){return Ku(Ku({},e),{},{zIndex:x()})}}}))})},$u=s(5124),ed={};ed.styleTagTransform=wn(),ed.setAttributes=bn(),ed.insert=An().bind(null,"head"),ed.domAPI=gn(),ed.insertStyleElement=xn();fn()($u.Z,ed);const td=$u.Z&&$u.Z.locals?$u.Z.locals:void 0;var nd=["selectedObjects","statusText","maximumItems","placeholder","onChange","disabled","invalid","configurationHash","children","required"],rd=function(e){return e?JSON.parse(e.value):{}},od=function(e,t,n,r){var o;return null!==(o=null==e?void 0:e.map((function(e){return{value:JSON.stringify(e.value),label:e.isValid?e.text:t,isValid:e.isValid,isRemovable:!n||r}})))&&void 0!==o?o:[]},id=function(e){var t,n=e.selectedObjects,o=e.statusText,a=e.maximumItems,s=e.placeholder,l=e.onChange,c=e.disabled,u=e.invalid,d=e.configurationHash,f=e.children,m=e.required,A=h(e,nd),b=w().localization.admin.base.formComponent.objectSelector,C=g((0,r.useState)(1!==a),1)[0],x=g((0,r.useState)(od(n,b.invalidItemName,m,C)),2),y=x[0],O=x[1],S=go().executeCommand,j=(0,r.useRef)({pageIndex:0,searchTerm:""}),T=bo(a,y.length,b),D=(0,r.useCallback)((function(e){null==l||l([rd(e)]),O([e])}),[l]),B=(0,r.useCallback)((function(e){null==l||l(function(e){return e.map(rd)}(e)),O(e)}),[l]),k=(0,r.useCallback)(function(){var e=p(v().mark((function e(t){var n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.toLowerCase()!==j.current.searchTerm.toLowerCase()&&(j.current.pageIndex=0,j.current.searchTerm=t),e.next=3,S(A,"LoadObjects",{pageIndex:j.current.pageIndex,searchTerm:t});case 3:return r=e.sent,j.current.pageIndex++,e.abrupt("return",{options:od(null==r?void 0:r.objects,b.invalidItemName,m,C),hasMore:null!==(n=null==r?void 0:r.nextPageAvailable)&&void 0!==n&&n});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[S,b.invalidItemName,A,m,C]),P=xo(A.name,A.fieldValues).loadSelectedOptions,E=function(){var e=p(v().mark((function e(t){var n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:n=e.sent,r=od(n,b.invalidItemName,m,C),O(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){A.value&&(function(e){return!e||0===e.length}(y)||function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(t[n]!==e[n].value)return!0;return!1}(y,A.value))&&E(A.value)}),[]),(0,r.useEffect)((function(){O([])}),[d]);return(0,_.jsxs)("div",{className:td.container,children:[(0,_.jsx)(i.FormItemWrapper,{label:A.label,labelIcon:mr(A.tooltip),labelIconTooltip:A.tooltip,tooltipAsHtml:A.tooltipAsHtml,markAsRequired:m,statusText:null!=o?o:T,explanationText:A.explanationText,explanationTextAsHtml:A.explanationTextAsHtml,invalid:u,validationMessage:A.validationMessage,disabled:c,inactiveMessage:A.inactiveMessage,children:(0,_.jsx)(Ju,{isDisabled:c,isMulti:C,invalid:u,value:y,placeholder:s,loadOptions:k,onMenuOpen:function(){return j.current.pageIndex=0},onClear:function(){O([]),null==l||l([])},onChange:C?B:D,menuType:A.menuType,dataTestId:null===(t=A.label?A.label:s)||void 0===t?void 0:t.toLowerCase().replace(/\s/g,"-")},d)}),f&&(0,_.jsx)(i.Inline,{spacingY:i.Spacing.S,children:f})]})};function ad(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}id.displayName="ObjectSelectorBase";var sd=function(e){var t=So({},(Oo(e),e));return(0,_.jsx)(id,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))};sd.displayName="ObjectSelectorFormComponent";var ld=s(8286),cd={};cd.styleTagTransform=wn(),cd.setAttributes=bn(),cd.insert=An().bind(null,"head"),cd.domAPI=gn(),cd.insertStyleElement=xn();fn()(ld.Z,cd);const ud=ld.Z&&ld.Z.locals?ld.Z.locals:void 0;var dd=["requiredLength","requireLowercase","requireUppercase","requiredUniqueChars","requireDigit","requireNonAlphanumeric","ignorePasswordPolicy"],pd=function(e){var t,n,o=e.requiredLength,a=e.requireLowercase,s=e.requireUppercase,l=e.requiredUniqueChars,c=e.requireDigit,u=e.requireNonAlphanumeric,d=e.ignorePasswordPolicy,p=h(e,dd),f=g((0,r.useState)(!1),2),m=f[0],A=f[1],v=w().localization,b="passwordComponentId-"+p.name;return(0,_.jsx)(i.FormItemWrapper,{children:(0,_.jsxs)("div",{className:ud.container,children:[(0,_.jsx)(i.Input,{id:b,type:m?"text":"password",name:p.name,value:null!==(t=p.value)&&void 0!==t?t:void 0,onChange:function(e){p.onChange&&p.onChange(e.target.value)},invalid:p.invalid,validationMessage:p.validationMessage,disabled:p.disabled,markAsRequired:p.required,inactiveMessage:p.inactiveMessage,labelIcon:mr(p.tooltip),labelIconTooltip:p.tooltip,explanationText:(n="",o&&(n+=1===o?v.admin.base.formComponent.password.passwordLengthOne:vo(v.admin.base.formComponent.password.passwordLength,o)),l&&(n+=1===l?v.admin.base.formComponent.password.uniqueCharacterCountOne:vo(v.admin.base.formComponent.password.uniqueCharacterCount,l)),c&&(n+=v.admin.base.formComponent.password.numberCount),u&&(n+=v.admin.base.formComponent.password.symbolCount),s&&(n+=v.admin.base.formComponent.password.uppercaseCount),a&&(n+=v.admin.base.formComponent.password.lowercaseCount),n&&!d?"<ul>".concat(n,"</ul>"):""),explanationTextAsHtml:!0,tooltipAsHtml:p.tooltipAsHtml,dataTestId:p.name,autoComplete:"off"}),(0,_.jsxs)("div",{className:ud.labelContainer,children:[(0,_.jsx)("label",{htmlFor:b,children:p.label}),(0,_.jsx)(i.Button,{color:i.ButtonColor.Quinary,disabled:p.disabled,icon:m?"xp-eye-slash":"xp-eye",label:m?"Hide":"Show",onClick:function(){A(!m)}})]})]})})};function fd(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 md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fd(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gd=function(e){var t;return(0,_.jsx)(i.RadioGroup,{label:e.label,name:e.name,value:null!==(t=e.value)&&void 0!==t?t:e.required&&e.options.length>0?e.options[0].value:void 0,onChange:function(t){e.onChange&&e.onChange(t)},invalid:e.invalid,validationMessage:e.validationMessage,disabled:e.disabled,inline:e.inline,markAsRequired:e.required,inactiveMessage:e.inactiveMessage,labelIcon:mr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,children:e.options&&e.options.map((function(e,t){return(0,_.jsx)(i.RadioButton,md(md({dataTestId:e.label.toLocaleLowerCase().replace(/\s/g,"-")},e),{},{children:e.label}),t)}))})},hd=["label","placeholder","configuration","value","onChange","invalid","validationMessage","disabled","required","inactiveMessage","tooltip","explanationText","guid"],Ad=function(e){var t=e.label,n=e.placeholder,o=e.configuration,a=e.value,s=e.onChange,l=e.invalid,c=e.validationMessage,u=e.disabled,d=e.required,p=e.inactiveMessage,f=e.tooltip,m=e.explanationText,g=e.guid,A=h(e,hd),v=r.default.useRef(null);return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(i.RichTextEditor,{label:t,placeholder:n,value:a,onChange:function(e){return null==s?void 0:s(e)},invalid:l,validationMessage:c,disabled:u,inputRef:v,markAsRequired:d,inactiveMessage:p,labelIcon:mr(f),labelIconTooltip:f,explanationText:m,scrollableContainerId:"rte-scrollable-container-".concat(g),customConfiguration:o?JSON.parse(o):void 0,explanationTextAsHtml:A.explanationTextAsHtml,tooltipAsHtml:A.tooltipAsHtml,dataTestId:A.name})})},vd=function(e){var t=e.inputRef,n=e.froalaEditorConfigurator,o=w().localization,i=(0,r.useContext)(Po).fieldInfo,a=nr(i),s=a.assetPanelEnabled,l=a.imageExtensions,c=a.onLibrariesLoad,u=g((0,r.useState)(!1),2),d=u[0],p=u[1],f="insertAssetIcon",m="insertAsset",h=o.admin.base.formComponent.richTextEditor.insertImage.buttonLabel,A=o.admin.base.formComponent.richTextEditor.insertImage.disabledButtonTooltip,v=o.admin.base.formComponent.richTextEditor.insertImage.noExistingLibrary,b=o.admin.base.formComponent.richTextEditor.insertImage.actionButtonLabel,C=o.admin.base.formComponent.richTextEditor.insertImage.headline;null==n||n.defineIcon(f,{SVG_KEY:"insertImage"}),null==n||n.registerCommand(m,{title:h,icon:f,undo:!1,focus:!0,showOnMobile:!0,refreshAfterCallback:!1,callback:function(){p(!0)}}),s?null==n||n.enableButton(m,h):null==n||n.disableButton(m,A);return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(fr,{visible:d,enabled:s,onSelectAssets:function(e){e.forEach((function(e){var n;e.isImage&&(null==t||null===(n=t.current)||void 0===n||n.insertImage(e.urlPath.path,{alt:e.description,title:e.title}))}))},onLibrariesLoad:c,disabledLabel:v,fieldInfo:i,allowedExtensions:l,actionButtonLabel:b,headline:C,onPanelClosed:function(){p(!1)}})})},bd=function(e){var t;return(0,_.jsx)(i.Input,{type:"text",label:e.label,name:e.name,value:null!==(t=e.value)&&void 0!==t?t:void 0,onChange:function(t){e.onChange&&e.onChange(t.target.value)},invalid:e.invalid,validationMessage:e.validationMessage,disabled:e.disabled,markAsRequired:e.required,inactiveMessage:e.inactiveMessage,labelIcon:mr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,placeholder:e.watermarkText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,dataTestId:e.name})},Cd=s(7002),xd={};xd.styleTagTransform=wn(),xd.setAttributes=bn(),xd.insert=An().bind(null,"head"),xd.domAPI=gn(),xd.insertStyleElement=xn();fn()(Cd.Z,xd);const yd=Cd.Z&&Cd.Z.locals?Cd.Z.locals:void 0;var wd=["name","label","invalid","validationMessage","disabled","required","explanationText","inactiveMessage","tooltip","value","valueAsHtml"],_d=function(e){var t=e.name,n=e.label,r=e.invalid,o=e.validationMessage,a=e.disabled,s=e.required,l=e.explanationText,c=e.inactiveMessage,u=e.tooltip,d=e.value,p=e.valueAsHtml,f=h(e,wd),m=Kt()(yd.label);return(0,_.jsx)(i.FormItemWrapper,{label:u?n:void 0,markAsRequired:s,disabled:a,labelIcon:mr(u),labelIconTooltip:u,inactiveMessage:c,labelClassnames:m,invalid:r,validationMessage:o,explanationText:l,tooltipAsHtml:f.tooltipAsHtml,explanationTextAsHtml:f.explanationTextAsHtml,children:(0,_.jsx)(i.TextWithLabel,{label:u?void 0:n,dataTestId:t,value:d,valueAsHtml:p})})},Od=function(e){var t,n=!!e.copyButtonVisible;return(0,_.jsx)(i.TextArea,{label:e.label,name:e.name,value:null!==(t=e.value)&&void 0!==t?t:void 0,minRows:e.minRowsNumber,maxRows:e.maxRowsNumber,onChange:function(t){e.onChange&&e.onChange(t.target.value)},invalid:e.invalid,validationMessage:e.validationMessage,disabled:e.disabled,markAsRequired:e.required,inactiveMessage:e.inactiveMessage,labelIcon:mr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,dataTestId:e.name,renderActions:n?function(){return(0,_.jsx)(Vf,{textToCopy:e.value,disabled:e.disabled,dataTestId:e.name+"_copybutton"})}:void 0,placeholder:e.watermarkText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml})},Sd=s(4409),jd={};jd.styleTagTransform=wn(),jd.setAttributes=bn(),jd.insert=An().bind(null,"head"),jd.domAPI=gn(),jd.insertStyleElement=xn();fn()(Sd.Z,jd);const Td=Sd.Z&&Sd.Z.locals?Sd.Z.locals:void 0;var Dd=["onChange","ruleDefinitions"];function Bd(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 kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pd=function(e,t,n){return{name:"",caption:"",visible:!0,minWidth:e,maxWidth:t,contentType:n,searchable:!1,sortable:!1}},Ed=Pd(3,3,i.ColumnContentType.Action),Id=Pd(8,50,i.ColumnContentType.Text),Md="calc(".concat(i.Dimensions.GridUnit," * ",70,")"),Ld="CreateValidationRule",Nd=function(e){var t=e.onChange,n=e.ruleDefinitions,o=h(e,Dd),a=g((0,r.useState)(o.value),2),s=a[0],l=a[1],c=g((0,r.useState)(!1),2),u=c[0],d=c[1],f=g((0,r.useState)(),2),m=f[0],A=f[1],b=g((0,r.useState)(),2),C=b[0],x=b[1],y=g((0,r.useState)(o.rulesDescriptions),2),O=y[0],S=y[1],T=w().localization,D=z(),B=D.setRedirectToDialog,k=D.messages,P=D.removeDialogMessage;(0,r.useEffect)((function(){B(u)}),[B,u]);var E=j().executeCommand,I=(0,r.useMemo)((function(){return s.filter((function(e){return n.map((function(e){return e.identifier})).includes(e.validationRuleIdentifier)})).map((function(e){return{identifier:e.identifier,disabled:!1,cells:[{type:i.CellType.String,value:O[e.identifier]},{type:i.CellType.Action,actions:[{destructive:!0,disabled:!1,label:"Delete",icon:"xp-bin"}],onInvokeAction:function(){return new Promise((function(){var n=s.indexOf(e);if(n>-1&&confirm(T.admin.base.formComponent.validationRules.deleteConfirmation)){var r=L(s);r.splice(n,1),l(r),null==t||t(r)}}))}}]}}))}),[s,n,O,t,T]),M=(0,r.useRef)(null),N=function(){var e=p(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==m){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,E(Ld,{identifier:m.identifier,formData:t});case 4:if(n=e.sent){e.next=7;break}return e.abrupt("return",!1);case 7:if(n.isValid){e.next=10;break}return A((function(e){return e&&kd(kd({},e),{},{componentsProperties:n.componentsProperties})})),e.abrupt("return",!1);case 10:return e.abrupt("return",n);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),R=function(){A(void 0),x(void 0),d(!1)},F=function(){var e=p(v().mark((function e(n){var r,o,i,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N(n.values);case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:o=L(s),i=kd({},O),void 0!==C?(a=s.indexOf(C),o.splice(a,1,r.rule),delete i[C.identifier]):o.push(r.rule),i[r.rule.identifier]=r.description,l(o),null==t||t(o),S(i),A(void 0),x(void 0),d(!1);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.Box,{children:I.length>0?(0,_.jsx)(i.Table,{isHeaderVisible:!1,columns:[Id,Ed],rows:I,onRowClick:function(e){return function(e){var t=s.find((function(t){return t.identifier===I[e].identifier})),r=n.find((function(e){return e.identifier===(null==t?void 0:t.validationRuleIdentifier)}));if(void 0!==r){var o=r.componentsProperties.map((function(e){var n=e.name.charAt(0).toLowerCase()+e.name.slice(1);return kd(kd({},e),{},{value:null==t?void 0:t.ruleValues[n]})})),i=kd(kd({},r),{},{componentsProperties:o});A(i),x(t),d(!0)}}(e)}}):(0,_.jsx)("div",{className:Td.noRowsText,children:T.admin.base.formComponent.validationRules.noRules})}),(0,_.jsx)(i.Box,{spacingTop:i.Spacing.L,children:(0,_.jsx)(i.Button,{disabled:0===n.length,color:i.ButtonColor.Secondary,onClick:function(){return d(!0)},label:T.admin.base.formComponent.validationRules.addRule})}),(0,_.jsx)(i.Dialog,{isOpen:u,onClose:R,width:Md,isFullScreen:!1,headerCloseButton:{tooltipText:T.admin.base.dialog.close,shortcuts:"Esc"},isDismissable:!0,headline:C?T.admin.base.formComponent.validationRules.editRule:T.admin.base.formComponent.validationRules.addRule,confirmAction:{label:T.admin.base.formComponent.validationRules.dialog.submit,onClick:function(){var e;null===(e=M.current)||void 0===e||e.submit()},disabled:void 0===m},cancelAction:{label:T.admin.base.dialog.cancel,onClick:R},notificationBar:k.map((function(e){return(0,_.jsx)(i.NotificationBarAlert,{onDismiss:function(){return e.id&&P(e.id)},children:e.message},e.id)})),children:void 0===m?(0,_.jsx)(i.Row,{wrap:i.RowWrap.Wrap,spacing:i.Spacing.L,children:n.map((function(e,t){return(0,_.jsx)(i.Column,{className:Td.ruleColumn,children:(0,_.jsx)(i.OptionTile,{label:e.name,onClick:function(){return function(e){A(e)}(e)}})},t)}))}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:m.name}),(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:m.description}),(0,_.jsx)(Jd,{ref:M,onSubmit:F,items:m.componentsProperties})]})})]})},Rd=function(e){var t;return(0,_.jsx)(i.CodeEditor,{label:e.label,value:null!==(t=e.value)&&void 0!==t?t:void 0,onChange:function(t){e.onChange&&(t.replace(/\n/g,"\r\n")!==e.value&&e.onChange(t))},invalid:e.invalid,validationMessage:e.validationMessage,disabled:e.disabled,markAsRequired:e.required,inactiveMessage:e.inactiveMessage,labelIcon:mr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,dataTestId:e.name,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,language:e.language})},Fd=r.default.createContext({dataChanged:!1,getDataChanged:function(){return!1},setDataChanged:function(){},resetAllDataChanged:function(){},setResetAllDataChangedCallback:function(){},getNewId:function(){return""}});Fd.displayName="EditableObjectStatusContext";var zd=function(){return r.default.useContext(Fd)},Wd=function(){return r.default.useContext(Fd)},Hd=r.default.forwardRef((function(e,t){var n=e.children,o=g((0,r.useState)(!1),2),i=o[0],a=o[1],s=(0,r.useRef)(new Set),l=(0,r.useCallback)((function(e){return s.current.has(e)}),[]),c=(0,r.useCallback)((function(e,t){t?s.current.add(e):s.current.delete(e),a(0!==s.current.size)}),[a]),u=(0,r.useCallback)((function(){d.current.forEach((function(e){return e()})),s.current.clear(),d.current.clear(),a(!1)}),[a]),d=(0,r.useRef)(new Map),p=(0,r.useCallback)((function(e,t){void 0!==t?d.current.set(e,t):d.current.delete(e)}),[]),f=(0,r.useCallback)(Wn,[]),m=Wd(),h=m.setDataChanged,A=m.getNewId,v=m.setResetAllDataChangedCallback,b=(0,r.useRef)(A());(0,r.useEffect)((function(){h(b.current,i)}),[h,i]),(0,r.useEffect)((function(){v(b.current,u)}),[v,u]),(0,r.useEffect)((function(){var e=b.current;return function(){h(e,!1),v(e,void 0)}}),[h,v]);var C=(0,r.useMemo)((function(){return{dataChanged:i,getDataChanged:l,setDataChanged:c,resetAllDataChanged:u,setResetAllDataChangedCallback:p,getNewId:f}}),[i,l,c,u,p,f]);return(0,r.useImperativeHandle)(t,(function(){return C}),[C]),(0,_.jsx)(Fd.Provider,{value:C,children:n})}));Hd.displayName="EditableObjectStatusProvider";var Vd=function(e){return void 0!==e.title},Yd=function(e){for(var t=null,n=[],r=[],o=0;o<e.length;o++){var i=e[o];Vd(i)?(0!==o&&r.push({category:t,components:n}),t=i,n=[]):n.push(i)}return r.push({category:t,components:n}),r},Zd=s(783),Ud={};Ud.styleTagTransform=wn(),Ud.setAttributes=bn(),Ud.insert=An().bind(null,"head"),Ud.domAPI=gn(),Ud.insertStyleElement=xn();fn()(Zd.Z,Ud);const Gd=Zd.Z&&Zd.Z.locals?Zd.Z.locals:void 0;var qd=function(e){var t=e.category,n=e.children,o=g((0,r.useState)(!1),2),a=o[0],s=o[1];return(0,r.useEffect)((function(){s(!0===(null==t?void 0:t.collapsible)&&!0===(null==t?void 0:t.isCollapsed))}),[t]),t?(0,_.jsxs)("div",{children:[(0,_.jsxs)("div",{className:Gd.formCategory,children:[(0,_.jsx)("div",{className:Gd.title,children:t.title}),t.tooltip&&(0,_.jsx)(i.Tooltip,{tooltipText:t.tooltip,children:(0,_.jsx)("div",{className:Gd.infoIcon,children:(0,_.jsx)(i.Icon,{name:"xp-i-circle"})})}),t.collapsible&&(0,_.jsx)(i.Button,{color:i.ButtonColor.Quinary,size:i.ButtonSize.XS,icon:a?"xp-chevron-down":"xp-chevron-up",onClick:function(){return s((function(e){return!e}))}})]}),!a&&(0,_.jsx)("div",{className:Gd.formComponents,children:n})]}):(0,_.jsx)("div",{children:n})};function Qd(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 Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qd(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kd=function(e){return!Object.values(e).filter((function(e){return e.length})).length},Jd=r.default.forwardRef((function(e,t){var n=e.items,o=e.children,a=e.name,s=void 0===a?"DefaultForm":a,l=e.onChange,c=e.onSubmit,d=e.onValidChange,p=e.disabled,f=void 0!==p&&p,m=e.dataTestId,h=e.fieldCssClass,A=e.timeStamp,v=g((0,r.useState)(Yd(n)),2),b=v[0],C=v[1],x=Wd(),y=x.getDataChanged,w=x.setDataChanged,O=x.getNewId,S=(0,r.useRef)(O()),j=V().clearMessages;(0,r.useEffect)((function(){var e=Yd(n);C(e)}),[n]),(0,r.useEffect)((function(){w(S.current,!1)}),[w,A]),(0,r.useEffect)((function(){var e=S.current;return function(){w(e,!1)}}),[w]);var T=(0,r.useState)((function(){var e={};return b.forEach((function(t){return t.components.forEach((function(t){return e[t.name]=t.value}))})),e})),D=g(T,2),B=D[0],k=D[1],P=r.default.useRef({}),E=function(e){k(e),P.current=e};(0,r.useEffect)((function(){var e={};b.forEach((function(t){return t.components.forEach((function(t){return e[t.name]=t.value}))})),E(e)}),[b]);var I=g((0,r.useState)({}),2),M=I[0],L=I[1],N=Q((function(e){null==d||d(e)}),X),R=function(e,t,n){var r=Xd(Xd({},M),{},u({},e,[]));if(Kd(r)){var o={values:P.current,changedField:{name:e,hasDependencies:t}};t&&n?N(o):null==d||d(o)}},F=Q((function(e){null==l||l(e)}),X);(0,r.useImperativeHandle)(t,(function(){return{dataChanged:y(S.current),submit:function(e){Kd(M)&&(j(),F.cancel(),null==c||c({values:B},e))},resetDataChanged:function(){w(S.current,!1)}}}),[j,B,y,M,c,w,F]);var z=(0,r.useCallback)((function(e){e.preventDefault(),Kd(M)&&(j(),null==c||c({values:B}))}),[B,c,M,j]),W=function(e,t,n,r){var o=Xd(Xd({},P.current),{},u({},t,e));E(o),w(S.current,!0);var i={values:o,changedField:{name:t,hasDependencies:n}};n&&r?F(i):null==l||l(i)};return(0,_.jsxs)("form",{onSubmit:z,"data-testid":m,children:[(0,_.jsx)(uo.Provider,{value:{name:s,dataChanged:y(S.current),preventNesting:!1},children:(0,_.jsx)(i.Stack,{spacing:i.Spacing.XXL,children:b.map((function(e,t){return(0,_.jsx)(qd,{category:e.category,children:(0,_.jsx)(i.Stack,{spacing:i.Spacing.XL,children:e.components.map((function(e){return(0,_.jsx)(Mo,Xd(Xd({},e),{},{disabled:f||e.disabled,value:B[e.name],fieldValues:B,onChange:function(t){return W(t,e.name,e.hasDependencies,e.debounceValueChange)},onValidated:function(t){return function(e,t){L(Xd(Xd({},M),{},u({},e,t)))}(e.name,t)},onValidChange:function(){return R(e.name,e.hasDependencies,e.debounceValueChange)},fieldCssClass:h}),"".concat(s,"_").concat(e.name))}))})},t)}))})}),o]})}));Jd.displayName="Form";var $d=function(e,t){var n;return{isValid:(null!==(n=null==t?void 0:t.length)&&void 0!==n?n:0)<=e.maxLength,errorMessage:e.errorMessage}},ep=function(e,t){var n;return{isValid:(null!==(n=null==t?void 0:t.length)&&void 0!==n?n:0)>=e.minLength,errorMessage:e.errorMessage}},tp=function(e,t){return{isValid:!(null==t||("string"==typeof t||t instanceof String)&&""===t.trim()||np(t)),errorMessage:e.errorMessage}},np=function(e){var t=e[Symbol.iterator],n="function"==typeof t&&t.call(e).next();return n&&void 0===n.value&&n.done};function rp(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return op(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return op(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function op(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 ip=function(e,t){if(!e.invalidAssets||0===e.invalidAssets.length)return{isValid:!0,errorMessage:e.errorMessage};var n,r=!0,o=rp(t);try{var i=function(){var t=n.value;if(e.invalidAssets.some((function(e){return e.identifier===t.identifier&&e.siteIdentifier===t.siteIdentifier})))return r=!1,"break"};for(o.s();!(n=o.n()).done;){if("break"===i())break}}catch(e){o.e(e)}finally{o.f()}return{isValid:r,errorMessage:e.errorMessage}},ap=function(e,t){if(null===t||0===t.length)return{isValid:!0,errorMessage:null};var n=[],r=e.allowedExtensions.map((function(e){return e.toLocaleLowerCase()}));if(t.forEach((function(e){var t,o,i=null!==(t=null===(o=e.name.split(".").pop())||void 0===o?void 0:o.toLocaleLowerCase())&&void 0!==t?t:"";r.includes(i)||n.push(i)})),n.length>0&&e.errorMessage){var o=L(new Set(n));return{isValid:!1,errorMessage:e.errorMessage.replace("{0}",o.join(", "))}}return{isValid:!0,errorMessage:null}},sp=function(e,t){var n=e.invalidItems,r=e.errorMessage;return{isValid:!lp(t,n),errorMessage:r}},lp=function(e,t){return null==t?void 0:t.some((function(t){return e.find((function(e){return JSON.stringify(e)===JSON.stringify(t.value)}))}))},cp=function(e,t){return e.maxItems>0&&(null==t?void 0:t.length)>e.maxItems?{isValid:!1,errorMessage:vo(e.errorMessage,t.length,e.maxItems)}:{isValid:!0,errorMessage:e.errorMessage}},up=function(){return{isValid:!0,errorMessage:null}},dp=function(e,t){return{isValid:null==t||0===t.length||e.useCustomEmailRegExpString||(e.allowMultipleAddresses?mp(t):fp(t)),errorMessage:e.errorMessage}},pp=new RegExp("^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$");function fp(e){return pp.test(e)}function mp(e){return e.split(";").every((function(e){return fp(e)}))}var gp=function(e,t){return{isValid:Ap(t),errorMessage:e.errorMessage}},hp=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function Ap(e){return hp.test(e)}var vp=function(e,t){return{isValid:t<=e.maxValue,errorMessage:e.errorMessage}},bp=function(e,t){return{isValid:t>=e.minValue,errorMessage:e.errorMessage}},Cp=function(e,t){var n,r,o,i;if(null===t)return{isValid:!0,errorMessage:null};if(Number.isNaN(t))return{isValid:!1,errorMessage:e.formatErrorMessage};var a=new RegExp("[0]+$"),s=new RegExp("[0-9]","g"),l=t.toString().split(e.delimiter);if(l.length>2)return{isValid:!1,errorMessage:e.formatErrorMessage};var c=null!==(n=null===(r=l[0]&&l[0].match(s))||void 0===r?void 0:r.length)&&void 0!==n?n:0,u=null!==(o=null===(i=l[1]&&l[1].replace(a,"").match(s))||void 0===i?void 0:i.length)&&void 0!==o?o:0;return c>e.allowedIntegerDigits?{isValid:!1,errorMessage:e.allowedIntegerDigitsErrorMessage}:u>e.allowedDecimalDigits?{isValid:!1,errorMessage:e.allowedDecimalDigitsErrorMessage}:{isValid:!0,errorMessage:null}},xp=function(e,t){if(null===t)return{isValid:!0,errorMessage:null};if("string"==typeof t&&(t=new Date(t),isNaN(t.getTime())))throw new Error("Incorrect value has been provided.");return new Date(e.invalidFormatDate).getTime()===t.getTime()?{isValid:!1,errorMessage:e.errorMessage}:{isValid:!0,errorMessage:null}},yp=function(e,t){return null===t?{isValid:!0,errorMessage:null}:{isValid:t>wp(new Date((new Date).getTime()-e.offset)),errorMessage:e.errorMessage}},wp=function(e){return new Date(e.getTime()-6e4*e.getTimezoneOffset())},_p=function(e,t){var n=j().executeCommand,r=go().executeCommand,o=function(){var o=p(v().mark((function o(i,a){var s;return v().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,l={identifiers:i,cultureCode:a},c=void 0,c=e.loadCommandName,t?r(t,c,l):n(c,l);case 2:if(s=o.sent){o.next=5;break}throw new Error("Load links: executeLoadLinksCommand() failed.");case 5:return o.abrupt("return",s.items);case 6:case"end":return o.stop()}var l,c}),o)})));return function(e,t){return o.apply(this,arguments)}}();return{retrieveLinks:o}},Op=function(e){var t=(0,r.useRef)(!1);(0,r.useEffect)((function(){return function(){t.current=!0}}),[]),(0,r.useEffect)((function(){return function(){t.current&&e()}}),[e])};function Sp(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return jp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jp(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function jp(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}function Tp(e,t){var n=function(){var e=p(v().mark((function e(t,n,o){var i,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=Sp(t),e.prev=1,i.s();case 3:if((a=i.n()).done){e.next=9;break}return s=a.value,e.next=7,r(s,n,o);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),i.e(e.t0);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})));return function(t,n,r){return e.apply(this,arguments)}}(),r=function(){var e=p(v().mark((function e(n,r,a){var s,c,u,d,p,f;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=0,c=r,u=o(n,r),d=1;case 3:if(!(d<u+1)){e.next=15;break}return p=n.slice(s,c),e.next=7,i(p,d,n.name,n.size);case 7:f=e.sent,l(f),a(d/u*100),s=c,c+=r;case 12:d++,e.next=3;break;case 15:return e.next=17,t({fileName:n.name,fileSize:n.size});case 17:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),o=function(e,t){return e.size%t==0?e.size/t:Math.floor(e.size/t)+1},i=function(){var t=p(v().mark((function t(n,r,o,i){var s,l;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a(n);case 2:return s=t.sent,l={chunkData:s,chunkId:r,fileName:o,fileSize:i},t.next=6,e(l);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),a=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(e){return new Promise((function(t,n){var r,o=new FileReader;o.readAsDataURL(e),o.onloadend=function(){r=(r=o.result).substring(r.indexOf(",")+1),t(r)},o.onerror=function(e){return n(e)}}))},l=function(e){if(!e)throw Error("Upload of the file chunk failed.")};return n}var Dp=r.default.createContext({refetchDataInTemplates:function(){},refetchAll:!1});Dp.displayName="RefetchAllContext";var Bp=function(){return r.default.useContext(Dp)},kp=function(e){var t=e.children,n=g((0,r.useState)(!1),2),o=n[0],i=n[1],a=(0,r.useCallback)((function(){i(!1)}),[]);return(0,r.useEffect)((function(){a()})),(0,_.jsx)(Dp.Provider,{value:{refetchAll:o,refetchDataInTemplates:function(){i(!0)}},children:t})},Pp="/logon",Ep="returnUrl",Ip=function(e){var t=U();return t.pathname=t.pathname.replace(/\/$/,"")+Pp,e&&t.searchParams.append(Ep,e),t.href},Mp=function(e){return new URL(e).searchParams.get(Ep)},Lp={400:"Bad request.",403:"You are not authorized to perform this action.",404:"Not found.",408:"Request timeout.",413:"Request data is larger than limits defined by the server.",500:"Internal server error.",502:"Bad gateway.",503:"Service unavailable."},Np=function(e,t){t?t(e):console.error(e.message)},Rp=function(e,t){Np({statusCode:0,message:"".concat(x.admin.base.fetch.networkError," '").concat(e,"'")},t)},Fp=function(e,t){var n=Lp[e],r=n?"".concat(e," - ").concat(n):"".concat(e,".");Np({statusCode:e,message:"".concat(x.admin.base.fetch.unexpectedError," ").concat(r)},t)};function zp(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 Wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hp=function(){var e=p(v().mark((function e(t,n,r,o,i,a){var s,l,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=U().pathname,d=t,u=(u=s).replace(/\/$/,""),d=d.replace(/^\//,""),l="".concat(u,"/").concat(d),e.next=4,fetch(l,{method:"post",cache:"no-cache",referrerPolicy:"same-origin",credentials:"same-origin",mode:"same-origin",headers:Wp({Accept:"application/json"},r),body:n,signal:null==a?void 0:a.signal}).catch((function(e){Rp(null==e?void 0:e.message,o)}));case 4:if(c=e.sent,e.t0=c,!e.t0){e.next=10;break}return e.next=9,Vp(c.status,o,i);case 9:e.t0=e.sent;case 10:if(!e.t0){e.next=12;break}return e.abrupt("return",c.json().catch((function(){return c})));case 12:return e.abrupt("return",void 0);case 14:case"end":return e.stop()}var u,d}),e)})));return function(t,n,r,o,i,a){return e.apply(this,arguments)}}(),Vp=function(){var e=p(v().mark((function e(t,n,r){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next=200===e.t0?3:401===e.t0?4:7;break;case 3:return e.abrupt("return",!0);case 4:return o=void 0,o=Ip(window.location.pathname),window.location.replace(o),r&&r(),e.abrupt("break",9);case 7:return Fp(t,n),e.abrupt("break",9);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}var o}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function Yp(e,t){for(var n=e.length;n--;)if(t(e[n],n,e))return n;return-1}var Zp,Up={refreshToken:(Zp=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return Zp.apply(this,arguments)}),getXsrfHeader:function(){return{}}},Gp=r.default.createContext(Up);Gp.displayName="AntiForgeryContext";var qp=function(){var e=r.default.useContext(Gp);if(void 0===e)throw new Error("useAntiForgery must be used within a AntiForgeryProvider");return e},Qp=function(e){var t=e.children,n=g((0,r.useState)(Xp("xsrf-header")),1)[0],o=g((0,r.useState)(Xp("xsrf-token")),2),i=o[0],a=o[1],s=(0,r.useCallback)((function(){return u({},n,i)}),[n,i]),l=(0,r.useCallback)(p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hp("/api/getxsrftoken",new FormData,s());case 2:if(!(t=e.sent)){e.next=7;break}a(t),e.next=8;break;case 7:throw new Error("Failed to refresh XSRF token.");case 8:case"end":return e.stop()}}),e)}))),[a,s]);return(0,_.jsx)(Gp.Provider,{value:{refreshToken:l,getXsrfHeader:s},children:t})},Xp=function(e){var t=Kp(e),n="";return t&&(n=t.content,t.content=""),n},Kp=function(e){return document.head.querySelector("meta[name='".concat(e,"']"))},Jp=r.default.createContext({isCustomRightSidebarDisplayed:!1,setIsCustomRightSidebarDisplayed:function(){}});Jp.displayName="CustomRightSidebarContext";var $p=function(){return r.default.useContext(Jp)},ef=function(e){var t=e.children,n=g((0,r.useState)(!1),2),o=n[0],i=n[1];return(0,_.jsx)(Jp.Provider,{value:{isCustomRightSidebarDisplayed:o,setIsCustomRightSidebarDisplayed:i},children:t})},tf={isNested:!1,setActions:function(){throw new Error("setActions must be defined in provider")}},nf=r.default.createContext(tf);nf.displayName="NestedPageProviderContext";var rf=function(){var e=r.default.useContext(nf);if(void 0===e)throw new Error("useNestedPage must be used within a NestedPageProvider");return e},of=function(e){var t=e.children,n=g((0,r.useState)(!0),1)[0],o=g((0,r.useState)(),2),i=o[0],a=o[1];return(0,_.jsx)(nf.Provider,{value:{isNested:n,actions:i,setActions:a},children:t})};function af(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return sf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sf(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function sf(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}function lf(){var e=w().localization,t=(0,o.useNavigate)(),r=Bp().refetchDataInTemplates,i=q(),a=V().addNotificationMessage,s=qp().getXsrfHeader,l=function(e,t){var n=c(e,t);a(n)},c=function(t,r){return null==r||r.signal.throwIfAborted(),403===t.statusCode?{message:e.admin.base.command.forbiddenAccess,type:n.Warning,messageAsHtml:!0}:{message:t.message,type:n.Error}},u=function(){var e=p(v().mark((function e(n,o,c,u){var d,p,f,m,g;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((d=new FormData).append("path",i),d.append("command",n),d.append("data",JSON.stringify(o)),c){p=af(c);try{for(p.s();!(f=p.n()).done;)m=f.value,d.append("files",m)}catch(e){p.e(e)}finally{p.f()}}return e.next=7,Hp("api/cmd",d,s(),(function(e){return l(e,u)}),void 0,u);case 7:if((g=e.sent)&&(null==u||!u.signal.aborted)){e.next=10;break}return e.abrupt("return",void 0);case 10:if(g.messages&&g.messages.forEach((function(e){return a({message:e.message,type:e.level})})),g.refetchAll&&r(),!g.navigationUrl){e.next=15;break}return t(g.navigationUrl),e.abrupt("return",{result:g.result,command:g.commandName});case 15:return e.abrupt("return",{result:g.result,command:g.commandName});case 16:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}();return u}function cf(e,t,n){var o=j(),i=o.registerCommand,a=o.executeCommand,s=lf(),l=g((0,r.useState)(!1),2),c=l[0],u=l[1],d=(0,r.useRef)(t),f=function(){var t=p(v().mark((function t(n,r,o,i){var l,c,u,p,f;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==(null===(l=d.current)||void 0===l||null===(c=l.before)||void 0===c?void 0:c.call(l))){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,s(e,r,o,i);case 4:if(u=t.sent,n.cancelled||null!=i&&i.signal.aborted){t.next=9;break}if(null===(p=d.current)||void 0===p||null===(f=p.after)||void 0===f||f.call(p,null==u?void 0:u.result),null==u||!u.command){t.next=9;break}return t.abrupt("return",a(u.command,u.result));case 9:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),m=function(){var e=p(v().mark((function e(t,n,r){var o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f({cancelled:!1},t||(null===(o=d.current)||void 0===o?void 0:o.data),n,r));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){d.current=t})),(0,r.useEffect)((function(){var e,t,r={cancelled:!1};(c&&n||null!==(e=d.current)&&void 0!==e&&e.executeOnMount)&&f(r,null===(t=d.current)||void 0===t?void 0:t.data);return u(!0),function(){r.cancelled=!0}}),null!=n?n:[]),i(e,m),{execute:(0,r.useRef)(m).current}}var uf=["calloutConfiguration","onActionButtonStatusChanged"];function df(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 pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?df(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):df(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ff=function(e){var t,n,a,s,l=e.calloutConfiguration,c=e.onActionButtonStatusChanged,u=h(e,uf),d=g((0,r.useState)(null!==(t=null===(n=l.actionButton)||void 0===n?void 0:n.inProgress)&&void 0!==t&&t),2),f=d[0],m=d[1],A=g((0,r.useState)(null!==(a=null===(s=l.actionButton)||void 0===s?void 0:s.inProgress)&&void 0!==a&&a),2),b=A[0],x=A[1],y=j().executeCommand,O=w().localization,S=(0,o.useNavigate)(),T=C().sanitize,D=function(){var e=p(v().mark((function e(){var t,n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=null===(t=l.actionButton)||void 0===t?void 0:t.redirectUrl)){e.next=5;break}S(n),e.next=10;break;case 5:return m(!0),e.next=8,E();case 8:null!=(r=e.sent)&&r.inProgress&&x(!0);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=(0,r.useCallback)(function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[y]),k=(0,r.useCallback)(p(v().mark((function e(){var t,n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null===(t=l.actionButton)||void 0===t?void 0:t.statusCommandName){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,B(n);case 5:if(r=e.sent){e.next=8;break}return e.abrupt("return");case 8:P(r)||(c&&c(),m(!1),x(!1));case 10:case"end":return e.stop()}}),e)}))),[B,c,l]),P=function(e){return e&&e.inProgress},E=(0,r.useCallback)(p(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null===(t=l.actionButton)||void 0===t?void 0:t.clickCommandName){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,y(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),[y,l]),I=l.actionButton&&l.actionButton.statusCommandName&&f?3e3:null;M(p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=3;break}return e.next=3,k();case 3:case"end":return e.stop()}}),e)}))),I);var L;return(0,_.jsx)(i.Callout,pf(pf({type:l.type,headline:l.headline,placement:l.placement,actionButton:l.actionButton&&(0,_.jsx)(i.Button,{type:i.ButtonType.Button,label:l.actionButton.text,onClick:D,inProgress:f,disabled:l.actionButton.disabled,dataTestId:"callout-button-".concat(null===(L=l.actionButton.clickCommandName)||void 0===L?void 0:L.toLowerCase())}),subheadline:function(e){switch(e){case i.CalloutType.QuickTip:return O.admin.base.callout.quickTip;case i.CalloutType.FriendlyWarning:return O.admin.base.callout.friendlyWarning;default:return O.admin.base.callout.quickTip}}(l.type)},u),{},{children:l.contentAsHtml?(0,_.jsx)("div",{dangerouslySetInnerHTML:{__html:T(l.content)}}):(0,_.jsx)("div",{children:l.content})}))};ff.displayName="Callout";var mf=function(e){var t=e.headline,n=e.confirmationButtonLabel,r=e.isConfirmationButtonDestructive,o=e.onCancellation,a=e.onConfirmation,s=e.dataTestId,l=e.children,c=e.className,u=e.overlayClassName,d=w().localization;return(0,_.jsx)(i.Dialog,{isOpen:!0,headline:t,onClose:function(){return null==o?void 0:o()},isDismissable:!0,headerCloseButton:{tooltipText:d.admin.base.dialog.close,shortcuts:"Esc"},confirmAction:{label:n,onClick:function(){return null==a?void 0:a()},destructive:r},cancelAction:{label:d.admin.base.dialog.cancel,onClick:function(){return null==o?void 0:o()}},dataTestId:s,className:c,overlayClassName:u,children:l})},gf=s(7013),hf={};hf.styleTagTransform=wn(),hf.setAttributes=bn(),hf.insert=An().bind(null,"head"),hf.domAPI=gn(),hf.insertStyleElement=xn();fn()(gf.Z,hf);const Af=gf.Z&&gf.Z.locals?gf.Z.locals:void 0;var vf=function(e){var t=e.onCancellation,n=e.onConfirmation,r=e.showDialog,o=e.texts;return(0,_.jsx)(_.Fragment,{children:r&&(0,_.jsx)(mf,{headline:o.headline,confirmationButtonLabel:o.confirmLabel,isConfirmationButtonDestructive:!0,onCancellation:t,onConfirmation:n,dataTestId:"prompt-dialog",overlayClassName:Af.overlay,children:(0,_.jsx)(i.Box,{children:o.message})})})},bf=function(e){var t=e.onConfirmation,n=e.enableDialog,o=e.texts,i=g((0,r.useState)(!1),2),a=i[0],s=i[1],l=g((0,r.useState)(!1),2),c=l[0],u=l[1],d=B((function(){s(n)}),n&&!c);(0,r.useEffect)((function(){c&&(u(!1),d.retry())}),[d,c]);return(0,_.jsx)(vf,{texts:o,onCancellation:function(){s(!1)},onConfirmation:function(){t(),s(!1),u(!0)},showDialog:a})},Cf=r.default.createContext({});Cf.displayName="PromptDialogContext";var xf=function(){var e=w().localization,t=r.default.useContext(Cf);return t.setTexts({headline:e.admin.base.promptDialog.title,confirmLabel:e.admin.base.promptDialog.confirm,message:e.admin.base.promptDialog.message}),t};function yf(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 wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yf(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _f=function(e){var t=e.children,n=zd(),o=n.dataChanged,i=n.resetAllDataChanged,a=w().localization,s=g((0,r.useState)(!1),2),l=s[0],c=s[1],u=g((0,r.useState)(!1),2),d=u[0],p=u[1],f=(0,r.useRef)(new Set),m=(0,r.useRef)((function(){})),h=(0,r.useRef)({headline:a.admin.base.promptDialog.title,confirmLabel:a.admin.base.promptDialog.confirm,message:a.admin.base.promptDialog.message}),A=(0,r.useCallback)((function(e,t){t?f.current.add(e):f.current.delete(e),p(0!==f.current.size)}),[]),v=(0,r.useCallback)(Wn,[]),b=(0,r.useCallback)((function(){i(),m.current()}),[i]);return(0,_.jsxs)(Cf.Provider,{value:{setPromptEnabled:c,setPromptSuppressed:A,setOnConfirmation:function(e){m.current=e},setTexts:function(e){h.current=wf(wf({},h.current),e)},getNewId:v},children:[t,(0,_.jsx)(bf,{enableDialog:(o||l)&&!d,onConfirmation:b,texts:h.current})]})},Of=["action"];function Sf(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 jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tf=function(e){var t,n,o=e.action,a=h(e,Of),s=j().executeCommand,l=g((0,r.useState)(!1),2),c=l[0],u=l[1],d=(0,r.useRef)(!1),f=g((0,r.useState)(!1),2),m=f[0],A=f[1];(0,r.useEffect)((function(){return d.current=!0,function(){d.current=!1}}),[]);var b=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!o.confirmation){e.next=5;break}A(!0),e.next=9;break;case 5:return u(!0),e.next=8,s(o.parameter);case 8:d.current&&u(!1);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,s(o.parameter);case 3:d.current&&u(!1),A(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(vf,{showDialog:m,onConfirmation:C,onCancellation:function(){return A(!1)},texts:{headline:null!==(t=o.confirmation)&&void 0!==t?t:"",message:null!==(n=o.confirmationDetail)&&void 0!==n?n:"",confirmLabel:o.confirmationButton}}),(0,_.jsx)(i.Button,jf(jf({},a),{},{onClick:b,inProgress:c,label:o.label,disabled:o.disabled,icon:o.icon,destructive:o.destructive}))]})};Tf.displayName="ActionButton";var Df=["href"];function Bf(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 kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pf=r.default.forwardRef((function(e,t){var n=e.href,r=h(e,Df),a=(0,o.useNavigate)(),s=(0,o.useHref)(n);return(0,_.jsx)(i.LinkButton,kf(kf({anchorRef:t},r),{},{href:s,onClick:function(e){r.target||(e.preventDefault(),a(n))}}))}));Pf.displayName="AppLinkButton";var Ef=["action"];function If(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 Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?If(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lf=function(e){var t=e.action,n=h(e,Ef);return(0,_.jsx)(Pf,Mf(Mf({dataTestId:"".concat(t.label.toLowerCase().replace(/\s/g,"-"),"-button")},n),{},{href:t.parameter,label:t.label,disabled:t.disabled,title:t.title,icon:t.icon}))};function Nf(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 Rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Lf.displayName="ActionLinkButton";var Ff=function(e){var t=So({},(Oo(e),e));return(0,_.jsx)(i.Button,Rf(Rf({},t),{},{size:i.ButtonSize.S,color:i.ButtonColor.Secondary}))};Ff.displayName="TextAreaActionButton";var zf=s(5927),Wf={};Wf.styleTagTransform=wn(),Wf.setAttributes=bn(),Wf.insert=An().bind(null,"head"),Wf.domAPI=gn(),Wf.insertStyleElement=xn();fn()(zf.Z,Wf);const Hf=zf.Z&&zf.Z.locals?zf.Z.locals:void 0;var Vf=function(e){var t=e.textToCopy,n=e.disabled,o=e.dataTestId,a=w().localization,s=g((0,r.useState)(!1),2),l=s[0],c=s[1],u=g((0,r.useState)(!1),2),d=u[0],f=u[1],m=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!1),e.prev=1,e.next=4,navigator.clipboard.writeText(t||"");case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),f(!0);case 9:return e.prev=9,c(!0),setTimeout((function(){c(!1)}),2e3),e.finish(9);case 13:case"end":return e.stop()}}),e,null,[[1,6,9,13]])})));return function(){return e.apply(this,arguments)}}(),h=Kt()(Hf.statusWrapper,l&&Hf.isVisible),A=Kt()(Hf.buttonWrapper,!l&&Hf.isVisible);return(0,_.jsxs)("div",{className:Hf.wrapper,children:[(0,_.jsx)("div",{className:h,children:(0,_.jsx)(i.SimpleStatusDefault,{content:{label:d?a.admin.base.textArea.copyError:a.admin.base.textArea.copySuccess,iconName:"xp-check",iconAlign:i.SimpleStatusAlign.Left}})}),(0,_.jsx)("div",{className:A,children:(0,_.jsx)(Ff,{label:a.admin.base.textArea.copyButtonLabel,icon:"xp-doc-copy",onClick:m,disabled:n||l,dataTestId:o})})]})};function Yf(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 Zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Vf.displayName="TextAreaCopyButton";var Uf=function(e){var t=E("".concat(e.componentName,"CardComponent"));return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(Dg,{}),children:t&&(0,_.jsx)(t,Zf({},e))})})},Gf=s(5e3),qf={};qf.styleTagTransform=wn(),qf.setAttributes=bn(),qf.insert=An().bind(null,"head"),qf.domAPI=gn(),qf.insertStyleElement=xn();fn()(Gf.Z,qf);const Qf=Gf.Z&&Gf.Z.locals?Gf.Z.locals:void 0;function Xf(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 Kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jf=r.default.forwardRef((function(e,n){var r=e.actions,o=e.headline,a=e.components,s=function(e){return e.type===t.Link?(0,_.jsx)(Lf,{action:e,color:i.ButtonColor.Secondary}):(0,_.jsx)(Tf,{action:e,color:i.ButtonColor.Secondary,dataTestId:e.label.toLocaleLowerCase().replace(/\s/g,"-")})};return(0,_.jsx)(i.Card,{ref:n,headline:o,footer:r&&r.map((function(e,t){return(0,_.jsx)(i.Box,{spacingRight:i.Spacing.L,children:s(e)},t)})),dataTestId:null==o?void 0:o.toLowerCase().replace(/\s/g,"-"),fullHeight:!0,children:a&&a.length>0&&a.map((function(e,t){return(0,_.jsx)("div",{className:Qf.overviewCardSection,children:(0,_.jsx)(Uf,Kf({},e),t)},t)}))})}));Jf.displayName="OverviewCard";var $f=s(3368),em={};em.styleTagTransform=wn(),em.setAttributes=bn(),em.insert=An().bind(null,"head"),em.domAPI=gn(),em.insertStyleElement=xn();fn()($f.Z,em);const tm=$f.Z&&$f.Z.locals?$f.Z.locals:void 0;function nm(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 rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nm(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var om=r.default.forwardRef((function(e,t){var n=e.cards;return(0,_.jsx)(i.Row,{ref:t,spacing:i.Spacing.XL,className:tm.overviewCardGroup,wrap:i.RowWrap.NoWrap,children:n.map((function(e,t){return(0,_.jsx)(i.Column,{children:(0,_.jsx)(Jf,rm({},e))},t)}))})}));om.displayName="OverviewCardGroup";var im=r.default.createContext({routes:[],visibleRoutes:[],navigation:{headline:"",items:[],isTemporary:!1,isSignificant:!1},breadcrumbs:{show:!0,isSignificant:!1},preventRefetch:!1,refetchAll:!1});im.displayName="TemplatePropertiesContext";var am,sm=function(e){var t=e.properties,n=e.children;return(0,_.jsx)(im.Provider,{value:t,children:n})};!function(e){e.MainContent="mainContent",e.Dialog="dialog",e.SidePanel="sidePanel"}(am||(am={}));var lm=r.default.createContext({breadcrumbs:[],pop:function(){},push:function(){},refreshItem:function(){},setStatusNode:function(){},statusNode:null});lm.displayName="BreadcrumbsContext";var cm,um=function(){return r.default.useContext(lm)},dm=function(e){var t,n=e.children,o=lf(),i={},a={executeCommand:(t=p(v().mark((function e(t,n,r,s){var l,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(l=i[t])){e.next=3;break}return e.abrupt("return",l(n,r));case 3:return e.next=5,o(t,n,r,s);case 5:if(null==(c=e.sent)||!c.command){e.next=8;break}return e.abrupt("return",a.executeCommand(c.command,c.result));case 8:return e.abrupt("return",null==c?void 0:c.result);case 9:case"end":return e.stop()}}),e)}))),function(e,n,r,o){return t.apply(this,arguments)}),registerCommand:function(e,t){i[e]=t}},s=(0,r.useRef)(a);return(0,_.jsx)(S.Provider,{value:s.current,children:n})};dm.displayName="CommandProvider",function(e){e.NoPreference="noPreference",e.Prevent="prevent",e.Force="force"}(cm||(cm={}));function pm(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 fm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pm(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mm=function(e){var t=e.error,n=w().localization,r=(0,o.useNavigate)(),a=function(){var e,o,i,a=!t||t.statusCode<100,s=t&&403===t.statusCode;return a?(e=n.admin.base.template.errorText,o=n.admin.base.template.errorReload,i=function(){window.location.reload()}):s?(e=n.admin.base.template.forbiddenAccessText,o=n.admin.base.template.goToDashboard,i=function(){r("/")}):e=t.message,{title:s?n.admin.base.template.forbiddenAccessTitle:n.admin.base.template.errorTitle,text:e,showButton:a||s,buttonLabel:o,buttonAction:i}}(),s=a.title,l=a.text,c=a.showButton,u=a.buttonLabel,d=a.buttonAction;return(0,_.jsx)(Ng,{title:s,text:l,dataTestId:"templateLoaderErrorPane",children:c&&(0,_.jsx)(i.Button,{label:u,color:i.ButtonColor.Primary,size:i.ButtonSize.L,onClick:d})})},gm=function(e){var t=e.templateName,n=e.refetchAll,i=E("".concat(t,"Template")),a=q(),s=g((0,r.useState)(a),2),l=s[0],c=s[1],u=g((0,r.useState)(cm.NoPreference),2),d=u[0],f=u[1],m=function(e,t){var n=g((0,r.useState)(),2),i=n[0],a=n[1],s=g((0,r.useState)(!1),2),l=s[0],c=s[1],u=g((0,r.useState)(),2),d=u[0],f=u[1],m=g((0,r.useState)(""),2),h=m[0],A=m[1],b=(0,o.useLocation)().pathname,C=g((0,r.useState)(b),2),x=C[0],y=C[1],w=qp().getXsrfHeader,_=b!==x&&x.includes(b)&&Z(e)===G(b),O=t===cm.Force||_&&t!==cm.Prevent,S=(0,r.useCallback)((function(){var t=!1,n=!1;a(void 0),c(!1);var r=function(){var r=p(v().mark((function r(){var o,i,s;return v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,(o=new FormData).append("path",e),r.next=5,Hp("api/page",o,w(),(function(e){return a(e)}),(function(){n=!0}));case 5:i=r.sent,t||n||((s=null==i?void 0:i.errorMessage)&&a({statusCode:200,message:s}),A(null==i?void 0:i.redirectUrl),f(i),c(!0)),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),t||(a({statusCode:0,message:""}),c(!0));case 12:case"end":return r.stop()}}),r,null,[[0,9]])})));return function(){return r.apply(this,arguments)}}();return r(),function(){t=!0}}),[e,w]);return(0,r.useEffect)(S,[S]),(0,r.useEffect)((function(){O&&S(),y(b)}),[S,b,x,O]),{isComplete:l,data:d,templateError:i,redirectUrl:h}}(a,n?cm.Force:d),h=m.isComplete,A=m.data,b=m.templateError,C=m.redirectUrl,x=(0,o.useNavigate)(),y=w().localization,O=a?y.admin.base.pageLoader.loading:y.admin.base.pageLoader.preparingYourExperience;(0,r.useEffect)((function(){h&&c(a)}),[h,a]),(0,r.useEffect)((function(){C&&x(C)}),[C,x]);var S=um(),j=S.push,T=S.pop;return(0,r.useEffect)((function(){return f(null!=A&&A.preventRefetch?cm.Prevent:cm.NoPreference),null!=A&&A.breadcrumbs.show&&null!=A&&A.breadcrumbs.label?(j(a,A.breadcrumbs.isSignificant,null==A?void 0:A.breadcrumbs.label),T):function(){}}),[A,a,j,T]),(0,_.jsxs)(Ur,{fallback:function(){return(0,_.jsx)(mm,{})},dependencies:[a],children:[(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(Eg,{title:O}),children:!b&&l===a&&(i&&A&&h&&(0,_.jsx)(sm,{properties:A,children:(0,_.jsx)(dm,{children:(0,_.jsx)(i,fm({},A))})})||(0,_.jsx)(Eg,{title:O}))}),b&&(0,_.jsx)(mm,{error:b})]})},hm=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,o.useLocation)(),r=(0,o.useResolvedPath)(e),i=n.pathname.toLocaleLowerCase()+"/",a=r.pathname.toLocaleLowerCase()+"/";return{isActive:t?i===a:i.startsWith(a)}},Am=["label","iconName","onClick","dataTestId","path"];function vm(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}var bm=function(e){var t=e.label,n=e.iconName,r=e.onClick,o=e.dataTestId,a=e.path,s=h(e,Am),l=hm(a,!1).isActive;return(0,_.jsx)(i.SideMenuItemTile,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vm(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({label:t,state:l?i.SideMenuItemState.Selected:i.SideMenuItemState.Default,iconName:n,onClick:r,dataTestId:o},s))},Cm=s(4625),xm={};xm.styleTagTransform=wn(),xm.setAttributes=bn(),xm.insert=An().bind(null,"head"),xm.domAPI=gn(),xm.insertStyleElement=xn();fn()(Cm.Z,xm);const ym=Cm.Z&&Cm.Z.locals?Cm.Z.locals:void 0;var wm=function(){var e=(0,o.useNavigate)(),t=(0,r.useContext)(im);return(0,_.jsx)("div",{"data-testid":"navigation-side-menu",className:ym.sideMenuWrapper,children:(0,_.jsx)(i.SideMenu,{children:t.navigation.items.map((function(t,n){var r;return(0,_.jsx)(bm,{label:t.label,iconName:null!==(r=t.icon)&&void 0!==r?r:"xp-placeholder",onClick:function(){e(t.path)},path:t.path,dataTestId:"side-menu-item"},n)}))})})},_m={isInSidePanel:!1,title:"",setTitle:function(){throw new Error("setSidePanelTitle must be defined in provider")},sidePanelHandlers:{submitAction:{label:""}},minWidth:void 0,setMinWidth:function(){throw new Error("setMinWidth must be defined in provider")},setMaxWidth:function(){throw new Error("setMaxWidth must be defined in provider")},setWidth:function(){throw new Error("setWidth must be defined in provider")},addDialogMessage:function(){throw new Error("addDialogMessage must be defined in provider")},removeDialogMessage:function(){throw new Error("removeDialogMessage must be defined in provider")},canProcessMessageType:function(){throw new Error("canProcessMessageType must be defined in provider")},closeSidePanel:function(){throw new Error("closeSidePanel must be defined in provider")},messages:[],actionInProgress:!1,setActionInProgress:function(){throw new Error("setActionInProgress must be defined in provider")}},Om=r.default.createContext(_m);Om.displayName="TemplateSidePanelContext";var Sm=function(){var e=r.default.useContext(Om);if(void 0===e)throw new Error("useTemplateSidePanel must be used within a TemplateSidePanelProvider");return e},jm=function(e){var t=e.children,n=g((0,r.useState)(!0),2),o=n[0],i=n[1],a=g((0,r.useState)(!1),2),s=a[0],l=a[1],c=g((0,r.useState)(void 0),2),u=c[0],d=c[1],p=g((0,r.useState)(void 0),2),f=p[0],m=p[1],h=g((0,r.useState)(void 0),2),A=h[0],v=h[1],b=g((0,r.useState)(""),2),C=b[0],x=b[1],y=g((0,r.useState)({submitAction:{label:""}}),2),w=y[0],O=y[1],S=rf(),j=S.isNested,T=S.actions;(0,r.useEffect)((function(){j&&T&&O(T)}),[j,T]);var D=z(),B=D.setRedirectToDialog,k=D.addDialogMessage,P=D.canProcessMessageType,E=D.messages,I=D.removeDialogMessage;(0,r.useEffect)((function(){return B(!0),function(){return B(!1)}}),[B]);var M=(0,r.useCallback)((function(){i(!1),B(!1)}),[i,B]);return(0,_.jsx)(Om.Provider,{value:{isInSidePanel:o,closeSidePanel:M,title:C,setTitle:x,sidePanelHandlers:w,minWidth:u,setMinWidth:d,maxWidth:f,setMaxWidth:m,width:A,setWidth:v,messages:E,addDialogMessage:k,removeDialogMessage:I,canProcessMessageType:P,actionInProgress:s,setActionInProgress:l},children:t})},Tm={isInDialog:!1,title:"",setTitle:function(){throw new Error("setTitle must be defined in provider")},dialogHandlers:{submitAction:{label:""}},minWidth:void 0,width:void 0,maxWidth:void 0,minHeight:void 0,height:void 0,maxHeight:void 0,setMinWidth:function(){throw new Error("setMinWidth must be defined in provider")},setWidth:function(){throw new Error("setWidth must be defined in provider")},setMaxWidth:function(){throw new Error("setMaxWidth must be defined in provider")},setMinHeight:function(){throw new Error("setMinHeight must be defined in provider")},setHeight:function(){throw new Error("setHeight must be defined in provider")},setMaxHeight:function(){throw new Error("setMaxHeight must be defined in provider")},addDialogMessage:function(){throw new Error("addDialogMessage must be defined in provider")},removeDialogMessage:function(){throw new Error("removeDialogMessage must be defined in provider")},canProcessMessageType:function(){throw new Error("canProcessMessageType must be defined in provider")},closeDialog:function(){throw new Error("closeDialog must be defined in provider")},messages:[],isFullscreen:!1,setIsFullscreen:function(){throw new Error("setIsFullscreen must be defined in provider")},actionInProgress:!1,setActionInProgress:function(){throw new Error("setActionInProgress must be defined in provider")}},Dm=r.default.createContext(Tm);Dm.displayName="TemplateDialogContext";var Bm=function(){var e=r.default.useContext(Dm);if(void 0===e)throw new Error("useTemplateDialog must be used within a TemplateDialogProvider");return e},km=function(e){var t=e.children,n=g((0,r.useState)(!0),2),o=n[0],i=n[1],a=g((0,r.useState)(!1),2),s=a[0],l=a[1],c=g((0,r.useState)(!1),2),u=c[0],d=c[1],p=g((0,r.useState)(""),2),f=p[0],m=p[1],h=g((0,r.useState)(void 0),2),A=h[0],v=h[1],b=g((0,r.useState)(void 0),2),C=b[0],x=b[1],y=g((0,r.useState)(void 0),2),w=y[0],O=y[1],S=g((0,r.useState)(void 0),2),j=S[0],T=S[1],D=g((0,r.useState)(void 0),2),B=D[0],k=D[1],P=g((0,r.useState)(void 0),2),E=P[0],I=P[1],M=g((0,r.useState)({submitAction:{label:""}}),2),L=M[0],N=M[1],R=rf(),F=R.isNested,W=R.actions;(0,r.useEffect)((function(){F&&W&&N(W)}),[F,W]);var H=z(),V=H.setRedirectToDialog,Y=H.addDialogMessage,Z=H.canProcessMessageType,U=H.messages,G=H.removeDialogMessage;(0,r.useEffect)((function(){return V(!0),function(){return V(!1)}}),[V]);var q=(0,r.useCallback)((function(){i(!1),V(!1)}),[i,V]);return(0,_.jsx)(Dm.Provider,{value:{isInDialog:o,closeDialog:q,title:f,setTitle:m,minWidth:A,setMinWidth:v,width:C,setWidth:x,maxWidth:w,setMaxWidth:O,minHeight:j,setMinHeight:T,height:B,setHeight:k,maxHeight:E,setMaxHeight:I,dialogHandlers:L,messages:U,addDialogMessage:Y,removeDialogMessage:G,canProcessMessageType:Z,isFullscreen:s,setIsFullscreen:l,actionInProgress:u,setActionInProgress:d},children:t})};function Pm(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 Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pm(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Im=function(e){var t=e.children,n=e.parentPageUrl,a=Bm(),s=a.isInDialog,l=a.title,c=a.dialogHandlers,u=a.messages,d=a.removeDialogMessage,p=a.minWidth,f=a.width,m=a.maxWidth,g=a.minHeight,h=a.height,A=a.maxHeight,v=a.isFullscreen,b=a.actionInProgress,C=w().localization,x=(0,o.useNavigate)(),y=(0,r.useCallback)((function(){x(n)}),[n,x]);return(0,r.useEffect)((function(){s||y()}),[s,y]),(0,_.jsx)(i.Dialog,{isOpen:!0,headline:l,onClose:y,headerCloseButton:{tooltipText:C.admin.base.dialog.close,shortcuts:"Esc"},isDismissable:!0,actionInProgress:b,minWidth:p,width:f,maxWidth:m,minHeight:g,height:h,maxHeight:A,isFullScreen:v,confirmAction:c.submitAction,cancelAction:{label:C.admin.base.dialog.cancel,onClick:y},notificationBar:u.length>0&&u.map((function(e){return(0,_.jsx)(i.NotificationBarAlert,{dataTestId:"notification-bar",onDismiss:function(){return e.id&&d(e.id)},children:e.message},e.id)})),children:t})},Mm=function(e){return(0,_.jsx)(of,{children:(0,_.jsx)(km,{children:(0,_.jsx)(dm,{children:(0,_.jsx)(Im,Em({},e))})})})},Lm=s(3862),Nm={};Nm.styleTagTransform=wn(),Nm.setAttributes=bn(),Nm.insert=An().bind(null,"head"),Nm.domAPI=gn(),Nm.insertStyleElement=xn();fn()(Lm.Z,Nm);const Rm=Lm.Z&&Lm.Z.locals?Lm.Z.locals:void 0;var Fm=function(e){var t=$p().isCustomRightSidebarDisplayed;return(0,_.jsxs)(i.Row,{wrap:i.RowWrap.NoWrap,className:Rm.row,children:[(0,_.jsx)(i.Column,{children:(0,_.jsx)("div",{className:e.sidebarContent?Rm.scrollable:void 0,children:e.children})}),(e.sidebarContent||!e.sidebarContent&&!t)&&(0,_.jsx)(i.Column,{width:13,children:e.sidebarContent||(0,_.jsx)(_.Fragment,{})})]})},zm=s(7473),Wm={};Wm.styleTagTransform=wn(),Wm.setAttributes=bn(),Wm.insert=An().bind(null,"head"),Wm.domAPI=gn(),Wm.insertStyleElement=xn();fn()(zm.Z,Wm);const Hm=zm.Z&&zm.Z.locals?zm.Z.locals:void 0;var Vm="GetFormItems",Ym="ValidateComponents",Zm=function(e){var t=e.onAfterPropertiesSubmission,n=w().localization,o=(0,r.useRef)(null),a=g((0,r.useState)([]),2),s=a[0],l=a[1],c=g((0,r.useState)(),2),u=c[0],d=c[1],f=document.getElementById("sidePanelPlaceholder"),m=j().executeCommand,h=Qm(),A=h.propertiesDialogData,b=h.setPropertiesDialogData,C=(0,r.useCallback)(function(){var e=p(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==A){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,m(Vm,{properties:t,componentType:A.componentType,typeIdentifier:A.typeIdentifier,identifier:A.identifier});case 4:(n=e.sent)&&l(n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[A,m]),x=(0,r.useCallback)(p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==A||!A.typeIdentifier){e.next=6;break}return e.next=3,C(A.properties);case 3:d("".concat(A.componentType,":").concat(A.typeIdentifier)),e.next=8;break;case 6:l([]),d(void 0);case 8:case"end":return e.stop()}}),e)}))),[A,C]);(0,r.useEffect)((function(){x()}),[x]);var y=(0,r.useCallback)((function(){var e,t,r;null!==(e=null===(t=o.current)||void 0===t?void 0:t.dataChanged)&&void 0!==e&&e&&!confirm(n.admin.content.pageBuilder.propertiesDialog.discardChanges)||(b(null),null===(r=o.current)||void 0===r||r.resetDataChanged())}),[b,n.admin.content.pageBuilder.propertiesDialog.discardChanges]),O=function(){var e=p(v().mark((function e(n){var r,i,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==A){e.next=2;break}throw new Error("PropertiesDialogData is not set");case 2:return e.next=4,m(Ym,{formData:n.values,componentType:A.componentType,typeIdentifier:A.typeIdentifier,identifier:A.identifier});case 4:if(r=e.sent,!!(null==r||!r.isValid)){e.next=15;break}return a={},null==r||r.formItems.forEach((function(e){void 0!==e.componentName&&(a[e.name]=null==e?void 0:e.value)})),e.next=11,null==t?void 0:t(a);case 11:b(null),null===(i=o.current)||void 0===i||i.resetDataChanged(),e.next=16;break;case 15:l(null!==(s=null==r?void 0:r.formItems)&&void 0!==s?s:[]);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,_.jsx)(Rg,{container:f,children:(0,_.jsxs)(i.SidePanel,{headline:"".concat(null==A?void 0:A.title," ").concat(n.admin.content.pageBuilder.propertiesDialog.headline),isVisible:!(null==A||!A.typeIdentifier),onCloseClick:y,footer:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.Button,{label:n.admin.base.dialog.cancel,dataTestId:"cancel-action",onClick:y}),(0,_.jsx)(i.Button,{label:n.admin.content.pageBuilder.propertiesDialog.confirmActionLabel,color:i.ButtonColor.Primary,dataTestId:"confirm-action",onClick:function(){var e;null==o||null===(e=o.current)||void 0===e||e.submit()}})]}),onOutsideCloseClick:y,size:i.SidePanelSize.Stackable,children:[(null==A?void 0:A.headerText)&&(0,_.jsx)("div",{className:Hm.headerText,children:null==A?void 0:A.headerText}),(0,_.jsx)(Jd,{ref:o,name:u,items:s,onSubmit:O,onValidChange:function(e){if(e.changedField.hasDependencies){var t=Km(e.values);C(t)}},dataTestId:"properties-form"})]})})},Um={propertiesDialogData:null,setPropertiesDialogData:function(){throw new Error("setPropertiesDialogData must be defined in provider")}},Gm=r.default.createContext(Um);Gm.displayName="PropertiesDialogContext";var qm,Qm=function(){var e=r.default.useContext(Gm);if(void 0===e)throw new Error("usePropertiesDialog must be used within a PropertiesDialogProvider");return e},Xm=function(e){var t=e.children,n=g((0,r.useState)(null),2),o=n[0],i=n[1];return(0,_.jsx)(Gm.Provider,{value:{propertiesDialogData:o,setPropertiesDialogData:i},children:t})};!function(e){e.Widget="widget",e.Section="section",e.PageTemplate="pageTemplate",e.ConditionType="conditionType"}(qm||(qm={}));var Km=function(e){return Object.entries(e).reduce((function(e,t){var n=g(t,2),r=n[0],o=n[1];return e[Jm(r)]=o,e}),{})},Jm=function(e){if(!e||!e[0].match(/[A-Z]/))return e;for(var t=e.split(""),n=0;n<t.length&&(1!==n||t[n].match(/[A-Z]/));n++){var r=n+1<t.length;if(n>0&&r&&!t[n+1].match(/[A-Z]/))break;t[n]=t[n].toLowerCase()}return t.join("")},$m={LoadData:"LoadData"},eg=function(e){var t=e.errorMessage,n=e.caption,o=g((0,r.useState)(),2),a=o[0],s=o[1],l=g((0,r.useState)(),2),c=l[0],u=l[1],d=g((0,r.useState)({callouts:[],cardGroups:[]}),2),f=d[0],m=d[1],h=cf($m.LoadData,{executeOnMount:!0,after:function(e){e&&m(e)}},[]).execute;(0,r.useEffect)((function(){s(f.callouts),u(f.cardGroups)}),[f]);var A=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return t?(0,_.jsx)("div",{children:t}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(Fm,{children:[n&&(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.XL,children:n}),(0,_.jsxs)(i.Row,{spacing:i.Spacing.XL,children:[(0,_.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,colsLg:i.Cols.Col8,order:i.Cols.Col2,orderLg:i.Cols.Col1,children:c&&c.length>0&&c.map((function(e,t){return(0,_.jsx)(om,{cards:e.cards},t)}))}),a&&a.length>0&&(0,_.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,colsLg:i.Cols.Col4,order:i.Cols.Col1,orderLg:i.Cols.Col2,children:(0,_.jsx)(i.Stack,{spacing:i.Spacing.XL,children:a.map((function(e,t){return(0,_.jsx)(ff,{calloutConfiguration:e,onActionButtonStatusChanged:A},t)}))})})]})]}),(0,_.jsx)(Jg,{})]})},tg=function(e){var t=e.interval,n=g((0,r.useState)(!1),2),o=n[0],i=n[1],a=g((0,r.useState)(!1),2),s=a[0],l=a[1],c=j().executeCommand;return cf("StopAutoRefresh",{before:function(){return l(!0),!1}}),M(p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o||s){e.next=5;break}return i(!0),e.next=4,c($m.LoadData);case 4:i(!1);case 5:case"end":return e.stop()}}),e)}))),t),(0,_.jsx)(_.Fragment,{})};function ng(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}var rg=function(e){return(0,_.jsx)(ao,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ng(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))},og=function(e){var t=e.items;return(0,_.jsx)(Jd,{items:t})},ig=function(e){var t=e.content,n=e.contentAsHtml,r=C().sanitize;return(0,_.jsx)(_.Fragment,{children:t&&(n?(0,_.jsx)("div",{dangerouslySetInnerHTML:{__html:r(t)}}):(0,_.jsx)("div",{children:t}))})},ag=s(4221),sg={};sg.styleTagTransform=wn(),sg.setAttributes=bn(),sg.insert=An().bind(null,"head"),sg.domAPI=gn(),sg.insertStyleElement=xn();fn()(ag.Z,sg);const lg=ag.Z&&ag.Z.locals?ag.Z.locals:void 0;function cg(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 ug(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cg(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dg=function(e){var t=e.tags;return(0,_.jsx)(_.Fragment,{children:t&&t.length>0&&(0,_.jsx)("div",{className:lg.tags,children:t.map((function(e,t){return(0,r.createElement)(i.Tag,ug(ug({dataTestId:"tag",background:(n=e.color,{color:i.Colors[n]})},e),{},{key:t}));var n}))})})},pg=s(5198),fg={};fg.styleTagTransform=wn(),fg.setAttributes=bn(),fg.insert=An().bind(null,"head"),fg.domAPI=gn(),fg.insertStyleElement=xn();fn()(pg.Z,fg);const mg=pg.Z&&pg.Z.locals?pg.Z.locals:void 0;var gg=function(e){var t=e.headline,n=e.items;return(0,_.jsxs)("div",{children:[t&&(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:n&&n.length>0?i.Spacing.M:void 0,children:t}),n&&n.length>0&&(0,_.jsx)("ul",{className:mg.listOfItems,children:n.map((function(e,t){return(0,_.jsxs)("li",{className:mg.item,children:[e.text&&(0,_.jsx)("span",{className:mg.preText,children:e.text}),e.link&&(0,_.jsx)(o.Link,{className:mg.link,to:e.link.url,children:e.link.text})]},t)}))})]})},hg=function(e){var t=e.label,n=e.iconName;return(0,_.jsx)(i.SimpleStatusSuccess,{content:{label:t,iconName:n}})},Ag=s(9164),vg={};vg.styleTagTransform=wn(),vg.setAttributes=bn(),vg.insert=An().bind(null,"head"),vg.domAPI=gn(),vg.insertStyleElement=xn();fn()(Ag.Z,vg);const bg=Ag.Z&&Ag.Z.locals?Ag.Z.locals:void 0;var Cg=r.default.forwardRef((function(e,t){var n=e.placeholder,r=e.value,o=e.onSubmit,a=e.onChange,s=e.className;return(0,_.jsx)(i.Box,{ref:t,className:null!=s?s:bg.filter,children:(0,_.jsx)("form",{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),o&&o()},children:(0,_.jsx)(i.Input,{placeholder:n,onChange:function(e){a&&a(e.target.value)},value:r})})})}));Cg.displayName="SearchInput";var xg=function(e){var t=new RegExp("[^/]*$"),n=e.parameter.match(t);return n&&n[0]?"button-"+n[0].toString().toLowerCase():"button"},yg=s(893),wg={};wg.styleTagTransform=wn(),wg.setAttributes=bn(),wg.insert=An().bind(null,"head"),wg.domAPI=gn(),wg.insertStyleElement=xn();fn()(yg.Z,wg);const _g=yg.Z&&yg.Z.locals?yg.Z.locals:void 0;var Og=function(e){var n=e.actions,r=e.dataTestId;return(0,_.jsx)("div",{className:_g.actions,"data-testid":r,children:null==n?void 0:n.map((function(e,n){return(0,_.jsx)("div",{className:_g.actionButton,children:e.type===t.Link?(0,_.jsx)(Lf,{action:e,color:i.ButtonColor.Primary,dataTestId:xg(e)}):(0,_.jsx)(Tf,{action:e,color:i.ButtonColor.Primary,dataTestId:xg(e)})},n)}))})},Sg=s(1728),jg={};jg.styleTagTransform=wn(),jg.setAttributes=bn(),jg.insert=An().bind(null,"head"),jg.domAPI=gn(),jg.insertStyleElement=xn();fn()(Sg.Z,jg);const Tg=Sg.Z&&Sg.Z.locals?Sg.Z.locals:void 0;var Dg=function(){return(0,_.jsx)("div",{className:Tg.loaderWrapper,children:(0,_.jsx)("div",{className:Tg.loader})})},Bg=s(6539),kg={};kg.styleTagTransform=wn(),kg.setAttributes=bn(),kg.insert=An().bind(null,"head"),kg.domAPI=gn(),kg.insertStyleElement=xn();fn()(Bg.Z,kg);const Pg=Bg.Z&&Bg.Z.locals?Bg.Z.locals:void 0;var Eg=function(e){var t=e.title;return(0,_.jsx)("div",{className:Pg.loaderWrapper,children:(0,_.jsxs)("div",{className:Pg.content,children:[t&&(0,_.jsx)("div",{className:Pg.title,children:t}),(0,_.jsx)("div",{className:Pg.loader,children:(0,_.jsx)("div",{className:Pg.loaderBubble})})]})})},Ig=s(79),Mg={};Mg.styleTagTransform=wn(),Mg.setAttributes=bn(),Mg.insert=An().bind(null,"head"),Mg.domAPI=gn(),Mg.insertStyleElement=xn();fn()(Ig.Z,Mg);const Lg=Ig.Z&&Ig.Z.locals?Ig.Z.locals:void 0;var Ng=function(e){var t=e.title,n=e.text,r=e.children,o=e.dataTestId;return(0,_.jsxs)("div",{className:Lg.messagePane,"data-testid":o,children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,spacingBottom:i.Spacing.L,children:t}),n&&(0,_.jsx)("div",{className:Lg.subheadline,children:n}),r&&(0,_.jsx)("div",{className:Lg.children,children:r})]})},Rg=function(e){var t=e.children,n=e.container,r=e.key;return n?Cs.default.createPortal(t,n,r):(0,_.jsx)(_.Fragment,{children:t})};function Fg(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 zg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fg(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wg=function(e){var t=(0,o.useNavigate)(),n=hm(e.path,!1).isActive;return(0,_.jsx)(i.ApplicationTile,zg(zg({},e),{},{state:e.disabled?i.ApplicationTileState.Disabled:n?i.ApplicationTileState.Activated:i.ApplicationTileState.Default,onClick:function(n){e.onClick&&e.onClick(n),t(e.path)}}))};function Hg(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 Vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hg(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yg=function(e){var t=E("".concat(e.clientComponentName,"EditTemplateActionComponent"));return(0,_.jsx)("div",{children:t&&(0,_.jsx)(t,Vg({},e))})};Yg.displayName="EditTemplateActionComponentLoader";var Zg=s(5666),Ug={};Ug.styleTagTransform=wn(),Ug.setAttributes=bn(),Ug.insert=An().bind(null,"head"),Ug.domAPI=gn(),Ug.insertStyleElement=xn();fn()(Zg.Z,Ug);const Gg=Zg.Z&&Zg.Z.locals?Zg.Z.locals:void 0;function qg(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 Qg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qg(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xg=function(e){var t=e.children,n=e.parentPageUrl,a=Sm(),s=a.isInSidePanel,l=a.title,c=a.sidePanelHandlers,u=a.messages,d=a.minWidth,p=a.maxWidth,f=a.width,m=a.removeDialogMessage,g=a.actionInProgress,h=(0,o.useNavigate)(),A=(0,r.useCallback)((function(){h(n)}),[n,h]);(0,r.useEffect)((function(){s||A()}),[s,A]);var v=document.getElementById("sidePanelPlaceholder");return(0,_.jsx)(Rg,{container:v,children:(0,_.jsx)(i.SidePanel,{headline:l,size:i.SidePanelSize.Wrapped,isVisible:!0,onCloseClick:A,notificationBar:u.length>0&&u.map((function(e){return(0,_.jsx)(i.NotificationBarAlert,{onDismiss:function(){return e.id&&m(e.id)},children:e.message},e.id)})),footer:(0,_.jsxs)("div",{className:Gg.footerContainer,children:[(0,_.jsx)("div",{className:Gg.additionalActions,children:c.additionalActions&&c.additionalActions.map((function(e,t){return(0,r.createElement)(Yg,Qg(Qg({},e),{},{key:t}))}))}),(0,_.jsx)(i.Button,{label:c.submitAction.label,color:i.ButtonColor.Primary,onClick:c.submitAction.onClick,disabled:!1,dataTestId:"submit-form-button",inProgress:g})]}),className:Gg.sidePanel,children:(0,_.jsx)("div",{style:{minWidth:d,maxWidth:p,width:f},className:Gg.contentWrapper,children:t})})})},Kg=function(e){return(0,_.jsx)(of,{children:(0,_.jsx)(jm,{children:(0,_.jsx)(dm,{children:(0,_.jsx)(Xg,Qg({},e))})})})},Jg=function(e){var t=e.children,n=(0,r.useContext)(im),i=n.routes,a=n.defaultRoute,s=n.visibleRoutes,l=w().localization;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(o.Routes,{children:[(0,_.jsx)(o.Route,{path:"",element:(0,_.jsxs)(_.Fragment,{children:[t,a&&(0,_.jsx)(o.Navigate,{to:a.path,replace:!0})]})}),i.map((function(e){var t=e.path+"/*";return(0,_.jsx)(r.default.Fragment,{children:e.pageLocation===am.Dialog&&(0,_.jsx)(o.Route,{path:t,element:(0,_.jsx)(Mm,{parentPageUrl:"..",children:(0,_.jsx)(gm,{templateName:e.templateName})})})||e.pageLocation===am.SidePanel&&(0,_.jsx)(o.Route,{path:t,element:(0,_.jsx)(Kg,{parentPageUrl:"..",children:(0,_.jsx)(gm,{templateName:e.templateName})})})||(0,_.jsx)(o.Route,{path:t,element:(0,_.jsx)(gm,{templateName:e.templateName})})},e.path)})),(0,_.jsx)(o.Route,{path:"*",element:(0,_.jsx)(Ng,{title:l.admin.base.notFound.title,text:l.admin.base.notFound.text})})]}),(0,_.jsx)(o.Routes,{children:s.map((function(e,n){return(0,_.jsx)(o.Route,{path:e,element:(0,_.jsx)(_.Fragment,{children:t})},n)}))})]})},$g="kxp.avatar.gradient",eh=function(e){var t,a,s=e.userProfile,l=e.menuPlacement,c=e.renderTrigger,u=e.menuOpen,d=e.setMenuOpen,f=w().localization,m=(0,o.useNavigate)(),h=V().addNotificationMessage,A=qp().getXsrfHeader,b=localStorage.getItem($g),C=g((0,r.useState)(b&&Object.values(i.Gradients).includes(b)?b:(t=Object.keys(i.Gradients).filter((function(e){return e.toLowerCase().includes("dark")})),a=t[Math.floor(t.length*Math.random())],i.Gradients[a])),1)[0];(0,r.useEffect)((function(){localStorage.setItem($g,C)}),[C]);var x=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m(s.profileLink),d(!1);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=(0,r.useCallback)(p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hp("/api/account/signout",new FormData,A(),(function(e){return h({message:e.message,type:n.Error})}));case 2:null!=(t=e.sent)&&t.ok&&m("/");case 4:case"end":return e.stop()}}),e)}))),[h,m,A]),O=s.firstName.substr(0,1)+s.lastName.substr(0,1)||s.userName.substr(0,1);return(0,_.jsxs)(i.DropDownActionMenu,{placement:l,open:u,onToggle:d,renderTrigger:function(e,t,n){return c(e,t,{tooltipText:"".concat(s.firstName||""," ").concat(s.lastName||"").trim()||s.userName,initials:O,background:{gradient:C},size:i.AvatarSize.M},n)},children:[(0,_.jsx)(i.MenuItem,{primaryLabel:f.admin.base.app.profile,onClick:x}),(0,_.jsx)(i.MenuItem,{primaryLabel:f.admin.base.app.signOut,onClick:y})]})};function th(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 nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?th(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}eh.displayName="Avatar";var rh,oh,ih=function(e,t){var n=[];return e.forEach((function(e){var r=[],o=[];e.applications.forEach((function(e){var n=t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),i=new RegExp(n.split(" ").join(".* "),"i").exec(e.name);i&&(0===i.index?r.push(e):o.push(e))}));var i=[].concat(r,o);i.length&&n.push(nh(nh({},e),{},{applications:i}))})),n};!function(e){e.List="list",e.Tiles="tiles"}(rh||(rh={})),function(e){e.Default="Default",e.Activated="Activated"}(oh||(oh={}));var ah=s(9286),sh={};sh.styleTagTransform=wn(),sh.setAttributes=bn(),sh.insert=An().bind(null,"head"),sh.domAPI=gn(),sh.insertStyleElement=xn();fn()(ah.Z,sh);const lh=ah.Z&&ah.Z.locals?ah.Z.locals:void 0;function ch(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 uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ch(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ch(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dh=r.default.forwardRef((function(e,t){var n=e.state,r=e.application,a=e.dataTestId,s=void 0===a?"application-list-item":a,l=e.handleClick,c=Fu(),u=c.isFocusVisible,d=c.focusProps,p=Kt()(lh.row,n===oh.Activated&&lh.activated,u&&lh.focused);return(0,_.jsx)("li",{className:lh.listItem,ref:t,"data-testid":s,children:(0,_.jsx)(i.OptionalTooltip,{text:r.name,placement:i.TooltipPlacement.Right,customRenderText:function(e){return(0,_.jsxs)(o.NavLink,uh(uh({className:p,to:r.path,onClick:l},d),{},{children:[(0,_.jsx)("div",{className:lh.icon,children:(0,_.jsx)(i.Icon,{name:r.icon})}),(0,_.jsx)("div",{className:lh.label,ref:e,children:r.name})]}))}})})}));dh.displayName="ApplicationListItem";var ph=s(7259),fh={};fh.styleTagTransform=wn(),fh.setAttributes=bn(),fh.insert=An().bind(null,"head"),fh.domAPI=gn(),fh.insertStyleElement=xn();fn()(ph.Z,fh);const mh=ph.Z&&ph.Z.locals?ph.Z.locals:void 0;function gh(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 hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ah=r.default.forwardRef((function(e,t){var n=e.category,o=e.applicationPath,a=e.handleClick,s=e.renderToggleButtons,l=e.collapsible,c=e.view,u=g((0,r.useState)(!1),2),d=u[0],p=u[1],f=Kt()(mh.header,l&&mh.collapsible),m=Kt()(mh.list,c===rh.List?mh.listView:mh.tilesView),h=Kt()(mh.categoryTitle,s&&mh.withToggle),A=Kt()(mh.scrollableContent,c===rh.List&&mh.listView),v=function(e){0===e.button&&n&&a(n)};return(0,_.jsxs)("div",{ref:t,children:[(0,_.jsxs)("div",hh(hh({className:f},l&&{onClick:function(){return p(!d)}}),{},{children:[(0,_.jsx)("div",{className:h,children:null==n?void 0:n.name}),l&&(0,_.jsx)("span",{className:mh.icon,children:(0,_.jsx)(i.Icon,{name:d?"xp-chevron-down":"xp-chevron-up"})}),s&&s()]})),!d&&(0,_.jsx)("div",{className:s&&mh.scrollable,children:(0,_.jsx)("div",{className:A,children:(0,_.jsx)("ul",{className:m,children:null==n?void 0:n.applications.map((function(e,t){return c===rh.List?(0,_.jsx)(dh,{state:e.path===o?oh.Activated:oh.Default,application:e,handleClick:v},t):(0,_.jsx)("li",{children:(0,_.jsx)(i.ApplicationTile,{state:e.path===o?i.ApplicationTileState.Activated:i.ApplicationTileState.Default,label:e.name,iconName:e.icon,link:e.path,onClick:v})},t)}))})})})]})}));Ah.displayName="ApplicationListGroup";var vh=s(8743),bh={};bh.styleTagTransform=wn(),bh.setAttributes=bn(),bh.insert=An().bind(null,"head"),bh.domAPI=gn(),bh.insertStyleElement=xn();fn()(vh.Z,bh);const Ch=vh.Z&&vh.Z.locals?vh.Z.locals:void 0;var xh="kxp.applicationList.view",yh=r.default.forwardRef((function(e,t){var n=e.categories,o=e.selectedCategory,a=e.applicationPath,s=e.overlayRef,l=e.className,c=e.dataTestId,u=void 0===c?"application-list":c,d=e.handleClick,p=e.onOutsideClick,f=localStorage.getItem(xh)||rh.List,m=g((0,r.useState)(f),2),h=m[0],A=m[1],v=g((0,r.useState)(""),2),b=v[0],C=v[1],x=(0,r.useRef)(null),y=g((0,r.useState)([]),2),O=y[0],S=y[1],j=w().localization,T=[{id:rh.List,icon:"xp-list",tooltip:j.admin.base.app.applicationList.list,tooltipPlacement:i.TooltipPlacement.Top},{id:rh.Tiles,icon:"xp-l-grid-2-2",tooltip:j.admin.base.app.applicationList.tiles,tooltipPlacement:i.TooltipPlacement.Top}];(0,r.useEffect)((function(){var e;C(""),null===(e=x.current)||void 0===e||e.focus()}),[o]),(0,r.useEffect)((function(){S(b?ih(n,b):[])}),[b,n]);var D=Kt()(Ch.container,o&&Ch.visible,l),B=Kt()(Ch.scrollableContent,h===rh.List&&Ch.listView),k=(0,r.useCallback)((function(e){e.target===e.currentTarget&&(p(e),e.stopPropagation())}),[p]);return(0,_.jsx)("div",{"data-testid":u,ref:s,onMouseDown:k,className:o?Ch.overlay:"",children:(0,_.jsx)("div",{ref:t,className:D,children:o&&(0,_.jsxs)("div",{className:Ch.content,children:[(0,_.jsx)("div",{className:Ch.search,children:(0,_.jsx)(i.Input,{value:b,onChange:function(e){C(e.target.value)},inputRef:x,placeholder:j.admin.base.app.applicationList.searchPlaceholder})}),b?(0,_.jsx)("div",{className:Ch.scrollable,children:(0,_.jsx)("div",{className:B,children:O.length?O.map((function(e,t){return(0,_.jsx)(Ah,{category:e,applicationPath:a,view:h,handleClick:d},t)})):(0,_.jsx)("span",{className:Ch.noItems,children:j.admin.base.app.applicationList.noApplicationsFound})})}):(0,_.jsx)(Ah,{category:o,applicationPath:a,view:h,handleClick:d,renderToggleButtons:function(){return(0,_.jsx)(i.IconToggleButtons,{items:T,onChange:function(e){A(e),localStorage.setItem(xh,e)},selectedItemId:h})}})]})})})}));yh.displayName="ApplicationList";var wh=s(7602),_h={};_h.styleTagTransform=wn(),_h.setAttributes=bn(),_h.insert=An().bind(null,"head"),_h.domAPI=gn(),_h.insertStyleElement=xn();fn()(wh.Z,_h);const Oh=wh.Z&&wh.Z.locals?wh.Z.locals:void 0;var Sh=r.default.forwardRef((function(e,t){var n=e.categories,o=e.setIsOverflowing,a=e.handleClick,s=g((0,r.useState)(""),2),l=s[0],c=s[1],u=(0,r.useRef)(null),d=g((0,r.useState)([]),2),p=d[0],f=d[1],m=g((0,r.useState)([]),2),h=m[0],A=m[1],v=w().localization,b=g((0,r.useState)(""),2),C=b[0],x=b[1],y=(0,r.useRef)(null),O=t||y,S=g((0,r.useState)(!1),2),j=S[0],T=S[1];Jn({ref:O,onResize:function(){O.current&&o(O.current.offsetHeight<O.current.scrollHeight)}}),(0,r.useEffect)((function(){var e=G(location.pathname).substring(1).split("/")[0].toLowerCase();x(e)}),[]);return(0,r.useEffect)((function(){f(l?ih(n,l):[])}),[l,n]),(0,r.useEffect)((function(){A(j?l?p:[]:n)}),[j,l,p,n]),(0,_.jsxs)("div",{ref:O,className:Oh.container,children:[(0,_.jsx)("div",{className:Oh.title,children:j?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.Button,{color:i.ButtonColor.Quinary,size:i.ButtonSize.L,icon:"xp-arrow-left"}),v.admin.base.app.applicationList.search]}):(0,_.jsx)("span",{children:v.admin.base.app.applicationList.applications})}),(0,_.jsx)("div",{className:Oh.search,children:(0,_.jsx)(i.Input,{value:l,onChange:function(e){c(e.target.value)},inputRef:u,placeholder:v.admin.base.app.applicationList.searchPlaceholder,onClick:function(){return T(!0)},onBlur:function(){return T(!1)}})}),h.map((function(e,t){return(0,_.jsx)(Ah,{category:e,applicationPath:C,view:rh.List,handleClick:a,collapsible:!j},t)})),j&&l&&!p.length&&(0,_.jsx)("span",{className:Oh.noItems,children:v.admin.base.app.applicationList.noApplicationsFound})]})}));Sh.displayName="ApplicationListMobile";var jh=s(2371),Th={};Th.styleTagTransform=wn(),Th.setAttributes=bn(),Th.insert=An().bind(null,"head"),Th.domAPI=gn(),Th.insertStyleElement=xn();fn()(jh.Z,Th);const Dh=jh.Z&&jh.Z.locals?jh.Z.locals:void 0;function Bh(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 kh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bh(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ph=r.default.forwardRef((function(e,t){var n=e.categories,a=e.showError,s=e.showWarning,l=e.expiringLicenseMessage,c=e.affectedLicenseHashes,u=e.dataTestId,d=void 0===u?"application-menu":u,p=g((0,r.useState)(),2),f=p[0],m=p[1],h=g((0,r.useState)(),2),A=h[0],v=h[1],b=g((0,r.useState)(""),2),C=b[0],x=b[1],y=g((0,r.useState)(!1),2),w=y[0],O=y[1],S=(0,r.useRef)(null),j=(0,r.useRef)(null),T=(0,r.useRef)(null),D=t||T,B=(0,r.useRef)(null),k=(0,r.useRef)(null),P=(0,i.useSnackbar)(),E=P.addMessage,I=P.clearMessages,M=g((0,r.useState)(!1),2),L=M[0],N=M[1],R=g((0,r.useState)(!1),2),F=R[0],z=R[1],W=g((0,r.useState)(!1),2),H=W[0],V=W[1],Y="kxp.applicationMenu.licenseWarning",Z="kxp.applicationMenu.licenseError",U="kxp.applicationMenu.displayingMessage",q="kxp.applicationMenu.affectedLicenses";Jn({ref:B,onResize:function(){B.current&&O(B.current.scrollHeight>B.current.offsetHeight)}});var Q=(0,o.useLocation)(),X=(0,i.useTheme)(),K=(X.theme,X.setTheme,(0,r.useContext)(im).userProfile),J=(0,r.useCallback)((function(){m(void 0),V(!1)}),[]),$=(0,r.useCallback)((function(e){k.current&&!e.composedPath().includes(k.current)&&V(!1)}),[k]);(0,r.useEffect)((function(){var e=D.current;return null==e||e.addEventListener("mousedown",$),function(){null==e||e.removeEventListener("mousedown",$)}}));var ee=function(e){switch(e.key){case"Escape":m(void 0);break;case"F2":var t=null!=A?A:n[0];m(f?void 0:t)}};(0,r.useEffect)((function(){return document.addEventListener("keydown",ee),function(){document.removeEventListener("keydown",ee)}}));var te=(0,r.useCallback)((function(){var e=JSON.stringify(c),t=localStorage.getItem(q);return!(!t||t!==e)||(localStorage.setItem(q,e),!1)}),[c]);(0,r.useEffect)((function(){if(L){var e=te(),t=localStorage.getItem(U);if(e&&"true"===t)N(!1);else{localStorage.setItem(U,"true");var n=(new Date).getTime()+18e5;E({message:l,variant:i.SnackbarItemVariant.Error,messageAsHtml:!0,onClose:function(){localStorage.removeItem(U),localStorage.setItem(Z,n.toString()),N(!1)}})}}}),[L,N,E,l,te]),(0,r.useEffect)((function(){if(F){var e=te(),t=localStorage.getItem(U);if(e&&"true"===t)z(!1);else{localStorage.setItem(U,"true");var n=(new Date).getTime()+864e5;E({message:l,variant:i.SnackbarItemVariant.Warning,messageAsHtml:!0,onClose:function(){localStorage.removeItem(U),localStorage.setItem(Y,n.toString()),z(!1)}})}}}),[F,z,E,l,te]),(0,r.useEffect)((function(){var e=localStorage.getItem(q);if(e){var t=JSON.parse(e),n=t?t.length:0;(c?c.length:0)!==n&&(I(),localStorage.removeItem(U),localStorage.removeItem(Z),localStorage.removeItem(Y))}setInterval((function(){var e=(new Date).getTime(),t=localStorage.getItem(Z);if(t&&e>Number(t))return void N(!0);var n=localStorage.getItem(Y);n&&(e>Number(n)&&z(!0))}),6e4);var r=(new Date).getTime(),o=te();if(a||s||localStorage.removeItem(U),a){var i=localStorage.getItem(Z);(!o||!i||r>Number(i))&&N(!0)}else if(s){var l=localStorage.getItem(Y);(!o||!l||r>Number(l))&&z(!0)}}),[]),(0,r.useEffect)((function(){var e=G(Q.pathname).substring(1).split("/")[0].toLowerCase();x(e);var t=n.find((function(t){return t.applications.find((function(t){return t.path.toLowerCase()===e}))}));v(t)}),[Q,n]);var ne=Kt()(Dh.sideBar,f&&Dh.rollout,w&&Dh.scrollable);return(0,_.jsxs)("div",{"data-testid":d,ref:D,"data-ignored-by-clickoutside":void 0!==f,children:[(0,_.jsxs)("div",{className:ne,children:[(0,_.jsx)("div",{className:Dh.upper,ref:B,children:(0,_.jsxs)("ul",{children:[(0,_.jsx)("li",{className:Dh.logo,children:(0,_.jsx)(o.Link,{to:"/","aria-label":"Kentico Xperience logo"})}),n.map((function(e,t){return(0,_.jsx)("li",{children:(0,_.jsx)(i.ApplicationTile,{"data-ignored-by-clickoutside":!0,iconName:e.icon,state:e.codeName===(null==f?void 0:f.codeName)||!f&&e.codeName===(null==A?void 0:A.codeName)?i.ApplicationTileState.Activated:i.ApplicationTileState.Default,tooltip:e.name,tooltipPlacement:i.TooltipPlacement.Right,label:e.name,onClick:function(){return function(e){m(f===e?void 0:e)}(e)}})},t)}))]})}),(0,_.jsx)("div",{className:Dh.bottom,children:(0,_.jsxs)("ul",{children:[(0,_.jsx)("li",{"data-testid":"account-panel",ref:k,children:(0,_.jsx)(eh,{userProfile:K,menuPlacement:i.DropDownPlacement.Right,menuOpen:H,setMenuOpen:V,renderTrigger:function(e,t,n){return(0,_.jsx)(i.AvatarButton,kh(kh({},n),{},{ref:e,onClick:t}))}})}),!1]})})]}),(0,_.jsx)(yh,{ref:S,overlayRef:j,categories:n,selectedCategory:f,applicationPath:C,handleClick:function(e){v(e),m(void 0)},className:w?Dh.scrollableApplicationList:"",onOutsideClick:J})]})}));Ph.displayName="ApplicationMenu";var Eh=r.default.forwardRef((function(e,t){var n=e.containerRef,r=um(),o=r.breadcrumbs,a=r.statusNode;return(0,_.jsx)(i.Breadcrumbs,{ref:t,containerRef:n,breadcrumbs:o.filter((function(e){return e.text})),status:a})}));Eh.displayName="Breadcrumbs";var Ih=s(6590),Mh={};Mh.styleTagTransform=wn(),Mh.setAttributes=bn(),Mh.insert=An().bind(null,"head"),Mh.domAPI=gn(),Mh.insertStyleElement=xn();fn()(Ih.Z,Mh);const Lh=Ih.Z&&Ih.Z.locals?Ih.Z.locals:void 0;function Nh(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 Rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nh(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fh=function(e){var t=g((0,r.useState)(!1),2),n=t[0],o=t[1];return(0,_.jsx)(i.DropDownActionMenu,Rh(Rh({},e),{},{open:n,onToggle:o,children:e.renderMenu(o)}))},zh=(0,i.createSelectGroup)(),Wh="site",Hh=function(e){var t=e.currentSiteName,n=e.sites,a=e.sitesApplication,s=w().localization,l=(0,o.useLocation)().pathname,c=(0,o.useNavigate)(),d=[{id:Wh,title:s.admin.base.app.siteSelector.sites,defaultLabel:s.admin.base.app.siteSelector.siteUnavailable,noItemLabel:s.admin.base.app.siteSelector.noSitesAvailable,options:L(n),footer:Rh({},a)}],p=g((0,r.useState)(u({},Wh,t)),2),f=p[0],m=p[1];return(0,_.jsx)("div",{className:Lh.siteSelector,"data-testid":"SiteSelector",children:(0,_.jsx)(zh,{selects:d,paperClassName:Lh.paper,renderSelect:function(e,t){return(0,_.jsx)(Fh,{renderTrigger:function(t,n,r){return(0,_.jsx)(i.SelectGroupCell,{ref:t,onClick:n,label:f[e.id]||e.defaultLabel,open:r,icon:e.icon})},renderMenu:function(n){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.ActionMenuHeadline,{label:e.title}),e.options.length?e.options.map((function(r){return(0,_.jsx)(i.MenuItem,{primaryLabel:r.name,value:r.name,onClick:function(){var o,i;n(!1),t(),o=e.id,i=r.name,m(Rh(Rh({},f),{},u({},o,i))),window.location.href="".concat(r.url).concat(G(l))}},r.name)})):(0,_.jsx)(i.MenuItem,{primaryLabel:e.noItemLabel,disabled:!0}),e.footer&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.ActionMenuDivider,{}),(0,_.jsx)(i.MenuItem,{primaryLabel:e.footer.name,value:e.footer.name,onClick:function(){n(!1),t(),c(e.footer.path)}})]})]})}},e.id)}})})},Vh=s(1028),Yh={};Yh.styleTagTransform=wn(),Yh.setAttributes=bn(),Yh.insert=An().bind(null,"head"),Yh.domAPI=gn(),Yh.insertStyleElement=xn();fn()(Vh.Z,Yh);const Zh=Vh.Z&&Vh.Z.locals?Vh.Z.locals:void 0;function Uh(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 Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uh(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qh=function(){var e=(0,r.useRef)(null),t=(0,r.useContext)(im).siteSelectorProperties,n=g((0,r.useState)(0),2),o=n[0],i=n[1],a=(0,r.useRef)(null),s=(0,r.useRef)(null),l=function(){var t,n,r;(null==e||null===(t=e.current)||void 0===t?void 0:t.offsetWidth)!==(null==e||null===(n=e.current)||void 0===n?void 0:n.scrollWidth)&&i((null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)||0)};return Jn({ref:e,onResize:l}),Jn({ref:s,onResize:l}),Jn({ref:a,onResize:function(){var e,t,n;(null==a||null===(e=a.current)||void 0===e?void 0:e.offsetWidth)!==(null==a||null===(t=a.current)||void 0===t?void 0:t.scrollWidth)&&i((null==a||null===(n=a.current)||void 0===n?void 0:n.scrollWidth)||0)}}),(0,_.jsxs)("header",{ref:e,className:Zh.statusBar,"data-testid":"Header",children:[(0,_.jsxs)("div",{ref:a,className:Zh.left,style:{minWidth:o},children:[(0,_.jsx)(Hh,Gh({},t)),(0,_.jsx)(Eh,{containerRef:e})]}),(0,_.jsx)("div",{ref:s,className:Zh.right,children:(0,_.jsx)("div",{id:"applicationHeader"})})]})};qh.displayName="StatusBar";var Qh=s(6448),Xh={};Xh.styleTagTransform=wn(),Xh.setAttributes=bn(),Xh.insert=An().bind(null,"head"),Xh.domAPI=gn(),Xh.insertStyleElement=xn();fn()(Qh.Z,Xh);const Kh=Qh.Z&&Qh.Z.locals?Qh.Z.locals:void 0;var Jh=function(e){var t=e.categories,n=e.showError,r=e.showWarning,o=e.expiringLicenseMessage,i=e.affectedLicenseHashes;return(0,_.jsxs)("div",{className:Kh.main,children:[(0,_.jsx)(Ph,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:i}),(0,_.jsxs)("div",{className:Kh.content,children:[(0,_.jsx)(qh,{}),(0,_.jsx)("div",{className:Kh.canvas,children:(0,_.jsx)("div",{className:Kh.placeholder,children:(0,_.jsx)(Jg,{})})})]}),(0,_.jsx)("div",{id:"sidePanelPlaceholder"})]})},$h=s(3017),eA={};eA.styleTagTransform=wn(),eA.setAttributes=bn(),eA.insert=An().bind(null,"head"),eA.domAPI=gn(),eA.insertStyleElement=xn();fn()($h.Z,eA);const tA=$h.Z&&$h.Z.locals?$h.Z.locals:void 0;function nA(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 rA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oA=r.default.forwardRef((function(e,t){var n=e.active,r=e.link,i=e.children,a=e.ariaLabel,s=e.onClick,l=Fu(),c=l.isFocusVisible,u=l.focusProps,d=Kt()(tA.cell,n&&tA.active,c&&tA.focused);return r?(0,_.jsx)(o.NavLink,rA(rA({to:r,className:d,"aria-label":a},u),{},{children:i})):(0,_.jsx)("button",rA(rA({className:d},u),{},{onClick:s,ref:t,children:i}))}));oA.displayName="Cell";var iA=s(2495),aA={};aA.styleTagTransform=wn(),aA.setAttributes=bn(),aA.insert=An().bind(null,"head"),aA.domAPI=gn(),aA.insertStyleElement=xn();fn()(iA.Z,aA);const sA=iA.Z&&iA.Z.locals?iA.Z.locals:void 0;function lA(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 cA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uA=function(e){var t=e.className,n=(0,r.useContext)(im).siteSelectorProperties,o=(0,r.useContext)(im).userProfile,a=g((0,r.useState)(!1),2),s=a[0],l=a[1];return(0,_.jsxs)(i.Paper,{className:Kt()(sA.smallStatusBar,t),children:[(0,_.jsx)(oA,{link:"/",ariaLabel:"logo",children:(0,_.jsx)("div",{className:sA.logo})}),(0,_.jsx)(Hh,cA({},n)),(0,_.jsx)(eh,{userProfile:o,menuOpen:s,setMenuOpen:l,renderTrigger:function(e,t,n,r){return(0,_.jsx)(oA,{onClick:t,ref:e,active:r,children:(0,_.jsx)(i.Avatar,cA(cA({},n),{},{size:i.AvatarSize.XS,shadow:!1,tooltipText:""}))})}})]})};uA.displayName="SmallStatusBar";var dA=s(5732),pA={};pA.styleTagTransform=wn(),pA.setAttributes=bn(),pA.insert=An().bind(null,"head"),pA.domAPI=gn(),pA.insertStyleElement=xn();fn()(dA.Z,pA);const fA=dA.Z&&dA.Z.locals?dA.Z.locals:void 0;var mA=r.default.forwardRef((function(e,t){var n=e.categories,a=e.className,s=e.applicationListVisible,l=e.setApplicationListVisible,c=e.showError,u=e.showWarning,d=e.expiringLicenseMessage,p=e.affectedLicenseHashes,f=g((0,r.useState)(!1),2),m=f[0],h=f[1],A=g((0,r.useState)(!1),2),v=A[0],b=A[1],C=(0,o.useLocation)(),x=w().localization,y=(0,r.useRef)(null),O=t||y,S=(0,i.useSnackbar)(),j=S.addMessage,T=S.clearMessages,D=g((0,r.useState)(!1),2),B=D[0],k=D[1],P=g((0,r.useState)(!1),2),E=P[0],I=P[1],M="kxp.applicationMenu.licenseWarning",L="kxp.applicationMenu.licenseError",N="kxp.applicationMenu.displayingMessage",R="kxp.applicationMenu.affectedLicenses",F=(0,r.useCallback)((function(){var e=JSON.stringify(p),t=localStorage.getItem(R);return!(!t||t!==e)||(localStorage.setItem(R,e),!1)}),[p]);(0,r.useEffect)((function(){if(B){var e=F(),t=localStorage.getItem(N);if(e&&"true"===t)k(!1);else{localStorage.setItem(N,"true");var n=(new Date).getTime()+18e5;j({message:d,variant:i.SnackbarItemVariant.Error,messageAsHtml:!0,onClose:function(){localStorage.removeItem(N),localStorage.setItem(L,n.toString()),k(!1)}})}}}),[B,k,j,d,F]),(0,r.useEffect)((function(){if(E){var e=F(),t=localStorage.getItem(N);if(e&&"true"===t)I(!1);else{localStorage.setItem(N,"true");var n=(new Date).getTime()+864e5;j({message:d,variant:i.SnackbarItemVariant.Warning,messageAsHtml:!0,onClose:function(){localStorage.removeItem(N),localStorage.setItem(M,n.toString()),I(!1)}})}}}),[E,I,j,d,F]),(0,r.useEffect)((function(){var e=localStorage.getItem(R);if(e){var t=JSON.parse(e),n=t?t.length:0;(p?p.length:0)!==n&&(T(),localStorage.removeItem(N),localStorage.removeItem(L),localStorage.removeItem(M))}setInterval((function(){var e=(new Date).getTime(),t=localStorage.getItem(L);if(t&&e>Number(t))return void k(!0);var n=localStorage.getItem(M);n&&(e>Number(n)&&I(!0))}),6e4);var r=(new Date).getTime(),o=F();if(c||u||localStorage.removeItem(N),c){var i=localStorage.getItem(L);(!o||!i||r>Number(i))&&k(!0)}else if(u){var a=localStorage.getItem(M);(!o||!a||r>Number(a))&&I(!0)}}),[]),(0,r.useEffect)((function(){var e=G(C.pathname).substring(1).split("/")[0].toLowerCase(),t=n.some((function(t){return t.applications.some((function(t){return t.path.toLowerCase()===e}))}));h(t)}),[C,n,h]),(0,r.useEffect)((function(){b(!s&&!m)}),[b,s,m]);return(0,_.jsxs)("div",{className:Kt()(fA.applicationMenuMobile,a),ref:O,children:[(0,_.jsx)(i.ApplicationTile,{iconName:"xp-home",label:x.admin.base.app.applicationMenuMobile.home,state:v?i.ApplicationTileState.Activated:i.ApplicationTileState.Default,onClick:function(){l(!1)},link:"/"}),(0,_.jsx)(i.ApplicationTile,{iconName:"xp-menu",label:x.admin.base.app.applicationMenuMobile.applications,state:v?i.ApplicationTileState.Default:i.ApplicationTileState.Activated,onClick:function(){l(!s)}})]})}));mA.displayName="ApplicationMenuMobile";var gA=s(4236),hA={};hA.styleTagTransform=wn(),hA.setAttributes=bn(),hA.insert=An().bind(null,"head"),hA.domAPI=gn(),hA.insertStyleElement=xn();fn()(gA.Z,hA);const AA=gA.Z&&gA.Z.locals?gA.Z.locals:void 0;var vA=function(e){var t=e.categories,n=e.showError,o=e.showWarning,a=e.expiringLicenseMessage,s=e.affectedLicenseHashes,l=g((0,r.useState)(!1),2),c=l[0],u=l[1],d=g((0,r.useState)(!1),2),p=d[0],f=d[1],m=(0,i.useScrollDown)(),h=(0,i.useMobileKeyboard)(),A=Kt()(c&&AA.statusBarWrapper),v=Kt()(c&&AA.statusBarOnAppList),b=Kt()(p&&AA.guard);return(0,r.useEffect)((function(){window.scrollTo(0,0)}),[c]),(0,_.jsxs)("div",{className:Kt()(AA.main,c&&AA.withApplicationList),children:[(0,_.jsx)("div",{className:A,children:(0,_.jsx)(uA,{className:v})}),(0,_.jsx)("div",{className:AA.canvas,children:c?(0,_.jsx)(Sh,{categories:t,isOverflowing:p,setIsOverflowing:f,handleClick:function(){return u(!1)}}):(0,_.jsx)("div",{className:AA.placeholder,children:(0,_.jsx)(Jg,{})})}),!(h||m)&&(0,_.jsx)(mA,{className:b,categories:t,setApplicationListVisible:u,applicationListVisible:c,showError:n,showWarning:o,expiringLicenseMessage:a,affectedLicenseHashes:s})]})},bA=function(e){var t=e.categories,n=e.showError,r=e.showWarning,o=e.expiringLicenseMessage,a=e.affectedLicenseHashes;return(0,i.useMediaBreakpoints)().mobile?(0,_.jsx)(vA,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:a}):(0,_.jsx)(Jh,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:a})};function CA(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return xA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xA(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function xA(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 yA=function(){function e(t){var n,r,o,i,a,s,l;if(Nr(this,e),null===t.container)throw new Error("Container cannot be null.");if(t.container instanceof HTMLElement)this.container=t.container,this.containerClass=t.container.className;else{this.containerClass=t.container;var c=document.querySelector(t.container);if(!c)throw new Error("Container element not found.");this.container=c}if(!t.static&&!t.items)throw new Error("Items are required for dynamic content.");this.static=null!==(n=t.static)&&void 0!==n&&n,this.size=t.items,this.gutter=null!==(r=t.gutter)&&void 0!==r?r:25,this.maxColumns=null!==(o=t.maxColumns)&&void 0!==o?o:5,this.useMin=null!==(i=t.useMin)&&void 0!==i&&i,this.useTransform=null===(a=t.useTransform)||void 0===a||a,this.animate=null!==(s=t.animate)&&void 0!==s&&s,this.center=null!==(l=t.center)&&void 0!==l&&l,this.styledItems=new Set}return Fr(e,[{key:"initStyles",value:function(){if(this.ready()){this.container.style.position="relative";for(var e=this.items(),t=0;t<e.length;t++)if(!this.styledItems.has(e[t])){var n=e[t].style;n.position="absolute",this.animate&&(n.transition="".concat(this.useTransform?"transform":"top, left"," 0.2s ease")),this.styledItems.add(e[t])}}}},{key:"items",value:function(){return this.container.children}},{key:"colWidth",value:function(){return this.items()[0].getBoundingClientRect().width+this.gutter}},{key:"getMin",value:function(e){var t,n=e[0],r=CA(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.height<n.height&&(n=o)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"setup",value:function(){var e=this.container.getBoundingClientRect().width,t=this.colWidth(),n=Math.floor(e/t)||1,r=[];this.maxColumns&&n>this.maxColumns&&(n=this.maxColumns);for(var o=0;o<n;o++)r[o]={height:0,index:o};return{cols:r,wSpace:e-n*t+this.gutter}}},{key:"nextCol",value:function(e,t){return this.useMin?this.getMin(e):e[t%e.length]}},{key:"positionItems",value:function(){var e=this.setup(),t=e.cols,n=e.wSpace,r=0,o=this.colWidth(),i=this.items();n=this.center?Math.floor(n/2):0,this.initStyles();for(var a=0;a<i.length;a++){var s=this.nextCol(t,a),l=i[a],c=s.height?this.gutter:0,u=s.index*o+n+"px",d=s.height+c+"px";this.useTransform?l.style.transform="translate(".concat(u,", ").concat(d,")"):(l.style.top=d,l.style.left=u),s.height+=l.getBoundingClientRect().height+c,s.height>r&&(r=s.height)}this.container.style.height=r+this.gutter+"px"}},{key:"ready",value:function(){return!!this.static||this.items().length>=this.size}},{key:"getReady",value:function(){var e=this,t=setInterval((function(){var n=document.querySelector(e.containerClass);n&&(e.container=n),e.ready()&&(clearInterval(t),e.listen())}),100)}},{key:"listen",value:function(){var e,t=this;this.ready()?(window.addEventListener("resize",(function(){e||(e=setTimeout((function(){t.positionItems(),e=null}),200))})),this.positionItems()):this.getReady()}}]),e}();const wA=yA;var _A=["as","children"];function OA(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}var SA=function(e){var t=e.as,n=void 0===t?"div":t,o=e.children,i=h(e,_A),a=(0,r.useRef)(null),s=r.default.useRef(null);return(0,r.useEffect)((function(){var e=new wA(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({container:a.current},i)),t=function(){s.current||(s.current=window.setTimeout((function(){e&&e.positionItems(),clearTimeout(s.current)}),200))};return window.addEventListener("resize",t),e.positionItems(),function(){window.removeEventListener("resize",t)}})),(0,_.jsx)(n,{ref:a,children:o})},jA=s(438),TA={};TA.styleTagTransform=wn(),TA.setAttributes=bn(),TA.insert=An().bind(null,"head"),TA.domAPI=gn(),TA.insertStyleElement=xn();fn()(jA.Z,TA);const DA=jA.Z&&jA.Z.locals?jA.Z.locals:void 0;var BA=function(e){var t=e.categories,n=e.callouts,a=w().localization,s=(0,o.useNavigate)(),l=(0,i.useMediaBreakpoints)(),c=l.mobile,u=l.lg,d=g((0,r.useState)(i.ActionTileSize.Large),2),p=d[0],f=d[1];(0,r.useEffect)((function(){f(c?i.ActionTileSize.XSmall:u?i.ActionTileSize.Large:i.ActionTileSize.Small)}),[c,u]);var m=t?t.map((function(e){return(0,_.jsxs)("div",{className:DA.category,children:[(0,_.jsx)("div",{className:DA.categoryTitle,children:(0,_.jsx)("span",{children:e.name})}),(0,_.jsx)("div",{className:Kt()(DA.applications),children:e.applications.map((function(e,t){return(0,_.jsx)(i.ActionTile,{icon:e.icon,label:e.name,size:p,type:i.ActionTileType.Dashboard,onClick:function(){return s("../".concat(e.path))}},t)}))})]},e.codeName)})):[];return(0,_.jsxs)("div",{className:DA.dashboard,children:[(0,_.jsx)("div",{className:DA.titleWrapper,children:(0,_.jsx)("span",{className:DA.title,children:a.admin.base.dashboard.home})}),(0,_.jsxs)("div",{children:[n&&n.map((function(e,t){return(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,_.jsx)(ff,{calloutConfiguration:e})},t)})),(0,_.jsx)("div",{className:DA.categories,children:c?(0,_.jsx)(_.Fragment,{children:m}):0!==m.length&&(0,_.jsx)(SA,{items:m.length,useMin:!0,gutter:0,center:!1,children:m})})]})]})},kA=r.default.createContext({navigation:[],push:function(){},pop:function(){},refreshItem:function(){}});kA.displayName="SecondaryMenuNavigationContext";var PA=function(){return r.default.useContext(kA)};function EA(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 IA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var MA=function(e){var t=e.children,n=g((0,r.useState)([]),2),i=n[0],a=n[1],s=(0,r.useCallback)((function(e,t){return IA(IA({},e),{},{items:e.items.map((function(e){return IA(IA({},e),{},{path:(0,o.resolvePath)(e.path,t).pathname})}))})}),[]),l=(0,r.useCallback)((function(e,t){a((function(n){return[].concat(L(n),[s(e,t)])}))}),[s]),c=(0,r.useCallback)((function(){a((function(e){return e.slice(0,-1)}))}),[]),u=(0,r.useCallback)((function(e,t){a((function(n){var r=L(n);return r[e]=IA(IA({},r[e]),{},{headline:t}),r}))}),[]);return(0,_.jsx)(kA.Provider,{value:{navigation:i,push:l,pop:c,refreshItem:u},children:t})},LA=s(6221),NA={};NA.styleTagTransform=wn(),NA.setAttributes=bn(),NA.insert=An().bind(null,"head"),NA.domAPI=gn(),NA.insertStyleElement=xn();fn()(LA.Z,NA);const RA=LA.Z&&LA.Z.locals?LA.Z.locals:void 0;function FA(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 zA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var WA="Change",HA="Submit",VA=function(e){return e.map((function(e,t){return(0,_.jsx)(ff,{calloutConfiguration:e},t)}))},YA=function(e){var t=e.items,n=e.submitLabel,o=e.additionalActions,a=e.errorMessage,s=e.disabled,l=e.headline,c=e.backLink,u=e.callouts,d=w().localization,f=xf(),m=f.setPromptSuppressed,h=f.getNewId,A=(0,r.useRef)(h()),b=g((0,r.useState)([]),2),C=b[0],x=b[1],y=r.default.useRef(null),O=(0,i.useMediaBreakpoints)(),S=cf(WA,{after:function(e){e&&x(e.items)}}).execute,j=cf(HA,{before:function(){m(A.current,!0),V&&U(!0),L&&z(!0)},after:function(e){var t;(L&&z(!1),V&&U(!1),e)&&(e.items&&x(e.items),e.status===co.ValidationSuccess&&(null===(t=y.current)||void 0===t||t.resetDataChanged(),void 0!==e.objectDisplayName&&null!==e.objectDisplayName&&oe(e.objectDisplayName),L?N():V&&Y()));m(A.current,!1)}}).execute;(0,r.useEffect)((function(){var e=A.current;return function(){m(e,!1)}}),[m]);var T=g((0,r.useState)(!1),2),D=T[0],B=T[1],k=rf(),P=k.isNested,E=k.setActions;(0,r.useEffect)((function(){P&&E(s?void 0:{submitAction:{label:n,onClick:function(){var e;return null===(e=y.current)||void 0===e?void 0:e.submit()},inProgress:D},additionalActions:o})}),[P,s,n,o,E,D]);var I=Bm(),M=I.setTitle,L=I.isInDialog,N=I.closeDialog,R=I.setMinWidth,F=I.setMaxWidth,z=I.setActionInProgress;(0,r.useEffect)((function(){var e=function(e){return"@kentico/xperience-admin-base/ObjectSelector"===e.componentName};L&&(M(l),R("65vw"),function(t){return t.some((function(t){return e(t)}))}(C)&&F("65vw"))}),[L,s,R,F,M,n,l,C]);var W=Sm(),H=W.setTitle,V=W.isInSidePanel,Y=W.closeSidePanel,Z=W.setWidth,U=W.setActionInProgress;(0,r.useEffect)((function(){V&&(H(l),Z("600px"))}),[V,s,Z,H,n,l]);var G=(0,r.useContext)(im).navigation,Q=um(),X=Q.breadcrumbs,K=Q.refreshItem,J=PA(),$=J.navigation,ee=J.push,te=J.pop,ne=J.refreshItem,re=q(),oe=function(e){K(Yp(X,(function(e){return e.isSignificant})),e),ne(Yp($,(function(e){return e.isSignificant})),e)};if((0,r.useEffect)((function(){return G.items.length?(ee(G,re),G.isTemporary?te:function(){}):function(){}}),[G,re,ee,te]),(0,r.useEffect)((function(){x(t)}),[t]),a)return(0,_.jsx)("div",{children:a});if(!C)return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Ng,{title:d.admin.base.edit.noElementTitle,text:d.admin.base.edit.noElementText})});var ie=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.changedField.hasDependencies){e.next=3;break}return e.next=3,S({data:t.values});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,B(!0),e.next=4,j({data:t.values});case 4:return e.prev=4,B(!1),e.finish(4);case 7:case"end":return e.stop()}}),e,null,[[0,,4,7]])})));return function(t){return e.apply(this,arguments)}}(),se=function(){return(0,_.jsx)(Jd,{ref:y,items:C,onSubmit:ae,onChange:ie,disabled:s,dataTestId:"edit-form"})};if(P)return(0,_.jsxs)("div",{className:RA.templateWrapper,children:[se(),VA(u)]});var le=u.filter((function(e){return e.type===i.CalloutType.FriendlyWarning})),ce=u.filter((function(e){return e.type===i.CalloutType.QuickTip}));return(0,_.jsxs)("div",{className:RA.templateWrapper,children:[l&&(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,children:l}),(0,_.jsx)(i.StickyHeader,{children:(0,_.jsxs)("div",{className:RA.actionsWrapper,children:[c&&(0,_.jsx)(Pf,{color:i.ButtonColor.Secondary,icon:"xp-arrow-left",href:c}),!s&&(0,_.jsxs)(i.Inline,{children:[null==o?void 0:o.map((function(e,t){return(0,r.createElement)(Yg,zA(zA({},e),{},{key:t}))})),(0,_.jsx)(i.Button,{type:i.ButtonType.Submit,label:n,color:i.ButtonColor.Primary,onClick:function(){var e;return null===(e=y.current)||void 0===e?void 0:e.submit()},dataTestId:"submit-form-button",inProgress:D})]})]})}),(0,_.jsx)(Fm,{children:(0,_.jsxs)(i.Row,{spacing:i.Spacing.XL,children:[(O.sm||O.md)&&le.length>0&&(0,_.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,children:VA(le)}),(0,_.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,colsLg:i.Cols.Col8,children:(0,_.jsx)(i.Paper,{borderRadius:i.BorderRadius.RadiusL,children:(0,_.jsx)(i.Box,{spacing:i.Spacing.XXL,children:se()})})}),O.lg&&u.length>0&&(0,_.jsx)(i.Column,{colsLg:i.Cols.Col4,children:(0,_.jsx)(i.Stack,{spacing:i.Spacing.XL,children:VA(u)})}),(O.sm||O.md)&&ce.length>0&&(0,_.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,children:VA(ce)})]})})]})};function ZA(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}var UA=function(e){var t={action:So({},(Oo(e),e))};return(0,_.jsx)(Tf,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))};UA.displayName="ButtonEditTemplateActionComponent";var GA=s(5146),qA={};qA.styleTagTransform=wn(),qA.setAttributes=bn(),qA.insert=An().bind(null,"head"),qA.domAPI=gn(),qA.insertStyleElement=xn();fn()(GA.Z,qA);const QA=GA.Z&&GA.Z.locals?GA.Z.locals:void 0;var XA=function(e){var t=e.callouts,n=e.headline,r=e.content,o=e.actionButton,i=w().localization,a=C().sanitize;return(0,_.jsxs)("div",{className:QA.content,children:[r&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:QA.titleWrapper,children:(0,_.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDQuNDUgMTUwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2YwNWEyMjt9LmNscy0ye2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9IkxheWVyXzIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PHBhdGggZD0iTTIxNC4xLDcyLjQ1bDE5LjczLDI1LjMxSDIxOS45NEwyMDMuNDQsNzUuNlY5Ny43NkgxOTEuODJWNDcuNTVoMTEuNjJ2MjIuM0wyMjAsNDcuNTVoMTMuNzdaIi8+PHBhdGggZD0iTTI2OS43OSw4My40OUgyNDQuMjVjLjIxLDQuNTUsMy4yMyw3LDguMSw3LDMuMzgsMCw1LjUzLS45MSw2LjQ2LTMuMDloMTAuNzRjLTEuMDcsNi44MS04LDExLjMzLTE3LjIxLDExLjMzLTExLjc3LDAtMTktNi42Ny0xOS0xOC4xOCwwLTExLjMzLDcuMzktMTguMTgsMTguNjUtMTguMTgsMTAuNzYsMCwxOC4wNyw2LjY3LDE4LjA3LDE2LjQyYTM3LjQ1LDM3LjQ1LDAsMCwxLS4yNiw0Ljc0Wm0tMTAuNTQtNi44MmMtLjA4LTQuNTQtMi42Ni03LTcuMzItN3MtNy42LDIuOC03LjY4LDdaIi8+PHBhdGggZD0iTTI3Ni4zOSw2My4xOWgxMXY1YzItMy44Nyw2LTYsMTEuMTktNiw4LjQsMCwxMi42Myw0LjczLDEyLjYzLDE0LjEyVjk3Ljc0SDMwMC4xM1Y4MGMwLTUuODEtMS42NS04LjQ2LTYuMDktOC40NnMtNi42OCwyLjg3LTYuNjgsOC4xOFY5Ny44aC0xMVoiLz48cGF0aCBkPSJNMzQxLjI0LDg5djguNzVhNDMuOCw0My44LDAsMCwxLTcuMzIuNThjLTUuMTcsMC0xMi4yNy0xLjE1LTEyLjI3LTEyLjczVjcxLjg2SDMxNi4yVjYzLjE5aDUuNDVWNTIuOTNoMTFWNjMuMTloNy44M3Y4LjY3aC03LjgxVjgzLjM1YzAsNS4wOSwyLjA4LDUuODgsNC44LDUuODhBMzIuMTEsMzIuMTEsMCwwLDAsMzQxLjI0LDg5WiIvPjxwYXRoIGQ9Ik0zNDYuMjUsNTMuNWE2LjY4LDYuNjgsMCwxLDEsLjUsMi41OCw2LjUyLDYuNTIsMCwwLDEtLjUtMi41OFptMS4zLDkuNjloMTAuOVY5Ny43NGgtMTAuOVoiLz48cGF0aCBkPSJNMzY0Ljg0LDgwLjQ3YzAtMTAuOTEsNy4xLTE4LjE4LDE4LjUtMTguMTgsMTAuMzIsMCwxNy4wNyw1LjQ2LDE3LjkzLDE0LjA2aC0xMWMtLjc5LTMuMjItMi44Ny00LjczLTYuODktNC43My00Ljc0LDAtNy42LDMuMTUtNy42LDguODlzMi44Niw4LjksNy42LDguOWM0LDAsNi4xLTEuNDQsNi44OS00LjQ2aDExYy0uODYsOC40LTcuNjEsMTMuNzgtMTcuOTMsMTMuNzhDMzcxLjk0LDk4LjY5LDM2NC44NCw5MS4zNywzNjQuODQsODAuNDdaIi8+PHBhdGggZD0iTTQwNi4wNyw4MC40N2MwLTEwLjU0LDcuMzItMTguMTgsMTkuMjMtMTguMThTNDQ0LjQ1LDcwLDQ0NC40NSw4MC40N3MtNy4zMSwxOC4xOC0xOS4xNSwxOC4xOFM0MDYuMDcsOTEsNDA2LjA3LDgwLjQ3Wm0yNy40OCwwYzAtNS4yMy0zLjA5LTktOC4yNS05cy04LjI1LDMuNzMtOC4yNSw5LDMsOSw4LjI1LDlTNDMzLjU1LDg1LjcxLDQzMy41NSw4MC40N1oiLz48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9Ijc1IiBjeT0iNzUiIHI9Ijc1Ii8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNzUsNjVhMTAuMDcsMTAuMDcsMCwxLDEtNy4xLDNBMTAsMTAsMCwwLDEsNzUsNjUiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0xMDAuODIsNjguMWgyMS42YS44Ni44NiwwLDAsMSwuNTMuMTkuNzcuNzcsMCwwLDEsLjI4LjQ4Yy41MywyLjcyLDEuOTEsMTMuMTMtNi44NCwxMy4xM0gxMDFjLTguNSwwLTguNjktMTMuOC0uMS0xMy44Ii8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNDkuMTgsODEuOUgyNy41OGEuODYuODYsMCwwLDEtLjUzLS4xOS44Ny44NywwLDAsMS0uMjgtLjQ4Yy0uNTMtMi43Mi0xLjkyLTEzLjEzLDYuODQtMTMuMTNINDkuMDhjOC41LDAsOC42OSwxMy44LjEsMTMuOCIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTg4LjM4LDUxLjg2bDE1LjI4LTE1LjI4YS44Ni44NiwwLDAsMSwuNS0uMjMuOC44LDAsMCwxLC41NC4xNGMyLjMyLDEuNTcsMTAuNjQsNy45Miw0LjQ0LDE0LjEyTDk4LjIxLDYxLjU0Yy02LDYtMTUuOS0zLjYzLTkuODMtOS42OCIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTYxLjYyLDk4LjE0LDQ2LjM0LDExMy40MWEuNzkuNzksMCwwLDEtLjUuMjQuOC44LDAsMCwxLS41NC0uMTRjLTIuMzItMS41OC0xMC42NC03LjkzLTQuNDQtMTQuMTJMNTEuNzksODguNDVDNTcuODEsODIuNDQsNjcuNjksOTIuMDgsNjEuNjIsOTguMTRaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNjguMSw0OS4xOFYyNy41N2EuODMuODMsMCwwLDEsLjE5LS41Mi43Ny43NywwLDAsMSwuNDgtLjI4YzIuNzItLjUyLDEzLjEzLTEuOTIsMTMuMTMsNi44NVY0OWMwLDguNS0xMy44LDguNjktMTMuOC4xIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNODEuOSwxMDAuODJ2MjEuNjFhLjgzLjgzLDAsMCwxLS4xOS41Mi44Ny44NywwLDAsMS0uNDguMjhjLTIuNzIuNTItMTMuMTMsMS45MS0xMy4xMy02Ljg1VjEwMC45MUM2OC4xLDkyLjQyLDgxLjksOTIuMjIsODEuOSwxMDAuODJaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNTEuODcsNjEuNjIsMzYuNTksNDYuMzRhLjgxLjgxLDAsMCwxLS4yNC0uNS44LjgsMCwwLDEsLjE0LS41NGMxLjU4LTIuMzIsNy45My0xMC42MywxNC4xMi00LjQ0TDYxLjU1LDUxLjhjNiw2LTMuNjMsMTUuOS05LjY4LDkuODIiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik05OC4xMyw4OC4zOGwxNS4yOCwxNS4yN2EuODQuODQsMCwwLDEsLjI0LjUxLjguOCwwLDAsMS0uMTQuNTRjLTEuNTgsMi4zMi03LjkzLDEwLjYzLTE0LjEzLDQuNDRMODguNDUsOTguMmMtNi02LDMuNjMtMTUuOSw5LjY4LTkuODIiLz48L2c+PC9zdmc+",alt:i.admin.app.productName})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:QA.sectionTitle,children:(0,_.jsx)("span",{children:n})}),(0,_.jsx)("div",{className:QA.sectionContent,dangerouslySetInnerHTML:{__html:a(r)}}),(0,_.jsx)(Og,{actions:[o],dataTestId:"listing-header-actions"})]})]}),t&&t.map((function(e,t){return(0,_.jsx)(ff,{calloutConfiguration:e},t)}))]})};const KA={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function JA(e){let{children:t,elementType:n="div",isFocusable:o,style:i,...a}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:n}=e,[o,i]=(0,r.useState)(!1),{focusWithinProps:a}=Iu({isDisabled:!n,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,r.useMemo)((()=>o?t:t?{...KA,...t}:KA),[o])}}}(e);return r.default.createElement(n,su(a,s),t)}var $A=s(610),ev={};ev.styleTagTransform=wn(),ev.setAttributes=bn(),ev.insert=An().bind(null,"head"),ev.domAPI=gn(),ev.insertStyleElement=xn();fn()($A.Z,ev);const tv=$A.Z&&$A.Z.locals?$A.Z.locals:void 0;var nv="Submit",rv=function(e){var t=e.backLink,n=e.errorMessage,o=e.caption,a=e.submitLabel,s=e.initialConfiguration,l=e.availableMacroRuleConfigurations,c=e.availableMacroRules,u=g((0,r.useState)(s),2),d=u[0],f=u[1],m=Wd(),h=m.setDataChanged,A=m.getNewId,b=(0,r.useRef)(A()),C=w().localization,x=rf(),y=x.isNested,O=x.setActions,S=Bm(),j=S.setTitle,T=S.isInDialog,D=S.closeDialog,B=S.setWidth,k=S.setHeight,P=S.setIsFullscreen,E=S.setActionInProgress,I=xf().setTexts,M=Ao(1024);I({message:C.admin.base.conditionBuilder.cancelConfirmation}),(0,r.useEffect)((function(){var e=b.current;return function(){h(e,!1)}}),[h]);var L=cf(nv,{before:function(){T&&E(!0)},after:function(e){T&&E(!1),e&&(e.status!==co.ValidationSuccess?h(b.current,!0):T&&D())}}).execute,N=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(b.current,!1),e.next=3,L(Ir(d));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=(0,r.useRef)(null);return(0,r.useEffect)((function(){y&&O({submitAction:{label:a,onClick:function(){var e;return null==R||null===(e=R.current)||void 0===e?void 0:e.click()}}})}),[y,a,O]),(0,r.useEffect)((function(){T&&(j(o),B(ii),k("100%"),P(M))}),[T,d,B,j,a,o,k,P,M]),n?(0,_.jsx)("div",{children:n}):(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:T?"":tv.templateWrapper,children:[!T&&(0,_.jsxs)(_.Fragment,{children:[o&&(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:o}),(0,_.jsxs)("div",{className:tv.actionsWrapper,children:[t&&(0,_.jsx)(Pf,{color:i.ButtonColor.Secondary,icon:"xp-arrow-left",href:t}),(0,_.jsx)(i.Button,{type:i.ButtonType.Submit,label:a,color:i.ButtonColor.Primary,onClick:function(){return N()}})]})]}),(0,_.jsxs)("div",{className:T?"":tv.conditionBuilderWrapper,children:[(0,_.jsx)(JA,{children:(0,_.jsx)(i.Button,{buttonRef:R,type:i.ButtonType.Submit,label:a,onClick:function(){return N()}})}),(0,_.jsx)(oi,{initialConfiguration:d,availableMacroRuleConfigurations:l,availableMacroRules:c,onChange:function(e){h(b.current,!0),f(e)}})]})]})})};function ov(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 iv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ov(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ov(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var av=function(e){var t=e.componentName,n=e.componentConfiguration,r=E(t);return(0,_.jsx)(_.Fragment,{children:r&&(0,_.jsx)(r,iv({},n))})},sv=s(7648),lv={};lv.styleTagTransform=wn(),lv.setAttributes=bn(),lv.insert=An().bind(null,"head"),lv.domAPI=gn(),lv.insertStyleElement=xn();fn()(sv.Z,lv);const cv=sv.Z&&sv.Z.locals?sv.Z.locals:void 0;var uv=["headerActions","columns","caption","callouts","maxVisibleRowActions"];function dv(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 pv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dv(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fv="LoadData",mv=function(e){var n=e.headerActions,a=e.columns,s=e.caption,l=e.callouts,c=e.maxVisibleRowActions,u=h(e,uv),d=(0,o.useNavigate)(),f=j().executeCommand,m=w().localization,A=g((0,r.useState)(""),2),b=A[0],C=A[1],x=Bp().refetchDataInTemplates,y=r.default.createRef(),O=g((0,r.useState)(void 0),2),S=O[0],T=O[1],D=g((0,r.useState)({rows:void 0,totalCount:0}),2),B=D[0],k=D[1],P=g((0,r.useState)({currentPage:1,pageSize:u.pageSize,sortBy:u.sortBy,sortType:u.sortType,searchTerm:""}),2),E=P[0],I=P[1],M=cf(fv,{executeOnMount:!0,after:function(e){var t;e&&(0===(null==e||null===(t=e.rows)||void 0===t?void 0:t.length)&&1!==E.currentPage?I((function(e){return pv(pv({},e),{},{currentPage:e.currentPage-1})})):k(e))},data:E},[E]).execute,L=function(){var e=p(v().mark((function e(t,n){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(t.parameter,n.identifier);case 2:(r=e.sent)&&(r.refetchAll?x():r.reload&&M());case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),N=function(e){var t;return(0,_.jsxs)(i.Stack,{spacing:i.Spacing.XL,children:[e.confirmationDetail&&(0,_.jsx)("div",{children:e.confirmationDetail}),(null===(t=e.confirmationContent)||void 0===t?void 0:t.componentName)&&(0,_.jsx)(av,pv({},e.confirmationContent))]})},R=function(e,t){var n;T({confirmationButtonLabel:e.confirmationButton,children:N(e),isConfirmationButtonDestructive:e.destructive,headline:null!==(n=e.confirmation)&&void 0!==n?n:"",onCancellation:function(){return T(void 0)},onConfirmation:function(){null==t||t(),T(void 0)}})},F=function(e,n){e.disabled||(e.confirmation||e.confirmationDetail?e.type===t.Link?R(e,(function(){return d(e.parameter)})):R(e,(function(){return L(e,n)})):e.type===t.Link?d(e.parameter):L(e,n))},z=B.totalCount%E.pageSize>0?Math.trunc(B.totalCount/E.pageSize)+1:B.totalCount/E.pageSize,W=a.filter((function(e){return e.searchable})).length>0,H=n&&n.length>0,V=B.rows&&B.rows.length>0,Y=V||void 0===B.rows,Z=(W||H)&&(0,_.jsxs)("div",{className:cv.actions,children:[(0,_.jsx)(Og,{actions:n,dataTestId:"listing-header-actions"}),W&&(V||E.searchTerm)&&(0,_.jsx)(Cg,{value:b,placeholder:m.admin.base.listing.search.placeholder,onChange:function(e){return C(e)},onSubmit:function(){I((function(e){return pv(pv({},e),{},{currentPage:1,searchTerm:b})}))}})]});return(0,_.jsx)(Jg,{children:(0,_.jsx)(Fm,{children:(0,_.jsxs)("div",{className:cv.wrapper,children:[s&&(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.XL,children:s}),l&&l.map((function(e,t){return(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,_.jsx)(ff,{calloutConfiguration:e})},t)})),!Y&&Z,Y&&(0,_.jsx)(i.Table,{ref:y,columns:a.filter((function(e){return e.visible})),rows:function(e){if(void 0!==e){var t=function(e){var t=[];return e.cells.forEach((function(n,r){a[r].visible&&(n.type!==i.CellType.Action?t.push(n):t.push(pv(pv({},n),{},{onInvokeAction:function(t){return F(t,e)}})))})),t};return e.map((function(e){return{identifier:e.identifier,disabled:e.disabled,cells:t(e)}}))}}(B.rows),onSortChange:function(e){I((function(t){return pv(pv({},t),{},{sortBy:e.sortBy,sortType:e.sortType})}))},onRowClick:function(e){if(B.rows){var t=B.rows[e];t&&t.action&&F(t.action,t)}},selectRowLabel:m.admin.base.listing.table.selectRow,selectAllRowsLabel:m.admin.base.listing.table.selectAllRows,sortModel:{sortBy:E.sortBy,sortType:E.sortType},maxVisibleRowActions:c,renderPreheader:function(){return Z}}),!Y&&(0,_.jsx)(Ng,{title:E.searchTerm?m.admin.base.listing.search.noSearchResultTitle:m.admin.base.listing.noDataTitle,text:E.searchTerm&&m.admin.base.listing.search.noSearchResultText,children:E.searchTerm&&(0,_.jsx)(i.Button,{label:m.admin.base.listing.search.clearButtonLabel,color:i.ButtonColor.Primary,size:i.ButtonSize.L,onClick:function(){C(""),I((function(e){return pv(pv({},e),{},{searchTerm:""})}))}})}),B.totalCount>E.pageSize&&(0,_.jsx)("div",{className:cv.pagination,children:(0,_.jsx)("div",{className:cv.paginationWrapper,children:(0,_.jsx)(i.Pagination,{selectedPage:E.currentPage,totalPages:z,onPageChange:function(e){var t;I((function(t){return pv(pv({},t),{},{currentPage:e})})),null===(t=y.current)||void 0===t||t.scrollIntoView()}})})}),S&&(0,_.jsx)(mf,pv({},S))]})})})},gv=s(2338),hv={};hv.styleTagTransform=wn(),hv.setAttributes=bn(),hv.insert=An().bind(null,"head"),hv.domAPI=gn(),hv.insertStyleElement=xn();fn()(gv.Z,hv);const Av=gv.Z&&gv.Z.locals?gv.Z.locals:void 0;function vv(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 bv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vv(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cv=function(e){var t=e.link,n=e.label,a=e.level,s=(0,r.useRef)(null),l=g((0,r.useState)(""),2),c=l[0],u=l[1],d=g((0,r.useState)(!1),2),p=d[0],f=d[1],m=Fu(),h=m.isFocusVisible,A=m.focusProps;(0,r.useEffect)((function(){u(p&&n?n:"")}),[n,p]),Jn({ref:s,onResize:function(){s.current&&f(s.current.offsetHeight<s.current.scrollHeight)}});var v=Kt()(Av.navLink,0===a&&Av.main,1===a&&Av.submenu1,2===a&&Av.submenu2,h&&Av.focused);return(0,_.jsx)(i.Tooltip,{tooltipText:c,placement:i.TooltipPlacement.TopStart,children:(0,_.jsx)(o.NavLink,bv(bv({to:t,className:function(e){var t=e.isActive;return"".concat(v," ").concat(t?Av.active:void 0)},end:!0},A),{},{children:(0,_.jsx)("span",{ref:s,className:Av.label,children:(0,_.jsx)("span",{className:Av.labelContent,children:n})})}))})},xv=s(7100),yv={};yv.styleTagTransform=wn(),yv.setAttributes=bn(),yv.insert=An().bind(null,"head"),yv.domAPI=gn(),yv.insertStyleElement=xn();fn()(xv.Z,yv);const wv=xv.Z&&xv.Z.locals?xv.Z.locals:void 0;var _v=function(e){var t=e.level,n=e.children;return 0===t?(0,_.jsx)(i.Paper,{className:wv.paper,children:(0,_.jsx)("div",{className:wv.main,children:n})}):(0,_.jsx)("div",{className:1===t?wv.submenu1:wv.submenu2,children:n})};_v.displayName="SecondaryMenuWrapper";var Ov=s(2239),Sv={};Sv.styleTagTransform=wn(),Sv.setAttributes=bn(),Sv.insert=An().bind(null,"head"),Sv.domAPI=gn(),Sv.insertStyleElement=xn();fn()(Ov.Z,Sv);const jv=Ov.Z&&Ov.Z.locals?Ov.Z.locals:void 0;var Tv=function(e){var t=e.label,n=e.level,r=Kt()(jv.headline,0===n&&jv.main,1===n&&jv.submenu1,2===n&&jv.submenu2);return(0,_.jsx)("div",{className:r,children:(0,_.jsx)(i.OptionalTooltip,{text:t||"",placement:i.TooltipPlacement.TopStart,customRenderText:function(e){return(0,_.jsx)("span",{ref:e,className:jv.label,children:t})}})})};Tv.displayName="SecondaryMenuHeadline";var Dv=s(729),Bv={};Bv.styleTagTransform=wn(),Bv.setAttributes=bn(),Bv.insert=An().bind(null,"head"),Bv.domAPI=gn(),Bv.insertStyleElement=xn();fn()(Dv.Z,Bv);const kv=Dv.Z&&Dv.Z.locals?Dv.Z.locals:void 0;var Pv=function e(t){var n=t.level,i=g((0,r.useState)(),2),a=i[0],s=i[1],l=PA().navigation,c=(0,o.useParams)(),u=G(q());(0,r.useLayoutEffect)((function(){s(l[n])}),[l,n]);var d=function(e){return Y(Z(e),u).substring(1)},p=function(t){var r,o=t.parentPath,i=n+1,a=null===(r=l[i])||void 0===r?void 0:r.items[0].path;return a&&d(a).startsWith(o)?(0,_.jsx)(e,{level:i}):null};return a?(0,_.jsx)(_v,{level:n,children:(0,_.jsxs)("ul",{className:kv.secondaryMenu,children:[(0,_.jsx)("li",{children:(0,_.jsx)(Tv,{label:a.headline,level:n})}),a.items.map((function(e){var t=d((0,o.generatePath)(e.path,c));return(0,_.jsxs)("li",{"data-testid":"vertical-menu-item",children:[(0,_.jsx)(Cv,{link:t,label:e.label,level:n}),(0,_.jsx)(p,{parentPath:t})]},t)}))]})}):null},Ev=s(58),Iv={};Iv.styleTagTransform=wn(),Iv.setAttributes=bn(),Iv.insert=An().bind(null,"head"),Iv.domAPI=gn(),Iv.insertStyleElement=xn();fn()(Ev.Z,Iv);const Mv=Ev.Z&&Ev.Z.locals?Ev.Z.locals:void 0;var Lv=function(){var e="vertical-menu-wrapper",t=g((0,r.useState)(!1),2),n=t[0],o=t[1],i=g((0,r.useState)(document.getElementById(e)),1)[0],a=PA().navigation;(0,r.useEffect)((function(){o(a.length>1||a.some((function(e){return e.items.length>1})))}),[a]);var s=Kt()(Mv.templateWrapper,n&&Mv.templateWrapperWithMenu);return i?(0,_.jsx)(Jg,{}):(0,_.jsxs)("div",{className:s,children:[(0,_.jsx)("div",{id:e,className:Mv.menu,"data-testid":"side-navigation-vertical-menu",children:(0,_.jsx)(Pv,{level:0})}),(0,_.jsx)("div",{className:Mv.contentWrapperFlexible,children:(0,_.jsx)("div",{className:Mv.contentWrapper,children:(0,_.jsx)(Jg,{})})})]})},Nv=function(){var e=(0,r.useContext)(im).navigation,t=PA(),n=t.push,o=t.pop,i=q();return(0,r.useEffect)((function(){return e.items.length&&n(e,i),o}),[e,i,n,o]),(0,_.jsx)(ef,{children:(0,_.jsx)(Lv,{})})},Rv=s(4792),Fv={};Fv.styleTagTransform=wn(),Fv.setAttributes=bn(),Fv.insert=An().bind(null,"head"),Fv.domAPI=gn(),Fv.insertStyleElement=xn();fn()(Rv.Z,Fv);const zv=Rv.Z&&Rv.Z.locals?Rv.Z.locals:void 0;function Wv(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 Hv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wv(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vv=function(e){return e.reduce((function(e,t){return Object.assign(e,t),e}),{})},Yv="DataType",Zv="DatabaseColumn",Uv="Visible",Gv="Size",qv="Precision",Qv=function(e){var t=e.name,n=e.subForms,o=e.onChange,a=e.onCancel,s=e.addingField,l=j().executeCommand,c=w().localization,d=g((0,r.useState)([]),2),f=d[0],m=d[1],h=g((0,r.useState)(!1),2),A=h[0],b=h[1];(0,r.useEffect)((function(){O(n)}),[n]);var C=function(){var e=p(v().mark((function e(r,i){var a,s,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o({formName:r,fieldName:i.changedField.name,value:i.values[i.changedField.name]}),i.changedField.hasDependencies){e.next=3;break}return e.abrupt("return");case 3:return a=Hv({},i.values),i.changedField.name!==Yv&&i.changedField.name!==Zv||(delete a.DefaultValue,delete a[Gv],delete a[qv],m([])),i.changedField.name===Zv&&(delete a.Name,delete a[Yv],delete a.Required,delete a[Gv],delete a[qv],m([])),i.changedField.name!==Uv||a[Uv]||m(n.filter((function(e){return"DatabaseConfigurationModel"!==e.id}))),s=i.changedField.name===Uv&&a[Uv]&&f.length,c={name:t,subForms:Vv((s?[].concat(L(n),L(f)):n).map((function(e){return u({},e.id,e.id===r?Hv({},a):Vv(e.components.map((function(e){return u({},e.name,e.value)}))))})))},e.next=11,l(nb.GetFormFieldMetadata,c);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),x=function(){var e=p(v().mark((function e(){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Vv(n.map((function(e){return u({},e.id,Vv(e.components.map((function(e){return u({},e.name,e.value)}))))}))),!s){e.next=6;break}return e.next=4,l(nb.CreateField,{subForms:r});case 4:e.next=8;break;case 6:return e.next=8,l(nb.SaveField,{name:t,subForms:r});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(e){return"ValidationSettingsModel"===e.id?zv.validationSectionFormContainer:zv.formContainer},O=function(e){var t=e.flatMap((function(e){return e.components})),n=t.flatMap((function(e){return e.disabled})),r=!n.some((function(e){return!1===e}));b(r)};return(0,_.jsxs)(i.Box,{children:[n.map((function(e,t){return(0,_.jsxs)(i.Box,{children:[(0,_.jsx)(i.Box,{className:t>0?zv.headline:zv.firstHeadline,children:e.title}),(0,_.jsx)(i.Box,{className:y(e),children:(0,_.jsx)(Jd,{name:e.id,items:e.components,timeStamp:e.timeStamp,onChange:function(t){return C(e.id,t)}})})]},e.id)})),(0,_.jsxs)(i.Box,{className:zv.footer,children:[(0,_.jsx)(i.Button,{type:i.ButtonType.Button,color:i.ButtonColor.Secondary,size:i.ButtonSize.M,label:c.admin.base.fieldEditor.cancel,disabled:A,onClick:a}),(0,_.jsx)(i.Button,{color:i.ButtonColor.Primary,type:i.ButtonType.Submit,label:c.admin.base.fieldEditor.save,onClick:x,disabled:A,"data-testid":"submit-form-button"})]})]})},Xv=s(3290),Kv={};Kv.styleTagTransform=wn(),Kv.setAttributes=bn(),Kv.insert=An().bind(null,"head"),Kv.domAPI=gn(),Kv.insertStyleElement=xn();fn()(Xv.Z,Kv);const Jv=Xv.Z&&Xv.Z.locals?Xv.Z.locals:void 0;var $v=function(e){var t=e.headline,n=e.fieldData,r=w().localization,o=null!=n&&n.visible?"xp-eye":"xp-eye-slash",a=null!=n&&n.visible?r.admin.base.fieldEditor.fieldVisible:r.admin.base.fieldEditor.fieldInvisible;return(0,_.jsxs)("div",{className:Jv.main,children:[(0,_.jsx)("span",{"data-testid":"field-name",children:t}),n&&(0,_.jsxs)("div",{className:Jv.right,children:[(0,_.jsx)("span",{className:Jv.eyeIcon,children:(0,_.jsx)(i.Tooltip,{tooltipText:a,children:(0,_.jsx)(i.Icon,{name:o})})}),n.dataType&&(0,_.jsx)(i.Tag,{label:n.dataType,background:{color:n.color?i.Colors[n.color]:i.Colors.BackgroundTagDefault}}),(0,_.jsx)("div",{className:Jv.requiredSpacer,children:n.required&&(0,_.jsx)(i.SimpleStatusDefault,{content:{label:r.admin.base.fieldEditor.fieldRequired,iconName:"xp-small-dot-centered"},iconColor:i.Colors.WarningIcon})})]})]})};function eb(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 tb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eb(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nb={CreateField:"CreateField",GetFields:"GetFields",GetFormFieldMetadata:"GetFormFieldMetadata",GetEmptyFormFieldMetadata:"GetEmptyFormFieldMetadata",GetEmptyFormCategoryMetadata:"GetEmptyFormCategoryMetadata",MoveField:"MoveField",SaveField:"SaveField",DeleteField:"DeleteField"},rb=function(e){var t=e.caption,n=e.supportsCategory,o=Wd(),a=o.getDataChanged,s=o.setDataChanged,l=o.getNewId,c=(0,r.useRef)(l()),u=g((0,r.useState)(null),2),d=u[0],f=u[1],m=g((0,r.useState)([]),2),h=m[0],A=m[1],b=g((0,r.useState)([]),2),C=b[0],x=b[1],y=w().localization,O=g((0,r.useState)({showDialog:!1,texts:{headline:y.admin.base.promptDialog.title,confirmLabel:y.admin.base.promptDialog.confirm,message:y.admin.base.promptDialog.message},onCancellation:function(){T(tb(tb({},S),{},{showDialog:!1}))},onConfirmation:function(){}}),2),S=O[0],T=O[1],D=g((0,r.useState)(!1),2),B=D[0],k=D[1],P=g((0,r.useState)(!1),2),E=P[0],I=P[1],M=(0,r.useRef)(null),N=y.admin.base.fieldEditor.newField,R=y.admin.base.fieldEditor.newCategory;(0,r.useEffect)((function(){var e=c.current;return function(){s(e,!1)}}),[s]);var F=j().executeCommand,z=cf(nb.GetFields,{executeOnMount:!0,after:function(e){return e&&A(e.fields)}}).execute;cf(nb.SaveField,{after:function(e){if(e)if(e.isValid&&null!==d){var t=L(h);t[d]=e.fieldData,A(t),k(!1),I(!1),f(null),s(c.current,!1)}else x(e.subForms)}});var W=cf(nb.GetFormFieldMetadata,{after:function(e){e&&x(e)}}).execute,H=cf(nb.GetEmptyFormFieldMetadata,{after:function(e){var t;e&&(k(!0),f(null),s(c.current,!0),x(e),null===(t=M.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}))}}).execute,V=cf(nb.GetEmptyFormCategoryMetadata,{after:function(e){var t;e&&(I(!0),f(null),s(c.current,!0),x(e),null===(t=M.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}))}}).execute;cf(nb.CreateField,{after:function(e){e&&(e.isValid?(z(),s(c.current,!1),k(!1),I(!1)):x(e.subForms))}});var Y=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(c.current)){e.next=5;break}if(B||E){e.next=4;break}return e.next=4,H();case 4:return e.abrupt("return");case 5:T(tb(tb({},S),{},{showDialog:!0,onConfirmation:function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B||E){e.next=3;break}return e.next=3,H();case 3:T(tb(tb({},S),{},{showDialog:!1}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(c.current)){e.next=5;break}if(B||E){e.next=4;break}return e.next=4,V();case 4:return e.abrupt("return");case 5:T(tb(tb({},S),{},{showDialog:!0,onConfirmation:function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B||E){e.next=3;break}return e.next=3,V();case 3:T(tb(tb({},S),{},{showDialog:!1}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){a(c.current)?T(tb(tb({},S),{},{showDialog:!0,onConfirmation:function(){G(),T(tb(tb({},S),{},{showDialog:!1}))}})):G()},G=function(){f(null),k(!1),I(!1),s(c.current,!1)},q=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm(y.admin.base.fieldEditor.deleteConfirmation)){e.next=10;break}return e.next=4,F(nb.DeleteField,{deletedFieldName:t});case 4:return e.next=6,z();case 6:k(!1),I(!1),s(c.current,!1),f(null);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Q=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(c.current)){e.next=3;break}return X(t),e.abrupt("return");case 3:T(tb(tb({},S),{},{showDialog:!0,onConfirmation:function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:X(t),T(tb(tb({},S),{},{showDialog:!1}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),X=function(){var e=p(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d===t,!h||n){e.next=4;break}return e.next=4,W({name:h[t].name,subForms:{}});case 4:G(),f(n?null:t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),K=function(e,t){if(null!==d){f(d<e&&d<t||d>e&&d>t?d:e===d?t<d?d-1:d+1:e>d?d-1:d+1)}},J=function(){var e=p(v().mark((function e(t){var n,r,o,i,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.source.index!==(null===(n=t.destination)||void 0===n?void 0:n.index)){e.next=2;break}return e.abrupt("return");case 2:return o=t.source.index,i=(null===(r=t.destination)||void 0===r?void 0:r.index)||0,a=$(h,o,i),K(i,o),e.next=8,F(nb.MoveField,{sourceIndex:o,destinationIndex:i});case 8:e.sent||($(a,i,o),K(o,i));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),$=function(e,t,n){var r=L(e),o=g(r.splice(t,1),1)[0];return r.splice(n,0,o),A(r),r},ee=function(e,t){return null!==(null==t?void 0:t.dataType)?e:e+" ("+y.admin.base.fieldEditor.categoryIndicator+")"},te=function(e,t){return[{content:(0,_.jsx)($v,{headline:ee(e,t),fieldData:t}),align:i.BarItemHeaderColumnAlign.Left}]},ne=function(e){s(c.current,!0),x(C.map((function(t){return t.id===e.formName?tb(tb({},t),{},{components:t.components.map((function(t){return t.name===e.fieldName?tb(tb({},t),{},{value:e.value}):t}))}):t})))};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Fm,{children:(0,_.jsx)(i.Row,{children:(0,_.jsxs)(i.Column,{cols:i.Cols.Col12,colsLg:i.Cols.Col8,colsMd:i.Cols.Col10,colsSm:i.Cols.Col12,children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:t}),(0,_.jsx)(i.StickyHeader,{children:(0,_.jsxs)(i.Row,{children:[(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,_.jsx)(i.Button,{label:y.admin.base.fieldEditor.newFieldButtonLabel,onClick:Y,color:i.ButtonColor.Primary,disabled:B||E})}),n&&(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.XL,spacingLeft:i.Spacing.L,children:(0,_.jsx)(i.Button,{label:y.admin.base.fieldEditor.newCategoryButtonLabel,onClick:Z,color:i.ButtonColor.Secondary,disabled:B||E})})]})}),(0,_.jsxs)(i.Box,{spacingBottom:i.Spacing.L,children:[(!!h.length||B||E)&&(0,_.jsxs)(i.BarItemGroup,{onDragEnd:J,droppableId:"droppableId",children:[h.map((function(e,t){return(0,_.jsx)(i.BarItemDraggable,{onHeaderClick:function(){return Q(t)},expanded:d===t,draggableId:e.name,index:t,leadingButtons:[{icon:"xp-bin",label:y.admin.base.fieldEditor.deleteField,tooltip:e.deletable?"":y.admin.base.fieldEditor.fundamentalField,disabled:!e.deletable,destructive:!0,onClick:function(){return q(e.name)}}],headerColumns:te(e.name,e),ref:M,children:(0,_.jsx)(Qv,{name:e.name,subForms:C,onChange:ne,onCancel:U,addingField:B||E})},e.name)})),(B||E)&&(0,_.jsx)(i.BarItem,{onHeaderClick:function(){return U()},expanded:!0,leadingButtons:[],headerColumns:te(E?R:N),ref:M,children:(0,_.jsx)(Qv,{name:E?R:N,subForms:C,onChange:ne,onCancel:U,addingField:!0})})]}),!h.length&&!B&&!E&&(0,_.jsx)(Ng,{title:y.admin.base.fieldEditor.fieldsCollectionEmpty})]})]})})}),(0,_.jsx)(vf,tb({},S))]})};function ob(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 ib(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ob(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ob(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ab=function(e){var t=e.children,n=g((0,r.useState)([]),2),o=n[0],i=n[1],a=g((0,r.useState)(null),2),s=a[0],l=a[1],c=(0,r.useCallback)((function(e,t,n){i((function(r){return[].concat(L(r),[{path:e,isSignificant:t,text:n}])}))}),[]),u=(0,r.useCallback)((function(){i((function(e){return e[e.length-1].isSignificant||l(null),e.slice(0,-1)}))}),[]),d=(0,r.useCallback)((function(e,t){i((function(n){var r=L(n);return r[e]=ib(ib({},r[e]),{},{text:t}),r}))}),[]);return(0,_.jsx)(lm.Provider,{value:{breadcrumbs:o,push:c,pop:u,refreshItem:d,statusNode:s,setStatusNode:l},children:t})},sb=s(4159),lb={};lb.styleTagTransform=wn(),lb.setAttributes=bn(),lb.insert=An().bind(null,"head"),lb.domAPI=gn(),lb.insertStyleElement=xn();fn()(sb.Z,lb);const cb=sb.Z&&sb.Z.locals?sb.Z.locals:void 0;var ub=function(){var e=(0,r.useContext)(im),t=e.routes.length>1,n=$p().setIsCustomRightSidebarDisplayed;return(0,r.useEffect)((function(){return n(!0),function(){n(!1)}})),(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Fm,{sidebarContent:(0,_.jsxs)(_.Fragment,{children:[t&&(0,_.jsx)("div",{"data-testid":"navigation-view-menu",className:cb.viewMenuWrapper,children:(0,_.jsx)(i.ViewMenu,{children:e.navigation.items.map((function(e){var t;return(0,_.jsx)(Wg,{label:e.label,disabled:e.disabled,iconName:null!==(t=e.icon)&&void 0!==t?t:"xp-placeholder",tooltip:e.inactiveMessage,path:e.path,dataTestId:"view-menu-item"},e.path)}))})}),(0,_.jsx)("div",{id:"sideMenuPlaceholder"})]}),children:(0,_.jsx)(Jg,{})})})},db=s(4797),pb={};pb.styleTagTransform=wn(),pb.setAttributes=bn(),pb.insert=An().bind(null,"head"),pb.domAPI=gn(),pb.insertStyleElement=xn();fn()(db.Z,pb);const fb=db.Z&&db.Z.locals?db.Z.locals:void 0;function mb(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gb(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function gb(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}function hb(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 Ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hb(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vb=function(e){var t,n=e.root,a=q(),s=(0,o.useMatch)("".concat(a,"/:nodeId")),l=g((0,r.useState)([]),2),c=l[0],u=l[1],d=g((0,r.useState)(!1),2),p=d[0],f=d[1],m=(0,r.useRef)(null),h=function(e,t){u(e?[].concat(L(c),[t]):c.filter((function(e){return e!==t})))};(0,r.useEffect)((function(){for(var e,t=Cb(null!==(e=null==s?void 0:s.params.nodeId)&&void 0!==e?e:"",n,[]),r=L(c),o=0,i=t;o<i.length;o++){var a=i[o];-1===c.indexOf(a)&&r.push(a)}u(r)}),[null==s?void 0:s.params.nodeId,n]);return Jn({ref:m,onResize:function(){m.current&&f(m.current.offsetHeight<m.current.scrollHeight)}}),(0,_.jsxs)(i.Row,{spacing:i.Spacing.XL,wrap:i.RowWrap.NoWrap,className:fb.templateWrapper,children:[(0,_.jsx)(i.Column,{width:38,children:(0,_.jsx)(i.Paper,{className:fb.treeWrapper,children:(0,_.jsx)(i.Box,{spacing:i.Spacing.L,className:fb.tree,children:(0,_.jsx)(i.TreeView,{selectedIdentifier:null!==(t=null==s?void 0:s.params.nodeId)&&void 0!==t?t:"",dataTestId:"settings-tree",children:n.children.map((function(e){return(0,r.createElement)(bb,Ab(Ab({},e),{},{level:1,key:e.id,onNodeToggle:h,expandedIds:c}))}))})})})}),(0,_.jsx)(i.Column,{children:(0,_.jsxs)("div",{className:Kt()(fb.scrollable,p&&fb.overflowing),ref:m,children:[void 0===(null==s?void 0:s.params.nodeId)&&(0,_.jsx)(o.Navigate,{to:n.children[0].id.toString(),replace:!0}),(0,_.jsx)(Jg,{})]})})]})},bb=function e(t){var n=t.name,a=t.id,s=t.icon,l=t.children,c=t.level,u=t.onNodeToggle,d=t.expandedIds,p=(0,o.useNavigate)();return(0,_.jsx)(i.TreeNode,{isDraggable:!1,level:c,nodeIdentifier:a.toString(),isToggleable:0!==l.length,isSelectable:!0,renderNode:function(e){return(0,_.jsxs)(_.Fragment,{children:[s&&(0,_.jsx)(i.TreeNodeLeadingIcon,{isSelected:e,children:(0,_.jsx)(i.Icon,{name:s})}),(0,_.jsx)(i.TreeNodeTitle,{isSelected:e,children:n})]})},isExpanded:d.includes(a),onNodeToggle:function(e){u(e,a)},onNodeClick:p,children:l.map((function(t){return(0,r.createElement)(e,Ab(Ab({},t),{},{level:c+1,key:t.id,onNodeToggle:u,expandedIds:d}))}))})};function Cb(e,t,n){if(""===e)return[];if(t.id===e)return[e];var r,o=mb(t.children);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=Cb(e,i,n);if(a.length>0)return a.push(i.id),a}}catch(e){o.e(e)}finally{o.f()}return[]}var xb=function(){throw new Error("SettingContext is not used in the tree above")},yb=r.default.createContext({invokeOnSubmitHandler:xb,registerOnSubmitHandler:xb,registerClearSearchHandler:xb,searchFilter:"",setSearchFilter:xb,settingsCategoryNames:{}});function wb(){return(0,r.useContext)(yb)}yb.displayName="SettingsContext";var _b=function(e){var t=e.children,n=e.categories,o=function(){throw new Error("Handler was not initialized")},i=function(){throw new Error("Handler was not initialized")},a=g((0,r.useState)(""),2),s=a[0],l=a[1],c={invokeOnSubmitHandler:function(){return o()},registerOnSubmitHandler:function(e){o=e},searchFilter:s,setSearchFilter:function(e){l(e),""===e&&i()},registerClearSearchHandler:function(e){i=e},settingsCategoryNames:n};return(0,_.jsx)(yb.Provider,{value:c,children:t})};_b.displayName="SettingsContext";var Ob=s(6661),Sb={};Sb.styleTagTransform=wn(),Sb.setAttributes=bn(),Sb.insert=An().bind(null,"head"),Sb.domAPI=gn(),Sb.insertStyleElement=xn();fn()(Ob.Z,Sb);const jb=Ob.Z&&Ob.Z.locals?Ob.Z.locals:void 0;var Tb=function(){var e=(0,o.useNavigate)(),t=q(),n=(0,o.useMatch)("".concat(t,"/:param")),a=g((0,r.useState)(""),2),s=a[0],l=a[1],c=wb(),u=w().localization;c.registerClearSearchHandler((function(){return l("")}));var d=function(){var t=p(v().mark((function t(n){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"Enter"===n.key&&(c.setSearchFilter(s),e("search"));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,r.useEffect)((function(){"search"!==(null==n?void 0:n.params.param)&&l("")}),[null==n?void 0:n.params.param]),(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,_.jsxs)(i.Row,{children:[(0,_.jsx)("div",{className:jb.save,children:(0,_.jsx)(i.Button,{label:u.admin.base.settings.save,color:i.ButtonColor.Primary,onClick:c.invokeOnSubmitHandler,dataTestId:"settings-save-button"})}),(0,_.jsx)("div",{className:jb.filter,children:(0,_.jsx)(i.Input,{onKeyPress:d,value:s,onChange:function(e){return l(e.target.value)},placeholder:u.admin.base.settings.searchPlaceholder,dataTestId:"settings-search-input"})})]})})},Db=s(6399),Bb={};Bb.styleTagTransform=wn(),Bb.setAttributes=bn(),Bb.insert=An().bind(null,"head"),Bb.domAPI=gn(),Bb.insertStyleElement=xn();fn()(Db.Z,Bb);const kb=Db.Z&&Db.Z.locals?Db.Z.locals:void 0;function Pb(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 Eb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pb(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ib=function(e){var t=w().localization,n=(0,r.useMemo)((function(){return t=e.root,n={},r=function e(t){n[t.id]=t.name,t.children.forEach((function(t){return e(t)}))},r(t),n;var t,n,r}),[e.root]);return(0,_.jsx)(Fm,{sidebarContent:(0,_.jsx)(_.Fragment,{}),children:(0,_.jsx)(_b,{categories:n,children:(0,_.jsxs)("div",{className:kb.templateWrapper,children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.XL,children:t.admin.base.settings.settings}),(0,_.jsx)(i.Row,{spacingX:i.Spacing.L,spacingY:i.Spacing.XL,children:(0,_.jsx)(i.Column,{children:(0,_.jsx)(Tb,{})})}),(0,_.jsx)(i.Box,{className:kb.treeWrapper,children:(0,_.jsx)(vb,Eb({},e))})]})})})};var Mb=s(8242),Lb={};Lb.styleTagTransform=wn(),Lb.setAttributes=bn(),Lb.insert=An().bind(null,"head"),Lb.domAPI=gn(),Lb.insertStyleElement=xn();fn()(Mb.Z,Lb);const Nb=Mb.Z&&Mb.Z.locals?Mb.Z.locals:void 0;function Rb(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}var Fb=function(e){var t=e.categoryId,n=e.categoryIdPath,o=e.displayName,a=g((0,r.useState)([]),2),s=a[0],l=a[1],c=wb();return(0,r.useEffect)((function(){var e=n.split("/").filter((function(e){return e})),r=e.map((function(e){return parseInt(e)})),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rb(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},c.settingsCategoryNames);i[t]=o;var a=r.map((function(e){return i[e]}));l(a)}),[]),(0,_.jsx)("div",{className:Nb.container,children:s.map((function(e,t){return(0,_.jsxs)("div",{className:Nb.breadcrumbItem,children:[(0,_.jsx)("span",{className:Nb.cell,children:e}),s.length-1!==t&&(0,_.jsx)("span",{className:Nb.icon,children:(0,_.jsx)(i.Icon,{name:"xp-chevron-right"})})]},t)}))})},zb=function(e){var t=e.filter,n=e.clearSearchHandler,r=w().localization.admin.base.settings;return(0,_.jsx)(_.Fragment,{children:t&&(0,_.jsx)(Ng,{title:r.noSettingsFoundTitle,text:r.noSettingsFoundText,children:(0,_.jsx)(i.Button,{label:r.clearSearchPhrase,color:i.ButtonColor.Primary,size:i.ButtonSize.L,onClick:n})})||(0,_.jsx)(Ng,{title:r.noSettingsTitle,text:r.noSettingsText})})},Wb=s(6579),Hb={};Hb.styleTagTransform=wn(),Hb.setAttributes=bn(),Hb.insert=An().bind(null,"head"),Hb.domAPI=gn(),Hb.insertStyleElement=xn();fn()(Wb.Z,Hb);const Vb=Wb.Z&&Wb.Z.locals?Wb.Z.locals:void 0;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 Zb(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){u(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}var Ub=function(e){var t=(0,o.useMatch)("settings/:categoryId"),n=g((0,r.useState)(e.categories),2),a=n[0],s=n[1],l=g((0,r.useState)(0),2),c=l[0],u=l[1],d=w().localization,f=wb(),m=(0,r.useRef)(null),h=a&&a.length>0,A=d.admin.base.settings,b=function(){var e=p(v().mark((function e(t,n){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.changedField.name,s(a.map((function(e){return e.categoryId===t?Zb(Zb({},e),{},{components:e.components.map((function(e){return e.name===r?Zb(Zb({},e),{},{value:n.values[n.changedField.name]}):e}))}):e})));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();cf("Filter",{executeOnMount:""!==f.searchFilter,data:f.searchFilter,before:function(){return"search"===(null==t?void 0:t.params.categoryId)},after:function(e){return s(null!=e?e:[])}},[f.searchFilter]);var C=cf("Save",{after:function(e){var t,n;e&&(s(null!==(t=e.categories)&&void 0!==t?t:[]),null===(n=m.current)||void 0===n||n.resetAllDataChanged())}}).execute,x=function(){var e=p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},a.forEach((function(e){e.components.forEach((function(e){t[e.name]=e.value}))})),e.next=4,C({keyValues:t,filter:f.searchFilter});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){if(a){var e=0;a.forEach((function(t){return e+=t.components.length})),u(e)}}),[a]);var y=function(){f.setSearchFilter("")},O=function(e){return(0,_.jsx)(_.Fragment,{children:f.searchFilter&&(0,_.jsxs)(i.Box,{spacingBottom:i.Spacing.XL,children:[(0,_.jsx)(o.NavLink,{to:"../"+e.categoryParentId,onClick:y,className:Vb.searchHeadline,replace:!0,children:(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,labelColor:i.Colors.Product,children:e.displayName})}),(0,_.jsx)(Fb,Zb({},e))]})||(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,spacingBottom:i.Spacing.XL,children:e.displayName})})};return f.registerOnSubmitHandler(x),a?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,children:f.searchFilter&&"".concat(c," ")+(1!==c?A.settingsFound:A.settingFound)||e.title})}),(0,_.jsx)(i.Stack,{spacing:i.Spacing.XL,children:(0,_.jsx)(Hd,{ref:m,children:h&&(null==a?void 0:a.map((function(e){return(0,_.jsx)(i.Paper,{borderRadius:i.BorderRadius.RadiusL,elevation:i.PaperElevation.XS,children:(0,_.jsxs)(i.Box,{spacing:i.Spacing.XL,children:[O(e),(0,_.jsx)(Jd,{name:"Form_".concat(e.categoryId),items:e.components,onChange:function(t){return b(e.categoryId,t)},fieldCssClass:Vb.formComponent})]})},e.categoryId)})))||(0,_.jsx)(zb,{filter:f.searchFilter,clearSearchHandler:y})})})]}):(0,_.jsx)(Eg,{title:d.admin.base.pageLoader.loading})};function Gb(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}var qb=function(e){var t=wb(),n=w().localization.admin.base.settings;return""===t.searchFilter?(0,_.jsx)(Ng,{title:n.noSearchPhrase}):(0,_.jsx)(Ub,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gb(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))},Qb=s(9597),Xb={};Xb.styleTagTransform=wn(),Xb.setAttributes=bn(),Xb.insert=An().bind(null,"head"),Xb.domAPI=gn(),Xb.insertStyleElement=xn();fn()(Qb.Z,Xb);const Kb=Qb.Z&&Qb.Z.locals?Qb.Z.locals:void 0;var Jb="Change",$b="Submit",eC="GetStatusMessage",tC="LoadExtraButtons",nC=function(e){var t=e.items,n=e.errorMessage,o=e.disabled,a=e.headline,s=e.submitLabel,l=g((0,r.useState)(!1),2),c=l[0],u=l[1],d=g((0,r.useState)(!1),2),f=d[0],m=d[1],h=g((0,r.useState)(t),2),A=h[0],b=h[1],C=g((0,r.useState)(),2),x=C[0],y=C[1],O=g((0,r.useState)([]),2),S=O[0],T=O[1],D=g((0,r.useState)(""),2),B=D[0],k=D[1],P=document.getElementById("applicationHeader"),E=r.default.useRef(null),I=w().localization,M=um(),L=M.breadcrumbs,N=M.refreshItem,R=PA(),F=R.navigation,z=R.refreshItem,W=(0,r.useContext)(im),H=document.getElementById("sideMenuPlaceholder"),V=j().executeCommand,Y=cf(tC,{after:function(e){e&&T(e.extraButtons)}}).execute,Z=cf(Jb,{after:function(e){e&&b(e.items)}}).execute,U=cf(eC,{after:function(e){e&&y(e)}}).execute;(0,r.useEffect)((function(){U(),Y()}),[]);var G=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!1),e.prev=1,m(!0),e.next=5,Q({data:t.values});case 5:return e.prev=5,m(!1),e.next=9,Y();case 9:return e.finish(5);case 10:case"end":return e.stop()}}),e,null,[[1,,5,10]])})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(!0),!t.changedField.hasDependencies){e.next=4;break}return e.next=4,Z({data:t.values});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){b(t)}),[t]);var Q=cf($b,{after:function(e){if(e){var t;if(e.items&&b(e.items),e.status!==co.ValidationSuccess)u(!0);else null==E||null===(t=E.current)||void 0===t||t.resetDataChanged(),void 0!==e.objectDisplayName&&null!==e.objectDisplayName&&(n=e.objectDisplayName,N(Yp(L,(function(e){return e.isSignificant})),n),z(Yp(F,(function(e){return e.isSignificant})),n)),B&&V(B);k("")}var n}}).execute,X=xf(),K=X.setOnConfirmation,J=X.setPromptEnabled;if(K((function(){return u(!1)})),(0,r.useEffect)((function(){J(c)}),[c,J]),n)return(0,_.jsx)("div",{children:n});if(!A)return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Ng,{title:I.admin.base.edit.noElementTitle,text:I.admin.base.edit.noElementText})});var $=W.routes.length>0;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:Kb.templateWrapper,children:(0,_.jsxs)(i.Stack,{spacing:i.Spacing.L,className:Kb.contentWrapper,children:[x&&(0,_.jsx)(i.NotificationBarInfo,{dataTestId:"notification-bar",childrenAsHtml:!0,children:x}),(0,_.jsx)(i.Paper,{className:Kb.contentWrapper,children:(0,_.jsxs)(i.Row,{spacing:i.Spacing.XL,className:Kb.content,children:[(0,_.jsx)(i.Column,{className:Kb.sideColumn,colsMd:i.Cols.Col1,colsLg:i.Cols.Col2}),(0,_.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,colsLg:i.Cols.Col8,children:0!==A.length&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,spacingBottom:i.Spacing.L,children:a}),(0,_.jsx)(Jd,{ref:E,dataTestId:"edit-form",items:A,onSubmit:G,onChange:q,disabled:o})]})})]})})]})}),(0,_.jsx)(Rg,{container:P,children:(0,_.jsxs)(i.Box,{className:Kb.portal,children:[(0,_.jsx)(i.Button,{type:i.ButtonType.Submit,label:s,color:S.length?i.ButtonColor.Secondary:i.ButtonColor.Primary,onClick:function(){var e;return null===(e=E.current)||void 0===e?void 0:e.submit()},dataTestId:"submit-form-button",inProgress:f,disabled:o}),S.map((function(e,t){return(0,_.jsx)(i.Button,{type:i.ButtonType.Button,label:e.label,color:e.primary?i.ButtonColor.Primary:i.ButtonColor.Secondary,onClick:(n=e.commandName,r=e.submit,p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=5;break}k(n),null===(t=E.current)||void 0===t||t.submit(),e.next=7;break;case 5:return e.next=7,V(n);case 7:case"end":return e.stop()}}),e)})))),dataTestId:"".concat(e.label.toLowerCase().replace(/\s/g,"-"),"-form-button"),inProgress:e.submit&&f,disabled:o},t);var n,r}))]})}),$&&(0,_.jsx)(Rg,{container:H,children:(0,_.jsx)(wm,{})}),(0,_.jsx)(Jg,{})]})},rC=s(8998),oC={};oC.styleTagTransform=wn(),oC.setAttributes=bn(),oC.insert=An().bind(null,"head"),oC.domAPI=gn(),oC.insertStyleElement=xn();fn()(rC.Z,oC);const iC=rC.Z&&rC.Z.locals?rC.Z.locals:void 0;var aC="GetContent",sC=function(){var e=(0,r.useRef)(null),t=g((0,r.useState)(""),2),n=t[0],o=t[1],a=cf(aC,{after:function(e){return o(e)}}).execute;return(0,r.useEffect)((function(){a()}),[a]),(0,_.jsx)(i.Paper,{fullHeight:!0,children:(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(Dg,{}),children:n&&(0,_.jsx)("iframe",{title:"email-preview",className:iC.previewIframe,sandbox:"allow-same-origin",ref:e,srcDoc:n})})})},lC=s(8032),cC={};cC.styleTagTransform=wn(),cC.setAttributes=bn(),cC.insert=An().bind(null,"head"),cC.domAPI=gn(),cC.insertStyleElement=xn();fn()(lC.Z,cC);const uC=lC.Z&&lC.Z.locals?lC.Z.locals:void 0;var dC="LoadFunnelConfiguration",pC=function(e){var t=e.headline,n=e.cultureCode,o=w().localization,a=g((0,r.useState)({caption:"",data:[]}),2),s=a[0],l=a[1],c=cf(dC,{after:function(e){e&&l(e)}}).execute;(0,r.useEffect)((function(){c()}),[c]);var u=s.data,d=s.caption?s.caption.toLowerCase().replace(/\s/g,"-"):"funnel-chart";return(0,_.jsxs)("div",{children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:t}),u&&(0,_.jsxs)("div",{children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:s.caption}),(0,_.jsx)(i.Paper,{elevation:i.PaperElevation.S,children:(0,_.jsx)("div",{className:uC.funnel,children:(0,_.jsx)(i.FunnelChart,{data:s.data,orientation:i.FunnelOrientation.Horizontal,chartId:d,locale:n})})})]}),!u&&(0,_.jsx)(Ng,{title:o.admin.digitalmarketing.statistics.noData,dataTestId:"no-statistics-data"})]})},fC=s(4983),mC={};mC.styleTagTransform=wn(),mC.setAttributes=bn(),mC.insert=An().bind(null,"head"),mC.domAPI=gn(),mC.insertStyleElement=xn();fn()(fC.Z,mC);const gC=fC.Z&&fC.Z.locals?fC.Z.locals:void 0;var hC=["selectedOptions","options","disabled"];function AC(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 vC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AC(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bC=function(e){var t;return null!==(t=null==e?void 0:e.map((function(e){return{value:e.codeName,label:e.name,isDisabled:!1===e.removable,isRemovable:e.removable,isValid:!0}})))&&void 0!==t?t:[]},CC=function(e){var t=e.selectedOptions,n=e.options,o=e.disabled,a=h(e,hC),s=(0,r.useCallback)((function(e){var t=n.map((function(t){return vC(vC({},t),{},{selected:e.some((function(e){return e.value===t.codeName}))})}));a.onChange(t)}),[n,a]);return(0,_.jsx)("div",{className:gC.container,children:(0,_.jsx)(i.FormItemWrapper,{disabled:o,children:(0,_.jsx)(Ju,{isDisabled:o,isMulti:!0,value:bC(t),options:bC(n),placeholder:"",onChange:s,onClear:function(){var e=n.map((function(e){return vC(vC({},e),{},{selected:!e.removable})}));a.onChange(e)},dataTestId:"permission-item-selector"})})})};CC.displayName="PermissionItemSelector";var xC=s(49),yC={};yC.styleTagTransform=wn(),yC.setAttributes=bn(),yC.insert=An().bind(null,"head"),yC.domAPI=gn(),yC.insertStyleElement=xn();fn()(xC.Z,yC);const wC=xC.Z&&xC.Z.locals?xC.Z.locals:void 0;var _C=["index","applicationCategories","selectedApplication","selectedData","disabled"];function OC(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 SC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OC(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jC=r.default.forwardRef((function(e,t){var n=e.index,r=e.applicationCategories,o=e.selectedApplication,a=e.selectedData,s=e.disabled,l=h(e,_C),c=w().localization.admin.base.permissions;return(0,_.jsxs)(i.Paper,SC(SC({ref:t,borderRadius:i.BorderRadius.RadiusL,elevation:i.PaperElevation.XS,className:wC.permissionSet},l),{},{children:[(0,_.jsxs)(i.Row,{className:wC.contentContainer,spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.Wrap,children:[(0,_.jsx)(i.Column,{className:wC.contentItem,children:(0,_.jsxs)(i.Row,{spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.NoWrap,children:[(0,_.jsx)(i.Column,{className:wC.contentItem,children:(0,_.jsx)("div",{className:wC.plainTextParameter,children:c.permissionSetLabel1})}),(0,_.jsx)(i.Column,{className:wC.contentItem,children:(0,_.jsx)(i.Select,{placeholder:c.appSelectPlaceholder,disabled:s,invalid:!1,validationMessage:c.appSelectValidation,markAsRequired:!0,clearable:!1,value:o,onChange:function(e){e&&l.onChange(n,{application:e,permissions:[]})},children:r.map((function(e,t){return(0,_.jsxs)("div",{children:[(0,_.jsx)(i.ActionMenuHeadline,{label:e.name}),e.applications.map((function(e,t){return(0,_.jsx)(i.MenuItem,{primaryLabel:e.name,value:e.identifier,disabled:e.disabled,tooltipText:e.disabled?c.appSelectApplicationDisabled:"",tooltipPlacement:i.TooltipPlacement.Left,leadingElement:{element:void 0!==e.icon?(0,_.jsx)(i.Icon,{name:e.icon}):(0,_.jsx)("div",{}),type:void 0!==e.icon?"icon":"empty"}},t)})),r.length-1!==t&&(0,_.jsx)(i.ActionMenuDivider,{})]},t)}))})})]})}),(0,_.jsx)(i.Column,{className:wC.permissionSelector,children:(0,_.jsxs)(i.Row,{spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.NoWrap,children:[(0,_.jsx)(i.Column,{className:wC.contentItem,children:(0,_.jsx)("div",{className:wC.plainTextParameter,children:c.permissionSetLabel2})}),(0,_.jsx)(i.Column,{className:wC.permissionSelector,children:(0,_.jsx)("div",{children:(0,_.jsx)(CC,{options:a,selectedOptions:a.filter((function(e){return e.selected})),onChange:function(e){l.onChange(n,{application:o,permissions:e})},disabled:s})})})]})})]}),(0,_.jsx)(i.Box,{spacingLeft:i.Spacing.XXXL,spacingTop:i.Spacing.S,children:(0,_.jsx)(i.Button,{color:i.ButtonColor.Quinary,size:i.ButtonSize.S,disabled:s,onClick:function(){return l.onDelete(n,o)},icon:"xp-bin",title:c.delete,destructive:!0,dataTestId:"button-delete"})})]}))}));jC.displayName="PermissionSet";var TC="GetPermissions",DC="SavePermissions",BC="GetPermissionsForApplication",kC=function(e){var t=e.caption,n=e.disabled,o=w().localization.admin.base.permissions,a=Wd(),s=a.getDataChanged,l=a.setDataChanged,c=a.getNewId,u=(0,r.useRef)(c()),d=g((0,r.useState)([]),2),f=d[0],m=d[1],h=g((0,r.useState)([]),2),A=h[0],b=h[1],C=g((0,r.useState)(!1),2),x=C[0],y=C[1],O=g((0,r.useState)(!1),2),S=O[0],j=O[1],T=(0,r.useRef)(null),D=function(){var e;return null===(e=T.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth"})},B=function(e,t){f.forEach((function(n){n.applications.map((function(n){return n.identifier===e?n.disabled=t:n}))})),m(f)};(0,r.useEffect)((function(){x&&D()}),[x]),cf(TC,{executeOnMount:!0,after:function(e){e&&(l(u.current,!1),j(!1),m(function(e,t){return e.forEach((function(e){e.applications.map((function(e){return e.disabled=t.some((function(t){return t.application===e.identifier}))}))})),e}(e.categories,e.selectedApplications)),b(e.selectedApplications))}});var k=cf(DC,{executeOnMount:!1,after:function(){l(u.current,!1),j(!1),y(!1)}}).execute,P=cf(BC,{after:function(e){e&&b(function(e,t){var n=e.findIndex((function(e){return e.application===t.application}));return e[n].permissions=t.permissions,e}(L(A),e))}}),E=P.execute,I=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j(!0),k({permissions:L(A).filter((function(e){return""!==e.application&&e.permissions.length>0}))});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=L(A)).some((function(e){return""===e.application}))){e.next=4;break}return D(),e.abrupt("return");case 4:t.push({application:"",permissions:[]}),b(t),y(!0);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=p(v().mark((function e(t,n){var r,o,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=A[t].application,o=n.application,l(u.current,!0),""===r&&y(!1),r!==o&&(B(r,!1),E(o)),B(o,!0),(i=L(A))[t]=n,b(i);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),R=function(e,t){var n=L(A);""===t&&y(!1),l(u.current,!0),B(n[e].application,!1),n=n.filter((function(t,n){return n!==e})),b(n)};return(0,_.jsx)(Jg,{children:(0,_.jsx)(Fm,{children:(0,_.jsxs)(i.Box,{spacingBottom:i.Spacing.L,children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:t}),(0,_.jsx)(i.StickyHeader,{children:(0,_.jsxs)(i.Row,{children:[(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,_.jsx)(i.Button,{label:o.save,onClick:I,disabled:n||!s(u.current),inProgress:S,color:i.ButtonColor.Primary,title:s(u.current)?"":o.noChangesToSave})}),(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.XL,spacingLeft:i.Spacing.L,children:(0,_.jsx)(i.Button,{label:o.newPermissionSetButtonLabel,onClick:M,disabled:n,color:i.ButtonColor.Secondary,icon:"xp-plus"})})]})}),A.length>0&&(0,_.jsx)(i.Stack,{spacing:i.Spacing.M,children:A.map((function(e,t){return(0,_.jsx)(jC,{ref:T,index:t,applicationCategories:f,selectedApplication:e.application,selectedData:e.permissions,disabled:n,onChange:N,onDelete:R},t)}))}),0===A.length&&(0,_.jsx)(Ng,{title:o.noDataTitle})]})})})}})(),l})())}}}));
|