@reltio/hierarchy 1.4.133 → 1.4.134
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/888.bundle.js +1 -0
- package/bundle.js +1 -1
- package/bundle.js.LICENSE.txt +3 -7
- package/package.json +1 -1
package/888.bundle.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_reltio_hierarchy=self.webpackChunk_reltio_hierarchy||[]).push([[888],{1888:(e,t,o)=>{o.r(t),o.d(t,{default:()=>ft});var i,r=o(9458),s=o(4283),n=o(7577),a=o(2992),l=o(2330),h=o(1651),p=o(2846);!function(e){e.InPlace="InPlace",e.Popover="Popover"}(i||(i={}));const c=i;var d,u=o(9182),_=o(4398),g=o(9981);!function(e){e.Off="Off",e.On="On"}(d||(d={}));const v=d;var m=o(8238),f=o(171),b=o(1374);(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");var w,y=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};let x=w=class extends s.Z{constructor(){super(...arguments),this.maxLines=1/0,this.emptyIndicatorMode="Off"}onBeforeRendering(){this.style.setProperty("--_ui5_text_max_lines",`${this.maxLines}`)}get hasText(){return(0,g.Z)(this.text)}get _renderEmptyIndicator(){return!this.hasText&&this.emptyIndicatorMode===v.On}get _emptyIndicatorAriaLabel(){return w.i18nBundle.getText(u.UDO)}get _emptyIndicatorSymbol(){return w.i18nBundle.getText(u.Cv3)}};y([(0,a.Z)({type:Number})],x.prototype,"maxLines",void 0),y([(0,a.Z)()],x.prototype,"emptyIndicatorMode",void 0),y([(0,_.Z)({type:Node,default:!0})],x.prototype,"text",void 0),y([(0,l.Z)("@ui5/webcomponents")],x,"i18nBundle",void 0),x=w=y([(0,n.Z)({tag:"ui5-text",renderer:h.Z,template:function(){return(0,r.tZ)(r.HY,{children:(0,r.tZ)("span",{children:this._renderEmptyIndicator?(0,r.BX)(r.HY,{children:[(0,r.tZ)("span",{className:"empty-indicator","aria-hidden":"true",children:this._emptyIndicatorSymbol}),(0,r.tZ)("span",{className:"empty-indicator-aria-label",children:this._emptyIndicatorAriaLabel})]}):(0,r.tZ)("slot",{})})})},styles:':host{max-width:100%;font-size:var(--sapFontSize);font-family:var(--sapFontFamily);color:var(--sapTextColor);line-height:normal;cursor:text;overflow:hidden}:host([max-lines="1"]){display:inline-block;text-overflow:ellipsis;white-space:nowrap}:host(:not([max-lines="1"])){display:-webkit-inline-box;-webkit-line-clamp:var(--_ui5_text_max_lines);line-clamp:var(--_ui5_text_max_lines);-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.empty-indicator-aria-label{position:absolute!important;clip:rect(1px,1px,1px,1px);user-select:none;left:0;top:0;font-size:0}\n'})],x),x.define();const R=x;var z,H=o(6655),Z=o(4811),T=o(2810),M=o(9814),k=o(3260);!function(e){e.Default="Default",e.Subtle="Subtle",e.Emphasized="Emphasized"}(z||(z={}));const D=z;var P=o(5368);(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");var B,O=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};let C=B=class extends s.Z{constructor(){super(),this.disabled=!1,this.design="Default",this.interactiveAreaSize="Normal",this.wrappingType="Normal",this.accessibleRole="Link",this.accessibilityAttributes={},this._dummyAnchor=document.createElement("a")}onEnterDOM(){(0,p.nI)()&&this.setAttribute("desktop","")}onBeforeRendering(){const e="_blank"===this.target&&this.href&&this._isCrossOrigin(this.href);this._rel=e?"noreferrer noopener":void 0}_isCrossOrigin(e){return this._dummyAnchor.href=e,!(this._dummyAnchor.hostname===(0,k.Td)()&&this._dummyAnchor.port===(0,k.mJ)()&&this._dummyAnchor.protocol===(0,k.SJ)())}get effectiveTabIndex(){return this.forcedTabIndex?Number.parseInt(this.forcedTabIndex):this.disabled?-1:0}get ariaLabelText(){return(0,T.Hp)(this)}get hasLinkType(){return this.design!==D.Default}static typeTextMappings(){return{Subtle:u.S1I,Emphasized:u.x41}}get linkTypeText(){return B.i18nBundle.getText(B.typeTextMappings()[this.design])}get parsedRef(){return this.href&&this.href.length>0?this.href:void 0}get effectiveAccRole(){return(0,M.Z)(this.accessibleRole)}get ariaDescriptionText(){return""===this.accessibleDescription?void 0:this.accessibleDescription}get _hasPopup(){return this.accessibilityAttributes.hasPopup}_onclick(e){const{altKey:t,ctrlKey:o,metaKey:i,shiftKey:r}=e;e.stopImmediatePropagation(),this.fireDecoratorEvent("click",{altKey:t,ctrlKey:o,metaKey:i,shiftKey:r})||e.preventDefault()}_onkeydown(e){(0,Z.tH)(e)&&!this.href?(this._onclick(e),e.preventDefault()):(0,Z.Wd)(e)&&e.preventDefault()}_onkeyup(e){if((0,Z.Wd)(e)&&(this._onclick(e),this.href&&!e.defaultPrevented)){const e=new MouseEvent("click");e.stopImmediatePropagation(),this.getDomRef().dispatchEvent(e)}}};O([(0,a.Z)({type:Boolean})],C.prototype,"disabled",void 0),O([(0,a.Z)()],C.prototype,"tooltip",void 0),O([(0,a.Z)()],C.prototype,"href",void 0),O([(0,a.Z)()],C.prototype,"target",void 0),O([(0,a.Z)()],C.prototype,"design",void 0),O([(0,a.Z)()],C.prototype,"interactiveAreaSize",void 0),O([(0,a.Z)()],C.prototype,"wrappingType",void 0),O([(0,a.Z)()],C.prototype,"accessibleName",void 0),O([(0,a.Z)()],C.prototype,"accessibleNameRef",void 0),O([(0,a.Z)()],C.prototype,"accessibleRole",void 0),O([(0,a.Z)({type:Object})],C.prototype,"accessibilityAttributes",void 0),O([(0,a.Z)()],C.prototype,"accessibleDescription",void 0),O([(0,a.Z)()],C.prototype,"icon",void 0),O([(0,a.Z)()],C.prototype,"endIcon",void 0),O([(0,a.Z)({noAttribute:!0})],C.prototype,"_rel",void 0),O([(0,a.Z)({noAttribute:!0})],C.prototype,"forcedTabIndex",void 0),O([(0,l.Z)("@ui5/webcomponents")],C,"i18nBundle",void 0),C=B=O([(0,n.Z)({tag:"ui5-link",languageAware:!0,renderer:h.Z,template:function(){return(0,r.BX)("a",{part:"root",class:"ui5-link-root",role:this.effectiveAccRole,href:this.parsedRef,target:this.target,rel:this._rel,tabindex:this.effectiveTabIndex,title:this.tooltip,"aria-disabled":this.disabled,"aria-label":this.ariaLabelText,"aria-haspopup":this._hasPopup,"aria-expanded":this.accessibilityAttributes.expanded,"aria-current":this.accessibilityAttributes.current,"aria-description":this.ariaDescriptionText,onClick:this._onclick,onKeyDown:this._onkeydown,onKeyUp:this._onkeyup,children:[this.icon&&(0,r.tZ)(P.Z,{class:"ui5-link-icon",name:this.icon,mode:"Decorative",part:"icon"}),(0,r.tZ)("span",{class:"ui5-link-text",children:(0,r.tZ)("slot",{})}),this.hasLinkType&&(0,r.tZ)("span",{class:"ui5-hidden-text",children:this.linkTypeText}),this.endIcon&&(0,r.tZ)(P.Z,{class:"ui5-link-end-icon",name:this.endIcon,mode:"Decorative",part:"endIcon"})]})},styles:'.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-flex}:host{max-width:100%;color:var(--sapLinkColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);cursor:pointer;outline:none;text-decoration:var(--_ui5_link_text_decoration);text-shadow:var(--sapContent_TextShadow);white-space:normal;overflow-wrap:break-word}:host(:hover){color:var(--sapLink_Hover_Color);text-decoration:var(--_ui5_link_hover_text_decoration)}:host(:active){color:var(--sapLink_Active_Color);text-decoration:var(--_ui5_link_active_text_decoration)}:host([disabled]){pointer-events:none}:host([disabled]) .ui5-link-root{text-shadow:none;outline:none;cursor:default;pointer-events:none;opacity:var(--sapContent_DisabledOpacity)}:host([design="Emphasized"]) .ui5-link-root{font-family:var(--sapFontBoldFamily)}:host([design="Subtle"]){color:var(--sapLink_SubtleColor);text-decoration:var(--_ui5_link_subtle_text_decoration)}:host([design="Subtle"]:hover:not(:active)){color:var(--sapLink_SubtleColor);text-decoration:var(--_ui5_link_subtle_text_decoration_hover)}:host([wrapping-type="None"]){white-space:nowrap;overflow-wrap:normal}.ui5-link-root{max-width:100%;display:inline-block;position:relative;overflow:hidden;text-overflow:ellipsis;outline:none;white-space:inherit;overflow-wrap:inherit;text-decoration:inherit;color:inherit}:host([wrapping-type="None"][end-icon]) .ui5-link-root{display:inline-flex;align-items:end}:host .ui5-link-root{outline-offset:-.0625rem;border-radius:var(--_ui5_link_focus_border-radius)}.ui5-link-icon,.ui5-link-end-icon{color:inherit;flex-shrink:0}.ui5-link-icon{float:inline-start;margin-inline-end:.125rem}.ui5-link-end-icon{margin-inline-start:.125rem;vertical-align:bottom}.ui5-link-text{overflow:hidden;text-overflow:ellipsis}.ui5-link-root:focus-visible,:host([desktop]) .ui5-link-root:focus-within,:host([design="Subtle"]) .ui5-link-root:focus-visible,:host([design="Subtle"][desktop]) .ui5-link-root:focus-within{background-color:var(--_ui5_link_focus_background_color);outline:var(--_ui5_link_outline);border-radius:var(--_ui5_link_focus_border-radius);text-shadow:none;color:var(--_ui5_link_focus_color)}:host(:not([desktop])) .ui5-link-root:focus-visible,:host([desktop]:focus-within),:host([design="Subtle"][desktop]:focus-within){text-decoration:var(--_ui5_link_focus_text_decoration)}:host([desktop]:hover:not(:active):focus-within),:host([design="Subtle"][desktop]:hover:not(:active):focus-within){color:var(--_ui5_link_focused_hover_text_color);text-decoration:var(--_ui5_link_focused_hover_text_decoration)}:host([interactive-area-size="Large"]) .ui5-link-root{line-height:var(--_ui5_link_large_interactive_area_height)}:host([interactive-area-size="Large"])::part(icon),:host([interactive-area-size="Large"])::part(endIcon){height:var(--_ui5_link_large_interactive_area_height)}\n'}),(0,H.Z)("click",{bubbles:!0,cancelable:!0})],C),C.define();const L=C;var E=o(9562),A=o(1811),I=(o(2713),o(4521));(0,I.q5)("resize-corner",{pathData:"M13 5v1c0 .25-.104.48-.313.688l-6 6C6.48 12.896 6.25 13 6 13H5l8-8Zm-5 8 5-5v1c0 .25-.104.48-.313.688l-3 3C9.48 12.896 9.25 13 9 13H8Zm5-2v1c0 .25-.104.48-.313.688-.208.208-.437.312-.687.312h-1l2-2Z",ltr:!1,viewBox:"0 0 16 16",collection:"SAP-icons-v4",packageName:"@ui5/webcomponents-icons"}),(0,I.q5)("resize-corner",{pathData:"M11.72 3.22a.75.75 0 1 1 1.06 1.06l-8.5 8.5a.75.75 0 1 1-1.06-1.06l8.5-8.5Zm0 5a.75.75 0 1 1 1.06 1.06l-3.5 3.5a.75.75 0 1 1-1.06-1.06l3.5-3.5Z",ltr:!1,viewBox:"0 0 16 16",collection:"SAP-icons-v5",packageName:"@ui5/webcomponents-icons"});const S="resize-corner";function N(){return(0,r.tZ)("div",{class:"ui5-block-layer",onKeyDown:this._preventBlockLayerFocus,onMouseDown:this._preventBlockLayerFocus})}function F(e){return(0,r.BX)(r.HY,{children:[N.call(this),(0,r.BX)("section",{"root-element":!0,style:this.styles.root,class:this.classes.root,role:this._role,"aria-describedby":this.ariaDescribedByIds,"aria-modal":this._ariaModal,"aria-label":this._ariaLabel,"aria-labelledby":this._ariaLabelledBy,onKeyDown:this._onkeydown,onFocusOut:this._onfocusout,onMouseUp:this._onmouseup,onMouseDown:this._onmousedown,children:[(0,r.tZ)("span",{class:"first-fe","data-ui5-focus-trap":!0,role:"none",tabIndex:0,onFocusIn:this.forwardToLast}),(e?.beforeContent||W).call(this),(0,r.tZ)("div",{style:this.styles.content,class:this.classes.content,onScroll:this._scroll,part:"content",children:(0,r.tZ)("slot",{})}),this.ariaDescriptionText&&(0,r.tZ)("span",{id:"accessibleDescription",class:"ui5-hidden-text",children:this.ariaDescriptionText}),(e?.afterContent||X).call(this),(0,r.tZ)("span",{class:"last-fe","data-ui5-focus-trap":!0,role:"none",tabIndex:0,onFocusIn:this.forwardToFirst})]})]})}function W(){}function X(){}var j;!function(e){e.H1="H1",e.H2="H2",e.H3="H3",e.H4="H4",e.H5="H5",e.H6="H6"}(j||(j={}));const V=j;function Y(e){switch(e){case"H1":return(0,r.tZ)("h1",{class:"ui5-title-root",children:$.call(this)});case"H2":default:return(0,r.tZ)("h2",{class:"ui5-title-root",children:$.call(this)});case"H3":return(0,r.tZ)("h3",{class:"ui5-title-root",children:$.call(this)});case"H4":return(0,r.tZ)("h4",{class:"ui5-title-root",children:$.call(this)});case"H5":return(0,r.tZ)("h5",{class:"ui5-title-root",children:$.call(this)});case"H6":return(0,r.tZ)("h6",{id:`${this._id}-inner`,class:"ui5-title-root",children:$.call(this)})}}function $(){return(0,r.tZ)("span",{id:`${this._id}-inner`,children:(0,r.tZ)("slot",{})})}(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");var U=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};let q=class extends s.Z{constructor(){super(...arguments),this.wrappingType="Normal",this.level="H2",this.size="H5"}get h1(){return this.level===V.H1}get h2(){return this.level===V.H2}get h3(){return this.level===V.H3}get h4(){return this.level===V.H4}get h5(){return this.level===V.H5}get h6(){return this.level===V.H6}};U([(0,a.Z)()],q.prototype,"wrappingType",void 0),U([(0,a.Z)()],q.prototype,"level",void 0),U([(0,a.Z)()],q.prototype,"size",void 0),q=U([(0,n.Z)({tag:"ui5-title",renderer:h.Z,template:function(){return(0,r.tZ)(r.HY,{children:Y.call(this,this.level)})},styles:':host(:not([hidden])){display:block;cursor:text}:host{max-width:100%;color:var(--sapGroup_TitleTextColor);font-size:var(--sapFontHeader5Size);font-family:var(--sapFontHeaderFamily);text-shadow:var(--sapContent_TextShadow)}.ui5-title-root{display:inline-block;position:relative;font-weight:400;font-size:inherit;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;max-width:100%;vertical-align:bottom;-webkit-margin-before:0;-webkit-margin-after:0;-webkit-margin-start:0;-webkit-margin-end:0;margin:0;cursor:inherit}:host{white-space:pre-line}:host([wrapping-type="None"]){white-space:nowrap}.ui5-title-root,:host ::slotted(*){white-space:inherit}::slotted(*){font-size:inherit;font-family:inherit;text-shadow:inherit}:host([size="H1"]){font-size:var(--sapFontHeader1Size)}:host([size="H2"]){font-size:var(--sapFontHeader2Size)}:host([size="H3"]){font-size:var(--sapFontHeader3Size)}:host([size="H4"]){font-size:var(--sapFontHeader4Size)}:host([size="H5"]){font-size:var(--sapFontHeader5Size)}:host([size="H6"]){font-size:var(--sapFontHeader6Size)}\n'})],q),q.define();const G=q;function K(){return F.call(this,{beforeContent:J,afterContent:Q})}function J(){return(0,r.BX)(r.HY,{children:[(0,r.tZ)("span",{class:"ui5-popover-arrow",style:this.styles.arrow}),this._displayHeader&&(0,r.tZ)("header",{class:"ui5-popup-header-root",id:"ui5-popup-header",part:"header",children:this.header.length?(0,r.tZ)("slot",{name:"header"}):(0,r.tZ)(G,{level:"H1",class:"ui5-popup-header-text",children:this.headerText})})]})}function Q(){return(0,r.BX)(r.HY,{children:[this._displayFooter&&!!this.footer.length&&(0,r.tZ)("footer",{class:"ui5-popup-footer-root",part:"footer",children:(0,r.tZ)("slot",{name:"footer"})}),this._showResizeHandle&&(0,r.tZ)("div",{class:"ui5-popover-resize-handle",onMouseDown:this._onResizeMouseDown,children:(0,r.tZ)(P.Z,{name:S})})]})}const ee=(e,t,o)=>Math.min(Math.max(e,t),Math.max(t,o));var te=o(9273),oe=o(3473),ie=o(796),re=o(7126),se=o(483);const ne=()=>{const e=(0,se.Z)();return e&&"function"==typeof e.focus?e:null},ae=(e,t)=>{let o=e;if(o.shadowRoot&&(o=Array.from(o.shadowRoot.children).find((e=>"style"!==e.localName)),!o))return!1;if(o===t)return!0;const i="slot"===o.localName?o.assignedNodes():o.children;return!!i&&Array.from(i).some((e=>ae(e,t)))},le=e=>{const t=e.parentElement||e.getRootNode&&e.getRootNode().host;return t&&(function(e){return"isUI5Element"in e&&"_show"in e}(t)||t===document.documentElement)?t:le(t)};var he,pe=o(5017),ce=o(9154);!function(e){e.None="None",e.Dialog="Dialog",e.AlertDialog="AlertDialog"}(he||(he={}));const de=he;var ue=o(5809),_e=o(3837);const ge=(0,ue.Z)("OpenedPopupsRegistry",{openedRegistry:[]}),ve=(0,_e.B)("OpenUI5Support"),me=(e,t=[])=>{var o;ge.openedRegistry.some((t=>t.instance===e))||(ge.openedRegistry.push({instance:e,parentPopovers:t}),o={type:"WebComponent",instance:e},ve?.addOpenedPopup(o)),xe(),1===ge.openedRegistry.length&&we()},fe=e=>{var t;ge.openedRegistry=ge.openedRegistry.filter((t=>t.instance!==e)),t=e,ve?.removeOpenedPopup(t),xe(),ge.openedRegistry.length||ye()},be=e=>{if(ge.openedRegistry.length&&(0,Z.VW)(e)&&!((e,t="handledByControl")=>!!e[`_sapui_${t}`])(e)){const t=ge.openedRegistry[ge.openedRegistry.length-1].instance;if(ve&&t!==ve.getTopmostPopup())return;e.stopImmediatePropagation(),t.closePopup(!0)}},we=()=>{document.addEventListener("keydown",be)},ye=()=>{document.removeEventListener("keydown",be)},xe=()=>{let e,t=!1;for(let o=ge.openedRegistry.length-1;o>=0;o--)e=ge.openedRegistry[o].instance,!t&&e.isModal?(e.isTopModalPopup=!0,t=!0):e.isTopModalPopup=!1};(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host"),(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host"),(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");var Re,ze=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};(0,re.ko)("data-ui5-popup-scroll-blocker")||(0,re.wj)(".ui5-popup-scroll-blocker{overflow:hidden}\n","data-ui5-popup-scroll-blocker");const He=new Set;let Ze=Re=class extends s.Z{constructor(){super(),this.preventFocusRestore=!1,this.accessibleRole="Dialog",this.preventInitialFocus=!1,this.isTopModalPopup=!1,this.onPhone=!1,this.onDesktop=!1,this._opened=!1,this._open=!1,this._resizeHandlerRegistered=!1,this._resizeHandler=this._resize.bind(this),this._getRealDomRef=()=>this.shadowRoot.querySelector("[root-element]")}onBeforeRendering(){this.onPhone=(0,p.Mn)(),this.onDesktop=(0,p.nI)()}onAfterRendering(){(0,oe.Ou)().then((()=>{this._updateMediaRange()})),this.open?this._registerResizeHandler():this._deregisterResizeHandler()}onEnterDOM(){this.setAttribute("popover","manual"),(0,p.nI)()&&this.setAttribute("desktop",""),this.tabIndex=-1,this.handleOpenOnEnterDOM(),this.setAttribute("data-sap-ui-fastnavgroup-container","true"),(0,T.Xg)(this,this._updateAssociatedLabelsTexts.bind(this))}handleOpenOnEnterDOM(){this.open&&(this.showPopover(),this.openPopup())}onExitDOM(){this._opened&&(Re.unblockPageScrolling(this),this._removeOpenedPopup()),this._deregisterResizeHandler(),this._detachBrowserEvents(),(0,T.cg)(this)}set open(e){this._open!==e&&(this._open=e,e?this.openPopup():this.closePopup())}get open(){return this._open}async openPopup(){this._opened||(this.fireDecoratorEvent("before-open")?(this._attachBrowserEvents(),this.isModal&&Re.blockPageScrolling(this),this._focusedElementBeforeOpen=ne(),this._show(),this._opened=!0,this.getDomRef()&&this._updateMediaRange(),this._addOpenedPopup(),this.open=!0,await this.applyInitialFocus(),await(0,oe.Ou)(),this.isConnected&&this.fireDecoratorEvent("open")):this.open=!1)}_resize(){this._updateMediaRange()}_preventBlockLayerFocus(e){e.preventDefault()}_attachBrowserEvents(){}_detachBrowserEvents(){}static blockPageScrolling(e){He.add(e),1===He.size&&document.documentElement.classList.add("ui5-popup-scroll-blocker")}static unblockPageScrolling(e){He.delete(e),0===He.size&&document.documentElement.classList.remove("ui5-popup-scroll-blocker")}_scroll(e){this.fireDecoratorEvent("scroll",{scrollTop:e.target.scrollTop,targetRef:e.target})}_onkeydown(e){const t=e.target===this._root&&(0,Z.re)(e),o=(0,Z.tH)(e)&&!this.open;(t||o)&&e.preventDefault()}_onfocusout(e){e.relatedTarget||(this._shouldFocusRoot=!0)}_onmousedown(e){this.shadowRoot.contains(e.target)?this._shouldFocusRoot=!0:this._shouldFocusRoot=!1}_onmouseup(){this._shouldFocusRoot&&((0,p.i7)()&&this._root.focus(),this._shouldFocusRoot=!1)}async forwardToFirst(){const e=await(0,ie.h)(this);e?e.focus():this._root.focus()}async forwardToLast(){const e=await(0,ie.s)(this);e?e.focus():this._root.focus()}async applyInitialFocus(){this.preventInitialFocus||await this.applyFocus()}async applyFocus(){if(this.querySelector("[autofocus]"))return;if(await this._waitForDomRef(),this.getRootNode()===this)return;let e;this.initialFocus&&(e=this.getRootNode().getElementById(this.initialFocus)||document.getElementById(this.initialFocus)),e=e||await(0,ie.h)(this)||this._root,e&&(e===this._root&&(e.tabIndex=-1),e.focus())}isFocusWithin(){return(e=>{const t=ne();return!!t&&ae(e,t)})(this._root)}_updateMediaRange(){this.mediaRange=ce.Z.getCurrentRange(ce.Z.RANGESETS.RANGE_4STEPS,this.getDomRef().offsetWidth)}_updateAssociatedLabelsTexts(){this._associatedDescriptionRefTexts=(0,T.Ng)(this)}_addOpenedPopup(){me(this)}closePopup(e=!1,t=!1,o=!1){this._opened&&(this.fireDecoratorEvent("before-close",{escPressed:e})?(this._opened=!1,this.isModal&&Re.unblockPageScrolling(this),this.hide(),this.open=!1,this._detachBrowserEvents(),t||this._removeOpenedPopup(),this.preventFocusRestore||o||this.resetFocus(),this.fireDecoratorEvent("close")):this.open=!0)}_removeOpenedPopup(){fe(this)}resetFocus(){this._focusedElementBeforeOpen?.focus(),this._focusedElementBeforeOpen=null}_show(){this.isConnected&&(this.setAttribute("popover","manual"),this.showPopover())}_registerResizeHandler(){this._resizeHandlerRegistered||(pe.Z.register(this,this._resizeHandler),this._resizeHandlerRegistered=!0)}_deregisterResizeHandler(){this._resizeHandlerRegistered&&(pe.Z.deregister(this,this._resizeHandler),this._resizeHandlerRegistered=!1)}hide(){this.isConnected&&this.hidePopover()}get _ariaLabel(){return(0,T.Hp)(this)}get _accInfoAriaDescription(){return this.ariaDescriptionText||""}get ariaDescriptionText(){return this._associatedDescriptionRefTexts||(0,T.dR)(this)}get ariaDescriptionTextId(){return this.ariaDescriptionText?"accessibleDescription":""}get ariaDescribedByIds(){return[this.ariaDescriptionTextId].filter(Boolean).join(" ")}get _root(){return this.shadowRoot.querySelector(".ui5-popup-root")}get _role(){return this.accessibleRole===de.None?void 0:(0,M.Z)(this.accessibleRole)}get _ariaModal(){return this.accessibleRole===de.None?void 0:"true"}get contentDOM(){return this.shadowRoot.querySelector(".ui5-popup-content")}get styles(){return{root:{},content:{}}}get classes(){return{root:{"ui5-popup-root":!0},content:{"ui5-popup-content":!0}}}};ze([(0,a.Z)()],Ze.prototype,"initialFocus",void 0),ze([(0,a.Z)({type:Boolean})],Ze.prototype,"preventFocusRestore",void 0),ze([(0,a.Z)()],Ze.prototype,"accessibleName",void 0),ze([(0,a.Z)()],Ze.prototype,"accessibleNameRef",void 0),ze([(0,a.Z)()],Ze.prototype,"accessibleRole",void 0),ze([(0,a.Z)()],Ze.prototype,"accessibleDescription",void 0),ze([(0,a.Z)()],Ze.prototype,"accessibleDescriptionRef",void 0),ze([(0,a.Z)({noAttribute:!0})],Ze.prototype,"_associatedDescriptionRefTexts",void 0),ze([(0,a.Z)()],Ze.prototype,"mediaRange",void 0),ze([(0,a.Z)({type:Boolean})],Ze.prototype,"preventInitialFocus",void 0),ze([(0,a.Z)({type:Boolean,noAttribute:!0})],Ze.prototype,"isTopModalPopup",void 0),ze([(0,_.Z)({type:HTMLElement,default:!0})],Ze.prototype,"content",void 0),ze([(0,a.Z)({type:Boolean})],Ze.prototype,"onPhone",void 0),ze([(0,a.Z)({type:Boolean})],Ze.prototype,"onDesktop",void 0),ze([(0,a.Z)({type:Boolean})],Ze.prototype,"open",null),Ze=Re=ze([(0,n.Z)({renderer:h.Z,styles:[":host{min-width:1px;overflow:visible;border:none;inset:unset;margin:0;padding:0}:host(:focus-visible){outline:none}\n",".ui5-block-layer{position:fixed;z-index:-1;display:none;inset:-500px;outline:none;pointer-events:all}\n"],template:F}),(0,H.Z)("before-open",{cancelable:!0}),(0,H.Z)("open"),(0,H.Z)("before-close",{cancelable:!0}),(0,H.Z)("close"),(0,H.Z)("scroll",{bubbles:!0})],Ze);const Te=Ze;var Me=o(2491);const ke=Me.hE;(0,I.q5)("error",{pathData:"M16 8a7.731 7.731 0 0 1-.64 3.125c-.428.98-1 1.828-1.72 2.547a8.025 8.025 0 0 1-2.53 1.703A7.785 7.785 0 0 1 8 16a7.73 7.73 0 0 1-3.125-.64c-.98-.428-1.828-1-2.547-1.72a7.977 7.977 0 0 1-1.703-2.546A7.82 7.82 0 0 1 0 8a7.864 7.864 0 0 1 2.344-5.672A8.214 8.214 0 0 1 4.89.625 7.785 7.785 0 0 1 8 0c1.104 0 2.14.208 3.11.625a8.08 8.08 0 0 1 2.546 1.719 8.081 8.081 0 0 1 1.719 2.547C15.792 5.859 16 6.896 16 8Zm-3.531 3.375c.125-.125.125-.25 0-.375L9.78 8.312c-.125-.124-.125-.25 0-.374l2.531-2.532c.126-.125.126-.25 0-.375l-1.156-1.156c-.041-.042-.104-.063-.187-.063-.084 0-.146.021-.188.063L8.187 6.438c-.02.062-.083.093-.187.093-.063 0-.125-.031-.188-.093L5.188 3.844c-.02-.042-.083-.063-.187-.063-.083 0-.146.021-.188.063L3.657 5c-.125.125-.125.25 0 .375L6.25 7.938c.125.125.125.25 0 .375l-2.594 2.562a.312.312 0 0 0-.078.188c-.01.083.016.145.078.187l1.125 1.156a.48.48 0 0 0 .188.063c.083 0 .146-.021.187-.063l2.657-2.625c.041-.041.104-.062.187-.062s.146.02.188.062l2.75 2.75a.479.479 0 0 0 .187.063.48.48 0 0 0 .188-.063l1.156-1.156Z",ltr:!1,viewBox:"0 0 16 16",accData:ke,collection:"SAP-icons-v4",packageName:"@ui5/webcomponents-icons"});const De=Me.hE;function Pe(){return(0,r.tZ)(r.HY,{children:!!this._displayHeader&&(0,r.tZ)("header",{children:(0,r.BX)("div",{class:"ui5-popup-header-root",id:"ui5-popup-header",role:"group","aria-describedby":this.effectiveAriaDescribedBy,"aria-roledescription":this.ariaRoleDescriptionHeaderText,tabIndex:this._headerTabIndex,onKeyDown:this._onDragOrResizeKeyDown,onMouseDown:this._onDragMouseDown,part:"header",children:[this.hasValueState&&(0,r.tZ)(P.Z,{class:"ui5-dialog-value-state-icon",name:this._dialogStateIcon}),this.header.length?(0,r.tZ)("slot",{name:"header"}):(0,r.tZ)(G,{level:"H1",id:"ui5-popup-header-text",class:"ui5-popup-header-text",children:this.headerText}),this.resizable?this.draggable?(0,r.tZ)("span",{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextDraggableAndResizable}):(0,r.tZ)("span",{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextResizable}):this.draggable&&(0,r.tZ)("span",{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextDraggable})]})})})}function Be(){return(0,r.BX)(r.HY,{children:[!!this.footer.length&&(0,r.tZ)("footer",{class:"ui5-popup-footer-root",part:"footer",children:(0,r.tZ)("slot",{name:"footer"})}),this._showResizeHandle&&(0,r.tZ)("div",{class:"ui5-popup-resize-handle",onMouseDown:this._onResizeMouseDown,children:(0,r.tZ)(P.Z,{name:S})})]})}(0,I.q5)("error",{pathData:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.707 4.293a1 1 0 0 0-1.414 0L8 6.586 5.707 4.293a1 1 0 1 0-1.414 1.414L6.586 8l-2.293 2.293a1 1 0 1 0 1.414 1.414L8 9.414l2.293 2.293a1 1 0 1 0 1.414-1.414L9.414 8l2.293-2.293a1 1 0 0 0 0-1.414Z",ltr:!1,viewBox:"0 0 16 16",accData:De,collection:"SAP-icons-v5",packageName:"@ui5/webcomponents-icons"}),(0,I.q5)("alert",{pathData:"M15.656 12.688c.104.208.182.411.235.609.052.198.088.39.109.578v.156c0 .646-.24 1.136-.719 1.469-.479.333-1 .5-1.562.5H2.313c-.271 0-.542-.042-.813-.125a2.332 2.332 0 0 1-.734-.375 1.932 1.932 0 0 1-.532-.625A2.033 2.033 0 0 1 0 14.031c0-.27.042-.505.125-.703.083-.198.177-.411.281-.64l5.782-10.5C6.625 1.395 7.26 1 8.094 1c.791 0 1.406.396 1.844 1.188l5.718 10.5Zm-7.625-7.72c-.27 0-.515.084-.734.25-.219.167-.328.438-.328.813.02.146.041.271.062.375.063.521.11 1.021.14 1.5.032.48.069 1.115.11 1.907 0 .229.078.395.235.5a.91.91 0 0 0 .515.156c.459 0 .698-.219.719-.656l.063-1.126.28-2.656c0-.375-.109-.646-.327-.812a1.182 1.182 0 0 0-.735-.25Zm0 9.345c.417 0 .745-.126.985-.376s.359-.583.359-1c0-.395-.12-.718-.36-.968-.239-.25-.567-.375-.984-.375-.416 0-.745.125-.984.375-.24.25-.36.573-.36.969 0 .416.12.75.36 1s.568.374.984.374Z",ltr:!1,viewBox:"0 0 16 16",collection:"SAP-icons-v4",packageName:"@ui5/webcomponents-icons"}),(0,I.q5)("alert",{pathData:"M6.491 1.856C7.17.716 8.821.714 9.5 1.855l6.249 10.504c.694 1.166-.147 2.644-1.504 2.644H1.752c-1.357 0-2.197-1.478-1.504-2.644L6.491 1.856Zm1.503 9.138a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-7a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1Z",ltr:!1,viewBox:"0 0 16 16",collection:"SAP-icons-v5",packageName:"@ui5/webcomponents-icons"}),(0,I.q5)("sys-enter-2",{pathData:"M16 8a7.863 7.863 0 0 1-.625 3.14 8.026 8.026 0 0 1-1.703 2.532 7.979 7.979 0 0 1-2.547 1.703c-.98.417-2.02.625-3.125.625a7.863 7.863 0 0 1-5.672-2.344A8.215 8.215 0 0 1 .625 11.11 7.786 7.786 0 0 1 0 8c0-1.104.214-2.146.64-3.125.428-.98 1-1.828 1.72-2.547A7.977 7.977 0 0 1 4.905.625 7.82 7.82 0 0 1 8 0c1.104 0 2.146.208 3.125.625.98.417 1.828.984 2.547 1.703a7.979 7.979 0 0 1 1.703 2.547c.417.98.625 2.02.625 3.125Zm-3.688-2.719c.084-.166.073-.302-.03-.406L11.155 3.75a.297.297 0 0 0-.25-.125c-.104 0-.187.052-.25.156l-3.25 5.406c-.062.021-.104.021-.125 0L5.094 7.563c-.084-.063-.157-.094-.219-.094-.063 0-.11.02-.14.062a.917.917 0 0 1-.079.094L3.75 8.906c-.125.167-.104.313.063.438l3.53 2.969c.042.041.115.062.22.062a.297.297 0 0 0 .25-.125l4.5-6.969Z",ltr:!0,viewBox:"0 0 16 16",collection:"SAP-icons-v4",packageName:"@ui5/webcomponents-icons"}),(0,I.q5)("sys-enter-2",{pathData:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.707 5.793a1 1 0 0 0-1.414 0L7.5 8.586 6.207 7.293a1 1 0 1 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l3.5-3.5a1 1 0 0 0 0-1.414Z",ltr:!0,viewBox:"0 0 16 16",collection:"SAP-icons-v5",packageName:"@ui5/webcomponents-icons"}),(0,I.q5)("information",{pathData:"M0 8c0-1.104.214-2.146.64-3.125.428-.98 1-1.828 1.72-2.547A7.977 7.977 0 0 1 4.905.625 7.82 7.82 0 0 1 8 0a7.863 7.863 0 0 1 5.672 2.344 8.216 8.216 0 0 1 1.703 2.547C15.792 5.859 16 6.896 16 8a7.863 7.863 0 0 1-.625 3.14 8.026 8.026 0 0 1-1.703 2.532 7.979 7.979 0 0 1-2.547 1.703c-.98.417-2.02.625-3.125.625a7.863 7.863 0 0 1-5.672-2.344A8.215 8.215 0 0 1 .625 11.11 7.786 7.786 0 0 1 0 8Zm6 3.5v1.031h4V11.5H9V6.719c0-.125-.073-.188-.219-.188h-2.75V7.5h1v4H6Zm1.063-6.281c.291.229.604.343.937.343.354 0 .661-.12.922-.359.26-.24.39-.536.39-.89 0-.396-.135-.72-.406-.97A1.235 1.235 0 0 0 8 2.97c-.396 0-.714.13-.953.39-.24.26-.36.579-.36.954 0 .354.125.656.375.906Z",ltr:!1,viewBox:"0 0 16 16",collection:"SAP-icons-v4",packageName:"@ui5/webcomponents-icons"}),(0,I.q5)("information",{pathData:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 7a1 1 0 0 0-1 1v4a1 1 0 1 0 2 0V8a1 1 0 0 0-1-1Zm0-4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",ltr:!1,viewBox:"0 0 16 16",collection:"SAP-icons-v5",packageName:"@ui5/webcomponents-icons"}),(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");const Oe='.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host{position:fixed;background:var(--sapGroup_ContentBackground);border-radius:var(--_ui5_popup_border_radius);min-height:2rem;box-sizing:border-box}:host([open]){display:flex}.ui5-popup-root{background:inherit;border-radius:inherit;width:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;flex:1 1 auto;outline:none}.ui5-popup-root .ui5-popup-header-root{box-shadow:var(--_ui5_popup_header_shadow);border-bottom:var(--_ui5_popup_header_border)}.ui5-popup-content{color:var(--sapTextColor);flex:auto}.ui5-popup-content:focus{outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:calc(-1 * var(--sapContent_FocusWidth));border-radius:var(--_ui5_popup_border_radius)}.ui5-popup-footer-root{background:var(--sapPageFooter_Background);border-top:1px solid var(--sapPageFooter_BorderColor);color:var(--sapPageFooter_TextColor)}.ui5-popup-header-root,.ui5-popup-footer-root,:host([header-text]) .ui5-popup-header-text{margin:0;display:flex;justify-content:center;align-items:center}.ui5-popup-header-root .ui5-popup-header-text{font-weight:var(--sapFontHeaderFamily);font-size:var(--sapFontHeader5Size);color:var(--sapPageHeader_TextColor)}.ui5-popup-content{overflow:auto;box-sizing:border-box}:host([header-text]) .ui5-popup-header-text{min-height:var(--_ui5_popup_default_header_height);max-height:var(--_ui5_popup_default_header_height);line-height:var(--_ui5_popup_default_header_height);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-flex;justify-content:var(--_ui5_popup_header_prop_header_text_alignment)}:host([header-text]) .ui5-popup-header-root{justify-content:var(--_ui5_popup_header_prop_header_text_alignment)}:host(:not([header-text])) .ui5-popup-header-text{display:none}:host([media-range="S"]) .ui5-popup-content{padding:1rem var(--_ui5_popup_content_padding_s)}:host([media-range="M"]) .ui5-popup-content,:host([media-range="L"]) .ui5-popup-content{padding:1rem var(--_ui5_popup_content_padding_m_l)}:host([media-range="XL"]) .ui5-popup-content{padding:1rem var(--_ui5_popup_content_padding_xl)}.ui5-popup-header-root{background:var(--sapPageHeader_Background)}:host([media-range="S"]) .ui5-popup-header-root,:host([media-range="S"]) .ui5-popup-footer-root{padding-left:var(--_ui5_popup_header_footer_padding_s);padding-right:var(--_ui5_popup_header_footer_padding_s)}:host([media-range="M"]) .ui5-popup-header-root,:host([media-range="L"]) .ui5-popup-header-root,:host([media-range="M"]) .ui5-popup-footer-root,:host([media-range="L"]) .ui5-popup-footer-root{padding-left:var(--_ui5_popup_header_footer_padding_m_l);padding-right:var(--_ui5_popup_header_footer_padding_m_l)}:host([media-range="XL"]) .ui5-popup-header-root,:host([media-range="XL"]) .ui5-popup-footer-root{padding-left:var(--_ui5_popup_header_footer_padding_xl);padding-right:var(--_ui5_popup_header_footer_padding_xl)}::slotted([slot="footer"]){height:var(--_ui5_popup_footer_height)}::slotted([slot="footer"][ui5-bar][design="Footer"]){border-top:none}::slotted([slot="header"][ui5-bar]){box-shadow:none}::slotted([slot="footer"][ui5-toolbar]){border:0}::slotted([slot="footer"][ui5-bar][design="Footer"]),::slotted([slot="header"][ui5-bar][design="Header"]){--_ui5_bar-start-container-padding-start: 0;--_ui5_bar-mid-container-padding-start-end: 0;--_ui5_bar-end-container-padding-end: 0}\n';(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");var Ce,Le=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};const Ee=16,Ae={[te.Z.Negative]:"error",[te.Z.Critical]:"alert",[te.Z.Positive]:"sys-enter-2",[te.Z.Information]:"information"};let Ie=Ce=class extends Te{constructor(){super(),this.stretch=!1,this.draggable=!1,this.resizable=!1,this.state="None",this._draggedOrResized=!1,this._dragHandlerRegistered=!1,this._revertSize=()=>{Object.assign(this.style,{top:"",left:"",width:"",height:""})},this._screenResizeHandler=this._screenResize.bind(this),this._dragMouseMoveHandler=this._onDragMouseMove.bind(this),this._dragMouseUpHandler=this._onDragMouseUp.bind(this),this._resizeMouseMoveHandler=this._onResizeMouseMove.bind(this),this._resizeMouseUpHandler=this._onResizeMouseUp.bind(this),this._dragStartHandler=this._handleDragStart.bind(this)}static _isHeader(e){return e.classList.contains("ui5-popup-header-root")||"header"===e.getAttribute("slot")}get isModal(){return!0}get _ariaLabelledBy(){let e;return this.headerText&&!this._ariaLabel&&(e="ui5-popup-header-text"),e}get ariaRoleDescriptionHeaderText(){return this.resizable||this.draggable?Ce.i18nBundle.getText(u.PzY):void 0}get effectiveAriaDescribedBy(){return this.resizable||this.draggable?`${this._id}-descr`:void 0}get ariaDescribedByHeaderTextResizable(){return Ce.i18nBundle.getText(u._z4)}get ariaDescribedByHeaderTextDraggable(){return Ce.i18nBundle.getText(u.Aoh)}get ariaDescribedByHeaderTextDraggableAndResizable(){return Ce.i18nBundle.getText(u._Ci)}get _displayHeader(){return this.header.length||this.headerText||this.draggable||this.resizable}get _movable(){return!this.stretch&&this.onDesktop&&(this.draggable||this.resizable)}get _headerTabIndex(){return this._movable?0:void 0}get _showResizeHandle(){return this.resizable&&this.onDesktop}get _minHeight(){let e=Number.parseInt(window.getComputedStyle(this.contentDOM).minHeight);const t=this._root.querySelector(".ui5-popup-header-root");t&&(e+=t.offsetHeight);const o=this._root.querySelector(".ui5-popup-footer-root");return o&&(e+=o.offsetHeight),e}get hasValueState(){return this.state!==te.Z.None}get _dialogStateIcon(){return Ae[this.state]}get _role(){if(this.accessibleRole!==de.None)return this.state===te.Z.Negative||this.state===te.Z.Critical?(0,M.Z)(de.AlertDialog):(0,M.Z)(this.accessibleRole)}_show(){super._show(),this._center()}onBeforeRendering(){super.onBeforeRendering(),this._isRTL="rtl"===this.effectiveDir}_resize(){super._resize(),this._draggedOrResized||this._center()}_screenResize(){this._center()}_attachBrowserEvents(){this._attachScreenResizeHandler(),this._registerDragHandler()}_detachBrowserEvents(){this._detachScreenResizeHandler(),this._deregisterDragHandler()}_attachScreenResizeHandler(){this._screenResizeHandlerAttached||(window.addEventListener("resize",this._screenResizeHandler),this._screenResizeHandlerAttached=!0)}_detachScreenResizeHandler(){this._screenResizeHandlerAttached&&(window.removeEventListener("resize",this._screenResizeHandler),this._screenResizeHandlerAttached=!1)}_registerDragHandler(){this._dragHandlerRegistered||(this.addEventListener("dragstart",this._dragStartHandler),this._dragHandlerRegistered=!0)}_deregisterDragHandler(){this._dragHandlerRegistered&&(this.removeEventListener("dragstart",this._dragStartHandler),this._dragHandlerRegistered=!1)}_center(){const e=window.innerHeight-this.offsetHeight,t=window.innerWidth-this.offsetWidth;Object.assign(this.style,{top:`${Math.round(e/2)}px`,left:`${Math.round(t/2)}px`})}_onDragMouseDown(e){if(!this._movable||!this.draggable||!Ce._isHeader(e.target))return;const{top:t,left:o}=this.getBoundingClientRect(),{width:i,height:r}=window.getComputedStyle(this);Object.assign(this.style,{top:`${t}px`,left:`${o}px`,width:Math.round(100*Number.parseFloat(i))/100+"px",height:Math.round(100*Number.parseFloat(r))/100+"px"}),this._x=e.clientX,this._y=e.clientY,this._draggedOrResized=!0,this._attachMouseDragHandlers()}_onDragMouseMove(e){e.preventDefault();const{clientX:t,clientY:o}=e,i=this._x-t,r=this._y-o,{left:s,top:n}=this.getBoundingClientRect();Object.assign(this.style,{left:`${Math.floor(s-i)}px`,top:`${Math.floor(n-r)}px`}),this._x=t,this._y=o}_onDragMouseUp(){delete this._x,delete this._y,this._detachMouseDragHandlers()}_onDragOrResizeKeyDown(e){this._movable&&Ce._isHeader(e.target)&&(this.draggable&&[Z.EN,Z.tw,Z.nM,Z.tO].some((t=>t(e)))?this._dragWithEvent(e):this.resizable&&[Z.oc,Z.KF,Z.c0,Z.xx].some((t=>t(e)))&&this._resizeWithEvent(e))}_dragWithEvent(e){const{top:t,left:o,width:i,height:r}=this.getBoundingClientRect();let s=0,n="top";switch(!0){case(0,Z.EN)(e):s=t-Ee,n="top";break;case(0,Z.tw)(e):s=t+Ee,n="top";break;case(0,Z.nM)(e):s=o-Ee,n="left";break;case(0,Z.tO)(e):s=o+Ee,n="left"}s=ee(s,0,"left"===n?window.innerWidth-i:window.innerHeight-r),this.style[n]=`${s}px`}_resizeWithEvent(e){this._draggedOrResized=!0,this.addEventListener("ui5-before-close",this._revertSize,{once:!0});const{top:t,left:o}=this.getBoundingClientRect(),i=window.getComputedStyle(this),r=Number.parseFloat(i.minWidth),s=window.innerWidth-o,n=window.innerHeight-t;let a=Number.parseFloat(i.width),l=Number.parseFloat(i.height);switch(!0){case(0,Z.oc)(e):l-=Ee;break;case(0,Z.KF)(e):l+=Ee;break;case(0,Z.c0)(e):a-=Ee;break;case(0,Z.xx)(e):a+=Ee}a=ee(a,r,s),l=ee(l,this._minHeight,n),Object.assign(this.style,{width:`${a}px`,height:`${l}px`})}_attachMouseDragHandlers(){window.addEventListener("mousemove",this._dragMouseMoveHandler),window.addEventListener("mouseup",this._dragMouseUpHandler)}_detachMouseDragHandlers(){window.removeEventListener("mousemove",this._dragMouseMoveHandler),window.removeEventListener("mouseup",this._dragMouseUpHandler)}_onResizeMouseDown(e){if(!this._movable||!this.resizable)return;e.preventDefault();const{top:t,left:o}=this.getBoundingClientRect(),{width:i,height:r,minWidth:s}=window.getComputedStyle(this);this._initialX=e.clientX,this._initialY=e.clientY,this._initialWidth=Number.parseFloat(i),this._initialHeight=Number.parseFloat(r),this._initialTop=t,this._initialLeft=o,this._minWidth=Number.parseFloat(s),this._cachedMinHeight=this._minHeight,Object.assign(this.style,{top:`${t}px`,left:`${o}px`}),this._draggedOrResized=!0,this._attachMouseResizeHandlers()}_onResizeMouseMove(e){const{clientX:t,clientY:o}=e;let i,r;if(this._isRTL){i=ee(this._initialWidth-(t-this._initialX),this._minWidth,this._initialLeft+this._initialWidth),Object.assign(this.style,{width:`${i}px`});const e=i-this.getBoundingClientRect().width,o=this._initialLeft+this._initialWidth+e;r=ee(o-i,0,o-this._minWidth)}else i=ee(this._initialWidth+(t-this._initialX),this._minWidth,window.innerWidth-this._initialLeft);const s=ee(this._initialHeight+(o-this._initialY),this._cachedMinHeight,window.innerHeight-this._initialTop);Object.assign(this.style,{height:`${s}px`,width:`${i}px`,left:this._isRTL?`${r}px`:void 0})}_onResizeMouseUp(){delete this._initialX,delete this._initialY,delete this._initialWidth,delete this._initialHeight,delete this._initialTop,delete this._initialLeft,delete this._minWidth,delete this._cachedMinHeight,this._detachMouseResizeHandlers()}_handleDragStart(e){this.draggable&&e.target instanceof HTMLElement&&Ce._isHeader(e.target)&&e.preventDefault()}_attachMouseResizeHandlers(){window.addEventListener("mousemove",this._resizeMouseMoveHandler),window.addEventListener("mouseup",this._resizeMouseUpHandler),this.addEventListener("ui5-before-close",this._revertSize,{once:!0})}_detachMouseResizeHandlers(){window.removeEventListener("mousemove",this._resizeMouseMoveHandler),window.removeEventListener("mouseup",this._resizeMouseUpHandler)}};Le([(0,a.Z)()],Ie.prototype,"headerText",void 0),Le([(0,a.Z)({type:Boolean})],Ie.prototype,"stretch",void 0),Le([(0,a.Z)({type:Boolean})],Ie.prototype,"draggable",void 0),Le([(0,a.Z)({type:Boolean})],Ie.prototype,"resizable",void 0),Le([(0,a.Z)()],Ie.prototype,"state",void 0),Le([(0,_.Z)()],Ie.prototype,"header",void 0),Le([(0,_.Z)()],Ie.prototype,"footer",void 0),Le([(0,l.Z)("@ui5/webcomponents")],Ie,"i18nBundle",void 0),Ie=Ce=Le([(0,n.Z)({tag:"ui5-dialog",template:function(){return F.call(this,{beforeContent:Pe,afterContent:Be})},styles:[Te.styles,Oe,'.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host{min-width:20rem;min-height:6rem;max-height:94%;max-width:90%;flex-direction:column;box-shadow:var(--sapContent_Shadow3);border-radius:var(--sapElement_BorderCornerRadius)}:host([stretch]){width:90%;height:94%}:host([stretch][on-phone]){width:100%;height:100%;max-height:100%;max-width:100%;border-radius:0;min-width:0}:host([draggable]) .ui5-popup-header-root,:host([draggable]) ::slotted([slot="header"]){cursor:move}:host([draggable]) .ui5-popup-header-root *{cursor:auto}:host([draggable]) .ui5-popup-root{user-select:text}::slotted([slot="header"]){max-width:100%}.ui5-popup-root{display:flex;flex-direction:column;max-width:100vw}.ui5-popup-header-root{position:relative}.ui5-popup-header-root:before{content:"";position:absolute;inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;height:var(--_ui5_dialog_header_state_line_height);background:var(--sapObjectHeader_BorderColor)}:host([state="Negative"]) .ui5-popup-header-root:before{background:var(--sapErrorBorderColor)}:host([state="Information"]) .ui5-popup-header-root:before{background:var(--sapInformationBorderColor)}:host([state="Positive"]) .ui5-popup-header-root:before{background:var(--sapSuccessBorderColor)}:host([state="Critical"]) .ui5-popup-header-root:before{background:var(--sapWarningBorderColor)}.ui5-dialog-value-state-icon{margin-inline-end:.5rem;flex-shrink:0}:host([state="Negative"]) .ui5-dialog-value-state-icon{color:var(--sapNegativeElementColor)}:host([state="Information"]) .ui5-dialog-value-state-icon{color:var(--sapInformativeElementColor)}:host([state="Positive"]) .ui5-dialog-value-state-icon{color:var(--sapPositiveElementColor)}:host([state="Critical"]) .ui5-dialog-value-state-icon{color:var(--sapCriticalElementColor)}.ui5-popup-header-root{outline:none}:host([desktop]) .ui5-popup-header-root:focus:after,.ui5-popup-header-root:focus-visible:after{content:"";position:absolute;left:var(--_ui5_dialog_header_focus_left_offset);bottom:var(--_ui5_dialog_header_focus_bottom_offset);right:var(--_ui5_dialog_header_focus_right_offset);top:var(--_ui5_dialog_header_focus_top_offset);border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);border-radius:var(--_ui5_dialog_header_border_radius) var(--_ui5_dialog_header_border_radius) 0 0;pointer-events:none}:host([stretch]) .ui5-popup-content{width:100%;height:100%}.ui5-popup-content{min-height:var(--_ui5_dialog_content_min_height);flex:1 1 auto}.ui5-popup-resize-handle{position:absolute;bottom:-.5rem;inset-inline-end:-.5rem;cursor:var(--_ui5_dialog_resize_cursor);width:1.5rem;height:1.5rem;border-radius:50%}.ui5-popup-resize-handle [ui5-icon]{color:var(--sapButton_Lite_TextColor)}:host::backdrop{background-color:var(--_ui5_popup_block_layer_background);opacity:var(--_ui5_popup_block_layer_opacity)}.ui5-block-layer{display:block}\n']})],Ie),Ie.define();const Se=Ie,Ne={toAttribute:e=>e instanceof HTMLElement?null:e,fromAttribute:e=>e};var Fe;!function(e){e.Start="Start",e.End="End",e.Top="Top",e.Bottom="Bottom"}(Fe||(Fe={}));const We=Fe;var Xe;!function(e){e.Center="Center",e.Top="Top",e.Bottom="Bottom",e.Stretch="Stretch"}(Xe||(Xe={}));const je=Xe;var Ve;!function(e){e.Center="Center",e.Start="Start",e.End="End",e.Stretch="Stretch"}(Ve||(Ve={}));const Ye=Ve;let $e;const Ue=[],qe=()=>{Ue.forEach((e=>{e.instance.reposition()}))},Ge=e=>{const t=[...ge.openedRegistry];if(0!==t.length&&ht(t[t.length-1].instance))for(let o=t.length-1;-1!==o;o--){const i=t[o].instance;if(!ht(i))return;if(i.isModal||i.isOpenerClicked(e))return;if(i.isClicked(e))return;i.closePopup()}},Ke=e=>{const t=Qe(e);var o;me(e,t),Ue.push({instance:e,parentPopovers:t}),(o=e)&&o.shadowRoot.addEventListener("scroll",qe,{capture:!0}),1===Ue.length&&(document.addEventListener("scroll",qe,{capture:!0}),document.addEventListener("mousedown",Ge,{capture:!0}),$e=setInterval((()=>{qe(),(()=>{let e=(0,se.Z)();"IFRAME"===e.tagName&&Je().reverse().forEach((t=>{const o=t.instance,i=o.getOpenerHTMLElement(o.opener);for(;e;){if(e===i)return;e=(r=e).parentElement?r.parentElement:r.parentNode.host}var r;o.closePopup(!1,!1,!0)}))})()}),300))},Je=()=>Ue,Qe=e=>{let t=e.parentNode;const o=[];for(;t&&t.parentNode;){for(let e=0;e<Ue.length;e++)t===Ue[e].instance&&o.push(t);t=t.parentNode}return o};var et;!function(e){e.TopLeft="TopLeft",e.TopRight="TopRight",e.BottomLeft="BottomLeft",e.BottomRight="BottomRight"}(et||(et={}));const tt=class{constructor(e){this._resized=!1,this._popover=e,this._resizeMouseMoveHandler=this._onResizeMouseMove.bind(this),this._resizeMouseUpHandler=this._onResizeMouseUp.bind(this)}reset(){this._resized&&(this._resized=!1,delete this._currentDeltaX,delete this._currentDeltaY,delete this._totalDeltaX,delete this._totalDeltaY)}get isResized(){return this._resized}getCorrectedLeft(e){return this.isResized&&(e-=this._currentDeltaX||0),e}getCorrectedTop(e){return this.isResized&&(e-=this._currentDeltaY||0),e}setCorrectResizeHandleClass(e){switch(this.getResizeHandlePlacement()){case et.BottomLeft:e.root["ui5-popover-resize-handle-bottom-left"]=!0;break;case et.BottomRight:e.root["ui5-popover-resize-handle-bottom-right"]=!0;break;case et.TopLeft:e.root["ui5-popover-resize-handle-top-left"]=!0;break;case et.TopRight:e.root["ui5-popover-resize-handle-top-right"]=!0}}getResizeHandlePlacement(){const e=this._popover;if(this._resized&&e.resizeHandlePlacement)return e.resizeHandlePlacement;const t=e.getOpenerHTMLElement(e.opener);if(!t)return;const o=e.isRtl,i=t.getBoundingClientRect(),r=e.getBoundingClientRect();let s=Math.floor(i.x+i.width/2);const n=Math.floor(i.y+i.height/2);let a=Math.floor(r.x+r.width/2);const l=Math.floor(r.y+r.height/2),h=e.verticalAlign,p=e._actualHorizontalAlign,c=r.width>i.width,d=r.height>i.height;switch(o&&(s=-s,a=-a),e.getActualPlacement(i)){case rt.Left:return d?l>n+2?et.BottomLeft:et.TopLeft:h===je.Top?et.BottomLeft:et.TopLeft;case rt.Right:return d?l+2<n?et.TopRight:et.BottomRight:h===je.Bottom?et.TopRight:et.BottomRight;case rt.Bottom:return c?a+2<s?o?et.BottomRight:et.BottomLeft:o?et.BottomLeft:et.BottomRight:o?p===it.Left?et.BottomRight:et.BottomLeft:p===it.Right?et.BottomLeft:et.BottomRight;case rt.Top:default:return c?a+2<s?o?et.TopRight:et.TopLeft:o?et.TopLeft:et.TopRight:o?p===it.Left?et.TopRight:et.TopLeft:p===it.Right?et.TopLeft:et.TopRight}}onResizeMouseDown(e){if(!this._popover.resizable)return;e.preventDefault(),this._resized=!0,this._initialBoundingRect=this._popover.getBoundingClientRect(),this._totalDeltaX=this._currentDeltaX,this._totalDeltaY=this._currentDeltaY;const{minWidth:t,minHeight:o}=window.getComputedStyle(this._popover),i=window.getComputedStyle(this._popover._getRealDomRef());this._initialClientX=e.clientX,this._initialClientY=e.clientY,this._minWidth=Math.max(Number.parseFloat(t),Number.parseFloat(i.minWidth)),this._minHeight=Number.parseFloat(o),this._attachMouseResizeHandlers()}_onResizeMouseMove(e){const t=this._popover._viewportMargin,{clientX:o,clientY:i}=e,r=this.getResizeHandlePlacement(),s=this._initialBoundingRect,n=o-this._initialClientX,a=i-this._initialClientY;let l,h;const p=r===et.TopLeft||r===et.BottomLeft,c=r===et.TopLeft||r===et.TopRight;if(p){const e=s.x+s.width-t;l=ee(s.width-n,this._minWidth,e);const o=ee(s.x+n,t,s.x+s.width-this._minWidth);l=Math.min(l,s.x+s.width-o),this._currentDeltaX=(s.x-o)/2}else{const e=window.innerWidth-s.x-t;l=ee(s.width+n,this._minWidth,e),this._currentDeltaX=(s.width-l)/2}if(c){const e=s.y+s.height-t;h=ee(s.height-a,this._minHeight,e);const o=ee(s.y+a,t,s.y+s.height-this._minHeight);h=Math.min(h,s.y+s.height-o),this._currentDeltaY=(s.y-o)/2}else{const e=window.innerHeight-s.y-t;h=ee(s.height+a,this._minHeight,e),this._currentDeltaY=(s.height-h)/2}this._currentDeltaX+=this._totalDeltaX||0,this._currentDeltaY+=this._totalDeltaY||0;const d=this._popover.calcPlacement(this._popover._openerRect,{width:l,height:h});this._popover.arrowTranslateX=d.arrow.x,this._popover.arrowTranslateY=d.arrow.y,Object.assign(this._popover.style,{left:`${d.left}px`,top:`${d.top}px`,height:`${h}px`,width:`${l}px`})}_onResizeMouseUp(){delete this._initialClientX,delete this._initialClientY,delete this._initialBoundingRect,delete this._minWidth,delete this._minHeight,this._detachMouseResizeHandlers()}_attachMouseResizeHandlers(){window.addEventListener("mousemove",this._resizeMouseMoveHandler),window.addEventListener("mouseup",this._resizeMouseUpHandler)}_detachMouseResizeHandlers(){window.removeEventListener("mousemove",this._resizeMouseMoveHandler),window.removeEventListener("mouseup",this._resizeMouseUpHandler)}};(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");var ot,it,rt,st=o(684),nt=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};!function(e){e.Center="Center",e.Left="Left",e.Right="Right",e.Stretch="Stretch"}(it||(it={})),function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(rt||(rt={}));let at=ot=class extends Te{static get VIEWPORT_MARGIN(){return 10}constructor(){super(),this.placement="End",this.horizontalAlign="Center",this.verticalAlign="Center",this.modal=!1,this.hideArrow=!1,this.allowTargetOverlap=!1,this.resizable=!1,this.arrowTranslateX=0,this.arrowTranslateY=0,this.actualPlacement="Right",this.isPopover=!0,this._popoverResize=new tt(this)}set opener(e){this._opener!==e&&(this._opener=e,e&&this.open&&this.openPopup())}get opener(){return this._opener}async openPopup(){if(this._opened)return;const e=this.getOpenerHTMLElement(this.opener);if(e){if(!e||this.isOpenerOutsideViewport(e.getBoundingClientRect()))return await(0,oe.Ou)(),this.open=!1,void this.fireDecoratorEvent("close");this._initialWidth=this.style.width,this._initialHeight=this.style.height,this._openerRect=e.getBoundingClientRect(),this._observeOpenerVisibility(),await super.openPopup()}}closePopup(e=!1,t=!1,o=!1){this._unobserveOpenerVisibility(),Object.assign(this.style,{width:this._initialWidth,height:this._initialHeight}),this._popoverResize.reset(),delete this._resizeHandlePlacement,super.closePopup(e,t,o)}isOpenerClicked(e){const t=e.target,o=this.getOpenerHTMLElement(this.opener);return!!o&&(t===o||!(!this._isUI5AbstractElement(t)||t.getFocusDomRef()!==o)||e.composedPath().indexOf(o)>-1)}isClicked(e){return!(!this._showResizeHandle||this.shadowRoot.querySelector(".ui5-popover-resize-handle")!==e.composedPath()[0])||((e,t)=>{let o,i;if(e instanceof MouseEvent)o=e.clientX,i=e.clientY;else{const t=e.touches[0];o=t.clientX,i=t.clientY}return((e,t,o)=>e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)(o,i,t)})(e,this.getBoundingClientRect())}_addOpenedPopup(){Ke(this)}_removeOpenedPopup(){(e=>{const t=[e];for(let o=0;o<Ue.length;o++){const i=Ue[o].parentPopovers.indexOf(e);Ue[o].parentPopovers.length>0&&i>-1&&t.push(Ue[o].instance)}for(let e=t.length-1;e>=0;e--)for(let i=0;i<Ue.length;i++){let r=-1;t[e]===Ue[i].instance&&(r=i),r>=0&&(fe(Ue[r].instance),(o=Ue[r].instance)&&o.shadowRoot.removeEventListener("scroll",qe,{capture:!0}),Ue.splice(r,1)[0].instance.closePopup(!1,!0))}var o;Ue.length||(document.removeEventListener("scroll",qe,{capture:!0}),document.removeEventListener("mousedown",Ge,{capture:!0}),clearInterval($e))})(this)}getOpenerHTMLElement(e){if(null==e)return e;if(e instanceof HTMLElement)return this._isUI5AbstractElement(e)?e.getFocusDomRef():e;let t=this.getRootNode();if(!t)return null;t===this&&(t=document);let o=t.getElementById(e);return t instanceof ShadowRoot&&!o&&(o=document.getElementById(e)),o&&this._isUI5AbstractElement(o)?o.getFocusDomRef():o}shouldCloseDueToOverflow(e,t){const o={Left:t.right,Right:t.left,Top:t.top,Bottom:t.bottom},i=this.getOpenerHTMLElement(this.opener),r=le(i);let s=!1,n=!1;if(r instanceof ot){const e=r.getBoundingClientRect();s=t.top>e.top+e.height,n=t.top+t.height<e.top}return o[e]<0||o[e]+32>r.innerHeight||s||n}shouldCloseDueToNoOpener(e){return 0===e.top&&0===e.bottom&&0===e.left&&0===e.right}isOpenerOutsideViewport(e){return e.bottom<0||e.top>window.innerHeight||e.right<0||e.left>window.innerWidth}_resize(){super._resize(),this.open&&this.reposition()}get _viewportMargin(){return ot.VIEWPORT_MARGIN}reposition(){this._show(),this.resizable&&(this._resizeHandlePlacement=this._popoverResize.getResizeHandlePlacement())}async _show(){super._show();const e=this.getOpenerHTMLElement(this.opener);if(!e)return void Object.assign(this.style,{top:"0px",left:"0px"});if(e&&(0,s.C)(e)&&!e.getDomRef())return;this._opened||this._showOutsideViewport();const t=this.getPopoverSize();let o;if(0===t.width||0===t.height)return;if(this.open&&(this._openerRect=e.getBoundingClientRect()),o=this._oldPlacement&&this.shouldCloseDueToNoOpener(this._openerRect)&&this.isFocusWithin()?this._oldPlacement:this.calcPlacement(this._openerRect,t),this._preventRepositionAndClose||this.isOpenerOutsideViewport(this._openerRect))return await this._waitForDomRef(),this.closePopup();this._oldPlacement=o,this.actualPlacement=o.actualPlacement;let i=ee(this._left,ot.VIEWPORT_MARGIN,document.documentElement.clientWidth-t.width-ot.VIEWPORT_MARGIN);this.actualPlacement===rt.Right&&(i=Math.max(i,this._left));let r=ee(this._top,ot.VIEWPORT_MARGIN,document.documentElement.clientHeight-t.height-ot.VIEWPORT_MARGIN);this.actualPlacement===rt.Bottom&&(r=Math.max(r,this._top)),this.arrowTranslateX=o.arrow.x,this.arrowTranslateY=o.arrow.y,r=this._adjustForIOSKeyboard(r),Object.assign(this.style,{top:`${r}px`,left:`${i}px`}),this._popoverResize.isResized||(this.horizontalAlign===Ye.Stretch&&this._width&&(this.style.width=this._width),this.verticalAlign===je.Stretch&&this._height&&(this.style.height=this._height))}_adjustForIOSKeyboard(e){if(!(0,p.gn)())return e;const t=Math.ceil(this.getBoundingClientRect().top);return e+(Number.parseInt(this.style.top||"0")-t)}_onOpenerIntersection(e){this.open&&!e[0]?.isIntersecting&&this.closePopup()}_observeOpenerVisibility(){this._unobserveOpenerVisibility();const e=this.getOpenerHTMLElement(this.opener);e&&(this._openerIntersectionObserver=new IntersectionObserver(this._onOpenerIntersection.bind(this)),this._openerIntersectionObserver.observe(e))}_unobserveOpenerVisibility(){this._openerIntersectionObserver&&(this._openerIntersectionObserver.disconnect(),this._openerIntersectionObserver=null)}getPopoverSize(e=!1){const t=this.getBoundingClientRect(),o=t.width;let i;const r=this.getDomRef();if(e&&r){const e=r.querySelector(".ui5-popup-header-root"),t=r.querySelector(".ui5-popup-content"),o=r.querySelector(".ui5-popup-footer-root");i=t?.scrollHeight||0,i+=e?.scrollHeight||0,i+=o?.scrollHeight||0}else i=t.height;return{width:o,height:i}}_showOutsideViewport(){Object.assign(this.style,{top:"-10000px",left:"-10000px"})}_isUI5AbstractElement(e){return(0,s.C)(e)&&e.isUI5AbstractElement}get arrowDOM(){return this.shadowRoot.querySelector(".ui5-popover-arrow")}focusOpener(){this.getOpenerHTMLElement(this.opener)?.focus()}calcPlacement(e,t){let o=ot.VIEWPORT_MARGIN,i=0;const r=this.allowTargetOverlap,s=document.documentElement.clientWidth,n=document.documentElement.clientHeight;let a=n,l=s;const h=this.getActualPlacement(e);this._preventRepositionAndClose=this.shouldCloseDueToNoOpener(e)||this.shouldCloseDueToOverflow(h,e);const p=h===rt.Top||h===rt.Bottom;this._popoverResize.isResized||(this.horizontalAlign===Ye.Stretch&&p?(t.width=e.width,this._width=`${e.width}px`):this.verticalAlign!==je.Stretch||p||(t.height=e.height,this._height=`${e.height}px`));const c=this.hideArrow?0:8;switch(h){case rt.Top:o=this.getVerticalLeft(e,t),i=Math.max(e.top-t.height-c,0),r||(a=e.top-c);break;case rt.Bottom:o=this.getVerticalLeft(e,t),i=e.bottom+c,r?i=Math.max(Math.min(i,n-t.height),0):a=n-e.bottom-c;break;case rt.Left:o=Math.max(e.left-t.width-c,0),i=this.getHorizontalTop(e,t),r||(l=e.left-c);break;case rt.Right:o=e.left+e.width+c,i=this.getHorizontalTop(e,t),r?o=Math.max(Math.min(o,s-t.width),0):l=s-e.right-c}p?t.width>s||o<ot.VIEWPORT_MARGIN?o=ot.VIEWPORT_MARGIN:o+t.width>s-ot.VIEWPORT_MARGIN&&(o=s-ot.VIEWPORT_MARGIN-t.width):t.height>n||i<ot.VIEWPORT_MARGIN?i=ot.VIEWPORT_MARGIN:i+t.height>n-ot.VIEWPORT_MARGIN&&(i=n-ot.VIEWPORT_MARGIN-t.height),this._maxHeight=Math.round(a-ot.VIEWPORT_MARGIN),this._maxWidth=Math.round(l-ot.VIEWPORT_MARGIN),(void 0===this._left||Math.abs(this._left-o)>1.5)&&(this._left=Math.round(o)),(void 0===this._top||Math.abs(this._top-i)>1.5)&&(this._top=Math.round(i));const d=Number.parseInt(window.getComputedStyle(this).getPropertyValue("border-radius")),u=this.getArrowPosition(e,t,o,i,p,d);return this._left+=this.getRTLCorrectionLeft(),{arrow:u,top:this._top,left:this._left,actualPlacement:h}}get isVertical(){return this.placement===We.Top||this.placement===We.Bottom}getRTLCorrectionLeft(){return parseFloat(window.getComputedStyle(this).left)-this.getBoundingClientRect().left}getArrowPosition(e,t,o,i,r,s){const n=this._actualHorizontalAlign;let a=n===it.Center||n===it.Stretch;n===it.Right&&o<=e.left&&(a=!0),n===it.Left&&o+t.width>=e.left+e.width&&(a=!0);let l=0;r&&a&&(l=e.left+e.width/2-o-t.width/2);let h=0;r||(h=e.top+e.height/2-i-t.height/2);const p=t.height/2-s-4-2;h=ee(h,-p,p);const c=t.width/2-s-4-2;return l=ee(l,-c,c),{x:Math.round(l),y:Math.round(h)}}fallbackPlacement(e,t,o,i){return o.left>i.width?rt.Left:e-o.right>o.left?rt.Right:t-o.bottom>i.height?rt.Bottom:t-o.bottom<o.top?rt.Top:void 0}getActualPlacement(e){const t=this.placement,o=this.getPopoverSize(!this.allowTargetOverlap);let i=rt.Right;switch(t){case We.Start:i=this.isRtl?rt.Right:rt.Left;break;case We.End:i=this.isRtl?rt.Left:rt.Right;break;case We.Top:i=rt.Top;break;case We.Bottom:i=rt.Bottom}const r=document.documentElement.clientWidth;let s=document.documentElement.clientHeight,n=o.height;switch(this.isVertical&&(n+=this.hideArrow?0:8,s-=ot.VIEWPORT_MARGIN),i){case rt.Top:e.top<n&&e.top<s-e.bottom&&(i=rt.Bottom);break;case rt.Bottom:s-e.bottom<n&&s-e.bottom<e.top&&(i=rt.Top);break;case rt.Left:e.left<o.width&&(i=this.fallbackPlacement(r,s,e,o)||i);break;case rt.Right:r-e.right<o.width&&(i=this.fallbackPlacement(r,s,e,o)||i)}return i}getVerticalLeft(e,t){const o=this._actualHorizontalAlign;let i=ot.VIEWPORT_MARGIN;switch(o){case it.Center:case it.Stretch:i=e.left-(t.width-e.width)/2,i=this._popoverResize.getCorrectedLeft(i);break;case it.Left:i=e.left;break;case it.Right:i=e.right-t.width}return i}getHorizontalTop(e,t){let o=0;switch(this.verticalAlign){case je.Center:case je.Stretch:o=e.top-(t.height-e.height)/2,o=this._popoverResize.getCorrectedTop(o);break;case je.Top:o=e.top;break;case je.Bottom:o=e.bottom-t.height}return o}get isModal(){return this.modal}get _ariaLabelledBy(){if(!this._ariaLabel&&this._displayHeader)return"ui5-popup-header"}get styles(){return{...super.styles,root:{"max-height":this._maxHeight?`${this._maxHeight}px`:"","max-width":this._maxWidth?`${this._maxWidth}px`:""},arrow:{transform:`translate(${this.arrowTranslateX}px, ${this.arrowTranslateY}px)`}}}get classes(){const e=super.classes;return e.root["ui5-popover-root"]=!0,e.root["ui5-popover-rtl"]=this.isRtl,this.resizable&&this._popoverResize.setCorrectResizeHandleClass(e),e}get _displayHeader(){return!(!this.header.length&&!this.headerText)}get _displayFooter(){return!0}get isRtl(){return"rtl"===this.effectiveDir}get _actualHorizontalAlign(){switch(this.horizontalAlign){case Ye.Start:return this.isRtl?it.Right:it.Left;case Ye.End:return this.isRtl?it.Left:it.Right;case Ye.Stretch:return it.Stretch;case Ye.Center:default:return it.Center}}get _showResizeHandle(){return this.resizable&&this.onDesktop}get resizeHandlePlacement(){return this._resizeHandlePlacement}_onResizeMouseDown(e){this._popoverResize.onResizeMouseDown(e),this._resizeHandlePlacement=this._popoverResize.getResizeHandlePlacement()}};nt([(0,a.Z)()],at.prototype,"headerText",void 0),nt([(0,a.Z)()],at.prototype,"placement",void 0),nt([(0,a.Z)()],at.prototype,"horizontalAlign",void 0),nt([(0,a.Z)()],at.prototype,"verticalAlign",void 0),nt([(0,a.Z)({type:Boolean})],at.prototype,"modal",void 0),nt([(0,a.Z)({type:Boolean})],at.prototype,"hideArrow",void 0),nt([(0,a.Z)({type:Boolean})],at.prototype,"allowTargetOverlap",void 0),nt([(0,a.Z)({type:Boolean})],at.prototype,"resizable",void 0),nt([(0,a.Z)({type:Number,noAttribute:!0})],at.prototype,"arrowTranslateX",void 0),nt([(0,a.Z)({type:Number,noAttribute:!0})],at.prototype,"arrowTranslateY",void 0),nt([(0,a.Z)()],at.prototype,"actualPlacement",void 0),nt([(0,a.Z)({type:Number,noAttribute:!0})],at.prototype,"_maxHeight",void 0),nt([(0,a.Z)({type:Number,noAttribute:!0})],at.prototype,"_maxWidth",void 0),nt([(0,a.Z)({noAttribute:!0})],at.prototype,"_resizeHandlePlacement",void 0),nt([(0,_.Z)()],at.prototype,"header",void 0),nt([(0,_.Z)()],at.prototype,"footer",void 0),nt([(0,a.Z)({converter:Ne})],at.prototype,"opener",null),at=ot=nt([(0,n.Z)({tag:"ui5-popover",styles:[Te.styles,Oe,':host{box-shadow:var(--_ui5_popover_box_shadow);background-color:var(--_ui5_popover_background);max-width:calc(100vw - (100vw - 100%) - 2 * var(--_ui5_popup_viewport_margin))}:host([hide-arrow]){box-shadow:var(--_ui5_popover_no_arrow_box_shadow)}:host([actual-placement="Bottom"]) .ui5-popover-arrow{left:calc(50% - .5625rem);top:-.5rem;height:.5rem}:host([actual-placement="Bottom"]) .ui5-popover-arrow:after{margin:var(--_ui5_popover_upward_arrow_margin)}:host([actual-placement="Left"]) .ui5-popover-arrow{top:calc(50% - .5625rem);right:-.5625rem;width:.5625rem}:host([actual-placement="Left"]) .ui5-popover-arrow:after{margin:var(--_ui5_popover_right_arrow_margin)}:host([actual-placement="Top"]) .ui5-popover-arrow{left:calc(50% - .5625rem);height:.5625rem;top:100%}:host([actual-placement="Top"]) .ui5-popover-arrow:after{margin:var(--_ui5_popover_downward_arrow_margin)}:host(:not([actual-placement])) .ui5-popover-arrow,:host([actual-placement="Right"]) .ui5-popover-arrow{left:-.5625rem;top:calc(50% - .5625rem);width:.5625rem;height:1rem}:host(:not([actual-placement])) .ui5-popover-arrow:after,:host([actual-placement="Right"]) .ui5-popover-arrow:after{margin:var(--_ui5_popover_left_arrow_margin)}:host([hide-arrow]) .ui5-popover-arrow{display:none}.ui5-popover-root{min-width:6.25rem}.ui5-popover-arrow{pointer-events:none;display:block;width:1rem;height:1rem;position:absolute;overflow:hidden}.ui5-popover-arrow:after{content:"";display:block;width:.7rem;height:.7rem;background-color:var(--_ui5_popover_background);box-shadow:var(--_ui5_popover_box_shadow);transform:rotate(-45deg)}:host([modal])::backdrop{background-color:var(--_ui5_popup_block_layer_background);opacity:var(--_ui5_popup_block_layer_opacity)}:host([modal]) .ui5-block-layer{display:block}.ui5-popover-resize-handle{position:absolute;width:1.5rem;height:1.5rem;border-radius:50%;z-index:1}.ui5-popover-resize-handle [ui5-icon]{position:absolute;width:1rem;height:1rem;cursor:inherit;color:var(--sapButton_Lite_TextColor);--rotAngle: 0;--scaleX: 1;transform:rotate(var(--rotAngle)) scaleX(var(--scaleX))}.ui5-popover-rtl .ui5-popover-resize-handle [ui5-icon]{--scaleX: -1}.ui5-popover-resize-handle-top-right .ui5-popover-resize-handle{top:-.5rem;right:-.5rem;cursor:ne-resize}.ui5-popover-resize-handle-top-right .ui5-popover-resize-handle [ui5-icon]{bottom:0;left:0;--rotAngle: 270deg}.ui5-popover-resize-handle-top-left .ui5-popover-resize-handle{top:-.5rem;left:-.5rem;cursor:nw-resize}.ui5-popover-resize-handle-top-left .ui5-popover-resize-handle [ui5-icon]{bottom:0;right:0;--rotAngle: 180deg}.ui5-popover-resize-handle-bottom-left .ui5-popover-resize-handle{bottom:-.5rem;left:-.5rem;cursor:ne-resize}.ui5-popover-resize-handle-bottom-left .ui5-popover-resize-handle [ui5-icon]{top:0;right:0;--rotAngle: 90deg}.ui5-popover-resize-handle-bottom-right .ui5-popover-resize-handle{bottom:-.5rem;right:-.5rem;cursor:nw-resize}.ui5-popover-resize-handle-bottom-right .ui5-popover-resize-handle [ui5-icon]{top:0;left:0}.ui5-popover-resizing,.ui5-popover-resizing *{user-select:none!important}\n'],template:K})],at),at.define();const lt=at,ht=(0,st.Z)("isPopover");(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");var pt,ct=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};let dt=pt=class extends lt{constructor(){super(),this.contentOnlyOnDesktop=!1,this._hideHeader=!1,this._hideCloseButton=!1}async openPopup(){(0,p.Mn)()?this._dialog&&(this._dialog.open=!0):await super.openPopup()}async _show(){if(!(0,p.Mn)())return super._show()}handleOpenOnEnterDOM(){this.open&&!(0,p.Mn)()&&(this.showPopover(),this.openPopup())}_dialogCloseButtonClick(){this.closePopup()}closePopup(e=!1,t=!1,o=!1){(0,p.Mn)()?this._dialog?.closePopup(e,t,o):super.closePopup(e,t,o)}toggle(e){this.open?this.closePopup():(this.opener=e,this.open=!0)}get classes(){const e=super.classes;return e.header={"ui5-responsive-popover-header":!0,"ui5-responsive-popover-header-no-title":!this.headerText},e}get _dialog(){return this.shadowRoot.querySelector("[ui5-dialog]")}get contentDOM(){return(0,p.Mn)()?this._dialog.contentDOM:super.contentDOM}get _isPhone(){return(0,p.Mn)()}get _displayHeader(){return((0,p.Mn)()||!this.contentOnlyOnDesktop)&&super._displayHeader}get _displayFooter(){return(0,p.Mn)()||!this.contentOnlyOnDesktop}get _closeDialogAriaLabel(){return pt.i18nBundle.getText(u.pDh)}_beforeDialogOpen(){this._opened=!0,this.open=!0,this.fireDecoratorEvent("before-open")}_afterDialogOpen(){this.fireDecoratorEvent("open")}_beforeDialogClose(e){this.fireDecoratorEvent("before-close",e.detail)}_afterDialogClose(){this._opened=!1,this.open=!1,this.fireDecoratorEvent("close")}get isModal(){return(0,p.Mn)()?this._dialog.isModal:super.isModal}};ct([(0,a.Z)({type:Boolean})],dt.prototype,"contentOnlyOnDesktop",void 0),ct([(0,a.Z)({type:Boolean})],dt.prototype,"_hideHeader",void 0),ct([(0,a.Z)({type:Boolean})],dt.prototype,"_hideCloseButton",void 0),ct([(0,l.Z)("@ui5/webcomponents")],dt,"i18nBundle",void 0),dt=pt=ct([(0,n.Z)({tag:"ui5-responsive-popover",styles:[lt.styles,":host{min-width:6.25rem;min-height:2rem}:host([on-phone]){display:contents}.ui5-responsive-popover-header{height:var(--_ui5-responsive_popover_header_height);display:flex;justify-content:var(--_ui5_popup_header_prop_header_text_alignment);align-items:center;width:100%}.ui5-responsive-popover-header-text{width:calc(100% - var(--_ui5_button_base_min_width))}.ui5-responsive-popover-header-no-title{justify-content:flex-end}\n"],template:function(){return this._isPhone?(0,r.BX)(Se,{"root-element":!0,accessibleName:this.accessibleName,accessibleNameRef:this.accessibleNameRef,accessibleDescription:this.accessibleDescription,accessibleDescriptionRef:this.accessibleDescriptionRef,accessibleRole:this.accessibleRole,stretch:!0,preventInitialFocus:this.preventInitialFocus,preventFocusRestore:this.preventFocusRestore,initialFocus:this.initialFocus,onBeforeOpen:this._beforeDialogOpen,onOpen:this._afterDialogOpen,onBeforeClose:this._beforeDialogClose,onClose:this._afterDialogClose,exportparts:"content, header, footer",open:this.open,children:[!this._hideHeader&&(0,r.tZ)(r.HY,{children:this.header.length?(0,r.tZ)("slot",{slot:"header",name:"header"}):(0,r.BX)("div",{class:this.classes.header,slot:"header",children:[this.headerText&&(0,r.tZ)(G,{level:"H1",wrappingType:"None",class:"ui5-popup-header-text ui5-responsive-popover-header-text",children:this.headerText}),!this._hideCloseButton&&(0,r.tZ)(E.Z,{icon:A.ZP,design:"Transparent",accessibleName:this._closeDialogAriaLabel,onClick:this._dialogCloseButtonClick})]})}),(0,r.tZ)("slot",{}),(0,r.tZ)("slot",{slot:"footer",name:"footer"})]}):K.call(this)}})],dt),dt.define();const ut=dt;(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>f.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>b.Z),"host");var _t,gt=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};let vt=_t=class extends s.Z{constructor(){super(...arguments),this.maxCharacters=100,this.overflowMode="InPlace",this.emptyIndicatorMode="Off",this._expanded=!1}getFocusDomRef(){return this._usePopover?this.shadowRoot?.querySelector("[ui5-responsive-popover]"):this.shadowRoot?.querySelector("[ui5-link]")}get _displayedText(){return this._expanded&&!this._usePopover?this.text:this.text?.substring(0,this.maxCharacters)}get _maxCharactersExceeded(){return(this.text?.length||0)>this.maxCharacters}get _usePopover(){return this.overflowMode===c.Popover}get _ellipsisText(){return this._expanded&&!this._usePopover?" ":"... "}get _textForToggle(){return this._expanded?_t.i18nBundle.getText(u.gMI):_t.i18nBundle.getText(u.j1v)}get _closeButtonText(){return _t.i18nBundle.getText(u.XvI)}get _accessibilityAttributesForToggle(){return this._usePopover?{expanded:this._expanded,hasPopup:"dialog"}:{expanded:this._expanded}}get _accessibleNameForToggle(){if(this._usePopover)return this._expanded?_t.i18nBundle.getText(u.m58):_t.i18nBundle.getText(u.PJ)}_handlePopoverClose(){(0,p.Mn)()||(this._expanded=!1)}_handleToggleClick(){this._expanded=!this._expanded}_handleCloseButtonClick(e){this._expanded=!1,e.stopPropagation()}};gt([(0,a.Z)()],vt.prototype,"text",void 0),gt([(0,a.Z)({type:Number})],vt.prototype,"maxCharacters",void 0),gt([(0,a.Z)()],vt.prototype,"overflowMode",void 0),gt([(0,a.Z)()],vt.prototype,"emptyIndicatorMode",void 0),gt([(0,a.Z)({type:Boolean})],vt.prototype,"_expanded",void 0),gt([(0,l.Z)("@ui5/webcomponents")],vt,"i18nBundle",void 0),vt=_t=gt([(0,n.Z)({tag:"ui5-expandable-text",renderer:h.Z,styles:":host{display:inline-block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);color:var(--sapTextColor)}:host([hidden]){display:none}.ui5-exp-text-text{display:inline}.ui5-exp-text-text,.ui5-exp-text-toggle{font-family:inherit;font-size:inherit}.ui5-exp-text-text,.ui5-exp-text-ellipsis{color:inherit}.ui5-exp-text-popover::part(content){padding-inline:1rem}.ui5-exp-text-footer{width:100%;display:flex;align-items:center;justify-content:flex-end}\n",template:function(){return(0,r.BX)("div",{children:[(0,r.tZ)(R,{class:"ui5-exp-text-text",emptyIndicatorMode:this.emptyIndicatorMode,children:this._displayedText}),this._maxCharactersExceeded&&(0,r.BX)(r.HY,{children:[(0,r.tZ)("span",{class:"ui5-exp-text-ellipsis",children:this._ellipsisText}),(0,r.tZ)(L,{id:"toggle",class:"ui5-exp-text-toggle",accessibleRole:"Button",accessibleName:this._accessibleNameForToggle,accessibilityAttributes:this._accessibilityAttributesForToggle,onClick:this._handleToggleClick,children:this._textForToggle}),this._usePopover&&(0,r.BX)(ut,{open:this._expanded,opener:"toggle",accessibleNameRef:"popover-text",contentOnlyOnDesktop:!0,_hideHeader:!0,class:"ui5-exp-text-popover",onClose:this._handlePopoverClose,children:[(0,r.tZ)(R,{id:"popover-text",children:this.text}),(0,r.tZ)("div",{slot:"footer",class:"ui5-exp-text-footer",children:(0,r.tZ)(E.Z,{design:"Transparent",onClick:this._handleCloseButtonClick,children:this._closeButtonText})})]})]})]})}})],vt),vt.define();const mt=vt;function ft(e){const{className:t,text:o,maxCharacters:i,part:s}=e;return(0,r.tZ)(mt,{part:s,class:t,text:o,maxCharacters:i})}}}]);
|