@botonic/plugin-flow-builder 0.25.0-alpha.3 → 0.25.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/lib/cjs/action/index.js +26 -21
  2. package/lib/cjs/action/index.js.map +1 -1
  3. package/lib/cjs/action/intent.js +10 -6
  4. package/lib/cjs/action/intent.js.map +1 -1
  5. package/lib/cjs/action/keyword.js +9 -5
  6. package/lib/cjs/action/keyword.js.map +1 -1
  7. package/lib/cjs/action/knowledge-bases.js +15 -11
  8. package/lib/cjs/action/knowledge-bases.js.map +1 -1
  9. package/lib/cjs/action/tracking.js +11 -7
  10. package/lib/cjs/action/tracking.js.map +1 -1
  11. package/lib/cjs/action/user-input.js +11 -7
  12. package/lib/cjs/action/user-input.js.map +1 -1
  13. package/lib/cjs/api.js +19 -15
  14. package/lib/cjs/api.js.map +1 -1
  15. package/lib/cjs/constants.js +6 -3
  16. package/lib/cjs/constants.js.map +1 -1
  17. package/lib/cjs/content-fields/content-fields-base.js +5 -1
  18. package/lib/cjs/content-fields/content-fields-base.js.map +1 -1
  19. package/lib/cjs/content-fields/flow-button.js +14 -10
  20. package/lib/cjs/content-fields/flow-button.js.map +1 -1
  21. package/lib/cjs/content-fields/flow-carousel.js +11 -7
  22. package/lib/cjs/content-fields/flow-carousel.js.map +1 -1
  23. package/lib/cjs/content-fields/flow-element.js +11 -7
  24. package/lib/cjs/content-fields/flow-element.js.map +1 -1
  25. package/lib/cjs/content-fields/flow-handoff.js +17 -13
  26. package/lib/cjs/content-fields/flow-handoff.js.map +1 -1
  27. package/lib/cjs/content-fields/flow-image.js +9 -5
  28. package/lib/cjs/content-fields/flow-image.js.map +1 -1
  29. package/lib/cjs/content-fields/flow-text.js +16 -12
  30. package/lib/cjs/content-fields/flow-text.js.map +1 -1
  31. package/lib/cjs/content-fields/flow-video.js +9 -5
  32. package/lib/cjs/content-fields/flow-video.js.map +1 -1
  33. package/lib/cjs/content-fields/hubtype-fields/bot-action.js +2 -1
  34. package/lib/cjs/content-fields/hubtype-fields/button.js +2 -1
  35. package/lib/cjs/content-fields/hubtype-fields/carousel.js +2 -1
  36. package/lib/cjs/content-fields/hubtype-fields/common.js +2 -1
  37. package/lib/cjs/content-fields/hubtype-fields/fallback.js +2 -1
  38. package/lib/cjs/content-fields/hubtype-fields/function.js +5 -2
  39. package/lib/cjs/content-fields/hubtype-fields/function.js.map +1 -1
  40. package/lib/cjs/content-fields/hubtype-fields/go-to-flow.js +2 -1
  41. package/lib/cjs/content-fields/hubtype-fields/handoff.js +2 -1
  42. package/lib/cjs/content-fields/hubtype-fields/image.js +2 -1
  43. package/lib/cjs/content-fields/hubtype-fields/index.js +21 -18
  44. package/lib/cjs/content-fields/hubtype-fields/index.js.map +1 -1
  45. package/lib/cjs/content-fields/hubtype-fields/intent.js +2 -1
  46. package/lib/cjs/content-fields/hubtype-fields/keyword.js +2 -1
  47. package/lib/cjs/content-fields/hubtype-fields/node-types.js +9 -6
  48. package/lib/cjs/content-fields/hubtype-fields/node-types.js.map +1 -1
  49. package/lib/cjs/content-fields/hubtype-fields/nodes.js +2 -1
  50. package/lib/cjs/content-fields/hubtype-fields/payload.js +2 -1
  51. package/lib/cjs/content-fields/hubtype-fields/text.js +2 -1
  52. package/lib/cjs/content-fields/hubtype-fields/url.js +2 -1
  53. package/lib/cjs/content-fields/hubtype-fields/video.js +2 -1
  54. package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.js +2 -1
  55. package/lib/cjs/content-fields/index.js +21 -10
  56. package/lib/cjs/content-fields/index.js.map +1 -1
  57. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js +8 -4
  58. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +1 -1
  59. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +8 -4
  60. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +1 -1
  61. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +11 -7
  62. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +1 -1
  63. package/lib/cjs/functions/conditional-provider.js +5 -1
  64. package/lib/cjs/functions/conditional-provider.js.map +1 -1
  65. package/lib/cjs/functions/conditional-queue-status.js +12 -7
  66. package/lib/cjs/functions/conditional-queue-status.js.map +1 -1
  67. package/lib/cjs/functions/index.js +8 -5
  68. package/lib/cjs/functions/index.js.map +1 -1
  69. package/lib/cjs/helpers.js +5 -1
  70. package/lib/cjs/helpers.js.map +1 -1
  71. package/lib/cjs/index.js +39 -36
  72. package/lib/cjs/index.js.map +1 -1
  73. package/lib/cjs/types.js +5 -2
  74. package/lib/cjs/types.js.map +1 -1
  75. package/lib/cjs/utils.js +8 -4
  76. package/lib/cjs/utils.js.map +1 -1
  77. package/package.json +2 -2
