@7365admin1/layer-common 4.97.1-staging.593 → 4.97.1-staging.594

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.
@@ -1911,7 +1911,8 @@ ensureANPRSettings(true).catch(() => {
1911
1911
 
1912
1912
  /*
1913
1913
  * iSecure `useUnregisteredTab`: the Unregistered tab needs BOTH the site's
1914
- * Unregistered switch AND an ANPR camera facing an entrance (entry / both) -
1914
+ * Unregistered switch AND an ANPR camera facing an entrance (entry / both /
1915
+ * visitors) -
1915
1916
  * the same rule the plate notice (VisitorSocketPopUp) already applies.
1916
1917
  */
1917
1918
  const { getAllSiteCameras } = useSiteSettings();
@@ -1927,7 +1928,7 @@ async function loadEntryFacingAnprCamera() {
1927
1928
  ? res.data.items
1928
1929
  : [];
1929
1930
  hasEntryFacingAnprCamera.value = cameras.some(
1930
- (camera: any) => camera?.direction === "entry" || camera?.direction === "both"
1931
+ (camera: any) => ["entry", "both", "visitors"].includes(camera?.direction)
1931
1932
  );
1932
1933
  } catch {
1933
1934
  hasEntryFacingAnprCamera.value = false;
@@ -150,7 +150,7 @@ const { enableUnregistered, ensureANPRSettings } = useANPRSettings(
150
150
  );
151
151
  // The security mobile app's rule (isecure365 `useUnregisteredTab`): the
152
152
  // site's Unregistered switch AND an ANPR camera facing an entrance (entry /
153
- // both). With the switch alone the notice could appear for a site whose
153
+ // both / visitors). With the switch alone the notice could appear for a site whose
154
154
  // cameras never register anyone arriving.
155
155
  const { getAllSiteCameras } = useSiteSettings();
156
156
  const hasEntryFacingAnprCamera = ref(false);
@@ -167,7 +167,7 @@ async function loadEntryFacingAnprCamera(siteId: string) {
167
167
  ? res.data.items
168
168
  : [];
169
169
  hasEntryFacingAnprCamera.value = items.some(
170
- (camera: any) => camera?.direction === "entry" || camera?.direction === "both"
170
+ (camera: any) => ["entry", "both", "visitors"].includes(camera?.direction)
171
171
  );
172
172
  } catch {
173
173
  hasEntryFacingAnprCamera.value = false;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.97.1-staging.593",
5
+ "version": "4.97.1-staging.594",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",