@braze/web-sdk 6.0.0 → 6.1.0

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 (147) hide show
  1. package/index.d.ts +103 -33
  2. package/package.json +1 -1
  3. package/shared-lib/encoding-utils.js +1 -1
  4. package/shared-lib/event-types.js +22 -22
  5. package/shared-lib/guid.js +3 -3
  6. package/shared-lib/indexed-db-adapter.js +19 -19
  7. package/shared-lib/logger.js +18 -18
  8. package/shared-lib/supported-options.js +15 -15
  9. package/src/Banner/banner-factory.js +2 -1
  10. package/src/Banner/banner-provider-factory.js +7 -7
  11. package/src/Banner/banner-provider.js +92 -98
  12. package/src/Banner/banner.js +21 -18
  13. package/src/Banner/display/banner-to-html.js +9 -9
  14. package/src/Banner/display/destroy-banner-html.js +2 -2
  15. package/src/Banner/display/detect-banner-impressions.js +2 -2
  16. package/src/Banner/get-all-banners.js +5 -5
  17. package/src/Banner/get-banner.js +7 -7
  18. package/src/Banner/log-banner-click.js +7 -7
  19. package/src/Banner/log-banner-impressions.js +9 -9
  20. package/src/Banner/request-banners-refresh.js +16 -20
  21. package/src/Banner/subscribe-to-banners-updates.js +7 -7
  22. package/src/Banner/ui/insert-banner.js +6 -6
  23. package/src/Card/card-manager-factory.js +7 -7
  24. package/src/Card/card-manager.js +35 -35
  25. package/src/Card/display/card-display.js +11 -11
  26. package/src/Card/log-card-dismissal.js +4 -4
  27. package/src/Card/log-content-card-click.js +4 -4
  28. package/src/Card/log-content-card-impressions.js +6 -6
  29. package/src/Card/models/captioned-image.js +21 -21
  30. package/src/Card/models/card.js +68 -68
  31. package/src/Card/models/classic-card.js +21 -21
  32. package/src/Card/models/control-card.js +11 -11
  33. package/src/Card/models/image-only.js +18 -18
  34. package/src/Card/util/card-factory.js +35 -35
  35. package/src/ContentCards/content-cards-provider-factory.js +13 -13
  36. package/src/ContentCards/content-cards-provider.js +136 -136
  37. package/src/ContentCards/get-cached-content-cards.js +2 -2
  38. package/src/ContentCards/request-content-cards-refresh.js +2 -2
  39. package/src/ContentCards/subscribe-to-content-cards-updates.js +6 -6
  40. package/src/ContentCards/ui/show-content-cards.js +7 -7
  41. package/src/Core/add-sdk-metadata.js +3 -3
  42. package/src/Core/change-user.js +7 -7
  43. package/src/Core/destroy.js +2 -2
  44. package/src/Core/disable-sdk.js +8 -8
  45. package/src/Core/enable-sdk.js +6 -6
  46. package/src/Core/get-device-id.js +4 -4
  47. package/src/Core/handle-braze-action.js +5 -5
  48. package/src/Core/is-disabled.js +1 -1
  49. package/src/Core/log-custom-event.js +10 -10
  50. package/src/Core/log-purchase.js +13 -13
  51. package/src/Core/open-session.js +10 -10
  52. package/src/Core/set-logger.js +2 -2
  53. package/src/Core/set-sdk-authentication-signature.js +2 -2
  54. package/src/Core/toggle-logging.js +2 -2
  55. package/src/Core/wipe-data.js +7 -7
  56. package/src/FeatureFlags/feature-flag-factory.js +10 -10
  57. package/src/FeatureFlags/feature-flag.js +20 -71
  58. package/src/FeatureFlags/feature-flags-provider-factory.js +12 -12
  59. package/src/FeatureFlags/feature-flags-provider.js +87 -87
  60. package/src/FeatureFlags/get-all-feature-flags.js +4 -4
  61. package/src/FeatureFlags/get-feature-flag.js +4 -4
  62. package/src/FeatureFlags/log-feature-flag-impression.js +9 -9
  63. package/src/FeatureFlags/refresh-feature-flags.js +2 -2
  64. package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +4 -4
  65. package/src/InAppMessage/defer-in-app-message.js +4 -4
  66. package/src/InAppMessage/display/html-message-to-html.js +10 -10
  67. package/src/InAppMessage/display/in-app-message-to-html.js +28 -28
  68. package/src/InAppMessage/display/modal-utils.js +7 -7
  69. package/src/InAppMessage/in-app-message-factory.js +15 -15
  70. package/src/InAppMessage/in-app-message-manager-factory.js +5 -5
  71. package/src/InAppMessage/in-app-message-manager.js +100 -100
  72. package/src/InAppMessage/log-in-app-message-button-click.js +9 -9
  73. package/src/InAppMessage/log-in-app-message-click.js +6 -6
  74. package/src/InAppMessage/log-in-app-message-html-click.js +9 -9
  75. package/src/InAppMessage/log-in-app-message-impression.js +4 -4
  76. package/src/InAppMessage/models/control-message.js +4 -4
  77. package/src/InAppMessage/models/full-screen-message.js +35 -35
  78. package/src/InAppMessage/models/html-message.js +21 -21
  79. package/src/InAppMessage/models/in-app-message-button.js +5 -5
  80. package/src/InAppMessage/models/in-app-message.js +75 -75
  81. package/src/InAppMessage/models/modal-message.js +34 -34
  82. package/src/InAppMessage/models/slide-up-message.js +31 -31
  83. package/src/InAppMessage/models/templated-in-app-message.js +8 -8
  84. package/src/InAppMessage/subscribe-to-in-app-message.js +1 -1
  85. package/src/InAppMessage/ui/automatically-show-in-app-messages.js +3 -3
  86. package/src/InAppMessage/ui/show-in-app-message.js +19 -19
  87. package/src/Push/push-manager-factory.js +9 -9
  88. package/src/Push/push-manager.js +118 -118
  89. package/src/Push/utils/push-utils.js +9 -9
  90. package/src/User/user-manager.js +20 -20
  91. package/src/User/user.js +44 -45
  92. package/src/common/base-provider.js +1 -1
  93. package/src/common/content-cards-display.js +18 -18
  94. package/src/common/event-logger.js +10 -10
  95. package/src/common/properties-base.js +56 -0
  96. package/src/l10n/l10n-manager-factory.js +7 -7
  97. package/src/l10n/l10n-manager.js +4 -4
  98. package/src/managers/auth-manager.js +32 -32
  99. package/src/managers/braze-instance.js +143 -143
  100. package/src/managers/device-manager.js +22 -22
  101. package/src/managers/network-manager.js +172 -168
  102. package/src/managers/server-config-manager.js +73 -73
  103. package/src/managers/session-manager.js +40 -40
  104. package/src/managers/storage-manager-factory.js +6 -6
  105. package/src/managers/storage-manager.js +97 -97
  106. package/src/managers/subscription-manager.js +12 -12
  107. package/src/managers/utils.js +1 -1
  108. package/src/models/backend-errors.js +5 -5
  109. package/src/models/braze-event.js +5 -5
  110. package/src/models/device.js +2 -2
  111. package/src/models/identifier.js +12 -12
  112. package/src/models/push-token.js +13 -13
  113. package/src/models/request-result.js +4 -4
  114. package/src/models/server-config.js +31 -31
  115. package/src/request-controller.js +159 -159
  116. package/src/triggers/models/custom-event-data.js +1 -1
  117. package/src/triggers/models/custom-event-property-data.js +2 -2
  118. package/src/triggers/models/filter-set.js +6 -6
  119. package/src/triggers/models/filter.js +26 -26
  120. package/src/triggers/models/in-app-message-click-data.js +1 -1
  121. package/src/triggers/models/purchase-data.js +1 -1
  122. package/src/triggers/models/purchase-property-data.js +2 -2
  123. package/src/triggers/models/push-click-data.js +1 -1
  124. package/src/triggers/models/trigger-condition.js +37 -37
  125. package/src/triggers/models/trigger-events.js +3 -3
  126. package/src/triggers/models/trigger.js +16 -16
  127. package/src/triggers/triggers-provider-factory.js +12 -12
  128. package/src/triggers/triggers-provider.js +61 -61
  129. package/src/ui/js/attach-css.js +1 -1
  130. package/src/ui/js/load-font-awesome.js +1 -1
  131. package/src/util/base-device-parser.js +1 -1
  132. package/src/util/braze-actions.js +6 -6
  133. package/src/util/browser-detector.js +20 -13
  134. package/src/util/client-hints-parser.js +6 -6
  135. package/src/util/code-utils.js +2 -2
  136. package/src/util/component-utils.js +1 -1
  137. package/src/util/deprecation-utils.js +2 -2
  138. package/src/util/device-constants.js +4 -4
  139. package/src/util/dom-utils.js +9 -9
  140. package/src/util/html-display-utils.js +7 -7
  141. package/src/util/key-codes.js +1 -1
  142. package/src/util/net.js +12 -12
  143. package/src/util/request-header-utils.js +22 -22
  144. package/src/util/string-utils.js +2 -2
  145. package/src/util/user-agent-parser.js +16 -16
  146. package/src/util/validation-utils.js +12 -12
  147. package/src/util/window-utils.js +2 -2
