strapi-plugin-magic-mail 2.6.2 → 2.6.4

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.
@@ -6,7 +6,7 @@ import { EnvelopeIcon, ServerIcon, SparklesIcon, PlusIcon, PencilIcon, PlayIcon,
6
6
  import { useFetchClient, useNotification } from "@strapi/strapi/admin";
7
7
  import styled, { css, keyframes } from "styled-components";
8
8
  import { Star, Mail, Server, Lock, Cog, Check, Cloud, Key, ArrowLeft, ArrowRight, ArrowClockwise, Play, Cross } from "@strapi/icons";
9
- import { T as TertiaryButton, G as GradientButton$1, C as CTAButton, I as IconButton, a as IconButtonPrimary, b as IconButtonDanger, S as SecondaryButton, c as IconButtonPurple, d as IconButtonSuccess, D as DangerButton } from "./StyledButtons-B1mvI82D.mjs";
9
+ import { T as TertiaryButton, G as GradientButton$1, C as CTAButton, I as IconButton, a as IconButtonPrimary, b as IconButtonDanger, S as SecondaryButton, c as IconButtonPurple, d as IconButtonSuccess, D as DangerButton } from "./StyledButtons-CdOf4Sps.mjs";
10
10
  import * as ReactEmailEditor from "react-email-editor";
11
11
  const useAuthRefresh = () => {
12
12
  const { get } = useFetchClient();
@@ -99,8 +99,6 @@ const colors$1 = {
99
99
  successLight: "rgba(92, 177, 118, 0.12)",
100
100
  // Gray
101
101
  neutralLight: "rgba(142, 142, 169, 0.08)",
102
- // Light gray
103
- white: "var(--colors-neutral0, #ffffff)",
104
102
  border: "rgba(128, 128, 128, 0.2)",
105
103
  text: "var(--colors-neutral800, #32324d)",
106
104
  textLight: "var(--colors-neutral600, #666687)"
@@ -168,8 +166,8 @@ const StepDot$1 = styled.div`
168
166
  width: 56px;
169
167
  height: 56px;
170
168
  border-radius: 50%;
171
- background: ${(props) => props.$active ? colors$1.primary : props.$completed ? colors$1.success : colors$1.white};
172
- color: ${(props) => props.$active || props.$completed ? colors$1.white : colors$1.textLight};
169
+ background: ${(props) => props.$active ? colors$1.primary : props.$completed ? colors$1.success : props.theme.colors.neutral0};
170
+ color: ${(props) => props.$active || props.$completed ? "#ffffff" : colors$1.textLight};
173
171
  border: 4px solid ${(props) => props.$active ? colors$1.primary : props.$completed ? colors$1.success : colors$1.border};
174
172
  display: flex;
175
173
  align-items: center;
@@ -210,7 +208,7 @@ const ProvidersGrid = styled(Box)`
210
208
  margin-right: auto;
211
209
  `;
212
210
  const ProviderCard = styled(Box)`
213
- background: ${(props) => props.$selected ? colors$1.successLight : colors$1.white};
211
+ background: ${(props) => props.$selected ? colors$1.successLight : props.theme.colors.neutral0};
214
212
  border: 2px solid ${(props) => props.$selected ? colors$1.success : colors$1.border};
215
213
  border-radius: 12px;
216
214
  padding: 24px;
@@ -1950,7 +1948,7 @@ const StatsGrid$3 = styled.div`
1950
1948
  }
1951
1949
  `;
1952
1950
  const StatCard$3 = styled(Box)`
1953
- background: var(--colors-neutral0, white);
1951
+ background: ${(p) => p.theme.colors.neutral0};
1954
1952
  border-radius: ${theme$3.borderRadius.lg};
1955
1953
  padding: 28px ${theme$3.spacing.lg};
1956
1954
  position: relative;
@@ -2050,7 +2048,7 @@ const AccountsContainer = styled(Box)`
2050
2048
  margin-top: ${theme$3.spacing.xl};
2051
2049
  `;
2052
2050
  const EmptyState$3 = styled(Box)`
2053
- background: var(--colors-neutral0, white);
2051
+ background: ${(p) => p.theme.colors.neutral0};
2054
2052
  border-radius: ${theme$3.borderRadius.xl};
2055
2053
  border: 2px dashed rgba(128, 128, 128, 0.3);
2056
2054
  padding: 80px 32px;
@@ -2119,7 +2117,7 @@ const StyledTable$3 = styled(Table)`
2119
2117
  }
2120
2118
  `;
2121
2119
  const FilterBar$3 = styled(Flex)`
2122
- background: var(--colors-neutral0, white);
2120
+ background: ${(p) => p.theme.colors.neutral0};
2123
2121
  padding: ${theme$3.spacing.md} ${theme$3.spacing.lg};
2124
2122
  border-radius: ${theme$3.borderRadius.lg};
2125
2123
  margin-bottom: ${theme$3.spacing.lg};
@@ -2149,7 +2147,7 @@ const StyledSearchInput$2 = styled.input`
2149
2147
  border-radius: ${theme$3.borderRadius.md};
2150
2148
  font-size: 0.875rem;
2151
2149
  transition: all ${theme$3.transitions.fast};
2152
- background: var(--colors-neutral0, white);
2150
+ background: ${(p) => p.theme.colors.neutral0};
2153
2151
  color: var(--colors-neutral800);
2154
2152
 
2155
2153
  &:focus {
@@ -2204,7 +2202,7 @@ const StyledModalHeader$1 = styled(Modal.Header)`
2204
2202
  const StyledModalBody$1 = styled(Modal.Body)`
2205
2203
  && {
2206
2204
  padding: 24px 28px;
2207
- background: var(--colors-neutral0, white);
2205
+ background: ${(p) => p.theme.colors.neutral0};
2208
2206
  width: 100%;
2209
2207
  box-sizing: border-box;
2210
2208
  }
@@ -2235,7 +2233,7 @@ const TestOptionCard = styled(Box)`
2235
2233
  border-radius: 12px;
2236
2234
  cursor: pointer;
2237
2235
  transition: all ${theme$3.transitions.fast};
2238
- background: ${(props) => props.$selected ? "rgba(2, 132, 199, 0.06)" : "var(--colors-neutral0, white)"};
2236
+ background: ${(props) => props.$selected ? "rgba(2, 132, 199, 0.06)" : "${(p) => p.theme.colors.neutral0}"};
2239
2237
 
2240
2238
  &:hover {
2241
2239
  border-color: ${"rgba(2, 132, 199, 0.4)"};
@@ -2260,7 +2258,7 @@ const StyledModalSelect = styled.select`
2260
2258
  border: 1px solid rgba(128, 128, 128, 0.2);
2261
2259
  border-radius: 8px;
2262
2260
  font-size: 14px;
2263
- background: var(--colors-neutral0, white);
2261
+ background: ${(p) => p.theme.colors.neutral0};
2264
2262
  color: var(--colors-neutral800);
2265
2263
  cursor: pointer;
2266
2264
  transition: all ${theme$3.transitions.fast};
@@ -2278,7 +2276,7 @@ const StyledModalInput = styled.input`
2278
2276
  border: 1px solid rgba(128, 128, 128, 0.2);
2279
2277
  border-radius: 8px;
2280
2278
  font-size: 14px;
2281
- background: var(--colors-neutral0, white);
2279
+ background: ${(p) => p.theme.colors.neutral0};
2282
2280
  color: var(--colors-neutral800);
2283
2281
  transition: all ${theme$3.transitions.fast};
2284
2282
  box-sizing: border-box;
@@ -2984,7 +2982,7 @@ const StatsGrid$2 = styled.div`
2984
2982
  }
2985
2983
  `;
2986
2984
  const StatCard$2 = styled(Box)`
2987
- background: var(--colors-neutral0, white);
2985
+ background: ${(p) => p.theme.colors.neutral0};
2988
2986
  border-radius: ${theme$2.borderRadius.lg};
2989
2987
  padding: 28px ${theme$2.spacing.lg};
2990
2988
  position: relative;
@@ -3084,7 +3082,7 @@ const RulesContainer = styled(Box)`
3084
3082
  margin-top: ${theme$2.spacing.xl};
3085
3083
  `;
3086
3084
  const EmptyState$2 = styled(Box)`
3087
- background: var(--colors-neutral0, white);
3085
+ background: ${(p) => p.theme.colors.neutral0};
3088
3086
  border-radius: ${theme$2.borderRadius.xl};
3089
3087
  border: 2px dashed rgba(128, 128, 128, 0.3);
3090
3088
  padding: 80px 32px;
@@ -3153,7 +3151,7 @@ const StyledTable$2 = styled(Table)`
3153
3151
  }
3154
3152
  `;
3155
3153
  const FilterBar$2 = styled(Flex)`
3156
- background: var(--colors-neutral0, white);
3154
+ background: ${(p) => p.theme.colors.neutral0};
3157
3155
  padding: ${theme$2.spacing.md} ${theme$2.spacing.lg};
3158
3156
  border-radius: ${theme$2.borderRadius.lg};
3159
3157
  margin-bottom: ${theme$2.spacing.lg};
@@ -3885,7 +3883,7 @@ const ScrollableDialogBody = styled(Box)`
3885
3883
  overflow-y: auto;
3886
3884
  max-height: calc(85vh - 160px);
3887
3885
  padding: 24px 28px 28px 28px;
3888
- background: var(--colors-neutral0, white);
3886
+ background: ${(p) => p.theme.colors.neutral0};
3889
3887
 
3890
3888
  /* Custom Scrollbar */
3891
3889
  &::-webkit-scrollbar {
@@ -4015,7 +4013,7 @@ const CopyButton = styled(Button)`
4015
4013
  height: 14px;
4016
4014
  }
4017
4015
  `;
4018
- const InfoBox$1 = styled(Box)`
4016
+ const InfoBox$2 = styled(Box)`
4019
4017
  background: linear-gradient(135deg, ${"rgba(2, 132, 199, 0.06)"}, ${"rgba(2, 132, 199, 0.12)"});
4020
4018
  border-left: 4px solid ${"var(--colors-primary600, #0EA5E9)"};
4021
4019
  border-radius: 8px;
@@ -4169,7 +4167,7 @@ const StatsGrid$1 = styled.div`
4169
4167
  }
