lau-ecom-design-system 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css CHANGED
@@ -1115,58 +1115,10 @@ video {
1115
1115
  display: none;
1116
1116
  }
1117
1117
 
1118
- .dsEcom-container {
1119
- width: 100%;
1120
- }
1121
-
1122
- @media (min-width: 320px) {
1123
- .dsEcom-container {
1124
- max-width: 320px;
1125
- }
1126
- }
1127
-
1128
- @media (min-width: 640px) {
1129
- .dsEcom-container {
1130
- max-width: 640px;
1131
- }
1132
- }
1133
-
1134
- @media (min-width: 768px) {
1135
- .dsEcom-container {
1136
- max-width: 768px;
1137
- }
1138
- }
1139
-
1140
- @media (min-width: 1024px) {
1141
- .dsEcom-container {
1142
- max-width: 1024px;
1143
- }
1144
- }
1145
-
1146
- @media (min-width: 1280px) {
1147
- .dsEcom-container {
1148
- max-width: 1280px;
1149
- }
1150
- }
1151
-
1152
- @media (min-width: 1536px) {
1153
- .dsEcom-container {
1154
- max-width: 1536px;
1155
- }
1156
- }
1157
-
1158
1118
  .dsEcom-pointer-events-none {
1159
1119
  pointer-events: none;
1160
1120
  }
1161
1121
 
1162
- .dsEcom-static {
1163
- position: static;
1164
- }
1165
-
1166
- .dsEcom-fixed {
1167
- position: fixed;
1168
- }
1169
-
1170
1122
  .dsEcom-absolute {
1171
1123
  position: absolute;
1172
1124
  }
@@ -1199,10 +1151,6 @@ video {
1199
1151
  right: 0px;
1200
1152
  }
1201
1153
 
1202
- .dsEcom-right-12 {
1203
- right: 3rem;
1204
- }
1205
-
1206
1154
  .dsEcom-right-4 {
1207
1155
  right: 1rem;
1208
1156
  }
@@ -1227,10 +1175,6 @@ video {
1227
1175
  top: 0.75rem;
1228
1176
  }
1229
1177
 
1230
- .dsEcom-top-4 {
1231
- top: 1rem;
1232
- }
1233
-
1234
1178
  .dsEcom-top-\[10px\] {
1235
1179
  top: 10px;
1236
1180
  }
@@ -1247,14 +1191,6 @@ video {
1247
1191
  z-index: 50;
1248
1192
  }
1249
1193
 
1250
- .dsEcom-z-\[100\] {
1251
- z-index: 100;
1252
- }
1253
-
1254
- .dsEcom-z-\[60\] {
1255
- z-index: 60;
1256
- }
1257
-
1258
1194
  .dsEcom-col-span-2 {
1259
1195
  grid-column: span 2 / span 2;
1260
1196
  }
@@ -1268,11 +1204,6 @@ video {
1268
1204
  margin-right: 91px;
1269
1205
  }
1270
1206
 
