@local-logic/sdks-app 1.0.0-beta.49 → 1.0.0-beta.50

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 (214) hide show
  1. package/dist/assets/{index.d3f78cf1.css → chevron_right.2aa1109f.css} +0 -0
  2. package/dist/assets/chevron_right.4d3152f8.js +587 -0
  3. package/dist/assets/index.5b4e1a6e.js +183 -0
  4. package/dist/assets/index.9276bc44.js +1 -0
  5. package/dist/assets/index.993161da.js +1 -0
  6. package/dist/assets/index.cc7e4871.js +94 -0
  7. package/dist/assets/index.e82abb8d.js +1 -0
  8. package/dist/assets/index.fb8ba143.js +1029 -0
  9. package/dist/assets/index.fe0fe532.js +1 -0
  10. package/dist/index.html +1 -1
  11. package/dist/types/App.d.ts.map +1 -1
  12. package/dist/types/App.js +3 -1
  13. package/dist/types/App.js.map +1 -1
  14. package/dist/types/RouteTemplates/index.d.ts.map +1 -1
  15. package/dist/types/RouteTemplates/index.js +9 -1
  16. package/dist/types/RouteTemplates/index.js.map +1 -1
  17. package/dist/types/{sdks/LocalContent/Map → components}/Pin/index.d.ts +0 -0
  18. package/dist/types/components/Pin/index.d.ts.map +1 -0
  19. package/dist/types/{sdks/LocalContent/Map → components}/Pin/index.js +0 -0
  20. package/dist/types/components/Pin/index.js.map +1 -0
  21. package/dist/types/constants/routes.d.ts +2 -1
  22. package/dist/types/constants/routes.d.ts.map +1 -1
  23. package/dist/types/constants/routes.js +1 -0
  24. package/dist/types/constants/routes.js.map +1 -1
  25. package/dist/types/context/languageProvider/data-explorer/index.d.ts +6 -0
  26. package/dist/types/context/languageProvider/data-explorer/index.d.ts.map +1 -0
  27. package/dist/types/context/languageProvider/data-explorer/index.js +6 -0
  28. package/dist/types/context/languageProvider/data-explorer/index.js.map +1 -0
  29. package/dist/types/context/languageProvider/data-explorer/locales/en/index.d.ts +5 -0
  30. package/dist/types/context/languageProvider/data-explorer/locales/en/index.d.ts.map +1 -0
  31. package/dist/types/context/languageProvider/data-explorer/locales/en/index.js +23 -0
  32. package/dist/types/context/languageProvider/data-explorer/locales/en/index.js.map +1 -0
  33. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.d.ts +5 -0
  34. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.d.ts.map +1 -0
  35. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js +23 -0
  36. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js.map +1 -0
  37. package/dist/types/context/languageProvider/data-explorer/types.d.ts +5 -0
  38. package/dist/types/context/languageProvider/data-explorer/types.d.ts.map +1 -0
  39. package/dist/types/context/languageProvider/data-explorer/types.js +2 -0
  40. package/dist/types/context/languageProvider/data-explorer/types.js.map +1 -0
  41. package/dist/types/context/languageProvider/index.d.ts +15 -0
  42. package/dist/types/context/languageProvider/index.d.ts.map +1 -0
  43. package/dist/types/context/languageProvider/index.js +48 -0
  44. package/dist/types/context/languageProvider/index.js.map +1 -0
  45. package/dist/types/context/languageProvider/local-content/index.d.ts +6 -0
  46. package/dist/types/context/languageProvider/local-content/index.d.ts.map +1 -0
  47. package/dist/types/context/languageProvider/local-content/index.js +6 -0
  48. package/dist/types/context/languageProvider/local-content/index.js.map +1 -0
  49. package/dist/types/context/languageProvider/local-content/locales/en/index.d.ts +5 -0
  50. package/dist/types/context/languageProvider/local-content/locales/en/index.d.ts.map +1 -0
  51. package/dist/types/context/languageProvider/local-content/locales/en/index.js +4 -0
  52. package/dist/types/context/languageProvider/local-content/locales/en/index.js.map +1 -0
  53. package/dist/types/context/languageProvider/local-content/locales/fr/index.d.ts +5 -0
  54. package/dist/types/context/languageProvider/local-content/locales/fr/index.d.ts.map +1 -0
  55. package/dist/types/context/languageProvider/local-content/locales/fr/index.js +4 -0
  56. package/dist/types/context/languageProvider/local-content/locales/fr/index.js.map +1 -0
  57. package/dist/types/context/languageProvider/local-content/types.d.ts +2 -0
  58. package/dist/types/context/languageProvider/local-content/types.d.ts.map +1 -0
  59. package/dist/types/context/languageProvider/local-content/types.js +2 -0
  60. package/dist/types/context/languageProvider/local-content/types.js.map +1 -0
  61. package/dist/types/context/languageProvider/sdkLocales.d.ts +9 -0
  62. package/dist/types/context/languageProvider/sdkLocales.d.ts.map +1 -0
  63. package/dist/types/context/languageProvider/sdkLocales.js +7 -0
  64. package/dist/types/context/languageProvider/sdkLocales.js.map +1 -0
  65. package/dist/types/context/languageProvider/types.d.ts +5 -0
  66. package/dist/types/context/languageProvider/types.d.ts.map +1 -0
  67. package/dist/types/context/languageProvider/types.js +2 -0
  68. package/dist/types/context/languageProvider/types.js.map +1 -0
  69. package/dist/types/context/stateManager/defaultState.d.ts.map +1 -1
  70. package/dist/types/context/stateManager/defaultState.js +5 -0
  71. package/dist/types/context/stateManager/defaultState.js.map +1 -1
  72. package/dist/types/context/stateManager/index.d.ts +3 -3
  73. package/dist/types/context/stateManager/index.d.ts.map +1 -1
  74. package/dist/types/features/demographics/index.d.ts +3 -0
  75. package/dist/types/features/demographics/index.d.ts.map +1 -0
  76. package/dist/types/features/demographics/index.js +3 -0
  77. package/dist/types/features/demographics/index.js.map +1 -0
  78. package/dist/types/features/demographics/keyFactory.d.ts +10 -0
  79. package/dist/types/features/demographics/keyFactory.d.ts.map +1 -0
  80. package/dist/types/features/demographics/keyFactory.js +5 -0
  81. package/dist/types/features/demographics/keyFactory.js.map +1 -0
  82. package/dist/types/features/demographics/types.d.ts +4 -0
  83. package/dist/types/features/demographics/types.d.ts.map +1 -0
  84. package/dist/types/features/demographics/types.js +2 -0
  85. package/dist/types/features/demographics/types.js.map +1 -0
  86. package/dist/types/features/profiles/index.d.ts +3 -0
  87. package/dist/types/features/profiles/index.d.ts.map +1 -0
  88. package/dist/types/features/profiles/index.js +3 -0
  89. package/dist/types/features/profiles/index.js.map +1 -0
  90. package/dist/types/features/profiles/keyFactory.d.ts +10 -0
  91. package/dist/types/features/profiles/keyFactory.d.ts.map +1 -0
  92. package/dist/types/features/profiles/keyFactory.js +5 -0
  93. package/dist/types/features/profiles/keyFactory.js.map +1 -0
  94. package/dist/types/features/profiles/types.d.ts +4 -0
  95. package/dist/types/features/profiles/types.d.ts.map +1 -0
  96. package/dist/types/features/profiles/types.js +2 -0
  97. package/dist/types/features/profiles/types.js.map +1 -0
  98. package/dist/types/sdks/DataExplorer/components/Demographics/index.d.ts +4 -0
  99. package/dist/types/sdks/DataExplorer/components/Demographics/index.d.ts.map +1 -0
  100. package/dist/types/sdks/DataExplorer/components/Demographics/index.js +15 -0
  101. package/dist/types/sdks/DataExplorer/components/Demographics/index.js.map +1 -0
  102. package/dist/types/sdks/DataExplorer/components/Demographics/styles.d.ts +2 -0
  103. package/dist/types/sdks/DataExplorer/components/Demographics/styles.d.ts.map +1 -0
  104. package/dist/types/sdks/DataExplorer/components/Demographics/styles.js +6 -0
  105. package/dist/types/sdks/DataExplorer/components/Demographics/styles.js.map +1 -0
  106. package/dist/types/sdks/DataExplorer/components/Export/index.d.ts +4 -0
  107. package/dist/types/sdks/DataExplorer/components/Export/index.d.ts.map +1 -0
  108. package/dist/types/sdks/DataExplorer/components/Export/index.js +239 -0
  109. package/dist/types/sdks/DataExplorer/components/Export/index.js.map +1 -0
  110. package/dist/types/sdks/DataExplorer/components/Export/styles.d.ts +3 -0
  111. package/dist/types/sdks/DataExplorer/components/Export/styles.d.ts.map +1 -0
  112. package/dist/types/sdks/DataExplorer/components/Export/styles.js +18 -0
  113. package/dist/types/sdks/DataExplorer/components/Export/styles.js.map +1 -0
  114. package/dist/types/sdks/DataExplorer/components/Map/index.d.ts +4 -0
  115. package/dist/types/sdks/DataExplorer/components/Map/index.d.ts.map +1 -0
  116. package/dist/types/sdks/DataExplorer/components/Map/index.js +49 -0
  117. package/dist/types/sdks/DataExplorer/components/Map/index.js.map +1 -0
  118. package/dist/types/sdks/DataExplorer/components/Map/styles.d.ts +2 -0
  119. package/dist/types/sdks/DataExplorer/components/Map/styles.d.ts.map +1 -0
  120. package/dist/types/sdks/DataExplorer/components/Map/styles.js +8 -0
  121. package/dist/types/sdks/DataExplorer/components/Map/styles.js.map +1 -0
  122. package/dist/types/sdks/DataExplorer/components/POIs/index.d.ts +4 -0
  123. package/dist/types/sdks/DataExplorer/components/POIs/index.d.ts.map +1 -0
  124. package/dist/types/sdks/DataExplorer/components/POIs/index.js +42 -0
  125. package/dist/types/sdks/DataExplorer/components/POIs/index.js.map +1 -0
  126. package/dist/types/sdks/DataExplorer/components/POIs/styles.d.ts +2 -0
  127. package/dist/types/sdks/DataExplorer/components/POIs/styles.d.ts.map +1 -0
  128. package/dist/types/sdks/DataExplorer/components/POIs/styles.js +6 -0
  129. package/dist/types/sdks/DataExplorer/components/POIs/styles.js.map +1 -0
  130. package/dist/types/sdks/DataExplorer/components/Schools/index.d.ts +4 -0
  131. package/dist/types/sdks/DataExplorer/components/Schools/index.d.ts.map +1 -0
  132. package/dist/types/sdks/DataExplorer/components/Schools/index.js +21 -0
  133. package/dist/types/sdks/DataExplorer/components/Schools/index.js.map +1 -0
  134. package/dist/types/sdks/DataExplorer/components/Schools/styles.d.ts +2 -0
  135. package/dist/types/sdks/DataExplorer/components/Schools/styles.d.ts.map +1 -0
  136. package/dist/types/sdks/DataExplorer/components/Schools/styles.js +6 -0
  137. package/dist/types/sdks/DataExplorer/components/Schools/styles.js.map +1 -0
  138. package/dist/types/sdks/DataExplorer/components/Scores/index.d.ts +4 -0
  139. package/dist/types/sdks/DataExplorer/components/Scores/index.d.ts.map +1 -0
  140. package/dist/types/sdks/DataExplorer/components/Scores/index.js +29 -0
  141. package/dist/types/sdks/DataExplorer/components/Scores/index.js.map +1 -0
  142. package/dist/types/sdks/DataExplorer/components/Scores/styles.d.ts +2 -0
  143. package/dist/types/sdks/DataExplorer/components/Scores/styles.d.ts.map +1 -0
  144. package/dist/types/sdks/DataExplorer/components/Scores/styles.js +6 -0
  145. package/dist/types/sdks/DataExplorer/components/Scores/styles.js.map +1 -0
  146. package/dist/types/sdks/DataExplorer/components/Section/index.d.ts +12 -0
  147. package/dist/types/sdks/DataExplorer/components/Section/index.d.ts.map +1 -0
  148. package/dist/types/sdks/DataExplorer/components/Section/index.js +34 -0
  149. package/dist/types/sdks/DataExplorer/components/Section/index.js.map +1 -0
  150. package/dist/types/sdks/DataExplorer/components/Section/styles.d.ts +11 -0
  151. package/dist/types/sdks/DataExplorer/components/Section/styles.d.ts.map +1 -0
  152. package/dist/types/sdks/DataExplorer/components/Section/styles.js +69 -0
  153. package/dist/types/sdks/DataExplorer/components/Section/styles.js.map +1 -0
  154. package/dist/types/sdks/DataExplorer/context.d.ts +41 -0
  155. package/dist/types/sdks/DataExplorer/context.d.ts.map +1 -0
  156. package/dist/types/sdks/DataExplorer/context.js +45 -0
  157. package/dist/types/sdks/DataExplorer/context.js.map +1 -0
  158. package/dist/types/sdks/DataExplorer/defaultState.d.ts +7 -0
  159. package/dist/types/sdks/DataExplorer/defaultState.d.ts.map +1 -0
  160. package/dist/types/sdks/DataExplorer/defaultState.js +3 -0
  161. package/dist/types/sdks/DataExplorer/defaultState.js.map +1 -0
  162. package/dist/types/sdks/DataExplorer/features/useDemographics.d.ts +7 -0
  163. package/dist/types/sdks/DataExplorer/features/useDemographics.d.ts.map +1 -0
  164. package/dist/types/sdks/DataExplorer/features/useDemographics.js +24 -0
  165. package/dist/types/sdks/DataExplorer/features/useDemographics.js.map +1 -0
  166. package/dist/types/sdks/DataExplorer/features/usePois.d.ts +10 -0
  167. package/dist/types/sdks/DataExplorer/features/usePois.d.ts.map +1 -0
  168. package/dist/types/sdks/DataExplorer/features/usePois.js +29 -0
  169. package/dist/types/sdks/DataExplorer/features/usePois.js.map +1 -0
  170. package/dist/types/sdks/DataExplorer/features/useProfiles.d.ts +6 -0
  171. package/dist/types/sdks/DataExplorer/features/useProfiles.d.ts.map +1 -0
  172. package/dist/types/sdks/DataExplorer/features/useProfiles.js +23 -0
  173. package/dist/types/sdks/DataExplorer/features/useProfiles.js.map +1 -0
  174. package/dist/types/sdks/DataExplorer/features/useSchools.d.ts +8 -0
  175. package/dist/types/sdks/DataExplorer/features/useSchools.d.ts.map +1 -0
  176. package/dist/types/sdks/DataExplorer/features/useSchools.js +25 -0
  177. package/dist/types/sdks/DataExplorer/features/useSchools.js.map +1 -0
  178. package/dist/types/sdks/DataExplorer/features/useScores.d.ts +8 -0
  179. package/dist/types/sdks/DataExplorer/features/useScores.d.ts.map +1 -0
  180. package/dist/types/sdks/DataExplorer/features/useScores.js +26 -0
  181. package/dist/types/sdks/DataExplorer/features/useScores.js.map +1 -0
  182. package/dist/types/sdks/DataExplorer/index.d.ts +5 -0
  183. package/dist/types/sdks/DataExplorer/index.d.ts.map +1 -0
  184. package/dist/types/sdks/DataExplorer/index.js +66 -0
  185. package/dist/types/sdks/DataExplorer/index.js.map +1 -0
  186. package/dist/types/sdks/DataExplorer/styles.d.ts +5 -0
  187. package/dist/types/sdks/DataExplorer/styles.d.ts.map +1 -0
  188. package/dist/types/sdks/DataExplorer/styles.js +14 -0
  189. package/dist/types/sdks/DataExplorer/styles.js.map +1 -0
  190. package/dist/types/sdks/DataExplorer/types.d.ts +11 -0
  191. package/dist/types/sdks/DataExplorer/types.d.ts.map +1 -0
  192. package/dist/types/sdks/DataExplorer/types.js +2 -0
  193. package/dist/types/sdks/DataExplorer/types.js.map +1 -0
  194. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/index.d.ts +1 -2
  195. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/index.d.ts.map +1 -1
  196. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/index.js +5 -9
  197. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/index.js.map +1 -1
  198. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.d.ts.map +1 -1
  199. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.js +1 -1
  200. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.js.map +1 -1
  201. package/dist/types/sdks/LocalContent/Map/index.d.ts.map +1 -1
  202. package/dist/types/sdks/LocalContent/Map/index.js +2 -10
  203. package/dist/types/sdks/LocalContent/Map/index.js.map +1 -1
  204. package/dist/types/services/downloadFile/index.d.ts +6 -0
  205. package/dist/types/services/downloadFile/index.d.ts.map +1 -0
  206. package/dist/types/services/downloadFile/index.js +17 -0
  207. package/dist/types/services/downloadFile/index.js.map +1 -0
  208. package/dist/types/types/sdks.d.ts +2 -0
  209. package/dist/types/types/sdks.d.ts.map +1 -1
  210. package/package.json +8 -5
  211. package/dist/assets/index.177feb04.js +0 -895
  212. package/dist/assets/index.e216285c.js +0 -769
  213. package/dist/types/sdks/LocalContent/Map/Pin/index.d.ts.map +0 -1
  214. package/dist/types/sdks/LocalContent/Map/Pin/index.js.map +0 -1
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { ScoreNames } from "@local-logic/client";
3
+ import { Button } from "@local-logic/ui";
4
+ import { Score } from "@local-logic/elements-react";
5
+ import * as S from "./styles";
6
+ import { useDataExplorer } from "../../context";
7
+ const Scores = () => {
8
+ const { dataExplorerState, setDataExplorerState } = useDataExplorer();
9
+ const allScores = Object.keys(ScoreNames).filter((key) => Number.isNaN(Number(key)));
10
+ return (React.createElement(React.Fragment, null, allScores.map((s) => {
11
+ const isIncluded = dataExplorerState.scores.include.includes(s);
12
+ return (React.createElement(S.ButtonContainer, { key: s },
13
+ React.createElement(Score.Root, { options: { score: s, data: undefined } },
14
+ React.createElement(Button, { size: "small", variant: isIncluded ? "contained" : "outlined", onClick: () => {
15
+ if (isIncluded) {
16
+ setDataExplorerState({
17
+ scores: Object.assign(Object.assign({}, dataExplorerState.scores), { include: dataExplorerState.scores.include.filter((p) => p !== s) }),
18
+ });
19
+ return;
20
+ }
21
+ setDataExplorerState({
22
+ scores: Object.assign(Object.assign({}, dataExplorerState.scores), { include: [...dataExplorerState.scores.include, s] }),
23
+ });
24
+ } },
25
+ React.createElement(Score.Title, { options: { isRawText: true } })))));
26
+ })));
27
+ };
28
+ export default Scores;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Scores/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,MAAM,GAAG,GAAG,EAAE;IAClB,MAAM,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,CAAC;IACtE,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CACvD,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CACK,CAAC;IAEjC,OAAO,CACL,0CACG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACnB,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEhE,OAAO,CACL,oBAAC,CAAC,CAAC,eAAe,IAAC,GAAG,EAAE,CAAC;YACvB,oBAAC,KAAK,CAAC,IAAI,IAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE;gBAChD,oBAAC,MAAM,IACL,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,EAC9C,OAAO,EAAE,GAAG,EAAE;wBACZ,IAAI,UAAU,EAAE;4BACd,oBAAoB,CAAC;gCACnB,MAAM,kCACD,iBAAiB,CAAC,MAAM,KAC3B,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAC9C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CACf,GACF;6BACF,CAAC,CAAC;4BAEH,OAAO;yBACR;wBAED,oBAAoB,CAAC;4BACnB,MAAM,kCACD,iBAAiB,CAAC,MAAM,KAC3B,OAAO,EAAE,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,GAClD;yBACF,CAAC,CAAC;oBACL,CAAC;oBAED,oBAAC,KAAK,CAAC,KAAK,IAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,GAAI,CACtC,CACE,CACK,CACrB,CAAC;IACJ,CAAC,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const ButtonContainer: 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/DataExplorer/components/Scores/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,oEAG3B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import styled from "styled-components";
2
+ export const ButtonContainer = styled.div `
3
+ margin: 2px;
4
+ display: inline-block;
5
+ `;
6
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Scores/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGxC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { State } from "../../context";
3
+ interface SectionProps {
4
+ title: string;
5
+ description: string;
6
+ value: keyof State;
7
+ number: number;
8
+ children?: React.ReactNode;
9
+ }
10
+ declare const Section: ({ title, description, children, value, number, }: SectionProps) => JSX.Element;
11
+ export default Section;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAmB,KAAK,EAAE,MAAM,eAAe,CAAC;AAGvD,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,KAAK,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,OAAO,qDAMV,YAAY,gBAgDd,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import { Text, Switch, SVG, theme } from "@local-logic/ui";
3
+ import * as Accordion from "@radix-ui/react-accordion";
4
+ import ChevronRightSVG from "~/assets/icons/chevron_right.svg";
5
+ import { useDataExplorer } from "../../context";
6
+ import * as S from "./styles";
7
+ const Section = ({ title, description, children, value, number, }) => {
8
+ const { dataExplorerState, setDataExplorerState } = useDataExplorer();
9
+ return (React.createElement(Accordion.Item, { value: value },
10
+ React.createElement(S.Section, null,
11
+ React.createElement(S.SectionTopBar, null,
12
+ React.createElement(S.Trigger, null,
13
+ React.createElement(S.SectionNumber, null, number),
14
+ React.createElement(Text, { variant: "h6", noMargin: true, weight: "--ll-font-weight-medium" }, title)),
15
+ React.createElement(S.RightSideContainer, null,
16
+ "checked" in dataExplorerState[value] && (React.createElement(Switch
17
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
18
+ // @ts-ignore
19
+ , {
20
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
21
+ // @ts-ignore
22
+ checked: dataExplorerState[value].checked, onCheckedChange: (val) => setDataExplorerState({
23
+ [value]: Object.assign(Object.assign({}, dataExplorerState[value]), { checked: val }),
24
+ }) })),
25
+ React.createElement(S.Trigger, null,
26
+ React.createElement(S.ChevronContainer, null,
27
+ React.createElement(SVG, { SVGElement: ChevronRightSVG, fill: theme["--ll-color-on-background-variant1"] }))))),
28
+ React.createElement(S.SectionContent, null,
29
+ React.createElement(S.InnerContent, null,
30
+ React.createElement(Text, { color: "--ll-color-on-background-variant1" }, description),
31
+ children)))));
32
+ };
33
+ export default Section;
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AACvD,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAU9B,MAAM,OAAO,GAAG,CAAC,EACf,KAAK,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EACL,MAAM,GACO,EAAE,EAAE;IACjB,MAAM,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,CAAC;IAEtE,OAAO,CACL,oBAAC,SAAS,CAAC,IAAI,IAAC,KAAK,EAAE,KAAK;QAC1B,oBAAC,CAAC,CAAC,OAAO;YACR,oBAAC,CAAC,CAAC,aAAa;gBACd,oBAAC,CAAC,CAAC,OAAO;oBACR,oBAAC,CAAC,CAAC,aAAa,QAAE,MAAM,CAAmB;oBAC3C,oBAAC,IAAI,IAAC,OAAO,EAAC,IAAI,EAAC,QAAQ,QAAC,MAAM,EAAC,yBAAyB,IACzD,KAAK,CACD,CACG;gBACZ,oBAAC,CAAC,CAAC,kBAAkB;oBAClB,SAAS,IAAI,iBAAiB,CAAC,KAAK,CAAC,IAAI,CACxC,oBAAC,MAAM;oBACL,6DAA6D;oBAC7D,aAAa;;wBADb,6DAA6D;wBAC7D,aAAa;wBACb,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC,OAAO,EACzC,eAAe,EAAE,CAAC,GAAG,EAAE,EAAE,CACvB,oBAAoB,CAAC;4BACnB,CAAC,KAAK,CAAC,kCACF,iBAAiB,CAAC,KAAK,CAAC,KAC3B,OAAO,EAAE,GAAG,GACb;yBACF,CAAC,GAEJ,CACH;oBACD,oBAAC,CAAC,CAAC,OAAO;wBACR,oBAAC,CAAC,CAAC,gBAAgB;4BACjB,oBAAC,GAAG,IACF,UAAU,EAAE,eAAsC,EAClD,IAAI,EAAE,KAAK,CAAC,mCAAmC,CAAC,GAChD,CACiB,CACX,CACS,CACP;YAClB,oBAAC,CAAC,CAAC,cAAc;gBACf,oBAAC,CAAC,CAAC,YAAY;oBACb,oBAAC,IAAI,IAAC,KAAK,EAAC,mCAAmC,IAAE,WAAW,CAAQ;oBACnE,QAAQ,CACM,CACA,CACT,CACG,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import * as Accordion from "@radix-ui/react-accordion";
3
+ export declare const Section: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const SectionNumber: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const Trigger: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Accordion.AccordionTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
6
+ export declare const SectionTopBar: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const SectionContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Accordion.AccordionContentProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
8
+ export declare const InnerContent: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const ChevronContainer: import("styled-components").StyledComponent<"span", any, {}, never>;
10
+ export declare const RightSideContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
11
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Section/styles.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AAavD,eAAO,MAAM,OAAO,oEAGnB,CAAC;AAEF,eAAO,MAAM,aAAa,oEAWzB,CAAC;AAEF,eAAO,MAAM,OAAO,4LAMnB,CAAC;AAEF,eAAO,MAAM,aAAa,oEAKzB,CAAC;AAEF,eAAO,MAAM,cAAc,yLAe1B,CAAC;AAEF,eAAO,MAAM,YAAY,oEAExB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qEAK5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,oEAE9B,CAAC"}
@@ -0,0 +1,69 @@
1
+ import styled, { keyframes } from "styled-components";
2
+ import * as Accordion from "@radix-ui/react-accordion";
3
+ import { theme } from "@local-logic/ui";
4
+ const slideDown = keyframes({
5
+ from: { height: 0 },
6
+ to: { height: "var(--radix-accordion-content-height)" },
7
+ });
8
+ const slideUp = keyframes({
9
+ from: { height: "var(--radix-accordion-content-height)" },
10
+ to: { height: 0 },
11
+ });
12
+ export const Section = styled.div `
13
+ display: flex;
14
+ flex-direction: column;
15
+ `;
16
+ export const SectionNumber = styled.div `
17
+ height: 20px;
18
+ width: 20px;
19
+ border: 2px solid ${theme["--ll-color-primary"]};
20
+ color: ${theme["--ll-color-primary"]};
21
+ border-radius: 50%;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ margin-right: ${theme["--ll-spacing-small"]};
26
+ font-size: ${theme["--ll-font-size-p"]};
27
+ `;
28
+ export const Trigger = styled(Accordion.Trigger) `
29
+ all: unset;
30
+ flex: 1;
31
+ display: flex;
32
+ align-items: center;
33
+ font-family: ${theme["--ll-font-family"]};
34
+ `;
35
+ export const SectionTopBar = styled.div `
36
+ display: flex;
37
+ justify-content: space-between;
38
+ align-items: center;
39
+ margin: ${theme["--ll-spacing-x-small"]} 0;
40
+ `;
41
+ export const SectionContent = styled(Accordion.AccordionContent) `
42
+ background-color: ${theme["--ll-color-surface"]};
43
+ position: relative;
44
+ z-index: 1;
45
+ overflow: hidden;
46
+ margin-left: calc(-1 * ${theme["--ll-spacing-medium"]});
47
+ margin-right: calc(-1 * ${theme["--ll-spacing-medium"]});
48
+
49
+ [data-state="open"] & {
50
+ animation: ${slideDown} 300ms cubic-bezier(0.87, 0, 0.13, 1);
51
+ }
52
+
53
+ [data-state="closed"] & {
54
+ animation: ${slideUp} 300ms cubic-bezier(0.87, 0, 0.13, 1);
55
+ }
56
+ `;
57
+ export const InnerContent = styled.div `
58
+ padding: ${theme["--ll-spacing-medium"]};
59
+ `;
60
+ export const ChevronContainer = styled.span `
61
+ margin-left: ${theme["--ll-spacing-x-small"]};
62
+ ${Trigger}[data-state=open] & {
63
+ transform: rotate(90deg);
64
+ } ;
65
+ `;
66
+ export const RightSideContainer = styled.div `
67
+ display: flex;
68
+ `;
69
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Section/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,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGhC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;sBAGjB,KAAK,CAAC,oBAAoB,CAAC;WACtC,KAAK,CAAC,oBAAoB,CAAC;;;;;kBAKpB,KAAK,CAAC,oBAAoB,CAAC;eAC9B,KAAK,CAAC,kBAAkB,CAAC;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;;;;;iBAK/B,KAAK,CAAC,kBAAkB,CAAC;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;YAI3B,KAAK,CAAC,sBAAsB,CAAC;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;sBAC1C,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;iBAC1B,KAAK,CAAC,sBAAsB,CAAC;IAC1C,OAAO;;;CAGV,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE3C,CAAC"}
@@ -0,0 +1,41 @@
1
+ import React from "react";
2
+ import { POICategories, ScoreNames } from "@local-logic/client";
3
+ export interface State {
4
+ location: {
5
+ lat: number;
6
+ lng: number;
7
+ };
8
+ scores: {
9
+ checked: boolean;
10
+ include: (keyof typeof ScoreNames)[];
11
+ };
12
+ pois: {
13
+ checked: boolean;
14
+ include: (keyof typeof POICategories)[];
15
+ radius: number;
16
+ limit: number;
17
+ };
18
+ schools: {
19
+ checked: boolean;
20
+ radius: number;
21
+ limit: number;
22
+ };
23
+ demographics: {
24
+ checked: boolean;
25
+ radius: number;
26
+ };
27
+ profiles: {
28
+ checked: boolean;
29
+ };
30
+ }
31
+ declare type Action = Partial<State>;
32
+ export declare type DefaultContext = {
33
+ dataExplorerState: State;
34
+ setDataExplorerState: React.Dispatch<Action>;
35
+ };
36
+ declare const useDataExplorer: () => DefaultContext;
37
+ declare const DataExplorerProvider: ({ children }: {
38
+ children: React.ReactNode;
39
+ }) => JSX.Element;
40
+ export { useDataExplorer, DataExplorerProvider };
41
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIhE,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,CAAC,MAAM,OAAO,UAAU,CAAC,EAAE,CAAC;KACtC,CAAC;IACF,IAAI,EAAE;QACJ,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,CAAC,MAAM,OAAO,aAAa,CAAC,EAAE,CAAC;QACxC,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE;QACP,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,YAAY,EAAE;QACZ,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED,aAAK,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAE7B,oBAAY,cAAc,GAAG;IAC3B,iBAAiB,EAAE,KAAK,CAAC;IACzB,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAKF,QAAA,MAAM,eAAe,sBAAwC,CAAC;AAE9D,QAAA,MAAM,oBAAoB;cAA8B,MAAM,SAAS;iBAkDtE,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,45 @@
1
+ /* eslint-disable consistent-return */
2
+ /* eslint-disable default-case */
3
+ import React, { useContext, useMemo, useReducer } from "react";
4
+ import { useStateManagerContext } from "../../context/stateManager";
5
+ const DataExplorerContext = React.createContext({});
6
+ const useDataExplorer = () => useContext(DataExplorerContext);
7
+ const DataExplorerProvider = ({ children }) => {
8
+ var _a, _b;
9
+ const { sdkState } = useStateManagerContext();
10
+ const [dataExplorerState, setDataExplorerState] = useReducer((state, action) => (Object.assign(Object.assign({}, state), action)), {
11
+ location: {
12
+ lat: ((_a = sdkState.options) === null || _a === void 0 ? void 0 : _a.lat) || 43.661337,
13
+ lng: ((_b = sdkState.options) === null || _b === void 0 ? void 0 : _b.lng) || -79.401903,
14
+ },
15
+ scores: {
16
+ checked: false,
17
+ include: [],
18
+ },
19
+ pois: {
20
+ checked: false,
21
+ include: [],
22
+ radius: 5000,
23
+ limit: 15,
24
+ },
25
+ schools: {
26
+ checked: false,
27
+ radius: 5000,
28
+ limit: 15,
29
+ },
30
+ demographics: {
31
+ checked: false,
32
+ radius: 2500,
33
+ },
34
+ profiles: {
35
+ checked: false,
36
+ },
37
+ });
38
+ const contextValue = useMemo(() => ({
39
+ dataExplorerState,
40
+ setDataExplorerState,
41
+ }), [dataExplorerState, setDataExplorerState]);
42
+ return (React.createElement(DataExplorerContext.Provider, { value: contextValue }, children));
43
+ };
44
+ export { useDataExplorer, DataExplorerProvider };
45
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/context.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AACjC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAsCpE,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAC7C,EAAoB,CACrB,CAAC;AACF,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAE9D,MAAM,oBAAoB,GAAG,CAAC,EAAE,QAAQ,EAAiC,EAAE,EAAE;;IAC3E,MAAM,EAAE,QAAQ,EAAE,GAAG,sBAAsB,EAAqB,CAAC;IACjE,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,UAAU,CAC1D,CAAC,KAAY,EAAE,MAAc,EAAE,EAAE,CAAC,iCAC7B,KAAK,GACL,MAAM,EACT,EACF;QACE,QAAQ,EAAE;YACR,GAAG,EAAE,CAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,GAAG,KAAI,SAAS;YACvC,GAAG,EAAE,CAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,GAAG,KAAI,CAAC,SAAS;SACzC;QACD,MAAM,EAAE;YACN,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,EAAE;SACZ;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,EAAE;SACV;QACD,OAAO,EAAE;YACP,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,EAAE;SACV;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,IAAI;SACb;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,KAAK;SACf;KACF,CACF,CAAC;IAEF,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CAAC,CAAC;QACL,iBAAiB;QACjB,oBAAoB;KACrB,CAAC,EACF,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAC1C,CAAC;IAEF,OAAO,CACL,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAC9C,QAAQ,CACoB,CAChC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { DataExplorerProps } from "./types";
2
+ declare type OptionalPropertyOf<T extends object> = Exclude<{
3
+ [K in keyof T]: T extends Record<K, T[K]> ? never : K;
4
+ }[keyof T], undefined>;
5
+ declare const defaultState: Pick<DataExplorerProps["options"], OptionalPropertyOf<DataExplorerProps["options"]>>;
6
+ export default defaultState;
7
+ //# sourceMappingURL=defaultState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultState.d.ts","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/defaultState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,aAAK,kBAAkB,CAAC,CAAC,SAAS,MAAM,IAAI,OAAO,CACjD;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC;CACtD,CAAC,MAAM,CAAC,CAAC,EACV,SAAS,CACV,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,IAAI,CACtB,iBAAiB,CAAC,SAAS,CAAC,EAC5B,kBAAkB,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAC5C,CAAC;AAEP,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ const defaultState = {};
2
+ export default defaultState;
3
+ //# sourceMappingURL=defaultState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultState.js","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/defaultState.ts"],"names":[],"mappings":"AASA,MAAM,YAAY,GAGd,EAAE,CAAC;AAEP,eAAe,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare function useDemographics({ lat, lng, enabled, radius, }: {
2
+ lat: number;
3
+ lng: number;
4
+ enabled: boolean;
5
+ radius: number;
6
+ }): import("@tanstack/react-query").UseQueryResult<import("~/features/demographics").Demographics, unknown>;
7
+ //# sourceMappingURL=useDemographics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDemographics.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/useDemographics.ts"],"names":[],"mappings":"AAOA,wBAAgB,eAAe,CAAC,EAC9B,GAAG,EACH,GAAG,EACH,OAAO,EACP,MAAM,GACP,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,2GAiBA"}
@@ -0,0 +1,24 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useQuery } from "@tanstack/react-query";
11
+ import { useLocalLogic } from "@local-logic/elements-react";
12
+ import { demographicsKeys, } from "~/features/demographics";
13
+ export function useDemographics({ lat, lng, enabled, radius, }) {
14
+ const { client } = useLocalLogic();
15
+ const options = {
16
+ lat,
17
+ lng,
18
+ radius,
19
+ };
20
+ return useQuery(demographicsKeys.list(options), () => __awaiter(this, void 0, void 0, function* () { return client.getDemographics(options); }), {
21
+ enabled: !!options && enabled,
22
+ });
23
+ }
24
+ //# sourceMappingURL=useDemographics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDemographics.js","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/useDemographics.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAEL,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,eAAe,CAAC,EAC9B,GAAG,EACH,GAAG,EACH,OAAO,EACP,MAAM,GAMP;IACC,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,OAAO,GAAyB;QACpC,GAAG;QACH,GAAG;QACH,MAAM;KACP,CAAC;IAEF,OAAO,QAAQ,CACb,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,EAC9B,GAAS,EAAE,gDACT,OAAA,MAAM,CAAC,eAAe,CAAC,OAA0C,CAAC,CAAA,GAAA,EACpE;QACE,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,OAAO;KAC9B,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { POICategories } from "@local-logic/client";
2
+ export declare function usePois({ lat, lng, enabled, include, limit, radius, }: {
3
+ lat: number;
4
+ lng: number;
5
+ enabled: boolean;
6
+ include: (keyof typeof POICategories)[];
7
+ limit: number;
8
+ radius: number;
9
+ }): import("@tanstack/react-query").UseQueryResult<import("@local-logic/client").POIs, unknown>;
10
+ //# sourceMappingURL=usePois.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePois.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/usePois.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,wBAAgB,OAAO,CAAC,EACtB,GAAG,EACH,GAAG,EACH,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,GACP,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,CAAC,MAAM,OAAO,aAAa,CAAC,EAAE,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,+FAoBA"}
@@ -0,0 +1,29 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useQuery } from "@tanstack/react-query";
11
+ import { useLocalLogic } from "@local-logic/elements-react";
12
+ import { poisKeys } from "~/features/pois";
13
+ export function usePois({ lat, lng, enabled, include, limit, radius, }) {
14
+ const { client } = useLocalLogic();
15
+ const options = {
16
+ lat,
17
+ lng,
18
+ limit,
19
+ radius,
20
+ include,
21
+ };
22
+ return useQuery(
23
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
+ // @ts-ignore
25
+ poisKeys.list(options), () => __awaiter(this, void 0, void 0, function* () { return client.getPois(options); }), {
26
+ enabled: !!options && enabled,
27
+ });
28
+ }
29
+ //# sourceMappingURL=usePois.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePois.js","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/usePois.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAgB,MAAM,iBAAiB,CAAC;AAGzD,MAAM,UAAU,OAAO,CAAC,EACtB,GAAG,EACH,GAAG,EACH,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,GAQP;IACC,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,OAAO,GAAG;QACd,GAAG;QACH,GAAG;QACH,KAAK;QACL,MAAM;QACN,OAAO;KACR,CAAC;IAEF,OAAO,QAAQ;IACb,6DAA6D;IAC7D,aAAa;IACb,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EACtB,GAAS,EAAE,gDAAC,OAAA,MAAM,CAAC,OAAO,CAAC,OAAkC,CAAC,CAAA,GAAA,EAC9D;QACE,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,OAAO;KAC9B,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare function useProfiles({ lat, lng, enabled, }: {
2
+ lat: number;
3
+ lng: number;
4
+ enabled: boolean;
5
+ }): import("@tanstack/react-query").UseQueryResult<import("~/features/profiles").Profiles, unknown>;
6
+ //# sourceMappingURL=useProfiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProfiles.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/useProfiles.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,GAAG,EACH,OAAO,GACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;CAClB,mGAeA"}
@@ -0,0 +1,23 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useQuery } from "@tanstack/react-query";
11
+ import { useLocalLogic } from "@local-logic/elements-react";
12
+ import { profilesKeys } from "~/features/profiles";
13
+ export function useProfiles({ lat, lng, enabled, }) {
14
+ const { client } = useLocalLogic();
15
+ const options = {
16
+ lat,
17
+ lng,
18
+ };
19
+ return useQuery(profilesKeys.list(options), () => __awaiter(this, void 0, void 0, function* () { return client.getProfiles(options); }), {
20
+ enabled: !!options && enabled,
21
+ });
22
+ }
23
+ //# sourceMappingURL=useProfiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProfiles.js","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/useProfiles.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAoB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAErE,MAAM,UAAU,WAAW,CAAC,EAC1B,GAAG,EACH,GAAG,EACH,OAAO,GAKR;IACC,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,OAAO,GAAqB;QAChC,GAAG;QACH,GAAG;KACJ,CAAC;IAEF,OAAO,QAAQ,CACb,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,EAC1B,GAAS,EAAE,gDAAC,OAAA,MAAM,CAAC,WAAW,CAAC,OAAsC,CAAC,CAAA,GAAA,EACtE;QACE,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,OAAO;KAC9B,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare function useSchools({ lat, lng, enabled, limit, radius, }: {
2
+ lat: number;
3
+ lng: number;
4
+ enabled: boolean;
5
+ limit: number;
6
+ radius: number;
7
+ }): import("@tanstack/react-query").UseQueryResult<import("~/features/schools").Schools, unknown>;
8
+ //# sourceMappingURL=useSchools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSchools.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/useSchools.ts"],"names":[],"mappings":"AAKA,wBAAgB,UAAU,CAAC,EACzB,GAAG,EACH,GAAG,EACH,OAAO,EACP,KAAK,EACL,MAAM,GACP,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,iGAiBA"}
@@ -0,0 +1,25 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useQuery } from "@tanstack/react-query";
11
+ import { useLocalLogic } from "@local-logic/elements-react";
12
+ import { schoolsKeys } from "~/features/schools";
13
+ export function useSchools({ lat, lng, enabled, limit, radius, }) {
14
+ const { client } = useLocalLogic();
15
+ const options = {
16
+ lat,
17
+ lng,
18
+ limit,
19
+ radius,
20
+ };
21
+ return useQuery(schoolsKeys.list(options), () => __awaiter(this, void 0, void 0, function* () { return client.getSchools(options); }), {
22
+ enabled: !!options && enabled,
23
+ });
24
+ }
25
+ //# sourceMappingURL=useSchools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSchools.js","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/useSchools.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAmB,MAAM,oBAAoB,CAAC;AAElE,MAAM,UAAU,UAAU,CAAC,EACzB,GAAG,EACH,GAAG,EACH,OAAO,EACP,KAAK,EACL,MAAM,GAOP;IACC,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,OAAO,GAAG;QACd,GAAG;QACH,GAAG;QACH,KAAK;QACL,MAAM;KACP,CAAC;IAEF,OAAO,QAAQ,CACb,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,EACzB,GAAS,EAAE,gDAAC,OAAA,MAAM,CAAC,UAAU,CAAC,OAAqC,CAAC,CAAA,GAAA,EACpE;QACE,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,OAAO;KAC9B,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ScoreNames } from "@local-logic/client";
2
+ export declare function useScores({ lat, lng, include, enabled, }: {
3
+ lat: number;
4
+ lng: number;
5
+ include: (keyof typeof ScoreNames)[];
6
+ enabled: boolean;
7
+ }): import("@tanstack/react-query").UseQueryResult<import("@local-logic/client").Scores, unknown>;
8
+ //# sourceMappingURL=useScores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScores.d.ts","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/useScores.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,wBAAgB,SAAS,CAAC,EACxB,GAAG,EACH,GAAG,EACH,OAAO,EACP,OAAO,GACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,CAAC,MAAM,OAAO,UAAU,CAAC,EAAE,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB,iGAkBA"}
@@ -0,0 +1,26 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useQuery } from "@tanstack/react-query";
11
+ import { useLocalLogic } from "@local-logic/elements-react";
12
+ import { scoresKeys } from "~/features/scores";
13
+ export function useScores({ lat, lng, include, enabled, }) {
14
+ const { client } = useLocalLogic();
15
+ const options = {
16
+ lat,
17
+ lng,
18
+ geographyLevels: ["10", "30"],
19
+ locationScoresRounding: false,
20
+ include,
21
+ };
22
+ return useQuery(scoresKeys.list(options), () => __awaiter(this, void 0, void 0, function* () { return client.getScores(options); }), {
23
+ enabled: !!options && enabled,
24
+ });
25
+ }
26
+ //# sourceMappingURL=useScores.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScores.js","sourceRoot":"","sources":["../../../../../src/sdks/DataExplorer/features/useScores.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAkB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/D,MAAM,UAAU,SAAS,CAAC,EACxB,GAAG,EACH,GAAG,EACH,OAAO,EACP,OAAO,GAMR;IACC,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,OAAO,GAAmB;QAC9B,GAAG;QACH,GAAG;QACH,eAAe,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;QAC7B,sBAAsB,EAAE,KAAK;QAC7B,OAAO;KACR,CAAC;IAEF,OAAO,QAAQ,CACb,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EACxB,GAAS,EAAE,gDAAC,OAAA,MAAM,CAAC,SAAS,CAAC,OAAoC,CAAC,CAAA,GAAA,EAClE;QACE,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,OAAO;KAC9B,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import "maplibre-gl/dist/maplibre-gl.css";
3
+ declare const DataExplorer: () => JSX.Element;
4
+ export default DataExplorer;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/index.tsx"],"names":[],"mappings":";AACA,OAAO,kCAAkC,CAAC;AAa1C,QAAA,MAAM,YAAY,mBA0EjB,CAAC;AAEF,eAAe,YAAY,CAAC"}