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