@medipass/web-sdk 11.38.1-feature-eclipse-reporting.0 → 11.38.1-feature-typescript-claudia.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/.eslintrc.cjs +96 -0
  2. package/babel.config.js +2 -1
  3. package/lib/index.d.ts +262 -0
  4. package/lib/index.js +83 -3
  5. package/lib/{regions-7b23080d.js → regions-a0a28864.js} +2 -2
  6. package/lib/resources/accounts.d.ts +215 -0
  7. package/lib/resources/accounts.js +3 -3
  8. package/lib/resources/actions.d.ts +13 -0
  9. package/lib/resources/actions.js +3 -3
  10. package/lib/resources/api-keys.d.ts +24 -0
  11. package/lib/resources/api-keys.js +3 -3
  12. package/lib/resources/applications.d.ts +31 -0
  13. package/lib/resources/applications.js +3 -3
  14. package/lib/resources/attachments.d.ts +32 -0
  15. package/lib/resources/attachments.js +3 -3
  16. package/lib/resources/auth.d.ts +59 -0
  17. package/lib/resources/auth.js +3 -3
  18. package/lib/resources/bulk-submits.d.ts +17 -0
  19. package/lib/resources/bulk-submits.js +3 -3
  20. package/lib/resources/bulk-uploads.d.ts +26 -0
  21. package/lib/resources/bulk-uploads.js +3 -3
  22. package/lib/resources/business-profiles.d.ts +18 -0
  23. package/lib/resources/business-profiles.js +3 -3
  24. package/lib/resources/businesses.d.ts +132 -0
  25. package/lib/resources/businesses.js +3 -3
  26. package/lib/resources/claim-items.d.ts +31 -0
  27. package/lib/resources/claim-items.js +3 -3
  28. package/lib/resources/devices.d.ts +11 -0
  29. package/lib/resources/devices.js +3 -3
  30. package/lib/resources/doc-accounts.d.ts +32 -0
  31. package/lib/resources/doc-accounts.js +3 -3
  32. package/lib/resources/documents.d.ts +90 -0
  33. package/lib/resources/documents.js +3 -3
  34. package/lib/resources/emails.d.ts +14 -0
  35. package/lib/resources/emails.js +3 -3
  36. package/lib/resources/form-application-templates.d.ts +20 -0
  37. package/lib/resources/form-application-templates.js +3 -3
  38. package/lib/resources/form-applications.d.ts +27 -0
  39. package/lib/resources/form-applications.js +3 -3
  40. package/lib/resources/forms.d.ts +100 -0
  41. package/lib/resources/forms.js +3 -3
  42. package/lib/resources/funder-services.d.ts +8 -0
  43. package/lib/resources/funder-services.js +3 -3
  44. package/lib/resources/funder-settings.d.ts +8 -0
  45. package/lib/resources/funder-settings.js +3 -3
  46. package/lib/resources/funders.d.ts +5 -0
  47. package/lib/resources/funders.js +3 -3
  48. package/lib/resources/futures.d.ts +85 -0
  49. package/lib/resources/futures.js +3 -3
  50. package/lib/resources/health-fund-accounts.d.ts +78 -0
  51. package/lib/resources/health-fund-accounts.js +3 -3
  52. package/lib/resources/health-fund-settings.d.ts +39 -0
  53. package/lib/resources/health-fund-settings.js +3 -3
  54. package/lib/resources/healthfunds.d.ts +64 -0
  55. package/lib/resources/healthfunds.js +3 -3
  56. package/lib/resources/icditems.d.ts +14 -0
  57. package/lib/resources/icditems.js +3 -3
  58. package/lib/resources/invoice-scans.d.ts +26 -0
  59. package/lib/resources/invoice-scans.js +3 -3
  60. package/lib/resources/jhcs.d.ts +7 -0
  61. package/lib/resources/jhcs.js +3 -3
  62. package/lib/resources/kyc.d.ts +109 -0
  63. package/lib/resources/kyc.js +3 -3
  64. package/lib/resources/logs.d.ts +16 -0
  65. package/lib/resources/logs.js +3 -3
  66. package/lib/resources/members.d.ts +92 -0
  67. package/lib/resources/members.js +3 -3
  68. package/lib/resources/message-mappings.d.ts +9 -0
  69. package/lib/resources/message-mappings.js +3 -3
  70. package/lib/resources/minions.d.ts +40 -0
  71. package/lib/resources/minions.js +3 -3
  72. package/lib/resources/modalities.d.ts +19 -0
  73. package/lib/resources/modalities.js +3 -3
  74. package/lib/resources/notes.d.ts +17 -0
  75. package/lib/resources/notes.js +3 -3
  76. package/lib/resources/onboarding-applications.d.ts +52 -0
  77. package/lib/resources/onboarding-applications.js +3 -3
  78. package/lib/resources/onboarding-requests.d.ts +39 -0
  79. package/lib/resources/onboarding-requests.js +3 -3
  80. package/lib/resources/ops.d.ts +60 -0
  81. package/lib/resources/ops.js +3 -3
  82. package/lib/resources/organisations.d.ts +7 -0
  83. package/lib/resources/organisations.js +3 -3
  84. package/lib/resources/partners.d.ts +50 -0
  85. package/lib/resources/partners.js +3 -3
  86. package/lib/resources/patients.d.ts +44 -0
  87. package/lib/resources/patients.js +3 -3
  88. package/lib/resources/payments.d.ts +155 -0
  89. package/lib/resources/payments.js +3 -3
  90. package/lib/resources/pms.d.ts +43 -0
  91. package/lib/resources/pms.js +3 -3
  92. package/lib/resources/practice-profiles.d.ts +20 -0
  93. package/lib/resources/practice-profiles.js +3 -3
  94. package/lib/resources/practice-types.d.ts +6 -0
  95. package/lib/resources/practice-types.js +3 -3
  96. package/lib/resources/practices.d.ts +137 -0
  97. package/lib/resources/practices.js +3 -3
  98. package/lib/resources/products.d.ts +23 -0
  99. package/lib/resources/products.js +3 -3
  100. package/lib/resources/professional-categories.d.ts +23 -0
  101. package/lib/resources/professional-categories.js +3 -3
  102. package/lib/resources/provider-number-types.d.ts +16 -0
  103. package/lib/resources/provider-number-types.js +3 -3
  104. package/lib/resources/provider-registration-types.d.ts +15 -0
  105. package/lib/resources/provider-registration-types.js +3 -3
  106. package/lib/resources/provider-requests.d.ts +17 -0
  107. package/lib/resources/provider-requests.js +3 -3
  108. package/lib/resources/provider-types.d.ts +6 -0
  109. package/lib/resources/provider-types.js +3 -3
  110. package/lib/resources/ref-sources.d.ts +6 -0
  111. package/lib/resources/ref-sources.js +3 -3
  112. package/lib/resources/risk.d.ts +13 -0
  113. package/lib/resources/risk.js +3 -3
  114. package/lib/resources/rnas.d.ts +43 -0
  115. package/lib/resources/rnas.js +3 -3
  116. package/lib/resources/roles.d.ts +7 -0
  117. package/lib/resources/roles.js +3 -3
  118. package/lib/resources/self-checkout-sessions.d.ts +134 -0
  119. package/lib/resources/self-checkout-sessions.js +3 -3
  120. package/lib/resources/services.d.ts +88 -0
  121. package/lib/resources/services.js +3 -3
  122. package/lib/resources/settlements.d.ts +37 -0
  123. package/lib/resources/settlements.js +3 -3
  124. package/lib/resources/sign-up.d.ts +5 -0
  125. package/lib/resources/sign-up.js +3 -3
  126. package/lib/resources/specialties.d.ts +23 -0
  127. package/lib/resources/specialties.js +3 -3
  128. package/lib/resources/staff-profiles.d.ts +20 -0
  129. package/lib/resources/staff-profiles.js +3 -3
  130. package/lib/resources/staff.d.ts +242 -0
  131. package/lib/resources/staff.js +3 -3
  132. package/lib/resources/statistics.d.ts +56 -0
  133. package/lib/resources/statistics.js +3 -3
  134. package/lib/resources/subscriptions.d.ts +32 -0
  135. package/lib/resources/subscriptions.js +3 -3
  136. package/lib/resources/terminals.d.ts +71 -0
  137. package/lib/resources/terminals.js +3 -3
  138. package/lib/resources/transaction-export.d.ts +18 -0
  139. package/lib/resources/transaction-export.js +3 -3
  140. package/lib/resources/transactions.d.ts +466 -0
  141. package/lib/resources/transactions.js +3 -3
  142. package/lib/resources/triggers.d.ts +20 -0
  143. package/lib/resources/triggers.js +3 -3
  144. package/lib/resources/vendors.d.ts +9 -0
  145. package/lib/resources/vendors.js +3 -3
  146. package/lib/resources/verify.d.ts +9 -0
  147. package/lib/resources/verify.js +3 -3
  148. package/lib/resources/workers.d.ts +3 -0
  149. package/lib/resources/workers.js +3 -3
  150. package/lib/resources/workflow-exceptions.d.ts +5 -0
  151. package/lib/resources/workflow-exceptions.js +3 -3
  152. package/lib/services/aws.d.ts +54 -0
  153. package/lib/services/aws.js +3 -3
  154. package/lib/services/storage.d.ts +28 -0
  155. package/lib/services/storage.js +126 -18
  156. package/lib/services/version.d.ts +21 -0
  157. package/lib/services/version.js +3 -3
  158. package/lib/{staff-1ec3d500.js → staff-96febcd8.js} +345 -738
  159. package/lib/types/documents.d.ts +115 -0
  160. package/lib/types/documents.js +2 -0
  161. package/lib/types/forms.d.ts +67 -0
  162. package/lib/types/forms.js +2 -0
  163. package/lib/types/index.d.ts +42 -0
  164. package/lib/types/index.js +2 -0
  165. package/lib/types/message-mappings.d.ts +18 -0
  166. package/lib/types/message-mappings.js +2 -0
  167. package/lib/types/notes.d.ts +5 -0
  168. package/lib/types/notes.js +2 -0
  169. package/lib/types/products.d.ts +34 -0
  170. package/lib/types/products.js +2 -0
  171. package/lib/types/professional-categories.d.ts +20 -0
  172. package/lib/types/professional-categories.js +2 -0
  173. package/lib/types/specialties.d.ts +22 -0
  174. package/lib/types/specialties.js +2 -0
  175. package/lib/types/subscriptions.d.ts +52 -0
  176. package/lib/types/subscriptions.js +2 -0
  177. package/lib/utils/application.d.ts +1 -0
  178. package/lib/utils/application.js +3 -3
  179. package/lib/utils/base-urls/core.d.ts +19 -0
  180. package/lib/utils/base-urls/index.d.ts +37 -0
  181. package/lib/utils/base-urls/risk.d.ts +17 -0
  182. package/lib/utils/does-param-exist.d.ts +2 -0
  183. package/lib/utils/get-axios-error.d.ts +2 -0
  184. package/lib/utils/param-error.d.ts +3 -0
  185. package/lib/utils/professions.d.ts +3 -0
  186. package/lib/utils/professions.js +3 -3
  187. package/lib/utils/regions.d.ts +1 -0
  188. package/lib/utils/regions.js +2 -2
  189. package/lib/utils/request.d.ts +3 -0
  190. package/lib/utils/request.js +3 -3
  191. package/lib/utils/staff.d.ts +8 -0
  192. package/lib/utils/staff.js +3 -3
  193. package/package.json +19 -9
  194. package/tsconfig.json +33 -0
  195. package/types/globals.d.ts +7 -0
  196. package/types/index.d.ts +1 -0
  197. package/.eslintrc +0 -3
  198. package/lib/_types/documents.js.flow +0 -118
  199. package/lib/_types/forms.js.flow +0 -57
  200. package/lib/_types/index.js.flow +0 -47
  201. package/lib/_types/message-mappings.js.flow +0 -22
  202. package/lib/_types/notes.js.flow +0 -7
  203. package/lib/_types/products.js.flow +0 -40
  204. package/lib/_types/professional-categories.js.flow +0 -25
  205. package/lib/_types/specialties.js.flow +0 -27
  206. package/lib/_types/subscriptions.js.flow +0 -58
  207. package/lib/index.js.flow +0 -438
  208. package/lib/resources/accounts.js.flow +0 -445
  209. package/lib/resources/actions.js.flow +0 -25
  210. package/lib/resources/api-keys.js.flow +0 -54
  211. package/lib/resources/applications.js.flow +0 -60
  212. package/lib/resources/attachments.js.flow +0 -75
  213. package/lib/resources/auth.js.flow +0 -185
  214. package/lib/resources/bulk-submits.js.flow +0 -43
  215. package/lib/resources/bulk-uploads.js.flow +0 -56
  216. package/lib/resources/business-profiles.js.flow +0 -45
  217. package/lib/resources/businesses.js.flow +0 -267
  218. package/lib/resources/claim-items.js.flow +0 -76
  219. package/lib/resources/devices.js.flow +0 -64
  220. package/lib/resources/doc-accounts.js.flow +0 -61
  221. package/lib/resources/documents.js.flow +0 -216
  222. package/lib/resources/emails.js.flow +0 -96
  223. package/lib/resources/form-application-templates.js.flow +0 -52
  224. package/lib/resources/form-applications.js.flow +0 -62
  225. package/lib/resources/forms.js.flow +0 -222
  226. package/lib/resources/funder-services.js.flow +0 -17
  227. package/lib/resources/funder-settings.js.flow +0 -58
  228. package/lib/resources/funders.js.flow +0 -15
  229. package/lib/resources/futures.js.flow +0 -154
  230. package/lib/resources/health-fund-accounts.js.flow +0 -198
  231. package/lib/resources/health-fund-settings.js.flow +0 -104
  232. package/lib/resources/healthfunds.js.flow +0 -139
  233. package/lib/resources/icditems.js.flow +0 -36
  234. package/lib/resources/invoice-scans.js.flow +0 -56
  235. package/lib/resources/jhcs.js.flow +0 -20
  236. package/lib/resources/kyc.js.flow +0 -216
  237. package/lib/resources/logs.js.flow +0 -32
  238. package/lib/resources/members.js.flow +0 -196
  239. package/lib/resources/message-mappings.js.flow +0 -25
  240. package/lib/resources/minions.js.flow +0 -96
  241. package/lib/resources/modalities.js.flow +0 -46
  242. package/lib/resources/notes.js.flow +0 -112
  243. package/lib/resources/onboarding-applications.js.flow +0 -142
  244. package/lib/resources/onboarding-requests.js.flow +0 -97
  245. package/lib/resources/ops.js.flow +0 -116
  246. package/lib/resources/organisations.js.flow +0 -15
  247. package/lib/resources/partners.js.flow +0 -118
  248. package/lib/resources/patients.js.flow +0 -102
  249. package/lib/resources/payments.js.flow +0 -523
  250. package/lib/resources/pms.js.flow +0 -102
  251. package/lib/resources/practice-profiles.js.flow +0 -51
  252. package/lib/resources/practice-types.js.flow +0 -14
  253. package/lib/resources/practices.js.flow +0 -314
  254. package/lib/resources/products.js.flow +0 -48
  255. package/lib/resources/professional-categories.js.flow +0 -56
  256. package/lib/resources/provider-number-types.js.flow +0 -32
  257. package/lib/resources/provider-registration-types.js.flow +0 -32
  258. package/lib/resources/provider-requests.js.flow +0 -46
  259. package/lib/resources/provider-types.js.flow +0 -14
  260. package/lib/resources/ref-sources.js.flow +0 -16
  261. package/lib/resources/risk.js.flow +0 -29
  262. package/lib/resources/rnas.js.flow +0 -108
  263. package/lib/resources/roles.js.flow +0 -12
  264. package/lib/resources/self-checkout-sessions.js.flow +0 -382
  265. package/lib/resources/services.js.flow +0 -219
  266. package/lib/resources/settlements.js.flow +0 -97
  267. package/lib/resources/sign-up.js.flow +0 -15
  268. package/lib/resources/specialties.js.flow +0 -46
  269. package/lib/resources/staff-profiles.js.flow +0 -51
  270. package/lib/resources/staff.js.flow +0 -583
  271. package/lib/resources/statistics.js.flow +0 -147
  272. package/lib/resources/subscriptions.js.flow +0 -81
  273. package/lib/resources/terminals.js.flow +0 -161
  274. package/lib/resources/transaction-export.js.flow +0 -48
  275. package/lib/resources/transactions.js.flow +0 -1097
  276. package/lib/resources/triggers.js.flow +0 -36
  277. package/lib/resources/vendors.js.flow +0 -28
  278. package/lib/resources/verify.js.flow +0 -14
  279. package/lib/resources/workers.js.flow +0 -10
  280. package/lib/resources/workflow-exceptions.js.flow +0 -17
  281. package/lib/services/__mocks__/storage.js.flow +0 -30
  282. package/lib/services/aws.js.flow +0 -339
  283. package/lib/services/storage.js.flow +0 -92
  284. package/lib/services/version.js.flow +0 -73
  285. package/lib/storage-4b403caa.js +0 -1300
  286. package/lib/utils/application.js.flow +0 -23
  287. package/lib/utils/base-urls/core.js.flow +0 -18
  288. package/lib/utils/base-urls/index.js.flow +0 -7
  289. package/lib/utils/base-urls/risk.js.flow +0 -16
  290. package/lib/utils/does-param-exist.js.flow +0 -23
  291. package/lib/utils/get-axios-error.js.flow +0 -8
  292. package/lib/utils/param-error.js.flow +0 -8
  293. package/lib/utils/professions.js.flow +0 -66
  294. package/lib/utils/regions.js.flow +0 -21
  295. package/lib/utils/request.js.flow +0 -36
  296. package/lib/utils/staff.js.flow +0 -81
