@local-logic/sdks-app 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-legacy.0a642cb5.js +1 -0
- package/dist/assets/index-legacy.4e44eb64.js +1 -0
- package/dist/assets/index-legacy.7f6983e2.js +1 -0
- package/dist/assets/index-legacy.919f470f.js +1 -0
- package/dist/assets/{index-legacy.e333988e.js → index-legacy.95ccb44a.js} +14 -14
- package/dist/assets/index-legacy.c9e59904.js +23 -0
- package/dist/assets/index-legacy.fc3fe26b.js +1 -0
- package/dist/assets/{index.d89a7cee.js → index.1bb375cb.js} +13 -13
- package/dist/assets/index.621fb294.js +149 -0
- package/dist/assets/index.795111c8.js +1 -0
- package/dist/assets/index.7a7d9dc0.js +1 -0
- package/dist/assets/index.937af76a.js +247 -0
- package/dist/assets/{index.3eec99ca.js → index.9af49ac7.js} +151 -151
- package/dist/assets/index.f59985f7.js +35 -0
- package/dist/assets/{useIsMobile-legacy.7fb572d8.js → useIsMobile-legacy.ed5dee46.js} +1 -1
- package/dist/assets/{useIsMobile.b5e8d9ad.js → useIsMobile.456ed35b.js} +1 -1
- package/dist/assets/useQuery-legacy.97f1ad62.js +1 -0
- package/dist/assets/useQuery.83f2b67b.js +9 -0
- package/dist/index.html +2 -2
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.d.ts.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.js +1 -0
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.js.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.d.ts.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js +1 -0
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/types.d.ts +1 -1
- package/dist/types/context/languageProvider/data-explorer/types.d.ts.map +1 -1
- package/dist/types/context/languageProvider/index.d.ts +2 -2
- package/dist/types/context/languageProvider/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/components/DataTable/index.d.ts +4 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/index.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/{Table → DataTable}/index.js +2 -2
- package/dist/types/sdks/DataExplorer/components/DataTable/index.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/styles.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/styles.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Export/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Export/index.js +7 -11
- package/dist/types/sdks/DataExplorer/components/Export/index.js.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Filters/index.d.ts +4 -0
- package/dist/types/sdks/DataExplorer/components/Filters/index.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Filters/index.js +51 -0
- package/dist/types/sdks/DataExplorer/components/Filters/index.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Filters/styles.d.ts +6 -0
- package/dist/types/sdks/DataExplorer/components/Filters/styles.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Filters/styles.js +12 -0
- package/dist/types/sdks/DataExplorer/components/Filters/styles.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Section/index.d.ts +2 -4
- package/dist/types/sdks/DataExplorer/components/Section/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Section/index.js +6 -18
- package/dist/types/sdks/DataExplorer/components/Section/index.js.map +1 -1
- package/dist/types/sdks/DataExplorer/context.d.ts +1 -5
- package/dist/types/sdks/DataExplorer/context.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/context.js +1 -5
- package/dist/types/sdks/DataExplorer/context.js.map +1 -1
- package/dist/types/sdks/DataExplorer/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/index.js +10 -67
- package/dist/types/sdks/DataExplorer/index.js.map +1 -1
- package/dist/types/sdks/DataExplorer/styles.d.ts +3 -2
- package/dist/types/sdks/DataExplorer/styles.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/styles.js +17 -7
- package/dist/types/sdks/DataExplorer/styles.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index-legacy.5b5c89be.js +0 -1
- package/dist/assets/index-legacy.6f7be327.js +0 -1
- package/dist/assets/index-legacy.873d2f5f.js +0 -1
- package/dist/assets/index-legacy.8b48df8f.js +0 -1
- package/dist/assets/index-legacy.a2e5122a.js +0 -23
- package/dist/assets/index-legacy.b4a1ea09.js +0 -1
- package/dist/assets/index.1b34a15d.js +0 -35
- package/dist/assets/index.24661964.js +0 -247
- package/dist/assets/index.3039bacf.js +0 -161
- package/dist/assets/index.77b51154.js +0 -1
- package/dist/assets/index.aae000f4.js +0 -1
- package/dist/assets/keyFactory-legacy.782b8549.js +0 -1
- package/dist/assets/keyFactory.e1cd5707.js +0 -1
- package/dist/assets/useQuery-legacy.7e93cb2c.js +0 -1
- package/dist/assets/useQuery.19a6ca1c.js +0 -9
- package/dist/types/sdks/DataExplorer/components/Table/index.d.ts +0 -4
- package/dist/types/sdks/DataExplorer/components/Table/index.d.ts.map +0 -1
- package/dist/types/sdks/DataExplorer/components/Table/index.js.map +0 -1
- package/dist/types/sdks/DataExplorer/components/Table/styles.d.ts.map +0 -1
- package/dist/types/sdks/DataExplorer/components/Table/styles.js.map +0 -1
- /package/dist/types/sdks/DataExplorer/components/{Table → DataTable}/styles.d.ts +0 -0
- /package/dist/types/sdks/DataExplorer/components/{Table → DataTable}/styles.js +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{R as $,r as u,a9 as M,u as D,j as s,e as m,aa as d,s as r,C as i,c as w,p as _,G as R,ab as c,o as j,l as H,U as E}from"./index.9af49ac7.js";import{u as I}from"./useIsMobile.456ed35b.js";import{u as P}from"./useQuery.83f2b67b.js";const C=$.createContext({}),l=()=>u.exports.useContext(C),T=({children:a})=>{var v,b;const t=I(),[e,n]=u.exports.useState(M[0].value),{sdkState:o}=D(),[p,h]=u.exports.useReducer((g,S)=>({...g,...S}),{location:{lat:((v=o.options)==null?void 0:v.lat)||43.661337,lng:((b=o.options)==null?void 0:b.lng)||-79.401903},demographics:{radius:2500}}),f=u.exports.useMemo(()=>({demographicsState:p,setDemographicsState:h,activeCategory:e,setActiveCategory:n}),[e,n,p,h]),y=g=>{n(g.data)};return s(C.Provider,{value:f,children:m(d.Root,{options:{activeTab:e},onChange:y,children:[t?s(d.Select,{}):s(d.Tabs,{}),a]})})},k=r.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
background-color: ${i["--ll-color-background"]};
|
|
6
|
+
`,G=r.div`
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
padding: ${i["--ll-spacing-medium"]};
|
|
9
|
+
`,z=()=>{const{translations:a}=w();return s(_,{variant:"h3",weight:"--ll-font-weight-bold",children:a.DEMOGRAPHICS_TITLE})},A=r.div`
|
|
10
|
+
margin: ${i["--ll-spacing-xx-small"]} 0;
|
|
11
|
+
`;r.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
padding: ${i["--ll-spacing-x-small"]} ${i["--ll-spacing-medium"]}
|
|
14
|
+
${i["--ll-spacing-xx-small"]} ${i["--ll-spacing-medium"]};
|
|
15
|
+
`;const O=r.div`
|
|
16
|
+
height: 40px;
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
margin-right: ${i["--ll-spacing-medium"]};
|
|
21
|
+
`,x={all:()=>["demographics"],list:a=>[...x.all(),a]};function U({lat:a,lng:t,radius:e}){const{client:n}=R(),o={lat:a,lng:t,radius:e};return P(x.list(o),async()=>n.getDemographics(o),{enabled:!!o})}const B=()=>{const{demographicsState:{income:a}}=l();return s(c.AvgIncomeCard,{options:{incomeTypes:(a==null?void 0:a.variables)||[]}})},J=()=>{const{demographicsState:{population_age:a}}=l();return s(c.PopulationByAgeChart,{options:{labels:(a==null?void 0:a.variables.map(t=>t.label))||[],data:(a==null?void 0:a.variables.map(t=>Math.round(t.value*100)))||[]}})},K=r.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
gap: ${i["--ll-spacing-medium"]};
|
|
25
|
+
|
|
26
|
+
@media (max-width: ${j.screenSizes.tablet}px) {
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
}
|
|
29
|
+
`,L=()=>{const{demographicsState:{housing_tenancy:a,housing_type:t}}=l();return s(K,{children:s(c.OwnersRentersCard,{options:{datasets:(a==null?void 0:a.variables.map(e=>({label:e.label,data:Math.round(e.value*100)})))||[]}})})},Q=()=>{const{demographicsState:{household_composition:a,family_composition:t}}=l(),e=a==null?void 0:a.variables.map(n=>({...n,value:Math.round(n.value*100)})).filter(n=>Math.round(n.value*100)>0);return s(c.HouseholdCompositionCard,{options:{labels:(e==null?void 0:e.map(n=>`${n.value}% ${n.label}`))||[],data:(e==null?void 0:e.map(n=>n.value))||[]}})},V=()=>{const{demographicsState:{commute_mode:a}}=l(),t=a==null?void 0:a.variables.map(e=>({...e,value:Math.round(e.value*100)})).filter(e=>Math.round(e.value*100)>0);return s(c.CommuteModeCard,{options:{labels:(t==null?void 0:t.map(e=>`${e.value}% ${e.label}`))||[],data:(t==null?void 0:t.map(e=>e.value))||[]}})},q=()=>{const{demographicsState:{education_level:a}}=l();return s(c.EducationLevelChart,{options:{labels:(a==null?void 0:a.variables.map(t=>t.label))||[],data:(a==null?void 0:a.variables.map(t=>Math.round(t.value*100)))||[]}})},N=()=>{const{demographicsState:{mother_tongue:a}}=l(),t=a==null?void 0:a.variables.map(e=>({...e,value:Math.round(e.value*100)})).filter(e=>e.value>0);return s(c.MotherTongueChart,{options:{labels:(t==null?void 0:t.map(e=>e.label))||[],data:(t==null?void 0:t.map(e=>e.value))||[]}})},W=()=>{const{demographicsState:a,activeCategory:t,setDemographicsState:e}=l(),{data:n,isFetching:o}=U({lat:a.location.lat,lng:a.location.lng,radius:a.demographics.radius});u.exports.useEffect(()=>{!o&&n&&e({...n})},[o]);const p=()=>{if(o)return s(O,{children:s(H,{})});switch(t){case"income":return s(B,{});case"population":return s(J,{});case"housing":return s(L,{});case"household":return s(Q,{});case"commute":return s(V,{});case"education":return s(q,{});case"languages":return s(N,{});default:return m("div",{children:[t," tab"]})}};return s(A,{children:s(d.Content,{options:{value:t},children:p()})})},X=r.div`
|
|
30
|
+
padding: ${i["--ll-spacing-small"]};
|
|
31
|
+
|
|
32
|
+
a {
|
|
33
|
+
justify-content: end;
|
|
34
|
+
}
|
|
35
|
+
`,Y=()=>s(X,{children:s(E.Root,{})}),ea=()=>s(T,{children:s(k,{children:m(G,{children:[s(z,{}),s(W,{}),s(Y,{})]})})});export{ea as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],u=!0,f=!1;try{for(e=e.call(t);!(u=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(c){f=!0,o=c}finally{try{u||null==e.return||e.return()}finally{if(f)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}System.register(["./index-legacy.
|
|
1
|
+
!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],u=!0,f=!1;try{for(e=e.call(t);!(u=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(c){f=!0,o=c}finally{try{u||null==e.return||e.return()}finally{if(f)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}System.register(["./index-legacy.95ccb44a.js"],(function(n,r){"use strict";var o,i,u;return{setters:[function(t){o=t.y,i=t.r,u=t.o}],execute:function(){var r=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,s="object"==e(o)&&o&&o.Object===Object&&o,y="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,v=s||y||Function("return this")(),b=Object.prototype.toString,m=Math.max,p=Math.min,d=function(){return v.Date.now()};function h(t){var n=e(t);return!!t&&("object"==n||"function"==n)}function S(t){return"symbol"==e(t)||function(t){return!!t&&"object"==e(t)}(t)&&"[object Symbol]"==b.call(t)}function g(t){if("number"==typeof t)return t;if(S(t))return NaN;if(h(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=h(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var e=c.test(t);return e||a.test(t)?l(t.slice(2),e?2:8):f.test(t)?NaN:+t}var j=function(t,n,e){var r,o,i,u,f,c,a=0,l=!1,s=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(n){var e=r,i=o;return r=o=void 0,a=n,u=t.apply(i,e)}function b(t){return a=t,f=setTimeout(j,n),l?v(t):u}function S(t){var e=t-c;return void 0===c||e>=n||e<0||s&&t-a>=i}function j(){var t=d();if(S(t))return w(t);f=setTimeout(j,function(t){var e=n-(t-c);return s?p(e,i-(t-a)):e}(t))}function w(t){return f=void 0,y&&r?v(t):(r=o=void 0,u)}function x(){var t=d(),e=S(t);if(r=arguments,o=this,c=t,e){if(void 0===f)return b(c);if(s)return f=setTimeout(j,n),v(c)}return void 0===f&&(f=setTimeout(j,n)),u}return n=g(n)||0,h(e)&&(l=!!e.leading,i=(s="maxWait"in e)?m(g(e.maxWait)||0,n):i,y="trailing"in e?!!e.trailing:y),x.cancel=function(){void 0!==f&&clearTimeout(f),a=0,r=c=o=f=void 0},x.flush=function(){return void 0===f?u:w(d())},x};n("u",(function(){var n=t(i.exports.useState(!1),2),e=n[0],r=n[1];return i.exports.useLayoutEffect((function(){var t=function(){r(window.innerWidth<u.screenSizes.tablet)};return window.addEventListener("resize",j(t,250)),t(),function(){return window.removeEventListener("resize",t)}}),[]),e}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as g,r as h,o as C}from"./index.
|
|
1
|
+
import{y as g,r as h,o as C}from"./index.9af49ac7.js";var N="Expected a function",E=0/0,$="[object Symbol]",w=/^\s+|\s+$/g,A=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,F=/^0o[0-7]+$/i,R=parseInt,_=typeof g=="object"&&g&&g.Object===Object&&g,G=typeof self=="object"&&self&&self.Object===Object&&self,P=_||G||Function("return this")(),D=Object.prototype,H=D.toString,U=Math.max,X=Math.min,j=function(){return P.Date.now()};function q(e,n,r){var s,c,m,a,i,f,u=0,x=!1,d=!1,y=!0;if(typeof e!="function")throw new TypeError(N);n=L(n)||0,T(r)&&(x=!!r.leading,d="maxWait"in r,m=d?U(L(r.maxWait)||0,n):m,y="trailing"in r?!!r.trailing:y);function p(t){var o=s,l=c;return s=c=void 0,u=t,a=e.apply(l,o),a}function k(t){return u=t,i=setTimeout(b,n),x?p(t):a}function M(t){var o=t-f,l=t-u,O=n-o;return d?X(O,m-l):O}function I(t){var o=t-f,l=t-u;return f===void 0||o>=n||o<0||d&&l>=m}function b(){var t=j();if(I(t))return S(t);i=setTimeout(b,M(t))}function S(t){return i=void 0,y&&s?p(t):(s=c=void 0,a)}function W(){i!==void 0&&clearTimeout(i),u=0,s=f=c=i=void 0}function z(){return i===void 0?a:S(j())}function v(){var t=j(),o=I(t);if(s=arguments,c=this,f=t,o){if(i===void 0)return k(f);if(d)return i=setTimeout(b,n),p(f)}return i===void 0&&(i=setTimeout(b,n)),a}return v.cancel=W,v.flush=z,v}function T(e){var n=typeof e;return!!e&&(n=="object"||n=="function")}function J(e){return!!e&&typeof e=="object"}function K(e){return typeof e=="symbol"||J(e)&&H.call(e)==$}function L(e){if(typeof e=="number")return e;if(K(e))return E;if(T(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=T(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=e.replace(w,"");var r=B.test(e);return r||F.test(e)?R(e.slice(2),r?2:8):A.test(e)?E:+e}var Q=q;const Y=()=>{const[e,n]=h.exports.useState(!1);return h.exports.useLayoutEffect(()=>{const r=()=>{n(window.innerWidth<C.screenSizes.tablet)};return window.addEventListener("resize",Q(r,250)),r(),()=>window.removeEventListener("resize",r)},[]),e};export{Y as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=["refetchPage"];function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,i,o=[],u=!0,s=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);u=!0);}catch(a){s=!0,i=a}finally{try{u||null==r.return||r.return()}finally{if(s)throw i}}return o}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}System.register(["./index-legacy.95ccb44a.js"],(function(t,i){"use strict";var o,u,a,d,p,y,v,b,m,R,O,S,g,w;return{setters:[function(t){o=t.S,u=t.B,a=t.D,d=t.E,p=t.N,y=t.P,v=t.T,b=t.V,m=t.W,R=t.a0,O=t.a1,S=t.r,g=t.a2,w=t.a3}],execute:function(){t("u",(function(t,e,o){return function(t,e){var i=g({context:t.context}),o=S.exports.useContext(j),u=S.exports.useContext(M),s=i.defaultQueryOptions(t);s._optimisticResults=o?"isRestoring":"optimistic",s.onError&&(s.onError=O.batchCalls(s.onError));s.onSuccess&&(s.onSuccess=O.batchCalls(s.onSuccess));s.onSettled&&(s.onSettled=O.batchCalls(s.onSettled));s.suspense&&"number"!=typeof s.staleTime&&(s.staleTime=1e3);(s.suspense||s.useErrorBoundary)&&(u.isReset()||(s.retryOnMount=!1));var a=r(S.exports.useState((function(){return new e(i,s)})),1)[0],c=a.getOptimisticResult(s);if(P.exports.useSyncExternalStore(S.exports.useCallback((function(t){return o?function(){}:a.subscribe(O.batchCalls(t))}),[a,o]),(function(){return a.getCurrentResult()}),(function(){return a.getCurrentResult()})),S.exports.useEffect((function(){u.clearReset()}),[u]),S.exports.useEffect((function(){a.setOptions(s,{listeners:!1})}),[s,a]),s.suspense&&c.isLoading&&c.isFetching&&!o)throw a.fetchOptimistic(s).then((function(t){var e=t.data;null==s.onSuccess||s.onSuccess(e),null==s.onSettled||s.onSettled(e,null)})).catch((function(t){u.clearReset(),null==s.onError||s.onError(t),null==s.onSettled||s.onSettled(void 0,t)}));if(c.isError&&!u.isReset()&&!c.isFetching&&function(t,e){if("function"==typeof t)return t.apply(void 0,n(e));return!!t}(s.useErrorBoundary,[c.error,a.getCurrentQuery()]))throw c.error;return s.notifyOnChangeProps?c:a.trackResult(c)}(w(t,e,o),i)}));var i=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(S,t);var r,n,i,o=f(S);function S(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,S),(r=o.call(this)).client=t,r.options=e,r.trackedProps=new Set,r.selectError=null,r.bindMethods(),r.setOptions(e),r}return r=S,n=[{key:"bindMethods",value:function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}},{key:"onSubscribe",value:function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),E(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}},{key:"onUnsubscribe",value:function(){this.listeners.length||this.destroy()}},{key:"shouldFetchOnReconnect",value:function(){return k(this.currentQuery,this.options,this.options.refetchOnReconnect)}},{key:"shouldFetchOnWindowFocus",value:function(){return k(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}},{key:"destroy",value:function(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}},{key:"setOptions",value:function(t,e){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),u(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var i=this.hasListeners();i&&I(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(e),!i||this.currentQuery===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===n&&this.options.enabled===r.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)}},{key:"getOptimisticResult",value:function(t){var e=this.client.getQueryCache().build(this.client,t);return this.createResult(e,t)}},{key:"getCurrentResult",value:function(){return this.currentResult}},{key:"trackResult",value:function(t){var e=this,r={};return Object.keys(t).forEach((function(n){Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:function(){return e.trackedProps.add(n),t[n]}})})),r}},{key:"getCurrentQuery",value:function(){return this.currentQuery}},{key:"remove",value:function(){this.client.getQueryCache().remove(this.currentQuery)}},{key:"refetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.refetchPage,n=c(t,e);return this.fetch(s(s({},n),{},{meta:{refetchPage:r}}))}},{key:"fetchOptimistic",value:function(t){var e=this,r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then((function(){return e.createResult(n,r)}))}},{key:"fetch",value:function(t){var e,r=this;return this.executeFetch(s(s({},t),{},{cancelRefetch:null==(e=t.cancelRefetch)||e})).then((function(){return r.updateResult(),r.currentResult}))}},{key:"executeFetch",value:function(t){this.updateQuery();var e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(a)),e}},{key:"updateStaleTimeout",value:function(){var t=this;if(this.clearStaleTimeout(),!d&&!this.currentResult.isStale&&p(this.options.staleTime)){var e=y(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){t.currentResult.isStale||t.updateResult()}),e)}}},{key:"computeRefetchInterval",value:function(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}},{key:"updateRefetchInterval",value:function(t){var e=this;this.clearRefetchInterval(),this.currentRefetchInterval=t,!d&&!1!==this.options.enabled&&p(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(e.options.refetchIntervalInBackground||v.isFocused())&&e.executeFetch()}),this.currentRefetchInterval))}},{key:"updateTimers",value:function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}},{key:"clearStaleTimeout",value:function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}},{key:"clearRefetchInterval",value:function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}},{key:"createResult",value:function(t,e){var r,n=this.currentQuery,i=this.options,o=this.currentResult,u=this.currentResultState,s=this.currentResultOptions,a=t!==n,c=a?t.state:this.currentQueryInitialState,l=a?this.currentResult:this.previousQueryResult,h=t.state,f=h.dataUpdatedAt,d=h.error,p=h.errorUpdatedAt,y=h.fetchStatus,v=h.status,R=!1,O=!1;if(e._optimisticResults){var S=this.hasListeners(),g=!S&&E(t,e),w=S&&I(t,n,e,i);(g||w)&&(y=b(t.options.networkMode)?"fetching":"paused",f||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!h.dataUpdateCount&&null!=l&&l.isSuccess&&"error"!==v)r=l.data,f=l.dataUpdatedAt,v=l.status,R=!0;else if(e.select&&void 0!==h.data)if(o&&h.data===(null==u?void 0:u.data)&&e.select===this.selectFn)r=this.selectResult;else try{this.selectFn=e.select,r=e.select(h.data),r=m(null==o?void 0:o.data,r,e),this.selectResult=r,this.selectError=null}catch(P){this.selectError=P}else r=h.data;if(void 0!==e.placeholderData&&void 0===r&&"loading"===v){var k;if(null!=o&&o.isPlaceholderData&&e.placeholderData===(null==s?void 0:s.placeholderData))k=o.data;else if(k="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==k)try{k=e.select(k),k=m(null==o?void 0:o.data,k,e),this.selectError=null}catch(P){this.selectError=P}void 0!==k&&(v="success",r=k,O=!0)}this.selectError&&(d=this.selectError,r=this.selectResult,p=Date.now(),v="error");var j="fetching"===y;return{status:v,fetchStatus:y,isLoading:"loading"===v,isSuccess:"success"===v,isError:"error"===v,data:r,dataUpdatedAt:f,error:d,errorUpdatedAt:p,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:j,isRefetching:j&&"loading"!==v,isLoadingError:"error"===v&&0===h.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:O,isPreviousData:R,isRefetchError:"error"===v&&0!==h.dataUpdatedAt,isStale:Q(t,e),refetch:this.refetch,remove:this.remove}}},{key:"updateResult",value:function(t){var e=this,r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!u(n,r)){this.currentResult=n;var i={cache:!0};!1!==(null==t?void 0:t.listeners)&&function(){if(!r)return!0;var t=e.options.notifyOnChangeProps;if("all"===t||!t&&!e.trackedProps.size)return!0;var n=new Set(null!=t?t:e.trackedProps);return e.options.useErrorBoundary&&n.add("error"),Object.keys(e.currentResult).some((function(t){var i=t;return e.currentResult[i]!==r[i]&&n.has(i)}))}()&&(i.listeners=!0),this.notify(s(s({},i),t))}}},{key:"updateQuery",value:function(){var t=this.client.getQueryCache().build(this.client,this.options);if(t!==this.currentQuery){var e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}}},{key:"onQueryUpdate",value:function(t){var e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||R(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}},{key:"notify",value:function(t){var e=this;O.batch((function(){var r,n,i,o;if(t.onSuccess)null==(r=(n=e.options).onSuccess)||r.call(n,e.currentResult.data),null==(i=(o=e.options).onSettled)||i.call(o,e.currentResult.data,null);else if(t.onError){var u,s,a,c;null==(u=(s=e.options).onError)||u.call(s,e.currentResult.error),null==(a=(c=e.options).onSettled)||a.call(c,void 0,e.currentResult.error)}t.listeners&&e.listeners.forEach((function(t){t(e.currentResult)})),t.cache&&e.client.getQueryCache().notify({query:e.currentQuery,type:"observerResultsUpdated"})}))}}],n&&l(r.prototype,n),i&&l(r,i),Object.defineProperty(r,"prototype",{writable:!1}),S}(o);function E(t,e){return function(t,e){return!(!1===e.enabled||t.state.dataUpdatedAt||"error"===t.state.status&&!1===e.retryOnMount)}(t,e)||t.state.dataUpdatedAt>0&&k(t,e,e.refetchOnMount)}function k(t,e,r){if(!1!==e.enabled){var n="function"==typeof r?r(t):r;return"always"===n||!1!==n&&Q(t,e)}return!1}function I(t,e,r,n){return!1!==r.enabled&&(t!==e||!1===n.enabled)&&(!r.suspense||"error"!==t.state.status)&&Q(t,r)}function Q(t,e){return t.isStaleByTime(e.staleTime)}var j=S.exports.createContext(!1);j.Provider;var P={exports:{}},x={},C=S.exports;var T="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},U=C.useState,A=C.useEffect,F=C.useLayoutEffect,D=C.useDebugValue;function _(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!T(t,r)}catch(n){return!0}}var B="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=U({inst:{value:r,getSnapshot:e}}),i=n[0].inst,o=n[1];return F((function(){i.value=r,i.getSnapshot=e,_(i)&&o({inst:i})}),[t,r,e]),A((function(){return _(i)&&o({inst:i}),t((function(){_(i)&&o({inst:i})}))}),[t]),D(r),r};x.useSyncExternalStore=void 0!==C.useSyncExternalStore?C.useSyncExternalStore:B,function(t){t.exports=x}(P);var L,M=S.exports.createContext((L=!1,{clearReset:function(){L=!1},reset:function(){L=!0},isReset:function(){return L}}))}}}))}();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{S as j,B as F,D as K,E as U,N as w,P as V,T as N,V as W,W as D,a0 as q,a1 as m,r as p,a2 as z,a3 as G}from"./index.9af49ac7.js";class H extends j{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),P(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return Q(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Q(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),F(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const r=this.hasListeners();r&&k(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(t),r&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const u=this.computeRefetchInterval();r&&(this.currentQuery!==i||this.options.enabled!==n.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e);return this.createResult(t,e)}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(K)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),U||this.currentResult.isStale||!w(this.options.staleTime))return;const t=V(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(U||this.options.enabled===!1||!w(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||N.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,i=this.options,r=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,c=e!==n,f=c?e.state:this.currentQueryInitialState,y=c?this.currentResult:this.previousQueryResult,{state:o}=e;let{dataUpdatedAt:S,error:O,errorUpdatedAt:C,fetchStatus:v,status:h}=o,I=!1,x=!1,d;if(t._optimisticResults){const l=this.hasListeners(),b=!l&&P(e,t),B=l&&k(e,n,t,i);(b||B)&&(v=W(e.options.networkMode)?"fetching":"paused",S||(h="loading")),t._optimisticResults==="isRestoring"&&(v="idle")}if(t.keepPreviousData&&!o.dataUpdateCount&&y!=null&&y.isSuccess&&h!=="error")d=y.data,S=y.dataUpdatedAt,h=y.status,I=!0;else if(t.select&&typeof o.data<"u")if(r&&o.data===(u==null?void 0:u.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(o.data),d=D(r==null?void 0:r.data,d,t),this.selectResult=d,this.selectError=null}catch(l){this.selectError=l}else d=o.data;if(typeof t.placeholderData<"u"&&typeof d>"u"&&h==="loading"){let l;if(r!=null&&r.isPlaceholderData&&t.placeholderData===(a==null?void 0:a.placeholderData))l=r.data;else if(l=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof l<"u")try{l=t.select(l),l=D(r==null?void 0:r.data,l,t),this.selectError=null}catch(b){this.selectError=b}typeof l<"u"&&(h="success",d=l,x=!0)}this.selectError&&(O=this.selectError,d=this.selectResult,C=Date.now(),h="error");const T=v==="fetching";return{status:h,fetchStatus:v,isLoading:h==="loading",isSuccess:h==="success",isError:h==="error",data:d,dataUpdatedAt:S,error:O,errorUpdatedAt:C,failureCount:o.fetchFailureCount,errorUpdateCount:o.errorUpdateCount,isFetched:o.dataUpdateCount>0||o.errorUpdateCount>0,isFetchedAfterMount:o.dataUpdateCount>f.dataUpdateCount||o.errorUpdateCount>f.errorUpdateCount,isFetching:T,isRefetching:T&&h!=="loading",isLoadingError:h==="error"&&o.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:x,isPreviousData:I,isRefetchError:h==="error"&&o.dataUpdatedAt!==0,isStale:E(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,F(n,t))return;this.currentResult=n;const i={cache:!0},r=()=>{if(!t)return!0;const{notifyOnChangeProps:u}=this.options;if(u==="all"||!u&&!this.trackedProps.size)return!0;const a=new Set(u!=null?u:this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(c=>{const f=c;return this.currentResult[f]!==t[f]&&a.has(f)})};(e==null?void 0:e.listeners)!==!1&&r()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!q(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){m.batch(()=>{if(e.onSuccess){var t,n,i,r;(t=(n=this.options).onSuccess)==null||t.call(n,this.currentResult.data),(i=(r=this.options).onSettled)==null||i.call(r,this.currentResult.data,null)}else if(e.onError){var u,a,c,f;(u=(a=this.options).onError)==null||u.call(a,this.currentResult.error),(c=(f=this.options).onSettled)==null||c.call(f,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(y=>{y(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function J(s,e){return e.enabled!==!1&&!s.state.dataUpdatedAt&&!(s.state.status==="error"&&e.retryOnMount===!1)}function P(s,e){return J(s,e)||s.state.dataUpdatedAt>0&&Q(s,e,e.refetchOnMount)}function Q(s,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(s):t;return n==="always"||n!==!1&&E(s,e)}return!1}function k(s,e,t,n){return t.enabled!==!1&&(s!==e||n.enabled===!1)&&(!t.suspense||s.state.status!=="error")&&E(s,t)}function E(s,e){return s.isStaleByTime(e.staleTime)}const M=p.exports.createContext(!1),X=()=>p.exports.useContext(M);M.Provider;var A={exports:{}},L={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var R=p.exports;function Y(s,e){return s===e&&(s!==0||1/s===1/e)||s!==s&&e!==e}var Z=typeof Object.is=="function"?Object.is:Y,_=R.useState,$=R.useEffect,ee=R.useLayoutEffect,te=R.useDebugValue;function re(s,e){var t=e(),n=_({inst:{value:t,getSnapshot:e}}),i=n[0].inst,r=n[1];return ee(function(){i.value=t,i.getSnapshot=e,g(i)&&r({inst:i})},[s,t,e]),$(function(){return g(i)&&r({inst:i}),s(function(){g(i)&&r({inst:i})})},[s]),te(t),t}function g(s){var e=s.getSnapshot;s=s.value;try{var t=e();return!Z(s,t)}catch(n){return!0}}function se(s,e){return e()}var ne=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?se:re;L.useSyncExternalStore=R.useSyncExternalStore!==void 0?R.useSyncExternalStore:ne;(function(s){s.exports=L})(A);function ie(){let s=!1;return{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s}}const ue=p.exports.createContext(ie()),ae=()=>p.exports.useContext(ue);function ce(s,e){return typeof s=="function"?s(...e):!!s}function oe(s,e){const t=z({context:s.context}),n=X(),i=ae(),r=t.defaultQueryOptions(s);r._optimisticResults=n?"isRestoring":"optimistic",r.onError&&(r.onError=m.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=m.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=m.batchCalls(r.onSettled)),r.suspense&&typeof r.staleTime!="number"&&(r.staleTime=1e3),(r.suspense||r.useErrorBoundary)&&(i.isReset()||(r.retryOnMount=!1));const[u]=p.exports.useState(()=>new e(t,r)),a=u.getOptimisticResult(r);if(A.exports.useSyncExternalStore(p.exports.useCallback(c=>n?()=>{}:u.subscribe(m.batchCalls(c)),[u,n]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p.exports.useEffect(()=>{i.clearReset()},[i]),p.exports.useEffect(()=>{u.setOptions(r,{listeners:!1})},[r,u]),r.suspense&&a.isLoading&&a.isFetching&&!n)throw u.fetchOptimistic(r).then(({data:c})=>{r.onSuccess==null||r.onSuccess(c),r.onSettled==null||r.onSettled(c,null)}).catch(c=>{i.clearReset(),r.onError==null||r.onError(c),r.onSettled==null||r.onSettled(void 0,c)});if(a.isError&&!i.isReset()&&!a.isFetching&&ce(r.useErrorBoundary,[a.error,u.getCurrentQuery()]))throw a.error;return r.notifyOnChangeProps?a:u.trackResult(a)}function de(s,e,t){const n=G(s,e,t);return oe(n,H)}export{de as u};
|
package/dist/index.html
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<link rel="manifest" href="data:application/manifest+json;base64,eyJuYW1lIjoiIiwic2hvcnRfbmFtZSI6IiIsImljb25zIjpbeyJzcmMiOiIvYW5kcm9pZC1jaHJvbWUtMTkyeDE5Mi5wbmciLCJzaXplcyI6IjE5MngxOTIiLCJ0eXBlIjoiaW1hZ2UvcG5nIn0seyJzcmMiOiIvYW5kcm9pZC1jaHJvbWUtNTEyeDUxMi5wbmciLCJzaXplcyI6IjUxMng1MTIiLCJ0eXBlIjoiaW1hZ2UvcG5nIn1dLCJ0aGVtZV9jb2xvciI6IiNmZmZmZmYiLCJiYWNrZ3JvdW5kX2NvbG9yIjoiI2ZmZmZmZiIsImRpc3BsYXkiOiJzdGFuZGFsb25lIn0=" />
|
|
24
24
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
|
25
25
|
<title>Local Logic</title>
|
|
26
|
-
<script type="module" crossorigin src="/sdks-app/v2/assets/index.
|
|
26
|
+
<script type="module" crossorigin src="/sdks-app/v2/assets/index.9af49ac7.js"></script>
|
|
27
27
|
<script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
|
|
28
28
|
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
|
|
29
29
|
</head>
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
|
|
34
34
|
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
|
|
35
35
|
<script nomodule crossorigin id="vite-legacy-polyfill" src="/sdks-app/v2/assets/polyfills-legacy.db2bc606.js"></script>
|
|
36
|
-
<script nomodule crossorigin id="vite-legacy-entry" data-src="/sdks-app/v2/assets/index-legacy.
|
|
36
|
+
<script nomodule crossorigin id="vite-legacy-entry" data-src="/sdks-app/v2/assets/index-legacy.95ccb44a.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
|
37
37
|
</body>
|
|
38
38
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/context/languageProvider/data-explorer/locales/en/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAIlB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/context/languageProvider/data-explorer/locales/en/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAIlB,MAAM,aAAa,CAAC;AAoCrB,eAAO,MAAM,YAAY,EAAE;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM;CAI9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/context/languageProvider/data-explorer/locales/en/index.ts"],"names":[],"mappings":"AAOA,MAAM,aAAa,GAA2C;IAC5D,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/context/languageProvider/data-explorer/locales/en/index.ts"],"names":[],"mappings":"AAOA,MAAM,aAAa,GAA2C;IAC5D,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,eAAe;IAC3B,eAAe,EAAE,oBAAoB;CACtC,CAAC;AAEF,MAAM,iBAAiB,GAA+C;IACpE,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACf,CAAC;AAEF,MAAM,uBAAuB,GAEzB;IACF,aAAa,EACX,8EAA8E;IAChF,WAAW,EAAE,2DAA2D;IACxE,SAAS,EACP,8EAA8E;IAChF,YAAY,EAAE,4DAA4D;IAC1E,iBAAiB,EACf,iEAAiE;IACnE,aAAa,EACX,2FAA2F;IAC7F,UAAU,EAAE,gEAAgE;CAC7E,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,iDACpB,aAAa,GACb,iBAAiB,GACjB,uBAAuB,CAC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/context/languageProvider/data-explorer/locales/fr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGlB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/context/languageProvider/data-explorer/locales/fr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGlB,MAAM,aAAa,CAAC;AAoCrB,eAAO,MAAM,YAAY,EAAE;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM;CAI9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/context/languageProvider/data-explorer/locales/fr/index.ts"],"names":[],"mappings":"AAOA,MAAM,aAAa,GAA2C;IAC5D,MAAM,EAAE,OAAO;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,UAAU;IAClB,UAAU,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/context/languageProvider/data-explorer/locales/fr/index.ts"],"names":[],"mappings":"AAOA,MAAM,aAAa,GAA2C;IAC5D,MAAM,EAAE,OAAO;IACf,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,UAAU;IAClB,UAAU,EAAE,eAAe;IAC3B,eAAe,EAAE,eAAe;CACjC,CAAC;AAEF,MAAM,iBAAiB,GAA+C;IACpE,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,QAAQ;IACjB,YAAY,EAAE,aAAa;IAC3B,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,OAAO;CACf,CAAC;AAEF,MAAM,uBAAuB,GAEzB;IACF,aAAa,EACX,oGAAoG;IACtG,WAAW,EAAE,8DAA8D;IAC3E,SAAS,EACP,wEAAwE;IAC1E,YAAY,EAAE,8DAA8D;IAC5E,iBAAiB,EACf,sEAAsE;IACxE,aAAa,EACX,iGAAiG;IACnG,UAAU,EAAE,iEAAiE;CAC9E,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,iDACpB,aAAa,GACb,iBAAiB,GACjB,uBAAuB,CAC3B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type TranslationKeysTitles = "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "TABLE";
|
|
2
2
|
export declare type TranslationKeysDescriptions = "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "TABLE_TEXT";
|
|
3
|
-
export declare type TranslationKeysUI = "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP";
|
|
3
|
+
export declare type TranslationKeysUI = "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "SEARCH_INSIGHTS";
|
|
4
4
|
export declare type DETranslationKeys = TranslationKeysTitles | TranslationKeysDescriptions | TranslationKeysUI;
|
|
5
5
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/context/languageProvider/data-explorer/types.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAC7B,UAAU,GACV,QAAQ,GACR,MAAM,GACN,SAAS,GACT,cAAc,GACd,UAAU,GACV,OAAO,CAAC;AAEZ,oBAAY,2BAA2B,GACnC,eAAe,GACf,aAAa,GACb,WAAW,GACX,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,YAAY,CAAC;AAEjB,oBAAY,iBAAiB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/context/languageProvider/data-explorer/types.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAC7B,UAAU,GACV,QAAQ,GACR,MAAM,GACN,SAAS,GACT,cAAc,GACd,UAAU,GACV,OAAO,CAAC;AAEZ,oBAAY,2BAA2B,GACnC,eAAe,GACf,aAAa,GACb,WAAW,GACX,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,YAAY,CAAC;AAEjB,oBAAY,iBAAiB,GACzB,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,iBAAiB,CAAC;AAEtB,oBAAY,iBAAiB,GACzB,qBAAqB,GACrB,2BAA2B,GAC3B,iBAAiB,CAAC"}
|
|
@@ -8,8 +8,8 @@ interface DefaultContext<T extends DETranslationKeys | LCTranslationKeys | DTran
|
|
|
8
8
|
[key in T]: string;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
declare const useLangauges: <T extends "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "TABLE" | "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "TABLE_TEXT" | "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "CALCULATE_COMMUTE" | "MINUTE" | "HOUR" | "NO_ROUTE" | "FAST_ROUTE" | "TRY_SUGGESTION" | "WALKING" | "DRIVING" | "EMPTY_TEXT" | "DEMOGRAPHICS_TITLE">() => DefaultContext<T>;
|
|
12
|
-
declare const LanguagesProvider: <T extends "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "TABLE" | "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "TABLE_TEXT" | "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "CALCULATE_COMMUTE" | "MINUTE" | "HOUR" | "NO_ROUTE" | "FAST_ROUTE" | "TRY_SUGGESTION" | "WALKING" | "DRIVING" | "EMPTY_TEXT" | "DEMOGRAPHICS_TITLE">({ children, }: LanguagesProviderProps) => JSX.Element | null;
|
|
11
|
+
declare const useLangauges: <T extends "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "TABLE" | "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "TABLE_TEXT" | "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "SEARCH_INSIGHTS" | "CALCULATE_COMMUTE" | "MINUTE" | "HOUR" | "NO_ROUTE" | "FAST_ROUTE" | "TRY_SUGGESTION" | "WALKING" | "DRIVING" | "EMPTY_TEXT" | "DEMOGRAPHICS_TITLE">() => DefaultContext<T>;
|
|
12
|
+
declare const LanguagesProvider: <T extends "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "TABLE" | "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "TABLE_TEXT" | "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "SEARCH_INSIGHTS" | "CALCULATE_COMMUTE" | "MINUTE" | "HOUR" | "NO_ROUTE" | "FAST_ROUTE" | "TRY_SUGGESTION" | "WALKING" | "DRIVING" | "EMPTY_TEXT" | "DEMOGRAPHICS_TITLE">({ children, }: LanguagesProviderProps) => JSX.Element | null;
|
|
13
13
|
export { LanguagesProvider, useLangauges };
|
|
14
14
|
export * from "./sdkLocales";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/languageProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EAEL,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,UAAU,cAAc,CACtB,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,GAAG,gBAAgB;IAElE,YAAY,EAAE;SAAG,GAAG,IAAI,CAAC,GAAG,MAAM;KAAE,CAAC;CACtC;AAOD,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/languageProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EAEL,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,UAAU,cAAc,CACtB,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,GAAG,gBAAgB;IAElE,YAAY,EAAE;SAAG,GAAG,IAAI,CAAC,GAAG,MAAM;KAAE,CAAC;CACtC;AAOD,QAAA,MAAM,YAAY,ycAUjB,CAAC;AAEF,QAAA,MAAM,iBAAiB,kcAIpB,sBAAsB,uBAyCxB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC;AAC3C,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/DataTable/index.tsx"],"names":[],"mappings":";AA6BA,QAAA,MAAM,SAAS,mBAiGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -9,7 +9,7 @@ const defaultColumns = [
|
|
|
9
9
|
header: "Insight",
|
|
10
10
|
}),
|
|
11
11
|
];
|
|
12
|
-
const
|
|
12
|
+
const DataTable = () => {
|
|
13
13
|
const [columns, setColumns] = React.useState(() => [...defaultColumns]);
|
|
14
14
|
const [comparables, setComparables] = React.useState([]);
|
|
15
15
|
const [data, setData] = React.useState([]);
|
|
@@ -61,5 +61,5 @@ const Table = () => {
|
|
|
61
61
|
React.createElement(Spacer, { spacing: "--ll-spacing-xx-small" }),
|
|
62
62
|
React.createElement(Button, { variant: "contained", onClick: addInsight }, "Add Insight"))));
|
|
63
63
|
};
|
|
64
|
-
export default
|
|
64
|
+
export default DataTable;
|
|
65
65
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/DataTable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,eAAe,EACf,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAU9B,M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,CACnC,4BAAI,GAAG,EAAE,MAAM,CAAC,EAAE,IACf,MAAM,CAAC,aAAa;gBACnB,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,UAAU,CACR,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAC9B,MAAM,CAAC,UAAU,EAAE,CACpB,CACF,CACN,CAAC,CACC,CACN,CAAC,CACM;YACV,oBAAC,CAAC,CAAC,KAAK,QACL,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACrC,4BAAI,GAAG,EAAE,GAAG,CAAC,EAAE,IACZ,GAAG,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnC,4BAAI,GAAG,EAAE,IAAI,CAAC,EAAE,IACb,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CACvD,CACN,CAAC,CACC,CACN,CAAC,CACM,CACF;QACV,oBAAC,CAAC,CAAC,eAAe;YAChB,oBAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,aAAa,qBAEzC;YACT,oBAAC,MAAM,IAAC,OAAO,EAAC,uBAAuB,GAAG;YAC1C,oBAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,UAAU,kBAEtC,CACS,CACL,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/DataTable/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,eAAe,gLAO3B,CAAC;AAEF,eAAO,MAAM,KAAK,2LAGjB,CAAC;AAEF,eAAO,MAAM,KAAK,oMAEjB,CAAC;AAEF,eAAO,MAAM,KAAK,oMAQjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/DataTable/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,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,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;iBAChB,KAAK,CAAC,uBAAuB,CAAC;;CAE9C,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;iBAChB,KAAK,CAAC,uBAAuB,CAAC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;;mBAEd,KAAK,CAAC,uBAAuB,CAAC;;;;;;CAMhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/index.tsx"],"names":[],"mappings":";AAaA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/index.tsx"],"names":[],"mappings":";AAaA,QAAA,MAAM,MAAM,mBA8RX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -19,7 +19,7 @@ const Export = () => {
|
|
|
19
19
|
const { data: scoresData, isFetching: isScoresFetching } = useScores({
|
|
20
20
|
lat: dataExplorerState.location.lat,
|
|
21
21
|
lng: dataExplorerState.location.lng,
|
|
22
|
-
enabled:
|
|
22
|
+
enabled: true,
|
|
23
23
|
include: dataExplorerState.scores.include,
|
|
24
24
|
});
|
|
25
25
|
/**
|
|
@@ -28,7 +28,7 @@ const Export = () => {
|
|
|
28
28
|
const { data: poisData, isFetching: isPoisFetching } = usePois({
|
|
29
29
|
lat: dataExplorerState.location.lat,
|
|
30
30
|
lng: dataExplorerState.location.lng,
|
|
31
|
-
enabled:
|
|
31
|
+
enabled: true,
|
|
32
32
|
include: dataExplorerState.pois.include,
|
|
33
33
|
limit: dataExplorerState.pois.limit,
|
|
34
34
|
radius: dataExplorerState.pois.radius,
|
|
@@ -39,7 +39,7 @@ const Export = () => {
|
|
|
39
39
|
const { data: schoolsData, isFetching: isSchoolsFetching } = useSchools({
|
|
40
40
|
lat: dataExplorerState.location.lat,
|
|
41
41
|
lng: dataExplorerState.location.lng,
|
|
42
|
-
enabled:
|
|
42
|
+
enabled: true,
|
|
43
43
|
limit: dataExplorerState.pois.limit,
|
|
44
44
|
radius: dataExplorerState.pois.radius,
|
|
45
45
|
});
|
|
@@ -49,7 +49,7 @@ const Export = () => {
|
|
|
49
49
|
const { data: demographicsData, isFetching: isDemographicsFetching } = useDemographics({
|
|
50
50
|
lat: dataExplorerState.location.lat,
|
|
51
51
|
lng: dataExplorerState.location.lng,
|
|
52
|
-
enabled:
|
|
52
|
+
enabled: true,
|
|
53
53
|
radius: dataExplorerState.demographics.radius,
|
|
54
54
|
});
|
|
55
55
|
/**
|
|
@@ -58,15 +58,11 @@ const Export = () => {
|
|
|
58
58
|
const { data: profilesData, isFetching: isProfilesFetching } = useProfiles({
|
|
59
59
|
lat: dataExplorerState.location.lat,
|
|
60
60
|
lng: dataExplorerState.location.lng,
|
|
61
|
-
enabled:
|
|
61
|
+
enabled: true,
|
|
62
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 && {
|
|
63
|
+
const data = useMemo(() => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (scoresData && { scores: scoresData })), (poisData && { pois: poisData })), (schoolsData && { schools: schoolsData })), (demographicsData && {
|
|
67
64
|
demographics: demographicsData,
|
|
68
|
-
})), (profilesData &&
|
|
69
|
-
dataExplorerState.profiles.checked && {
|
|
65
|
+
})), (profilesData && {
|
|
70
66
|
profiles: profilesData,
|
|
71
67
|
}))), [
|
|
72
68
|
poisData,
|
|
@@ -1 +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,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAqB,MAAM,4BAA4B,CAAC;AAC7E,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,iB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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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Filters/index.tsx"],"names":[],"mappings":";AAaA,QAAA,MAAM,OAAO,mBAqEZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Search from "~/components/Search";
|
|
3
|
+
import { useLangauges } from "~/context/languageProvider";
|
|
4
|
+
import { Spacer } from "@local-logic/ui";
|
|
5
|
+
import Demographics from "../Demographics";
|
|
6
|
+
import POIs from "../POIs";
|
|
7
|
+
import Schools from "../Schools";
|
|
8
|
+
import Scores from "../Scores";
|
|
9
|
+
import Section from "../Section";
|
|
10
|
+
import * as S from "./styles";
|
|
11
|
+
const Filters = () => {
|
|
12
|
+
const { translations } = useLangauges();
|
|
13
|
+
const sections = [
|
|
14
|
+
{
|
|
15
|
+
title: translations.SCORES,
|
|
16
|
+
value: "scores",
|
|
17
|
+
children: React.createElement(Scores, null),
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: translations.POIS,
|
|
21
|
+
value: "pois",
|
|
22
|
+
children: React.createElement(POIs, null),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: translations.SCHOOLS,
|
|
26
|
+
value: "schools",
|
|
27
|
+
children: React.createElement(Schools, null),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: translations.DEMOGRAPHICS,
|
|
31
|
+
value: "demographics",
|
|
32
|
+
children: React.createElement(Demographics, null),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: translations.PROFILES,
|
|
36
|
+
value: "profiles",
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
return (React.createElement(React.Fragment, null,
|
|
40
|
+
React.createElement(Search, { placeholder: translations.SEARCH_INSIGHTS, renderListAbove: false, onSearch: (e) => {
|
|
41
|
+
console.log("Hello", e);
|
|
42
|
+
} }),
|
|
43
|
+
React.createElement(Spacer, { vertical: true, spacing: "--ll-spacing-small" }),
|
|
44
|
+
React.createElement(S.PresetsContainer, null,
|
|
45
|
+
React.createElement(S.PresetButton, { size: "small", variant: "contained" }, "LL SFR Default"),
|
|
46
|
+
React.createElement(S.PresetButton, { size: "small", variant: "outlined" }, "My Preset #2")),
|
|
47
|
+
React.createElement(Spacer, { vertical: true, spacing: "--ll-spacing-small" }),
|
|
48
|
+
React.createElement(S.AccordionRoot, { type: "multiple", collapsible: true }, sections.map((section) => (React.createElement(Section, { key: section.value, title: section.title, value: section.value }, section.children))))));
|
|
49
|
+
};
|
|
50
|
+
export default Filters;
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Filters/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAqB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAU,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,MAAM,EAAE,YAAY,EAAE,GAAG,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AO,EAAE,EAAE,CAAC,CACzB,oBAAC,OAAO,IACN,GAAG,EAAE,OAAO,CAAC,KAAK,EAClB,KAAK,EAAE,OAAO,CAAC,KAAK,EACpB,KAAK,EAAE,OAAO,CAAC,KAAK,IAEnB,OAAO,CAAC,QAAQ,CACT,CACX,CAAC,CACc,CACjB,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as Accordion from "@radix-ui/react-accordion";
|
|
3
|
+
export declare const AccordionRoot: import("styled-components").IStyledComponent<"web", import("react").ForwardRefExoticComponent<(Accordion.AccordionSingleProps | Accordion.AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>>, ((Accordion.AccordionSingleProps | Accordion.AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>) & object> & object;
|
|
4
|
+
export declare const PresetsContainer: import("styled-components").IStyledComponent<"web", "div", import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object> & object;
|
|
5
|
+
export declare const PresetButton: import("styled-components").IStyledComponent<"web", import("react").ForwardRefExoticComponent<import("@local-logic/ui").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("@local-logic/ui").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & object> & object;
|
|
6
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Filters/styles.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AAEvD,eAAO,MAAM,aAAa,8VAGzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,gLAAe,CAAC;AAE7C,eAAO,MAAM,YAAY,sSAExB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled } from "styled-components";
|
|
2
|
+
import { Button, theme } from "@local-logic/ui";
|
|
3
|
+
import * as Accordion from "@radix-ui/react-accordion";
|
|
4
|
+
export const AccordionRoot = styled(Accordion.Root) `
|
|
5
|
+
height: 85%;
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
`;
|
|
8
|
+
export const PresetsContainer = styled.div ``;
|
|
9
|
+
export const PresetButton = styled(Button) `
|
|
10
|
+
margin-right: ${theme["--ll-spacing-xx-small"]};
|
|
11
|
+
`;
|
|
12
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Filters/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;;;CAGlD,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAE7C,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;kBACxB,KAAK,CAAC,uBAAuB,CAAC;CAC/C,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { State } from "../../context";
|
|
3
3
|
interface SectionProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
4
5
|
title: string;
|
|
5
|
-
description: string;
|
|
6
6
|
value: keyof State;
|
|
7
|
-
number: number;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
7
|
}
|
|
10
|
-
declare const Section: ({ title,
|
|
8
|
+
declare const Section: ({ title, children, value }: SectionProps) => JSX.Element;
|
|
11
9
|
export default Section;
|
|
12
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,KAAK,CAAC;CACpB;AAED,QAAA,MAAM,OAAO,+BAAgC,YAAY,gBA4BxD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,34 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Tag, Text, SVG, theme } from "@local-logic/ui";
|
|
3
3
|
import * as Accordion from "@radix-ui/react-accordion";
|
|
4
4
|
import ChevronRightSVG from "~/assets/icons/chevron_right.svg";
|
|
5
5
|
import { useDataExplorer } from "../../context";
|
|
6
6
|
import * as S from "./styles";
|
|
7
|
-
const Section = ({ title,
|
|
7
|
+
const Section = ({ title, children, value }) => {
|
|
8
8
|
const { dataExplorerState, setDataExplorerState } = useDataExplorer();
|
|
9
9
|
return (React.createElement(Accordion.Item, { value: value },
|
|
10
10
|
React.createElement(S.Section, null,
|
|
11
11
|
React.createElement(S.SectionTopBar, null,
|
|
12
12
|
React.createElement(S.Trigger, null,
|
|
13
|
-
React.createElement(S.
|
|
13
|
+
React.createElement(S.ChevronContainer, null,
|
|
14
|
+
React.createElement(SVG, { SVGElement: ChevronRightSVG, fill: theme["--ll-color-on-background-variant1"] })),
|
|
14
15
|
React.createElement(Text, { variant: "h6", noMargin: true, weight: "--ll-font-weight-medium" }, title)),
|
|
15
16
|
React.createElement(S.RightSideContainer, null,
|
|
16
|
-
|
|
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"] }))))),
|
|
17
|
+
React.createElement(Tag, { text: "11 insights" }))),
|
|
28
18
|
React.createElement(S.SectionContent, null,
|
|
29
|
-
React.createElement(S.InnerContent, null,
|
|
30
|
-
React.createElement(Text, { color: "--ll-color-on-background-variant1" }, description),
|
|
31
|
-
children)))));
|
|
19
|
+
React.createElement(S.InnerContent, null, children)))));
|
|
32
20
|
};
|
|
33
21
|
export default Section;
|
|
34
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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,
|
|
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,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxD,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;AAQ9B,MAAM,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAgB,EAAE,EAAE;IAC3D,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,gBAAgB;wBACjB,oBAAC,GAAG,IACF,UAAU,EAAE,eAAsC,EAClD,IAAI,EAAE,KAAK,CAAC,mCAAmC,CAAC,GAChD,CACiB;oBACrB,oBAAC,IAAI,IAAC,OAAO,EAAC,IAAI,EAAC,QAAQ,QAAC,MAAM,EAAC,yBAAyB,IACzD,KAAK,CACD,CACG;gBACZ,oBAAC,CAAC,CAAC,kBAAkB;oBACnB,oBAAC,GAAG,IAAC,IAAI,EAAC,aAAa,GAAG,CACL,CACP;YAClB,oBAAC,CAAC,CAAC,cAAc;gBACf,oBAAC,CAAC,CAAC,YAAY,QAAE,QAAQ,CAAkB,CAC1B,CACT,CACG,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|