@local-logic/sdks-app 1.0.0-beta.42 → 1.0.0-beta.45

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 (113) hide show
  1. package/dist/assets/{index.1679f9d5.js → index.58d7e039.js} +186 -185
  2. package/dist/assets/index.fde633ba.js +743 -0
  3. package/dist/index.html +1 -1
  4. package/dist/types/features/scores/keyFactory.d.ts +1 -1
  5. package/dist/types/sdks/LocalContent/Map/Attribution/index.d.ts +4 -0
  6. package/dist/types/sdks/LocalContent/Map/Attribution/index.d.ts.map +1 -0
  7. package/dist/types/sdks/LocalContent/Map/Attribution/index.js +7 -0
  8. package/dist/types/sdks/LocalContent/Map/Attribution/index.js.map +1 -0
  9. package/dist/types/sdks/LocalContent/Map/Attribution/styles.d.ts +2 -0
  10. package/dist/types/sdks/LocalContent/Map/Attribution/styles.d.ts.map +1 -0
  11. package/dist/types/sdks/LocalContent/Map/Attribution/styles.js +9 -0
  12. package/dist/types/sdks/LocalContent/Map/Attribution/styles.js.map +1 -0
  13. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/ScoreCategory/Score/index.d.ts +0 -0
  14. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/index.d.ts.map +1 -0
  15. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/ScoreCategory/Score/index.js +3 -2
  16. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/index.js.map +1 -0
  17. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/ScoreCategory/Score/styles.d.ts +0 -0
  18. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/styles.d.ts.map +1 -0
  19. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/ScoreCategory/Score/styles.js +0 -0
  20. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/styles.js.map +1 -0
  21. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/ScoreCategory/index.d.ts +2 -2
  22. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/index.d.ts.map +1 -0
  23. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/ScoreCategory/index.js +6 -2
  24. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/index.js.map +1 -0
  25. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/ScoreCategory/styles.d.ts +0 -0
  26. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/styles.d.ts.map +1 -0
  27. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/ScoreCategory/styles.js +0 -0
  28. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/styles.js.map +1 -0
  29. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.d.ts +7 -0
  30. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.d.ts.map +1 -0
  31. package/dist/types/sdks/LocalContent/Map/{Scores → DesktopScores}/ScoreCategoryAccordion/index.js +4 -2
  32. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.js.map +1 -0
  33. package/dist/types/sdks/LocalContent/Map/DesktopScores/index.d.ts +4 -0
  34. package/dist/types/sdks/LocalContent/Map/DesktopScores/index.d.ts.map +1 -0
  35. package/dist/types/sdks/LocalContent/Map/DesktopScores/index.js +21 -0
  36. package/dist/types/sdks/LocalContent/Map/DesktopScores/index.js.map +1 -0
  37. package/dist/types/sdks/LocalContent/Map/DesktopScores/styles.d.ts +5 -0
  38. package/dist/types/sdks/LocalContent/Map/DesktopScores/styles.d.ts.map +1 -0
  39. package/dist/types/sdks/LocalContent/Map/DesktopScores/styles.js +31 -0
  40. package/dist/types/sdks/LocalContent/Map/DesktopScores/styles.js.map +1 -0
  41. package/dist/types/sdks/LocalContent/Map/Markers/index.d.ts.map +1 -1
  42. package/dist/types/sdks/LocalContent/Map/Markers/index.js +5 -3
  43. package/dist/types/sdks/LocalContent/Map/Markers/index.js.map +1 -1
  44. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreCategory/index.d.ts +8 -0
  45. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreCategory/index.d.ts.map +1 -0
  46. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreCategory/index.js +46 -0
  47. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreCategory/index.js.map +1 -0
  48. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreCategory/styles.d.ts +5 -0
  49. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreCategory/styles.d.ts.map +1 -0
  50. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreCategory/styles.js +30 -0
  51. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreCategory/styles.js.map +1 -0
  52. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreInfo/index.d.ts +4 -0
  53. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreInfo/index.d.ts.map +1 -0
  54. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreInfo/index.js +37 -0
  55. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreInfo/index.js.map +1 -0
  56. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreInfo/styles.d.ts +4 -0
  57. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreInfo/styles.d.ts.map +1 -0
  58. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreInfo/styles.js +20 -0
  59. package/dist/types/sdks/LocalContent/Map/MobileScores/ScoreInfo/styles.js.map +1 -0
  60. package/dist/types/sdks/LocalContent/Map/MobileScores/index.d.ts +7 -0
  61. package/dist/types/sdks/LocalContent/Map/MobileScores/index.d.ts.map +1 -0
  62. package/dist/types/sdks/LocalContent/Map/MobileScores/index.js +11 -0
  63. package/dist/types/sdks/LocalContent/Map/MobileScores/index.js.map +1 -0
  64. package/dist/types/sdks/LocalContent/Map/MobileScores/styles.d.ts +5 -0
  65. package/dist/types/sdks/LocalContent/Map/MobileScores/styles.d.ts.map +1 -0
  66. package/dist/types/sdks/LocalContent/Map/MobileScores/styles.js +24 -0
  67. package/dist/types/sdks/LocalContent/Map/MobileScores/styles.js.map +1 -0
  68. package/dist/types/sdks/LocalContent/Map/{Scores/ScoreCategoryAccordion/ScoreCategory/Score/POIs → POIs}/index.d.ts +0 -0
  69. package/dist/types/sdks/LocalContent/Map/POIs/index.d.ts.map +1 -0
  70. package/dist/types/sdks/LocalContent/Map/{Scores/ScoreCategoryAccordion/ScoreCategory/Score/POIs → POIs}/index.js +8 -5
  71. package/dist/types/sdks/LocalContent/Map/POIs/index.js.map +1 -0
  72. package/dist/types/sdks/LocalContent/Map/{Scores/ScoreCategoryAccordion/ScoreCategory/Score/Schools → Schools}/index.d.ts +0 -0
  73. package/dist/types/sdks/LocalContent/Map/Schools/index.d.ts.map +1 -0
  74. package/dist/types/sdks/LocalContent/Map/{Scores/ScoreCategoryAccordion/ScoreCategory/Score/Schools → Schools}/index.js +9 -6
  75. package/dist/types/sdks/LocalContent/Map/Schools/index.js.map +1 -0
  76. package/dist/types/sdks/LocalContent/Map/index.d.ts.map +1 -1
  77. package/dist/types/sdks/LocalContent/Map/index.js +51 -22
  78. package/dist/types/sdks/LocalContent/Map/index.js.map +1 -1
  79. package/dist/types/sdks/LocalContent/Map/styles.d.ts +3 -0
  80. package/dist/types/sdks/LocalContent/Map/styles.d.ts.map +1 -0
  81. package/dist/types/sdks/LocalContent/Map/styles.js +17 -0
  82. package/dist/types/sdks/LocalContent/Map/styles.js.map +1 -0
  83. package/dist/types/sdks/LocalContent/context.d.ts +6 -4
  84. package/dist/types/sdks/LocalContent/context.d.ts.map +1 -1
  85. package/dist/types/sdks/LocalContent/context.js +45 -11
  86. package/dist/types/sdks/LocalContent/context.js.map +1 -1
  87. package/dist/types/sdks/LocalContent/features/usePois.js +1 -1
  88. package/dist/types/sdks/LocalContent/features/usePois.js.map +1 -1
  89. package/package.json +5 -4
  90. package/dist/assets/index.f5e9a24b.js +0 -719
  91. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/Score/POIs/index.d.ts.map +0 -1
  92. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/Score/POIs/index.js.map +0 -1
  93. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/Score/Schools/index.d.ts.map +0 -1
  94. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/Score/Schools/index.js.map +0 -1
  95. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/Score/index.d.ts.map +0 -1
  96. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/Score/index.js.map +0 -1
  97. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/Score/styles.d.ts.map +0 -1
  98. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/Score/styles.js.map +0 -1
  99. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/index.d.ts.map +0 -1
  100. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/index.js.map +0 -1
  101. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/styles.d.ts.map +0 -1
  102. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/ScoreCategory/styles.js.map +0 -1
  103. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/index.d.ts +0 -7
  104. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/index.d.ts.map +0 -1
  105. package/dist/types/sdks/LocalContent/Map/Scores/ScoreCategoryAccordion/index.js.map +0 -1
  106. package/dist/types/sdks/LocalContent/Map/Scores/index.d.ts +0 -8
  107. package/dist/types/sdks/LocalContent/Map/Scores/index.d.ts.map +0 -1
  108. package/dist/types/sdks/LocalContent/Map/Scores/index.js +0 -69
  109. package/dist/types/sdks/LocalContent/Map/Scores/index.js.map +0 -1
  110. package/dist/types/sdks/LocalContent/Map/Scores/styles.d.ts +0 -18
  111. package/dist/types/sdks/LocalContent/Map/Scores/styles.d.ts.map +0 -1
  112. package/dist/types/sdks/LocalContent/Map/Scores/styles.js +0 -92
  113. package/dist/types/sdks/LocalContent/Map/Scores/styles.js.map +0 -1
