1import{a as I,b as S}from"./chunk-WDNJHZ6H.js";import{Ea as a,Jb as C,Lb as l,Mb as k,Nb as V,Ra as y,X as p,aa as u,ba as f,ca as x,da as w,db as s,eb as c,la as _,nb as n,ob as i,pb as g,tb as b,ub as h,wb as v,xb as m,za as E}from"./chunk-2B6X3O7I.js";function D(t,r){if(t&1&&(n(0,"p",3),l(1),i()),t&2){let e=m();a(),k(e.data.part_number)}}function T(t,r){t&1&&(n(0,"div",9),x(),n(1,"svg",10),g(2,"path",11),i(),w(),n(3,"span",12),l(4,"Photo unavailable"),i()())}function M(t,r){t&1&&(n(0,"div",13),g(1,"div",15),i())}function j(t,r){if(t&1){let e=b();s(0,M,2,0,"div",13),n(1,"img",14),v("load",function(){u(e);let d=m();return f(d.imageLoaded.set(!0))})("error",function(){u(e);let d=m();return f(d.imageError.set(!0))}),i()}if(t&2){let e=m();c(e.imageLoaded()?-1:0),a(),C("opacity-0",!e.imageLoaded()),h("src",e.data.image,E)}}var L=class t{data=p(S);dialogRef=p(I);imageLoaded=_(!1);imageError=_(!1);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-image-viewer"]],decls:14,vars:3,consts:[[1,"flex","flex-col","rounded-lg","w-screen","sm:w-full","sm:min-w-sm","max-h-svh","sm:max-h-[90vh]","max-w-screen","sm:my-4","sm:mx-8","bg-white","shadow-sm","dark:bg-gray-700"],[1,"font-semibold","flex","items-center","justify-between","rounded-t","border-b","p-5","dark:border-gray-600"],[1,"text-2xl","text-gray-900","dark:text-white"],[1,"text-pure-blue-500","text-lg"],["type","button",1,"outline-none","ms-auto","inline-flex","h-8","w-8","items-center","justify-center","rounded-lg","bg-transparent","text-sm","text-gray-400","hover:bg-gray-200","hover:text-gray-900","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"h-3","w-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"grow","flex","justify-center","items-center","overflow-hidden","relative"],[1,"flex","flex-col","items-center","justify-center","gap-2","p-8","text-gray-400","dark:text-gray-500"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"size-10"],["stroke-linecap","round","stroke-linejoin","round","d","M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"],[1,"text-sm"],[1,"absolute","inset-0","flex","items-center","justify-center","bg-white","dark:bg-gray-700"],[1,"object-contain","h-full","max-h-[80svh]","w-full","p-4","touch-manipulation",3,"load","error","src"],[1,"w-full","h-full","animate-pulse","bg-gray-200","dark:bg-gray-600"]],template:function(e,o){e&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h3",2),l(4),i(),s(5,D,2,1,"p",3),i(),n(6,"button",4),v("click",function(){return o.dialogRef.close()}),x(),n(7,"svg",5),g(8,"path",6),i(),w(),n(9,"span",7),l(10,"Close modal"),i()()(),n(11,"div",8),s(12,T,5,0,"div",9)(13,j,2,4),i()()),e&2&&(a(4),V(" ",o.data.name," "),a(),c(o.data.part_number?5:-1),a(7),c(o.imageError()?12:13))},encapsulation:2})};export{L as a};
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.