chayns-api 1.0.48 → 1.0.49

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 (152) hide show
  1. package/.babelrc +30 -30
  2. package/.eslintrc +17 -17
  3. package/.github/workflows/deploy_docs.yml +28 -28
  4. package/.github/workflows/publish.yml +21 -21
  5. package/LICENSE +21 -21
  6. package/README.md +54 -54
  7. package/dist/cjs/calls/dialogs/chaynsDialog.js +3 -6
  8. package/dist/cjs/calls/dialogs/date.js +39 -12
  9. package/dist/cjs/calls/dialogs/fileSelect.js +1 -2
  10. package/dist/cjs/calls/dialogs/input.js +2 -3
  11. package/dist/cjs/calls/dialogs/select.js +2 -3
  12. package/dist/cjs/calls/getUserInfo.js +1 -2
  13. package/dist/cjs/calls/index.js +114 -121
  14. package/dist/cjs/calls/sendMessage.js +8 -8
  15. package/dist/cjs/calls/visibilityChangeListener.js +4 -4
  16. package/dist/cjs/components/AppDialogWrapper.js +3 -4
  17. package/dist/cjs/components/ChaynsContext.js +2 -4
  18. package/dist/cjs/components/ChaynsProvider.js +4 -5
  19. package/dist/cjs/components/moduleWrapper.js +2 -3
  20. package/dist/cjs/components/withCompatMode.js +3 -3
  21. package/dist/cjs/hooks/geoLocationListener.js +4 -4
  22. package/dist/cjs/hooks/scrollListener.js +8 -8
  23. package/dist/cjs/hooks/useAccessToken.js +3 -3
  24. package/dist/cjs/hooks/useCurrentPage.js +2 -2
  25. package/dist/cjs/hooks/useCustomData.js +2 -2
  26. package/dist/cjs/hooks/useDevice.js +2 -2
  27. package/dist/cjs/hooks/useDialogState.js +6 -6
  28. package/dist/cjs/hooks/useEnvironment.js +2 -2
  29. package/dist/cjs/hooks/useFunctions.js +2 -2
  30. package/dist/cjs/hooks/useIsAdminMode.js +2 -2
  31. package/dist/cjs/hooks/useLanguage.js +2 -2
  32. package/dist/cjs/hooks/usePages.js +4 -4
  33. package/dist/cjs/hooks/useParameters.js +2 -2
  34. package/dist/cjs/hooks/useSite.js +2 -2
  35. package/dist/cjs/hooks/useUser.js +2 -2
  36. package/dist/cjs/hooks/useValues.js +2 -2
  37. package/dist/cjs/hooks/windowMetricsListener.js +4 -4
  38. package/dist/cjs/host/ChaynsHost.js +1 -2
  39. package/dist/cjs/host/iframe/HostIframe.js +3 -5
  40. package/dist/cjs/host/iframe/utils/useUpdateData.js +1 -2
  41. package/dist/cjs/host/module/ModuleHost.js +3 -4
  42. package/dist/cjs/host/module/utils/useDynamicScript.js +4 -6
  43. package/dist/cjs/index.js +4 -5
  44. package/dist/cjs/types/IChaynsReact.js +114 -134
  45. package/dist/cjs/util/appCall.js +3 -4
  46. package/dist/cjs/util/deviceHelper.js +4 -5
  47. package/dist/cjs/util/transferNestedFunctions.js +2 -2
  48. package/dist/cjs/wrapper/AppWrapper.js +3 -3
  49. package/dist/cjs/wrapper/FrameWrapper.js +2 -2
  50. package/dist/cjs/wrapper/StaticChaynsApi.js +1 -2
  51. package/dist/esm/calls/dialogs/date.js +34 -34
  52. package/dist/esm/calls/index.js +106 -106
  53. package/dist/esm/calls/sendMessage.js +8 -8
  54. package/dist/esm/calls/visibilityChangeListener.js +4 -4
  55. package/dist/esm/components/ChaynsProvider.js +1 -1
  56. package/dist/esm/handler/DialogHandler.js +2 -2
  57. package/dist/esm/hooks/geoLocationListener.js +4 -4
  58. package/dist/esm/hooks/scrollListener.js +8 -8
  59. package/dist/esm/hooks/useAccessToken.js +3 -3
  60. package/dist/esm/hooks/useCurrentPage.js +2 -2
  61. package/dist/esm/hooks/useCustomData.js +2 -2
  62. package/dist/esm/hooks/useDevice.js +2 -2
  63. package/dist/esm/hooks/useDialogState.js +6 -6
  64. package/dist/esm/hooks/useEnvironment.js +2 -2
  65. package/dist/esm/hooks/useFunctions.js +2 -2
  66. package/dist/esm/hooks/useIsAdminMode.js +2 -2
  67. package/dist/esm/hooks/useLanguage.js +2 -2
  68. package/dist/esm/hooks/usePages.js +4 -4
  69. package/dist/esm/hooks/useParameters.js +2 -2
  70. package/dist/esm/hooks/useSite.js +2 -2
  71. package/dist/esm/hooks/useUser.js +2 -2
  72. package/dist/esm/hooks/useValues.js +2 -2
  73. package/dist/esm/hooks/windowMetricsListener.js +4 -4
  74. package/dist/esm/host/iframe/HostIframe.js +0 -1
  75. package/dist/esm/types/IChaynsReact.js +117 -108
  76. package/dist/esm/util/appCall.js +2 -2
  77. package/dist/esm/util/deviceHelper.js +3 -3
  78. package/dist/esm/wrapper/AppWrapper.js +3 -3
  79. package/dist/esm/wrapper/FrameWrapper.js +2 -2
  80. package/dist/esm/wrapper/StaticChaynsApi.js +2 -2
  81. package/dist/types/calls/dialogs/alert.d.ts +1 -1
  82. package/dist/types/calls/dialogs/chaynsDialog.d.ts +24 -24
  83. package/dist/types/calls/dialogs/close.d.ts +1 -1
  84. package/dist/types/calls/dialogs/communication.d.ts +3 -3
  85. package/dist/types/calls/dialogs/confirm.d.ts +13 -13
  86. package/dist/types/calls/dialogs/date.d.ts +96 -96
  87. package/dist/types/calls/dialogs/dropUpAlert.d.ts +5 -5
  88. package/dist/types/calls/dialogs/fileSelect.d.ts +16 -16
  89. package/dist/types/calls/dialogs/iFrame.d.ts +10 -10
  90. package/dist/types/calls/dialogs/index.d.ts +14 -14
  91. package/dist/types/calls/dialogs/input.d.ts +15 -15
  92. package/dist/types/calls/dialogs/mediaSelect.d.ts +8 -8
  93. package/dist/types/calls/dialogs/open.d.ts +1 -1
  94. package/dist/types/calls/dialogs/select.d.ts +6 -6
  95. package/dist/types/calls/dialogs/signature.d.ts +7 -7
  96. package/dist/types/calls/dialogs/toast.d.ts +1 -1
  97. package/dist/types/calls/dialogs/utils/callback.d.ts +1 -1
  98. package/dist/types/calls/dialogs/utils/is.d.ts +4 -4
  99. package/dist/types/calls/getUserInfo.d.ts +9 -9
  100. package/dist/types/calls/index.d.ts +251 -251
  101. package/dist/types/calls/sendMessage.d.ts +13 -13
  102. package/dist/types/calls/visibilityChangeListener.d.ts +9 -9
  103. package/dist/types/components/AppDialogWrapper.d.ts +5 -5
  104. package/dist/types/components/ChaynsContext.d.ts +3 -3
  105. package/dist/types/components/ChaynsProvider.d.ts +11 -11
  106. package/dist/types/components/ErrorBoundary.d.ts +13 -13
  107. package/dist/types/components/WaitUntil.d.ts +7 -7
  108. package/dist/types/components/moduleWrapper.d.ts +4 -4
  109. package/dist/types/components/withCompatMode.d.ts +13 -13
  110. package/dist/types/handler/DialogHandler.d.ts +18 -18
  111. package/dist/types/helper/apiListenerHelper.d.ts +6 -6
  112. package/dist/types/hooks/geoLocationListener.d.ts +18 -18
  113. package/dist/types/hooks/index.d.ts +17 -17
  114. package/dist/types/hooks/scrollListener.d.ts +28 -28
  115. package/dist/types/hooks/useAccessToken.d.ts +6 -6
  116. package/dist/types/hooks/useCurrentPage.d.ts +4 -4
  117. package/dist/types/hooks/useCustomData.d.ts +4 -4
  118. package/dist/types/hooks/useDevice.d.ts +5 -5
  119. package/dist/types/hooks/useDialogState.d.ts +9 -9
  120. package/dist/types/hooks/useEnvironment.d.ts +5 -5
  121. package/dist/types/hooks/useFunctions.d.ts +5 -5
  122. package/dist/types/hooks/useIsAdminMode.d.ts +4 -4
  123. package/dist/types/hooks/useLanguage.d.ts +5 -5
  124. package/dist/types/hooks/usePages.d.ts +18 -18
  125. package/dist/types/hooks/useParameters.d.ts +5 -5
  126. package/dist/types/hooks/useSite.d.ts +5 -5
  127. package/dist/types/hooks/useUser.d.ts +5 -5
  128. package/dist/types/hooks/useValues.d.ts +5 -5
  129. package/dist/types/hooks/windowMetricsListener.d.ts +11 -11
  130. package/dist/types/host/ChaynsHost.d.ts +30 -30
  131. package/dist/types/host/iframe/HostIframe.d.ts +26 -26
  132. package/dist/types/host/iframe/utils/useUpdateData.d.ts +3 -3
  133. package/dist/types/host/module/ModuleHost.d.ts +27 -27
  134. package/dist/types/host/module/utils/loadComponent.d.ts +1 -1
  135. package/dist/types/host/module/utils/useDynamicScript.d.ts +9 -9
  136. package/dist/types/index.d.ts +19 -19
  137. package/dist/types/types/IChaynsReact.d.ts +809 -809
  138. package/dist/types/types/dialog.d.ts +41 -41
  139. package/dist/types/util/appCall.d.ts +2 -2
  140. package/dist/types/util/deviceHelper.d.ts +7 -7
  141. package/dist/types/util/heightHelper.d.ts +1 -1
  142. package/dist/types/util/postIframeForm.d.ts +1 -1
  143. package/dist/types/util/transferNestedFunctions.d.ts +1 -1
  144. package/dist/types/util/url.d.ts +1 -1
  145. package/dist/types/wrapper/AppWrapper.d.ts +22 -22
  146. package/dist/types/wrapper/FrameWrapper.d.ts +15 -15
  147. package/dist/types/wrapper/ModuleFederationWrapper.d.ts +10 -10
  148. package/dist/types/wrapper/SsrWrapper.d.ts +11 -11
  149. package/dist/types/wrapper/StaticChaynsApi.d.ts +9 -9
  150. package/package.json +78 -78
  151. package/toolkit.config.js +20 -20
  152. package/tsconfig.json +56 -56
