@bigbinary/neeto-molecules 3.16.8 → 3.16.9
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/dist/CardLayout.js +3 -3
- package/dist/CardLayout.js.map +1 -1
- package/dist/Container.js +1 -1
- package/dist/CopyToClipboardButton.js +3 -2
- package/dist/CopyToClipboardButton.js.map +1 -1
- package/dist/IpRestriction.js +1 -0
- package/dist/IpRestriction.js.map +1 -1
- package/dist/NeetoWidget.js +1 -1
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/ProductEmbed.js +985 -302
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/ShareViaLink.js +450 -189
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/cjs/CardLayout.js +3 -3
- package/dist/cjs/CardLayout.js.map +1 -1
- package/dist/cjs/Container.js +1 -1
- package/dist/cjs/CopyToClipboardButton.js +3 -2
- package/dist/cjs/CopyToClipboardButton.js.map +1 -1
- package/dist/cjs/IpRestriction.js +1 -0
- package/dist/cjs/IpRestriction.js.map +1 -1
- package/dist/cjs/NeetoWidget.js +1 -1
- package/dist/cjs/NeetoWidget.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +984 -301
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +448 -187
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +48 -40
- package/types/ProductEmbed.d.ts +1 -0
- package/types/ShareViaLink.d.ts +28 -28
package/dist/ProductEmbed.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import { filterBy, hyphenate, noop } from '@bigbinary/neeto-cist';
|
|
2
|
+
import { useLocation, useHistory } from 'react-router-dom';
|
|
1
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
-
import { useState, useEffect
|
|
5
|
+
import { useState, useEffect } from 'react';
|
|
4
6
|
import classnames from 'classnames';
|
|
5
|
-
import { filterBy, noop } from '@bigbinary/neeto-cist';
|
|
6
7
|
import LeftArrow from '@bigbinary/neeto-icons/LeftArrow';
|
|
7
8
|
import Button from '@bigbinary/neetoui/Button';
|
|
8
9
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
9
10
|
import { toPairs, mergeDeepLeft, isEmpty, mergeLeft } from 'ramda';
|
|
10
11
|
import { useTranslation } from 'react-i18next';
|
|
12
|
+
import Container from './Container.js';
|
|
13
|
+
import Header from './Header.js';
|
|
14
|
+
import Select from '@bigbinary/neetoui/Select';
|
|
11
15
|
import Codeblock from './Codeblock.js';
|
|
12
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
13
16
|
import { t } from 'i18next';
|
|
14
|
-
import Code$1 from '@bigbinary/neeto-icons/Code';
|
|
15
17
|
import Input from '@bigbinary/neetoui/Input';
|
|
16
18
|
import Callout from '@bigbinary/neetoui/Callout';
|
|
17
19
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -19,73 +21,43 @@ import Delete from '@bigbinary/neeto-icons/Delete';
|
|
|
19
21
|
import Plus from '@bigbinary/neeto-icons/Plus';
|
|
20
22
|
import Label from '@bigbinary/neetoui/Label';
|
|
21
23
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
24
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
22
25
|
import Checkbox from '@bigbinary/neetoui/Checkbox';
|
|
23
|
-
import Select from '@bigbinary/neetoui/Select';
|
|
24
26
|
import ColorPicker from '@bigbinary/neetoui/ColorPicker';
|
|
25
|
-
import
|
|
26
|
-
import Radio from '@bigbinary/neetoui/Radio';
|
|
27
|
+
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
27
28
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
28
29
|
import BrowserPreview from './BrowserPreview.js';
|
|
29
30
|
import { n } from './inject-css-DmrvuTKK.js';
|
|
31
|
+
import { handleMetaClick } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
32
|
+
import './index-DAYCJu79.js';
|
|
33
|
+
import './_commonjsHelpers-BFTU3MAI.js';
|
|
34
|
+
import './Breadcrumbs.js';
|
|
35
|
+
import '@bigbinary/neeto-commons-frontend/utils/general';
|
|
36
|
+
import './HelpPopover.js';
|
|
37
|
+
import '@bigbinary/neeto-icons/Help';
|
|
38
|
+
import '@bigbinary/neetoui/Popover';
|
|
39
|
+
import './MoreDropdown.js';
|
|
40
|
+
import '@bigbinary/neeto-icons/MenuHorizontal';
|
|
41
|
+
import '@bigbinary/neeto-icons/MenuVertical';
|
|
42
|
+
import '@bigbinary/neetoui/Dropdown';
|
|
43
|
+
import '@bigbinary/neetoui/Tooltip';
|
|
44
|
+
import './Search.js';
|
|
45
|
+
import '@bigbinary/neeto-commons-frontend/react-utils/useFuncDebounce';
|
|
46
|
+
import '@bigbinary/neeto-commons-frontend/react-utils/useQueryParams';
|
|
47
|
+
import '@bigbinary/neeto-commons-frontend/react-utils/useUpdateEffect';
|
|
48
|
+
import '@bigbinary/neeto-icons/Search';
|
|
49
|
+
import '@bigbinary/neeto-commons-frontend/utils';
|
|
30
50
|
import 'react-syntax-highlighter/dist/esm/prism-light.js';
|
|
31
51
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
32
52
|
import './CopyToClipboardButton.js';
|
|
33
|
-
import '@bigbinary/neeto-commons-frontend/utils/general';
|
|
34
53
|
import '@bigbinary/neeto-icons/Copy';
|
|
35
54
|
import '@bigbinary/neeto-icons/Check';
|
|
36
55
|
|
|
37
|
-
var Code = function Code(_ref) {
|
|
38
|
-
var code = _ref.code,
|
|
39
|
-
tab = _ref.tab;
|
|
40
|
-
return /*#__PURE__*/jsx("div", {
|
|
41
|
-
className: "neeto-molecules-embed__code-block relative w-full overflow-y-auto",
|
|
42
|
-
"data-cy": "embed-code-block",
|
|
43
|
-
"data-testid": "".concat(tab, "-code-block"),
|
|
44
|
-
children: /*#__PURE__*/jsx(Codeblock, {
|
|
45
|
-
code: code
|
|
46
|
-
})
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var TAB_KEYS = {
|
|
51
|
-
HTML: "html",
|
|
52
|
-
REACT: "react"
|
|
53
|
-
};
|
|
54
|
-
var TABS = [{
|
|
55
|
-
key: TAB_KEYS.HTML,
|
|
56
|
-
label: t("neetoMolecules.productEmbed.tab.html"),
|
|
57
|
-
icon: Code$1
|
|
58
|
-
}, {
|
|
59
|
-
key: TAB_KEYS.REACT,
|
|
60
|
-
label: t("neetoMolecules.productEmbed.tab.react"),
|
|
61
|
-
icon: Code$1
|
|
62
|
-
}];
|
|
63
|
-
var EMBED_OPTIONS = {
|
|
64
|
-
INLINE: "inline",
|
|
65
|
-
FLOATING_POPUP: "floatingPopup",
|
|
66
|
-
ELEMENT_POPUP: "elementPopup"
|
|
67
|
-
};
|
|
68
|
-
var DEFAULT_CUSTOMIZATION = _defineProperty(_defineProperty(_defineProperty({}, EMBED_OPTIONS.INLINE, {
|
|
69
|
-
width: 100,
|
|
70
|
-
height: 100,
|
|
71
|
-
elementSelector: "inline-embed-container"
|
|
72
|
-
}), EMBED_OPTIONS.FLOATING_POPUP, {
|
|
73
|
-
showIcon: false,
|
|
74
|
-
btnText: "Open",
|
|
75
|
-
btnColor: "#008068",
|
|
76
|
-
btnTextColor: "#fff",
|
|
77
|
-
btnPosition: "bottomRight"
|
|
78
|
-
}), EMBED_OPTIONS.ELEMENT_POPUP, {
|
|
79
|
-
elementSelector: "open-popup-button"
|
|
80
|
-
});
|
|
81
|
-
var SCRIPT_ID = "embed-script";
|
|
82
|
-
var TAB_STRING = " ";
|
|
83
|
-
|
|
84
56
|
var FLOATING_BUTTON_POSITIONS = [{
|
|
85
|
-
label: t("neetoMolecules.productEmbed.
|
|
57
|
+
label: t("neetoMolecules.productEmbed.floatingPopup.position.bottomLeft"),
|
|
86
58
|
value: "bottomLeft"
|
|
87
59
|
}, {
|
|
88
|
-
label: t("neetoMolecules.productEmbed.
|
|
60
|
+
label: t("neetoMolecules.productEmbed.floatingPopup.position.bottomRight"),
|
|
89
61
|
value: "bottomRight"
|
|
90
62
|
}];
|
|
91
63
|
var INITIAL_QUERY_PARAM = {
|
|
@@ -229,13 +201,13 @@ var reactCodeGenerators = {
|
|
|
229
201
|
elementPopup: elementPopupEmbedCode
|
|
230
202
|
};
|
|
231
203
|
|
|
232
|
-
var _excluded = ["
|
|
204
|
+
var _excluded = ["selectedLanguage", "type"];
|
|
233
205
|
var generateCode = function generateCode(options) {
|
|
234
206
|
var _reactCodeGenerators$, _htmlCodeGenerators$t;
|
|
235
|
-
var
|
|
207
|
+
var selectedLanguage = options.selectedLanguage,
|
|
236
208
|
type = options.type,
|
|
237
209
|
embeddedCodeOptions = _objectWithoutProperties(options, _excluded);
|
|
238
|
-
return
|
|
210
|
+
return selectedLanguage === "react" ? (_reactCodeGenerators$ = reactCodeGenerators[type]) === null || _reactCodeGenerators$ === void 0 ? void 0 : _reactCodeGenerators$.call(reactCodeGenerators, embeddedCodeOptions) : (_htmlCodeGenerators$t = htmlCodeGenerators[type]) === null || _htmlCodeGenerators$t === void 0 ? void 0 : _htmlCodeGenerators$t.call(htmlCodeGenerators, embeddedCodeOptions);
|
|
239
211
|
};
|
|
240
212
|
var buildDefaultCustomization = function buildDefaultCustomization(defaultCustomizations) {
|
|
241
213
|
return mergeDeepLeft(defaultCustomizations, DEFAULT_CUSTOMIZATION);
|
|
@@ -256,9 +228,14 @@ var buildQueryParamsFromInputFields = function buildQueryParamsFromInputFields(i
|
|
|
256
228
|
var queryParamJsonString = JSON.stringify(queryParams, null, 2);
|
|
257
229
|
return queryParamJsonString.replace(/\n/g, " ").replace(/\s\s+/g, " ");
|
|
258
230
|
};
|
|
231
|
+
var toCamelCasedString = function toCamelCasedString(string) {
|
|
232
|
+
return string === null || string === void 0 ? void 0 : string.replace(/[_-]+(\w)/g, function (_, nextChar) {
|
|
233
|
+
return nextChar.toUpperCase();
|
|
234
|
+
});
|
|
235
|
+
};
|
|
259
236
|
|
|
260
|
-
function ownKeys$
|
|
261
|
-
function _objectSpread$
|
|
237
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
238
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
262
239
|
var DynamicQueryParams = function DynamicQueryParams(_ref) {
|
|
263
240
|
var updateCustomization = _ref.updateCustomization;
|
|
264
241
|
var _useTranslation = useTranslation(),
|
|
@@ -278,7 +255,7 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
|
|
|
278
255
|
};
|
|
279
256
|
var handleInputChange = function handleInputChange(index, field, value) {
|
|
280
257
|
var newQueryParams = queryParams.map(function (param, i) {
|
|
281
|
-
return i === index ? _objectSpread$
|
|
258
|
+
return i === index ? _objectSpread$3(_objectSpread$3({}, param), {}, _defineProperty({}, field, value)) : param;
|
|
282
259
|
});
|
|
283
260
|
setQueryParams(newQueryParams);
|
|
284
261
|
};
|
|
@@ -291,16 +268,16 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
|
|
|
291
268
|
children: [/*#__PURE__*/jsx(Label, {
|
|
292
269
|
className: "mb-2",
|
|
293
270
|
"data-cy": "dynamic-query-params-label",
|
|
294
|
-
children: t("neetoMolecules.productEmbed.
|
|
271
|
+
children: t("neetoMolecules.productEmbed.queryParam.label")
|
|
295
272
|
}), queryParams.map(function (param, index) {
|
|
296
273
|
return /*#__PURE__*/jsxs("div", {
|
|
297
|
-
className: "mb-
|
|
274
|
+
className: "mb-2 flex gap-1",
|
|
298
275
|
children: [/*#__PURE__*/jsx(Input, {
|
|
299
276
|
"data-cy": "dynamic-query-key-name-input",
|
|
300
277
|
"data-testid": "dynamic-query-key-name-input",
|
|
301
278
|
name: "queryParams.".concat(index, ".name"),
|
|
302
279
|
value: param.name,
|
|
303
|
-
placeholder: t("neetoMolecules.productEmbed.
|
|
280
|
+
placeholder: t("neetoMolecules.productEmbed.queryParam.keyNamePlaceholder"),
|
|
304
281
|
onChange: function onChange(e) {
|
|
305
282
|
return handleInputChange(index, "name", e.target.value);
|
|
306
283
|
}
|
|
@@ -309,7 +286,7 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
|
|
|
309
286
|
"data-testid": "dynamic-query-key-value-input",
|
|
310
287
|
name: "queryParams.".concat(index, ".value"),
|
|
311
288
|
value: param.value,
|
|
312
|
-
placeholder: t("neetoMolecules.productEmbed.
|
|
289
|
+
placeholder: t("neetoMolecules.productEmbed.queryParam.keyValuePlaceholder"),
|
|
313
290
|
onChange: function onChange(e) {
|
|
314
291
|
return handleInputChange(index, "value", e.target.value);
|
|
315
292
|
}
|
|
@@ -327,8 +304,8 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
|
|
|
327
304
|
"data-cy": "dynamic-query-add-new-button",
|
|
328
305
|
icon: Plus,
|
|
329
306
|
iconPosition: "left",
|
|
307
|
+
label: t("neetoMolecules.productEmbed.queryParam.addQueryParam"),
|
|
330
308
|
style: "link",
|
|
331
|
-
label: t("neetoMolecules.productEmbed.customization.queryParam.addQueryParam"),
|
|
332
309
|
onClick: handleAddQueryParam
|
|
333
310
|
})]
|
|
334
311
|
});
|
|
@@ -348,22 +325,17 @@ var ElementPopup$1 = function ElementPopup(_ref) {
|
|
|
348
325
|
queryParams: undefined
|
|
349
326
|
});
|
|
350
327
|
}, []);
|
|
351
|
-
return /*#__PURE__*/jsxs(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
style: "h4",
|
|
356
|
-
children: t("neetoMolecules.productEmbed.customization.elementPopup.title")
|
|
357
|
-
}), /*#__PURE__*/jsx(Callout, {
|
|
358
|
-
"data-cy": "element-popup-description",
|
|
359
|
-
children: t("neetoMolecules.productEmbed.customization.elementPopup.description")
|
|
328
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
329
|
+
children: [/*#__PURE__*/jsx(Callout, {
|
|
330
|
+
"data-cy": "element-popup-callout",
|
|
331
|
+
children: t("neetoMolecules.productEmbed.elementPopup.callout")
|
|
360
332
|
}), /*#__PURE__*/jsx(Input, {
|
|
361
333
|
className: "w-full",
|
|
362
334
|
"data-cy": "element-id-input-field",
|
|
363
335
|
"data-testid": "element-id-input-field",
|
|
336
|
+
label: t("neetoMolecules.productEmbed.elementPopup.elementId"),
|
|
364
337
|
value: elementSelector,
|
|
365
|
-
error: !elementSelector && t("neetoMolecules.productEmbed.
|
|
366
|
-
label: t("neetoMolecules.productEmbed.customization.elementPopup.elementId"),
|
|
338
|
+
error: !elementSelector && t("neetoMolecules.productEmbed.elementPopup.warning"),
|
|
367
339
|
onChange: function onChange(e) {
|
|
368
340
|
return updateCustomization({
|
|
369
341
|
elementSelector: e.target.value
|
|
@@ -395,28 +367,14 @@ var FloatingPopup$1 = function FloatingPopup(_ref) {
|
|
|
395
367
|
});
|
|
396
368
|
}, []);
|
|
397
369
|
return /*#__PURE__*/jsxs("div", {
|
|
398
|
-
className: "
|
|
399
|
-
children: [/*#__PURE__*/jsx(
|
|
400
|
-
"data-cy": "popup-customization-header",
|
|
401
|
-
style: "h4",
|
|
402
|
-
children: t("neetoMolecules.productEmbed.customization.floatingPopup.title")
|
|
403
|
-
}), icon && /*#__PURE__*/jsx(Checkbox, {
|
|
404
|
-
checked: showIcon,
|
|
405
|
-
"data-cy": "show-icon-checkbox",
|
|
406
|
-
"data-testid": "show-icon-checkbox",
|
|
407
|
-
label: t("neetoMolecules.productEmbed.customization.floatingPopup.showCalIcon"),
|
|
408
|
-
onChange: function onChange(e) {
|
|
409
|
-
return updateCustomization({
|
|
410
|
-
showIcon: e.target.checked
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}), /*#__PURE__*/jsx("div", {
|
|
370
|
+
className: "flex w-full flex-col gap-y-4",
|
|
371
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
414
372
|
className: "space-y-2",
|
|
415
373
|
children: /*#__PURE__*/jsx(Input, {
|
|
416
374
|
"data-cy": "button-text-input-field",
|
|
417
375
|
"data-testid": "button-text-input-field",
|
|
376
|
+
label: t("neetoMolecules.productEmbed.floatingPopup.button.text"),
|
|
418
377
|
value: btnText,
|
|
419
|
-
label: t("neetoMolecules.productEmbed.customization.floatingPopup.button.text"),
|
|
420
378
|
onChange: function onChange(e) {
|
|
421
379
|
return updateCustomization({
|
|
422
380
|
btnText: e.target.value
|
|
@@ -428,12 +386,12 @@ var FloatingPopup$1 = function FloatingPopup(_ref) {
|
|
|
428
386
|
children: /*#__PURE__*/jsx(Select, {
|
|
429
387
|
"data-cy": "button-position-select-field",
|
|
430
388
|
"data-testid": "button-position-select-field",
|
|
389
|
+
label: t("neetoMolecules.productEmbed.floatingPopup.button.pos"),
|
|
431
390
|
options: FLOATING_BUTTON_POSITIONS,
|
|
432
391
|
value: btnPosition,
|
|
433
392
|
getOptionValue: function getOptionValue(option) {
|
|
434
393
|
return typeof option === "string" ? option : option.value;
|
|
435
394
|
},
|
|
436
|
-
label: t("neetoMolecules.productEmbed.customization.floatingPopup.button.pos"),
|
|
437
395
|
onChange: function onChange(e) {
|
|
438
396
|
return updateCustomization({
|
|
439
397
|
btnPosition: e.value
|
|
@@ -441,12 +399,13 @@ var FloatingPopup$1 = function FloatingPopup(_ref) {
|
|
|
441
399
|
}
|
|
442
400
|
})
|
|
443
401
|
}), /*#__PURE__*/jsxs("div", {
|
|
444
|
-
className: "flex items-center justify-between gap-
|
|
402
|
+
className: "flex items-center justify-between gap-2",
|
|
445
403
|
"data-cy": "button-color-label",
|
|
446
404
|
children: [/*#__PURE__*/jsx(Label, {
|
|
447
|
-
children: t("neetoMolecules.productEmbed.
|
|
405
|
+
children: t("neetoMolecules.productEmbed.floatingPopup.button.color")
|
|
448
406
|
}), /*#__PURE__*/jsx(ColorPicker, {
|
|
449
407
|
color: btnColor,
|
|
408
|
+
size: "medium",
|
|
450
409
|
onChange: function onChange(e) {
|
|
451
410
|
return updateCustomization({
|
|
452
411
|
btnColor: e.hex
|
|
@@ -454,18 +413,29 @@ var FloatingPopup$1 = function FloatingPopup(_ref) {
|
|
|
454
413
|
}
|
|
455
414
|
})]
|
|
456
415
|
}), /*#__PURE__*/jsxs("div", {
|
|
457
|
-
className: "flex items-center justify-between gap-
|
|
416
|
+
className: "flex items-center justify-between gap-2",
|
|
458
417
|
"data-cy": "button-text-color-label",
|
|
459
418
|
children: [/*#__PURE__*/jsx(Label, {
|
|
460
|
-
children: t("neetoMolecules.productEmbed.
|
|
419
|
+
children: t("neetoMolecules.productEmbed.floatingPopup.button.textColor")
|
|
461
420
|
}), /*#__PURE__*/jsx(ColorPicker, {
|
|
462
421
|
color: btnTextColor,
|
|
422
|
+
size: "medium",
|
|
463
423
|
onChange: function onChange(e) {
|
|
464
424
|
return updateCustomization({
|
|
465
425
|
btnTextColor: e.hex
|
|
466
426
|
});
|
|
467
427
|
}
|
|
468
428
|
})]
|
|
429
|
+
}), icon && /*#__PURE__*/jsx(Checkbox, {
|
|
430
|
+
checked: showIcon,
|
|
431
|
+
"data-cy": "show-icon-checkbox",
|
|
432
|
+
"data-testid": "show-icon-checkbox",
|
|
433
|
+
label: t("neetoMolecules.productEmbed.floatingPopup.showCalIcon"),
|
|
434
|
+
onChange: function onChange(e) {
|
|
435
|
+
return updateCustomization({
|
|
436
|
+
showIcon: e.target.checked
|
|
437
|
+
});
|
|
438
|
+
}
|
|
469
439
|
}), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/jsx(DynamicQueryParams, {
|
|
470
440
|
updateCustomization: updateCustomization
|
|
471
441
|
})]
|
|
@@ -492,17 +462,12 @@ var Inline$1 = function Inline(_ref) {
|
|
|
492
462
|
queryParams: undefined
|
|
493
463
|
});
|
|
494
464
|
}, []);
|
|
495
|
-
return /*#__PURE__*/jsxs(
|
|
496
|
-
|
|
497
|
-
children: [/*#__PURE__*/jsx(Typography, {
|
|
498
|
-
"data-cy": "customization-text",
|
|
499
|
-
style: "h4",
|
|
500
|
-
children: t("neetoMolecules.productEmbed.customization.inline.title")
|
|
501
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
465
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
466
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
502
467
|
className: "flex flex-col gap-2",
|
|
503
468
|
children: [/*#__PURE__*/jsx(Label, {
|
|
504
469
|
"data-cy": "window-size-text",
|
|
505
|
-
children: t("neetoMolecules.productEmbed.
|
|
470
|
+
children: t("neetoMolecules.productEmbed.inline.sizeOfEmbedWindow")
|
|
506
471
|
}), /*#__PURE__*/jsxs("div", {
|
|
507
472
|
className: "flex justify-between gap-x-2",
|
|
508
473
|
children: [/*#__PURE__*/jsx(Input, {
|
|
@@ -537,7 +502,7 @@ var Inline$1 = function Inline(_ref) {
|
|
|
537
502
|
className: "flex flex-col gap-2",
|
|
538
503
|
children: [/*#__PURE__*/jsx(Label, {
|
|
539
504
|
"data-cy": "inline-element-id-input-label",
|
|
540
|
-
children: t("neetoMolecules.productEmbed.
|
|
505
|
+
children: t("neetoMolecules.productEmbed.inline.elementId")
|
|
541
506
|
}), /*#__PURE__*/jsx(Input, {
|
|
542
507
|
"data-cy": "inline-element-id-input-field",
|
|
543
508
|
"data-testid": "inline-element-id-input-field",
|
|
@@ -552,93 +517,725 @@ var Inline$1 = function Inline(_ref) {
|
|
|
552
517
|
});
|
|
553
518
|
};
|
|
554
519
|
|
|
555
|
-
var
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
520
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
521
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
522
|
+
var InlineEmbedIcon = function InlineEmbedIcon(_ref) {
|
|
523
|
+
var other = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
524
|
+
return /*#__PURE__*/jsxs("svg", _objectSpread$2(_objectSpread$2({
|
|
525
|
+
fill: "none",
|
|
526
|
+
height: "163",
|
|
527
|
+
viewBox: "0 0 278 163",
|
|
528
|
+
width: "278",
|
|
529
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
530
|
+
}, other), {}, {
|
|
531
|
+
children: [/*#__PURE__*/jsxs("g", {
|
|
532
|
+
clipPath: "url(#clip0_8605_6776)",
|
|
533
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
534
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
535
|
+
height: "163",
|
|
536
|
+
rx: "6",
|
|
537
|
+
width: "278"
|
|
538
|
+
}), /*#__PURE__*/jsx("mask", {
|
|
539
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
540
|
+
id: "path-3-inside-1_8605_6776",
|
|
541
|
+
children: /*#__PURE__*/jsx("path", {
|
|
542
|
+
d: "M0 0h305v20H0z"
|
|
543
|
+
})
|
|
544
|
+
}), /*#__PURE__*/jsx("path", {
|
|
545
|
+
d: "M0 0h305v20H0z",
|
|
546
|
+
fill: "rgb(var(--neeto-ui-white))"
|
|
547
|
+
}), /*#__PURE__*/jsx("path", {
|
|
548
|
+
d: "M305 19H0v2h305z",
|
|
549
|
+
fill: "currentColor",
|
|
550
|
+
mask: "url(#path-3-inside-1_8605_6776)"
|
|
551
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
552
|
+
cx: "10.596",
|
|
553
|
+
cy: "10.432",
|
|
554
|
+
fill: "#FD5350",
|
|
555
|
+
r: "2.307"
|
|
556
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
557
|
+
cx: "18.143",
|
|
558
|
+
cy: "10.432",
|
|
559
|
+
fill: "#FEB33A",
|
|
560
|
+
r: "2.307"
|
|
561
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
562
|
+
cx: "25.69",
|
|
563
|
+
cy: "10.432",
|
|
564
|
+
fill: "#2CC146",
|
|
565
|
+
r: "2.307"
|
|
566
|
+
}), /*#__PURE__*/jsx("path", {
|
|
567
|
+
d: "M36 20h206v10H36zM36 150h206v12H36z",
|
|
568
|
+
fill: "currentColor"
|
|
569
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
570
|
+
height: "103.55",
|
|
571
|
+
rx: "5.217",
|
|
572
|
+
stroke: "rgb(var(--neeto-ui-gray-300))",
|
|
573
|
+
strokeWidth: "0.45",
|
|
574
|
+
width: "205.55",
|
|
575
|
+
x: "36.225",
|
|
576
|
+
y: "38.225"
|
|
577
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
578
|
+
fill: "currentColor",
|
|
579
|
+
height: "2.311",
|
|
580
|
+
rx: "1.156",
|
|
581
|
+
width: "36.079",
|
|
582
|
+
x: "45.32",
|
|
583
|
+
y: "81.914"
|
|
584
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
585
|
+
fill: "currentColor",
|
|
586
|
+
height: "2.311",
|
|
587
|
+
rx: "1.156",
|
|
588
|
+
width: "20.949",
|
|
589
|
+
x: "45.32",
|
|
590
|
+
y: "87.688"
|
|
591
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
592
|
+
fill: "#008068",
|
|
593
|
+
height: "7.988",
|
|
594
|
+
rx: "1",
|
|
595
|
+
width: "23.183",
|
|
596
|
+
x: "203.539",
|
|
597
|
+
y: "61.109"
|
|
598
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
599
|
+
fill: "currentColor",
|
|
600
|
+
height: "7.728",
|
|
601
|
+
rx: "1",
|
|
602
|
+
width: "23.183",
|
|
603
|
+
x: "203.539",
|
|
604
|
+
y: "73.57"
|
|
605
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
606
|
+
fill: "currentColor",
|
|
607
|
+
height: "8.134",
|
|
608
|
+
rx: "1",
|
|
609
|
+
width: "23.183",
|
|
610
|
+
x: "203.539",
|
|
611
|
+
y: "85.773"
|
|
612
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
613
|
+
fill: "currentColor",
|
|
614
|
+
height: "8.134",
|
|
615
|
+
rx: "1",
|
|
616
|
+
width: "23.183",
|
|
617
|
+
x: "203.539",
|
|
618
|
+
y: "98.383"
|
|
619
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
620
|
+
fill: "currentColor",
|
|
621
|
+
height: "8.134",
|
|
622
|
+
rx: "1",
|
|
623
|
+
width: "23.183",
|
|
624
|
+
x: "203.539",
|
|
625
|
+
y: "110.992"
|
|
626
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
627
|
+
cx: "52.077",
|
|
628
|
+
cy: "67.819",
|
|
629
|
+
fill: "currentColor",
|
|
630
|
+
r: "6.733"
|
|
631
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
632
|
+
cx: "120.314",
|
|
633
|
+
cy: "74.322",
|
|
634
|
+
fill: "currentColor",
|
|
635
|
+
r: "2.65"
|
|
636
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
637
|
+
cx: "120.322",
|
|
638
|
+
cy: "84.876",
|
|
639
|
+
fill: "currentColor",
|
|
640
|
+
r: "2.65"
|
|
641
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
642
|
+
cx: "120.322",
|
|
643
|
+
cy: "95.439",
|
|
644
|
+
fill: "currentColor",
|
|
645
|
+
r: "2.65"
|
|
646
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
647
|
+
cx: "130.954",
|
|
648
|
+
cy: "63.767",
|
|
649
|
+
fill: "currentColor",
|
|
650
|
+
r: "2.65"
|
|
651
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
652
|
+
cx: "130.954",
|
|
653
|
+
cy: "74.322",
|
|
654
|
+
fill: "currentColor",
|
|
655
|
+
r: "2.65"
|
|
656
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
657
|
+
cx: "130.954",
|
|
658
|
+
cy: "84.876",
|
|
659
|
+
fill: "currentColor",
|
|
660
|
+
r: "2.65"
|
|
661
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
662
|
+
cx: "130.954",
|
|
663
|
+
cy: "95.439",
|
|
664
|
+
fill: "currentColor",
|
|
665
|
+
r: "2.65"
|
|
666
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
667
|
+
cx: "141.572",
|
|
668
|
+
cy: "63.767",
|
|
669
|
+
fill: "currentColor",
|
|
670
|
+
r: "2.65"
|
|
671
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
672
|
+
cx: "141.572",
|
|
673
|
+
cy: "74.322",
|
|
674
|
+
fill: "currentColor",
|
|
675
|
+
r: "2.65"
|
|
676
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
677
|
+
cx: "141.572",
|
|
678
|
+
cy: "84.876",
|
|
679
|
+
fill: "currentColor",
|
|
680
|
+
r: "2.65"
|
|
681
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
682
|
+
cx: "141.572",
|
|
683
|
+
cy: "95.439",
|
|
684
|
+
fill: "currentColor",
|
|
685
|
+
r: "2.65"
|
|
686
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
687
|
+
cx: "152.181",
|
|
688
|
+
cy: "63.767",
|
|
689
|
+
fill: "currentColor",
|
|
690
|
+
r: "2.65"
|
|
691
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
692
|
+
cx: "152.181",
|
|
693
|
+
cy: "74.322",
|
|
694
|
+
fill: "currentColor",
|
|
695
|
+
r: "2.65"
|
|
696
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
697
|
+
cx: "152.181",
|
|
698
|
+
cy: "84.876",
|
|
699
|
+
fill: "currentColor",
|
|
700
|
+
r: "2.65"
|
|
701
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
702
|
+
cx: "162.806",
|
|
703
|
+
cy: "63.767",
|
|
704
|
+
fill: "currentColor",
|
|
705
|
+
r: "2.65"
|
|
706
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
707
|
+
cx: "162.806",
|
|
708
|
+
cy: "74.322",
|
|
709
|
+
fill: "#008068",
|
|
710
|
+
r: "2.65"
|
|
711
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
712
|
+
cx: "162.806",
|
|
713
|
+
cy: "84.876",
|
|
714
|
+
fill: "currentColor",
|
|
715
|
+
r: "2.65"
|
|
716
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
717
|
+
cx: "173.439",
|
|
718
|
+
cy: "63.767",
|
|
719
|
+
fill: "currentColor",
|
|
720
|
+
r: "2.65"
|
|
721
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
722
|
+
cx: "173.439",
|
|
723
|
+
cy: "74.322",
|
|
724
|
+
fill: "currentColor",
|
|
725
|
+
r: "2.65"
|
|
726
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
727
|
+
cx: "173.439",
|
|
728
|
+
cy: "84.876",
|
|
729
|
+
fill: "currentColor",
|
|
730
|
+
r: "2.65"
|
|
731
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
732
|
+
cx: "184.064",
|
|
733
|
+
cy: "63.767",
|
|
734
|
+
fill: "currentColor",
|
|
735
|
+
r: "2.65"
|
|
736
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
737
|
+
cx: "184.064",
|
|
738
|
+
cy: "74.322",
|
|
739
|
+
fill: "currentColor",
|
|
740
|
+
r: "2.65"
|
|
741
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
742
|
+
cx: "184.075",
|
|
743
|
+
cy: "84.876",
|
|
744
|
+
fill: "currentColor",
|
|
745
|
+
r: "2.65"
|
|
746
|
+
}), /*#__PURE__*/jsx("path", {
|
|
747
|
+
d: "M93.023 38v104",
|
|
748
|
+
stroke: "#E7E7E7",
|
|
749
|
+
strokeWidth: "0.454"
|
|
750
|
+
})]
|
|
751
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
752
|
+
height: "162",
|
|
753
|
+
rx: "5.5",
|
|
754
|
+
stroke: "rgb(var(--neeto-ui-gray-300))",
|
|
755
|
+
width: "277",
|
|
756
|
+
x: "0.5",
|
|
757
|
+
y: "0.5"
|
|
758
|
+
}), /*#__PURE__*/jsx("defs", {
|
|
759
|
+
children: /*#__PURE__*/jsx("clipPath", {
|
|
760
|
+
id: "clip0_8605_6776",
|
|
761
|
+
children: /*#__PURE__*/jsx("rect", {
|
|
762
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
763
|
+
height: "163",
|
|
764
|
+
rx: "6",
|
|
765
|
+
width: "278"
|
|
766
|
+
})
|
|
767
|
+
})
|
|
768
|
+
})]
|
|
769
|
+
}));
|
|
770
|
+
};
|
|
771
|
+
var FloatingPopupIcon = function FloatingPopupIcon(_ref2) {
|
|
772
|
+
var other = Object.assign({}, (_objectDestructuringEmpty(_ref2), _ref2));
|
|
773
|
+
return /*#__PURE__*/jsxs("svg", _objectSpread$2(_objectSpread$2({
|
|
774
|
+
fill: "none",
|
|
775
|
+
height: "163",
|
|
776
|
+
viewBox: "0 0 278 163",
|
|
777
|
+
width: "278",
|
|
778
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
779
|
+
}, other), {}, {
|
|
780
|
+
children: [/*#__PURE__*/jsxs("g", {
|
|
781
|
+
clipPath: "url(#clip0_9047_10870)",
|
|
782
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
783
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
784
|
+
height: "163",
|
|
785
|
+
rx: "6",
|
|
786
|
+
width: "278"
|
|
787
|
+
}), /*#__PURE__*/jsx("mask", {
|
|
788
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
789
|
+
id: "path-3-inside-1_9047_10870",
|
|
790
|
+
children: /*#__PURE__*/jsx("path", {
|
|
791
|
+
d: "M0 0H305V20H0V0Z"
|
|
792
|
+
})
|
|
793
|
+
}), /*#__PURE__*/jsx("path", {
|
|
794
|
+
d: "M0 0H305V20H0V0Z",
|
|
795
|
+
fill: "rgb(var(--neeto-ui-white))"
|
|
796
|
+
}), /*#__PURE__*/jsx("path", {
|
|
797
|
+
d: "M305 19H0V21H305V19Z",
|
|
798
|
+
fill: "currentColor",
|
|
799
|
+
mask: "url(#path-3-inside-1_9047_10870)"
|
|
800
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
801
|
+
cx: "10.5963",
|
|
802
|
+
cy: "10.4322",
|
|
803
|
+
fill: "#FD5350",
|
|
804
|
+
r: "2.30723"
|
|
805
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
806
|
+
cx: "18.1432",
|
|
807
|
+
cy: "10.4322",
|
|
808
|
+
fill: "#FEB33A",
|
|
809
|
+
r: "2.30723"
|
|
810
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
811
|
+
cx: "25.69",
|
|
812
|
+
cy: "10.4322",
|
|
813
|
+
fill: "#2CC146",
|
|
814
|
+
r: "2.30723"
|
|
815
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
816
|
+
fill: "currentColor",
|
|
817
|
+
height: "3",
|
|
818
|
+
opacity: "0.78",
|
|
819
|
+
rx: "1.5",
|
|
820
|
+
width: "84.6936",
|
|
821
|
+
x: "145",
|
|
822
|
+
y: "63"
|
|
823
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
824
|
+
fill: "currentColor",
|
|
825
|
+
height: "3",
|
|
826
|
+
opacity: "0.78",
|
|
827
|
+
rx: "1.5",
|
|
828
|
+
width: "89",
|
|
829
|
+
x: "145",
|
|
830
|
+
y: "70"
|
|
831
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
832
|
+
fill: "currentColor",
|
|
833
|
+
height: "3",
|
|
834
|
+
opacity: "0.78",
|
|
835
|
+
rx: "1.5",
|
|
836
|
+
width: "49",
|
|
837
|
+
x: "145",
|
|
838
|
+
y: "77"
|
|
839
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
840
|
+
fill: "currentColor",
|
|
841
|
+
height: "3",
|
|
842
|
+
opacity: "0.78",
|
|
843
|
+
rx: "1.5",
|
|
844
|
+
width: "84.6936",
|
|
845
|
+
x: "36",
|
|
846
|
+
y: "111"
|
|
847
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
848
|
+
fill: "currentColor",
|
|
849
|
+
height: "3",
|
|
850
|
+
opacity: "0.78",
|
|
851
|
+
rx: "1.5",
|
|
852
|
+
width: "89",
|
|
853
|
+
x: "36",
|
|
854
|
+
y: "118"
|
|
855
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
856
|
+
fill: "currentColor",
|
|
857
|
+
height: "3",
|
|
858
|
+
opacity: "0.78",
|
|
859
|
+
rx: "1.5",
|
|
860
|
+
width: "25.8387",
|
|
861
|
+
x: "36",
|
|
862
|
+
y: "125"
|
|
863
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
864
|
+
fill: "currentColor",
|
|
865
|
+
height: "35",
|
|
866
|
+
width: "96",
|
|
867
|
+
x: "36",
|
|
868
|
+
y: "57"
|
|
869
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
870
|
+
fill: "currentColor",
|
|
871
|
+
height: "35",
|
|
872
|
+
width: "95",
|
|
873
|
+
x: "145",
|
|
874
|
+
y: "102"
|
|
875
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
876
|
+
fill: "currentColor",
|
|
877
|
+
height: "26",
|
|
878
|
+
width: "204",
|
|
879
|
+
x: "36",
|
|
880
|
+
y: "20"
|
|
881
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
882
|
+
fill: "currentColor",
|
|
883
|
+
height: "14",
|
|
884
|
+
width: "204",
|
|
885
|
+
x: "36",
|
|
886
|
+
y: "148"
|
|
887
|
+
})]
|
|
888
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
889
|
+
height: "162",
|
|
890
|
+
rx: "5.5",
|
|
891
|
+
stroke: "rgb(var(--neeto-ui-gray-300))",
|
|
892
|
+
width: "277",
|
|
893
|
+
x: "0.5",
|
|
894
|
+
y: "0.5"
|
|
895
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
896
|
+
fill: "#008068",
|
|
897
|
+
height: "18",
|
|
898
|
+
rx: "9",
|
|
899
|
+
width: "69",
|
|
900
|
+
x: "194",
|
|
901
|
+
y: "134"
|
|
902
|
+
}), /*#__PURE__*/jsx("defs", {
|
|
903
|
+
children: /*#__PURE__*/jsx("clipPath", {
|
|
904
|
+
id: "clip0_9047_10870",
|
|
905
|
+
children: /*#__PURE__*/jsx("rect", {
|
|
906
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
907
|
+
height: "163",
|
|
908
|
+
rx: "6",
|
|
909
|
+
width: "278"
|
|
910
|
+
})
|
|
911
|
+
})
|
|
912
|
+
})]
|
|
913
|
+
}));
|
|
914
|
+
};
|
|
915
|
+
var ElementPopupIcon = function ElementPopupIcon(_ref3) {
|
|
916
|
+
var other = Object.assign({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
917
|
+
return /*#__PURE__*/jsxs("svg", _objectSpread$2(_objectSpread$2({
|
|
918
|
+
fill: "none",
|
|
919
|
+
height: "163",
|
|
920
|
+
viewBox: "0 0 278 163",
|
|
921
|
+
width: "278",
|
|
922
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
923
|
+
}, other), {}, {
|
|
924
|
+
children: [/*#__PURE__*/jsxs("g", {
|
|
925
|
+
clipPath: "url(#clip0_9047_10869)",
|
|
926
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
927
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
928
|
+
height: "163",
|
|
929
|
+
rx: "6",
|
|
930
|
+
width: "278"
|
|
931
|
+
}), /*#__PURE__*/jsx("mask", {
|
|
932
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
933
|
+
id: "path-3-inside-1_9047_10869",
|
|
934
|
+
children: /*#__PURE__*/jsx("path", {
|
|
935
|
+
d: "M0 0h305v20H0z"
|
|
936
|
+
})
|
|
937
|
+
}), /*#__PURE__*/jsx("path", {
|
|
938
|
+
d: "M0 0h305v20H0z",
|
|
939
|
+
fill: "rgb(var(--neeto-ui-white))"
|
|
940
|
+
}), /*#__PURE__*/jsx("path", {
|
|
941
|
+
d: "M305 19H0v2h305z",
|
|
942
|
+
fill: "currentColor",
|
|
943
|
+
mask: "url(#path-3-inside-1_9047_10869)"
|
|
944
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
945
|
+
cx: "10.596",
|
|
946
|
+
cy: "10.432",
|
|
947
|
+
fill: "#FD5350",
|
|
948
|
+
r: "2.307"
|
|
949
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
950
|
+
cx: "18.143",
|
|
951
|
+
cy: "10.432",
|
|
952
|
+
fill: "#FEB33A",
|
|
953
|
+
r: "2.307"
|
|
954
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
955
|
+
cx: "25.69",
|
|
956
|
+
cy: "10.432",
|
|
957
|
+
fill: "#2CC146",
|
|
958
|
+
r: "2.307"
|
|
959
|
+
})]
|
|
960
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
961
|
+
height: "162",
|
|
962
|
+
rx: "5.5",
|
|
963
|
+
stroke: "rgb(var(--neeto-ui-gray-300))",
|
|
964
|
+
width: "277",
|
|
965
|
+
x: "0.5",
|
|
966
|
+
y: "0.5"
|
|
967
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
968
|
+
fill: "currentColor",
|
|
969
|
+
height: "3.944",
|
|
970
|
+
opacity: "0.78",
|
|
971
|
+
rx: "1.972",
|
|
972
|
+
width: "85",
|
|
973
|
+
x: "135",
|
|
974
|
+
y: "58.461"
|
|
975
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
976
|
+
fill: "currentColor",
|
|
977
|
+
height: "3.944",
|
|
978
|
+
opacity: "0.78",
|
|
979
|
+
rx: "1.972",
|
|
980
|
+
width: "89",
|
|
981
|
+
x: "135",
|
|
982
|
+
y: "66.352"
|
|
983
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
984
|
+
fill: "#008068",
|
|
985
|
+
height: "7",
|
|
986
|
+
rx: "3.5",
|
|
987
|
+
width: "38",
|
|
988
|
+
x: "135",
|
|
989
|
+
y: "74"
|
|
990
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
991
|
+
fill: "currentColor",
|
|
992
|
+
height: "3.944",
|
|
993
|
+
opacity: "0.78",
|
|
994
|
+
rx: "1.972",
|
|
995
|
+
width: "85",
|
|
996
|
+
x: "135",
|
|
997
|
+
y: "100.859"
|
|
998
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
999
|
+
fill: "currentColor",
|
|
1000
|
+
height: "3.944",
|
|
1001
|
+
opacity: "0.78",
|
|
1002
|
+
rx: "1.972",
|
|
1003
|
+
width: "89",
|
|
1004
|
+
x: "135",
|
|
1005
|
+
y: "108.75"
|
|
1006
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1007
|
+
fill: "currentColor",
|
|
1008
|
+
height: "3.944",
|
|
1009
|
+
opacity: "0.78",
|
|
1010
|
+
rx: "1.972",
|
|
1011
|
+
width: "26",
|
|
1012
|
+
x: "135",
|
|
1013
|
+
y: "116.641"
|
|
1014
|
+
}), /*#__PURE__*/jsx("path", {
|
|
1015
|
+
d: "M36 52h88v34H36zM36 20h204v28H36zM240 162H36v-28h204zM36 90h88v41H36z",
|
|
1016
|
+
fill: "currentColor"
|
|
1017
|
+
}), /*#__PURE__*/jsx("defs", {
|
|
1018
|
+
children: /*#__PURE__*/jsx("clipPath", {
|
|
1019
|
+
id: "clip0_9047_10869",
|
|
1020
|
+
children: /*#__PURE__*/jsx("rect", {
|
|
1021
|
+
fill: "rgb(var(--neeto-ui-white))",
|
|
1022
|
+
height: "163",
|
|
1023
|
+
rx: "6",
|
|
1024
|
+
width: "278"
|
|
1025
|
+
})
|
|
1026
|
+
})
|
|
1027
|
+
})]
|
|
1028
|
+
}));
|
|
569
1029
|
};
|
|
570
1030
|
|
|
571
|
-
var
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
1031
|
+
var EMBED_OPTIONS = {
|
|
1032
|
+
INLINE: "inline",
|
|
1033
|
+
FLOATING_POPUP: "floatingPopup",
|
|
1034
|
+
ELEMENT_POPUP: "elementPopup"
|
|
1035
|
+
};
|
|
1036
|
+
var EMBED_ICONS = _defineProperty(_defineProperty(_defineProperty({}, EMBED_OPTIONS.INLINE, InlineEmbedIcon), EMBED_OPTIONS.FLOATING_POPUP, FloatingPopupIcon), EMBED_OPTIONS.ELEMENT_POPUP, ElementPopupIcon);
|
|
1037
|
+
var DEFAULT_CUSTOMIZATION = _defineProperty(_defineProperty(_defineProperty({}, EMBED_OPTIONS.INLINE, {
|
|
1038
|
+
width: 100,
|
|
1039
|
+
height: 100,
|
|
1040
|
+
elementSelector: "inline-embed-container"
|
|
1041
|
+
}), EMBED_OPTIONS.FLOATING_POPUP, {
|
|
1042
|
+
showIcon: false,
|
|
1043
|
+
btnText: "Open",
|
|
1044
|
+
btnColor: "#008068",
|
|
1045
|
+
btnTextColor: "#fff",
|
|
1046
|
+
btnPosition: "bottomRight"
|
|
1047
|
+
}), EMBED_OPTIONS.ELEMENT_POPUP, {
|
|
1048
|
+
elementSelector: "open-popup-button"
|
|
1049
|
+
});
|
|
1050
|
+
var EMBED_CUSTOMIZATION_COMPONENTS = _defineProperty(_defineProperty(_defineProperty({}, EMBED_OPTIONS.INLINE, Inline$1), EMBED_OPTIONS.FLOATING_POPUP, FloatingPopup$1), EMBED_OPTIONS.ELEMENT_POPUP, ElementPopup$1);
|
|
1051
|
+
var EMBED_TITLES = _defineProperty(_defineProperty(_defineProperty({}, EMBED_OPTIONS.INLINE, t("neetoMolecules.productEmbed.inline.title")), EMBED_OPTIONS.FLOATING_POPUP, t("neetoMolecules.productEmbed.floatingPopup.title")), EMBED_OPTIONS.ELEMENT_POPUP, t("neetoMolecules.productEmbed.elementPopup.title"));
|
|
1052
|
+
var SUPPORTED_LANGUAGES = [{
|
|
1053
|
+
value: "html",
|
|
1054
|
+
label: t("neetoMolecules.productEmbed.language.html")
|
|
1055
|
+
}, {
|
|
1056
|
+
value: "react",
|
|
1057
|
+
label: t("neetoMolecules.productEmbed.language.react")
|
|
1058
|
+
}];
|
|
1059
|
+
var SCRIPT_ID = "embed-script";
|
|
1060
|
+
var TAB_STRING = " ";
|
|
1061
|
+
|
|
1062
|
+
var Code = function Code(_ref) {
|
|
1063
|
+
var id = _ref.id,
|
|
1064
|
+
selectedEmbed = _ref.selectedEmbed,
|
|
1065
|
+
embedScriptLink = _ref.embedScriptLink,
|
|
1066
|
+
extraArgs = _ref.extraArgs,
|
|
1067
|
+
inlineWrapperStyle = _ref.inlineWrapperStyle,
|
|
1068
|
+
supportedLanguages = _ref.supportedLanguages,
|
|
1069
|
+
customization = _ref.customization;
|
|
1070
|
+
var _useTranslation = useTranslation(),
|
|
1071
|
+
t = _useTranslation.t;
|
|
1072
|
+
var supportedLanguagesOptions = filterBy({
|
|
1073
|
+
value: function value(_value) {
|
|
1074
|
+
return supportedLanguages === null || supportedLanguages === void 0 ? void 0 : supportedLanguages.includes(_value);
|
|
1075
|
+
}
|
|
1076
|
+
}, SUPPORTED_LANGUAGES);
|
|
1077
|
+
var _useState = useState(supportedLanguagesOptions[0]),
|
|
1078
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1079
|
+
selectedLanguage = _useState2[0],
|
|
1080
|
+
setSelectedLanguage = _useState2[1];
|
|
1081
|
+
var code = generateCode({
|
|
1082
|
+
id: id,
|
|
1083
|
+
selectedLanguage: selectedLanguage.value,
|
|
1084
|
+
type: selectedEmbed,
|
|
1085
|
+
customization: customization,
|
|
1086
|
+
embedScriptLink: embedScriptLink,
|
|
1087
|
+
extraArgs: extraArgs,
|
|
1088
|
+
inlineWrapperStyle: inlineWrapperStyle
|
|
1089
|
+
});
|
|
1090
|
+
return /*#__PURE__*/jsxs("div", {
|
|
1091
|
+
className: "flex flex-col gap-3",
|
|
1092
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
1093
|
+
className: "flex items-center justify-between",
|
|
1094
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
1095
|
+
style: "h4",
|
|
1096
|
+
children: t("neetoMolecules.productEmbed.embedCode")
|
|
1097
|
+
}), /*#__PURE__*/jsx(Select, {
|
|
1098
|
+
className: "w-28 flex-grow-0",
|
|
1099
|
+
options: supportedLanguagesOptions,
|
|
1100
|
+
size: "small",
|
|
1101
|
+
strategy: "fixed",
|
|
1102
|
+
value: selectedLanguage,
|
|
1103
|
+
onChange: setSelectedLanguage
|
|
1104
|
+
})]
|
|
1105
|
+
}), /*#__PURE__*/jsx("div", {
|
|
1106
|
+
className: "neeto-molecules-embed__code-block relative w-full overflow-y-auto",
|
|
1107
|
+
"data-cy": "embed-code-block",
|
|
1108
|
+
"data-testid": "embed-code-block",
|
|
1109
|
+
children: /*#__PURE__*/jsx(Codeblock, {
|
|
1110
|
+
code: code,
|
|
1111
|
+
codeblockProps: {
|
|
1112
|
+
"data-testid": "".concat(selectedLanguage.value, "-code-block")
|
|
1113
|
+
},
|
|
1114
|
+
copyButtonProps: {
|
|
1115
|
+
style: "primary",
|
|
1116
|
+
label: t("neetoMolecules.productEmbed.copyCode")
|
|
1117
|
+
}
|
|
594
1118
|
})
|
|
595
|
-
})
|
|
1119
|
+
})]
|
|
596
1120
|
});
|
|
597
1121
|
};
|
|
598
1122
|
|
|
599
|
-
var
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
return /*#__PURE__*/
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
1123
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1124
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1125
|
+
var FloatingPopupPlaceholderImage = function FloatingPopupPlaceholderImage(_ref) {
|
|
1126
|
+
var other = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
1127
|
+
return /*#__PURE__*/jsxs("svg", _objectSpread$1(_objectSpread$1({
|
|
1128
|
+
fill: "none",
|
|
1129
|
+
height: "518",
|
|
1130
|
+
viewBox: "0 0 796 518",
|
|
1131
|
+
width: "796",
|
|
1132
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1133
|
+
}, other), {}, {
|
|
1134
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
1135
|
+
fill: "currentColor",
|
|
1136
|
+
height: "12.706",
|
|
1137
|
+
opacity: "0.78",
|
|
1138
|
+
rx: "6.353",
|
|
1139
|
+
width: "358.702",
|
|
1140
|
+
x: "406.645",
|
|
1141
|
+
y: "152.109"
|
|
1142
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1143
|
+
fill: "currentColor",
|
|
1144
|
+
height: "12.706",
|
|
1145
|
+
opacity: "0.78",
|
|
1146
|
+
rx: "6.353",
|
|
1147
|
+
width: "376.941",
|
|
1148
|
+
x: "406.645",
|
|
1149
|
+
y: "181.758"
|
|
1150
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1151
|
+
fill: "currentColor",
|
|
1152
|
+
height: "12.706",
|
|
1153
|
+
opacity: "0.78",
|
|
1154
|
+
rx: "6.353",
|
|
1155
|
+
width: "207.529",
|
|
1156
|
+
x: "406.645",
|
|
1157
|
+
y: "211.406"
|
|
1158
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1159
|
+
fill: "currentColor",
|
|
1160
|
+
height: "12.706",
|
|
1161
|
+
opacity: "0.78",
|
|
1162
|
+
rx: "6.353",
|
|
1163
|
+
width: "358.702",
|
|
1164
|
+
y: "333.414"
|
|
1165
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1166
|
+
fill: "currentColor",
|
|
1167
|
+
height: "12.706",
|
|
1168
|
+
opacity: "0.78",
|
|
1169
|
+
rx: "6.353",
|
|
1170
|
+
width: "376.941",
|
|
1171
|
+
y: "363.062"
|
|
1172
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1173
|
+
fill: "currentColor",
|
|
1174
|
+
height: "12.706",
|
|
1175
|
+
opacity: "0.78",
|
|
1176
|
+
rx: "6.353",
|
|
1177
|
+
width: "109.435",
|
|
1178
|
+
y: "392.711"
|
|
1179
|
+
}), /*#__PURE__*/jsx("path", {
|
|
1180
|
+
d: "M0 127.203h374v148H0zM407 295h389v149H407zM0 .203h796v110H0zM0 460.203h796v59H0z",
|
|
1181
|
+
fill: "currentColor"
|
|
1182
|
+
})]
|
|
1183
|
+
}));
|
|
1184
|
+
};
|
|
1185
|
+
var ElementPopupPlaceholderImage = function ElementPopupPlaceholderImage(_ref2) {
|
|
1186
|
+
var other = Object.assign({}, (_objectDestructuringEmpty(_ref2), _ref2));
|
|
1187
|
+
return /*#__PURE__*/jsxs("svg", _objectSpread$1(_objectSpread$1({
|
|
1188
|
+
fill: "none",
|
|
1189
|
+
height: "518",
|
|
1190
|
+
viewBox: "0 0 748 518",
|
|
1191
|
+
width: "748",
|
|
1192
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1193
|
+
}, other), {}, {
|
|
1194
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
1195
|
+
fill: "currentColor",
|
|
1196
|
+
height: "14.463",
|
|
1197
|
+
opacity: "0.78",
|
|
1198
|
+
rx: "7.231",
|
|
1199
|
+
width: "311.667",
|
|
1200
|
+
x: "363",
|
|
1201
|
+
y: "142.688"
|
|
1202
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1203
|
+
fill: "currentColor",
|
|
1204
|
+
height: "14.463",
|
|
1205
|
+
opacity: "0.78",
|
|
1206
|
+
rx: "7.231",
|
|
1207
|
+
width: "326.333",
|
|
1208
|
+
x: "363",
|
|
1209
|
+
y: "171.617"
|
|
1210
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1211
|
+
fill: "currentColor",
|
|
1212
|
+
height: "14.463",
|
|
1213
|
+
opacity: "0.78",
|
|
1214
|
+
rx: "7.231",
|
|
1215
|
+
width: "311.667",
|
|
1216
|
+
x: "363",
|
|
1217
|
+
y: "298.141"
|
|
1218
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1219
|
+
fill: "currentColor",
|
|
1220
|
+
height: "14.463",
|
|
1221
|
+
opacity: "0.78",
|
|
1222
|
+
rx: "7.231",
|
|
1223
|
+
width: "326.333",
|
|
1224
|
+
x: "363",
|
|
1225
|
+
y: "327.07"
|
|
1226
|
+
}), /*#__PURE__*/jsx("rect", {
|
|
1227
|
+
fill: "currentColor",
|
|
1228
|
+
height: "14.463",
|
|
1229
|
+
opacity: "0.78",
|
|
1230
|
+
rx: "7.231",
|
|
1231
|
+
width: "95.333",
|
|
1232
|
+
x: "363",
|
|
1233
|
+
y: "356"
|
|
1234
|
+
}), /*#__PURE__*/jsx("path", {
|
|
1235
|
+
d: "M0 119h322.667v124.667H0zM0 0h748v104H0zM748 522.336H0V419.669h748zM0 258.328h322.667v150.333H0z",
|
|
1236
|
+
fill: "currentColor"
|
|
1237
|
+
})]
|
|
1238
|
+
}));
|
|
642
1239
|
};
|
|
643
1240
|
|
|
644
1241
|
var ElementPopup = function ElementPopup(_ref) {
|
|
@@ -654,14 +1251,17 @@ var ElementPopup = function ElementPopup(_ref) {
|
|
|
654
1251
|
(_window$globalProps$a = window[globalProps.appName.replace(/^neeto/i, "neeto")]) === null || _window$globalProps$a === void 0 || _window$globalProps$a.embed(element, iframeURL);
|
|
655
1252
|
}
|
|
656
1253
|
}, []);
|
|
657
|
-
return /*#__PURE__*/
|
|
658
|
-
className: "relative
|
|
659
|
-
children: /*#__PURE__*/jsx(
|
|
1254
|
+
return /*#__PURE__*/jsxs("div", {
|
|
1255
|
+
className: "relative h-full w-full overflow-hidden",
|
|
1256
|
+
children: [/*#__PURE__*/jsx(ElementPopupPlaceholderImage, {
|
|
1257
|
+
className: "neeto-ui-text-gray-100 absolute inset-0 h-auto w-full p-10"
|
|
1258
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
1259
|
+
className: "absolute left-[48.5294117647%] top-[39.0804597701%]",
|
|
660
1260
|
"data-cy": "preview-element-popup-button",
|
|
661
1261
|
"data-testid": "preview-element-popup-button",
|
|
662
1262
|
id: elementSelector,
|
|
663
|
-
label: t("neetoMolecules.productEmbed.
|
|
664
|
-
})
|
|
1263
|
+
label: t("neetoMolecules.productEmbed.elementPopup.label")
|
|
1264
|
+
})]
|
|
665
1265
|
});
|
|
666
1266
|
};
|
|
667
1267
|
|
|
@@ -684,9 +1284,11 @@ var FloatingPopup = function FloatingPopup(_ref) {
|
|
|
684
1284
|
btn.style.backgroundColor = btnColor;
|
|
685
1285
|
btn.style.color = btnTextColor;
|
|
686
1286
|
}, [btnColor, btnTextColor]);
|
|
687
|
-
return /*#__PURE__*/
|
|
688
|
-
className: "relative h-full w-full",
|
|
689
|
-
children: /*#__PURE__*/jsx(
|
|
1287
|
+
return /*#__PURE__*/jsxs("div", {
|
|
1288
|
+
className: "relative h-full w-full overflow-hidden",
|
|
1289
|
+
children: [/*#__PURE__*/jsx(FloatingPopupPlaceholderImage, {
|
|
1290
|
+
className: "neeto-ui-text-gray-100 h-auto w-full p-10"
|
|
1291
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
690
1292
|
"data-cy": "popup-preview-button",
|
|
691
1293
|
icon: icon && showIcon ? icon : null,
|
|
692
1294
|
iconPosition: "left",
|
|
@@ -696,7 +1298,7 @@ var FloatingPopup = function FloatingPopup(_ref) {
|
|
|
696
1298
|
"left-0": btnPosition === "bottomLeft",
|
|
697
1299
|
"right-0": btnPosition === "bottomRight"
|
|
698
1300
|
})
|
|
699
|
-
})
|
|
1301
|
+
})]
|
|
700
1302
|
});
|
|
701
1303
|
};
|
|
702
1304
|
|
|
@@ -715,14 +1317,14 @@ var Inline = function Inline(_ref) {
|
|
|
715
1317
|
|
|
716
1318
|
var Preview = function Preview(_ref) {
|
|
717
1319
|
var isScriptLoading = _ref.isScriptLoading,
|
|
718
|
-
|
|
1320
|
+
selectedEmbed = _ref.selectedEmbed,
|
|
719
1321
|
id = _ref.id,
|
|
720
1322
|
customization = _ref.customization,
|
|
721
1323
|
_ref$customPreviewIfr = _ref.customPreviewIframeUrl,
|
|
722
1324
|
customPreviewIframeUrl = _ref$customPreviewIfr === void 0 ? "" : _ref$customPreviewIfr;
|
|
723
1325
|
var preview = _defineProperty(_defineProperty(_defineProperty({}, EMBED_OPTIONS.INLINE, Inline), EMBED_OPTIONS.FLOATING_POPUP, FloatingPopup), EMBED_OPTIONS.ELEMENT_POPUP, ElementPopup);
|
|
724
1326
|
var iframeURL = customPreviewIframeUrl || "".concat(location.origin, "/embed/").concat(id);
|
|
725
|
-
var Component = preview[
|
|
1327
|
+
var Component = preview[selectedEmbed];
|
|
726
1328
|
if (isScriptLoading) {
|
|
727
1329
|
return /*#__PURE__*/jsx("div", {
|
|
728
1330
|
className: "flex min-h-0 flex-grow items-center justify-center overflow-y-auto",
|
|
@@ -739,68 +1341,40 @@ var Preview = function Preview(_ref) {
|
|
|
739
1341
|
});
|
|
740
1342
|
};
|
|
741
1343
|
|
|
742
|
-
var css = ".neeto-molecules-product-embed-size-input.neeto-ui-input__wrapper .neeto-ui-input__prefix{align-self:stretch;background-color:rgb(var(--neeto-ui-gray-200));margin-left:0!important;padding-left:.75rem;padding-right:.75rem}.neeto-molecules-product-embed-tab{gap:.5rem}.neeto-molecules-product-embed-tab .neeto-ui-tab{border-radius:var(--neeto-ui-btn-border-radius);color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-product-embed-tab .neeto-ui-tab:not(.active):hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-product-embed-tab .neeto-ui-tab.active{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-embed__left-sidebar{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto;
|
|
1344
|
+
var css = ".neeto-molecules-product-embed-size-input.neeto-ui-input__wrapper .neeto-ui-input__prefix{align-self:stretch;background-color:rgb(var(--neeto-ui-gray-200));margin-left:0!important;padding-left:.75rem;padding-right:.75rem}.neeto-molecules-product-embed-tab{gap:.5rem}.neeto-molecules-product-embed-tab .neeto-ui-tab{border-radius:var(--neeto-ui-btn-border-radius);color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-product-embed-tab .neeto-ui-tab:not(.active):hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-product-embed-tab .neeto-ui-tab.active{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-embed__left-sidebar{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto;width:100%}@media (min-width:768px){.neeto-molecules-embed__left-sidebar{border-right:1px solid rgb(var(--neeto-ui-gray-200));max-width:25rem}}@media (min-width:1024px){.neeto-molecules-embed__left-sidebar{max-width:30.3125rem}}.neeto-molecules-embed__code-block .neeto-molecules-code-block{font-size:.875rem;height:13.4375rem;margin-top:0!important}.neeto-molecules-embed__browser-preview{height:100%;min-height:18.75rem}.neeto-molecules-embed__browser-preview .neeto-molecules-browser-preview__body{position:relative}.neeto-molecules-embed__browser-preview .neeto-molecules-browser-preview__body iframe{height:100%;left:0;position:absolute;top:0;width:100%}.neeto-molecules-embed-landing-page__card{background-color:rgb(var(--neeto-ui-white))!important;border:1px solid rgb(var(--neeto-ui-gray-300))!important;border-radius:.75rem!important;outline:1px solid rgb(var(--neeto-ui-white))!important;padding:1.5rem!important;text-align:left!important;transition:all .3s!important}.neeto-molecules-embed-landing-page__card:hover{border-color:rgb(var(--neeto-ui-primary-500))!important;outline:1px solid rgb(var(--neeto-ui-primary-500))!important}";
|
|
743
1345
|
n(css,{});
|
|
744
1346
|
|
|
745
1347
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
746
1348
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
747
|
-
var
|
|
748
|
-
var
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
customEmbedScriptPath = _ref$customEmbedScrip === void 0 ? "" : _ref$customEmbedScrip,
|
|
752
|
-
_ref$customPreviewIfr = _ref.customPreviewIframeUrl,
|
|
753
|
-
customPreviewIframeUrl = _ref$customPreviewIfr === void 0 ? "" : _ref$customPreviewIfr,
|
|
754
|
-
_ref$goBackLink = _ref.goBackLink,
|
|
755
|
-
goBackLink = _ref$goBackLink === void 0 ? "" : _ref$goBackLink,
|
|
1349
|
+
var EmbedRenderer = function EmbedRenderer(_ref) {
|
|
1350
|
+
var className = _ref.className,
|
|
1351
|
+
customEmbedScriptPath = _ref.customEmbedScriptPath,
|
|
1352
|
+
customPreviewIframeUrl = _ref.customPreviewIframeUrl,
|
|
756
1353
|
id = _ref.id,
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
_ref$supportedLanguag = _ref.supportedLanguages,
|
|
768
|
-
supportedLanguages = _ref$supportedLanguag === void 0 ? ["html"] : _ref$supportedLanguag;
|
|
769
|
-
var supportedLanguagesTabs = filterBy({
|
|
770
|
-
key: function key(_key) {
|
|
771
|
-
return supportedLanguages === null || supportedLanguages === void 0 ? void 0 : supportedLanguages.includes(_key);
|
|
772
|
-
}
|
|
773
|
-
}, TABS);
|
|
1354
|
+
isQueryParamsEnabled = _ref.isQueryParamsEnabled,
|
|
1355
|
+
options = _ref.options,
|
|
1356
|
+
extraArgs = _ref.extraArgs,
|
|
1357
|
+
otherCustomizations = _ref.otherCustomizations,
|
|
1358
|
+
inlineWrapperStyle = _ref.inlineWrapperStyle,
|
|
1359
|
+
supportedLanguages = _ref.supportedLanguages,
|
|
1360
|
+
selectedEmbed = _ref.selectedEmbed;
|
|
1361
|
+
var _useTranslation = useTranslation(),
|
|
1362
|
+
t = _useTranslation.t;
|
|
1363
|
+
var location = useLocation();
|
|
774
1364
|
var _useState = useState(true),
|
|
775
1365
|
_useState2 = _slicedToArray(_useState, 2),
|
|
776
1366
|
isScriptLoading = _useState2[0],
|
|
777
1367
|
setIsScriptLoading = _useState2[1];
|
|
778
|
-
var _useState3 = useState(
|
|
779
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
780
|
-
tab = _useState4[0],
|
|
781
|
-
setTab = _useState4[1];
|
|
782
|
-
var _useState5 = useState(EMBED_OPTIONS.INLINE),
|
|
783
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
784
|
-
selectedOption = _useState6[0],
|
|
785
|
-
setSelectedOption = _useState6[1];
|
|
786
|
-
var _useState7 = useState(function () {
|
|
1368
|
+
var _useState3 = useState(function () {
|
|
787
1369
|
return buildDefaultCustomization(options);
|
|
788
1370
|
}),
|
|
789
|
-
|
|
790
|
-
customizations =
|
|
791
|
-
setCustomizations =
|
|
792
|
-
var
|
|
793
|
-
|
|
1371
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1372
|
+
customizations = _useState4[0],
|
|
1373
|
+
setCustomizations = _useState4[1];
|
|
1374
|
+
var description = customizations[selectedEmbed].description;
|
|
1375
|
+
var customization = customizations[selectedEmbed];
|
|
1376
|
+
var CustomizationComponent = EMBED_CUSTOMIZATION_COMPONENTS[selectedEmbed];
|
|
794
1377
|
var embedScriptLink = customEmbedScriptPath || "".concat(window.location.protocol, "//").concat(window.location.host, "/javascript/embed.js");
|
|
795
|
-
var code = generateCode({
|
|
796
|
-
id: id,
|
|
797
|
-
tab: tab,
|
|
798
|
-
type: selectedOption,
|
|
799
|
-
customization: customizations[selectedOption],
|
|
800
|
-
embedScriptLink: embedScriptLink,
|
|
801
|
-
extraArgs: extraArgs,
|
|
802
|
-
inlineWrapperStyle: inlineWrapperStyle
|
|
803
|
-
});
|
|
804
1378
|
var loadScript = function loadScript() {
|
|
805
1379
|
var script = document.createElement("script");
|
|
806
1380
|
script.id = SCRIPT_ID;
|
|
@@ -810,75 +1384,184 @@ var ProductEmbed = function ProductEmbed(_ref) {
|
|
|
810
1384
|
};
|
|
811
1385
|
var updateCustomization = function updateCustomization(props) {
|
|
812
1386
|
return setCustomizations(function (prevState) {
|
|
813
|
-
return _objectSpread(_objectSpread({}, prevState), {}, _defineProperty({},
|
|
1387
|
+
return _objectSpread(_objectSpread({}, prevState), {}, _defineProperty({}, selectedEmbed, mergeLeft(props, prevState[selectedEmbed])));
|
|
814
1388
|
});
|
|
815
1389
|
};
|
|
816
1390
|
useEffect(function () {
|
|
817
1391
|
var isScriptLoaded = document.getElementById(SCRIPT_ID);
|
|
818
1392
|
if (isScriptLoaded) setIsScriptLoading(false);else loadScript();
|
|
819
1393
|
}, []);
|
|
820
|
-
return /*#__PURE__*/jsxs(
|
|
1394
|
+
return /*#__PURE__*/jsxs(Container, {
|
|
821
1395
|
"data-testid": "embed-product",
|
|
822
|
-
className: classnames("neeto-molecules-embed flex w-full flex-grow flex-col md:flex-row", className),
|
|
1396
|
+
className: classnames("neeto-molecules-embed flex w-full flex-grow flex-col p-0 md:flex-row", className),
|
|
823
1397
|
children: [/*#__PURE__*/jsxs("div", {
|
|
824
|
-
className: "neeto-molecules-embed__left-sidebar",
|
|
825
|
-
children: [
|
|
1398
|
+
className: "neeto-molecules-embed__left-sidebar px-5 py-8 md:h-full md:overflow-y-auto md:px-10",
|
|
1399
|
+
children: [/*#__PURE__*/jsx(Button, {
|
|
826
1400
|
className: "mb-4",
|
|
827
|
-
"data-cy": "back-button",
|
|
828
|
-
"data-testid": "back-button",
|
|
1401
|
+
"data-cy": "back-to-embed-selection-button",
|
|
1402
|
+
"data-testid": "back-to-embed-selection-button",
|
|
829
1403
|
icon: LeftArrow,
|
|
830
1404
|
iconPosition: "left",
|
|
831
|
-
label: t("neetoMolecules.productEmbed.
|
|
1405
|
+
label: t("neetoMolecules.productEmbed.backToEmbedSelection"),
|
|
832
1406
|
size: "small",
|
|
833
1407
|
style: "link",
|
|
834
|
-
to:
|
|
835
|
-
}), /*#__PURE__*/jsx(
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
}), /*#__PURE__*/
|
|
840
|
-
className: "mt-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
1408
|
+
to: location.pathname
|
|
1409
|
+
}), /*#__PURE__*/jsx(Header, {
|
|
1410
|
+
className: "py-0",
|
|
1411
|
+
"data-testid": "".concat(hyphenate(selectedEmbed), "-embed-title"),
|
|
1412
|
+
title: EMBED_TITLES[selectedEmbed]
|
|
1413
|
+
}), description && /*#__PURE__*/jsx(Typography, {
|
|
1414
|
+
className: "mt-2",
|
|
1415
|
+
"data-cy": "".concat(hyphenate(selectedEmbed), "-description"),
|
|
1416
|
+
style: "body2",
|
|
1417
|
+
children: description
|
|
1418
|
+
}), /*#__PURE__*/jsx("div", {
|
|
1419
|
+
className: "mt-4 flex w-full flex-col gap-y-6",
|
|
1420
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
1421
|
+
className: "space-y-6",
|
|
1422
|
+
children: [/*#__PURE__*/jsx(Code, {
|
|
1423
|
+
customization: customization,
|
|
1424
|
+
embedScriptLink: embedScriptLink,
|
|
1425
|
+
extraArgs: extraArgs,
|
|
1426
|
+
id: id,
|
|
1427
|
+
inlineWrapperStyle: inlineWrapperStyle,
|
|
1428
|
+
selectedEmbed: selectedEmbed,
|
|
1429
|
+
supportedLanguages: supportedLanguages
|
|
1430
|
+
}), /*#__PURE__*/jsx(CustomizationComponent, {
|
|
1431
|
+
customization: customization,
|
|
1432
|
+
isQueryParamsEnabled: isQueryParamsEnabled,
|
|
1433
|
+
otherCustomizations: otherCustomizations,
|
|
1434
|
+
updateCustomization: updateCustomization
|
|
1435
|
+
})]
|
|
1436
|
+
})
|
|
852
1437
|
})]
|
|
1438
|
+
}), /*#__PURE__*/jsx("div", {
|
|
1439
|
+
className: "neeto-molecules-embed__preview neeto-ui-bg-gray-50 flex min-h-screen w-full min-w-0 flex-col gap-3 overflow-y-auto p-6 md:h-full md:min-h-0 md:flex-grow",
|
|
1440
|
+
children: /*#__PURE__*/jsx(Preview, {
|
|
1441
|
+
customPreviewIframeUrl: customPreviewIframeUrl,
|
|
1442
|
+
customization: customization,
|
|
1443
|
+
id: id,
|
|
1444
|
+
isScriptLoading: isScriptLoading,
|
|
1445
|
+
selectedEmbed: selectedEmbed
|
|
1446
|
+
})
|
|
1447
|
+
})]
|
|
1448
|
+
});
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
var EmbedSelector = function EmbedSelector(_ref) {
|
|
1452
|
+
var options = _ref.options,
|
|
1453
|
+
goBackLink = _ref.goBackLink,
|
|
1454
|
+
title = _ref.title;
|
|
1455
|
+
var _useTranslation = useTranslation(),
|
|
1456
|
+
t = _useTranslation.t;
|
|
1457
|
+
var history = useHistory();
|
|
1458
|
+
var location = useLocation();
|
|
1459
|
+
return /*#__PURE__*/jsxs(Container, {
|
|
1460
|
+
className: "neeto-molecules-embed-landing-page py-8",
|
|
1461
|
+
children: [goBackLink && /*#__PURE__*/jsx(Button, {
|
|
1462
|
+
className: "mb-4",
|
|
1463
|
+
"data-cy": "back-button",
|
|
1464
|
+
"data-testid": "back-button",
|
|
1465
|
+
icon: LeftArrow,
|
|
1466
|
+
iconPosition: "left",
|
|
1467
|
+
label: t("neetoMolecules.productEmbed.backToShare"),
|
|
1468
|
+
size: "small",
|
|
1469
|
+
style: "link",
|
|
1470
|
+
to: goBackLink
|
|
1471
|
+
}), /*#__PURE__*/jsx(Header, {
|
|
1472
|
+
className: "py-0",
|
|
1473
|
+
"data-testid": "embed-selector-header",
|
|
1474
|
+
title: t("neetoMolecules.productEmbed.title")
|
|
853
1475
|
}), /*#__PURE__*/jsxs("div", {
|
|
854
|
-
className: "neeto-molecules-
|
|
855
|
-
children: [/*#__PURE__*/jsx(
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
1476
|
+
className: "neeto-molecules-embed-landing-page__container mx-auto w-full max-w-5xl py-6 md:py-10",
|
|
1477
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
1478
|
+
className: "mb-2",
|
|
1479
|
+
style: "h2",
|
|
1480
|
+
children: title || t("neetoMolecules.productEmbed.embedSelectionTitle", {
|
|
1481
|
+
productName: globalProps.appName
|
|
1482
|
+
})
|
|
1483
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
1484
|
+
className: "mb-8",
|
|
1485
|
+
style: "body1",
|
|
1486
|
+
children: t("neetoMolecules.productEmbed.embedSelectionDescription")
|
|
1487
|
+
}), /*#__PURE__*/jsx("div", {
|
|
1488
|
+
className: "neeto-molecules-embed-landing-page__cards-wrapper grid w-full grid-cols-1 flex-wrap gap-6 md:grid-cols-3",
|
|
1489
|
+
children: Object.entries(options).map(function (_ref2) {
|
|
1490
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
1491
|
+
key = _ref3[0],
|
|
1492
|
+
_ref3$ = _ref3[1],
|
|
1493
|
+
label = _ref3$.label,
|
|
1494
|
+
description = _ref3$.description;
|
|
1495
|
+
var EmbedIcon = EMBED_ICONS[key];
|
|
1496
|
+
return /*#__PURE__*/jsxs("button", {
|
|
1497
|
+
className: "neeto-molecules-embed-landing-page__card w-full",
|
|
1498
|
+
"data-testid": "embed-selector-card-".concat(hyphenate(key)),
|
|
1499
|
+
onClick: handleMetaClick(history, "".concat(location.pathname, "?type=").concat(hyphenate(key))),
|
|
1500
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
1501
|
+
className: "neeto-molecules-embed-landing-page__card-icon mb-6 block",
|
|
1502
|
+
children: /*#__PURE__*/jsx(EmbedIcon, {
|
|
1503
|
+
className: "neeto-ui-text-gray-200 h-auto w-full max-w-72"
|
|
1504
|
+
})
|
|
1505
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
1506
|
+
className: "mb-2",
|
|
1507
|
+
style: "h4",
|
|
1508
|
+
children: label
|
|
1509
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
1510
|
+
style: "body2",
|
|
1511
|
+
children: description
|
|
1512
|
+
})]
|
|
1513
|
+
}, key);
|
|
1514
|
+
})
|
|
878
1515
|
})]
|
|
879
1516
|
})]
|
|
880
1517
|
});
|
|
881
1518
|
};
|
|
882
1519
|
|
|
1520
|
+
var ProductEmbed = function ProductEmbed(_ref) {
|
|
1521
|
+
var title = _ref.title,
|
|
1522
|
+
_ref$className = _ref.className,
|
|
1523
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
1524
|
+
_ref$customEmbedScrip = _ref.customEmbedScriptPath,
|
|
1525
|
+
customEmbedScriptPath = _ref$customEmbedScrip === void 0 ? "" : _ref$customEmbedScrip,
|
|
1526
|
+
_ref$customPreviewIfr = _ref.customPreviewIframeUrl,
|
|
1527
|
+
customPreviewIframeUrl = _ref$customPreviewIfr === void 0 ? "" : _ref$customPreviewIfr,
|
|
1528
|
+
_ref$goBackLink = _ref.goBackLink,
|
|
1529
|
+
goBackLink = _ref$goBackLink === void 0 ? "" : _ref$goBackLink,
|
|
1530
|
+
id = _ref.id,
|
|
1531
|
+
_ref$isQueryParamsEna = _ref.isQueryParamsEnabled,
|
|
1532
|
+
isQueryParamsEnabled = _ref$isQueryParamsEna === void 0 ? false : _ref$isQueryParamsEna,
|
|
1533
|
+
_ref$options = _ref.options,
|
|
1534
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
1535
|
+
_ref$extraArgs = _ref.extraArgs,
|
|
1536
|
+
extraArgs = _ref$extraArgs === void 0 ? {} : _ref$extraArgs,
|
|
1537
|
+
_ref$otherCustomizati = _ref.otherCustomizations,
|
|
1538
|
+
otherCustomizations = _ref$otherCustomizati === void 0 ? noop : _ref$otherCustomizati,
|
|
1539
|
+
_ref$inlineWrapperSty = _ref.inlineWrapperStyle,
|
|
1540
|
+
inlineWrapperStyle = _ref$inlineWrapperSty === void 0 ? "" : _ref$inlineWrapperSty,
|
|
1541
|
+
_ref$supportedLanguag = _ref.supportedLanguages,
|
|
1542
|
+
supportedLanguages = _ref$supportedLanguag === void 0 ? ["html"] : _ref$supportedLanguag;
|
|
1543
|
+
var _useLocation = useLocation(),
|
|
1544
|
+
search = _useLocation.search;
|
|
1545
|
+
var queryParams = new URLSearchParams(search);
|
|
1546
|
+
var selectedEmbed = toCamelCasedString(queryParams.get("type"));
|
|
1547
|
+
return selectedEmbed ? /*#__PURE__*/jsx(EmbedRenderer, {
|
|
1548
|
+
className: className,
|
|
1549
|
+
customEmbedScriptPath: customEmbedScriptPath,
|
|
1550
|
+
customPreviewIframeUrl: customPreviewIframeUrl,
|
|
1551
|
+
extraArgs: extraArgs,
|
|
1552
|
+
id: id,
|
|
1553
|
+
inlineWrapperStyle: inlineWrapperStyle,
|
|
1554
|
+
isQueryParamsEnabled: isQueryParamsEnabled,
|
|
1555
|
+
options: options,
|
|
1556
|
+
otherCustomizations: otherCustomizations,
|
|
1557
|
+
selectedEmbed: selectedEmbed,
|
|
1558
|
+
supportedLanguages: supportedLanguages
|
|
1559
|
+
}) : /*#__PURE__*/jsx(EmbedSelector, {
|
|
1560
|
+
goBackLink: goBackLink,
|
|
1561
|
+
options: options,
|
|
1562
|
+
title: title
|
|
1563
|
+
});
|
|
1564
|
+
};
|
|
1565
|
+
|
|
883
1566
|
export { ProductEmbed as default };
|
|
884
1567
|
//# sourceMappingURL=ProductEmbed.js.map
|