@pega/constellationjs 1.0.19 → 1.0.21

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.
Files changed (48) hide show
  1. package/__DO_NOT_COMMIT/8.7.4-node-14.21.2/bootstrap-shell.js +1 -0
  2. package/__DO_NOT_COMMIT/8.7.4-node-14.21.2/bootstrap-shell.js.br +0 -0
  3. package/__DO_NOT_COMMIT/8.7.4-node-14.21.2/bootstrap-shell.js.gz +0 -0
  4. package/__DO_NOT_COMMIT/8.7.4-node-14.21.2/constellation-core.60079340.js +2 -0
  5. package/__DO_NOT_COMMIT/8.7.4-node-14.21.2/constellation-core.60079340.js.LICENSE.txt +124 -0
  6. package/{dist → __DO_NOT_COMMIT/8.7.4-node-14.21.2}/constellation-core.60079340.js.br +0 -0
  7. package/{dist → __DO_NOT_COMMIT/8.7.4-node-14.21.2}/constellation-core.60079340.js.gz +0 -0
  8. package/__DO_NOT_COMMIT/8.7.4-node-14.21.2/lib_asset.json +5 -0
  9. package/__DO_NOT_COMMIT/8.8.0-20221209-LPtesting/bootstrap-shell.js +1 -0
  10. package/__DO_NOT_COMMIT/8.8.0-20221209-LPtesting/bootstrap-shell.js.br +0 -0
  11. package/__DO_NOT_COMMIT/8.8.0-20221209-LPtesting/bootstrap-shell.js.gz +0 -0
  12. package/__DO_NOT_COMMIT/8.8.0-20221209-LPtesting/constellation-core.d9eb3b84.js +2 -0
  13. package/{dist/constellation-core.60079340.js.LICENSE.txt → __DO_NOT_COMMIT/8.8.0-20221209-LPtesting/constellation-core.d9eb3b84.js.LICENSE.txt} +0 -0
  14. package/__DO_NOT_COMMIT/8.8.0-20221209-LPtesting/constellation-core.d9eb3b84.js.br +0 -0
  15. package/__DO_NOT_COMMIT/8.8.0-20221209-LPtesting/constellation-core.d9eb3b84.js.gz +0 -0
  16. package/__DO_NOT_COMMIT/8.8.0-20221209-LPtesting/lib_asset.json +7 -0
  17. package/__DO_NOT_COMMIT/8.8.0-LP-fix-20221118/bootstrap-shell.js +616 -0
  18. package/__DO_NOT_COMMIT/8.8.0-LP-fix-20221118/bootstrap-shell.js.br +0 -0
  19. package/__DO_NOT_COMMIT/8.8.0-LP-fix-20221118/bootstrap-shell.js.gz +0 -0
  20. package/__DO_NOT_COMMIT/8.8.0-LP-fix-20221118/constellation-core.1fdcd53a.js +62904 -0
  21. package/__DO_NOT_COMMIT/8.8.0-LP-fix-20221118/constellation-core.1fdcd53a.js.LICENSE.txt +124 -0
  22. package/__DO_NOT_COMMIT/8.8.0-LP-fix-20221118/lib_asset.json +7 -0
  23. package/__DO_NOT_COMMIT/8.8.0-node-14.21.2/bootstrap-shell.js +1 -0
  24. package/__DO_NOT_COMMIT/8.8.0-node-14.21.2/bootstrap-shell.js.br +0 -0
  25. package/__DO_NOT_COMMIT/8.8.0-node-14.21.2/bootstrap-shell.js.gz +0 -0
  26. package/__DO_NOT_COMMIT/8.8.0-node-14.21.2/constellation-core.d9eb3b84.js +2 -0
  27. package/__DO_NOT_COMMIT/8.8.0-node-14.21.2/constellation-core.d9eb3b84.js.LICENSE.txt +124 -0
  28. package/__DO_NOT_COMMIT/8.8.0-node-14.21.2/constellation-core.d9eb3b84.js.br +0 -0
  29. package/__DO_NOT_COMMIT/8.8.0-node-14.21.2/constellation-core.d9eb3b84.js.gz +0 -0
  30. package/__DO_NOT_COMMIT/8.8.0-node-14.21.2/lib_asset.json +7 -0
  31. package/__DO_NOT_COMMIT/8.8.0-node-18.12.1/bootstrap-shell.js +1 -0
  32. package/__DO_NOT_COMMIT/8.8.0-node-18.12.1/bootstrap-shell.js.br +0 -0
  33. package/__DO_NOT_COMMIT/8.8.0-node-18.12.1/bootstrap-shell.js.gz +0 -0
  34. package/__DO_NOT_COMMIT/8.8.0-node-18.12.1/constellation-core.d9eb3b84.js +2 -0
  35. package/__DO_NOT_COMMIT/8.8.0-node-18.12.1/constellation-core.d9eb3b84.js.LICENSE.txt +124 -0
  36. package/__DO_NOT_COMMIT/8.8.0-node-18.12.1/constellation-core.d9eb3b84.js.br +0 -0
  37. package/__DO_NOT_COMMIT/8.8.0-node-18.12.1/constellation-core.d9eb3b84.js.gz +0 -0
  38. package/__DO_NOT_COMMIT/8.8.0-node-18.12.1/lib_asset.json +7 -0
  39. package/dist/bootstrap-shell.js +1 -1
  40. package/dist/bootstrap-shell.js.br +0 -0
  41. package/dist/bootstrap-shell.js.gz +0 -0
  42. package/dist/constellation-core.d9eb3b84.js +2 -0
  43. package/dist/constellation-core.d9eb3b84.js.LICENSE.txt +124 -0
  44. package/dist/constellation-core.d9eb3b84.js.br +0 -0
  45. package/dist/constellation-core.d9eb3b84.js.gz +0 -0
  46. package/dist/lib_asset.json +6 -4
  47. package/package.json +1 -1
  48. package/dist/constellation-core.60079340.js +0 -2
