@opentripplanner/trip-details 8.0.2 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/esm/components/fares-v2-table.js +194 -0
  2. package/esm/components/fares-v2-table.js.map +1 -0
  3. package/esm/components/fares.js +28 -58
  4. package/esm/components/fares.js.map +1 -1
  5. package/esm/index.js +5 -5
  6. package/esm/index.js.map +1 -1
  7. package/esm/styled.js +29 -22
  8. package/esm/styled.js.map +1 -1
  9. package/esm/trip-detail.js +1 -8
  10. package/esm/trip-detail.js.map +1 -1
  11. package/esm/types.js.map +1 -1
  12. package/i18n/en-US.yml +2 -7
  13. package/i18n/es.yml +0 -7
  14. package/i18n/fr.yml +2 -7
  15. package/i18n/ko.yml +2 -9
  16. package/i18n/nb_NO.yml +1 -4
  17. package/i18n/pl.yml +24 -19
  18. package/i18n/ru.yml +3 -10
  19. package/i18n/ta.yml +20 -25
  20. package/i18n/tl.yml +2 -9
  21. package/i18n/tr.yml +0 -7
  22. package/i18n/vi.yml +2 -9
  23. package/i18n/zh_Hans.yml +2 -9
  24. package/i18n/zh_Hant.yml +0 -7
  25. package/lib/components/departure-date.js +45 -42
  26. package/lib/components/departure-date.js.map +1 -1
  27. package/lib/components/emissions.js +57 -64
  28. package/lib/components/emissions.js.map +1 -1
  29. package/lib/components/fares-v2-table.d.ts +9 -0
  30. package/lib/components/fares-v2-table.d.ts.map +1 -0
  31. package/lib/components/fares-v2-table.js +158 -0
  32. package/lib/components/fares-v2-table.js.map +1 -0
  33. package/lib/components/fares.d.ts +4 -4
  34. package/lib/components/fares.d.ts.map +1 -1
  35. package/lib/components/fares.js +87 -151
  36. package/lib/components/fares.js.map +1 -1
  37. package/lib/components/flex-booking-info.js +55 -38
  38. package/lib/components/flex-booking-info.js.map +1 -1
  39. package/lib/components/time-active.js +40 -66
  40. package/lib/components/time-active.js.map +1 -1
  41. package/lib/index.d.ts +3 -3
  42. package/lib/index.d.ts.map +1 -1
  43. package/lib/index.js +53 -66
  44. package/lib/index.js.map +1 -1
  45. package/lib/styled.d.ts +1 -0
  46. package/lib/styled.d.ts.map +1 -1
  47. package/lib/styled.js +120 -86
  48. package/lib/styled.js.map +1 -1
  49. package/lib/trip-detail.d.ts.map +1 -1
  50. package/lib/trip-detail.js +65 -71
  51. package/lib/trip-detail.js.map +1 -1
  52. package/lib/types.d.ts +4 -41
  53. package/lib/types.d.ts.map +1 -1
  54. package/lib/types.js +1 -4
  55. package/lib/types.js.map +1 -1
  56. package/lib/utils.js +17 -23
  57. package/lib/utils.js.map +1 -1
  58. package/package.json +3 -5
  59. package/src/TripDetails.story.tsx +47 -158
  60. package/src/__snapshots__/TripDetails.story.tsx.snap +1726 -924
  61. package/src/components/fares-v2-table.tsx +262 -0
  62. package/src/components/fares.tsx +48 -87
  63. package/src/index.tsx +4 -4
  64. package/src/styled.ts +11 -2
  65. package/src/trip-detail.tsx +1 -10
  66. package/src/types.ts +4 -40
  67. package/tsconfig.json +1 -1
  68. package/tsconfig.tsbuildinfo +1 -1
  69. package/__mocks__/custom-english-messages.yml +0 -14
  70. package/__mocks__/custom-french-messages.yml +0 -9
  71. package/esm/components/fare-table.js +0 -122
  72. package/esm/components/fare-table.js.map +0 -1
  73. package/i18n/i18n-exceptions.json +0 -12
  74. package/lib/components/fare-table.d.ts +0 -5
  75. package/lib/components/fare-table.d.ts.map +0 -1
  76. package/lib/components/fare-table.js +0 -118
  77. package/lib/components/fare-table.js.map +0 -1
  78. package/src/components/fare-table.tsx +0 -215