1271
- .dsEcom-mx-auto {
1272
- margin-left: auto;
1273
- margin-right: auto;
1274
- }
1275
-
1276
1207
  .dsEcom-my-4 {
1277
1208
  margin-top: 1rem;
1278
1209
  margin-bottom: 1rem;
@@ -1310,10 +1241,6 @@ video {
1310
1241
  margin-top: 1.5rem;
1311
1242
  }
1312
1243
 
1313
- .dsEcom-mt-8 {
1314
- margin-top: 2rem;
1315
- }
1316
-
1317
1244
  .dsEcom-mt-\[2px\] {
1318
1245
  margin-top: 2px;
1319
1246
  }
@@ -1330,10 +1257,6 @@ video {
1330
1257
  display: flex;
1331
1258
  }
1332
1259
 
1333
- .dsEcom-inline-flex {
1334
- display: inline-flex;
1335
- }
1336
-
1337
1260
  .dsEcom-grid {
1338
1261
  display: grid;
1339
1262
  }
@@ -1351,22 +1274,10 @@ video {
1351
1274
  height: 1px !important;
1352
1275
  }
1353
1276
 
1354
- .dsEcom-h-12 {
1355
- height: 3rem;
1356
- }
1357
-
1358
- .dsEcom-h-16 {
1359
- height: 4rem;
1360
- }
1361
-
1362
1277
  .dsEcom-h-4 {
1363
1278
  height: 1rem;
1364
1279
  }
1365
1280
 
1366
- .dsEcom-h-48 {
1367
- height: 12rem;
1368
- }
1369
-
1370
1281
  .dsEcom-h-5 {
1371
1282
  height: 1.25rem;
1372
1283
  }
@@ -1407,18 +1318,6 @@ video {
1407
1318
  height: auto;
1408
1319
  }
1409
1320
 
1410
- .dsEcom-h-full {
1411
- height: 100%;
1412
- }
1413
-
1414
- .dsEcom-h-screen {
1415
- height: 100vh;
1416
- }
1417
-
1418
- .dsEcom-min-h-screen {
1419
- min-height: 100vh;
1420
- }
1421
-
1422
1321
  .\!dsEcom-w-full {
1423
1322
  width: 100% !important;
1424
1323
  }
@@ -1427,14 +1326,6 @@ video {
1427
1326
  width: 2.5rem;
1428
1327
  }
1429
1328
 
1430
- .dsEcom-w-12 {
1431
- width: 3rem;
1432
- }
1433
-
1434
- .dsEcom-w-32 {
1435
- width: 8rem;
1436
- }
1437
-
1438
1329
  .dsEcom-w-4 {
1439
1330
  width: 1rem;
1440
1331
  }
@@ -1447,6 +1338,10 @@ video {
1447
1338
  width: 2rem;
1448
1339
  }
1449
1340
 
1341
+ .dsEcom-w-\[212px\] {
1342
+ width: 212px;
1343
+ }
1344
+
1450
1345
  .dsEcom-w-\[284px\] {
1451
1346
  width: 284px;
1452
1347
  }
@@ -1459,10 +1354,6 @@ video {
1459
1354
  width: 883px;
1460
1355
  }
1461
1356
 
1462
- .dsEcom-w-\[calc\(100\%-2rem\)\] {
1463
- width: calc(100% - 2rem);
1464
- }
1465
-
1466
1357
  .dsEcom-w-auto {
1467
1358
  width: auto;
1468
1359
  }
@@ -1475,18 +1366,6 @@ video {
1475
1366
  width: 100%;
1476
1367
  }
1477
1368
 
1478
- .dsEcom-w-screen {
1479
- width: 100vw;
1480
- }
1481
-
1482
- .dsEcom-max-w-\[500px\] {
1483
- max-width: 500px;
1484
- }
1485
-
1486
- .dsEcom-flex-1 {
1487
- flex: 1 1 0%;
1488
- }
1489
-
1490
1369
  .dsEcom-shrink-0 {
1491
1370
  flex-shrink: 0;
1492
1371
  }
@@ -1510,11 +1389,6 @@ video {
1510
1389
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1511
1390
  }
1512
1391
 
1513
- .dsEcom--rotate-90 {
1514
- --tw-rotate: -90deg;
1515
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1516
- }
1517
-
1518
1392
  .dsEcom-rotate-0 {
1519
1393
  --tw-rotate: 0deg;
1520
1394
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -1534,10 +1408,6 @@ video {
1534
1408
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1535
1409
  }
1536
1410
 
1537
- .dsEcom-transform-gpu {
1538
- transform: translate3d(var(--tw-translate-x), var(--tw-translate-y), 0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1539
- }
1540
-
1541
1411
  .dsEcom-cursor-default {
1542
1412
  cursor: default;
1543
1413
  }
@@ -1554,10 +1424,6 @@ video {
1554
1424
  appearance: none;
1555
1425
  }
1556
1426
 
1557
- .dsEcom-grid-cols-1 {
1558
- grid-template-columns: repeat(1, minmax(0, 1fr));
1559
- }
1560
-
1561
1427
  .dsEcom-grid-cols-4 {
1562
1428
  grid-template-columns: repeat(4, minmax(0, 1fr));
1563
1429
  }
@@ -1610,10 +1476,6 @@ video {
1610
1476
  gap: 2rem;
1611
1477
  }
1612
1478
 
1613
- .dsEcom-overflow-hidden {
1614
- overflow: hidden;
1615
- }
1616
-
1617
1479
  .dsEcom-rounded {
1618
1480
  border-radius: 0.25rem;
1619
1481
  }
@@ -1711,11 +1573,6 @@ video {
1711
1573
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
1712
1574
  }
1713
1575
 
1714
- .dsEcom-border-neutral-200 {
1715
- --tw-border-opacity: 1;
1716
- border-color: rgb(229 229 229 / var(--tw-border-opacity, 1));
1717
- }
1718
-
1719
1576
  .dsEcom-border-neutral-60 {
1720
1577
  border-color: var(--neutral-60);
1721
1578
  }
@@ -1748,21 +1605,6 @@ video {
1748
1605
  background-color: var(--primary-60) !important;
1749
1606
  }
1750
1607
 
1751
- .dsEcom-bg-\[\#00A19C\] {
1752
- --tw-bg-opacity: 1;
1753
- background-color: rgb(0 161 156 / var(--tw-bg-opacity, 1));
1754
- }
1755
-
1756
- .dsEcom-bg-\[\#E8F3F3\] {
1757
- --tw-bg-opacity: 1;
1758
- background-color: rgb(232 243 243 / var(--tw-bg-opacity, 1));
1759
- }
1760
-
1761
- .dsEcom-bg-black {
1762
- --tw-bg-opacity: 1;
1763
- background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
1764
- }
1765
-
1766
1608
  .dsEcom-bg-blue-500 {
1767
1609
  --tw-bg-opacity: 1;
1768
1610
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
@@ -1782,19 +1624,10 @@ video {
1782
1624
  background-color: var(--neutral-10);
1783
1625
  }
1784
1626
 
1785
- .dsEcom-bg-neutral-100 {
1786
- background-color: var(--neutral-100);
1787
- }
1788
-
1789
1627
  .dsEcom-bg-neutral-20 {
1790
1628
  background-color: var(--neutral-20);
1791
1629
  }
1792
1630
 
1793
- .dsEcom-bg-neutral-200 {
1794
- --tw-bg-opacity: 1;
1795
- background-color: rgb(229 229 229 / var(--tw-bg-opacity, 1));
1796
- }
1797
-
1798
1631
  .dsEcom-bg-neutral-40 {
1799
1632
  background-color: var(--neutral-40);
1800
1633
  }
@@ -1828,10 +1661,6 @@ video {
1828
1661
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
1829
1662
  }
1830
1663
 
1831
- .dsEcom-bg-opacity-50 {
1832
- --tw-bg-opacity: 0.5;
1833
- }
1834
-
1835
1664
  .dsEcom-bg-opacity-70 {
1836
1665
  --tw-bg-opacity: 0.7;
1837
1666
  }
@@ -1884,10 +1713,6 @@ video {
1884
1713
  padding: 0.25rem;
1885
1714
  }
1886
1715
 
1887
- .dsEcom-p-2 {
1888
- padding: 0.5rem;
1889
- }
1890
-
1891
1716
  .dsEcom-p-4 {
1892
1717
  padding: 1rem;
1893
1718
  }
@@ -2009,10 +1834,6 @@ video {
2009
1834
  padding-right: 3rem;
2010
1835
  }
2011
1836
 
2012
- .dsEcom-pr-24 {
2013
- padding-right: 6rem;
2014
- }
2015
-
2016
1837
  .dsEcom-pr-\[44px\] {
2017
1838
  padding-right: 44px;
2018
1839
  }
@@ -2037,24 +1858,10 @@ video {
2037
1858
  font-family: core-font-family-public-sans;
2038
1859
  }
2039
1860
 
2040
- .dsEcom-text-2xl {
2041
- font-size: 1.5rem;
2042
- line-height: 2rem;
2043
- }
2044
-
2045
1861
  .dsEcom-text-\[12px\] {
2046
1862
  font-size: 12px;
2047
1863
  }
2048
1864
 
2049
- .dsEcom-text-xl {
2050
- font-size: 1.25rem;
2051
- line-height: 1.75rem;
2052
- }
2053
-
2054
- .dsEcom-font-bold {
2055
- font-weight: 700;
2056
- }
2057
-
2058
1865
  .dsEcom-font-core-font-weight-extrabold {
2059
1866
  font-weight: 800;
2060
1867
  }
@@ -2106,20 +1913,10 @@ video {
2106
1913
  color: var(--neutral-100);
2107
1914
  }
2108
1915
 
2109
- .dsEcom-text-neutral-400 {
2110
- --tw-text-opacity: 1;
2111
- color: rgb(163 163 163 / var(--tw-text-opacity, 1));
2112
- }
2113
-
2114
1916
  .dsEcom-text-neutral-60 {
2115
1917
  color: var(--neutral-60);
2116
1918
  }
2117
1919
 
2118
- .dsEcom-text-neutral-600 {
2119
- --tw-text-opacity: 1;
2120
- color: rgb(82 82 82 / var(--tw-text-opacity, 1));
2121
- }
2122
-
2123
1920
  .dsEcom-text-neutral-70 {
2124
1921
  color: var(--neutral-70);
2125
1922
  }
@@ -2150,26 +1947,6 @@ video {
2150
1947
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
2151
1948
  }
2152
1949
 
2153
- .dsEcom-opacity-0 {
2154
- opacity: 0;
2155
- }
2156
-
2157
- .dsEcom-opacity-100 {
2158
- opacity: 1;
2159
- }
2160
-
2161
- .dsEcom-shadow-lg {
2162
- --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
2163
- --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
2164
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2165
- }
2166
-
2167
- .dsEcom-shadow-md {
2168
- --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
2169
- --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
2170
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2171
- }
2172
-
2173
1950
  .dsEcom-shadow-upc-shadow-prominent {
2174
1951
  --tw-shadow: 0px 8px 48px -6px rgba(89, 89, 89, 0.24);
2175
1952
  --tw-shadow-colored: 0px 8px 48px -6px var(--tw-shadow-color);
@@ -2200,18 +1977,6 @@ video {
2200
1977
  transition-duration: 150ms;
2201
1978
  }
2202
1979
 
2203
- .dsEcom-transition-opacity {
2204
- transition-property: opacity;
2205
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2206
- transition-duration: 150ms;
2207
- }
2208
-
2209
- .dsEcom-transition-transform {
2210
- transition-property: transform;
2211
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2212
- transition-duration: 150ms;
2213
- }
2214
-
2215
1980
  .dsEcom-duration-200 {
2216
1981
  transition-duration: 200ms;
2217
1982
  }
@@ -2224,10 +1989,6 @@ video {
2224
1989
  transition-duration: 0.3s;
2225
1990
  }
2226
1991
 
2227
- .dsEcom-ease-in-out {
2228
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2229
- }
2230
-
2231
1992
  * {
2232
1993
  box-sizing: border-box;
2233
1994
  padding: 0;
@@ -2515,11 +2276,6 @@ video {
2515
2276
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
2516
2277
  }
2517
2278
 
2518
- .hover\:dsEcom-text-neutral-600:hover {
2519
- --tw-text-opacity: 1;
2520
- color: rgb(82 82 82 / var(--tw-text-opacity, 1));
2521
- }
2522
-
2523
2279
  .hover\:dsEcom-text-neutral-70:hover {
2524
2280
  color: var(--neutral-70);
2525
2281
  }
@@ -2618,12 +2374,6 @@ video {
2618
2374
  display: block !important;
2619
2375
  }
2620
2376
 
2621
- @media (min-width: 768px) {
2622
- .md\:dsEcom-grid-cols-3 {
2623
- grid-template-columns: repeat(3, minmax(0, 1fr));
2624
- }
2625
- }
2626
-
2627
2377
  @media (min-width: 320px) and (max-width: 1024px) {
2628
2378
  .mobiles\:dsEcom-order-first {
2629
2379
  order: -9999;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lau-ecom-design-system",
3
3
  "private": false,
4
- "version": "1.0.27",
4
+ "version": "1.0.29",
5
5
  "sourceType": "module",
6
6
  "sideEffects": false,
7
7
  "main": "dist/lau-ecom-design-system.ssr.js",
@@ -17,38 +17,55 @@ const props = withDefaults(defineProps<Props>(), {
17
17
  categoryCookies: () => {
18
18
  return [
19
19
  {
20
+ id: CookieItemKey.essential,
20
21
  title: "Esenciales",
21
22
  description:
22
23
  "Este sitio web utiliza cookies gracias a esto podemos personalizar los ingresos a la web en futuras visitas y brindarte una mejor experiencia.",
23
- isChecked: false,
24
- isDisabled: false,
24
+ isChecked: true,
25
+ isDisabled: true,
25
26
  onToggle: (value: boolean) => {
26
- console.log("firstSwitch: " + value);
27
+ console.log("essentialSwitch: " + value);
27
28
  },
28
29
  },
29
30
  {
31
+ id: CookieItemKey.preferences,
30
32
  title: "Preferencias",
31
33
  description:
32
34
  "Este sitio web utiliza cookies gracias a esto podemos personalizar los ingresos a la web en futuras visitas y brindarte una mejor experiencia.",
33
35
  isChecked: false,
34
36
  isDisabled: false,
35
- onToggle: () => {},
37
+ onToggle: (value: boolean) => {
38
+ console.log("preferencesSwitch: " + value);
39
+ },
36
40
  },
37
41
  {
38
42
  id: CookieItemKey.statistics,
39
- title: "Estadisticas",
43
+ title: "Estadísticas",
40
44
  description:
41
45
  "Este sitio web utiliza cookies gracias a esto podemos personalizar los ingresos a la web en futuras visitas y brindarte una mejor experiencia.",
42
- isChecked: true,
46
+ isChecked: false,
43
47
  isDisabled: false,
44
- onToggle: () => {},
48
+ onToggle: (value: boolean) => {
49
+ console.log("statisticsSwitch: " + value);
50
+ },
45
51
  },
46
52
  {
47
53
  id: CookieItemKey.marketing,
48
54
  title: "Marketing",
49
55
  description:
50
56
  "Este sitio web utiliza cookies gracias a esto podemos personalizar los ingresos a la web en futuras visitas y brindarte una mejor experiencia.",
51
- isChecked: true,
57
+ isChecked: false,
58
+ isDisabled: false,
59
+ onToggle: (value: boolean) => {
60
+ console.log("marketingSwitch: " + value);
61
+ },
62
+ },
63
+ {
64
+ id: CookieItemKey.marketingPersonalization,
65
+ title: "Personalización de Marketing",
66
+ description:
67
+ "Este sitio web utiliza cookies gracias a esto podemos personalizar los ingresos a la web en futuras visitas y brindarte una mejor experiencia.",
68
+ isChecked: false,
52
69
  isDisabled: false,
53
70
  onToggle: () => {},
54
71
  },
@@ -117,18 +134,26 @@ const handleAcceptAll = () => {
117
134
 
118
135
  <template>
119
136
  <div v-if="isBannerVisible">
120
- <div v-if="!isConfigOpen" class="lau-ecom-cookies lau-ecom-cookies--upc">
137
+ <div
138
+ v-if="!isConfigOpen"
139
+ class="lau-ecom-cookies lau-ecom-cookies--upc"
140
+ >
121
141
  <p class="lau-ecom-text lau-ecom-text--upc core-font-body-reg-04-16px">
122
142
  Este sitio web utiliza cookies gracias a esto podemos personalizar los
123
143
  ingresos a la web en futuras visitas y brindarte una mejor experiencia
124
144
  dentro de nuestro sitio.
125
145
  <a class="core-font-link-02-16px dsEcom-text-link-60">Conoce más</a>
146
+
126
147
  </p>
127
148
  <div class="lau-ecom-buttons">
128
- <LauEcomTextButton @on-click="handleConfigCookies">
149
+ <LauEcomTextButton
150
+ @on-click="handleConfigCookies"
151
+ >
129
152
  Configurar cookies
130
153
  </LauEcomTextButton>
131
- <LauEcomButton @on-click="handleAccept"> Aceptar </LauEcomButton>
154
+ <LauEcomButton class="dsEcom-w-[212px]" @on-click="handleAccept">
155
+ Aceptar todas las cookies
156
+ </LauEcomButton>
132
157
  </div>
133
158
  </div>
134
159
  <LauEcomBannerCookiesConfig
@@ -40,28 +40,51 @@ const handleReject = () => {
40
40
  };
41
41
 
42
42
  const handleAcceptSelected = () => {
43
- let analyticsStorageOption;
44
- let adStorageOption;
45
-
46
- const analyticsStorageIndex = items.value?.findIndex(
47
- (item) => item.id === CookieItemKey.statistics,
48
- );
49
- if (analyticsStorageIndex) {
50
- analyticsStorageOption = items.value![analyticsStorageIndex].isChecked
51
- ? CookieOption.granted
52
- : CookieOption.denied;
53
- }
54
-
55
- const adStorageIndex = items.value?.findIndex(
56
- (item) => item.id === CookieItemKey.marketing,
43
+ let analyticsStorageOption: string = CookieOption.denied;
44
+ let adStorageOption: string = CookieOption.denied;
45
+ let preferencesStorageOption: string = CookieOption.denied;
46
+ let essentialStorageOption: string = CookieOption.granted; // Siempre granted para esenciales
47
+
48
+ // Obtener el estado de cada tipo de cookie
49
+ items.value?.forEach((item) => {
50
+ console.log('Checking item:', {
51
+ id: item.id,
52
+ expectedId: {
53
+ preferences: CookieItemKey.preferences,
54
+ statistics: CookieItemKey.statistics,
55
+ marketing: CookieItemKey.marketing
56
+ },
57
+ isChecked: item.isChecked
58
+ });
59
+
60
+ if (item.id === 'functionality_storage') {
61
+ console.log('Found preferences item:', item);
62
+ preferencesStorageOption = item.isChecked ? CookieOption.granted : CookieOption.denied;
63
+ console.log('Set preferencesStorageOption to:', preferencesStorageOption);
64
+ }
65
+ if (item.id === 'analytics_storage') {
66
+ analyticsStorageOption = item.isChecked ? CookieOption.granted : CookieOption.denied;
67
+ }
68
+ if (item.id === 'ad_storage') {
69
+ adStorageOption = item.isChecked ? CookieOption.granted : CookieOption.denied;
70
+ }
71
+ });
72
+
73
+ console.log('Final values:', {
74
+ analyticsStorageOption,
75
+ adStorageOption,
76
+ preferencesStorageOption,
77
+ essentialStorageOption,
78
+ itemsLength: items.value?.length,
79
+ allItems: items.value
80
+ });
81
+
82
+ acceptCookiesSelected(
83
+ analyticsStorageOption, // analytics_storage
84
+ adStorageOption, // ad_storage
85
+ preferencesStorageOption, // functionality_storage
86
+ essentialStorageOption // security_storage
57
87
  );
58
- if (adStorageIndex) {
59
- adStorageOption = items.value![adStorageIndex].isChecked
60
- ? CookieOption.granted
61
- : CookieOption.denied;
62
- }
63
-
64
- acceptCookiesSelected(analyticsStorageOption!, adStorageOption!);
65
88
  emit("onAcceptSelected");
66
89
  };
67
90
 
@@ -76,7 +99,9 @@ const handleAcceptAll = () => {
76
99
  class="lau-ecom-banner-cookies-config lau-ecom-banner-cookies-config--upc"
77
100
  >
78
101
  <div class="lau-ecom-config-head lau-ecom-config-head--upc">
79
- <p class="upc-font-subtitle-03-20px">Configuracion de cookies</p>
102
+ <p class="upc-font-subtitle-03-20px">
103
+ Configuracion de cookies
104
+ </p>
80
105
  <button @click="handleCloseConfig">
81
106
  <span><LauEcomCoreIconNavClose /></span>
82
107
  </button>
@@ -23,7 +23,17 @@ withDefaults(
23
23
  stroke-linejoin="round"
24
24
  xmlns="http://www.w3.org/2000/svg"
25
25
  >
26
- <line x1="18" y1="6" x2="6" y2="18" />
27
- <line x1="6" y1="6" x2="18" y2="18" />
26
+ <line
27
+ x1="18"
28
+ y1="6"
29
+ x2="6"
30
+ y2="18"
31
+ />
32
+ <line
33
+ x1="6"
34
+ y1="6"
35
+ x2="18"
36
+ y2="18"
37
+ />
28
38
  </svg>
29
39
  </template>
@@ -23,7 +23,16 @@ withDefaults(
23
23
  stroke-linejoin="round"
24
24
  xmlns="http://www.w3.org/2000/svg"
25
25
  >
26
- <circle cx="11" cy="11" r="8" />
27
- <line x1="21" y1="21" x2="16.65" y2="16.65" />
26
+ <circle
27
+ cx="11"
28
+ cy="11"
29
+ r="8"
30
+ />
31
+ <line
32
+ x1="21"
33
+ y1="21"
34
+ x2="16.65"
35
+ y2="16.65"
36
+ />
28
37
  </svg>
29
38
  </template>