4170
4168
  `;
4171
4169
  const StatCard$1 = styled(Box)`
4172
- background: var(--colors-neutral0, white);
4170
+ background: ${(p) => p.theme.colors.neutral0};
4173
4171
  border-radius: ${theme$1.borderRadius.lg};
4174
4172
  padding: 28px ${theme$1.spacing.lg};
4175
4173
  position: relative;
@@ -4272,7 +4270,7 @@ const SectionHeader = styled(Box)`
4272
4270
  margin-bottom: ${theme$1.spacing.md};
4273
4271
  `;
4274
4272
  const FilterBar$1 = styled(Flex)`
4275
- background: var(--colors-neutral0, white);
4273
+ background: ${(p) => p.theme.colors.neutral0};
4276
4274
  padding: ${theme$1.spacing.md} ${theme$1.spacing.lg};
4277
4275
  border-radius: ${theme$1.borderRadius.lg};
4278
4276
  margin-bottom: ${theme$1.spacing.lg};
@@ -4304,7 +4302,7 @@ const TableWrapper = styled(Box)`
4304
4302
  overflow-x: auto;
4305
4303
  border-radius: ${theme$1.borderRadius.lg};
4306
4304
  border: 1px solid rgba(128, 128, 128, 0.2);
4307
- background: var(--colors-neutral0, white);
4305
+ background: ${(p) => p.theme.colors.neutral0};
4308
4306
 