@@ -4,75 +4,71 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ToastType = exports.TappEvent = exports.SharingApp = exports.ScreenSize = exports.ScanQrCodeCodeType = exports.ScanQrCodeCameraTypes = exports.RuntimeEnviroment = exports.MediaType = exports.Language = exports.IconType = exports.Gender = exports.Font = exports.FloatingButtonPosition = exports.Environment = exports.DialogType = exports.DialogSelectType = exports.DialogInputType = exports.DialogIconType = exports.DialogButtonType = exports.DialogAnimation = exports.DeviceOs = exports.DateType = exports.ColorMode = exports.BrowserName = exports.AppName = exports.AccessMode = void 0;
7
- let DateType;
8
- exports.DateType = DateType;
9
- (function (DateType) {
7
+ let DateType = exports.DateType = /*#__PURE__*/function (DateType) {
10
8
  DateType[DateType["DATE"] = 0] = "DATE";
11
9
  DateType[DateType["TIME"] = 1] = "TIME";
12
10
  DateType[DateType["DATE_TIME"] = 2] = "DATE_TIME";
13
- })(DateType || (exports.DateType = DateType = {}));
14
- let ToastType;
15
- exports.ToastType = ToastType;
16
- (function (ToastType) {
11
+ return DateType;
12
+ }({});
13
+ let ToastType = exports.ToastType = /*#__PURE__*/function (ToastType) {
17
14
  ToastType[ToastType["NEUTRAL"] = 1] = "NEUTRAL";
18
15
  ToastType[ToastType["SUCCESS"] = 2] = "SUCCESS";
19
16
  ToastType[ToastType["WARNING"] = 3] = "WARNING";
20
17
  ToastType[ToastType["ERROR"] = 4] = "ERROR";
21
- })(ToastType || (exports.ToastType = ToastType = {}));
22
- let DialogInputType;
23
- exports.DialogInputType = DialogInputType;
24
- (function (DialogInputType) {
18
+ return ToastType;
19
+ }({});
20
+ let DialogInputType = exports.DialogInputType = /*#__PURE__*/function (DialogInputType) {
25
21
  DialogInputType["NUMBER"] = "number";
26
22
  DialogInputType["PASSWORD"] = "password";
27
23
  DialogInputType["TELEPHONE"] = "tel";
28
24
  DialogInputType["TEXT"] = "text";
29
25
  DialogInputType["TEXTAREA"] = "textarea";
30
- })(DialogInputType || (exports.DialogInputType = DialogInputType = {}));
31
- let DialogSelectType;
32
- exports.DialogSelectType = DialogSelectType;
33
- (function (DialogSelectType) {
26
+ return DialogInputType;
27
+ }({});
28
+ let DialogSelectType = exports.DialogSelectType = /*#__PURE__*/function (DialogSelectType) {
34
29
  DialogSelectType[DialogSelectType["DEFAULT"] = 0] = "DEFAULT";
35
30
  DialogSelectType[DialogSelectType["ICON"] = 1] = "ICON";
36
- })(DialogSelectType || (exports.DialogSelectType = DialogSelectType = {}));
37
- let DialogButtonType;
38
- exports.DialogButtonType = DialogButtonType;
39
- (function (DialogButtonType) {
31
+ return DialogSelectType;
32
+ }({});
33
+ let DialogButtonType = exports.DialogButtonType = /*#__PURE__*/function (DialogButtonType) {
40
34
  DialogButtonType[DialogButtonType["OK"] = 1] = "OK";
41
35
  DialogButtonType[DialogButtonType["CANCEL"] = -1] = "CANCEL";
42
36
  DialogButtonType[DialogButtonType["NEGATIVE"] = 0] = "NEGATIVE";
43
- })(DialogButtonType || (exports.DialogButtonType = DialogButtonType = {}));
44
- let ScreenSize;
45
- exports.ScreenSize = ScreenSize;
46
- (function (ScreenSize) {
37
+ return DialogButtonType;
38
+ }({});
39
+ let ScreenSize = exports.ScreenSize = /*#__PURE__*/function (ScreenSize) {
47
40
  ScreenSize[ScreenSize["XS"] = 0] = "XS";
48
41
  ScreenSize[ScreenSize["SM"] = 1] = "SM";
49
42
  ScreenSize[ScreenSize["MD"] = 2] = "MD";
50
43
  ScreenSize[ScreenSize["LG"] = 3] = "LG";
51
44
  ScreenSize[ScreenSize["XL"] = 4] = "XL";
52
- })(ScreenSize || (exports.ScreenSize = ScreenSize = {}));
53
- let AccessMode;
54
- exports.AccessMode = AccessMode;
55
- (function (AccessMode) {
45
+ return ScreenSize;
46
+ }({});
47
+ /**
48
+ * @ignore
49
+ */
50
+ /**
51
+ * @ignore
52
+ */
53
+ let AccessMode = exports.AccessMode = /*#__PURE__*/function (AccessMode) {
56
54
  AccessMode[AccessMode["public"] = 0] = "public";
57
55
  AccessMode[AccessMode["protected"] = 1] = "protected";
58
56
  AccessMode[AccessMode["private"] = 2] = "private";
59
- })(AccessMode || (exports.AccessMode = AccessMode = {}));
60
- let ScanQrCodeCodeType;
61
- exports.ScanQrCodeCodeType = ScanQrCodeCodeType;
62
- (function (ScanQrCodeCodeType) {
57
+ return AccessMode;
58
+ }({});
59
+ let ScanQrCodeCodeType = exports.ScanQrCodeCodeType = /*#__PURE__*/function (ScanQrCodeCodeType) {
63
60
  ScanQrCodeCodeType[ScanQrCodeCodeType["QR"] = 0] = "QR";
64
61
  ScanQrCodeCodeType[ScanQrCodeCodeType["BARCODE"] = 0] = "BARCODE";
65
62
  ScanQrCodeCodeType[ScanQrCodeCodeType["ALL"] = 2] = "ALL";
66
- })(ScanQrCodeCodeType || (exports.ScanQrCodeCodeType = ScanQrCodeCodeType = {}));
67
- let ScanQrCodeCameraTypes;
68
- exports.ScanQrCodeCameraTypes = ScanQrCodeCameraTypes;
69
- (function (ScanQrCodeCameraTypes) {
63
+ return ScanQrCodeCodeType;
64
+ }({});
65
+ let ScanQrCodeCameraTypes = exports.ScanQrCodeCameraTypes = /*#__PURE__*/function (ScanQrCodeCameraTypes) {
70
66
  ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["AUTO"] = 0] = "AUTO";
71
67
  ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["BACK"] = 1] = "BACK";
72
68
  ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["FRONT"] = 2] = "FRONT";
