kupos-ui-components-lib 9.3.1 → 9.3.2
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/assets/images/anims/service_list/dot_animation.json +1 -0
- package/dist/assets/images/anims/service_list/thunder_icon.json +1 -0
- package/dist/components/ServiceItem/ServiceItemDesktop.js +57 -62
- package/dist/components/ServiceItem/ServiceItemMobile.js +45 -36
- package/dist/components/ServiceItem/mobileTypes.d.ts +3 -0
- package/dist/styles.css +88 -23
- package/dist/types.d.ts +2 -0
- package/dist/ui/ExpendedDropDown/ExpandedDropdown.js +16 -19
- package/dist/ui/FeatureServiceUI/FeatureServiceUi.d.ts +12 -0
- package/dist/ui/FeatureServiceUI/FeatureServiceUi.js +101 -0
- package/dist/ui/SeatSection/SeatSection.d.ts +2 -1
- package/dist/ui/SeatSection/SeatSection.js +26 -10
- package/dist/ui/mobileweb/ExpandedDropdownMobile.js +18 -18
- package/dist/ui/mobileweb/SeatSectionMobile.js +24 -16
- package/package.json +1 -1
- package/src/assets/images/anims/service_list/dot_animation.json +1 -0
- package/src/components/ServiceItem/ServiceItemDesktop.tsx +83 -129
- package/src/components/ServiceItem/ServiceItemMobile.tsx +115 -55
- package/src/components/ServiceItem/mobileTypes.ts +3 -0
- package/src/types.ts +2 -0
- package/src/ui/ExpendedDropDown/ExpandedDropdown.tsx +26 -67
- package/src/ui/SeatSection/SeatSection.tsx +65 -32
- package/src/ui/mobileweb/ExpandedDropdownMobile.tsx +24 -24
- package/src/ui/mobileweb/SeatSectionMobile.tsx +68 -32
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"nm":"Main Scene","h":260.03,"w":256,"meta":{"g":"@lottiefiles/creator@1.89.0"},"layers":[{"ty":4,"nm":"circle 3","sr":1,"st":12,"op":91,"ip":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-96.841,-18.544,0]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1000,1000],"t":2},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[600,600],"t":28},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[400,400],"t":40},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[600,600],"t":53},{"s":[1000,1000],"t":78}]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[128,130.015]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":2},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[70],"t":28},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[20],"t":40},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[70],"t":53},{"s":[100],"t":78}]}},"shapes":[{"ty":"gr","nm":"Ellipse 1","it":[{"ty":"el","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0]},"s":{"a":0,"k":[23.352,23.352]}},{"ty":"fl","nm":"Fill 1","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":0,"k":100}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[-96.841,-18.544]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":1}],"v":"5.7.0","fr":29.97,"op":84,"ip":0,"assets":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"nm":"t","ddd":0,"h":500,"w":500,"meta":{"g":"@lottiefiles/toolkit-js 0.33.2"},"layers":[{"ty":4,"nm":"t","sr":1,"st":60,"op":90,"ip":60,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[256.655,268,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[256.655,268,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":89},{"s":[0],"t":90}]}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-35.799,-108.024],[135.03,-108.024],[135.015,-107.976],[-35.905,-107.905]]}],"t":60},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-35.799,-108.024],[135.03,-108.024],[-48.36,108.024],[-135.03,96.72]]}],"t":66}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":60},{"s":[100],"t":61}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[245.351,170.024]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]},{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-146.335,21.917],[-146.203,22.157],[-111.091,-49.844],[-111.165,-49.681]]}],"t":66},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-146.335,21.917],[66.749,49.681],[146.335,-25.815],[-111.165,-49.681]]}],"t":72}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":66},{"s":[100],"t":67}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[256.655,244.827]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]},{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[85.348,-127.61],[40.195,-131.89],[134.402,-123.098]]}],"t":66},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[54.848,-47.61],[40.195,-131.89],[134.402,-123.098]]}],"t":72},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-134.402,131.89],[40.195,-131.89],[134.402,-123.098]]}],"t":78}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":72},{"s":[100],"t":73}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[268.588,342.11]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":1},{"ty":4,"nm":"t","sr":1,"st":30,"op":60,"ip":30,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[256.655,268,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[256.655,268,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":59},{"s":[0],"t":60}]}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-35.799,-108.024],[135.03,-108.024],[135.015,-107.976],[-35.905,-107.905]]}],"t":30},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-35.799,-108.024],[135.03,-108.024],[-48.36,108.024],[-135.03,96.72]]}],"t":36}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":30},{"s":[100],"t":31}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[245.351,170.024]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]},{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-146.335,21.917],[-146.203,22.157],[-111.091,-49.844],[-111.165,-49.681]]}],"t":36},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-146.335,21.917],[66.749,49.681],[146.335,-25.815],[-111.165,-49.681]]}],"t":42}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":36},{"s":[100],"t":37}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[256.655,244.827]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]},{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[85.348,-127.61],[40.195,-131.89],[134.402,-123.098]]}],"t":36},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[54.848,-47.61],[40.195,-131.89],[134.402,-123.098]]}],"t":42},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-134.402,131.89],[40.195,-131.89],[134.402,-123.098]]}],"t":48}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":42},{"s":[100],"t":43}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[268.588,342.11]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":2},{"ty":4,"nm":"t","sr":1,"st":0,"op":30,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[256.655,268,0]},"s":{"a":0,"k":[100,100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[256.655,268,0]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":29},{"s":[0],"t":30}]}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-35.799,-108.024],[135.03,-108.024],[135.015,-107.976],[-35.905,-107.905]]}],"t":0},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-35.799,-108.024],[135.03,-108.024],[-48.36,108.024],[-135.03,96.72]]}],"t":6}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":0},{"s":[100],"t":1}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[245.351,170.024]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]},{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-146.335,21.917],[-146.203,22.157],[-111.091,-49.844],[-111.165,-49.681]]}],"t":6},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-146.335,21.917],[66.749,49.681],[146.335,-25.815],[-111.165,-49.681]]}],"t":12}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":6},{"s":[100],"t":7}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[256.655,244.827]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]},{"ty":"gr","bm":0,"hd":false,"nm":"0","it":[{"ty":"sh","bm":0,"hd":false,"nm":"ã","d":1,"ks":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[85.348,-127.61],[40.195,-131.89],[134.402,-123.098]]}],"t":6},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[54.848,-47.61],[40.195,-131.89],[134.402,-123.098]]}],"t":12},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-134.402,131.89],[40.195,-131.89],[134.402,-123.098]]}],"t":18}]}},{"ty":"fl","bm":0,"hd":false,"nm":"å¡","c":{"a":0,"k":[1,1,1]},"r":1,"o":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":12},{"s":[100],"t":13}]}},{"ty":"tr","a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[268.588,342.11]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":0,"k":100}}]}],"ind":3}],"v":"5.9.0","fr":30,"op":90,"ip":0,"assets":[]}
|
|
@@ -20,6 +20,7 @@ import opsitesPetFriendlyAnimation from "../../assets/images/anims/service_list/
|
|
|
20
20
|
import opsitesLocationAnimation from "../../assets/images/anims/service_list/opsitesLocation.json";
|
|
21
21
|
import opsitesPriorityStageAnimation from "../../assets/images/anims/service_list/opsitesPriorityStage.json";
|
|
22
22
|
import bombAnimation from "../../assets/images/anims/service_list/bomb.json";
|
|
23
|
+
import dotAnimation from "../../assets/images/anims/service_list/dot_animation.json";
|
|
23
24
|
import RatingBlock from "../../ui/RatingBlock";
|
|
24
25
|
import DurationBlock from "../../ui/DurationBlock";
|
|
25
26
|
import PetBlock from "../../ui/PetBlock";
|
|
@@ -60,6 +61,9 @@ const ANIMATION_MAP = {
|
|
|
60
61
|
bombAnimation: {
|
|
61
62
|
kupos: bombAnimation,
|
|
62
63
|
},
|
|
64
|
+
dotAnimation: {
|
|
65
|
+
kupos: dotAnimation,
|
|
66
|
+
},
|
|
63
67
|
};
|
|
64
68
|
function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, isPeruSites, showAvailableSeats, isSeatIcon, isLinatal, isPeru, t = (key) => key, siteType, isAllinBus, isExpand, setIsExpand, coachKey, viewersConfig, }) {
|
|
65
69
|
const startViewerCount = (node) => {
|
|
@@ -114,6 +118,17 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
114
118
|
const showPromo = Math.random() > 0.5;
|
|
115
119
|
const isItemExpanded = serviceItem.id === isExpand || isExpand === true;
|
|
116
120
|
const grayscaleClass = isSoldOut ? "grayscale" : "";
|
|
121
|
+
const hasOfferText = Boolean(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text);
|
|
122
|
+
const offerGradient = "linear-gradient(90deg, #ff5964 0%, #ff8842 100%)";
|
|
123
|
+
const serviceCardStyle = hasOfferText
|
|
124
|
+
? {
|
|
125
|
+
borderColor: "transparent",
|
|
126
|
+
borderStyle: "solid",
|
|
127
|
+
borderWidth: "6px 6px 0 6px",
|
|
128
|
+
borderRadius: isItemExpanded ? "18px 18px 0 0" : "18px",
|
|
129
|
+
background: `linear-gradient(#fff, #fff) padding-box, ${offerGradient} border-box`,
|
|
130
|
+
}
|
|
131
|
+
: {};
|
|
117
132
|
const renderIcon = (iconKey, size = "14px") => {
|
|
118
133
|
var _a;
|
|
119
134
|
const iconValue = (_a = serviceItem.icons) === null || _a === void 0 ? void 0 : _a[iconKey];
|
|
@@ -235,19 +250,6 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
235
250
|
condition: serviceItem.duration,
|
|
236
251
|
render: (React.createElement(DurationBlock, { serviceItem: serviceItem, translation: translation, renderIcon: renderIcon, isSoldOut: isSoldOut, colors: colors })),
|
|
237
252
|
},
|
|
238
|
-
// {
|
|
239
|
-
// key: "directo",
|
|
240
|
-
// width: "12%",
|
|
241
|
-
// condition: serviceItem?.is_direct_trip === true,
|
|
242
|
-
// render: (
|
|
243
|
-
// <DirectoBlock
|
|
244
|
-
// translation={translation}
|
|
245
|
-
// getAnimationIcon={getAnimationIcon}
|
|
246
|
-
// colors={colors}
|
|
247
|
-
// isSoldOut={isSoldOut}
|
|
248
|
-
// />
|
|
249
|
-
// ),
|
|
250
|
-
// },
|
|
251
253
|
{
|
|
252
254
|
key: "pet",
|
|
253
255
|
width: "20%",
|
|
@@ -263,34 +265,24 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
263
265
|
},
|
|
264
266
|
];
|
|
265
267
|
const otherItems = items.filter((i) => i.key !== "pet" && i.key !== "flexible" && !!i.condition);
|
|
266
|
-
return (React.createElement(React.Fragment, null, isPeruSites ? (React.createElement(PeruServiceItemDesktop, { serviceItem: serviceItem, onBookButtonPress: onBookButtonPress, colors: colors, metaData: metaData, children: children, busStage: busStage, serviceDetailsLoading: serviceDetailsLoading, cityOrigin: cityOrigin, cityDestination: cityDestination, translation: translation, orignLabel: orignLabel, destinationLabel: destinationLabel, currencySign: currencySign, isCiva: isCiva, showRating: showRating, showLastSeats: showLastSeats, removeArrivalTime: removeArrivalTime, removeDuplicateSeats: removeDuplicateSeats, isPeruSites: isPeruSites, t: (key) => t(key), showAvailableSeats: showAvailableSeats, isSeatIcon: isSeatIcon, isPeru: isPeru, siteType: siteType, isAllinBus: isAllinBus })) : (React.createElement("div", {
|
|
267
|
-
// className={`relative ${
|
|
268
|
-
// serviceItem.offer_text ? "mb-[55px]" : "mb-[10px]"
|
|
269
|
-
// } mt-[14px]`}
|
|
270
|
-
className: `relative ${serviceItem.offer_text ? "mb-[55px]" : "mb-[10px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
|
|
268
|
+
return (React.createElement(React.Fragment, null, isPeruSites ? (React.createElement(PeruServiceItemDesktop, { serviceItem: serviceItem, onBookButtonPress: onBookButtonPress, colors: colors, metaData: metaData, children: children, busStage: busStage, serviceDetailsLoading: serviceDetailsLoading, cityOrigin: cityOrigin, cityDestination: cityDestination, translation: translation, orignLabel: orignLabel, destinationLabel: destinationLabel, currencySign: currencySign, isCiva: isCiva, showRating: showRating, showLastSeats: showLastSeats, removeArrivalTime: removeArrivalTime, removeDuplicateSeats: removeDuplicateSeats, isPeruSites: isPeruSites, t: (key) => t(key), showAvailableSeats: showAvailableSeats, isSeatIcon: isSeatIcon, isPeru: isPeru, siteType: siteType, isAllinBus: isAllinBus })) : (React.createElement("div", { className: `relative ${hasOfferText ? "mb-[55px]" : "mb-[10px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
|
|
271
269
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.train_type_label) === "Tren Express (Nuevo)" ||
|
|
272
270
|
showTopLabel
|
|
273
271
|
? "mt-[24px]"
|
|
274
272
|
: "mt-[20px]"} ` },
|
|
275
|
-
React.createElement("div", { id: `service-card-${serviceItem.id}`, className:
|
|
273
|
+
React.createElement("div", { id: `service-card-${serviceItem.id}`, className: `bg-white mx-auto relative ${hasOfferText
|
|
274
|
+
? "rounded-[18px]"
|
|
275
|
+
: "rounded-[10px] border border-[#ccc]"}`, style: serviceCardStyle },
|
|
276
276
|
React.createElement("div", { className: " pt-[20px]", style: {
|
|
277
277
|
padding: coachKey
|
|
278
278
|
? "15px 15px 20px 15px"
|
|
279
279
|
: "20px 15px 11px 15px",
|
|
280
280
|
} },
|
|
281
|
-
React.createElement("div", {
|
|
282
|
-
// className="grid text-[#464647] w-full [rid-template-columns:18%_28%_2.5%_28%_15.5%] gap-x-[2%] items-center"
|
|
283
|
-
className: "grid text-[#464647] w-full [grid-template-columns:22%_28%_2.5%_24%_15.5%] gap-x-[2%] items-center", style: {
|
|
281
|
+
React.createElement("div", { className: "grid text-[#464647] w-full [grid-template-columns:22%_28%_2.5%_24%_15.5%] gap-x-[2%] items-center", style: {
|
|
284
282
|
marginTop: showTopLabel || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ? "8px" : "",
|
|
285
283
|
} },
|
|
286
|
-
React.createElement("div", {
|
|
287
|
-
|
|
288
|
-
flexDirection: "column",
|
|
289
|
-
gap: "5px",
|
|
290
|
-
} },
|
|
291
|
-
React.createElement("div", {
|
|
292
|
-
// className="flex items-center justify-center m-[auto]"
|
|
293
|
-
className: "" },
|
|
284
|
+
React.createElement("div", { className: "flex flex-col gap-[5px]" },
|
|
285
|
+
React.createElement("div", null,
|
|
294
286
|
React.createElement("img", { src: serviceItem.operator_details[0], alt: "service logo", className: `h-[30px] w-[auto] ${isSoldOut ? "grayscale" : ""}` }),
|
|
295
287
|
isCiva ? (React.createElement("div", { className: "text-[13.33px] black-text ml-2" }, serviceItem.operator_details[2])) : null),
|
|
296
288
|
React.createElement(RatingBlock, { showRating: showRating, serviceItem: serviceItem, isSoldOut: isSoldOut, colors: colors, t: t, translation: translation, isPeru: isPeru })),
|
|
@@ -301,13 +293,17 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
301
293
|
backgroundColor: "#ccc",
|
|
302
294
|
} }),
|
|
303
295
|
React.createElement("div", { className: "content-center" },
|
|
304
|
-
React.createElement(SeatSection, { seatTypes: serviceItem.seat_types, serviceItem: serviceItem, availableSeats: serviceItem.available_seats, isSoldOut: isSoldOut, priceColor: colors.priceColor, currencySign: currencySign, removeDuplicateSeats: removeDuplicateSeats, isPeru: isPeru })),
|
|
296
|
+
React.createElement(SeatSection, { seatTypes: serviceItem.seat_types, serviceItem: serviceItem, availableSeats: serviceItem.available_seats, isSoldOut: isSoldOut, priceColor: colors.priceColor, currencySign: currencySign, removeDuplicateSeats: removeDuplicateSeats, isPeru: isPeru, renderIcon: renderIcon })),
|
|
305
297
|
React.createElement("div", { className: "relative" },
|
|
306
298
|
showLastSeats ? (React.createElement("div", { className: "flex justify-end mr-[11px] w-[100%] right-[0px] absolute", style: {
|
|
307
299
|
top: serviceDetailsLoading ? "-17px" : "-20px",
|
|
308
300
|
} }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) < 10 &&
|
|
309
301
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) > 0 && (React.createElement("div", { className: "text-[12px] text-[#464647] mt-1 text-center" }, "\u00A1\u00DAltimos Asientos!")))) : null,
|
|
310
|
-
React.createElement(KuposButton, { isSoldOut: isSoldOut, isLoading: serviceDetailsLoading, buttonColor: colors.kuposButtonColor, buyLabel: translation === null || translation === void 0 ? void 0 : translation.buyButton, soldOutLabel: translation === null || translation === void 0 ? void 0 : translation.soldOutButton, soldOutIcon: renderIcon("soldOutIcon", "14px"), onClick: checkMidnight })
|
|
302
|
+
React.createElement(KuposButton, { isSoldOut: isSoldOut, isLoading: serviceDetailsLoading, buttonColor: colors.kuposButtonColor, buyLabel: translation === null || translation === void 0 ? void 0 : translation.buyButton, soldOutLabel: translation === null || translation === void 0 ? void 0 : translation.soldOutButton, soldOutIcon: renderIcon("soldOutIcon", "14px"), onClick: checkMidnight }),
|
|
303
|
+
showLastSeats ? (React.createElement("div", { className: "flex justify-end mr-[11px] w-[100%] right-[0px]", style: {
|
|
304
|
+
top: serviceDetailsLoading ? "-17px" : "-20px",
|
|
305
|
+
} }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) < 10 &&
|
|
306
|
+
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) > 0 && (React.createElement("div", { className: "text-[12px] text-[#464647] mt-1 text-center" }, "\u00A1\u00DAltimos Asientos!")))) : null)),
|
|
311
307
|
React.createElement(BottomAmenities, { otherItems: otherItems, serviceItem: serviceItem, grayscaleClass: grayscaleClass, isSoldOut: isSoldOut, isItemExpanded: isItemExpanded, colors: colors, translation: translation, getAnimationIcon: getAnimationIcon, downArrowIcon: renderIcon("downArrow", "10px"), onToggleExpand: () => setIsExpand &&
|
|
312
308
|
setIsExpand(isItemExpanded ? null : serviceItem.id), isPeru: isPeru }))),
|
|
313
309
|
isPeru ? null : (React.createElement("div", { style: {
|
|
@@ -318,11 +314,18 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
318
314
|
position: "relative",
|
|
319
315
|
zIndex: -1,
|
|
320
316
|
} },
|
|
321
|
-
React.createElement("div", { style: { overflow: "hidden", minHeight: 0, marginTop: "-10px" }
|
|
317
|
+
React.createElement("div", { style: Object.assign({ overflow: "hidden", minHeight: 0, marginTop: "-10px" }, (hasOfferText
|
|
318
|
+
? {
|
|
319
|
+
borderLeft: "6px solid #ff5964",
|
|
320
|
+
borderRight: "6px solid #ff8842",
|
|
321
|
+
borderRadius: "0 0 18px 18px",
|
|
322
|
+
boxSizing: "border-box",
|
|
323
|
+
}
|
|
324
|
+
: {})) },
|
|
322
325
|
React.createElement(ExpandedDropdown, { serviceItem: serviceItem, isPeru: isPeru, translation: translation, getAnimationIcon: getAnimationIcon, isChangeTicket: serviceItem.is_change_ticket === true })))),
|
|
323
326
|
children,
|
|
324
327
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) && (React.createElement("div", { className: "text-white p-[10px_15px] text-left w-full flex items-center absolute -bottom-[36px] pt-[50px] -z-10 rounded-b-[14px] text-[14px]", style: {
|
|
325
|
-
|
|
328
|
+
background: offerGradient,
|
|
326
329
|
opacity: isSoldOut ? 0.5 : 1,
|
|
327
330
|
} },
|
|
328
331
|
React.createElement("div", { className: "flex justify-between items-center w-full" },
|
|
@@ -341,8 +344,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
341
344
|
// minWidth: "70px",
|
|
342
345
|
} })))),
|
|
343
346
|
React.createElement("div", { className: "flex items-center" },
|
|
344
|
-
|
|
345
|
-
"\u00A0",
|
|
347
|
+
React.createElement(LottiePlayer, { animationData: getAnimationIcon("dotAnimation"), width: "12px", height: "12px" }),
|
|
346
348
|
React.createElement("span", { className: "ml-[6px]" },
|
|
347
349
|
React.createElement("span", { className: "bold-text", ref: startViewerCount, style: { fontVariantNumeric: "tabular-nums" } }),
|
|
348
350
|
" ",
|
|
@@ -351,41 +353,34 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
351
353
|
React.createElement("span", null,
|
|
352
354
|
" ",
|
|
353
355
|
(viewersConfig === null || viewersConfig === void 0 ? void 0 : viewersConfig.label) || " están viendo este viaje")))))),
|
|
354
|
-
React.createElement("div", { className: "absolute -top-[11px] left-0 w-full flex items-center justify-end gap-[12px] pr-[
|
|
356
|
+
React.createElement("div", { className: "absolute -top-[11px] left-0 w-full flex items-center justify-end gap-[12px] pr-[22px] z-10 " },
|
|
355
357
|
showTopLabel && (React.createElement("div", { className: `flex items-center gap-[10px] py-[4px] px-[14px] rounded-[38px] text-[12.5px] z-10`, style: {
|
|
356
|
-
backgroundColor:
|
|
357
|
-
|
|
358
|
-
|
|
358
|
+
backgroundColor: "#fff",
|
|
359
|
+
border: `1px solid ${colors.topLabelColor}`,
|
|
360
|
+
color: colors.topLabelColor,
|
|
359
361
|
} },
|
|
360
|
-
React.createElement("div", { className: isSoldOut ? "grayscale" : "" },
|
|
361
|
-
React.createElement(LottiePlayer
|
|
362
|
-
// animationData={serviceItem.icons.priorityStageAnim}
|
|
363
|
-
, {
|
|
364
|
-
// animationData={serviceItem.icons.priorityStageAnim}
|
|
365
|
-
animationData: getAnimationIcon("priorityStageAnim"), width: "14px", height: "14px" })),
|
|
362
|
+
React.createElement("div", { className: isSoldOut ? "grayscale" : "" }, renderIcon("specialDeparture", "12px")),
|
|
366
363
|
React.createElement("div", { className: isSoldOut ? "text-white" : `text-[${colors.topLabelColor}]` }, showTopLabel))),
|
|
367
|
-
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_transpordo) && (React.createElement("div", { className: `flex items-center gap-[10px] py-[4px]
|
|
368
|
-
backgroundColor:
|
|
364
|
+
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_transpordo) && (React.createElement("div", { className: `flex items-center gap-[10px] py-[4px] px-[14px] rounded-[38px] text-[12.5px] z-20`, style: {
|
|
365
|
+
backgroundColor: "#fff",
|
|
366
|
+
border: `1px solid ${colors.topLabelColor}`,
|
|
367
|
+
color: colors.topLabelColor,
|
|
369
368
|
} },
|
|
370
369
|
renderIcon("connectingServiceIcon", "12px"),
|
|
371
370
|
React.createElement("div", null, "Conexión"))),
|
|
372
|
-
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) && (React.createElement("div", { className: `flex items-center gap-[10px] py-[4px]
|
|
373
|
-
backgroundColor:
|
|
371
|
+
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) && (React.createElement("div", { className: `flex items-center gap-[10px] py-[4px] px-[14px] rounded-[38px] text-[12.5px] z-20 `, style: {
|
|
372
|
+
backgroundColor: "#fff",
|
|
373
|
+
border: `1px solid ${colors.topLabelColor}`,
|
|
374
|
+
color: colors.topLabelColor,
|
|
374
375
|
} },
|
|
375
|
-
|
|
376
|
-
// animationData={serviceItem.icons.directoAnim}
|
|
377
|
-
, {
|
|
378
|
-
// animationData={serviceItem.icons.directoAnim}
|
|
379
|
-
animationData: getAnimationIcon("directoAnim"), width: "14px", height: "14px" }),
|
|
376
|
+
renderIcon("directo", "12px"),
|
|
380
377
|
React.createElement("div", null, translation === null || translation === void 0 ? void 0 : translation.directService))),
|
|
381
|
-
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.train_type_label) === "Tren Express (Nuevo)" && (React.createElement("div", { className: `flex items-center gap-[10px] py-[4px]
|
|
382
|
-
backgroundColor:
|
|
378
|
+
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.train_type_label) === "Tren Express (Nuevo)" && (React.createElement("div", { className: `flex items-center gap-[10px] py-[4px] px-[14px] rounded-[38px] text-[12.5px] z-20 `, style: {
|
|
379
|
+
backgroundColor: "#fff",
|
|
380
|
+
border: `1px solid ${colors.topLabelColor}`,
|
|
381
|
+
color: colors.topLabelColor,
|
|
383
382
|
} },
|
|
384
|
-
|
|
385
|
-
// animationData={serviceItem.icons.directoAnim}
|
|
386
|
-
, {
|
|
387
|
-
// animationData={serviceItem.icons.directoAnim}
|
|
388
|
-
animationData: getAnimationIcon("directoAnim"), width: "14px", height: "14px" }),
|
|
383
|
+
renderIcon("directo", "12px"),
|
|
389
384
|
React.createElement("div", null, "Tren Express"))))))));
|
|
390
385
|
}
|
|
391
386
|
export default ServiceItemPB;
|
|
@@ -22,6 +22,17 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
22
22
|
const isPetSeat = (Object.keys(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.pet_seat_info) || []).length > 0;
|
|
23
23
|
let isSoldOut = serviceItem.available_seats <= 0;
|
|
24
24
|
const isLongOfferText = (((_a = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) === null || _a === void 0 ? void 0 : _a.length) || 0) > 35;
|
|
25
|
+
const hasOfferText = Boolean(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text);
|
|
26
|
+
const offerGradient = "linear-gradient(90deg, #ff5964 0%, #ff8842 100%)";
|
|
27
|
+
const serviceCardStyle = hasOfferText
|
|
28
|
+
? {
|
|
29
|
+
borderColor: "transparent",
|
|
30
|
+
borderStyle: "solid",
|
|
31
|
+
borderWidth: "6px 6px 0 6px",
|
|
32
|
+
borderRadius: "18px",
|
|
33
|
+
background: `linear-gradient(#fff, #fff) padding-box, ${offerGradient} border-box`,
|
|
34
|
+
}
|
|
35
|
+
: {};
|
|
25
36
|
const startViewerCount = (node) => {
|
|
26
37
|
if (!node || !viewersConfig)
|
|
27
38
|
return;
|
|
@@ -110,23 +121,15 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
110
121
|
if (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_transpordo) {
|
|
111
122
|
isConexion = true;
|
|
112
123
|
}
|
|
113
|
-
return (React.createElement("div", {
|
|
114
|
-
// className={`relative ${
|
|
115
|
-
// serviceItem.offer_text ? "mb-[55px]" : "mb-[14px]"
|
|
116
|
-
// }
|
|
117
|
-
className: `relative ${!serviceItem.offer_text ? "mb-[14px]" : showTopLabel || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ? "mb-[20px]" : "mb-[12px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
|
|
124
|
+
return (React.createElement("div", { className: `relative ${!serviceItem.offer_text ? "mb-[14px]" : showTopLabel || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ? "mb-[20px]" : "mb-[12px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
|
|
118
125
|
isConexion ||
|
|
119
126
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.train_type_label) === "Tren Express (Nuevo)" ||
|
|
120
127
|
showTopLabel
|
|
121
128
|
? "mt-[20px]"
|
|
122
129
|
: "mt-[10px]"} `, style: { backgroundColor: "#fff", zIndex: 1 } },
|
|
123
|
-
React.createElement("div", { className:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
// borderRadius: showTopLabel ? "10px 0 10px 10px" : "10px",
|
|
127
|
-
borderRadius: "12px",
|
|
128
|
-
border: "1px solid #ccc",
|
|
129
|
-
} },
|
|
130
|
+
React.createElement("div", { className: `bg-white z-1 ${hasOfferText
|
|
131
|
+
? "rounded-[18px]"
|
|
132
|
+
: "rounded-[10px] border border-[#ccc]"}`, style: serviceCardStyle },
|
|
130
133
|
React.createElement("div", { style: { padding: "12px 12px 8px 12px" } },
|
|
131
134
|
React.createElement("div", { className: "flex justify-between items-center mb-[10px]" },
|
|
132
135
|
React.createElement("div", { className: "flex items-center justify-between" },
|
|
@@ -154,58 +157,64 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
154
157
|
onDropdownToggle: () => {
|
|
155
158
|
setIsExpanded(isItemExpanded ? null : serviceItem.id);
|
|
156
159
|
}, isPeru: isPeru })),
|
|
157
|
-
React.createElement("div", { className: "absolute -top-[
|
|
160
|
+
React.createElement("div", { className: "absolute -top-[9px] left-0 w-full flex items-center justify-end gap-[12px] pr-[20px] z-10 " },
|
|
158
161
|
showTopLabel && (React.createElement("div", { className: `flex items-center gap-[2px] py-[4px] px-[10px] rounded-[38px] min-[420]:text-[12px] text-[10px] z-20 `, style: {
|
|
159
|
-
backgroundColor:
|
|
162
|
+
backgroundColor: "#fff",
|
|
163
|
+
border: `1px solid ${colors.topLabelColor}`,
|
|
164
|
+
color: colors.topLabelColor,
|
|
160
165
|
} },
|
|
161
|
-
React.createElement("div", { className: isSoldOut ? "grayscale" : "" },
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
React.createElement("div", { className: isSoldOut ? "grayscale" : "" }, renderIcon("specialDeparture", "12px")),
|
|
167
|
+
React.createElement("div", { style: {
|
|
168
|
+
color: colors.topLabelColor,
|
|
169
|
+
} }, showTopLabel))),
|
|
170
|
+
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) && (React.createElement("div", { className: `flex items-center gap-[2px] py-[5px] px-[10px] rounded-[38px] min-[420]:text-[12px] text-[10px] z-20 `, style: {
|
|
171
|
+
backgroundColor: "#fff",
|
|
172
|
+
border: `1px solid ${colors.topLabelColor}`,
|
|
173
|
+
color: colors.topLabelColor,
|
|
167
174
|
} },
|
|
168
|
-
|
|
175
|
+
renderIcon("directo", "12px"),
|
|
169
176
|
React.createElement("div", { className: "ml-[5px]" }, "Directo"))),
|
|
170
|
-
isConexion && (React.createElement("div", { className: `flex items-center gap-[2px] py-[5px] text-white px-[10px] rounded-[38px] min-[420]:text-[12px] text-[11px] z-20
|
|
171
|
-
backgroundColor:
|
|
177
|
+
isConexion && (React.createElement("div", { className: `flex items-center gap-[2px] py-[5px] text-white px-[10px] rounded-[38px] min-[420]:text-[12px] text-[11px] z-20 `, style: {
|
|
178
|
+
backgroundColor: "#fff",
|
|
179
|
+
border: `1px solid ${colors.topLabelColor}`,
|
|
180
|
+
color: colors.topLabelColor,
|
|
172
181
|
} },
|
|
173
182
|
renderIcon("airportIcon", "14px"),
|
|
174
183
|
React.createElement("div", null, "Conexi\u00F3n"))),
|
|
175
184
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.train_type_label) === "Tren Express (Nuevo)" && (React.createElement("div", { className: `flex items-center gap-[2px] py-[5px] text-white px-[10px] rounded-[38px] min-[420]:text-[12px] text-[10px] z-20 `, style: {
|
|
176
|
-
backgroundColor:
|
|
185
|
+
backgroundColor: "#fff",
|
|
186
|
+
border: `1px solid ${colors.topLabelColor}`,
|
|
187
|
+
color: colors.topLabelColor,
|
|
177
188
|
} },
|
|
178
|
-
|
|
189
|
+
renderIcon("directo", "12px"),
|
|
179
190
|
React.createElement("div", null, "Tren Express"))))),
|
|
180
191
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) && (React.createElement("div", { className: "px-[12px] pt-[22px] pb-[8px] relative -z-9 -mt-[15px]", style: {
|
|
181
|
-
|
|
192
|
+
background: isSoldOut ? "#ccc" : offerGradient,
|
|
182
193
|
opacity: isSoldOut ? 0.5 : 1,
|
|
183
194
|
borderRadius: "0 0 14px 14px",
|
|
184
195
|
zIndex: -1,
|
|
185
196
|
} },
|
|
186
197
|
React.createElement("div", { className: "flex flex-col gap-[8px] text-[12px] min-[420px]:text-[12px] text-[#464647]", style: { lineHeight: 1.6 } },
|
|
187
|
-
React.createElement("div", { className: "flex
|
|
198
|
+
React.createElement("div", { className: "flex justify-between items-center" },
|
|
188
199
|
React.createElement("div", { className: `flex ${isLongOfferText ? "items-start" : "items-center"}` },
|
|
189
200
|
React.createElement("div", { className: isLongOfferText ? "mt-[2px]" : "" },
|
|
190
|
-
React.createElement(LottiePlayer, { animationData: serviceItem.icons.bombAnim, width: "
|
|
191
|
-
React.createElement("div", { className: `ml-[
|
|
201
|
+
React.createElement(LottiePlayer, { animationData: serviceItem.icons.bombAnim, width: "12px", height: "12px" })),
|
|
202
|
+
React.createElement("div", { className: `ml-[4px] flex-1 outline-none ${isLongOfferText ? "mt-[2px]" : ""}`, style: {
|
|
192
203
|
color: "#fff",
|
|
193
204
|
lineHeight: 1.4,
|
|
194
205
|
} },
|
|
195
|
-
React.createElement("span", { className: "min-[380px]:text-[12px] bold-text" }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) || ""),
|
|
196
|
-
" ",
|
|
197
|
-
React.createElement("span", { className: "min-[380px]:text-[12px]" }, "|"),
|
|
198
|
-
" ",
|
|
199
206
|
React.createElement("span", { className: "whitespace-nowrap min-[380px]:text-[12px]" },
|
|
200
207
|
"Termina en\u00A0",
|
|
201
208
|
React.createElement("span", { className: "bold-text", ref: startCountdown, style: {
|
|
202
209
|
fontVariantNumeric: "tabular-nums",
|
|
203
210
|
display: "inline-block",
|
|
204
211
|
} })))),
|
|
205
|
-
React.createElement("div", { className: "flex items-
|
|
212
|
+
React.createElement("div", { className: "flex items-center", style: {
|
|
206
213
|
color: "#fff",
|
|
207
214
|
} },
|
|
208
|
-
React.createElement("div",
|
|
215
|
+
React.createElement("div", { className: "mr-[4px]" },
|
|
216
|
+
" ",
|
|
217
|
+
React.createElement(LottiePlayer, { animationData: serviceItem.icons.dotAnimation, width: "12px", height: "12px" })),
|
|
209
218
|
React.createElement("span", { className: "flex-1", style: { lineHeight: 1.4 } },
|
|
210
219
|
React.createElement("span", { className: "bold-text", ref: startViewerCount, style: { fontVariantNumeric: "tabular-nums" } }),
|
|
211
220
|
" ",
|
|
@@ -213,7 +222,7 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
213
222
|
" ",
|
|
214
223
|
React.createElement("span", null,
|
|
215
224
|
" ",
|
|
216
|
-
|
|
225
|
+
"viendo"))))))),
|
|
217
226
|
React.createElement("div", { style: {
|
|
218
227
|
display: "grid",
|
|
219
228
|
gridTemplateRows: isItemExpanded ? "1fr" : "0fr",
|
|
@@ -114,6 +114,9 @@ export interface MobileServiceItemProps {
|
|
|
114
114
|
whiteBoardingIcon?: string;
|
|
115
115
|
downArrow?: string;
|
|
116
116
|
personIcon?: string;
|
|
117
|
+
specialDeparture?: string;
|
|
118
|
+
fireIcon?: string;
|
|
119
|
+
directoIcon?: string;
|
|
117
120
|
[key: string]: string | Record<string, string | undefined> | undefined;
|
|
118
121
|
};
|
|
119
122
|
useLottieFor?: string[];
|