@cartbot/plate-search 3.1.7 → 3.1.9
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.
|
@@ -981,7 +981,7 @@ function no({ className: o, alt: t = "Partbot Logo" }) {
|
|
|
981
981
|
))
|
|
982
982
|
));
|
|
983
983
|
}
|
|
984
|
-
const ro = "3.1.
|
|
984
|
+
const ro = "3.1.9", ht = {
|
|
985
985
|
version: ro
|
|
986
986
|
}, jt = ["ACT", "NSW", "NT", "QLD", "SA", "TAS", "VIC", "WA"], Bt = "https://api.partbot.io/v1/vehicles/plate-search", Wt = "https://api.partbot.io/v1/vehicles/plate-search-retry";
|
|
987
987
|
function ut(o) {
|
|
@@ -1049,16 +1049,10 @@ function ut(o) {
|
|
|
1049
1049
|
}, []), j(() => {
|
|
1050
1050
|
const i = (v) => {
|
|
1051
1051
|
var x;
|
|
1052
|
-
|
|
1053
|
-
"[PlateSearch] Received vehicle-search-change:",
|
|
1054
|
-
v.detail
|
|
1055
|
-
), (x = v.detail) != null && x.userSelected ? (console.log("[PlateSearch] userSelected=true, clearing plate details"), localStorage.removeItem("partbot_plate_details"), p(""), f(null), $(null)) : console.log("[PlateSearch] userSelected=false, ignoring");
|
|
1052
|
+
(x = v.detail) != null && x.userSelected && (localStorage.removeItem("partbot_plate_details"), p(""), f(null), $(null));
|
|
1056
1053
|
};
|
|
1057
|
-
return
|
|
1058
|
-
|
|
1059
|
-
i
|
|
1060
|
-
), () => {
|
|
1061
|
-
document.removeEventListener(
|
|
1054
|
+
return window.addEventListener("vehicle-search-change", i), () => {
|
|
1055
|
+
window.removeEventListener(
|
|
1062
1056
|
"vehicle-search-change",
|
|
1063
1057
|
i
|
|
1064
1058
|
);
|
|
@@ -1139,12 +1133,7 @@ function ut(o) {
|
|
|
1139
1133
|
vehicle_ids: i.vehicle_ids
|
|
1140
1134
|
}
|
|
1141
1135
|
});
|
|
1142
|
-
|
|
1143
|
-
"[PlateSearch] Dispatching plate-search-change:",
|
|
1144
|
-
x.detail
|
|
1145
|
-
);
|
|
1146
|
-
const E = document.dispatchEvent(x);
|
|
1147
|
-
console.log("[PlateSearch] dispatchEvent result:", E), $(i), qe && _(), ee && ee !== window.location.href && (_(), window.location.href = ee + window.location.search);
|
|
1136
|
+
window.dispatchEvent(x), document.dispatchEvent(x), $(i), qe && _(), ee && ee !== window.location.href && (_(), window.location.href = ee + window.location.search);
|
|
1148
1137
|
}, ye = (i) => {
|
|
1149
1138
|
if (_(), k)
|
|
1150
1139
|
try {
|