@leatcom/portal-sessions 0.1.0 → 0.3.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +66 -57
  2. package/dist/calendar-Can0qQlp.js +35 -0
  3. package/dist/camera-switch-GycOMC0h.js +32 -0
  4. package/dist/caret-left-Bu6hBQ5l.js +35 -0
  5. package/dist/close-DEGYFjZn.js +31 -0
  6. package/dist/crossBlack-nmm64QX1.js +40 -0
  7. package/dist/dollar-BbDPUsF1.js +56 -0
  8. package/dist/edit-xcD5f5zi.js +31 -0
  9. package/dist/home-Cdal78fu.js +40 -0
  10. package/dist/information-Cq6k4byC.js +50 -0
  11. package/dist/leat_logo-BpQeHCzL.js +33 -0
  12. package/dist/lib/api/errorHandler.d.ts +3 -0
  13. package/dist/lib/api/types.d.ts +9 -0
  14. package/dist/lib/api/useFetcher.d.ts +16 -0
  15. package/dist/lib/api/useHttp.d.ts +7 -0
  16. package/dist/lib/api/useV2Fetcher.d.ts +16 -0
  17. package/dist/lib/api/useV2Http.d.ts +7 -0
  18. package/dist/lib/components/AnimatedCounter/AnimatedCounter.d.ts +9 -0
  19. package/dist/lib/components/AnimatedCounter/index.d.ts +1 -0
  20. package/dist/lib/components/Badge/Badge.d.ts +10 -0
  21. package/dist/lib/components/Badge/variants.d.ts +5 -0
  22. package/dist/lib/components/Banner/Banner.d.ts +5 -0
  23. package/dist/lib/components/Buttons/Button-cva.d.ts +28 -0
  24. package/dist/lib/components/Buttons/Button.d.ts +12 -0
  25. package/dist/lib/components/Buttons/NavLinkButton.d.ts +21 -0
  26. package/dist/lib/components/Buttons/index.d.ts +2 -0
  27. package/dist/lib/components/Buttons/variants.d.ts +8 -0
  28. package/dist/lib/components/Card/Card.d.ts +8 -0
  29. package/dist/lib/components/Card/CardContent.d.ts +7 -0
  30. package/dist/lib/components/Card/CardFooter.d.ts +6 -0
  31. package/dist/lib/components/Card/CardHeader.d.ts +6 -0
  32. package/dist/lib/components/Card/CardSubTitle.d.ts +6 -0
  33. package/dist/lib/components/Card/CardTitle.d.ts +6 -0
  34. package/dist/lib/components/Card/NavigationHeader.d.ts +1 -0
  35. package/dist/lib/components/Card/index.d.ts +6 -0
  36. package/dist/lib/components/Checkbox/Checkbox.d.ts +15 -0
  37. package/dist/lib/components/Checkbox/CheckboxBase.d.ts +8 -0
  38. package/dist/lib/components/Checkbox/CheckboxGroup.d.ts +15 -0
  39. package/dist/lib/components/Checkbox/index.d.ts +3 -0
  40. package/dist/lib/components/Form/Form.d.ts +4 -0
  41. package/dist/lib/components/Form/FormInputField.d.ts +13 -0
  42. package/dist/lib/components/Hooks/useCloseDropdownHandler.d.ts +2 -0
  43. package/dist/lib/components/Hooks/useCustomEvents.d.ts +8 -0
  44. package/dist/lib/components/Hooks/useCustomEvents.test.d.ts +1 -0
  45. package/dist/lib/components/Hooks/useViewPortSize.d.ts +6 -0
  46. package/dist/lib/components/Icon/Icon.d.ts +10 -0
  47. package/dist/lib/components/Icon/IconBase.d.ts +5 -0
  48. package/dist/lib/components/Icon/index.d.ts +1 -0
  49. package/dist/lib/components/Icon/variants.d.ts +6 -0
  50. package/dist/lib/components/Input/Input.d.ts +23 -0
  51. package/dist/lib/components/Input/InputDate.d.ts +18 -0
  52. package/dist/lib/components/Input/InputEmail.d.ts +18 -0
  53. package/dist/lib/components/Input/InputNumeric.d.ts +9 -0
  54. package/dist/lib/components/Input/index.d.ts +3 -0
  55. package/dist/lib/components/Keyboard/Keyboard.d.ts +6 -0
  56. package/dist/lib/components/Keyboard/KeyboardWrapper.d.ts +10 -0
  57. package/dist/lib/components/Keyboard/NumericKeyboard.d.ts +7 -0
  58. package/dist/lib/components/Keyboard/index.d.ts +4 -0
  59. package/dist/lib/components/Keyboard/useKeyboard.d.ts +8 -0
  60. package/dist/lib/components/Label/Label.d.ts +18 -0
  61. package/dist/lib/components/Label/index.d.ts +1 -0
  62. package/dist/lib/components/Layout/Container.d.ts +6 -0
  63. package/dist/lib/components/Layout/index.d.ts +1 -0
  64. package/dist/lib/components/Loader/Loader.d.ts +3 -0
  65. package/dist/lib/components/Message/Message.d.ts +11 -0
  66. package/dist/lib/components/Modal/Modal.d.ts +17 -0
  67. package/dist/lib/components/Modal/index.d.ts +1 -0
  68. package/dist/lib/components/MultiSelect/MultiSelect.d.ts +13 -0
  69. package/dist/lib/components/MultiSelect/MultiSelectOption.d.ts +8 -0
  70. package/dist/lib/components/MultiSelect/index.d.ts +1 -0
  71. package/dist/lib/components/ProgressBar/ProgressBar.d.ts +7 -0
  72. package/dist/lib/components/ProgressBar/index.d.ts +1 -0
  73. package/dist/lib/components/Select/Select.d.ts +12 -0
  74. package/dist/lib/components/Select/SelectGroup.d.ts +7 -0
  75. package/dist/lib/components/Select/SelectOption.d.ts +5 -0
  76. package/dist/lib/components/Select/SelectTrigger.d.ts +10 -0
  77. package/dist/lib/components/Select/index.d.ts +3 -0
  78. package/dist/lib/components/Skeletons/RowsSkeletonLoader.d.ts +5 -0
  79. package/dist/lib/components/Skeletons/Skeleton.d.ts +1 -0
  80. package/dist/lib/components/Skeletons/TableSkeleton.d.ts +8 -0
  81. package/dist/lib/components/Spinner/Spinner.d.ts +2 -0
  82. package/dist/lib/components/Spinner/index.d.ts +1 -0
  83. package/dist/lib/components/Stack/Stack.d.ts +9 -0
  84. package/dist/lib/components/Stack/index.d.ts +1 -0
  85. package/dist/lib/components/Switch/Switch.d.ts +20 -0
  86. package/dist/lib/components/Switch/SwitchBase.d.ts +12 -0
  87. package/dist/lib/components/Switch/SwitchGroup.d.ts +23 -0
  88. package/dist/lib/components/Switch/index.d.ts +3 -0
  89. package/dist/lib/components/Switch/variants.d.ts +6 -0
  90. package/dist/lib/components/Table/Header.d.ts +6 -0
  91. package/dist/lib/components/Table/Row.d.ts +7 -0
  92. package/dist/lib/components/Table/Table.d.ts +9 -0
  93. package/dist/lib/components/Table/index.d.ts +2 -0
  94. package/dist/lib/components/Table/types.d.ts +24 -0
  95. package/dist/lib/components/Typography/Text.d.ts +16 -0
  96. package/dist/lib/components/Typography/index.d.ts +2 -0
  97. package/dist/lib/components/Typography/types.d.ts +3 -0
  98. package/dist/lib/components/debug/DebugOverlay.d.ts +1 -0
  99. package/dist/lib/components/special/CustomErrorBoundary.d.ts +16 -0
  100. package/dist/lib/components/special/ErrorHasOccurred.d.ts +1 -0
  101. package/dist/lib/components/special/LoadingScreen.d.ts +5 -0
  102. package/dist/lib/components/special/SessionUnavailable.d.ts +3 -0
  103. package/dist/lib/components/special/SpecialScreen.d.ts +7 -0
  104. package/dist/lib/components/types.d.ts +17 -0
  105. package/dist/lib/context/Api/ApiContext.d.ts +5 -0
  106. package/dist/lib/context/Api/useApiContext.d.ts +1 -0
  107. package/dist/lib/context/Configuration/ConfigurationContext.d.ts +19 -0
  108. package/dist/lib/context/Configuration/WithConfiguration.d.ts +7 -0
  109. package/dist/lib/context/Configuration/useConfigurationContext.d.ts +1 -0
  110. package/dist/lib/context/PortalSession/PortalSessionContext.d.ts +10 -0
  111. package/dist/lib/context/PortalSession/PortalSessionProvider.d.ts +7 -0
  112. package/dist/lib/context/PortalSession/usePortalSessionContext.d.ts +1 -0
  113. package/dist/lib/design/colorPaletteGenerator.d.ts +6 -0
  114. package/dist/lib/design/setupBranding.d.ts +2 -0
  115. package/dist/lib/helpers/displayNameForContact.d.ts +2 -0
  116. package/dist/lib/helpers/enum.d.ts +23 -0
  117. package/dist/lib/helpers/helpers.d.ts +9 -0
  118. package/dist/lib/helpers/index.d.ts +2 -0
  119. package/dist/lib/hooks/fetchers/useContactIdentifiers.d.ts +10 -0
  120. package/dist/lib/hooks/fetchers/useContactSubscriptions.d.ts +6 -0
  121. package/dist/lib/hooks/fetchers/useGiftcard.d.ts +6 -0
  122. package/dist/lib/hooks/fetchers/useLoyaltyTransactions.d.ts +20 -0
  123. package/dist/lib/hooks/fetchers/usePrepaidBalance.d.ts +6 -0
  124. package/dist/lib/hooks/fetchers/useRewards.d.ts +6 -0
  125. package/dist/lib/hooks/fetchers/useSubscriptions.d.ts +6 -0
  126. package/dist/lib/hooks/fetchers/useVoucher.d.ts +6 -0
  127. package/dist/lib/hooks/fetchers/useVouchers.d.ts +6 -0
  128. package/dist/lib/hooks/toasts/useToast.d.ts +7 -0
  129. package/dist/lib/hooks/useCreatePortalSession.d.ts +5 -0
  130. package/dist/lib/hooks/useCurrency.d.ts +5 -0
  131. package/dist/lib/hooks/useEvents.d.ts +4 -0
  132. package/dist/lib/localization/i18n.d.ts +2 -0
  133. package/dist/lib/main.d.ts +8 -0
  134. package/dist/lib/modules/CreateNewPortalSession.d.ts +31 -0
  135. package/dist/lib/modules/Root.d.ts +14 -0
  136. package/dist/lib/modules/StartSession.d.ts +2 -0
  137. package/dist/lib/modules/UuidSession.d.ts +6 -0
  138. package/dist/lib/modules/components/HandleContactIdentifier.d.ts +7 -0
  139. package/dist/lib/modules/components/Scanner/QrReader.d.ts +5 -0
  140. package/dist/lib/modules/components/Scanner/QrReader2.d.ts +5 -0
  141. package/dist/lib/modules/components/Scanner/QrReader3.d.ts +5 -0
  142. package/dist/lib/modules/components/Scanner/QrReader4.d.ts +5 -0
  143. package/dist/lib/modules/components/Scanner/Scanner.d.ts +9 -0
  144. package/dist/lib/modules/components/auth/AuthenticateContact.d.ts +1 -0
  145. package/dist/lib/modules/components/auth/AuthenticateViaContactIdentifier.d.ts +4 -0
  146. package/dist/lib/modules/components/auth/AuthenticateViaEmail.d.ts +13 -0
  147. package/dist/lib/modules/components/useFindOrCreateContact.d.ts +9 -0
  148. package/dist/lib/modules/components/useLinkContactToSession.d.ts +4 -0
  149. package/dist/lib/modules/components/useLinkIdentifierToContact.d.ts +5 -0
  150. package/dist/lib/modules/generic/Generic.d.ts +6 -0
  151. package/dist/lib/modules/giftcard/HandleGiftcard.d.ts +7 -0
  152. package/dist/lib/modules/giftcard/IdentifyGiftcard.d.ts +1 -0
  153. package/dist/lib/modules/pointsTransaction/PointsTransaction.d.ts +1 -0
  154. package/dist/lib/modules/portal/profile/Data.d.ts +1 -0
  155. package/dist/lib/modules/portal/profile/details/activities/Activities.d.ts +1 -0
  156. package/dist/lib/modules/portal/profile/details/contactAttributes/ContactAttributes.d.ts +1 -0
  157. package/dist/lib/modules/portal/profile/details/contactIdentifiers/ContactIdentifiers.d.ts +1 -0
  158. package/dist/lib/modules/portal/profile/details/contactIdentifiers/CreateContactIdentifier.d.ts +1 -0
  159. package/dist/lib/modules/portal/profile/details/subscriptions/Subscriptions.d.ts +1 -0
  160. package/dist/lib/modules/portal/profile/sections/Balance.d.ts +1 -0
  161. package/dist/lib/modules/portal/profile/sections/LoyaltyTransactions.d.ts +1 -0
  162. package/dist/lib/modules/portal/profile/sections/Section.d.ts +5 -0
  163. package/dist/lib/modules/portal/profile/sections/Stats.d.ts +1 -0
  164. package/dist/lib/modules/portal/profile/sections/Subscriptions.d.ts +1 -0
  165. package/dist/lib/modules/portal/rewards/Reward.d.ts +11 -0
  166. package/dist/lib/modules/portal/rewards/Rewards.d.ts +1 -0
  167. package/dist/lib/modules/portal/rewards/RewardsContent.d.ts +8 -0
  168. package/dist/lib/modules/portal/vouchers/Voucher.d.ts +9 -0
  169. package/dist/lib/modules/portal/vouchers/Vouchers.d.ts +1 -0
  170. package/dist/lib/modules/prepaid/HandlePrepaid.d.ts +1 -0
  171. package/dist/lib/modules/voucher/HandleVoucher.d.ts +14 -0
  172. package/dist/lib/modules/voucher/IdentifyVoucher.d.ts +1 -0
  173. package/dist/lib/routing/AuthenticatedRoute.d.ts +6 -0
  174. package/dist/lib/routing/ContactRoutes.d.ts +1 -0
  175. package/dist/lib/routing/PortalRoutes.d.ts +1 -0
  176. package/dist/lib/routing/Router.d.ts +1 -0
  177. package/dist/lib/routing/RouterStateReporter.d.ts +16 -0
  178. package/dist/lib/routing/routes.d.ts +3 -0
  179. package/dist/lib/types/Contact.d.ts +35 -0
  180. package/dist/lib/types/Giftcard.d.ts +47 -0
  181. package/dist/lib/types/PortalSession.d.ts +61 -0
  182. package/dist/lib/types/Prepaid.d.ts +27 -0
  183. package/dist/lib/types/Reward.d.ts +18 -0
  184. package/dist/lib/types/Subscription.d.ts +32 -0
  185. package/dist/lib/types/Voucher.d.ts +39 -0
  186. package/dist/mail-CILHEgMY.js +32 -0
  187. package/dist/notificationErrorV2-CtLIl0uv.js +50 -0
  188. package/dist/notificationSuccessV2-CiOOunIj.js +50 -0
  189. package/dist/notificationWarningV2-DeiXPjap.js +50 -0
  190. package/dist/portal-sessions.es.js +45723 -35379
  191. package/dist/portal-sessions.umd.js +76 -69
  192. package/dist/qr-scanner-worker.min-uyv8r9jq.js +20 -0
  193. package/dist/settings-hMBGAHeo.js +40 -0
  194. package/dist/shopping-bag-D83pzW-N.js +48 -0
  195. package/dist/star-DQL2OQsB.js +34 -0
  196. package/dist/style.css +24 -1
  197. package/dist/user-DATIDkwc.js +28 -0
  198. package/package.json +52 -54
  199. package/dist/calendar-DatiUSvc.js +0 -19
  200. package/dist/camera-switch-BG4ghgtr.js +0 -19
  201. package/dist/caret-left-BzIJ4OR3.js +0 -19
  202. package/dist/close-BOnvojez.js +0 -19
  203. package/dist/crossBlack-D3AScCz7.js +0 -19
  204. package/dist/dollar-BiByq0t0.js +0 -19
  205. package/dist/edit-GxItFJF8.js +0 -19
  206. package/dist/home-BRXF8Ydg.js +0 -19
  207. package/dist/information-kCveus0e.js +0 -19
  208. package/dist/mail-Dn-PppcI.js +0 -19
  209. package/dist/notificationErrorV2-BT7C7lnC.js +0 -19
  210. package/dist/notificationSuccessV2-CD4Nzkx1.js +0 -19
  211. package/dist/notificationWarningV2-Ce-MU9nv.js +0 -19
  212. package/dist/portal-sessions.es.d.ts +0 -173
  213. package/dist/qr-scanner-worker.min-BT9FO00c.js +0 -115
  214. package/dist/settings-iI_Z4aYk.js +0 -19
  215. package/dist/shopping-bag-gCcU6Sk5.js +0 -19
  216. package/dist/star-B5vZfVjf.js +0 -19
  217. package/dist/user-CefiGOdl.js +0 -19
