@opentripplanner/trip-details 4.0.1-alpha.1 → 4.0.2-alpha.1
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/esm/index.js +28 -16
- package/esm/index.js.map +1 -1
- package/i18n/es.yml +7 -0
- package/i18n/fr.yml +1 -1
- package/lib/index.js +29 -16
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.tsx +39 -24
- package/lib/fare-table.d.ts +0 -5
- package/lib/fare-table.d.ts.map +0 -1
- package/lib/index.d.ts +0 -11
- package/lib/index.d.ts.map +0 -1
- package/lib/styled.d.ts +0 -19
- package/lib/styled.d.ts.map +0 -1
- package/lib/trip-detail.d.ts +0 -9
- package/lib/trip-detail.d.ts.map +0 -1
- package/lib/types.d.ts +0 -98
- package/lib/types.d.ts.map +0 -1
- package/lib/utils.d.ts +0 -15
- package/lib/utils.d.ts.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
package/esm/index.js
CHANGED
|
@@ -113,8 +113,8 @@ export function TripDetails(_ref3) {
|
|
|
113
113
|
var transitFares = itinerary === null || itinerary === void 0 ? void 0 : (_itinerary$fare = itinerary.fare) === null || _itinerary$fare === void 0 ? void 0 : _itinerary$fare.fare;
|
|
114
114
|
var companies = "";
|
|
115
115
|
itinerary.legs.forEach(function (leg) {
|
|
116
|
-
if (leg.
|
|
117
|
-
companies = leg.
|
|
116
|
+
if (leg.rideHailingEstimate) {
|
|
117
|
+
companies = leg.rideHailingEstimate.provider.id;
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
var fare;
|
|
@@ -161,23 +161,24 @@ export function TripDetails(_ref3) {
|
|
|
161
161
|
key: fareKey,
|
|
162
162
|
transitFares: transitFares
|
|
163
163
|
});
|
|
164
|
-
})), minTNCFare !== 0 && /*#__PURE__*/React.createElement(S.TNCFare, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
165
|
-
defaultMessage: defaultMessages["otpUi.TripDetails.tncFare"],
|
|
166
|
-
description: "Text showing the price paid to transportation network companies.",
|
|
167
|
-
id: "otpUi.TripDetails.tncFare",
|
|
168
|
-
values: {
|
|
169
|
-
companies:
|
|
170
|
-
/*#__PURE__*/
|
|
171
|
-
// S.TNCFareCompanies capitalizes the TNC company ID (e.g. "COMPANY")
|
|
172
|
-
// after it is converted to lowercase, so it renders as "Company".
|
|
173
|
-
React.createElement(S.TNCFareCompanies, null, companies.toLowerCase()),
|
|
174
|
-
maxTNCFare: renderFare(currencyCode, maxTNCFare),
|
|
175
|
-
minTNCFare: renderFare(currencyCode, minTNCFare),
|
|
176
|
-
strong: boldText
|
|
177
|
-
}
|
|
178
164
|
})));
|
|
179
165
|
}
|
|
180
166
|
|
|
167
|
+
var tncFare = minTNCFare !== 0 && /*#__PURE__*/React.createElement(S.Fare, null, /*#__PURE__*/React.createElement(S.TNCFare, null, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
168
|
+
defaultMessage: defaultMessages["otpUi.TripDetails.tncFare"],
|
|
169
|
+
description: "Text showing the price paid to transportation network companies.",
|
|
170
|
+
id: "otpUi.TripDetails.tncFare",
|
|
171
|
+
values: {
|
|
172
|
+
companies:
|
|
173
|
+
/*#__PURE__*/
|
|
174
|
+
// S.TNCFareCompanies capitalizes the TNC company ID (e.g. "COMPANY")
|
|
175
|
+
// after it is converted to lowercase, so it renders as "Company".
|
|
176
|
+
React.createElement(S.TNCFareCompanies, null, companies.toLowerCase()),
|
|
177
|
+
maxTNCFare: renderFare(currencyCode, maxTNCFare),
|
|
178
|
+
minTNCFare: renderFare(currencyCode, minTNCFare),
|
|
179
|
+
strong: boldText
|
|
180
|
+
}
|
|
181
|
+
})));
|
|
181
182
|
var departureDate = new Date(itinerary.startTime); // Compute total time spent active.
|
|
182
183
|
// TODO: separate into two reducers
|
|
183
184
|
|
|
@@ -243,6 +244,17 @@ export function TripDetails(_ref3) {
|
|
|
243
244
|
size: 17
|
|
244
245
|
}),
|
|
245
246
|
summary: fare
|
|
247
|
+
}), tncFare && /*#__PURE__*/React.createElement(TripDetail // Any custom description for the transit fare needs to be handled by the slot.
|
|
248
|
+
, {
|
|
249
|
+
description: FareDetails && /*#__PURE__*/React.createElement(FareDetails, {
|
|
250
|
+
maxTNCFare: maxTNCFare,
|
|
251
|
+
minTNCFare: minTNCFare,
|
|
252
|
+
transitFares: transitFares
|
|
253
|
+
}),
|
|
254
|
+
icon: /*#__PURE__*/React.createElement(MoneyBillAlt, {
|
|
255
|
+
size: 17
|
|
256
|
+
}),
|
|
257
|
+
summary: tncFare
|
|
246
258
|
}), displayTimeActive && minutesActive > 0 && /*#__PURE__*/React.createElement(TripDetail, {
|
|
247
259
|
icon: /*#__PURE__*/React.createElement(Heartbeat, {
|
|
248
260
|
size: 17
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.tsx"],"names":["flatten","coreUtils","React","FormattedMessage","FormattedNumber","CalendarAlt","Heartbeat","MoneyBillAlt","Leaf","Route","S","TripDetail","FareLegTable","boldText","renderFare","defaultEnglishMessages","defaultMessages","CO2DescriptionLink","contents","DefaultTimeActiveDetails","bikeMinutes","walkMinutes","strong","TransitFare","fareKey","fareNameFallback","fareKeyNameMap","transitFares","currentFare","cents","name","value","currency","currencyCode","TripDetails","className","co2Config","defaultFareKey","DepartureDetails","displayTimeActive","FareDetails","fareDetailsLayout","itinerary","TimeActiveDetails","fareResult","calculateTncFares","maxTNCFare","minTNCFare","fare","companies","legs","forEach","leg","tncData","company","fareKeys","Object","keys","sort","length","defaultFare","TransitFareWrapper","TransitFareSingle","display","map","toLowerCase","departureDate","Date","startTime","walkDurationSeconds","bikeDurationSeconds","mode","startsWith","duration","Math","round","minutesActive","co2","enabled","calculateEmissions","carbonIntensity","units","containsFlex","some","isFlex","pickupBookingInfo","filter","info","dropOffBookingInfo","totalDistance","reduce","total","distance","minutes","link","extraMessage","Set","message","join","Styled"],"mappings":";AA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N+E,QAAAA,YAAY,EAAE,mBACT,IAAIC,GAAJ,8BACEX,iBAAiB,CAACrB,GAAlB,CAAsB,UAAAuB,IAAI;AAAA,iBAAIA,IAAI,CAACU,OAAT;AAAA,SAA1B,CADF,sBAEET,kBAAkB,CAACxB,GAAnB,CAAuB,UAAAuB,IAAI;AAAA,iBAAIA,IAAI,CAACU,OAAT;AAAA,SAA3B,CAFF,GADS,EAKZC,IALY,CAKP,GALO;AADR;AANV,MADF,CAFJ;AAoBE,IAAA,IAAI,eAAE,oBAAC,KAAD;AAAO,MAAA,IAAI,EAAE;AAAb;AApBR,IAzGJ,CATF,CADF;AA6ID;AAED,eAAehE,WAAf,C,CAEA;;AACA,SAASxB,CAAC,IAAIyF,MAAd,EAAsBvF,YAAtB","sourcesContent":["import flatten from \"flat\";\nimport coreUtils from \"@opentripplanner/core-utils\";\nimport React, { ReactElement } from \"react\";\nimport { FormattedMessage, FormattedNumber } from \"react-intl\";\nimport { CalendarAlt } from \"@styled-icons/fa-solid/CalendarAlt\";\nimport { Heartbeat } from \"@styled-icons/fa-solid/Heartbeat\";\nimport { MoneyBillAlt } from \"@styled-icons/fa-solid/MoneyBillAlt\";\nimport { Leaf } from \"@styled-icons/fa-solid/Leaf\";\nimport { Route } from \"@styled-icons/fa-solid/Route\";\n\nimport * as S from \"./styled\";\nimport TripDetail from \"./trip-detail\";\nimport FareLegTable from \"./fare-table\";\nimport { boldText, renderFare } from \"./utils\";\n\nimport {\n TimeActiveDetailsProps,\n TransitFareProps,\n TripDetailsProps\n} from \"./types\";\n\n// Load the default messages.\nimport defaultEnglishMessages from \"../i18n/en-US.yml\";\n\n// HACK: We should flatten the messages loaded above because\n// the YAML loaders behave differently between webpack and our version of jest:\n// - the yaml loader for webpack returns a nested object,\n// - the yaml loader for jest returns messages with flattened ids.\nconst defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);\n\nfunction CO2DescriptionLink(contents: ReactElement): ReactElement {\n return (\n <a\n href=\"https://www.itf-oecd.org/sites/default/files/life-cycle-assessment-calculations-2020.xlsx\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n {contents}\n </a>\n );\n}\n/**\n * Default rendering if no component is provided for the TimeActiveDetails\n * slot in the TripDetails component.\n */\nfunction DefaultTimeActiveDetails({\n bikeMinutes,\n walkMinutes\n}: TimeActiveDetailsProps): ReactElement {\n return (\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.timeActiveDescription\"]\n }\n description=\"Text describing the walking and biking durations of a trip.\"\n id=\"otpUi.TripDetails.timeActiveDescription\"\n values={{\n bikeMinutes,\n strong: boldText,\n walkMinutes\n }}\n />\n );\n}\n\n/**\n * Helper component that renders a transit fare entry.\n */\nconst TransitFare = ({\n fareKey,\n fareNameFallback,\n fareKeyNameMap,\n transitFares\n}: TransitFareProps): ReactElement => {\n const currentFare = transitFares[fareKey];\n\n // TODO: Is this needed? Every implementation of TransitFare does a check for currentFare's existence, although not the cents field\n if (typeof currentFare?.cents !== \"number\") {\n return (\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.transitFareUnknown\"]}\n description=\"Text showing that no fare information is present.\"\n id=\"otpUi.TripDetails.transitFareUnknown\"\n />\n );\n }\n\n return (\n <span>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.transitFareEntry\"]}\n description=\"Text showing the price of tickets on public transportation.\"\n id=\"otpUi.TripDetails.transitFareEntry\"\n values={{\n name: fareKeyNameMap[fareKey] || fareNameFallback || fareKey,\n strong: boldText,\n value: renderFare(\n currentFare?.currency?.currencyCode || \"USD\",\n currentFare.cents / 100\n )\n }}\n />\n </span>\n );\n};\n\n/**\n * Renders trip details such as departure instructions, fare amount, and minutes active.\n */\nexport function TripDetails({\n className = \"\",\n co2Config,\n defaultFareKey = \"regular\",\n DepartureDetails = null,\n displayTimeActive = true,\n FareDetails = null,\n fareDetailsLayout,\n fareKeyNameMap = {},\n itinerary,\n TimeActiveDetails = DefaultTimeActiveDetails\n}: TripDetailsProps): ReactElement {\n // process the transit fare\n const fareResult = coreUtils.itinerary.calculateTncFares(itinerary);\n const { currencyCode, maxTNCFare, minTNCFare } = fareResult;\n const transitFares = itinerary?.fare?.fare;\n\n let companies = \"\";\n itinerary.legs.forEach(leg => {\n if (leg.tncData) {\n companies = leg.tncData.company;\n }\n });\n let fare;\n\n const fareKeys = transitFares && Object.keys(transitFares).sort();\n\n if (transitFares && fareKeys.length > 0) {\n let defaultFare = defaultFareKey;\n if (!transitFares[defaultFareKey]) {\n defaultFare = \"regular\";\n }\n\n // Depending on if there are additional fares to display either render a <span> or a <details>\n const TransitFareWrapper =\n transitFares && fareKeys.length > 1 ? S.TransitFare : S.TransitFareSingle;\n\n fare = transitFares?.[defaultFare] && (\n <S.Fare>\n <TransitFareWrapper>\n <summary style={{ display: fareKeys.length > 1 ? \"list-item\" : \"\" }}>\n <TransitFare\n fareNameFallback={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.transitFare\"]\n }\n description=\"Text showing the price of tickets on public transportation.\"\n id=\"otpUi.TripDetails.transitFare\"\n />\n }\n fareKey={defaultFare}\n fareKeyNameMap={fareKeyNameMap}\n transitFares={transitFares}\n />\n </summary>\n {fareDetailsLayout ? (\n // Show full ƒare details by leg\n <FareLegTable layout={fareDetailsLayout} itinerary={itinerary} />\n ) : (\n // Just show the fares for each payment type\n fareKeys.map(fareKey => {\n // Don't show the default fare twice!\n if (fareKey === defaultFare) {\n return null;\n }\n return (\n <TransitFare\n fareKey={fareKey}\n fareKeyNameMap={fareKeyNameMap}\n key={fareKey}\n transitFares={transitFares}\n />\n );\n })\n )}\n </TransitFareWrapper>\n {minTNCFare !== 0 && (\n <S.TNCFare>\n <br />\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.tncFare\"]}\n description=\"Text showing the price paid to transportation network companies.\"\n id=\"otpUi.TripDetails.tncFare\"\n values={{\n companies: (\n // S.TNCFareCompanies capitalizes the TNC company ID (e.g. \"COMPANY\")\n // after it is converted to lowercase, so it renders as \"Company\".\n <S.TNCFareCompanies>\n {companies.toLowerCase()}\n </S.TNCFareCompanies>\n ),\n maxTNCFare: renderFare(currencyCode, maxTNCFare),\n minTNCFare: renderFare(currencyCode, minTNCFare),\n strong: boldText\n }}\n />\n </S.TNCFare>\n )}\n </S.Fare>\n );\n }\n\n const departureDate = new Date(itinerary.startTime);\n\n // Compute total time spent active.\n\n // TODO: separate into two reducers\n let walkDurationSeconds = 0;\n let bikeDurationSeconds = 0;\n itinerary.legs.forEach(leg => {\n if (leg.mode.startsWith(\"WALK\")) walkDurationSeconds += leg.duration;\n if (leg.mode.startsWith(\"BICYCLE\")) bikeDurationSeconds += leg.duration;\n });\n const bikeMinutes = Math.round(bikeDurationSeconds / 60);\n const walkMinutes = Math.round(walkDurationSeconds / 60);\n const minutesActive = bikeMinutes + walkMinutes;\n\n // Calculate CO₂ if it's not provided by the itinerary\n const co2 =\n itinerary.co2 ||\n (co2Config?.enabled &&\n coreUtils.itinerary.calculateEmissions(\n itinerary,\n co2Config?.carbonIntensity,\n co2Config?.units\n ));\n\n // Parse flex info and generate appropriate strings\n const containsFlex = itinerary.legs.some(coreUtils.itinerary.isFlex);\n const pickupBookingInfo = itinerary.legs\n .map(leg => leg.pickupBookingInfo)\n .filter(info => !!info);\n const dropOffBookingInfo = itinerary.legs\n .map(leg => leg.dropOffBookingInfo)\n .filter(info => !!info);\n const totalDistance = itinerary.legs.reduce(\n (total, leg) => total + leg.distance,\n 0\n );\n\n return (\n <S.TripDetails className={className}>\n {/* this can be presentation as S.TripDetails is already labeled by this */}\n <S.TripDetailsHeader id=\"trip-details-header\">\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.title\"]}\n description=\"Title (heading) text of the component.\"\n id=\"otpUi.TripDetails.title\"\n />\n </S.TripDetailsHeader>\n <S.TripDetailsBody>\n <TripDetail\n // Any custom description for the Departure message needs to be handled by the slot.\n description={\n DepartureDetails && (\n <DepartureDetails departureDate={departureDate} />\n )\n }\n icon={<CalendarAlt size={17} />}\n summary={\n <S.Timing>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.departure\"]}\n description=\"Text showing the departure date/time for a trip.\"\n id=\"otpUi.TripDetails.departure\"\n values={{\n departureDate,\n strong: boldText\n }}\n />\n </S.Timing>\n }\n />\n {fare && (\n <TripDetail\n // Any custom description for the transit fare needs to be handled by the slot.\n description={\n FareDetails && (\n <FareDetails\n maxTNCFare={maxTNCFare}\n minTNCFare={minTNCFare}\n transitFares={transitFares}\n />\n )\n }\n icon={<MoneyBillAlt size={17} />}\n summary={fare}\n />\n )}\n {displayTimeActive && minutesActive > 0 && (\n <TripDetail\n icon={<Heartbeat size={17} />}\n summary={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.minutesActive\"]\n }\n description=\"Text showing the number of minutes spent walking or biking throughout trip.\"\n id=\"otpUi.TripDetails.minutesActive\"\n values={{\n minutes: minutesActive,\n strong: boldText\n }}\n />\n }\n description={\n TimeActiveDetails && (\n <TimeActiveDetails\n bikeMinutes={bikeMinutes}\n walkMinutes={walkMinutes}\n />\n )\n }\n />\n )}\n {co2 > 0 && co2Config?.enabled && (\n <TripDetail\n icon={<Leaf size={17} />}\n summary={\n <S.CO2Summary>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.co2\"]}\n description=\"Text showing the quantity of CO₂ emitted by this trip.\"\n id=\"otpUi.TripDetails.co2\"\n values={{\n co2: (\n <FormattedNumber\n value={Math.round(co2)}\n // eslint-disable-next-line react/style-prop-object\n style=\"unit\"\n unit={co2Config?.units || \"gram\"}\n unitDisplay=\"narrow\"\n />\n ),\n strong: boldText\n }}\n />\n </S.CO2Summary>\n }\n description={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.co2description\"]\n }\n description=\"Text explaining how the CO₂ emissions are calculated.\"\n id=\"otpUi.TripDetails.co2description\"\n values={{\n link: CO2DescriptionLink,\n totalDistance\n }}\n />\n }\n />\n )}\n {containsFlex && (\n <TripDetail\n summary={\n <S.FlexSummary>\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.tripIncludesFlex\"]\n }\n description=\"Text stating that portions of the trip include a flex (on-demand) transit service.\"\n id=\"otpUi.TripDetails.tripIncludesFlex\"\n values={{\n extraMessage: [\n ...new Set([\n ...pickupBookingInfo.map(info => info.message),\n ...dropOffBookingInfo.map(info => info.message)\n ])\n ].join(\" \")\n }}\n />\n </S.FlexSummary>\n }\n icon={<Route size={17} />}\n />\n )}\n </S.TripDetailsBody>\n </S.TripDetails>\n );\n}\n\nexport default TripDetails;\n\n// Rename styled components for export.\nexport { S as Styled, FareLegTable };\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../src/index.tsx"],"names":["flatten","coreUtils","React","FormattedMessage","FormattedNumber","CalendarAlt","Heartbeat","MoneyBillAlt","Leaf","Route","S","TripDetail","FareLegTable","boldText","renderFare","defaultEnglishMessages","defaultMessages","CO2DescriptionLink","contents","DefaultTimeActiveDetails","bikeMinutes","walkMinutes","strong","TransitFare","fareKey","fareNameFallback","fareKeyNameMap","transitFares","currentFare","cents","name","value","currency","currencyCode","TripDetails","className","co2Config","defaultFareKey","DepartureDetails","displayTimeActive","FareDetails","fareDetailsLayout","itinerary","TimeActiveDetails","fareResult","calculateTncFares","maxTNCFare","minTNCFare","fare","companies","legs","forEach","leg","rideHailingEstimate","provider","id","fareKeys","Object","keys","sort","length","defaultFare","TransitFareWrapper","TransitFareSingle","display","map","tncFare","toLowerCase","departureDate","Date","startTime","walkDurationSeconds","bikeDurationSeconds","mode","startsWith","duration","Math","round","minutesActive","co2","enabled","calculateEmissions","carbonIntensity","units","containsFlex","some","isFlex","pickupBookingInfo","filter","info","dropOffBookingInfo","totalDistance","reduce","total","distance","minutes","link","extraMessage","Set","message","join","Styled"],"mappings":";AAAA,OAAOA,OAAP,MAAoB,MAApB;AACA,OAAOC,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EAAE;AACNgF,QAAAA,IAAI,EAAE/E,kBADA;AAEN0E,QAAAA,aAAa,EAAbA;AAFM;AANV;AAxBJ,IAlFJ,EAwHGP,YAAY,iBACX,oBAAC,UAAD;AACE,IAAA,OAAO,eACL,oBAAC,CAAD,CAAG,WAAH,qBACE,oBAAC,gBAAD;AACE,MAAA,cAAc,EACZpE,eAAe,CAAC,oCAAD,CAFnB;AAIE,MAAA,WAAW,EAAC,oFAJd;AAKE,MAAA,EAAE,EAAC,oCALL;AAME,MAAA,MAAM,EAAE;AACNiF,QAAAA,YAAY,EAAE,mBACT,IAAIC,GAAJ,8BACEX,iBAAiB,CAACtB,GAAlB,CAAsB,UAAAwB,IAAI;AAAA,iBAAIA,IAAI,CAACU,OAAT;AAAA,SAA1B,CADF,sBAEET,kBAAkB,CAACzB,GAAnB,CAAuB,UAAAwB,IAAI;AAAA,iBAAIA,IAAI,CAACU,OAAT;AAAA,SAA3B,CAFF,GADS,EAKZC,IALY,CAKP,GALO;AADR;AANV,MADF,CAFJ;AAoBE,IAAA,IAAI,eAAE,oBAAC,KAAD;AAAO,MAAA,IAAI,EAAE;AAAb;AApBR,IAzHJ,CATF,CADF;AA6JD;AAED,eAAelE,WAAf,C,CAEA;;AACA,SAASxB,CAAC,IAAI2F,MAAd,EAAsBzF,YAAtB","sourcesContent":["import flatten from \"flat\";\nimport coreUtils from \"@opentripplanner/core-utils\";\nimport React, { ReactElement } from \"react\";\nimport { FormattedMessage, FormattedNumber } from \"react-intl\";\nimport { CalendarAlt } from \"@styled-icons/fa-solid/CalendarAlt\";\nimport { Heartbeat } from \"@styled-icons/fa-solid/Heartbeat\";\nimport { MoneyBillAlt } from \"@styled-icons/fa-solid/MoneyBillAlt\";\nimport { Leaf } from \"@styled-icons/fa-solid/Leaf\";\nimport { Route } from \"@styled-icons/fa-solid/Route\";\n\nimport * as S from \"./styled\";\nimport TripDetail from \"./trip-detail\";\nimport FareLegTable from \"./fare-table\";\nimport { boldText, renderFare } from \"./utils\";\n\nimport {\n TimeActiveDetailsProps,\n TransitFareProps,\n TripDetailsProps\n} from \"./types\";\n\n// Load the default messages.\nimport defaultEnglishMessages from \"../i18n/en-US.yml\";\n\n// HACK: We should flatten the messages loaded above because\n// the YAML loaders behave differently between webpack and our version of jest:\n// - the yaml loader for webpack returns a nested object,\n// - the yaml loader for jest returns messages with flattened ids.\nconst defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);\n\nfunction CO2DescriptionLink(contents: ReactElement): ReactElement {\n return (\n <a\n href=\"https://www.itf-oecd.org/sites/default/files/life-cycle-assessment-calculations-2020.xlsx\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n {contents}\n </a>\n );\n}\n/**\n * Default rendering if no component is provided for the TimeActiveDetails\n * slot in the TripDetails component.\n */\nfunction DefaultTimeActiveDetails({\n bikeMinutes,\n walkMinutes\n}: TimeActiveDetailsProps): ReactElement {\n return (\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.timeActiveDescription\"]\n }\n description=\"Text describing the walking and biking durations of a trip.\"\n id=\"otpUi.TripDetails.timeActiveDescription\"\n values={{\n bikeMinutes,\n strong: boldText,\n walkMinutes\n }}\n />\n );\n}\n\n/**\n * Helper component that renders a transit fare entry.\n */\nconst TransitFare = ({\n fareKey,\n fareNameFallback,\n fareKeyNameMap,\n transitFares\n}: TransitFareProps): ReactElement => {\n const currentFare = transitFares[fareKey];\n\n // TODO: Is this needed? Every implementation of TransitFare does a check for currentFare's existence, although not the cents field\n if (typeof currentFare?.cents !== \"number\") {\n return (\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.transitFareUnknown\"]}\n description=\"Text showing that no fare information is present.\"\n id=\"otpUi.TripDetails.transitFareUnknown\"\n />\n );\n }\n\n return (\n <span>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.transitFareEntry\"]}\n description=\"Text showing the price of tickets on public transportation.\"\n id=\"otpUi.TripDetails.transitFareEntry\"\n values={{\n name: fareKeyNameMap[fareKey] || fareNameFallback || fareKey,\n strong: boldText,\n value: renderFare(\n currentFare?.currency?.currencyCode || \"USD\",\n currentFare.cents / 100\n )\n }}\n />\n </span>\n );\n};\n\n/**\n * Renders trip details such as departure instructions, fare amount, and minutes active.\n */\nexport function TripDetails({\n className = \"\",\n co2Config,\n defaultFareKey = \"regular\",\n DepartureDetails = null,\n displayTimeActive = true,\n FareDetails = null,\n fareDetailsLayout,\n fareKeyNameMap = {},\n itinerary,\n TimeActiveDetails = DefaultTimeActiveDetails\n}: TripDetailsProps): ReactElement {\n // process the transit fare\n const fareResult = coreUtils.itinerary.calculateTncFares(itinerary);\n const { currencyCode, maxTNCFare, minTNCFare } = fareResult;\n const transitFares = itinerary?.fare?.fare;\n\n let companies = \"\";\n itinerary.legs.forEach(leg => {\n if (leg.rideHailingEstimate) {\n companies = leg.rideHailingEstimate.provider.id;\n }\n });\n let fare;\n\n const fareKeys = transitFares && Object.keys(transitFares).sort();\n\n if (transitFares && fareKeys.length > 0) {\n let defaultFare = defaultFareKey;\n if (!transitFares[defaultFareKey]) {\n defaultFare = \"regular\";\n }\n\n // Depending on if there are additional fares to display either render a <span> or a <details>\n const TransitFareWrapper =\n transitFares && fareKeys.length > 1 ? S.TransitFare : S.TransitFareSingle;\n\n fare = transitFares?.[defaultFare] && (\n <S.Fare>\n <TransitFareWrapper>\n <summary style={{ display: fareKeys.length > 1 ? \"list-item\" : \"\" }}>\n <TransitFare\n fareNameFallback={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.transitFare\"]\n }\n description=\"Text showing the price of tickets on public transportation.\"\n id=\"otpUi.TripDetails.transitFare\"\n />\n }\n fareKey={defaultFare}\n fareKeyNameMap={fareKeyNameMap}\n transitFares={transitFares}\n />\n </summary>\n {fareDetailsLayout ? (\n // Show full ƒare details by leg\n <FareLegTable layout={fareDetailsLayout} itinerary={itinerary} />\n ) : (\n // Just show the fares for each payment type\n fareKeys.map(fareKey => {\n // Don't show the default fare twice!\n if (fareKey === defaultFare) {\n return null;\n }\n return (\n <TransitFare\n fareKey={fareKey}\n fareKeyNameMap={fareKeyNameMap}\n key={fareKey}\n transitFares={transitFares}\n />\n );\n })\n )}\n </TransitFareWrapper>\n </S.Fare>\n );\n }\n const tncFare = minTNCFare !== 0 && (\n <S.Fare>\n <S.TNCFare>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.tncFare\"]}\n description=\"Text showing the price paid to transportation network companies.\"\n id=\"otpUi.TripDetails.tncFare\"\n values={{\n companies: (\n // S.TNCFareCompanies capitalizes the TNC company ID (e.g. \"COMPANY\")\n // after it is converted to lowercase, so it renders as \"Company\".\n <S.TNCFareCompanies>{companies.toLowerCase()}</S.TNCFareCompanies>\n ),\n maxTNCFare: renderFare(currencyCode, maxTNCFare),\n minTNCFare: renderFare(currencyCode, minTNCFare),\n strong: boldText\n }}\n />\n </S.TNCFare>\n </S.Fare>\n );\n\n const departureDate = new Date(itinerary.startTime);\n\n // Compute total time spent active.\n\n // TODO: separate into two reducers\n let walkDurationSeconds = 0;\n let bikeDurationSeconds = 0;\n itinerary.legs.forEach(leg => {\n if (leg.mode.startsWith(\"WALK\")) walkDurationSeconds += leg.duration;\n if (leg.mode.startsWith(\"BICYCLE\")) bikeDurationSeconds += leg.duration;\n });\n const bikeMinutes = Math.round(bikeDurationSeconds / 60);\n const walkMinutes = Math.round(walkDurationSeconds / 60);\n const minutesActive = bikeMinutes + walkMinutes;\n\n // Calculate CO₂ if it's not provided by the itinerary\n const co2 =\n itinerary.co2 ||\n (co2Config?.enabled &&\n coreUtils.itinerary.calculateEmissions(\n itinerary,\n co2Config?.carbonIntensity,\n co2Config?.units\n ));\n\n // Parse flex info and generate appropriate strings\n const containsFlex = itinerary.legs.some(coreUtils.itinerary.isFlex);\n const pickupBookingInfo = itinerary.legs\n .map(leg => leg.pickupBookingInfo)\n .filter(info => !!info);\n const dropOffBookingInfo = itinerary.legs\n .map(leg => leg.dropOffBookingInfo)\n .filter(info => !!info);\n const totalDistance = itinerary.legs.reduce(\n (total, leg) => total + leg.distance,\n 0\n );\n\n return (\n <S.TripDetails className={className}>\n {/* this can be presentation as S.TripDetails is already labeled by this */}\n <S.TripDetailsHeader id=\"trip-details-header\">\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.title\"]}\n description=\"Title (heading) text of the component.\"\n id=\"otpUi.TripDetails.title\"\n />\n </S.TripDetailsHeader>\n <S.TripDetailsBody>\n <TripDetail\n // Any custom description for the Departure message needs to be handled by the slot.\n description={\n DepartureDetails && (\n <DepartureDetails departureDate={departureDate} />\n )\n }\n icon={<CalendarAlt size={17} />}\n summary={\n <S.Timing>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.departure\"]}\n description=\"Text showing the departure date/time for a trip.\"\n id=\"otpUi.TripDetails.departure\"\n values={{\n departureDate,\n strong: boldText\n }}\n />\n </S.Timing>\n }\n />\n {fare && (\n <TripDetail\n // Any custom description for the transit fare needs to be handled by the slot.\n description={\n FareDetails && (\n <FareDetails\n maxTNCFare={maxTNCFare}\n minTNCFare={minTNCFare}\n transitFares={transitFares}\n />\n )\n }\n icon={<MoneyBillAlt size={17} />}\n summary={fare}\n />\n )}\n {tncFare && (\n <TripDetail\n // Any custom description for the transit fare needs to be handled by the slot.\n description={\n FareDetails && (\n <FareDetails\n maxTNCFare={maxTNCFare}\n minTNCFare={minTNCFare}\n transitFares={transitFares}\n />\n )\n }\n icon={<MoneyBillAlt size={17} />}\n summary={tncFare}\n />\n )}\n {displayTimeActive && minutesActive > 0 && (\n <TripDetail\n icon={<Heartbeat size={17} />}\n summary={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.minutesActive\"]\n }\n description=\"Text showing the number of minutes spent walking or biking throughout trip.\"\n id=\"otpUi.TripDetails.minutesActive\"\n values={{\n minutes: minutesActive,\n strong: boldText\n }}\n />\n }\n description={\n TimeActiveDetails && (\n <TimeActiveDetails\n bikeMinutes={bikeMinutes}\n walkMinutes={walkMinutes}\n />\n )\n }\n />\n )}\n {co2 > 0 && co2Config?.enabled && (\n <TripDetail\n icon={<Leaf size={17} />}\n summary={\n <S.CO2Summary>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.co2\"]}\n description=\"Text showing the quantity of CO₂ emitted by this trip.\"\n id=\"otpUi.TripDetails.co2\"\n values={{\n co2: (\n <FormattedNumber\n value={Math.round(co2)}\n // eslint-disable-next-line react/style-prop-object\n style=\"unit\"\n unit={co2Config?.units || \"gram\"}\n unitDisplay=\"narrow\"\n />\n ),\n strong: boldText\n }}\n />\n </S.CO2Summary>\n }\n description={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.co2description\"]\n }\n description=\"Text explaining how the CO₂ emissions are calculated.\"\n id=\"otpUi.TripDetails.co2description\"\n values={{\n link: CO2DescriptionLink,\n totalDistance\n }}\n />\n }\n />\n )}\n {containsFlex && (\n <TripDetail\n summary={\n <S.FlexSummary>\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.tripIncludesFlex\"]\n }\n description=\"Text stating that portions of the trip include a flex (on-demand) transit service.\"\n id=\"otpUi.TripDetails.tripIncludesFlex\"\n values={{\n extraMessage: [\n ...new Set([\n ...pickupBookingInfo.map(info => info.message),\n ...dropOffBookingInfo.map(info => info.message)\n ])\n ].join(\" \")\n }}\n />\n </S.FlexSummary>\n }\n icon={<Route size={17} />}\n />\n )}\n </S.TripDetailsBody>\n </S.TripDetails>\n );\n}\n\nexport default TripDetails;\n\n// Rename styled components for export.\nexport { S as Styled, FareLegTable };\n"],"file":"index.js"}
|
package/i18n/es.yml
CHANGED
|
@@ -16,7 +16,14 @@ otpUi:
|
|
|
16
16
|
special: Especial
|
|
17
17
|
youth: Juventud
|
|
18
18
|
hideDetail: Ocultar detalles
|
|
19
|
+
minutesActive: >-
|
|
20
|
+
Tiempo de actividad: <strong>{minutes, plural, one {# minuto} other {#
|
|
21
|
+
minutos}}</strong>
|
|
19
22
|
showDetail: Mostrar detalles
|
|
23
|
+
timeActiveDescription: >
|
|
24
|
+
Al hacer este viaje, gastarás <strong>{walkMinutes, plural, one {# minuto}
|
|
25
|
+
other {# minutos}}</strong> caminando y <strong>{bikeMinutes, plural, one
|
|
26
|
+
{# minuto} other {# minutos}}</strong> en bicicleta.
|
|
20
27
|
title: Detalles del viaje
|
|
21
28
|
tncFare: "{companies} Tarifa: <strong>{minTNCFare} - {maxTNCFare}</strong>"
|
|
22
29
|
transferDiscountExplanation: Se aplica un descuento de transferencia de {transferAmount}
|
package/i18n/fr.yml
CHANGED
|
@@ -16,7 +16,7 @@ otpUi:
|
|
|
16
16
|
special: Spécial
|
|
17
17
|
youth: Jeunes
|
|
18
18
|
hideDetail: Masquer les détails
|
|
19
|
-
minutesActive: "Activité physique: {minutes, plural, one {# minute} other {# minutes}}"
|
|
19
|
+
minutesActive: "Activité physique\_: <strong>{minutes, plural, one {# minute} other {# minutes}}</strong>"
|
|
20
20
|
showDetail: Afficher les détails
|
|
21
21
|
timeActiveDescription: >
|
|
22
22
|
Sur ce trajet, vous effectuerez <strong>{walkMinutes, plural, one {#
|
package/lib/index.js
CHANGED
|
@@ -147,8 +147,8 @@ function TripDetails({
|
|
|
147
147
|
const transitFares = itinerary === null || itinerary === void 0 ? void 0 : (_itinerary$fare = itinerary.fare) === null || _itinerary$fare === void 0 ? void 0 : _itinerary$fare.fare;
|
|
148
148
|
let companies = "";
|
|
149
149
|
itinerary.legs.forEach(leg => {
|
|
150
|
-
if (leg.
|
|
151
|
-
companies = leg.
|
|
150
|
+
if (leg.rideHailingEstimate) {
|
|
151
|
+
companies = leg.rideHailingEstimate.provider.id;
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
let fare;
|
|
@@ -195,23 +195,25 @@ function TripDetails({
|
|
|
195
195
|
key: fareKey,
|
|
196
196
|
transitFares: transitFares
|
|
197
197
|
});
|
|
198
|
-
})), minTNCFare !== 0 && /*#__PURE__*/_react.default.createElement(S.TNCFare, null, /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
199
|
-
defaultMessage: defaultMessages["otpUi.TripDetails.tncFare"],
|
|
200
|
-
description: "Text showing the price paid to transportation network companies.",
|
|
201
|
-
id: "otpUi.TripDetails.tncFare",
|
|
202
|
-
values: {
|
|
203
|
-
companies:
|
|
204
|
-
/*#__PURE__*/
|
|
205
|
-
// S.TNCFareCompanies capitalizes the TNC company ID (e.g. "COMPANY")
|
|
206
|
-
// after it is converted to lowercase, so it renders as "Company".
|
|
207
|
-
_react.default.createElement(S.TNCFareCompanies, null, companies.toLowerCase()),
|
|
208
|
-
maxTNCFare: (0, _utils.renderFare)(currencyCode, maxTNCFare),
|
|
209
|
-
minTNCFare: (0, _utils.renderFare)(currencyCode, minTNCFare),
|
|
210
|
-
strong: _utils.boldText
|
|
211
|
-
}
|
|
212
198
|
})));
|
|
213
199
|
}
|
|
214
200
|
|
|
201
|
+
const tncFare = minTNCFare !== 0 && /*#__PURE__*/_react.default.createElement(S.Fare, null, /*#__PURE__*/_react.default.createElement(S.TNCFare, null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
|
|
202
|
+
defaultMessage: defaultMessages["otpUi.TripDetails.tncFare"],
|
|
203
|
+
description: "Text showing the price paid to transportation network companies.",
|
|
204
|
+
id: "otpUi.TripDetails.tncFare",
|
|
205
|
+
values: {
|
|
206
|
+
companies:
|
|
207
|
+
/*#__PURE__*/
|
|
208
|
+
// S.TNCFareCompanies capitalizes the TNC company ID (e.g. "COMPANY")
|
|
209
|
+
// after it is converted to lowercase, so it renders as "Company".
|
|
210
|
+
_react.default.createElement(S.TNCFareCompanies, null, companies.toLowerCase()),
|
|
211
|
+
maxTNCFare: (0, _utils.renderFare)(currencyCode, maxTNCFare),
|
|
212
|
+
minTNCFare: (0, _utils.renderFare)(currencyCode, minTNCFare),
|
|
213
|
+
strong: _utils.boldText
|
|
214
|
+
}
|
|
215
|
+
})));
|
|
216
|
+
|
|
215
217
|
const departureDate = new Date(itinerary.startTime); // Compute total time spent active.
|
|
216
218
|
// TODO: separate into two reducers
|
|
217
219
|
|
|
@@ -268,6 +270,17 @@ function TripDetails({
|
|
|
268
270
|
size: 17
|
|
269
271
|
}),
|
|
270
272
|
summary: fare
|
|
273
|
+
}), tncFare && /*#__PURE__*/_react.default.createElement(_tripDetail.default // Any custom description for the transit fare needs to be handled by the slot.
|
|
274
|
+
, {
|
|
275
|
+
description: FareDetails && /*#__PURE__*/_react.default.createElement(FareDetails, {
|
|
276
|
+
maxTNCFare: maxTNCFare,
|
|
277
|
+
minTNCFare: minTNCFare,
|
|
278
|
+
transitFares: transitFares
|
|
279
|
+
}),
|
|
280
|
+
icon: /*#__PURE__*/_react.default.createElement(_MoneyBillAlt.MoneyBillAlt, {
|
|
281
|
+
size: 17
|
|
282
|
+
}),
|
|
283
|
+
summary: tncFare
|
|
271
284
|
}), displayTimeActive && minutesActive > 0 && /*#__PURE__*/_react.default.createElement(_tripDetail.default, {
|
|
272
285
|
icon: /*#__PURE__*/_react.default.createElement(_Heartbeat.Heartbeat, {
|
|
273
286
|
size: 17
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.tsx"],"names":["defaultMessages","defaultEnglishMessages","CO2DescriptionLink","contents","DefaultTimeActiveDetails","bikeMinutes","walkMinutes","strong","boldText","TransitFare","fareKey","fareNameFallback","fareKeyNameMap","transitFares","currentFare","cents","name","value","currency","currencyCode","TripDetails","className","co2Config","defaultFareKey","DepartureDetails","displayTimeActive","FareDetails","fareDetailsLayout","itinerary","TimeActiveDetails","fareResult","coreUtils","calculateTncFares","maxTNCFare","minTNCFare","fare","companies","legs","forEach","leg","tncData","company","fareKeys","Object","keys","sort","length","defaultFare","TransitFareWrapper","S","TransitFareSingle","display","map","toLowerCase","departureDate","Date","startTime","walkDurationSeconds","bikeDurationSeconds","mode","startsWith","duration","Math","round","minutesActive","co2","enabled","calculateEmissions","carbonIntensity","units","containsFlex","some","isFlex","pickupBookingInfo","filter","info","dropOffBookingInfo","totalDistance","reduce","total","distance","minutes","link","extraMessage","Set","message","join"],"mappings":";;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;AACA;;AACA;;AACA;;AASA;;;;;;AADA;AAGA;AACA;AACA;AACA;AACA,MAAMA,eAAuC,GAAG,mBAAQC,aAAR,CAAhD;;AAEA,SAASC,kBAAT,CAA4BC,QAA5B,EAAkE;AAChE,sBACE;AACE,IAAA,IAAI,EAAC,2FADP;AAEE,IAAA,GAAG,EAAC,qBAFN;AAGE,IAAA,MAAM,EAAC;AAHT,KAKGA,QALH,CADF;AASD;AACD;AACA;AACA;AACA;;;AACA,SAASC,wBAAT,CAAkC;AAChCC,EAAAA,WADgC;AAEhCC,EAAAA;AAFgC,CAAlC,EAGyC;AACvC,sBACE,6BAAC,2BAAD;AACE,IAAA,cAAc,EACZN,eAAe,CAAC,yCAAD,CAFnB;AAIE,IAAA,WAAW,EAAC,6DAJd;AAKE,IAAA,EAAE,EAAC,yCALL;AAME,IAAA,MAAM,EAAE;AACNK,MAAAA,WADM;AAENE,MAAAA,MAAM,EAAEC,eAFF;AAGNF,MAAAA;AAHM;AANV,IADF;AAcD;AAED;AACA;AACA;;;AACA,MAAMG,WAAW,GAAG,CAAC;AACnBC,EAAAA,OADmB;AAEnBC,EAAAA,gBAFmB;AAGnBC,EAAAA,cAHmB;AAInBC,EAAAA;AAJmB,CAAD,KAKkB;AAAA;;AACpC,QAAMC,WAAW,GAAGD,YAAY,CAACH,OAAD,CAAhC,CADoC,CAGpC;;AACA,MAAI,QAAOI,WAAP,aAAOA,WAAP,uBAAOA,WAAW,CAAEC,KAApB,MAA8B,QAAlC,EAA4C;AAC1C,wBACE,6BAAC,2BAAD;AACE,MAAA,cAAc,EAAEf,eA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,6BAAC,2BAAD;AACE,MAAA,cAAc,EACZR,eAAe,CAAC,kCAAD,CAFnB;AAIE,MAAA,WAAW,EAAC,4DAJd;AAKE,MAAA,EAAE,EAAC,kCALL;AAME,MAAA,MAAM,EAAE;AACNkF,QAAAA,IAAI,EAAEhF,kBADA;AAEN2E,QAAAA;AAFM;AANV;AAxBJ,IAlEJ,EAwGGP,YAAY,iBACX,6BAAC,mBAAD;AACE,IAAA,OAAO,eACL,6BAAC,CAAD,CAAG,WAAH,qBACE,6BAAC,2BAAD;AACE,MAAA,cAAc,EACZtE,eAAe,CAAC,oCAAD,CAFnB;AAIE,MAAA,WAAW,EAAC,oFAJd;AAKE,MAAA,EAAE,EAAC,oCALL;AAME,MAAA,MAAM,EAAE;AACNmF,QAAAA,YAAY,EAAE,CACZ,GAAG,IAAIC,GAAJ,CAAQ,CACT,GAAGX,iBAAiB,CAACrB,GAAlB,CAAsBuB,IAAI,IAAIA,IAAI,CAACU,OAAnC,CADM,EAET,GAAGT,kBAAkB,CAACxB,GAAnB,CAAuBuB,IAAI,IAAIA,IAAI,CAACU,OAApC,CAFM,CAAR,CADS,EAKZC,IALY,CAKP,GALO;AADR;AANV,MADF,CAFJ;AAoBE,IAAA,IAAI,eAAE,6BAAC,YAAD;AAAO,MAAA,IAAI,EAAE;AAAb;AApBR,IAzGJ,CATF,CADF;AA6ID;;eAEclE,W,EAEf","sourcesContent":["import flatten from \"flat\";\nimport coreUtils from \"@opentripplanner/core-utils\";\nimport React, { ReactElement } from \"react\";\nimport { FormattedMessage, FormattedNumber } from \"react-intl\";\nimport { CalendarAlt } from \"@styled-icons/fa-solid/CalendarAlt\";\nimport { Heartbeat } from \"@styled-icons/fa-solid/Heartbeat\";\nimport { MoneyBillAlt } from \"@styled-icons/fa-solid/MoneyBillAlt\";\nimport { Leaf } from \"@styled-icons/fa-solid/Leaf\";\nimport { Route } from \"@styled-icons/fa-solid/Route\";\n\nimport * as S from \"./styled\";\nimport TripDetail from \"./trip-detail\";\nimport FareLegTable from \"./fare-table\";\nimport { boldText, renderFare } from \"./utils\";\n\nimport {\n TimeActiveDetailsProps,\n TransitFareProps,\n TripDetailsProps\n} from \"./types\";\n\n// Load the default messages.\nimport defaultEnglishMessages from \"../i18n/en-US.yml\";\n\n// HACK: We should flatten the messages loaded above because\n// the YAML loaders behave differently between webpack and our version of jest:\n// - the yaml loader for webpack returns a nested object,\n// - the yaml loader for jest returns messages with flattened ids.\nconst defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);\n\nfunction CO2DescriptionLink(contents: ReactElement): ReactElement {\n return (\n <a\n href=\"https://www.itf-oecd.org/sites/default/files/life-cycle-assessment-calculations-2020.xlsx\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n {contents}\n </a>\n );\n}\n/**\n * Default rendering if no component is provided for the TimeActiveDetails\n * slot in the TripDetails component.\n */\nfunction DefaultTimeActiveDetails({\n bikeMinutes,\n walkMinutes\n}: TimeActiveDetailsProps): ReactElement {\n return (\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.timeActiveDescription\"]\n }\n description=\"Text describing the walking and biking durations of a trip.\"\n id=\"otpUi.TripDetails.timeActiveDescription\"\n values={{\n bikeMinutes,\n strong: boldText,\n walkMinutes\n }}\n />\n );\n}\n\n/**\n * Helper component that renders a transit fare entry.\n */\nconst TransitFare = ({\n fareKey,\n fareNameFallback,\n fareKeyNameMap,\n transitFares\n}: TransitFareProps): ReactElement => {\n const currentFare = transitFares[fareKey];\n\n // TODO: Is this needed? Every implementation of TransitFare does a check for currentFare's existence, although not the cents field\n if (typeof currentFare?.cents !== \"number\") {\n return (\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.transitFareUnknown\"]}\n description=\"Text showing that no fare information is present.\"\n id=\"otpUi.TripDetails.transitFareUnknown\"\n />\n );\n }\n\n return (\n <span>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.transitFareEntry\"]}\n description=\"Text showing the price of tickets on public transportation.\"\n id=\"otpUi.TripDetails.transitFareEntry\"\n values={{\n name: fareKeyNameMap[fareKey] || fareNameFallback || fareKey,\n strong: boldText,\n value: renderFare(\n currentFare?.currency?.currencyCode || \"USD\",\n currentFare.cents / 100\n )\n }}\n />\n </span>\n );\n};\n\n/**\n * Renders trip details such as departure instructions, fare amount, and minutes active.\n */\nexport function TripDetails({\n className = \"\",\n co2Config,\n defaultFareKey = \"regular\",\n DepartureDetails = null,\n displayTimeActive = true,\n FareDetails = null,\n fareDetailsLayout,\n fareKeyNameMap = {},\n itinerary,\n TimeActiveDetails = DefaultTimeActiveDetails\n}: TripDetailsProps): ReactElement {\n // process the transit fare\n const fareResult = coreUtils.itinerary.calculateTncFares(itinerary);\n const { currencyCode, maxTNCFare, minTNCFare } = fareResult;\n const transitFares = itinerary?.fare?.fare;\n\n let companies = \"\";\n itinerary.legs.forEach(leg => {\n if (leg.tncData) {\n companies = leg.tncData.company;\n }\n });\n let fare;\n\n const fareKeys = transitFares && Object.keys(transitFares).sort();\n\n if (transitFares && fareKeys.length > 0) {\n let defaultFare = defaultFareKey;\n if (!transitFares[defaultFareKey]) {\n defaultFare = \"regular\";\n }\n\n // Depending on if there are additional fares to display either render a <span> or a <details>\n const TransitFareWrapper =\n transitFares && fareKeys.length > 1 ? S.TransitFare : S.TransitFareSingle;\n\n fare = transitFares?.[defaultFare] && (\n <S.Fare>\n <TransitFareWrapper>\n <summary style={{ display: fareKeys.length > 1 ? \"list-item\" : \"\" }}>\n <TransitFare\n fareNameFallback={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.transitFare\"]\n }\n description=\"Text showing the price of tickets on public transportation.\"\n id=\"otpUi.TripDetails.transitFare\"\n />\n }\n fareKey={defaultFare}\n fareKeyNameMap={fareKeyNameMap}\n transitFares={transitFares}\n />\n </summary>\n {fareDetailsLayout ? (\n // Show full ƒare details by leg\n <FareLegTable layout={fareDetailsLayout} itinerary={itinerary} />\n ) : (\n // Just show the fares for each payment type\n fareKeys.map(fareKey => {\n // Don't show the default fare twice!\n if (fareKey === defaultFare) {\n return null;\n }\n return (\n <TransitFare\n fareKey={fareKey}\n fareKeyNameMap={fareKeyNameMap}\n key={fareKey}\n transitFares={transitFares}\n />\n );\n })\n )}\n </TransitFareWrapper>\n {minTNCFare !== 0 && (\n <S.TNCFare>\n <br />\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.tncFare\"]}\n description=\"Text showing the price paid to transportation network companies.\"\n id=\"otpUi.TripDetails.tncFare\"\n values={{\n companies: (\n // S.TNCFareCompanies capitalizes the TNC company ID (e.g. \"COMPANY\")\n // after it is converted to lowercase, so it renders as \"Company\".\n <S.TNCFareCompanies>\n {companies.toLowerCase()}\n </S.TNCFareCompanies>\n ),\n maxTNCFare: renderFare(currencyCode, maxTNCFare),\n minTNCFare: renderFare(currencyCode, minTNCFare),\n strong: boldText\n }}\n />\n </S.TNCFare>\n )}\n </S.Fare>\n );\n }\n\n const departureDate = new Date(itinerary.startTime);\n\n // Compute total time spent active.\n\n // TODO: separate into two reducers\n let walkDurationSeconds = 0;\n let bikeDurationSeconds = 0;\n itinerary.legs.forEach(leg => {\n if (leg.mode.startsWith(\"WALK\")) walkDurationSeconds += leg.duration;\n if (leg.mode.startsWith(\"BICYCLE\")) bikeDurationSeconds += leg.duration;\n });\n const bikeMinutes = Math.round(bikeDurationSeconds / 60);\n const walkMinutes = Math.round(walkDurationSeconds / 60);\n const minutesActive = bikeMinutes + walkMinutes;\n\n // Calculate CO₂ if it's not provided by the itinerary\n const co2 =\n itinerary.co2 ||\n (co2Config?.enabled &&\n coreUtils.itinerary.calculateEmissions(\n itinerary,\n co2Config?.carbonIntensity,\n co2Config?.units\n ));\n\n // Parse flex info and generate appropriate strings\n const containsFlex = itinerary.legs.some(coreUtils.itinerary.isFlex);\n const pickupBookingInfo = itinerary.legs\n .map(leg => leg.pickupBookingInfo)\n .filter(info => !!info);\n const dropOffBookingInfo = itinerary.legs\n .map(leg => leg.dropOffBookingInfo)\n .filter(info => !!info);\n const totalDistance = itinerary.legs.reduce(\n (total, leg) => total + leg.distance,\n 0\n );\n\n return (\n <S.TripDetails className={className}>\n {/* this can be presentation as S.TripDetails is already labeled by this */}\n <S.TripDetailsHeader id=\"trip-details-header\">\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.title\"]}\n description=\"Title (heading) text of the component.\"\n id=\"otpUi.TripDetails.title\"\n />\n </S.TripDetailsHeader>\n <S.TripDetailsBody>\n <TripDetail\n // Any custom description for the Departure message needs to be handled by the slot.\n description={\n DepartureDetails && (\n <DepartureDetails departureDate={departureDate} />\n )\n }\n icon={<CalendarAlt size={17} />}\n summary={\n <S.Timing>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.departure\"]}\n description=\"Text showing the departure date/time for a trip.\"\n id=\"otpUi.TripDetails.departure\"\n values={{\n departureDate,\n strong: boldText\n }}\n />\n </S.Timing>\n }\n />\n {fare && (\n <TripDetail\n // Any custom description for the transit fare needs to be handled by the slot.\n description={\n FareDetails && (\n <FareDetails\n maxTNCFare={maxTNCFare}\n minTNCFare={minTNCFare}\n transitFares={transitFares}\n />\n )\n }\n icon={<MoneyBillAlt size={17} />}\n summary={fare}\n />\n )}\n {displayTimeActive && minutesActive > 0 && (\n <TripDetail\n icon={<Heartbeat size={17} />}\n summary={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.minutesActive\"]\n }\n description=\"Text showing the number of minutes spent walking or biking throughout trip.\"\n id=\"otpUi.TripDetails.minutesActive\"\n values={{\n minutes: minutesActive,\n strong: boldText\n }}\n />\n }\n description={\n TimeActiveDetails && (\n <TimeActiveDetails\n bikeMinutes={bikeMinutes}\n walkMinutes={walkMinutes}\n />\n )\n }\n />\n )}\n {co2 > 0 && co2Config?.enabled && (\n <TripDetail\n icon={<Leaf size={17} />}\n summary={\n <S.CO2Summary>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.co2\"]}\n description=\"Text showing the quantity of CO₂ emitted by this trip.\"\n id=\"otpUi.TripDetails.co2\"\n values={{\n co2: (\n <FormattedNumber\n value={Math.round(co2)}\n // eslint-disable-next-line react/style-prop-object\n style=\"unit\"\n unit={co2Config?.units || \"gram\"}\n unitDisplay=\"narrow\"\n />\n ),\n strong: boldText\n }}\n />\n </S.CO2Summary>\n }\n description={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.co2description\"]\n }\n description=\"Text explaining how the CO₂ emissions are calculated.\"\n id=\"otpUi.TripDetails.co2description\"\n values={{\n link: CO2DescriptionLink,\n totalDistance\n }}\n />\n }\n />\n )}\n {containsFlex && (\n <TripDetail\n summary={\n <S.FlexSummary>\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.tripIncludesFlex\"]\n }\n description=\"Text stating that portions of the trip include a flex (on-demand) transit service.\"\n id=\"otpUi.TripDetails.tripIncludesFlex\"\n values={{\n extraMessage: [\n ...new Set([\n ...pickupBookingInfo.map(info => info.message),\n ...dropOffBookingInfo.map(info => info.message)\n ])\n ].join(\" \")\n }}\n />\n </S.FlexSummary>\n }\n icon={<Route size={17} />}\n />\n )}\n </S.TripDetailsBody>\n </S.TripDetails>\n );\n}\n\nexport default TripDetails;\n\n// Rename styled components for export.\nexport { S as Styled, FareLegTable };\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../src/index.tsx"],"names":["defaultMessages","defaultEnglishMessages","CO2DescriptionLink","contents","DefaultTimeActiveDetails","bikeMinutes","walkMinutes","strong","boldText","TransitFare","fareKey","fareNameFallback","fareKeyNameMap","transitFares","currentFare","cents","name","value","currency","currencyCode","TripDetails","className","co2Config","defaultFareKey","DepartureDetails","displayTimeActive","FareDetails","fareDetailsLayout","itinerary","TimeActiveDetails","fareResult","coreUtils","calculateTncFares","maxTNCFare","minTNCFare","fare","companies","legs","forEach","leg","rideHailingEstimate","provider","id","fareKeys","Object","keys","sort","length","defaultFare","TransitFareWrapper","S","TransitFareSingle","display","map","tncFare","toLowerCase","departureDate","Date","startTime","walkDurationSeconds","bikeDurationSeconds","mode","startsWith","duration","Math","round","minutesActive","co2","enabled","calculateEmissions","carbonIntensity","units","containsFlex","some","isFlex","pickupBookingInfo","filter","info","dropOffBookingInfo","totalDistance","reduce","total","distance","minutes","link","extraMessage","Set","message","join"],"mappings":";;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;AACA;;AACA;;AACA;;AASA;;;;;;AADA;AAGA;AACA;AACA;AACA;AACA,MAAMA,eAAuC,GAAG,mBAAQC,aAAR,CAAhD;;AAEA,SAASC,kBAAT,CAA4BC,QAA5B,EAAkE;AAChE,sBACE;AACE,IAAA,IAAI,EAAC,2FADP;AAEE,IAAA,GAAG,EAAC,qBAFN;AAGE,IAAA,MAAM,EAAC;AAHT,KAKGA,QALH,CADF;AASD;AACD;AACA;AACA;AACA;;;AACA,SAASC,wBAAT,CAAkC;AAChCC,EAAAA,WADgC;AAEhCC,EAAAA;AAFgC,CAAlC,EAGyC;AACvC,sBACE,6BAAC,2BAAD;AACE,IAAA,cAAc,EACZN,eAAe,CAAC,yCAAD,CAFnB;AAIE,IAAA,WAAW,EAAC,6DAJd;AAKE,IAAA,EAAE,EAAC,yCALL;AAME,IAAA,MAAM,EAAE;AACNK,MAAAA,WADM;AAENE,MAAAA,MAAM,EAAEC,eAFF;AAGNF,MAAAA;AAHM;AANV,IADF;AAcD;AAED;AACA;AACA;;;AACA,MAAMG,WAAW,GAAG,CAAC;AACnBC,EAAAA,OADmB;AAEnBC,EAAAA,gBAFmB;AAGnBC,EAAAA,cAHmB;AAInBC,EAAAA;AAJmB,CAAD,KAKkB;AAAA;;AACpC,QAAMC,WAAW,GAAGD,YAAY,CAACH,OAAD,CAAhC,CADoC,CAGpC;;AACA,MAAI,QAAOI,WAAP,aAAOA,WAAP,uBAAOA,WAAW,CAAEC,K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eAAE,6BAAC,YAAD;AAAO,MAAA,IAAI,EAAE;AAAb;AApBR,IAzHJ,CATF,CADF;AA6JD;;eAEcpE,W,EAEf","sourcesContent":["import flatten from \"flat\";\nimport coreUtils from \"@opentripplanner/core-utils\";\nimport React, { ReactElement } from \"react\";\nimport { FormattedMessage, FormattedNumber } from \"react-intl\";\nimport { CalendarAlt } from \"@styled-icons/fa-solid/CalendarAlt\";\nimport { Heartbeat } from \"@styled-icons/fa-solid/Heartbeat\";\nimport { MoneyBillAlt } from \"@styled-icons/fa-solid/MoneyBillAlt\";\nimport { Leaf } from \"@styled-icons/fa-solid/Leaf\";\nimport { Route } from \"@styled-icons/fa-solid/Route\";\n\nimport * as S from \"./styled\";\nimport TripDetail from \"./trip-detail\";\nimport FareLegTable from \"./fare-table\";\nimport { boldText, renderFare } from \"./utils\";\n\nimport {\n TimeActiveDetailsProps,\n TransitFareProps,\n TripDetailsProps\n} from \"./types\";\n\n// Load the default messages.\nimport defaultEnglishMessages from \"../i18n/en-US.yml\";\n\n// HACK: We should flatten the messages loaded above because\n// the YAML loaders behave differently between webpack and our version of jest:\n// - the yaml loader for webpack returns a nested object,\n// - the yaml loader for jest returns messages with flattened ids.\nconst defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);\n\nfunction CO2DescriptionLink(contents: ReactElement): ReactElement {\n return (\n <a\n href=\"https://www.itf-oecd.org/sites/default/files/life-cycle-assessment-calculations-2020.xlsx\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n {contents}\n </a>\n );\n}\n/**\n * Default rendering if no component is provided for the TimeActiveDetails\n * slot in the TripDetails component.\n */\nfunction DefaultTimeActiveDetails({\n bikeMinutes,\n walkMinutes\n}: TimeActiveDetailsProps): ReactElement {\n return (\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.timeActiveDescription\"]\n }\n description=\"Text describing the walking and biking durations of a trip.\"\n id=\"otpUi.TripDetails.timeActiveDescription\"\n values={{\n bikeMinutes,\n strong: boldText,\n walkMinutes\n }}\n />\n );\n}\n\n/**\n * Helper component that renders a transit fare entry.\n */\nconst TransitFare = ({\n fareKey,\n fareNameFallback,\n fareKeyNameMap,\n transitFares\n}: TransitFareProps): ReactElement => {\n const currentFare = transitFares[fareKey];\n\n // TODO: Is this needed? Every implementation of TransitFare does a check for currentFare's existence, although not the cents field\n if (typeof currentFare?.cents !== \"number\") {\n return (\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.transitFareUnknown\"]}\n description=\"Text showing that no fare information is present.\"\n id=\"otpUi.TripDetails.transitFareUnknown\"\n />\n );\n }\n\n return (\n <span>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.transitFareEntry\"]}\n description=\"Text showing the price of tickets on public transportation.\"\n id=\"otpUi.TripDetails.transitFareEntry\"\n values={{\n name: fareKeyNameMap[fareKey] || fareNameFallback || fareKey,\n strong: boldText,\n value: renderFare(\n currentFare?.currency?.currencyCode || \"USD\",\n currentFare.cents / 100\n )\n }}\n />\n </span>\n );\n};\n\n/**\n * Renders trip details such as departure instructions, fare amount, and minutes active.\n */\nexport function TripDetails({\n className = \"\",\n co2Config,\n defaultFareKey = \"regular\",\n DepartureDetails = null,\n displayTimeActive = true,\n FareDetails = null,\n fareDetailsLayout,\n fareKeyNameMap = {},\n itinerary,\n TimeActiveDetails = DefaultTimeActiveDetails\n}: TripDetailsProps): ReactElement {\n // process the transit fare\n const fareResult = coreUtils.itinerary.calculateTncFares(itinerary);\n const { currencyCode, maxTNCFare, minTNCFare } = fareResult;\n const transitFares = itinerary?.fare?.fare;\n\n let companies = \"\";\n itinerary.legs.forEach(leg => {\n if (leg.rideHailingEstimate) {\n companies = leg.rideHailingEstimate.provider.id;\n }\n });\n let fare;\n\n const fareKeys = transitFares && Object.keys(transitFares).sort();\n\n if (transitFares && fareKeys.length > 0) {\n let defaultFare = defaultFareKey;\n if (!transitFares[defaultFareKey]) {\n defaultFare = \"regular\";\n }\n\n // Depending on if there are additional fares to display either render a <span> or a <details>\n const TransitFareWrapper =\n transitFares && fareKeys.length > 1 ? S.TransitFare : S.TransitFareSingle;\n\n fare = transitFares?.[defaultFare] && (\n <S.Fare>\n <TransitFareWrapper>\n <summary style={{ display: fareKeys.length > 1 ? \"list-item\" : \"\" }}>\n <TransitFare\n fareNameFallback={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.transitFare\"]\n }\n description=\"Text showing the price of tickets on public transportation.\"\n id=\"otpUi.TripDetails.transitFare\"\n />\n }\n fareKey={defaultFare}\n fareKeyNameMap={fareKeyNameMap}\n transitFares={transitFares}\n />\n </summary>\n {fareDetailsLayout ? (\n // Show full ƒare details by leg\n <FareLegTable layout={fareDetailsLayout} itinerary={itinerary} />\n ) : (\n // Just show the fares for each payment type\n fareKeys.map(fareKey => {\n // Don't show the default fare twice!\n if (fareKey === defaultFare) {\n return null;\n }\n return (\n <TransitFare\n fareKey={fareKey}\n fareKeyNameMap={fareKeyNameMap}\n key={fareKey}\n transitFares={transitFares}\n />\n );\n })\n )}\n </TransitFareWrapper>\n </S.Fare>\n );\n }\n const tncFare = minTNCFare !== 0 && (\n <S.Fare>\n <S.TNCFare>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.tncFare\"]}\n description=\"Text showing the price paid to transportation network companies.\"\n id=\"otpUi.TripDetails.tncFare\"\n values={{\n companies: (\n // S.TNCFareCompanies capitalizes the TNC company ID (e.g. \"COMPANY\")\n // after it is converted to lowercase, so it renders as \"Company\".\n <S.TNCFareCompanies>{companies.toLowerCase()}</S.TNCFareCompanies>\n ),\n maxTNCFare: renderFare(currencyCode, maxTNCFare),\n minTNCFare: renderFare(currencyCode, minTNCFare),\n strong: boldText\n }}\n />\n </S.TNCFare>\n </S.Fare>\n );\n\n const departureDate = new Date(itinerary.startTime);\n\n // Compute total time spent active.\n\n // TODO: separate into two reducers\n let walkDurationSeconds = 0;\n let bikeDurationSeconds = 0;\n itinerary.legs.forEach(leg => {\n if (leg.mode.startsWith(\"WALK\")) walkDurationSeconds += leg.duration;\n if (leg.mode.startsWith(\"BICYCLE\")) bikeDurationSeconds += leg.duration;\n });\n const bikeMinutes = Math.round(bikeDurationSeconds / 60);\n const walkMinutes = Math.round(walkDurationSeconds / 60);\n const minutesActive = bikeMinutes + walkMinutes;\n\n // Calculate CO₂ if it's not provided by the itinerary\n const co2 =\n itinerary.co2 ||\n (co2Config?.enabled &&\n coreUtils.itinerary.calculateEmissions(\n itinerary,\n co2Config?.carbonIntensity,\n co2Config?.units\n ));\n\n // Parse flex info and generate appropriate strings\n const containsFlex = itinerary.legs.some(coreUtils.itinerary.isFlex);\n const pickupBookingInfo = itinerary.legs\n .map(leg => leg.pickupBookingInfo)\n .filter(info => !!info);\n const dropOffBookingInfo = itinerary.legs\n .map(leg => leg.dropOffBookingInfo)\n .filter(info => !!info);\n const totalDistance = itinerary.legs.reduce(\n (total, leg) => total + leg.distance,\n 0\n );\n\n return (\n <S.TripDetails className={className}>\n {/* this can be presentation as S.TripDetails is already labeled by this */}\n <S.TripDetailsHeader id=\"trip-details-header\">\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.title\"]}\n description=\"Title (heading) text of the component.\"\n id=\"otpUi.TripDetails.title\"\n />\n </S.TripDetailsHeader>\n <S.TripDetailsBody>\n <TripDetail\n // Any custom description for the Departure message needs to be handled by the slot.\n description={\n DepartureDetails && (\n <DepartureDetails departureDate={departureDate} />\n )\n }\n icon={<CalendarAlt size={17} />}\n summary={\n <S.Timing>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.departure\"]}\n description=\"Text showing the departure date/time for a trip.\"\n id=\"otpUi.TripDetails.departure\"\n values={{\n departureDate,\n strong: boldText\n }}\n />\n </S.Timing>\n }\n />\n {fare && (\n <TripDetail\n // Any custom description for the transit fare needs to be handled by the slot.\n description={\n FareDetails && (\n <FareDetails\n maxTNCFare={maxTNCFare}\n minTNCFare={minTNCFare}\n transitFares={transitFares}\n />\n )\n }\n icon={<MoneyBillAlt size={17} />}\n summary={fare}\n />\n )}\n {tncFare && (\n <TripDetail\n // Any custom description for the transit fare needs to be handled by the slot.\n description={\n FareDetails && (\n <FareDetails\n maxTNCFare={maxTNCFare}\n minTNCFare={minTNCFare}\n transitFares={transitFares}\n />\n )\n }\n icon={<MoneyBillAlt size={17} />}\n summary={tncFare}\n />\n )}\n {displayTimeActive && minutesActive > 0 && (\n <TripDetail\n icon={<Heartbeat size={17} />}\n summary={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.minutesActive\"]\n }\n description=\"Text showing the number of minutes spent walking or biking throughout trip.\"\n id=\"otpUi.TripDetails.minutesActive\"\n values={{\n minutes: minutesActive,\n strong: boldText\n }}\n />\n }\n description={\n TimeActiveDetails && (\n <TimeActiveDetails\n bikeMinutes={bikeMinutes}\n walkMinutes={walkMinutes}\n />\n )\n }\n />\n )}\n {co2 > 0 && co2Config?.enabled && (\n <TripDetail\n icon={<Leaf size={17} />}\n summary={\n <S.CO2Summary>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.TripDetails.co2\"]}\n description=\"Text showing the quantity of CO₂ emitted by this trip.\"\n id=\"otpUi.TripDetails.co2\"\n values={{\n co2: (\n <FormattedNumber\n value={Math.round(co2)}\n // eslint-disable-next-line react/style-prop-object\n style=\"unit\"\n unit={co2Config?.units || \"gram\"}\n unitDisplay=\"narrow\"\n />\n ),\n strong: boldText\n }}\n />\n </S.CO2Summary>\n }\n description={\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.co2description\"]\n }\n description=\"Text explaining how the CO₂ emissions are calculated.\"\n id=\"otpUi.TripDetails.co2description\"\n values={{\n link: CO2DescriptionLink,\n totalDistance\n }}\n />\n }\n />\n )}\n {containsFlex && (\n <TripDetail\n summary={\n <S.FlexSummary>\n <FormattedMessage\n defaultMessage={\n defaultMessages[\"otpUi.TripDetails.tripIncludesFlex\"]\n }\n description=\"Text stating that portions of the trip include a flex (on-demand) transit service.\"\n id=\"otpUi.TripDetails.tripIncludesFlex\"\n values={{\n extraMessage: [\n ...new Set([\n ...pickupBookingInfo.map(info => info.message),\n ...dropOffBookingInfo.map(info => info.message)\n ])\n ].join(\" \")\n }}\n />\n </S.FlexSummary>\n }\n icon={<Route size={17} />}\n />\n )}\n </S.TripDetailsBody>\n </S.TripDetails>\n );\n}\n\nexport default TripDetails;\n\n// Rename styled components for export.\nexport { S as Styled, FareLegTable };\n"],"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentripplanner/trip-details",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2-alpha.1",
|
|
4
4
|
"description": "A component for displaying details about a trip planning itinerary",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
},
|
|
31
31
|
"gitHead": "0af1b7cda60bd4252b219dcf893e01c2acb2ed5d",
|
|
32
32
|
"scripts": {
|
|
33
|
-
"tsc": "tsc"
|
|
33
|
+
"tsc": "echo turn tsc back on once the types package is updated"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/index.tsx
CHANGED
|
@@ -126,8 +126,8 @@ export function TripDetails({
|
|
|
126
126
|
|
|
127
127
|
let companies = "";
|
|
128
128
|
itinerary.legs.forEach(leg => {
|
|
129
|
-
if (leg.
|
|
130
|
-
companies = leg.
|
|
129
|
+
if (leg.rideHailingEstimate) {
|
|
130
|
+
companies = leg.rideHailingEstimate.provider.id;
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
let fare;
|
|
@@ -184,31 +184,30 @@ export function TripDetails({
|
|
|
184
184
|
})
|
|
185
185
|
)}
|
|
186
186
|
</TransitFareWrapper>
|
|
187
|
-
{minTNCFare !== 0 && (
|
|
188
|
-
<S.TNCFare>
|
|
189
|
-
<br />
|
|
190
|
-
<FormattedMessage
|
|
191
|
-
defaultMessage={defaultMessages["otpUi.TripDetails.tncFare"]}
|
|
192
|
-
description="Text showing the price paid to transportation network companies."
|
|
193
|
-
id="otpUi.TripDetails.tncFare"
|
|
194
|
-
values={{
|
|
195
|
-
companies: (
|
|
196
|
-
// S.TNCFareCompanies capitalizes the TNC company ID (e.g. "COMPANY")
|
|
197
|
-
// after it is converted to lowercase, so it renders as "Company".
|
|
198
|
-
<S.TNCFareCompanies>
|
|
199
|
-
{companies.toLowerCase()}
|
|
200
|
-
</S.TNCFareCompanies>
|
|
201
|
-
),
|
|
202
|
-
maxTNCFare: renderFare(currencyCode, maxTNCFare),
|
|
203
|
-
minTNCFare: renderFare(currencyCode, minTNCFare),
|
|
204
|
-
strong: boldText
|
|
205
|
-
}}
|
|
206
|
-
/>
|
|
207
|
-
</S.TNCFare>
|
|
208
|
-
)}
|
|
209
187
|
</S.Fare>
|
|
210
188
|
);
|
|
211
189
|
}
|
|
190
|
+
const tncFare = minTNCFare !== 0 && (
|
|
191
|
+
<S.Fare>
|
|
192
|
+
<S.TNCFare>
|
|
193
|
+
<FormattedMessage
|
|
194
|
+
defaultMessage={defaultMessages["otpUi.TripDetails.tncFare"]}
|
|
195
|
+
description="Text showing the price paid to transportation network companies."
|
|
196
|
+
id="otpUi.TripDetails.tncFare"
|
|
197
|
+
values={{
|
|
198
|
+
companies: (
|
|
199
|
+
// S.TNCFareCompanies capitalizes the TNC company ID (e.g. "COMPANY")
|
|
200
|
+
// after it is converted to lowercase, so it renders as "Company".
|
|
201
|
+
<S.TNCFareCompanies>{companies.toLowerCase()}</S.TNCFareCompanies>
|
|
202
|
+
),
|
|
203
|
+
maxTNCFare: renderFare(currencyCode, maxTNCFare),
|
|
204
|
+
minTNCFare: renderFare(currencyCode, minTNCFare),
|
|
205
|
+
strong: boldText
|
|
206
|
+
}}
|
|
207
|
+
/>
|
|
208
|
+
</S.TNCFare>
|
|
209
|
+
</S.Fare>
|
|
210
|
+
);
|
|
212
211
|
|
|
213
212
|
const departureDate = new Date(itinerary.startTime);
|
|
214
213
|
|
|
@@ -297,6 +296,22 @@ export function TripDetails({
|
|
|
297
296
|
summary={fare}
|
|
298
297
|
/>
|
|
299
298
|
)}
|
|
299
|
+
{tncFare && (
|
|
300
|
+
<TripDetail
|
|
301
|
+
// Any custom description for the transit fare needs to be handled by the slot.
|
|
302
|
+
description={
|
|
303
|
+
FareDetails && (
|
|
304
|
+
<FareDetails
|
|
305
|
+
maxTNCFare={maxTNCFare}
|
|
306
|
+
minTNCFare={minTNCFare}
|
|
307
|
+
transitFares={transitFares}
|
|
308
|
+
/>
|
|
309
|
+
)
|
|
310
|
+
}
|
|
311
|
+
icon={<MoneyBillAlt size={17} />}
|
|
312
|
+
summary={tncFare}
|
|
313
|
+
/>
|
|
314
|
+
)}
|
|
300
315
|
{displayTimeActive && minutesActive > 0 && (
|
|
301
316
|
<TripDetail
|
|
302
317
|
icon={<Heartbeat size={17} />}
|
package/lib/fare-table.d.ts
DELETED
package/lib/fare-table.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fare-table.d.ts","sourceRoot":"","sources":["../src/fare-table.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,SAAS,CAAC;AAkK7D,QAAA,MAAM,cAAc,0BAGjB,iBAAiB,KAAG,WA4CtB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/lib/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import * as S from "./styled";
|
|
3
|
-
import FareLegTable from "./fare-table";
|
|
4
|
-
import { TripDetailsProps } from "./types";
|
|
5
|
-
/**
|
|
6
|
-
* Renders trip details such as departure instructions, fare amount, and minutes active.
|
|
7
|
-
*/
|
|
8
|
-
export declare function TripDetails({ className, co2Config, defaultFareKey, DepartureDetails, displayTimeActive, FareDetails, fareDetailsLayout, fareKeyNameMap, itinerary, TimeActiveDetails }: TripDetailsProps): ReactElement;
|
|
9
|
-
export default TripDetails;
|
|
10
|
-
export { S as Styled, FareLegTable };
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQ5C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,OAAO,YAAY,MAAM,cAAc,CAAC;AAGxC,OAAO,EAGL,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAuFjB;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,SAAc,EACd,SAAS,EACT,cAA0B,EAC1B,gBAAuB,EACvB,iBAAwB,EACxB,WAAkB,EAClB,iBAAiB,EACjB,cAAmB,EACnB,SAAS,EACT,iBAA4C,EAC7C,EAAE,gBAAgB,GAAG,YAAY,CA+QjC;AAED,eAAe,WAAW,CAAC;AAG3B,OAAO,EAAE,CAAC,IAAI,MAAM,EAAE,YAAY,EAAE,CAAC"}
|
package/lib/styled.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const CO2Description: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
2
|
-
export declare const CO2Summary: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
3
|
-
export declare const ExpandButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
4
|
-
export declare const Fare: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
5
|
-
export declare const HideButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
6
|
-
export declare const TNCFare: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
|
-
export declare const TNCFareCompanies: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
8
|
-
export declare const Timing: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
9
|
-
export declare const TransitFare: import("styled-components").StyledComponent<"details", any, {}, never>;
|
|
10
|
-
export declare const TransitFareSingle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
11
|
-
export declare const FlexSummary: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
12
|
-
export declare const TripDetail: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const TripDetailDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const TripDetailIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
-
export declare const TripDetails: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
-
export declare const TripDetailsBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
-
export declare const TripDetailsHeader: import("styled-components").StyledComponent<"h2", any, {}, never>;
|
|
18
|
-
export declare const TripDetailSummary: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
|
-
//# sourceMappingURL=styled.d.ts.map
|
package/lib/styled.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../src/styled.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,cAAc,qEAAgB,CAAC;AAE5C,eAAO,MAAM,UAAU,qEAAgB,CAAC;AAExC,eAAO,MAAM,YAAY,uEAKxB,CAAC;AAEF,eAAO,MAAM,IAAI,qEAAgB,CAAC;AAElC,eAAO,MAAM,UAAU,uEAEtB,CAAC;AAEF,eAAO,MAAM,OAAO,qEAAgB,CAAC;AAErC,eAAO,MAAM,gBAAgB,qEAE5B,CAAC;AAEF,eAAO,MAAM,MAAM,qEAAgB,CAAC;AAEpC,eAAO,MAAM,WAAW,wEASvB,CAAC;AACF,eAAO,MAAM,iBAAiB,qEAAgB,CAAC;AAE/C,eAAO,MAAM,WAAW,qEAAgB,CAAC;AAEzC,eAAO,MAAM,UAAU,oEAEtB,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAMjC,CAAC;AAEF,eAAO,MAAM,cAAc,oEAG1B,CAAC;AAEF,eAAO,MAAM,WAAW,oEAMvB,CAAC;AAEF,eAAO,MAAM,eAAe,oEAAe,CAAC;AAE5C,eAAO,MAAM,iBAAiB,mEAI7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,oEAM7B,CAAC"}
|
package/lib/trip-detail.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
declare type Props = {
|
|
3
|
-
description?: ReactElement | string;
|
|
4
|
-
icon: ReactElement;
|
|
5
|
-
summary: ReactElement | string;
|
|
6
|
-
};
|
|
7
|
-
declare const TripDetail: ({ icon, summary, description }: Props) => JSX.Element;
|
|
8
|
-
export default TripDetail;
|
|
9
|
-
//# sourceMappingURL=trip-detail.d.ts.map
|
package/lib/trip-detail.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trip-detail.d.ts","sourceRoot":"","sources":["../src/trip-detail.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAQtD,aAAK,KAAK,GAAG;IACX,WAAW,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,YAAY,GAAG,MAAM,CAAC;CAChC,CAAC;AAsBF,QAAA,MAAM,UAAU,mCAAoC,KAAK,KAAG,WAmD3D,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/lib/types.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { MassUnitOption, Fare, Itinerary, Money } from "@opentripplanner/types";
|
|
2
|
-
import type { ReactElement } from "react";
|
|
3
|
-
export interface TimeActiveDetailsProps {
|
|
4
|
-
bikeMinutes: number;
|
|
5
|
-
minutesActive?: number;
|
|
6
|
-
walkMinutes: number;
|
|
7
|
-
}
|
|
8
|
-
export interface CO2ConfigType {
|
|
9
|
-
carbonIntensity?: Record<string, number>;
|
|
10
|
-
units?: MassUnitOption;
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface DepartureDetailsProps {
|
|
14
|
-
departureDate: Date;
|
|
15
|
-
}
|
|
16
|
-
export declare enum FareTableText {
|
|
17
|
-
regular = "regular",
|
|
18
|
-
youth = "youth",
|
|
19
|
-
senior = "senior",
|
|
20
|
-
special = "special",
|
|
21
|
-
cash = "cash",
|
|
22
|
-
electronic = "electronic"
|
|
23
|
-
}
|
|
24
|
-
export interface FareTableLayout {
|
|
25
|
-
cols: {
|
|
26
|
-
header: FareTableText;
|
|
27
|
-
key?: string;
|
|
28
|
-
riderCategory?: string;
|
|
29
|
-
fareContainer?: string;
|
|
30
|
-
}[];
|
|
31
|
-
header: FareTableText;
|
|
32
|
-
}
|
|
33
|
-
export interface TransitFareData {
|
|
34
|
-
[key: string]: Money;
|
|
35
|
-
}
|
|
36
|
-
export interface FareDetailsProps {
|
|
37
|
-
maxTNCFare: number;
|
|
38
|
-
minTNCFare: number;
|
|
39
|
-
transitFares: TransitFareData;
|
|
40
|
-
}
|
|
41
|
-
export interface FareLegTableProps {
|
|
42
|
-
layout?: FareTableLayout[];
|
|
43
|
-
itinerary: Itinerary;
|
|
44
|
-
}
|
|
45
|
-
export interface TransitFareProps {
|
|
46
|
-
fareKey: string;
|
|
47
|
-
fareNameFallback?: ReactElement;
|
|
48
|
-
fareKeyNameMap: {
|
|
49
|
-
[key: string]: string;
|
|
50
|
-
};
|
|
51
|
-
transitFares: Fare;
|
|
52
|
-
}
|
|
53
|
-
export interface TripDetailsProps {
|
|
54
|
-
/**
|
|
55
|
-
* Used for additional styling with styled components for example.
|
|
56
|
-
*/
|
|
57
|
-
className?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Object containing the CO₂ config.
|
|
60
|
-
*/
|
|
61
|
-
co2Config?: CO2ConfigType;
|
|
62
|
-
/**
|
|
63
|
-
* Determines which transit fare should be displayed by default, should there be multiple transit fare types.
|
|
64
|
-
*/
|
|
65
|
-
defaultFareKey?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Slot for a custom component to render the expandable section for departure.
|
|
68
|
-
*/
|
|
69
|
-
DepartureDetails?: React.ElementType<DepartureDetailsProps>;
|
|
70
|
-
/**
|
|
71
|
-
* If this is set to true, a row will be added to the trip details displaying how
|
|
72
|
-
* many minutes in total the user will spend walking or biking.
|
|
73
|
-
*/
|
|
74
|
-
displayTimeActive?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Slot for a custom component to render the expandable section for fares.
|
|
77
|
-
*/
|
|
78
|
-
FareDetails?: React.ElementType<FareDetailsProps>;
|
|
79
|
-
/**
|
|
80
|
-
* Column and table configuration for fare details/fare by leg table.
|
|
81
|
-
*/
|
|
82
|
-
fareDetailsLayout?: FareTableLayout[];
|
|
83
|
-
/**
|
|
84
|
-
* Mapping between fare keys and human-readable names for them.
|
|
85
|
-
*/
|
|
86
|
-
fareKeyNameMap?: {
|
|
87
|
-
[name: string]: string;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Itinerary that the user has selected to view, contains multiple legs.
|
|
91
|
-
*/
|
|
92
|
-
itinerary: Itinerary;
|
|
93
|
-
/**
|
|
94
|
-
* Slot for a custom component to render the expandable section for time active.
|
|
95
|
-
*/
|
|
96
|
-
TimeActiveDetails?: React.ElementType<TimeActiveDetailsProps>;
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=types.d.ts.map
|
package/lib/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM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SAAS,CAAC,EAAE,MAAM,CAAC;IACjB;;KAEC;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC5D;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,EAAE,CAAC;IACtC;;OAEG;IACH,cAAc,CAAC,EAAE;QACf,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB,CAAC;IACF;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IACnB;;KAEC;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;CAC/D"}
|
package/lib/utils.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { FareTableText } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* Format text bold (used with FormattedMessage).
|
|
5
|
-
*/
|
|
6
|
-
export declare function boldText(contents: ReactElement): ReactElement;
|
|
7
|
-
/**
|
|
8
|
-
* Render formatted fare.
|
|
9
|
-
* @param currencyCode The ISO currency code to use (USD, GBP, EUR).
|
|
10
|
-
* @param fare The fare value, in currency units, to be shown.
|
|
11
|
-
* @returns The formatted fare value according to the selected locale.
|
|
12
|
-
*/
|
|
13
|
-
export declare function renderFare(currencyCode: string, fare: number): ReactElement;
|
|
14
|
-
export declare const getFormattedTextForConfigKey: (textKey: FareTableText) => JSX.Element;
|
|
15
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/lib/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAWxC;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAa3E;AAED,eAAO,MAAM,4BAA4B,YAAa,aAAa,gBA0DlE,CAAC"}
|
package/tsconfig.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es6.d.ts","../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","../../node_modules/@types/hoist-non-react-statics/index.d.ts","../../node_modules/@types/styled-components/index.d.ts","../../node_modules/@styled-icons/styled-icon/index.d.ts","./node_modules/@opentripplanner/types/lib/deprecated.d.ts","./node_modules/@opentripplanner/types/lib/index.d.ts","../../node_modules/@styled-icons/boxicons-regular/Transfer/Transfer.d.ts","./node_modules/@opentripplanner/core-utils/lib/itinerary.d.ts","../../node_modules/@formatjs/ecma402-abstract/CanonicalizeLocaleList.d.ts","../../node_modules/@formatjs/ecma402-abstract/CanonicalizeTimeZoneName.d.ts","../../node_modules/@formatjs/ecma402-abstract/CoerceOptionsToObject.d.ts","../../node_modules/@formatjs/ecma402-abstract/GetNumberOption.d.ts","../../node_modules/@formatjs/ecma402-abstract/GetOption.d.ts","../../node_modules/@formatjs/ecma402-abstract/GetOptionsObject.d.ts","../../node_modules/@formatjs/ecma402-abstract/IsSanctionedSimpleUnitIdentifier.d.ts","../../node_modules/@formatjs/ecma402-abstract/IsValidTimeZoneName.d.ts","../../node_modules/@formatjs/ecma402-abstract/IsWellFormedCurrencyCode.d.ts","../../node_modules/@formatjs/ecma402-abstract/IsWellFormedUnitIdentifier.d.ts","../../node_modules/@formatjs/ecma402-abstract/types/core.d.ts","../../node_modules/@formatjs/ecma402-abstract/types/plural-rules.d.ts","../../node_modules/@formatjs/ecma402-abstract/types/number.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponent.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponentForMagnitude.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/CurrencyDigits.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericToParts.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericToString.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/InitializeNumberFormat.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/PartitionNumberPattern.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/ToRawFixed.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/ToRawPrecision.d.ts","../../node_modules/@formatjs/ecma402-abstract/NumberFormat/format_to_parts.d.ts","../../node_modules/@formatjs/ecma402-abstract/PartitionPattern.d.ts","../../node_modules/@formatjs/ecma402-abstract/SupportedLocales.d.ts","../../node_modules/@formatjs/ecma402-abstract/utils.d.ts","../../node_modules/@formatjs/ecma402-abstract/data.d.ts","../../node_modules/@formatjs/ecma402-abstract/types/relative-time.d.ts","../../node_modules/@formatjs/ecma402-abstract/types/date-time.d.ts","../../node_modules/@formatjs/ecma402-abstract/types/list.d.ts","../../node_modules/@formatjs/ecma402-abstract/types/displaynames.d.ts","../../node_modules/@formatjs/ecma402-abstract/262.d.ts","../../node_modules/@formatjs/ecma402-abstract/index.d.ts","../../node_modules/@formatjs/icu-skeleton-parser/date-time.d.ts","../../node_modules/@formatjs/icu-skeleton-parser/number.d.ts","../../node_modules/@formatjs/icu-skeleton-parser/index.d.ts","../../node_modules/@formatjs/icu-messageformat-parser/types.d.ts","../../node_modules/@formatjs/icu-messageformat-parser/error.d.ts","../../node_modules/@formatjs/icu-messageformat-parser/parser.d.ts","../../node_modules/@formatjs/icu-messageformat-parser/index.d.ts","../../node_modules/intl-messageformat/src/formatters.d.ts","../../node_modules/intl-messageformat/src/core.d.ts","../../node_modules/intl-messageformat/src/error.d.ts","../../node_modules/intl-messageformat/index.d.ts","../../node_modules/@formatjs/intl-listformat/index.d.ts","../../node_modules/@formatjs/intl-displaynames/index.d.ts","../../node_modules/@formatjs/intl/src/error.d.ts","../../node_modules/@formatjs/intl/src/utils.d.ts","../../node_modules/@formatjs/intl/src/types.d.ts","../../node_modules/@formatjs/intl/src/message.d.ts","../../node_modules/@formatjs/intl/src/dateTime.d.ts","../../node_modules/@formatjs/intl/src/displayName.d.ts","../../node_modules/@formatjs/intl/src/list.d.ts","../../node_modules/@formatjs/intl/src/plural.d.ts","../../node_modules/@formatjs/intl/src/relativeTime.d.ts","../../node_modules/@formatjs/intl/src/number.d.ts","../../node_modules/@formatjs/intl/src/create-intl.d.ts","../../node_modules/@formatjs/intl/index.d.ts","../../node_modules/react-intl/src/utils.d.ts","../../node_modules/react-intl/src/types.d.ts","../../node_modules/react-intl/src/components/injectIntl.d.ts","../../node_modules/react-intl/src/components/useIntl.d.ts","../../node_modules/react-intl/src/components/provider.d.ts","../../node_modules/react-intl/src/components/relative.d.ts","../../node_modules/react-intl/src/components/plural.d.ts","../../node_modules/react-intl/src/components/message.d.ts","../../node_modules/react-intl/src/components/dateTimeRange.d.ts","../../node_modules/react-intl/src/components/createFormattedComponent.d.ts","../../node_modules/react-intl/index.d.ts","../../node_modules/@types/flat/index.d.ts","./src/types.ts","./src/utils.tsx","./src/fare-table.tsx","./node_modules/@opentripplanner/core-utils/lib/map.d.ts","./node_modules/@opentripplanner/core-utils/lib/route.d.ts","./node_modules/@opentripplanner/core-utils/lib/storage.d.ts","./node_modules/@opentripplanner/core-utils/lib/time.d.ts","./node_modules/@opentripplanner/core-utils/lib/ui.d.ts","../../node_modules/@conveyal/lonlat/dist/index.d.ts","./node_modules/@opentripplanner/core-utils/lib/query-gen.d.ts","./node_modules/@opentripplanner/core-utils/lib/index.d.ts","../../node_modules/@styled-icons/fa-solid/CalendarAlt/CalendarAlt.d.ts","../../node_modules/@styled-icons/fa-solid/Heartbeat/Heartbeat.d.ts","../../node_modules/@styled-icons/fa-solid/MoneyBillAlt/MoneyBillAlt.d.ts","../../node_modules/@styled-icons/fa-solid/Leaf/Leaf.d.ts","../../node_modules/@styled-icons/fa-solid/Route/Route.d.ts","./src/styled.ts","../../node_modules/@styled-icons/fa-solid/QuestionCircle/QuestionCircle.d.ts","../../node_modules/@styled-icons/fa-solid/TimesCircle/TimesCircle.d.ts","../../node_modules/react-animate-height/dist/esm/index.d.ts","./src/trip-detail.tsx","./src/index.tsx","./src/__unpublished__/messages.d.ts","../../node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__generator/index.d.ts","../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/index.d.ts","../../node_modules/@types/babel__traverse/index.d.ts","../../node_modules/@types/babel__core/index.d.ts","../../node_modules/@types/chroma-js/index.d.ts","../../node_modules/@types/color-name/index.d.ts","../../node_modules/@types/color-convert/conversions.d.ts","../../node_modules/@types/color-convert/route.d.ts","../../node_modules/@types/color-convert/index.d.ts","../../node_modules/@types/cookie/index.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostic_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/util/types.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/ts3.6/base.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/base.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@types/fs-extra/index.d.ts","../../node_modules/@types/geojson/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/glob/index.d.ts","../../node_modules/@types/graceful-fs/index.d.ts","../../node_modules/@types/unist/index.d.ts","../../node_modules/@types/hast/index.d.ts","../../node_modules/@types/html-minifier-terser/index.d.ts","../../node_modules/rxjs/internal/Subscription.d.ts","../../node_modules/rxjs/internal/types.d.ts","../../node_modules/rxjs/internal/Subscriber.d.ts","../../node_modules/rxjs/internal/Operator.d.ts","../../node_modules/rxjs/internal/observable/iif.d.ts","../../node_modules/rxjs/internal/observable/throwError.d.ts","../../node_modules/rxjs/internal/Observable.d.ts","../../node_modules/rxjs/internal/Subject.d.ts","../../node_modules/rxjs/internal/observable/ConnectableObservable.d.ts","../../node_modules/rxjs/internal/operators/groupBy.d.ts","../../node_modules/rxjs/internal/symbol/observable.d.ts","../../node_modules/rxjs/internal/BehaviorSubject.d.ts","../../node_modules/rxjs/internal/ReplaySubject.d.ts","../../node_modules/rxjs/internal/AsyncSubject.d.ts","../../node_modules/rxjs/internal/Scheduler.d.ts","../../node_modules/rxjs/internal/scheduler/Action.d.ts","../../node_modules/rxjs/internal/scheduler/AsyncScheduler.d.ts","../../node_modules/rxjs/internal/scheduler/AsyncAction.d.ts","../../node_modules/rxjs/internal/scheduler/AsapScheduler.d.ts","../../node_modules/rxjs/internal/scheduler/asap.d.ts","../../node_modules/rxjs/internal/scheduler/async.d.ts","../../node_modules/rxjs/internal/scheduler/QueueScheduler.d.ts","../../node_modules/rxjs/internal/scheduler/queue.d.ts","../../node_modules/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts","../../node_modules/rxjs/internal/scheduler/animationFrame.d.ts","../../node_modules/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts","../../node_modules/rxjs/internal/Notification.d.ts","../../node_modules/rxjs/internal/util/pipe.d.ts","../../node_modules/rxjs/internal/util/noop.d.ts","../../node_modules/rxjs/internal/util/identity.d.ts","../../node_modules/rxjs/internal/util/isObservable.d.ts","../../node_modules/rxjs/internal/util/ArgumentOutOfRangeError.d.ts","../../node_modules/rxjs/internal/util/EmptyError.d.ts","../../node_modules/rxjs/internal/util/ObjectUnsubscribedError.d.ts","../../node_modules/rxjs/internal/util/UnsubscriptionError.d.ts","../../node_modules/rxjs/internal/util/TimeoutError.d.ts","../../node_modules/rxjs/internal/observable/bindCallback.d.ts","../../node_modules/rxjs/internal/observable/bindNodeCallback.d.ts","../../node_modules/rxjs/internal/InnerSubscriber.d.ts","../../node_modules/rxjs/internal/OuterSubscriber.d.ts","../../node_modules/rxjs/internal/observable/combineLatest.d.ts","../../node_modules/rxjs/internal/observable/concat.d.ts","../../node_modules/rxjs/internal/observable/defer.d.ts","../../node_modules/rxjs/internal/observable/empty.d.ts","../../node_modules/rxjs/internal/observable/forkJoin.d.ts","../../node_modules/rxjs/internal/observable/from.d.ts","../../node_modules/rxjs/internal/observable/fromEvent.d.ts","../../node_modules/rxjs/internal/observable/fromEventPattern.d.ts","../../node_modules/rxjs/internal/observable/generate.d.ts","../../node_modules/rxjs/internal/observable/interval.d.ts","../../node_modules/rxjs/internal/observable/merge.d.ts","../../node_modules/rxjs/internal/observable/never.d.ts","../../node_modules/rxjs/internal/observable/of.d.ts","../../node_modules/rxjs/internal/observable/onErrorResumeNext.d.ts","../../node_modules/rxjs/internal/observable/pairs.d.ts","../../node_modules/rxjs/internal/observable/partition.d.ts","../../node_modules/rxjs/internal/observable/race.d.ts","../../node_modules/rxjs/internal/observable/range.d.ts","../../node_modules/rxjs/internal/observable/timer.d.ts","../../node_modules/rxjs/internal/observable/using.d.ts","../../node_modules/rxjs/internal/observable/zip.d.ts","../../node_modules/rxjs/internal/scheduled/scheduled.d.ts","../../node_modules/rxjs/internal/config.d.ts","../../node_modules/rxjs/index.d.ts","../../node_modules/@types/inquirer/lib/objects/choice.d.ts","../../node_modules/@types/inquirer/lib/objects/separator.d.ts","../../node_modules/@types/inquirer/lib/objects/choices.d.ts","../../node_modules/@types/inquirer/lib/utils/screen-manager.d.ts","../../node_modules/@types/inquirer/lib/prompts/base.d.ts","../../node_modules/@types/inquirer/lib/utils/paginator.d.ts","../../node_modules/@types/inquirer/lib/prompts/checkbox.d.ts","../../node_modules/@types/inquirer/lib/prompts/confirm.d.ts","../../node_modules/@types/inquirer/lib/prompts/editor.d.ts","../../node_modules/@types/inquirer/lib/prompts/expand.d.ts","../../node_modules/@types/inquirer/lib/prompts/input.d.ts","../../node_modules/@types/inquirer/lib/prompts/list.d.ts","../../node_modules/@types/inquirer/lib/prompts/number.d.ts","../../node_modules/@types/inquirer/lib/prompts/password.d.ts","../../node_modules/@types/inquirer/lib/prompts/rawlist.d.ts","../../node_modules/@types/inquirer/lib/utils/events.d.ts","../../node_modules/@types/inquirer/lib/utils/readline.d.ts","../../node_modules/@types/inquirer/lib/utils/utils.d.ts","../../node_modules/@types/through/index.d.ts","../../node_modules/@types/inquirer/lib/ui/baseUI.d.ts","../../node_modules/@types/inquirer/lib/ui/bottom-bar.d.ts","../../node_modules/@types/inquirer/lib/ui/prompt.d.ts","../../node_modules/@types/inquirer/index.d.ts","../../node_modules/@types/is-function/index.d.ts","../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../node_modules/jest-diff/build/types.d.ts","../../node_modules/jest-diff/build/diffLines.d.ts","../../node_modules/jest-diff/build/printDiffs.d.ts","../../node_modules/jest-diff/build/index.d.ts","../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../node_modules/@types/jest/index.d.ts","../../node_modules/@types/pixelmatch/index.d.ts","../../node_modules/ssim.js/dist/types.d.ts","../../node_modules/ssim.js/dist/index.d.ts","../../node_modules/@types/jest-image-snapshot/index.d.ts","../../node_modules/@types/jest-specific-snapshot/index.d.ts","../../node_modules/@types/js-levenshtein/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/json-stable-stringify/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/mapbox-gl/index.d.ts","../../node_modules/@types/mapbox__point-geometry/index.d.ts","../../node_modules/@types/pbf/index.d.ts","../../node_modules/@types/mapbox__vector-tile/index.d.ts","../../node_modules/@types/mdast/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/node-fetch/node_modules/form-data/index.d.ts","../../node_modules/@types/node-fetch/externals.d.ts","../../node_modules/@types/node-fetch/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/npmlog/index.d.ts","../../node_modules/@types/overlayscrollbars/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/parse5/index.d.ts","../../node_modules/@types/prettier/index.d.ts","../../node_modules/@types/pretty-hrtime/index.d.ts","../../node_modules/@types/qs/index.d.ts","../../node_modules/@types/react-syntax-highlighter/index.d.ts","../../node_modules/@types/retry/index.d.ts","../../node_modules/@types/scheduler/index.d.ts","../../node_modules/@types/set-cookie-parser/index.d.ts","../../node_modules/@types/source-list-map/index.d.ts","../../node_modules/@types/stack-utils/index.d.ts","../../node_modules/@types/tapable/index.d.ts","../../node_modules/@types/throttle-debounce/index.d.ts","../../node_modules/source-map/source-map.d.ts","../../node_modules/@types/uglify-js/index.d.ts","../../node_modules/vfile-message/index.d.ts","../../node_modules/@types/vfile/index.d.ts","../../node_modules/@types/webpack/node_modules/anymatch/index.d.ts","../../node_modules/@types/webpack-sources/node_modules/source-map/source-map.d.ts","../../node_modules/@types/webpack-sources/lib/Source.d.ts","../../node_modules/@types/webpack-sources/lib/CompatSource.d.ts","../../node_modules/@types/webpack-sources/lib/ConcatSource.d.ts","../../node_modules/@types/webpack-sources/lib/OriginalSource.d.ts","../../node_modules/@types/webpack-sources/lib/PrefixSource.d.ts","../../node_modules/@types/webpack-sources/lib/RawSource.d.ts","../../node_modules/@types/webpack-sources/lib/ReplaceSource.d.ts","../../node_modules/@types/webpack-sources/lib/SizeOnlySource.d.ts","../../node_modules/@types/webpack-sources/lib/SourceMapSource.d.ts","../../node_modules/@types/webpack-sources/lib/index.d.ts","../../node_modules/@types/webpack-sources/lib/CachedSource.d.ts","../../node_modules/@types/webpack-sources/index.d.ts","../../node_modules/@types/webpack/index.d.ts","../../node_modules/@types/webpack-env/index.d.ts","../../node_modules/@types/ws/index.d.ts","../../node_modules/@types/yargs-parser/index.d.ts","../../node_modules/@types/yargs/index.d.ts","../../node_modules/@types/yauzl/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"4ee363f83d7be2202f34fcd84c44da71bf3a9329fee8a05f976f75083a52ea94","a7e32dcb90bf0c1b7a1e4ac89b0f7747cbcba25e7beddc1ebf17be1e161842ad","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5a1b30146d105f86b15aaf11ff43af00c29972d18bc3b16c8b8f56aa47801733","affectsGlobalScope":true},"bfe1b52cf71aea9bf8815810cc5d9490fa9617313e3d3c2ee3809a28b80d0bb4",{"version":"6839e1779e1f61e0ed62b1ca3ff7e74dc70479a5455077a38434d0e404103c28","affectsGlobalScope":true},"a4ce8cb63b46ff55db10c4bdd3007240a42ba71c03f159ea7e6517aef9a8013c","d721892ce2795a30a7985bb3c939747e68d6c6c8f8890eaf28bef85062f883b4","5684d5e987394d88f8bcca827a4e0c340ea45928ed86794decd2cd0bce70d7aa","8a237d3bc8b7d9d4aa2f03d3ada1c230493177df302d91f9da46d69b730f0d9c","3b4ff06fbcc7df5da69a2f59f552bd5a8768bac27ae6d9629b2af79181dff262","13f6a3df166c16f3dcf81a87c26d9803c7fd7895e7fcc71b7c149f52ee24b639","1ee5885d5027d5193ecacf31e8ed6b6f03a3a6de2e4fb37a3280b71e65915af1","494bf82a2bd0cf241e89fdb21dd46f273e530f49f6599a985b7852f7322fc192","0edc48b402f3efa10343c59746b269ec3cab88ea08be63d73014c78d372e94ab","ba9f6d4253a5b902ddb60345aead6f691b89292f9387068bf99d9928e839a9af","eabe0e0f52a2c58966cbbed77ea6b13ff3efdab453d411c88fbf91ba4964a5ff","257369022582c2220790c87a487fda57b264e1dcb16bb9ce34172345e7f933f3","5753b9cbd5ea496f68d4459b83a5091c0dbb33a896434d2f43c5f5b9e3f4ffa8","abbf59b2100d962d82f9c842c4a20cb5db35aee74175e5c942b361138870d8eb","f408d89ab81d183abcdaaf9961ebe9ef1a892064c5790b4b87af0b7d05a43240","eb974217eac7354c2ee28c68b1fefb3aebb5839c7da0dc8b2e1670eb1bb73fc3","20f33c814aaef326c0e3f2e37f627f8e3b22d85b0859a1b47c1013f1eaa0b628","4c32e274c22c133d96fa3bd1e66af0e213c88d37372598442247e1ea2b3f3616","b446fafdc7c077bec8f3117e200fd8e8606799ef212804a58bae3b7cd3ac353c","bfd64f97f7e12d92ad6c50caddd7a5e91080ccf15e887d4574646dda09b5b8d5","4475d3f490464dd09f29d5a590392ebc9f3026a79f2f0ba247f7b3f2acc01655","09eae5649c2133876c6c07137142b2786f858ef7f2269c24c2320dc950ab1866","f2061152503791189f5fcee1e6000e1db3601a60dba32011e6ee2c3a12f23510","03e162e0e48312346141962cf4dd2aa1569a58feff88a33ac579840d24c3d165","29f7e25ee9edb7ac875d3fea892e6328a439b55b6dd994431d55315dced635ae","a1e456a92e80e7884ed0bf9c83eac71e31a7ec949eb5982d36811154bed6fb1f","3a378f155a084b9722c89ffc3d2b2ab62f50603aa80fd5d5614ade949007a891","4a254ae095bd9e42bb24b0b539fa3ad0889089f0f56c7f8b63acf2adfd4ada66","ca32554db1a6962f85143e6e9216883c0e439408541d4379eac2b80aed60cb5f","64a89eb80302eca86236ef2f40dd6b914aa42f35a7384893e7fe864b6961695f","99bb361d32c05762ab4ac1d647f750eb2e280070e30011b5feff952327d07844","19a5ca90bcba89bd8fcb7e02c379ca017dce60050e1e7671bf45f68d921870cc","84747db6b80b4e5567c21a82cbaeda7a9810307ba4023ff5ffcd90e1f7713172","214c8b4c06c4858b93230b16745a7a480cef4524b0e7745ef64755ee9b81aaf6","dea3cf3a10d7caaededded8f0a794ce9f8b17da31ccbb8ee9159d7bd2fce42ac","51dc756ec3df8a7599ef0d16268cf7cd429d5d226ceb53cf8f85657a4ade6c29","4480de0ded16219521ccf012892091e5ec44863039c965ff1664f7f4799f4126","eeaf71356de97a805f3dfb0dd93a16196da7d2480955063a79216a8fd4f1414b","c38905d6fda359cf384b9306d6b9782a1b055e6670c7894b0ffda04c81b8e59a","6beedecf272c57713b780ee23040cf45adbfedb92f893b4be80ad11fe42c1cbe","3e873837e506db540c03f5e1069427b11ed7e1a016bd29c0d83fb4c4ea9d519f","b85018c97705258ff235ae9ac44d532ab3546eb5d0354123bd781e8bea3bdc18","4386eea018b5f6eadd8dc9dc407642369bea81dcaebe64dc30285e736b102343","69818b78af77862718c44e8236defa5fd318281de3ea1a8d43f3b350439589a4","cd41024509c20e761a3bd6ce8a976f1a79ae8193e1fdba46396744136d1b6bd0","81b6d7ff019d77399bdebae52a370011cea01943fc7c2016c3dc846839206df0","407bddb7f03e070e7969eb2bc19bf931cb76ddbe2761326b8ca1f0cccb6bd35b","1135099814b6525159e76fa51f295bf05942f0d9ef84c7030f0a7ad7563531f5","5cca0d064ddbcbde07a28b74038b3f5c6b9cd41d328fd927b060da5d3c59da7b","aa29954e994b2c4566ff98b0ca2313aeffcf60924aa140053efd916a15127c6a","4e799b631914398921cd8edda132320100399522cc3c8809d7c4dad89a697c5b","29dd54502be10cc940895ade56490b55cbc3624e20b2badeb2dc1c743c641ee2","64a5448ea756e5b0f2470d16f68cb2f30d0f606c491c4e6e9f56334e9ee41190","6fd49eaee0916183cccea31985df1f27b81a89eca283e64376c10926436d4fd1","248b709d3e86c12a409badb69a4f1ad132438b9189e00096668d097d8082d089",{"version":"7be0ff644833a7105ad4afa61705b1853e4cb6e52d86e449a7d9797f97a57263","affectsGlobalScope":true},"77cd04a35d49e967b0d566d44452671650a14915b9d7176fa89c5fa87e0e46fd","94d55aa0d00aea91bcd576f60105b6f14d2bc405bd13bf0564cfa76d11b69d48","33076a79792c4eb785364eaf2ef832bfd5bdde5b1f39022af3de577ce06f213e","7ac4a9ffbac175a1f93858b6732cf2e66bd4675989d45790107a621fdbe30cca","465cc5c7e96c60fb0bbd3e1d6aee28f9eb286480a3b1a91d27dc3933fceeb722","c5142d610c6b422c39912b14200a9919410e98deb2553c420086fc43635d761c","9badb3e1a92ed9644a5ef6f372d56316fc0e52ca3fed4c957c26b6714a76f9f4","7f7193422705cc4e69d4f6781da20ba3780719fc13592f3c6777866945049a64","ca2aec1a5ca037aa66b6291dbcd2cda26dc3f94e9bff08ad34e8050012017b2e","df3a3f23c1125459b7dc5186d2c314d7da4c56cf17c0c637d6f59b06856d7cb2","f3334e3fe73231bcd013653fbc8cc0fe08ea690afc41ccc497bfde0c7bb0e580","3e4ef6a498457322df6a2b212c740f3a8e909237ce159e56e3b2364ad949f58b","df5c276a5ae10d32421d2b3924035a71e074031e0a8d4649881782f926dd55a1","01b002cf26575fa47c3a33b200fee5a8300916ad9b94705d3cbc4fdfb0e75a51","b2fbd3ecedbc082d84e5ce8b52f69ea1b2284a256f945657e25fec32931e3f02","6a71a31f883062f6d471db722889637d64f0386788a74dada2e4fcda70cfef97","4fd8fd85ee70843365438aaa5c2faeec87d3f9f186a505b5831f06f0a2c5b237","d4a08b08f4a2ecf0407180e99c8201d724c64ce7ce6137d9ed3b9b6f0f61662e","9d137a1f88aed0f776de971bc319754673efd28097b31006948d2ed54146db29","516e2ded162ddc84294deb452dda9982b2a938e6df2d7f838ae0fd8b4ed38159","d9890ea8f1da57be3c2e2d3627b787cd4b4a463fd1747c823a0de24b240c8fe5","a40c17c1ff099c46c79e51327b92b0f1a7712f9d675ec4bda7ef896e834d7e9a","b2c28fb44157550c57f13db87dfdc6a0012763626621732d395724017cdc9de7","837624ebd0ba86669afc6241b3ddfadc951f5bbc6780a1d4d32f1f753d66cce5","1dd55f033c2cef7bd9d60472df068b2387205ae1cfdce77f07dbda6fae38cbe5","13d814efd808002fe2486fb15c9ff8f0a0e5a4552efa7455008ac3dce8294607","1e9704378dc57075033c705776320e7122c7c27853f503649d56f5582863ddfc","f9a9c9cc5c67d1be3179f1a6372e9b34d1f79c367e528566d846e9a77503d255","3500cb4a6ce399f44f2b6e34700cba39c17cb9211967301084c2fa8aea47855a","17b984497972e22bcde81e57083484ddb1a9ecff70093669f92c09f19b762f2d","fb2d93c1e8792c626c6b577ee1009ddc97e25a1008b242a120ca3c0539564046","5c45d0c79b75091faed1ce535e2d7a336efd9ea0cd5527f0b84e74b9204f162f","0f45bc35aa17950b1198b3db89c3103736a925f3977086cfce73eca8cb725563","343207da98112e392e81971c3941a051ac4fb6659436efc44bfa7b3a353d75f4","573f44d54725af32c1c805f969cae9e59f525df24403861a54daffe1f182ff35","5d90c7c541342fd6e3638425729a999e8dc0b3977a761ac6f58b1f46c060545b","3d271456988cb89ce51fc89e926bff197c426f97e8b7fd1bd8f6479eda4b2db1","fa7f760d811c95b49c68f14f80032b1ade78cc0d2dd7c6be3c2c20510601d692","563c1fcde02255200d959c93e6b2756d4a662ffa9583af66fc98681a83ac2cbf","e6ea9da1ac670e1821f071e516717f29d87aeb19f87f695ed9b6496a91d8957b","8cf7aaafe018cce608f7a802f1b83b87478292d7b33e5098ed36280a257e3c83","5ab8bd6d0955bbdf528e33ca5e99f94428ef2bd4a9794e172eb4668062025b16","38974b68a9dbed4d2762c08fde904e6c56bdb472caf34276af9dd32fef3e0221","48270f2ef65915134e0459c517a3271486a99b451209f7a4c16c62f52c9b6b1b","98f40132aab59240e3daa408377a6f779aa81f4340f4451959cd2eba3750e456","b25c5f2970d06c729f464c0aeaa64b1a5b5f1355aa93554bb5f9c199b8624b1e","8670878e030b88a469db43b36ef90ffa208e74faf249416feeb8fbb6b646b4a9","3051751533eee92572241b3cef28333212401408c4e7aa21718714b793c0f4ed","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2","fae40de985385b22f775c1bea02959b251abddaa1cb168ee6c4f00d79ccfd8ef","f0cb4b3ab88193e3e51e9e2622e4c375955003f1f81239d72c5b7a95415dad3e","92450d617e92f96354d281c8ed5613fd16cacea79eb60b1e9736494b3c057e69","8a9086357fe289efb682dc925358f30b6312c7219a5ca92212857a0a79612012","92bc42ed0e2d41559513fd457ee30d834c2f0fedb9ed5004c029cbf0ad2f8bd9","117ffeecf6c55e25b6446f449ad079029b5e7317399b0a693858faaaea5ca73e","7d7c8ef7d48a035142c07dae60545ecc0e4af4c337742760cb09726f2f8e31db","c7bdc99177a2a94d25fb13722adaaf5b3291bf70b4d1b27584ba189dd3889ba3",{"version":"41a44aa1929121f5c3124733b5ca9c59717a092b899b3771cc983939ae99eeb2","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","a473cf45c3d9809518f8af913312139d9f4db6887dc554e0d06d0f4e52722e6b","297f4ea4e4a5161a6627bc65c83040a91e0792e92bdc4764e24650831cc9867c","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","5375c30f03b01e610f7370e40ccf3ade1d96de99e9a9a9a0cb0f96fc98aefb71","797a9d37eb1f76143311c3f0a186ce5c0d8735e94c0ca08ff8712a876c9b4f9e","5cc0a492da3602510b8f5ed1852b1e0390002780d8758fbc8c0cd023ca7085f8","ec7dafafe751a5121f8f1c80201ebe7e7238c47e6329280a73c4d1ca4bb7fa28","64debeb10e4b7ae4ec9e89bfb4e04c6101ab98c3cc806d14e5488607cfec2753",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"a5782d6cea81fe43d2db7ed41e789458c933ab3ab60602f7b5b14c4da3370496","affectsGlobalScope":true},"bd30510d2d803f453e10604277088a46327f5f0b6aa2b957306c458d7428f8f7","214cf066391a5a651001ebcee2c21ee4d45e8124579d271c59d7c2343bb9d29a","d28c8598067b15c7643558b936e68caefe5d171d0e629e19e2aa6ca870bb4b00","15543feaed3ce6b96bc0508f3e3f8b8f729fae62d0609bddacd483145e71c594","13257840c0850d4ebd7c2b17604a9e006f752de76c2400ebc752bc465c330452","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","6ea59cf5479f3fad5db2caa4513d8d06d6cfee8d8df69e7a040c9b5b7f25f39c","69640cc2e76dad52daeb9914e6b70c5c9a5591a3a65190a2d3ea432cf0015e16","3ec1e108d587a5661ec790db607f482605ba9f3830e118ce578e3ffa3c42e22b","2e37dc691cb5511f49be0f8ba0df3259aa0b453b0098b436e478e60c06567ae0",{"version":"dd3f82b87fa256e7c5a66c9b8ddcc9b53275b3531c10a769722c5103a30a97e9","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","f6ea38ddcee37ec1bebde700e3a4d85040bf2d239600c877ecefd9b265066b24","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","1a63584d6605d1d5b5fd5c4fa2dc2fa5a2134aa775fcfd95fbdb705971c9ca29","fd2298fba0640e7295e7bd545e2dfbfcccbb00c27019e501c87965a02bbdebf6","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","f49709e8c096b05aca0674d39f471aa05261de7c756df9abdf4a53ed0fa98901","baca27d1de400e027cdc70217ca73e414002baef5798aa24a921097c20066fa1","75b9229192e6da08f6e06daa2b9243c251e14f179dfcc9cc9bf02dd70eabeb48","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","f4149f1aa299474c7040a35fe8f8ac2ad078cc1b190415adc1fff3ed52d490ea","3730099ed008776216268a97771de31753ef71e0a7d0ec650f588cba2a06ce44","8d649dbc429d7139a1d9a14ea2bf8af1dc089e0a879447539587463d4b6c248c","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","0431a29ecc5bb615e6d6d1709941bdf16e708f760099d017f5408a1e68e2d248","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"4e0a4d84b15692ea8669fe4f3d05a4f204567906b1347da7a58b75f45bae48d3","1288f8ee930c03fd535824f8fe852375ec7181d73e4c1f445b82b414c95c5bbe","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","30368d3789ec56ef3006c5f2115bd00faa21471aed6cbe6fec54a5683e5497ed","6435575b4feae200831d37df9f871de6e695c64d3148611fe1b4d714d648ea24","8c2e6e491e1a08855b8bf70820184ff66ae0d43f7cf0311fc680e6d860af211c","95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2","725b884357ba84171341a8e4cc08edf11417854fd069842ca6d22afb2e340e45","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","1320ee42b30487cceb6da9f230354fc34826111f76bf12f0ad76c717c12625b0","b6e83cdeca61289e5ffd770e55ed035babdffadd87d1ffa42b03e9fe8411333f","6767cce098e1e6369c26258b7a1f9e569c5467d501a47a090136d5ea6e80ae6d","6cb35d83d21a7e72bd00398c93302749bcd38349d0cc5e76ff3a90c6d1498a4d",{"version":"369dd7668d0e6c91550bce0c325f37ce6402e5dd40ecfca66fbb5283e23e559d","affectsGlobalScope":true},"2632057d8b983ee33295566088c080384d7d69a492bc60b008d6a6dfd3508d6b","4bf71cf2a94492fc71e97800bdf2bcb0a9a0fa5fce921c8fe42c67060780cbfa","0996ff06f64cb05b6dac158a6ada2e16f8c2ccd20f9ff6f3c3e871f1ba5fb6d9","5c492d01a19fea5ebfff9d27e786bc533e5078909521ca17ae41236f16f9686a","a6ee930b81c65ec79aca49025b797817dde6f2d2e9b0e0106f0844e18e2cc819","84fce15473e993e6b656db9dd3c9196b80f545647458e6621675e840fd700d29","7d5336ee766aa72dffb1cc2a515f61d18a4fb61b7a2757cbccfb7b286b783dfb","63e96248ab63f6e7a86e31aa3e654ed6de1c3f99e3b668e04800df05874e8b77","80da0f61195385d22b666408f6cccbc261c066d401611a286f07dfddf7764017","06a20cc7d937074863861ea1159ac783ff97b13952b4b5d1811c7d8ab5c94776","ab6de4af0e293eae73b67dad251af097d7bcc0b8b62de84e3674e831514cb056","18cbd79079af97af66c9c07c61b481fce14a4e7282eca078c474b40c970ba1d0","e7b45405689d87e745a217b648d3646fb47a6aaba9c8d775204de90c7ea9ff35","669b754ec246dd7471e19b655b73bda6c2ca5bb7ccb1a4dff44a9ae45b6a716a","bcfaca4a8ff50f57fd36df91fba5d34056883f213baff7192cbfc4d3805d2084","76a564b360b267502219a89514953058494713ee0923a63b2024e542c18b40e5","8f62cbd3afbd6a07bb8c934294b6bfbe437021b89e53a4da7de2648ecfc7af25","a20629551ed7923f35f7556c4c15d0c8b2ebe7afaa68ceaab079a1707ba64be2","d6de66600c97cd499526ddecea6e12166ab1c0e8d9bf36fb2339fd39c8b3372a","8e7a5b8f867b99cc8763c0b024068fb58e09f7da2c4810c12833e1ca6eb11c4f","a8932876de2e3138a5a27f9426b225a4d27f0ba0a1e2764ba20930b4c3faf4b9","df877050b04c29b9f8409aa10278d586825f511f0841d1ec41b6554f8362092b","027d600e00c5f5e1816c207854285d736f2f5fa28276e2829db746d5d6811ba1","5443113a16ef378446e08d6500bb48b35de582426459abdb5c9704f5c7d327d9","0fb581ecb53304a3c95bb930160b4fa610537470cce850371cbaad5a458ca0d9","7da4e290c009d7967343a7f8c3f145a3d2c157c62483362183ba9f637a536489","eb21ddc3a8136a12e69176531197def71dc28ffaf357b74d4bf83407bd845991","914560d0c4c6aa947cfe7489fe970c94ba25383c414bbe0168b44fd20dbf0df4","4fb3405055b54566dea2135845c3a776339e7e170d692401d97fd41ad9a20e5d","8d607832a6ef0eac30657173441367dd76c96bf7800d77193428b922e060c3af","20ff7207f0bb5cdde5fee8e83315ade7e5b8100cfa2087d20d39069a3d7d06f4","7ca4c534eab7cff43d81327e369a23464bc37ef38ce5337ceff24a42c6c84eb2","5252dec18a34078398be4e321dee884dc7f47930e5225262543a799b591b36d2","23caed4dff98bd28157d2b798b43f1dfefe727f18641648c01ce4e0e929a1630","f67e013d5374826596d7c23dbae1cdb14375a27cd72e16c5fb46a4b445059329","ea3401b70e2302683bbf4c18b69ef2292b60f4d8f8e6d920413b81fb7bde0f65","71afe26642c0fb86b9f8b1af4af5deb5181b43b6542a3ff2314871b53d04c749","0d7f01634e6234d84cf0106508efdb8ae00e5ed126eff9606d37b031ac1de654","f8d209086bad78af6bd7fef063c1ed449c815e6f8d36058115f222d9f788b848","3ad003278d569d1953779e2f838f7798f02e793f6a1eceac8e0065f1a202669b","fb2c5eceffcd918dbb86332afa0199f5e7b6cf6ee42809e930a827b28ef25afe","f664aaff6a981eeca68f1ff2d9fd21b6664f47bf45f3ae19874df5a6683a8d8a","ce066f85d73e09e9adbd0049bcf6471c7eefbfc2ec4b5692b5bcef1e36babd2a","09d302513cacfbcc54b67088739bd8ac1c3c57917f83f510b2d1adcb99fd7d2a","3faa54e978b92a6f726440c13fe3ab35993dc74d697c7709681dc1764a25219f","2bd0489e968925eb0c4c0fb12ef090be5165c86bd088e1e803102c38d4a717d8","88924207132b9ba339c1adb1ed3ea07e47b3149ff8a2e21a3ea1f91cee68589d","b8800b93d8ab532f8915be73f8195b9d4ef06376d8a82e8cdc17c400553172d6","d7d469703b78beba76d511957f8c8b534c3bbb02bea7ab4705c65ef573532fb8","74c8c3057669c03264263d911d0f82e876cef50b05be21c54fef23c900de0420","b303eda2ff2d582a9c3c5ecb708fb57355cdc25e8c8197a9f66d4d1bf09fda19","4e5dc89fa22ff43da3dee1db97d5add0591ebaff9e4adef6c8b6f0b41f0f60f0","ec4e82cb42a902fe83dc13153c7a260bee95684541f8d7ef26cb0629a2f4ca31","5f36e24cd92b0ff3e2a243685a8a780c9413941c36739f04b428cc4e15de629d","40a26494e6ab10a91851791169582ab77fed4fbd799518968177e7eefe08c7a9","208e125b45bc561765a74f6f1019d88e44e94678769824cf93726e1bac457961","b3985971de086ef3aa698ef19009a53527b72e65851b782dc188ac341a1e1390","c81d421aabb6113cd98b9d4f11e9a03273b363b841f294b457f37c15d513151d","30063e3a184ff31254bbafa782c78a2d6636943dfe59e1a34f451827fd7a68dc","c05d4cae0bceed02c9d013360d3e65658297acb1b7a90252fe366f2bf4f9ccc9","6f14b92848889abba03a474e0750f7350cc91fc190c107408ca48679a03975ae","a588d0765b1d18bf00a498b75a83e095aef75a9300b6c1e91cbf39e408f2fe2f","502bd3d3dd93b012e56864157c9ec3a3a53695fb05d1f42671f3e6314698a665","6b1b045b3e848a844ff1922ce2f82925f21d482bdeba5710883ab0c7df2c7e2b","8fac536b0b73249d9153424adafe49282c389a08163544917c18dfc1ddcbbd25","05a21cbb7cbe1ec502e7baca1f4846a4e860d96bad112f3e316b995ba99715b7","1eaee2b52f1c0e1848845a79050c1d06ae554d8050c35e3bf479f13d6ee19dd5","fd219904eea67c470dfebbaf44129b0db858207c3c3b55514bdc84de547b1687","4de232968f584b960b4101b4cdae593456aff149c5d0c70c2389248e9eb9fbac","9d6f6d1d788d8010417b914f4bad17be02645c6c5177a098dca97bee7561a0e1","c5430542eeebb207d651e8b00a08e4bb680c47ecb73dd388d8fa597a1fc5de5b","a6c5c9906262cf10549989c0061e5a44afdc1f61da77d5e09418a9ecea0018fe","1405d8968a5da39a3aed8c1701ca813d3284f51adb87b184337bb35402b077eb","33d63a317a3d2f2e06a10cf04a5caf7a781fe5f644a0dda5dfe81883c1ab2cca","ab60a5aea46b4fd3ee9d52ba0059d908f6f974cf4aba52a693f03361aa1adec0","7faa24bb6f24e79337fa302cc328d9f50ba3fb1af45a5aedcaa64e9b326a0bab","1a8f503c64bdb36308f245960d9e4acac4cf65d8b6bd0534f88230ebf0be7883","83c54a3b3e836d1773b8c23ff76ce6e0aae1a2209fc772b75e9de173fec9eac0","475e411f48f74c14b1f6e50cc244387a5cc8ce52340dddfae897c96e03f86527","948d08b7c693d1a4d0101bd2a48a2930e814811acde8f2a4c1226fd4a907cac0","656424ca784760c679bf2677d8aaf55d1cb8452cd0ac04bbe1c0f659f45f8c11","a2c1f4012459547d62116d724e7ec820bb2e6848da40ea0747bf160ffd99b283","0dc197e52512a7cbea4823cc33c23b0337af97bd59b38bf83be047f37cd8c9a8","492c93ade227fe4545fabb3035b9dd5d57d8b4fde322e5217fdaef20aa1b80a8","e84784554ccec0a03886acbd0b08dece208335465800bc3b5c9ab152c780a303","11ef35fa1e8aef8229ce6b62ac1a6a0761d1d4bb4de1538bce6d10762a919139","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","029769d13d9917e3284cb2356ed28a6576e8b07ae6a06ee1e672518adf21a102","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"f30350dd37c3f3c11f47adb7ce4e7a4928f578f4ae8a3197e0c8a0811da46b92","948a49768a6f616ae03f7ce6ad074a0bf0cf1d139409041e0d441d037c49aabd","58729ebab0d9f2f97c1f976204c3541a1ea865811ecbeac421fbd887eb3f82e2",{"version":"a4a1baaca291763a32fb2011afe7c1d17c522b2429500455ac94dcde1abfc954","affectsGlobalScope":true},{"version":"597e57d1aed6e56c5711328daa1a5f835d9aa1a23093f133d98acabeedff06fe","affectsGlobalScope":true},"15a58e61533036fb08dfd567fa7b1f799acdedf0cacf5cbc93bbed0f0520e87f","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","626520302b2c8880e9eaa3a6a12022cc8b577a32e4d903aef85e3dd275063da4","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","a49c26a7bad73494e987a795709e298223800407fa4e5c40c28539f752eb32ad","e86cd9c6c99834f8591ed72f08e4ca31570296f081206d0168f58f032cec5b58","2a856615ecd0af49997dfbb38cf94fd787d529062a2e96ce26b84432e61d785d","ab438f22fa7748112b6b9744b992ab6049d2fa6f46f011c145ff9c90e533856a","9a6d65d77455efaaaeff945bea30c38b8fe0922b807ba45cd23792392f1bfe76","e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","8fe9135b86994075c4192f3358a4350389e80d3abec712db2a82061962d9d21c","e0014889f31fee76a572b6b15e74b2174cbcf6346ae8ab5c69eb553a10e5c944","c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613","0d65b782b1a9b5891802ef2022c78481b19dfe133ba8d9f7596fe1320314342d","1502b874bbaafdb762b3907945740f787058a6aabff5e27377f9b45e4bb08ff3","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","c555dd691dd05955e99cd93dd99c685a65e5287813ccb5e6bfde951183248e26","65455ea1b00bae7bd26d3c8c2401eb3d10401c09c55192d6f3b8b2275eda20c2","b91aaad5f9c3f5dca5e8245d5f6464bdc63a77ba4453bb3e2d0c93959cddb13c","98437d5a640b67c41534f0de2dcb64c75433dcdff54ff8f8432e613663619a2e",{"version":"cffd3848b7af4922d70028c805b7df5e8f0eac4a8d2410b0f55b47ca62c6c3a8","affectsGlobalScope":true},"199f9ead0daf25ae4c5632e3d1f42570af59685294a38123eef457407e13f365","3169db033165677f1d414baf0c82ba27801089ca1b66d97af464512a47df31b5","db1bcf6210cc48986c17a758bff8dca8c4b93c3e9cc6cefd50316dcc5f90e1d1","67fc055eb86a0632e2e072838f889ffe1754083cb13c8c80a06a7d895d877aae","41422586881bcd739b4e62d9b91cd29909f8572aa3e3cdf316b7c50f14708d49","d558a0fe921ebcc88d3212c2c42108abf9f0d694d67ebdeba37d7728c044f579","4e22b9ea2805fec5f3c120146a690e5604a3117dbdee648c85393f58422eec16","2887592574fcdfd087647c539dcb0fbe5af2521270dad4a37f9d17c16190d579","bee79f5862fe1278d2ba275298862bce3f7abf1e59d9c669c4b9a4b2bba96956","a937bfb110176509a5fd6308b823e795525e7af8a12f1833f6567da6953ed035","6f56706c6828d0299f46f8b1a79ecae0757b91b48e63baf6f0c5292d02037129","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","b90c59ac4682368a01c83881b814738eb151de8a58f52eb7edadea2bcffb11b9","8560a87b2e9f8e2c3808c8f6172c9b7eb6c9b08cb9f937db71c285ecf292c81d","ffe3931ff864f28d80ae2f33bd11123ad3d7bad9896b910a1e61504cc093e1f5","083c1bd82f8dc3a1ed6fc9e8eaddf141f7c05df418eca386598821e045253af9","274ebe605bd7f71ce161f9f5328febc7d547a2929f803f04b44ec4a7d8729517","6ca0207e70d985a24396583f55836b10dc181063ab6069733561bfde404d1bad","5908142efeaab38ffdf43927ee0af681ae77e0d7672b956dfb8b6c705dbfe106","f772b188b943549b5c5eb803133314b8aa7689eced80eed0b70e2f30ca07ab9c","0026b816ef05cfbf290e8585820eef0f13250438669107dfc44482bac007b14f","8ef5aad624890acfe0fa48230edce255f00934016d16acb8de0edac0ea5b21bb","9af6248ff4baf0c1ddc62bb0bc43197437bd5fb2c95ff8e10e4cf2e699ea45c1","d84398556ba4595ee6be554671da142cfe964cbdebb2f0c517a10f76f2b016c0","89b42f8ee5d387a39db85ee2c7123a391c3ede266a2bcd502c85ad55626c3b2b","99c7f3bbc03f6eb3e663c26c104d639617620c2925e76fc284f7bedf1877fa2b",{"version":"5b3e6ce357a7a1a07c858432a3d2002750058725874db09a03a0a9e899d861f5","affectsGlobalScope":true},"77c5c7f8578d139c74102a29384f5f4f0792a12d819ddcdcaf8307185ff2d45d","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","1a81627b04dd2feab19e26d3df04e79f50d5dae42b9b5f9181d23dc820c9f048","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"jsx":2,"module":1,"noEmitOnError":false,"outDir":"./lib","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"target":2},"fileIdsList":[[140],[57],[45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78],[55],[55,56],[55,57],[83],[83,85],[83,84],[79,82],[80,81],[79],[93,94,95,96,97,98,99,100,101,102,103],[95],[79,95],[91,95],[86,90,95],[79,86,90,91,92,93,94],[40],[37,39],[140,141,142,143,144],[140,142],[147],[148,149],[148],[168,204],[167,204,207],[210],[37],[182,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,297,298],[299],[277,278,299],[182,276,280,299],[182,281,282,299],[182,281,299],[182,276,281,299],[182,287,299],[182,299],[295,296,299],[276,296,299],[182,276],[280],[182],[276,299],[301],[301,302],[311,312,314],[311],[308,310],[309],[206],[206,322,323],[170,192,204,327,328],[170,184,204],[202],[201,202],[167,168,175,184],[157,167,175],[193],[161,168,176],[184,189],[164,167,175],[165],[164],[167],[167,169,184,192],[167,168],[175,184,192],[167,168,170,175,184,189,192],[170,189,192],[203],[192],[164,167,184],[177],[155],[191],[182,193,196],[167,185],[184],[187],[175],[153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200],[181],[194],[161,167,169,178,184,192,196],[204],[37,338],[33,34,35,36],[170,204],[34,37,38],[184,204],[346],[204,210,348],[204,352,353,354,355,356,357,358,359,360,361,362],[351,352,361],[352,361],[342,351,352,361],[352],[161,351,361],[351,352,353,354,355,356,357,358,359,360,362],[161,204,344,346,347,350,363],[167,170,172,184,189,192,198,204],[367],[167,184,204],[87,88,89],[86,87],[79,86],[304,305],[304,305,306,307],[37,79,86,91,92,104,106,107,108,109,110,111,112,113,114],[37,91,104,106],[37,79,104],[37,106],[37,90,104],[37,104],[37,104,106],[106],[37,104,105],[37,90,106],[213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,232,233,235,237,238,239,240,241,242,243,244,245,246,247,248,249,250,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275],[213,215,220],[215,252],[214,219],[213,214,215,216,217,218],[214,215],[215,251],[213,214,215,220],[213,214,228],[213,214,215,216,219],[213,214],[214],[213,215,219,220],[214,215,216,219,252],[219],[219,259],[213,214,215,219],[214,215,216,219],[213,214,215,219,220],[276],[213,214,227],[229,230],[213,214,228,229],[213,214,227,228,230],[229],[213,214,229,230],[236],[231],[234],[213,219],[313],[44,120,121,122,123,124,126],[42],[42,125],[37,40,41],[37,39,42,43,44,115,116,117,118,139],[37,115,116,117,118,119,127,128,129,130,131,132,133,137,139],[39],[37,115,133,134,135,136],[37,42],[37,115,116,117,139]],"referencedMap":[[142,1],[58,2],[59,2],[61,2],[62,2],[63,2],[64,2],[65,2],[66,2],[67,2],[68,2],[69,2],[79,3],[77,4],[76,4],[57,5],[56,6],[74,5],[84,7],[86,8],[85,9],[83,10],[82,11],[81,12],[92,12],[91,12],[104,13],[103,14],[97,15],[98,14],[93,14],[99,16],[96,17],[102,14],[100,15],[101,14],[95,18],[94,15],[43,19],[128,19],[129,19],[131,19],[130,19],[134,19],[132,19],[135,19],[40,20],[145,21],[141,1],[143,22],[144,1],[148,23],[150,24],[149,25],[205,26],[208,27],[209,26],[211,28],[38,29],[299,30],[277,31],[279,32],[278,31],[281,33],[283,34],[284,35],[285,36],[286,34],[287,35],[288,34],[289,37],[290,35],[291,34],[296,38],[297,39],[298,40],[292,41],[282,42],[293,43],[280,43],[294,44],[302,45],[303,46],[315,47],[316,48],[311,49],[310,50],[321,51],[324,52],[325,28],[329,53],[327,54],[153,55],[203,56],[157,57],[158,58],[159,59],[160,60],[161,61],[162,62],[164,63],[165,64],[166,65],[167,65],[168,66],[169,67],[170,68],[171,69],[172,70],[204,71],[173,65],[174,72],[175,73],[177,74],[178,75],[179,76],[182,65],[183,77],[184,78],[185,79],[188,80],[189,81],[201,82],[191,81],[192,83],[193,84],[195,79],[197,85],[198,79],[331,65],[312,86],[338,87],[37,88],[341,89],[39,90],[295,91],[347,92],[349,93],[363,94],[362,95],[353,96],[354,97],[355,97],[356,96],[357,96],[358,96],[359,98],[352,99],[360,95],[361,100],[364,101],[366,102],[368,103],[369,104],[90,105],[88,106],[87,107],[306,108],[308,109],[307,108],[136,29],[115,110],[114,111],[113,112],[107,113],[112,114],[111,115],[109,116],[110,112],[108,117],[106,118],[105,119],[276,120],[226,121],[224,121],[251,122],[239,123],[219,124],[216,125],[252,126],[225,127],[227,128],[220,129],[215,130],[213,131],[221,132],[249,123],[250,123],[253,133],[254,123],[255,123],[256,123],[257,123],[258,123],[259,134],[260,135],[261,123],[217,123],[262,123],[263,123],[264,134],[265,123],[266,123],[267,136],[268,123],[269,133],[270,123],[218,123],[271,123],[272,123],[273,137],[222,138],[274,139],[228,140],[236,141],[231,141],[230,142],[229,143],[234,144],[238,145],[237,146],[232,147],[233,144],[235,148],[214,149],[243,134],[240,131],[314,150],[348,28],[127,151],[44,152],[120,152],[126,153],[121,152],[123,152],[41,29],[42,154],[119,155],[138,156],[133,157],[137,158],[117,159],[118,160]],"exportedModulesMap":[[142,1],[58,2],[59,2],[61,2],[62,2],[63,2],[64,2],[65,2],[66,2],[67,2],[68,2],[69,2],[79,3],[77,4],[76,4],[57,5],[56,6],[74,5],[84,7],[86,8],[85,9],[83,10],[82,11],[81,12],[92,12],[91,12],[104,13],[103,14],[97,15],[98,14],[93,14],[99,16],[96,17],[102,14],[100,15],[101,14],[95,18],[94,15],[43,19],[128,19],[129,19],[131,19],[130,19],[134,19],[132,19],[135,19],[40,20],[145,21],[141,1],[143,22],[144,1],[148,23],[150,24],[149,25],[205,26],[208,27],[209,26],[211,28],[38,29],[299,30],[277,31],[279,32],[278,31],[281,33],[283,34],[284,35],[285,36],[286,34],[287,35],[288,34],[289,37],[290,35],[291,34],[296,38],[297,39],[298,40],[292,41],[282,42],[293,43],[280,43],[294,44],[302,45],[303,46],[315,47],[316,48],[311,49],[310,50],[321,51],[324,52],[325,28],[329,53],[327,54],[153,55],[203,56],[157,57],[158,58],[159,59],[160,60],[161,61],[162,62],[164,63],[165,64],[166,65],[167,65],[168,66],[169,67],[170,68],[171,69],[172,70],[204,71],[173,65],[174,72],[175,73],[177,74],[178,75],[179,76],[182,65],[183,77],[184,78],[185,79],[188,80],[189,81],[201,82],[191,81],[192,83],[193,84],[195,79],[197,85],[198,79],[331,65],[312,86],[338,87],[37,88],[341,89],[39,90],[295,91],[347,92],[349,93],[363,94],[362,95],[353,96],[354,97],[355,97],[356,96],[357,96],[358,96],[359,98],[352,99],[360,95],[361,100],[364,101],[366,102],[368,103],[369,104],[90,105],[88,106],[87,107],[306,108],[308,109],[307,108],[136,29],[115,110],[114,111],[113,112],[107,113],[112,114],[111,115],[109,116],[110,112],[108,117],[106,118],[105,119],[276,120],[226,121],[224,121],[251,122],[239,123],[219,124],[216,125],[252,126],[225,127],[227,128],[220,129],[215,130],[213,131],[221,132],[249,123],[250,123],[253,133],[254,123],[255,123],[256,123],[257,123],[258,123],[259,134],[260,135],[261,123],[217,123],[262,123],[263,123],[264,134],[265,123],[266,123],[267,136],[268,123],[269,133],[270,123],[218,123],[271,123],[272,123],[273,137],[222,138],[274,139],[228,140],[236,141],[231,141],[230,142],[229,143],[234,144],[238,145],[237,146],[232,147],[233,144],[235,148],[214,149],[243,134],[240,131],[314,150],[348,28],[127,151],[44,152],[120,152],[126,153],[121,152],[123,152],[41,29],[42,154],[119,155],[138,156],[133,157],[137,158],[117,159],[118,160]],"semanticDiagnosticsPerFile":[142,140,125,78,45,46,47,48,49,50,51,52,53,54,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,79,55,75,77,76,57,56,74,72,84,86,85,83,80,82,81,92,91,104,103,97,98,93,99,96,102,100,101,95,94,43,128,129,131,130,134,132,135,40,145,141,143,144,146,148,150,149,147,151,152,116,205,206,208,209,211,38,212,299,277,279,278,281,283,284,285,286,287,288,289,290,291,296,297,298,292,282,293,280,294,300,301,302,303,315,316,311,310,309,317,318,319,320,321,322,324,325,207,326,328,329,327,202,153,155,203,156,157,158,159,160,161,162,163,164,165,166,167,168,169,154,199,170,171,172,204,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,201,191,192,193,194,195,196,200,197,198,330,331,332,333,334,323,312,335,336,35,337,338,33,37,339,340,36,341,342,343,39,344,345,295,347,210,349,365,363,362,353,354,355,356,357,358,359,352,360,361,351,364,350,366,367,368,369,34,90,88,89,87,304,306,308,307,305,136,115,114,113,107,112,111,109,110,108,106,105,276,226,224,251,239,219,216,252,225,227,220,215,213,275,221,249,250,253,254,255,256,257,258,259,260,261,217,262,263,264,265,266,267,268,269,270,218,271,272,273,222,274,228,236,231,230,229,234,238,237,232,233,235,223,214,244,245,246,248,247,242,243,241,240,346,314,313,7,8,12,11,3,13,14,15,16,17,18,19,20,4,5,24,21,22,23,25,26,27,6,28,29,30,31,2,1,32,10,9,348,127,44,120,126,121,122,123,124,41,42,139,119,138,133,137,117,118]},"version":"4.6.4"}
|