@@ -1,1300 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
6
- var storageEngine = _interopDefault(require('store/src/store-engine'));
7
- var localStorage = _interopDefault(require('store/storages/localStorage'));
8
- var sessionStorage = _interopDefault(require('store/storages/sessionStorage'));
9
- var masked = _interopDefault(require('masked'));
10
- var sensitiveKeys = require('@medipass/utils/sensitive-keys');
11
-
12
- function unwrapExports (x) {
13
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
14
- }
15
-
16
- function createCommonjsModule(fn, module) {
17
- return module = { exports: {} }, fn(module, module.exports), module.exports;
18
- }
19
-
20
- var reactIs_production_min = createCommonjsModule(function (module, exports) {
21
- Object.defineProperty(exports,"__esModule",{value:!0});
22
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):
23
- 60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.fundamental"):60117,w=b?Symbol.for("react.responder"):60118,x=b?Symbol.for("react.scope"):60119;function y(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function z(a){return y(a)===m}
24
- exports.typeOf=y;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;
25
- exports.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w||a.$$typeof===x)};exports.isAsyncMode=function(a){return z(a)||y(a)===l};exports.isConcurrentMode=z;exports.isContextConsumer=function(a){return y(a)===k};exports.isContextProvider=function(a){return y(a)===h};
26
- exports.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return y(a)===n};exports.isFragment=function(a){return y(a)===e};exports.isLazy=function(a){return y(a)===t};exports.isMemo=function(a){return y(a)===r};exports.isPortal=function(a){return y(a)===d};exports.isProfiler=function(a){return y(a)===g};exports.isStrictMode=function(a){return y(a)===f};exports.isSuspense=function(a){return y(a)===p};
27
- });
28
-
29
- unwrapExports(reactIs_production_min);
30
- var reactIs_production_min_1 = reactIs_production_min.typeOf;
31
- var reactIs_production_min_2 = reactIs_production_min.AsyncMode;
32
- var reactIs_production_min_3 = reactIs_production_min.ConcurrentMode;
33
- var reactIs_production_min_4 = reactIs_production_min.ContextConsumer;
34
- var reactIs_production_min_5 = reactIs_production_min.ContextProvider;
35
- var reactIs_production_min_6 = reactIs_production_min.Element;
36
- var reactIs_production_min_7 = reactIs_production_min.ForwardRef;
37
- var reactIs_production_min_8 = reactIs_production_min.Fragment;
38
- var reactIs_production_min_9 = reactIs_production_min.Lazy;
39
- var reactIs_production_min_10 = reactIs_production_min.Memo;
40
- var reactIs_production_min_11 = reactIs_production_min.Portal;
41
- var reactIs_production_min_12 = reactIs_production_min.Profiler;
42
- var reactIs_production_min_13 = reactIs_production_min.StrictMode;
43
- var reactIs_production_min_14 = reactIs_production_min.Suspense;
44
- var reactIs_production_min_15 = reactIs_production_min.isValidElementType;
45
- var reactIs_production_min_16 = reactIs_production_min.isAsyncMode;
46
- var reactIs_production_min_17 = reactIs_production_min.isConcurrentMode;
47
- var reactIs_production_min_18 = reactIs_production_min.isContextConsumer;
48
- var reactIs_production_min_19 = reactIs_production_min.isContextProvider;
49
- var reactIs_production_min_20 = reactIs_production_min.isElement;
50
- var reactIs_production_min_21 = reactIs_production_min.isForwardRef;
51
- var reactIs_production_min_22 = reactIs_production_min.isFragment;
52
- var reactIs_production_min_23 = reactIs_production_min.isLazy;
53
- var reactIs_production_min_24 = reactIs_production_min.isMemo;
54
- var reactIs_production_min_25 = reactIs_production_min.isPortal;
55
- var reactIs_production_min_26 = reactIs_production_min.isProfiler;
56
- var reactIs_production_min_27 = reactIs_production_min.isStrictMode;
57
- var reactIs_production_min_28 = reactIs_production_min.isSuspense;
58
-
59
- var reactIs_development = createCommonjsModule(function (module, exports) {
60
-
61
-
62
-
63
- if (process.env.NODE_ENV !== "production") {
64
- (function() {
65
-
66
- Object.defineProperty(exports, '__esModule', { value: true });
67
-
68
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
69
- // nor polyfill, then a plain number is used for performance.
70
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
71
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
72
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
73
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
74
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
75
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
76
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
77
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
78
- // (unstable) APIs that have been removed. Can we remove the symbols?
79
-
80
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
81
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
82
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
83
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
84
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
85
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
86
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
87
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
88
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
89
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
90
-
91
- function isValidElementType(type) {
92
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
93
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
94
- }
95
-
96
- /**
97
- * Forked from fbjs/warning:
98
- * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
99
- *
100
- * Only change is we use console.warn instead of console.error,
101
- * and do nothing when 'console' is not supported.
102
- * This really simplifies the code.
103
- * ---
104
- * Similar to invariant but only logs a warning if the condition is not met.
105
- * This can be used to log issues in development environments in critical
106
- * paths. Removing the logging code for production environments will keep the
107
- * same logic and follow the same code paths.
108
- */
109
- var lowPriorityWarningWithoutStack = function () {};
110
-
111
- {
112
- var printWarning = function (format) {
113
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
114
- args[_key - 1] = arguments[_key];
115
- }
116
-
117
- var argIndex = 0;
118
- var message = 'Warning: ' + format.replace(/%s/g, function () {
119
- return args[argIndex++];
120
- });
121
-
122
- if (typeof console !== 'undefined') {
123
- console.warn(message);
124
- }
125
-
126
- try {
127
- // --- Welcome to debugging React ---
128
- // This error was thrown as a convenience so that you can use this stack
129
- // to find the callsite that caused this warning to fire.
130
- throw new Error(message);
131
- } catch (x) {}
132
- };
133
-
134
- lowPriorityWarningWithoutStack = function (condition, format) {
135
- if (format === undefined) {
136
- throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
137
- }
138
-
139
- if (!condition) {
140
- for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
141
- args[_key2 - 2] = arguments[_key2];
142
- }
143
-
144
- printWarning.apply(void 0, [format].concat(args));
145
- }
146
- };
147
- }
148
-
149
- var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
150
-
151
- function typeOf(object) {
152
- if (typeof object === 'object' && object !== null) {
153
- var $$typeof = object.$$typeof;
154
-
155
- switch ($$typeof) {
156
- case REACT_ELEMENT_TYPE:
157
- var type = object.type;
158
-
159
- switch (type) {
160
- case REACT_ASYNC_MODE_TYPE:
161
- case REACT_CONCURRENT_MODE_TYPE:
162
- case REACT_FRAGMENT_TYPE:
163
- case REACT_PROFILER_TYPE:
164
- case REACT_STRICT_MODE_TYPE:
165
- case REACT_SUSPENSE_TYPE:
166
- return type;
167
-
168
- default:
169
- var $$typeofType = type && type.$$typeof;
170
-
171
- switch ($$typeofType) {
172
- case REACT_CONTEXT_TYPE:
173
- case REACT_FORWARD_REF_TYPE:
174
- case REACT_LAZY_TYPE:
175
- case REACT_MEMO_TYPE:
176
- case REACT_PROVIDER_TYPE:
177
- return $$typeofType;
178
-
179
- default:
180
- return $$typeof;
181
- }
182
-
183
- }
184
-
185
- case REACT_PORTAL_TYPE:
186
- return $$typeof;
187
- }
188
- }
189
-
190
- return undefined;
191
- } // AsyncMode is deprecated along with isAsyncMode
192
-
193
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
194
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
195
- var ContextConsumer = REACT_CONTEXT_TYPE;
196
- var ContextProvider = REACT_PROVIDER_TYPE;
197
- var Element = REACT_ELEMENT_TYPE;
198
- var ForwardRef = REACT_FORWARD_REF_TYPE;
199
- var Fragment = REACT_FRAGMENT_TYPE;
200
- var Lazy = REACT_LAZY_TYPE;
201
- var Memo = REACT_MEMO_TYPE;
202
- var Portal = REACT_PORTAL_TYPE;
203
- var Profiler = REACT_PROFILER_TYPE;
204
- var StrictMode = REACT_STRICT_MODE_TYPE;
205
- var Suspense = REACT_SUSPENSE_TYPE;
206
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
207
-
208
- function isAsyncMode(object) {
209
- {
210
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
211
- hasWarnedAboutDeprecatedIsAsyncMode = true;
212
- lowPriorityWarningWithoutStack$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
213
- }
214
- }
215
-
216
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
217
- }
218
- function isConcurrentMode(object) {
219
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
220
- }
221
- function isContextConsumer(object) {
222
- return typeOf(object) === REACT_CONTEXT_TYPE;
223
- }
224
- function isContextProvider(object) {
225
- return typeOf(object) === REACT_PROVIDER_TYPE;
226
- }
227
- function isElement(object) {
228
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
229
- }
230
- function isForwardRef(object) {
231
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
232
- }
233
- function isFragment(object) {
234
- return typeOf(object) === REACT_FRAGMENT_TYPE;
235
- }
236
- function isLazy(object) {
237
- return typeOf(object) === REACT_LAZY_TYPE;
238
- }
239
- function isMemo(object) {
240
- return typeOf(object) === REACT_MEMO_TYPE;
241
- }
242
- function isPortal(object) {
243
- return typeOf(object) === REACT_PORTAL_TYPE;
244
- }
245
- function isProfiler(object) {
246
- return typeOf(object) === REACT_PROFILER_TYPE;
247
- }
248
- function isStrictMode(object) {
249
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
250
- }
251
- function isSuspense(object) {
252
- return typeOf(object) === REACT_SUSPENSE_TYPE;
253
- }
254
-
255
- exports.typeOf = typeOf;
256
- exports.AsyncMode = AsyncMode;
257
- exports.ConcurrentMode = ConcurrentMode;
258
- exports.ContextConsumer = ContextConsumer;
259
- exports.ContextProvider = ContextProvider;
260
- exports.Element = Element;
261
- exports.ForwardRef = ForwardRef;
262
- exports.Fragment = Fragment;
263
- exports.Lazy = Lazy;
264
- exports.Memo = Memo;
265
- exports.Portal = Portal;
266
- exports.Profiler = Profiler;
267
- exports.StrictMode = StrictMode;
268
- exports.Suspense = Suspense;
269
- exports.isValidElementType = isValidElementType;
270
- exports.isAsyncMode = isAsyncMode;
271
- exports.isConcurrentMode = isConcurrentMode;
272
- exports.isContextConsumer = isContextConsumer;
273
- exports.isContextProvider = isContextProvider;
274
- exports.isElement = isElement;
275
- exports.isForwardRef = isForwardRef;
276
- exports.isFragment = isFragment;
277
- exports.isLazy = isLazy;
278
- exports.isMemo = isMemo;
279
- exports.isPortal = isPortal;
280
- exports.isProfiler = isProfiler;
281
- exports.isStrictMode = isStrictMode;
282
- exports.isSuspense = isSuspense;
283
- })();
284
- }
285
- });
286
-
287
- unwrapExports(reactIs_development);
288
- var reactIs_development_1 = reactIs_development.typeOf;
289
- var reactIs_development_2 = reactIs_development.AsyncMode;
290
- var reactIs_development_3 = reactIs_development.ConcurrentMode;
291
- var reactIs_development_4 = reactIs_development.ContextConsumer;
292
- var reactIs_development_5 = reactIs_development.ContextProvider;
293
- var reactIs_development_6 = reactIs_development.Element;
294
- var reactIs_development_7 = reactIs_development.ForwardRef;
295
- var reactIs_development_8 = reactIs_development.Fragment;
296
- var reactIs_development_9 = reactIs_development.Lazy;
297
- var reactIs_development_10 = reactIs_development.Memo;
298
- var reactIs_development_11 = reactIs_development.Portal;
299
- var reactIs_development_12 = reactIs_development.Profiler;
300
- var reactIs_development_13 = reactIs_development.StrictMode;
301
- var reactIs_development_14 = reactIs_development.Suspense;
302
- var reactIs_development_15 = reactIs_development.isValidElementType;
303
- var reactIs_development_16 = reactIs_development.isAsyncMode;
304
- var reactIs_development_17 = reactIs_development.isConcurrentMode;
305
- var reactIs_development_18 = reactIs_development.isContextConsumer;
306
- var reactIs_development_19 = reactIs_development.isContextProvider;
307
- var reactIs_development_20 = reactIs_development.isElement;
308
- var reactIs_development_21 = reactIs_development.isForwardRef;
309
- var reactIs_development_22 = reactIs_development.isFragment;
310
- var reactIs_development_23 = reactIs_development.isLazy;
311
- var reactIs_development_24 = reactIs_development.isMemo;
312
- var reactIs_development_25 = reactIs_development.isPortal;
313
- var reactIs_development_26 = reactIs_development.isProfiler;
314
- var reactIs_development_27 = reactIs_development.isStrictMode;
315
- var reactIs_development_28 = reactIs_development.isSuspense;
316
-
317
- var reactIs = createCommonjsModule(function (module) {
318
-
319
- if (process.env.NODE_ENV === 'production') {
320
- module.exports = reactIs_production_min;
321
- } else {
322
- module.exports = reactIs_development;
323
- }
324
- });
325
-
326
- /*
327
- object-assign
328
- (c) Sindre Sorhus
329
- @license MIT
330
- */
331
- /* eslint-disable no-unused-vars */
332
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
333
- var hasOwnProperty = Object.prototype.hasOwnProperty;
334
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
335
-
336
- function toObject(val) {
337
- if (val === null || val === undefined) {
338
- throw new TypeError('Object.assign cannot be called with null or undefined');
339
- }
340
-
341
- return Object(val);
342
- }
343
-
344
- function shouldUseNative() {
345
- try {
346
- if (!Object.assign) {
347
- return false;
348
- }
349
-
350
- // Detect buggy property enumeration order in older V8 versions.
351
-
352
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
353
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
354
- test1[5] = 'de';
355
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
356
- return false;
357
- }
358
-
359
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
360
- var test2 = {};
361
- for (var i = 0; i < 10; i++) {
362
- test2['_' + String.fromCharCode(i)] = i;
363
- }
364
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
365
- return test2[n];
366
- });
367
- if (order2.join('') !== '0123456789') {
368
- return false;
369
- }
370
-
371
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
372
- var test3 = {};
373
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
374
- test3[letter] = letter;
375
- });
376
- if (Object.keys(Object.assign({}, test3)).join('') !==
377
- 'abcdefghijklmnopqrst') {
378
- return false;
379
- }
380
-
381
- return true;
382
- } catch (err) {
383
- // We don't expect any of the above to throw, but better to be safe.
384
- return false;
385
- }
386
- }
387
-
388
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
389
- var from;
390
- var to = toObject(target);
391
- var symbols;
392
-
393
- for (var s = 1; s < arguments.length; s++) {
394
- from = Object(arguments[s]);
395
-
396
- for (var key in from) {
397
- if (hasOwnProperty.call(from, key)) {
398
- to[key] = from[key];
399
- }
400
- }
401
-
402
- if (getOwnPropertySymbols) {
403
- symbols = getOwnPropertySymbols(from);
404
- for (var i = 0; i < symbols.length; i++) {
405
- if (propIsEnumerable.call(from, symbols[i])) {
406
- to[symbols[i]] = from[symbols[i]];
407
- }
408
- }
409
- }
410
- }
411
-
412
- return to;
413
- };
414
-
415
- /**
416
- * Copyright (c) 2013-present, Facebook, Inc.
417
- *
418
- * This source code is licensed under the MIT license found in the
419
- * LICENSE file in the root directory of this source tree.
420
- */
421
-
422
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
423
-
424
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
425
-
426
- var printWarning = function() {};
427
-
428
- if (process.env.NODE_ENV !== 'production') {
429
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
430
- var loggedTypeFailures = {};
431
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
432
-
433
- printWarning = function(text) {
434
- var message = 'Warning: ' + text;
435
- if (typeof console !== 'undefined') {
436
- console.error(message);
437
- }
438
- try {
439
- // --- Welcome to debugging React ---
440
- // This error was thrown as a convenience so that you can use this stack
441
- // to find the callsite that caused this warning to fire.
442
- throw new Error(message);
443
- } catch (x) {}
444
- };
445
- }
446
-
447
- /**
448
- * Assert that the values match with the type specs.
449
- * Error messages are memorized and will only be shown once.
450
- *
451
- * @param {object} typeSpecs Map of name to a ReactPropType
452
- * @param {object} values Runtime values that need to be type-checked
453
- * @param {string} location e.g. "prop", "context", "child context"
454
- * @param {string} componentName Name of the component for error messages.
455
- * @param {?Function} getStack Returns the component stack.
456
- * @private
457
- */
458
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
459
- if (process.env.NODE_ENV !== 'production') {
460
- for (var typeSpecName in typeSpecs) {
461
- if (has(typeSpecs, typeSpecName)) {
462
- var error;
463
- // Prop type validation may throw. In case they do, we don't want to
464
- // fail the render phase where it didn't fail before. So we log it.
465
- // After these have been cleaned up, we'll let them throw.
466
- try {
467
- // This is intentionally an invariant that gets caught. It's the same
468
- // behavior as without this statement except with a better message.
469
- if (typeof typeSpecs[typeSpecName] !== 'function') {
470
- var err = Error(
471
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
472
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
473
- );
474
- err.name = 'Invariant Violation';
475
- throw err;
476
- }
477
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
478
- } catch (ex) {
479
- error = ex;
480
- }
481
- if (error && !(error instanceof Error)) {
482
- printWarning(
483
- (componentName || 'React class') + ': type specification of ' +
484
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
485
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
486
- 'You may have forgotten to pass an argument to the type checker ' +
487
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
488
- 'shape all require an argument).'
489
- );
490
- }
491
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
492
- // Only monitor this failure once because there tends to be a lot of the
493
- // same error.
494
- loggedTypeFailures[error.message] = true;
495
-
496
- var stack = getStack ? getStack() : '';
497
-
498
- printWarning(
499
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
500
- );
501
- }
502
- }
503
- }
504
- }
505
- }
506
-
507
- /**
508
- * Resets warning cache when testing.
509
- *
510
- * @private
511
- */
512
- checkPropTypes.resetWarningCache = function() {
513
- if (process.env.NODE_ENV !== 'production') {
514
- loggedTypeFailures = {};
515
- }
516
- };
517
-
518
- var checkPropTypes_1 = checkPropTypes;
519
-
520
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
521
- var printWarning$1 = function() {};
522
-
523
- if (process.env.NODE_ENV !== 'production') {
524
- printWarning$1 = function(text) {
525
- var message = 'Warning: ' + text;
526
- if (typeof console !== 'undefined') {
527
- console.error(message);
528
- }
529
- try {
530
- // --- Welcome to debugging React ---
531
- // This error was thrown as a convenience so that you can use this stack
532
- // to find the callsite that caused this warning to fire.
533
- throw new Error(message);
534
- } catch (x) {}
535
- };
536
- }
537
-
538
- function emptyFunctionThatReturnsNull() {
539
- return null;
540
- }
541
-
542
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
543
- /* global Symbol */
544
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
545
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
546
-
547
- /**
548
- * Returns the iterator method function contained on the iterable object.
549
- *
550
- * Be sure to invoke the function with the iterable as context:
551
- *
552
- * var iteratorFn = getIteratorFn(myIterable);
553
- * if (iteratorFn) {
554
- * var iterator = iteratorFn.call(myIterable);
555
- * ...
556
- * }
557
- *
558
- * @param {?object} maybeIterable
559
- * @return {?function}
560
- */
561
- function getIteratorFn(maybeIterable) {
562
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
563
- if (typeof iteratorFn === 'function') {
564
- return iteratorFn;
565
- }
566
- }
567
-
568
- /**
569
- * Collection of methods that allow declaration and validation of props that are
570
- * supplied to React components. Example usage:
571
- *
572
- * var Props = require('ReactPropTypes');
573
- * var MyArticle = React.createClass({
574
- * propTypes: {
575
- * // An optional string prop named "description".
576
- * description: Props.string,
577
- *
578
- * // A required enum prop named "category".
579
- * category: Props.oneOf(['News','Photos']).isRequired,
580
- *
581
- * // A prop named "dialog" that requires an instance of Dialog.
582
- * dialog: Props.instanceOf(Dialog).isRequired
583
- * },
584
- * render: function() { ... }
585
- * });
586
- *
587
- * A more formal specification of how these methods are used:
588
- *
589
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
590
- * decl := ReactPropTypes.{type}(.isRequired)?
591
- *
592
- * Each and every declaration produces a function with the same signature. This
593
- * allows the creation of custom validation functions. For example:
594
- *
595
- * var MyLink = React.createClass({
596
- * propTypes: {
597
- * // An optional string or URI prop named "href".
598
- * href: function(props, propName, componentName) {
599
- * var propValue = props[propName];
600
- * if (propValue != null && typeof propValue !== 'string' &&
601
- * !(propValue instanceof URI)) {
602
- * return new Error(
603
- * 'Expected a string or an URI for ' + propName + ' in ' +
604
- * componentName
605
- * );
606
- * }
607
- * }
608
- * },
609
- * render: function() {...}
610
- * });
611
- *
612
- * @internal
613
- */
614
-
615
- var ANONYMOUS = '<<anonymous>>';
616
-
617
- // Important!
618
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
619
- var ReactPropTypes = {
620
- array: createPrimitiveTypeChecker('array'),
621
- bool: createPrimitiveTypeChecker('boolean'),
622
- func: createPrimitiveTypeChecker('function'),
623
- number: createPrimitiveTypeChecker('number'),
624
- object: createPrimitiveTypeChecker('object'),
625
- string: createPrimitiveTypeChecker('string'),
626
- symbol: createPrimitiveTypeChecker('symbol'),
627
-
628
- any: createAnyTypeChecker(),
629
- arrayOf: createArrayOfTypeChecker,
630
- element: createElementTypeChecker(),
631
- elementType: createElementTypeTypeChecker(),
632
- instanceOf: createInstanceTypeChecker,
633
- node: createNodeChecker(),
634
- objectOf: createObjectOfTypeChecker,
635
- oneOf: createEnumTypeChecker,
636
- oneOfType: createUnionTypeChecker,
637
- shape: createShapeTypeChecker,
638
- exact: createStrictShapeTypeChecker,
639
- };
640
-
641
- /**
642
- * inlined Object.is polyfill to avoid requiring consumers ship their own
643
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
644
- */
645
- /*eslint-disable no-self-compare*/
646
- function is(x, y) {
647
- // SameValue algorithm
648
- if (x === y) {
649
- // Steps 1-5, 7-10
650
- // Steps 6.b-6.e: +0 != -0
651
- return x !== 0 || 1 / x === 1 / y;
652
- } else {
653
- // Step 6.a: NaN == NaN
654
- return x !== x && y !== y;
655
- }
656
- }
657
- /*eslint-enable no-self-compare*/
658
-
659
- /**
660
- * We use an Error-like object for backward compatibility as people may call
661
- * PropTypes directly and inspect their output. However, we don't use real
662
- * Errors anymore. We don't inspect their stack anyway, and creating them
663
- * is prohibitively expensive if they are created too often, such as what
664
- * happens in oneOfType() for any type before the one that matched.
665
- */
666
- function PropTypeError(message) {
667
- this.message = message;
668
- this.stack = '';
669
- }
670
- // Make `instanceof Error` still work for returned errors.
671
- PropTypeError.prototype = Error.prototype;
672
-
673
- function createChainableTypeChecker(validate) {
674
- if (process.env.NODE_ENV !== 'production') {
675
- var manualPropTypeCallCache = {};
676
- var manualPropTypeWarningCount = 0;
677
- }
678
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
679
- componentName = componentName || ANONYMOUS;
680
- propFullName = propFullName || propName;
681
-
682
- if (secret !== ReactPropTypesSecret_1) {
683
- if (throwOnDirectAccess) {
684
- // New behavior only for users of `prop-types` package
685
- var err = new Error(
686
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
687
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
688
- 'Read more at http://fb.me/use-check-prop-types'
689
- );
690
- err.name = 'Invariant Violation';
691
- throw err;
692
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
693
- // Old behavior for people using React.PropTypes
694
- var cacheKey = componentName + ':' + propName;
695
- if (
696
- !manualPropTypeCallCache[cacheKey] &&
697
- // Avoid spamming the console because they are often not actionable except for lib authors
698
- manualPropTypeWarningCount < 3
699
- ) {
700
- printWarning$1(
701
- 'You are manually calling a React.PropTypes validation ' +
702
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
703
- 'and will throw in the standalone `prop-types` package. ' +
704
- 'You may be seeing this warning due to a third-party PropTypes ' +
705
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
706
- );
707
- manualPropTypeCallCache[cacheKey] = true;
708
- manualPropTypeWarningCount++;
709
- }
710
- }
711
- }
712
- if (props[propName] == null) {
713
- if (isRequired) {
714
- if (props[propName] === null) {
715
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
716
- }
717
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
718
- }
719
- return null;
720
- } else {
721
- return validate(props, propName, componentName, location, propFullName);
722
- }
723
- }
724
-
725
- var chainedCheckType = checkType.bind(null, false);
726
- chainedCheckType.isRequired = checkType.bind(null, true);
727
-
728
- return chainedCheckType;
729
- }
730
-
731
- function createPrimitiveTypeChecker(expectedType) {
732
- function validate(props, propName, componentName, location, propFullName, secret) {
733
- var propValue = props[propName];
734
- var propType = getPropType(propValue);
735
- if (propType !== expectedType) {
736
- // `propValue` being instance of, say, date/regexp, pass the 'object'
737
- // check, but we can offer a more precise error message here rather than
738
- // 'of type `object`'.
739
- var preciseType = getPreciseType(propValue);
740
-
741
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
742
- }
743
- return null;
744
- }
745
- return createChainableTypeChecker(validate);
746
- }
747
-
748
- function createAnyTypeChecker() {
749
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
750
- }
751
-
752
- function createArrayOfTypeChecker(typeChecker) {
753
- function validate(props, propName, componentName, location, propFullName) {
754
- if (typeof typeChecker !== 'function') {
755
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
756
- }
757
- var propValue = props[propName];
758
- if (!Array.isArray(propValue)) {
759
- var propType = getPropType(propValue);
760
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
761
- }
762
- for (var i = 0; i < propValue.length; i++) {
763
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
764
- if (error instanceof Error) {
765
- return error;
766
- }
767
- }
768
- return null;
769
- }
770
- return createChainableTypeChecker(validate);
771
- }
772
-
773
- function createElementTypeChecker() {
774
- function validate(props, propName, componentName, location, propFullName) {
775
- var propValue = props[propName];
776
- if (!isValidElement(propValue)) {
777
- var propType = getPropType(propValue);
778
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
779
- }
780
- return null;
781
- }
782
- return createChainableTypeChecker(validate);
783
- }
784
-
785
- function createElementTypeTypeChecker() {
786
- function validate(props, propName, componentName, location, propFullName) {
787
- var propValue = props[propName];
788
- if (!reactIs.isValidElementType(propValue)) {
789
- var propType = getPropType(propValue);
790
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
791
- }
792
- return null;
793
- }
794
- return createChainableTypeChecker(validate);
795
- }
796
-
797
- function createInstanceTypeChecker(expectedClass) {
798
- function validate(props, propName, componentName, location, propFullName) {
799
- if (!(props[propName] instanceof expectedClass)) {
800
- var expectedClassName = expectedClass.name || ANONYMOUS;
801
- var actualClassName = getClassName(props[propName]);
802
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
803
- }
804
- return null;
805
- }
806
- return createChainableTypeChecker(validate);
807
- }
808
-
809
- function createEnumTypeChecker(expectedValues) {
810
- if (!Array.isArray(expectedValues)) {
811
- if (process.env.NODE_ENV !== 'production') {
812
- if (arguments.length > 1) {
813
- printWarning$1(
814
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
815
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
816
- );
817
- } else {
818
- printWarning$1('Invalid argument supplied to oneOf, expected an array.');
819
- }
820
- }
821
- return emptyFunctionThatReturnsNull;
822
- }
823
-
824
- function validate(props, propName, componentName, location, propFullName) {
825
- var propValue = props[propName];
826
- for (var i = 0; i < expectedValues.length; i++) {
827
- if (is(propValue, expectedValues[i])) {
828
- return null;
829
- }
830
- }
831
-
832
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
833
- var type = getPreciseType(value);
834
- if (type === 'symbol') {
835
- return String(value);
836
- }
837
- return value;
838
- });
839
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
840
- }
841
- return createChainableTypeChecker(validate);
842
- }
843
-
844
- function createObjectOfTypeChecker(typeChecker) {
845
- function validate(props, propName, componentName, location, propFullName) {
846
- if (typeof typeChecker !== 'function') {
847
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
848
- }
849
- var propValue = props[propName];
850
- var propType = getPropType(propValue);
851
- if (propType !== 'object') {
852
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
853
- }
854
- for (var key in propValue) {
855
- if (has$1(propValue, key)) {
856
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
857
- if (error instanceof Error) {
858
- return error;
859
- }
860
- }
861
- }
862
- return null;
863
- }
864
- return createChainableTypeChecker(validate);
865
- }
866
-
867
- function createUnionTypeChecker(arrayOfTypeCheckers) {
868
- if (!Array.isArray(arrayOfTypeCheckers)) {
869
- process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
870
- return emptyFunctionThatReturnsNull;
871
- }
872
-
873
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
874
- var checker = arrayOfTypeCheckers[i];
875
- if (typeof checker !== 'function') {
876
- printWarning$1(
877
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
878
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
879
- );
880
- return emptyFunctionThatReturnsNull;
881
- }
882
- }
883
-
884
- function validate(props, propName, componentName, location, propFullName) {
885
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
886
- var checker = arrayOfTypeCheckers[i];
887
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
888
- return null;
889
- }
890
- }
891
-
892
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
893
- }
894
- return createChainableTypeChecker(validate);
895
- }
896
-
897
- function createNodeChecker() {
898
- function validate(props, propName, componentName, location, propFullName) {
899
- if (!isNode(props[propName])) {
900
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
901
- }
902
- return null;
903
- }
904
- return createChainableTypeChecker(validate);
905
- }
906
-
907
- function createShapeTypeChecker(shapeTypes) {
908
- function validate(props, propName, componentName, location, propFullName) {
909
- var propValue = props[propName];
910
- var propType = getPropType(propValue);
911
- if (propType !== 'object') {
912
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
913
- }
914
- for (var key in shapeTypes) {
915
- var checker = shapeTypes[key];
916
- if (!checker) {
917
- continue;
918
- }
919
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
920
- if (error) {
921
- return error;
922
- }
923
- }
924
- return null;
925
- }
926
- return createChainableTypeChecker(validate);
927
- }
928
-
929
- function createStrictShapeTypeChecker(shapeTypes) {
930
- function validate(props, propName, componentName, location, propFullName) {
931
- var propValue = props[propName];
932
- var propType = getPropType(propValue);
933
- if (propType !== 'object') {
934
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
935
- }
936
- // We need to check all keys in case some are required but missing from
937
- // props.
938
- var allKeys = objectAssign({}, props[propName], shapeTypes);
939
- for (var key in allKeys) {
940
- var checker = shapeTypes[key];
941
- if (!checker) {
942
- return new PropTypeError(
943
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
944
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
945
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
946
- );
947
- }
948
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
949
- if (error) {
950
- return error;
951
- }
952
- }
953
- return null;
954
- }
955
-
956
- return createChainableTypeChecker(validate);
957
- }
958
-
959
- function isNode(propValue) {
960
- switch (typeof propValue) {
961
- case 'number':
962
- case 'string':
963
- case 'undefined':
964
- return true;
965
- case 'boolean':
966
- return !propValue;
967
- case 'object':
968
- if (Array.isArray(propValue)) {
969
- return propValue.every(isNode);
970
- }
971
- if (propValue === null || isValidElement(propValue)) {
972
- return true;
973
- }
974
-
975
- var iteratorFn = getIteratorFn(propValue);
976
- if (iteratorFn) {
977
- var iterator = iteratorFn.call(propValue);
978
- var step;
979
- if (iteratorFn !== propValue.entries) {
980
- while (!(step = iterator.next()).done) {
981
- if (!isNode(step.value)) {
982
- return false;
983
- }
984
- }
985
- } else {
986
- // Iterator will provide entry [k,v] tuples rather than values.
987
- while (!(step = iterator.next()).done) {
988
- var entry = step.value;
989
- if (entry) {
990
- if (!isNode(entry[1])) {
991
- return false;
992
- }
993
- }
994
- }
995
- }
996
- } else {
997
- return false;
998
- }
999
-
1000
- return true;
1001
- default:
1002
- return false;
1003
- }
1004
- }
1005
-
1006
- function isSymbol(propType, propValue) {
1007
- // Native Symbol.
1008
- if (propType === 'symbol') {
1009
- return true;
1010
- }
1011
-
1012
- // falsy value can't be a Symbol
1013
- if (!propValue) {
1014
- return false;
1015
- }
1016
-
1017
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1018
- if (propValue['@@toStringTag'] === 'Symbol') {
1019
- return true;
1020
- }
1021
-
1022
- // Fallback for non-spec compliant Symbols which are polyfilled.
1023
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1024
- return true;
1025
- }
1026
-
1027
- return false;
1028
- }
1029
-
1030
- // Equivalent of `typeof` but with special handling for array and regexp.
1031
- function getPropType(propValue) {
1032
- var propType = typeof propValue;
1033
- if (Array.isArray(propValue)) {
1034
- return 'array';
1035
- }
1036
- if (propValue instanceof RegExp) {
1037
- // Old webkits (at least until Android 4.0) return 'function' rather than
1038
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1039
- // passes PropTypes.object.
1040
- return 'object';
1041
- }
1042
- if (isSymbol(propType, propValue)) {
1043
- return 'symbol';
1044
- }
1045
- return propType;
1046
- }
1047
-
1048
- // This handles more types than `getPropType`. Only used for error messages.
1049
- // See `createPrimitiveTypeChecker`.
1050
- function getPreciseType(propValue) {
1051
- if (typeof propValue === 'undefined' || propValue === null) {
1052
- return '' + propValue;
1053
- }
1054
- var propType = getPropType(propValue);
1055
- if (propType === 'object') {
1056
- if (propValue instanceof Date) {
1057
- return 'date';
1058
- } else if (propValue instanceof RegExp) {
1059
- return 'regexp';
1060
- }
1061
- }
1062
- return propType;
1063
- }
1064
-
1065
- // Returns a string that is postfixed to a warning about an invalid type.
1066
- // For example, "undefined" or "of type array"
1067
- function getPostfixForTypeWarning(value) {
1068
- var type = getPreciseType(value);
1069
- switch (type) {
1070
- case 'array':
1071
- case 'object':
1072
- return 'an ' + type;
1073
- case 'boolean':
1074
- case 'date':
1075
- case 'regexp':
1076
- return 'a ' + type;
1077
- default:
1078
- return type;
1079
- }
1080
- }
1081
-
1082
- // Returns class name of the object, if any.
1083
- function getClassName(propValue) {
1084
- if (!propValue.constructor || !propValue.constructor.name) {
1085
- return ANONYMOUS;
1086
- }
1087
- return propValue.constructor.name;
1088
- }
1089
-
1090
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1091
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1092
- ReactPropTypes.PropTypes = ReactPropTypes;
1093
-
1094
- return ReactPropTypes;
1095
- };
1096
-
1097
- function emptyFunction() {}
1098
- function emptyFunctionWithReset() {}
1099
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1100
-
1101
- var factoryWithThrowingShims = function() {
1102
- function shim(props, propName, componentName, location, propFullName, secret) {
1103
- if (secret === ReactPropTypesSecret_1) {
1104
- // It is still safe when called from React.
1105
- return;
1106
- }
1107
- var err = new Error(
1108
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1109
- 'Use PropTypes.checkPropTypes() to call them. ' +
1110
- 'Read more at http://fb.me/use-check-prop-types'
1111
- );
1112
- err.name = 'Invariant Violation';
1113
- throw err;
1114
- } shim.isRequired = shim;
1115
- function getShim() {
1116
- return shim;
1117
- } // Important!
1118
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1119
- var ReactPropTypes = {
1120
- array: shim,
1121
- bool: shim,
1122
- func: shim,
1123
- number: shim,
1124
- object: shim,
1125
- string: shim,
1126
- symbol: shim,
1127
-
1128
- any: shim,
1129
- arrayOf: getShim,
1130
- element: shim,
1131
- elementType: shim,
1132
- instanceOf: getShim,
1133
- node: shim,
1134
- objectOf: getShim,
1135
- oneOf: getShim,
1136
- oneOfType: getShim,
1137
- shape: getShim,
1138
- exact: getShim,
1139
-
1140
- checkPropTypes: emptyFunctionWithReset,
1141
- resetWarningCache: emptyFunction
1142
- };
1143
-
1144
- ReactPropTypes.PropTypes = ReactPropTypes;
1145
-
1146
- return ReactPropTypes;
1147
- };
1148
-
1149
- var propTypes = createCommonjsModule(function (module) {
1150
- /**
1151
- * Copyright (c) 2013-present, Facebook, Inc.
1152
- *
1153
- * This source code is licensed under the MIT license found in the
1154
- * LICENSE file in the root directory of this source tree.
1155
- */
1156
-
1157
- if (process.env.NODE_ENV !== 'production') {
1158
- var ReactIs = reactIs;
1159
-
1160
- // By explicitly using `prop-types` you are opting into new development behavior.
1161
- // http://fb.me/prop-types-in-prod
1162
- var throwOnDirectAccess = true;
1163
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1164
- } else {
1165
- // By explicitly using `prop-types` you are opting into new production behavior.
1166
- // http://fb.me/prop-types-in-prod
1167
- module.exports = factoryWithThrowingShims();
1168
- }
1169
- });
1170
-
1171
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1172
-
1173
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1174
- var STORAGE_PREFIX = 'medipass-web-sdk';
1175
- var PERSIST_KEYS = ['_persist', 'device', 'savedEmail', 'rememberEmail', 'region'];
1176
- var bpfrpt_proptype_StoreType = propTypes.oneOf(["default", "session"]);
1177
- var bpfrpt_proptype_CommonOpts = {
1178
- storeType: propTypes.oneOf(["default", "session"])
1179
- };
1180
- var bpfrpt_proptype_SetOpts = {
1181
- storeType: propTypes.oneOf(["default", "session"]),
1182
- override: propTypes.bool
1183
- };
1184
- var noopStore = {
1185
- get: function get(key) {},
1186
- remove: function remove(key) {},
1187
- each: function each(val, key) {},
1188
- set: function set(key, val) {}
1189
- }; // eslint-disable-line
1190
-
1191
- var stores = {
1192
- default: typeof window !== 'undefined' && window.navigator.cookieEnabled ? storageEngine.createStore(localStorage) : noopStore,
1193
- session: typeof window !== 'undefined' && window.navigator.cookieEnabled ? storageEngine.createStore(sessionStorage) : noopStore
1194
- };
1195
- var storeTypes = Object.keys(stores);
1196
- var clearAll = function clearAll(opts) {
1197
- if (opts === void 0) {
1198
- opts = {};
1199
- }
1200
-
1201
- function clear(storeType) {
1202
- stores[storeType].each(function (val, key) {
1203
- key = key.replace(STORAGE_PREFIX + ".", '');
1204
- var shouldPersist = PERSIST_KEYS.some(function (persistKey) {
1205
- return key.includes(persistKey);
1206
- });
1207
-
1208
- if (shouldPersist) {
1209
- return;
1210
- }
1211
-
1212
- stores[storeType].remove(STORAGE_PREFIX + "." + key);
1213
- });
1214
- } // If a store type has been chosen, then clear all from that store type. Otherwise, clear all from every store type.
1215
-
1216
-
1217
- if (opts.storeType) {
1218
- clear(opts.storeType);
1219
- } else {
1220
- storeTypes.forEach(function (storeType) {
1221
- return clear(storeType);
1222
- });
1223
- }
1224
- };
1225
-
1226
- var _get = function get(key, opts) {
1227
- if (opts === void 0) {
1228
- opts = {};
1229
- }
1230
-
1231
- var storeType = opts.storeType || 'default';
1232
- return stores[storeType].get(STORAGE_PREFIX + "." + key);
1233
- };
1234
-
1235
- var _remove = function remove(key, opts) {
1236
- if (opts === void 0) {
1237
- opts = {};
1238
- }
1239
-
1240
- // If a store type has been chosen, then clear all from that store type. Otherwise, clear all from every store type.
1241
- if (opts.storeType) {
1242
- stores[opts.storeType].remove(STORAGE_PREFIX + "." + key);
1243
- } else {
1244
- storeTypes.forEach(function (storeType) {
1245
- return stores[storeType].remove(STORAGE_PREFIX + "." + key);
1246
- });
1247
- }
1248
- };
1249
-
1250
- var _set = function set(key, val, opts) {
1251
- if (opts === void 0) {
1252
- opts = {};
1253
- }
1254
-
1255
- var storeType = opts.storeType || 'default';
1256
-
1257
- if (opts && opts.override) {
1258
- stores[storeType].set(STORAGE_PREFIX + "." + key, masked(_objectSpread({}, _get(key), {}, val), sensitiveKeys.VERY_SENSITIVE_KEYS, {
1259
- omitKeys: true
1260
- }));
1261
- return;
1262
- }
1263
-
1264
- stores[storeType].set(STORAGE_PREFIX + "." + key, masked(val, sensitiveKeys.VERY_SENSITIVE_KEYS, {
1265
- omitKeys: true
1266
- }));
1267
- };
1268
-
1269
- var _createStorageResource = function _createStorageResource(key) {
1270
- return {
1271
- get: function get() {
1272
- return _get(key);
1273
- },
1274
- set: function set(value, opts) {
1275
- return _set(key, value, opts);
1276
- },
1277
- remove: function remove() {
1278
- return _remove(key);
1279
- }
1280
- };
1281
- };
1282
-
1283
- var storage = {
1284
- clearAll: clearAll,
1285
- remove: _remove,
1286
- get: _get,
1287
- set: _set,
1288
- onboardingStatus: _createStorageResource('onboardingStatus'),
1289
- previousCreatePHITransactionFormValues: _createStorageResource('previousTransactionFormValues')
1290
- };
1291
-
1292
- exports.PropTypes = propTypes;
1293
- exports._get = _get;
1294
- exports._remove = _remove;
1295
- exports._set = _set;
1296
- exports.bpfrpt_proptype_CommonOpts = bpfrpt_proptype_CommonOpts;
1297
- exports.bpfrpt_proptype_SetOpts = bpfrpt_proptype_SetOpts;
1298
- exports.bpfrpt_proptype_StoreType = bpfrpt_proptype_StoreType;
1299
- exports.clearAll = clearAll;
1300
- exports.storage = storage;