@treely/strapi-slices 8.0.4 → 8.2.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/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.map +1 -1
- package/dist/index.cjs +1359 -981
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +1285 -898
- 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 +26 -0
- package/dist/slices/Facts/Facts.d.ts.map +1 -1
- package/dist/slices/FactsWithProjectsMap/FactsWithProjectsMap.d.ts +26 -0
- package/dist/slices/FactsWithProjectsMap/FactsWithProjectsMap.d.ts.map +1 -0
- package/dist/slices/FactsWithProjectsMap/index.d.ts +3 -0
- package/dist/slices/FactsWithProjectsMap/index.d.ts.map +1 -0
- 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/slices/ProjectsMap/ProjectsMap.d.ts +6 -0
- package/dist/slices/ProjectsMap/ProjectsMap.d.ts.map +1 -1
- 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,
|
|
@@ -3538,8 +3536,8 @@ import Image18 from "next/image.js";
|
|
|
3538
3536
|
import { ArrowRightIcon as ArrowRightIcon5 } from "@phosphor-icons/react";
|
|
3539
3537
|
|
|
3540
3538
|
// src/components/ProjectGridCard/ProjectGridCard.tsx
|
|
3541
|
-
import { BoemlyTag as
|
|
3542
|
-
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";
|
|
3543
3541
|
import Image17 from "next/image.js";
|
|
3544
3542
|
|
|
3545
3543
|
// src/constants/formatter.ts
|
|
@@ -3558,10 +3556,12 @@ var FORMAT_AS_PERCENT_CONFIG = {
|
|
|
3558
3556
|
import { useContext as useContext8 } from "react";
|
|
3559
3557
|
import { BoemlyTag, Flex as Flex10, Text as Text7 } from "boemly";
|
|
3560
3558
|
import NextLink from "next/link.js";
|
|
3561
|
-
import {
|
|
3559
|
+
import { ShoppingCartIcon } from "@phosphor-icons/react";
|
|
3560
|
+
import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3562
3561
|
var CreditsAvailableBadge = ({
|
|
3563
3562
|
status,
|
|
3564
|
-
href
|
|
3563
|
+
href,
|
|
3564
|
+
variant = "default"
|
|
3565
3565
|
}) => {
|
|
3566
3566
|
const { formatMessage } = useContext8(IntlContext);
|
|
3567
3567
|
const variants2 = {
|
|
@@ -3569,7 +3569,8 @@ var CreditsAvailableBadge = ({
|
|
|
3569
3569
|
message: formatMessage({
|
|
3570
3570
|
id: "components.creditsAvailableBadge.text.yes"
|
|
3571
3571
|
}),
|
|
3572
|
-
color: "primary.800"
|
|
3572
|
+
color: "primary.800",
|
|
3573
|
+
withIconColor: "primary.700"
|
|
3573
3574
|
},
|
|
3574
3575
|
["no_credits_available" /* NO_CREDITS_AVAILABLE */]: {
|
|
3575
3576
|
message: formatMessage({
|
|
@@ -3590,8 +3591,14 @@ var CreditsAvailableBadge = ({
|
|
|
3590
3591
|
color: "blue.500"
|
|
3591
3592
|
}
|
|
3592
3593
|
};
|
|
3593
|
-
const
|
|
3594
|
-
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;
|
|
3595
3602
|
return /* @__PURE__ */ jsx24(Flex10, { justifyContent: "flex-start", children: href ? /* @__PURE__ */ jsx24(NextLink, { href, children: badge }) : badge });
|
|
3596
3603
|
};
|
|
3597
3604
|
var CreditsAvailableBadge_default = CreditsAvailableBadge;
|
|
@@ -3599,14 +3606,50 @@ var CreditsAvailableBadge_default = CreditsAvailableBadge;
|
|
|
3599
3606
|
// src/components/CreditsAvailableBadge/index.ts
|
|
3600
3607
|
var CreditsAvailableBadge_default2 = CreditsAvailableBadge_default;
|
|
3601
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
|
+
|
|
3602
3645
|
// src/components/ProjectGridCard/ProjectGridCard.tsx
|
|
3603
|
-
import { jsx as
|
|
3646
|
+
import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3604
3647
|
var ProjectGridCard = ({
|
|
3605
3648
|
project
|
|
3606
3649
|
}) => {
|
|
3607
|
-
const { formatNumber
|
|
3608
|
-
return /* @__PURE__ */
|
|
3609
|
-
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(
|
|
3610
3653
|
Image17,
|
|
3611
3654
|
{
|
|
3612
3655
|
src: strapiMediaUrl_default(project.thumbnail?.img, "medium"),
|
|
@@ -3618,20 +3661,15 @@ var ProjectGridCard = ({
|
|
|
3618
3661
|
}
|
|
3619
3662
|
}
|
|
3620
3663
|
) }),
|
|
3621
|
-
/* @__PURE__ */
|
|
3622
|
-
/* @__PURE__ */
|
|
3623
|
-
/* @__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(
|
|
3624
3667
|
(project.area || 0) / 1e4,
|
|
3625
3668
|
FORMAT_AS_HECTARE_CONFIG
|
|
3626
3669
|
) }) }),
|
|
3627
|
-
/* @__PURE__ */
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
{ year: new Date(project.certificationDate).getFullYear() }
|
|
3631
|
-
) }) }) : /* @__PURE__ */ jsx25(BoemlyTag2, { backgroundColor: "gray.100", children: /* @__PURE__ */ jsx25(Text8, { size: "xsLowBold", color: "gray.800", children: formatMessage({
|
|
3632
|
-
id: "components.projectGridCard.certificationInProgress"
|
|
3633
|
-
}) }) }),
|
|
3634
|
-
/* @__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 })
|
|
3635
3673
|
] })
|
|
3636
3674
|
] }) });
|
|
3637
3675
|
};
|
|
@@ -3640,7 +3678,7 @@ var ProjectGridCard = ({
|
|
|
3640
3678
|
var ProjectGridCard_default = ProjectGridCard;
|
|
3641
3679
|
|
|
3642
3680
|
// src/slices/TextWithCard/TextWithCard.tsx
|
|
3643
|
-
import { Fragment as Fragment15, jsx as
|
|
3681
|
+
import { Fragment as Fragment15, jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3644
3682
|
var TextWithCard = ({
|
|
3645
3683
|
slice,
|
|
3646
3684
|
projects
|
|
@@ -3648,7 +3686,7 @@ var TextWithCard = ({
|
|
|
3648
3686
|
const portfolioProject = projects.find(
|
|
3649
3687
|
(p) => slice.project?.data?.attributes.fpmProjectId && p.id === slice.project.data.attributes.fpmProjectId
|
|
3650
3688
|
);
|
|
3651
|
-
const card = /* @__PURE__ */
|
|
3689
|
+
const card = /* @__PURE__ */ jsxs24(
|
|
3652
3690
|
GridItem4,
|
|
3653
3691
|
{
|
|
3654
3692
|
colSpan: [4, null, null, null, 2],
|
|
@@ -3656,15 +3694,15 @@ var TextWithCard = ({
|
|
|
3656
3694
|
position: "relative",
|
|
3657
3695
|
"data-testid": `card-position-${slice.cardPosition}`,
|
|
3658
3696
|
children: [
|
|
3659
|
-
portfolioProject && /* @__PURE__ */
|
|
3660
|
-
!portfolioProject && slice.card && /* @__PURE__ */
|
|
3697
|
+
portfolioProject && /* @__PURE__ */ jsx27(ProjectGridCard_default, { project: portfolioProject }),
|
|
3698
|
+
!portfolioProject && slice.card && /* @__PURE__ */ jsx27(
|
|
3661
3699
|
ProjectCard,
|
|
3662
3700
|
{
|
|
3663
3701
|
facts: slice.card.facts,
|
|
3664
3702
|
footerSubTitle: slice.card.footerSubTitle,
|
|
3665
3703
|
footerTitle: slice.card.footerTitle,
|
|
3666
3704
|
title: slice.card.title,
|
|
3667
|
-
image: /* @__PURE__ */
|
|
3705
|
+
image: /* @__PURE__ */ jsx27(
|
|
3668
3706
|
Image18,
|
|
3669
3707
|
{
|
|
3670
3708
|
src: strapiMediaUrl_default(slice.card.image.img, "medium"),
|
|
@@ -3678,7 +3716,7 @@ var TextWithCard = ({
|
|
|
3678
3716
|
]
|
|
3679
3717
|
}
|
|
3680
3718
|
);
|
|
3681
|
-
return /* @__PURE__ */
|
|
3719
|
+
return /* @__PURE__ */ jsx27(DefaultSectionContainer12, { title: slice.title, children: /* @__PURE__ */ jsx27(Wrapper16, { children: /* @__PURE__ */ jsxs24(
|
|
3682
3720
|
Grid4,
|
|
3683
3721
|
{
|
|
3684
3722
|
templateColumns: [
|
|
@@ -3699,8 +3737,8 @@ var TextWithCard = ({
|
|
|
3699
3737
|
columnGap: ["0", null, null, null, "28"],
|
|
3700
3738
|
children: [
|
|
3701
3739
|
slice.cardPosition === "left" && card,
|
|
3702
|
-
/* @__PURE__ */
|
|
3703
|
-
/* @__PURE__ */
|
|
3740
|
+
/* @__PURE__ */ jsxs24(GridItem4, { colSpan: 4, rowSpan: 1, position: "relative", children: [
|
|
3741
|
+
/* @__PURE__ */ jsx27(
|
|
3704
3742
|
DefaultSectionHeader13,
|
|
3705
3743
|
{
|
|
3706
3744
|
tagline: slice.tagline,
|
|
@@ -3708,19 +3746,19 @@ var TextWithCard = ({
|
|
|
3708
3746
|
text: slice.text
|
|
3709
3747
|
}
|
|
3710
3748
|
),
|
|
3711
|
-
slice.listItems && /* @__PURE__ */
|
|
3712
|
-
/* @__PURE__ */
|
|
3713
|
-
/* @__PURE__ */
|
|
3714
|
-
/* @__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" })
|
|
3715
3753
|
] }),
|
|
3716
|
-
slice.button && /* @__PURE__ */
|
|
3754
|
+
slice.button && /* @__PURE__ */ jsx27(
|
|
3717
3755
|
StrapiLinkButton_default,
|
|
3718
3756
|
{
|
|
3719
3757
|
link: slice.button,
|
|
3720
3758
|
size: "md",
|
|
3721
3759
|
colorPalette: "white",
|
|
3722
3760
|
variant: "outline",
|
|
3723
|
-
rightIcon: /* @__PURE__ */
|
|
3761
|
+
rightIcon: /* @__PURE__ */ jsx27(ArrowRightIcon5, {}),
|
|
3724
3762
|
component: "TextWithCard"
|
|
3725
3763
|
}
|
|
3726
3764
|
)
|
|
@@ -3742,7 +3780,7 @@ import {
|
|
|
3742
3780
|
DefaultSectionHeader as DefaultSectionHeader14,
|
|
3743
3781
|
Heading as Heading9,
|
|
3744
3782
|
SimpleGrid as SimpleGrid8,
|
|
3745
|
-
Text as
|
|
3783
|
+
Text as Text10,
|
|
3746
3784
|
Wrapper as Wrapper17
|
|
3747
3785
|
} from "boemly";
|
|
3748
3786
|
import { CaretRightIcon as CaretRightIcon5 } from "@phosphor-icons/react";
|
|
@@ -3751,11 +3789,11 @@ import { CaretRightIcon as CaretRightIcon5 } from "@phosphor-icons/react";
|
|
|
3751
3789
|
var MEDIUM_TRANSITION_DURATION = 0.2;
|
|
3752
3790
|
|
|
3753
3791
|
// src/slices/LinkCardsGrid/LinkCardsGrid.tsx
|
|
3754
|
-
import { jsx as
|
|
3792
|
+
import { jsx as jsx28, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3755
3793
|
var LinkCardsGrid = ({
|
|
3756
3794
|
slice
|
|
3757
|
-
}) => /* @__PURE__ */
|
|
3758
|
-
/* @__PURE__ */
|
|
3795
|
+
}) => /* @__PURE__ */ jsx28(DefaultSectionContainer13, { title: slice.title, children: /* @__PURE__ */ jsxs25(Wrapper17, { children: [
|
|
3796
|
+
/* @__PURE__ */ jsx28(
|
|
3759
3797
|
DefaultSectionHeader14,
|
|
3760
3798
|
{
|
|
3761
3799
|
tagline: slice.tagline,
|
|
@@ -3763,7 +3801,7 @@ var LinkCardsGrid = ({
|
|
|
3763
3801
|
text: slice.text
|
|
3764
3802
|
}
|
|
3765
3803
|
),
|
|
3766
|
-
/* @__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(
|
|
3767
3805
|
Box18,
|
|
3768
3806
|
{
|
|
3769
3807
|
"data-testid": "link",
|
|
@@ -3781,11 +3819,11 @@ var LinkCardsGrid = ({
|
|
|
3781
3819
|
transitionDuration: `${MEDIUM_TRANSITION_DURATION}s`,
|
|
3782
3820
|
_hover: { backgroundColor: "gray.50" },
|
|
3783
3821
|
children: [
|
|
3784
|
-
/* @__PURE__ */
|
|
3785
|
-
/* @__PURE__ */
|
|
3786
|
-
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 })
|
|
3787
3825
|
] }),
|
|
3788
|
-
/* @__PURE__ */
|
|
3826
|
+
/* @__PURE__ */ jsx28(
|
|
3789
3827
|
Box18,
|
|
3790
3828
|
{
|
|
3791
3829
|
display: "flex",
|
|
@@ -3801,7 +3839,7 @@ var LinkCardsGrid = ({
|
|
|
3801
3839
|
minHeight: "12",
|
|
3802
3840
|
ml: "6",
|
|
3803
3841
|
backgroundColor: "white",
|
|
3804
|
-
children: /* @__PURE__ */
|
|
3842
|
+
children: /* @__PURE__ */ jsx28(CaretRightIcon5, {})
|
|
3805
3843
|
}
|
|
3806
3844
|
)
|
|
3807
3845
|
]
|
|
@@ -3814,15 +3852,15 @@ var LinkCardsGrid_default = LinkCardsGrid;
|
|
|
3814
3852
|
|
|
3815
3853
|
// src/slices/SmallHero/SmallHero.tsx
|
|
3816
3854
|
import {
|
|
3817
|
-
BoemlyTag as
|
|
3855
|
+
BoemlyTag as BoemlyTag4,
|
|
3818
3856
|
Box as Box19,
|
|
3819
3857
|
DefaultSectionHeader as DefaultSectionHeader15,
|
|
3820
|
-
Flex as
|
|
3858
|
+
Flex as Flex13,
|
|
3821
3859
|
Gradient as Gradient3,
|
|
3822
3860
|
Wrapper as Wrapper18
|
|
3823
3861
|
} from "boemly";
|
|
3824
3862
|
import Image19 from "next/image.js";
|
|
3825
|
-
import { Fragment as Fragment16, jsx as
|
|
3863
|
+
import { Fragment as Fragment16, jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3826
3864
|
var colors = {
|
|
3827
3865
|
dark: {
|
|
3828
3866
|
tagline: "white",
|
|
@@ -3840,7 +3878,7 @@ var colors = {
|
|
|
3840
3878
|
var SmallHero = ({
|
|
3841
3879
|
slice,
|
|
3842
3880
|
theme
|
|
3843
|
-
}) => /* @__PURE__ */
|
|
3881
|
+
}) => /* @__PURE__ */ jsxs26(
|
|
3844
3882
|
Box19,
|
|
3845
3883
|
{
|
|
3846
3884
|
position: "relative",
|
|
@@ -3848,8 +3886,8 @@ var SmallHero = ({
|
|
|
3848
3886
|
height: "xl",
|
|
3849
3887
|
backgroundColor: colors[theme].background,
|
|
3850
3888
|
children: [
|
|
3851
|
-
slice.image && /* @__PURE__ */
|
|
3852
|
-
/* @__PURE__ */
|
|
3889
|
+
slice.image && /* @__PURE__ */ jsxs26(Fragment16, { children: [
|
|
3890
|
+
/* @__PURE__ */ jsx29(
|
|
3853
3891
|
Image19,
|
|
3854
3892
|
{
|
|
3855
3893
|
src: strapiMediaUrl_default(slice.image.img, "xLarge"),
|
|
@@ -3858,9 +3896,9 @@ var SmallHero = ({
|
|
|
3858
3896
|
style: { objectFit: slice.image.objectFit || "cover" }
|
|
3859
3897
|
}
|
|
3860
3898
|
),
|
|
3861
|
-
slice.gradient && /* @__PURE__ */
|
|
3899
|
+
slice.gradient && /* @__PURE__ */ jsx29(Gradient3, {})
|
|
3862
3900
|
] }),
|
|
3863
|
-
/* @__PURE__ */
|
|
3901
|
+
/* @__PURE__ */ jsx29(
|
|
3864
3902
|
Box19,
|
|
3865
3903
|
{
|
|
3866
3904
|
position: "absolute",
|
|
@@ -3869,9 +3907,9 @@ var SmallHero = ({
|
|
|
3869
3907
|
width: "full",
|
|
3870
3908
|
textAlign: "center",
|
|
3871
3909
|
transform: "translateY(-50%)",
|
|
3872
|
-
children: /* @__PURE__ */
|
|
3873
|
-
slice.tags && /* @__PURE__ */
|
|
3874
|
-
|
|
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,
|
|
3875
3913
|
{
|
|
3876
3914
|
colorPalette,
|
|
3877
3915
|
size: "md",
|
|
@@ -3880,7 +3918,7 @@ var SmallHero = ({
|
|
|
3880
3918
|
},
|
|
3881
3919
|
id
|
|
3882
3920
|
)) }),
|
|
3883
|
-
/* @__PURE__ */
|
|
3921
|
+
/* @__PURE__ */ jsx29(
|
|
3884
3922
|
DefaultSectionHeader15,
|
|
3885
3923
|
{
|
|
3886
3924
|
isHero: true,
|
|
@@ -3906,7 +3944,7 @@ var SmallHero = ({
|
|
|
3906
3944
|
}
|
|
3907
3945
|
}
|
|
3908
3946
|
),
|
|
3909
|
-
slice.button && /* @__PURE__ */
|
|
3947
|
+
slice.button && /* @__PURE__ */ jsx29(
|
|
3910
3948
|
StrapiLinkButton_default,
|
|
3911
3949
|
{
|
|
3912
3950
|
link: slice.button,
|
|
@@ -3926,7 +3964,7 @@ var SmallHero = ({
|
|
|
3926
3964
|
var SmallHero_default = SmallHero;
|
|
3927
3965
|
|
|
3928
3966
|
// src/slices/Blog/Blog.tsx
|
|
3929
|
-
import { useContext as
|
|
3967
|
+
import { useContext as useContext11 } from "react";
|
|
3930
3968
|
import {
|
|
3931
3969
|
Box as Box21,
|
|
3932
3970
|
DatePersonPair,
|
|
@@ -3934,7 +3972,7 @@ import {
|
|
|
3934
3972
|
Heading as Heading10,
|
|
3935
3973
|
SimpleGrid as SimpleGrid9,
|
|
3936
3974
|
Spacer as Spacer5,
|
|
3937
|
-
Text as
|
|
3975
|
+
Text as Text11,
|
|
3938
3976
|
Wrapper as Wrapper19
|
|
3939
3977
|
} from "boemly";
|
|
3940
3978
|
import Image20 from "next/image.js";
|
|
@@ -3981,24 +4019,24 @@ var ImageContainer = styled3(Box20)`
|
|
|
3981
4019
|
`;
|
|
3982
4020
|
|
|
3983
4021
|
// src/slices/Blog/Blog.tsx
|
|
3984
|
-
import { jsx as
|
|
4022
|
+
import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3985
4023
|
var Blog = ({ slice, blogPosts }) => {
|
|
3986
|
-
const { formatDate } =
|
|
4024
|
+
const { formatDate } = useContext11(IntlContext);
|
|
3987
4025
|
const sortedBlogPosts = slice.blog_posts.sort(
|
|
3988
4026
|
(a, b) => new Date(b.attributes.createdAt).getTime() - new Date(a.attributes.createdAt).getTime()
|
|
3989
4027
|
);
|
|
3990
|
-
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 }) => {
|
|
3991
4029
|
const blogPost = blogPosts.find((bp) => bp.attributes.slug === attributes.slug);
|
|
3992
4030
|
if (!blogPost) {
|
|
3993
4031
|
return null;
|
|
3994
4032
|
}
|
|
3995
|
-
return /* @__PURE__ */
|
|
4033
|
+
return /* @__PURE__ */ jsxs27(
|
|
3996
4034
|
BlogItemContainer,
|
|
3997
4035
|
{
|
|
3998
4036
|
as: Link4,
|
|
3999
4037
|
href: `/blog/${blogPost.attributes.slug}`,
|
|
4000
4038
|
children: [
|
|
4001
|
-
/* @__PURE__ */
|
|
4039
|
+
/* @__PURE__ */ jsx30(ImageContainer, { children: /* @__PURE__ */ jsx30(
|
|
4002
4040
|
Image20,
|
|
4003
4041
|
{
|
|
4004
4042
|
src: strapiMediaUrl_default(blogPost.attributes.img.img, "large"),
|
|
@@ -4009,18 +4047,18 @@ var Blog = ({ slice, blogPosts }) => {
|
|
|
4009
4047
|
}
|
|
4010
4048
|
}
|
|
4011
4049
|
) }),
|
|
4012
|
-
/* @__PURE__ */
|
|
4013
|
-
blogPost.attributes.category.data && /* @__PURE__ */
|
|
4014
|
-
/* @__PURE__ */
|
|
4015
|
-
blogPost.attributes.teaser && /* @__PURE__ */
|
|
4016
|
-
/* @__PURE__ */
|
|
4017
|
-
/* @__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(
|
|
4018
4056
|
DatePersonPair,
|
|
4019
4057
|
{
|
|
4020
4058
|
date: formatDate(blogPost.attributes.createdAt),
|
|
4021
4059
|
person: blogPost.attributes.author.data ? {
|
|
4022
4060
|
name: blogPost.attributes.author.data.attributes.name,
|
|
4023
|
-
image: /* @__PURE__ */
|
|
4061
|
+
image: /* @__PURE__ */ jsx30(
|
|
4024
4062
|
Image20,
|
|
4025
4063
|
{
|
|
4026
4064
|
src: strapiMediaUrl_default(
|
|
@@ -4051,7 +4089,7 @@ var Blog_default = Blog;
|
|
|
4051
4089
|
// src/slices/ProjectsGrid/ProjectsGrid.tsx
|
|
4052
4090
|
import { Box as Box22, DefaultSectionContainer as DefaultSectionContainer15, SimpleGrid as SimpleGrid10, Wrapper as Wrapper20 } from "boemly";
|
|
4053
4091
|
import Link5 from "next/link.js";
|
|
4054
|
-
import { jsx as
|
|
4092
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
4055
4093
|
var ConditionalWrapper = ({
|
|
4056
4094
|
condition,
|
|
4057
4095
|
wrapper,
|
|
@@ -4066,11 +4104,11 @@ var ProjectsGrid = ({
|
|
|
4066
4104
|
(strapiProject) => strapiProject.attributes.fpmProjectId === fpmProject.id
|
|
4067
4105
|
)
|
|
4068
4106
|
);
|
|
4069
|
-
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(
|
|
4070
4108
|
ConditionalWrapper,
|
|
4071
4109
|
{
|
|
4072
4110
|
condition: !!project.slug,
|
|
4073
|
-
wrapper: (children) => /* @__PURE__ */
|
|
4111
|
+
wrapper: (children) => /* @__PURE__ */ jsx31(
|
|
4074
4112
|
Link5,
|
|
4075
4113
|
{
|
|
4076
4114
|
href: `${project.portfolioHost || ""}/portfolio/${project.slug}`,
|
|
@@ -4080,7 +4118,7 @@ var ProjectsGrid = ({
|
|
|
4080
4118
|
},
|
|
4081
4119
|
project.id
|
|
4082
4120
|
),
|
|
4083
|
-
children: /* @__PURE__ */
|
|
4121
|
+
children: /* @__PURE__ */ jsx31(
|
|
4084
4122
|
Box22,
|
|
4085
4123
|
{
|
|
4086
4124
|
as: "a",
|
|
@@ -4088,7 +4126,7 @@ var ProjectsGrid = ({
|
|
|
4088
4126
|
borderRadius: "2xl",
|
|
4089
4127
|
transition: `box-shadow ease ${MEDIUM_TRANSITION_DURATION}s`,
|
|
4090
4128
|
_hover: { boxShadow: "lg" },
|
|
4091
|
-
children: /* @__PURE__ */
|
|
4129
|
+
children: /* @__PURE__ */ jsx31(ProjectGridCard_default, { project })
|
|
4092
4130
|
}
|
|
4093
4131
|
)
|
|
4094
4132
|
},
|
|
@@ -4099,21 +4137,161 @@ var ProjectsGrid = ({
|
|
|
4099
4137
|
// src/slices/ProjectsGrid/index.ts
|
|
4100
4138
|
var ProjectsGrid_default = ProjectsGrid;
|
|
4101
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: "xl", 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-500)" }),
|
|
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-500)" }),
|
|
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
|
+
|
|
4102
4280
|
// src/slices/ProjectsMap/ProjectsMap.tsx
|
|
4103
4281
|
import {
|
|
4104
4282
|
useRef as useRef4,
|
|
4105
4283
|
useEffect as useEffect4,
|
|
4106
4284
|
useState as useState5,
|
|
4107
4285
|
useCallback as useCallback2,
|
|
4108
|
-
useContext as
|
|
4286
|
+
useContext as useContext13
|
|
4109
4287
|
} from "react";
|
|
4110
4288
|
import { Global as Global2 } from "@emotion/react";
|
|
4111
4289
|
import mapboxgl from "mapbox-gl";
|
|
4112
4290
|
import {
|
|
4113
|
-
Box as
|
|
4114
|
-
DefaultSectionContainer as
|
|
4291
|
+
Box as Box25,
|
|
4292
|
+
DefaultSectionContainer as DefaultSectionContainer17,
|
|
4115
4293
|
DefaultSectionHeader as DefaultSectionHeader16,
|
|
4116
|
-
Wrapper as
|
|
4294
|
+
Wrapper as Wrapper22
|
|
4117
4295
|
} from "boemly";
|
|
4118
4296
|
|
|
4119
4297
|
// src/constants/mapbox.ts
|
|
@@ -4842,14 +5020,16 @@ var mergeProjectData = (featureCollection, strapiProjects) => {
|
|
|
4842
5020
|
var mergeProjectData_default = mergeProjectData;
|
|
4843
5021
|
|
|
4844
5022
|
// src/slices/ProjectsMap/ProjectsMap.tsx
|
|
4845
|
-
import { Fragment as Fragment17, jsx as
|
|
5023
|
+
import { Fragment as Fragment17, jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4846
5024
|
var projectPinImage = "https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.0.2/assets/fill/map-pin-fill.svg";
|
|
4847
5025
|
mapboxgl.accessToken = MAPBOX_TOKEN;
|
|
4848
5026
|
var FALLBACK_BBOX = "-1.9950830850086163,44.4464186384987,21.995083085002875,54.12644342419196";
|
|
4849
5027
|
var ProjectsMap = ({
|
|
4850
|
-
slice
|
|
5028
|
+
slice,
|
|
5029
|
+
embedded = false,
|
|
5030
|
+
embeddedHeight = "md"
|
|
4851
5031
|
}) => {
|
|
4852
|
-
const { locale, formatMessage } =
|
|
5032
|
+
const { locale, formatMessage } = useContext13(IntlContext);
|
|
4853
5033
|
const mapContainer = useRef4(null);
|
|
4854
5034
|
const map = useRef4(null);
|
|
4855
5035
|
const animationIntervalRef = useRef4(null);
|
|
@@ -5166,7 +5346,8 @@ var ProjectsMap = ({
|
|
|
5166
5346
|
style: "mapbox://styles/mapbox/streets-v12",
|
|
5167
5347
|
center: initialCenter,
|
|
5168
5348
|
zoom: initialZoom,
|
|
5169
|
-
maxZoom: MAPBOX_MAX_ZOOM
|
|
5349
|
+
maxZoom: MAPBOX_MAX_ZOOM,
|
|
5350
|
+
minZoom: slice.minZoomLevel
|
|
5170
5351
|
});
|
|
5171
5352
|
map.current.addControl(new mapboxgl.NavigationControl(), "top-right");
|
|
5172
5353
|
map.current.on("load", () => {
|
|
@@ -5194,6 +5375,7 @@ var ProjectsMap = ({
|
|
|
5194
5375
|
}, [
|
|
5195
5376
|
slice.defaultCenterCoordinates,
|
|
5196
5377
|
slice.defaultZoomLevel,
|
|
5378
|
+
slice.minZoomLevel,
|
|
5197
5379
|
debouncedUpdateBbox
|
|
5198
5380
|
]);
|
|
5199
5381
|
useEffect4(() => {
|
|
@@ -5212,7 +5394,7 @@ var ProjectsMap = ({
|
|
|
5212
5394
|
const bbox = `${longitude - buffer},${latitude - buffer},${longitude + buffer},${latitude + buffer}`;
|
|
5213
5395
|
initialBboxRef.current = bbox;
|
|
5214
5396
|
fetchProjectsData(bbox);
|
|
5215
|
-
} else if (navigator.geolocation) {
|
|
5397
|
+
} else if (navigator.geolocation && !slice.disableUserLocationZoom) {
|
|
5216
5398
|
initialBboxRef.current = FALLBACK_BBOX;
|
|
5217
5399
|
fetchProjectsData(FALLBACK_BBOX);
|
|
5218
5400
|
navigator.geolocation.getCurrentPosition(
|
|
@@ -5243,6 +5425,7 @@ var ProjectsMap = ({
|
|
|
5243
5425
|
}, [
|
|
5244
5426
|
slice.defaultCenterCoordinates,
|
|
5245
5427
|
slice.defaultZoomLevel,
|
|
5428
|
+
slice.disableUserLocationZoom,
|
|
5246
5429
|
fetchProjectsData
|
|
5247
5430
|
]);
|
|
5248
5431
|
useEffect4(() => {
|
|
@@ -5250,11 +5433,25 @@ var ProjectsMap = ({
|
|
|
5250
5433
|
addProjectsLayer();
|
|
5251
5434
|
}
|
|
5252
5435
|
}, [isMapReady, featureCollection, addProjectsLayer]);
|
|
5253
|
-
|
|
5254
|
-
/* @__PURE__ */
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5436
|
+
if (embedded) {
|
|
5437
|
+
return /* @__PURE__ */ jsxs29(Fragment17, { children: [
|
|
5438
|
+
/* @__PURE__ */ jsx34(Global2, { styles: mapboxStyle_default }),
|
|
5439
|
+
/* @__PURE__ */ jsx34(
|
|
5440
|
+
Box25,
|
|
5441
|
+
{
|
|
5442
|
+
height: embeddedHeight,
|
|
5443
|
+
ref: mapContainer,
|
|
5444
|
+
borderRadius: "xl",
|
|
5445
|
+
overflow: "hidden"
|
|
5446
|
+
}
|
|
5447
|
+
)
|
|
5448
|
+
] });
|
|
5449
|
+
}
|
|
5450
|
+
return /* @__PURE__ */ jsxs29(DefaultSectionContainer17, { children: [
|
|
5451
|
+
/* @__PURE__ */ jsx34(Global2, { styles: mapboxStyle_default }),
|
|
5452
|
+
/* @__PURE__ */ jsxs29(Wrapper22, { children: [
|
|
5453
|
+
slice.title && /* @__PURE__ */ jsxs29(Fragment17, { children: [
|
|
5454
|
+
/* @__PURE__ */ jsx34(
|
|
5258
5455
|
DefaultSectionHeader16,
|
|
5259
5456
|
{
|
|
5260
5457
|
tagline: slice.tagline,
|
|
@@ -5273,10 +5470,10 @@ var ProjectsMap = ({
|
|
|
5273
5470
|
}
|
|
5274
5471
|
}
|
|
5275
5472
|
),
|
|
5276
|
-
/* @__PURE__ */
|
|
5277
|
-
] })
|
|
5278
|
-
/* @__PURE__ */
|
|
5279
|
-
|
|
5473
|
+
/* @__PURE__ */ jsx34(Box25, { height: "16" })
|
|
5474
|
+
] }),
|
|
5475
|
+
/* @__PURE__ */ jsx34(
|
|
5476
|
+
Box25,
|
|
5280
5477
|
{
|
|
5281
5478
|
height: "xl",
|
|
5282
5479
|
ref: mapContainer,
|
|
@@ -5285,7 +5482,7 @@ var ProjectsMap = ({
|
|
|
5285
5482
|
boxShadow: ["md", null, null, "none"]
|
|
5286
5483
|
}
|
|
5287
5484
|
),
|
|
5288
|
-
|
|
5485
|
+
isLoading && /* @__PURE__ */ jsx34(Box25, { children: "Loading projects..." })
|
|
5289
5486
|
] })
|
|
5290
5487
|
] });
|
|
5291
5488
|
};
|
|
@@ -5295,14 +5492,14 @@ var ProjectsMap_default = ProjectsMap;
|
|
|
5295
5492
|
|
|
5296
5493
|
// src/slices/Video/Video.tsx
|
|
5297
5494
|
import { useRef as useRef5 } from "react";
|
|
5298
|
-
import { Box as
|
|
5495
|
+
import { Box as Box26, DefaultSectionContainer as DefaultSectionContainer18, Wrapper as Wrapper23 } from "boemly";
|
|
5299
5496
|
import { useMeasure as useMeasure2 } from "@reactuses/core";
|
|
5300
|
-
import { jsx as
|
|
5497
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
5301
5498
|
var Video = ({ slice }) => {
|
|
5302
5499
|
const ref = useRef5(null);
|
|
5303
5500
|
const [rect] = useMeasure2(ref);
|
|
5304
5501
|
const width = rect.width;
|
|
5305
|
-
return /* @__PURE__ */
|
|
5502
|
+
return /* @__PURE__ */ jsx35(DefaultSectionContainer18, { children: /* @__PURE__ */ jsx35(Wrapper23, { children: /* @__PURE__ */ jsx35(Box26, { ref, borderRadius: "xl", children: /* @__PURE__ */ jsx35(
|
|
5306
5503
|
"iframe",
|
|
5307
5504
|
{
|
|
5308
5505
|
"data-testid": "video-iframe",
|
|
@@ -5323,17 +5520,17 @@ var Video_default = Video;
|
|
|
5323
5520
|
|
|
5324
5521
|
// src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.tsx
|
|
5325
5522
|
import {
|
|
5326
|
-
DefaultSectionContainer as
|
|
5327
|
-
Wrapper as
|
|
5523
|
+
DefaultSectionContainer as DefaultSectionContainer19,
|
|
5524
|
+
Wrapper as Wrapper24,
|
|
5328
5525
|
AvatarWithName,
|
|
5329
|
-
Text as
|
|
5330
|
-
Box as
|
|
5526
|
+
Text as Text13,
|
|
5527
|
+
Box as Box27
|
|
5331
5528
|
} from "boemly";
|
|
5332
|
-
import { jsx as
|
|
5333
|
-
var FullWidthHighlightQuote = ({ slice }) => /* @__PURE__ */
|
|
5334
|
-
/* @__PURE__ */
|
|
5335
|
-
slice.tagline && /* @__PURE__ */
|
|
5336
|
-
|
|
5529
|
+
import { jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5530
|
+
var FullWidthHighlightQuote = ({ slice }) => /* @__PURE__ */ jsx36(DefaultSectionContainer19, { children: /* @__PURE__ */ jsxs30(Wrapper24, { children: [
|
|
5531
|
+
/* @__PURE__ */ jsxs30(Box27, { maxWidth: "5xl", marginX: "auto", mb: "8", children: [
|
|
5532
|
+
slice.tagline && /* @__PURE__ */ jsx36(
|
|
5533
|
+
Text13,
|
|
5337
5534
|
{
|
|
5338
5535
|
color: "primary.700",
|
|
5339
5536
|
size: "mdMonoUppercase",
|
|
@@ -5342,9 +5539,9 @@ var FullWidthHighlightQuote = ({ slice }) => /* @__PURE__ */ jsx33(DefaultSectio
|
|
|
5342
5539
|
children: slice.tagline
|
|
5343
5540
|
}
|
|
5344
5541
|
),
|
|
5345
|
-
/* @__PURE__ */
|
|
5542
|
+
/* @__PURE__ */ jsx36(Text13, { color: "black", size: "xlRegularNormalBold", textAlign: "center", children: slice.quote })
|
|
5346
5543
|
] }),
|
|
5347
|
-
/* @__PURE__ */
|
|
5544
|
+
/* @__PURE__ */ jsx36(
|
|
5348
5545
|
AvatarWithName,
|
|
5349
5546
|
{
|
|
5350
5547
|
name: slice.avatarWithName.name,
|
|
@@ -5363,14 +5560,14 @@ var FullWidthHighlightQuote_default = FullWidthHighlightQuote;
|
|
|
5363
5560
|
// src/slices/FullWidthImageSlider/FullWidthImageSlider.tsx
|
|
5364
5561
|
import { useMemo as useMemo3, useRef as useRef6, useState as useState6 } from "react";
|
|
5365
5562
|
import {
|
|
5366
|
-
Box as
|
|
5563
|
+
Box as Box29,
|
|
5367
5564
|
IconButton as IconButton3,
|
|
5368
|
-
DefaultSectionContainer as
|
|
5369
|
-
Flex as
|
|
5370
|
-
Text as
|
|
5565
|
+
DefaultSectionContainer as DefaultSectionContainer20,
|
|
5566
|
+
Flex as Flex15,
|
|
5567
|
+
Text as Text14,
|
|
5371
5568
|
useMediaQuery as useMediaQuery5
|
|
5372
5569
|
} from "boemly";
|
|
5373
|
-
import
|
|
5570
|
+
import Image22 from "next/image.js";
|
|
5374
5571
|
import { useMeasure as useMeasure3, useWindowSize as useWindowSize3 } from "@reactuses/core";
|
|
5375
5572
|
import { AnimatePresence as AnimatePresence2, motion as motion4 } from "framer-motion";
|
|
5376
5573
|
import { ArrowLeftIcon as ArrowLeftIcon2, ArrowRightIcon as ArrowRightIcon6 } from "@phosphor-icons/react";
|
|
@@ -5378,8 +5575,8 @@ import { ArrowLeftIcon as ArrowLeftIcon2, ArrowRightIcon as ArrowRightIcon6 } fr
|
|
|
5378
5575
|
// src/slices/FullWidthImageSlider/styles.ts
|
|
5379
5576
|
import { motion as motion3 } from "framer-motion";
|
|
5380
5577
|
import styled4 from "@emotion/styled";
|
|
5381
|
-
import { Box as
|
|
5382
|
-
var SliderContainer = styled4(
|
|
5578
|
+
import { Box as Box28 } from "boemly";
|
|
5579
|
+
var SliderContainer = styled4(Box28)`
|
|
5383
5580
|
--mobile-image-width: calc(100vw - var(--boemly-spacing-24));
|
|
5384
5581
|
--desktop-image-width: var(--boemly-sizes-md);
|
|
5385
5582
|
|
|
@@ -5408,7 +5605,7 @@ var SliderInnerContainer = styled4(
|
|
|
5408
5605
|
|
|
5409
5606
|
width: fit-content;
|
|
5410
5607
|
`;
|
|
5411
|
-
var ItemContainer = styled4(
|
|
5608
|
+
var ItemContainer = styled4(Box28)`
|
|
5412
5609
|
width: var(--desktop-image-width);
|
|
5413
5610
|
|
|
5414
5611
|
:last-of-type {
|
|
@@ -5419,7 +5616,7 @@ var ItemContainer = styled4(Box26)`
|
|
|
5419
5616
|
width: var(--mobile-image-width);
|
|
5420
5617
|
}
|
|
5421
5618
|
`;
|
|
5422
|
-
var ImageContainer2 = styled4(
|
|
5619
|
+
var ImageContainer2 = styled4(Box28)`
|
|
5423
5620
|
position: relative;
|
|
5424
5621
|
|
|
5425
5622
|
max-height: var(--boemly-sizes-xl);
|
|
@@ -5460,7 +5657,7 @@ var getClosestRatio = (width, height) => {
|
|
|
5460
5657
|
};
|
|
5461
5658
|
|
|
5462
5659
|
// src/slices/FullWidthImageSlider/FullWidthImageSlider.tsx
|
|
5463
|
-
import { jsx as
|
|
5660
|
+
import { jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5464
5661
|
var ITEM_GAP2 = 24;
|
|
5465
5662
|
var MAX_OFFSET_RIGHT2 = 162;
|
|
5466
5663
|
var FullWidthImageSlider = ({
|
|
@@ -5495,8 +5692,8 @@ var FullWidthImageSlider = ({
|
|
|
5495
5692
|
return offsetRight < MAX_OFFSET_RIGHT2;
|
|
5496
5693
|
}, [imageWidth, sliderIndex, sliderItemsWidth, windowWidth]);
|
|
5497
5694
|
const canMoveLeft = useMemo3(() => sliderIndex !== 0, [sliderIndex]);
|
|
5498
|
-
return /* @__PURE__ */
|
|
5499
|
-
/* @__PURE__ */
|
|
5695
|
+
return /* @__PURE__ */ jsxs31(DefaultSectionContainer20, { children: [
|
|
5696
|
+
/* @__PURE__ */ jsx37(SliderContainer, { ref: containerRef, children: /* @__PURE__ */ jsx37(
|
|
5500
5697
|
SliderInnerContainer,
|
|
5501
5698
|
{
|
|
5502
5699
|
animate: {
|
|
@@ -5507,8 +5704,8 @@ var FullWidthImageSlider = ({
|
|
|
5507
5704
|
ease: "easeInOut"
|
|
5508
5705
|
},
|
|
5509
5706
|
imageCount: slice.images.length,
|
|
5510
|
-
children: slice.images.map((image, index) => /* @__PURE__ */
|
|
5511
|
-
|
|
5707
|
+
children: slice.images.map((image, index) => /* @__PURE__ */ jsx37(ItemContainer, { ref: imageRef, children: /* @__PURE__ */ jsxs31(
|
|
5708
|
+
Flex15,
|
|
5512
5709
|
{
|
|
5513
5710
|
height: "full",
|
|
5514
5711
|
width: "full",
|
|
@@ -5516,15 +5713,15 @@ var FullWidthImageSlider = ({
|
|
|
5516
5713
|
flexDirection: "column",
|
|
5517
5714
|
gap: "2",
|
|
5518
5715
|
children: [
|
|
5519
|
-
/* @__PURE__ */
|
|
5716
|
+
/* @__PURE__ */ jsx37(
|
|
5520
5717
|
ImageContainer2,
|
|
5521
5718
|
{
|
|
5522
5719
|
aspectRatio: getClosestRatio(
|
|
5523
5720
|
image.img.img.data.attributes.width,
|
|
5524
5721
|
image.img.img.data.attributes.height
|
|
5525
5722
|
),
|
|
5526
|
-
children: /* @__PURE__ */
|
|
5527
|
-
|
|
5723
|
+
children: /* @__PURE__ */ jsx37(
|
|
5724
|
+
Image22,
|
|
5528
5725
|
{
|
|
5529
5726
|
src: strapiMediaUrl_default(image.img.img, "large"),
|
|
5530
5727
|
alt: image.img.alt,
|
|
@@ -5541,14 +5738,14 @@ var FullWidthImageSlider = ({
|
|
|
5541
5738
|
)
|
|
5542
5739
|
}
|
|
5543
5740
|
),
|
|
5544
|
-
/* @__PURE__ */
|
|
5741
|
+
/* @__PURE__ */ jsx37(Text14, { lineClamp: 3, height: "72px", fontSize: "md", children: image.caption })
|
|
5545
5742
|
]
|
|
5546
5743
|
}
|
|
5547
5744
|
) }, image.id))
|
|
5548
5745
|
}
|
|
5549
5746
|
) }),
|
|
5550
|
-
/* @__PURE__ */
|
|
5551
|
-
|
|
5747
|
+
/* @__PURE__ */ jsxs31(
|
|
5748
|
+
Box29,
|
|
5552
5749
|
{
|
|
5553
5750
|
display: ["none", null, null, !!allowScroll ? "flex" : "none"],
|
|
5554
5751
|
pointerEvents: "none",
|
|
@@ -5560,13 +5757,13 @@ var FullWidthImageSlider = ({
|
|
|
5560
5757
|
px: "32",
|
|
5561
5758
|
justifyContent: "space-between",
|
|
5562
5759
|
children: [
|
|
5563
|
-
/* @__PURE__ */
|
|
5760
|
+
/* @__PURE__ */ jsx37(Box29, { children: /* @__PURE__ */ jsx37(AnimatePresence2, { children: canMoveLeft && /* @__PURE__ */ jsx37(
|
|
5564
5761
|
motion4.div,
|
|
5565
5762
|
{
|
|
5566
5763
|
initial: { opacity: 0 },
|
|
5567
5764
|
animate: { opacity: 1 },
|
|
5568
5765
|
exit: { opacity: 0 },
|
|
5569
|
-
children: /* @__PURE__ */
|
|
5766
|
+
children: /* @__PURE__ */ jsx37(
|
|
5570
5767
|
IconButton3,
|
|
5571
5768
|
{
|
|
5572
5769
|
size: "lg",
|
|
@@ -5574,19 +5771,19 @@ var FullWidthImageSlider = ({
|
|
|
5574
5771
|
onClick: () => setSliderIndex(sliderIndex - 1),
|
|
5575
5772
|
"aria-label": "Move left",
|
|
5576
5773
|
pointerEvents: "auto",
|
|
5577
|
-
children: /* @__PURE__ */
|
|
5774
|
+
children: /* @__PURE__ */ jsx37(ArrowLeftIcon2, { size: 16 })
|
|
5578
5775
|
}
|
|
5579
5776
|
)
|
|
5580
5777
|
},
|
|
5581
5778
|
"leftButton"
|
|
5582
5779
|
) }) }),
|
|
5583
|
-
/* @__PURE__ */
|
|
5780
|
+
/* @__PURE__ */ jsx37(Box29, { children: /* @__PURE__ */ jsx37(AnimatePresence2, { children: canMoveRight && /* @__PURE__ */ jsx37(
|
|
5584
5781
|
motion4.div,
|
|
5585
5782
|
{
|
|
5586
5783
|
initial: { opacity: 0 },
|
|
5587
5784
|
animate: { opacity: 1 },
|
|
5588
5785
|
exit: { opacity: 0 },
|
|
5589
|
-
children: /* @__PURE__ */
|
|
5786
|
+
children: /* @__PURE__ */ jsx37(
|
|
5590
5787
|
IconButton3,
|
|
5591
5788
|
{
|
|
5592
5789
|
size: "lg",
|
|
@@ -5594,7 +5791,7 @@ var FullWidthImageSlider = ({
|
|
|
5594
5791
|
onClick: () => setSliderIndex(sliderIndex + 1),
|
|
5595
5792
|
"aria-label": "Move right",
|
|
5596
5793
|
pointerEvents: "auto",
|
|
5597
|
-
children: /* @__PURE__ */
|
|
5794
|
+
children: /* @__PURE__ */ jsx37(ArrowRightIcon6, { size: 16 })
|
|
5598
5795
|
}
|
|
5599
5796
|
)
|
|
5600
5797
|
},
|
|
@@ -5603,7 +5800,7 @@ var FullWidthImageSlider = ({
|
|
|
5603
5800
|
]
|
|
5604
5801
|
}
|
|
5605
5802
|
),
|
|
5606
|
-
/* @__PURE__ */
|
|
5803
|
+
/* @__PURE__ */ jsx37(
|
|
5607
5804
|
FullScreenImage_default,
|
|
5608
5805
|
{
|
|
5609
5806
|
images: slice.images.map((image) => image.img),
|
|
@@ -5621,26 +5818,26 @@ var FullWidthImageSlider_default = FullWidthImageSlider;
|
|
|
5621
5818
|
|
|
5622
5819
|
// src/slices/SideBySideImages/SideBySideImages.tsx
|
|
5623
5820
|
import {
|
|
5624
|
-
Box as
|
|
5625
|
-
DefaultSectionContainer as
|
|
5821
|
+
Box as Box30,
|
|
5822
|
+
DefaultSectionContainer as DefaultSectionContainer21,
|
|
5626
5823
|
Grid as Grid5,
|
|
5627
5824
|
GridItem as GridItem5,
|
|
5628
|
-
SimpleGrid as
|
|
5629
|
-
Text as
|
|
5630
|
-
Wrapper as
|
|
5825
|
+
SimpleGrid as SimpleGrid12,
|
|
5826
|
+
Text as Text15,
|
|
5827
|
+
Wrapper as Wrapper25
|
|
5631
5828
|
} from "boemly";
|
|
5632
|
-
import
|
|
5633
|
-
import { jsx as
|
|
5829
|
+
import Image23 from "next/image.js";
|
|
5830
|
+
import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5634
5831
|
var SideBySideImages = ({
|
|
5635
5832
|
slice
|
|
5636
|
-
}) => /* @__PURE__ */
|
|
5637
|
-
|
|
5833
|
+
}) => /* @__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(
|
|
5834
|
+
SimpleGrid12,
|
|
5638
5835
|
{
|
|
5639
5836
|
columns: [1, null, null, 2],
|
|
5640
5837
|
gap: ["12", null, null, "6"],
|
|
5641
|
-
children: slice.images.map((image) => /* @__PURE__ */
|
|
5642
|
-
/* @__PURE__ */
|
|
5643
|
-
|
|
5838
|
+
children: slice.images.map((image) => /* @__PURE__ */ jsxs32(Box30, { children: [
|
|
5839
|
+
/* @__PURE__ */ jsx38(Box30, { height: "md", position: "relative", borderRadius: "xl", children: /* @__PURE__ */ jsx38(
|
|
5840
|
+
Image23,
|
|
5644
5841
|
{
|
|
5645
5842
|
src: strapiMediaUrl_default(image.img.img, "large"),
|
|
5646
5843
|
alt: image.img.alt,
|
|
@@ -5651,7 +5848,7 @@ var SideBySideImages = ({
|
|
|
5651
5848
|
}
|
|
5652
5849
|
}
|
|
5653
5850
|
) }),
|
|
5654
|
-
/* @__PURE__ */
|
|
5851
|
+
/* @__PURE__ */ jsx38(Text15, { mt: "3", size: "xsLowNormal", children: image.caption })
|
|
5655
5852
|
] }, image.id))
|
|
5656
5853
|
}
|
|
5657
5854
|
) }) }) }) });
|
|
@@ -5660,19 +5857,19 @@ var SideBySideImages = ({
|
|
|
5660
5857
|
var SideBySideImages_default = SideBySideImages;
|
|
5661
5858
|
|
|
5662
5859
|
// src/slices/Cta/Cta.tsx
|
|
5663
|
-
import { useContext as
|
|
5860
|
+
import { useContext as useContext14 } from "react";
|
|
5664
5861
|
import {
|
|
5665
|
-
Box as
|
|
5862
|
+
Box as Box31,
|
|
5666
5863
|
Container as Container2,
|
|
5667
|
-
DefaultSectionContainer as
|
|
5864
|
+
DefaultSectionContainer as DefaultSectionContainer22,
|
|
5668
5865
|
DefaultSectionHeader as DefaultSectionHeader17,
|
|
5669
|
-
Flex as
|
|
5866
|
+
Flex as Flex16,
|
|
5670
5867
|
Gradient as Gradient4,
|
|
5671
5868
|
Spacer as Spacer6,
|
|
5672
|
-
Wrapper as
|
|
5869
|
+
Wrapper as Wrapper26
|
|
5673
5870
|
} from "boemly";
|
|
5674
|
-
import
|
|
5675
|
-
import { Fragment as Fragment18, jsx as
|
|
5871
|
+
import Image24 from "next/image.js";
|
|
5872
|
+
import { Fragment as Fragment18, jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
5676
5873
|
var STATES = {
|
|
5677
5874
|
left: {
|
|
5678
5875
|
textAlign: "left",
|
|
@@ -5804,15 +6001,15 @@ var getTypeOfCard = (ctaCard) => {
|
|
|
5804
6001
|
return "right" /* Right */;
|
|
5805
6002
|
};
|
|
5806
6003
|
var Cta = ({ slice }) => {
|
|
5807
|
-
const { formatMessage } =
|
|
5808
|
-
return /* @__PURE__ */
|
|
5809
|
-
|
|
6004
|
+
const { formatMessage } = useContext14(IntlContext);
|
|
6005
|
+
return /* @__PURE__ */ jsx39(
|
|
6006
|
+
DefaultSectionContainer22,
|
|
5810
6007
|
{
|
|
5811
6008
|
backgroundColor: VARIANTS2[slice.variant].backgroundColor.left,
|
|
5812
6009
|
title: slice.title,
|
|
5813
|
-
children: /* @__PURE__ */
|
|
5814
|
-
slice.title ? /* @__PURE__ */
|
|
5815
|
-
/* @__PURE__ */
|
|
6010
|
+
children: /* @__PURE__ */ jsxs33(Wrapper26, { children: [
|
|
6011
|
+
slice.title ? /* @__PURE__ */ jsxs33(Fragment18, { children: [
|
|
6012
|
+
/* @__PURE__ */ jsx39(Flex16, { alignItems: "center", flexDirection: "column", children: /* @__PURE__ */ jsx39(
|
|
5816
6013
|
DefaultSectionHeader17,
|
|
5817
6014
|
{
|
|
5818
6015
|
tagline: slice.tagline,
|
|
@@ -5836,19 +6033,19 @@ var Cta = ({ slice }) => {
|
|
|
5836
6033
|
}
|
|
5837
6034
|
}
|
|
5838
6035
|
) }),
|
|
5839
|
-
/* @__PURE__ */
|
|
5840
|
-
] }) : /* @__PURE__ */
|
|
5841
|
-
/* @__PURE__ */
|
|
6036
|
+
/* @__PURE__ */ jsx39(Spacer6, { height: ["16", null, null, null, "20"] })
|
|
6037
|
+
] }) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6038
|
+
/* @__PURE__ */ jsx39(Flex16, { gap: "4", flexDirection: "column", children: slice.ctaCards.map((ctaCard) => {
|
|
5842
6039
|
const ctaCardType = getTypeOfCard(ctaCard);
|
|
5843
|
-
return /* @__PURE__ */
|
|
6040
|
+
return /* @__PURE__ */ jsxs33(
|
|
5844
6041
|
Container2,
|
|
5845
6042
|
{
|
|
5846
6043
|
backgroundColor: VARIANTS2[ctaCard.variant].backgroundColor[ctaCardType],
|
|
5847
6044
|
position: "relative",
|
|
5848
6045
|
elevation: "none",
|
|
5849
6046
|
children: [
|
|
5850
|
-
ctaCard.image && ctaCardType === "centerWithImage" /* CenterWithImage */ ? /* @__PURE__ */
|
|
5851
|
-
|
|
6047
|
+
ctaCard.image && ctaCardType === "centerWithImage" /* CenterWithImage */ ? /* @__PURE__ */ jsxs33(
|
|
6048
|
+
Box31,
|
|
5852
6049
|
{
|
|
5853
6050
|
position: "absolute",
|
|
5854
6051
|
left: "0",
|
|
@@ -5858,8 +6055,8 @@ var Cta = ({ slice }) => {
|
|
|
5858
6055
|
borderRadius: "xl",
|
|
5859
6056
|
overflow: "hidden",
|
|
5860
6057
|
children: [
|
|
5861
|
-
/* @__PURE__ */
|
|
5862
|
-
|
|
6058
|
+
/* @__PURE__ */ jsx39(
|
|
6059
|
+
Image24,
|
|
5863
6060
|
{
|
|
5864
6061
|
src: strapiMediaUrl_default(ctaCard.image.img, "large"),
|
|
5865
6062
|
alt: ctaCard.image.alt,
|
|
@@ -5870,20 +6067,20 @@ var Cta = ({ slice }) => {
|
|
|
5870
6067
|
}
|
|
5871
6068
|
}
|
|
5872
6069
|
),
|
|
5873
|
-
/* @__PURE__ */
|
|
6070
|
+
/* @__PURE__ */ jsx39(Gradient4, {})
|
|
5874
6071
|
]
|
|
5875
6072
|
}
|
|
5876
|
-
) : /* @__PURE__ */
|
|
5877
|
-
ctaCard.backgroundShape ? /* @__PURE__ */
|
|
5878
|
-
|
|
6073
|
+
) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6074
|
+
ctaCard.backgroundShape ? /* @__PURE__ */ jsx39(
|
|
6075
|
+
Box31,
|
|
5879
6076
|
{
|
|
5880
6077
|
position: "absolute",
|
|
5881
6078
|
left: "0",
|
|
5882
6079
|
top: "0",
|
|
5883
6080
|
width: "full",
|
|
5884
6081
|
height: "full",
|
|
5885
|
-
children: /* @__PURE__ */
|
|
5886
|
-
|
|
6082
|
+
children: /* @__PURE__ */ jsx39(
|
|
6083
|
+
Image24,
|
|
5887
6084
|
{
|
|
5888
6085
|
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`,
|
|
5889
6086
|
alt: formatMessage({
|
|
@@ -5897,23 +6094,23 @@ var Cta = ({ slice }) => {
|
|
|
5897
6094
|
}
|
|
5898
6095
|
)
|
|
5899
6096
|
}
|
|
5900
|
-
) : /* @__PURE__ */
|
|
5901
|
-
/* @__PURE__ */
|
|
5902
|
-
|
|
6097
|
+
) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6098
|
+
/* @__PURE__ */ jsxs33(
|
|
6099
|
+
Flex16,
|
|
5903
6100
|
{
|
|
5904
6101
|
flexDir: ["column", null, null, null, "row"],
|
|
5905
6102
|
flexGrow: "1",
|
|
5906
6103
|
gap: ["8", null, null, null, "16"],
|
|
5907
6104
|
justifyContent: STATES[ctaCardType].justifyContent,
|
|
5908
6105
|
children: [
|
|
5909
|
-
ctaCard.image && ctaCardType === "right" /* Right */ ? /* @__PURE__ */
|
|
5910
|
-
|
|
6106
|
+
ctaCard.image && ctaCardType === "right" /* Right */ ? /* @__PURE__ */ jsx39(
|
|
6107
|
+
Box31,
|
|
5911
6108
|
{
|
|
5912
6109
|
position: "relative",
|
|
5913
6110
|
height: ["3xs", null, null, null, "auto"],
|
|
5914
6111
|
minWidth: [null, null, null, null, "50%"],
|
|
5915
|
-
children: /* @__PURE__ */
|
|
5916
|
-
|
|
6112
|
+
children: /* @__PURE__ */ jsx39(
|
|
6113
|
+
Image24,
|
|
5917
6114
|
{
|
|
5918
6115
|
src: strapiMediaUrl_default(ctaCard.image.img, "xLarge"),
|
|
5919
6116
|
alt: ctaCard.image.alt,
|
|
@@ -5925,17 +6122,17 @@ var Cta = ({ slice }) => {
|
|
|
5925
6122
|
}
|
|
5926
6123
|
)
|
|
5927
6124
|
}
|
|
5928
|
-
) : /* @__PURE__ */
|
|
5929
|
-
/* @__PURE__ */
|
|
5930
|
-
|
|
6125
|
+
) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6126
|
+
/* @__PURE__ */ jsxs33(
|
|
6127
|
+
Box31,
|
|
5931
6128
|
{
|
|
5932
6129
|
zIndex: "base",
|
|
5933
6130
|
marginLeft: STATES[ctaCardType].textMarginLeft,
|
|
5934
6131
|
marginRight: STATES[ctaCardType].textMarginRight,
|
|
5935
6132
|
maxWidth: "3xl",
|
|
5936
6133
|
children: [
|
|
5937
|
-
/* @__PURE__ */
|
|
5938
|
-
/* @__PURE__ */
|
|
6134
|
+
/* @__PURE__ */ jsx39(Spacer6, { height: ["0", null, null, null, "20"] }),
|
|
6135
|
+
/* @__PURE__ */ jsx39(
|
|
5939
6136
|
DefaultSectionHeader17,
|
|
5940
6137
|
{
|
|
5941
6138
|
tagline: ctaCard.tagline,
|
|
@@ -5973,14 +6170,14 @@ var Cta = ({ slice }) => {
|
|
|
5973
6170
|
}
|
|
5974
6171
|
}
|
|
5975
6172
|
),
|
|
5976
|
-
ctaCard.buttons && ctaCard.buttons.length > 0 ? /* @__PURE__ */
|
|
5977
|
-
/* @__PURE__ */
|
|
5978
|
-
/* @__PURE__ */
|
|
5979
|
-
|
|
6173
|
+
ctaCard.buttons && ctaCard.buttons.length > 0 ? /* @__PURE__ */ jsxs33(Fragment18, { children: [
|
|
6174
|
+
/* @__PURE__ */ jsx39(Spacer6, { height: "8" }),
|
|
6175
|
+
/* @__PURE__ */ jsx39(
|
|
6176
|
+
Flex16,
|
|
5980
6177
|
{
|
|
5981
6178
|
gap: "2",
|
|
5982
6179
|
justifyContent: STATES[ctaCardType].buttonJustifyContent,
|
|
5983
|
-
children: ctaCard.buttons && ctaCard.buttons.map((button) => /* @__PURE__ */
|
|
6180
|
+
children: ctaCard.buttons && ctaCard.buttons.map((button) => /* @__PURE__ */ jsx39(
|
|
5984
6181
|
StrapiLinkButton_default,
|
|
5985
6182
|
{
|
|
5986
6183
|
link: button.button,
|
|
@@ -5992,19 +6189,19 @@ var Cta = ({ slice }) => {
|
|
|
5992
6189
|
))
|
|
5993
6190
|
}
|
|
5994
6191
|
)
|
|
5995
|
-
] }) : /* @__PURE__ */
|
|
5996
|
-
/* @__PURE__ */
|
|
6192
|
+
] }) : /* @__PURE__ */ jsx39(Fragment18, {}),
|
|
6193
|
+
/* @__PURE__ */ jsx39(Spacer6, { height: ["1", null, null, null, "20"] })
|
|
5997
6194
|
]
|
|
5998
6195
|
}
|
|
5999
6196
|
),
|
|
6000
|
-
ctaCard.image && ctaCardType === "left" /* Left */ ? /* @__PURE__ */
|
|
6001
|
-
|
|
6197
|
+
ctaCard.image && ctaCardType === "left" /* Left */ ? /* @__PURE__ */ jsx39(
|
|
6198
|
+
Box31,
|
|
6002
6199
|
{
|
|
6003
6200
|
position: "relative",
|
|
6004
6201
|
height: ["3xs", null, null, null, "auto"],
|
|
6005
6202
|
minWidth: [null, null, null, null, "50%"],
|
|
6006
|
-
children: /* @__PURE__ */
|
|
6007
|
-
|
|
6203
|
+
children: /* @__PURE__ */ jsx39(
|
|
6204
|
+
Image24,
|
|
6008
6205
|
{
|
|
6009
6206
|
src: strapiMediaUrl_default(ctaCard.image.img, "xLarge"),
|
|
6010
6207
|
alt: ctaCard.image.alt,
|
|
@@ -6016,7 +6213,7 @@ var Cta = ({ slice }) => {
|
|
|
6016
6213
|
}
|
|
6017
6214
|
)
|
|
6018
6215
|
}
|
|
6019
|
-
) : /* @__PURE__ */
|
|
6216
|
+
) : /* @__PURE__ */ jsx39(Fragment18, {})
|
|
6020
6217
|
]
|
|
6021
6218
|
}
|
|
6022
6219
|
)
|
|
@@ -6034,31 +6231,31 @@ var Cta = ({ slice }) => {
|
|
|
6034
6231
|
var Cta_default = Cta;
|
|
6035
6232
|
|
|
6036
6233
|
// src/slices/CtaOnly/CtaOnly.tsx
|
|
6037
|
-
import { DefaultSectionContainer as
|
|
6038
|
-
import { jsx as
|
|
6039
|
-
var CtaOnly = ({ slice }) => /* @__PURE__ */
|
|
6234
|
+
import { DefaultSectionContainer as DefaultSectionContainer23, Wrapper as Wrapper27 } from "boemly";
|
|
6235
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
6236
|
+
var CtaOnly = ({ slice }) => /* @__PURE__ */ jsx40(DefaultSectionContainer23, { children: /* @__PURE__ */ jsx40(Wrapper27, { children: /* @__PURE__ */ jsx40(StrapiLinkButton_default, { size: "md", link: slice.button, component: "CtaOnly" }) }) });
|
|
6040
6237
|
|
|
6041
6238
|
// src/slices/CtaOnly/index.ts
|
|
6042
6239
|
var CtaOnly_default = CtaOnly;
|
|
6043
6240
|
|
|
6044
6241
|
// src/slices/Glossary/Glossary.tsx
|
|
6045
|
-
import { useContext as
|
|
6242
|
+
import { useContext as useContext15, useState as useState7 } from "react";
|
|
6046
6243
|
import {
|
|
6047
|
-
DefaultSectionContainer as
|
|
6244
|
+
DefaultSectionContainer as DefaultSectionContainer24,
|
|
6048
6245
|
Separator,
|
|
6049
|
-
Flex as
|
|
6246
|
+
Flex as Flex17,
|
|
6050
6247
|
GridItem as GridItem6,
|
|
6051
|
-
Heading as
|
|
6248
|
+
Heading as Heading12,
|
|
6052
6249
|
IconButton as IconButton4,
|
|
6053
|
-
SimpleGrid as
|
|
6054
|
-
Text as
|
|
6055
|
-
Wrapper as
|
|
6056
|
-
Box as
|
|
6250
|
+
SimpleGrid as SimpleGrid13,
|
|
6251
|
+
Text as Text16,
|
|
6252
|
+
Wrapper as Wrapper28,
|
|
6253
|
+
Box as Box32
|
|
6057
6254
|
} from "boemly";
|
|
6058
6255
|
import { CheckIcon, LinkIcon } from "@phosphor-icons/react";
|
|
6059
|
-
import { jsx as
|
|
6256
|
+
import { jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6060
6257
|
var Glossary = ({ slice }) => {
|
|
6061
|
-
const { formatMessage } =
|
|
6258
|
+
const { formatMessage } = useContext15(IntlContext);
|
|
6062
6259
|
const grouped = {};
|
|
6063
6260
|
const [copiedItem, setCopiedItem] = useState7();
|
|
6064
6261
|
slice.glossary_items.sort((a, b) => a.attributes.title.localeCompare(b.attributes.title)).forEach((curr) => {
|
|
@@ -6078,12 +6275,12 @@ var Glossary = ({ slice }) => {
|
|
|
6078
6275
|
}, 1200);
|
|
6079
6276
|
}
|
|
6080
6277
|
};
|
|
6081
|
-
return /* @__PURE__ */
|
|
6082
|
-
/* @__PURE__ */
|
|
6083
|
-
/* @__PURE__ */
|
|
6084
|
-
/* @__PURE__ */
|
|
6085
|
-
/* @__PURE__ */
|
|
6086
|
-
|
|
6278
|
+
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: [
|
|
6279
|
+
/* @__PURE__ */ jsx41(Heading12, { size: "3xl", mb: "8", children: letter }),
|
|
6280
|
+
/* @__PURE__ */ jsx41(SimpleGrid13, { gap: "6", children: items.map((item) => /* @__PURE__ */ jsxs34(GridItem6, { children: [
|
|
6281
|
+
/* @__PURE__ */ jsxs34(Flex17, { mb: "2", gap: "1.5", alignItems: "center", children: [
|
|
6282
|
+
/* @__PURE__ */ jsx41(
|
|
6283
|
+
Heading12,
|
|
6087
6284
|
{
|
|
6088
6285
|
wordBreak: "break-word",
|
|
6089
6286
|
size: "xl",
|
|
@@ -6092,7 +6289,7 @@ var Glossary = ({ slice }) => {
|
|
|
6092
6289
|
children: item.title
|
|
6093
6290
|
}
|
|
6094
6291
|
),
|
|
6095
|
-
/* @__PURE__ */
|
|
6292
|
+
/* @__PURE__ */ jsx41(
|
|
6096
6293
|
IconButton4,
|
|
6097
6294
|
{
|
|
6098
6295
|
variant: "ghost",
|
|
@@ -6104,13 +6301,13 @@ var Glossary = ({ slice }) => {
|
|
|
6104
6301
|
id: "sections.glossary.copyButtonLabel"
|
|
6105
6302
|
}),
|
|
6106
6303
|
onClick: async () => handleAnchorClick(item.slug),
|
|
6107
|
-
children: copiedItem === item.slug ? /* @__PURE__ */
|
|
6304
|
+
children: copiedItem === item.slug ? /* @__PURE__ */ jsx41(CheckIcon, { size: "16", "data-testid": "check-icon" }) : /* @__PURE__ */ jsx41(LinkIcon, { size: "16" })
|
|
6108
6305
|
}
|
|
6109
6306
|
)
|
|
6110
6307
|
] }),
|
|
6111
|
-
/* @__PURE__ */
|
|
6308
|
+
/* @__PURE__ */ jsx41(Text16, { color: "black", wordBreak: "break-word", children: item.text })
|
|
6112
6309
|
] }, item.slug)) }),
|
|
6113
|
-
index !== Object.keys(grouped).length - 1 && /* @__PURE__ */
|
|
6310
|
+
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, {}) }) })
|
|
6114
6311
|
] }, letter)) }) }) });
|
|
6115
6312
|
};
|
|
6116
6313
|
|
|
@@ -6118,24 +6315,24 @@ var Glossary = ({ slice }) => {
|
|
|
6118
6315
|
var Glossary_default = Glossary;
|
|
6119
6316
|
|
|
6120
6317
|
// src/slices/ShopCheckout/ShopCheckout.tsx
|
|
6121
|
-
import { useContext as
|
|
6318
|
+
import { useContext as useContext16, useCallback as useCallback3 } from "react";
|
|
6122
6319
|
import {
|
|
6123
6320
|
Badge,
|
|
6124
6321
|
BoemlyFormControl,
|
|
6125
|
-
Box as
|
|
6322
|
+
Box as Box33,
|
|
6126
6323
|
Button as Button2,
|
|
6127
6324
|
Container as Container3,
|
|
6128
|
-
DefaultSectionContainer as
|
|
6325
|
+
DefaultSectionContainer as DefaultSectionContainer25,
|
|
6129
6326
|
DefaultSectionHeader as DefaultSectionHeader18,
|
|
6130
6327
|
Separator as Separator2,
|
|
6131
|
-
Flex as
|
|
6328
|
+
Flex as Flex18,
|
|
6132
6329
|
LabelNumberPair,
|
|
6133
6330
|
RichText as RichText5,
|
|
6134
|
-
SimpleGrid as
|
|
6331
|
+
SimpleGrid as SimpleGrid14,
|
|
6135
6332
|
Spacer as Spacer7,
|
|
6136
6333
|
useToken as useToken8,
|
|
6137
|
-
Wrapper as
|
|
6138
|
-
Text as
|
|
6334
|
+
Wrapper as Wrapper29,
|
|
6335
|
+
Text as Text17
|
|
6139
6336
|
} from "boemly";
|
|
6140
6337
|
import { Field, Form, Formik } from "formik";
|
|
6141
6338
|
|
|
@@ -6145,12 +6342,12 @@ var MAXIMUM_CONTRIBUTION_VALUE_IN_MONEY = 1e4;
|
|
|
6145
6342
|
|
|
6146
6343
|
// src/slices/ShopCheckout/ShopCheckout.tsx
|
|
6147
6344
|
import { useRouter as useRouter7 } from "next/router.js";
|
|
6148
|
-
import { Fragment as Fragment19, jsx as
|
|
6345
|
+
import { Fragment as Fragment19, jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6149
6346
|
var ShopCheckout = ({
|
|
6150
6347
|
slice
|
|
6151
6348
|
}) => {
|
|
6152
6349
|
const [primary50] = useToken8("colors", ["primary.50"]);
|
|
6153
|
-
const { formatMessage, formatNumber, locale } =
|
|
6350
|
+
const { formatMessage, formatNumber, locale } = useContext16(IntlContext);
|
|
6154
6351
|
const { push } = useRouter7();
|
|
6155
6352
|
const validateForm = useCallback3(
|
|
6156
6353
|
(values) => {
|
|
@@ -6185,14 +6382,14 @@ var ShopCheckout = ({
|
|
|
6185
6382
|
checkoutURL.searchParams.append("couponId", slice.couponId);
|
|
6186
6383
|
push(checkoutURL.toString());
|
|
6187
6384
|
};
|
|
6188
|
-
return /* @__PURE__ */
|
|
6189
|
-
|
|
6385
|
+
return /* @__PURE__ */ jsx42(DefaultSectionContainer25, { backgroundColor: primary50, title: slice.title, children: /* @__PURE__ */ jsx42(Wrapper29, { children: /* @__PURE__ */ jsxs35(
|
|
6386
|
+
Flex18,
|
|
6190
6387
|
{
|
|
6191
6388
|
flexDir: ["column", null, null, null, "row"],
|
|
6192
6389
|
justifyContent: "space-between",
|
|
6193
6390
|
alignItems: ["left", null, null, null, "center"],
|
|
6194
6391
|
children: [
|
|
6195
|
-
/* @__PURE__ */
|
|
6392
|
+
/* @__PURE__ */ jsx42(Box33, { marginRight: ["0", null, null, null, "36"], flexShrink: 2, children: /* @__PURE__ */ jsx42(
|
|
6196
6393
|
DefaultSectionHeader18,
|
|
6197
6394
|
{
|
|
6198
6395
|
tagline: slice.tagline,
|
|
@@ -6200,9 +6397,9 @@ var ShopCheckout = ({
|
|
|
6200
6397
|
text: slice.text
|
|
6201
6398
|
}
|
|
6202
6399
|
) }),
|
|
6203
|
-
/* @__PURE__ */
|
|
6204
|
-
slice.badge ? /* @__PURE__ */
|
|
6205
|
-
/* @__PURE__ */
|
|
6400
|
+
/* @__PURE__ */ jsxs35(Container3, { maxWidth: "md", padding: "lg", shadow: "lg", children: [
|
|
6401
|
+
slice.badge ? /* @__PURE__ */ jsxs35(Fragment19, { children: [
|
|
6402
|
+
/* @__PURE__ */ jsx42(
|
|
6206
6403
|
Badge,
|
|
6207
6404
|
{
|
|
6208
6405
|
colorPalette: "green",
|
|
@@ -6211,19 +6408,19 @@ var ShopCheckout = ({
|
|
|
6211
6408
|
children: slice.badge
|
|
6212
6409
|
}
|
|
6213
6410
|
),
|
|
6214
|
-
/* @__PURE__ */
|
|
6215
|
-
] }) : /* @__PURE__ */
|
|
6216
|
-
/* @__PURE__ */
|
|
6411
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "3" })
|
|
6412
|
+
] }) : /* @__PURE__ */ jsx42(Fragment19, {}),
|
|
6413
|
+
/* @__PURE__ */ jsx42(
|
|
6217
6414
|
RichText5,
|
|
6218
6415
|
{
|
|
6219
6416
|
content: slice.checkoutText,
|
|
6220
6417
|
textProps: { color: "gray.500" }
|
|
6221
6418
|
}
|
|
6222
6419
|
),
|
|
6223
|
-
/* @__PURE__ */
|
|
6224
|
-
/* @__PURE__ */
|
|
6225
|
-
/* @__PURE__ */
|
|
6226
|
-
/* @__PURE__ */
|
|
6420
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6421
|
+
/* @__PURE__ */ jsx42(Separator2, {}),
|
|
6422
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6423
|
+
/* @__PURE__ */ jsx42(
|
|
6227
6424
|
LabelNumberPair,
|
|
6228
6425
|
{
|
|
6229
6426
|
label: formatMessage({ id: "sections.shopCheckout.intro.price" }),
|
|
@@ -6239,10 +6436,10 @@ var ShopCheckout = ({
|
|
|
6239
6436
|
})
|
|
6240
6437
|
}
|
|
6241
6438
|
),
|
|
6242
|
-
/* @__PURE__ */
|
|
6243
|
-
/* @__PURE__ */
|
|
6244
|
-
/* @__PURE__ */
|
|
6245
|
-
/* @__PURE__ */
|
|
6439
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6440
|
+
/* @__PURE__ */ jsx42(Separator2, {}),
|
|
6441
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6442
|
+
/* @__PURE__ */ jsx42(
|
|
6246
6443
|
Formik,
|
|
6247
6444
|
{
|
|
6248
6445
|
initialValues: {
|
|
@@ -6257,8 +6454,8 @@ var ShopCheckout = ({
|
|
|
6257
6454
|
values
|
|
6258
6455
|
}) => {
|
|
6259
6456
|
const summaryPrice = Math.floor(values.contributionValue / slice.pricePerKg) * slice.pricePerKg;
|
|
6260
|
-
return /* @__PURE__ */
|
|
6261
|
-
/* @__PURE__ */
|
|
6457
|
+
return /* @__PURE__ */ jsxs35(Form, { onSubmit: handleSubmit, children: [
|
|
6458
|
+
/* @__PURE__ */ jsx42(Box33, { width: "full", children: /* @__PURE__ */ jsx42(Field, { name: "contributionValue", children: ({ field }) => /* @__PURE__ */ jsx42(
|
|
6262
6459
|
BoemlyFormControl,
|
|
6263
6460
|
{
|
|
6264
6461
|
id: "contributionValue",
|
|
@@ -6268,7 +6465,7 @@ var ShopCheckout = ({
|
|
|
6268
6465
|
id: `sections.shopCheckout.contributionValue.label.${slice.currency}`
|
|
6269
6466
|
}),
|
|
6270
6467
|
rightAddons: [
|
|
6271
|
-
/* @__PURE__ */
|
|
6468
|
+
/* @__PURE__ */ jsx42(Text17, { children: formatMessage({
|
|
6272
6469
|
id: `sections.shopCheckout.contributionValue.unit.${slice.currency}`
|
|
6273
6470
|
}) }, "1")
|
|
6274
6471
|
],
|
|
@@ -6276,9 +6473,9 @@ var ShopCheckout = ({
|
|
|
6276
6473
|
errorMessage: errors.contributionValue
|
|
6277
6474
|
}
|
|
6278
6475
|
) }) }),
|
|
6279
|
-
/* @__PURE__ */
|
|
6280
|
-
/* @__PURE__ */
|
|
6281
|
-
/* @__PURE__ */
|
|
6476
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6477
|
+
/* @__PURE__ */ jsxs35(SimpleGrid14, { columns: 2, gap: "4", children: [
|
|
6478
|
+
/* @__PURE__ */ jsx42(
|
|
6282
6479
|
LabelNumberPair,
|
|
6283
6480
|
{
|
|
6284
6481
|
label: formatMessage({
|
|
@@ -6296,7 +6493,7 @@ var ShopCheckout = ({
|
|
|
6296
6493
|
)} CO\u2082`
|
|
6297
6494
|
}
|
|
6298
6495
|
),
|
|
6299
|
-
/* @__PURE__ */
|
|
6496
|
+
/* @__PURE__ */ jsx42(
|
|
6300
6497
|
LabelNumberPair,
|
|
6301
6498
|
{
|
|
6302
6499
|
label: formatMessage({
|
|
@@ -6327,8 +6524,8 @@ var ShopCheckout = ({
|
|
|
6327
6524
|
}
|
|
6328
6525
|
)
|
|
6329
6526
|
] }),
|
|
6330
|
-
/* @__PURE__ */
|
|
6331
|
-
/* @__PURE__ */
|
|
6527
|
+
/* @__PURE__ */ jsx42(Spacer7, { height: "6" }),
|
|
6528
|
+
/* @__PURE__ */ jsx42(Button2, { type: "submit", width: "full", children: formatMessage({ id: "sections.shopCheckout.submit" }) })
|
|
6332
6529
|
] });
|
|
6333
6530
|
}
|
|
6334
6531
|
}
|
|
@@ -6344,15 +6541,16 @@ var ShopCheckout_default = ShopCheckout;
|
|
|
6344
6541
|
|
|
6345
6542
|
// src/slices/Facts/Facts.tsx
|
|
6346
6543
|
import {
|
|
6347
|
-
DefaultSectionContainer as
|
|
6544
|
+
DefaultSectionContainer as DefaultSectionContainer26,
|
|
6348
6545
|
DefaultSectionHeader as DefaultSectionHeader19,
|
|
6349
|
-
Flex as
|
|
6350
|
-
Heading as
|
|
6546
|
+
Flex as Flex19,
|
|
6547
|
+
Heading as Heading13,
|
|
6351
6548
|
Spacer as Spacer8,
|
|
6352
|
-
Text as
|
|
6549
|
+
Text as Text18,
|
|
6550
|
+
Wrapper as Wrapper30
|
|
6353
6551
|
} from "boemly";
|
|
6354
|
-
import { Fragment as Fragment20, jsx as
|
|
6355
|
-
var
|
|
6552
|
+
import { Fragment as Fragment20, jsx as jsx43, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6553
|
+
var FACTS_COLOR_VARIANTS = {
|
|
6356
6554
|
gray: {
|
|
6357
6555
|
backgroundColor: "primary.50",
|
|
6358
6556
|
tagLineColor: "primary.500",
|
|
@@ -6374,80 +6572,79 @@ var VARIANTS3 = {
|
|
|
6374
6572
|
tagLineColor: "primary.500",
|
|
6375
6573
|
titleColor: "black",
|
|
6376
6574
|
subTitleColor: "black",
|
|
6377
|
-
factKeyColor: "
|
|
6378
|
-
factValueColor: "
|
|
6575
|
+
factKeyColor: "black",
|
|
6576
|
+
factValueColor: "black"
|
|
6379
6577
|
}
|
|
6380
6578
|
};
|
|
6381
|
-
var Facts = ({ slice }) => /* @__PURE__ */
|
|
6382
|
-
|
|
6579
|
+
var Facts = ({ slice }) => /* @__PURE__ */ jsx43(
|
|
6580
|
+
DefaultSectionContainer26,
|
|
6383
6581
|
{
|
|
6384
|
-
backgroundColor:
|
|
6582
|
+
backgroundColor: FACTS_COLOR_VARIANTS[slice.variant].backgroundColor,
|
|
6385
6583
|
flexDir: "column",
|
|
6386
6584
|
textAlign: "center",
|
|
6387
6585
|
justifyContent: "space-between",
|
|
6388
|
-
paddingX: ["6", null, "8"],
|
|
6389
6586
|
title: slice.title,
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6587
|
+
paddingY: "12",
|
|
6588
|
+
children: /* @__PURE__ */ jsxs36(Wrapper30, { children: [
|
|
6589
|
+
slice.title && /* @__PURE__ */ jsxs36(Fragment20, { children: [
|
|
6590
|
+
/* @__PURE__ */ jsx43(
|
|
6393
6591
|
DefaultSectionHeader19,
|
|
6394
6592
|
{
|
|
6395
6593
|
tagline: slice.tagline,
|
|
6396
6594
|
text: slice.subTitle,
|
|
6397
6595
|
title: slice.title,
|
|
6398
6596
|
taglineProps: {
|
|
6399
|
-
color:
|
|
6597
|
+
color: FACTS_COLOR_VARIANTS[slice.variant].tagLineColor,
|
|
6400
6598
|
textAlign: "center"
|
|
6401
6599
|
},
|
|
6402
6600
|
titleProps: {
|
|
6403
|
-
color:
|
|
6601
|
+
color: FACTS_COLOR_VARIANTS[slice.variant].titleColor,
|
|
6404
6602
|
textAlign: "center",
|
|
6405
6603
|
maxW: "6xl",
|
|
6406
6604
|
marginX: "auto"
|
|
6407
6605
|
},
|
|
6408
6606
|
textProps: {
|
|
6409
|
-
color:
|
|
6607
|
+
color: FACTS_COLOR_VARIANTS[slice.variant].subTitleColor,
|
|
6410
6608
|
textAlign: "center",
|
|
6411
6609
|
maxW: "3xl",
|
|
6412
6610
|
marginX: "auto"
|
|
6413
6611
|
}
|
|
6414
6612
|
}
|
|
6415
6613
|
),
|
|
6416
|
-
/* @__PURE__ */
|
|
6614
|
+
/* @__PURE__ */ jsx43(Spacer8, { height: ["0", null, "12"] })
|
|
6417
6615
|
] }),
|
|
6418
|
-
/* @__PURE__ */
|
|
6419
|
-
|
|
6616
|
+
/* @__PURE__ */ jsx43(
|
|
6617
|
+
Flex19,
|
|
6420
6618
|
{
|
|
6421
6619
|
justifyContent: slice.facts.length < 3 ? "center" : "flex-start",
|
|
6422
6620
|
alignItems: "center",
|
|
6423
6621
|
flexWrap: "wrap",
|
|
6424
|
-
mx: [null, null, null, "22", "28"],
|
|
6425
6622
|
flexDir: ["column", null, null, "row"],
|
|
6426
|
-
children: slice.facts.map((fact) => /* @__PURE__ */
|
|
6427
|
-
|
|
6623
|
+
children: slice.facts.map((fact) => /* @__PURE__ */ jsxs36(
|
|
6624
|
+
Flex19,
|
|
6428
6625
|
{
|
|
6429
6626
|
flexDir: "column",
|
|
6430
6627
|
width: ["100%", null, null, "calc(100% / 3)"],
|
|
6431
6628
|
mt: ["8", "8", "8", slice.facts.length > 3 ? "16" : "0"],
|
|
6432
6629
|
children: [
|
|
6433
|
-
/* @__PURE__ */
|
|
6434
|
-
|
|
6630
|
+
/* @__PURE__ */ jsx43(
|
|
6631
|
+
Heading13,
|
|
6435
6632
|
{
|
|
6436
6633
|
fontSize: "6xl",
|
|
6437
6634
|
fontFamily: "display",
|
|
6438
6635
|
lineHeight: "10",
|
|
6439
6636
|
fontWeight: "700",
|
|
6440
|
-
color:
|
|
6637
|
+
color: FACTS_COLOR_VARIANTS[slice.variant].factValueColor,
|
|
6441
6638
|
mb: "2",
|
|
6442
6639
|
as: "p",
|
|
6443
6640
|
children: fact.value
|
|
6444
6641
|
}
|
|
6445
6642
|
),
|
|
6446
|
-
/* @__PURE__ */
|
|
6447
|
-
|
|
6643
|
+
/* @__PURE__ */ jsx43(
|
|
6644
|
+
Text18,
|
|
6448
6645
|
{
|
|
6449
6646
|
size: "mdLowNormal",
|
|
6450
|
-
color:
|
|
6647
|
+
color: FACTS_COLOR_VARIANTS[slice.variant].factKeyColor,
|
|
6451
6648
|
children: fact.key
|
|
6452
6649
|
}
|
|
6453
6650
|
)
|
|
@@ -6457,9 +6654,9 @@ var Facts = ({ slice }) => /* @__PURE__ */ jsx40(
|
|
|
6457
6654
|
))
|
|
6458
6655
|
}
|
|
6459
6656
|
),
|
|
6460
|
-
slice.button && /* @__PURE__ */
|
|
6461
|
-
/* @__PURE__ */
|
|
6462
|
-
/* @__PURE__ */
|
|
6657
|
+
slice.button && /* @__PURE__ */ jsxs36(Fragment20, { children: [
|
|
6658
|
+
/* @__PURE__ */ jsx43(Spacer8, { height: ["0", null, "20"] }),
|
|
6659
|
+
/* @__PURE__ */ jsx43(
|
|
6463
6660
|
StrapiLinkButton_default,
|
|
6464
6661
|
{
|
|
6465
6662
|
link: slice.button,
|
|
@@ -6477,26 +6674,26 @@ var Facts = ({ slice }) => /* @__PURE__ */ jsx40(
|
|
|
6477
6674
|
var Facts_default = Facts;
|
|
6478
6675
|
|
|
6479
6676
|
// src/slices/BlogCards/BlogCards.tsx
|
|
6480
|
-
import { useContext as
|
|
6677
|
+
import { useContext as useContext17, useMemo as useMemo4 } from "react";
|
|
6481
6678
|
import {
|
|
6482
|
-
Text as
|
|
6483
|
-
Heading as
|
|
6679
|
+
Text as Text19,
|
|
6680
|
+
Heading as Heading14,
|
|
6484
6681
|
Spacer as Spacer9,
|
|
6485
6682
|
DatePersonPair as DatePersonPair2,
|
|
6486
6683
|
DefaultSectionHeader as DefaultSectionHeader20,
|
|
6487
|
-
DefaultSectionContainer as
|
|
6488
|
-
Wrapper as
|
|
6489
|
-
SimpleGrid as
|
|
6490
|
-
Box as
|
|
6491
|
-
Flex as
|
|
6684
|
+
DefaultSectionContainer as DefaultSectionContainer27,
|
|
6685
|
+
Wrapper as Wrapper31,
|
|
6686
|
+
SimpleGrid as SimpleGrid15,
|
|
6687
|
+
Box as Box34,
|
|
6688
|
+
Flex as Flex20,
|
|
6492
6689
|
useMediaQuery as useMediaQuery6,
|
|
6493
6690
|
useToken as useToken9
|
|
6494
6691
|
} from "boemly";
|
|
6495
|
-
import
|
|
6496
|
-
import
|
|
6692
|
+
import Image25 from "next/image.js";
|
|
6693
|
+
import Link7 from "next/link.js";
|
|
6497
6694
|
import { CaretRightIcon as CaretRightIcon6 } from "@phosphor-icons/react";
|
|
6498
|
-
import { Fragment as Fragment21, jsx as
|
|
6499
|
-
var
|
|
6695
|
+
import { Fragment as Fragment21, jsx as jsx44, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6696
|
+
var VARIANTS3 = {
|
|
6500
6697
|
white: {
|
|
6501
6698
|
backgroundColor: "white"
|
|
6502
6699
|
},
|
|
@@ -6509,7 +6706,7 @@ var BlogCards = ({
|
|
|
6509
6706
|
slice,
|
|
6510
6707
|
blogPosts
|
|
6511
6708
|
}) => {
|
|
6512
|
-
const { formatDate } =
|
|
6709
|
+
const { formatDate } = useContext17(IntlContext);
|
|
6513
6710
|
const [mobile] = useMediaQuery6([BREAKPOINT_LG_QUERY]);
|
|
6514
6711
|
const [gray700] = useToken9("colors", ["gray.700"]);
|
|
6515
6712
|
const sortedBlogPosts = useMemo4(
|
|
@@ -6522,13 +6719,13 @@ var BlogCards = ({
|
|
|
6522
6719
|
).slice(0, 3) : sortedBlogPosts.slice(0, 3),
|
|
6523
6720
|
[sortedBlogPosts, slice]
|
|
6524
6721
|
);
|
|
6525
|
-
return /* @__PURE__ */
|
|
6526
|
-
|
|
6722
|
+
return /* @__PURE__ */ jsx44(
|
|
6723
|
+
DefaultSectionContainer27,
|
|
6527
6724
|
{
|
|
6528
|
-
backgroundColor:
|
|
6725
|
+
backgroundColor: VARIANTS3[slice.variant].backgroundColor,
|
|
6529
6726
|
title: slice.title,
|
|
6530
|
-
children: /* @__PURE__ */
|
|
6531
|
-
mobile || !slice.button ? /* @__PURE__ */
|
|
6727
|
+
children: /* @__PURE__ */ jsxs37(Wrapper31, { children: [
|
|
6728
|
+
mobile || !slice.button ? /* @__PURE__ */ jsx44(
|
|
6532
6729
|
DefaultSectionHeader20,
|
|
6533
6730
|
{
|
|
6534
6731
|
tagline: slice.tagline,
|
|
@@ -6537,8 +6734,8 @@ var BlogCards = ({
|
|
|
6537
6734
|
titleProps: { maxW: "2xl" },
|
|
6538
6735
|
textProps: { maxW: "2xl" }
|
|
6539
6736
|
}
|
|
6540
|
-
) : /* @__PURE__ */
|
|
6541
|
-
/* @__PURE__ */
|
|
6737
|
+
) : /* @__PURE__ */ jsxs37(Flex20, { justifyContent: "space-between", alignItems: "center", gap: "60", children: [
|
|
6738
|
+
/* @__PURE__ */ jsx44(Box34, { children: /* @__PURE__ */ jsx44(
|
|
6542
6739
|
DefaultSectionHeader20,
|
|
6543
6740
|
{
|
|
6544
6741
|
tagline: slice.tagline,
|
|
@@ -6546,34 +6743,34 @@ var BlogCards = ({
|
|
|
6546
6743
|
text: slice.subTitle
|
|
6547
6744
|
}
|
|
6548
6745
|
) }),
|
|
6549
|
-
/* @__PURE__ */
|
|
6746
|
+
/* @__PURE__ */ jsx44(Box34, { minWidth: "40", children: /* @__PURE__ */ jsx44(
|
|
6550
6747
|
StrapiLinkButton_default,
|
|
6551
6748
|
{
|
|
6552
6749
|
link: slice.button,
|
|
6553
6750
|
size: "lg",
|
|
6554
6751
|
variant: "outline",
|
|
6555
|
-
rightIcon: /* @__PURE__ */
|
|
6752
|
+
rightIcon: /* @__PURE__ */ jsx44(CaretRightIcon6, { color: gray700 }),
|
|
6556
6753
|
component: "BlogCards"
|
|
6557
6754
|
}
|
|
6558
6755
|
) })
|
|
6559
6756
|
] }),
|
|
6560
|
-
/* @__PURE__ */
|
|
6561
|
-
/* @__PURE__ */
|
|
6562
|
-
|
|
6757
|
+
/* @__PURE__ */ jsx44(Spacer9, { height: "14" }),
|
|
6758
|
+
/* @__PURE__ */ jsx44(
|
|
6759
|
+
SimpleGrid15,
|
|
6563
6760
|
{
|
|
6564
6761
|
columns: [1, null, null, 3],
|
|
6565
6762
|
columnGap: 4,
|
|
6566
6763
|
rowGap: 24,
|
|
6567
6764
|
flexShrink: "0",
|
|
6568
|
-
children: blogPostsToDisplay.map((blogPost) => /* @__PURE__ */
|
|
6765
|
+
children: blogPostsToDisplay.map((blogPost) => /* @__PURE__ */ jsxs37(
|
|
6569
6766
|
BlogItemContainer,
|
|
6570
6767
|
{
|
|
6571
|
-
as:
|
|
6768
|
+
as: Link7,
|
|
6572
6769
|
href: `/blog/${blogPost.attributes.slug}`,
|
|
6573
6770
|
"data-testid": "blog-item",
|
|
6574
6771
|
children: [
|
|
6575
|
-
/* @__PURE__ */
|
|
6576
|
-
|
|
6772
|
+
/* @__PURE__ */ jsx44(ImageContainer, { children: /* @__PURE__ */ jsx44(
|
|
6773
|
+
Image25,
|
|
6577
6774
|
{
|
|
6578
6775
|
src: strapiMediaUrl_default(blogPost.attributes.img.img, "medium"),
|
|
6579
6776
|
alt: blogPost.attributes.img.alt,
|
|
@@ -6583,19 +6780,19 @@ var BlogCards = ({
|
|
|
6583
6780
|
}
|
|
6584
6781
|
}
|
|
6585
6782
|
) }),
|
|
6586
|
-
/* @__PURE__ */
|
|
6587
|
-
blogPost.attributes.category && /* @__PURE__ */
|
|
6588
|
-
/* @__PURE__ */
|
|
6589
|
-
blogPost.attributes.teaser && /* @__PURE__ */
|
|
6590
|
-
/* @__PURE__ */
|
|
6591
|
-
/* @__PURE__ */
|
|
6783
|
+
/* @__PURE__ */ jsxs37(Box34, { px: "2", py: "8", children: [
|
|
6784
|
+
blogPost.attributes.category && /* @__PURE__ */ jsx44(Text19, { size: "smMonoUppercase", color: "primary.800", mb: "2", children: blogPost.attributes.category.data?.attributes.name }),
|
|
6785
|
+
/* @__PURE__ */ jsx44(Heading14, { size: "lg", children: blogPost.attributes.title }),
|
|
6786
|
+
blogPost.attributes.teaser && /* @__PURE__ */ jsx44(Text19, { size: "mdRegularNormal", mt: "2", children: blogPost.attributes.teaser }),
|
|
6787
|
+
/* @__PURE__ */ jsx44(Spacer9, { height: "4" }),
|
|
6788
|
+
/* @__PURE__ */ jsx44(
|
|
6592
6789
|
DatePersonPair2,
|
|
6593
6790
|
{
|
|
6594
6791
|
date: formatDate(blogPost.attributes.createdAt),
|
|
6595
6792
|
person: blogPost.attributes.author.data ? {
|
|
6596
6793
|
name: blogPost.attributes.author.data.attributes.name,
|
|
6597
|
-
image: /* @__PURE__ */
|
|
6598
|
-
|
|
6794
|
+
image: /* @__PURE__ */ jsx44(
|
|
6795
|
+
Image25,
|
|
6599
6796
|
{
|
|
6600
6797
|
src: strapiMediaUrl_default(
|
|
6601
6798
|
blogPost.attributes.author.data.attributes.img.img,
|
|
@@ -6618,13 +6815,13 @@ var BlogCards = ({
|
|
|
6618
6815
|
))
|
|
6619
6816
|
}
|
|
6620
6817
|
),
|
|
6621
|
-
/* @__PURE__ */
|
|
6818
|
+
/* @__PURE__ */ jsx44(Fragment21, { children: mobile && slice.button && /* @__PURE__ */ jsx44(Fragment21, { children: /* @__PURE__ */ jsx44(Box34, { minWidth: "40", mt: "6", children: /* @__PURE__ */ jsx44(
|
|
6622
6819
|
StrapiLinkButton_default,
|
|
6623
6820
|
{
|
|
6624
6821
|
link: slice.button,
|
|
6625
6822
|
size: "lg",
|
|
6626
6823
|
variant: "outline",
|
|
6627
|
-
rightIcon: /* @__PURE__ */
|
|
6824
|
+
rightIcon: /* @__PURE__ */ jsx44(CaretRightIcon6, { color: gray700 }),
|
|
6628
6825
|
component: "BlogCards"
|
|
6629
6826
|
}
|
|
6630
6827
|
) }) }) })
|
|
@@ -6638,18 +6835,18 @@ var BlogCards_default = BlogCards;
|
|
|
6638
6835
|
|
|
6639
6836
|
// src/slices/ProjectFacts/ProjectFacts.tsx
|
|
6640
6837
|
import { useEffect as useEffect5, useState as useState8 } from "react";
|
|
6641
|
-
import { DefaultSectionContainer as
|
|
6838
|
+
import { DefaultSectionContainer as DefaultSectionContainer28, Flex as Flex25, Wrapper as Wrapper32 } from "boemly";
|
|
6642
6839
|
|
|
6643
6840
|
// src/components/portfolio/SmallCheckout/SmallCheckout.tsx
|
|
6644
|
-
import { useCallback as useCallback4, useContext as
|
|
6841
|
+
import { useCallback as useCallback4, useContext as useContext18 } from "react";
|
|
6645
6842
|
import {
|
|
6646
6843
|
BoemlyFormControl as BoemlyFormControl2,
|
|
6647
|
-
Box as
|
|
6844
|
+
Box as Box35,
|
|
6648
6845
|
Button as Button3,
|
|
6649
6846
|
Separator as Separator3,
|
|
6650
|
-
Flex as
|
|
6847
|
+
Flex as Flex21,
|
|
6651
6848
|
Spacer as Spacer10,
|
|
6652
|
-
Text as
|
|
6849
|
+
Text as Text20
|
|
6653
6850
|
} from "boemly";
|
|
6654
6851
|
import {
|
|
6655
6852
|
Field as Field2,
|
|
@@ -6657,8 +6854,8 @@ import {
|
|
|
6657
6854
|
Formik as Formik2
|
|
6658
6855
|
} from "formik";
|
|
6659
6856
|
import { useRouter as useRouter8 } from "next/router.js";
|
|
6660
|
-
import
|
|
6661
|
-
import { jsx as
|
|
6857
|
+
import Image26 from "next/image.js";
|
|
6858
|
+
import { jsx as jsx45, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6662
6859
|
var calculateTaxIncludedValue = (values, taxInPercent) => {
|
|
6663
6860
|
const value = parseInt(values.contributionValueCurrency);
|
|
6664
6861
|
if (isNaN(value)) return 0;
|
|
@@ -6675,7 +6872,7 @@ var SmallCheckout = ({
|
|
|
6675
6872
|
subtitle,
|
|
6676
6873
|
button
|
|
6677
6874
|
}) => {
|
|
6678
|
-
const { formatNumber, formatMessage, locale } =
|
|
6875
|
+
const { formatNumber, formatMessage, locale } = useContext18(IntlContext);
|
|
6679
6876
|
const { push } = useRouter8();
|
|
6680
6877
|
const validateForm = useCallback4(
|
|
6681
6878
|
(values) => {
|
|
@@ -6709,8 +6906,8 @@ var SmallCheckout = ({
|
|
|
6709
6906
|
checkoutURL.searchParams.append("cancelPath", currentURL.pathname);
|
|
6710
6907
|
push(checkoutURL.toString());
|
|
6711
6908
|
};
|
|
6712
|
-
return /* @__PURE__ */
|
|
6713
|
-
|
|
6909
|
+
return /* @__PURE__ */ jsxs38(
|
|
6910
|
+
Flex21,
|
|
6714
6911
|
{
|
|
6715
6912
|
width: "full",
|
|
6716
6913
|
height: "full",
|
|
@@ -6719,22 +6916,22 @@ var SmallCheckout = ({
|
|
|
6719
6916
|
padding: "6",
|
|
6720
6917
|
direction: "column",
|
|
6721
6918
|
children: [
|
|
6722
|
-
/* @__PURE__ */
|
|
6723
|
-
/* @__PURE__ */
|
|
6919
|
+
/* @__PURE__ */ jsxs38(Flex21, { gap: "2", alignItems: "end", mb: "6", children: [
|
|
6920
|
+
/* @__PURE__ */ jsx45(Text20, { color: "black", lineHeight: "0", children: formatMessage(
|
|
6724
6921
|
{ id: "unit.formatter.tonsCo2" },
|
|
6725
6922
|
{
|
|
6726
|
-
number: /* @__PURE__ */
|
|
6923
|
+
number: /* @__PURE__ */ jsx45(Text20, { as: "span", size: "lgLowBold", color: "black", children: formatNumber(pricePerKg * 1e3, {
|
|
6727
6924
|
style: "currency",
|
|
6728
6925
|
currency,
|
|
6729
6926
|
maximumFractionDigits: 0
|
|
6730
6927
|
}) })
|
|
6731
6928
|
}
|
|
6732
6929
|
) }),
|
|
6733
|
-
/* @__PURE__ */
|
|
6930
|
+
/* @__PURE__ */ jsx45(Text20, { size: "smLowNormal", children: formatMessage({
|
|
6734
6931
|
id: "portfolio.smallCheckout.price.taxNotIncluded"
|
|
6735
6932
|
}) })
|
|
6736
6933
|
] }),
|
|
6737
|
-
/* @__PURE__ */
|
|
6934
|
+
/* @__PURE__ */ jsx45(
|
|
6738
6935
|
Formik2,
|
|
6739
6936
|
{
|
|
6740
6937
|
initialValues: {
|
|
@@ -6749,9 +6946,9 @@ var SmallCheckout = ({
|
|
|
6749
6946
|
handleSubmit,
|
|
6750
6947
|
setValues,
|
|
6751
6948
|
values
|
|
6752
|
-
}) => /* @__PURE__ */
|
|
6753
|
-
/* @__PURE__ */
|
|
6754
|
-
/* @__PURE__ */
|
|
6949
|
+
}) => /* @__PURE__ */ jsxs38(Form2, { onSubmit: handleSubmit, children: [
|
|
6950
|
+
/* @__PURE__ */ jsxs38(Flex21, { gap: "4", children: [
|
|
6951
|
+
/* @__PURE__ */ jsx45(Box35, { width: "full", children: /* @__PURE__ */ jsx45(Field2, { name: "contributionValueCurrency", children: ({ field }) => /* @__PURE__ */ jsx45(
|
|
6755
6952
|
BoemlyFormControl2,
|
|
6756
6953
|
{
|
|
6757
6954
|
id: "contributionValueCurrency",
|
|
@@ -6771,7 +6968,7 @@ var SmallCheckout = ({
|
|
|
6771
6968
|
id: `portfolio.smallCheckout.contributionValueCurrency.label.${currency}`
|
|
6772
6969
|
}),
|
|
6773
6970
|
rightAddons: [
|
|
6774
|
-
/* @__PURE__ */
|
|
6971
|
+
/* @__PURE__ */ jsx45(Text20, { children: formatMessage({
|
|
6775
6972
|
id: `portfolio.smallCheckout.contributionValueCurrency.unit.${currency}`
|
|
6776
6973
|
}) }, "currencyUnit")
|
|
6777
6974
|
],
|
|
@@ -6779,7 +6976,7 @@ var SmallCheckout = ({
|
|
|
6779
6976
|
errorMessage: errors.contributionValueCurrency
|
|
6780
6977
|
}
|
|
6781
6978
|
) }) }),
|
|
6782
|
-
/* @__PURE__ */
|
|
6979
|
+
/* @__PURE__ */ jsx45(Box35, { width: "full", children: /* @__PURE__ */ jsx45(Field2, { name: "contributionValueTons", children: ({ field }) => /* @__PURE__ */ jsx45(
|
|
6783
6980
|
BoemlyFormControl2,
|
|
6784
6981
|
{
|
|
6785
6982
|
id: "contributionValueTons",
|
|
@@ -6798,13 +6995,13 @@ var SmallCheckout = ({
|
|
|
6798
6995
|
label: formatMessage({
|
|
6799
6996
|
id: "portfolio.smallCheckout.contributionValueTons.label"
|
|
6800
6997
|
}),
|
|
6801
|
-
rightAddons: [/* @__PURE__ */
|
|
6998
|
+
rightAddons: [/* @__PURE__ */ jsx45(Text20, { children: "tCO\u2082" }, "tCO\u2082")],
|
|
6802
6999
|
isInvalid: !!errors.contributionValueTons && touched.contributionValueTons,
|
|
6803
7000
|
errorMessage: errors.contributionValueTons
|
|
6804
7001
|
}
|
|
6805
7002
|
) }) })
|
|
6806
7003
|
] }),
|
|
6807
|
-
values.contributionValueCurrency && taxInPercent && taxInPercent > 0 && /* @__PURE__ */
|
|
7004
|
+
values.contributionValueCurrency && taxInPercent && taxInPercent > 0 && /* @__PURE__ */ jsx45(Text20, { size: "smLowNormal", mt: "2", children: formatMessage(
|
|
6808
7005
|
{ id: "portfolio.smallCheckout.price.taxIncluded" },
|
|
6809
7006
|
{
|
|
6810
7007
|
number: formatNumber(
|
|
@@ -6817,13 +7014,13 @@ var SmallCheckout = ({
|
|
|
6817
7014
|
)
|
|
6818
7015
|
}
|
|
6819
7016
|
) }),
|
|
6820
|
-
/* @__PURE__ */
|
|
6821
|
-
/* @__PURE__ */
|
|
7017
|
+
/* @__PURE__ */ jsx45(Spacer10, { height: "4" }),
|
|
7018
|
+
/* @__PURE__ */ jsx45(Button3, { type: "submit", width: "full", children: formatMessage({ id: "portfolio.smallCheckout.submitButton" }) })
|
|
6822
7019
|
] })
|
|
6823
7020
|
}
|
|
6824
7021
|
),
|
|
6825
|
-
/* @__PURE__ */
|
|
6826
|
-
|
|
7022
|
+
/* @__PURE__ */ jsxs38(
|
|
7023
|
+
Flex21,
|
|
6827
7024
|
{
|
|
6828
7025
|
width: "full",
|
|
6829
7026
|
justifyContent: "center",
|
|
@@ -6831,8 +7028,8 @@ var SmallCheckout = ({
|
|
|
6831
7028
|
mt: "6",
|
|
6832
7029
|
gap: "2",
|
|
6833
7030
|
children: [
|
|
6834
|
-
/* @__PURE__ */
|
|
6835
|
-
|
|
7031
|
+
/* @__PURE__ */ jsx45(
|
|
7032
|
+
Image26,
|
|
6836
7033
|
{
|
|
6837
7034
|
src: `${CDN_URI}/assets/v3/strapi-slices/globe-love-icon.svg`,
|
|
6838
7035
|
alt: "Icon",
|
|
@@ -6840,15 +7037,15 @@ var SmallCheckout = ({
|
|
|
6840
7037
|
height: 20
|
|
6841
7038
|
}
|
|
6842
7039
|
),
|
|
6843
|
-
/* @__PURE__ */
|
|
7040
|
+
/* @__PURE__ */ jsx45(Text20, { size: "smLowNormal", children: checkoutText })
|
|
6844
7041
|
]
|
|
6845
7042
|
}
|
|
6846
7043
|
),
|
|
6847
|
-
/* @__PURE__ */
|
|
6848
|
-
/* @__PURE__ */
|
|
6849
|
-
title && /* @__PURE__ */
|
|
6850
|
-
subtitle && /* @__PURE__ */
|
|
6851
|
-
button && /* @__PURE__ */
|
|
7044
|
+
/* @__PURE__ */ jsx45(Separator3, { my: "6" }),
|
|
7045
|
+
/* @__PURE__ */ jsxs38(Flex21, { width: "full", alignItems: "center", direction: "column", children: [
|
|
7046
|
+
title && /* @__PURE__ */ jsx45(Text20, { size: "smLowBold", textAlign: "center", color: "black", mb: "2", children: title }),
|
|
7047
|
+
subtitle && /* @__PURE__ */ jsx45(Text20, { size: "smRegularNormal", textAlign: "center", mb: "3", children: subtitle }),
|
|
7048
|
+
button && /* @__PURE__ */ jsx45(
|
|
6852
7049
|
StrapiLinkButton_default,
|
|
6853
7050
|
{
|
|
6854
7051
|
link: {
|
|
@@ -6870,19 +7067,19 @@ var SmallCheckout_default = SmallCheckout;
|
|
|
6870
7067
|
var SmallCheckout_default2 = SmallCheckout_default;
|
|
6871
7068
|
|
|
6872
7069
|
// src/components/portfolio/ProjectInfo/ProjectInfo.tsx
|
|
6873
|
-
import { useContext as
|
|
7070
|
+
import { useContext as useContext19 } from "react";
|
|
6874
7071
|
import {
|
|
6875
|
-
Box as
|
|
7072
|
+
Box as Box36,
|
|
6876
7073
|
Container as Container4,
|
|
6877
7074
|
Separator as Separator4,
|
|
6878
|
-
Flex as
|
|
6879
|
-
Heading as
|
|
7075
|
+
Flex as Flex22,
|
|
7076
|
+
Heading as Heading15,
|
|
6880
7077
|
LabelTextPair,
|
|
6881
|
-
SimpleGrid as
|
|
7078
|
+
SimpleGrid as SimpleGrid16,
|
|
6882
7079
|
Spacer as Spacer11,
|
|
6883
7080
|
Tooltip
|
|
6884
7081
|
} from "boemly";
|
|
6885
|
-
import
|
|
7082
|
+
import Image27 from "next/image.js";
|
|
6886
7083
|
|
|
6887
7084
|
// src/utils/convertAreaM2ToHa.ts
|
|
6888
7085
|
var convertAreaM2ToHa = (areaInM2) => parseInt(areaInM2, 10) / 1e4;
|
|
@@ -6907,24 +7104,24 @@ var getTimeSpanInYears = (start, end) => {
|
|
|
6907
7104
|
var getTimeSpanInYears_default = getTimeSpanInYears;
|
|
6908
7105
|
|
|
6909
7106
|
// src/components/portfolio/ProjectInfo/ProjectInfo.tsx
|
|
6910
|
-
import { Fragment as Fragment22, jsx as
|
|
7107
|
+
import { Fragment as Fragment22, jsx as jsx46, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6911
7108
|
var ProjectInfo = ({
|
|
6912
7109
|
project,
|
|
6913
7110
|
subtitles
|
|
6914
7111
|
}) => {
|
|
6915
|
-
const { formatMessage, formatNumber, formatDate } =
|
|
6916
|
-
return /* @__PURE__ */
|
|
6917
|
-
/* @__PURE__ */
|
|
6918
|
-
/* @__PURE__ */
|
|
6919
|
-
/* @__PURE__ */
|
|
6920
|
-
|
|
7112
|
+
const { formatMessage, formatNumber, formatDate } = useContext19(IntlContext);
|
|
7113
|
+
return /* @__PURE__ */ jsxs39(Container4, { p: "2", width: "full", children: [
|
|
7114
|
+
/* @__PURE__ */ jsx46(Heading15, { size: "xl", textAlign: "left", children: formatMessage({ id: "features.projectInfo.projectInfo.value" }) }),
|
|
7115
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "8" }),
|
|
7116
|
+
/* @__PURE__ */ jsxs39(
|
|
7117
|
+
SimpleGrid16,
|
|
6921
7118
|
{
|
|
6922
7119
|
columns: [1, null, null, 2],
|
|
6923
7120
|
gap: "8",
|
|
6924
7121
|
columnGap: "10",
|
|
6925
7122
|
rowGap: "8",
|
|
6926
7123
|
children: [
|
|
6927
|
-
project.area && /* @__PURE__ */
|
|
7124
|
+
project.area && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6928
7125
|
LabelTextPair,
|
|
6929
7126
|
{
|
|
6930
7127
|
label: formatMessage({
|
|
@@ -6937,7 +7134,7 @@ var ProjectInfo = ({
|
|
|
6937
7134
|
caption: subtitles.areaSubtitle
|
|
6938
7135
|
}
|
|
6939
7136
|
) }),
|
|
6940
|
-
project.location && /* @__PURE__ */
|
|
7137
|
+
project.location && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6941
7138
|
LabelTextPair,
|
|
6942
7139
|
{
|
|
6943
7140
|
label: formatMessage({
|
|
@@ -6947,7 +7144,7 @@ var ProjectInfo = ({
|
|
|
6947
7144
|
caption: subtitles.locationSubtitle
|
|
6948
7145
|
}
|
|
6949
7146
|
) }),
|
|
6950
|
-
project.start && /* @__PURE__ */
|
|
7147
|
+
project.start && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6951
7148
|
LabelTextPair,
|
|
6952
7149
|
{
|
|
6953
7150
|
label: formatMessage({
|
|
@@ -6960,7 +7157,7 @@ var ProjectInfo = ({
|
|
|
6960
7157
|
caption: subtitles.startSubtitle
|
|
6961
7158
|
}
|
|
6962
7159
|
) }),
|
|
6963
|
-
project.start && project.end && /* @__PURE__ */
|
|
7160
|
+
project.start && project.end && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6964
7161
|
LabelTextPair,
|
|
6965
7162
|
{
|
|
6966
7163
|
label: formatMessage({
|
|
@@ -6983,13 +7180,13 @@ var ProjectInfo = ({
|
|
|
6983
7180
|
]
|
|
6984
7181
|
}
|
|
6985
7182
|
),
|
|
6986
|
-
project.projectType || project.projectDeveloper || project.verificationStandard ? /* @__PURE__ */
|
|
6987
|
-
/* @__PURE__ */
|
|
6988
|
-
/* @__PURE__ */
|
|
6989
|
-
/* @__PURE__ */
|
|
6990
|
-
] }) : /* @__PURE__ */
|
|
6991
|
-
/* @__PURE__ */
|
|
6992
|
-
project.projectType && /* @__PURE__ */
|
|
7183
|
+
project.projectType || project.projectDeveloper || project.verificationStandard ? /* @__PURE__ */ jsxs39(Fragment22, { children: [
|
|
7184
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "6" }),
|
|
7185
|
+
/* @__PURE__ */ jsx46(Separator4, {}),
|
|
7186
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "6" })
|
|
7187
|
+
] }) : /* @__PURE__ */ jsx46(Fragment22, {}),
|
|
7188
|
+
/* @__PURE__ */ jsxs39(SimpleGrid16, { columns: [1, null, null, 2], columnGap: "10", rowGap: "8", children: [
|
|
7189
|
+
project.projectType && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
6993
7190
|
LabelTextPair,
|
|
6994
7191
|
{
|
|
6995
7192
|
label: formatMessage({
|
|
@@ -6999,7 +7196,7 @@ var ProjectInfo = ({
|
|
|
6999
7196
|
caption: subtitles.projectTypeSubtitle
|
|
7000
7197
|
}
|
|
7001
7198
|
) }),
|
|
7002
|
-
project.projectDeveloper && /* @__PURE__ */
|
|
7199
|
+
project.projectDeveloper && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
7003
7200
|
LabelTextPair,
|
|
7004
7201
|
{
|
|
7005
7202
|
label: formatMessage({
|
|
@@ -7010,10 +7207,10 @@ var ProjectInfo = ({
|
|
|
7010
7207
|
}
|
|
7011
7208
|
) })
|
|
7012
7209
|
] }),
|
|
7013
|
-
project.verificationStandard ? /* @__PURE__ */
|
|
7014
|
-
project.projectType || project.projectDeveloper ? /* @__PURE__ */
|
|
7015
|
-
/* @__PURE__ */
|
|
7016
|
-
/* @__PURE__ */
|
|
7210
|
+
project.verificationStandard ? /* @__PURE__ */ jsxs39(Fragment22, { children: [
|
|
7211
|
+
project.projectType || project.projectDeveloper ? /* @__PURE__ */ jsx46(Spacer11, { height: "6" }) : /* @__PURE__ */ jsx46(Fragment22, {}),
|
|
7212
|
+
/* @__PURE__ */ jsxs39(Flex22, { justifyContent: "space-between", alignItems: "center", children: [
|
|
7213
|
+
/* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
7017
7214
|
LabelTextPair,
|
|
7018
7215
|
{
|
|
7019
7216
|
label: formatMessage({
|
|
@@ -7026,8 +7223,8 @@ var ProjectInfo = ({
|
|
|
7026
7223
|
caption: subtitles.verificationStandardSubtitle
|
|
7027
7224
|
}
|
|
7028
7225
|
) }),
|
|
7029
|
-
project.defaultIssuer && /* @__PURE__ */
|
|
7030
|
-
|
|
7226
|
+
project.defaultIssuer && /* @__PURE__ */ jsx46(Box36, { position: "relative", width: "14", height: "8", children: /* @__PURE__ */ jsx46(
|
|
7227
|
+
Image27,
|
|
7031
7228
|
{
|
|
7032
7229
|
src: project.defaultIssuer.logoUrl,
|
|
7033
7230
|
alt: `${project.defaultIssuer.name} logo`,
|
|
@@ -7036,20 +7233,20 @@ var ProjectInfo = ({
|
|
|
7036
7233
|
}
|
|
7037
7234
|
) })
|
|
7038
7235
|
] })
|
|
7039
|
-
] }) : /* @__PURE__ */
|
|
7040
|
-
project.averageSellableAmountPerYear && project.averageSellableAmountPerYear > 0 || project.riskBuffer ? /* @__PURE__ */
|
|
7041
|
-
/* @__PURE__ */
|
|
7042
|
-
/* @__PURE__ */
|
|
7043
|
-
/* @__PURE__ */
|
|
7044
|
-
] }) : /* @__PURE__ */
|
|
7045
|
-
/* @__PURE__ */
|
|
7046
|
-
project.averageSellableAmountPerYear > 0 ? /* @__PURE__ */
|
|
7236
|
+
] }) : /* @__PURE__ */ jsx46(Fragment22, {}),
|
|
7237
|
+
project.averageSellableAmountPerYear && project.averageSellableAmountPerYear > 0 || project.riskBuffer ? /* @__PURE__ */ jsxs39(Fragment22, { children: [
|
|
7238
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "8" }),
|
|
7239
|
+
/* @__PURE__ */ jsx46(Separator4, {}),
|
|
7240
|
+
/* @__PURE__ */ jsx46(Spacer11, { height: "8" })
|
|
7241
|
+
] }) : /* @__PURE__ */ jsx46(Fragment22, {}),
|
|
7242
|
+
/* @__PURE__ */ jsxs39(SimpleGrid16, { columns: [1, null, null, 2], columnGap: "10", rowGap: "8", children: [
|
|
7243
|
+
project.averageSellableAmountPerYear > 0 ? /* @__PURE__ */ jsx46(
|
|
7047
7244
|
Tooltip,
|
|
7048
7245
|
{
|
|
7049
7246
|
content: formatMessage({
|
|
7050
7247
|
id: "features.projectInfo.properties.projectVolume.toolTip"
|
|
7051
7248
|
}),
|
|
7052
|
-
children: /* @__PURE__ */
|
|
7249
|
+
children: /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
7053
7250
|
LabelTextPair,
|
|
7054
7251
|
{
|
|
7055
7252
|
label: formatMessage({
|
|
@@ -7072,8 +7269,8 @@ var ProjectInfo = ({
|
|
|
7072
7269
|
}
|
|
7073
7270
|
) })
|
|
7074
7271
|
}
|
|
7075
|
-
) : /* @__PURE__ */
|
|
7076
|
-
project.riskBuffer && /* @__PURE__ */
|
|
7272
|
+
) : /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(CreditsAvailableBadge_default2, { status: project.creditAvailability }) }),
|
|
7273
|
+
project.riskBuffer && /* @__PURE__ */ jsx46(Box36, { children: /* @__PURE__ */ jsx46(
|
|
7077
7274
|
LabelTextPair,
|
|
7078
7275
|
{
|
|
7079
7276
|
label: formatMessage({
|
|
@@ -7087,7 +7284,7 @@ var ProjectInfo = ({
|
|
|
7087
7284
|
}
|
|
7088
7285
|
) })
|
|
7089
7286
|
] }),
|
|
7090
|
-
project.averageSellableAmountPerYear > 0 ? /* @__PURE__ */
|
|
7287
|
+
project.averageSellableAmountPerYear > 0 ? /* @__PURE__ */ jsx46(Box36, { mt: "2", children: /* @__PURE__ */ jsx46(CreditsAvailableBadge_default2, { status: project.creditAvailability }) }) : /* @__PURE__ */ jsx46(Fragment22, {})
|
|
7091
7288
|
] });
|
|
7092
7289
|
};
|
|
7093
7290
|
|
|
@@ -7095,36 +7292,36 @@ var ProjectInfo = ({
|
|
|
7095
7292
|
var ProjectInfo_default = ProjectInfo;
|
|
7096
7293
|
|
|
7097
7294
|
// src/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.tsx
|
|
7098
|
-
import { useContext as
|
|
7295
|
+
import { useContext as useContext20 } from "react";
|
|
7099
7296
|
import {
|
|
7100
7297
|
Center as Center3,
|
|
7101
7298
|
Container as Container5,
|
|
7102
|
-
Flex as
|
|
7103
|
-
Heading as
|
|
7299
|
+
Flex as Flex23,
|
|
7300
|
+
Heading as Heading16,
|
|
7104
7301
|
IconButton as IconButton5,
|
|
7105
7302
|
Spacer as Spacer12,
|
|
7106
|
-
Text as
|
|
7303
|
+
Text as Text21
|
|
7107
7304
|
} from "boemly";
|
|
7108
7305
|
import { DownloadSimpleIcon, FilePdfIcon } from "@phosphor-icons/react";
|
|
7109
|
-
import
|
|
7110
|
-
import { jsx as
|
|
7306
|
+
import Link8 from "next/link.js";
|
|
7307
|
+
import { jsx as jsx47, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7111
7308
|
var DocumentsDownloadList = ({
|
|
7112
7309
|
documentUrls
|
|
7113
7310
|
}) => {
|
|
7114
|
-
const { formatMessage } =
|
|
7115
|
-
return /* @__PURE__ */
|
|
7116
|
-
/* @__PURE__ */
|
|
7311
|
+
const { formatMessage } = useContext20(IntlContext);
|
|
7312
|
+
return /* @__PURE__ */ jsxs40(Container5, { p: "2", children: [
|
|
7313
|
+
/* @__PURE__ */ jsx47(Heading16, { size: "xl", textAlign: "left", children: formatMessage({
|
|
7117
7314
|
id: "features.portfolio.documentsDownloadList.projectDocuments"
|
|
7118
7315
|
}) }),
|
|
7119
|
-
/* @__PURE__ */
|
|
7120
|
-
|
|
7316
|
+
/* @__PURE__ */ jsx47(Flex23, { flexDir: "column", children: documentUrls.map((documentUrl) => /* @__PURE__ */ jsxs40(
|
|
7317
|
+
Flex23,
|
|
7121
7318
|
{
|
|
7122
7319
|
justifyContent: "space-between",
|
|
7123
7320
|
alignItems: "center",
|
|
7124
7321
|
mt: "6",
|
|
7125
7322
|
children: [
|
|
7126
|
-
/* @__PURE__ */
|
|
7127
|
-
/* @__PURE__ */
|
|
7323
|
+
/* @__PURE__ */ jsxs40(Flex23, { alignItems: "center", children: [
|
|
7324
|
+
/* @__PURE__ */ jsx47(
|
|
7128
7325
|
Center3,
|
|
7129
7326
|
{
|
|
7130
7327
|
w: "8",
|
|
@@ -7132,17 +7329,17 @@ var DocumentsDownloadList = ({
|
|
|
7132
7329
|
borderRadius: "full",
|
|
7133
7330
|
borderWidth: "1px",
|
|
7134
7331
|
borderColor: "grey.200",
|
|
7135
|
-
children: /* @__PURE__ */
|
|
7332
|
+
children: /* @__PURE__ */ jsx47(FilePdfIcon, {})
|
|
7136
7333
|
}
|
|
7137
7334
|
),
|
|
7138
|
-
/* @__PURE__ */
|
|
7139
|
-
/* @__PURE__ */
|
|
7140
|
-
/* @__PURE__ */
|
|
7141
|
-
/* @__PURE__ */
|
|
7335
|
+
/* @__PURE__ */ jsx47(Spacer12, { width: "4" }),
|
|
7336
|
+
/* @__PURE__ */ jsxs40(Flex23, { flexDir: "column", children: [
|
|
7337
|
+
/* @__PURE__ */ jsx47(Text21, { size: "smMonoNormal", children: "PDF" }),
|
|
7338
|
+
/* @__PURE__ */ jsx47(Text21, { size: "mdLowBold", color: "black", textAlign: "left", children: documentUrl.text })
|
|
7142
7339
|
] })
|
|
7143
7340
|
] }),
|
|
7144
|
-
/* @__PURE__ */
|
|
7145
|
-
/* @__PURE__ */
|
|
7341
|
+
/* @__PURE__ */ jsx47(Spacer12, { width: "32" }),
|
|
7342
|
+
/* @__PURE__ */ jsx47(
|
|
7146
7343
|
IconButton5,
|
|
7147
7344
|
{
|
|
7148
7345
|
variant: "outline",
|
|
@@ -7151,7 +7348,7 @@ var DocumentsDownloadList = ({
|
|
|
7151
7348
|
}),
|
|
7152
7349
|
size: "sm",
|
|
7153
7350
|
asChild: true,
|
|
7154
|
-
children: /* @__PURE__ */
|
|
7351
|
+
children: /* @__PURE__ */ jsx47(Link8, { href: documentUrl.url || "#", children: /* @__PURE__ */ jsx47(DownloadSimpleIcon, {}) })
|
|
7155
7352
|
}
|
|
7156
7353
|
)
|
|
7157
7354
|
]
|
|
@@ -7165,32 +7362,32 @@ var DocumentsDownloadList = ({
|
|
|
7165
7362
|
var DocumentsDownloadList_default = DocumentsDownloadList;
|
|
7166
7363
|
|
|
7167
7364
|
// src/components/portfolio/Contact/Contact.tsx
|
|
7168
|
-
import { Text as
|
|
7169
|
-
import
|
|
7170
|
-
import { Fragment as Fragment23, jsx as
|
|
7365
|
+
import { Text as Text22, Heading as Heading17, Flex as Flex24, Box as Box37, Container as Container6 } from "boemly";
|
|
7366
|
+
import Image28 from "next/image.js";
|
|
7367
|
+
import { Fragment as Fragment23, jsx as jsx48, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7171
7368
|
var Contact = ({
|
|
7172
7369
|
avatar,
|
|
7173
7370
|
title,
|
|
7174
7371
|
text,
|
|
7175
7372
|
button
|
|
7176
|
-
}) => /* @__PURE__ */
|
|
7177
|
-
|
|
7373
|
+
}) => /* @__PURE__ */ jsx48(Container6, { backgroundColor: "primary.100", border: "none", p: "8", height: "full", children: /* @__PURE__ */ jsxs41(
|
|
7374
|
+
Flex24,
|
|
7178
7375
|
{
|
|
7179
7376
|
flexDir: "column",
|
|
7180
7377
|
justifyContent: "center",
|
|
7181
7378
|
alignItems: "center",
|
|
7182
7379
|
height: "full",
|
|
7183
7380
|
children: [
|
|
7184
|
-
avatar ? /* @__PURE__ */
|
|
7185
|
-
|
|
7381
|
+
avatar ? /* @__PURE__ */ jsx48(
|
|
7382
|
+
Box37,
|
|
7186
7383
|
{
|
|
7187
7384
|
position: "relative",
|
|
7188
7385
|
width: "20",
|
|
7189
7386
|
height: "20",
|
|
7190
7387
|
borderRadius: "full",
|
|
7191
7388
|
overflow: "hidden",
|
|
7192
|
-
children: /* @__PURE__ */
|
|
7193
|
-
|
|
7389
|
+
children: /* @__PURE__ */ jsx48(
|
|
7390
|
+
Image28,
|
|
7194
7391
|
{
|
|
7195
7392
|
src: strapiMediaUrl_default(avatar.img, "small"),
|
|
7196
7393
|
alt: avatar.alt,
|
|
@@ -7199,9 +7396,9 @@ var Contact = ({
|
|
|
7199
7396
|
}
|
|
7200
7397
|
)
|
|
7201
7398
|
}
|
|
7202
|
-
) : /* @__PURE__ */
|
|
7203
|
-
title ? /* @__PURE__ */
|
|
7204
|
-
|
|
7399
|
+
) : /* @__PURE__ */ jsx48(Fragment23, {}),
|
|
7400
|
+
title ? /* @__PURE__ */ jsx48(
|
|
7401
|
+
Heading17,
|
|
7205
7402
|
{
|
|
7206
7403
|
mt: "6",
|
|
7207
7404
|
size: "md",
|
|
@@ -7210,9 +7407,9 @@ var Contact = ({
|
|
|
7210
7407
|
color: "black",
|
|
7211
7408
|
children: title
|
|
7212
7409
|
}
|
|
7213
|
-
) : /* @__PURE__ */
|
|
7214
|
-
text ? /* @__PURE__ */
|
|
7215
|
-
button ? /* @__PURE__ */
|
|
7410
|
+
) : /* @__PURE__ */ jsx48(Fragment23, {}),
|
|
7411
|
+
text ? /* @__PURE__ */ jsx48(Text22, { mt: "2", size: "smRegularNormal", textAlign: "center", children: text }) : /* @__PURE__ */ jsx48(Fragment23, {}),
|
|
7412
|
+
button ? /* @__PURE__ */ jsx48(
|
|
7216
7413
|
StrapiLinkButton_default,
|
|
7217
7414
|
{
|
|
7218
7415
|
mt: "6",
|
|
@@ -7221,7 +7418,7 @@ var Contact = ({
|
|
|
7221
7418
|
variant: "outline",
|
|
7222
7419
|
component: "Contact"
|
|
7223
7420
|
}
|
|
7224
|
-
) : /* @__PURE__ */
|
|
7421
|
+
) : /* @__PURE__ */ jsx48(Fragment23, {})
|
|
7225
7422
|
]
|
|
7226
7423
|
}
|
|
7227
7424
|
) });
|
|
@@ -7239,7 +7436,7 @@ var getFpmProjectById = async (projectId) => {
|
|
|
7239
7436
|
var getFpmProjectById_default = getFpmProjectById;
|
|
7240
7437
|
|
|
7241
7438
|
// src/slices/ProjectFacts/ProjectFacts.tsx
|
|
7242
|
-
import { Fragment as Fragment24, jsx as
|
|
7439
|
+
import { Fragment as Fragment24, jsx as jsx49, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7243
7440
|
var ProjectFacts = ({
|
|
7244
7441
|
slice,
|
|
7245
7442
|
project
|
|
@@ -7270,16 +7467,16 @@ var ProjectFacts = ({
|
|
|
7270
7467
|
fetchCompleteProjectData();
|
|
7271
7468
|
}, [project]);
|
|
7272
7469
|
if (!enhancedProject) {
|
|
7273
|
-
return /* @__PURE__ */
|
|
7470
|
+
return /* @__PURE__ */ jsx49(Fragment24, { children: "Invalid configuration, check if a project this id exists in the FPM" });
|
|
7274
7471
|
}
|
|
7275
7472
|
if (isLoading) {
|
|
7276
|
-
return /* @__PURE__ */
|
|
7473
|
+
return /* @__PURE__ */ jsx49(DefaultSectionContainer28, { children: /* @__PURE__ */ jsx49(Wrapper32, { children: /* @__PURE__ */ jsx49("div", { children: "Loading project data..." }) }) });
|
|
7277
7474
|
}
|
|
7278
|
-
return /* @__PURE__ */
|
|
7279
|
-
/* @__PURE__ */
|
|
7280
|
-
/* @__PURE__ */
|
|
7281
|
-
slice.documentUrls && slice.documentUrls.length > 0 && /* @__PURE__ */
|
|
7282
|
-
slice.batchId && slice.pricePerKg && slice.currency && slice.initialContributionValue ? /* @__PURE__ */
|
|
7475
|
+
return /* @__PURE__ */ jsx49(DefaultSectionContainer28, { children: /* @__PURE__ */ jsx49(Wrapper32, { children: /* @__PURE__ */ jsxs42(Flex25, { flexDir: ["column", null, null, "row"], gap: "4", width: "full", children: [
|
|
7476
|
+
/* @__PURE__ */ jsx49(ProjectInfo_default, { project: enhancedProject, subtitles: slice }),
|
|
7477
|
+
/* @__PURE__ */ jsxs42(Flex25, { flexDir: "column", gap: "4", width: "full", children: [
|
|
7478
|
+
slice.documentUrls && slice.documentUrls.length > 0 && /* @__PURE__ */ jsx49(DocumentsDownloadList_default, { documentUrls: slice.documentUrls }),
|
|
7479
|
+
slice.batchId && slice.pricePerKg && slice.currency && slice.initialContributionValue ? /* @__PURE__ */ jsx49(
|
|
7283
7480
|
SmallCheckout_default2,
|
|
7284
7481
|
{
|
|
7285
7482
|
batchId: slice.batchId,
|
|
@@ -7292,7 +7489,7 @@ var ProjectFacts = ({
|
|
|
7292
7489
|
button: slice.customButton,
|
|
7293
7490
|
taxInPercent: slice.taxInPercent
|
|
7294
7491
|
}
|
|
7295
|
-
) : (slice.contactTitle || slice.contactText || slice.contactButton || slice.contactAvatar) && /* @__PURE__ */
|
|
7492
|
+
) : (slice.contactTitle || slice.contactText || slice.contactButton || slice.contactAvatar) && /* @__PURE__ */ jsx49(
|
|
7296
7493
|
Contact_default,
|
|
7297
7494
|
{
|
|
7298
7495
|
title: slice.contactTitle,
|
|
@@ -7309,21 +7506,21 @@ var ProjectFacts = ({
|
|
|
7309
7506
|
var ProjectFacts_default = ProjectFacts;
|
|
7310
7507
|
|
|
7311
7508
|
// src/slices/CustomerStories/CustomerStories.tsx
|
|
7312
|
-
import { Box as
|
|
7509
|
+
import { Box as Box41, DefaultSectionContainer as DefaultSectionContainer29, SimpleGrid as SimpleGrid17, Wrapper as Wrapper33 } from "boemly";
|
|
7313
7510
|
|
|
7314
7511
|
// src/components/CustomerCard/CustomerCard.tsx
|
|
7315
|
-
import { Container as Container7, Center as Center4, Heading as
|
|
7316
|
-
import { useContext as
|
|
7317
|
-
import
|
|
7318
|
-
import
|
|
7319
|
-
import { jsx as
|
|
7512
|
+
import { Container as Container7, Center as Center4, Heading as Heading18, Button as Button4, Box as Box38, Text as Text23, Flex as Flex26 } from "boemly";
|
|
7513
|
+
import { useContext as useContext21 } from "react";
|
|
7514
|
+
import Image29 from "next/image.js";
|
|
7515
|
+
import Link9 from "next/link.js";
|
|
7516
|
+
import { jsx as jsx50, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7320
7517
|
var CustomerCard = ({
|
|
7321
7518
|
customerStory
|
|
7322
7519
|
}) => {
|
|
7323
|
-
const { formatMessage } =
|
|
7324
|
-
return /* @__PURE__ */
|
|
7325
|
-
/* @__PURE__ */
|
|
7326
|
-
|
|
7520
|
+
const { formatMessage } = useContext21(IntlContext);
|
|
7521
|
+
return /* @__PURE__ */ jsx50(Container7, { padding: "none", height: "full", children: /* @__PURE__ */ jsxs43(Flex26, { flexDir: "column", height: "full", children: [
|
|
7522
|
+
/* @__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(
|
|
7523
|
+
Image29,
|
|
7327
7524
|
{
|
|
7328
7525
|
src: strapiMediaUrl_default(customerStory.cardImage.img, "medium"),
|
|
7329
7526
|
alt: customerStory.cardImage.alt,
|
|
@@ -7333,11 +7530,11 @@ var CustomerCard = ({
|
|
|
7333
7530
|
}
|
|
7334
7531
|
}
|
|
7335
7532
|
) }) }),
|
|
7336
|
-
/* @__PURE__ */
|
|
7337
|
-
customerStory.customerCardCustomerIndustry && /* @__PURE__ */
|
|
7338
|
-
customerStory.title && /* @__PURE__ */
|
|
7533
|
+
/* @__PURE__ */ jsxs43(Box38, { px: "6", pt: "8", pb: "6", mb: "auto", children: [
|
|
7534
|
+
customerStory.customerCardCustomerIndustry && /* @__PURE__ */ jsx50(Text23, { size: "xsMonoUppercase", color: "gray.500", mb: "2", children: customerStory.customerCardCustomerIndustry }),
|
|
7535
|
+
customerStory.title && /* @__PURE__ */ jsx50(Heading18, { size: "md", fontWeight: "500", children: customerStory.title })
|
|
7339
7536
|
] }),
|
|
7340
|
-
/* @__PURE__ */
|
|
7537
|
+
/* @__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" }) }) }) })
|
|
7341
7538
|
] }) });
|
|
7342
7539
|
};
|
|
7343
7540
|
|
|
@@ -7345,26 +7542,26 @@ var CustomerCard = ({
|
|
|
7345
7542
|
var CustomerCard_default = CustomerCard;
|
|
7346
7543
|
|
|
7347
7544
|
// src/components/CustomerQuoteCard/CustomerQuoteCard.tsx
|
|
7348
|
-
import { Container as Container8, Heading as
|
|
7349
|
-
import { useContext as
|
|
7350
|
-
import
|
|
7351
|
-
import
|
|
7352
|
-
import { Fragment as Fragment25, jsx as
|
|
7545
|
+
import { Container as Container8, Heading as Heading19, Button as Button5, Box as Box39, Text as Text24 } from "boemly";
|
|
7546
|
+
import { useContext as useContext22 } from "react";
|
|
7547
|
+
import Image30 from "next/image.js";
|
|
7548
|
+
import Link10 from "next/link.js";
|
|
7549
|
+
import { Fragment as Fragment25, jsx as jsx51, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7353
7550
|
var CustomerQuoteCard = ({
|
|
7354
7551
|
customerStory
|
|
7355
7552
|
}) => {
|
|
7356
|
-
const { formatMessage } =
|
|
7357
|
-
return /* @__PURE__ */
|
|
7358
|
-
customerStory.cardImage ? /* @__PURE__ */
|
|
7359
|
-
|
|
7553
|
+
const { formatMessage } = useContext22(IntlContext);
|
|
7554
|
+
return /* @__PURE__ */ jsxs44(Container8, { p: "1", backgroundColor: "primary.100", height: "full", children: [
|
|
7555
|
+
customerStory.cardImage ? /* @__PURE__ */ jsx51(
|
|
7556
|
+
Box39,
|
|
7360
7557
|
{
|
|
7361
7558
|
position: "relative",
|
|
7362
7559
|
height: "12",
|
|
7363
7560
|
width: "12",
|
|
7364
7561
|
borderRadius: "full",
|
|
7365
7562
|
overflow: "hidden",
|
|
7366
|
-
children: /* @__PURE__ */
|
|
7367
|
-
|
|
7563
|
+
children: /* @__PURE__ */ jsx51(
|
|
7564
|
+
Image30,
|
|
7368
7565
|
{
|
|
7369
7566
|
src: strapiMediaUrl_default(customerStory.cardImage.img, "medium"),
|
|
7370
7567
|
alt: customerStory.cardImage.alt,
|
|
@@ -7375,14 +7572,14 @@ var CustomerQuoteCard = ({
|
|
|
7375
7572
|
}
|
|
7376
7573
|
)
|
|
7377
7574
|
}
|
|
7378
|
-
) : /* @__PURE__ */
|
|
7379
|
-
/* @__PURE__ */
|
|
7380
|
-
/* @__PURE__ */
|
|
7381
|
-
/* @__PURE__ */
|
|
7382
|
-
/* @__PURE__ */
|
|
7575
|
+
) : /* @__PURE__ */ jsx51(Fragment25, {}),
|
|
7576
|
+
/* @__PURE__ */ jsxs44(Box39, { children: [
|
|
7577
|
+
/* @__PURE__ */ jsxs44(Box39, { my: "8", children: [
|
|
7578
|
+
/* @__PURE__ */ jsx51(Heading19, { size: "md", fontWeight: "500", children: customerStory.customerName }),
|
|
7579
|
+
/* @__PURE__ */ jsx51(Text24, { fontSize: "md", children: customerStory.quoteCardCustomerTitle })
|
|
7383
7580
|
] }),
|
|
7384
|
-
/* @__PURE__ */
|
|
7385
|
-
/* @__PURE__ */
|
|
7581
|
+
/* @__PURE__ */ jsx51(Text24, { fontSize: "md", color: "black", children: customerStory.quoteCardQuote }),
|
|
7582
|
+
/* @__PURE__ */ jsx51(Link10, { href: `/customer-stories/${customerStory.slug}`, children: /* @__PURE__ */ jsx51(Button5, { variant: "outline", size: "sm", mt: "8", children: formatMessage({ id: "sections.customerQuoteCard.more" }) }) })
|
|
7386
7583
|
] })
|
|
7387
7584
|
] });
|
|
7388
7585
|
};
|
|
@@ -7391,14 +7588,14 @@ var CustomerQuoteCard = ({
|
|
|
7391
7588
|
var CustomerQuoteCard_default = CustomerQuoteCard;
|
|
7392
7589
|
|
|
7393
7590
|
// src/components/LogoCard/LogoCard.tsx
|
|
7394
|
-
import { Box as
|
|
7395
|
-
import
|
|
7396
|
-
import
|
|
7397
|
-
import { Fragment as Fragment26, jsx as
|
|
7591
|
+
import { Box as Box40, Container as Container9, Flex as Flex27 } from "boemly";
|
|
7592
|
+
import Image31 from "next/image.js";
|
|
7593
|
+
import Link11 from "next/link.js";
|
|
7594
|
+
import { Fragment as Fragment26, jsx as jsx52 } from "react/jsx-runtime";
|
|
7398
7595
|
var LogoCard = ({ customerStory }) => {
|
|
7399
7596
|
if (customerStory.cardImage) {
|
|
7400
|
-
return /* @__PURE__ */
|
|
7401
|
-
|
|
7597
|
+
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(
|
|
7598
|
+
Image31,
|
|
7402
7599
|
{
|
|
7403
7600
|
src: strapiMediaUrl_default(customerStory.cardImage.img, "medium"),
|
|
7404
7601
|
alt: customerStory.cardImage.alt,
|
|
@@ -7409,29 +7606,29 @@ var LogoCard = ({ customerStory }) => {
|
|
|
7409
7606
|
}
|
|
7410
7607
|
) }) }) }) });
|
|
7411
7608
|
}
|
|
7412
|
-
return /* @__PURE__ */
|
|
7609
|
+
return /* @__PURE__ */ jsx52(Fragment26, {});
|
|
7413
7610
|
};
|
|
7414
7611
|
|
|
7415
7612
|
// src/components/LogoCard/index.ts
|
|
7416
7613
|
var LogoCard_default = LogoCard;
|
|
7417
7614
|
|
|
7418
7615
|
// src/slices/CustomerStories/CustomerStories.tsx
|
|
7419
|
-
import { jsx as
|
|
7616
|
+
import { jsx as jsx53, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7420
7617
|
var CustomerStories = ({
|
|
7421
7618
|
slice,
|
|
7422
7619
|
customerStories
|
|
7423
7620
|
}) => {
|
|
7424
|
-
return /* @__PURE__ */
|
|
7621
|
+
return /* @__PURE__ */ jsx53(DefaultSectionContainer29, { children: /* @__PURE__ */ jsx53(Wrapper33, { children: /* @__PURE__ */ jsx53(SimpleGrid17, { columns: [1, null, null, 2, 3], gap: "6", children: slice.customer_stories.map((customerStoryRef, index) => {
|
|
7425
7622
|
const customerStory = customerStories.find(
|
|
7426
7623
|
(cs) => cs.attributes.slug === customerStoryRef.attributes.slug
|
|
7427
7624
|
);
|
|
7428
7625
|
if (!customerStory) {
|
|
7429
7626
|
return null;
|
|
7430
7627
|
}
|
|
7431
|
-
return /* @__PURE__ */
|
|
7432
|
-
customerStoryRef.attributes.variant === "customerCard" && /* @__PURE__ */
|
|
7433
|
-
customerStoryRef.attributes.variant === "quoteCard" && /* @__PURE__ */
|
|
7434
|
-
customerStoryRef.attributes.variant === "logoCard" && /* @__PURE__ */
|
|
7628
|
+
return /* @__PURE__ */ jsxs45(Box41, { children: [
|
|
7629
|
+
customerStoryRef.attributes.variant === "customerCard" && /* @__PURE__ */ jsx53(CustomerCard_default, { customerStory: customerStory.attributes }),
|
|
7630
|
+
customerStoryRef.attributes.variant === "quoteCard" && /* @__PURE__ */ jsx53(CustomerQuoteCard_default, { customerStory: customerStory.attributes }),
|
|
7631
|
+
customerStoryRef.attributes.variant === "logoCard" && /* @__PURE__ */ jsx53(LogoCard_default, { customerStory: customerStory.attributes })
|
|
7435
7632
|
] }, `${customerStoryRef.id}-${index}`);
|
|
7436
7633
|
}) }) }) });
|
|
7437
7634
|
};
|
|
@@ -7440,28 +7637,28 @@ var CustomerStories = ({
|
|
|
7440
7637
|
var CustomerStories_default = CustomerStories;
|
|
7441
7638
|
|
|
7442
7639
|
// src/slices/Comparison/Comparison.tsx
|
|
7443
|
-
import { useContext as
|
|
7640
|
+
import { useContext as useContext23 } from "react";
|
|
7444
7641
|
import {
|
|
7445
7642
|
Container as Container10,
|
|
7446
|
-
DefaultSectionContainer as
|
|
7643
|
+
DefaultSectionContainer as DefaultSectionContainer30,
|
|
7447
7644
|
DefaultSectionHeader as DefaultSectionHeader21,
|
|
7448
|
-
Wrapper as
|
|
7449
|
-
Text as
|
|
7450
|
-
Flex as
|
|
7451
|
-
Box as
|
|
7645
|
+
Wrapper as Wrapper34,
|
|
7646
|
+
Text as Text25,
|
|
7647
|
+
Flex as Flex28,
|
|
7648
|
+
Box as Box43,
|
|
7452
7649
|
Spacer as Spacer13,
|
|
7453
7650
|
Separator as Separator5,
|
|
7454
|
-
Heading as
|
|
7651
|
+
Heading as Heading20,
|
|
7455
7652
|
Badge as Badge2,
|
|
7456
|
-
SimpleGrid as
|
|
7653
|
+
SimpleGrid as SimpleGrid18
|
|
7457
7654
|
} from "boemly";
|
|
7458
|
-
import
|
|
7655
|
+
import Image32 from "next/image.js";
|
|
7459
7656
|
import { CaretRightIcon as CaretRightIcon7 } from "@phosphor-icons/react";
|
|
7460
7657
|
|
|
7461
7658
|
// src/slices/Comparison/Icon.tsx
|
|
7462
7659
|
import { CheckIcon as CheckIcon2, XIcon } from "@phosphor-icons/react";
|
|
7463
|
-
import { Box as
|
|
7464
|
-
import { jsx as
|
|
7660
|
+
import { Box as Box42 } from "boemly";
|
|
7661
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
7465
7662
|
var BULLET_POINT_VARIANTS = {
|
|
7466
7663
|
gray: { bulletPointColor: "black" },
|
|
7467
7664
|
green: { bulletPointColor: "white" },
|
|
@@ -7470,12 +7667,12 @@ var BULLET_POINT_VARIANTS = {
|
|
|
7470
7667
|
var Icon = ({ variant, icon }) => {
|
|
7471
7668
|
switch (icon) {
|
|
7472
7669
|
case "check":
|
|
7473
|
-
return /* @__PURE__ */
|
|
7670
|
+
return /* @__PURE__ */ jsx54(CheckIcon2, { size: 20, color: "var(--boemly-colors-primary-500)" });
|
|
7474
7671
|
case "cross":
|
|
7475
|
-
return /* @__PURE__ */
|
|
7672
|
+
return /* @__PURE__ */ jsx54(XIcon, { size: 20, color: "var(--boemly-colors-red-500)" });
|
|
7476
7673
|
default:
|
|
7477
|
-
return /* @__PURE__ */
|
|
7478
|
-
|
|
7674
|
+
return /* @__PURE__ */ jsx54(
|
|
7675
|
+
Box42,
|
|
7479
7676
|
{
|
|
7480
7677
|
"data-testid": "bullet-point-box",
|
|
7481
7678
|
borderRadius: "full",
|
|
@@ -7489,8 +7686,8 @@ var Icon = ({ variant, icon }) => {
|
|
|
7489
7686
|
};
|
|
7490
7687
|
|
|
7491
7688
|
// src/slices/Comparison/Comparison.tsx
|
|
7492
|
-
import { Fragment as Fragment27, jsx as
|
|
7493
|
-
var
|
|
7689
|
+
import { Fragment as Fragment27, jsx as jsx55, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7690
|
+
var VARIANTS4 = {
|
|
7494
7691
|
gray: {
|
|
7495
7692
|
backgroundColor: "primary.50",
|
|
7496
7693
|
textColor: "black",
|
|
@@ -7516,10 +7713,10 @@ var VARIANTS5 = {
|
|
|
7516
7713
|
var Comparison = ({
|
|
7517
7714
|
slice
|
|
7518
7715
|
}) => {
|
|
7519
|
-
const { formatMessage } =
|
|
7520
|
-
return /* @__PURE__ */
|
|
7521
|
-
slice.title ? /* @__PURE__ */
|
|
7522
|
-
/* @__PURE__ */
|
|
7716
|
+
const { formatMessage } = useContext23(IntlContext);
|
|
7717
|
+
return /* @__PURE__ */ jsx55(DefaultSectionContainer30, { children: /* @__PURE__ */ jsxs46(Wrapper34, { children: [
|
|
7718
|
+
slice.title ? /* @__PURE__ */ jsxs46(Fragment27, { children: [
|
|
7719
|
+
/* @__PURE__ */ jsx55(Flex28, { alignItems: "center", flexDirection: "column", children: /* @__PURE__ */ jsx55(
|
|
7523
7720
|
DefaultSectionHeader21,
|
|
7524
7721
|
{
|
|
7525
7722
|
tagline: slice.tagline,
|
|
@@ -7533,14 +7730,14 @@ var Comparison = ({
|
|
|
7533
7730
|
taglineProps: { textAlign: "center", maxWidth: "3xl" }
|
|
7534
7731
|
}
|
|
7535
7732
|
) }),
|
|
7536
|
-
/* @__PURE__ */
|
|
7537
|
-
] }) : /* @__PURE__ */
|
|
7538
|
-
/* @__PURE__ */
|
|
7539
|
-
|
|
7733
|
+
/* @__PURE__ */ jsx55(Spacer13, { height: "12" })
|
|
7734
|
+
] }) : /* @__PURE__ */ jsx55(Fragment27, {}),
|
|
7735
|
+
/* @__PURE__ */ jsx55(
|
|
7736
|
+
SimpleGrid18,
|
|
7540
7737
|
{
|
|
7541
7738
|
columns: [1, null, null, null, slice.comparisonCards.length],
|
|
7542
7739
|
gap: "4",
|
|
7543
|
-
children: slice.comparisonCards.map((comparisonCard) => /* @__PURE__ */
|
|
7740
|
+
children: slice.comparisonCards.map((comparisonCard) => /* @__PURE__ */ jsxs46(
|
|
7544
7741
|
Container10,
|
|
7545
7742
|
{
|
|
7546
7743
|
boxShadow: comparisonCard.variant === "green" ? "xl" : "base",
|
|
@@ -7549,10 +7746,10 @@ var Comparison = ({
|
|
|
7549
7746
|
position: "relative",
|
|
7550
7747
|
elevation: "none",
|
|
7551
7748
|
p: "3",
|
|
7552
|
-
backgroundColor:
|
|
7749
|
+
backgroundColor: VARIANTS4[comparisonCard.variant].backgroundColor,
|
|
7553
7750
|
children: [
|
|
7554
|
-
comparisonCard.variant === "green" ? /* @__PURE__ */
|
|
7555
|
-
|
|
7751
|
+
comparisonCard.variant === "green" ? /* @__PURE__ */ jsx55(
|
|
7752
|
+
Box43,
|
|
7556
7753
|
{
|
|
7557
7754
|
position: "absolute",
|
|
7558
7755
|
left: "0",
|
|
@@ -7560,8 +7757,8 @@ var Comparison = ({
|
|
|
7560
7757
|
width: "full",
|
|
7561
7758
|
height: "full",
|
|
7562
7759
|
zIndex: "-1",
|
|
7563
|
-
children: /* @__PURE__ */
|
|
7564
|
-
|
|
7760
|
+
children: /* @__PURE__ */ jsx55(
|
|
7761
|
+
Image32,
|
|
7565
7762
|
{
|
|
7566
7763
|
src: `${CDN_URI}/assets/v3/strapi-slices/shapes-comparison.svg`,
|
|
7567
7764
|
alt: formatMessage({
|
|
@@ -7575,10 +7772,10 @@ var Comparison = ({
|
|
|
7575
7772
|
}
|
|
7576
7773
|
)
|
|
7577
7774
|
}
|
|
7578
|
-
) : /* @__PURE__ */
|
|
7579
|
-
/* @__PURE__ */
|
|
7580
|
-
comparisonCard.image && /* @__PURE__ */
|
|
7581
|
-
|
|
7775
|
+
) : /* @__PURE__ */ jsx55(Fragment27, {}),
|
|
7776
|
+
/* @__PURE__ */ jsxs46(Flex28, { flexDir: "column", gap: "4", children: [
|
|
7777
|
+
comparisonCard.image && /* @__PURE__ */ jsx55(Box43, { position: "relative", height: "7", width: "100%", children: /* @__PURE__ */ jsx55(
|
|
7778
|
+
Image32,
|
|
7582
7779
|
{
|
|
7583
7780
|
src: strapiMediaUrl_default(comparisonCard.image.img, "small"),
|
|
7584
7781
|
alt: comparisonCard.image.alt,
|
|
@@ -7588,17 +7785,17 @@ var Comparison = ({
|
|
|
7588
7785
|
}
|
|
7589
7786
|
}
|
|
7590
7787
|
) }),
|
|
7591
|
-
/* @__PURE__ */
|
|
7592
|
-
/* @__PURE__ */
|
|
7593
|
-
|
|
7788
|
+
/* @__PURE__ */ jsxs46(Flex28, { gap: "2", alignItems: "center", flexWrap: "wrap", children: [
|
|
7789
|
+
/* @__PURE__ */ jsx55(
|
|
7790
|
+
Heading20,
|
|
7594
7791
|
{
|
|
7595
7792
|
size: "xl",
|
|
7596
|
-
color:
|
|
7793
|
+
color: VARIANTS4[comparisonCard.variant].textColor,
|
|
7597
7794
|
whiteSpace: "pre-line",
|
|
7598
7795
|
children: comparisonCard.title
|
|
7599
7796
|
}
|
|
7600
7797
|
),
|
|
7601
|
-
comparisonCard.badge && /* @__PURE__ */
|
|
7798
|
+
comparisonCard.badge && /* @__PURE__ */ jsx55(
|
|
7602
7799
|
Badge2,
|
|
7603
7800
|
{
|
|
7604
7801
|
backgroundColor: "green.100",
|
|
@@ -7609,80 +7806,80 @@ var Comparison = ({
|
|
|
7609
7806
|
)
|
|
7610
7807
|
] })
|
|
7611
7808
|
] }),
|
|
7612
|
-
/* @__PURE__ */
|
|
7613
|
-
/* @__PURE__ */
|
|
7614
|
-
|
|
7809
|
+
/* @__PURE__ */ jsx55(Spacer13, { height: "4" }),
|
|
7810
|
+
/* @__PURE__ */ jsx55(
|
|
7811
|
+
Text25,
|
|
7615
7812
|
{
|
|
7616
7813
|
size: "smRegularNormal",
|
|
7617
|
-
color:
|
|
7814
|
+
color: VARIANTS4[comparisonCard.variant].subTitleColor,
|
|
7618
7815
|
children: comparisonCard.subTitle
|
|
7619
7816
|
}
|
|
7620
7817
|
),
|
|
7621
|
-
comparisonCard.factTitle || comparisonCard.factSubtitle || comparisonCard.button ? /* @__PURE__ */
|
|
7622
|
-
/* @__PURE__ */
|
|
7623
|
-
/* @__PURE__ */
|
|
7624
|
-
comparisonCard.factTitle && /* @__PURE__ */
|
|
7625
|
-
/* @__PURE__ */
|
|
7626
|
-
|
|
7818
|
+
comparisonCard.factTitle || comparisonCard.factSubtitle || comparisonCard.button ? /* @__PURE__ */ jsxs46(Fragment27, { children: [
|
|
7819
|
+
/* @__PURE__ */ jsx55(Spacer13, { height: "6" }),
|
|
7820
|
+
/* @__PURE__ */ jsxs46(Flex28, { flexDir: "column", children: [
|
|
7821
|
+
comparisonCard.factTitle && /* @__PURE__ */ jsxs46(Fragment27, { children: [
|
|
7822
|
+
/* @__PURE__ */ jsx55(
|
|
7823
|
+
Text25,
|
|
7627
7824
|
{
|
|
7628
|
-
color:
|
|
7825
|
+
color: VARIANTS4[comparisonCard.variant].factColor,
|
|
7629
7826
|
size: "lgMonoNormal",
|
|
7630
7827
|
children: comparisonCard.factTitle
|
|
7631
7828
|
}
|
|
7632
7829
|
),
|
|
7633
|
-
/* @__PURE__ */
|
|
7634
|
-
|
|
7830
|
+
/* @__PURE__ */ jsx55(
|
|
7831
|
+
Text25,
|
|
7635
7832
|
{
|
|
7636
|
-
color:
|
|
7833
|
+
color: VARIANTS4[comparisonCard.variant].factColor,
|
|
7637
7834
|
size: "smLowNormal",
|
|
7638
7835
|
children: comparisonCard.factSubtitle
|
|
7639
7836
|
}
|
|
7640
7837
|
)
|
|
7641
7838
|
] }),
|
|
7642
|
-
comparisonCard.button && /* @__PURE__ */
|
|
7839
|
+
comparisonCard.button && /* @__PURE__ */ jsx55(
|
|
7643
7840
|
StrapiLinkButton_default,
|
|
7644
7841
|
{
|
|
7645
7842
|
mt: "6",
|
|
7646
7843
|
link: comparisonCard.button,
|
|
7647
7844
|
size: "md",
|
|
7648
7845
|
variant: "outline",
|
|
7649
|
-
rightIcon: /* @__PURE__ */
|
|
7846
|
+
rightIcon: /* @__PURE__ */ jsx55(CaretRightIcon7, { size: 16, weight: "bold" }),
|
|
7650
7847
|
component: "Comparison"
|
|
7651
7848
|
}
|
|
7652
7849
|
)
|
|
7653
7850
|
] })
|
|
7654
|
-
] }) : /* @__PURE__ */
|
|
7655
|
-
/* @__PURE__ */
|
|
7656
|
-
/* @__PURE__ */
|
|
7851
|
+
] }) : /* @__PURE__ */ jsx55(Fragment27, {}),
|
|
7852
|
+
/* @__PURE__ */ jsx55(Fragment27, { children: comparisonCard.lists.map((list) => /* @__PURE__ */ jsxs46(Box43, { children: [
|
|
7853
|
+
/* @__PURE__ */ jsx55(
|
|
7657
7854
|
Separator5,
|
|
7658
7855
|
{
|
|
7659
7856
|
my: "8",
|
|
7660
|
-
color:
|
|
7857
|
+
color: VARIANTS4[comparisonCard.variant].dividerColor
|
|
7661
7858
|
}
|
|
7662
7859
|
),
|
|
7663
|
-
/* @__PURE__ */
|
|
7664
|
-
|
|
7860
|
+
/* @__PURE__ */ jsx55(
|
|
7861
|
+
Text25,
|
|
7665
7862
|
{
|
|
7666
7863
|
size: "smLowBold",
|
|
7667
|
-
color:
|
|
7864
|
+
color: VARIANTS4[comparisonCard.variant].textColor,
|
|
7668
7865
|
children: list.title
|
|
7669
7866
|
}
|
|
7670
7867
|
),
|
|
7671
|
-
/* @__PURE__ */
|
|
7672
|
-
/* @__PURE__ */
|
|
7673
|
-
/* @__PURE__ */
|
|
7674
|
-
/* @__PURE__ */
|
|
7868
|
+
/* @__PURE__ */ jsx55(Fragment27, { children: list.items.map((item) => /* @__PURE__ */ jsxs46(Box43, { children: [
|
|
7869
|
+
/* @__PURE__ */ jsx55(Spacer13, { height: "4" }),
|
|
7870
|
+
/* @__PURE__ */ jsxs46(Flex28, { gap: "4", alignItems: "center", children: [
|
|
7871
|
+
/* @__PURE__ */ jsx55(Box43, { children: /* @__PURE__ */ jsx55(
|
|
7675
7872
|
Icon,
|
|
7676
7873
|
{
|
|
7677
7874
|
variant: comparisonCard.variant,
|
|
7678
7875
|
icon: item.icon
|
|
7679
7876
|
}
|
|
7680
7877
|
) }),
|
|
7681
|
-
/* @__PURE__ */
|
|
7682
|
-
|
|
7878
|
+
/* @__PURE__ */ jsx55(
|
|
7879
|
+
Text25,
|
|
7683
7880
|
{
|
|
7684
7881
|
size: "smLowNormal",
|
|
7685
|
-
color:
|
|
7882
|
+
color: VARIANTS4[comparisonCard.variant].textColor,
|
|
7686
7883
|
children: item.text
|
|
7687
7884
|
}
|
|
7688
7885
|
)
|
|
@@ -7704,15 +7901,15 @@ var Comparison_default = Comparison;
|
|
|
7704
7901
|
// src/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.tsx
|
|
7705
7902
|
import { useEffect as useEffect6, useState as useState9 } from "react";
|
|
7706
7903
|
import {
|
|
7707
|
-
DefaultSectionContainer as
|
|
7708
|
-
Flex as
|
|
7709
|
-
Heading as
|
|
7904
|
+
DefaultSectionContainer as DefaultSectionContainer31,
|
|
7905
|
+
Flex as Flex29,
|
|
7906
|
+
Heading as Heading21,
|
|
7710
7907
|
Spacer as Spacer14,
|
|
7711
|
-
Box as
|
|
7908
|
+
Box as Box44,
|
|
7712
7909
|
useMediaQuery as useMediaQuery7,
|
|
7713
7910
|
useToken as useToken10
|
|
7714
7911
|
} from "boemly";
|
|
7715
|
-
import
|
|
7912
|
+
import Image33 from "next/image.js";
|
|
7716
7913
|
import useEmblaCarousel from "embla-carousel-react";
|
|
7717
7914
|
import { useWindowSize as useWindowSize4 } from "@reactuses/core";
|
|
7718
7915
|
import AutoScroll from "embla-carousel-auto-scroll";
|
|
@@ -7751,7 +7948,7 @@ var LogoGrid = styled5(motion5.div)`
|
|
|
7751
7948
|
`;
|
|
7752
7949
|
|
|
7753
7950
|
// src/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.tsx
|
|
7754
|
-
import { Fragment as Fragment28, jsx as
|
|
7951
|
+
import { Fragment as Fragment28, jsx as jsx56, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7755
7952
|
var CarouselMarqueeBannerContent = ({
|
|
7756
7953
|
slice
|
|
7757
7954
|
}) => {
|
|
@@ -7780,20 +7977,20 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7780
7977
|
);
|
|
7781
7978
|
const renderLogos = () => {
|
|
7782
7979
|
if (!hasEnoughLogosForLoop) {
|
|
7783
|
-
return /* @__PURE__ */
|
|
7784
|
-
|
|
7980
|
+
return /* @__PURE__ */ jsx56(LogoGrid, { children: slice.logos.map((logo, index) => /* @__PURE__ */ jsx56(
|
|
7981
|
+
Box44,
|
|
7785
7982
|
{
|
|
7786
7983
|
flexShrink: 0,
|
|
7787
7984
|
transform: "translate3d(0, 0, 0)",
|
|
7788
|
-
children: /* @__PURE__ */
|
|
7789
|
-
|
|
7985
|
+
children: /* @__PURE__ */ jsx56(
|
|
7986
|
+
Flex29,
|
|
7790
7987
|
{
|
|
7791
7988
|
height: "full",
|
|
7792
7989
|
width: "full",
|
|
7793
7990
|
justifyContent: "center",
|
|
7794
7991
|
alignItems: "center",
|
|
7795
|
-
children: /* @__PURE__ */
|
|
7796
|
-
|
|
7992
|
+
children: /* @__PURE__ */ jsx56(
|
|
7993
|
+
Box44,
|
|
7797
7994
|
{
|
|
7798
7995
|
position: "relative",
|
|
7799
7996
|
height: isMobile ? "16" : "36",
|
|
@@ -7802,8 +7999,8 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7802
7999
|
logo.img.data.attributes.width,
|
|
7803
8000
|
logo.img.data.attributes.height
|
|
7804
8001
|
)})`,
|
|
7805
|
-
children: /* @__PURE__ */
|
|
7806
|
-
|
|
8002
|
+
children: /* @__PURE__ */ jsx56(
|
|
8003
|
+
Image33,
|
|
7807
8004
|
{
|
|
7808
8005
|
src: strapiMediaUrl_default(logo.img, "large"),
|
|
7809
8006
|
alt: logo.alt,
|
|
@@ -7822,20 +8019,20 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7822
8019
|
`${logo.id}-${index}`
|
|
7823
8020
|
)) });
|
|
7824
8021
|
}
|
|
7825
|
-
return /* @__PURE__ */
|
|
7826
|
-
|
|
8022
|
+
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(
|
|
8023
|
+
Box44,
|
|
7827
8024
|
{
|
|
7828
8025
|
flexShrink: 0,
|
|
7829
8026
|
transform: "translate3d(0, 0, 0)",
|
|
7830
|
-
children: /* @__PURE__ */
|
|
7831
|
-
|
|
8027
|
+
children: /* @__PURE__ */ jsx56(
|
|
8028
|
+
Flex29,
|
|
7832
8029
|
{
|
|
7833
8030
|
height: "full",
|
|
7834
8031
|
width: "full",
|
|
7835
8032
|
justifyContent: "center",
|
|
7836
8033
|
alignItems: "center",
|
|
7837
|
-
children: /* @__PURE__ */
|
|
7838
|
-
|
|
8034
|
+
children: /* @__PURE__ */ jsx56(
|
|
8035
|
+
Box44,
|
|
7839
8036
|
{
|
|
7840
8037
|
position: "relative",
|
|
7841
8038
|
height: isMobile ? "16" : "36",
|
|
@@ -7843,8 +8040,8 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7843
8040
|
logo.img.data.attributes.width,
|
|
7844
8041
|
logo.img.data.attributes.height
|
|
7845
8042
|
)})`,
|
|
7846
|
-
children: /* @__PURE__ */
|
|
7847
|
-
|
|
8043
|
+
children: /* @__PURE__ */ jsx56(
|
|
8044
|
+
Image33,
|
|
7848
8045
|
{
|
|
7849
8046
|
src: strapiMediaUrl_default(logo.img, "large"),
|
|
7850
8047
|
alt: logo.alt,
|
|
@@ -7863,10 +8060,10 @@ var CarouselMarqueeBannerContent = ({
|
|
|
7863
8060
|
`${logo.id}-${index}`
|
|
7864
8061
|
)) }) });
|
|
7865
8062
|
};
|
|
7866
|
-
return /* @__PURE__ */
|
|
7867
|
-
slice.title ? /* @__PURE__ */
|
|
7868
|
-
/* @__PURE__ */
|
|
7869
|
-
/* @__PURE__ */
|
|
8063
|
+
return /* @__PURE__ */ jsx56(DefaultSectionContainer31, { backgroundColor: primary50, children: /* @__PURE__ */ jsxs47(Fragment28, { children: [
|
|
8064
|
+
slice.title ? /* @__PURE__ */ jsxs47(Fragment28, { children: [
|
|
8065
|
+
/* @__PURE__ */ jsx56(Flex29, { alignItems: "center", flexDirection: "column", children: /* @__PURE__ */ jsx56(Heading21, { size: "md", fontWeight: "500", children: slice.title }) }),
|
|
8066
|
+
/* @__PURE__ */ jsx56(Spacer14, { height: "12", minHeight: "12" })
|
|
7870
8067
|
] }) : null,
|
|
7871
8068
|
renderLogos()
|
|
7872
8069
|
] }) });
|
|
@@ -7879,46 +8076,46 @@ var CarouselMarqueeBanner = ({
|
|
|
7879
8076
|
setShowChild(true);
|
|
7880
8077
|
}, []);
|
|
7881
8078
|
if (!showChild) {
|
|
7882
|
-
return /* @__PURE__ */
|
|
8079
|
+
return /* @__PURE__ */ jsx56("div", {});
|
|
7883
8080
|
}
|
|
7884
|
-
return /* @__PURE__ */
|
|
8081
|
+
return /* @__PURE__ */ jsx56(CarouselMarqueeBannerContent, { slice });
|
|
7885
8082
|
};
|
|
7886
8083
|
|
|
7887
8084
|
// src/slices/CarouselMarqueeBanner/index.ts
|
|
7888
8085
|
var CarouselMarqueeBanner_default = CarouselMarqueeBanner;
|
|
7889
8086
|
|
|
7890
8087
|
// src/slices/Timeline/Timeline.tsx
|
|
7891
|
-
import { useContext as
|
|
8088
|
+
import { useContext as useContext24 } from "react";
|
|
7892
8089
|
import {
|
|
7893
8090
|
Button as Button6,
|
|
7894
|
-
Box as
|
|
8091
|
+
Box as Box45,
|
|
7895
8092
|
Container as Container11,
|
|
7896
|
-
DefaultSectionContainer as
|
|
8093
|
+
DefaultSectionContainer as DefaultSectionContainer32,
|
|
7897
8094
|
DefaultSectionHeader as DefaultSectionHeader22,
|
|
7898
|
-
Flex as
|
|
7899
|
-
Heading as
|
|
8095
|
+
Flex as Flex30,
|
|
8096
|
+
Heading as Heading22,
|
|
7900
8097
|
RichText as RichText6,
|
|
7901
|
-
SimpleGrid as
|
|
8098
|
+
SimpleGrid as SimpleGrid19,
|
|
7902
8099
|
Spacer as Spacer15,
|
|
7903
|
-
Text as
|
|
7904
|
-
Wrapper as
|
|
8100
|
+
Text as Text26,
|
|
8101
|
+
Wrapper as Wrapper35,
|
|
7905
8102
|
useMediaQuery as useMediaQuery8,
|
|
7906
|
-
BoemlyTag as
|
|
8103
|
+
BoemlyTag as BoemlyTag6
|
|
7907
8104
|
} from "boemly";
|
|
7908
|
-
import
|
|
8105
|
+
import Image34 from "next/image.js";
|
|
7909
8106
|
import { useState as useState10 } from "react";
|
|
7910
|
-
import { Fragment as Fragment29, jsx as
|
|
8107
|
+
import { Fragment as Fragment29, jsx as jsx57, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7911
8108
|
var Timeline = ({ slice }) => {
|
|
7912
|
-
const { formatMessage } =
|
|
8109
|
+
const { formatMessage } = useContext24(IntlContext);
|
|
7913
8110
|
const [visibleItems, setVisibleItems] = useState10(3);
|
|
7914
8111
|
const [mobile] = useMediaQuery8([BREAKPOINT_MD_QUERY]);
|
|
7915
8112
|
const [isOpen, setIsOpen] = useState10(false);
|
|
7916
8113
|
const showMoreItems = () => {
|
|
7917
8114
|
setVisibleItems((prevVisibleItems) => prevVisibleItems + 3);
|
|
7918
8115
|
};
|
|
7919
|
-
return /* @__PURE__ */
|
|
7920
|
-
/* @__PURE__ */
|
|
7921
|
-
|
|
8116
|
+
return /* @__PURE__ */ jsx57(DefaultSectionContainer32, { children: /* @__PURE__ */ jsx57(Wrapper35, { children: /* @__PURE__ */ jsxs48(Flex30, { flexDir: ["column", null, "row"], children: [
|
|
8117
|
+
/* @__PURE__ */ jsxs48(
|
|
8118
|
+
Box45,
|
|
7922
8119
|
{
|
|
7923
8120
|
width: ["full", null, "50%"],
|
|
7924
8121
|
position: [null, null, "sticky"],
|
|
@@ -7926,7 +8123,7 @@ var Timeline = ({ slice }) => {
|
|
|
7926
8123
|
height: "full",
|
|
7927
8124
|
paddingRight: [null, null, "28"],
|
|
7928
8125
|
children: [
|
|
7929
|
-
/* @__PURE__ */
|
|
8126
|
+
/* @__PURE__ */ jsx57(
|
|
7930
8127
|
DefaultSectionHeader22,
|
|
7931
8128
|
{
|
|
7932
8129
|
tagline: slice.tagline,
|
|
@@ -7934,10 +8131,10 @@ var Timeline = ({ slice }) => {
|
|
|
7934
8131
|
text: slice.text
|
|
7935
8132
|
}
|
|
7936
8133
|
),
|
|
7937
|
-
mobile && /* @__PURE__ */
|
|
7938
|
-
/* @__PURE__ */
|
|
7939
|
-
/* @__PURE__ */
|
|
7940
|
-
|
|
8134
|
+
mobile && /* @__PURE__ */ jsxs48(Fragment29, { children: [
|
|
8135
|
+
/* @__PURE__ */ jsx57(Spacer15, { height: "10" }),
|
|
8136
|
+
/* @__PURE__ */ jsx57(Flex30, { justifyContent: "center", children: /* @__PURE__ */ jsx57(
|
|
8137
|
+
Box45,
|
|
7941
8138
|
{
|
|
7942
8139
|
borderRadius: "full",
|
|
7943
8140
|
width: "3",
|
|
@@ -7946,8 +8143,8 @@ var Timeline = ({ slice }) => {
|
|
|
7946
8143
|
backgroundColor: "gray"
|
|
7947
8144
|
}
|
|
7948
8145
|
) }),
|
|
7949
|
-
/* @__PURE__ */
|
|
7950
|
-
|
|
8146
|
+
/* @__PURE__ */ jsx57(
|
|
8147
|
+
Box45,
|
|
7951
8148
|
{
|
|
7952
8149
|
overflow: "visible",
|
|
7953
8150
|
borderRight: "dashed 1px var(--boemly-colors-gray-200)",
|
|
@@ -7960,8 +8157,8 @@ var Timeline = ({ slice }) => {
|
|
|
7960
8157
|
]
|
|
7961
8158
|
}
|
|
7962
8159
|
),
|
|
7963
|
-
/* @__PURE__ */
|
|
7964
|
-
|
|
8160
|
+
/* @__PURE__ */ jsxs48(
|
|
8161
|
+
Box45,
|
|
7965
8162
|
{
|
|
7966
8163
|
overflow: "visible",
|
|
7967
8164
|
maxWidth: ["full", null, "50%"],
|
|
@@ -7973,8 +8170,8 @@ var Timeline = ({ slice }) => {
|
|
|
7973
8170
|
position: "relative",
|
|
7974
8171
|
width: "full",
|
|
7975
8172
|
children: [
|
|
7976
|
-
/* @__PURE__ */
|
|
7977
|
-
|
|
8173
|
+
/* @__PURE__ */ jsx57(Flex30, { flexDir: "column", overflow: "visible", gap: ["8", null, "8"], children: slice.timelineItems.slice(0, visibleItems).map((item, index) => /* @__PURE__ */ jsxs48(
|
|
8174
|
+
SimpleGrid19,
|
|
7978
8175
|
{
|
|
7979
8176
|
gap: ["4", null, "4"],
|
|
7980
8177
|
columns: [1, null, 2],
|
|
@@ -7982,28 +8179,28 @@ var Timeline = ({ slice }) => {
|
|
|
7982
8179
|
gridTemplateColumns: [null, null, "1fr 16fr"],
|
|
7983
8180
|
position: "relative",
|
|
7984
8181
|
children: [
|
|
7985
|
-
/* @__PURE__ */
|
|
7986
|
-
|
|
8182
|
+
/* @__PURE__ */ jsx57(
|
|
8183
|
+
Flex30,
|
|
7987
8184
|
{
|
|
7988
8185
|
alignItems: "center",
|
|
7989
8186
|
justifyContent: ["center", null, "flex-start"],
|
|
7990
|
-
children: /* @__PURE__ */
|
|
7991
|
-
|
|
8187
|
+
children: /* @__PURE__ */ jsxs48(
|
|
8188
|
+
Box45,
|
|
7992
8189
|
{
|
|
7993
8190
|
position: "absolute",
|
|
7994
8191
|
transform: [null, null, "translateX(-50%)"],
|
|
7995
8192
|
backgroundColor: "white",
|
|
7996
8193
|
children: [
|
|
7997
|
-
item.icon ? /* @__PURE__ */
|
|
7998
|
-
|
|
8194
|
+
item.icon ? /* @__PURE__ */ jsx57(Box45, { padding: "2", children: /* @__PURE__ */ jsx57(
|
|
8195
|
+
Image34,
|
|
7999
8196
|
{
|
|
8000
8197
|
src: strapiMediaUrl_default(item.icon.img, "xSmall"),
|
|
8001
8198
|
alt: item.icon.alt,
|
|
8002
8199
|
width: "21",
|
|
8003
8200
|
height: "21"
|
|
8004
8201
|
}
|
|
8005
|
-
) }) : /* @__PURE__ */
|
|
8006
|
-
|
|
8202
|
+
) }) : /* @__PURE__ */ jsx57(Box45, { padding: "2", children: /* @__PURE__ */ jsx57(
|
|
8203
|
+
Box45,
|
|
8007
8204
|
{
|
|
8008
8205
|
borderRadius: "full",
|
|
8009
8206
|
backgroundColor: "primary.800",
|
|
@@ -8011,8 +8208,8 @@ var Timeline = ({ slice }) => {
|
|
|
8011
8208
|
height: "2"
|
|
8012
8209
|
}
|
|
8013
8210
|
) }),
|
|
8014
|
-
mobile && /* @__PURE__ */
|
|
8015
|
-
|
|
8211
|
+
mobile && /* @__PURE__ */ jsx57(
|
|
8212
|
+
Box45,
|
|
8016
8213
|
{
|
|
8017
8214
|
overflow: "visible",
|
|
8018
8215
|
borderRight: "dashed 1px var(--boemly-colors-gray-200)",
|
|
@@ -8026,7 +8223,7 @@ var Timeline = ({ slice }) => {
|
|
|
8026
8223
|
)
|
|
8027
8224
|
}
|
|
8028
8225
|
),
|
|
8029
|
-
/* @__PURE__ */
|
|
8226
|
+
/* @__PURE__ */ jsxs48(
|
|
8030
8227
|
Container11,
|
|
8031
8228
|
{
|
|
8032
8229
|
p: [null, null, null, "3"],
|
|
@@ -8034,8 +8231,8 @@ var Timeline = ({ slice }) => {
|
|
|
8034
8231
|
position: "relative",
|
|
8035
8232
|
elevation: "none",
|
|
8036
8233
|
children: [
|
|
8037
|
-
item.backgroundShapes ? /* @__PURE__ */
|
|
8038
|
-
|
|
8234
|
+
item.backgroundShapes ? /* @__PURE__ */ jsx57(
|
|
8235
|
+
Box45,
|
|
8039
8236
|
{
|
|
8040
8237
|
position: "absolute",
|
|
8041
8238
|
left: "0",
|
|
@@ -8043,8 +8240,8 @@ var Timeline = ({ slice }) => {
|
|
|
8043
8240
|
width: "full",
|
|
8044
8241
|
height: "full",
|
|
8045
8242
|
zIndex: "-1",
|
|
8046
|
-
children: /* @__PURE__ */
|
|
8047
|
-
|
|
8243
|
+
children: /* @__PURE__ */ jsx57(
|
|
8244
|
+
Image34,
|
|
8048
8245
|
{
|
|
8049
8246
|
src: `${CDN_URI}/assets/v3/strapi-slices/timeline-shapes.svg`,
|
|
8050
8247
|
alt: formatMessage({
|
|
@@ -8058,29 +8255,29 @@ var Timeline = ({ slice }) => {
|
|
|
8058
8255
|
}
|
|
8059
8256
|
)
|
|
8060
8257
|
}
|
|
8061
|
-
) : /* @__PURE__ */
|
|
8062
|
-
/* @__PURE__ */
|
|
8063
|
-
/* @__PURE__ */
|
|
8064
|
-
|
|
8258
|
+
) : /* @__PURE__ */ jsx57(Fragment29, {}),
|
|
8259
|
+
/* @__PURE__ */ jsxs48(Flex30, { flexDir: "column", children: [
|
|
8260
|
+
/* @__PURE__ */ jsxs48(
|
|
8261
|
+
Flex30,
|
|
8065
8262
|
{
|
|
8066
8263
|
alignItems: "flex-start",
|
|
8067
8264
|
justifyContent: "space-between",
|
|
8068
8265
|
children: [
|
|
8069
|
-
/* @__PURE__ */
|
|
8070
|
-
/* @__PURE__ */
|
|
8071
|
-
/* @__PURE__ */
|
|
8266
|
+
/* @__PURE__ */ jsx57(Box45, { children: item.tagline && /* @__PURE__ */ jsxs48(Fragment29, { children: [
|
|
8267
|
+
/* @__PURE__ */ jsx57(Text26, { color: "primary.800", size: "smMonoUppercase", children: item.tagline }),
|
|
8268
|
+
/* @__PURE__ */ jsx57(Spacer15, { height: "2" })
|
|
8072
8269
|
] }) }),
|
|
8073
|
-
/* @__PURE__ */
|
|
8074
|
-
item.badge && /* @__PURE__ */
|
|
8075
|
-
|
|
8270
|
+
/* @__PURE__ */ jsxs48(Flex30, { children: [
|
|
8271
|
+
item.badge && /* @__PURE__ */ jsx57(
|
|
8272
|
+
BoemlyTag6,
|
|
8076
8273
|
{
|
|
8077
8274
|
colorPalette: item.badge.variant,
|
|
8078
8275
|
borderRadius: "md",
|
|
8079
8276
|
children: item.badge.text
|
|
8080
8277
|
}
|
|
8081
8278
|
),
|
|
8082
|
-
item.logo && /* @__PURE__ */
|
|
8083
|
-
|
|
8279
|
+
item.logo && /* @__PURE__ */ jsx57(Box45, { position: "relative", height: "8", width: "16", children: /* @__PURE__ */ jsx57(
|
|
8280
|
+
Image34,
|
|
8084
8281
|
{
|
|
8085
8282
|
src: strapiMediaUrl_default(item.logo.img, "small"),
|
|
8086
8283
|
alt: item.logo.alt,
|
|
@@ -8094,8 +8291,8 @@ var Timeline = ({ slice }) => {
|
|
|
8094
8291
|
]
|
|
8095
8292
|
}
|
|
8096
8293
|
),
|
|
8097
|
-
/* @__PURE__ */
|
|
8098
|
-
|
|
8294
|
+
/* @__PURE__ */ jsx57(
|
|
8295
|
+
Heading22,
|
|
8099
8296
|
{
|
|
8100
8297
|
size: "lg",
|
|
8101
8298
|
mt: ["6", null, null, "3"],
|
|
@@ -8103,10 +8300,10 @@ var Timeline = ({ slice }) => {
|
|
|
8103
8300
|
children: item.title
|
|
8104
8301
|
}
|
|
8105
8302
|
),
|
|
8106
|
-
item.text && /* @__PURE__ */
|
|
8107
|
-
item.button && /* @__PURE__ */
|
|
8108
|
-
/* @__PURE__ */
|
|
8109
|
-
/* @__PURE__ */
|
|
8303
|
+
item.text && /* @__PURE__ */ jsx57(Box45, { mt: "3", children: /* @__PURE__ */ jsx57(RichText6, { content: item.text }) }),
|
|
8304
|
+
item.button && /* @__PURE__ */ jsxs48(Box45, { textAlign: "left", children: [
|
|
8305
|
+
/* @__PURE__ */ jsx57(Spacer15, { height: "4" }),
|
|
8306
|
+
/* @__PURE__ */ jsx57(
|
|
8110
8307
|
StrapiLinkButton_default,
|
|
8111
8308
|
{
|
|
8112
8309
|
link: item.button,
|
|
@@ -8116,16 +8313,16 @@ var Timeline = ({ slice }) => {
|
|
|
8116
8313
|
}
|
|
8117
8314
|
)
|
|
8118
8315
|
] }),
|
|
8119
|
-
item.image ? /* @__PURE__ */
|
|
8120
|
-
|
|
8316
|
+
item.image ? /* @__PURE__ */ jsx57(Fragment29, { children: /* @__PURE__ */ jsxs48(
|
|
8317
|
+
Box45,
|
|
8121
8318
|
{
|
|
8122
8319
|
position: "relative",
|
|
8123
8320
|
mt: "4",
|
|
8124
8321
|
height: ["2xs", null, null, null, "48"],
|
|
8125
8322
|
minWidth: [null, null, null, null, "50%"],
|
|
8126
8323
|
children: [
|
|
8127
|
-
/* @__PURE__ */
|
|
8128
|
-
|
|
8324
|
+
/* @__PURE__ */ jsx57(
|
|
8325
|
+
Image34,
|
|
8129
8326
|
{
|
|
8130
8327
|
src: strapiMediaUrl_default(item.image.img, "xLarge"),
|
|
8131
8328
|
alt: item.image.alt,
|
|
@@ -8138,7 +8335,7 @@ var Timeline = ({ slice }) => {
|
|
|
8138
8335
|
onClick: () => !mobile && setIsOpen(true)
|
|
8139
8336
|
}
|
|
8140
8337
|
),
|
|
8141
|
-
/* @__PURE__ */
|
|
8338
|
+
/* @__PURE__ */ jsx57(
|
|
8142
8339
|
FullScreenImage_default,
|
|
8143
8340
|
{
|
|
8144
8341
|
images: [item.image],
|
|
@@ -8148,13 +8345,13 @@ var Timeline = ({ slice }) => {
|
|
|
8148
8345
|
)
|
|
8149
8346
|
]
|
|
8150
8347
|
}
|
|
8151
|
-
) }) : /* @__PURE__ */
|
|
8348
|
+
) }) : /* @__PURE__ */ jsx57(Fragment29, {})
|
|
8152
8349
|
] })
|
|
8153
8350
|
]
|
|
8154
8351
|
}
|
|
8155
8352
|
),
|
|
8156
|
-
mobile && index + 1 < slice.timelineItems.length && /* @__PURE__ */
|
|
8157
|
-
|
|
8353
|
+
mobile && index + 1 < slice.timelineItems.length && /* @__PURE__ */ jsx57(
|
|
8354
|
+
Box45,
|
|
8158
8355
|
{
|
|
8159
8356
|
overflow: "visible",
|
|
8160
8357
|
borderRight: "dashed 1px var(--boemly-colors-gray-200)",
|
|
@@ -8167,9 +8364,9 @@ var Timeline = ({ slice }) => {
|
|
|
8167
8364
|
},
|
|
8168
8365
|
`${item.id}-${index}`
|
|
8169
8366
|
)) }),
|
|
8170
|
-
visibleItems < slice.timelineItems.length && /* @__PURE__ */
|
|
8171
|
-
/* @__PURE__ */
|
|
8172
|
-
|
|
8367
|
+
visibleItems < slice.timelineItems.length && /* @__PURE__ */ jsxs48(Fragment29, { children: [
|
|
8368
|
+
/* @__PURE__ */ jsx57(
|
|
8369
|
+
Box45,
|
|
8173
8370
|
{
|
|
8174
8371
|
width: "full",
|
|
8175
8372
|
height: ["36", null, null, "64"],
|
|
@@ -8179,14 +8376,14 @@ var Timeline = ({ slice }) => {
|
|
|
8179
8376
|
background: "linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.98) 76.54%, #FFF 100%)"
|
|
8180
8377
|
}
|
|
8181
8378
|
),
|
|
8182
|
-
/* @__PURE__ */
|
|
8183
|
-
|
|
8379
|
+
/* @__PURE__ */ jsx57(
|
|
8380
|
+
Box45,
|
|
8184
8381
|
{
|
|
8185
8382
|
bottom: "0",
|
|
8186
8383
|
textAlign: "center",
|
|
8187
8384
|
zIndex: "overlay",
|
|
8188
8385
|
position: "relative",
|
|
8189
|
-
children: /* @__PURE__ */
|
|
8386
|
+
children: /* @__PURE__ */ jsx57(
|
|
8190
8387
|
Button6,
|
|
8191
8388
|
{
|
|
8192
8389
|
variant: "outline",
|
|
@@ -8210,40 +8407,40 @@ var Timeline_default = Timeline;
|
|
|
8210
8407
|
|
|
8211
8408
|
// src/slices/Events/Events.tsx
|
|
8212
8409
|
import {
|
|
8213
|
-
DefaultSectionContainer as
|
|
8214
|
-
Wrapper as
|
|
8410
|
+
DefaultSectionContainer as DefaultSectionContainer33,
|
|
8411
|
+
Wrapper as Wrapper36,
|
|
8215
8412
|
Spacer as Spacer16,
|
|
8216
8413
|
DefaultSectionHeader as DefaultSectionHeader23,
|
|
8217
|
-
SimpleGrid as
|
|
8218
|
-
Box as
|
|
8414
|
+
SimpleGrid as SimpleGrid20,
|
|
8415
|
+
Box as Box47,
|
|
8219
8416
|
Button as Button8,
|
|
8220
|
-
Flex as
|
|
8417
|
+
Flex as Flex32,
|
|
8221
8418
|
Center as Center5,
|
|
8222
|
-
Text as
|
|
8223
|
-
BoemlyTag as
|
|
8419
|
+
Text as Text28,
|
|
8420
|
+
BoemlyTag as BoemlyTag8,
|
|
8224
8421
|
Select
|
|
8225
8422
|
} from "boemly";
|
|
8226
8423
|
import {
|
|
8227
8424
|
useCallback as useCallback6,
|
|
8228
|
-
useContext as
|
|
8425
|
+
useContext as useContext26,
|
|
8229
8426
|
useEffect as useEffect7,
|
|
8230
8427
|
useMemo as useMemo6,
|
|
8231
8428
|
useState as useState12
|
|
8232
8429
|
} from "react";
|
|
8233
8430
|
|
|
8234
8431
|
// src/components/EventCard/EventCard.tsx
|
|
8235
|
-
import { useContext as
|
|
8432
|
+
import { useContext as useContext25, useState as useState11 } from "react";
|
|
8236
8433
|
import {
|
|
8237
|
-
Text as
|
|
8238
|
-
Box as
|
|
8239
|
-
Flex as
|
|
8240
|
-
Heading as
|
|
8434
|
+
Text as Text27,
|
|
8435
|
+
Box as Box46,
|
|
8436
|
+
Flex as Flex31,
|
|
8437
|
+
Heading as Heading23,
|
|
8241
8438
|
Tooltip as Tooltip2,
|
|
8242
8439
|
useMediaQuery as useMediaQuery9,
|
|
8243
8440
|
Button as Button7,
|
|
8244
|
-
BoemlyTag as
|
|
8441
|
+
BoemlyTag as BoemlyTag7
|
|
8245
8442
|
} from "boemly";
|
|
8246
|
-
import
|
|
8443
|
+
import Image35 from "next/image.js";
|
|
8247
8444
|
import {
|
|
8248
8445
|
BowlFoodIcon,
|
|
8249
8446
|
CalendarBlankIcon,
|
|
@@ -8264,12 +8461,6 @@ import {
|
|
|
8264
8461
|
WebcamIcon
|
|
8265
8462
|
} from "@phosphor-icons/react";
|
|
8266
8463
|
|
|
8267
|
-
// src/utils/getCountryFlag.ts
|
|
8268
|
-
var getCountryFlag = (countryCode) => {
|
|
8269
|
-
return countryCode.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397));
|
|
8270
|
-
};
|
|
8271
|
-
var getCountryFlag_default = getCountryFlag;
|
|
8272
|
-
|
|
8273
8464
|
// src/utils/isSameDate.ts
|
|
8274
8465
|
var isSameDate = (date1, date2) => {
|
|
8275
8466
|
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
@@ -8277,43 +8468,43 @@ var isSameDate = (date1, date2) => {
|
|
|
8277
8468
|
var isSameDate_default = isSameDate;
|
|
8278
8469
|
|
|
8279
8470
|
// src/components/EventCard/EventCard.tsx
|
|
8280
|
-
import { Fragment as Fragment30, jsx as
|
|
8471
|
+
import { Fragment as Fragment30, jsx as jsx58, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8281
8472
|
var MAX_LENGTH = 120;
|
|
8282
8473
|
var LOCATION_MAX_LENGTH = 28;
|
|
8283
8474
|
var getEventIcon = (eventType) => {
|
|
8284
8475
|
switch (eventType) {
|
|
8285
8476
|
case "Webinar" /* WEBINAR */:
|
|
8286
|
-
return /* @__PURE__ */
|
|
8477
|
+
return /* @__PURE__ */ jsx58(WebcamIcon, { size: 12 });
|
|
8287
8478
|
case "Conference" /* CONFERENCE */:
|
|
8288
|
-
return /* @__PURE__ */
|
|
8479
|
+
return /* @__PURE__ */ jsx58(HeadsetIcon, { size: 12 });
|
|
8289
8480
|
case "Meet Up" /* MEET_UP */:
|
|
8290
|
-
return /* @__PURE__ */
|
|
8481
|
+
return /* @__PURE__ */ jsx58(UsersThreeIcon, { size: 12 });
|
|
8291
8482
|
case "Forest Walk" /* FOREST_WALK */:
|
|
8292
|
-
return /* @__PURE__ */
|
|
8483
|
+
return /* @__PURE__ */ jsx58(PersonSimpleWalkIcon, { size: 12 });
|
|
8293
8484
|
case "Partner Event" /* PARTNER_EVENT */:
|
|
8294
|
-
return /* @__PURE__ */
|
|
8485
|
+
return /* @__PURE__ */ jsx58(HandshakeIcon, { size: 12 });
|
|
8295
8486
|
case "Lunch & Learn" /* LUNCH_AND_LEARN */:
|
|
8296
|
-
return /* @__PURE__ */
|
|
8487
|
+
return /* @__PURE__ */ jsx58(BowlFoodIcon, { size: 12 });
|
|
8297
8488
|
case "Fair" /* FAIR */:
|
|
8298
|
-
return /* @__PURE__ */
|
|
8489
|
+
return /* @__PURE__ */ jsx58(ChalkboardTeacherIcon, { size: 12 });
|
|
8299
8490
|
case "Festival" /* FESTIVAL */:
|
|
8300
|
-
return /* @__PURE__ */
|
|
8491
|
+
return /* @__PURE__ */ jsx58(ConfettiIcon, { size: 12 });
|
|
8301
8492
|
case "RoadShow" /* ROADSHOW */:
|
|
8302
|
-
return /* @__PURE__ */
|
|
8493
|
+
return /* @__PURE__ */ jsx58(ProjectorScreenChartIcon, { size: 12 });
|
|
8303
8494
|
default:
|
|
8304
|
-
return /* @__PURE__ */
|
|
8495
|
+
return /* @__PURE__ */ jsx58(InfoIcon, { size: 12, weight: "fill" });
|
|
8305
8496
|
}
|
|
8306
8497
|
};
|
|
8307
8498
|
var EventCard = ({ event }) => {
|
|
8308
|
-
const { formatDate, formatNumber, formatMessage } =
|
|
8499
|
+
const { formatDate, formatNumber, formatMessage } = useContext25(IntlContext);
|
|
8309
8500
|
const [isExpanded, setIsExpanded] = useState11(false);
|
|
8310
8501
|
const [mobile] = useMediaQuery9([BREAKPOINT_MD_QUERY]);
|
|
8311
8502
|
const toggleText = () => {
|
|
8312
8503
|
setIsExpanded(!isExpanded);
|
|
8313
8504
|
};
|
|
8314
8505
|
const isLocationTooLong = (event.location?.length ?? 0) >= LOCATION_MAX_LENGTH;
|
|
8315
|
-
return /* @__PURE__ */
|
|
8316
|
-
|
|
8506
|
+
return /* @__PURE__ */ jsxs49(
|
|
8507
|
+
Box46,
|
|
8317
8508
|
{
|
|
8318
8509
|
borderRadius: ["xl", null, null, "2xl"],
|
|
8319
8510
|
height: "full",
|
|
@@ -8321,8 +8512,8 @@ var EventCard = ({ event }) => {
|
|
|
8321
8512
|
border: "1px solid var(--boemly-colors-gray-200)",
|
|
8322
8513
|
background: "white",
|
|
8323
8514
|
children: [
|
|
8324
|
-
/* @__PURE__ */
|
|
8325
|
-
|
|
8515
|
+
/* @__PURE__ */ jsxs49(
|
|
8516
|
+
Box46,
|
|
8326
8517
|
{
|
|
8327
8518
|
position: "relative",
|
|
8328
8519
|
width: "full",
|
|
@@ -8335,8 +8526,8 @@ var EventCard = ({ event }) => {
|
|
|
8335
8526
|
}
|
|
8336
8527
|
},
|
|
8337
8528
|
children: [
|
|
8338
|
-
/* @__PURE__ */
|
|
8339
|
-
|
|
8529
|
+
/* @__PURE__ */ jsx58(
|
|
8530
|
+
Image35,
|
|
8340
8531
|
{
|
|
8341
8532
|
src: strapiMediaUrl_default(event.image?.img, "medium"),
|
|
8342
8533
|
alt: event.image?.alt,
|
|
@@ -8346,8 +8537,8 @@ var EventCard = ({ event }) => {
|
|
|
8346
8537
|
}
|
|
8347
8538
|
}
|
|
8348
8539
|
),
|
|
8349
|
-
/* @__PURE__ */
|
|
8350
|
-
|
|
8540
|
+
/* @__PURE__ */ jsx58(
|
|
8541
|
+
Box46,
|
|
8351
8542
|
{
|
|
8352
8543
|
position: "absolute",
|
|
8353
8544
|
top: ["6", null, null, "8"],
|
|
@@ -8355,8 +8546,8 @@ var EventCard = ({ event }) => {
|
|
|
8355
8546
|
zIndex: "1",
|
|
8356
8547
|
width: ["12", null, null, "16"],
|
|
8357
8548
|
height: ["12", null, null, "16"],
|
|
8358
|
-
children: /* @__PURE__ */
|
|
8359
|
-
|
|
8549
|
+
children: /* @__PURE__ */ jsx58(
|
|
8550
|
+
Image35,
|
|
8360
8551
|
{
|
|
8361
8552
|
src: strapiMediaUrl_default(event.logo.img, "medium"),
|
|
8362
8553
|
alt: event.logo.alt,
|
|
@@ -8373,54 +8564,54 @@ var EventCard = ({ event }) => {
|
|
|
8373
8564
|
]
|
|
8374
8565
|
}
|
|
8375
8566
|
),
|
|
8376
|
-
/* @__PURE__ */
|
|
8377
|
-
|
|
8567
|
+
/* @__PURE__ */ jsxs49(
|
|
8568
|
+
Flex31,
|
|
8378
8569
|
{
|
|
8379
8570
|
flexDir: "column",
|
|
8380
8571
|
p: ["6", null, null, "8"],
|
|
8381
8572
|
h: "calc(var(--boemly-sizes-full) - var(--boemly-sizes-44))",
|
|
8382
8573
|
children: [
|
|
8383
|
-
/* @__PURE__ */
|
|
8384
|
-
event.recommended ? /* @__PURE__ */
|
|
8385
|
-
/* @__PURE__ */
|
|
8386
|
-
/* @__PURE__ */
|
|
8574
|
+
/* @__PURE__ */ jsxs49(Flex31, { flexDir: "row", mb: "4", gap: "2", flexWrap: "wrap", children: [
|
|
8575
|
+
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: [
|
|
8576
|
+
/* @__PURE__ */ jsx58(StarIcon, { size: 12, weight: "fill", color: "white" }),
|
|
8577
|
+
/* @__PURE__ */ jsx58(Text27, { size: "xsLowBold", color: "white", children: formatMessage({
|
|
8387
8578
|
id: "sections.eventCard.recommendedEvent"
|
|
8388
8579
|
}) })
|
|
8389
|
-
] }) }) }) : /* @__PURE__ */
|
|
8390
|
-
/* @__PURE__ */
|
|
8391
|
-
event.eventTypes.map((e) => /* @__PURE__ */
|
|
8580
|
+
] }) }) }) : /* @__PURE__ */ jsx58(Fragment30, {}),
|
|
8581
|
+
/* @__PURE__ */ jsxs49(Flex31, { flexWrap: "wrap", gap: "2", children: [
|
|
8582
|
+
event.eventTypes.map((e) => /* @__PURE__ */ jsx58(BoemlyTag7, { children: /* @__PURE__ */ jsxs49(Flex31, { alignItems: "center", gap: "1", whiteSpace: "nowrap", children: [
|
|
8392
8583
|
getEventIcon(e.eventType),
|
|
8393
|
-
/* @__PURE__ */
|
|
8584
|
+
/* @__PURE__ */ jsx58(Text27, { size: "xsLowBold", color: "gray.800", children: formatMessage({
|
|
8394
8585
|
id: `sections.eventCard.eventType.${e.eventType.toLowerCase().replace(/\s+/g, "")}`
|
|
8395
8586
|
}) })
|
|
8396
8587
|
] }) }, e.id)),
|
|
8397
|
-
event.languages.map(({ id, language, countryCode }) => /* @__PURE__ */
|
|
8588
|
+
event.languages.map(({ id, language, countryCode }) => /* @__PURE__ */ jsx58(BoemlyTag7, { children: /* @__PURE__ */ jsxs49(Flex31, { alignItems: "center", gap: "1", whiteSpace: "nowrap", children: [
|
|
8398
8589
|
getCountryFlag_default(countryCode),
|
|
8399
|
-
/* @__PURE__ */
|
|
8590
|
+
/* @__PURE__ */ jsx58(Text27, { size: "xsLowBold", color: "gray.800", children: language })
|
|
8400
8591
|
] }) }, id))
|
|
8401
8592
|
] })
|
|
8402
8593
|
] }),
|
|
8403
|
-
/* @__PURE__ */
|
|
8404
|
-
/* @__PURE__ */
|
|
8405
|
-
|
|
8594
|
+
/* @__PURE__ */ jsx58(Heading23, { children: event.title }),
|
|
8595
|
+
/* @__PURE__ */ jsxs49(
|
|
8596
|
+
Flex31,
|
|
8406
8597
|
{
|
|
8407
8598
|
gap: isLocationTooLong ? "2" : ["2", null, null, "6"],
|
|
8408
8599
|
alignItems: mobile || isLocationTooLong ? "flex-start" : "center",
|
|
8409
8600
|
my: "4",
|
|
8410
8601
|
flexDir: mobile || isLocationTooLong ? "column" : "row",
|
|
8411
8602
|
children: [
|
|
8412
|
-
event.online && /* @__PURE__ */
|
|
8413
|
-
/* @__PURE__ */
|
|
8603
|
+
event.online && /* @__PURE__ */ jsxs49(Flex31, { gap: "2", alignItems: "center", children: [
|
|
8604
|
+
/* @__PURE__ */ jsx58(
|
|
8414
8605
|
LaptopIcon,
|
|
8415
8606
|
{
|
|
8416
8607
|
size: 20,
|
|
8417
8608
|
color: "var(--boemly-colors-primary-700)"
|
|
8418
8609
|
}
|
|
8419
8610
|
),
|
|
8420
|
-
/* @__PURE__ */
|
|
8611
|
+
/* @__PURE__ */ jsx58(Text27, { size: mobile ? "xsLowBold" : "smLowBold", children: "Online" })
|
|
8421
8612
|
] }),
|
|
8422
|
-
event.location && /* @__PURE__ */
|
|
8423
|
-
/* @__PURE__ */
|
|
8613
|
+
event.location && /* @__PURE__ */ jsxs49(Flex31, { gap: "2", alignItems: "center", children: [
|
|
8614
|
+
/* @__PURE__ */ jsx58(
|
|
8424
8615
|
MapPinLineIcon,
|
|
8425
8616
|
{
|
|
8426
8617
|
size: 20,
|
|
@@ -8428,17 +8619,17 @@ var EventCard = ({ event }) => {
|
|
|
8428
8619
|
weight: "fill"
|
|
8429
8620
|
}
|
|
8430
8621
|
),
|
|
8431
|
-
/* @__PURE__ */
|
|
8622
|
+
/* @__PURE__ */ jsx58(Text27, { size: mobile ? "xsLowBold" : "smLowBold", children: event.location })
|
|
8432
8623
|
] }),
|
|
8433
|
-
/* @__PURE__ */
|
|
8434
|
-
/* @__PURE__ */
|
|
8624
|
+
/* @__PURE__ */ jsxs49(Flex31, { alignItems: "center", gap: "2", children: [
|
|
8625
|
+
/* @__PURE__ */ jsx58(
|
|
8435
8626
|
CalendarBlankIcon,
|
|
8436
8627
|
{
|
|
8437
8628
|
size: 20,
|
|
8438
8629
|
color: "var(--boemly-colors-primary-700)"
|
|
8439
8630
|
}
|
|
8440
8631
|
),
|
|
8441
|
-
/* @__PURE__ */
|
|
8632
|
+
/* @__PURE__ */ jsxs49(Text27, { size: mobile ? "xsLowBold" : "smLowBold", children: [
|
|
8442
8633
|
formatDate(event.start, {
|
|
8443
8634
|
year: "numeric",
|
|
8444
8635
|
month: "2-digit",
|
|
@@ -8449,7 +8640,7 @@ var EventCard = ({ event }) => {
|
|
|
8449
8640
|
})}:${formatNumber(new Date(event.start).getUTCMinutes(), {
|
|
8450
8641
|
minimumIntegerDigits: 2
|
|
8451
8642
|
})}`,
|
|
8452
|
-
event.end && !isSameDate_default(new Date(event.start), new Date(event.end)) && /* @__PURE__ */
|
|
8643
|
+
event.end && !isSameDate_default(new Date(event.start), new Date(event.end)) && /* @__PURE__ */ jsxs49(Fragment30, { children: [
|
|
8453
8644
|
" - ",
|
|
8454
8645
|
formatDate(event.end, {
|
|
8455
8646
|
year: "numeric",
|
|
@@ -8472,51 +8663,51 @@ var EventCard = ({ event }) => {
|
|
|
8472
8663
|
]
|
|
8473
8664
|
}
|
|
8474
8665
|
),
|
|
8475
|
-
/* @__PURE__ */
|
|
8476
|
-
|
|
8666
|
+
/* @__PURE__ */ jsx58(
|
|
8667
|
+
Text27,
|
|
8477
8668
|
{
|
|
8478
8669
|
mb: mobile ? "0" : "7",
|
|
8479
8670
|
size: mobile ? "xsRegularNormal" : "smRegularNormal",
|
|
8480
8671
|
children: isExpanded || !mobile ? event.description : `${event.description.substring(0, MAX_LENGTH)}...`
|
|
8481
8672
|
}
|
|
8482
8673
|
),
|
|
8483
|
-
event.description.length > MAX_LENGTH && mobile && /* @__PURE__ */
|
|
8674
|
+
event.description.length > MAX_LENGTH && mobile && /* @__PURE__ */ jsx58(Flex31, { justifyContent: "flex-start", children: /* @__PURE__ */ jsxs49(Button7, { mt: "2", onClick: toggleText, variant: "link", children: [
|
|
8484
8675
|
formatMessage(
|
|
8485
8676
|
isExpanded ? {
|
|
8486
8677
|
id: "sections.eventCard.buttonShowLess"
|
|
8487
8678
|
} : { id: "sections.eventCard.buttonShowMore" }
|
|
8488
8679
|
),
|
|
8489
|
-
isExpanded ? /* @__PURE__ */
|
|
8680
|
+
isExpanded ? /* @__PURE__ */ jsx58(CaretUpIcon, { size: "12" }) : /* @__PURE__ */ jsx58(CaretDownIcon, { size: "12" })
|
|
8490
8681
|
] }) }),
|
|
8491
|
-
/* @__PURE__ */
|
|
8492
|
-
|
|
8682
|
+
/* @__PURE__ */ jsxs49(
|
|
8683
|
+
Flex31,
|
|
8493
8684
|
{
|
|
8494
8685
|
mt: mobile ? "7" : "auto",
|
|
8495
8686
|
justifyContent: mobile ? void 0 : "space-between",
|
|
8496
8687
|
flexDir: mobile ? "column-reverse" : "row",
|
|
8497
8688
|
gap: mobile ? "4" : "0",
|
|
8498
8689
|
children: [
|
|
8499
|
-
event.button && /* @__PURE__ */
|
|
8690
|
+
event.button && /* @__PURE__ */ jsx58(Flex31, { width: mobile ? "full" : "auto", children: /* @__PURE__ */ jsx58(
|
|
8500
8691
|
StrapiLinkButton_default,
|
|
8501
8692
|
{
|
|
8502
8693
|
size: "md",
|
|
8503
8694
|
variant: event.buttonVariant,
|
|
8504
8695
|
link: event.button,
|
|
8505
|
-
rightIcon: /* @__PURE__ */
|
|
8696
|
+
rightIcon: /* @__PURE__ */ jsx58(CaretRightIcon8, { size: "10" }),
|
|
8506
8697
|
width: "full",
|
|
8507
8698
|
component: "EventCard"
|
|
8508
8699
|
},
|
|
8509
8700
|
event.button.id
|
|
8510
8701
|
) }),
|
|
8511
|
-
event.speakers && event.speakers.length > 0 && /* @__PURE__ */
|
|
8512
|
-
|
|
8702
|
+
event.speakers && event.speakers.length > 0 && /* @__PURE__ */ jsx58(Flex31, { flexDir: "row", gap: "2", children: event.speakers.map((speaker) => /* @__PURE__ */ jsx58(Box46, { children: /* @__PURE__ */ jsx58(
|
|
8703
|
+
Box46,
|
|
8513
8704
|
{
|
|
8514
8705
|
width: ["10", null, null, "12"],
|
|
8515
8706
|
height: ["10", null, null, "12"],
|
|
8516
8707
|
position: "relative",
|
|
8517
8708
|
borderRadius: "2xl",
|
|
8518
|
-
children: /* @__PURE__ */
|
|
8519
|
-
|
|
8709
|
+
children: /* @__PURE__ */ jsx58(Tooltip2, { content: speaker.name, children: /* @__PURE__ */ jsx58(
|
|
8710
|
+
Image35,
|
|
8520
8711
|
{
|
|
8521
8712
|
src: strapiMediaUrl_default(speaker.image.img, "medium"),
|
|
8522
8713
|
alt: speaker.image.alt,
|
|
@@ -8578,11 +8769,11 @@ var useEvents_default = useEvents;
|
|
|
8578
8769
|
|
|
8579
8770
|
// src/slices/Events/Events.tsx
|
|
8580
8771
|
import { mutate } from "swr/_internal";
|
|
8581
|
-
import { Fragment as Fragment31, jsx as
|
|
8772
|
+
import { Fragment as Fragment31, jsx as jsx59, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8582
8773
|
var UPCOMING_BATCH_SIZE = 6;
|
|
8583
8774
|
var PAST_BATCH_SIZE = 2;
|
|
8584
8775
|
var Events = ({ slice }) => {
|
|
8585
|
-
const { formatMessage, locale } =
|
|
8776
|
+
const { formatMessage, locale } = useContext26(IntlContext);
|
|
8586
8777
|
const [eventTypeFilter, setEventTypeFilter] = useState12([]);
|
|
8587
8778
|
const [languageFilter, setLanguageFilter] = useState12([]);
|
|
8588
8779
|
const [sort, setSort] = useState12(["newest" /* NEWEST_FIRST */]);
|
|
@@ -8711,10 +8902,10 @@ var Events = ({ slice }) => {
|
|
|
8711
8902
|
useEffect7(() => {
|
|
8712
8903
|
mutate(getUpcomingKey);
|
|
8713
8904
|
}, [eventTypeFilter, languageFilter, sort]);
|
|
8714
|
-
return /* @__PURE__ */
|
|
8715
|
-
/* @__PURE__ */
|
|
8716
|
-
slice.upcomingTitle ? /* @__PURE__ */
|
|
8717
|
-
/* @__PURE__ */
|
|
8905
|
+
return /* @__PURE__ */ jsxs50(DefaultSectionContainer33, { children: [
|
|
8906
|
+
/* @__PURE__ */ jsxs50(Wrapper36, { children: [
|
|
8907
|
+
slice.upcomingTitle ? /* @__PURE__ */ jsxs50(Fragment31, { children: [
|
|
8908
|
+
/* @__PURE__ */ jsx59(
|
|
8718
8909
|
DefaultSectionHeader23,
|
|
8719
8910
|
{
|
|
8720
8911
|
title: slice.upcomingTitle,
|
|
@@ -8723,33 +8914,33 @@ var Events = ({ slice }) => {
|
|
|
8723
8914
|
textProps: { maxW: "3xl" }
|
|
8724
8915
|
}
|
|
8725
8916
|
),
|
|
8726
|
-
/* @__PURE__ */
|
|
8727
|
-
] }) : /* @__PURE__ */
|
|
8728
|
-
slice.filterSearch && (upcomingEvents || pastEvents) ? /* @__PURE__ */
|
|
8729
|
-
/* @__PURE__ */
|
|
8730
|
-
|
|
8917
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: "10" })
|
|
8918
|
+
] }) : /* @__PURE__ */ jsx59(Fragment31, {}),
|
|
8919
|
+
slice.filterSearch && (upcomingEvents || pastEvents) ? /* @__PURE__ */ jsxs50(Fragment31, { children: [
|
|
8920
|
+
/* @__PURE__ */ jsxs50(
|
|
8921
|
+
Flex32,
|
|
8731
8922
|
{
|
|
8732
8923
|
justifyContent: "space-between",
|
|
8733
8924
|
direction: ["column-reverse", null, null, "row"],
|
|
8734
8925
|
alignItems: "baseline",
|
|
8735
8926
|
gap: "4",
|
|
8736
8927
|
children: [
|
|
8737
|
-
/* @__PURE__ */
|
|
8738
|
-
|
|
8928
|
+
/* @__PURE__ */ jsxs50(
|
|
8929
|
+
Flex32,
|
|
8739
8930
|
{
|
|
8740
8931
|
direction: "column",
|
|
8741
8932
|
width: "full",
|
|
8742
8933
|
justifyContent: "start",
|
|
8743
8934
|
gap: "4",
|
|
8744
8935
|
children: [
|
|
8745
|
-
/* @__PURE__ */
|
|
8746
|
-
|
|
8936
|
+
/* @__PURE__ */ jsxs50(
|
|
8937
|
+
Flex32,
|
|
8747
8938
|
{
|
|
8748
8939
|
direction: ["column", null, null, "row"],
|
|
8749
8940
|
gap: "4",
|
|
8750
8941
|
justifyContent: "start",
|
|
8751
8942
|
children: [
|
|
8752
|
-
/* @__PURE__ */
|
|
8943
|
+
/* @__PURE__ */ jsx59(Box47, { position: "relative", width: ["full", null, null, "56"], children: /* @__PURE__ */ jsx59(
|
|
8753
8944
|
Select,
|
|
8754
8945
|
{
|
|
8755
8946
|
isMultiple: true,
|
|
@@ -8769,7 +8960,7 @@ var Events = ({ slice }) => {
|
|
|
8769
8960
|
}
|
|
8770
8961
|
}
|
|
8771
8962
|
) }),
|
|
8772
|
-
/* @__PURE__ */
|
|
8963
|
+
/* @__PURE__ */ jsx59(Box47, { position: "relative", width: ["full", null, null, "56"], children: /* @__PURE__ */ jsx59(
|
|
8773
8964
|
Select,
|
|
8774
8965
|
{
|
|
8775
8966
|
isMultiple: true,
|
|
@@ -8792,13 +8983,13 @@ var Events = ({ slice }) => {
|
|
|
8792
8983
|
]
|
|
8793
8984
|
}
|
|
8794
8985
|
),
|
|
8795
|
-
/* @__PURE__ */
|
|
8986
|
+
/* @__PURE__ */ jsxs50(Box47, { display: "flex", flexWrap: "wrap", minHeight: "6", gap: "2", children: [
|
|
8796
8987
|
eventTypeFilter.map((eventType) => {
|
|
8797
8988
|
const event = allEventTypeOptions.find(
|
|
8798
8989
|
(option) => option.value === eventType
|
|
8799
8990
|
);
|
|
8800
|
-
return /* @__PURE__ */
|
|
8801
|
-
|
|
8991
|
+
return /* @__PURE__ */ jsx59(
|
|
8992
|
+
BoemlyTag8,
|
|
8802
8993
|
{
|
|
8803
8994
|
isClosable: true,
|
|
8804
8995
|
onClose: () => removeFilter("eventTypes", eventType),
|
|
@@ -8811,8 +9002,8 @@ var Events = ({ slice }) => {
|
|
|
8811
9002
|
const language = allLanguageOptions.find(
|
|
8812
9003
|
(option) => option.value === singleLanguage
|
|
8813
9004
|
);
|
|
8814
|
-
return /* @__PURE__ */
|
|
8815
|
-
|
|
9005
|
+
return /* @__PURE__ */ jsx59(
|
|
9006
|
+
BoemlyTag8,
|
|
8816
9007
|
{
|
|
8817
9008
|
isClosable: true,
|
|
8818
9009
|
onClose: () => removeFilter("languages", singleLanguage),
|
|
@@ -8825,9 +9016,9 @@ var Events = ({ slice }) => {
|
|
|
8825
9016
|
]
|
|
8826
9017
|
}
|
|
8827
9018
|
),
|
|
8828
|
-
/* @__PURE__ */
|
|
8829
|
-
/* @__PURE__ */
|
|
8830
|
-
/* @__PURE__ */
|
|
9019
|
+
/* @__PURE__ */ jsxs50(Box47, { display: "flex", gap: "1px", width: "52", alignItems: "center", children: [
|
|
9020
|
+
/* @__PURE__ */ jsx59(Text28, { size: "smLowNormal", color: "black", width: "20", children: "Sort by:" }),
|
|
9021
|
+
/* @__PURE__ */ jsx59(
|
|
8831
9022
|
Select,
|
|
8832
9023
|
{
|
|
8833
9024
|
isMultiple: false,
|
|
@@ -8855,12 +9046,12 @@ var Events = ({ slice }) => {
|
|
|
8855
9046
|
]
|
|
8856
9047
|
}
|
|
8857
9048
|
),
|
|
8858
|
-
/* @__PURE__ */
|
|
8859
|
-
] }) : /* @__PURE__ */
|
|
8860
|
-
(!upcomingEvents || upcomingEvents.length === 0) && !isLoadingUpcoming ? /* @__PURE__ */
|
|
9049
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: ["8", null, null, "16"] })
|
|
9050
|
+
] }) : /* @__PURE__ */ jsx59(Fragment31, {}),
|
|
9051
|
+
(!upcomingEvents || upcomingEvents.length === 0) && !isLoadingUpcoming ? /* @__PURE__ */ jsx59(Center5, { children: formatMessage({ id: "sections.events.noUpcomingEvents" }) }) : (
|
|
8861
9052
|
// List of upcoming events
|
|
8862
|
-
/* @__PURE__ */
|
|
8863
|
-
|
|
9053
|
+
/* @__PURE__ */ jsx59(
|
|
9054
|
+
SimpleGrid20,
|
|
8864
9055
|
{
|
|
8865
9056
|
columns: [1, null, null, null, null, 2],
|
|
8866
9057
|
columnGap: "6",
|
|
@@ -8868,11 +9059,11 @@ var Events = ({ slice }) => {
|
|
|
8868
9059
|
flexShrink: "0",
|
|
8869
9060
|
mb: ["10", null, null, "20"],
|
|
8870
9061
|
placeItems: "center",
|
|
8871
|
-
children: upcomingEvents.map((event) => /* @__PURE__ */
|
|
9062
|
+
children: upcomingEvents.map((event) => /* @__PURE__ */ jsx59(Box47, { width: "full", height: "full", children: /* @__PURE__ */ jsx59(EventCard_default, { event: event.attributes }) }, event.id))
|
|
8872
9063
|
}
|
|
8873
9064
|
)
|
|
8874
9065
|
),
|
|
8875
|
-
/* @__PURE__ */
|
|
9066
|
+
/* @__PURE__ */ jsx59(Flex32, { justifyContent: "center", children: !isLoadingUpcoming && canLoadMoreUpcoming && /* @__PURE__ */ jsx59(
|
|
8876
9067
|
Button8,
|
|
8877
9068
|
{
|
|
8878
9069
|
onClick: () => {
|
|
@@ -8884,9 +9075,9 @@ var Events = ({ slice }) => {
|
|
|
8884
9075
|
}
|
|
8885
9076
|
) })
|
|
8886
9077
|
] }),
|
|
8887
|
-
/* @__PURE__ */
|
|
8888
|
-
/* @__PURE__ */
|
|
8889
|
-
/* @__PURE__ */
|
|
9078
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: ["10", null, null, "28"] }),
|
|
9079
|
+
/* @__PURE__ */ jsx59(Box47, { background: "primary.50", pt: ["8", null, null, "24"], children: /* @__PURE__ */ jsxs50(Wrapper36, { children: [
|
|
9080
|
+
/* @__PURE__ */ jsx59(
|
|
8890
9081
|
DefaultSectionHeader23,
|
|
8891
9082
|
{
|
|
8892
9083
|
title: slice.pastTitle,
|
|
@@ -8895,14 +9086,14 @@ var Events = ({ slice }) => {
|
|
|
8895
9086
|
textProps: { maxW: "3xl" }
|
|
8896
9087
|
}
|
|
8897
9088
|
),
|
|
8898
|
-
/* @__PURE__ */
|
|
8899
|
-
(!pastEvents || pastEvents.length === 0) && !isLoadingPast ? /* @__PURE__ */
|
|
8900
|
-
/* @__PURE__ */
|
|
8901
|
-
/* @__PURE__ */
|
|
9089
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: "10" }),
|
|
9090
|
+
(!pastEvents || pastEvents.length === 0) && !isLoadingPast ? /* @__PURE__ */ jsxs50(Fragment31, { children: [
|
|
9091
|
+
/* @__PURE__ */ jsx59(Center5, { children: formatMessage({ id: "sections.events.noPastEvents" }) }),
|
|
9092
|
+
/* @__PURE__ */ jsx59(Spacer16, { height: "24" })
|
|
8902
9093
|
] }) : (
|
|
8903
9094
|
// List of past events
|
|
8904
|
-
/* @__PURE__ */
|
|
8905
|
-
|
|
9095
|
+
/* @__PURE__ */ jsx59(
|
|
9096
|
+
SimpleGrid20,
|
|
8906
9097
|
{
|
|
8907
9098
|
columns: [1, null, null, null, null, 2],
|
|
8908
9099
|
columnGap: "6",
|
|
@@ -8910,11 +9101,11 @@ var Events = ({ slice }) => {
|
|
|
8910
9101
|
flexShrink: "0",
|
|
8911
9102
|
placeItems: "center",
|
|
8912
9103
|
mb: ["10", null, null, "20"],
|
|
8913
|
-
children: pastEvents.map((event) => /* @__PURE__ */
|
|
9104
|
+
children: pastEvents.map((event) => /* @__PURE__ */ jsx59(Box47, { height: "full", width: "full", children: /* @__PURE__ */ jsx59(EventCard_default, { event: event.attributes }) }, event.id))
|
|
8914
9105
|
}
|
|
8915
9106
|
)
|
|
8916
9107
|
),
|
|
8917
|
-
/* @__PURE__ */
|
|
9108
|
+
/* @__PURE__ */ jsx59(Flex32, { justifyContent: "center", children: !isLoadingPast && canLoadMorePast && /* @__PURE__ */ jsx59(
|
|
8918
9109
|
Button8,
|
|
8919
9110
|
{
|
|
8920
9111
|
mb: "20",
|
|
@@ -8933,6 +9124,66 @@ var Events = ({ slice }) => {
|
|
|
8933
9124
|
// src/slices/Events/index.ts
|
|
8934
9125
|
var Events_default = Events;
|
|
8935
9126
|
|
|
9127
|
+
// src/slices/HeroWithHighlights/HeroWithHighlights.tsx
|
|
9128
|
+
import { Box as Box48, DefaultSectionContainer as DefaultSectionContainer34, Heading as Heading24, Text as Text29, Wrapper as Wrapper37 } from "boemly";
|
|
9129
|
+
import { jsx as jsx60, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
9130
|
+
var parseTitle = (title) => {
|
|
9131
|
+
const parts = [];
|
|
9132
|
+
const regex = /\[([^\]]+)\]|([^[\]]+)/g;
|
|
9133
|
+
for (const match of title.matchAll(regex)) {
|
|
9134
|
+
if (match[1]) parts.push({ text: match[1], highlighted: true });
|
|
9135
|
+
if (match[2]) parts.push({ text: match[2], highlighted: false });
|
|
9136
|
+
}
|
|
9137
|
+
return parts;
|
|
9138
|
+
};
|
|
9139
|
+
var VARIANTS5 = {
|
|
9140
|
+
white: { backgroundColor: "white", titleColor: "black" },
|
|
9141
|
+
gray: { backgroundColor: "primary.50", titleColor: "black" }
|
|
9142
|
+
};
|
|
9143
|
+
var HeroWithHighlights = ({
|
|
9144
|
+
slice
|
|
9145
|
+
}) => {
|
|
9146
|
+
const parts = parseTitle(slice.title);
|
|
9147
|
+
const variant = slice.variant || "white";
|
|
9148
|
+
const textAlign = slice.textAlign || "left";
|
|
9149
|
+
return /* @__PURE__ */ jsx60(
|
|
9150
|
+
DefaultSectionContainer34,
|
|
9151
|
+
{
|
|
9152
|
+
backgroundColor: VARIANTS5[variant].backgroundColor,
|
|
9153
|
+
paddingY: ["10", null, "16"],
|
|
9154
|
+
children: /* @__PURE__ */ jsxs51(Wrapper37, { children: [
|
|
9155
|
+
/* @__PURE__ */ jsx60(
|
|
9156
|
+
Heading24,
|
|
9157
|
+
{
|
|
9158
|
+
as: slice.headingLevel || "h1",
|
|
9159
|
+
size: [slice.headingSize || "3xl"],
|
|
9160
|
+
color: VARIANTS5[variant].titleColor,
|
|
9161
|
+
lineHeight: "1.3",
|
|
9162
|
+
fontWeight: "600",
|
|
9163
|
+
textAlign,
|
|
9164
|
+
children: parts.map(
|
|
9165
|
+
(part, i) => part.highlighted ? /* @__PURE__ */ jsx60(Box48, { as: "span", px: "2", backgroundColor: "primary.500", children: part.text }, i) : part.text
|
|
9166
|
+
)
|
|
9167
|
+
}
|
|
9168
|
+
),
|
|
9169
|
+
slice.subTitle && /* @__PURE__ */ jsx60(
|
|
9170
|
+
Text29,
|
|
9171
|
+
{
|
|
9172
|
+
size: "lgRegularNormal",
|
|
9173
|
+
color: "gray.500",
|
|
9174
|
+
mt: "4",
|
|
9175
|
+
textAlign,
|
|
9176
|
+
children: slice.subTitle
|
|
9177
|
+
}
|
|
9178
|
+
)
|
|
9179
|
+
] })
|
|
9180
|
+
}
|
|
9181
|
+
);
|
|
9182
|
+
};
|
|
9183
|
+
|
|
9184
|
+
// src/slices/HeroWithHighlights/index.ts
|
|
9185
|
+
var HeroWithHighlights_default = HeroWithHighlights;
|
|
9186
|
+
|
|
8936
9187
|
// src/slices/Redirect/Redirect.tsx
|
|
8937
9188
|
import { useRouter as useRouter9 } from "next/router.js";
|
|
8938
9189
|
import { useEffect as useEffect8 } from "react";
|
|
@@ -8955,7 +9206,7 @@ function buildRedirectUrl(url, asPath, query) {
|
|
|
8955
9206
|
}
|
|
8956
9207
|
|
|
8957
9208
|
// src/slices/Redirect/Redirect.tsx
|
|
8958
|
-
import { Fragment as Fragment32, jsx as
|
|
9209
|
+
import { Fragment as Fragment32, jsx as jsx61 } from "react/jsx-runtime";
|
|
8959
9210
|
var Redirect = ({ slice }) => {
|
|
8960
9211
|
const router = useRouter9();
|
|
8961
9212
|
useEffect8(() => {
|
|
@@ -8967,14 +9218,131 @@ var Redirect = ({ slice }) => {
|
|
|
8967
9218
|
);
|
|
8968
9219
|
router.replace(redirectUrl);
|
|
8969
9220
|
}, [slice.url, router]);
|
|
8970
|
-
return /* @__PURE__ */
|
|
9221
|
+
return /* @__PURE__ */ jsx61(Fragment32, {});
|
|
8971
9222
|
};
|
|
8972
9223
|
|
|
8973
9224
|
// src/slices/Redirect/index.ts
|
|
8974
9225
|
var Redirect_default = Redirect;
|
|
8975
9226
|
|
|
9227
|
+
// src/slices/FactsWithProjectsMap/FactsWithProjectsMap.tsx
|
|
9228
|
+
import {
|
|
9229
|
+
Box as Box49,
|
|
9230
|
+
DefaultSectionContainer as DefaultSectionContainer35,
|
|
9231
|
+
DefaultSectionHeader as DefaultSectionHeader24,
|
|
9232
|
+
Flex as Flex33,
|
|
9233
|
+
Heading as Heading25,
|
|
9234
|
+
Text as Text30,
|
|
9235
|
+
Wrapper as Wrapper38
|
|
9236
|
+
} from "boemly";
|
|
9237
|
+
import { jsx as jsx62, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
9238
|
+
var FactsWithProjectsMap = ({
|
|
9239
|
+
slice
|
|
9240
|
+
}) => {
|
|
9241
|
+
const colorVariant = FACTS_COLOR_VARIANTS[slice.variant] || FACTS_COLOR_VARIANTS.green;
|
|
9242
|
+
const alignFacts = slice.alignFacts || "center";
|
|
9243
|
+
return /* @__PURE__ */ jsx62(
|
|
9244
|
+
DefaultSectionContainer35,
|
|
9245
|
+
{
|
|
9246
|
+
backgroundColor: colorVariant.backgroundColor,
|
|
9247
|
+
title: slice.title,
|
|
9248
|
+
paddingY: "8",
|
|
9249
|
+
children: /* @__PURE__ */ jsxs52(Wrapper38, { children: [
|
|
9250
|
+
slice.title && /* @__PURE__ */ jsx62(
|
|
9251
|
+
DefaultSectionHeader24,
|
|
9252
|
+
{
|
|
9253
|
+
tagline: slice.tagline,
|
|
9254
|
+
text: slice.subTitle,
|
|
9255
|
+
title: slice.title,
|
|
9256
|
+
taglineProps: {
|
|
9257
|
+
color: colorVariant.tagLineColor,
|
|
9258
|
+
textAlign: "center"
|
|
9259
|
+
},
|
|
9260
|
+
titleProps: {
|
|
9261
|
+
color: colorVariant.titleColor,
|
|
9262
|
+
textAlign: "center",
|
|
9263
|
+
maxW: "6xl",
|
|
9264
|
+
marginX: "auto"
|
|
9265
|
+
},
|
|
9266
|
+
textProps: {
|
|
9267
|
+
color: colorVariant.subTitleColor,
|
|
9268
|
+
textAlign: "center",
|
|
9269
|
+
maxW: "3xl",
|
|
9270
|
+
marginX: "auto"
|
|
9271
|
+
}
|
|
9272
|
+
}
|
|
9273
|
+
),
|
|
9274
|
+
/* @__PURE__ */ jsxs52(
|
|
9275
|
+
Flex33,
|
|
9276
|
+
{
|
|
9277
|
+
flexDir: ["column", null, null, "row"],
|
|
9278
|
+
alignItems: "center",
|
|
9279
|
+
padding: "8",
|
|
9280
|
+
gap: "8",
|
|
9281
|
+
children: [
|
|
9282
|
+
/* @__PURE__ */ jsx62(
|
|
9283
|
+
Flex33,
|
|
9284
|
+
{
|
|
9285
|
+
flexDir: ["column", "column", "row", "column"],
|
|
9286
|
+
flex: "1",
|
|
9287
|
+
flexShrink: "1",
|
|
9288
|
+
gap: "6",
|
|
9289
|
+
mb: ["8", "8", "8", "0"],
|
|
9290
|
+
w: ["100%", "100%", "100%", "auto"],
|
|
9291
|
+
justifyContent: ["flex-start", "center", "center", "flex-start"],
|
|
9292
|
+
children: slice.facts.map((fact) => /* @__PURE__ */ jsxs52(Flex33, { flexDir: "column", textAlign: ["center", "center", "center", alignFacts], children: [
|
|
9293
|
+
/* @__PURE__ */ jsx62(
|
|
9294
|
+
Heading25,
|
|
9295
|
+
{
|
|
9296
|
+
textAlign: ["center", "center", "center", alignFacts],
|
|
9297
|
+
fontSize: "5xl",
|
|
9298
|
+
fontFamily: "display",
|
|
9299
|
+
lineHeight: "1.1",
|
|
9300
|
+
fontWeight: "700",
|
|
9301
|
+
color: colorVariant.factValueColor,
|
|
9302
|
+
mb: "1",
|
|
9303
|
+
as: "p",
|
|
9304
|
+
children: fact.value
|
|
9305
|
+
}
|
|
9306
|
+
),
|
|
9307
|
+
/* @__PURE__ */ jsx62(Text30, { size: "mdLowNormal", color: colorVariant.factKeyColor, textAlign: ["center", "center", "center", alignFacts], children: fact.key })
|
|
9308
|
+
] }, fact.key))
|
|
9309
|
+
}
|
|
9310
|
+
),
|
|
9311
|
+
/* @__PURE__ */ jsx62(Box49, { flex: "2", minW: ["100%", null, null, "500px"], children: /* @__PURE__ */ jsx62(
|
|
9312
|
+
ProjectsMap_default,
|
|
9313
|
+
{
|
|
9314
|
+
slice: {
|
|
9315
|
+
defaultCenterCoordinates: slice.defaultCenterCoordinates,
|
|
9316
|
+
defaultZoomLevel: slice.defaultZoomLevel,
|
|
9317
|
+
minZoomLevel: slice.minZoomLevel,
|
|
9318
|
+
disableUserLocationZoom: slice.disableUserLocationZoom
|
|
9319
|
+
},
|
|
9320
|
+
embedded: true,
|
|
9321
|
+
embeddedHeight: "sm"
|
|
9322
|
+
}
|
|
9323
|
+
) })
|
|
9324
|
+
]
|
|
9325
|
+
}
|
|
9326
|
+
),
|
|
9327
|
+
slice.button && /* @__PURE__ */ jsx62(Flex33, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsx62(
|
|
9328
|
+
StrapiLinkButton_default,
|
|
9329
|
+
{
|
|
9330
|
+
link: slice.button,
|
|
9331
|
+
size: "md",
|
|
9332
|
+
variant: "outline",
|
|
9333
|
+
component: "FactsWithProjectsMap"
|
|
9334
|
+
}
|
|
9335
|
+
) })
|
|
9336
|
+
] })
|
|
9337
|
+
}
|
|
9338
|
+
);
|
|
9339
|
+
};
|
|
9340
|
+
|
|
9341
|
+
// src/slices/FactsWithProjectsMap/index.ts
|
|
9342
|
+
var FactsWithProjectsMap_default = FactsWithProjectsMap;
|
|
9343
|
+
|
|
8976
9344
|
// src/components/SliceRenderer/SliceRenderer.tsx
|
|
8977
|
-
import { jsx as
|
|
9345
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
8978
9346
|
var SliceRenderer = ({
|
|
8979
9347
|
slices,
|
|
8980
9348
|
blogPosts,
|
|
@@ -8985,7 +9353,7 @@ var SliceRenderer = ({
|
|
|
8985
9353
|
fonts,
|
|
8986
9354
|
CustomSlice,
|
|
8987
9355
|
analyticsFunction
|
|
8988
|
-
}) => /* @__PURE__ */
|
|
9356
|
+
}) => /* @__PURE__ */ jsx63(
|
|
8989
9357
|
ContextProvider,
|
|
8990
9358
|
{
|
|
8991
9359
|
locale,
|
|
@@ -8995,11 +9363,11 @@ var SliceRenderer = ({
|
|
|
8995
9363
|
children: slices.map((slice) => {
|
|
8996
9364
|
switch (slice.__component) {
|
|
8997
9365
|
case "sections.hero":
|
|
8998
|
-
return /* @__PURE__ */
|
|
9366
|
+
return /* @__PURE__ */ jsx63(Hero_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
8999
9367
|
case "sections.map-hero":
|
|
9000
|
-
return /* @__PURE__ */
|
|
9368
|
+
return /* @__PURE__ */ jsx63(MapHero_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9001
9369
|
case "sections.rich-text":
|
|
9002
|
-
return /* @__PURE__ */
|
|
9370
|
+
return /* @__PURE__ */ jsx63(
|
|
9003
9371
|
RichTextSection_default,
|
|
9004
9372
|
{
|
|
9005
9373
|
slice
|
|
@@ -9007,7 +9375,7 @@ var SliceRenderer = ({
|
|
|
9007
9375
|
`${slice.__component}-${slice.id}`
|
|
9008
9376
|
);
|
|
9009
9377
|
case "sections.left-text-right-card":
|
|
9010
|
-
return /* @__PURE__ */
|
|
9378
|
+
return /* @__PURE__ */ jsx63(
|
|
9011
9379
|
LeftTextRightCard_default,
|
|
9012
9380
|
{
|
|
9013
9381
|
slice
|
|
@@ -9015,7 +9383,7 @@ var SliceRenderer = ({
|
|
|
9015
9383
|
`${slice.__component}-${slice.id}`
|
|
9016
9384
|
);
|
|
9017
9385
|
case "sections.text-with-card":
|
|
9018
|
-
return /* @__PURE__ */
|
|
9386
|
+
return /* @__PURE__ */ jsx63(
|
|
9019
9387
|
TextWithCard_default,
|
|
9020
9388
|
{
|
|
9021
9389
|
slice,
|
|
@@ -9024,7 +9392,7 @@ var SliceRenderer = ({
|
|
|
9024
9392
|
`${slice.__component}-${slice.id}`
|
|
9025
9393
|
);
|
|
9026
9394
|
case "sections.logo-grid-with-text":
|
|
9027
|
-
return /* @__PURE__ */
|
|
9395
|
+
return /* @__PURE__ */ jsx63(
|
|
9028
9396
|
LogoGridWithText_default,
|
|
9029
9397
|
{
|
|
9030
9398
|
slice
|
|
@@ -9032,7 +9400,7 @@ var SliceRenderer = ({
|
|
|
9032
9400
|
`${slice.__component}-${slice.id}`
|
|
9033
9401
|
);
|
|
9034
9402
|
case "sections.quote-cards":
|
|
9035
|
-
return /* @__PURE__ */
|
|
9403
|
+
return /* @__PURE__ */ jsx63(
|
|
9036
9404
|
QuoteCards_default,
|
|
9037
9405
|
{
|
|
9038
9406
|
slice
|
|
@@ -9040,11 +9408,11 @@ var SliceRenderer = ({
|
|
|
9040
9408
|
`${slice.__component}-${slice.id}`
|
|
9041
9409
|
);
|
|
9042
9410
|
case "sections.q-and-a":
|
|
9043
|
-
return /* @__PURE__ */
|
|
9411
|
+
return /* @__PURE__ */ jsx63(QAndA_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9044
9412
|
case "sections.image-grid":
|
|
9045
|
-
return /* @__PURE__ */
|
|
9413
|
+
return /* @__PURE__ */ jsx63(ImageGrid_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9046
9414
|
case "sections.full-width-image":
|
|
9047
|
-
return /* @__PURE__ */
|
|
9415
|
+
return /* @__PURE__ */ jsx63(
|
|
9048
9416
|
FullWidthImage_default,
|
|
9049
9417
|
{
|
|
9050
9418
|
slice
|
|
@@ -9052,7 +9420,7 @@ var SliceRenderer = ({
|
|
|
9052
9420
|
`${slice.__component}-${slice.id}`
|
|
9053
9421
|
);
|
|
9054
9422
|
case "sections.text-with-text-cards":
|
|
9055
|
-
return /* @__PURE__ */
|
|
9423
|
+
return /* @__PURE__ */ jsx63(
|
|
9056
9424
|
TextWithTextCards_default,
|
|
9057
9425
|
{
|
|
9058
9426
|
slice
|
|
@@ -9060,7 +9428,7 @@ var SliceRenderer = ({
|
|
|
9060
9428
|
`${slice.__component}-${slice.id}`
|
|
9061
9429
|
);
|
|
9062
9430
|
case "sections.text-card-grid":
|
|
9063
|
-
return /* @__PURE__ */
|
|
9431
|
+
return /* @__PURE__ */ jsx63(
|
|
9064
9432
|
TextCardGrid_default,
|
|
9065
9433
|
{
|
|
9066
9434
|
slice
|
|
@@ -9068,9 +9436,9 @@ var SliceRenderer = ({
|
|
|
9068
9436
|
`${slice.__component}-${slice.id}`
|
|
9069
9437
|
);
|
|
9070
9438
|
case "sections.icon-grid":
|
|
9071
|
-
return /* @__PURE__ */
|
|
9439
|
+
return /* @__PURE__ */ jsx63(IconGrid_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9072
9440
|
case "sections.image-text-sequence":
|
|
9073
|
-
return /* @__PURE__ */
|
|
9441
|
+
return /* @__PURE__ */ jsx63(
|
|
9074
9442
|
ImageTextSequence_default,
|
|
9075
9443
|
{
|
|
9076
9444
|
slice
|
|
@@ -9078,9 +9446,9 @@ var SliceRenderer = ({
|
|
|
9078
9446
|
`${slice.__component}-${slice.id}`
|
|
9079
9447
|
);
|
|
9080
9448
|
case "sections.steps":
|
|
9081
|
-
return /* @__PURE__ */
|
|
9449
|
+
return /* @__PURE__ */ jsx63(Steps_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9082
9450
|
case "sections.text-carousel":
|
|
9083
|
-
return /* @__PURE__ */
|
|
9451
|
+
return /* @__PURE__ */ jsx63(
|
|
9084
9452
|
TextCarousel_default,
|
|
9085
9453
|
{
|
|
9086
9454
|
slice
|
|
@@ -9088,7 +9456,7 @@ var SliceRenderer = ({
|
|
|
9088
9456
|
`${slice.__component}-${slice.id}`
|
|
9089
9457
|
);
|
|
9090
9458
|
case "sections.link-cards-grid":
|
|
9091
|
-
return /* @__PURE__ */
|
|
9459
|
+
return /* @__PURE__ */ jsx63(
|
|
9092
9460
|
LinkCardsGrid_default,
|
|
9093
9461
|
{
|
|
9094
9462
|
slice
|
|
@@ -9096,7 +9464,7 @@ var SliceRenderer = ({
|
|
|
9096
9464
|
`${slice.__component}-${slice.id}`
|
|
9097
9465
|
);
|
|
9098
9466
|
case "sections.small-hero":
|
|
9099
|
-
return /* @__PURE__ */
|
|
9467
|
+
return /* @__PURE__ */ jsx63(
|
|
9100
9468
|
SmallHero_default,
|
|
9101
9469
|
{
|
|
9102
9470
|
slice,
|
|
@@ -9105,7 +9473,7 @@ var SliceRenderer = ({
|
|
|
9105
9473
|
`${slice.__component}-${slice.id}`
|
|
9106
9474
|
);
|
|
9107
9475
|
case "sections.small-hero-light":
|
|
9108
|
-
return /* @__PURE__ */
|
|
9476
|
+
return /* @__PURE__ */ jsx63(
|
|
9109
9477
|
SmallHero_default,
|
|
9110
9478
|
{
|
|
9111
9479
|
slice,
|
|
@@ -9114,7 +9482,7 @@ var SliceRenderer = ({
|
|
|
9114
9482
|
`${slice.__component}-${slice.id}`
|
|
9115
9483
|
);
|
|
9116
9484
|
case "sections.project-facts":
|
|
9117
|
-
return /* @__PURE__ */
|
|
9485
|
+
return /* @__PURE__ */ jsx63(
|
|
9118
9486
|
ProjectFacts_default,
|
|
9119
9487
|
{
|
|
9120
9488
|
slice,
|
|
@@ -9123,7 +9491,7 @@ var SliceRenderer = ({
|
|
|
9123
9491
|
`${slice.__component}-${slice.id}`
|
|
9124
9492
|
);
|
|
9125
9493
|
case "sections.projects-grid":
|
|
9126
|
-
return /* @__PURE__ */
|
|
9494
|
+
return /* @__PURE__ */ jsx63(
|
|
9127
9495
|
ProjectsGrid_default,
|
|
9128
9496
|
{
|
|
9129
9497
|
slice,
|
|
@@ -9131,8 +9499,17 @@ var SliceRenderer = ({
|
|
|
9131
9499
|
},
|
|
9132
9500
|
`${slice.__component}-${slice.id}`
|
|
9133
9501
|
);
|
|
9502
|
+
case "sections.projects-grid-v2":
|
|
9503
|
+
return /* @__PURE__ */ jsx63(
|
|
9504
|
+
ProjectsGridV2_default,
|
|
9505
|
+
{
|
|
9506
|
+
slice,
|
|
9507
|
+
projects
|
|
9508
|
+
},
|
|
9509
|
+
`${slice.__component}-${slice.id}`
|
|
9510
|
+
);
|
|
9134
9511
|
case "sections.projects-map":
|
|
9135
|
-
return /* @__PURE__ */
|
|
9512
|
+
return /* @__PURE__ */ jsx63(
|
|
9136
9513
|
ProjectsMap_default,
|
|
9137
9514
|
{
|
|
9138
9515
|
slice
|
|
@@ -9140,9 +9517,9 @@ var SliceRenderer = ({
|
|
|
9140
9517
|
`${slice.__component}-${slice.id}`
|
|
9141
9518
|
);
|
|
9142
9519
|
case "sections.video":
|
|
9143
|
-
return /* @__PURE__ */
|
|
9520
|
+
return /* @__PURE__ */ jsx63(Video_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9144
9521
|
case "sections.full-width-highlight-quote":
|
|
9145
|
-
return /* @__PURE__ */
|
|
9522
|
+
return /* @__PURE__ */ jsx63(
|
|
9146
9523
|
FullWidthHighlightQuote_default,
|
|
9147
9524
|
{
|
|
9148
9525
|
slice
|
|
@@ -9150,7 +9527,7 @@ var SliceRenderer = ({
|
|
|
9150
9527
|
`${slice.__component}-${slice.id}`
|
|
9151
9528
|
);
|
|
9152
9529
|
case "sections.full-width-image-slider":
|
|
9153
|
-
return /* @__PURE__ */
|
|
9530
|
+
return /* @__PURE__ */ jsx63(
|
|
9154
9531
|
FullWidthImageSlider_default,
|
|
9155
9532
|
{
|
|
9156
9533
|
slice
|
|
@@ -9158,7 +9535,7 @@ var SliceRenderer = ({
|
|
|
9158
9535
|
`${slice.__component}-${slice.id}`
|
|
9159
9536
|
);
|
|
9160
9537
|
case "sections.side-by-side-images":
|
|
9161
|
-
return /* @__PURE__ */
|
|
9538
|
+
return /* @__PURE__ */ jsx63(
|
|
9162
9539
|
SideBySideImages_default,
|
|
9163
9540
|
{
|
|
9164
9541
|
slice
|
|
@@ -9166,11 +9543,11 @@ var SliceRenderer = ({
|
|
|
9166
9543
|
`${slice.__component}-${slice.id}`
|
|
9167
9544
|
);
|
|
9168
9545
|
case "sections.cta-only":
|
|
9169
|
-
return /* @__PURE__ */
|
|
9546
|
+
return /* @__PURE__ */ jsx63(CtaOnly_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9170
9547
|
case "sections.cta":
|
|
9171
|
-
return /* @__PURE__ */
|
|
9548
|
+
return /* @__PURE__ */ jsx63(Cta_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9172
9549
|
case "sections.shop-checkout":
|
|
9173
|
-
return /* @__PURE__ */
|
|
9550
|
+
return /* @__PURE__ */ jsx63(
|
|
9174
9551
|
ShopCheckout_default,
|
|
9175
9552
|
{
|
|
9176
9553
|
slice
|
|
@@ -9178,9 +9555,9 @@ var SliceRenderer = ({
|
|
|
9178
9555
|
`${slice.__component}-${slice.id}`
|
|
9179
9556
|
);
|
|
9180
9557
|
case "sections.facts":
|
|
9181
|
-
return /* @__PURE__ */
|
|
9558
|
+
return /* @__PURE__ */ jsx63(Facts_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9182
9559
|
case "sections.blog-cards":
|
|
9183
|
-
return /* @__PURE__ */
|
|
9560
|
+
return /* @__PURE__ */ jsx63(
|
|
9184
9561
|
BlogCards_default,
|
|
9185
9562
|
{
|
|
9186
9563
|
slice,
|
|
@@ -9189,7 +9566,7 @@ var SliceRenderer = ({
|
|
|
9189
9566
|
`${slice.__component}-${slice.id}`
|
|
9190
9567
|
);
|
|
9191
9568
|
case "sections.blog":
|
|
9192
|
-
return /* @__PURE__ */
|
|
9569
|
+
return /* @__PURE__ */ jsx63(
|
|
9193
9570
|
Blog_default,
|
|
9194
9571
|
{
|
|
9195
9572
|
slice: {
|
|
@@ -9201,7 +9578,7 @@ var SliceRenderer = ({
|
|
|
9201
9578
|
`${slice.__component}-${slice.id}`
|
|
9202
9579
|
);
|
|
9203
9580
|
case "sections.glossary":
|
|
9204
|
-
return /* @__PURE__ */
|
|
9581
|
+
return /* @__PURE__ */ jsx63(
|
|
9205
9582
|
Glossary_default,
|
|
9206
9583
|
{
|
|
9207
9584
|
slice: {
|
|
@@ -9212,7 +9589,7 @@ var SliceRenderer = ({
|
|
|
9212
9589
|
`${slice.__component}-${slice.id}`
|
|
9213
9590
|
);
|
|
9214
9591
|
case "sections.customer-stories":
|
|
9215
|
-
return /* @__PURE__ */
|
|
9592
|
+
return /* @__PURE__ */ jsx63(
|
|
9216
9593
|
CustomerStories_default,
|
|
9217
9594
|
{
|
|
9218
9595
|
slice: {
|
|
@@ -9224,7 +9601,7 @@ var SliceRenderer = ({
|
|
|
9224
9601
|
`${slice.__component}-${slice.id}`
|
|
9225
9602
|
);
|
|
9226
9603
|
case "sections.comparison":
|
|
9227
|
-
return /* @__PURE__ */
|
|
9604
|
+
return /* @__PURE__ */ jsx63(
|
|
9228
9605
|
Comparison_default,
|
|
9229
9606
|
{
|
|
9230
9607
|
slice
|
|
@@ -9232,9 +9609,9 @@ var SliceRenderer = ({
|
|
|
9232
9609
|
`${slice.__component}-${slice.id}`
|
|
9233
9610
|
);
|
|
9234
9611
|
case "sections.timeline":
|
|
9235
|
-
return /* @__PURE__ */
|
|
9612
|
+
return /* @__PURE__ */ jsx63(Timeline_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9236
9613
|
case "sections.carousel-marquee-banner":
|
|
9237
|
-
return /* @__PURE__ */
|
|
9614
|
+
return /* @__PURE__ */ jsx63(
|
|
9238
9615
|
CarouselMarqueeBanner_default,
|
|
9239
9616
|
{
|
|
9240
9617
|
slice
|
|
@@ -9242,12 +9619,22 @@ var SliceRenderer = ({
|
|
|
9242
9619
|
`${slice.__component}-${slice.id}`
|
|
9243
9620
|
);
|
|
9244
9621
|
case "sections.events":
|
|
9245
|
-
return /* @__PURE__ */
|
|
9622
|
+
return /* @__PURE__ */ jsx63(Events_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9246
9623
|
case "sections.redirect":
|
|
9247
|
-
return /* @__PURE__ */
|
|
9624
|
+
return /* @__PURE__ */ jsx63(Redirect_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9625
|
+
case "sections.hero-with-highlights":
|
|
9626
|
+
return /* @__PURE__ */ jsx63(
|
|
9627
|
+
HeroWithHighlights_default,
|
|
9628
|
+
{
|
|
9629
|
+
slice
|
|
9630
|
+
},
|
|
9631
|
+
`${slice.__component}-${slice.id}`
|
|
9632
|
+
);
|
|
9633
|
+
case "sections.facts-with-projects-map":
|
|
9634
|
+
return /* @__PURE__ */ jsx63(FactsWithProjectsMap_default, { slice }, `${slice.__component}-${slice.id}`);
|
|
9248
9635
|
default:
|
|
9249
9636
|
if (CustomSlice) {
|
|
9250
|
-
return /* @__PURE__ */
|
|
9637
|
+
return /* @__PURE__ */ jsx63(
|
|
9251
9638
|
CustomSlice,
|
|
9252
9639
|
{
|
|
9253
9640
|
id: slice.__component,
|
|
@@ -9256,7 +9643,7 @@ var SliceRenderer = ({
|
|
|
9256
9643
|
`${slice.__component}-${slice.id}`
|
|
9257
9644
|
);
|
|
9258
9645
|
}
|
|
9259
|
-
return /* @__PURE__ */
|
|
9646
|
+
return /* @__PURE__ */ jsx63("div", { children: "Slice component not supported" }, `${slice.__component}-${slice.id}`);
|
|
9260
9647
|
}
|
|
9261
9648
|
})
|
|
9262
9649
|
}
|