@designcrowd/fe-shared-lib 1.4.5 → 1.4.6-ast-generate-ai-1

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 (65) hide show
  1. package/package.json +1 -2
  2. package/public/css/tailwind-brandCrowd.css +2414 -0
  3. package/public/css/tailwind-brandPage.css +2098 -0
  4. package/public/css/tailwind-crazyDomains.css +2414 -0
  5. package/public/css/tailwind-designCom.css +2414 -0
  6. package/public/css/tailwind-designCrowd.css +2414 -0
  7. package/src/atoms/components/Checkbox/Checkbox.stories.js +134 -1
  8. package/src/atoms/components/Checkbox/Checkbox.vue +2 -8
  9. package/src/atoms/components/Dropdown/DropdownItem.vue +1 -1
  10. package/src/atoms/components/Icon/Icon.stories.js +4 -0
  11. package/src/atoms/components/Icon/Icon.vue +104 -97
  12. package/src/atoms/components/Icon/icons/file.vue +7 -0
  13. package/src/atoms/components/Icon/icons/pen-tool.vue +7 -0
  14. package/src/atoms/components/Icon/icons/send.vue +12 -0
  15. package/src/atoms/components/Icon/icons/stop.vue +5 -0
  16. package/src/atoms/components/SparkleIcon/SparkleIcon.stories.js +182 -0
  17. package/src/atoms/components/SparkleIcon/SparkleIcon.vue +105 -0
  18. package/src/atoms/components/SparkleIcon/assets/animations/state-01.svg +5 -0
  19. package/src/atoms/components/SparkleIcon/assets/animations/state-02.svg +5 -0
  20. package/src/atoms/components/SparkleIcon/assets/animations/state-03.svg +5 -0
  21. package/src/atoms/components/SparkleIcon/assets/animations/state-04.svg +5 -0
  22. package/src/atoms/components/SparkleIcon/assets/animations/state-05.svg +5 -0
  23. package/src/atoms/components/SparkleIcon/assets/animations/state-06.svg +5 -0
  24. package/src/atoms/components/SparkleIcon/assets/animations/state-07.svg +5 -0
  25. package/src/atoms/components/SparkleIcon/assets/animations/state-08.svg +5 -0
  26. package/src/atoms/components/SparkleIcon/assets/sparkle.svg +3 -0
  27. package/src/atoms/components/SparkleIcon/index.ts +3 -0
  28. package/src/atoms/components/TextInput/TextInput.vue +2 -1
  29. package/src/atoms/components/Textarea/Textarea.vue +4 -1
  30. package/src/bundles/bundled-translations.de-DE.json +2 -1
  31. package/src/bundles/bundled-translations.es-ES.json +2 -1
  32. package/src/bundles/bundled-translations.fr-CA.json +2 -1
  33. package/src/bundles/bundled-translations.fr-FR.json +2 -1
  34. package/src/bundles/bundled-translations.json +2 -1
  35. package/src/bundles/bundled-translations.pt-BR.json +2 -1
  36. package/src/bundles/bundled-translations.pt-PT.json +2 -1
  37. package/src/experiences/clients/brand-crowd-api.client.js +12 -1
  38. package/src/experiences/clients/brand-page-api.client.js +15 -0
  39. package/src/experiences/components/AuthFlow/AuthModal.vue +1 -1
  40. package/src/experiences/components/AuthFlow/ForgotPassword.vue +1 -1
  41. package/src/experiences/components/AuthFlow/ResetPassword.vue +1 -1
  42. package/src/experiences/components/AuthFlow/ResetPasswordSuccessModal.vue +1 -1
  43. package/src/experiences/components/AuthFlow/SocialSignInButton.vue +1 -1
  44. package/src/experiences/components/AuthFlow/SubmissionButton.vue +1 -1
  45. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +20 -0
  46. package/src/experiences/components/PaymentConfigList/PaymentConfigDeleteConfigModal.vue +7 -5
  47. package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +77 -39
  48. package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +45 -0
  49. package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +3 -3
  50. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.de-DE.json +2 -1
  51. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.es-ES.json +2 -1
  52. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-CA.json +2 -1
  53. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-FR.json +2 -1
  54. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.json +2 -1
  55. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-BR.json +2 -1
  56. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-PT.json +2 -1
  57. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +1 -1
  58. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +6 -0
  59. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +3 -3
  60. package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +1 -1
  61. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadModal.vue +1 -1
  62. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +6 -1
  63. package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +6 -0
  64. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +1 -1
  65. package/src/atoms/components/Icon/icons/calculator.vue +0 -3
