Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
"use strict";import c from"../getSharedResource.js";import{getTheme as p}from"../config/Theme.js";const u=new Map([["sap_horizon","V5"],["sap_horizon_dark","V5"],["sap_horizon_hcb","V5/HC"],["sap_horizon_hcw","V5/HC"]]),e="V4",i=new Map,l=c("SVGIllustration.registry",new Map),a=c("SVGIllustration.promises",new Map),I=()=>{const s=p();return u.has(s)?u.get(s):e},g=s=>{let t=I();const[o,r]=s.split("/");let n=`${o}/${t}/${r}`;return!i.has(n)&&t!==e&&(t=e,n=`${o}/${t}/${r}`),{registryKey:n,collection:t}},h=(s,t)=>{const o=t.collection||e;l.set(`${t.set}/${o}/${s}`,{dialogSvg:t.dialogSvg,sceneSvg:t.sceneSvg,spotSvg:t.spotSvg,dotSvg:t.dotSvg,title:t.title,subtitle:t.subtitle})},y=(s,t)=>{i.set(s,t)},m=s=>{const{registryKey:t}=g(s);if(!a.has(t)){if(!i.has(t)){const r=s.startsWith("fiori/")?s.replace("fiori/",""):s;throw new Error(`No loader registered for the ${s} illustration. Probably you forgot to import the "@ui5/webcomponents-fiori/dist/illustrations/${r}.js" module. Or you can import the "@ui5/webcomponents-fiori/dist/illustrations/AllIllustrations.js" module that will make all illustrations available, but fetch only the ones used.`)}const o=i.get(t);a.set(t,o(t))}return a.get(t)},d=s=>{const{registryKey:t}=g(s);return l.get(t)},S=async s=>{const{registryKey:t}=g(s);return await m(s),l.get(t)};export{d as getIllustrationDataSync,h as registerIllustration,y as registerIllustrationLoader,S as getIllustrationData};
//# sourceMappingURL=Illustrations.js.map