1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/UploadIngressImage-Ckej03C-.js","static/maps-CaxwoKp9.js","static/vue-BFiGH6Pw.js","static/photoswipe-DBz4ixLY.js","static/photoswipe-D1Jdo9Br.css","static/maps-DSueV38R.css","static/index-B2RcSseM.js","static/index-DoQNbu2X.css","static/uppy-6bME8tVp.js","static/uppy-95pGEvW4.css","static/UploadIngressImage-BioIc3Kd.css"])))=>i.map(i=>d[i]); 2import{a as p,_ as h}from"./maps-CaxwoKp9.js";import{a0 as a,x as n,v as l,a2 as c,a3 as i,$ as f,y as u,ad as v,a1 as S}from"./vue-BFiGH6Pw.js";import"./photoswipe-DBz4ixLY.js";const y={class:"preview-ingress-image"},C={key:1,class:"select-image"};function w(e,t,s,B,I,r){const d=a("loading-spinner"),g=a("image-box"),m=a("modal-upload-ingress-image");return n(),l("div",y,[!e.ready&&!e.error?(n(),c(d,{key:0})):i("",!0),f(g,{src:r.previewSrc,resolution:s.resolution,onImageloaded:t[0]||(t[0]=o=>e.ready=!0),onNotFound:t[1]||(t[1]=o=>e.error=!0)},null,8,["src","resolution"]),s.uploadUrl?(n(),l("div",C,[u("button",{class:"btn",onClick:t[2]||(t[2]=(...o)=>r.openModal&&r.openModal(...o))},[u("span",null,v(e.$t("upload.ingressImage")),1)])])):i("",!0),s.uploadUrl?(n(),c(m,{key:2,show:e.showModal,onClose:t[3]||(t[3]=o=>e.showModal=!1),url:s.uploadUrl,"default-image":e.cacheBustedSrc,"croppie-settings":s.croppieSettings,"image-ratio":s.imageRatio,"reload-on-success":!1,onChanged:r.onChanged},null,8,["show","url","default-image","croppie-settings","image-ratio","onChanged"])):i("",!0)])}const _={name:"preview-ingress-image",props:{src:{type:String},resolution:{type:Object,default:()=>({x:120})},uploadUrl:{type:String},croppieSettings:{type:Object},imageRatio:{type:Number}},components:{ModalUploadIngressImage:S(()=>h(()=>import("./UploadIngressImage-Ckej03C-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])))},data:function(){return{cacheBustedSrc:this.src,showModal:!1,ready:!1,error:null}},computed:{previewSrc:function(){var t;const e=this.cacheBustedSrc||this.src;return!e||typeof e!="string"||!this.resolution||e.match(/CanvasX=|CanvasY=/i)?e:(t=this.$helpers)!=null&&t.constructImageSrc?this.$helpers.constructImageSrc(e,{resolution:this.resolution}):e}},watch:{src:function(e){this.cacheBustedSrc=e}},methods:{onChanged:function(){this.$emit("changed"),this.$axios.get(this.src).then(()=>{this.cacheBustedSrc=this.getCacheBustedSrc()})},getCacheBustedSrc:function(){if(!this.src)return this.src;const e=this.src.includes("?")?"&":"?";return this.src+`${e}ts=${new Date().getTime()}`},openModal:function(){this.showModal=!0}}},N=p(_,[["render",w]]);export{N as default};
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.