package/dist/index.html CHANGED
@@ -23,7 +23,7 @@
23
23
  <link rel="manifest" href="data:application/manifest+json;base64,eyJuYW1lIjoiIiwic2hvcnRfbmFtZSI6IiIsImljb25zIjpbeyJzcmMiOiIvYW5kcm9pZC1jaHJvbWUtMTkyeDE5Mi5wbmciLCJzaXplcyI6IjE5MngxOTIiLCJ0eXBlIjoiaW1hZ2UvcG5nIn0seyJzcmMiOiIvYW5kcm9pZC1jaHJvbWUtNTEyeDUxMi5wbmciLCJzaXplcyI6IjUxMng1MTIiLCJ0eXBlIjoiaW1hZ2UvcG5nIn1dLCJ0aGVtZV9jb2xvciI6IiNmZmZmZmYiLCJiYWNrZ3JvdW5kX2NvbG9yIjoiI2ZmZmZmZiIsImRpc3BsYXkiOiJzdGFuZGFsb25lIn0=" />
24
24
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
25
25
  <title>Local Logic</title>
26
- <script type="module" crossorigin src="/sdks-app/v1/assets/index.1679f9d5.js"></script>
26
+ <script type="module" crossorigin src="/sdks-app/v1/assets/index.58d7e039.js"></script>
27
27
  </head>
28
28
  <body style="overflow: hidden; margin: 0;">
29
29
  <script src="http://localhost:8097"></script>
