@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 @@
1
+ {"version":3,"file":"keyFactory.d.ts","sourceRoot":"","sources":["../../../../src/features/profiles/keyFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,YAAY;;oBAEP,QAAQ,gBAAgB,CAAC;;;;;CAE1C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const profilesKeys = {
2
+ all: () => ["profiles"],
3
+ list: (filters) => [...profilesKeys.all(), filters],
4
+ };
5
+ //# sourceMappingURL=keyFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyFactory.js","sourceRoot":"","sources":["../../../../src/features/profiles/keyFactory.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,CAAU;IAChC,IAAI,EAAE,CAAC,OAAkC,EAAE,EAAE,CAC3C,CAAC,GAAG,YAAY,CAAC,GAAG,EAAE,EAAE,OAAO,CAAU;CAC5C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import LocalLogicClient from "@local-logic/client";
2
+ export type { Profiles } from "@local-logic/client";
3
+ export declare type profilesResponse = Parameters<ReturnType<typeof LocalLogicClient>["getProfiles"]>["0"];
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/features/profiles/types.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,oBAAY,gBAAgB,GAAG,UAAU,CACvC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,aAAa,CAAC,CACnD,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/features/profiles/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const POIs: () => JSX.Element;
3
+ export default POIs;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Demographics/index.tsx"],"names":[],"mappings":";AAKA,QAAA,MAAM,IAAI,mBAsBT,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { Slider } from "@local-logic/ui";
3
+ import { useLangauges } from "~/context/languageProvider";
4
+ import { useDataExplorer } from "../../context";
5
+ const POIs = () => {
6
+ const { translations } = useLangauges();
7
+ const { dataExplorerState, setDataExplorerState } = useDataExplorer();
8
+ return (React.createElement(Slider, { showValue: true, label: `${translations.RADIUS} (m)`, min: 500, max: 5000, step: 100, value: [dataExplorerState.demographics.radius], onValueChange: (val) => {
9
+ setDataExplorerState({
10
+ demographics: Object.assign(Object.assign({}, dataExplorerState.demographics), { radius: val[0] }),
11
+ });
12
+ } }));
13
+ };
14
+ export default POIs;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Demographics/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAqB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,IAAI,GAAG,GAAG,EAAE;IAChB,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAqB,CAAC;IAC3D,MAAM,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,CAAC;IAEtE,OAAO,CACL,oBAAC,MAAM,IACL,SAAS,QACT,KAAK,EAAE,GAAG,YAAY,CAAC,MAAM,MAAM,EACnC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,IAAI,EACT,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,MAAM,CAAC,EAC9C,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE;YACrB,oBAAoB,CAAC;gBACnB,YAAY,kCACP,iBAAiB,CAAC,YAAY,KACjC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,GACf;aACF,CAAC,CAAC;QACL,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,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/Demographics/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/Demographics/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,4 @@
1
+ /// <reference types="react" />
2
+ declare const Export: () => JSX.Element;
3
+ export default Export;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/index.tsx"],"names":[],"mappings":";AAaA,QAAA,MAAM,MAAM,mBAkSX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,239 @@
1
+ import React, { useMemo } from "react";
2
+ import { Button, LoadingSpinner, Spacer } from "@local-logic/ui";
3
+ import { parse } from "json2csv";
4
+ import { useLangauges } from "~/context/languageProvider";
5
+ import { downloadFile } from "~/services/downloadFile";
6
+ import { useScores } from "../../features/useScores";
7
+ import { useSchools } from "../../features/useSchools";
8
+ import { usePois } from "../../features/usePois";
9
+ import { useDemographics } from "../../features/useDemographics";
10
+ import { useDataExplorer } from "../../context";
11
+ import * as S from "./styles";
12
+ import { useProfiles } from "../../features/useProfiles";
13
+ const Export = () => {
14
+ const { dataExplorerState } = useDataExplorer();
15
+ const { translations } = useLangauges();
16
+ /**
17
+ * Scores
18
+ */
19
+ const { data: scoresData, isFetching: isScoresFetching } = useScores({
20
+ lat: dataExplorerState.location.lat,
21
+ lng: dataExplorerState.location.lng,
22
+ enabled: dataExplorerState.scores.checked,
23
+ include: dataExplorerState.scores.include,
24
+ });
25
+ /**
26
+ * POIs
27
+ */
28
+ const { data: poisData, isFetching: isPoisFetching } = usePois({
29
+ lat: dataExplorerState.location.lat,
30
+ lng: dataExplorerState.location.lng,
31
+ enabled: dataExplorerState.pois.checked,
32
+ include: dataExplorerState.pois.include,
33
+ limit: dataExplorerState.pois.limit,
34
+ radius: dataExplorerState.pois.radius,
35
+ });
36
+ /**
37
+ * Schools
38
+ */
39
+ const { data: schoolsData, isFetching: isSchoolsFetching } = useSchools({
40
+ lat: dataExplorerState.location.lat,
41
+ lng: dataExplorerState.location.lng,
42
+ enabled: dataExplorerState.schools.checked,
43
+ limit: dataExplorerState.pois.limit,
44
+ radius: dataExplorerState.pois.radius,
45
+ });
46
+ /**
47
+ * Demographics
48
+ */
49
+ const { data: demographicsData, isFetching: isDemographicsFetching } = useDemographics({
50
+ lat: dataExplorerState.location.lat,
51
+ lng: dataExplorerState.location.lng,
52
+ enabled: dataExplorerState.demographics.checked,
53
+ radius: dataExplorerState.demographics.radius,
54
+ });
55
+ /**
56
+ * Profiles
57
+ */
58
+ const { data: profilesData, isFetching: isProfilesFetching } = useProfiles({
59
+ lat: dataExplorerState.location.lat,
60
+ lng: dataExplorerState.location.lng,
61
+ enabled: dataExplorerState.profiles.checked,
62
+ });
63
+ const data = useMemo(() => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (scoresData &&
64
+ dataExplorerState.scores.checked && { scores: scoresData })), (poisData && dataExplorerState.pois.checked && { pois: poisData })), (schoolsData &&
65
+ dataExplorerState.schools.checked && { schools: schoolsData })), (demographicsData &&
66
+ dataExplorerState.demographics.checked && {
67
+ demographics: demographicsData,
68
+ })), (profilesData &&
69
+ dataExplorerState.profiles.checked && {
70
+ profiles: profilesData,
71
+ }))), [
72
+ poisData,
73
+ scoresData,
74
+ schoolsData,
75
+ profilesData,
76
+ demographicsData,
77
+ dataExplorerState,
78
+ ]);
79
+ const isFetching = isScoresFetching ||
80
+ isPoisFetching ||
81
+ isSchoolsFetching ||
82
+ isDemographicsFetching ||
83
+ isProfilesFetching;
84
+ const exportToJson = (e) => {
85
+ e.preventDefault();
86
+ downloadFile({
87
+ data: JSON.stringify(data),
88
+ fileName: "local-logic-data",
89
+ fileType: "json",
90
+ });
91
+ };
92
+ const generateScoresCSVs = () => {
93
+ if (!scoresData) {
94
+ return;
95
+ }
96
+ const generateScoresCSV = (
97
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
98
+ obj, fileName) => {
99
+ const csvData = Object.entries(obj).map(([k, v]) => (Object.assign({ score: k }, v)));
100
+ const csv = parse(csvData);
101
+ if (!csv) {
102
+ return;
103
+ }
104
+ downloadFile({
105
+ data: csv,
106
+ fileName,
107
+ fileType: "csv",
108
+ });
109
+ };
110
+ /**
111
+ * Only generate a CSV for the location
112
+ */
113
+ generateScoresCSV(scoresData.location, "scores");
114
+ // scoresData.geographies.forEach((g) => {
115
+ // generateScoresCSV(
116
+ // g.scores,
117
+ // `scores-geography-${g.name.toLocaleLowerCase()}-${g.geog_level_type}`
118
+ // );
119
+ // });
120
+ };
121
+ const generatePoisCSVs = () => {
122
+ if (!poisData) {
123
+ return;
124
+ }
125
+ const csvData = Object.entries(poisData)
126
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
+ .map(([k, v]) => v.map((p) => (Object.assign({ poi: k }, p))))
128
+ .flat();
129
+ const csv = parse(csvData);
130
+ if (!csv) {
131
+ return;
132
+ }
133
+ downloadFile({
134
+ data: csv,
135
+ fileName: "pois",
136
+ fileType: "csv",
137
+ });
138
+ };
139
+ const generateSchoolsCSVs = () => {
140
+ if (!schoolsData) {
141
+ return;
142
+ }
143
+ const csvData = Object.entries(schoolsData)
144
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
145
+ .map(([k, v]) => v.map((p) => (Object.assign({ school: k }, p))))
146
+ .flat();
147
+ const csv = parse(csvData);
148
+ if (!csv) {
149
+ return;
150
+ }
151
+ downloadFile({
152
+ data: csv,
153
+ fileName: "schools",
154
+ fileType: "csv",
155
+ });
156
+ };
157
+ const generateDemographicsCSVs = () => {
158
+ if (!demographicsData) {
159
+ return;
160
+ }
161
+ const csvData = Object.entries(demographicsData)
162
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
163
+ .map(([k, v]) => (Object.assign({ demographic: k }, v)));
164
+ const csv = parse(csvData);
165
+ if (!csv) {
166
+ return;
167
+ }
168
+ downloadFile({
169
+ data: csv,
170
+ fileName: "demographics",
171
+ fileType: "csv",
172
+ });
173
+ };
174
+ const generateProfilesCSVs = () => {
175
+ if (!profilesData) {
176
+ return;
177
+ }
178
+ const csvData = [profilesData];
179
+ const fields = [
180
+ "id",
181
+ "intro",
182
+ "name",
183
+ "profiles.character",
184
+ "profiles.housing",
185
+ "profiles.services",
186
+ "profiles.transport",
187
+ ];
188
+ const csv = parse(csvData, { fields });
189
+ if (!csv) {
190
+ return;
191
+ }
192
+ downloadFile({
193
+ data: csv,
194
+ fileName: "profiles",
195
+ fileType: "csv",
196
+ });
197
+ };
198
+ const exportToCSV = (e) => {
199
+ e.preventDefault();
200
+ /**
201
+ * Generate scores
202
+ */
203
+ generateScoresCSVs();
204
+ /**
205
+ * Generate pois
206
+ */
207
+ generatePoisCSVs();
208
+ /**
209
+ * Generate schools
210
+ */
211
+ generateSchoolsCSVs();
212
+ /**
213
+ * Generate demographics
214
+ */
215
+ generateDemographicsCSVs();
216
+ /**
217
+ * Generate profiles
218
+ */
219
+ generateProfilesCSVs();
220
+ };
221
+ /**
222
+ * Number of CSVs to download
223
+ */
224
+ const csvCount = Object.keys(data).length;
225
+ return (React.createElement(S.ButtonContainer, null,
226
+ isFetching && (React.createElement(S.SpinnerContainer, null,
227
+ React.createElement(LoadingSpinner, null))),
228
+ React.createElement(Button, { variant: "contained", onClick: exportToJson, disabled: !Object.keys(data).length || isFetching },
229
+ translations.EXPORT,
230
+ " JSON"),
231
+ React.createElement(Spacer, { spacing: "--ll-spacing-xx-small" }),
232
+ React.createElement(Button, { variant: "contained", onClick: exportToCSV, disabled: !csvCount || isFetching },
233
+ translations.EXPORT,
234
+ " CSV (",
235
+ csvCount,
236
+ ")")));
237
+ };
238
+ export default Export;
239
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAqB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,MAAM,GAAG,GAAG,EAAE;IAClB,MAAM,EAAE,iBAAiB,EAAE,GAAG,eAAe,EAAE,CAAC;IAChD,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAqB,CAAC;IAE3D;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,SAAS,CAAC;QACnE,GAAG,EAAE,iBAAiB,CAAC,QAAQ,CAAC,GAAG;QACnC,GAAG,EAAE,iBAAiB,CAAC,QAAQ,CAAC,GAAG;QACnC,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAA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AC,uBAAuB,GAAG;QAC1C,oBAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,QAAQ,IAAI,UAAU;YAEhC,YAAY,CAAC,MAAM;;YAAQ,QAAQ;gBAC7B,CACS,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const ButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const SpinnerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,oEAO3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,oEAM5B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import styled from "styled-components";
2
+ import { theme } from "@local-logic/ui";
3
+ export const ButtonContainer = styled.div `
4
+ padding: ${theme["--ll-spacing-medium"]};
5
+ display: flex;
6
+ background-color: ${theme["--ll-color-surface"]};
7
+ box-shadow: ${theme["--ll-shadow-medium"]};
8
+ justify-content: flex-end;
9
+ border-top: 1px solid ${theme["--ll-color-border"]};
10
+ `;
11
+ export const SpinnerContainer = styled.div `
12
+ height: 40px;
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ margin-right: ${theme["--ll-spacing-medium"]};
17
+ `;
18
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;aAC5B,KAAK,CAAC,qBAAqB,CAAC;;sBAEnB,KAAK,CAAC,oBAAoB,CAAC;gBACjC,KAAK,CAAC,oBAAoB,CAAC;;0BAEjB,KAAK,CAAC,mBAAmB,CAAC;CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;kBAKxB,KAAK,CAAC,qBAAqB,CAAC;CAC7C,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const Map: () => JSX.Element;
3
+ export default Map;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Map/index.tsx"],"names":[],"mappings":";AASA,QAAA,MAAM,GAAG,mBA2DR,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,49 @@
1
+ import React, { useState, useRef } from "react";
2
+ import MapGL, { NavigationControl } from "react-map-gl";
3
+ import maplibregl from "maplibre-gl";
4
+ import Pin from "~/components/Pin";
5
+ import { useDataExplorer } from "../../context";
6
+ import { useStateManagerContext } from "../../../../context/stateManager";
7
+ import * as S from "./styles";
8
+ const Map = () => {
9
+ var _a, _b, _c, _d;
10
+ const { dataExplorerState, setDataExplorerState } = useDataExplorer();
11
+ const { sdkState } = useStateManagerContext();
12
+ const [longClick, setLongClick] = useState(false);
13
+ const timeoutRef = useRef();
14
+ const isDragging = useRef(false);
15
+ const mapTilerTheme = ((_b = (_a = sdkState === null || sdkState === void 0 ? void 0 : sdkState.globalOptions) === null || _a === void 0 ? void 0 : _a.appearance) === null || _b === void 0 ? void 0 : _b.theme) === "night"
16
+ ? "basic-v2-dark"
17
+ : "600d69cb-288d-445e-9839-3dfe4d76b31a";
18
+ return (React.createElement(S.MapContainer, null,
19
+ React.createElement(MapGL, { mapLib: maplibregl, mapStyle: `https://api.maptiler.com/maps/${mapTilerTheme}/style.json?key=${import.meta.env.VITE_REACT_APP_MAPTILER_KEY}`, initialViewState: {
20
+ longitude: (_c = sdkState.options) === null || _c === void 0 ? void 0 : _c.lng,
21
+ latitude: (_d = sdkState.options) === null || _d === void 0 ? void 0 : _d.lat,
22
+ zoom: 10,
23
+ }, onMouseDown: (e) => {
24
+ timeoutRef.current = setTimeout(() => {
25
+ if (!isDragging.current) {
26
+ setLongClick(true);
27
+ }
28
+ }, 1000);
29
+ }, onMouseUp: (e) => {
30
+ if (longClick) {
31
+ setDataExplorerState({
32
+ location: { lat: e.lngLat.lat, lng: e.lngLat.lng },
33
+ });
34
+ }
35
+ clearTimeout(timeoutRef.current);
36
+ setLongClick(false);
37
+ }, onDragStart: () => {
38
+ isDragging.current = true;
39
+ }, onDragEnd: () => {
40
+ isDragging.current = false;
41
+ } },
42
+ React.createElement(NavigationControl, { showCompass: true, style: {
43
+ marginTop: 16,
44
+ marginRight: 16,
45
+ } }),
46
+ React.createElement(Pin, { marker: dataExplorerState.location }))));
47
+ };
48
+ export default Map;
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Map/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,MAAM,GAAG,GAAG,GAAG,EAAE;;IACf,MAAM,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,CAAC;IACtE,MAA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,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACjC,YAAY,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC,EACD,WAAW,EAAE,GAAG,EAAE;gBAChB,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC;YAC5B,CAAC,EACD,SAAS,EAAE,GAAG,EAAE;gBACd,UAAU,CAAC,OAAO,GAAG,KAAK,CAAC;YAC7B,CAAC;YAED,oBAAC,iBAAiB,IAChB,WAAW,QACX,KAAK,EAAE;oBACL,SAAS,EAAE,EAAE;oBACb,WAAW,EAAE,EAAE;iBAChB,GACD;YACF,oBAAC,GAAG,IAAC,MAAM,EAAE,iBAAiB,CAAC,QAAQ,GAAI,CACrC,CACO,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const MapContainer: 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/Map/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,oEAIxB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { theme } from "@local-logic/ui";
2
+ import styled from "styled-components";
3
+ export const MapContainer = styled.div `
4
+ height: 400px;
5
+ display: flex;
6
+ border: 2px solid ${theme["--ll-color-on-background"]};
7
+ `;
8
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Map/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;sBAGhB,KAAK,CAAC,0BAA0B,CAAC;CACtD,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const POIs: () => JSX.Element;
3
+ export default POIs;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/POIs/index.tsx"],"names":[],"mappings":";AAQA,QAAA,MAAM,IAAI,mBAgFT,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,42 @@
1
+ import React from "react";
2
+ import { Button, Slider } from "@local-logic/ui";
3
+ import { POI } from "@local-logic/elements-react";
4
+ import { POICategories } from "@local-logic/client";
5
+ import { useLangauges } from "~/context/languageProvider";
6
+ import * as S from "./styles";
7
+ import { useDataExplorer } from "../../context";
8
+ const POIs = () => {
9
+ const { translations } = useLangauges();
10
+ const { dataExplorerState, setDataExplorerState } = useDataExplorer();
11
+ const allPOIs = Object.keys(POICategories).filter((key) => Number.isNaN(Number(key)));
12
+ return (React.createElement(React.Fragment, null,
13
+ allPOIs.map((p) => {
14
+ const isIncluded = dataExplorerState.pois.include.includes(p);
15
+ return (React.createElement(S.ButtonContainer, { key: p },
16
+ React.createElement(POI.Root, { options: { poi: p } },
17
+ React.createElement(Button, { size: "small", variant: isIncluded ? "contained" : "outlined", onClick: () => {
18
+ if (isIncluded) {
19
+ setDataExplorerState({
20
+ pois: Object.assign(Object.assign({}, dataExplorerState.pois), { include: dataExplorerState.pois.include.filter((prev) => prev !== p) }),
21
+ });
22
+ return;
23
+ }
24
+ setDataExplorerState({
25
+ pois: Object.assign(Object.assign({}, dataExplorerState.pois), { include: [...dataExplorerState.pois.include, p] }),
26
+ });
27
+ } },
28
+ React.createElement(POI.Title, { options: { isRawText: true } })))));
29
+ }),
30
+ React.createElement(Slider, { showValue: true, label: `${translations.RADIUS} (m)`, min: 100, max: 25000, step: 100, value: [dataExplorerState.pois.radius], onValueChange: (val) => {
31
+ setDataExplorerState({
32
+ pois: Object.assign(Object.assign({}, dataExplorerState.pois), { radius: val[0] }),
33
+ });
34
+ } }),
35
+ React.createElement(Slider, { showValue: true, label: translations.LIMIT, min: 1, max: 30, step: 1, value: [dataExplorerState.pois.limit], onValueChange: (val) => {
36
+ setDataExplorerState({
37
+ pois: Object.assign(Object.assign({}, dataExplorerState.pois), { limit: val[0] }),
38
+ });
39
+ } })));
40
+ };
41
+ export default POIs;
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/POIs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAqB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,IAAI,GAAG,GAAG,EAAE;IAChB,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAqB,CAAC;IAC3D,MAAM,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,CAAC;IACtE,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CACxD,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CACQ,CAAC;IAEpC,OAAO,CACL;QACG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACjB,MAAM,UAAU,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAE9D,OAAO,CACL,o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oBAAC,MAAM,IACL,SAAS,QACT,KAAK,EAAE,YAAY,CAAC,KAAK,EACzB,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,EAAE,EACP,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,EACrC,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE;gBACrB,oBAAoB,CAAC;oBACnB,IAAI,kCACC,iBAAiB,CAAC,IAAI,KACzB,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,GACd;iBACF,CAAC,CAAC;YACL,CAAC,GACD,CACD,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,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/POIs/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/POIs/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,4 @@
1
+ /// <reference types="react" />
2
+ declare const POIs: () => JSX.Element;
3
+ export default POIs;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Schools/index.tsx"],"names":[],"mappings":";AAKA,QAAA,MAAM,IAAI,mBAwCT,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { Slider } from "@local-logic/ui";
3
+ import { useLangauges } from "~/context/languageProvider";
4
+ import { useDataExplorer } from "../../context";
5
+ const POIs = () => {
6
+ const { translations } = useLangauges();
7
+ const { dataExplorerState, setDataExplorerState } = useDataExplorer();
8
+ return (React.createElement(React.Fragment, null,
9
+ React.createElement(Slider, { showValue: true, label: `${translations.RADIUS} (m)`, min: 100, max: 25000, step: 100, value: [dataExplorerState.schools.radius], onValueChange: (val) => {
10
+ setDataExplorerState({
11
+ schools: Object.assign(Object.assign({}, dataExplorerState.schools), { radius: val[0] }),
12
+ });
13
+ } }),
14
+ React.createElement(Slider, { showValue: true, label: translations.LIMIT, min: 1, max: 30, step: 1, value: [dataExplorerState.schools.limit], onValueChange: (val) => {
15
+ setDataExplorerState({
16
+ schools: Object.assign(Object.assign({}, dataExplorerState.schools), { limit: val[0] }),
17
+ });
18
+ } })));
19
+ };
20
+ export default POIs;
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Schools/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAqB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,IAAI,GAAG,GAAG,EAAE;IAChB,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAqB,CAAC;IAC3D,MAAM,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,CAAC;IAEtE,OAAO,CACL;QACE,oBAAC,MAAM,IACL,SAAS,QACT,KAAK,EAAE,GAAG,YAAY,CAAC,MAAM,MAAM,EACnC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,EACzC,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE;gBACrB,oBAAoB,CAAC;oBACnB,OAAO,kCACF,iBAAiB,CAAC,OAAO,KAC5B,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,GACf;iBACF,CAAC,CAAC;YACL,CAAC,GACD;QACF,oBAAC,MAAM,IACL,SAAS,QACT,KAAK,EAAE,YAAY,CAAC,KAAK,EACzB,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,EAAE,EACP,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,EACxC,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE;gBACrB,oBAAoB,CAAC;oBACnB,OAAO,kCACF,iBAAiB,CAAC,OAAO,KAC5B,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,GACd;iBACF,CAAC,CAAC;YACL,CAAC,GACD,CACD,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,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/Schools/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/Schools/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,4 @@
1
+ /// <reference types="react" />
2
+ declare const Scores: () => JSX.Element;
3
+ export default Scores;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Scores/index.tsx"],"names":[],"mappings":";AAOA,QAAA,MAAM,MAAM,mBA+CX,CAAC;AAEF,eAAe,MAAM,CAAC"}