@cirkay-eng/cirkay-components 0.9.22-beta.10 → 0.9.22-beta.12
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/base/magic/MagicAPI.js +2 -2
- package/dist/base/n3xus/N3xusAPI.d.ts +1 -1
- package/dist/base/n3xus/N3xusAPI.d.ts.map +1 -1
- package/dist/base/n3xus/N3xusAPI.js +13 -14
- package/dist/base/n3xus/N3xusAPI.js.map +1 -1
- package/dist/components/connected/connected.js +1 -1
- package/dist/components/connected/index.js +0 -2
- package/dist/components/connected/index.js.map +1 -1
- package/dist/components/error-screen/error-screen.js +1 -1
- package/dist/components/error-screen/index.js +0 -2
- package/dist/components/error-screen/index.js.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.d.ts +4 -21
- package/dist/components/fan-pass-claim/fan-pass-claim.d.ts.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.js +43 -170
- package/dist/components/fan-pass-claim/fan-pass-claim.js.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.styles.d.ts.map +1 -1
- package/dist/components/fan-pass-claim/fan-pass-claim.styles.js +7 -45
- package/dist/components/fan-pass-claim/fan-pass-claim.styles.js.map +1 -1
- package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts +4 -0
- package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts.map +1 -1
- package/dist/components/fan-pass-unlock/fan-pass-unlock.js +31 -2
- package/dist/components/fan-pass-unlock/fan-pass-unlock.js.map +1 -1
- package/dist/components/frame/frame.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/login/login.js +1 -1
- package/dist/components/login/login.styles.d.ts.map +1 -1
- package/dist/components/login/login.styles.js +6 -0
- package/dist/components/login/login.styles.js.map +1 -1
- package/dist/components/mobile-pass/mobile-pass.js +1 -1
- package/dist/controllers/LoginController.js +7 -7
- package/dist/controllers/N3xusAPIController.d.ts +1 -1
- package/dist/controllers/N3xusAPIController.d.ts.map +1 -1
- package/dist/controllers/N3xusAPIController.js +2 -2
- package/dist/controllers/N3xusAPIController.js.map +1 -1
- package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js +9 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/base.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js +10 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/query.js +10 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/query.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js +10 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/state.js.map +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js +11 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +3 -3
- package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -1
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.0.6_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.0.6_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.1.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.1.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.4.1_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.4.1_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.4.2_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@29.4.2_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@33.4.1_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
- package/dist/node_modules/.pnpm/@magic-sdk_provider@33.4.1_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.2/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.2/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.19.0/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.19.0/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.21.0/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@24.21.0/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@27.4.0/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
- package/dist/node_modules/.pnpm/@magic-sdk_types@27.4.0/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/box/box.js +299 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/box/box.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/box/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/box/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/button.js +297 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/button.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-main.js +112 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-main.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-outline.js +47 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-outline.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-plain.js +69 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button/styles/button-plain.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/button-icon.js +154 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/button-icon.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/button-icon.styles.js +96 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/button-icon.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/button-icon/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/disclosure/disclosure.js +456 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/disclosure/disclosure.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/header-drawer/header-drawer.js +306 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/header-drawer/header-drawer.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/header-drawer/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/header-drawer/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/horizontal-stack.js +87 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/horizontal-stack.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/horizontal-stack.styles.js +64 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/horizontal-stack.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/horizontal-stack/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/icon/icon.js +74 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/icon/icon.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/icon/icon.styles.js +31 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/icon/icon.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/image/image.js +132 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/image/image.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/input.js +260 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/input.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/input.styles.js +118 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/input/input.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/link.js +53 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/link.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/link.styles.js +39 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link/link.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link-group/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link-group/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link-group/link-group.js +188 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/link-group/link-group.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/logo/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/logo/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/logo/logo.js +157 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/logo/logo.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/menu-drawer/menu-drawer.js +195 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/menu-drawer/menu-drawer.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/overlay/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/overlay/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/overlay/overlay.js +117 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/overlay/overlay.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/text/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/text/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/text/text.js +319 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/text/text.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/index.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/vertical-stack.js +93 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/vertical-stack.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/vertical-stack.styles.js +51 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/components/vertical-stack/vertical-stack.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/constructedStyleSheet.js +12 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/constructedStyleSheet.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/depracated-element-prop.js +12 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/depracated-element-prop.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/form-controller.js +271 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/form-controller.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/mergeStyles.js +13 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/mergeStyles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/paddingTransformations.js +76 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/paddingTransformations.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/push-element.js +52 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/push-element.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/settings.js +6 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/settings.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/slot.js +46 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/slot.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/slotInitialised.js +16 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/slotInitialised.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/watch.js +28 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/internal/watch.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/button.js +83 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/button.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/component.styles.js +36 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/component.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/flex.js +157 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/flex.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/form-control.styles.js +150 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/form-control.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/global.js +48 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/global.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/icon-size.js +25 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/icon-size.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/placeholder-media.js +34 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/placeholder-media.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/text.styles.js +240 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/styles/text.styles.js.map +1 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/utilities/base-path.js +7 -0
- package/dist/node_modules/.pnpm/@pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/utilities/base-path.js.map +1 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.32.1_tslib@2.8.1_typescript@5.7.3 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.40.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.40.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.44.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.44.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.3_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.3_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.58.0_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.58.0_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directive.js +9 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directive.js.map +1 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js +11 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js.map +1 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js +10 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/if-defined.js.map +1 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/style-map.js +11 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/style-map.js.map +1 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js +11 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/unsafe-html.js.map +1 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js +9 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.0.6/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.0.6/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.1.0/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.1.0/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.4.1/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.4.1/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.4.2/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@29.4.2/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/magic-sdk@33.4.1/node_modules/magic-sdk/dist/es/index.js +9 -0
- package/dist/node_modules/.pnpm/magic-sdk@33.4.1/node_modules/magic-sdk/dist/es/index.js.map +1 -0
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/normalize.js +169 -0
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/normalize.js.map +1 -0
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/querySelectorDeep.js +161 -0
- package/dist/node_modules/.pnpm/query-selector-shadow-dom@1.0.1/node_modules/query-selector-shadow-dom/src/querySelectorDeep.js.map +1 -0
- package/package.json +1 -1
- package/dist/node_modules/.pnpm/magic-sdk@28.21.0/node_modules/magic-sdk/dist/es/index.js +0 -9
- package/dist/node_modules/.pnpm/magic-sdk@28.21.0/node_modules/magic-sdk/dist/es/index.js.map +0 -1
- /package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.32.1_tslib@2.8.1_typescript@5.7.3 → @pushengineering_push-web-components@3.4.47_@floating-ui_utils@0.2.9_lit@3.3.0/node_modules/@pushengineering/push-web-components/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Magic as
|
|
1
|
+
import { Magic as $n } from '../../node_modules/.pnpm/magic-sdk@33.4.1/node_modules/magic-sdk/dist/es/index.js';
|
|
2
2
|
import { MAGIC_PROD_API, MAGIC_STAGE_API } from '../../constants/apis.js';
|
|
3
3
|
import { Environment } from '../n3xus/types.js';
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ const MagicAPI = (_options = {
|
|
|
17
17
|
useStorageCache: true,
|
|
18
18
|
deferPreload: true,
|
|
19
19
|
};
|
|
20
|
-
const magicApi = new
|
|
20
|
+
const magicApi = new $n(magicApiKey, magicConfig);
|
|
21
21
|
return magicApi;
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -6,7 +6,7 @@ declare class N3xusApi {
|
|
|
6
6
|
constructor(options: N3xusApiConfig);
|
|
7
7
|
checkIssueStatus(issueId: number | null, redeemCode: string | null): Promise<StatusData>;
|
|
8
8
|
checkWalletForNft(unlockMetadata: string, didToken: string): Promise<AccessCheckData>;
|
|
9
|
-
mint(didToken: string, issuanceCode?: string, campaignUrl?: string, campaignId?: number
|
|
9
|
+
mint(didToken: string, issuanceCode?: string, campaignUrl?: string, campaignId?: number): Promise<MintData>;
|
|
10
10
|
logActivation(contract_address: string, type: string, wallet_address: string): Promise<ActivationData>;
|
|
11
11
|
checkCampaign(campaignUrl: string): Promise<CampaignStatusData>;
|
|
12
12
|
getCampaignInformation(campaignId: number): Promise<CampaignInformationData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"N3xusAPI.d.ts","sourceRoot":"","sources":["../../../src/base/n3xus/N3xusAPI.ts"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EACf,QAAQ,EACR,UAAU,EACV,cAAc,EACd,cAAc,EAEd,kBAAkB,EAClB,uBAAuB,EAG1B,MAAM,SAAS,CAAC;AAQjB,cAAM,QAAQ;IAEV,OAAO,CAAC,aAAa,CAAgC;IACrD,OAAO,CAAC,GAAG,CAAa;IACxB,OAAO,CAAC,OAAO,CAAyB;gBAGpC,OAAO,EAAE,cAAc;IA2Bd,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAE,IAAI,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC;IA6CvF,iBAAiB,CAAC,cAAc,EAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IA0BpF,IAAI,
|
|
1
|
+
{"version":3,"file":"N3xusAPI.d.ts","sourceRoot":"","sources":["../../../src/base/n3xus/N3xusAPI.ts"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EACf,QAAQ,EACR,UAAU,EACV,cAAc,EACd,cAAc,EAEd,kBAAkB,EAClB,uBAAuB,EAG1B,MAAM,SAAS,CAAC;AAQjB,cAAM,QAAQ;IAEV,OAAO,CAAC,aAAa,CAAgC;IACrD,OAAO,CAAC,GAAG,CAAa;IACxB,OAAO,CAAC,OAAO,CAAyB;gBAGpC,OAAO,EAAE,cAAc;IA2Bd,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAE,IAAI,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC;IA6CvF,iBAAiB,CAAC,cAAc,EAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IA0BpF,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IA2D3G,aAAa,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAkCtG,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAmB/D,sBAAsB,CAAC,UAAU,EAAC,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAoB3F;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -87,38 +87,37 @@ class N3xusApi {
|
|
|
87
87
|
return Promise.reject(new Error(`Error fetching code status:${errorMessage}`));
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
async mint(didToken, issuanceCode, campaignUrl, campaignId
|
|
90
|
+
async mint(didToken, issuanceCode, campaignUrl, campaignId) {
|
|
91
91
|
try {
|
|
92
92
|
let response;
|
|
93
|
-
const body = {
|
|
94
|
-
didToken,
|
|
95
|
-
default_opt_in: defaultOptIn ?? false,
|
|
96
|
-
extra_opt_in: extraOptIn ?? false,
|
|
97
|
-
};
|
|
98
93
|
if (campaignId) {
|
|
99
|
-
body.campaignId = campaignId;
|
|
100
94
|
response = await fetch(`${this.url}/public/issuance/mint`, {
|
|
101
95
|
method: 'POST',
|
|
102
96
|
headers: this.headers,
|
|
103
|
-
body: JSON.stringify(
|
|
97
|
+
body: JSON.stringify({
|
|
98
|
+
"didToken": didToken,
|
|
99
|
+
"campaignId": campaignId,
|
|
100
|
+
})
|
|
104
101
|
});
|
|
105
102
|
}
|
|
106
103
|
else if (issuanceCode == undefined) {
|
|
107
|
-
if (campaignUrl) {
|
|
108
|
-
body.campaignUrl = campaignUrl;
|
|
109
|
-
}
|
|
110
104
|
response = await fetch(`${this.url}/public/issuance/mint`, {
|
|
111
105
|
method: 'POST',
|
|
112
106
|
headers: this.headers,
|
|
113
|
-
body: JSON.stringify(
|
|
107
|
+
body: JSON.stringify({
|
|
108
|
+
"didToken": didToken,
|
|
109
|
+
"campaignUrl": campaignUrl,
|
|
110
|
+
})
|
|
114
111
|
});
|
|
115
112
|
}
|
|
116
113
|
else {
|
|
117
|
-
body.issuanceCode = issuanceCode;
|
|
118
114
|
response = await fetch(`${this.url}/public/issuance/mint`, {
|
|
119
115
|
method: 'POST',
|
|
120
116
|
headers: this.headers,
|
|
121
|
-
body: JSON.stringify(
|
|
117
|
+
body: JSON.stringify({
|
|
118
|
+
"didToken": didToken,
|
|
119
|
+
"issuanceCode": issuanceCode,
|
|
120
|
+
})
|
|
122
121
|
});
|
|
123
122
|
}
|
|
124
123
|
const { data, error, ok } = await response.json();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"N3xusAPI.js","sources":["../../../src/base/n3xus/N3xusAPI.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAeA,MAAM,UAAU,GAAG,CAAC,IAAU,KAC7B,CAAA,EAAG,IAAI,CAAC,QAAQ,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA,CAAA,EAAI,MAAM,CACzE,IAAI,CAAC,UAAU,EAAE,CACjB,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA,CAAE;AAExE,MAAM,QAAQ,CAAA;AAM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AC,GAAG,CAAC;AAChB,YAAA,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC;QAC1B;IACJ;IAEO,MAAM,sBAAsB,CAAC,UAAiB,EAAA;AACjD,QAAA,IAAI;AACA,YAAA,MAAM,QAAQ,GAAG,MAAM,KAAK,CACxB,CAAA,EAAG,IAAI,CAAC,GAAG,CAAA,sCAAA,EAAyC,UAAU,CAAA,CAAE,EAChE;AACI,gBAAA,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE,IAAI,CAAC,OAAO;AACxB,aAAA,CACJ;AAED,YAAA,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE;AAIlC,YAAA,OAAO,IAAI;QACf;QAAE,OAAO,GAAG,EAAE;AACV,YAAA,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;AAChB,YAAA,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC;QAC1B;IACJ;AACH;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from '../../node_modules/.pnpm/@rollup_plugin-typescript@12.
|
|
1
|
+
import { __decorate } from '../../node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.58.0_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators/property.js';
|
|
4
4
|
import '@pushengineering/push-web-components/text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/connected/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/connected/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from '../../node_modules/.pnpm/@rollup_plugin-typescript@12.
|
|
1
|
+
import { __decorate } from '../../node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.58.0_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators/property.js';
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/error-screen/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA,WAAW,CAAC,MAAM,CAAC,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/error-screen/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA,WAAW,CAAC,MAAM,CAAC,iBAAiB,CAAC"}
|
|
@@ -22,6 +22,8 @@ import { Environment } from '../../base/n3xus/types';
|
|
|
22
22
|
import { LogoSet } from '../../utils/helpers';
|
|
23
23
|
export default class FanPassClaim extends CirkayElement {
|
|
24
24
|
static styles: CSSResultGroup;
|
|
25
|
+
private readonly walletCheckMaxRetries;
|
|
26
|
+
private readonly walletCheckInitialRetryDelayMs;
|
|
25
27
|
private loginController;
|
|
26
28
|
private n3xusApiConfig;
|
|
27
29
|
private n3xusAPIController;
|
|
@@ -60,19 +62,7 @@ export default class FanPassClaim extends CirkayElement {
|
|
|
60
62
|
claimSuccessPerkButtonText: string;
|
|
61
63
|
connectedText: string;
|
|
62
64
|
faqUrl: string;
|
|
63
|
-
crmOptInDisclaimer: string;
|
|
64
|
-
crmOptInCta: string;
|
|
65
|
-
crmOptInPrivacyUrl: string;
|
|
66
|
-
defaultOptInLabel: string;
|
|
67
|
-
extraOptInLabel: string;
|
|
68
|
-
extraOptInCta: string;
|
|
69
|
-
requireDefaultOptIn: boolean;
|
|
70
65
|
_claimState: ClaimStateTypes;
|
|
71
|
-
_defaultOptIn: boolean;
|
|
72
|
-
_extraCrmOptIn: boolean;
|
|
73
|
-
_useDefaultOptInSlotOverride: boolean;
|
|
74
|
-
private _slottedDefaultOptInCheckbox;
|
|
75
|
-
private _slottedDefaultOptInCheckboxChangeBound;
|
|
76
66
|
_campaignState: CampaignState;
|
|
77
67
|
_pageNumber: number;
|
|
78
68
|
_user: FanPassUser | undefined;
|
|
@@ -83,14 +73,7 @@ export default class FanPassClaim extends CirkayElement {
|
|
|
83
73
|
_startDate: Date | null;
|
|
84
74
|
_notStartedMessage: string;
|
|
85
75
|
constructor();
|
|
86
|
-
private static _isValidDefaultOptInCheckbox;
|
|
87
|
-
private _getDefaultOptInSlotCheckboxes;
|
|
88
|
-
private _onDefaultOptInSlotChange;
|
|
89
|
-
private _unbindSlottedDefaultOptInCheckbox;
|
|
90
76
|
connectedCallback(): void;
|
|
91
|
-
firstUpdated(): void;
|
|
92
|
-
updated(changedProperties: PropertyValues): void;
|
|
93
|
-
disconnectedCallback(): void;
|
|
94
77
|
private handleMintType;
|
|
95
78
|
getUserDetails(): FanPassUser | undefined | null;
|
|
96
79
|
getLoginState(): LoginState | undefined;
|
|
@@ -100,11 +83,11 @@ export default class FanPassClaim extends CirkayElement {
|
|
|
100
83
|
private checkSessionStatus;
|
|
101
84
|
private startPolling;
|
|
102
85
|
private stopPolling;
|
|
86
|
+
private delay;
|
|
87
|
+
private checkWalletForNftWithRetry;
|
|
103
88
|
private setCodeStatus;
|
|
104
89
|
private getCampaignInformation;
|
|
105
90
|
private setCampaignStatus;
|
|
106
|
-
private parseOptInValue;
|
|
107
|
-
private resolveClaimOptIns;
|
|
108
91
|
private handleClaim;
|
|
109
92
|
private unlockedContentEmit;
|
|
110
93
|
private setSessionToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fan-pass-claim.d.ts","sourceRoot":"","sources":["../../../src/components/fan-pass-claim/fan-pass-claim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,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C,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,KAAK;YAIC,0BAA0B;YA8E1B,aAAa;YA0Gb,sBAAsB;YA6BtB,iBAAiB;YA+BjB,WAAW;IA2DzB,OAAO,CAAC,mBAAmB;YAoCb,eAAe;IA2GhB,SAAS;IAiBT,MAAM;IAiBZ,YAAY,CAAC,CAAC,GAAE,KAAK,GAAG,IAAW,GAAG,IAAI;IAsB1C,WAAW,CAAC,CAAC,GAAE,KAAK,GAAG,IAAW,GAAG,IAAI;IAUhD,OAAO,CAAC,0BAA0B;IAMlC,OAAO,CAAC,oBAAoB,CAU3B;IAQD,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,gBAAgB;IA+CxB,OAAO,CAAC,kBAAkB;IAqD1B,OAAO,CAAC,wBAAwB;IAgDhC,OAAO,CAAC,aAAa;IAoDrB,OAAO,CAAC,aAAa;IAqWrB,OAAO,CAAC,iBAAiB;IAyFzB,OAAO,CAAC,uBAAuB;IA2BxB,MAAM,IAAI,cAAc;CA6HlC;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,gBAAgB,EAAE,YAAY,CAAA;KACjC;CACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from '../../node_modules/.pnpm/@rollup_plugin-typescript@12.
|
|
1
|
+
import { __decorate } from '../../node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.58.0_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { loginShadowParts, frameShadowParts, connectedShadowParts } from '../../constants/shadow-parts.js';
|
|
4
4
|
import { property, query } from 'lit/decorators.js';
|
|
@@ -32,6 +32,8 @@ class FanPassClaim extends CirkayElement {
|
|
|
32
32
|
}
|
|
33
33
|
constructor() {
|
|
34
34
|
super();
|
|
35
|
+
this.walletCheckMaxRetries = 2;
|
|
36
|
+
this.walletCheckInitialRetryDelayMs = 1500;
|
|
35
37
|
this.loginController = null;
|
|
36
38
|
this.n3xusApiConfig = undefined;
|
|
37
39
|
this.n3xusAPIController = null;
|
|
@@ -80,19 +82,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
80
82
|
this.claimSuccessPerkButtonText = 'Check out your perks!';
|
|
81
83
|
this.connectedText = 'Connected';
|
|
82
84
|
this.faqUrl = 'https://cirkay.com/faq/';
|
|
83
|
-
this.crmOptInDisclaimer = 'By claiming your Fan Pass you will receive email updates about perks.';
|
|
84
|
-
this.crmOptInCta = "I'd like to receive updates and offers";
|
|
85
|
-
this.crmOptInPrivacyUrl = '';
|
|
86
|
-
this.defaultOptInLabel = 'I agree to receive updates about my Fan Pass.';
|
|
87
|
-
this.extraOptInLabel = '';
|
|
88
|
-
this.extraOptInCta = '';
|
|
89
|
-
this.requireDefaultOptIn = false;
|
|
90
85
|
this._claimState = ClaimStateTypes.validating;
|
|
91
|
-
this._defaultOptIn = false;
|
|
92
|
-
this._extraCrmOptIn = false;
|
|
93
|
-
this._useDefaultOptInSlotOverride = false;
|
|
94
|
-
this._slottedDefaultOptInCheckbox = null;
|
|
95
|
-
this._slottedDefaultOptInCheckboxChangeBound = null;
|
|
96
86
|
this._campaignState = CampaignState.available;
|
|
97
87
|
this._pageNumber = 1;
|
|
98
88
|
this._user = undefined;
|
|
@@ -101,26 +91,6 @@ class FanPassClaim extends CirkayElement {
|
|
|
101
91
|
this._alreadyClaimed = false;
|
|
102
92
|
this._startDate = null;
|
|
103
93
|
this._notStartedMessage = `The ${this.fanPassTitle} will become active from`;
|
|
104
|
-
this._onDefaultOptInSlotChange = () => {
|
|
105
|
-
this._unbindSlottedDefaultOptInCheckbox();
|
|
106
|
-
const checkboxes = this._getDefaultOptInSlotCheckboxes();
|
|
107
|
-
const validOverride = checkboxes.length === 1;
|
|
108
|
-
this._useDefaultOptInSlotOverride = validOverride;
|
|
109
|
-
if (validOverride) {
|
|
110
|
-
const checkbox = checkboxes[0];
|
|
111
|
-
this._slottedDefaultOptInCheckbox = checkbox;
|
|
112
|
-
this._defaultOptIn = checkbox.checked;
|
|
113
|
-
this._slottedDefaultOptInCheckboxChangeBound = () => {
|
|
114
|
-
if (this._slottedDefaultOptInCheckbox) {
|
|
115
|
-
this._defaultOptIn = this._slottedDefaultOptInCheckbox.checked;
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
checkbox.addEventListener('change', this._slottedDefaultOptInCheckboxChangeBound);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
this._slottedDefaultOptInCheckbox = null;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
94
|
this.onClaimModalClickOut = (evt) => {
|
|
125
95
|
const overlay = this.shadowRoot?.getElementById('fb-modal');
|
|
126
96
|
if (!overlay)
|
|
@@ -143,28 +113,6 @@ class FanPassClaim extends CirkayElement {
|
|
|
143
113
|
imgCirkay.src =
|
|
144
114
|
'https://n3xus-store.s3.eu-west-2.amazonaws.com/staging/assets/cirkay-logo-transparent-no-padding.webp';
|
|
145
115
|
}
|
|
146
|
-
static _isValidDefaultOptInCheckbox(el) {
|
|
147
|
-
return (el instanceof HTMLInputElement &&
|
|
148
|
-
el.type === 'checkbox' &&
|
|
149
|
-
(el.hasAttribute('data-fan-pass-default-opt-in') ||
|
|
150
|
-
el.id === 'fan-pass-default-opt-in' ||
|
|
151
|
-
el.hasAttribute('data-fan-pass-opt-in') ||
|
|
152
|
-
el.id === 'fan-pass-opt-in'));
|
|
153
|
-
}
|
|
154
|
-
_getDefaultOptInSlotCheckboxes() {
|
|
155
|
-
const slot = this.renderRoot?.querySelector?.('slot[name="optin"]');
|
|
156
|
-
if (!slot)
|
|
157
|
-
return [];
|
|
158
|
-
const assigned = slot.assignedElements({ flatten: true });
|
|
159
|
-
return assigned.filter(FanPassClaim._isValidDefaultOptInCheckbox);
|
|
160
|
-
}
|
|
161
|
-
_unbindSlottedDefaultOptInCheckbox() {
|
|
162
|
-
if (this._slottedDefaultOptInCheckbox && this._slottedDefaultOptInCheckboxChangeBound) {
|
|
163
|
-
this._slottedDefaultOptInCheckbox.removeEventListener('change', this._slottedDefaultOptInCheckboxChangeBound);
|
|
164
|
-
}
|
|
165
|
-
this._slottedDefaultOptInCheckbox = null;
|
|
166
|
-
this._slottedDefaultOptInCheckboxChangeBound = null;
|
|
167
|
-
}
|
|
168
116
|
connectedCallback() {
|
|
169
117
|
super.connectedCallback();
|
|
170
118
|
this.emit(LoginEvents.Initialising, {
|
|
@@ -200,23 +148,6 @@ class FanPassClaim extends CirkayElement {
|
|
|
200
148
|
}
|
|
201
149
|
this.setUpdateState();
|
|
202
150
|
}
|
|
203
|
-
firstUpdated() {
|
|
204
|
-
this._onDefaultOptInSlotChange();
|
|
205
|
-
}
|
|
206
|
-
updated(changedProperties) {
|
|
207
|
-
super.updated?.(changedProperties);
|
|
208
|
-
if (this._useDefaultOptInSlotOverride &&
|
|
209
|
-
this._slottedDefaultOptInCheckbox &&
|
|
210
|
-
changedProperties.has('_defaultOptIn')) {
|
|
211
|
-
if (this._slottedDefaultOptInCheckbox.checked !== this._defaultOptIn) {
|
|
212
|
-
this._slottedDefaultOptInCheckbox.checked = this._defaultOptIn;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
disconnectedCallback() {
|
|
217
|
-
this._unbindSlottedDefaultOptInCheckbox();
|
|
218
|
-
super.disconnectedCallback();
|
|
219
|
-
}
|
|
220
151
|
async handleMintType() {
|
|
221
152
|
this.logging('handleMintType');
|
|
222
153
|
this.logging('Campaing ID', this.campaignId);
|
|
@@ -852,6 +783,42 @@ class FanPassClaim extends CirkayElement {
|
|
|
852
783
|
this.interval = null;
|
|
853
784
|
}
|
|
854
785
|
}
|
|
786
|
+
delay(ms) {
|
|
787
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
788
|
+
}
|
|
789
|
+
async checkWalletForNftWithRetry(didToken, bypassCache = false) {
|
|
790
|
+
let delayMs = this.walletCheckInitialRetryDelayMs;
|
|
791
|
+
for (let attempt = 0; attempt <= this.walletCheckMaxRetries; attempt++) {
|
|
792
|
+
try {
|
|
793
|
+
if (!this.n3xusAPIController) {
|
|
794
|
+
console.error('N3xus API is not initialized');
|
|
795
|
+
return null;
|
|
796
|
+
}
|
|
797
|
+
const response = await this.n3xusAPIController.checkWalletForNft(this.n3xusApiConfig, '', didToken, bypassCache);
|
|
798
|
+
if (response?.ok) {
|
|
799
|
+
return response;
|
|
800
|
+
}
|
|
801
|
+
const isFinalAttempt = attempt === this.walletCheckMaxRetries;
|
|
802
|
+
if (isFinalAttempt) {
|
|
803
|
+
return response ?? null;
|
|
804
|
+
}
|
|
805
|
+
console.warn(`Claim wallet check returned non-ok response (attempt ${attempt + 1}/${this.walletCheckMaxRetries + 1}). Retrying in ${delayMs}ms...`, response);
|
|
806
|
+
await this.delay(delayMs);
|
|
807
|
+
delayMs *= 2;
|
|
808
|
+
}
|
|
809
|
+
catch (error) {
|
|
810
|
+
const isFinalAttempt = attempt === this.walletCheckMaxRetries;
|
|
811
|
+
if (isFinalAttempt) {
|
|
812
|
+
console.error('Check wallet for NFT failed after retries', error);
|
|
813
|
+
return null;
|
|
814
|
+
}
|
|
815
|
+
console.warn(`Claim wallet check failed (attempt ${attempt + 1}/${this.walletCheckMaxRetries + 1}). Retrying in ${delayMs}ms...`, error);
|
|
816
|
+
await this.delay(delayMs);
|
|
817
|
+
delayMs *= 2;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
return null;
|
|
821
|
+
}
|
|
855
822
|
async setCodeStatus(issueId = null, redeemCode = null) {
|
|
856
823
|
if (!this.n3xusAPIController) {
|
|
857
824
|
throw new Error('Nexus API is not initialized');
|
|
@@ -972,25 +939,6 @@ class FanPassClaim extends CirkayElement {
|
|
|
972
939
|
this.availibleCampaign = true;
|
|
973
940
|
}
|
|
974
941
|
}
|
|
975
|
-
parseOptInValue(value) {
|
|
976
|
-
if (typeof value === 'boolean') {
|
|
977
|
-
return value;
|
|
978
|
-
}
|
|
979
|
-
if (typeof value === 'string') {
|
|
980
|
-
const normalizedValue = value.trim().toLowerCase();
|
|
981
|
-
return normalizedValue === 'true' || normalizedValue === '1' || normalizedValue === 'on';
|
|
982
|
-
}
|
|
983
|
-
return false;
|
|
984
|
-
}
|
|
985
|
-
resolveClaimOptIns() {
|
|
986
|
-
const optinDetails = (this.loginController?.optinDetails ?? {});
|
|
987
|
-
const defaultOptIn = this.parseOptInValue(optinDetails.default_opt_in ?? optinDetails.defaultOptIn);
|
|
988
|
-
const extraOptIn = this.parseOptInValue(optinDetails.extra_opt_in ?? optinDetails.extraOptIn ?? optinDetails.opt_in);
|
|
989
|
-
return {
|
|
990
|
-
defaultOptIn,
|
|
991
|
-
extraOptIn,
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
942
|
async handleClaim() {
|
|
995
943
|
this._claimState = ClaimStateTypes.minting;
|
|
996
944
|
let didToken = this.loginController?.user?.did?.token;
|
|
@@ -998,15 +946,12 @@ class FanPassClaim extends CirkayElement {
|
|
|
998
946
|
await this.loginController?.getDidToken();
|
|
999
947
|
didToken = this.loginController?.user?.did?.token;
|
|
1000
948
|
}
|
|
1001
|
-
const { defaultOptIn, extraOptIn } = this.resolveClaimOptIns();
|
|
1002
949
|
try {
|
|
1003
950
|
this.emit(ClaimEvents.Claiming, {
|
|
1004
951
|
bubbles: true,
|
|
1005
952
|
composed: true,
|
|
1006
953
|
detail: {
|
|
1007
954
|
...this.loginController?.optinDetails,
|
|
1008
|
-
default_opt_in: defaultOptIn,
|
|
1009
|
-
extra_opt_in: extraOptIn,
|
|
1010
955
|
email: this.loginController?.user?.email,
|
|
1011
956
|
apiKey: this.apiKey,
|
|
1012
957
|
wallet: this.loginController?.user?.walletAddress,
|
|
@@ -1019,7 +964,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
1019
964
|
return;
|
|
1020
965
|
}
|
|
1021
966
|
this.mintRequestDid = didToken;
|
|
1022
|
-
this.n3xusAPIController?.mint(this.n3xusApiConfig, didToken, this.redeemCode || undefined, this.availibleCampaign ? this.campaignUrl : undefined, this.campaignId || undefined
|
|
967
|
+
this.n3xusAPIController?.mint(this.n3xusApiConfig, didToken, this.redeemCode || undefined, this.availibleCampaign ? this.campaignUrl : undefined, this.campaignId || undefined);
|
|
1023
968
|
}
|
|
1024
969
|
catch (error) {
|
|
1025
970
|
switch (error.message) {
|
|
@@ -1087,7 +1032,7 @@ class FanPassClaim extends CirkayElement {
|
|
|
1087
1032
|
return null;
|
|
1088
1033
|
}
|
|
1089
1034
|
await this.loginController?.getDidToken();
|
|
1090
|
-
this.walletCheckResponse = await this.
|
|
1035
|
+
this.walletCheckResponse = await this.checkWalletForNftWithRetry(this.loginController.user.did.token, bypassCache);
|
|
1091
1036
|
if (!this.walletCheckResponse?.ok) {
|
|
1092
1037
|
console.error('Check wallet for NFT failed');
|
|
1093
1038
|
return null;
|
|
@@ -1516,53 +1461,11 @@ class FanPassClaim extends CirkayElement {
|
|
|
1516
1461
|
?showLoaderAfterLogin=${true}
|
|
1517
1462
|
exportparts="${loginShadowParts}"
|
|
1518
1463
|
>
|
|
1519
|
-
<div slot="form-content-before-submit">
|
|
1464
|
+
<div class="form-before-submit-wrapper" slot="form-content-before-submit">
|
|
1520
1465
|
<slot name="form-content-claim-before-submit"></slot>
|
|
1521
1466
|
</div>
|
|
1522
1467
|
<form part="form-content" slot="form-content">
|
|
1523
|
-
|
|
1524
|
-
<div class="fanpass-claim-opt-in-block">
|
|
1525
|
-
<p class="fanpass-claim-disclaimer" part="claim-disclaimer">
|
|
1526
|
-
${this.crmOptInDisclaimer}${this.crmOptInPrivacyUrl
|
|
1527
|
-
? html ` <a href="${this.crmOptInPrivacyUrl}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`
|
|
1528
|
-
: ''}
|
|
1529
|
-
</p>
|
|
1530
|
-
${this._useDefaultOptInSlotOverride
|
|
1531
|
-
? html `<slot name="optin" @slotchange=${this._onDefaultOptInSlotChange}></slot>`
|
|
1532
|
-
: html `
|
|
1533
|
-
<label class="fanpass-opt-in-label" part="opt-in-label">
|
|
1534
|
-
<input
|
|
1535
|
-
type="checkbox"
|
|
1536
|
-
name="default_opt_in"
|
|
1537
|
-
form="emailInputForm"
|
|
1538
|
-
?required=${this.requireDefaultOptIn}
|
|
1539
|
-
.checked=${this._defaultOptIn}
|
|
1540
|
-
@change=${(e) => { this._defaultOptIn = e.target.checked; }}
|
|
1541
|
-
/>
|
|
1542
|
-
<span class="fanpass-opt-in-text" part="opt-in-text">${this.defaultOptInLabel}</span>
|
|
1543
|
-
</label>
|
|
1544
|
-
<label class="fanpass-opt-in-label" part="opt-in-label">
|
|
1545
|
-
<input
|
|
1546
|
-
type="checkbox"
|
|
1547
|
-
name="extra_opt_in"
|
|
1548
|
-
form="emailInputForm"
|
|
1549
|
-
.checked=${this._extraCrmOptIn}
|
|
1550
|
-
@change=${(e) => { this._extraCrmOptIn = e.target.checked; }}
|
|
1551
|
-
/>
|
|
1552
|
-
<span class="fanpass-opt-in-text" part="opt-in-text">
|
|
1553
|
-
${this.extraOptInLabel || this.crmOptInCta}${this.crmOptInPrivacyUrl
|
|
1554
|
-
? html ` <a href="${this.crmOptInPrivacyUrl}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`
|
|
1555
|
-
: ''}
|
|
1556
|
-
</span>
|
|
1557
|
-
</label>
|
|
1558
|
-
${this.extraOptInCta
|
|
1559
|
-
? html `<p class="fanpass-claim-disclaimer" part="claim-disclaimer">${this.extraOptInCta}</p>`
|
|
1560
|
-
: ''}
|
|
1561
|
-
<div class="fanpass-opt-in-slot-hidden" aria-hidden="true">
|
|
1562
|
-
<slot name="optin" @slotchange=${this._onDefaultOptInSlotChange}></slot>
|
|
1563
|
-
</div>
|
|
1564
|
-
`}
|
|
1565
|
-
</div>
|
|
1468
|
+
<slot name="form-content-claim"></slot>
|
|
1566
1469
|
</form>
|
|
1567
1470
|
</fp-login>
|
|
1568
1471
|
</pu-vertical-stack>
|
|
@@ -2037,39 +1940,9 @@ __decorate([
|
|
|
2037
1940
|
__decorate([
|
|
2038
1941
|
property({ type: String })
|
|
2039
1942
|
], FanPassClaim.prototype, "faqUrl", void 0);
|
|
2040
|
-
__decorate([
|
|
2041
|
-
property({ type: String })
|
|
2042
|
-
], FanPassClaim.prototype, "crmOptInDisclaimer", void 0);
|
|
2043
|
-
__decorate([
|
|
2044
|
-
property({ type: String })
|
|
2045
|
-
], FanPassClaim.prototype, "crmOptInCta", void 0);
|
|
2046
|
-
__decorate([
|
|
2047
|
-
property({ type: String })
|
|
2048
|
-
], FanPassClaim.prototype, "crmOptInPrivacyUrl", void 0);
|
|
2049
|
-
__decorate([
|
|
2050
|
-
property({ type: String })
|
|
2051
|
-
], FanPassClaim.prototype, "defaultOptInLabel", void 0);
|
|
2052
|
-
__decorate([
|
|
2053
|
-
property({ type: String })
|
|
2054
|
-
], FanPassClaim.prototype, "extraOptInLabel", void 0);
|
|
2055
|
-
__decorate([
|
|
2056
|
-
property({ type: String })
|
|
2057
|
-
], FanPassClaim.prototype, "extraOptInCta", void 0);
|
|
2058
|
-
__decorate([
|
|
2059
|
-
property({ type: Boolean })
|
|
2060
|
-
], FanPassClaim.prototype, "requireDefaultOptIn", void 0);
|
|
2061
1943
|
__decorate([
|
|
2062
1944
|
state()
|
|
2063
1945
|
], FanPassClaim.prototype, "_claimState", void 0);
|
|
2064
|
-
__decorate([
|
|
2065
|
-
state()
|
|
2066
|
-
], FanPassClaim.prototype, "_defaultOptIn", void 0);
|
|
2067
|
-
__decorate([
|
|
2068
|
-
state()
|
|
2069
|
-
], FanPassClaim.prototype, "_extraCrmOptIn", void 0);
|
|
2070
|
-
__decorate([
|
|
2071
|
-
state()
|
|
2072
|
-
], FanPassClaim.prototype, "_useDefaultOptInSlotOverride", void 0);
|
|
2073
1946
|
__decorate([
|
|
2074
1947
|
state()
|
|
2075
1948
|
], FanPassClaim.prototype, "_campaignState", void 0);
|