73
- })(ScanQrCodeCameraTypes || (exports.ScanQrCodeCameraTypes = ScanQrCodeCameraTypes = {}));
74
- var IOSFeedbackVibration;
75
- (function (IOSFeedbackVibration) {
69
+ return ScanQrCodeCameraTypes;
70
+ }({});
71
+ var IOSFeedbackVibration = /*#__PURE__*/function (IOSFeedbackVibration) {
76
72
  IOSFeedbackVibration[IOSFeedbackVibration["Unknown"] = 0] = "Unknown";
77
73
  IOSFeedbackVibration[IOSFeedbackVibration["SelectionChanged"] = 1] = "SelectionChanged";
78
74
  IOSFeedbackVibration[IOSFeedbackVibration["NotificationError"] = 2] = "NotificationError";
@@ -83,25 +79,25 @@ var IOSFeedbackVibration;
83
79
  IOSFeedbackVibration[IOSFeedbackVibration["Heavy"] = 7] = "Heavy";
84
80
  IOSFeedbackVibration[IOSFeedbackVibration["Soft"] = 8] = "Soft";
85
81
  IOSFeedbackVibration[IOSFeedbackVibration["Rigid"] = 9] = "Rigid";
86
- })(IOSFeedbackVibration || (IOSFeedbackVibration = {}));
82
+ return IOSFeedbackVibration;
83
+ }(IOSFeedbackVibration || {});
87
84
  // region design settings