4309
4307
  &::-webkit-scrollbar {
4310
4308
  height: 8px;
@@ -4370,7 +4368,7 @@ const PaginationWrapper = styled(Flex)`
4370
4368
  border-radius: 0 0 ${theme$1.borderRadius.lg} ${theme$1.borderRadius.lg};
4371
4369
  `;
4372
4370
  const PaginationButton = styled.button`
4373
- background: ${(props) => props.active ? "linear-gradient(135deg, var(--colors-primary600, #0EA5E9) 0%, var(--colors-secondary500, #A855F7) 100%)" : "var(--colors-neutral0, white)"};
4371
+ background: ${(props) => props.active ? "linear-gradient(135deg, var(--colors-primary600, #0EA5E9) 0%, var(--colors-secondary500, #A855F7) 100%)" : "${(p) => p.theme.colors.neutral0}"};
4374
4372
  color: ${(props) => props.active ? "white" : "var(--colors-neutral700)"};
4375
4373
  border: 1px solid ${(props) => props.active ? "transparent" : "rgba(128, 128, 128, 0.3)"};
4376
4374
  padding: 6px 12px;
@@ -4393,7 +4391,7 @@ const PaginationButton = styled.button`
4393
4391
  }
4394
4392
  `;
4395
4393
  const EmptyState$1 = styled(Box)`
4396
- background: var(--colors-neutral0, white);
4394
+ background: ${(p) => p.theme.colors.neutral0};
4397
4395
  border-radius: ${theme$1.borderRadius.xl};
4398
4396
  border: 2px dashed rgba(128, 128, 128, 0.3);
4399
4397
  padding: 80px 32px;