@@ -0,0 +1,124 @@
1
+
2
+
3
+ Pegasystems' Developer License for PegaRULES Process Commander
4
+
5
+ IMPORTANT-READ CAREFULLY: Until you or your company have a signed written
6
+ Software License Agreement with Pegasystems Inc. ("Pegasystems") covering the
7
+ Use of the PegaRULES Process Commander Software ("Software"), the terms of
8
+ this license agreement shall govern your Use of the Software. If you or your
9
+ company have signed a written Software License Agreement with Pegasystems
10
+ covering the Use of the Software, the terms of the signed license agreement
11
+ shall take precedence over any conflicting terms of this Agreement. This
12
+ PegaRULES Process Commander Software License Agreement ("License Agreement")
13
+ is a binding agreement between you and Pegasystems for the use of the
14
+ Software identified above, or any component thereof, which includes computer
15
+ software and may include associated media, printed materials, and "online" or
16
+ electronic documentation. Your use, distribution, or installation of the
17
+ Software indicates your acceptance of this agreement. BY INSTALLING, COPYING,
18
+ OR OTHERWISE USING THE SOFTWARE, YOU AGREE TO BE BOUND BY THE TERMS OF THIS
19
+ LICENSE AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE
20
+ AGREEMENT, DO NOT INSTALL, COPY, OR USE THE SOFTWARE.
21
+
22
+ The Software is owned by Pegasystems or its suppliers and is protected by
23
+ copyright and other laws. THE SOFTWARE IS LICENSED, NOT PURCHASED.
24
+
25
+ 1. GRANT OF LICENSE. BY CLICKING ACCEPT BELOW, EVIDENCING YOUR ACCEPTANCE OF
26
+ THIS LICENSE AGREEMENT, PEGASYSTEMS GRANTS YOU A LIMITED, NON-TRANSFERABLE,
27
+ NON-EXCLUSIVE LICENSE TO USE THE SOFTWARE, IN OBJECT CODE ONLY, AS FOLLOWS:
28
+
29
+ Provided that you comply with all terms and conditions of this License
30
+ Agreement, Pegasystems grants to you the following rights under this License
31
+ Agreement. The Software is licensed solely for development purposes. In
32
+ addition, you are permitted to use the Software on one server solely for the
33
+ purposes of developing, testing and demonstrating applications. Production
34
+ use of this Software is NOT granted by this License Agreement.
35
+
36
+ (a) Solely for purposes of your use of the Software as authorized under this
37
+ License, you may permit an unlimited number of authorized devices to access
38
+ it for the purposes of testing an application under development. Deployment
39
+ licenses, for any other purpose (including, without limitation, usage in a
40
+ general production environment) must be obtained from Pegasystems.
41
+
42
+ (b) TERM - YOUR RIGHT TO USE THE SOFTWARE UNDER THIS LICENSE SHALL BE
43
+ EFFECTIVE FROM THE DATE YOU FIRST INSTALL ANY PORTION OF THE SOFTWARE ON ANY
44
+ DEVICE FOR A PERIOD OF NINETY (90) DAYS, AFTER WHICH TIME THE SOFTWARE AND
45
+ ANY COPIES MUST BE UNINSTALLED AND RETURNED TO PEGASYSTEMS. If you desire to
46
+ use the Software after this Term, you will need to execute a written License
47
+ Agreement with Pegasystems.
48
+
49
+ (c) All rights not expressly granted are reserved by Pegasystems.
50
+
51
+ 2. ADDITIONAL LIMITATIONS. You may not reverse engineer, decompile, or
52
+ disassemble the Software. You may not rent, lease, lend, or transfer the
53
+ Software.
54
+
55
+ 3. INTELLECTUAL PROPERTY RIGHTS. All ownership, title and intellectual
56
+ property rights in and to the Software both existing object and all generated
57
+ code (including but not limited to any images, photographs, animations,
58
+ video, audio, text and "applets" incorporated into the Software), and any
59
+ copies you are permitted to make herein are owned by Pegasystems or its
60
+ suppliers. All ownership, title and intellectual property rights in and to
61
+ the content which may be accessed through use of the Software is the property
62
+ of the respective content owner and may be protected by applicable copyright
63
+ or other intellectual property laws and treaties. This License grants you no
64
+ rights to use such content. For each copy of the Software you are authorized
65
+ to use above, you may also reproduce one additional copy of the Software
66
+ solely for archival or restoration purposes.
67
+
68
+ 4. U.S. GOVERNMENT RESTRICTED RIGHTS. All Software provided to the U.S.
69
+ Government pursuant to solicitations issued on or after December 1, 1995 is
70
+ provided with the commercial rights and restrictions described elsewhere
71
+ herein. All SOFTWARE provided to the U.S. Government pursuant to
72
+ solicitations issued prior to December 1, 1995 is provided with RESTRICTED
73
+ RIGHTS as provided for in FAR, 48 CFR 52.227-14 (JUNE 1987) or FAR, 48 CFR
74
+ 252.227-7013 (OCT 1988), as applicable.
75
+
76
+ 5. EXPORT RESTRICTIONS. You acknowledge that Software is of U.S. origin. You
77
+ agree to comply with all applicable international and national laws that
78
+ apply to the Software, including the U.S. Export Administration Regulations,
79
+ as well as end-user, end-use and destination restrictions issued by U.S. and
80
+ other governments.
81
+
82
+ 6. APPLICABLE LAW. This License is governed by the laws of the Commonwealth
83
+ of Massachusetts.
84
+
85
+ 7. QUESTIONS. Should you have any questions concerning this License, or if
86
+ you desire to contact Pegasystems for any reason, please contact
87
+ Pegasystems Inc., One Rogers Street Cambridge, MA 02142-1209, USA.
88
+ 617-374-9600 or on the Web at http://www.pega.com.
89
+
90
+ 8. DISCLAIMER OF WARRANTIES. To the maximum extent permitted by applicable
91
+ law, Pegasystems and its suppliers provide the Software AS IS, and hereby
92
+ disclaim all warranties and conditions, either express, implied or statutory,
93
+ including, but not limited to, any (if any) implied warranties or conditions
94
+ of merchantability, of fitness for a particular purpose, of lack of viruses,
95
+ of accuracy or completeness of responses, of results, and of lack of
96
+ negligence or lack of workmanlike effort. ALSO, THERE IS NO WARRANTY OR
97
+ CONDITION OF TITLE, QUIET ENJOYMENT, QUIET POSSESSION, CORRESPONDENCE TO
98
+ DESCRIPTION OR NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE. THE ENTIRE RISK
99
+ AS TO THE QUALITY OF OR ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE
100
+ REMAINS WITH YOU.
101
+
102
+ 9. EXCLUSION OF INCIDENTAL, CONSEQUENTIAL AND CERTAIN OTHER DAMAGES. TO THE
103
+ MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL PEGASYSTEMS OR
104
+ ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR
105
+ CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR
106
+ LOSS OF PROFITS OR CONFIDENTIAL OR OTHER INFORMATION, FOR BUSINESS
107
+ INTERRUPTION, FOR PERSONAL INJURY, FOR LOSS OF PRIVACY, FOR FAILURE TO MEET
108
+ ANY DUTY INCLUDING OF GOOD FAITH OR OF REASONABLE CARE, FOR NEGLIGENCE, AND
109
+ FOR ANY OTHER PECUNIARY OR OTHER LOSS WHATSOEVER) ARISING OUT OF OR IN ANY
110
+ WAY RELATED TO THE USE OF OR INABILITY TO USE THE SOFTWARE, OR OTHERWISE
111
+ UNDER OR IN CONNECTION WITH ANY PROVISION OF THIS LICENSE, EVEN IN THE EVENT
112
+ OF THE FAULT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, BREACH OF
113
+ CONTRACT OR BREACH OF WARRANTY OF PEGASYSTEMS OR ANY SUPPLIER, AND EVEN IF
114
+ PEGASYSTEMS OR ANY SUPPLIER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
115
+ DAMAGES.
116
+
117
+ 10. LIMITATION OF LIABILITY AND REMEDIES. NOTWITHSTANDING ANY DAMAGES THAT
118
+ YOU MIGHT INCUR FOR ANY REASON WHATSOEVER (INCLUDING, WITHOUT LIMITATION, ALL
119
+ DAMAGES REFERENCED ABOVE AND ALL DIRECT OR GENERAL DAMAGES), PEGASYSTEMS
120
+ AGGREGATE LIABILITY FOR ALL MATTERS ARISING FROM, OR IN CONNECTION WITH THIS
121
+ AGREEMENT, WHETHER IN CONTRACT, TORT, OR OTHERWISE, SHALL BE LIMITED TO THE
122
+ GREATER OF THE AMOUNT ACTUALLY PAID BY YOU FOR THE SOFTWARE OR $10.00 EVEN IF
123
+ THAT PARTY HAS BEEN ADVISED ABOUT OR SHOULD HAVE BEEN AWARE OF THE
124
+ POSSIBILITY OF SUCH DAMAGES.
@@ -0,0 +1,5 @@
1
+ {
2
+ "externals":[],
3
+ "entry":[],
4
+ "prerequisite":["constellation-core.60079340.js"]
5
+ }
@@ -0,0 +1 @@
1
+ const rootContainerWithHybrid={type:"RootContainer",config:{renderingMode:"hybrid"},children:[{type:"HybridViewContainer",config:{routingInfo:"@ROUTING_INFO",name:"primary",contextName:"app"},children:[]}]},buildSemanticUrl=(e,t,o,n,i)=>{const a=new URLSearchParams(t);let r=!1;"true"===o&&(r=!0);let s=null,l=null;if(e){e.startsWith("/")&&(e=e.substring(1));const t=e.split("/");t.length>0&&t[0]&&(s=t[0]),t.length>1&&t[1]&&(l=t[1])}else r=!1;let c=n;s&&(c=`${c}/${s}`),l&&(c=`${c}/${l}`),r&&(!a.has("noPortal")&&a.append("noPortal",!0),l&&i&&a.append("view",i));const C=a.toString();return c+=C?`?${C}`:"",c};let containerCount=0;const loadView=(e,t,o=[],n,i,a,r)=>{const s=("hybrid"===r?"hybrid_"+ ++containerCount:r)||"mashup"+ ++containerCount,l={type:"RootContainer",config:{renderingMode:"portal",viewConfig:"@P .viewConfig",name:s}};window.PCore.getRuntimeParamsAPI().setRuntimeParams(n),constellationCore.loadRootComponent(e,l,o,i,a).then((()=>constellationCore.updateStoreWithUiRoot(t,s)))},loadPortal=(e,t,o=[],n)=>{const i=n||"portal"+ ++containerCount,a={type:"RootContainer",config:{viewConfig:"@P .viewConfig",renderingMode:"portal",skeleton:"LoadingComponent",name:i}};o.push(a.config.skeleton),PCore.getEnvironmentInfo().isPortalLoaded=!0,constellationCore.loadRootComponent(e,a,o).then((()=>constellationCore.loadPortalView(t,i)))},loadComponent=(e,t,o)=>constellationCore.loadComponent(t,e,o),loadViewByName=(e,t,o,n,i,a,r,s)=>{const l=s||"mashup"+ ++containerCount,c={type:"RootContainer",config:{viewConfig:"@P .viewConfig",renderingMode:"view",name:l}};constellationCore.loadRootComponent(e,c,i,a,r).then((()=>constellationCore.loadViewByName(t,o,n,l)))},loadMashup=(e,t=!0)=>{if(t){const t=document.getElementsByTagName(e)[0]&&document.getElementsByTagName(e)[0].parentNode;if(t){const e=document.createElement("style");e.setAttribute("id","portal-less-styles"),e.innerHTML="app-root.mashup > .case-view, app-root.mashup > .page-view { min-height: 0px !important; }",t.appendChild(e)}}constellationCore.loadRootComponent(e,{type:"RootContainer",config:{renderingMode:"noPortal"},children:[{type:"ViewContainer",config:{routingInfo:"@ROUTING_INFO",name:"primary"}}]},["View","ViewContainer"]),window.parent!==window&&import(`${constellationCore.PCoreInstance.getAssetLoader().getStaticServerUrl()}constellation-mashup-bridge.js`).then((e=>{e.mashup.init({resizing:"stretch"})}))},loadCase=(e,t,o=[],n,i)=>{o.push("HybridViewContainer","View"),constellationCore.loadRootComponent(e,rootContainerWithHybrid,o,n,i).then((()=>constellationCore.getCaseApi().openCase(t,"app","primary")))},createCase=(e,t,o=[],n,i)=>{o.push("HybridViewContainer","View"),constellationCore.loadRootComponent(e,rootContainerWithHybrid,o,n,i).then((()=>constellationCore.getCaseApi().createCase(t,"app","primary")))},loadAssignment=(e,t,o=[],n,i)=>{o.push("HybridViewContainer","View"),constellationCore.loadRootComponent(e,rootContainerWithHybrid,o,n,i).then((()=>constellationCore.getCaseApi().openAssignment(t,"app","primary")))},initCoreConfig=e=>{const{routingInfo:t,actionModel:o,serviceConfig:n,additionalHeaders:i,tokens:a,semanticUrl:r,queryParams:s,noPortal:l,timezone:c,noHistory:C,viewName:p,theme:d,fieldDefaults:m,restServerConfig:g,dynamicLoadComponents:h=!0,dynamicSemanticUrl:u=!0,enableRouting:y=!0,locale:w,environmentInfo:f,renderingMode:v="FULL_PORTAL",remoteCaseMapping:P={}}=e,{appAlias:R,googleMapKey:S,staticContentServer:b,appStaticContentServer:$=null,contextPath:A,messagingService:U=null}=n,I={...f,renderingMode:v};let M=location.origin;const L={};if(void 0!==g&&(M=g),A&&(M=`${M}${A}`),R&&(M=`${M}/${R}`),!0===u){const e=buildSemanticUrl(r,s,l,M,p);!C&&e&&history.pushState({},"home",e)}else if("HYBRID"!==v){let e=window.location.href;e.indexOf("?")>0&&(e=e.substring(0,e.indexOf("?")),history.pushState({},"home",e)),L.dynamicSemanticUrl=!1}!0!==h&&(L.dynamicLoadComponents=!1);let H=null;if(R){const e=R.indexOf("/app/");H=e>=0?R.substring(e+1):R}if(constellationCore.enableAppRouting(y),Object.keys(L).length>0&&PCore.setBehaviorOverrides(L),constellationCore.initStore(),d){let e="object"==typeof d?d:null;if(null===e)try{e=JSON.parse(d)}catch{e={}}PCore.getEnvironmentInfo().setTheme(e)}constellationCore.setFieldsDefaultConfigs(m),constellationCore.setFetchDefaultHeaders(i);const N={...t,domain:`${window.location.protocol}//${window.location.host}`,searchParams:window.location.search};constellationCore.initAppShell(N,o,{server:M}),constellationCore.setAppAlias(H),constellationCore.setGoogleMapsAPIKey(S),constellationCore.setStaticServerUrl(b,$,a.C11NB2S),constellationCore.PCoreInstance.getLocaleUtils().setTimezone(c),PCore.getEnvironmentInfo().setLocale(w),PCore.getRemoteCaseUtils().setRemoteCaseMapping(P),PCore.getEnvironmentInfo().setEnvironmentInfo(I),PCore.getMessagingServiceManager().setConnectionConfig({messagingService:U}),PCore.getNavigationUtils().init()},importConstellationCore=async(e,t)=>{const{isDevServerMode:o,isSdk:n}=t,{prerequisite:i}=t;if(i&&i.length>0){const t=i[0];let a;const r=Object.keys(t)[0];if(o){const e=Object.values(t)[0];a=e.endsWith("/")?`${e}prerequisite/${r}`:`${e}/prerequisite/${r}`}else a=e.endsWith("/")?`${e}prerequisite/${r}`:`${e}/prerequisite/${r}`;if(n){a=`${e.endsWith("/")?e.slice(0,-1):e}/prerequisite/${r.startsWith("/")?r.slice(1):r}`}return import(a).then((t=>{window.constellationCore=t,constellationCore.setStaticServerUrl(e,"no-appstatic"),void 0!==window.constellationCore.PCoreInstance&&(window.PCore=window.constellationCore.PCoreInstance);for(let t=1;t<i.length;t+=1){const n=i[t],a=Object.keys(n)[0];if(o){const e=Object.values(n)[0];import(`${e}prerequisite/${a}`).then((e=>{console.log(e)}))}else import(`${e}prerequisite/${a}`).then((e=>{console.log(e)}))}}))}return null},importExternals=async e=>{const{isDevServerMode:t}=e,o=constellationCore.PCoreInstance;await o.getAssetLoader().loadAssets(e.externals,{isDevServerMode:t}),await o.getAssetLoader().loadAssets(e.entry,{isDevServerMode:t});const n=o.getEnvironmentInfo().getLocale();if("en-US"!==n)try{const e=o.getLocaleUtils().GENERIC_BUNDLE_KEY,t=await o.getAssetLoader().getSvcLocale(n,`${e}.json`);if(t.ok){const n=await t.json();o.getLocaleUtils().setLocaleForRule(n,e)}}catch(e){console.warn(e)}},importAssetsJson=async e=>{const t=(new Date).getTime();return fetch(`${e}lib_asset.json?v=${t}`).then((e=>e.json()))},importReactRoot=async()=>{const e=[];return PCore.getComponentsRegistry().getComponent("ReactRoot").modules.forEach((t=>{e.push(t())})),Promise.allSettled(e)},bootstrap=async(e,t)=>new Promise((async(o,n)=>{try{const{staticContentServer:n}=e.serviceConfig,i=await importAssetsJson(n);await importConstellationCore(n,i),initCoreConfig(e);const a=async()=>{await importReactRoot(),t&&t(),o(!0)};PCore.getPubSubUtils().subscribe("component-map-loaded",a),await importExternals(i),"ReactRoot"in PCore.getComponentsRegistry().getLazyMap()&&o(!0)}catch(e){n(e)}})),getBootstrapConfig=async(e,t)=>fetch(`${e}/api/application/v2/data_views/D_pxBootstrapConfig`,{method:"GET",headers:new Headers({Authorization:t})}).then((e=>e.json())),loadRootContainer=(e,t=[],o,n)=>(t.push("HybridViewContainer","View"),constellationCore.loadRootComponent(e,rootContainerWithHybrid,t,o,n)),bootstrapWithAuthHeader=async(e,t,o=[],n,i)=>{const{restServerUrl:a,customRendering:r=!1,onPCoreReadyCallback:s,staticContentServerUrl:l,dynamicSetCookie:c=!1,authInfo:C={},theme:p={},renderingMode:d}=e;let m,{authorizationHeader:g,appAlias:h}=e;if(g&&0===Object.keys(C).length&&(C.authType="custom"),!g&&C.tokenInfo){const{tokenInfo:e}=C;g=`${e.token_type} ${e.access_token}`}h?(h=-1!==h.indexOf("/")?h:`app/${h}`,m=await getBootstrapConfig(`${a}/${h}`,g)):m=await getBootstrapConfig(`${a}`,g);const u=JSON.parse(m.pyConfigJSON);u.restServerConfig=a,u.dynamicSemanticUrl=!1,u.dynamicSetCookie=c,u.enableRouting=!1,u.serviceConfig.contextPath="",u.serviceConfig.appAlias=h,u.additionalHeaders={Authorization:g},u.dynamicLoadComponents=!r,u.dynamicSemanticUrl=!r,u.noHistory=!0,u.theme=p??{},u.renderingMode=d??u.renderingMode;const y=l||u.serviceConfig.staticContentServer;u.serviceConfig.staticContentServer=y;const w=await importAssetsJson(y);if(await importConstellationCore(y,w),initCoreConfig(u),s&&window.PCore.onPCoreReady(s),C&&["OAuth2.0","custom"].includes(C?.authType)&&constellationCore.setFetchAuthInfo(C),!r){const e=new Promise((async(e,t)=>{try{const t=async()=>{await importReactRoot(),e(!0)};PCore.getPubSubUtils().subscribe("component-map-loaded",t),await importExternals(w),"ReactRoot"in PCore.getComponentsRegistry().getLazyMap()&&e(!0)}catch(e){t(e)}}));await e,await loadRootContainer(t,o,n,i)}},initConstellationCore=async e=>{const t=await importAssetsJson(e);await importConstellationCore(e,t)},isNewUnifiedBuild=()=>!1;export{bootstrap,loadView,loadPortal,loadComponent,loadMashup,loadViewByName,loadCase,createCase,loadAssignment,bootstrapWithAuthHeader,initConstellationCore,isNewUnifiedBuild};