crmbonus-component-wake 0.0.20 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. package/dist/crmbonus-component-wake/app-modal.entry.js +23 -0
  2. package/dist/crmbonus-component-wake/app-modal.entry.js.map +1 -0
  3. package/dist/{esm/app-modal_2.entry.js → crmbonus-component-wake/crm-bonus-form.entry.js} +13 -26
  4. package/dist/crmbonus-component-wake/crm-bonus-form.entry.js.map +1 -0
  5. package/dist/{esm → crmbonus-component-wake}/crm-bonus.entry.js +16 -8
  6. package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +1 -0
  7. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +48 -1
  8. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
  9. package/dist/{cjs/crmbonus.service-a626c034.js → crmbonus-component-wake/crmbonus.service-5e579e1c.js} +165 -92
  10. package/dist/crmbonus-component-wake/crmbonus.service-5e579e1c.js.map +1 -0
  11. package/dist/{components/p-629fcb5b.js → crmbonus-component-wake/crmbonus.service-72c64bc3.js} +166 -91
  12. package/dist/crmbonus-component-wake/crmbonus.service-72c64bc3.js.map +1 -0
  13. package/dist/crmbonus-component-wake/crmbonus.service-a0dea046.js +3868 -0
  14. package/dist/crmbonus-component-wake/crmbonus.service-a0dea046.js.map +1 -0
  15. package/dist/{esm/crmbonus.service-83f67708.js → crmbonus-component-wake/crmbonus.service-ce105f62.js} +165 -90
  16. package/dist/crmbonus-component-wake/crmbonus.service-ce105f62.js.map +1 -0
  17. package/dist/crmbonus-component-wake/giftback-finish.entry.js +19 -0
  18. package/dist/crmbonus-component-wake/giftback-finish.entry.js.map +1 -0
  19. package/dist/crmbonus-component-wake/giftback-pin.entry.js +44 -0
  20. package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +1 -0
  21. package/dist/crmbonus-component-wake/giftback-progress.entry.js +40 -0
  22. package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +1 -0
  23. package/dist/crmbonus-component-wake/index-f557ce7c.js +3039 -0
  24. package/dist/crmbonus-component-wake/index-f557ce7c.js.map +1 -0
  25. package/dist/crmbonus-component-wake/index.esm.js +16 -1
  26. package/dist/crmbonus-component-wake/index.esm.js.map +1 -1
  27. package/dist/{esm → crmbonus-component-wake}/loading-spinner.entry.js +3 -4
  28. package/dist/crmbonus-component-wake/loading-spinner.entry.js.map +1 -0
  29. package/dist/{esm → crmbonus-component-wake}/pedido-finalizado.entry.js +3 -3
  30. package/dist/crmbonus-component-wake/pedido-finalizado.entry.js.map +1 -0
  31. package/dist/{components/p-2dbfb2c7.js → crmbonus-component-wake/phone-input-mask.entry.js} +9 -30
  32. package/dist/crmbonus-component-wake/phone-input-mask.entry.js.map +1 -0
  33. package/dist/crmbonus-component-wake/phone-input.entry.js +21 -0
  34. package/dist/crmbonus-component-wake/phone-input.entry.js.map +1 -0
  35. package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js +334 -0
  36. package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js.map +1 -0
  37. package/dist/types/components/crm-bonus/crm-bonus.d.ts +1 -0
  38. package/dist/types/components/crm-bonus-form/crm-bonus-form.d.ts +2 -0
  39. package/dist/types/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.d.ts +1 -0
  40. package/dist/types/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.d.ts +1 -0
  41. package/dist/types/components.d.ts +6 -0
  42. package/package.json +1 -1
  43. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  44. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  45. package/dist/cjs/app-modal_2.cjs.entry.js +0 -127
  46. package/dist/cjs/app-modal_2.cjs.entry.js.map +0 -1
  47. package/dist/cjs/crm-bonus.cjs.entry.js +0 -46
  48. package/dist/cjs/crm-bonus.cjs.entry.js.map +0 -1
  49. package/dist/cjs/crmbonus-component-wake.cjs.js +0 -27
  50. package/dist/cjs/crmbonus-component-wake.cjs.js.map +0 -1
  51. package/dist/cjs/crmbonus.service-a626c034.js.map +0 -1
  52. package/dist/cjs/giftback-finish_5.cjs.entry.js +0 -153
  53. package/dist/cjs/giftback-finish_5.cjs.entry.js.map +0 -1
  54. package/dist/cjs/index-52d8a075.js +0 -1248
  55. package/dist/cjs/index-52d8a075.js.map +0 -1
  56. package/dist/cjs/index.cjs.js +0 -11
  57. package/dist/cjs/index.cjs.js.map +0 -1
  58. package/dist/cjs/loader.cjs.js +0 -17
  59. package/dist/cjs/loader.cjs.js.map +0 -1
  60. package/dist/cjs/loading-spinner.cjs.entry.js +0 -24
  61. package/dist/cjs/loading-spinner.cjs.entry.js.map +0 -1
  62. package/dist/cjs/pedido-finalizado.cjs.entry.js +0 -28
  63. package/dist/cjs/pedido-finalizado.cjs.entry.js.map +0 -1
  64. package/dist/collection/collection-manifest.json +0 -21
  65. package/dist/collection/components/crm-bonus/assets/logo.svg +0 -18
  66. package/dist/collection/components/crm-bonus/assets/success-svgrepo-com.svg +0 -8
  67. package/dist/collection/components/crm-bonus/assets/svg/logo.svg +0 -18
  68. package/dist/collection/components/crm-bonus/assets/svg/success-svgrepo-com.svg +0 -8
  69. package/dist/collection/components/crm-bonus/crm-bonus.css +0 -20
  70. package/dist/collection/components/crm-bonus/crm-bonus.js +0 -123
  71. package/dist/collection/components/crm-bonus/crm-bonus.js.map +0 -1
  72. package/dist/collection/components/crm-bonus-form/crm-bonus-form.css +0 -32
  73. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +0 -194
  74. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js.map +0 -1
  75. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.css +0 -10
  76. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +0 -20
  77. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js.map +0 -1
  78. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +0 -54
  79. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +0 -111
  80. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map +0 -1
  81. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.css +0 -95
  82. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +0 -111
  83. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js.map +0 -1
  84. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js +0 -75
  85. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js.map +0 -1
  86. package/dist/collection/components/loading-spinner/loading-spinner.css +0 -17
  87. package/dist/collection/components/loading-spinner/loading-spinner.js +0 -63
  88. package/dist/collection/components/loading-spinner/loading-spinner.js.map +0 -1
  89. package/dist/collection/components/modal/app-modal.css +0 -45
  90. package/dist/collection/components/modal/app-modal.js +0 -83
  91. package/dist/collection/components/modal/app-modal.js.map +0 -1
  92. package/dist/collection/components/pedido/pedido.js +0 -58
  93. package/dist/collection/components/pedido/pedido.js.map +0 -1
  94. package/dist/collection/components/phone/phone-input-mask.css +0 -47
  95. package/dist/collection/components/phone/phone-input-mask.js +0 -90
  96. package/dist/collection/components/phone/phone-input-mask.js.map +0 -1
  97. package/dist/collection/contants/index.js +0 -8
  98. package/dist/collection/contants/index.js.map +0 -1
  99. package/dist/collection/contants/mocks.js +0 -28
  100. package/dist/collection/contants/mocks.js.map +0 -1
  101. package/dist/collection/dto/pin.sent.js +0 -2
  102. package/dist/collection/dto/pin.sent.js.map +0 -1
  103. package/dist/collection/dto/validate.pin.bonus.js +0 -2
  104. package/dist/collection/dto/validate.pin.bonus.js.map +0 -1
  105. package/dist/collection/index.js +0 -11
  106. package/dist/collection/index.js.map +0 -1
  107. package/dist/collection/services/crmbonus.service.js +0 -39
  108. package/dist/collection/services/crmbonus.service.js.map +0 -1
  109. package/dist/collection/utils/utils.js +0 -4
  110. package/dist/collection/utils/utils.js.map +0 -1
  111. package/dist/components/app-modal.js +0 -8
  112. package/dist/components/app-modal.js.map +0 -1
  113. package/dist/components/crm-bonus-form.js +0 -8
  114. package/dist/components/crm-bonus-form.js.map +0 -1
  115. package/dist/components/crm-bonus.js +0 -117
  116. package/dist/components/crm-bonus.js.map +0 -1
  117. package/dist/components/giftback-finish.js +0 -8
  118. package/dist/components/giftback-finish.js.map +0 -1
  119. package/dist/components/giftback-pin.js +0 -8
  120. package/dist/components/giftback-pin.js.map +0 -1
  121. package/dist/components/giftback-progress.js +0 -8
  122. package/dist/components/giftback-progress.js.map +0 -1
  123. package/dist/components/index.js +0 -9
  124. package/dist/components/index.js.map +0 -1
  125. package/dist/components/loading-spinner.js +0 -8
  126. package/dist/components/loading-spinner.js.map +0 -1
  127. package/dist/components/p-17ee9996.js +0 -52
  128. package/dist/components/p-17ee9996.js.map +0 -1
  129. package/dist/components/p-2dbfb2c7.js.map +0 -1
  130. package/dist/components/p-563ea4c5.js +0 -166
  131. package/dist/components/p-563ea4c5.js.map +0 -1
  132. package/dist/components/p-629fcb5b.js.map +0 -1
  133. package/dist/components/p-7294e43f.js +0 -36
  134. package/dist/components/p-7294e43f.js.map +0 -1
  135. package/dist/components/p-78529eea.js +0 -39
  136. package/dist/components/p-78529eea.js.map +0 -1
  137. package/dist/components/p-8e0ed8dd.js +0 -43
  138. package/dist/components/p-8e0ed8dd.js.map +0 -1
  139. package/dist/components/p-a1781d03.js +0 -72
  140. package/dist/components/p-a1781d03.js.map +0 -1
  141. package/dist/components/p-a88bc337.js +0 -67
  142. package/dist/components/p-a88bc337.js.map +0 -1
  143. package/dist/components/p-faf7103e.js +0 -1064
  144. package/dist/components/p-faf7103e.js.map +0 -1
  145. package/dist/components/pedido-finalizado.js +0 -45
  146. package/dist/components/pedido-finalizado.js.map +0 -1
  147. package/dist/components/phone-input-mask.js +0 -8
  148. package/dist/components/phone-input-mask.js.map +0 -1
  149. package/dist/components/phone-input.js +0 -8
  150. package/dist/components/phone-input.js.map +0 -1
  151. package/dist/crmbonus-component-wake/p-54e51298.entry.js +0 -2
  152. package/dist/crmbonus-component-wake/p-54e51298.entry.js.map +0 -1
  153. package/dist/crmbonus-component-wake/p-629fcb5b.js +0 -2
  154. package/dist/crmbonus-component-wake/p-629fcb5b.js.map +0 -1
  155. package/dist/crmbonus-component-wake/p-6b075110.entry.js +0 -2
  156. package/dist/crmbonus-component-wake/p-6b075110.entry.js.map +0 -1
  157. package/dist/crmbonus-component-wake/p-72510682.js +0 -3
  158. package/dist/crmbonus-component-wake/p-72510682.js.map +0 -1
  159. package/dist/crmbonus-component-wake/p-ba53f0f3.entry.js +0 -2
  160. package/dist/crmbonus-component-wake/p-ba53f0f3.entry.js.map +0 -1
  161. package/dist/crmbonus-component-wake/p-bf4b486e.entry.js +0 -2
  162. package/dist/crmbonus-component-wake/p-bf4b486e.entry.js.map +0 -1
  163. package/dist/crmbonus-component-wake/p-e1255160.js +0 -2
  164. package/dist/crmbonus-component-wake/p-e1255160.js.map +0 -1
  165. package/dist/crmbonus-component-wake/p-f0d68c31.entry.js +0 -2
  166. package/dist/crmbonus-component-wake/p-f0d68c31.entry.js.map +0 -1
  167. package/dist/env.js +0 -5
  168. package/dist/env.js.map +0 -1
  169. package/dist/esm/app-modal_2.entry.js.map +0 -1
  170. package/dist/esm/crm-bonus.entry.js.map +0 -1
  171. package/dist/esm/crmbonus-component-wake.js +0 -22
  172. package/dist/esm/crmbonus-component-wake.js.map +0 -1
  173. package/dist/esm/crmbonus.service-83f67708.js.map +0 -1
  174. package/dist/esm/giftback-finish_5.entry.js +0 -145
  175. package/dist/esm/giftback-finish_5.entry.js.map +0 -1
  176. package/dist/esm/index-9f7bde48.js +0 -1220
  177. package/dist/esm/index-9f7bde48.js.map +0 -1
  178. package/dist/esm/index.js +0 -7
  179. package/dist/esm/index.js.map +0 -1
  180. package/dist/esm/loader.js +0 -13
  181. package/dist/esm/loader.js.map +0 -1
  182. package/dist/esm/loading-spinner.entry.js.map +0 -1
  183. package/dist/esm/pedido-finalizado.entry.js.map +0 -1
  184. package/dist/index.cjs.js +0 -1
  185. package/dist/index.js +0 -1
  186. /package/dist/{esm → crmbonus-component-wake}/app-globals-0f993ce5.js +0 -0
  187. /package/dist/{esm → crmbonus-component-wake}/app-globals-0f993ce5.js.map +0 -0