package/README.md CHANGED
@@ -1,91 +1,100 @@
1
- # Portal Sessions by Leat | Piggy
1
+ # Portal Sessions by Leat
2
2
 
3
- This is the Javascript SDK for integrating with Leat | Piggy using Portal Sessions. Sign up for a free Leat | Piggy
4
- account [here](https://business.piggy.eu/sign-up).
3
+ JavaScript SDK for integrating with Leat using Portal Sessions. Sign up for a free account [here](https://business.leat.com/sign-up).
5
4
 
6
- More information on Portal Sessions and their specific API calls can be found on
7
- the [API Documentation](https://docs.piggy.eu/v3/oauth/portal-sessions).
5
+ API documentation: [docs.leat.com](https://docs.leat.com)
8
6
 
9
7
  ## Installation
10
8
 
11
- Install using
12
-
13
9
  ```
14
10
  npm install @leatcom/portal-sessions
15
11
  ```
16
12
 
17
13
  ```
18
- yarn add @leatcom/portal-sessions
14
+ pnpm add @leatcom/portal-sessions
19
15
  ```
20
16
 
21
- ## Documentation
22
-
23
- * [API Documentation & Reference](https://docs.piggy.eu)
24
-
25
17
  ## Usage
26
18
 
27
- Portal Sessions come in different types, each with their own use. To initiate a Portal Sessions, an API key is required,
28
- which can be created in your [account's Dashboard](https://business.piggy.eu). A Portal BaseSession is also always
29
- created for
30
- a specific `Shop`, so the `shopUuid` is also required. You can find a Shop's UUID in
31
- your [Dashboard](https://business.piggy.eu/settings/shop-management/shops?tab=profiles) or
32
- by [API](https://docs.piggy.eu/v3/oauth/shops).
19
+ There are two ways to use the SDK:
33
20
 
34
- Currently, there are five Portal BaseSession types:
21
+ ### PortalSession — Create a New Session
35
22
 
36
- * `PORTAL`: This is the 'default' session type, which doesn't have a predefined aim, but rather allows for flexible use.
37
- See this as a way for customers to login to their own portal.
38
- * `REDEEM_GIFTCARD`: A session to use and redeem gift card(s). Best used as payment option.
39
- * `TOP_UP_GIFTCARD`: A session to sell and/or top up existing gift cards.
40
- * `PAY_PREPAID`: A session to handle prepaid transactions.
41
- * `TOP_UP_PREPAID`: A session to top up prepaid balance.
42
- * `POINTS_TRANSACTION`: A session to handle an order and a subsequent credit reception.
43
- * `VOUCHER`: A session to redeem vouchers.
23
+ Requires an API key (from your [Dashboard](https://business.leat.com)) and a `shopUuid` or via [API](https://docs.leat.com/v3/oauth/shops)).
44
24
 
45
- Initiate a new Portal BaseSession as follows:
25
+ ```jsx
26
+ import { PortalSession, PortalType } from "@leatcom/portal-sessions";
46
27
 
47
- ```
48
28
  <PortalSession
49
- apiKey={apiKey}
50
- shopUuid={shopUuid}
51
- type="PORTAL"
52
- onRedeemVoucher={(voucher) => handleVoucherLogic(voucher)}
29
+ apiKey="your-api-key"
30
+ shopUuid="your-shop-uuid"
31
+ type={PortalType.PORTAL}
32
+ onContactLink={(contact) => console.log(contact)}
53
33
  />
54
34
  ```
55
35
 
56
- ## Portal BaseSession Props
57
-
58
- | Prop | Type | Required | Description |
59
- |-------------------------------|--------------------------------------------------------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
60
- | `apiKey` | `string` | Yes | API key used to authenticate. |
61
- | `shopUuid` | `string` | Yes | The shop's uuid. |
62
- | `contactUuid` | `string` | No | Optional contact uuid. This opens the portal session for this contact specifically. |
63
- | `type` | `PortalType` | No | Optional portal type, defaults to `"PORTAL"`. |
64
- | `primaryIdentificationMethod` | `string` | No | Start the identification flow with either `"email"` or `"identifier"`, defaults to `"identifier"`. |
65
- | `cameraService` | `number` | No | Specify which camera package to use to scan QR codes. |
66
- | `cameraFacingMode` | `string` | No | [MediaTrackConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints) facingMode. Specifies the default camera if applicable (`"user"` (front) or `"environment"` (back)), defaults to `"user"`. |
67
- | `enableEmailIdentification` | `boolean` | No | Optional alternative route to identify a contact. |
68
- | `enableOnScreenKeyboard` | `boolean` | No | Optional on-screen keyboard. |
69
- | `enableMarketingPreferences` | `boolean` | No | Optional additional screen to select marketing preferences when registering new contacts. |
70
- | `allowMultipleGiftcards` | `boolean` | No | Allow using multiple giftcards in one session. Applies to sessions with `PortalType` `"REDEEM_GIFTCARD"`. |
71
- | `amountInCents` | `number` | No | A purchase amount in cents. Applies to sessions with `PortalType` `"REDEEM_GIFTCARD"` and `"PAY_PREPAID"`. |
72
- | `onContactLink` | `(contact: ContactResource) => void` | No | Optional callback. Called when a contact is linked to the portal session. |
73
- | `onClaimReward` | `(reward: RewardResource, transactionUuid?: string) => void` | No | Optional callback. Called when a reward is claimed. |
74
- | `onRedeemVoucher` | `(voucher: VoucherResource) => void` | No | Optional callback. Called when a voucher is redeemed. |
75
- | `onUseGiftcard` | `(giftcardTransaction: GiftcardTransactionResource) => void` | No | Optional callback. Called when a giftcard payment is made. |
36
+ ### UuidSession — Resume an Existing Session
76
37
 
77
- ## Types
38
+ Opens a portal session by its UUID, useful when a session was already created server-side.
39
+
40
+ ```jsx
41
+ import { UuidSession } from "@leatcom/portal-sessions";
78
42
 
79
- `PortalType`
43
+ <UuidSession uuid="existing-session-uuid" />
44
+ ```
45
+
46
+ ## PortalSession Props
47
+
48
+ | Prop | Type | Required | Description |
49
+ |------|------|----------|-------------|
50
+ | `apiKey` | `string` | Yes | API key used to authenticate. |
51
+ | `shopUuid` | `string` | Yes | The shop's UUID. |
52
+ | `type` | `PortalType` | No | Session type, defaults to `"PORTAL"`. |
53
+ | `host` | `string` | No | Custom API host URL. |
54
+ | `debug` | `boolean` | No | Enable debug mode. |
55
+ | `contactUuid` | `string` | No | Opens the session for a specific contact. |
56
+ | `amountInCents` | `number` | No | Purchase amount in cents. Used with `REDEEM_GIFTCARD` and `PAY_PREPAID`. |
57
+ | `allowMultipleGiftcards` | `boolean` | No | Allow multiple giftcards in one session. Used with `REDEEM_GIFTCARD`. |
58
+ | `enableRegistration` | `boolean` | No | Allow new contact registration. |
59
+ | `enableEmailIdentification` | `boolean` | No | Enable email as an identification method. |
60
+ | `enableOnScreenKeyboard` | `boolean` | No | Show an on-screen keyboard. |
61
+ | `enableMarketingPreferences` | `boolean` | No | Show marketing preferences during registration. |
62
+ | `primaryIdentificationMethod` | `PrimaryIdentificationMethod` | No | Start identification with `"email"` or `"identifier"` (default). |
63
+ | `cameraService` | `1 \| 2 \| 3 \| 4` | No | QR code camera package to use. |
64
+ | `cameraFacingMode` | `FacingMode \| string` | No | Camera facing mode: `"user"` (front) or `"environment"` (back). |
65
+ | `onContactLink` | `(contact: ContactResource) => void` | No | Called when a contact is linked. |
66
+ | `onClaimReward` | `(reward: RewardResource, transactionUuid?: string) => void` | No | Called when a reward is claimed. |
67
+ | `onRedeemVoucher` | `(voucher: VoucherResource) => void` | No | Called when a voucher is redeemed. |
68
+ | `onUseGiftcard` | `(giftcardTransaction: GiftcardTransactionResource) => void` | No | Called when a giftcard payment is made. |
69
+ | `onCreateTransaction` | `(creditReceptionId: number) => void` | No | Called when a points transaction is created. |
70
+ | `onCreatePrepaidTransaction` | `(prepaidTransaction: PrepaidTransaction) => void` | No | Called when a prepaid transaction is created. |
71
+
72
+ ## UuidSession Props
73
+
74
+ | Prop | Type | Required | Description |
75
+ |------|------|----------|-------------|
76
+ | `uuid` | `string` | Yes | The portal session UUID. |
77
+ | `host` | `string` | No | Custom API host URL. |
78
+ | `debug` | `boolean` | No | Enable debug mode. |
79
+
80
+ ## Types
80
81
 
81
- ```javascript
82
- export enum PortalType {
82
+ ```typescript
83
+ enum PortalType {
84
+ GENERIC = "GENERIC",
85
+ GIFTCARD = "GIFTCARD",
83
86
  REDEEM_GIFTCARD = "REDEEM_GIFTCARD",
84
87
  TOP_UP_GIFTCARD = "TOP_UP_GIFTCARD",
85
88
  PORTAL = "PORTAL",
89
+ PREPAID = "PREPAID",
86
90
  PAY_PREPAID = "PAY_PREPAID",
87
91
  TOP_UP_PREPAID = "TOP_UP_PREPAID",
88
92
  POINTS_TRANSACTION = "POINTS_TRANSACTION",
89
93
  VOUCHER = "VOUCHER",
90
94
  }
95
+
96
+ enum FacingMode {
97
+ USER = "user",
98
+ ENVIRONMENT = "environment",
99
+ }
91
100
  ```
@@ -0,0 +1,35 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "dd4e73c8-4a1e-4d77-a182-3bed117339ee", e._sentryDebugIdIdentifier = "sentry-dbid-dd4e73c8-4a1e-4d77-a182-3bed117339ee");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/calendar.svg?react
18
+ var t = (t) => /* @__PURE__ */ e("svg", {
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ width: 24,
21
+ height: 24,
22
+ viewBox: "0 0 24 24",
23
+ fill: "none",
24
+ ...t,
25
+ children: /* @__PURE__ */ e("path", {
26
+ d: "M8 4.75V8.25M16 4.75V8.25M7.75 10.75H16.25M6.75 19.25H17.25C18.3546 19.25 19.25 18.3546 19.25 17.25V8.75C19.25 7.64543 18.3546 6.75 17.25 6.75H6.75C5.64543 6.75 4.75 7.64543 4.75 8.75V17.25C4.75 18.3546 5.64543 19.25 6.75 19.25Z",
27
+ strokeWidth: 1.5,
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ })
31
+ });
32
+ //#endregion
33
+ export { t as default };
34
+
35
+ //# sourceMappingURL=calendar-Can0qQlp.js.map
@@ -0,0 +1,32 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "939f3ec2-d1bb-49af-aea3-3e2c21d62e77", e._sentryDebugIdIdentifier = "sentry-dbid-939f3ec2-d1bb-49af-aea3-3e2c21d62e77");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/camera-switch.svg?react
18
+ var t = (t) => /* @__PURE__ */ e("svg", {
19
+ height: 24,
20
+ viewBox: "0 0 24 24",
21
+ width: 24,
22
+ xmlns: "http://www.w3.org/2000/svg",
23
+ ...t,
24
+ children: /* @__PURE__ */ e("path", {
25
+ d: "m21.25 7.5c.3796958 0 .693491.28215388.7431534.64822944l.0068466.10177056v8.5c0 1.7330315-1.3564548 3.1492459-3.0655761 3.2448552l-.1844239.0051448h-12.689l.71933009.7196699c.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184c-.26626657.2662665-.68293025.2904726-.97654174.0726181l-.08411844-.0726181-2-2-.06339799-.0720275c-.00244939-.0031685-.00487398-.0063571-.00727348-.0095656l.07067147.0815931c-.03705327-.0370533-.06941902-.077019-.09709724-.1191603-.01316484-.0201549-.025545-.0411423-.03690171-.0627516-.00483354-.0091218-.00919014-.0178526-.01336588-.0266478-.01274712-.0267885-.02425172-.0552483-.03400215-.0845099-.00225837-.0069437-.00418282-.0130149-.00602813-.019105-.02092163-.0684786-.0322748-.1419912-.0322748-.2181555 0-.0383922.00288471-.0761107.00844919-.1129505.00180466-.0115676.0038603-.0232773.00619514-.0349422.00494363-.0250031.01111685-.0492994.01844184-.073091.00362656-.0116598.00765847-.0237092.01200456-.0356703.00848426-.0232976.01778613-.0453662.02808241-.0668678.00549219-.0116011.01179514-.0239381.01846187-.0361292.01323523-.0240158.02734042-.0467392.04258121-.0686124.00392129-.0057417.00832657-.0118713.01283554-.0179483.0251194-.0332177.04801831-.0595185.07261815-.0841184l2-2c.29289322-.2928932.76776696-.2928932 1.06066018 0 .26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184-.72033009.7196699h12.69c.9181734 0 1.6711923-.7071103 1.7441988-1.6064728l.0058012-.1435272v-8.5c0-.41421356.3357864-.75.75-.75zm-3.0537883-5.35294824.0841184.07261815 2 2c.0254481.02544812.049076.05271652.0706715.08159313l-.0706715-.08159313c.0370533.03705328.069419.07701901.0970972.1191603.0131649.02015493.025545.04114226.0369017.06275154.0048336.00912187.0091902.01785262.0133659.02664784.0127471.02678853.0242517.0552483.0340022.08450994.0022583.00694369.0041828.01301489.0060281.01910493.0209216.06847868.0322748.14199127.0322748.21815554 0 .03839224-.0028847.07611073-.0084492.11295053-.0014988.0095454-.0031606.01924362-.0050138.02891241-.0051364.02710922-.0117072.05340972-.0196232.07912072-.0036265.0116598-.0076584.02370928-.0120045.03567032-.0084843.02329763-.0177862.04536621-.0280824.06686781-.0054922.01160108-.0117952.02393815-.0184619.03612923-.0132352.02401575-.0273404.04673917-.0425812.06861233-.0039213.00574174-.0083266.01187138-.0128356.0179483-.023778.03144192-.0451015.05615345-.0679264.07938506l-.0046917.00473338-2 2c-.2928932.29289321-.767767.29289321-1.0606602 0-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844.7183301-.71966991h-12.688c-.9181734 0-1.67119234.70711027-1.7441988 1.60647279l-.0058012.14352721v8.5c0 .4142136-.33578644.75-.75.75-.37969577 0-.69349096-.2821539-.74315338-.6482294l-.00684662-.1017706v-8.5c0-1.73303146 1.35645477-3.14924593 3.06557609-3.24485521l.18442391-.00514479h12.689l-.7193301-.71966991c-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844c.2662666-.26626656.6829303-.29047261.9765418-.07261815zm-6.1962117 5.85294824c2.209139 0 4 1.790861 4 4s-1.790861 4-4 4-4-1.790861-4-4 1.790861-4 4-4zm0 1.5c-1.3807119 0-2.5 1.1192881-2.5 2.5s1.1192881 2.5 2.5 2.5 2.5-1.1192881 2.5-2.5-1.1192881-2.5-2.5-2.5z",
26
+ fill: "#212121"
27
+ })
28
+ });
29
+ //#endregion
30
+ export { t as default };
31
+
32
+ //# sourceMappingURL=camera-switch-GycOMC0h.js.map
@@ -0,0 +1,35 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ec91193e-9482-4903-b213-3b6eaa4dd168", e._sentryDebugIdIdentifier = "sentry-dbid-ec91193e-9482-4903-b213-3b6eaa4dd168");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/caret-left.svg?react
18
+ var t = (t) => /* @__PURE__ */ e("svg", {
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ width: 24,
21
+ height: 24,
22
+ viewBox: "0 0 24 24",
23
+ fill: "none",
24
+ ...t,
25
+ children: /* @__PURE__ */ e("path", {
26
+ d: "M13.25 8.75L9.75 12L13.25 15.25",
27
+ strokeWidth: 1.5,
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ })
31
+ });
32
+ //#endregion
33
+ export { t as default };
34
+
35
+ //# sourceMappingURL=caret-left-Bu6hBQ5l.js.map
@@ -0,0 +1,31 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c55fcf66-7726-4e5b-b169-202fd8eb793a", e._sentryDebugIdIdentifier = "sentry-dbid-c55fcf66-7726-4e5b-b169-202fd8eb793a");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/close.svg?react
18
+ var t = (t) => /* @__PURE__ */ e("svg", {
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ viewBox: "0 0 24 24",
21
+ ...t,
22
+ children: /* @__PURE__ */ e("path", {
23
+ d: "M17.25 6.75L6.75 17.25M6.75 6.75L17.25 17.25",
24
+ strokeLinecap: "round",
25
+ strokeLinejoin: "round"
26
+ })
27
+ });
28
+ //#endregion
29
+ export { t as default };
30
+
31
+ //# sourceMappingURL=close-DEGYFjZn.js.map
@@ -0,0 +1,40 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5a2069c5-b1a4-4fb7-9afc-7b54da3e162c", e._sentryDebugIdIdentifier = "sentry-dbid-5a2069c5-b1a4-4fb7-9afc-7b54da3e162c");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/crossBlack.svg?react
18
+ var n = (n) => /* @__PURE__ */ t("svg", {
19
+ viewBox: "0 0 24 24",
20
+ fill: "none",
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ ...n,
23
+ children: [/* @__PURE__ */ e("path", {
24
+ d: "M4.7002 4.70016L11.2999 11.2998",
25
+ stroke: "#000",
26
+ strokeWidth: 1.8,
27
+ strokeLinecap: "round",
28
+ strokeLinejoin: "round"
29
+ }), /* @__PURE__ */ e("path", {
30
+ d: "M11.2998 4.70016L4.70014 11.2998",
31
+ stroke: "#000",
32
+ strokeWidth: 1.8,
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ })]
36
+ });
37
+ //#endregion
38
+ export { n as default };
39
+
40
+ //# sourceMappingURL=crossBlack-nmm64QX1.js.map
@@ -0,0 +1,56 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8726c265-da4d-4a4e-91d3-60961359bdd2", e._sentryDebugIdIdentifier = "sentry-dbid-8726c265-da4d-4a4e-91d3-60961359bdd2");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/dollar.svg?react
18
+ var n = (n) => /* @__PURE__ */ t("svg", {
19
+ width: 24,
20
+ height: 24,
21
+ fill: "none",
22
+ viewBox: "0 0 24 24",
23
+ ...n,
24
+ children: [
25
+ /* @__PURE__ */ e("circle", {
26
+ cx: 12,
27
+ cy: 12,
28
+ r: 7.25,
29
+ strokeLinecap: "round",
30
+ strokeLinejoin: "round",
31
+ strokeWidth: 1.5
32
+ }),
33
+ /* @__PURE__ */ e("path", {
34
+ strokeLinecap: "round",
35
+ strokeLinejoin: "round",
36
+ strokeWidth: 1.5,
37
+ d: "M14.25 8.75H11.375C10.4775 8.75 9.75 9.47754 9.75 10.375V10.375C9.75 11.2725 10.4775 12 11.375 12H12.625C13.5225 12 14.25 12.7275 14.25 13.625V13.625C14.25 14.5225 13.5225 15.25 12.625 15.25H9.75"
38
+ }),
39
+ /* @__PURE__ */ e("path", {
40
+ strokeLinecap: "round",
41
+ strokeLinejoin: "round",
42
+ strokeWidth: 1.5,
43
+ d: "M12 7.75V8.25"
44
+ }),
45
+ /* @__PURE__ */ e("path", {
46
+ strokeLinecap: "round",
47
+ strokeLinejoin: "round",
48
+ strokeWidth: 1.5,
49
+ d: "M12 15.75V16.25"
50
+ })
51
+ ]
52
+ });
53
+ //#endregion
54
+ export { n as default };
55
+
56
+ //# sourceMappingURL=dollar-BbDPUsF1.js.map
@@ -0,0 +1,31 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "266b565e-8717-4046-807b-1b25ed2536ee", e._sentryDebugIdIdentifier = "sentry-dbid-266b565e-8717-4046-807b-1b25ed2536ee");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/edit.svg?react
18
+ var t = (t) => /* @__PURE__ */ e("svg", {
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ viewBox: "0 0 24 24",
21
+ ...t,
22
+ children: /* @__PURE__ */ e("path", {
23
+ d: "M19.25 19.25H13.75M9 18.25L4.75 19.25L5.75 15L15.0429 5.70711C15.4334 5.31658 16.0666 5.31658 16.4571 5.70711L18.2929 7.54289C18.6834 7.93342 18.6834 8.56658 18.2929 8.95711L9 18.25Z",
24
+ strokeLinecap: "round",
25
+ strokeLinejoin: "round"
26
+ })
27
+ });
28
+ //#endregion
29
+ export { t as default };
30
+
31
+ //# sourceMappingURL=edit-xcD5f5zi.js.map
@@ -0,0 +1,40 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "d7aff11d-5781-480b-872c-51a761663927", e._sentryDebugIdIdentifier = "sentry-dbid-d7aff11d-5781-480b-872c-51a761663927");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/home.svg?react
18
+ var n = (n) => /* @__PURE__ */ t("svg", {
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ width: 24,
21
+ height: 24,
22
+ viewBox: "0 0 24 24",
23
+ fill: "none",
24
+ ...n,
25
+ children: [/* @__PURE__ */ e("path", {
26
+ d: "M6.75024 19.2502H17.2502C18.3548 19.2502 19.2502 18.3548 19.2502 17.2502V9.75025L12.0002 4.75024L4.75024 9.75025V17.2502C4.75024 18.3548 5.64568 19.2502 6.75024 19.2502Z",
27
+ strokeWidth: 1.5,
28
+ strokeLinecap: "round",
29
+ strokeLinejoin: "round"
30
+ }), /* @__PURE__ */ e("path", {
31
+ d: "M9.74963 15.7493C9.74963 14.6447 10.6451 13.7493 11.7496 13.7493H12.2496C13.3542 13.7493 14.2496 14.6447 14.2496 15.7493V19.2493H9.74963V15.7493Z",
32
+ strokeWidth: 1.5,
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ })]
36
+ });
37
+ //#endregion
38
+ export { n as default };
39
+
40
+ //# sourceMappingURL=home-Cdal78fu.js.map
@@ -0,0 +1,50 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "83d2de78-aaba-45ae-8ffc-b8082ad016ec", e._sentryDebugIdIdentifier = "sentry-dbid-83d2de78-aaba-45ae-8ffc-b8082ad016ec");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/information.svg?react
18
+ var n = (n) => /* @__PURE__ */ t("svg", {
19
+ width: 24,
20
+ height: 24,
21
+ fill: "none",
22
+ xmlns: "http://www.w3.org/2000/svg",
23
+ viewBox: "0 0 24 24",
24
+ ...n,
25
+ children: [
26
+ /* @__PURE__ */ e("path", {
27
+ strokeLinecap: "round",
28
+ strokeLinejoin: "round",
29
+ strokeWidth: 2,
30
+ d: "M12 13V15"
31
+ }),
32
+ /* @__PURE__ */ e("circle", {
33
+ cx: 12,
34
+ cy: 9,
35
+ r: .5
36
+ }),
37
+ /* @__PURE__ */ e("circle", {
38
+ cx: 12,
39
+ cy: 12,
40
+ r: 7.25,
41
+ strokeLinecap: "round",
42
+ strokeLinejoin: "round",
43
+ strokeWidth: 1.5
44
+ })
45
+ ]
46
+ });
47
+ //#endregion
48
+ export { n as default };
49
+
50
+ //# sourceMappingURL=information-Cq6k4byC.js.map
@@ -0,0 +1,33 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4c7d3b48-a6bc-4727-a613-80a187369a57", e._sentryDebugIdIdentifier = "sentry-dbid-4c7d3b48-a6bc-4727-a613-80a187369a57");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/leat_logo.svg?react
18
+ var t = (t) => /* @__PURE__ */ e("svg", {
19
+ width: 331,
20
+ height: 297,
21
+ viewBox: "0 0 331 297",
22
+ fill: "none",
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ ...t,
25
+ children: /* @__PURE__ */ e("path", {
26
+ d: "M260.633 120.233C256.252 141.975 249.682 152.798 240.921 152.798C234.584 152.798 229.087 148.853 224.473 140.869C219.859 132.931 213.661 120.233 205.88 102.869C196.606 81.8482 188.078 64.6769 180.297 51.2559C172.516 37.8843 162.543 26.0991 150.381 15.9495C138.171 5.84943 123.585 0.750732 106.531 0.750732C66.1304 0.750732 37.5648 28.4561 20.7431 83.8685C8.56966 124.042 1.84252 172.378 0.554243 228.779C0.43324 234.077 0.372738 236.726 1.39875 238.822C2.29091 240.644 3.79168 242.18 5.59324 243.113C7.66509 244.187 10.3571 244.187 15.7412 244.187H49.9832C55.1593 244.187 57.7474 244.187 59.7252 243.228C61.4991 242.369 62.8933 241.064 63.8691 239.352C64.9571 237.442 65.1344 234.785 65.489 229.471C66.8596 208.929 69.3476 191.707 72.9797 177.809C78.8046 155.346 86.5875 144.139 96.3253 144.139C103.13 144.139 109.001 148.131 113.848 156.068C118.693 164.053 125.264 177.425 133.558 196.281C146.234 227.402 159.374 251.837 172.982 269.586C186.634 287.335 205.135 296.186 228.48 296.186C267.948 296.186 295.536 268.672 311.379 213.645C322.875 173.601 329.307 125.115 330.648 68.1882C330.773 62.8736 330.836 60.2162 329.81 58.1189C328.918 56.2936 327.419 54.7593 325.615 53.8241C323.543 52.7496 320.846 52.7496 315.451 52.7496H281.752C276.521 52.7496 273.906 52.7496 271.908 53.7319C270.126 54.6081 268.711 55.9568 267.751 57.6953C266.675 59.6442 266.547 62.3114 266.293 67.6459C265.272 89.0314 263.387 106.562 260.633 120.233Z",
27
+ fill: "currentColor"
28
+ })
29
+ });
30
+ //#endregion
31
+ export { t as default };
32
+
33
+ //# sourceMappingURL=leat_logo-BpQeHCzL.js.map
@@ -0,0 +1,3 @@
1
+ import { AxiosError } from 'axios';
2
+ import { ApiError } from './types';
3
+ export declare const errorHandler: (error: AxiosError<ApiError, never>) => Promise<never>;
@@ -0,0 +1,9 @@
1
+ export type ErrorObject = {
2
+ [key: string]: string[];
3
+ };
4
+ export type ApiError = {
5
+ code: number;
6
+ message: string;
7
+ status_code: number;
8
+ errors?: ErrorObject;
9
+ };
@@ -0,0 +1,16 @@
1
+ type Config = {
2
+ url: string;
3
+ params?: any;
4
+ dataSetter: (data: any, meta: any) => void;
5
+ revalidateOnFocus?: boolean;
6
+ revalidateOnMount?: boolean;
7
+ refreshInterval?: number;
8
+ };
9
+ export declare function useFetcher(config: Config): {
10
+ data: import('axios').AxiosResponse<any, any, {}>;
11
+ pending: boolean;
12
+ error: any;
13
+ isValidating: boolean;
14
+ mutate: import('swr').KeyedMutator<import('axios').AxiosResponse<any, any, {}>>;
15
+ };
16
+ export {};
@@ -0,0 +1,7 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ export default function useHttp(): {
3
+ get: (url: string, payload?: {}, config?: AxiosRequestConfig) => Promise<import('axios').AxiosResponse<any, any, {}>>;
4
+ post: (url: string, payload?: {}, config?: AxiosRequestConfig) => Promise<import('axios').AxiosResponse<any, any, {}>>;
5
+ put: (url: string, payload?: {}, config?: AxiosRequestConfig) => Promise<import('axios').AxiosResponse<any, any, {}>>;
6
+ destroy: (url: string, payload?: {}) => Promise<import('axios').AxiosResponse<any, any, {}>>;
7
+ };
@@ -0,0 +1,16 @@
1
+ type Config = {
2
+ url: string;
3
+ params?: any;
4
+ dataSetter: (data: any, meta: any) => void;
5
+ revalidateOnFocus?: boolean;
6
+ revalidateOnMount?: boolean;
7
+ refreshInterval?: number;
8
+ };
9
+ export declare function useV2Fetcher(config: Config): {
10
+ data: import('axios').AxiosResponse<any, any, {}>;
11
+ pending: boolean;
12
+ error: any;
13
+ isValidating: boolean;
14
+ mutate: import('swr').KeyedMutator<import('axios').AxiosResponse<any, any, {}>>;
15
+ };
16
+ export {};
@@ -0,0 +1,7 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ export default function useV2Http(): {
3
+ get: (url: string, payload?: {}, config?: AxiosRequestConfig) => Promise<import('axios').AxiosResponse<any, any, {}>>;
4
+ post: (url: string, payload?: {}, config?: AxiosRequestConfig) => Promise<import('axios').AxiosResponse<any, any, {}>>;
5
+ put: (url: string, payload?: {}, config?: AxiosRequestConfig) => Promise<import('axios').AxiosResponse<any, any, {}>>;
6
+ destroy: (url: string, payload?: {}) => Promise<import('axios').AxiosResponse<any, any, {}>>;
7
+ };
@@ -0,0 +1,9 @@
1
+ type AnimatedCounterProps = {
2
+ asCurrency?: boolean;
3
+ currency?: string;
4
+ duration?: number;
5
+ start?: number;
6
+ value: number;
7
+ };
8
+ export default function AnimatedCounter({ value, start, duration, currency, asCurrency, }: AnimatedCounterProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { default as AnimatedCounter } from './AnimatedCounter';