@@ -4,10 +4,10 @@ export declare const scoresKeys: {
4
4
  list: (filters: Partial<scoresResponse>) => readonly ["scores", Partial<{
5
5
  lat?: number | undefined;
6
6
  lng?: number | undefined;
7
+ include?: ("high_schools" | "primary_schools" | "transit_friendly" | "groceries" | "restaurants" | "pedestrian_friendly" | "greenery" | "historic" | "cycling_friendly" | "car_friendly" | "vibrant" | "shopping" | "nightlife" | "cafes" | "quiet" | "parks" | "daycares" | "wellness")[] | undefined;
7
8
  geographyIds?: string[] | undefined;
8
9
  geographyLevels?: ("10" | "20" | "30")[] | undefined;
9
10
  locationScoresRounding?: boolean | undefined;
10
- include?: ("high_schools" | "primary_schools" | "transit_friendly" | "groceries" | "restaurants" | "pedestrian_friendly" | "greenery" | "historic" | "cycling_friendly" | "car_friendly" | "vibrant" | "shopping" | "nightlife" | "cafes" | "quiet" | "parks" | "daycares" | "wellness")[] | undefined;
11
11
  }>];
12
12
  };
13
13
  //# sourceMappingURL=keyFactory.d.ts.map
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const Attribution: () => JSX.Element;
3
+ export default Attribution;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/Attribution/index.tsx"],"names":[],"mappings":";AAIA,QAAA,MAAM,WAAW,mBAIhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { Attribution as A } from "@local-logic/elements-react";
3
+ import * as S from "./styles";
4
+ const Attribution = () => (React.createElement(S.AttributionContainer, null,
5
+ React.createElement(A.Root, null)));
6
+ export default Attribution;
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/Attribution/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,IAAI,CAAC,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,oBAAC,CAAC,CAAC,oBAAoB;IACrB,oBAAC,CAAC,CAAC,IAAI,OAAG,CACa,CAC1B,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const AttributionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/Attribution/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,oEAKhC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { theme } from "@local-logic/ui";
2
+ import styled from "styled-components";
3
+ export const AttributionContainer = styled.div `
4
+ display: flex;
5
+ justify-content: center;
6
+ padding: ${theme["--ll-spacing-small"]};
7
+ background-color: ${theme["--ll-color-background"]};
8
+ `;
9
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/Attribution/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;aAGjC,KAAK,CAAC,oBAAoB,CAAC;sBAClB,KAAK,CAAC,uBAAuB,CAAC;CACnD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAUxD,UAAU,UAAU;IAClB,KAAK,EAAE,OAAO,CAAC,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1C,IAAI,EAAE,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/C,SAAS,EAAE,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC;CAC1D;AAED,QAAA,MAAM,KAAK,yDAA2C,UAAU,iBAkD9D,CAAC;AAIH,eAAe,KAAK,CAAC"}
@@ -3,8 +3,8 @@ import { LoadingItem, Spacer, SVG, theme } from "@local-logic/ui";
3
3
  import { Score as ScoreE, ScorePOIs } from "@local-logic/elements-react";
4
4
  import * as Accordion from "@radix-ui/react-accordion";
5
5
  import ChevronRightSVG from "~/assets/icons/chevron_right.svg";
6
- import Schools from "./Schools";
7
- import POIs from "./POIs";
6
+ import Schools from "../../../../Schools";
7
+ import POIs from "../../../../POIs";
8
8
  import * as S from "./styles";
9
9
  const { scorePois } = ScorePOIs.Constants;
10
10
  const Score = React.memo(({ score, isLoading, data }) => {
@@ -30,6 +30,7 @@ const Score = React.memo(({ score, isLoading, data }) => {
30
30
  React.createElement(S.Content, null,
31
31
  React.createElement(S.InnerContent, null,
32
32
  React.createElement(ScoreE.Description, null),
33
+ React.createElement(Spacer, { vertical: true, spacing: "--ll-spacing-small" }),
33
34
  React.createElement(ScoreE.BarChart, null),
34
35
  React.createElement(S.POIContainer, null, score === "high_schools" || score === "primary_schools" ? (React.createElement(Schools, { score: score })) : (React.createElement(POIs, { include: scorePois[score] }))))))));
35
36
  });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../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C,OAAO,EAAC,oBAAoB,GAAG;oBACvC,oBAAC,MAAM,CAAC,IAAI,OAAG;oBACf,oBAAC,MAAM,IAAC,OAAO,EAAC,oBAAoB,GAAG;oBACvC,oBAAC,MAAM,CAAC,KAAK,OAAG;oBAChB,oBAAC,MAAM,OAAG;oBACV,oBAAC,MAAM,CAAC,KAAK,OAAG,CACN,CACH;YACX,oBAAC,CAAC,CAAC,OAAO;gBACR,oBAAC,CAAC,CAAC,YAAY;oBACb,oBAAC,MAAM,CAAC,WAAW,OAAG;oBACtB,oBAAC,MAAM,IAAC,QAAQ,QAAC,OAAO,EAAC,oBAAoB,GAAG;oBAChD,oBAAC,MAAM,CAAC,QAAQ,OAAG;oBACnB,oBAAC,CAAC,CAAC,YAAY,QACZ,KAAK,KAAK,cAAc,IAAI,KAAK,KAAK,iBAAiB,CAAC,CAAC,CAAC,CACzD,oBAAC,OAAO,IAAC,KAAK,EAAE,KAAK,GAAI,CAC1B,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI,IAAC,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,GAAI,CACpC,CACc,CACF,CACP,CACA,CACC,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,eAAe,KAAK,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/styles.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AAavD,eAAO,MAAM,MAAM,4LAElB,CAAC;AAEF,eAAO,MAAM,OAAO,4LAOnB,CAAC;AAEF,eAAO,MAAM,OAAO,yLAenB,CAAC;AAEF,eAAO,MAAM,YAAY,oEAExB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qEAI5B,CAAC;AAEF,eAAO,MAAM,aAAa,oEAIzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAEhC,CAAC;AAEF,eAAO,MAAM,YAAY,oEAMxB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,MAAM,SAAS,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACnB,EAAE,EAAE,EAAE,MAAM,EAAE,uCAAuC,EAAE;CACxD,CAAC,CAAC;AAEH,MAAM,OAAO,GAAG,SAAS,CAAC;IACxB,IAAI,EAAE,EAAE,MAAM,EAAE,uCAAuC,EAAE;IACzD,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;CAE7C,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;;;;;;aAMnC,KAAK,CAAC,sBAAsB,CAAC;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;sBAC1B,KAAK,CAAC,oBAAoB,CAAC;;;;2BAItB,KAAK,CAAC,qBAAqB,CAAC;4BAC3B,KAAK,CAAC,qBAAqB,CAAC;;;iBAGvC,SAAS;;;;iBAIT,OAAO;;CAEvB,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;aACzB,KAAK,CAAC,qBAAqB,CAAC;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAA;IACvC,OAAO;;;CAGV,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAItC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;YAClC,KAAK,CAAC,oBAAoB,CAAC;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;gBACtB,KAAK,CAAC,oBAAoB,CAAC;;;;;CAK1C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ScoreCategories } from "@local-logic/elements-react";