@@ -1,8 +1,11 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Element, Pic, Subtitle, Title } from '@botonic/react';
3
- import { ContentFieldsBase } from './content-fields-base';
4
- import { FlowButton } from './flow-button';
5
- export class FlowElement extends ContentFieldsBase {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowElement = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("@botonic/react");
6
+ const content_fields_base_1 = require("./content-fields-base");
7
+ const flow_button_1 = require("./flow-button");
8
+ class FlowElement extends content_fields_base_1.ContentFieldsBase {
6
9
  constructor() {
7
10
  super(...arguments);
8
11
  this.title = '';
@@ -15,12 +18,13 @@ export class FlowElement extends ContentFieldsBase {
15
18
  newElement.title = this.getTextByLocale(locale, component.title);
16
19
  newElement.subtitle = this.getTextByLocale(locale, component.subtitle);
17
20
  newElement.image = this.getImageByLocale(locale, component.image);
18
- newElement.button = FlowButton.fromHubtypeCMS(component.button, locale, cmsApi);
21
+ newElement.button = flow_button_1.FlowButton.fromHubtypeCMS(component.button, locale, cmsApi);
19
22
  return newElement;
20
23
  }
21
24
  toBotonic(parentId) {
22
25
  var _a;
23
- return (_jsxs(Element, { children: [_jsx(Pic, { src: this.image }), _jsx(Title, { children: this.title }), _jsx(Subtitle, { children: this.subtitle }), (_a = this.button) === null || _a === void 0 ? void 0 : _a.renderButton(0)] }, `${parentId}-${this.id}`));
26
+ return ((0, jsx_runtime_1.jsxs)(react_1.Element, { children: [(0, jsx_runtime_1.jsx)(react_1.Pic, { src: this.image }), (0, jsx_runtime_1.jsx)(react_1.Title, { children: this.title }), (0, jsx_runtime_1.jsx)(react_1.Subtitle, { children: this.subtitle }), (_a = this.button) === null || _a === void 0 ? void 0 : _a.renderButton(0)] }, `${parentId}-${this.id}`));
24
27
  }
25
28
  }
29
+ exports.FlowElement = FlowElement;
26
30
  //# sourceMappingURL=flow-element.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-element.js","sourceRoot":"","sources":["../../../src/content-fields/flow-element.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAI9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,MAAM,OAAO,WAAY,SAAQ,iBAAiB;IAAlD;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,aAAQ,GAAG,EAAE,CAAA;QAEb,UAAK,GAAG,EAAE,CAAA;QACV,WAAM,GAAG,KAAK,CAAA;IA6BvB,CAAC;IA3BC,MAAM,CAAC,cAAc,CACnB,SAA4B,EAC5B,MAAc,EACd,MAAsB;QAEtB,MAAM,UAAU,GAAG,IAAI,WAAW,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAChD,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS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AAS,CAAC,KAAK,CAAC,CAAA;QAChE,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;QACtE,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;QACjE,UAAU,CAAC,MAAM,GAAG,wBAAU,CAAC,cAAc,CAC3C,SAAS,CAAC,MAAM,EAChB,MAAM,EACN,MAAM,CACP,CAAA;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;IAED,SAAS,CAAC,QAAgB;;QACxB,OAAO,CACL,wBAAC,eAAO,eACN,uBAAC,WAAG,IAAC,GAAG,EAAE,IAAI,CAAC,KAAK,GAAI,EACxB,uBAAC,aAAK,cAAE,IAAI,CAAC,KAAK,GAAS,EAC3B,uBAAC,gBAAQ,cAAE,IAAI,CAAC,QAAQ,GAAY,EACnC,MAAA,IAAI,CAAC,MAAM,0CAAE,YAAY,CAAC,CAAC,CAAC,KAJjB,GAAG,QAAQ,IAAI,IAAI,CAAC,EAAE,EAAE,CAK5B,CACX,CAAA;IACH,CAAC;CACF;AAlCD,kCAkCC"}
@@ -1,11 +1,14 @@
1
- import { __awaiter } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { HandOffBuilder } from '@botonic/core';
4
- import { WebchatSettings } from '@botonic/react';
5
- import { EventName, trackEvent } from '../action/tracking';
6
- import { getQueueAvailability } from '../functions/conditional-queue-status';
7
- import { ContentFieldsBase } from './content-fields-base';
8
- export class FlowHandoff extends ContentFieldsBase {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowHandoff = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const core_1 = require("@botonic/core");
7
+ const react_1 = require("@botonic/react");
8
+ const tracking_1 = require("../action/tracking");
9
+ const conditional_queue_status_1 = require("../functions/conditional-queue-status");
10
+ const content_fields_base_1 = require("./content-fields-base");
11
+ class FlowHandoff extends content_fields_base_1.ContentFieldsBase {
9
12
  static fromHubtypeCMS(cmsHandoff, locale, cmsApi) {
10
13
  const newHandoff = new FlowHandoff(cmsHandoff.id);
11
14
  newHandoff.code = cmsHandoff.code;
@@ -27,29 +30,30 @@ export class FlowHandoff extends ContentFieldsBase {
27
30
  return undefined;
28
31
  }
29
32
  doHandoff(request) {
30
- return __awaiter(this, void 0, void 0, function* () {
33
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
34
  // @ts-ignore
32
- const handOffBuilder = new HandOffBuilder(request.session);
35
+ const handOffBuilder = new core_1.HandOffBuilder(request.session);
33
36
  handOffBuilder.withAutoAssignOnWaiting(this.handoffAutoAssign);
34
37
  if (this.onFinishPayload) {
35
38
  handOffBuilder.withOnFinishPayload(this.onFinishPayload);
36
39
  }
37
40
  if (this.queue) {
38
- const availabilityData = yield getQueueAvailability(this.queue.id);
41
+ const availabilityData = yield (0, conditional_queue_status_1.getQueueAvailability)(this.queue.id);
39
42
  const eventArgs = {
40
43
  queue_open: availabilityData.open,
41
44
  queue_id: this.queue.id,
42
45
  available_agents: availabilityData.available_agents > 0,
43
46
  threshold_reached: availabilityData.availability_threshold_waiting_cases > 0,
44
47
  };
45
- yield trackEvent(request, EventName.handoffSuccess, eventArgs);
48
+ yield (0, tracking_1.trackEvent)(request, tracking_1.EventName.handoffSuccess, eventArgs);
46
49
  handOffBuilder.withQueue(this.queue.id);
47
50
  yield handOffBuilder.handOff();
48
51
  }
49
52
  });
50
53
  }
51
54
  toBotonic() {
52
- return _jsx(WebchatSettings, { enableUserInput: true });
55
+ return (0, jsx_runtime_1.jsx)(react_1.WebchatSettings, { enableUserInput: true });
53
56
  }
54
57
  }
58
+ exports.FlowHandoff = FlowHandoff;
55
59
  //# sourceMappingURL=flow-handoff.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-handoff.js","sourceRoot":"","sources":["../../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,CAAA;YAC9D,IAAI,IAAI,CAAC,eAAe,EAAE;gBACxB,cAAc,CAAC,mBAAmB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;aACzD;YACD,IAAI,IAAI,CAAC,KAAK,EAAE;gBACd,MAAM,gBAAgB,GAAG,MAAM,IAAA,+CAAoB,EAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;gBAClE,MAAM,SAAS,GAAG;oBAChB,UAAU,EAAE,gBAAgB,CAAC,IAAI;oBACjC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE;oBACvB,gBAAgB,EAAE,gBAAgB,CAAC,gBAAgB,GAAG,CAAC;oBACvD,iBAAiB,EACf,gBAAgB,CAAC,oCAAoC,GAAG,CAAC;iBAC5D,CAAA;gBACD,MAAM,IAAA,qBAAU,EAAC,OAAO,EAAE,oBAAS,CAAC,cAAc,EAAE,SAAS,CAAC,CAAA;gBAE9D,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;gBACvC,MAAM,cAAc,CAAC,OAAO,EAAE,CAAA;aAC/B;QACH,CAAC;KAAA;IAED,SAAS;QACP,OAAO,uBAAC,uBAAe,IAAC,eAAe,EAAE,IAAI,GAAI,CAAA;IACnD,CAAC;CACF;AAtED,kCAsEC"}
@@ -1,7 +1,10 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Image } from '@botonic/react';
3
- import { ContentFieldsBase } from './content-fields-base';
4
- export class FlowImage extends ContentFieldsBase {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowImage = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("@botonic/react");
6
+ const content_fields_base_1 = require("./content-fields-base");
7
+ class FlowImage extends content_fields_base_1.ContentFieldsBase {
5
8
  constructor() {
6
9
  super(...arguments);
7
10
  this.src = '';
@@ -14,7 +17,8 @@ export class FlowImage extends ContentFieldsBase {
14
17
  return newImage;
15
18
  }
16
19
  toBotonic(id) {
17
- return _jsx(Image, { src: this.src }, id);
20
+ return (0, jsx_runtime_1.jsx)(react_1.Image, { src: this.src }, id);
18
21
  }
19
22
  }
23
+ exports.FlowImage = FlowImage;
20
24
  //# sourceMappingURL=flow-image.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-image.js","sourceRoot":"","sources":["../../../src/content-fields/flow-image.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAGtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAGzD,MAAM,OAAO,SAAU,SAAQ,iBAAiB;IAAhD;;QACS,QAAG,GAAG,EAAE,CAAA;QACR,SAAI,GAAG,EAAE,CAAA;IAYlB,CAAC;IAVC,MAAM,CAAC,cAAc,CAAC,SAAsB,EAAE,MAAc;QAC1D,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC5C,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;QAC9B,QAAQ,CAAC,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACrE,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,KAAC,KAAK,IAAU,GAAG,EAAE,IAAI,CAAC,GAAG,IAAjB,EAAE,CAAmB,CAAA;IAC1C,CAAC;CACF"}
1
+ {"version":3,"file":"flow-image.js","sourceRoot":"","sources":["../../../src/content-fields/flow-image.tsx"],"names":[],"mappings":";;;;AAAA,0CAAsC;AAGtC,+DAAyD;AAGzD,MAAa,SAAU,SAAQ,uCAAiB;IAAhD;;QACS,QAAG,GAAG,EAAE,CAAA;QACR,SAAI,GAAG,EAAE,CAAA;IAYlB,CAAC;IAVC,MAAM,CAAC,cAAc,CAAC,SAAsB,EAAE,MAAc;QAC1D,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC5C,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;QAC9B,QAAQ,CAAC,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACrE,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,uBAAC,aAAK,IAAU,GAAG,EAAE,IAAI,CAAC,GAAG,IAAjB,EAAE,CAAmB,CAAA;IAC1C,CAAC;CACF;AAdD,8BAcC"}
@@ -1,27 +1,30 @@
1
- import { jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text } from '@botonic/react';
3
- import { VARIABLE_REGEX } from '../constants';
4
- import { ContentFieldsBase } from './content-fields-base';
5
- import { FlowButton } from './flow-button';
6
- import { HtButtonStyle } from './hubtype-fields';
7
- export class FlowText extends ContentFieldsBase {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowText = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("@botonic/react");
6
+ const constants_1 = require("../constants");
7
+ const content_fields_base_1 = require("./content-fields-base");
8
+ const flow_button_1 = require("./flow-button");
9
+ const hubtype_fields_1 = require("./hubtype-fields");
10
+ class FlowText extends content_fields_base_1.ContentFieldsBase {
8
11
  constructor() {
9
12
  super(...arguments);
10
13
  this.text = '';
11
14
  this.code = '';
12
15
  this.buttons = [];
13
- this.buttonStyle = HtButtonStyle.BUTTON;
16
+ this.buttonStyle = hubtype_fields_1.HtButtonStyle.BUTTON;
14
17
  }
15
18
  static fromHubtypeCMS(cmsText, locale, cmsApi) {
16
19
  const newText = new FlowText(cmsText.id);
17
20
  newText.code = cmsText.code;
18
- newText.buttonStyle = cmsText.content.buttons_style || HtButtonStyle.BUTTON;
21
+ newText.buttonStyle = cmsText.content.buttons_style || hubtype_fields_1.HtButtonStyle.BUTTON;
19
22
  newText.text = this.replaceVariables(this.getTextByLocale(locale, cmsText.content.text), cmsApi.request.session.user.extra_data);
20
- newText.buttons = cmsText.content.buttons.map(button => FlowButton.fromHubtypeCMS(button, locale, cmsApi));
23
+ newText.buttons = cmsText.content.buttons.map(button => flow_button_1.FlowButton.fromHubtypeCMS(button, locale, cmsApi));
21
24
  return newText;
22
25
  }
23
26
  static replaceVariables(text, extraData) {
24
- const matches = text.match(VARIABLE_REGEX);
27
+ const matches = text.match(constants_1.VARIABLE_REGEX);
25
28
  let replacedText = text;
26
29
  if (matches && extraData) {
27
30
  matches.forEach(match => {
@@ -34,7 +37,8 @@ export class FlowText extends ContentFieldsBase {
34
37
  return replacedText;
35
38
  }
36
39
  toBotonic(id) {
37
- return (_jsxs(Text, { children: [this.text, this.buttons.map((button, buttonIndex) => button.renderButton(buttonIndex, this.buttonStyle))] }, id));
40
+ return ((0, jsx_runtime_1.jsxs)(react_1.Text, { children: [this.text, this.buttons.map((button, buttonIndex) => button.renderButton(buttonIndex, this.buttonStyle))] }, id));
38
41
  }
39
42
  }
43
+ exports.FlowText = FlowText;
40
44
  //# sourceMappingURL=flow-text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-text.js","sourceRoot":"","sources":["../../../src/content-fields/flow-text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAIrC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAc,MAAM,kBAAkB,CAAA;AAE5D,MAAM,OAAO,QAAS,SAAQ,iBAAiB;IAA/C;;QACS,SAAI,GAAG,EAAE,CAAA;QACT,SAAI,GAAG,EAAE,CAAA;QAC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AAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CACrD,wBAAU,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAClD,CAAA;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;IAED,MAAM,CAAC,gBAAgB,CACrB,IAAY,EACZ,SAA+B;QAE/B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,0BAAc,CAAC,CAAA;QAE1C,IAAI,YAAY,GAAG,IAAI,CAAA;QACvB,IAAI,OAAO,IAAI,SAAS,EAAE;YACxB,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;;gBACtB,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;gBACnC,MAAM,KAAK,GAAG,MAAA,SAAS,CAAC,QAAQ,CAAC,mCAAI,KAAK,CAAA;gBAC1C,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;YACnD,CAAC,CAAC,CAAA;SACH;QAED,OAAO,YAAY,CAAA;IACrB,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,CACL,wBAAC,YAAI,eACF,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CACxC,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CACnD,KAJQ,EAAE,CAKN,CACR,CAAA;IACH,CAAC;CACF;AApDD,4BAoDC"}
@@ -1,7 +1,10 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Video } from '@botonic/react';
3
- import { ContentFieldsBase } from './content-fields-base';
4
- export class FlowVideo extends ContentFieldsBase {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowVideo = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("@botonic/react");
6
+ const content_fields_base_1 = require("./content-fields-base");
7
+ class FlowVideo extends content_fields_base_1.ContentFieldsBase {
5
8
  constructor() {
6
9
  super(...arguments);
7
10
  this.src = '';
@@ -14,7 +17,8 @@ export class FlowVideo extends ContentFieldsBase {
14
17
  return newVideo;
15
18
  }
16
19
  toBotonic(id) {
17
- return _jsx(Video, { src: this.src }, id);
20
+ return (0, jsx_runtime_1.jsx)(react_1.Video, { src: this.src }, id);
18
21
  }
19
22
  }
23
+ exports.FlowVideo = FlowVideo;
20
24
  //# sourceMappingURL=flow-video.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-video.js","sourceRoot":"","sources":["../../../src/content-fields/flow-video.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAGtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAGzD,MAAM,OAAO,SAAU,SAAQ,iBAAiB;IAAhD;;QACS,QAAG,GAAG,EAAE,CAAA;QACR,SAAI,GAAG,EAAE,CAAA;IAYlB,CAAC;IAVC,MAAM,CAAC,cAAc,CAAC,SAAsB,EAAE,MAAc;QAC1D,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC5C,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;QAC9B,QAAQ,CAAC,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACrE,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,KAAC,KAAK,IAAU,GAAG,EAAE,IAAI,CAAC,GAAG,IAAjB,EAAE,CAAmB,CAAA;IAC1C,CAAC;CACF"}
1
+ {"version":3,"file":"flow-video.js","sourceRoot":"","sources":["../../../src/content-fields/flow-video.tsx"],"names":[],"mappings":";;;;AAAA,0CAAsC;AAGtC,+DAAyD;AAGzD,MAAa,SAAU,SAAQ,uCAAiB;IAAhD;;QACS,QAAG,GAAG,EAAE,CAAA;QACR,SAAI,GAAG,EAAE,CAAA;IAYlB,CAAC;IAVC,MAAM,CAAC,cAAc,CAAC,SAAsB,EAAE,MAAc;QAC1D,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC5C,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;QAC9B,QAAQ,CAAC,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACrE,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,uBAAC,aAAK,IAAU,GAAG,EAAE,IAAI,CAAC,GAAG,IAAjB,EAAE,CAAmB,CAAA;IAC1C,CAAC;CACF;AAdD,8BAcC"}
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=bot-action.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=button.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=carousel.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=common.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=fallback.js.map
@@ -1,7 +1,10 @@
1
- export var HtArgumentType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HtArgumentType = void 0;
4
+ var HtArgumentType;
2
5
  (function (HtArgumentType) {
3
6
  HtArgumentType["NUMBER"] = "number";
4
7
  HtArgumentType["STRING"] = "string";
5
8
  HtArgumentType["JSON"] = "json";
6
- })(HtArgumentType || (HtArgumentType = {}));
9
+ })(HtArgumentType = exports.HtArgumentType || (exports.HtArgumentType = {}));
7
10
  //# sourceMappingURL=function.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"function.js","sourceRoot":"","sources":["../../../../src/content-fields/hubtype-fields/function.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB"}
1
+ {"version":3,"file":"function.js","sourceRoot":"","sources":["../../../../src/content-fields/hubtype-fields/function.ts"],"names":[],"mappings":";;;AAGA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=go-to-flow.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=handoff.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=image.js.map
@@ -1,19 +1,22 @@
1
- export * from './bot-action';
2
- export * from './button';
3
- export * from './carousel';
4
- export * from './common';
5
- export * from './fallback';
6
- export * from './function';
7
- export * from './go-to-flow';
8
- export * from './handoff';
9
- export * from './image';
10
- export * from './intent';
11
- export * from './keyword';
12
- export * from './node-types';
13
- export * from './nodes';
14
- export * from './payload';
15
- export * from './text';
16
- export * from './url';
17
- export * from './video';
18
- export * from './whatsapp-button-list';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./bot-action"), exports);
5
+ tslib_1.__exportStar(require("./button"), exports);
6
+ tslib_1.__exportStar(require("./carousel"), exports);
7
+ tslib_1.__exportStar(require("./common"), exports);
8
+ tslib_1.__exportStar(require("./fallback"), exports);
9
+ tslib_1.__exportStar(require("./function"), exports);
10
+ tslib_1.__exportStar(require("./go-to-flow"), exports);
11
+ tslib_1.__exportStar(require("./handoff"), exports);
12
+ tslib_1.__exportStar(require("./image"), exports);
13
+ tslib_1.__exportStar(require("./intent"), exports);
14
+ tslib_1.__exportStar(require("./keyword"), exports);
15
+ tslib_1.__exportStar(require("./node-types"), exports);
16
+ tslib_1.__exportStar(require("./nodes"), exports);
17
+ tslib_1.__exportStar(require("./payload"), exports);
18
+ tslib_1.__exportStar(require("./text"), exports);
19
+ tslib_1.__exportStar(require("./url"), exports);
20
+ tslib_1.__exportStar(require("./video"), exports);
21
+ tslib_1.__exportStar(require("./whatsapp-button-list"), exports);
19
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/content-fields/hubtype-fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/content-fields/hubtype-fields/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,mDAAwB;AACxB,qDAA0B;AAC1B,mDAAwB;AACxB,qDAA0B;AAC1B,qDAA0B;AAC1B,uDAA4B;AAC5B,oDAAyB;AACzB,kDAAuB;AACvB,mDAAwB;AACxB,oDAAyB;AACzB,uDAA4B;AAC5B,kDAAuB;AACvB,oDAAyB;AACzB,iDAAsB;AACtB,gDAAqB;AACrB,kDAAuB;AACvB,iEAAsC"}
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=intent.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=keyword.js.map
@@ -1,4 +1,7 @@
1
- export var HtNodeWithContentType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HtButtonStyle = exports.HtNodeWithoutContentType = exports.HtNodeWithContentType = void 0;
4
+ var HtNodeWithContentType;
2
5
  (function (HtNodeWithContentType) {
3
6
  HtNodeWithContentType["CAROUSEL"] = "carousel";
4
7
  HtNodeWithContentType["HANDOFF"] = "handoff";
@@ -10,17 +13,17 @@ export var HtNodeWithContentType;
10
13
  HtNodeWithContentType["FALLBACK"] = "fallback";
11
14
  HtNodeWithContentType["VIDEO"] = "video";
12
15
  HtNodeWithContentType["WHATSAPP_BUTTON_LIST"] = "whatsapp-button-list";
13
- })(HtNodeWithContentType || (HtNodeWithContentType = {}));
14
- export var HtNodeWithoutContentType;
16
+ })(HtNodeWithContentType = exports.HtNodeWithContentType || (exports.HtNodeWithContentType = {}));
17
+ var HtNodeWithoutContentType;
15
18
  (function (HtNodeWithoutContentType) {
16
19
  HtNodeWithoutContentType["URL"] = "url";
17
20
  HtNodeWithoutContentType["PAYLOAD"] = "payload";
18
21
  HtNodeWithoutContentType["GO_TO_FLOW"] = "go-to-flow";
19
22
  HtNodeWithoutContentType["BOT_ACTION"] = "bot-action";
20
- })(HtNodeWithoutContentType || (HtNodeWithoutContentType = {}));
21
- export var HtButtonStyle;
23
+ })(HtNodeWithoutContentType = exports.HtNodeWithoutContentType || (exports.HtNodeWithoutContentType = {}));
24
+ var HtButtonStyle;
22
25
  (function (HtButtonStyle) {
23
26
  HtButtonStyle["BUTTON"] = "button";
24
27
  HtButtonStyle["QUICK_REPLY"] = "quick-reply";
25
- })(HtButtonStyle || (HtButtonStyle = {}));
28
+ })(HtButtonStyle = exports.HtButtonStyle || (exports.HtButtonStyle = {}));
26
29
  //# sourceMappingURL=node-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-types.js","sourceRoot":"","sources":["../../../../src/content-fields/hubtype-fields/node-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,sEAA6C,CAAA;AAC/C,CAAC,EAXW,qBAAqB,KAArB,qBAAqB,QAWhC;AAED,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,uCAAW,CAAA;IACX,+CAAmB,CAAA;IACnB,qDAAyB,CAAA;IACzB,qDAAyB,CAAA;AAC3B,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAED,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,4CAA2B,CAAA;AAC7B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
1
+ {"version":3,"file":"node-types.js","sourceRoot":"","sources":["../../../../src/content-fields/hubtype-fields/node-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,sEAA6C,CAAA;AAC/C,CAAC,EAXW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAWhC;AAED,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,uCAAW,CAAA;IACX,+CAAmB,CAAA;IACnB,qDAAyB,CAAA;IACzB,qDAAyB,CAAA;AAC3B,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,4CAA2B,CAAA;AAC7B,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=nodes.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=payload.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=text.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=url.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=video.js.map
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  //# sourceMappingURL=whatsapp-button-list.js.map
@@ -1,11 +1,22 @@
1
- import { FlowCarousel } from './flow-carousel';
2
- import { FlowImage } from './flow-image';
3
- import { FlowText } from './flow-text';
4
- import { FlowVideo } from './flow-video';
5
- import { FlowWhatsappButtonList } from './whatsapp-button-list/flow-whatsapp-button-list';
6
- export { ContentFieldsBase } from './content-fields-base';
7
- export { FlowButton } from './flow-button';
8
- export { FlowElement } from './flow-element';
9
- export { FlowCarousel, FlowImage, FlowText, FlowVideo, FlowWhatsappButtonList };
10
- export { FlowHandoff } from './flow-handoff';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowHandoff = exports.FlowWhatsappButtonList = exports.FlowVideo = exports.FlowText = exports.FlowImage = exports.FlowCarousel = exports.FlowElement = exports.FlowButton = exports.ContentFieldsBase = void 0;
4
+ const flow_carousel_1 = require("./flow-carousel");
5
+ Object.defineProperty(exports, "FlowCarousel", { enumerable: true, get: function () { return flow_carousel_1.FlowCarousel; } });
6
+ const flow_image_1 = require("./flow-image");
7
+ Object.defineProperty(exports, "FlowImage", { enumerable: true, get: function () { return flow_image_1.FlowImage; } });
8
+ const flow_text_1 = require("./flow-text");
9
+ Object.defineProperty(exports, "FlowText", { enumerable: true, get: function () { return flow_text_1.FlowText; } });
10
+ const flow_video_1 = require("./flow-video");
11
+ Object.defineProperty(exports, "FlowVideo", { enumerable: true, get: function () { return flow_video_1.FlowVideo; } });
12
+ const flow_whatsapp_button_list_1 = require("./whatsapp-button-list/flow-whatsapp-button-list");
13
+ Object.defineProperty(exports, "FlowWhatsappButtonList", { enumerable: true, get: function () { return flow_whatsapp_button_list_1.FlowWhatsappButtonList; } });
14
+ var content_fields_base_1 = require("./content-fields-base");
15
+ Object.defineProperty(exports, "ContentFieldsBase", { enumerable: true, get: function () { return content_fields_base_1.ContentFieldsBase; } });
16
+ var flow_button_1 = require("./flow-button");
17
+ Object.defineProperty(exports, "FlowButton", { enumerable: true, get: function () { return flow_button_1.FlowButton; } });
18
+ var flow_element_1 = require("./flow-element");
19
+ Object.defineProperty(exports, "FlowElement", { enumerable: true, get: function () { return flow_element_1.FlowElement; } });
20
+ var flow_handoff_1 = require("./flow-handoff");
21
+ Object.defineProperty(exports, "FlowHandoff", { enumerable: true, get: function () { return flow_handoff_1.FlowHandoff; } });
11
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/content-fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAA;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/content-fields/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAUrC,6FAVA,4BAAY,OAUA;AARrB,6CAAwC;AAQjB,0FARd,sBAAS,OAQc;AAPhC,2CAAsC;AAOJ,yFAPzB,oBAAQ,OAOyB;AAN1C,6CAAwC;AAMI,0FANnC,sBAAS,OAMmC;AALrD,gGAAyF;AAKlC,uGAL9C,kDAAsB,OAK8C;AAH7E,6DAAyD;AAAhD,wHAAA,iBAAiB,OAAA;AAC1B,6CAA0C;AAAjC,yGAAA,UAAU,OAAA;AACnB,+CAA4C;AAAnC,2GAAA,WAAW,OAAA;AAEpB,+CAA4C;AAAnC,2GAAA,WAAW,OAAA"}
@@ -1,6 +1,9 @@
1
- import { SOURCE_INFO_SEPARATOR } from '../../constants';
2
- import { ContentFieldsBase } from '../content-fields-base';
3
- export class FlowWhatsappButtonListRow extends ContentFieldsBase {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowWhatsappButtonListRow = void 0;
4
+ const constants_1 = require("../../constants");
5
+ const content_fields_base_1 = require("../content-fields-base");
6
+ class FlowWhatsappButtonListRow extends content_fields_base_1.ContentFieldsBase {
4
7
  constructor() {
5
8
  super(...arguments);
6
9
  this.title = '';
@@ -26,7 +29,8 @@ export class FlowWhatsappButtonListRow extends ContentFieldsBase {
26
29
  };
27
30
  }
28
31
  getRowId(rowIndex, sectionIndex) {
29
- return `${this.targetId}${SOURCE_INFO_SEPARATOR}${sectionIndex}.${rowIndex}`;
32
+ return `${this.targetId}${constants_1.SOURCE_INFO_SEPARATOR}${sectionIndex}.${rowIndex}`;
30
33
  }
31
34
  }
35
+ exports.FlowWhatsappButtonListRow = FlowWhatsappButtonListRow;
32
36
  //# sourceMappingURL=flow-whatsapp-button-list-row.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-whatsapp-button-list-row.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG1D,MAAM,OAAO,yBAA0B,SAAQ,iBAAiB;IAAhE;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,gBAAW,GAAG,EAAE,CAAA;IAgCzB,CAAC;IA7BC,MAAM,CAAC,cAAc,CACnB,SAAkC,EAClC,MAAc;;QAEd,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC1D,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;QAC3D,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;QACxE,MAAM,CAAC,QAAQ,GAAG,MAAA,SAAS,CAAC,MAAM,0CAAE,EAAE,CAAA;QACtC,OAAO,MAAM,CAAA;IACf,CAAC;IAED,SAAS,CACP,QAAgB,EAChB,YAAoB;QAEpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAC,KAAK,iBAAiB,CAAC,CAAA;YAC9D,OAAO,SAAS,CAAA;SACjB;QACD,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;YACzC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAA;IACH,CAAC;IAEO,QAAQ,CAAC,QAAgB,EAAE,YAAoB;QACrD,OAAO,GAAG,IAAI,CAAC,QAAQ,GAAG,qBAAqB,GAAG,YAAY,IAAI,QAAQ,EAAE,CAAA;IAC9E,CAAC;CACF"}
1
+ {"version":3,"file":"flow-whatsapp-button-list-row.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.tsx"],"names":[],"mappings":";;;AAEA,+CAAuD;AACvD,gEAA0D;AAG1D,MAAa,yBAA0B,SAAQ,uCAAiB;IAAhE;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,gBAAW,GAAG,EAAE,CAAA;IAgCzB,CAAC;IA7BC,MAAM,CAAC,cAAc,CACnB,SAAkC,EAClC,MAAc;;QAEd,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAC1D,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;QAC3D,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;QACxE,MAAM,CAAC,QAAQ,GAAG,MAAA,SAAS,CAAC,MAAM,0CAAE,EAAE,CAAA;QACtC,OAAO,MAAM,CAAA;IACf,CAAC;IAED,SAAS,CACP,QAAgB,EAChB,YAAoB;QAEpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,OAAO,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAC,KAAK,iBAAiB,CAAC,CAAA;YAC9D,OAAO,SAAS,CAAA;SACjB;QACD,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;YACzC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAA;IACH,CAAC;IAEO,QAAQ,CAAC,QAAgB,EAAE,YAAoB;QACrD,OAAO,GAAG,IAAI,CAAC,QAAQ,GAAG,iCAAqB,GAAG,YAAY,IAAI,QAAQ,EAAE,CAAA;IAC9E,CAAC;CACF;AAlCD,8DAkCC"}
@@ -1,6 +1,9 @@
1
- import { ContentFieldsBase } from './../content-fields-base';
2
- import { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row';
3
- export class FlowWhatsappButtonListSection extends ContentFieldsBase {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlowWhatsappButtonListSection = void 0;
4
+ const content_fields_base_1 = require("./../content-fields-base");
5
+ const flow_whatsapp_button_list_row_1 = require("./flow-whatsapp-button-list-row");
6
+ class FlowWhatsappButtonListSection extends content_fields_base_1.ContentFieldsBase {
4
7
  constructor() {
5
8
  super(...arguments);
6
9
  this.title = '';
@@ -9,7 +12,7 @@ export class FlowWhatsappButtonListSection extends ContentFieldsBase {
9
12
  static fromHubtypeCMS(component, locale) {
10
13
  const newButton = new FlowWhatsappButtonListSection(component.id);
11
14
  newButton.title = this.getTextByLocale(locale, component.title);
12
- newButton.rows = component.rows.map(row => FlowWhatsappButtonListRow.fromHubtypeCMS(row, locale));
15
+ newButton.rows = component.rows.map(row => flow_whatsapp_button_list_row_1.FlowWhatsappButtonListRow.fromHubtypeCMS(row, locale));
13
16
  return newButton;
14
17
  }
15
18
  toBotonic(sectionIndex) {
@@ -22,4 +25,5 @@ export class FlowWhatsappButtonListSection extends ContentFieldsBase {
22
25
  return { title: this.title, rows };
23
26
  }
24
27
  }
28
+ exports.FlowWhatsappButtonListSection = FlowWhatsappButtonListSection;
25
29
  //# sourceMappingURL=flow-whatsapp-button-list-section.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-whatsapp-button-list-section.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAE3E,MAAM,OAAO,6BAA8B,SAAQ,iBAAiB;IAApE;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,SAAI,GAAgC,EAAE,CAAA;IA0B/C,CAAC;IAxBC,MAAM,CAAC,cAAc,CACnB,SAAsC,EACtC,MAAc;QAEd,MAAM,SAAS,GAAG,IAAI,6BAA6B,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QACjE,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;QAC/D,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CACxC,yBAAyB,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CACtD,CAAA;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,SAAS,CAAC,YAAoB;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAC3B,CAAC,GAAiC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;YACnD,MAAM,UAAU,GAAG,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;YACxD,IAAI,UAAU;gBAAE,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;YACpC,OAAO,GAAG,CAAA;QACZ,CAAC,EACD,EAAE,CACH,CAAA;QAED,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,CAAA;IACpC,CAAC;CACF"}
1
+ {"version":3,"file":"flow-whatsapp-button-list-section.js","sourceRoot":"","sources":["../../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.tsx"],"names":[],"mappings":";;;AAMA,kEAA4D;AAC5D,mFAA2E;AAE3E,MAAa,6BAA8B,SAAQ,uCAAiB;IAApE;;QACS,UAAK,GAAG,EAAE,CAAA;QACV,SAAI,GAAgC,EAAE,CAAA;IA0B/C,CAAC;IAxBC,MAAM,CAAC,cAAc,CACnB,SAAsC,EACtC,MAAc;QAEd,MAAM,SAAS,GAAG,IAAI,6BAA6B,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QACjE,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;QAC/D,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CACxC,yDAAyB,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CACtD,CAAA;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,SAAS,CAAC,YAAoB;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAC3B,CAAC,GAAiC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;YACnD,MAAM,UAAU,GAAG,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;YACxD,IAAI,UAAU;gBAAE,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;YACpC,OAAO,GAAG,CAAA;QACZ,CAAC,EACD,EAAE,CACH,CAAA;QAED,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,CAAA;IACpC,CAAC;CACF;AA5BD,sEA4BC"}