@sheerid/jslib-nightly 2.136.0-alpha.3 → 2.138.0-alpha.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.
- package/_mysheerid-preview.css +4 -4
- package/_mysheerid-preview.js +7 -7
- package/chunk/EmailLoopPending-CHILFZYc.js +4 -4
- package/chunk/EmailLoopPending-Nn_H3cfS.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +4 -4
- package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +4 -4
- package/chunk/Onfido-BX3RMDPu.js +4 -4
- package/chunk/{StepIDCheckLoopOnfido-DnfVW4sX.js → StepIDCheckLoopOnfido-CdtGsqUQ.js} +5 -5
- package/chunk/{StepIDCheckLoopOnfido-DnfVW4sX.js.map → StepIDCheckLoopOnfido-CdtGsqUQ.js.map} +1 -1
- package/chunk/{StepIDCheckLoopOnfido-ReyKWsmE.js → StepIDCheckLoopOnfido-wDQ56PaN.js} +5 -5
- package/chunk/{StepIDCheckLoopOnfido-ReyKWsmE.js.map → StepIDCheckLoopOnfido-wDQ56PaN.js.map} +1 -1
- package/chunk/{StepIDCheckLoopRegula-BaTaeur5.js → StepIDCheckLoopRegula-BHrKTobC.js} +8144 -8118
- package/chunk/StepIDCheckLoopRegula-BHrKTobC.js.map +1 -0
- package/chunk/{StepIDCheckLoopRegula-CR5XObwE.js → StepIDCheckLoopRegula-Bxzg0ROh.js} +8144 -8118
- package/chunk/StepIDCheckLoopRegula-Bxzg0ROh.js.map +1 -0
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-B_SLFztq.js +4 -4
- package/chunk/StepInactiveMilitaryPersonalInfoComponent-D5bERGdY.js +4 -4
- package/chunk/ar-DgWnOHb0.js +4 -4
- package/chunk/bg-BOoVh0N7.js +4 -4
- package/chunk/bn-IN-DfQpdb68.js +4 -4
- package/chunk/cs-B9lN4RVR.js +4 -4
- package/chunk/da-BaOy33h_.js +4 -4
- package/chunk/de-uUHs3YXy.js +4 -4
- package/chunk/el-xIXJ9sqU.js +4 -4
- package/chunk/en-GB-8EI1uDkp.js +4 -4
- package/chunk/es-B7SMjWOB.js +4 -4
- package/chunk/es-ES-DZwHzn0T.js +4 -4
- package/chunk/fi-DdpuBVsY.js +4 -4
- package/chunk/fr-CA-CWSDRram.js +4 -4
- package/chunk/fr-Crh-QCJ-.js +4 -4
- package/chunk/ga-2XNN2X9n.js +4 -4
- package/chunk/hi-IN-CXpzvJ5p.js +4 -4
- package/chunk/hr-BWFHQt1b.js +4 -4
- package/chunk/hu-BQsQ1_1B.js +4 -4
- package/chunk/id-D1BredfW.js +4 -4
- package/chunk/index-1Cpf6KJI.js +4 -4
- package/chunk/index-2ob_KvkC.js +4 -4
- package/chunk/{index-CieLEg94.js → index-B0fLWq5B.js} +6 -6
- package/chunk/{index-BJtcZfGh.js.map → index-B0fLWq5B.js.map} +1 -1
- package/chunk/index-BFhiexXx.js +4 -4
- package/chunk/index-BU0HFLKm.js +4 -4
- package/chunk/index-C4OCK6G0.js +4 -4
- package/chunk/index-C6KSFLsT.js +4 -4
- package/chunk/index-C8UuTatc.js +4 -4
- package/chunk/index-CPnI6FMZ.js +4 -4
- package/chunk/index-CQ1xb7h6.js +4 -4
- package/chunk/index-CRJId5Zv.js +4 -4
- package/chunk/index-CVEIzLov.js +4 -4
- package/chunk/index-CcE-GFi6.js +4 -4
- package/chunk/index-CjD74fwh.js +4 -4
- package/chunk/index-CjcYFvhf.js +4 -4
- package/chunk/index-CqC2-Uw8.js +4 -4
- package/chunk/index-D3QYlp53.js +4 -4
- package/chunk/index-D4FMD-a0.js +4 -4
- package/chunk/index-D8yzfA8-.js +4 -4
- package/chunk/index-DAE3SOJH.js +4 -4
- package/chunk/index-DCTYdT7J.js +4 -4
- package/chunk/index-DE9bhf5R.js +4 -4
- package/chunk/index-DFajPA-e.js +4 -4
- package/chunk/{index-BJtcZfGh.js → index-DHnJQWxO.js} +6 -6
- package/chunk/{index-CieLEg94.js.map → index-DHnJQWxO.js.map} +1 -1
- package/chunk/index-DHtYIKVA.js +4 -4
- package/chunk/index-DIkWpujR.js +4 -4
- package/chunk/index-DJo820YY.js +4 -4
- package/chunk/index-DR8uqKnQ.js +4 -4
- package/chunk/index-DWvcHUC_.js +4 -4
- package/chunk/index-DdQD36Ht.js +4 -4
- package/chunk/index-Dg1E2EXp.js +4 -4
- package/chunk/index-Du-JJq6C.js +4 -4
- package/chunk/index-SwnUiXjr.js +4 -4
- package/chunk/index-dt1aUu5L.js +4 -4
- package/chunk/index-huf3obhv.js +4 -4
- package/chunk/index-n6fChAZJ.js +4 -4
- package/chunk/index-oHEY5B58.js +4 -4
- package/chunk/index-rWdohxWw.js +4 -4
- package/chunk/index-zX2rojxg.js +4 -4
- package/chunk/is-BQ1w_dZd.js +4 -4
- package/chunk/it-DWcg5lrp.js +4 -4
- package/chunk/iw-CH8pA0K5.js +4 -4
- package/chunk/ja-mr6e3w2A.js +4 -4
- package/chunk/ko-YjkGeAf9.js +4 -4
- package/chunk/lo-BUmUlWoZ.js +4 -4
- package/chunk/lt-DyDf6oJm.js +4 -4
- package/chunk/ms-CIV35HiR.js +4 -4
- package/chunk/nl-BE-qnndQXN-.js +4 -4
- package/chunk/nl-BEcCaCBh.js +4 -4
- package/chunk/no-6tZgKN0w.js +4 -4
- package/chunk/pl-CfngpFII.js +4 -4
- package/chunk/pt-BR-BkmnC8r-.js +4 -4
- package/chunk/pt-D3Gz8aCi.js +4 -4
- package/chunk/ro-SIuDm7Nt.js +4 -4
- package/chunk/ru-DrinNLb3.js +4 -4
- package/chunk/sk-DK0CgugP.js +4 -4
- package/chunk/sl-BSnDNZ_p.js +4 -4
- package/chunk/sr-t_C4aOh0.js +4 -4
- package/chunk/sv-hjxeMgEO.js +4 -4
- package/chunk/sw-Bx_fcZ4c.js +4 -4
- package/chunk/th-kkF4cO_F.js +4 -4
- package/chunk/tr-Dra2pQ5h.js +4 -4
- package/chunk/uk-UEKtnnPj.js +4 -4
- package/chunk/ur-COGBRjXF.js +4 -4
- package/chunk/useCollectFieldsEndpoint-DFo1yXvN.js +4 -4
- package/chunk/useCollectFieldsEndpoint-DPX8CT4Y.js +4 -4
- package/chunk/useEmailFirstExperiment-Cc1gdkQd.js +4 -4
- package/chunk/useEmailFirstExperiment-Ct5y0TUO.js +4 -4
- package/chunk/vi-CAhGkrs3.js +4 -4
- package/chunk/zh-CobVQtU0.js +4 -4
- package/chunk/zh-HK-BuYPE4ck.js +4 -4
- package/chunk/zu-LijCPCBd.js +4 -4
- package/es6.css +4 -4
- package/jslib.js +5 -5
- package/lib/{EmailLoopPending-CIAQfYaE.js → EmailLoopPending-DCoCg92Z.js} +5 -5
- package/lib/{EmailLoopPending-CIAQfYaE.js.map → EmailLoopPending-DCoCg92Z.js.map} +1 -1
- package/lib/{LicensedProfessionalOrganizationComponent-BwJ4Qsja.js → LicensedProfessionalOrganizationComponent-mzmS6mpp.js} +5 -5
- package/lib/{LicensedProfessionalOrganizationComponent-BwJ4Qsja.js.map → LicensedProfessionalOrganizationComponent-mzmS6mpp.js.map} +1 -1
- package/lib/Onfido-BX3RMDPu.js +4 -4
- package/lib/StepCollectMilitaryStatusComponent-BxU6OyZ8.js +11 -0
- package/lib/{StepCollectMilitaryStatusComponent--m-9MRZE.js.map → StepCollectMilitaryStatusComponent-BxU6OyZ8.js.map} +1 -1
- package/lib/{StepIDCheckLoopOnfido-Dv0qcGWJ.js → StepIDCheckLoopOnfido-CanyJrCJ.js} +5 -5
- package/lib/{StepIDCheckLoopOnfido-Dv0qcGWJ.js.map → StepIDCheckLoopOnfido-CanyJrCJ.js.map} +1 -1
- package/lib/{StepIDCheckLoopRegula-B0xnzygI.js → StepIDCheckLoopRegula-DUzJnis9.js} +6493 -6467
- package/lib/StepIDCheckLoopRegula-DUzJnis9.js.map +1 -0
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-B6UsQ6ZQ.js → StepInactiveMilitaryPersonalInfoComponent-u99fn7uo.js} +6 -6
- package/lib/{StepInactiveMilitaryPersonalInfoComponent-B6UsQ6ZQ.js.map → StepInactiveMilitaryPersonalInfoComponent-u99fn7uo.js.map} +1 -1
- package/lib/{VerificationApiUtils-Dfs6Js9e.js → VerificationApiUtils-Dmr8MgWy.js} +5 -5
- package/lib/{VerificationApiUtils-Dfs6Js9e.js.map → VerificationApiUtils-Dmr8MgWy.js.map} +1 -1
- package/lib/ar-DgWnOHb0.js +4 -4
- package/lib/bg-BOoVh0N7.js +4 -4
- package/lib/bn-IN-DfQpdb68.js +4 -4
- package/lib/cs-B9lN4RVR.js +4 -4
- package/lib/da-BaOy33h_.js +4 -4
- package/lib/de-uUHs3YXy.js +4 -4
- package/lib/el-xIXJ9sqU.js +4 -4
- package/lib/en-GB-8EI1uDkp.js +4 -4
- package/lib/es-B7SMjWOB.js +4 -4
- package/lib/es-ES-DZwHzn0T.js +4 -4
- package/lib/{es6-C1LAh-Dl.js → es6-ffLVeRGy.js} +33 -33
- package/lib/{es6-C1LAh-Dl.js.map → es6-ffLVeRGy.js.map} +1 -1
- package/lib/fi-DdpuBVsY.js +4 -4
- package/lib/fr-CA-CWSDRram.js +4 -4
- package/lib/fr-Crh-QCJ-.js +4 -4
- package/lib/ga-2XNN2X9n.js +4 -4
- package/lib/hi-IN-CXpzvJ5p.js +4 -4
- package/lib/hr-BWFHQt1b.js +4 -4
- package/lib/hu-BQsQ1_1B.js +4 -4
- package/lib/id-D1BredfW.js +4 -4
- package/lib/{index-DeaW_w5R.js → index-AZrN1Rmh.js} +5 -5
- package/lib/{index-DeaW_w5R.js.map → index-AZrN1Rmh.js.map} +1 -1
- package/lib/index-B7YIZlbX.js +11 -0
- package/lib/index-B7YIZlbX.js.map +1 -0
- package/lib/{index-G97LFWBh.js → index-B_VX3-xO.js} +7 -7
- package/lib/{index-G97LFWBh.js.map → index-B_VX3-xO.js.map} +1 -1
- package/lib/{index-Wuom_PCe.js → index-C0tEfoIp.js} +5 -5
- package/lib/{index-Wuom_PCe.js.map → index-C0tEfoIp.js.map} +1 -1
- package/lib/{index-CofvFxtP.js → index-C8FmoCDQ.js} +6 -6
- package/lib/{index-CofvFxtP.js.map → index-C8FmoCDQ.js.map} +1 -1
- package/lib/{index-CupmISqk.js → index-CDtfniVK.js} +5 -5
- package/lib/{index-CupmISqk.js.map → index-CDtfniVK.js.map} +1 -1
- package/lib/{index-BtAqa1lm.js → index-CYPsWM9X.js} +6 -6
- package/lib/{index-BtAqa1lm.js.map → index-CYPsWM9X.js.map} +1 -1
- package/lib/{index-CAmxGRD-.js → index-Cag77r7G.js} +6 -6
- package/lib/{index-CAmxGRD-.js.map → index-Cag77r7G.js.map} +1 -1
- package/lib/index-D9Dwvfff.js +11 -0
- package/lib/index-D9Dwvfff.js.map +1 -0
- package/lib/{index-zqfosiXM.js → index-DBhDM-NC.js} +6 -6
- package/lib/{index-zqfosiXM.js.map → index-DBhDM-NC.js.map} +1 -1
- package/lib/index-DG33mjGQ.js +11 -0
- package/lib/index-DG33mjGQ.js.map +1 -0
- package/lib/index-DIkWpujR.js +4 -4
- package/lib/{index-DAYn33X3.js → index-DLw0w9bg.js} +5 -5
- package/lib/{index-DAYn33X3.js.map → index-DLw0w9bg.js.map} +1 -1
- package/lib/{index-BximBKFU.js → index-DpARC47_.js} +7 -7
- package/lib/{index-BximBKFU.js.map → index-DpARC47_.js.map} +1 -1
- package/lib/{index-Bdb4_LGz.js → index-Dt6sb9rp.js} +5 -5
- package/lib/{index-Bdb4_LGz.js.map → index-Dt6sb9rp.js.map} +1 -1
- package/lib/{index-Dc2x_mON.js → index-FY_z7FSe.js} +6 -6
- package/lib/{index-Dc2x_mON.js.map → index-FY_z7FSe.js.map} +1 -1
- package/lib/{index-Dh_jWePk.js → index-FnZHvd1Q.js} +6 -6
- package/lib/{index-Dh_jWePk.js.map → index-FnZHvd1Q.js.map} +1 -1
- package/lib/{index-CTaT15bg.js → index-Fnnqr2vf.js} +5 -5
- package/lib/{index-CTaT15bg.js.map → index-Fnnqr2vf.js.map} +1 -1
- package/lib/index-G9pI7r-0.js +11 -0
- package/lib/index-G9pI7r-0.js.map +1 -0
- package/lib/{index-BurcDcuV.js → index-PAhey8kx.js} +5 -5
- package/lib/{index-BurcDcuV.js.map → index-PAhey8kx.js.map} +1 -1
- package/lib/{index-CKvODdTo.js → index-j1-7I8AQ.js} +5 -5
- package/lib/{index-CKvODdTo.js.map → index-j1-7I8AQ.js.map} +1 -1
- package/lib/{index-zTseHuIk.js → index-mbdHNWg5.js} +6 -6
- package/lib/{index-zTseHuIk.js.map → index-mbdHNWg5.js.map} +1 -1
- package/lib/{index-BC5mjtRe.js → index-o5WEymwE.js} +5 -5
- package/lib/{index-BC5mjtRe.js.map → index-o5WEymwE.js.map} +1 -1
- package/lib/{index-Bmde10ZZ.js → index-qx7W37YB.js} +5 -5
- package/lib/{index-Bmde10ZZ.js.map → index-qx7W37YB.js.map} +1 -1
- package/lib/is-BQ1w_dZd.js +4 -4
- package/lib/it-DWcg5lrp.js +4 -4
- package/lib/iw-CH8pA0K5.js +4 -4
- package/lib/ja-mr6e3w2A.js +4 -4
- package/lib/ko-YjkGeAf9.js +4 -4
- package/lib/lo-BUmUlWoZ.js +4 -4
- package/lib/lt-DyDf6oJm.js +4 -4
- package/lib/ms-CIV35HiR.js +4 -4
- package/lib/nl-BE-qnndQXN-.js +4 -4
- package/lib/nl-BEcCaCBh.js +4 -4
- package/lib/no-6tZgKN0w.js +4 -4
- package/lib/pl-CfngpFII.js +4 -4
- package/lib/pt-BR-BkmnC8r-.js +4 -4
- package/lib/pt-D3Gz8aCi.js +4 -4
- package/lib/ro-SIuDm7Nt.js +4 -4
- package/lib/ru-DrinNLb3.js +4 -4
- package/lib/sk-DK0CgugP.js +4 -4
- package/lib/sl-BSnDNZ_p.js +4 -4
- package/lib/sr-t_C4aOh0.js +4 -4
- package/lib/sv-hjxeMgEO.js +4 -4
- package/lib/sw-Bx_fcZ4c.js +4 -4
- package/lib/th-kkF4cO_F.js +4 -4
- package/lib/tr-Dra2pQ5h.js +4 -4
- package/lib/uk-UEKtnnPj.js +4 -4
- package/lib/ur-COGBRjXF.js +4 -4
- package/lib/{useCollectFieldsEndpoint-DmduJhaM.js → useCollectFieldsEndpoint-WHcZgBnJ.js} +6 -6
- package/lib/{useCollectFieldsEndpoint-DmduJhaM.js.map → useCollectFieldsEndpoint-WHcZgBnJ.js.map} +1 -1
- package/lib/{useEmailFirstExperiment-CpoIcmIm.js → useEmailFirstExperiment-Dq423jn4.js} +5 -5
- package/lib/{useEmailFirstExperiment-CpoIcmIm.js.map → useEmailFirstExperiment-Dq423jn4.js.map} +1 -1
- package/lib/vi-CAhGkrs3.js +4 -4
- package/lib/zh-CobVQtU0.js +4 -4
- package/lib/zh-HK-BuYPE4ck.js +4 -4
- package/lib/zu-LijCPCBd.js +4 -4
- package/package.json +1 -1
- package/sheerid-install.css +4 -4
- package/sheerid-install.js +5 -5
- package/sheerid.css +5 -5
- package/sheerid.js +7 -7
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/IdCheckReviewScreen.d.ts +1 -1
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/constants.d.ts +4 -0
- package/src/components/StepIDCheckLoop/Regula/IdCheckLoopRegula/hooks/useRegulaSdk.d.ts +2 -1
- package/types-reference.zip +0 -0
- package/chunk/StepIDCheckLoopRegula-BaTaeur5.js.map +0 -1
- package/chunk/StepIDCheckLoopRegula-CR5XObwE.js.map +0 -1
- package/lib/StepCollectMilitaryStatusComponent--m-9MRZE.js +0 -11
- package/lib/StepIDCheckLoopRegula-B0xnzygI.js.map +0 -1
- package/lib/index-2Mn-u8k4.js +0 -11
- package/lib/index-2Mn-u8k4.js.map +0 -1
- package/lib/index-3Xp0lnT6.js +0 -11
- package/lib/index-3Xp0lnT6.js.map +0 -1
- package/lib/index-DjJMjiZ6.js +0 -11
- package/lib/index-DjJMjiZ6.js.map +0 -1
- package/lib/index-DmuUkZ-G.js +0 -11
- package/lib/index-DmuUkZ-G.js.map +0 -1
package/_mysheerid-preview.css
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.138.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1760560857918
|
|
9
|
+
* BUILD_DATE: Wed Oct 15 2025 20:40:57 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
11
11
|
*/
|
|
12
12
|
.sid-inline-iframe{border:0;height:100%;min-width:32rem}.sid-modal__wrapper{background:#fff;border-radius:5px;box-shadow:#989898 10px 10px 15px;left:50%;max-height:calc(100% - 80px);opacity:0;outline:none;overflow-y:auto;position:fixed;top:50%;transform:translate(-50%,-50%);transition:opacity .3s linear;width:32rem;z-index:9998}.sid-modal__wrapper.fade-in{opacity:1}.sid-modal__iframe{border:0;display:block;height:100%;min-width:250px;width:100%}.sid-modal__close-button{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;flex-direction:row;position:absolute;right:10px;text-decoration:none;top:10px;z-index:9999}.sid-modal__close-icon{background-image:url(https://services.sheerid.com/jsapi/img/btn1.png);background-repeat:no-repeat;filter:brightness(25%);height:20px;width:20px}.sid-modal__close-text{color:#000;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:var(--sheerid-font-size-body);margin-right:5px}.sid-modal__overlay{background-color:#b3b3b3;height:100%;left:0;opacity:0;position:fixed;top:0;transition:opacity .3s linear;width:100%;z-index:9997}.sid-modal__overlay.fade-in{opacity:.75}@media (width <= 620px){.sid-modal__wrapper{max-width:calc(100vw - 1rem)}}@media (width <= 32rem){.sid-inline-iframe{min-width:calc(100vw - 1rem);width:100%}}.sid-input-clear-button{background-color:transparent;border:none;height:100%;margin:0;padding:0;position:absolute;top:0;width:35px}.sid-ltr .sid-input-clear-button{right:0}.sid-rtl .sid-input-clear-button{left:0}.sid-input-clear-button--disabled{cursor:not-allowed}.sid-text-input{padding-right:30px;text-overflow:ellipsis}:root{--sheerid-button-border-width: 1px}.sid-button-container{display:grid;gap:.5em;grid-template-columns:1fr;margin-top:.5em}.sid-button{border:solid var(--sheerid-button-border-width) transparent;outline-offset:2px;padding:var(--sheerid-font-size-medium);transition:border .2s,background .2s,color .2s;width:100%}.sid-button-font{font-size:1rem;font-weight:600}.sid-button:hover{cursor:pointer}.sid-button[aria-disabled=true]{background-color:#f3f4f6;border:solid 1px transparent;color:#9ca3af;cursor:not-allowed}:root{--sheerid-button-primary-background-color: hsl(189deg 72% 50%);--sheerid-button-primary-border-color: transparent;--sheerid-button-primary-color: hsl(0deg 0% 100%);--sheerid-button-primary-background-color-hover: hsl(189deg 72% 46%);--sheerid-button-primary-border-color-hover: transparent;--sheerid-button-primary-color-hover: hsl(0deg 0% 100%);--sheerid-button-primary-background-color-active: hsl(189deg 72% 42%);--sheerid-button-primary-border-color-active: transparent;--sheerid-button-primary-color-active: hsl(0deg 0% 100%)}.sid-button-primary{background-color:var(--sheerid-button-primary-background-color);border-color:var(--sheerid-button-primary-border-color);color:var(--sheerid-button-primary-color)}.sid-button-primary:hover,.sid-button-primary:focus-visible{background-color:var(--sheerid-button-primary-background-color-hover);border-color:var(--sheerid-button-primary-border-color-hover);color:var(--sheerid-button-primary-color-hover)}.sid-button-primary:active{background-color:var(--sheerid-button-primary-background-color-active);border-color:var(--sheerid-button-primary-border-color-active);color:var(--sheerid-button-primary-color-active)}:root{--sheerid-button-secondary-background-color: hsl(0deg 0% 100%);--sheerid-button-secondary-border-color: hsl(189deg 72% 50%);--sheerid-button-secondary-color: hsl(189deg 72% 50%);--sheerid-button-secondary-background-color-hover: hsl(189deg 72% 96%);--sheerid-button-secondary-border-color-hover: hsl(189deg 72% 50%);--sheerid-button-secondary-color-hover: hsl(189deg 72% 50%);--sheerid-button-secondary-background-color-active: hsl(189deg 72% 92%);--sheerid-button-secondary-border-color-active: hsl(189deg 72% 50%);--sheerid-button-secondary-color-active: hsl(189deg 72% 50%)}.sid-button-secondary{background-color:var(--sheerid-button-secondary-background-color);border-color:var(--sheerid-button-secondary-border-color);color:var(--sheerid-button-secondary-color)}.sid-button-secondary:hover,.sid-button-secondary:focus-visible{background-color:var(--sheerid-button-secondary-background-color-hover);border-color:var(--sheerid-button-secondary-border-color-hover);color:var(--sheerid-button-secondary-color-hover)}.sid-button-secondary:active{background-color:var(--sheerid-button-secondary-background-color-active);border-color:var(--sheerid-button-secondary-border-color-active);color:var(--sheerid-button-secondary-color-active)}:root{--sheerid-button-destructive-background-color: hsl(348deg 76% 100%);--sheerid-button-destructive-border-color: hsl(348deg 76% 50%);--sheerid-button-destructive-color: hsl(348deg 76% 50%);--sheerid-button-destructive-background-color-hover: hsl(348deg 76% 96%);--sheerid-button-destructive-border-color-hover: hsl(348deg 76% 50%);--sheerid-button-destructive-color-hover: hsl(348deg 76% 50%);--sheerid-button-destructive-background-color-active: hsl(348deg 76% 92%);--sheerid-button-destructive-border-color-active: hsl(348deg 76% 50%);--sheerid-button-destructive-color-active: hsl(348deg 76% 50%)}.sid-button-destructive{background-color:var(--sheerid-button-destructive-background-color);border-color:var(--sheerid-button-destructive-border-color);color:var(--sheerid-button-destructive-color)}.sid-button-destructive:hover,.sid-button-destructive:focus-visible{background-color:var(--sheerid-button-destructive-background-color-hover);border-color:var(--sheerid-button-destructive-border-color-hover);color:var(--sheerid-button-destructive-border-color-hover)}.sid-button-destructive:active{background-color:var(--sheerid-button-destructive-background-color-active);border-color:var(--sheerid-button-destructive-border-color-active);color:var(--sheerid-button-destructive-border-color-active)}.sid-button-textLike{background:transparent;border:none;border-radius:0;font:inherit;padding:0;width:auto}
|
package/_mysheerid-preview.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.138.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1760560857918
|
|
9
|
+
* BUILD_DATE: Wed Oct 15 2025 20:40:57 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
11
11
|
*/
|
|
12
12
|
var uN = Object.defineProperty;
|
|
13
13
|
var cN = (e, t, r) => t in e ? uN(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
@@ -159,7 +159,7 @@ const fN = (e) => e && e.stack && e.message, Cd = (...e) => {
|
|
|
159
159
|
locale: Le(() => o.programTheme.intl.locale),
|
|
160
160
|
isTestMode: Le(() => o.programTheme.isTestMode),
|
|
161
161
|
openOrgSearchEnabled: Le(() => o.programTheme.openOrgSearchEnabled),
|
|
162
|
-
jslibVerActual: Le(() => "2.
|
|
162
|
+
jslibVerActual: Le(() => "2.138.0-alpha.0", "?"),
|
|
163
163
|
...r
|
|
164
164
|
};
|
|
165
165
|
}
|
|
@@ -2672,7 +2672,7 @@ These messages will override existing messages of the same key for "en-US" local
|
|
|
2672
2672
|
}, EE = () => `${He().restApi.serviceUrl}${He().restApi.resources.verification}`, IA = (e) => `${EE()}${e}`, MA = () => EE(), EA = (e, t = null) => {
|
|
2673
2673
|
const r = `${He().restApi.serviceUrl}${He().restApi.resources.program.base}${e}/${He().restApi.resources.program.theme}`;
|
|
2674
2674
|
return t ? `${r}?locale=${t}` : `${r}`;
|
|
2675
|
-
}, xA = (e) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/step/smsLoop/retry`, CA = (e) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/step/emailLoop/retry`, xE = (e, t) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/${t}/fields`, TA = (e, t) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/step/idCheckLoop/getDocumentTypesForCountries?countries=${t}`, KW = (e, t, r) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/barcode?rewardKey=${t}&symbology=${r}`, Ry = () => "2.
|
|
2675
|
+
}, xA = (e) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/step/smsLoop/retry`, CA = (e) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/step/emailLoop/retry`, xE = (e, t) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/${t}/fields`, TA = (e, t) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/step/idCheckLoop/getDocumentTypesForCountries?countries=${t}`, KW = (e, t, r) => `${He().restApi.serviceUrl}rest/v2/verification/${e}/barcode?rewardKey=${t}&symbology=${r}`, Ry = () => "2.138.0-alpha.0", PA = () => window.location.href, CE = () => {
|
|
2676
2676
|
try {
|
|
2677
2677
|
const e = new URLSearchParams(window.location.search);
|
|
2678
2678
|
if (e.get(xo))
|
|
@@ -33037,7 +33037,7 @@ const aN = ({
|
|
|
33037
33037
|
StepHybridIdentityPersonalInfoComponent: he.lazy(
|
|
33038
33038
|
() => Promise.resolve().then(() => VG)
|
|
33039
33039
|
),
|
|
33040
|
-
StepIDCheckLoopComponent: he.lazy(() => import("./chunk/index-
|
|
33040
|
+
StepIDCheckLoopComponent: he.lazy(() => import("./chunk/index-B0fLWq5B.js").then((e) => e.i)),
|
|
33041
33041
|
StepLicensedProfessionalPersonalInfoComponent: he.lazy(
|
|
33042
33042
|
() => import("./chunk/index-DCTYdT7J.js")
|
|
33043
33043
|
),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.138.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1760560791989
|
|
5
|
+
* BUILD_DATE: Wed Oct 15 2025 20:39:51 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
7
7
|
*/
|
|
8
8
|
import { i as _, R as n, d as C, q as w, r as y, j as e, L as V, A, b as a, l as g, V as f, n as T, s as v } from "../sheerid.js";
|
|
9
9
|
const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.138.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1760560857918
|
|
9
|
+
* BUILD_DATE: Wed Oct 15 2025 20:40:57 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
11
11
|
*/
|
|
12
12
|
import { i as _, R as n, d as C, q as w, r as y, j as e, L as V, A, b as a, l as g, V as f, n as T, s as v } from "../_mysheerid-preview.js";
|
|
13
13
|
const P = 1e4, I = ({ intl: o, verificationService: s }) => {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.138.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1760560857918
|
|
9
|
+
* BUILD_DATE: Wed Oct 15 2025 20:40:57 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
11
11
|
*/
|
|
12
12
|
import { i as m, g as f, j as a, F as h, a as u, b as i } from "../_mysheerid-preview.js";
|
|
13
13
|
const z = ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.138.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1760560791989
|
|
5
|
+
* BUILD_DATE: Wed Oct 15 2025 20:39:51 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
7
7
|
*/
|
|
8
8
|
import { i as m, g as f, j as a, F as h, a as u, b as i } from "../sheerid.js";
|
|
9
9
|
const z = ({
|
package/chunk/Onfido-BX3RMDPu.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.138.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1760560857918
|
|
9
|
+
* BUILD_DATE: Wed Oct 15 2025 20:40:57 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
11
11
|
*/
|
|
12
12
|
var a = Object.defineProperty, d = (n, e, t) => e in n ? a(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, i = (n, e, t) => (d(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
13
|
class h {
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* VERSION: 2.
|
|
8
|
-
* BUILD_TIMESTAMP:
|
|
9
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
10
|
-
* BUILD_COMMIT:
|
|
7
|
+
* VERSION: 2.138.0-alpha.0
|
|
8
|
+
* BUILD_TIMESTAMP: 1760560857918
|
|
9
|
+
* BUILD_DATE: Wed Oct 15 2025 20:40:57 GMT+0000 (Coordinated Universal Time)
|
|
10
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
11
11
|
*/
|
|
12
12
|
import { j as e, m, Z as o, d as n, b as t, R as r, _ as h, A as u, l as f, V as g } from "../_mysheerid-preview.js";
|
|
13
|
-
import { S as k } from "./index-
|
|
13
|
+
import { S as k } from "./index-B0fLWq5B.js";
|
|
14
14
|
const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(m, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
15
15
|
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
|
|
16
16
|
o,
|
package/chunk/{StepIDCheckLoopOnfido-DnfVW4sX.js.map → StepIDCheckLoopOnfido-CdtGsqUQ.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepIDCheckLoopOnfido-DnfVW4sX.js","sources":["../../src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.tsx","../../src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.tsx","../../src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FormattedMessage } from \"react-intl\";\nimport { VerificationService } from \"../../../lib/types/types\";\nimport { FormFooterComponent } from \"../../FormFooter/FormFooterComponent\";\n\nexport interface IdCheckLoopOnfidoFooterProps {\n verificationService: VerificationService;\n}\n\nexport const IdCheckLoopOnfidoFooter = ({ verificationService }: IdCheckLoopOnfidoFooterProps) => (\n <FormFooterComponent verificationService={verificationService}>\n <div>\n <p>\n <FormattedMessage\n id=\"step.idCheckLoop.terms\"\n defaultMessage='By clicking \"Continue\", you agree you have read, understand, and accept {scanPolicy}, {privacyPolicyLink}, and {termsOfService}.'\n values={{\n scanPolicy: (\n <a\n href=\"https://onfido.com/facial-scan-policy-and-release/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.scanPolicy\"\n defaultMessage=\"Onfido Facial Scan Policy and Release\"\n />\n </a>\n ),\n privacyPolicyLink: (\n <a\n href=\"https://www.onfido.com/privacy/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.privacyPolicy\"\n defaultMessage=\"Privacy Policy\"\n />\n </a>\n ),\n termsOfService: (\n <a\n href=\"https://onfido.com/terms-of-service/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.termsOfService\"\n defaultMessage=\"Terms of Service\"\n />\n </a>\n ),\n }}\n />\n </p>\n\n <p>\n <FormattedMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedMessage\n id=\"step.idCheckLoop.disclaimer\"\n defaultMessage=\"SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.\"\n values={{\n serviceType: \"Onfido\",\n companyName,\n }}\n />\n )}\n </FormattedMessage>\n </p>\n </div>\n </FormFooterComponent>\n);\n\nexport default IdCheckLoopOnfidoFooter;\n","import React from \"react\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { ProgramTheme } from \"../../../../lib/types/types\";\nimport { getSafe } from \"../../../../lib/utils/getSafe\";\nimport { StepCardComponent } from \"../../StepCard/StepCard\";\n\nexport const getAndFormatOrderedStepCards = (programTheme: ProgramTheme): React.ReactElement[] => {\n const stepComponents: (() => {\n title: React.ReactNode;\n icon: React.ReactNode;\n subtitle?: React.ReactNode;\n })[] = [];\n\n if (getSafe(() => programTheme.config.onfidoReportNames.includes(\"document\"), false)) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.idCheck.title\"\n defaultMessage=\"Take a photo of your government ID\"\n />\n ),\n subtitle: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.idCheck.subtitle\"\n defaultMessage=\"A valid government-issued document such as a driver's license, state ID, passport, or residence permit.\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/id-photo.svg\"\n />\n ),\n }));\n }\n\n if (getSafe(() => programTheme.config.onfidoReportNames.includes(\"facial_similarity_motion\"))) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.selfie.title\"\n defaultMessage=\"Take a selfie\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/selfie.svg\"\n />\n ),\n }));\n }\n\n if (programTheme.docUploadEnabled) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.docReview.title\"\n defaultMessage=\"Upload proof of status\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/upload-proof.svg\"\n />\n ),\n }));\n }\n\n return stepComponents.map((stepComponentFunction, i) => {\n const { title, subtitle, icon } = stepComponentFunction();\n return (\n <StepCardComponent\n title={title}\n subtitle={subtitle}\n icon={icon}\n isHighlighted={i === 0}\n key={title.toString()}\n />\n );\n });\n};\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { AnnouncingHeader } from \"@/components/AnnouncingHeader/AnnouncingHeader\";\nimport { VerificationStepsEnum } from \"../../../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../../../lib/types/types\";\nimport { logger } from \"../../../../lib/utils/logger/logger\";\nimport { IdCheckLoopOnfidoComponent } from \"../IdCheckLoopOnfido/IdCheckLoopOnfido\";\nimport IdCheckLoopOnfidoFooter from \"../../IdCheckLoopFooter/IdCheckLoopOnfidoFooter\";\nimport { getAndFormatOrderedStepCards } from \"../utils/getAndFormatOrderedStepCards\";\n\nexport interface StepIDCheckLoopOnfidoProps {\n verificationService: VerificationService;\n}\n\nconst StepIDCheckLoopOnfido = ({ verificationService }: StepIDCheckLoopOnfidoProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const [shouldShowIdCheckLoop, setShouldShowIdCheckLoop] = React.useState(false);\n\n const initiateIdCheckLoop = () => {\n logger.info(\"StepIDCheckLoop initiating ID Check Loop\");\n verificationService.submitStep(\n VerificationStepsEnum.idCheckLoop,\n verificationService.viewModel,\n verificationService.verificationResponse,\n );\n };\n\n React.useEffect(() => {\n if (verificationResponse && verificationResponse.sdkToken) {\n setShouldShowIdCheckLoop(true);\n }\n }, [verificationResponse]);\n\n return (\n <div id=\"sid-step-id-check-loop\" className=\"sid-l-container\">\n {shouldShowIdCheckLoop && (\n <div className=\"sid-l-space-btm-lg\">\n <div role=\"main\">\n <IdCheckLoopOnfidoComponent verificationService={verificationService} />\n </div>\n </div>\n )}\n\n {!shouldShowIdCheckLoop && (\n <div>\n <div role=\"main\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.title\"\n defaultMessage=\"Let's verify your identity\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center sid-l-space-btm-md\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.subtitle\"\n defaultMessage=\"You'll need access to a mobile phone with a camera or computer with a webcam.\"\n />\n </div>\n\n <div className=\"sid-identity-check-steps\">\n {getAndFormatOrderedStepCards(verificationService.programTheme)}\n </div>\n\n <div className=\"sid-submit sid-l-horz-center sid-l-space-top-md sid-l-space-btm-md\">\n <button\n onClick={initiateIdCheckLoop}\n type=\"button\"\n className=\"sid-btn sid-btn--dark\"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage id=\"step.idCheckLoop.continue\" defaultMessage=\"Continue\" />\n </button>\n </div>\n </div>\n <IdCheckLoopOnfidoFooter verificationService={verificationService} />\n </div>\n )}\n </div>\n );\n};\n\nexport default StepIDCheckLoopOnfido;\n"],"names":["IdCheckLoopOnfidoFooter","verificationService","jsx","FormFooterComponent","jsxs","FormattedMessage","companyName","getAndFormatOrderedStepCards","programTheme","stepComponents","getSafe","FormattedHTMLMessage","stepComponentFunction","i","title","subtitle","icon","StepCardComponent","StepIDCheckLoopOnfido","verificationResponse","shouldShowIdCheckLoop","setShouldShowIdCheckLoop","React","initiateIdCheckLoop","logger","VerificationStepsEnum","IdCheckLoopOnfidoComponent","AnnouncingHeader"],"mappings":";;AAUO,MAAMA,IAA0B,CAAC,EAAE,qBAAAC,EAAA,MACxCC,gBAAAA,EAAAA,IAACC,GAAA,EAAoB,qBAAAF,GACnB,UAAAG,gBAAAA,EAAAA,KAAC,OAAA,EACC,UAAA;AAAA,EAAAF,gBAAAA,MAAC,KAAA,EACC,UAAAA,gBAAAA,EAAAA;AAAAA,IAACG;AAAA,IAA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AA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,YACf,SAAQ;AAAA,UAAA;AAAA,QAAA,GAEZ;AAAA,QACAT,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,6DACb,UAAAA,gBAAAA,EAAAA;AAAAA,UAACS;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,UAAA;AAAA,QAAA,GAEnB;AAAA,8BAEC,OAAA,EAAI,WAAU,4BACZ,UAAAJ,EAA6BN,EAAoB,YAAY,GAChE;AAAA,QAEAC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,sEACb,UAAAA,gBAAAA,EAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAASqB;AAAA,YACT,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAW;AAAA,YAEX,UAAArB,gBAAAA,EAAAA,IAACS,GAAA,EAAqB,IAAG,6BAA4B,gBAAe,WAAA,CAAW;AAAA,UAAA;AAAA,QAAA,EACjF,CACF;AAAA,MAAA,GACF;AAAA,MACAT,gBAAAA,MAACF,KAAwB,qBAAAC,EAAA,CAA0C;AAAA,IAAA,EAAA,CACrE;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"StepIDCheckLoopOnfido-CdtGsqUQ.js","sources":["../../src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.tsx","../../src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.tsx","../../src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FormattedMessage } from \"react-intl\";\nimport { VerificationService } from \"../../../lib/types/types\";\nimport { FormFooterComponent } from \"../../FormFooter/FormFooterComponent\";\n\nexport interface IdCheckLoopOnfidoFooterProps {\n verificationService: VerificationService;\n}\n\nexport const IdCheckLoopOnfidoFooter = ({ verificationService }: IdCheckLoopOnfidoFooterProps) => (\n <FormFooterComponent verificationService={verificationService}>\n <div>\n <p>\n <FormattedMessage\n id=\"step.idCheckLoop.terms\"\n defaultMessage='By clicking \"Continue\", you agree you have read, understand, and accept {scanPolicy}, {privacyPolicyLink}, and {termsOfService}.'\n values={{\n scanPolicy: (\n <a\n href=\"https://onfido.com/facial-scan-policy-and-release/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.scanPolicy\"\n defaultMessage=\"Onfido Facial Scan Policy and Release\"\n />\n </a>\n ),\n privacyPolicyLink: (\n <a\n href=\"https://www.onfido.com/privacy/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.privacyPolicy\"\n defaultMessage=\"Privacy Policy\"\n />\n </a>\n ),\n termsOfService: (\n <a\n href=\"https://onfido.com/terms-of-service/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.termsOfService\"\n defaultMessage=\"Terms of Service\"\n />\n </a>\n ),\n }}\n />\n </p>\n\n <p>\n <FormattedMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedMessage\n id=\"step.idCheckLoop.disclaimer\"\n defaultMessage=\"SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.\"\n values={{\n serviceType: \"Onfido\",\n companyName,\n }}\n />\n )}\n </FormattedMessage>\n </p>\n </div>\n </FormFooterComponent>\n);\n\nexport default IdCheckLoopOnfidoFooter;\n","import React from \"react\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { ProgramTheme } from \"../../../../lib/types/types\";\nimport { getSafe } from \"../../../../lib/utils/getSafe\";\nimport { StepCardComponent } from \"../../StepCard/StepCard\";\n\nexport const getAndFormatOrderedStepCards = (programTheme: ProgramTheme): React.ReactElement[] => {\n const stepComponents: (() => {\n title: React.ReactNode;\n icon: React.ReactNode;\n subtitle?: React.ReactNode;\n })[] = [];\n\n if (getSafe(() => programTheme.config.onfidoReportNames.includes(\"document\"), false)) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.idCheck.title\"\n defaultMessage=\"Take a photo of your government ID\"\n />\n ),\n subtitle: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.idCheck.subtitle\"\n defaultMessage=\"A valid government-issued document such as a driver's license, state ID, passport, or residence permit.\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/id-photo.svg\"\n />\n ),\n }));\n }\n\n if (getSafe(() => programTheme.config.onfidoReportNames.includes(\"facial_similarity_motion\"))) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.selfie.title\"\n defaultMessage=\"Take a selfie\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/selfie.svg\"\n />\n ),\n }));\n }\n\n if (programTheme.docUploadEnabled) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.docReview.title\"\n defaultMessage=\"Upload proof of status\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/upload-proof.svg\"\n />\n ),\n }));\n }\n\n return stepComponents.map((stepComponentFunction, i) => {\n const { title, subtitle, icon } = stepComponentFunction();\n return (\n <StepCardComponent\n title={title}\n subtitle={subtitle}\n icon={icon}\n isHighlighted={i === 0}\n key={title.toString()}\n />\n );\n });\n};\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { AnnouncingHeader } from \"@/components/AnnouncingHeader/AnnouncingHeader\";\nimport { VerificationStepsEnum } from \"../../../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../../../lib/types/types\";\nimport { logger } from \"../../../../lib/utils/logger/logger\";\nimport { IdCheckLoopOnfidoComponent } from \"../IdCheckLoopOnfido/IdCheckLoopOnfido\";\nimport IdCheckLoopOnfidoFooter from \"../../IdCheckLoopFooter/IdCheckLoopOnfidoFooter\";\nimport { getAndFormatOrderedStepCards } from \"../utils/getAndFormatOrderedStepCards\";\n\nexport interface StepIDCheckLoopOnfidoProps {\n verificationService: VerificationService;\n}\n\nconst StepIDCheckLoopOnfido = ({ verificationService }: StepIDCheckLoopOnfidoProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const [shouldShowIdCheckLoop, setShouldShowIdCheckLoop] = React.useState(false);\n\n const initiateIdCheckLoop = () => {\n logger.info(\"StepIDCheckLoop initiating ID Check Loop\");\n verificationService.submitStep(\n VerificationStepsEnum.idCheckLoop,\n verificationService.viewModel,\n verificationService.verificationResponse,\n );\n };\n\n React.useEffect(() => {\n if (verificationResponse && verificationResponse.sdkToken) {\n setShouldShowIdCheckLoop(true);\n }\n }, [verificationResponse]);\n\n return (\n <div id=\"sid-step-id-check-loop\" className=\"sid-l-container\">\n {shouldShowIdCheckLoop && (\n <div className=\"sid-l-space-btm-lg\">\n <div role=\"main\">\n <IdCheckLoopOnfidoComponent verificationService={verificationService} />\n </div>\n </div>\n )}\n\n {!shouldShowIdCheckLoop && (\n <div>\n <div role=\"main\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.title\"\n defaultMessage=\"Let's verify your identity\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center sid-l-space-btm-md\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.subtitle\"\n defaultMessage=\"You'll need access to a mobile phone with a camera or computer with a webcam.\"\n />\n </div>\n\n <div className=\"sid-identity-check-steps\">\n {getAndFormatOrderedStepCards(verificationService.programTheme)}\n </div>\n\n <div className=\"sid-submit sid-l-horz-center sid-l-space-top-md sid-l-space-btm-md\">\n <button\n onClick={initiateIdCheckLoop}\n type=\"button\"\n className=\"sid-btn sid-btn--dark\"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage id=\"step.idCheckLoop.continue\" defaultMessage=\"Continue\" />\n </button>\n </div>\n </div>\n <IdCheckLoopOnfidoFooter verificationService={verificationService} />\n </div>\n )}\n </div>\n );\n};\n\nexport default StepIDCheckLoopOnfido;\n"],"names":["IdCheckLoopOnfidoFooter","verificationService","jsx","FormFooterComponent","jsxs","FormattedMessage","companyName","getAndFormatOrderedStepCards","programTheme","stepComponents","getSafe","FormattedHTMLMessage","stepComponentFunction","i","title","subtitle","icon","StepCardComponent","StepIDCheckLoopOnfido","verificationResponse","shouldShowIdCheckLoop","setShouldShowIdCheckLoop","React","initiateIdCheckLoop","logger","VerificationStepsEnum","IdCheckLoopOnfidoComponent","AnnouncingHeader"],"mappings":";;AAUO,MAAMA,IAA0B,CAAC,EAAE,qBAAAC,EAAA,MACxCC,gBAAAA,EAAAA,IAACC,GAAA,EAAoB,qBAAAF,GACnB,UAAAG,gBAAAA,EAAAA,KAAC,OAAA,EACC,UAAA;AAAA,EAAAF,gBAAAA,MAAC,KAAA,EACC,UAAAA,gBAAAA,EAAAA;AAAAA,IAACG;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,MACf,QAAQ;AAAA,QACN,YACEH,gBAAAA,EAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,QAAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV,UAAAA,gBAAAA,EAAAA;AAAAA,cAACG;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,QAGJ,mBACEH,gBAAAA,EAAAA;AAAAA,UAAC;AAA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,WAAU,sEACb,UAAAA,gBAAAA,EAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAASqB;AAAA,YACT,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAW;AAAA,YAEX,UAAArB,gBAAAA,EAAAA,IAACS,GAAA,EAAqB,IAAG,6BAA4B,gBAAe,WAAA,CAAW;AAAA,UAAA;AAAA,QAAA,EACjF,CACF;AAAA,MAAA,GACF;AAAA,MACAT,gBAAAA,MAACF,KAAwB,qBAAAC,EAAA,CAA0C;AAAA,IAAA,EAAA,CACrE;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* VERSION: 2.
|
|
4
|
-
* BUILD_TIMESTAMP:
|
|
5
|
-
* BUILD_DATE: Wed Oct 15 2025 20:
|
|
6
|
-
* BUILD_COMMIT:
|
|
3
|
+
* VERSION: 2.138.0-alpha.0
|
|
4
|
+
* BUILD_TIMESTAMP: 1760560791989
|
|
5
|
+
* BUILD_DATE: Wed Oct 15 2025 20:39:51 GMT+0000 (Coordinated Universal Time)
|
|
6
|
+
* BUILD_COMMIT: 195b2a9572b523a9eb9b8ef6ba00d3bf90b074e2
|
|
7
7
|
*/
|
|
8
8
|
import { j as e, m, Z as o, d as n, b as t, R as r, _ as h, A as u, l as f, V as g } from "../sheerid.js";
|
|
9
|
-
import { S as k } from "./index-
|
|
9
|
+
import { S as k } from "./index-DHnJQWxO.js";
|
|
10
10
|
const x = ({ verificationService: s }) => /* @__PURE__ */ e.jsx(m, { verificationService: s, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
11
11
|
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(
|
|
12
12
|
o,
|
package/chunk/{StepIDCheckLoopOnfido-ReyKWsmE.js.map → StepIDCheckLoopOnfido-wDQ56PaN.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepIDCheckLoopOnfido-ReyKWsmE.js","sources":["../../src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.tsx","../../src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.tsx","../../src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FormattedMessage } from \"react-intl\";\nimport { VerificationService } from \"../../../lib/types/types\";\nimport { FormFooterComponent } from \"../../FormFooter/FormFooterComponent\";\n\nexport interface IdCheckLoopOnfidoFooterProps {\n verificationService: VerificationService;\n}\n\nexport const IdCheckLoopOnfidoFooter = ({ verificationService }: IdCheckLoopOnfidoFooterProps) => (\n <FormFooterComponent verificationService={verificationService}>\n <div>\n <p>\n <FormattedMessage\n id=\"step.idCheckLoop.terms\"\n defaultMessage='By clicking \"Continue\", you agree you have read, understand, and accept {scanPolicy}, {privacyPolicyLink}, and {termsOfService}.'\n values={{\n scanPolicy: (\n <a\n href=\"https://onfido.com/facial-scan-policy-and-release/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.scanPolicy\"\n defaultMessage=\"Onfido Facial Scan Policy and Release\"\n />\n </a>\n ),\n privacyPolicyLink: (\n <a\n href=\"https://www.onfido.com/privacy/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.privacyPolicy\"\n defaultMessage=\"Privacy Policy\"\n />\n </a>\n ),\n termsOfService: (\n <a\n href=\"https://onfido.com/terms-of-service/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.termsOfService\"\n defaultMessage=\"Terms of Service\"\n />\n </a>\n ),\n }}\n />\n </p>\n\n <p>\n <FormattedMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedMessage\n id=\"step.idCheckLoop.disclaimer\"\n defaultMessage=\"SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.\"\n values={{\n serviceType: \"Onfido\",\n companyName,\n }}\n />\n )}\n </FormattedMessage>\n </p>\n </div>\n </FormFooterComponent>\n);\n\nexport default IdCheckLoopOnfidoFooter;\n","import React from \"react\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { ProgramTheme } from \"../../../../lib/types/types\";\nimport { getSafe } from \"../../../../lib/utils/getSafe\";\nimport { StepCardComponent } from \"../../StepCard/StepCard\";\n\nexport const getAndFormatOrderedStepCards = (programTheme: ProgramTheme): React.ReactElement[] => {\n const stepComponents: (() => {\n title: React.ReactNode;\n icon: React.ReactNode;\n subtitle?: React.ReactNode;\n })[] = [];\n\n if (getSafe(() => programTheme.config.onfidoReportNames.includes(\"document\"), false)) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.idCheck.title\"\n defaultMessage=\"Take a photo of your government ID\"\n />\n ),\n subtitle: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.idCheck.subtitle\"\n defaultMessage=\"A valid government-issued document such as a driver's license, state ID, passport, or residence permit.\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/id-photo.svg\"\n />\n ),\n }));\n }\n\n if (getSafe(() => programTheme.config.onfidoReportNames.includes(\"facial_similarity_motion\"))) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.selfie.title\"\n defaultMessage=\"Take a selfie\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/selfie.svg\"\n />\n ),\n }));\n }\n\n if (programTheme.docUploadEnabled) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.docReview.title\"\n defaultMessage=\"Upload proof of status\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/upload-proof.svg\"\n />\n ),\n }));\n }\n\n return stepComponents.map((stepComponentFunction, i) => {\n const { title, subtitle, icon } = stepComponentFunction();\n return (\n <StepCardComponent\n title={title}\n subtitle={subtitle}\n icon={icon}\n isHighlighted={i === 0}\n key={title.toString()}\n />\n );\n });\n};\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { AnnouncingHeader } from \"@/components/AnnouncingHeader/AnnouncingHeader\";\nimport { VerificationStepsEnum } from \"../../../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../../../lib/types/types\";\nimport { logger } from \"../../../../lib/utils/logger/logger\";\nimport { IdCheckLoopOnfidoComponent } from \"../IdCheckLoopOnfido/IdCheckLoopOnfido\";\nimport IdCheckLoopOnfidoFooter from \"../../IdCheckLoopFooter/IdCheckLoopOnfidoFooter\";\nimport { getAndFormatOrderedStepCards } from \"../utils/getAndFormatOrderedStepCards\";\n\nexport interface StepIDCheckLoopOnfidoProps {\n verificationService: VerificationService;\n}\n\nconst StepIDCheckLoopOnfido = ({ verificationService }: StepIDCheckLoopOnfidoProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const [shouldShowIdCheckLoop, setShouldShowIdCheckLoop] = React.useState(false);\n\n const initiateIdCheckLoop = () => {\n logger.info(\"StepIDCheckLoop initiating ID Check Loop\");\n verificationService.submitStep(\n VerificationStepsEnum.idCheckLoop,\n verificationService.viewModel,\n verificationService.verificationResponse,\n );\n };\n\n React.useEffect(() => {\n if (verificationResponse && verificationResponse.sdkToken) {\n setShouldShowIdCheckLoop(true);\n }\n }, [verificationResponse]);\n\n return (\n <div id=\"sid-step-id-check-loop\" className=\"sid-l-container\">\n {shouldShowIdCheckLoop && (\n <div className=\"sid-l-space-btm-lg\">\n <div role=\"main\">\n <IdCheckLoopOnfidoComponent verificationService={verificationService} />\n </div>\n </div>\n )}\n\n {!shouldShowIdCheckLoop && (\n <div>\n <div role=\"main\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.title\"\n defaultMessage=\"Let's verify your identity\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center sid-l-space-btm-md\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.subtitle\"\n defaultMessage=\"You'll need access to a mobile phone with a camera or computer with a webcam.\"\n />\n </div>\n\n <div className=\"sid-identity-check-steps\">\n {getAndFormatOrderedStepCards(verificationService.programTheme)}\n </div>\n\n <div className=\"sid-submit sid-l-horz-center sid-l-space-top-md sid-l-space-btm-md\">\n <button\n onClick={initiateIdCheckLoop}\n type=\"button\"\n className=\"sid-btn sid-btn--dark\"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage id=\"step.idCheckLoop.continue\" defaultMessage=\"Continue\" />\n </button>\n </div>\n </div>\n <IdCheckLoopOnfidoFooter verificationService={verificationService} />\n </div>\n )}\n </div>\n );\n};\n\nexport default StepIDCheckLoopOnfido;\n"],"names":["IdCheckLoopOnfidoFooter","verificationService","jsx","FormFooterComponent","jsxs","FormattedMessage","companyName","getAndFormatOrderedStepCards","programTheme","stepComponents","getSafe","FormattedHTMLMessage","stepComponentFunction","i","title","subtitle","icon","StepCardComponent","StepIDCheckLoopOnfido","verificationResponse","shouldShowIdCheckLoop","setShouldShowIdCheckLoop","React","initiateIdCheckLoop","logger","VerificationStepsEnum","IdCheckLoopOnfidoComponent","AnnouncingHeader"],"mappings":";;AAUO,MAAMA,IAA0B,CAAC,EAAE,qBAAAC,EAAA,MACxCC,gBAAAA,EAAAA,IAACC,GAAA,EAAoB,qBAAAF,GACnB,UAAAG,gBAAAA,EAAAA,KAAC,OAAA,EACC,UAAA;AAAA,EAAAF,gBAAAA,MA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B,OAAM,UACtB,UAAAzB,gBAAAA,EAAAA;AAAAA,UAACS;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,YACf,SAAQ;AAAA,UAAA;AAAA,QAAA,GAEZ;AAAA,QACAT,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,6DACb,UAAAA,gBAAAA,EAAAA;AAAAA,UAACS;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,gBAAe;AAAA,UAAA;AAAA,QAAA,GAEnB;AAAA,8BAEC,OAAA,EAAI,WAAU,4BACZ,UAAAJ,EAA6BN,EAAoB,YAAY,GAChE;AAAA,QAEAC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,sEACb,UAAAA,gBAAAA,EAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAASqB;AAAA,YACT,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAW;AAAA,YAEX,UAAArB,gBAAAA,EAAAA,IAACS,GAAA,EAAqB,IAAG,6BAA4B,gBAAe,WAAA,CAAW;AAAA,UAAA;AAAA,QAAA,EACjF,CACF;AAAA,MAAA,GACF;AAAA,MACAT,gBAAAA,MAACF,KAAwB,qBAAAC,EAAA,CAA0C;AAAA,IAAA,EAAA,CACrE;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"StepIDCheckLoopOnfido-wDQ56PaN.js","sources":["../../src/components/StepIDCheckLoop/IdCheckLoopFooter/IdCheckLoopOnfidoFooter.tsx","../../src/components/StepIDCheckLoop/Onfido/utils/getAndFormatOrderedStepCards.tsx","../../src/components/StepIDCheckLoop/Onfido/StepIDCheckLoopOnfido/StepIDCheckLoopOnfido.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FormattedMessage } from \"react-intl\";\nimport { VerificationService } from \"../../../lib/types/types\";\nimport { FormFooterComponent } from \"../../FormFooter/FormFooterComponent\";\n\nexport interface IdCheckLoopOnfidoFooterProps {\n verificationService: VerificationService;\n}\n\nexport const IdCheckLoopOnfidoFooter = ({ verificationService }: IdCheckLoopOnfidoFooterProps) => (\n <FormFooterComponent verificationService={verificationService}>\n <div>\n <p>\n <FormattedMessage\n id=\"step.idCheckLoop.terms\"\n defaultMessage='By clicking \"Continue\", you agree you have read, understand, and accept {scanPolicy}, {privacyPolicyLink}, and {termsOfService}.'\n values={{\n scanPolicy: (\n <a\n href=\"https://onfido.com/facial-scan-policy-and-release/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.scanPolicy\"\n defaultMessage=\"Onfido Facial Scan Policy and Release\"\n />\n </a>\n ),\n privacyPolicyLink: (\n <a\n href=\"https://www.onfido.com/privacy/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.privacyPolicy\"\n defaultMessage=\"Privacy Policy\"\n />\n </a>\n ),\n termsOfService: (\n <a\n href=\"https://onfido.com/terms-of-service/\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"sid-link\"\n >\n <FormattedMessage\n id=\"step.idCheckLoop.termsOfService\"\n defaultMessage=\"Terms of Service\"\n />\n </a>\n ),\n }}\n />\n </p>\n\n <p>\n <FormattedMessage id=\"companyName\" defaultMessage=\"{Company}\">\n {(companyName) => (\n <FormattedMessage\n id=\"step.idCheckLoop.disclaimer\"\n defaultMessage=\"SheerID, {companyName}'s trusted partner, use a third party, {serviceType}, to process our identity check.\"\n values={{\n serviceType: \"Onfido\",\n companyName,\n }}\n />\n )}\n </FormattedMessage>\n </p>\n </div>\n </FormFooterComponent>\n);\n\nexport default IdCheckLoopOnfidoFooter;\n","import React from \"react\";\n\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { ProgramTheme } from \"../../../../lib/types/types\";\nimport { getSafe } from \"../../../../lib/utils/getSafe\";\nimport { StepCardComponent } from \"../../StepCard/StepCard\";\n\nexport const getAndFormatOrderedStepCards = (programTheme: ProgramTheme): React.ReactElement[] => {\n const stepComponents: (() => {\n title: React.ReactNode;\n icon: React.ReactNode;\n subtitle?: React.ReactNode;\n })[] = [];\n\n if (getSafe(() => programTheme.config.onfidoReportNames.includes(\"document\"), false)) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.idCheck.title\"\n defaultMessage=\"Take a photo of your government ID\"\n />\n ),\n subtitle: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.idCheck.subtitle\"\n defaultMessage=\"A valid government-issued document such as a driver's license, state ID, passport, or residence permit.\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/id-photo.svg\"\n />\n ),\n }));\n }\n\n if (getSafe(() => programTheme.config.onfidoReportNames.includes(\"facial_similarity_motion\"))) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.selfie.title\"\n defaultMessage=\"Take a selfie\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/selfie.svg\"\n />\n ),\n }));\n }\n\n if (programTheme.docUploadEnabled) {\n stepComponents.push(() => ({\n title: (\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.steps.docReview.title\"\n defaultMessage=\"Upload proof of status\"\n />\n ),\n icon: (\n <img\n className=\"sid-identity-check-steps__icon\"\n alt=\"\"\n src=\"https://assets-resources.sheerid.com/common/images/2018/icons/upload-proof.svg\"\n />\n ),\n }));\n }\n\n return stepComponents.map((stepComponentFunction, i) => {\n const { title, subtitle, icon } = stepComponentFunction();\n return (\n <StepCardComponent\n title={title}\n subtitle={subtitle}\n icon={icon}\n isHighlighted={i === 0}\n key={title.toString()}\n />\n );\n });\n};\n","import React from \"react\";\nimport { FormattedHTMLMessage } from \"react-intl\";\nimport { AnnouncingHeader } from \"@/components/AnnouncingHeader/AnnouncingHeader\";\nimport { VerificationStepsEnum } from \"../../../../lib/types/runtimeTypes\";\n\nimport { IDCheckLoopResponse, VerificationService } from \"../../../../lib/types/types\";\nimport { logger } from \"../../../../lib/utils/logger/logger\";\nimport { IdCheckLoopOnfidoComponent } from \"../IdCheckLoopOnfido/IdCheckLoopOnfido\";\nimport IdCheckLoopOnfidoFooter from \"../../IdCheckLoopFooter/IdCheckLoopOnfidoFooter\";\nimport { getAndFormatOrderedStepCards } from \"../utils/getAndFormatOrderedStepCards\";\n\nexport interface StepIDCheckLoopOnfidoProps {\n verificationService: VerificationService;\n}\n\nconst StepIDCheckLoopOnfido = ({ verificationService }: StepIDCheckLoopOnfidoProps) => {\n const verificationResponse = verificationService.verificationResponse as IDCheckLoopResponse;\n const [shouldShowIdCheckLoop, setShouldShowIdCheckLoop] = React.useState(false);\n\n const initiateIdCheckLoop = () => {\n logger.info(\"StepIDCheckLoop initiating ID Check Loop\");\n verificationService.submitStep(\n VerificationStepsEnum.idCheckLoop,\n verificationService.viewModel,\n verificationService.verificationResponse,\n );\n };\n\n React.useEffect(() => {\n if (verificationResponse && verificationResponse.sdkToken) {\n setShouldShowIdCheckLoop(true);\n }\n }, [verificationResponse]);\n\n return (\n <div id=\"sid-step-id-check-loop\" className=\"sid-l-container\">\n {shouldShowIdCheckLoop && (\n <div className=\"sid-l-space-btm-lg\">\n <div role=\"main\">\n <IdCheckLoopOnfidoComponent verificationService={verificationService} />\n </div>\n </div>\n )}\n\n {!shouldShowIdCheckLoop && (\n <div>\n <div role=\"main\">\n <AnnouncingHeader align=\"center\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.title\"\n defaultMessage=\"Let's verify your identity\"\n tagName=\"h1\"\n />\n </AnnouncingHeader>\n <div className=\"sid-header__subtitle sid-l-horz-center sid-l-space-btm-md\">\n <FormattedHTMLMessage\n id=\"step.idCheckLoop.subtitle\"\n defaultMessage=\"You'll need access to a mobile phone with a camera or computer with a webcam.\"\n />\n </div>\n\n <div className=\"sid-identity-check-steps\">\n {getAndFormatOrderedStepCards(verificationService.programTheme)}\n </div>\n\n <div className=\"sid-submit sid-l-horz-center sid-l-space-top-md sid-l-space-btm-md\">\n <button\n onClick={initiateIdCheckLoop}\n type=\"button\"\n className=\"sid-btn sid-btn--dark\"\n aria-label=\"submit\"\n >\n <FormattedHTMLMessage id=\"step.idCheckLoop.continue\" defaultMessage=\"Continue\" />\n </button>\n </div>\n </div>\n <IdCheckLoopOnfidoFooter verificationService={verificationService} />\n </div>\n )}\n </div>\n );\n};\n\nexport default StepIDCheckLoopOnfido;\n"],"names":["IdCheckLoopOnfidoFooter","verificationService","jsx","FormFooterComponent","jsxs","FormattedMessage","companyName","getAndFormatOrderedStepCards","programTheme","stepComponents","getSafe","FormattedHTMLMessage","stepComponentFunction","i","title","subtitle","icon","StepCardComponent","StepIDCheckLoopOnfido","verificationResponse","shouldShowIdCheckLoop","setShouldShowIdCheckLoop","React","initiateIdCheckLoop","logger","VerificationStepsEnum","IdCheckLoopOnfidoComponent","AnnouncingHeader"],"mappings":";;AAUO,MAAMA,IAA0B,CAAC,EAAE,qBAAAC,EAAA,MACxCC,gBAAAA,EAAAA,IAACC,GAAA,EAAoB,qBAAAF,GACnB,UAAAG,gBAAAA,EAAAA,KAAC,OAAA,EACC,UAAA;AAAA,EAAAF,gBAAAA,MAAC,KAAA,EACC,UAAAA,gBAAAA,EAAAA;AAAAA,IAACG;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAe;AAAA,MACf,QAAQ;AAAA,QACN,YACEH,gBAAAA,EAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,QAAO;AAAA,YACP,KAAI;AAAA,YACJ,WAAU;AAAA,YAEV,UAAAA,gBAAAA,EAAAA;AAAAA,cAACG;AAAA,cAAA;AAAA,gBACC,IAAG;AAAA,gBACH,gBAAe;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,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