proto-autos-wc 0.0.231 → 0.0.232
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/cjs/eswat2-io_3.cjs.entry.js +17 -17
- package/dist/collection/components/eswat2-io/fingerprint.js +1 -1
- package/dist/collection/components/proto-autos/dealer-card.js +1 -1
- package/dist/collection/components/proto-autos/footer.js +2 -2
- package/dist/collection/components/proto-autos/proto-autos.js +4 -4
- package/dist/collection/components/proto-autos/refresh.js +1 -1
- package/dist/collection/components/proto-autos/spinner.js +4 -3
- package/dist/collection/components/proto-autos/tool-bar.js +2 -3
- package/dist/collection/components/proto-autos/vehicle-card.js +1 -1
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/store.js +3 -3
- package/dist/collection/utils/types.js +1 -0
- package/dist/esm/eswat2-io_3.entry.js +17 -17
- package/dist/proto-autos-wc/{p-d677b0d8.entry.js → p-30fb5cef.entry.js} +1 -1
- package/dist/proto-autos-wc/proto-autos-wc.esm.js +1 -1
- package/dist/types/components/eswat2-io/fingerprint.d.ts +3 -1
- package/dist/types/components/proto-autos/dealer-card.d.ts +3 -1
- package/dist/types/components/proto-autos/footer.d.ts +2 -1
- package/dist/types/components/proto-autos/header.d.ts +2 -1
- package/dist/types/components/proto-autos/refresh.d.ts +3 -1
- package/dist/types/components/proto-autos/spinner.d.ts +3 -1
- package/dist/types/components/proto-autos/tool-bar.d.ts +2 -1
- package/dist/types/components/proto-autos/vehicle-card.d.ts +3 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/store.d.ts +3 -8
- package/dist/types/utils/types.d.ts +60 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-6893e420.js');
|
|
6
6
|
const tags = require('./tags-ca9b115f.js');
|
|
7
7
|
|
|
8
|
-
const Fingerprint =
|
|
8
|
+
const Fingerprint = props => {
|
|
9
9
|
const hex = props.hex || 'currentColor';
|
|
10
10
|
const klass = props.class;
|
|
11
11
|
const label = props.label || 'fingerprint';
|
|
@@ -709,7 +709,7 @@ const clearStore = (loading = false) => {
|
|
|
709
709
|
state.dealer = undefined;
|
|
710
710
|
};
|
|
711
711
|
// --------------------------------------------------------[ processing ]
|
|
712
|
-
const processData = next => {
|
|
712
|
+
const processData = (next) => {
|
|
713
713
|
if (next) {
|
|
714
714
|
const { pick } = state;
|
|
715
715
|
if (pick != undefined) {
|
|
@@ -726,7 +726,7 @@ const processData = next => {
|
|
|
726
726
|
state.loading = false;
|
|
727
727
|
}
|
|
728
728
|
};
|
|
729
|
-
const processPick = next => {
|
|
729
|
+
const processPick = (next) => {
|
|
730
730
|
const { data } = state;
|
|
731
731
|
if (data && next !== undefined) {
|
|
732
732
|
state.pick = next;
|
|
@@ -806,7 +806,7 @@ const refresh = () => {
|
|
|
806
806
|
});
|
|
807
807
|
});
|
|
808
808
|
};
|
|
809
|
-
const updatePick = pick => {
|
|
809
|
+
const updatePick = (pick) => {
|
|
810
810
|
bag.store(PICK, pick);
|
|
811
811
|
processPick(pick);
|
|
812
812
|
};
|
|
@@ -820,7 +820,7 @@ const tw = (...classes) => {
|
|
|
820
820
|
return classes.filter(Boolean).join(' ');
|
|
821
821
|
};
|
|
822
822
|
|
|
823
|
-
const DealerCard =
|
|
823
|
+
const DealerCard = props => {
|
|
824
824
|
const { value } = props;
|
|
825
825
|
const { dealerId, name, vehicles } = value || {};
|
|
826
826
|
const count = vehicles ? vehicles.length : 0;
|
|
@@ -828,11 +828,11 @@ const DealerCard = (props) => {
|
|
|
828
828
|
};
|
|
829
829
|
|
|
830
830
|
const TW_VERSION = "2.2.19";
|
|
831
|
-
const TwLabel =
|
|
831
|
+
const TwLabel = props => {
|
|
832
832
|
const { version } = props;
|
|
833
833
|
return (index.h("label", { class: "ml-auto align-top text-xs italic text-clrs-slate4" }, "Tailwind ", version));
|
|
834
834
|
};
|
|
835
|
-
const Footer =
|
|
835
|
+
const Footer = _props => {
|
|
836
836
|
return (index.h("div", { class: "flex flex-row mt-2 mb-4 mr-2" }, index.h(TwLabel, { version: TW_VERSION })));
|
|
837
837
|
};
|
|
838
838
|
|
|
@@ -840,14 +840,15 @@ const Header = (_props, children) => {
|
|
|
840
840
|
return (index.h("h1", { class: tw("uppercase text-center text-clrs-red", "mr-0 ml-0 mt-11 mb-11", "font-thin text-6xl") }, children));
|
|
841
841
|
};
|
|
842
842
|
|
|
843
|
-
const Spinner =
|
|
843
|
+
const Spinner = props => {
|
|
844
|
+
const hex = props.hex || "currentColor";
|
|
844
845
|
const klass = props.class || "";
|
|
845
846
|
const label = props.label || "loading...";
|
|
846
847
|
const size = props.size || 24;
|
|
847
|
-
return (index.h("svg", { class: tw(klass, "animate-spin text-clrs-navy"), width: size, height: size, fill: "none", viewBox: "0 0 24 24", role: "img", "aria-label": "title" }, index.h("title", null, label), index.h("g", null, index.h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke:
|
|
848
|
+
return (index.h("svg", { class: tw(klass, "animate-spin text-clrs-navy"), width: size, height: size, fill: "none", viewBox: "0 0 24 24", role: "img", "aria-label": "title" }, index.h("title", null, label), index.h("g", null, index.h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke: hex, "stroke-width": "4" }), index.h("path", { class: "opacity-75", fill: hex, d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })), index.h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
|
848
849
|
};
|
|
849
850
|
|
|
850
|
-
const Refresh =
|
|
851
|
+
const Refresh = props => {
|
|
851
852
|
const hex = props.hex || 'currentColor';
|
|
852
853
|
const klass = props.class;
|
|
853
854
|
const label = props.label || 'refresh';
|
|
@@ -859,8 +860,7 @@ const Refresh = (props) => {
|
|
|
859
860
|
index.h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
|
860
861
|
};
|
|
861
862
|
|
|
862
|
-
const ToolBar =
|
|
863
|
-
const { actions, state } = props;
|
|
863
|
+
const ToolBar = _props => {
|
|
864
864
|
const { loading, pick, data } = state || {};
|
|
865
865
|
const { list } = data || { list: [] };
|
|
866
866
|
const max = list.length - 1;
|
|
@@ -885,7 +885,7 @@ const isExotic = (year) => {
|
|
|
885
885
|
const isModern = (year) => {
|
|
886
886
|
return year > 2010;
|
|
887
887
|
};
|
|
888
|
-
const VehicleCard =
|
|
888
|
+
const VehicleCard = props => {
|
|
889
889
|
const { vin, make, model, year, color } = props.value || {};
|
|
890
890
|
return (index.h("div", { class: tw("flex align-middle", "rounded-lg p-4 mb-1", "border border-solid", isExotic(year)
|
|
891
891
|
? "bg-clrs-navy border-clrs-navy text-clrs-white"
|
|
@@ -900,17 +900,17 @@ const VehicleCard = (props) => {
|
|
|
900
900
|
: "")), index.h("proto-ikon-loader", { class: "ikon ml-auto self-center", name: make, label: make.toLowerCase() })));
|
|
901
901
|
};
|
|
902
902
|
|
|
903
|
-
const protoAutosCss = ".ikon{height:96px;width:96px}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.flex
|
|
903
|
+
const protoAutosCss = ".ikon{height:96px;width:96px}*,:after,:before{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.ml-auto{margin-left:auto}.flex{display:flex}.inline-flex{display:inline-flex}.h-8{height:2rem}.w-8{width:2rem}.justify-end{justify-content:flex-end}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-tr-none{border-top-right-radius:0}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-none{border-top-left-radius:0}.rounded-bl-none{border-bottom-left-radius:0}.rounded-tr-md{border-top-right-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-gray-600{--tw-border-opacity:1;border-color:rgba(75,85,99,var(--tw-border-opacity))}.bg-clrs-red{background-color:var(--clrs-red,#ff4136)}.bg-clrs-yellow{background-color:var(--clrs-yellow,#ffdc00)}.font-bold{font-weight:700}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-clrs-navy{color:var(--clrs-navy,#001f3f)}.hover\\:text-clrs-red:hover{color:var(--clrs-red,#ff4136)}.mt-2{margin-top:.5rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.flex-row{flex-direction:row}.align-top{vertical-align:top}.text-xs{font-size:.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4,#4e5964)}.mr-0{margin-right:0}.ml-0{margin-left:0}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.text-center{text-align:center}.text-6xl{font-size:3.75rem;line-height:1}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.text-clrs-red{color:var(--clrs-red,#ff4136)}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.self-center{align-self:center}.rounded-lg{border-radius:.5rem}.border-blue-400{--tw-border-opacity:1;border-color:rgba(96,165,250,var(--tw-border-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgba(191,219,254,var(--tw-bg-opacity))}.p-4{padding:1rem}.text-right{text-align:right}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.mb-1{margin-bottom:.25rem}.mr-1\\.5{margin-right:.375rem}.mr-1{margin-right:.25rem}.mb-2{margin-bottom:.5rem}.flex-col{flex-direction:column}.border-clrs-navy{border-color:var(--clrs-navy,#001f3f)}.border-yellow-600{--tw-border-opacity:1;border-color:rgba(217,119,6,var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgba(5,150,105,var(--tw-border-opacity))}.bg-clrs-navy{background-color:var(--clrs-navy,#001f3f)}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgba(252,211,77,var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity:1;background-color:rgba(167,243,208,var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgba(209,213,219,var(--tw-bg-opacity))}.align-middle{vertical-align:middle}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-clrs-white{color:var(--clrs-white,#fff)}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.opacity-25{opacity:.25}.opacity-75{opacity:.75}@media (min-width:500px){.ikon{height:144px;width:144px}}@media (min-width:700px){.ikon{height:192px;width:192px}}@media (min-width:768px){.md\\:w-auto{width:auto}}";
|
|
904
904
|
|
|
905
905
|
// ------------------------------------------------------ [ layout ]
|
|
906
|
-
const VehicleList =
|
|
906
|
+
const VehicleList = props => {
|
|
907
907
|
const { list } = props;
|
|
908
908
|
const count = list.length;
|
|
909
909
|
if (count === 0)
|
|
910
910
|
return "";
|
|
911
911
|
return (index.h("div", { class: "flex flex-col" }, count ? list.map(vehicle => index.h(VehicleCard, { value: vehicle })) : ""));
|
|
912
912
|
};
|
|
913
|
-
const DealerView =
|
|
913
|
+
const DealerView = props => {
|
|
914
914
|
const { dealer } = props;
|
|
915
915
|
const { vehicles } = dealer || { vehicles: [] };
|
|
916
916
|
const list = vehicles;
|
|
@@ -928,7 +928,7 @@ let ProtoAutos = class {
|
|
|
928
928
|
}
|
|
929
929
|
render() {
|
|
930
930
|
const { loading, dealer } = state;
|
|
931
|
-
return (index.h("main", { id: "app", class: "ds1-main" }, index.h("eswat2-io", null), index.h(Header, null, "Auto Dealers"), index.h(ToolBar,
|
|
931
|
+
return (index.h("main", { id: "app", class: "ds1-main" }, index.h("eswat2-io", null), index.h(Header, null, "Auto Dealers"), index.h(ToolBar, null), loading ? (index.h(Spinner, null)) : (index.h("hr", { class: tw("ml-0 mr-0 mt-4 mb-4", "border-solid border-gray-300", "border-r-0 border-b-0 border-l-0") })), index.h(DealerView, { dealer: dealer }), index.h(Footer, null)));
|
|
932
932
|
}
|
|
933
933
|
};
|
|
934
934
|
ProtoAutos.style = protoAutosCss + '*,:after,:before{--tw-border-opacity:1;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;border-color:rgba(229,231,235,var(--tw-border-opacity))}.ds1-main{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--clrs-navy,#001f3f);display:flex;flex-direction:column;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:1.5rem}.ml-0{margin-left:0}.mr-0{margin-right:0}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.flex{display:flex}.flex-col{flex-direction:column}.border-r-0{border-right-width:0}.border-b-0{border-bottom-width:0}.border-l-0{border-left-width:0}.border-solid{border-style:solid}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
const TW_VERSION = '2.2.19';
|
|
3
|
-
const TwLabel =
|
|
3
|
+
const TwLabel = props => {
|
|
4
4
|
const { version } = props;
|
|
5
5
|
return (h("label", { class: "ml-auto align-top text-xs italic text-clrs-slate4" },
|
|
6
6
|
"Tailwind ",
|
|
7
7
|
version));
|
|
8
8
|
};
|
|
9
|
-
const Footer =
|
|
9
|
+
const Footer = _props => {
|
|
10
10
|
return (h("div", { class: "flex flex-row mt-2 mb-4 mr-2" },
|
|
11
11
|
h(TwLabel, { version: TW_VERSION })));
|
|
12
12
|
};
|
|
@@ -5,18 +5,18 @@ import { Header } from './header';
|
|
|
5
5
|
import { Spinner } from './spinner';
|
|
6
6
|
import { ToolBar } from './tool-bar';
|
|
7
7
|
import { VehicleCard } from './vehicle-card';
|
|
8
|
-
import { actions, state, tw } from '../../utils';
|
|
8
|
+
import { actions, state, tw, } from '../../utils';
|
|
9
9
|
// NOTE: we need this to lazy load the icon library...
|
|
10
10
|
import 'proto-ikon-loader-wc';
|
|
11
11
|
// ------------------------------------------------------ [ layout ]
|
|
12
|
-
const VehicleList =
|
|
12
|
+
const VehicleList = props => {
|
|
13
13
|
const { list } = props;
|
|
14
14
|
const count = list.length;
|
|
15
15
|
if (count === 0)
|
|
16
16
|
return '';
|
|
17
17
|
return (h("div", { class: "flex flex-col" }, count ? list.map(vehicle => h(VehicleCard, { value: vehicle })) : ''));
|
|
18
18
|
};
|
|
19
|
-
const DealerView =
|
|
19
|
+
const DealerView = props => {
|
|
20
20
|
const { dealer } = props;
|
|
21
21
|
const { vehicles } = dealer || { vehicles: [] };
|
|
22
22
|
const list = vehicles;
|
|
@@ -39,7 +39,7 @@ export class ProtoAutos {
|
|
|
39
39
|
return (h("main", { id: "app", class: "ds1-main" },
|
|
40
40
|
h("eswat2-io", null),
|
|
41
41
|
h(Header, null, "Auto Dealers"),
|
|
42
|
-
h(ToolBar,
|
|
42
|
+
h(ToolBar, null),
|
|
43
43
|
loading ? (h(Spinner, null)) : (h("hr", { class: tw('ml-0 mr-0 mt-4 mb-4', 'border-solid border-gray-300', 'border-r-0 border-b-0 border-l-0') })),
|
|
44
44
|
h(DealerView, { dealer: dealer }),
|
|
45
45
|
h(Footer, null)));
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
import { tw } from '../../utils';
|
|
3
|
-
const Spinner =
|
|
3
|
+
const Spinner = props => {
|
|
4
|
+
const hex = props.hex || 'currentColor';
|
|
4
5
|
const klass = props.class || '';
|
|
5
6
|
const label = props.label || 'loading...';
|
|
6
7
|
const size = props.size || 24;
|
|
7
8
|
return (h("svg", { class: tw(klass, 'animate-spin text-clrs-navy'), width: size, height: size, fill: "none", viewBox: "0 0 24 24", role: "img", "aria-label": "title" },
|
|
8
9
|
h("title", null, label),
|
|
9
10
|
h("g", null,
|
|
10
|
-
h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke:
|
|
11
|
-
h("path", { class: "opacity-75", fill:
|
|
11
|
+
h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke: hex, "stroke-width": "4" }),
|
|
12
|
+
h("path", { class: "opacity-75", fill: hex, d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })),
|
|
12
13
|
h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
|
13
14
|
};
|
|
14
15
|
export { Spinner };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
import { Refresh } from './refresh';
|
|
3
|
-
import { tw } from '../../utils';
|
|
4
|
-
const ToolBar =
|
|
5
|
-
const { actions, state } = props;
|
|
3
|
+
import { actions, state, tw } from '../../utils';
|
|
4
|
+
const ToolBar = _props => {
|
|
6
5
|
const { loading, pick, data } = state || {};
|
|
7
6
|
const { list } = data || { list: [] };
|
|
8
7
|
const max = list.length - 1;
|
|
@@ -10,7 +10,7 @@ const isExotic = (year) => {
|
|
|
10
10
|
const isModern = (year) => {
|
|
11
11
|
return year > 2010;
|
|
12
12
|
};
|
|
13
|
-
const VehicleCard =
|
|
13
|
+
const VehicleCard = props => {
|
|
14
14
|
const { vin, make, model, year, color } = props.value || {};
|
|
15
15
|
return (h("div", { class: tw('flex align-middle', 'rounded-lg p-4 mb-1', 'border border-solid', isExotic(year)
|
|
16
16
|
? 'bg-clrs-navy border-clrs-navy text-clrs-white'
|
|
@@ -19,7 +19,7 @@ const clearStore = (loading = false) => {
|
|
|
19
19
|
state.dealer = undefined;
|
|
20
20
|
};
|
|
21
21
|
// --------------------------------------------------------[ processing ]
|
|
22
|
-
const processData = next => {
|
|
22
|
+
const processData = (next) => {
|
|
23
23
|
if (next) {
|
|
24
24
|
const { pick } = state;
|
|
25
25
|
if (pick != undefined) {
|
|
@@ -36,7 +36,7 @@ const processData = next => {
|
|
|
36
36
|
state.loading = false;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
const processPick = next => {
|
|
39
|
+
const processPick = (next) => {
|
|
40
40
|
const { data } = state;
|
|
41
41
|
if (data && next !== undefined) {
|
|
42
42
|
state.pick = next;
|
|
@@ -116,7 +116,7 @@ const refresh = () => {
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
};
|
|
119
|
-
const updatePick = pick => {
|
|
119
|
+
const updatePick = (pick) => {
|
|
120
120
|
bag.store(PICK, pick);
|
|
121
121
|
processPick(pick);
|
|
122
122
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, g as getRenderingRef, f as forceUpdate, a as getElement } from './index-5df118f7.js';
|
|
2
2
|
import { i as icons, a as ikons } from './tags-d52f705a.js';
|
|
3
3
|
|
|
4
|
-
const Fingerprint =
|
|
4
|
+
const Fingerprint = props => {
|
|
5
5
|
const hex = props.hex || 'currentColor';
|
|
6
6
|
const klass = props.class;
|
|
7
7
|
const label = props.label || 'fingerprint';
|
|
@@ -705,7 +705,7 @@ const clearStore = (loading = false) => {
|
|
|
705
705
|
state.dealer = undefined;
|
|
706
706
|
};
|
|
707
707
|
// --------------------------------------------------------[ processing ]
|
|
708
|
-
const processData = next => {
|
|
708
|
+
const processData = (next) => {
|
|
709
709
|
if (next) {
|
|
710
710
|
const { pick } = state;
|
|
711
711
|
if (pick != undefined) {
|
|
@@ -722,7 +722,7 @@ const processData = next => {
|
|
|
722
722
|
state.loading = false;
|
|
723
723
|
}
|
|
724
724
|
};
|
|
725
|
-
const processPick = next => {
|
|
725
|
+
const processPick = (next) => {
|
|
726
726
|
const { data } = state;
|
|
727
727
|
if (data && next !== undefined) {
|
|
728
728
|
state.pick = next;
|
|
@@ -802,7 +802,7 @@ const refresh = () => {
|
|
|
802
802
|
});
|
|
803
803
|
});
|
|
804
804
|
};
|
|
805
|
-
const updatePick = pick => {
|
|
805
|
+
const updatePick = (pick) => {
|
|
806
806
|
bag.store(PICK, pick);
|
|
807
807
|
processPick(pick);
|
|
808
808
|
};
|
|
@@ -816,7 +816,7 @@ const tw = (...classes) => {
|
|
|
816
816
|
return classes.filter(Boolean).join(' ');
|
|
817
817
|
};
|
|
818
818
|
|
|
819
|
-
const DealerCard =
|
|
819
|
+
const DealerCard = props => {
|
|
820
820
|
const { value } = props;
|
|
821
821
|
const { dealerId, name, vehicles } = value || {};
|
|
822
822
|
const count = vehicles ? vehicles.length : 0;
|
|
@@ -824,11 +824,11 @@ const DealerCard = (props) => {
|
|
|
824
824
|
};
|
|
825
825
|
|
|
826
826
|
const TW_VERSION = "2.2.19";
|
|
827
|
-
const TwLabel =
|
|
827
|
+
const TwLabel = props => {
|
|
828
828
|
const { version } = props;
|
|
829
829
|
return (h("label", { class: "ml-auto align-top text-xs italic text-clrs-slate4" }, "Tailwind ", version));
|
|
830
830
|
};
|
|
831
|
-
const Footer =
|
|
831
|
+
const Footer = _props => {
|
|
832
832
|
return (h("div", { class: "flex flex-row mt-2 mb-4 mr-2" }, h(TwLabel, { version: TW_VERSION })));
|
|
833
833
|
};
|
|
834
834
|
|
|
@@ -836,14 +836,15 @@ const Header = (_props, children) => {
|
|
|
836
836
|
return (h("h1", { class: tw("uppercase text-center text-clrs-red", "mr-0 ml-0 mt-11 mb-11", "font-thin text-6xl") }, children));
|
|
837
837
|
};
|
|
838
838
|
|
|
839
|
-
const Spinner =
|
|
839
|
+
const Spinner = props => {
|
|
840
|
+
const hex = props.hex || "currentColor";
|
|
840
841
|
const klass = props.class || "";
|
|
841
842
|
const label = props.label || "loading...";
|
|
842
843
|
const size = props.size || 24;
|
|
843
|
-
return (h("svg", { class: tw(klass, "animate-spin text-clrs-navy"), width: size, height: size, fill: "none", viewBox: "0 0 24 24", role: "img", "aria-label": "title" }, h("title", null, label), h("g", null, h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke:
|
|
844
|
+
return (h("svg", { class: tw(klass, "animate-spin text-clrs-navy"), width: size, height: size, fill: "none", viewBox: "0 0 24 24", role: "img", "aria-label": "title" }, h("title", null, label), h("g", null, h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke: hex, "stroke-width": "4" }), h("path", { class: "opacity-75", fill: hex, d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })), h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
|
844
845
|
};
|
|
845
846
|
|
|
846
|
-
const Refresh =
|
|
847
|
+
const Refresh = props => {
|
|
847
848
|
const hex = props.hex || 'currentColor';
|
|
848
849
|
const klass = props.class;
|
|
849
850
|
const label = props.label || 'refresh';
|
|
@@ -855,8 +856,7 @@ const Refresh = (props) => {
|
|
|
855
856
|
h("path", { d: "M0 0h24v24H0z", fill: "none" })));
|
|
856
857
|
};
|
|
857
858
|
|
|
858
|
-
const ToolBar =
|
|
859
|
-
const { actions, state } = props;
|
|
859
|
+
const ToolBar = _props => {
|
|
860
860
|
const { loading, pick, data } = state || {};
|
|
861
861
|
const { list } = data || { list: [] };
|
|
862
862
|
const max = list.length - 1;
|
|
@@ -881,7 +881,7 @@ const isExotic = (year) => {
|
|
|
881
881
|
const isModern = (year) => {
|
|
882
882
|
return year > 2010;
|
|
883
883
|
};
|
|
884
|
-
const VehicleCard =
|
|
884
|
+
const VehicleCard = props => {
|
|
885
885
|
const { vin, make, model, year, color } = props.value || {};
|
|
886
886
|
return (h("div", { class: tw("flex align-middle", "rounded-lg p-4 mb-1", "border border-solid", isExotic(year)
|
|
887
887
|
? "bg-clrs-navy border-clrs-navy text-clrs-white"
|
|
@@ -896,17 +896,17 @@ const VehicleCard = (props) => {
|
|
|
896
896
|
: "")), h("proto-ikon-loader", { class: "ikon ml-auto self-center", name: make, label: make.toLowerCase() })));
|
|
897
897
|
};
|
|
898
898
|
|
|
899
|
-
const protoAutosCss = ".ikon{height:96px;width:96px}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.flex
|
|
899
|
+
const protoAutosCss = ".ikon{height:96px;width:96px}*,:after,:before{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.ml-auto{margin-left:auto}.flex{display:flex}.inline-flex{display:inline-flex}.h-8{height:2rem}.w-8{width:2rem}.justify-end{justify-content:flex-end}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-tr-none{border-top-right-radius:0}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-none{border-top-left-radius:0}.rounded-bl-none{border-bottom-left-radius:0}.rounded-tr-md{border-top-right-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-gray-600{--tw-border-opacity:1;border-color:rgba(75,85,99,var(--tw-border-opacity))}.bg-clrs-red{background-color:var(--clrs-red,#ff4136)}.bg-clrs-yellow{background-color:var(--clrs-yellow,#ffdc00)}.font-bold{font-weight:700}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-clrs-navy{color:var(--clrs-navy,#001f3f)}.hover\\:text-clrs-red:hover{color:var(--clrs-red,#ff4136)}.mt-2{margin-top:.5rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.flex-row{flex-direction:row}.align-top{vertical-align:top}.text-xs{font-size:.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4,#4e5964)}.mr-0{margin-right:0}.ml-0{margin-left:0}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.text-center{text-align:center}.text-6xl{font-size:3.75rem;line-height:1}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.text-clrs-red{color:var(--clrs-red,#ff4136)}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.self-center{align-self:center}.rounded-lg{border-radius:.5rem}.border-blue-400{--tw-border-opacity:1;border-color:rgba(96,165,250,var(--tw-border-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgba(191,219,254,var(--tw-bg-opacity))}.p-4{padding:1rem}.text-right{text-align:right}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.mb-1{margin-bottom:.25rem}.mr-1\\.5{margin-right:.375rem}.mr-1{margin-right:.25rem}.mb-2{margin-bottom:.5rem}.flex-col{flex-direction:column}.border-clrs-navy{border-color:var(--clrs-navy,#001f3f)}.border-yellow-600{--tw-border-opacity:1;border-color:rgba(217,119,6,var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgba(5,150,105,var(--tw-border-opacity))}.bg-clrs-navy{background-color:var(--clrs-navy,#001f3f)}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgba(252,211,77,var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity:1;background-color:rgba(167,243,208,var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgba(209,213,219,var(--tw-bg-opacity))}.align-middle{vertical-align:middle}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-clrs-white{color:var(--clrs-white,#fff)}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.opacity-25{opacity:.25}.opacity-75{opacity:.75}@media (min-width:500px){.ikon{height:144px;width:144px}}@media (min-width:700px){.ikon{height:192px;width:192px}}@media (min-width:768px){.md\\:w-auto{width:auto}}";
|
|
900
900
|
|
|
901
901
|
// ------------------------------------------------------ [ layout ]
|
|
902
|
-
const VehicleList =
|
|
902
|
+
const VehicleList = props => {
|
|
903
903
|
const { list } = props;
|
|
904
904
|
const count = list.length;
|
|
905
905
|
if (count === 0)
|
|
906
906
|
return "";
|
|
907
907
|
return (h("div", { class: "flex flex-col" }, count ? list.map(vehicle => h(VehicleCard, { value: vehicle })) : ""));
|
|
908
908
|
};
|
|
909
|
-
const DealerView =
|
|
909
|
+
const DealerView = props => {
|
|
910
910
|
const { dealer } = props;
|
|
911
911
|
const { vehicles } = dealer || { vehicles: [] };
|
|
912
912
|
const list = vehicles;
|
|
@@ -924,7 +924,7 @@ let ProtoAutos = class {
|
|
|
924
924
|
}
|
|
925
925
|
render() {
|
|
926
926
|
const { loading, dealer } = state;
|
|
927
|
-
return (h("main", { id: "app", class: "ds1-main" }, h("eswat2-io", null), h(Header, null, "Auto Dealers"), h(ToolBar,
|
|
927
|
+
return (h("main", { id: "app", class: "ds1-main" }, h("eswat2-io", null), h(Header, null, "Auto Dealers"), h(ToolBar, null), loading ? (h(Spinner, null)) : (h("hr", { class: tw("ml-0 mr-0 mt-4 mb-4", "border-solid border-gray-300", "border-r-0 border-b-0 border-l-0") })), h(DealerView, { dealer: dealer }), h(Footer, null)));
|
|
928
928
|
}
|
|
929
929
|
};
|
|
930
930
|
ProtoAutos.style = protoAutosCss + '*,:after,:before{--tw-border-opacity:1;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;border-color:rgba(229,231,235,var(--tw-border-opacity))}.ds1-main{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--clrs-navy,#001f3f);display:flex;flex-direction:column;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:1.5rem}.ml-0{margin-left:0}.mr-0{margin-right:0}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.flex{display:flex}.flex-col{flex-direction:column}.border-r-0{border-right-width:0}.border-b-0{border-bottom-width:0}.border-l-0{border-left-width:0}.border-solid{border-style:solid}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as r,r as e,g as t,f as o,a as n}from"./p-f6a546ae.js";import{i,a}from"./p-51685706.js";const l=e=>{const t=e.hex||"currentColor",o=e.size||24;return r("svg",{class:e.class,width:o,height:o,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"fingerprint"),r("g",{fill:t},r("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))};let s=class{constructor(r){e(this,r)}render(){return r("a",{class:"absolute top-0 right-0 mt-6 mr-6 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":"eswat2",title:"eswat2"},r(l,{label:"eswat2"}))}};s.style="*,:after,:before{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}.absolute{position:absolute}.top-0{top:0}.right-0{right:0}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.text-clrs-gray{color:var(--clrs-gray,#aaa)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy,#001f3f)}";const c="proto-autos",d=r=>{const e=localStorage.getItem(r?`${c}-${r}`:c);return e?JSON.parse(e):void 0},u=(r,e)=>{const t=r?`${c}-${r}`:c,o=JSON.stringify(e);localStorage.setItem(t,o)},b=r=>!("isConnected"in r)||r.isConnected,f=(()=>{let r;return(...e)=>{r&&clearTimeout(r),r=setTimeout((()=>{r=0,(r=>{for(let e of r.keys())r.set(e,r.get(e).filter(b))})(...e)}),2e3)}})();var m=function(){function r(r,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(e,t,o){return t&&r(e.prototype,t),o&&r(e,o),e}}();function h(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var g=function(){function r(){var e=this;h(this,r),this.interceptors=[],this.fetch=function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.interceptorWrapper.apply(e,[fetch].concat(t))}}return m(r,[{key:"addInterceptors",value:function(r){var e=this,t=[];return Array.isArray(r)?r.map((function(r){return t.push(e.interceptors.length),e.interceptors.push(r)})):r instanceof Object&&(t.push(this.interceptors.length),this.interceptors.push(r)),this.updateInterceptors(),function(){return e.removeInterceptors(t)}}},{key:"removeInterceptors",value:function(r){var e=this;Array.isArray(r)&&(r.map((function(r){return e.interceptors.splice(r,1)})),this.updateInterceptors())}},{key:"updateInterceptors",value:function(){this.reversedInterceptors=this.interceptors.reduce((function(r,e){return[e].concat(r)}),[])}},{key:"clearInterceptors",value:function(){this.interceptors=[],this.updateInterceptors()}},{key:"interceptorWrapper",value:function(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];var n=Promise.resolve(t);return this.reversedInterceptors.forEach((function(r){var e=r.request,o=r.requestError;(e||o)&&(n=n.then((function(){return e.apply(void 0,t)}),o))})),n=n.then((function(){return r.apply(void 0,t)})),this.reversedInterceptors.forEach((function(r){var e=r.response,t=r.responseError;(e||t)&&(n=n.then(e,t))})),n}}]),r}(),p=function(){function r(e){var t=e.url,o=e.interceptors,n=e.headers,i=e.onStart,a=e.onEnd,l=e.omitEmptyVariables,s=void 0!==l&&l,c=e.requestOptions,d=void 0===c?{}:c;h(this,r);var u=function(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?r:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return u.requestObject=Object.assign({},{method:"POST",headers:Object.assign({},{Accept:"application/json","Content-Type":"application/json"},n),credentials:"same-origin"},d),u.url=t,u.omitEmptyVariables=s,u.requestQueueLength=0,u.EnumMap={},u.callbacks={onStart:i,onEnd:a},u.addInterceptors(o),u}return function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}(r,g),m(r,[{key:"query",value:function(r){var e,t=this,o=r.operationName,n=r.query,i=r.variables,a=r.opts,l=void 0===a?{}:a,s=r.requestOptions,c=Object.assign({},this.requestObject,void 0===s?{}:s);return e=this.omitEmptyVariables||l.omitEmptyVariables?this.doOmitEmptyVariables(i):i,c.body=JSON.stringify({operationName:o,query:n,variables:e}),this.onStart(),this.fetch(this.url,c).then((function(r){return r.ok?r.json():{errors:[{message:r.statusText,stack:r}]}})).then((function(r){var e=r.data,o=r.errors;return new Promise((function(r,n){return t.onEnd(),e?Object.keys(e).every((function(r){return!e[r]}))?n(o):r({data:e,errors:o}):n(o||[{}])}))}))}},{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(r){this.url=r}},{key:"getEnumTypes",value:function(r){var e=this,t={},o=r.filter((function(r){return!e.EnumMap[r]||(t[r]=e.EnumMap[r],!1)}));if(!o.length)return new Promise((function(r){r({data:t})}));var n="\n query {\n "+o.map((function(r){return r+': __type(name: "'+r+'") {\n ...EnumFragment\n }'})).join("\n")+"\n }\n \n fragment EnumFragment on __Type {\n kind\n description\n enumValues {\n name\n description\n }\n }",i=Object.assign({},this.requestObject);return i.body=JSON.stringify({query:n}),this.onStart(),this.fetch(this.url,i).then((function(r){return r.ok?r.json():{errors:[{message:r.statusText,stack:r}]}})).then((function(r){var o=r.data,n=r.errors;return new Promise((function(r,i){if(e.onEnd(),!o)return i(n||[{message:"Do not get any data."}]);if(Object.keys(o).every((function(r){return!o[r]}))&&n&&n.length)return i(n);var a=Object.assign(t,o);return Object.keys(o).map((function(r){return e.EnumMap[r]=o[r],r})),r({data:a,errors:n})}))}))}},{key:"onStart",value:function(){this.requestQueueLength++,this.requestQueueLength>1||!this.callbacks.onStart||this.callbacks.onStart(this.requestQueueLength)}},{key:"onEnd",value:function(){this.requestQueueLength--,!this.requestQueueLength&&this.callbacks.onEnd&&this.callbacks.onEnd(this.requestQueueLength)}},{key:"doOmitEmptyVariables",value:function(r){var e=this,t={};return Object.keys(r).map((function(o){var n=r[o];return"string"==typeof n&&0===n.length||null==n||(t[o]=n instanceof Object?e.doOmitEmptyVariables(n):n),o})),t}}]),r}();const v={loading:!1,error:void 0,data:void 0,pick:0,dealer:void 0},{state:w}=(()=>{const r=((r,e=((r,e)=>r!==e))=>{let t=new Map(Object.entries(null!=r?r:{}));const o={dispose:[],get:[],set:[],reset:[]},n=()=>{t=new Map(Object.entries(null!=r?r:{})),o.reset.forEach((r=>r()))},i=r=>(o.get.forEach((e=>e(r))),t.get(r)),a=(r,n)=>{const i=t.get(r);e(n,i,r)&&(t.set(r,n),o.set.forEach((e=>e(r,n,i))))},l="undefined"==typeof Proxy?{}:new Proxy(r,{get:(r,e)=>i(e),ownKeys:()=>Array.from(t.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(r,e)=>t.has(e),set:(r,e,t)=>(a(e,t),!0)}),s=(r,e)=>(o[r].push(e),()=>{((r,e)=>{const t=r.indexOf(e);t>=0&&(r[t]=r[r.length-1],r.length--)})(o[r],e)});return{state:l,get:i,set:a,on:s,onChange:(e,t)=>{const o=s("set",((r,o)=>{r===e&&t(o)})),n=s("reset",(()=>t(r[e])));return()=>{o(),n()}},use:(...r)=>{const e=r.reduce(((r,e)=>(e.set&&r.push(s("set",e.set)),e.get&&r.push(s("get",e.get)),e.reset&&r.push(s("reset",e.reset)),e.dispose&&r.push(s("dispose",e.dispose)),r)),[]);return()=>e.forEach((r=>r()))},dispose:()=>{o.dispose.forEach((r=>r())),n()},reset:n,forceUpdate:r=>{const e=t.get(r);o.set.forEach((t=>t(r,e,e)))}}})(v,void 0);return r.use((()=>{if("function"!=typeof t)return{};const r=new Map;return{dispose:()=>r.clear(),get:e=>{const o=t();o&&((r,e,t)=>{const o=r.get(e);o?o.includes(t)||o.push(t):r.set(e,[t])})(r,e,o)},set:e=>{const t=r.get(e);t&&r.set(e,t.filter(o)),f(r)},reset:()=>{r.forEach((r=>r.forEach(o))),f(r)}}})()),r})(),y=(r=!1)=>{w.loading=r,w.error=void 0,w.pick=0,w.data=void 0,w.dealer=void 0},x=r=>{if(r){const{pick:e}=w;w.dealer=null!=e?r.list[e]:void 0,w.data=r,w.loading=!1}else w.data=void 0,w.loading=!1},C=r=>{const{data:e}=w;e&&void 0!==r?(w.pick=r,w.dealer=e.list[r]):(w.pick=0,w.dealer=void 0)};var k=new p({url:"https://gt-forza.vercel.app/graphql"});const j=()=>{y(!0),u("pick",0),k.query({operationName:"Uuid",query:"\n query Uuid($count: Int!) {\n uuid(count: $count)\n }\n",variables:{count:1}}).then((r=>{const e=r.data.uuid[0];k.query({operationName:"Solution",query:"\n query Solution($id: String!) {\n solution(id: $id) {\n id\n data {\n dealers {\n dealerId\n name\n vehicles {\n vin\n year\n make\n model\n color\n }\n }\n }\n }\n }\n",variables:{id:e}}).then((r=>{const t=JSON.parse(JSON.stringify(r.data.solution.data.dealers)),o={id:e,list:t};u("data",o),x(o)}))}))},O={initApp:()=>{y();const r=d("data"),e=d("pick");r?(x(r),e&&C(e)):j()},refresh:j,updatePick:r=>{u("pick",r),C(r)}},S=(...r)=>r.filter(Boolean).join(" "),z=e=>{const{value:t}=e,{dealerId:o,name:n,vehicles:i}=t||{},a=i?i.length:0;return r("div",{class:S("flex flex-wrap content-center","rounded-lg p-4 mb-4 bg-blue-200","border border-solid border-blue-400")},r("label",{class:"text-xl font-bold"},n?`${n} `:"",r("sup",null,a||"")),r("label",{class:"text-sm text-right ml-auto self-center"},o||""))},A=e=>{const{version:t}=e;return r("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ",t)},M=()=>r("div",{class:"flex flex-row mt-2 mb-4 mr-2"},r(A,{version:"2.2.19"})),$=(e,t)=>r("h1",{class:S("uppercase text-center text-clrs-red","mr-0 ml-0 mt-11 mb-11","font-thin text-6xl")},t),E=e=>{const t=e.label||"loading...",o=e.size||24;return r("svg",{class:S(e.class||"","animate-spin text-clrs-navy"),width:o,height:o,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,t),r("g",null,r("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),r("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},N=e=>{const t=e.hex||"currentColor",o=e.size||24;return r("svg",{class:e.class,width:o,height:o,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"refresh"),r("g",{fill:t},r("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99\n 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65\n 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35\n 2.35z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},I=e=>{const{actions:t,state:o}=e,{loading:n,pick:i,data:a}=o||{},{list:l}=a||{list:[]},s=l.length-1;return n?"":r("div",{class:"flex"},r("div",{class:"refresh md:w-auto hover:text-clrs-red",onClick:()=>t.refresh()},r(N,null)),r("div",{class:S("inline-flex justify-end ml-auto","border border-solid border-gray-600","rounded-md")},l.map(((e,o)=>r("button",{class:S("border-none w-8 h-8 font-bold",0==o?"rounded-tl-md rounded-bl-md rounded-tr-none rounded-br-none":o==s?"rounded-tl-none rounded-bl-none rounded-tr-md rounded-br-md":"rounded-none",i==o?"text-white bg-clrs-red":"text-clrs-navy bg-clrs-yellow"),onClick:()=>t.updatePick(o),title:`${e.name} (${e.vehicles.length})`},o+1)))))},q=/^\#[0-9]*/,P=r=>null!=r.match(q),T=r=>2554===r,U=r=>r>2010,_=e=>{const{vin:t,make:o,model:n,year:i,color:a}=e.value||{};return r("div",{class:S("flex align-middle","rounded-lg p-4 mb-1","border border-solid",T(i)?"bg-clrs-navy border-clrs-navy text-clrs-white":P(n)?"bg-yellow-300 border-yellow-600":U(i)?"bg-green-200 border-green-600":"bg-gray-300 border-gray-600")},r("div",{class:"flex flex-col mr-1.5"},r("label",{class:"text-xs mb-2"},t||""),r("label",{class:"text-lg font-bold"},o||""),r("label",{class:"text-sm italic mb-2"},n||""),r("label",null,i||"",", ",a||""),r("label",null,T(i)?"- exotic... [ Sierra 117 ]":P(n)?"- track only...":"")),r("proto-ikon-loader",{class:"ikon ml-auto self-center",name:o,label:o.toLowerCase()}))},B=e=>{const{list:t}=e,o=t.length;return 0===o?"":r("div",{class:"flex flex-col"},o?t.map((e=>r(_,{value:e}))):"")},J=e=>{const{dealer:t}=e,{vehicles:o}=t||{vehicles:[]},n=o;return t?r("div",{class:"flex flex-col"},r(z,{value:t}),r(B,{list:n})):""};let H=class{constructor(r){e(this,r),this.tag="proto-autos"}componentDidLoad(){O.initApp()}render(){const{loading:e,dealer:t}=w;return r("main",{id:"app",class:"ds1-main"},r("eswat2-io",null),r($,null,"Auto Dealers"),r(I,{actions:O,state:w}),e?r(E,null):r("hr",{class:S("ml-0 mr-0 mt-4 mb-4","border-solid border-gray-300","border-r-0 border-b-0 border-l-0")}),r(J,{dealer:t}),r(M,null))}};H.style=".ikon{height:96px;width:96px}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.flex{display:flex}.flex-row{flex-direction:row}.align-top{vertical-align:top}.text-xs{font-size:.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4,#4e5964)}.mr-0{margin-right:0}.ml-0{margin-left:0}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.text-center{text-align:center}.text-6xl{font-size:3.75rem;line-height:1}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.text-clrs-red{color:var(--clrs-red,#ff4136)}*,:after,:before{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.self-center{align-self:center}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-blue-400{--tw-border-opacity:1;border-color:rgba(96,165,250,var(--tw-border-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgba(191,219,254,var(--tw-bg-opacity))}.p-4{padding:1rem}.text-right{text-align:right}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.text-clrs-navy{color:var(--clrs-navy,#001f3f)}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.mb-1{margin-bottom:.25rem}.mr-1\\.5{margin-right:.375rem}.mr-1{margin-right:.25rem}.mb-2{margin-bottom:.5rem}.flex-col{flex-direction:column}.border-clrs-navy{border-color:var(--clrs-navy,#001f3f)}.border-yellow-600{--tw-border-opacity:1;border-color:rgba(217,119,6,var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgba(5,150,105,var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:rgba(75,85,99,var(--tw-border-opacity))}.bg-clrs-navy{background-color:var(--clrs-navy,#001f3f)}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgba(252,211,77,var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity:1;background-color:rgba(167,243,208,var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgba(209,213,219,var(--tw-bg-opacity))}.align-middle{vertical-align:middle}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-clrs-white{color:var(--clrs-white,#fff)}.inline-flex{display:inline-flex}.h-8{height:2rem}.w-8{width:2rem}.justify-end{justify-content:flex-end}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-tr-none{border-top-right-radius:0}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-none{border-top-left-radius:0}.rounded-bl-none{border-bottom-left-radius:0}.rounded-tr-md{border-top-right-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border-none{border-style:none}.bg-clrs-red{background-color:var(--clrs-red,#ff4136)}.bg-clrs-yellow{background-color:var(--clrs-yellow,#ffdc00)}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.hover\\:text-clrs-red:hover{color:var(--clrs-red,#ff4136)}@media (min-width:500px){.ikon{height:144px;width:144px}}@media (min-width:700px){.ikon{height:192px;width:192px}}@media (min-width:768px){.md\\:w-auto{width:auto}}*,:after,:before{--tw-border-opacity:1;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;border-color:rgba(229,231,235,var(--tw-border-opacity))}.ds1-main{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--clrs-navy,#001f3f);display:flex;flex-direction:column;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:1.5rem}.ml-0{margin-left:0}.mr-0{margin-right:0}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.flex{display:flex}.flex-col{flex-direction:column}.border-r-0{border-right-width:0}.border-b-0{border-bottom-width:0}.border-l-0{border-left-width:0}.border-solid{border-style:solid}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}";const D=window.hasOwnProperty("protoIkonFallback")?window.protoIkonFallback:"slug-icon";let F=class{constructor(r){e(this,r),this.hex="currentColor",this.name="slug",this.selected=!1,this.size=void 0,this.label=void 0}render(){const{name:e,hex:t,selected:o,size:n,label:l}=this,s=l||e;this.el.style.setProperty("--proto-ikon-size",n?`${n}px`:void 0);const c=(r=>{const e=r.toLowerCase().split(" ").join("-"),t=`${e}-icon`,o=`${e}-ikon`;return i.includes(t)?t:a.includes(o)?o:D})(e);return r("div",{class:"ikonBox"},r(c,{hex:t,selected:o,size:n,label:s}))}get el(){return n(this)}};F.style=".ikonBox{height:var(--proto-ikon-size);margin-right:auto;overflow:clip;width:var(--proto-ikon-size)}";export{s as eswat2_io,H as proto_autos,F as proto_ikon_loader}
|
|
1
|
+
import{h as r,r as e,g as t,f as o,a as n}from"./p-f6a546ae.js";import{i,a}from"./p-51685706.js";const l=e=>{const t=e.hex||"currentColor",o=e.size||24;return r("svg",{class:e.class,width:o,height:o,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"fingerprint"),r("g",{fill:t},r("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))};let s=class{constructor(r){e(this,r)}render(){return r("a",{class:"absolute top-0 right-0 mt-6 mr-6 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":"eswat2",title:"eswat2"},r(l,{label:"eswat2"}))}};s.style="*,:after,:before{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}.absolute{position:absolute}.top-0{top:0}.right-0{right:0}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.text-clrs-gray{color:var(--clrs-gray,#aaa)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy,#001f3f)}";const c="proto-autos",d=r=>{const e=localStorage.getItem(r?`${c}-${r}`:c);return e?JSON.parse(e):void 0},u=(r,e)=>{const t=r?`${c}-${r}`:c,o=JSON.stringify(e);localStorage.setItem(t,o)},b=r=>!("isConnected"in r)||r.isConnected,f=(()=>{let r;return(...e)=>{r&&clearTimeout(r),r=setTimeout((()=>{r=0,(r=>{for(let e of r.keys())r.set(e,r.get(e).filter(b))})(...e)}),2e3)}})();var m=function(){function r(r,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(e,t,o){return t&&r(e.prototype,t),o&&r(e,o),e}}();function h(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var g=function(){function r(){var e=this;h(this,r),this.interceptors=[],this.fetch=function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return e.interceptorWrapper.apply(e,[fetch].concat(t))}}return m(r,[{key:"addInterceptors",value:function(r){var e=this,t=[];return Array.isArray(r)?r.map((function(r){return t.push(e.interceptors.length),e.interceptors.push(r)})):r instanceof Object&&(t.push(this.interceptors.length),this.interceptors.push(r)),this.updateInterceptors(),function(){return e.removeInterceptors(t)}}},{key:"removeInterceptors",value:function(r){var e=this;Array.isArray(r)&&(r.map((function(r){return e.interceptors.splice(r,1)})),this.updateInterceptors())}},{key:"updateInterceptors",value:function(){this.reversedInterceptors=this.interceptors.reduce((function(r,e){return[e].concat(r)}),[])}},{key:"clearInterceptors",value:function(){this.interceptors=[],this.updateInterceptors()}},{key:"interceptorWrapper",value:function(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];var n=Promise.resolve(t);return this.reversedInterceptors.forEach((function(r){var e=r.request,o=r.requestError;(e||o)&&(n=n.then((function(){return e.apply(void 0,t)}),o))})),n=n.then((function(){return r.apply(void 0,t)})),this.reversedInterceptors.forEach((function(r){var e=r.response,t=r.responseError;(e||t)&&(n=n.then(e,t))})),n}}]),r}(),p=function(){function r(e){var t=e.url,o=e.interceptors,n=e.headers,i=e.onStart,a=e.onEnd,l=e.omitEmptyVariables,s=void 0!==l&&l,c=e.requestOptions,d=void 0===c?{}:c;h(this,r);var u=function(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?r:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return u.requestObject=Object.assign({},{method:"POST",headers:Object.assign({},{Accept:"application/json","Content-Type":"application/json"},n),credentials:"same-origin"},d),u.url=t,u.omitEmptyVariables=s,u.requestQueueLength=0,u.EnumMap={},u.callbacks={onStart:i,onEnd:a},u.addInterceptors(o),u}return function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}(r,g),m(r,[{key:"query",value:function(r){var e,t=this,o=r.operationName,n=r.query,i=r.variables,a=r.opts,l=void 0===a?{}:a,s=r.requestOptions,c=Object.assign({},this.requestObject,void 0===s?{}:s);return e=this.omitEmptyVariables||l.omitEmptyVariables?this.doOmitEmptyVariables(i):i,c.body=JSON.stringify({operationName:o,query:n,variables:e}),this.onStart(),this.fetch(this.url,c).then((function(r){return r.ok?r.json():{errors:[{message:r.statusText,stack:r}]}})).then((function(r){var e=r.data,o=r.errors;return new Promise((function(r,n){return t.onEnd(),e?Object.keys(e).every((function(r){return!e[r]}))?n(o):r({data:e,errors:o}):n(o||[{}])}))}))}},{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(r){this.url=r}},{key:"getEnumTypes",value:function(r){var e=this,t={},o=r.filter((function(r){return!e.EnumMap[r]||(t[r]=e.EnumMap[r],!1)}));if(!o.length)return new Promise((function(r){r({data:t})}));var n="\n query {\n "+o.map((function(r){return r+': __type(name: "'+r+'") {\n ...EnumFragment\n }'})).join("\n")+"\n }\n \n fragment EnumFragment on __Type {\n kind\n description\n enumValues {\n name\n description\n }\n }",i=Object.assign({},this.requestObject);return i.body=JSON.stringify({query:n}),this.onStart(),this.fetch(this.url,i).then((function(r){return r.ok?r.json():{errors:[{message:r.statusText,stack:r}]}})).then((function(r){var o=r.data,n=r.errors;return new Promise((function(r,i){if(e.onEnd(),!o)return i(n||[{message:"Do not get any data."}]);if(Object.keys(o).every((function(r){return!o[r]}))&&n&&n.length)return i(n);var a=Object.assign(t,o);return Object.keys(o).map((function(r){return e.EnumMap[r]=o[r],r})),r({data:a,errors:n})}))}))}},{key:"onStart",value:function(){this.requestQueueLength++,this.requestQueueLength>1||!this.callbacks.onStart||this.callbacks.onStart(this.requestQueueLength)}},{key:"onEnd",value:function(){this.requestQueueLength--,!this.requestQueueLength&&this.callbacks.onEnd&&this.callbacks.onEnd(this.requestQueueLength)}},{key:"doOmitEmptyVariables",value:function(r){var e=this,t={};return Object.keys(r).map((function(o){var n=r[o];return"string"==typeof n&&0===n.length||null==n||(t[o]=n instanceof Object?e.doOmitEmptyVariables(n):n),o})),t}}]),r}();const v={loading:!1,error:void 0,data:void 0,pick:0,dealer:void 0},{state:w}=(()=>{const r=((r,e=((r,e)=>r!==e))=>{let t=new Map(Object.entries(null!=r?r:{}));const o={dispose:[],get:[],set:[],reset:[]},n=()=>{t=new Map(Object.entries(null!=r?r:{})),o.reset.forEach((r=>r()))},i=r=>(o.get.forEach((e=>e(r))),t.get(r)),a=(r,n)=>{const i=t.get(r);e(n,i,r)&&(t.set(r,n),o.set.forEach((e=>e(r,n,i))))},l="undefined"==typeof Proxy?{}:new Proxy(r,{get:(r,e)=>i(e),ownKeys:()=>Array.from(t.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(r,e)=>t.has(e),set:(r,e,t)=>(a(e,t),!0)}),s=(r,e)=>(o[r].push(e),()=>{((r,e)=>{const t=r.indexOf(e);t>=0&&(r[t]=r[r.length-1],r.length--)})(o[r],e)});return{state:l,get:i,set:a,on:s,onChange:(e,t)=>{const o=s("set",((r,o)=>{r===e&&t(o)})),n=s("reset",(()=>t(r[e])));return()=>{o(),n()}},use:(...r)=>{const e=r.reduce(((r,e)=>(e.set&&r.push(s("set",e.set)),e.get&&r.push(s("get",e.get)),e.reset&&r.push(s("reset",e.reset)),e.dispose&&r.push(s("dispose",e.dispose)),r)),[]);return()=>e.forEach((r=>r()))},dispose:()=>{o.dispose.forEach((r=>r())),n()},reset:n,forceUpdate:r=>{const e=t.get(r);o.set.forEach((t=>t(r,e,e)))}}})(v,void 0);return r.use((()=>{if("function"!=typeof t)return{};const r=new Map;return{dispose:()=>r.clear(),get:e=>{const o=t();o&&((r,e,t)=>{const o=r.get(e);o?o.includes(t)||o.push(t):r.set(e,[t])})(r,e,o)},set:e=>{const t=r.get(e);t&&r.set(e,t.filter(o)),f(r)},reset:()=>{r.forEach((r=>r.forEach(o))),f(r)}}})()),r})(),y=(r=!1)=>{w.loading=r,w.error=void 0,w.pick=0,w.data=void 0,w.dealer=void 0},x=r=>{if(r){const{pick:e}=w;w.dealer=null!=e?r.list[e]:void 0,w.data=r,w.loading=!1}else w.data=void 0,w.loading=!1},C=r=>{const{data:e}=w;e&&void 0!==r?(w.pick=r,w.dealer=e.list[r]):(w.pick=0,w.dealer=void 0)};var k=new p({url:"https://gt-forza.vercel.app/graphql"});const j=()=>{y(!0),u("pick",0),k.query({operationName:"Uuid",query:"\n query Uuid($count: Int!) {\n uuid(count: $count)\n }\n",variables:{count:1}}).then((r=>{const e=r.data.uuid[0];k.query({operationName:"Solution",query:"\n query Solution($id: String!) {\n solution(id: $id) {\n id\n data {\n dealers {\n dealerId\n name\n vehicles {\n vin\n year\n make\n model\n color\n }\n }\n }\n }\n }\n",variables:{id:e}}).then((r=>{const t=JSON.parse(JSON.stringify(r.data.solution.data.dealers)),o={id:e,list:t};u("data",o),x(o)}))}))},O=()=>{y();const r=d("data"),e=d("pick");r?(x(r),e&&C(e)):j()},S=j,z=r=>{u("pick",r),C(r)},A=(...r)=>r.filter(Boolean).join(" "),M=e=>{const{value:t}=e,{dealerId:o,name:n,vehicles:i}=t||{},a=i?i.length:0;return r("div",{class:A("flex flex-wrap content-center","rounded-lg p-4 mb-4 bg-blue-200","border border-solid border-blue-400")},r("label",{class:"text-xl font-bold"},n?`${n} `:"",r("sup",null,a||"")),r("label",{class:"text-sm text-right ml-auto self-center"},o||""))},$=e=>{const{version:t}=e;return r("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ",t)},E=()=>r("div",{class:"flex flex-row mt-2 mb-4 mr-2"},r($,{version:"2.2.19"})),N=(e,t)=>r("h1",{class:A("uppercase text-center text-clrs-red","mr-0 ml-0 mt-11 mb-11","font-thin text-6xl")},t),I=e=>{const t=e.hex||"currentColor",o=e.label||"loading...",n=e.size||24;return r("svg",{class:A(e.class||"","animate-spin text-clrs-navy"),width:n,height:n,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,o),r("g",null,r("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:t,"stroke-width":"4"}),r("path",{class:"opacity-75",fill:t,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},q=e=>{const t=e.hex||"currentColor",o=e.size||24;return r("svg",{class:e.class,width:o,height:o,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"refresh"),r("g",{fill:t},r("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99\n 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65\n 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35\n 2.35z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},T=()=>{const{loading:e,pick:t,data:o}=w||{},{list:n}=o||{list:[]},i=n.length-1;return e?"":r("div",{class:"flex"},r("div",{class:"refresh md:w-auto hover:text-clrs-red",onClick:()=>S()},r(q,null)),r("div",{class:A("inline-flex justify-end ml-auto","border border-solid border-gray-600","rounded-md")},n.map(((e,o)=>r("button",{class:A("border-none w-8 h-8 font-bold",0==o?"rounded-tl-md rounded-bl-md rounded-tr-none rounded-br-none":o==i?"rounded-tl-none rounded-bl-none rounded-tr-md rounded-br-md":"rounded-none",t==o?"text-white bg-clrs-red":"text-clrs-navy bg-clrs-yellow"),onClick:()=>z(o),title:`${e.name} (${e.vehicles.length})`},o+1)))))},P=/^\#[0-9]*/,U=r=>null!=r.match(P),_=r=>2554===r,B=r=>r>2010,J=e=>{const{vin:t,make:o,model:n,year:i,color:a}=e.value||{};return r("div",{class:A("flex align-middle","rounded-lg p-4 mb-1","border border-solid",_(i)?"bg-clrs-navy border-clrs-navy text-clrs-white":U(n)?"bg-yellow-300 border-yellow-600":B(i)?"bg-green-200 border-green-600":"bg-gray-300 border-gray-600")},r("div",{class:"flex flex-col mr-1.5"},r("label",{class:"text-xs mb-2"},t||""),r("label",{class:"text-lg font-bold"},o||""),r("label",{class:"text-sm italic mb-2"},n||""),r("label",null,i||"",", ",a||""),r("label",null,_(i)?"- exotic... [ Sierra 117 ]":U(n)?"- track only...":"")),r("proto-ikon-loader",{class:"ikon ml-auto self-center",name:o,label:o.toLowerCase()}))},H=e=>{const{list:t}=e,o=t.length;return 0===o?"":r("div",{class:"flex flex-col"},o?t.map((e=>r(J,{value:e}))):"")},D=e=>{const{dealer:t}=e,{vehicles:o}=t||{vehicles:[]},n=o;return t?r("div",{class:"flex flex-col"},r(M,{value:t}),r(H,{list:n})):""};let F=class{constructor(r){e(this,r),this.tag="proto-autos"}componentDidLoad(){O()}render(){const{loading:e,dealer:t}=w;return r("main",{id:"app",class:"ds1-main"},r("eswat2-io",null),r(N,null,"Auto Dealers"),r(T,null),e?r(I,null):r("hr",{class:A("ml-0 mr-0 mt-4 mb-4","border-solid border-gray-300","border-r-0 border-b-0 border-l-0")}),r(D,{dealer:t}),r(E,null))}};F.style=".ikon{height:96px;width:96px}*,:after,:before{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.ml-auto{margin-left:auto}.flex{display:flex}.inline-flex{display:inline-flex}.h-8{height:2rem}.w-8{width:2rem}.justify-end{justify-content:flex-end}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-tr-none{border-top-right-radius:0}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-none{border-top-left-radius:0}.rounded-bl-none{border-bottom-left-radius:0}.rounded-tr-md{border-top-right-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-gray-600{--tw-border-opacity:1;border-color:rgba(75,85,99,var(--tw-border-opacity))}.bg-clrs-red{background-color:var(--clrs-red,#ff4136)}.bg-clrs-yellow{background-color:var(--clrs-yellow,#ffdc00)}.font-bold{font-weight:700}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-clrs-navy{color:var(--clrs-navy,#001f3f)}.hover\\:text-clrs-red:hover{color:var(--clrs-red,#ff4136)}.mt-2{margin-top:.5rem}.mb-4{margin-bottom:1rem}.mr-2{margin-right:.5rem}.flex-row{flex-direction:row}.align-top{vertical-align:top}.text-xs{font-size:.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4,#4e5964)}.mr-0{margin-right:0}.ml-0{margin-left:0}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.text-center{text-align:center}.text-6xl{font-size:3.75rem;line-height:1}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.text-clrs-red{color:var(--clrs-red,#ff4136)}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.self-center{align-self:center}.rounded-lg{border-radius:.5rem}.border-blue-400{--tw-border-opacity:1;border-color:rgba(96,165,250,var(--tw-border-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgba(191,219,254,var(--tw-bg-opacity))}.p-4{padding:1rem}.text-right{text-align:right}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.mb-1{margin-bottom:.25rem}.mr-1\\.5{margin-right:.375rem}.mr-1{margin-right:.25rem}.mb-2{margin-bottom:.5rem}.flex-col{flex-direction:column}.border-clrs-navy{border-color:var(--clrs-navy,#001f3f)}.border-yellow-600{--tw-border-opacity:1;border-color:rgba(217,119,6,var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgba(5,150,105,var(--tw-border-opacity))}.bg-clrs-navy{background-color:var(--clrs-navy,#001f3f)}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgba(252,211,77,var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity:1;background-color:rgba(167,243,208,var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgba(209,213,219,var(--tw-bg-opacity))}.align-middle{vertical-align:middle}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-clrs-white{color:var(--clrs-white,#fff)}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.opacity-25{opacity:.25}.opacity-75{opacity:.75}@media (min-width:500px){.ikon{height:144px;width:144px}}@media (min-width:700px){.ikon{height:192px;width:192px}}@media (min-width:768px){.md\\:w-auto{width:auto}}*,:after,:before{--tw-border-opacity:1;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;border-color:rgba(229,231,235,var(--tw-border-opacity))}.ds1-main{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--clrs-navy,#001f3f);display:flex;flex-direction:column;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:1.5rem}.ml-0{margin-left:0}.mr-0{margin-right:0}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.flex{display:flex}.flex-col{flex-direction:column}.border-r-0{border-right-width:0}.border-b-0{border-bottom-width:0}.border-l-0{border-left-width:0}.border-solid{border-style:solid}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}";const V=window.hasOwnProperty("protoIkonFallback")?window.protoIkonFallback:"slug-icon";let L=class{constructor(r){e(this,r),this.hex="currentColor",this.name="slug",this.selected=!1,this.size=void 0,this.label=void 0}render(){const{name:e,hex:t,selected:o,size:n,label:l}=this,s=l||e;this.el.style.setProperty("--proto-ikon-size",n?`${n}px`:void 0);const c=(r=>{const e=r.toLowerCase().split(" ").join("-"),t=`${e}-icon`,o=`${e}-ikon`;return i.includes(t)?t:a.includes(o)?o:V})(e);return r("div",{class:"ikonBox"},r(c,{hex:t,selected:o,size:n,label:s}))}get el(){return n(this)}};L.style=".ikonBox{height:var(--proto-ikon-size);margin-right:auto;overflow:clip;width:var(--proto-ikon-size)}";export{s as eswat2_io,F as proto_autos,L as proto_ikon_loader}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-f6a546ae.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((e=>a([["p-566b83ff",[[0,"acura-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a1cfef6c",[[0,"alfa-romeo-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-29b1b0f0",[[0,"alfa-romeo-ikon",{hex:[1],name:[1],size:[2]}]]],["p-e14eb22d",[[0,"alien-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-d6b4433a",[[0,"am-general-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a000806c",[[0,"asterisk-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-2f4af5bd",[[0,"aston-martin-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-95978a17",[[0,"aston-martin-ikon",{hex:[1],name:[1],size:[2]}]]],["p-8f71936e",[[0,"audi-ikon",{hex:[1],name:[1],size:[2]}]]],["p-98b82838",[[0,"barcode-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-d79f7757",[[0,"barcode-scan-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-2d71ec39",[[0,"bash-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-3a559bea",[[0,"beaker-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-a16cfde1",[[0,"bently-ikon",{hex:[1],name:[1],size:[2]}]]],["p-40e53cbc",[[0,"bmw-ikon",{hex:[1],name:[1],size:[2]}]]],["p-5e0be80d",[[0,"bugatti-ikon",{hex:[1],name:[1],size:[2]}]]],["p-0830354f",[[0,"buick-ikon",{hex:[1],name:[1],size:[2]}]]],["p-79dde8ed",[[0,"cadillac-ikon",{hex:[1],name:[1],size:[2]}]]],["p-aaf524a1",[[0,"chart-bar-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-13e0d343",[[0,"chart-bubble-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-7c4ba80a",[[0,"chart-donut-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-dcf8e8e6",[[0,"chart-donuts-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-c41d483d",[[0,"check-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}]]],["p-e2566c2f",[[0,"chevrolet-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a4aa3567",[[0,"chevron-double-left-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-67c52ca7",[[0,"chrysler-ikon",{hex:[1],name:[1],size:[2]}]]],["p-616abe20",[[0,"circular-saw-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-31eccfe3",[[0,"citroen-ikon",{hex:[1],name:[1],size:[2]}]]],["p-f3c2a64c",[[0,"close-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-8c5b432e",[[0,"daewoo-ikon",{hex:[1],name:[1],size:[2]}]]],["p-fd00f6ac",[[0,"dodge-ikon",{hex:[1],name:[1],size:[2]}]]],["p-cc3d625e",[[0,"eagle-ikon",{hex:[1],name:[1],size:[2]}]]],["p-aff20025",[[0,"ferrari-ikon",{hex:[1],name:[1],size:[2]}]]],["p-e13eacc6",[[0,"fiat-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-877cc9b2",[[0,"fiat-ikon",{hex:[1],name:[1],size:[2]}]]],["p-64e8da6b",[[0,"fingerprint-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-748d943a",[[0,"fire-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-7817e433",[[0,"fisker-ikon",{hex:[1],name:[1],size:[2]}]]],["p-3d7384ee",[[0,"flask-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-7e269891",[[0,"ford-ikon",{hex:[1],name:[1],size:[2]}]]],["p-9c8ca047",[[0,"genesis-ikon",{hex:[1],name:[1],size:[2]}]]],["p-4a1c4e47",[[0,"geo-ikon",{hex:[1],name:[1],size:[2]}]]],["p-10113083",[[0,"git-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-6bc8334a",[[0,"gmc-ikon",{hex:[1],name:[1],size:[2]}]]],["p-79c25028",[[0,"honda-ikon",{hex:[1],name:[1],size:[2]}]]],["p-459762ac",[[0,"hummer-ikon",{hex:[1],name:[1],size:[2]}]]],["p-ed3e5055",[[0,"hyundai-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a0055d0d",[[0,"infiniti-ikon",{hex:[1],name:[1],size:[2]}]]],["p-6b716397",[[0,"isuzu-ikon",{hex:[1],name:[1],size:[2]}]]],["p-95832d7d",[[0,"jaguar-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-bc14e0d2",[[0,"jaguar-ikon",{hex:[1],name:[1],size:[2]}]]],["p-6e4a1b65",[[0,"java-script-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-e69234a5",[[0,"jeep-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-c9894d55",[[0,"jeep-ikon",{hex:[1],name:[1],size:[2]}]]],["p-7689e4ae",[[0,"kia-ikon",{hex:[1],name:[1],size:[2]}]]],["p-b654d1e2",[[0,"lamborghini-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-4b524268",[[0,"lamborghini-ikon",{hex:[1],name:[1],size:[2]}]]],["p-2d4f375a",[[0,"land-rover-ikon",{hex:[1],name:[1],size:[2]}]]],["p-83905515",[[0,"lexus-ikon",{hex:[1],name:[1],size:[2]}]]],["p-e953f02b",[[0,"lincoln-ikon",{hex:[1],name:[1],size:[2]}]]],["p-9eb26d22",[[0,"lotus-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-86020ef6",[[0,"lotus-ikon",{hex:[1],name:[1],size:[2]}]]],["p-f2e5a8b8",[[0,"maserati-ikon",{hex:[1],name:[1],size:[2]}]]],["p-2149c094",[[0,"maybach-ikon",{hex:[1],name:[1],size:[2]}]]],["p-378fa1c1",[[0,"mazda-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-cdac14eb",[[0,"mazda-ikon",{hex:[1],name:[1],size:[2]}]]],["p-877520a2",[[0,"mclaren-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-9890bcd3",[[0,"mclaren-ikon",{hex:[1],name:[1],size:[2]}]]],["p-2c181ca1",[[0,"mercedes-benz-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-93a2ac70",[[0,"mercedes-benz-ikon",{hex:[1],name:[1],size:[2]}]]],["p-0040d18b",[[0,"mercury-ikon",{hex:[1],name:[1],size:[2]}]]],["p-b37b9290",[[0,"mini-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-b5895412",[[0,"mini-ikon",{hex:[1],name:[1],size:[2]}]]],["p-33ffc7e6",[[0,"mitsubishi-ikon",{hex:[1],name:[1],size:[2]}]]],["p-e0a2819d",[[0,"nissan-ikon",{hex:[1],name:[1],size:[2]}]]],["p-d912918c",[[0,"oldsmobile-ikon",{hex:[1],name:[1],size:[2]}]]],["p-d676b461",[[0,"one-password-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-c47c3bc8",[[0,"opel-ikon",{hex:[1],name:[1],size:[2]}]]],["p-d5a48c73",[[0,"panoz-ikon",{hex:[1],name:[1],size:[2]}]]],["p-91cc821d",[[0,"paw-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-ad3cd492",[[0,"peugeot-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-f7d8d7da",[[0,"peugeot-ikon",{hex:[1],name:[1],size:[2]}]]],["p-ce7ba0e3",[[0,"plymouth-ikon",{hex:[1],name:[1],size:[2]}]]],["p-b535cb79",[[0,"pontiac-ikon",{hex:[1],name:[1],size:[2]}]]],["p-3202e36b",[[0,"porsche-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a00b31d5",[[0,"proto-ikon-raw",{hex:[1],name:[1],selected:[4],size:[2],label:[1]}]]],["p-b94c6073",[[0,"protocol-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-e8d298bf",[[0,"pulse-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-5d3ce26d",[[0,"puzzle-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}]]],["p-5d30de37",[[0,"qr-code-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-93bf43ef",[[0,"radio-2-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}]]],["p-1c57a7db",[[0,"radio-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}]]],["p-e9cd0f81",[[0,"ram-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-ed7c5cc1",[[0,"ram-ikon",{hex:[1],name:[1],size:[2]}]]],["p-f4de09cc",[[0,"refresh-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-ab8076c9",[[0,"renault-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-a97e01ac",[[0,"renault-ikon",{hex:[1],name:[1],size:[2]}]]],["p-fcadc2b7",[[0,"rolls-royce-ikon",{hex:[1],name:[1],size:[2]}]]],["p-d6e383ef",[[0,"saab-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-df35ad98",[[0,"saab-ikon",{hex:[1],name:[1],size:[2]}]]],["p-9150f182",[[0,"saturn-ikon",{hex:[1],name:[1],size:[2]}]]],["p-654a604e",[[0,"scion-ikon",{hex:[1],name:[1],size:[2]}]]],["p-00e539ac",[[0,"seat-ikon",{hex:[1],name:[1],size:[2]}]]],["p-bf9c5fd3",[[0,"skoda-ikon",{hex:[1],name:[1],size:[2]}]]],["p-065db414",[[0,"slug-icon",{label:[1],name:[1],size:[2]}]]],["p-f58e2677",[[0,"smart-ikon",{hex:[1],name:[1],size:[2]}]]],["p-bd43f711",[[0,"spider-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-209eadd8",[[0,"spyker-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-b8f8a469",[[0,"spyker-ikon",{hex:[1],name:[1],size:[2]}]]],["p-2fce841e",[[0,"subaru-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-5b5f636f",[[0,"subaru-ikon",{hex:[1],name:[1],size:[2]}]]],["p-35fffea8",[[0,"suzuki-ikon",{hex:[1],name:[1],size:[2]}]]],["p-f7fa41d0",[[0,"svg-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-ee323969",[[0,"tesla-ikon",{hex:[1],name:[1],size:[2]}]]],["p-b0a160f4",[[0,"toyota-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a5392585",[[0,"vector-curve-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-23d0b210",[[0,"volkswagen-ikon",{hex:[1],name:[1],size:[2]}]]],["p-91cc55ff",[[0,"volvo-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-f8023522",[[0,"volvo-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a20327f6",[[0,"webhook-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-
|
|
1
|
+
import{p as e,b as a}from"./p-f6a546ae.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((e=>a([["p-566b83ff",[[0,"acura-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a1cfef6c",[[0,"alfa-romeo-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-29b1b0f0",[[0,"alfa-romeo-ikon",{hex:[1],name:[1],size:[2]}]]],["p-e14eb22d",[[0,"alien-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-d6b4433a",[[0,"am-general-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a000806c",[[0,"asterisk-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-2f4af5bd",[[0,"aston-martin-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-95978a17",[[0,"aston-martin-ikon",{hex:[1],name:[1],size:[2]}]]],["p-8f71936e",[[0,"audi-ikon",{hex:[1],name:[1],size:[2]}]]],["p-98b82838",[[0,"barcode-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-d79f7757",[[0,"barcode-scan-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-2d71ec39",[[0,"bash-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-3a559bea",[[0,"beaker-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-a16cfde1",[[0,"bently-ikon",{hex:[1],name:[1],size:[2]}]]],["p-40e53cbc",[[0,"bmw-ikon",{hex:[1],name:[1],size:[2]}]]],["p-5e0be80d",[[0,"bugatti-ikon",{hex:[1],name:[1],size:[2]}]]],["p-0830354f",[[0,"buick-ikon",{hex:[1],name:[1],size:[2]}]]],["p-79dde8ed",[[0,"cadillac-ikon",{hex:[1],name:[1],size:[2]}]]],["p-aaf524a1",[[0,"chart-bar-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-13e0d343",[[0,"chart-bubble-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-7c4ba80a",[[0,"chart-donut-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-dcf8e8e6",[[0,"chart-donuts-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-c41d483d",[[0,"check-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}]]],["p-e2566c2f",[[0,"chevrolet-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a4aa3567",[[0,"chevron-double-left-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-67c52ca7",[[0,"chrysler-ikon",{hex:[1],name:[1],size:[2]}]]],["p-616abe20",[[0,"circular-saw-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-31eccfe3",[[0,"citroen-ikon",{hex:[1],name:[1],size:[2]}]]],["p-f3c2a64c",[[0,"close-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-8c5b432e",[[0,"daewoo-ikon",{hex:[1],name:[1],size:[2]}]]],["p-fd00f6ac",[[0,"dodge-ikon",{hex:[1],name:[1],size:[2]}]]],["p-cc3d625e",[[0,"eagle-ikon",{hex:[1],name:[1],size:[2]}]]],["p-aff20025",[[0,"ferrari-ikon",{hex:[1],name:[1],size:[2]}]]],["p-e13eacc6",[[0,"fiat-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-877cc9b2",[[0,"fiat-ikon",{hex:[1],name:[1],size:[2]}]]],["p-64e8da6b",[[0,"fingerprint-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-748d943a",[[0,"fire-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-7817e433",[[0,"fisker-ikon",{hex:[1],name:[1],size:[2]}]]],["p-3d7384ee",[[0,"flask-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-7e269891",[[0,"ford-ikon",{hex:[1],name:[1],size:[2]}]]],["p-9c8ca047",[[0,"genesis-ikon",{hex:[1],name:[1],size:[2]}]]],["p-4a1c4e47",[[0,"geo-ikon",{hex:[1],name:[1],size:[2]}]]],["p-10113083",[[0,"git-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-6bc8334a",[[0,"gmc-ikon",{hex:[1],name:[1],size:[2]}]]],["p-79c25028",[[0,"honda-ikon",{hex:[1],name:[1],size:[2]}]]],["p-459762ac",[[0,"hummer-ikon",{hex:[1],name:[1],size:[2]}]]],["p-ed3e5055",[[0,"hyundai-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a0055d0d",[[0,"infiniti-ikon",{hex:[1],name:[1],size:[2]}]]],["p-6b716397",[[0,"isuzu-ikon",{hex:[1],name:[1],size:[2]}]]],["p-95832d7d",[[0,"jaguar-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-bc14e0d2",[[0,"jaguar-ikon",{hex:[1],name:[1],size:[2]}]]],["p-6e4a1b65",[[0,"java-script-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-e69234a5",[[0,"jeep-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-c9894d55",[[0,"jeep-ikon",{hex:[1],name:[1],size:[2]}]]],["p-7689e4ae",[[0,"kia-ikon",{hex:[1],name:[1],size:[2]}]]],["p-b654d1e2",[[0,"lamborghini-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-4b524268",[[0,"lamborghini-ikon",{hex:[1],name:[1],size:[2]}]]],["p-2d4f375a",[[0,"land-rover-ikon",{hex:[1],name:[1],size:[2]}]]],["p-83905515",[[0,"lexus-ikon",{hex:[1],name:[1],size:[2]}]]],["p-e953f02b",[[0,"lincoln-ikon",{hex:[1],name:[1],size:[2]}]]],["p-9eb26d22",[[0,"lotus-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-86020ef6",[[0,"lotus-ikon",{hex:[1],name:[1],size:[2]}]]],["p-f2e5a8b8",[[0,"maserati-ikon",{hex:[1],name:[1],size:[2]}]]],["p-2149c094",[[0,"maybach-ikon",{hex:[1],name:[1],size:[2]}]]],["p-378fa1c1",[[0,"mazda-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-cdac14eb",[[0,"mazda-ikon",{hex:[1],name:[1],size:[2]}]]],["p-877520a2",[[0,"mclaren-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-9890bcd3",[[0,"mclaren-ikon",{hex:[1],name:[1],size:[2]}]]],["p-2c181ca1",[[0,"mercedes-benz-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-93a2ac70",[[0,"mercedes-benz-ikon",{hex:[1],name:[1],size:[2]}]]],["p-0040d18b",[[0,"mercury-ikon",{hex:[1],name:[1],size:[2]}]]],["p-b37b9290",[[0,"mini-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-b5895412",[[0,"mini-ikon",{hex:[1],name:[1],size:[2]}]]],["p-33ffc7e6",[[0,"mitsubishi-ikon",{hex:[1],name:[1],size:[2]}]]],["p-e0a2819d",[[0,"nissan-ikon",{hex:[1],name:[1],size:[2]}]]],["p-d912918c",[[0,"oldsmobile-ikon",{hex:[1],name:[1],size:[2]}]]],["p-d676b461",[[0,"one-password-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-c47c3bc8",[[0,"opel-ikon",{hex:[1],name:[1],size:[2]}]]],["p-d5a48c73",[[0,"panoz-ikon",{hex:[1],name:[1],size:[2]}]]],["p-91cc821d",[[0,"paw-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-ad3cd492",[[0,"peugeot-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-f7d8d7da",[[0,"peugeot-ikon",{hex:[1],name:[1],size:[2]}]]],["p-ce7ba0e3",[[0,"plymouth-ikon",{hex:[1],name:[1],size:[2]}]]],["p-b535cb79",[[0,"pontiac-ikon",{hex:[1],name:[1],size:[2]}]]],["p-3202e36b",[[0,"porsche-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a00b31d5",[[0,"proto-ikon-raw",{hex:[1],name:[1],selected:[4],size:[2],label:[1]}]]],["p-b94c6073",[[0,"protocol-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-e8d298bf",[[0,"pulse-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-5d3ce26d",[[0,"puzzle-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}]]],["p-5d30de37",[[0,"qr-code-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-93bf43ef",[[0,"radio-2-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}]]],["p-1c57a7db",[[0,"radio-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}]]],["p-e9cd0f81",[[0,"ram-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-ed7c5cc1",[[0,"ram-ikon",{hex:[1],name:[1],size:[2]}]]],["p-f4de09cc",[[0,"refresh-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-ab8076c9",[[0,"renault-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-a97e01ac",[[0,"renault-ikon",{hex:[1],name:[1],size:[2]}]]],["p-fcadc2b7",[[0,"rolls-royce-ikon",{hex:[1],name:[1],size:[2]}]]],["p-d6e383ef",[[0,"saab-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-df35ad98",[[0,"saab-ikon",{hex:[1],name:[1],size:[2]}]]],["p-9150f182",[[0,"saturn-ikon",{hex:[1],name:[1],size:[2]}]]],["p-654a604e",[[0,"scion-ikon",{hex:[1],name:[1],size:[2]}]]],["p-00e539ac",[[0,"seat-ikon",{hex:[1],name:[1],size:[2]}]]],["p-bf9c5fd3",[[0,"skoda-ikon",{hex:[1],name:[1],size:[2]}]]],["p-065db414",[[0,"slug-icon",{label:[1],name:[1],size:[2]}]]],["p-f58e2677",[[0,"smart-ikon",{hex:[1],name:[1],size:[2]}]]],["p-bd43f711",[[0,"spider-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-209eadd8",[[0,"spyker-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-b8f8a469",[[0,"spyker-ikon",{hex:[1],name:[1],size:[2]}]]],["p-2fce841e",[[0,"subaru-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-5b5f636f",[[0,"subaru-ikon",{hex:[1],name:[1],size:[2]}]]],["p-35fffea8",[[0,"suzuki-ikon",{hex:[1],name:[1],size:[2]}]]],["p-f7fa41d0",[[0,"svg-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-ee323969",[[0,"tesla-ikon",{hex:[1],name:[1],size:[2]}]]],["p-b0a160f4",[[0,"toyota-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a5392585",[[0,"vector-curve-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-23d0b210",[[0,"volkswagen-ikon",{hex:[1],name:[1],size:[2]}]]],["p-91cc55ff",[[0,"volvo-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-f8023522",[[0,"volvo-ikon",{hex:[1],name:[1],size:[2]}]]],["p-a20327f6",[[0,"webhook-icon",{hex:[1],label:[1],name:[1],size:[2]}]]],["p-30fb5cef",[[1,"proto-autos",{tag:[1]}],[1,"eswat2-io"],[1,"proto-ikon-loader",{hex:[1],name:[1],selected:[4],size:[2],label:[1]}]]]],e)));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
+
import { IconProps } from '../../utils';
|
|
3
|
+
declare const Fingerprint: FunctionalComponent<IconProps>;
|
|
2
4
|
export { Fingerprint };
|
|
3
5
|
export default Fingerprint;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
+
import { DealerCardProps } from '../../utils';
|
|
3
|
+
declare const DealerCard: FunctionalComponent<DealerCardProps>;
|
|
2
4
|
export { DealerCard };
|
|
3
5
|
export default DealerCard;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
+
import { VehicleCardProps } from '../../utils';
|
|
3
|
+
declare const VehicleCard: FunctionalComponent<VehicleCardProps>;
|
|
2
4
|
export { VehicleCard };
|
|
3
5
|
export default VehicleCard;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
error: any;
|
|
4
|
-
data: any;
|
|
5
|
-
pick: number;
|
|
6
|
-
dealer: any;
|
|
7
|
-
};
|
|
1
|
+
import { AppStore } from './types';
|
|
2
|
+
declare const state: AppStore;
|
|
8
3
|
declare const actions: {
|
|
9
4
|
initApp: () => void;
|
|
10
5
|
refresh: () => void;
|
|
11
|
-
updatePick: (pick:
|
|
6
|
+
updatePick: (pick: number) => void;
|
|
12
7
|
};
|
|
13
8
|
export { state, actions };
|
|
14
9
|
export default state;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
interface Solution {
|
|
2
|
+
id: string;
|
|
3
|
+
list: Dealer[];
|
|
4
|
+
}
|
|
5
|
+
interface Dealer {
|
|
6
|
+
dealerId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
vehicles: Vehicle[];
|
|
9
|
+
}
|
|
10
|
+
interface GTForza {
|
|
11
|
+
year: number;
|
|
12
|
+
make: string;
|
|
13
|
+
model: string;
|
|
14
|
+
}
|
|
15
|
+
interface Vehicle {
|
|
16
|
+
vin: string;
|
|
17
|
+
year: number;
|
|
18
|
+
make: string;
|
|
19
|
+
model: string;
|
|
20
|
+
color: string;
|
|
21
|
+
}
|
|
22
|
+
interface GroupSummary {
|
|
23
|
+
makes: string[];
|
|
24
|
+
vins: string[];
|
|
25
|
+
counts: GroupCounts;
|
|
26
|
+
}
|
|
27
|
+
interface GroupCounts {
|
|
28
|
+
dealers: number;
|
|
29
|
+
makes: number;
|
|
30
|
+
vehicles: number;
|
|
31
|
+
}
|
|
32
|
+
interface AppStore {
|
|
33
|
+
loading: boolean;
|
|
34
|
+
error: string;
|
|
35
|
+
data: Solution;
|
|
36
|
+
pick: number;
|
|
37
|
+
dealer: Dealer;
|
|
38
|
+
}
|
|
39
|
+
interface DealerViewProps {
|
|
40
|
+
dealer: Dealer;
|
|
41
|
+
}
|
|
42
|
+
interface VehicleListProps {
|
|
43
|
+
list: Vehicle[];
|
|
44
|
+
}
|
|
45
|
+
interface DealerCardProps {
|
|
46
|
+
value: Dealer;
|
|
47
|
+
}
|
|
48
|
+
interface IconProps {
|
|
49
|
+
hex?: string;
|
|
50
|
+
class?: string;
|
|
51
|
+
label?: string;
|
|
52
|
+
size?: number;
|
|
53
|
+
}
|
|
54
|
+
interface TwLabelProps {
|
|
55
|
+
version: string;
|
|
56
|
+
}
|
|
57
|
+
interface VehicleCardProps {
|
|
58
|
+
value: Vehicle;
|
|
59
|
+
}
|
|
60
|
+
export type { Solution, Dealer, Vehicle, GTForza, GroupSummary, GroupCounts, AppStore, DealerViewProps, VehicleListProps, DealerCardProps, IconProps, TwLabelProps, VehicleCardProps, };
|