@@ -0,0 +1,182 @@
1
+ import SparkleIcon from './SparkleIcon.vue';
2
+
3
+ export default {
4
+ title: 'Components/SparkleIcon',
5
+ component: SparkleIcon,
6
+ argTypes: {
7
+ animated: {
8
+ control: 'boolean',
9
+ description: 'Whether the sparkle icon should animate',
10
+ defaultValue: false,
11
+ },
12
+ size: {
13
+ control: { type: 'select' },
14
+ options: ['sm', 'md', 'lg', 12, 16, 20, 24, 32, 48],
15
+ description: 'Size of the icon (predefined or custom number)',
16
+ defaultValue: 'md',
17
+ },
18
+ },
19
+ };
20
+
21
+ // Default story
22
+ export const Default = (args) => ({
23
+ components: { SparkleIcon },
24
+ setup() {
25
+ return { args };
26
+ },
27
+ template: '<SparkleIcon v-bind="args" />',
28
+ });
29
+
30
+ Default.args = {
31
+ animated: false,
32
+ size: 'md',
33
+ };
34
+
35
+ // Static icon story
36
+ export const Static = () => ({
37
+ components: { SparkleIcon },
38
+ template: `
39
+ <div class="tw-flex tw-gap-4 tw-items-center">
40
+ <SparkleIcon size="sm" />
41
+ <SparkleIcon size="md" />
42
+ <SparkleIcon size="lg" />
43
+ </div>
44
+ `,
45
+ });
46
+
47
+ Static.story = {
48
+ name: 'Static Sizes',
49
+ };
50
+
51
+ // Animated icon story
52
+ export const Animated = () => ({
53
+ components: { SparkleIcon },
54
+ template: `
55
+ <div class="tw-flex tw-gap-4 tw-items-center">
56
+ <SparkleIcon :animated="true" size="sm" />
57
+ <SparkleIcon :animated="true" size="md" />
58
+ <SparkleIcon :animated="true" size="lg" />
59
+ </div>
60
+ `,
61
+ });
62
+
63
+ Animated.story = {
64
+ name: 'Animated Sizes',
65
+ };
66
+
67
+ // Custom sizes story
68
+ export const CustomSizes = () => ({
69
+ components: { SparkleIcon },
70
+ template: `
71
+ <div class="tw-flex tw-gap-4 tw-items-center">
72
+ <SparkleIcon :size="12" />
73
+ <SparkleIcon :size="16" />
74
+ <SparkleIcon :size="20" />
75
+ <SparkleIcon :size="24" />
76
+ <SparkleIcon :size="32" />
77
+ <SparkleIcon :size="48" />
78
+ </div>
79
+ `,
80
+ });
81
+
82
+ CustomSizes.story = {
83
+ name: 'Custom Number Sizes',
84
+ };
85
+
86
+ // Interactive toggle story
87
+ export const Interactive = () => ({
88
+ components: { SparkleIcon },
89
+ data() {
90
+ return {
91
+ isAnimated: false,
92
+ };
93
+ },
94
+ template: `
95
+ <div class="tw-flex tw-flex-col tw-gap-4">
96
+ <div class="tw-flex tw-items-center tw-gap-4">
97
+ <SparkleIcon :animated="isAnimated" size="lg" />
98
+ <button
99
+ class="tw-px-4 tw-py-2 tw-bg-primary-500 tw-text-white tw-rounded hover:tw-bg-blue-600"
100
+ @click="isAnimated = !isAnimated"
101
+ >
102
+ {{ isAnimated ? 'Stop Animation' : 'Start Animation' }}
103
+ </button>
104
+ </div>
105
+ <p class="tw-text-sm tw-text-gray-600">
106
+ Click the button to toggle animation
107
+ </p>
108
+ </div>
109
+ `,
110
+ });
111
+
112
+ Interactive.story = {
113
+ name: 'Interactive Toggle',
114
+ };
115
+
116
+ // All variations showcase
117
+ export const Showcase = () => ({
118
+ components: { SparkleIcon },
119
+ template: `
120
+ <div class="tw-p-6">
121
+ <h3 class="tw-text-lg tw-font-bold tw-mb-4">Sparkle Icon Showcase</h3>
122
+
123
+ <div class="tw-mb-6">
124
+ <h4 class="tw-text-md tw-font-semibold tw-mb-2">Static Icons</h4>
125
+ <div class="tw-flex tw-gap-4 tw-items-center tw-p-4 tw-bg-gray-100 tw-rounded">
126
+ <div class="tw-text-center">
127
+ <SparkleIcon size="sm" />
128
+ <p class="tw-text-xs tw-mt-1">Small (12px)</p>
129
+ </div>
130
+ <div class="tw-text-center">
131
+ <SparkleIcon size="md" />
132
+ <p class="tw-text-xs tw-mt-1">Medium (16px)</p>
133
+ </div>
134
+ <div class="tw-text-center">
135
+ <SparkleIcon size="lg" />
136
+ <p class="tw-text-xs tw-mt-1">Large (20px)</p>
137
+ </div>
138
+ </div>
139
+ </div>
140
+
141
+ <div class="tw-mb-6">
142
+ <h4 class="tw-text-md tw-font-semibold tw-mb-2">Animated Icons</h4>
143
+ <div class="tw-flex tw-gap-4 tw-items-center tw-p-4 tw-bg-gray-100 tw-rounded">
144
+ <div class="tw-text-center">
145
+ <SparkleIcon :animated="true" size="sm" />
146
+ <p class="tw-text-xs tw-mt-1">Small (12px)</p>
147
+ </div>
148
+ <div class="tw-text-center">
149
+ <SparkleIcon :animated="true" size="md" />
150
+ <p class="tw-text-xs tw-mt-1">Medium (16px)</p>
151
+ </div>
152
+ <div class="tw-text-center">
153
+ <SparkleIcon :animated="true" size="lg" />
154
+ <p class="tw-text-xs tw-mt-1">Large (20px)</p>
155
+ </div>
156
+ </div>
157
+ </div>
158
+
159
+ <div>
160
+ <h4 class="tw-text-md tw-font-semibold tw-mb-2">Custom Sizes</h4>
161
+ <div class="tw-flex tw-gap-4 tw-items-center tw-p-4 tw-bg-gray-100 tw-rounded">
162
+ <div class="tw-text-center">
163
+ <SparkleIcon :animated="true" :size="24" />
164
+ <p class="tw-text-xs tw-mt-1">24px</p>
165
+ </div>
166
+ <div class="tw-text-center">
167
+ <SparkleIcon :animated="true" :size="32" />
168
+ <p class="tw-text-xs tw-mt-1">32px</p>
169
+ </div>
170
+ <div class="tw-text-center">
171
+ <SparkleIcon :animated="true" :size="48" />
172
+ <p class="tw-text-xs tw-mt-1">48px</p>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ </div>
177
+ `,
178
+ });
179
+
180
+ Showcase.story = {
181
+ name: 'Complete Showcase',
182
+ };
@@ -0,0 +1,105 @@
1
+ <template>
2
+ <img :src="currentIcon" alt="AI" class="tw-flex-shrink-0" :style="sizeStyle" />
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import { ref, computed, watch, onUnmounted } from 'vue';
7
+ import sparkleIcon from './assets/sparkle.svg';
8
+ import sparkleState01 from './assets/animations/state-01.svg';
9
+ import sparkleState02 from './assets/animations/state-02.svg';
10
+ import sparkleState03 from './assets/animations/state-03.svg';
11
+ import sparkleState04 from './assets/animations/state-04.svg';
12
+ import sparkleState05 from './assets/animations/state-05.svg';
13
+ import sparkleState06 from './assets/animations/state-06.svg';
14
+ import sparkleState07 from './assets/animations/state-07.svg';
15
+ import sparkleState08 from './assets/animations/state-08.svg';
16
+
17
+ interface SparkleIconProps {
18
+ animated?: boolean;
19
+ size?: 'sm' | 'md' | 'lg' | number;
20
+ }
21
+
22
+ const props = withDefaults(defineProps<SparkleIconProps>(), {
23
+ animated: false,
24
+ size: 'md',
25
+ });
26
+
27
+ // Size mapping
28
+ const sizeMap = {
29
+ sm: 12,
30
+ md: 16,
31
+ lg: 20,
32
+ };
33
+
34
+ // Computed style for size
35
+ const sizeStyle = computed(() => {
36
+ const sizeValue = typeof props.size === 'number' ? props.size : sizeMap[props.size];
37
+
38
+ return {
39
+ width: `${sizeValue}px`,
40
+ height: `${sizeValue}px`,
41
+ };
42
+ });
43
+
44
+ // Animation frames
45
+ const sparkleFrames = [
46
+ sparkleState01,
47
+ sparkleState02,
48
+ sparkleState03,
49
+ sparkleState04,
50
+ sparkleState05,
51
+ sparkleState06,
52
+ sparkleState07,
53
+ sparkleState08,
54
+ ];
55
+
56
+ const currentFrame = ref(0);
57
+ let animationInterval: number | null = null;
58
+
59
+ // Computed property to return either static or animated icon
60
+ const currentIcon = computed(() => {
61
+ if (props.animated) {
62
+ return sparkleFrames[currentFrame.value];
63
+ }
64
+
65
+ return sparkleIcon;
66
+ });
67
+
68
+ // Start animation
69
+ const startAnimation = () => {
70
+ if (animationInterval) return;
71
+
72
+ currentFrame.value = 0;
73
+ animationInterval = window.setInterval(() => {
74
+ currentFrame.value = (currentFrame.value + 1) % sparkleFrames.length;
75
+ }, 100); // Change frame every 100ms
76
+ };
77
+
78
+ // Stop animation
79
+ const stopAnimation = () => {
80
+ if (animationInterval) {
81
+ clearInterval(animationInterval);
82
+ animationInterval = null;
83
+ }
84
+
85
+ currentFrame.value = 0;
86
+ };
87
+
88
+ // Watch animated prop to control animation
89
+ watch(
90
+ () => props.animated,
91
+ (isAnimated) => {
92
+ if (isAnimated) {
93
+ startAnimation();
94
+ } else {
95
+ stopAnimation();
96
+ }
97
+ },
98
+ { immediate: true },
99
+ );
100
+
101
+ // Cleanup on unmount
102
+ onUnmounted(() => {
103
+ stopAnimation();
104
+ });
105
+ </script>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.5 10C12.5 9.80469 12.4121 9.6582 12.2363 9.56055L8.95508 7.91992L7.28516 4.60938C7.20703 4.45312 7.07031 4.375 6.875 4.375C6.67969 4.375 6.54297 4.45312 6.46484 4.60938L4.79492 7.91992L1.51367 9.56055C1.33789 9.6582 1.25 9.80469 1.25 10C1.25 10.1953 1.33789 10.332 1.51367 10.4102L4.79492 12.0508L6.46484 15.3613C6.54297 15.5371 6.67969 15.625 6.875 15.625C7.07031 15.625 7.20703 15.5371 7.28516 15.3613L8.95508 12.0508L12.2363 10.4102C12.4121 10.332 12.5 10.1953 12.5 10Z" fill="#3F59F6"/>
3
+ <path d="M11.5625 5.3125C11.5625 5.3776 11.5885 5.42318 11.6406 5.44922L12.8125 5.9375L13.3008 7.10938C13.3268 7.16146 13.3724 7.1875 13.4375 7.1875C13.5026 7.1875 13.5482 7.16146 13.5742 7.10938L14.0625 5.9375L15.2344 5.44922C15.2865 5.42318 15.3125 5.3776 15.3125 5.3125C15.3125 5.2474 15.2865 5.20182 15.2344 5.17578L14.0625 4.6875L13.5742 3.51562C13.5482 3.46354 13.5026 3.4375 13.4375 3.4375C13.3724 3.4375 13.3268 3.46354 13.3008 3.51562L12.8125 4.6875L11.6406 5.17578C11.5885 5.20182 11.5625 5.2474 11.5625 5.3125Z" fill="#3F59F6"/>
4
+ <path d="M15.3125 14.6875C15.3125 14.6224 15.2865 14.5768 15.2344 14.5508L14.0625 14.0625L13.5742 12.8906C13.5482 12.8385 13.5026 12.8125 13.4375 12.8125C13.3724 12.8125 13.3268 12.8385 13.3008 12.8906L12.8125 14.0625L11.6406 14.5508C11.5885 14.5768 11.5625 14.6224 11.5625 14.6875C11.5625 14.7526 11.5885 14.7982 11.6406 14.8242L12.8125 15.3125L13.3008 16.4844C13.3268 16.5365 13.3724 16.5625 13.4375 16.5625C13.5026 16.5625 13.5482 16.5365 13.5742 16.4844L14.0625 15.3125L15.2344 14.8242C15.2865 14.7982 15.3125 14.7526 15.3125 14.6875Z" fill="#3F59F6"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.125 10C13.125 9.78299 13.0273 9.62023 12.832 9.51172L9.1862 7.6888L7.33073 4.01042C7.24392 3.83681 7.09201 3.75 6.875 3.75C6.65799 3.75 6.50608 3.83681 6.41927 4.01042L4.5638 7.6888L0.917969 9.51172C0.722656 9.62023 0.625 9.78299 0.625 10C0.625 10.217 0.722656 10.3689 0.917969 10.4557L4.5638 12.2786L6.41927 15.957C6.50608 16.1523 6.65799 16.25 6.875 16.25C7.09201 16.25 7.24392 16.1523 7.33073 15.957L9.1862 12.2786L12.832 10.4557C13.0273 10.3689 13.125 10.217 13.125 10Z" fill="#3F59F6"/>
3
+ <path d="M12.5 5.3125C12.5 5.34505 12.513 5.36784 12.5391 5.38086L13.125 5.625L13.3691 6.21094C13.3822 6.23698 13.4049 6.25 13.4375 6.25C13.4701 6.25 13.4928 6.23698 13.5059 6.21094L13.75 5.625L14.3359 5.38086C14.362 5.36784 14.375 5.34505 14.375 5.3125C14.375 5.27995 14.362 5.25716 14.3359 5.24414L13.75 5L13.5059 4.41406C13.4928 4.38802 13.4701 4.375 13.4375 4.375C13.4049 4.375 13.3822 4.38802 13.3691 4.41406L13.125 5L12.5391 5.24414C12.513 5.25716 12.5 5.27995 12.5 5.3125Z" fill="#3F59F6"/>
4
+ <path d="M14.375 14.6875C14.375 14.6549 14.362 14.6322 14.3359 14.6191L13.75 14.375L13.5059 13.7891C13.4928 13.763 13.4701 13.75 13.4375 13.75C13.4049 13.75 13.3822 13.763 13.3691 13.7891L13.125 14.375L12.5391 14.6191C12.513 14.6322 12.5 14.6549 12.5 14.6875C12.5 14.7201 12.513 14.7428 12.5391 14.7559L13.125 15L13.3691 15.5859C13.3822 15.612 13.4049 15.625 13.4375 15.625C13.4701 15.625 13.4928 15.612 13.5059 15.5859L13.75 15L14.3359 14.7559C14.362 14.7428 14.375 14.7201 14.375 14.6875Z" fill="#3F59F6"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.5 10C12.5 9.80469 12.4121 9.6582 12.2363 9.56055L8.95508 7.91992L7.28516 4.60938C7.20703 4.45312 7.07031 4.375 6.875 4.375C6.67969 4.375 6.54297 4.45312 6.46484 4.60938L4.79492 7.91992L1.51367 9.56055C1.33789 9.6582 1.25 9.80469 1.25 10C1.25 10.1953 1.33789 10.332 1.51367 10.4102L4.79492 12.0508L6.46484 15.3613C6.54297 15.5371 6.67969 15.625 6.875 15.625C7.07031 15.625 7.20703 15.5371 7.28516 15.3613L8.95508 12.0508L12.2363 10.4102C12.4121 10.332 12.5 10.1953 12.5 10Z" fill="#3F59F6"/>
3
+ <path d="M11.5625 5.3125C11.5625 5.3776 11.5885 5.42318 11.6406 5.44922L12.8125 5.9375L13.3008 7.10938C13.3268 7.16146 13.3724 7.1875 13.4375 7.1875C13.5026 7.1875 13.5482 7.16146 13.5742 7.10938L14.0625 5.9375L15.2344 5.44922C15.2865 5.42318 15.3125 5.3776 15.3125 5.3125C15.3125 5.2474 15.2865 5.20182 15.2344 5.17578L14.0625 4.6875L13.5742 3.51562C13.5482 3.46354 13.5026 3.4375 13.4375 3.4375C13.3724 3.4375 13.3268 3.46354 13.3008 3.51562L12.8125 4.6875L11.6406 5.17578C11.5885 5.20182 11.5625 5.2474 11.5625 5.3125Z" fill="#3F59F6"/>
4
+ <path d="M15.3125 14.6875C15.3125 14.6224 15.2865 14.5768 15.2344 14.5508L14.0625 14.0625L13.5742 12.8906C13.5482 12.8385 13.5026 12.8125 13.4375 12.8125C13.3724 12.8125 13.3268 12.8385 13.3008 12.8906L12.8125 14.0625L11.6406 14.5508C11.5885 14.5768 11.5625 14.6224 11.5625 14.6875C11.5625 14.7526 11.5885 14.7982 11.6406 14.8242L12.8125 15.3125L13.3008 16.4844C13.3268 16.5365 13.3724 16.5625 13.4375 16.5625C13.5026 16.5625 13.5482 16.5365 13.5742 16.4844L14.0625 15.3125L15.2344 14.8242C15.2865 14.7982 15.3125 14.7526 15.3125 14.6875Z" fill="#3F59F6"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.5625 10C11.5625 9.83724 11.4893 9.71517 11.3428 9.63379L8.6084 8.2666L7.2168 5.50781C7.15169 5.3776 7.03776 5.3125 6.875 5.3125C6.71224 5.3125 6.59831 5.3776 6.5332 5.50781L5.1416 8.2666L2.40723 9.63379C2.26074 9.71517 2.1875 9.83724 2.1875 10C2.1875 10.1628 2.26074 10.2767 2.40723 10.3418L5.1416 11.709L6.5332 14.4678C6.59831 14.6143 6.71224 14.6875 6.875 14.6875C7.03776 14.6875 7.15169 14.6143 7.2168 14.4678L8.6084 11.709L11.3428 10.3418C11.4893 10.2767 11.5625 10.1628 11.5625 10Z" fill="#3F59F6"/>
3
+ <path d="M10.625 5.3125C10.625 5.41016 10.6641 5.47852 10.7422 5.51758L12.5 6.25L13.2324 8.00781C13.2715 8.08594 13.3398 8.125 13.4375 8.125C13.5352 8.125 13.6035 8.08594 13.6426 8.00781L14.375 6.25L16.1328 5.51758C16.2109 5.47852 16.25 5.41016 16.25 5.3125C16.25 5.21484 16.2109 5.14648 16.1328 5.10742L14.375 4.375L13.6426 2.61719C13.6035 2.53906 13.5352 2.5 13.4375 2.5C13.3398 2.5 13.2715 2.53906 13.2324 2.61719L12.5 4.375L10.7422 5.10742C10.6641 5.14648 10.625 5.21484 10.625 5.3125Z" fill="#3F59F6"/>
4
+ <path d="M16.25 14.6875C16.25 14.5898 16.2109 14.5215 16.1328 14.4824L14.375 13.75L13.6426 11.9922C13.6035 11.9141 13.5352 11.875 13.4375 11.875C13.3398 11.875 13.2715 11.9141 13.2324 11.9922L12.5 13.75L10.7422 14.4824C10.6641 14.5215 10.625 14.5898 10.625 14.6875C10.625 14.7852 10.6641 14.8535 10.7422 14.8926L12.5 15.625L13.2324 17.3828C13.2715 17.4609 13.3398 17.5 13.4375 17.5C13.5352 17.5 13.6035 17.4609 13.6426 17.3828L14.375 15.625L16.1328 14.8926C16.2109 14.8535 16.25 14.7852 16.25 14.6875Z" fill="#3F59F6"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10 10C10 9.89149 9.95117 9.81011 9.85352 9.75586L8.0306 8.8444L7.10286 7.00521C7.05946 6.9184 6.98351 6.875 6.875 6.875C6.76649 6.875 6.69054 6.9184 6.64714 7.00521L5.7194 8.8444L3.89648 9.75586C3.79883 9.81011 3.75 9.89149 3.75 10C3.75 10.1085 3.79883 10.1845 3.89648 10.2279L5.7194 11.1393L6.64714 12.9785C6.69054 13.0762 6.76649 13.125 6.875 13.125C6.98351 13.125 7.05946 13.0762 7.10286 12.9785L8.0306 11.1393L9.85352 10.2279C9.95117 10.1845 10 10.1085 10 10Z" fill="#3F59F6"/>
3
+ <path d="M10 5.3125C10 5.43186 10.0477 5.51541 10.1432 5.56315L12.2917 6.45833L13.1868 8.60677C13.2346 8.70226 13.3181 8.75 13.4375 8.75C13.5569 8.75 13.6404 8.70226 13.6882 8.60677L14.5833 6.45833L16.7318 5.56315C16.8273 5.51541 16.875 5.43186 16.875 5.3125C16.875 5.19314 16.8273 5.10959 16.7318 5.06185L14.5833 4.16667L13.6882 2.01823C13.6404 1.92274 13.5569 1.875 13.4375 1.875C13.3181 1.875 13.2346 1.92274 13.1868 2.01823L12.2917 4.16667L10.1432 5.06185C10.0477 5.10959 10 5.19314 10 5.3125Z" fill="#3F59F6"/>
4
+ <path d="M16.875 14.6875C16.875 14.5681 16.8273 14.4846 16.7318 14.4368L14.5833 13.5417L13.6882 11.3932C13.6404 11.2977 13.5569 11.25 13.4375 11.25C13.3181 11.25 13.2346 11.2977 13.1868 11.3932L12.2917 13.5417L10.1432 14.4368C10.0477 14.4846 10 14.5681 10 14.6875C10 14.8069 10.0477 14.8904 10.1432 14.9382L12.2917 15.8333L13.1868 17.9818C13.2346 18.0773 13.3181 18.125 13.4375 18.125C13.5569 18.125 13.6404 18.0773 13.6882 17.9818L14.5833 15.8333L16.7318 14.9382C16.8273 14.8904 16.875 14.8069 16.875 14.6875Z" fill="#3F59F6"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.0625 10C9.0625 9.92405 9.02832 9.86708 8.95996 9.8291L7.68392 9.19108L7.03451 7.90365C7.00412 7.84288 6.95095 7.8125 6.875 7.8125C6.79905 7.8125 6.74588 7.84288 6.71549 7.90365L6.06608 9.19108L4.79004 9.8291C4.72168 9.86708 4.6875 9.92405 4.6875 10C4.6875 10.076 4.72168 10.1291 4.79004 10.1595L6.06608 10.7975L6.71549 12.085C6.74588 12.1533 6.79905 12.1875 6.875 12.1875C6.95095 12.1875 7.00412 12.1533 7.03451 12.085L7.68392 10.7975L8.95996 10.1595C9.02832 10.1291 9.0625 10.076 9.0625 10Z" fill="#3F59F6"/>
3
+ <path d="M9.0625 5.3125C9.0625 5.46441 9.12326 5.57075 9.24479 5.63151L11.9792 6.77083L13.1185 9.50521C13.1793 9.62674 13.2856 9.6875 13.4375 9.6875C13.5894 9.6875 13.6957 9.62674 13.7565 9.50521L14.8958 6.77083L17.6302 5.63151C17.7517 5.57075 17.8125 5.46441 17.8125 5.3125C17.8125 5.16059 17.7517 5.05425 17.6302 4.99349L14.8958 3.85417L13.7565 1.11979C13.6957 0.998264 13.5894 0.9375 13.4375 0.9375C13.2856 0.9375 13.1793 0.998264 13.1185 1.11979L11.9792 3.85417L9.24479 4.99349C9.12326 5.05425 9.0625 5.16059 9.0625 5.3125Z" fill="#3F59F6"/>
4
+ <path d="M17.8125 14.6875C17.8125 14.5356 17.7517 14.4293 17.6302 14.3685L14.8958 13.2292L13.7565 10.4948C13.6957 10.3733 13.5894 10.3125 13.4375 10.3125C13.2856 10.3125 13.1793 10.3733 13.1185 10.4948L11.9792 13.2292L9.24479 14.3685C9.12326 14.4293 9.0625 14.5356 9.0625 14.6875C9.0625 14.8394 9.12326 14.9457 9.24479 15.0065L11.9792 16.1458L13.1185 18.8802C13.1793 19.0017 13.2856 19.0625 13.4375 19.0625C13.5894 19.0625 13.6957 19.0017 13.7565 18.8802L14.8958 16.1458L17.6302 15.0065C17.7517 14.9457 17.8125 14.8394 17.8125 14.6875Z" fill="#3F59F6"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10 10C10 9.89149 9.95117 9.81011 9.85352 9.75586L8.0306 8.8444L7.10286 7.00521C7.05946 6.9184 6.98351 6.875 6.875 6.875C6.76649 6.875 6.69054 6.9184 6.64714 7.00521L5.7194 8.8444L3.89648 9.75586C3.79883 9.81011 3.75 9.89149 3.75 10C3.75 10.1085 3.79883 10.1845 3.89648 10.2279L5.7194 11.1393L6.64714 12.9785C6.69054 13.0762 6.76649 13.125 6.875 13.125C6.98351 13.125 7.05946 13.0762 7.10286 12.9785L8.0306 11.1393L9.85352 10.2279C9.95117 10.1845 10 10.1085 10 10Z" fill="#3F59F6"/>
3
+ <path d="M10 5.3125C10 5.43186 10.0477 5.51541 10.1432 5.56315L12.2917 6.45833L13.1868 8.60677C13.2346 8.70226 13.3181 8.75 13.4375 8.75C13.5569 8.75 13.6404 8.70226 13.6882 8.60677L14.5833 6.45833L16.7318 5.56315C16.8273 5.51541 16.875 5.43186 16.875 5.3125C16.875 5.19314 16.8273 5.10959 16.7318 5.06185L14.5833 4.16667L13.6882 2.01823C13.6404 1.92274 13.5569 1.875 13.4375 1.875C13.3181 1.875 13.2346 1.92274 13.1868 2.01823L12.2917 4.16667L10.1432 5.06185C10.0477 5.10959 10 5.19314 10 5.3125Z" fill="#3F59F6"/>
4
+ <path d="M16.875 14.6875C16.875 14.5681 16.8273 14.4846 16.7318 14.4368L14.5833 13.5417L13.6882 11.3932C13.6404 11.2977 13.5569 11.25 13.4375 11.25C13.3181 11.25 13.2346 11.2977 13.1868 11.3932L12.2917 13.5417L10.1432 14.4368C10.0477 14.4846 10 14.5681 10 14.6875C10 14.8069 10.0477 14.8904 10.1432 14.9382L12.2917 15.8333L13.1868 17.9818C13.2346 18.0773 13.3181 18.125 13.4375 18.125C13.5569 18.125 13.6404 18.0773 13.6882 17.9818L14.5833 15.8333L16.7318 14.9382C16.8273 14.8904 16.875 14.8069 16.875 14.6875Z" fill="#3F59F6"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.5625 10C11.5625 9.83724 11.4893 9.71517 11.3428 9.63379L8.6084 8.2666L7.2168 5.50781C7.15169 5.3776 7.03776 5.3125 6.875 5.3125C6.71224 5.3125 6.59831 5.3776 6.5332 5.50781L5.1416 8.2666L2.40723 9.63379C2.26074 9.71517 2.1875 9.83724 2.1875 10C2.1875 10.1628 2.26074 10.2767 2.40723 10.3418L5.1416 11.709L6.5332 14.4678C6.59831 14.6143 6.71224 14.6875 6.875 14.6875C7.03776 14.6875 7.15169 14.6143 7.2168 14.4678L8.6084 11.709L11.3428 10.3418C11.4893 10.2767 11.5625 10.1628 11.5625 10Z" fill="#3F59F6"/>
3
+ <path d="M10.625 5.3125C10.625 5.41016 10.6641 5.47852 10.7422 5.51758L12.5 6.25L13.2324 8.00781C13.2715 8.08594 13.3398 8.125 13.4375 8.125C13.5352 8.125 13.6035 8.08594 13.6426 8.00781L14.375 6.25L16.1328 5.51758C16.2109 5.47852 16.25 5.41016 16.25 5.3125C16.25 5.21484 16.2109 5.14648 16.1328 5.10742L14.375 4.375L13.6426 2.61719C13.6035 2.53906 13.5352 2.5 13.4375 2.5C13.3398 2.5 13.2715 2.53906 13.2324 2.61719L12.5 4.375L10.7422 5.10742C10.6641 5.14648 10.625 5.21484 10.625 5.3125Z" fill="#3F59F6"/>
4
+ <path d="M16.25 14.6875C16.25 14.5898 16.2109 14.5215 16.1328 14.4824L14.375 13.75L13.6426 11.9922C13.6035 11.9141 13.5352 11.875 13.4375 11.875C13.3398 11.875 13.2715 11.9141 13.2324 11.9922L12.5 13.75L10.7422 14.4824C10.6641 14.5215 10.625 14.5898 10.625 14.6875C10.625 14.7852 10.6641 14.8535 10.7422 14.8926L12.5 15.625L13.2324 17.3828C13.2715 17.4609 13.3398 17.5 13.4375 17.5C13.5352 17.5 13.6035 17.4609 13.6426 17.3828L14.375 15.625L16.1328 14.8926C16.2109 14.8535 16.25 14.7852 16.25 14.6875Z" fill="#3F59F6"/>
5
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.59375 4.41406C9.53125 4.38281 9.5 4.32812 9.5 4.25C9.5 4.17188 9.53125 4.11719 9.59375 4.08594L11 3.5L11.5859 2.09375C11.6172 2.03125 11.6719 2 11.75 2C11.8281 2 11.8828 2.03125 11.9141 2.09375L12.5 3.5L13.9062 4.08594C13.9688 4.11719 14 4.17188 14 4.25C14 4.32812 13.9688 4.38281 13.9062 4.41406L12.5 5L11.9141 6.40625C11.8828 6.46875 11.8281 6.5 11.75 6.5C11.6719 6.5 11.6172 6.46875 11.5859 6.40625L11 5L9.59375 4.41406ZM13.9062 11.5859C13.9688 11.6172 14 11.6719 14 11.75C14 11.8281 13.9688 11.8828 13.9062 11.9141L12.5 12.5L11.9141 13.9062C11.8828 13.9688 11.8281 14 11.75 14C11.6719 14 11.6172 13.9688 11.5859 13.9062L11 12.5L9.59375 11.9141C9.53125 11.8828 9.5 11.8281 9.5 11.75C9.5 11.6719 9.53125 11.6172 9.59375 11.5859L11 11L11.5859 9.59375C11.6172 9.53125 11.6719 9.5 11.75 9.5C11.8281 9.5 11.8828 9.53125 11.9141 9.59375L12.5 11L13.9062 11.5859ZM10.7891 7.64844C10.9297 7.72656 11 7.84375 11 8C11 8.15625 10.9297 8.26562 10.7891 8.32812L8.16406 9.64062L6.82812 12.2891C6.76562 12.4297 6.65625 12.5 6.5 12.5C6.34375 12.5 6.23438 12.4297 6.17188 12.2891L4.83594 9.64062L2.21094 8.32812C2.07031 8.26562 2 8.15625 2 8C2 7.84375 2.07031 7.72656 2.21094 7.64844L4.83594 6.33594L6.17188 3.6875C6.23438 3.5625 6.34375 3.5 6.5 3.5C6.65625 3.5 6.76562 3.5625 6.82812 3.6875L8.16406 6.33594L10.7891 7.64844Z" fill="#3F59F6"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ import SparkleIcon from './SparkleIcon.vue';
2
+
3
+ export { SparkleIcon };
@@ -25,8 +25,9 @@
25
25
  <div