package/esm/styled.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["styled","InvisibleA11yLabel","span","withConfig","displayName","componentId","BaseButton","button","CO2Description","CO2Summary","ExpandButton","Fare","HideButton","TNCFare","TNCFareCompanies","Timing","TransitFare","details","TransitFareSingle","FlexSummary","TripDetail","div","TripDetailDescription","TripDetailIcon","TripDetails","TripDetailsBody","TripDetailsHeader","h2","TripDetailSummary"],"sources":["../src/styled.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const InvisibleA11yLabel = styled.span`\n display: inline-block;\n clip: rect(0, 0, 0, 0);\n height: 0;\n overflow: hidden;\n position: absolute;\n width: 0;\n`;\n\nconst BaseButton = styled.button`\n background: transparent;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.42857143;\n margin: 0;\n padding: 0;\n text-decoration: none;\n touch-action: manipulation;\n user-select: none;\n vertical-align: middle;\n white-space: nowrap;\n`;\n\nexport const CO2Description = styled.span``;\n\nexport const CO2Summary = styled.span``;\n\nexport const ExpandButton = styled(BaseButton)`\n color: #00f;\n font-size: 16px;\n margin-left: 6px;\n margin-top: -2px;\n`;\n\nexport const Fare = styled.span``;\n\nexport const HideButton = styled(BaseButton)`\n float: right;\n`;\n\nexport const TNCFare = styled.span``;\n\nexport const TNCFareCompanies = styled.span`\n text-transform: capitalize;\n`;\n\nexport const Timing = styled.span``;\n\nexport const TransitFare = styled.details`\n display: inline-block;\n\n > span {\n display: block;\n /* This may seem wrong, but this value gives the most aligned results */\n /* see: https://github.com/opentripplanner/otp-ui/pull/294#discussion_r742045851 */\n padding-left: 1.75ch;\n }\n`;\nexport const TransitFareSingle = styled.span``;\n\nexport const FlexSummary = styled.span``;\n\nexport const TripDetail = styled.div`\n margin-top: 6px;\n`;\n\nexport const TripDetailDescription = styled.div`\n background-color: #fff;\n border: 1px solid #888;\n font-size: 12px;\n margin-top: 2px;\n padding: 8px;\n`;\n\nexport const TripDetailIcon = styled.div`\n float: left;\n font-size: 17px;\n`;\n\nexport const TripDetails = styled.div`\n background-color: #eee;\n border-radius: 6px;\n margin-bottom: 15px;\n margin-top: 16px;\n padding: 10px 16px;\n`;\n\nexport const TripDetailsBody = styled.div``;\n\nexport const TripDetailsHeader = styled.h2`\n font-size: 18px;\n font-weight: 600;\n margin: 0;\n`;\n\nexport const TripDetailSummary = styled.div`\n margin-left: 28px;\n padding-top: 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;AAAA,uEASxC;AACD,OAAO,IAAMa,iBAAiB,GAAGlB,MAAM,CAACE,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAE9C,OAAO,IAAMc,WAAW,GAAGnB,MAAM,CAACE,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAExC,OAAO,IAAMe,UAAU,GAAGpB,MAAM,CAACqB,GAAG,CAAAlB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uBAEnC;AAED,OAAO,IAAMiB,qBAAqB,GAAGtB,MAAM,CAACqB,GAAG,CAAAlB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8FAM9C;AAED,OAAO,IAAMkB,cAAc,GAAGvB,MAAM,CAACqB,GAAG,CAAAlB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kCAGvC;AAED,OAAO,IAAMmB,WAAW,GAAGxB,MAAM,CAACqB,GAAG,CAAAlB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qGAMpC;AAED,OAAO,IAAMoB,eAAe,GAAGzB,MAAM,CAACqB,GAAG,CAAAlB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAE3C,OAAO,IAAMqB,iBAAiB,GAAG1B,MAAM,CAAC2B,EAAE,CAAAxB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gDAIzC;AAED,OAAO,IAAMuB,iBAAiB,GAAG5B,MAAM,CAACqB,GAAG,CAAAlB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gGAM1C","ignoreList":[]}
1
+ {"version":3,"file":"styled.js","names":["styled","css","InvisibleA11yStyles","InvisibleA11yLabel","span","withConfig","displayName","componentId","InvisibleA11yCaption","caption","BaseButton","button","CO2Description","CO2Summary","ExpandButton","Fare","HideButton","TNCFare","TNCFareCompanies","Timing","TransitFare","details","TransitFareSingle","FlexSummary","TripDetail","div","TripDetailDescription","TripDetailIcon","TripDetails","TripDetailsBody","TripDetailsHeader","h2","TripDetailSummary"],"sources":["../src/styled.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nconst InvisibleA11yStyles = css`\n display: inline-block;\n clip: rect(0, 0, 0, 0);\n height: 0;\n overflow: hidden;\n position: absolute;\n width: 0;\n`;\nexport const InvisibleA11yLabel = styled.span`\n ${InvisibleA11yStyles}\n`;\n\n// Warning: https://github.com/opentripplanner/otp-ui/pull/855#discussion_r2248534209\nexport const InvisibleA11yCaption = styled.caption`\n ${InvisibleA11yStyles}\n`;\n\nconst BaseButton = styled.button`\n background: transparent;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.42857143;\n margin: 0;\n padding: 0;\n text-decoration: none;\n touch-action: manipulation;\n user-select: none;\n vertical-align: middle;\n white-space: nowrap;\n`;\n\nexport const CO2Description = styled.span``;\n\nexport const CO2Summary = styled.span``;\n\nexport const ExpandButton = styled(BaseButton)`\n color: #00f;\n font-size: 16px;\n margin-left: 6px;\n margin-top: -2px;\n`;\n\nexport const Fare = styled.span``;\n\nexport const HideButton = styled(BaseButton)`\n float: right;\n`;\n\nexport const TNCFare = styled.span``;\n\nexport const TNCFareCompanies = styled.span`\n text-transform: capitalize;\n`;\n\nexport const Timing = styled.span``;\n\nexport const TransitFare = styled.details`\n display: inline-block;\n\n > span {\n display: block;\n /* This may seem wrong, but this value gives the most aligned results */\n /* see: https://github.com/opentripplanner/otp-ui/pull/294#discussion_r742045851 */\n padding-left: 1.75ch;\n }\n`;\nexport const TransitFareSingle = styled.span``;\n\nexport const FlexSummary = styled.span``;\n\nexport const TripDetail = styled.div`\n margin-top: 6px;\n`;\n\nexport const TripDetailDescription = styled.div`\n background-color: #fff;\n border: 1px solid #888;\n font-size: 12px;\n margin-top: 2px;\n padding: 8px;\n`;\n\nexport const TripDetailIcon = styled.div`\n float: left;\n font-size: 17px;\n`;\n\nexport const TripDetails = styled.div`\n background-color: #eee;\n border-radius: 6px;\n margin-bottom: 15px;\n margin-top: 16px;\n padding: 10px 16px;\n overflow-x: scroll;\n`;\n\nexport const TripDetailsBody = styled.div``;\n\nexport const TripDetailsHeader = styled.h2`\n font-size: 18px;\n font-weight: 600;\n margin: 0;\n`;\n\nexport const TripDetailSummary = styled.div`\n margin-left: 28px;\n padding-top: 2px;\n display: flex;\n align-items: baseline;\n white-space: pre-wrap;\n`;\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,IAAMC,mBAAmB,GAAGD,GAAG,iGAO9B;AACD,OAAO,IAAME,kBAAkB,GAAGH,MAAM,CAACI,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aACzCL,mBAAmB,CACtB;;AAED;AACA,OAAO,IAAMM,oBAAoB,GAAGR,MAAM,CAACS,OAAO,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAC9CL,mBAAmB,CACtB;AAED,IAAMQ,UAAU,GAAGV,MAAM,CAACW,MAAM,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8PAe/B;AAED,OAAO,IAAMK,cAAc,GAAGZ,MAAM,CAACI,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAE3C,OAAO,IAAMM,UAAU,GAAGb,MAAM,CAACI,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAEvC,OAAO,IAAMO,YAAY,GAAGd,MAAM,CAACU,UAAU,CAAC,CAAAL,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kEAK7C;AAED,OAAO,IAAMQ,IAAI,GAAGf,MAAM,CAACI,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,QAAE;AAEjC,OAAO,IAAMS,UAAU,GAAGhB,MAAM,CAACU,UAAU,CAAC,CAAAL,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oBAE3C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AA1B,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gDAIzC;AAED,OAAO,IAAMyB,iBAAiB,GAAGhC,MAAM,CAACyB,GAAG,CAAApB,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gGAM1C","ignoreList":[]}
@@ -5,15 +5,8 @@ import { TimesCircle } from "@styled-icons/fa-solid/TimesCircle";
5
5
  import AnimateHeight from "react-animate-height";
6
6
  import { useIntl } from "react-intl";
7
7
  import * as S from "./styled";
8
- // TODO: Remove these two helper methods by moving to semantically correct HTML
9
- /**
10
- * Copied from https://stackoverflow.com/questions/50940640/how-to-determine-if-jest-is-running-the-code-or-not
11
- */
12
- function isRunningJest() {
13
- return process.env.JEST_WORKER_ID !== undefined;
14
- }
8
+ // TODO: Remove this helper method by moving to semantically correct HTML
15
9
  function uuidv4() {
16
- if (isRunningJest()) return "mocked-random-id";
17
10
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
18
11
  // eslint-disable-next-line no-bitwise
19
12
  var r = Math.random() * 16 | 0;
@@ -1 +1 @@
1
- {"version":3,"file":"trip-detail.js","names":["React","useState","QuestionCircle","TimesCircle","AnimateHeight","useIntl","S","isRunningJest","process","env","JEST_WORKER_ID","undefined","uuidv4","replace","c","r","Math","random","v","toString","TripDetail","_ref","icon","summary","description","className","intl","_useState","_useState2","_slicedToArray","expanded","setExpanded","id","toggle","createElement","role","TripDetailIcon","TripDetailSummary","ExpandButton","formatMessage","onClick","tabIndex","size","duration","height","TripDetailDescription","HideButton"],"sources":["../src/trip-detail.tsx"],"sourcesContent":["import React, { ReactElement, useState } from \"react\";\nimport { QuestionCircle } from \"@styled-icons/fa-solid/QuestionCircle\";\nimport { TimesCircle } from \"@styled-icons/fa-solid/TimesCircle\";\n\nimport AnimateHeight from \"react-animate-height\";\nimport { useIntl } from \"react-intl\";\nimport * as S from \"./styled\";\n\ntype Props = {\n className?: string;\n description?: ReactElement | string;\n icon: ReactElement;\n summary: ReactElement | string;\n};\n\n// TODO: Remove these two helper methods by moving to semantically correct HTML\n/**\n * Copied from https://stackoverflow.com/questions/50940640/how-to-determine-if-jest-is-running-the-code-or-not\n */\nfunction isRunningJest() {\n return process.env.JEST_WORKER_ID !== undefined;\n}\n\nfunction uuidv4(): string {\n if (isRunningJest()) return \"mocked-random-id\";\n\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function(c) {\n // eslint-disable-next-line no-bitwise\n const r = (Math.random() * 16) | 0;\n // eslint-disable-next-line no-bitwise\n const v = c === \"x\" ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\nconst TripDetail = ({\n icon,\n summary,\n description,\n className\n}: Props): JSX.Element => {\n const intl = useIntl();\n const [expanded, setExpanded] = useState(false);\n\n const id = uuidv4();\n\n const toggle = (): void => {\n setExpanded(!expanded);\n };\n\n return (\n <S.TripDetail role=\"group\" className={className}>\n <S.TripDetailIcon role=\"presentation\">{icon}</S.TripDetailIcon>\n {/* TODO: Adjust the summary and description to be a `summary`/`details` pair, therefore semantically correct */}\n {/* https://github.com/opentripplanner/otp-ui/pull/530#discussion_r1074006057 */}\n <S.TripDetailSummary>\n {summary}\n {description && (\n <S.ExpandButton\n aria-label={\n expanded\n ? intl.formatMessage({\n id: \"otpUi.TripDetails.hideDetail\"\n })\n : intl.formatMessage({\n id: \"otpUi.TripDetails.showDetail\"\n })\n }\n aria-controls={id}\n aria-expanded={expanded}\n id=\"expand-button\"\n onClick={toggle}\n tabIndex={0}\n >\n <QuestionCircle size=\"0.92em\" />\n </S.ExpandButton>\n )}\n </S.TripDetailSummary>\n <AnimateHeight duration={300} height={expanded ? \"auto\" : 0}>\n <S.TripDetailDescription aria-labelledby=\"expand-button\" id={id}>\n {/** This button isn't needed for screen readers as the main expand-button is\n * more convenient.\n */}\n <S.HideButton role=\"presentation\" onClick={() => setExpanded(false)}>\n <TimesCircle size=\"0.92em\" />\n </S.HideButton>\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A;MAAA,OAAQT,WAAW,CAAC,KAAK,CAAC;IAAA;EAAC,gBAClE/B,KAAA,CAAAkC,aAAA,CAAC/B,WAAW;IAACuC,IAAI,EAAC;EAAQ,CAAE,CAChB,CAAC,EACdlB,WACsB,CACZ,CACH,CAAC;AAEnB,CAAC;AAED,eAAeJ,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"trip-detail.js","names":["React","useState","QuestionCircle","TimesCircle","AnimateHeight","useIntl","S","uuidv4","replace","c","r","Math","random","v","toString","TripDetail","_ref","icon","summary","description","className","intl","_useState","_useState2","_slicedToArray","expanded","setExpanded","id","toggle","createElement","role","TripDetailIcon","TripDetailSummary","ExpandButton","formatMessage","onClick","tabIndex","size","duration","height","TripDetailDescription","HideButton"],"sources":["../src/trip-detail.tsx"],"sourcesContent":["import React, { ReactElement, useState } from \"react\";\nimport { QuestionCircle } from \"@styled-icons/fa-solid/QuestionCircle\";\nimport { TimesCircle } from \"@styled-icons/fa-solid/TimesCircle\";\n\nimport AnimateHeight from \"react-animate-height\";\nimport { useIntl } from \"react-intl\";\nimport * as S from \"./styled\";\n\ntype Props = {\n className?: string;\n description?: ReactElement | string;\n icon: ReactElement;\n summary: ReactElement | string;\n};\n\n// TODO: Remove this helper method by moving to semantically correct HTML\nfunction uuidv4(): string {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function(c) {\n // eslint-disable-next-line no-bitwise\n const r = (Math.random() * 16) | 0;\n // eslint-disable-next-line no-bitwise\n const v = c === \"x\" ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\nconst TripDetail = ({\n icon,\n summary,\n description,\n className\n}: Props): JSX.Element => {\n const intl = useIntl();\n const [expanded, setExpanded] = useState(false);\n\n const id = uuidv4();\n\n const toggle = (): void => {\n setExpanded(!expanded);\n };\n\n return (\n <S.TripDetail role=\"group\" className={className}>\n <S.TripDetailIcon role=\"presentation\">{icon}</S.TripDetailIcon>\n {/* TODO: Adjust the summary and description to be a `summary`/`details` pair, therefore semantically correct */}\n {/* https://github.com/opentripplanner/otp-ui/pull/530#discussion_r1074006057 */}\n <S.TripDetailSummary>\n {summary}\n {description && (\n <S.ExpandButton\n aria-label={\n expanded\n ? intl.formatMessage({\n id: \"otpUi.TripDetails.hideDetail\"\n })\n : intl.formatMessage({\n id: \"otpUi.TripDetails.showDetail\"\n })\n }\n aria-controls={id}\n aria-expanded={expanded}\n id=\"expand-button\"\n onClick={toggle}\n tabIndex={0}\n >\n <QuestionCircle size=\"0.92em\" />\n </S.ExpandButton>\n )}\n </S.TripDetailSummary>\n <AnimateHeight duration={300} height={expanded ? \"auto\" : 0}>\n <S.TripDetailDescription aria-labelledby=\"expand-button\" id={id}>\n {/** This button isn't needed for screen readers as the main expand-button is\n * more convenient.\n */}\n <S.HideButton role=\"presentation\" onClick={() => setExpanded(false)}>\n <TimesCircle size=\"0.92em\" />\n </S.HideButton>\n {description}\n </S.TripDetailDescription>\n </AnimateHeight>\n </S.TripDetail>\n );\n};\n\nexport default TripDetail;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAkBC,QAAQ,QAAQ,OAAO;AACrD,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SAASC,WAAW,QAAQ,oCAAoC;AAEhE,OAAOC,aAAa,MAAM,sBAAsB;AAChD,SAASC,OAAO,QAAQ,YAAY;AACpC,OAAO,KAAKC,CAAC,MAAM,UAAU;AAS7B;AACA,SAASC,MAAMA,CAAA,EAAW;EACxB,OAAO,sCAAsC,CAACC,OAAO,CAAC,OAAO,EAAE,UAASC,CAAC,EAAE;IACzE;IACA,IAAMC,CAAC,GAAIC,IAAI,CAACC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAI,CAAC;IAClC;IACA,IAAMC,CAAC,GAAGJ,CAAC,KAAK,GAAG,GAAGC,CAAC,GAAIA,CAAC,GAAG,GAAG,GAAI,GAAG;IACzC,OAAOG,CAAC,CAACC,QAAQ,CAAC,EAAE,CAAC;EACvB,CAA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A,CAAC3B,cAAc;IAACmC,IAAI,EAAC;EAAQ,CAAE,CACjB,CAEC,CAAC,eACtBrC,KAAA,CAAA6B,aAAA,CAACzB,aAAa;IAACkC,QAAQ,EAAE,GAAI;IAACC,MAAM,EAAEd,QAAQ,GAAG,MAAM,GAAG;EAAE,gBAC1DzB,KAAA,CAAA6B,aAAA,CAACvB,CAAC,CAACkC,qBAAqB;IAAC,mBAAgB,eAAe;IAACb,EAAE,EAAEA;EAAG,gBAI9D3B,KAAA,CAAA6B,aAAA,CAACvB,CAAC,CAACmC,UAAU;IAACX,IAAI,EAAC,cAAc;IAACK,OAAO,EAAE,SAATA,OAAOA,CAAA;MAAA,OAAQT,WAAW,CAAC,KAAK,CAAC;IAAA;EAAC,gBAClE1B,KAAA,CAAA6B,aAAA,CAAC1B,WAAW;IAACkC,IAAI,EAAC;EAAQ,CAAE,CAChB,CAAC,EACdlB,WACsB,CACZ,CACH,CAAC;AAEnB,CAAC;AAED,eAAeJ,UAAU","ignoreList":[]}
package/esm/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["// Prettier does not recognize the import type syntax.\n// eslint-disable-next-line prettier/prettier\nimport type { \n FareProductSelector, \n Itinerary, \n Leg, \n MassUnitOption,\n Money\n } from \"@opentripplanner/types\";\n\nexport interface TimeActiveDetailsProps {\n bikeMinutes: number;\n minutesActive?: number;\n walkMinutes: number;\n}\n\nexport interface CO2ConfigType {\n carbonIntensity?: Record<string, number>;\n units?: MassUnitOption;\n enabled?: boolean;\n}\n\nexport interface DepartureDetailsProps {\n departureDate: Date;\n}\n\n/**\n * This is the interface used to define the layout for a particular fare table.\n * The table with be rendered with the columns defined here,\n * with each row being an individual transit leg from the itinerary.\n */\nexport interface FareTableLayout {\n cols: (FareProductSelector & {\n columnHeaderKey: string;\n })[]\n headerKey: string;\n}\n/**\n * Interface containing the lgs and the layout of the fare table.\n */\nexport interface FareLegTableProps {\n layout?: FareTableLayout[];\n legs: Leg[];\n}\n\n// Total fare amount corresponding to a fare key\nexport type FareTotals = (FareProductSelector & { price: Money })[]\n\nexport interface FareDetailsProps {\n legs: Leg[];\n maxTNCFare: number;\n minTNCFare: number;\n}\n\nexport interface FareConfig {\n /**\n * Determines which transit fare should be displayed by default, should there be multiple transit fare types.\n * Header key is used only in the old fare display.\n */\n defaultFareType?: { headerKey?: string } & FareProductSelector;\n /**\n * Column and table configuration for fare details/fare by leg table.\n */\n fareDetailsLayout?: FareTableLayout[];\n /**\n * Mapping between fare keys and human-readable names for them.\n */\n fareKeyNameMap?: {\n [name: string]: string;\n };\n}\n\nexport interface TripDetailsProps {\n /**\n * Used for additional styling with styled components for example.\n */\n className?: string;\n /**\n * Object containing the CO₂ config.\n */\n co2Config?: CO2ConfigType;\n /**\n * Slot for a custom component to render the expandable section for departure.\n */\n DepartureDetails?: React.ElementType<DepartureDetailsProps>;\n /**\n * Slot for a custom component to render the expandable section for fares.\n */\n FareDetails?: React.ElementType<FareDetailsProps>;\n /**\n * Configuration for fare details/fare by leg table.\n */\n fareConfig?: FareConfig;\n /**\n * Itinerary that the user has selected to view, contains multiple legs.\n */\n itinerary: Itinerary;\n /**\n * show the '~' symbol in the trip details panel\n */\n showApproximateMinutesActive?: boolean;\n /**\n * Slot for a custom component to render the expandable section for time active.\n */\n TimeActiveDetails?: React.ElementType<TimeActiveDetailsProps>;\n}"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["// Prettier does not recognize the import type syntax.\n// eslint-disable-next-line prettier/prettier\nimport type { \n FareProductSelector, \n Itinerary, \n Leg, \n MassUnitOption,\n Money\n } from \"@opentripplanner/types\";\n\nexport interface TimeActiveDetailsProps {\n bikeMinutes: number;\n minutesActive?: number;\n walkMinutes: number;\n}\n\nexport interface CO2ConfigType {\n carbonIntensity?: Record<string, number>;\n units?: MassUnitOption;\n enabled?: boolean;\n}\n\nexport interface DepartureDetailsProps {\n departureDate: Date;\n}\n\n\n// Total fare amount corresponding to a fare key\nexport type FareTotals = (FareProductSelector & { price: Money })[]\n\nexport interface FareDetailsProps {\n legs: Leg[];\n maxTNCFare: number;\n minTNCFare: number;\n}\n\nexport interface TripDetailsProps {\n /**\n * Used for additional styling with styled components for example.\n */\n className?: string;\n /**\n * Object containing the CO₂ config.\n */\n co2Config?: CO2ConfigType;\n /**\n * Determines which transit fare should be displayed by default, should there be multiple transit fare types.\n */\n defaultFareType?: FareProductSelector;\n /**\n * Slot for a custom component to render the expandable section for departure.\n */\n DepartureDetails?: React.ElementType<DepartureDetailsProps>;\n /**\n * Slot for a custom component to render the expandable section for fares.\n */\n FareDetails?: React.ElementType<FareDetailsProps>;\n /**\n * Itinerary that the user has selected to view, contains multiple legs.\n */\n itinerary: Itinerary;\n /**\n * show the '~' symbol in the trip details panel\n */\n showApproximateMinutesActive?: boolean;\n /**\n * Slot for a custom component to render the expandable section for time active.\n */\n TimeActiveDetails?: React.ElementType<TimeActiveDetailsProps>;\n}"],"mappings":"","ignoreList":[]}
package/i18n/en-US.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: Cash
5
- electronic: Electronic
6
- regular: Adult
7
- senior: Senior
8
- special: Special
9
- youth: Youth
10
3
  co2: "CO₂ Emitted: <strong>{co2}</strong>"
11
4
  co2description: >-
12
5
  CO₂ intensity is calculated by multiplying the distance of each leg of a
@@ -28,7 +21,9 @@ otpUi:
28
21
  plural, one {# minute} other {# minutes}}</strong> biking.
29
22
  title: Trip Details
30
23
  tncFare: "{companies} Fare: <strong>{minTNCFare} - {maxTNCFare}</strong>"
24
+ total: Total
31
25
  transferDiscountExplanation: Transfer discount of {transferAmount} is applied
32
26
  transitFare: Transit Fare
33
27
  transitFareEntry: "{name}: <strong>{value}</strong>"
28
+ transitFareTable: Transit fares for this itinerary
34
29
  tripIncludesFlex: This trip includes flexible routes. {extraMessage}
package/i18n/es.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: Efectivo
5
- electronic: Electrónico
6
- regular: Adulto
7
- senior: Major edad
8
- special: Especial
9
- youth: Juventud
10
3
  co2: "CO₂ emitido: <strong>{co2}</strong>"
11
4
  co2description: >-
12
5
  La intensidad de CO₂ se calcula multiplicando la distancia de cada tramo
package/i18n/fr.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: Espèces
5
- electronic: Électronique
6
- regular: Plein tarif
7
- senior: Séniors
8
- special: Spécial
9
- youth: Jeunes
10
3
  co2: "CO₂ émis : <strong>{co2}</strong>"
11
4
  co2description: >-
12
5
  L'intensité carbone est calculée en multipliant la distance de chaque
@@ -26,7 +19,9 @@ otpUi:
26
19
  plural, one {# minute} other {# minutes}}</strong> à vélo.
27
20
  title: Détails du trajet
28
21
  tncFare: "Tarif {companies} : <strong>{minTNCFare} - {maxTNCFare}</strong>"
22
+ total: Total
29
23
  transferDiscountExplanation: Cette correspondance vous donne une réduction de {transferAmount}
30
24
  transitFare: Tarif en transports
31
25
  transitFareEntry: "{name} : <strong>{value}</strong>"
26
+ transitFareTable: Transit fares for this itinerary
32
27
  tripIncludesFlex: Ce trajet comprend un service à la demande (Flex). {extraMessage}
package/i18n/ko.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: 현금
5
- electronic: 전자
6
- regular: 성인
7
- senior: 경로
8
- special: 특별
9
- youth: 청소년
10
3
  co2: "CO₂ 배출: <strong>{co2}</strong>"
11
4
  co2description: >-
12
5
  CO₂ 강도는 각 모드의 CO₂ 강도를 트립에서 각 다리가 걸은 거리를 곱하여 계산됩니다. 각 모드의 CO₂ 강도는 <link>이
@@ -15,9 +8,11 @@ otpUi:
15
8
  <strong>{departureDate, time, short}</strong>에 <strong>{departureDate,
16
9
  date, long}</strong> 출발
17
10
  hideDetail: 세부정보 숨기기
11
+ legMissingFareInfo: 이 구간에 대한 요금 정보 없음
18
12
  minutesActive: >-
19
13
  소요 시간 사용 중: <strong>{approximatePrefix, select, true {약 } other
20
14
  {}}{minutes} 분</strong>
15
+ missingFareTotal: 사용할 수 있는 요금 총액 없음
21
16
  showDetail: 세부정보 표시
22
17
  timeActiveDescription: >
23
18
  이 이동편을 이용하면, 도보로 <strong>{walkMinutes} 분</strong> 및 자전거로
@@ -28,5 +23,3 @@ otpUi:
28
23
  transitFare: 대중 교통 운임
29
24
  transitFareEntry: "{name} : <strong>{value}</strong>"
30
25
  tripIncludesFlex: 이 트립에는 가변 경로가 포함되어 있습니다. {extraMessage}
31
- missingFareTotal: 사용할 수 있는 요금 총액 없음
32
- legMissingFareInfo: 이 구간에 대한 요금 정보 없음
package/i18n/nb_NO.yml CHANGED
@@ -1,4 +1 @@
1
- otpUi:
2
- TripDetails:
3
- FareTable:
4
- cash: Kontanter
1
+ {}
package/i18n/pl.yml CHANGED
@@ -1,30 +1,35 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- hideDetail: Ukryj szczegóły
4
- missingFareTotal: Brak łącznej ceny
5
- tripIncludesFlex: Ta wycieczka obejmuje elastyczne trasy. {extraMessage}
6
3
  FareTable:
7
4
  cash: Gotówka
5
+ electronic: Bezgotówkowo
8
6
  regular: Dorosły
9
7
  senior: Senior
10
- youth: Młodzież
11
8
  special: Specjalny
12
- electronic: Bezgotówkowo
13
- timeActiveDescription: "Wybierając się na tę wycieczkę, spędzisz <strong>{walkMinutes,
14
- plural, one {# minuty} other {# minut}}</strong> na spacerze i <strong>{bikeMinutes,
15
- plural, one {# minuty} other {# minut}}</strong> na jeździe na rowerze.\n"
9
+ youth: Młodzież
10
+ co2: "Emisja CO₂: <strong>{co2}</strong>"
11
+ co2description: >-
12
+ Ilość CO₂ oblicza się, mnożąc odległość każdego odcinka podróży przez
13
+ ilość CO₂ wytwarzany przez każdy środek transportu. Ilość CO₂ wytworzony
14
+ przez każdy środek transportu jest wyprowadzana z <link>tego arkusza
15
+ kalkulacyjnego</link>.
16
+ departure: >-
17
+ Wyjazd <strong>{departureDate, date, long}</strong> o
18
+ <strong>{departureDate, time, short}</strong>
19
+ hideDetail: Ukryj szczegóły
16
20
  legMissingFareInfo: Brak informacji o cenie biletu na ten odcinek
21
+ minutesActive: >-
22
+ Czas spędzony na aktywności: <strong>{approximatePrefix, select, true {~}
23
+ other {}}{minutes, plural, one {# minuty} other {# minut}}</strong>
24
+ missingFareTotal: Brak łącznej ceny
17
25
  showDetail: Pokaż szczegóły
18
- transferDiscountExplanation: Zastosowano rabat transferowy w wysokości {transferAmount}
19
- co2: 'Emisja CO₂: <strong>{co2}</strong>'
20
- co2description: Ilość CO₂ oblicza się, mnożąc odległość każdego odcinka podróży
21
- przez ilość CO₂ wytwarzany przez każdy środek transportu. Ilość CO₂ wytworzony
22
- przez każdy środek transportu jest wyprowadzana z <link>tego arkusza kalkulacyjnego</link>.
23
- departure: Wyjazd <strong>{departureDate, date, long}</strong> o <strong>{departureDate,
24
- time, short}</strong>
26
+ timeActiveDescription: >
27
+ Wybierając się na tę wycieczkę, spędzisz <strong>{walkMinutes, plural, one
28
+ {# minuty} other {# minut}}</strong> na spacerze i <strong>{bikeMinutes,
29
+ plural, one {# minuty} other {# minut}}</strong> na jeździe na rowerze.
25
30
  title: Szczegóły podróży
26
- tncFare: '{companies} Taryfa: <strong>{minTNCFare} - {maxTNCFare}</strong>'
31
+ tncFare: "{companies} Taryfa: <strong>{minTNCFare} - {maxTNCFare}</strong>"
32
+ transferDiscountExplanation: Zastosowano rabat transferowy w wysokości {transferAmount}
27
33
  transitFare: Opłata za przejazd
28
- transitFareEntry: '{name}: <strong>{value}</strong>'
29
- minutesActive: 'Czas spędzony na aktywności: <strong>{approximatePrefix, select,
30
- true {~} other {}}{minutes, plural, one {# minuty} other {# minut}}</strong>'
34
+ transitFareEntry: "{name}: <strong>{value}</strong>"
35
+ tripIncludesFlex: Ta wycieczka obejmuje elastyczne trasy. {extraMessage}
package/i18n/ru.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: Наличные
5
- electronic: Электронный
6
- regular: Взрослые
7
- senior: Пожилые
8
- special: Особые
9
- youth: Детский
10
3
  co2: "Выбросы CO₂: <strong>{co2}</strong>"
11
4
  co2description: >-
12
5
  Интенсивность выбросов CO₂ рассчитывается умножением расстояния каждого
@@ -17,19 +10,19 @@ otpUi:
17
10
  Прибытие: <strong>{departureDate, date, long}</strong> в
18
11
  <strong>{departureDate, time, short}</strong>
19
12
  hideDetail: Скрыть детали
13
+ legMissingFareInfo: Информация о тарифах на этот маршрут отсутствует
20
14
  minutesActive: >-
21
15
  Время в активном режиме: <strong>{approximatePrefix, select, true {~}
22
16
  other {}}{minutes, plural, one {# минуту} other {# минуты}}</strong>
17
+ missingFareTotal: Нет данных о суммарном тарифе
23
18
  showDetail: Показать детали
24
19
  timeActiveDescription: >
25
20
  Проделав этот маршрут, вы потратите <strong>{walkMinutes, plural, one {#
26
21
  минуту} other {# минуты}}</strong> на ходьбу и<strong>{bikeMinutes,
27
22
  plural, one {# минуту} other {# минуты}}</strong> на езду на велосипеде.
28
23
  title: Подробные сведения о поездке
29
- tncFare: "Стоимость проезда в компаниях {companies}: <strong>{minTNCFare} — {maxTNCFare}</strong>"
24
+ tncFare: "Стоимость проезда в компаниях {companies}: <strong>{minTNCFare}\_— {maxTNCFare}</strong>"
30
25
  transferDiscountExplanation: Применяется скидка на пересадку в размере {transferAmount}
31
26
  transitFare: Стоимость проезда в общественном транспорте
32
27
  transitFareEntry: "{name}: <strong>{value}</strong>"
33
28
  tripIncludesFlex: Эта поездка включает гибкие маршруты. {extraMessage}
34
- legMissingFareInfo: Информация о тарифах на этот маршрут отсутствует
35
- missingFareTotal: Нет данных о суммарном тарифе
package/i18n/ta.yml CHANGED
@@ -1,34 +1,29 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- transitFareEntry: '{name}: <strong> {value} </strong>'
4
- FareTable:
5
- cash: முழுத்தொகை
6
- electronic: மின்னணு
7
- regular: அகவை வந்தோர்
8
- senior: சீனியர்
9
- special: சிறப்பு
10
- youth: இளமை
11
- co2: 'Co₂ உமிழும்: <strong> {co2} </strong>'
12
- co2description: ஒவ்வொரு பயன்முறையின் CO₂ தீவிரத்தினால் ஒரு பயணத்தின் ஒவ்வொரு
13
- காலின் தூரத்தையும் பெருக்கி CO₂ தீவிரம் கணக்கிடப்படுகிறது. ஒவ்வொரு
14
- பயன்முறையின் CO₂ தீவிரமும் <link>இந்த விரிதாள்</link>இலிருந்து
15
- பெறப்பட்டது.
16
- departure: புறப்படுங்கள் <strong> {புறப்பட்ட, தேதி, நீண்ட} </strong>
17
- <strong> {புறப்பட்ட, நேரம், குறுகிய} </strong> இல்
3
+ co2: "Co₂ உமிழும்: <strong> {co2} </strong>"
4
+ co2description: >-
5
+ ஒவ்வொரு பயன்முறையின் CO₂ தீவிரத்தினால் ஒரு பயணத்தின் ஒவ்வொரு காலின்
6
+ தூரத்தையும் பெருக்கி CO₂ தீவிரம் கணக்கிடப்படுகிறது. ஒவ்வொரு பயன்முறையின்
7
+ CO₂ தீவிரமும் <link>இந்த விரிதாள்</link>இலிருந்து பெறப்பட்டது.
8
+ departure: >-
9
+ புறப்படுங்கள் <strong> {புறப்பட்ட, தேதி, நீண்ட} </strong> <strong>
10
+ {புறப்பட்ட, நேரம், குறுகிய} </strong> இல்
18
11
  hideDetail: விவரங்களை மறைக்கவும்
19
12
  legMissingFareInfo: இந்த காலுக்கு கட்டண தகவல்கள் இல்லை
20
- minutesActive: 'செயலில் செலவழித்த நேரம்: <strong> {தோராயமான பிரீஃபிக்ச், தேர்ந்தெடு,
21
- உண்மை {~} பிற {}} {நிமிடங்கள், பன்மை, ஒன்று {# நிமிடம்} பிற {# நிமிடங்கள்}}
22
- </strong>'
13
+ minutesActive: >-
14
+ செயலில் செலவழித்த நேரம்: <strong> {தோராயமான பிரீஃபிக்ச், தேர்ந்தெடு, உண்மை
15
+ {~} பிற {}} {நிமிடங்கள், பன்மை, ஒன்று {# நிமிடம்} பிற {# நிமிடங்கள்}}
16
+ </strong>
23
17
  missingFareTotal: கட்டணம் மொத்தம் கிடைக்கவில்லை
24
18
  showDetail: விவரங்களைக் காட்டு
25
- timeActiveDescription: "இந்த பயணத்தை மேற்கொள்வதன் மூலம், நீங்கள் <strong> {வாக்மினூட்ச்,
26
- பன்மை, ஒன்று {# நிமிடம்} பிற {# நிமிடங்கள்}} </strong> நடைபயிற்சி மற்றும் <strong>
27
- {பைக்மினூட்ச், பன்மை, ஒன்று {# நிமிடம்} பிற {# செலவிடுவீர்கள் நிமிடங்கள்}} </strong>
28
- பைக்கிங்.\n"
19
+ timeActiveDescription: >
20
+ இந்த பயணத்தை மேற்கொள்வதன் மூலம், நீங்கள் <strong> {வாக்மினூட்ச், பன்மை,
21
+ ஒன்று {# நிமிடம்} பிற {# நிமிடங்கள்}} </strong> நடைபயிற்சி மற்றும்
22
+ <strong> {பைக்மினூட்ச், பன்மை, ஒன்று {# நிமிடம்} பிற {# செலவிடுவீர்கள்
23
+ நிமிடங்கள்}} </strong> பைக்கிங்.
29
24
  title: பயண விவரங்கள்
30
- tncFare: '{companies} கட்டணம்: <strong> {minTNCFare} - {maxTNCFare} </strong>'
31
- transferDiscountExplanation: பரிமாற்ற தள்ளுபடி {transferAmount}
32
- பயன்படுத்தப்படுகிறது
25
+ tncFare: "{companies} கட்டணம்: <strong> {minTNCFare} - {maxTNCFare} </strong>"
26
+ transferDiscountExplanation: பரிமாற்ற தள்ளுபடி {transferAmount} பயன்படுத்தப்படுகிறது
33
27
  transitFare: போக்குவரத்து கட்டணம்
28
+ transitFareEntry: "{name}: <strong> {value} </strong>"
34
29
  tripIncludesFlex: இந்த பயணத்தில் நெகிழ்வான வழிகள் உள்ளன. {extraMessage}
package/i18n/tl.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: Cash
5
- electronic: Electronic
6
- regular: Nasa Hustong Gulang
7
- senior: Nakatatanda
8
- special: Espesyal
9
- youth: Kabataan
10
3
  co2: "Na-emit na CO₂: <strong>{co2}</strong>"
11
4
  co2description: >-
12
5
  Kinakalkula ang intensity ng CO₂ sa pamamagitan ng pag-multiply sa
@@ -17,9 +10,11 @@ otpUi:
17
10
  Aalis <strong>{departureDate, date, long}</strong> nang
18
11
  <strong>{departureDate, time, short}</strong>
19
12
  hideDetail: Itago ang mga detalye
13
+ legMissingFareInfo: Walang impormasyon sa pamasahe para sa leg na ito
20
14
  minutesActive: >-
21
15
  Oras na Ginugol sa pagiging Aktibo: <strong>{approximatePrefix, select,
22
16
  true {~} other {}}{minutes} minuto</strong>
17
+ missingFareTotal: Walang available na kabuuang pamasahe
23
18
  showDetail: Ipakita ang mga detalye
24
19
  timeActiveDescription: >
25
20
  Sa pagbiyahe nang ganitong paraan, gugugol ka ng <strong>{walkMinutes}
@@ -31,5 +26,3 @@ otpUi:
31
26
  transitFare: Pamasahe sa Pampublikong Transportasyon
32
27
  transitFareEntry: "{name}: <strong>{value}</strong>"
33
28
  tripIncludesFlex: May mga flexible na ruta ang biyaheng ito. {extraMessage}
34
- missingFareTotal: Walang available na kabuuang pamasahe
35
- legMissingFareInfo: Walang impormasyon sa pamasahe para sa leg na ito
package/i18n/tr.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: Nakit
5
- electronic: Elektronik
6
- regular: Yetişkin
7
- senior: Kıdemli
8
- special: Özel
9
- youth: Gençlik
10
3
  co2: "CO₂ Yayılımı: <strong>{co2}</strong>"
11
4
  co2description: >-
12
5
  CO2 yoğunluğu, her modun CO2 yoğunluğu ile bir gezinin her bacağının
package/i18n/vi.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: Tiền mặt
5
- electronic: Điện tử
6
- regular: Người lớn
7
- senior: Người lớn tuổi
8
- special: Đặc biệt
9
- youth: Thiếu niên
10
3
  co2: "CO₂ thải ra: <strong>{co2}</strong>"
11
4
  co2description: >-
12
5
  Nồng độ CO₂ được tính bằng cách nhân khoảng cách của mỗi chặng của một
@@ -16,9 +9,11 @@ otpUi:
16
9
  Khởi hành <strong>{departureDate, date, long}</strong> lúc
17
10
  <strong>{departureDate, time, short}</strong>
18
11
  hideDetail: Ẩn chi tiết
12
+ legMissingFareInfo: Không có thông tin giá vé cho chân này
19
13
  minutesActive: >-
20
14
  Thời gian hoạt động: <strong>{approximatePrefix, select, true {~} other
21
15
  {}}{minutes} phút</strong>
16
+ missingFareTotal: Không có sẵn tổng giá vé
22
17
  showDetail: Hiển thị chi tiết
23
18
  timeActiveDescription: >
24
19
  Nếu thực hiện chuyến đi này, quý vị sẽ dành <strong>{walkMinutes}
@@ -30,5 +25,3 @@ otpUi:
30
25
  transitFare: Giá vé xe công cộng
31
26
  transitFareEntry: "{name}: <strong>{value}</strong>"
32
27
  tripIncludesFlex: Chuyến đi này bao gồm các tuyến đường linh hoạt. {extraMessage}
33
- legMissingFareInfo: Không có thông tin giá vé cho chân này
34
- missingFareTotal: Không có sẵn tổng giá vé
package/i18n/zh_Hans.yml CHANGED
@@ -1,21 +1,16 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: 现金
5
- electronic: 电子的
6
- regular: 成人
7
- senior: 长者
8
- special: 特别的
9
- youth: 青年
10
3
  co2: "排放的二氧化碳: <strong>{co2}</strong>"
11
4
  co2description: CO₂ 强度的计算方法是将行程的每条腿的距离乘以每种模式的 CO₂ 强度。 每种模式的二氧化碳强度来自<link>此电子表格</link>。
12
5
  departure: >-
13
6
  <strong>{departureDate, date, long}</strong> <strong>{departureDate, time,
14
7
  short}</strong> 出发
15
8
  hideDetail: 隐藏细节
9
+ legMissingFareInfo: 无此行程段的票价信息
16
10
  minutesActive: >-
17
11
  活动时间: <strong>{approximatePrefix, select, true {约 } other {}}{minutes}
18
12
  分钟</strong>
13
+ missingFareTotal: 无票价总额
19
14
  showDetail: 显示详细资料
20
15
  timeActiveDescription: >
21
16
  在本次行程中,您将步行 <strong>{walkMinutes} 分钟</strong>,骑行<strong>{bikeMinutes}
@@ -26,5 +21,3 @@ otpUi:
26
21
  transitFare: 公共交通费
27
22
  transitFareEntry: "{name}: <strong>{value}</strong>"
28
23
  tripIncludesFlex: 这个行程包括灵活的路线. {extraMessage}
29
- legMissingFareInfo: 无此行程段的票价信息
30
- missingFareTotal: 无票价总额
package/i18n/zh_Hant.yml CHANGED
@@ -1,12 +1,5 @@
1
1
  otpUi:
2
2
  TripDetails:
3
- FareTable:
4
- cash: 現金
5
- electronic: 電子
6
- regular: 成人
7
- senior: 年長者
8
- special: 特殊
9
- youth: 青少年
10
3
  co2: 排放的二氧化碳:<strong>{co2}</strong>
11
4
  co2description: 二氧化碳密度是以一個行程每條腿的距離乘以各個模式的二氧化碳密度來計算。各個模式的二氧化碳密度是從<link>此試算表</link>中取得。
12
5
  departure: >-
@@ -1,51 +1,54 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
6
17
  });
7
- exports.default = DepartureDate;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _reactIntl = require("react-intl");
10
- var _CalendarAlt = require("@styled-icons/fa-solid/CalendarAlt");
11
- var _flat = _interopRequireDefault(require("flat"));
12
- var _utils = require("../utils");
13
- var _tripDetail = _interopRequireDefault(require("../trip-detail"));
14
- var S = _interopRequireWildcard(require("../styled"));
15
- var _enUS = _interopRequireDefault(require("../../i18n/en-US.yml"));
16
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const react_1 = __importDefault(require("react"));
30
+ const react_intl_1 = require("react-intl");
31
+ const CalendarAlt_1 = require("@styled-icons/fa-solid/CalendarAlt");
32
+ const flat_1 = __importDefault(require("flat"));
33
+ const utils_1 = require("../utils");
34
+ const trip_detail_1 = __importDefault(require("../trip-detail"));
35
+ const S = __importStar(require("../styled"));
18
36
  // Load the default messages.
19
-
37
+ const en_US_yml_1 = __importDefault(require("../../i18n/en-US.yml"));
20
38
  // HACK: We should flatten the messages loaded above because
21
39
  // the YAML loaders behave differently between webpack and our version of jest:
22
40
  // - the yaml loader for webpack returns a nested object,
23
41
  // - the yaml loader for jest returns messages with flattened ids.
24
- const defaultMessages = (0, _flat.default)(_enUS.default);
25
- function DepartureDate({
26
- itinerary,
27
- DepartureDetails
28
- }) {
29
- const departureDate = new Date(itinerary.startTime);
30
- return /*#__PURE__*/_react.default.createElement(_tripDetail.default, {
31
- className: "departure-date"
32
- // Any custom description for the Departure message needs to be handled by the slot.
33
- ,
34
- description: DepartureDetails && /*#__PURE__*/_react.default.createElement(DepartureDetails, {
35
- departureDate: departureDate
36
- }),
37
- icon: /*#__PURE__*/_react.default.createElement(_CalendarAlt.CalendarAlt, {
38
- size: 17
39
- }),
40
- summary: /*#__PURE__*/_react.default.createElement(S.Timing, null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
41
- defaultMessage: defaultMessages["otpUi.TripDetails.departure"],
42
- description: "Text showing the departure date/time for a trip.",
43
- id: "otpUi.TripDetails.departure",
44
- values: {
45
- departureDate,
46
- strong: _utils.boldText
47
- }
48
- }))
49
- });
42
+ const defaultMessages = (0, flat_1.default)(en_US_yml_1.default);
43
+ function DepartureDate({ itinerary, DepartureDetails }) {
44
+ const departureDate = new Date(itinerary.startTime);
45
+ return (react_1.default.createElement(trip_detail_1.default, { className: "departure-date",
46
+ // Any custom description for the Departure message needs to be handled by the slot.
47
+ description: DepartureDetails && react_1.default.createElement(DepartureDetails, { departureDate: departureDate }), icon: react_1.default.createElement(CalendarAlt_1.CalendarAlt, { size: 17 }), summary: react_1.default.createElement(S.Timing, null,
48
+ react_1.default.createElement(react_intl_1.FormattedMessage, { defaultMessage: defaultMessages["otpUi.TripDetails.departure"], description: "Text showing the departure date/time for a trip.", id: "otpUi.TripDetails.departure", values: {
49
+ departureDate,
50
+ strong: utils_1.boldText
51
+ } })) }));
50
52
  }
53
+ exports.default = DepartureDate;
51
54
  //# sourceMappingURL=departure-date.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"departure-date.js","names":["_react","_interopRequireDefault","require","_reactIntl","_CalendarAlt","_flat","_utils","_tripDetail","S","_interopRequireWildcard","_enUS","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","defaultMessages","flatten","defaultEnglishMessages","DepartureDate","itinerary","DepartureDetails","departureDate","Date","startTime","createElement","className","description","icon","CalendarAlt","size","summary","Timing","FormattedMessage","defaultMessage","id","values","strong","boldText"],"sources":["../../src/components/departure-date.tsx"],"sourcesContent":["import { Itinerary } from \"@opentripplanner/types\";\nimport React, { ReactElement } from \"react\";\nimport { FormattedMessage } from \"react-intl\";\nimport { CalendarAlt } from \"@styled-icons/fa-solid/CalendarAlt\";\nimport flatten from \"flat\";\nimport { boldText } from \"../utils\";\nimport { DepartureDetailsProps } from \"../types\";\nimport TripDetail from \"../trip-detail\";\nimport * as S from \"../styled\";\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\ninterface DepartureDateProps {\n itinerary: Itinerary;\n DepartureDetails?: React.ElementType<DepartureDetailsProps>;\n}\n\nexport default function DepartureDate({\n itinerary,\n DepartureDetails\n}: DepartureDateProps): ReactElement {\n const departureDate = new Date(itinerary.startTime);\n return (\n <TripDetail\n className=\"departure-date\"\n // Any custom description for the Departure message needs to be handled by the slot.\n description={\n DepartureDetails && <DepartureDetails departureDate={departureDate} />\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/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":"departure-date.js","sourceRoot":"","sources":["../../src/components/departure-date.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAA4C;AAC5C,2CAA8C;AAC9C,oEAAiE;AACjE,gDAA2B;AAC3B,oCAAoC;AAEpC,iEAAwC;AACxC,6CAA+B;AAE/B,6BAA6B;AAC7B,qEAA0D;AAE1D,4DAA4D;AAC5D,+EAA+E;AAC/E,yDAAyD;AACzD,kEAAkE;AAClE,MAAM,eAAe,GAA2B,IAAA,cAAO,EAAC,mBAAsB,CAAC,CAAC;AAOhF,SAAwB,aAAa,CAAC,EACpC,SAAS,EACT,gBAAgB,EACG;IACnB,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACpD,OAAO,CACL,8BAAC,qBAAU,IACT,SAAS,EAAC,gBAAgB;QAC1B,oFAAoF;QACpF,WAAW,EACT,gBAAgB,IAAI,8BAAC,gBAAgB,IAAC,aAAa,EAAE,aAAa,GAAI,EAExE,IAAI,EAAE,8BAAC,yBAAW,IAAC,IAAI,EAAE,EAAE,GAAI,EAC/B,OAAO,EACL,8BAAC,CAAC,CAAC,MAAM;YACP,8BAAC,6BAAgB,IACf,cAAc,EAAE,eAAe,CAAC,6BAA6B,CAAC,EAC9D,WAAW,EAAC,kDAAkD,EAC9D,EAAE,EAAC,6BAA6B,EAChC,MAAM,EAAE;oBACN,aAAa;oBACb,MAAM,EAAE,gBAAQ;iBACjB,GACD,CACO,GAEb,CACH,CAAC;AACJ,CAAC;AA5BD,gCA4BC"}