@sapui5/sap.fe.core 1.111.0 → 1.111.3

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.
@@ -77,10 +77,10 @@ sap.ui.predefine("sap/fe/core/buildingBlocks/BuildingBlockFragment", ["sap/fe/co
77
77
  * SAP UI development toolkit for HTML5 (SAPUI5)
78
78
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
79
79
  */
80
- sap.ui.predefine("sap/fe/core/buildingBlocks/BuildingBlockRuntime", ["sap/base/Log","sap/base/util/deepClone","sap/base/util/uid","sap/fe/core/buildingBlocks/AttributeModel","sap/fe/core/converters/helpers/ConfigurableObject","sap/fe/core/helpers/BindingToolkit","sap/fe/core/helpers/TypeGuards","sap/fe/macros/ResourceModel","sap/ui/base/BindingParser","sap/ui/core/util/XMLPreprocessor","./TraceInfo"],function(e,t,n,i,o,s,r,a,l,c,f){"use strict";var d={};var u=r.isFunctionArray;var p=r.isContext;var m=s.isBindingToolkitExpression;var g=s.compileExpression;var h=o.Placement;const b="sap.fe.core.buildingBlocks.BuildingBlockRuntime";const x=new DOMParser;let y=false;function v(e){return e.apiVersion===undefined||e.apiVersion===1}function C(e,t,n,i){const o=t[i];const s=o===null||o===void 0?void 0:o.getObject();if(n.required===true&&(!o||s===null)){throw new Error(`${e}: Required metadataContext '${i}' is missing`)}else if(s){if(s.hasOwnProperty("$kind")&&s.$kind!==undefined&&n.$kind!==undefined){if(n.$kind.indexOf(s.$kind)===-1){throw new Error(`${e}: '${i}' must be '$kind' '${n["$kind"]}' but is '${s.$kind}': ${o.getPath()}`)}}else if(s.hasOwnProperty("$Type")&&s.$Type!==undefined&&n.$Type){if(n.$Type.indexOf(s.$Type)===-1){throw new Error(`${e}: '${i}' must be '$Type' '${n["$Type"]}' but is '${s.$Type}': ${o.getPath()}`)}}}}function $(t,n,i,o){const s=n.metadataContexts&&Object.keys(n.metadataContexts)||[],r=n.properties&&Object.keys(n.properties)||[],a={};const l=o.getAttributeNames();for(const e of l){a[e]=true}s.forEach(function(e){const o=n.metadataContexts[e];C(t,i,o,e);delete a[e]});r.forEach(function(e){const i=n.properties[e];if(!o.hasAttribute(e)){if(i.required&&!i.hasOwnProperty("defaultValue")){throw new Error(`${t}: `+`Required property '${e}' is missing`)}}else{delete a[e]}});Object.keys(a).forEach(function(n){if(n.indexOf(":")<0&&!n.startsWith("xmlns")){e.warning(`Unchecked parameter: ${t}: ${n}`,undefined,b)}})}d.validateMacroSignature=$;const w="sap.ui.core.Element";const k="sap.ui.model.Context";d.SAP_UI_MODEL_CONTEXT=k;function O(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let n=arguments.length>2?arguments[2]:undefined;if(e){const i={};const o={dependents:{type:w},customData:{type:w}};if(n===2){o.dependents.slot="dependents"}const s={};let r;Object.keys(e.properties).forEach(function(t){if(e.properties[t].type!==k){i[t]=e.properties[t]}else{s[t]=e.properties[t]}});if(e.events!==undefined){Object.keys(e.events).forEach(function(t){i[t]={type:"function",...e.events[t]}})}if(e.aggregations!==undefined){Object.keys(e.aggregations).forEach(function(t){o[t]=e.aggregations[t];if(o[t].isDefault){r=t}})}return{properties:i,aggregations:o,defaultAggregation:r,metadataContexts:s,isOpen:t}}else{return{metadataContexts:{},aggregations:{dependents:{type:w},customData:{type:w}},properties:{},isOpen:t}}}function P(e,t){let n;if(t&&t.startsWith("/")){n=t}else{let i=e.currentContextPath.getPath();if(!i.endsWith("/")){i+="/"}n=i+t}return{model:"metaModel",path:n}}function A(e,t,n){let i;if(n.startsWith("/uid--")){const t=W[n];e.models.converterContext.setProperty(n,t);i={model:"converterContext",path:n};delete W[n]}else if(t==="metaPath"&&e.currentContextPath||t==="contextPath"){i=P(e,n)}else if(n&&n.startsWith("/")){i={model:"metaModel",path:n}}else{i={model:"metaModel",path:e.bindingContexts.entitySet?e.bindingContexts.entitySet.getPath(n):n}}return i}function E(e,t,n,i,o,s){let r;if(!o&&t.hasAttribute(n)){const i=t.getAttribute(n);r=l.complexParser(i);if(!r){r=A(e,n,i)}}else if(e.bindingContexts.hasOwnProperty(n)){r={model:n,path:""}}else if(s){try{if(i.getContext(`${n}>`)){r={model:n,path:""}}}catch(e){return undefined}}return r}async function T(n,i,o,s,r){const a=n.properties;const l=Object.keys(a);const c={};for(const n of l){if(a[n].type==="object"){c[n]=t(a[n].defaultValue||{})}else{c[n]=a[n].defaultValue}if(i.hasAttribute(n)&&o&&a[n].isPublic===false){e.error(`Property ${n} was ignored as it is not intended for public usage`)}else if(i.hasAttribute(n)){await s.visitAttribute(i,i.attributes.getNamedItem(n));let e=i.getAttribute(n);if(e!==undefined&&e!==null){if(r===2&&typeof e==="string"&&!e.startsWith("{")){switch(a[n].type){case"boolean":e=e==="true";break;case"number":e=Number(e);break}}e=e===null?undefined:e;c[n]=e}}}return c}function j(e,t,n,i,o,s,r){t.currentContextPath=t.bindingContexts.contextPath;const a={};const l={};const c=e.metadataContexts;const f=Object.keys(c);const d=f.indexOf("contextPath");if(d!==-1){const e=f.splice(d,1);f.splice(0,0,e[0])}for(const d of f){const f=i&&c[d].isPublic===false&&n.hasAttribute(d);const u=E(t,n,d,o,f,e.isOpen);if(u){u.name=d;I(s,o,u,r);if((d==="entitySet"||d==="contextPath")&&!t.bindingContexts.hasOwnProperty(d)){t.bindingContexts[d]=s[d]}if(d==="contextPath"){t.currentContextPath=s[d]}l[d]=s[d]}else{a[d]=true}}return{mMissingContext:a,propertyValues:l}}function N(e,t){const n={};if(e&&e.children.length>0){const i=e.children;for(let e=0;e<i.length;e++){const o=i[e];let s=o.getAttribute("key")||o.getAttribute("id");if(s){s=`InlineXML_${s}`;o.setAttribute("key",s);let e={key:s,position:{placement:o.getAttribute("placement")||h.After,anchor:o.getAttribute("anchor")||undefined},type:"Slot"};if(t){e=t(o,e)}n[e.key]=e}}}return n}async function B(e,t,n,i,o,s){const r={};if(e.firstElementChild!==null){let a=e.firstElementChild;if(s===2){while(a!==null){const e=a.localName;let t=e;if(t[0].toUpperCase()===t[0]){t=n.defaultAggregation||""}const i=n.aggregations[t];if(i!==undefined&&!i.slot){const e=N(a,i.processAggregations);o[t]=e;for(const t in e){n.aggregations[t]=e[t]}}a=a.nextElementSibling}}if(s!==2){await t.visitChildNodes(e)}a=e.firstElementChild;while(a!==null){const l=a.nextElementSibling;const c=a.localName;let f=c;if(f[0].toUpperCase()===f[0]){f=n.defaultAggregation||""}if(Object.keys(n.aggregations).indexOf(f)!==-1&&(!i||n.aggregations[f].isPublic===true)){if(s===2){const i=n.aggregations[f];if(!i.slot&&a!==null&&a.children.length>0){await t.visitNode(a);let n=a.firstElementChild;while(n){const t=n.nextElementSibling;if(!i.hasVirtualNode){const t=document.createElementNS(e.namespaceURI,n.getAttribute("key"));t.appendChild(n);r[n.getAttribute("key")]=t}else{r[n.getAttribute("key")]=n}n.removeAttribute("key");n=t}}else if(i.slot){if(f!==c){if(!r[f]){const t=document.createElementNS(e.namespaceURI,f);r[f]=t}r[f].appendChild(a)}else{r[f]=a}}}else{await t.visitNode(a);r[a.localName]=a}}else if(Object.keys(n.properties).indexOf(f)!==-1){await t.visitNode(a);if(n.properties[f].type==="object"){const e={};const t=a.getAttributeNames();for(const n of t){e[n]=a.getAttribute(n)}if(a.children.length){for(let t=0;t<a.children.length;t++){const n=a.children[t];const i=n.localName;const o={};const s=n.getAttributeNames();for(const e of s){o[e]=n.getAttribute(e)}e[i]=o}}o[f]=e}else if(n.properties[f].type==="array"){if(a!==null&&a.children.length>0){const e=a.children;const t=[];for(let n=0;n<e.length;n++){const i=e[n];const o={};const s=i.getAttributeNames();for(const e of s){o[e]=i.getAttribute(e)}t.push(o)}o[f]=t}}}a=l}}return r}function S(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Object.keys(e).length>0){Object.keys(e).forEach(function(o){const s=e[o];if(n!==null&&n!==undefined&&s){const e=s.firstElementChild;if(o!=="customData"&&o!=="dependents"){const i=t[o]!==undefined&&t[o].slot||o;const s=n.querySelector(`slot[name='${i}']`);if(s!==null){const t=M(n,o,e);s.replaceWith(...t.children)}}else if(i&&e!==null){const t=M(n,o,e);n.appendChild(t)}}})}}function M(e,t,n){const i=document.createElementNS(e.namespaceURI,t.replace(/:/gi,"_"));while(n){const e=n.nextElementSibling;i.appendChild(n);n=e}return i}async function V(t,n,o){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const r=t.fragment||`${t.namespace}.${t.xmlTag||t.name}`;const l="this";const c={};const d={};const u=o.getSettings();if(u.models["sap.fe.i18n"]){u.models["sap.fe.i18n"].getResourceBundle().then(function(e){a.setApplicationI18nBundle(e)}).catch(function(t){e.error(t)})}const m=O(t.metadata,t.isOpen,t.apiVersion);if(!u[r]){u[r]={}}let g=await T(m,n,s,o,t.apiVersion);const{mMissingContext:h,propertyValues:b}=j(m,u,n,s,o,c,d);g=Object.assign(g,b);const x=Object.keys(g);try{const a=await B(n,o,m,s,g,t.apiVersion);let d;let b={};if(u.models.viewData){b=u.models.viewData.getProperty("/controlConfiguration")}let x=g;if(v(t)&&t.create){x=t.create.call(t,g,b,u,a,s);Object.keys(m.metadataContexts).forEach(function(e){if(m.metadataContexts[e].computed===true){c[e]=x[e]}});Object.keys(h).forEach(function(e){if(x.hasOwnProperty(e)){c[e]=x[e]}})}else if(t.apiVersion===2){Object.keys(g).forEach(e=>{var n,i,o;let s=g[e];const r=t===null||t===void 0?void 0:(n=t.metadata)===null||n===void 0?void 0:n.properties[e];if(r!==null&&r!==void 0&&r.validate){s=r.validate(s)||s}if((i=s)!==null&&i!==void 0&&(o=i.isA)!==null&&o!==void 0&&o.call(i,k)&&!s.getModel().isA("sap.ui.model.odata.v4.ODataMetaModel")){g[e]=s.getObject()}});const e=t;g.isPublic=s;d=new e({...g,...a},b,u);x=d.getProperties();Object.keys(m.metadataContexts).forEach(function(e){if(x.hasOwnProperty(e)){const t=x[e];if(typeof t==="object"&&!p(t)){const n=F(t);u.models.converterContext.setProperty(n,t);const i=u.models.converterContext.createBindingContext(n);delete W[n];c[e]=i}else if(!c.hasOwnProperty(e)&&t!==undefined){c[e]=t}}})}const w=new i(n,x,t);c[l]=w.createBindingContext("/");let O;if(f.isTraceInfoActive()){const e=f.traceMacroCalls(r,m,c,n,o);if(e!==null&&e!==void 0&&e.macroInfo){O=u["_macroInfo"];u["_macroInfo"]=e.macroInfo}}$(r,m,c,n);const P=o.with(c,t.isOpen!==undefined?!t.isOpen:true);const A=n.parentNode;let E;let T;let j=true;if(A){E=Array.from(A.children).indexOf(n);if(v(t)&&t.getTemplate||t.apiVersion===2&&!t.fragment){let i;let o=false;if(t.apiVersion===2&&d!==undefined){i=await d.getTemplate(n);if(t.isRuntime===true){for(const e in W){const t=W[e];u.models.converterContext.setProperty(e,t);delete W[e]}}o=true}else if(t.getTemplate){i=await t.getTemplate(x)}let s="";if(i){let r=false;let l=R(i,o);for(const e of l){const t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);let n=t.nextNode();if(e.localName==="parsererror"){r=true}while(n){if(n.textContent&&n.textContent.trim().length>0){s=n.textContent}n=t.nextNode()}}if(r){e.error(`Error while processing building block ${t.xmlTag||t.name}`);try{var C;y=true;const e=(C=d)!==null&&C!==void 0&&C.getTemplate?await d.getTemplate(n):await t.getTemplate(x);l=R(e,true)}finally{y=false}}else if(s.length>0){e.error(`Error while processing building block ${t.xmlTag||t.name}`);const n=L([`Error while processing building block ${t.xmlTag||t.name}`,`Trailing text was found in the XML: ${s}`],l.map(e=>e.outerHTML).join("\n"));l=R(n,true)}n.replaceWith(...l);n=A.children[E];S(a,m.aggregations,n,j);j=false;T=P.visitNode(n)}else{n.remove();T=Promise.resolve()}}else{T=P.insertFragment(r,n)}await T;const i=A.children[E];S(a,m.aggregations,i,j);if(i!==undefined){const e=i.querySelectorAll("slot");e.forEach(function(e){e.remove()})}}if(O){u["_macroInfo"]=O}else{delete u["_macroInfo"]}}catch(i){const o={initialProperties:{},resolvedProperties:{},missingContexts:h};for(const e of x){const t=g[e];if(p(t)){o.initialProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.initialProperties[e]=t}}for(const e in g){const t=g[e];if(!x.includes(e)){if(p(t)){o.resolvedProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.resolvedProperties[e]=t}}}e.error(i);const s=L([`Error while processing building block ${t.name}`],n.outerHTML,o,i.stack);const r=R(s,true);n.replaceWith(...r)}}function I(e,t,n,i){const o=n.name||n.model||undefined;if(i[o]){return}try{let s=n.path;if(n.model!==null){s=`${n.model}>${s}`}const r=t.getSettings();if(n.model==="converterContext"&&n.path.length>0){e[o]=r.models[n.model].getContext(n.path)}else if(!r.bindingContexts[n.model]&&r.models[n.model]){e[o]=r.models[n.model].getContext(n.path)}else{e[o]=t.getContext(s)}i[o]=e[o]}catch(e){}}function D(e){c.plugIn(async(t,n)=>V(e,t,n),e.namespace,e.xmlTag||e.name);if(e.publicNamespace){c.plugIn(async(t,n)=>V(e,t,n,true),e.publicNamespace,e.xmlTag||e.name)}}d.registerBuildingBlock=D;function L(e,t,n,i){const o=e.map(e=>U`<m:Label text="${_(e)}"/>`);let s="";if(i){const e=btoa(`<pre>${i}</pre>`);s=U`<m:FormattedText htmlText="${`{= BBF.base64Decode('${e}') }`}" />`}let r="";if(n){r=U`<m:VBox>
80
+ sap.ui.predefine("sap/fe/core/buildingBlocks/BuildingBlockRuntime", ["sap/base/Log","sap/base/util/deepClone","sap/base/util/uid","sap/fe/core/buildingBlocks/AttributeModel","sap/fe/core/converters/helpers/ConfigurableObject","sap/fe/core/helpers/BindingToolkit","sap/fe/core/helpers/TypeGuards","sap/fe/macros/ResourceModel","sap/ui/base/BindingParser","sap/ui/core/util/XMLPreprocessor","./TraceInfo"],function(e,t,n,i,o,s,r,a,l,c,f){"use strict";var d={};var u=r.isFunctionArray;var p=r.isContext;var m=s.isBindingToolkitExpression;var g=s.compileExpression;var h=o.Placement;const b="sap.fe.core.buildingBlocks.BuildingBlockRuntime";const x="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1";const y=new DOMParser;let v=false;function C(e){return e.apiVersion===undefined||e.apiVersion===1}function $(e,t,n,i){const o=t[i];const s=o===null||o===void 0?void 0:o.getObject();if(n.required===true&&(!o||s===null)){throw new Error(`${e}: Required metadataContext '${i}' is missing`)}else if(s){if(s.hasOwnProperty("$kind")&&s.$kind!==undefined&&n.$kind!==undefined){if(n.$kind.indexOf(s.$kind)===-1){throw new Error(`${e}: '${i}' must be '$kind' '${n["$kind"]}' but is '${s.$kind}': ${o.getPath()}`)}}else if(s.hasOwnProperty("$Type")&&s.$Type!==undefined&&n.$Type){if(n.$Type.indexOf(s.$Type)===-1){throw new Error(`${e}: '${i}' must be '$Type' '${n["$Type"]}' but is '${s.$Type}': ${o.getPath()}`)}}}}function w(t,n,i,o){const s=n.metadataContexts&&Object.keys(n.metadataContexts)||[],r=n.properties&&Object.keys(n.properties)||[],a={};const l=o.getAttributeNames();for(const e of l){a[e]=true}s.forEach(function(e){const o=n.metadataContexts[e];$(t,i,o,e);delete a[e]});r.forEach(function(e){const i=n.properties[e];if(!o.hasAttribute(e)){if(i.required&&!i.hasOwnProperty("defaultValue")){throw new Error(`${t}: `+`Required property '${e}' is missing`)}}else{delete a[e]}});Object.keys(a).forEach(function(n){if(n.indexOf(":")<0&&!n.startsWith("xmlns")){e.warning(`Unchecked parameter: ${t}: ${n}`,undefined,b)}})}d.validateMacroSignature=w;const O="sap.ui.core.Element";const k="sap.ui.model.Context";d.SAP_UI_MODEL_CONTEXT=k;function P(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let n=arguments.length>2?arguments[2]:undefined;if(e){const i={};const o={dependents:{type:O},customData:{type:O}};if(n===2){o.dependents.slot="dependents";o.customData.slot="customData"}const s={};let r;Object.keys(e.properties).forEach(function(t){if(e.properties[t].type!==k){i[t]=e.properties[t]}else{s[t]=e.properties[t]}});if(e.events!==undefined){Object.keys(e.events).forEach(function(t){i[t]={type:"function",...e.events[t]}})}if(e.aggregations!==undefined){Object.keys(e.aggregations).forEach(function(t){o[t]=e.aggregations[t];if(o[t].isDefault){r=t}})}return{properties:i,aggregations:o,defaultAggregation:r,metadataContexts:s,isOpen:t}}else{return{metadataContexts:{},aggregations:{dependents:{type:O},customData:{type:O}},properties:{},isOpen:t}}}function A(e,t){let n;if(t&&t.startsWith("/")){n=t}else{let i=e.currentContextPath.getPath();if(!i.endsWith("/")){i+="/"}n=i+t}return{model:"metaModel",path:n}}function E(e,t,n){let i;if(n.startsWith("/uid--")){const t=R[n];e.models.converterContext.setProperty(n,t);i={model:"converterContext",path:n};delete R[n]}else if(t==="metaPath"&&e.currentContextPath||t==="contextPath"){i=A(e,n)}else if(n&&n.startsWith("/")){i={model:"metaModel",path:n}}else{i={model:"metaModel",path:e.bindingContexts.entitySet?e.bindingContexts.entitySet.getPath(n):n}}return i}function T(e,t,n,i,o,s){let r;if(!o&&t.hasAttribute(n)){const i=t.getAttribute(n);r=l.complexParser(i);if(!r){r=E(e,n,i)}}else if(e.bindingContexts.hasOwnProperty(n)){r={model:n,path:""}}else if(s){try{if(i.getContext(`${n}>`)){r={model:n,path:""}}}catch(e){return undefined}}return r}async function N(n,i,o,s,r){const a=n.properties;const l=Object.keys(a);const c={};for(const n of l){if(a[n].type==="object"){c[n]=t(a[n].defaultValue||{})}else{c[n]=a[n].defaultValue}if(i.hasAttribute(n)&&o&&a[n].isPublic===false){e.error(`Property ${n} was ignored as it is not intended for public usage`)}else if(i.hasAttribute(n)){await s.visitAttribute(i,i.attributes.getNamedItem(n));let e=i.getAttribute(n);if(e!==undefined&&e!==null){if(r===2&&typeof e==="string"&&!e.startsWith("{")){switch(a[n].type){case"boolean":e=e==="true";break;case"number":e=Number(e);break}}e=e===null?undefined:e;c[n]=e}}}return c}function j(e,t,n,i,o,s,r){t.currentContextPath=t.bindingContexts.contextPath;const a={};const l={};const c=e.metadataContexts;const f=Object.keys(c);const d=f.indexOf("contextPath");if(d!==-1){const e=f.splice(d,1);f.splice(0,0,e[0])}for(const d of f){const f=i&&c[d].isPublic===false&&n.hasAttribute(d);const u=T(t,n,d,o,f,e.isOpen);if(u){u.name=d;D(s,o,u,r);if((d==="entitySet"||d==="contextPath")&&!t.bindingContexts.hasOwnProperty(d)){t.bindingContexts[d]=s[d]}if(d==="contextPath"){t.currentContextPath=s[d]}l[d]=s[d]}else{a[d]=true}}return{mMissingContext:a,propertyValues:l}}function B(e,t){const n={};if(e&&e.children.length>0){const i=e.children;for(let e=0;e<i.length;e++){const o=i[e];let s=o.getAttribute("key")||o.getAttribute("id");if(s){s=`InlineXML_${s}`;o.setAttribute("key",s);let e={key:s,position:{placement:o.getAttribute("placement")||h.After,anchor:o.getAttribute("anchor")||undefined},type:"Slot"};if(t){e=t(o,e)}n[e.key]=e}}}return n}async function S(e,t,n,i,o,s){const r={};if(e.firstElementChild!==null){let a=e.firstElementChild;if(s===2){while(a!==null){if(a.namespaceURI===x){const e=a.parentNode;let n;if(e){n=Array.from(e.children).indexOf(a);await t.visitNode(a);a=e.children[n]?e.children[n]:null}else{a=a.nextElementSibling}}else{const e=a.localName;let t=e;if(t[0].toUpperCase()===t[0]){t=n.defaultAggregation||""}const i=n.aggregations[t];if(i!==undefined&&!i.slot){const e=B(a,i.processAggregations);o[t]=e;for(const t in e){n.aggregations[t]=e[t]}}a=a.nextElementSibling}}}if(s!==2){await t.visitChildNodes(e)}a=e.firstElementChild;while(a!==null){const l=a.nextElementSibling;const c=a.localName;let f=c;if(f[0].toUpperCase()===f[0]){f=n.defaultAggregation||""}if(Object.keys(n.aggregations).indexOf(f)!==-1&&(!i||n.aggregations[f].isPublic===true)){if(s===2){const i=n.aggregations[f];if(!i.slot&&a!==null&&a.children.length>0){await t.visitNode(a);let n=a.firstElementChild;while(n){const t=n.nextElementSibling;if(!i.hasVirtualNode){const t=document.createElementNS(e.namespaceURI,n.getAttribute("key"));t.appendChild(n);r[n.getAttribute("key")]=t}else{r[n.getAttribute("key")]=n}n.removeAttribute("key");n=t}}else if(i.slot){if(f!==c){if(!r[f]){const t=document.createElementNS(e.namespaceURI,f);r[f]=t}r[f].appendChild(a)}else{r[f]=a}}}else{await t.visitNode(a);r[a.localName]=a}}else if(Object.keys(n.properties).indexOf(f)!==-1){await t.visitNode(a);if(n.properties[f].type==="object"){const e={};const t=a.getAttributeNames();for(const n of t){e[n]=a.getAttribute(n)}if(a.children.length){for(let t=0;t<a.children.length;t++){const n=a.children[t];const i=n.localName;const o={};const s=n.getAttributeNames();for(const e of s){o[e]=n.getAttribute(e)}e[i]=o}}o[f]=e}else if(n.properties[f].type==="array"){if(a!==null&&a.children.length>0){const e=a.children;const t=[];for(let n=0;n<e.length;n++){const i=e[n];const o={};const s=i.getAttributeNames();for(const e of s){o[e]=i.getAttribute(e)}t.push(o)}o[f]=t}}}a=l}}return r}function M(e,t,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Object.keys(e).length>0){Object.keys(e).forEach(function(o){const s=e[o];if(n!==null&&n!==undefined&&s){const e=s.firstElementChild;if(o!=="customData"&&o!=="dependents"){const i=t[o]!==undefined&&t[o].slot||o;const s=n.querySelector(`slot[name='${i}']`);if(s!==null){const t=V(n,o,e);s.replaceWith(...t.children)}}else if(i&&e!==null){const t=V(n,o,e);n.appendChild(t)}}})}}function V(e,t,n){const i=document.createElementNS(e.namespaceURI,t.replace(/:/gi,"_"));while(n){const e=n.nextElementSibling;i.appendChild(n);n=e}return i}async function I(t,n,o){let s=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;const r=t.fragment||`${t.namespace}.${t.xmlTag||t.name}`;const l="this";const c={};const d={};const u=o.getSettings();if(u.models["sap.fe.i18n"]){u.models["sap.fe.i18n"].getResourceBundle().then(function(e){a.setApplicationI18nBundle(e)}).catch(function(t){e.error(t)})}const m=P(t.metadata,t.isOpen,t.apiVersion);if(!u[r]){u[r]={}}let g=await N(m,n,s,o,t.apiVersion);const{mMissingContext:h,propertyValues:b}=j(m,u,n,s,o,c,d);g=Object.assign(g,b);const x=Object.keys(g);try{const a=await S(n,o,m,s,g,t.apiVersion);let d;let b={};if(u.models.viewData){b=u.models.viewData.getProperty("/controlConfiguration")}let x=g;if(C(t)&&t.create){x=t.create.call(t,g,b,u,a,s);Object.keys(m.metadataContexts).forEach(function(e){if(m.metadataContexts[e].computed===true){c[e]=x[e]}});Object.keys(h).forEach(function(e){if(x.hasOwnProperty(e)){c[e]=x[e]}})}else if(t.apiVersion===2){Object.keys(g).forEach(e=>{var n,i,o;let s=g[e];const r=t===null||t===void 0?void 0:(n=t.metadata)===null||n===void 0?void 0:n.properties[e];if(r!==null&&r!==void 0&&r.validate){s=r.validate(s)||s}if((i=s)!==null&&i!==void 0&&(o=i.isA)!==null&&o!==void 0&&o.call(i,k)&&!s.getModel().isA("sap.ui.model.odata.v4.ODataMetaModel")){g[e]=s.getObject()}});const e=t;g.isPublic=s;d=new e({...g,...a},b,u);x=d.getProperties();Object.keys(m.metadataContexts).forEach(function(e){if(x.hasOwnProperty(e)){const t=x[e];if(typeof t==="object"&&!p(t)){const n=F(t);u.models.converterContext.setProperty(n,t);const i=u.models.converterContext.createBindingContext(n);delete R[n];c[e]=i}else if(!c.hasOwnProperty(e)&&t!==undefined){c[e]=t}}})}const $=new i(n,x,t);c[l]=$.createBindingContext("/");let O;if(f.isTraceInfoActive()){const e=f.traceMacroCalls(r,m,c,n,o);if(e!==null&&e!==void 0&&e.macroInfo){O=u["_macroInfo"];u["_macroInfo"]=e.macroInfo}}w(r,m,c,n);const P=o.with(c,t.isOpen!==undefined?!t.isOpen:true);const A=n.parentNode;let E;let T;let N=true;if(A){E=Array.from(A.children).indexOf(n);if(C(t)&&t.getTemplate||t.apiVersion===2&&!t.fragment){let i;let o=false;if(t.apiVersion===2&&d!==undefined){i=await d.getTemplate(n);if(t.isRuntime===true){for(const e in R){const t=R[e];u.models.converterContext.setProperty(e,t);delete R[e]}}o=true}else if(t.getTemplate){i=await t.getTemplate(x)}let s="";if(i){let r=false;let l=_(i,o);for(const e of l){const t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);let n=t.nextNode();if(e.localName==="parsererror"){r=true}while(n){if(n.textContent&&n.textContent.trim().length>0){s=n.textContent}n=t.nextNode()}}if(r){e.error(`Error while processing building block ${t.xmlTag||t.name}`);try{var y;v=true;const e=(y=d)!==null&&y!==void 0&&y.getTemplate?await d.getTemplate(n):await t.getTemplate(x);l=_(e,true)}finally{v=false}}else if(s.length>0){e.error(`Error while processing building block ${t.xmlTag||t.name}`);const n=W([`Error while processing building block ${t.xmlTag||t.name}`,`Trailing text was found in the XML: ${s}`],l.map(e=>e.outerHTML).join("\n"));l=_(n,true)}n.replaceWith(...l);n=A.children[E];M(a,m.aggregations,n,N);N=false;T=P.visitNode(n)}else{n.remove();T=Promise.resolve()}}else{T=P.insertFragment(r,n)}await T;const i=A.children[E];M(a,m.aggregations,i,N);if(i!==undefined){const e=i.querySelectorAll("slot");e.forEach(function(e){e.remove()})}}if(O){u["_macroInfo"]=O}else{delete u["_macroInfo"]}}catch(i){const o={initialProperties:{},resolvedProperties:{},missingContexts:h};for(const e of x){const t=g[e];if(p(t)){o.initialProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.initialProperties[e]=t}}for(const e in g){const t=g[e];if(!x.includes(e)){if(p(t)){o.resolvedProperties[e]={path:t.getPath(),value:t.getObject()}}else{o.resolvedProperties[e]=t}}}e.error(i);const s=W([`Error while processing building block ${t.name}`],n.outerHTML,o,i.stack);const r=_(s,true);n.replaceWith(...r)}}function D(e,t,n,i){const o=n.name||n.model||undefined;if(i[o]){return}try{let s=n.path;if(n.model!==null){s=`${n.model}>${s}`}const r=t.getSettings();if(n.model==="converterContext"&&n.path.length>0){e[o]=r.models[n.model].getContext(n.path)}else if(!r.bindingContexts[n.model]&&r.models[n.model]){e[o]=r.models[n.model].getContext(n.path)}else{e[o]=t.getContext(s)}i[o]=e[o]}catch(e){}}function L(e){c.plugIn(async(t,n)=>I(e,t,n),e.namespace,e.xmlTag||e.name);if(e.publicNamespace){c.plugIn(async(t,n)=>I(e,t,n,true),e.publicNamespace,e.xmlTag||e.name)}}d.registerBuildingBlock=L;function W(e,t,n,i){const o=e.map(e=>X`<m:Label text="${q(e)}"/>`);let s="";if(i){const e=btoa(`<pre>${i}</pre>`);s=X`<m:FormattedText htmlText="${`{= BBF.base64Decode('${e}') }`}" />`}let r="";if(n){r=X`<m:VBox>
81
81
  <m:Label text="Trace Info"/>
82
82
  <code:CodeEditor type="json" value="${`{= BBF.base64Decode('${btoa(JSON.stringify(n,null,4))}') }`}" height="300px" />
83
- </m:VBox>`}return U`<m:VBox xmlns:m="sap.m" xmlns:code="sap.ui.codeeditor" core:require="{BBF:'sap/fe/core/buildingBlocks/BuildingBlockFormatter'}">
83
+ </m:VBox>`}return X`<m:VBox xmlns:m="sap.m" xmlns:code="sap.ui.codeeditor" core:require="{BBF:'sap/fe/core/buildingBlocks/BuildingBlockFormatter'}">
84
84
  ${o}
85
85
  ${s}
86
86
  <grid:CSSGrid gridTemplateRows="fr" gridTemplateColumns="repeat(2,1fr)" gridGap="1rem" xmlns:grid="sap.ui.layout.cssgrid" >
@@ -90,7 +90,7 @@ sap.ui.predefine("sap/fe/core/buildingBlocks/BuildingBlockRuntime", ["sap/base/L
90
90
  </m:VBox>
91
91
  ${r}
92
92
  </grid:CSSGrid>
93
- </m:VBox>`}const W={};function F(e){const t=`/uid--${n()}`;W[t]=e;return t}function R(e){var t,n;let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(i){e=`<template\n\t\t\t\t\t\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\t\t\t\t\t\txmlns:m="sap.m"\n\t\t\t\t\t\txmlns:macros="sap.fe.macros"\n\t\t\t\t\t\txmlns:core="sap.ui.core"\n\t\t\t\t\t\txmlns:mdc="sap.ui.mdc"\n\t\t\t\t\t\txmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1">${e}</template>`}const o=x.parseFromString(e,"text/xml");let s=o.firstElementChild;while(((r=s)===null||r===void 0?void 0:r.localName)==="template"){var r;s=s.firstElementChild}const a=(t=s)!==null&&t!==void 0&&t.parentElement?(n=s)===null||n===void 0?void 0:n.parentElement.children:[s];return Array.from(a)}d.parseXMLString=R;function _(e){return e===null||e===void 0?void 0:e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}d.escapeXMLAttributeValue=_;function q(e){var t;const n=R(e,true);if((n===null||n===void 0?void 0:n.length)>0&&((t=n[0])===null||t===void 0?void 0:t.localName)==="parsererror"){const t=n[0].innerText||n[0].innerHTML;return L([t.split("\n")[0]],e)}else{return e}}const U=function(e){let t="";let n;for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++){o[s-1]=arguments[s]}for(n=0;n<o.length;n++){t+=e[n];const i=o[n];if(Array.isArray(i)&&i.length>0&&typeof i[0]==="string"){t+=i.flat(5).join("\n").trim()}else if(u(i)){t+=i.map(e=>e()).join("\n")}else if(m(i)){const e=g(i);t+=_(e)}else if(typeof i==="undefined"){t+="{this>undefinedValue}"}else if(typeof i==="function"){t+=i()}else if(typeof i==="object"&&i!==null){if(p(i)){t+=i.getPath()}else{const e=F(i);t+=`${e}`}}else if(i&&typeof i==="string"&&!i.startsWith("<")&&!i.startsWith("&lt;")){t+=_(i)}else{t+=i}}t+=e[n];t=t.trim();if(y){return q(t)}return t};d.xml=U;return d},false);
93
+ </m:VBox>`}const R={};function F(e){const t=`/uid--${n()}`;R[t]=e;return t}function _(e){var t,n;let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(i){e=`<template\n\t\t\t\t\t\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\t\t\t\t\t\txmlns:m="sap.m"\n\t\t\t\t\t\txmlns:macros="sap.fe.macros"\n\t\t\t\t\t\txmlns:core="sap.ui.core"\n\t\t\t\t\t\txmlns:mdc="sap.ui.mdc"\n\t\t\t\t\t\txmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1">${e}</template>`}const o=y.parseFromString(e,"text/xml");let s=o.firstElementChild;while(((r=s)===null||r===void 0?void 0:r.localName)==="template"){var r;s=s.firstElementChild}const a=(t=s)!==null&&t!==void 0&&t.parentElement?(n=s)===null||n===void 0?void 0:n.parentElement.children:[s];return Array.from(a)}d.parseXMLString=_;function q(e){return e===null||e===void 0?void 0:e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}d.escapeXMLAttributeValue=q;function U(e){var t;const n=_(e,true);if((n===null||n===void 0?void 0:n.length)>0&&((t=n[0])===null||t===void 0?void 0:t.localName)==="parsererror"){const t=n[0].innerText||n[0].innerHTML;return W([t.split("\n")[0]],e)}else{return e}}const X=function(e){let t="";let n;for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++){o[s-1]=arguments[s]}for(n=0;n<o.length;n++){t+=e[n];const i=o[n];if(Array.isArray(i)&&i.length>0&&typeof i[0]==="string"){t+=i.flat(5).join("\n").trim()}else if(u(i)){t+=i.map(e=>e()).join("\n")}else if(m(i)){const e=g(i);t+=q(e)}else if(typeof i==="undefined"){t+="{this>undefinedValue}"}else if(typeof i==="function"){t+=i()}else if(typeof i==="object"&&i!==null){if(p(i)){t+=i.getPath()}else{const e=F(i);t+=`${e}`}}else if(i&&typeof i==="string"&&!i.startsWith("<")&&!i.startsWith("&lt;")){t+=q(i)}else{t+=i}}t+=e[n];t=t.trim();if(v){return U(t)}return t};d.xml=X;return d},false);
94
94
  /*!
95
95
  * SAP UI development toolkit for HTML5 (SAPUI5)
96
96
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
@@ -125,7 +125,7 @@ sap.ui.predefine("sap/fe/core/controllerextensions/InternalEditFlow", ["sap/base
125
125
  * SAP UI development toolkit for HTML5 (SAPUI5)
126
126
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
127
127
  */
128
- sap.ui.predefine("sap/fe/core/controllerextensions/InternalIntentBasedNavigation", ["sap/base/Log","sap/base/util/merge","sap/fe/core/CommonUtils","sap/fe/core/controllerextensions/editFlow/draft","sap/fe/core/converters/MetaModelConverter","sap/fe/core/helpers/ClassSupport","sap/fe/core/helpers/KeepAliveHelper","sap/fe/core/helpers/ModelHelper","sap/fe/navigation/SelectionVariant","sap/ui/core/Core","sap/ui/core/Fragment","sap/ui/core/mvc/ControllerExtension","sap/ui/core/mvc/OverrideExecution","sap/ui/core/util/XMLPreprocessor","sap/ui/core/XMLTemplateProcessor","sap/ui/model/json/JSONModel","../converters/helpers/Aggregation"],function(t,e,o,n,i,r,a,s,l,c,p,g,u,f,d,v,h){"use strict";var m,y,b,O,C,P,A,x,S,M,_,j,w,N,E,$,D,F,V,I,B,R,T;var L=h.AggregationHelper;var k=r.publicExtension;var W=r.privateExtension;var z=r.methodOverride;var U=r.finalExtension;var H=r.extensible;var J=r.defineUI5Class;function q(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;G(t,e)}function G(t,e){G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function t(e,o){e.__proto__=o;return e};return G(t,e)}function X(t,e,o,n,i){var r={};Object.keys(n).forEach(function(t){r[t]=n[t]});r.enumerable=!!r.enumerable;r.configurable=!!r.configurable;if("value"in r||r.initializer){r.writable=true}r=o.slice().reverse().reduce(function(o,n){return n(t,e,o)||o},r);if(i&&r.initializer!==void 0){r.value=r.initializer?r.initializer.call(i):void 0;r.initializer=undefined}if(r.initializer===void 0){Object.defineProperty(t,e,r);r=null}return r}let K=(m=J("sap.fe.core.controllerextensions.InternalInternalBasedNavigation"),y=z(),b=k(),O=U(),C=k(),P=U(),A=k(),x=U(),S=k(),M=H(u.Instead),_=k(),j=U(),w=W(),N=k(),E=U(),$=k(),D=U(),F=k(),V=U(),I=k(),B=U(),m(R=(T=function(r){q(g,r);function g(){return r.apply(this,arguments)||this}var u=g.prototype;u.onInit=function t(){this._oAppComponent=this.base.getAppComponent();this._oMetaModel=this._oAppComponent.getModel().getMetaModel();this._oNavigationService=this._oAppComponent.getNavigationService();this._oView=this.base.getView()};u.navigate=function t(o,i,r){const p=t=>{const n=r&&r.navigationContexts,s=n&&!Array.isArray(n)?[n]:n,p=r&&r.semanticObjectMapping,g=r&&r.additionalNavigationParameters,u={semanticObject:o,action:i},f=this.base.getView(),d=f.getController();if(t){this._oView.setBindingContext(t)}if(o&&i){let t=[],n=new l;if(s&&s.length){s.forEach(e=>{if(e.isA&&e.isA("sap.ui.model.odata.v4.Context")){let o=e.getObject();const n=this._oMetaModel.getMetaPath(e.getPath());o=this.removeSensitiveData(o,n);const i=this.prepareContextForExternalNavigation(o,e);u["propertiesWithoutConflict"]=i.propertiesWithoutConflict;t.push(i.semanticAttributes)}else if(!(e&&Array.isArray(e.data))&&typeof e==="object"){t.push(this.removeSensitiveData(e.data,e.metaPath))}else if(e&&Array.isArray(e.data)){t=this.removeSensitiveData(e.data,e.metaPath)}})}if(t&&t.length){n=this._oNavigationService.mixAttributesAndSelectionVariant(t,n.toJSONString())}const v=this._oView.getModel(),h=this.getEntitySet(),m=h?this._oNavigationService.constructContextUrl(h,v):undefined;if(m){n.setFilterContextUrl(m)}if(g){this._applyOutboundParams(n,g)}d.intentBasedNavigation.adaptNavigationContext(n,u);if(p){this._applySemanticObjectMappings(n,p)}this._removeTechnicalParameters(n);const y=d._intentBasedNavigation.getNavigationMode();const b=r&&r.refreshStrategies||{},O=f.getModel("internal");if(O){if((f&&f.getViewData()).refreshStrategyOnAppRestore){const t=f.getViewData().refreshStrategyOnAppRestore||{};e(b,t)}const t=a.getRefreshStrategyForIntent(b,o,i);if(t){O.setProperty("/refreshStrategyOnAppRestore",t)}}const C=function(){sap.ui.require(["sap/m/MessageBox"],function(t){const e=c.getLibraryResourceBundle("sap.fe.core");t.error(e.getText("C_COMMON_HELPER_NAVIGATION_ERROR_MESSAGE"),{title:e.getText("C_COMMON_SAPFE_ERROR")})})};this._oNavigationService.navigate(o,i,n.toJSONString(),undefined,C,undefined,y)}else{throw new Error("Semantic Object/action is not provided")}};const g=this.base.getView().getBindingContext();const u=g&&g.getModel().getMetaModel();if(this.getView().getViewData().converterType==="ObjectPage"&&u&&!s.isStickySessionSupported(u)){n.processDataLossOrDraftDiscardConfirmation(p.bind(this),Function.prototype,this.base.getView().getBindingContext(),this.base.getView().getController(),true,n.NavigationType.ForwardNavigation)}else{p()}};u.prepareContextForExternalNavigation=function t(e,o){const n={},i=o.getPath(),r=o.getModel().getMetaModel(),a=r.getMetaPath(i),s=a.split("/").filter(Boolean);function l(t,e){for(const o in t){if(t[o]===null||typeof t[o]!=="object"){if(!n[o]){n[o]=[]}n[o].push(e)}else{const n=t[o];l(n,`${e}/${o}`)}}}l(e,a);const c=s[0],p=r.getObject(`/${c}/@sapui.name`),g={};let u,f,d;for(const t in n){const i=n[t];let s;if(i.length>1){for(let n=0;n<=i.length-1;n++){const s=i[n];let l=s.replace(s===a?a:`${a}/`,"");l=(l===""?l:`${l}/`)+t;const c=r.getObject(`${s}/@sapui.name`);if(c===p){u=l}if(s===a){f=l}d=l;e[`${a}/${l}`.split("/").filter(function(t){return t!=""}).join(".")]=o.getProperty(l)}s=u||f||d;e[t]=o.getProperty(s);u=undefined;f=undefined;d=undefined}else{const n=i[0];let r=n.replace(n===a?a:`${a}/`,"");r=(r===""?r:`${r}/`)+t;e[t]=o.getProperty(r);g[t]=`${a}/${r}`.split("/").filter(function(t){return t!=""}).join(".")}}for(const t in e){if(e[t]!==null&&typeof e[t]==="object"){delete e[t]}}return{semanticAttributes:e,propertiesWithoutConflict:g}};u.prepareFiltersForExternalNavigation=function t(e,o,n){let i;const r={};const a={};let s,l,c,p,g;function u(t){let e;for(let n in t){if(t[n]){if(n.includes("/")){e=n;const t=n.split("/");n=t[t.length-1]}else{e=o}if(!r[n]){r[n]=[]}r[n].push(e)}}}u(e);for(const t in r){const u=r[t];if(u.length>1){for(let r=0;r<=u.length-1;r++){i=u[r];if(i===o){c=`${o}/${t}`;g=t;s=t;if(n&&n.includes(t)){e[`$Parameter.${t}`]=e[t]}}else{g=i;c=`${o}/${i}`.replaceAll(/\*/g,"");l=i}e[c.split("/").filter(function(t){return t!=""}).join(".")]=e[g];delete e[i]}p=s||l;e[t]=e[p]}else{i=u[0];c=i===o?`${o}/${t}`:`${o}/${i}`.replaceAll("*","");a[t]=c.split("/").filter(function(t){return t!=""}).join(".");if(n&&n.includes(t)){e[`$Parameter.${t}`]=e[t]}}}return{filterConditions:e,filterConditionsWithoutConflict:a}};u.getNavigationMode=function t(){return undefined};u.navigateWithConfirmationDialog=function e(o,n,i){var r;if(i!==null&&i!==void 0&&i.notApplicableContexts&&((r=i.notApplicableContexts)===null||r===void 0?void 0:r.length)>=1){let e;const r={onClose:function(){e.close()},onContinue:()=>{i.navigationContexts=i.applicableContexts;e.close();this.navigate(o,n,i)}};const a=function(){let t;const o=i.notApplicableContexts.length,n=[];for(let e=0;e<i.notApplicableContexts.length;e++){t=i.notApplicableContexts[e].getObject();n.push(t)}const r=new v(n);const a=new v({total:o,label:i.label});e.setModel(r,"notApplicable");e.setModel(a,"totals");e.open()};const s="sap.fe.core.controls.ActionPartial";const l=d.loadTemplate(s,"fragment");const c=this._oView.getModel();const g=c.getMetaModel();const u=i.notApplicableContexts[0].getCanonicalPath();const h=`${u.substr(0,u.indexOf("("))}/`;Promise.resolve(f.process(l,{name:s},{bindingContexts:{entityType:g.createBindingContext(h)},models:{entityType:g,metaModel:g}})).then(function(t){return p.load({definition:t,controller:r})}).then(t=>{e=t;this.getView().addDependent(t);a()}).catch(function(){t.error("Error")})}else{this.navigate(o,n,i)}};u._removeTechnicalParameters=function t(e){e.removeSelectOption("@odata.context");e.removeSelectOption("@odata.metadataEtag");e.removeSelectOption("SAP__Messages")};u.getEntitySet=function t(){return this._oView.getViewData().entitySet};u.removeSensitiveData=function t(e,o){if(e){const{transAggregations:t,customAggregates:n}=this._getAggregates(o,this.base.getView(),this.base.getAppComponent().getDiagnostics());const i=Object.keys(e);if(i.length){delete e["@odata.context"];delete e["@odata.metadataEtag"];delete e["SAP__Messages"];for(let r=0;r<i.length;r++){if(e[i[r]]&&typeof e[i[r]]==="object"){this.removeSensitiveData(e[i[r]],`${o}/${i[r]}`)}const a=i[r];if(a.indexOf("@odata.type")>-1){delete e[i[r]];continue}this._deleteAggregates([...t,...n],i[r],e);const s=this._getPropertyAnnotations(a,o,e,this._oMetaModel);if(s){if(s["com.sap.vocabularies.PersonalData.v1.IsPotentiallySensitive"]||s["com.sap.vocabularies.UI.v1.ExcludeFromNavigationContext"]||s["com.sap.vocabularies.Analytics.v1.Measure"]){delete e[a]}else if(s["com.sap.vocabularies.Common.v1.FieldControl"]){const t=s["com.sap.vocabularies.Common.v1.FieldControl"];if(t["$EnumMember"]&&t["$EnumMember"].split("/")[1]==="Inapplicable"){delete e[a]}else if(t["$Path"]&&this._isFieldControlPathInapplicable(t["$Path"],e)){delete e[a]}}}}}}return e};u._deleteAggregates=function t(e,o,n){if(e&&e.indexOf(o)>-1){delete n[o]}};u._getPropertyAnnotations=function t(e,o,n,r){if(n[e]&&o&&!o.includes("undefined")){var a,s;const t=r.createBindingContext(`${o}/${e}`);const n=i.getInvolvedDataModelObjects(t);return n===null||n===void 0?void 0:(a=n.targetObject)===null||a===void 0?void 0:(s=a.annotations)===null||s===void 0?void 0:s._annotations}return null};u._getAggregates=function t(e,o,n){const i=this._getConverterContext(e,o,n);const r=new L(i.getEntityType(),i);const a=r.isAnalyticsSupported();let s=[],l=[];if(a){s=r.getTransAggregations();if(s.length){s=s.map(t=>t.Name||t.Value)}l=r.getCustomAggregateDefinitions();if(l.length){l=l.map(t=>t.qualifier)}}return{transAggregations:s,customAggregates:l}};u._getConverterContext=function t(e,n,i){const r=n.getViewData();let a=r.entitySet;const s=r.contextPath;if(s&&(!a||a.includes("/"))){a=r===null||r===void 0?void 0:r.fullContextPath.split("/")[1]}return o.getConverterContextForPath(e,n.getModel().getMetaModel(),a,i)};u._isFieldControlPathInapplicable=function t(e,o){let n=false;const i=e.split("/");if(i.length>1){n=o[i[0]]&&o[i[0]].hasOwnProperty(i[1])&&o[i[0]][i[1]]===0}else{n=o[e]===0}return n};u._applySemanticObjectMappings=function t(e,o){const n=typeof o==="string"?JSON.parse(o):o;for(let t=0;t<n.length;t++){const o=n[t]["LocalProperty"]&&n[t]["LocalProperty"]["$PropertyPath"]||n[t]["@com.sap.vocabularies.Common.v1.LocalProperty"]&&n[t]["@com.sap.vocabularies.Common.v1.LocalProperty"]["$Path"];const i=n[t]["SemanticObjectProperty"]||n[t]["@com.sap.vocabularies.Common.v1.SemanticObjectProperty"];const r=e.getSelectOption(o);if(r){e.removeSelectOption(o);e.massAddSelectOption(i,r)}}return e};u.navigateOutbound=function e(o,n){var i,r;let a;const s=this.base.getAppComponent().getManifestEntry("sap.app"),l=(i=s.crossNavigation)===null||i===void 0?void 0:(r=i.outbounds)===null||r===void 0?void 0:r[o];if(!l){t.error("Outbound is not defined in manifest!!");return}const c=l.semanticObject,p=l.action,g=l.parameters&&this.getOutboundParams(l.parameters);if(n){a=[];Object.keys(n).forEach(function(t){let e;if(Array.isArray(n[t])){const i=n[t];for(let n=0;n<i.length;n++){var o;e={};e[t]=i[n];(o=a)===null||o===void 0?void 0:o.push(e)}}else{var i;e={};e[t]=n[t];(i=a)===null||i===void 0?void 0:i.push(e)}})}if(a||g){n={navigationContexts:{data:a||g}}}this.base._intentBasedNavigation.navigate(c,p,n)};u._applyOutboundParams=function t(e,o){const n=Object.keys(o);const i=e.getSelectOptionsPropertyNames();n.forEach(function(t){if(!i.includes(t)){e.addSelectOption(t,"I","EQ",o[t])}});return e};u.getOutboundParams=function t(e){const o={};if(e){const t=Object.keys(e)||[];if(t.length>0){t.forEach(function(t){const n=e[t];if(n.value&&n.value.value&&n.value.format==="plain"){if(!o[t]){o[t]=n.value.value}}})}}return o};u.onChevronPressNavigateOutBound=function t(e,o,n,i){const r=e.getAppComponent().getRoutingService().getOutbounds();const a=r[o];let l;if(a&&a.semanticObject&&a.action){const t={intents:{}};const o={};let r;if(n){if(n.isA&&n.isA("sap.ui.model.odata.v4.Context")){r=s.getMetaPathForContext(n);n=[n]}else{r=s.getMetaPathForContext(n[0])}o[r]="self";t["_feDefault"]=o}if(i){const e=`${a.semanticObject}-${a.action}`;t.intents[e]={};t.intents[e][i]="self"}if(a&&a.parameters){const t=a.parameters&&this.getOutboundParams(a.parameters);if(Object.keys(t).length>0){l=t}}e._intentBasedNavigation.navigate(a.semanticObject,a.action,{navigationContexts:n,refreshStrategies:t,additionalNavigationParameters:l});return Promise.resolve()}else{throw new Error(`outbound target ${o} not found in cross navigation definition of manifest`)}};return g}(g),X(T.prototype,"onInit",[y],Object.getOwnPropertyDescriptor(T.prototype,"onInit"),T.prototype),X(T.prototype,"navigate",[b,O],Object.getOwnPropertyDescriptor(T.prototype,"navigate"),T.prototype),X(T.prototype,"prepareContextForExternalNavigation",[C,P],Object.getOwnPropertyDescriptor(T.prototype,"prepareContextForExternalNavigation"),T.prototype),X(T.prototype,"prepareFiltersForExternalNavigation",[A,x],Object.getOwnPropertyDescriptor(T.prototype,"prepareFiltersForExternalNavigation"),T.prototype),X(T.prototype,"getNavigationMode",[S,M],Object.getOwnPropertyDescriptor(T.prototype,"getNavigationMode"),T.prototype),X(T.prototype,"navigateWithConfirmationDialog",[_,j],Object.getOwnPropertyDescriptor(T.prototype,"navigateWithConfirmationDialog"),T.prototype),X(T.prototype,"getEntitySet",[w],Object.getOwnPropertyDescriptor(T.prototype,"getEntitySet"),T.prototype),X(T.prototype,"removeSensitiveData",[N,E],Object.getOwnPropertyDescriptor(T.prototype,"removeSensitiveData"),T.prototype),X(T.prototype,"navigateOutbound",[$,D],Object.getOwnPropertyDescriptor(T.prototype,"navigateOutbound"),T.prototype),X(T.prototype,"getOutboundParams",[F,V],Object.getOwnPropertyDescriptor(T.prototype,"getOutboundParams"),T.prototype),X(T.prototype,"onChevronPressNavigateOutBound",[I,B],Object.getOwnPropertyDescriptor(T.prototype,"onChevronPressNavigateOutBound"),T.prototype),T))||R);return K},false);
128
+ sap.ui.predefine("sap/fe/core/controllerextensions/InternalIntentBasedNavigation", ["sap/base/Log","sap/base/util/merge","sap/fe/core/CommonUtils","sap/fe/core/controllerextensions/editFlow/draft","sap/fe/core/converters/MetaModelConverter","sap/fe/core/helpers/ClassSupport","sap/fe/core/helpers/KeepAliveHelper","sap/fe/core/helpers/ModelHelper","sap/fe/navigation/SelectionVariant","sap/ui/core/Core","sap/ui/core/Fragment","sap/ui/core/mvc/ControllerExtension","sap/ui/core/mvc/OverrideExecution","sap/ui/core/util/XMLPreprocessor","sap/ui/core/XMLTemplateProcessor","sap/ui/model/json/JSONModel","../converters/helpers/Aggregation"],function(t,e,o,n,i,r,a,s,l,c,p,g,u,f,d,v,h){"use strict";var m,y,b,O,C,P,A,x,S,M,_,j,w,N,E,$,D,F,V,I,B,R,T;var L=h.AggregationHelper;var k=r.publicExtension;var W=r.privateExtension;var z=r.methodOverride;var U=r.finalExtension;var H=r.extensible;var J=r.defineUI5Class;function q(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;G(t,e)}function G(t,e){G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function t(e,o){e.__proto__=o;return e};return G(t,e)}function X(t,e,o,n,i){var r={};Object.keys(n).forEach(function(t){r[t]=n[t]});r.enumerable=!!r.enumerable;r.configurable=!!r.configurable;if("value"in r||r.initializer){r.writable=true}r=o.slice().reverse().reduce(function(o,n){return n(t,e,o)||o},r);if(i&&r.initializer!==void 0){r.value=r.initializer?r.initializer.call(i):void 0;r.initializer=undefined}if(r.initializer===void 0){Object.defineProperty(t,e,r);r=null}return r}let K=(m=J("sap.fe.core.controllerextensions.InternalInternalBasedNavigation"),y=z(),b=k(),O=U(),C=k(),P=U(),A=k(),x=U(),S=k(),M=H(u.Instead),_=k(),j=U(),w=W(),N=k(),E=U(),$=k(),D=U(),F=k(),V=U(),I=k(),B=U(),m(R=(T=function(r){q(g,r);function g(){return r.apply(this,arguments)||this}var u=g.prototype;u.onInit=function t(){this._oAppComponent=this.base.getAppComponent();this._oMetaModel=this._oAppComponent.getModel().getMetaModel();this._oNavigationService=this._oAppComponent.getNavigationService();this._oView=this.base.getView()};u.navigate=function t(o,i,r){const p=t=>{const n=r&&r.navigationContexts,s=n&&!Array.isArray(n)?[n]:n,p=r&&r.semanticObjectMapping,g=r&&r.additionalNavigationParameters,u={semanticObject:o,action:i},f=this.base.getView(),d=f.getController();if(t){this._oView.setBindingContext(t)}if(o&&i){let t=[],n=new l;if(s&&s.length){s.forEach(e=>{if(e.isA&&e.isA("sap.ui.model.odata.v4.Context")){let o=e.getObject();const n=this._oMetaModel.getMetaPath(e.getPath());o=this.removeSensitiveData(o,n);const i=this.prepareContextForExternalNavigation(o,e);u["propertiesWithoutConflict"]=i.propertiesWithoutConflict;t.push(i.semanticAttributes)}else if(!(e&&Array.isArray(e.data))&&typeof e==="object"){t.push(this.removeSensitiveData(e.data,e.metaPath))}else if(e&&Array.isArray(e.data)){t=this.removeSensitiveData(e.data,e.metaPath)}})}if(t&&t.length){n=this._oNavigationService.mixAttributesAndSelectionVariant(t,n.toJSONString())}const v=this._oView.getModel(),h=this.getEntitySet(),m=h?this._oNavigationService.constructContextUrl(h,v):undefined;if(m){n.setFilterContextUrl(m)}if(g){this._applyOutboundParams(n,g)}d.intentBasedNavigation.adaptNavigationContext(n,u);if(p){this._applySemanticObjectMappings(n,p)}this._removeTechnicalParameters(n);const y=d._intentBasedNavigation.getNavigationMode();const b=r&&r.refreshStrategies||{},O=f.getModel("internal");if(O){if((f&&f.getViewData()).refreshStrategyOnAppRestore){const t=f.getViewData().refreshStrategyOnAppRestore||{};e(b,t)}const t=a.getRefreshStrategyForIntent(b,o,i);if(t){O.setProperty("/refreshStrategyOnAppRestore",t)}}const C=function(){sap.ui.require(["sap/m/MessageBox"],function(t){const e=c.getLibraryResourceBundle("sap.fe.core");t.error(e.getText("C_COMMON_HELPER_NAVIGATION_ERROR_MESSAGE"),{title:e.getText("C_COMMON_SAPFE_ERROR")})})};this._oNavigationService.navigate(o,i,n.toJSONString(),undefined,C,undefined,y)}else{throw new Error("Semantic Object/action is not provided")}};const g=this.base.getView().getBindingContext();const u=g&&g.getModel().getMetaModel();if(this.getView().getViewData().converterType==="ObjectPage"&&u&&!s.isStickySessionSupported(u)){n.processDataLossOrDraftDiscardConfirmation(p.bind(this),Function.prototype,this.base.getView().getBindingContext(),this.base.getView().getController(),true,n.NavigationType.ForwardNavigation)}else{p()}};u.prepareContextForExternalNavigation=function t(e,o){const n={},i=o.getPath(),r=o.getModel().getMetaModel(),a=r.getMetaPath(i),s=a.split("/").filter(Boolean);function l(t,e){for(const o in t){if(t[o]===null||typeof t[o]!=="object"){if(!n[o]){n[o]=[]}n[o].push(e)}else{const n=t[o];l(n,`${e}/${o}`)}}}l(e,a);const c=s[0],p=r.getObject(`/${c}/@sapui.name`),g={};let u,f,d;for(const t in n){const i=n[t];let s;if(i.length>1){for(let n=0;n<=i.length-1;n++){const s=i[n];let l=s.replace(s===a?a:`${a}/`,"");l=(l===""?l:`${l}/`)+t;const c=r.getObject(`${s}/@sapui.name`);if(c===p){u=l}if(s===a){f=l}d=l;e[`${a}/${l}`.split("/").filter(function(t){return t!=""}).join(".")]=o.getProperty(l)}s=u||f||d;e[t]=o.getProperty(s);u=undefined;f=undefined;d=undefined}else{const n=i[0];let r=n.replace(n===a?a:`${a}/`,"");r=(r===""?r:`${r}/`)+t;e[t]=o.getProperty(r);g[t]=`${a}/${r}`.split("/").filter(function(t){return t!=""}).join(".")}}for(const t in e){if(e[t]!==null&&typeof e[t]==="object"){delete e[t]}}return{semanticAttributes:e,propertiesWithoutConflict:g}};u.prepareFiltersForExternalNavigation=function t(e,o,n){let i;const r={};const a={};let s,l,c,p,g;function u(t){let e;for(let n in t){if(t[n]){if(n.includes("/")){e=n;const t=n.split("/");n=t[t.length-1]}else{e=o}if(!r[n]){r[n]=[]}r[n].push(e)}}}u(e);for(const t in r){const u=r[t];if(u.length>1){for(let r=0;r<=u.length-1;r++){i=u[r];if(i===o){c=`${o}/${t}`;g=t;s=t;if(n&&n.includes(t)){e[`$Parameter.${t}`]=e[t]}}else{g=i;c=`${o}/${i}`.replaceAll(/\*/g,"");l=i}e[c.split("/").filter(function(t){return t!=""}).join(".")]=e[g];delete e[i]}p=s||l;e[t]=e[p]}else{i=u[0];c=i===o?`${o}/${t}`:`${o}/${i}`.replaceAll("*","");a[t]=c.split("/").filter(function(t){return t!=""}).join(".");if(n&&n.includes(t)){e[`$Parameter.${t}`]=e[t]}}}return{filterConditions:e,filterConditionsWithoutConflict:a}};u.getNavigationMode=function t(){return undefined};u.navigateWithConfirmationDialog=function e(o,n,i){var r;if(i!==null&&i!==void 0&&i.notApplicableContexts&&((r=i.notApplicableContexts)===null||r===void 0?void 0:r.length)>=1){let e;const r={onClose:function(){e.close()},onContinue:()=>{i.navigationContexts=i.applicableContexts;e.close();this.navigate(o,n,i)}};const a=function(){let t;const o=i.notApplicableContexts.length,n=[];for(let e=0;e<i.notApplicableContexts.length;e++){t=i.notApplicableContexts[e].getObject();n.push(t)}const r=new v(n);const a=new v({total:o,label:i.label});e.setModel(r,"notApplicable");e.setModel(a,"totals");e.open()};const s="sap.fe.core.controls.ActionPartial";const l=d.loadTemplate(s,"fragment");const c=this._oView.getModel();const g=c.getMetaModel();const u=i.notApplicableContexts[0].getCanonicalPath();const h=`${u.substr(0,u.indexOf("("))}/`;Promise.resolve(f.process(l,{name:s},{bindingContexts:{entityType:g.createBindingContext(h)},models:{entityType:g,metaModel:g}})).then(function(t){return p.load({definition:t,controller:r})}).then(t=>{e=t;this.getView().addDependent(t);a()}).catch(function(){t.error("Error")})}else{this.navigate(o,n,i)}};u._removeTechnicalParameters=function t(e){e.removeSelectOption("@odata.context");e.removeSelectOption("@odata.metadataEtag");e.removeSelectOption("SAP__Messages")};u.getEntitySet=function t(){return this._oView.getViewData().entitySet};u.removeSensitiveData=function t(e,o){if(e){const{transAggregations:t,customAggregates:n}=this._getAggregates(o,this.base.getView(),this.base.getAppComponent().getDiagnostics());const i=Object.keys(e);if(i.length){delete e["@odata.context"];delete e["@odata.metadataEtag"];delete e["SAP__Messages"];for(let r=0;r<i.length;r++){if(e[i[r]]&&typeof e[i[r]]==="object"){this.removeSensitiveData(e[i[r]],`${o}/${i[r]}`)}const a=i[r];if(a.indexOf("@odata.type")>-1){delete e[i[r]];continue}this._deleteAggregates([...t,...n],i[r],e);const s=this._getPropertyAnnotations(a,o,e,this._oMetaModel);if(s){if(s["com.sap.vocabularies.PersonalData.v1.IsPotentiallySensitive"]||s["com.sap.vocabularies.UI.v1.ExcludeFromNavigationContext"]||s["com.sap.vocabularies.Analytics.v1.Measure"]){delete e[a]}else if(s["com.sap.vocabularies.Common.v1.FieldControl"]){const t=s["com.sap.vocabularies.Common.v1.FieldControl"];if(t["$EnumMember"]&&t["$EnumMember"].split("/")[1]==="Inapplicable"){delete e[a]}else if(t["$Path"]&&this._isFieldControlPathInapplicable(t["$Path"],e)){delete e[a]}}}}}}return e};u._deleteAggregates=function t(e,o,n){if(e&&e.indexOf(o)>-1){delete n[o]}};u._getPropertyAnnotations=function t(e,o,n,r){if(n[e]&&o&&!o.includes("undefined")){var a,s;const t=r.createBindingContext(`${o}/${e}`);const n=i.getInvolvedDataModelObjects(t);return n===null||n===void 0?void 0:(a=n.targetObject)===null||a===void 0?void 0:(s=a.annotations)===null||s===void 0?void 0:s._annotations}return null};u._getAggregates=function t(e,o,n){const i=this._getConverterContext(e,o,n);const r=new L(i.getEntityType(),i);const a=r.isAnalyticsSupported();let s,l;if(a){var c,p;s=r.getTransAggregations();if((c=s)!==null&&c!==void 0&&c.length){s=s.map(t=>t.Name||t.Value)}l=r.getCustomAggregateDefinitions();if((p=l)!==null&&p!==void 0&&p.length){l=l.map(t=>t.qualifier)}}s=s?s:[];l=l?l:[];return{transAggregations:s,customAggregates:l}};u._getConverterContext=function t(e,n,i){const r=n.getViewData();let a=r.entitySet;const s=r.contextPath;if(s&&(!a||a.includes("/"))){a=r===null||r===void 0?void 0:r.fullContextPath.split("/")[1]}return o.getConverterContextForPath(e,n.getModel().getMetaModel(),a,i)};u._isFieldControlPathInapplicable=function t(e,o){let n=false;const i=e.split("/");if(i.length>1){n=o[i[0]]&&o[i[0]].hasOwnProperty(i[1])&&o[i[0]][i[1]]===0}else{n=o[e]===0}return n};u._applySemanticObjectMappings=function t(e,o){const n=typeof o==="string"?JSON.parse(o):o;for(let t=0;t<n.length;t++){const o=n[t]["LocalProperty"]&&n[t]["LocalProperty"]["$PropertyPath"]||n[t]["@com.sap.vocabularies.Common.v1.LocalProperty"]&&n[t]["@com.sap.vocabularies.Common.v1.LocalProperty"]["$Path"];const i=n[t]["SemanticObjectProperty"]||n[t]["@com.sap.vocabularies.Common.v1.SemanticObjectProperty"];const r=e.getSelectOption(o);if(r){e.removeSelectOption(o);e.massAddSelectOption(i,r)}}return e};u.navigateOutbound=function e(o,n){var i,r;let a;const s=this.base.getAppComponent().getManifestEntry("sap.app"),l=(i=s.crossNavigation)===null||i===void 0?void 0:(r=i.outbounds)===null||r===void 0?void 0:r[o];if(!l){t.error("Outbound is not defined in manifest!!");return}const c=l.semanticObject,p=l.action,g=l.parameters&&this.getOutboundParams(l.parameters);if(n){a=[];Object.keys(n).forEach(function(t){let e;if(Array.isArray(n[t])){const i=n[t];for(let n=0;n<i.length;n++){var o;e={};e[t]=i[n];(o=a)===null||o===void 0?void 0:o.push(e)}}else{var i;e={};e[t]=n[t];(i=a)===null||i===void 0?void 0:i.push(e)}})}if(a||g){n={navigationContexts:{data:a||g}}}this.base._intentBasedNavigation.navigate(c,p,n)};u._applyOutboundParams=function t(e,o){const n=Object.keys(o);const i=e.getSelectOptionsPropertyNames();n.forEach(function(t){if(!i.includes(t)){e.addSelectOption(t,"I","EQ",o[t])}});return e};u.getOutboundParams=function t(e){const o={};if(e){const t=Object.keys(e)||[];if(t.length>0){t.forEach(function(t){const n=e[t];if(n.value&&n.value.value&&n.value.format==="plain"){if(!o[t]){o[t]=n.value.value}}})}}return o};u.onChevronPressNavigateOutBound=function t(e,o,n,i){const r=e.getAppComponent().getRoutingService().getOutbounds();const a=r[o];let l;if(a&&a.semanticObject&&a.action){const t={intents:{}};const o={};let r;if(n){if(n.isA&&n.isA("sap.ui.model.odata.v4.Context")){r=s.getMetaPathForContext(n);n=[n]}else{r=s.getMetaPathForContext(n[0])}o[r]="self";t["_feDefault"]=o}if(i){const e=`${a.semanticObject}-${a.action}`;t.intents[e]={};t.intents[e][i]="self"}if(a&&a.parameters){const t=a.parameters&&this.getOutboundParams(a.parameters);if(Object.keys(t).length>0){l=t}}e._intentBasedNavigation.navigate(a.semanticObject,a.action,{navigationContexts:n,refreshStrategies:t,additionalNavigationParameters:l});return Promise.resolve()}else{throw new Error(`outbound target ${o} not found in cross navigation definition of manifest`)}};return g}(g),X(T.prototype,"onInit",[y],Object.getOwnPropertyDescriptor(T.prototype,"onInit"),T.prototype),X(T.prototype,"navigate",[b,O],Object.getOwnPropertyDescriptor(T.prototype,"navigate"),T.prototype),X(T.prototype,"prepareContextForExternalNavigation",[C,P],Object.getOwnPropertyDescriptor(T.prototype,"prepareContextForExternalNavigation"),T.prototype),X(T.prototype,"prepareFiltersForExternalNavigation",[A,x],Object.getOwnPropertyDescriptor(T.prototype,"prepareFiltersForExternalNavigation"),T.prototype),X(T.prototype,"getNavigationMode",[S,M],Object.getOwnPropertyDescriptor(T.prototype,"getNavigationMode"),T.prototype),X(T.prototype,"navigateWithConfirmationDialog",[_,j],Object.getOwnPropertyDescriptor(T.prototype,"navigateWithConfirmationDialog"),T.prototype),X(T.prototype,"getEntitySet",[w],Object.getOwnPropertyDescriptor(T.prototype,"getEntitySet"),T.prototype),X(T.prototype,"removeSensitiveData",[N,E],Object.getOwnPropertyDescriptor(T.prototype,"removeSensitiveData"),T.prototype),X(T.prototype,"navigateOutbound",[$,D],Object.getOwnPropertyDescriptor(T.prototype,"navigateOutbound"),T.prototype),X(T.prototype,"getOutboundParams",[F,V],Object.getOwnPropertyDescriptor(T.prototype,"getOutboundParams"),T.prototype),X(T.prototype,"onChevronPressNavigateOutBound",[I,B],Object.getOwnPropertyDescriptor(T.prototype,"onChevronPressNavigateOutBound"),T.prototype),T))||R);return K},false);
129
129
  /*!
130
130
  * SAP UI development toolkit for HTML5 (SAPUI5)
131
131
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
@@ -445,7 +445,7 @@ sap.ui.predefine("sap/fe/core/converters/controls/ObjectPage/HeaderFacet", ["sap
445
445
  * SAP UI development toolkit for HTML5 (SAPUI5)
446
446
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
447
447
  */
448
- sap.ui.predefine("sap/fe/core/converters/controls/ObjectPage/SubSection", ["sap/base/Log","sap/fe/core/converters/controls/Common/Action","sap/fe/core/converters/controls/ObjectPage/HeaderFacet","sap/fe/core/converters/helpers/IssueManager","sap/fe/core/converters/helpers/Key","sap/fe/core/helpers/BindingToolkit","../../helpers/ConfigurableObject","../../helpers/ID","../../ManifestSettings","../../objectPage/FormMenuActions","../Common/DataVisualization","../Common/Form"],function(e,t,n,i,a,o,r,s,l,c,u,v){"use strict";var d={};var f=v.isReferenceFacet;var m=v.createFormDefinition;var p=u.getDataVisualizationConfiguration;var g=c.getVisibilityEnablementFormMenuActions;var b=c.getFormHiddenActions;var I=c.getFormActions;var F=l.ActionType;var h=s.getSubSectionID;var y=s.getSideContentID;var U=s.getFormID;var D=s.getCustomSubSectionID;var S=r.Placement;var T=r.OverrideType;var A=r.insertCustomElements;var C=o.resolveBindingString;var k=o.ref;var M=o.pathInModel;var O=o.or;var E=o.notEqual;var L=o.not;var $=o.ifElse;var N=o.getExpressionFromAnnotation;var x=o.fn;var P=o.equal;var R=o.compileExpression;var w=a.KeyHelper;var V=i.IssueType;var H=i.IssueSeverity;var B=i.IssueCategory;var j=n.getStashedSettingsForHeaderFacet;var _=n.getHeaderFacetsFromManifest;var z=n.getDesignTimeMetadataSettingsForHeaderFacet;var q=t.removeDuplicateActions;var G=t.isActionNavigable;var X=t.getSemanticObjectMapping;var K=t.getEnabledForAnnotationAction;var Q=t.getActionsFromManifest;var W=t.ButtonType;let J;(function(e){e["Unknown"]="Unknown";e["Form"]="Form";e["DataVisualization"]="DataVisualization";e["XMLFragment"]="XMLFragment";e["Placeholder"]="Placeholder";e["Mixed"]="Mixed"})(J||(J={}));d.SubSectionType=J;const Y=["com.sap.vocabularies.UI.v1.LineItem","com.sap.vocabularies.UI.v1.Chart","com.sap.vocabularies.UI.v1.PresentationVariant","com.sap.vocabularies.UI.v1.SelectionPresentationVariant"];function Z(e,t,n){const i=e.reduce((e,t)=>{switch(t.$Type){case"com.sap.vocabularies.UI.v1.ReferenceFacet":e.push(t);break;case"com.sap.vocabularies.UI.v1.CollectionFacet":if(t.Facets.find(e=>e.$Type==="com.sap.vocabularies.UI.v1.CollectionFacet")){e.splice(e.length,0,...t.Facets)}else{e.push(t)}break;case"com.sap.vocabularies.UI.v1.ReferenceURLFacet":break}return e},[]);return i.map(e=>{var a;return re(e,i,t,0,!(e!==null&&e!==void 0&&(a=e.Facets)!==null&&a!==void 0&&a.length),n)})}d.createSubSections=Z;function ee(e){const t=_(e.getManifestWrapper().getHeaderFacets());const n=[];Object.keys(t).forEach(function(e){n.push(t[e]);return n});const i=n.reduce((e,t)=>{if(t.templateEdit){e.push(t)}return e},[]);return i.map(e=>te(e))}d.createCustomHeaderFacetSubSections=ee;function te(e){const t=D(e.key);const n={id:t,key:e.key,title:e.title,type:J.XMLFragment,template:e.templateEdit||"",visible:e.visible,level:1,sideContent:undefined,stashed:e.stashed,flexSettings:e.flexSettings,actions:{}};return n}const ne=(e,t)=>{var n,i;return((n=e.ID)===null||n===void 0?void 0:n.toString())||((i=e.Label)===null||i===void 0?void 0:i.toString())||t};function ie(e,t,n){const i=b(t,n)||[],a=I(t,n),o=Q(a,n,e,undefined,undefined,i),r={enabled:T.overwrite,visible:T.overwrite,command:T.overwrite},s=A(e,o.actions,r);return{actions:s?g(q(s)):e,commandActions:o.commandActions}}function ae(e,t){let n=[];switch(e.$Type){case"com.sap.vocabularies.UI.v1.CollectionFacet":n=e.Facets.filter(e=>f(e)).reduce((e,n)=>le(e,n,t),[]);break;case"com.sap.vocabularies.UI.v1.ReferenceFacet":n=le([],e,t);break;default:break}return ie(n,e,t)}function oe(e){const t=P(N(e),true);return R($(t,W.Ghost,W.Transparent))}function re(t,n,i,a,o,r){var s,l,c,u,v;const d=h(t);const f=(s=t.annotations)===null||s===void 0?void 0:(l=s.UI)===null||l===void 0?void 0:l.Hidden;const g=R(L(P(true,N(f))));const b=g&&typeof g==="string"&&g.indexOf("{=")===0&&(f===null||f===void 0?void 0:f.type)!=="Path";const I=g&&b?g.substring(g.indexOf("{=")+2,g.lastIndexOf("}")):false;const F=R(N(t.Label));const y={id:d,key:ne(t,d),title:F,type:J.Unknown,annotationPath:i.getEntitySetBasedAnnotationPath(t.fullyQualifiedName),visible:g,isVisibilityDynamic:b,level:a,sideContent:undefined};if(r){y.stashed=j(t,t,i);y.flexSettings={designtime:z(t,t,i)}}let U="";a++;switch(t.$Type){case"com.sap.vocabularies.UI.v1.CollectionFacet":const s=t.Facets;const l=s.map((e,t)=>({index:t,facet:e})).filter(e=>{var t,n;let{facet:i}=e;return Y.includes((t=i.Target)===null||t===void 0?void 0:(n=t.$target)===null||n===void 0?void 0:n.term)});const d=s.filter(e=>!l.find(t=>t.facet===e));if(l.length>0){const n=[];const c=[];const u=[];for(const{facet:e}of l){n.push(re(e,[],i,a,s.length===1,r))}if(d.length>0){e.warning(`Warning: CollectionFacet '${t.ID}' includes a combination of either a chart or a table and other content. This can lead to rendering issues. Consider moving the chart or table into a separate CollectionFacet.`);t.Facets=d;c.push(re(t,[],i,a,o,r))}if(l.find(e=>{let{index:t}=e;return t===0})){u.push(...n);u.push(...c)}else{u.push(...c);u.push(...n)}const v={...y,type:J.Mixed,level:a,content:u};return v}else{const e=ae(t,i),n={...y,type:J.Form,formDefinition:m(t,g,i,e.actions),level:a,actions:e.actions.filter(e=>e.facetName===undefined),commandActions:e.commandActions};return n}case"com.sap.vocabularies.UI.v1.ReferenceFacet":if(!t.Target.$target){U=`Unable to find annotationPath ${t.Target.value}`}else{switch(t.Target.$target.term){case"com.sap.vocabularies.UI.v1.LineItem":case"com.sap.vocabularies.UI.v1.Chart":case"com.sap.vocabularies.UI.v1.PresentationVariant":case"com.sap.vocabularies.UI.v1.SelectionPresentationVariant":const e=p(t.Target.value,de(t,n,i),i,undefined,r);const s=y.title?y.title:"";const l=((c=e.visualizations[0])===null||c===void 0?void 0:(u=c.annotation)===null||u===void 0?void 0:u.title)||((v=e.visualizations[0])===null||v===void 0?void 0:v.title);const d=se(l,s,o);const f=g&&F!=="undefined"&&(F?g:false);const h={...y,type:J.DataVisualization,level:a,presentation:e,showTitle:d,titleVisible:b?`{= (${I}) && ('${F}' !=='undefined') && (${d} ? true : false) }`:f};return h;case"com.sap.vocabularies.UI.v1.FieldGroup":case"com.sap.vocabularies.UI.v1.Identification":case"com.sap.vocabularies.UI.v1.DataPoint":case"com.sap.vocabularies.UI.v1.StatusInfo":case"com.sap.vocabularies.Communication.v1.Contact":const D=ae(t,i),S={...y,type:J.Form,level:a,formDefinition:m(t,g,i,D.actions),actions:D.actions.filter(e=>e.facetName===undefined),commandActions:D.commandActions};return S;default:U=`For ${t.Target.$target.term} Fragment`;break}}break;case"com.sap.vocabularies.UI.v1.ReferenceURLFacet":U="For Reference URL Facet";break;default:break}const D={...y,text:U};return D}d.createSubSection=re;function se(e,t,n){return R(O(L(n),E(C(e),C(t))))}d.getTitleVisibility=se;function le(e,t,n){const i=t.Target.$target;const a=t.Target.value;let o={};let r=[];let[s]=a.split("@");if(s.length>0){if(s.lastIndexOf("/")===s.length-1){s=s.substr(0,s.length-1)}}else{s=undefined}if(i){switch(i.term){case"com.sap.vocabularies.UI.v1.FieldGroup":r=i.Data;o=Q(n.getManifestControlConfiguration(i).actions,n,undefined,undefined,undefined,undefined,t.fullyQualifiedName).actions;break;case"com.sap.vocabularies.UI.v1.Identification":case"com.sap.vocabularies.UI.v1.StatusInfo":if(i.qualifier){r=i}break;default:break}}e=r.reduce((e,a)=>{var o,r,l,c,u,v,d,f,m,p,g,b,I,h,y,D;switch(a.$Type){case"com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation":if(((o=a.RequiresContext)===null||o===void 0?void 0:o.valueOf())===true){n.getDiagnostics().addIssue(B.Annotation,H.Low,V.MALFORMED_DATAFIELD_FOR_IBN.REQUIRESCONTEXT)}if(((r=a.Inline)===null||r===void 0?void 0:r.valueOf())===true){n.getDiagnostics().addIssue(B.Annotation,H.Low,V.MALFORMED_DATAFIELD_FOR_IBN.INLINE)}if(((l=a.Determining)===null||l===void 0?void 0:l.valueOf())===true){n.getDiagnostics().addIssue(B.Annotation,H.Low,V.MALFORMED_DATAFIELD_FOR_IBN.DETERMINING)}const S={};if(a.Mapping){S.semanticObjectMapping=X(a.Mapping)}e.push({type:F.DataFieldForIntentBasedNavigation,id:U(t,a),key:w.generateKeyFromDataField(a),text:(c=a.Label)===null||c===void 0?void 0:c.toString(),annotationPath:"",enabled:a.NavigationAvailable!==undefined?R(P(N((u=a.NavigationAvailable)===null||u===void 0?void 0:u.valueOf()),true)):"true",visible:R(L(P(N((v=a.annotations)===null||v===void 0?void 0:(d=v.UI)===null||d===void 0?void 0:(f=d.Hidden)===null||f===void 0?void 0:f.valueOf()),true))),buttonType:oe((m=a.annotations)===null||m===void 0?void 0:(p=m.UI)===null||p===void 0?void 0:p.Emphasized),press:R(x("._intentBasedNavigation.navigate",[N(a.SemanticObject),N(a.Action),S])),customData:R({semanticObject:N(a.SemanticObject),action:N(a.Action)})});break;case"com.sap.vocabularies.UI.v1.DataFieldForAction":const T=n.getManifestControlConfiguration(i).actions;const A=w.generateKeyFromDataField(a);e.push({type:F.DataFieldForAction,id:U(t,a),key:A,text:(g=a.Label)===null||g===void 0?void 0:g.toString(),annotationPath:"",enabled:K(n,a.ActionTarget),binding:s?`{ 'path' : '${s}'}`:undefined,visible:R(L(P(N((b=a.annotations)===null||b===void 0?void 0:(I=b.UI)===null||I===void 0?void 0:(h=I.Hidden)===null||h===void 0?void 0:h.valueOf()),true))),requiresDialog:ce(a.ActionTarget),buttonType:oe((y=a.annotations)===null||y===void 0?void 0:(D=y.UI)===null||D===void 0?void 0:D.Emphasized),press:R(x("invokeAction",[a.Action,{contexts:x("getBindingContext",[],M("","$source")),invocationGrouping:a.InvocationGrouping==="UI.OperationGroupingType/ChangeSet"?"ChangeSet":"Isolated",label:N(a.Label),model:x("getModel",[],M("/","$source")),isNavigable:G(T&&T[A])}],k(".editFlow"))),facetName:a.Inline?t.fullyQualifiedName:undefined});break;default:break}return e},e);return A(e,o)}function ce(e){if(e){var t,n;const i=(t=e.annotations)===null||t===void 0?void 0:(n=t.Common)===null||n===void 0?void 0:n.IsActionCritical;if(e.parameters.length>1||i){return"Dialog"}else{return"None"}}else{return"None"}}d.isDialog=ce;function ue(e,t){const n={};Object.keys(e).forEach(i=>n[i]=ve(e[i],i,t));return n}d.createCustomSubSections=ue;function ve(e,t,n){const i=e.sideContent?{template:e.sideContent.template,id:y(t),visible:false,equalSplit:e.sideContent.equalSplit}:undefined;let a=e.position;if(!a){a={placement:S.After}}const o=e.visible!==undefined?e.visible:true;const r=o&&typeof o==="string"&&o.indexOf("{=")===0;const s=Q(e.actions,n);const l={type:J.Unknown,id:e.id||D(t),actions:s.actions,key:t,title:e.title,level:1,position:a,visible:e.visible!==undefined?e.visible:true,sideContent:i,isVisibilityDynamic:r};if(e.template||e.name){l.type=J.XMLFragment;l.template=e.template||e.name||""}else{l.type=J.Placeholder}return l}d.createCustomSubSection=ve;function de(e,t,n){const i=n.getManifestWrapper();if(i.useIconTabBar()){return fe(e,t)}else{var a,o,r,s,l,c;const i=n.getEntityType();if((a=i.annotations)!==null&&a!==void 0&&(o=a.UI)!==null&&o!==void 0&&(r=o.Facets)!==null&&r!==void 0&&r.length&&((s=i.annotations)===null||s===void 0?void 0:(l=s.UI)===null||l===void 0?void 0:(c=l.Facets)===null||c===void 0?void 0:c.length)>1){return fe(e,t)}else{return true}}}function fe(e,t){return t.every(function(t){if(t!==e){if(t.$Type==="com.sap.vocabularies.UI.v1.ReferenceFacet"){var n,i,a,o,r;const e=t;if(((n=e.Target)===null||n===void 0?void 0:(i=n.$target)===null||i===void 0?void 0:i.term)==="com.sap.vocabularies.UI.v1.LineItem"||((a=e.Target)===null||a===void 0?void 0:(o=a.$target)===null||o===void 0?void 0:o.term)==="com.sap.vocabularies.UI.v1.PresentationVariant"||((r=e.Target.$target)===null||r===void 0?void 0:r.term)==="com.sap.vocabularies.UI.v1.SelectionPresentationVariant"){var s,l,c,u;return((s=e.annotations)===null||s===void 0?void 0:(l=s.UI)===null||l===void 0?void 0:l.Hidden)!==undefined?(c=e.annotations)===null||c===void 0?void 0:(u=c.UI)===null||u===void 0?void 0:u.Hidden:false}return true}else{const e=t;return e.Facets.every(function(e){var t,n,i,a,o,r;const s=e;if(((t=s.Target)===null||t===void 0?void 0:(n=t.$target)===null||n===void 0?void 0:n.term)==="com.sap.vocabularies.UI.v1.LineItem"||((i=s.Target)===null||i===void 0?void 0:(a=i.$target)===null||a===void 0?void 0:a.term)==="com.sap.vocabularies.UI.v1.PresentationVariant"||((o=s.Target)===null||o===void 0?void 0:(r=o.$target)===null||r===void 0?void 0:r.term)==="com.sap.vocabularies.UI.v1.SelectionPresentationVariant"){var l,c,u,v;return((l=s.annotations)===null||l===void 0?void 0:(c=l.UI)===null||c===void 0?void 0:c.Hidden)!==undefined?(u=s.annotations)===null||u===void 0?void 0:(v=u.UI)===null||v===void 0?void 0:v.Hidden:false}return true})}}return true})}return d},false);
448
+ sap.ui.predefine("sap/fe/core/converters/controls/ObjectPage/SubSection", ["sap/base/Log","sap/fe/core/converters/controls/Common/Action","sap/fe/core/converters/controls/ObjectPage/HeaderFacet","sap/fe/core/converters/helpers/IssueManager","sap/fe/core/converters/helpers/Key","sap/fe/core/helpers/BindingToolkit","sap/fe/core/templating/PropertyHelper","../../helpers/ConfigurableObject","../../helpers/ID","../../ManifestSettings","../../objectPage/FormMenuActions","../Common/DataVisualization","../Common/Form"],function(e,t,n,i,a,o,r,s,l,c,u,v,d){"use strict";var f={};var m=d.isReferenceFacet;var p=d.createFormDefinition;var g=v.getDataVisualizationConfiguration;var b=u.getVisibilityEnablementFormMenuActions;var I=u.getFormHiddenActions;var F=u.getFormActions;var h=c.ActionType;var y=l.getSubSectionID;var U=l.getSideContentID;var D=l.getFormID;var S=l.getCustomSubSectionID;var T=s.Placement;var A=s.OverrideType;var C=s.insertCustomElements;var k=r.isPathExpression;var M=o.resolveBindingString;var O=o.ref;var E=o.pathInModel;var L=o.or;var N=o.notEqual;var $=o.not;var x=o.ifElse;var P=o.getExpressionFromAnnotation;var R=o.fn;var w=o.equal;var V=o.compileExpression;var H=o.and;var B=a.KeyHelper;var j=i.IssueType;var _=i.IssueSeverity;var z=i.IssueCategory;var q=n.getStashedSettingsForHeaderFacet;var G=n.getHeaderFacetsFromManifest;var X=n.getDesignTimeMetadataSettingsForHeaderFacet;var K=t.removeDuplicateActions;var Q=t.isActionNavigable;var W=t.getSemanticObjectMapping;var J=t.getEnabledForAnnotationAction;var Y=t.getActionsFromManifest;var Z=t.ButtonType;let ee;(function(e){e["Unknown"]="Unknown";e["Form"]="Form";e["DataVisualization"]="DataVisualization";e["XMLFragment"]="XMLFragment";e["Placeholder"]="Placeholder";e["Mixed"]="Mixed"})(ee||(ee={}));f.SubSectionType=ee;const te=["com.sap.vocabularies.UI.v1.LineItem","com.sap.vocabularies.UI.v1.Chart","com.sap.vocabularies.UI.v1.PresentationVariant","com.sap.vocabularies.UI.v1.SelectionPresentationVariant"];function ne(e,t,n){const i=e.reduce((e,t)=>{switch(t.$Type){case"com.sap.vocabularies.UI.v1.ReferenceFacet":e.push(t);break;case"com.sap.vocabularies.UI.v1.CollectionFacet":if(t.Facets.find(e=>e.$Type==="com.sap.vocabularies.UI.v1.CollectionFacet")){e.splice(e.length,0,...t.Facets)}else{e.push(t)}break;case"com.sap.vocabularies.UI.v1.ReferenceURLFacet":break}return e},[]);return i.map(e=>{var a;return ce(e,i,t,0,!(e!==null&&e!==void 0&&(a=e.Facets)!==null&&a!==void 0&&a.length),n)})}f.createSubSections=ne;function ie(e){const t=G(e.getManifestWrapper().getHeaderFacets());const n=[];Object.keys(t).forEach(function(e){n.push(t[e]);return n});const i=n.reduce((e,t)=>{if(t.templateEdit){e.push(t)}return e},[]);return i.map(e=>ae(e))}f.createCustomHeaderFacetSubSections=ie;function ae(e){const t=S(e.key);const n={id:t,key:e.key,title:e.title,type:ee.XMLFragment,template:e.templateEdit||"",visible:e.visible,level:1,sideContent:undefined,stashed:e.stashed,flexSettings:e.flexSettings,actions:{}};return n}const oe=(e,t)=>{var n,i;return((n=e.ID)===null||n===void 0?void 0:n.toString())||((i=e.Label)===null||i===void 0?void 0:i.toString())||t};function re(e,t,n){const i=I(t,n)||[],a=F(t,n),o=Y(a,n,e,undefined,undefined,i),r={enabled:A.overwrite,visible:A.overwrite,command:A.overwrite},s=C(e,o.actions,r);return{actions:s?b(K(s)):e,commandActions:o.commandActions}}function se(e,t){let n=[];switch(e.$Type){case"com.sap.vocabularies.UI.v1.CollectionFacet":n=e.Facets.filter(e=>m(e)).reduce((e,n)=>ve(e,n,t),[]);break;case"com.sap.vocabularies.UI.v1.ReferenceFacet":n=ve([],e,t);break;default:break}return re(n,e,t)}function le(e){const t=w(P(e),true);return V(x(t,Z.Ghost,Z.Transparent))}function ce(t,n,i,a,o,r){var s,l,c,u,v;const d=y(t);const f=(s=t.annotations)===null||s===void 0?void 0:(l=s.UI)===null||l===void 0?void 0:l.Hidden;const m=$(w(true,P(f)));const b=V(m);const I=b!==undefined&&typeof b==="string"&&b.indexOf("{=")===0&&!k(f);const F=b&&I?b.substring(b.indexOf("{=")+2,b.lastIndexOf("}"))!==undefined:false;const h=V(P(t.Label));const U={id:d,key:oe(t,d),title:h,type:ee.Unknown,annotationPath:i.getEntitySetBasedAnnotationPath(t.fullyQualifiedName),visible:b,isVisibilityDynamic:I,level:a,sideContent:undefined};if(r){U.stashed=q(t,t,i);U.flexSettings={designtime:X(t,t,i)}}let D="";a++;switch(t.$Type){case"com.sap.vocabularies.UI.v1.CollectionFacet":const s=t.Facets;const l=s.map((e,t)=>({index:t,facet:e})).filter(e=>{var t,n;let{facet:i}=e;return te.includes((t=i.Target)===null||t===void 0?void 0:(n=t.$target)===null||n===void 0?void 0:n.term)});const d=s.filter(e=>!l.find(t=>t.facet===e));if(l.length>0){const n=[];const s=[];const c=[];for(const{facet:e}of l){n.push(ce(e,[],i,a,true,r))}if(d.length>0){e.warning(`Warning: CollectionFacet '${t.ID}' includes a combination of either a chart or a table and other content. This can lead to rendering issues. Consider moving the chart or table into a separate CollectionFacet.`);t.Facets=d;s.push(ce(t,[],i,a,o,r))}if(l.find(e=>{let{index:t}=e;return t===0})){c.push(...n);c.push(...s)}else{c.push(...s);c.push(...n)}const u={...U,type:ee.Mixed,level:a,content:c};return u}else{const e=se(t,i),n={...U,type:ee.Form,formDefinition:p(t,b,i,e.actions),level:a,actions:e.actions.filter(e=>e.facetName===undefined),commandActions:e.commandActions};return n}case"com.sap.vocabularies.UI.v1.ReferenceFacet":if(!t.Target.$target){D=`Unable to find annotationPath ${t.Target.value}`}else{switch(t.Target.$target.term){case"com.sap.vocabularies.UI.v1.LineItem":case"com.sap.vocabularies.UI.v1.Chart":case"com.sap.vocabularies.UI.v1.PresentationVariant":case"com.sap.vocabularies.UI.v1.SelectionPresentationVariant":const e=g(t.Target.value,pe(t,n,i),i,undefined,r);const s=U.title?U.title:"";const l=((c=e.visualizations[0])===null||c===void 0?void 0:(u=c.annotation)===null||u===void 0?void 0:u.title)||((v=e.visualizations[0])===null||v===void 0?void 0:v.title);const d=ue(l,s,o);const f=x(I,H(F,$(w(h,"undefined")),d),H(b!==undefined,h!=="undefined",h!==undefined,m,d));const y={...U,type:ee.DataVisualization,level:a,presentation:e,showTitle:V(d),titleVisible:V(f)};return y;case"com.sap.vocabularies.UI.v1.FieldGroup":case"com.sap.vocabularies.UI.v1.Identification":case"com.sap.vocabularies.UI.v1.DataPoint":case"com.sap.vocabularies.UI.v1.StatusInfo":case"com.sap.vocabularies.Communication.v1.Contact":const S=se(t,i),T={...U,type:ee.Form,level:a,formDefinition:p(t,b,i,S.actions),actions:S.actions.filter(e=>e.facetName===undefined),commandActions:S.commandActions};return T;default:D=`For ${t.Target.$target.term} Fragment`;break}}break;case"com.sap.vocabularies.UI.v1.ReferenceURLFacet":D="For Reference URL Facet";break;default:break}const S={...U,text:D};return S}f.createSubSection=ce;function ue(e,t,n){return L($(n),N(M(e),M(t)))}f.getTitleVisibility=ue;function ve(e,t,n){const i=t.Target.$target;const a=t.Target.value;let o={};let r=[];let[s]=a.split("@");if(s.length>0){if(s.lastIndexOf("/")===s.length-1){s=s.substr(0,s.length-1)}}else{s=undefined}if(i){switch(i.term){case"com.sap.vocabularies.UI.v1.FieldGroup":r=i.Data;o=Y(n.getManifestControlConfiguration(i).actions,n,undefined,undefined,undefined,undefined,t.fullyQualifiedName).actions;break;case"com.sap.vocabularies.UI.v1.Identification":case"com.sap.vocabularies.UI.v1.StatusInfo":if(i.qualifier){r=i}break;default:break}}e=r.reduce((e,a)=>{var o,r,l,c,u,v,d,f,m,p,g,b,I,F,y,U;switch(a.$Type){case"com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation":if(((o=a.RequiresContext)===null||o===void 0?void 0:o.valueOf())===true){n.getDiagnostics().addIssue(z.Annotation,_.Low,j.MALFORMED_DATAFIELD_FOR_IBN.REQUIRESCONTEXT)}if(((r=a.Inline)===null||r===void 0?void 0:r.valueOf())===true){n.getDiagnostics().addIssue(z.Annotation,_.Low,j.MALFORMED_DATAFIELD_FOR_IBN.INLINE)}if(((l=a.Determining)===null||l===void 0?void 0:l.valueOf())===true){n.getDiagnostics().addIssue(z.Annotation,_.Low,j.MALFORMED_DATAFIELD_FOR_IBN.DETERMINING)}const S={};if(a.Mapping){S.semanticObjectMapping=W(a.Mapping)}e.push({type:h.DataFieldForIntentBasedNavigation,id:D(t,a),key:B.generateKeyFromDataField(a),text:(c=a.Label)===null||c===void 0?void 0:c.toString(),annotationPath:"",enabled:a.NavigationAvailable!==undefined?V(w(P((u=a.NavigationAvailable)===null||u===void 0?void 0:u.valueOf()),true)):"true",visible:V($(w(P((v=a.annotations)===null||v===void 0?void 0:(d=v.UI)===null||d===void 0?void 0:(f=d.Hidden)===null||f===void 0?void 0:f.valueOf()),true))),buttonType:le((m=a.annotations)===null||m===void 0?void 0:(p=m.UI)===null||p===void 0?void 0:p.Emphasized),press:V(R("._intentBasedNavigation.navigate",[P(a.SemanticObject),P(a.Action),S])),customData:V({semanticObject:P(a.SemanticObject),action:P(a.Action)})});break;case"com.sap.vocabularies.UI.v1.DataFieldForAction":const T=n.getManifestControlConfiguration(i).actions;const A=B.generateKeyFromDataField(a);e.push({type:h.DataFieldForAction,id:D(t,a),key:A,text:(g=a.Label)===null||g===void 0?void 0:g.toString(),annotationPath:"",enabled:J(n,a.ActionTarget),binding:s?`{ 'path' : '${s}'}`:undefined,visible:V($(w(P((b=a.annotations)===null||b===void 0?void 0:(I=b.UI)===null||I===void 0?void 0:(F=I.Hidden)===null||F===void 0?void 0:F.valueOf()),true))),requiresDialog:de(a.ActionTarget),buttonType:le((y=a.annotations)===null||y===void 0?void 0:(U=y.UI)===null||U===void 0?void 0:U.Emphasized),press:V(R("invokeAction",[a.Action,{contexts:R("getBindingContext",[],E("","$source")),invocationGrouping:a.InvocationGrouping==="UI.OperationGroupingType/ChangeSet"?"ChangeSet":"Isolated",label:P(a.Label),model:R("getModel",[],E("/","$source")),isNavigable:Q(T&&T[A])}],O(".editFlow"))),facetName:a.Inline?t.fullyQualifiedName:undefined});break;default:break}return e},e);return C(e,o)}function de(e){if(e){var t,n;const i=(t=e.annotations)===null||t===void 0?void 0:(n=t.Common)===null||n===void 0?void 0:n.IsActionCritical;if(e.parameters.length>1||i){return"Dialog"}else{return"None"}}else{return"None"}}f.isDialog=de;function fe(e,t){const n={};Object.keys(e).forEach(i=>n[i]=me(e[i],i,t));return n}f.createCustomSubSections=fe;function me(e,t,n){const i=e.sideContent?{template:e.sideContent.template,id:U(t),visible:false,equalSplit:e.sideContent.equalSplit}:undefined;let a=e.position;if(!a){a={placement:T.After}}const o=e.visible!==undefined?e.visible:true;const r=o&&typeof o==="string"&&o.indexOf("{=")===0;const s=Y(e.actions,n);const l={type:ee.Unknown,id:e.id||S(t),actions:s.actions,key:t,title:e.title,level:1,position:a,visible:e.visible!==undefined?e.visible:true,sideContent:i,isVisibilityDynamic:r};if(e.template||e.name){l.type=ee.XMLFragment;l.template=e.template||e.name||""}else{l.type=ee.Placeholder}return l}f.createCustomSubSection=me;function pe(e,t,n){const i=n.getManifestWrapper();if(i.useIconTabBar()){return ge(e,t)}else{var a,o,r,s,l,c;const i=n.getEntityType();if((a=i.annotations)!==null&&a!==void 0&&(o=a.UI)!==null&&o!==void 0&&(r=o.Facets)!==null&&r!==void 0&&r.length&&((s=i.annotations)===null||s===void 0?void 0:(l=s.UI)===null||l===void 0?void 0:(c=l.Facets)===null||c===void 0?void 0:c.length)>1){return ge(e,t)}else{return true}}}function ge(e,t){return t.every(function(t){if(t!==e){if(t.$Type==="com.sap.vocabularies.UI.v1.ReferenceFacet"){var n,i,a,o,r;const e=t;if(((n=e.Target)===null||n===void 0?void 0:(i=n.$target)===null||i===void 0?void 0:i.term)==="com.sap.vocabularies.UI.v1.LineItem"||((a=e.Target)===null||a===void 0?void 0:(o=a.$target)===null||o===void 0?void 0:o.term)==="com.sap.vocabularies.UI.v1.PresentationVariant"||((r=e.Target.$target)===null||r===void 0?void 0:r.term)==="com.sap.vocabularies.UI.v1.SelectionPresentationVariant"){var s,l,c,u;return((s=e.annotations)===null||s===void 0?void 0:(l=s.UI)===null||l===void 0?void 0:l.Hidden)!==undefined?(c=e.annotations)===null||c===void 0?void 0:(u=c.UI)===null||u===void 0?void 0:u.Hidden:false}return true}else{const e=t;return e.Facets.every(function(e){var t,n,i,a,o,r;const s=e;if(((t=s.Target)===null||t===void 0?void 0:(n=t.$target)===null||n===void 0?void 0:n.term)==="com.sap.vocabularies.UI.v1.LineItem"||((i=s.Target)===null||i===void 0?void 0:(a=i.$target)===null||a===void 0?void 0:a.term)==="com.sap.vocabularies.UI.v1.PresentationVariant"||((o=s.Target)===null||o===void 0?void 0:(r=o.$target)===null||r===void 0?void 0:r.term)==="com.sap.vocabularies.UI.v1.SelectionPresentationVariant"){var l,c,u,v;return((l=s.annotations)===null||l===void 0?void 0:(c=l.UI)===null||c===void 0?void 0:c.Hidden)!==undefined?(u=s.annotations)===null||u===void 0?void 0:(v=u.UI)===null||v===void 0?void 0:v.Hidden:false}return true})}}return true})}return f},false);
449
449
  /*!
450
450
  * SAP UI development toolkit for HTML5 (SAPUI5)
451
451
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
@@ -705,7 +705,7 @@ sap.ui.predefine("sap/fe/core/jsx-runtime/useMDXComponents", ["sap/base/Log","sa
705
705
  * SAP UI development toolkit for HTML5 (SAPUI5)
706
706
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
707
707
  */
708
- sap.ui.predefine("sap/fe/core/library", ["sap/base/Log","sap/fe/core/formatters/FPMFormatter","sap/fe/core/formatters/StandardFormatter","sap/fe/core/formatters/ValueFormatter","sap/fe/core/services/AsyncComponentServiceFactory","sap/fe/core/services/CacheHandlerServiceFactory","sap/fe/core/services/EnvironmentServiceFactory","sap/fe/core/services/NavigationServiceFactory","sap/fe/core/services/ResourceModelServiceFactory","sap/fe/core/services/RoutingServiceFactory","sap/fe/core/services/ShellServicesFactory","sap/fe/core/services/SideEffectsServiceFactory","sap/fe/core/services/TemplatedViewServiceFactory","sap/fe/core/type/DateTimeWithTimezone","sap/fe/core/type/Email","sap/fe/core/type/FiscalDate","sap/fe/navigation/library","sap/fe/placeholder/library","sap/ui/base/DataType","sap/ui/core/Core","sap/ui/core/library","sap/ui/core/service/ServiceFactoryRegistry","sap/ui/fl/library","sap/ui/mdc/library"],function(e,a,r,i,o,t,s,n,c,l,p,f,d,v,u,y,S,m,g,C,b,F,w,D){"use strict";var E={};const M="sap.fe";E.feNamespace=M;const N="sap.fe.core";E.feCoreNamespace=N;const I="sap.fe.controllerextensions";E.feCextNamespace=I;const h="sap.fe.core.fpm";E.feFpmNamespace=h;const A=C.initLibrary({name:"sap.fe.core",dependencies:["sap.ui.core","sap.fe.navigation","sap.fe.placeholder","sap.ui.fl","sap.ui.mdc","sap.f"],types:["sap.fe.core.CreationMode","sap.fe.core.VariantManagement"],interfaces:[],controls:[],elements:[],version:"1.111.0",noLibraryCSS:true,extensions:{"sap.ui.support":{publicRules:true,internalRules:true},flChangeHandlers:{"sap.fe.core.controls.FilterBar":"sap/ui/mdc/flexibility/FilterBar"}}});A.InvocationGrouping={Isolated:"Isolated",ChangeSet:"ChangeSet"};A.CreationMode={NewPage:"NewPage",Sync:"Sync",Async:"Async",Deferred:"Deferred",Inline:"Inline",CreationRow:"CreationRow",InlineCreationRows:"InlineCreationRows",External:"External"};A.VariantManagement={None:"None",Page:"Page",Control:"Control"};A.Constants={CancelActionDialog:"cancel",ActionExecutionFailed:"actionExecutionFailed",CreationFailed:"creationFailed"};A.ProgrammingModel={Draft:"Draft",Sticky:"Sticky",NonDraft:"NonDraft"};A.DraftStatus={Saving:"Saving",Saved:"Saved",Clear:"Clear"};A.EditMode={Display:"Display",Editable:"Editable"};A.TemplateContentView={Hybrid:"Hybrid",Chart:"Chart",Table:"Table"};let R;(function(e){e["Enabled"]="Enabled";e["Disabled"]="Disabled";e["Auto"]="Auto"})(R||(R={}));E.InitialLoadMode=R;A.InitialLoadMode=R;A.StartupMode={Normal:"Normal",Deeplink:"Deeplink",Create:"Create",AutoCreate:"AutoCreate"};const L=g.createType("sap.fe.core.InitialLoadMode",{defaultValue:A.InitialLoadMode.Auto,isValid:function(a){if(typeof a==="boolean"){e.warning("DEPRECATED: boolean value not allowed for 'initialLoad' manifest setting - supported values are: Disabled|Enabled|Auto")}return a===undefined||a===null||typeof a==="boolean"||A.InitialLoadMode.hasOwnProperty(a)}});L.setNormalizer(function(e){if(!e){return A.InitialLoadMode.Disabled}return e===true?A.InitialLoadMode.Enabled:e});F.register("sap.fe.core.services.TemplatedViewService",new d);F.register("sap.fe.core.services.ResourceModelService",new c);F.register("sap.fe.core.services.CacheHandlerService",new t);F.register("sap.fe.core.services.NavigationService",new n);F.register("sap.fe.core.services.RoutingService",new l);F.register("sap.fe.core.services.SideEffectsService",new f);F.register("sap.fe.core.services.ShellServices",new p);F.register("sap.fe.core.services.EnvironmentService",new s);F.register("sap.fe.core.services.AsyncComponentService",new o);return A},false);
708
+ sap.ui.predefine("sap/fe/core/library", ["sap/base/Log","sap/fe/core/formatters/FPMFormatter","sap/fe/core/formatters/StandardFormatter","sap/fe/core/formatters/ValueFormatter","sap/fe/core/services/AsyncComponentServiceFactory","sap/fe/core/services/CacheHandlerServiceFactory","sap/fe/core/services/EnvironmentServiceFactory","sap/fe/core/services/NavigationServiceFactory","sap/fe/core/services/ResourceModelServiceFactory","sap/fe/core/services/RoutingServiceFactory","sap/fe/core/services/ShellServicesFactory","sap/fe/core/services/SideEffectsServiceFactory","sap/fe/core/services/TemplatedViewServiceFactory","sap/fe/core/type/DateTimeWithTimezone","sap/fe/core/type/Email","sap/fe/core/type/FiscalDate","sap/fe/navigation/library","sap/fe/placeholder/library","sap/ui/base/DataType","sap/ui/core/Core","sap/ui/core/library","sap/ui/core/service/ServiceFactoryRegistry","sap/ui/fl/library","sap/ui/mdc/library"],function(e,a,r,i,o,t,s,n,c,l,p,f,d,v,u,y,S,m,g,C,b,F,w,D){"use strict";var E={};const M="sap.fe";E.feNamespace=M;const N="sap.fe.core";E.feCoreNamespace=N;const I="sap.fe.controllerextensions";E.feCextNamespace=I;const h="sap.fe.core.fpm";E.feFpmNamespace=h;const A=C.initLibrary({name:"sap.fe.core",dependencies:["sap.ui.core","sap.fe.navigation","sap.fe.placeholder","sap.ui.fl","sap.ui.mdc","sap.f"],types:["sap.fe.core.CreationMode","sap.fe.core.VariantManagement"],interfaces:[],controls:[],elements:[],version:"1.111.3",noLibraryCSS:true,extensions:{"sap.ui.support":{publicRules:true,internalRules:true},flChangeHandlers:{"sap.fe.core.controls.FilterBar":"sap/ui/mdc/flexibility/FilterBar"}}});A.InvocationGrouping={Isolated:"Isolated",ChangeSet:"ChangeSet"};A.CreationMode={NewPage:"NewPage",Sync:"Sync",Async:"Async",Deferred:"Deferred",Inline:"Inline",CreationRow:"CreationRow",InlineCreationRows:"InlineCreationRows",External:"External"};A.VariantManagement={None:"None",Page:"Page",Control:"Control"};A.Constants={CancelActionDialog:"cancel",ActionExecutionFailed:"actionExecutionFailed",CreationFailed:"creationFailed"};A.ProgrammingModel={Draft:"Draft",Sticky:"Sticky",NonDraft:"NonDraft"};A.DraftStatus={Saving:"Saving",Saved:"Saved",Clear:"Clear"};A.EditMode={Display:"Display",Editable:"Editable"};A.TemplateContentView={Hybrid:"Hybrid",Chart:"Chart",Table:"Table"};let R;(function(e){e["Enabled"]="Enabled";e["Disabled"]="Disabled";e["Auto"]="Auto"})(R||(R={}));E.InitialLoadMode=R;A.InitialLoadMode=R;A.StartupMode={Normal:"Normal",Deeplink:"Deeplink",Create:"Create",AutoCreate:"AutoCreate"};const L=g.createType("sap.fe.core.InitialLoadMode",{defaultValue:A.InitialLoadMode.Auto,isValid:function(a){if(typeof a==="boolean"){e.warning("DEPRECATED: boolean value not allowed for 'initialLoad' manifest setting - supported values are: Disabled|Enabled|Auto")}return a===undefined||a===null||typeof a==="boolean"||A.InitialLoadMode.hasOwnProperty(a)}});L.setNormalizer(function(e){if(!e){return A.InitialLoadMode.Disabled}return e===true?A.InitialLoadMode.Enabled:e});F.register("sap.fe.core.services.TemplatedViewService",new d);F.register("sap.fe.core.services.ResourceModelService",new c);F.register("sap.fe.core.services.CacheHandlerService",new t);F.register("sap.fe.core.services.NavigationService",new n);F.register("sap.fe.core.services.RoutingService",new l);F.register("sap.fe.core.services.SideEffectsService",new f);F.register("sap.fe.core.services.ShellServices",new p);F.register("sap.fe.core.services.EnvironmentService",new s);F.register("sap.fe.core.services.AsyncComponentService",new o);return A},false);
709
709
  /*!
710
710
  * SAP UI development toolkit for HTML5 (SAPUI5)
711
711
  * (c) Copyright 2009-2023 SAP SE. All rights reserved
@@ -891,8 +891,8 @@ sap.ui.require.preload({
891
891
  "sap/fe/core/controls/NonComputedVisibleKeyFieldsDialog.fragment.xml":'<core:FragmentDefinition\n\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\txmlns="sap.m"\n\txmlns:core="sap.ui.core"\n\txmlns:mdc="sap.ui.mdc"\n\txmlns:mdcv="sap.ui.mdc.valuehelp"\n\txmlns:mdcvc="sap.ui.mdc.valuehelp.content"\n\txmlns:form="sap.ui.layout.form"\n\txmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"\n\ttemplate:require="{\n\t\tMODEL: \'sap/ui/model/odata/v4/AnnotationHelper\',\n\t\tCOMMON: \'sap/fe/macros/CommonHelper\',\n\t\tID: \'sap/fe/core/helpers/StableIdHelper\',\n\t\tValueHelpTemplating: \'sap/fe/macros/internal/valuehelp/ValueHelpTemplating\',\n\t\tProperty: \'sap/fe/core/templating/PropertyFormatters\',\n\t\tFIELD: \'sap/fe/macros/field/FieldHelper\',\n\t\tUI: \'sap/fe/core/templating/UIFormatters\'\n\t}"\n><template:with path="fields>" var="allFields"><form:SimpleForm><template:repeat list="{allFields>}" var="key"><template:with path="key>" helper="COMMON.getPathToKey" var="immutableKey"><Label text="{= ${immutableKey>@com.sap.vocabularies.Common.v1.Label}}" /><mdc:Field\n\t\t\t\t\t\tdelegate="{name:\'sap/fe/macros/field/FieldBaseDelegate\', payload:{retrieveTextFromValueList:true}}"\n\t\t\t\t\t\tid="{= ID.generate([\'CreateDialog\', ${entitySet>@sapui.name}, ${immutableKey>@sapui.name}]) }"\n\t\t\t\t\t\tvalue="{immutableKey>@@MODEL.format}"\n\t\t\t\t\t\twidth="100%"\n\t\t\t\t\t\trequired="{= FIELD.getRequired(${immutableKey>@sapui.name}, ${immutableKey>@@UI.getDataModelObjectPath}, ${requiredProperties>})}"\n\t\t\t\t\t\tdisplay="{immutableKey>@@FIELD.getAPDialogDisplayFormat}"\n\t\t\t\t\t\tchange="{= \'.handleChange($event, \\\'\' + ${immutableKey>@sapui.name} + \'\\\')\' }"\n\t\t\t\t\t\tliveChange=".handleLiveChange"\n\t\t\t\t\t\tfieldHelp="{= ${immutableKey>@@Property.hasValueHelp} ? ID.generate([${immutableKey>@sapui.name},\'VH\']) : undefined }"\n\t\t\t\t\t\tcustomData:fieldName="{immutableKey>@sapui.name}"\n\t\t\t\t\t\teditMode="{= ${immutableKey>@com.sap.vocabularies.Common.v1.FieldControl} &amp;&amp; ${immutableKey>@com.sap.vocabularies.Common.v1.FieldControl/$EnumMember} &amp;&amp; ${immutableKey>@com.sap.vocabularies.Common.v1.FieldControl/$EnumMember} === \'com.sap.vocabularies.Common.v1.FieldControlType/ReadOnly\' ? \'Display\' : \'Editable\'}"\n\t\t\t\t\t><template:if test="{immutableKey>@@Property.hasValueHelp}"><template:then><mdc:dependents><mdc:ValueHelp\n\t\t\t\t\t\t\t\t\t\tid="{= ID.generate([${immutableKey>@sapui.name},\'VH\']) }"\n\t\t\t\t\t\t\t\t\t\tdelegate="{= FIELD.getValueHelpDelegateForNonComputedVisibleKeyField(${immutableKey>@@Property.getPropertyPath}) }"\n\t\t\t\t\t\t\t\t\t\tvalidateInput="{= ValueHelpTemplating.requiresValidation(${immutableKey>@@Property.getProperty})}"\n\t\t\t\t\t\t\t\t\t><mdc:typeahead><mdcv:Popover><mdcvc:MTable\n\t\t\t\t\t\t\t\t\t\t\t\t\tid="{= ID.generate([${immutableKey>@sapui.name},\'VH\']) }::Popover::qualifier::"\n\t\t\t\t\t\t\t\t\t\t\t\t\tcaseSensitive="{= ValueHelpTemplating.useCaseSensitiveFilterRequests(${immutableKey>@@Property.getPropertyObjectPath}, ${immutableKey>/@Org.OData.Capabilities.V1.FilterFunctions})}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tuseAsValueHelp="{= ${immutableKey>@com.sap.vocabularies.Common.v1.ValueListWithFixedValues} || false}"\n\t\t\t\t\t\t\t\t\t\t\t\t/></mdcv:Popover></mdc:typeahead><template:if\n\t\t\t\t\t\t\t\t\t\t\ttest="{= ${immutableKey>@com.sap.vocabularies.Common.v1.ValueListWithFixedValues} ? (${immutableKey>@com.sap.vocabularies.Common.v1.ValueListWithFixedValues} === \'true\') : true}"\n\t\t\t\t\t\t\t\t\t\t><mdc:dialog><mdcv:Dialog /></mdc:dialog></template:if></mdc:ValueHelp></mdc:dependents></template:then></template:if></mdc:Field></template:with></template:repeat></form:SimpleForm></template:with></core:FragmentDefinition>\n',
892
892
  "sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml":'<core:FragmentDefinition\n\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\txmlns:core="sap.ui.core"\n\txmlns="sap.m"\n\txmlns:mdc="sap.ui.mdc"\n\txmlns:mdcField="sap.ui.mdc.field"\n\txmlns:control="sap.fe.core.controls"\n\txmlns:f="sap.ui.layout.form"\n\txmlns:l="sap.ui.layout"\n\ttemplate:require="{\n\t\tMED: \'sap/fe/core/helpers/MassEditHelper\'\n\t}"\n><f:Form visible="{= MED.helpers.hasEditableFieldsBinding(${dataFieldModel>}, true) }"><f:layout><f:ResponsiveGridLayout\n\t\t\t\tlabelSpanXL="4"\n\t\t\t\tlabelSpanL="4"\n\t\t\t\tlabelSpanM="12"\n\t\t\t\tlabelSpanS="12"\n\t\t\t\tadjustLabelSpan="false"\n\t\t\t\temptySpanXL="0"\n\t\t\t\temptySpanL="0"\n\t\t\t\temptySpanM="0"\n\t\t\t\temptySpanS="0"\n\t\t\t\tcolumnsXL="2"\n\t\t\t\tcolumnsL="2"\n\t\t\t\tcolumnsM="1"\n\t\t\t\tsingleContainerFullSize="false"\n\t\t\t/></f:layout><f:formContainers><f:FormContainer><f:formElements><template:repeat list="{dataFieldModel>}" var="dataField"><f:FormElement\n\t\t\t\t\t\t\tlabel="{dataField>label}"\n\t\t\t\t\t\t\tvisible="{= \'{fieldsInfo>/values/\' + ${dataField>dataProperty} + \'/visible}\' }"\n\t\t\t\t\t\t><f:fields><template:with path="dataField>propertyInfo" var="property"><core:Fragment fragmentName="sap.fe.core.controls.massEdit.MassEditField" type="XML" /></template:with><template:if test="{dataField>unitInfo}"><template:with path="dataField>unitInfo" var="property"><core:Fragment fragmentName="sap.fe.core.controls.massEdit.MassEditField" type="XML" /></template:with></template:if></f:fields></f:FormElement></template:repeat></f:formElements></f:FormContainer></f:formContainers></f:Form><Text\n\t\tvisible="{= MED.helpers.hasEditableFieldsBinding(${dataFieldModel>}, false) }"\n\t\ttext="{fieldsInfo>/noFields}"\n\t\tclass="sapUiSmallMargin"\n\t/>\n\t/></core:FragmentDefinition>\n',
893
893
  "sap/fe/core/controls/massEdit/MassEditField.fragment.xml":'<core:FragmentDefinition\n\txmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"\n\txmlns:core="sap.ui.core"\n\txmlns="sap.m"\n\txmlns:mdc="sap.ui.mdc"\n\txmlns:mdcField="sap.ui.mdc.field"\n\txmlns:control="sap.fe.core.controls"\n\txmlns:macro="sap.fe.macros"\n\txmlns:f="sap.ui.layout.form"\n\txmlns:l="sap.ui.layout"\n\txmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"\n\ttemplate:require="{\n\t\tProperty: \'sap/fe/core/templating/PropertyFormatters\',\n\t\tID: \'sap/fe/core/helpers/StableIdHelper\',\n\t\tValueHelpTemplating: \'sap/fe/macros/internal/valuehelp/ValueHelpTemplating\'\n\t}"\n><template:if test="{property>hasVH}"><template:then><template:with path="property>propertyPathForValueHelp" var="vhProperty"><mdc:Field\n\t\t\t\t\tdelegate="{name: \'sap/ui/mdc/odata/v4/FieldBaseDelegate\'}"\n\t\t\t\t\tid="{= ID.generate([\'MED_\', ${dataField>entitySet}, ${property>relativePath}, \'_MDCField\']) }"\n\t\t\t\t\tcore:require="{MassEditHandlers: \'sap/fe/core/controls/massEdit/MassEditHandlers\'}"\n\t\t\t\t\tchange="{= \'MassEditHandlers.handleMDCFieldChange($event, \\\'\' + ${property>relativePath} + \'\\\')\' }"\n\t\t\t\t\tlabel="{dataField>label}"\n\t\t\t\t\twidth="100%"\n\t\t\t\t\trequired="{dataField>isFieldRequired}"\n\t\t\t\t\tfieldHelp="{= ID.generate([\'MED_\', ${dataField>entitySet}, \'VHD\', ${vhProperty>@@Property.getRelativePropertyPath} ]) }"\n\t\t\t\t\tdisplay="{dataField>display}"\n\t\t\t\t\tvalue="{= ${property>relativePath} ? \'{path: \\\'\' + ${property>relativePath} + \'\\\', parameters: {$$noPatch: true} }\' : undefined }"\n\t\t\t\t\tadditionalValue="{= ${dataField>descriptionPath} ? \'{path: \\\'\' + ${dataField>descriptionPath} + \'\\\', parameters: {$$noPatch: true} }\' : undefined }"\n\t\t\t\t><mdc:layoutData><l:GridData\n\t\t\t\t\t\t\tspan="{= (!${dataField>unitProperty}) ? \'XL12 L12 M12 S12\' : ((${property>relativePath} === ${dataField>unitProperty}) ? \'XL4 L4 M4 S4\' : \'XL8 L8 M8 S8\') }"\n\t\t\t\t\t\t/></mdc:layoutData><control:MassEditSelect\n\t\t\t\t\t\tcore:require="{MassEditHandlers: \'sap/fe/core/controls/massEdit/MassEditHandlers\'}"\n\t\t\t\t\t\tid="{= ID.generate([\'MED_\', ${dataField>entitySet}, ${property>relativePath}]) }"\n\t\t\t\t\t\titems="{= \'{path : \\\'\' + ${property>runtimePath} + ${property>relativePath} + \'\\\'}\' }"\n\t\t\t\t\t\tchange="MassEditHandlers.handleSelectionChange($event)"\n\t\t\t\t\t\tselectedKey="{= \'{\' + ${property>runtimePath} + ${property>relativePath} + \'/selectedKey}\' }"\n\t\t\t\t\t\tselectValue="{= (${dataField>inputType} !== \'CheckBox\') &amp;&amp; (\'{ parts : [{ path:\\\'\' + ${property>relativePath} + \'\\\'}, {value: \\\'\' + ${property>relativePath} + \'\\\' }, {value: \\\'\' + ID.generate([\'MED_\', ${dataField>entitySet}, ${property>relativePath}, \'_MDCField\']) + \'\\\' }], formatter: \\\'MassEditHandlers.contextPropertyChange\\\' }\') }"\n\t\t\t\t\t\twidth="100%"\n\t\t\t\t\t\tcustomData:fieldPath="{property>relativePath}"\n\t\t\t\t\t><control:items><core:Item key="{fieldsInfo>key}" text="{fieldsInfo>text}" /></control:items><control:layoutData><l:GridData span="XL12 L12 M12 S12" /></control:layoutData></control:MassEditSelect><template:if test="{= ${dataField>inputType} !== \'CheckBox\' }"><mdc:dependents><macro:ValueHelp\n\t\t\t\t\t\t\t\tcontextPath="{contextPath>}"\n\t\t\t\t\t\t\t\tidPrefix="{= ID.generate([\'MED_\', ${dataField>entitySet}, \'VHD\' ]) }"\n\t\t\t\t\t\t\t\tproperty="{vhProperty>}"\n\t\t\t\t\t\t\t\tuseMultiValueField="true"\n\t\t\t\t\t\t\t/></mdc:dependents></template:if></mdc:Field></template:with></template:then><template:else><ComboBox\n\t\t\t\tid="{= ID.generate([\'MED_\', ${dataField>entitySet}, ${property>relativePath}]) }"\n\t\t\t\tcore:require="{MassEditHandlers: \'sap/fe/core/controls/massEdit/MassEditHandlers\'}"\n\t\t\t\titems="{= \'{path : \\\'\' + ${property>runtimePath} + ${property>relativePath} + \'\\\'}\' }"\n\t\t\t\tchange="MassEditHandlers.handleSelectionChange($event)"\n\t\t\t\tselectedKey="{= \'{\' + ${property>runtimePath} + ${property>relativePath} + \'/selectedKey}\' }"\n\t\t\t\tvisible="{= \'{\' + ${property>runtimePath} + ${property>relativePath} + \'/visible}\' }"\n\t\t\t\tcustomData:fieldPath="{property>relativePath}"\n\t\t\t><items><core:Item key="{fieldsInfo>key}" text="{fieldsInfo>text}" /></items><layoutData><l:GridData\n\t\t\t\t\t\tspan="{= (!${dataField>unitProperty}) ? \'XL12 L12 M12 S12\' : ((${property>relativePath} === ${dataField>unitProperty}) ? \'XL4 L4 M4 S4\' : \'XL8 L8 M8 S8\') }"\n\t\t\t\t\t/></layoutData></ComboBox></template:else></template:if></core:FragmentDefinition>\n',
894
- "sap/fe/core/fpm/manifest.json":'{"_version":"1.14.0","sap.app":{"id":"sap.fe.core.fpm","type":"component","applicationVersion":{"version":"1.111.0"},"title":"Object Page","tags":{"keywords":["Object Page"]},"ach":"CA-UI5-FE","offline":false,"resources":"resources.json"},"sap.ui":{"technology":"UI5","deviceTypes":{"desktop":true,"tablet":true,"phone":true},"supportedThemes":["sap_fiori_3","sap_hcb","sap_bluecrystal","sap_belize","sap_belize_plus","sap_belize_hcw"]},"sap.ui5":{"config":{"sapFiori2Adaptation":{"style":true,"hierarchy":true}},"services":{"templatedViewService":{"factoryName":"sap.fe.core.services.TemplatedViewService","startup":"waitFor","settings":{"converterType":"None"}},"asyncComponentService":{"factoryName":"sap.fe.core.services.AsyncComponentService","startup":"waitFor"}},"handleValidation":true,"dependencies":{"minUI5Version":"${sap.ui5.core.version}","libs":{"sap.f":{},"sap.fe.macros":{},"sap.m":{},"sap.ui.core":{},"sap.ui.layout":{},"sap.ui.mdc":{},"sap.ui.fl":{}}},"contentDensities":{"compact":true,"cozy":true}}}',
895
- "sap/fe/core/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"sap.fe.core","type":"library","embeds":["fpm"],"applicationVersion":{"version":"1.111.0"},"title":"UI5 library: sap.fe.core","description":"UI5 library: sap.fe.core","ach":"CA-UI5-FE","resources":"resources.json","offline":true},"sap.ui":{"technology":"UI5","supportedThemes":[]},"sap.ui5":{"dependencies":{"libs":{"sap.ui.core":{},"sap.f":{},"sap.fe.navigation":{},"sap.fe.placeholder":{},"sap.m":{},"sap.ui.layout":{"lazy":true},"sap.ui.mdc":{},"sap.ui.fl":{}}},"library":{"i18n":{"bundleUrl":"messagebundle.properties","supportedLocales":["","ar","bg","ca","cs","cy","da","de","el","en","en-GB","en-US-sappsd","en-US-saprigi","en-US-saptrc","es","es-MX","et","fi","fr","fr-CA","hi","hr","hu","id","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt","pt-PT","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh-CN","zh-TW"]},"content":{"controls":[],"elements":[],"types":[],"interfaces":[]}}}}',
894
+ "sap/fe/core/fpm/manifest.json":'{"_version":"1.14.0","sap.app":{"id":"sap.fe.core.fpm","type":"component","applicationVersion":{"version":"1.111.3"},"title":"Object Page","tags":{"keywords":["Object Page"]},"ach":"CA-UI5-FE","offline":false,"resources":"resources.json"},"sap.ui":{"technology":"UI5","deviceTypes":{"desktop":true,"tablet":true,"phone":true},"supportedThemes":["sap_fiori_3","sap_hcb","sap_bluecrystal","sap_belize","sap_belize_plus","sap_belize_hcw"]},"sap.ui5":{"config":{"sapFiori2Adaptation":{"style":true,"hierarchy":true}},"services":{"templatedViewService":{"factoryName":"sap.fe.core.services.TemplatedViewService","startup":"waitFor","settings":{"converterType":"None"}},"asyncComponentService":{"factoryName":"sap.fe.core.services.AsyncComponentService","startup":"waitFor"}},"handleValidation":true,"dependencies":{"minUI5Version":"${sap.ui5.core.version}","libs":{"sap.f":{},"sap.fe.macros":{},"sap.m":{},"sap.ui.core":{},"sap.ui.layout":{},"sap.ui.mdc":{},"sap.ui.fl":{}}},"contentDensities":{"compact":true,"cozy":true}}}',
895
+ "sap/fe/core/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"sap.fe.core","type":"library","embeds":["fpm"],"applicationVersion":{"version":"1.111.3"},"title":"UI5 library: sap.fe.core","description":"UI5 library: sap.fe.core","ach":"CA-UI5-FE","resources":"resources.json","offline":true},"sap.ui":{"technology":"UI5","supportedThemes":[]},"sap.ui5":{"dependencies":{"libs":{"sap.ui.core":{},"sap.f":{},"sap.fe.navigation":{},"sap.fe.placeholder":{},"sap.m":{},"sap.ui.layout":{"lazy":true},"sap.ui.mdc":{},"sap.ui.fl":{}}},"library":{"i18n":{"bundleUrl":"messagebundle.properties","supportedLocales":["","ar","bg","ca","cs","cy","da","de","el","en","en-GB","en-US-sappsd","en-US-saprigi","en-US-saptrc","es","es-MX","et","fi","fr","fr-CA","hi","hr","hu","id","it","iw","ja","kk","ko","lt","lv","ms","nl","no","pl","pt","pt-PT","ro","ru","sh","sk","sl","sv","th","tr","uk","vi","zh-CN","zh-TW"]},"content":{"controls":[],"elements":[],"types":[],"interfaces":[]}}}}',
896
896
  "sap/fe/core/rootView/Fcl.view.xml":'<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.f" displayBlock="true" height="100%" controllerName="sap.fe.core.rootView.Fcl"><FlexibleColumnLayout id="appContent" backgroundDesign="Transparent" restoreFocusOnBackNavigation="true" autoFocus="false" /></mvc:View>\n',
897
897
  "sap/fe/core/rootView/NavContainer.view.xml":'<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" displayBlock="true" height="100%" controllerName="sap.fe.core.rootView.NavContainer"><NavContainer id="appContent" autoFocus="false" /></mvc:View>\n',
898
898
  "sap/fe/core/services/view/TemplatingErrorPage.view.xml":'<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" controllerName="sap.fe.core.services.view.TemplatingErrorPage"><MessagePage\n\t\tshowHeader="false"\n\t\ticon="sap-icon://message-error"\n\t\ttext="{sap.fe.i18n>T_TEMPLATING_ERROR_PAGE_SAPFE_APPSTART_TEMPLATING_FAILED}"\n\t\tdescription="{= ${error>/message} ? ${error>/message} : \'\'}"\n\t/></mvc:View>\n'