26
26
  :class="{
27
27
  'tw-relative': icon || enableInput,
28
+ 'tw-grow': !!prefixText,
29
+ 'tw-w-full': !prefixText,
28
30
  }"
29
- class="tw-w-full"
30
31
  >
31
32
  <div
32
33
  v-if="icon"
@@ -97,7 +97,10 @@ export default {
97
97
  },
98
98
  autoFitToContent() {
99
99
  setTimeout(() => {
100
- const textarea = document.getElementById(`scl-input-${this.id}`);
100
+ const textarea =
101
+ typeof document !== 'undefined' &&
102
+ typeof window !== 'undefined' &&
103
+ document.getElementById(`scl-input-${this.id}`);
101
104
  if (textarea) {
102
105
  textarea.style.height = 'auto';
103
106
  textarea.style.height = `${textarea.scrollHeight}px`;
@@ -9,7 +9,8 @@
9
9
  "connected": "Verbunden",
10
10
  "inactive": "Inaktiv",
11
11
  "addPaymentProvider": "Zahlungsanbieter hinzufügen",
12
- "deletePaymentMethod": "Zahlungsmethode löschen"
12
+ "deletePaymentMethod": "Zahlungsmethode löschen",
13
+ "currencyLabel": "Währung"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Legen Sie die URL für {{brandPageDisplayName}} fest",
@@ -9,7 +9,8 @@
9
9
  "connected": "Conectado",
10
10
  "inactive": "Inactivo",
11
11
  "addPaymentProvider": "Añadir proveedor de pago",
12
- "deletePaymentMethod": "Eliminar método de pago"
12
+ "deletePaymentMethod": "Eliminar método de pago",
13
+ "currencyLabel": "Moneda"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Establece la URL para {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Connecté",
10
10
  "inactive": "Inactif",
11
11
  "addPaymentProvider": "Ajouter un fournisseur de paiement",
12
- "deletePaymentMethod": "Supprimer le mode de paiement"
12
+ "deletePaymentMethod": "Supprimer le mode de paiement",
13
+ "currencyLabel": "Devise"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Connecté",
10
10
  "inactive": "Inactif",
11
11
  "addPaymentProvider": "Ajouter un fournisseur de paiement",
12
- "deletePaymentMethod": "Supprimer le mode de paiement"
12
+ "deletePaymentMethod": "Supprimer le mode de paiement",
13
+ "currencyLabel": "Devise"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Connected",
10
10
  "inactive": "Inactive",
11
11
  "addPaymentProvider": "Add Payment Provider",
12
- "deletePaymentMethod": "Delete payment method"
12
+ "deletePaymentMethod": "Delete payment method",
13
+ "currencyLabel": "Currency"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Set the URL for {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Conectado",
10
10
  "inactive": "Inativo",
11
11
  "addPaymentProvider": "Adicionar fornecedor de pagamentos",
12
- "deletePaymentMethod": "Excluir método de pagamento"
12
+ "deletePaymentMethod": "Excluir método de pagamento",
13
+ "currencyLabel": "Moeda"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Ligado",
10
10
  "inactive": "Inativo",
11
11
  "addPaymentProvider": "Adicionar fornecedor de pagamentos",
12
- "deletePaymentMethod": "Eliminar método de pagamento"
12
+ "deletePaymentMethod": "Eliminar método de pagamento",
13
+ "currencyLabel": "Moeda"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
@@ -12,10 +12,21 @@ const getAxios = () => {
12
12
  return internalAxios || axios;
13
13
  };
14
14
 
15
- const uploadLogoAndGetDetails = async (logoFile) => {
15
+ /**
16
+ * @param {File} logoFile
17
+ * @param {Object} data
18
+ * @returns Promise<{ success: boolean, response: any, error: any }>
19
+ */
20
+ const uploadLogoAndGetDetails = async (logoFile, data) => {
16
21
  const formData = new FormData();
17
22
  formData.append('logoImage', logoFile && logoFile.file);
18
23
 
24
+ if (data && Object.keys(data).length > 0) {
25
+ Object.keys(data).forEach((key) => {
26
+ formData.append(key, data[key]);
27
+ });
28
+ }
29
+
19
30
  try {
20
31
  const response = await getAxios()({
21
32
  method: 'post',
@@ -24,6 +24,20 @@ const getPaymentConfigsByBrandPageToken = async (brandPageToken) => {
24
24
  }
25
25
  };
26
26
 
27
+ const getPaymentConfigCurrencyListByBrandPageTokenAsync = async () => {
28
+ try {
29
+ const response = await getAxios().get(`/maker/api/brand-pages/payment-configs/currency-list`);
30
+
31
+ if (response.status === 200) {
32
+ return response.data;
33
+ }
34
+
35
+ return null;
36
+ } catch (err) {
37
+ return null;
38
+ }
39
+ };
40
+
27
41
  const deletePaymentConfigByBrandPageTokenAndConfigId = async (brandPageToken, paymentConfigId) => {
28
42
  try {
29
43
  const response = await getAxios().delete(`/maker/api/brand-pages/${brandPageToken}/payment-configs`, {
@@ -44,4 +58,5 @@ export default {
44
58
  setBrandPageApiClientAxios,
45
59
  getPaymentConfigsByBrandPageToken,
46
60
  deletePaymentConfigByBrandPageTokenAndConfigId,
61
+ getPaymentConfigCurrencyListByBrandPageTokenAsync,
47
62
  };
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
  </template>
19
19
  <script>
20
- import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
20
+ import Icon from '../../../atoms/components/Icon/Icon.vue';
21
21
 
22
22
  export default {
23
23
  components: {
@@ -74,7 +74,7 @@
74
74
  </template>
75
75
  <script>
76
76
  import { getCurrentLocale } from '../../../useSharedLibTranslate';
77
- import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
77
+ import HelloBar from '../../../atoms/components/HelloBar/HelloBar.vue';
78
78
  import SubmissionButton from './SubmissionButton.vue';
79
79
 
80
80
  export default {
@@ -64,7 +64,7 @@
64
64
  </template>
65
65
  <script>
66
66
  import { getCurrentLocale } from '../../../useSharedLibTranslate';
67
- import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
67
+ import HelloBar from '../../../atoms/components/HelloBar/HelloBar.vue';
68
68
  import SubmissionButton from './SubmissionButton.vue';
69
69
 
70
70
  export default {
@@ -19,7 +19,7 @@
19
19
  </div>
20
20
  </template>
21
21
  <script>
22
- import Button from '../../../../src/atoms/components/Button/Button.vue';
22
+ import Button from '../../../atoms/components/Button/Button.vue';
23
23
 
24
24
  import AuthModal from './AuthModal.vue';
25
25
 
@@ -23,7 +23,7 @@
23
23
  </button>
24
24
  </template>
25
25
  <script>
26
- import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
26
+ import Icon from '../../../atoms/components/Icon/Icon.vue';
27
27
 
28
28
  const TYPES = {
29
29
  FACEBOOK: 'facebook',
@@ -20,7 +20,7 @@
20
20
  </template>
21
21
 
22
22
  <script>
23
- import Button from '../../../../src/atoms/components/Button/Button.vue';
23
+ import Button from '../../../atoms/components/Button/Button.vue';
24
24
 
25
25
  export default {
26
26
  components: {
@@ -32,9 +32,15 @@ export default {
32
32
  data: () => ({
33
33
  isLoading: true,
34
34
  paymentConfigs: [],
35
+ currencies: [],
35
36
  selectedPaymentConfig: {},
36
37
  isStripeOptionActionVisible: false,
37
38
  }),
39
+ computed: {
40
+ selectedCurrency() {
41
+ return this.currencies.find((currency) => currency.iso4127Code === this.selectedPaymentConfig?.defaultCurrency);
42
+ },
43
+ },
38
44
  methods: {
39
45
  getPaymentConfigStatusDisplayText(paymentConfigStatus) {
40
46
  switch (paymentConfigStatus) {
@@ -94,5 +100,19 @@ export default {
94
100
  this.isLoading = false;
95
101
  }
96
102
  },
103
+
104
+ async getCurrentListAsync() {
105
+ try {
106
+ const result = await brandPageApiClient.getPaymentConfigCurrencyListByBrandPageTokenAsync();
107
+
108
+ if (result) {
109
+ this.currencies = result?.currencies || [];
110
+ }
111
+ } catch (err) {
112
+ if (process.env.NODE_ENV !== 'production') {
113
+ console.error(`Error fetching currency list: ${err}`);
114
+ }
115
+ }
116
+ },
97
117
  },
98
118
  };