@sheerid/jslib-nightly 2.125.0-alpha.1 → 2.125.0-alpha.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 (246) hide show
  1. package/_mysheerid-preview.css +3 -3
  2. package/_mysheerid-preview.js +759 -753
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/EmailLoopPending-CHILFZYc.js +3 -3
  5. package/chunk/EmailLoopPending-Nn_H3cfS.js +3 -3
  6. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +3 -3
  7. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +3 -3
  8. package/chunk/Onfido-AyvUk6wg.js +3 -3
  9. package/chunk/StepIDCheckLoopOnfido-Bl1QfUZZ.js +3 -3
  10. package/chunk/StepIDCheckLoopOnfido-D0kpzIyk.js +3 -3
  11. package/chunk/StepIDCheckLoopRegula-BkTDnK3G.js +3 -3
  12. package/chunk/StepIDCheckLoopRegula-D6freNro.js +3 -3
  13. package/chunk/StepInactiveMilitaryPersonalInfoComponent-CooMPgH1.js +3 -3
  14. package/chunk/StepInactiveMilitaryPersonalInfoComponent-DTtUadmx.js +3 -3
  15. package/chunk/ar--TDb5qE5.js +3 -3
  16. package/chunk/bg-D3cL-ciP.js +3 -3
  17. package/chunk/bn-IN-CwiPRX5T.js +3 -3
  18. package/chunk/cs-7pQwm9YC.js +3 -3
  19. package/chunk/da-C2xASa_G.js +3 -3
  20. package/chunk/de-D4nlAbMa.js +3 -3
  21. package/chunk/el-C-PZe5CV.js +3 -3
  22. package/chunk/en-GB-DXa6bdA_.js +3 -3
  23. package/chunk/es-BlLBNTpz.js +3 -3
  24. package/chunk/es-ES-inNoG-F1.js +3 -3
  25. package/chunk/fi-CcolQnAY.js +3 -3
  26. package/chunk/fr-BjHvlhn5.js +3 -3
  27. package/chunk/fr-CA-DD4NnfK-.js +3 -3
  28. package/chunk/ga-D-rK3PZy.js +3 -3
  29. package/chunk/hi-IN-B1NQdkcj.js +3 -3
  30. package/chunk/hr-CwvyeMFM.js +3 -3
  31. package/chunk/hu-BCZWPgvf.js +3 -3
  32. package/chunk/id-CRNXXELT.js +3 -3
  33. package/chunk/index-1Cpf6KJI.js +3 -3
  34. package/chunk/index-2ob_KvkC.js +3 -3
  35. package/chunk/index-B4HIyFVA.js +3 -3
  36. package/chunk/{index--Wcf_zsf.js → index-B4PunPFk.js} +52 -58
  37. package/chunk/index-B4PunPFk.js.map +1 -0
  38. package/chunk/index-B5Db6m8t.js +3 -3
  39. package/chunk/index-BJg9BX3v.js +3 -3
  40. package/chunk/index-BLIxYZFr.js +3 -3
  41. package/chunk/index-BU0HFLKm.js +3 -3
  42. package/chunk/index-Bofro8C_.js +3 -3
  43. package/chunk/index-BqUi3r5Z.js +3 -3
  44. package/chunk/index-Br3LkCoX.js +3 -3
  45. package/chunk/index-C4OCK6G0.js +3 -3
  46. package/chunk/index-C8UuTatc.js +3 -3
  47. package/chunk/{index-DSi_yLKY.js → index-CUH2uSMd.js} +52 -58
  48. package/chunk/index-CUH2uSMd.js.map +1 -0
  49. package/chunk/index-CVEIzLov.js +3 -3
  50. package/chunk/index-CcE-GFi6.js +3 -3
  51. package/chunk/index-CjcYFvhf.js +3 -3
  52. package/chunk/index-Cnc52tkD.js +3 -3
  53. package/chunk/index-CoPQ1aC2.js +3 -3
  54. package/chunk/index-Cu25bQnA.js +3 -3
  55. package/chunk/index-CxH2IKXK.js +3 -3
  56. package/chunk/index-CyTruyP6.js +3 -3
  57. package/chunk/index-DAE3SOJH.js +3 -3
  58. package/chunk/index-DCTYdT7J.js +3 -3
  59. package/chunk/index-DFajPA-e.js +3 -3
  60. package/chunk/index-DHtYIKVA.js +3 -3
  61. package/chunk/index-DIkWpujR.js +3 -3
  62. package/chunk/index-DJo820YY.js +3 -3
  63. package/chunk/index-DdQD36Ht.js +3 -3
  64. package/chunk/index-Dg1E2EXp.js +3 -3
  65. package/chunk/index-DljRrdj9.js +3 -3
  66. package/chunk/index-N20c5WiN.js +3 -3
  67. package/chunk/index-SwnUiXjr.js +3 -3
  68. package/chunk/index-dDH8B6_D.js +3 -3
  69. package/chunk/index-huf3obhv.js +3 -3
  70. package/chunk/index-n6fChAZJ.js +3 -3
  71. package/chunk/index-oHEY5B58.js +3 -3
  72. package/chunk/index-xgVNIuKt.js +3 -3
  73. package/chunk/index-zX2rojxg.js +3 -3
  74. package/chunk/is-BFoDLV-f.js +3 -3
  75. package/chunk/it-B_iK-eSd.js +3 -3
  76. package/chunk/iw-DL48t5mZ.js +3 -3
  77. package/chunk/ja-C5bG2SRl.js +3 -3
  78. package/chunk/ko-CmmVl873.js +3 -3
  79. package/chunk/lo-DvBsVm-4.js +3 -3
  80. package/chunk/lt-DWoqI4gx.js +3 -3
  81. package/chunk/ms-BCHBEoqA.js +3 -3
  82. package/chunk/nl-BE-DLixID0q.js +3 -3
  83. package/chunk/nl-CeBqOv0i.js +3 -3
  84. package/chunk/no-BR2xqD23.js +3 -3
  85. package/chunk/pl-Dl77tRgW.js +3 -3
  86. package/chunk/pt-BR--SxHOWht.js +3 -3
  87. package/chunk/pt-D0bmI49-.js +3 -3
  88. package/chunk/ro-HCkS3amY.js +3 -3
  89. package/chunk/ru-BDMi1lvr.js +3 -3
  90. package/chunk/sk-C4zNHeM6.js +3 -3
  91. package/chunk/sl-BbQVw1S0.js +3 -3
  92. package/chunk/sr-8d4sC8Hd.js +3 -3
  93. package/chunk/sv-B0-e7r_0.js +3 -3
  94. package/chunk/sw-Bo9F25Vc.js +3 -3
  95. package/chunk/th-DDuVbwLh.js +3 -3
  96. package/chunk/tr-CUwkgj2T.js +3 -3
  97. package/chunk/uk-BPrGA4MJ.js +3 -3
  98. package/chunk/ur-CIgS3emx.js +3 -3
  99. package/chunk/useCollectFieldsEndpoint-DFo1yXvN.js +3 -3
  100. package/chunk/useCollectFieldsEndpoint-DPX8CT4Y.js +3 -3
  101. package/chunk/useEmailFirstExperiment-DH410dM-.js +3 -3
  102. package/chunk/useEmailFirstExperiment-q-thhCji.js +3 -3
  103. package/chunk/vi-JbWizd9m.js +3 -3
  104. package/chunk/zh-DjbXrser.js +3 -3
  105. package/chunk/zh-HK-DXcspp2Y.js +3 -3
  106. package/chunk/zu-BzwZfIDF.js +3 -3
  107. package/es6.css +3 -3
  108. package/jslib.js +4 -4
  109. package/lib/{EmailLoopPending-DYR3AGIW.js → EmailLoopPending-CW5UKoOA.js} +4 -4
  110. package/lib/{EmailLoopPending-DYR3AGIW.js.map → EmailLoopPending-CW5UKoOA.js.map} +1 -1
  111. package/lib/{LicensedProfessionalOrganizationComponent-DeEUEviO.js → LicensedProfessionalOrganizationComponent-CMzobXFw.js} +4 -4
  112. package/lib/{LicensedProfessionalOrganizationComponent-DeEUEviO.js.map → LicensedProfessionalOrganizationComponent-CMzobXFw.js.map} +1 -1
  113. package/lib/Onfido-AyvUk6wg.js +3 -3
  114. package/lib/StepCollectMilitaryStatusComponent-k1RQU7lF.js +11 -0
  115. package/lib/{StepCollectMilitaryStatusComponent-DDwJ2uKP.js.map → StepCollectMilitaryStatusComponent-k1RQU7lF.js.map} +1 -1
  116. package/lib/{StepIDCheckLoopOnfido-CepJdpWH.js → StepIDCheckLoopOnfido-BQbdtSUz.js} +4 -4
  117. package/lib/{StepIDCheckLoopOnfido-CepJdpWH.js.map → StepIDCheckLoopOnfido-BQbdtSUz.js.map} +1 -1
  118. package/lib/{StepIDCheckLoopRegula-DV2QH9p4.js → StepIDCheckLoopRegula--9_UjFB7.js} +4 -4
  119. package/lib/{StepIDCheckLoopRegula-DV2QH9p4.js.map → StepIDCheckLoopRegula--9_UjFB7.js.map} +1 -1
  120. package/lib/{StepInactiveMilitaryPersonalInfoComponent-BmJ-PBR2.js → StepInactiveMilitaryPersonalInfoComponent-CjudYej-.js} +5 -5
  121. package/lib/{StepInactiveMilitaryPersonalInfoComponent-BmJ-PBR2.js.map → StepInactiveMilitaryPersonalInfoComponent-CjudYej-.js.map} +1 -1
  122. package/lib/{VerificationApiUtils-FlwXw7Pe.js → VerificationApiUtils-BVf14vyk.js} +4 -4
  123. package/lib/{VerificationApiUtils-FlwXw7Pe.js.map → VerificationApiUtils-BVf14vyk.js.map} +1 -1
  124. package/lib/ar--TDb5qE5.js +3 -3
  125. package/lib/bg-D3cL-ciP.js +3 -3
  126. package/lib/bn-IN-CwiPRX5T.js +3 -3
  127. package/lib/cs-7pQwm9YC.js +3 -3
  128. package/lib/da-C2xASa_G.js +3 -3
  129. package/lib/de-D4nlAbMa.js +3 -3
  130. package/lib/el-C-PZe5CV.js +3 -3
  131. package/lib/en-GB-DXa6bdA_.js +3 -3
  132. package/lib/es-BlLBNTpz.js +3 -3
  133. package/lib/es-ES-inNoG-F1.js +3 -3
  134. package/lib/{es6-CMq4-YDY.js → es6-BFB4aE3p.js} +1163 -1163
  135. package/lib/es6-BFB4aE3p.js.map +1 -0
  136. package/lib/fi-CcolQnAY.js +3 -3
  137. package/lib/fr-BjHvlhn5.js +3 -3
  138. package/lib/fr-CA-DD4NnfK-.js +3 -3
  139. package/lib/ga-D-rK3PZy.js +3 -3
  140. package/lib/hi-IN-B1NQdkcj.js +3 -3
  141. package/lib/hr-CwvyeMFM.js +3 -3
  142. package/lib/hu-BCZWPgvf.js +3 -3
  143. package/lib/id-CRNXXELT.js +3 -3
  144. package/lib/{index-zd3oz1zG.js → index-1vLKOb0V.js} +4 -4
  145. package/lib/{index-zd3oz1zG.js.map → index-1vLKOb0V.js.map} +1 -1
  146. package/lib/{index-BmAnB2LR.js → index-B2ThVrAq.js} +4 -4
  147. package/lib/{index-BmAnB2LR.js.map → index-B2ThVrAq.js.map} +1 -1
  148. package/lib/{index-BY5AmgUR.js → index-B8E8jTsA.js} +4 -4
  149. package/lib/{index-BY5AmgUR.js.map → index-B8E8jTsA.js.map} +1 -1
  150. package/lib/{index-F7wd7roi.js → index-BHdExwSU.js} +5 -5
  151. package/lib/{index-F7wd7roi.js.map → index-BHdExwSU.js.map} +1 -1
  152. package/lib/{index-DXJ9A0UJ.js → index-BU-n6sAD.js} +4 -4
  153. package/lib/{index-DXJ9A0UJ.js.map → index-BU-n6sAD.js.map} +1 -1
  154. package/lib/{index-CyXs8OYl.js → index-CPVp6SwJ.js} +4 -4
  155. package/lib/{index-CyXs8OYl.js.map → index-CPVp6SwJ.js.map} +1 -1
  156. package/lib/{index-qqet_Sie.js → index-CWpBf0Wf.js} +5 -5
  157. package/lib/{index-qqet_Sie.js.map → index-CWpBf0Wf.js.map} +1 -1
  158. package/lib/{index-6htOOWof.js → index-CYMo3zgk.js} +5 -5
  159. package/lib/{index-6htOOWof.js.map → index-CYMo3zgk.js.map} +1 -1
  160. package/lib/{index-d15c4yeO.js → index-C_T5WD_S.js} +5 -5
  161. package/lib/{index-d15c4yeO.js.map → index-C_T5WD_S.js.map} +1 -1
  162. package/lib/{index-iB1D5H9r.js → index-CmPkSFZI.js} +4 -4
  163. package/lib/{index-iB1D5H9r.js.map → index-CmPkSFZI.js.map} +1 -1
  164. package/lib/{index-8h5SY_qA.js → index-DA-Ij188.js} +5 -5
  165. package/lib/{index-8h5SY_qA.js.map → index-DA-Ij188.js.map} +1 -1
  166. package/lib/index-DIkWpujR.js +3 -3
  167. package/lib/{index-CoMeraXR.js → index-DSrN9_yW.js} +6 -6
  168. package/lib/{index-CoMeraXR.js.map → index-DSrN9_yW.js.map} +1 -1
  169. package/lib/index-DWDhBe-P.js +11 -0
  170. package/lib/index-DWDhBe-P.js.map +1 -0
  171. package/lib/index-D_Qj322b.js +11 -0
  172. package/lib/index-D_Qj322b.js.map +1 -0
  173. package/lib/{index-BKvRxu0T.js → index-DhkhpxKE.js} +6 -6
  174. package/lib/{index-BKvRxu0T.js.map → index-DhkhpxKE.js.map} +1 -1
  175. package/lib/{index-DQVBSTg5.js → index-DjR8Ydwf.js} +5 -5
  176. package/lib/{index-DQVBSTg5.js.map → index-DjR8Ydwf.js.map} +1 -1
  177. package/lib/index-DklvxMYi.js +11 -0
  178. package/lib/index-DklvxMYi.js.map +1 -0
  179. package/lib/{index-BhLswM0A.js → index-Dl8UpLGc.js} +4 -4
  180. package/lib/{index-BhLswM0A.js.map → index-Dl8UpLGc.js.map} +1 -1
  181. package/lib/index-DpqXSRlE.js +11 -0
  182. package/lib/index-DpqXSRlE.js.map +1 -0
  183. package/lib/{index-Cu6mgym7.js → index-Fd9ULgG_.js} +4 -4
  184. package/lib/{index-Cu6mgym7.js.map → index-Fd9ULgG_.js.map} +1 -1
  185. package/lib/{index-BoV4DKX2.js → index-KyeI_D-8.js} +4 -4
  186. package/lib/{index-BoV4DKX2.js.map → index-KyeI_D-8.js.map} +1 -1
  187. package/lib/{index-Du5i5Y_S.js → index-U3NcakYn.js} +4 -4
  188. package/lib/{index-Du5i5Y_S.js.map → index-U3NcakYn.js.map} +1 -1
  189. package/lib/{index-BlSWIsEp.js → index-mxcd7i4J.js} +5 -5
  190. package/lib/{index-BlSWIsEp.js.map → index-mxcd7i4J.js.map} +1 -1
  191. package/lib/is-BFoDLV-f.js +3 -3
  192. package/lib/it-B_iK-eSd.js +3 -3
  193. package/lib/iw-DL48t5mZ.js +3 -3
  194. package/lib/ja-C5bG2SRl.js +3 -3
  195. package/lib/ko-CmmVl873.js +3 -3
  196. package/lib/lo-DvBsVm-4.js +3 -3
  197. package/lib/lt-DWoqI4gx.js +3 -3
  198. package/lib/ms-BCHBEoqA.js +3 -3
  199. package/lib/nl-BE-DLixID0q.js +3 -3
  200. package/lib/nl-CeBqOv0i.js +3 -3
  201. package/lib/no-BR2xqD23.js +3 -3
  202. package/lib/pl-Dl77tRgW.js +3 -3
  203. package/lib/pt-BR--SxHOWht.js +3 -3
  204. package/lib/pt-D0bmI49-.js +3 -3
  205. package/lib/ro-HCkS3amY.js +3 -3
  206. package/lib/ru-BDMi1lvr.js +3 -3
  207. package/lib/sk-C4zNHeM6.js +3 -3
  208. package/lib/sl-BbQVw1S0.js +3 -3
  209. package/lib/sr-8d4sC8Hd.js +3 -3
  210. package/lib/sv-B0-e7r_0.js +3 -3
  211. package/lib/sw-Bo9F25Vc.js +3 -3
  212. package/lib/th-DDuVbwLh.js +3 -3
  213. package/lib/tr-CUwkgj2T.js +3 -3
  214. package/lib/uk-BPrGA4MJ.js +3 -3
  215. package/lib/ur-CIgS3emx.js +3 -3
  216. package/lib/{useCollectFieldsEndpoint-DYgL_ZMP.js → useCollectFieldsEndpoint-C1fTV_4w.js} +5 -5
  217. package/lib/{useCollectFieldsEndpoint-DYgL_ZMP.js.map → useCollectFieldsEndpoint-C1fTV_4w.js.map} +1 -1
  218. package/lib/{useEmailFirstExperiment-7nWQV4c6.js → useEmailFirstExperiment-CUixpXp1.js} +4 -4
  219. package/lib/{useEmailFirstExperiment-7nWQV4c6.js.map → useEmailFirstExperiment-CUixpXp1.js.map} +1 -1
  220. package/lib/vi-JbWizd9m.js +3 -3
  221. package/lib/zh-DjbXrser.js +3 -3
  222. package/lib/zh-HK-DXcspp2Y.js +3 -3
  223. package/lib/zu-BzwZfIDF.js +3 -3
  224. package/package.json +1 -1
  225. package/sheerid-install.css +3 -3
  226. package/sheerid-install.js +175 -181
  227. package/sheerid-install.js.map +1 -1
  228. package/sheerid.css +3 -3
  229. package/sheerid.js +1042 -1036
  230. package/sheerid.js.map +1 -1
  231. package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -1
  232. package/src/lib/installScript/iframe.d.ts +0 -2
  233. package/src/lib/types/types.d.ts +1 -1
  234. package/types-reference.zip +0 -0
  235. package/chunk/index--Wcf_zsf.js.map +0 -1
  236. package/chunk/index-DSi_yLKY.js.map +0 -1
  237. package/lib/StepCollectMilitaryStatusComponent-DDwJ2uKP.js +0 -11
  238. package/lib/es6-CMq4-YDY.js.map +0 -1
  239. package/lib/index-5RpKc96d.js +0 -11
  240. package/lib/index-5RpKc96d.js.map +0 -1
  241. package/lib/index-B-GQPmhx.js +0 -11
  242. package/lib/index-B-GQPmhx.js.map +0 -1
  243. package/lib/index-BZ4SmBYf.js +0 -11
  244. package/lib/index-BZ4SmBYf.js.map +0 -1
  245. package/lib/index-DtSQj5zg.js +0 -11
  246. package/lib/index-DtSQj5zg.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.125.0-alpha.1
