@kentico/xperience-admin-base 24.0.2 → 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.
|
@@ -0,0 +1,25 @@
|
|
|
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.ContentItemTileSelectable=e.ContentItemTileSelectable,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.NameToggleButtons=e.NameToggleButtons,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.SimpleStatusSize=e.SimpleStatusSize,o.SimpleStatusSuccess=e.SimpleStatusSuccess,o.SkeletonBody=e.SkeletonBody,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.TableHeader=e.TableHeader,o.TableRowComponent=e.TableRowComponent,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];return 2===e.length?r(e[0],e[1])||null:e.slice(1).reduce((function(e,t){return r(e,t)}),e[0])||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)}()},2439:(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},8949:(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},1943:(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},2310:(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},502:(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},1010:(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},8958:(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},6948:(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},4246:(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},8195:(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},1816:(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},6300:(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},3079:(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},6259:(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},1885:(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},4382:(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},7791:(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},2167:(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},5866:(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},6497:(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},8056:(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},9589:(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},8226:(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___honD5{flex-grow:1;width:100%}.row___honD5 .stack___Duk6n{width:100%;padding-bottom:16px}.row___honD5 .stack___Duk6n .no-content-items___SRUe2{font-family:"GT Walsheim",sans-serif;font-weight:500;font-size:11px;line-height:12px;color:var(--color-text-default-on-light);color:var(--color-text-default-on-light)}.row___honD5 .stack___Duk6n .view-config-row___e3rju{display:flex;justify-content:space-between;align-items:center;padding:16px 0;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.pagination___VgpO8{padding-top:16px;display:flex;align-items:center}.pagination-wrapper___flsM5{width:50%}',"",{version:3,sources:["webpack://./src/shared-components/Assets/ContentItemPanelContent/ContentItemPanelContent.module.scss"],names:[],mappings:"AAAA,aAAK,WAAW,CAAC,UAAU,CAAC,4BAAY,UAAU,CAAC,mBAAmB,CAAC,sDAA8B,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,wCAAwC,CAAC,qDAA6B,YAAY,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,cAAc,CAAC,oCAAoC,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,oBAAY,gBAAgB,CAAC,YAAY,CAAC,kBAAkB,CAAC,4BAAoB,SAAS",sourcesContent:['.row{flex-grow:1;width:100%}.row .stack{width:100%;padding-bottom:16px}.row .stack .no-content-items{font-family:"GT Walsheim",sans-serif;font-weight:500;font-size:11px;line-height:12px;color:var(--color-text-default-on-light);color:var(--color-text-default-on-light)}.row .stack .view-config-row{display:flex;justify-content:space-between;align-items:center;padding:16px 0;font-family:"GT Walsheim",sans-serif;font-weight:400;font-size:14px;line-height:16px;color:var(--color-text-default-on-light)}.pagination{padding-top:16px;display:flex;align-items:center}.pagination-wrapper{width:50%}'],sourceRoot:""}]),a.locals={row:"row___honD5",stack:"stack___Duk6n","no-content-items":"no-content-items___SRUe2",noContentItems:"no-content-items___SRUe2","view-config-row":"view-config-row___e3rju",viewConfigRow:"view-config-row___e3rju",pagination:"pagination___VgpO8","pagination-wrapper":"pagination-wrapper___flsM5",paginationWrapper:"pagination-wrapper___flsM5"};const s=a},4054:(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,".centered-cell-content___dagfs{display:flex;align-items:center}","",{version:3,sources:["webpack://./src/shared-components/Assets/ContentItemPanelContent/ContentItemPanelList/ContentItemPanelList.module.scss"],names:[],mappings:"AAAA,+BAAuB,YAAY,CAAC,kBAAkB",sourcesContent:[".centered-cell-content{display:flex;align-items:center}"],sourceRoot:""}]),a.locals={"centered-cell-content":"centered-cell-content___dagfs",centeredCellContent:"centered-cell-content___dagfs"};const s=a},8408:(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,".toggle-buttons___JIpz3{margin-bottom:16px}","",{version:3,sources:["webpack://./src/shared-components/Assets/MultiSourceAssetPanel/MultiSourceAssetPanel.module.scss"],names:[],mappings:"AAAA,wBAAgB,kBAAkB",sourcesContent:[".toggle-buttons{margin-bottom:16px}"],sourceRoot:""}]),a.locals={"toggle-buttons":"toggle-buttons___JIpz3",toggleButtons:"toggle-buttons___JIpz3"};const s=a},3847:(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},6971:(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},8047:(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},3397:(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},2777:(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},1487:(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},6083:(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},6961:(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},4032:(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},2083:(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},9994:(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},3099:(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},4755:(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},9041:(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},172:(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},2949:(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;flex-grow:1;flex-shrink:100000;min-width:0}.status-bar___FbKL4 .left___ohuGv .site-selector___OoP9o{padding-right:16px}.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,WAAW,CAAC,kBAAkB,CAAC,WAAW,CAAC,yDAAiC,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;flex-grow:1;flex-shrink:100000;min-width:0}.status-bar .left .site-selector{padding-right:16px}.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","site-selector":"site-selector___OoP9o",siteSelector:"site-selector___OoP9o",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},301:(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},5280:(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},327:(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},9808:(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},1424:(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},9137:(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},9849:(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},1850:(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},6234:(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},3603:(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},8798:(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},6194:(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},6989:(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},8402:(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;flex-grow:1;flex-shrink:100000;min-width:0}.status-bar___maJdl .left___Fmj67 .site-selector___a6wBd{padding-right:16px}.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,WAAW,CAAC,kBAAkB,CAAC,WAAW,CAAC,yDAAiC,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;flex-grow:1;flex-shrink:100000;min-width:0}.status-bar .left .site-selector{padding-right:16px}.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","site-selector":"site-selector___a6wBd",siteSelector:"site-selector___a6wBd",right:"right___rbzxw"};const s=a},1064:(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},3059:(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},6046:(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},3696:(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},2442:(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},9541:(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},8033:(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},9847:(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},1914:(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},6824:(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},5744:(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},2814:(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},8520:(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},3018:(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},142:(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},5999:(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},9933:(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},3638:(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},449:(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")}},1883:function(e){
|
|
7
|
+
/*! @license DOMPurify 3.0.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.0/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,t){return s(e)||c(e,t)||u(e,t)||f()}function i(e){return a(e)||l(e)||u(e)||p()}function a(e){if(Array.isArray(e))return d(e)}function s(e){if(Array.isArray(e))return e}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}function u(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}function d(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 p(){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 f(){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 m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(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}}}}var g=Object.entries,h=Object.setPrototypeOf,A=Object.isFrozen,v=Object.getPrototypeOf,b=Object.getOwnPropertyDescriptor,C=Object.freeze,x=Object.seal,y=Object.create,w="undefined"!=typeof Reflect&&Reflect,_=w.apply,O=w.construct;_||(_=function(e,t,n){return e.apply(t,n)}),C||(C=function(e){return e}),x||(x=function(e){return e}),O||(O=function(e,t){return r(e,i(t))});var S=N(Array.prototype.forEach),j=N(Array.prototype.pop),T=N(Array.prototype.push),D=N(String.prototype.toLowerCase),B=N(String.prototype.toString),k=N(String.prototype.match),P=N(String.prototype.replace),I=N(String.prototype.indexOf),E=N(String.prototype.trim),M=N(RegExp.prototype.test),L=R(TypeError);function N(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 _(e,t,r)}}function R(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return O(e,n)}}function z(e,t,n){n=n||D,h&&h(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(A(t)||(t[r]=i),o=i)}e[o]=!0}return e}function F(e){var t,n=y(null),r=m(g(e));try{for(r.s();!(t=r.n()).done;){var i=o(t.value,2),a=i[0],s=i[1];n[a]=s}}catch(e){r.e(e)}finally{r.f()}return n}function W(e,t){for(;null!==e;){var n=b(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}e=v(e)}function r(e){return console.warn("fallback value for",e),null}return r}var H=C(["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"]),V=C(["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"]),Y=C(["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=C(["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"]),U=C(["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"]),G=C(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=C(["#text"]),Q=C(["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"]),X=C(["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"]),K=C(["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"]),J=C(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=x(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ee=x(/<%[\w\W]*|[\w\W]*%>/gm),te=x(/\${[\w\W]*}/gm),ne=x(/^data-[\-\w.\u00B7-\uFFFF]/),re=x(/^aria-[\-\w]+$/),oe=x(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ie=x(/^(?:\w+script|data):/i),ae=x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),se=x(/^html$/i),le=function(){return"undefined"==typeof window?null:window},ce=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 ue(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le(),n=function(e){return ue(e)};if(n.version="3.0.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=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=W(A,"cloneNode"),b=W(A,"nextSibling"),x=W(A,"childNodes"),y=W(A,"parentNode");if("function"==typeof s){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var _=ce(h,r),O=_?_.createHTML(""):"",N=o,R=N.implementation,de=N.createNodeIterator,pe=N.createDocumentFragment,fe=N.getElementsByTagName,me=r.importNode,ge={};n.isSupported="function"==typeof g&&"function"==typeof y&&R&&void 0!==R.createHTMLDocument;var he,Ae,ve=$,be=ee,Ce=te,xe=ne,ye=re,we=ie,_e=ae,Oe=oe,Se=null,je=z({},[].concat(i(H),i(V),i(Y),i(U),i(q))),Te=null,De=z({},[].concat(i(Q),i(X),i(K),i(J))),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,Ie=!0,Ee=!0,Me=!1,Le=!0,Ne=!1,Re=!1,ze=!1,Fe=!1,We=!1,He=!1,Ve=!1,Ye=!0,Ze=!1,Ue="user-content-",Ge=!0,qe=!1,Qe={},Xe=null,Ke=z({},["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"]),Je=null,$e=z({},["audio","video","img","source","image","track"]),et=null,tt=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,at=!1,st=null,lt=z({},[nt,rt,ot],B),ct=["application/xhtml+xml","text/html"],ut="text/html",dt=null,pt=o.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},mt=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=F(t),he=he=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,Ae="application/xhtml+xml"===he?B:D,Se="ALLOWED_TAGS"in t?z({},t.ALLOWED_TAGS,Ae):je,Te="ALLOWED_ATTR"in t?z({},t.ALLOWED_ATTR,Ae):De,st="ALLOWED_NAMESPACES"in t?z({},t.ALLOWED_NAMESPACES,B):lt,et="ADD_URI_SAFE_ATTR"in t?z(F(tt),t.ADD_URI_SAFE_ATTR,Ae):tt,Je="ADD_DATA_URI_TAGS"in t?z(F($e),t.ADD_DATA_URI_TAGS,Ae):$e,Xe="FORBID_CONTENTS"in t?z({},t.FORBID_CONTENTS,Ae):Ke,ke="FORBID_TAGS"in t?z({},t.FORBID_TAGS,Ae):{},Pe="FORBID_ATTR"in t?z({},t.FORBID_ATTR,Ae):{},Qe="USE_PROFILES"in t&&t.USE_PROFILES,Ie=!1!==t.ALLOW_ARIA_ATTR,Ee=!1!==t.ALLOW_DATA_ATTR,Me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ne=t.SAFE_FOR_TEMPLATES||!1,Re=t.WHOLE_DOCUMENT||!1,We=t.RETURN_DOM||!1,He=t.RETURN_DOM_FRAGMENT||!1,Ve=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,Ye=!1!==t.SANITIZE_DOM,Ze=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,qe=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,it=t.NAMESPACE||ot,t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Be.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(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),Ne&&(Ee=!1),He&&(We=!0),Qe&&(Se=z({},i(q)),Te=[],!0===Qe.html&&(z(Se,H),z(Te,Q)),!0===Qe.svg&&(z(Se,V),z(Te,X),z(Te,J)),!0===Qe.svgFilters&&(z(Se,Y),z(Te,X),z(Te,J)),!0===Qe.mathMl&&(z(Se,U),z(Te,K),z(Te,J))),t.ADD_TAGS&&(Se===je&&(Se=F(Se)),z(Se,t.ADD_TAGS,Ae)),t.ADD_ATTR&&(Te===De&&(Te=F(Te)),z(Te,t.ADD_ATTR,Ae)),t.ADD_URI_SAFE_ATTR&&z(et,t.ADD_URI_SAFE_ATTR,Ae),t.FORBID_CONTENTS&&(Xe===Ke&&(Xe=F(Xe)),z(Xe,t.FORBID_CONTENTS,Ae)),Ge&&(Se["#text"]=!0),Re&&z(Se,["html","head","body"]),Se.table&&(z(Se,["tbody"]),delete ke.tbody),C&&C(t),dt=t)},gt=z({},["mi","mo","mn","ms","mtext"]),ht=z({},["foreignobject","desc","title","annotation-xml"]),At=z({},["title","style","font","a","script"]),vt=z({},V);z(vt,Y),z(vt,Z);var bt=z({},U);z(bt,G);var Ct=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=D(e.tagName),r=D(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||gt[r]):Boolean(vt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&ht[r]:Boolean(bt[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!ht[r])&&!(t.namespaceURI===nt&&!gt[r])&&!bt[n]&&(At[n]||!vt[n]):!("application/xhtml+xml"!==he||!st[e.namespaceURI]))},xt=function(e){T(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},yt=function(e,t){try{T(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(We||He)try{xt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},wt=function(e){var t,n;if(Fe)e="<remove></remove>"+e;else{var r=k(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=_?_.createHTML(e):e;if(it===ot)try{t=(new m).parseFromString(i,he)}catch(e){}if(!t||!t.documentElement){t=R.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?O:i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),it===ot?fe.call(t,Re?"html":"body")[0]:Re?t.documentElement:a},_t=function(e){return de.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Ot=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)},St=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},jt=function(e,t,r){ge[e]&&S(ge[e],(function(e){e.call(n,t,r,dt)}))},Tt=function(e){var t;if(jt("beforeSanitizeElements",e,null),Ot(e))return xt(e),!0;var r=Ae(e.nodeName);if(jt("uponSanitizeElement",e,{tagName:r,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&M(/<[/\w]/g,e.innerHTML)&&M(/<[/\w]/g,e.textContent))return xt(e),!0;if(!Se[r]||ke[r]){if(!ke[r]&&Bt(r)){if(Be.tagNameCheck instanceof RegExp&&M(Be.tagNameCheck,r))return!1;if(Be.tagNameCheck instanceof Function&&Be.tagNameCheck(r))return!1}if(Ge&&!Xe[r]){var o=y(e)||e.parentNode,i=x(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(v(i[a],!0),b(e))}return xt(e),!0}return e instanceof c&&!Ct(e)?(xt(e),!0):"noscript"!==r&&"noembed"!==r||!M(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,t=P(t,ve," "),t=P(t,be," "),t=P(t,Ce," "),e.textContent!==t&&(T(n.removed,{element:e.cloneNode()}),e.textContent=t)),jt("afterSanitizeElements",e,null),!1):(xt(e),!0)},Dt=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in o||n in pt))return!1;if(Ee&&!Pe[t]&&M(xe,t));else if(Ie&&M(ye,t));else if(!Te[t]||Pe[t]){if(!(Bt(e)&&(Be.tagNameCheck instanceof RegExp&&M(Be.tagNameCheck,e)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(e))&&(Be.attributeNameCheck instanceof RegExp&&M(Be.attributeNameCheck,t)||Be.attributeNameCheck instanceof Function&&Be.attributeNameCheck(t))||"is"===t&&Be.allowCustomizedBuiltInElements&&(Be.tagNameCheck instanceof RegExp&&M(Be.tagNameCheck,n)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(n))))return!1}else if(et[t]);else if(M(Oe,P(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==I(n,"data:")||!Je[e])if(Me&&!M(we,P(n,_e,"")));else if(n)return!1;return!0},Bt=function(e){return e.indexOf("-")>0},kt=function(t){var r,o,i,a;jt("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:E(r.value),i=Ae(u),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,jt("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(yt(u,t),l.keepAttr))if(Le||!M(/\/>/i,o)){Ne&&(o=P(o,ve," "),o=P(o,be," "),o=P(o,Ce," "));var p=Ae(t.nodeName);if(Dt(p,i,o)){if(!Ze||"id"!==i&&"name"!==i||(yt(u,t),o=Ue+o),_&&"object"===e(h)&&"function"==typeof h.getAttributeType)if(d);else switch(h.getAttributeType(p,i)){case"TrustedHTML":o=_.createHTML(o);break;case"TrustedScriptURL":o=_.createScriptURL(o)}try{d?t.setAttributeNS(d,u,o):t.setAttribute(u,o),j(n.removed)}catch(e){}}}else yt(u,t)}jt("afterSanitizeAttributes",t,null)}},Pt=function e(t){var n,r=_t(t);for(jt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)jt("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof a&&e(n.content),kt(n));jt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t,o,i,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((at=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw L("toString is not a function");if("string"!=typeof(e=e.toString()))throw L("dirty is not a string, aborting")}if(!n.isSupported)return e;if(ze||mt(c),n.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){var u=Ae(e.nodeName);if(!Se[u]||ke[u])throw L("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(o=(t=wt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?t=o:t.appendChild(o);else{if(!We&&!Ne&&!Re&&-1===e.indexOf("<"))return _&&Ve?_.createHTML(e):e;if(!(t=wt(e)))return We?null:Ve?O:""}t&&Fe&&xt(t.firstChild);for(var d=_t(qe?e:t);i=d.nextNode();)Tt(i)||(i.content instanceof a&&Pt(i.content),kt(i));if(qe)return e;if(We){if(He)for(s=pe.call(t.ownerDocument);t.firstChild;)s.appendChild(t.firstChild);else s=t;return(Te.shadowroot||Te.shadowrootmod)&&(s=me.call(r,s,!0)),s}var p=Re?t.outerHTML:t.innerHTML;return Re&&Se["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&M(se,t.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+p),Ne&&(p=P(p,ve," "),p=P(p,be," "),p=P(p,Ce," ")),_&&Ve?_.createHTML(p):p},n.setConfig=function(e){mt(e),ze=!0},n.clearConfig=function(){dt=null,ze=!1},n.isValidAttribute=function(e,t,n){dt||mt({});var r=Ae(e),o=Ae(t);return Dt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(ge[e]=ge[e]||[],T(ge[e],t))},n.removeHook=function(e){if(ge[e])return j(ge[e])},n.removeHooks=function(e){ge[e]&&(ge[e]=[])},n.removeAllHooks=function(){ge={}},n}return ue()}()},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},3996:(e,t,n)=>{var r=n(4371).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},4371: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},5420:(e,t,n)=>{var r=n(3996)();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:()=>vm,ActionLinkButton:()=>Sm,ActionType:()=>t,AntiForgeryProvider:()=>af,AppLinkButton:()=>ym,AppTemplate:()=>iv,AssetFolderTreeView:()=>$t,AssetPanel:()=>hr,AssetPanelContent:()=>ur,AssetPanelContentWrapper:()=>dr,AssetRichTextEditorPlugin:()=>jd,AssetSelectorExtensionValidationRule:()=>gp,AssetSelectorFormComponent:()=>Tr,AssetSelectorValidationRule:()=>mp,AssetTileDimensions:()=>Tn,AssetTileHidden:()=>Dn,AssetsLoader:()=>En,AutoRefreshCardComponent:()=>Zg,BreadcrumbsContext:()=>Jm,BreadcrumbsProvider:()=>qb,BuilderEditTemplate:()=>ZC,ButtonEditTemplateActionComponent:()=>Ev,Callout:()=>wf,CheckboxFormComponent:()=>Br,CodeEditorFormComponent:()=>Gd,ComponentType:()=>Rg,ConditionBuilderFormComponent:()=>mi,ConditionBuilderOverview:()=>co,ConditionBuilderOverviewCardComponent:()=>Gg,ConditionBuilderTemplate:()=>Zv,ConfirmationDialog:()=>om,ContentItemCommandResultStatus:()=>Xf,ContentItemPanelContent:()=>Jf,ContentWithSidebarLayoutWrapper:()=>Dg,CustomRightSidebarProvider:()=>df,DashboardTemplate:()=>hv,DateFormatValidationRule:()=>Bp,DateInFutureValidationRule:()=>kp,DateInputFormComponent:()=>yi,DateTimeInputFormComponent:()=>Ti,DebouncerTime:()=>X,DecimalFormatValidationRule:()=>Dp,DecimalNumberInputFormComponent:()=>Bi,DropDownSelectorFormComponent:()=>Fo,DropDownSelectorParameterOverview:()=>po,EditTemplate:()=>Bv,EditableObjectStatusContext:()=>qd,EditableObjectStatusProvider:()=>Kd,EmailPreviewTemplate:()=>KC,EmailStatisticsTemplate:()=>rx,EmailValidationRule:()=>Cp,ExtensionSelectorFormComponent:()=>Pi,FieldEditorCommands:()=>Yb,FieldEditorTemplate:()=>Zb,Form:()=>sp,FormCardComponent:()=>qg,FormContext:()=>mo,FormFieldContext:()=>Mo,FormSubmissionStatus:()=>fo,IconSelectorFormComponent:()=>Li,IdentifierValidationRule:()=>_p,ListingTemplate:()=>nb,LoadContentItemPanelItemsFilterType:()=>Kf,Loader:()=>gh,LocalizationContext:()=>y,LocalizationProvider:()=>O,LogonPath:()=>Hp,MacroWrapperFormComponent:()=>Hi,MaxItemsValidationRule:()=>vp,MaxLengthValidationRule:()=>lp,MaximumNumberValidationRule:()=>jp,MinLengthValidationRule:()=>cp,MinimumNumberValidationRule:()=>Tp,MultiSourceAssetPanel:()=>rm,NamespaceCodeNameFormComponent:()=>Ui,NestedPageProvider:()=>gf,NoLicenseTemplate:()=>Rv,NotificationMessageType:()=>n,NotificationsContext:()=>z,NotificationsProvider:()=>W,NumberInputFormComponent:()=>Gi,NumberInputParameterOverview:()=>uo,ObjectCodeNameSelectorParameterOverview:()=>jo,ObjectSelectorBase:()=>md,ObjectSelectorFormComponent:()=>hd,ObjectSelectorParameterOverview:()=>Oo,ObjectSelectorValidationRule:()=>hp,OverviewCard:()=>Hm,OverviewCommands:()=>Vg,OverviewTemplate:()=>Yg,PageLocation:()=>Xm,PageMessagePane:()=>wh,PageWorkflowStatus:()=>Pf,PageWorkflowStatusEnum:()=>jf,ParameterSimpleOverview:()=>Kr,ParameterText:()=>Xr,PasswordFormComponent:()=>xd,PermissionsTemplate:()=>yx,Portal:()=>_h,PromptDialog:()=>cm,PromptDialogComponent:()=>lm,PromptDialogProvider:()=>mm,PropertiesDialog:()=>Mg,PropertiesDialogProvider:()=>Fg,RadioGroupFormComponent:()=>_d,RefetchAllProvider:()=>Wp,RequiredValueValidationRule:()=>up,RichTextEditorFormComponent:()=>Sd,RoutingContentPlaceholder:()=>Rh,SearchInput:()=>Tf,SecondaryMenuNavigationContext:()=>Av,SecondaryMenuNavigationProvider:()=>xv,SectionLayoutTemplate:()=>Ob,ServerValidationRule:()=>bp,SettingsDetailsTemplate:()=>EC,SettingsLayoutTemplate:()=>yC,SettingsSearchTemplate:()=>LC,SideNavigationLayoutTemplate:()=>Jb,SimpleStatusSuccessCardComponent:()=>ah,StringContentCardComponent:()=>Qg,TagListCardComponent:()=>th,TemplateDialog:()=>Og,TemplateDialogProvider:()=>xg,TemplateLoader:()=>ig,TemplatePropertiesContext:()=>Qm,TemplatePropertiesProvider:()=>Km,TemplateSideMenu:()=>fg,TemplateSidePanelProvider:()=>Ag,TextAreaActionButton:()=>Dm,TextAreaCopyButton:()=>Im,TextAreaFormComponent:()=>Ed,TextInputFormComponent:()=>Td,TextWithLabelFormComponent:()=>Id,TreeTemplate:()=>aC,UnorderedListCardComponent:()=>ih,ValidationRuleListFormComponent:()=>Ud,ViewMenuItem:()=>jh,findLastIndex:()=>ef,getBaseUri:()=>U,getFormLabelIcon:()=>Ar,getLogonUrl:()=>Yp,getPathWithoutBasePath:()=>G,getReturnUrl:()=>Zp,handleResponseStatus:()=>$p,keysToCamelCase:()=>Wg,postToAdmin:()=>Jp,useAntiForgery:()=>of,useAssetDataManager:()=>qn,useAssetPanel:()=>or,useAssetTilesColumnCount:()=>tr,useAssetsInfiniteScroll:()=>Jn,useBlocker:()=>B,useBreadcrumbs:()=>eg,useChunkedUpload:()=>Np,useCommandProvider:()=>Rp,useComponent:()=>I,useComponentWillUnmount:()=>Ep,useCustomRightSidebarContext:()=>uf,useDisplayDialogInFullscreen:()=>Co,useEditableObjectStatusObservee:()=>Xd,useEditableObjectStatusObserver:()=>Qd,useFieldInfoObject:()=>E,useFormComponentCommand:()=>Ao,useFormComponentCommandProvider:()=>vo,useInterval:()=>M,useLinkRetriever:()=>Ip,useLocalization:()=>w,useNestedPage:()=>mf,useNotificationMessage:()=>V,useNotifications:()=>F,usePageCommand:()=>bf,usePageCommandProvider:()=>j,usePagePath:()=>q,usePrompt:()=>dm,usePropertiesDialog:()=>zg,useRefetchAllContext:()=>Fp,useSecondaryMenuNavigation:()=>vv,useSelectorStatusText:()=>yo,useTemplateDialog:()=>Cg,useTemplateSidePanel:()=>hg,useValidationRule:()=>bo});var e={};s.r(e),s.d(e,{FILE:()=>Pt,HTML:()=>Mt,TEXT:()=>Et,URL:()=>It});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(5420),v=s.n(A),b=s(1883),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"}}},"assetSelector":{"assetPanel":{"headline":"Select asset","toggles":{"contentHub":"Content hub","mediaLibrary":"Media library"},"selectButtonLabel":"Select","cancelButtonLabel":"Cancel"}},"contentItemAssetUploader":{"uploadCancelled":"File upload was canceled."},"plugins":{"insertLink":{"buttonLabel":"Insert link","options":{"asset":{"title":"Asset","tooltip":"Insert link to a file from a media library.","disabledButtonTooltip":"Cannot insert image. No available content type with an asset field or media library to select the files from.","panelHeadline":"Select media file to link","selectButtonLabel":"Insert","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 content type with an asset field or media 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","updateButtonLabel":"Update"}}}}}}');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).navigator;return(0,r.useEffect)((function(){if(t){var r=i.block((function(t){t.location.pathname!==window.location.pathname&&(n.current=D(D({},t),{},{retry:function(){r(),t.retry()}}),e(n.current))}));return r}}),[i,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 I(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 E=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 z=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:[]});z.displayName="NotificationsContext";var F=function(){return r.default.useContext(z)},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)(z.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=F(),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}return p({type:ee.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(K(10));o=e,p({type:ee.REPLACE})}})[J]=function(){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},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 Ie="dnd-core/ADD_SOURCE",Ee="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 ze=0;function Fe(e){const t=(ze++).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:Ie,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:Ee,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=Fe(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 Ie:case Ee: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 Ie:case Ee: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__",It="__NATIVE_URL__",Et="__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"]},[It]:{exposeProperties:{urls:(e,t)=>Lt(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Et]:{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 zt=Dt((()=>/firefox/i.test(navigator.userAgent))),Ft=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}}const Ht=1;function Vt(e){const t=e.nodeType===Ht?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Yt(e){return{x:e.clientX,y:e.clientY}}function Zt(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(zt()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Vt(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 Ft()&&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 Ft()&&i&&(e+=(window.devicePixelRatio-1)*f),e})()}}class Ut{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 Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qt(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){Gt(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 qt({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return qt({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&&Vt(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=Yt(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=Zt(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:Yt(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=Yt(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:Yt(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 Ut(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Bt(this.isNodeInDocument)}}const Xt=function(e,t,n){return new Qt(e,t,n)};var Kt=s(7608),Jt=s.n(Kt),$t=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 en(e){return(0,r.useMemo)((()=>e.hooks.dragSource()),[e])}function tn(e){return(0,r.useMemo)((()=>e.hooks.dragPreview()),[e])}$t.displayName="AssetFolderTreeView";class nn{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 rn=!1,on=!1;class an{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){re(!rn,"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 rn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rn=!1}}isDragging(){if(!this.sourceId)return!1;re(!on,"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 on=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{on=!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 sn{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 ln(e,t,n){const o=wt(),i=function(e,t,n){const o=(0,r.useMemo)((()=>new sn(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 cn(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 an(e)),[e])}(),i=function(e,t){const n=wt(),o=(0,r.useMemo)((()=>new nn(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 ln(n,o,i),[mt(n.collect,o,i),en(i),tn(i)]}function un(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 dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pn=function(e){var t=g(cn((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,dn(dn({ref:r},e),{},{isDragging:n,isSelected:n||e.isSelected}))},fn=s(5748),mn=s.n(fn),gn=s(6306),hn=s.n(gn),An=s(9736),vn=s.n(An),bn=s(1567),Cn=s.n(bn),xn=s(7706),yn=s.n(xn),wn=s(2062),_n=s.n(wn),On=s(8056),Sn={};Sn.styleTagTransform=_n(),Sn.setAttributes=Cn(),Sn.insert=vn().bind(null,"head"),Sn.domAPI=hn(),Sn.insertStyleElement=yn();mn()(On.Z,Sn);const jn=On.Z&&On.Z.locals?On.Z.locals:void 0;var Tn,Dn=function(e){var t=e.isPreview;return(0,_.jsx)("div",{className:jn.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")})};Dn.displayName="AssetTileHidden",function(e){e.SelectableTileMaxWidth="218px",e.PreviewTileMaxWidth="323px"}(Tn||(Tn={}));var Bn=s(9589),kn={};kn.styleTagTransform=_n(),kn.setAttributes=Cn(),kn.insert=vn().bind(null,"head"),kn.domAPI=hn(),kn.insertStyleElement=yn();mn()(Bn.Z,kn);const Pn=Bn.Z&&Bn.Z.locals?Bn.Z.locals:void 0;var In,En=function(e){var t=e.observerRef,n=w().localization;return(0,_.jsxs)("div",{ref:t,className:Pn.loadingHeadline,children:[(0,_.jsx)(i.Spinner,{className:Pn.spinner}),(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,labelColor:i.Colors.TextDefaultOnLight,children:n.admin.base.assetLoader.loadMore})]})};!function(e){e.LoadAssetLibraries="LoadAssetLibraries"}(In||(In={}));function Mn(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 Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Nn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Rn;const zn=new Uint8Array(16);function Fn(){if(!Rn&&(Rn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Rn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Rn(zn)}const Wn=[];for(let e=0;e<256;++e)Wn.push((e+256).toString(16).slice(1));function Hn(e,t=0){return(Wn[e[t+0]]+Wn[e[t+1]]+Wn[e[t+2]]+Wn[e[t+3]]+"-"+Wn[e[t+4]]+Wn[e[t+5]]+"-"+Wn[e[t+6]]+Wn[e[t+7]]+"-"+Wn[e[t+8]]+Wn[e[t+9]]+"-"+Wn[e[t+10]]+Wn[e[t+11]]+Wn[e[t+12]]+Wn[e[t+13]]+Wn[e[t+14]]+Wn[e[t+15]]).toLowerCase()}const Vn=function(e,t,n){if(Nn.randomUUID&&!t&&!e)return Nn.randomUUID();const r=(e=e||{}).random||(e.rng||Fn)();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 Hn(r)};function Yn(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Un(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 Gn(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 Gn(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 Gn(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 qn=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=Rp(e).executeCommand,a=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.next=3,i("LoadAssetFolders",{libraryIdentifier:t,folderPath:n,isSelected:r});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),s=function(e){return Ln(Ln({},e),{},{children:[],areChildrenLoaded:!1,isLoading:!1,isExpanded:!1})},l=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,a(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(s),o((function(e){var t=i.reduce((function(e,t){var n=t.path,r=i.filter((function(e){return e.parentPath===n}));return Ln(Ln({},e),{},u({},n,Ln(Ln({},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)}}(),c=function(){var e=p(v().mark((function e(t,n,r){var i,l;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(t,n,!1);case 2:if((i=e.sent)&&i.folders){e.next=5;break}return e.abrupt("return");case 5:l=i.folders.map(s),o((function(e){var t=l.reduce((function(e,t){var n=t.path;return Ln(Ln({},e),{},u({},n,Ln(Ln({},t),{},{isLoading:!1,children:[]})))}),e),n=l[0].parentPath;return t[n]=Ln(Ln({},t[n]),{},{isLoading:!1,areChildrenLoaded:!0,children:l.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)}}(),d=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,c(t,n.path,r);case 3:return e.abrupt("return");case 4:o((function(e){return Ln(Ln({},e),{},u({},n.path,Ln(Ln({},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:d,loadFolders:l,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=vo().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(F):(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(F),p=[].concat(L(f),L(g))),h=null!==(u=w.current.filter((function(e){return e.isPlaceholder})))&&void 0!==u?u:[],I()&&_.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(I()?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)}}(),I=function(){return C.current&&y.current===t.current&&x.current===e.current},E=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=Un(s);try{for(u.s();!(p=u.n()).done;)f=p.value,c.push({identifier:Vn(),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),z(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(F).map((function(e){return Zn(Zn({},e),{},{identifier:e.hasError?Vn():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),z(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=Zn(Zn({},F(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},z=function(e){b.current=window.setTimeout((function(){w.current=null==e?void 0:e.map((function(e){return Zn(Zn({},e),{},{uploadProgress:e.isPlaceholder?98:0})})),a(w.current)}),200)},F=function(e){return Zn(Zn({},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:E,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=Rp(e).executeCommand;return{loadLibraries:(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,i(In.LoadAssetLibraries);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)}))),[i]),libraries:n}}(e),I=P.libraries,E=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)}}(),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,S(c.current,d.current,t,n);case 4: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,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:I,folders:m,assets:w,hasMoreAssetsToLoad:_,loadLibraries:E,loadFolders:M,loadAssets:N,restoreAsset:y,toggleFolder:R,uploadAssets:z,updateAssetBinary:F,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 Qn(){return Qn=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},Qn.apply(this,arguments)}var Xn=function(e){var t=(0,r.useRef)(e);return t.current=e,t},Kn=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=Xn(u),x=Xn(d),y=Xn(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(Qn({},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,_]),Qn({},m,{observe:O,unobserve:_,updatePosition:S})},Jn=function(e,t){var n,o=(0,r.useRef)(0),a="0px 0px ".concat(60*parseInt(i.Dimensions.GridUnit,10),"px 0px"),s=Kn({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 $n(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 er(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=$n(r,i,"inlineSize"),s=$n(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 tr=function(e,t){var n=g((0,r.useState)(),2),o=n[0],a=n[1],s=er({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 nr(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 rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var or=function(e){var t=g((0,r.useState)({assetPanelEnabled:!1,imageExtensions:""}),2),n=t[0],o=t[1],i=Rp(e).executeCommand,a=(0,r.useCallback)(p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"GetAssetPanelInitialProperties",e.next=3,i("GetAssetPanelInitialProperties");case 3:if(t=e.sent){e.next=6;break}return e.abrupt("return");case 6:o({assetPanelEnabled:t.enabled,imageExtensions:t.imageExtensions});case 7:case"end":return e.stop()}}),e)}))),[]);return(0,r.useEffect)((function(){a()}),[a]),rr(rr({},n),{},{onLibrariesLoad:function(e){o((function(t){var n;return rr(rr({},t),{},{assetPanelEnabled:(null!==(n=null==e?void 0:e.length)&&void 0!==n?n:0)>0})}))}})},ir=s(5866),ar={};ar.styleTagTransform=_n(),ar.setAttributes=Cn(),ar.insert=vn().bind(null,"head"),ar.domAPI=hn(),ar.insertStyleElement=yn();mn()(ir.Z,ar);const sr=ir.Z&&ir.Z.locals?ir.Z.locals:void 0;function lr(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 cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ur=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=Jn(null!==(t=T())&&void 0!==t?t:j,b).observe,B=(0,r.useRef)(null),k=tr(B,parseInt(Tn.SelectableTileMaxWidth)),P=function(){return u&&u.length>1},I=Jt()(P()?sr.contentPanel:sr.contentPanelWithoutSelector);return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(i.Box,{className:sr.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:I,spacingX:i.Spacing.L,children:[(0,_.jsx)(i.Column,{width:34,children:(0,_.jsx)("div",{className:sr.treeView,children:(0,_.jsx)($t,{nodes:s,rootPath:l,onNodeClick:g,selectedPath:c,onNodeToggle:m})})}),(0,_.jsxs)(i.Column,{className:sr.content,children:[(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,_.jsx)("span",{className:sr.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:sr.gridWrapper,children:[(0,_.jsxs)(i.Grid,{cols:k,ref:B,rowGap:i.Spacing.L,columnGap:i.Spacing.L,className:sr.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)(Dn,{}),o&&o.map((function(e){var t=cr(cr({},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)(pn,cr({asset:e},t),e.identifier):(0,_.jsx)(i.AssetTileSelectable,cr({},t),e.identifier)}))]}),p&&(0,_.jsx)(En,{observerRef:D})]})]})]})]})})},dr=function(e){var t=e.visible,n=e.fieldInfo,o=e.allowedExtensions,i=e.preselectedAsset,a=e.onLibrariesLoad,s=e.onSelectedAssetsChange,l=g((0,r.useState)([]),2),c=l[0],u=l[1],d=qn(n),f=d.libraries,m=d.folders,h=d.assets,A=d.hasMoreAssetsToLoad,b=d.loadLibraries,C=d.loadFolders,x=d.loadAssets,y=d.toggleFolder,w=d.uploadAssets,O=d.setSelectedLibraryIdentifier,S=d.setSelectedFolderPath,j=d.selectedLibraryIdentifier,T=d.selectedFolderPath,D=d.uploadInProgress,B=d.totalAssetsCount,k=d.removeAsset,P="kxp.assetPanel.folderPath",I="kxp.assetPanel.libraryIdentifier",E=(0,r.useCallback)((function(e){S(e),localStorage.setItem(P,e)}),[S]),M=(0,r.useCallback)((function(e){O(e),localStorage.setItem(I,e.toString())}),[O]),L=(0,r.useCallback)((function(e){M(e.libraryIdentifier),E(e.folderPath),u([e])}),[E,M]),N=(0,r.useCallback)(function(){var e=p(v().mark((function e(t){var n,r,i,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b();case 2:if(n=e.sent,null==a||a(n),!(n.length<=0)){e.next=7;break}return O(0),e.abrupt("return");case 7:return t?L(t):(i=R(n),M(i),s=null!==(r=localStorage.getItem(P))&&void 0!==r?r:"",E(s)),e.next=10,C();case 10:return e.next=12,x(o);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,x,C,b,a,L,E,M,O]);(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,N(i);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t&&e()}),[t,i]);var R=function(e){var t=Number(localStorage.getItem(I));return e.some((function(e){return e.identifier===t}))?t:e[0].identifier},z=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x(o);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,_.jsx)(_.Fragment,{children:j>0&&(0,_.jsx)(ur,{assets:h,hasMoreAssetsToLoad:A,folders:m,rootFolderPath:"",selectedFolderPath:T,selectedAssetIdentifiers:null==c?void 0:c.map((function(e){return e.identifier})),uploadInProgress:D,assetsTotalCount:B,onFolderToggle:function(e,t){return y(e,t)},onFolderClick:function(e){E(e.path),x(o)},onLoadNextPage:z,onSelectionChange:function(e,t){var n=e?[t]:[];u(n),s(n)},onUpload:function(e){return w(e,o)},onErrorClose:k,selectedLibraryIdentifier:j,libraries:f,onLibraryChange:function(e){M(e),E(""),C(),x(o)},acceptFiles:function(){if(o){for(var e=o.split(";"),t=0;t<e.length;t++)e[t]=".".concat(e[t]);return e.join(",")}}()})})},pr=s(6497),fr={};fr.styleTagTransform=_n(),fr.setAttributes=Cn(),fr.insert=vn().bind(null,"head"),fr.domAPI=hn(),fr.insertStyleElement=yn();mn()(pr.Z,fr);const mr=pr.Z&&pr.Z.locals?pr.Z.locals:void 0;var gr=["visible","onLibrariesLoad","onSelectAssets","fieldInfo","allowedExtensions","actionButtonLabel","headline","shiftRight","preselectedAsset","onPanelClosed"],hr=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,p=e.onPanelClosed,f=h(e,gr),m=document.getElementById("sidePanelPlaceholder"),A=g((0,r.useState)(null!=u&&u),2),v=A[0],b=A[1],C=g((0,r.useState)([]),2),x=C[0],y=C[1],O=g((0,r.useState)(!1),2),S=O[0],j=O[1],T=w().localization,D=qn(a).resetData;(0,r.useEffect)((function(){b(null!=u&&u)}),[u]);var B=function(){j(!1),D(),y([]),null==p||p()},k=(0,_.jsx)(i.Button,{label:null!=l?l:T.admin.base.assetPanel.actionButtonLabel,color:i.ButtonColor.Primary,onClick:function(){null==o||o(x),B()},disabled:!S,dataTestId:"confirm-action"}),P=(0,_.jsx)(i.Button,{label:T.admin.base.assetPanel.cancelButtonLabel,color:i.ButtonColor.Secondary,onClick:B,dataTestId:"cancel-action"}),I=Jt()(v&&mr.slidToRight);return(0,_.jsx)(_h,{container:m,children:(0,_.jsxs)(i.SidePanel,{headline:null!=c?c:T.admin.base.assetPanel.headline,size:i.SidePanelSize.Full,isVisible:t,onCloseClick:B,footer:(0,_.jsxs)(_.Fragment,{children:[P,k]}),className:I,dataTestId:"asset-panel",children:[f.enabled&&(0,_.jsx)(dr,{visible:t,fieldInfo:a,allowedExtensions:s,preselectedAsset:d,onLibrariesLoad:n,onSelectedAssetsChange:function(e){j(e.length>0),y(e)}}),!f.enabled&&(0,_.jsx)(wh,{title:f.disabledLabel})]})})},Ar=function(e){return e?"xp-i-circle":void 0},vr=s(502),br={};br.styleTagTransform=_n(),br.setAttributes=Cn(),br.insert=vn().bind(null,"head"),br.domAPI=hn(),br.insertStyleElement=yn();mn()(vr.Z,br);const Cr=vr.Z&&vr.Z.locals?vr.Z.locals:void 0;var xr=function(){var e=w().localization;return(0,_.jsx)("div",{className:Cr.dropTileWrapper,children:(0,_.jsx)("div",{className:Cr.dropTile,children:(0,_.jsx)("div",{className:Cr.dropTileText,children:e.admin.base.formComponent.assetSelector.dropTileText})})})},yr=s(1010),wr={};wr.styleTagTransform=_n(),wr.setAttributes=Cn(),wr.insert=vn().bind(null,"head"),wr.domAPI=hn(),wr.insertStyleElement=yn();mn()(yr.Z,wr);const _r=yr.Z&&yr.Z.locals?yr.Z.locals:void 0;function Or(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?Or(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jr,Tr=function(e){return(0,_.jsx)(ct,{backend:Xt,context:window,children:(0,_.jsx)(Dr,Sr({},e))})},Dr=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 Sr(Sr({},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=tr(m,parseInt(Tn.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 Sr(Sr({},t),{},{disabled:null!==(n=e.disabled)&&void 0!==n&&n})}))}),[e.disabled]);var S=Jt()(_r.assetSelectorWrapper,y&&_r.dropZone,e.disabled&&_r.disabled,e.invalid&&_r.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 Sr(Sr({},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:Ar(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:_r.description,spacing:i.Spacing.L,children:[A.admin.base.formComponent.assetSelector.selectAssets,(0,_.jsx)("div",{className:_r.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)(xr,{})}),(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)(hr,{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 Sr(Sr({},e),{},{libraryExists:n})}))},fieldInfo:{name:e.name,fieldValues:e.fieldValues},allowedExtensions:e.allowedExtensions,onPanelClosed:function(){c(!1),f(void 0)},shiftRight:y,preselectedAsset:d})]})})})},Br=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:Ar(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml})};!function(e){e.All="All",e.Any="Any"}(jr||(jr={}));var kr=function(e,t){return e===jr.All?t.admin.base.conditionBuilder.and:t.admin.base.conditionBuilder.or},Pr=function(e){var t={},n=-1;return e.forEach((function(e,r){t[r.toString()]=e,n=r})),{mappedResult:t,lastUsedIndex:n}},Ir=function(e,t){return e===jr.All?t.admin.base.conditionBuilder.overview.all:t.admin.base.conditionBuilder.overview.any},Er=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},Mr=function(e){return void 0!==e.properties},Lr=function(e){var t={};return e.parameters.forEach((function(e){Mr(e)&&(t[e.properties.name]=e.properties.value)})),t},Nr=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:Lr(e.macroRule)}}))}}));return{operator:e.operator,groups:t}},Rr=function(e){return void 0!==e.value},zr="ConditionParametersForm";function Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wr(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 Hr(e,t,n){return t&&Wr(e.prototype,t),n&&Wr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e,t){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yr(e,t)}function Zr(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&&Yr(e,t)}function Ur(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 Vr(e)}function Gr(e){return Gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gr(e)}function qr(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=Gr(e);if(t){var o=Gr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ur(this,n)}}var Qr=function(e){Zr(n,e);var t=qr(n);function n(){var e;Fr(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return u(Vr(e=t.call.apply(t,[this].concat(o))),"state",{hasError:!1,error:null}),e}return Hr(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),Xr=function(e){return(0,_.jsx)("span",{children:e.parameter.value})};Xr.displayName="ParameterText";var Kr=function(e){return(0,_.jsx)("b",{children:e.value})};Kr.displayName="ParameterSimpleOverview";var Jr=function(e,t){return System.import(e).then((function(e){return{default:t in e?e[t]:Kr}})).catch((function(){return{default:Kr}}))},$r=["macroRule"];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 to(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}var no=function(e){var t=e.macroRule,n=h(e,$r),o=(0,r.useMemo)((function(){return Lr(t)}),[t]),i=I("".concat(n.componentName,"ParameterOverview"),Jr);return(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(gh,{}),children:i&&(0,_.jsx)(i,to(to({},n),{},{fieldValues:o}))})},ro=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},oo=s(3847),io={};io.styleTagTransform=_n(),io.setAttributes=Cn(),io.insert=vn().bind(null,"head"),io.domAPI=hn(),io.insertStyleElement=yn();mn()(oo.Z,io);const ao=oo.Z&&oo.Z.locals?oo.Z.locals:void 0;function so(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 lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var co=function(e){var t=e.data,n=w().localization,o=t.operator||jr.All;return(0,_.jsx)(Qr,{fallback:function(){return(0,_.jsx)(ro,{errorMessage:n.admin.base.conditionBuilder.overview.loaderError})},children:(0,_.jsxs)("div",{className:ao.container,children:[0===t.groups.length&&(0,_.jsx)("div",{className:ao.emptyCondition,children:n.admin.base.conditionBuilder.overview.emptyCondition}),t.groups.length>0&&(0,_.jsxs)("div",{className:ao.headline,children:[n.admin.base.conditionBuilder.overview.headlineBeforeOperator,(0,_.jsx)("b",{className:ao.headlineOperator,children:Ir(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)(mo.Provider,{value:{name:"".concat(zr,":").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&&" ",Mr(e)&&(0,_.jsx)(no,lo(lo({},e.properties),{},{macroRule:t.macroRule})),Rr(e)&&(0,_.jsx)(Xr,{parameter:e})]},n)}))})}),o+1<e.items.length&&(0,_.jsx)(i.ConditionOperatorOverview,{operator:kr(e.operator||jr.All,n),type:i.ConditionOperatorOverviewType.ConditionSeparator})]},o)}))}),a+1<t.groups.length&&(0,_.jsx)(i.ConditionOperatorOverview,{operator:kr(o,n),type:i.ConditionOperatorOverviewType.GroupSeparator})]},a)}))]})})};co.displayName="ConditionBuilderOverview";var uo=function(e){return(0,_.jsx)("b",{children:void 0===e.value||null===e.value?"?":e.value.toString()})};uo.displayName="NumberInputParameterOverview";var po=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};po.displayName="DropDownSelectorParameterOverview";var fo,mo=r.default.createContext({name:"DefaultForm",dataChanged:!1,preventNesting:!0});mo.displayName="FormContext",function(e){e.Error="error",e.ValidationFailure="validationFailure",e.ValidationSuccess="validationSuccess"}(fo||(fo={}));var go="ComponentCommand",ho=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:go,commandData:JSON.stringify(a)},i=i.parentContext}return a},Ao=function(e,t,n,o){var i=(0,r.useContext)(mo).name,a=(0,r.useContext)(Mo),s=bf(go,{data:ho(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=ho(i,e,t,a,n);return s.execute(l,r,o)}}},vo=function(){var e=j().executeCommand,t=(0,r.useContext)(mo),n=(0,r.useContext)(Mo),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=ho(t.name,o,i,n,a),r.abrupt("return",e(go,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 bo(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 Co=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},xo=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},yo=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?xo(n.statusTextMultiple,e):xo(1===t?n.statusTextSingleWithCurrentCount:n.statusTextMultipleWithCurrentCount,t,e);r&&a(r)}}),[e,t,n]),i},wo="LoadSelectedObjects",_o=function(e,t){var n=vo().executeCommand,o=E(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,wo,{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}},Oo=function(e){var t=g((0,r.useState)(),2),n=t[0],o=t[1],i=_o(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 So(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}Oo.displayName="ObjectSelectorParameterOverview";var jo=function(e){return(0,_.jsx)(Oo,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))};function To(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Do(){return Do=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},Do.apply(this,arguments)}function Bo(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 ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}jo.displayName="ObjectCodeNameSelectorParameterOverview";var Po="FormComponent",Io=function(e){var t=I("".concat(e.componentName).concat(Po));return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(gh,{}),children:t&&(0,_.jsx)(t,ko({},e))})})},Eo=function(e){var t=bo(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},Mo=r.default.createContext({fieldInfo:{name:"DefaultFormField",fieldValues:{}},parentContext:void 0,preventNesting:!0});function Lo(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 No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Mo.displayName="FormFieldContext";var Ro=function(e){var t=Do({},(To(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)(mo),b=(0,r.useContext)(Mo),C=E(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)(Mo.Provider,{value:w,children:(0,_.jsxs)("div",{className:t.fieldCssClass,children:[t.validationRules?t.validationRules.map((function(e,n){return(0,_.jsx)(Eo,No(No({},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=No(No({},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 No(No({},t),{},u({},e,n))}))}(n,e)}}),n)})):null,(0,_.jsx)(Io,No(No({},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()}}))]})})},zo=["value","label","disabled","placeholder","name","invalid","required","inactiveMessage","tooltip","explanationText","validationMessage","options","maxContentHeight","onChange"],Fo=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,zo),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:Ar(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)}))})};Fo.displayName="DropDownSelectorFormComponent";var Wo=s(6971),Ho={};Ho.styleTagTransform=_n(),Ho.setAttributes=Cn(),Ho.insert=vn().bind(null,"head"),Ho.domAPI=hn(),Ho.insertStyleElement=yn();mn()(Wo.Z,Ho);const Vo=Wo.Z&&Wo.Z.locals?Wo.Z.locals:void 0;var Yo=["onChange","onDelete","initialParametersValue","macroRule"];function Zo(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 Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Go=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,Yo),d=g((0,r.useState)((function(){return Lr(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(!Rr(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=Uo(Uo({},p),{},u({},e,t));f(r),n(r)};return(0,_.jsx)(mo.Provider,{value:{name:"".concat(zr,":").concat(l.macroRuleName),preventNesting:!0},children:(0,_.jsx)(i.Condition,Uo(Uo({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(Rr(e)){var i=e;return(0,_.jsx)("div",{className:Vo.plainTextParameter,children:i.value},t)}var a=e,s=a.properties.componentName.endsWith(Fo.displayName.replace(Po,"")),l=Jt()(Vo.componentParameter,s&&Vo.select);return(0,r.createElement)(Ro,Uo(Uo({},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)}))}))})},qo=s(8047),Qo={};Qo.styleTagTransform=_n(),Qo.setAttributes=Cn(),Qo.insert=vn().bind(null,"head"),Qo.domAPI=hn(),Qo.insertStyleElement=yn();mn()(qo.Z,Qo);const Xo=qo.Z&&qo.Z.locals?qo.Z.locals:void 0;var Ko=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:Xo.operatorSelect,children:(0,_.jsxs)(i.Select,{value:t,onChange:function(e){return n(e)},children:[(0,_.jsx)(i.MenuItem,{primaryLabel:jr.All,value:jr.All}),(0,_.jsx)(i.MenuItem,{primaryLabel:jr.Any,value:jr.Any})]})}),(0,_.jsx)("span",{children:o?a.admin.base.conditionBuilder.textAfterOperatorSelectorInConditionGroup:a.admin.base.conditionBuilder.textAfterOperatorSelector})]})},Jo=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})};Jo.displayName="ConditionBuilderConditionPicker";var $o=["onChange","onDelete","conditionGroupInitialValue","onPickerCloseRequest","onPickerOpenRequest","isPickerVisible"];function ei(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 ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ni=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,$o),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)(jr.All),2),C=b[0],x=b[1],y=w().localization;(0,r.useEffect)((function(){if(a){var e=Pr(a.items);v(e.lastUsedIndex),f(e.mappedResult),x(a.operator)}}),[a]);var O=function(e,t){for(var r=ti({},p),o=ti({},p[e]),i=L(o.macroRule.parameters),a=0;a<i.length;a++){var s=i[a];if(Mr(s)){var l=s,c=t[l.properties.name];i[a]=ti(ti({},l),{},{properties:ti(ti({},l.properties),{},{value:c})})}}r[e]={macroRule:ti(ti({},o.macroRule),{},{parameters:i}),id:r[e].id},f(r),n({operator:C,items:Object.values(r)})};return(0,_.jsxs)(i.ConditionGroup,ti(ti({},u),{},{isActionVisible:!c,onActionClick:l,children:[Object.keys(p).length>1?(0,_.jsx)(Ko,{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)(Go,{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:Lr(p[e].macroRule),macroRule:p[e].macroRule}),t+1!==Object.keys(p).length&&(0,_.jsx)(i.ConditionOperatorLine,{operator:kr(C,y)})]},p[e].id)})),c?(0,_.jsxs)(_.Fragment,{children:[Object.keys(p).length>0&&(0,_.jsx)(i.ConditionOperatorLine,{operator:kr(C,y)}),(0,_.jsx)(Jo,{macroRuleCategories:u.availableMacroRules,onItemSelect:function(e){var t=A+1,r=ti({},p),o=Er(e.value,u.availableMacroRuleConfigurations);r[t.toString()]={macroRule:o,id:Vn()},f(r),v(t),s(),n({operator:C,items:Object.values(r)})},onClose:s})]}):[]]}))},ri=["initialConfiguration","availableMacroRules","availableMacroRuleConfigurations","onChange"];function oi(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 ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ai="local_picker",si=function(e){var t=e.initialConfiguration,n=e.availableMacroRules,o=e.availableMacroRuleConfigurations,a=e.onChange,s=h(e,ri),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)(jr.All),2),C=b[0],x=b[1],y=w().localization;(0,r.useEffect)((function(){if(t){var e=Pr(t.groups.map((function(e){return ii(ii({},e),{},{items:e.items.map((function(e){return ii(ii({},e),{},{id:e.id||Vn()})}))})})));v(e.lastUsedIndex),f(e.mappedResult),x(t.operator||jr.All)}}),[t]);var O=function(e,t){if(0===t.items.length)S(e);else{var n=ii({},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,ii(ii({},s),{},{isActionVisible:c!==ai,onActionClick:function(){return u(ai)},actionLabel:y.admin.base.conditionBuilder.addGroupLabel,children:[Object.keys(p).length>1?(0,_.jsx)(Ko,{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)(ni,{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:kr(C,y)})]},e);var r})),Object.keys(p).length>0?(0,_.jsx)(i.ConditionOperatorLine,{operator:kr(C,y)}):[],c===ai?(0,_.jsx)(Jo,{macroRuleCategories:n,onItemSelect:function(e){var t=A+1,n=ii({},p),r={macroRule:Er(e.value,o),id:Vn()};n[t.toString()]={operator:jr.All,items:[r]},f(n),v(t),u(null),a({operator:C,groups:Object.values(n)})},onClose:function(){return u(null)}}):[]]}))},li="65vw",ci=s(8958),ui={};ui.styleTagTransform=_n(),ui.setAttributes=Cn(),ui.insert=vn().bind(null,"head"),ui.domAPI=hn(),ui.insertStyleElement=yn();mn()(ci.Z,ui);const di=ci.Z&&ci.Z.locals?ci.Z.locals:void 0;var pi=["initialConfiguration","availableMacroRules","availableMacroRuleConfigurations","onChange","label","inactiveMessage","invalid","validationMessage","disabled","required","explanationText","tooltip"],fi="GetMacro",mi=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,pi),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],I=k[1],E=g((0,r.useState)(t),2),M=E[0],L=E[1],N=F(),R=N.setRedirectToDialog,z=N.messages,W=N.removeDialogMessage,H=Co(1024);(0,r.useEffect)((function(){R(x)}),[R,x]);var V=vo().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,fi,Nr(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)===fo.ValidationSuccess&&(I(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:Ar(A),labelIconTooltip:A,inactiveMessage:l,disabled:d,invalid:c,validationMessage:u,explanationText:m,tooltipAsHtml:b.tooltipAsHtml,explanationTextAsHtml:b.explanationTextAsHtml,children:[(0,_.jsx)(co,{data:P}),(0,_.jsx)("div",{className:di.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:li,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:z.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)(si,{initialConfiguration:P,availableMacroRuleConfigurations:o,availableMacroRules:n,onChange:function(e){B(!0),L(e)}})}),(0,_.jsx)(lm,{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}})]})},gi=function(e){if(e)return e.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/,/,"")},hi=function(e){if(e)return e.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},Ai=s(6948),vi={};vi.styleTagTransform=_n(),vi.setAttributes=Cn(),vi.insert=vn().bind(null,"head"),vi.domAPI=hn(),vi.insertStyleElement=yn();mn()(Ai.Z,vi);const bi=Ai.Z&&Ai.Z.locals?Ai.Z.locals:void 0;var Ci=["startYear","endYear","months"],xi=function(e){if(e){if("string"==typeof e){var t=new Date(e.replace("Z",""));return hi(t)}return hi(e)}},yi=function(e){var t=e.startYear,n=e.endYear,o=e.months,a=h(e,Ci),s=g((0,r.useState)(xi(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=vo().executeCommand,P=Array.from({length:n-t+1},(function(e,n){return t+n})),I=w().localization,E=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(xi(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 z=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(hi(e))),!a.disabled&&x&&a.onChange&&a.onChange(t)},F=(0,_.jsx)("div",{className:bi.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:Ar(a.tooltip),labelIconTooltip:a.tooltip,tooltipAsHtml:a.tooltipAsHtml,explanationTextAsHtml:a.explanationTextAsHtml,children:(0,_.jsxs)("div",{className:bi.container,children:[(0,_.jsx)("div",{className:bi.dateInput,onKeyDown:function(e){!A&&E("ArrowDown",e)&&(b(!0),e.preventDefault()),A&&E("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:F})}),(0,_.jsx)("div",{className:bi.nowButton,children:(0,_.jsx)(i.Button,{label:I.admin.base.formComponent.dateInput.today,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:bi.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))}})})]})},wi=s(4246),_i={};_i.styleTagTransform=_n(),_i.setAttributes=Cn(),_i.insert=vn().bind(null,"head"),_i.domAPI=hn(),_i.insertStyleElement=yn();mn()(wi.Z,_i);const Oi=wi.Z&&wi.Z.locals?wi.Z.locals:void 0;var Si=["startYear","endYear","months"],ji=function(e){if(e){if("string"==typeof e){var t=new Date(e.replace("Z",""));return gi(t)}return gi(e)}},Ti=function(e){var t=e.startYear,n=e.endYear,o=e.months,a=h(e,Si),s=g((0,r.useState)(ji(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=vo().executeCommand,P=Array.from({length:n-t+1},(function(e,n){return t+n})),I=w().localization,E=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(ji(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 z,F=function(e){var t=null;null===e?f(null):j.getTime()===e.getTime()?t=j:(t=M(e),f(e),c(gi(e))),!a.disabled&&x&&a.onChange&&a.onChange(t)},W=(0,_.jsx)("div",{className:Oi.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:Ar(a.tooltip),labelIconTooltip:a.tooltip,tooltipAsHtml:a.tooltipAsHtml,explanationTextAsHtml:a.explanationTextAsHtml,children:(0,_.jsxs)("div",{className:Oi.container,children:[(0,_.jsx)("div",{className:Oi.dateInput,onKeyDown:function(e){!A&&E("ArrowDown",e)&&(b(!0),e.preventDefault()),A&&E("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:Oi.nowButton,children:(0,_.jsx)(i.Button,{label:I.admin.base.formComponent.dateTimeInput.now,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:Oi.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))},timePicker:{timeFormat:i.DateTimePickerTimeFormat.Hours12,defaultTime:(z=new Date,{hours:z.getHours(),minutes:z.getMinutes()}),actionLabel:I.admin.base.formComponent.dateTimeInput.save}})})]})},Di=["delimiter"],Bi=function(e){var t,n=e.delimiter,o=h(e,Di),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:Ar(o.tooltip),labelIconTooltip:o.tooltip,explanationText:o.explanationText,dataTestId:o.name,tooltipAsHtml:o.tooltipAsHtml,explanationTextAsHtml:o.explanationTextAsHtml})},ki=["allowedExtensions","inheritSystemSettings","settingsAllowedExtensions"],Pi=function(e){var t=e.allowedExtensions,n=e.inheritSystemSettings,o=e.settingsAllowedExtensions,a=h(e,ki),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:Ar(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))}})]})},Ii=s(8195),Ei={};Ei.styleTagTransform=_n(),Ei.setAttributes=Cn(),Ei.insert=vn().bind(null,"head"),Ei.domAPI=hn(),Ei.insertStyleElement=yn();mn()(Ii.Z,Ei);const Mi=Ii.Z&&Ii.Z.locals?Ii.Z.locals:void 0;var Li=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=Jt()(Mi.iconSelectorInputWrapper,e.disabled&&Mi.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:Ar(e.tooltip),labelIconTooltip:e.tooltip,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,children:(0,_.jsxs)(i.Box,{className:Mi.select,children:[(0,_.jsx)(i.Box,{spacingRight:i.Spacing.M,className:O,children:(0,_.jsxs)(i.Box,{spacing:i.Spacing.S,className:Mi.iconSelectorInput,children:[l&&(0,_.jsx)(i.Box,{spacingLeft:i.Spacing.S,children:(0,_.jsx)(i.Icon,{name:l})}),(0,_.jsx)(i.Box,{className:Mi.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)}))})})})]})},Ni=s(1816),Ri={};Ri.styleTagTransform=_n(),Ri.setAttributes=Cn(),Ri.insert=vn().bind(null,"head"),Ri.domAPI=hn(),Ri.insertStyleElement=yn();mn()(Ni.Z,Ri);const zi=Ni.Z&&Ni.Z.locals?Ni.Z.locals:void 0;function Fi(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 Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hi=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=Jt()(zi.labelContainer,e.disabled&&zi.disabled),C=I("".concat(e.innerComponentName,"FormComponent"));return(0,_.jsx)(i.FormItemWrapper,{children:(0,_.jsxs)("div",{className:zi.container,children:[(0,_.jsxs)("div",{className:zi.header,children:[(0,_.jsx)("div",{className:b,children:(0,_.jsx)("label",{children:e.label})}),(0,_.jsx)("div",{className:zi.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,Wi(Wi({onChange:function(e){A(e.target.value)}},e.innerComponentProperties),{},{label:"",value:u,disabled:e.disabled})),!n&&C&&(0,_.jsx)(C,Wi(Wi({onChange:A},e.innerComponentProperties),{},{value:s,disabled:e.disabled,fieldValues:f,invalid:e.invalid,validationMessage:e.validationMessage}))]})]})})},Vi=s(6300),Yi={};Yi.styleTagTransform=_n(),Yi.setAttributes=Cn(),Yi.insert=vn().bind(null,"head"),Yi.domAPI=hn(),Yi.insertStyleElement=yn();mn()(Vi.Z,Yi);const Zi=Vi.Z&&Vi.Z.locals?Vi.Z.locals:void 0;var Ui=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:Zi.labelOverride,label:e.label,invalid:e.invalid,validationMessage:e.validationMessage,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,disabled:e.disabled,children:(0,_.jsxs)("div",{className:Zi.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"})]})})},Gi=function(e){var t=g((0,r.useState)(null!==e.value&&void 0!==e.value?e.value+"":""),2),n=t[0],o=t[1];return(0,_.jsx)(i.Input,{type:"text",label:e.label,name:e.name,value:n,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:Ar(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 qi(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 Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xi=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}(),Ki=Math.abs,Ji=String.fromCharCode,$i=Object.assign;function ea(e){return e.trim()}function ta(e,t,n){return e.replace(t,n)}function na(e,t){return e.indexOf(t)}function ra(e,t){return 0|e.charCodeAt(t)}function oa(e,t,n){return e.slice(t,n)}function ia(e){return e.length}function aa(e){return e.length}function sa(e,t){return t.push(e),e}var la=1,ca=1,ua=0,da=0,pa=0,fa="";function ma(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:la,column:ca,length:a,return:""}}function ga(e,t){return $i(ma("",null,null,"",null,null,0),e,{length:-e.length},t)}function ha(){return pa=da>0?ra(fa,--da):0,ca--,10===pa&&(ca=1,la--),pa}function Aa(){return pa=da<ua?ra(fa,da++):0,ca++,10===pa&&(ca=1,la++),pa}function va(){return ra(fa,da)}function ba(){return da}function Ca(e,t){return oa(fa,e,t)}function xa(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 ya(e){return la=ca=1,ua=ia(fa=e),da=0,[]}function wa(e){return fa="",e}function _a(e){return ea(Ca(da-1,ja(91===e?e+2:40===e?e+1:e)))}function Oa(e){for(;(pa=va())&&pa<33;)Aa();return xa(e)>2||xa(pa)>3?"":" "}function Sa(e,t){for(;--t&&Aa()&&!(pa<48||pa>102||pa>57&&pa<65||pa>70&&pa<97););return Ca(e,ba()+(t<6&&32==va()&&32==Aa()))}function ja(e){for(;Aa();)switch(pa){case e:return da;case 34:case 39:34!==e&&39!==e&&ja(pa);break;case 40:41===e&&ja(e);break;case 92:Aa()}return da}function Ta(e,t){for(;Aa()&&e+pa!==57&&(e+pa!==84||47!==va()););return"/*"+Ca(t,da-1)+"*"+Ji(47===e?e:Aa())}function Da(e){for(;!xa(va());)Aa();return Ca(e,da)}var Ba="-ms-",ka="-moz-",Pa="-webkit-",Ia="comm",Ea="rule",Ma="decl",La="@import",Na="@keyframes";function Ra(e,t){for(var n="",r=aa(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function za(e,t,n,r){switch(e.type){case La:case Ma:return e.return=e.return||e.value;case Ia:return"";case Na:return e.return=e.value+"{"+Ra(e.children,r)+"}";case Ea:e.value=e.props.join(",")}return ia(n=Ra(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fa(e){return wa(Wa("",null,null,null,[""],e=ya(e),0,[0],e))}function Wa(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=Aa()){case 40:if(108!=m&&58==ra(w,d-1)){-1!=na(w+=ta(_a(v),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:w+=_a(v);break;case 9:case 10:case 13:case 32:w+=Oa(m);break;case 92:w+=Sa(ba()-1,7);continue;case 47:switch(va()){case 42:case 47:sa(Va(Ta(Aa(),ba()),t,n),l);break;default:w+="/"}break;case 123*g:s[c++]=ia(w)*A;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:f>0&&ia(w)-d&&sa(f>32?Ya(w+";",r,n,d-1):Ya(ta(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(sa(y=Ha(w,t,n,c,u,o,s,b,C=[],x=[],d),i),123===v)if(0===u)Wa(w,t,y,y,C,i,d,s,x);else switch(99===p&&110===ra(w,3)?100:p){case 100:case 109:case 115:Wa(e,y,y,r&&sa(Ha(e,y,y,0,0,o,s,b,o,C=[],d),x),o,x,d,s,r?C:x);break;default:Wa(w,y,y,y,[""],x,0,s,x)}}c=u=f=0,g=A=1,b=w="",d=a;break;case 58:d=1+ia(w),f=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==ha())continue;switch(w+=Ji(v),v*g){case 38:A=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(ia(w)-1)*A,A=1;break;case 64:45===va()&&(w+=_a(Aa())),p=va(),u=d=ia(b=w+=Da(ba())),v++;break;case 45:45===m&&2==ia(w)&&(g=0)}}return i}function Ha(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=aa(p),m=0,g=0,h=0;m<r;++m)for(var A=0,v=oa(e,d+1,d=Ki(g=a[m])),b=e;A<f;++A)(b=ea(g>0?p[A]+" "+v:ta(v,/&\f/g,p[A])))&&(l[h++]=b);return ma(e,t,n,0===o?Ea:s,l,c,u)}function Va(e,t,n){return ma(e,t,n,Ia,Ji(pa),oa(e,2,-2),0)}function Ya(e,t,n,r){return ma(e,t,n,Ma,oa(e,0,r),oa(e,r+1,-1),r)}var Za=function(e,t,n){for(var r=0,o=0;r=o,o=va(),38===r&&12===o&&(t[n]=1),!xa(o);)Aa();return Ca(e,da)},Ua=function(e,t){return wa(function(e,t){var n=-1,r=44;do{switch(xa(r)){case 0:38===r&&12===va()&&(t[n]=1),e[n]+=Za(da-1,t,n);break;case 2:e[n]+=_a(r);break;case 4:if(44===r){e[++n]=58===va()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ji(r)}}while(r=Aa());return e}(ya(e),t))},Ga=new WeakMap,qa=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)||Ga.get(n))&&!r){Ga.set(e,!0);for(var o=[],i=Ua(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]}}},Qa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Xa(e,t){switch(function(e,t){return 45^ra(e,0)?(((t<<2^ra(e,0))<<2^ra(e,1))<<2^ra(e,2))<<2^ra(e,3):0}(e,t)){case 5103:return Pa+"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 Pa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pa+e+ka+e+Ba+e+e;case 6828:case 4268:return Pa+e+Ba+e+e;case 6165:return Pa+e+Ba+"flex-"+e+e;case 5187:return Pa+e+ta(e,/(\w+).+(:[^]+)/,Pa+"box-$1$2"+Ba+"flex-$1$2")+e;case 5443:return Pa+e+Ba+"flex-item-"+ta(e,/flex-|-self/,"")+e;case 4675:return Pa+e+Ba+"flex-line-pack"+ta(e,/align-content|flex-|-self/,"")+e;case 5548:return Pa+e+Ba+ta(e,"shrink","negative")+e;case 5292:return Pa+e+Ba+ta(e,"basis","preferred-size")+e;case 6060:return Pa+"box-"+ta(e,"-grow","")+Pa+e+Ba+ta(e,"grow","positive")+e;case 4554:return Pa+ta(e,/([^-])(transform)/g,"$1"+Pa+"$2")+e;case 6187:return ta(ta(ta(e,/(zoom-|grab)/,Pa+"$1"),/(image-set)/,Pa+"$1"),e,"")+e;case 5495:case 3959:return ta(e,/(image-set\([^]*)/,Pa+"$1$`$1");case 4968:return ta(ta(e,/(.+:)(flex-)?(.*)/,Pa+"box-pack:$3"+Ba+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pa+e+e;case 4095:case 3583:case 4068:case 2532:return ta(e,/(.+)-inline(.+)/,Pa+"$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(ia(e)-1-t>6)switch(ra(e,t+1)){case 109:if(45!==ra(e,t+4))break;case 102:return ta(e,/(.+:)(.+)-([^]+)/,"$1"+Pa+"$2-$3$1"+ka+(108==ra(e,t+3)?"$3":"$2-$3"))+e;case 115:return~na(e,"stretch")?Xa(ta(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ra(e,t+1))break;case 6444:switch(ra(e,ia(e)-3-(~na(e,"!important")&&10))){case 107:return ta(e,":",":"+Pa)+e;case 101:return ta(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pa+(45===ra(e,14)?"inline-":"")+"box$3$1"+Pa+"$2$3$1"+Ba+"$2box$3")+e}break;case 5936:switch(ra(e,t+11)){case 114:return Pa+e+Ba+ta(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pa+e+Ba+ta(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pa+e+Ba+ta(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pa+e+Ba+e+e}return e}var Ka=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ma:e.return=Xa(e.value,e.length);break;case Na:return Ra([ga(e,{value:ta(e.value,"@","@"+Pa)})],r);case Ea: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 Ra([ga(e,{props:[ta(t,/:(read-\w+)/,":"+ka+"$1")]})],r);case"::placeholder":return Ra([ga(e,{props:[ta(t,/:(plac\w+)/,":"+Pa+"input-$1")]}),ga(e,{props:[ta(t,/:(plac\w+)/,":"+ka+"$1")]}),ga(e,{props:[ta(t,/:(plac\w+)/,Ba+"input-$1")]})],r)}return""}))}}];const Ja=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||Ka;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=[za,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[qa,Qa].concat(r,p),u=aa(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,Ra(Fa(e?e+"{"+t.styles+"}":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Xi({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 $a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const es=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 ts={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 ns=/[A-Z]|^ms/g,rs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,os=function(e){return 45===e.charCodeAt(1)},is=function(e){return null!=e&&"boolean"!=typeof e},as=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return os(e)?e:e.replace(ns,"-$&").toLowerCase()})),ss=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(rs,(function(e,t,n){return cs={name:t,styles:n,next:cs},t}))}return 1===ts[e]||os(e)||"number"!=typeof t||0===t?t:t+"px"};function ls(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 cs={name:n.name,styles:n.styles,next:cs},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cs={name:r.name,styles:r.styles,next:cs},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+=ls(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]+"}":is(a)&&(r+=as(i)+":"+ss(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=ls(e,t,a);switch(i){case"animation":case"animationName":r+=as(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)is(a[l])&&(r+=as(i)+":"+ss(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=cs,i=n(e);return cs=o,ls(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var cs,us=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var ds=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="";cs=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ls(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=ls(n,t,e[a]),r&&(o+=i[a]);us.lastIndex=0;for(var s,l="";null!==(s=us.exec(o));)l+="-"+s[1];return{name:es(o)+l,styles:o,next:cs}},ps=!!r.useInsertionEffect&&r.useInsertionEffect,fs=ps||function(e){return e()},ms=(ps||r.useLayoutEffect,{}.hasOwnProperty),gs=(0,r.createContext)("undefined"!=typeof HTMLElement?Ja({key:"css"}):null);gs.Provider;var hs=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(gs);return e(t,o,n)}))},As=(0,r.createContext)({});var vs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bs=function(e,t){var n={};for(var r in t)ms.call(t,r)&&(n[r]=t[r]);return n[vs]=e,n},Cs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;$a(t,n,r);fs((function(){return function(e,t,n){$a(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},xs=hs((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[vs],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=ds(a,void 0,(0,r.useContext)(As));s+=t.key+"-"+l.name;var c={};for(var u in e)ms.call(e,u)&&"css"!==u&&u!==vs&&(c[u]=e[u]);return c.ref=n,c.className=s,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Cs,{cache:t,serialized:l,isStringTag:"string"==typeof i}),(0,r.createElement)(i,c))}));s(63);var ys=function(e,t){var n=arguments;if(null==t||!ms.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=xs,i[1]=bs(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)};function ws(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ds(t)}var _s=s(493);Math.min,Math.max;const Os=["top","right","bottom","left"];Os.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Ss(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function js(e){return Ss(e).getComputedStyle(e)}Math.min,Math.max;const Ts=Math.round;function Ds(e){const t=js(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,a=Ts(n)!==o||Ts(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function Bs(e){return Ms(e)?(e.nodeName||"").toLowerCase():""}let ks;function Ps(){if(ks)return ks;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ks=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),ks):navigator.userAgent}function Is(e){return e instanceof Ss(e).HTMLElement}function Es(e){return e instanceof Ss(e).Element}function Ms(e){return e instanceof Ss(e).Node}function Ls(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ss(e).ShadowRoot||e instanceof ShadowRoot)}function Ns(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=js(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rs(){return/^((?!chrome|android).)*safari/i.test(Ps())}function zs(e){return["html","body","#document"].includes(Bs(e))}function Fs(e){return Es(e)?e:e.contextElement}const Ws={x:1,y:1};function Hs(e){const t=Fs(e);if(!Is(t))return Ws;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=Ds(t);let a=(i?Ts(n.width):n.width)/r,s=(i?Ts(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function Vs(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),s=Fs(e);let l=Ws;t&&(r?Es(r)&&(l=Hs(r)):l=Hs(e));const c=s?Ss(s):window,u=Rs()&&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=Ss(s),t=r&&Es(r)?Ss(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Hs(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=Ss(n).frameElement}}return{width:f,height:m,top:p,right:d+f,bottom:p+m,left:d,x:d,y:p}}function Ys(e){return((Ms(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zs(e){if("html"===Bs(e))return e;const t=e.assignedSlot||e.parentNode||Ls(e)&&e.host||Ys(e);return Ls(t)?t.host:t}function Us(e){const t=Zs(e);return zs(t)?t.ownerDocument.body:Is(t)&&Ns(t)?t:Us(t)}function Gs(e,t){var n;void 0===t&&(t=[]);const r=Us(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ss(r);return o?t.concat(i,i.visualViewport||[],Ns(r)?r:[]):t.concat(r,Gs(r))}const qs=r.useLayoutEffect;var Qs=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Xs=function(){};function Ks(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Js(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(Ks(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var $s=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===a(e)&&null!==e?[e]:[];var t},el=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,Qi({},h(e,Qs))},tl=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 nl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function rl(e){return nl(e)?window.pageYOffset:e.scrollTop}function ol(e,t){nl(e)?window.scrollTo(0,t):e.scrollTop=t}function il(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Xs,o=rl(e),i=t-o,a=10,s=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(s+=a,o,i,n);ol(e,l),s<n?window.requestAnimationFrame(t):r(e)}()}function al(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ol(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ol(e,Math.max(t.offsetTop-o,0))}function sl(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ll=!1,cl={get passive(){return ll=!0}},ul="undefined"!=typeof window?window:{};ul.addEventListener&&ul.removeEventListener&&(ul.addEventListener("p",Xs,cl),ul.removeEventListener("p",Xs,!1));var dl=ll;function pl(e){return null!=e}function fl(e,t,n){return e?t:n}var ml=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}),{})};function gl(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:nl(u=l)?window.innerHeight:u.clientHeight,v=rl(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&&il(l,O,j),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&y>=r)return i&&il(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&&ol(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(x>=m)return{placement:"top",maxHeight:t};if(w>=m&&!a)return i&&il(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&&il(l,S,j),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var hl=function(e){return"auto"===e?"bottom":e},Al=(0,r.createContext)(null),vl=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)(Al)||{}).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 qs((function(){var e=u.current;if(e){var t="fixed"===a,r=gl({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:Qi(Qi({},e),{},{placement:h||hl(i),maxHeight:p})})},bl=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Qi({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Cl=bl,xl=bl,yl=function(e){var t=e.children,n=e.innerProps;return ys("div",Do({},tl(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};yl.defaultProps={children:"No options"};var wl=function(e){var t=e.children,n=e.innerProps;return ys("div",Do({},tl(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};wl.defaultProps={children:"Loading..."};var _l,Ol=["size"];var Sl,jl,Tl={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Dl=function(e){var t=e.size,n=h(e,Ol);return ys("svg",Do({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Tl},n))},Bl=function(e){return ys(Dl,Do({size:20},e),ys("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"}))},kl=function(e){return ys(Dl,Do({size:20},e),ys("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"}))},Pl=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Qi({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Il=Pl,El=Pl,Ml=function(){var e=ws.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_"}}}(_l||(Sl=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],jl||(jl=Sl.slice(0)),_l=Object.freeze(Object.defineProperties(Sl,{raw:{value:Object.freeze(jl)}})))),Ll=function(e){var t=e.delay,n=e.offset;return ys("span",{css:ws({animation:"".concat(Ml," 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"},"","")})},Nl=function(e){var t=e.innerProps,n=e.isRtl;return ys("div",Do({},tl(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ys(Ll,{delay:0,offset:n}),ys(Ll,{delay:160,offset:!0}),ys(Ll,{delay:320,offset:!n}))};Nl.defaultProps={size:4};var Rl=["data"],zl=["innerRef","isDisabled","isHidden","inputClassName"],Fl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Wl={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Qi({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Fl)},Hl=function(e){return Qi({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Fl)},Vl=function(e){var t=e.children,n=e.innerProps;return ys("div",n,t)};var Yl={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ys("div",Do({},tl(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ys(Bl,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ys("div",Do({ref:o},tl(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 ys("div",Do({},tl(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ys(kl,null))},DownChevron:kl,CrossIcon:Bl,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 ys("div",Do({},tl(e,"group",{group:!0}),s),ys(i,Do({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),ys("div",null,t))},GroupHeading:function(e){var t=el(e);t.data;var n=h(t,Rl);return ys("div",Do({},tl(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ys("div",Do({},tl(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ys("span",Do({},t,tl(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=el(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=h(r,zl);return ys("div",Do({},tl(e,"input",{"input-container":!0}),{"data-value":n||""}),ys("input",Do({className:t({input:!0},s),ref:o,style:Hl(a),disabled:i},l)))},LoadingIndicator:Nl,Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ys("div",Do({},tl(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 ys("div",Do({},tl(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)(hl(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]);qs((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?[...Es(e)?Gs(e):e.contextElement?Gs(e.contextElement):[],...Gs(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})),Es(e)&&!s&&d.observe(e),Es(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let p=s?Vs(e):null;return s&&function t(){const r=Vs(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]);qs((function(){b()}),[b]);var C=(0,r.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==s||!h)return null;var x=ys("div",Do({ref:C},tl(Qi(Qi({},e),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return ys(Al.Provider,{value:f},t?(0,_s.createPortal)(x,t):x)},LoadingMessage:wl,NoOptionsMessage:yl,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 ys(l,{data:r,innerProps:Qi(Qi({},tl(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ys(c,{data:r,innerProps:Qi({},tl(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ys(u,{data:r,innerProps:Qi(Qi({},tl(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:Vl,MultiValueLabel:Vl,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ys("div",Do({role:"button"},n),t||ys(Bl,{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 ys("div",Do({},tl(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 ys("div",Do({},tl(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ys("div",Do({},tl(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ys("div",Do({},tl(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 ys("div",Do({},tl(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Zl=function(e){return Qi(Qi({},Yl),e.components)},Ul=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Gl(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=Gr(e);if(t){var o=Gr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ur(this,n)}}var ql=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ql(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||ql(r)&&ql(o)))return!1;var r,o;return!0}for(var Xl={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"},Kl=function(e){return ys("span",Do({css:Xl},e))},Jl={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:"",".")}},$l=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 Qi(Qi({},Jl),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=Qi({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=ys(r.Fragment,null,ys("span",{id:"aria-selection"},w),ys("span",{id:"aria-context"},j)),D="initial-input-focus"===(null==t?void 0:t.action);return ys(r.Fragment,null,ys(Kl,{id:c},D&&T),ys(Kl,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},a&&!D&&T))},ec=[{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źẑżžẓẕƶȥɀⱬꝣ"}],tc=new RegExp("["+ec.map((function(e){return e.letters})).join("")+"]","g"),nc={},rc=0;rc<ec.length;rc++)for(var oc=ec[rc],ic=0;ic<oc.letters.length;ic++)nc[oc.letters[ic]]=oc.base;var ac=function(e){return e.replace(tc,(function(e){return nc[e]}))},sc=function(e,t){void 0===t&&(t=Ql);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}(ac),lc=function(e){return e.replace(/^\s+|\s+$/g,"")},cc=function(e){return"".concat(e.label," ").concat(e.value)},uc=["innerRef"];function dc(e){var t=e.innerRef,n=h(e,uc),r=ml(n,"onExited","in","enter","exit","appear");return ys("input",Do({ref:t},r,{css:ws({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 pc=function(e){e.preventDefault(),e.stopPropagation()};var fc=["boxSizing","height","overflow","paddingRight","position"],mc={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function gc(e){e.preventDefault()}function hc(e){e.stopPropagation()}function Ac(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function vc(){return"ontouchstart"in window||navigator.maxTouchPoints}var bc=!("undefined"==typeof window||!window.document||!window.document.createElement),Cc=0,xc={capture:!1,passive:!1};var yc=function(){return document.activeElement&&document.activeElement.blur()},wc={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function _c(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&&pc(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=!!dl&&{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(bc){var t=document.body,n=t&&t.style;if(o&&fc.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Cc<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(mc).forEach((function(e){var t=mc[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&vc()&&(t.addEventListener("touchmove",gc,xc),e&&(e.addEventListener("touchstart",Ac,xc),e.addEventListener("touchmove",hc,xc))),Cc+=1}}),[o]),l=(0,r.useCallback)((function(e){if(bc){var t=document.body,n=t&&t.style;Cc=Math.max(Cc-1,0),o&&Cc<1&&fc.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&vc()&&(t.removeEventListener("touchmove",gc,xc),e&&(e.removeEventListener("touchstart",Ac,xc),e.removeEventListener("touchmove",hc,xc)))}}),[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 ys(r.Fragment,null,n&&ys("div",{onClick:yc,css:wc}),t((function(e){i(e),a(e)})))}var Oc={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Sc=function(e){var t=e.name,n=e.onFocus;return ys("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:Oc,value:"",onChange:function(){}})},jc={clearIndicator:El,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 Qi({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:Il,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 Qi({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 Qi({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 Qi(Qi({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Wl),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 Qi({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:xl,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return Qi((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 Qi({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 Qi({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 Qi({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 Qi({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:Cl,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return Qi({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 Qi({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 Qi({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 Qi({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 Tc,Dc={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}},Bc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:sl(),captureMenuScroll:!sl(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Qi({ignoreCase:!0,ignoreAccents:!0,stringify:cc,trim:!0,matchFrom:"any"},Tc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?lc(t):t,c=a?lc(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=sc(l),c=ac(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 kc(e,t,n,r){return{type:"option",data:t,isDisabled:Nc(e,t,n),isSelected:Rc(e,t,n),label:Mc(e,t),value:Lc(e,t),index:r}}function Pc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return kc(e,n,t,r)})).filter((function(t){return Ec(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=kc(e,n,t,r);return Ec(e,i)?i:void 0})).filter(pl)}function Ic(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 Ec(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Fc(e)||!i)&&zc(e,{label:a,value:s,data:o},r)}var Mc=function(e,t){return e.getOptionLabel(t)},Lc=function(e,t){return e.getOptionValue(t)};function Nc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Rc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Lc(e,t);return n.some((function(t){return Lc(e,t)===r}))}function zc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Fc=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Wc=1,Hc=function(e){Zr(n,e);var t=Gl(n);function n(e){var r;if(Fr(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=fl(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(fl(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=fl(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 Js.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Mc(r.props,e)},r.getOptionValue=function(e){return Lc(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=jc[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 Zl(r.props)},r.buildCategorizedOptions=function(){return Pc(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Ic(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Qi({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&&nl(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 Fc(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||++Wc),r.state.selectValue=$s(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 Hr(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&&al(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&&(al(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(Dc):Qi(Qi({},Dc),this.props.theme):Dc}},{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 Nc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Rc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return zc(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=Qi(Qi(Qi({"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,Do({},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(dc,Do({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Xs,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,Do({},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,Do({},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,Do({},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,Do({},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,Do({},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,Do({},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,Do({},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,Do({},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,Do({},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 I={minMenuHeight:v,maxMenuHeight:b,menuPlacement:x,menuPosition:y,menuShouldScrollIntoView:O},E=r.createElement(vl,Do({},d,I),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return r.createElement(i,Do({},d,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:s}),r.createElement(_c,{captureEnabled:m,onTopArrive:j,onBottomArrive:T,lockEnabled:_},(function(t){return r.createElement(a,Do({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:h,maxHeight:l,focusedOption:p}),D)})))}));return w||"fixed"===y?r.createElement(s,Do({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:x,menuPosition:y}),E):E}},{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(Sc,{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($l,Do({},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,Do({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,Do({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,Do({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,Do({},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=$s(c),m={};if(n&&(c!==n.value||l!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var g=u?function(e,t){return Ic(Pc(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:fl(p,f,f[0]||null),options:f,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(b=null),Qi(Qi(Qi({},m),v),{},{prevProps:e,ariaSelection:b,prevWasFocused:C})}}]),n}(r.Component);Hc.defaultProps=Bc;var Vc=(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,Ul),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,I=void 0!==m?m:O;return Qi(Qi({},A),{},{inputValue:k,menuIsOpen:P,onChange:j,onInputChange:T,onMenuClose:B,onMenuOpen:D,value:I})}(e);return r.createElement(Hc,Do({ref:t},n))}));const Yc=Vc;const Zc=Symbol("useLazyRef empty value");var Uc=setTimeout;const Gc=function(e){var t=function(e,t){var n=t.useCachedSetTimeout?Uc:setTimeout;return new Promise((function(t){n(t,e)}))}(e,{useCachedSetTimeout:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).useCachedSetTimeout});function n(e){return t.then((function(){return e}))}return n.then=function(){return t.then.apply(t,arguments)},n.catch=Promise.resolve().catch,n};var qc=s(7993),Qc=e=>({isFirstLoad:!0,options:[],hasMore:!0,isLoading:!1,additional:e.additional}),Xc=(e,t,n)=>e-t-10<n,Kc=(e,t)=>[...e,...t],Jc='[react-select-async-paginate] response of "loadOptions" should be an object with "options" prop, which contains array of options.',$c=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(Jc,"Received:",e),new Error(Jc);return!0},eu=e=>e+1,tu=(e,t=[])=>{const{defaultOptions:n,loadOptionsOnMenuOpen:o=!0,debounceTimeout:i=0,inputValue:a,menuIsOpen:s,filterOption:l=null,reduceOptions:c=Kc,shouldLoadMore:u=Xc}=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)(Zc);return t.current===Zc&&(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?Qc(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 Gc(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($c(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(eu)}),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(eu)),!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]||Qc(e);return{handleScrolledToBottom:A,shouldLoadMore:u,filterOption:l,isLoading:v.isLoading,isFirstLoad:v.isFirstLoad,options:v.options}},nu=(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{...tu({...e,inputValue:m,menuIsOpen:g},t),inputValue:m,menuIsOpen:g,onInputChange:h,onMenuClose:A,onMenuOpen:v}},ru=300;var ou,iu=(ou=Yl.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,ru)}),[c]);return(0,r.useEffect)((()=>(u(),()=>{a.current&&clearTimeout(a.current)})),[]),(0,_.jsx)(ou,{...e,innerRef:(0,qc.Z)(n,s)})}),au=e=>(0,r.useMemo)((()=>({MenuList:iu,...e})),[e]);var su=function(e){function t(t){const{components:n,selectRef:r,isLoading:o,cacheUniqs:i,...a}=t,s=nu(a,i),l=au(n),c="boolean"==typeof o?o:s.isLoading;return(0,_.jsx)(e,{...t,...s,isLoading:c,components:l,ref:r})}return t.defaultProps={selectRef:null,cacheUniqs:[],components:{}},t}(Yc);function lu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cu(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=cu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const uu=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=cu(e))&&(r&&(r+=" "),r+=t);return r},du="undefined"!=typeof window?r.default.useLayoutEffect:()=>{};let pu=new Map;function fu(e,t){if(e===t)return e;let n=pu.get(e);if(n)return n(t),t;let r=pu.get(t);return r?(r(e),e):t}function mu(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function gu(...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]=mu(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=fu(n,o):t[e]=void 0!==o?o:n:t[e]=uu(n,o)}}return t}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let hu=new Map,Au=new Set;function vu(){if("undefined"==typeof window)return;let e=t=>{let n=hu.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),hu.delete(t.target)),0===hu.size)){for(let e of Au)e();Au.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=hu.get(t.target);n||(n=new Set,hu.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?vu():document.addEventListener("DOMContentLoaded",vu));"undefined"!=typeof window&&window.visualViewport;new Map;function bu(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 Cu(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 xu(){return Cu(/^Mac/i)}function yu(e){return!(0!==e.mozInputSource||!e.isTrusted)||(bu(/Android/i)&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}new WeakMap;const wu=r.default.createContext(null);wu.displayName="PressResponderContext";new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);class _u{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 Ou(e){let t=(0,r.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,du((()=>{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 _u("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 Su(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=Ou(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 ju=null,Tu=new Set,Du=!1,Bu=!1,ku=!1;const Pu={Tab:!0,Escape:!0};function Iu(e,t){for(let n of Tu)n(e,t)}function Eu(e){Bu=!0,function(e){return!(e.metaKey||!xu()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(ju="keyboard",Iu("keyboard",e))}function Mu(e){ju="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Bu=!0,Iu("pointer",e))}function Lu(e){yu(e)&&(Bu=!0,ju="virtual")}function Nu(e){e.target!==window&&e.target!==document&&(Bu||ku||(ju="virtual",Iu("virtual",e)),Bu=!1,ku=!1)}function Ru(){Bu=!1,ku=!0}function zu(){if("undefined"==typeof window||Du)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Bu=!0,e.apply(this,arguments)},document.addEventListener("keydown",Eu,!0),document.addEventListener("keyup",Eu,!0),document.addEventListener("click",Lu,!0),window.addEventListener("focus",Nu,!0),window.addEventListener("blur",Ru,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Mu,!0),document.addEventListener("pointermove",Mu,!0),document.addEventListener("pointerup",Mu,!0)):(document.addEventListener("mousedown",Mu,!0),document.addEventListener("mousemove",Mu,!0),document.addEventListener("mouseup",Mu,!0)),Du=!0}function Fu(){return"pointer"!==ju}function Wu(e,t,n){zu(),(0,r.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Pu[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(Fu())};return Tu.add(t),()=>{Tu.delete(t)}}),t)}function Hu(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=Ou(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?zu():document.addEventListener("DOMContentLoaded",zu));const Vu=["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]"];Vu.join(":not([hidden]),");Vu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');Vu.join(':not([hidden]):not([tabindex="-1"]),');function Yu(e,t){return t.some((t=>t.contains(e)))}class Zu{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 Uu({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&&Yu(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 Zu;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){lu(this,"fastMap",new Map),this.root=new Uu({scopeRef:null}),this.fastMap.set(null,this.root)}}class Uu{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){lu(this,"children",[]),lu(this,"contain",!1),this.scopeRef=e.scopeRef}}new Zu;function Gu(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||Fu()}),[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]);Wu((e=>{i.current.isFocusVisible=e,u()}),[],{isTextInput:n});let{focusProps:p}=Su({isDisabled:o,onFocusChange:d}),{focusWithinProps:f}=Hu({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:i.current.isFocused&&l,focusProps:o?f:p}}var qu;!function(e){e.Standard="standard",e.Floating="floating"}(qu||(qu={}));var Qu=s(6259),Xu={};Xu.styleTagTransform=_n(),Xu.setAttributes=Cn(),Xu.insert=vn().bind(null,"head"),Xu.domAPI=hn(),Xu.insertStyleElement=yn();mn()(Qu.Z,Xu);const Ku=Qu.Z&&Qu.Z.locals?Qu.Z.locals:void 0;var Ju=["className","children"],$u=["className","children"],ed=["className"],td=["children","className"],nd=["className"],rd=["children"];function od(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 id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?od(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ad=function(e){var t=g((0,r.useState)(e.dataTestId||"object-selector-input"),1)[0],n=Gu({isTextInput:!0}),o=n.isFocusVisible,a=n.focusProps,s=w().localization.admin.base.formComponent,l=function(e){return Jt()(e,Ku.value)},c=(0,r.useCallback)((function(e){var t=e.className,n=e.children,r=h(e,Ju),o=Jt()(t,Ku.container);return(0,_.jsx)(Yl.SelectContainer,id(id({className:o},r),{},{children:n}))}),[]),u=(0,r.useCallback)((function(e){var t,n=e.className,r=e.children,o=h(e,$u),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=Jt()(n,Ku.control,o.isDisabled&&Ku.disabled,s&&Ku.disabledBackground);return(0,_.jsx)(Yl.Control,id(id({className:l},o),{},{children:r}))}),[]),d=(0,r.useCallback)((function(e){return e=id(id({},e),{},{getStyles:function(){return{}}}),(0,_.jsx)(Yl.Option,id(id({},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:Ku.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=Jt()(Ku.clearIndicator,!t&&Ku.disabled);return(0,_.jsx)(Yl.ClearIndicator,id(id({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,ed),r=Jt()(t,Ku.placeholder);return(0,_.jsx)(Yl.Placeholder,id({className:r},n))}),[]),A=(0,r.useCallback)((function(e){var t=e.children,n=e.className,r=h(e,td);return(0,_.jsx)(Yl.SingleValue,id(id({className:l(n)},r),{},{children:t}))}),[]),v=(0,r.useCallback)((function(e){var n=e.className,r=h(e,nd);return(0,_.jsx)(Yl.Input,id({className:l(n),"data-testid":t},r))}),[t]),b=(0,r.useCallback)((function(e){var t=e.children,n=h(e,rd),r=Jt()(n.className,Ku.valueContainer);return(0,_.jsx)(Yl.ValueContainer,id(id({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=Jt()(!s&&Ku.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===qu.Floating?i.Zindex.Dialog:i.Zindex.DropDown)}),[e.menuType]),y=Jt()(o&&Ku.focused,e.invalid&&Ku.invalid,e.isMulti&&e.value.length&&Ku.notEmpty);return(0,_.jsx)("div",{className:y,children:(0,r.createElement)(su,id(id({},e),{},{key:JSON.stringify(e.options),menuPortalTarget:e.menuType===qu.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 id(id({},e),{},{zIndex:x()})}}}))})},sd=s(3079),ld={};ld.styleTagTransform=_n(),ld.setAttributes=Cn(),ld.insert=vn().bind(null,"head"),ld.domAPI=hn(),ld.insertStyleElement=yn();mn()(sd.Z,ld);const cd=sd.Z&&sd.Z.locals?sd.Z.locals:void 0;var ud=["selectedObjects","statusText","maximumItems","placeholder","onChange","disabled","invalid","configurationHash","children","required","value"],dd=function(e){return e?JSON.parse(e.value):{}},pd=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:[]},fd=function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(JSON.stringify(t[n])!==e[n].value)return!0;return!1},md=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=e.value,b=h(e,ud),C=w().localization.admin.base.formComponent.objectSelector,x=g((0,r.useState)(1!==a),1)[0],y=g((0,r.useState)(pd(n,C.invalidItemName,m,x)),2),O=y[0],S=y[1],j=vo().executeCommand,T=(0,r.useRef)({pageIndex:0,searchTerm:""}),D=yo(a,O.length,C),B=(0,r.useCallback)((function(e){S([e]),null==l||l([dd(e)])}),[l]),k=(0,r.useCallback)((function(e){S(e),null==l||l(function(e){return e.map(dd)}(e))}),[l]),P=(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()!==T.current.searchTerm.toLowerCase()&&(T.current.pageIndex=0,T.current.searchTerm=t),e.next=3,j(b,"LoadObjects",{pageIndex:T.current.pageIndex,searchTerm:t});case 3:return r=e.sent,T.current.pageIndex++,e.abrupt("return",{options:pd(null==r?void 0:r.objects,C.invalidItemName,m,x),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)}}(),[j,C.invalidItemName,b,m,x]),I=_o(b.name,b.fieldValues).loadSelectedOptions,E=(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=pd(n,C.invalidItemName,m,x),S(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[x,I,C.invalidItemName,m]);(0,r.useEffect)((function(){A&&0!==A.length?(function(e){return!e||0===e.length}(O)||fd(O,A))&&E(A):fd(O,[])&&S([])}),[A]),(0,r.useEffect)((function(){T.current.pageIndex=0}),[d]);return(0,_.jsxs)("div",{className:cd.container,children:[(0,_.jsx)(i.FormItemWrapper,{label:b.label,labelIcon:Ar(b.tooltip),labelIconTooltip:b.tooltip,tooltipAsHtml:b.tooltipAsHtml,markAsRequired:m,statusText:null!=o?o:D,explanationText:b.explanationText,explanationTextAsHtml:b.explanationTextAsHtml,invalid:u,validationMessage:b.validationMessage,disabled:c,inactiveMessage:b.inactiveMessage,children:(0,_.jsx)(ad,{isDisabled:c,isMulti:x,invalid:u,value:O,placeholder:s,loadOptions:P,onClear:function(){null==l||l([])},onChange:x?k:B,menuType:b.menuType,dataTestId:null===(t=b.label?b.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 gd(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}md.displayName="ObjectSelectorBase";var hd=function(e){var t=Do({},(To(e),e));return(0,_.jsx)(md,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))};hd.displayName="ObjectSelectorFormComponent";var Ad=s(1885),vd={};vd.styleTagTransform=_n(),vd.setAttributes=Cn(),vd.insert=vn().bind(null,"head"),vd.domAPI=hn(),vd.insertStyleElement=yn();mn()(Ad.Z,vd);const bd=Ad.Z&&Ad.Z.locals?Ad.Z.locals:void 0;var Cd=["requiredLength","requireLowercase","requireUppercase","requiredUniqueChars","requireDigit","requireNonAlphanumeric","ignorePasswordPolicy"],xd=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,Cd),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:bd.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:Ar(p.tooltip),labelIconTooltip:p.tooltip,explanationText:(n="",o&&(n+=1===o?v.admin.base.formComponent.password.passwordLengthOne:xo(v.admin.base.formComponent.password.passwordLength,o)),l&&(n+=1===l?v.admin.base.formComponent.password.uniqueCharacterCountOne:xo(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:bd.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 yd(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 wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _d=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:"",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:Ar(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,"aria-label":e.ariaLabel,children:e.options&&e.options.map((function(e,t){return(0,_.jsx)(i.RadioButton,wd(wd({dataTestId:e.label.toLocaleLowerCase().replace(/\s/g,"-")},e),{},{children:e.label}),t)}))})},Od=["label","placeholder","configuration","value","onChange","invalid","validationMessage","disabled","required","inactiveMessage","tooltip","explanationText","guid"],Sd=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,Od),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:Ar(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})})},jd=function(e){var t=e.inputRef,n=e.froalaEditorConfigurator,o=w().localization,i=(0,r.useContext)(Mo).fieldInfo,a=or(i).assetPanelEnabled,s=g((0,r.useState)(!1),2),l=s[0],c=s[1],u="insertAssetIcon",d="insertAsset",p=o.admin.base.formComponent.richTextEditor.insertImage.buttonLabel,f=o.admin.base.formComponent.richTextEditor.insertImage.disabledButtonTooltip,m=o.admin.base.formComponent.richTextEditor.insertImage.actionButtonLabel,h=o.admin.base.formComponent.richTextEditor.insertImage.headline;null==n||n.defineIcon(u,{SVG_KEY:"insertImage"}),null==n||n.registerCommand(d,{title:p,icon:u,undo:!1,focus:!0,showOnMobile:!0,refreshAfterCallback:!1,callback:function(){c(!0)}}),a?null==n||n.enableButton(d,p):null==n||n.disableButton(d,f);return(0,_.jsx)(_.Fragment,{children:l&&(0,_.jsx)(rm,{visible:l,fieldInfo:i,onSelectContentItems:function(e){e.forEach((function(e){var n;e.isImage&&(null==t||null===(n=t.current)||void 0===n||n.insertImage(e.url,{alt:e.description||e.name,title:e.name}))}))},headline:h,confirmationButtonLabel:m,onPanelClosed:function(){c(!1)},imagesOnly:!0})})},Td=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:Ar(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,placeholder:e.watermarkText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,dataTestId:e.name})},Dd=s(4382),Bd={};Bd.styleTagTransform=_n(),Bd.setAttributes=Cn(),Bd.insert=vn().bind(null,"head"),Bd.domAPI=hn(),Bd.insertStyleElement=yn();mn()(Dd.Z,Bd);const kd=Dd.Z&&Dd.Z.locals?Dd.Z.locals:void 0;var Pd=["name","label","invalid","validationMessage","disabled","required","explanationText","inactiveMessage","tooltip","value","valueAsHtml"],Id=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,Pd),m=Jt()(kd.label);return(0,_.jsx)(i.FormItemWrapper,{label:u?n:void 0,markAsRequired:s,disabled:a,labelIcon:Ar(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})})},Ed=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:Ar(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,dataTestId:e.name,renderActions:n?function(){return(0,_.jsx)(Im,{textToCopy:e.value,disabled:e.disabled,dataTestId:e.name+"_copybutton"})}:void 0,placeholder:e.watermarkText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml})},Md=s(7791),Ld={};Ld.styleTagTransform=_n(),Ld.setAttributes=Cn(),Ld.insert=vn().bind(null,"head"),Ld.domAPI=hn(),Ld.insertStyleElement=yn();mn()(Md.Z,Ld);const Nd=Md.Z&&Md.Z.locals?Md.Z.locals:void 0;var Rd=["onChange","ruleDefinitions"];function zd(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 Fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zd(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wd=function(e,t,n){return{name:"",caption:"",visible:!0,minWidth:e,maxWidth:t,contentType:n,searchable:!1,sortable:!1}},Hd=Wd(3,3,i.ColumnContentType.Action),Vd=Wd(8,50,i.ColumnContentType.Text),Yd="calc(".concat(i.Dimensions.GridUnit," * ",70,")"),Zd="CreateValidationRule",Ud=function(e){var t=e.onChange,n=e.ruleDefinitions,o=h(e,Rd),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=F(),B=D.setRedirectToDialog,k=D.messages,P=D.removeDialogMessage;(0,r.useEffect)((function(){B(u)}),[B,u]);var I=j().executeCommand,E=(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,I(Zd,{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&&Fd(Fd({},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)},z=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=Fd({},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:E.length>0?(0,_.jsx)(i.Table,{isHeaderVisible:!1,columns:[Vd,Hd],rows:E,onRowClick:function(e){return function(e){var t=s.find((function(t){return t.identifier===E[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 Fd(Fd({},e),{},{value:null==t?void 0:t.ruleValues[n]})})),i=Fd(Fd({},r),{},{componentsProperties:o});A(i),x(t),d(!0)}}(e)}}):(0,_.jsx)("div",{className:Nd.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:Yd,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:Nd.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)(sp,{ref:M,onSubmit:z,items:m.componentsProperties})]})})]})},Gd=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:Ar(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,dataTestId:e.name,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,language:e.language})},qd=r.default.createContext({dataChanged:!1,getDataChanged:function(){return!1},setDataChanged:function(){},resetAllDataChanged:function(){},setResetAllDataChangedCallback:function(){},getNewId:function(){return""}});qd.displayName="EditableObjectStatusContext";var Qd=function(){return r.default.useContext(qd)},Xd=function(){return r.default.useContext(qd)},Kd=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)(Vn,[]),m=Xd(),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)(qd.Provider,{value:C,children:n})}));Kd.displayName="EditableObjectStatusProvider";var Jd=function(e){return void 0!==e.title},$d=function(e){for(var t=null,n=[],r=[],o=0;o<e.length;o++){var i=e[o];Jd(i)?(0!==o&&r.push({category:t,components:n}),t=i,n=[]):n.push(i)}return r.push({category:t,components:n}),r},ep=s(2167),tp={};tp.styleTagTransform=_n(),tp.setAttributes=Cn(),tp.insert=vn().bind(null,"head"),tp.domAPI=hn(),tp.insertStyleElement=yn();mn()(ep.Z,tp);const np=ep.Z&&ep.Z.locals?ep.Z.locals:void 0;var rp=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:np.formCategory,children:[(0,_.jsx)("div",{className:np.title,children:t.title}),t.tooltip&&(0,_.jsx)(i.Tooltip,{tooltipText:t.tooltip,children:(0,_.jsx)("div",{className:np.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:np.formComponents,children:n})]}):(0,_.jsx)("div",{children:n})};function op(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 ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?op(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ap=function(e){return!Object.values(e).filter((function(e){return e.length})).length},sp=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)($d(n)),2),b=v[0],C=v[1],x=Xd(),y=x.getDataChanged,w=x.setDataChanged,O=x.getNewId,S=(0,r.useRef)(O()),j=V().clearMessages;(0,r.useEffect)((function(){var e=$d(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({}),I=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}))})),I(e)}),[b]);var E=g((0,r.useState)({}),2),M=E[0],L=E[1],N=Q((function(e){null==d||d(e)}),X),R=function(e,t,n){var r=ip(ip({},M),{},u({},e,[]));if(ap(r)){var o={values:P.current,changedField:{name:e,hasDependencies:t}};t&&n?N(o):null==d||d(o)}},z=Q((function(e){null==l||l(e)}),X);(0,r.useImperativeHandle)(t,(function(){return{dataChanged:y(S.current),submit:function(e){ap(M)&&(j(),z.cancel(),null==c||c({values:B},e))},resetDataChanged:function(){w(S.current,!1)}}}),[j,B,y,M,c,w,z]);var F=(0,r.useCallback)((function(e){e.preventDefault(),ap(M)&&(j(),null==c||c({values:B}))}),[B,c,M,j]),W=function(e,t,n,r){var o=ip(ip({},P.current),{},u({},t,e));I(o),w(S.current,!0);var i={values:o,changedField:{name:t,hasDependencies:n}};n&&r?z(i):null==l||l(i)};return(0,_.jsxs)("form",{onSubmit:F,"data-testid":m,children:[(0,_.jsx)(mo.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)(rp,{category:e.category,children:(0,_.jsx)(i.Stack,{spacing:i.Spacing.XL,children:e.components.map((function(e){return(0,_.jsx)(Ro,ip(ip({},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(ip(ip({},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]})}));sp.displayName="Form";var lp=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}},cp=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}},up=function(e,t){return{isValid:!(null==t||("string"==typeof t||t instanceof String)&&""===t.trim()||dp(t)),errorMessage:e.errorMessage}},dp=function(e){var t=e[Symbol.iterator],n="function"==typeof t&&t.call(e).next();return n&&void 0===n.value&&n.done};function pp(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 fp(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 fp(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 fp(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 mp=function(e,t){if(!e.invalidAssets||0===e.invalidAssets.length)return{isValid:!0,errorMessage:e.errorMessage};var n,r=!0,o=pp(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}},gp=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}},hp=function(e,t){var n=e.invalidItems,r=e.errorMessage;return{isValid:!Ap(t,n),errorMessage:r}},Ap=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)}))}))},vp=function(e,t){return e.maxItems>0&&(null==t?void 0:t.length)>e.maxItems?{isValid:!1,errorMessage:xo(e.errorMessage,t.length,e.maxItems)}:{isValid:!0,errorMessage:e.errorMessage}},bp=function(){return{isValid:!0,errorMessage:null}},Cp=function(e,t){return{isValid:null==t||0===t.length||e.useCustomEmailRegExpString||(e.allowMultipleAddresses?wp(t):yp(t)),errorMessage:e.errorMessage}},xp=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 yp(e){return xp.test(e)}function wp(e){return e.split(";").every((function(e){return yp(e)}))}var _p=function(e,t){return{isValid:Sp(t),errorMessage:e.errorMessage}},Op=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function Sp(e){return Op.test(e)}var jp=function(e,t){return{isValid:t<=e.maxValue,errorMessage:e.errorMessage}},Tp=function(e,t){return{isValid:t>=e.minValue,errorMessage:e.errorMessage}},Dp=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}},Bp=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}},kp=function(e,t){return null===t?{isValid:!0,errorMessage:null}:{isValid:t>Pp(new Date((new Date).getTime()-e.offset)),errorMessage:e.errorMessage}},Pp=function(e){return new Date(e.getTime()-6e4*e.getTimezoneOffset())},Ip=function(e,t){var n=j().executeCommand,r=vo().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}},Ep=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 Mp(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 Lp(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 Lp(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 Lp(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 Np(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=Mp(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 Rp=function(e){var t=j().executeCommand,n=vo().executeCommand,o=(0,r.useCallback)(function(){var r=p(v().mark((function r(o,i,a,s){return v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e){r.next=2;break}return r.abrupt("return",n(e,o,i,a,s));case 2:return r.abrupt("return",t(o,i,a,s));case 3:case"end":return r.stop()}}),r)})));return function(e,t,n,o){return r.apply(this,arguments)}}(),[n,t,e]);return{executeCommand:o}},zp=r.default.createContext({refetchDataInTemplates:function(){},refetchAll:!1});zp.displayName="RefetchAllContext";var Fp=function(){return r.default.useContext(zp)},Wp=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)(zp.Provider,{value:{refetchAll:o,refetchDataInTemplates:function(){i(!0)}},children:t})},Hp="/logon",Vp="returnUrl",Yp=function(e){var t=U();return t.pathname=t.pathname.replace(/\/$/,"")+Hp,e&&t.searchParams.append(Vp,e),t.href},Zp=function(e){return new URL(e).searchParams.get(Vp)},Up={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."},Gp=function(e,t){t?t(e):console.error(e.message)},qp=function(e,t){Gp({statusCode:0,message:"".concat(x.admin.base.fetch.networkError," '").concat(e,"'")},t)},Qp=function(e,t){var n=Up[e],r=n?"".concat(e," - ").concat(n):"".concat(e,".");Gp({statusCode:e,message:"".concat(x.admin.base.fetch.unexpectedError," ").concat(r)},t)};function Xp(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 Kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xp(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jp=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:Kp({Accept:"application/json"},r),body:n,signal:null==a?void 0:a.signal}).catch((function(e){qp(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,$p(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)}}(),$p=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=Yp(window.location.pathname),window.location.replace(o),r&&r(),e.abrupt("break",9);case 7:return Qp(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 ef(e,t){for(var n=e.length;n--;)if(t(e[n],n,e))return n;return-1}var tf,nf={refreshToken:(tf=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 tf.apply(this,arguments)}),getXsrfHeader:function(){return{}}},rf=r.default.createContext(nf);rf.displayName="AntiForgeryContext";var of=function(){var e=r.default.useContext(rf);if(void 0===e)throw new Error("useAntiForgery must be used within a AntiForgeryProvider");return e},af=function(e){var t=e.children,n=g((0,r.useState)(sf("xsrf-header")),1)[0],o=g((0,r.useState)(sf("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,Jp("/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)(rf.Provider,{value:{refreshToken:l,getXsrfHeader:s},children:t})},sf=function(e){var t=lf(e),n="";return t&&(n=t.content,t.content=""),n},lf=function(e){return document.head.querySelector("meta[name='".concat(e,"']"))},cf=r.default.createContext({isCustomRightSidebarDisplayed:!1,setIsCustomRightSidebarDisplayed:function(){}});cf.displayName="CustomRightSidebarContext";var uf=function(){return r.default.useContext(cf)},df=function(e){var t=e.children,n=g((0,r.useState)(!1),2),o=n[0],i=n[1];return(0,_.jsx)(cf.Provider,{value:{isCustomRightSidebarDisplayed:o,setIsCustomRightSidebarDisplayed:i},children:t})},pf={isNested:!1,setActions:function(){throw new Error("setActions must be defined in provider")}},ff=r.default.createContext(pf);ff.displayName="NestedPageProviderContext";var mf=function(){var e=r.default.useContext(ff);if(void 0===e)throw new Error("useNestedPage must be used within a NestedPageProvider");return e},gf=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)(ff.Provider,{value:{isNested:n,actions:i,setActions:a},children:t})};function hf(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 Af(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 Af(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 Af(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 vf(){var e=w().localization,t=(0,o.useNavigate)(),r=Fp().refetchDataInTemplates,i=q(),a=V().addNotificationMessage,s=of().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=hf(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,Jp("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 bf(e,t,n){var o=j(),i=o.registerCommand,a=o.executeCommand,s=vf(),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 Cf=["calloutConfiguration","onActionButtonStatusChanged"];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 yf(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 wf=function(e){var t,n,a,s,l=e.calloutConfiguration,c=e.onActionButtonStatusChanged,u=h(e,Cf),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,I();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},I=(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]),E=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)}))),E);var L;return(0,_.jsx)(i.Callout,yf(yf({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})}))};wf.displayName="Callout";var _f=s(4032),Of={};Of.styleTagTransform=_n(),Of.setAttributes=Cn(),Of.insert=vn().bind(null,"head"),Of.domAPI=hn(),Of.insertStyleElement=yn();mn()(_f.Z,Of);const Sf=_f.Z&&_f.Z.locals?_f.Z.locals:void 0;var jf,Tf=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:Sf.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})})})}));Tf.displayName="SearchInput",function(e){e.Published="published",e.Unpublished="unpublished",e.VersionNotPublished="versionNotPublished",e.Archived="archived"}(jf||(jf={}));var Df=["status"];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=function(e){var t=e.status,n=h(e,Df);switch(t){case jf.Published:return(0,_.jsx)(Mf,kf({},n));case jf.Unpublished:return(0,_.jsx)(Lf,kf({},n));case jf.VersionNotPublished:return(0,_.jsx)(Nf,kf({},n));case jf.Archived:return(0,_.jsx)(Rf,kf({},n));default:return(0,_.jsx)(_.Fragment,{})}},If=function(e,t,n){return n?e:t},Ef=function(e){var t=e.iconColor,n=e.labelColor,r=e.content,o=e.showLabel,a=e.disabled,s=e.showTooltip,l=e.size,c=r.label,u=r.iconName,d=r.tooltipText,p=r.tooltipAppendTo;return(0,_.jsx)(i.SimpleStatusDefault,{content:{label:o&&c?c:"",iconName:u,tooltipText:s?d:"",tooltipAppendTo:p},iconColor:If(i.Colors.IconDisabled,t,a),labelColor:If(i.Colors.TextDisabled,n,a),size:l})},Mf=function(e){var t=w().localization;return(0,_.jsx)(Ef,kf(kf({},e),{},{content:{label:t.admin.content.pages.published.title,tooltipText:t.admin.content.pages.published.tooltip,iconName:"xp-check-circle-inverted",tooltipAppendTo:e.tooltipAppendTo},iconColor:i.Colors.SuccessIcon,labelColor:i.Colors.SuccessText}))},Lf=function(e){var t=w().localization;return(0,_.jsx)(Ef,kf(kf({},e),{},{content:{label:t.admin.content.pages.unpublished.title,tooltipText:e.isPage?t.admin.content.pages.unpublished.tooltip:t.admin.content.contentItems.unpublished.tooltip,iconName:"xp-pause",tooltipAppendTo:e.tooltipAppendTo},iconColor:i.Colors.WarningIcon,labelColor:i.Colors.WarningText}))},Nf=function(e){var t=w().localization;return(0,_.jsx)(Ef,kf(kf({},e),{},{content:{label:t.admin.content.pages.versionNotPublished.title,tooltipText:t.admin.content.pages.versionNotPublished.tooltip,iconName:"xp-two-rectangles-stacked",tooltipAppendTo:e.tooltipAppendTo},iconColor:i.Colors.WarningIcon,labelColor:i.Colors.WarningText}))},Rf=function(e){var t=w().localization;return(0,_.jsx)(Ef,kf(kf({},e),{},{content:{label:t.admin.content.pages.archived.title,tooltipText:e.isPage?t.admin.content.pages.archived.tooltip:t.admin.content.contentItems.archived.tooltip,iconName:"xp-box",tooltipAppendTo:e.tooltipAppendTo},iconColor:i.Colors.TextLowEmphasis,labelColor:i.Colors.TextLowEmphasis}))};Pf.displayName="PageStatus";var zf=function(e){var t=e.contentItems,n=e.selectedItems,r=e.handleRowSelect,o=function(e){var t;if(null!==(t=e.previewData)&&void 0!==t&&t.isImage)return e.previewData.assetUrl};return(0,_.jsx)(i.Grid,{cols:5,rowGap:i.Spacing.L,columnGap:i.Spacing.L,children:t.map((function(e){return(0,_.jsx)(i.ContentItemTileSelectable,{previewIcon:(t=e,t.previewData?t.previewData.isImage?t.icon:"xp-file":t.icon?t.icon:"xp-placeholder"),isSelected:n.some((function(t){return t.identifier===e.identifier})),disabled:!1,contentType:e.contentType,onChange:function(t){return r(e.identifier,t)},url:o(e),nameLeadingNode:(0,_.jsx)(Pf,{status:e.workflowStatus,showLabel:!1,showTooltip:!0,isPage:!1,size:i.SimpleStatusSize.XS}),name:e.name},e.identifier);var t}))})};zf.displayName="ContentItemPanelGrid";var Ff=s(4054),Wf={};Wf.styleTagTransform=_n(),Wf.setAttributes=Cn(),Wf.insert=vn().bind(null,"head"),Wf.domAPI=hn(),Wf.insertStyleElement=yn();mn()(Ff.Z,Wf);const Hf=Ff.Z&&Ff.Z.locals?Ff.Z.locals:void 0;var Vf,Yf=function(e){var t,n=e.contentItems,r=e.selectedItems,o=e.handleRowSelect,a=w().localization,s=[{caption:a.admin.base.contentItemPanel.name,maxWidth:50,minWidth:8,name:"ContentItemInfo",searchable:!1,contentType:i.ColumnContentType.Text,sortable:!1,visible:!0},{caption:a.admin.base.contentItemPanel.contentType,maxWidth:50,minWidth:8,name:"ContentItemType",searchable:!1,contentType:i.ColumnContentType.Text,sortable:!1,visible:!0},{caption:a.admin.base.contentItemPanel.workflowStep,maxWidth:50,minWidth:8,name:"ContentItemStatus",searchable:!1,contentType:i.ColumnContentType.Component,sortable:!1,visible:!0},{caption:a.admin.base.contentItemPanel.lastModified,maxWidth:50,minWidth:8,name:"ContentItemLastModified",searchable:!1,contentType:i.ColumnContentType.Text,sortable:!1,visible:!0}],l=function(e){return(0,_.jsx)("div",{className:Hf.centeredCellContent,children:(0,_.jsx)(Pf,{status:e,showLabel:!0,isPage:!1,showTooltip:!0})})};return(0,_.jsxs)(_.Fragment,{children:[n&&n.length>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.TableHeader,{columns:s,selectable:!0}),(t=n,t.map((function(e){return{identifier:e.identifier,disabled:!1,cells:[{name:"@kentico/xperience-admin-components/PageInfo",type:i.CellType.NamedComponent,componentProps:{name:e.name,iconName:e.icon?e.icon:"xp-placeholder"}},{type:i.CellType.String,value:e.contentType},{type:i.CellType.Component,component:function(){return l(e.workflowStatus)}},{type:i.CellType.String,value:e.lastModified}]}}))).map((function(e,t){return(0,_.jsx)(i.TableRowComponent,{cells:e.cells,columns:s,disabled:e.disabled,selectable:!0,selected:r.some((function(t){return t.identifier===e.identifier})),onRowSelect:function(t){return o(e.identifier,t)},onRowClick:function(){return o(e.identifier,!r.some((function(t){return t.identifier===e.identifier})))}},t)}))]}),void 0===n&&(0,_.jsx)(i.SkeletonBody,{columns:s,selectable:!0,rowCount:10})]})};Yf.displayName="ContentItemPanelList",function(e){e.List="list",e.Grid="grid"}(Vf||(Vf={}));var Zf=s(8226),Uf={};Uf.styleTagTransform=_n(),Uf.setAttributes=Cn(),Uf.insert=vn().bind(null,"head"),Uf.domAPI=hn(),Uf.insertStyleElement=yn();mn()(Zf.Z,Uf);const Gf=Zf.Z&&Zf.Z.locals?Zf.Z.locals:void 0;function qf(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 Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xf,Kf,Jf=function(e){var t=e.selectedContentItems,n=e.fieldInfo,o=e.visible,a=e.isGridView,s=e.singleSelect,l=e.filterType,c=e.onSelectedContentItemsChange,u=w().localization,d=g((0,r.useState)([]),2),f=d[0],m=d[1],h=g((0,r.useState)(void 0),2),A=h[0],b=h[1],C=g((0,r.useState)(a?Vf.Grid:Vf.List),2),x=C[0],y=C[1],O=g((0,r.useState)(0),2),S=O[0],T=O[1],D=g((0,r.useState)(0),2),B=D[0],k=D[1],P=g((0,r.useState)(""),2),I=P[0],E=P[1],M=g((0,r.useState)({currentPage:1,pageSize:40,searchTerm:""}),2),N=M[0],R=M[1],z=B%40>0?Math.trunc(B/40)+1:B/40,F=vo().executeCommand,W=j().executeCommand,H=(0,r.useCallback)(p(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="LoadContentItemPanelItems",!n){e.next=5;break}return e.next=4,F(n,t,{currentPage:N.currentPage-1,pageSize:N.pageSize,searchTerm:N.searchTerm,filterType:l});case 4:case 7:return e.abrupt("return",e.sent);case 5:return e.next=7,W(t,{currentPage:N.currentPage-1,pageSize:N.pageSize,searchTerm:N.searchTerm,filterType:l});case 8:case"end":return e.stop()}}),e)}))),[n,N,l,F,W]);function V(){return Y.apply(this,arguments)}function Y(){return Y=p(v().mark((function e(){var t,n,r,o=arguments;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]&&o[0],e.next=3,H();case 3:(n=e.sent)&&n.contentItems&&(b(n.contentItems),k(n.totalCount),t&&T(null!==(r=n.totalCount)&&void 0!==r?r:0));case 5:case"end":return e.stop()}}),e)}))),Y.apply(this,arguments)}(0,r.useEffect)((function(){o&&(m(t),V(!0))}),[o]),(0,r.useEffect)((function(){o&&V()}),[o,N]),(0,r.useEffect)((function(){o&&y(a?Vf.Grid:Vf.List)}),[o,a]);var Z=[{id:Vf.Grid,icon:"xp-l-grid-2-2"},{id:Vf.List,icon:"xp-list"}],U=function(e){m(e),c(e)},G=function(e,t){if(t){var n=null==A?void 0:A.find((function(t){return t.identifier===e}));n&&U([].concat(L(f),[n]))}else U(f.filter((function(t){return t.identifier!==e})))},q=function(e,t){if(t){var n=null==A?void 0:A.find((function(t){return t.identifier===e}));n&&U([n])}else U([])},Q=f.length?"".concat(f.length," ").concat(u.admin.base.contentItemPanel.itemsSelected):"".concat(B," ").concat(u.admin.base.contentItemPanel.items);return(0,_.jsx)(i.Row,{wrap:i.RowWrap.NoWrap,className:Gf.row,children:(0,_.jsxs)(i.Stack,{className:Gf.stack,children:[0!==S&&(0,_.jsx)(Tf,{value:I,placeholder:u.admin.base.listing.search.placeholder,onSubmit:function(){R((function(e){return Qf(Qf({},e),{},{currentPage:1,searchTerm:I})}))},onChange:function(e){return E(e)}}),(0,_.jsxs)(i.Row,{className:Gf.viewConfigRow,children:[Q,0!==S&&(0,_.jsx)(i.IconToggleButtons,{items:Z,onChange:function(e){return y(e)},selectedItemId:x})]}),x===Vf.Grid&&A&&(0,_.jsx)(zf,{contentItems:A,selectedItems:f,handleRowSelect:s?q:G}),x===Vf.List&&(0,_.jsx)(Yf,{contentItems:A,selectedItems:f,handleRowSelect:s?q:G}),z>1&&(0,_.jsx)("div",{className:Gf.pagination,children:(0,_.jsx)("div",{className:Gf.paginationWrapper,children:(0,_.jsx)(i.Pagination,{selectedPage:N.currentPage,totalPages:z,onPageChange:function(e){R((function(t){return Qf(Qf({},t),{},{currentPage:e})}))}})})}),A&&0===A.length&&(0,_.jsx)(i.Box,{className:Gf.noContentItems,children:u.admin.base.contentItemPanel.noContentItems})]})})};!function(e){e.Error="error",e.Invalid="invalid",e.Success="success"}(Xf||(Xf={})),function(e){e.AllContentTypes="allContentTypes",e.AssetsOnly="assetsOnly",e.ImagesOnly="imagesOnly"}(Kf||(Kf={}));var $f=s(8408),em={};em.styleTagTransform=_n(),em.setAttributes=Cn(),em.insert=vn().bind(null,"head"),em.domAPI=hn(),em.insertStyleElement=yn();mn()($f.Z,em);const tm=$f.Z&&$f.Z.locals?$f.Z.locals:void 0;var nm;!function(e){e.ContentHub="contenthub",e.MediaLibrary="medialibrary"}(nm||(nm={}));var rm=function(e){var t,n=e.visible,o=e.headline,a=e.fieldInfo,s=e.imagesOnly,l=e.confirmationButtonLabel,c=e.onSelectContentItems,u=e.onPanelClosed,d=document.getElementById("sidePanelPlaceholder"),f=w().localization.admin.content.assetSelector.assetPanel,m=g((0,r.useState)([]),2),h=m[0],A=m[1],b=g((0,r.useState)(!1),2),C=b[0],x=b[1],y=[{label:f.toggles.contentHub,id:nm.ContentHub},{label:f.toggles.mediaLibrary,id:nm.MediaLibrary}],O=g((0,r.useState)(null===(t=y[0])||void 0===t?void 0:t.id),2),S=O[0],j=O[1],T=qn(a).resetData,D=or(a),B=D.imageExtensions,k=D.assetPanelEnabled,P=(0,r.useCallback)(p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:k&&x(!0);case 1:case"end":return e.stop()}}),e)}))),[x,k]);(0,r.useEffect)((function(){P()}),[P]);var I=function(){A([]),T(),null==u||u()};return(0,_.jsx)(_h,{container:d,children:(0,_.jsxs)(i.SidePanel,{headline:o,size:i.SidePanelSize.Full,isVisible:n,onCloseClick:u,dataTestId:"multi-source-asset-panel",footer:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.Button,{label:f.cancelButtonLabel,onClick:u,dataTestId:"cancel-action"}),(0,_.jsx)(i.Button,{label:l,color:i.ButtonColor.Primary,disabled:!h.length,onClick:function(){c(h),I()},dataTestId:"confirm-action"})]}),children:[C&&(0,_.jsx)("div",{className:tm.toggleButtons,children:(0,_.jsx)(i.NameToggleButtons,{items:y,selectedItemId:S,onChange:function(e){A([]),j(e)}})}),S===nm.ContentHub?(0,_.jsx)(Jf,{selectedContentItems:[],fieldInfo:a,visible:n,isGridView:!0,singleSelect:!0,filterType:s?Kf.ImagesOnly:Kf.AssetsOnly,onSelectedContentItemsChange:function(e){A(e.map((function(e){return{name:e.name,url:e.previewData.assetUrl,isImage:e.previewData.isImage}})))}}):(0,_.jsx)(dr,{visible:n,fieldInfo:a,allowedExtensions:s?B:void 0,onSelectedAssetsChange:function(e){A(e.map((function(e){return{name:e.name,url:e.urlPath.path,isImage:e.isImage,description:e.description}})))}})]})})},om=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})},im=s(6961),am={};am.styleTagTransform=_n(),am.setAttributes=Cn(),am.insert=vn().bind(null,"head"),am.domAPI=hn(),am.insertStyleElement=yn();mn()(im.Z,am);const sm=im.Z&&im.Z.locals?im.Z.locals:void 0;var lm=function(e){var t=e.onCancellation,n=e.onConfirmation,r=e.showDialog,o=e.texts;return(0,_.jsx)(_.Fragment,{children:r&&(0,_.jsx)(om,{headline:o.headline,confirmationButtonLabel:o.confirmLabel,isConfirmationButtonDestructive:!0,onCancellation:t,onConfirmation:n,dataTestId:"prompt-dialog",overlayClassName:sm.overlay,children:(0,_.jsx)(i.Box,{children:o.message})})})},cm=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)(lm,{texts:o,onCancellation:function(){s(!1)},onConfirmation:function(){t(),s(!1),u(!0)},showDialog:a})},um=r.default.createContext({});um.displayName="PromptDialogContext";var dm=function(){var e=w().localization,t=r.default.useContext(um);return t.setTexts({headline:e.admin.base.promptDialog.title,confirmLabel:e.admin.base.promptDialog.confirm,message:e.admin.base.promptDialog.message}),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 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.children,n=Qd(),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)(Vn,[]),b=(0,r.useCallback)((function(){i(),m.current()}),[i]);return(0,_.jsxs)(um.Provider,{value:{setPromptEnabled:c,setPromptSuppressed:A,setOnConfirmation:function(e){m.current=e},setTexts:function(e){h.current=fm(fm({},h.current),e)},getNewId:v},children:[t,(0,_.jsx)(cm,{enableDialog:(o||l)&&!d,onConfirmation:b,texts:h.current})]})},gm=["action"];function hm(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 Am(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hm(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vm=function(e){var t,n,o=e.action,a=h(e,gm),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(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),a.onBeforeExecuteCommand&&a.onBeforeExecuteCommand(o),e.next=4,s(o.parameter);case 4:d.current&&u(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=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=7;break;case 5:return e.next=7,b();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=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,b();case 2:A(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(lm,{showDialog:m,onConfirmation:x,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,Am(Am({},a),{},{onClick:C,inProgress:c,label:o.label,disabled:o.disabled,title:o.title,icon:o.icon,destructive:o.destructive}))]})};vm.displayName="ActionButton";var bm=["href"];function Cm(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 xm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cm(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ym=r.default.forwardRef((function(e,t){var n=e.href,r=h(e,bm),a=(0,o.useNavigate)(),s=(0,o.useHref)(n);return(0,_.jsx)(i.LinkButton,xm(xm({anchorRef:t},r),{},{href:s,onClick:function(e){r.target||(e.preventDefault(),a(n))}}))}));ym.displayName="AppLinkButton";var wm=["action"];function _m(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 Om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_m(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sm=function(e){var t=e.action,n=h(e,wm);return(0,_.jsx)(ym,Om(Om({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 jm(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 Tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jm(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Sm.displayName="ActionLinkButton";var Dm=function(e){var t=Do({},(To(e),e));return(0,_.jsx)(i.Button,Tm(Tm({},t),{},{size:i.ButtonSize.S,color:i.ButtonColor.Secondary}))};Dm.displayName="TextAreaActionButton";var Bm=s(2083),km={};km.styleTagTransform=_n(),km.setAttributes=Cn(),km.insert=vn().bind(null,"head"),km.domAPI=hn(),km.insertStyleElement=yn();mn()(Bm.Z,km);const Pm=Bm.Z&&Bm.Z.locals?Bm.Z.locals:void 0;var Im=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=Jt()(Pm.statusWrapper,l&&Pm.isVisible),A=Jt()(Pm.buttonWrapper,!l&&Pm.isVisible);return(0,_.jsxs)("div",{className:Pm.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)(Dm,{label:a.admin.base.textArea.copyButtonLabel,icon:"xp-doc-copy",onClick:m,disabled:n||l,dataTestId:o})})]})};function Em(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 Mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Em(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Im.displayName="TextAreaCopyButton";var Lm=function(e){var t=I("".concat(e.componentName,"CardComponent"));return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(gh,{}),children:t&&(0,_.jsx)(t,Mm({},e))})})},Nm=s(6083),Rm={};Rm.styleTagTransform=_n(),Rm.setAttributes=Cn(),Rm.insert=vn().bind(null,"head"),Rm.domAPI=hn(),Rm.insertStyleElement=yn();mn()(Nm.Z,Rm);const zm=Nm.Z&&Nm.Z.locals?Nm.Z.locals:void 0;function Fm(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 Wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fm(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hm=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)(Sm,{action:e,color:i.ButtonColor.Secondary}):(0,_.jsx)(vm,{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:zm.overviewCardSection,children:(0,_.jsx)(Lm,Wm({},e),t)},t)}))})}));Hm.displayName="OverviewCard";var Vm=s(3397),Ym={};Ym.styleTagTransform=_n(),Ym.setAttributes=Cn(),Ym.insert=vn().bind(null,"head"),Ym.domAPI=hn(),Ym.insertStyleElement=yn();mn()(Vm.Z,Ym);const Zm=Vm.Z&&Vm.Z.locals?Vm.Z.locals:void 0;function Um(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 Gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qm=r.default.forwardRef((function(e,t){var n=e.cards;return(0,_.jsx)(i.Row,{ref:t,spacing:i.Spacing.XL,className:Zm.overviewCardGroup,wrap:i.RowWrap.NoWrap,children:n.map((function(e,t){return(0,_.jsx)(i.Column,{children:(0,_.jsx)(Hm,Gm({},e))},t)}))})}));qm.displayName="OverviewCardGroup";var Qm=r.default.createContext({routes:[],visibleRoutes:[],navigation:{headline:"",items:[],isTemporary:!1,isSignificant:!1},breadcrumbs:{show:!0,isSignificant:!1},preventRefetch:!1,refetchAll:!1});Qm.displayName="TemplatePropertiesContext";var Xm,Km=function(e){var t=e.properties,n=e.children;return(0,_.jsx)(Qm.Provider,{value:t,children:n})};!function(e){e.MainContent="mainContent",e.Dialog="dialog",e.SidePanel="sidePanel"}(Xm||(Xm={}));var Jm=r.default.createContext({breadcrumbs:[],pop:function(){},push:function(){},refreshItem:function(){},setStatusNode:function(){},statusNode:null});Jm.displayName="BreadcrumbsContext";var $m,eg=function(){return r.default.useContext(Jm)},tg=function(e){var t,n=e.children,o=vf(),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})};tg.displayName="CommandProvider",function(e){e.NoPreference="noPreference",e.Prevent="prevent",e.Force="force"}($m||($m={}));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}function rg(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}var og=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)(wh,{title:s,text:l,dataTestId:"templateLoaderErrorPane",children:c&&(0,_.jsx)(i.Button,{label:u,color:i.ButtonColor.Primary,size:i.ButtonSize.L,onClick:d})})},ig=function(e){var t=e.templateName,n=e.refetchAll,i=I("".concat(t,"Template")),a=q(),s=g((0,r.useState)(a),2),l=s[0],c=s[1],u=g((0,r.useState)($m.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=of().getXsrfHeader,_=b!==x&&x.includes(b)&&Z(e)===G(b),O=t===$m.Force||_&&t!==$m.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,Jp("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?$m.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=eg(),j=S.push,T=S.pop;return(0,r.useEffect)((function(){return f(null!=A&&A.preventRefetch?$m.Prevent:$m.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)(Qr,{fallback:function(){return(0,_.jsx)(og,{})},dependencies:[a],children:[(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(bh,{title:O}),children:!b&&l===a&&(i&&A&&h&&(0,_.jsx)(Km,{properties:A,children:(0,_.jsx)(tg,{children:(0,_.jsx)(i,rg({},A))})})||(0,_.jsx)(bh,{title:O}))}),b&&(0,_.jsx)(og,{error:b})]})},ag=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)}},sg=["label","iconName","onClick","dataTestId","path"];function lg(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 cg=function(e){var t=e.label,n=e.iconName,r=e.onClick,o=e.dataTestId,a=e.path,s=h(e,sg),l=ag(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?lg(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lg(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))},ug=s(301),dg={};dg.styleTagTransform=_n(),dg.setAttributes=Cn(),dg.insert=vn().bind(null,"head"),dg.domAPI=hn(),dg.insertStyleElement=yn();mn()(ug.Z,dg);const pg=ug.Z&&ug.Z.locals?ug.Z.locals:void 0;var fg=function(){var e=(0,o.useNavigate)(),t=(0,r.useContext)(Qm);return(0,_.jsx)("div",{"data-testid":"navigation-side-menu",className:pg.sideMenuWrapper,children:(0,_.jsx)(i.SideMenu,{children:t.navigation.items.map((function(t,n){var r;return(0,_.jsx)(cg,{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)}))})})},mg={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")}},gg=r.default.createContext(mg);gg.displayName="TemplateSidePanelContext";var hg=function(){var e=r.default.useContext(gg);if(void 0===e)throw new Error("useTemplateSidePanel must be used within a TemplateSidePanelProvider");return e},Ag=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=mf(),j=S.isNested,T=S.actions;(0,r.useEffect)((function(){j&&T&&O(T)}),[j,T]);var D=F(),B=D.setRedirectToDialog,k=D.addDialogMessage,P=D.canProcessMessageType,I=D.messages,E=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)(gg.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:I,addDialogMessage:k,removeDialogMessage:E,canProcessMessageType:P,actionInProgress:s,setActionInProgress:l},children:t})},vg={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")}},bg=r.default.createContext(vg);bg.displayName="TemplateDialogContext";var Cg=function(){var e=r.default.useContext(bg);if(void 0===e)throw new Error("useTemplateDialog must be used within a TemplateDialogProvider");return e},xg=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),I=P[0],E=P[1],M=g((0,r.useState)({submitAction:{label:""}}),2),L=M[0],N=M[1],R=mf(),z=R.isNested,W=R.actions;(0,r.useEffect)((function(){z&&W&&N(W)}),[z,W]);var H=F(),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)(bg.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:I,setMaxHeight:E,dialogHandlers:L,messages:U,addDialogMessage:Y,removeDialogMessage:G,canProcessMessageType:Z,isFullscreen:s,setIsFullscreen:l,actionInProgress:u,setActionInProgress:d},children:t})};function yg(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 wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yg(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _g=function(e){var t=e.children,n=e.parentPageUrl,a=Cg(),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})},Og=function(e){return(0,_.jsx)(gf,{children:(0,_.jsx)(xg,{children:(0,_.jsx)(tg,{children:(0,_.jsx)(_g,wg({},e))})})})},Sg=s(3099),jg={};jg.styleTagTransform=_n(),jg.setAttributes=Cn(),jg.insert=vn().bind(null,"head"),jg.domAPI=hn(),jg.insertStyleElement=yn();mn()(Sg.Z,jg);const Tg=Sg.Z&&Sg.Z.locals?Sg.Z.locals:void 0;var Dg=function(e){var t=uf().isCustomRightSidebarDisplayed;return(0,_.jsxs)(i.Row,{wrap:i.RowWrap.NoWrap,className:Tg.row,children:[(0,_.jsx)(i.Column,{children:(0,_.jsx)("div",{className:e.sidebarContent?Tg.scrollable:void 0,children:e.children})}),(e.sidebarContent||!e.sidebarContent&&!t)&&(0,_.jsx)(i.Column,{width:13,children:e.sidebarContent||(0,_.jsx)(_.Fragment,{})})]})},Bg=s(9994),kg={};kg.styleTagTransform=_n(),kg.setAttributes=Cn(),kg.insert=vn().bind(null,"head"),kg.domAPI=hn(),kg.insertStyleElement=yn();mn()(Bg.Z,kg);const Pg=Bg.Z&&Bg.Z.locals?Bg.Z.locals:void 0;var Ig="GetFormItems",Eg="ValidateComponents",Mg=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=zg(),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(Ig,{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(Eg,{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)(_h,{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:Pg.headerText,children:null==A?void 0:A.headerText}),(0,_.jsx)(sp,{ref:o,name:u,items:s,onSubmit:O,onValidChange:function(e){if(e.changedField.hasDependencies){var t=Wg(e.values);C(t)}},dataTestId:"properties-form"})]})})},Lg={propertiesDialogData:null,setPropertiesDialogData:function(){throw new Error("setPropertiesDialogData must be defined in provider")}},Ng=r.default.createContext(Lg);Ng.displayName="PropertiesDialogContext";var Rg,zg=function(){var e=r.default.useContext(Ng);if(void 0===e)throw new Error("usePropertiesDialog must be used within a PropertiesDialogProvider");return e},Fg=function(e){var t=e.children,n=g((0,r.useState)(null),2),o=n[0],i=n[1];return(0,_.jsx)(Ng.Provider,{value:{propertiesDialogData:o,setPropertiesDialogData:i},children:t})};!function(e){e.Widget="widget",e.Section="section",e.PageTemplate="pageTemplate",e.ConditionType="conditionType"}(Rg||(Rg={}));var Wg=function(e){return Object.entries(e).reduce((function(e,t){var n=g(t,2),r=n[0],o=n[1];return e[Hg(r)]=o,e}),{})},Hg=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("")},Vg={LoadData:"LoadData"},Yg=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=bf(Vg.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)(Dg,{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)(qm,{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)(wf,{calloutConfiguration:e,onActionButtonStatusChanged:A},t)}))})})]})]}),(0,_.jsx)(Rh,{})]})},Zg=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 bf("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(Vg.LoadData);case 4:i(!1);case 5:case"end":return e.stop()}}),e)}))),t),(0,_.jsx)(_.Fragment,{})};function Ug(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 Gg=function(e){return(0,_.jsx)(co,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ug(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))},qg=function(e){var t=e.items;return(0,_.jsx)(sp,{items:t})},Qg=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}))})},Xg=s(2777),Kg={};Kg.styleTagTransform=_n(),Kg.setAttributes=Cn(),Kg.insert=vn().bind(null,"head"),Kg.domAPI=hn(),Kg.insertStyleElement=yn();mn()(Xg.Z,Kg);const Jg=Xg.Z&&Xg.Z.locals?Xg.Z.locals:void 0;function $g(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 eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$g(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var th=function(e){var t=e.tags;return(0,_.jsx)(_.Fragment,{children:t&&t.length>0&&(0,_.jsx)("div",{className:Jg.tags,children:t.map((function(e,t){return(0,r.createElement)(i.Tag,eh(eh({dataTestId:"tag",background:(n=e.color,{color:i.Colors[n]})},e),{},{key:t}));var n}))})})},nh=s(1487),rh={};rh.styleTagTransform=_n(),rh.setAttributes=Cn(),rh.insert=vn().bind(null,"head"),rh.domAPI=hn(),rh.insertStyleElement=yn();mn()(nh.Z,rh);const oh=nh.Z&&nh.Z.locals?nh.Z.locals:void 0;var ih=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:oh.listOfItems,children:n.map((function(e,t){return(0,_.jsxs)("li",{className:oh.item,children:[e.text&&(0,_.jsx)("span",{className:oh.preText,children:e.text}),e.link&&(0,_.jsx)(o.Link,{className:oh.link,to:e.link.url,children:e.link.text})]},t)}))})]})},ah=function(e){var t=e.label,n=e.iconName;return(0,_.jsx)(i.SimpleStatusSuccess,{content:{label:t,iconName:n}})},sh=function(e){var t=new RegExp("[^/]*$"),n=e.parameter.match(t);return n&&n[0]?"button-"+n[0].toString().toLowerCase():"button"},lh=s(2439),ch={};ch.styleTagTransform=_n(),ch.setAttributes=Cn(),ch.insert=vn().bind(null,"head"),ch.domAPI=hn(),ch.insertStyleElement=yn();mn()(lh.Z,ch);const uh=lh.Z&&lh.Z.locals?lh.Z.locals:void 0;var dh=function(e){var n=e.actions,r=e.dataTestId;return(0,_.jsx)("div",{className:uh.actions,"data-testid":r,children:null==n?void 0:n.map((function(e,n){return(0,_.jsx)("div",{className:uh.actionButton,children:e.type===t.Link?(0,_.jsx)(Sm,{action:e,color:i.ButtonColor.Primary,dataTestId:sh(e)}):(0,_.jsx)(vm,{action:e,color:i.ButtonColor.Primary,dataTestId:sh(e)})},n)}))})},ph=s(8949),fh={};fh.styleTagTransform=_n(),fh.setAttributes=Cn(),fh.insert=vn().bind(null,"head"),fh.domAPI=hn(),fh.insertStyleElement=yn();mn()(ph.Z,fh);const mh=ph.Z&&ph.Z.locals?ph.Z.locals:void 0;var gh=function(){return(0,_.jsx)("div",{className:mh.loaderWrapper,children:(0,_.jsx)("div",{className:mh.loader})})},hh=s(1943),Ah={};Ah.styleTagTransform=_n(),Ah.setAttributes=Cn(),Ah.insert=vn().bind(null,"head"),Ah.domAPI=hn(),Ah.insertStyleElement=yn();mn()(hh.Z,Ah);const vh=hh.Z&&hh.Z.locals?hh.Z.locals:void 0;var bh=function(e){var t=e.title;return(0,_.jsx)("div",{className:vh.loaderWrapper,children:(0,_.jsxs)("div",{className:vh.content,children:[t&&(0,_.jsx)("div",{className:vh.title,children:t}),(0,_.jsx)("div",{className:vh.loader,children:(0,_.jsx)("div",{className:vh.loaderBubble})})]})})},Ch=s(2310),xh={};xh.styleTagTransform=_n(),xh.setAttributes=Cn(),xh.insert=vn().bind(null,"head"),xh.domAPI=hn(),xh.insertStyleElement=yn();mn()(Ch.Z,xh);const yh=Ch.Z&&Ch.Z.locals?Ch.Z.locals:void 0;var wh=function(e){var t=e.title,n=e.text,r=e.children,o=e.dataTestId;return(0,_.jsxs)("div",{className:yh.messagePane,"data-testid":o,children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,spacingBottom:i.Spacing.L,children:t}),n&&(0,_.jsx)("div",{className:yh.subheadline,children:n}),r&&(0,_.jsx)("div",{className:yh.children,children:r})]})},_h=function(e){var t=e.children,n=e.container,r=e.key;return n?_s.default.createPortal(t,n,r):(0,_.jsx)(_.Fragment,{children:t})};function Oh(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 Sh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oh(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jh=function(e){var t=(0,o.useNavigate)(),n=ag(e.path,!1).isActive;return(0,_.jsx)(i.ApplicationTile,Sh(Sh({},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 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 Dh(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}var Bh=function(e){var t=I("".concat(e.clientComponentName,"EditTemplateActionComponent"));return(0,_.jsx)("div",{children:t&&(0,_.jsx)(t,Dh({},e))})};Bh.displayName="EditTemplateActionComponentLoader";var kh=s(5280),Ph={};Ph.styleTagTransform=_n(),Ph.setAttributes=Cn(),Ph.insert=vn().bind(null,"head"),Ph.domAPI=hn(),Ph.insertStyleElement=yn();mn()(kh.Z,Ph);const Ih=kh.Z&&kh.Z.locals?kh.Z.locals:void 0;function Eh(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 Mh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eh(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lh=function(e){var t=e.children,n=e.parentPageUrl,a=hg(),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)(_h,{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:Ih.footerContainer,children:[(0,_.jsx)("div",{className:Ih.additionalActions,children:c.additionalActions&&c.additionalActions.map((function(e,t){return(0,r.createElement)(Bh,Mh(Mh({},e),{},{key:t}))}))}),(0,_.jsx)(i.Button,{label:c.submitAction.label,title:c.submitAction.tooltipText,color:i.ButtonColor.Primary,onClick:c.submitAction.onClick,disabled:c.submitAction.disabled,dataTestId:"submit-form-button",inProgress:g})]}),className:Ih.sidePanel,children:(0,_.jsx)("div",{style:{minWidth:d,maxWidth:p,width:f},className:Ih.contentWrapper,children:t})})})},Nh=function(e){return(0,_.jsx)(gf,{children:(0,_.jsx)(Ag,{children:(0,_.jsx)(tg,{children:(0,_.jsx)(Lh,Mh({},e))})})})},Rh=function(e){var t=e.children,n=(0,r.useContext)(Qm),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===Xm.Dialog&&(0,_.jsx)(o.Route,{path:t,element:(0,_.jsx)(Og,{parentPageUrl:"..",children:(0,_.jsx)(ig,{templateName:e.templateName})})})||e.pageLocation===Xm.SidePanel&&(0,_.jsx)(o.Route,{path:t,element:(0,_.jsx)(Nh,{parentPageUrl:"..",children:(0,_.jsx)(ig,{templateName:e.templateName})})})||(0,_.jsx)(o.Route,{path:t,element:(0,_.jsx)(ig,{templateName:e.templateName})})},e.path)})),(0,_.jsx)(o.Route,{path:"*",element:(0,_.jsx)(wh,{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)}))})]})},zh="kxp.avatar.gradient",Fh=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=of().getXsrfHeader,b=localStorage.getItem(zh),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(zh,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,Jp("/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 Wh(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?Wh(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Fh.displayName="Avatar";var Vh,Yh,Zh=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(Hh(Hh({},e),{},{applications:i}))})),n};!function(e){e.List="list",e.Tiles="tiles"}(Vh||(Vh={})),function(e){e.Default="Default",e.Activated="Activated"}(Yh||(Yh={}));var Uh=s(9849),Gh={};Gh.styleTagTransform=_n(),Gh.setAttributes=Cn(),Gh.insert=vn().bind(null,"head"),Gh.domAPI=hn(),Gh.insertStyleElement=yn();mn()(Uh.Z,Gh);const qh=Uh.Z&&Uh.Z.locals?Uh.Z.locals:void 0;function Qh(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 Xh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qh(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kh=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=Gu(),u=c.isFocusVisible,d=c.focusProps,p=Jt()(qh.row,n===Yh.Activated&&qh.activated,u&&qh.focused);return(0,_.jsx)("li",{className:qh.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,Xh(Xh({className:p,to:r.path,onClick:l},d),{},{children:[(0,_.jsx)("div",{className:qh.icon,children:(0,_.jsx)(i.Icon,{name:r.icon})}),(0,_.jsx)("div",{className:qh.label,ref:e,children:r.name})]}))}})})}));Kh.displayName="ApplicationListItem";var Jh=s(9137),$h={};$h.styleTagTransform=_n(),$h.setAttributes=Cn(),$h.insert=vn().bind(null,"head"),$h.domAPI=hn(),$h.insertStyleElement=yn();mn()(Jh.Z,$h);const eA=Jh.Z&&Jh.Z.locals?Jh.Z.locals:void 0;function tA(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 nA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rA=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=Jt()(eA.header,l&&eA.collapsible),m=Jt()(eA.list,c===Vh.List?eA.listView:eA.tilesView),h=Jt()(eA.categoryTitle,s&&eA.withToggle),A=Jt()(eA.scrollableContent,c===Vh.List&&eA.listView),v=function(e){0===e.button&&n&&a(n)};return(0,_.jsxs)("div",{ref:t,children:[(0,_.jsxs)("div",nA(nA({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:eA.icon,children:(0,_.jsx)(i.Icon,{name:d?"xp-chevron-down":"xp-chevron-up"})}),s&&s()]})),!d&&(0,_.jsx)("div",{className:s&&eA.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===Vh.List?(0,_.jsx)(Kh,{state:e.path===o?Yh.Activated:Yh.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)}))})})})]})}));rA.displayName="ApplicationListGroup";var oA=s(1424),iA={};iA.styleTagTransform=_n(),iA.setAttributes=Cn(),iA.insert=vn().bind(null,"head"),iA.domAPI=hn(),iA.insertStyleElement=yn();mn()(oA.Z,iA);const aA=oA.Z&&oA.Z.locals?oA.Z.locals:void 0;var sA="kxp.applicationList.view",lA=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(sA)||Vh.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:Vh.List,icon:"xp-list",tooltip:j.admin.base.app.applicationList.list,tooltipPlacement:i.TooltipPlacement.Top},{id:Vh.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?Zh(n,b):[])}),[b,n]);var D=Jt()(aA.container,o&&aA.visible,l),B=Jt()(aA.scrollableContent,h===Vh.List&&aA.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?aA.overlay:"",children:(0,_.jsx)("div",{ref:t,className:D,children:o&&(0,_.jsxs)("div",{className:aA.content,children:[(0,_.jsx)("div",{className:aA.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:aA.scrollable,children:(0,_.jsx)("div",{className:B,children:O.length?O.map((function(e,t){return(0,_.jsx)(rA,{category:e,applicationPath:a,view:h,handleClick:d},t)})):(0,_.jsx)("span",{className:aA.noItems,children:j.admin.base.app.applicationList.noApplicationsFound})})}):(0,_.jsx)(rA,{category:o,applicationPath:a,view:h,handleClick:d,renderToggleButtons:function(){return(0,_.jsx)(i.IconToggleButtons,{items:T,onChange:function(e){A(e),localStorage.setItem(sA,e)},selectedItemId:h})}})]})})})}));lA.displayName="ApplicationList";var cA=s(1850),uA={};uA.styleTagTransform=_n(),uA.setAttributes=Cn(),uA.insert=vn().bind(null,"head"),uA.domAPI=hn(),uA.insertStyleElement=yn();mn()(cA.Z,uA);const dA=cA.Z&&cA.Z.locals?cA.Z.locals:void 0;var pA=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];er({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?Zh(n,l):[])}),[l,n]),(0,r.useEffect)((function(){A(j?l?p:[]:n)}),[j,l,p,n]),(0,_.jsxs)("div",{ref:O,className:dA.container,children:[(0,_.jsx)("div",{className:dA.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:dA.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)(rA,{category:e,applicationPath:C,view:Vh.List,handleClick:a,collapsible:!j},t)})),j&&l&&!p.length&&(0,_.jsx)("span",{className:dA.noItems,children:v.admin.base.app.applicationList.noApplicationsFound})]})}));pA.displayName="ApplicationListMobile";var fA=s(9808),mA={};mA.styleTagTransform=_n(),mA.setAttributes=Cn(),mA.insert=vn().bind(null,"head"),mA.domAPI=hn(),mA.insertStyleElement=yn();mn()(fA.Z,mA);const gA=fA.Z&&fA.Z.locals?fA.Z.locals:void 0;function hA(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 AA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vA=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)(),I=P.addMessage,E=P.clearMessages,M=g((0,r.useState)(!1),2),L=M[0],N=M[1],R=g((0,r.useState)(!1),2),z=R[0],F=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";er({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)(Qm).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;I({message:l,variant:i.SnackbarItemVariant.Error,messageAsHtml:!0,onClose:function(){localStorage.removeItem(U),localStorage.setItem(Z,n.toString()),N(!1)}})}}}),[L,N,I,l,te]),(0,r.useEffect)((function(){if(z){var e=te(),t=localStorage.getItem(U);if(e&&"true"===t)F(!1);else{localStorage.setItem(U,"true");var n=(new Date).getTime()+864e5;I({message:l,variant:i.SnackbarItemVariant.Warning,messageAsHtml:!0,onClose:function(){localStorage.removeItem(U),localStorage.setItem(Y,n.toString()),F(!1)}})}}}),[z,F,I,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&&(E(),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)&&F(!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))&&F(!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=Jt()(gA.sideBar,f&&gA.rollout,w&&gA.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:gA.upper,ref:B,children:(0,_.jsxs)("ul",{children:[(0,_.jsx)("li",{className:gA.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:gA.bottom,children:(0,_.jsxs)("ul",{children:[(0,_.jsx)("li",{"data-testid":"account-panel",ref:k,children:(0,_.jsx)(Fh,{userProfile:K,menuPlacement:i.DropDownPlacement.Right,menuOpen:H,setMenuOpen:V,renderTrigger:function(e,t,n){return(0,_.jsx)(i.AvatarButton,AA(AA({},n),{},{ref:e,onClick:t}))}})}),!1]})})]}),(0,_.jsx)(lA,{ref:S,overlayRef:j,categories:n,selectedCategory:f,applicationPath:C,handleClick:function(e){v(e),m(void 0)},className:w?gA.scrollableApplicationList:"",onOutsideClick:J})]})}));vA.displayName="ApplicationMenu";var bA=r.default.forwardRef((function(e,t){var n=e.containerRef,o=e.onCollapsedToMinWidthChange,a=eg(),s=a.breadcrumbs,l=a.statusNode,c=(0,r.useMemo)((function(){return s.filter((function(e){return e.text}))}),[s]);return(0,_.jsx)(i.Breadcrumbs,{ref:t,containerRef:n,breadcrumbs:c,status:l,onCollapsedToMinWidthChange:o})}));bA.displayName="Breadcrumbs";var CA=s(8798),xA={};xA.styleTagTransform=_n(),xA.setAttributes=Cn(),xA.insert=vn().bind(null,"head"),xA.domAPI=hn(),xA.insertStyleElement=yn();mn()(CA.Z,xA);const yA=CA.Z&&CA.Z.locals?CA.Z.locals:void 0;function wA(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 _A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var OA=function(e){var t=g((0,r.useState)(!1),2),n=t[0],o=t[1];return(0,_.jsx)(i.DropDownActionMenu,_A(_A({},e),{},{open:n,onToggle:o,children:e.renderMenu(o)}))},SA=(0,i.createSelectGroup)(),jA="site",TA=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:jA,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:_A({},a)}],p=g((0,r.useState)(u({},jA,t)),2),f=p[0],m=p[1];return(0,_.jsx)("div",{className:yA.siteSelector,"data-testid":"SiteSelector",children:(0,_.jsx)(SA,{selects:d,paperClassName:yA.paper,renderSelect:function(e,t){return(0,_.jsx)(OA,{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(_A(_A({},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)}})})},DA=s(8402),BA={};BA.styleTagTransform=_n(),BA.setAttributes=Cn(),BA.insert=vn().bind(null,"head"),BA.domAPI=hn(),BA.insertStyleElement=yn();mn()(DA.Z,BA);const kA=DA.Z&&DA.Z.locals?DA.Z.locals:void 0;function PA(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?PA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var EA=function(){var e=(0,r.useContext)(Qm).siteSelectorProperties,t=g((0,r.useState)(0),2),n=t[0],o=t[1],i=(0,r.useRef)(null),a=(0,r.useCallback)((function(e){var t;o(e&&(null==i||null===(t=i.current)||void 0===t?void 0:t.scrollWidth)||0)}),[o,i]);return(0,_.jsxs)("header",{className:kA.statusBar,"data-testid":"Header",children:[(0,_.jsxs)("div",{ref:i,className:kA.left,style:{minWidth:n},children:[(0,_.jsx)("div",{className:kA.siteSelector,children:(0,_.jsx)(TA,IA({},e))}),(0,_.jsx)(bA,{containerRef:i,onCollapsedToMinWidthChange:a})]}),(0,_.jsx)("div",{className:kA.right,children:(0,_.jsx)("div",{id:"applicationHeader"})})]})};EA.displayName="StatusBar";var MA=s(3603),LA={};LA.styleTagTransform=_n(),LA.setAttributes=Cn(),LA.insert=vn().bind(null,"head"),LA.domAPI=hn(),LA.insertStyleElement=yn();mn()(MA.Z,LA);const NA=MA.Z&&MA.Z.locals?MA.Z.locals:void 0;var RA=function(e){var t=e.categories,n=e.showError,r=e.showWarning,o=e.expiringLicenseMessage,i=e.affectedLicenseHashes;return(0,_.jsxs)("div",{className:NA.main,children:[(0,_.jsx)(vA,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:i}),(0,_.jsxs)("div",{className:NA.content,children:[(0,_.jsx)(EA,{}),(0,_.jsx)("div",{className:NA.canvas,children:(0,_.jsx)("div",{className:NA.placeholder,children:(0,_.jsx)(Rh,{})})})]}),(0,_.jsx)("div",{id:"sidePanelPlaceholder"})]})},zA=s(6194),FA={};FA.styleTagTransform=_n(),FA.setAttributes=Cn(),FA.insert=vn().bind(null,"head"),FA.domAPI=hn(),FA.insertStyleElement=yn();mn()(zA.Z,FA);const WA=zA.Z&&zA.Z.locals?zA.Z.locals:void 0;function HA(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 VA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var YA=r.default.forwardRef((function(e,t){var n=e.active,r=e.link,i=e.children,a=e.ariaLabel,s=e.onClick,l=Gu(),c=l.isFocusVisible,u=l.focusProps,d=Jt()(WA.cell,n&&WA.active,c&&WA.focused);return r?(0,_.jsx)(o.NavLink,VA(VA({to:r,className:d,"aria-label":a},u),{},{children:i})):(0,_.jsx)("button",VA(VA({className:d},u),{},{onClick:s,ref:t,children:i}))}));YA.displayName="Cell";var ZA=s(6989),UA={};UA.styleTagTransform=_n(),UA.setAttributes=Cn(),UA.insert=vn().bind(null,"head"),UA.domAPI=hn(),UA.insertStyleElement=yn();mn()(ZA.Z,UA);const GA=ZA.Z&&ZA.Z.locals?ZA.Z.locals:void 0;function qA(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 QA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qA(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var XA=function(e){var t=e.className,n=(0,r.useContext)(Qm).siteSelectorProperties,o=(0,r.useContext)(Qm).userProfile,a=g((0,r.useState)(!1),2),s=a[0],l=a[1];return(0,_.jsxs)(i.Paper,{className:Jt()(GA.smallStatusBar,t),children:[(0,_.jsx)(YA,{link:"/",ariaLabel:"logo",children:(0,_.jsx)("div",{className:GA.logo})}),(0,_.jsx)(TA,QA({},n)),(0,_.jsx)(Fh,{userProfile:o,menuOpen:s,setMenuOpen:l,renderTrigger:function(e,t,n,r){return(0,_.jsx)(YA,{onClick:t,ref:e,active:r,children:(0,_.jsx)(i.Avatar,QA(QA({},n),{},{size:i.AvatarSize.XS,shadow:!1,tooltipText:""}))})}})]})};XA.displayName="SmallStatusBar";var KA=s(327),JA={};JA.styleTagTransform=_n(),JA.setAttributes=Cn(),JA.insert=vn().bind(null,"head"),JA.domAPI=hn(),JA.insertStyleElement=yn();mn()(KA.Z,JA);const $A=KA.Z&&KA.Z.locals?KA.Z.locals:void 0;var ev=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),I=P[0],E=P[1],M="kxp.applicationMenu.licenseWarning",L="kxp.applicationMenu.licenseError",N="kxp.applicationMenu.displayingMessage",R="kxp.applicationMenu.affectedLicenses",z=(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=z(),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,z]),(0,r.useEffect)((function(){if(I){var e=z(),t=localStorage.getItem(N);if(e&&"true"===t)E(!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()),E(!1)}})}}}),[I,E,j,d,z]),(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)&&E(!0))}),6e4);var r=(new Date).getTime(),o=z();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))&&E(!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:Jt()($A.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)}})]})}));ev.displayName="ApplicationMenuMobile";var tv=s(6234),nv={};nv.styleTagTransform=_n(),nv.setAttributes=Cn(),nv.insert=vn().bind(null,"head"),nv.domAPI=hn(),nv.insertStyleElement=yn();mn()(tv.Z,nv);const rv=tv.Z&&tv.Z.locals?tv.Z.locals:void 0;var ov=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=Jt()(c&&rv.statusBarWrapper),v=Jt()(c&&rv.statusBarOnAppList),b=Jt()(p&&rv.guard);return(0,r.useEffect)((function(){window.scrollTo(0,0)}),[c]),(0,_.jsxs)("div",{className:Jt()(rv.main,c&&rv.withApplicationList),children:[(0,_.jsx)("div",{className:A,children:(0,_.jsx)(XA,{className:v})}),(0,_.jsx)("div",{className:rv.canvas,children:c?(0,_.jsx)(pA,{categories:t,isOverflowing:p,setIsOverflowing:f,handleClick:function(){return u(!1)}}):(0,_.jsx)("div",{className:rv.placeholder,children:(0,_.jsx)(Rh,{})})}),!(h||m)&&(0,_.jsx)(ev,{className:b,categories:t,setApplicationListVisible:u,applicationListVisible:c,showError:n,showWarning:o,expiringLicenseMessage:a,affectedLicenseHashes:s})]})},iv=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)(ov,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:a}):(0,_.jsx)(RA,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:a})};function av(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 sv(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 sv(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 sv(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 lv=function(){function e(t){var n,r,o,i,a,s,l;if(Fr(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 Hr(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=av(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 cv=lv;var uv=["as","children"];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}var pv=function(e){var t=e.as,n=void 0===t?"div":t,o=e.children,i=h(e,uv),a=(0,r.useRef)(null),s=r.default.useRef(null);return(0,r.useEffect)((function(){var e=new cv(function(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}({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})},fv=s(6046),mv={};mv.styleTagTransform=_n(),mv.setAttributes=Cn(),mv.insert=vn().bind(null,"head"),mv.domAPI=hn(),mv.insertStyleElement=yn();mn()(fv.Z,mv);const gv=fv.Z&&fv.Z.locals?fv.Z.locals:void 0;var hv=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:gv.category,children:[(0,_.jsx)("div",{className:gv.categoryTitle,children:(0,_.jsx)("span",{children:e.name})}),(0,_.jsx)("div",{className:Jt()(gv.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:gv.dashboard,children:[(0,_.jsx)("div",{className:gv.titleWrapper,children:(0,_.jsx)("span",{className:gv.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)(wf,{calloutConfiguration:e})},t)})),(0,_.jsx)("div",{className:gv.categories,children:c?(0,_.jsx)(_.Fragment,{children:m}):0!==m.length&&(0,_.jsx)(pv,{items:m.length,useMin:!0,gutter:0,center:!1,children:m})})]})]})},Av=r.default.createContext({navigation:[],push:function(){},pop:function(){},refreshItem:function(){}});Av.displayName="SecondaryMenuNavigationContext";var vv=function(){return r.default.useContext(Av)};function bv(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 Cv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bv(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xv=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 Cv(Cv({},e),{},{items:e.items.map((function(e){return Cv(Cv({},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]=Cv(Cv({},r[e]),{},{headline:t}),r}))}),[]);return(0,_.jsx)(Av.Provider,{value:{navigation:i,push:l,pop:c,refreshItem:u},children:t})},yv=s(3696),wv={};wv.styleTagTransform=_n(),wv.setAttributes=Cn(),wv.insert=vn().bind(null,"head"),wv.domAPI=hn(),wv.insertStyleElement=yn();mn()(yv.Z,wv);const _v=yv.Z&&yv.Z.locals?yv.Z.locals:void 0;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 Sv(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 jv="Change",Tv="Submit",Dv=function(e){return e.map((function(e,t){return(0,_.jsx)(wf,{calloutConfiguration:e},t)}))},Bv=function(e){var t=e.items,n=e.submitVisible,o=e.submitLabel,a=e.submitTooltipText,s=e.additionalActions,l=e.errorMessage,c=e.disabled,u=e.headline,d=e.backLink,f=e.callouts,m=w().localization,h=dm(),A=h.setPromptSuppressed,b=h.getNewId,C=(0,r.useRef)(b()),x=g((0,r.useState)([]),2),y=x[0],O=x[1],S=r.default.useRef(null),j=(0,i.useMediaBreakpoints)(),T=bf(jv,{after:function(e){e&&O(e.items)}}).execute,D=bf(Tv,{before:function(){A(C.current,!0),Z&&Q(!0),R&&H(!0)},after:function(e){var t;(R&&H(!1),Z&&Q(!1),e)&&(e.items&&O(e.items),e.status===fo.ValidationSuccess&&(null===(t=S.current)||void 0===t||t.resetDataChanged(),void 0!==e.objectDisplayName&&null!==e.objectDisplayName&&ae(e.objectDisplayName),R?z():Z&&U()));A(C.current,!1)}}).execute;(0,r.useEffect)((function(){var e=C.current;return function(){A(e,!1)}}),[A]);var B=g((0,r.useState)(!1),2),k=B[0],P=B[1],I=mf(),E=I.isNested,M=I.setActions;(0,r.useEffect)((function(){E&&M(n?{submitAction:{label:o,onClick:function(){var e;return null===(e=S.current)||void 0===e?void 0:e.submit()},inProgress:k,disabled:c,tooltipText:a},additionalActions:s}:void 0)}),[E,c,o,a,n,s,M,k]);var L=Cg(),N=L.setTitle,R=L.isInDialog,z=L.closeDialog,F=L.setMinWidth,W=L.setMaxWidth,H=L.setActionInProgress;(0,r.useEffect)((function(){var e=function(e){return"@kentico/xperience-admin-base/ObjectSelector"===e.componentName};R&&(N(u),F("65vw"),function(t){return t.some((function(t){return e(t)}))}(y)&&W("65vw"))}),[R,c,F,W,N,o,a,n,u,y]);var V=hg(),Y=V.setTitle,Z=V.isInSidePanel,U=V.closeSidePanel,G=V.setWidth,Q=V.setActionInProgress;(0,r.useEffect)((function(){Z&&(Y(u),G("600px"))}),[Z,c,G,Y,o,a,n,u]);var X=(0,r.useContext)(Qm).navigation,K=eg(),J=K.breadcrumbs,$=K.refreshItem,ee=vv(),te=ee.navigation,ne=ee.push,re=ee.pop,oe=ee.refreshItem,ie=q(),ae=function(e){$(ef(J,(function(e){return e.isSignificant})),e),oe(ef(te,(function(e){return e.isSignificant})),e)};if((0,r.useEffect)((function(){return X.items.length?(ne(X,ie),X.isTemporary?re:function(){}):function(){}}),[X,ie,ne,re]),(0,r.useEffect)((function(){O(t)}),[t]),l)return(0,_.jsx)("div",{children:l});if(!y)return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(wh,{title:m.admin.base.edit.noElementTitle,text:m.admin.base.edit.noElementText})});var se=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,T({data:t.values});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),le=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,P(!0),e.next=4,D({data:t.values});case 4:return e.prev=4,P(!1),e.finish(4);case 7:case"end":return e.stop()}}),e,null,[[0,,4,7]])})));return function(t){return e.apply(this,arguments)}}(),ce=function(){return(0,_.jsx)(sp,{ref:S,items:y,onSubmit:le,onChange:se,disabled:c,dataTestId:"edit-form"})},ue=f.filter((function(e){return e.type===i.CalloutType.FriendlyWarning})),de=f.filter((function(e){return e.type===i.CalloutType.QuickTip}));return E?(0,_.jsxs)("div",{className:_v.templateWrapper,children:[Dv(ue),ce(),Dv(de)]}):(0,_.jsxs)("div",{className:_v.templateWrapper,children:[u&&(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,children:u}),(0,_.jsx)(i.StickyHeader,{children:(0,_.jsxs)("div",{className:_v.actionsWrapper,children:[d&&(0,_.jsx)(ym,{color:i.ButtonColor.Secondary,icon:"xp-arrow-left",href:d}),(0,_.jsxs)(i.Inline,{children:[null==s?void 0:s.map((function(e,t){return(0,r.createElement)(Bh,Sv(Sv({},e),{},{key:t}))})),n&&(0,_.jsx)(i.Button,{type:i.ButtonType.Submit,label:o,color:i.ButtonColor.Primary,onClick:function(){var e;return null===(e=S.current)||void 0===e?void 0:e.submit()},dataTestId:"submit-form-button",inProgress:k,disabled:c,title:a})]})]})}),(0,_.jsx)(Dg,{children:(0,_.jsxs)(i.Row,{spacing:i.Spacing.XL,children:[(j.sm||j.md)&&ue.length>0&&(0,_.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,children:Dv(ue)}),(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:ce()})})}),j.lg&&(ue.length>0||de.length>0)&&(0,_.jsx)(i.Column,{colsLg:i.Cols.Col4,children:(0,_.jsxs)(i.Stack,{spacing:i.Spacing.XL,children:[Dv(ue),Dv(de)]})}),(j.sm||j.md)&&de.length>0&&(0,_.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,children:Dv(de)})]})})]})},kv=["resetAllDataChanges"];function Pv(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?Pv(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ev=function(e){var t=e.resetAllDataChanges,n=h(e,kv),r=Qd().resetAllDataChanged,o={action:n};return(0,_.jsx)(vm,Iv(Iv({},o),{},{onBeforeExecuteCommand:function(){return t&&r()}}))};Ev.displayName="ButtonEditTemplateActionComponent";var Mv=s(6824),Lv={};Lv.styleTagTransform=_n(),Lv.setAttributes=Cn(),Lv.insert=vn().bind(null,"head"),Lv.domAPI=hn(),Lv.insertStyleElement=yn();mn()(Mv.Z,Lv);const Nv=Mv.Z&&Mv.Z.locals?Mv.Z.locals:void 0;var Rv=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:Nv.content,children:[r&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:Nv.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:Nv.sectionTitle,children:(0,_.jsx)("span",{children:n})}),(0,_.jsx)("div",{className:Nv.sectionContent,dangerouslySetInnerHTML:{__html:a(r)}}),(0,_.jsx)(dh,{actions:[o],dataTestId:"listing-header-actions"})]})]}),t&&t.map((function(e,t){return(0,_.jsx)(wf,{calloutConfiguration:e},t)}))]})};const zv={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 Fv(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}=Hu({isDisabled:!n,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,r.useMemo)((()=>o?t:t?{...zv,...t}:zv),[o])}}}(e);return r.default.createElement(n,gu(a,s),t)}var Wv=s(3059),Hv={};Hv.styleTagTransform=_n(),Hv.setAttributes=Cn(),Hv.insert=vn().bind(null,"head"),Hv.domAPI=hn(),Hv.insertStyleElement=yn();mn()(Wv.Z,Hv);const Vv=Wv.Z&&Wv.Z.locals?Wv.Z.locals:void 0;var Yv="Submit",Zv=function(e){var t=e.backLink,n=e.errorMessage,o=e.caption,a=e.submitLabel,s=e.submitTooltipText,l=e.initialConfiguration,c=e.availableMacroRuleConfigurations,u=e.availableMacroRules,d=g((0,r.useState)(l),2),f=d[0],m=d[1],h=Xd(),A=h.setDataChanged,b=h.getNewId,C=(0,r.useRef)(b()),x=w().localization,y=mf(),O=y.isNested,S=y.setActions,j=Cg(),T=j.setTitle,D=j.isInDialog,B=j.closeDialog,k=j.setWidth,P=j.setHeight,I=j.setIsFullscreen,E=j.setActionInProgress,M=dm().setTexts,L=Co(1024);M({message:x.admin.base.conditionBuilder.cancelConfirmation}),(0,r.useEffect)((function(){var e=C.current;return function(){A(e,!1)}}),[A]);var N=bf(Yv,{before:function(){D&&E(!0)},after:function(e){D&&E(!1),e&&(e.status!==fo.ValidationSuccess?A(C.current,!0):D&&B())}}).execute,R=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(C.current,!1),e.next=3,N(Nr(f));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=(0,r.useRef)(null);return(0,r.useEffect)((function(){O&&S({submitAction:{label:a,tooltipText:s,onClick:function(){var e;return null==z||null===(e=z.current)||void 0===e?void 0:e.click()}}})}),[O,a,s,S]),(0,r.useEffect)((function(){D&&(T(o),k(li),P("100%"),I(L))}),[D,f,k,T,a,o,P,I,L]),n?(0,_.jsx)("div",{children:n}):(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:D?"":Vv.templateWrapper,children:[!D&&(0,_.jsxs)(_.Fragment,{children:[o&&(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:o}),(0,_.jsxs)("div",{className:Vv.actionsWrapper,children:[t&&(0,_.jsx)(ym,{color:i.ButtonColor.Secondary,icon:"xp-arrow-left",href:t}),(0,_.jsx)(i.Button,{type:i.ButtonType.Submit,label:a,title:s,color:i.ButtonColor.Primary,onClick:function(){return R()}})]})]}),(0,_.jsxs)("div",{className:D?"":Vv.conditionBuilderWrapper,children:[(0,_.jsx)(Fv,{children:(0,_.jsx)(i.Button,{buttonRef:z,type:i.ButtonType.Submit,label:a,title:s,onClick:function(){return R()}})}),(0,_.jsx)(si,{initialConfiguration:f,availableMacroRuleConfigurations:c,availableMacroRules:u,onChange:function(e){A(C.current,!0),m(e)}})]})]})})};function Uv(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 Gv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uv(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qv=function(e){var t=e.componentName,n=e.componentConfiguration,r=I(t);return(0,_.jsx)(_.Fragment,{children:r&&(0,_.jsx)(r,Gv({},n))})},Qv=s(1914),Xv={};Xv.styleTagTransform=_n(),Xv.setAttributes=Cn(),Xv.insert=vn().bind(null,"head"),Xv.domAPI=hn(),Xv.insertStyleElement=yn();mn()(Qv.Z,Xv);const Kv=Qv.Z&&Qv.Z.locals?Qv.Z.locals:void 0;var Jv=["headerActions","columns","caption","callouts","maxVisibleRowActions"];function $v(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?$v(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tb="LoadData",nb=function(e){var n=e.headerActions,a=e.columns,s=e.caption,l=e.callouts,c=e.maxVisibleRowActions,u=h(e,Jv),d=(0,o.useNavigate)(),f=j().executeCommand,m=w().localization,A=g((0,r.useState)(""),2),b=A[0],C=A[1],x=Fp().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),I=P[0],E=P[1],M=bf(tb,{executeOnMount:!0,after:function(e){var t;e&&(0===(null==e||null===(t=e.rows)||void 0===t?void 0:t.length)&&1!==I.currentPage?E((function(e){return eb(eb({},e),{},{currentPage:e.currentPage-1})})):k(e))},data:I},[I]).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)(qv,eb({},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)}})},z=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))},F=B.totalCount%I.pageSize>0?Math.trunc(B.totalCount/I.pageSize)+1:B.totalCount/I.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:Kv.actions,children:[(0,_.jsx)(dh,{actions:n,dataTestId:"listing-header-actions"}),W&&(V||I.searchTerm)&&(0,_.jsx)(Tf,{value:b,placeholder:m.admin.base.listing.search.placeholder,onChange:function(e){return C(e)},onSubmit:function(){E((function(e){return eb(eb({},e),{},{currentPage:1,searchTerm:b})}))}})]});return(0,_.jsx)(Rh,{children:(0,_.jsx)(Dg,{children:(0,_.jsxs)("div",{className:Kv.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)(wf,{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(eb(eb({},n),{},{onInvokeAction:function(t){return z(t,e)}})))})),t};return e.map((function(e){return{identifier:e.identifier,disabled:e.disabled,cells:t(e)}}))}}(B.rows),onSortChange:function(e){E((function(t){return eb(eb({},t),{},{sortBy:e.sortBy,sortType:e.sortType})}))},onRowClick:function(e){if(B.rows){var t=B.rows[e];t&&t.action&&z(t.action,t)}},selectRowLabel:m.admin.base.listing.table.selectRow,selectAllRowsLabel:m.admin.base.listing.table.selectAllRows,sortModel:{sortBy:I.sortBy,sortType:I.sortType},maxVisibleRowActions:c,renderPreheader:function(){return Z}}),!Y&&(0,_.jsx)(wh,{title:I.searchTerm?m.admin.base.listing.search.noSearchResultTitle:m.admin.base.listing.noDataTitle,text:I.searchTerm&&m.admin.base.listing.search.noSearchResultText,children:I.searchTerm&&(0,_.jsx)(i.Button,{label:m.admin.base.listing.search.clearButtonLabel,color:i.ButtonColor.Primary,size:i.ButtonSize.L,onClick:function(){C(""),E((function(e){return eb(eb({},e),{},{searchTerm:""})}))}})}),B.totalCount>I.pageSize&&(0,_.jsx)("div",{className:Kv.pagination,children:(0,_.jsx)("div",{className:Kv.paginationWrapper,children:(0,_.jsx)(i.Pagination,{selectedPage:I.currentPage,totalPages:F,onPageChange:function(e){var t;E((function(t){return eb(eb({},t),{},{currentPage:e})})),null===(t=y.current)||void 0===t||t.scrollIntoView()}})})}),S&&(0,_.jsx)(om,eb({},S))]})})})},rb=s(9041),ob={};ob.styleTagTransform=_n(),ob.setAttributes=Cn(),ob.insert=vn().bind(null,"head"),ob.domAPI=hn(),ob.insertStyleElement=yn();mn()(rb.Z,ob);const ib=rb.Z&&rb.Z.locals?rb.Z.locals:void 0;function ab(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 sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ab(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lb=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=Gu(),h=m.isFocusVisible,A=m.focusProps;(0,r.useEffect)((function(){u(p&&n?n:"")}),[n,p]),er({ref:s,onResize:function(){s.current&&f(s.current.offsetHeight<s.current.scrollHeight)}});var v=Jt()(ib.navLink,0===a&&ib.main,1===a&&ib.submenu1,2===a&&ib.submenu2,h&&ib.focused);return(0,_.jsx)(i.Tooltip,{tooltipText:c,placement:i.TooltipPlacement.TopStart,children:(0,_.jsx)(o.NavLink,sb(sb({to:t,className:function(e){var t=e.isActive;return"".concat(v," ").concat(t?ib.active:void 0)},end:!0},A),{},{children:(0,_.jsx)("span",{ref:s,className:ib.label,children:(0,_.jsx)("span",{className:ib.labelContent,children:n})})}))})},cb=s(2949),ub={};ub.styleTagTransform=_n(),ub.setAttributes=Cn(),ub.insert=vn().bind(null,"head"),ub.domAPI=hn(),ub.insertStyleElement=yn();mn()(cb.Z,ub);const db=cb.Z&&cb.Z.locals?cb.Z.locals:void 0;var pb=function(e){var t=e.level,n=e.children;return 0===t?(0,_.jsx)(i.Paper,{className:db.paper,children:(0,_.jsx)("div",{className:db.main,children:n})}):(0,_.jsx)("div",{className:1===t?db.submenu1:db.submenu2,children:n})};pb.displayName="SecondaryMenuWrapper";var fb=s(172),mb={};mb.styleTagTransform=_n(),mb.setAttributes=Cn(),mb.insert=vn().bind(null,"head"),mb.domAPI=hn(),mb.insertStyleElement=yn();mn()(fb.Z,mb);const gb=fb.Z&&fb.Z.locals?fb.Z.locals:void 0;var hb=function(e){var t=e.label,n=e.level,r=Jt()(gb.headline,0===n&&gb.main,1===n&&gb.submenu1,2===n&&gb.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:gb.label,children:t})}})})};hb.displayName="SecondaryMenuHeadline";var Ab=s(4755),vb={};vb.styleTagTransform=_n(),vb.setAttributes=Cn(),vb.insert=vn().bind(null,"head"),vb.domAPI=hn(),vb.insertStyleElement=yn();mn()(Ab.Z,vb);const bb=Ab.Z&&Ab.Z.locals?Ab.Z.locals:void 0;var Cb=function e(t){var n=t.level,i=g((0,r.useState)(),2),a=i[0],s=i[1],l=vv().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)(pb,{level:n,children:(0,_.jsxs)("ul",{className:bb.secondaryMenu,children:[(0,_.jsx)("li",{children:(0,_.jsx)(hb,{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)(lb,{link:t,label:e.label,level:n}),(0,_.jsx)(p,{parentPath:t})]},t)}))]})}):null},xb=s(8520),yb={};yb.styleTagTransform=_n(),yb.setAttributes=Cn(),yb.insert=vn().bind(null,"head"),yb.domAPI=hn(),yb.insertStyleElement=yn();mn()(xb.Z,yb);const wb=xb.Z&&xb.Z.locals?xb.Z.locals:void 0;var _b=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=vv().navigation;(0,r.useEffect)((function(){o(a.length>1||a.some((function(e){return e.items.length>1})))}),[a]);var s=Jt()(wb.templateWrapper,n&&wb.templateWrapperWithMenu);return i?(0,_.jsx)(Rh,{}):(0,_.jsxs)("div",{className:s,children:[(0,_.jsx)("div",{id:e,className:wb.menu,"data-testid":"side-navigation-vertical-menu",children:(0,_.jsx)(Cb,{level:0})}),(0,_.jsx)("div",{className:wb.contentWrapperFlexible,children:(0,_.jsx)("div",{className:wb.contentWrapper,children:(0,_.jsx)(Rh,{})})})]})},Ob=function(){var e=(0,r.useContext)(Qm).navigation,t=vv(),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)(df,{children:(0,_.jsx)(_b,{})})},Sb=s(9847),jb={};jb.styleTagTransform=_n(),jb.setAttributes=Cn(),jb.insert=vn().bind(null,"head"),jb.domAPI=hn(),jb.insertStyleElement=yn();mn()(Sb.Z,jb);const Tb=Sb.Z&&Sb.Z.locals?Sb.Z.locals:void 0;function Db(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 Bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Db(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kb=function(e){return e.reduce((function(e,t){return Object.assign(e,t),e}),{})},Pb="DataType",Ib="DatabaseColumn",Eb="Visible",Mb="Size",Lb="Precision",Nb=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=Bb({},i.values),i.changedField.name!==Pb&&i.changedField.name!==Ib||(delete a.DefaultValue,delete a[Mb],delete a[Lb],m([])),i.changedField.name===Ib&&(delete a.Name,delete a[Pb],delete a.Required,delete a[Mb],delete a[Lb],m([])),i.changedField.name!==Eb||a[Eb]||m(n.filter((function(e){return"DatabaseConfigurationModel"!==e.id}))),s=i.changedField.name===Eb&&a[Eb]&&f.length,c={name:t,subForms:kb((s?[].concat(L(n),L(f)):n).map((function(e){return u({},e.id,e.id===r?Bb({},a):kb(e.components.map((function(e){return u({},e.name,e.value)}))))})))},e.next=11,l(Yb.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=kb(n.map((function(e){return u({},e.id,kb(e.components.map((function(e){return u({},e.name,e.value)}))))}))),!s){e.next=6;break}return e.next=4,l(Yb.CreateField,{subForms:r});case 4:e.next=8;break;case 6:return e.next=8,l(Yb.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?Tb.validationSectionFormContainer:Tb.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?Tb.headline:Tb.firstHeadline,children:e.title}),(0,_.jsx)(i.Box,{className:y(e),children:(0,_.jsx)(sp,{name:e.id,items:e.components,timeStamp:e.timeStamp,onChange:function(t){return C(e.id,t)}})})]},e.id)})),(0,_.jsxs)(i.Box,{className:Tb.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"})]})]})},Rb=s(8033),zb={};zb.styleTagTransform=_n(),zb.setAttributes=Cn(),zb.insert=vn().bind(null,"head"),zb.domAPI=hn(),zb.insertStyleElement=yn();mn()(Rb.Z,zb);const Fb=Rb.Z&&Rb.Z.locals?Rb.Z.locals:void 0;var Wb=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:Fb.main,children:[(0,_.jsx)("span",{"data-testid":"field-name",children:t}),n&&(0,_.jsxs)("div",{className:Fb.right,children:[(0,_.jsx)("span",{className:Fb.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:Fb.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 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 Vb(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 Yb={CreateField:"CreateField",GetFields:"GetFields",GetFormFieldMetadata:"GetFormFieldMetadata",GetEmptyFormFieldMetadata:"GetEmptyFormFieldMetadata",GetEmptyFormCategoryMetadata:"GetEmptyFormCategoryMetadata",MoveField:"MoveField",SaveField:"SaveField",DeleteField:"DeleteField"},Zb=function(e){var t=e.caption,n=e.supportsCategory,o=Xd(),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(Vb(Vb({},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),I=P[0],E=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 z=j().executeCommand,F=bf(Yb.GetFields,{executeOnMount:!0,after:function(e){return e&&A(e.fields)}}).execute;bf(Yb.SaveField,{after:function(e){if(e)if(e.isValid&&null!==d){var t=L(h);t[d]=e.fieldData,A(t),k(!1),E(!1),f(null),s(c.current,!1)}else x(e.subForms)}});var W=bf(Yb.GetFormFieldMetadata,{after:function(e){e&&x(e)}}).execute,H=bf(Yb.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=bf(Yb.GetEmptyFormCategoryMetadata,{after:function(e){var t;e&&(E(!0),f(null),s(c.current,!0),x(e),null===(t=M.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}))}}).execute;bf(Yb.CreateField,{after:function(e){e&&(e.isValid?(F(),s(c.current,!1),k(!1),E(!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||I){e.next=4;break}return e.next=4,H();case 4:return e.abrupt("return");case 5:T(Vb(Vb({},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||I){e.next=3;break}return e.next=3,H();case 3:T(Vb(Vb({},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||I){e.next=4;break}return e.next=4,V();case 4:return e.abrupt("return");case 5:T(Vb(Vb({},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||I){e.next=3;break}return e.next=3,V();case 3:T(Vb(Vb({},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(Vb(Vb({},S),{},{showDialog:!0,onConfirmation:function(){G(),T(Vb(Vb({},S),{},{showDialog:!1}))}})):G()},G=function(){f(null),k(!1),E(!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,z(Yb.DeleteField,{deletedFieldName:t});case 4:return e.next=6,F();case 6:k(!1),E(!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(Vb(Vb({},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(Vb(Vb({},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,z(Yb.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)(Wb,{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?Vb(Vb({},t),{},{components:t.components.map((function(t){return t.name===e.fieldName?Vb(Vb({},t),{},{value:e.value}):t}))}):t})))};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Dg,{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||I})}),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||I})})]})}),(0,_.jsxs)(i.Box,{spacingBottom:i.Spacing.L,children:[(!!h.length||B||I)&&(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)(Nb,{name:e.name,subForms:C,onChange:ne,onCancel:U,addingField:B||I})},e.name)})),(B||I)&&(0,_.jsx)(i.BarItem,{onHeaderClick:function(){return U()},expanded:!0,leadingButtons:[],headerColumns:te(I?R:N),ref:M,children:(0,_.jsx)(Nb,{name:I?R:N,subForms:C,onChange:ne,onCancel:U,addingField:!0})})]}),!h.length&&!B&&!I&&(0,_.jsx)(wh,{title:y.admin.base.fieldEditor.fieldsCollectionEmpty})]})]})})}),(0,_.jsx)(lm,Vb({},S))]})};function Ub(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 Gb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ub(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ub(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qb=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]=Gb(Gb({},r[e]),{},{text:t}),r}))}),[]);return(0,_.jsx)(Jm.Provider,{value:{breadcrumbs:o,push:c,pop:u,refreshItem:d,statusNode:s,setStatusNode:l},children:t})},Qb=s(3638),Xb={};Xb.styleTagTransform=_n(),Xb.setAttributes=Cn(),Xb.insert=vn().bind(null,"head"),Xb.domAPI=hn(),Xb.insertStyleElement=yn();mn()(Qb.Z,Xb);const Kb=Qb.Z&&Qb.Z.locals?Qb.Z.locals:void 0;var Jb=function(){var e=(0,r.useContext)(Qm),t=e.routes.length>1,n=uf().setIsCustomRightSidebarDisplayed;return(0,r.useEffect)((function(){return n(!0),function(){n(!1)}})),(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Dg,{sidebarContent:(0,_.jsxs)(_.Fragment,{children:[t&&(0,_.jsx)("div",{"data-testid":"navigation-view-menu",className:Kb.viewMenuWrapper,children:(0,_.jsx)(i.ViewMenu,{children:e.navigation.items.map((function(e){var t;return(0,_.jsx)(jh,{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)(Rh,{})})})},$b=s(449),eC={};eC.styleTagTransform=_n(),eC.setAttributes=Cn(),eC.insert=vn().bind(null,"head"),eC.domAPI=hn(),eC.insertStyleElement=yn();mn()($b.Z,eC);const tC=$b.Z&&$b.Z.locals?$b.Z.locals:void 0;function nC(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 rC(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 rC(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 rC(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 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 iC(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 aC=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=lC(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 er({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:tC.templateWrapper,children:[(0,_.jsx)(i.Column,{width:38,children:(0,_.jsx)(i.Paper,{className:tC.treeWrapper,children:(0,_.jsx)(i.Box,{spacing:i.Spacing.L,className:tC.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)(sC,iC(iC({},e),{},{level:1,key:e.id,onNodeToggle:h,expandedIds:c}))}))})})})}),(0,_.jsx)(i.Column,{children:(0,_.jsxs)("div",{className:Jt()(tC.scrollable,p&&tC.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)(Rh,{})]})})]})},sC=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,iC(iC({},t),{},{level:c+1,key:t.id,onNodeToggle:u,expandedIds:d}))}))})};function lC(e,t,n){if(""===e)return[];if(t.id===e)return[e];var r,o=nC(t.children);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=lC(e,i,n);if(a.length>0)return a.push(i.id),a}}catch(e){o.e(e)}finally{o.f()}return[]}var cC=function(){throw new Error("SettingContext is not used in the tree above")},uC=r.default.createContext({invokeOnSubmitHandler:cC,registerOnSubmitHandler:cC,registerClearSearchHandler:cC,searchFilter:"",setSearchFilter:cC,settingsCategoryNames:{}});function dC(){return(0,r.useContext)(uC)}uC.displayName="SettingsContext";var pC=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)(uC.Provider,{value:c,children:t})};pC.displayName="SettingsContext";var fC=s(9933),mC={};mC.styleTagTransform=_n(),mC.setAttributes=Cn(),mC.insert=vn().bind(null,"head"),mC.domAPI=hn(),mC.insertStyleElement=yn();mn()(fC.Z,mC);const gC=fC.Z&&fC.Z.locals?fC.Z.locals:void 0;var hC=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=dC(),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:gC.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:gC.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"})})]})})},AC=s(5999),vC={};vC.styleTagTransform=_n(),vC.setAttributes=Cn(),vC.insert=vn().bind(null,"head"),vC.domAPI=hn(),vC.insertStyleElement=yn();mn()(AC.Z,vC);const bC=AC.Z&&AC.Z.locals?AC.Z.locals:void 0;function CC(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 xC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CC(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yC=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)(Dg,{sidebarContent:(0,_.jsx)(_.Fragment,{}),children:(0,_.jsx)(pC,{categories:n,children:(0,_.jsxs)("div",{className:bC.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)(hC,{})})}),(0,_.jsx)(i.Box,{className:bC.treeWrapper,children:(0,_.jsx)(aC,xC({},e))})]})})})};var wC=s(3018),_C={};_C.styleTagTransform=_n(),_C.setAttributes=Cn(),_C.insert=vn().bind(null,"head"),_C.domAPI=hn(),_C.insertStyleElement=yn();mn()(wC.Z,_C);const OC=wC.Z&&wC.Z.locals?wC.Z.locals:void 0;function SC(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 jC=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=dC();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?SC(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SC(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:OC.container,children:s.map((function(e,t){return(0,_.jsxs)("div",{className:OC.breadcrumbItem,children:[(0,_.jsx)("span",{className:OC.cell,children:e}),s.length-1!==t&&(0,_.jsx)("span",{className:OC.icon,children:(0,_.jsx)(i.Icon,{name:"xp-chevron-right"})})]},t)}))})},TC=function(e){var t=e.filter,n=e.clearSearchHandler,r=w().localization.admin.base.settings;return(0,_.jsx)(_.Fragment,{children:t&&(0,_.jsx)(wh,{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)(wh,{title:r.noSettingsTitle,text:r.noSettingsText})})},DC=s(142),BC={};BC.styleTagTransform=_n(),BC.setAttributes=Cn(),BC.insert=vn().bind(null,"head"),BC.domAPI=hn(),BC.insertStyleElement=yn();mn()(DC.Z,BC);const kC=DC.Z&&DC.Z.locals?DC.Z.locals:void 0;function PC(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 IC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PC(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var EC=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=dC(),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?IC(IC({},e),{},{components:e.components.map((function(e){return e.name===r?IC(IC({},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)}}();bf("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=bf("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:kC.searchHeadline,replace:!0,children:(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,labelColor:i.Colors.Product,children:e.displayName})}),(0,_.jsx)(jC,IC({},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)(Kd,{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)(sp,{name:"Form_".concat(e.categoryId),items:e.components,onChange:function(t){return b(e.categoryId,t)},fieldCssClass:kC.formComponent})]})},e.categoryId)})))||(0,_.jsx)(TC,{filter:f.searchFilter,clearSearchHandler:y})})})]}):(0,_.jsx)(bh,{title:d.admin.base.pageLoader.loading})};function MC(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 LC=function(e){var t=dC(),n=w().localization.admin.base.settings;return""===t.searchFilter?(0,_.jsx)(wh,{title:n.noSearchPhrase}):(0,_.jsx)(EC,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MC(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))};function NC(e){var t=eg().setStatusNode;(0,r.useEffect)((function(){e&&t((0,_.jsx)(i.SimpleStatusDefault,{content:{label:e.label,iconName:e.iconName},iconColor:i.Colors[e.iconColor],labelColor:i.Colors[e.labelColor]}))}),[e,t])}var RC=s(1064),zC={};zC.styleTagTransform=_n(),zC.setAttributes=Cn(),zC.insert=vn().bind(null,"head"),zC.domAPI=hn(),zC.insertStyleElement=yn();mn()(RC.Z,zC);const FC=RC.Z&&RC.Z.locals?RC.Z.locals:void 0;var WC="Change",HC="Submit",VC="GetStatusModel",YC="LoadExtraButtons",ZC=function(e){var t=e.items,n=e.errorMessage,o=e.disabled,a=e.headline,s=e.submitLabel,l=e.submitTooltipText,c=g((0,r.useState)(!1),2),u=c[0],d=c[1],f=g((0,r.useState)(!1),2),m=f[0],h=f[1],A=g((0,r.useState)(t),2),b=A[0],C=A[1],x=g((0,r.useState)(),2),y=x[0],O=x[1],S=g((0,r.useState)([]),2),T=S[0],D=S[1],B=g((0,r.useState)(""),2),k=B[0],P=B[1],I=document.getElementById("applicationHeader"),E=r.default.useRef(null),M=w().localization,L=eg(),N=L.breadcrumbs,R=L.refreshItem,z=vv(),F=z.navigation,W=z.refreshItem,H=(0,r.useContext)(Qm),V=document.getElementById("sideMenuPlaceholder"),Y=j().executeCommand,Z=bf(YC,{after:function(e){e&&D(e.extraButtons)}}).execute,U=bf(WC,{after:function(e){e&&C(e.items)}}).execute,G=bf(VC,{after:function(e){e&&O(e)}}).execute;(0,r.useEffect)((function(){G(),Z()}),[]),NC(null==y?void 0:y.basicStatusModel);var q=function(){var e=p(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!1),e.prev=1,h(!0),e.next=5,X({data:t.values});case 5:return e.prev=5,h(!1),e.next=9,Z();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(d(!0),!t.changedField.hasDependencies){e.next=4;break}return e.next=4,U({data:t.values});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){C(t)}),[t]);var X=bf(HC,{after:function(e){if(e){var t;if(e.items&&C(e.items),e.status!==fo.ValidationSuccess)d(!0);else null==E||null===(t=E.current)||void 0===t||t.resetDataChanged(),void 0!==e.objectDisplayName&&null!==e.objectDisplayName&&(n=e.objectDisplayName,R(ef(N,(function(e){return e.isSignificant})),n),W(ef(F,(function(e){return e.isSignificant})),n)),k&&Y(k);P("")}var n}}).execute,K=dm(),J=K.setOnConfirmation,$=K.setPromptEnabled;if(J((function(){return d(!1)})),(0,r.useEffect)((function(){$(u)}),[u,$]),n)return(0,_.jsx)("div",{children:n});if(!b)return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(wh,{title:M.admin.base.edit.noElementTitle,text:M.admin.base.edit.noElementText})});var ee,te=H.routes.length>0,ne=function(e){return(0,_.jsx)(i.Button,{type:i.ButtonType.Submit,label:s,color:e?i.ButtonColor.Primary:i.ButtonColor.Secondary,onClick:function(){var e;return null===(e=E.current)||void 0===e?void 0:e.submit()},dataTestId:"submit-form-button",inProgress:m,disabled:o,title:l})};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:FC.templateWrapper,children:(0,_.jsxs)(i.Stack,{spacing:i.Spacing.L,className:FC.contentWrapper,children:[(null==y?void 0:y.statusMessage)&&(0,_.jsx)(i.NotificationBarInfo,{dataTestId:"notification-bar",childrenAsHtml:!0,children:y.statusMessage}),(0,_.jsx)(i.Paper,{className:FC.contentWrapper,children:(0,_.jsxs)(i.Row,{spacing:i.Spacing.XL,className:FC.content,children:[(0,_.jsx)(i.Column,{className:FC.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!==b.length&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.L,spacingBottom:i.Spacing.L,children:a}),(0,_.jsx)(sp,{ref:E,dataTestId:"edit-form",items:b,onSubmit:q,onChange:Q,disabled:o})]})})]})})]})}),(0,_.jsx)(_h,{container:I,children:(0,_.jsx)(i.Box,{className:FC.portal,children:(ee=!T.some((function(e){return e.primary})),(0,_.jsxs)(_.Fragment,{children:[!ee&&ne(ee),T.sort((function(e){return Number(e.primary)})).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}P(n),null===(t=E.current)||void 0===t||t.submit(),e.next=7;break;case 5:return e.next=7,Y(n);case 7:case"end":return e.stop()}}),e)})))),dataTestId:"".concat(e.label.toLowerCase().replace(/\s/g,"-"),"-form-button"),inProgress:e.submit&&m,disabled:e.disabled,title:e.tooltipText},t);var n,r})),ee&&ne(ee)]}))})}),te&&(0,_.jsx)(_h,{container:V,children:(0,_.jsx)(fg,{})}),(0,_.jsx)(Rh,{})]})},UC=s(2442),GC={};GC.styleTagTransform=_n(),GC.setAttributes=Cn(),GC.insert=vn().bind(null,"head"),GC.domAPI=hn(),GC.insertStyleElement=yn();mn()(UC.Z,GC);const qC=UC.Z&&UC.Z.locals?UC.Z.locals:void 0;var QC="GetContent",XC="GetStatusModel",KC=function(){var e=(0,r.useRef)(null),t=g((0,r.useState)(""),2),n=t[0],o=t[1],a=g((0,r.useState)(),2),s=a[0],l=a[1],c=bf(XC,{after:function(e){e&&l(e)}}).execute;(0,r.useEffect)((function(){c()}),[]),NC(null==s?void 0:s.basicStatusModel);var u=bf(QC,{after:function(e){return o(e)}}).execute;return(0,r.useEffect)((function(){u()}),[u]),(0,_.jsx)(i.Paper,{fullHeight:!0,children:(0,_.jsx)(r.Suspense,{fallback:(0,_.jsx)(gh,{}),children:n&&(0,_.jsx)("iframe",{title:"email-preview",className:qC.previewIframe,sandbox:"allow-same-origin",ref:e,srcDoc:n})})})},JC=s(9541),$C={};$C.styleTagTransform=_n(),$C.setAttributes=Cn(),$C.insert=vn().bind(null,"head"),$C.domAPI=hn(),$C.insertStyleElement=yn();mn()(JC.Z,$C);const ex=JC.Z&&JC.Z.locals?JC.Z.locals:void 0;var tx="LoadFunnelConfiguration",nx="GetStatusModel",rx=function(e){var t=e.headline,n=e.cultureCode,o=g((0,r.useState)(),2),a=o[0],s=o[1],l=g((0,r.useState)({caption:"",data:[],noDataTitle:""}),2),c=l[0],u=l[1],d=bf(nx,{after:function(e){return e&&s(e)}}).execute,p=bf(tx,{after:function(e){return e&&u(e)}}).execute;(0,r.useEffect)((function(){d(),p()}),[]),NC(null==a?void 0:a.basicStatusModel);var f=c.data,m=c.caption?c.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}),f&&(0,_.jsxs)("div",{children:[(0,_.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:c.caption}),(0,_.jsx)(i.Paper,{elevation:i.PaperElevation.S,children:(0,_.jsx)("div",{className:ex.funnel,children:(0,_.jsx)(i.FunnelChart,{data:c.data,orientation:i.FunnelOrientation.Horizontal,chartId:m,locale:n})})})]}),!f&&(0,_.jsx)(wh,{title:c.noDataTitle,dataTestId:"no-statistics-data"})]})},ox=s(2814),ix={};ix.styleTagTransform=_n(),ix.setAttributes=Cn(),ix.insert=vn().bind(null,"head"),ix.domAPI=hn(),ix.insertStyleElement=yn();mn()(ox.Z,ix);const ax=ox.Z&&ox.Z.locals?ox.Z.locals:void 0;var sx=["selectedOptions","options","disabled"];function lx(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 cx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lx(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ux=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:[]},dx=function(e){var t=e.selectedOptions,n=e.options,o=e.disabled,a=h(e,sx),s=(0,r.useCallback)((function(e){var t=n.map((function(t){return cx(cx({},t),{},{selected:e.some((function(e){return e.value===t.codeName}))})}));a.onChange(t)}),[n,a]);return(0,_.jsx)("div",{className:ax.container,children:(0,_.jsx)(i.FormItemWrapper,{disabled:o,children:(0,_.jsx)(ad,{isDisabled:o,isMulti:!0,value:ux(t),options:ux(n),placeholder:"",onChange:s,onClear:function(){var e=n.map((function(e){return cx(cx({},e),{},{selected:!e.removable})}));a.onChange(e)},dataTestId:"permission-item-selector"})})})};dx.displayName="PermissionItemSelector";var px=s(5744),fx={};fx.styleTagTransform=_n(),fx.setAttributes=Cn(),fx.insert=vn().bind(null,"head"),fx.domAPI=hn(),fx.insertStyleElement=yn();mn()(px.Z,fx);const mx=px.Z&&px.Z.locals?px.Z.locals:void 0;var gx=["index","applicationCategories","selectedApplication","selectedData","disabled"];function hx(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 Ax(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hx(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vx=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,gx),c=w().localization.admin.base.permissions;return(0,_.jsxs)(i.Paper,Ax(Ax({ref:t,borderRadius:i.BorderRadius.RadiusL,elevation:i.PaperElevation.XS,className:mx.permissionSet},l),{},{children:[(0,_.jsxs)(i.Row,{className:mx.contentContainer,spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.Wrap,children:[(0,_.jsx)(i.Column,{className:mx.contentItem,children:(0,_.jsxs)(i.Row,{spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.NoWrap,children:[(0,_.jsx)(i.Column,{className:mx.contentItem,children:(0,_.jsx)("div",{className:mx.plainTextParameter,children:c.permissionSetLabel1})}),(0,_.jsx)(i.Column,{className:mx.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:mx.permissionSelector,children:(0,_.jsxs)(i.Row,{spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.NoWrap,children:[(0,_.jsx)(i.Column,{className:mx.contentItem,children:(0,_.jsx)("div",{className:mx.plainTextParameter,children:c.permissionSetLabel2})}),(0,_.jsx)(i.Column,{className:mx.permissionSelector,children:(0,_.jsx)("div",{children:(0,_.jsx)(dx,{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"})})]}))}));vx.displayName="PermissionSet";var bx="GetPermissions",Cx="SavePermissions",xx="GetPermissionsForApplication",yx=function(e){var t=e.caption,n=e.disabled,o=w().localization.admin.base.permissions,a=Fp().refetchDataInTemplates,s=Xd(),l=s.getDataChanged,c=s.setDataChanged,u=s.getNewId,d=(0,r.useRef)(u()),f=g((0,r.useState)([]),2),m=f[0],h=f[1],A=g((0,r.useState)([]),2),b=A[0],C=A[1],x=g((0,r.useState)(!1),2),y=x[0],O=x[1],S=g((0,r.useState)(!1),2),j=S[0],T=S[1],D=(0,r.useRef)(null),B=function(){var e;return null===(e=D.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth"})},k=function(e,t){m.forEach((function(n){n.applications.map((function(n){return n.identifier===e?n.disabled=t:n}))})),h(m)};(0,r.useEffect)((function(){y&&B()}),[y]),bf(bx,{executeOnMount:!0,after:function(e){e&&(c(d.current,!1),T(!1),h(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)),C(e.selectedApplications))}});var P=bf(Cx,{executeOnMount:!1,after:function(){c(d.current,!1),T(!1),O(!1),a()}}).execute,I=bf(xx,{after:function(e){e&&C(function(e,t){var n=e.findIndex((function(e){return e.application===t.application}));return e[n].permissions=t.permissions,e}(L(b),e))}}),E=I.execute,M=function(){var e=p(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:T(!0),P({permissions:L(b).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)}}(),N=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(b)).some((function(e){return""===e.application}))){e.next=4;break}return B(),e.abrupt("return");case 4:t.push({application:"",permissions:[]}),C(t),O(!0);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=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=b[t].application,o=n.application,c(d.current,!0),""===r&&O(!1),r!==o&&(k(r,!1),E(o)),k(o,!0),(i=L(b))[t]=n,C(i);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),z=function(e,t){var n=L(b);""===t&&O(!1),c(d.current,!0),k(n[e].application,!1),n=n.filter((function(t,n){return n!==e})),C(n)};return(0,_.jsx)(Rh,{children:(0,_.jsx)(Dg,{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:M,disabled:n||!l(d.current),inProgress:j,color:i.ButtonColor.Primary,title:l(d.current)?"":o.noChangesToSave})}),(0,_.jsx)(i.Box,{spacingBottom:i.Spacing.XL,spacingLeft:i.Spacing.L,children:(0,_.jsx)(i.Button,{label:o.newPermissionSetButtonLabel,onClick:N,disabled:n,color:i.ButtonColor.Secondary,icon:"xp-plus"})})]})}),b.length>0&&(0,_.jsx)(i.Stack,{spacing:i.Spacing.M,children:b.map((function(e,t){return(0,_.jsx)(vx,{ref:D,index:t,applicationCategories:m,selectedApplication:e.application,selectedData:e.permissions,disabled:n,onChange:R,onDelete:z},t)}))}),0===b.length&&(0,_.jsx)(wh,{title:o.noDataTitle})]})})})}})(),l})())}}}));
|