@treely/strapi-slices 8.0.3 → 8.1.0
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/components/CertificationBadge/CertificationBadge.d.ts +7 -0
- package/dist/components/CertificationBadge/CertificationBadge.d.ts.map +1 -0
- package/dist/components/CertificationBadge/index.d.ts +3 -0
- package/dist/components/CertificationBadge/index.d.ts.map +1 -0
- package/dist/components/CertificationBadge/messages.de.d.ts +6 -0
- package/dist/components/CertificationBadge/messages.de.d.ts.map +1 -0
- package/dist/components/CertificationBadge/messages.en.d.ts +6 -0
- package/dist/components/CertificationBadge/messages.en.d.ts.map +1 -0
- package/dist/components/ContextProvider/ContextProvider.d.ts +3 -0
- package/dist/components/ContextProvider/ContextProvider.d.ts.map +1 -1
- package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts +2 -1
- package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts.map +1 -1
- package/dist/components/ProjectGridCard/ProjectGridCard.d.ts.map +1 -1
- package/dist/components/ProjectGridCardV2/ProjectGridCardV2.d.ts +7 -0
- package/dist/components/ProjectGridCardV2/ProjectGridCardV2.d.ts.map +1 -0
- package/dist/components/ProjectGridCardV2/index.d.ts +3 -0
- package/dist/components/ProjectGridCardV2/index.d.ts.map +1 -0
- package/dist/components/SliceRenderer/SliceRenderer.d.ts +4 -1
- package/dist/components/SliceRenderer/SliceRenderer.d.ts.map +1 -1
- package/dist/index.cjs +1446 -1183
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1362 -1099
- package/dist/index.js.map +4 -4
- package/dist/rootMessages.de.d.ts +2 -2
- package/dist/rootMessages.en.d.ts +2 -2
- package/dist/slices/Facts/Facts.d.ts.map +1 -1
- package/dist/slices/HeroWithHighlights/HeroWithHighlights.d.ts +17 -0
- package/dist/slices/HeroWithHighlights/HeroWithHighlights.d.ts.map +1 -0
- package/dist/slices/HeroWithHighlights/index.d.ts +3 -0
- package/dist/slices/HeroWithHighlights/index.d.ts.map +1 -0
- package/dist/slices/ProjectsGridV2/ProjectsGridV2.d.ts +13 -0
- package/dist/slices/ProjectsGridV2/ProjectsGridV2.d.ts.map +1 -0
- package/dist/slices/ProjectsGridV2/index.d.ts +3 -0
- package/dist/slices/ProjectsGridV2/index.d.ts.map +1 -0
- package/dist/utils/getMessages.d.ts +4 -4
- package/package.json +1 -1
- package/dist/components/ProjectGridCard/messages.de.d.ts +0 -6
- package/dist/components/ProjectGridCard/messages.de.d.ts.map +0 -1
- package/dist/components/ProjectGridCard/messages.en.d.ts +0 -6
- package/dist/components/ProjectGridCard/messages.en.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -958,6 +958,12 @@ var messagesDe = {
|
|
|
958
958
|
};
|
|
959
959
|
var messages_de_default = messagesDe;
|
|
960
960
|
|
|
961
|
+
// src/components/CertificationBadge/messages.de.ts
|
|
962
|
+
var messages_de_default2 = {
|
|
963
|
+
"components.certificationBadge.certified": "Zertifiziert, {year}",
|
|
964
|
+
"components.certificationBadge.certificationInProgress": "Zertifizierung ist in Arbeit"
|
|
965
|
+
};
|
|
966
|
+
|
|
961
967
|
// src/components/CreditsAvailableBadge/messages.de.ts
|
|
962
968
|
var messagesDe2 = {
|
|
963
969
|
"components.creditsAvailableBadge.text.yes": "Credits verf\xFCgbar",
|
|
@@ -965,26 +971,26 @@ var messagesDe2 = {
|
|
|
965
971
|
"components.creditsAvailableBadge.text.no": "Keine verbleibenden Credits",
|
|
966
972
|
"components.creditsAvailableBadge.text.notYet": "Credits bald verf\xFCgbar"
|
|
967
973
|
};
|
|
968
|
-
var
|
|
974
|
+
var messages_de_default3 = messagesDe2;
|
|
969
975
|
|
|
970
976
|
// src/slices/Cta/messages.de.ts
|
|
971
977
|
var messagesDe3 = {
|
|
972
978
|
"sections.cta.backgroundShapes": "Dunkle Hintergrundformen",
|
|
973
979
|
"sections.cta.backgroundShapesLight": "Helle Hintergrundformen"
|
|
974
980
|
};
|
|
975
|
-
var
|
|
981
|
+
var messages_de_default4 = messagesDe3;
|
|
976
982
|
|
|
977
983
|
// src/components/CustomerCard/messages.de.ts
|
|
978
984
|
var messagesDe4 = {
|
|
979
985
|
"sections.customerCard.more": "Weiterlesen"
|
|
980
986
|
};
|
|
981
|
-
var
|
|
987
|
+
var messages_de_default5 = messagesDe4;
|
|
982
988
|
|
|
983
989
|
// src/components/CustomerQuoteCard/messages.de.ts
|
|
984
990
|
var messagesDe5 = {
|
|
985
991
|
"sections.customerQuoteCard.more": "Weiterlesen"
|
|
986
992
|
};
|
|
987
|
-
var
|
|
993
|
+
var messages_de_default6 = messagesDe5;
|
|
988
994
|
|
|
989
995
|
// src/components/EventCard/messages.de.ts
|
|
990
996
|
var messagesDe6 = {
|
|
@@ -1001,7 +1007,7 @@ var messagesDe6 = {
|
|
|
1001
1007
|
"sections.eventCard.eventType.roadshow": "Roadshow",
|
|
1002
1008
|
"sections.eventCard.eventType.meetup": "Meet Up"
|
|
1003
1009
|
};
|
|
1004
|
-
var
|
|
1010
|
+
var messages_de_default7 = messagesDe6;
|
|
1005
1011
|
|
|
1006
1012
|
// src/slices/Events/messages.de.ts
|
|
1007
1013
|
var messagesDe7 = {
|
|
@@ -1015,7 +1021,7 @@ var messagesDe7 = {
|
|
|
1015
1021
|
"sections.events.eventsFilter.sortBy.newest": "Neueste zuerst",
|
|
1016
1022
|
"sections.events.eventsFilter.sortBy.oldest": "\xC4lteste zuerst"
|
|
1017
1023
|
};
|
|
1018
|
-
var
|
|
1024
|
+
var messages_de_default8 = messagesDe7;
|
|
1019
1025
|
|
|
1020
1026
|
// src/slices/Glossary/messages.de.ts
|
|
1021
1027
|
var messagesDe8 = {
|
|
@@ -1023,36 +1029,29 @@ var messagesDe8 = {
|
|
|
1023
1029
|
"sections.glossary.copySuccessMessage": "Link in die Zwischenablage kopiert",
|
|
1024
1030
|
"sections.glossary.copyFailureMessage": "Link konnte nicht in die Zwischenablage kopiert werden"
|
|
1025
1031
|
};
|
|
1026
|
-
var
|
|
1032
|
+
var messages_de_default9 = messagesDe8;
|
|
1027
1033
|
|
|
1028
1034
|
// src/components/portfolio/DocumentsDownloadList/messages.de.ts
|
|
1029
1035
|
var messagesDe9 = {
|
|
1030
1036
|
"features.portfolio.documentsDownloadList.projectDocuments": "Projektdokumente",
|
|
1031
1037
|
"features.portfolio.documentsDownloadList.downloadDocument": "Dokument herunterladen"
|
|
1032
1038
|
};
|
|
1033
|
-
var
|
|
1039
|
+
var messages_de_default10 = messagesDe9;
|
|
1034
1040
|
|
|
1035
1041
|
// src/slices/ProjectFacts/messages.de.ts
|
|
1036
1042
|
var messagesDe10 = {
|
|
1037
1043
|
"sections.projectFacts.projectInfo.value": "Projekt Infos"
|
|
1038
1044
|
};
|
|
1039
|
-
var
|
|
1040
|
-
|
|
1041
|
-
// src/components/ProjectGridCard/messages.de.ts
|
|
1042
|
-
var messagesDe11 = {
|
|
1043
|
-
"components.projectGridCard.certified": "Zertifiziert, {year}",
|
|
1044
|
-
"components.projectGridCard.certificationInProgress": "Zertifizierung ist in Arbeit"
|
|
1045
|
-
};
|
|
1046
|
-
var messages_de_default11 = messagesDe11;
|
|
1045
|
+
var messages_de_default11 = messagesDe10;
|
|
1047
1046
|
|
|
1048
1047
|
// src/slices/ProjectsMap/messages.de.ts
|
|
1049
|
-
var
|
|
1048
|
+
var messagesDe11 = {
|
|
1050
1049
|
"sections.projectsMap.link.text": "Mehr Infos"
|
|
1051
1050
|
};
|
|
1052
|
-
var messages_de_default12 =
|
|
1051
|
+
var messages_de_default12 = messagesDe11;
|
|
1053
1052
|
|
|
1054
1053
|
// src/components/portfolio/ProjectInfo/messages.de.ts
|
|
1055
|
-
var
|
|
1054
|
+
var messagesDe12 = {
|
|
1056
1055
|
"features.projectInfo.projectInfo.value": "Projekt Infos",
|
|
1057
1056
|
"features.projectInfo.properties.area": "Projekt Fl\xE4che",
|
|
1058
1057
|
"features.projectInfo.properties.location": "Standort",
|
|
@@ -1068,10 +1067,10 @@ var messagesDe13 = {
|
|
|
1068
1067
|
"features.projectInfo.properties.riskBuffer": "Anteil Risikopuffer",
|
|
1069
1068
|
"features.projectInfo.properties.year": "{years} {years, plural, one {Jahr} other {Jahre} }"
|
|
1070
1069
|
};
|
|
1071
|
-
var messages_de_default13 =
|
|
1070
|
+
var messages_de_default13 = messagesDe12;
|
|
1072
1071
|
|
|
1073
1072
|
// src/components/portfolio/SmallCheckout/messages.de.ts
|
|
1074
|
-
var
|
|
1073
|
+
var messagesDe13 = {
|
|
1075
1074
|
"portfolio.smallCheckout.price.taxNotIncluded": "ohne Steuern",
|
|
1076
1075
|
"portfolio.smallCheckout.price.taxIncluded": "Preis inklusive Steuern: {number}",
|
|
1077
1076
|
"portfolio.smallCheckout.contributionValueCurrency.label.CHF": "Geben Sie den Beitrag in Fr. ein",
|
|
@@ -1085,10 +1084,10 @@ var messagesDe14 = {
|
|
|
1085
1084
|
"portfolio.smallCheckout.contributionValueTons.label": "Beitrag in Tonnen",
|
|
1086
1085
|
"portfolio.smallCheckout.submitButton": "Credits kaufen"
|
|
1087
1086
|
};
|
|
1088
|
-
var messages_de_default14 =
|
|
1087
|
+
var messages_de_default14 = messagesDe13;
|
|
1089
1088
|
|
|
1090
1089
|
// src/slices/ShopCheckout/messages.de.ts
|
|
1091
|
-
var
|
|
1090
|
+
var messagesDe14 = {
|
|
1092
1091
|
"sections.shopCheckout.intro.price": "Preis",
|
|
1093
1092
|
"sections.shopCheckout.contributionValue.label.EUR": "Geben sie einen Betrag in \u20AC ein",
|
|
1094
1093
|
"sections.shopCheckout.contributionValue.label.CHF": "Geben sie einen Betrag in CHF ein",
|
|
@@ -1104,21 +1103,21 @@ var messagesDe15 = {
|
|
|
1104
1103
|
"sections.shopCheckout.summary.price.taxIncluded": "Preis inklusive Steuern: {number}",
|
|
1105
1104
|
"sections.shopCheckout.submit": "Kaufen"
|
|
1106
1105
|
};
|
|
1107
|
-
var messages_de_default15 =
|
|
1106
|
+
var messages_de_default15 = messagesDe14;
|
|
1108
1107
|
|
|
1109
1108
|
// src/slices/TextCarousel/messages.de.ts
|
|
1110
|
-
var
|
|
1109
|
+
var messagesDe15 = {
|
|
1111
1110
|
"sections.textCarousel.moveRight": "Nach rechts bewegen",
|
|
1112
1111
|
"sections.textCarousel.moveLeft": "Nach links bewegen"
|
|
1113
1112
|
};
|
|
1114
|
-
var messages_de_default16 =
|
|
1113
|
+
var messages_de_default16 = messagesDe15;
|
|
1115
1114
|
|
|
1116
1115
|
// src/slices/Timeline/messages.de.ts
|
|
1117
|
-
var
|
|
1116
|
+
var messagesDe16 = {
|
|
1118
1117
|
"sections.timeline.backgroundShapes": "Hintergrundformen",
|
|
1119
1118
|
"sections.timeline.showMoreButton": "Drei weitere Meilensteine anzeigen"
|
|
1120
1119
|
};
|
|
1121
|
-
var messages_de_default17 =
|
|
1120
|
+
var messages_de_default17 = messagesDe16;
|
|
1122
1121
|
|
|
1123
1122
|
// src/unit.messages.de.ts
|
|
1124
1123
|
var unitMessagesDe = {
|
|
@@ -1133,21 +1132,21 @@ var rootMessagesDe = {
|
|
|
1133
1132
|
// Components
|
|
1134
1133
|
//
|
|
1135
1134
|
...messages_de_default2,
|
|
1136
|
-
...
|
|
1137
|
-
...
|
|
1135
|
+
...messages_de_default3,
|
|
1136
|
+
...messages_de_default7,
|
|
1137
|
+
...messages_de_default10,
|
|
1138
1138
|
...messages_de_default13,
|
|
1139
1139
|
...messages_de_default14,
|
|
1140
|
-
...messages_de_default11,
|
|
1141
1140
|
//
|
|
1142
1141
|
// Slices
|
|
1143
1142
|
//
|
|
1144
1143
|
...messages_de_default,
|
|
1145
|
-
...messages_de_default3,
|
|
1146
1144
|
...messages_de_default4,
|
|
1147
1145
|
...messages_de_default5,
|
|
1148
|
-
...
|
|
1146
|
+
...messages_de_default6,
|
|
1149
1147
|
...messages_de_default8,
|
|
1150
|
-
...
|
|
1148
|
+
...messages_de_default9,
|
|
1149
|
+
...messages_de_default11,
|
|
1151
1150
|
...messages_de_default12,
|
|
1152
1151
|
...messages_de_default15,
|
|
1153
1152
|
...messages_de_default16,
|
|
@@ -1165,6 +1164,12 @@ var messagesEn = {
|
|
|
1165
1164
|
};
|
|
1166
1165
|
var messages_en_default = messagesEn;
|
|
1167
1166
|
|
|
1167
|
+
// src/components/CertificationBadge/messages.en.ts
|
|
1168
|
+
var messages_en_default2 = {
|
|
1169
|
+
"components.certificationBadge.certified": "Certified, {year}",
|
|
1170
|
+
"components.certificationBadge.certificationInProgress": "Certification in progress"
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1168
1173
|
// src/components/CreditsAvailableBadge/messages.en.ts
|
|
1169
1174
|
var messagesEn2 = {
|
|
1170
1175
|
"components.creditsAvailableBadge.text.yes": "Credits available",
|
|
@@ -1172,26 +1177,26 @@ var messagesEn2 = {
|
|
|
1172
1177
|
"components.creditsAvailableBadge.text.no": "No remaining credits",
|
|
1173
1178
|
"components.creditsAvailableBadge.text.notYet": "Credits available soon"
|
|
1174
1179
|
};
|
|
1175
|
-
var
|
|
1180
|
+
var messages_en_default3 = messagesEn2;
|
|
1176
1181
|
|
|
1177
1182
|
// src/slices/Cta/messages.en.ts
|
|
1178
1183
|
var messagesEn3 = {
|
|
1179
1184
|
"sections.cta.backgroundShapesDark": "Dark background shapes",
|
|
1180
1185
|
"sections.cta.backgroundShapesLight": "Light background shapes"
|
|
1181
1186
|
};
|
|
1182
|
-
var
|
|
1187
|
+
var messages_en_default4 = messagesEn3;
|
|
1183
1188
|
|
|
1184
1189
|
// src/components/CustomerCard/messages.en.ts
|
|
1185
1190
|
var messagesEn4 = {
|
|
1186
1191
|
"sections.customerCard.more": "Read more"
|
|
1187
1192
|
};
|
|
1188
|
-
var
|
|
1193
|
+
var messages_en_default5 = messagesEn4;
|
|
1189
1194
|
|
|
1190
1195
|
// src/components/CustomerQuoteCard/messages.en.ts
|
|
1191
1196
|
var messagesEn5 = {
|
|
1192
1197
|
"sections.customerQuoteCard.more": "Read more"
|
|
1193
1198
|
};
|
|
1194
|
-
var
|
|
1199
|
+
var messages_en_default6 = messagesEn5;
|
|
1195
1200
|
|
|
1196
1201
|
// src/components/EventCard/messages.en.ts
|
|
1197
1202
|
var messagesEn6 = {
|
|
@@ -1208,10 +1213,10 @@ var messagesEn6 = {
|
|
|
1208
1213
|
"sections.eventCard.eventType.roadshow": "Roadshow",
|
|
1209
1214
|
"sections.eventCard.eventType.meetup": "Meet Up"
|
|
1210
1215
|
};
|
|
1211
|
-
var
|
|
1216
|
+
var messages_en_default7 = messagesEn6;
|
|
1212
1217
|
|
|
1213
1218
|
// src/slices/Events/messages.en.ts
|
|
1214
|
-
var
|
|
1219
|
+
var messagesDe17 = {
|
|
1215
1220
|
"sections.events.loadMore": "Load more",
|
|
1216
1221
|
"sections.events.noUpcomingEvents": "No upcoming events found",
|
|
1217
1222
|
"sections.events.noPastEvents": "No past events found",
|
|
@@ -1222,7 +1227,7 @@ var messagesDe18 = {
|
|
|
1222
1227
|
"sections.events.eventsFilter.sortBy.newest": "Newest first",
|
|
1223
1228
|
"sections.events.eventsFilter.sortBy.oldest": "Oldest first"
|
|
1224
1229
|
};
|
|
1225
|
-
var
|
|
1230
|
+
var messages_en_default8 = messagesDe17;
|
|
1226
1231
|
|
|
1227
1232
|
// src/slices/Glossary/messages.en.ts
|
|
1228
1233
|
var messagesEn7 = {
|
|
@@ -1230,27 +1235,20 @@ var messagesEn7 = {
|
|
|
1230
1235
|
"sections.glossary.copySuccessMessage": "Copied the link to your clipboard",
|
|
1231
1236
|
"sections.glossary.copyFailureMessage": "Could not copy link to clipboard"
|
|
1232
1237
|
};
|
|
1233
|
-
var
|
|
1238
|
+
var messages_en_default9 = messagesEn7;
|
|
1234
1239
|
|
|
1235
1240
|
// src/components/portfolio/DocumentsDownloadList/messages.en.ts
|
|
1236
1241
|
var messagesEn8 = {
|
|
1237
1242
|
"features.portfolio.documentsDownloadList.projectDocuments": "Project documents",
|
|
1238
1243
|
"features.portfolio.documentsDownloadList.downloadDocument": "Download document"
|
|
1239
1244
|
};
|
|
1240
|
-
var
|
|
1245
|
+
var messages_en_default10 = messagesEn8;
|
|
1241
1246
|
|
|
1242
1247
|
// src/slices/ProjectFacts/messages.en.ts
|
|
1243
1248
|
var messagesEn9 = {
|
|
1244
1249
|
"sections.projectFacts.projectInfo.value": "Project Infos"
|
|
1245
1250
|
};
|
|
1246
|
-
var
|
|
1247
|
-
|
|
1248
|
-
// src/components/ProjectGridCard/messages.en.ts
|
|
1249
|
-
var messagesDe19 = {
|
|
1250
|
-
"components.projectGridCard.certified": "Certified, {year}",
|
|
1251
|
-
"components.projectGridCard.certificationInProgress": "Certification in progress"
|
|
1252
|
-
};
|
|
1253
|
-
var messages_en_default11 = messagesDe19;
|
|
1251
|
+
var messages_en_default11 = messagesEn9;
|
|
1254
1252
|
|
|
1255
1253
|
// src/slices/ProjectsMap/messages.en.ts
|
|
1256
1254
|
var messagesEn10 = {
|
|
@@ -1314,11 +1312,11 @@ var messagesEn13 = {
|
|
|
1314
1312
|
var messages_en_default15 = messagesEn13;
|
|
1315
1313
|
|
|
1316
1314
|
// src/slices/TextCarousel/messages.en.ts
|
|
1317
|
-
var
|
|
1315
|
+
var messagesDe18 = {
|
|
1318
1316
|
"sections.textCarousel.moveRight": "Move right",
|
|
1319
1317
|
"sections.textCarousel.moveLeft": "Move left"
|
|
1320
1318
|
};
|
|
1321
|
-
var messages_en_default16 =
|
|
1319
|
+
var messages_en_default16 = messagesDe18;
|
|
1322
1320
|
|
|
1323
1321
|
// src/slices/Timeline/messages.en.ts
|
|
1324
1322
|
var messagesEn14 = {
|
|
@@ -1340,21 +1338,21 @@ var rootMessagesEn = {
|
|
|
1340
1338
|
// Components
|
|
1341
1339
|
//
|
|
1342
1340
|
...messages_en_default2,
|
|
1343
|
-
...
|
|
1344
|
-
...
|
|
1341
|
+
...messages_en_default3,
|
|
1342
|
+
...messages_en_default7,
|
|
1343
|
+
...messages_en_default10,
|
|
1345
1344
|
...messages_en_default13,
|
|
1346
1345
|
...messages_en_default14,
|
|
1347
|
-
...messages_en_default11,
|
|
1348
1346
|
//
|
|
1349
1347
|
// Slices
|
|
1350
1348
|
//
|
|
1351
1349
|
...messages_en_default,
|
|
1352
|
-
...messages_en_default3,
|
|
1353
1350
|
...messages_en_default4,
|
|
1354
1351
|
...messages_en_default5,
|
|
1355
|
-
...
|
|
1352
|
+
...messages_en_default6,
|
|
1356
1353
|
...messages_en_default8,
|
|
1357
|
-
...
|
|
1354
|
+
...messages_en_default9,
|
|
1355
|
+
...messages_en_default11,
|
|
1358
1356
|
...messages_en_default12,
|
|
1359
1357
|
...messages_en_default15,
|
|
1360
1358
|
...messages_en_default16,
|
|
@@ -1395,7 +1393,9 @@ var IntlContext = createContext(intlFactory("en"));
|
|
|
1395
1393
|
var ContextProvider = ({
|
|
1396
1394
|
children,
|
|
1397
1395
|
locale,
|
|
1398
|
-
analyticsFunction
|
|
1396
|
+
analyticsFunction,
|
|
1397
|
+
colors: colors2,
|
|
1398
|
+
fonts
|
|
1399
1399
|
}) => {
|
|
1400
1400
|
const fetcher = async (resource, init) => {
|
|
1401
1401
|
const response = await strapiClient_default.get(`${resource}`, {
|
|
@@ -1423,7 +1423,7 @@ var ContextProvider = ({
|
|
|
1423
1423
|
},
|
|
1424
1424
|
children: [
|
|
1425
1425
|
/* @__PURE__ */ jsx6(Global, { styles: { GLOBAL_STYLE } }),
|
|
1426
|
-
/* @__PURE__ */ jsx6(BoemlyThemeProvider, { fonts: FONT_CUSTOMIZATIONS, children: /* @__PURE__ */ jsx6(IntlContext.Provider, { value: intlFactory(locale), children: /* @__PURE__ */ jsx6(AnalyticsContext.Provider, { value: analyticsFunction, children }) }) })
|
|
1426
|
+
/* @__PURE__ */ jsx6(BoemlyThemeProvider, { fonts: fonts || FONT_CUSTOMIZATIONS, colors: colors2, children: /* @__PURE__ */ jsx6(IntlContext.Provider, { value: intlFactory(locale), children: /* @__PURE__ */ jsx6(AnalyticsContext.Provider, { value: analyticsFunction, children }) }) })
|
|
1427
1427
|
]
|
|
1428
1428
|
}
|
|
1429
1429
|
) });
|
|
@@ -3536,8 +3536,8 @@ import Image18 from "next/image.js";
|
|
|
3536
3536
|
import { ArrowRightIcon as ArrowRightIcon5 } from "@phosphor-icons/react";
|
|
3537
3537
|
|
|
3538
3538
|
// src/components/ProjectGridCard/ProjectGridCard.tsx
|
|
3539
|
-
import { BoemlyTag as
|
|
3540
|
-
import { useContext as
|
|
3539
|
+
import { BoemlyTag as BoemlyTag3, Box as Box17, Container, Flex as Flex12, Heading as Heading8, Text as Text9 } from "boemly";
|
|
3540
|
+
import { useContext as useContext10 } from "react";
|
|
3541
3541
|
import Image17 from "next/image.js";
|
|
3542
3542
|
|
|
3543
3543
|
// src/constants/formatter.ts
|
|
@@ -3556,10 +3556,12 @@ var FORMAT_AS_PERCENT_CONFIG = {
|
|
|
3556
3556
|
import { useContext as useContext8 } from "react";
|
|
3557
3557
|
import { BoemlyTag, Flex as Flex10, Text as Text7 } from "boemly";
|
|
3558
3558
|
import NextLink from "next/link.js";
|
|
3559
|
-
import {
|
|
3559
|
+
import { ShoppingCartIcon } from "@phosphor-icons/react";
|
|
3560
|
+
import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3560
3561
|
var CreditsAvailableBadge = ({
|
|
3561
3562
|
status,
|
|
3562
|
-
href
|
|
3563
|
+
href,
|
|
3564
|
+
variant = "default"
|
|
3563
3565
|
}) => {
|
|
3564
3566
|
const { formatMessage } = useContext8(IntlContext);
|
|
3565
3567
|
const variants2 = {
|
|
@@ -3567,7 +3569,8 @@ var CreditsAvailableBadge = ({
|
|
|
3567
3569
|
message: formatMessage({
|
|
3568
3570
|
id: "components.creditsAvailableBadge.text.yes"
|
|
3569
3571
|
}),
|
|
3570
|
-
color: "primary.800"
|
|
3572
|
+
color: "primary.800",
|
|
3573
|
+
withIconColor: "primary.700"
|
|
3571
3574
|
},
|
|
3572
3575
|
["no_credits_available" /* NO_CREDITS_AVAILABLE */]: {
|
|
3573
3576
|
message: formatMessage({
|
|
@@ -3588,8 +3591,14 @@ var CreditsAvailableBadge = ({
|
|
|
3588
3591
|
color: "blue.500"
|
|
3589
3592
|
}
|
|
3590
3593
|
};
|
|
3591
|
-
const
|
|
3592
|
-
const
|
|
3594
|
+
const config = variants2[status];
|
|
3595
|
+
const backgroundColor = variant === "withIcon" ? config.withIconColor || config.color : config.color;
|
|
3596
|
+
const defaultBadge = /* @__PURE__ */ jsx24(BoemlyTag, { backgroundColor, children: /* @__PURE__ */ jsx24(Text7, { color: "white", size: "xsLowBold", children: config.message }) });
|
|
3597
|
+
const withIconBadge = /* @__PURE__ */ jsx24(BoemlyTag, { backgroundColor, borderRadius: "full", children: /* @__PURE__ */ jsxs21(Flex10, { alignItems: "center", gap: "2", children: [
|
|
3598
|
+
/* @__PURE__ */ jsx24(ShoppingCartIcon, { size: 16, color: "white", weight: "bold" }),
|
|
3599
|
+
/* @__PURE__ */ jsx24(Text7, { size: "smRegularNormalBold", color: "white", children: config.message })
|
|
3600
|
+
] }) });
|
|
3601
|
+
const badge = variant === "withIcon" ? withIconBadge : defaultBadge;
|
|
3593
3602
|
return /* @__PURE__ */ jsx24(Flex10, { justifyContent: "flex-start", children: href ? /* @__PURE__ */ jsx24(NextLink, { href, children: badge }) : badge });
|
|
3594
3603
|
};
|
|
3595
3604
|
var CreditsAvailableBadge_default = CreditsAvailableBadge;
|
|
@@ -3597,14 +3606,50 @@ var CreditsAvailableBadge_default = CreditsAvailableBadge;
|
|
|
3597
3606
|
// src/components/CreditsAvailableBadge/index.ts
|
|
3598
3607
|
var CreditsAvailableBadge_default2 = CreditsAvailableBadge_default;
|
|
3599
3608
|
|
|
3609
|
+
// src/components/CertificationBadge/CertificationBadge.tsx
|
|
3610
|
+
import { useContext as useContext9 } from "react";
|
|
3611
|
+
import { BoemlyTag as BoemlyTag2, Flex as Flex11, Text as Text8 } from "boemly";
|
|
3612
|
+
import { SealCheckIcon } from "@phosphor-icons/react";
|
|
3613
|
+
import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3614
|
+
var CertificationBadge = ({
|
|
3615
|
+
certificationDate,
|
|
3616
|
+
variant = "default"
|
|
3617
|
+
}) => {
|
|
3618
|
+
const { formatMessage } = useContext9(IntlContext);
|
|
3619
|
+
const isCertified = !!certificationDate;
|
|
3620
|
+
const defaultBadge = /* @__PURE__ */ jsx25(BoemlyTag2, { backgroundColor: "gray.100", children: /* @__PURE__ */ jsx25(Text8, { size: "xsLowBold", color: "gray.800", children: isCertified ? formatMessage(
|
|
3621
|
+
{ id: "components.certificationBadge.certified" },
|
|
3622
|
+
{ year: new Date(certificationDate).getFullYear() }
|
|
3623
|
+
) : formatMessage({
|
|
3624
|
+
id: "components.certificationBadge.certificationInProgress"
|
|
3625
|
+
}) }) });
|
|
3626
|
+
const withIconBadge = isCertified ? /* @__PURE__ */ jsx25(BoemlyTag2, { backgroundColor: "primary.700", borderRadius: "full", children: /* @__PURE__ */ jsxs22(Flex11, { alignItems: "center", gap: "2", children: [
|
|
3627
|
+
/* @__PURE__ */ jsx25(SealCheckIcon, { size: 16, color: "white", weight: "bold" }),
|
|
3628
|
+
/* @__PURE__ */ jsx25(Text8, { size: "smRegularNormalBold", color: "white", children: formatMessage(
|
|
3629
|
+
{ id: "components.certificationBadge.certified" },
|
|
3630
|
+
{ year: new Date(certificationDate).getFullYear() }
|
|
3631
|
+
) })
|
|
3632
|
+
] }) }) : /* @__PURE__ */ jsx25(BoemlyTag2, { backgroundColor: "gray.100", borderRadius: "full", children: /* @__PURE__ */ jsxs22(Flex11, { alignItems: "center", gap: "2", children: [
|
|
3633
|
+
/* @__PURE__ */ jsx25(SealCheckIcon, { size: 16, color: "gray.800", weight: "bold" }),
|
|
3634
|
+
/* @__PURE__ */ jsx25(Text8, { size: "smRegularNormalBold", color: "gray.800", children: formatMessage({
|
|
3635
|
+
id: "components.certificationBadge.certificationInProgress"
|
|
3636
|
+
}) })
|
|
3637
|
+
] }) });
|
|
3638
|
+
return variant === "withIcon" ? withIconBadge : defaultBadge;
|
|
3639
|
+
};
|
|
3640
|
+
var CertificationBadge_default = CertificationBadge;
|
|
3641
|
+
|
|
3642
|
+
// src/components/CertificationBadge/index.ts
|
|
3643
|
+
var CertificationBadge_default2 = CertificationBadge_default;
|
|
3644
|
+
|
|
3600
3645
|
// src/components/ProjectGridCard/ProjectGridCard.tsx
|
|
3601
|
-
import { jsx as
|
|
3646
|
+
import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3602
3647
|
var ProjectGridCard = ({
|
|
3603
3648
|
project
|
|
3604
3649
|
}) => {
|
|
3605
|
-
const { formatNumber
|
|
3606
|
-
return /* @__PURE__ */
|
|
3607
|
-
project.thumbnail && /* @__PURE__ */
|
|
3650
|
+
const { formatNumber } = useContext10(IntlContext);
|
|
3651
|
+
return /* @__PURE__ */ jsx26(Container, { height: "full", children: /* @__PURE__ */ jsxs23(Flex12, { flexDir: "column", height: "full", children: [
|
|
3652
|
+
project.thumbnail && /* @__PURE__ */ jsx26(Box17, { borderRadius: "xl", position: "relative", height: "36", mb: "2", children: /* @__PURE__ */ jsx26(
|
|
3608
3653
|
Image17,
|
|
3609
3654
|
{
|
|
3610
3655
|
src: strapiMediaUrl_default(project.thumbnail?.img, "medium"),
|
|
@@ -3616,20 +3661,15 @@ var ProjectGridCard = ({
|
|
|
3616
3661
|
}
|
|
3617
3662
|
}
|
|
3618
3663
|
) }),
|
|
3619
|
-
/* @__PURE__ */
|
|
3620
|
-
/* @__PURE__ */
|
|
3621
|
-
/* @__PURE__ */
|
|
3664
|
+
/* @__PURE__ */ jsx26(Heading8, { my: "4", size: "lg", children: project.friendlyName || project.title }),
|
|
3665
|
+
/* @__PURE__ */ jsxs23(Flex12, { flexDir: "row", gap: "2", flexWrap: "wrap", children: [
|
|
3666
|
+
/* @__PURE__ */ jsx26(BoemlyTag3, { backgroundColor: "gray.100", children: /* @__PURE__ */ jsx26(Text9, { size: "xsLowBold", color: "gray.800", children: formatNumber(
|
|
3622
3667
|
(project.area || 0) / 1e4,
|
|
3623
3668
|
FORMAT_AS_HECTARE_CONFIG
|
|
3624
3669
|
) }) }),
|
|
3625
|
-
/* @__PURE__ */
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
{ year: new Date(project.certificationDate).getFullYear() }
|
|
3629
|
-
) }) }) : /* @__PURE__ */ jsx25(BoemlyTag2, { backgroundColor: "gray.100", children: /* @__PURE__ */ jsx25(Text8, { size: "xsLowBold", color: "gray.800", children: formatMessage({
|
|
3630
|
-
id: "components.projectGridCard.certificationInProgress"
|
|
3631
|
-
}) }) }),
|
|
3632
|
-
/* @__PURE__ */ jsx25(CreditsAvailableBadge_default2, { status: project.creditAvailability })
|
|
3670
|
+
/* @__PURE__ */ jsx26(BoemlyTag3, { backgroundColor: "gray.100", children: /* @__PURE__ */ jsx26(Text9, { size: "xsLowBold", color: "gray.800", children: project.location }) }),
|
|
3671
|
+
/* @__PURE__ */ jsx26(CertificationBadge_default2, { certificationDate: project.certificationDate }),
|
|
3672
|
+
/* @__PURE__ */ jsx26(CreditsAvailableBadge_default2, { status: project.creditAvailability })
|
|
3633
3673
|
] })
|
|
3634
3674
|
] }) });
|
|
3635
3675
|
};
|
|
@@ -3638,7 +3678,7 @@ var ProjectGridCard = ({
|
|
|
3638
3678
|
var ProjectGridCard_default = ProjectGridCard;
|
|
3639
3679
|
|
|
3640
3680
|
// src/slices/TextWithCard/TextWithCard.tsx
|
|
3641
|
-
import { Fragment as Fragment15, jsx as
|
|
3681
|
+
import { Fragment as Fragment15, jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3642
3682
|
var TextWithCard = ({
|
|
3643
3683
|
slice,
|
|
3644
3684
|
projects
|
|
@@ -3646,7 +3686,7 @@ var TextWithCard = ({
|
|
|
3646
3686
|
const portfolioProject = projects.find(
|
|
3647
3687
|
(p) => slice.project?.data?.attributes.fpmProjectId && p.id === slice.project.data.attributes.fpmProjectId
|
|
3648
3688
|
);
|
|
3649
|
-
const card = /* @__PURE__ */
|
|
3689
|
+
const card = /* @__PURE__ */ jsxs24(
|
|
3650
3690
|
GridItem4,
|
|
3651
3691
|
{
|
|
3652
3692
|
colSpan: [4, null, null, null, 2],
|
|
@@ -3654,15 +3694,15 @@ var TextWithCard = ({
|
|
|
3654
3694
|
position: "relative",
|
|
3655
3695
|
"data-testid": `card-position-${slice.cardPosition}`,
|
|
3656
3696
|
children: [
|
|
3657
|
-
portfolioProject && /* @__PURE__ */
|
|
3658
|
-
!portfolioProject && slice.card && /* @__PURE__ */
|
|
3697
|
+
portfolioProject && /* @__PURE__ */ jsx27(ProjectGridCard_default, { project: portfolioProject }),
|
|
3698
|
+
!portfolioProject && slice.card && /* @__PURE__ */ jsx27(
|
|
3659
3699
|
ProjectCard,
|
|
3660
3700
|
{
|
|
3661
3701
|
facts: slice.card.facts,
|
|
3662
3702
|
footerSubTitle: slice.card.footerSubTitle,
|
|
3663
3703
|
footerTitle: slice.card.footerTitle,
|
|
3664
3704
|
title: slice.card.title,
|
|
3665
|
-
image: /* @__PURE__ */
|
|
3705
|
+
image: /* @__PURE__ */ jsx27(
|
|
3666
3706
|
Image18,
|
|
3667
3707
|
{
|
|
3668
3708
|
src: strapiMediaUrl_default(slice.card.image.img, "medium"),
|
|
@@ -3676,7 +3716,7 @@ var TextWithCard = ({
|
|
|
3676
3716
|
]
|
|
3677
3717
|
}
|
|
3678
3718
|
);
|
|
3679
|
-
return /* @__PURE__ */
|
|
3719
|
+
return /* @__PURE__ */ jsx27(DefaultSectionContainer12, { title: slice.title, children: /* @__PURE__ */ jsx27(Wrapper16, { children: /* @__PURE__ */ jsxs24(
|
|
3680
3720
|
Grid4,
|
|
3681
3721
|
{
|
|
3682
3722
|
templateColumns: [
|
|
@@ -3697,8 +3737,8 @@ var TextWithCard = ({
|
|
|
3697
3737
|
columnGap: ["0", null, null, null, "28"],
|
|
3698
3738
|
children: [
|
|
3699
3739
|
slice.cardPosition === "left" && card,
|
|
3700
|
-
/* @__PURE__ */
|
|
3701
|
-
/* @__PURE__ */
|
|
3740
|
+
/* @__PURE__ */ jsxs24(GridItem4, { colSpan: 4, rowSpan: 1, position: "relative", children: [
|
|
3741
|
+
/* @__PURE__ */ jsx27(
|
|
3702
3742
|
DefaultSectionHeader13,
|
|
3703
3743
|
{
|
|
3704
3744
|
tagline: slice.tagline,
|
|
@@ -3706,19 +3746,19 @@ var TextWithCard = ({
|
|
|
3706
3746
|
text: slice.text
|
|
3707
3747
|
}
|
|
3708
3748
|
),
|
|
3709
|
-
slice.listItems && /* @__PURE__ */
|
|
3710
|
-
/* @__PURE__ */
|
|
3711
|
-
/* @__PURE__ */
|
|
3712
|
-
/* @__PURE__ */
|
|
3749
|
+
slice.listItems && /* @__PURE__ */ jsxs24(Fragment15, { children: [
|
|
3750
|
+
/* @__PURE__ */ jsx27(Spacer4, { height: "10" }),
|
|
3751
|
+
/* @__PURE__ */ jsx27(BoemlyList2, { listItems: slice.listItems }),
|
|
3752
|
+
/* @__PURE__ */ jsx27(Spacer4, { height: "10" })
|
|
3713
3753
|
] }),
|
|
3714
|
-
slice.button && /* @__PURE__ */
|
|
3754
|
+
slice.button && /* @__PURE__ */ jsx27(
|
|
3715
3755
|
StrapiLinkButton_default,
|
|
3716
3756
|
{
|
|
3717
3757
|
link: slice.button,
|
|
3718
3758
|
size: "md",
|
|
3719
3759
|
colorPalette: "white",
|
|
3720
3760
|
variant: "outline",
|
|
3721
|
-
rightIcon: /* @__PURE__ */
|
|
3761
|
+
rightIcon: /* @__PURE__ */ jsx27(ArrowRightIcon5, {}),
|
|
3722
3762
|
component: "TextWithCard"
|
|
3723
3763
|
}
|
|
3724
3764
|
)
|
|
@@ -3740,7 +3780,7 @@ import {
|
|
|
3740
3780
|
DefaultSectionHeader as DefaultSectionHeader14,
|
|
3741
3781
|
Heading as Heading9,
|
|
3742
3782
|
SimpleGrid as SimpleGrid8,
|
|
3743
|
-
Text as
|
|
3783
|
+
Text as Text10,
|
|
3744
3784
|
Wrapper as Wrapper17
|
|
3745
3785
|
} from "boemly";
|
|
3746
3786
|
import { CaretRightIcon as CaretRightIcon5 } from "@phosphor-icons/react";
|
|
@@ -3749,11 +3789,11 @@ import { CaretRightIcon as CaretRightIcon5 } from "@phosphor-icons/react";
|
|
|
3749
3789
|
var MEDIUM_TRANSITION_DURATION = 0.2;
|
|
3750
3790
|
|
|
3751
3791
|
// src/slices/LinkCardsGrid/LinkCardsGrid.tsx
|
|
3752
|
-
import { jsx as
|
|
3792
|
+
import { jsx as jsx28, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3753
3793
|
var LinkCardsGrid = ({
|
|
3754
3794
|
slice
|
|
3755
|
-
}) => /* @__PURE__ */
|
|
3756
|
-
/* @__PURE__ */
|
|
3795
|
+
}) => /* @__PURE__ */ jsx28(DefaultSectionContainer13, { title: slice.title, children: /* @__PURE__ */ jsxs25(Wrapper17, { children: [
|
|
3796
|
+
/* @__PURE__ */ jsx28(
|
|
3757
3797
|
DefaultSectionHeader14,
|
|
3758
3798
|
{
|
|
3759
3799
|
tagline: slice.tagline,
|
|
@@ -3761,7 +3801,7 @@ var LinkCardsGrid = ({
|
|
|
3761
3801
|
text: slice.text
|
|
3762
3802
|
}
|
|
3763
3803
|
),
|
|
3764
|
-
/* @__PURE__ */
|
|
3804
|
+
/* @__PURE__ */ jsx28(SimpleGrid8, { mt: "16", columns: [1, null, null, null, 2], gap: "4", children: slice.cards.map(({ id, title, text, link }) => /* @__PURE__ */ jsx28(Link2, { href: strapiLinkUrl_default(link), children: /* @__PURE__ */ jsxs25(
|
|
3765
3805
|
Box18,
|
|
3766
3806
|
{
|
|
3767
3807
|
"data-testid": "link",
|
|
@@ -3779,11 +3819,11 @@ var LinkCardsGrid = ({
|
|
|
3779
3819
|
transitionDuration: `${MEDIUM_TRANSITION_DURATION}s`,
|
|
3780
3820
|
_hover: { backgroundColor: "gray.50" },
|
|
3781
3821
|
children: [
|
|
3782
|
-
/* @__PURE__ */
|
|
3783
|
-
/* @__PURE__ */
|
|
3784
|
-
text && /* @__PURE__ */
|
|
3822
|
+
/* @__PURE__ */ jsxs25("div", { children: [
|
|
3823
|
+
/* @__PURE__ */ jsx28(Heading9, { as: "h4", size: "lg", children: title }),
|
|
3824
|
+
text && /* @__PURE__ */ jsx28(Text10, { mt: "2", size: "smRegularNormal", children: text })
|
|
3785
3825
|
] }),
|
|
3786
|
-
/* @__PURE__ */
|
|
3826
|
+
/* @__PURE__ */ jsx28(
|
|
3787
3827
|
Box18,
|
|
3788
3828
|
{
|
|
3789
3829
|
display: "flex",
|
|
@@ -3799,7 +3839,7 @@ var LinkCardsGrid = ({
|
|
|
3799
3839
|
minHeight: "12",
|
|
3800
3840
|
ml: "6",
|
|
3801
3841
|
backgroundColor: "white",
|
|
3802
|
-
children: /* @__PURE__ */
|
|
3842
|
+
children: /* @__PURE__ */ jsx28(CaretRightIcon5, {})
|
|
3803
3843
|
}
|
|
3804
3844
|
)
|
|
3805
3845
|
]
|
|
@@ -3812,15 +3852,15 @@ var LinkCardsGrid_default = LinkCardsGrid;
|
|
|
3812
3852
|
|
|
3813
3853
|
// src/slices/SmallHero/SmallHero.tsx
|
|
3814
3854
|
import {
|
|
3815
|
-
BoemlyTag as
|
|
3855
|
+
BoemlyTag as BoemlyTag4,
|
|
3816
3856
|
Box as Box19,
|
|
3817
3857
|
DefaultSectionHeader as DefaultSectionHeader15,
|
|
3818
|
-
Flex as
|
|
3858
|
+
Flex as Flex13,
|
|
3819
3859
|
Gradient as Gradient3,
|
|
3820
3860
|
Wrapper as Wrapper18
|
|
3821
3861
|
} from "boemly";
|
|
3822
3862
|
import Image19 from "next/image.js";
|
|
3823
|
-
import { Fragment as Fragment16, jsx as
|
|
3863
|
+
import { Fragment as Fragment16, jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3824
3864
|
var colors = {
|
|
3825
3865
|
dark: {
|
|
3826
3866
|
tagline: "white",
|
|
@@ -3838,7 +3878,7 @@ var colors = {
|
|
|
3838
3878
|
var SmallHero = ({
|
|
3839
3879
|
slice,
|
|
3840
3880
|
theme
|
|
3841
|
-
}) => /* @__PURE__ */
|
|
3881
|
+
}) => /* @__PURE__ */ jsxs26(
|
|
3842
3882
|
Box19,
|
|
3843
3883
|
{
|
|
3844
3884
|
position: "relative",
|
|
@@ -3846,8 +3886,8 @@ var SmallHero = ({
|
|
|
3846
3886
|
height: "xl",
|
|
3847
3887
|
backgroundColor: colors[theme].background,
|
|
3848
3888
|
children: [
|
|
3849
|
-
slice.image && /* @__PURE__ */
|
|
3850
|
-
/* @__PURE__ */
|
|
3889
|
+
slice.image && /* @__PURE__ */ jsxs26(Fragment16, { children: [
|
|
3890
|
+
/* @__PURE__ */ jsx29(
|
|
3851
3891
|
Image19,
|
|
3852
3892
|
{
|
|
3853
3893
|
src: strapiMediaUrl_default(slice.image.img, "xLarge"),
|
|
@@ -3856,9 +3896,9 @@ var SmallHero = ({
|
|
|
3856
3896
|
style: { objectFit: slice.image.objectFit || "cover" }
|
|
3857
3897
|
}
|
|
3858
3898
|
),
|
|
3859
|
-
slice.gradient && /* @__PURE__ */
|
|
3899
|
+
slice.gradient && /* @__PURE__ */ jsx29(Gradient3, {})
|
|
3860
3900
|
] }),
|
|
3861
|
-
/* @__PURE__ */
|
|
3901
|
+
/* @__PURE__ */ jsx29(
|
|
3862
3902
|
Box19,
|
|
3863
3903
|
{
|
|
3864
3904
|
position: "absolute",
|
|
@@ -3867,9 +3907,9 @@ var SmallHero = ({
|
|
|
3867
3907
|
width: "full",
|
|
3868
3908
|
textAlign: "center",
|
|
3869
3909
|
transform: "translateY(-50%)",
|
|
3870
|
-
children: /* @__PURE__ */
|
|
3871
|
-
slice.tags && /* @__PURE__ */
|
|
3872
|
-
|
|
3910
|
+
children: /* @__PURE__ */ jsx29(Wrapper18, { children: /* @__PURE__ */ jsxs26(Fragment16, { children: [
|
|
3911
|
+
slice.tags && /* @__PURE__ */ jsx29(Flex13, { direction: "row", justify: "center", gap: "2", mb: "4", wrap: "wrap", children: slice.tags.map(({ id, text, colorPalette }) => /* @__PURE__ */ jsx29(
|
|
3912
|
+
BoemlyTag4,
|
|
3873
3913
|
{
|
|
3874
3914
|
colorPalette,
|
|
3875
3915
|
size: "md",
|
|
@@ -3878,7 +3918,7 @@ var SmallHero = ({
|
|
|
3878
3918
|
},
|
|
3879
3919
|
id
|
|
3880
3920
|
)) }),
|
|
3881
|
-
/* @__PURE__ */
|
|
3921
|
+
/* @__PURE__ */ jsx29(
|
|
3882
3922
|
DefaultSectionHeader15,
|
|
3883
3923
|
{
|
|
3884
3924
|
isHero: true,
|
|
@@ -3904,7 +3944,7 @@ var SmallHero = ({
|
|
|
3904
3944
|
}
|
|
3905
3945
|
}
|
|
3906
3946
|
),
|
|
3907
|
-
slice.button && /* @__PURE__ */
|
|
3947
|
+
slice.button && /* @__PURE__ */ jsx29(
|
|
3908
3948
|
StrapiLinkButton_default,
|
|
3909
3949
|
{
|
|
3910
3950
|
link: slice.button,
|
|
@@ -3924,7 +3964,7 @@ var SmallHero = ({
|
|
|
3924
3964
|
var SmallHero_default = SmallHero;
|
|
3925
3965
|
|
|
3926
3966
|
// src/slices/Blog/Blog.tsx
|
|
3927
|
-
import { useContext as
|
|
3967
|
+
import { useContext as useContext11 } from "react";
|
|
3928
3968
|
import {
|
|
3929
3969
|
Box as Box21,
|
|
3930
3970
|
DatePersonPair,
|
|
@@ -3932,7 +3972,7 @@ import {
|
|
|
3932
3972
|
Heading as Heading10,
|
|
3933
3973
|
SimpleGrid as SimpleGrid9,
|
|
3934
3974
|
Spacer as Spacer5,
|
|
3935
|
-
Text as
|
|
3975
|
+
Text as Text11,
|
|
3936
3976
|
Wrapper as Wrapper19
|
|
3937
3977
|
} from "boemly";
|
|
3938
3978
|
import Image20 from "next/image.js";
|
|
@@ -3979,24 +4019,24 @@ var ImageContainer = styled3(Box20)`
|
|
|
3979
4019
|
`;
|
|
3980
4020
|
|
|
3981
4021
|
// src/slices/Blog/Blog.tsx
|
|
3982
|
-
import { jsx as
|
|
4022
|
+
import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3983
4023
|
var Blog = ({ slice, blogPosts }) => {
|
|
3984
|
-
const { formatDate } =
|
|
4024
|
+
const { formatDate } = useContext11(IntlContext);
|
|
3985
4025
|
const sortedBlogPosts = slice.blog_posts.sort(
|
|
3986
4026
|
(a, b) => new Date(b.attributes.createdAt).getTime() - new Date(a.attributes.createdAt).getTime()
|
|
3987
4027
|
);
|
|
3988
|
-
return /* @__PURE__ */
|
|
4028
|
+
return /* @__PURE__ */ jsx30(DefaultSectionContainer14, { children: /* @__PURE__ */ jsx30(Wrapper19, { children: /* @__PURE__ */ jsx30(SimpleGrid9, { columns: [1, null, null, 2], gapX: 56, gapY: 24, children: sortedBlogPosts.map(({ attributes }) => {
|
|
3989
4029
|
const blogPost = blogPosts.find((bp) => bp.attributes.slug === attributes.slug);
|
|
3990
4030
|
if (!blogPost) {
|
|
3991
4031
|
return null;
|
|
3992
4032
|
}
|
|
3993
|
-
return /* @__PURE__ */
|
|
4033
|
+
return /* @__PURE__ */ jsxs27(
|
|
3994
4034
|
BlogItemContainer,
|
|
3995
4035
|
{
|
|
3996
4036
|
as: Link4,
|
|
3997
4037
|
href: `/blog/${blogPost.attributes.slug}`,
|
|
3998
4038
|
children: [
|
|
3999
|
-
/* @__PURE__ */
|
|
4039
|
+
/* @__PURE__ */ jsx30(ImageContainer, { children: /* @__PURE__ */ jsx30(
|
|
4000
4040
|
Image20,
|
|
4001
4041
|
{
|
|
4002
4042
|
src: strapiMediaUrl_default(blogPost.attributes.img.img, "large"),
|
|
@@ -4007,18 +4047,18 @@ var Blog = ({ slice, blogPosts }) => {
|
|
|
4007
4047
|
}
|
|
4008
4048
|
}
|
|
4009
4049
|
) }),
|
|
4010
|
-
/* @__PURE__ */
|
|
4011
|
-
blogPost.attributes.category.data && /* @__PURE__ */
|
|
4012
|
-
/* @__PURE__ */
|
|
4013
|
-
blogPost.attributes.teaser && /* @__PURE__ */
|
|
4014
|
-
/* @__PURE__ */
|
|
4015
|
-
/* @__PURE__ */
|
|
4050
|
+
/* @__PURE__ */ jsxs27(Box21, { px: "2", py: "8", children: [
|
|
4051
|
+
blogPost.attributes.category.data && /* @__PURE__ */ jsx30(Text11, { size: "smMonoUppercase", color: "primary.800", mb: "2", children: blogPost.attributes.category.data.attributes.name }),
|
|
4052
|
+
/* @__PURE__ */ jsx30(Heading10, { size: "lg", children: blogPost.attributes.title }),
|
|
4053
|
+
blogPost.attributes.teaser && /* @__PURE__ */ jsx30(Text11, { size: "mdRegularNormal", mt: "2", children: blogPost.attributes.teaser }),
|
|
4054
|
+
/* @__PURE__ */ jsx30(Spacer5, { height: "4" }),
|
|
4055
|
+
/* @__PURE__ */ jsx30(
|
|
4016
4056
|
DatePersonPair,
|
|
4017
4057
|
{
|
|
4018
4058
|
date: formatDate(blogPost.attributes.createdAt),
|
|
4019
4059
|
person: blogPost.attributes.author.data ? {
|
|
4020
4060
|
name: blogPost.attributes.author.data.attributes.name,
|
|
4021
|
-
image: /* @__PURE__ */
|
|
4061
|
+
image: /* @__PURE__ */ jsx30(
|
|
4022
4062
|
Image20,
|
|
4023
4063
|
{
|
|
4024
4064
|
src: strapiMediaUrl_default(
|
|
@@ -4049,7 +4089,7 @@ var Blog_default = Blog;
|
|
|
4049
4089
|
// src/slices/ProjectsGrid/ProjectsGrid.tsx
|
|
4050
4090
|
import { Box as Box22, DefaultSectionContainer as DefaultSectionContainer15, SimpleGrid as SimpleGrid10, Wrapper as Wrapper20 } from "boemly";
|
|
4051
4091
|
import Link5 from "next/link.js";
|
|
4052
|
-
import { jsx as
|
|
4092
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
4053
4093
|
var ConditionalWrapper = ({
|
|
4054
4094
|
condition,
|
|
4055
4095
|
wrapper,
|
|
@@ -4064,11 +4104,11 @@ var ProjectsGrid = ({
|
|
|
4064
4104
|
(strapiProject) => strapiProject.attributes.fpmProjectId === fpmProject.id
|
|
4065
4105
|
)
|
|
4066
4106
|
);
|
|
4067
|
-
return /* @__PURE__ */
|
|
4107
|
+
return /* @__PURE__ */ jsx31(DefaultSectionContainer15, { children: /* @__PURE__ */ jsx31(Wrapper20, { children: /* @__PURE__ */ jsx31(SimpleGrid10, { columns: [1, null, null, 2, null, 3], gap: "16", children: filteredProjects.map((project) => /* @__PURE__ */ jsx31(
|
|
4068
4108
|
ConditionalWrapper,
|
|
4069
4109
|
{
|
|
4070
4110
|
condition: !!project.slug,
|
|
4071
|
-
wrapper: (children) => /* @__PURE__ */
|
|
4111
|
+
wrapper: (children) => /* @__PURE__ */ jsx31(
|
|
4072
4112
|
Link5,
|
|
4073
4113
|
{
|
|
4074
4114
|
href: `${project.portfolioHost || ""}/portfolio/${project.slug}`,
|
|
@@ -4078,7 +4118,7 @@ var ProjectsGrid = ({
|
|
|
4078
4118
|
},
|
|
4079
4119
|
project.id
|
|
4080
4120
|
),
|
|
4081
|
-
children: /* @__PURE__ */
|
|
4121
|
+
children: /* @__PURE__ */ jsx31(
|
|
4082
4122
|
Box22,
|
|
4083
4123
|
{
|
|
4084
4124
|
as: "a",
|
|
@@ -4086,7 +4126,7 @@ var ProjectsGrid = ({
|
|
|
4086
4126
|
borderRadius: "2xl",
|
|
4087
4127
|
transition: `box-shadow ease ${MEDIUM_TRANSITION_DURATION}s`,
|
|
4088
4128
|
_hover: { boxShadow: "lg" },
|
|
4089
|
-
children: /* @__PURE__ */
|
|
4129
|
+
children: /* @__PURE__ */ jsx31(ProjectGridCard_default, { project })
|
|
4090
4130
|
}
|
|
4091
4131
|
)
|
|
4092
4132
|
},
|
|
@@ -4097,21 +4137,161 @@ var ProjectsGrid = ({
|
|
|
4097
4137
|
// src/slices/ProjectsGrid/index.ts
|
|
4098
4138
|
var ProjectsGrid_default = ProjectsGrid;
|
|
4099
4139
|
|
|
4140
|
+
// src/slices/ProjectsGridV2/ProjectsGridV2.tsx
|
|
4141
|
+
import { Box as Box24, DefaultSectionContainer as DefaultSectionContainer16, SimpleGrid as SimpleGrid11, Wrapper as Wrapper21 } from "boemly";
|
|
4142
|
+
import Link6 from "next/link.js";
|
|
4143
|
+
|
|
4144
|
+
// src/components/ProjectGridCardV2/ProjectGridCardV2.tsx
|
|
4145
|
+
import { BoemlyTag as BoemlyTag5, Box as Box23, Flex as Flex14, Heading as Heading11, Text as Text12 } from "boemly";
|
|
4146
|
+
import { useContext as useContext12 } from "react";
|
|
4147
|
+
import Image21 from "next/image.js";
|
|
4148
|
+
import { MapPinIcon, ArrowsOutIcon } from "@phosphor-icons/react";
|
|
4149
|
+
|
|
4150
|
+
// src/utils/getCountryFlag.ts
|
|
4151
|
+
var getCountryFlag = (countryCode) => {
|
|
4152
|
+
return countryCode.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397));
|
|
4153
|
+
};
|
|
4154
|
+
var getCountryFlag_default = getCountryFlag;
|
|
4155
|
+
|
|
4156
|
+
// src/components/ProjectGridCardV2/ProjectGridCardV2.tsx
|
|
4157
|
+
import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4158
|
+
var ProjectGridCardV2 = ({
|
|
4159
|
+
project
|
|
4160
|
+
}) => {
|
|
4161
|
+
const { formatNumber } = useContext12(IntlContext);
|
|
4162
|
+
return /* @__PURE__ */ jsx32(Box23, { height: "full", borderRadius: "lg", boxShadow: "sm", overflow: "hidden", children: /* @__PURE__ */ jsxs28(Flex14, { flexDir: "column", height: "full", children: [
|
|
4163
|
+
/* @__PURE__ */ jsxs28(Box23, { position: "relative", height: "56", children: [
|
|
4164
|
+
project.thumbnail && /* @__PURE__ */ jsx32(
|
|
4165
|
+
Image21,
|
|
4166
|
+
{
|
|
4167
|
+
src: strapiMediaUrl_default(project.thumbnail?.img, "medium"),
|
|
4168
|
+
alt: project.thumbnail?.alt,
|
|
4169
|
+
fill: true,
|
|
4170
|
+
style: {
|
|
4171
|
+
objectFit: project.thumbnail?.objectFit || "cover"
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
),
|
|
4175
|
+
project.projectType?.title && /* @__PURE__ */ jsx32(Box23, { position: "absolute", top: "4", left: "4", children: /* @__PURE__ */ jsx32(BoemlyTag5, { backgroundColor: "gray.900", borderRadius: "full", children: /* @__PURE__ */ jsx32(Text12, { size: "smRegularNormalBold", color: "white", children: project.projectType.title }) }) }),
|
|
4176
|
+
/* @__PURE__ */ jsxs28(
|
|
4177
|
+
Flex14,
|
|
4178
|
+
{
|
|
4179
|
+
position: "absolute",
|
|
4180
|
+
bottom: "4",
|
|
4181
|
+
right: "4",
|
|
4182
|
+
flexDir: "column",
|
|
4183
|
+
gap: "2",
|
|
4184
|
+
alignItems: "flex-end",
|
|
4185
|
+
children: [
|
|
4186
|
+
/* @__PURE__ */ jsx32(
|
|
4187
|
+
CertificationBadge_default2,
|
|
4188
|
+
{
|
|
4189
|
+
certificationDate: project.certificationDate,
|
|
4190
|
+
variant: "withIcon"
|
|
4191
|
+
}
|
|
4192
|
+
),
|
|
4193
|
+
/* @__PURE__ */ jsx32(
|
|
4194
|
+
CreditsAvailableBadge_default2,
|
|
4195
|
+
{
|
|
4196
|
+
variant: "withIcon",
|
|
4197
|
+
status: project.creditAvailability
|
|
4198
|
+
}
|
|
4199
|
+
)
|
|
4200
|
+
]
|
|
4201
|
+
}
|
|
4202
|
+
)
|
|
4203
|
+
] }),
|
|
4204
|
+
/* @__PURE__ */ jsxs28(Box23, { padding: "6", backgroundColor: "white", children: [
|
|
4205
|
+
/* @__PURE__ */ jsx32(Heading11, { size: "2xl", color: "primary.700", mb: "2", children: project.friendlyName || project.title }),
|
|
4206
|
+
/* @__PURE__ */ jsxs28(Flex14, { flexDir: "column", gap: "2", children: [
|
|
4207
|
+
/* @__PURE__ */ jsxs28(Flex14, { alignItems: "center", gap: "3", children: [
|
|
4208
|
+
/* @__PURE__ */ jsx32(MapPinIcon, { size: 20, color: "var(--boemly-colors-gray-400)" }),
|
|
4209
|
+
/* @__PURE__ */ jsxs28(Text12, { fontSize: "lg", color: "gray.500", children: [
|
|
4210
|
+
project.location,
|
|
4211
|
+
" ",
|
|
4212
|
+
getCountryFlag_default(project.countryCode)
|
|
4213
|
+
] })
|
|
4214
|
+
] }),
|
|
4215
|
+
/* @__PURE__ */ jsxs28(Flex14, { alignItems: "center", gap: "3", children: [
|
|
4216
|
+
/* @__PURE__ */ jsx32(ArrowsOutIcon, { size: 20, color: "var(--boemly-colors-gray-400)" }),
|
|
4217
|
+
/* @__PURE__ */ jsx32(Text12, { fontSize: "lg", color: "gray.500", children: formatNumber(
|
|
4218
|
+
(project.area || 0) / 1e4,
|
|
4219
|
+
FORMAT_AS_HECTARE_CONFIG
|
|
4220
|
+
) })
|
|
4221
|
+
] })
|
|
4222
|
+
] })
|
|
4223
|
+
] })
|
|
4224
|
+
] }) });
|
|
4225
|
+
};
|
|
4226
|
+
|
|
4227
|
+
// src/components/ProjectGridCardV2/index.ts
|
|
4228
|
+
var ProjectGridCardV2_default = ProjectGridCardV2;
|
|
4229
|
+
|
|
4230
|
+
// src/slices/ProjectsGridV2/ProjectsGridV2.tsx
|
|
4231
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
4232
|
+
var ConditionalWrapper2 = ({
|
|
4233
|
+
condition,
|
|
4234
|
+
wrapper,
|
|
4235
|
+
children
|
|
4236
|
+
}) => condition ? wrapper(children) : children;
|
|
4237
|
+
var ProjectsGridV2 = ({
|
|
4238
|
+
projects,
|
|
4239
|
+
slice
|
|
4240
|
+
}) => {
|
|
4241
|
+
const filteredProjects = projects.filter(
|
|
4242
|
+
(fpmProject) => fpmProject.thumbnail && slice.projects.data.some(
|
|
4243
|
+
(strapiProject) => strapiProject.attributes.fpmProjectId === fpmProject.id
|
|
4244
|
+
)
|
|
4245
|
+
);
|
|
4246
|
+
return /* @__PURE__ */ jsx33(DefaultSectionContainer16, { children: /* @__PURE__ */ jsx33(Wrapper21, { children: /* @__PURE__ */ jsx33(SimpleGrid11, { columns: [1, null, 2, null, 3], gap: "16", children: filteredProjects.map((project) => /* @__PURE__ */ jsx33(
|
|
4247
|
+
ConditionalWrapper2,
|
|
4248
|
+
{
|
|
4249
|
+
condition: !!project.slug,
|
|
4250
|
+
wrapper: (children) => /* @__PURE__ */ jsx33(
|
|
4251
|
+
Link6,
|
|
4252
|
+
{
|
|
4253
|
+
href: `${project.portfolioHost || ""}/portfolio/${project.slug}`,
|
|
4254
|
+
passHref: true,
|
|
4255
|
+
legacyBehavior: true,
|
|
4256
|
+
children
|
|
4257
|
+
},
|
|
4258
|
+
project.id
|
|
4259
|
+
),
|
|
4260
|
+
children: /* @__PURE__ */ jsx33(
|
|
4261
|
+
Box24,
|
|
4262
|
+
{
|
|
4263
|
+
as: "a",
|
|
4264
|
+
cursor: "pointer",
|
|
4265
|
+
borderRadius: "2xl",
|
|
4266
|
+
transition: `box-shadow ease ${MEDIUM_TRANSITION_DURATION}s`,
|
|
4267
|
+
_hover: { boxShadow: "lg" },
|
|
4268
|
+
maxWidth: "xs",
|
|
4269
|
+
children: /* @__PURE__ */ jsx33(ProjectGridCardV2_default, { project })
|
|
4270
|
+
}
|
|
4271
|
+
)
|
|
4272
|
+
},
|
|
4273
|
+
project.id
|
|
4274
|
+
)) }) }) });
|
|
4275
|
+
};
|
|
4276
|
+
|
|
4277
|
+
// src/slices/ProjectsGridV2/index.ts
|
|
4278
|
+
var ProjectsGridV2_default = ProjectsGridV2;
|
|
4279
|
+
|
|
4100
4280
|
// src/slices/ProjectsMap/ProjectsMap.tsx
|
|
4101
4281
|
import {
|
|
4102
4282
|
useRef as useRef4,
|
|
4103
4283
|
useEffect as useEffect4,
|
|
4104
4284
|
useState as useState5,
|
|
4105
4285
|
useCallback as useCallback2,
|
|
4106
|
-
useContext as
|
|
4286
|
+
useContext as useContext13
|
|
4107
4287
|
} from "react";
|
|
4108
4288
|
import { Global as Global2 } from "@emotion/react";
|
|
4109
4289
|
import mapboxgl from "mapbox-gl";
|
|
4110
4290
|
import {
|
|
4111
|
-
Box as
|
|
4112
|
-
DefaultSectionContainer as
|
|
4291
|
+
Box as Box25,
|
|
4292
|
+
DefaultSectionContainer as DefaultSectionContainer17,
|
|
4113
4293
|
DefaultSectionHeader as DefaultSectionHeader16,
|
|
4114
|
-
Wrapper as
|
|
4294
|
+
Wrapper as Wrapper22
|
|
4115
4295
|
} from "boemly";
|
|
4116
4296
|
|
|
4117
4297
|
// src/constants/mapbox.ts
|
|
@@ -4840,14 +5020,14 @@ var mergeProjectData = (featureCollection, strapiProjects) => {
|
|
|
4840
5020
|
var mergeProjectData_default = mergeProjectData;
|
|
4841
5021
|
|
|
4842
5022
|
// src/slices/ProjectsMap/ProjectsMap.tsx
|
|
4843
|
-
import { Fragment as Fragment17, jsx as
|
|
5023
|
+
import { Fragment as Fragment17, jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4844
5024
|
var projectPinImage = "https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.0.2/assets/fill/map-pin-fill.svg";
|
|
4845
5025
|
mapboxgl.accessToken = MAPBOX_TOKEN;
|
|
4846
5026
|
var FALLBACK_BBOX = "-1.9950830850086163,44.4464186384987,21.995083085002875,54.12644342419196";
|
|
4847
5027
|
var ProjectsMap = ({
|
|
4848
5028
|
slice
|
|
4849
5029
|
}) => {
|
|
4850
|
-
const { locale, formatMessage } =
|
|
5030
|
+
const { locale, formatMessage } = useContext13(IntlContext);
|
|
4851
5031
|
const mapContainer = useRef4(null);
|
|
4852
5032
|
const map = useRef4(null);
|
|
4853
5033
|
const animationIntervalRef = useRef4(null);
|
|
@@ -5248,11 +5428,11 @@ var ProjectsMap = ({
|
|
|
5248
5428
|
addProjectsLayer();
|
|
5249
5429
|
}
|
|
5250
5430
|
}, [isMapReady, featureCollection, addProjectsLayer]);
|
|
5251
|
-
return /* @__PURE__ */
|
|
5252
|
-
/* @__PURE__ */
|
|
5253
|
-
/* @__PURE__ */
|
|
5254
|
-
slice.title ? /* @__PURE__ */
|
|
5255
|
-
/* @__PURE__ */
|
|
5431
|
+
return /* @__PURE__ */ jsxs29(DefaultSectionContainer17, { children: [
|
|
5432
|
+
/* @__PURE__ */ jsx34(Global2, { styles: mapboxStyle_default }),
|
|
5433
|
+
/* @__PURE__ */ jsxs29(Wrapper22, { children: [
|
|
5434
|
+
slice.title ? /* @__PURE__ */ jsxs29(Fragment17, { children: [
|
|
5435
|
+
/* @__PURE__ */ jsx34(
|
|
5256
5436
|
DefaultSectionHeader16,
|
|
5257
5437
|
{
|
|
5258
5438
|
tagline: slice.tagline,
|
|
@@ -5271,10 +5451,10 @@ var ProjectsMap = ({
|
|
|
5271
5451
|
}
|
|
5272
5452
|
}
|
|
5273
5453
|
),
|
|
5274
|
-
/* @__PURE__ */
|
|
5275
|
-
] }) : /* @__PURE__ */
|
|
5276
|
-
/* @__PURE__ */
|
|
5277
|
-
|
|
5454
|
+
/* @__PURE__ */ jsx34(Box25, { height: "16" })
|
|
5455
|
+
] }) : /* @__PURE__ */ jsx34(Fragment17, {}),
|
|
5456
|
+
/* @__PURE__ */ jsx34(
|
|
5457
|
+
Box25,
|
|
5278
5458
|
{
|
|
5279
5459
|
height: "xl",
|
|
5280
5460
|
ref: mapContainer,
|
|
@@ -5283,7 +5463,7 @@ var ProjectsMap = ({
|
|
|
5283
5463
|
boxShadow: ["md", null, null, "none"]
|
|
5284
5464
|
}
|
|
5285
5465
|
),
|
|
5286
|
-
/* @__PURE__ */
|
|
5466
|
+
/* @__PURE__ */ jsx34(Fragment17, { children: isLoading && /* @__PURE__ */ jsx34(Box25, { children: "Loading projects..." }) })
|
|
5287
5467
|
] })
|
|
5288
5468
|
] });
|
|
5289
5469
|
};
|
|
@@ -5293,14 +5473,14 @@ var ProjectsMap_default = ProjectsMap;
|
|
|
5293
5473
|
|
|
5294
5474
|
// src/slices/Video/Video.tsx
|
|
5295
5475
|
import { useRef as useRef5 } from "react";
|
|
5296
|
-
import { Box as
|
|
5476
|
+
import { Box as Box26, DefaultSectionContainer as DefaultSectionContainer18, Wrapper as Wrapper23 } from "boemly";
|
|
5297
5477
|
import { useMeasure as useMeasure2 } from "@reactuses/core";
|
|
5298
|
-
import { jsx as
|
|
5478
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
5299
5479
|
var Video = ({ slice }) => {
|
|
5300
5480
|
const ref = useRef5(null);
|
|
5301
5481
|
const [rect] = useMeasure2(ref);
|
|
5302
5482
|
const width = rect.width;
|
|
5303
|
-
return /* @__PURE__ */
|
|
5483
|
+
return /* @__PURE__ */ jsx35(DefaultSectionContainer18, { children: /* @__PURE__ */ jsx35(Wrapper23, { children: /* @__PURE__ */ jsx35(Box26, { ref, borderRadius: "xl", children: /* @__PURE__ */ jsx35(
|
|
5304
5484
|
"iframe",
|
|
5305
5485
|
{
|
|
5306
5486
|
"data-testid": "video-iframe",
|
|
@@ -5321,17 +5501,17 @@ var Video_default = Video;
|
|
|
5321
5501
|
|
|
5322
5502
|
// src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.tsx
|
|
5323
5503
|
import {
|
|
5324
|
-
DefaultSectionContainer as
|
|
5325
|
-
Wrapper as
|
|
5504
|
+
DefaultSectionContainer as DefaultSectionContainer19,
|
|
5505
|
+
Wrapper as Wrapper24,
|
|
5326
5506
|
AvatarWithName,
|
|
5327
|
-
Text as
|
|
5328
|
-
Box as
|
|
5507
|
+
Text as Text13,
|
|
5508
|
+
Box as Box27
|
|
5329
5509
|
} from "boemly";
|
|
5330
|
-
import { jsx as
|
|
5331
|
-
var FullWidthHighlightQuote = ({ slice }) => /* @__PURE__ */
|
|
5332
|
-
/* @__PURE__ */
|
|
5333
|
-
slice.tagline && /* @__PURE__ */
|
|
5334
|
-
|
|
5510
|
+
import { jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5511
|
+
var FullWidthHighlightQuote = ({ slice }) => /* @__PURE__ */ jsx36(DefaultSectionContainer19, { children: /* @__PURE__ */ jsxs30(Wrapper24, { children: [
|
|
5512
|
+
/* @__PURE__ */ jsxs30(Box27, { maxWidth: "5xl", marginX: "auto", mb: "8", children: [
|
|
5513
|
+
slice.tagline && /* @__PURE__ */ jsx36(
|
|
5514
|
+
Text13,
|
|
5335
5515
|
{
|
|
5336
5516
|
color: "primary.700",
|
|
5337
5517
|
size: "mdMonoUppercase",
|
|
@@ -5340,9 +5520,9 @@ var FullWidthHighlightQuote = ({ slice }) => /* @__PURE__ */ jsx33(DefaultSectio
|
|
|
5340
5520
|
children: slice.tagline
|
|
5341
5521
|
}
|
|
5342
5522
|
),
|
|
5343
|
-
/* @__PURE__ */
|
|
5523
|
+
/* @__PURE__ */ jsx36(Text13, { color: "black", size: "xlRegularNormalBold", textAlign: "center", children: slice.quote })
|
|
5344
5524
|
] }),
|
|
5345
|
-
/* @__PURE__ */
|
|
5525
|
+
/* @__PURE__ */ jsx36(
|
|
5346
5526
|
AvatarWithName,
|
|
5347
5527
|
{
|
|
5348
5528
|
name: slice.avatarWithName.name,
|
|
@@ -5361,14 +5541,14 @@ var FullWidthHighlightQuote_default = FullWidthHighlightQuote;
|
|
|
5361
5541
|
// src/slices/FullWidthImageSlider/FullWidthImageSlider.tsx
|
|
5362
5542
|
import { useMemo as useMemo3, useRef as useRef6, useState as useState6 } from "react";
|
|
5363
5543
|
import {
|
|
5364
|
-
Box as
|
|
5544
|
+
Box as Box29,
|
|
5365
5545
|
IconButton as IconButton3,
|
|
5366
|
-
DefaultSectionContainer as
|
|
5367
|
-
Flex as
|
|
5368
|
-
Text as
|
|
5546
|
+
DefaultSectionContainer as DefaultSectionContainer20,
|
|
5547
|
+
Flex as Flex15,
|
|
5548
|
+
Text as Text14,
|
|
5369
5549
|
useMediaQuery as useMediaQuery5
|
|
5370
5550
|
} from "boemly";
|
|
5371
|
-
import
|
|
5551
|
+
import Image22 from "next/image.js";
|
|
5372
5552
|
import { useMeasure as useMeasure3, useWindowSize as useWindowSize3 } from "@reactuses/core";
|
|
5373
5553
|
import { AnimatePresence as AnimatePresence2, motion as motion4 } from "framer-motion";
|
|
5374
5554
|
import { ArrowLeftIcon as ArrowLeftIcon2, ArrowRightIcon as ArrowRightIcon6 } from "@phosphor-icons/react";
|
|
@@ -5376,8 +5556,8 @@ import { ArrowLeftIcon as ArrowLeftIcon2, ArrowRightIcon as ArrowRightIcon6 } fr
|
|
|
5376
5556
|
// src/slices/FullWidthImageSlider/styles.ts
|
|
5377
5557
|
import { motion as motion3 } from "framer-motion";
|
|
5378
5558
|
import styled4 from "@emotion/styled";
|
|
5379
|
-
import { Box as
|
|
5380
|
-
var SliderContainer = styled4(
|
|
5559
|
+
import { Box as Box28 } from "boemly";
|
|
5560
|
+
var SliderContainer = styled4(Box28)`
|
|
5381
5561
|
--mobile-image-width: calc(100vw - var(--boemly-spacing-24));
|
|
5382
5562
|
--desktop-image-width: var(--boemly-sizes-md);
|
|
5383
5563
|
|
|
@@ -5406,7 +5586,7 @@ var SliderInnerContainer = styled4(
|
|
|
5406
5586
|
|
|
5407
5587
|
width: fit-content;
|
|
5408
5588
|
`;
|
|
5409
|
-
var ItemContainer = styled4(
|
|
5589
|
+
var ItemContainer = styled4(Box28)`
|
|
5410
5590
|
width: var(--desktop-image-width);
|
|
5411
5591
|
|
|
5412
5592
|
:last-of-type {
|
|
@@ -5417,7 +5597,7 @@ var ItemContainer = styled4(Box26)`
|
|
|
5417
5597
|
width: var(--mobile-image-width);
|
|
5418
5598
|
}
|
|
5419
5599
|
`;
|
|
5420
|
-
var ImageContainer2 = styled4(
|
|
5600
|
+
var ImageContainer2 = styled4(Box28)`
|
|
5421
5601
|
position: relative;
|
|
5422
5602
|
|
|
5423
5603
|
max-height: var(--boemly-sizes-xl);
|
|
@@ -5458,7 +5638,7 @@ var getClosestRatio = (width, height) => {
|
|
|
5458
5638
|
};
|
|
5459
5639
|
|
|
5460
5640
|
// src/slices/FullWidthImageSlider/FullWidthImageSlider.tsx
|
|
5461
|
-
import { jsx as
|
|
5641
|
+
import { jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5462
5642
|
var ITEM_GAP2 = 24;
|
|
5463
5643
|
var MAX_OFFSET_RIGHT2 = 162;
|
|
5464
5644
|
var FullWidthImageSlider = ({
|
|
@@ -5493,8 +5673,8 @@ var FullWidthImageSlider = ({
|
|
|
5493
5673
|
return offsetRight < MAX_OFFSET_RIGHT2;
|
|
5494
5674
|
}, [imageWidth, sliderIndex, sliderItemsWidth, windowWidth]);
|
|
5495
5675
|
const canMoveLeft = useMemo3(() => sliderIndex !== 0, [sliderIndex]);
|
|
5496
|
-
return /* @__PURE__ */
|
|
5497
|
-
/* @__PURE__ */
|
|
5676
|
+
return /* @__PURE__ */ jsxs31(DefaultSectionContainer20, { children: [
|
|
5677
|
+
/* @__PURE__ */ jsx37(SliderContainer, { ref: containerRef, children: /* @__PURE__ */ jsx37(
|
|
5498
5678
|
SliderInnerContainer,
|
|
5499
5679
|
{
|
|
5500
5680
|
animate: {
|
|
@@ -5505,8 +5685,8 @@ var FullWidthImageSlider = ({
|
|
|
5505
5685
|
ease: "easeInOut"
|
|
5506
5686
|
},
|
|
5507
5687
|
imageCount: slice.images.length,
|
|
5508
|
-
children: slice.images.map((image, index) => /* @__PURE__ */
|
|
5509
|
-
|
|
5688
|
+
children: slice.images.map((image, index) => /* @__PURE__ */ jsx37(ItemContainer, { ref: imageRef, children: /* @__PURE__ */ jsxs31(
|
|
5689
|
+
Flex15,
|
|
5510
5690
|
{
|
|
5511
5691
|
height: "full",
|
|
5512
5692
|
width: "full",
|
|
@@ -5514,15 +5694,15 @@ var FullWidthImageSlider = ({
|
|
|
5514
5694
|
flexDirection: "column",
|
|
5515
5695
|
gap: "2",
|
|
5516
5696
|
children: [
|
|
5517
|
-
/* @__PURE__ */
|
|
5697
|
+
/* @__PURE__ */ jsx37(
|
|
5518
5698
|
ImageContainer2,
|
|
5519
5699
|
{
|
|
5520
5700
|
aspectRatio: getClosestRatio(
|
|
5521
5701
|
image.img.img.data.attributes.width,
|
|
5522
5702
|
image.img.img.data.attributes.height
|
|
5523
5703
|
),
|
|
5524
|
-
children: /* @__PURE__ */
|
|
5525
|
-
|
|
5704
|
+
children: /* @__PURE__ */ jsx37(
|
|
5705
|
+
Image22,
|
|
5526
5706
|
{
|
|
5527
5707
|
src: strapiMediaUrl_default(image.img.img, "large"),
|
|
5528
5708
|
alt: image.img.alt,
|
|
@@ -5539,14 +5719,14 @@ var FullWidthImageSlider = ({
|
|
|
5539
5719
|
)
|
|
5540
5720
|
}
|
|
5541
5721
|
),
|
|
5542
|
-
/* @__PURE__ */
|
|
5722
|
+
/* @__PURE__ */ jsx37(Text14, { lineClamp: 3, height: "72px", fontSize: "md", children: image.caption })
|
|
5543
5723
|
]
|
|
5544
5724
|
}
|
|
5545
5725
|
) }, image.id))
|
|
5546
5726
|
}
|
|
5547
5727
|
) }),
|
|
5548
|
-
/* @__PURE__ */
|
|
5549
|
-
|
|
5728
|
+
/* @__PURE__ */ jsxs31(
|
|
5729
|
+
Box29,
|
|
5550
5730
|
{
|
|
5551
5731
|
display: ["none", null, null, !!allowScroll ? "flex" : "none"],
|
|
5552
5732
|
pointerEvents: "none",
|
|
@@ -5558,13 +5738,13 @@ var FullWidthImageSlider = ({
|
|
|
5558
5738
|
px: "32",
|
|
5559
5739
|
justifyContent: "space-between",
|
|
5560
5740
|
children: [
|
|
5561
|
-
/* @__PURE__ */
|
|
5741
|
+
/* @__PURE__ */ jsx37(Box29, { children: /* @__PURE__ */ jsx37(AnimatePresence2, { children: canMoveLeft && /* @__PURE__ */ jsx37(
|
|
5562
5742
|
motion4.div,
|
|
5563
5743
|
{
|
|
5564
5744
|
initial: { opacity: 0 },
|
|
5565
5745
|
animate: { opacity: 1 },
|
|
5566
5746
|
exit: { opacity: 0 },
|
|
5567
|
-
children: /* @__PURE__ */
|
|
5747
|
+
children: /* @__PURE__ */ jsx37(
|
|
5568
5748
|
IconButton3,
|
|
5569
5749
|
{
|
|
5570
5750
|
size: "lg",
|
|
@@ -5572,19 +5752,19 @@ var FullWidthImageSlider = ({
|
|
|
5572
5752
|
onClick: () => setSliderIndex(sliderIndex - 1),
|
|
5573
5753
|
"aria-label": "Move left",
|
|
5574
5754
|
pointerEvents: "auto",
|
|
5575
|
-
children: /* @__PURE__ */
|
|
5755
|
+
children: /* @__PURE__ */ jsx37(ArrowLeftIcon2, { size: 16 })
|
|
5576
5756
|
}
|
|
5577
5757
|
)
|
|
5578
5758
|
},
|
|
5579
5759
|
"leftButton"
|
|
5580
5760
|
) }) }),
|
|
5581
|
-
/* @__PURE__ */
|
|
5761
|
+
/* @__PURE__ */ jsx37(Box29, { children: /* @__PURE__ */ jsx37(AnimatePresence2, { children: canMoveRight && /* @__PURE__ */ jsx37(
|
|
5582
5762
|
motion4.div,
|
|
5583
5763
|
{
|
|
5584
5764
|
initial: { opacity: 0 },
|
|
5585
5765
|
animate: { opacity: 1 },
|
|
5586
5766
|
exit: { opacity: 0 },
|
|
5587
|
-
children: /* @__PURE__ */
|
|
5767
|
+
children: /* @__PURE__ */ jsx37(
|
|
5588
5768
|
IconButton3,
|
|
5589
5769
|
{
|
|
5590
5770
|
size: "lg",
|
|
@@ -5592,7 +5772,7 @@ var FullWidthImageSlider = ({
|
|
|
5592
5772
|
onClick: () => setSliderIndex(sliderIndex + 1),
|
|
5593
5773
|
"aria-label": "Move right",
|
|
5594
5774
|
pointerEvents: "auto",
|
|
5595
|
-
children: /* @__PURE__ */
|
|
5775
|
+
children: /* @__PURE__ */ jsx37(ArrowRightIcon6, { size: 16 })
|
|
5596
5776
|
}
|
|
5597
5777
|
)
|
|
5598
5778
|
},
|
|
@@ -5601,7 +5781,7 @@ var FullWidthImageSlider = ({
|
|
|
5601
5781
|
]
|
|
5602
5782
|
}
|
|
5603
5783
|
),
|
|
5604
|
-
/* @__PURE__ */
|
|
5784
|
+
/* @__PURE__ */ jsx37(
|
|
5605
5785
|
FullScreenImage_default,
|
|
5606
5786
|
{
|
|
5607
5787
|
images: slice.images.map((image) => image.img),
|
|
@@ -5619,26 +5799,26 @@ var FullWidthImageSlider_default = FullWidthImageSlider;
|
|
|
5619
5799
|
|
|
5620
5800
|
// src/slices/SideBySideImages/SideBySideImages.tsx
|
|
5621
5801
|
import {
|
|
5622
|
-
Box as
|
|
5623
|
-
DefaultSectionContainer as
|
|
5802
|
+
Box as Box30,
|
|
5803
|
+
DefaultSectionContainer as DefaultSectionContainer21,
|
|
5624
5804
|
Grid as Grid5,
|
|
5625
5805
|
GridItem as GridItem5,
|
|
5626
|
-
SimpleGrid as
|
|
5627
|
-
Text as
|
|
5628
|
-
Wrapper as
|
|
5806
|
+
SimpleGrid as SimpleGrid12,
|
|
5807
|
+
Text as Text15,
|
|
5808
|
+
Wrapper as Wrapper25
|
|
5629
5809
|
} from "boemly";
|
|
5630
|
-
import
|
|
5631
|
-
import { jsx as
|
|
5810
|
+
import Image23 from "next/image.js";
|
|
5811
|
+
import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5632
5812
|
var SideBySideImages = ({
|
|
5633
5813
|
slice
|
|
5634
|
-
}) => /* @__PURE__ */
|
|
5635
|
-
|
|
5814
|
+
}) => /* @__PURE__ */ jsx38(DefaultSectionContainer21, { children: /* @__PURE__ */ jsx38(Wrapper25, { children: /* @__PURE__ */ jsx38(Grid5, { templateColumns: "repeat(12, 1fr)", gap: "4", children: /* @__PURE__ */ jsx38(GridItem5, { colSpan: [12, null, null, 7], children: /* @__PURE__ */ jsx38(
|
|
5815
|
+
SimpleGrid12,
|
|
5636
5816
|
{
|
|
5637
5817
|
columns: [1, null, null, 2],
|
|
5638
5818
|
gap: ["12", null, null, "6"],
|
|
5639
|
-
children: slice.images.map((image) => /* @__PURE__ */
|
|
5640
|
-
/* @__PURE__ */
|
|
5641
|
-
|
|
5819
|
+
children: slice.images.map((image) => /* @__PURE__ */ jsxs32(Box30, { children: [
|
|
5820
|
+
/* @__PURE__ */ jsx38(Box30, { height: "md", position: "relative", borderRadius: "xl", children: /* @__PURE__ */ jsx38(
|
|
5821
|
+
Image23,
|
|
5642
5822
|
{
|
|
5643
5823
|
src: strapiMediaUrl_default(image.img.img, "large"),
|
|
5644
5824
|
alt: image.img.alt,
|
|
@@ -5649,7 +5829,7 @@ var SideBySideImages = ({
|
|
|
5649
5829
|
}
|
|
5650
5830
|
}
|
|
5651
5831
|
) }),
|
|
5652
|
-
/* @__PURE__ */
|
|
5832
|
+
/* @__PURE__ */ jsx38(Text15, { mt: "3", size: "xsLowNormal", children: image.caption })
|
|
5653
5833
|
] }, image.id))
|
|
5654
5834
|
}
|
|
5655
5835
|
) }) }) }) });
|
|
@@ -5658,19 +5838,19 @@ var SideBySideImages = ({
|
|
|
5658
5838
|
var SideBySideImages_default = SideBySideImages;
|
|
5659
5839
|
|
|
5660
5840
|
// src/slices/Cta/Cta.tsx
|
|
5661
|
-
import { useContext as
|
|
5841
|
+
import { useContext as useContext14 } from "react";
|
|
5662
5842
|
import {
|
|
5663
|
-
Box as
|
|
5843
|
+
Box as Box31,
|
|
5664
5844
|
Container as Container2,
|
|
5665
|
-
DefaultSectionContainer as
|
|
5845
|
+
DefaultSectionContainer as DefaultSectionContainer22,
|
|
5666
5846
|
DefaultSectionHeader as DefaultSectionHeader17,
|
|
5667
|
-
Flex as
|
|
5847
|
+
Flex as Flex16,
|
|
5668
5848
|
Gradient as Gradient4,
|
|
5669
5849
|
Spacer as Spacer6,
|
|
5670
|
-
Wrapper as
|
|
5850
|
+
Wrapper as Wrapper26
|
|
5671
5851
|
} from "boemly";
|
|
5672
|
-
import
|
|
5673
|
-
import { Fragment as Fragment18, jsx as
|
|
5852
|
+
import Image24 from "next/image.js";
|
|
5853
|
+
import { Fragment as Fragment18, jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
5674
5854
|
var STATES = {
|
|
5675
5855
|
left: {
|
|
5676
5856
|
textAlign: "left",
|
|
@@ -5802,15 +5982,15 @@ var getTypeOfCard = (ctaCard) => {
|
|
|
5802
5982
|
return "right" /* Right */;
|
|
5803
5983
|
};
|
|
5804
5984
|
var Cta = ({ slice }) => {
|
|
5805
|
-
const { formatMessage } =
|
|
5806
|
-
return /* @__PURE__ */
|
|
5807
|
-
|
|
5985
|
+
const { formatMessage } = useContext14(IntlContext);
|
|
5986
|
+
return /* @__PURE__ */ jsx39(
|
|
5987
|
+
DefaultSectionContainer22,
|
|
5808
5988
|
{
|
|
5809
5989
|
backgroundColor: VARIANTS2[slice.variant].backgroundColor.left,
|
|
5810
5990
|
title: slice.title,
|
|
5811
|
-
children: /* @__PURE__ */
|
|
5812
|
-
slice.title ? /* @__PURE__ */
|
|
5813
|
-
/* @__PURE__ */
|
|
5991
|
+
children: /* @__PURE__ */ jsxs33(Wrapper26, { children: [
|
|
5992
|
+
slice.title ? /* @__PURE__ */ jsxs33(Fragment18, { children: [
|
|
5993
|
+
/* @__PURE__ */ jsx39(Flex16, { alignItems: "center", flexDirection: "column", children: /* @__PURE__ */ jsx39(
|
|
5814
5994
|
DefaultSectionHeader17,
|
|
5815
5995
|
{
|
|
5816
5996
|
tagline: slice.tagline,
|
|
@@ -5834,19 +6014,19 @@ var Cta = ({ slice }) => {
|
|
|
5834
6014
|
}
|
|
5835
6015
|
}
|
|
5836
6016
|
) }),
|
|
5837
|
-
/* @__PURE__ */
|
|
5838
|
-
] }) : /* @__PURE__ */
|
|
5839
|
-
/* @__PURE__ */
|
|
6017
|
+
/* @__PURE__ */ jsx39(Spacer6, { height: ["16", null, null, null, "20"] })
|
|
6018
|
+
] }) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6019
|
+
/* @__PURE__ */ jsx39(Flex16, { gap: "4", flexDirection: "column", children: slice.ctaCards.map((ctaCard) => {
|
|
5840
6020
|
const ctaCardType = getTypeOfCard(ctaCard);
|
|
5841
|
-
return /* @__PURE__ */
|
|
6021
|
+
return /* @__PURE__ */ jsxs33(
|
|
5842
6022
|
Container2,
|
|
5843
6023
|
{
|
|
5844
6024
|
backgroundColor: VARIANTS2[ctaCard.variant].backgroundColor[ctaCardType],
|
|
5845
6025
|
position: "relative",
|
|
5846
6026
|
elevation: "none",
|
|
5847
6027
|
children: [
|
|
5848
|
-
ctaCard.image && ctaCardType === "centerWithImage" /* CenterWithImage */ ? /* @__PURE__ */
|
|
5849
|
-
|
|
6028
|
+
ctaCard.image && ctaCardType === "centerWithImage" /* CenterWithImage */ ? /* @__PURE__ */ jsxs33(
|
|
6029
|
+
Box31,
|
|
5850
6030
|
{
|
|
5851
6031
|
position: "absolute",
|
|
5852
6032
|
left: "0",
|
|
@@ -5856,8 +6036,8 @@ var Cta = ({ slice }) => {
|
|
|
5856
6036
|
borderRadius: "xl",
|
|
5857
6037
|
overflow: "hidden",
|
|
5858
6038
|
children: [
|
|
5859
|
-
/* @__PURE__ */
|
|
5860
|
-
|
|
6039
|
+
/* @__PURE__ */ jsx39(
|
|
6040
|
+
Image24,
|
|
5861
6041
|
{
|
|
5862
6042
|
src: strapiMediaUrl_default(ctaCard.image.img, "large"),
|
|
5863
6043
|
alt: ctaCard.image.alt,
|
|
@@ -5868,20 +6048,20 @@ var Cta = ({ slice }) => {
|
|
|
5868
6048
|
}
|
|
5869
6049
|
}
|
|
5870
6050
|
),
|
|
5871
|
-
/* @__PURE__ */
|
|
6051
|
+
/* @__PURE__ */ jsx39(Gradient4, {})
|
|
5872
6052
|
]
|
|
5873
6053
|
}
|
|
5874
|
-
) : /* @__PURE__ */
|
|
5875
|
-
ctaCard.backgroundShape ? /* @__PURE__ */
|
|
5876
|
-
|
|
6054
|
+
) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6055
|
+
ctaCard.backgroundShape ? /* @__PURE__ */ jsx39(
|
|
6056
|
+
Box31,
|
|
5877
6057
|
{
|
|
5878
6058
|
position: "absolute",
|
|
5879
6059
|
left: "0",
|
|
5880
6060
|
top: "0",
|
|
5881
6061
|
width: "full",
|
|
5882
6062
|
height: "full",
|
|
5883
|
-
children: /* @__PURE__ */
|
|
5884
|
-
|
|
6063
|
+
children: /* @__PURE__ */ jsx39(
|
|
6064
|
+
Image24,
|
|
5885
6065
|
{
|
|
5886
6066
|
src: ctaCardType === "centerWithImage" /* CenterWithImage */ || ctaCard.variant === "green" ? `${CDN_URI}/assets/v3/strapi-slices/shapes-dark.svg` : `${CDN_URI}/assets/v3/strapi-slices/shapes-light.svg`,
|
|
5887
6067
|
alt: formatMessage({
|
|
@@ -5895,23 +6075,23 @@ var Cta = ({ slice }) => {
|
|
|
5895
6075
|
}
|
|
5896
6076
|
)
|
|
5897
6077
|
}
|
|
5898
|
-
) : /* @__PURE__ */
|
|
5899
|
-
/* @__PURE__ */
|
|
5900
|
-
|
|
6078
|
+
) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6079
|
+
/* @__PURE__ */ jsxs33(
|
|
6080
|
+
Flex16,
|
|
5901
6081
|
{
|
|
5902
6082
|
flexDir: ["column", null, null, null, "row"],
|
|
5903
6083
|
flexGrow: "1",
|
|
5904
6084
|
gap: ["8", null, null, null, "16"],
|
|
5905
6085
|
justifyContent: STATES[ctaCardType].justifyContent,
|
|
5906
6086
|
children: [
|
|
5907
|
-
ctaCard.image && ctaCardType === "right" /* Right */ ? /* @__PURE__ */
|
|
5908
|
-
|
|
6087
|
+
ctaCard.image && ctaCardType === "right" /* Right */ ? /* @__PURE__ */ jsx39(
|
|
6088
|
+
Box31,
|
|
5909
6089
|
{
|
|
5910
6090
|
position: "relative",
|
|
5911
6091
|
height: ["3xs", null, null, null, "auto"],
|
|
5912
6092
|
minWidth: [null, null, null, null, "50%"],
|
|
5913
|
-
children: /* @__PURE__ */
|
|
5914
|
-
|
|
6093
|
+
children: /* @__PURE__ */ jsx39(
|
|
6094
|
+
Image24,
|
|
5915
6095
|
{
|
|
5916
6096
|
src: strapiMediaUrl_default(ctaCard.image.img, "xLarge"),
|
|
5917
6097
|
alt: ctaCard.image.alt,
|
|
@@ -5923,17 +6103,17 @@ var Cta = ({ slice }) => {
|
|
|
5923
6103
|
}
|
|
5924
6104
|
)
|
|
5925
6105
|
}
|
|
5926
|
-
) : /* @__PURE__ */
|
|
5927
|
-
/* @__PURE__ */
|
|
5928
|
-
|
|
6106
|
+
) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6107
|
+
/* @__PURE__ */ jsxs33(
|
|
6108
|
+
Box31,
|
|
5929
6109
|
{
|
|
5930
6110
|
zIndex: "base",
|
|
5931
6111
|
marginLeft: STATES[ctaCardType].textMarginLeft,
|
|
5932
6112
|
marginRight: STATES[ctaCardType].textMarginRight,
|
|
5933
6113
|
maxWidth: "3xl",
|
|
5934
6114
|
children: [
|
|
5935
|
-
/* @__PURE__ */
|
|
5936
|
-
/* @__PURE__ */
|
|
6115
|
+
/* @__PURE__ */ jsx39(Spacer6, { height: ["0", null, null, null, "20"] }),
|
|
6116
|
+
/* @__PURE__ */ jsx39(
|
|
5937
6117
|
DefaultSectionHeader17,
|
|
5938
6118
|
{
|
|
5939
6119
|
tagline: ctaCard.tagline,
|
|
@@ -5971,14 +6151,14 @@ var Cta = ({ slice }) => {
|
|
|
5971
6151
|
}
|
|
5972
6152
|
}
|
|
5973
6153
|
),
|
|
5974
|
-
ctaCard.buttons && ctaCard.buttons.length > 0 ? /* @__PURE__ */
|
|
5975
|
-
/* @__PURE__ */
|
|
5976
|
-
/* @__PURE__ */
|
|
5977
|
-
|
|
6154
|
+
ctaCard.buttons && ctaCard.buttons.length > 0 ? /* @__PURE__ */ jsxs33(Fragment18, { children: [
|
|
6155
|
+
/* @__PURE__ */ jsx39(Spacer6, { height: "8" }),
|
|
6156
|
+
/* @__PURE__ */ jsx39(
|
|
6157
|
+
Flex16,
|
|
5978
6158
|
{
|
|
5979
6159
|
gap: "2",
|
|
5980
6160
|
justifyContent: STATES[ctaCardType].buttonJustifyContent,
|
|
5981
|
-
children: ctaCard.buttons && ctaCard.buttons.map((button) => /* @__PURE__ */
|
|
6161
|
+
children: ctaCard.buttons && ctaCard.buttons.map((button) => /* @__PURE__ */ jsx39(
|
|
5982
6162
|
StrapiLinkButton_default,
|
|
5983
6163
|
{
|
|
5984
6164
|
link: button.button,
|
|
@@ -5990,19 +6170,19 @@ var Cta = ({ slice }) => {
|
|
|
5990
6170
|
))
|
|
5991
6171
|
}
|
|
5992
6172
|
)
|
|
5993
|
-
] }) : /* @__PURE__ */
|
|
5994
|
-
/* @__PURE__ */
|
|
6173
|
+
] }) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6174
|
+
/* @__PURE__ */ jsx39(Spacer6, { height: ["1", null, null, null, "20"] })
|
|
5995
6175
|
]
|
|
5996
6176
|
}
|
|
5997
6177
|
),
|
|
5998
|
-
ctaCard.image && ctaCardType === "left" /* Left */ ? /* @__PURE__ */
|
|
5999
|
-
|
|
6178
|
+
ctaCard.image && ctaCardType === "left" /* Left */ ? /* @__PURE__ */ jsx39(
|
|
6179
|
+
Box31,
|
|
6000
6180
|
{
|
|
6001
6181
|
position: "relative",
|
|
6002
6182
|
height: ["3xs", null, null, null, "auto"],
|
|
6003
6183
|
minWidth: [null, null, null, null, "50%"],
|
|
6004
|
-
children: /* @__PURE__ */
|
|
6005
|
-
|
|
6184
|
+
children: /* @__PURE__ */ jsx39(
|
|
6185
|
+
Image24,
|
|
6006
6186
|
{
|
|
6007
6187
|
src: strapiMediaUrl_default(ctaCard.image.img, "xLarge"),
|
|
6008
6188
|
alt: ctaCard.image.alt,
|
|
@@ -6014,7 +6194,7 @@ var Cta = ({ slice }) => {
|
|
|
6014
6194
|
}
|
|
6015
6195
|
)
|
|
6016
6196
|
}
|
|
6017
|
-
) : /* @__PURE__ */
|
|
6197
|
+
) : /* @__PURE__ */ jsx39(Fragment18, {})
|
|
6018
6198
|
]
|
|
6019
6199
|
}
|
|
6020
6200
|
)
|
|
@@ -6032,31 +6212,31 @@ var Cta = ({ slice }) => {
|
|
|
6032
6212
|
var Cta_default = Cta;
|
|
6033
6213
|
|
|
6034
6214
|
// src/slices/CtaOnly/CtaOnly.tsx
|
|
6035
|
-
import { DefaultSectionContainer as
|
|
6036
|
-
import { jsx as
|
|
6037
|
-
var CtaOnly = ({ slice }) => /* @__PURE__ */
|
|
6215
|
+
import { DefaultSectionContainer as DefaultSectionContainer23, Wrapper as Wrapper27 } from "boemly";
|
|
6216
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
6217
|
+
var CtaOnly = ({ slice }) => /* @__PURE__ */ jsx40(DefaultSectionContainer23, { children: /* @__PURE__ */ jsx40(Wrapper27, { children: /* @__PURE__ */ jsx40(StrapiLinkButton_default, { size: "md", link: slice.button, component: "CtaOnly" }) }) });
|
|
6038
6218
|
|
|
6039
6219
|
// src/slices/CtaOnly/index.ts
|
|
6040
6220
|
var CtaOnly_default = CtaOnly;
|
|
6041
6221
|
|
|
6042
6222
|
// src/slices/Glossary/Glossary.tsx
|
|
6043
|
-
import { useContext as
|
|
6223
|
+
import { useContext as useContext15, useState as useState7 } from "react";
|
|
6044
6224
|
import {
|
|
6045
|
-
DefaultSectionContainer as
|
|
6225
|
+
DefaultSectionContainer as DefaultSectionContainer24,
|
|
6046
6226
|
Separator,
|
|
6047
|
-
Flex as
|
|
6227
|
+
Flex as Flex17,
|
|
6048
6228
|
GridItem as GridItem6,
|
|
6049
|
-
Heading as
|
|
6229
|
+
Heading as Heading12,
|
|
6050
6230
|
IconButton as IconButton4,
|
|
6051
|
-
SimpleGrid as
|
|
6052
|
-
Text as
|
|
6053
|
-
Wrapper as
|
|
6054
|
-
Box as
|
|
6231
|
+
SimpleGrid as SimpleGrid13,
|
|
6232
|
+
Text as Text16,
|
|
6233
|
+
Wrapper as Wrapper28,
|
|
6234
|
+
Box as Box32
|
|
6055
6235
|
} from "boemly";
|
|
6056
6236
|
import { CheckIcon, LinkIcon } from "@phosphor-icons/react";
|
|
6057
|
-
import { jsx as
|
|
6237
|
+
import { jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6058
6238
|
var Glossary = ({ slice }) => {
|
|
6059
|
-
const { formatMessage } =
|
|
6239
|
+
const { formatMessage } = useContext15(IntlContext);
|
|
6060
6240
|
const grouped = {};
|
|
6061
6241
|
const [copiedItem, setCopiedItem] = useState7();
|
|
6062
6242
|
slice.glossary_items.sort((a, b) => a.attributes.title.localeCompare(b.attributes.title)).forEach((curr) => {
|
|
@@ -6076,12 +6256,12 @@ var Glossary = ({ slice }) => {
|
|
|
6076
6256
|
}, 1200);
|
|
6077
6257
|
}
|
|
6078
6258
|
};
|
|
6079
|
-
return /* @__PURE__ */
|
|
6080
|
-
/* @__PURE__ */
|
|
6081
|
-
/* @__PURE__ */
|
|
6082
|
-
/* @__PURE__ */
|
|
6083
|
-
/* @__PURE__ */
|
|
6084
|
-
|
|
6259
|
+
return /* @__PURE__ */ jsx41(DefaultSectionContainer24, { children: /* @__PURE__ */ jsx41(Wrapper28, { children: /* @__PURE__ */ jsx41(SimpleGrid13, { children: Object.entries(grouped).map(([letter, items], index) => /* @__PURE__ */ jsxs34(GridItem6, { maxW: "xl", placeSelf: "center", children: [
|
|
6260
|
+
/* @__PURE__ */ jsx41(Heading12, { size: "3xl", mb: "8", children: letter }),
|
|
6261
|
+
/* @__PURE__ */ jsx41(SimpleGrid13, { gap: "6", children: items.map((item) => /* @__PURE__ */ jsxs34(GridItem6, { children: [
|
|
6262
|
+
/* @__PURE__ */ jsxs34(Flex17, { mb: "2", gap: "1.5", alignItems: "center", children: [
|
|
6263
|
+
/* @__PURE__ */ jsx41(
|
|
6264
|
+
Heading12,
|
|
6085
6265
|
{
|
|
6086
6266
|
wordBreak: "break-word",
|
|
6087
6267
|
size: "xl",
|
|
@@ -6090,7 +6270,7 @@ var Glossary = ({ slice }) => {
|
|
|
6090
6270
|
children: item.title
|
|
6091
6271
|
}
|
|
6092
6272
|
),
|
|
6093
|
-
/* @__PURE__ */
|
|
6273
|
+
/* @__PURE__ */ jsx41(
|
|
6094
6274
|
IconButton4,
|
|
6095
6275
|
{
|
|
6096
6276
|
variant: "ghost",
|
|
@@ -6102,13 +6282,13 @@ var Glossary = ({ slice }) => {
|
|
|
6102
6282
|
id: "sections.glossary.copyButtonLabel"
|
|
6103
6283
|
}),
|
|
6104
6284
|
onClick: async () => handleAnchorClick(item.slug),
|
|
6105
|
-
children: copiedItem === item.slug ? /* @__PURE__ */
|
|
6285
|
+
children: copiedItem === item.slug ? /* @__PURE__ */ jsx41(CheckIcon, { size: "16", "data-testid": "check-icon" }) : /* @__PURE__ */ jsx41(LinkIcon, { size: "16" })
|
|
6106
6286
|
}
|
|
6107
6287
|
)
|
|
6108
6288
|
] }),
|
|
6109
|
-
/* @__PURE__ */
|
|
6289
|
+
/* @__PURE__ */ jsx41(Text16, { color: "black", wordBreak: "break-word", children: item.text })
|
|
6110
6290
|
] }, item.slug)) }),
|
|
6111
|
-
index !== Object.keys(grouped).length - 1 && /* @__PURE__ */
|
|
6291
|
+
index !== Object.keys(grouped).length - 1 && /* @__PURE__ */ jsx41(Flex17, { justifyContent: "center", mt: "10", mb: "10", children: /* @__PURE__ */ jsx41(Box32, { maxW: "xl", width: "full", children: /* @__PURE__ */ jsx41(Separator, {}) }) })
|
|
6112
6292
|
] }, letter)) }) }) });
|
|
6113
6293
|
};
|
|
6114
6294
|
|
|
@@ -6116,24 +6296,24 @@ var Glossary = ({ slice }) => {
|
|
|
6116
6296
|
var Glossary_default = Glossary;
|
|
6117
6297
|
|
|
6118
6298
|
// src/slices/ShopCheckout/ShopCheckout.tsx
|
|
6119
|
-
import { useContext as
|
|
6299
|
+
import { useContext as useContext16, useCallback as useCallback3 } from "react";
|
|
6120
6300
|
import {
|
|
6121
6301
|
Badge,
|
|
6122
6302
|
BoemlyFormControl,
|
|
6123
|
-
Box as
|
|
6303
|
+
Box as Box33,
|
|
6124
6304
|
Button as Button2,
|
|
6125
6305
|
Container as Container3,
|
|
6126
|
-
DefaultSectionContainer as
|
|
6306
|
+
DefaultSectionContainer as DefaultSectionContainer25,
|
|
6127
6307
|
DefaultSectionHeader as DefaultSectionHeader18,
|
|
6128
6308
|
Separator as Separator2,
|
|
6129
|
-
Flex as
|
|
6309
|
+
Flex as Flex18,
|
|
6130
6310
|
LabelNumberPair,
|
|
6131
6311
|
RichText as RichText5,
|
|
6132
|
-
SimpleGrid as
|
|
6312
|
+
SimpleGrid as SimpleGrid14,
|
|
6133
6313
|
Spacer as Spacer7,
|
|
6134
6314
|
useToken as useToken8,
|
|
6135
|
-
Wrapper as
|
|
6136
|
-
Text as
|
|
6315
|
+
Wrapper as Wrapper29,
|
|
6316
|
+
Text as Text17
|
|
6137
6317
|
} from "boemly";
|
|
6138
6318
|
import { Field, Form, Formik } from "formik";
|
|
6139
6319
|
|
|
@@ -6143,12 +6323,12 @@ var MAXIMUM_CONTRIBUTION_VALUE_IN_MONEY = 1e4;
|
|
|
6143
6323
|
|
|
6144
6324
|
// src/slices/ShopCheckout/ShopCheckout.tsx
|
|
6145
6325
|
import { useRouter as useRouter7 } from "next/router.js";
|
|
6146
|
-
import { Fragment as Fragment19, jsx as
|
|
6326
|
+
import { Fragment as Fragment19, jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6147
6327
|
var ShopCheckout = ({
|
|
6148
6328
|
slice
|
|
6149
6329
|
}) => {
|
|
6150
6330
|
const [primary50] = useToken8("colors", ["primary.50"]);
|
|
6151
|
-
const { formatMessage, formatNumber, locale } =
|
|
6331
|
+
const { formatMessage, formatNumber, locale } = useContext16(IntlContext);
|
|
6152
6332
|
const { push } = useRouter7();
|
|
6153
6333
|
const validateForm = useCallback3(
|
|
6154
6334
|
(values) => {
|
|
@@ -6183,14 +6363,14 @@ var ShopCheckout = ({
|
|
|
6183
6363
|
checkoutURL.searchParams.append("couponId", slice.couponId);
|
|
6184
6364
|
push(checkoutURL.toString());
|
|
6185
6365
|
};
|
|
6186
|
-
return /* @__PURE__ */
|
|
6187
|
-
|
|
6366
|
+
return /* @__PURE__ */ jsx42(DefaultSectionContainer25, { backgroundColor: primary50, title: slice.title, children: /* @__PURE__ */ jsx42(Wrapper29, { children: /* @__PURE__ */ jsxs35(
|
|
6367
|
+
Flex18,
|
|
6188
6368
|
{
|
|
6189
6369
|
flexDir: ["column", null, null, null, "row"],
|
|
6190
6370
|
justifyContent: "space-between",
|
|
6191
6371
|
alignItems: ["left", null, null, null, "center"],
|
|
6192
6372
|
children: [
|
|
6193
|
-
/* @__PURE__ */
|
|
6373
|
+
/* @__PURE__ */ jsx42(Box33, { marginRight: ["0", null, null, null, "36"], flexShrink: 2, children: /* @__PURE__ */ jsx42(
|
|
6194
6374
|
DefaultSectionHeader18,
|
|
6195
6375
|
{
|
|
6196
6376
|
tagline: slice.tagline,
|
|
@@ -6198,9 +6378,9 @@ var ShopCheckout = ({
|
|
|
6198
6378
|
text: slice.text
|
|
6199
6379
|
}
|
|
6200
6380
|
) }),
|
|
6201
|
-
/* @__PURE__ */
|
|
6202
|
-
slice.badge ? /* @__PURE__ */
|
|
6203
|
-
/* @__PURE__ */
|
|
6381
|
+
/* @__PURE__ */ jsxs35(Container3, { maxWidth: "md", padding: "lg", shadow: "lg", children: [
|
|
6382
|
+
slice.badge ? /* @__PURE__ */ jsxs35(Fragment19, { children: [
|
|
6383
|
+
/* @__PURE__ */ jsx42(
|
|
6204
6384
|
Badge,
|
|
6205
6385
|
{
|
|
6206
6386
|
colorPalette: "green",
|
|
@@ -6209,19 +6389,19 @@ var ShopCheckout = ({
|
|
|
6209
6389
|
children: slice.badge
|
|
6210
6390
|
}
|
|
6211
6391
|
),
|
|
6212
|
-
/* @__PURE__ */
|
|
6213
|
-
] }) : /* @__PURE__ */
|
|
6214
|
-
/* @__PURE__ */
|
|
6392
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "3" })
|
|
6393
|
+
] }) : /* @__PURE__ */ jsx42(Fragment19, {}),
|
|
6394
|
+
/* @__PURE__ */ jsx42(
|
|
6215
6395
|
RichText5,
|
|
6216
6396
|
{
|
|
6217
6397
|
content: slice.checkoutText,
|
|
6218
6398
|
textProps: { color: "gray.500" }
|
|
6219
6399
|
}
|
|
6220
6400
|
),
|
|
6221
|
-
/* @__PURE__ */
|
|
6222
|
-
/* @__PURE__ */
|
|
6223
|
-
/* @__PURE__ */
|
|
6224
|
-
/* @__PURE__ */
|
|
6401
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6402
|
+
/* @__PURE__ */ jsx42(Separator2, {}),
|
|
6403
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6404
|
+
/* @__PURE__ */ jsx42(
|
|
6225
6405
|
LabelNumberPair,
|
|
6226
6406
|
{
|
|
6227
6407
|
label: formatMessage({ id: "sections.shopCheckout.intro.price" }),
|
|
@@ -6237,10 +6417,10 @@ var ShopCheckout = ({
|
|
|
6237
6417
|
})
|
|
6238
6418
|
}
|
|
6239
6419
|
),
|
|
6240
|
-
/* @__PURE__ */
|
|
6241
|
-
/* @__PURE__ */
|
|
6242
|
-
/* @__PURE__ */
|
|
6243
|
-
/* @__PURE__ */
|
|
6420
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6421
|
+
/* @__PURE__ */ jsx42(Separator2, {}),
|
|
6422
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6423
|
+
/* @__PURE__ */ jsx42(
|
|
6244
6424
|
Formik,
|
|
6245
6425
|
{
|
|
6246
6426
|
initialValues: {
|
|
@@ -6255,8 +6435,8 @@ var ShopCheckout = ({
|
|
|
6255
6435
|
values
|
|
6256
6436
|
}) => {
|
|
6257
6437
|
const summaryPrice = Math.floor(values.contributionValue / slice.pricePerKg) * slice.pricePerKg;
|
|
6258
|
-
return /* @__PURE__ */
|
|
6259
|
-
/* @__PURE__ */
|
|
6438
|
+
return /* @__PURE__ */ jsxs35(Form, { onSubmit: handleSubmit, children: [
|
|
6439
|
+
/* @__PURE__ */ jsx42(Box33, { width: "full", children: /* @__PURE__ */ jsx42(Field, { name: "contributionValue", children: ({ field }) => /* @__PURE__ */ jsx42(
|
|
6260
6440
|
BoemlyFormControl,
|
|
6261
6441
|
{
|
|
6262
6442
|
id: "contributionValue",
|
|
@@ -6266,7 +6446,7 @@ var ShopCheckout = ({
|
|
|
6266
6446
|
id: `sections.shopCheckout.contributionValue.label.${slice.currency}`
|
|
6267
6447
|
}),
|
|
6268
6448
|
rightAddons: [
|
|
6269
|
-
/* @__PURE__ */
|
|
6449
|
+
/* @__PURE__ */ jsx42(Text17, { children: formatMessage({
|
|
6270
6450
|
id: `sections.shopCheckout.contributionValue.unit.${slice.currency}`
|
|
6271
6451
|
}) }, "1")
|
|
6272
6452
|
],
|
|
@@ -6274,9 +6454,9 @@ var ShopCheckout = ({
|
|
|
6274
6454
|
errorMessage: errors.contributionValue
|
|
6275
6455
|
}
|
|
6276
6456
|
) }) }),
|
|
6277
|
-
/* @__PURE__ */
|
|
6278
|
-
/* @__PURE__ */
|
|
6279
|
-
/* @__PURE__ */
|
|
6457
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6458
|
+
/* @__PURE__ */ jsxs35(SimpleGrid14, { columns: 2, gap: "4", children: [
|
|
6459
|
+
/* @__PURE__ */ jsx42(
|
|
6280
6460
|
LabelNumberPair,
|
|
6281
6461
|
{
|
|
6282
6462
|
label: formatMessage({
|
|
@@ -6294,7 +6474,7 @@ var ShopCheckout = ({
|
|
|
6294
6474
|
)} CO\u2082`
|
|
6295
6475
|
}
|
|
6296
6476
|
),
|
|
6297
|
-
/* @__PURE__ */
|
|
6477
|
+
/* @__PURE__ */ jsx42(
|
|
6298
6478
|
LabelNumberPair,
|
|
6299
6479
|
{
|
|
6300
6480
|
label: formatMessage({
|
|
@@ -6325,8 +6505,8 @@ var ShopCheckout = ({
|
|
|
6325
6505
|
}
|
|
6326
6506
|
)
|
|
6327
6507
|
] }),
|
|
6328
|
-
/* @__PURE__ */
|
|
6329
|
-
/* @__PURE__ */
|
|
6508
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6509
|
+
/* @__PURE__ */ jsx42(Button2, { type: "submit", width: "full", children: formatMessage({ id: "sections.shopCheckout.submit" }) })
|
|
6330
6510
|
] });
|
|
6331
6511
|
}
|
|
6332
6512
|
}
|
|
@@ -6342,14 +6522,14 @@ var ShopCheckout_default = ShopCheckout;
|
|
|
6342
6522
|
|
|
6343
6523
|
// src/slices/Facts/Facts.tsx
|
|
6344
6524
|
import {
|
|
6345
|
-
DefaultSectionContainer as
|
|
6525
|
+
DefaultSectionContainer as DefaultSectionContainer26,
|
|
6346
6526
|
DefaultSectionHeader as DefaultSectionHeader19,
|
|
6347
|
-
Flex as
|
|
6348
|
-
Heading as
|
|
6527
|
+
Flex as Flex19,
|
|
6528
|
+
Heading as Heading13,
|
|
6349
6529
|
Spacer as Spacer8,
|
|
6350
|
-
Text as
|
|
6530
|
+
Text as Text18
|
|
6351
6531
|
} from "boemly";
|
|
6352
|
-
import { Fragment as Fragment20, jsx as
|
|
6532
|
+
import { Fragment as Fragment20, jsx as jsx43, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6353
6533
|
var VARIANTS3 = {
|
|
6354
6534
|
gray: {
|
|
6355
6535
|
backgroundColor: "primary.50",
|
|
@@ -6372,12 +6552,12 @@ var VARIANTS3 = {
|
|
|
6372
6552
|
tagLineColor: "primary.500",
|
|
6373
6553
|
titleColor: "black",
|
|
6374
6554
|
subTitleColor: "black",
|
|
6375
|
-
factKeyColor: "
|
|
6376
|
-
factValueColor: "
|
|
6555
|
+
factKeyColor: "black",
|
|
6556
|
+
factValueColor: "black"
|
|
6377
6557
|
}
|
|
6378
6558
|
};
|
|
6379
|
-
var Facts = ({ slice }) => /* @__PURE__ */
|
|
6380
|
-
|
|
6559
|
+
var Facts = ({ slice }) => /* @__PURE__ */ jsx43(
|
|
6560
|
+
DefaultSectionContainer26,
|
|
6381
6561
|
{
|
|
6382
6562
|
backgroundColor: VARIANTS3[slice.variant].backgroundColor,
|
|
6383
6563
|
flexDir: "column",
|
|
@@ -6385,9 +6565,10 @@ var Facts = ({ slice }) => /* @__PURE__ */ jsx40(
|
|
|
6385
6565
|
justifyContent: "space-between",
|
|
6386
6566
|
paddingX: ["6", null, "8"],
|
|
6387
6567
|
title: slice.title,
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6568
|
+
paddingY: "12",
|
|
6569
|
+
children: /* @__PURE__ */ jsxs36(Fragment20, { children: [
|
|
6570
|
+
slice.title && /* @__PURE__ */ jsxs36(Fragment20, { children: [
|
|
6571
|
+
/* @__PURE__ */ jsx43(
|
|
6391
6572
|
DefaultSectionHeader19,
|
|
6392
6573
|
{
|
|
6393
6574
|
tagline: slice.tagline,
|
|
@@ -6411,25 +6592,25 @@ var Facts = ({ slice }) => /* @__PURE__ */ jsx40(
|
|
|
6411
6592
|
}
|
|
6412
6593
|
}
|
|
6413
6594
|
),
|
|
6414
|
-
/* @__PURE__ */
|
|
6595
|
+
/* @__PURE__ */ jsx43(Spacer8, { height: ["0", null, "12"] })
|
|
6415
6596
|
] }),
|
|
6416
|
-
/* @__PURE__ */
|
|
6417
|
-
|
|
6597
|
+
/* @__PURE__ */ jsx43(
|
|
6598
|
+
Flex19,
|
|
6418
6599
|
{
|
|
6419
6600
|
justifyContent: slice.facts.length < 3 ? "center" : "flex-start",
|
|
6420
6601
|
alignItems: "center",
|
|
6421
6602
|
flexWrap: "wrap",
|
|
6422
6603
|
mx: [null, null, null, "22", "28"],
|
|
6423
6604
|
flexDir: ["column", null, null, "row"],
|
|
6424
|
-
children: slice.facts.map((fact) => /* @__PURE__ */
|
|
6425
|
-
|
|
6605
|
+
children: slice.facts.map((fact) => /* @__PURE__ */ jsxs36(
|
|
6606
|
+
Flex19,
|
|
6426
6607
|
{
|
|
6427
6608
|
flexDir: "column",
|
|
6428
6609
|
width: ["100%", null, null, "calc(100% / 3)"],
|
|
6429
6610
|
mt: ["8", "8", "8", slice.facts.length > 3 ? "16" : "0"],
|
|
6430
6611
|
children: [
|
|
6431
|
-
/* @__PURE__ */
|
|
6432
|
-
|
|
6612
|
+
/* @__PURE__ */ jsx43(
|
|
6613
|
+
Heading13,
|
|
6433
6614
|
{
|
|
6434
6615
|
fontSize: "6xl",
|
|
6435
6616
|
fontFamily: "display",
|
|
@@ -6441,8 +6622,8 @@ var Facts = ({ slice }) => /* @__PURE__ */ jsx40(
|
|
|
6441
6622
|
children: fact.value
|
|
6442
6623
|
}
|
|
6443
6624
|
),
|
|
6444
|
-
/* @__PURE__ */
|
|
6445
|
-
|
|
6625
|
+
/* @__PURE__ */ jsx43(
|
|
6626
|
+
Text18,
|
|
6446
6627
|
{
|
|
6447
6628
|
size: "mdLowNormal",
|
|
6448
6629
|
color: VARIANTS3[slice.variant].factKeyColor,
|
|
@@ -6455,9 +6636,9 @@ var Facts = ({ slice }) => /* @__PURE__ */ jsx40(
|
|
|
6455
6636
|
))
|
|
6456
6637
|
}
|
|
6457
6638
|
),
|
|
6458
|
-
slice.button && /* @__PURE__ */
|
|
6459
|
-
/* @__PURE__ */
|
|
6460
|
-
/* @__PURE__ */
|
|
6639
|
+
slice.button && /* @__PURE__ */ jsxs36(Fragment20, { children: [
|
|
6640
|
+
/* @__PURE__ */ jsx43(Spacer8, { height: ["0", null, "20"] }),
|
|
6641
|
+
/* @__PURE__ */ jsx43(
|
|
6461
6642
|
StrapiLinkButton_default,
|
|
6462
6643
|
{
|
|
6463
6644
|
link: slice.button,
|
|
@@ -6475,25 +6656,25 @@ var Facts = ({ slice }) => /* @__PURE__ */ jsx40(
|
|
|
6475
6656
|
var Facts_default = Facts;
|
|
6476
6657
|
|
|
6477
6658
|
// src/slices/BlogCards/BlogCards.tsx
|
|
6478
|
-
import { useContext as
|
|
6659
|
+
import { useContext as useContext17, useMemo as useMemo4 } from "react";
|
|
6479
6660
|
import {
|
|
6480
|
-
Text as
|
|
6481
|
-
Heading as
|
|
6661
|
+
Text as Text19,
|
|
6662
|
+
Heading as Heading14,
|
|
6482
6663
|
Spacer as Spacer9,
|
|
6483
6664
|
DatePersonPair as DatePersonPair2,
|
|
6484
6665
|
DefaultSectionHeader as DefaultSectionHeader20,
|
|
6485
|
-
DefaultSectionContainer as
|
|
6486
|
-
Wrapper as
|
|
6487
|
-
SimpleGrid as
|
|
6488
|
-
Box as
|
|
6489
|
-
Flex as
|
|
6666
|
+
DefaultSectionContainer as DefaultSectionContainer27,
|
|
6667
|
+
Wrapper as Wrapper30,
|
|
6668
|
+
SimpleGrid as SimpleGrid15,
|
|
6669
|
+
Box as Box34,
|
|
6670
|
+
Flex as Flex20,
|
|
6490
6671
|
useMediaQuery as useMediaQuery6,
|
|
6491
6672
|
useToken as useToken9
|
|
6492
6673
|
} from "boemly";
|
|
6493
|
-
import
|
|
6494
|
-
import
|
|
6674
|
+
import Image25 from "next/image.js";
|
|
6675
|
+
import Link7 from "next/link.js";
|
|
6495
6676
|
import { CaretRightIcon as CaretRightIcon6 } from "@phosphor-icons/react";
|
|
6496
|
-
import { Fragment as Fragment21, jsx as
|
|
6677
|
+
import { Fragment as Fragment21, jsx as jsx44, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6497
6678
|
var VARIANTS4 = {
|
|
6498
6679
|
white: {
|
|
6499
6680
|
backgroundColor: "white"
|
|
@@ -6507,7 +6688,7 @@ var BlogCards = ({
|
|
|
6507
6688
|
slice,
|
|
6508
6689
|
blogPosts
|
|
6509
6690
|
}) => {
|
|
6510
|
-
const { formatDate } =
|
|
6691
|
+
const { formatDate } = useContext17(IntlContext);
|
|
6511
6692
|
const [mobile] = useMediaQuery6([BREAKPOINT_LG_QUERY]);
|
|
6512
6693
|
const [gray700] = useToken9("colors", ["gray.700"]);
|
|
6513
6694
|
const sortedBlogPosts = useMemo4(
|
|
@@ -6520,13 +6701,13 @@ var BlogCards = ({
|
|
|
6520
6701
|
).slice(0, 3) : sortedBlogPosts.slice(0, 3),
|
|
6521
6702
|
[sortedBlogPosts, slice]
|
|
6522
6703
|
);
|
|
6523
|
-
return /* @__PURE__ */
|
|
6524
|
-
|
|
6704
|
+
return /* @__PURE__ */ jsx44(
|
|
6705
|
+
DefaultSectionContainer27,
|
|
6525
6706
|
{
|
|
6526
6707
|
backgroundColor: VARIANTS4[slice.variant].backgroundColor,
|
|
6527
6708
|
title: slice.title,
|
|
6528
|
-
children: /* @__PURE__ */
|
|
6529
|
-
mobile || !slice.button ? /* @__PURE__ */
|
|
6709
|
+
children: /* @__PURE__ */ jsxs37(Wrapper30, { children: [
|
|
6710
|
+
mobile || !slice.button ? /* @__PURE__ */ jsx44(
|
|
6530
6711
|
DefaultSectionHeader20,
|
|
6531
6712
|
{
|
|
6532
6713
|
tagline: slice.tagline,
|
|
@@ -6535,8 +6716,8 @@ var BlogCards = ({
|
|
|
6535
6716
|
titleProps: { maxW: "2xl" },
|
|
6536
6717
|
textProps: { maxW: "2xl" }
|
|
6537
6718
|
}
|
|
6538
|
-
) : /* @__PURE__ */
|
|
6539
|
-
/* @__PURE__ */
|
|
6719
|
+
) : /* @__PURE__ */ jsxs37(Flex20, { justifyContent: "space-between", alignItems: "center", gap: "60", children: [
|
|
6720
|
+
/* @__PURE__ */ jsx44(Box34, { children: /* @__PURE__ */ jsx44(
|
|
6540
6721
|
DefaultSectionHeader20,
|
|
6541
6722
|
{
|
|
6542
6723
|
tagline: slice.tagline,
|
|
@@ -6544,34 +6725,34 @@ var BlogCards = ({
|
|
|
6544
6725
|
text: slice.subTitle
|
|
6545
6726
|
}
|
|
6546
6727
|
) }),
|
|
6547
|
-
/* @__PURE__ */
|
|
6728
|
+
/* @__PURE__ */ jsx44(Box34, { minWidth: "40", children: /* @__PURE__ */ jsx44(
|
|
6548
6729
|
StrapiLinkButton_default,
|
|
6549
6730
|
{
|
|
6550
6731
|
link: slice.button,
|
|
6551
6732
|
size: "lg",
|
|
6552
6733
|
variant: "outline",
|
|
6553
|
-
rightIcon: /* @__PURE__ */
|
|
6734
|
+
rightIcon: /* @__PURE__ */ jsx44(CaretRightIcon6, { color: gray700 }),
|
|
6554
6735
|
component: "BlogCards"
|
|
6555
6736
|
}
|
|
6556
6737
|
) })
|
|
6557
6738
|
] }),
|
|
6558
|
-
/* @__PURE__ */
|
|
6559
|
-
/* @__PURE__ */
|
|
6560
|
-
|
|
6739
|
+
/* @__PURE__ */ jsx44(Spacer9, { height: "14" }),
|
|
6740
|
+
/* @__PURE__ */ jsx44(
|
|
6741
|
+
SimpleGrid15,
|
|
6561
6742
|
{
|
|
6562
6743
|
columns: [1, null, null, 3],
|
|
6563
6744
|
columnGap: 4,
|
|
6564
6745
|
rowGap: 24,
|
|
6565
6746
|
flexShrink: "0",
|
|
6566
|
-
children: blogPostsToDisplay.map((blogPost) => /* @__PURE__ */
|
|
6747
|
+
children: blogPostsToDisplay.map((blogPost) => /* @__PURE__ */ jsxs37(
|
|
6567
6748
|
BlogItemContainer,
|
|
6568
6749
|
{
|
|
6569
|
-
as:
|
|
6750
|
+
as: Link7,
|
|
6570
6751
|
href: `/blog/${blogPost.attributes.slug}`,
|
|
6571
6752
|
"data-testid": "blog-item",
|
|
6572
6753
|
children: [
|
|
6573
|
-
/* @__PURE__ */
|
|
6574
|
-
|
|
6754
|
+
/* @__PURE__ */ jsx44(ImageContainer, { children: /* @__PURE__ */ jsx44(
|
|
6755
|
+
Image25,
|
|
6575
6756
|
{
|
|
6576
6757
|
src: strapiMediaUrl_default(blogPost.attributes.img.img, "medium"),
|
|
6577
6758
|
alt: blogPost.attributes.img.alt,
|
|
@@ -6581,19 +6762,19 @@ var BlogCards = ({
|
|
|
6581
6762
|
}
|
|
6582
6763
|
}
|
|
6583
6764
|
) }),
|
|
6584
|
-
/* @__PURE__ */
|
|
6585
|
-
blogPost.attributes.category && /* @__PURE__ */
|
|
6586
|
-
/* @__PURE__ */
|
|
6587
|
-
blogPost.attributes.teaser && /* @__PURE__ */
|
|
6588
|
-
/* @__PURE__ */
|
|
6589
|
-
/* @__PURE__ */
|
|
6765
|
+
/* @__PURE__ */ jsxs37(Box34, { px: "2", py: "8", children: [
|
|
6766
|
+
blogPost.attributes.category && /* @__PURE__ */ jsx44(Text19, { size: "smMonoUppercase", color: "primary.800", mb: "2", children: blogPost.attributes.category.data?.attributes.name }),
|
|
6767
|
+
/* @__PURE__ */ jsx44(Heading14, { size: "lg", children: blogPost.attributes.title }),
|
|
6768
|
+
blogPost.attributes.teaser && /* @__PURE__ */ jsx44(Text19, { size: "mdRegularNormal", mt: "2", children: blogPost.attributes.teaser }),
|
|
6769
|
+
/* @__PURE__ */ jsx44(Spacer9, { height: "4" }),
|
|
6770
|
+
/* @__PURE__ */ jsx44(
|
|
6590
6771
|
DatePersonPair2,
|
|
6591
6772
|
{
|
|
6592
6773
|
date: formatDate(blogPost.attributes.createdAt),
|
|
6593
6774
|
person: blogPost.attributes.author.data ? {
|
|
6594
6775
|
name: blogPost.attributes.author.data.attributes.name,
|
|
6595
|
-
image: /* @__PURE__ */
|
|
6596
|
-
|
|
6776
|
+
image: /* @__PURE__ */ jsx44(
|
|
6777
|
+
Image25,
|
|
6597
6778
|
{
|
|
6598
6779
|
src: strapiMediaUrl_default(
|
|
6599
6780
|
blogPost.attributes.author.data.attributes.img.img,
|
|
@@ -6616,13 +6797,13 @@ var BlogCards = ({
|
|
|
6616
6797
|
))
|
|
6617
6798
|
}
|
|
6618
6799
|
),
|
|
6619
|
-
/* @__PURE__ */
|
|
6800
|
+
/* @__PURE__ */ jsx44(Fragment21, { children: mobile && slice.button && /* @__PURE__ */ jsx44(Fragment21, { children: /* @__PURE__ */ jsx44(Box34, { minWidth: "40", mt: "6", children: /* @__PURE__ */ jsx44(
|
|
6620
6801
|
StrapiLinkButton_default,
|
|
6621
6802
|
{
|
|
6622
6803
|
link: slice.button,
|
|
6623
6804
|
size: "lg",
|
|
6624
6805
|
variant: "outline",
|
|
6625
|
-
rightIcon: /* @__PURE__ */
|
|
6806
|
+
rightIcon: /* @__PURE__ */ jsx44(CaretRightIcon6, { color: gray700 }),
|
|
6626
6807
|
component: "BlogCards"
|
|
6627
6808
|
}
|
|
6628
6809
|
) }) }) })
|
|
@@ -6636,18 +6817,18 @@ var BlogCards_default = BlogCards;
|
|
|
6636
6817
|
|
|
6637
6818
|
// src/slices/ProjectFacts/ProjectFacts.tsx
|
|
6638
6819
|
import { useEffect as useEffect5, useState as useState8 } from "react";
|
|
6639
|
-
import { DefaultSectionContainer as
|
|
6820
|
+
import { DefaultSectionContainer as DefaultSectionContainer28, Flex as Flex25, Wrapper as Wrapper31 } from "boemly";
|
|
6640
6821
|
|
|
6641
6822
|
// src/components/portfolio/SmallCheckout/SmallCheckout.tsx
|
|
6642
|
-
import { useCallback as useCallback4, useContext as
|
|
6823
|
+
import { useCallback as useCallback4, useContext as useContext18 } from "react";
|
|
6643
6824
|
import {
|
|
6644
6825
|
BoemlyFormControl as BoemlyFormControl2,
|
|
6645
|
-
Box as
|
|
6826
|
+
Box as Box35,
|
|
6646
6827
|
Button as Button3,
|
|
6647
6828
|
Separator as Separator3,
|
|
6648
|
-
Flex as
|
|
6829
|
+
Flex as Flex21,
|
|
6649
6830
|
Spacer as Spacer10,
|
|
6650
|
-
Text as
|
|
6831
|
+
Text as Text20
|
|
6651
6832
|
} from "boemly";
|
|
6652
6833
|
import {
|
|
6653
6834
|
Field as Field2,
|
|
@@ -6655,8 +6836,8 @@ import {
|
|
|
6655
6836
|
Formik as Formik2
|
|
6656
6837
|
} from "formik";
|
|
6657
6838
|
import { useRouter as useRouter8 } from "next/router.js";
|
|
6658
|
-
import
|
|
6659
|
-
import { jsx as
|
|
6839
|
+
import Image26 from "next/image.js";
|
|
6840
|
+
import { jsx as jsx45, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6660
6841
|
var calculateTaxIncludedValue = (values, taxInPercent) => {
|
|
6661
6842
|
const value = parseInt(values.contributionValueCurrency);
|
|
6662
6843
|
if (isNaN(value)) return 0;
|
|
@@ -6673,7 +6854,7 @@ var SmallCheckout = ({
|
|
|
6673
6854
|
subtitle,
|
|
6674
6855
|
button
|
|
6675
6856
|
}) => {
|
|
6676
|
-
const { formatNumber, formatMessage, locale } =
|
|
6857
|
+
const { formatNumber, formatMessage, locale } = useContext18(IntlContext);
|
|
6677
6858
|
const { push } = useRouter8();
|
|
6678
6859
|
const validateForm = useCallback4(
|
|
6679
6860
|
(values) => {
|
|
@@ -6707,8 +6888,8 @@ var SmallCheckout = ({
|
|
|
6707
6888
|
checkoutURL.searchParams.append("cancelPath", currentURL.pathname);
|
|
6708
6889
|
push(checkoutURL.toString());
|
|
6709
6890
|
};
|
|
6710
|
-
return /* @__PURE__ */
|
|
6711
|
-
|
|
6891
|
+
return /* @__PURE__ */ jsxs38(
|
|
6892
|
+
Flex21,
|
|
6712
6893
|
{
|
|
6713
6894
|
width: "full",
|
|
6714
6895
|
height: "full",
|
|
@@ -6717,22 +6898,22 @@ var SmallCheckout = ({
|
|
|
6717
6898
|
padding: "6",
|
|
6718
6899
|
direction: "column",
|
|
6719
6900
|
children: [
|
|
6720
|
-
/* @__PURE__ */
|
|
6721
|
-
/* @__PURE__ */
|
|
6901
|
+
/* @__PURE__ */ jsxs38(Flex21, { gap: "2", alignItems: "end", mb: "6", children: [
|
|
6902
|
+
/* @__PURE__ */ jsx45(Text20, { color: "black", lineHeight: "0", children: formatMessage(
|
|
6722
6903
|
{ id: "unit.formatter.tonsCo2" },
|
|
6723
6904
|
{
|
|
6724
|
-
number: /* @__PURE__ */
|
|
6905
|
+
number: /* @__PURE__ */ jsx45(Text20, { as: "span", size: "lgLowBold", color: "black", children: formatNumber(pricePerKg * 1e3, {
|
|
6725
6906
|
style: "currency",
|
|
6726
6907
|
currency,
|
|
6727
6908
|
maximumFractionDigits: 0
|
|
6728
6909
|
}) })
|
|
6729
6910
|
}
|
|
6730
6911
|
) }),
|
|
6731
|
-
/* @__PURE__ */
|
|
6912
|
+
/* @__PURE__ */ jsx45(Text20, { size: "smLowNormal", children: formatMessage({
|
|
6732
6913
|
id: "portfolio.smallCheckout.price.taxNotIncluded"
|
|
6733
6914
|
}) })
|
|
6734
6915
|
] }),
|
|
6735
|
-
/* @__PURE__ */
|
|
6916
|
+
/* @__PURE__ */ jsx45(
|
|
6736
6917
|
Formik2,
|
|
6737
6918
|
{
|
|
6738
6919
|
initialValues: {
|
|
@@ -6747,9 +6928,9 @@ var SmallCheckout = ({
|
|
|
6747
6928
|
handleSubmit,
|
|
6748
6929
|
setValues,
|
|
6749
6930
|
values
|
|
6750
|
-
}) => /* @__PURE__ */
|
|
6751
|
-
/* @__PURE__ */
|
|
6752
|
-
/* @__PURE__ */
|
|
6931
|
+
}) => /* @__PURE__ */ jsxs38(Form2, { onSubmit: handleSubmit, children: [
|
|
6932
|
+
/* @__PURE__ */ jsxs38(Flex21, { gap: "4", children: [
|
|
6933
|
+
/* @__PURE__ */ jsx45(Box35, { width: "full", children: /* @__PURE__ */ jsx45(Field2, { name: "contributionValueCurrency", children: ({ field }) => /* @__PURE__ */ jsx45(
|
|
6753
6934
|
BoemlyFormControl2,
|
|
6754
6935
|
{
|
|
6755
6936
|
id: "contributionValueCurrency",
|
|
@@ -6769,7 +6950,7 @@ var SmallCheckout = ({
|
|
|
6769
6950
|
id: `portfolio.smallCheckout.contributionValueCurrency.label.${currency}`
|
|
6770
6951
|
}),
|
|
6771
6952
|
rightAddons: [
|
|
6772
|
-
/* @__PURE__ */
|
|
6953
|
+
/* @__PURE__ */ jsx45(Text20, { children: formatMessage({
|
|
6773
6954
|
id: `portfolio.smallCheckout.contributionValueCurrency.unit.${currency}`
|
|
6774
6955
|
}) }, "currencyUnit")
|
|
6775
6956
|
],
|
|
@@ -6777,7 +6958,7 @@ var SmallCheckout = ({
|
|
|
6777
6958
|
errorMessage: errors.contributionValueCurrency
|
|
6778
6959
|
}
|
|
6779
6960
|
) }) }),
|
|
6780
|
-
/* @__PURE__ */
|
|
6961
|
+
/* @__PURE__ */ jsx45(Box35, { width: "full", children: /* @__PURE__ */ jsx45(Field2, { name: "contributionValueTons", children: ({ field }) => /* @__PURE__ */ jsx45(
|
|
6781
6962
|
BoemlyFormControl2,
|
|
6782
6963
|
{
|
|
6783
6964
|
id: "contributionValueTons",
|
|
@@ -6796,13 +6977,13 @@ var SmallCheckout = ({
|
|
|
6796
6977
|
label: formatMessage({
|
|
6797
6978
|
id: "portfolio.smallCheckout.contributionValueTons.label"
|
|
6798
6979
|
}),
|
|
6799
|
-
rightAddons: [/* @__PURE__ */
|
|
6980
|
+
rightAddons: [/* @__PURE__ */ jsx45(Text20, { children: "tCO\u2082" }, "tCO\u2082")],
|
|
6800
6981
|
isInvalid: !!errors.contributionValueTons && touched.contributionValueTons,
|
|
6801
6982
|
errorMessage: errors.contributionValueTons
|
|
6802
6983
|
}
|
|
6803
6984
|
) }) })
|
|
6804
6985
|
] }),
|
|
6805
|
-
values.contributionValueCurrency && taxInPercent && taxInPercent > 0 && /* @__PURE__ */
|
|
6986
|
+
values.contributionValueCurrency && taxInPercent && taxInPercent > 0 && /* @__PURE__ */ jsx45(Text20, { size: "smLowNormal", mt: "2", children: formatMessage(
|
|
6806
6987
|
{ id: "portfolio.smallCheckout.price.taxIncluded" },
|
|
6807
6988
|
{
|
|
6808
6989
|
number: formatNumber(
|
|
@@ -6815,13 +6996,13 @@ var SmallCheckout = ({
|
|
|
6815
6996
|
)
|
|
6816
6997
|
}
|
|
6817
6998
|
) }),
|
|
6818
|
-
/* @__PURE__ */
|
|
6819
|
-
/* @__PURE__ */
|
|
6999
|
+
/* @__PURE__ */ jsx45(Spacer10, { height: "4" }),
|
|
7000
|
+
/* @__PURE__ */ jsx45(Button3, { type: "submit", width: "full", children: formatMessage({ id: "portfolio.smallCheckout.submitButton" }) })
|
|
6820
7001
|
] })
|
|
6821
7002
|
}
|
|
6822
7003
|
),
|
|
6823
|
-
/* @__PURE__ */
|
|
6824
|
-
|
|
7004
|
+
/* @__PURE__ */ jsxs38(
|
|
7005
|
+
Flex21,
|
|
6825
7006
|
{
|
|
6826
7007
|
width: "full",
|
|
6827
7008
|
justifyContent: "center",
|
|
@@ -6829,8 +7010,8 @@ var SmallCheckout = ({
|
|
|
6829
7010
|
mt: "6",
|
|
6830
7011
|
gap: "2",
|
|
6831
7012
|
children: [
|
|
6832
|
-
/* @__PURE__ */
|
|
6833
|
-
|
|
7013
|
+
/* @__PURE__ */ jsx45(
|
|
7014
|
+
Image26,
|
|
6834
7015
|
{
|
|
6835
7016
|
src: `${CDN_URI}/assets/v3/strapi-slices/globe-love-icon.svg`,
|
|
6836
7017
|
alt: "Icon",
|
|
@@ -6838,15 +7019,15 @@ var SmallCheckout = ({
|
|
|
6838
7019
|
height: 20
|
|
6839
7020
|
}
|
|
6840
7021
|
),
|
|
6841
|
-
/* @__PURE__ */
|
|
7022
|
+
/* @__PURE__ */ jsx45(Text20, { size: "smLowNormal", children: checkoutText })
|
|
6842
7023
|
]
|
|
6843
7024
|
}
|
|
6844
7025
|
),
|
|
6845
|
-
/* @__PURE__ */
|
|
6846
|
-
/* @__PURE__ */
|
|
6847
|
-
title && /* @__PURE__ */
|
|
6848
|
-
subtitle && /* @__PURE__ */
|
|
6849
|
-
button && /* @__PURE__ */
|
|
7026
|
+
/* @__PURE__ */ jsx45(Separator3, { my: "6" }),
|
|
7027
|
+
/* @__PURE__ */ jsxs38(Flex21, { width: "full", alignItems: "center", direction: "column", children: [
|
|
7028
|
+
title && /* @__PURE__ */ jsx45(Text20, { size: "smLowBold", textAlign: "center", color: "black", mb: "2", children: title }),
|
|
7029
|
+
subtitle && /* @__PURE__ */ jsx45(Text20, { size: "smRegularNormal", textAlign: "center", mb: "3", children: subtitle }),
|
|
7030
|
+
button && /* @__PURE__ */ jsx45(
|
|
6850
7031
|
StrapiLinkButton_default,
|
|
6851
7032
|
{
|
|
6852
7033
|
link: {
|
|
@@ -6868,19 +7049,19 @@ var SmallCheckout_default = SmallCheckout;
|
|
|
6868
7049
|
var SmallCheckout_default2 = SmallCheckout_default;
|
|
6869
7050
|
|
|
6870
7051
|
// src/components/portfolio/ProjectInfo/ProjectInfo.tsx
|
|
6871
|
-
import { useContext as
|
|
7052
|
+
import { useContext as useContext19 } from "react";
|
|
6872
7053
|
import {
|
|
6873
|
-
Box as
|
|
7054
|
+
Box as Box36,
|
|
6874
7055
|
Container as Container4,
|
|
6875
7056
|
Separator as Separator4,
|
|
6876
|
-
Flex as
|
|
6877
|
-
Heading as
|
|
7057
|
+
Flex as Flex22,
|
|
7058
|
+
Heading as Heading15,
|
|
6878
7059
|
LabelTextPair,
|
|
6879
|
-
SimpleGrid as
|
|
7060
|
+
SimpleGrid as SimpleGrid16,
|
|
6880
7061
|
Spacer as Spacer11,
|
|
6881
7062
|
Tooltip
|
|
6882
7063
|
} from "boemly";
|
|
6883
|
-
import
|
|
7064
|
+
import Image27 from "next/image.js";
|
|
6884
7065
|
|
|
6885
7066
|
// src/utils/convertAreaM2ToHa.ts
|
|
6886
7067
|
var convertAreaM2ToHa = (areaInM2) => parseInt(areaInM2, 10) / 1e4;
|
|
@@ -6905,24 +7086,24 @@ var getTimeSpanInYears = (start, end) => {
|
|
|
6905
7086
|
var getTimeSpanInYears_default = getTimeSpanInYears;
|
|
6906
7087
|
|
|
6907
7088
|
// src/components/portfolio/ProjectInfo/ProjectInfo.tsx
|
|
6908
|
-
import { Fragment as Fragment22, jsx as
|
|
7089
|
+
import { Fragment as Fragment22, jsx as jsx46, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6909
7090
|
var ProjectInfo = ({
|
|
6910
7091
|
project,
|
|
6911
7092
|
subtitles
|
|
6912
7093
|
}) => {
|
|
6913
|
-
const { formatMessage, formatNumber, formatDate } =
|
|
6914
|
-
return /* @__PURE__ */
|
|
6915
|
-
/* @__PURE__ */
|
|
6916
|
-
/* @__PURE__ */
|
|
6917
|
-
/* @__PURE__ */
|
|
6918
|
-
|
|
7094
|
+
const { formatMessage, formatNumber, formatDate } = useContext19(IntlContext);
|
|
7095
|
+
return /* @__PURE__ */ jsxs39(Container4, { p: "2", width: "full", children: [
|
|
7096
|
+
/* @__PURE__ */ jsx46(Heading15, { size: "xl", textAlign: "left", children: formatMessage({ id: "features.projectInfo.projectInfo.value" }) }),
|
|
7097
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "8" }),
|
|
7098
|
+
/* @__PURE__ */ jsxs39(
|
|
7099
|
+
SimpleGrid16,
|
|
6919
7100
|
{
|
|
6920
7101
|
columns: [1, null, null, 2],
|
|
6921
7102
|
gap: "8",
|
|
6922
7103
|
columnGap: "10",
|
|
6923
7104
|
rowGap: "8",
|
|
6924
7105
|
children: [
|
|
6925
|
-
project.area && /* @__PURE__ */
|
|
7106
|
+
project.area && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6926
7107
|
LabelTextPair,
|
|
6927
7108
|
{
|
|
6928
7109
|
label: formatMessage({
|
|
@@ -6935,7 +7116,7 @@ var ProjectInfo = ({
|
|
|
6935
7116
|
caption: subtitles.areaSubtitle
|
|
6936
7117
|
}
|
|
6937
7118
|
) }),
|
|
6938
|
-
project.location && /* @__PURE__ */
|
|
7119
|
+
project.location && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6939
7120
|
LabelTextPair,
|
|
6940
7121
|
{
|
|
6941
7122
|
label: formatMessage({
|
|
@@ -6945,7 +7126,7 @@ var ProjectInfo = ({
|
|
|
6945
7126
|
caption: subtitles.locationSubtitle
|
|
6946
7127
|
}
|
|
6947
7128
|
) }),
|
|
6948
|
-
project.start && /* @__PURE__ */
|
|
7129
|
+
project.start && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6949
7130
|
LabelTextPair,
|
|
6950
7131
|
{
|
|
6951
7132
|
label: formatMessage({
|
|
@@ -6958,7 +7139,7 @@ var ProjectInfo = ({
|
|
|
6958
7139
|
caption: subtitles.startSubtitle
|
|
6959
7140
|
}
|
|
6960
7141
|
) }),
|
|
6961
|
-
project.start && project.end && /* @__PURE__ */
|
|
7142
|
+
project.start && project.end && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6962
7143
|
LabelTextPair,
|
|
6963
7144
|
{
|
|
6964
7145
|
label: formatMessage({
|
|
@@ -6981,13 +7162,13 @@ var ProjectInfo = ({
|
|
|
6981
7162
|
]
|
|
6982
7163
|
}
|
|
6983
7164
|
),
|
|
6984
|
-
project.projectType || project.projectDeveloper || project.verificationStandard ? /* @__PURE__ */
|
|
6985
|
-
/* @__PURE__ */
|
|
6986
|
-
/* @__PURE__ */
|
|
6987
|
-
/* @__PURE__ */
|
|
6988
|
-
] }) : /* @__PURE__ */
|
|
6989
|
-
/* @__PURE__ */
|
|
6990
|
-
project.projectType && /* @__PURE__ */
|
|
7165
|
+
project.projectType || project.projectDeveloper || project.verificationStandard ? /* @__PURE__ */ jsxs39(Fragment22, { children: [
|
|
7166
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "6" }),
|
|
7167
|
+
/* @__PURE__ */ jsx46(Separator4, {}),
|
|
7168
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "6" })
|
|
7169
|
+
] }) : /* @__PURE__ */ jsx46(Fragment22, {}),
|
|
7170
|
+
/* @__PURE__ */ jsxs39(SimpleGrid16, { columns: [1, null, null, 2], columnGap: "10", rowGap: "8", children: [
|
|
7171
|
+
project.projectType && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6991
7172
|
LabelTextPair,
|
|
6992
7173
|
{
|
|
6993
7174
|
label: formatMessage({
|
|
@@ -6997,7 +7178,7 @@ var ProjectInfo = ({
|
|
|
6997
7178
|
caption: subtitles.projectTypeSubtitle
|
|
6998
7179
|
}
|
|
6999
7180
|
) }),
|
|
7000
|
-
project.projectDeveloper && /* @__PURE__ */
|
|
7181
|
+
project.projectDeveloper && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
7001
7182
|
LabelTextPair,
|
|
7002
7183
|
{
|
|
7003
7184
|
label: formatMessage({
|
|
@@ -7008,10 +7189,10 @@ var ProjectInfo = ({
|
|
|
7008
7189
|
}
|
|
7009
7190
|
) })
|
|
7010
7191
|
] }),
|
|
7011
|
-
project.verificationStandard ? /* @__PURE__ */
|
|
7012
|
-
project.projectType || project.projectDeveloper ? /* @__PURE__ */
|
|
7013
|
-
/* @__PURE__ */
|
|
7014
|
-
/* @__PURE__ */
|
|
7192
|
+
project.verificationStandard ? /* @__PURE__ */ jsxs39(Fragment22, { children: [
|
|
7193
|
+
project.projectType || project.projectDeveloper ? /* @__PURE__ */ jsx46(Spacer11, { height: "6" }) : /* @__PURE__ */ jsx46(Fragment22, {}),
|
|
7194
|
+
/* @__PURE__ */ jsxs39(Flex22, { justifyContent: "space-between", alignItems: "center", children: [
|
|
7195
|
+
/* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
7015
7196
|
LabelTextPair,
|
|
7016
7197
|
{
|
|
7017
7198
|
label: formatMessage({
|
|
@@ -7024,8 +7205,8 @@ var ProjectInfo = ({
|
|
|
7024
7205
|
caption: subtitles.verificationStandardSubtitle
|
|
7025
7206
|
}
|
|
7026
7207
|
) }),
|
|
7027
|
-
project.defaultIssuer && /* @__PURE__ */
|
|
7028
|
-
|
|
7208
|
+
project.defaultIssuer && /* @__PURE__ */ jsx46(Box36, { position: "relative", width: "14", height: "8", children: /* @__PURE__ */ jsx46(
|
|
7209
|
+
Image27,
|
|
7029
7210
|
{
|
|
7030
7211
|
src: project.defaultIssuer.logoUrl,
|
|
7031
7212
|
alt: `${project.defaultIssuer.name} logo`,
|
|
@@ -7034,20 +7215,20 @@ var ProjectInfo = ({
|
|
|
7034
7215
|
}
|
|
7035
7216
|
) })
|
|
7036
7217
|
] })
|
|
7037
|
-
] }) : /* @__PURE__ */
|
|
7038
|
-
project.averageSellableAmountPerYear && project.averageSellableAmountPerYear > 0 || project.riskBuffer ? /* @__PURE__ */
|
|
7039
|
-
/* @__PURE__ */
|
|
7040
|
-
/* @__PURE__ */
|
|
7041
|
-
/* @__PURE__ */
|
|
7042
|
-
] }) : /* @__PURE__ */
|
|
7043
|
-
/* @__PURE__ */
|
|
7044
|
-
project.averageSellableAmountPerYear > 0 ? /* @__PURE__ */
|
|
7218
|
+
] }) : /* @__PURE__ */ jsx46(Fragment22, {}),
|
|
7219
|
+
project.averageSellableAmountPerYear && project.averageSellableAmountPerYear > 0 || project.riskBuffer ? /* @__PURE__ */ jsxs39(Fragment22, { children: [
|
|
7220
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "8" }),
|
|
7221
|
+
/* @__PURE__ */ jsx46(Separator4, {}),
|
|
7222
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "8" })
|
|
7223
|
+
] }) : /* @__PURE__ */ jsx46(Fragment22, {}),
|
|
7224
|
+
/* @__PURE__ */ jsxs39(SimpleGrid16, { columns: [1, null, null, 2], columnGap: "10", rowGap: "8", children: [
|
|
7225
|
+
project.averageSellableAmountPerYear > 0 ? /* @__PURE__ */ jsx46(
|
|
7045
7226
|
Tooltip,
|
|
7046
7227
|
{
|
|
7047
7228
|
content: formatMessage({
|
|
7048
7229
|
id: "features.projectInfo.properties.projectVolume.toolTip"
|
|
7049
7230
|
}),
|
|
7050
|
-
children: /* @__PURE__ */
|
|
7231
|
+
children: /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
7051
7232
|
LabelTextPair,
|
|
7052
7233
|
{
|
|
7053
7234
|
label: formatMessage({
|
|
@@ -7070,8 +7251,8 @@ var ProjectInfo = ({
|
|
|
7070
7251
|
}
|
|
7071
7252
|
) })
|
|
7072
7253
|
}
|
|
7073
|
-
) : /* @__PURE__ */
|
|
7074
|
-
project.riskBuffer && /* @__PURE__ */
|
|
7254
|
+
) : /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(CreditsAvailableBadge_default2, { status: project.creditAvailability }) }),
|
|
7255
|
+
project.riskBuffer && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
7075
7256
|
LabelTextPair,
|
|
7076
7257
|
{
|
|
7077
7258
|
label: formatMessage({
|
|
@@ -7085,7 +7266,7 @@ var ProjectInfo = ({
|
|
|
7085
7266
|
}
|
|
7086
7267
|
) })
|
|
7087
7268
|
] }),
|
|
7088
|
-
project.averageSellableAmountPerYear > 0 ? /* @__PURE__ */
|
|
7269
|
+
project.averageSellableAmountPerYear > 0 ? /* @__PURE__ */ jsx46(Box36, { mt: "2", children: /* @__PURE__ */ jsx46(CreditsAvailableBadge_default2, { status: project.creditAvailability }) }) : /* @__PURE__ */ jsx46(Fragment22, {})
|
|
7089
7270
|
] });
|
|
7090
7271
|
};
|
|
7091
7272
|
|
|
@@ -7093,36 +7274,36 @@ var ProjectInfo = ({
|
|
|
7093
7274
|
var ProjectInfo_default = ProjectInfo;
|
|
7094
7275
|
|
|
7095
7276
|
// src/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.tsx
|
|
7096
|
-
import { useContext as
|
|
7277
|
+
import { useContext as useContext20 } from "react";
|
|
7097
7278
|
import {
|
|
7098
7279
|
Center as Center3,
|
|
7099
7280
|
Container as Container5,
|
|
7100
|
-
Flex as
|
|
7101
|
-
Heading as
|
|
7281
|
+
Flex as Flex23,
|
|
7282
|
+
Heading as Heading16,
|
|
7102
7283
|
IconButton as IconButton5,
|
|
7103
7284
|
Spacer as Spacer12,
|
|
7104
|
-
Text as
|
|
7285
|
+
Text as Text21
|
|
7105
7286
|
} from "boemly";
|
|
7106
7287
|
import { DownloadSimpleIcon, FilePdfIcon } from "@phosphor-icons/react";
|
|
7107
|
-
import
|
|
7108
|
-
import { jsx as
|
|
7288
|
+
import Link8 from "next/link.js";
|
|
7289
|
+
import { jsx as jsx47, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7109
7290
|
var DocumentsDownloadList = ({
|
|
7110
7291
|
documentUrls
|
|
7111
7292
|
}) => {
|
|
7112
|
-
const { formatMessage } =
|
|
7113
|
-
return /* @__PURE__ */
|
|
7114
|
-
/* @__PURE__ */
|
|
7293
|
+
const { formatMessage } = useContext20(IntlContext);
|
|
7294
|
+
return /* @__PURE__ */ jsxs40(Container5, { p: "2", children: [
|
|
7295
|
+
/* @__PURE__ */ jsx47(Heading16, { size: "xl", textAlign: "left", children: formatMessage({
|
|
7115
7296
|
id: "features.portfolio.documentsDownloadList.projectDocuments"
|
|
7116
7297
|
}) }),
|
|
7117
|
-
/* @__PURE__ */
|
|
7118
|
-
|
|
7298
|
+
/* @__PURE__ */ jsx47(Flex23, { flexDir: "column", children: documentUrls.map((documentUrl) => /* @__PURE__ */ jsxs40(
|
|
7299
|
+
Flex23,
|
|
7119
7300
|
{
|
|
7120
7301
|
justifyContent: "space-between",
|
|
7121
7302
|
alignItems: "center",
|
|
7122
7303
|
mt: "6",
|
|
7123
7304
|
children: [
|
|
7124
|
-
/* @__PURE__ */
|
|
7125
|
-
/* @__PURE__ */
|
|
7305
|
+
/* @__PURE__ */ jsxs40(Flex23, { alignItems: "center", children: [
|
|
7306
|
+
/* @__PURE__ */ jsx47(
|
|
7126
7307
|
Center3,
|
|
7127
7308
|
{
|
|
7128
7309
|
w: "8",
|
|
@@ -7130,17 +7311,17 @@ var DocumentsDownloadList = ({
|
|
|
7130
7311
|
borderRadius: "full",
|
|
7131
7312
|
borderWidth: "1px",
|
|
7132
7313
|
borderColor: "grey.200",
|
|
7133
|
-
children: /* @__PURE__ */
|
|
7314
|
+
children: /* @__PURE__ */ jsx47(FilePdfIcon, {})
|
|
7134
7315
|
}
|
|
7135
7316
|
),
|
|
7136
|
-
/* @__PURE__ */
|
|
7137
|
-
/* @__PURE__ */
|
|
7138
|
-
/* @__PURE__ */
|
|
7139
|
-
/* @__PURE__ */
|
|
7317
|
+
/* @__PURE__ */ jsx47(Spacer12, { width: "4" }),
|
|
7318
|
+
/* @__PURE__ */ jsxs40(Flex23, { flexDir: "column", children: [
|
|
7319
|
+
/* @__PURE__ */ jsx47(Text21, { size: "smMonoNormal", children: "PDF" }),
|
|
7320
|
+
/* @__PURE__ */ jsx47(Text21, { size: "mdLowBold", color: "black", textAlign: "left", children: documentUrl.text })
|
|
7140
7321
|
] })
|
|
7141
7322
|
] }),
|
|
7142
|
-
/* @__PURE__ */
|
|
7143
|
-
/* @__PURE__ */
|
|
7323
|
+
/* @__PURE__ */ jsx47(Spacer12, { width: "32" }),
|
|
7324
|
+
/* @__PURE__ */ jsx47(
|
|
7144
7325
|
IconButton5,
|
|
7145
7326
|
{
|
|
7146
7327
|
variant: "outline",
|
|
@@ -7149,7 +7330,7 @@ var DocumentsDownloadList = ({
|
|
|
7149
7330
|
}),
|
|
7150
7331
|
size: "sm",
|
|
7151
7332
|
asChild: true,
|
|
7152
|
-
children: /* @__PURE__ */
|
|
7333
|
+
children: /* @__PURE__ */ jsx47(Link8, { href: documentUrl.url || "#", children: /* @__PURE__ */ jsx47(DownloadSimpleIcon, {}) })
|
|
7153
7334
|
}
|
|
7154
7335
|
)
|
|
7155
7336
|
]
|
|
@@ -7163,32 +7344,32 @@ var DocumentsDownloadList = ({
|
|
|
7163
7344
|
var DocumentsDownloadList_default = DocumentsDownloadList;
|
|
7164
7345
|
|
|
7165
7346
|
// src/components/portfolio/Contact/Contact.tsx
|
|
7166
|
-
import { Text as
|
|
7167
|
-
import
|
|
7168
|
-
import { Fragment as Fragment23, jsx as
|
|
7347
|
+
import { Text as Text22, Heading as Heading17, Flex as Flex24, Box as Box37, Container as Container6 } from "boemly";
|
|
7348
|
+
import Image28 from "next/image.js";
|
|
7349
|
+
import { Fragment as Fragment23, jsx as jsx48, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7169
7350
|
var Contact = ({
|
|
7170
7351
|
avatar,
|
|
7171
7352
|
title,
|
|
7172
7353
|
text,
|
|
7173
7354
|
button
|
|
7174
|
-
}) => /* @__PURE__ */
|
|
7175
|
-
|
|
7355
|
+
}) => /* @__PURE__ */ jsx48(Container6, { backgroundColor: "primary.100", border: "none", p: "8", height: "full", children: /* @__PURE__ */ jsxs41(
|
|
7356
|
+
Flex24,
|
|
7176
7357
|
{
|
|
7177
7358
|
flexDir: "column",
|
|
7178
7359
|
justifyContent: "center",
|
|
7179
7360
|
alignItems: "center",
|
|
7180
7361
|
height: "full",
|
|
7181
7362
|
children: [
|
|
7182
|
-
avatar ? /* @__PURE__ */
|
|
7183
|
-
|
|
7363
|
+
avatar ? /* @__PURE__ */ jsx48(
|
|
7364
|
+
Box37,
|
|
7184
7365
|
{
|
|
7185
7366
|
position: "relative",
|
|
7186
7367
|
width: "20",
|
|
7187
7368
|
height: "20",
|
|
7188
7369
|
borderRadius: "full",
|
|
7189
7370
|
overflow: "hidden",
|
|
7190
|
-
children: /* @__PURE__ */
|
|
7191
|
-
|
|
7371
|
+
children: /* @__PURE__ */ jsx48(
|
|
7372
|
+
Image28,
|
|
7192
7373
|
{
|
|
7193
7374
|
src: strapiMediaUrl_default(avatar.img, "small"),
|
|
7194
7375
|
alt: avatar.alt,
|
|
@@ -7197,9 +7378,9 @@ var Contact = ({
|
|
|
7197
7378
|
}
|
|
7198
7379
|
)
|
|
7199
7380
|
}
|
|
7200
|
-
) : /* @__PURE__ */
|
|
7201
|
-
title ? /* @__PURE__ */
|
|
7202
|
-
|
|
7381
|
+
) : /* @__PURE__ */ jsx48(Fragment23, {}),
|
|
7382
|
+
title ? /* @__PURE__ */ jsx48(
|
|
7383
|
+
Heading17,
|
|
7203
7384
|
{
|
|
7204
7385
|
mt: "6",
|
|
7205
7386
|
size: "md",
|
|
@@ -7208,9 +7389,9 @@ var Contact = ({
|
|
|
7208
7389
|
color: "black",
|
|
7209
7390
|
children: title
|
|
7210
7391
|
}
|
|
7211
|
-
) : /* @__PURE__ */
|
|
7212
|
-
text ? /* @__PURE__ */
|
|
7213
|
-
button ? /* @__PURE__ */
|
|
7392
|
+
) : /* @__PURE__ */ jsx48(Fragment23, {}),
|
|
7393
|
+
text ? /* @__PURE__ */ jsx48(Text22, { mt: "2", size: "smRegularNormal", textAlign: "center", children: text }) : /* @__PURE__ */ jsx48(Fragment23, {}),
|
|
7394
|
+
button ? /* @__PURE__ */ jsx48(
|
|
7214
7395
|
StrapiLinkButton_default,
|
|
7215
7396
|
{
|
|
7216
7397
|
mt: "6",
|
|
@@ -7219,7 +7400,7 @@ var Contact = ({
|
|
|
7219
7400
|
variant: "outline",
|
|
7220
7401
|
component: "Contact"
|
|
7221
7402
|
}
|
|
7222
|
-
) : /* @__PURE__ */
|
|
7403
|
+
) : /* @__PURE__ */ jsx48(Fragment23, {})
|
|
7223
7404
|
]
|
|
7224
7405
|
}
|
|
7225
7406
|
) });
|
|
@@ -7237,7 +7418,7 @@ var getFpmProjectById = async (projectId) => {
|
|
|
7237
7418
|
var getFpmProjectById_default = getFpmProjectById;
|
|
7238
7419
|
|
|
7239
7420
|
// src/slices/ProjectFacts/ProjectFacts.tsx
|
|
7240
|
-
import { Fragment as Fragment24, jsx as
|
|
7421
|
+
import { Fragment as Fragment24, jsx as jsx49, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7241
7422
|
var ProjectFacts = ({
|
|
7242
7423
|
slice,
|
|
7243
7424
|
project
|
|
@@ -7268,16 +7449,16 @@ var ProjectFacts = ({
|
|
|
7268
7449
|
fetchCompleteProjectData();
|
|
7269
7450
|
}, [project]);
|
|
7270
7451
|
if (!enhancedProject) {
|
|
7271
|
-
return /* @__PURE__ */
|
|
7452
|
+
return /* @__PURE__ */ jsx49(Fragment24, { children: "Invalid configuration, check if a project this id exists in the FPM" });
|
|
7272
7453
|
}
|
|
7273
7454
|
if (isLoading) {
|
|
7274
|
-
return /* @__PURE__ */
|
|
7455
|
+
return /* @__PURE__ */ jsx49(DefaultSectionContainer28, { children: /* @__PURE__ */ jsx49(Wrapper31, { children: /* @__PURE__ */ jsx49("div", { children: "Loading project data..." }) }) });
|
|
7275
7456
|
}
|
|
7276
|
-
return /* @__PURE__ */
|
|
7277
|
-
/* @__PURE__ */
|
|
7278
|
-
/* @__PURE__ */
|
|
7279
|
-
slice.documentUrls && slice.documentUrls.length > 0 && /* @__PURE__ */
|
|
7280
|
-
slice.batchId && slice.pricePerKg && slice.currency && slice.initialContributionValue ? /* @__PURE__ */
|
|
7457
|
+
return /* @__PURE__ */ jsx49(DefaultSectionContainer28, { children: /* @__PURE__ */ jsx49(Wrapper31, { children: /* @__PURE__ */ jsxs42(Flex25, { flexDir: ["column", null, null, "row"], gap: "4", width: "full", children: [
|
|
7458
|
+
/* @__PURE__ */ jsx49(ProjectInfo_default, { project: enhancedProject, subtitles: slice }),
|
|
7459
|
+
/* @__PURE__ */ jsxs42(Flex25, { flexDir: "column", gap: "4", width: "full", children: [
|
|
7460
|
+
slice.documentUrls && slice.documentUrls.length > 0 && /* @__PURE__ */ jsx49(DocumentsDownloadList_default, { documentUrls: slice.documentUrls }),
|
|
7461
|
+
slice.batchId && slice.pricePerKg && slice.currency && slice.initialContributionValue ? /* @__PURE__ */ jsx49(
|
|
7281
7462
|
SmallCheckout_default2,
|
|
7282
7463
|
{
|
|
7283
7464
|
batchId: slice.batchId,
|
|
@@ -7290,7 +7471,7 @@ var ProjectFacts = ({
|
|
|
7290
7471
|
button: slice.customButton,
|
|
7291
7472
|
taxInPercent: slice.taxInPercent
|
|
7292
7473
|
}
|
|
7293
|
-
) : (slice.contactTitle || slice.contactText || slice.contactButton || slice.contactAvatar) && /* @__PURE__ */
|
|
7474
|
+
) : (slice.contactTitle || slice.contactText || slice.contactButton || slice.contactAvatar) && /* @__PURE__ */ jsx49(
|
|
7294
7475
|
Contact_default,
|
|
7295
7476
|
{
|
|
7296
7477
|
title: slice.contactTitle,
|
|
@@ -7307,21 +7488,21 @@ var ProjectFacts = ({
|
|
|
7307
7488
|
var ProjectFacts_default = ProjectFacts;
|
|
7308
7489
|
|
|
7309
7490
|
// src/slices/CustomerStories/CustomerStories.tsx
|
|
7310
|
-
import { Box as
|
|
7491
|
+
import { Box as Box41, DefaultSectionContainer as DefaultSectionContainer29, SimpleGrid as SimpleGrid17, Wrapper as Wrapper32 } from "boemly";
|
|
7311
7492
|
|
|
7312
7493
|
// src/components/CustomerCard/CustomerCard.tsx
|
|
7313
|
-
import { Container as Container7, Center as Center4, Heading as
|
|
7314
|
-
import { useContext as
|
|
7315
|
-
import
|
|
7316
|
-
import
|
|
7317
|
-
import { jsx as
|
|
7494
|
+
import { Container as Container7, Center as Center4, Heading as Heading18, Button as Button4, Box as Box38, Text as Text23, Flex as Flex26 } from "boemly";
|
|
7495
|
+
import { useContext as useContext21 } from "react";
|
|
7496
|
+
import Image29 from "next/image.js";
|
|
7497
|
+
import Link9 from "next/link.js";
|
|
7498
|
+
import { jsx as jsx50, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7318
7499
|
var CustomerCard = ({
|
|
7319
7500
|
customerStory
|
|
7320
7501
|
}) => {
|
|
7321
|
-
const { formatMessage } =
|
|
7322
|
-
return /* @__PURE__ */
|
|
7323
|
-
/* @__PURE__ */
|
|
7324
|
-
|
|
7502
|
+
const { formatMessage } = useContext21(IntlContext);
|
|
7503
|
+
return /* @__PURE__ */ jsx50(Container7, { padding: "none", height: "full", children: /* @__PURE__ */ jsxs43(Flex26, { flexDir: "column", height: "full", children: [
|
|
7504
|
+
/* @__PURE__ */ jsx50(Center4, { height: "24", backgroundColor: "primary.50", borderTopRadius: "xl", children: customerStory.cardImage && /* @__PURE__ */ jsx50(Box38, { position: "relative", height: "12", width: "12", children: /* @__PURE__ */ jsx50(
|
|
7505
|
+
Image29,
|
|
7325
7506
|
{
|
|
7326
7507
|
src: strapiMediaUrl_default(customerStory.cardImage.img, "medium"),
|
|
7327
7508
|
alt: customerStory.cardImage.alt,
|
|
@@ -7331,11 +7512,11 @@ var CustomerCard = ({
|
|
|
7331
7512
|
}
|
|
7332
7513
|
}
|
|
7333
7514
|
) }) }),
|
|
7334
|
-
/* @__PURE__ */
|
|
7335
|
-
customerStory.customerCardCustomerIndustry && /* @__PURE__ */
|
|
7336
|
-
customerStory.title && /* @__PURE__ */
|
|
7515
|
+
/* @__PURE__ */ jsxs43(Box38, { px: "6", pt: "8", pb: "6", mb: "auto", children: [
|
|
7516
|
+
customerStory.customerCardCustomerIndustry && /* @__PURE__ */ jsx50(Text23, { size: "xsMonoUppercase", color: "gray.500", mb: "2", children: customerStory.customerCardCustomerIndustry }),
|
|
7517
|
+
customerStory.title && /* @__PURE__ */ jsx50(Heading18, { size: "md", fontWeight: "500", children: customerStory.title })
|
|
7337
7518
|
] }),
|
|
7338
|
-
/* @__PURE__ */
|
|
7519
|
+
/* @__PURE__ */ jsx50(Box38, { px: "6", pt: "8", pb: "6", children: /* @__PURE__ */ jsx50(Link9, { href: `/customer-stories/${customerStory.slug}`, children: /* @__PURE__ */ jsx50(Button4, { variant: "outline", size: "sm", children: formatMessage({ id: "sections.customerCard.more" }) }) }) })
|
|
7339
7520
|
] }) });
|
|
7340
7521
|
};
|
|
7341
7522
|
|
|
@@ -7343,26 +7524,26 @@ var CustomerCard = ({
|
|
|
7343
7524
|
var CustomerCard_default = CustomerCard;
|
|
7344
7525
|
|
|
7345
7526
|
// src/components/CustomerQuoteCard/CustomerQuoteCard.tsx
|
|
7346
|
-
import { Container as Container8, Heading as
|
|
7347
|
-
import { useContext as
|
|
7348
|
-
import
|
|
7349
|
-
import
|
|
7350
|
-
import { Fragment as Fragment25, jsx as
|
|
7527
|
+
import { Container as Container8, Heading as Heading19, Button as Button5, Box as Box39, Text as Text24 } from "boemly";
|
|
7528
|
+
import { useContext as useContext22 } from "react";
|
|
7529
|
+
import Image30 from "next/image.js";
|
|
7530
|
+
import Link10 from "next/link.js";
|
|
7531
|
+
import { Fragment as Fragment25, jsx as jsx51, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7351
7532
|
var CustomerQuoteCard = ({
|
|
7352
7533
|
customerStory
|
|
7353
7534
|
}) => {
|
|
7354
|
-
const { formatMessage } =
|
|
7355
|
-
return /* @__PURE__ */
|
|
7356
|
-
customerStory.cardImage ? /* @__PURE__ */
|
|
7357
|
-
|
|
7535
|
+
const { formatMessage } = useContext22(IntlContext);
|
|
7536
|
+
return /* @__PURE__ */ jsxs44(Container8, { p: "1", backgroundColor: "primary.100", height: "full", children: [
|
|
7537
|
+
customerStory.cardImage ? /* @__PURE__ */ jsx51(
|
|
7538
|
+
Box39,
|
|
7358
7539
|
{
|
|
7359
7540
|
position: "relative",
|
|
7360
7541
|
height: "12",
|
|
7361
7542
|
width: "12",
|
|
7362
7543
|
borderRadius: "full",
|
|
7363
7544
|
overflow: "hidden",
|
|
7364
|
-
children: /* @__PURE__ */
|
|
7365
|
-
|
|
7545
|
+
children: /* @__PURE__ */ jsx51(
|
|
7546
|
+
Image30,
|
|
7366
7547
|
{
|
|
7367
7548
|
src: strapiMediaUrl_default(customerStory.cardImage.img, "medium"),
|
|
7368
7549
|
alt: customerStory.cardImage.alt,
|
|
@@ -7373,14 +7554,14 @@ var CustomerQuoteCard = ({
|
|
|
7373
7554
|
}
|
|
7374
7555
|
)
|
|
7375
7556
|
}
|
|
7376
|
-
) : /* @__PURE__ */
|
|
7377
|
-
/* @__PURE__ */
|
|
7378
|
-
/* @__PURE__ */
|
|
7379
|
-
/* @__PURE__ */
|
|
7380
|
-
/* @__PURE__ */
|
|
7557
|
+
) : /* @__PURE__ */ jsx51(Fragment25, {}),
|
|
7558
|
+
/* @__PURE__ */ jsxs44(Box39, { children: [
|
|
7559
|
+
/* @__PURE__ */ jsxs44(Box39, { my: "8", children: [
|
|
7560
|
+
/* @__PURE__ */ jsx51(Heading19, { size: "md", fontWeight: "500", children: customerStory.customerName }),
|
|
7561
|
+
/* @__PURE__ */ jsx51(Text24, { fontSize: "md", children: customerStory.quoteCardCustomerTitle })
|
|
7381
7562
|
] }),
|
|
7382
|
-
/* @__PURE__ */
|
|
7383
|
-
/* @__PURE__ */
|
|
7563
|
+
/* @__PURE__ */ jsx51(Text24, { fontSize: "md", color: "black", children: customerStory.quoteCardQuote }),
|
|
7564
|
+
/* @__PURE__ */ jsx51(Link10, { href: `/customer-stories/${customerStory.slug}`, children: /* @__PURE__ */ jsx51(Button5, { variant: "outline", size: "sm", mt: "8", children: formatMessage({ id: "sections.customerQuoteCard.more" }) }) })
|
|
7384
7565
|
] })
|
|
7385
7566
|
] });
|
|
7386
7567
|
};
|
|
@@ -7389,14 +7570,14 @@ var CustomerQuoteCard = ({
|
|
|
7389
7570
|
var CustomerQuoteCard_default = CustomerQuoteCard;
|
|
7390
7571
|
|
|
7391
7572
|
// src/components/LogoCard/LogoCard.tsx
|
|
7392
|
-
import { Box as
|
|
7393
|
-
import
|
|
7394
|
-
import
|
|
7395
|
-
import { Fragment as Fragment26, jsx as
|
|
7573
|
+
import { Box as Box40, Container as Container9, Flex as Flex27 } from "boemly";
|
|
7574
|
+
import Image31 from "next/image.js";
|
|
7575
|
+
import Link11 from "next/link.js";
|
|
7576
|
+
import { Fragment as Fragment26, jsx as jsx52 } from "react/jsx-runtime";
|
|
7396
7577
|
var LogoCard = ({ customerStory }) => {
|
|
7397
7578
|
if (customerStory.cardImage) {
|
|
7398
|
-
return /* @__PURE__ */
|
|
7399
|
-
|
|
7579
|
+
return /* @__PURE__ */ jsx52(Container9, { height: "full", backgroundColor: "primary.50", children: /* @__PURE__ */ jsx52(Flex27, { justifyContent: "center", height: "full", padding: "4", children: /* @__PURE__ */ jsx52(Box40, { position: "relative", height: "12", width: "36", marginY: "auto", children: /* @__PURE__ */ jsx52(Link11, { href: `/customer-stories/${customerStory.slug}`, children: /* @__PURE__ */ jsx52(
|
|
7580
|
+
Image31,
|
|
7400
7581
|
{
|
|
7401
7582
|
src: strapiMediaUrl_default(customerStory.cardImage.img, "medium"),
|
|
7402
7583
|
alt: customerStory.cardImage.alt,
|
|
@@ -7407,29 +7588,29 @@ var LogoCard = ({ customerStory }) => {
|
|
|
7407
7588
|
}
|
|
7408
7589
|
) }) }) }) });
|
|
7409
7590
|
}
|
|
7410
|
-
return /* @__PURE__ */
|
|
7591
|
+
return /* @__PURE__ */ jsx52(Fragment26, {});
|
|
7411
7592
|
};
|
|
7412
7593
|
|
|
7413
7594
|
// src/components/LogoCard/index.ts
|
|
7414
7595
|
var LogoCard_default = LogoCard;
|
|
7415
7596
|
|
|
7416
7597
|
// src/slices/CustomerStories/CustomerStories.tsx
|
|
7417
|
-
import { jsx as
|
|
7598
|
+
import { jsx as jsx53, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7418
7599
|
var CustomerStories = ({
|
|
7419
7600
|
slice,
|
|
7420
7601
|
customerStories
|
|
7421
7602
|
}) => {
|
|
7422
|
-
return /* @__PURE__ */
|
|
7603
|
+
return /* @__PURE__ */ jsx53(DefaultSectionContainer29, { children: /* @__PURE__ */ jsx53(Wrapper32, { children: /* @__PURE__ */ jsx53(SimpleGrid17, { columns: [1, null, null, 2, 3], gap: "6", children: slice.customer_stories.map((customerStoryRef, index) => {
|
|
7423
7604
|
const customerStory = customerStories.find(
|
|
7424
7605
|
(cs) => cs.attributes.slug === customerStoryRef.attributes.slug
|
|
7425
7606
|
);
|
|
7426
7607
|
if (!customerStory) {
|
|
7427
7608
|
return null;
|
|
7428
7609
|
}
|
|
7429
|
-
return /* @__PURE__ */
|
|
7430
|
-
customerStoryRef.attributes.variant === "customerCard" && /* @__PURE__ */
|
|
7431
|
-
customerStoryRef.attributes.variant === "quoteCard" && /* @__PURE__ */
|
|
7432
|
-
customerStoryRef.attributes.variant === "logoCard" && /* @__PURE__ */
|
|
7610
|
+
return /* @__PURE__ */ jsxs45(Box41, { children: [
|
|
7611
|
+
customerStoryRef.attributes.variant === "customerCard" && /* @__PURE__ */ jsx53(CustomerCard_default, { customerStory: customerStory.attributes }),
|
|
7612
|
+
customerStoryRef.attributes.variant === "quoteCard" && /* @__PURE__ */ jsx53(CustomerQuoteCard_default, { customerStory: customerStory.attributes }),
|
|
7613
|
+
customerStoryRef.attributes.variant === "logoCard" && /* @__PURE__ */ jsx53(LogoCard_default, { customerStory: customerStory.attributes })
|
|
7433
7614
|
] }, `${customerStoryRef.id}-${index}`);
|
|
7434
7615
|
}) }) }) });
|
|
7435
7616
|
};
|
|
@@ -7438,28 +7619,28 @@ var CustomerStories = ({
|
|
|
7438
7619
|
var CustomerStories_default = CustomerStories;
|
|
7439
7620
|
|
|
7440
7621
|
// src/slices/Comparison/Comparison.tsx
|
|
7441
|
-
import { useContext as
|
|
7622
|
+
import { useContext as useContext23 } from "react";
|
|
7442
7623
|
import {
|
|
7443
7624
|
Container as Container10,
|
|
7444
|
-
DefaultSectionContainer as
|
|
7625
|
+
DefaultSectionContainer as DefaultSectionContainer30,
|
|
7445
7626
|
DefaultSectionHeader as DefaultSectionHeader21,
|
|
7446
|
-
Wrapper as
|
|
7447
|
-
Text as
|
|
7448
|
-
Flex as
|
|
7449
|
-
Box as
|
|
7627
|
+
Wrapper as Wrapper33,
|
|
7628
|
+
Text as Text25,
|
|
7629
|
+
Flex as Flex28,
|
|
7630
|
+
Box as Box43,
|
|
7450
7631
|
Spacer as Spacer13,
|
|
7451
7632
|
Separator as Separator5,
|
|
7452
|
-
Heading as
|
|
7633
|
+
Heading as Heading20,
|
|
7453
7634
|
Badge as Badge2,
|
|
7454
|
-
SimpleGrid as
|
|
7635
|
+
SimpleGrid as SimpleGrid18
|
|
7455
7636
|
} from "boemly";
|
|
7456
|
-
import
|
|
7637
|
+
import Image32 from "next/image.js";
|
|
7457
7638
|
import { CaretRightIcon as CaretRightIcon7 } from "@phosphor-icons/react";
|
|
7458
7639
|
|
|
7459
7640
|
// src/slices/Comparison/Icon.tsx
|
|
7460
7641
|
import { CheckIcon as CheckIcon2, XIcon } from "@phosphor-icons/react";
|
|
7461
|
-
import { Box as
|
|
7462
|
-
import { jsx as
|
|
7642
|
+
import { Box as Box42 } from "boemly";
|
|
7643
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
7463
7644
|
var BULLET_POINT_VARIANTS = {
|
|
7464
7645
|
gray: { bulletPointColor: "black" },
|
|
7465
7646
|
green: { bulletPointColor: "white" },
|
|
@@ -7468,12 +7649,12 @@ var BULLET_POINT_VARIANTS = {
|
|
|
7468
7649
|
var Icon = ({ variant, icon }) => {
|
|
7469
7650
|
switch (icon) {
|
|
7470
7651
|
case "check":
|
|
7471
|
-
return /* @__PURE__ */
|
|
7652
|
+
return /* @__PURE__ */ jsx54(CheckIcon2, { size: 20, color: "var(--boemly-colors-primary-500)" });
|
|
7472
7653
|
case "cross":
|
|
7473
|
-
return /* @__PURE__ */
|
|
7654
|
+
return /* @__PURE__ */ jsx54(XIcon, { size: 20, color: "var(--boemly-colors-red-500)" });
|
|
7474
7655
|
default:
|
|
7475
|
-
return /* @__PURE__ */
|
|
7476
|
-
|
|
7656
|
+
return /* @__PURE__ */ jsx54(
|
|
7657
|
+
Box42,
|
|
7477
7658
|
{
|
|
7478
7659
|
"data-testid": "bullet-point-box",
|
|
7479
7660
|
borderRadius: "full",
|
|
@@ -7487,7 +7668,7 @@ var Icon = ({ variant, icon }) => {
|
|
|
7487
7668
|
};
|
|
7488
7669
|
|
|
7489
7670
|
// src/slices/Comparison/Comparison.tsx
|
|
7490
|
-
import { Fragment as Fragment27, jsx as
|
|
7671
|
+
import { Fragment as Fragment27, jsx as jsx55, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7491
7672
|
var VARIANTS5 = {
|
|
7492
7673
|
gray: {
|
|
7493
7674
|
backgroundColor: "primary.50",
|
|
@@ -7514,10 +7695,10 @@ var VARIANTS5 = {
|
|
|
7514
7695
|
var Comparison = ({
|
|
7515
7696
|
slice
|
|
7516
7697
|
}) => {
|
|
7517
|
-
const { formatMessage } =
|
|
7518
|
-
return /* @__PURE__ */
|
|
7519
|
-
slice.title ? /* @__PURE__ */
|
|
7520
|
-
/* @__PURE__ */
|
|
7698
|
+
const { formatMessage } = useContext23(IntlContext);
|
|
7699
|
+
return /* @__PURE__ */ jsx55(DefaultSectionContainer30, { children: /* @__PURE__ */ jsxs46(Wrapper33, { children: [
|
|
7700
|
+
slice.title ? /* @__PURE__ */ jsxs46(Fragment27, { children: [
|
|
7701
|
+
/* @__PURE__ */ jsx55(Flex28, { alignItems: "center", flexDirection: "column", children: /* @__PURE__ */ jsx55(
|
|
7521
7702
|
DefaultSectionHeader21,
|
|
7522
7703
|
{
|
|
7523
7704
|
tagline: slice.tagline,
|
|
@@ -7531,14 +7712,14 @@ var Comparison = ({
|
|
|
7531
7712
|
taglineProps: { textAlign: "center", maxWidth: "3xl" }
|
|
7532
7713
|
}
|
|
7533
7714
|
) }),
|
|
7534
|
-
/* @__PURE__ */
|
|
7535
|
-
] }) : /* @__PURE__ */
|
|
7536
|
-
/* @__PURE__ */
|
|
7537
|
-
|
|
7715
|
+
/* @__PURE__ */ jsx55(Spacer13, { height: "12" })
|
|
7716
|
+
] }) : /* @__PURE__ */ jsx55(Fragment27, {}),
|
|
7717
|
+
/* @__PURE__ */ jsx55(
|
|
7718
|
+
SimpleGrid18,
|
|
7538
7719
|
{
|
|
7539
7720
|
columns: [1, null, null, null, slice.comparisonCards.length],
|
|
7540
7721
|
gap: "4",
|
|
7541
|
-
children: slice.comparisonCards.map((comparisonCard) => /* @__PURE__ */
|
|
7722
|
+
children: slice.comparisonCards.map((comparisonCard) => /* @__PURE__ */ jsxs46(
|
|
7542
7723
|
Container10,
|
|
7543
7724
|
{
|
|
7544
7725
|
boxShadow: comparisonCard.variant === "green" ? "xl" : "base",
|
|
@@ -7549,8 +7730,8 @@ var Comparison = ({
|
|
|
7549
7730
|
p: "3",
|
|
7550
7731
|
backgroundColor: VARIANTS5[comparisonCard.variant].backgroundColor,
|
|
7551
7732
|
children: [
|
|
7552
|
-
comparisonCard.variant === "green" ? /* @__PURE__ */
|
|
7553
|
-
|
|
7733
|
+
comparisonCard.variant === "green" ? /* @__PURE__ */ jsx55(
|
|
7734
|
+
Box43,
|
|
7554
7735
|
{
|
|
7555
7736
|
position: "absolute",
|
|
7556
7737
|
left: "0",
|
|
@@ -7558,8 +7739,8 @@ var Comparison = ({
|
|
|
7558
7739
|
width: "full",
|
|
7559
7740
|
height: "full",
|
|
7560
7741
|
zIndex: "-1",
|
|
7561
|
-
children: /* @__PURE__ */
|
|
7562
|
-
|
|
7742
|
+
children: /* @__PURE__ */ jsx55(
|
|
7743
|
+
Image32,
|
|
7563
7744
|
{
|
|
7564
7745
|
src: `${CDN_URI}/assets/v3/strapi-slices/shapes-comparison.svg`,
|
|
7565
7746
|
alt: formatMessage({
|
|
@@ -7573,10 +7754,10 @@ var Comparison = ({
|
|
|
7573
7754
|
}
|
|
7574
7755
|
)
|
|
7575
7756
|
}
|
|
7576
|
-
) : /* @__PURE__ */
|
|
7577
|
-
/* @__PURE__ */
|
|
7578
|
-
comparisonCard.image && /* @__PURE__ */
|
|
7579
|
-
|
|
7757
|
+
) : /* @__PURE__ */ jsx55(Fragment27, {}),
|
|
7758
|
+
/* @__PURE__ */ jsxs46(Flex28, { flexDir: "column", gap: "4", children: [
|
|
7759
|
+
comparisonCard.image && /* @__PURE__ */ jsx55(Box43, { position: "relative", height: "7", width: "100%", children: /* @__PURE__ */ jsx55(
|
|
7760
|
+
Image32,
|
|
7580
7761
|
{
|
|
7581
7762
|
src: strapiMediaUrl_default(comparisonCard.image.img, "small"),
|
|
7582
7763
|
alt: comparisonCard.image.alt,
|
|
@@ -7586,9 +7767,9 @@ var Comparison = ({
|
|
|
7586
7767
|
}
|
|
7587
7768
|
}
|
|
7588
7769
|
) }),
|
|
7589
|
-
/* @__PURE__ */
|
|
7590
|
-
/* @__PURE__ */
|
|
7591
|
-
|
|
7770
|
+
/* @__PURE__ */ jsxs46(Flex28, { gap: "2", alignItems: "center", flexWrap: "wrap", children: [
|
|
7771
|
+
/* @__PURE__ */ jsx55(
|
|
7772
|
+
Heading20,
|
|
7592
7773
|
{
|
|
7593
7774
|
size: "xl",
|
|
7594
7775
|
color: VARIANTS5[comparisonCard.variant].textColor,
|
|
@@ -7596,7 +7777,7 @@ var Comparison = ({
|
|
|
7596
7777
|
children: comparisonCard.title
|
|
7597
7778
|
}
|
|
7598
7779
|
),
|
|
7599
|
-
comparisonCard.badge && /* @__PURE__ */
|
|
7780
|
+
comparisonCard.badge && /* @__PURE__ */ jsx55(
|
|
7600
7781
|
Badge2,
|
|
7601
7782
|
{
|
|
7602
7783
|
backgroundColor: "green.100",
|
|
@@ -7607,29 +7788,29 @@ var Comparison = ({
|
|
|
7607
7788
|
)
|
|
7608
7789
|
] })
|
|
7609
7790
|
] }),
|
|
7610
|
-
/* @__PURE__ */
|
|
7611
|
-
/* @__PURE__ */
|
|
7612
|
-
|
|
7791
|
+
/* @__PURE__ */ jsx55(Spacer13, { height: "4" }),
|
|
7792
|
+
/* @__PURE__ */ jsx55(
|
|
7793
|
+
Text25,
|
|
7613
7794
|
{
|
|
7614
7795
|
size: "smRegularNormal",
|
|
7615
7796
|
color: VARIANTS5[comparisonCard.variant].subTitleColor,
|
|
7616
7797
|
children: comparisonCard.subTitle
|
|
7617
7798
|
}
|
|
7618
7799
|
),
|
|
7619
|
-
comparisonCard.factTitle || comparisonCard.factSubtitle || comparisonCard.button ? /* @__PURE__ */
|
|
7620
|
-
/* @__PURE__ */
|
|
7621
|
-
/* @__PURE__ */
|
|
7622
|
-
comparisonCard.factTitle && /* @__PURE__ */
|
|
7623
|
-
/* @__PURE__ */
|
|
7624
|
-
|
|
7800
|
+
comparisonCard.factTitle || comparisonCard.factSubtitle || comparisonCard.button ? /* @__PURE__ */ jsxs46(Fragment27, { children: [
|
|
7801
|
+
/* @__PURE__ */ jsx55(Spacer13, { height: "6" }),
|
|
7802
|
+
/* @__PURE__ */ jsxs46(Flex28, { flexDir: "column", children: [
|
|
7803
|
+
comparisonCard.factTitle && /* @__PURE__ */ jsxs46(Fragment27, { children: [
|
|
7804
|
+
/* @__PURE__ */ jsx55(
|
|
7805
|
+
Text25,
|
|
7625
7806
|
{
|
|
7626
7807
|
color: VARIANTS5[comparisonCard.variant].factColor,
|
|
7627
7808
|
size: "lgMonoNormal",
|
|
7628
7809
|
children: comparisonCard.factTitle
|
|
7629
7810
|
}
|
|
7630
7811
|
),
|
|
7631
|
-
/* @__PURE__ */
|
|
7632
|
-
|
|
7812
|
+
/* @__PURE__ */ jsx55(
|
|
7813
|
+
Text25,
|
|
7633
7814
|
{
|
|
7634
7815
|
color: VARIANTS5[comparisonCard.variant].factColor,
|
|
7635
7816
|
size: "smLowNormal",
|
|
@@ -7637,47 +7818,47 @@ var Comparison = ({
|
|
|
7637
7818
|
}
|
|
7638
7819
|
)
|
|
7639
7820
|
] }),
|
|
7640
|
-
comparisonCard.button && /* @__PURE__ */
|
|
7821
|
+
comparisonCard.button && /* @__PURE__ */ jsx55(
|
|
7641
7822
|
StrapiLinkButton_default,
|
|
7642
7823
|
{
|
|
7643
7824
|
mt: "6",
|
|
7644
7825
|
link: comparisonCard.button,
|
|
7645
7826
|
size: "md",
|
|
7646
7827
|
variant: "outline",
|
|
7647
|
-
rightIcon: /* @__PURE__ */
|
|
7828
|
+
rightIcon: /* @__PURE__ */ jsx55(CaretRightIcon7, { size: 16, weight: "bold" }),
|
|
7648
7829
|
component: "Comparison"
|
|
7649
7830
|
}
|
|
7650
7831
|
)
|
|
7651
7832
|
] })
|
|
7652
|
-
] }) : /* @__PURE__ */
|
|
7653
|
-
/* @__PURE__ */
|
|
7654
|
-
/* @__PURE__ */
|
|
7833
|
+
] }) : /* @__PURE__ */ jsx55(Fragment27, {}),
|
|
7834
|
+
/* @__PURE__ */ jsx55(Fragment27, { children: comparisonCard.lists.map((list) => /* @__PURE__ */ jsxs46(Box43, { children: [
|
|
7835
|
+
/* @__PURE__ */ jsx55(
|
|
7655
7836
|
Separator5,
|
|
7656
7837
|
{
|
|
7657
7838
|
my: "8",
|
|
7658
7839
|
color: VARIANTS5[comparisonCard.variant].dividerColor
|
|
7659
7840
|
}
|
|
7660
7841
|
),
|
|
7661
|
-
/* @__PURE__ */
|
|
7662
|
-
|
|
7842
|
+
/* @__PURE__ */ jsx55(
|
|
7843
|
+
Text25,
|
|
7663
7844
|
{
|
|
7664
7845
|
size: "smLowBold",
|
|
7665
7846
|
color: VARIANTS5[comparisonCard.variant].textColor,
|
|
7666
7847
|
children: list.title
|
|
7667
7848
|
}
|
|
7668
7849
|
),
|
|
7669
|
-
/* @__PURE__ */
|
|
7670
|
-
/* @__PURE__ */
|
|
7671
|
-
/* @__PURE__ */
|
|
7672
|
-
/* @__PURE__ */
|
|
7850
|
+
/* @__PURE__ */ jsx55(Fragment27, { children: list.items.map((item) => /* @__PURE__ */ jsxs46(Box43, { children: [
|
|
7851
|
+
/* @__PURE__ */ jsx55(Spacer13, { height: "4" }),
|
|
7852
|
+
/* @__PURE__ */ jsxs46(Flex28, { gap: "4", alignItems: "center", children: [
|
|
7853
|
+
/* @__PURE__ */ jsx55(Box43, { children: /* @__PURE__ */ jsx55(
|
|
7673
7854
|
Icon,
|
|
7674
7855
|
{
|
|
7675
7856
|
variant: comparisonCard.variant,
|
|
7676
7857
|
icon: item.icon
|
|
7677
7858
|
}
|
|
7678
7859
|
) }),
|
|
7679
|
-
/* @__PURE__ */
|
|
7680
|
-
|
|
7860
|
+
/* @__PURE__ */ jsx55(
|
|
7861
|
+
Text25,
|
|
7681
7862
|
{
|
|
7682
7863
|
size: "smLowNormal",
|
|
7683
7864
|
color: VARIANTS5[comparisonCard.variant].textColor,
|
|
@@ -7702,15 +7883,15 @@ var Comparison_default = Comparison;
|
|
|
7702
7883
|
// src/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.tsx
|
|
7703
7884
|
import { useEffect as useEffect6, useState as useState9 } from "react";
|
|
7704
7885
|
import {
|
|
7705
|
-
DefaultSectionContainer as
|
|
7706
|
-
Flex as
|
|
7707
|
-
Heading as
|
|
7886
|
+
DefaultSectionContainer as DefaultSectionContainer31,
|
|
7887
|
+
Flex as Flex29,
|
|
7888
|
+
Heading as Heading21,
|
|
7708
7889
|
Spacer as Spacer14,
|
|
7709
|
-
Box as
|
|
7890
|
+
Box as Box44,
|
|
7710
7891
|
useMediaQuery as useMediaQuery7,
|
|
7711
7892
|
useToken as useToken10
|
|
7712
7893
|
} from "boemly";
|
|
7713
|
-
import
|
|
7894
|
+
import Image33 from "next/image.js";
|
|
7714
7895
|
import useEmblaCarousel from "embla-carousel-react";
|
|
7715
7896
|
import { useWindowSize as useWindowSize4 } from "@reactuses/core";
|
|
7716
7897
|
import AutoScroll from "embla-carousel-auto-scroll";
|
|
@@ -7749,7 +7930,7 @@ var LogoGrid = styled5(motion5.div)`
|
|
|
7749
7930
|
`;
|
|
7750
7931
|
|
|
7751
7932
|
// src/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.tsx
|
|
7752
|
-
import { Fragment as Fragment28, jsx as
|
|
7933
|
+
import { Fragment as Fragment28, jsx as jsx56, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7753
7934
|
var CarouselMarqueeBannerContent = ({
|
|
7754
7935
|
slice
|
|
7755
7936
|
}) => {
|
|
@@ -7778,20 +7959,20 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7778
7959
|
);
|
|
7779
7960
|
const renderLogos = () => {
|
|
7780
7961
|
if (!hasEnoughLogosForLoop) {
|
|
7781
|
-
return /* @__PURE__ */
|
|
7782
|
-
|
|
7962
|
+
return /* @__PURE__ */ jsx56(LogoGrid, { children: slice.logos.map((logo, index) => /* @__PURE__ */ jsx56(
|
|
7963
|
+
Box44,
|
|
7783
7964
|
{
|
|
7784
7965
|
flexShrink: 0,
|
|
7785
7966
|
transform: "translate3d(0, 0, 0)",
|
|
7786
|
-
children: /* @__PURE__ */
|
|
7787
|
-
|
|
7967
|
+
children: /* @__PURE__ */ jsx56(
|
|
7968
|
+
Flex29,
|
|
7788
7969
|
{
|
|
7789
7970
|
height: "full",
|
|
7790
7971
|
width: "full",
|
|
7791
7972
|
justifyContent: "center",
|
|
7792
7973
|
alignItems: "center",
|
|
7793
|
-
children: /* @__PURE__ */
|
|
7794
|
-
|
|
7974
|
+
children: /* @__PURE__ */ jsx56(
|
|
7975
|
+
Box44,
|
|
7795
7976
|
{
|
|
7796
7977
|
position: "relative",
|
|
7797
7978
|
height: isMobile ? "16" : "36",
|
|
@@ -7800,8 +7981,8 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7800
7981
|
logo.img.data.attributes.width,
|
|
7801
7982
|
logo.img.data.attributes.height
|
|
7802
7983
|
)})`,
|
|
7803
|
-
children: /* @__PURE__ */
|
|
7804
|
-
|
|
7984
|
+
children: /* @__PURE__ */ jsx56(
|
|
7985
|
+
Image33,
|
|
7805
7986
|
{
|
|
7806
7987
|
src: strapiMediaUrl_default(logo.img, "large"),
|
|
7807
7988
|
alt: logo.alt,
|
|
@@ -7820,20 +8001,20 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7820
8001
|
`${logo.id}-${index}`
|
|
7821
8002
|
)) });
|
|
7822
8003
|
}
|
|
7823
|
-
return /* @__PURE__ */
|
|
7824
|
-
|
|
8004
|
+
return /* @__PURE__ */ jsx56(Box44, { width: "full", overflow: "hidden", ref: emblaRef, cursor: "pointer", children: /* @__PURE__ */ jsx56(CarouselInnerContainer2, { logoCount: slice.logos.length, children: logosToRender.map((logo, index) => /* @__PURE__ */ jsx56(
|
|
8005
|
+
Box44,
|
|
7825
8006
|
{
|
|
7826
8007
|
flexShrink: 0,
|
|
7827
8008
|
transform: "translate3d(0, 0, 0)",
|
|
7828
|
-
children: /* @__PURE__ */
|
|
7829
|
-
|
|
8009
|
+
children: /* @__PURE__ */ jsx56(
|
|
8010
|
+
Flex29,
|
|
7830
8011
|
{
|
|
7831
8012
|
height: "full",
|
|
7832
8013
|
width: "full",
|
|
7833
8014
|
justifyContent: "center",
|
|
7834
8015
|
alignItems: "center",
|
|
7835
|
-
children: /* @__PURE__ */
|
|
7836
|
-
|
|
8016
|
+
children: /* @__PURE__ */ jsx56(
|
|
8017
|
+
Box44,
|
|
7837
8018
|
{
|
|
7838
8019
|
position: "relative",
|
|
7839
8020
|
height: isMobile ? "16" : "36",
|
|
@@ -7841,8 +8022,8 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7841
8022
|
logo.img.data.attributes.width,
|
|
7842
8023
|
logo.img.data.attributes.height
|
|
7843
8024
|
)})`,
|
|
7844
|
-
children: /* @__PURE__ */
|
|
7845
|
-
|
|
8025
|
+
children: /* @__PURE__ */ jsx56(
|
|
8026
|
+
Image33,
|
|
7846
8027
|
{
|
|
7847
8028
|
src: strapiMediaUrl_default(logo.img, "large"),
|
|
7848
8029
|
alt: logo.alt,
|
|
@@ -7861,10 +8042,10 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7861
8042
|
`${logo.id}-${index}`
|
|
7862
8043
|
)) }) });
|
|
7863
8044
|
};
|
|
7864
|
-
return /* @__PURE__ */
|
|
7865
|
-
slice.title ? /* @__PURE__ */
|
|
7866
|
-
/* @__PURE__ */
|
|
7867
|
-
/* @__PURE__ */
|
|
8045
|
+
return /* @__PURE__ */ jsx56(DefaultSectionContainer31, { backgroundColor: primary50, children: /* @__PURE__ */ jsxs47(Fragment28, { children: [
|
|
8046
|
+
slice.title ? /* @__PURE__ */ jsxs47(Fragment28, { children: [
|
|
8047
|
+
/* @__PURE__ */ jsx56(Flex29, { alignItems: "center", flexDirection: "column", children: /* @__PURE__ */ jsx56(Heading21, { size: "md", fontWeight: "500", children: slice.title }) }),
|
|
8048
|
+
/* @__PURE__ */ jsx56(Spacer14, { height: "12", minHeight: "12" })
|
|
7868
8049
|
] }) : null,
|
|
7869
8050
|
renderLogos()
|
|
7870
8051
|
] }) });
|
|
@@ -7877,46 +8058,46 @@ var CarouselMarqueeBanner = ({
|
|
|
7877
8058
|
setShowChild(true);
|
|
7878
8059
|
}, []);
|
|
7879
8060
|
if (!showChild) {
|
|
7880
|
-
return /* @__PURE__ */
|
|
8061
|
+
return /* @__PURE__ */ jsx56("div", {});
|
|
7881
8062
|
}
|
|
7882
|
-
return /* @__PURE__ */
|
|
8063
|
+
return /* @__PURE__ */ jsx56(CarouselMarqueeBannerContent, { slice });
|
|
7883
8064
|
};
|
|
7884
8065
|
|
|
7885
8066
|
// src/slices/CarouselMarqueeBanner/index.ts
|
|
7886
8067
|
var CarouselMarqueeBanner_default = CarouselMarqueeBanner;
|
|
7887
8068
|
|
|
7888
8069
|
// src/slices/Timeline/Timeline.tsx
|
|
7889
|
-
import { useContext as
|
|
8070
|
+
import { useContext as useContext24 } from "react";
|
|
7890
8071
|
import {
|
|
7891
8072
|
Button as Button6,
|
|
7892
|
-
Box as
|
|
8073
|
+
Box as Box45,
|
|
7893
8074
|
Container as Container11,
|
|
7894
|
-
DefaultSectionContainer as
|
|
8075
|
+
DefaultSectionContainer as DefaultSectionContainer32,
|
|
7895
8076
|
DefaultSectionHeader as DefaultSectionHeader22,
|
|
7896
|
-
Flex as
|
|
7897
|
-
Heading as
|
|
8077
|
+
Flex as Flex30,
|
|
8078
|
+
Heading as Heading22,
|
|
7898
8079
|
RichText as RichText6,
|
|
7899
|
-
SimpleGrid as
|
|
8080
|
+
SimpleGrid as SimpleGrid19,
|
|
7900
8081
|
Spacer as Spacer15,
|
|
7901
|
-
Text as
|
|
7902
|
-
Wrapper as
|
|
8082
|
+
Text as Text26,
|
|
8083
|
+
Wrapper as Wrapper34,
|
|
7903
8084
|
useMediaQuery as useMediaQuery8,
|
|
7904
|
-
BoemlyTag as
|
|
8085
|
+
BoemlyTag as BoemlyTag6
|
|
7905
8086
|
} from "boemly";
|
|
7906
|
-
import
|
|
8087
|
+
import Image34 from "next/image.js";
|
|
7907
8088
|
import { useState as useState10 } from "react";
|
|
7908
|
-
import { Fragment as Fragment29, jsx as
|
|
8089
|
+
import { Fragment as Fragment29, jsx as jsx57, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7909
8090
|
var Timeline = ({ slice }) => {
|
|
7910
|
-
const { formatMessage } =
|
|
8091
|
+
const { formatMessage } = useContext24(IntlContext);
|
|
7911
8092
|
const [visibleItems, setVisibleItems] = useState10(3);
|
|
7912
8093
|
const [mobile] = useMediaQuery8([BREAKPOINT_MD_QUERY]);
|
|
7913
8094
|
const [isOpen, setIsOpen] = useState10(false);
|
|
7914
8095
|
const showMoreItems = () => {
|
|
7915
8096
|
setVisibleItems((prevVisibleItems) => prevVisibleItems + 3);
|
|
7916
8097
|
};
|
|
7917
|
-
return /* @__PURE__ */
|
|
7918
|
-
/* @__PURE__ */
|
|
7919
|
-
|
|
8098
|
+
return /* @__PURE__ */ jsx57(DefaultSectionContainer32, { children: /* @__PURE__ */ jsx57(Wrapper34, { children: /* @__PURE__ */ jsxs48(Flex30, { flexDir: ["column", null, "row"], children: [
|
|
8099
|
+
/* @__PURE__ */ jsxs48(
|
|
8100
|
+
Box45,
|
|
7920
8101
|
{
|
|
7921
8102
|
width: ["full", null, "50%"],
|
|
7922
8103
|
position: [null, null, "sticky"],
|
|
@@ -7924,7 +8105,7 @@ var Timeline = ({ slice }) => {
|
|
|
7924
8105
|
height: "full",
|
|
7925
8106
|
paddingRight: [null, null, "28"],
|
|
7926
8107
|
children: [
|
|
7927
|
-
/* @__PURE__ */
|
|
8108
|
+
/* @__PURE__ */ jsx57(
|
|
7928
8109
|
DefaultSectionHeader22,
|
|
7929
8110
|
{
|
|
7930
8111
|
tagline: slice.tagline,
|
|
@@ -7932,10 +8113,10 @@ var Timeline = ({ slice }) => {
|
|
|
7932
8113
|
text: slice.text
|
|
7933
8114
|
}
|
|
7934
8115
|
),
|
|
7935
|
-
mobile && /* @__PURE__ */
|
|
7936
|
-
/* @__PURE__ */
|
|
7937
|
-
/* @__PURE__ */
|
|
7938
|
-
|
|
8116
|
+
mobile && /* @__PURE__ */ jsxs48(Fragment29, { children: [
|
|
8117
|
+
/* @__PURE__ */ jsx57(Spacer15, { height: "10" }),
|
|
8118
|
+
/* @__PURE__ */ jsx57(Flex30, { justifyContent: "center", children: /* @__PURE__ */ jsx57(
|
|
8119
|
+
Box45,
|
|
7939
8120
|
{
|
|
7940
8121
|
borderRadius: "full",
|
|
7941
8122
|
width: "3",
|
|
@@ -7944,8 +8125,8 @@ var Timeline = ({ slice }) => {
|
|
|
7944
8125
|
backgroundColor: "gray"
|
|
7945
8126
|
}
|
|
7946
8127
|
) }),
|
|
7947
|
-
/* @__PURE__ */
|
|
7948
|
-
|
|
8128
|
+
/* @__PURE__ */ jsx57(
|
|
8129
|
+
Box45,
|
|
7949
8130
|
{
|
|
7950
8131
|
overflow: "visible",
|
|
7951
8132
|
borderRight: "dashed 1px var(--boemly-colors-gray-200)",
|
|
@@ -7958,8 +8139,8 @@ var Timeline = ({ slice }) => {
|
|
|
7958
8139
|
]
|
|
7959
8140
|
}
|
|
7960
8141
|
),
|
|
7961
|
-
/* @__PURE__ */
|
|
7962
|
-
|
|
8142
|
+
/* @__PURE__ */ jsxs48(
|
|
8143
|
+
Box45,
|
|
7963
8144
|
{
|
|
7964
8145
|
overflow: "visible",
|
|
7965
8146
|
maxWidth: ["full", null, "50%"],
|
|
@@ -7971,8 +8152,8 @@ var Timeline = ({ slice }) => {
|
|
|
7971
8152
|
position: "relative",
|
|
7972
8153
|
width: "full",
|
|
7973
8154
|
children: [
|
|
7974
|
-
/* @__PURE__ */
|
|
7975
|
-
|
|
8155
|
+
/* @__PURE__ */ jsx57(Flex30, { flexDir: "column", overflow: "visible", gap: ["8", null, "8"], children: slice.timelineItems.slice(0, visibleItems).map((item, index) => /* @__PURE__ */ jsxs48(
|
|
8156
|
+
SimpleGrid19,
|
|
7976
8157
|
{
|
|
7977
8158
|
gap: ["4", null, "4"],
|
|
7978
8159
|
columns: [1, null, 2],
|
|
@@ -7980,28 +8161,28 @@ var Timeline = ({ slice }) => {
|
|
|
7980
8161
|
gridTemplateColumns: [null, null, "1fr 16fr"],
|
|
7981
8162
|
position: "relative",
|
|
7982
8163
|
children: [
|
|
7983
|
-
/* @__PURE__ */
|
|
7984
|
-
|
|
8164
|
+
/* @__PURE__ */ jsx57(
|
|
8165
|
+
Flex30,
|
|
7985
8166
|
{
|
|
7986
8167
|
alignItems: "center",
|
|
7987
8168
|
justifyContent: ["center", null, "flex-start"],
|
|
7988
|
-
children: /* @__PURE__ */
|
|
7989
|
-
|
|
8169
|
+
children: /* @__PURE__ */ jsxs48(
|
|
8170
|
+
Box45,
|
|
7990
8171
|
{
|
|
7991
8172
|
position: "absolute",
|
|
7992
8173
|
transform: [null, null, "translateX(-50%)"],
|
|
7993
8174
|
backgroundColor: "white",
|
|
7994
8175
|
children: [
|
|
7995
|
-
item.icon ? /* @__PURE__ */
|
|
7996
|
-
|
|
8176
|
+
item.icon ? /* @__PURE__ */ jsx57(Box45, { padding: "2", children: /* @__PURE__ */ jsx57(
|
|
8177
|
+
Image34,
|
|
7997
8178
|
{
|
|
7998
8179
|
src: strapiMediaUrl_default(item.icon.img, "xSmall"),
|
|
7999
8180
|
alt: item.icon.alt,
|
|
8000
8181
|
width: "21",
|
|
8001
8182
|
height: "21"
|
|
8002
8183
|
}
|
|
8003
|
-
) }) : /* @__PURE__ */
|
|
8004
|
-
|
|
8184
|
+
) }) : /* @__PURE__ */ jsx57(Box45, { padding: "2", children: /* @__PURE__ */ jsx57(
|
|
8185
|
+
Box45,
|
|
8005
8186
|
{
|
|
8006
8187
|
borderRadius: "full",
|
|
8007
8188
|
backgroundColor: "primary.800",
|
|
@@ -8009,8 +8190,8 @@ var Timeline = ({ slice }) => {
|
|
|
8009
8190
|
height: "2"
|
|
8010
8191
|
}
|
|
8011
8192
|
) }),
|
|
8012
|
-
mobile && /* @__PURE__ */
|
|
8013
|
-
|
|
8193
|
+
mobile && /* @__PURE__ */ jsx57(
|
|
8194
|
+
Box45,
|
|
8014
8195
|
{
|
|
8015
8196
|
overflow: "visible",
|
|
8016
8197
|
borderRight: "dashed 1px var(--boemly-colors-gray-200)",
|
|
@@ -8024,7 +8205,7 @@ var Timeline = ({ slice }) => {
|
|
|
8024
8205
|
)
|
|
8025
8206
|
}
|
|
8026
8207
|
),
|
|
8027
|
-
/* @__PURE__ */
|
|
8208
|
+
/* @__PURE__ */ jsxs48(
|
|
8028
8209
|
Container11,
|
|
8029
8210
|
{
|
|
8030
8211
|
p: [null, null, null, "3"],
|
|
@@ -8032,8 +8213,8 @@ var Timeline = ({ slice }) => {
|
|
|
8032
8213
|
position: "relative",
|
|
8033
8214
|
elevation: "none",
|
|
8034
8215
|
children: [
|
|
8035
|
-
item.backgroundShapes ? /* @__PURE__ */
|
|
8036
|
-
|
|
8216
|
+
item.backgroundShapes ? /* @__PURE__ */ jsx57(
|
|
8217
|
+
Box45,
|
|
8037
8218
|
{
|
|
8038
8219
|
position: "absolute",
|
|
8039
8220
|
left: "0",
|
|
@@ -8041,8 +8222,8 @@ var Timeline = ({ slice }) => {
|
|
|
8041
8222
|
width: "full",
|
|
8042
8223
|
height: "full",
|
|
8043
8224
|
zIndex: "-1",
|
|
8044
|
-
children: /* @__PURE__ */
|
|
8045
|
-
|
|
8225
|
+
children: /* @__PURE__ */ jsx57(
|
|
8226
|
+
Image34,
|
|
8046
8227
|
{
|
|
8047
8228
|
src: `${CDN_URI}/assets/v3/strapi-slices/timeline-shapes.svg`,
|
|
8048
8229
|
alt: formatMessage({
|
|
@@ -8056,29 +8237,29 @@ var Timeline = ({ slice }) => {
|
|
|
8056
8237
|
}
|
|
8057
8238
|
)
|
|
8058
8239
|
}
|
|
8059
|
-
) : /* @__PURE__ */
|
|
8060
|
-
/* @__PURE__ */
|
|
8061
|
-
/* @__PURE__ */
|
|
8062
|
-
|
|
8240
|
+
) : /* @__PURE__ */ jsx57(Fragment29, {}),
|
|
8241
|
+
/* @__PURE__ */ jsxs48(Flex30, { flexDir: "column", children: [
|
|
8242
|
+
/* @__PURE__ */ jsxs48(
|
|
8243
|
+
Flex30,
|
|
8063
8244
|
{
|
|
8064
8245
|
alignItems: "flex-start",
|
|
8065
8246
|
justifyContent: "space-between",
|
|
8066
8247
|
children: [
|
|
8067
|
-
/* @__PURE__ */
|
|
8068
|
-
/* @__PURE__ */
|
|
8069
|
-
/* @__PURE__ */
|
|
8248
|
+
/* @__PURE__ */ jsx57(Box45, { children: item.tagline && /* @__PURE__ */ jsxs48(Fragment29, { children: [
|
|
8249
|
+
/* @__PURE__ */ jsx57(Text26, { color: "primary.800", size: "smMonoUppercase", children: item.tagline }),
|
|
8250
|
+
/* @__PURE__ */ jsx57(Spacer15, { height: "2" })
|
|
8070
8251
|
] }) }),
|
|
8071
|
-
/* @__PURE__ */
|
|
8072
|
-
item.badge && /* @__PURE__ */
|
|
8073
|
-
|
|
8252
|
+
/* @__PURE__ */ jsxs48(Flex30, { children: [
|
|
8253
|
+
item.badge && /* @__PURE__ */ jsx57(
|
|
8254
|
+
BoemlyTag6,
|
|
8074
8255
|
{
|
|
8075
8256
|
colorPalette: item.badge.variant,
|
|
8076
8257
|
borderRadius: "md",
|
|
8077
8258
|
children: item.badge.text
|
|
8078
8259
|
}
|
|
8079
8260
|
),
|
|
8080
|
-
item.logo && /* @__PURE__ */
|
|
8081
|
-
|
|
8261
|
+
item.logo && /* @__PURE__ */ jsx57(Box45, { position: "relative", height: "8", width: "16", children: /* @__PURE__ */ jsx57(
|
|
8262
|
+
Image34,
|
|
8082
8263
|
{
|
|
8083
8264
|
src: strapiMediaUrl_default(item.logo.img, "small"),
|
|
8084
8265
|
alt: item.logo.alt,
|
|
@@ -8092,8 +8273,8 @@ var Timeline = ({ slice }) => {
|
|
|
8092
8273
|
]
|
|
8093
8274
|
}
|
|
8094
8275
|
),
|
|
8095
|
-
/* @__PURE__ */
|
|
8096
|
-
|
|
8276
|
+
/* @__PURE__ */ jsx57(
|
|
8277
|
+
Heading22,
|
|
8097
8278
|
{
|
|
8098
8279
|
size: "lg",
|
|
8099
8280
|
mt: ["6", null, null, "3"],
|
|
@@ -8101,10 +8282,10 @@ var Timeline = ({ slice }) => {
|
|
|
8101
8282
|
children: item.title
|
|
8102
8283
|
}
|
|
8103
8284
|
),
|
|
8104
|
-
item.text && /* @__PURE__ */
|
|
8105
|
-
item.button && /* @__PURE__ */
|
|
8106
|
-
/* @__PURE__ */
|
|
8107
|
-
/* @__PURE__ */
|
|
8285
|
+
item.text && /* @__PURE__ */ jsx57(Box45, { mt: "3", children: /* @__PURE__ */ jsx57(RichText6, { content: item.text }) }),
|
|
8286
|
+
item.button && /* @__PURE__ */ jsxs48(Box45, { textAlign: "left", children: [
|
|
8287
|
+
/* @__PURE__ */ jsx57(Spacer15, { height: "4" }),
|
|
8288
|
+
/* @__PURE__ */ jsx57(
|
|
8108
8289
|
StrapiLinkButton_default,
|
|
8109
8290
|
{
|
|
8110
8291
|
link: item.button,
|
|
@@ -8114,16 +8295,16 @@ var Timeline = ({ slice }) => {
|
|
|
8114
8295
|
}
|
|
8115
8296
|
)
|
|
8116
8297
|
] }),
|
|
8117
|
-
item.image ? /* @__PURE__ */
|
|
8118
|
-
|
|
8298
|
+
item.image ? /* @__PURE__ */ jsx57(Fragment29, { children: /* @__PURE__ */ jsxs48(
|
|
8299
|
+
Box45,
|
|
8119
8300
|
{
|
|
8120
8301
|
position: "relative",
|
|
8121
8302
|
mt: "4",
|
|
8122
8303
|
height: ["2xs", null, null, null, "48"],
|
|
8123
8304
|
minWidth: [null, null, null, null, "50%"],
|
|
8124
8305
|
children: [
|
|
8125
|
-
/* @__PURE__ */
|
|
8126
|
-
|
|
8306
|
+
/* @__PURE__ */ jsx57(
|
|
8307
|
+
Image34,
|
|
8127
8308
|
{
|
|
8128
8309
|
src: strapiMediaUrl_default(item.image.img, "xLarge"),
|
|
8129
8310
|
alt: item.image.alt,
|
|
@@ -8136,7 +8317,7 @@ var Timeline = ({ slice }) => {
|
|
|
8136
8317
|
onClick: () => !mobile && setIsOpen(true)
|
|
8137
8318
|
}
|
|
8138
8319
|
),
|
|
8139
|
-
/* @__PURE__ */
|
|
8320
|
+
/* @__PURE__ */ jsx57(
|
|
8140
8321
|
FullScreenImage_default,
|
|
8141
8322
|
{
|
|
8142
8323
|
images: [item.image],
|
|
@@ -8146,13 +8327,13 @@ var Timeline = ({ slice }) => {
|
|
|
8146
8327
|
)
|
|
8147
8328
|
]
|
|
8148
8329
|
}
|
|
8149
|
-
) }) : /* @__PURE__ */
|
|
8330
|
+
) }) : /* @__PURE__ */ jsx57(Fragment29, {})
|
|
8150
8331
|
] })
|
|
8151
8332
|
]
|
|
8152
8333
|
}
|
|
8153
8334
|
),
|
|
8154
|
-
mobile && index + 1 < slice.timelineItems.length && /* @__PURE__ */
|
|
8155
|
-
|
|
8335
|
+
mobile && index + 1 < slice.timelineItems.length && /* @__PURE__ */ jsx57(
|
|
8336
|
+
Box45,
|
|
8156
8337
|
{
|
|
8157
8338
|
overflow: "visible",
|
|
8158
8339
|
borderRight: "dashed 1px var(--boemly-colors-gray-200)",
|
|
@@ -8165,9 +8346,9 @@ var Timeline = ({ slice }) => {
|
|
|
8165
8346
|
},
|
|
8166
8347
|
`${item.id}-${index}`
|
|
8167
8348
|
)) }),
|
|
8168
|
-
visibleItems < slice.timelineItems.length && /* @__PURE__ */
|
|
8169
|
-
/* @__PURE__ */
|
|
8170
|
-
|
|
8349
|
+
visibleItems < slice.timelineItems.length && /* @__PURE__ */ jsxs48(Fragment29, { children: [
|
|
8350
|
+
/* @__PURE__ */ jsx57(
|
|
8351
|
+
Box45,
|
|
8171
8352
|
{
|
|
8172
8353
|
width: "full",
|
|
8173
8354
|
height: ["36", null, null, "64"],
|
|
@@ -8177,14 +8358,14 @@ var Timeline = ({ slice }) => {
|
|
|
8177
8358
|
background: "linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.98) 76.54%, #FFF 100%)"
|
|
8178
8359
|
}
|
|
8179
8360
|
),
|
|
8180
|
-
/* @__PURE__ */
|
|
8181
|
-
|
|
8361
|
+
/* @__PURE__ */ jsx57(
|
|
8362
|
+
Box45,
|
|
8182
8363
|
{
|
|
8183
8364
|
bottom: "0",
|
|
8184
8365
|
textAlign: "center",
|
|
8185
8366
|
zIndex: "overlay",
|
|
8186
8367
|
position: "relative",
|
|
8187
|
-
children: /* @__PURE__ */
|
|
8368
|
+
children: /* @__PURE__ */ jsx57(
|
|
8188
8369
|
Button6,
|
|
8189
8370
|
{
|
|
8190
8371
|
variant: "outline",
|
|
@@ -8208,40 +8389,40 @@ var Timeline_default = Timeline;
|
|
|
8208
8389
|
|
|
8209
8390
|
// src/slices/Events/Events.tsx
|
|
8210
8391
|
import {
|
|
8211
|
-
DefaultSectionContainer as
|
|
8212
|
-
Wrapper as
|
|
8392
|
+
DefaultSectionContainer as DefaultSectionContainer33,
|
|
8393
|
+
Wrapper as Wrapper35,
|
|
8213
8394
|
Spacer as Spacer16,
|
|
8214
8395
|
DefaultSectionHeader as DefaultSectionHeader23,
|
|
8215
|
-
SimpleGrid as
|
|
8216
|
-
Box as
|
|
8396
|
+
SimpleGrid as SimpleGrid20,
|
|
8397
|
+
Box as Box47,
|
|
8217
8398
|
Button as Button8,
|
|
8218
|
-
Flex as
|
|
8399
|
+
Flex as Flex32,
|
|
8219
8400
|
Center as Center5,
|
|
8220
|
-
Text as
|
|
8221
|
-
BoemlyTag as
|
|
8401
|
+
Text as Text28,
|
|
8402
|
+
BoemlyTag as BoemlyTag8,
|
|
8222
8403
|
Select
|
|
8223
8404
|
} from "boemly";
|
|
8224
8405
|
import {
|
|
8225
8406
|
useCallback as useCallback6,
|
|
8226
|
-
useContext as
|
|
8407
|
+
useContext as useContext26,
|
|
8227
8408
|
useEffect as useEffect7,
|
|
8228
8409
|
useMemo as useMemo6,
|
|
8229
8410
|
useState as useState12
|
|
8230
8411
|
} from "react";
|
|
8231
8412
|
|
|
8232
8413
|
// src/components/EventCard/EventCard.tsx
|
|
8233
|
-
import { useContext as
|
|
8414
|
+
import { useContext as useContext25, useState as useState11 } from "react";
|
|
8234
8415
|
import {
|
|
8235
|
-
Text as
|
|
8236
|
-
Box as
|
|
8237
|
-
Flex as
|
|
8238
|
-
Heading as
|
|
8416
|
+
Text as Text27,
|
|
8417
|
+
Box as Box46,
|
|
8418
|
+
Flex as Flex31,
|
|
8419
|
+
Heading as Heading23,
|
|
8239
8420
|
Tooltip as Tooltip2,
|
|
8240
8421
|
useMediaQuery as useMediaQuery9,
|
|
8241
8422
|
Button as Button7,
|
|
8242
|
-
BoemlyTag as
|
|
8423
|
+
BoemlyTag as BoemlyTag7
|
|
8243
8424
|
} from "boemly";
|
|
8244
|
-
import
|
|
8425
|
+
import Image35 from "next/image.js";
|
|
8245
8426
|
import {
|
|
8246
8427
|
BowlFoodIcon,
|
|
8247
8428
|
CalendarBlankIcon,
|
|
@@ -8262,12 +8443,6 @@ import {
|
|
|
8262
8443
|
WebcamIcon
|
|
8263
8444
|
} from "@phosphor-icons/react";
|
|
8264
8445
|
|
|
8265
|
-
// src/utils/getCountryFlag.ts
|
|
8266
|
-
var getCountryFlag = (countryCode) => {
|
|
8267
|
-
return countryCode.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397));
|
|
8268
|
-
};
|
|
8269
|
-
var getCountryFlag_default = getCountryFlag;
|
|
8270
|
-
|
|
8271
8446
|
// src/utils/isSameDate.ts
|
|
8272
8447
|
var isSameDate = (date1, date2) => {
|
|
8273
8448
|
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
@@ -8275,43 +8450,43 @@ var isSameDate = (date1, date2) => {
|
|
|
8275
8450
|
var isSameDate_default = isSameDate;
|
|
8276
8451
|
|
|
8277
8452
|
// src/components/EventCard/EventCard.tsx
|
|
8278
|
-
import { Fragment as Fragment30, jsx as
|
|
8453
|
+
import { Fragment as Fragment30, jsx as jsx58, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8279
8454
|
var MAX_LENGTH = 120;
|
|
8280
8455
|
var LOCATION_MAX_LENGTH = 28;
|
|
8281
8456
|
var getEventIcon = (eventType) => {
|
|
8282
8457
|
switch (eventType) {
|
|
8283
8458
|
case "Webinar" /* WEBINAR */:
|
|
8284
|
-
return /* @__PURE__ */
|
|
8459
|
+
return /* @__PURE__ */ jsx58(WebcamIcon, { size: 12 });
|
|
8285
8460
|
case "Conference" /* CONFERENCE */:
|
|
8286
|
-
return /* @__PURE__ */
|
|
8461
|
+
return /* @__PURE__ */ jsx58(HeadsetIcon, { size: 12 });
|
|
8287
8462
|
case "Meet Up" /* MEET_UP */:
|
|
8288
|
-
return /* @__PURE__ */
|
|
8463
|
+
return /* @__PURE__ */ jsx58(UsersThreeIcon, { size: 12 });
|
|
8289
8464
|
case "Forest Walk" /* FOREST_WALK */:
|
|
8290
|
-
return /* @__PURE__ */
|
|
8465
|
+
return /* @__PURE__ */ jsx58(PersonSimpleWalkIcon, { size: 12 });
|
|
8291
8466
|
case "Partner Event" /* PARTNER_EVENT */:
|
|
8292
|
-
return /* @__PURE__ */
|
|
8467
|
+
return /* @__PURE__ */ jsx58(HandshakeIcon, { size: 12 });
|
|
8293
8468
|
case "Lunch & Learn" /* LUNCH_AND_LEARN */:
|
|
8294
|
-
return /* @__PURE__ */
|
|
8469
|
+
return /* @__PURE__ */ jsx58(BowlFoodIcon, { size: 12 });
|
|
8295
8470
|
case "Fair" /* FAIR */:
|
|
8296
|
-
return /* @__PURE__ */
|
|
8471
|
+
return /* @__PURE__ */ jsx58(ChalkboardTeacherIcon, { size: 12 });
|
|
8297
8472
|
case "Festival" /* FESTIVAL */:
|
|
8298
|
-
return /* @__PURE__ */
|
|
8473
|
+
return /* @__PURE__ */ jsx58(ConfettiIcon, { size: 12 });
|
|
8299
8474
|
case "RoadShow" /* ROADSHOW */:
|
|
8300
|
-
return /* @__PURE__ */
|
|
8475
|
+
return /* @__PURE__ */ jsx58(ProjectorScreenChartIcon, { size: 12 });
|
|
8301
8476
|
default:
|
|
8302
|
-
return /* @__PURE__ */
|
|
8477
|
+
return /* @__PURE__ */ jsx58(InfoIcon, { size: 12, weight: "fill" });
|
|
8303
8478
|
}
|
|
8304
8479
|
};
|
|
8305
8480
|
var EventCard = ({ event }) => {
|
|
8306
|
-
const { formatDate, formatNumber, formatMessage } =
|
|
8481
|
+
const { formatDate, formatNumber, formatMessage } = useContext25(IntlContext);
|
|
8307
8482
|
const [isExpanded, setIsExpanded] = useState11(false);
|
|
8308
8483
|
const [mobile] = useMediaQuery9([BREAKPOINT_MD_QUERY]);
|
|
8309
8484
|
const toggleText = () => {
|
|
8310
8485
|
setIsExpanded(!isExpanded);
|
|
8311
8486
|
};
|
|
8312
8487
|
const isLocationTooLong = (event.location?.length ?? 0) >= LOCATION_MAX_LENGTH;
|
|
8313
|
-
return /* @__PURE__ */
|
|
8314
|
-
|
|
8488
|
+
return /* @__PURE__ */ jsxs49(
|
|
8489
|
+
Box46,
|
|
8315
8490
|
{
|
|
8316
8491
|
borderRadius: ["xl", null, null, "2xl"],
|
|
8317
8492
|
height: "full",
|
|
@@ -8319,8 +8494,8 @@ var EventCard = ({ event }) => {
|
|
|
8319
8494
|
border: "1px solid var(--boemly-colors-gray-200)",
|
|
8320
8495
|
background: "white",
|
|
8321
8496
|
children: [
|
|
8322
|
-
/* @__PURE__ */
|
|
8323
|
-
|
|
8497
|
+
/* @__PURE__ */ jsxs49(
|
|
8498
|
+
Box46,
|
|
8324
8499
|
{
|
|
8325
8500
|
position: "relative",
|
|
8326
8501
|
width: "full",
|
|
@@ -8333,8 +8508,8 @@ var EventCard = ({ event }) => {
|
|
|
8333
8508
|
}
|
|
8334
8509
|
},
|
|
8335
8510
|
children: [
|
|
8336
|
-
/* @__PURE__ */
|
|
8337
|
-
|
|
8511
|
+
/* @__PURE__ */ jsx58(
|
|
8512
|
+
Image35,
|
|
8338
8513
|
{
|
|
8339
8514
|
src: strapiMediaUrl_default(event.image?.img, "medium"),
|
|
8340
8515
|
alt: event.image?.alt,
|
|
@@ -8344,8 +8519,8 @@ var EventCard = ({ event }) => {
|
|
|
8344
8519
|
}
|
|
8345
8520
|
}
|
|
8346
8521
|
),
|
|
8347
|
-
/* @__PURE__ */
|
|
8348
|
-
|
|
8522
|
+
/* @__PURE__ */ jsx58(
|
|
8523
|
+
Box46,
|
|
8349
8524
|
{
|
|
8350
8525
|
position: "absolute",
|
|
8351
8526
|
top: ["6", null, null, "8"],
|
|
@@ -8353,8 +8528,8 @@ var EventCard = ({ event }) => {
|
|
|
8353
8528
|
zIndex: "1",
|
|
8354
8529
|
width: ["12", null, null, "16"],
|
|
8355
8530
|
height: ["12", null, null, "16"],
|
|
8356
|
-
children: /* @__PURE__ */
|
|
8357
|
-
|
|
8531
|
+
children: /* @__PURE__ */ jsx58(
|
|
8532
|
+
Image35,
|
|
8358
8533
|
{
|
|
8359
8534
|
src: strapiMediaUrl_default(event.logo.img, "medium"),
|
|
8360
8535
|
alt: event.logo.alt,
|
|
@@ -8371,54 +8546,54 @@ var EventCard = ({ event }) => {
|
|
|
8371
8546
|
]
|
|
8372
8547
|
}
|
|
8373
8548
|
),
|
|
8374
|
-
/* @__PURE__ */
|
|
8375
|
-
|
|
8549
|
+
/* @__PURE__ */ jsxs49(
|
|
8550
|
+
Flex31,
|
|
8376
8551
|
{
|
|
8377
8552
|
flexDir: "column",
|
|
8378
8553
|
p: ["6", null, null, "8"],
|
|
8379
8554
|
h: "calc(var(--boemly-sizes-full) - var(--boemly-sizes-44))",
|
|
8380
8555
|
children: [
|
|
8381
|
-
/* @__PURE__ */
|
|
8382
|
-
event.recommended ? /* @__PURE__ */
|
|
8383
|
-
/* @__PURE__ */
|
|
8384
|
-
/* @__PURE__ */
|
|
8556
|
+
/* @__PURE__ */ jsxs49(Flex31, { flexDir: "row", mb: "4", gap: "2", flexWrap: "wrap", children: [
|
|
8557
|
+
event.recommended ? /* @__PURE__ */ jsx58(Flex31, { mb: ["2", null, null, "0"], children: /* @__PURE__ */ jsx58(BoemlyTag7, { backgroundColor: "green.600", children: /* @__PURE__ */ jsxs49(Flex31, { alignItems: "center", gap: "1", whiteSpace: "nowrap", children: [
|
|
8558
|
+
/* @__PURE__ */ jsx58(StarIcon, { size: 12, weight: "fill", color: "white" }),
|
|
8559
|
+
/* @__PURE__ */ jsx58(Text27, { size: "xsLowBold", color: "white", children: formatMessage({
|
|
8385
8560
|
id: "sections.eventCard.recommendedEvent"
|
|
8386
8561
|
}) })
|
|
8387
|
-
] }) }) }) : /* @__PURE__ */
|
|
8388
|
-
/* @__PURE__ */
|
|
8389
|
-
event.eventTypes.map((e) => /* @__PURE__ */
|
|
8562
|
+
] }) }) }) : /* @__PURE__ */ jsx58(Fragment30, {}),
|
|
8563
|
+
/* @__PURE__ */ jsxs49(Flex31, { flexWrap: "wrap", gap: "2", children: [
|
|
8564
|
+
event.eventTypes.map((e) => /* @__PURE__ */ jsx58(BoemlyTag7, { children: /* @__PURE__ */ jsxs49(Flex31, { alignItems: "center", gap: "1", whiteSpace: "nowrap", children: [
|
|
8390
8565
|
getEventIcon(e.eventType),
|
|
8391
|
-
/* @__PURE__ */
|
|
8566
|
+
/* @__PURE__ */ jsx58(Text27, { size: "xsLowBold", color: "gray.800", children: formatMessage({
|
|
8392
8567
|
id: `sections.eventCard.eventType.${e.eventType.toLowerCase().replace(/\s+/g, "")}`
|
|
8393
8568
|
}) })
|
|
8394
8569
|
] }) }, e.id)),
|
|
8395
|
-
event.languages.map(({ id, language, countryCode }) => /* @__PURE__ */
|
|
8570
|
+
event.languages.map(({ id, language, countryCode }) => /* @__PURE__ */ jsx58(BoemlyTag7, { children: /* @__PURE__ */ jsxs49(Flex31, { alignItems: "center", gap: "1", whiteSpace: "nowrap", children: [
|
|
8396
8571
|
getCountryFlag_default(countryCode),
|
|
8397
|
-
/* @__PURE__ */
|
|
8572
|
+
/* @__PURE__ */ jsx58(Text27, { size: "xsLowBold", color: "gray.800", children: language })
|
|
8398
8573
|
] }) }, id))
|
|
8399
8574
|
] })
|
|
8400
8575
|
] }),
|
|
8401
|
-
/* @__PURE__ */
|
|
8402
|
-
/* @__PURE__ */
|
|
8403
|
-
|
|
8576
|
+
/* @__PURE__ */ jsx58(Heading23, { children: event.title }),
|
|
8577
|
+
/* @__PURE__ */ jsxs49(
|
|
8578
|
+
Flex31,
|
|
8404
8579
|
{
|
|
8405
8580
|
gap: isLocationTooLong ? "2" : ["2", null, null, "6"],
|
|
8406
8581
|
alignItems: mobile || isLocationTooLong ? "flex-start" : "center",
|
|
8407
8582
|
my: "4",
|
|
8408
8583
|
flexDir: mobile || isLocationTooLong ? "column" : "row",
|
|
8409
8584
|
children: [
|
|
8410
|
-
event.online && /* @__PURE__ */
|
|
8411
|
-
/* @__PURE__ */
|
|
8585
|
+
event.online && /* @__PURE__ */ jsxs49(Flex31, { gap: "2", alignItems: "center", children: [
|
|
8586
|
+
/* @__PURE__ */ jsx58(
|
|
8412
8587
|
LaptopIcon,
|
|
8413
8588
|
{
|
|
8414
8589
|
size: 20,
|
|
8415
8590
|
color: "var(--boemly-colors-primary-700)"
|
|
8416
8591
|
}
|
|
8417
8592
|
),
|
|
8418
|
-
/* @__PURE__ */
|
|
8593
|
+
/* @__PURE__ */ jsx58(Text27, { size: mobile ? "xsLowBold" : "smLowBold", children: "Online" })
|
|
8419
8594
|
] }),
|
|
8420
|
-
event.location && /* @__PURE__ */
|
|
8421
|
-
/* @__PURE__ */
|
|
8595
|
+
event.location && /* @__PURE__ */ jsxs49(Flex31, { gap: "2", alignItems: "center", children: [
|
|
8596
|
+
/* @__PURE__ */ jsx58(
|
|
8422
8597
|
MapPinLineIcon,
|
|
8423
8598
|
{
|
|
8424
8599
|
size: 20,
|
|
@@ -8426,17 +8601,17 @@ var EventCard = ({ event }) => {
|
|
|
8426
8601
|
weight: "fill"
|
|
8427
8602
|
}
|
|
8428
8603
|
),
|
|
8429
|
-
/* @__PURE__ */
|
|
8604
|
+
/* @__PURE__ */ jsx58(Text27, { size: mobile ? "xsLowBold" : "smLowBold", children: event.location })
|
|
8430
8605
|
] }),
|
|
8431
|
-
/* @__PURE__ */
|
|
8432
|
-
/* @__PURE__ */
|
|
8606
|
+
/* @__PURE__ */ jsxs49(Flex31, { alignItems: "center", gap: "2", children: [
|
|
8607
|
+
/* @__PURE__ */ jsx58(
|
|
8433
8608
|
CalendarBlankIcon,
|
|
8434
8609
|
{
|
|
8435
8610
|
size: 20,
|
|
8436
8611
|
color: "var(--boemly-colors-primary-700)"
|
|
8437
8612
|
}
|
|
8438
8613
|
),
|
|
8439
|
-
/* @__PURE__ */
|
|
8614
|
+
/* @__PURE__ */ jsxs49(Text27, { size: mobile ? "xsLowBold" : "smLowBold", children: [
|
|
8440
8615
|
formatDate(event.start, {
|
|
8441
8616
|
year: "numeric",
|
|
8442
8617
|
month: "2-digit",
|
|
@@ -8447,7 +8622,7 @@ var EventCard = ({ event }) => {
|
|
|
8447
8622
|
})}:${formatNumber(new Date(event.start).getUTCMinutes(), {
|
|
8448
8623
|
minimumIntegerDigits: 2
|
|
8449
8624
|
})}`,
|
|
8450
|
-
event.end && !isSameDate_default(new Date(event.start), new Date(event.end)) && /* @__PURE__ */
|
|
8625
|
+
event.end && !isSameDate_default(new Date(event.start), new Date(event.end)) && /* @__PURE__ */ jsxs49(Fragment30, { children: [
|
|
8451
8626
|
" - ",
|
|
8452
8627
|
formatDate(event.end, {
|
|
8453
8628
|
year: "numeric",
|
|
@@ -8470,51 +8645,51 @@ var EventCard = ({ event }) => {
|
|
|
8470
8645
|
]
|
|
8471
8646
|
}
|
|
8472
8647
|
),
|
|
8473
|
-
/* @__PURE__ */
|
|
8474
|
-
|
|
8648
|
+
/* @__PURE__ */ jsx58(
|
|
8649
|
+
Text27,
|
|
8475
8650
|
{
|
|
8476
8651
|
mb: mobile ? "0" : "7",
|
|
8477
8652
|
size: mobile ? "xsRegularNormal" : "smRegularNormal",
|
|
8478
8653
|
children: isExpanded || !mobile ? event.description : `${event.description.substring(0, MAX_LENGTH)}...`
|
|
8479
8654
|
}
|
|
8480
8655
|
),
|
|
8481
|
-
event.description.length > MAX_LENGTH && mobile && /* @__PURE__ */
|
|
8656
|
+
event.description.length > MAX_LENGTH && mobile && /* @__PURE__ */ jsx58(Flex31, { justifyContent: "flex-start", children: /* @__PURE__ */ jsxs49(Button7, { mt: "2", onClick: toggleText, variant: "link", children: [
|
|
8482
8657
|
formatMessage(
|
|
8483
8658
|
isExpanded ? {
|
|
8484
8659
|
id: "sections.eventCard.buttonShowLess"
|
|
8485
8660
|
} : { id: "sections.eventCard.buttonShowMore" }
|
|
8486
8661
|
),
|
|
8487
|
-
isExpanded ? /* @__PURE__ */
|
|
8662
|
+
isExpanded ? /* @__PURE__ */ jsx58(CaretUpIcon, { size: "12" }) : /* @__PURE__ */ jsx58(CaretDownIcon, { size: "12" })
|
|
8488
8663
|
] }) }),
|
|
8489
|
-
/* @__PURE__ */
|
|
8490
|
-
|
|
8664
|
+
/* @__PURE__ */ jsxs49(
|
|
8665
|
+
Flex31,
|
|
8491
8666
|
{
|
|
8492
8667
|
mt: mobile ? "7" : "auto",
|
|
8493
8668
|
justifyContent: mobile ? void 0 : "space-between",
|
|
8494
8669
|
flexDir: mobile ? "column-reverse" : "row",
|
|
8495
8670
|
gap: mobile ? "4" : "0",
|
|
8496
8671
|
children: [
|
|
8497
|
-
event.button && /* @__PURE__ */
|
|
8672
|
+
event.button && /* @__PURE__ */ jsx58(Flex31, { width: mobile ? "full" : "auto", children: /* @__PURE__ */ jsx58(
|
|
8498
8673
|
StrapiLinkButton_default,
|
|
8499
8674
|
{
|
|
8500
8675
|
size: "md",
|
|
8501
8676
|
variant: event.buttonVariant,
|
|
8502
8677
|
link: event.button,
|
|
8503
|
-
rightIcon: /* @__PURE__ */
|
|
8678
|
+
rightIcon: /* @__PURE__ */ jsx58(CaretRightIcon8, { size: "10" }),
|
|
8504
8679
|
width: "full",
|
|
8505
8680
|
component: "EventCard"
|
|
8506
8681
|
},
|
|
8507
8682
|
event.button.id
|
|
8508
8683
|
) }),
|
|
8509
|
-
event.speakers && event.speakers.length > 0 && /* @__PURE__ */
|
|
8510
|
-
|
|
8684
|
+
event.speakers && event.speakers.length > 0 && /* @__PURE__ */ jsx58(Flex31, { flexDir: "row", gap: "2", children: event.speakers.map((speaker) => /* @__PURE__ */ jsx58(Box46, { children: /* @__PURE__ */ jsx58(
|
|
8685
|
+
Box46,
|
|
8511
8686
|
{
|
|
8512
8687
|
width: ["10", null, null, "12"],
|
|
8513
8688
|
height: ["10", null, null, "12"],
|
|
8514
8689
|
position: "relative",
|
|
8515
8690
|
borderRadius: "2xl",
|
|
8516
|
-
children: /* @__PURE__ */
|
|
8517
|
-
|
|
8691
|
+
children: /* @__PURE__ */ jsx58(Tooltip2, { content: speaker.name, children: /* @__PURE__ */ jsx58(
|
|
8692
|
+
Image35,
|
|
8518
8693
|
{
|
|
8519
8694
|
src: strapiMediaUrl_default(speaker.image.img, "medium"),
|
|
8520
8695
|
alt: speaker.image.alt,
|
|
@@ -8576,11 +8751,11 @@ var useEvents_default = useEvents;
|
|
|
8576
8751
|
|
|
8577
8752
|
// src/slices/Events/Events.tsx
|
|
8578
8753
|
import { mutate } from "swr/_internal";
|
|
8579
|
-
import { Fragment as Fragment31, jsx as
|
|
8754
|
+
import { Fragment as Fragment31, jsx as jsx59, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8580
8755
|
var UPCOMING_BATCH_SIZE = 6;
|
|
8581
8756
|
var PAST_BATCH_SIZE = 2;
|
|
8582
8757
|
var Events = ({ slice }) => {
|
|
8583
|
-
const { formatMessage, locale } =
|
|
8758
|
+
const { formatMessage, locale } = useContext26(IntlContext);
|
|
8584
8759
|
const [eventTypeFilter, setEventTypeFilter] = useState12([]);
|
|
8585
8760
|
const [languageFilter, setLanguageFilter] = useState12([]);
|
|
8586
8761
|
const [sort, setSort] = useState12(["newest" /* NEWEST_FIRST */]);
|
|
@@ -8709,10 +8884,10 @@ var Events = ({ slice }) => {
|
|
|
8709
8884
|
useEffect7(() => {
|
|
8710
8885
|
mutate(getUpcomingKey);
|
|
8711
8886
|
}, [eventTypeFilter, languageFilter, sort]);
|
|
8712
|
-
return /* @__PURE__ */
|
|
8713
|
-
/* @__PURE__ */
|
|
8714
|
-
slice.upcomingTitle ? /* @__PURE__ */
|
|
8715
|
-
/* @__PURE__ */
|
|
8887
|
+
return /* @__PURE__ */ jsxs50(DefaultSectionContainer33, { children: [
|
|
8888
|
+
/* @__PURE__ */ jsxs50(Wrapper35, { children: [
|
|
8889
|
+
slice.upcomingTitle ? /* @__PURE__ */ jsxs50(Fragment31, { children: [
|
|
8890
|
+
/* @__PURE__ */ jsx59(
|
|
8716
8891
|
DefaultSectionHeader23,
|
|
8717
8892
|
{
|
|
8718
8893
|
title: slice.upcomingTitle,
|
|
@@ -8721,33 +8896,33 @@ var Events = ({ slice }) => {
|
|
|
8721
8896
|
textProps: { maxW: "3xl" }
|
|
8722
8897
|
}
|
|
8723
8898
|
),
|
|
8724
|
-
/* @__PURE__ */
|
|
8725
|
-
] }) : /* @__PURE__ */
|
|
8726
|
-
slice.filterSearch && (upcomingEvents || pastEvents) ? /* @__PURE__ */
|
|
8727
|
-
/* @__PURE__ */
|
|
8728
|
-
|
|
8899
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: "10" })
|
|
8900
|
+
] }) : /* @__PURE__ */ jsx59(Fragment31, {}),
|
|
8901
|
+
slice.filterSearch && (upcomingEvents || pastEvents) ? /* @__PURE__ */ jsxs50(Fragment31, { children: [
|
|
8902
|
+
/* @__PURE__ */ jsxs50(
|
|
8903
|
+
Flex32,
|
|
8729
8904
|
{
|
|
8730
8905
|
justifyContent: "space-between",
|
|
8731
8906
|
direction: ["column-reverse", null, null, "row"],
|
|
8732
8907
|
alignItems: "baseline",
|
|
8733
8908
|
gap: "4",
|
|
8734
8909
|
children: [
|
|
8735
|
-
/* @__PURE__ */
|
|
8736
|
-
|
|
8910
|
+
/* @__PURE__ */ jsxs50(
|
|
8911
|
+
Flex32,
|
|
8737
8912
|
{
|
|
8738
8913
|
direction: "column",
|
|
8739
8914
|
width: "full",
|
|
8740
8915
|
justifyContent: "start",
|
|
8741
8916
|
gap: "4",
|
|
8742
8917
|
children: [
|
|
8743
|
-
/* @__PURE__ */
|
|
8744
|
-
|
|
8918
|
+
/* @__PURE__ */ jsxs50(
|
|
8919
|
+
Flex32,
|
|
8745
8920
|
{
|
|
8746
8921
|
direction: ["column", null, null, "row"],
|
|
8747
8922
|
gap: "4",
|
|
8748
8923
|
justifyContent: "start",
|
|
8749
8924
|
children: [
|
|
8750
|
-
/* @__PURE__ */
|
|
8925
|
+
/* @__PURE__ */ jsx59(Box47, { position: "relative", width: ["full", null, null, "56"], children: /* @__PURE__ */ jsx59(
|
|
8751
8926
|
Select,
|
|
8752
8927
|
{
|
|
8753
8928
|
isMultiple: true,
|
|
@@ -8767,7 +8942,7 @@ var Events = ({ slice }) => {
|
|
|
8767
8942
|
}
|
|
8768
8943
|
}
|
|
8769
8944
|
) }),
|
|
8770
|
-
/* @__PURE__ */
|
|
8945
|
+
/* @__PURE__ */ jsx59(Box47, { position: "relative", width: ["full", null, null, "56"], children: /* @__PURE__ */ jsx59(
|
|
8771
8946
|
Select,
|
|
8772
8947
|
{
|
|
8773
8948
|
isMultiple: true,
|
|
@@ -8790,13 +8965,13 @@ var Events = ({ slice }) => {
|
|
|
8790
8965
|
]
|
|
8791
8966
|
}
|
|
8792
8967
|
),
|
|
8793
|
-
/* @__PURE__ */
|
|
8968
|
+
/* @__PURE__ */ jsxs50(Box47, { display: "flex", flexWrap: "wrap", minHeight: "6", gap: "2", children: [
|
|
8794
8969
|
eventTypeFilter.map((eventType) => {
|
|
8795
8970
|
const event = allEventTypeOptions.find(
|
|
8796
8971
|
(option) => option.value === eventType
|
|
8797
8972
|
);
|
|
8798
|
-
return /* @__PURE__ */
|
|
8799
|
-
|
|
8973
|
+
return /* @__PURE__ */ jsx59(
|
|
8974
|
+
BoemlyTag8,
|
|
8800
8975
|
{
|
|
8801
8976
|
isClosable: true,
|
|
8802
8977
|
onClose: () => removeFilter("eventTypes", eventType),
|
|
@@ -8809,8 +8984,8 @@ var Events = ({ slice }) => {
|
|
|
8809
8984
|
const language = allLanguageOptions.find(
|
|
8810
8985
|
(option) => option.value === singleLanguage
|
|
8811
8986
|
);
|
|
8812
|
-
return /* @__PURE__ */
|
|
8813
|
-
|
|
8987
|
+
return /* @__PURE__ */ jsx59(
|
|
8988
|
+
BoemlyTag8,
|
|
8814
8989
|
{
|
|
8815
8990
|
isClosable: true,
|
|
8816
8991
|
onClose: () => removeFilter("languages", singleLanguage),
|
|
@@ -8823,9 +8998,9 @@ var Events = ({ slice }) => {
|
|
|
8823
8998
|
]
|
|
8824
8999
|
}
|
|
8825
9000
|
),
|
|
8826
|
-
/* @__PURE__ */
|
|
8827
|
-
/* @__PURE__ */
|
|
8828
|
-
/* @__PURE__ */
|
|
9001
|
+
/* @__PURE__ */ jsxs50(Box47, { display: "flex", gap: "1px", width: "52", alignItems: "center", children: [
|
|
9002
|
+
/* @__PURE__ */ jsx59(Text28, { size: "smLowNormal", color: "black", width: "20", children: "Sort by:" }),
|
|
9003
|
+
/* @__PURE__ */ jsx59(
|
|
8829
9004
|
Select,
|
|
8830
9005
|
{
|
|
8831
9006
|
isMultiple: false,
|
|
@@ -8853,12 +9028,12 @@ var Events = ({ slice }) => {
|
|
|
8853
9028
|
]
|
|
8854
9029
|
}
|
|
8855
9030
|
),
|
|
8856
|
-
/* @__PURE__ */
|
|
8857
|
-
] }) : /* @__PURE__ */
|
|
8858
|
-
(!upcomingEvents || upcomingEvents.length === 0) && !isLoadingUpcoming ? /* @__PURE__ */
|
|
9031
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: ["8", null, null, "16"] })
|
|
9032
|
+
] }) : /* @__PURE__ */ jsx59(Fragment31, {}),
|
|
9033
|
+
(!upcomingEvents || upcomingEvents.length === 0) && !isLoadingUpcoming ? /* @__PURE__ */ jsx59(Center5, { children: formatMessage({ id: "sections.events.noUpcomingEvents" }) }) : (
|
|
8859
9034
|
// List of upcoming events
|
|
8860
|
-
/* @__PURE__ */
|
|
8861
|
-
|
|
9035
|
+
/* @__PURE__ */ jsx59(
|
|
9036
|
+
SimpleGrid20,
|
|
8862
9037
|
{
|
|
8863
9038
|
columns: [1, null, null, null, null, 2],
|
|
8864
9039
|
columnGap: "6",
|
|
@@ -8866,11 +9041,11 @@ var Events = ({ slice }) => {
|
|
|
8866
9041
|
flexShrink: "0",
|
|
8867
9042
|
mb: ["10", null, null, "20"],
|
|
8868
9043
|
placeItems: "center",
|
|
8869
|
-
children: upcomingEvents.map((event) => /* @__PURE__ */
|
|
9044
|
+
children: upcomingEvents.map((event) => /* @__PURE__ */ jsx59(Box47, { width: "full", height: "full", children: /* @__PURE__ */ jsx59(EventCard_default, { event: event.attributes }) }, event.id))
|
|
8870
9045
|
}
|
|
8871
9046
|
)
|
|
8872
9047
|
),
|
|
8873
|
-
/* @__PURE__ */
|
|
9048
|
+
/* @__PURE__ */ jsx59(Flex32, { justifyContent: "center", children: !isLoadingUpcoming && canLoadMoreUpcoming && /* @__PURE__ */ jsx59(
|
|
8874
9049
|
Button8,
|
|
8875
9050
|
{
|
|
8876
9051
|
onClick: () => {
|
|
@@ -8882,9 +9057,9 @@ var Events = ({ slice }) => {
|
|
|
8882
9057
|
}
|
|
8883
9058
|
) })
|
|
8884
9059
|
] }),
|
|
8885
|
-
/* @__PURE__ */
|
|
8886
|
-
/* @__PURE__ */
|
|
8887
|
-
/* @__PURE__ */
|
|
9060
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: ["10", null, null, "28"] }),
|
|
9061
|
+
/* @__PURE__ */ jsx59(Box47, { background: "primary.50", pt: ["8", null, null, "24"], children: /* @__PURE__ */ jsxs50(Wrapper35, { children: [
|
|
9062
|
+
/* @__PURE__ */ jsx59(
|
|
8888
9063
|
DefaultSectionHeader23,
|
|
8889
9064
|
{
|
|
8890
9065
|
title: slice.pastTitle,
|
|
@@ -8893,14 +9068,14 @@ var Events = ({ slice }) => {
|
|
|
8893
9068
|
textProps: { maxW: "3xl" }
|
|
8894
9069
|
}
|
|
8895
9070
|
),
|
|
8896
|
-
/* @__PURE__ */
|
|
8897
|
-
(!pastEvents || pastEvents.length === 0) && !isLoadingPast ? /* @__PURE__ */
|
|
8898
|
-
/* @__PURE__ */
|
|
8899
|
-
/* @__PURE__ */
|
|
9071
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: "10" }),
|
|
9072
|
+
(!pastEvents || pastEvents.length === 0) && !isLoadingPast ? /* @__PURE__ */ jsxs50(Fragment31, { children: [
|
|
9073
|
+
/* @__PURE__ */ jsx59(Center5, { children: formatMessage({ id: "sections.events.noPastEvents" }) }),
|
|
9074
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: "24" })
|
|
8900
9075
|
] }) : (
|
|
8901
9076
|
// List of past events
|
|
8902
|
-
/* @__PURE__ */
|
|
8903
|
-
|
|
9077
|
+
/* @__PURE__ */ jsx59(
|
|
9078
|
+
SimpleGrid20,
|
|
8904
9079
|
{
|
|
8905
9080
|
columns: [1, null, null, null, null, 2],
|
|
8906
9081
|
columnGap: "6",
|
|
@@ -8908,11 +9083,11 @@ var Events = ({ slice }) => {
|
|
|
8908
9083
|
flexShrink: "0",
|
|
8909
9084
|
placeItems: "center",
|
|
8910
9085
|
mb: ["10", null, null, "20"],
|
|
8911
|
-
children: pastEvents.map((event) => /* @__PURE__ */
|
|
9086
|
+
children: pastEvents.map((event) => /* @__PURE__ */ jsx59(Box47, { height: "full", width: "full", children: /* @__PURE__ */ jsx59(EventCard_default, { event: event.attributes }) }, event.id))
|
|
8912
9087
|
}
|
|
8913
9088
|
)
|
|
8914
9089
|
),
|
|
8915
|
-
/* @__PURE__ */
|
|
9090
|
+
/* @__PURE__ */ jsx59(Flex32, { justifyContent: "center", children: !isLoadingPast && canLoadMorePast && /* @__PURE__ */ jsx59(
|
|
8916
9091
|
Button8,
|
|
8917
9092
|
{
|
|
8918
9093
|
mb: "20",
|
|
@@ -8931,6 +9106,66 @@ var Events = ({ slice }) => {
|
|
|
8931
9106
|
// src/slices/Events/index.ts
|
|
8932
9107
|
var Events_default = Events;
|
|
8933
9108
|
|
|
9109
|
+
// src/slices/HeroWithHighlights/HeroWithHighlights.tsx
|
|
9110
|
+
import { Box as Box48, DefaultSectionContainer as DefaultSectionContainer34, Heading as Heading24, Text as Text29, Wrapper as Wrapper36 } from "boemly";
|
|
9111
|
+
import { jsx as jsx60, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
9112
|
+
var parseTitle = (title) => {
|
|
9113
|
+
const parts = [];
|
|
9114
|
+
const regex = /\[([^\]]+)\]|([^[\]]+)/g;
|
|
9115
|
+
for (const match of title.matchAll(regex)) {
|
|
9116
|
+
if (match[1]) parts.push({ text: match[1], highlighted: true });
|
|
9117
|
+
if (match[2]) parts.push({ text: match[2], highlighted: false });
|
|
9118
|
+
}
|
|
9119
|
+
return parts;
|
|
9120
|
+
};
|
|
9121
|
+
var VARIANTS6 = {
|
|
9122
|
+
white: { backgroundColor: "white", titleColor: "black" },
|
|
9123
|
+
gray: { backgroundColor: "primary.50", titleColor: "black" }
|
|
9124
|
+
};
|
|
9125
|
+
var HeroWithHighlights = ({
|
|
9126
|
+
slice
|
|
9127
|
+
}) => {
|
|
9128
|
+
const parts = parseTitle(slice.title);
|
|
9129
|
+
const variant = slice.variant || "white";
|
|
9130
|
+
const textAlign = slice.textAlign || "left";
|
|
9131
|
+
return /* @__PURE__ */ jsx60(
|
|
9132
|
+
DefaultSectionContainer34,
|
|
9133
|
+
{
|
|
9134
|
+
backgroundColor: VARIANTS6[variant].backgroundColor,
|
|
9135
|
+
paddingY: ["10", null, "16"],
|
|
9136
|
+
children: /* @__PURE__ */ jsxs51(Wrapper36, { children: [
|
|
9137
|
+
/* @__PURE__ */ jsx60(
|
|
9138
|
+
Heading24,
|
|
9139
|
+
{
|
|
9140
|
+
as: slice.headingLevel || "h1",
|
|
9141
|
+
size: [slice.headingSize || "3xl"],
|
|
9142
|
+
color: VARIANTS6[variant].titleColor,
|
|
9143
|
+
lineHeight: "1.3",
|
|
9144
|
+
fontWeight: "600",
|
|
9145
|
+
textAlign,
|
|
9146
|
+
children: parts.map(
|
|
9147
|
+
(part, i) => part.highlighted ? /* @__PURE__ */ jsx60(Box48, { as: "span", px: "2", backgroundColor: "primary.500", children: part.text }, i) : part.text
|
|
9148
|
+
)
|
|
9149
|
+
}
|
|
9150
|
+
),
|
|
9151
|
+
slice.subTitle && /* @__PURE__ */ jsx60(
|
|
9152
|
+
Text29,
|
|
9153
|
+
{
|
|
9154
|
+
size: "lgRegularNormal",
|
|
9155
|
+
color: "gray.500",
|
|
9156
|
+
mt: "4",
|
|
9157
|
+
textAlign,
|
|
9158
|
+
children: slice.subTitle
|
|
9159
|
+
}
|
|
9160
|
+
)
|
|
9161
|
+
] })
|
|
9162
|
+
}
|
|
9163
|
+
);
|
|
9164
|
+
};
|
|
9165
|
+
|
|
9166
|
+
// src/slices/HeroWithHighlights/index.ts
|
|
9167
|
+
var HeroWithHighlights_default = HeroWithHighlights;
|
|
9168
|
+
|
|
8934
9169
|
// src/slices/Redirect/Redirect.tsx
|
|
8935
9170
|
import { useRouter as useRouter9 } from "next/router.js";
|
|
8936
9171
|
import { useEffect as useEffect8 } from "react";
|
|
@@ -8953,7 +9188,7 @@ function buildRedirectUrl(url, asPath, query) {
|
|
|
8953
9188
|
}
|
|
8954
9189
|
|
|
8955
9190
|
// src/slices/Redirect/Redirect.tsx
|
|
8956
|
-
import { Fragment as Fragment32, jsx as
|
|
9191
|
+
import { Fragment as Fragment32, jsx as jsx61 } from "react/jsx-runtime";
|
|
8957
9192
|
var Redirect = ({ slice }) => {
|
|
8958
9193
|
const router = useRouter9();
|
|
8959
9194
|
useEffect8(() => {
|
|
@@ -8965,289 +9200,317 @@ var Redirect = ({ slice }) => {
|
|
|
8965
9200
|
);
|
|
8966
9201
|
router.replace(redirectUrl);
|
|
8967
9202
|
}, [slice.url, router]);
|
|
8968
|
-
return /* @__PURE__ */
|
|
9203
|
+
return /* @__PURE__ */ jsx61(Fragment32, {});
|
|
8969
9204
|
};
|
|
8970
9205
|
|
|
8971
9206
|
// src/slices/Redirect/index.ts
|
|
8972
9207
|
var Redirect_default = Redirect;
|
|
8973
9208
|
|
|
8974
9209
|
// src/components/SliceRenderer/SliceRenderer.tsx
|
|
8975
|
-
import { jsx as
|
|
9210
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
8976
9211
|
var SliceRenderer = ({
|
|
8977
9212
|
slices,
|
|
8978
9213
|
blogPosts,
|
|
8979
9214
|
projects,
|
|
8980
9215
|
customerStories,
|
|
8981
9216
|
locale = "en",
|
|
9217
|
+
colors: colors2,
|
|
9218
|
+
fonts,
|
|
8982
9219
|
CustomSlice,
|
|
8983
9220
|
analyticsFunction
|
|
8984
|
-
}) => /* @__PURE__ */
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
slice
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
slice
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9221
|
+
}) => /* @__PURE__ */ jsx62(
|
|
9222
|
+
ContextProvider,
|
|
9223
|
+
{
|
|
9224
|
+
locale,
|
|
9225
|
+
analyticsFunction,
|
|
9226
|
+
colors: colors2,
|
|
9227
|
+
fonts,
|
|
9228
|
+
children: slices.map((slice) => {
|
|
9229
|
+
switch (slice.__component) {
|
|
9230
|
+
case "sections.hero":
|
|
9231
|
+
return /* @__PURE__ */ jsx62(Hero_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9232
|
+
case "sections.map-hero":
|
|
9233
|
+
return /* @__PURE__ */ jsx62(MapHero_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9234
|
+
case "sections.rich-text":
|
|
9235
|
+
return /* @__PURE__ */ jsx62(
|
|
9236
|
+
RichTextSection_default,
|
|
9237
|
+
{
|
|
9238
|
+
slice
|
|
9239
|
+
},
|
|
9240
|
+
`${slice.__component}-${slice.id}`
|
|
9241
|
+
);
|
|
9242
|
+
case "sections.left-text-right-card":
|
|
9243
|
+
return /* @__PURE__ */ jsx62(
|
|
9244
|
+
LeftTextRightCard_default,
|
|
9245
|
+
{
|
|
9246
|
+
slice
|
|
9247
|
+
},
|
|
9248
|
+
`${slice.__component}-${slice.id}`
|
|
9249
|
+
);
|
|
9250
|
+
case "sections.text-with-card":
|
|
9251
|
+
return /* @__PURE__ */ jsx62(
|
|
9252
|
+
TextWithCard_default,
|
|
9253
|
+
{
|
|
9254
|
+
slice,
|
|
9255
|
+
projects
|
|
9256
|
+
},
|
|
9257
|
+
`${slice.__component}-${slice.id}`
|
|
9258
|
+
);
|
|
9259
|
+
case "sections.logo-grid-with-text":
|
|
9260
|
+
return /* @__PURE__ */ jsx62(
|
|
9261
|
+
LogoGridWithText_default,
|
|
9262
|
+
{
|
|
9263
|
+
slice
|
|
9264
|
+
},
|
|
9265
|
+
`${slice.__component}-${slice.id}`
|
|
9266
|
+
);
|
|
9267
|
+
case "sections.quote-cards":
|
|
9268
|
+
return /* @__PURE__ */ jsx62(
|
|
9269
|
+
QuoteCards_default,
|
|
9270
|
+
{
|
|
9271
|
+
slice
|
|
9272
|
+
},
|
|
9273
|
+
`${slice.__component}-${slice.id}`
|
|
9274
|
+
);
|
|
9275
|
+
case "sections.q-and-a":
|
|
9276
|
+
return /* @__PURE__ */ jsx62(QAndA_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9277
|
+
case "sections.image-grid":
|
|
9278
|
+
return /* @__PURE__ */ jsx62(ImageGrid_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9279
|
+
case "sections.full-width-image":
|
|
9280
|
+
return /* @__PURE__ */ jsx62(
|
|
9281
|
+
FullWidthImage_default,
|
|
9282
|
+
{
|
|
9283
|
+
slice
|
|
9284
|
+
},
|
|
9285
|
+
`${slice.__component}-${slice.id}`
|
|
9286
|
+
);
|
|
9287
|
+
case "sections.text-with-text-cards":
|
|
9288
|
+
return /* @__PURE__ */ jsx62(
|
|
9289
|
+
TextWithTextCards_default,
|
|
9290
|
+
{
|
|
9291
|
+
slice
|
|
9292
|
+
},
|
|
9293
|
+
`${slice.__component}-${slice.id}`
|
|
9294
|
+
);
|
|
9295
|
+
case "sections.text-card-grid":
|
|
9296
|
+
return /* @__PURE__ */ jsx62(
|
|
9297
|
+
TextCardGrid_default,
|
|
9298
|
+
{
|
|
9299
|
+
slice
|
|
9300
|
+
},
|
|
9301
|
+
`${slice.__component}-${slice.id}`
|
|
9302
|
+
);
|
|
9303
|
+
case "sections.icon-grid":
|
|
9304
|
+
return /* @__PURE__ */ jsx62(IconGrid_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9305
|
+
case "sections.image-text-sequence":
|
|
9306
|
+
return /* @__PURE__ */ jsx62(
|
|
9307
|
+
ImageTextSequence_default,
|
|
9308
|
+
{
|
|
9309
|
+
slice
|
|
9310
|
+
},
|
|
9311
|
+
`${slice.__component}-${slice.id}`
|
|
9312
|
+
);
|
|
9313
|
+
case "sections.steps":
|
|
9314
|
+
return /* @__PURE__ */ jsx62(Steps_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9315
|
+
case "sections.text-carousel":
|
|
9316
|
+
return /* @__PURE__ */ jsx62(
|
|
9317
|
+
TextCarousel_default,
|
|
9318
|
+
{
|
|
9319
|
+
slice
|
|
9320
|
+
},
|
|
9321
|
+
`${slice.__component}-${slice.id}`
|
|
9322
|
+
);
|
|
9323
|
+
case "sections.link-cards-grid":
|
|
9324
|
+
return /* @__PURE__ */ jsx62(
|
|
9325
|
+
LinkCardsGrid_default,
|
|
9326
|
+
{
|
|
9327
|
+
slice
|
|
9328
|
+
},
|
|
9329
|
+
`${slice.__component}-${slice.id}`
|
|
9330
|
+
);
|
|
9331
|
+
case "sections.small-hero":
|
|
9332
|
+
return /* @__PURE__ */ jsx62(
|
|
9333
|
+
SmallHero_default,
|
|
9334
|
+
{
|
|
9335
|
+
slice,
|
|
9336
|
+
theme: "dark"
|
|
9337
|
+
},
|
|
9338
|
+
`${slice.__component}-${slice.id}`
|
|
9339
|
+
);
|
|
9340
|
+
case "sections.small-hero-light":
|
|
9341
|
+
return /* @__PURE__ */ jsx62(
|
|
9342
|
+
SmallHero_default,
|
|
9343
|
+
{
|
|
9344
|
+
slice,
|
|
9345
|
+
theme: "light"
|
|
9346
|
+
},
|
|
9347
|
+
`${slice.__component}-${slice.id}`
|
|
9348
|
+
);
|
|
9349
|
+
case "sections.project-facts":
|
|
9350
|
+
return /* @__PURE__ */ jsx62(
|
|
9351
|
+
ProjectFacts_default,
|
|
9352
|
+
{
|
|
9353
|
+
slice,
|
|
9354
|
+
project: projects.find((p) => p.id === slice.projectId)
|
|
9355
|
+
},
|
|
9356
|
+
`${slice.__component}-${slice.id}`
|
|
9357
|
+
);
|
|
9358
|
+
case "sections.projects-grid":
|
|
9359
|
+
return /* @__PURE__ */ jsx62(
|
|
9360
|
+
ProjectsGrid_default,
|
|
9361
|
+
{
|
|
9362
|
+
slice,
|
|
9363
|
+
projects
|
|
9364
|
+
},
|
|
9365
|
+
`${slice.__component}-${slice.id}`
|
|
9366
|
+
);
|
|
9367
|
+
case "sections.projects-grid-v2":
|
|
9368
|
+
return /* @__PURE__ */ jsx62(
|
|
9369
|
+
ProjectsGridV2_default,
|
|
9370
|
+
{
|
|
9371
|
+
slice,
|
|
9372
|
+
projects
|
|
9373
|
+
},
|
|
9374
|
+
`${slice.__component}-${slice.id}`
|
|
9375
|
+
);
|
|
9376
|
+
case "sections.projects-map":
|
|
9377
|
+
return /* @__PURE__ */ jsx62(
|
|
9378
|
+
ProjectsMap_default,
|
|
9379
|
+
{
|
|
9380
|
+
slice
|
|
9381
|
+
},
|
|
9382
|
+
`${slice.__component}-${slice.id}`
|
|
9383
|
+
);
|
|
9384
|
+
case "sections.video":
|
|
9385
|
+
return /* @__PURE__ */ jsx62(Video_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9386
|
+
case "sections.full-width-highlight-quote":
|
|
9387
|
+
return /* @__PURE__ */ jsx62(
|
|
9388
|
+
FullWidthHighlightQuote_default,
|
|
9389
|
+
{
|
|
9390
|
+
slice
|
|
9391
|
+
},
|
|
9392
|
+
`${slice.__component}-${slice.id}`
|
|
9393
|
+
);
|
|
9394
|
+
case "sections.full-width-image-slider":
|
|
9395
|
+
return /* @__PURE__ */ jsx62(
|
|
9396
|
+
FullWidthImageSlider_default,
|
|
9397
|
+
{
|
|
9398
|
+
slice
|
|
9399
|
+
},
|
|
9400
|
+
`${slice.__component}-${slice.id}`
|
|
9401
|
+
);
|
|
9402
|
+
case "sections.side-by-side-images":
|
|
9403
|
+
return /* @__PURE__ */ jsx62(
|
|
9404
|
+
SideBySideImages_default,
|
|
9405
|
+
{
|
|
9406
|
+
slice
|
|
9407
|
+
},
|
|
9408
|
+
`${slice.__component}-${slice.id}`
|
|
9409
|
+
);
|
|
9410
|
+
case "sections.cta-only":
|
|
9411
|
+
return /* @__PURE__ */ jsx62(CtaOnly_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9412
|
+
case "sections.cta":
|
|
9413
|
+
return /* @__PURE__ */ jsx62(Cta_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9414
|
+
case "sections.shop-checkout":
|
|
9415
|
+
return /* @__PURE__ */ jsx62(
|
|
9416
|
+
ShopCheckout_default,
|
|
9417
|
+
{
|
|
9418
|
+
slice
|
|
9419
|
+
},
|
|
9420
|
+
`${slice.__component}-${slice.id}`
|
|
9421
|
+
);
|
|
9422
|
+
case "sections.facts":
|
|
9423
|
+
return /* @__PURE__ */ jsx62(Facts_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9424
|
+
case "sections.blog-cards":
|
|
9425
|
+
return /* @__PURE__ */ jsx62(
|
|
9426
|
+
BlogCards_default,
|
|
9427
|
+
{
|
|
9428
|
+
slice,
|
|
9429
|
+
blogPosts
|
|
9430
|
+
},
|
|
9431
|
+
`${slice.__component}-${slice.id}`
|
|
9432
|
+
);
|
|
9433
|
+
case "sections.blog":
|
|
9434
|
+
return /* @__PURE__ */ jsx62(
|
|
9435
|
+
Blog_default,
|
|
9436
|
+
{
|
|
9437
|
+
slice: {
|
|
9438
|
+
...slice,
|
|
9439
|
+
blog_posts: slice.blog_posts.data
|
|
9440
|
+
},
|
|
9441
|
+
blogPosts
|
|
9442
|
+
},
|
|
9443
|
+
`${slice.__component}-${slice.id}`
|
|
9444
|
+
);
|
|
9445
|
+
case "sections.glossary":
|
|
9446
|
+
return /* @__PURE__ */ jsx62(
|
|
9447
|
+
Glossary_default,
|
|
9448
|
+
{
|
|
9449
|
+
slice: {
|
|
9450
|
+
...slice,
|
|
9451
|
+
glossary_items: slice.glossary_items.data
|
|
9452
|
+
}
|
|
9453
|
+
},
|
|
9454
|
+
`${slice.__component}-${slice.id}`
|
|
9455
|
+
);
|
|
9456
|
+
case "sections.customer-stories":
|
|
9457
|
+
return /* @__PURE__ */ jsx62(
|
|
9458
|
+
CustomerStories_default,
|
|
9459
|
+
{
|
|
9460
|
+
slice: {
|
|
9461
|
+
...slice,
|
|
9462
|
+
customer_stories: slice.customer_stories.data
|
|
9463
|
+
},
|
|
9464
|
+
customerStories
|
|
9465
|
+
},
|
|
9466
|
+
`${slice.__component}-${slice.id}`
|
|
9467
|
+
);
|
|
9468
|
+
case "sections.comparison":
|
|
9469
|
+
return /* @__PURE__ */ jsx62(
|
|
9470
|
+
Comparison_default,
|
|
9471
|
+
{
|
|
9472
|
+
slice
|
|
9473
|
+
},
|
|
9474
|
+
`${slice.__component}-${slice.id}`
|
|
9475
|
+
);
|
|
9476
|
+
case "sections.timeline":
|
|
9477
|
+
return /* @__PURE__ */ jsx62(Timeline_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9478
|
+
case "sections.carousel-marquee-banner":
|
|
9479
|
+
return /* @__PURE__ */ jsx62(
|
|
9480
|
+
CarouselMarqueeBanner_default,
|
|
9481
|
+
{
|
|
9482
|
+
slice
|
|
9483
|
+
},
|
|
9484
|
+
`${slice.__component}-${slice.id}`
|
|
9485
|
+
);
|
|
9486
|
+
case "sections.events":
|
|
9487
|
+
return /* @__PURE__ */ jsx62(Events_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9488
|
+
case "sections.redirect":
|
|
9489
|
+
return /* @__PURE__ */ jsx62(Redirect_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9490
|
+
case "sections.hero-with-highlights":
|
|
9491
|
+
return /* @__PURE__ */ jsx62(
|
|
9492
|
+
HeroWithHighlights_default,
|
|
9493
|
+
{
|
|
9494
|
+
slice
|
|
9495
|
+
},
|
|
9496
|
+
`${slice.__component}-${slice.id}`
|
|
9497
|
+
);
|
|
9498
|
+
default:
|
|
9499
|
+
if (CustomSlice) {
|
|
9500
|
+
return /* @__PURE__ */ jsx62(
|
|
9501
|
+
CustomSlice,
|
|
9502
|
+
{
|
|
9503
|
+
id: slice.__component,
|
|
9504
|
+
slice
|
|
9505
|
+
},
|
|
9506
|
+
`${slice.__component}-${slice.id}`
|
|
9507
|
+
);
|
|
9199
9508
|
}
|
|
9200
|
-
|
|
9201
|
-
`${slice.__component}-${slice.id}`
|
|
9202
|
-
);
|
|
9203
|
-
case "sections.customer-stories":
|
|
9204
|
-
return /* @__PURE__ */ jsx58(
|
|
9205
|
-
CustomerStories_default,
|
|
9206
|
-
{
|
|
9207
|
-
slice: {
|
|
9208
|
-
...slice,
|
|
9209
|
-
customer_stories: slice.customer_stories.data
|
|
9210
|
-
},
|
|
9211
|
-
customerStories
|
|
9212
|
-
},
|
|
9213
|
-
`${slice.__component}-${slice.id}`
|
|
9214
|
-
);
|
|
9215
|
-
case "sections.comparison":
|
|
9216
|
-
return /* @__PURE__ */ jsx58(
|
|
9217
|
-
Comparison_default,
|
|
9218
|
-
{
|
|
9219
|
-
slice
|
|
9220
|
-
},
|
|
9221
|
-
`${slice.__component}-${slice.id}`
|
|
9222
|
-
);
|
|
9223
|
-
case "sections.timeline":
|
|
9224
|
-
return /* @__PURE__ */ jsx58(Timeline_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9225
|
-
case "sections.carousel-marquee-banner":
|
|
9226
|
-
return /* @__PURE__ */ jsx58(
|
|
9227
|
-
CarouselMarqueeBanner_default,
|
|
9228
|
-
{
|
|
9229
|
-
slice
|
|
9230
|
-
},
|
|
9231
|
-
`${slice.__component}-${slice.id}`
|
|
9232
|
-
);
|
|
9233
|
-
case "sections.events":
|
|
9234
|
-
return /* @__PURE__ */ jsx58(Events_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9235
|
-
case "sections.redirect":
|
|
9236
|
-
return /* @__PURE__ */ jsx58(Redirect_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9237
|
-
default:
|
|
9238
|
-
if (CustomSlice) {
|
|
9239
|
-
return /* @__PURE__ */ jsx58(
|
|
9240
|
-
CustomSlice,
|
|
9241
|
-
{
|
|
9242
|
-
id: slice.__component,
|
|
9243
|
-
slice
|
|
9244
|
-
},
|
|
9245
|
-
`${slice.__component}-${slice.id}`
|
|
9246
|
-
);
|
|
9509
|
+
return /* @__PURE__ */ jsx62("div", { children: "Slice component not supported" }, `${slice.__component}-${slice.id}`);
|
|
9247
9510
|
}
|
|
9248
|
-
|
|
9511
|
+
})
|
|
9249
9512
|
}
|
|
9250
|
-
|
|
9513
|
+
);
|
|
9251
9514
|
export {
|
|
9252
9515
|
PreviewAlert,
|
|
9253
9516
|
SEOTags,
|