@@ -6,6 +6,8 @@ function bind(fn, thisArg) {
6
6
  };
7
7
  }
8
8
 
9
+ 'use strict';
10
+
9
11
  // utils is a library of generic helper functions non-specific to axios
10
12
 
11
13
  const {toString} = Object.prototype;
@@ -763,6 +765,8 @@ const utils$1 = {
763
765
  asap
764
766
  };
765
767
 
768
+ 'use strict';
769
+
766
770
  /**
767
771
  * Create an Error with the specified message, config, error code, request and response.
768
772
  *
@@ -774,7 +778,7 @@ const utils$1 = {
774
778
  *
775
779
  * @returns {Error} The created error.
776
780
  */
777
- function AxiosError(message, code, config, request, response) {
781
+ function AxiosError$1(message, code, config, request, response) {
778
782
  Error.call(this);
779
783
 
780
784
  if (Error.captureStackTrace) {
@@ -794,7 +798,7 @@ function AxiosError(message, code, config, request, response) {
794
798
  }
795
799
  }
796
800
 
797
- utils$1.inherits(AxiosError, Error, {
801
+ utils$1.inherits(AxiosError$1, Error, {
798
802
  toJSON: function toJSON() {
799
803
  return {
800
804
  // Standard
@@ -816,7 +820,7 @@ utils$1.inherits(AxiosError, Error, {
816
820
  }
817
821
  });
818
822
 
819
- const prototype$1 = AxiosError.prototype;
823
+ const prototype$1 = AxiosError$1.prototype;
820
824
  const descriptors = {};
821
825
 
822
826
  [
@@ -837,11 +841,11 @@ const descriptors = {};
837
841
  descriptors[code] = {value: code};
838
842
  });
839
843
 
840
- Object.defineProperties(AxiosError, descriptors);
844
+ Object.defineProperties(AxiosError$1, descriptors);
841
845
  Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
842
846
 
843
847
  // eslint-disable-next-line func-names
844
- AxiosError.from = (error, code, config, request, response, customProps) => {
848
+ AxiosError$1.from = (error, code, config, request, response, customProps) => {
845
849
  const axiosError = Object.create(prototype$1);
846
850
 
847
851
  utils$1.toFlatObject(error, axiosError, function filter(obj) {
@@ -850,7 +854,7 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
850
854
  return prop !== 'isAxiosError';
851
855
  });
852
856
 
853
- AxiosError.call(axiosError, error.message, code, config, request, response);
857
+ AxiosError$1.call(axiosError, error.message, code, config, request, response);
854
858
 
855
859
  axiosError.cause = error;
856
860
 
@@ -864,6 +868,8 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
864
868
  // eslint-disable-next-line strict
865
869
  const httpAdapter = null;
866
870
 
871
+ 'use strict';
872
+
867
873
  /**
868
874
  * Determines if the given thing is a array or js object.
869
875
  *
@@ -942,13 +948,13 @@ const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop)
942
948
  *
943
949
  * @returns
944
950
  */
945
- function toFormData(obj, formData, options) {
951
+ function toFormData$1(obj, formData, options) {
946
952
  if (!utils$1.isObject(obj)) {
947
953
  throw new TypeError('target must be an object');
948
954
  }
949
955
 
950
956
  // eslint-disable-next-line no-param-reassign
951
- formData = formData || new (FormData)();
957
+ formData = formData || new (httpAdapter || FormData)();
952
958
 
953
959
  // eslint-disable-next-line no-param-reassign
954
960
  options = utils$1.toFlatObject(options, {
@@ -980,7 +986,7 @@ function toFormData(obj, formData, options) {
980
986
  }
981
987
 
982
988
  if (!useBlob && utils$1.isBlob(value)) {
983
- throw new AxiosError('Blob is not supported. Use a Buffer instead.');
989
+ throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
984
990
  }
985
991
 
986
992
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
@@ -1075,6 +1081,8 @@ function toFormData(obj, formData, options) {
1075
1081
  return formData;
1076
1082
  }
1077
1083
 
1084
+ 'use strict';
1085
+
1078
1086
  /**
1079
1087
  * It encodes a string by replacing all characters that are not in the unreserved set with
1080
1088
  * their percent-encoded equivalents
@@ -1109,7 +1117,7 @@ function encode$1(str) {
1109
1117
  function AxiosURLSearchParams(params, options) {
1110
1118
  this._pairs = [];
1111
1119
 
1112
- params && toFormData(params, this, options);
1120
+ params && toFormData$1(params, this, options);
1113
1121
  }
1114
1122
 
1115
1123
  const prototype = AxiosURLSearchParams.prototype;
@@ -1128,6 +1136,8 @@ prototype.toString = function toString(encoder) {
1128
1136
  }, '').join('&');
1129
1137
  };
1130
1138
 
1139
+ 'use strict';
1140
+
1131
1141
  /**
1132
1142
  * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
1133
1143
  * URI encoded counterparts
@@ -1187,6 +1197,8 @@ function buildURL(url, params, options) {
1187
1197
  return url;
1188
1198
  }
1189
1199
 
1200
+ 'use strict';
1201
+
1190
1202
  class InterceptorManager {
1191
1203
  constructor() {
1192
1204
  this.handlers = [];
@@ -1253,7 +1265,7 @@ class InterceptorManager {
1253
1265
  }
1254
1266
  }
1255
1267
 
1256
- const InterceptorManager$1 = InterceptorManager;
1268
+ 'use strict';
1257
1269
 
1258
1270
  const transitionalDefaults = {
1259
1271
  silentJSONParsing: true,
@@ -1261,10 +1273,15 @@ const transitionalDefaults = {
1261
1273
  clarifyTimeoutError: false
1262
1274
  };
1263
1275
 
1276
+ 'use strict';
1264
1277
  const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
1265
1278
 
1279
+ 'use strict';
1280
+
1266
1281
  const FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
1267
1282
 
1283
+ 'use strict';
1284
+
1268
1285
  const Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
1269
1286
 
1270
1287
  const platform$1 = {
@@ -1335,8 +1352,10 @@ const platform = {
1335
1352
  ...platform$1
1336
1353
  };
1337
1354
 
1355
+ 'use strict';
1356
+
1338
1357
  function toURLEncodedForm(data, options) {
1339
- return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
1358
+ return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
1340
1359
  visitor: function(value, key, path, helpers) {
1341
1360
  if (platform.isNode && utils$1.isBuffer(value)) {
1342
1361
  this.append(key, value.toString('base64'));
@@ -1348,6 +1367,8 @@ function toURLEncodedForm(data, options) {
1348
1367
  }, options));
1349
1368
  }
1350
1369
 
1370
+ 'use strict';
1371
+
1351
1372
  /**
1352
1373
  * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1353
1374
  *
@@ -1438,6 +1459,8 @@ function formDataToJSON(formData) {
1438
1459
  return null;
1439
1460
  }
1440
1461
 
1462
+ 'use strict';
1463
+
1441
1464
  /**
1442
1465
  * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1443
1466
  * of the input
@@ -1511,7 +1534,7 @@ const defaults = {
1511
1534
  if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1512
1535
  const _FormData = this.env && this.env.FormData;
1513
1536
 
1514
- return toFormData(
1537
+ return toFormData$1(
1515
1538
  isFileList ? {'files[]': data} : data,
1516
1539
  _FormData && new _FormData(),
1517
1540
  this.formSerializer
@@ -1545,7 +1568,7 @@ const defaults = {
1545
1568
  } catch (e) {
1546
1569
  if (strictJSONParsing) {
1547
1570
  if (e.name === 'SyntaxError') {
1548
- throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
1571
+ throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
1549
1572
  }
1550
1573
  throw e;
1551
1574
  }
@@ -1588,7 +1611,7 @@ utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
1588
1611
  defaults.headers[method] = {};
1589
1612
  });
1590
1613
 
1591
- const defaults$1 = defaults;
1614
+ 'use strict';
1592
1615
 
1593
1616
  // RawAxiosHeaders whose duplicates are ignored by node
1594
1617
  // c.f. https://nodejs.org/api/http.html#http_message_headers
@@ -1642,6 +1665,8 @@ const parseHeaders = rawHeaders => {
1642
1665
  return parsed;
1643
1666
  };
1644
1667
 
1668
+ 'use strict';
1669
+
1645
1670
  const $internals = Symbol('internals');
1646
1671
 
1647
1672
  function normalizeHeader(header) {
@@ -1710,7 +1735,7 @@ function buildAccessors(obj, header) {
1710
1735
  });
1711
1736
  }
1712
1737
 
1713
- class AxiosHeaders {
1738
+ class AxiosHeaders$1 {
1714
1739
  constructor(headers) {
1715
1740
  headers && this.set(headers);
1716
1741
  }
@@ -1923,10 +1948,10 @@ class AxiosHeaders {
1923
1948
  }
1924
1949
  }
1925
1950
 
1926
- AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
1951
+ AxiosHeaders$1.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
1927
1952
 
1928
1953
  // reserved names hotfix
1929
- utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
1954
+ utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({value}, key) => {
1930
1955
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
1931
1956
  return {
1932
1957
  get: () => value,
@@ -1936,9 +1961,9 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
1936
1961
  }
1937
1962
  });
1938
1963
 
1939
- utils$1.freezeMethods(AxiosHeaders);
1964
+ utils$1.freezeMethods(AxiosHeaders$1);
1940
1965
 
1941
- const AxiosHeaders$1 = AxiosHeaders;
1966
+ 'use strict';
1942
1967
 
1943
1968
  /**
1944
1969
  * Transform the data for a request or a response
@@ -1949,7 +1974,7 @@ const AxiosHeaders$1 = AxiosHeaders;
1949
1974
  * @returns {*} The resulting transformed data
1950
1975
  */
1951
1976
  function transformData(fns, response) {
1952
- const config = this || defaults$1;
1977
+ const config = this || defaults;
1953
1978
  const context = response || config;
1954
1979
  const headers = AxiosHeaders$1.from(context.headers);
1955
1980
  let data = context.data;
@@ -1963,10 +1988,14 @@ function transformData(fns, response) {
1963
1988
  return data;
1964
1989
  }
1965
1990
 
1966
- function isCancel(value) {
1991
+ 'use strict';
1992
+
1993
+ function isCancel$1(value) {
1967
1994
  return !!(value && value.__CANCEL__);
1968
1995
  }
1969
1996
 
1997
+ 'use strict';
1998
+
1970
1999
  /**
1971
2000
  * A `CanceledError` is an object that is thrown when an operation is canceled.
1972
2001
  *
@@ -1976,16 +2005,18 @@ function isCancel(value) {
1976
2005
  *
1977
2006
  * @returns {CanceledError} The created error.
1978
2007
  */
1979
- function CanceledError(message, config, request) {
2008
+ function CanceledError$1(message, config, request) {
1980
2009
  // eslint-disable-next-line no-eq-null,eqeqeq
1981
- AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
2010
+ AxiosError$1.call(this, message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
1982
2011
  this.name = 'CanceledError';
1983
2012
  }
1984
2013
 
1985
- utils$1.inherits(CanceledError, AxiosError, {
2014
+ utils$1.inherits(CanceledError$1, AxiosError$1, {
1986
2015
  __CANCEL__: true
1987
2016
  });
1988
2017
 
2018
+ 'use strict';
2019
+
1989
2020
  /**
1990
2021
  * Resolve or reject a Promise based on response status.
1991
2022
  *
@@ -2000,9 +2031,9 @@ function settle(resolve, reject, response) {
2000
2031
  if (!response.status || !validateStatus || validateStatus(response.status)) {
2001
2032
  resolve(response);
2002
2033
  } else {
2003
- reject(new AxiosError(
2034
+ reject(new AxiosError$1(
2004
2035
  'Request failed with status code ' + response.status,
2005
- [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2036
+ [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2006
2037
  response.config,
2007
2038
  response.request,
2008
2039
  response
@@ -2010,11 +2041,15 @@ function settle(resolve, reject, response) {
2010
2041
  }
2011
2042
  }
2012
2043
 
2044
+ 'use strict';
2045
+
2013
2046
  function parseProtocol(url) {
2014
2047
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2015
2048
  return match && match[1] || '';
2016
2049
  }
2017
2050
 
2051
+ 'use strict';
2052
+
2018
2053
  /**
2019
2054
  * Calculate data maxRate
2020
2055
  * @param {Number} [samplesCount= 10]
@@ -2151,6 +2186,8 @@ const progressEventDecorator = (total, throttled) => {
2151
2186
 
2152
2187
  const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2153
2188
 
2189
+ 'use strict';
2190
+
2154
2191
  const isURLSameOrigin = platform.hasStandardBrowserEnv ?
2155
2192
 
2156
2193
  // Standard browser envs have full support of the APIs needed to test
@@ -2253,6 +2290,8 @@ const cookies = platform.hasStandardBrowserEnv ?
2253
2290
  remove() {}
2254
2291
  };
2255
2292
 
2293
+ 'use strict';
2294
+
2256
2295
  /**
2257
2296
  * Determines whether the specified URL is absolute
2258
2297
  *
@@ -2267,6 +2306,8 @@ function isAbsoluteURL(url) {
2267
2306
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2268
2307
  }
2269
2308
 
2309
+ 'use strict';
2310
+
2270
2311
  /**
2271
2312
  * Creates a new URL by combining the specified URLs
2272
2313
  *
@@ -2281,6 +2322,8 @@ function combineURLs(baseURL, relativeURL) {
2281
2322
  : baseURL;
2282
2323
  }
2283
2324
 
2325
+ 'use strict';
2326
+
2284
2327
  /**
2285
2328
  * Creates a new URL by combining the baseURL with the requestedURL,
2286
2329
  * only when the requestedURL is not already an absolute URL.
@@ -2298,6 +2341,8 @@ function buildFullPath(baseURL, requestedURL) {
2298
2341
  return requestedURL;
2299
2342
  }
2300
2343
 
2344
+ 'use strict';
2345
+
2301
2346
  const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
2302
2347
 
2303
2348
  /**
@@ -2309,7 +2354,7 @@ const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing
2309
2354
  *
2310
2355
  * @returns {Object} New object resulting from merging config2 to config1
2311
2356
  */
2312
- function mergeConfig(config1, config2) {
2357
+ function mergeConfig$1(config1, config2) {
2313
2358
  // eslint-disable-next-line no-param-reassign
2314
2359
  config2 = config2 || {};
2315
2360
  const config = {};
@@ -2401,7 +2446,7 @@ function mergeConfig(config1, config2) {
2401
2446
  }
2402
2447
 
2403
2448
  const resolveConfig = (config) => {
2404
- const newConfig = mergeConfig({}, config);
2449
+ const newConfig = mergeConfig$1({}, config);
2405
2450
 
2406
2451
  let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
2407
2452
 
@@ -2536,7 +2581,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2536
2581
  return;
2537
2582
  }
2538
2583
 
2539
- reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
2584
+ reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
2540
2585
 
2541
2586
  // Clean up request
2542
2587
  request = null;
@@ -2546,7 +2591,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2546
2591
  request.onerror = function handleError() {
2547
2592
  // Real errors are hidden from us by the browser
2548
2593
  // onerror should only fire if it's a network error
2549
- reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
2594
+ reject(new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request));
2550
2595
 
2551
2596
  // Clean up request
2552
2597
  request = null;
@@ -2559,9 +2604,9 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2559
2604
  if (_config.timeoutErrorMessage) {
2560
2605
  timeoutErrorMessage = _config.timeoutErrorMessage;
2561
2606
  }
2562
- reject(new AxiosError(
2607
+ reject(new AxiosError$1(
2563
2608
  timeoutErrorMessage,
2564
- transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
2609
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
2565
2610
  config,
2566
2611
  request));
2567
2612
 
@@ -2611,7 +2656,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2611
2656
  if (!request) {
2612
2657
  return;
2613
2658
  }
2614
- reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
2659
+ reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
2615
2660
  request.abort();
2616
2661
  request = null;
2617
2662
  };
@@ -2625,7 +2670,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2625
2670
  const protocol = parseProtocol(_config.url);
2626
2671
 
2627
2672
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
2628
- reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
2673
+ reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
2629
2674
  return;
2630
2675
  }
2631
2676
 
@@ -2648,13 +2693,13 @@ const composeSignals = (signals, timeout) => {
2648
2693
  aborted = true;
2649
2694
  unsubscribe();
2650
2695
  const err = reason instanceof Error ? reason : this.reason;
2651
- controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
2696
+ controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
2652
2697
  }
2653
2698
  };
2654
2699
 
2655
2700
  let timer = timeout && setTimeout(() => {
2656
2701
  timer = null;
2657
- onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
2702
+ onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
2658
2703
  }, timeout);
2659
2704
 
2660
2705
  const unsubscribe = () => {
@@ -2678,8 +2723,6 @@ const composeSignals = (signals, timeout) => {
2678
2723
  }
2679
2724
  };
2680
2725
 
2681
- const composeSignals$1 = composeSignals;
2682
-
2683
2726
  const streamChunk = function* (chunk, chunkSize) {
2684
2727
  let len = chunk.byteLength;
2685
2728
 
@@ -2813,7 +2856,7 @@ isFetchSupported && (((res) => {
2813
2856
  ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
2814
2857
  !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
2815
2858
  (_, config) => {
2816
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
2859
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
2817
2860
  });
2818
2861
  });
2819
2862
  })(new Response));
@@ -2872,7 +2915,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
2872
2915
 
2873
2916
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
2874
2917
 
2875
- let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
2918
+ let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
2876
2919
 
2877
2920
  let request;
2878
2921
 
@@ -2974,14 +3017,14 @@ const fetchAdapter = isFetchSupported && (async (config) => {
2974
3017
 
2975
3018
  if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
2976
3019
  throw Object.assign(
2977
- new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
3020
+ new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
2978
3021
  {
2979
3022
  cause: err.cause || err
2980
3023
  }
2981
3024
  )
2982
3025
  }
2983
3026
 
2984
- throw AxiosError.from(err, err && err.code, config, request);
3027
+ throw AxiosError$1.from(err, err && err.code, config, request);
2985
3028
  }
2986
3029
  });
2987
3030
 
@@ -3026,7 +3069,7 @@ const adapters = {
3026
3069
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3027
3070
 
3028
3071
  if (adapter === undefined) {
3029
- throw new AxiosError(`Unknown adapter '${id}'`);
3072
+ throw new AxiosError$1(`Unknown adapter '${id}'`);
3030
3073
  }
3031
3074
  }
3032
3075
 
@@ -3048,7 +3091,7 @@ const adapters = {
3048
3091
  (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
3049
3092
  'as no adapter specified';
3050
3093
 
3051
- throw new AxiosError(
3094
+ throw new AxiosError$1(
3052
3095
  `There is no suitable adapter to dispatch the request ` + s,
3053
3096
  'ERR_NOT_SUPPORT'
3054
3097
  );
@@ -3059,6 +3102,8 @@ const adapters = {
3059
3102
  adapters: knownAdapters
3060
3103
  };
3061
3104
 
3105
+ 'use strict';
3106
+
3062
3107
  /**
3063
3108
  * Throws a `CanceledError` if cancellation has been requested.
3064
3109
  *
@@ -3072,7 +3117,7 @@ function throwIfCancellationRequested(config) {
3072
3117
  }
3073
3118
 
3074
3119
  if (config.signal && config.signal.aborted) {
3075
- throw new CanceledError(null, config);
3120
+ throw new CanceledError$1(null, config);
3076
3121
  }
3077
3122
  }
3078
3123
 
@@ -3098,7 +3143,7 @@ function dispatchRequest(config) {
3098
3143
  config.headers.setContentType('application/x-www-form-urlencoded', false);
3099
3144
  }
3100
3145
 
3101
- const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
3146
+ const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
3102
3147
 
3103
3148
  return adapter(config).then(function onAdapterResolution(response) {
3104
3149
  throwIfCancellationRequested(config);
@@ -3114,7 +3159,7 @@ function dispatchRequest(config) {
3114
3159
 
3115
3160
  return response;
3116
3161
  }, function onAdapterRejection(reason) {
3117
- if (!isCancel(reason)) {
3162
+ if (!isCancel$1(reason)) {
3118
3163
  throwIfCancellationRequested(config);
3119
3164
 
3120
3165
  // Transform response data
@@ -3132,7 +3177,9 @@ function dispatchRequest(config) {
3132
3177
  });
3133
3178
  }
3134
3179
 
3135
- const VERSION = "1.7.7";
3180
+ const VERSION$1 = "1.7.7";
3181
+
3182
+ 'use strict';
3136
3183
 
3137
3184
  const validators$1 = {};
3138
3185
 
@@ -3156,15 +3203,15 @@ const deprecatedWarnings = {};
3156
3203
  */
3157
3204
  validators$1.transitional = function transitional(validator, version, message) {
3158
3205
  function formatMessage(opt, desc) {
3159
- return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
3206
+ return '[Axios v' + VERSION$1 + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
3160
3207
  }
3161
3208
 
3162
3209
  // eslint-disable-next-line func-names
3163
3210
  return (value, opt, opts) => {
3164
3211
  if (validator === false) {
3165
- throw new AxiosError(
3212
+ throw new AxiosError$1(
3166
3213
  formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
3167
- AxiosError.ERR_DEPRECATED
3214
+ AxiosError$1.ERR_DEPRECATED
3168
3215
  );
3169
3216
  }
3170
3217
 
@@ -3195,7 +3242,7 @@ validators$1.transitional = function transitional(validator, version, message) {
3195
3242
 
3196
3243
  function assertOptions(options, schema, allowUnknown) {
3197
3244
  if (typeof options !== 'object') {
3198
- throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
3245
+ throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
3199
3246
  }
3200
3247
  const keys = Object.keys(options);
3201
3248
  let i = keys.length;
@@ -3206,12 +3253,12 @@ function assertOptions(options, schema, allowUnknown) {
3206
3253
  const value = options[opt];
3207
3254
  const result = value === undefined || validator(value, opt, options);
3208
3255
  if (result !== true) {
3209
- throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
3256
+ throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
3210
3257
  }
3211
3258
  continue;
3212
3259
  }
3213
3260
  if (allowUnknown !== true) {
3214
- throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
3261
+ throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
3215
3262
  }
3216
3263
  }
3217
3264
  }
@@ -3221,6 +3268,8 @@ const validator = {
3221
3268
  validators: validators$1
3222
3269
  };
3223
3270
 
3271
+ 'use strict';
3272
+
3224
3273
  const validators = validator.validators;
3225
3274
 
3226
3275
  /**
@@ -3230,12 +3279,12 @@ const validators = validator.validators;
3230
3279
  *
3231
3280
  * @return {Axios} A new instance of Axios
3232
3281
  */
3233
- class Axios {
3282
+ class Axios$1 {
3234
3283
  constructor(instanceConfig) {
3235
3284
  this.defaults = instanceConfig;
3236
3285
  this.interceptors = {
3237
- request: new InterceptorManager$1(),
3238
- response: new InterceptorManager$1()
3286
+ request: new InterceptorManager(),
3287
+ response: new InterceptorManager()
3239
3288
  };
3240
3289
  }
3241
3290
 
@@ -3284,7 +3333,7 @@ class Axios {
3284
3333
  config = configOrUrl || {};
3285
3334
  }
3286
3335
 
3287
- config = mergeConfig(this.defaults, config);
3336
+ config = mergeConfig$1(this.defaults, config);
3288
3337
 
3289
3338
  const {transitional, paramsSerializer, headers} = config;
3290
3339
 
@@ -3398,7 +3447,7 @@ class Axios {
3398
3447
  }
3399
3448
 
3400
3449
  getUri(config) {
3401
- config = mergeConfig(this.defaults, config);
3450
+ config = mergeConfig$1(this.defaults, config);
3402
3451
  const fullPath = buildFullPath(config.baseURL, config.url);
3403
3452
  return buildURL(fullPath, config.params, config.paramsSerializer);
3404
3453
  }
@@ -3407,8 +3456,8 @@ class Axios {
3407
3456
  // Provide aliases for supported request methods
3408
3457
  utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
3409
3458
  /*eslint func-names:0*/
3410
- Axios.prototype[method] = function(url, config) {
3411
- return this.request(mergeConfig(config || {}, {
3459
+ Axios$1.prototype[method] = function(url, config) {
3460
+ return this.request(mergeConfig$1(config || {}, {
3412
3461
  method,
3413
3462
  url,
3414
3463
  data: (config || {}).data
@@ -3421,7 +3470,7 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
3421
3470
 
3422
3471
  function generateHTTPMethod(isForm) {
3423
3472
  return function httpMethod(url, data, config) {
3424
- return this.request(mergeConfig(config || {}, {
3473
+ return this.request(mergeConfig$1(config || {}, {
3425
3474
  method,
3426
3475
  headers: isForm ? {
3427
3476
  'Content-Type': 'multipart/form-data'
@@ -3432,12 +3481,12 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
3432
3481
  };
3433
3482
  }
3434
3483
 
3435
- Axios.prototype[method] = generateHTTPMethod();
3484
+ Axios$1.prototype[method] = generateHTTPMethod();
3436
3485
 
3437
- Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
3486
+ Axios$1.prototype[method + 'Form'] = generateHTTPMethod(true);
3438
3487
  });
3439
3488
 
3440
- const Axios$1 = Axios;
3489
+ 'use strict';
3441
3490
 
3442
3491
  /**
3443
3492
  * A `CancelToken` is an object that can be used to request cancellation of an operation.
@@ -3446,7 +3495,7 @@ const Axios$1 = Axios;
3446
3495
  *
3447
3496
  * @returns {CancelToken}
3448
3497
  */
3449
- class CancelToken {
3498
+ class CancelToken$1 {
3450
3499
  constructor(executor) {
3451
3500
  if (typeof executor !== 'function') {
3452
3501
  throw new TypeError('executor must be a function.');
@@ -3494,7 +3543,7 @@ class CancelToken {
3494
3543
  return;
3495
3544
  }
3496
3545
 
3497
- token.reason = new CanceledError(message, config, request);
3546
+ token.reason = new CanceledError$1(message, config, request);
3498
3547
  resolvePromise(token.reason);
3499
3548
  });
3500
3549
  }
@@ -3559,7 +3608,7 @@ class CancelToken {
3559
3608
  */
3560
3609
  static source() {
3561
3610
  let cancel;
3562
- const token = new CancelToken(function executor(c) {
3611
+ const token = new CancelToken$1(function executor(c) {
3563
3612
  cancel = c;
3564
3613
  });
3565
3614
  return {
@@ -3569,7 +3618,7 @@ class CancelToken {
3569
3618
  }
3570
3619
  }
3571
3620
 
3572
- const CancelToken$1 = CancelToken;
3621
+ 'use strict';
3573
3622
 
3574
3623
  /**
3575
3624
  * Syntactic sugar for invoking a function and expanding an array for arguments.
@@ -3592,12 +3641,14 @@ const CancelToken$1 = CancelToken;
3592
3641
  *
3593
3642
  * @returns {Function}
3594
3643
  */
3595
- function spread(callback) {
3644
+ function spread$1(callback) {
3596
3645
  return function wrap(arr) {
3597
3646
  return callback.apply(null, arr);
3598
3647
  };
3599
3648
  }
3600
3649
 
3650
+ 'use strict';
3651
+
3601
3652
  /**
3602
3653
  * Determines whether the payload is an error thrown by Axios
3603
3654
  *
@@ -3605,11 +3656,11 @@ function spread(callback) {
3605
3656
  *
3606
3657
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3607
3658
  */
3608
- function isAxiosError(payload) {
3659
+ function isAxiosError$1(payload) {
3609
3660
  return utils$1.isObject(payload) && (payload.isAxiosError === true);
3610
3661
  }
3611
3662
 
3612
- const HttpStatusCode = {
3663
+ const HttpStatusCode$1 = {
3613
3664
  Continue: 100,
3614
3665
  SwitchingProtocols: 101,
3615
3666
  Processing: 102,
@@ -3675,11 +3726,11 @@ const HttpStatusCode = {
3675
3726
  NetworkAuthenticationRequired: 511,
3676
3727
  };
3677
3728
 
3678
- Object.entries(HttpStatusCode).forEach(([key, value]) => {
3679
- HttpStatusCode[value] = key;
3729
+ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
3730
+ HttpStatusCode$1[value] = key;
3680
3731
  });
3681
3732
 
3682
- const HttpStatusCode$1 = HttpStatusCode;
3733
+ 'use strict';
3683
3734
 
3684
3735
  /**
3685
3736
  * Create an instance of Axios
@@ -3700,27 +3751,27 @@ function createInstance(defaultConfig) {
3700
3751
 
3701
3752
  // Factory for creating new instances
3702
3753
  instance.create = function create(instanceConfig) {
3703
- return createInstance(mergeConfig(defaultConfig, instanceConfig));
3754
+ return createInstance(mergeConfig$1(defaultConfig, instanceConfig));
3704
3755
  };
3705
3756
 
3706
3757
  return instance;
3707
3758
  }
3708
3759
 
3709
3760
  // Create the default instance to be exported
3710
- const axios = createInstance(defaults$1);
3761
+ const axios = createInstance(defaults);
3711
3762
 
3712
3763
  // Expose Axios class to allow class inheritance
3713
3764
  axios.Axios = Axios$1;
3714
3765
 
3715
3766
  // Expose Cancel & CancelToken
3716
- axios.CanceledError = CanceledError;
3767
+ axios.CanceledError = CanceledError$1;
3717
3768
  axios.CancelToken = CancelToken$1;
3718
- axios.isCancel = isCancel;
3719
- axios.VERSION = VERSION;
3720
- axios.toFormData = toFormData;
3769
+ axios.isCancel = isCancel$1;
3770
+ axios.VERSION = VERSION$1;
3771
+ axios.toFormData = toFormData$1;
3721
3772
 
3722
3773
  // Expose AxiosError class
3723
- axios.AxiosError = AxiosError;
3774
+ axios.AxiosError = AxiosError$1;
3724
3775
 
3725
3776
  // alias for CanceledError for backward compatibility
3726
3777
  axios.Cancel = axios.CanceledError;
@@ -3730,13 +3781,13 @@ axios.all = function all(promises) {
3730
3781
  return Promise.all(promises);
3731
3782
  };
3732
3783
 
3733
- axios.spread = spread;
3784
+ axios.spread = spread$1;
3734
3785
 
3735
3786
  // Expose isAxiosError
3736
- axios.isAxiosError = isAxiosError;
3787
+ axios.isAxiosError = isAxiosError$1;
3737
3788
 
3738
3789
  // Expose mergeConfig
3739
- axios.mergeConfig = mergeConfig;
3790
+ axios.mergeConfig = mergeConfig$1;
3740
3791
 
3741
3792
  axios.AxiosHeaders = AxiosHeaders$1;
3742
3793
 
@@ -3748,14 +3799,36 @@ axios.HttpStatusCode = HttpStatusCode$1;
3748
3799
 
3749
3800
  axios.default = axios;
3750
3801
 
3751
- // this module should only have a default export
3752
- const axios$1 = axios;
3802
+ // This module is intended to unwrap Axios default export as named.
3803
+ // Keep top-level export same with static properties
3804
+ // so that it can keep same with es module or cjs
3805
+ const {
3806
+ Axios,
3807
+ AxiosError,
3808
+ CanceledError,
3809
+ isCancel,
3810
+ CancelToken,
3811
+ VERSION,
3812
+ all,
3813
+ Cancel,
3814
+ isAxiosError,
3815
+ spread,
3816
+ toFormData,
3817
+ AxiosHeaders,
3818
+ HttpStatusCode,
3819
+ formToJSON,
3820
+ getAdapter,
3821
+ mergeConfig
3822
+ } = axios;
3753
3823
 
3754
3824
  const CRM_BONUS_API_URL = "https://crmbonus-service-staging-d15ba5377115.herokuapp.com"; //"https://typically-workable-perch.ngrok-free.app"; // "http://localhost:3500";
3825
+ const CRM_BONUS_ID_LOJA = "undefined";
3826
+ const CRM_BONUS_CODEMPRESA = "undefined";
3827
+ const CRM_BONUS_AUTHORIZATION = "undefined";
3755
3828
 
3756
3829
  class CrmBonusService {
3757
3830
  constructor() {
3758
- this.axiosInstance = axios$1.create({
3831
+ this.axiosInstance = axios.create({
3759
3832
  baseURL: CRM_BONUS_API_URL,
3760
3833
  headers: {
3761
3834
  'Content-Type': 'application/json',
@@ -3769,7 +3842,7 @@ class CrmBonusService {
3769
3842
  return response.data;
3770
3843
  }
3771
3844
  async updateOrder(cartId, orderId) {
3772
- const response = await this.axiosInstance.post("/api/crm-bonus/teste", { cartId, orderId }, { headers: { 'Content-Type': 'application/json' } });
3845
+ const response = await this.axiosInstance.post(`/api/update_cart/${cartId}`, { orderId }, { headers: { 'Content-Type': 'application/json' } });
3773
3846
  console.log('response', response.data);
3774
3847
  }
3775
3848
  async sendPin(phone, store) {
@@ -3790,6 +3863,6 @@ class CrmBonusService {
3790
3863
  }
3791
3864
  }
3792
3865
 
3793
- exports.CrmBonusService = CrmBonusService;
3866
+ export { CrmBonusService as C };
3794
3867
 
3795
- //# sourceMappingURL=crmbonus.service-a626c034.js.map
3868
+ //# sourceMappingURL=crmbonus.service-5e579e1c.js.map