88
- var SnapshotType;
89
- (function (SnapshotType) {
85
+ var SnapshotType = /*#__PURE__*/function (SnapshotType) {
90
86
  SnapshotType["Background"] = "background";
91
87
  SnapshotType["Settings"] = "settings";
92
88
  SnapshotType["ColorScheme"] = "colorScheme";
93
89
  SnapshotType["Cover"] = "cover";
94
90
  SnapshotType["Tapp"] = "tapp";
95
- })(SnapshotType || (SnapshotType = {}));
96
- var DesignSettingsUpdateBackgroundType;
97
- (function (DesignSettingsUpdateBackgroundType) {
91
+ return SnapshotType;
92
+ }(SnapshotType || {});
93
+ var DesignSettingsUpdateBackgroundType = /*#__PURE__*/function (DesignSettingsUpdateBackgroundType) {
98
94
  DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["None"] = 0] = "None";
99
95
  DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Image"] = 1] = "Image";
100
96
  DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Video"] = 2] = "Video";
101
97
  DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Color"] = 3] = "Color";
102
- })(DesignSettingsUpdateBackgroundType || (DesignSettingsUpdateBackgroundType = {}));
103
- var DesignSettingsUpdateSeasonTypes;
104
- (function (DesignSettingsUpdateSeasonTypes) {
98
+ return DesignSettingsUpdateBackgroundType;
99
+ }(DesignSettingsUpdateBackgroundType || {});
100
+ var DesignSettingsUpdateSeasonTypes = /*#__PURE__*/function (DesignSettingsUpdateSeasonTypes) {
105
101
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["None"] = 0] = "None";
106
102
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Snowm"] = 1] = "Snowm";
107
103
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Confetti"] = 2] = "Confetti";
@@ -111,95 +107,88 @@ var DesignSettingsUpdateSeasonTypes;
111
107
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Eastern"] = 6] = "Eastern";
112
108
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Clover"] = 7] = "Clover";
113
109
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Coins"] = 8] = "Coins";
114
- })(DesignSettingsUpdateSeasonTypes || (DesignSettingsUpdateSeasonTypes = {}));
115
- var DesignSettingsUpdateGalleryAnimationTypes;
116
- (function (DesignSettingsUpdateGalleryAnimationTypes) {
110
+ return DesignSettingsUpdateSeasonTypes;
111
+ }(DesignSettingsUpdateSeasonTypes || {});
112
+ var DesignSettingsUpdateGalleryAnimationTypes = /*#__PURE__*/function (DesignSettingsUpdateGalleryAnimationTypes) {
117
113
  DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Swipe"] = 0] = "Swipe";
118
114
  DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Fade"] = 1] = "Fade";
119
115
  DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Parallax"] = 2] = "Parallax";
120
116
  DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["KenBurns"] = 3] = "KenBurns";
121
- })(DesignSettingsUpdateGalleryAnimationTypes || (DesignSettingsUpdateGalleryAnimationTypes = {}));
122
- var DesignSettingsUpdateCoverTypes;
123
- (function (DesignSettingsUpdateCoverTypes) {
117
+ return DesignSettingsUpdateGalleryAnimationTypes;
118
+ }(DesignSettingsUpdateGalleryAnimationTypes || {});
119
+ var DesignSettingsUpdateCoverTypes = /*#__PURE__*/function (DesignSettingsUpdateCoverTypes) {
124
120
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Image"] = 0] = "Image";
125
121
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Video"] = 1] = "Video";
126
122
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Slideshow"] = 2] = "Slideshow";
127
123
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Frame"] = 3] = "Frame";
128
124
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["None"] = 4] = "None";
129
- })(DesignSettingsUpdateCoverTypes || (DesignSettingsUpdateCoverTypes = {}));
130
- var DesignSettingsUpdateColorSchemeMode;
131
- (function (DesignSettingsUpdateColorSchemeMode) {
125
+ return DesignSettingsUpdateCoverTypes;
126
+ }(DesignSettingsUpdateCoverTypes || {});
127
+ var DesignSettingsUpdateColorSchemeMode = /*#__PURE__*/function (DesignSettingsUpdateColorSchemeMode) {
132
128
  DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Normal"] = 0] = "Normal";
133
129
  DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Dark"] = 1] = "Dark";
134
130
  DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Bright"] = 2] = "Bright";
135
- })(DesignSettingsUpdateColorSchemeMode || (DesignSettingsUpdateColorSchemeMode = {}));
136
- var DesignSettingsUpdateTappViewModes;
137
- (function (DesignSettingsUpdateTappViewModes) {
131
+ return DesignSettingsUpdateColorSchemeMode;
132
+ }(DesignSettingsUpdateColorSchemeMode || {});
133
+ var DesignSettingsUpdateTappViewModes = /*#__PURE__*/function (DesignSettingsUpdateTappViewModes) {
138
134
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Normal"] = 0] = "Normal";
139
135
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Exclusive"] = 1] = "Exclusive";
140
136
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Wide"] = 2] = "Wide";
141
137
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Fullscreen"] = 3] = "Fullscreen";
142
138
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["FullscreenWithBackground"] = 4] = "FullscreenWithBackground";
143
- })(DesignSettingsUpdateTappViewModes || (DesignSettingsUpdateTappViewModes = {}));
144
- var LoginState;
145
- (function (LoginState) {
139
+ return DesignSettingsUpdateTappViewModes;
140
+ }(DesignSettingsUpdateTappViewModes || {}); // endregion
141
+ var LoginState = /*#__PURE__*/function (LoginState) {
146
142
  LoginState[LoginState["FACEBOOK"] = 0] = "FACEBOOK";
147
143
  LoginState[LoginState["T_WEB"] = 1] = "T_WEB";
148
144
  LoginState[LoginState["LoginFailed"] = 2] = "LoginFailed";
149
145
  LoginState[LoginState["AlreadyLoggedIn"] = 3] = "AlreadyLoggedIn";
150
146
  LoginState[LoginState["SUCCESS"] = 4] = "SUCCESS";
151
- })(LoginState || (LoginState = {}));
152
- let FloatingButtonPosition;
153
- exports.FloatingButtonPosition = FloatingButtonPosition;
154
- (function (FloatingButtonPosition) {
147
+ return LoginState;
148
+ }(LoginState || {});
149
+ let FloatingButtonPosition = exports.FloatingButtonPosition = /*#__PURE__*/function (FloatingButtonPosition) {
155
150
  FloatingButtonPosition[FloatingButtonPosition["Right"] = 0] = "Right";
156
151
  FloatingButtonPosition[FloatingButtonPosition["Center"] = 1] = "Center";
157
152
  FloatingButtonPosition[FloatingButtonPosition["Left"] = 2] = "Left";
158
- })(FloatingButtonPosition || (exports.FloatingButtonPosition = FloatingButtonPosition = {}));
159
- let SharingApp;
160
- exports.SharingApp = SharingApp;
161
- (function (SharingApp) {
153
+ return FloatingButtonPosition;
154
+ }({});
155
+ let SharingApp = exports.SharingApp = /*#__PURE__*/function (SharingApp) {
162
156
  SharingApp[SharingApp["Mail"] = 0] = "Mail";
163
157
  SharingApp[SharingApp["WhatsApp"] = 1] = "WhatsApp";
164
158
  SharingApp[SharingApp["Facebook"] = 2] = "Facebook";
165
159
  SharingApp[SharingApp["FacebookMessenger"] = 3] = "FacebookMessenger";
166
160
  SharingApp[SharingApp["GooglePlus"] = 4] = "GooglePlus";
167
161
  SharingApp[SharingApp["Twitter"] = 5] = "Twitter";
168
- })(SharingApp || (exports.SharingApp = SharingApp = {}));
169
- let TappEvent;
170
- exports.TappEvent = TappEvent;
171
- (function (TappEvent) {
162
+ return SharingApp;
163
+ }({});
164
+ let TappEvent = exports.TappEvent = /*#__PURE__*/function (TappEvent) {
172
165
  TappEvent[TappEvent["OnShow"] = 0] = "OnShow";
173
166
  TappEvent[TappEvent["OnHide"] = 1] = "OnHide";
174
167
  TappEvent[TappEvent["OnRefresh"] = 2] = "OnRefresh";
175
168
  TappEvent[TappEvent["OnOpenCcScanner"] = 3] = "OnOpenCcScanner";
176
169
  TappEvent[TappEvent["OnCloseCcScanner"] = 4] = "OnCloseCcScanner";
177
- })(TappEvent || (exports.TappEvent = TappEvent = {}));
178
- let IconType;
179
- exports.IconType = IconType;
180
- (function (IconType) {
170
+ return TappEvent;
171
+ }({});
172
+ let IconType = exports.IconType = /*#__PURE__*/function (IconType) {
181
173
  IconType[IconType["Font"] = 0] = "Font";
182
174
  IconType[IconType["Base64"] = 1] = "Base64";
183
175
  IconType[IconType["Url"] = 2] = "Url";
184
- })(IconType || (exports.IconType = IconType = {}));
185
- let Gender;
186
- exports.Gender = Gender;
187
- (function (Gender) {
176
+ return IconType;
177
+ }({});
178
+ let Gender = exports.Gender = /*#__PURE__*/function (Gender) {
188
179
  Gender[Gender["Unknown"] = 0] = "Unknown";
189
180
  Gender[Gender["male"] = 1] = "male";
190
181
  Gender[Gender["female"] = 2] = "female";
191
182
  Gender[Gender["diverse"] = 9] = "diverse";
192
- })(Gender || (exports.Gender = Gender = {}));
193
- let ColorMode;
194
- exports.ColorMode = ColorMode;
195
- (function (ColorMode) {
183
+ return Gender;
184
+ }({});
185
+ let ColorMode = exports.ColorMode = /*#__PURE__*/function (ColorMode) {
196
186
  ColorMode[ColorMode["Classic"] = 0] = "Classic";
197
187
  ColorMode[ColorMode["Dark"] = 1] = "Dark";
198
188
  ColorMode[ColorMode["Light"] = 2] = "Light";
199
- })(ColorMode || (exports.ColorMode = ColorMode = {}));
200
- let Language;
201
- exports.Language = Language;
202
- (function (Language) {
189
+ return ColorMode;
190
+ }({});
191
+ let Language = exports.Language = /*#__PURE__*/function (Language) {
203
192
  Language["Unknown"] = "unknown";
204
193
  Language["German"] = "de";
205
194
  Language["English"] = "en";
@@ -211,30 +200,27 @@ exports.Language = Language;
211
200
  Language["Turkish"] = "tr";
212
201
  Language["Polish"] = "pl";
213
202
  Language["Ukrainian"] = "uk";
214
- })(Language || (exports.Language = Language = {}));
215
- let RuntimeEnviroment;
216
- exports.RuntimeEnviroment = RuntimeEnviroment;
217
- (function (RuntimeEnviroment) {
203
+ return Language;
204
+ }({});
205
+ let RuntimeEnviroment = exports.RuntimeEnviroment = /*#__PURE__*/function (RuntimeEnviroment) {
218
206
  RuntimeEnviroment[RuntimeEnviroment["Unknown"] = 0] = "Unknown";
219
207
  RuntimeEnviroment[RuntimeEnviroment["ChaynsDe"] = 1] = "ChaynsDe";
220
208
  RuntimeEnviroment[RuntimeEnviroment["ChaynsWeb"] = 2] = "ChaynsWeb";
221
209
  RuntimeEnviroment[RuntimeEnviroment["ChaynsRuntime"] = 3] = "ChaynsRuntime";
222
210
  RuntimeEnviroment[RuntimeEnviroment["IntercomPlugin"] = 4] = "IntercomPlugin";
223
211
  RuntimeEnviroment[RuntimeEnviroment["PagemakerPlugin"] = 5] = "PagemakerPlugin";
224
- })(RuntimeEnviroment || (exports.RuntimeEnviroment = RuntimeEnviroment = {}));
225
- let DeviceOs;
226
- exports.DeviceOs = DeviceOs;
227
- (function (DeviceOs) {
212
+ return RuntimeEnviroment;
213
+ }({});
214
+ let DeviceOs = exports.DeviceOs = /*#__PURE__*/function (DeviceOs) {
228
215
  DeviceOs["Unknown"] = "unknown";
229
216
  DeviceOs["Android"] = "android";
230
217
  DeviceOs["IOS"] = "ios";
231
218
  DeviceOs["Windows"] = "windows";
232
219
  DeviceOs["MacOs"] = "macos";
233
220
  DeviceOs["Linux"] = "linux";
234
- })(DeviceOs || (exports.DeviceOs = DeviceOs = {}));
235
- let AppName;
236
- exports.AppName = AppName;
237
- (function (AppName) {
221
+ return DeviceOs;
222
+ }({});
223
+ let AppName = exports.AppName = /*#__PURE__*/function (AppName) {
238
224
  AppName[AppName["Unknown"] = 0] = "Unknown";
239
225
  AppName[AppName["David"] = 1] = "David";
240
226
  AppName[AppName["Chayns"] = 2] = "Chayns";
@@ -243,27 +229,24 @@ exports.AppName = AppName;
243
229
  AppName[AppName["ChaynsLauncher"] = 5] = "ChaynsLauncher";
244
230
  AppName[AppName["TobitChat"] = 6] = "TobitChat";
245
231
  AppName[AppName["Sidekick"] = 7] = "Sidekick";
246
- })(AppName || (exports.AppName = AppName = {}));
247
- let BrowserName;
248
- exports.BrowserName = BrowserName;
249
- (function (BrowserName) {
232
+ return AppName;
233
+ }({});
234
+ let BrowserName = exports.BrowserName = /*#__PURE__*/function (BrowserName) {
250
235
  BrowserName["Unknown"] = "unknown";
251
236
  BrowserName["Chrome"] = "chrome";
252
237
  BrowserName["Safari"] = "safari";
253
238
  BrowserName["Firefox"] = "firefox";
254
239
  BrowserName["Edge"] = "edge";
255
- })(BrowserName || (exports.BrowserName = BrowserName = {}));
256
- let Environment;
257
- exports.Environment = Environment;
258
- (function (Environment) {
240
+ return BrowserName;
241
+ }({});
242
+ let Environment = exports.Environment = /*#__PURE__*/function (Environment) {
259
243
  Environment[Environment["Development"] = 0] = "Development";
260
244
  Environment[Environment["Qa"] = 1] = "Qa";
261
245
  Environment[Environment["Staging"] = 2] = "Staging";
262
246
  Environment[Environment["Production"] = 3] = "Production";
263
- })(Environment || (exports.Environment = Environment = {}));
264
- let Font;
265
- exports.Font = Font;
266
- (function (Font) {
247
+ return Environment;
248
+ }({});
249
+ let Font = exports.Font = /*#__PURE__*/function (Font) {
267
250
  Font[Font["Unknown"] = 0] = "Unknown";
268
251
  Font[Font["Roboto"] = 1] = "Roboto";
269
252
  Font[Font["OpenSans"] = 2] = "OpenSans";
@@ -292,15 +275,14 @@ exports.Font = Font;
292
275
  Font[Font["RobotoBold"] = 25] = "RobotoBold";
293
276
  Font[Font["RobotoRegular"] = 26] = "RobotoRegular";
294
277
  Font[Font["Inter"] = 27] = "Inter";
295
- })(Font || (exports.Font = Font = {}));
296
- var selectType;
297
- (function (selectType) {
278
+ return Font;
279
+ }({});
280
+ var selectType = /*#__PURE__*/function (selectType) {
298
281
  selectType[selectType["DEFAULT"] = 0] = "DEFAULT";
299
282
  selectType[selectType["ICON"] = 1] = "ICON";
300
- })(selectType || (selectType = {}));
301
- let DialogType;
302
- exports.DialogType = DialogType;
303
- (function (DialogType) {
283
+ return selectType;
284
+ }(selectType || {});
285
+ let DialogType = exports.DialogType = /*#__PURE__*/function (DialogType) {
304
286
  DialogType["ALERT"] = "alert";
305
287
  DialogType["CONFIRM"] = "confirm";
306
288
  DialogType["DATE"] = "date";
@@ -310,22 +292,20 @@ exports.DialogType = DialogType;
310
292
  DialogType["INPUT"] = "input";
311
293
  DialogType["SELECT"] = "select";
312
294
  DialogType["TOAST"] = "toast";
313
- })(DialogType || (exports.DialogType = DialogType = {}));
314
- let MediaType;
315
- exports.MediaType = MediaType;
316
- (function (MediaType) {
295
+ return DialogType;
296
+ }({});
297
+ let MediaType = exports.MediaType = /*#__PURE__*/function (MediaType) {
317
298
  MediaType["IMAGE"] = "image";
318
299
  MediaType["VIDEO"] = "video";
319
- })(MediaType || (exports.MediaType = MediaType = {}));
320
- let DialogAnimation;
321
- exports.DialogAnimation = DialogAnimation;
322
- (function (DialogAnimation) {
300
+ return MediaType;
301
+ }({});
302
+ let DialogAnimation = exports.DialogAnimation = /*#__PURE__*/function (DialogAnimation) {
323
303
  DialogAnimation["CONFETTI"] = "confetti";
324
- })(DialogAnimation || (exports.DialogAnimation = DialogAnimation = {}));
325
- let DialogIconType;
326
- exports.DialogIconType = DialogIconType;
327
- (function (DialogIconType) {
304
+ return DialogAnimation;
305
+ }({});
306
+ let DialogIconType = exports.DialogIconType = /*#__PURE__*/function (DialogIconType) {
328
307
  DialogIconType["SuccessIcon"] = "%%DialogSuccessIcon%%";
329
308
  DialogIconType["WarningIcon"] = "%%DialogWarningIcon%%";
330
309
  DialogIconType["ErrorIcon"] = "%%DialogErrorIcon%%";
331
- })(DialogIconType || (exports.DialogIconType = DialogIconType = {}));
310
+ return DialogIconType;
311
+ }({});
@@ -7,9 +7,9 @@ exports.default = void 0;
7
7
  // @ts-nocheck
