@cartbot/plate-search 3.1.8 → 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,14 +1049,9 @@ 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
|
-
"[PlateSearch] Adding vehicle-search-change listener to window"
|
|
1059
|
-
), window.addEventListener("vehicle-search-change", i), () => {
|
|
1054
|
+
return window.addEventListener("vehicle-search-change", i), () => {
|
|
1060
1055
|
window.removeEventListener(
|
|
1061
1056
|
"vehicle-search-change",
|
|
1062
1057
|
i
|
|
@@ -1138,10 +1133,7 @@ function ut(o) {
|
|
|
1138
1133
|
vehicle_ids: i.vehicle_ids
|
|
1139
1134
|
}
|
|
1140
1135
|
});
|
|
1141
|
-
|
|
1142
|
-
"[PlateSearch] Dispatching plate-search-change:",
|
|
1143
|
-
x.detail
|
|
1144
|
-
), window.dispatchEvent(x), console.log("[PlateSearch] Event dispatched to window"), $(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);
|
|
1145
1137
|
}, ye = (i) => {
|
|
1146
1138
|
if (_(), k)
|
|
1147
1139
|
try {
|