@@ -4458,7 +4456,7 @@ const EmptyFeatureItem = styled.div`
4458
4456
  text-align: center;
4459
4457
  gap: ${theme$1.spacing.sm};
4460
4458
  padding: ${theme$1.spacing.lg};
4461
- background: var(--colors-neutral0, white);
4459
+ background: ${(p) => p.theme.colors.neutral0};
4462
4460
  border-radius: ${theme$1.borderRadius.md};
4463
4461
  box-shadow: ${theme$1.shadows.sm};
4464
4462
  transition: ${theme$1.transitions.fast};
@@ -4532,7 +4530,7 @@ const StyledModalHeader = styled(Modal.Header)`
4532
4530
  const StyledModalBody = styled(Modal.Body)`
4533
4531
  && {
4534
4532
  padding: 28px;
4535
- background: var(--colors-neutral0, white);
4533
+ background: ${(p) => p.theme.colors.neutral0};
4536
4534
  }
4537
4535
  `;
4538
4536
  const ModalField = styled(Box)`
@@ -4577,7 +4575,7 @@ const StyledSelect = styled.select`
4577
4575
  border-radius: 8px;
4578
4576
  border: 1px solid rgba(128, 128, 128, 0.2);
4579
4577
  font-size: 14px;
4580
- background: var(--colors-neutral0, white);
4578
+ background: ${(p) => p.theme.colors.neutral0};
4581
4579
  cursor: pointer;
4582
4580
  transition: all ${theme$1.transitions.fast};
4583
4581
  color: var(--colors-neutral700);
@@ -5331,7 +5329,7 @@ const TemplateList = () => {
5331
5329
  selectedTemplate.name
5332
5330
  ] }) }),
