@roomle/embedding-lib 6.5.0 → 6.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser-C_Dfiou7.mjs +18 -0
- package/browser-DRgK3Fk8.mjs +16 -0
- package/comlink-BipJ8Ikr.mjs +237 -0
- package/comlink-Dds_bpug.mjs +220 -0
- package/docs/md/web/embedding/CHANGELOG.md +32 -150
- package/drag-ghost-BGZWgVa7.mjs +60 -0
- package/drag-ghost-DGgvJ4Lm.mjs +65 -0
- package/drag-in-AFSAsnAN.mjs +102 -0
- package/drag-in-BwqVwCBp.mjs +96 -0
- package/embedding-plugins.js +2 -14
- package/embedding-plugins.min.js +2 -1
- package/from-custom-view-B-eXMXF1.mjs +207 -0
- package/from-custom-view-tZcYF-zX.mjs +206 -0
- package/from-website--UCl1aQs.mjs +113 -0
- package/from-website-BesXdvcV.mjs +118 -0
- package/hi.js +72 -119
- package/hi.min.js +71 -1
- package/package.json +1 -1
- package/rolldown-runtime-C-QNzSnW.mjs +11 -0
- package/rolldown-runtime-C017PlDO.mjs +9 -0
- package/roomle-embedding-lib.js +394 -576
- package/roomle-embedding-lib.min.js +365 -1
- package/utils-BnWKaFPc.mjs +126 -0
- package/utils-DfC2ZLUc.mjs +118 -0
- package/browser-BhHw2H1M.mjs +0 -1
- package/browser-CUgD7zyH.mjs +0 -21
- package/comlink-BAiXCcU9.mjs +0 -258
- package/comlink-CmT64Qi3.mjs +0 -1
- package/drag-ghost-B7UAYefM.mjs +0 -1
- package/drag-ghost-DHrf_Evu.mjs +0 -81
- package/embedding-plugins-DLVs7ER4.mjs +0 -1
- package/embedding-plugins-DqMSzAJe.mjs +0 -140
- package/from-custom-view-CaDOooe4.mjs +0 -1
- package/from-custom-view-T67aFIDR.mjs +0 -249
- package/from-website-Bvd5Pi0i.mjs +0 -134
- package/from-website-nKwD78_u.mjs +0 -1
- package/utils-BqTPLNLs.mjs +0 -1
- package/utils-Dav4kGNW.mjs +0 -150
package/roomle-embedding-lib.js
CHANGED
|
@@ -1,577 +1,395 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
window,
|
|
394
|
-
window.parent,
|
|
395
|
-
l
|
|
396
|
-
);
|
|
397
|
-
r.setMessageHandler(u);
|
|
398
|
-
const d = [e];
|
|
399
|
-
return u.sendMessage(
|
|
400
|
-
f.REGISTER_CUSTOM_VIEW,
|
|
401
|
-
d
|
|
402
|
-
), await i, u.sendMessage(f.GET_METHODS, d), await n, r.setupPlugins(
|
|
403
|
-
t,
|
|
404
|
-
document.body,
|
|
405
|
-
"custom-view"
|
|
406
|
-
), await Promise.allSettled(r.pluginsLoaded), r;
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
* Method to create a new instance of a Roomle Configurator
|
|
410
|
-
* @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
|
|
411
|
-
* @param container DOM container in which the configurator should be placed
|
|
412
|
-
* @param initData settings with which the configurator should be started
|
|
413
|
-
*/
|
|
414
|
-
static createConfigurator(e, t, r, o = []) {
|
|
415
|
-
return this._create(
|
|
416
|
-
e,
|
|
417
|
-
t,
|
|
418
|
-
r,
|
|
419
|
-
o
|
|
420
|
-
);
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* Method to create a new instance of a Roomle Configurator
|
|
424
|
-
* @deprecated please use "createConfigurator"
|
|
425
|
-
* @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
|
|
426
|
-
* @param container DOM container in which the configurator should be placed
|
|
427
|
-
* @param initData settings with which the configurator should be started
|
|
428
|
-
*/
|
|
429
|
-
static create(e, t, r, o) {
|
|
430
|
-
return this._create(
|
|
431
|
-
e,
|
|
432
|
-
t,
|
|
433
|
-
r,
|
|
434
|
-
o
|
|
435
|
-
);
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Method to create a new instance of a Roomle Viewer
|
|
439
|
-
* @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
|
|
440
|
-
* @param container DOM container in which the configurator should be placed
|
|
441
|
-
* @param initData settings with which the configurator should be started
|
|
442
|
-
*/
|
|
443
|
-
static createViewer(e, t, r, o = []) {
|
|
444
|
-
return this._create(
|
|
445
|
-
e,
|
|
446
|
-
t,
|
|
447
|
-
r,
|
|
448
|
-
o
|
|
449
|
-
);
|
|
450
|
-
}
|
|
451
|
-
static hiMessageHandler = null;
|
|
452
|
-
static setupHi(e) {
|
|
453
|
-
console.warn(
|
|
454
|
-
`[DEPRECATED] RoomleEmbeddingApi.setupHi() is deprecated and will be removed.
|
|
455
|
-
Migration: import { setupHi } from '@roomle/embedding-lib/hi'; setupHi(libraryIdOrOptions, callbacks);`
|
|
456
|
-
), this.hiMessageHandler && window.removeEventListener("message", this.hiMessageHandler), this.hiMessageHandler = (t) => {
|
|
457
|
-
if (t.data.type === "connect_hi" && t.data.port) {
|
|
458
|
-
const r = t.data.port;
|
|
459
|
-
r.start?.(), D(F(e), r);
|
|
460
|
-
}
|
|
461
|
-
}, window.addEventListener("message", this.hiMessageHandler);
|
|
462
|
-
}
|
|
463
|
-
static async _create(e, t, r, o) {
|
|
464
|
-
return new Promise(async (i, a) => {
|
|
465
|
-
try {
|
|
466
|
-
const n = A(
|
|
467
|
-
z(),
|
|
468
|
-
K(r)
|
|
469
|
-
);
|
|
470
|
-
Q(n);
|
|
471
|
-
const l = await j(
|
|
472
|
-
e,
|
|
473
|
-
n
|
|
474
|
-
);
|
|
475
|
-
r = $(l, n);
|
|
476
|
-
const u = new this(
|
|
477
|
-
l,
|
|
478
|
-
t,
|
|
479
|
-
r,
|
|
480
|
-
o,
|
|
481
|
-
i
|
|
482
|
-
);
|
|
483
|
-
return await Promise.allSettled(u.pluginsLoaded), u;
|
|
484
|
-
} catch (n) {
|
|
485
|
-
return a(n);
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
_waitForIframe;
|
|
490
|
-
_container;
|
|
491
|
-
_configuratorSettings;
|
|
492
|
-
_initData = {};
|
|
493
|
-
_iframe;
|
|
494
|
-
constructor(e, t, r, o, i) {
|
|
495
|
-
if (super(), !e || typeof e.id != "string")
|
|
496
|
-
throw new Error(
|
|
497
|
-
"Please provide a correct configuratorId, you get the correct ID from your Roomle Contact Person"
|
|
498
|
-
);
|
|
499
|
-
if (_.has(t))
|
|
500
|
-
throw new Error("There is already an instance on this DOM element");
|
|
501
|
-
if (!!!document.getElementById(N)) {
|
|
502
|
-
const u = r.zIndex || 9999999, d = document.createElement("style");
|
|
503
|
-
d.type = "text/css", d.id = N;
|
|
504
|
-
const g = "transition:all ease-in-out " + ee + "ms;", m = ["-webkit-", "-o-"].reduce(
|
|
505
|
-
(C, v) => C += v + g,
|
|
506
|
-
""
|
|
507
|
-
) + g, H = L();
|
|
508
|
-
d.innerHTML = `
|
|
509
|
-
.${c.CONTAINER}{${O}:${H};}
|
|
510
|
-
.${c.POSITION}{position:fixed;top:0;left:0;z-index:${u};opacity:0}
|
|
511
|
-
.${c.TRANSITION}{${m}}
|
|
512
|
-
.${c.FILL}{width:100%;height:100%;opacity:1}
|
|
513
|
-
.${c.ANDROID_HEIGHT}{height:calc(var(${O},1vh)*100)}
|
|
514
|
-
.${c.OVERFLOW_HIDDEN}{overflow:hidden}
|
|
515
|
-
`, document.head.appendChild(d);
|
|
516
|
-
}
|
|
517
|
-
this._executeMessage = this._executeMessage.bind(this);
|
|
518
|
-
const n = new S(
|
|
519
|
-
"website",
|
|
520
|
-
window,
|
|
521
|
-
null,
|
|
522
|
-
this._executeMessage
|
|
523
|
-
);
|
|
524
|
-
this.setMessageHandler(n), this._onResize = this._onResize.bind(this), M() && window.addEventListener("resize", this._onResize), this._container = t, this._initData = r, this._configuratorSettings = e;
|
|
525
|
-
const l = this._createIframe();
|
|
526
|
-
this._onUseFullPage = this._onUseFullPage.bind(this), this._onBackToWebsite = this._onBackToWebsite.bind(this), this._waitForIframe = i, this._container.appendChild(l), this._iframe = l, this.setupPlugins(o, this._iframe), _.set(t, !0);
|
|
527
|
-
}
|
|
528
|
-
teardown() {
|
|
529
|
-
this._container && _.delete(this._container);
|
|
530
|
-
const e = this._container.querySelector("iframe");
|
|
531
|
-
e && this._container.removeChild(e), window.removeEventListener("resize", this._onResize);
|
|
532
|
-
}
|
|
533
|
-
_createIframe() {
|
|
534
|
-
const e = document.createElement("iframe");
|
|
535
|
-
let t = this._configuratorSettings?.url || "https://www.roomle.com/t/cp/";
|
|
536
|
-
return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.classList.add(c.CONTAINER), e.classList.add(c.FILL), e;
|
|
537
|
-
}
|
|
538
|
-
_onResize() {
|
|
539
|
-
y(this._iframe);
|
|
540
|
-
}
|
|
541
|
-
_onUseFullPage() {
|
|
542
|
-
this._iframe.classList.add(c.POSITION), document.documentElement.classList.add(c.OVERFLOW_HIDDEN), window.document.body.classList.add(c.OVERFLOW_HIDDEN), M() && (y(this._iframe), this._iframe.classList.add(c.ANDROID_HEIGHT));
|
|
543
|
-
}
|
|
544
|
-
_onBackToWebsite() {
|
|
545
|
-
this._iframe.classList.remove(c.POSITION), this._iframe.classList.remove(c.ANDROID_HEIGHT), document.documentElement.classList.remove(c.OVERFLOW_HIDDEN), window.document.body.classList.remove(c.OVERFLOW_HIDDEN);
|
|
546
|
-
}
|
|
547
|
-
_executeMessage({ message: e, args: t }, r) {
|
|
548
|
-
if (r.source && r.source === this._iframe?.contentWindow)
|
|
549
|
-
return e === p.REQUEST_BOOT ? this._messageHandler ? (this._messageHandler.setOutgoingMessageBus(r.source), Promise.resolve({ result: this._initData })) : (console.error("MessageHandler not set"), Promise.resolve({ error: "MessageHandler not set" })) : e === p.SETUP ? (this.handleSetup(t[0]), R(
|
|
550
|
-
this.ui.callbacks,
|
|
551
|
-
"onUseFullPage",
|
|
552
|
-
this._onUseFullPage
|
|
553
|
-
), R(
|
|
554
|
-
this.ui.callbacks,
|
|
555
|
-
"onBackToWebsite",
|
|
556
|
-
this._onBackToWebsite
|
|
557
|
-
), this._waitForIframe(this), setTimeout(() => {
|
|
558
|
-
if (!this._messageHandler) {
|
|
559
|
-
console.error("MessageHandler not set");
|
|
560
|
-
return;
|
|
561
|
-
}
|
|
562
|
-
this._messageHandler.sendMessage(p.WEBSITE_READY);
|
|
563
|
-
}, 0), Promise.resolve({ result: null })) : this.executeMessage({ message: e, args: t });
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
export {
|
|
567
|
-
p as HANDSHAKE_MESSAGES,
|
|
568
|
-
ne as INTERACTION_CONTAINER_SELECTOR,
|
|
569
|
-
w as NAMESPACE,
|
|
570
|
-
h as NAMESPACE_SEPARATOR,
|
|
571
|
-
oe as SDK_CALLBACK,
|
|
572
|
-
f as WELL_KNOWN_MESSAGES,
|
|
573
|
-
ae as default,
|
|
574
|
-
j as getConfiguratorSettings,
|
|
575
|
-
ie as getMethodNames,
|
|
576
|
-
Z as isExposable
|
|
1
|
+
import { n as e } from "./comlink-BipJ8Ikr.mjs";
|
|
2
|
+
import { t } from "./browser-C_Dfiou7.mjs";
|
|
3
|
+
import { t as n } from "./utils-BnWKaFPc.mjs";
|
|
4
|
+
//#region packages/common/src/utils/message-handler.ts
|
|
5
|
+
var r = class {
|
|
6
|
+
_side;
|
|
7
|
+
_incomingMessageBus = null;
|
|
8
|
+
_outgoingMessageBus = null;
|
|
9
|
+
_execMessage = null;
|
|
10
|
+
constructor(e, t, n, r) {
|
|
11
|
+
this._side = e, this._incomingMessageBus = t, this._outgoingMessageBus = n, this._execMessage = r, this._incomingMessageBus && this._incomingMessageBus.addEventListener("message", this._handleMessage.bind(this));
|
|
12
|
+
}
|
|
13
|
+
setOutgoingMessageBus(e) {
|
|
14
|
+
this._outgoingMessageBus = e;
|
|
15
|
+
}
|
|
16
|
+
setMessageExecution(e) {
|
|
17
|
+
this._execMessage = e;
|
|
18
|
+
}
|
|
19
|
+
sendMessage(e, t = []) {
|
|
20
|
+
return new Promise((n, r) => {
|
|
21
|
+
if (this._incomingMessageBus === this._outgoingMessageBus) return n(void 0);
|
|
22
|
+
let i = new MessageChannel();
|
|
23
|
+
i.port1.onmessage = (e) => {
|
|
24
|
+
if (!e || !e.data) return i.port1.close(), i.port2.close(), r(/* @__PURE__ */ Error(this._side + " received message but response can not be interpreted"));
|
|
25
|
+
let t;
|
|
26
|
+
try {
|
|
27
|
+
t = JSON.parse(e.data);
|
|
28
|
+
} catch (e) {
|
|
29
|
+
return i.port1.close(), i.port2.close(), this._prepareError(e), r(e);
|
|
30
|
+
}
|
|
31
|
+
t.error ? r(t.error) : t.result === void 0 ? n(void 0) : n(t.result), i.port1.close(), i.port2.close();
|
|
32
|
+
};
|
|
33
|
+
let a = "";
|
|
34
|
+
try {
|
|
35
|
+
a = JSON.stringify({
|
|
36
|
+
message: e,
|
|
37
|
+
args: t
|
|
38
|
+
});
|
|
39
|
+
} catch {
|
|
40
|
+
return r(/* @__PURE__ */ Error(this._side + ": can not create command because it is not JSON.stringify able"));
|
|
41
|
+
}
|
|
42
|
+
if (!this._outgoingMessageBus) return r(/* @__PURE__ */ Error(this._side + ": outgoing bus not set yet"));
|
|
43
|
+
this._outgoingMessageBus.postMessage(a, "*", [i.port2]);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
_handleMessage(e) {
|
|
47
|
+
let t = e.ports && Array.isArray(e.ports) && e.ports.length > 0 ? e.ports[0] : null;
|
|
48
|
+
if (e.data && (typeof e.data == "string" || e.data.type !== "connect_hi") && t) try {
|
|
49
|
+
let n = JSON.parse(e.data);
|
|
50
|
+
if (!this._execMessage) return t.postMessage(JSON.stringify({ error: this._side + " is not ready to handle messages" }));
|
|
51
|
+
Array.isArray(n.args) || (n.args = [n.args]);
|
|
52
|
+
let r = this._execMessage(n, e);
|
|
53
|
+
if (r === void 0) return;
|
|
54
|
+
r.then((e = {}) => {
|
|
55
|
+
let n, r;
|
|
56
|
+
typeof e == "object" && e && (n = e.error, r = e.result), n ? t.postMessage(JSON.stringify({ error: n })) : r === void 0 ? t.postMessage(JSON.stringify({ result: e })) : t.postMessage(JSON.stringify({ result: r }));
|
|
57
|
+
}, (e) => {
|
|
58
|
+
t.postMessage(JSON.stringify({ error: this._prepareError(e) }));
|
|
59
|
+
});
|
|
60
|
+
} catch (e) {
|
|
61
|
+
t.postMessage(JSON.stringify({ error: this._prepareError(e) }));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
_prepareError(e) {
|
|
65
|
+
if (typeof e == "string") {
|
|
66
|
+
let t = this._side + ": " + e;
|
|
67
|
+
return console.error(t), t;
|
|
68
|
+
}
|
|
69
|
+
return e.message = this._side + ": " + e.message, console.error(e), e.message;
|
|
70
|
+
}
|
|
71
|
+
}, i = () => {
|
|
72
|
+
try {
|
|
73
|
+
return window.self !== window.top;
|
|
74
|
+
} catch {
|
|
75
|
+
return !0;
|
|
76
|
+
}
|
|
77
|
+
}, a = [
|
|
78
|
+
"127.0.0.1",
|
|
79
|
+
"localhost",
|
|
80
|
+
"0.0.0.0"
|
|
81
|
+
], o = () => {
|
|
82
|
+
let e = i(), t = window.location.href;
|
|
83
|
+
if (e) {
|
|
84
|
+
if (!document.referrer) return null;
|
|
85
|
+
t = document.referrer;
|
|
86
|
+
}
|
|
87
|
+
let { hostname: n } = new URL(t);
|
|
88
|
+
return n;
|
|
89
|
+
}, s = (e) => {
|
|
90
|
+
let t = /* @__PURE__ */ new RegExp(/^(10\.|172\.(1[6-9]|2\d|3[01])\.|192\.168\.)/);
|
|
91
|
+
return !!(a.includes(e) || t.test(e) || e.endsWith("roomle.com") || e.endsWith("gitlab.io") || e.endsWith("gitlab.com"));
|
|
92
|
+
}, c = (e, t) => l(JSON.parse(JSON.stringify(e)), t), l = (e, t) => {
|
|
93
|
+
for (let n in t) try {
|
|
94
|
+
t[n].constructor === Object ? e[n] = l(e[n], t[n]) : e[n] = t[n];
|
|
95
|
+
} catch {
|
|
96
|
+
e[n] = t[n];
|
|
97
|
+
}
|
|
98
|
+
return e;
|
|
99
|
+
}, u = /* @__PURE__ */ function(e) {
|
|
100
|
+
return e.BOTTOM_BAR = "bottom_bar", e.PARTLIST_BOUNDS = "partlist_bounds", e.INTERACTION_NOTES = "interaction_notes", e.PARAMETER_GROUPS = "parameter_groups", e;
|
|
101
|
+
}({}), d = (e) => JSON.parse(JSON.stringify(e)), f = {
|
|
102
|
+
mobileLandscape: !0,
|
|
103
|
+
floorMaterialRootTag: "materials_root",
|
|
104
|
+
buttons: {
|
|
105
|
+
renderimage: !0,
|
|
106
|
+
requestproduct: !0,
|
|
107
|
+
requestplan: !0,
|
|
108
|
+
load_product: !0,
|
|
109
|
+
partlist_print: !0
|
|
110
|
+
},
|
|
111
|
+
elements: { [u.INTERACTION_NOTES]: !0 },
|
|
112
|
+
helpcenter: {
|
|
113
|
+
roomdesigner: !0,
|
|
114
|
+
configurator: !1,
|
|
115
|
+
disable: !1
|
|
116
|
+
},
|
|
117
|
+
firstPersonView: !0,
|
|
118
|
+
saveToIdb: !0,
|
|
119
|
+
featureFlags: {
|
|
120
|
+
mocAr: !0,
|
|
121
|
+
wallAutoHeight: !1,
|
|
122
|
+
openCloseAnimation: !0,
|
|
123
|
+
enableTwoLevelCatalog: !1,
|
|
124
|
+
webGpu: !1,
|
|
125
|
+
localExport3d: !1
|
|
126
|
+
},
|
|
127
|
+
rotationSnapDegrees: 10,
|
|
128
|
+
interactionsCollapsed: !1
|
|
129
|
+
}, p = (e) => (m(e), e?.customApiUrl && (e.customApiUrl = decodeURIComponent(e.customApiUrl)), e.shareUrl && (e.deeplink = e.shareUrl.replace(g, _)), e), m = (e) => {
|
|
130
|
+
if (!e) return;
|
|
131
|
+
let t = Object.keys(e);
|
|
132
|
+
for (let n of t) {
|
|
133
|
+
let t = e[n];
|
|
134
|
+
if (!Array.isArray(t) && typeof t == "object" && t && m(t), Array.isArray(t)) for (let e of t) m(e);
|
|
135
|
+
(t === "true" || t === "false") && (e[n] = t === "true");
|
|
136
|
+
}
|
|
137
|
+
}, h = () => {
|
|
138
|
+
let e = d(f);
|
|
139
|
+
e.locale ||= t(null, !0), e.id === "(idle)" && delete e.id;
|
|
140
|
+
let n = o();
|
|
141
|
+
return n && s(n) && (e.configuratorId = "demoConfigurator"), e.customApiUrl = "https://rubens.alpha.roomle.com/api/v2", e.emails = !1, e;
|
|
142
|
+
}, g = "<CONF_ID>", _ = "#CONFIGURATIONID#", v = (e) => {
|
|
143
|
+
e.featureFlags ||= {}, typeof e.featureFlags.realPartList != "boolean" && (e.featureFlags.realPartList = !0), typeof e.featureFlags.globalCallbacks != "boolean" && (e.featureFlags.globalCallbacks = !0), typeof e.featureFlags.mocAr != "boolean" && (e.featureFlags.mocAr = !1);
|
|
144
|
+
}, y = (e, t) => {
|
|
145
|
+
let n = d(t), r = h();
|
|
146
|
+
v(r);
|
|
147
|
+
let i = c(c(r, e.settings || {}), n);
|
|
148
|
+
return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant), i;
|
|
149
|
+
}, b = () => /(android)/i.test(navigator.userAgent), x = class {
|
|
150
|
+
_messageHandler = null;
|
|
151
|
+
isSetupDone = !1;
|
|
152
|
+
viewName = "main";
|
|
153
|
+
plugins = {};
|
|
154
|
+
pluginsLoaded = [];
|
|
155
|
+
ui = { callbacks: null };
|
|
156
|
+
extended = { callbacks: null };
|
|
157
|
+
configurator = { callbacks: null };
|
|
158
|
+
analytics = { callbacks: {} };
|
|
159
|
+
rapi = { callbacks: {} };
|
|
160
|
+
global = { callbacks: {} };
|
|
161
|
+
setMessageHandler(e) {
|
|
162
|
+
this._messageHandler = e;
|
|
163
|
+
}
|
|
164
|
+
handleSetup(e) {
|
|
165
|
+
let { methods: t, callbacks: n } = e;
|
|
166
|
+
t.forEach((e) => {
|
|
167
|
+
let t = e.split("."), n = t[0], r = t[1];
|
|
168
|
+
this[n] || (this[n] = {}), this[n][r] = function() {
|
|
169
|
+
if (!this._messageHandler) {
|
|
170
|
+
console.error("MessageHandler not set");
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
return this._messageHandler.sendMessage(e, [...arguments]);
|
|
174
|
+
}.bind(this);
|
|
175
|
+
}), n.forEach((e) => {
|
|
176
|
+
let t = e.split("."), n = t[0], r = t[1], i = t[2];
|
|
177
|
+
this[n] || (this[n] = {}), this[n][r] || (this[n][r] = {}), this[n][r][i] = () => void 0;
|
|
178
|
+
}), this.isSetupDone = !0;
|
|
179
|
+
}
|
|
180
|
+
executeMessage({ message: e, args: t }) {
|
|
181
|
+
let n = e.split("."), r = n[0], i = n[1], a = n.length === 3 ? n[2] : null;
|
|
182
|
+
if (a && this[r][i][a]) {
|
|
183
|
+
let e = this[r][i][a](...t);
|
|
184
|
+
return e instanceof Promise ? e.then((e) => ({ result: e })) : e === void 0 ? Promise.resolve({ result: null }) : Promise.resolve({ result: e });
|
|
185
|
+
}
|
|
186
|
+
return Promise.reject("Message \"" + e + "\" is unkown");
|
|
187
|
+
}
|
|
188
|
+
setupPlugins(e, t, n = "website") {
|
|
189
|
+
for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
|
|
190
|
+
try {
|
|
191
|
+
import("./drag-in-AFSAsnAN.mjs").then((e) => e.n).then(({ DragIn: i }) => {
|
|
192
|
+
let a = new i(this.ui, t, n, this.viewName);
|
|
193
|
+
a.init().then(() => {
|
|
194
|
+
this.plugins.dragIn = a, e();
|
|
195
|
+
}, r);
|
|
196
|
+
});
|
|
197
|
+
} catch (e) {
|
|
198
|
+
r(e);
|
|
199
|
+
}
|
|
200
|
+
})) : r.name && r.loader && this.pluginsLoaded.push(new Promise((e, i) => {
|
|
201
|
+
try {
|
|
202
|
+
r.loader().then((a) => {
|
|
203
|
+
let o = new a(this.ui, t, n, this.viewName);
|
|
204
|
+
o.init().then(() => {
|
|
205
|
+
this.plugins[r.name] = o, e();
|
|
206
|
+
}, i);
|
|
207
|
+
});
|
|
208
|
+
} catch (e) {
|
|
209
|
+
i(e);
|
|
210
|
+
}
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
}, S = () => {
|
|
214
|
+
let e, t;
|
|
215
|
+
return {
|
|
216
|
+
promise: new Promise((n, r) => {
|
|
217
|
+
e = n, t = r;
|
|
218
|
+
}),
|
|
219
|
+
resolve: e,
|
|
220
|
+
reject: t
|
|
221
|
+
};
|
|
222
|
+
}, C = {
|
|
223
|
+
SDK: "extended",
|
|
224
|
+
CONFIGURATOR_SDK: "configurator",
|
|
225
|
+
CALLBACKS: "callbacks",
|
|
226
|
+
UI: "ui",
|
|
227
|
+
ANALYTICS: "analytics",
|
|
228
|
+
GLOBAL: "global",
|
|
229
|
+
RAPI: "rapi"
|
|
230
|
+
}, w = ".", T = C.SDK + "." + C.CALLBACKS, E = {
|
|
231
|
+
REQUEST_BOOT: "requestBoot",
|
|
232
|
+
SETUP: "setup",
|
|
233
|
+
WEBSITE_READY: "websiteReady"
|
|
234
|
+
}, D = {
|
|
235
|
+
GET_METHODS: "getMethods",
|
|
236
|
+
RETURN_METHODS: "returnMethods",
|
|
237
|
+
REGISTER_CUSTOM_VIEW: "registerCustomView",
|
|
238
|
+
REGISTER_CUSTOM_VIEW_DONE: "registerCustomViewDone"
|
|
239
|
+
}, O = ["constructor", "callbacks"], k = (e) => e[0] !== "_" && !O.includes(e), A = (e, t, n = !1) => {
|
|
240
|
+
if (!e) return [];
|
|
241
|
+
let r = Object.getOwnPropertyNames(e), i = n ? C.CALLBACKS + "." : "";
|
|
242
|
+
return r.filter(k).map((e) => t + "." + i + e);
|
|
243
|
+
}, j = async (e, t) => {
|
|
244
|
+
if (typeof e != "string") throw Error("Configurator ID is not a string type: \"" + typeof e + "\"");
|
|
245
|
+
let n = t.customApiUrl ? t.customApiUrl : "https://api.roomle.com/v2", r = t.overrideTenant || 9, i = n + "/configurators/" + e, a = "03-" + window.btoa((/* @__PURE__ */ new Date()).toISOString() + ";anonymous;roomle_portal_v2"), o = new Request(i, {
|
|
246
|
+
method: "GET",
|
|
247
|
+
headers: new Headers({
|
|
248
|
+
apiKey: "roomle_portal_v2",
|
|
249
|
+
currentTenant: r,
|
|
250
|
+
locale: "en",
|
|
251
|
+
language: "en",
|
|
252
|
+
device: 1,
|
|
253
|
+
token: a,
|
|
254
|
+
platform: "web"
|
|
255
|
+
}),
|
|
256
|
+
mode: "cors",
|
|
257
|
+
cache: "default"
|
|
258
|
+
}), { configurator: s } = await (await fetch(o)).json();
|
|
259
|
+
return s;
|
|
260
|
+
}, M = "data-rml-interaction-container", N = (e, t, n) => {
|
|
261
|
+
let r = null;
|
|
262
|
+
Object.defineProperty(e, t, {
|
|
263
|
+
get() {
|
|
264
|
+
return r || n;
|
|
265
|
+
},
|
|
266
|
+
set(e) {
|
|
267
|
+
e?.mute ? r = e.value : (console.warn("You override Roomle defined behaviour. To disalbe this warning pass in an object with the following properties"), console.warn("{ mute: true, value: () => void }"), r = e);
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}, P = () => window.innerHeight * .01 + "px", F = (e) => {
|
|
271
|
+
e && setTimeout(() => e.style.setProperty(R, P()), 0);
|
|
272
|
+
}, I = "rml-styles", L = 450, R = "--rml-full-height", z = {
|
|
273
|
+
CONTAINER: "rml-container",
|
|
274
|
+
FILL: "rml-fill",
|
|
275
|
+
POSITION: "rml-pos",
|
|
276
|
+
TRANSITION: "rml-transition",
|
|
277
|
+
ANDROID_HEIGHT: "rml-android-height",
|
|
278
|
+
OVERFLOW_HIDDEN: "rml-overflow-hidden"
|
|
279
|
+
}, B = /* @__PURE__ */ new Map(), V = class extends x {
|
|
280
|
+
static createPlanner(e, t, n, r = []) {
|
|
281
|
+
return this._create(e, t, n, r);
|
|
282
|
+
}
|
|
283
|
+
static async connect(e, t = []) {
|
|
284
|
+
let n = new x();
|
|
285
|
+
n.viewName = e;
|
|
286
|
+
let { resolve: i, promise: a } = S(), { resolve: o, promise: s } = S(), c = new r("custom-view-" + e, window, window.parent, ({ message: e, args: t }) => {
|
|
287
|
+
switch (e) {
|
|
288
|
+
case D.REGISTER_CUSTOM_VIEW_DONE:
|
|
289
|
+
i();
|
|
290
|
+
break;
|
|
291
|
+
case D.RETURN_METHODS:
|
|
292
|
+
n.handleSetup(t[0]), o();
|
|
293
|
+
break;
|
|
294
|
+
default: if (n.isSetupDone) return n.executeMessage({
|
|
295
|
+
message: e,
|
|
296
|
+
args: t
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
n.setMessageHandler(c);
|
|
301
|
+
let l = [e];
|
|
302
|
+
return c.sendMessage(D.REGISTER_CUSTOM_VIEW, l), await a, c.sendMessage(D.GET_METHODS, l), await s, n.setupPlugins(t, document.body, "custom-view"), await Promise.allSettled(n.pluginsLoaded), n;
|
|
303
|
+
}
|
|
304
|
+
static createConfigurator(e, t, n, r = []) {
|
|
305
|
+
return this._create(e, t, n, r);
|
|
306
|
+
}
|
|
307
|
+
static create(e, t, n, r) {
|
|
308
|
+
return this._create(e, t, n, r);
|
|
309
|
+
}
|
|
310
|
+
static createViewer(e, t, n, r = []) {
|
|
311
|
+
return this._create(e, t, n, r);
|
|
312
|
+
}
|
|
313
|
+
static hiMessageHandler = null;
|
|
314
|
+
static setupHi(t) {
|
|
315
|
+
console.warn("[DEPRECATED] RoomleEmbeddingApi.setupHi() is deprecated and will be removed.\nMigration: import { setupHi } from '@roomle/embedding-lib/hi'; setupHi(libraryIdOrOptions, callbacks);"), this.hiMessageHandler && window.removeEventListener("message", this.hiMessageHandler), this.hiMessageHandler = (r) => {
|
|
316
|
+
if (r.data.type === "connect_hi" && r.data.port) {
|
|
317
|
+
let i = r.data.port;
|
|
318
|
+
i.start?.(), e(n(t), i);
|
|
319
|
+
}
|
|
320
|
+
}, window.addEventListener("message", this.hiMessageHandler);
|
|
321
|
+
}
|
|
322
|
+
static async _create(e, t, n, r) {
|
|
323
|
+
return new Promise(async (i, a) => {
|
|
324
|
+
try {
|
|
325
|
+
let a = p(n), o = h();
|
|
326
|
+
v(o);
|
|
327
|
+
let s = await j(e, c(o, a));
|
|
328
|
+
n = y(s, a);
|
|
329
|
+
let l = new this(s, t, n, r, i);
|
|
330
|
+
return await Promise.allSettled(l.pluginsLoaded), l;
|
|
331
|
+
} catch (e) {
|
|
332
|
+
return a(e);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
_waitForIframe;
|
|
337
|
+
_container;
|
|
338
|
+
_configuratorSettings;
|
|
339
|
+
_initData = {};
|
|
340
|
+
_iframe;
|
|
341
|
+
constructor(e, t, n, i, a) {
|
|
342
|
+
if (super(), !e || typeof e.id != "string") throw Error("Please provide a correct configuratorId, you get the correct ID from your Roomle Contact Person");
|
|
343
|
+
if (B.has(t)) throw Error("There is already an instance on this DOM element");
|
|
344
|
+
if (!document.getElementById(I)) {
|
|
345
|
+
let e = n.zIndex || 9999999, t = document.createElement("style");
|
|
346
|
+
t.type = "text/css", t.id = I;
|
|
347
|
+
let r = "transition:all ease-in-out " + L + "ms;", i = ["-webkit-", "-o-"].reduce((e, t) => e += t + r, "") + r, a = P();
|
|
348
|
+
t.innerHTML = `
|
|
349
|
+
.${z.CONTAINER}{${R}:${a};}
|
|
350
|
+
.${z.POSITION}{position:fixed;top:0;left:0;z-index:${e};opacity:0}
|
|
351
|
+
.${z.TRANSITION}{${i}}
|
|
352
|
+
.${z.FILL}{width:100%;height:100%;opacity:1}
|
|
353
|
+
.${z.ANDROID_HEIGHT}{height:calc(var(${R},1vh)*100)}
|
|
354
|
+
.${z.OVERFLOW_HIDDEN}{overflow:hidden}
|
|
355
|
+
`, document.head.appendChild(t);
|
|
356
|
+
}
|
|
357
|
+
this._executeMessage = this._executeMessage.bind(this);
|
|
358
|
+
let o = new r("website", window, null, this._executeMessage);
|
|
359
|
+
this.setMessageHandler(o), this._onResize = this._onResize.bind(this), b() && window.addEventListener("resize", this._onResize), this._container = t, this._initData = n, this._configuratorSettings = e;
|
|
360
|
+
let s = this._createIframe();
|
|
361
|
+
this._onUseFullPage = this._onUseFullPage.bind(this), this._onBackToWebsite = this._onBackToWebsite.bind(this), this._waitForIframe = a, this._container.appendChild(s), this._iframe = s, this.setupPlugins(i, this._iframe), B.set(t, !0);
|
|
362
|
+
}
|
|
363
|
+
teardown() {
|
|
364
|
+
this._container && B.delete(this._container);
|
|
365
|
+
let e = this._container.querySelector("iframe");
|
|
366
|
+
e && this._container.removeChild(e), window.removeEventListener("resize", this._onResize);
|
|
367
|
+
}
|
|
368
|
+
_createIframe() {
|
|
369
|
+
let e = document.createElement("iframe"), t = this._configuratorSettings?.url || "https://www.roomle.com/t/cp/";
|
|
370
|
+
return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.classList.add(z.CONTAINER), e.classList.add(z.FILL), e;
|
|
371
|
+
}
|
|
372
|
+
_onResize() {
|
|
373
|
+
F(this._iframe);
|
|
374
|
+
}
|
|
375
|
+
_onUseFullPage() {
|
|
376
|
+
this._iframe.classList.add(z.POSITION), document.documentElement.classList.add(z.OVERFLOW_HIDDEN), window.document.body.classList.add(z.OVERFLOW_HIDDEN), b() && (F(this._iframe), this._iframe.classList.add(z.ANDROID_HEIGHT));
|
|
377
|
+
}
|
|
378
|
+
_onBackToWebsite() {
|
|
379
|
+
this._iframe.classList.remove(z.POSITION), this._iframe.classList.remove(z.ANDROID_HEIGHT), document.documentElement.classList.remove(z.OVERFLOW_HIDDEN), window.document.body.classList.remove(z.OVERFLOW_HIDDEN);
|
|
380
|
+
}
|
|
381
|
+
_executeMessage({ message: e, args: t }, n) {
|
|
382
|
+
if (n.source && n.source === this._iframe?.contentWindow) return e === E.REQUEST_BOOT ? this._messageHandler ? (this._messageHandler.setOutgoingMessageBus(n.source), Promise.resolve({ result: this._initData })) : (console.error("MessageHandler not set"), Promise.resolve({ error: "MessageHandler not set" })) : e === E.SETUP ? (this.handleSetup(t[0]), N(this.ui.callbacks, "onUseFullPage", this._onUseFullPage), N(this.ui.callbacks, "onBackToWebsite", this._onBackToWebsite), this._waitForIframe(this), setTimeout(() => {
|
|
383
|
+
if (!this._messageHandler) {
|
|
384
|
+
console.error("MessageHandler not set");
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
this._messageHandler.sendMessage(E.WEBSITE_READY);
|
|
388
|
+
}, 0), Promise.resolve({ result: null })) : this.executeMessage({
|
|
389
|
+
message: e,
|
|
390
|
+
args: t
|
|
391
|
+
});
|
|
392
|
+
}
|
|
577
393
|
};
|
|
394
|
+
//#endregion
|
|
395
|
+
export { E as HANDSHAKE_MESSAGES, M as INTERACTION_CONTAINER_SELECTOR, C as NAMESPACE, w as NAMESPACE_SEPARATOR, T as SDK_CALLBACK, D as WELL_KNOWN_MESSAGES, V as default, j as getConfiguratorSettings, A as getMethodNames, k as isExposable };
|