package/src/util/net.js CHANGED
@@ -1,19 +1,19 @@
1
- import { logger as N } from "../../shared-lib/index.js";
1
+ import { logger as E } from "../../shared-lib/index.js";
2
2
  import Xt from "../models/backend-errors.js";
3
3
  import { getErrorMessage as si } from "./error-utils.js";
4
- const l = {
5
- Y: (t) => {
4
+ const a = {
5
+ O: (t) => {
6
6
  let e, o;
7
7
  try {
8
8
  const r = () => {
9
- N.error("This browser does not have any supported ajax options!");
9
+ E.error("This browser does not have any supported ajax options!");
10
10
  };
11
11
  let n = !1;
12
12
  if ((window.XMLHttpRequest && (n = !0), !n)) return void r();
13
13
  e = new XMLHttpRequest();
14
14
  const s = (o) => {
15
15
  "function" == typeof t.error && t.error(e.status),
16
- "function" == typeof t.nt && t.nt(!1, o);
16
+ "function" == typeof t.tt && t.tt(!1, o);
17
17
  };
18
18
  (e.onload = () => {
19
19
  let o = !1;
@@ -21,20 +21,20 @@ const l = {
21
21
  o = (e.status >= 200 && e.status < 300) || 304 === e.status;
22
22
  const r = e.getAllResponseHeaders();
23
23
  if (o) {
24
- if ("function" == typeof t.tt) {
24
+ if ("function" == typeof t.W) {
25
25
  let o;
26
26
  try {
27
27
  o = JSON.parse(e.responseText);
28
28
  } catch (o) {
29
29
  const n = {
30
- error: "" === e.responseText ? Xt.hl : Xt.cl,
30
+ error: "" === e.responseText ? Xt.vu : Xt.Ru,
31
31
  response: e.responseText,
32
32
  };
33
- (0, t.tt)(n, r);
33
+ (0, t.W)(n, r);
34
34
  }
35
- o && t.tt(o, r);
35
+ o && t.W(o, r);
36
36
  }
37
- "function" == typeof t.nt && t.nt(!0, r);
37
+ "function" == typeof t.tt && t.tt(!0, r);
38
38
  } else s(r);
39
39
  }),
40
40
  (e.onerror = () => {
@@ -51,7 +51,7 @@ const l = {
51
51
  for (const t of i) e.setRequestHeader(t[0], t[1]);
52
52
  e.send(o);
53
53
  } catch (t) {
54
- N.error(`Network request error: ${si(t)}`);
54
+ E.error(`Network request error: ${si(t)}`);
55
55
  }
56
56
  },
57
57
  };
@@ -67,4 +67,4 @@ export const readResponseHeaders = (t) => {
67
67
  (e[r] = n));
68
68
  return e;
69
69
  };
70
- export default l;
70
+ export default a;
@@ -1,51 +1,51 @@
1
1
  import { REQUEST_ATTEMPT_DEFAULT as Ae } from "../common/constants.js";
2
2
  import { STORAGE_KEYS as s } from "../managers/storage-manager.js";
3
3
  const h = {
4
- O: {
5
- gl: "data",
6
- vi: "content_cards/sync",
7
- Le: "feature_flags/sync",
8
- Mr: "template",
9
- K: "banners/sync",
10
- },
11
- Hl: (t) => (null == t ? void 0 : t.ft(s.gt.SE)),
12
- sm: (t) => (null == t ? void 0 : t.ft(s.gt._E)),
4
+ H: {
5
+ Tu: "data",
6
+ bi: "content_cards/sync",
7
+ $e: "feature_flags/sync",
8
+ Ir: "template",
9
+ G: "banners/sync",
10
+ },
11
+ Yu: (t) => (null == t ? void 0 : t.lt(s.ct.SE)),
12
+ sm: (t) => (null == t ? void 0 : t.lt(s.ct._E)),
13
13
  nm: (t, e) => {
14
- null == t || t.Bt(s.gt.SE, e);
14
+ null == t || t.ft(s.ct.SE, e);
15
15
  },
16
16
  rm: (t, e) => {
17
- null == t || t.Bt(s.gt._E, e);
17
+ null == t || t.ft(s.ct._E, e);
18
18
  },
19
- Tl: (t, e) => {
19
+ Cu: (t, e) => {
20
20
  if (!t || !e) return -1;
21
- const s = h.Hl(t);
21
+ const s = h.Yu(t);
22
22
  if (null == s) return -1;
23
23
  const n = s[e];
24
24
  return null == n || isNaN(n) ? -1 : n;
25
25
  },
26
- kl: (t, e) => {
26
+ Su: (t, e) => {
27
27
  let s = Ae;
28
28
  if (!t || !e) return s;
29
29
  const n = h.sm(t);
30
30
  return null == n ? s : ((s = n[e]), null == s || isNaN(s) ? Ae : s);
31
31
  },
32
- W: (t, e, s) => {
32
+ K: (t, e, s) => {
33
33
  if (!t || !e) return;
34
- let n = h.Hl(t);
34
+ let n = h.Yu(t);
35
35
  null == n && (n = {}), (n[e] = s), h.nm(t, n);
36
36
  },
37
- yl: (t, e, s) => {
37
+ Bu: (t, e, s) => {
38
38
  if (!t || !e) return;
39
39
  let n = h.sm(t);
40
40
  null == n && (n = {}), (n[e] = s), h.rm(t, n);
41
41
  },
42
- bi: (t, e) => {
43
- t && e && h.yl(t, e, Ae);
42
+ Ci: (t, e) => {
43
+ t && e && h.Bu(t, e, Ae);
44
44
  },
45
- $l: (t, e) => {
45
+ Ku: (t, e) => {
46
46
  if (!t || !e) return;
47
- const s = h.kl(t, e);
48
- h.yl(t, e, s + 1);
47
+ const s = h.Su(t, e);
48
+ h.Bu(t, e, s + 1);
49
49
  },
50
50
  };
51
51
  export default h;
@@ -1,4 +1,4 @@
1
- import { logger as N } from "../../shared-lib/index.js";
1
+ import { logger as E } from "../../shared-lib/index.js";
2
2
  export function getByteLength(t) {
3
3
  let e = t.length;
4
4
  for (let n = t.length - 1; n >= 0; n--) {
@@ -17,6 +17,6 @@ export function decodeBrazeActions(t) {
17
17
  const r = new Uint16Array(n.buffer);
18
18
  return String.fromCharCode(...r);
19
19
  } catch (t) {
20
- return N.error("Unable to decode Base64: " + t), null;
20
+ return E.error("Unable to decode Base64: " + t), null;
21
21
  }
22
22
  }
@@ -1,8 +1,8 @@
1
1
  import ge from "./base-device-parser.js";
2
- import { Browsers as oi, OperatingSystems as so } from "./device-constants.js";
3
- export default class gi extends ge {
2
+ import { Browsers as gi, OperatingSystems as so } from "./device-constants.js";
3
+ export default class oi extends ge {
4
4
  constructor() {
5
- super(), (this.fd = gi.Bc(navigator.userAgent || ""));
5
+ super(), (this.fd = oi.gc(navigator.userAgent || ""));
6
6
  }
7
7
  ef() {
8
8
  return this.fd[0] || "Unknown Browser";
@@ -10,19 +10,19 @@ export default class gi extends ge {
10
10
  ff() {
11
11
  return this.fd[1] || "Unknown Version";
12
12
  }
13
- Ha(r) {
13
+ Ja(r) {
14
14
  for (let n = 0; n < r.length; n++) {
15
15
  const e = r[n].string;
16
- let i = gi.nf(e, r[n]);
16
+ let i = oi.nf(e, r[n]);
17
17
  if (i)
18
18
  return (
19
- i === so.Pg && navigator.maxTouchPoints > 1 && (i = so.co),
19
+ i === so.Og && navigator.maxTouchPoints > 1 && (i = so.co),
20
20
  Promise.resolve(i)
21
21
  );
22
22
  }
23
23
  return Promise.resolve(navigator.platform);
24
24
  }
25
- static Bc(r) {
25
+ static gc(r) {
26
26
  let n,
27
27
  e =
28
28
  r.match(
@@ -41,37 +41,37 @@ export default class gi extends ge {
41
41
  if (r.match(/\b(Roku)\b/)) return ["Roku", null];
42
42
  if (r.match(/\bAFTM\b/)) return ["Amazon Fire Stick", null];
43
43
  if (
44
- e[1] === oi.rO &&
44
+ e[1] === gi.rO &&
45
45
  ((n = r.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/)),
46
46
  null != n)
47
47
  )
48
48
  return (
49
49
  (n = n.slice(1)),
50
- (n[0] = n[0].replace("OPR", oi.oO)),
51
- (n[0] = n[0].replace("EdgA", oi.eO)),
52
- "Edg" === n[0] && (n[0] = oi.eO),
50
+ (n[0] = n[0].replace("OPR", gi.oO)),
51
+ (n[0] = n[0].replace("EdgA", gi.eO)),
52
+ "Edg" === n[0] && (n[0] = gi.eO),
53
53
  [n[0], n[1]]
54
54
  );
55
55
  if (
56
- e[1] === oi.Bg &&
56
+ e[1] === gi.xg &&
57
57
  ((n = r.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/)), null != n)
58
58
  )
59
59
  return (
60
- (n = n.slice(1)), (n[0] = n[0].replace("EdgiOS", oi.eO)), [n[0], n[1]]
60
+ (n = n.slice(1)), (n[0] = n[0].replace("EdgiOS", gi.eO)), [n[0], n[1]]
61
61
  );
62
62
  if (
63
63
  ((e = e[2] ? [e[1], e[2]] : [null, null]),
64
- e[0] === oi.Bg &&
64
+ e[0] === gi.xg &&
65
65
  null != (n = r.match(/version\/(\.?\d+(\.\d+)*)/i)) &&
66
66
  e.splice(1, 1, n[1]),
67
67
  null != (n = r.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/)) &&
68
68
  e.splice(1, 1, n[2]),
69
- e[0] === oi.oO && null != (n = r.match(/mini\/(\.?\d+(\.\d+)*)/i)))
69
+ e[0] === gi.oO && null != (n = r.match(/mini\/(\.?\d+(\.\d+)*)/i)))
70
70
  )
71
71
  return ["Opera Mini", n[1] || ""];
72
72
  if (e[0]) {
73
73
  const r = e[0].toLowerCase();
74
- "crios" === r && (e[0] = oi.rO),
74
+ "crios" === r && (e[0] = gi.rO),
75
75
  "tizen" === r && ((e[0] = "Samsung Smart TV"), (e[1] = null)),
76
76
  "samsungbrowser" === r && (e[0] = "Samsung Browser");
77
77
  }
@@ -4,8 +4,8 @@ import {
4
4
  isObject as It,
5
5
  keys as C,
6
6
  } from "./code-utils.js";
7
- import { getByteLength as rr } from "./string-utils.js";
8
- import { logger as N } from "../../shared-lib/index.js";
7
+ import { getByteLength as er } from "./string-utils.js";
8
+ import { logger as E } from "../../shared-lib/index.js";
9
9
  import { toValidBackendTimeString as Lt } from "./date-utils.js";
10
10
  import { BRAZE_ACTIONS as oo } from "./braze-actions.js";
11
11
  import { SET_CUSTOM_USER_ATTRIBUTE_STRING as Ft } from "../common/constants.js";
@@ -35,14 +35,14 @@ export function validateCustomString(t, e, r) {
35
35
  null != t &&
36
36
  "string" == typeof t &&
37
37
  ("" === t || null != t.match(CUSTOM_DATA_REGEX));
38
- return n || N.error(`Cannot ${e} because ${r} "${t}" is invalid.`), n;
38
+ return n || E.error(`Cannot ${e} because ${r} "${t}" is invalid.`), n;
39
39
  }
40
40
  export function validateCustomAttributeKey(t) {
41
41
  return (
42
42
  null != t &&
43
43
  t.match(CUSTOM_ATTRIBUTE_SPECIAL_CHARS_REGEX) &&
44
44
  -1 === CUSTOM_ATTRIBUTE_RESERVED_OPERATORS.indexOf(t) &&
45
- N.warn("Custom attribute keys cannot contain '$' or '.'"),
45
+ E.warn("Custom attribute keys cannot contain '$' or '.'"),
46
46
  validateCustomString(t, "set custom user attribute", "the given key")
47
47
  );
48
48
  }
@@ -55,7 +55,7 @@ export function validatePropertyType(t) {
55
55
  export function _validateNestedProperties(t, e, r) {
56
56
  const n = -1 !== r;
57
57
  if (n && r > 50)
58
- return N.error("Nested attributes cannot be more than 50 levels deep."), !1;
58
+ return E.error("Nested attributes cannot be more than 50 levels deep."), !1;
59
59
  const o = n ? r + 1 : -1;
60
60
  if (D(t) && D(e)) {
61
61
  for (let r = 0; r < t.length && r < e.length; r++)
@@ -84,26 +84,26 @@ export function _validateEventPropertyValue(t, e, r, n, o) {
84
84
  It(t) || D(t)
85
85
  ? _validateNestedProperties(t, e, o ? 1 : -1)
86
86
  : validatePropertyType(t)),
87
- i || N.error(`Cannot ${r} because ${n} "${t}" is invalid.`),
87
+ i || E.error(`Cannot ${r} because ${n} "${t}" is invalid.`),
88
88
  i
89
89
  );
90
90
  }
91
91
  export function validateStandardString(t, e, r, n = !1) {
92
92
  const o = "string" == typeof t || (null === t && n);
93
- return o || N.error(`Cannot ${e} because ${r} "${t}" is invalid.`), o;
93
+ return o || E.error(`Cannot ${e} because ${r} "${t}" is invalid.`), o;
94
94
  }
95
95
  export function validateCustomProperties(t, e, r, n, o) {
96
96
  if ((null == t && (t = {}), "object" != typeof t || D(t)))
97
97
  return (
98
- N.error(`${e} requires that ${r} be an object. Ignoring ${o}.`),
98
+ E.error(`${e} requires that ${r} be an object. Ignoring ${o}.`),
99
99
  [!1, null]
100
100
  );
101
101
  let i, a;
102
102
  e === Ft ? ((i = 76800), (a = "75KB")) : ((i = 51200), (a = "50KB"));
103
103
  const s = JSON.stringify(t);
104
- if (rr(s) > i)
104
+ if (er(s) > i)
105
105
  return (
106
- N.error(
106
+ E.error(
107
107
  `Could not ${n} because ${r} was greater than the max size of ${a}.`,
108
108
  ),
109
109
  [!1, null]
@@ -113,7 +113,7 @@ export function validateCustomProperties(t, e, r, n, o) {
113
113
  u = JSON.parse(s);
114
114
  } catch (t) {
115
115
  return (
116
- N.error(`Could not ${n} because ${r} did not contain valid JSON.`),
116
+ E.error(`Could not ${n} because ${r} did not contain valid JSON.`),
117
117
  [!1, null]
118
118
  );
119
119
  }
@@ -144,7 +144,7 @@ export function validateCustomAttributeArrayType(t, e) {
144
144
  let r = !1,
145
145
  n = !1;
146
146
  const o = () => {
147
- N.error(
147
+ E.error(
148
148
  "Custom attribute arrays must be either string arrays or object arrays.",
149
149
  );
150
150
  };
@@ -29,6 +29,6 @@ export function _getCurrentUrl() {
29
29
  export const WindowUtils = {
30
30
  openUri: _openUri,
31
31
  Uo: _isPhone,
32
- No: _getOrientation,
33
- Ua: _getCurrentUrl,
32
+ $o: _getOrientation,
33
+ Ca: _getCurrentUrl,
34
34
  };