@kentico/xperience-admin-base 23.0.9 → 24.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.
package/dist/entry.js DELETED
@@ -1,25 +0,0 @@
1
- System.register(["react","react-router-dom","@kentico/xperience-admin-components","react-dom"],(function(e,t){var n={},r={},o={},i={};return Object.defineProperty(n,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach((function(t){n[t]=e[t]}))},function(e){r.Link=e.Link,r.NavLink=e.NavLink,r.Navigate=e.Navigate,r.Route=e.Route,r.Routes=e.Routes,r.UNSAFE_NavigationContext=e.UNSAFE_NavigationContext,r.generatePath=e.generatePath,r.resolvePath=e.resolvePath,r.useHref=e.useHref,r.useLocation=e.useLocation,r.useMatch=e.useMatch,r.useNavigate=e.useNavigate,r.useParams=e.useParams,r.useResolvedPath=e.useResolvedPath},function(e){o.ActionMenuDivider=e.ActionMenuDivider,o.ActionMenuHeadline=e.ActionMenuHeadline,o.ActionTile=e.ActionTile,o.ActionTileSize=e.ActionTileSize,o.ActionTileState=e.ActionTileState,o.ActionTileType=e.ActionTileType,o.ApplicationTile=e.ApplicationTile,o.ApplicationTileState=e.ApplicationTileState,o.AssetTilePreview=e.AssetTilePreview,o.AssetTileSelectable=e.AssetTileSelectable,o.Avatar=e.Avatar,o.AvatarButton=e.AvatarButton,o.AvatarSize=e.AvatarSize,o.BarItem=e.BarItem,o.BarItemDraggable=e.BarItemDraggable,o.BarItemGroup=e.BarItemGroup,o.BarItemHeaderColumnAlign=e.BarItemHeaderColumnAlign,o.BorderRadius=e.BorderRadius,o.Box=e.Box,o.Breadcrumbs=e.Breadcrumbs,o.Button=e.Button,o.ButtonColor=e.ButtonColor,o.ButtonSize=e.ButtonSize,o.ButtonType=e.ButtonType,o.Callout=e.Callout,o.CalloutType=e.CalloutType,o.Card=e.Card,o.CellType=e.CellType,o.Checkbox=e.Checkbox,o.CodeEditor=e.CodeEditor,o.Colors=e.Colors,o.Cols=e.Cols,o.Column=e.Column,o.ColumnContentType=e.ColumnContentType,o.Condition=e.Condition,o.ConditionBuilder=e.ConditionBuilder,o.ConditionGroup=e.ConditionGroup,o.ConditionGroupOverview=e.ConditionGroupOverview,o.ConditionOperatorLine=e.ConditionOperatorLine,o.ConditionOperatorOverview=e.ConditionOperatorOverview,o.ConditionOperatorOverviewType=e.ConditionOperatorOverviewType,o.ConditionOperatorSelect=e.ConditionOperatorSelect,o.ConditionPicker=e.ConditionPicker,o.DateTimePicker=e.DateTimePicker,o.DateTimePickerTimeFormat=e.DateTimePickerTimeFormat,o.Dialog=e.Dialog,o.Dimensions=e.Dimensions,o.DropDownActionMenu=e.DropDownActionMenu,o.DropDownPlacement=e.DropDownPlacement,o.FormItemWrapper=e.FormItemWrapper,o.Gradients=e.Gradients,o.Grid=e.Grid,o.Headline=e.Headline,o.HeadlineSize=e.HeadlineSize,o.Icon=e.Icon,o.IconToggleButtons=e.IconToggleButtons,o.Inline=e.Inline,o.Input=e.Input,o.KXIcons=e.KXIcons,o.LinkButton=e.LinkButton,o.MenuItem=e.MenuItem,o.NotificationBarAlert=e.NotificationBarAlert,o.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.SnackbarItemVariant=e.SnackbarItemVariant,o.Spacing=e.Spacing,o.Spinner=e.Spinner,o.Stack=e.Stack,o.StickyHeader=e.StickyHeader,o.Table=e.Table,o.Tag=e.Tag,o.TextArea=e.TextArea,o.TextWithLabel=e.TextWithLabel,o.Tooltip=e.Tooltip,o.TooltipPlacement=e.TooltipPlacement,o.TreeNode=e.TreeNode,o.TreeNodeLeadingIcon=e.TreeNodeLeadingIcon,o.TreeNodeTitle=e.TreeNodeTitle,o.TreeView=e.TreeView,o.UploadTile=e.UploadTile,o.UploadTileSize=e.UploadTileSize,o.ViewMenu=e.ViewMenu,o.Zindex=e.Zindex,o.createSelectGroup=e.createSelectGroup,o.dialogConfig=e.dialogConfig,o.useHandleClickOutside=e.useHandleClickOutside,o.useMediaBreakpoints=e.useMediaBreakpoints,o.useMobileKeyboard=e.useMobileKeyboard,o.useScrollDown=e.useScrollDown,o.useSnackbar=e.useSnackbar,o.useTheme=e.useTheme,o.useWindowDimensions=e.useWindowDimensions},function(e){i.createPortal=e.createPortal,i.default=e.default}],execute:function(){e((()=>{var e={7993:(e,t)=>{"use strict";t.Z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return r(e[0],e[1])||null;var n=e.slice(1).reduce((function(e,t){return r(e,t)}),e[0]);return n||null};var n=new WeakMap;function r(e,t){if(e&&t){var r=n.get(e)||new WeakMap;n.set(e,r);var i=r.get(t)||function(n){o(e,n),o(t,n)};return r.set(t,i),i}return e||t}function o(e,t){"function"==typeof e?e(t):e.current=t}},7608:(e,t)=>{var n;
2
- /*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},3246:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},7979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},6891:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},2195:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},1262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4732:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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);min-width:300px;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,eAAe,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);min-width:300px;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},8296:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},9321:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},9018:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4415:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},8766:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},5183:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},7941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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}.container___e30xz .tag-spacer___5i7nP{margin-right:4px}.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,uCAAuB,gBAAgB,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}.container .tag-spacer{margin-right:4px}.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},2797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4844:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},5544:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},43:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3206:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},7666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3804:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},127:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},9997:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},1150:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4353:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},111:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3935:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},5836:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},1455:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3796:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},265:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},9949:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},6443:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4694:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3775:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),a=n.n(i)()(o());a.push([e.id,".status-bar___FbKL4{display:flex;min-height:40px;margin:16px 28px 16px 16px;justify-content:space-between;z-index:1000}.status-bar___FbKL4 .left___ohuGv{display:flex;gap:16px;flex-grow:1;flex-shrink:100000}.status-bar___FbKL4 .right___lmzyr{display:flex;justify-content:flex-end;flex-shrink:1;gap:40px}.paper___M_7Mt{overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 98px)}.main___YYhDJ{width:224px}.submenu-1____Z4lV{margin-top:4px;margin-left:16px;border-radius:8px;width:192px;background-color:var(--color-shelf-background)}.submenu-2___sfJtL{margin-top:4px;margin-left:8px;border-radius:8px;width:min(168px,100% - 8px);background-color:var(--color-shelf-background)}","",{version:3,sources:["webpack://./src/template-components/secondary-menu/SecondaryMenuWrapper.module.scss"],names:[],mappings:"AAAA,oBAAY,YAAY,CAAC,eAAe,CAAC,0BAA0B,CAAC,6BAA6B,CAAC,YAAY,CAAC,kCAAkB,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,kBAAkB,CAAC,mCAAmB,YAAY,CAAC,wBAAwB,CAAC,aAAa,CAAC,QAAQ,CAAC,eAAO,eAAe,CAAC,iBAAiB,CAAC,6BAA6B,CAAC,cAAM,WAAW,CAAC,mBAAW,cAAc,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,WAAW,CAAC,8CAA8C,CAAC,mBAAW,cAAc,CAAC,eAAe,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,8CAA8C",sourcesContent:[".status-bar{display:flex;min-height:40px;margin:16px 28px 16px 16px;justify-content:space-between;z-index:1000}.status-bar .left{display:flex;gap:16px;flex-grow:1;flex-shrink:100000}.status-bar .right{display:flex;justify-content:flex-end;flex-shrink:1;gap:40px}.paper{overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 98px)}.main{width:224px}.submenu-1{margin-top:4px;margin-left:16px;border-radius:8px;width:192px;background-color:var(--color-shelf-background)}.submenu-2{margin-top:4px;margin-left:8px;border-radius:8px;width:min(168px,100% - 8px);background-color:var(--color-shelf-background)}"],sourceRoot:""}]),a.locals={"status-bar":"status-bar___FbKL4",statusBar:"status-bar___FbKL4",left:"left___ohuGv",right:"right___lmzyr",paper:"paper___M_7Mt",main:"main___YYhDJ","submenu-1":"submenu-1____Z4lV",submenu1:"submenu-1____Z4lV","submenu-2":"submenu-2___sfJtL",submenu2:"submenu-2___sfJtL"};const s=a},353:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3497:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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}","",{version:3,sources:["webpack://./src/template-components/side-panel/TemplateSidePanel.module.scss"],names:[],mappings:"AAAA,oBAAY,WAAW,CAAC,yBAAiB,uBAAkB,CAAlB,kBAAkB,CAAC,mBAAmB",sourcesContent:[".side-panel{right:104px}.content-wrapper{height:fit-content;padding-bottom:24px}"],sourceRoot:""}]),a.locals={"side-panel":"side-panel___w53xb",sidePanel:"side-panel___w53xb","content-wrapper":"content-wrapper___drJGl",contentWrapper:"content-wrapper___drJGl"};const s=a},7635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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:2000;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:2000;bottom:0;position:fixed}"],sourceRoot:""}]),a.locals={"application-menu-mobile":"application-menu-mobile___LrbEB",applicationMenuMobile:"application-menu-mobile___LrbEB"};const s=a},9308:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9778),o=n.n(r),i=n(6577),a=n.n(i),s=n(7923),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;height:100vh;z-index:2000;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:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);z-index:2001;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,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,wCAAwC,CAAC,mEAAmE,CAAC,YAAY,CAAC,iBAAiB,CAAC,qCAA6B,UAAU",sourcesContent:['.side-bar{width:96px;height:100vh;z-index:2000;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:var(--color-paper-background);box-shadow:0 8px 14px rgba(38,38,38,.08),0 0 8px rgba(38,38,38,.03);z-index:2001;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},9848:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),a=n.n(i)()(o());a.push([e.id,'.overlay___wZiFU{position:relative}.overlay___wZiFU::after{content:" ";z-index:1999;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);box-shadow:0 8px 16px rgba(38,38,38,.16),0 0 8px rgba(38,38,38,.03);transition:width 500ms cubic-bezier(0.23, 1, 0.32, 1);z-index:2000}.container___BSXXm.visible___zF80u{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,mEAAmE,CAAC,qDAAqD,CAAC,YAAY,CAAC,mCAAmB,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:1999;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);box-shadow:0 8px 16px rgba(38,38,38,.16),0 0 8px rgba(38,38,38,.03);transition:width 500ms cubic-bezier(0.23, 1, 0.32, 1);z-index:2000}.container.visible{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},1602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3249:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},8467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},8239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9778),o=n.n(r),i=n(6577),a=n.n(i),s=n(7923),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:2000;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:2000;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},619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4333:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},1026:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},3437:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(9778),o=n.n(r),i=n(6577),a=n.n(i),s=n(7923),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},8004:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),a=n.n(i)()(o());a.push([e.id,".status-bar___maJdl{display:flex;min-height:40px;margin:16px 28px 16px 16px;justify-content:space-between;z-index:1000}.status-bar___maJdl .left___Fmj67{display:flex;gap:16px;flex-grow:1;flex-shrink:100000}.status-bar___maJdl .right___rbzxw{display:flex;justify-content:flex-end;flex-shrink:1;gap:40px}","",{version:3,sources:["webpack://./src/templates/app/status-bar/StatusBar.module.scss"],names:[],mappings:"AAAA,oBAAY,YAAY,CAAC,eAAe,CAAC,0BAA0B,CAAC,6BAA6B,CAAC,YAAY,CAAC,kCAAkB,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,kBAAkB,CAAC,mCAAmB,YAAY,CAAC,wBAAwB,CAAC,aAAa,CAAC,QAAQ",sourcesContent:[".status-bar{display:flex;min-height:40px;margin:16px 28px 16px 16px;justify-content:space-between;z-index:1000}.status-bar .left{display:flex;gap:16px;flex-grow:1;flex-shrink:100000}.status-bar .right{display:flex;justify-content:flex-end;flex-shrink:1;gap:40px}"],sourceRoot:""}]),a.locals={"status-bar":"status-bar___maJdl",statusBar:"status-bar___maJdl",left:"left___Fmj67",right:"right___rbzxw"};const s=a},8822:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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}@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,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}@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","side-column":"side-column___a1Vob",sideColumn:"side-column___a1Vob"};const s=a},1896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},1098:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4622:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},2746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},2949:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},2316:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),a=n.n(i)()(o());a.push([e.id,".wrapper___bwmDp{padding-bottom:16px}.actions___xnPgg{padding-bottom:16px;display:flex}.filter___ilVTv{flex-grow:1;min-width:120px}.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,gBAAQ,WAAW,CAAC,eAAe,CAAC,oBAAY,gBAAgB,CAAC,YAAY,CAAC,kBAAkB,CAAC,4BAAoB,SAAS",sourcesContent:[".wrapper{padding-bottom:16px}.actions{padding-bottom:16px;display:flex}.filter{flex-grow:1;min-width:120px}.pagination{padding-top:16px;display:flex;align-items:center}.pagination-wrapper{width:50%}"],sourceRoot:""}]),a.locals={wrapper:"wrapper___bwmDp",actions:"actions___xnPgg",filter:"filter___ilVTv",pagination:"pagination___eRWbv","pagination-wrapper":"pagination-wrapper___eLb1L",paginationWrapper:"pagination-wrapper___eLb1L"};const s=a},5597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},2759:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},9360:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},642:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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 16px 8px;margin-left:-8px}.template-wrapper___OOHqB>.content-wrapper-flexible___GYKpu .template-wrapper___OOHqB{padding:0}.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 16px 24px}","",{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,oBAAoB,CAAC,gBAAgB,CAAC,sFAA8D,SAAS,CAAC,kDAAkC,MAAM,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,sEAAsD,qBAAqB",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 16px 8px;margin-left:-8px}.template-wrapper>.content-wrapper-flexible .template-wrapper{padding:0}.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 16px 24px}"],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","template-wrapper-with-menu":"template-wrapper-with-menu___SpVTF",templateWrapperWithMenu:"template-wrapper-with-menu___SpVTF"};const s=a},9217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},4379:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},5847:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},7833:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},2939:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},2488:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9778),o=n.n(r),i=n(6577),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},6577: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}},7923: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}},9778: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," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([i]).join("\n")}return[t].join("\n")}},6699:function(e){
7
- /*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.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){return i(e)||a(e)||s(e)||c()}function i(e){if(Array.isArray(e))return l(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,d=Object.setPrototypeOf,p=Object.isFrozen,f=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor,g=Object.freeze,h=Object.seal,A=Object.create,v="undefined"!=typeof Reflect&&Reflect,b=v.apply,C=v.construct;b||(b=function(e,t,n){return e.apply(t,n)}),g||(g=function(e){return e}),h||(h=function(e){return e}),C||(C=function(e,t){return r(e,o(t))});var x=k(Array.prototype.forEach),y=k(Array.prototype.pop),w=k(Array.prototype.push),_=k(String.prototype.toLowerCase),O=k(String.prototype.match),S=k(String.prototype.replace),j=k(String.prototype.indexOf),T=k(String.prototype.trim),D=k(RegExp.prototype.test),B=P(TypeError);function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function P(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(e,n)}}function E(e,t,n){n=n||_,d&&d(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(p(t)||(t[r]=i),o=i)}e[o]=!0}return e}function I(e){var t,n=A(null);for(t in e)b(u,e,[t])&&(n[t]=e[t]);return n}function M(e,t){for(;null!==e;){var n=m(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var N=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),W=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=g(["#text"]),V=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Y=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Z=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=h(/<%[\w\W]*|[\w\W]*%>/gm),Q=h(/^data-[\-\w.\u00B7-\uFFFF]/),X=h(/^aria-[\-\w]+$/),K=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=h(/^(?:\w+script|data):/i),$=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=h(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=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 re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,p=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,m=t.DOMParser,h=t.trustedTypes,A=c.prototype,v=M(A,"cloneNode"),b=M(A,"nextSibling"),C=M(A,"childNodes"),k=M(A,"parentNode");if("function"==typeof s){var P=i.createElement("template");P.content&&P.content.ownerDocument&&(i=P.content.ownerDocument)}var oe=ne(h,r),ie=oe?oe.createHTML(""):"",ae=i,se=ae.implementation,le=ae.createNodeIterator,ce=ae.createDocumentFragment,ue=ae.getElementsByTagName,de=r.importNode,pe={};try{pe=I(i).documentMode?i.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof k&&se&&void 0!==se.createHTMLDocument&&9!==pe;var me,ge,he=G,Ae=q,ve=Q,be=X,Ce=J,xe=$,ye=K,we=null,_e=E({},[].concat(o(N),o(L),o(R),o(F),o(H))),Oe=null,Se=E({},[].concat(o(V),o(Y),o(Z),o(U))),je=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}})),Te=null,De=null,Be=!0,ke=!0,Pe=!1,Ee=!1,Ie=!1,Me=!1,Ne=!1,Le=!1,Re=!1,ze=!1,Fe=!0,We=!1,He="user-content-",Ve=!0,Ye=!1,Ze={},Ue=null,Ge=E({},["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"]),qe=null,Qe=E({},["audio","video","img","source","image","track"]),Xe=null,Ke=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,rt=["application/xhtml+xml","text/html"],ot="text/html",it=null,at=i.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},lt=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=I(t),me=me=-1===rt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===me?function(e){return e}:_,we="ALLOWED_TAGS"in t?E({},t.ALLOWED_TAGS,ge):_e,Oe="ALLOWED_ATTR"in t?E({},t.ALLOWED_ATTR,ge):Se,Xe="ADD_URI_SAFE_ATTR"in t?E(I(Ke),t.ADD_URI_SAFE_ATTR,ge):Ke,qe="ADD_DATA_URI_TAGS"in t?E(I(Qe),t.ADD_DATA_URI_TAGS,ge):Qe,Ue="FORBID_CONTENTS"in t?E({},t.FORBID_CONTENTS,ge):Ge,Te="FORBID_TAGS"in t?E({},t.FORBID_TAGS,ge):{},De="FORBID_ATTR"in t?E({},t.FORBID_ATTR,ge):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Be=!1!==t.ALLOW_ARIA_ATTR,ke=!1!==t.ALLOW_DATA_ATTR,Pe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=t.SAFE_FOR_TEMPLATES||!1,Ie=t.WHOLE_DOCUMENT||!1,Le=t.RETURN_DOM||!1,Re=t.RETURN_DOM_FRAGMENT||!1,ze=t.RETURN_TRUSTED_TYPE||!1,Ne=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ve=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,ye=t.ALLOWED_URI_REGEXP||ye,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&st(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&st(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(ke=!1),Re&&(Le=!0),Ze&&(we=E({},o(H)),Oe=[],!0===Ze.html&&(E(we,N),E(Oe,V)),!0===Ze.svg&&(E(we,L),E(Oe,Y),E(Oe,U)),!0===Ze.svgFilters&&(E(we,R),E(Oe,Y),E(Oe,U)),!0===Ze.mathMl&&(E(we,F),E(Oe,Z),E(Oe,U))),t.ADD_TAGS&&(we===_e&&(we=I(we)),E(we,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Oe===Se&&(Oe=I(Oe)),E(Oe,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&E(Xe,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Ue===Ge&&(Ue=I(Ue)),E(Ue,t.FORBID_CONTENTS,ge)),Ve&&(we["#text"]=!0),Ie&&E(we,["html","head","body"]),we.table&&(E(we,["tbody"]),delete Te.tbody),g&&g(t),it=t)},ct=E({},["mi","mo","mn","ms","mtext"]),ut=E({},["foreignobject","desc","title","annotation-xml"]),dt=E({},["title","style","font","a","script"]),pt=E({},L);E(pt,R),E(pt,z);var ft=E({},F);E(ft,W);var mt=function(e){var t=k(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return e.namespaceURI===$e?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(pt[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===$e?"math"===n&&ut[r]:Boolean(ft[n]):e.namespaceURI===et&&!(t.namespaceURI===$e&&!ut[r])&&!(t.namespaceURI===Je&&!ct[r])&&!ft[n]&&(dt[n]||!pt[n])},gt=function(e){w(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},ht=function(e,t){try{w(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Le||Re)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},At=function(e){var t,n;if(Ne)e="<remove></remove>"+e;else{var r=O(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new m).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),tt===et?ue.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:a},vt=function(e){return le.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},bt=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)},Ct=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(e,t,r){fe[e]&&x(fe[e],(function(e){e.call(n,t,r,it)}))},yt=function(e){var t;if(xt("beforeSanitizeElements",e,null),bt(e))return gt(e),!0;if(D(/[\u0080-\uFFFF]/,e.nodeName))return gt(e),!0;var r=ge(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:r,allowedTags:we}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&(!Ct(e.content)||!Ct(e.content.firstElementChild))&&D(/<[/\w]/g,e.innerHTML)&&D(/<[/\w]/g,e.textContent))return gt(e),!0;if("select"===r&&D(/<template/i,e.innerHTML))return gt(e),!0;if(!we[r]||Te[r]){if(!Te[r]&&_t(r)){if(je.tagNameCheck instanceof RegExp&&D(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Ve&&!Ue[r]){var o=k(e)||e.parentNode,i=C(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(v(i[a],!0),b(e))}return gt(e),!0}return e instanceof c&&!mt(e)?(gt(e),!0):"noscript"!==r&&"noembed"!==r||!D(/<\/no(script|embed)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,t=S(t,he," "),t=S(t,Ae," "),e.textContent!==t&&(w(n.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(gt(e),!0)},wt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in i||n in at))return!1;if(ke&&!De[t]&&D(ve,t));else if(Be&&D(be,t));else if(!Oe[t]||De[t]){if(!(_t(e)&&(je.tagNameCheck instanceof RegExp&&D(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&D(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&D(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if(Xe[t]);else if(D(ye,S(n,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==j(n,"data:")||!qe[e])if(Pe&&!D(Ce,S(n,xe,"")));else if(n)return!1;return!0},_t=function(e){return e.indexOf("-")>0},Ot=function(t){var r,o,i,a;xt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(a=s.length;a--;){var c=r=s[a],u=c.name,d=c.namespaceURI;if(o="value"===u?r.value:T(r.value),i=ge(u),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,xt("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(ht(u,t),l.keepAttr))if(D(/\/>/i,o))ht(u,t);else{Ee&&(o=S(o,he," "),o=S(o,Ae," "));var p=ge(t.nodeName);if(wt(p,i,o)){if(!We||"id"!==i&&"name"!==i||(ht(u,t),o=He+o),oe&&"object"===e(h)&&"function"==typeof h.getAttributeType)if(d);else switch(h.getAttributeType(p,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{d?t.setAttributeNS(d,u,o):t.setAttribute(u,o),y(n.removed)}catch(e){}}}}xt("afterSanitizeAttributes",t,null)}},St=function e(t){var n,r=vt(t);for(xt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),yt(n)||(n.content instanceof a&&e(n.content),Ot(n));xt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var i,s,c,u,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!Ct(o)){if("function"!=typeof o.toString)throw B("toString is not a function");if("string"!=typeof(o=o.toString()))throw B("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(Ct(o))return t.toStaticHTML(o.outerHTML)}return o}if(Me||lt(p),n.removed=[],"string"==typeof o&&(Ye=!1),Ye){if(o.nodeName){var f=ge(o.nodeName);if(!we[f]||Te[f])throw B("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof l)1===(s=(i=At("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Le&&!Ee&&!Ie&&-1===o.indexOf("<"))return oe&&ze?oe.createHTML(o):o;if(!(i=At(o)))return Le?null:ze?ie:""}i&&Ne&&gt(i.firstChild);for(var m=vt(Ye?o:i);c=m.nextNode();)3===c.nodeType&&c===u||yt(c)||(c.content instanceof a&&St(c.content),Ot(c),u=c);if(u=null,Ye)return o;if(Le){if(Re)for(d=ce.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return Oe.shadowroot&&(d=de.call(r,d,!0)),d}var g=Ie?i.outerHTML:i.innerHTML;return Ie&&we["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&D(ee,i.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+g),Ee&&(g=S(g,he," "),g=S(g,Ae," ")),oe&&ze?oe.createHTML(g):g},n.setConfig=function(e){lt(e),Me=!0},n.clearConfig=function(){it=null,Me=!1},n.isValidAttribute=function(e,t,n){it||lt({});var r=ge(e),o=ge(t);return wt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],w(fe[e],t))},n.removeHook=function(e){if(fe[e])return y(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}return re()}()},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)},3993: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}}},2334: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)}},9808:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},1808:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7899: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)}}}},9297: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))}}},3341:(e,t,n)=>{const r=n(9956).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)}},9956:(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},1855:(e,t,n)=>{var r=n(2668).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="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=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 T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===f)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=p(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f={};function m(){}function g(){}function h(){}var A={};u(A,s,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(j([])));b&&b!==n&&i.call(b,s)&&(A=b);var C=h.prototype=m.prototype=Object.create(A);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function n(o,a,s,l){var c=p(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;this._invoke=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 w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function j(e){if(e){var t=e[s];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:T}}function T(){return{value:void 0,done:!0}}return g.prototype=h,u(C,"constructor",h),u(h,"constructor",g),g.displayName=u(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},x(y.prototype),u(y.prototype,l,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new y(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(C),u(C,c,"Generator"),u(C,s,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,S.prototype={constructor:S,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(O),!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,f):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),f},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),O(n),f}},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;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},2668: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},7080:(e,t,n)=>{var r=n(1855)();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(3341).s)(1),(()=>{"use strict";s.r(l),s.d(l,{ActionButton:()=>uf,ActionLinkButton:()=>vf,ActionType:()=>t,AntiForgeryProvider:()=>Hp,AppLinkButton:()=>mf,AppTemplate:()=>aA,AssetFolderTreeView:()=>Xt,AssetPanel:()=>ur,AssetPanelContent:()=>ir,AssetRichTextEditorPlugin:()=>Ad,AssetSelectorExtensionValidationRule:()=>ip,AssetSelectorFormComponent:()=>yr,AssetSelectorValidationRule:()=>op,AssetTileHidden:()=>On,AssetsLoader:()=>Dn,AutoRefreshCardComponent:()=>Fm,BreadcrumbsContext:()=>Zf,BreadcrumbsProvider:()=>Wv,BuilderEditTemplate:()=>Mb,Callout:()=>af,CheckboxFormComponent:()=>_r,CodeEditorFormComponent:()=>Ld,ComponentType:()=>Em,ConditionBuilderFormComponent:()=>ci,ConditionBuilderOverview:()=>oo,ConditionBuilderOverviewCardComponent:()=>Hm,ConditionBuilderTemplate:()=>FA,ConfirmationDialog:()=>Sf,ContentWithSidebarLayoutWrapper:()=>ym,CustomRightSidebarProvider:()=>Gp,DashboardTemplate:()=>AA,DateFormatValidationRule:()=>Cp,DateInputFormComponent:()=>Ai,DateTimeInputFormComponent:()=>wi,DebouncerTime:()=>q,DecimalFormatValidationRule:()=>bp,DecimalNumberInputFormComponent:()=>Oi,DropDownSelectorFormComponent:()=>Mo,DropDownSelectorParameterOverview:()=>ao,EditTemplate:()=>DA,EditableObjectStatusContext:()=>Rd,EditableObjectStatusProvider:()=>Wd,EmailPreviewTemplate:()=>Fb,EmailValidationRule:()=>up,ExtensionSelectorFormComponent:()=>ji,FieldEditorCommands:()=>Lv,FieldEditorTemplate:()=>Rv,Form:()=>Kd,FormCardComponent:()=>Vm,FormContext:()=>lo,FormFieldContext:()=>Bo,FormSubmissionStatus:()=>so,IconSelectorFormComponent:()=>ki,IdentifierValidationRule:()=>mp,ListingTemplate:()=>KA,Loader:()=>bg,LocalizationContext:()=>C,LocalizationProvider:()=>w,LogonPath:()=>Op,MacroWrapperFormComponent:()=>Li,MaxItemsValidationRule:()=>lp,MaxLengthValidationRule:()=>Jd,MaximumNumberValidationRule:()=>Ap,MinLengthValidationRule:()=>$d,MinimumNumberValidationRule:()=>vp,NamespaceCodeNameFormComponent:()=>Wi,NestedPageProvider:()=>Kp,NoLicenseTemplate:()=>EA,NotificationMessageType:()=>n,NotificationsContext:()=>L,NotificationsProvider:()=>z,NumberInputFormComponent:()=>Hi,NumberInputParameterOverview:()=>io,ObjectCodeNameSelectorParameterOverview:()=>yo,ObjectSelectorBase:()=>od,ObjectSelectorFormComponent:()=>ad,ObjectSelectorParameterOverview:()=>Co,ObjectSelectorValidationRule:()=>ap,OverviewCard:()=>Mf,OverviewCommands:()=>Rm,OverviewTemplate:()=>zm,PageLocation:()=>Vf,PageMessagePane:()=>jg,ParameterSimpleOverview:()=>Ur,ParameterText:()=>Zr,PasswordFormComponent:()=>dd,PermissionsTemplate:()=>iC,Portal:()=>Tg,PromptDialog:()=>ig,PromptDialogComponent:()=>og,PromptDialogProvider:()=>ug,PropertiesDialog:()=>Bm,PropertiesDialogProvider:()=>Mm,RadioGroupFormComponent:()=>md,RefetchAllProvider:()=>_p,RequiredValueValidationRule:()=>ep,RichTextEditorFormComponent:()=>hd,RoutingContentPlaceholder:()=>zg,SecondaryMenuNavigationContext:()=>vA,SecondaryMenuNavigationProvider:()=>yA,SectionLayoutTemplate:()=>Cv,ServerValidationRule:()=>cp,SettingsDetailsTemplate:()=>jb,SettingsLayoutTemplate:()=>gb,SettingsSearchTemplate:()=>Db,SideNavigationLayoutTemplate:()=>Zv,StringContentCardComponent:()=>Ym,TagListCardComponent:()=>Xm,TemplateDialog:()=>vm,TemplateDialogProvider:()=>mm,TemplateLoader:()=>Jf,TemplatePropertiesContext:()=>Hf,TemplatePropertiesProvider:()=>Yf,TemplateSideMenu:()=>am,TemplateSidePanelProvider:()=>um,TextAreaActionButton:()=>xf,TextAreaCopyButton:()=>Of,TextAreaFormComponent:()=>_d,TextInputFormComponent:()=>vd,TextWithLabelFormComponent:()=>wd,TreeTemplate:()=>$v,UnorderedListCardComponent:()=>eg,ValidationRuleListFormComponent:()=>Nd,ViewMenuItem:()=>kg,findLastIndex:()=>Lp,getBaseUri:()=>Y,getLogonUrl:()=>jp,getPathWithoutBasePath:()=>Z,getReturnUrl:()=>Tp,handleResponseStatus:()=>Np,keysToCamelCase:()=>Nm,postToAdmin:()=>Mp,useAntiForgery:()=>Wp,useAssetDataManager:()=>Vn,useAssetPanel:()=>$n,useAssetTilesColumnCount:()=>Xn,useAssetsInfiniteScroll:()=>Gn,useBlocker:()=>T,useBreadcrumbs:()=>Gf,useComponent:()=>k,useCustomRightSidebarContext:()=>Up,useDisplayDialogInFullscreen:()=>go,useEditableObjectStatusObservee:()=>Fd,useEditableObjectStatusObserver:()=>zd,useFieldInfoObject:()=>P,useFormComponentCommand:()=>po,useFormComponentCommandProvider:()=>fo,useInterval:()=>E,useLinkRetriever:()=>xp,useLocalization:()=>x,useNestedPage:()=>Xp,useNotificationMessage:()=>W,useNotifications:()=>R,usePageCommand:()=>tf,usePageCommandProvider:()=>O,usePagePath:()=>U,usePrompt:()=>sg,usePropertiesDialog:()=>Im,useRefetchAllContext:()=>wp,useSecondaryMenuNavigation:()=>bA,useSelectorStatusText:()=>Ao,useTemplateDialog:()=>fm,useTemplateSidePanel:()=>cm,useValidationRule:()=>mo});var e={};s.r(e),s.d(e,{FILE:()=>Mt,HTML:()=>Rt,TEXT:()=>Lt,URL:()=>Nt});var t,n,r=s(5954),o=s(4880),i=s(3271);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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 u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(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(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 f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,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}}(e,t)||p(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 m(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 g=s(7080),h=s.n(g),A=s(6699),v=s.n(A);const b=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":"Are you sure you want to change the page template?\\r\\n\\r\\nAll page content, i.e. widgets and sections with their data and properties, will be lost.\\r\\n\\r\\nPress OK to continue or Cancel to keep this template.","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"},"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"}}},"plugins":{"insertLink":{"buttonLabel":"Insert link","options":{"asset":{"title":"Media file","tooltip":"Insert link to a file from a media library.","panelHeadline":"Select media file to link","selectButtonLabel":"Insert","disabledOptionTooltip":"Cannot insert link to a file from a media library. No available library to select the files from.","noExistingLibrary":"Cannot insert link to a file from a media library. No available library to select the files from."},"external":{"title":"Web URL","tooltip":"Insert link to an external website or resource."},"page":{"title":"Page","tooltip":"Insert link to a page from the content tree.","panelHeadline":"Select page to link","selectButtonLabel":"Insert"}}}},"properties":{"url":{"headline":"URL"}},"contentItems":{"content":"Content","archived":{"tooltip":"This content item is archived."},"unpublished":{"tooltip":"This content item has not been published yet."}}},"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","enterUserName":"Enter a user name","forgottenPassword":"Forgotten password"},"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","emailInvalid":"Entered text must be 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."},"register":{"signUp":"Sign Up","userName":"User name","password":"Password","buttonLabel":"Sign Up","linkExpired":"The registration link has expired"}},"base":{"fetch":{"unexpectedError":"We have encountered an unexpected error. Error status code:","networkError":"We have encountered an unexpected error. Original error status:"},"notFound":{"title":"Ooops!","text":"The page you were looking for could not be found (404 Error)."},"command":{"forbiddenAccess":"<b>Access Denied</b><br>You don\'t have the permission to perform this action. If you think this is an error, contact your administrator."},"template":{"errorTitle":"Something went wrong!","errorText":"We have encountered an unexpected error.","errorReload":"Reload page","goToDashboard":"Go to dashboard","forbiddenAccessTitle":"Access Denied","forbiddenAccessText":"You don\'t have permission to access this application. If you think this is an error, contact your administrator."},"listing":{"noDataTitle":"There are no records to display","search":{"noSearchResultTitle":"We couldn\'t find any match","noSearchResultText":"Try rephrasing your search phrase or start over","clearButtonLabel":"Clear your search phrase here","placeholder":"Search"},"table":{"selectRow":"Select row","selectAllRows":"Select all rows"}},"permissions":{"save":"Save","delete":"Delete","noDataTitle":"There are no records to display","noChangesToSave":"There are no unsaved changes.","newPermissionSetButtonLabel":"Add permission set","permissionSetLabel1":"For application","permissionSetLabel2":"allow users to","appSelectPlaceholder":"Choose an application","appSelectApplicationDisabled":"Permission set for this application is already defined","appSelectValidation":"Please select an application."},"settings":{"settings":"Settings","save":"Save","searchPlaceholder":"Search in Settings","noSettingsTitle":"There are no settings to display","noSettingsText":"This category does not contain any settings or you are not allowed to view these settings. Try selecting a sub-category if available.","noSettingsFoundTitle":"No matches found","noSettingsFoundText":"Try adjusting your search phrase","settingFound":"setting found","settingsFound":"settings found","noSearchPhrase":"Enter a search phrase","clearSearchPhrase":"Clear search phrase"},"edit":{"noElementTitle":"There is no form element to display.","noElementText":"This can be caused by a form misconfiguration or an unexpected error."},"app":{"profile":"Account","signOut":"Sign out","applicationList":{"searchPlaceholder":"Search for all applications","noApplicationsFound":"No matching applications found.","search":"Search","applications":"Applications","list":"View as list","tiles":"View as tiles"},"siteSelector":{"sites":"Sites","siteUnavailable":"Site unavailable","noSitesAvailable":"No sites available"},"applicationMenuMobile":{"home":"Home","applications":"Applications"}},"dashboard":{"home":"Home","applications":"Applications"},"fieldEditor":{"deleteField":"Delete field","fieldsCollectionEmpty":"The collection of fields is empty.","fieldRequired":"Required","fieldVisible":"This field is visible in the editing form","fieldInvisible":"This field is not visible in the editing form","save":"Save","cancel":"Cancel","newFieldButtonLabel":"New field","newCategoryButtonLabel":"New category","newField":"New field","newCategory":"New category","fundamentalField":"This field is fundamental so it cannot be deleted","cancelConfirmation":"Changes you made are not saved. Do you want to discard the unsaved changes?","deleteConfirmation":"Are you sure to remove the field?","categoryIndicator":"Category"},"callout":{"quickTip":"Quick tip","friendlyWarning":"Friendly warning"},"conditionBuilder":{"addGroupLabel":"Add condition group","addConditionLabel":"Add another condition","and":"And","cancelConfirmation":"Changes you made are not saved. Do you want to discard the unsaved changes?","conditionPickerHeadline":"Pick a suitable condition","conditionPickerNoData":"No matching results found","conditionPickerSearch":"Search","deleteConditionTooltip":"Remove condition","deleteConditionGroupTooltip":"Remove condition group","textBeforeOperatorSelector":"Applies if:","textAfterOperatorSelector":"of the following condition groups are fulfilled.","textBeforeOperatorSelectorInConditionGroup":"Applies if:","textAfterOperatorSelectorInConditionGroup":"of the following conditions are fulfilled.","or":"Or","overview":{"headlineBeforeOperator":"Applies if","headlineAfterOperator":"of the following conditions are fulfilled:","all":"All","any":"Any","emptyCondition":"Conditions not defined yet.","loaderError":"An unexpected error occurred and your conditions couldn\'t be loaded."}},"assetPanel":{"headline":"Media panel","actionButtonLabel":"Select file","cancelButtonLabel":"Cancel","noExistingLibrary":"Cannot insert file from a media library. No available library to select the files from."},"assetPanelContent":{"fileCounter":{"default":"Files","selected":"Files selected"}},"assetLoader":{"loadMore":"Loading more items..."},"assetUploadTile":{"buttonLabel":"Browse","firstLine":"Drag&Drop files here","secondLine":"or","inactiveMessage":"Upload currently unavailable. Another upload is already in progress."},"formComponent":{"conditionBuilder":{"editButton":{"edit":"Edit condition","add":"Add condition"},"editDialogConfirm":"Apply","editDialogCancel":"Cancel","editDialogHeader":"Create your own condition"},"dateInput":{"today":"TODAY"},"dateTimeInput":{"now":"NOW","save":"SAVE"},"richTextEditor":{"insertImage":{"headline":"Insert image","actionButtonLabel":"Insert","buttonLabel":"Insert image","disabledButtonTooltip":"Cannot insert image. No available library to select the files from.","noExistingLibrary":"Cannot insert image. No available library to select the files from."}},"namespaceCodeName":{"explanationText":"<ul><li>Only alphanumeric characters and underscores allowed</li><li>Must begin with a letter or an underscore</li></ul>","namespace":"Namespace","name":"Name"},"assetSelector":{"library":"Media Library","selectAssets":"Select or Drag&Drop files from a","dropTileText":"Dropping item"},"objectSelector":{"invalidItemName":"DELETED ITEM","statusTextMultiple":"Select up to {0} items","statusTextSingle":"Select 1 item","statusTextSingleWithCurrentCount":"Selected {0} item, maximum is {1}","statusTextMultipleWithCurrentCount":"Selected {0} items, maximum is {1}"},"formSelector":{"editInFormsButton":"Edit in forms"},"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","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"}}}}}}');var C=r.default.createContext({});C.displayName="LocalizationContext";var x=function(){return r.default.useContext(C)},y=s(7458),w=function(e){var t=e.children;return(0,y.jsx)(C.Provider,{value:{localization:b},children:t})},_=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.")}});_.displayName="CommandContext";var O=function(){return(0,r.useContext)(_)};function S(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 j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,r.useRef)({}),i=(0,r.useContext)(o.UNSAFE_NavigationContext),a=i.navigator;return(0,r.useEffect)((function(){if(t){var r=a.block((function(t){t.location.pathname!==window.location.pathname&&(n.current=j(j({},t),{},{retry:function(){r(),t.retry()}}),e(n.current))}));return r}}),[a,e,t]),n.current}var D=function(e,t){return System.import(e).then((function(e){return{default:e[t]}}))},B=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:D)(r.packageName,r.importName)}var o;throw new Error("Missing leading '@' character in filename. Current filename '".concat(e,"'."))};function k(e,t){var n=f((0,r.useState)(null),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){i((0,r.lazy)((function(){return B(e,t)})))}),[e,t]),o}var P=function(e,t){var n=f((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 E(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 I(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(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 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 N(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){a(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 L=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:[]});L.displayName="NotificationsContext";var R=function(){return r.default.useContext(L)},z=function(e){var t=e.children,o=f((0,r.useState)(!1),2),i=o[0],a=o[1],s=f((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(I(t),[N(N({},e),{},{id:e.id||(new Date).getTime()+Math.random(),onClose:u})])}))}),[u]),p=(0,r.useCallback)((function(e){return e===n.Error}),[]),m=(0,r.useCallback)((function(){c([])}),[]);return(0,y.jsx)(L.Provider,{value:{redirectToDialog:i,messages:l,removeDialogMessage:u,addDialogMessage:d,canProcessMessageType:p,setRedirectToDialog:a,clearMessages:m},children:t})},F=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 W(){var e=(0,i.useSnackbar)(),t=e.addMessage,n=e.clearMessages,o=R(),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:F(e.type),messageAsHtml:e.messageAsHtml})}),[l,s,t]),clearMessages:(0,r.useCallback)((function(){n(),c()}),[n,c])}}var H=function(e,t){if(!e||"/"===e)return"/";var n=V(e);if(!t)return n;var r=V(t);return(n.toUpperCase()+"/").startsWith(r.toUpperCase()+"/")?n.substr(r.length)||"/":n},V=function(e){return"/"+e.replace(/\/+$/g,"").replace(/^\/+/g,"")},Y=function(){return new URL(document.baseURI||"/")},Z=function(e){return H(e,Y().pathname)},U=function(){return Z((0,o.useResolvedPath)("").pathname).substring(1)};function G(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 q=1e3;function Q(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}}const X="dnd-core/INIT_COORDS",K="dnd-core/BEGIN_DRAG",J="dnd-core/PUBLISH_DRAG_SOURCE",$="dnd-core/HOVER",ee="dnd-core/DROP",te="dnd-core/END_DRAG";function ne(e,t){return{type:X,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function re(e){return"object"==typeof e}const oe={type:X,payload:{clientOffset:null,sourceClientOffset:null}};function ie(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(ne(o)),function(e,t,n){Q(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){Q(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(oe);let c=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Q("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(l)}e.dispatch(ne(o,c));const u=s.getSource(l).beginDrag(a,l);if(null==u)return;!function(e){Q(re(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:K,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function ae(e){return function(){if(e.getMonitor().isDragging())return{type:J}}}function se(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function le(e){return function(t,{clientOffset:n}={}){!function(e){Q(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();!function(e,t,n){Q(t.isDragging(),"Cannot call hover while not dragging."),Q(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];Q(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");Q(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,i);return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];se(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:$,payload:{targetIds:r,clientOffset:n||null}}}}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(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){ce(e,t,n[t])}))}return e}function de(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){Q(e.isDragging(),"Cannot call drop while not dragging."),Q(!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){Q(void 0===e||re(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:ee,payload:{dropResult:ue({},t,a)}};e.dispatch(s)}))}}function pe(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){Q(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:te}}}class fe{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:ie(e),publishDragSource:ae(e),hover:le(e),drop:de(e),endDrag:pe(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 me(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 ge="function"==typeof Symbol&&Symbol.observable||"@@observable",he=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ae={INIT:"@@redux/INIT"+he(),REPLACE:"@@redux/REPLACE"+he(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+he()}};function ve(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 be(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(me(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(me(1));return n(be)(e,t)}if("function"!=typeof e)throw new Error(me(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(me(3));return i}function d(e){if("function"!=typeof e)throw new Error(me(4));if(l)throw new Error(me(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(me(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!ve(e))throw new Error(me(7));if(void 0===e.type)throw new Error(me(8));if(l)throw new Error(me(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function f(e){if("function"!=typeof e)throw new Error(me(10));o=e,p({type:Ae.REPLACE})}function m(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(me(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[ge]=function(){return this},e}return p({type:Ae.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[ge]=m,r}const Ce=(e,t)=>e===t;function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ye={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function we(e=ye,t){const{payload:n}=t;switch(t.type){case X:case K:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case $: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){xe(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case te:case ee:return ye;default:return e}var r,o}const _e="dnd-core/ADD_SOURCE",Oe="dnd-core/ADD_TARGET",Se="dnd-core/REMOVE_SOURCE",je="dnd-core/REMOVE_TARGET";function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(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){Te(e,t,n[t])}))}return e}const Be={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ke(e=Be,t){const{payload:n}=t;switch(t.type){case K:return De({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case J:return De({},e,{isSourcePublic:!0});case $:return De({},e,{targetIds:n.targetIds});case je:return-1===e.targetIds.indexOf(n.targetId)?e:De({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case ee:return De({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case te:return De({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function Pe(e=0,t){switch(t.type){case _e:case Oe:return e+1;case Se:case je:return e-1;default:return e}}const Ee=[],Ie=[];function Me(e=Ee,t){switch(t.type){case $:break;case _e:case Oe:case je:case Se:return Ee;default:return Ie}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=Ce){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 Ee;const a=r[r.length-1],s=n[n.length-1];return a!==s&&(a&&o.push(a),s&&o.push(s)),o}function Ne(e=0){return e+1}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(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){Le(e,t,n[t])}))}return e}function ze(e={},t){return{dirtyHandlerIds:Me(e.dirtyHandlerIds,{type:t.type,payload:Re({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:we(e.dragOffset,t),refCount:Pe(e.refCount,t),dragOperation:ke(e.dragOperation,t),stateId:Ne(e.stateId)};var n,r,o}function Fe(e,t){return{x:e.x-t.x,y:e.y-t.y}}Ee.__IS_NONE__=!0,Ie.__IS_ALL__=!0;class We{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;Q("function"==typeof e,"listener must be a function."),Q(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===Ee)return!1;if(e===Ie||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){Q("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 Q(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(Q(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return se(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(Q(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&&!se(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?Fe(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?Fe(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}let He=0;var Ve;function Ye(e,t){t&&Array.isArray(e)?e.forEach((e=>Ye(e,!1))):Q("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.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Ve||(Ve={}));const Ze="undefined"!=typeof global?global:self,Ue=Ze.MutationObserver||Ze.WebKitMutationObserver;function Ge(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const qe="function"==typeof Ue?function(e){let t=1;const n=new Ue(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Ge;class Qe{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 Xe=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=qe(this.flush),this.requestErrorThrow=Ge((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},Ke=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Qe(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Xe.registerPendingError);function Je(e){const t=(He++).toString();switch(e){case Ve.SOURCE:return`S${t}`;case Ve.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $e(e){switch(e[0]){case"S":return Ve.SOURCE;case"T":return Ve.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function et(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 tt{addSource(e,t){Ye(e),function(e){Q("function"==typeof e.canDrag,"Expected canDrag to be a function."),Q("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Q("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(Ve.SOURCE,e,t);return this.store.dispatch(function(e){return{type:_e,payload:{sourceId:e}}}(n)),n}addTarget(e,t){Ye(e,!0),function(e){Q("function"==typeof e.canDrop,"Expected canDrop to be a function."),Q("function"==typeof e.hover,"Expected hover to be a function."),Q("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(Ve.TARGET,e,t);return this.store.dispatch(function(e){return{type:Oe,payload:{targetId:e}}}(n)),n}containsHandler(e){return et(this.dragSources,e)||et(this.dropTargets,e)}getSource(e,t=!1){Q(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Q(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Q(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Q(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return $e(e)===Ve.SOURCE}isTargetId(e){return $e(e)===Ve.TARGET}removeSource(e){var t;Q(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Se,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Xe.enqueueTask(Ke.create(t))}removeTarget(e){Q(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:je,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Q(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Q(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=Je(e);return this.types.set(r,t),e===Ve.SOURCE?this.dragSources.set(r,n):e===Ve.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}}function nt(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return be(ze,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new We(o,new tt(o)),a=new fe(o,i),s=e(a,t,n);return a.receiveBackend(s),a}const rt=(0,r.createContext)({dragDropManager:void 0});function ot(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 it=0;const at=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var st=(0,r.memo)((function(e){var{children:t}=e,n=ot(e,["children"]);const[o,i]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=lt(),n,r){const o=t;o[at]||(o[at]={dragDropManager:nt(e,t,n,r)});return o[at]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,r.useEffect)((()=>{if(i){const e=lt();return++it,()=>{0==--it&&(e[at]=null)}}}),[]),(0,y.jsx)(rt.Provider,{value:o,children:t})}));function lt(){return"undefined"!=typeof global?global:window}function ct(){const{dragDropManager:e}=(0,r.useContext)(rt);return Q(null!=e,"Expected drag drop context"),e}const ut="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;class dt{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 pt(e,t,n){const o=ct(),i=function(e,t){const n=(0,r.useMemo)((()=>new dt(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)((()=>(Q(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);ut((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 ft(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,r.useMemo)((()=>"function"==typeof e?e():e),n)}let mt=!1;class gt{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Q(!mt,"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 mt=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{mt=!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()}}function ht(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 At(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 Q("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=>{bt(n,e),bt(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(o,i)}}function vt(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=At(r);t[n]=()=>e}})),t}function bt(e,t){"function"==typeof e?e(t):e.current=t}function Ct(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}class xt{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!ht(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=vt({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Ct(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}}var yt=s(4204);function wt(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);yt(o,r)||(i(r),n&&n())}),[o,e,n]);return ut(a),[o,a]}(e,t,n);return ut((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})}),[e,i]),o}function _t(e,t,n){return wt(t,e||(()=>({})),(()=>n.reconnect()))}function Ot(e){return(0,r.useMemo)((()=>e.hooks.dropTarget()),[e])}function St(e,t){const n=ft(e,t),o=function(){const e=ct();return(0,r.useMemo)((()=>new gt(e)),[e])}(),i=function(e){const t=ct(),n=(0,r.useMemo)((()=>new xt(t.getBackend())),[t]);return ut((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return pt(n,o,i),[_t(n.collect,o,i),Ot(i)]}function jt(e){let t=null;return()=>(null==t&&(t=e()),t)}class Tt{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}}const Dt=jt((()=>/firefox/i.test(navigator.userAgent))),Bt=jt((()=>Boolean(window.safari)));class kt{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,l=0,c=i.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];c=s-1}}a=Math.max(0,c);const u=e-t[a],d=u*u;return n[a]+r[a]*u+o[a]*d+i[a]*u*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],i=[],a=[];let s,l;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],l=t[r+1]-t[r],i.push(s),o.push(l),a.push(l/s);const c=[a[0]];for(let e=0;e<i.length-1;e++){const t=a[e],n=a[e+1];if(t*n<=0)c.push(0);else{s=i[e];const r=i[e+1],o=s+r;c.push(3*o/((o+r)/t+(o+s)/n))}}c.push(a[a.length-1]);const u=[],d=[];let p;for(let e=0;e<c.length-1;e++){p=a[e];const t=c[e],n=1/i[e],r=t+c[e+1]-p-p;u.push((p-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=u,this.c3s=d}}function Pt(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Et(e){return{x:e.clientX,y:e.clientY}}function It(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(Dt()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Pt(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 Bt()&&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 kt([0,.5,1],[s.x,s.x/l*p,s.x+p-l]).interpolate(u),y:h?g:(()=>{let e=new kt([0,.5,1],[s.y,s.y/c*f,s.y+f-c]).interpolate(d);return Bt()&&i&&(e+=(window.devicePixelRatio-1)*f),e})()}}const Mt="__NATIVE_FILE__",Nt="__NATIVE_URL__",Lt="__NATIVE_TEXT__",Rt="__NATIVE_HTML__";function zt(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const Ft={[Mt]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Rt]:{exposeProperties:{html:(e,t)=>zt(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Nt]:{exposeProperties:{urls:(e,t)=>zt(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Lt]:{exposeProperties:{text:(e,t)=>zt(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};class Wt{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()}}function Ht(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Ft).filter((e=>{const n=Ft[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}class Vt{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 Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zt(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){Yt(e,t,n[t])}))}return e}class Ut{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 Zt({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Zt({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=Ft[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new Wt(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&&Pt(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=Et(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=Ht(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=It(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=Ht(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:Et(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=Et(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)):Ht(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Et(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 Vt(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Tt(this.isNodeInDocument)}}const Gt=function(e,t,n){return new Ut(e,t,n)};var qt=s(7608),Qt=s.n(qt),Xt=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,y.jsx)(y.Fragment,{children:l&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(i.TreeView,{ref:t,selectedIdentifier:r,dataTestId:"asset-folders-tree",children:function e(t,n){var r,l=0===n;return(0,y.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,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.TreeNodeLeadingIcon,{isSelected:e,children:(0,y.jsx)(i.Icon,{name:"xp-folder"})}),(0,y.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)})})})}));Xt.displayName="AssetFolderTreeView";class Kt{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 Jt(e,t,n){const o=ct(),i=function(e,t,n){const o=(0,r.useMemo)((()=>new Kt(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 Q(null!=t,"spec.type must be defined"),t}),[e])}(e);ut((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])}let $t=!1,en=!1;class tn{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Q(!$t,"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 $t=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{$t=!1}}isDragging(){if(!this.sourceId)return!1;Q(!en,"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 en=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{en=!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 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!ht(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ht(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=vt({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Ct(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Ct(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}}function rn(e){return(0,r.useMemo)((()=>e.hooks.dragSource()),[e])}function on(e){return(0,r.useMemo)((()=>e.hooks.dragPreview()),[e])}function an(e,t){const n=ft(e,t);Q(!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=ct();return(0,r.useMemo)((()=>new tn(e)),[e])}(),i=function(e,t){const n=ct(),o=(0,r.useMemo)((()=>new nn(n.getBackend())),[n]);return ut((()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource())),[o,e]),ut((()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview())),[o,t]),o}(n.options,n.previewOptions);return Jt(n,o,i),[_t(n.collect,o,i),rn(i),on(i)]}function sn(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?sn(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cn=function(e){var t=f(an((function(){return{type:"Asset",item:e.asset,collect:function(e){return{isDragging:e.isDragging()}}}})),2),n=t[0].isDragging,r=t[1];return(0,y.jsx)(i.AssetTileSelectable,ln(ln({ref:r},e),{},{isDragging:n,isSelected:n||e.isSelected}))},un=s(3993),dn=s.n(un),pn=s(7899),fn=s.n(pn),mn=s(2334),gn=s.n(mn),hn=s(1808),An=s.n(hn),vn=s(9808),bn=s.n(vn),Cn=s(9297),xn=s.n(Cn),yn=s(3804),wn={};wn.styleTagTransform=xn(),wn.setAttributes=An(),wn.insert=gn().bind(null,"head"),wn.domAPI=fn(),wn.insertStyleElement=bn();dn()(yn.Z,wn);const _n=yn.Z&&yn.Z.locals?yn.Z.locals:void 0;var On=function(e){var t=e.isPreview;return(0,y.jsx)("div",{className:_n.hidden,children:t?(0,y.jsx)(i.AssetTilePreview,{size:0,name:"hidden_tile",disabled:!0,dataTestId:"asset-tile-hidden"},"hidden_tile"):(0,y.jsx)(i.AssetTileSelectable,{size:0,name:"hidden_tile",disabled:!0},"hidden_tile")})};On.displayName="AssetTileHidden";var Sn=s(127),jn={};jn.styleTagTransform=xn(),jn.setAttributes=An(),jn.insert=gn().bind(null,"head"),jn.domAPI=fn(),jn.insertStyleElement=bn();dn()(Sn.Z,jn);const Tn=Sn.Z&&Sn.Z.locals?Sn.Z.locals:void 0;var Dn=function(e){var t=e.observerRef,n=x().localization;return(0,y.jsxs)("div",{ref:t,className:Tn.loadingHeadline,children:[(0,y.jsx)(i.Spinner,{className:Tn.spinner}),(0,y.jsx)(i.Headline,{size:i.HeadlineSize.L,labelColor:i.Colors.TextDefaultOnLight,children:n.admin.base.assetLoader.loadMore})]})};function Bn(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 kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Pn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let En;const In=new Uint8Array(16);function Mn(){if(!En&&(En="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!En))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return En(In)}const Nn=[];for(let e=0;e<256;++e)Nn.push((e+256).toString(16).slice(1));function Ln(e,t=0){return(Nn[e[t+0]]+Nn[e[t+1]]+Nn[e[t+2]]+Nn[e[t+3]]+"-"+Nn[e[t+4]]+Nn[e[t+5]]+"-"+Nn[e[t+6]]+Nn[e[t+7]]+"-"+Nn[e[t+8]]+Nn[e[t+9]]+"-"+Nn[e[t+10]]+Nn[e[t+11]]+Nn[e[t+12]]+Nn[e[t+13]]+Nn[e[t+14]]+Nn[e[t+15]]).toLowerCase()}const Rn=function(e,t,n){if(Pn.randomUUID&&!t&&!e)return Pn.randomUUID();const r=(e=e||{}).random||(e.rng||Mn)();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 Ln(r)};function zn(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 Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(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 Hn(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 Hn(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 Hn(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 Vn=function(e){var t=f(r.default.useState(0),2),n=t[0],o=t[1],i=f(r.default.useState(""),2),s=i[0],l=i[1],c=r.default.useRef(0),d=r.default.useRef(0),p=r.default.useRef(""),m=function(e){var t=f(r.default.useState({}),2),n=t[0],o=t[1],i=O().executeCommand,s=fo().executeCommand,l=function(){var t=u(h().mark((function t(n,r,o){var a;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a="LoadAssetFolders",!e){t.next=5;break}return t.next=4,s(e,a,{libraryIdentifier:n,folderPath:r,isSelected:o});case 4:case 7:return t.abrupt("return",t.sent);case 5:return t.next=7,i(a,{libraryIdentifier:n,folderPath:r,isSelected:o});case 8:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),c=function(e){return kn(kn({},e),{},{children:[],areChildrenLoaded:!1,isLoading:!1,isExpanded:!1})},d=function(){var e=u(h().mark((function e(t,n){var r,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(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(c),o((function(e){var t=i.reduce((function(e,t){var n=t.path,r=i.filter((function(e){return e.parentPath===n}));return kn(kn({},e),{},a({},n,kn(kn({},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)}}(),p=function(){var e=u(h().mark((function e(t,n,r){var i,s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(t,n,!1);case 2:if((i=e.sent)&&i.folders){e.next=5;break}return e.abrupt("return");case 5:s=i.folders.map(c),o((function(e){var t=s.reduce((function(e,t){var n=t.path;return kn(kn({},e),{},a({},n,kn(kn({},t),{},{isLoading:!1,children:[]})))}),e),n=s[0].parentPath;return t[n]=kn(kn({},t[n]),{},{isLoading:!1,areChildrenLoaded:!0,children:s.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)}}(),m=function(){var e=u(h().mark((function e(t,n,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r||n.areChildrenLoaded){e.next=4;break}return e.next=3,p(t,n.path,r);case 3:return e.abrupt("return");case 4:o((function(e){return kn(kn({},e),{},a({},n.path,kn(kn({},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:m,loadFolders:d,clearFolders:function(){return o({})}}}(e),g=m.folders,A=m.toggleFolder,v=m.loadFolders,b=m.clearFolders,C=function(e,t,n){var o=f(r.default.useState([]),2),i=o[0],a=o[1],s=f(r.default.useState(!1),2),l=s[0],c=s[1],d=f(r.default.useState(!1),2),p=d[0],m=d[1],g=f(r.default.useState(0),2),A=g[0],v=g[1],b=r.default.useRef(null),C=r.default.useRef(!1),x=r.default.useRef(0),y=r.default.useRef(""),w=r.default.useRef([]),_=O().executeCommand,S=fo().executeCommand,j=function(){var e=u(h().mark((function e(t,r,o,i,a){var s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s="LoadAssetItems",!n){e.next=5;break}return e.next=4,S(n,s,{folderPath:r,libraryIdentifier:t,pageIndex:o,pageSize:i,allowedExtensions:a});case 4:case 7:return e.abrupt("return",e.sent);case 5:return e.next=7,_(s,{folderPath:r,libraryIdentifier:t,pageIndex:o,pageSize:i,allowedExtensions:a});case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,o,i){return e.apply(this,arguments)}}(),T=function(){var e=u(h().mark((function e(t,r,o,i){var a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a="UploadAssets",!n){e.next=5;break}return e.next=4,S(n,a,{libraryIdentifier:t,folderPath:r,allowedExtensions:i},o);case 4:case 7:return e.abrupt("return",e.sent);case 5:return e.next=7,_(a,{libraryIdentifier:t,folderPath:r,allowedExtensions:i},o);case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),D=function(){var n=u(h().mark((function n(r,o,i,s,l){var u,d,p,f,m,g;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,j(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(E):(f=w.current.filter((function(e){return!e.isPlaceholder})),m=d.assets.filter((function(e){return!f.some((function(t){return e.identifier===t.identifier}))})).map(E),p=[].concat(I(f),I(m))),g=null!==(u=w.current.filter((function(e){return e.isPlaceholder})))&&void 0!==u?u:[],w.current=[].concat(I(g),I(p)),a([].concat(I(B()?g:[]),I(p))),v(d.totalCount),c(d.totalCount>p.length),n.abrupt("return",i);case 15:case"end":return n.stop()}}),n)})));return function(e,t,r,o,i){return n.apply(this,arguments)}}(),B=function(){return C.current&&y.current===t.current&&x.current===e.current},k=function(){var n=u(h().mark((function n(r,o,s,l){var c,u,d,f,g,A,_,O;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=[],!p){n.next=3;break}return n.abrupt("return");case 3:m(!0),C.current=!0,y.current=o,x.current=r,u=Wn(s);try{for(u.s();!(d=u.n()).done;)f=d.value,c.push({identifier:Rn(),name:f.name,size:f.size,isPlaceholder:!0,uploadProgress:0})}catch(e){u.e(e)}finally{u.f()}return w.current=[].concat(c,I(i)),a(w.current),P(w.current),n.next=14,T(r,o,s,l);case 14:if(g=n.sent,clearInterval(b.current),m(!1),C.current=!1,y.current===t.current&&x.current===e.current){n.next=20;break}return n.abrupt("return");case 20:if(null!=g&&g.assets){n.next=23;break}return a(null===(A=w.current)||void 0===A?void 0:A.filter((function(e){return!e.isPlaceholder}))),n.abrupt("return");case 23:_=g.assets.map(E).map((function(e){return Fn(Fn({},e),{},{identifier:e.hasError?Rn():e.identifier})})),w.current=[].concat(I(_),I(w.current.filter((function(e){return!e.isPlaceholder})))),a(w.current),O=_.filter((function(e){return!e.hasError})).length,v((function(e){return e+O}));case 28:case"end":return n.stop()}}),n)})));return function(e,t,r,o){return n.apply(this,arguments)}}(),P=function(e){b.current=window.setTimeout((function(){w.current=null==e?void 0:e.map((function(e){return Fn(Fn({},e),{},{uploadProgress:e.isPlaceholder?98:0})})),a(w.current)}),200)},E=function(e){return Fn(Fn({},e),{},{isPlaceholder:!1,uploadProgress:void 0})};return{loadAssets:D,assets:i,hasMoreAssetsToLoad:l,uploadAssets:k,clearAssets:function(){a([]),v(0),c(!1)},uploadInProgress:p,totalAssetsCount:A,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=I(i);r.splice(n,1),C.current&&(w.current=r),a(r)}}}}(d,p,e),x=C.loadAssets,y=C.assets,w=C.hasMoreAssetsToLoad,_=C.clearAssets,S=C.uploadAssets,j=C.uploadInProgress,T=C.totalAssetsCount,D=C.removeAsset,B=function(e){var t=f(r.default.useState([]),2),n=t[0],o=t[1],i=O().executeCommand,a=fo().executeCommand,s=function(){var t=u(h().mark((function t(){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n="LoadAssetLibraries",!e){t.next=3;break}return t.abrupt("return",a(e,n));case 3:return t.abrupt("return",i(n));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=function(){var e=u(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:if(null!=(t=e.sent)&&t.libraries){e.next=5;break}return e.abrupt("return",[]);case 5:return o(t.libraries),e.abrupt("return",t.libraries);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{loadLibraries:l,libraries:n}}(e),k=B.libraries,P=B.loadLibraries,E=function(){var e=u(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(d.current<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,v(d.current,p.current);case 4:return t=e.sent,t.some((function(e){return e.path===p.current}))||R(""),e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=u(h().mark((function e(t){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(d.current<=0)){e.next=2;break}return e.abrupt("return");case 2:return 0===c.current&&_(),e.next=5,x(d.current,p.current,c.current,50,t);case 5:n=e.sent,c.current===n&&(c.current+=1);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),N=function(){var e=u(h().mark((function e(t,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(d.current<=0)){e.next=2;break}return e.abrupt("return");case 2:A(d.current,t,n);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),L=function(){var e=u(h().mark((function e(t,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(d.current<=0)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,S(d.current,p.current,t,n);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),R=function(e){l(e),c.current=0,p.current=e};return{libraries:k,folders:g,assets:y,hasMoreAssetsToLoad:w,loadLibraries:P,loadFolders:E,loadAssets:M,toggleFolder:N,uploadAssets:L,removeAsset:D,setSelectedLibraryIdentifier:function(e){d.current=e,c.current=0,o(e)},setSelectedFolderPath:R,selectedLibraryIdentifier:n,selectedFolderPath:s,uploadInProgress:j,totalAssetsCount:T,resetData:function(){b(),_(),l(""),o(0),c.current=0}}};function Yn(){return Yn=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},Yn.apply(this,arguments)}var Zn=function(e){var t=(0,r.useRef)(e);return t.current=e,t},Un=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=Zn(u),x=Zn(d),y=Zn(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(Yn({},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,_]),Yn({},m,{observe:O,unobserve:_,updatePosition:S})},Gn=function(e,t){var n,o=(0,r.useRef)(0),a="0px 0px ".concat(60*parseInt(i.Dimensions.GridUnit,10),"px 0px"),s=Un({root:e.current,rootMargin:a,onEnter:(n=u(h().mark((function n(r){var i,s,l;return h().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=u(h().mark((function e(n,r){return h().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 qn(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 Qn(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=qn(r,i,"inlineSize"),s=qn(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 Xn=function(e,t){var n=f((0,r.useState)(),2),o=n[0],a=n[1],s=Qn({ref:e}).width,l=(0,r.useCallback)((function(){if(!s)return 2;var e=parseInt(i.Spacing.L,10),n=parseInt(t?i.Dimensions.PreviewAssetTileMaxWidth:i.Dimensions.SelectableAssetTileMaxWidth,10),r=Math.ceil((s+e)/(n+e));return r<2?2:r}),[t,s]);return(0,r.useEffect)((function(){a(l())}),[a,l]),o};function Kn(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 Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $n=function(e){var t=f((0,r.useState)({assetPanelEnabled:!1,imageExtensions:""}),2),n=t[0],o=t[1],i=fo().executeCommand,a=(0,r.useCallback)(u(h().mark((function t(){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"GetAssetPluginButtonStatus",t.next=3,i(e,"GetAssetPluginButtonStatus");case 3:if(n=t.sent){t.next=6;break}return t.abrupt("return");case 6:o({assetPanelEnabled:n.enabled,imageExtensions:n.imageExtensions});case 7:case"end":return t.stop()}}),t)}))),[]);return(0,r.useEffect)((function(){a()}),[a]),Jn(Jn({},n),{},{onLibrariesLoad:function(e){o((function(t){var n;return Jn(Jn({},t),{},{assetPanelEnabled:(null!==(n=null==e?void 0:e.length)&&void 0!==n?n:0)>0})}))}})},er=s(3206),tr={};tr.styleTagTransform=xn(),tr.setAttributes=An(),tr.insert=gn().bind(null,"head"),tr.domAPI=fn(),tr.insertStyleElement=bn();dn()(er.Z,tr);const nr=er.Z&&er.Z.locals?er.Z.locals:void 0;function rr(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 or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ir=function(e){var t,n=e.assets,o=e.selectedAssetIdentifiers,a=e.folders,s=e.rootFolderPath,l=e.selectedFolderPath,c=e.libraries,u=e.assetsTotalCount,d=e.hasMoreAssetsToLoad,p=e.onSelectionChange,f=e.onFolderToggle,m=e.onFolderClick,g=e.onUpload,h=e.onErrorClose,A=e.onLibraryChange,v=e.onLoadNextPage,b=e.uploadInProgress,C=e.selectedLibraryIdentifier,w=e.acceptFiles,_=x().localization,O=(0,r.useContext)(rt),S=(0,r.useRef)(null),j=Gn(S,v).observe,T=(0,r.useRef)(null),D=Xn(T,!1),B=function(){return c&&c.length>1},k=Qt()(B()?nr.contentPanel:nr.contentPanelWithoutSelector);return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(i.Box,{className:nr.assetPanelContent,children:[(0,y.jsx)(i.Row,{wrap:i.RowWrap.NoWrap,children:B()&&(0,y.jsx)(i.Column,{width:34,children:(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,y.jsx)(i.Select,{value:C.toString(),onChange:function(e){return function(e){e&&Number(e)!==C&&A(Number(e))}(e)},dataTestId:"select-library",children:c.map((function(e){return(0,y.jsx)(i.MenuItem,{primaryLabel:e.name,value:e.identifier.toString(),dataTestId:"select-library-item"},e.identifier)}))})})})}),(0,y.jsxs)(i.Row,{wrap:i.RowWrap.NoWrap,className:k,spacingX:i.Spacing.L,children:[(0,y.jsx)(i.Column,{width:34,children:(0,y.jsx)("div",{className:nr.treeView,children:(0,y.jsx)(Xt,{nodes:a,rootPath:s,onNodeClick:m,selectedPath:l,onNodeToggle:f})})}),(0,y.jsxs)(i.Column,{className:nr.content,children:[(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,y.jsx)("span",{className:nr.assetsCount,children:(t=o.length,t>0?"".concat(t," ").concat(_.admin.base.assetPanelContent.fileCounter.selected):"".concat(u," ").concat(_.admin.base.assetPanelContent.fileCounter.default))})}),(0,y.jsxs)("div",{ref:S,className:nr.gridWrapper,children:[(0,y.jsxs)(i.Grid,{cols:D,ref:T,rowGap:i.Spacing.L,columnGap:i.Spacing.L,className:nr.grid,dataTestId:"asset-grid",children:[(0,y.jsx)(i.UploadTile,{disabled:b,inactiveMessage:_.admin.base.assetUploadTile.inactiveMessage,onUpload:g,firstLineLabel:_.admin.base.assetUploadTile.firstLine,secondLineLabel:_.admin.base.assetUploadTile.secondLine,buttonLabel:_.admin.base.assetUploadTile.buttonLabel,size:i.UploadTileSize.Compact,acceptFiles:w}),!n||0===n.length&&(0,y.jsx)(On,{}),n&&n.map((function(e){var t=or(or({},e),{},{errorState:e.errorMessage?{errorMessage:e.errorMessage,onErrorClose:function(){return h(e)}}:void 0,uploadState:e.isPlaceholder?{uploadProgress:e.uploadProgress}:void 0,isSelected:o.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){p&&p(e,t)}(t,e)},dataTestId:"asset-tile"});return void 0!==O.dragDropManager?(0,y.jsx)(cn,or({asset:e},t),e.identifier):(0,y.jsx)(i.AssetTileSelectable,or({},t),e.identifier)}))]}),d&&(0,y.jsx)(Dn,{observerRef:j})]})]})]})]})})},ar=s(7666),sr={};sr.styleTagTransform=xn(),sr.setAttributes=An(),sr.insert=gn().bind(null,"head"),sr.domAPI=fn(),sr.insertStyleElement=bn();dn()(ar.Z,sr);const lr=ar.Z&&ar.Z.locals?ar.Z.locals:void 0;var cr=["visible","onLibrariesLoad","onSelectAssets","fieldInfo","allowedExtensions","actionButtonLabel","headline","shiftRight","preselectedAsset","onPanelClosed"],ur=function(e){var t=e.visible,n=e.onLibrariesLoad,o=e.onSelectAssets,a=e.fieldInfo,s=e.allowedExtensions,l=e.actionButtonLabel,c=e.headline,d=e.shiftRight,p=e.preselectedAsset,g=e.onPanelClosed,A=m(e,cr),v=document.getElementById("sidePanelPlaceholder"),b=f((0,r.useState)(null!=d&&d),2),C=b[0],w=b[1],_=f((0,r.useState)([]),2),O=_[0],S=_[1],j=f((0,r.useState)(!1),2),T=j[0],D=j[1],B=Vn(a),k=B.libraries,P=B.folders,E=B.assets,I=B.hasMoreAssetsToLoad,M=B.loadLibraries,N=B.loadFolders,L=B.loadAssets,R=B.toggleFolder,z=B.uploadAssets,F=B.setSelectedLibraryIdentifier,W=B.setSelectedFolderPath,H=B.selectedLibraryIdentifier,V=B.selectedFolderPath,Y=B.uploadInProgress,Z=B.totalAssetsCount,U=B.removeAsset,G=B.resetData,q="kxp.assetPanel.folderPath",Q="kxp.assetPanel.libraryIdentifier",X=x().localization;(0,r.useEffect)((function(){w(null!=d&&d)}),[d]);var K=(0,r.useCallback)((function(e){W(e),localStorage.setItem(q,e)}),[W]),J=(0,r.useCallback)((function(e){F(e),localStorage.setItem(Q,e.toString())}),[F]),$=(0,r.useCallback)((function(e){J(e.libraryIdentifier),K(e.folderPath),S([e])}),[K,J]),ee=(0,r.useCallback)(function(){var e=u(h().mark((function e(t){var r,o,i,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:if(r=e.sent,n(r),!(r.length<=0)){e.next=7;break}return F(0),e.abrupt("return");case 7:return t?$(t):(i=te(r),J(i),a=null!==(o=localStorage.getItem(q))&&void 0!==o?o:"",K(a)),e.next=10,N();case 10:return e.next=12,L(s);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[s,L,N,M,n,$,K,J,F]);(0,r.useEffect)((function(){var e=function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ee(p);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t&&e()}),[t,p]);var te=function(e){var t=Number(localStorage.getItem(Q));return e.some((function(e){return e.identifier===t}))?t:e[0].identifier},ne=function(){D(!1),G(),S([]),null==g||g()},re=(0,y.jsx)(i.Button,{label:null!=l?l:X.admin.base.assetPanel.actionButtonLabel,color:i.ButtonColor.Primary,onClick:function(){null==o||o(O),ne()},disabled:!T,dataTestId:"confirm-action"}),oe=(0,y.jsx)(i.Button,{label:X.admin.base.assetPanel.cancelButtonLabel,color:i.ButtonColor.Secondary,onClick:ne,dataTestId:"cancel-action"}),ie=function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:L(s);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ae=Qt()(C&&lr.slidToRight);return(0,y.jsx)(Tg,{container:v,children:(0,y.jsxs)(i.SidePanel,{headline:null!=c?c:X.admin.base.assetPanel.headline,size:i.SidePanelSize.Full,isVisible:t,onCloseClick:ne,footer:(0,y.jsxs)(y.Fragment,{children:[oe,re]}),className:ae,dataTestId:"asset-panel",children:[A.enabled&&H>0&&(0,y.jsx)(ir,{assets:E,hasMoreAssetsToLoad:I,folders:P,rootFolderPath:"",selectedFolderPath:V,selectedAssetIdentifiers:null==O?void 0:O.map((function(e){return e.identifier})),uploadInProgress:Y,assetsTotalCount:Z,onFolderToggle:function(e,t){return R(e,t)},onFolderClick:function(e){K(e.path),L(s)},onLoadNextPage:ie,onSelectionChange:function(e,t){var n=e?[t]:[];D(n.length>0),S(n)},onUpload:function(e){return z(e,s)},onErrorClose:U,selectedLibraryIdentifier:H,libraries:k,onLibraryChange:function(e){J(e),K(""),N(),L(s)},acceptFiles:function(){if(s){for(var e=s.split(";"),t=0;t<e.length;t++)e[t]=".".concat(e[t]);return e.join(",")}}()}),!A.enabled&&(0,y.jsx)(jg,{title:A.disabledLabel})]})})},dr=function(e){return e?"xp-i-circle":void 0},pr=s(1262),fr={};fr.styleTagTransform=xn(),fr.setAttributes=An(),fr.insert=gn().bind(null,"head"),fr.domAPI=fn(),fr.insertStyleElement=bn();dn()(pr.Z,fr);const mr=pr.Z&&pr.Z.locals?pr.Z.locals:void 0;var gr=function(){var e=x().localization;return(0,y.jsx)("div",{className:mr.dropTileWrapper,children:(0,y.jsx)("div",{className:mr.dropTile,children:(0,y.jsx)("div",{className:mr.dropTileText,children:e.admin.base.formComponent.assetSelector.dropTileText})})})},hr=s(4732),Ar={};Ar.styleTagTransform=xn(),Ar.setAttributes=An(),Ar.insert=gn().bind(null,"head"),Ar.domAPI=fn(),Ar.insertStyleElement=bn();dn()(hr.Z,Ar);const vr=hr.Z&&hr.Z.locals?hr.Z.locals:void 0;function br(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?br(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xr,yr=function(e){return(0,y.jsx)(st,{backend:Gt,context:window,children:(0,y.jsx)(wr,Cr({},e))})},wr=function(e){var t,n=f((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 Cr(Cr({},t),{},{assets:e.assets,disabled:null!==(n=e.disabled)&&void 0!==n&&n})}))}),[a,e.assets,e.disabled]);var s=f((0,r.useState)(!1),2),l=s[0],c=s[1],d=f(r.default.useState(),2),p=d[0],m=d[1],g=r.default.useRef(null),A=Xn(g,!0),v=x().localization,b=f(St((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],w=C.isOver,_=C.canDrop,O=b[1];(0,r.useEffect)((function(){a((function(t){var n;return Cr(Cr({},t),{},{disabled:null!==(n=e.disabled)&&void 0!==n&&n})}))}),[e.disabled]);var S=Qt()(vr.assetSelectorWrapper,_&&vr.dropZone,e.disabled&&vr.disabled,e.invalid&&vr.invalid),j=function(){var e=u(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m(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(I(e),I(o.assets));k(t)},D=function(e,t){if(o.assets.length>0){var n=I(o.assets),r=n.indexOf(e);n.splice.apply(n,[r,1].concat(I(t))),k(n)}},B=function(e){D(e,[])},k=function(t){a((function(e){return Cr(Cr({},e),{},{assets:t})})),e.onChange&&e.onChange(t)},P=function(e){if(e.errorMessage)return{errorMessage:e.errorMessage,onErrorClose:function(){B(e)}}};return(0,y.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:dr(e.tooltip),tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,dataTestId:"asset-selector",children:(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:S,children:[(0,y.jsxs)(i.Box,{className:vr.description,spacing:i.Spacing.L,children:[v.admin.base.formComponent.assetSelector.selectAssets,(0,y.jsx)("div",{className:vr.assetSourceButton,children:(0,y.jsx)(i.Button,{label:v.admin.base.formComponent.assetSelector.library,size:i.ButtonSize.S,onClick:function(){c(!0)},disabled:o.disabled,dataTestId:"button-media-library"})})]}),w&&(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,y.jsx)(gr,{})}),(0,y.jsx)("div",{ref:g,children:o.assets.length>0&&(0,y.jsx)(i.Box,{spacingX:i.Spacing.L,spacingBottom:i.Spacing.L,children:(0,y.jsx)(i.Grid,{cols:A,columnGap:i.Spacing.L,rowGap:i.Spacing.L,dataTestId:"asset-grid",children:o.assets.map((function(t,n){return(0,y.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,y.jsx)(ur,{visible:l,enabled:o.libraryExists&&!o.disabled,disabledLabel:o.libraryExists?"":v.admin.base.assetPanel.noExistingLibrary,onSelectAssets:function(e){p?(D(p,e),m(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 Cr(Cr({},e),{},{libraryExists:n})}))},fieldInfo:{name:e.name,fieldValues:e.fieldValues},allowedExtensions:e.allowedExtensions,onPanelClosed:function(){c(!1),m(void 0)},shiftRight:_,preselectedAsset:p})]})})})},_r=function(e){return(0,y.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:dr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml})};!function(e){e.All="All",e.Any="Any"}(xr||(xr={}));var Or=function(e,t){return e===xr.All?t.admin.base.conditionBuilder.and:t.admin.base.conditionBuilder.or},Sr=function(e){var t={},n=-1;return e.forEach((function(e,r){t[r.toString()]=e,n=r})),{mappedResult:t,lastUsedIndex:n}},jr=function(e,t){return e===xr.All?t.admin.base.conditionBuilder.overview.all:t.admin.base.conditionBuilder.overview.any},Tr=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},Dr=function(e){return void 0!==e.properties},Br=function(e){var t={};return e.parameters.forEach((function(e){Dr(e)&&(t[e.properties.name]=e.properties.value)})),t},kr=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:Br(e.macroRule)}}))}}));return{operator:e.operator,groups:t}},Pr=function(e){return void 0!==e.value},Er="ConditionParametersForm";function Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nr(e,t,n){return t&&Mr(e.prototype,t),n&&Mr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e,t){return Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rr(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&&Rr(e,t)}function Fr(e){return Fr="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},Fr(e)}function Wr(e,t){if(t&&("object"===Fr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Lr(e)}function Hr(e){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hr(e)}function Vr(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=Hr(e);if(t){var o=Hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wr(this,n)}}var Yr=function(e){zr(n,e);var t=Vr(n);function n(){var e;Ir(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a(Lr(e=t.call.apply(t,[this].concat(o))),"state",{hasError:!1,error:null}),e}return Nr(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,y.jsx)(y.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),Zr=function(e){return(0,y.jsx)("span",{children:e.parameter.value})};Zr.displayName="ParameterText";var Ur=function(e){return(0,y.jsx)("b",{children:e.value})};Ur.displayName="ParameterSimpleOverview";var Gr=function(e,t){return System.import(e).then((function(e){return{default:t in e?e[t]:Ur}})).catch((function(){return{default:Ur}}))},qr=["macroRule"];function Qr(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 Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kr=function(e){var t=e.macroRule,n=m(e,qr),o=(0,r.useMemo)((function(){return Br(t)}),[t]),i=k("".concat(n.componentName,"ParameterOverview"),Gr);return(0,y.jsx)(r.Suspense,{fallback:(0,y.jsx)(bg,{}),children:i&&(0,y.jsx)(i,Xr(Xr({},n),{},{fieldValues:o}))})},Jr=function(e){var t=e.errorMessage,n=f((0,r.useState)(!0),2),o=n[0],a=n[1];return o?(0,y.jsx)(i.NotificationBarAlert,{onDismiss:function(){return a(!1)},children:t}):null},$r=s(9997),eo={};eo.styleTagTransform=xn(),eo.setAttributes=An(),eo.insert=gn().bind(null,"head"),eo.domAPI=fn(),eo.insertStyleElement=bn();dn()($r.Z,eo);const to=$r.Z&&$r.Z.locals?$r.Z.locals:void 0;function no(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 ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?no(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oo=function(e){var t=e.data,n=x().localization,o=t.operator||xr.All;return(0,y.jsx)(Yr,{fallback:function(){return(0,y.jsx)(Jr,{errorMessage:n.admin.base.conditionBuilder.overview.loaderError})},children:(0,y.jsxs)("div",{className:to.container,children:[0===t.groups.length&&(0,y.jsx)("div",{className:to.emptyCondition,children:n.admin.base.conditionBuilder.overview.emptyCondition}),t.groups.length>0&&(0,y.jsxs)("div",{className:to.headline,children:[n.admin.base.conditionBuilder.overview.headlineBeforeOperator,(0,y.jsx)("b",{className:to.headlineOperator,children:jr(o,n).toUpperCase()}),n.admin.base.conditionBuilder.overview.headlineAfterOperator]}),t.groups.map((function(e,a){return(0,y.jsxs)(r.default.Fragment,{children:[(0,y.jsx)(i.ConditionGroupOverview,{children:e.items.map((function(t,o){var a;return(0,y.jsxs)(r.default.Fragment,{children:[(0,y.jsx)(lo.Provider,{value:{name:"".concat(Er,":").concat(t.macroRule.macroRuleName),preventNesting:!0},children:(0,y.jsx)("span",{children:null===(a=t.macroRule)||void 0===a?void 0:a.parameters.map((function(e,n){return(0,y.jsxs)(r.default.Fragment,{children:[n>0&&" ",Dr(e)&&(0,y.jsx)(Kr,ro(ro({},e.properties),{},{macroRule:t.macroRule})),Pr(e)&&(0,y.jsx)(Zr,{parameter:e})]},n)}))})}),o+1<e.items.length&&(0,y.jsx)(i.ConditionOperatorOverview,{operator:Or(e.operator||xr.All,n),type:i.ConditionOperatorOverviewType.ConditionSeparator})]},o)}))}),a+1<t.groups.length&&(0,y.jsx)(i.ConditionOperatorOverview,{operator:Or(o,n),type:i.ConditionOperatorOverviewType.GroupSeparator})]},a)}))]})})};oo.displayName="ConditionBuilderOverview";var io=function(e){return(0,y.jsx)("b",{children:void 0===e.value||null===e.value?"?":e.value.toString()})};io.displayName="NumberInputParameterOverview";var ao=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,y.jsx)("b",{children:n}):null};ao.displayName="DropDownSelectorParameterOverview";var so,lo=r.default.createContext({name:"DefaultForm",dataChanged:!1,preventNesting:!0});lo.displayName="FormContext",function(e){e.Error="error",e.ValidationFailure="validationFailure",e.ValidationSuccess="validationSuccess"}(so||(so={}));var co="ComponentCommand",uo=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:co,commandData:JSON.stringify(a)},i=i.parentContext}return a},po=function(e,t,n,o){var i=(0,r.useContext)(lo).name,a=(0,r.useContext)(Bo),s=tf(co,{data:uo(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){var o=uo(i,e,t,a,n);return s.execute(o,r)}}},fo=function(){var e=O().executeCommand,t=(0,r.useContext)(lo),n=(0,r.useContext)(Bo),o=(0,r.useCallback)(function(){var r=u(h().mark((function r(o,i,a,s){var l;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return l=uo(t.name,o,i,n,a),r.abrupt("return",e(co,l,s));case 2:case"end":return r.stop()}}),r)})));return function(e,t,n,o){return r.apply(this,arguments)}}(),[t.name,e,n]);return{executeCommand:o}};function mo(e){var t=f((0,r.useState)(null),2),n=t[0],o=t[1];return(0,r.useEffect)((function(){return B(e).then((function(e){var t=e.default;o((function(){return t}))})),function(){}}),[e]),n}var go=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},ho=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},Ao=function(e,t,n){var o=f((0,r.useState)(""),2),i=o[0],a=o[1];return(0,r.useEffect)((function(){if(0!==e&&1!==e){var r=0===t?ho(n.statusTextMultiple,e):ho(1===t?n.statusTextSingleWithCurrentCount:n.statusTextMultipleWithCurrentCount,t,e);r&&a(r)}}),[e,t,n]),i},vo="LoadSelectedObjects",bo=function(e,t){var n=fo().executeCommand,o=P(e,t),i=(0,r.useCallback)(function(){var e=u(h().mark((function e(t){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(o,vo,{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}},Co=function(e){var t=f((0,r.useState)(),2),n=t[0],o=t[1],i=bo(e.name,e.fieldValues).loadSelectedOptions,a=(0,r.useCallback)(function(){var e=u(h().mark((function e(t){var n,r;return h().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,y.jsx)("b",{children:s})};function xo(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}Co.displayName="ObjectSelectorParameterOverview";var yo=function(e){return(0,y.jsx)(Co,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))};function wo(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function _o(){return _o=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},_o.apply(this,arguments)}function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}yo.displayName="ObjectCodeNameSelectorParameterOverview";var jo="FormComponent",To=function(e){var t=k("".concat(e.componentName).concat(jo));return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(r.Suspense,{fallback:(0,y.jsx)(bg,{}),children:t&&(0,y.jsx)(t,So({},e))})})},Do=function(e){var t=mo(e.ruleName),n=f((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},Bo=r.default.createContext({fieldInfo:{name:"DefaultFormField",fieldValues:{}},parentContext:void 0,preventNesting:!0});function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Bo.displayName="FormFieldContext";var Eo=function(e){var t=_o({},(wo(e),e)),n=f((0,r.useState)({}),2),o=n[0],i=n[1],s=f((0,r.useState)(!1),2),l=s[0],c=s[1],u=f((0,r.useState)([]),2),d=u[0],p=u[1],m=f((0,r.useState)({}),2),g=m[0],h=m[1],A=(0,r.useRef)(!1),v=(0,r.useContext)(lo),b=(0,r.useContext)(Bo),C=P(t.name,t.fieldValues);(0,r.useEffect)((function(){v.dataChanged||c(!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=[];l&&(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,w=f((0,r.useState)({fieldInfo:C,parentContext:b,preventNesting:v.preventNesting}),2),_=w[0],O=w[1];return(0,r.useEffect)((function(){O({fieldInfo:C,parentContext:b,preventNesting:v.preventNesting})}),[C,b,v.preventNesting]),(0,y.jsx)(Bo.Provider,{value:_,children:(0,y.jsxs)("div",{className:t.fieldCssClass,children:[t.validationRules?t.validationRules.map((function(e,n){return(0,y.jsx)(Do,Po(Po({},e),{},{fieldValues:t.fieldValues,value:t.value,allowRevalidate:l,onValidated:function(e){return function(e,n){if(n.isValid&&l&&A.current&&!g[e]){var r,o=Po(Po({},g),{},a({},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 Po(Po({},t),{},a({},e,n))}))}(n,e)}}),n)})):null,(0,y.jsx)(To,Po(Po({},t),{},{invalid:d.length>0,validationMessage:x||void 0,onChange:function(e){var n;c(!0),A.current=!0,h({}),t.onChange&&t.onChange(e),null!==(n=t.validationRules)&&void 0!==n&&n.length||t.onValidChange&&t.onValidChange()}}))]})})},Io=["value","label","disabled","placeholder","name","invalid","required","inactiveMessage","tooltip","explanationText","validationMessage","options","maxContentHeight","onChange"],Mo=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,g=e.maxContentHeight,h=e.onChange,A=m(e,Io),v=x().localization;return(0,y.jsx)(i.Select,{value:null!=t?t:void 0,dataTestId:a,label:n,onChange:function(e){return null==h?void 0:h(e)},disabled:r,placeholder:o,name:a,invalid:s,markAsRequired:l,inactiveMessage:c,labelIcon:dr(u),labelIconTooltip:u,explanationText:d,maxContentHeight:g,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,y.jsx)(i.MenuItem,{primaryLabel:e.text,value:e.value},t)}))})};Mo.displayName="DropDownSelectorFormComponent";var No=s(4205),Lo={};Lo.styleTagTransform=xn(),Lo.setAttributes=An(),Lo.insert=gn().bind(null,"head"),Lo.domAPI=fn(),Lo.insertStyleElement=bn();dn()(No.Z,Lo);const Ro=No.Z&&No.Z.locals?No.Z.locals:void 0;var zo=["onChange","onDelete","initialParametersValue","macroRule"];function Fo(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 Wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ho=function(e){var t=e.onChange,n=void 0===t?function(){}:t,o=e.onDelete,s=void 0===o?function(){}:o,l=e.initialParametersValue,c=e.macroRule,u=m(e,zo),d=f((0,r.useState)((function(){return Br(c)})),2),p=d[0],g=d[1],h=x().localization;(0,r.useEffect)((function(){var e,t,n=[];c.parameters.forEach((function(e){if(!Pr(e)){var t=e;n.push(t.properties)}})),g((e=l,t={},n.forEach((function(n){return t[n.name]=void 0===e[n.name]?n.value:e[n.name]})),t))}),[l,c.parameters,c]);var A=function(e,t){var r=Wo(Wo({},p),{},a({},e,t));g(r),n(r)};return(0,y.jsx)(lo.Provider,{value:{name:"".concat(Er,":").concat(c.macroRuleName),preventNesting:!0},children:(0,y.jsx)(i.Condition,Wo(Wo({deleteButton:{onDelete:s,tooltipText:h.admin.base.conditionBuilder.deleteConditionTooltip}},u),{},{children:null==c?void 0:c.parameters.map((function(e,t){return function(e,t,n,o){if(!e)return null;if(Pr(e)){var i=e;return(0,y.jsx)("div",{className:Ro.plainTextParameter,children:i.value},t)}var a=e,s=a.properties.componentName.endsWith(Mo.displayName.replace(jo,"")),l=Qt()(Ro.componentParameter,s&&Ro.select);return(0,r.createElement)(Eo,Wo(Wo({},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)}))}))})},Vo=s(1150),Yo={};Yo.styleTagTransform=xn(),Yo.setAttributes=An(),Yo.insert=gn().bind(null,"head"),Yo.domAPI=fn(),Yo.insertStyleElement=bn();dn()(Vo.Z,Yo);const Zo=Vo.Z&&Vo.Z.locals?Vo.Z.locals:void 0;var Uo=function(e){var t=e.value,n=e.onChange,r=e.onDelete,o=e.inConditionGroup,a=x().localization;return(0,y.jsxs)(i.ConditionOperatorSelect,{deleteButton:r?{onDelete:r,tooltipText:a.admin.base.conditionBuilder.deleteConditionGroupTooltip}:void 0,children:[(0,y.jsx)("span",{children:o?a.admin.base.conditionBuilder.textBeforeOperatorSelectorInConditionGroup:a.admin.base.conditionBuilder.textBeforeOperatorSelector}),(0,y.jsx)("div",{className:Zo.operatorSelect,children:(0,y.jsxs)(i.Select,{value:t,onChange:function(e){return n(e)},children:[(0,y.jsx)(i.MenuItem,{primaryLabel:xr.All,value:xr.All}),(0,y.jsx)(i.MenuItem,{primaryLabel:xr.Any,value:xr.Any})]})}),(0,y.jsx)("span",{children:o?a.admin.base.conditionBuilder.textAfterOperatorSelectorInConditionGroup:a.admin.base.conditionBuilder.textAfterOperatorSelector})]})},Go=function(e){var t=e.macroRuleCategories,n=e.onClose,o=e.onItemSelect,a=x().localization,s=t[0].name,l=f((0,r.useState)(void 0),2),c=l[0],u=l[1],d=f((0,r.useState)(s),2),p=d[0],m=d[1],g=function(){var e;return(null===(e=t.find((function(e){return e.name===p})))||void 0===e?void 0:e.macroRules)||[]};return(0,y.jsx)(i.ConditionPicker,{items:c?g().filter((function(e){return e.label.toLocaleLowerCase().includes(c.toLocaleLowerCase())})):g(),onItemSelect:o,categories:t.map((function(e){return{label:e.label,id:e.name}})),selectedCategoryId:p,onCategoryChange:m,onSearch:function(e){m(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})};Go.displayName="ConditionBuilderConditionPicker";var qo=["onChange","onDelete","conditionGroupInitialValue","onPickerCloseRequest","onPickerOpenRequest","isPickerVisible"];function Qo(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 Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ko=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=m(e,qo),d=f((0,r.useState)({}),2),p=d[0],g=d[1],h=f((0,r.useState)(0),2),A=h[0],v=h[1],b=f((0,r.useState)(xr.All),2),C=b[0],w=b[1],_=x().localization;(0,r.useEffect)((function(){if(a){var e=Sr(a.items);v(e.lastUsedIndex),g(e.mappedResult),w(a.operator)}}),[a]);var O=function(e,t){for(var r=Xo({},p),o=Xo({},p[e]),i=I(o.macroRule.parameters),a=0;a<i.length;a++){var s=i[a];if(Dr(s)){var l=s,c=t[l.properties.name];i[a]=Xo(Xo({},l),{},{properties:Xo(Xo({},l.properties),{},{value:c})})}}r[e]={macroRule:Xo(Xo({},o.macroRule),{},{parameters:i}),id:r[e].id},g(r),n({operator:C,items:Object.values(r)})};return(0,y.jsxs)(i.ConditionGroup,Xo(Xo({},u),{},{isActionVisible:!c,onActionClick:l,children:[Object.keys(p).length>1?(0,y.jsx)(Uo,{onChange:function(e){w(e),n({operator:e,items:Object.values(p)})},value:C,inConditionGroup:!0,onDelete:o}):[],Object.keys(p).map((function(e,t){return(0,y.jsxs)("div",{children:[(0,y.jsx)(Ho,{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:Br(p[e].macroRule),macroRule:p[e].macroRule}),t+1!==Object.keys(p).length&&(0,y.jsx)(i.ConditionOperatorLine,{operator:Or(C,_)})]},p[e].id)})),c?(0,y.jsxs)(y.Fragment,{children:[Object.keys(p).length>0&&(0,y.jsx)(i.ConditionOperatorLine,{operator:Or(C,_)}),(0,y.jsx)(Go,{macroRuleCategories:u.availableMacroRules,onItemSelect:function(e){var t=A+1,r=Xo({},p),o=Tr(e.value,u.availableMacroRuleConfigurations);r[t.toString()]={macroRule:o,id:Rn()},g(r),v(t),s(),n({operator:C,items:Object.values(r)})},onClose:s})]}):[]]}))},Jo=["initialConfiguration","availableMacroRules","availableMacroRuleConfigurations","onChange"];function $o(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 ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ti="local_picker",ni=function(e){var t=e.initialConfiguration,n=e.availableMacroRules,o=e.availableMacroRuleConfigurations,a=e.onChange,s=m(e,Jo),l=f((0,r.useState)(null),2),c=l[0],u=l[1],d=f((0,r.useState)({}),2),p=d[0],g=d[1],h=f((0,r.useState)(0),2),A=h[0],v=h[1],b=f((0,r.useState)(xr.All),2),C=b[0],w=b[1],_=x().localization;(0,r.useEffect)((function(){if(t){var e=Sr(t.groups.map((function(e){return ei(ei({},e),{},{items:e.items.map((function(e){return ei(ei({},e),{},{id:e.id||Rn()})}))})})));v(e.lastUsedIndex),g(e.mappedResult),w(t.operator||xr.All)}}),[t]);var O=function(e,t){if(0===t.items.length)S(e);else{var n=ei({},p);n[e]=t,g(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])})),g(t),a({operator:C,groups:Object.values(t)})};return(0,y.jsxs)(i.ConditionBuilder,ei(ei({},s),{},{isActionVisible:c!==ti,onActionClick:function(){return u(ti)},actionLabel:_.admin.base.conditionBuilder.addGroupLabel,children:[Object.keys(p).length>1?(0,y.jsx)(Uo,{onChange:function(e){w(e),a({operator:e,groups:Object.values(p)})},value:C}):[],Object.keys(p).map((function(e,t){return(0,y.jsxs)("div",{children:[(0,y.jsx)(Ko,{availableMacroRules:n,availableMacroRuleConfigurations:o,onChange:function(t){return O(e,t)},onDelete:function(){return S(e)},conditionGroupInitialValue:p[e],actionLabel:_.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,y.jsx)(i.ConditionOperatorLine,{operator:Or(C,_)})]},e);var r})),Object.keys(p).length>0?(0,y.jsx)(i.ConditionOperatorLine,{operator:Or(C,_)}):[],c===ti?(0,y.jsx)(Go,{macroRuleCategories:n,onItemSelect:function(e){var t=A+1,n=ei({},p),r={macroRule:Tr(e.value,o),id:Rn()};n[t.toString()]={operator:xr.All,items:[r]},g(n),v(t),u(null),a({operator:C,groups:Object.values(n)})},onClose:function(){return u(null)}}):[]]}))},ri="65vw",oi=s(8296),ii={};ii.styleTagTransform=xn(),ii.setAttributes=An(),ii.insert=gn().bind(null,"head"),ii.domAPI=fn(),ii.insertStyleElement=bn();dn()(oi.Z,ii);const ai=oi.Z&&oi.Z.locals?oi.Z.locals:void 0;var si=["initialConfiguration","availableMacroRules","availableMacroRuleConfigurations","onChange","label","inactiveMessage","invalid","validationMessage","disabled","required","explanationText","tooltip"],li="GetMacro",ci=function(e){var t=e.initialConfiguration,n=e.availableMacroRules,o=e.availableMacroRuleConfigurations,a=e.onChange,s=e.label,l=e.inactiveMessage,c=e.invalid,d=e.validationMessage,p=e.disabled,g=e.required,A=e.explanationText,v=e.tooltip,b=m(e,si),C=f((0,r.useState)(!1),2),w=C[0],_=C[1],O=f((0,r.useState)(!1),2),S=O[0],j=O[1],T=f((0,r.useState)(!1),2),D=T[0],B=T[1],k=f((0,r.useState)(t),2),P=k[0],E=k[1],I=f((0,r.useState)(t),2),M=I[0],N=I[1],L=R(),z=L.setRedirectToDialog,F=L.messages,W=L.removeDialogMessage,H=go(1024);(0,r.useEffect)((function(){z(w)}),[z,w]);var V=fo().executeCommand,Y=x().localization,Z=function(){var e=u(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V(b,li,kr(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):(N(P),_(!1))},G=function(){var e=u(h().mark((function e(){var t;return h().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)===so.ValidationSuccess&&(E(M),_(!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,y.jsxs)(i.FormItemWrapper,{markAsRequired:g,label:s,labelIcon:dr(v),labelIconTooltip:v,inactiveMessage:l,disabled:p,invalid:c,validationMessage:d,explanationText:A,tooltipAsHtml:b.tooltipAsHtml,explanationTextAsHtml:b.explanationTextAsHtml,children:[(0,y.jsx)(oo,{data:P}),(0,y.jsx)("div",{className:ai.editButton,children:(0,y.jsx)(i.Button,{label:q,onClick:function(){return _(!0)},dataTestId:"add-condition"})}),(0,y.jsx)(i.Dialog,{isOpen:w,onClose:U,height:"100%",width:ri,isFullScreen:H,headerCloseButton:{tooltipText:Y.admin.base.dialog.close,shortcuts:"Esc"},isDismissable:!0,headline:Y.admin.base.formComponent.conditionBuilder.editDialogHeader,confirmAction:{label:Y.admin.base.formComponent.conditionBuilder.editDialogConfirm,onClick:G},cancelAction:{label:Y.admin.base.formComponent.conditionBuilder.editDialogCancel,onClick:U},notificationBar:F.map((function(e){return(0,y.jsx)(i.NotificationBarAlert,{onDismiss:function(){return e.id&&W(e.id)},children:e.message},e.id)})),children:(0,y.jsx)(ni,{initialConfiguration:P,availableMacroRuleConfigurations:o,availableMacroRules:n,onChange:function(e){B(!0),N(e)}})}),(0,y.jsx)(og,{showDialog:S,onCancellation:function(){return j(!1)},onConfirmation:function(){j(!1),_(!1),B(!1)},texts:{headline:Y.admin.base.promptDialog.title,confirmLabel:Y.admin.base.promptDialog.confirm,message:Y.admin.base.promptDialog.message}})]})},ui=function(e){if(e)return e.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/,/,"")},di=function(e){if(e)return e.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},pi=s(9321),fi={};fi.styleTagTransform=xn(),fi.setAttributes=An(),fi.insert=gn().bind(null,"head"),fi.domAPI=fn(),fi.insertStyleElement=bn();dn()(pi.Z,fi);const mi=pi.Z&&pi.Z.locals?pi.Z.locals:void 0;var gi=["startYear","endYear","months"],hi=function(e){if(e){if("string"==typeof e){var t=new Date(e.replace("Z",""));return di(t)}return di(e)}},Ai=function(e){var t=e.startYear,n=e.endYear,o=e.months,a=m(e,gi),s=f((0,r.useState)(hi(a.value)),2),l=s[0],c=s[1],d=f((0,r.useState)(a.value?new Date(a.value):null),2),p=d[0],g=d[1],A=f((0,r.useState)(!1),2),v=A[0],b=A[1],C=f((0,r.useState)(!1),2),w=C[0],_=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=fo().executeCommand,P=Array.from({length:n-t+1},(function(e,n){return t+n})),E=x().localization,I=function(e,t){return t.code===e&&!t.shiftKey&&!t.altKey&&!t.ctrlKey},M=function(e){return e?new Date(e.getTime()-6e4*e.getTimezoneOffset()):null};(0,r.useEffect)((function(){var e;new Date(a.value).getTime()!==(null===(e=M(p))||void 0===e?void 0:e.getTime())&&j.getTime()!==new Date(a.value).getTime()&&(c(hi(a.value)),g(a.value?new Date(a.value):null))}),[a.value]);var N=G(u(h().mark((function e(){var t,n;return h().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)}))),q),L=(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(v&&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==p?void 0:p.getDate(),a=(new Date).getDate();!o||o!==i&&o!==a||(document.removeEventListener("keydown",R),L(null))}}}),[v,p,L]);(0,r.useEffect)((function(){N()}),[l,N]),(0,r.useEffect)((function(){if(v){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())}}),[v,R]),(0,i.useHandleClickOutside)(D,L);var z=function(e){var t=null;null===e?g(null):j.getTime()===e.getTime()?t=j:(e.setHours(0,0,0,0),t=M(e),g(e),c(di(e))),!a.disabled&&w&&a.onChange&&a.onChange(t)},F=(0,y.jsx)("div",{className:mi.calendarButton,children:(0,y.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(!v)}})});return(0,y.jsxs)(y.Fragment,{children:[(0,y.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:dr(a.tooltip),labelIconTooltip:a.tooltip,tooltipAsHtml:a.tooltipAsHtml,explanationTextAsHtml:a.explanationTextAsHtml,children:(0,y.jsxs)("div",{className:mi.container,children:[(0,y.jsx)("div",{className:mi.dateInput,onKeyDown:function(e){!v&&I("ArrowDown",e)&&(b(!0),e.preventDefault()),v&&I("Escape",e)&&(b(!1),e.preventDefault())},"aria-hidden":"true",children:(0,y.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),_(!0)},actionElement:F})}),(0,y.jsx)("div",{className:mi.nowButton,children:(0,y.jsx)(i.Button,{label:E.admin.base.formComponent.dateInput.today,type:i.ButtonType.Button,size:i.ButtonSize.S,color:i.ButtonColor.Tertiary,onClick:function(){_(!0),z(new Date)},disabled:a.disabled})})]})}),v&&(0,y.jsx)("div",{className:mi.picker,children:(0,y.jsx)(i.DateTimePicker,{"data-id":"picker",ref:D,minDate:O,maxDate:S,years:P,months:o,value:p,onChange:function(e){e&&(_(!0),z(e),b(!1))}})})]})},vi=s(9018),bi={};bi.styleTagTransform=xn(),bi.setAttributes=An(),bi.insert=gn().bind(null,"head"),bi.domAPI=fn(),bi.insertStyleElement=bn();dn()(vi.Z,bi);const Ci=vi.Z&&vi.Z.locals?vi.Z.locals:void 0;var xi=["startYear","endYear","months"],yi=function(e){if(e){if("string"==typeof e){var t=new Date(e.replace("Z",""));return ui(t)}return ui(e)}},wi=function(e){var t=e.startYear,n=e.endYear,o=e.months,a=m(e,xi),s=f((0,r.useState)(yi(a.value)),2),l=s[0],c=s[1],d=f((0,r.useState)(a.value?new Date(a.value):null),2),p=d[0],g=d[1],A=f((0,r.useState)(!1),2),v=A[0],b=A[1],C=f((0,r.useState)(!1),2),w=C[0],_=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=fo().executeCommand,P=Array.from({length:n-t+1},(function(e,n){return t+n})),E=x().localization,I=function(e,t){return t.code===e&&!t.shiftKey&&!t.altKey&&!t.ctrlKey},M=function(e){return e?new Date(e.getTime()-6e4*e.getTimezoneOffset()):null};(0,r.useEffect)((function(){var e;new Date(a.value).getTime()!==(null===(e=M(p))||void 0===e?void 0:e.getTime())&&j.getTime()!==new Date(a.value).getTime()&&(c(yi(a.value)),g(a.value?new Date(a.value):null))}),[a.value]);var N=G(u(h().mark((function e(){var t,n;return h().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)}))),q),L=(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(v&&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==p?void 0:p.getDate(),a=(new Date).getDate();!o||o!==i&&o!==a||(document.removeEventListener("keydown",R),L(null))}}}),[v,p,L]);(0,r.useEffect)((function(){N()}),[l,N]),(0,r.useEffect)((function(){if(v){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())}}),[v,R]),(0,i.useHandleClickOutside)(D,L);var z,F=function(e){var t=null;null===e?g(null):j.getTime()===e.getTime()?t=j:(t=M(e),g(e),c(ui(e))),!a.disabled&&w&&a.onChange&&a.onChange(t)},W=(0,y.jsx)("div",{className:Ci.calendarButton,children:(0,y.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(!v)}})});return(0,y.jsxs)(y.Fragment,{children:[(0,y.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:dr(a.tooltip),labelIconTooltip:a.tooltip,tooltipAsHtml:a.tooltipAsHtml,explanationTextAsHtml:a.explanationTextAsHtml,children:(0,y.jsxs)("div",{className:Ci.container,children:[(0,y.jsx)("div",{className:Ci.dateInput,onKeyDown:function(e){!v&&I("ArrowDown",e)&&(b(!0),e.preventDefault()),v&&I("Escape",e)&&(b(!1),e.preventDefault())},"aria-hidden":"true",children:(0,y.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),_(!0)},actionElement:W})}),(0,y.jsx)("div",{className:Ci.nowButton,children:(0,y.jsx)(i.Button,{label:E.admin.base.formComponent.dateTimeInput.now,type:i.ButtonType.Button,size:i.ButtonSize.S,color:i.ButtonColor.Tertiary,onClick:function(){_(!0),F(new Date)},disabled:a.disabled})})]})}),v&&(0,y.jsx)("div",{className:Ci.picker,children:(0,y.jsx)(i.DateTimePicker,{"data-id":"picker",ref:D,minDate:O,maxDate:S,years:P,months:o,value:p,onChange:function(e){e&&(_(!0),F(e),b(!1))},timePicker:{timeFormat:i.DateTimePickerTimeFormat.Hours12,defaultTime:(z=new Date,{hours:z.getHours(),minutes:z.getMinutes()}),actionLabel:E.admin.base.formComponent.dateTimeInput.save}})})]})},_i=["delimiter"],Oi=function(e){var t,n=e.delimiter,o=m(e,_i),a=f((0,r.useState)(null!==(t=o.value)&&void 0!==t?t:void 0),2),s=a[0],l=a[1],c=f((0,r.useState)(!1),2),u=c[0],d=c[1],p=G((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))}),q);return(0,r.useEffect)((function(){l(o.value)}),[l,o.value]),(0,r.useEffect)((function(){p()}),[s,p]),(0,y.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:dr(o.tooltip),labelIconTooltip:o.tooltip,explanationText:o.explanationText,dataTestId:o.name,tooltipAsHtml:o.tooltipAsHtml,explanationTextAsHtml:o.explanationTextAsHtml})},Si=["allowedExtensions","inheritSystemSettings","settingsAllowedExtensions"],ji=function(e){var t=e.allowedExtensions,n=e.inheritSystemSettings,o=e.settingsAllowedExtensions,a=m(e,Si),s=f((0,r.useState)(null!=t?t:""),2),l=s[0],c=s[1],u=f((0,r.useState)(n),2),d=u[0],p=u[1],g=f((0,r.useState)(a.validationMessage),2),h=g[0],A=g[1],v=f((0,r.useState)(a.invalid),2),b=v[0],C=v[1],w=x().localization;(0,r.useEffect)((function(){A(a.validationMessage),C(a.invalid)}),[a]);return(0,y.jsxs)(i.FormItemWrapper,{invalid:b,disabled:a.disabled,children:[(0,y.jsx)(i.Input,{type:"text",label:a.label,value:d?o:l,invalid:b,validationMessage:h,onChange:function(e){a.onChange&&!d&&(c(e.target.value),a.onChange(e.target.value))},labelIcon:dr(a.tooltip),labelIconTooltip:a.tooltip,disabled:d||a.disabled,tooltipAsHtml:a.tooltipAsHtml,explanationTextAsHtml:a.explanationTextAsHtml}),(0,y.jsx)(i.Checkbox,{checked:d,disabled:a.disabled,label:w.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))}})]})},Ti=s(4415),Di={};Di.styleTagTransform=xn(),Di.setAttributes=An(),Di.insert=gn().bind(null,"head"),Di.domAPI=fn(),Di.insertStyleElement=bn();dn()(Ti.Z,Di);const Bi=Ti.Z&&Ti.Z.locals?Ti.Z.locals:void 0;var ki=function(e){var t=x().localization,n=f((0,r.useState)(!1),2),o=n[0],a=n[1],s=f((0,r.useState)(e.value),2),l=s[0],c=s[1],u=f((0,r.useState)(null),2),d=u[0],p=u[1],m=f((0,r.useState)(""),2),g=m[0],h=m[1],A=f((0,r.useState)(""),2),v=A[0],b=A[1],C=Object.keys(i.KXIcons),w=function(t){c(t),a(!1),e.onChange&&e.onChange(t)},_=G((function(e){b(e)}),250),O=Qt()(Bi.iconSelectorInputWrapper,e.disabled&&Bi.disabled);return(0,y.jsxs)(y.Fragment,{children:[(0,y.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:dr(e.tooltip),labelIconTooltip:e.tooltip,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,children:(0,y.jsxs)(i.Box,{className:Bi.select,children:[(0,y.jsx)(i.Box,{spacingRight:i.Spacing.M,className:O,children:(0,y.jsxs)(i.Box,{spacing:i.Spacing.S,className:Bi.iconSelectorInput,children:[l&&(0,y.jsx)(i.Box,{spacingLeft:i.Spacing.S,children:(0,y.jsx)(i.Icon,{name:l})}),(0,y.jsx)(i.Box,{className:Bi.iconName,children:l||t.admin.base.formComponent.iconSelector.none}),!e.required&&!e.disabled&&l&&(0,y.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 w(null)},tabIndex:0})]})}),(0,y.jsx)(i.Button,{label:t.admin.base.formComponent.iconSelector.select,disabled:e.disabled,size:i.ButtonSize.M,onClick:function(){return a(!0)}})]})}),(0,y.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 w(null!=d?d:l)}},headerContent:(0,y.jsx)(i.Box,{spacingX:i.Spacing.XL,spacingBottom:i.Spacing.XL,spacingRight:i.Spacing.XXXXL,children:(0,y.jsx)(i.Input,{placeholder:t.admin.base.formComponent.iconSelector.searchPlaceholder,onChange:function(e){h(e.target.value),_(e.target.value)},value:g})}),children:(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,y.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,y.jsx)(r.default.Fragment,{children:(0,y.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)}))})})})]})},Pi=s(3998),Ei={};Ei.styleTagTransform=xn(),Ei.setAttributes=An(),Ei.insert=gn().bind(null,"head"),Ei.domAPI=fn(),Ei.insertStyleElement=bn();dn()(Pi.Z,Ei);const Ii=Pi.Z&&Pi.Z.locals?Pi.Z.locals:void 0;function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Li=function(e){var t=f((0,r.useState)(e.isMacro),2),n=t[0],o=t[1],a=f((0,r.useState)(e.isMacro?"":e.value),2),s=a[0],l=a[1],c=f((0,r.useState)(e.isMacro?e.value:""),2),u=c[0],d=c[1],p=f((0,r.useState)(e.fieldValues),2),m=p[0],g=p[1],h=x().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(){g(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=Qt()(Ii.labelContainer,e.disabled&&Ii.disabled),C=k("".concat(e.innerComponentName,"FormComponent"));return(0,y.jsx)(i.FormItemWrapper,{children:(0,y.jsxs)("div",{className:Ii.container,children:[(0,y.jsxs)("div",{className:Ii.header,children:[(0,y.jsx)("div",{className:b,children:(0,y.jsx)("label",{children:e.label})}),(0,y.jsx)("div",{className:Ii.buttonsContainer,children:!e.disabled&&e.supportsMacro&&(0,y.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,y.jsxs)("div",{children:[n&&(0,y.jsx)(i.Input,Ni(Ni({onChange:function(e){A(e.target.value)}},e.innerComponentProperties),{},{label:"",value:u,disabled:e.disabled})),!n&&C&&(0,y.jsx)(C,Ni(Ni({onChange:A},e.innerComponentProperties),{},{value:s,disabled:e.disabled,fieldValues:m,invalid:e.invalid,validationMessage:e.validationMessage}))]})]})})},Ri=s(8766),zi={};zi.styleTagTransform=xn(),zi.setAttributes=An(),zi.insert=gn().bind(null,"head"),zi.domAPI=fn(),zi.insertStyleElement=bn();dn()(Ri.Z,zi);const Fi=Ri.Z&&Ri.Z.locals?Ri.Z.locals:void 0;var Wi=function(e){var t,n=x().localization,r=f((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,y.jsx)(i.FormItemWrapper,{labelClassnames:Fi.labelOverride,label:e.label,invalid:e.invalid,validationMessage:e.validationMessage,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,disabled:e.disabled,children:(0,y.jsxs)("div",{className:Fi.container,children:[(0,y.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,y.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"})]})})},Hi=function(e){var t=f((0,r.useState)(e.value+""),2),n=t[0],o=t[1];return(0,y.jsx)(i.Input,{type:"text",label:e.label,name:e.name,value:null!=n?n:void 0,onChange:function(t){if(e.onChange){var n=t.target.value;if(""===n||"-"===n)return o(n),void e.onChange(null);if(Number.isInteger(Number(n))){var r=n.replace(/(^0+)|(\.)|(\s)/g,"");o(r),e.onChange(Number(r))}}},invalid:e.invalid,validationMessage:e.validationMessage,disabled:e.disabled,markAsRequired:e.required,inactiveMessage:e.inactiveMessage,labelIcon:dr(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 Vi(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 Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zi=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}(),Ui=Math.abs,Gi=String.fromCharCode,qi=Object.assign;function Qi(e){return e.trim()}function Xi(e,t,n){return e.replace(t,n)}function Ki(e,t){return e.indexOf(t)}function Ji(e,t){return 0|e.charCodeAt(t)}function $i(e,t,n){return e.slice(t,n)}function ea(e){return e.length}function ta(e){return e.length}function na(e,t){return t.push(e),e}var ra=1,oa=1,ia=0,aa=0,sa=0,la="";function ca(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ra,column:oa,length:a,return:""}}function ua(e,t){return qi(ca("",null,null,"",null,null,0),e,{length:-e.length},t)}function da(){return sa=aa>0?Ji(la,--aa):0,oa--,10===sa&&(oa=1,ra--),sa}function pa(){return sa=aa<ia?Ji(la,aa++):0,oa++,10===sa&&(oa=1,ra++),sa}function fa(){return Ji(la,aa)}function ma(){return aa}function ga(e,t){return $i(la,e,t)}function ha(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 Aa(e){return ra=oa=1,ia=ea(la=e),aa=0,[]}function va(e){return la="",e}function ba(e){return Qi(ga(aa-1,ya(91===e?e+2:40===e?e+1:e)))}function Ca(e){for(;(sa=fa())&&sa<33;)pa();return ha(e)>2||ha(sa)>3?"":" "}function xa(e,t){for(;--t&&pa()&&!(sa<48||sa>102||sa>57&&sa<65||sa>70&&sa<97););return ga(e,ma()+(t<6&&32==fa()&&32==pa()))}function ya(e){for(;pa();)switch(sa){case e:return aa;case 34:case 39:34!==e&&39!==e&&ya(sa);break;case 40:41===e&&ya(e);break;case 92:pa()}return aa}function wa(e,t){for(;pa()&&e+sa!==57&&(e+sa!==84||47!==fa()););return"/*"+ga(t,aa-1)+"*"+Gi(47===e?e:pa())}function _a(e){for(;!ha(fa());)pa();return ga(e,aa)}var Oa="-ms-",Sa="-moz-",ja="-webkit-",Ta="comm",Da="rule",Ba="decl",ka="@keyframes";function Pa(e,t){for(var n="",r=ta(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ea(e,t,n,r){switch(e.type){case"@import":case Ba:return e.return=e.return||e.value;case Ta:return"";case ka:return e.return=e.value+"{"+Pa(e.children,r)+"}";case Da:e.value=e.props.join(",")}return ea(n=Pa(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ia(e,t){switch(function(e,t){return(((t<<2^Ji(e,0))<<2^Ji(e,1))<<2^Ji(e,2))<<2^Ji(e,3)}(e,t)){case 5103:return ja+"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 ja+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ja+e+Sa+e+Oa+e+e;case 6828:case 4268:return ja+e+Oa+e+e;case 6165:return ja+e+Oa+"flex-"+e+e;case 5187:return ja+e+Xi(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return ja+e+Oa+"flex-item-"+Xi(e,/flex-|-self/,"")+e;case 4675:return ja+e+Oa+"flex-line-pack"+Xi(e,/align-content|flex-|-self/,"")+e;case 5548:return ja+e+Oa+Xi(e,"shrink","negative")+e;case 5292:return ja+e+Oa+Xi(e,"basis","preferred-size")+e;case 6060:return ja+"box-"+Xi(e,"-grow","")+ja+e+Oa+Xi(e,"grow","positive")+e;case 4554:return ja+Xi(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Xi(Xi(Xi(e,/(zoom-|grab)/,ja+"$1"),/(image-set)/,ja+"$1"),e,"")+e;case 5495:case 3959:return Xi(e,/(image-set\([^]*)/,ja+"$1$`$1");case 4968:return Xi(Xi(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+ja+e+e;case 4095:case 3583:case 4068:case 2532:return Xi(e,/(.+)-inline(.+)/,ja+"$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(ea(e)-1-t>6)switch(Ji(e,t+1)){case 109:if(45!==Ji(e,t+4))break;case 102:return Xi(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Sa+(108==Ji(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ki(e,"stretch")?Ia(Xi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ji(e,t+1))break;case 6444:switch(Ji(e,ea(e)-3-(~Ki(e,"!important")&&10))){case 107:return Xi(e,":",":"+ja)+e;case 101:return Xi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ja+(45===Ji(e,14)?"inline-":"")+"box$3$1"+ja+"$2$3$1"+Oa+"$2box$3")+e}break;case 5936:switch(Ji(e,t+11)){case 114:return ja+e+Oa+Xi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ja+e+Oa+Xi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ja+e+Oa+Xi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ja+e+Oa+e+e}return e}function Ma(e){return va(Na("",null,null,null,[""],e=Aa(e),0,[0],e))}function Na(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,g=1,h=1,A=1,v=0,b="",C=o,x=i,y=r,w=b;h;)switch(m=v,v=pa()){case 40:if(108!=m&&58==w.charCodeAt(d-1)){-1!=Ki(w+=Xi(ba(v),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:w+=ba(v);break;case 9:case 10:case 13:case 32:w+=Ca(m);break;case 92:w+=xa(ma()-1,7);continue;case 47:switch(fa()){case 42:case 47:na(Ra(wa(pa(),ma()),t,n),l);break;default:w+="/"}break;case 123*g:s[c++]=ea(w)*A;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:f>0&&ea(w)-d&&na(f>32?za(w+";",r,n,d-1):za(Xi(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(na(y=La(w,t,n,c,u,o,s,b,C=[],x=[],d),i),123===v)if(0===u)Na(w,t,y,y,C,i,d,s,x);else switch(p){case 100:case 109:case 115:Na(e,y,y,r&&na(La(e,y,y,0,0,o,s,b,o,C=[],d),x),o,x,d,s,r?C:x);break;default:Na(w,y,y,y,[""],x,0,s,x)}}c=u=f=0,g=A=1,b=w="",d=a;break;case 58:d=1+ea(w),f=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==da())continue;switch(w+=Gi(v),v*g){case 38:A=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(ea(w)-1)*A,A=1;break;case 64:45===fa()&&(w+=ba(pa())),p=fa(),u=d=ea(b=w+=_a(ma())),v++;break;case 45:45===m&&2==ea(w)&&(g=0)}}return i}function La(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=ta(p),m=0,g=0,h=0;m<r;++m)for(var A=0,v=$i(e,d+1,d=Ui(g=a[m])),b=e;A<f;++A)(b=Qi(g>0?p[A]+" "+v:Xi(v,/&\f/g,p[A])))&&(l[h++]=b);return ca(e,t,n,0===o?Da:s,l,c,u)}function Ra(e,t,n){return ca(e,t,n,Ta,Gi(sa),$i(e,2,-2),0)}function za(e,t,n,r){return ca(e,t,n,Ba,$i(e,0,r),$i(e,r+1,-1),r)}var Fa=function(e,t,n){for(var r=0,o=0;r=o,o=fa(),38===r&&12===o&&(t[n]=1),!ha(o);)pa();return ga(e,aa)},Wa=function(e,t){return va(function(e,t){var n=-1,r=44;do{switch(ha(r)){case 0:38===r&&12===fa()&&(t[n]=1),e[n]+=Fa(aa-1,t,n);break;case 2:e[n]+=ba(r);break;case 4:if(44===r){e[++n]=58===fa()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Gi(r)}}while(r=pa());return e}(Aa(e),t))},Ha=new WeakMap,Va=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)||Ha.get(n))&&!r){Ha.set(e,!0);for(var o=[],i=Wa(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]}}},Ya=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Za=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ba:e.return=Ia(e.value,e.length);break;case ka:return Pa([ua(e,{value:Xi(e.value,"@","@"+ja)})],r);case Da: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 Pa([ua(e,{props:[Xi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Pa([ua(e,{props:[Xi(t,/:(plac\w+)/,":-webkit-input-$1")]}),ua(e,{props:[Xi(t,/:(plac\w+)/,":-moz-$1")]}),ua(e,{props:[Xi(t,/:(plac\w+)/,Oa+"input-$1")]})],r)}return""}))}}];const Ua=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||Za;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=[Ea,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[Va,Ya].concat(r,p),u=ta(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,Pa(Ma(e?e+"{"+t.styles+"}":t.styles),f),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Zi({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};function Ga(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var qa=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Qa=function(e,t,n){qa(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};const Xa=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const Ka={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ja=/[A-Z]|^ms/g,$a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,es=function(e){return 45===e.charCodeAt(1)},ts=function(e){return null!=e&&"boolean"!=typeof e},ns=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return es(e)?e:e.replace(Ja,"-$&").toLowerCase()})),rs=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($a,(function(e,t,n){return is={name:t,styles:n,next:is},t}))}return 1===Ka[e]||es(e)||"number"!=typeof t||0===t?t:t+"px"};function os(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return is={name:n.name,styles:n.styles,next:is},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)is={name:r.name,styles:r.styles,next:is},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=os(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":ts(a)&&(r+=ns(i)+":"+rs(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=os(e,t,a);switch(i){case"animation":case"animationName":r+=ns(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)ts(a[l])&&(r+=ns(i)+":"+rs(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=is,i=n(e);return is=o,os(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var is,as=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var ss=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";is=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=os(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=os(n,t,e[a]),r&&(o+=i[a]);as.lastIndex=0;for(var s,l="";null!==(s=as.exec(o));)l+="-"+s[1];return{name:Xa(o)+l,styles:o,next:is}},ls=!!r.useInsertionEffect&&r.useInsertionEffect,cs=ls||function(e){return e()},us=(ls||r.useLayoutEffect,{}.hasOwnProperty),ds=(0,r.createContext)("undefined"!=typeof HTMLElement?Ua({key:"css"}):null);var ps=ds.Provider,fs=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(ds);return e(t,o,n)}))},ms=(0,r.createContext)({});var gs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hs=function(e,t){var n={};for(var r in t)us.call(t,r)&&(n[r]=t[r]);return n[gs]=e,n},As=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;qa(t,n,r);cs((function(){return Qa(t,n,r)}));return null},vs=fs((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[gs],a=[o],s="";"string"==typeof e.className?s=Ga(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=ss(a,void 0,(0,r.useContext)(ms));s+=t.key+"-"+l.name;var c={};for(var u in e)us.call(e,u)&&"css"!==u&&u!==gs&&(c[u]=e[u]);return c.ref=n,c.className=s,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(As,{cache:t,serialized:l,isStringTag:"string"==typeof i}),(0,r.createElement)(i,c))}));s(63);var bs=function(e,t){var n=arguments;if(null==t||!us.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=vs,i[1]=hs(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)};function Cs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ss(t)}var xs=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function ys(e,t,n){var r=[],o=Ga(e,r,n);return r.length<2?n:o+t(r)}var ws=function(e){var t=e.cache,n=e.serializedArr;cs((function(){for(var e=0;e<n.length;e++)Qa(t,n[e],!1)}));return null},_s=fs((function(e,t){var n=[],o=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=ss(r,t.registered);return n.push(i),qa(t,i,!1),t.key+"-"+i.name},i={css:o,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ys(t.registered,o,xs(n))},theme:(0,r.useContext)(ms)},a=e.children(i);return!0,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ws,{cache:t,serializedArr:n}),a)}));function Os(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=Hr(e);if(t){var o=Hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wr(this,n)}}var Ss=s(493);Math.min,Math.max;const js=["top","right","bottom","left"];js.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Ts(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ds(e){if(null==e)return window;if(!Ts(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bs(e){return Ds(e).getComputedStyle(e)}function ks(e){return Ts(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ps(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Es(e){return e instanceof Ds(e).HTMLElement}function Is(e){return e instanceof Ds(e).Element}function Ms(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ds(e).ShadowRoot||e instanceof ShadowRoot)}function Ns(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Bs(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ls(){return!/^((?!chrome|android).)*safari/i.test(Ps())}function Rs(e){return["html","body","#document"].includes(ks(e))}Math.min,Math.max;const zs=Math.round;function Fs(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&Es(e)&&(l=e.offsetWidth>0&&zs(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&zs(s.height)/e.offsetHeight||1);const u=Is(e)?Ds(e):window,d=!Ls()&&n,p=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,f=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,g=s.height/c;return{width:m,height:g,top:f,right:p+m,bottom:f+g,left:p,x:p,y:f}}function Ws(e){return(t=e,(t instanceof Ds(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Hs(e){return"html"===ks(e)?e:e.assignedSlot||e.parentNode||(Ms(e)?e.host:null)||Ws(e)}function Vs(e){const t=Hs(e);return Rs(t)?e.ownerDocument.body:Es(t)&&Ns(t)?t:Vs(t)}function Ys(e,t){var n;void 0===t&&(t=[]);const r=Vs(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ds(r),a=o?[i].concat(i.visualViewport||[],Ns(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ys(a))}const Zs=r.useLayoutEffect;var Us=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Gs=function(){};function qs(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Qs(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(qs(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Xs=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Fr(e)&&null!==e?[e]:[];var t},Ks=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Yi({},m(e,Us))};function Js(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function $s(e){return Js(e)?window.pageYOffset:e.scrollTop}function el(e,t){Js(e)?window.scrollTo(0,t):e.scrollTop=t}function tl(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function nl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Gs,o=$s(e),i=t-o,a=10,s=0;function l(){var t=tl(s+=a,o,i,n);el(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function rl(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ol=!1,il={get passive(){return ol=!0}},al="undefined"!=typeof window?window:{};al.addEventListener&&al.removeEventListener&&(al.addEventListener("p",Gs,il),al.removeEventListener("p",Gs,!1));var sl=ol;function ll(e){return null!=e}function cl(e,t,n){return e?t:n}function ul(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,g=p.top,h=n.offsetParent.getBoundingClientRect().top,A=a?window.innerHeight:Js(u=l)?window.innerHeight:u.clientHeight,v=$s(l),b=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),x=h-C,y=A-g,w=x+v,_=d-v-g,O=f-A+v+b,S=v+g-C,j=160;switch(o){case"auto":case"bottom":if(y>=m)return{placement:"bottom",maxHeight:t};if(_>=m&&!a)return i&&nl(l,O,j),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&y>=r)return i&&nl(l,O,j),{placement:"bottom",maxHeight:a?y-b:_-b};if("auto"===o||a){var T=t,D=a?x:w;return D>=r&&(T=Math.min(D-b-s.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return i&&el(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(x>=m)return{placement:"top",maxHeight:t};if(w>=m&&!a)return i&&nl(l,S,j),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&x>=r){var B=t;return(!a&&w>=r||a&&x>=r)&&(B=a?x-C:w-C),i&&nl(l,S,j),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var dl=function(e){return"auto"===e?"bottom":e},pl=(0,r.createContext)({getPortalPlacement:null}),fl=function(e){zr(n,e);var t=Os(n);function n(){var e;Ir(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===a,u=ul({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||dl(t);return Yi(Yi({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Nr(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(r.Component);fl.contextType=pl;var ml=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},gl=ml,hl=ml,Al=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return bs("div",_o({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};Al.defaultProps={children:"No options"};var vl=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return bs("div",_o({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};vl.defaultProps={children:"Loading..."};var bl,Cl=["size"];var xl,yl,wl={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},_l=function(e){var t=e.size,n=m(e,Cl);return bs("svg",_o({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:wl},n))},Ol=function(e){return bs(_l,_o({size:20},e),bs("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"}))},Sl=function(e){return bs(_l,_o({size:20},e),bs("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"}))},jl=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Tl=jl,Dl=jl,Bl=function(){var e=Cs.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_"}}}(bl||(xl=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],yl||(yl=xl.slice(0)),bl=Object.freeze(Object.defineProperties(xl,{raw:{value:Object.freeze(yl)}})))),kl=function(e){var t=e.delay,n=e.offset;return bs("span",{css:Cs({animation:"".concat(Bl," 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"},"","")})},Pl=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return bs("div",_o({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),bs(kl,{delay:0,offset:i}),bs(kl,{delay:160,offset:!0}),bs(kl,{delay:320,offset:!i}))};Pl.defaultProps={size:4};var El=["data"],Il=["innerRef","isDisabled","isHidden","inputClassName"],Ml={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Nl={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Yi({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ml)},Ll=function(e){return Yi({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ml)},Rl=function(e){var t=e.children,n=e.innerProps;return bs("div",n,t)};var zl={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return bs("div",_o({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||bs(Ol,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return bs("div",_o({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return bs("div",_o({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||bs(Sl,null))},DownChevron:Sl,CrossIcon:Ol,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return bs("div",_o({css:o("group",e),className:r({group:!0},n)},s),bs(i,_o({},a,{selectProps:u,theme:c,getStyles:o,cx:r}),l),bs("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=Ks(e);o.data;var i=m(o,El);return bs("div",_o({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return bs("div",_o({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return bs("span",_o({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.value,i=Ks(e),a=i.innerRef,s=i.isDisabled,l=i.isHidden,c=i.inputClassName,u=m(i,Il);return bs("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":o||""},bs("input",_o({className:n({input:!0},c),ref:a,style:Ll(l),disabled:s},u)))},LoadingIndicator:Pl,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return bs("div",_o({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,s=e.isMulti;return bs("div",_o({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:a},i),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.className,i=e.controlElement,a=e.cx,s=e.innerProps,l=e.menuPlacement,c=e.menuPosition,u=e.getStyles,d=(0,r.useRef)(null),p=(0,r.useRef)(null),m=f((0,r.useState)(dl(l)),2),g=m[0],h=m[1],A=f((0,r.useState)(null),2),v=A[0],b=A[1],C=(0,r.useCallback)((function(e){var t=e.placement;t!==g&&h(t)}),[g]),x=(0,r.useCallback)((function(){if(i){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}}(i),t="fixed"===c?0:window.pageYOffset,n=e[g]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||b({offset:n,rect:e})}}),[i,c,g,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Zs((function(){x()}),[x]);var y=(0,r.useCallback)((function(){"function"==typeof p.current&&(p.current(),p.current=null),i&&d.current&&(p.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?[...Is(e)?Ys(e):[],...Ys(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})),Is(e)&&!s&&d.observe(e),d.observe(t)}let p=s?Fs(e):null;return s&&function t(){const r=Fs(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}(i,d.current,x,{elementResize:"ResizeObserver"in window}))}),[i,x]);Zs((function(){y()}),[y]);var w=(0,r.useCallback)((function(e){d.current=e,y()}),[y]);if(!t&&"fixed"!==c||!v)return null;var _=bs("div",_o({ref:w,css:u("menuPortal",{offset:v.offset,position:c,rect:v.rect}),className:a({"menu-portal":!0},o)},s),n);return bs(pl.Provider,{value:{getPortalPlacement:C}},t?(0,Ss.createPortal)(_,t):_)},LoadingMessage:vl,NoOptionsMessage:Al,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,p=r.Label,f=r.Remove;return bs(_s,null,(function(r){var m=r.css,g=r.cx;return bs(d,{data:i,innerProps:Yi({className:g(m(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))},s),selectProps:u},bs(p,{data:i,innerProps:{className:g(m(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),bs(f,{data:i,innerProps:Yi({className:g(m(a("multiValueRemove",e)),o({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:Rl,MultiValueLabel:Rl,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return bs("div",_o({role:"button"},n),t||bs(Ol,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,l=e.innerRef,c=e.innerProps;return bs("div",_o({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:l,"aria-disabled":i},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return bs("div",_o({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return bs("div",_o({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return bs("div",_o({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,s=e.hasValue;return bs("div",_o({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},n)},o),t)}},Fl=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Wl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Hl(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||Wl(r)&&Wl(o)))return!1;var r,o;return!0}function Vl(e,t){void 0===t&&(t=Hl);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}for(var Yl={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"},Zl=function(e){return bs("span",_o({css:Yl},e))},Ul={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:"",".")}},Gl=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 Yi(Yi({},Ul),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=Yi({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 i={focused:t,label:d(t),isDisabled:m(t,s),isSelected:r,options:A,context:t===n?"menu":"value",selectValue:s};e=y.onFocus(i)}return e}),[n,o,d,m,y,A,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=bs(r.Fragment,null,bs("span",{id:"aria-selection"},w),bs("span",{id:"aria-context"},j)),D="initial-input-focus"===(null==t?void 0:t.action);return bs(r.Fragment,null,bs(Zl,{id:c},D&&T),bs(Zl,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},a&&!D&&T))},ql=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ql=new RegExp("["+ql.map((function(e){return e.letters})).join("")+"]","g"),Xl={},Kl=0;Kl<ql.length;Kl++)for(var Jl=ql[Kl],$l=0;$l<Jl.letters.length;$l++)Xl[Jl.letters[$l]]=Jl.base;var ec=function(e){return e.replace(Ql,(function(e){return Xl[e]}))},tc=Vl(ec),nc=function(e){return e.replace(/^\s+|\s+$/g,"")},rc=function(e){return"".concat(e.label," ").concat(e.value)},oc=["innerRef"];function ic(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=f(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=f(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(m(e,oc),"onExited","in","enter","exit","appear");return bs("input",_o({ref:t},n,{css:Cs({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 ac=["boxSizing","height","overflow","paddingRight","position"],sc={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function lc(e){e.preventDefault()}function cc(e){e.stopPropagation()}function uc(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function dc(){return"ontouchstart"in window||navigator.maxTouchPoints}var pc=!("undefined"==typeof window||!window.document||!window.document.createElement),fc=0,mc={capture:!1,passive:!1};var gc=function(){return document.activeElement&&document.activeElement.blur()},hc={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ac(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),c=(0,r.useRef)(0),u=(0,r.useRef)(null),d=(0,r.useCallback)((function(e,t){if(null!==u.current){var r=u.current,c=r.scrollTop,d=r.scrollHeight,p=r.clientHeight,f=u.current,m=t>0,g=d-p-c,h=!1;g>t&&s.current&&(o&&o(e),s.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>g?(n&&!s.current&&n(e),f.scrollTop=d,h=!0,s.current=!0):!m&&-t>c&&(i&&!l.current&&i(e),f.scrollTop=0,h=!0,l.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,i,a]),p=(0,r.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,r.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),m=(0,r.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),g=(0,r.useCallback)((function(e){if(e){var t=!!sl&&{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(pc){var t=document.body,n=t&&t.style;if(o&&ac.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&fc<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(sc).forEach((function(e){var t=sc[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&dc()&&(t.addEventListener("touchmove",lc,mc),e&&(e.addEventListener("touchstart",uc,mc),e.addEventListener("touchmove",cc,mc))),fc+=1}}),[o]),l=(0,r.useCallback)((function(e){if(pc){var t=document.body,n=t&&t.style;fc=Math.max(fc-1,0),o&&fc<1&&ac.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&dc()&&(t.removeEventListener("touchmove",lc,mc),e&&(e.removeEventListener("touchstart",uc,mc),e.removeEventListener("touchmove",cc,mc)))}}),[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 bs(r.Fragment,null,n&&bs("div",{onClick:gc,css:hc}),t((function(e){i(e),a(e)})))}var vc={clearIndicator:Dl,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){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Tl,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,i=r.colors;return Yi({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},Nl)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:hl,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,s=r.colors;return a(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),a(t,"backgroundColor",s.neutral0),a(t,"borderRadius",o),a(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),a(t,"marginBottom",i.menuGutter),a(t,"marginTop",i.menuGutter),a(t,"position","absolute"),a(t,"width","100%"),a(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},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){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:gl,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var bc,Cc={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}},xc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:rl(),captureMenuScroll:!rl(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Yi({ignoreCase:!0,ignoreAccents:!0,stringify:rc,trim:!0,matchFrom:"any"},bc),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?nc(t):t,c=a?nc(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=tc(l),c=ec(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};function yc(e,t,n,r){return{type:"option",data:t,isDisabled:Tc(e,t,n),isSelected:Dc(e,t,n),label:Sc(e,t),value:jc(e,t),index:r}}function wc(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return yc(e,n,t,r)})).filter((function(t){return Oc(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=yc(e,n,t,r);return Oc(e,i)?i:void 0})).filter(ll)}function _c(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,I(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Oc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!kc(e)||!i)&&Bc(e,{label:a,value:s,data:o},r)}var Sc=function(e,t){return e.getOptionLabel(t)},jc=function(e,t){return e.getOptionValue(t)};function Tc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Dc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=jc(e,t);return n.some((function(t){return jc(e,t)===r}))}function Bc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var kc=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Pc=1,Ec=function(e){zr(n,e);var t=Os(n);function n(e){var r;return Ir(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(I(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=cl(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(cl(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=cl(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qs.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Sc(r.props,e)},r.getOptionValue=function(e){return jc(r.props,e)},r.getStyles=function(e,t){var n=vc[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Yi(Yi({},zl),e.components);var e},r.buildCategorizedOptions=function(){return wc(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return _c(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Yi({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Js(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return kc(r.props)},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||++Pc),r.state.selectValue=Xs(e.value),r}return Nr(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()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,l=a.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):c||s||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?el(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&el(t,Math.max(n.offsetTop-i,0)),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(Cc):Yi(Yi({},Cc),this.props.theme):Cc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:o,selectProps:a,setValue:i,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 Tc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Dc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Bc(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=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,f=this.commonProps,m=o||this.getElementId("input"),g=Yi(Yi(Yi({"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"],role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(c,_o({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},g)):r.createElement(ic,_o({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Gs,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{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,_o({},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,_o({},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,_o({},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,_o({},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,_o({},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,_o({},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,_o({},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,_o({},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,_o({},d,{key:l,data:i,options:a,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return B(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return B(t,"".concat(t.index))}));else if(h){var k=A({inputValue:g});if(null===k)return null;D=r.createElement(l,d,k)}else{var P=S({inputValue:g});if(null===P)return null;D=r.createElement(c,d,P)}var E={minMenuHeight:v,maxMenuHeight:b,menuPlacement:x,menuPosition:y,menuShouldScrollIntoView:O},I=r.createElement(fl,_o({},d,E),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return r.createElement(i,_o({},d,E,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:s}),r.createElement(Ac,{captureEnabled:m,onTopArrive:j,onBottomArrive:T,lockEnabled:_},(function(t){return r.createElement(a,_o({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:h,maxHeight:l,focusedOption:p}),D)})))}));return w||"fixed"===y?r.createElement(s,_o({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:x,menuPosition:y}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!o){if(i){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:a,type:"hidden",value:l})}var c=s.length>0?s.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"});return r.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return r.createElement("input",{name:a,type:"hidden",value:u})}}},{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(Gl,_o({},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,_o({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,_o({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,_o({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,_o({},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=Xs(c),m={};if(n&&(c!==n.value||l!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var g=u?function(e,t){return _c(wc(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:cl(p,f,f[0]||null),options:f,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(b=null),Yi(Yi(Yi({},m),v),{},{prevProps:e,ariaSelection:b,prevWasFocused:C})}}]),n}(r.Component);Ec.defaultProps=xc;var Ic=(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,g=e.onMenuOpen,h=e.value,A=m(e,Fl),v=f((0,r.useState)(void 0!==l?l:n),2),b=v[0],C=v[1],x=f((0,r.useState)(void 0!==c?c:i),2),y=x[0],w=x[1],_=f((0,r.useState)(void 0!==h?h: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 g&&g(),w(!0)}),[g]),B=(0,r.useCallback)((function(){"function"==typeof p&&p(),w(!1)}),[p]),k=void 0!==l?l:b,P=void 0!==c?c:y,E=void 0!==h?h:O;return Yi(Yi({},A),{},{inputValue:k,menuIsOpen:P,onChange:j,onInputChange:T,onMenuClose:B,onMenuOpen:D,value:E})}(e);return r.createElement(Ec,_o({ref:t},n))}));r.Component;const Mc=Ic;function Nc(){var e=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}const Lc=Symbol("useLazyRef empty value"),Rc=e=>{const t=(0,r.useRef)(Lc);return t.current===Lc&&(t.current=e()),t};var zc=function(e){return{isFirstLoad:!0,options:[],hasMore:!0,isLoading:!1,additional:e.additional}},Fc=function(e){var t=e.options,n=e.defaultOptions,r=e.additional,o=e.defaultAdditional,i=!0===n?null:n instanceof Array?n:t;return i?{"":{isFirstLoad:!1,isLoading:!1,options:i,hasMore:!0,additional:o||r}}:{}},Wc=function(e,t,n){return e-t-10<n},Hc=function(e,t){return[].concat(I(e),I(t))};function Vc(e){var t=function(e,t){if("object"!==Fr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fr(t)?t:String(t)}var Yc=setTimeout;function Zc(e,t){var n=t.useCachedSetTimeout?Yc:setTimeout;return new Promise((function(t){n(t,e)}))}const Uc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.useCachedSetTimeout,r=Zc(e,{useCachedSetTimeout:n});function o(e){return r.then((function(){return e}))}return o.then=function(){return r.then.apply(r,arguments)},o.catch=Promise.resolve().catch,o};var Gc='[react-select-async-paginate] response of "loadOptions" should be an object with "options" prop, which contains array of options.',qc=function(e){if(!function(e){if(!e)return!1;var t=e,n=t.options,r=t.hasMore;return!!Array.isArray(n)&&("boolean"==typeof r||void 0===r)}(e))throw console.error(Gc,"Received:",e),new Error(Gc);return!0},Qc=function(){var e=u(h().mark((function e(t,n,r,o,i,s){var l,c,u,d,p,f,g,A,v,b,C;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=n.current.inputValue,c=!r.current[l],!(u=c?zc(n.current):r.current[l]).isLoading&&u.hasMore){e.next=5;break}return e.abrupt("return");case 5:if(i((function(e){return Yi(Yi({},e),{},a({},l,Yi(Yi({},u),{},{isLoading:!0})))})),!(o>0&&"input-change"===t)){e.next=13;break}return e.next=9,Uc(o);case 9:if(d=n.current.inputValue,l===d){e.next=13;break}return i((function(e){if(c){e[l];return m(e,[l].map(Vc))}return Yi(Yi({},e),{},a({},l,Yi(Yi({},u),{},{isLoading:!1})))})),e.abrupt("return");case 13:return f=!1,e.prev=14,g=n.current.loadOptions,e.next=18,g(l,u.options,u.additional);case 18:p=e.sent,e.next=24;break;case 21:e.prev=21,e.t0=e.catch(14),f=!0;case 24:if(!f){e.next=27;break}return i((function(e){return Yi(Yi({},e),{},a({},l,Yi(Yi({},u),{},{isLoading:!1})))})),e.abrupt("return");case 27:qc(p)&&(v=(A=p).options,b=A.hasMore,C=p.hasOwnProperty("additional")?p.additional:u.additional,i((function(e){return Yi(Yi({},e),{},a({},l,Yi(Yi({},u),{},{options:s(u.options,v,C),hasMore:!!b,isLoading:!1,isFirstLoad:!1,additional:C})))})));case 28:case"end":return e.stop()}}),e,null,[[14,21]])})));return function(t,n,r,o,i,a){return e.apply(this,arguments)}}(),Xc=function(e){return e+1},Kc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.defaultOptions,o=e.loadOptionsOnMenuOpen,i=void 0===o||o,a=e.debounceTimeout,s=void 0===a?0:a,l=e.inputValue,c=e.menuIsOpen,u=e.filterOption,d=void 0===u?null:u,p=e.reduceOptions,f=void 0===p?Hc:p,m=e.shouldLoadMore,g=void 0===m?Wc:m,h=Nc(),A=(0,r.useRef)(!0),v=(0,r.useRef)(e);v.current=e;var b=(0,r.useState)(0)[1],C=Rc((function(){return Fc(e)})),x=(0,r.useCallback)((function(e){Qc(e,v,C,s,(function(e){C.current=e(C.current),h.current&&b(Xc)}),f)}),[s]),y=(0,r.useCallback)((function(){var e=v.current.inputValue;C.current[e]&&x("menu-scroll")}),[x]);(0,r.useEffect)((function(){A.current?A.current=!1:(C.current={},b(Xc)),!0===n&&x("autoload")}),t),(0,r.useEffect)((function(){c&&!C.current[l]&&x("input-change")}),[l]),(0,r.useEffect)((function(){c&&!C.current[""]&&i&&x("menu-toggle")}),[c]);var w=C.current[l]||zc(e);return{handleScrolledToBottom:y,shouldLoadMore:g,filterOption:d,isLoading:w.isLoading,isFirstLoad:w.isFirstLoad,options:w.options}},Jc=s(7993);var $c=function(e){return function(t){var n=t.selectProps,o=t.innerRef,i=n,a=i.handleScrolledToBottom,s=i.shouldLoadMore,l=(0,r.useRef)(),c=(0,r.useRef)(null),u=(0,r.useCallback)((function(){var e=c.current;if(!e)return!1;var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return s(n,r,t)}),[s]),d=(0,r.useCallback)((function(){u()&&a&&a()}),[u,a]),p=(0,r.useCallback)((function(){d(),l.current=setTimeout(p,300)}),[d]);return(0,r.useEffect)((function(){return p(),function(){l.current&&clearTimeout(l.current)}}),[]),(0,y.jsx)(e,Yi(Yi({},t),{},{innerRef:(0,Jc.Z)(o,c)}))}}(zl.MenuList),eu=["components","selectRef","isLoading","cacheUniqs"];var tu=function(e){function t(t){var n=t.components,o=t.selectRef,i=t.isLoading,a=t.cacheUniqs,s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.inputValue,o=e.menuIsOpen,i=e.defaultInputValue,a=e.defaultMenuIsOpen,s=e.onInputChange,l=e.onMenuClose,c=e.onMenuOpen,u=f((0,r.useState)(i||""),2),d=u[0],p=u[1],m=f((0,r.useState)(!!a),2),g=m[0],h=m[1],A="string"==typeof n?n:d,v="boolean"==typeof o?o:g,b=(0,r.useCallback)((function(e,t){s&&s(e,t),p(e)}),[s]),C=(0,r.useCallback)((function(){l&&l(),h(!1)}),[l]),x=(0,r.useCallback)((function(){c&&c(),h(!0)}),[c]),y=Kc(Yi(Yi({},e),{},{inputValue:A,menuIsOpen:v}),t);return Yi(Yi({},y),{},{inputValue:A,menuIsOpen:v,onInputChange:b,onMenuClose:C,onMenuOpen:x})}(m(t,eu),a),l=function(e){return(0,r.useMemo)((function(){return Yi({MenuList:$c},e)}),[e])}(n),c="boolean"==typeof i?i:s.isLoading;return(0,y.jsx)(e,Yi(Yi(Yi({},t),s),{},{isLoading:c,components:l,ref:o}))}return t.defaultProps={selectRef:null,cacheUniqs:[],components:{}},t}(Mc);function nu(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=nu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const ru=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=nu(e))&&(r&&(r+=" "),r+=t);return r},ou="undefined"!=typeof window?r.default.useLayoutEffect:()=>{};let iu=new Map;function au(e,t){if(e===t)return e;let n=iu.get(e);if(n)return n(t),t;let r=iu.get(t);return r?(r(e),e):t}function su(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}new Set(["id"]),new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);let lu=new Map,cu=new Set;function uu(){if("undefined"==typeof window)return;let e=t=>{let n=lu.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),lu.delete(t.target)),0===lu.size)){for(let e of cu)e();cu.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=lu.get(t.target);n||(n=new Set,lu.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?uu():document.addEventListener("DOMContentLoaded",uu));"undefined"!=typeof window&&window.visualViewport;new Map;function du(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function pu(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function fu(){return pu(/^Mac/i)}function mu(e){return!(0!==e.mozInputSource||!e.isTrusted)||(du(/Android/i)&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}new WeakMap;const gu=r.default.createContext(null);gu.displayName="PressResponderContext";new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);class hu{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Au(e){let t=(0,r.useRef)({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,ou((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,r=e=>{var r,o;t.current.isFocused=!1,n.disabled&&(null===(o=(r=t.current).onBlur)||void 0===o||o.call(r,new hu("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}}),[])}let vu=null,bu=new Set,Cu=!1,xu=!1,yu=!1;const wu={Tab:!0,Escape:!0};function _u(e,t){for(let n of bu)n(e,t)}function Ou(e){xu=!0,function(e){return!(e.metaKey||!fu()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(vu="keyboard",_u("keyboard",e))}function Su(e){vu="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(xu=!0,_u("pointer",e))}function ju(e){mu(e)&&(xu=!0,vu="virtual")}function Tu(e){e.target!==window&&e.target!==document&&(xu||yu||(vu="virtual",_u("virtual",e)),xu=!1,yu=!1)}function Du(){xu=!1,yu=!0}function Bu(){if("undefined"==typeof window||Cu)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){xu=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ou,!0),document.addEventListener("keyup",Ou,!0),document.addEventListener("click",ju,!0),window.addEventListener("focus",Tu,!0),window.addEventListener("blur",Du,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Su,!0),document.addEventListener("pointermove",Su,!0),document.addEventListener("pointerup",Su,!0)):(document.addEventListener("mousedown",Su,!0),document.addEventListener("mousemove",Su,!0),document.addEventListener("mouseup",Su,!0)),Cu=!0}function ku(){return"pointer"!==vu}function Pu(e,t,n){Bu(),(0,r.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!wu[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(ku())};return bu.add(t),()=>{bu.delete(t)}}),t)}function Eu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,r.useRef)({isFocusWithin:!1}),s=(0,r.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),l=Au(s),c=(0,r.useCallback)((e=>{a.current.isFocusWithin||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,l(e))}),[o,i,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:c,onBlur:s}}}"undefined"!=typeof document&&("loading"!==document.readyState?Bu():document.addEventListener("DOMContentLoaded",Bu));const Iu=["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]"];Iu.join(":not([hidden]),");Iu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');Iu.join(':not([hidden]):not([tabindex="-1"]),');function Mu(e,t){return t.some((t=>t.contains(e)))}class Nu{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null),o=new Lu({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&&Mu(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n.removeChild(t),r.length>0&&r.forEach((e=>n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.length>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new Nu;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new Lu({scopeRef:null}),this.fastMap.set(null,this.root)}}class Lu{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){this.children=[],this.contain=!1,this.scopeRef=e.scopeRef}}new Nu;function Ru(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||ku()}),[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]);Pu((e=>{i.current.isFocusVisible=e,u()}),[],{isTextInput:n});let{focusProps:p}=function(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=Au(a),l=(0,r.useCallback)((e=>{e.target===e.currentTarget&&(n&&n(e),i&&i(!0),s(e))}),[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||o)?l:void 0,onBlur:t||!o&&!i?null:a}}}({isDisabled:o,onFocusChange:d}),{focusWithinProps:f}=Eu({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:i.current.isFocused&&l,focusProps:o?f:p}}var zu;!function(e){e.Standard="standard",e.Floating="floating"}(zu||(zu={}));var Fu=s(7941),Wu={};Wu.styleTagTransform=xn(),Wu.setAttributes=An(),Wu.insert=gn().bind(null,"head"),Wu.domAPI=fn(),Wu.insertStyleElement=bn();dn()(Fu.Z,Wu);const Hu=Fu.Z&&Fu.Z.locals?Fu.Z.locals:void 0;var Vu=["className","children"],Yu=["className","children"],Zu=["className"],Uu=["children","className"],Gu=["className"],qu=["children"];function Qu(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 Xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ku=function(e){var t=f((0,r.useState)(e.dataTestId||"object-selector-input"),1)[0],n=Ru({isTextInput:!0}),o=n.isFocusVisible,a=n.focusProps,s=x().localization.admin.base.formComponent,l=function(e){return Qt()(e,Hu.value)},c=(0,r.useCallback)((function(e){var t=e.className,n=e.children,r=m(e,Vu),o=Qt()(t,Hu.container);return(0,y.jsx)(zl.SelectContainer,Xu(Xu({className:o},r),{},{children:n}))}),[]),u=(0,r.useCallback)((function(e){var t,n=e.className,r=e.children,o=m(e,Yu),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=Qt()(n,Hu.control,o.isDisabled&&Hu.disabled,s&&Hu.disabledBackground);return(0,y.jsx)(zl.Control,Xu(Xu({className:l},o),{},{children:r}))}),[]),d=(0,r.useCallback)((function(e){return e=Xu(Xu({},e),{},{getStyles:function(){return{}}}),(0,y.jsx)(zl.Option,Xu(Xu({},e),{},{children:(0,y.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,y.jsx)("div",{className:Hu.dropdownIndicator,children:(0,y.jsx)(i.Icon,{name:n.menuIsOpen?"xp-chevron-up":"xp-chevron-down","data-testid":"".concat(t,"-dropdown-indicator")})})}),[t]),g=(0,r.useCallback)((function(e){var t=e.getValue().some((function(e){return e.isRemovable})),n=Qt()(Hu.clearIndicator,!t&&Hu.disabled);return(0,y.jsx)(zl.ClearIndicator,Xu(Xu({className:n},e),{},{children:(0,y.jsx)(i.Button,{title:s.dropDown.clearSelection,color:i.ButtonColor.Quinary,icon:"xp-times-circle"})}))}),[s.dropDown.clearSelection]),h=(0,r.useCallback)((function(e){var t=e.className,n=m(e,Zu),r=Qt()(t,Hu.placeholder);return(0,y.jsx)(zl.Placeholder,Xu({className:r},n))}),[]),A=(0,r.useCallback)((function(e){var t=e.children,n=e.className,r=m(e,Uu);return(0,y.jsx)(zl.SingleValue,Xu(Xu({className:l(n)},r),{},{children:t}))}),[]),v=(0,r.useCallback)((function(e){var n=e.className,r=m(e,Gu);return(0,y.jsx)(zl.Input,Xu({className:l(n),"data-testid":t},r))}),[t]),b=(0,r.useCallback)((function(e){var t=e.children,n=m(e,qu),r=Qt()(n.className,Hu.valueContainer);return(0,y.jsx)(zl.ValueContainer,Xu(Xu({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=Qt()(!s&&Hu.tagSpacer);return(0,y.jsx)("div",{className:l,children:(0,y.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]),w=(0,r.useCallback)((function(){return void 0===e.menuType||null===e.menuType?parseInt(i.Zindex.DropDown):parseInt(e.menuType===zu.Floating?i.Zindex.Dialog:i.Zindex.DropDown)}),[e.menuType]),_=Qt()(o&&Hu.focused,e.invalid&&Hu.invalid,e.isMulti&&e.value.length&&Hu.notEmpty);return(0,y.jsx)("div",{className:_,children:(0,r.createElement)(tu,Xu(Xu({},e),{},{key:JSON.stringify(e.options),menuPortalTarget:e.menuType===zu.Floating?document.querySelector("#".concat(i.dialogConfig.dialogContainerId)):null,closeMenuOnSelect:!e.isMulti,hideSelectedOptions:!1,tabSelectsValue:!1,isClearable:void 0!==e.onClear,onChange:function(t,n){var r,o;"clear"===n.action?null===(r=e.onClear)||void 0===r||r.call(e):null===(o=e.onChange)||void 0===o||o.call(e,t,n)},onFocus:a.onFocus,onBlur:a.onBlur,components:{Control:u,DropdownIndicator:p,ClearIndicator:g,Input:v,MultiValue:C,Option:d,Placeholder:h,SelectContainer:c,SingleValue:A,ValueContainer:b},styles:{indicatorSeparator:function(){return{display:"none"}},menuPortal:function(e){return Xu(Xu({},e),{},{zIndex:w()})}}}))})},Ju=s(5183),$u={};$u.styleTagTransform=xn(),$u.setAttributes=An(),$u.insert=gn().bind(null,"head"),$u.domAPI=fn(),$u.insertStyleElement=bn();dn()(Ju.Z,$u);const ed=Ju.Z&&Ju.Z.locals?Ju.Z.locals:void 0;var td=["selectedObjects","statusText","maximumItems","placeholder","onChange","disabled","invalid","children"],nd=function(e){return e?JSON.parse(e.value):{}},rd=function(e,t){var n;return null!==(n=null==e?void 0:e.map((function(e){return{value:JSON.stringify(e.value),label:e.isValid?e.text:t,isValid:e.isValid,isRemovable:!0}})))&&void 0!==n?n:[]},od=function(e){var t,n=e.selectedObjects,o=e.statusText,a=e.maximumItems,s=e.placeholder,l=e.onChange,c=e.disabled,d=e.invalid,p=e.children,g=m(e,td),A=x().localization.admin.base.formComponent.objectSelector,v=f((0,r.useState)(rd(n,A.invalidItemName)),2),b=v[0],C=v[1],w=fo().executeCommand,_=(0,r.useRef)({pageIndex:0,searchTerm:""}),O=f((0,r.useState)(1!==a),1)[0],S=Ao(a,b.length,A),j=(0,r.useCallback)((function(e){null==l||l([nd(e)]),C([e])}),[l]),T=(0,r.useCallback)((function(e){null==l||l(function(e){return e.map(nd)}(e)),C(e)}),[l]),D=(0,r.useCallback)(function(){var e=u(h().mark((function e(t){var n,r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.toLowerCase()!==_.current.searchTerm.toLowerCase()&&(_.current.pageIndex=0,_.current.searchTerm=t),e.next=3,w(g,"LoadObjects",{pageIndex:_.current.pageIndex,searchTerm:t});case 3:return r=e.sent,_.current.pageIndex++,e.abrupt("return",{options:rd(null==r?void 0:r.objects,A.invalidItemName),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)}}(),[w,A.invalidItemName,g]),B=bo(g.name,g.fieldValues).loadSelectedOptions,k=function(){var e=u(h().mark((function e(t){var n,r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B(t);case 2:n=e.sent,r=rd(n,A.invalidItemName),C(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){g.value&&(function(e){return!e||0===e.length}(b)||function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(t[n]!==e[n].value)return!0;return!1}(b,g.value))&&k(g.value)}),[]);return(0,y.jsxs)("div",{className:ed.container,children:[(0,y.jsx)(i.FormItemWrapper,{label:g.label,labelIcon:dr(g.tooltip),labelIconTooltip:g.tooltip,tooltipAsHtml:g.tooltipAsHtml,markAsRequired:g.required,statusText:null!=o?o:S,explanationText:g.explanationText,explanationTextAsHtml:g.explanationTextAsHtml,invalid:d,validationMessage:g.validationMessage,disabled:c,inactiveMessage:g.inactiveMessage,children:(0,y.jsx)(Ku,{isDisabled:c,isMulti:O,invalid:d,value:b,placeholder:s,loadOptions:D,onClear:function(){C([]),null==l||l([])},onChange:O?T:j,menuType:g.menuType,dataTestId:null===(t=g.label?g.label:s)||void 0===t?void 0:t.toLowerCase().replace(/\s/g,"-")})}),p&&(0,y.jsx)(i.Inline,{spacingY:i.Spacing.S,children:p})]})};function id(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}od.displayName="ObjectSelectorBase";var ad=function(e){var t=_o({},(wo(e),e));return(0,y.jsx)(od,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))};ad.displayName="ObjectSelectorFormComponent";var sd=s(2797),ld={};ld.styleTagTransform=xn(),ld.setAttributes=An(),ld.insert=gn().bind(null,"head"),ld.domAPI=fn(),ld.insertStyleElement=bn();dn()(sd.Z,ld);const cd=sd.Z&&sd.Z.locals?sd.Z.locals:void 0;var ud=["requiredLength","requireLowercase","requireUppercase","requiredUniqueChars","requireDigit","requireNonAlphanumeric","ignorePasswordPolicy"],dd=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=m(e,ud),g=f((0,r.useState)(!1),2),h=g[0],A=g[1],v=x().localization,b="passwordComponentId-"+p.name;return(0,y.jsx)(i.FormItemWrapper,{children:(0,y.jsxs)("div",{className:cd.container,children:[(0,y.jsx)(i.Input,{id:b,type:h?"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:dr(p.tooltip),labelIconTooltip:p.tooltip,explanationText:(n="",o&&(n+=1===o?v.admin.base.formComponent.password.passwordLengthOne:ho(v.admin.base.formComponent.password.passwordLength,o)),l&&(n+=1===l?v.admin.base.formComponent.password.uniqueCharacterCountOne:ho(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,y.jsxs)("div",{className:cd.labelContainer,children:[(0,y.jsx)("label",{htmlFor:b,children:p.label}),(0,y.jsx)(i.Button,{color:i.ButtonColor.Quinary,disabled:p.disabled,icon:h?"xp-eye-slash":"xp-eye",label:h?"Hide":"Show",onClick:function(){A(!h)}})]})]})})};function pd(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?pd(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var md=function(e){var t;return(0,y.jsx)(i.RadioGroup,{label:e.label,name:e.name,value:null!==(t=e.value)&&void 0!==t?t:e.required&&e.options.length>0?e.options[0].value:void 0,onChange:function(t){e.onChange&&e.onChange(t)},invalid:e.invalid,validationMessage:e.validationMessage,disabled:e.disabled,inline:e.inline,markAsRequired:e.required,inactiveMessage:e.inactiveMessage,labelIcon:dr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,children:e.options&&e.options.map((function(e,t){return(0,y.jsx)(i.RadioButton,fd(fd({dataTestId:e.label.toLocaleLowerCase().replace(/\s/g,"-")},e),{},{children:e.label}),t)}))})},gd=["label","placeholder","configuration","value","onChange","invalid","validationMessage","disabled","required","inactiveMessage","tooltip","explanationText","guid"],hd=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,g=e.explanationText,h=e.guid,A=m(e,gd),v=r.default.useRef(null);return(0,y.jsx)(y.Fragment,{children:(0,y.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:dr(f),labelIconTooltip:f,explanationText:g,scrollableContainerId:"rte-scrollable-container-".concat(h),customConfiguration:o?JSON.parse(o):void 0,explanationTextAsHtml:A.explanationTextAsHtml,tooltipAsHtml:A.tooltipAsHtml,dataTestId:A.name})})},Ad=function(e){var t=e.inputRef,n=e.froalaEditorConfigurator,o=x().localization,i=(0,r.useContext)(Bo).fieldInfo,a=$n(i),s=a.assetPanelEnabled,l=a.imageExtensions,c=a.onLibrariesLoad,u=f((0,r.useState)(!1),2),d=u[0],p=u[1],m="insertAssetIcon",g="insertAsset",h=o.admin.base.formComponent.richTextEditor.insertImage.buttonLabel,A=o.admin.base.formComponent.richTextEditor.insertImage.disabledButtonTooltip,v=o.admin.base.formComponent.richTextEditor.insertImage.noExistingLibrary,b=o.admin.base.formComponent.richTextEditor.insertImage.actionButtonLabel,C=o.admin.base.formComponent.richTextEditor.insertImage.headline;null==n||n.defineIcon(m,{SVG_KEY:"insertImage"}),null==n||n.registerCommand(g,{title:h,icon:m,undo:!1,focus:!0,showOnMobile:!0,refreshAfterCallback:!1,callback:function(){p(!0)}}),s?null==n||n.enableButton(g,h):null==n||n.disableButton(g,A);return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(ur,{visible:d,enabled:s,onSelectAssets:function(e){e.forEach((function(e){var n;e.isImage&&(null==t||null===(n=t.current)||void 0===n||n.insertImage(e.urlPath.path,{alt:e.description,title:e.title}))}))},onLibrariesLoad:c,disabledLabel:v,fieldInfo:i,allowedExtensions:l,actionButtonLabel:b,headline:C,onPanelClosed:function(){p(!1)}})})},vd=function(e){var t;return(0,y.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:dr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,placeholder:e.watermarkText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,dataTestId:e.name})},bd=s(4844),Cd={};Cd.styleTagTransform=xn(),Cd.setAttributes=An(),Cd.insert=gn().bind(null,"head"),Cd.domAPI=fn(),Cd.insertStyleElement=bn();dn()(bd.Z,Cd);const xd=bd.Z&&bd.Z.locals?bd.Z.locals:void 0;var yd=["name","label","invalid","validationMessage","disabled","required","explanationText","inactiveMessage","tooltip","value","valueAsHtml"],wd=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=m(e,yd),g=Qt()(xd.label);return(0,y.jsx)(i.FormItemWrapper,{label:u?n:void 0,markAsRequired:s,disabled:a,labelIcon:dr(u),labelIconTooltip:u,inactiveMessage:c,labelClassnames:g,invalid:r,validationMessage:o,explanationText:l,tooltipAsHtml:f.tooltipAsHtml,explanationTextAsHtml:f.explanationTextAsHtml,children:(0,y.jsx)(i.TextWithLabel,{label:u?void 0:n,dataTestId:t,value:d,valueAsHtml:p})})},_d=function(e){var t,n=!!e.copyButtonVisible;return(0,y.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:dr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,dataTestId:e.name,renderActions:n?function(){return(0,y.jsx)(Of,{textToCopy:e.value,disabled:e.disabled,dataTestId:e.name+"_copybutton"})}:void 0,placeholder:e.watermarkText,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml})},Od=s(5544),Sd={};Sd.styleTagTransform=xn(),Sd.setAttributes=An(),Sd.insert=gn().bind(null,"head"),Sd.domAPI=fn(),Sd.insertStyleElement=bn();dn()(Od.Z,Sd);const jd=Od.Z&&Od.Z.locals?Od.Z.locals:void 0;var Td=["onChange","ruleDefinitions"];function Dd(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 Bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dd(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kd=function(e,t,n){return{name:"",caption:"",visible:!0,minWidth:e,maxWidth:t,contentType:n,searchable:!1,sortable:!1}},Pd=kd(3,3,i.ColumnContentType.Action),Ed=kd(8,50,i.ColumnContentType.Text),Id="calc(".concat(i.Dimensions.GridUnit," * ",70,")"),Md="CreateValidationRule",Nd=function(e){var t=e.onChange,n=e.ruleDefinitions,o=m(e,Td),a=f((0,r.useState)(o.value),2),s=a[0],l=a[1],c=f((0,r.useState)(!1),2),d=c[0],p=c[1],g=f((0,r.useState)(),2),A=g[0],v=g[1],b=f((0,r.useState)(),2),C=b[0],w=b[1],_=f((0,r.useState)(o.rulesDescriptions),2),S=_[0],j=_[1],T=x().localization,D=R(),B=D.setRedirectToDialog,k=D.messages,P=D.removeDialogMessage;(0,r.useEffect)((function(){B(d)}),[B,d]);var E=O().executeCommand,M=(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:S[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=I(s);r.splice(n,1),l(r),null==t||t(r)}}))}}]}}))}),[s,n,S,t,T]),N=(0,r.useRef)(null),L=function(){var e=u(h().mark((function e(t){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==A){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,E(Md,{identifier:A.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 v((function(e){return e&&Bd(Bd({},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)}}(),z=function(){v(void 0),w(void 0),p(!1)},F=function(){var e=u(h().mark((function e(n){var r,o,i,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L(n.values);case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:o=I(s),i=Bd({},S),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),j(i),v(void 0),w(void 0),p(!1);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.Box,{children:M.length>0?(0,y.jsx)(i.Table,{isHeaderVisible:!1,columns:[Ed,Pd],rows:M,onRowClick:function(e){return function(e){var t=s.find((function(t){return t.identifier===M[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 Bd(Bd({},e),{},{value:null==t?void 0:t.ruleValues[n]})})),i=Bd(Bd({},r),{},{componentsProperties:o});v(i),w(t),p(!0)}}(e)}}):(0,y.jsx)("div",{className:jd.noRowsText,children:T.admin.base.formComponent.validationRules.noRules})}),(0,y.jsx)(i.Box,{spacingTop:i.Spacing.L,children:(0,y.jsx)(i.Button,{disabled:0===n.length,color:i.ButtonColor.Secondary,onClick:function(){return p(!0)},label:T.admin.base.formComponent.validationRules.addRule})}),(0,y.jsx)(i.Dialog,{isOpen:d,onClose:z,width:Id,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=N.current)||void 0===e||e.submit()},disabled:void 0===A},cancelAction:{label:T.admin.base.dialog.cancel,onClick:z},notificationBar:k.map((function(e){return(0,y.jsx)(i.NotificationBarAlert,{onDismiss:function(){return e.id&&P(e.id)},children:e.message},e.id)})),children:void 0===A?(0,y.jsx)(i.Row,{wrap:i.RowWrap.Wrap,spacing:i.Spacing.L,children:n.map((function(e,t){return(0,y.jsx)(i.Column,{className:jd.ruleColumn,children:(0,y.jsx)(i.OptionTile,{label:e.name,onClick:function(){return function(e){v(e)}(e)}})},t)}))}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:A.name}),(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:A.description}),(0,y.jsx)(Kd,{ref:N,onSubmit:F,items:A.componentsProperties})]})})]})},Ld=function(e){var t;return(0,y.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:dr(e.tooltip),labelIconTooltip:e.tooltip,explanationText:e.explanationText,dataTestId:e.name,tooltipAsHtml:e.tooltipAsHtml,explanationTextAsHtml:e.explanationTextAsHtml,language:e.language})},Rd=r.default.createContext({dataChanged:!1,getDataChanged:function(){return!1},setDataChanged:function(){},resetAllDataChanged:function(){},setResetAllDataChangedCallback:function(){},getNewId:function(){return""}});Rd.displayName="EditableObjectStatusContext";var zd=function(){return r.default.useContext(Rd)},Fd=function(){return r.default.useContext(Rd)},Wd=r.default.forwardRef((function(e,t){var n=e.children,o=f((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)}),[]),m=(0,r.useCallback)(Rn,[]),g=Fd(),h=g.setDataChanged,A=g.getNewId,v=g.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:m}}),[i,l,c,u,p,m]);return(0,r.useImperativeHandle)(t,(function(){return C}),[C]),(0,y.jsx)(Rd.Provider,{value:C,children:n})}));Wd.displayName="EditableObjectStatusProvider";var Hd=function(e){return void 0!==e.title},Vd=function(e){for(var t=null,n=[],r=[],o=0;o<e.length;o++){var i=e[o];Hd(i)?(0!==o&&r.push({category:t,components:n}),t=i,n=[]):n.push(i)}return r.push({category:t,components:n}),r},Yd=s(43),Zd={};Zd.styleTagTransform=xn(),Zd.setAttributes=An(),Zd.insert=gn().bind(null,"head"),Zd.domAPI=fn(),Zd.insertStyleElement=bn();dn()(Yd.Z,Zd);const Ud=Yd.Z&&Yd.Z.locals?Yd.Z.locals:void 0;var Gd=function(e){var t=e.category,n=e.children,o=f((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,y.jsxs)("div",{children:[(0,y.jsxs)("div",{className:Ud.formCategory,children:[(0,y.jsx)("div",{className:Ud.title,children:t.title}),t.tooltip&&(0,y.jsx)(i.Tooltip,{tooltipText:t.tooltip,children:(0,y.jsx)("div",{className:Ud.infoIcon,children:(0,y.jsx)(i.Icon,{name:"xp-i-circle"})})}),t.collapsible&&(0,y.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,y.jsx)("div",{className:Ud.formComponents,children:n})]}):(0,y.jsx)("div",{children:n})};function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xd=function(e){return!Object.values(e).filter((function(e){return e.length})).length},Kd=r.default.forwardRef((function(e,t){var n=e.items,o=e.children,s=e.name,l=void 0===s?"DefaultForm":s,c=e.onChange,u=e.onSubmit,d=e.onValidChange,p=e.disabled,m=void 0!==p&&p,g=e.dataTestId,h=e.fieldCssClass,A=e.timeStamp,v=f((0,r.useState)(Vd(n)),2),b=v[0],C=v[1],x=Fd(),w=x.getDataChanged,_=x.setDataChanged,O=x.getNewId,S=(0,r.useRef)(O()),j=W().clearMessages;(0,r.useEffect)((function(){var e=Vd(n);C(e)}),[n]),(0,r.useEffect)((function(){_(S.current,!1)}),[_,A]),(0,r.useEffect)((function(){var e=S.current;return function(){_(e,!1)}}),[_]);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=f(T,2),B=D[0],k=D[1],P=r.default.useRef({}),E=function(e){k(e),P.current=e};(0,r.useEffect)((function(){var e={};b.forEach((function(t){return t.components.forEach((function(t){return e[t.name]=t.value}))})),E(e)}),[b]);var I=f((0,r.useState)({}),2),M=I[0],N=I[1],L=G((function(e){null==d||d(e)}),q),R=function(e,t,n){var r=Qd(Qd({},M),{},a({},e,[]));if(Xd(r)){var o={values:P.current,changedField:{name:e,hasDependencies:t}};t&&n?L(o):null==d||d(o)}},z=G((function(e){null==c||c(e)}),q);(0,r.useImperativeHandle)(t,(function(){return{dataChanged:w(S.current),submit:function(e){Xd(M)&&(j(),z.cancel(),null==u||u({values:B},e))},resetDataChanged:function(){_(S.current,!1)}}}),[j,B,w,M,u,_,z]);var F=(0,r.useCallback)((function(e){e.preventDefault(),Xd(M)&&(j(),null==u||u({values:B}))}),[B,u,M,j]),H=function(e,t,n,r){var o=Qd(Qd({},P.current),{},a({},t,e));E(o),_(S.current,!0);var i={values:o,changedField:{name:t,hasDependencies:n}};n&&r?z(i):null==c||c(i)};return(0,y.jsxs)("form",{onSubmit:F,"data-testid":g,children:[(0,y.jsx)(lo.Provider,{value:{name:l,dataChanged:w(S.current),preventNesting:!1},children:(0,y.jsx)(i.Stack,{spacing:i.Spacing.XXL,children:b.map((function(e,t){return(0,y.jsx)(Gd,{category:e.category,children:(0,y.jsx)(i.Stack,{spacing:i.Spacing.XL,children:e.components.map((function(e){return(0,y.jsx)(Eo,Qd(Qd({},e),{},{disabled:m||e.disabled,value:B[e.name],fieldValues:B,onChange:function(t){return H(t,e.name,e.hasDependencies,e.debounceValueChange)},onValidated:function(t){return function(e,t){N(Qd(Qd({},M),{},a({},e,t)))}(e.name,t)},onValidChange:function(){return R(e.name,e.hasDependencies,e.debounceValueChange)},fieldCssClass:h}),"".concat(l,"_").concat(e.name))}))})},t)}))})}),o]})}));Kd.displayName="Form";var Jd=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}},$d=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}},ep=function(e,t){return{isValid:!(null==t||("string"==typeof t||t instanceof String)&&""===t.trim()||tp(t)),errorMessage:e.errorMessage}},tp=function(e){var t=e[Symbol.iterator],n="function"==typeof t&&t.call(e).next();return n&&void 0===n.value&&n.done};function np(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 rp(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 rp(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 rp(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 op=function(e,t){if(!e.invalidAssets||0===e.invalidAssets.length)return{isValid:!0,errorMessage:e.errorMessage};var n,r=!0,o=np(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}},ip=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=I(new Set(n));return{isValid:!1,errorMessage:e.errorMessage.replace("{0}",o.join(", "))}}return{isValid:!0,errorMessage:null}},ap=function(e,t){var n=e.invalidItems,r=e.errorMessage;return{isValid:!sp(t,n),errorMessage:r}},sp=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)}))}))},lp=function(e,t){return e.maxItems>0&&(null==t?void 0:t.length)>e.maxItems?{isValid:!1,errorMessage:ho(e.errorMessage,t.length,e.maxItems)}:{isValid:!0,errorMessage:e.errorMessage}},cp=function(){return{isValid:!0,errorMessage:null}},up=function(e,t){return{isValid:null==t||0===t.length||e.useCustomEmailRegExpString||(e.allowMultipleAddresses?fp(t):pp(t)),errorMessage:e.errorMessage}},dp=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 pp(e){return dp.test(e)}function fp(e){return e.split(";").every((function(e){return pp(e)}))}var mp=function(e,t){return{isValid:hp(t),errorMessage:e.errorMessage}},gp=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function hp(e){return gp.test(e)}var Ap=function(e,t){return{isValid:t<=e.maxValue,errorMessage:e.errorMessage}},vp=function(e,t){return{isValid:t>=e.minValue,errorMessage:e.errorMessage}},bp=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}},Cp=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}},xp=function(e,t){var n=O().executeCommand,r=fo().executeCommand,o=function(){var o=u(h().mark((function o(i,a){var s;return h().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}},yp=r.default.createContext({refetchDataInTemplates:function(){},refetchAll:!1});yp.displayName="RefetchAllContext";var wp=function(){return r.default.useContext(yp)},_p=function(e){var t=e.children,n=f((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,y.jsx)(yp.Provider,{value:{refetchAll:o,refetchDataInTemplates:function(){i(!0)}},children:t})},Op="/logon",Sp="returnUrl",jp=function(e){var t=Y();return t.pathname=t.pathname.replace(/\/$/,"")+Op,e&&t.searchParams.append(Sp,e),t.href},Tp=function(e){return new URL(e).searchParams.get(Sp)},Dp={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."},Bp=function(e,t){t?t(e):console.error(e.message)},kp=function(e,t){Bp({statusCode:0,message:"".concat(b.admin.base.fetch.networkError," '").concat(e,"'")},t)},Pp=function(e,t){var n=Dp[e],r=n?"".concat(e," - ").concat(n):"".concat(e,".");Bp({statusCode:e,message:"".concat(b.admin.base.fetch.unexpectedError," ").concat(r)},t)};function Ep(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?Ep(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mp=function(){var e=u(h().mark((function e(t,n,r,o,i){var a,s,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Y().pathname,u=t,c=(c=a).replace(/\/$/,""),u=u.replace(/^\//,""),s="".concat(c,"/").concat(u),e.next=4,fetch(s,{method:"post",cache:"no-cache",referrerPolicy:"same-origin",credentials:"same-origin",mode:"same-origin",headers:Ip({Accept:"application/json"},r),body:n}).catch((function(e){kp(null==e?void 0:e.message,o)}));case 4:if(l=e.sent,e.t0=l,!e.t0){e.next=10;break}return e.next=9,Np(l.status,o,i);case 9:e.t0=e.sent;case 10:if(!e.t0){e.next=12;break}return e.abrupt("return",l.json().catch((function(){return l})));case 12:return e.abrupt("return",void 0);case 14:case"end":return e.stop()}var c,u}),e)})));return function(t,n,r,o,i){return e.apply(this,arguments)}}(),Np=function(){var e=u(h().mark((function e(t,n,r){return h().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=jp(window.location.pathname),window.location.replace(o),r&&r(),e.abrupt("break",9);case 7:return Pp(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 Lp(e,t){for(var n=e.length;n--;)if(t(e[n],n,e))return n;return-1}var Rp,zp={refreshToken:(Rp=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return Rp.apply(this,arguments)}),getXsrfHeader:function(){return{}}},Fp=r.default.createContext(zp);Fp.displayName="AntiForgeryContext";var Wp=function(){var e=r.default.useContext(Fp);if(void 0===e)throw new Error("useAntiForgery must be used within a AntiForgeryProvider");return e},Hp=function(e){var t=e.children,n=f((0,r.useState)(Vp("xsrf-header")),1)[0],o=f((0,r.useState)(Vp("xsrf-token")),2),i=o[0],s=o[1],l=(0,r.useCallback)((function(){return a({},n,i)}),[n,i]),c=(0,r.useCallback)(u(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Mp("/api/getxsrftoken",new FormData,l());case 2:if(!(t=e.sent)){e.next=7;break}s(t),e.next=8;break;case 7:throw new Error("Failed to refresh XSRF token.");case 8:case"end":return e.stop()}}),e)}))),[s,l]);return(0,y.jsx)(Fp.Provider,{value:{refreshToken:c,getXsrfHeader:l},children:t})},Vp=function(e){var t=Yp(e),n="";return t&&(n=t.content,t.content=""),n},Yp=function(e){return document.head.querySelector("meta[name='".concat(e,"']"))},Zp=r.default.createContext({isCustomRightSidebarDisplayed:!1,setIsCustomRightSidebarDisplayed:function(){}});Zp.displayName="CustomRightSidebarContext";var Up=function(){return r.default.useContext(Zp)},Gp=function(e){var t=e.children,n=f((0,r.useState)(!1),2),o=n[0],i=n[1];return(0,y.jsx)(Zp.Provider,{value:{isCustomRightSidebarDisplayed:o,setIsCustomRightSidebarDisplayed:i},children:t})},qp={isNested:!1,setActions:function(){throw new Error("setActions must be defined in provider")}},Qp=r.default.createContext(qp);Qp.displayName="NestedPageProviderContext";var Xp=function(){var e=r.default.useContext(Qp);if(void 0===e)throw new Error("useNestedPage must be used within a NestedPageProvider");return e},Kp=function(e){var t=e.children,n=f((0,r.useState)(!0),1)[0],o=f((0,r.useState)(),2),i=o[0],a=o[1];return(0,y.jsx)(Qp.Provider,{value:{isNested:n,actions:i,setActions:a},children:t})};function Jp(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 $p(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 $p(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 $p(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 ef(){var e=x().localization,t=(0,o.useNavigate)(),r=wp().refetchDataInTemplates,i=U(),a=W().addNotificationMessage,s=Wp().getXsrfHeader,l=function(){var o=u(h().mark((function o(l,c,u){var d,p,f,m,g;return h().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if((d=new FormData).append("path",i),d.append("command",l),d.append("data",JSON.stringify(c)),u){p=Jp(u);try{for(p.s();!(f=p.n()).done;)m=f.value,d.append("files",m)}catch(e){p.e(e)}finally{p.f()}}return o.next=7,Mp("api/cmd",d,s(),(function(t){return a(403===t.statusCode?{message:e.admin.base.command.forbiddenAccess,type:n.Warning,messageAsHtml:!0}:{message:t.message,type:n.Error})}));case 7:if(g=o.sent){o.next=10;break}return o.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){o.next=15;break}return t(g.navigationUrl),o.abrupt("return",{result:g.result,command:g.commandName});case 15:return o.abrupt("return",{result:g.result,command:g.commandName});case 16:case"end":return o.stop()}}),o)})));return function(e,t,n){return o.apply(this,arguments)}}();return l}function tf(e,t,n){var o=O(),i=o.registerCommand,a=o.executeCommand,s=ef(),l=f((0,r.useState)(!1),2),c=l[0],d=l[1],p=(0,r.useRef)(t),m=function(){var t=u(h().mark((function t(n,r,o){var i,l,c,u,d;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==(null===(i=p.current)||void 0===i||null===(l=i.before)||void 0===l?void 0:l.call(i))){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,s(e,r,o);case 4:if(c=t.sent,n.cancelled){t.next=9;break}if(null===(u=p.current)||void 0===u||null===(d=u.after)||void 0===d||d.call(u,null==c?void 0:c.result),null==c||!c.command){t.next=9;break}return t.abrupt("return",a(c.command,c.result));case 9:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),g=function(){var e=u(h().mark((function e(t,n){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",m({cancelled:!1},t||(null===(r=p.current)||void 0===r?void 0:r.data),n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){p.current=t})),(0,r.useEffect)((function(){var e,t,r={cancelled:!1};(c&&n||null!==(e=p.current)&&void 0!==e&&e.executeOnMount)&&m(r,null===(t=p.current)||void 0===t?void 0:t.data);return d(!0),function(){r.cancelled=!0}}),null!=n?n:[]),i(e,g),{execute:(0,r.useRef)(g).current}}var nf=["calloutConfiguration","onActionButtonStatusChanged"];function rf(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 of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var af=function(e){var t,n,a,s,l=e.calloutConfiguration,c=e.onActionButtonStatusChanged,d=m(e,nf),p=f((0,r.useState)(null!==(t=null===(n=l.actionButton)||void 0===n?void 0:n.inProgress)&&void 0!==t&&t),2),g=p[0],A=p[1],b=f((0,r.useState)(null!==(a=null===(s=l.actionButton)||void 0===s?void 0:s.inProgress)&&void 0!==a&&a),2),C=b[0],w=b[1],_=O().executeCommand,S=x().localization,j=(0,o.useNavigate)(),T=v().sanitize,D=function(){var e=u(h().mark((function e(){var t,n,r;return h().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}j(n),e.next=10;break;case 5:return A(!0),e.next=8,I();case 8:null!=(r=e.sent)&&r.inProgress&&w(!0);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=(0,r.useCallback)(function(){var e=u(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(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)}}(),[_]),k=(0,r.useCallback)(u(h().mark((function e(){var t,n,r;return h().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(),A(!1),w(!1));case 10:case"end":return e.stop()}}),e)}))),[B,c,l]),P=function(e){return e&&e.inProgress},I=(0,r.useCallback)(u(h().mark((function e(){var t,n;return h().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,_(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),[_,l]),M=l.actionButton&&l.actionButton.statusCommandName&&g?3e3:null;E(u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!C){e.next=3;break}return e.next=3,k();case 3:case"end":return e.stop()}}),e)}))),M);var N;return(0,y.jsx)(i.Callout,of(of({type:l.type,headline:l.headline,placement:l.placement,actionButton:l.actionButton&&(0,y.jsx)(i.Button,{type:i.ButtonType.Button,label:l.actionButton.text,onClick:D,inProgress:g,disabled:l.actionButton.disabled,dataTestId:"callout-button-".concat(null===(N=l.actionButton.clickCommandName)||void 0===N?void 0:N.toLowerCase())}),subheadline:function(e){switch(e){case i.CalloutType.QuickTip:return S.admin.base.callout.quickTip;case i.CalloutType.FriendlyWarning:return S.admin.base.callout.friendlyWarning;default:return S.admin.base.callout.quickTip}}(l.type)},d),{},{children:l.contentAsHtml?(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:T(l.content)}}):(0,y.jsx)("div",{children:l.content})}))};af.displayName="Callout";var sf=["action"];function lf(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 cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uf=function(e){var t=e.action,n=m(e,sf),o=O().executeCommand,a=f((0,r.useState)(!1),2),s=a[0],l=a[1],c=(0,r.useRef)(!1);(0,r.useEffect)((function(){return c.current=!0,function(){c.current=!1}}),[]);var d=function(){var e=u(h().mark((function e(n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),!(!t.confirmation||t.confirmation&&confirm(t.confirmation))){e.next=6;break}return l(!0),e.next=5,o(t.parameter);case 5:c.current&&l(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,y.jsx)(i.Button,cf(cf({},n),{},{onClick:d,inProgress:s,label:t.label,disabled:t.disabled,icon:t.icon}))};uf.displayName="ActionButton";var df=["href"];function pf(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 ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pf(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mf=r.default.forwardRef((function(e,t){var n=e.href,r=m(e,df),a=(0,o.useNavigate)(),s=(0,o.useHref)(n);return(0,y.jsx)(i.LinkButton,ff(ff({anchorRef:t},r),{},{href:s,onClick:function(e){r.target||(e.preventDefault(),a(n))}}))}));mf.displayName="AppLinkButton";var gf=["action"];function hf(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 Af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hf(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vf=function(e){var t=e.action,n=m(e,gf);return(0,y.jsx)(mf,Af(Af({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 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 Cf(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){a(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}vf.displayName="ActionLinkButton";var xf=function(e){var t=_o({},(wo(e),e));return(0,y.jsx)(i.Button,Cf(Cf({},t),{},{size:i.ButtonSize.S,color:i.ButtonColor.Secondary}))};xf.displayName="TextAreaActionButton";var yf=s(1455),wf={};wf.styleTagTransform=xn(),wf.setAttributes=An(),wf.insert=gn().bind(null,"head"),wf.domAPI=fn(),wf.insertStyleElement=bn();dn()(yf.Z,wf);const _f=yf.Z&&yf.Z.locals?yf.Z.locals:void 0;var Of=function(e){var t=e.textToCopy,n=e.disabled,o=e.dataTestId,a=x().localization,s=f((0,r.useState)(!1),2),l=s[0],c=s[1],d=f((0,r.useState)(!1),2),p=d[0],m=d[1],g=function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!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),m(!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)}}(),A=Qt()(_f.statusWrapper,l&&_f.isVisible),v=Qt()(_f.buttonWrapper,!l&&_f.isVisible);return(0,y.jsxs)("div",{className:_f.wrapper,children:[(0,y.jsx)("div",{className:A,children:(0,y.jsx)(i.SimpleStatusDefault,{content:{label:p?a.admin.base.textArea.copyError:a.admin.base.textArea.copySuccess,iconName:"xp-check",iconAlign:i.SimpleStatusAlign.Left}})}),(0,y.jsx)("div",{className:v,children:(0,y.jsx)(xf,{label:a.admin.base.textArea.copyButtonLabel,icon:"xp-doc-copy",onClick:g,disabled:n||l,dataTestId:o})})]})};Of.displayName="TextAreaCopyButton";var Sf=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=x().localization;return(0,y.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})};function jf(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 Tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Df=function(e){var t=k("".concat(e.componentName,"CardComponent"));return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(r.Suspense,{fallback:(0,y.jsx)(bg,{}),children:t&&(0,y.jsx)(t,Tf({},e))})})},Bf=s(3935),kf={};kf.styleTagTransform=xn(),kf.setAttributes=An(),kf.insert=gn().bind(null,"head"),kf.domAPI=fn(),kf.insertStyleElement=bn();dn()(Bf.Z,kf);const Pf=Bf.Z&&Bf.Z.locals?Bf.Z.locals:void 0;function Ef(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 If(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mf=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,y.jsx)(vf,{action:e,color:i.ButtonColor.Secondary}):(0,y.jsx)(uf,{action:e,color:i.ButtonColor.Secondary,dataTestId:e.label.toLocaleLowerCase().replace(/\s/g,"-")})};return(0,y.jsx)(i.Card,{ref:n,headline:o,footer:r&&r.map((function(e,t){return(0,y.jsx)(i.Box,{spacingRight:i.Spacing.L,children:s(e)},t)})),dataTestId:null==o?void 0:o.toLowerCase().replace(/\s/g,"-"),children:a&&a.length>0&&a.map((function(e,t){return(0,y.jsx)("div",{className:Pf.overviewCardSection,children:(0,y.jsx)(Df,If({},e),t)},t)}))})}));Mf.displayName="OverviewCard";var Nf=s(4353),Lf={};Lf.styleTagTransform=xn(),Lf.setAttributes=An(),Lf.insert=gn().bind(null,"head"),Lf.domAPI=fn(),Lf.insertStyleElement=bn();dn()(Nf.Z,Lf);const Rf=Nf.Z&&Nf.Z.locals?Nf.Z.locals:void 0;function zf(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 Ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zf(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wf=r.default.forwardRef((function(e,t){var n=e.cards;return(0,y.jsx)(i.Row,{ref:t,spacing:i.Spacing.XL,className:Rf.overviewCardGroup,wrap:i.RowWrap.NoWrap,children:n.map((function(e,t){return(0,y.jsx)(i.Column,{children:(0,y.jsx)(Mf,Ff({},e))},t)}))})}));Wf.displayName="OverviewCardGroup";var Hf=r.default.createContext({routes:[],visibleRoutes:[],navigation:{headline:"",items:[],isTemporary:!1,isSignificant:!1},breadcrumbs:{show:!0,isSignificant:!1},preventRefetch:!1,refetchAll:!1});Hf.displayName="TemplatePropertiesContext";var Vf,Yf=function(e){var t=e.properties,n=e.children;return(0,y.jsx)(Hf.Provider,{value:t,children:n})};!function(e){e.MainContent="mainContent",e.Dialog="dialog",e.SidePanel="sidePanel"}(Vf||(Vf={}));var Zf=r.default.createContext({breadcrumbs:[],pop:function(){},push:function(){},refreshItem:function(){},setStatusNode:function(){},statusNode:null});Zf.displayName="BreadcrumbsContext";var Uf,Gf=function(){return r.default.useContext(Zf)},qf=function(e){var t,n=e.children,o=ef(),i={},a={executeCommand:(t=u(h().mark((function e(t,n,r){var s,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(s=i[t])){e.next=3;break}return e.abrupt("return",s(n,r));case 3:return e.next=5,o(t,n,r);case 5:if(null==(l=e.sent)||!l.command){e.next=8;break}return e.abrupt("return",a.executeCommand(l.command,l.result));case 8:return e.abrupt("return",null==l?void 0:l.result);case 9:case"end":return e.stop()}}),e)}))),function(e,n,r){return t.apply(this,arguments)}),registerCommand:function(e,t){i[e]=t}},s=(0,r.useRef)(a);return(0,y.jsx)(_.Provider,{value:s.current,children:n})};qf.displayName="CommandProvider",function(e){e.NoPreference="noPreference",e.Prevent="prevent",e.Force="force"}(Uf||(Uf={}));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 Xf(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){a(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 Kf=function(e){var t=e.error,n=x().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,y.jsx)(jg,{title:s,text:l,dataTestId:"templateLoaderErrorPane",children:c&&(0,y.jsx)(i.Button,{label:u,color:i.ButtonColor.Primary,size:i.ButtonSize.L,onClick:d})})},Jf=function(e){var t=e.templateName,n=e.refetchAll,i=k("".concat(t,"Template")),a=U(),s=f((0,r.useState)(a),2),l=s[0],c=s[1],d=f((0,r.useState)(Uf.NoPreference),2),p=d[0],m=d[1],g=function(e,t){var n=f((0,r.useState)(),2),i=n[0],a=n[1],s=f((0,r.useState)(!1),2),l=s[0],c=s[1],d=f((0,r.useState)(),2),p=d[0],m=d[1],g=f((0,r.useState)(""),2),A=g[0],v=g[1],b=(0,o.useLocation)().pathname,C=f((0,r.useState)(b),2),x=C[0],y=C[1],w=Wp().getXsrfHeader,_=b!==x&&x.includes(b)&&V(e)===Z(b),O=t===Uf.Force||_&&t!==Uf.Prevent,S=(0,r.useCallback)((function(){var t=!1,n=!1;a(void 0),c(!1);var r=function(){var r=u(h().mark((function r(){var o,i,s;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,(o=new FormData).append("path",e),r.next=5,Mp("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}),v(null==i?void 0:i.redirectUrl),m(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:p,templateError:i,redirectUrl:A}}(a,n?Uf.Force:p),A=g.isComplete,v=g.data,b=g.templateError,C=g.redirectUrl,w=(0,o.useNavigate)(),_=x().localization,O=a?_.admin.base.pageLoader.loading:_.admin.base.pageLoader.preparingYourExperience;(0,r.useEffect)((function(){A&&c(a)}),[A,a]),(0,r.useEffect)((function(){C&&w(C)}),[C,w]);var S=Gf(),j=S.push,T=S.pop;return(0,r.useEffect)((function(){return m(null!=v&&v.preventRefetch?Uf.Prevent:Uf.NoPreference),null!=v&&v.breadcrumbs.show&&null!=v&&v.breadcrumbs.label?(j(a,v.breadcrumbs.isSignificant,null==v?void 0:v.breadcrumbs.label),T):function(){}}),[v,a,j,T]),(0,y.jsxs)(Yr,{fallback:function(){return(0,y.jsx)(Kf,{})},dependencies:[a],children:[(0,y.jsx)(r.Suspense,{fallback:(0,y.jsx)(wg,{title:O}),children:!b&&l===a&&(i&&v&&A&&(0,y.jsx)(Yf,{properties:v,children:(0,y.jsx)(qf,{children:(0,y.jsx)(i,Xf({},v))})})||(0,y.jsx)(wg,{title:O}))}),b&&(0,y.jsx)(Kf,{error:b})]})},$f=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)}},em=["label","iconName","onClick","dataTestId","path"];function tm(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 nm=function(e){var t=e.label,n=e.iconName,r=e.onClick,o=e.dataTestId,s=e.path,l=m(e,em),c=$f(s,!1).isActive;return(0,y.jsx)(i.SideMenuItemTile,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({label:t,state:c?i.SideMenuItemState.Selected:i.SideMenuItemState.Default,iconName:n,onClick:r,dataTestId:o},l))},rm=s(353),om={};om.styleTagTransform=xn(),om.setAttributes=An(),om.insert=gn().bind(null,"head"),om.domAPI=fn(),om.insertStyleElement=bn();dn()(rm.Z,om);const im=rm.Z&&rm.Z.locals?rm.Z.locals:void 0;var am=function(){var e=(0,o.useNavigate)(),t=(0,r.useContext)(Hf);return(0,y.jsx)("div",{"data-testid":"navigation-side-menu",className:im.sideMenuWrapper,children:(0,y.jsx)(i.SideMenu,{children:t.navigation.items.map((function(t,n){var r;return(0,y.jsx)(nm,{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)}))})})},sm={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")}},lm=r.default.createContext(sm);lm.displayName="TemplateSidePanelContext";var cm=function(){var e=r.default.useContext(lm);if(void 0===e)throw new Error("useTemplateSidePanel must be used within a TemplateSidePanelProvider");return e},um=function(e){var t=e.children,n=f((0,r.useState)(!0),2),o=n[0],i=n[1],a=f((0,r.useState)(!1),2),s=a[0],l=a[1],c=f((0,r.useState)(void 0),2),u=c[0],d=c[1],p=f((0,r.useState)(void 0),2),m=p[0],g=p[1],h=f((0,r.useState)(void 0),2),A=h[0],v=h[1],b=f((0,r.useState)(""),2),C=b[0],x=b[1],w=f((0,r.useState)({submitAction:{label:""}}),2),_=w[0],O=w[1],S=Xp(),j=S.isNested,T=S.actions;(0,r.useEffect)((function(){j&&T&&O(T)}),[j,T]);var D=R(),B=D.setRedirectToDialog,k=D.addDialogMessage,P=D.canProcessMessageType,E=D.messages,I=D.removeDialogMessage;(0,r.useEffect)((function(){return B(!0),function(){return B(!1)}}),[B]);var M=(0,r.useCallback)((function(){i(!1),B(!1)}),[i,B]);return(0,y.jsx)(lm.Provider,{value:{isInSidePanel:o,closeSidePanel:M,title:C,setTitle:x,sidePanelHandlers:_,minWidth:u,setMinWidth:d,maxWidth:m,setMaxWidth:g,width:A,setWidth:v,messages:E,addDialogMessage:k,removeDialogMessage:I,canProcessMessageType:P,actionInProgress:s,setActionInProgress:l},children:t})},dm={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")}},pm=r.default.createContext(dm);pm.displayName="TemplateDialogContext";var fm=function(){var e=r.default.useContext(pm);if(void 0===e)throw new Error("useTemplateDialog must be used within a TemplateDialogProvider");return e},mm=function(e){var t=e.children,n=f((0,r.useState)(!0),2),o=n[0],i=n[1],a=f((0,r.useState)(!1),2),s=a[0],l=a[1],c=f((0,r.useState)(!1),2),u=c[0],d=c[1],p=f((0,r.useState)(""),2),m=p[0],g=p[1],h=f((0,r.useState)(void 0),2),A=h[0],v=h[1],b=f((0,r.useState)(void 0),2),C=b[0],x=b[1],w=f((0,r.useState)(void 0),2),_=w[0],O=w[1],S=f((0,r.useState)(void 0),2),j=S[0],T=S[1],D=f((0,r.useState)(void 0),2),B=D[0],k=D[1],P=f((0,r.useState)(void 0),2),E=P[0],I=P[1],M=f((0,r.useState)({submitAction:{label:""}}),2),N=M[0],L=M[1],z=Xp(),F=z.isNested,W=z.actions;(0,r.useEffect)((function(){F&&W&&L(W)}),[F,W]);var H=R(),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,y.jsx)(pm.Provider,{value:{isInDialog:o,closeDialog:q,title:m,setTitle:g,minWidth:A,setMinWidth:v,width:C,setWidth:x,maxWidth:_,setMaxWidth:O,minHeight:j,setMinHeight:T,height:B,setHeight:k,maxHeight:E,setMaxHeight:I,dialogHandlers:N,messages:U,addDialogMessage:Y,removeDialogMessage:G,canProcessMessageType:Z,isFullscreen:s,setIsFullscreen:l,actionInProgress:u,setActionInProgress:d},children:t})};function gm(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 hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gm(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Am=function(e){var t=e.children,n=e.parentPageUrl,a=fm(),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=x().localization,w=(0,o.useNavigate)(),_=(0,r.useCallback)((function(){w(n)}),[n,w]);return(0,r.useEffect)((function(){s||_()}),[s,_]),(0,y.jsx)(i.Dialog,{isOpen:!0,headline:l,onClose:_,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:_},notificationBar:u.length>0&&u.map((function(e){return(0,y.jsx)(i.NotificationBarAlert,{onDismiss:function(){return e.id&&d(e.id)},children:e.message},e.id)})),children:t})},vm=function(e){return(0,y.jsx)(Kp,{children:(0,y.jsx)(mm,{children:(0,y.jsx)(Am,hm({},e))})})},bm=s(265),Cm={};Cm.styleTagTransform=xn(),Cm.setAttributes=An(),Cm.insert=gn().bind(null,"head"),Cm.domAPI=fn(),Cm.insertStyleElement=bn();dn()(bm.Z,Cm);const xm=bm.Z&&bm.Z.locals?bm.Z.locals:void 0;var ym=function(e){var t=Up().isCustomRightSidebarDisplayed;return(0,y.jsxs)(i.Row,{wrap:i.RowWrap.NoWrap,className:xm.row,children:[(0,y.jsx)(i.Column,{children:(0,y.jsx)("div",{className:e.sidebarContent?xm.scrollable:void 0,children:e.children})}),(e.sidebarContent||!e.sidebarContent&&!t)&&(0,y.jsx)(i.Column,{width:13,children:e.sidebarContent||(0,y.jsx)(y.Fragment,{})})]})},wm=s(3796),_m={};_m.styleTagTransform=xn(),_m.setAttributes=An(),_m.insert=gn().bind(null,"head"),_m.domAPI=fn(),_m.insertStyleElement=bn();dn()(wm.Z,_m);const Om=wm.Z&&wm.Z.locals?wm.Z.locals:void 0;var Sm="GetFormItems",jm="ValidateComponents",Tm="calc(".concat(i.Dimensions.GridUnit," * ",70,")"),Dm="calc(".concat(i.Dimensions.GridUnit," * ",70,")"),Bm=function(e){var t=e.onAfterPropertiesSubmission,n=x().localization,o=(0,r.useRef)(null),a=f((0,r.useState)([]),2),s=a[0],l=a[1],c=f((0,r.useState)(),2),d=c[0],p=c[1],m=O().executeCommand,g=Im(),A=g.propertiesDialogData,v=g.setPropertiesDialogData,b=(0,r.useCallback)(function(){var e=u(h().mark((function e(t){var n;return h().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(Sm,{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]),C=(0,r.useCallback)(u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==A||!A.typeIdentifier){e.next=6;break}return e.next=3,b(A.properties);case 3:p("".concat(A.componentType,":").concat(A.typeIdentifier)),e.next=8;break;case 6:l([]),p(void 0);case 8:case"end":return e.stop()}}),e)}))),[A,b]);(0,r.useEffect)((function(){C()}),[C]);var w=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)||(v(null),null===(r=o.current)||void 0===r||r.resetDataChanged())},_=function(){var e=u(h().mark((function e(n){var r,i,a,s;return h().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(jm,{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:v(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,y.jsxs)(i.Dialog,{width:Tm,height:Dm,isOpen:!(null==A||!A.typeIdentifier),headline:"".concat(null==A?void 0:A.title," ").concat(n.admin.content.pageBuilder.propertiesDialog.headline),onClose:w,isDismissable:!0,headerCloseButton:{tooltipText:n.admin.base.dialog.cancel,shortcuts:"Esc"},confirmAction:{label:n.admin.content.pageBuilder.propertiesDialog.confirmActionLabel,onClick:function(){var e;null==o||null===(e=o.current)||void 0===e||e.submit()}},cancelAction:{label:n.admin.base.dialog.cancel,onClick:w},children:[(null==A?void 0:A.headerText)&&(0,y.jsx)("div",{className:Om.headerText,children:null==A?void 0:A.headerText}),(0,y.jsx)(Kd,{ref:o,name:d,items:s,onSubmit:_,onValidChange:function(e){if(e.changedField.hasDependencies){var t=Nm(e.values);b(t)}},dataTestId:"properties-form"})]})},km={propertiesDialogData:null,setPropertiesDialogData:function(){throw new Error("setPropertiesDialogData must be defined in provider")}},Pm=r.default.createContext(km);Pm.displayName="PropertiesDialogContext";var Em,Im=function(){var e=r.default.useContext(Pm);if(void 0===e)throw new Error("usePropertiesDialog must be used within a PropertiesDialogProvider");return e},Mm=function(e){var t=e.children,n=f((0,r.useState)(null),2),o=n[0],i=n[1];return(0,y.jsx)(Pm.Provider,{value:{propertiesDialogData:o,setPropertiesDialogData:i},children:t})};!function(e){e.Widget="widget",e.Section="section",e.PageTemplate="pageTemplate",e.ConditionType="conditionType"}(Em||(Em={}));var Nm=function(e){return Object.entries(e).reduce((function(e,t){var n=f(t,2),r=n[0],o=n[1];return e[Lm(r)]=o,e}),{})},Lm=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("")},Rm={LoadData:"LoadData"},zm=function(e){var t=e.errorMessage,n=e.caption,o=f((0,r.useState)(),2),a=o[0],s=o[1],l=f((0,r.useState)(),2),c=l[0],d=l[1],p=f((0,r.useState)({callouts:[],cardGroups:[]}),2),m=p[0],g=p[1],A=tf(Rm.LoadData,{executeOnMount:!0,after:function(e){e&&g(e)}},[]).execute;(0,r.useEffect)((function(){s(m.callouts),d(m.cardGroups)}),[m]);var v=function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return t?(0,y.jsx)("div",{children:t}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(ym,{children:[n&&(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.XL,children:n}),(0,y.jsxs)(i.Row,{spacing:i.Spacing.XL,children:[(0,y.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,y.jsx)(Wf,{cards:e.cards},t)}))}),a&&a.length>0&&(0,y.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,y.jsx)(i.Stack,{spacing:i.Spacing.XL,children:a.map((function(e,t){return(0,y.jsx)(af,{calloutConfiguration:e,onActionButtonStatusChanged:v},t)}))})})]})]}),(0,y.jsx)(zg,{})]})},Fm=function(e){var t=e.interval,n=f((0,r.useState)(!1),2),o=n[0],i=n[1],a=f((0,r.useState)(!1),2),s=a[0],l=a[1],c=O().executeCommand;return tf("StopAutoRefresh",{before:function(){return l(!0),!1}}),E(u(h().mark((function e(){return h().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(Rm.LoadData);case 4:i(!1);case 5:case"end":return e.stop()}}),e)}))),t),(0,y.jsx)(y.Fragment,{})};function Wm(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 Hm=function(e){return(0,y.jsx)(oo,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wm(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))},Vm=function(e){var t=e.items;return(0,y.jsx)(Kd,{items:t})},Ym=function(e){var t=e.content,n=e.contentAsHtml,r=v().sanitize;return(0,y.jsx)(y.Fragment,{children:t&&(n?(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:r(t)}}):(0,y.jsx)("div",{children:t}))})},Zm=s(111),Um={};Um.styleTagTransform=xn(),Um.setAttributes=An(),Um.insert=gn().bind(null,"head"),Um.domAPI=fn(),Um.insertStyleElement=bn();dn()(Zm.Z,Um);const Gm=Zm.Z&&Zm.Z.locals?Zm.Z.locals:void 0;function qm(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 Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qm(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xm=function(e){var t=e.tags;return(0,y.jsx)(y.Fragment,{children:t&&t.length>0&&(0,y.jsx)("div",{className:Gm.tags,children:t.map((function(e,t){return(0,r.createElement)(i.Tag,Qm(Qm({background:(n=e.color,{color:i.Colors[n]})},e),{},{key:t}));var n}))})})},Km=s(745),Jm={};Jm.styleTagTransform=xn(),Jm.setAttributes=An(),Jm.insert=gn().bind(null,"head"),Jm.domAPI=fn(),Jm.insertStyleElement=bn();dn()(Km.Z,Jm);const $m=Km.Z&&Km.Z.locals?Km.Z.locals:void 0;var eg=function(e){var t=e.headline,n=e.items;return(0,y.jsxs)("div",{children:[t&&(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:n&&n.length>0?i.Spacing.M:void 0,children:t}),n&&n.length>0&&(0,y.jsx)("ul",{className:$m.listOfItems,children:n.map((function(e,t){return(0,y.jsxs)("li",{className:$m.item,children:[e.text&&(0,y.jsx)("span",{className:$m.preText,children:e.text}),e.link&&(0,y.jsx)(o.Link,{className:$m.link,to:e.link.url,children:e.link.text})]},t)}))})]})},tg=s(5836),ng={};ng.styleTagTransform=xn(),ng.setAttributes=An(),ng.insert=gn().bind(null,"head"),ng.domAPI=fn(),ng.insertStyleElement=bn();dn()(tg.Z,ng);const rg=tg.Z&&tg.Z.locals?tg.Z.locals:void 0;var og=function(e){var t=e.onCancellation,n=e.onConfirmation,r=e.showDialog,o=e.texts;return(0,y.jsx)(y.Fragment,{children:r&&(0,y.jsx)(Sf,{headline:o.headline,confirmationButtonLabel:o.confirmLabel,isConfirmationButtonDestructive:!0,onCancellation:t,onConfirmation:n,dataTestId:"prompt-dialog",overlayClassName:rg.overlay,children:(0,y.jsx)(i.Box,{children:o.message})})})},ig=function(e){var t=e.onConfirmation,n=e.enableDialog,o=e.texts,i=f((0,r.useState)(!1),2),a=i[0],s=i[1],l=f((0,r.useState)(!1),2),c=l[0],u=l[1],d=T((function(){s(n)}),n&&!c);(0,r.useEffect)((function(){c&&(u(!1),d.retry())}),[d,c]);return(0,y.jsx)(og,{texts:o,onCancellation:function(){s(!1)},onConfirmation:function(){t(),s(!1),u(!0)},showDialog:a})},ag=r.default.createContext({});ag.displayName="PromptDialogContext";var sg=function(){var e=x().localization,t=r.default.useContext(ag);return t.setTexts({headline:e.admin.base.promptDialog.title,confirmLabel:e.admin.base.promptDialog.confirm,message:e.admin.base.promptDialog.message}),t};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}function cg(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){a(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}var ug=function(e){var t=e.children,n=zd(),o=n.dataChanged,i=n.resetAllDataChanged,a=x().localization,s=f((0,r.useState)(!1),2),l=s[0],c=s[1],u=f((0,r.useState)(!1),2),d=u[0],p=u[1],m=(0,r.useRef)(new Set),g=(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?m.current.add(e):m.current.delete(e),p(0!==m.current.size)}),[]),v=(0,r.useCallback)(Rn,[]),b=(0,r.useCallback)((function(){i(),g.current()}),[i]);return(0,y.jsxs)(ag.Provider,{value:{setPromptEnabled:c,setPromptSuppressed:A,setOnConfirmation:function(e){g.current=e},setTexts:function(e){h.current=cg(cg({},h.current),e)},getNewId:v},children:[t,(0,y.jsx)(ig,{enableDialog:(o||l)&&!d,onConfirmation:b,texts:h.current})]})},dg=function(e){var t=new RegExp("[^/]*$"),n=e.parameter.match(t);return n&&n[0]?"button-"+n[0].toString().toLowerCase():"button"},pg=s(3246),fg={};fg.styleTagTransform=xn(),fg.setAttributes=An(),fg.insert=gn().bind(null,"head"),fg.domAPI=fn(),fg.insertStyleElement=bn();dn()(pg.Z,fg);const mg=pg.Z&&pg.Z.locals?pg.Z.locals:void 0;var gg=function(e){var n=e.actions,r=e.dataTestId;return(0,y.jsx)("div",{className:mg.actions,"data-testid":r,children:null==n?void 0:n.map((function(e,n){return(0,y.jsx)("div",{className:mg.actionButton,children:e.type===t.Link?(0,y.jsx)(vf,{action:e,color:i.ButtonColor.Primary,dataTestId:dg(e)}):(0,y.jsx)(uf,{action:e,color:i.ButtonColor.Primary,dataTestId:dg(e)})},n)}))})},hg=s(7979),Ag={};Ag.styleTagTransform=xn(),Ag.setAttributes=An(),Ag.insert=gn().bind(null,"head"),Ag.domAPI=fn(),Ag.insertStyleElement=bn();dn()(hg.Z,Ag);const vg=hg.Z&&hg.Z.locals?hg.Z.locals:void 0;var bg=function(){return(0,y.jsx)("div",{className:vg.loaderWrapper,children:(0,y.jsx)("div",{className:vg.loader})})},Cg=s(6891),xg={};xg.styleTagTransform=xn(),xg.setAttributes=An(),xg.insert=gn().bind(null,"head"),xg.domAPI=fn(),xg.insertStyleElement=bn();dn()(Cg.Z,xg);const yg=Cg.Z&&Cg.Z.locals?Cg.Z.locals:void 0;var wg=function(e){var t=e.title;return(0,y.jsx)("div",{className:yg.loaderWrapper,children:(0,y.jsxs)("div",{className:yg.content,children:[t&&(0,y.jsx)("div",{className:yg.title,children:t}),(0,y.jsx)("div",{className:yg.loader,children:(0,y.jsx)("div",{className:yg.loaderBubble})})]})})},_g=s(2195),Og={};Og.styleTagTransform=xn(),Og.setAttributes=An(),Og.insert=gn().bind(null,"head"),Og.domAPI=fn(),Og.insertStyleElement=bn();dn()(_g.Z,Og);const Sg=_g.Z&&_g.Z.locals?_g.Z.locals:void 0;var jg=function(e){var t=e.title,n=e.text,r=e.children,o=e.dataTestId;return(0,y.jsxs)("div",{className:Sg.messagePane,"data-testid":o,children:[(0,y.jsx)(i.Headline,{size:i.HeadlineSize.L,spacingBottom:i.Spacing.L,children:t}),n&&(0,y.jsx)("div",{className:Sg.subheadline,children:n}),r&&(0,y.jsx)("div",{className:Sg.children,children:r})]})},Tg=function(e){var t=e.children,n=e.container,r=e.key;return n?Ss.default.createPortal(t,n,r):(0,y.jsx)(y.Fragment,{children:t})};function Dg(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 Bg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dg(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kg=function(e){var t=(0,o.useNavigate)(),n=$f(e.path,!1).isActive;return(0,y.jsx)(i.ApplicationTile,Bg(Bg({},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)}}))},Pg=s(3497),Eg={};Eg.styleTagTransform=xn(),Eg.setAttributes=An(),Eg.insert=gn().bind(null,"head"),Eg.domAPI=fn(),Eg.insertStyleElement=bn();dn()(Pg.Z,Eg);const Ig=Pg.Z&&Pg.Z.locals?Pg.Z.locals:void 0;function Mg(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 Ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mg(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lg=function(e){var t=e.children,n=e.parentPageUrl,a=cm(),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=(0,y.jsx)(i.Button,{label:c.submitAction.label,color:i.ButtonColor.Primary,onClick:c.submitAction.onClick,disabled:!1,dataTestId:"submit-form-button",inProgress:g}),b=document.getElementById("sidePanelPlaceholder");return(0,y.jsx)(Tg,{container:b,children:(0,y.jsx)(i.SidePanel,{headline:l,size:i.SidePanelSize.Wrapped,isVisible:!0,onCloseClick:A,notificationBar:u.length>0&&u.map((function(e){return(0,y.jsx)(i.NotificationBarAlert,{onDismiss:function(){return e.id&&m(e.id)},children:e.message},e.id)})),footer:v,className:Ig.sidePanel,children:(0,y.jsx)("div",{style:{minWidth:d,maxWidth:p,width:f},className:Ig.contentWrapper,children:t})})})},Rg=function(e){return(0,y.jsx)(Kp,{children:(0,y.jsx)(um,{children:(0,y.jsx)(Lg,Ng({},e))})})},zg=function(e){var t=e.children,n=(0,r.useContext)(Hf),i=n.routes,a=n.defaultRoute,s=n.visibleRoutes,l=x().localization;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(o.Routes,{children:[(0,y.jsx)(o.Route,{path:"",element:(0,y.jsxs)(y.Fragment,{children:[t,a&&(0,y.jsx)(o.Navigate,{to:a.path,replace:!0})]})}),i.map((function(e){var t=e.path+"/*";return(0,y.jsx)(r.default.Fragment,{children:e.pageLocation===Vf.Dialog&&(0,y.jsx)(o.Route,{path:t,element:(0,y.jsx)(vm,{parentPageUrl:"..",children:(0,y.jsx)(Jf,{templateName:e.templateName})})})||e.pageLocation===Vf.SidePanel&&(0,y.jsx)(o.Route,{path:t,element:(0,y.jsx)(Rg,{parentPageUrl:"..",children:(0,y.jsx)(Jf,{templateName:e.templateName})})})||(0,y.jsx)(o.Route,{path:t,element:(0,y.jsx)(Jf,{templateName:e.templateName})})},e.path)})),(0,y.jsx)(o.Route,{path:"*",element:(0,y.jsx)(jg,{title:l.admin.base.notFound.title,text:l.admin.base.notFound.text})})]}),(0,y.jsx)(o.Routes,{children:s.map((function(e,n){return(0,y.jsx)(o.Route,{path:e,element:(0,y.jsx)(y.Fragment,{children:t})},n)}))})]})},Fg="kxp.avatar.gradient",Wg=function(e){var t,a,s=e.userProfile,l=e.menuPlacement,c=e.renderTrigger,d=x().localization,p=(0,o.useNavigate)(),m=W().addNotificationMessage,g=f((0,r.useState)(!1),2),A=g[0],v=g[1],b=Wp().getXsrfHeader,C=localStorage.getItem(Fg),w=f((0,r.useState)(C&&Object.values(i.Gradients).includes(C)?C:(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(Fg,w)}),[w]);var _=function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p(s.profileLink),v(!1);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=(0,r.useCallback)(u(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Mp("/api/account/signout",new FormData,b(),(function(e){return m({message:e.message,type:n.Error})}));case 2:null!=(t=e.sent)&&t.ok&&p("/");case 4:case"end":return e.stop()}}),e)}))),[m,p,b]),S=s.firstName.substr(0,1)+s.lastName.substr(0,1)||s.userName.substr(0,1);return(0,y.jsxs)(i.DropDownActionMenu,{placement:l,open:A,onToggle:v,renderTrigger:function(e,t,n){return c(e,t,{tooltipText:"".concat(s.firstName||""," ").concat(s.lastName||"").trim()||s.userName,initials:S,background:{gradient:w},size:i.AvatarSize.M},n)},children:[(0,y.jsx)(i.MenuItem,{primaryLabel:d.admin.base.app.profile,onClick:_}),(0,y.jsx)(i.MenuItem,{primaryLabel:d.admin.base.app.signOut,onClick:O})]})};function Hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hg(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Wg.displayName="Avatar";var Yg,Zg,Ug=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(Vg(Vg({},e),{},{applications:i}))})),n};!function(e){e.List="list",e.Tiles="tiles"}(Yg||(Yg={})),function(e){e.Default="Default",e.Activated="Activated"}(Zg||(Zg={}));var Gg=s(3249),qg={};qg.styleTagTransform=xn(),qg.setAttributes=An(),qg.insert=gn().bind(null,"head"),qg.domAPI=fn(),qg.insertStyleElement=bn();dn()(Gg.Z,qg);const Qg=Gg.Z&&Gg.Z.locals?Gg.Z.locals:void 0;function Xg(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 Kg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xg(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jg=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=Ru(),u=c.isFocusVisible,d=c.focusProps,p=Qt()(Qg.row,n===Zg.Activated&&Qg.activated,u&&Qg.focused);return(0,y.jsx)("li",{className:Qg.listItem,ref:t,"data-testid":s,children:(0,y.jsx)(i.OptionalTooltip,{text:r.name,placement:i.TooltipPlacement.Right,customRenderText:function(e){return(0,y.jsxs)(o.NavLink,Kg(Kg({className:p,to:r.path,onClick:l},d),{},{children:[(0,y.jsx)("div",{className:Qg.icon,children:(0,y.jsx)(i.Icon,{name:r.icon})}),(0,y.jsx)("div",{className:Qg.label,ref:e,children:r.name})]}))}})})}));Jg.displayName="ApplicationListItem";var $g=s(1602),eh={};eh.styleTagTransform=xn(),eh.setAttributes=An(),eh.insert=gn().bind(null,"head"),eh.domAPI=fn(),eh.insertStyleElement=bn();dn()($g.Z,eh);const th=$g.Z&&$g.Z.locals?$g.Z.locals:void 0;function nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oh=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=f((0,r.useState)(!1),2),d=u[0],p=u[1],m=Qt()(th.header,l&&th.collapsible),g=Qt()(th.list,c===Yg.List?th.listView:th.tilesView),h=Qt()(th.categoryTitle,s&&th.withToggle),A=Qt()(th.scrollableContent,c===Yg.List&&th.listView),v=function(e){0===e.button&&n&&a(n)};return(0,y.jsxs)("div",{ref:t,children:[(0,y.jsxs)("div",rh(rh({className:m},l&&{onClick:function(){return p(!d)}}),{},{children:[(0,y.jsx)("div",{className:h,children:null==n?void 0:n.name}),l&&(0,y.jsx)("span",{className:th.icon,children:(0,y.jsx)(i.Icon,{name:d?"xp-chevron-down":"xp-chevron-up"})}),s&&s()]})),!d&&(0,y.jsx)("div",{className:s&&th.scrollable,children:(0,y.jsx)("div",{className:A,children:(0,y.jsx)("ul",{className:g,children:null==n?void 0:n.applications.map((function(e,t){return c===Yg.List?(0,y.jsx)(Jg,{state:e.path===o?Zg.Activated:Zg.Default,application:e,handleClick:v},t):(0,y.jsx)("li",{children:(0,y.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)}))})})})]})}));oh.displayName="ApplicationListGroup";var ih=s(9848),ah={};ah.styleTagTransform=xn(),ah.setAttributes=An(),ah.insert=gn().bind(null,"head"),ah.domAPI=fn(),ah.insertStyleElement=bn();dn()(ih.Z,ah);const sh=ih.Z&&ih.Z.locals?ih.Z.locals:void 0;var lh="kxp.applicationList.view",ch=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=localStorage.getItem(lh)||Yg.List,m=f((0,r.useState)(p),2),g=m[0],h=m[1],A=f((0,r.useState)(""),2),v=A[0],b=A[1],C=(0,r.useRef)(null),w=f((0,r.useState)([]),2),_=w[0],O=w[1],S=x().localization,j=[{id:Yg.List,icon:"xp-list",tooltip:S.admin.base.app.applicationList.list,tooltipPlacement:i.TooltipPlacement.Top},{id:Yg.Tiles,icon:"xp-l-grid-2-2",tooltip:S.admin.base.app.applicationList.tiles,tooltipPlacement:i.TooltipPlacement.Top}];(0,r.useEffect)((function(){var e;b(""),null===(e=C.current)||void 0===e||e.focus()}),[o]),(0,r.useEffect)((function(){O(v?Ug(n,v):[])}),[v,n]);var T=Qt()(sh.container,o&&sh.visible,l),D=Qt()(sh.scrollableContent,g===Yg.List&&sh.listView);return(0,y.jsx)("div",{"data-testid":u,ref:s,className:o?sh.overlay:"",children:(0,y.jsx)("div",{ref:t,className:T,children:o&&(0,y.jsxs)("div",{className:sh.content,children:[(0,y.jsx)("div",{className:sh.search,children:(0,y.jsx)(i.Input,{value:v,onChange:function(e){b(e.target.value)},inputRef:C,placeholder:S.admin.base.app.applicationList.searchPlaceholder})}),v?(0,y.jsx)("div",{className:sh.scrollable,children:(0,y.jsx)("div",{className:D,children:_.length?_.map((function(e,t){return(0,y.jsx)(oh,{category:e,applicationPath:a,view:g,handleClick:d},t)})):(0,y.jsx)("span",{className:sh.noItems,children:S.admin.base.app.applicationList.noApplicationsFound})})}):(0,y.jsx)(oh,{category:o,applicationPath:a,view:g,handleClick:d,renderToggleButtons:function(){return(0,y.jsx)(i.IconToggleButtons,{items:j,onChange:function(e){h(e),localStorage.setItem(lh,e)},selectedItemId:g})}})]})})})}));ch.displayName="ApplicationList";var uh=s(8467),dh={};dh.styleTagTransform=xn(),dh.setAttributes=An(),dh.insert=gn().bind(null,"head"),dh.domAPI=fn(),dh.insertStyleElement=bn();dn()(uh.Z,dh);const ph=uh.Z&&uh.Z.locals?uh.Z.locals:void 0;var fh=r.default.forwardRef((function(e,t){var n=e.categories,o=e.setIsOverflowing,a=e.handleClick,s=f((0,r.useState)(""),2),l=s[0],c=s[1],u=(0,r.useRef)(null),d=f((0,r.useState)([]),2),p=d[0],m=d[1],g=f((0,r.useState)([]),2),h=g[0],A=g[1],v=x().localization,b=f((0,r.useState)(""),2),C=b[0],w=b[1],_=(0,r.useRef)(null),O=t||_,S=f((0,r.useState)(!1),2),j=S[0],T=S[1];Qn({ref:O,onResize:function(){O.current&&o(O.current.offsetHeight<O.current.scrollHeight)}}),(0,r.useEffect)((function(){var e=Z(location.pathname).substring(1).split("/")[0].toLowerCase();w(e)}),[]);return(0,r.useEffect)((function(){m(l?Ug(n,l):[])}),[l,n]),(0,r.useEffect)((function(){A(j?l?p:[]:n)}),[j,l,p,n]),(0,y.jsxs)("div",{ref:O,className:ph.container,children:[(0,y.jsx)("div",{className:ph.title,children:j?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.Button,{color:i.ButtonColor.Quinary,size:i.ButtonSize.L,icon:"xp-arrow-left"}),v.admin.base.app.applicationList.search]}):(0,y.jsx)("span",{children:v.admin.base.app.applicationList.applications})}),(0,y.jsx)("div",{className:ph.search,children:(0,y.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,y.jsx)(oh,{category:e,applicationPath:C,view:Yg.List,handleClick:a,collapsible:!j},t)})),j&&l&&!p.length&&(0,y.jsx)("span",{className:ph.noItems,children:v.admin.base.app.applicationList.noApplicationsFound})]})}));fh.displayName="ApplicationListMobile";var mh=s(9308),gh={};gh.styleTagTransform=xn(),gh.setAttributes=An(),gh.insert=gn().bind(null,"head"),gh.domAPI=fn(),gh.insertStyleElement=bn();dn()(mh.Z,gh);const hh=mh.Z&&mh.Z.locals?mh.Z.locals:void 0;function Ah(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 vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ah(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bh=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=f((0,r.useState)(),2),m=p[0],g=p[1],h=f((0,r.useState)(),2),A=h[0],v=h[1],b=f((0,r.useState)(""),2),C=b[0],x=b[1],w=f((0,r.useState)(!1),2),_=w[0],O=w[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,i.useSnackbar)(),P=k.addMessage,E=k.clearMessages,I=f((0,r.useState)(!1),2),M=I[0],N=I[1],L=f((0,r.useState)(!1),2),R=L[0],z=L[1],F="kxp.applicationMenu.licenseWarning",W="kxp.applicationMenu.licenseError",H="kxp.applicationMenu.displayingMessage",V="kxp.applicationMenu.affectedLicenses";Qn({ref:B,onResize:function(){B.current&&O(B.current.scrollHeight>B.current.offsetHeight)}});var Y=(0,o.useLocation)(),U=(0,i.useTheme)(),G=(U.theme,U.setTheme,(0,r.useContext)(Hf).userProfile),q=(0,r.useCallback)((function(e){var t;null!==(t=D.current)&&void 0!==t&&t.contains(e.target)&&j.current!==e.target||g(void 0)}),[D]);(0,i.useHandleClickOutside)(S,q);var Q=function(e){switch(e.key){case"Escape":g(void 0);break;case"F2":var t=null!=A?A:n[0];g(m?void 0:t)}};(0,r.useEffect)((function(){return document.addEventListener("keydown",Q),function(){document.removeEventListener("keydown",Q)}}));var X=(0,r.useCallback)((function(){var e=JSON.stringify(c),t=localStorage.getItem(V);return!(!t||t!==e)||(localStorage.setItem(V,e),!1)}),[c]);(0,r.useEffect)((function(){if(M){var e=X(),t=localStorage.getItem(H);if(e&&"true"===t)N(!1);else{localStorage.setItem(H,"true");var n=(new Date).getTime()+18e5;P({message:l,variant:i.SnackbarItemVariant.Error,messageAsHtml:!0,onClose:function(){localStorage.removeItem(H),localStorage.setItem(W,n.toString()),N(!1)}})}}}),[M,N,P,l,X]),(0,r.useEffect)((function(){if(R){var e=X(),t=localStorage.getItem(H);if(e&&"true"===t)z(!1);else{localStorage.setItem(H,"true");var n=(new Date).getTime()+864e5;P({message:l,variant:i.SnackbarItemVariant.Warning,messageAsHtml:!0,onClose:function(){localStorage.removeItem(H),localStorage.setItem(F,n.toString()),z(!1)}})}}}),[R,z,P,l,X]),(0,r.useEffect)((function(){var e=localStorage.getItem(V);if(e){var t=JSON.parse(e),n=t?t.length:0;(c?c.length:0)!==n&&(E(),localStorage.removeItem(H),localStorage.removeItem(W),localStorage.removeItem(F))}setInterval((function(){var e=(new Date).getTime(),t=localStorage.getItem(W);if(t&&e>Number(t))return void N(!0);var n=localStorage.getItem(F);n&&(e>Number(n)&&z(!0))}),6e4);var r=(new Date).getTime(),o=X();if(a||s||localStorage.removeItem(H),a){var i=localStorage.getItem(W);(!o||!i||r>Number(i))&&N(!0)}else if(s){var l=localStorage.getItem(F);(!o||!l||r>Number(l))&&z(!0)}}),[]),(0,r.useEffect)((function(){var e=Z(Y.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)}),[Y,n]);var K=Qt()(hh.sideBar,m&&hh.rollout,_&&hh.scrollable);return(0,y.jsxs)("div",{"data-testid":d,ref:D,children:[(0,y.jsxs)("div",{className:K,children:[(0,y.jsx)("div",{className:hh.upper,ref:B,children:(0,y.jsxs)("ul",{children:[(0,y.jsx)("li",{className:hh.logo,children:(0,y.jsx)(o.Link,{to:"/","aria-label":"Kentico Xperience logo"})}),n.map((function(e,t){return(0,y.jsx)("li",{children:(0,y.jsx)(i.ApplicationTile,{iconName:e.icon,state:e.codeName===(null==m?void 0:m.codeName)||!m&&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){g(m===e?void 0:e)}(e)}})},t)}))]})}),(0,y.jsx)("div",{className:hh.bottom,children:(0,y.jsxs)("ul",{children:[(0,y.jsx)("li",{"data-testid":"account-panel",children:(0,y.jsx)(Wg,{userProfile:G,menuPlacement:i.DropDownPlacement.Right,renderTrigger:function(e,t,n){return(0,y.jsx)(i.AvatarButton,vh(vh({},n),{},{ref:e,onClick:t}))}})}),!1]})})]}),(0,y.jsx)(ch,{ref:S,overlayRef:j,categories:n,selectedCategory:m,applicationPath:C,handleClick:function(e){v(e),g(void 0)},className:_?hh.scrollableApplicationList:""})]})}));bh.displayName="ApplicationMenu";var Ch=r.default.forwardRef((function(e,t){var n=e.containerRef,r=Gf(),o=r.breadcrumbs,a=r.statusNode;return(0,y.jsx)(i.Breadcrumbs,{ref:t,containerRef:n,breadcrumbs:o.filter((function(e){return e.text})),status:a})}));Ch.displayName="Breadcrumbs";var xh=s(4333),yh={};yh.styleTagTransform=xn(),yh.setAttributes=An(),yh.insert=gn().bind(null,"head"),yh.domAPI=fn(),yh.insertStyleElement=bn();dn()(xh.Z,yh);const wh=xh.Z&&xh.Z.locals?xh.Z.locals:void 0;function _h(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 Oh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_h(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sh=function(e){var t=f((0,r.useState)(!1),2),n=t[0],o=t[1];return(0,y.jsx)(i.DropDownActionMenu,Oh(Oh({},e),{},{open:n,onToggle:o,children:e.renderMenu(o)}))},jh=(0,i.createSelectGroup)(),Th="site",Dh=function(e){var t=e.currentSiteName,n=e.sites,s=e.sitesApplication,l=x().localization,c=(0,o.useLocation)().pathname,u=(0,o.useNavigate)(),d=[{id:Th,title:l.admin.base.app.siteSelector.sites,defaultLabel:l.admin.base.app.siteSelector.siteUnavailable,noItemLabel:l.admin.base.app.siteSelector.noSitesAvailable,options:I(n),footer:Oh({},s)}],p=f((0,r.useState)(a({},Th,t)),2),m=p[0],g=p[1];return(0,y.jsx)("div",{className:wh.siteSelector,"data-testid":"SiteSelector",children:(0,y.jsx)(jh,{selects:d,paperClassName:wh.paper,renderSelect:function(e,t){return(0,y.jsx)(Sh,{renderTrigger:function(t,n,r){return(0,y.jsx)(i.SelectGroupCell,{ref:t,onClick:n,label:m[e.id]||e.defaultLabel,open:r,icon:e.icon})},renderMenu:function(n){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.ActionMenuHeadline,{label:e.title}),e.options.length?e.options.map((function(r){return(0,y.jsx)(i.MenuItem,{primaryLabel:r.name,value:r.name,onClick:function(){var o,i;n(!1),t(),o=e.id,i=r.name,g(Oh(Oh({},m),{},a({},o,i))),window.location.href="".concat(r.url).concat(Z(c))}},r.name)})):(0,y.jsx)(i.MenuItem,{primaryLabel:e.noItemLabel,disabled:!0}),e.footer&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.ActionMenuDivider,{}),(0,y.jsx)(i.MenuItem,{primaryLabel:e.footer.name,value:e.footer.name,onClick:function(){n(!1),t(),u(e.footer.path)}})]})]})}},e.id)}})})},Bh=s(8004),kh={};kh.styleTagTransform=xn(),kh.setAttributes=An(),kh.insert=gn().bind(null,"head"),kh.domAPI=fn(),kh.insertStyleElement=bn();dn()(Bh.Z,kh);const Ph=Bh.Z&&Bh.Z.locals?Bh.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 Ih(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){a(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 Mh=function(){var e=(0,r.useRef)(null),t=(0,r.useContext)(Hf).siteSelectorProperties,n=f((0,r.useState)(0),2),o=n[0],i=n[1],a=(0,r.useRef)(null),s=(0,r.useRef)(null),l=function(){var t,n,r;(null==e||null===(t=e.current)||void 0===t?void 0:t.offsetWidth)!==(null==e||null===(n=e.current)||void 0===n?void 0:n.scrollWidth)&&i((null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)||0)};return Qn({ref:e,onResize:l}),Qn({ref:s,onResize:l}),Qn({ref:a,onResize:function(){var e,t,n;(null==a||null===(e=a.current)||void 0===e?void 0:e.offsetWidth)!==(null==a||null===(t=a.current)||void 0===t?void 0:t.scrollWidth)&&i((null==a||null===(n=a.current)||void 0===n?void 0:n.scrollWidth)||0)}}),(0,y.jsxs)("header",{ref:e,className:Ph.statusBar,"data-testid":"Header",children:[(0,y.jsxs)("div",{ref:a,className:Ph.left,style:{minWidth:o},children:[(0,y.jsx)(Dh,Ih({},t)),(0,y.jsx)(Ch,{containerRef:e})]}),(0,y.jsx)("div",{ref:s,className:Ph.right,children:(0,y.jsx)("div",{id:"applicationHeader"})})]})};Mh.displayName="StatusBar";var Nh=s(619),Lh={};Lh.styleTagTransform=xn(),Lh.setAttributes=An(),Lh.insert=gn().bind(null,"head"),Lh.domAPI=fn(),Lh.insertStyleElement=bn();dn()(Nh.Z,Lh);const Rh=Nh.Z&&Nh.Z.locals?Nh.Z.locals:void 0;var zh=function(e){var t=e.categories,n=e.showError,r=e.showWarning,o=e.expiringLicenseMessage,i=e.affectedLicenseHashes;return(0,y.jsxs)("div",{className:Rh.main,children:[(0,y.jsx)(bh,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:i}),(0,y.jsxs)("div",{className:Rh.content,children:[(0,y.jsx)(Mh,{}),(0,y.jsx)("div",{className:Rh.canvas,children:(0,y.jsx)("div",{className:Rh.placeholder,children:(0,y.jsx)(zg,{})})})]}),(0,y.jsx)("div",{id:"sidePanelPlaceholder"})]})},Fh=s(1026),Wh={};Wh.styleTagTransform=xn(),Wh.setAttributes=An(),Wh.insert=gn().bind(null,"head"),Wh.domAPI=fn(),Wh.insertStyleElement=bn();dn()(Fh.Z,Wh);const Hh=Fh.Z&&Fh.Z.locals?Fh.Z.locals:void 0;function Vh(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 Yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vh(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zh=r.default.forwardRef((function(e,t){var n=e.active,r=e.link,i=e.children,a=e.ariaLabel,s=e.onClick,l=Ru(),c=l.isFocusVisible,u=l.focusProps,d=Qt()(Hh.cell,n&&Hh.active,c&&Hh.focused);return r?(0,y.jsx)(o.NavLink,Yh(Yh({to:r,className:d,"aria-label":a},u),{},{children:i})):(0,y.jsx)("button",Yh(Yh({className:d},u),{},{onClick:s,ref:t,children:i}))}));Zh.displayName="Cell";var Uh=s(3437),Gh={};Gh.styleTagTransform=xn(),Gh.setAttributes=An(),Gh.insert=gn().bind(null,"head"),Gh.domAPI=fn(),Gh.insertStyleElement=bn();dn()(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){a(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=function(e){var t=e.className,n=(0,r.useContext)(Hf).siteSelectorProperties,o=(0,r.useContext)(Hf).userProfile;return(0,y.jsxs)(i.Paper,{className:Qt()(qh.smallStatusBar,t),children:[(0,y.jsx)(Zh,{link:"/",ariaLabel:"logo",children:(0,y.jsx)("div",{className:qh.logo})}),(0,y.jsx)(Dh,Xh({},n)),(0,y.jsx)(Wg,{userProfile:o,renderTrigger:function(e,t,n,r){return(0,y.jsx)(Zh,{onClick:t,ref:e,active:r,children:(0,y.jsx)(i.Avatar,Xh(Xh({},n),{},{size:i.AvatarSize.XS,shadow:!1,tooltipText:""}))})}})]})};Kh.displayName="SmallStatusBar";var Jh=s(7635),$h={};$h.styleTagTransform=xn(),$h.setAttributes=An(),$h.insert=gn().bind(null,"head"),$h.domAPI=fn(),$h.insertStyleElement=bn();dn()(Jh.Z,$h);const eA=Jh.Z&&Jh.Z.locals?Jh.Z.locals:void 0;var tA=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,m=f((0,r.useState)(!1),2),g=m[0],h=m[1],A=f((0,r.useState)(!1),2),v=A[0],b=A[1],C=(0,o.useLocation)(),w=x().localization,_=(0,r.useRef)(null),O=t||_,S=(0,i.useSnackbar)(),j=S.addMessage,T=S.clearMessages,D=f((0,r.useState)(!1),2),B=D[0],k=D[1],P=f((0,r.useState)(!1),2),E=P[0],I=P[1],M="kxp.applicationMenu.licenseWarning",N="kxp.applicationMenu.licenseError",L="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(L);if(e&&"true"===t)k(!1);else{localStorage.setItem(L,"true");var n=(new Date).getTime()+18e5;j({message:d,variant:i.SnackbarItemVariant.Error,messageAsHtml:!0,onClose:function(){localStorage.removeItem(L),localStorage.setItem(N,n.toString()),k(!1)}})}}}),[B,k,j,d,z]),(0,r.useEffect)((function(){if(E){var e=z(),t=localStorage.getItem(L);if(e&&"true"===t)I(!1);else{localStorage.setItem(L,"true");var n=(new Date).getTime()+864e5;j({message:d,variant:i.SnackbarItemVariant.Warning,messageAsHtml:!0,onClose:function(){localStorage.removeItem(L),localStorage.setItem(M,n.toString()),I(!1)}})}}}),[E,I,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(L),localStorage.removeItem(N),localStorage.removeItem(M))}setInterval((function(){var e=(new Date).getTime(),t=localStorage.getItem(N);if(t&&e>Number(t))return void k(!0);var n=localStorage.getItem(M);n&&(e>Number(n)&&I(!0))}),6e4);var r=(new Date).getTime(),o=z();if(c||u||localStorage.removeItem(L),c){var i=localStorage.getItem(N);(!o||!i||r>Number(i))&&k(!0)}else if(u){var a=localStorage.getItem(M);(!o||!a||r>Number(a))&&I(!0)}}),[]),(0,r.useEffect)((function(){var e=Z(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&&!g)}),[b,s,g]);return(0,y.jsxs)("div",{className:Qt()(eA.applicationMenuMobile,a),ref:O,children:[(0,y.jsx)(i.ApplicationTile,{iconName:"xp-home",label:w.admin.base.app.applicationMenuMobile.home,state:v?i.ApplicationTileState.Activated:i.ApplicationTileState.Default,onClick:function(){l(!1)},link:"/"}),(0,y.jsx)(i.ApplicationTile,{iconName:"xp-menu",label:w.admin.base.app.applicationMenuMobile.applications,state:v?i.ApplicationTileState.Default:i.ApplicationTileState.Activated,onClick:function(){l(!s)}})]})}));tA.displayName="ApplicationMenuMobile";var nA=s(8239),rA={};rA.styleTagTransform=xn(),rA.setAttributes=An(),rA.insert=gn().bind(null,"head"),rA.domAPI=fn(),rA.insertStyleElement=bn();dn()(nA.Z,rA);const oA=nA.Z&&nA.Z.locals?nA.Z.locals:void 0;var iA=function(e){var t=e.categories,n=e.showError,o=e.showWarning,a=e.expiringLicenseMessage,s=e.affectedLicenseHashes,l=f((0,r.useState)(!1),2),c=l[0],u=l[1],d=f((0,r.useState)(!1),2),p=d[0],m=d[1],g=(0,i.useScrollDown)(),h=(0,i.useMobileKeyboard)(),A=Qt()(c&&oA.statusBarWrapper),v=Qt()(c&&oA.statusBarOnAppList),b=Qt()(p&&oA.guard);return(0,r.useEffect)((function(){window.scrollTo(0,0)}),[c]),(0,y.jsxs)("div",{className:Qt()(oA.main,c&&oA.withApplicationList),children:[(0,y.jsx)("div",{className:A,children:(0,y.jsx)(Kh,{className:v})}),(0,y.jsx)("div",{className:oA.canvas,children:c?(0,y.jsx)(fh,{categories:t,isOverflowing:p,setIsOverflowing:m,handleClick:function(){return u(!1)}}):(0,y.jsx)("div",{className:oA.placeholder,children:(0,y.jsx)(zg,{})})}),!(h||g)&&(0,y.jsx)(tA,{className:b,categories:t,setApplicationListVisible:u,applicationListVisible:c,showError:n,showWarning:o,expiringLicenseMessage:a,affectedLicenseHashes:s})]})},aA=function(e){var t=e.categories,n=e.showError,r=e.showWarning,o=e.expiringLicenseMessage,a=e.affectedLicenseHashes;return(0,i.useMediaBreakpoints)().mobile?(0,y.jsx)(iA,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:a}):(0,y.jsx)(zh,{categories:t,showError:n,showWarning:r,expiringLicenseMessage:o,affectedLicenseHashes:a})};function sA(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 lA(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 lA(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 lA(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 cA=function(){function e(t){var n,r,o,i,a,s,l;if(Ir(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 Nr(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=sA(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 uA=cA;var dA=["as","children"];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}var fA=function(e){var t=e.as,n=void 0===t?"div":t,o=e.children,i=m(e,dA),s=(0,r.useRef)(null),l=r.default.useRef(null);return(0,r.useEffect)((function(){var e=new uA(function(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){a(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}({container:s.current},i)),t=function(){l.current||(l.current=window.setTimeout((function(){e&&e.positionItems(),clearTimeout(l.current)}),200))};return window.addEventListener("resize",t),e.positionItems(),function(){window.removeEventListener("resize",t)}})),(0,y.jsx)(n,{ref:s,children:o})},mA=s(1098),gA={};gA.styleTagTransform=xn(),gA.setAttributes=An(),gA.insert=gn().bind(null,"head"),gA.domAPI=fn(),gA.insertStyleElement=bn();dn()(mA.Z,gA);const hA=mA.Z&&mA.Z.locals?mA.Z.locals:void 0;var AA=function(e){var t=e.categories,n=e.callouts,a=x().localization,s=(0,o.useNavigate)(),l=(0,i.useMediaBreakpoints)(),c=l.mobile,u=l.lg,d=f((0,r.useState)(i.ActionTileSize.Large),2),p=d[0],m=d[1];(0,r.useEffect)((function(){m(c?i.ActionTileSize.XSmall:u?i.ActionTileSize.Large:i.ActionTileSize.Small)}),[c,u]);var g=t?t.map((function(e){return(0,y.jsxs)("div",{className:hA.category,children:[(0,y.jsx)("div",{className:hA.categoryTitle,children:(0,y.jsx)("span",{children:e.name})}),(0,y.jsx)("div",{className:Qt()(hA.applications),children:e.applications.map((function(e,t){return(0,y.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,y.jsxs)("div",{className:hA.dashboard,children:[(0,y.jsx)("div",{className:hA.titleWrapper,children:(0,y.jsx)("span",{className:hA.title,children:a.admin.base.dashboard.home})}),(0,y.jsxs)("div",{children:[n&&n.map((function(e,t){return(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,y.jsx)(af,{calloutConfiguration:e})},t)})),(0,y.jsx)("div",{className:hA.categories,children:c?(0,y.jsx)(y.Fragment,{children:g}):0!==g.length&&(0,y.jsx)(fA,{items:g.length,useMin:!0,gutter:0,center:!1,children:g})})]})]})},vA=r.default.createContext({navigation:[],push:function(){},pop:function(){},refreshItem:function(){}});vA.displayName="SecondaryMenuNavigationContext";var bA=function(){return r.default.useContext(vA)};function CA(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 xA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CA(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yA=function(e){var t=e.children,n=f((0,r.useState)([]),2),i=n[0],a=n[1],s=(0,r.useCallback)((function(e,t){return xA(xA({},e),{},{items:e.items.map((function(e){return xA(xA({},e),{},{path:(0,o.resolvePath)(e.path,t).pathname})}))})}),[]),l=(0,r.useCallback)((function(e,t){a((function(n){return[].concat(I(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=I(n);return r[e]=xA(xA({},r[e]),{},{headline:t}),r}))}),[]);return(0,y.jsx)(vA.Provider,{value:{navigation:i,push:l,pop:c,refreshItem:u},children:t})},wA=s(4622),_A={};_A.styleTagTransform=xn(),_A.setAttributes=An(),_A.insert=gn().bind(null,"head"),_A.domAPI=fn(),_A.insertStyleElement=bn();dn()(wA.Z,_A);const OA=wA.Z&&wA.Z.locals?wA.Z.locals:void 0;var SA="Change",jA="Submit",TA=function(e){return e.map((function(e,t){return(0,y.jsx)(af,{calloutConfiguration:e},t)}))},DA=function(e){var t=e.items,n=e.submitLabel,o=e.errorMessage,a=e.disabled,s=e.headline,l=e.backLink,c=e.callouts,d=x().localization,p=sg(),m=p.setPromptSuppressed,g=p.getNewId,A=(0,r.useRef)(g()),v=f((0,r.useState)([]),2),b=v[0],C=v[1],w=r.default.useRef(null),_=(0,i.useMediaBreakpoints)(),O=tf(SA,{after:function(e){e&&C(e.items)}}).execute,S=tf(jA,{before:function(){m(A.current,!0),z&&H(!0),P&&N(!0)},after:function(e){var t;(P&&N(!1),z&&H(!1),e)&&(e.items&&C(e.items),e.status===so.ValidationSuccess&&(null===(t=w.current)||void 0===t||t.resetDataChanged(),void 0!==e.objectDisplayName&&null!==e.objectDisplayName&&ee(e.objectDisplayName),P?E():z&&F()));m(A.current,!1)}}).execute;(0,r.useEffect)((function(){var e=A.current;return function(){m(e,!1)}}),[m]);var j=Xp(),T=j.isNested,D=j.setActions;(0,r.useEffect)((function(){T&&D(a?void 0:{submitAction:{label:n,onClick:function(){var e;return null===(e=w.current)||void 0===e?void 0:e.submit()}}})}),[T,a,n,D]);var B=fm(),k=B.setTitle,P=B.isInDialog,E=B.closeDialog,I=B.setMinWidth,M=B.setMaxWidth,N=B.setActionInProgress;(0,r.useEffect)((function(){var e=function(e){return"@kentico/xperience-admin-base/ObjectSelector"===e.componentName};P&&(k(s),I("65vw"),function(t){return t.some((function(t){return e(t)}))}(b)&&M("65vw"))}),[P,a,I,M,k,n,s,b]);var L=cm(),R=L.setTitle,z=L.isInSidePanel,F=L.closeSidePanel,W=L.setWidth,H=L.setActionInProgress;(0,r.useEffect)((function(){z&&(R(s),W("600px"))}),[z,a,W,R,n,s]);var V=(0,r.useContext)(Hf).navigation,Y=Gf(),Z=Y.breadcrumbs,G=Y.refreshItem,q=bA(),Q=q.navigation,X=q.push,K=q.pop,J=q.refreshItem,$=U(),ee=function(e){G(Lp(Z,(function(e){return e.isSignificant})),e),J(Lp(Q,(function(e){return e.isSignificant})),e)};(0,r.useEffect)((function(){return V.items.length?(X(V,$),V.isTemporary?K:function(){}):function(){}}),[V,$,X,K]),(0,r.useEffect)((function(){C(t)}),[t]);var te=f((0,r.useState)(!1),2),ne=te[0],re=te[1];if(o)return(0,y.jsx)("div",{children:o});if(!b)return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(jg,{title:d.admin.base.edit.noElementTitle,text:d.admin.base.edit.noElementText})});var oe=function(){var e=u(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.changedField.hasDependencies){e.next=3;break}return e.next=3,O({data:t.values});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ie=function(){var e=u(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,re(!0),e.next=4,S({data:t.values});case 4:return e.prev=4,re(!1),e.finish(4);case 7:case"end":return e.stop()}}),e,null,[[0,,4,7]])})));return function(t){return e.apply(this,arguments)}}(),ae=function(){return(0,y.jsx)(Kd,{ref:w,items:b,onSubmit:ie,onChange:oe,disabled:a,dataTestId:"edit-form"})};if(T)return ae();var se=c.filter((function(e){return e.type===i.CalloutType.FriendlyWarning})),le=c.filter((function(e){return e.type===i.CalloutType.QuickTip}));return(0,y.jsxs)("div",{className:OA.templateWrapper,children:[s&&(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,children:s}),(0,y.jsx)(i.StickyHeader,{children:(0,y.jsxs)("div",{className:OA.actionsWrapper,children:[l&&(0,y.jsx)(mf,{color:i.ButtonColor.Secondary,icon:"xp-arrow-left",href:l}),!a&&(0,y.jsx)(i.Button,{type:i.ButtonType.Submit,label:n,color:i.ButtonColor.Primary,onClick:function(){var e;return null===(e=w.current)||void 0===e?void 0:e.submit()},dataTestId:"submit-form-button",inProgress:ne})]})}),(0,y.jsx)(ym,{children:(0,y.jsxs)(i.Row,{spacing:i.Spacing.XL,children:[(_.sm||_.md)&&se.length>0&&(0,y.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,children:TA(se)}),(0,y.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,colsLg:i.Cols.Col8,children:(0,y.jsx)(i.Paper,{borderRadius:i.BorderRadius.RadiusL,children:(0,y.jsx)(i.Box,{spacing:i.Spacing.XXL,children:ae()})})}),_.lg&&c.length>0&&(0,y.jsx)(i.Column,{colsLg:i.Cols.Col4,children:(0,y.jsx)(i.Stack,{spacing:i.Spacing.XL,children:TA(c)})}),(_.sm||_.md)&&le.length>0&&(0,y.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,children:TA(le)})]})})]})};var BA=s(5597),kA={};kA.styleTagTransform=xn(),kA.setAttributes=An(),kA.insert=gn().bind(null,"head"),kA.domAPI=fn(),kA.insertStyleElement=bn();dn()(BA.Z,kA);const PA=BA.Z&&BA.Z.locals?BA.Z.locals:void 0;var EA=function(e){var t=e.callouts,n=e.headline,r=e.content,o=e.actionButton,i=x().localization,a=v().sanitize;return(0,y.jsxs)("div",{className:PA.content,children:[r&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:PA.titleWrapper,children:(0,y.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,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:PA.sectionTitle,children:(0,y.jsx)("span",{children:n})}),(0,y.jsx)("div",{className:PA.sectionContent,dangerouslySetInnerHTML:{__html:a(r)}}),(0,y.jsx)(gg,{actions:[o],dataTestId:"listing-header-actions"})]})]}),t&&t.map((function(e,t){return(0,y.jsx)(af,{calloutConfiguration:e},t)}))]})};const IA={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 MA(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}=Eu({isDisabled:!n,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,r.useMemo)((()=>o?t:t?{...IA,...t}:IA),[o])}}}(e);return r.default.createElement(n,function(...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]=su(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=au(n,o):t[e]=void 0!==o?o:n:t[e]=ru(n,o)}}return t}(a,s),t)}var NA=s(1896),LA={};LA.styleTagTransform=xn(),LA.setAttributes=An(),LA.insert=gn().bind(null,"head"),LA.domAPI=fn(),LA.insertStyleElement=bn();dn()(NA.Z,LA);const RA=NA.Z&&NA.Z.locals?NA.Z.locals:void 0;var zA="Submit",FA=function(e){var t=e.backLink,n=e.errorMessage,o=e.caption,a=e.submitLabel,s=e.initialConfiguration,l=e.availableMacroRuleConfigurations,c=e.availableMacroRules,d=f((0,r.useState)(s),2),p=d[0],m=d[1],g=Fd(),A=g.setDataChanged,v=g.getNewId,b=(0,r.useRef)(v()),C=x().localization,w=Xp(),_=w.isNested,O=w.setActions,S=fm(),j=S.setTitle,T=S.isInDialog,D=S.closeDialog,B=S.setWidth,k=S.setHeight,P=S.setIsFullscreen,E=S.setActionInProgress,I=sg().setTexts,M=go(1024);I({message:C.admin.base.conditionBuilder.cancelConfirmation}),(0,r.useEffect)((function(){var e=b.current;return function(){A(e,!1)}}),[A]);var N=tf(zA,{before:function(){T&&E(!0)},after:function(e){T&&E(!1),e&&(e.status!==so.ValidationSuccess?A(b.current,!0):T&&D())}}).execute,L=function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(b.current,!1),e.next=3,N(kr(p));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=(0,r.useRef)(null);return(0,r.useEffect)((function(){_&&O({submitAction:{label:a,onClick:function(){var e;return null==R||null===(e=R.current)||void 0===e?void 0:e.click()}}})}),[_,a,O]),(0,r.useEffect)((function(){T&&(j(o),B(ri),k("100%"),P(M))}),[T,p,B,j,a,o,k,P,M]),n?(0,y.jsx)("div",{children:n}):(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:T?"":RA.templateWrapper,children:[!T&&(0,y.jsxs)(y.Fragment,{children:[o&&(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:o}),(0,y.jsxs)("div",{className:RA.actionsWrapper,children:[t&&(0,y.jsx)(mf,{color:i.ButtonColor.Secondary,icon:"xp-arrow-left",href:t}),(0,y.jsx)(i.Button,{type:i.ButtonType.Submit,label:a,color:i.ButtonColor.Primary,onClick:function(){return L()}})]})]}),(0,y.jsxs)("div",{className:T?"":RA.conditionBuilderWrapper,children:[(0,y.jsx)(MA,{children:(0,y.jsx)(i.Button,{buttonRef:R,type:i.ButtonType.Submit,label:a,onClick:function(){return L()}})}),(0,y.jsx)(ni,{initialConfiguration:p,availableMacroRuleConfigurations:l,availableMacroRules:c,onChange:function(e){A(b.current,!0),m(e)}})]})]})})};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 HA(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){a(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 VA=function(e){var t=e.componentName,n=e.componentConfiguration,r=k(t);return(0,y.jsx)(y.Fragment,{children:r&&(0,y.jsx)(r,HA({},n))})},YA=s(2316),ZA={};ZA.styleTagTransform=xn(),ZA.setAttributes=An(),ZA.insert=gn().bind(null,"head"),ZA.domAPI=fn(),ZA.insertStyleElement=bn();dn()(YA.Z,ZA);const UA=YA.Z&&YA.Z.locals?YA.Z.locals:void 0;var GA=["headerActions","columns","caption","callouts","maxVisibleRowActions"];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){a(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="LoadData",KA=function(e){var n=e.headerActions,a=e.columns,s=e.caption,l=e.callouts,c=e.maxVisibleRowActions,d=m(e,GA),p=(0,o.useNavigate)(),g=O().executeCommand,A=x().localization,v=f((0,r.useState)(""),2),b=v[0],C=v[1],w=wp().refetchDataInTemplates,_=r.default.createRef(),S=f((0,r.useState)(void 0),2),j=S[0],T=S[1],D=f((0,r.useState)({rows:void 0,totalCount:0}),2),B=D[0],k=D[1],P=f((0,r.useState)({currentPage:1,pageSize:d.pageSize,sortBy:d.sortBy,sortType:d.sortType,searchTerm:""}),2),E=P[0],I=P[1],M=tf(XA,{executeOnMount:!0,after:function(e){var t;e&&(0===(null==e||null===(t=e.rows)||void 0===t?void 0:t.length)&&1!==E.currentPage?I((function(e){return QA(QA({},e),{},{currentPage:e.currentPage-1})})):k(e))},data:E},[E]).execute,N=function(){var e=u(h().mark((function e(t,n){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g(t.parameter,n.identifier);case 2:(r=e.sent)&&(r.refetchAll?w():r.reload&&M());case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),L=function(e){var t;return(0,y.jsxs)(i.Stack,{spacing:i.Spacing.XL,children:[e.confirmationDetail&&(0,y.jsx)("div",{children:e.confirmationDetail}),(null===(t=e.confirmationContent)||void 0===t?void 0:t.componentName)&&(0,y.jsx)(VA,QA({},e.confirmationContent))]})},R=function(e,t){var n;T({confirmationButtonLabel:e.confirmationButton,children:L(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 p(e.parameter)})):R(e,(function(){return N(e,n)})):e.type===t.Link?p(e.parameter):N(e,n))},F=B.totalCount%E.pageSize>0?Math.trunc(B.totalCount/E.pageSize)+1:B.totalCount/E.pageSize,W=a.filter((function(e){return e.searchable})).length>0,H=n&&n.length>0,V=B.rows&&B.rows.length>0,Y=V||void 0===B.rows,Z=(W||H)&&(0,y.jsxs)("div",{className:UA.actions,children:[(0,y.jsx)(gg,{actions:n,dataTestId:"listing-header-actions"}),W&&(V||E.searchTerm)&&(0,y.jsx)("div",{className:UA.filter,children:(0,y.jsx)("form",{onSubmit:function(e){e.preventDefault(),I((function(e){return QA(QA({},e),{},{currentPage:1,searchTerm:b})}))},children:(0,y.jsx)(i.Input,{placeholder:A.admin.base.listing.search.placeholder,onChange:function(e){return C(e.target.value)},value:b})})})]});return(0,y.jsx)(zg,{children:(0,y.jsx)(ym,{children:(0,y.jsxs)("div",{className:UA.wrapper,children:[s&&(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.XL,children:s}),l&&l.map((function(e,t){return(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,y.jsx)(af,{calloutConfiguration:e})},t)})),!Y&&Z,Y&&(0,y.jsx)(i.Table,{ref:_,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(QA(QA({},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){I((function(t){return QA(QA({},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:A.admin.base.listing.table.selectRow,selectAllRowsLabel:A.admin.base.listing.table.selectAllRows,sortModel:{sortBy:E.sortBy,sortType:E.sortType},maxVisibleRowActions:c,renderPreheader:function(){return Z}}),!Y&&(0,y.jsx)(jg,{title:E.searchTerm?A.admin.base.listing.search.noSearchResultTitle:A.admin.base.listing.noDataTitle,text:E.searchTerm&&A.admin.base.listing.search.noSearchResultText,children:E.searchTerm&&(0,y.jsx)(i.Button,{label:A.admin.base.listing.search.clearButtonLabel,color:i.ButtonColor.Primary,size:i.ButtonSize.L,onClick:function(){C(""),I((function(e){return QA(QA({},e),{},{searchTerm:""})}))}})}),B.totalCount>E.pageSize&&(0,y.jsx)("div",{className:UA.pagination,children:(0,y.jsx)("div",{className:UA.paginationWrapper,children:(0,y.jsx)(i.Pagination,{selectedPage:E.currentPage,totalPages:F,onPageChange:function(e){var t;I((function(t){return QA(QA({},t),{},{currentPage:e})})),null===(t=_.current)||void 0===t||t.scrollIntoView()}})})}),j&&(0,y.jsx)(Sf,QA({},j))]})})})},JA=s(6443),$A={};$A.styleTagTransform=xn(),$A.setAttributes=An(),$A.insert=gn().bind(null,"head"),$A.domAPI=fn(),$A.insertStyleElement=bn();dn()(JA.Z,$A);const ev=JA.Z&&JA.Z.locals?JA.Z.locals:void 0;function tv(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 nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rv=function(e){var t=e.link,n=e.label,a=e.level,s=(0,r.useRef)(null),l=f((0,r.useState)(""),2),c=l[0],u=l[1],d=f((0,r.useState)(!1),2),p=d[0],m=d[1],g=Ru(),h=g.isFocusVisible,A=g.focusProps;(0,r.useEffect)((function(){u(p&&n?n:"")}),[n,p]),Qn({ref:s,onResize:function(){s.current&&m(s.current.offsetHeight<s.current.scrollHeight)}});var v=Qt()(ev.navLink,0===a&&ev.main,1===a&&ev.submenu1,2===a&&ev.submenu2,h&&ev.focused);return(0,y.jsx)(i.Tooltip,{tooltipText:c,placement:i.TooltipPlacement.TopStart,children:(0,y.jsx)(o.NavLink,nv(nv({to:t,className:function(e){var t=e.isActive;return"".concat(v," ").concat(t?ev.active:void 0)},end:!0},A),{},{children:(0,y.jsx)("span",{ref:s,className:ev.label,children:(0,y.jsx)("span",{className:ev.labelContent,children:n})})}))})},ov=s(3775),iv={};iv.styleTagTransform=xn(),iv.setAttributes=An(),iv.insert=gn().bind(null,"head"),iv.domAPI=fn(),iv.insertStyleElement=bn();dn()(ov.Z,iv);const av=ov.Z&&ov.Z.locals?ov.Z.locals:void 0;var sv=function(e){var t=e.level,n=e.children;return 0===t?(0,y.jsx)(i.Paper,{className:av.paper,children:(0,y.jsx)("div",{className:av.main,children:n})}):(0,y.jsx)("div",{className:1===t?av.submenu1:av.submenu2,children:n})};sv.displayName="SecondaryMenuWrapper";var lv=s(4694),cv={};cv.styleTagTransform=xn(),cv.setAttributes=An(),cv.insert=gn().bind(null,"head"),cv.domAPI=fn(),cv.insertStyleElement=bn();dn()(lv.Z,cv);const uv=lv.Z&&lv.Z.locals?lv.Z.locals:void 0;var dv=function(e){var t=e.label,n=e.level,r=Qt()(uv.headline,0===n&&uv.main,1===n&&uv.submenu1,2===n&&uv.submenu2);return(0,y.jsx)("div",{className:r,children:(0,y.jsx)(i.OptionalTooltip,{text:t||"",placement:i.TooltipPlacement.TopStart,customRenderText:function(e){return(0,y.jsx)("span",{ref:e,className:uv.label,children:t})}})})};dv.displayName="SecondaryMenuHeadline";var pv=s(9949),fv={};fv.styleTagTransform=xn(),fv.setAttributes=An(),fv.insert=gn().bind(null,"head"),fv.domAPI=fn(),fv.insertStyleElement=bn();dn()(pv.Z,fv);const mv=pv.Z&&pv.Z.locals?pv.Z.locals:void 0;var gv=function e(t){var n=t.level,i=f((0,r.useState)(),2),a=i[0],s=i[1],l=bA().navigation,c=(0,o.useParams)(),u=Z(U());(0,r.useLayoutEffect)((function(){s(l[n])}),[l,n]);var d=function(e){return H(V(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,y.jsx)(e,{level:i}):null};return a?(0,y.jsx)(sv,{level:n,children:(0,y.jsxs)("ul",{className:mv.secondaryMenu,children:[(0,y.jsx)("li",{children:(0,y.jsx)(dv,{label:a.headline,level:n})}),a.items.map((function(e){var t=d((0,o.generatePath)(e.path,c));return(0,y.jsxs)("li",{"data-testid":"vertical-menu-item",children:[(0,y.jsx)(rv,{link:t,label:e.label,level:n}),(0,y.jsx)(p,{parentPath:t})]},t)}))]})}):null},hv=s(642),Av={};Av.styleTagTransform=xn(),Av.setAttributes=An(),Av.insert=gn().bind(null,"head"),Av.domAPI=fn(),Av.insertStyleElement=bn();dn()(hv.Z,Av);const vv=hv.Z&&hv.Z.locals?hv.Z.locals:void 0;var bv=function(){var e="vertical-menu-wrapper",t=f((0,r.useState)(!1),2),n=t[0],o=t[1],i=f((0,r.useState)(document.getElementById(e)),1)[0],a=bA().navigation;(0,r.useEffect)((function(){o(a.length>1||a.some((function(e){return e.items.length>1})))}),[a]);var s=Qt()(vv.templateWrapper,n&&vv.templateWrapperWithMenu);return i?(0,y.jsx)(zg,{}):(0,y.jsxs)("div",{className:s,children:[(0,y.jsx)("div",{id:e,className:vv.menu,"data-testid":"side-navigation-vertical-menu",children:(0,y.jsx)(gv,{level:0})}),(0,y.jsx)("div",{className:vv.contentWrapperFlexible,children:(0,y.jsx)(zg,{})})]})},Cv=function(){var e=(0,r.useContext)(Hf).navigation,t=bA(),n=t.push,o=t.pop,i=U();return(0,r.useEffect)((function(){return e.items.length&&n(e,i),o}),[e,i,n,o]),(0,y.jsx)(Gp,{children:(0,y.jsx)(bv,{})})},xv=s(4166),yv={};yv.styleTagTransform=xn(),yv.setAttributes=An(),yv.insert=gn().bind(null,"head"),yv.domAPI=fn(),yv.insertStyleElement=bn();dn()(xv.Z,yv);const wv=xv.Z&&xv.Z.locals?xv.Z.locals:void 0;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 Ov(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){a(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 Sv=function(e){return e.reduce((function(e,t){return Object.assign(e,t),e}),{})},jv="DataType",Tv="DatabaseColumn",Dv="Visible",Bv=function(e){var t=e.name,n=e.subForms,o=e.onChange,s=e.onCancel,l=e.addingField,c=O().executeCommand,d=x().localization,p=f((0,r.useState)([]),2),m=p[0],g=p[1],A=f((0,r.useState)(!1),2),v=A[0],b=A[1];(0,r.useEffect)((function(){S(n)}),[n]);var C=function(){var e=u(h().mark((function e(r,i){var s,l,u;return h().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 s=Ov({},i.values),i.changedField.name!==jv&&i.changedField.name!==Tv||(delete s.DefaultValue,delete s.Size,delete s.Precision,g([])),i.changedField.name===Tv&&(delete s.Name,delete s.DataType,delete s.Required,delete s.Size,delete s.Precision,g([])),i.changedField.name!==Dv||s.Visible||g(n.filter((function(e){return"DatabaseConfigurationModel"!==e.id}))),l=i.changedField.name===Dv&&s.Visible&&m.length,u={name:t,subForms:Sv((l?[].concat(I(n),I(m)):n).map((function(e){return a({},e.id,e.id===r?Ov({},s):Sv(e.components.map((function(e){return a({},e.name,e.value)}))))})))},e.next=11,c(Lv.GetFormFieldMetadata,u);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),w=function(){var e=u(h().mark((function e(){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Sv(n.map((function(e){return a({},e.id,Sv(e.components.map((function(e){return a({},e.name,e.value)}))))}))),!l){e.next=6;break}return e.next=4,c(Lv.CreateField,{subForms:r});case 4:e.next=8;break;case 6:return e.next=8,c(Lv.SaveField,{name:t,subForms:r});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(e){return"ValidationSettingsModel"===e.id?wv.validationSectionFormContainer:wv.formContainer},S=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,y.jsxs)(i.Box,{children:[n.map((function(e,t){return(0,y.jsxs)(i.Box,{children:[(0,y.jsx)(i.Box,{className:t>0?wv.headline:wv.firstHeadline,children:e.title}),(0,y.jsx)(i.Box,{className:_(e),children:(0,y.jsx)(Kd,{name:e.id,items:e.components,timeStamp:e.timeStamp,onChange:function(t){return C(e.id,t)}})})]},e.id)})),(0,y.jsxs)(i.Box,{className:wv.footer,children:[(0,y.jsx)(i.Button,{type:i.ButtonType.Button,color:i.ButtonColor.Secondary,size:i.ButtonSize.M,label:d.admin.base.fieldEditor.cancel,disabled:v,onClick:s}),(0,y.jsx)(i.Button,{color:i.ButtonColor.Primary,type:i.ButtonType.Submit,label:d.admin.base.fieldEditor.save,onClick:w,disabled:v,"data-testid":"submit-form-button"})]})]})},kv=s(2949),Pv={};Pv.styleTagTransform=xn(),Pv.setAttributes=An(),Pv.insert=gn().bind(null,"head"),Pv.domAPI=fn(),Pv.insertStyleElement=bn();dn()(kv.Z,Pv);const Ev=kv.Z&&kv.Z.locals?kv.Z.locals:void 0;var Iv=function(e){var t=e.headline,n=e.fieldData,r=x().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,y.jsxs)("div",{className:Ev.main,children:[(0,y.jsx)("span",{"data-testid":"field-name",children:t}),n&&(0,y.jsxs)("div",{className:Ev.right,children:[(0,y.jsx)("span",{className:Ev.eyeIcon,children:(0,y.jsx)(i.Tooltip,{tooltipText:a,children:(0,y.jsx)(i.Icon,{name:o})})}),n.dataType&&(0,y.jsx)(i.Tag,{label:n.dataType,background:{color:n.color?i.Colors[n.color]:i.Colors.BackgroundTagDefault}}),(0,y.jsx)("div",{className:Ev.requiredSpacer,children:n.required&&(0,y.jsx)(i.SimpleStatusDefault,{content:{label:r.admin.base.fieldEditor.fieldRequired,iconName:"xp-small-dot-centered"},iconColor:i.Colors.WarningIcon})})]})]})};function Mv(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 Nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mv(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lv={CreateField:"CreateField",GetFields:"GetFields",GetFormFieldMetadata:"GetFormFieldMetadata",GetEmptyFormFieldMetadata:"GetEmptyFormFieldMetadata",GetEmptyFormCategoryMetadata:"GetEmptyFormCategoryMetadata",MoveField:"MoveField",SaveField:"SaveField",DeleteField:"DeleteField"},Rv=function(e){var t=e.caption,n=e.supportsCategory,o=Fd(),a=o.getDataChanged,s=o.setDataChanged,l=o.getNewId,c=(0,r.useRef)(l()),d=f((0,r.useState)(null),2),p=d[0],m=d[1],g=f((0,r.useState)([]),2),A=g[0],v=g[1],b=f((0,r.useState)([]),2),C=b[0],w=b[1],_=x().localization,S=f((0,r.useState)({showDialog:!1,texts:{headline:_.admin.base.promptDialog.title,confirmLabel:_.admin.base.promptDialog.confirm,message:_.admin.base.promptDialog.message},onCancellation:function(){T(Nv(Nv({},j),{},{showDialog:!1}))},onConfirmation:function(){}}),2),j=S[0],T=S[1],D=f((0,r.useState)(!1),2),B=D[0],k=D[1],P=f((0,r.useState)(!1),2),E=P[0],M=P[1],N=(0,r.useRef)(null),L=_.admin.base.fieldEditor.newField,R=_.admin.base.fieldEditor.newCategory;(0,r.useEffect)((function(){var e=c.current;return function(){s(e,!1)}}),[s]);var z=O().executeCommand,F=tf(Lv.GetFields,{executeOnMount:!0,after:function(e){return e&&v(e.fields)}}).execute;tf(Lv.SaveField,{after:function(e){if(e)if(e.isValid&&null!==p){var t=I(A);t[p]=e.fieldData,v(t),k(!1),M(!1),m(null),s(c.current,!1)}else w(e.subForms)}});var W=tf(Lv.GetFormFieldMetadata,{after:function(e){e&&w(e)}}).execute,H=tf(Lv.GetEmptyFormFieldMetadata,{after:function(e){var t;e&&(k(!0),m(null),s(c.current,!0),w(e),null===(t=N.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}))}}).execute,V=tf(Lv.GetEmptyFormCategoryMetadata,{after:function(e){var t;e&&(M(!0),m(null),s(c.current,!0),w(e),null===(t=N.current)||void 0===t||t.scrollIntoView({behavior:"smooth"}))}}).execute;tf(Lv.CreateField,{after:function(e){e&&(e.isValid?(F(),s(c.current,!1),k(!1),M(!1)):w(e.subForms))}});var Y=function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(c.current)){e.next=5;break}if(B||E){e.next=4;break}return e.next=4,H();case 4:return e.abrupt("return");case 5:T(Nv(Nv({},j),{},{showDialog:!0,onConfirmation:function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B||E){e.next=3;break}return e.next=3,H();case 3:T(Nv(Nv({},j),{},{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=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(c.current)){e.next=5;break}if(B||E){e.next=4;break}return e.next=4,V();case 4:return e.abrupt("return");case 5:T(Nv(Nv({},j),{},{showDialog:!0,onConfirmation:function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B||E){e.next=3;break}return e.next=3,V();case 3:T(Nv(Nv({},j),{},{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(Nv(Nv({},j),{},{showDialog:!0,onConfirmation:function(){G(),T(Nv(Nv({},j),{},{showDialog:!1}))}})):G()},G=function(){m(null),k(!1),M(!1),s(c.current,!1)},q=function(){var e=u(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm(_.admin.base.fieldEditor.deleteConfirmation)){e.next=10;break}return e.next=4,z(Lv.DeleteField,{deletedFieldName:t});case 4:return e.next=6,F();case 6:k(!1),M(!1),s(c.current,!1),m(null);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Q=function(){var e=u(h().mark((function e(t){return h().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(Nv(Nv({},j),{},{showDialog:!0,onConfirmation:function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:X(t),T(Nv(Nv({},j),{},{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=u(h().mark((function e(t){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=p===t,!A||n){e.next=4;break}return e.next=4,W({name:A[t].name,subForms:{}});case 4:G(),m(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!==p){m(p<e&&p<t||p>e&&p>t?p:e===p?t<p?p-1:p+1:e>p?p-1:p+1)}},J=function(){var e=u(h().mark((function e(t){var n,r,o,i,a;return h().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=$(A,o,i),K(i,o),e.next=8,z(Lv.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=I(e),o=f(r.splice(t,1),1)[0];return r.splice(n,0,o),v(r),r},ee=function(e,t){return null!==(null==t?void 0:t.dataType)?e:e+" ("+_.admin.base.fieldEditor.categoryIndicator+")"},te=function(e,t){return[{content:(0,y.jsx)(Iv,{headline:ee(e,t),fieldData:t}),align:i.BarItemHeaderColumnAlign.Left}]},ne=function(e){s(c.current,!0),w(C.map((function(t){return t.id===e.formName?Nv(Nv({},t),{},{components:t.components.map((function(t){return t.name===e.fieldName?Nv(Nv({},t),{},{value:e.value}):t}))}):t})))};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(ym,{children:(0,y.jsx)(i.Row,{children:(0,y.jsxs)(i.Column,{cols:i.Cols.Col12,colsLg:i.Cols.Col8,colsMd:i.Cols.Col10,colsSm:i.Cols.Col12,children:[(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:t}),(0,y.jsx)(i.StickyHeader,{children:(0,y.jsxs)(i.Row,{children:[(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,y.jsx)(i.Button,{label:_.admin.base.fieldEditor.newFieldButtonLabel,onClick:Y,color:i.ButtonColor.Primary,disabled:B||E})}),n&&(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.XL,spacingLeft:i.Spacing.L,children:(0,y.jsx)(i.Button,{label:_.admin.base.fieldEditor.newCategoryButtonLabel,onClick:Z,color:i.ButtonColor.Secondary,disabled:B||E})})]})}),(0,y.jsxs)(i.Box,{spacingBottom:i.Spacing.L,children:[(!!A.length||B||E)&&(0,y.jsxs)(i.BarItemGroup,{onDragEnd:J,droppableId:"droppableId",children:[A.map((function(e,t){return(0,y.jsx)(i.BarItemDraggable,{onHeaderClick:function(){return Q(t)},expanded:p===t,draggableId:e.name,index:t,leadingButtons:[{icon:"xp-bin",label:_.admin.base.fieldEditor.deleteField,tooltip:e.deletable?"":_.admin.base.fieldEditor.fundamentalField,disabled:!e.deletable,destructive:!0,onClick:function(){return q(e.name)}}],headerColumns:te(e.name,e),ref:N,children:(0,y.jsx)(Bv,{name:e.name,subForms:C,onChange:ne,onCancel:U,addingField:B||E})},e.name)})),(B||E)&&(0,y.jsx)(i.BarItem,{onHeaderClick:function(){return U()},expanded:!0,leadingButtons:[],headerColumns:te(E?R:L),ref:N,children:(0,y.jsx)(Bv,{name:E?R:L,subForms:C,onChange:ne,onCancel:U,addingField:!0})})]}),!A.length&&!B&&!E&&(0,y.jsx)(jg,{title:_.admin.base.fieldEditor.fieldsCollectionEmpty})]})]})})}),(0,y.jsx)(og,Nv({},j))]})};function zv(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 Fv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zv(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wv=function(e){var t=e.children,n=f((0,r.useState)([]),2),o=n[0],i=n[1],a=f((0,r.useState)(null),2),s=a[0],l=a[1],c=(0,r.useCallback)((function(e,t,n){i((function(r){return[].concat(I(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=I(n);return r[e]=Fv(Fv({},r[e]),{},{text:t}),r}))}),[]);return(0,y.jsx)(Zf.Provider,{value:{breadcrumbs:o,push:c,pop:u,refreshItem:d,statusNode:s,setStatusNode:l},children:t})},Hv=s(2939),Vv={};Vv.styleTagTransform=xn(),Vv.setAttributes=An(),Vv.insert=gn().bind(null,"head"),Vv.domAPI=fn(),Vv.insertStyleElement=bn();dn()(Hv.Z,Vv);const Yv=Hv.Z&&Hv.Z.locals?Hv.Z.locals:void 0;var Zv=function(){var e=(0,r.useContext)(Hf),t=e.routes.length>1,n=Up().setIsCustomRightSidebarDisplayed;return(0,r.useEffect)((function(){return n(!0),function(){n(!1)}})),(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(ym,{sidebarContent:(0,y.jsxs)(y.Fragment,{children:[t&&(0,y.jsx)("div",{"data-testid":"navigation-view-menu",className:Yv.viewMenuWrapper,children:(0,y.jsx)(i.ViewMenu,{children:e.navigation.items.map((function(e){var t;return(0,y.jsx)(kg,{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,y.jsx)("div",{id:"sideMenuPlaceholder"})]}),children:(0,y.jsx)(zg,{})})})},Uv=s(2488),Gv={};Gv.styleTagTransform=xn(),Gv.setAttributes=An(),Gv.insert=gn().bind(null,"head"),Gv.domAPI=fn(),Gv.insertStyleElement=bn();dn()(Uv.Z,Gv);const qv=Uv.Z&&Uv.Z.locals?Uv.Z.locals:void 0;function Qv(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 Xv(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 Xv(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 Xv(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 Kv(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 Jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kv(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $v=function(e){var t,n=e.root,a=U(),s=(0,o.useMatch)("".concat(a,"/:nodeId")),l=f((0,r.useState)([]),2),c=l[0],u=l[1],d=f((0,r.useState)(!1),2),p=d[0],m=d[1],g=(0,r.useRef)(null),h=function(e,t){u(e?[].concat(I(c),[t]):c.filter((function(e){return e!==t})))};(0,r.useEffect)((function(){for(var e,t=tb(null!==(e=null==s?void 0:s.params.nodeId)&&void 0!==e?e:"",n,[]),r=I(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 Qn({ref:g,onResize:function(){g.current&&m(g.current.offsetHeight<g.current.scrollHeight)}}),(0,y.jsxs)(i.Row,{spacing:i.Spacing.XL,wrap:i.RowWrap.NoWrap,className:qv.templateWrapper,children:[(0,y.jsx)(i.Column,{width:38,children:(0,y.jsx)(i.Paper,{className:qv.treeWrapper,children:(0,y.jsx)(i.Box,{spacing:i.Spacing.L,className:qv.tree,children:(0,y.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)(eb,Jv(Jv({},e),{},{level:1,key:e.id,onNodeToggle:h,expandedIds:c}))}))})})})}),(0,y.jsx)(i.Column,{children:(0,y.jsxs)("div",{className:Qt()(qv.scrollable,p&&qv.overflowing),ref:g,children:[void 0===(null==s?void 0:s.params.nodeId)&&(0,y.jsx)(o.Navigate,{to:n.children[0].id.toString(),replace:!0}),(0,y.jsx)(zg,{})]})})]})},eb=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,y.jsx)(i.TreeNode,{isDraggable:!1,level:c,nodeIdentifier:a.toString(),isToggleable:0!==l.length,isSelectable:!0,renderNode:function(e){return(0,y.jsxs)(y.Fragment,{children:[s&&(0,y.jsx)(i.TreeNodeLeadingIcon,{isSelected:e,children:(0,y.jsx)(i.Icon,{name:s})}),(0,y.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,Jv(Jv({},t),{},{level:c+1,key:t.id,onNodeToggle:u,expandedIds:d}))}))})};function tb(e,t,n){if(""===e)return[];if(t.id===e)return[e];var r,o=Qv(t.children);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=tb(e,i,n);if(a.length>0)return a.push(i.id),a}}catch(e){o.e(e)}finally{o.f()}return[]}var nb=function(){throw new Error("SettingContext is not used in the tree above")},rb=r.default.createContext({invokeOnSubmitHandler:nb,registerOnSubmitHandler:nb,registerClearSearchHandler:nb,searchFilter:"",setSearchFilter:nb,settingsCategoryNames:{}});function ob(){return(0,r.useContext)(rb)}rb.displayName="SettingsContext";var ib=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=f((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,y.jsx)(rb.Provider,{value:c,children:t})};ib.displayName="SettingsContext";var ab=s(7833),sb={};sb.styleTagTransform=xn(),sb.setAttributes=An(),sb.insert=gn().bind(null,"head"),sb.domAPI=fn(),sb.insertStyleElement=bn();dn()(ab.Z,sb);const lb=ab.Z&&ab.Z.locals?ab.Z.locals:void 0;var cb=function(){var e=(0,o.useNavigate)(),t=U(),n=(0,o.useMatch)("".concat(t,"/:param")),a=f((0,r.useState)(""),2),s=a[0],l=a[1],c=ob(),d=x().localization;c.registerClearSearchHandler((function(){return l("")}));var p=function(){var t=u(h().mark((function t(n){return h().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,y.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,y.jsxs)(i.Row,{children:[(0,y.jsx)("div",{className:lb.save,children:(0,y.jsx)(i.Button,{label:d.admin.base.settings.save,color:i.ButtonColor.Primary,onClick:c.invokeOnSubmitHandler,dataTestId:"settings-save-button"})}),(0,y.jsx)("div",{className:lb.filter,children:(0,y.jsx)(i.Input,{onKeyPress:p,value:s,onChange:function(e){return l(e.target.value)},placeholder:d.admin.base.settings.searchPlaceholder,dataTestId:"settings-search-input"})})]})})},ub=s(5847),db={};db.styleTagTransform=xn(),db.setAttributes=An(),db.insert=gn().bind(null,"head"),db.domAPI=fn(),db.insertStyleElement=bn();dn()(ub.Z,db);const pb=ub.Z&&ub.Z.locals?ub.Z.locals:void 0;function fb(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 mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fb(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gb=function(e){var t=x().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,y.jsx)(ym,{sidebarContent:(0,y.jsx)(y.Fragment,{}),children:(0,y.jsx)(ib,{categories:n,children:(0,y.jsxs)("div",{className:pb.templateWrapper,children:[(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.XL,children:t.admin.base.settings.settings}),(0,y.jsx)(i.Row,{spacingX:i.Spacing.L,spacingY:i.Spacing.XL,children:(0,y.jsx)(i.Column,{children:(0,y.jsx)(cb,{})})}),(0,y.jsx)(i.Box,{className:pb.treeWrapper,children:(0,y.jsx)($v,mb({},e))})]})})})};var hb=s(9217),Ab={};Ab.styleTagTransform=xn(),Ab.setAttributes=An(),Ab.insert=gn().bind(null,"head"),Ab.domAPI=fn(),Ab.insertStyleElement=bn();dn()(hb.Z,Ab);const vb=hb.Z&&hb.Z.locals?hb.Z.locals:void 0;function bb(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 Cb=function(e){var t=e.categoryId,n=e.categoryIdPath,o=e.displayName,s=f((0,r.useState)([]),2),l=s[0],c=s[1],u=ob();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?bb(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u.settingsCategoryNames);i[t]=o;var s=r.map((function(e){return i[e]}));c(s)}),[]),(0,y.jsx)("div",{className:vb.container,children:l.map((function(e,t){return(0,y.jsxs)("div",{className:vb.breadcrumbItem,children:[(0,y.jsx)("span",{className:vb.cell,children:e}),l.length-1!==t&&(0,y.jsx)("span",{className:vb.icon,children:(0,y.jsx)(i.Icon,{name:"xp-chevron-right"})})]},t)}))})},xb=function(e){var t=e.filter,n=e.clearSearchHandler,r=x().localization.admin.base.settings;return(0,y.jsx)(y.Fragment,{children:t&&(0,y.jsx)(jg,{title:r.noSettingsFoundTitle,text:r.noSettingsFoundText,children:(0,y.jsx)(i.Button,{label:r.clearSearchPhrase,color:i.ButtonColor.Primary,size:i.ButtonSize.L,onClick:n})})||(0,y.jsx)(jg,{title:r.noSettingsTitle,text:r.noSettingsText})})},yb=s(4379),wb={};wb.styleTagTransform=xn(),wb.setAttributes=An(),wb.insert=gn().bind(null,"head"),wb.domAPI=fn(),wb.insertStyleElement=bn();dn()(yb.Z,wb);const _b=yb.Z&&yb.Z.locals?yb.Z.locals:void 0;function Ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ob(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ob(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jb=function(e){var t=(0,o.useMatch)("settings/:categoryId"),n=f((0,r.useState)(e.categories),2),a=n[0],s=n[1],l=f((0,r.useState)(0),2),c=l[0],d=l[1],p=x().localization,m=ob(),g=(0,r.useRef)(null),A=a&&a.length>0,v=p.admin.base.settings,b=function(){var e=u(h().mark((function e(t,n){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.changedField.name,s(a.map((function(e){return e.categoryId===t?Sb(Sb({},e),{},{components:e.components.map((function(e){return e.name===r?Sb(Sb({},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)}}();tf("Filter",{executeOnMount:""!==m.searchFilter,data:m.searchFilter,before:function(){return"search"===(null==t?void 0:t.params.categoryId)},after:function(e){return s(null!=e?e:[])}},[m.searchFilter]);var C=tf("Save",{after:function(e){var t,n;e&&(s(null!==(t=e.categories)&&void 0!==t?t:[]),null===(n=g.current)||void 0===n||n.resetAllDataChanged())}}).execute,w=function(){var e=u(h().mark((function e(){var t;return h().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:m.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})),d(e)}}),[a]);var _=function(){m.setSearchFilter("")},O=function(e){return(0,y.jsx)(y.Fragment,{children:m.searchFilter&&(0,y.jsxs)(i.Box,{spacingBottom:i.Spacing.XL,children:[(0,y.jsx)(o.NavLink,{to:"../"+e.categoryParentId,onClick:_,className:_b.searchHeadline,replace:!0,children:(0,y.jsx)(i.Headline,{size:i.HeadlineSize.L,labelColor:i.Colors.Product,children:e.displayName})}),(0,y.jsx)(Cb,Sb({},e))]})||(0,y.jsx)(i.Headline,{size:i.HeadlineSize.L,spacingBottom:i.Spacing.XL,children:e.displayName})})};return m.registerOnSubmitHandler(w),a?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.L,children:(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,children:m.searchFilter&&"".concat(c," ")+(1!==c?v.settingsFound:v.settingFound)||e.title})}),(0,y.jsx)(i.Stack,{spacing:i.Spacing.XL,children:(0,y.jsx)(Wd,{ref:g,children:A&&(null==a?void 0:a.map((function(e){return(0,y.jsx)(i.Paper,{borderRadius:i.BorderRadius.RadiusL,elevation:i.PaperElevation.XS,children:(0,y.jsxs)(i.Box,{spacing:i.Spacing.XL,children:[O(e),(0,y.jsx)(Kd,{name:"Form_".concat(e.categoryId),items:e.components,onChange:function(t){return b(e.categoryId,t)},fieldCssClass:_b.formComponent})]})},e.categoryId)})))||(0,y.jsx)(xb,{filter:m.searchFilter,clearSearchHandler:_})})})]}):(0,y.jsx)(wg,{title:p.admin.base.pageLoader.loading})};function Tb(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 Db=function(e){var t=ob(),n=x().localization.admin.base.settings;return""===t.searchFilter?(0,y.jsx)(jg,{title:n.noSearchPhrase}):(0,y.jsx)(jb,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))},Bb=s(8822),kb={};kb.styleTagTransform=xn(),kb.setAttributes=An(),kb.insert=gn().bind(null,"head"),kb.domAPI=fn(),kb.insertStyleElement=bn();dn()(Bb.Z,kb);const Pb=Bb.Z&&Bb.Z.locals?Bb.Z.locals:void 0;var Eb="Change",Ib="Submit",Mb=function(e){var t=e.items,n=e.errorMessage,o=e.disabled,a=e.headline,s=e.submitLabel,l=f((0,r.useState)(!1),2),c=l[0],d=l[1],p=f((0,r.useState)(!1),2),m=p[0],g=p[1],A=f((0,r.useState)(t),2),v=A[0],b=A[1],C=document.getElementById("applicationHeader"),w=r.default.useRef(null),_=x().localization,O=Gf(),S=O.breadcrumbs,j=O.refreshItem,T=bA(),D=T.navigation,B=T.refreshItem,k=(0,r.useContext)(Hf),P=document.getElementById("sideMenuPlaceholder"),E=tf(Eb,{after:function(e){e&&b(e.items)}}).execute,I=function(){var e=u(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!1),e.prev=1,g(!0),e.next=5,N({data:t.values});case 5:return e.prev=5,g(!1),e.finish(5);case 8:case"end":return e.stop()}}),e,null,[[1,,5,8]])})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=u(h().mark((function e(t){return h().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,E({data:t.values});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){b(t)}),[t]);var N=tf(Ib,{after:function(e){var t,n;e&&(e.items&&b(e.items),e.status!==so.ValidationSuccess?d(!0):(null==w||null===(t=w.current)||void 0===t||t.resetDataChanged(),void 0!==e.objectDisplayName&&null!==e.objectDisplayName&&(n=e.objectDisplayName,j(Lp(S,(function(e){return e.isSignificant})),n),B(Lp(D,(function(e){return e.isSignificant})),n))))}}).execute,L=sg(),R=L.setOnConfirmation,z=L.setPromptEnabled;if(R((function(){return d(!1)})),(0,r.useEffect)((function(){z(c)}),[c,z]),n)return(0,y.jsx)("div",{children:n});if(!v)return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(jg,{title:_.admin.base.edit.noElementTitle,text:_.admin.base.edit.noElementText})});var F=k.routes.length>0;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:Pb.templateWrapper,children:(0,y.jsx)(i.Paper,{className:Pb.contentWrapper,children:(0,y.jsxs)(i.Row,{spacing:i.Spacing.XL,className:Pb.content,children:[(0,y.jsx)(i.Column,{className:Pb.sideColumn,colsMd:i.Cols.Col1,colsLg:i.Cols.Col2}),(0,y.jsx)(i.Column,{cols:i.Cols.Col12,colsMd:i.Cols.Col10,colsLg:i.Cols.Col8,children:0!==v.length&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.Headline,{size:i.HeadlineSize.L,spacingBottom:i.Spacing.L,children:a}),(0,y.jsx)(Kd,{ref:w,dataTestId:"edit-form",items:v,onSubmit:I,onChange:M,disabled:o})]})})]})})}),(0,y.jsx)(Tg,{container:C,children:(0,y.jsx)(i.Button,{type:i.ButtonType.Submit,label:s,color:i.ButtonColor.Primary,onClick:function(){var e;return null===(e=w.current)||void 0===e?void 0:e.submit()},dataTestId:"submit-form-button",inProgress:m})}),F&&(0,y.jsx)(Tg,{container:P,children:(0,y.jsx)(am,{})}),(0,y.jsx)(zg,{})]})},Nb=s(2746),Lb={};Lb.styleTagTransform=xn(),Lb.setAttributes=An(),Lb.insert=gn().bind(null,"head"),Lb.domAPI=fn(),Lb.insertStyleElement=bn();dn()(Nb.Z,Lb);const Rb=Nb.Z&&Nb.Z.locals?Nb.Z.locals:void 0;var zb="GetContent",Fb=function(){var e=(0,r.useRef)(null),t=f((0,r.useState)(""),2),n=t[0],o=t[1],a=tf(zb,{after:function(e){return o(e)}}).execute;return(0,r.useEffect)((function(){a()}),[a]),(0,r.useEffect)((function(){var t,r,o,i=null===(t=e.current)||void 0===t||null===(r=t.contentWindow)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.body;i&&n&&(i.innerHTML=n)}),[n]),(0,y.jsx)(i.Paper,{fullHeight:!0,children:(0,y.jsx)("iframe",{title:"email-preview",className:Rb.previewIframe,sandbox:"allow-same-origin",ref:e})})},Wb=s(9360),Hb={};Hb.styleTagTransform=xn(),Hb.setAttributes=An(),Hb.insert=gn().bind(null,"head"),Hb.domAPI=fn(),Hb.insertStyleElement=bn();dn()(Wb.Z,Hb);const Vb=Wb.Z&&Wb.Z.locals?Wb.Z.locals:void 0;var Yb=["selectedOptions","options","disabled"];function Zb(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 Ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zb(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gb=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:[]},qb=function(e){var t=e.selectedOptions,n=e.options,o=e.disabled,a=m(e,Yb),s=(0,r.useCallback)((function(e){var t=n.map((function(t){return Ub(Ub({},t),{},{selected:e.some((function(e){return e.value===t.codeName}))})}));a.onChange(t)}),[n,a]);return(0,y.jsx)("div",{className:Vb.container,children:(0,y.jsx)(i.FormItemWrapper,{disabled:o,children:(0,y.jsx)(Ku,{isDisabled:o,isMulti:!0,value:Gb(t),options:Gb(n),placeholder:"",onChange:s,onClear:function(){var e=n.map((function(e){return Ub(Ub({},e),{},{selected:!e.removable})}));a.onChange(e)},dataTestId:"permission-item-selector"})})})};qb.displayName="PermissionItemSelector";var Qb=s(2759),Xb={};Xb.styleTagTransform=xn(),Xb.setAttributes=An(),Xb.insert=gn().bind(null,"head"),Xb.domAPI=fn(),Xb.insertStyleElement=bn();dn()(Qb.Z,Xb);const Kb=Qb.Z&&Qb.Z.locals?Qb.Z.locals:void 0;var Jb=["index","applicationCategories","selectedApplication","selectedData","disabled"];function $b(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 eC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$b(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tC=r.default.forwardRef((function(e,t){var n=e.index,r=e.applicationCategories,o=e.selectedApplication,a=e.selectedData,s=e.disabled,l=m(e,Jb),c=x().localization.admin.base.permissions;return(0,y.jsxs)(i.Paper,eC(eC({ref:t,borderRadius:i.BorderRadius.RadiusL,elevation:i.PaperElevation.XS,className:Kb.permissionSet},l),{},{children:[(0,y.jsxs)(i.Row,{className:Kb.contentContainer,spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.Wrap,children:[(0,y.jsx)(i.Column,{className:Kb.contentItem,children:(0,y.jsxs)(i.Row,{spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.NoWrap,children:[(0,y.jsx)(i.Column,{className:Kb.contentItem,children:(0,y.jsx)("div",{className:Kb.plainTextParameter,children:c.permissionSetLabel1})}),(0,y.jsx)(i.Column,{className:Kb.contentItem,children:(0,y.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,y.jsxs)("div",{children:[(0,y.jsx)(i.ActionMenuHeadline,{label:e.name}),e.applications.map((function(e,t){return(0,y.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,y.jsx)(i.Icon,{name:e.icon}):(0,y.jsx)("div",{}),type:void 0!==e.icon?"icon":"empty"}},t)})),r.length-1!==t&&(0,y.jsx)(i.ActionMenuDivider,{})]},t)}))})})]})}),(0,y.jsx)(i.Column,{className:Kb.permissionSelector,children:(0,y.jsxs)(i.Row,{spacingX:i.Spacing.M,spacingY:i.Spacing.S,wrap:i.RowWrap.NoWrap,children:[(0,y.jsx)(i.Column,{className:Kb.contentItem,children:(0,y.jsx)("div",{className:Kb.plainTextParameter,children:c.permissionSetLabel2})}),(0,y.jsx)(i.Column,{className:Kb.permissionSelector,children:(0,y.jsx)("div",{children:(0,y.jsx)(qb,{options:a,selectedOptions:a.filter((function(e){return e.selected})),onChange:function(e){l.onChange(n,{application:o,permissions:e})},disabled:s})})})]})})]}),(0,y.jsx)(i.Box,{spacingLeft:i.Spacing.XXXL,spacingTop:i.Spacing.S,children:(0,y.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"})})]}))}));tC.displayName="PermissionSet";var nC="GetPermissions",rC="SavePermissions",oC="GetPermissionsForApplication",iC=function(e){var t=e.caption,n=e.disabled,o=x().localization.admin.base.permissions,a=Fd(),s=a.getDataChanged,l=a.setDataChanged,c=a.getNewId,d=(0,r.useRef)(c()),p=f((0,r.useState)([]),2),m=p[0],g=p[1],A=f((0,r.useState)([]),2),v=A[0],b=A[1],C=f((0,r.useState)(!1),2),w=C[0],_=C[1],O=f((0,r.useState)(!1),2),S=O[0],j=O[1],T=(0,r.useRef)(null),D=function(){var e;return null===(e=T.current)||void 0===e?void 0:e.scrollIntoView({behavior:"smooth"})},B=function(e,t){m.forEach((function(n){n.applications.map((function(n){return n.identifier===e?n.disabled=t:n}))})),g(m)};(0,r.useEffect)((function(){w&&D()}),[w]),tf(nC,{executeOnMount:!0,after:function(e){e&&(l(d.current,!1),j(!1),g(function(e,t){return e.forEach((function(e){e.applications.map((function(e){return e.disabled=t.some((function(t){return t.application===e.identifier}))}))})),e}(e.categories,e.selectedApplications)),b(e.selectedApplications))}});var k=tf(rC,{executeOnMount:!1,after:function(){l(d.current,!1),j(!1),_(!1)}}).execute,P=tf(oC,{after:function(e){e&&b(function(e,t){var n=e.findIndex((function(e){return e.application===t.application}));return e[n].permissions=t.permissions,e}(I(v),e))}}),E=P.execute,M=function(){var e=u(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j(!0),k({permissions:I(v).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=u(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=I(v)).some((function(e){return""===e.application}))){e.next=4;break}return D(),e.abrupt("return");case 4:t.push({application:"",permissions:[]}),b(t),_(!0);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=u(h().mark((function e(t,n){var r,o,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=v[t].application,o=n.application,l(d.current,!0),""===r&&_(!1),r!==o&&(B(r,!1),E(o)),B(o,!0),(i=I(v))[t]=n,b(i);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),R=function(e,t){var n=I(v);""===t&&_(!1),l(d.current,!0),B(n[e].application,!1),n=n.filter((function(t,n){return n!==e})),b(n)};return(0,y.jsx)(zg,{children:(0,y.jsx)(ym,{children:(0,y.jsxs)(i.Box,{spacingBottom:i.Spacing.L,children:[(0,y.jsx)(i.Headline,{size:i.HeadlineSize.M,spacingBottom:i.Spacing.M,children:t}),(0,y.jsx)(i.StickyHeader,{children:(0,y.jsxs)(i.Row,{children:[(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.XL,children:(0,y.jsx)(i.Button,{label:o.save,onClick:M,disabled:n||!s(d.current),inProgress:S,color:i.ButtonColor.Primary,title:s(d.current)?"":o.noChangesToSave})}),(0,y.jsx)(i.Box,{spacingBottom:i.Spacing.XL,spacingLeft:i.Spacing.L,children:(0,y.jsx)(i.Button,{label:o.newPermissionSetButtonLabel,onClick:N,disabled:n,color:i.ButtonColor.Secondary,icon:"xp-plus"})})]})}),v.length>0&&(0,y.jsx)(i.Stack,{spacing:i.Spacing.M,children:v.map((function(e,t){return(0,y.jsx)(tC,{ref:T,index:t,applicationCategories:m,selectedApplication:e.application,selectedData:e.permissions,disabled:n,onChange:L,onDelete:R},t)}))}),0===v.length&&(0,y.jsx)(jg,{title:o.noDataTitle})]})})})}})(),l})())}}}));