4
- * BUILD_TIMESTAMP: 1756935060149
5
- * BUILD_DATE: Wed Sep 03 2025 21:31:00 GMT+0000 (Coordinated Universal Time)
3
+ * VERSION: 2.125.0-alpha.2
4
+ * BUILD_TIMESTAMP: 1757373467669
5
+ * BUILD_DATE: Mon Sep 08 2025 23:17:47 GMT+0000 (Coordinated Universal Time)
6
6
  * BUILD_COMMIT: 0914cf38689ebf245ba4e5acca31df2fbd4257f4
7
7
  */
8
- var A = Object.defineProperty;
9
- var T = (i, t, e) => t in i ? A(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
10
- var r = (i, t, e) => T(i, typeof t != "symbol" ? t + "" : t, e);
8
+ var S = Object.defineProperty;
9
+ var T = (i, e, t) => e in i ? S(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
10
+ var s = (i, e, t) => T(i, typeof e != "symbol" ? e + "" : e, t);
11
11
  const _ = "installPageUrl", M = "installType", y = {
12
12
  INLINE_IFRAME_CONTENT: "sid-inline-iframe",
13
13
  MODAL_WRAPPER: "sid-modal__wrapper",
@@ -21,11 +21,11 @@ const _ = "installPageUrl", M = "installType", y = {
21
21
  DEFAULT_MOBILE_THRESHOLD_WIDTH: 620,
22
22
  MODAL_OPACITY_TRANSITION_PERIOD: 300
23
23
  }, O = {}, N = async () => O, R = () => window.navigator.globalPrivacyControl, h = () => window.NREUM && !R();
24
- function o(i, t) {
24
+ function a(i, e) {
25
25
  try {
26
26
  return i();
27
27
  } catch {
28
- return t;
28
+ return e;
29
29
  }
30
30
  }
31
31
  let f = 4, l = "";
@@ -45,67 +45,67 @@ const P = (i) => i && i.stack && i.message, E = (...i) => {
45
45
  f <= 3 && console.warn(`%c${l} warn`, `background: ${m.warn};${p}`, ...i);
46
46
  }, C = (...i) => {
47
47
  f <= 2 && console.log(`%c${l} log`, `background: ${m.log};${p}`, ...i);
48
- }, D = (...i) => {
48
+ }, $ = (...i) => {
49
49
  f <= 1 && console.log(`%c${l} info`, `background: ${m.info};${p}`, ...i);
50
- }, x = async (i, t = "unknown group", e = {}) => {
50
+ }, D = async (i, e = "unknown group", t = {}) => {
51
51
  if (f <= 4) {
52
52
  if (!i) {
53
53
  console.error(new Error("An error must be supplied"));
54
54
  return;
55
55
  }
56
- let s;
57
- typeof i == "string" && (s = new Error(i)), P(i) && (s = i), s || (s = new Error("Unknown error"));
58
- let n = { errorMessageGroup: t };
56
+ let n;
57
+ typeof i == "string" && (n = new Error(i)), P(i) && (n = i), n || (n = new Error("Unknown error"));
58
+ let o = { errorMessageGroup: e };
59
59
  try {
60
- n = {
60
+ o = {
61
61
  ...await N(),
62
- ...n
63
- }, delete n.jslibVersionActual;
64
- } catch (a) {
65
- h() ? window.NREUM.noticeError(s, n) : E("Unable to assemble GA error attributes", a);
62
+ ...o
63
+ }, delete o.jslibVersionActual;
64
+ } catch (r) {
65
+ h() ? window.NREUM.noticeError(n, o) : E("Unable to assemble GA error attributes", r);
66
66
  }
67
67
  try {
68
68
  if (u && u.getState) {
69
- const a = u.getState(), I = o(() => a.verificationResponse.errorIds);
70
- n = {
71
- ...n,
72
- programId: o(() => a.programId),
73
- isLoading: o(() => a.isLoading),
74
- isErrored: o(() => a.isErrored),
69
+ const r = u.getState(), I = a(() => r.verificationResponse.errorIds);
70
+ o = {
71
+ ...o,
72
+ programId: a(() => r.programId),
73
+ isLoading: a(() => r.isLoading),
74
+ isErrored: a(() => r.isErrored),
75
75
  errorIdsFromVerRsp: Array.isArray(I) ? I.join(", ") : void 0,
76
- verificationId: o(() => a.verificationResponse.verificationId),
77
- currentStep: o(() => a.verificationResponse.currentStep),
78
- locale: o(() => a.programTheme.intl.locale),
79
- isTestMode: o(() => a.programTheme.isTestMode),
80
- openOrgSearchEnabled: o(() => a.programTheme.openOrgSearchEnabled),
81
- jslibVerActual: o(() => "2.125.0-alpha.1", "?"),
82
- ...e
76
+ verificationId: a(() => r.verificationResponse.verificationId),
77
+ currentStep: a(() => r.verificationResponse.currentStep),
78
+ locale: a(() => r.programTheme.intl.locale),
79
+ isTestMode: a(() => r.programTheme.isTestMode),
80
+ openOrgSearchEnabled: a(() => r.programTheme.openOrgSearchEnabled),
81
+ jslibVerActual: a(() => "2.125.0-alpha.2", "?"),
82
+ ...t
83
83
  };
84
84
  }
85
- } catch (a) {
86
- h() ? window.NREUM.noticeError(s, n) : E("Unable to assemble useful error attributes", a);
85
+ } catch (r) {
86
+ h() ? window.NREUM.noticeError(n, o) : E("Unable to assemble useful error attributes", r);
87
87
  }
88
- h() && window.NREUM.noticeError(s, n), console.error(
88
+ h() && window.NREUM.noticeError(n, o), console.error(
89
89
  `%c${l} error`,
90
90
  `background: ${m.error};${p}`,
91
- s,
92
- n
91
+ n,
92
+ o
93
93
  );
94
94
  }
95
- }, B = (i, t = {}) => {
96
- h() && window.NREUM.addPageAction(i, t);
97
- }, $ = (i, t) => {
98
- B("API-calls-timing", {
95
+ }, x = (i, e = {}) => {
96
+ h() && window.NREUM.addPageAction(i, e);
97
+ }, B = (i, e) => {
98
+ x("API-calls-timing", {
99
99
  api_call: i,
100
- api_response_time: t
100
+ api_response_time: e
101
101
  });
102
- }, g = {
103
- error: x,
102
+ }, v = {
103
+ error: D,
104
104
  warn: E,
105
105
  log: C,
106
- info: D,
106
+ info: $,
107
107
  /** @deprecated use newRelicPageAction() instead */
108
- logAPIResponseTime: $,
108
+ logAPIResponseTime: B,
109
109
  setLogLevel: (i) => {
110
110
  if (!L.hasOwnProperty(i))
111
111
  throw new Error(`Unknown logLevel '${i}'`);
@@ -121,250 +121,244 @@ const P = (i) => i && i.stack && i.message, E = (...i) => {
121
121
  u = i;
122
122
  }
123
123
  }, W = (i) => {
124
- i.forEach((t) => {
125
- t.classList.add("fade-in");
124
+ i.forEach((e) => {
125
+ e.classList.add("fade-in");
126
126
  });
127
- }, v = (i, t) => {
127
+ }, g = (i, e) => {
128
128
  i.classList.remove("fade-in"), window.setTimeout(() => {
129
129
  document.body.style.overflow = "auto", i.parentNode.removeChild(i);
130
- }, t);
130
+ }, e);
131
131
  }, U = (i) => {
132
- const t = new URL(i);
133
- return new URL(window.location.href).searchParams.forEach((s, n) => {
134
- t.searchParams.has(n) || t.searchParams.set(n, s);
135
- }), t.href;
132
+ const e = new URL(i);
133
+ return new URL(window.location.href).searchParams.forEach((n, o) => {
134
+ e.searchParams.has(o) || e.searchParams.set(o, n);
135
+ }), e.href;
136
136
  };
137
- class F {
137
+ class k {
138
138
  constructor() {
139
- r(this, "subscribers", /* @__PURE__ */ new Set());
139
+ s(this, "subscribers", /* @__PURE__ */ new Set());
140
140
  }
141
- sub(t) {
142
- return this.subscribers.add(t), () => this.subscribers.delete(t);
141
+ sub(e) {
142
+ return this.subscribers.add(e), () => this.subscribers.delete(e);
143
143
  }
144
- pub(t) {
145
- this.subscribers.forEach((e) => e(t));
144
+ pub(e) {
145
+ this.subscribers.forEach((t) => t(e));
146
146
  }
147
147
  }
148
- class k {
148
+ class F {
149
149
  constructor() {
150
- r(this, "events", /* @__PURE__ */ new Map());
150
+ s(this, "events", /* @__PURE__ */ new Map());
151
151
  }
152
152
  /**
153
153
  * Registers a listener that will be called when the named event is emitted
154
154
  * @returns An unsubscribe function that will turn off this listener.
155
155
  */
156
- on(t, e) {
157
- return this.events.has(t) || this.events.set(t, new F()), this.events.get(t).sub(e);
156
+ on(e, t) {
157
+ return this.events.has(e) || this.events.set(e, new k()), this.events.get(e).sub(t);
158
158
  }
159
159
  /**
160
160
  * Registers a listener that will be called a single time when the named event
161
161
  * is emitted
162
162
  * @returns An unsubscribe function that will turn off this listener.
163
163
  */
164
- once(t, e) {
165
- const s = this.on(t, (n) => (s(), e(n)));
166
- return s;
164
+ once(e, t) {
165
+ const n = this.on(e, (o) => (n(), t(o)));
166
+ return n;
167
167
  }
168
168
  /**
169
169
  * Removes all event listeners for the given key
170
170
  * @returns void
171
171
  */
172
- off(t) {
173
- this.events.delete(t);
172
+ off(e) {
173
+ this.events.delete(e);
174
174
  }
175
175
  /**
176
176
  * Used to emit events to all registered hook listeners
177
177
  *
178
178
  * @private
179
179
  */
180
- emit(t, e) {
181
- this.events.has(t) && this.events.get(t).pub(e);
180
+ emit(e, t) {
181
+ this.events.has(e) && this.events.get(e).pub(t);
182
182
  }
183
183
  }
184
- const S = {
184
+ const A = {
185
185
  className: c.CLASS_NAMES.INLINE_IFRAME_CONTENT,
186
186
  title: b
187
187
  }, H = (i) => {
188
188
  if (typeof i != "function")
189
189
  throw new Error(`Expected type "function", but received ${typeof i}`);
190
190
  };
191
- class d extends k {
192
- constructor(e, s) {
191
+ class d extends F {
192
+ constructor(t, n) {
193
193
  super();
194
- r(this, "containerElement");
195
- r(this, "verificationUrl");
196
- r(this, "isMobileDevice");
197
- r(this, "iframe");
198
- r(this, "verificationIframeUid");
199
- r(this, "locale");
200
- r(this, "hasLoaded", !1);
201
- r(this, "onLoadEvents", []);
202
- r(this, "onCleanupEvents", []);
203
- r(this, "installType", "cdn_inline_iframe");
204
- d.isValidHttpUrl(s) ? (this.containerElement = e, this.verificationUrl = new URL(U(s)), this.verificationIframeUid = d.createUniqueId()) : g.error("Invalid URL. Provide a proper URL: https://example.com/", "iframe url");
194
+ s(this, "containerElement");
195
+ s(this, "verificationUrl");
196
+ s(this, "isMobileDevice");
197
+ s(this, "iframe");
198
+ s(this, "verificationIframeUid");
199
+ s(this, "hasLoaded", !1);
200
+ s(this, "onLoadEvents", []);
201
+ s(this, "onCleanupEvents", []);
202
+ s(this, "installType", "cdn_inline_iframe");
203
+ d.isValidHttpUrl(n) ? (this.containerElement = t, this.verificationUrl = new URL(U(n)), this.verificationIframeUid = d.createUniqueId()) : v.error("Invalid URL. Provide a proper URL: https://example.com/", "iframe url");
205
204
  }
206
205
  cleanup() {
207
- this.onCleanupEvents.forEach((e) => e());
206
+ this.onCleanupEvents.forEach((t) => t());
208
207
  }
209
208
  static createUniqueId() {
210
209
  return Math.random().toString(36).substr(2, 9);
211
210
  }
212
- static isValidHttpUrl(e) {
211
+ static isValidHttpUrl(t) {
213
212
  try {
214
- const s = new URL(e);
215
- return s.protocol === "http:" || s.protocol === "https:";
213
+ const n = new URL(t);
214
+ return n.protocol === "http:" || n.protocol === "https:";
216
215
  } catch {
217
216
  return !1;
218
217
  }
219
218
  }
220
- createIframe(e) {
221
- return this.iframe = document.createElement("iframe"), this.iframe.classList.add(e.className), this.iframe.title = e.title, this.iframe.src = this.getIframeUrl(), this.iframe.allow = "camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *", this.iframe.onload = () => this.onLoad(), this.iframe;
222
- }
223
- getIframeUrl() {
224
- const e = new URL(this.verificationUrl);
225
- return e.searchParams.set("verificationIframeUid", this.verificationIframeUid), e.searchParams.set(_, window.location.href), e.searchParams.set(M, this.installType), this.locale && e.searchParams.set("locale", this.locale), e.toString();
219
+ createIframe(t) {
220
+ this.iframe = document.createElement("iframe"), this.iframe.classList.add(t.className), this.iframe.title = t.title;
221
+ let n = "?";
222
+ return this.verificationUrl.search && (n = "&"), this.iframe.src = `${this.verificationUrl.href}${n}verificationIframeUid=${this.verificationIframeUid}&${_}=${encodeURIComponent(
223
+ window.location.href
224
+ )}&${M}=${this.installType}`, this.iframe.allow = "camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *", this.iframe.onload = () => this.onLoad(), this.iframe;
226
225
  }
227
226
  // If iFrame hasn't loaded yet, queue up the callback
228
227
  // otherwise call it immediately
229
- addOnLoadEvent(e) {
228
+ addOnLoadEvent(t) {
230
229
  try {
231
- H(e);
230
+ H(t);
232
231
  } catch {
233
- g.error("Invalid callback provided to iFrame.onLoad()", "iframe addOnLoadEvent");
232
+ v.error("Invalid callback provided to iFrame.onLoad()", "iframe addOnLoadEvent");
234
233
  return;
235
234
  }
236
- this.hasLoaded ? e() : this.onLoadEvents.push(e);
235
+ this.hasLoaded ? t() : this.onLoadEvents.push(t);
237
236
  }
238
237
  onLoad() {
239
- this.hasLoaded = !0, this.onLoadEvents.forEach((e) => e());
238
+ this.hasLoaded = !0, this.onLoadEvents.forEach((t) => t());
240
239
  }
241
240
  /**
242
241
  * Using this to add parent window message listeners gives us
243
242
  * - Event Cleanup for modals
244
243
  * - verification of origin, verificationIframeUid, and message data structure
245
244
  */
246
- addWindowMessageListener(e) {
247
- const s = (n) => {
248
- this.verificationUrl.origin === n.origin && n.data.verificationIframeUid === this.verificationIframeUid && (n.data.action && n.data.action.type ? e(n.data.action) : n.data.action && n.data.height && e(n.data));
245
+ addWindowMessageListener(t) {
246
+ const n = (o) => {
247
+ this.verificationUrl.origin === o.origin && o.data.verificationIframeUid === this.verificationIframeUid && (o.data.action && o.data.action.type ? t(o.data.action) : o.data.action && o.data.height && t(o.data));
249
248
  };
250
- window.addEventListener("message", s), this.onCleanupEvents.push(() => window.removeEventListener("message", s));
249
+ window.addEventListener("message", n), this.onCleanupEvents.push(() => window.removeEventListener("message", n));
251
250
  }
252
251
  addActionListener() {
253
- this.addWindowMessageListener((e) => {
254
- e.type === "hook" && this.emit(e.hook.name, e.hook.data), (e.action && e.action === "updateHeight" || e.type === "updateHeight") && (this.iframe.scrolling = "no", this.iframe.style.height = `${e.height}px`);
252
+ this.addWindowMessageListener((t) => {
253
+ t.type === "hook" && this.emit(t.hook.name, t.hook.data), (t.action && t.action === "updateHeight" || t.type === "updateHeight") && (this.iframe.scrolling = "no", this.iframe.style.height = `${t.height}px`);
255
254
  });
256
255
  }
257
- setViewModel(e) {
258
- const s = {
256
+ setViewModel(t) {
257
+ const n = {
259
258
  action: "setViewModel",
260
- viewModel: e
259
+ viewModel: t
261
260
  };
262
261
  this.addOnLoadEvent(() => {
263
- this.iframe.contentWindow.postMessage(s, this.verificationUrl.origin);
262
+ this.iframe.contentWindow.postMessage(n, this.verificationUrl.origin);
264
263
  });
265
264
  }
266
- setOptions(e) {
267
- const s = {
265
+ setOptions(t) {
266
+ const n = {
268
267
  action: "setOptions",
269
- options: e
268
+ options: t
270
269
  };
271
- if (!this.hasLoaded && e.locale) {
272
- this.locale = e.locale;
273
- const n = this.getIframeUrl();
274
- n !== this.iframe.src && (this.iframe.src = n);
275
- }
276
270
  this.addOnLoadEvent(() => {
277
- this.iframe.contentWindow.postMessage(s, this.verificationUrl.origin);
271
+ this.iframe.contentWindow.postMessage(n, this.verificationUrl.origin);
278
272
  });
279
273
  }
280
- setInstallType(e) {
281
- this.installType = e;
274
+ setInstallType(t) {
275
+ this.installType = t;
282
276
  }
283
- init(e = !0) {
284
- e && this.createIframe(S), this.addActionListener(), this.containerElement.appendChild(this.iframe);
277
+ init(t = !0) {
278
+ t && this.createIframe(A), this.addActionListener(), this.containerElement.appendChild(this.iframe);
285
279
  }
286
280
  }
287
281
  class V extends d {
288
- constructor(t, e) {
289
- super(t, e), this.verificationUrl = new URL(this.getAffinityUrlWithUID(e));
282
+ constructor(e, t) {
283
+ super(e, t), this.verificationUrl = new URL(this.getAffinityUrlWithUID(t));
290
284
  }
291
285
  static createUniqueId() {
292
286
  return Math.random().toString(36).substr(2, 9);
293
287
  }
294
- getAffinityUrlWithUID(t) {
295
- const e = new URL(t);
296
- return e.searchParams.set("affinityIframeUid", this.verificationIframeUid), e.toString();
288
+ getAffinityUrlWithUID(e) {
289
+ const t = new URL(e);
290
+ return t.searchParams.set("affinityIframeUid", this.verificationIframeUid), t.toString();
297
291
  }
298
- addWindowMessageListener(t) {
299
- const e = (s) => {
300
- this.verificationUrl.origin === s.origin && s.data.affinityIframeUid === this.verificationIframeUid && s.data.action && s.data.action.type && t(s.data.action);
292
+ addWindowMessageListener(e) {
293
+ const t = (n) => {
294
+ this.verificationUrl.origin === n.origin && n.data.affinityIframeUid === this.verificationIframeUid && n.data.action && n.data.action.type && e(n.data.action);
301
295
  };
302
- window.addEventListener("message", e), this.onCleanupEvents.push(() => window.removeEventListener("message", e));
296
+ window.addEventListener("message", t), this.onCleanupEvents.push(() => window.removeEventListener("message", t));
303
297
  }
304
- createIframe(t) {
305
- return this.iframe = document.createElement("iframe"), this.iframe.classList.add(t.className), this.iframe.title = t.title, this.iframe.src = this.verificationUrl.href, this.iframe.allow = "camera;microphone", this.iframe.onload = () => this.onLoad(), this.iframe;
298
+ createIframe(e) {
299
+ return this.iframe = document.createElement("iframe"), this.iframe.classList.add(e.className), this.iframe.title = e.title, this.iframe.src = this.verificationUrl.href, this.iframe.allow = "camera;microphone", this.iframe.onload = () => this.onLoad(), this.iframe;
306
300
  }
307
301
  init() {
308
- this.createIframe({ ...S, title: "SheerID Affinity Offers" }), this.addActionListener(), this.containerElement.appendChild(this.iframe);
302
+ this.createIframe({ ...A, title: "SheerID Affinity Offers" }), this.addActionListener(), this.containerElement.appendChild(this.iframe);
309
303
  }
310
304
  }
311
305
  class w {
312
- constructor(t, e) {
313
- r(this, "verificationUrl");
314
- r(this, "redirectOnMobile");
315
- r(this, "overlay");
316
- r(this, "wrapper");
317
- r(this, "iframeInstance");
318
- r(this, "on");
319
- r(this, "once");
320
- r(this, "isMobileDevice");
321
- r(this, "closeButtonText");
322
- r(this, "closeButton");
323
- r(this, "stopPropagation");
324
- r(this, "popStateEventHandler", () => this.closeModal());
325
- const s = e.mobileThreshold ? e.mobileThreshold : c.DEFAULT_MOBILE_THRESHOLD_WIDTH;
326
- this.verificationUrl = U(t), this.redirectOnMobile = e.mobileRedirect || !1, this.isMobileDevice = window.document.body.clientWidth <= Number(s), this.closeButtonText = e.closeButtonText ? e.closeButtonText : "", this.closeButton = null, this.stopPropagation = e.stopPropagation || !1, this.overlay = w.createOverlay(), this.wrapper = this.createWrapper(), this.addFocusListener();
306
+ constructor(e, t) {
307
+ s(this, "verificationUrl");
308
+ s(this, "redirectOnMobile");
309
+ s(this, "overlay");
310
+ s(this, "wrapper");
311
+ s(this, "iframeInstance");
312
+ s(this, "on");
313
+ s(this, "once");
314
+ s(this, "isMobileDevice");
315
+ s(this, "closeButtonText");
316
+ s(this, "closeButton");
317
+ s(this, "stopPropagation");
318
+ s(this, "popStateEventHandler", () => this.closeModal());
319
+ const n = t.mobileThreshold ? t.mobileThreshold : c.DEFAULT_MOBILE_THRESHOLD_WIDTH;
320
+ this.verificationUrl = U(e), this.redirectOnMobile = t.mobileRedirect || !1, this.isMobileDevice = window.document.body.clientWidth <= Number(n), this.closeButtonText = t.closeButtonText ? t.closeButtonText : "", this.closeButton = null, this.stopPropagation = t.stopPropagation || !1, this.overlay = w.createOverlay(), this.wrapper = this.createWrapper(), this.addFocusListener();
327
321
  }
328
322
  createCloseBtn() {
329
323
  if (this.closeButton = document.createElement("button"), this.closeButton.classList.add(c.CLASS_NAMES.CLOSE_BUTTON), this.closeButton.setAttribute("aria-label", "close"), this.closeButtonText) {
330
- const e = document.createElement("div");
331
- e.classList.add(c.CLASS_NAMES.CLOSE_TEXT), e.innerHTML = this.closeButtonText, this.closeButton.appendChild(e);
324
+ const t = document.createElement("div");
325
+ t.classList.add(c.CLASS_NAMES.CLOSE_TEXT), t.innerHTML = this.closeButtonText, this.closeButton.appendChild(t);
332
326
  }
333
- const t = document.createElement("span");
334
- return t.classList.add(c.CLASS_NAMES.CLOSE_ICON), t.setAttribute("role", "img"), this.closeButton.appendChild(t), this.closeButton.addEventListener("click", (e) => {
335
- e.preventDefault(), this.stopPropagation && e.stopPropagation(), this.closeModal();
327
+ const e = document.createElement("span");
328
+ return e.classList.add(c.CLASS_NAMES.CLOSE_ICON), e.setAttribute("role", "img"), this.closeButton.appendChild(e), this.closeButton.addEventListener("click", (t) => {
329
+ t.preventDefault(), this.stopPropagation && t.stopPropagation(), this.closeModal();
336
330
  }), this.closeButton;
337
331
  }
338
332
  closeModal() {
339
333
  window.removeEventListener("popstate", this.popStateEventHandler);
340
- const t = c.MODAL_OPACITY_TRANSITION_PERIOD;
341
- v(this.overlay, t), v(this.wrapper, t), this.iframeInstance.cleanup();
334
+ const e = c.MODAL_OPACITY_TRANSITION_PERIOD;
335
+ g(this.overlay, e), g(this.wrapper, e), this.iframeInstance.cleanup();
342
336
  }
343
337
  static createOverlay() {
344
- const t = document.createElement("div");
345
- return t.classList.add(c.CLASS_NAMES.OVERLAY), t;
338
+ const e = document.createElement("div");
339
+ return e.classList.add(c.CLASS_NAMES.OVERLAY), e;
346
340
  }
347
341
  createWrapper() {
348
- const t = document.createElement("div");
349
- t.classList.add(c.CLASS_NAMES.MODAL_WRAPPER), t.tabIndex = -1, t.setAttribute("role", "dialog"), t.appendChild(this.createCloseBtn()), this.iframeInstance = new d(t, this.verificationUrl), this.iframeInstance.setInstallType("cdn_modal_iframe"), this.on = this.iframeInstance.on.bind(this.iframeInstance), this.once = this.iframeInstance.once.bind(this.iframeInstance);
350
- const e = {
342
+ const e = document.createElement("div");
343
+ e.classList.add(c.CLASS_NAMES.MODAL_WRAPPER), e.tabIndex = -1, e.setAttribute("role", "dialog"), e.appendChild(this.createCloseBtn()), this.iframeInstance = new d(e, this.verificationUrl), this.iframeInstance.setInstallType("cdn_modal_iframe"), this.on = this.iframeInstance.on.bind(this.iframeInstance), this.once = this.iframeInstance.once.bind(this.iframeInstance);
344
+ const t = {
351
345
  className: c.CLASS_NAMES.MODAL_IFRAME,
352
346
  title: b
353
347
  };
354
- return this.iframeInstance.createIframe(e), t.appendChild(this.iframeInstance.iframe), t;
348
+ return this.iframeInstance.createIframe(t), e.appendChild(this.iframeInstance.iframe), e;
355
349
  }
356
350
  addPopStateListener() {
357
351
  window.addEventListener("popstate", this.popStateEventHandler);
358
352
  }
359
353
  addFocusListener() {
360
- this.iframeInstance.addWindowMessageListener((t) => {
361
- t.type === "focus" && t.focusOn === "firstElement" && this.closeButton.focus();
362
- }), document.addEventListener("keydown", (t) => {
363
- t.key === "Tab" && t.shiftKey && document.activeElement === this.closeButton && (this.iframeInstance.iframe.contentWindow.postMessage({ focusOn: "lastElement" }, "*"), t.preventDefault());
354
+ this.iframeInstance.addWindowMessageListener((e) => {
355
+ e.type === "focus" && e.focusOn === "firstElement" && this.closeButton.focus();
356
+ }), document.addEventListener("keydown", (e) => {
357
+ e.key === "Tab" && e.shiftKey && document.activeElement === this.closeButton && (this.iframeInstance.iframe.contentWindow.postMessage({ focusOn: "lastElement" }, "*"), e.preventDefault());
364
358
  });
365
359
  }
366
- isInLightboxPostMessage(t) {
367
- this.iframeInstance.iframe.contentWindow.postMessage({ isInLightBox: t }, "*");
360
+ isInLightboxPostMessage(e) {
361
+ this.iframeInstance.iframe.contentWindow.postMessage({ isInLightBox: e }, "*");
368
362
  }
369
363
  displayModal() {
370
364
  this.iframeInstance.iframe.addEventListener("load", () => {
@@ -374,24 +368,24 @@ class w {
374
368
  init() {
375
369
  this.redirectOnMobile && this.isMobileDevice ? window.top.location.href = this.verificationUrl : (this.displayModal(), this.iframeInstance.init(!1));
376
370
  }
377
- setViewModel(t) {
378
- this.iframeInstance.setViewModel(t);
371
+ setViewModel(e) {
372
+ this.iframeInstance.setViewModel(e);
379
373
  }
380
- setOptions(t) {
381
- this.iframeInstance.setOptions(t);
374
+ setOptions(e) {
375
+ this.iframeInstance.setOptions(e);
382
376
  }
383
377
  }
384
- function Y(i, t) {
385
- const e = new d(i, t);
386
- return e.init(), e;
378
+ function Y(i, e) {
379
+ const t = new d(i, e);
380
+ return t.init(), t;
387
381
  }
388
- function j(i, t = {}) {
389
- const e = new w(i, t);
390
- return e.init(), e;
382
+ function j(i, e = {}) {
383
+ const t = new w(i, e);
384
+ return t.init(), t;
391
385
  }
392
- function q(i, t) {
393
- const e = new V(i, t);
394
- return e.init(), e;
386
+ function q(i, e) {
387
+ const t = new V(i, e);
388
+ return t.init(), t;
395
389
  }
396
390
  const Q = { loadInModal: j, loadInlineIframe: Y };
397
391
  export {