2
+ import { scoreCategories } from "@local-logic/elements-react";
3
3
  import { UseQueryResult } from "@tanstack/react-query";
4
4
  import { Scores } from "@local-logic/client";
5
5
  interface ScoreCategoryProps {
@@ -7,7 +7,7 @@ interface ScoreCategoryProps {
7
7
  data: UseQueryResult<Scores, unknown>["data"];
8
8
  isLoading: UseQueryResult<Scores, unknown>["isLoading"];
9
9
  isFetching: UseQueryResult<Scores, unknown>["isFetching"];
10
- tabContent: typeof ScoreCategories.Constants.tabsContent[number];
10
+ tabContent: typeof scoreCategories[number];
11
11
  }
12
12
  declare const ScoreCategory: React.MemoExoticComponent<({ locale, data, isLoading, isFetching, tabContent }: ScoreCategoryProps) => JSX.Element>;
13
13
  export default ScoreCategory;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEL,eAAe,EAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9C,SAAS,EAAE,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC;IACxD,UAAU,EAAE,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;IAC1D,UAAU,EAAE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;CAC5C;AAED,QAAA,MAAM,aAAa,kFACqC,kBAAkB,iBA+BzE,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React, { useMemo } from "react";
2
2
  import { Spacer, LoadingSpinner, Text } from "@local-logic/ui";
3
- import { ScoreCategories } from "@local-logic/elements-react";
3
+ import { ScoreCategoryTabs, } from "@local-logic/elements-react";
4
4
  import Score from "./Score";
5
5
  import * as S from "./styles";
6
6
  const ScoreCategory = React.memo(({ locale, data, isLoading, isFetching, tabContent }) => {
@@ -12,7 +12,11 @@ const ScoreCategory = React.memo(({ locale, data, isLoading, isFetching, tabCont
12
12
  }, [locale]);
13
13
  return (React.createElement(S.ScoreCategory, null,
14
14
  React.createElement(S.TitleContainer, null,
15
- React.createElement(ScoreCategories.Title, { variant: "h4", noMargin: true, weight: "--ll-font-weight-medium" }),
15
+ React.createElement(ScoreCategoryTabs.Title, { options: {
16
+ variant: "h4",
17
+ noMargin: true,
18
+ weight: "--ll-font-weight-medium",
19
+ } }),
16
20
  isFetching && !isLoading && React.createElement(LoadingSpinner, { size: "small" })),
17
21
  React.createElement(Spacer, { spacing: "--ll-spacing-small", vertical: true }),
18
22
  !isFetching && !Object.keys((data === null || data === void 0 ? void 0 : data.location) || {}).length && (React.createElement(Text, { color: "--ll-color-on-background-variant1" }, emptyText)),
@@ -0,0 +1 @@
1
+ {"version":3,"file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C,KAAK,EAAC,mCAAmC,IAAE,SAAS,CAAQ,CACnE;QACA,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAChC,oBAAC,KAAK,IAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,GAAI,CACtE,CAAC,CACc,CACnB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE5C,eAAe,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,oEAEzB,CAAC;AAEF,eAAO,MAAM,cAAc,oEAI1B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;aAC1B,KAAK,CAAC,oBAAoB,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC;CACvE,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIvC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { scoreCategories } from "@local-logic/elements-react";
3
+ declare const ScoreCategoryAccordion: React.MemoExoticComponent<({ tabContent }: {
4
+ tabContent: (typeof scoreCategories)[number];
5
+ }) => JSX.Element>;
6
+ export default ScoreCategoryAccordion;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAiB,MAAM,6BAA6B,CAAC;AAM7E,QAAA,MAAM,sBAAsB;gBACK,CAAA,sBAAsB,EAAC,MAAM,CAAC;kBAwB9D,CAAC;AAIF,eAAe,sBAAsB,CAAC"}
@@ -4,11 +4,13 @@ import * as Accordion from "@radix-ui/react-accordion";
4
4
  import { useLocalContent } from "../../../context";
5
5
  import { useScores } from "../../../features/useScores";
6
6
  import ScoreCategory from "./ScoreCategory";
7
- const ScoreCategoryAccordion = React.memo(({ tabContent, }) => {
7
+ const ScoreCategoryAccordion = React.memo(({ tabContent }) => {
8
8
  const { client } = useLocalLogic();
9
9
  const { data, isLoading, isFetching } = useScores(tabContent.scores);
10
10
  const { activeScore, setActiveScore } = useLocalContent();
11
- return (React.createElement(Accordion.Root, { value: activeScore, onValueChange: (v) => setActiveScore(v), type: "single", collapsible: true },
11
+ return (React.createElement(Accordion.Root, { value: activeScore, onValueChange: (v) => {
12
+ setActiveScore(v);
13
+ }, type: "single", collapsible: true },
12
14
  React.createElement(ScoreCategory, { data: data, isLoading: isLoading, isFetching: isFetching, tabContent: tabContent, locale: client.options.locale })));
13
15
  });
14
16
  ScoreCategoryAccordion.displayName = "ScoreCategoryAccordion";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAmB,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,sBAAsB,GAAG,KAAK,CAAC,IAAI,CACvC,CAAC,EAAE,UAAU,EAAkD,EAAE,EAAE;IACjE,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IACnC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACrE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,eAAe,EAAE,CAAC;IAE1D,OAAO,CACL,oBAAC,SAAS,CAAC,IAAI,IACb,KAAK,EAAE,WAAW,EAClB,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE;YACnB,cAAc,CAAC,CAA6B,CAAC,CAAC;QAChD,CAAC,EACD,IAAI,EAAC,QAAQ,EACb,WAAW;QAEX,oBAAC,aAAa,IACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,GAC7B,CACa,CAClB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAsB,CAAC,WAAW,GAAG,wBAAwB,CAAC;AAE9D,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ declare const DesktopScores: React.ForwardRefExoticComponent<React.RefAttributes<HTMLDivElement>>;
3
+ export default DesktopScores;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/DesktopScores/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,QAAA,MAAM,aAAa,sEAgCjB,CAAC;AAIH,eAAe,aAAa,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { ScoreCategoryTabs, scoreCategories, } from "@local-logic/elements-react";
3
+ import ScoreCategoryAccordion from "./ScoreCategoryAccordion";
4
+ import * as S from "./styles";
5
+ import { useLocalContent } from "../../context";
6
+ import Attribution from "../Attribution";
7
+ const DesktopScores = React.forwardRef((_, forwardedRef) => {
8
+ const { activeCategory, setActiveCategory, setShowMobileList } = useLocalContent();
9
+ return (React.createElement(ScoreCategoryTabs.Root, { options: { currentTab: activeCategory }, onChange: (e) => {
10
+ setActiveCategory(e.data);
11
+ } },
12
+ React.createElement(S.ScoresContainer, { ref: forwardedRef },
13
+ React.createElement(S.TabsContainer, null,
14
+ React.createElement(ScoreCategoryTabs.Tabs, null)),
15
+ React.createElement(S.ScrollContainer, null, scoreCategories.map((tabContent) => (React.createElement(ScoreCategoryTabs.Content, { key: tabContent.value, options: { value: tabContent.value } },
16
+ React.createElement(ScoreCategoryAccordion, { tabContent: tabContent, key: tabContent.value }))))),
17
+ React.createElement(Attribution, null))));
18
+ });
19
+ DesktopScores.displayName = "DesktopScores";
20
+ export default DesktopScores;
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/DesktopScores/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,iBAAiB,EACjB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE;IACzE,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,GAC5D,eAAe,EAAE,CAAC;IAEpB,OAAO,CACL,oBAAC,iBAAiB,CAAC,IAAI,IACrB,OAAO,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,EACvC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACd,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;QAED,oBAAC,CAAC,CAAC,eAAe,IAAC,GAAG,EAAE,YAAY;YAClC,oBAAC,CAAC,CAAC,aAAa;gBACd,oBAAC,iBAAiB,CAAC,IAAI,OAAG,CACV;YAClB,oBAAC,CAAC,CAAC,eAAe,QACf,eAAe,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CACnC,oBAAC,iBAAiB,CAAC,OAAO,IACxB,GAAG,EAAE,UAAU,CAAC,KAAK,EACrB,OAAO,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE;gBAEpC,oBAAC,sBAAsB,IACrB,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,UAAU,CAAC,KAAK,GACrB,CACwB,CAC7B,CAAC,CACgB;YACpB,oBAAC,WAAW,OAAG,CACG,CACG,CAC1B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE5C,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const ScrollContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const ScoresContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const AttributionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const TabsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/DesktopScores/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,oEAE3B,CAAC;AAEF,eAAO,MAAM,eAAe,oEAe3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAIhC,CAAC;AAEF,eAAO,MAAM,aAAa,oEAGzB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { theme } from "@local-logic/ui";
2
+ import styled from "styled-components";
3
+ export const ScrollContainer = styled.div `
4
+ overflow-y: auto;
5
+ `;
6
+ export const ScoresContainer = styled.div `
7
+ position: absolute;
8
+ top: ${theme["--ll-spacing-medium"]};
9
+ left: ${theme["--ll-spacing-medium"]};
10
+ width: 360px;
11
+ max-height: calc(100% - 2 * ${theme["--ll-spacing-medium"]});
12
+ z-index: 1;
13
+ border-radius: ${theme["--ll-border-radius-medium"]};
14
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;
15
+ background-color: #fff;
16
+ overflow: hidden;
17
+ display: flex;
18
+ flex-direction: column;
19
+ background-color: ${theme["--ll-color-background"]};
20
+ border: 1px solid ${theme["--ll-color-border"]};
21
+ `;
22
+ export const AttributionContainer = styled.div `
23
+ display: flex;
24
+ justify-content: center;
25
+ padding: ${theme["--ll-spacing-small"]};
26
+ `;
27
+ export const TabsContainer = styled.div `
28
+ padding: ${theme["--ll-spacing-x-small"]};
29
+ border-bottom: 1px solid ${theme["--ll-color-border"]};
30
+ `;
31
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/DesktopScores/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;CAExC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;SAEhC,KAAK,CAAC,qBA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AAE,OAAO,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CACvD;AAMD,QAAA,MAAM,OAAO,0HAWR,YAAY,iBA8FhB,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/Markers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAU,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAQ,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAiB,MAAM,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AASpD,UAAU,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnD,MAAM,EAAE,OAAO,CACb,KAAK,EACL;QACE,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CACF,EAAE,CAAC;IACJ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,UAAU,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CACvD;AAMD,QAAA,MAAM,OAAO,0HAWR,YAAY,iBAgGhB,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -42,8 +42,8 @@ const Markers = React.memo(({ rect, zoom, mapRef, points, isMobile, activePOI, h
42
42
  side: "top",
43
43
  collisionPadding: isMobile
44
44
  ? {
45
- top: 65,
46
- bottom: 65,
45
+ top: rect.height + 32,
46
+ bottom: gridUnit * 2,
47
47
  left: gridUnit * 2,
48
48
  right: gridUnit * 2,
49
49
  }
@@ -55,7 +55,9 @@ const Markers = React.memo(({ rect, zoom, mapRef, points, isMobile, activePOI, h
55
55
  },
56
56
  }, onChange: (e) => {
57
57
  if (e.type === "open-change") {
58
- setActivePOI(isOpen ? undefined : poi);
58
+ if (e.data) {
59
+ setActivePOI(poi);
60
+ }
59
61
  }
60
62
  } },
61
63
  React.createElement(POIMarker.Marker, null),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/Markers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAIxD,OAAO,OAAO,MAAM,WAAW,CAAC;AA0BhC,SAAS,SAAS,CAAC,OAA+B;IAChD,OAAQ,OAAmB,CAAC,UAAU,CAAC,OAAO,KAAK,SAAS,CAAC;AAC/D,CAAC;AAED,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CACxB,CAAC,EACC,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,GACC,EAAE,EAAE;;IACjB,MAAM,MAAM,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAC1B,MAAM,GACP,SAAS,GACT,OAAO,GACP,IAAI,EAAU,CAAC;IAClB,MAAM,EAAE,QAAQ,EAAE,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MAAM,EAAE,QAAQ,GAAG,CAAC;4BACpB,IAAI,EAAE,QAAQ,GAAG,CAAC;4BAClB,KAAK,EAAE,QAAQ,GAAG,CAAC;yBACpB;wBACH,CAAC,CAAC;4BACE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,EAAE;4BACrB,KAAK,EAAE,QAAQ,GAAG,CAAC;4BACnB,GAAG,EAAE,QAAQ,GAAG,CAAC;4BACjB,MAAM,EAAE,QAAQ,GAAG,CAAC;yBACrB;iBACN,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;oBACd,IAAI,CAAC,CAAC,IAAI,KAAK,aAAa,EAAE;wBAC5B,IAAI,CAAC,CAAC,IAAI,EAAE;4BACV,YAAY,CAAC,GAAG,CAAC,CAAC;yBACnB;qBACF;gBACH,CAAC;gBAED,oBAAC,SAAS,CAAC,MAAM,OAAG;gBACpB,oBAAC,SAAS,CAAC,OAAO,OAAG,CACN,CACV,CACV,CAAC;IACJ,CAAC,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AAEhC,eAAe,OAAO,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { scoreCategories } from "@local-logic/elements-react";
3
+ interface ScoreCategoryProps {
4
+ category: typeof scoreCategories[number];
5
+ }
6
+ declare const ScoreCategory: ({ category }: ScoreCategoryProps) => JSX.Element;
7
+ export default ScoreCategory;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/MobileScores/ScoreCategory/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAGL,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAMrC,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,aAAa,iBAAkB,kBAAkB,gBA+DtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ import { ScoreCategory as SC, Score, } from "@local-logic/elements-react";
3
+ import { LoadingItem } from "@local-logic/ui";
4
+ import { useScores } from "../../../features/useScores";
5
+ import { useLocalContent } from "../../../context";
6
+ import * as S from "./styles";
7
+ const ScoreCategory = ({ category }) => {
8
+ const { data, isLoading } = useScores(category.scores);
9
+ const { activeScore, setActiveScore, setActiveCategory, setShowMobileList } = useLocalContent();
10
+ if (isLoading) {
11
+ return React.createElement(LoadingItem, { height: "34px", width: "50px" });
12
+ }
13
+ return (React.createElement(SC.Root, { key: category.value, options: {
14
+ scoreCategory: category.value,
15
+ } },
16
+ React.createElement(S.CategoryContainer, null,
17
+ React.createElement(SC.Title, { options: {
18
+ variant: "caption2",
19
+ color: "--ll-color-disabled",
20
+ weight: "--ll-font-weight-bold",
21
+ } }),
22
+ React.createElement(S.CategoryScoresContainer, null, category.scores.map((score) => {
23
+ const isActive = score === activeScore;
24
+ const color = isActive
25
+ ? "--ll-color-primary"
26
+ : "--ll-color-disabled";
27
+ return (React.createElement(Score.Root, { key: score, options: { score, data } },
28
+ React.createElement(S.ScoreItem, { onClick: () => {
29
+ setShowMobileList(false);
30
+ setActiveCategory(category.value);
31
+ setActiveScore(score);
32
+ } },
33
+ React.createElement(Score.Icon, { options: { color } }),
34
+ React.createElement(Score.Title, { options: {
35
+ variant: "caption1",
36
+ color,
37
+ noWrap: true,
38
+ noMargin: true,
39
+ weight: "--ll-font-weight-bold",
40
+ } }),
41
+ React.createElement(S.BadgeContainer, null,
42
+ React.createElement(Score.Badge, { options: { variant: "small", isPrimary: isActive } })))));
43
+ })))));
44
+ };
45
+ export default ScoreCategory;
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/MobileScores/ScoreCategory/index.tsx"],"names":[],"m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;gBAE1B,OAAO,CACL,oBAAC,KAAK,CAAC,IAAI,IAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;oBAC9C,oBAAC,CAAC,CAAC,SAAS,IACV,OAAO,EAAE,GAAG,EAAE;4BACZ,iBAAiB,CAAC,KAAK,CAAC,CAAC;4BACzB,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;4BAClC,cAAc,CAAC,KAAK,CAAC,CAAC;wBACxB,CAAC;wBAED,oBAAC,KAAK,CAAC,IAAI,IAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAI;wBAClC,oBAAC,KAAK,CAAC,KAAK,IACV,OAAO,EAAE;gCACP,OAAO,EAAE,UAAU;gCACnB,KAAK;gCACL,MAAM,EAAE,IAAI;gCACZ,QAAQ,EAAE,IAAI;gCACd,MAAM,EAAE,uBAAuB;6BAChC,GACD;wBACF,oBAAC,CAAC,CAAC,cAAc;4BACf,oBAAC,KAAK,CAAC,KAAK,IACV,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAClD,CACe,CACP,CACH,CACd,CAAC;YACJ,CAAC,CAAC,CACwB,CACR,CACd,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const CategoryContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const CategoryScoresContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const ScoreItem: import("styled-components").StyledComponent<"button", any, {}, never>;
4
+ export declare const BadgeContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/MobileScores/ScoreCategory/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,oEAG7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,oEAEnC,CAAC;AAEF,eAAO,MAAM,SAAS,uEAYrB,CAAC;AAEF,eAAO,MAAM,cAAc,oEAM1B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { theme } from "@local-logic/ui";
2
+ import styled from "styled-components";
3
+ export const CategoryContainer = styled.div `
4
+ display: flex;
5
+ flex-direction: column;
6
+ `;
7
+ export const CategoryScoresContainer = styled.div `
8
+ display: flex;
9
+ `;
10
+ export const ScoreItem = styled.button `
11
+ position: relative;
12
+ display: flex;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ align-items: center;
16
+ background: none;
17
+ border: none;
18
+ width: 108px;
19
+ margin: 0;
20
+ padding: 0;
21
+ margin: 0 4px;
22
+ `;
23
+ export const BadgeContainer = styled.div `
24
+ position: absolute;
25
+ top: -6px;
26
+ right: 4px;
27
+ border: 2px solid ${theme["--ll-color-background"]};
28
+ border-radius: 6px;
29
+ `;
30
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/MobileScores/ScoreCategory/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAG1C,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEhD,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAA;;;;;;;;;;;;CAYrC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;sBAIlB,KAAK,CAAC,uBAAuB,CAAC;;CAEnD,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const ScoreInfo: () => JSX.Element | null;
3
+ export default ScoreInfo;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/MobileScores/ScoreInfo/index.tsx"],"names":[],"mappings":";AAWA,QAAA,MAAM,SAAS,0BA4Cd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ import { scoreCategories, Score, ScorePOIs } from "@local-logic/elements-react";
3
+ import { useLocalContent } from "../../../context";
4
+ import { useScores } from "../../../features/useScores";
5
+ import * as S from "./styles";
6
+ import POIs from "../../POIs";
7
+ import Schools from "../../Schools";
8
+ const { scorePois } = ScorePOIs.Constants;
9
+ const ScoreInfo = () => {
10
+ const { activeCategory, activeScore, showMobileList } = useLocalContent();
11
+ const currentScoreCategory = scoreCategories.find((c) => c.value === activeCategory);
12
+ const { data, isLoading } = useScores(currentScoreCategory.scores);
13
+ const renderPOIs = (score) => {
14
+ if (!showMobileList || !scorePois[score].length) {
15
+ return null;
16
+ }
17
+ return score === "high_schools" || score === "primary_schools" ? (React.createElement(Schools, { score: score })) : (React.createElement(POIs, { include: scorePois[score] }));
18
+ };
19
+ if (!(activeScore && (data === null || data === void 0 ? void 0 : data.location[activeScore]))) {
20
+ return null;
21
+ }
22
+ if (isLoading) {
23
+ return React.createElement("div", null, "Loading");
24
+ }
25
+ return (React.createElement(Score.Root, { options: {
26
+ score: activeScore,
27
+ data,
28
+ } },
29
+ React.createElement(S.ScoreInfo, null,
30
+ React.createElement(S.ScoreContainer, null,
31
+ React.createElement(Score.Badge, null),
32
+ React.createElement(Score.BarChart, null)),
33
+ React.createElement(Score.Description, null),
34
+ React.createElement(S.POIContainer, null, renderPOIs(activeScore)))));
35
+ };
36
+ export default ScoreInfo;
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot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AAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,CAAC,WAAW,CAAC,CAAA,CAAC,EAAE;QACjD,OAAO,IAAI,CAAC;KACb;IAED,IAAI,SAAS,EAAE;QACb,OAAO,2CAAkB,CAAC;KAC3B;IAED,OAAO,CACL,oBAAC,KAAK,CAAC,IAAI,IACT,OAAO,EAAE;YACP,KAAK,EAAE,WAAW;YAClB,IAAI;SACL;QAED,oBAAC,CAAC,CAAC,SAAS;YACV,oBAAC,CAAC,CAAC,cAAc;gBACf,oBAAC,KAAK,CAAC,KAAK,OAAG;gBACf,oBAAC,KAAK,CAAC,QAAQ,OAAG,CACD;YACnB,oBAAC,KAAK,CAAC,WAAW,OAAG;YACrB,oBAAC,CAAC,CAAC,YAAY,QAAE,UAAU,CAAC,WAAW,CAAC,CAAkB,CAC9C,CACH,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const ScoreInfo: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const ScoreContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const POIContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/MobileScores/ScoreInfo/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,oEAOrB,CAAC;AAEF,eAAO,MAAM,cAAc,oEAK1B,CAAC;AAEF,eAAO,MAAM,YAAY,oEAExB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import styled from "styled-components";
2
+ import { theme } from "@local-logic/ui";
3
+ export const ScoreInfo = styled.div `
4
+ padding: ${theme["--ll-spacing-small"]} ${theme["--ll-spacing-medium"]};
5
+ background-color: ${theme["--ll-color-surface"]};
6
+ display: flex;
7
+ flex-direction: column;
8
+ overflow: hidden;
9
+ flex: 1;
10
+ `;
11
+ export const ScoreContainer = styled.div `
12
+ display: grid;
13
+ grid-template-columns: min-content 1fr;
14
+ grid-gap: ${theme["--ll-spacing-medium"]};
15
+ margin-bottom: ${theme["--ll-spacing-medium"]};
16
+ `;
17
+ export const POIContainer = styled.div `
18
+ overflow: auto;
19
+ `;
20
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/sdks/LocalContent/Map/MobileScores/ScoreInfo/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;aACtB,KAAK,CAAC,oBAAoB,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC;sBAClD,KAAK,CAAC,oBAAoB,CAAC;;;;;CAKhD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;cAG1B,KAAK,CAAC,qBAAqB,CAAC;mBACvB,KAAK,CAAC,qBAAqB,CAAC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;CAErC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface MobileScoresProps {
3
+ showMobileList: boolean;
4
+ }
5
+ declare const MobileScores: React.ForwardRefExoticComponent<MobileScoresProps & React.RefAttributes<HTMLDivElement>>;
6
+ export default MobileScores;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/MobileScores/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,iBAAiB;IACzB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,QAAA,MAAM,YAAY,0FAWjB,CAAC;AAIF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { scoreCategories } from "@local-logic/elements-react";
3
+ import ScoreInfo from "./ScoreInfo";
4
+ import ScoreCategory from "./ScoreCategory";
5
+ import * as S from "./styles";
6
+ const MobileScores = React.forwardRef(({ showMobileList }, forwardedRef) => (React.createElement(S.ScoresContainer, { ref: forwardedRef, showMobileList: showMobileList },
7
+ React.createElement(S.CategoriesContainer, null, scoreCategories.map((category) => (React.createElement(ScoreCategory, { key: category.value, category: category })))),
8
+ React.createElement(ScoreInfo, null))));
9
+ MobileScores.displayName = "MobileScores";
10
+ export default MobileScores;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/LocalContent/Map/MobileScores/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAM9B,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CACnC,CAAC,EAAE,cAAc,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC,CACpC,oBAAC,CAAC,CAAC,eAAe,IAAC,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IAClE,oBAAC,CAAC,CAAC,mBAAmB,QACnB,eAAe,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACjC,oBAAC,aAAa,IAAC,GAAG,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAC3D,CAAC,CACoB;IACxB,oBAAC,SAAS,OAAG,CACK,CACrB,CACF,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,eAAe,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const ScoresContainer: import("styled-components").StyledComponent<"div", any, {
2
+ showMobileList: boolean;
3
+ }, never>;
4
+ export declare const CategoriesContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ //# sourceMappingURL=styles.d.ts.map