5333
5331
  /* @__PURE__ */ jsxs(ScrollableDialogBody, { children: [
5334
- /* @__PURE__ */ jsx(InfoBox$1, { style: { marginTop: 0, marginBottom: "20px" }, children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", justifyContent: "space-between", children: [
5332
+ /* @__PURE__ */ jsx(InfoBox$2, { style: { marginTop: 0, marginBottom: "20px" }, children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", justifyContent: "space-between", children: [
5335
5333
  /* @__PURE__ */ jsxs(Typography, { variant: "pi", style: { color: "var(--colors-primary600, #075985)" }, children: [
5336
5334
  /* @__PURE__ */ jsx("strong", { children: "Template ID:" }),
5337
5335
  " #",
@@ -5656,7 +5654,7 @@ const Container$1 = styled.div`
5656
5654
  `;
5657
5655
  const Header$1 = styled.div`
5658
5656
  padding: 24px;
5659
- background: var(--colors-neutral0, white);
5657
+ background: ${(p) => p.theme.colors.neutral0};
5660
5658
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
5661
5659
  `;
5662
5660
  const HeaderRow = styled.div`
@@ -5727,7 +5725,7 @@ const TabsWrapper = styled.div`
5727
5725
  `;
5728
5726
  const TabListWrapper = styled.div`
5729
5727
  padding: 0 24px;
5730
- background: var(--colors-neutral0, white);
5728
+ background: ${(p) => p.theme.colors.neutral0};
5731
5729
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
5732
5730
  `;
5733
5731
  const StyledTabsRoot = styled(Tabs.Root)`
@@ -5742,7 +5740,7 @@ const StyledTabsContent = styled(Tabs.Content)`
5742
5740
  `;
5743
5741
  const TabContentWrapper = styled.div`
5744
5742
  height: calc(100vh - 240px);
5745
- background: var(--colors-neutral0, white);
5743
+ background: ${(p) => p.theme.colors.neutral0};
5746
5744
  position: relative;
5747
5745
  `;
5748
5746
  const TextTabContent = styled.div`
@@ -5814,7 +5812,7 @@ const ImportExportButton = styled.span`
5814
5812
  gap: 6px;
5815
5813
  padding: 8px 16px;
5816
5814
  height: 36px;
5817
- background: var(--colors-neutral0, white);
5815
+ background: ${(p) => p.theme.colors.neutral0};
5818
5816
  border: 1px solid rgba(128, 128, 128, 0.2);
5819
5817
  border-radius: 4px;
5820
5818
  color: var(--colors-neutral800);
@@ -5846,7 +5844,7 @@ const ImportLabel = styled.label`
5846
5844
  display: inline-block;
5847
5845
  `;
5848
5846
  const BackButton = styled.button`
5849
- background: var(--colors-neutral0, white);
5847
+ background: ${(p) => p.theme.colors.neutral0};
5850
5848
  border: 1px solid rgba(128, 128, 128, 0.2);
5851
5849
  border-radius: 4px;
5852
5850
  padding: 8px 10px;
@@ -5873,7 +5871,7 @@ const BackButton = styled.button`
5873
5871
  }
5874
5872
  `;
5875
5873
  const VersionButton = styled.button`
5876
- background: var(--colors-neutral0, white);
5874
+ background: ${(p) => p.theme.colors.neutral0};
5877
5875
  border: 1px solid rgba(128, 128, 128, 0.2);
5878
5876
  border-radius: 4px;
5879
5877
  padding: 8px 16px;
@@ -5912,7 +5910,7 @@ const VersionModal = styled.div`
5912
5910
  right: ${(props) => props.$isOpen ? "0" : "-450px"};
5913
5911
  width: 450px;
5914
5912
  height: 100vh;
5915
- background: var(--colors-neutral0, white);
5913
+ background: ${(p) => p.theme.colors.neutral0};
5916
5914
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
5917
5915
  z-index: 9999;
5918
5916
  transition: right 300ms cubic-bezier(0.4, 0, 0.2, 1);
@@ -6892,7 +6890,7 @@ const StatsGrid = styled.div`
6892
6890
  }
6893
6891
  `;
6894
6892
  const StatCard = styled(Box)`
6895
- background: var(--colors-neutral0, white);
6893
+ background: ${(p) => p.theme.colors.neutral0};
6896
6894
  border-radius: ${theme.borderRadius.lg};
6897
6895
  padding: 28px ${theme.spacing.lg};
6898
6896
  position: relative;
@@ -6986,7 +6984,7 @@ const StatLabel = styled(Typography)`
6986
6984
  }
6987
6985
  `;
6988
6986
  const FilterBar = styled(Box)`
6989
- background: var(--colors-neutral0, white);
6987
+ background: ${(p) => p.theme.colors.neutral0};
6990
6988
  border-radius: ${theme.borderRadius.lg};
6991
6989
  padding: ${theme.spacing.lg} ${theme.spacing.xl};
6992
6990
  margin-bottom: ${theme.spacing.lg};
@@ -7028,7 +7026,7 @@ const StyledTable = styled(Table)`
7028
7026
  }
7029
7027
  `;
7030
7028
  const TableContainer = styled(Box)`
7031
- background: var(--colors-neutral0, white);
7029
+ background: ${(p) => p.theme.colors.neutral0};
7032
7030
  border-radius: ${theme.borderRadius.lg};
7033
7031
  box-shadow: ${theme.shadows.md};
7034
7032
  border: 1px solid rgba(128, 128, 128, 0.2);
@@ -7036,7 +7034,7 @@ const TableContainer = styled(Box)`
7036
7034
  margin-bottom: ${theme.spacing.xl};
7037
7035
  `;
7038
7036
  const EmptyState = styled(Box)`
7039
- background: var(--colors-neutral0, white);
7037
+ background: ${(p) => p.theme.colors.neutral0};
7040
7038
  border-radius: ${theme.borderRadius.xl};
7041
7039
  border: 2px dashed rgba(128, 128, 128, 0.3);
7042
7040
  padding: 80px 32px;
@@ -7359,7 +7357,6 @@ const colors = {
7359
7357
  danger: "#d02b20",
7360
7358
  neutral: "#8e8ea9",
7361
7359
  neutralLight: "rgba(142, 142, 169, 0.08)",
7362
- white: "var(--colors-neutral0, #ffffff)",
7363
7360
  border: "rgba(128, 128, 128, 0.2)",
7364
7361
  textLight: "var(--colors-neutral600, #666687)"
7365
7362
  };
@@ -7422,8 +7419,8 @@ const StepDot = styled.div`
7422
7419
  width: 56px;
7423
7420
  height: 56px;
7424
7421
  border-radius: 50%;
7425
- background: ${(props) => props.$active ? colors.whatsapp : props.$completed ? colors.success : colors.white};
7426
- color: ${(props) => props.$active || props.$completed ? colors.white : colors.textLight};
7422
+ background: ${(props) => props.$active ? colors.whatsapp : props.$completed ? colors.success : props.theme.colors.neutral0};
7423
+ color: ${(props) => props.$active || props.$completed ? "#ffffff" : colors.textLight};
7427
7424
  border: 4px solid ${(props) => props.$active ? colors.whatsapp : props.$completed ? colors.success : colors.border};
7428
7425
  display: flex;
7429
7426
  align-items: center;
@@ -7454,7 +7451,7 @@ const StepLabel = styled(Typography)`
7454
7451
  transition: all 0.3s ease;
7455
7452
  `;
7456
7453
  const ContentCard = styled(Box)`
7457
- background: ${colors.white};
7454
+ background: ${(p) => p.theme.colors.neutral0};
7458
7455
  border: 1px solid ${colors.border};
7459
7456
  border-radius: 16px;
7460
7457
  padding: 32px;
@@ -7529,7 +7526,7 @@ const ConnectedCard = styled(Box)`
7529
7526
  padding: 32px;
7530
7527
  text-align: center;
7531
7528
  `;
7532
- const InfoBox = styled(Box)`
7529
+ const InfoBox$1 = styled(Box)`
7533
7530
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, ${colors.whatsappLight} 100%);
7534
7531
  border: 1px solid rgba(2, 132, 199, 0.2);
7535
7532
  border-radius: 12px;
@@ -7549,7 +7546,7 @@ const WhatsAppInput = styled.input`
7549
7546
  border: 2px solid rgba(128, 128, 128, 0.2);
7550
7547
  border-radius: 12px;
7551
7548
  font-size: 15px;
7552
- background: var(--colors-neutral0, white);
7549
+ background: ${(p) => p.theme.colors.neutral0};
7553
7550
  color: var(--colors-neutral800);
7554
7551
  transition: all 0.2s ease;
7555
7552
  box-sizing: border-box;
@@ -7570,7 +7567,7 @@ const WhatsAppTextarea = styled.textarea`
7570
7567
  border: 2px solid rgba(128, 128, 128, 0.2);
7571
7568
  border-radius: 12px;
7572
7569
  font-size: 15px;
7573
- background: var(--colors-neutral0, white);
7570
+ background: ${(p) => p.theme.colors.neutral0};
7574
7571
  color: var(--colors-neutral800);
7575
7572
  transition: all 0.2s ease;
7576
7573
  box-sizing: border-box;
@@ -7645,7 +7642,7 @@ const AlertIcon = styled.div`
7645
7642
  font-weight: bold;
7646
7643
  flex-shrink: 0;
7647
7644
  `;
7648
- const SuccessBox = styled(Box)`
7645
+ const SuccessBox$1 = styled(Box)`
7649
7646
  background: rgba(22, 163, 74, 0.06);
7650
7647
  border: 1px solid rgba(22, 163, 74, 0.2);
7651
7648
  border-radius: 12px;
@@ -7906,7 +7903,7 @@ const WhatsAppPage = () => {
7906
7903
  currentStep === 1 && /* @__PURE__ */ jsxs(ContentCard, { children: [
7907
7904
  /* @__PURE__ */ jsx(Typography, { variant: "beta", fontWeight: "bold", style: { display: "block", marginBottom: "8px" }, children: "Check Installation" }),
7908
7905
  /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral600", style: { display: "block", marginBottom: "24px" }, children: "First, we need to verify that the required dependencies are installed." }),
7909
- isAvailable ? /* @__PURE__ */ jsxs(SuccessBox, { children: [
7906
+ isAvailable ? /* @__PURE__ */ jsxs(SuccessBox$1, { children: [
7910
7907
  /* @__PURE__ */ jsx(SuccessIcon, { children: /* @__PURE__ */ jsx(Check, { style: { width: 14, height: 14 } }) }),
7911
7908
  /* @__PURE__ */ jsxs(Box, { children: [
7912
7909
  /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "semiBold", style: { display: "block", marginBottom: "4px", color: "var(--colors-success600, #15803D)" }, children: "Dependencies Installed" }),
@@ -7957,7 +7954,7 @@ const WhatsAppPage = () => {
7957
7954
  currentStep === 2 && /* @__PURE__ */ jsxs(ContentCard, { children: [
7958
7955
  /* @__PURE__ */ jsx(Typography, { variant: "beta", fontWeight: "bold", style: { display: "block", marginBottom: "8px" }, children: "Connect Your WhatsApp" }),
7959
7956
  /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral600", style: { display: "block", marginBottom: "24px" }, children: "Click the button below to start the connection process. A QR code will be generated for you to scan." }),
7960
- /* @__PURE__ */ jsxs(InfoBox, { children: [
7957
+ /* @__PURE__ */ jsxs(InfoBox$1, { children: [
7961
7958
  /* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", style: { display: "block", marginBottom: "16px", color: "var(--colors-primary600, #075985)" }, children: "How it works" }),
7962
7959
  /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
7963
7960
  /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral700", children: '1. Click "Connect WhatsApp" to generate a QR code' }),
@@ -8003,7 +8000,7 @@ const WhatsAppPage = () => {
8003
8000
  /* @__PURE__ */ jsx(SpinningLoader, { style: { width: "40px", height: "40px" } }),
8004
8001
  /* @__PURE__ */ jsx(Typography, { variant: "omega", children: "Generating QR code..." })
8005
8002
  ] }) }),
8006
- /* @__PURE__ */ jsxs(InfoBox, { children: [
8003
+ /* @__PURE__ */ jsxs(InfoBox$1, { children: [
8007
8004
  /* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", style: { display: "block", marginBottom: "16px", color: "var(--colors-primary600, #075985)" }, children: "Instructions" }),
8008
8005
  /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
8009
8006
  /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral700", children: "1. Open WhatsApp on your phone" }),
@@ -8161,7 +8158,7 @@ const ModalOverlay = styled.div`
8161
8158
  padding: 20px;
8162
8159
  `;
8163
8160
  const ModalContent = styled(Box)`
8164
- background: var(--colors-neutral0, white);
8161
+ background: ${(p) => p.theme.colors.neutral0};
8165
8162
  border-radius: 16px;
8166
8163
  width: 100%;
8167
8164
  max-width: 580px;
@@ -8170,7 +8167,7 @@ const ModalContent = styled(Box)`
8170
8167
  overflow: hidden;
8171
8168
  `;
8172
8169
  const GradientHeader = styled(Box)`
8173
- background: linear-gradient(135deg, var(--colors-primary600, #0EA5E9) 0%, var(--colors-secondary500, #A855F7) 100%);
8170
+ background: linear-gradient(135deg, #4945ff 0%, #7c3aed 100%);
8174
8171
  padding: 32px 40px;
8175
8172
  position: relative;
8176
8173
  overflow: hidden;
@@ -8236,17 +8233,17 @@ const CloseButton = styled.button`
8236
8233
  `;
8237
8234
  const GradientButton = styled(Button)`
8238
8235
  && {
8239
- background: linear-gradient(135deg, var(--colors-primary600, #0EA5E9) 0%, var(--colors-secondary500, #A855F7) 100%);
8236
+ background: linear-gradient(135deg, #4945ff 0%, #7c3aed 100%);
8240
8237
  color: white;
8241
8238
  font-weight: 600;
8242
8239
  border: none;
8243
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
8240
+ box-shadow: 0 4px 12px rgba(73, 69, 255, 0.4);
8244
8241
  padding: 12px 24px;
8245
8242
  min-height: 44px;
8246
8243
 
8247
8244
  &:hover:not(:disabled) {
8248
- background: linear-gradient(135deg, var(--colors-primary700, #0284C7) 0%, var(--colors-secondary600, #9333EA) 100%);
8249
- box-shadow: 0 6px 16px rgba(14, 165, 233, 0.5);
8245
+ background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
8246
+ box-shadow: 0 6px 16px rgba(73, 69, 255, 0.5);
8250
8247
  }
8251
8248
 
8252
8249
  &:disabled {
@@ -8257,22 +8254,22 @@ const GradientButton = styled(Button)`
8257
8254
  `;
8258
8255
  styled(Button)`
8259
8256
  && {
8260
- background: rgba(14, 165, 233, 0.06);
8261
- color: var(--colors-primary600, #0EA5E9);
8257
+ background: rgba(73, 69, 255, 0.06);
8258
+ color: #4945ff;
8262
8259
  font-weight: 600;
8263
- border: 2px solid var(--colors-primary600, #0EA5E9);
8260
+ border: 2px solid #4945ff;
8264
8261
  padding: 12px 24px;
8265
8262
  min-height: 44px;
8266
8263
 
8267
8264
  &:hover:not(:disabled) {
8268
- background: rgba(14, 165, 233, 0.12);
8265
+ background: rgba(73, 69, 255, 0.12);
8269
8266
  }
8270
8267
  }
8271
8268
  `;
8272
8269
  const ToggleButton = styled.button`
8273
8270
  background: none;
8274
8271
  border: none;
8275
- color: var(--colors-primary600, #0EA5E9);
8272
+ color: #4945ff;
8276
8273
  font-size: 13px;
8277
8274
  font-weight: 600;
8278
8275
  cursor: pointer;
@@ -8281,7 +8278,7 @@ const ToggleButton = styled.button`
8281
8278
  transition: color 0.2s;
8282
8279
 
8283
8280
  &:hover {
8284
- color: var(--colors-secondary600, #A855F7);
8281
+ color: #7c3aed;
8285
8282
  }
8286
8283
 
8287
8284
  &:disabled {
@@ -8289,6 +8286,25 @@ const ToggleButton = styled.button`
8289
8286
  cursor: not-allowed;
8290
8287
  }
8291
8288
  `;
8289
+ const InfoBox = styled(Box)`
8290
+ background: rgba(73, 69, 255, 0.06);
8291
+ border: 2px solid rgba(73, 69, 255, 0.3);
8292
+ border-radius: 8px;
8293
+ padding: 16px;
8294
+ width: 100%;
8295
+ `;
8296
+ const SuccessBox = styled(Box)`
8297
+ background: rgba(34, 197, 94, 0.06);
8298
+ border: 2px solid rgba(34, 197, 94, 0.3);
8299
+ border-radius: 8px;
8300
+ padding: 20px;
8301
+ text-align: center;
8302
+ `;
8303
+ const InfoText = styled(Typography)`
8304
+ font-size: 13px;
8305
+ line-height: 1.6;
8306
+ color: ${(p) => p.theme.colors.neutral800};
8307
+ `;
8292
8308
  const LicenseGuard = ({ children }) => {
8293
8309
  const { get, post } = useFetchClient();
8294
8310
  const { toggleNotification } = useNotification();
@@ -8445,19 +8461,7 @@ const LicenseGuard = ({ children }) => {
8445
8461
  children: useExistingKey ? "← Create new license" : "Have a license key? →"
8446
8462
  }
8447
8463
  ) }),
8448
- /* @__PURE__ */ jsx(
8449
- Box,
8450
- {
8451
- background: "primary100",
8452
- padding: 4,
8453
- style: {
8454
- borderRadius: "8px",
8455
- border: "2px solid rgba(14, 165, 233, 0.3)",
8456
- width: "100%"
8457
- },
8458
- children: /* @__PURE__ */ jsx(Typography, { variant: "omega", style: { fontSize: "13px", lineHeight: "1.6" }, children: useExistingKey ? "🔑 Enter your email and license key to activate." : adminUser && adminUser.email ? `✨ Click "Activate" to auto-create a license with your account (${adminUser.email})` : '✨ Click "Activate" to auto-create a license with your admin account' })
8459
- }
8460
- ),
8464
+ /* @__PURE__ */ jsx(InfoBox, { children: /* @__PURE__ */ jsx(InfoText, { variant: "omega", children: useExistingKey ? "Enter your email and license key to activate." : adminUser && adminUser.email ? `Click "Activate" to auto-create a license with your account (${adminUser.email})` : 'Click "Activate" to auto-create a license with your admin account' }) }),
8461
8465
  useExistingKey ? (
8462
8466
  // Existing License Key Input
8463
8467
  /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -8509,31 +8513,15 @@ const LicenseGuard = ({ children }) => {
8509
8513
  ] })
8510
8514
  ) : adminUser ? (
8511
8515
  // Auto-create mode - Show user info
8512
- /* @__PURE__ */ jsxs(
8513
- Box,
8514
- {
8515
- background: "success100",
8516
- padding: 5,
8517
- style: {
8518
- borderRadius: "8px",
8519
- border: "2px solid rgba(34, 197, 94, 0.3)",
8520
- textAlign: "center"
8521
- },
8522
- children: [
8523
- /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "bold", style: { marginBottom: "12px", display: "block" }, children: "Ready to activate with your account:" }),
8524
- /* @__PURE__ */ jsxs(Typography, { variant: "pi", style: { marginBottom: "4px", display: "block" }, children: [
8525
- "👤 ",
8526
- adminUser.firstname || "Admin",
8527
- " ",
8528
- adminUser.lastname || "User"
8529
- ] }),
8530
- /* @__PURE__ */ jsxs(Typography, { variant: "pi", textColor: "neutral600", children: [
8531
- "📧 ",
8532
- adminUser.email || "Loading..."
8533
- ] })
8534
- ]
8535
- }
8536
- )
8516
+ /* @__PURE__ */ jsxs(SuccessBox, { children: [
8517
+ /* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "bold", style: { marginBottom: "12px", display: "block" }, children: "Ready to activate with your account:" }),
8518
+ /* @__PURE__ */ jsxs(Typography, { variant: "pi", style: { marginBottom: "4px", display: "block" }, children: [
8519
+ adminUser.firstname || "Admin",
8520
+ " ",
8521
+ adminUser.lastname || "User"
8522
+ ] }),
8523
+ /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: adminUser.email || "Loading..." })
8524
+ ] })
8537
8525
  ) : /* @__PURE__ */ jsxs(Box, { padding: 4, background: "neutral100", hasRadius: true, style: { textAlign: "center" }, children: [
8538
8526
  /* @__PURE__ */ jsx(Loader, { small: true }),
8539
8527
  /* @__PURE__ */ jsx(Typography, { variant: "pi", marginTop: 2, children: "Loading admin user data..." })