@credenza3/passport-sui 0.1.5 → 0.1.7
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/dist/App-D8Bsln9W.js +606 -0
- package/dist/App-D8Bsln9W.js.map +1 -0
- package/dist/Button-FKUK-FB7.js +69 -0
- package/dist/{Button-BsbTG8lO.js.map → Button-FKUK-FB7.js.map} +1 -1
- package/dist/{ButtonBack-DD2NyWwM.js → ButtonBack-DVLBbyYt.js} +10 -8
- package/dist/{ButtonBack-DD2NyWwM.js.map → ButtonBack-DVLBbyYt.js.map} +1 -1
- package/dist/ButtonLink-BA_d9t6a.js +58 -0
- package/dist/{ButtonLink-Cs59sxMy.js.map → ButtonLink-BA_d9t6a.js.map} +1 -1
- package/dist/ConfirmAccount-XP4R3yKl.js +210 -0
- package/dist/{ConfirmAccount-Lf9S0MhU.js.map → ConfirmAccount-XP4R3yKl.js.map} +1 -1
- package/dist/ContentHeader-DtZj1Hgo.js +36 -0
- package/dist/{ContentHeader-CLn8GOLm.js.map → ContentHeader-DtZj1Hgo.js.map} +1 -1
- package/dist/{Error-CxVJQIoH.js → Error-CSKRMnSS.js} +101 -90
- package/dist/{Error-CxVJQIoH.js.map → Error-CSKRMnSS.js.map} +1 -1
- package/dist/Input-C7u8hGWy.js +62 -0
- package/dist/{Input-C-MLGjCj.js.map → Input-C7u8hGWy.js.map} +1 -1
- package/dist/Label-4blmucYF.js +27 -0
- package/dist/{Label-Djj4wtpJ.js.map → Label-4blmucYF.js.map} +1 -1
- package/dist/Loader-Cu6YpHI4.js +29 -0
- package/dist/Loader-Cu6YpHI4.js.map +1 -0
- package/dist/Login-Cwa8nS7a.js +265 -0
- package/dist/Login-Cwa8nS7a.js.map +1 -0
- package/dist/Logout-sQNv9wRk.js +96 -0
- package/dist/{Logout-S51UB3vm.js.map → Logout-sQNv9wRk.js.map} +1 -1
- package/dist/Nav-HeCF0rs6.js +669 -0
- package/dist/{Nav-DMRn61kA.js.map → Nav-HeCF0rs6.js.map} +1 -1
- package/dist/{PassportId-B6Vps9D-.js → PassportId-ChJDp_KV.js} +298 -314
- package/dist/PassportId-ChJDp_KV.js.map +1 -0
- package/dist/Payment-DVmk-5zj.js +990 -0
- package/dist/Payment-DVmk-5zj.js.map +1 -0
- package/dist/PaymentResult-BPNUpR6a.js +302 -0
- package/dist/{PaymentResult-GtndDFgP.js.map → PaymentResult-BPNUpR6a.js.map} +1 -1
- package/dist/{Profile-DtWPPnzN.js → Profile-DN_Y-fHB.js} +162 -151
- package/dist/{Profile-DtWPPnzN.js.map → Profile-DN_Y-fHB.js.map} +1 -1
- package/dist/ProgressVideo-BgMprzFf.js +126 -0
- package/dist/{ProgressVideo-CKJpaKXT.js.map → ProgressVideo-BgMprzFf.js.map} +1 -1
- package/dist/{ProgressVideo.service-CuYcBU3B.js → ProgressVideo.service-CiCieW6X.js} +2 -2
- package/dist/{ProgressVideo.service-CuYcBU3B.js.map → ProgressVideo.service-CiCieW6X.js.map} +1 -1
- package/dist/RichAlert-dSY8MJTQ.js +139 -0
- package/dist/{RichAlert-5BL3Ix5z.js.map → RichAlert-dSY8MJTQ.js.map} +1 -1
- package/dist/{Scanner-BmtAhTU8.js → Scanner-qMAihqZq.js} +38 -38
- package/dist/{Scanner-BmtAhTU8.js.map → Scanner-qMAihqZq.js.map} +1 -1
- package/dist/SendTokens-D87tzGx9.js +351 -0
- package/dist/SendTokens-D87tzGx9.js.map +1 -0
- package/dist/Sign-BGA7enT4.js +108 -0
- package/dist/{Sign-BGfwNmPK.js.map → Sign-BGA7enT4.js.map} +1 -1
- package/dist/{Stripe.service-DVO5PxAg.js → Stripe.service-C119NvVj.js} +15 -16
- package/dist/{Stripe.service-DVO5PxAg.js.map → Stripe.service-C119NvVj.js.map} +1 -1
- package/dist/UpdateProfile-DKgDmHn9.js +522 -0
- package/dist/UpdateProfile-DKgDmHn9.js.map +1 -0
- package/dist/UserInfo-CFTntH_A.js +151 -0
- package/dist/{UserInfo-DWIc3eJd.js.map → UserInfo-CFTntH_A.js.map} +1 -1
- package/dist/Wallet-eC5Y6pR2.js +258 -0
- package/dist/{Wallet-D2UW1K77.js.map → Wallet-eC5Y6pR2.js.map} +1 -1
- package/dist/each-CvlyEbiw.js +202 -0
- package/dist/each-CvlyEbiw.js.map +1 -0
- package/dist/event-modifiers-DpFXHa6q.js.map +1 -1
- package/dist/html-CoDrz2MD.js +53 -0
- package/dist/html-CoDrz2MD.js.map +1 -0
- package/dist/{index-client-C2b3pj6G.js → index-client-DqEnqJlv.js} +5 -5
- package/dist/index-client-DqEnqJlv.js.map +1 -0
- package/dist/index-qsKp2OJc.js +43219 -0
- package/dist/index-qsKp2OJc.js.map +1 -0
- package/dist/{input-DSquQZrj.js → input-B_qkEDlO.js} +3 -3
- package/dist/{input-DSquQZrj.js.map → input-B_qkEDlO.js.map} +1 -1
- package/dist/legacy-CYnP3rAB.js +1038 -0
- package/dist/legacy-CYnP3rAB.js.map +1 -0
- package/dist/main-CJLmsNB-.js.map +1 -1
- package/dist/passport.es.js +3 -3
- package/dist/passport.umd.js +837 -231
- package/dist/passport.umd.js.map +1 -1
- package/dist/{socket-io-DC-dPxeO.js → socket-io-C0kUrNSm.js} +2 -2
- package/dist/{socket-io-DC-dPxeO.js.map → socket-io-C0kUrNSm.js.map} +1 -1
- package/dist/types/passport/auth.d.ts +2 -4
- package/package.json +23 -23
- package/dist/App-BAFJP3YE.js +0 -629
- package/dist/App-BAFJP3YE.js.map +0 -1
- package/dist/Button-BsbTG8lO.js +0 -69
- package/dist/ButtonLink-Cs59sxMy.js +0 -58
- package/dist/ConfirmAccount-Lf9S0MhU.js +0 -208
- package/dist/ContentHeader-CLn8GOLm.js +0 -36
- package/dist/Input-C-MLGjCj.js +0 -68
- package/dist/Label-Djj4wtpJ.js +0 -27
- package/dist/Login-C7pe83sW.js +0 -314
- package/dist/Login-C7pe83sW.js.map +0 -1
- package/dist/Logout-S51UB3vm.js +0 -84
- package/dist/Nav-DMRn61kA.js +0 -644
- package/dist/PassportId-B6Vps9D-.js.map +0 -1
- package/dist/Payment-BaiScVf4.js +0 -975
- package/dist/Payment-BaiScVf4.js.map +0 -1
- package/dist/PaymentResult-GtndDFgP.js +0 -285
- package/dist/ProgressVideo-CKJpaKXT.js +0 -121
- package/dist/RichAlert-5BL3Ix5z.js +0 -121
- package/dist/SendTokens-BUM-slmS.js +0 -333
- package/dist/SendTokens-BUM-slmS.js.map +0 -1
- package/dist/Sign-BGfwNmPK.js +0 -87
- package/dist/UpdateProfile-BlHz4MuU.js +0 -508
- package/dist/UpdateProfile-BlHz4MuU.js.map +0 -1
- package/dist/UserInfo-DWIc3eJd.js +0 -135
- package/dist/Wallet-D2UW1K77.js +0 -242
- package/dist/each-Dqze57Ms.js +0 -205
- package/dist/each-Dqze57Ms.js.map +0 -1
- package/dist/html-0_BSI5XK.js +0 -35
- package/dist/html-0_BSI5XK.js.map +0 -1
- package/dist/index-DfsKJkF5.js +0 -51
- package/dist/index-DfsKJkF5.js.map +0 -1
- package/dist/index-DjqVR0UB.js +0 -33828
- package/dist/index-DjqVR0UB.js.map +0 -1
- package/dist/index-client-C2b3pj6G.js.map +0 -1
- package/dist/legacy-CqcDNlD_.js +0 -956
- package/dist/legacy-CqcDNlD_.js.map +0 -1
- package/dist/types/app/pages/login/authMethods.helper.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App-D8Bsln9W.js","sources":["../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/internal/client/dom/blocks/await.js","../../ui/images/close-button.svg","../../ui/main/shared/Header.svelte","../../ui/images/credenza.svg","../../ui/main/shared/footer/Footer.svelte","../../ui/main/shared/Container.svelte","../../ui/main/Main.svelte","../src/app/images/sui-partner-logo.svg","../src/app/App.svelte"],"sourcesContent":["/** @import { Effect, Source, TemplateNode } from '#client' */\nimport { DEV } from 'esm-env';\nimport { is_promise } from '../../../shared/utils.js';\nimport { block, branch, pause_effect, resume_effect } from '../../reactivity/effects.js';\nimport { internal_set, mutable_source, source } from '../../reactivity/sources.js';\nimport { flushSync, set_active_effect, set_active_reaction } from '../../runtime.js';\nimport {\n\thydrate_next,\n\thydrate_node,\n\thydrating,\n\tremove_nodes,\n\tset_hydrate_node,\n\tset_hydrating\n} from '../hydration.js';\nimport { queue_micro_task } from '../task.js';\nimport { HYDRATION_START_ELSE, UNINITIALIZED } from '../../../../constants.js';\nimport {\n\tcomponent_context,\n\tis_runes,\n\tset_component_context,\n\tset_dev_current_component_function\n} from '../../context.js';\n\nconst PENDING = 0;\nconst THEN = 1;\nconst CATCH = 2;\n\n/**\n * @template V\n * @param {TemplateNode} node\n * @param {(() => Promise<V>)} get_input\n * @param {null | ((anchor: Node) => void)} pending_fn\n * @param {null | ((anchor: Node, value: Source<V>) => void)} then_fn\n * @param {null | ((anchor: Node, error: unknown) => void)} catch_fn\n * @returns {void}\n */\nexport function await_block(node, get_input, pending_fn, then_fn, catch_fn) {\n\tif (hydrating) {\n\t\thydrate_next();\n\t}\n\n\tvar anchor = node;\n\tvar runes = is_runes();\n\tvar active_component_context = component_context;\n\n\t/** @type {any} */\n\tvar component_function = DEV ? component_context?.function : null;\n\n\t/** @type {V | Promise<V> | typeof UNINITIALIZED} */\n\tvar input = UNINITIALIZED;\n\n\t/** @type {Effect | null} */\n\tvar pending_effect;\n\n\t/** @type {Effect | null} */\n\tvar then_effect;\n\n\t/** @type {Effect | null} */\n\tvar catch_effect;\n\n\tvar input_source = runes\n\t\t? source(/** @type {V} */ (undefined))\n\t\t: mutable_source(/** @type {V} */ (undefined), false, false);\n\tvar error_source = runes ? source(undefined) : mutable_source(undefined, false, false);\n\tvar resolved = false;\n\n\t/**\n\t * @param {PENDING | THEN | CATCH} state\n\t * @param {boolean} restore\n\t */\n\tfunction update(state, restore) {\n\t\tresolved = true;\n\n\t\tif (restore) {\n\t\t\tset_active_effect(effect);\n\t\t\tset_active_reaction(effect); // TODO do we need both?\n\t\t\tset_component_context(active_component_context);\n\t\t\tif (DEV) set_dev_current_component_function(component_function);\n\t\t}\n\n\t\ttry {\n\t\t\tif (state === PENDING && pending_fn) {\n\t\t\t\tif (pending_effect) resume_effect(pending_effect);\n\t\t\t\telse pending_effect = branch(() => pending_fn(anchor));\n\t\t\t}\n\n\t\t\tif (state === THEN && then_fn) {\n\t\t\t\tif (then_effect) resume_effect(then_effect);\n\t\t\t\telse then_effect = branch(() => then_fn(anchor, input_source));\n\t\t\t}\n\n\t\t\tif (state === CATCH && catch_fn) {\n\t\t\t\tif (catch_effect) resume_effect(catch_effect);\n\t\t\t\telse catch_effect = branch(() => catch_fn(anchor, error_source));\n\t\t\t}\n\n\t\t\tif (state !== PENDING && pending_effect) {\n\t\t\t\tpause_effect(pending_effect, () => (pending_effect = null));\n\t\t\t}\n\n\t\t\tif (state !== THEN && then_effect) {\n\t\t\t\tpause_effect(then_effect, () => (then_effect = null));\n\t\t\t}\n\n\t\t\tif (state !== CATCH && catch_effect) {\n\t\t\t\tpause_effect(catch_effect, () => (catch_effect = null));\n\t\t\t}\n\t\t} finally {\n\t\t\tif (restore) {\n\t\t\t\tif (DEV) set_dev_current_component_function(null);\n\t\t\t\tset_component_context(null);\n\t\t\t\tset_active_reaction(null);\n\t\t\t\tset_active_effect(null);\n\n\t\t\t\t// without this, the DOM does not update until two ticks after the promise\n\t\t\t\t// resolves, which is unexpected behaviour (and somewhat irksome to test)\n\t\t\t\tflushSync();\n\t\t\t}\n\t\t}\n\t}\n\n\tvar effect = block(() => {\n\t\tif (input === (input = get_input())) return;\n\n\t\t/** Whether or not there was a hydration mismatch. Needs to be a `let` or else it isn't treeshaken out */\n\t\t// @ts-ignore coercing `anchor` to a `Comment` causes TypeScript and Prettier to fight\n\t\tlet mismatch = hydrating && is_promise(input) === (anchor.data === HYDRATION_START_ELSE);\n\n\t\tif (mismatch) {\n\t\t\t// Hydration mismatch: remove everything inside the anchor and start fresh\n\t\t\tanchor = remove_nodes();\n\n\t\t\tset_hydrate_node(anchor);\n\t\t\tset_hydrating(false);\n\t\t\tmismatch = true;\n\t\t}\n\n\t\tif (is_promise(input)) {\n\t\t\tvar promise = input;\n\n\t\t\tresolved = false;\n\n\t\t\tpromise.then(\n\t\t\t\t(value) => {\n\t\t\t\t\tif (promise !== input) return;\n\t\t\t\t\t// we technically could use `set` here since it's on the next microtick\n\t\t\t\t\t// but let's use internal_set for consistency and just to be safe\n\t\t\t\t\tinternal_set(input_source, value);\n\t\t\t\t\tupdate(THEN, true);\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tif (promise !== input) return;\n\t\t\t\t\t// we technically could use `set` here since it's on the next microtick\n\t\t\t\t\t// but let's use internal_set for consistency and just to be safe\n\t\t\t\t\tinternal_set(error_source, error);\n\t\t\t\t\tupdate(CATCH, true);\n\t\t\t\t\tif (!catch_fn) {\n\t\t\t\t\t\t// Rethrow the error if no catch block exists\n\t\t\t\t\t\tthrow error_source.v;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\n\t\t\tif (hydrating) {\n\t\t\t\tif (pending_fn) {\n\t\t\t\t\tpending_effect = branch(() => pending_fn(anchor));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Wait a microtask before checking if we should show the pending state as\n\t\t\t\t// the promise might have resolved by the next microtask.\n\t\t\t\tqueue_micro_task(() => {\n\t\t\t\t\tif (!resolved) update(PENDING, true);\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tinternal_set(input_source, input);\n\t\t\tupdate(THEN, false);\n\t\t}\n\n\t\tif (mismatch) {\n\t\t\t// continue in hydration mode\n\t\t\tset_hydrating(true);\n\t\t}\n\n\t\t// Set the input to something else, in order to disable the promise callbacks\n\t\treturn () => (input = UNINITIALIZED);\n\t});\n\n\tif (hydrating) {\n\t\tanchor = hydrate_node;\n\t}\n}\n","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eClose%3c/title%3e%3cpath%20fill='%23a6a6a6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.237%207.177a.75.75%200%2010-1.06%201.06L10.939%2012l-3.762%203.763a.75.75%200%20101.06%201.06L12%2013.061l3.763%203.762a.75.75%200%20101.06-1.06L13.061%2012l3.762-3.763a.75.75%200%2000-1.06-1.06L12%2010.939%208.237%207.177z'/%3e%3c/svg%3e\"","<script lang=\"ts\">\n import CloseIcon from \"../../images/close-button.svg\";\n\n export let onCloseClick: () => void;\n export let isHeaderShown: boolean;\n\n $: isHeaderShown = isHeaderShown;\n</script>\n\n{#if isHeaderShown}\n <!-- svelte-ignore a11y-click-events-have-key-events -->\n <div\n class=\"crtw-float-right crtw-cursor-pointer crtw-h-8 crtw-w-8 crtw-absolute crtw-top-0 crtw-right-0 crtw-z-1000001 crtw-m-2 crtw-bg-white crtw-rounded-full sm:crtw-m-4\"\n on:click={onCloseClick}\n role=\"button\"\n tabindex={0}\n >\n <img\n src={CloseIcon}\n alt=\"close-icon\"\n class=\"crtw-fill-red-500 crtw-w-8 crtw-h-8\"\n />\n </div>\n{/if}\n","export default \"data:image/svg+xml,%3csvg%20id='Layer_1'%20width='100%25'%20xmlns='http://www.w3.org/2000/svg'%20height='100%25'%20viewBox='0%200%20939.84%20194'%20data-name='Layer%201'%3e%3cg%3e%3cg%3e%3cpath%20d='m181,0H13C5.82,0,0,5.82,0,13v168c0,7.18,5.82,13,13,13h154c-2.69-28.49-18.67-54.88-58.91-78.03-28.28-15.89-32.85-6.92-80.75,27.15,39.18-64.25,38.73-56.84-4-116.12,61.46,40.42,56.89,41.25,116.12-4-30.41,50.61-38.32,55.06-19.72,83.12,21.63,32.61,42.77,58.88,74.26,61.05V13c0-7.18-5.82-13-13-13Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m181,194h13v-13c0,7.18-5.82,13-13,13Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3cpath%20d='m119.74,106.12c-18.6-28.06-10.69-32.51,19.72-83.12-59.23,45.25-54.66,44.42-116.12,4,42.73,59.28,43.18,51.87,4,116.12,47.9-34.07,52.46-43.04,80.75-27.15,40.23,23.15,56.22,49.54,58.91,78.03h14c7.18,0,13-5.82,13-13v-13.83c-31.48-2.17-52.63-28.44-74.26-61.05Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3c/g%3e%3cpath%20d='m92,142.14c-22.75,17.3-20.76,16.82-44.5,1.67,16.41,22.55,16.66,20.1,1.67,44.5,23.94-17.03,19.64-17.39,44.5-1.67-17.03-23.94-16.86-19.2-1.67-44.5Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3cpath%20d='m180.28,76.84c-17.73,13.35-16.29,13.13-34.31,1.24,12.83,17.61,12.78,15.39,1.24,34.31,18.52-13.17,15.3-13.63,34.31-1.24-13.17-18.52-12.91-14.86-1.24-34.31Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3c/g%3e%3cg%20id='Credenza'%3e%3cpath%20d='m699.78,61.6c16.09,19.44,32.17,39.03,49.06,59.57v-58.61h5.58v71.37l-1.43.95c-16.41-19.27-32.17-39.03-49.22-59.42v58.62h-5.41V62.39c.51-.2.99-.47,1.43-.8h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m512.45,73.07h5.41v55.59c10.67-.16,21.19,1.6,31.22-1.91,13.22-4.62,20.71-18.64,18.32-33.93-2.07-14.33-13.38-24.37-28.19-24.85-8.92-.32-17.84,0-26.92,0v-5.58c13.7.63,27.71-2.23,40.94,3.35,14.33,6.21,22.14,21.5,19.91,38.55-2.07,15.61-13.7,27.88-29.47,29.31-10.2.95-20.71.16-31.38.16.16-20.07.16-40.3.16-60.69h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m336.59,101.59h17.68c5.26,0,10.52.16,15.93-.16,10.04-.48,15.93-7.01,15.61-17.21-.16-9.4-6.69-16.25-16.09-16.41-10.83-.16-21.82,0-33.14,0-.16-1.91-.16-3.51-.16-4.78,12.9,0,25.48-.95,37.91.32,10.99.95,17.84,10.67,17.84,21.98s-6.69,18.96-18.16,21.02c-1.28.32-2.55.48-4.62.95,8.29,9.08,16.25,17.52,24.53,26.6-4.46,1.12-7.33.48-10.04-2.71-6.37-7.33-12.9-14.33-19.75-21.34-1.63-1.48-3.7-2.38-5.89-2.55-5.1-.32-10.2-.16-15.77-.16v26.92c-2.07.16-3.66.16-5.58.32-.32-10.83-.32-21.5-.32-32.82v.03Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m834.23,67.65h-43.01v-5.1h53.52c-15.77,22.62-31.7,43.81-47.47,65.95h45.87c.16,2.07.32,3.51.32,5.41h-56.39c15.61-22.62,31.38-43.64,47.15-66.26h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m299.96,72.59c-1.28,1.12-2.39,2.07-3.35,3.03-17.04-11.95-35.84-11.47-46.83.95-10.35,11.79-10.35,32.17.32,43.81,10.99,12.1,29.94,12.43,46.99.32.8,1.12,1.75,2.39,2.71,3.66-12.9,13.86-38.39,14.5-52.25,1.43-14.65-13.7-14.98-39.35-.8-53.68,13.54-14.02,38.87-13.86,53.21.48h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m939.83,133.76c-4.14,1.6-6.06.16-7.64-3.35-8.29-19.11-16.88-37.91-25.33-56.87-.63-1.43-1.43-2.86-2.39-5.1-3.83,8.44-7.33,16.25-10.83,24.05-5.58,12.75-11.47,25.33-16.88,38.07-1.6,3.66-3.66,4.62-7.64,3.18l3.35-7.64c9.08-19.91,18-39.98,27.24-59.9.8-1.75,1.75-3.66,3.66-4.3,3.18-1.12,5.1,2.07,6.06,4.3,9.72,21.67,19.59,43.17,29.31,64.83.5.84.87,1.76,1.12,2.71h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpolygon%20style='fill:%20%23262a2e;'%20points='476.77%2095.85%20476.77%20100.62%20432.81%20100.62%20432.81%20128.82%20476.77%20128.82%20476.77%20134.08%20427.07%20134.08%20427.07%2095.85%20476.77%2095.85'%3e%3c/polygon%3e%3cpath%20d='m615.35,128.82h43.64v5.26h-49.38v-38.23h49.38c.16,1.28.32,2.71.48,4.62h-44.12v28.36h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3crect%20x='427.07'%20y='62.56'%20style='fill:%20%23262a2e;'%20width='49.7'%20height='4.94'%3e%3c/rect%3e%3cpath%20d='m659.32,67.65h-49.86v-5.1h49.54c.16,1.6.16,3.03.32,5.1h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3c/g%3e%3c/svg%3e\"","<script lang=\"ts\">\n import LogoLinkText from \"./LogoLinkText.svelte\";\n import CredenzaLogo from \"../../../images/credenza.svg\";\n\n export let additionalLogo: { img?: string, width: number} | undefined = undefined;\n</script>\n\n<section class=\"crtw-flex crtw-flex-col crtw-items-center crtw-pt-11\">\n <div class=\"crtw-flex crtw-items-center crtw-justify-center crtw-gap-4\">\n <img\n src={CredenzaLogo}\n alt=\"credenza-logo\"\n class=\"crtw-w-[110px]\"\n />\n {#if additionalLogo?.img}\n <img\n src={additionalLogo?.img}\n alt=\"additional-logo\"\n style={`width: ${additionalLogo?.width}px`}\n />\n {/if}\n </div>\n \n <div\n class=\"crtw-text-center crtw-text-textMain crtw-text-xs crtw-flex crtw-justify-center\n crtw-items-center crtw-pt-[3px] sm:crtw-pt-2\"\n >\n <a\n class=\"crtw-text-hightlightColor crtw-no-underline crtw-mr-1.5 crtw-text-[10px]\"\n href=\"https://www.credenza3.com\"\n target=\"_blank\"\n rel=\"noreferrer\">Credenza</a\n >\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"https://www.credenza3.com/company/about\"\n target=\"_blank\"\n rel=\"noreferrer\">About</a\n ></LogoLinkText\n >\n\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"mailto:info@credenza3.com\"\n >\n Contact</a\n ></LogoLinkText\n >\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"https://www.credenza3.com/privacy-policy\"\n target=\"_blank\"\n rel=\"noreferrer\">Privacy & terms</a\n ></LogoLinkText\n >\n </div>\n</section>\n","<div class={$$props.class + \" crtw-w-full crtw-mx-auto crtw-my-0\"}>\n <slot />\n</div>\n","<script lang=\"ts\">\n import Header from \"./shared/Header.svelte\";\n import Footer from \"./shared/footer/Footer.svelte\";\n\n import Container from \"./shared/Container.svelte\";\n\n export let shouldBlurBackdrop: boolean;\n export let isHeaderShown: boolean;\n export let footerAdditionalLogo: { img?: string, width: number} | undefined = undefined;\n\n export let onCloseClick: () => void;\n</script>\n\n<div id=\"cpui\" class=\"crdz-ui\">\n <div\n class=\"crtw-font-['Poppins'] crtw-fixed crtw-z-[1050] crtw-top-0 crtw-left-0 crtw-min-w-screen crtw-w-full\n crtw-min-h-screen crtw-h-full crtw-flex crtw-justify-center crtw-items-center crtw-bg-black/70\n crtw-text-[#121e2b]\"\n class:crtw-backdrop-blur-md={shouldBlurBackdrop}\n >\n <div\n class=\"crtw-bg-white crtw-rounded-lg crtw-relative crtw-w-full crtw-overflow-y-scroll\n crtw-max-w-[380px] crtw-max-h-full sm-tall:crtw-max-h-[650px] sm:crtw-max-w-md\"\n >\n <Header {onCloseClick} {isHeaderShown} />\n <Container class=\"crtw-pt-11 crtw-pb-9 sm:crtw-pt-[50px] crtw-px-[22px]\">\n <div\n class=\"crtw-flex crtw-flex-col crtw-items-center crtw-justify-center crtw-bg-white crtw-rounded\n crtw-min-h-[155px] crtw-gap-6\"\n >\n <slot />\n </div>\n <Footer additionalLogo={footerAdditionalLogo}/>\n </Container>\n </div>\n </div>\n</div>\n\n<style>\n :global(body) {\n --w3m-z-index: 1000001;\n }\n</style>\n","export default \"data:image/svg+xml,%3csvg%20width='148'%20height='78'%20viewBox='0%200%20148%2078'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1340_2004)'%3e%3cpath%20d='M128.996%2048.5994C128.996%2050.7019%20128.532%2052.4518%20127.621%2053.8016C126.719%2055.1545%20125.585%2056.1708%20124.248%2056.8251C122.924%2057.4793%20121.602%2057.8128%20120.326%2057.8128C118.204%2057.8128%20116.432%2057.0823%20115.066%2055.6436C113.707%2054.1986%20113.021%2052.2263%20113.021%2049.7809V27.6797H107.031V50.1461C107.031%2053.1473%20107.53%2055.6754%20108.518%2057.6635C109.508%2059.6485%20110.896%2061.1602%20112.64%2062.1543C114.374%2063.1293%20116.381%2063.6247%20118.604%2063.6247C121.291%2063.6247%20123.552%2062.9864%20125.325%2061.7287C126.925%2060.579%20128.158%2059.1848%20128.996%2057.5809V63.1706H134.986V27.6797H128.996V48.6026V48.5994Z'%20fill='%23011829'/%3e%3cpath%20d='M98.0999%2040.7815C96.7216%2039.8033%2095.2543%2039.0188%2093.7394%2038.4504C92.2626%2037.8946%2090.9033%2037.4499%2089.6932%2037.1292L84.9484%2035.8524C84.0972%2035.6301%2083.1508%2035.3348%2082.1409%2034.9759C81.1373%2034.6075%2080.1623%2034.1343%2079.2508%2033.5753C78.3552%2033.01%2077.6088%2032.3019%2077.0308%2031.4667C76.4782%2030.6314%2076.1987%2029.6151%2076.1987%2028.4432C76.1987%2027.0362%2076.6052%2025.7627%2077.4087%2024.6606C78.2313%2023.5459%2079.3969%2022.6566%2080.8642%2022.0183C82.36%2021.3736%2084.1354%2021.0464%2086.1394%2021.0464C88.877%2021.0464%2091.2145%2021.6689%2093.0915%2022.9012C94.9367%2024.1112%2096.0038%2025.8357%2096.2642%2028.0271L96.296%2028.3066H102.352L102.34%2027.9795C102.264%2025.5785%20101.508%2023.403%20100.101%2021.5165C98.7129%2019.6363%2096.8073%2018.1373%2094.4412%2017.0607C92.0815%2015.9713%2089.3471%2015.4219%2086.3204%2015.4219C83.2937%2015.4219%2080.5688%2015.9808%2078.1329%2017.0829C75.7033%2018.1754%2073.7374%2019.7348%2072.2892%2021.7229C70.8473%2023.7047%2070.1168%2026.0581%2070.1168%2028.7163C70.1168%2031.9272%2071.222%2034.563%2073.3976%2036.5512C75.5413%2038.5107%2078.4854%2040.0383%2082.1472%2041.0927L87.8671%2042.7283C89.4773%2043.1761%2090.9985%2043.7065%2092.3864%2044.3036C93.7425%2044.888%2094.8509%2045.6534%2095.6799%2046.5839C96.4834%2047.4859%2096.8931%2048.6832%2096.8931%2050.1409C96.8931%2051.7543%2096.4135%2053.1835%2095.4639%2054.3903C94.5048%2055.5972%2093.1804%2056.5563%2091.5321%2057.2423C89.8711%2057.9188%2087.9624%2058.2618%2085.8662%2058.2618C84.0655%2058.2618%2082.3568%2057.9918%2080.7975%2057.4614C79.2667%2056.9215%2077.9804%2056.0958%2076.98%2055.0065C76.0018%2053.9139%2075.4333%2052.5102%2075.2904%2050.8333L75.265%2050.5443H68.8242L68.8496%2050.8841C69.0338%2053.4725%2069.8405%2055.7814%2071.2475%2057.7409C72.6671%2059.7005%2074.633%2061.2472%2077.0943%2062.3397C79.5589%2063.4258%2082.5125%2063.9784%2085.8694%2063.9784C89.4709%2063.9784%2092.5801%2063.3655%2095.105%2062.1555C97.6585%2060.9391%2099.6275%2059.2749%20100.952%2057.2074C102.295%2055.1367%20102.978%2052.7897%20102.978%2050.2267C102.978%2048.0004%20102.511%2046.0916%20101.593%2044.5513C100.682%2043.0205%2099.5068%2041.7533%2098.0999%2040.7783V40.7815Z'%20fill='%23011829'/%3e%3cpath%20d='M147.5%2018.5531C147.5%2017.467%20147.084%2016.5269%20146.267%2015.7583C145.467%2014.9929%20144.495%2014.6055%20143.371%2014.6055C142.247%2014.6055%20141.268%2014.9929%20140.452%2015.7615C139.649%2016.5301%20139.242%2017.4702%20139.242%2018.5563C139.242%2019.6425%20139.649%2020.5794%20140.455%2021.3511C141.268%2022.1165%20142.25%2022.504%20143.374%2022.504C144.498%2022.504%20145.378%2022.1515%20146.153%2021.4591L146.188%2021.4274C146.217%2021.402%20146.245%2021.3765%20146.274%2021.348L146.388%2021.2368C147.131%2020.4873%20147.506%2019.5853%20147.506%2018.5531H147.5Z'%20fill='%23011829'/%3e%3cpath%20d='M146.318%2027.6758H140.328V63.1669H146.318V27.6758Z'%20fill='%23011829'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.255%2032.8991C51.3992%2036.8468%2053.2793%2041.8393%2053.2793%2047.2701C53.2793%2052.701%2051.342%2057.846%2048.1153%2061.8159L47.8358%2062.1589L47.7627%2061.7238C47.6992%2061.3554%2047.6262%2060.9806%2047.5404%2060.6059C45.9239%2053.5045%2040.6582%2047.4162%2031.9911%2042.484C26.1379%2039.162%2022.7873%2035.1667%2021.9075%2030.6219C21.339%2027.6842%2021.7614%2024.7337%2022.5777%2022.2057C23.3939%2019.6809%2024.6071%2017.5625%2025.6393%2016.289L29.0121%2012.1666C29.6028%2011.4425%2030.7112%2011.4425%2031.3019%2012.1666L48.2582%2032.8991H48.255ZM53.5874%2028.7799L30.9875%201.14931C30.5556%200.622105%2029.7489%200.622105%2029.317%201.14931L6.72026%2028.7799L6.64721%2028.872C2.48993%2034.0329%200%2040.5912%200%2047.7307C0%2064.3566%2013.5009%2077.8353%2030.1522%2077.8353C46.8036%2077.8353%2060.3045%2064.3566%2060.3045%2047.7307C60.3045%2040.5912%2057.8146%2034.0329%2053.6573%2028.8752L53.5842%2028.7831L53.5874%2028.7799ZM12.1289%2032.8102L14.1487%2030.3361L14.2091%2030.7934C14.2567%2031.1555%2014.3171%2031.5175%2014.3869%2031.8828C15.6954%2038.746%2020.3672%2044.4658%2028.1768%2048.8962C34.9669%2052.7613%2038.921%2057.2044%2040.058%2062.0763C40.5343%2064.1089%2040.6169%2066.1097%2040.4105%2067.8597L40.3978%2067.9677L40.2993%2068.0153C37.2346%2069.5112%2033.7887%2070.3528%2030.1491%2070.3528C17.3787%2070.3528%207.02515%2060.0183%207.02515%2047.267C7.02515%2041.7917%208.93388%2036.7642%2012.1225%2032.8038L12.1289%2032.8102Z'%20fill='%23011829'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1340_2004'%3e%3crect%20width='147.681'%20height='77.175'%20fill='white'%20transform='translate(0%200.753906)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","<script lang=\"ts\">\n import { get } from 'svelte/store'\n import { fn, pageStore, pageOptsStore } from '@packages/stores'\n import { dispatch, PassportEvents } from '@lib/events/events'\n\n import { Pages } from '@packages/utils/enums'\n import { MainApp } from '@packages/ui'\n import { cloakStore, forcedPage } from '@src/stores/config'\n import SuiPartnerLogo from '@images/sui-partner-logo.svg'\n\n\n $: shouldBlurBackdrop = $cloakStore\n $: isHeaderShown = !$cloakStore\n const handleCloseClick = () => {\n const { close } = get(fn)\n\n dispatch(PassportEvents.UI_CLOSED, {\n page: <string>(get(forcedPage) || get(pageStore)),\n pageOpts: get(pageOptsStore),\n })\n close()\n }\n</script>\n\n\n<MainApp\n footerAdditionalLogo={{ img: SuiPartnerLogo, width: 40 }}\n bind:shouldBlurBackdrop\n bind:isHeaderShown\n onCloseClick={handleCloseClick}\n>\n {#if $forcedPage === Pages.LOGIN || $pageStore === Pages.LOGIN}\n {#await import('@pages/login/Login.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.LOGOUT}\n {#await import('@pages/logout/Logout.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $forcedPage === Pages.CONFIRM_ACCOUNT || $pageStore === Pages.CONFIRM_ACCOUNT}\n {#await import('@pages/confirm-account/ConfirmAccount.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $forcedPage === Pages.UPDATE_PROFILE || $pageStore === Pages.UPDATE_PROFILE}\n {#await import('@pages/update-profile/UpdateProfile.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PASSPORT_ID}\n {#await import('@pages/passport-id/PassportId.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SIGN}\n {#await import('@pages/sign/Sign.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.WALLET}\n {#await import('@pages/wallet/Wallet.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SEND_TOKENS}\n {#await import('@pages/send-tokens/SendTokens.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PAYMENT}\n {#await import('@pages/payment/Payment.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PAYMENT_RESULT}\n {#await import('@pages/payment-result/PaymentResult.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SCANNER}\n {#await import('@pages/scanner/Scanner.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.ERROR}\n {#await import('@pages/error/Error.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.RICH_ALERT}\n {#await import('@pages/rich-alert/RichAlert.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.LOADER}\n {#await import('@components/progress/ProgressVideo.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else}\n {#await import('@pages/profile/Profile.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {/if}\n</MainApp>\n"],"names":["PENDING","THEN","CATCH","await_block","node","get_input","pending_fn","then_fn","catch_fn","hydrating","hydrate_next","anchor","runes","is_runes","active_component_context","component_context","input","UNINITIALIZED","pending_effect","then_effect","catch_effect","input_source","source","mutable_source","error_source","resolved","update","state","restore","set_active_effect","effect","set_active_reaction","set_component_context","resume_effect","branch","pause_effect","flushSync","block","mismatch","is_promise","HYDRATION_START_ELSE","remove_nodes","set_hydrate_node","set_hydrating","promise","value","internal_set","error","queue_micro_task","hydrate_node","CloseIcon","onCloseClick","$.prop","$$props","isHeaderShown","_a","$$args","$$render","consequent","CredenzaLogo","additionalLogo","$.untrack","$$sanitized_props","shouldBlurBackdrop","footerAdditionalLogo","SuiPartnerLogo","handleCloseClick","close","get","fn","dispatch","PassportEvents","forcedPage","pageStore","pageOptsStore","$.set","$cloakStore","expression","$.derived_safe_equal","$.await","node_1","module","$.component","node_2","$.get","$$anchor","$$component","node_3","node_4","node_5","node_6","node_7","node_8","node_9","node_10","node_11","node_12","node_13","node_14","node_15","node_16","node_17","node_18","node_19","node_20","node_21","node_22","node_23","node_24","node_25","node_26","node_27","node_28","node_29","node_30","Pages","$pageStore","$forcedPage"],"mappings":";;AAuBA,MAAMA,KAAU,GACVC,KAAO,GACPC,KAAQ;AAWP,SAASC,EAAYC,GAAMC,GAAWC,GAAYC,GAASC,GAAU;AAC3E,EAAIC,MACHC,GAAc;AAGf,MAAIC,IAASP,GACTQ,IAAQC,GAAU,GAClBC,IAA2BC,IAM3BC,IAAQC,IAGRC,GAGAC,GAGAC,GAEAC,IAAeT,IAChBU;AAAA;AAAA,IAAyB;AAAA,EAAS,IAClCC;AAAA;AAAA,IAAiC;AAAA,IAAY;AAAA,IAAO;AAAA,EAAK,GACxDC,IAAeZ,IAAQU,GAAO,MAAS,IAAIC,GAAe,QAAW,IAAO,EAAK,GACjFE,IAAW;AAMf,WAASC,EAAOC,GAAOC,GAAS;AAC/B,IAAAH,IAAW,IAEPG,MACHC,GAAkBC,CAAM,GACxBC,GAAoBD,CAAM,GAC1BE,GAAsBlB,CAAwB;AAI/C,QAAI;AAMH,MAAIa,MAAU1B,MAAQM,MACjBY,IAAac,GAAcd,CAAW,IACrCA,IAAce,GAAO,MAAM3B,EAAQI,GAAQU,CAAY,CAAC,IAQ1DM,MAAU3B,MAAWkB,KACxBiB,GAAajB,GAAgB,MAAOA,IAAiB,IAAK,GAGvDS,MAAU1B,MAAQkB,KACrBgB,GAAahB,GAAa,MAAOA,IAAc,IAAK,GAGjDQ,MAAUzB,MAASkB,KACtBe,GAAaf,GAAc,MAAOA,I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C,SAAO,CAAAI,IAAAC,OAAA;;;;;;;;uEApFjC6B,CAAK,WA8EJC,QAAeD,EAAM,MAAM;;;;;;;;;mEA9E5BA,CAAK,WA0EJC,QAAeD,EAAM,UAAU;;;;;;;;;+DA1EhCA,CAAK,WAsEJC,QAAeD,EAAM,KAAK;;;;;;;;;2DAtE3BA,CAAK,WAkEJC,QAAeD,EAAM,OAAO;;;;;;;;;uDAlE7BA,CAAK,WA8DJC,QAAeD,EAAM,cAAc;;;;;;;;;mDA9DpCA,CAAK,WA0DJC,QAAeD,EAAM,OAAO;;;;;;;;;+CA1D7BA,CAAK,WAsDJC,QAAeD,EAAM,WAAW;;;;;;;;;2CAtDjCA,CAAK,WAkDJC,QAAeD,EAAM,MAAM;;;;;;;;;uCAlD5BA,CAAK,WA8CJC,QAAeD,EAAM,IAAI;;;;;;;;;mCA9C1BA,CAAK,WA0CJC,QAAeD,EAAM,WAAW;;;;;;;;;+BA1CjCA,CAAK,gBAsCJE,QAAgBF,EAAM,kBAAkBC,EAAU,MAAKD,EAAM,cAAc;;;;;;;;;2BAtC5EA,CAAK,gBAkCJE,QAAgBF,EAAM,mBAAmBC,EAAU,MAAKD,EAAM,eAAe;;;;;;;;;uBAlC9EA,CAAK,WA8BJC,QAAeD,EAAM,MAAM;;;;;;;iBA9B5BA,CAAK,gBA0BTE,QAAgBF,EAAM,SAASC,EAAU,MAAKD,EAAM,KAAK;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { c as g, p as o, f as _, i as v, k as x, e as k, b as u, d as C, u as h, t as y, r as L } from "./legacy-CYnP3rAB.js";
|
|
2
|
+
import { v as B, B as D, C as j, D as p, I as q, z, u as l } from "./index-qsKp2OJc.js";
|
|
3
|
+
import { p as I } from "./event-modifiers-DpFXHa6q.js";
|
|
4
|
+
import { L as P } from "./Loader-Cu6YpHI4.js";
|
|
5
|
+
var S = _("<button><!></button>");
|
|
6
|
+
function A(d, a) {
|
|
7
|
+
if (new.target) return g({ component: A, ...d });
|
|
8
|
+
B(a, !1);
|
|
9
|
+
let i = o(a, "onClick", 12), c = o(a, "text", 12), n = o(a, "disabled", 12, !1), r = o(a, "isLoading", 12, !1);
|
|
10
|
+
var s = S();
|
|
11
|
+
let f;
|
|
12
|
+
var w = D(s);
|
|
13
|
+
{
|
|
14
|
+
var m = (t) => {
|
|
15
|
+
P(t, {});
|
|
16
|
+
}, b = (t) => {
|
|
17
|
+
var e = y();
|
|
18
|
+
p(() => L(e, c())), u(t, e);
|
|
19
|
+
};
|
|
20
|
+
v(w, (t) => {
|
|
21
|
+
r() ? t(m) : t(b, !1);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return j(s), p(
|
|
25
|
+
(t) => f = x(s, 1, `crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-bg-black crtw-text-white crtw-h-[50px] crtw-cursor-pointer
|
|
26
|
+
crtw-border-0 crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium`, null, f, t),
|
|
27
|
+
[
|
|
28
|
+
() => ({
|
|
29
|
+
"crtw-bg-gray-300": n() || r(),
|
|
30
|
+
"crtw-pointer-events-none": n() || r()
|
|
31
|
+
})
|
|
32
|
+
],
|
|
33
|
+
q
|
|
34
|
+
), k("click", s, I(function(...t) {
|
|
35
|
+
var e;
|
|
36
|
+
(e = i()) == null || e.apply(this, t);
|
|
37
|
+
})), u(d, s), z({
|
|
38
|
+
get onClick() {
|
|
39
|
+
return i();
|
|
40
|
+
},
|
|
41
|
+
set onClick(t) {
|
|
42
|
+
i(t), l();
|
|
43
|
+
},
|
|
44
|
+
get text() {
|
|
45
|
+
return c();
|
|
46
|
+
},
|
|
47
|
+
set text(t) {
|
|
48
|
+
c(t), l();
|
|
49
|
+
},
|
|
50
|
+
get disabled() {
|
|
51
|
+
return n();
|
|
52
|
+
},
|
|
53
|
+
set disabled(t) {
|
|
54
|
+
n(t), l();
|
|
55
|
+
},
|
|
56
|
+
get isLoading() {
|
|
57
|
+
return r();
|
|
58
|
+
},
|
|
59
|
+
set isLoading(t) {
|
|
60
|
+
r(t), l();
|
|
61
|
+
},
|
|
62
|
+
$set: h,
|
|
63
|
+
$on: (t, e) => C(a, t, e)
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
A as B
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=Button-FKUK-FB7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button-
|
|
1
|
+
{"version":3,"file":"Button-FKUK-FB7.js","sources":["../../ui/main/shared/inputs/button/Button.svelte"],"sourcesContent":["<script lang=\"ts\">\n import Loader from \"../../Loader.svelte\";\n\n export let onClick: (...args: unknown[]) => unknown;\n export let text: string;\n export let disabled: boolean = false;\n export let isLoading: boolean = false;\n</script>\n\n<button\n class:crtw-bg-gray-300={disabled || isLoading}\n class:crtw-pointer-events-none={disabled || isLoading}\n class=\"crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-bg-black crtw-text-white crtw-h-[50px] crtw-cursor-pointer\n crtw-border-0 crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium\"\n on:click|preventDefault={onClick}\n>\n {#if isLoading}\n <Loader />\n {:else}\n {text}\n {/if}\n</button>\n"],"names":["onClick","$.prop","$$props","text","disabled","isLoading","$$render","consequent","alternate","_a","$$args"],"mappings":";;;;;;;;MAGaA,IAAwCC,EAAAC,GAAA,WAAA,EAAA,GACxCC,IAAYF,EAAAC,GAAA,QAAA,EAAA,GACZE,yBAAoB,EAAK,GACzBC,0BAAqB,EAAK;;;;;;;;;mBAalCF,EAAI,CAAA,CAAA;;;MAHFE,EAAS,IAAAC,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;;;;;;QANU,oBAAAJ,OAAYC,EAAS;AAAA,QACb,4BAAAD,EAAQ,KAAIC,EAAS;AAAA;;;;;AAG5B,KAAAI,IAAAT,QAAA,QAAAS,EAAO,MAAA,MAAAC;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { c as r, p as s, d as c, u as i } from "./legacy-
|
|
2
|
-
import { v as l,
|
|
3
|
-
import { B as
|
|
4
|
-
const
|
|
1
|
+
import { c as r, p as s, d as c, u as i } from "./legacy-CYnP3rAB.js";
|
|
2
|
+
import { v as l, z as m, u } from "./index-qsKp2OJc.js";
|
|
3
|
+
import { B as g } from "./ButtonLink-BA_d9t6a.js";
|
|
4
|
+
const p = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6.407'%20height='10.251'%20viewBox='612.753%20464%206.407%2010.251'%3e%3cpath%20d='m617.951%20464%201.209%201.208-3.99%203.92%203.99%203.915-1.209%201.208-5.198-5.124L617.95%20464Z'%20fill-rule='evenodd'%20data-name='iconmonstr-arrow-64'/%3e%3c/svg%3e";
|
|
5
5
|
function d(o, t) {
|
|
6
6
|
if (new.target) return r({ component: d, ...o });
|
|
7
7
|
l(t, !1);
|
|
8
8
|
let e = s(t, "onClick", 12);
|
|
9
|
-
return
|
|
10
|
-
icon
|
|
9
|
+
return g(o, {
|
|
10
|
+
get icon() {
|
|
11
|
+
return p;
|
|
12
|
+
},
|
|
11
13
|
get onClick() {
|
|
12
14
|
return e();
|
|
13
15
|
},
|
|
@@ -17,7 +19,7 @@ function d(o, t) {
|
|
|
17
19
|
return e();
|
|
18
20
|
},
|
|
19
21
|
set onClick(n) {
|
|
20
|
-
e(n),
|
|
22
|
+
e(n), u();
|
|
21
23
|
},
|
|
22
24
|
$set: i,
|
|
23
25
|
$on: (n, a) => c(t, n, a)
|
|
@@ -26,4 +28,4 @@ function d(o, t) {
|
|
|
26
28
|
export {
|
|
27
29
|
d as B
|
|
28
30
|
};
|
|
29
|
-
//# sourceMappingURL=ButtonBack-
|
|
31
|
+
//# sourceMappingURL=ButtonBack-DVLBbyYt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBack-
|
|
1
|
+
{"version":3,"file":"ButtonBack-DVLBbyYt.js","sources":["../../ui/images/chevron-left.svg","../../ui/main/shared/inputs/button-back/ButtonBack.svelte"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6.407'%20height='10.251'%20viewBox='612.753%20464%206.407%2010.251'%3e%3cpath%20d='m617.951%20464%201.209%201.208-3.99%203.92%203.99%203.915-1.209%201.208-5.198-5.124L617.95%20464Z'%20fill-rule='evenodd'%20data-name='iconmonstr-arrow-64'/%3e%3c/svg%3e\"","<script lang=\"ts\">\n import ButtonLink from \"../button-link/ButtonLink.svelte\";\n import ArrowIcon from \"../../../../images/chevron-left.svg\";\n\n export let onClick: (...args: unknown[]) => unknown;\n</script>\n\n<ButtonLink icon={ArrowIcon} {onClick} text=\"Back\" />\n"],"names":["ArrowIcon","onClick","$.prop","$$props"],"mappings":";;;AAAA,MAAeA,IAAA;;;;MCIFC,IAAwCC,EAAAC,GAAA,WAAA,EAAA;;;aAGnCH;AAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { c as d, p as a, h as g, f as m, i as y, j as v, r as k, e as h, b as p, d as C, u as j, s as B } from "./legacy-CYnP3rAB.js";
|
|
2
|
+
import { v as S, B as z, E as D, C as E, D as w, z as L, u as c } from "./index-qsKp2OJc.js";
|
|
3
|
+
var O = m('<img alt="" class="crtw-mr-2 crtw-h-3"/>'), V = m(`<button class="crtw-bg-white crtw-border-0 crtw-my-0.5 crtw-px-0 crtw-text-black crtw-text-left crtw-flex crtw-items-center crtw-cursor-pointer crtw-font-['poppins'] crtw-text-[13px] crtw-underline"><!> </button>`);
|
|
4
|
+
function q(u, s) {
|
|
5
|
+
if (new.target) return d({ component: q, ...u });
|
|
6
|
+
S(s, !1);
|
|
7
|
+
let i = a(s, "onClick", 12), n = a(s, "icon", 12, void 0), o = a(s, "text", 12), l = a(s, "styles", 28, () => ({}));
|
|
8
|
+
const x = Object.entries(l()).map(([t, e]) => `${t}:${e}`).join(";");
|
|
9
|
+
g();
|
|
10
|
+
var r = V(), f = z(r);
|
|
11
|
+
{
|
|
12
|
+
var _ = (t) => {
|
|
13
|
+
var e = O();
|
|
14
|
+
w(() => B(e, "src", n())), p(t, e);
|
|
15
|
+
};
|
|
16
|
+
y(f, (t) => {
|
|
17
|
+
n() && t(_);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
var b = D(f);
|
|
21
|
+
return E(r), w(() => {
|
|
22
|
+
v(r, x), k(b, ` ${o() ?? ""}`);
|
|
23
|
+
}), h("click", r, function(...t) {
|
|
24
|
+
var e;
|
|
25
|
+
(e = i()) == null || e.apply(this, t);
|
|
26
|
+
}), p(u, r), L({
|
|
27
|
+
get onClick() {
|
|
28
|
+
return i();
|
|
29
|
+
},
|
|
30
|
+
set onClick(t) {
|
|
31
|
+
i(t), c();
|
|
32
|
+
},
|
|
33
|
+
get icon() {
|
|
34
|
+
return n();
|
|
35
|
+
},
|
|
36
|
+
set icon(t) {
|
|
37
|
+
n(t), c();
|
|
38
|
+
},
|
|
39
|
+
get text() {
|
|
40
|
+
return o();
|
|
41
|
+
},
|
|
42
|
+
set text(t) {
|
|
43
|
+
o(t), c();
|
|
44
|
+
},
|
|
45
|
+
get styles() {
|
|
46
|
+
return l();
|
|
47
|
+
},
|
|
48
|
+
set styles(t) {
|
|
49
|
+
l(t), c();
|
|
50
|
+
},
|
|
51
|
+
$set: j,
|
|
52
|
+
$on: (t, e) => C(s, t, e)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
q as B
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=ButtonLink-BA_d9t6a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink-
|
|
1
|
+
{"version":3,"file":"ButtonLink-BA_d9t6a.js","sources":["../../ui/main/shared/inputs/button-link/ButtonLink.svelte"],"sourcesContent":["<script lang=\"ts\">\n export let onClick: (...args: unknown[]) => unknown\n export let icon: string | undefined = undefined\n export let text: string\n\n export let styles: { [key: string]: string } = {}\n\n const cssVarStyles = Object.entries(styles)\n .map(([key, value]) => `${key}:${value}`)\n .join(';')\n</script>\n\n<button\n class=\"crtw-bg-white crtw-border-0 crtw-my-0.5 crtw-px-0 crtw-text-black crtw-text-left crtw-flex crtw-items-center crtw-cursor-pointer crtw-font-['poppins'] crtw-text-[13px] crtw-underline\"\n on:click={onClick}\n style={cssVarStyles}\n>\n {#if icon}\n <img src={icon} alt=\"\" class=\"crtw-mr-2 crtw-h-3\" />\n {/if}\n {text}\n</button>\n"],"names":["onClick","$.prop","$$props","icon","text","styles","cssVarStyles","key","value","$$render","consequent","_a","$$args"],"mappings":";;;;;;MACaA,IAAwCC,EAAAC,GAAA,WAAA,EAAA,GACxCC,qBAA2B,MAAS,GACpCC,IAAYH,EAAAC,GAAA,QAAA,EAAA,GAEZG,IAAMJ,EAAAC,GAAA,UAAA,IAAA,OAAA,CAAA,EAAA;AAEX,QAAAI,IAAe,OAAO,QAAQD,EAAM,GACvC,IAAG,CAAA,CAAGE,GAAKC,CAAK,SAASD,CAAG,IAAIC,CAAK,EACrC,EAAA,KAAK,GAAG;;;;;;0BASCL,EAAI,CAAA,CAAA;;;MADXA,EAAI,KAAAM,EAAAC,CAAA;AAAA;;;;SAFFJ,CAAY,YAKlBF,EAAI,KAAA,EAAA,EAAA;AAAA;;AANK,KAAAO,IAAAX,QAAA,QAAAW,EAAO,MAAA,MAAAC;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { c as D, m as ae, p as j, f as B, v as se, s as ie, b as y, d as G, u as M, h as Z, i as K, t as V, r as W, n as le, o as ce } from "./legacy-CYnP3rAB.js";
|
|
2
|
+
import { v as H, B as ee, C as te, D as F, z as J, u as N, y as A, E as k, G as L, K as c, I as oe, m as R, F as X, J as I, L as Q, N as ue, aW as de, S as U, aX as fe, R as ve } from "./index-qsKp2OJc.js";
|
|
3
|
+
import { C as pe } from "./App-D8Bsln9W.js";
|
|
4
|
+
import { C as me } from "./ContentHeader-DtZj1Hgo.js";
|
|
5
|
+
import { B as _e } from "./Button-FKUK-FB7.js";
|
|
6
|
+
import { B as he } from "./ButtonLink-BA_d9t6a.js";
|
|
7
|
+
import { L as Y } from "./Label-4blmucYF.js";
|
|
8
|
+
import { b as ge } from "./input-B_qkEDlO.js";
|
|
9
|
+
var we = B('<div class="crtw-flex crtw-justify-center"><input type="number" min="0" max="99999" class="crtw-w-full crtw-mb-1.5 phone crtw-border crtw-rounded crtw-px-2 crtw-outline-none crtw-mt-2.5 crtw-h-[50px] crtw-text-xs svelte-1o26kfq" name="code"/></div>');
|
|
10
|
+
const Ce = {
|
|
11
|
+
hash: "svelte-1o26kfq",
|
|
12
|
+
code: `input.svelte-1o26kfq::-webkit-outer-spin-button,
|
|
13
|
+
input.svelte-1o26kfq::-webkit-inner-spin-button {-webkit-appearance:none;margin:0;}input[type="number"].svelte-1o26kfq {appearance:textfield;-moz-appearance:textfield;}`
|
|
14
|
+
};
|
|
15
|
+
function z(d, r) {
|
|
16
|
+
if (new.target) return D({ component: z, ...d });
|
|
17
|
+
H(r, !1), ae(d, Ce);
|
|
18
|
+
let f = j(r, "value", 12), w = j(r, "placeholder", 12, "Code");
|
|
19
|
+
var t = we(), e = ee(t);
|
|
20
|
+
return se(e), te(t), F(() => ie(e, "placeholder", w())), ge(e, f), y(d, t), J({
|
|
21
|
+
get value() {
|
|
22
|
+
return f();
|
|
23
|
+
},
|
|
24
|
+
set value(v) {
|
|
25
|
+
f(v), N();
|
|
26
|
+
},
|
|
27
|
+
get placeholder() {
|
|
28
|
+
return w();
|
|
29
|
+
},
|
|
30
|
+
set placeholder(v) {
|
|
31
|
+
w(v), N();
|
|
32
|
+
},
|
|
33
|
+
$set: M,
|
|
34
|
+
$on: (v, p) => G(r, v, p)
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
var be = B("<!> <!>", 1), ye = B("<!> <!>", 1), xe = B("<!> <!> <!>", 1), ke = B('<!> <!> <div class="crtw-mt-4"><!></div>', 1);
|
|
38
|
+
function re(d, r) {
|
|
39
|
+
if (new.target) return D({ component: re, ...d });
|
|
40
|
+
H(r, !1);
|
|
41
|
+
let f = j(r, "options", 12), { onBackClick: w, onSubmit: t, pending: e, isLoading: v } = f(), p = R(), h = R();
|
|
42
|
+
Z();
|
|
43
|
+
var x = ke(), O = A(x);
|
|
44
|
+
me(O, {
|
|
45
|
+
text: "Before we start please verify your personal data"
|
|
46
|
+
});
|
|
47
|
+
var P = k(O, 2);
|
|
48
|
+
pe(P, {
|
|
49
|
+
children: (n, m) => {
|
|
50
|
+
var a = xe(), g = A(a);
|
|
51
|
+
{
|
|
52
|
+
var s = (o) => {
|
|
53
|
+
var _ = be(), S = A(_);
|
|
54
|
+
Y(S, {
|
|
55
|
+
for: "code",
|
|
56
|
+
children: (b, ne) => {
|
|
57
|
+
X();
|
|
58
|
+
var E = V();
|
|
59
|
+
F(() => W(E, `Enter your code sent to ${L(() => e == null ? void 0 : e.phone) ?? ""}`)), y(b, E);
|
|
60
|
+
},
|
|
61
|
+
$$slots: { default: !0 }
|
|
62
|
+
});
|
|
63
|
+
var T = k(S, 2);
|
|
64
|
+
z(T, {
|
|
65
|
+
placeholder: "SMS Code",
|
|
66
|
+
get value() {
|
|
67
|
+
return c(p);
|
|
68
|
+
},
|
|
69
|
+
set value(b) {
|
|
70
|
+
I(p, b);
|
|
71
|
+
},
|
|
72
|
+
$$legacy: !0
|
|
73
|
+
}), y(o, _);
|
|
74
|
+
};
|
|
75
|
+
K(g, (o) => {
|
|
76
|
+
L(() => e == null ? void 0 : e.phone) && o(s);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
var i = k(g, 2);
|
|
80
|
+
{
|
|
81
|
+
var l = (o) => {
|
|
82
|
+
var _ = ye(), S = A(_);
|
|
83
|
+
Y(S, {
|
|
84
|
+
for: "code",
|
|
85
|
+
children: (b, ne) => {
|
|
86
|
+
X();
|
|
87
|
+
var E = V();
|
|
88
|
+
F(() => W(E, `Enter your code sent to ${L(() => e == null ? void 0 : e.email) ?? ""}`)), y(b, E);
|
|
89
|
+
},
|
|
90
|
+
$$slots: { default: !0 }
|
|
91
|
+
});
|
|
92
|
+
var T = k(S, 2);
|
|
93
|
+
z(T, {
|
|
94
|
+
placeholder: "Email Code",
|
|
95
|
+
get value() {
|
|
96
|
+
return c(h);
|
|
97
|
+
},
|
|
98
|
+
set value(b) {
|
|
99
|
+
I(h, b);
|
|
100
|
+
},
|
|
101
|
+
$$legacy: !0
|
|
102
|
+
}), y(o, _);
|
|
103
|
+
};
|
|
104
|
+
K(i, (o) => {
|
|
105
|
+
L(() => e == null ? void 0 : e.email) && o(l);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
var C = k(i, 2);
|
|
109
|
+
const $ = oe(() => (c(p), c(h), L(() => v || !!(e != null && e.phone && String(c(p)).length !== 6) || !!(e != null && e.email && String(c(h)).length !== 6))));
|
|
110
|
+
_e(C, {
|
|
111
|
+
text: "Verify",
|
|
112
|
+
onClick: () => t({
|
|
113
|
+
confirmPhoneCode: c(p),
|
|
114
|
+
confirmEmailCode: c(h)
|
|
115
|
+
}),
|
|
116
|
+
get disabled() {
|
|
117
|
+
return c($);
|
|
118
|
+
}
|
|
119
|
+
}), y(n, a);
|
|
120
|
+
},
|
|
121
|
+
$$slots: { default: !0 }
|
|
122
|
+
});
|
|
123
|
+
var q = k(P, 2), u = ee(q);
|
|
124
|
+
return he(u, {
|
|
125
|
+
text: "Update your account details",
|
|
126
|
+
get onClick() {
|
|
127
|
+
return w;
|
|
128
|
+
}
|
|
129
|
+
}), te(q), y(d, x), J({
|
|
130
|
+
get options() {
|
|
131
|
+
return f();
|
|
132
|
+
},
|
|
133
|
+
set options(n) {
|
|
134
|
+
f(n), N();
|
|
135
|
+
},
|
|
136
|
+
$set: M,
|
|
137
|
+
$on: (n, m) => G(r, n, m)
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function $e(d, r) {
|
|
141
|
+
if (new.target) return D({ component: $e, ...d });
|
|
142
|
+
H(r, !1);
|
|
143
|
+
const [f, w] = le(), t = () => ce(fe, "$userStore", f);
|
|
144
|
+
var e = this && this.__awaiter || function(u, n, m, a) {
|
|
145
|
+
function g(s) {
|
|
146
|
+
return s instanceof m ? s : new m(function(i) {
|
|
147
|
+
i(s);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return new (m || (m = Promise))(function(s, i) {
|
|
151
|
+
function l(o) {
|
|
152
|
+
try {
|
|
153
|
+
$(a.next(o));
|
|
154
|
+
} catch (_) {
|
|
155
|
+
i(_);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function C(o) {
|
|
159
|
+
try {
|
|
160
|
+
$(a.throw(o));
|
|
161
|
+
} catch (_) {
|
|
162
|
+
i(_);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function $(o) {
|
|
166
|
+
o.done ? s(o.value) : g(o.value).then(l, C);
|
|
167
|
+
}
|
|
168
|
+
$((a = a.apply(u, n || [])).next());
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
const { confirmAccount: v, close: p, toastAlert: h } = Q(ue);
|
|
172
|
+
let x = R(!1);
|
|
173
|
+
const O = (u) => e(void 0, [u], void 0, function* ({ confirmEmailCode: n, confirmPhoneCode: m }) {
|
|
174
|
+
var a, g, s, i;
|
|
175
|
+
I(x, !0);
|
|
176
|
+
try {
|
|
177
|
+
const l = yield v(Object.assign(Object.assign({}, !((a = t() === null || t() === void 0 ? void 0 : t().pending) === null || a === void 0) && a.email ? { emailCode: String(n) } : {}), !((g = t() === null || t() === void 0 ? void 0 : t().pending) === null || g === void 0) && g.phone ? { phoneCode: String(m) } : {}));
|
|
178
|
+
if (!((s = t() === null || t() === void 0 ? void 0 : t().pending) === null || s === void 0) && s.phone && !l.phone || !((i = t() === null || t() === void 0 ? void 0 : t().pending) === null || i === void 0) && i.email && !l.email) throw new Error("The code is invalid.");
|
|
179
|
+
const C = Q(ve);
|
|
180
|
+
(!C || C === U.CONFIRM_ACCOUNT || C === U.LOGOUT) && p(), h("Account has been confirmed successfully.", "success");
|
|
181
|
+
} catch (l) {
|
|
182
|
+
h((l == null ? void 0 : l.message) || l, "failure");
|
|
183
|
+
}
|
|
184
|
+
I(x, !1);
|
|
185
|
+
});
|
|
186
|
+
Z();
|
|
187
|
+
const P = oe(() => {
|
|
188
|
+
var u;
|
|
189
|
+
return {
|
|
190
|
+
isLoading: c(x),
|
|
191
|
+
onBackClick: () => de.set(U.UPDATE_PROFILE),
|
|
192
|
+
onSubmit: O,
|
|
193
|
+
pending: (u = t()) == null ? void 0 : u.pending
|
|
194
|
+
};
|
|
195
|
+
});
|
|
196
|
+
re(d, {
|
|
197
|
+
get options() {
|
|
198
|
+
return c(P);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
var q = J({
|
|
202
|
+
$set: M,
|
|
203
|
+
$on: (u, n) => G(r, u, n)
|
|
204
|
+
});
|
|
205
|
+
return w(), q;
|
|
206
|
+
}
|
|
207
|
+
export {
|
|
208
|
+
$e as default
|
|
209
|
+
};
|
|
210
|
+
//# sourceMappingURL=ConfirmAccount-XP4R3yKl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmAccount-
|
|
1
|
+
{"version":3,"file":"ConfirmAccount-XP4R3yKl.js","sources":["../../ui/main/confirm-account/CodeInput.svelte","../../ui/main/confirm-account/Confirm.svelte","../src/app/pages/confirm-account/ConfirmAccount.svelte"],"sourcesContent":["<script lang=\"ts\">\n export let value: number;\n export let placeholder: string = \"Code\";\n</script>\n\n<div class=\"crtw-flex crtw-justify-center\">\n <input\n type=\"number\"\n min=\"0\"\n max=\"99999\"\n class=\"crtw-w-full crtw-mb-1.5 phone crtw-border crtw-rounded crtw-px-2 crtw-outline-none crtw-mt-2.5 crtw-h-[50px] crtw-text-xs\"\n {placeholder}\n bind:value\n name=\"code\"\n />\n</div>\n\n<style>\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n input[type=\"number\"] {\n appearance: textfield;\n -moz-appearance: textfield;\n }\n</style>\n","<script lang=\"ts\">\n import Container from \"../shared/Container.svelte\";\n import ContentHeader from \"../shared/ContentHeader.svelte\";\n import Button from \"../shared/inputs/button/Button.svelte\";\n import ButtonLink from \"../shared/inputs/button-link/ButtonLink.svelte\";\n import Label from \"../shared/inputs/input/Label.svelte\";\n import CodeInput from \"./CodeInput.svelte\";\n\n export let options: {\n isLoading: boolean;\n onBackClick: () => void;\n onSubmit: ({\n confirmPhoneCode,\n confirmEmailCode,\n }: {\n confirmPhoneCode: number;\n confirmEmailCode: number;\n }) => void;\n pending: {\n phone: string;\n email: string;\n };\n };\n\n let { onBackClick, onSubmit, pending, isLoading } = options;\n\n let confirmPhoneCode: number;\n let confirmEmailCode: number;\n</script>\n\n<ContentHeader text=\"Before we start please verify your personal data\" />\n\n<Container>\n {#if pending?.phone}\n <Label for=\"code\">Enter your code sent to {pending?.phone}</Label>\n <CodeInput bind:value={confirmPhoneCode} placeholder=\"SMS Code\" />\n {/if}\n {#if pending?.email}\n <Label for=\"code\">Enter your code sent to {pending?.email}</Label>\n <CodeInput bind:value={confirmEmailCode} placeholder=\"Email Code\" />\n {/if}\n <Button\n text=\"Verify\"\n onClick={() => onSubmit({ confirmPhoneCode, confirmEmailCode })}\n disabled={isLoading ||\n !!(pending?.phone && String(confirmPhoneCode).length !== 6) ||\n !!(pending?.email && String(confirmEmailCode).length !== 6)}\n />\n</Container>\n\n<div class=\"crtw-mt-4\">\n <ButtonLink text=\"Update your account details\" onClick={onBackClick} />\n</div>\n","<script lang=\"ts\">\n import { get } from 'svelte/store'\n import { fn, userStore, pageStore, forcedPageStore } from '@packages/stores'\n import { Pages } from '@packages/utils/enums'\n import { ConfirmAccount } from '@packages/ui'\n\n const { confirmAccount, close, toastAlert } = get(fn)\n\n let isLoading = false\n\n const confirm = async ({\n confirmEmailCode,\n confirmPhoneCode,\n }: {\n confirmEmailCode: number\n confirmPhoneCode: number\n }) => {\n isLoading = true\n try {\n const res = await confirmAccount({\n ...($userStore?.pending?.email ? { emailCode: String(confirmEmailCode) } : {}),\n ...($userStore?.pending?.phone ? { phoneCode: String(confirmPhoneCode) } : {}),\n })\n\n if (($userStore?.pending?.phone && !res.phone) || ($userStore?.pending?.email && !res.email))\n throw new Error('The code is invalid.')\n\n const page = get(pageStore)\n if (!page || page === Pages.CONFIRM_ACCOUNT || page === Pages.LOGOUT) close()\n toastAlert('Account has been confirmed successfully.', 'success')\n } catch (err) {\n toastAlert(err?.message || err, 'failure')\n }\n isLoading = false\n }\n</script>\n\n<ConfirmAccount\n options={{\n isLoading,\n onBackClick: () => forcedPageStore.set(Pages.UPDATE_PROFILE),\n onSubmit: confirm,\n pending: $userStore?.pending,\n }}\n/>\n"],"names":["value","$.prop","$$props","placeholder","options","onBackClick","onSubmit","pending","isLoading","confirmPhoneCode","$.mutable_source","confirmEmailCode","$.template_effect","$.set_text","text","$.untrack","$$value","$$render","consequent","text_1","consequent_1","$.get","__awaiter","thisArg","_arguments","P","generator","confirmAccount","close","toastAlert","get","fn","confirm","_a","$.set","res","_b","$userStore","_c","_d","_e","page","pageStore","Pages","err","forcedPageStore"],"mappings":";;;;;;;;;;;;;;;;;MACaA,IAAaC,EAAAC,GAAA,SAAA,EAAA,GACbC,4BAAsB,MAAM;;;;;;;;;;;;;;;;;;;;;;;MCM5BC,IAcVH,EAAAC,GAAA,WAAA,EAAA,GAEK,EAAA,aAAAG,GAAa,UAAAC,GAAU,SAAAC,GAAS,WAAAC,EAAS,IAAKJ,EAAO,GAEvDK,IAAwBC,EAAA,GACxBC,IAAwBD,EAAA;;;;;;;;;;;;;;;;;;AAOiBE,cAAAA,EAAA,MAAAC,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as m } from "./index-qsKp2OJc.js";
|
|
3
|
+
var E = g(`<div class="crtw-flex crtw-flex-col crtw-items-center crtw-mx-auto crtw-text-center crtw-text-textMain
|
|
4
|
+
crtw-max-w-xs crtw-relative sm:crtw-max-w-[360px]"><p class="crtw-font-bold crtw-text-[21px] crtw-uppercase sm:crtw-text-2xl sm:crtw-mb-px"> </p> <p class="crtw-text-sm sm:crtw-text-base"> </p> <!></div>`);
|
|
5
|
+
function H(p, t) {
|
|
6
|
+
if (new.target) return _({ component: H, ...p });
|
|
7
|
+
z(t, !1);
|
|
8
|
+
let r = l(t, "text", 12, void 0), s = l(t, "description", 12, void 0);
|
|
9
|
+
var a = E(), c = x(a), w = x(c, !0);
|
|
10
|
+
i(c);
|
|
11
|
+
var n = d(c, 2), u = x(n, !0);
|
|
12
|
+
i(n);
|
|
13
|
+
var f = d(n, 2);
|
|
14
|
+
return b(f, t, "default", {}), i(a), B(() => {
|
|
15
|
+
o(w, r() ?? ""), o(u, s() ?? "");
|
|
16
|
+
}), C(p, a), D({
|
|
17
|
+
get text() {
|
|
18
|
+
return r();
|
|
19
|
+
},
|
|
20
|
+
set text(e) {
|
|
21
|
+
r(e), m();
|
|
22
|
+
},
|
|
23
|
+
get description() {
|
|
24
|
+
return s();
|
|
25
|
+
},
|
|
26
|
+
set description(e) {
|
|
27
|
+
s(e), m();
|
|
28
|
+
},
|
|
29
|
+
$set: y,
|
|
30
|
+
$on: (e, v) => h(t, e, v)
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
H as C
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=ContentHeader-DtZj1Hgo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentHeader-
|
|
1
|
+
{"version":3,"file":"ContentHeader-DtZj1Hgo.js","sources":["../../ui/main/shared/ContentHeader.svelte"],"sourcesContent":["<script lang=\"ts\">\n export let text: string | undefined = undefined\n export let description: string | undefined = undefined\n</script>\n\n<div\n class=\"crtw-flex crtw-flex-col crtw-items-center crtw-mx-auto crtw-text-center crtw-text-textMain\n crtw-max-w-xs crtw-relative sm:crtw-max-w-[360px]\"\n>\n <p class=\"crtw-font-bold crtw-text-[21px] crtw-uppercase sm:crtw-text-2xl sm:crtw-mb-px\">\n {text ?? ``}\n </p>\n <p class=\"crtw-text-sm sm:crtw-text-base\">\n {description ?? ``}\n </p>\n\n <slot />\n</div>\n"],"names":["text","description"],"mappings":";;;;;;;AACa,MAAAA,qBAA2B,MAAS,GACpCC,4BAAkC,MAAS;;;;;;;SAQnDD,EAAI,KAAA,EAAA,QAGJC,EAAW,KAAA,EAAA;AAAA;;;;;;;;;;;;;;;;;"}
|