@cartbot/plate-search 3.1.7 → 3.1.8
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.8", 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) {
|
|
@@ -1054,11 +1054,10 @@ function ut(o) {
|
|
|
1054
1054
|
v.detail
|
|
1055
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");
|
|
1056
1056
|
};
|
|
1057
|
-
return console.log(
|
|
1058
|
-
"vehicle-search-change"
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
document.removeEventListener(
|
|
1057
|
+
return console.log(
|
|
1058
|
+
"[PlateSearch] Adding vehicle-search-change listener to window"
|
|
1059
|
+
), window.addEventListener("vehicle-search-change", i), () => {
|
|
1060
|
+
window.removeEventListener(
|
|
1062
1061
|
"vehicle-search-change",
|
|
1063
1062
|
i
|
|
1064
1063
|
);
|
|
@@ -1142,9 +1141,7 @@ function ut(o) {
|
|
|
1142
1141
|
console.log(
|
|
1143
1142
|
"[PlateSearch] Dispatching plate-search-change:",
|
|
1144
1143
|
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);
|
|
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);
|
|
1148
1145
|
}, ye = (i) => {
|
|
1149
1146
|
if (_(), k)
|
|
1150
1147
|
try {
|