1import{_ as f}from"./PhotoViewer.vue_vue_type_script_setup_true_lang-DGD5n4TQ.js";import{v as w,w as h,e as V,W as _,o as E,N as I,r as o,k as g}from"./_plugin-vue_export-helper-6uEV9u0I.js";import"./ChevronLeft-DJQEul_b.js";import"./XMarkLargeIcon-BF_ddn2Z.js";import"./_commonjsHelpers-Ud5FI-mo.js";const v="centris:photoViewer:open",P=w({__name:"PhotoViewerHost",setup(s){const t=o(!1),r=o([]),i=o(0),c=o(),u=o(null),n=o();function d(a){const e=a.detail;if(e.loading)n.value=e.requestId;else if(e.requestId!==void 0){if(e.requestId!==n.value)return;n.value=void 0}else n.value=void 0;r.value=e.images||[],i.value=e.startIndex||0,c.value=e.centrisNo,t.value&&u.value?u.value.setImagesAndGoTo(r.value,i.value):t.value=!0}return h(t,a=>{a||(n.value=void 0)}),V(()=>{window.addEventListener(v,d)}),_(()=>{window.removeEventListener(v,d)}),(a,l)=>(E(),I(f,{ref_key:"photoViewerRef",ref:u,modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=e=>t.value=e),images:r.value,"start-index":i.value,loop:!0,"show-thumbnails":!0,"centris-no":c.value},null,8,["modelValue","images","start-index","centris-no"]))}});async function N(){const s=document.getElementById("property-photo-viewer-host");if(!s)return console.warn("PhotoViewer host container not found"),null;const t=await g(P);return t.mount(s),t}var m,p;(p=(m=window.Centris)==null?void 0:m.FeatureFlags)!=null&&p.ActivateNewPhotoViewer&&N();
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.