8
8
 
9
9
  const invokeAppCall = call => {
10
- var _window$webkit, _window$webkit$messag, _window$chaynsApp, _window$chaynsElectro;
10
+ var _window$webkit, _window$chaynsApp, _window$chaynsElectro;
11
11
  call = JSON.stringify(call);
12
- if ((_window$webkit = window.webkit) !== null && _window$webkit !== void 0 && (_window$webkit$messag = _window$webkit.messageHandlers) !== null && _window$webkit$messag !== void 0 && _window$webkit$messag.jsonCall) {
12
+ if ((_window$webkit = window.webkit) !== null && _window$webkit !== void 0 && (_window$webkit = _window$webkit.messageHandlers) !== null && _window$webkit !== void 0 && _window$webkit.jsonCall) {
13
13
  window.webkit.messageHandlers.jsonCall.postMessage(call);
14
14
  } else if ((_window$chaynsApp = window.chaynsApp) !== null && _window$chaynsApp !== void 0 && _window$chaynsApp.jsonCall) {
15
15
  window.chaynsApp.jsonCall(call);
@@ -19,5 +19,4 @@ const invokeAppCall = call => {
19
19
  throw new Error('jsoncall interface not found');
20
20
  }
21
21
  };
22
- var _default = invokeAppCall;
23
- exports.default = _default;
22
+ var _default = exports.default = invokeAppCall;
@@ -15,9 +15,9 @@ const getDeviceInfo = (userAgent, acceptHeader) => {
15
15
  appName = _IChaynsReact.AppName.TobitChat;
16
16
  } else if (/\ssidekick\/\d+/i.test(userAgent)) {
17
17
  appName = _IChaynsReact.AppName.Sidekick;
18
- } else if ((match === null || match === void 0 ? void 0 : (_match$groups = match.groups) === null || _match$groups === void 0 ? void 0 : _match$groups.siteId) === '60021-08989') {
18
+ } else if ((match === null || match === void 0 || (_match$groups = match.groups) === null || _match$groups === void 0 ? void 0 : _match$groups.siteId) === '60021-08989') {
19
19
  appName = _IChaynsReact.AppName.Chayns;
20
- } else if ((match === null || match === void 0 ? void 0 : (_match$groups2 = match.groups) === null || _match$groups2 === void 0 ? void 0 : _match$groups2.siteId) === '77892-10814') {
20
+ } else if ((match === null || match === void 0 || (_match$groups2 = match.groups) === null || _match$groups2 === void 0 ? void 0 : _match$groups2.siteId) === '77892-10814') {
21
21
  appName = _IChaynsReact.AppName.David;
22
22
  } else if (match) {
23
23
  appName = _IChaynsReact.AppName.Location;
@@ -28,7 +28,7 @@ const getDeviceInfo = (userAgent, acceptHeader) => {
28
28
  result.browser = {
29
29
  name: parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.name,
30
30
  version: parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.version,
31
- majorVersion: Number.parseInt((_parsedUA$version$spl = parsedUA === null || parsedUA === void 0 ? void 0 : (_parsedUA$version = parsedUA.version) === null || _parsedUA$version === void 0 ? void 0 : _parsedUA$version.split('.')[0]) !== null && _parsedUA$version$spl !== void 0 ? _parsedUA$version$spl : '0', 10) || 0,
31
+ majorVersion: Number.parseInt((_parsedUA$version$spl = parsedUA === null || parsedUA === void 0 || (_parsedUA$version = parsedUA.version) === null || _parsedUA$version === void 0 ? void 0 : _parsedUA$version.split('.')[0]) !== null && _parsedUA$version$spl !== void 0 ? _parsedUA$version$spl : '0', 10) || 0,
32
32
  isWebPSupported: acceptHeader.includes('image/webp')
33
33
  };
34
34
  result.app = {
@@ -70,5 +70,4 @@ const getScreenSize = width => {
70
70
  return value;
71
71
  };
72
72
  exports.getScreenSize = getScreenSize;
73
- var _default = getDeviceInfo;
74
- exports.default = _default;
73
+ var _default = exports.default = getDeviceInfo;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var Comlink = _interopRequireWildcard(require("comlink"));
4
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
5
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
4
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
5
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
6
6
  // @ts-nocheck
7
7
 
8
8
  Comlink.transferHandlers.set("FUNCTION", {
@@ -12,8 +12,8 @@ var _deviceHelper = _interopRequireWildcard(require("../util/deviceHelper"));
12
12
  var _getUserInfo = _interopRequireDefault(require("../calls/getUserInfo"));
13
13
  var _sendMessage = require("../calls/sendMessage");
14
14
  var _apiListenerHelper = require("../helper/apiListenerHelper");
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
  /* eslint-disable */
19
19
  // @ts-nocheck
@@ -292,7 +292,7 @@ class AppWrapper {
292
292
  window[callbackName] = ({
293
293
  retVal
294
294
  }) => {
295
- callback === null || callback === void 0 ? void 0 : callback(retVal);
295
+ callback === null || callback === void 0 || callback(retVal);
296
296
  delete window[callbackName];
297
297
  };
298
298
  const callObj = {
@@ -12,8 +12,8 @@ var _getUserInfo = _interopRequireDefault(require("../calls/getUserInfo"));
12
12
  var _sendMessage = require("../calls/sendMessage");
13
13
  var _heightHelper = require("../util/heightHelper");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
18
18
 
19
19
  class FrameWrapper {
@@ -19,5 +19,4 @@ class StaticChaynsApi {
19
19
  }
20
20
  getSite = () => this._wrapper.values.site;
21
21
  }
22
- var _default = StaticChaynsApi;
23
- exports.default = _default;
22
+ var _default = exports.default = StaticChaynsApi;
@@ -3,32 +3,32 @@ import { isDate, isNumber, isObject } from './utils/is';
3
3
  import { open } from './open';
4
4
  import { getDevice } from "../index";
5
5
 
6
- /**
7
- * The config object for date dialog
8
- * @typedef {Object} dateConfig
9
- * @property {Date} preSelect - The date object which should be preselected.
10
- * @property {Date} minDate - The min date which you could select.
11
- * @property {Date} maxDate - The max date which you could select.
12
- * @property {dateDialogType} dateType - The type of dialog you want to display.
13
- * @property {number} minuteIntervall - The interval for special minutes, possible are 2, 3, 4, 5, 6, 12, 15, 20, 30. Default is 1.
14
- * @property {string} message - The message that is displayed above the date dialog, only in apps supported
15
- * @property {string} title - The title that is displayed above the message, only in apps supported
6
+ /**
7
+ * The config object for date dialog
8
+ * @typedef {Object} dateConfig
9
+ * @property {Date} preSelect - The date object which should be preselected.
10
+ * @property {Date} minDate - The min date which you could select.
11
+ * @property {Date} maxDate - The max date which you could select.
12
+ * @property {dateDialogType} dateType - The type of dialog you want to display.
13
+ * @property {number} minuteIntervall - The interval for special minutes, possible are 2, 3, 4, 5, 6, 12, 15, 20, 30. Default is 1.
14
+ * @property {string} message - The message that is displayed above the date dialog, only in apps supported
15
+ * @property {string} title - The title that is displayed above the message, only in apps supported
16
16
  */
17
17
 
18
- /**
19
- * This call will open a date select dialog.
20
- * <div>Call: 30</div>
21
- * @param {dateConfig} config - Define the configuration of this call
22
- * @return {Promise} contains a timestamp as result
23
- * @example chayns.dialog.date({
24
- * 'dateType': chayns.dialog.dateType.DATE_TIME,
25
- * 'preSelect': new Date(2018, 6, 14, 0, 0, 0),
26
- * 'minDate': new Date(2018, 6, 1, 15, 0, 0),
27
- * 'maxDate': new Date(2019, 6, 1, 0, 23, 0),
28
- * 'minuteInterval': 15
29
- * ).then(function (data) {
30
- * console.log(data);
31
- * });
18
+ /**
19
+ * This call will open a date select dialog.
20
+ * <div>Call: 30</div>
21
+ * @param {dateConfig} config - Define the configuration of this call
22
+ * @return {Promise} contains a timestamp as result
23
+ * @example chayns.dialog.date({
24
+ * 'dateType': chayns.dialog.dateType.DATE_TIME,
25
+ * 'preSelect': new Date(2018, 6, 14, 0, 0, 0),
26
+ * 'minDate': new Date(2018, 6, 1, 15, 0, 0),
27
+ * 'maxDate': new Date(2019, 6, 1, 0, 23, 0),
28
+ * 'minuteInterval': 15
29
+ * ).then(function (data) {
30
+ * console.log(data);
31
+ * });
32
32
  */
33
33
 
34
34
  export function date() {
@@ -165,18 +165,18 @@ export function advancedDate() {
165
165
  });
166
166
  }
167
167
 
168
- /**
169
- * @typedef {number} dateDialogType
168
+ /**
169
+ * @typedef {number} dateDialogType
170
170
  */
171
171
 
172
- /**
173
- * Enum for date dialog
174
- * <div>DATE will open a dialog where you can select a special day</div>
175
- * <div>TIME will open a dialog where you can only select a special time</div>
176
- * <div>DATE_TIME will open a dialog where you can select a special time on a special day</div>
177
- * @readonly
178
- * @enum {dateDialogType}
179
- * @type {{DATE: number, TIME: number, DATE_TIME: number}}
172
+ /**
173
+ * Enum for date dialog
174
+ * <div>DATE will open a dialog where you can select a special day</div>
175
+ * <div>TIME will open a dialog where you can only select a special time</div>
176
+ * <div>DATE_TIME will open a dialog where you can select a special time on a special day</div>
177
+ * @readonly
178
+ * @enum {dateDialogType}
179
+ * @type {{DATE: number, TIME: number, DATE_TIME: number}}
180
180
  */
181
181
  export const dateType = {
182
182
  'DATE': 1,