PageSourceSearch

https://www.diveinfo.net/_nuxt/CTInBxos.js

js diveinfo.net collected 2026-10-07 16:17:41 UTC 1,373 bytes, 1 lines download raw bytes

1import{u as P}from"./CrbaH3J_.js";import{c as g,aU as h,z as N,u as S,C as v,aT as C,c4 as I,c2 as l,D as y}from"#entry";import{getPreviewIdentifierState as b,subscribePreviewIdentifierUpdates as x,publishPreviewIdentifierUpdate as E}from"./CBOphtaG.js";const w=n=>{if(n===null||typeof n>"u")return!0;if(typeof n=="number")return!1;const u=String(n).trim();return!u||/{{\s*PAGE_CATEGORY_ID\s*}}/i.test(u)?!0:Number.isNaN(Number(u))};function T(n,u){const f=g(()=>h(n)),c=P(),a=N(),d=S(),o=y(b()),m=y(null);let s=null;v(c,i=>{if(!i){s?.(),s=null,o.value=b();return}if(!s){let t=!0;s=x(e=>{const r=o.value;!t&&(e.categoryId!==r.categoryId||e.context!==r.context)&&(m.value=a.path),o.value=e}),t=!1}},{immediate:!0}),C(()=>s?.());const p=g(()=>{const i=f.value;if(!c.value||i==null||i===""||!w(i))return i;const t=o.value,e=I(a.path,d.settings?.categoryPath);if((m.value===a.path||e===null)&&t.context==="category"&&t.categoryId!==null){const r=Number(t.categoryId);if(Number.isInteger(r)&&r>=l)return r}return e!==null?e:l});return u?.publishIdentifiers&&v([c,p],([i,t])=>{if(!i)return;const e=t==null||t===""?NaN:Number(t);if(!Number.isSafeInteger(e)||e<l)return;const r=I(a.path,d.settings?.categoryPath);r===null&&o.value.context!=="category"||!w(f.value)&&e!==r||E({context:"category",categoryId:String(e)})},{immediate:!0}),{resolvedCategoryId:p}}export{w as i,T as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.