PageSourceSearch

https://gulliver.gorazd.org/chunk-BVA4NNT2.js

js gorazd.org collected 2026-10-01 12:37:36 UTC 45,983 bytes, 10 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d51791bc-42b3-5bc3-8a56-7eea41044d3b")}catch(e){}}();
3import{a as Tt}from"./chunk-X6ISIHQ2.js";import{s as Et}from"./chunk-A4CUCPPN.js";import{c as It}from"./chunk-MUTPY7K4.js";import"./chunk-4LC3CEAM.js";import"./chunk-VCJSOCQU.js";import"./chunk-CBUHJ46T.js";import{a as Me,b as De,c as $t,d as kt,e as Se,f as Ve,g as Ht}from"./chunk-CIZ7BBKV.js";import"./chunk-JNFDDI7D.js";import"./chunk-LMPGWOLN.js";import"./chunk-GTA5BVJI.js";import"./chunk-UT5FM6F6.js";import"./chunk-WCKIHH4E.js";import"./chunk-BLQTSNE2.js";import"./chunk-MGY6YBUV.js";import"./chunk-HN6C62ZL.js";import{a as lt}from"./chunk-H3FK3NGC.js";import"./chunk-5UQCCOJX.js";import{e as xe}from"./chunk-K5GJURWN.js";import"./chunk-456OCPNL.js";import{a as Ie}from"./chunk-5OQDENGY.js";import{a as gt}from"./chunk-WLHC7FGM.js";import"./chunk-FOEBA2UI.js";import"./chunk-Q7HO4EIY.js";import{a as se,c as V}from"./chunk-K227MC5B.js";import"./chunk-BSWOONOW.js";import"./chunk-UL2ML4XA.js";import"./chunk-OQNALS63.js";import"./chunk-G4B7HIC3.js";import"./chunk-2B4ITIT4.js";import{a as St,b as Vt,c as At,g as Rt}from"./chunk-GF47EVLL.js";import"./chunk-AZQCKN4F.js";import"./chunk-TMXQOQAZ.js";import{a as Lt,b as Ft,c as Bt}from"./chunk-UUE6M24H.js";import"./chunk-XV5QIMWT.js";import"./chunk-T3F4JFPM.js";import"./chunk-SLFYNCPI.js";import"./chunk-5UHMJW36.js";import"./chunk-JF3NO7BU.js";import{a as Nt}from"./chunk-ONBY7VLJ.js";import"./chunk-N7MRL3DG.js";import"./chunk-RXXQQCXC.js";import"./chunk-IYUMFKEF.js";import"./chunk-2JY3QUSF.js";import"./chunk-HRRO5XSX.js";import"./chunk-WVXWDLXR.js";import"./chunk-NEXQTY2J.js";import{a as _t}from"./chunk-72MAIYUE.js";import{c as ht}from"./chunk-QZL6MDGV.js";import{a as Be}from"./chunk-UF4XAEAW.js";import{a as Y}from"./chunk-SUB65CLQ.js";import"./chunk-U3WMCZ3U.js";import"./chunk-N3653M5V.js";import"./chunk-YF4BKMWK.js";import"./chunk-3M7GJSXP.js";import"./chunk-IJF47LEK.js";import"./chunk-SD5P6KYR.js";import"./chunk-3HPJAYXA.js";import{h as Ct}from"./chunk-NDD7CGWO.js";import"./chunk-Z6JAAV7J.js";import{b as yt,c as wt,d as xt,e as Mt,f as Dt}from"./chunk-WRVXBG7J.js";import{a as vt}from"./chunk-VUXSDOWD.js";import"./chunk-SEL6SBVH.js";import"./chunk-B2FYSXKJ.js";import"./chunk-MJPEUZLY.js";import{a as bt}from"./chunk-STCVXFCF.js";import"./chunk-YVWJN26Y.js";import"./chunk-T7JTIJV4.js";import"./chunk-55BOZB22.js";import"./chunk-UK3G4GZP.js";import"./chunk-ZL5DBPOC.js";import"./chunk-4LSEZX3B.js";import{a as we}from"./chunk-M7WNTR54.js";import"./chunk-NQFRBRRW.js";import"./chunk-2P4N2TCC.js";import"./chunk-X3A7XDST.js";import"./chunk-4PTUXTFR.js";import"./chunk-FEKIYBD2.js";import"./chunk-7WSWQIEG.js";import"./chunk-MXYA7GQW.js";import"./chunk-IJYH56K7.js";import"./chunk-RIWZ4URG.js";import"./chunk-I7ZPER2Q.js";import"./chunk-XM23CXF2.js";import"./chunk-34YXOYVP.js";import"./chunk-YI2HXVDN.js";import"./chunk-4OKBJHA3.js";import"./chunk-IGF4Q3UV.js";import"./chunk-5LLCBLBT.js";import{a as ft}from"./chunk-7CG3P3SQ.js";import"./chunk-V2TR56GA.js";import"./chunk-25TLZWGN.js";import"./chunk-XUFNG6TF.js";import"./chunk-OJGT5CO7.js";import"./chunk-3HJQ4TOJ.js";import"./chunk-SKTI4NAC.js";import"./chunk-ZIY5LUDO.js";import"./chunk-ZYUTWCO6.js";import"./chunk-LGTR2RZZ.js";import"./chunk-D7RJNFXS.js";import"./chunk-6DUIK7YH.js";import"./chunk-OGLZVKAI.js";import"./chunk-F3DIDVL3.js";import"./chunk-ED6XGBQZ.js";import{a as rt,b as at}from"./chunk-PVYPQGFB.js";import{a as ot}from"./chunk-5CGYHITS.js";import{a as k}from"./chunk-N7I27JEJ.js";import{b as be}from"./chunk-Y6MFRVHJ.js";import"./chunk-QZCSODQJ.js";import"./chunk-USFR73ZU.js";import"./chunk-5RDNZTTM.js";import"./chunk-T3VVOZZT.js";import"./chunk-IWX6DUK7.js";import{a as ut}from"./chunk-I3FUPXYI.js";import"./chunk-6GX7SBOT.js";import"./chunk-T7DF7PY6.js";import"./chunk-WUY2JFPV.js";import"./chunk-Y3UE7WYA.js";import"./chunk-DIGISOJZ.js";import"./chunk-Z4P3RLRP.js";import"./chunk-PVZKWQQE.js";import"./chunk-RS4OAOOQ.js";import"./chunk-3ILK6YWQ.js";import"./chunk-KJDRDLDU.js";import"./chunk-KBXZSGGD.js";import"./chunk-CAZIV44N.js";import"./chunk-VED26QIY.js";import{a as Fe}from"./chunk-UCBWKLJS.js";import{k as st}from"./chunk-XIEPXTT7.js";import"./chunk-Z5SC3XPW.js";import"./chunk-C7TPGH4O.js";import"./chunk-OCEDQH3D.js";import"./chunk-QCZFMUQ2.js";import"./chunk-FYEFAVDI.js";import"./chunk-V32LTTP3.js";import{h as ye}from"./chunk-T2YOBQOY.js";import"./chunk-KZBNDFXP.js";import"./chunk-64AE4N5H.js";import"./chunk-J7Y6MF2E.js";import"./chunk-T3SBJBZK.js";import"./chunk-2IL73E45.js";import"./chunk-VQTNL4J6.js";import{c as et,d as tt}from"./chunk-NXGCLNSX.js";import"./chunk-BNJ4S4NE.js";import{g as mt,h as pt,j as dt,m as W}from"./chunk-N37DZZN7.js";import{a as ct}from"./chunk-OD6I7YAT.js";import"./chunk-YQKICT5N.js";import"./chunk-6GTHYMO6.js";import"./chunk-LQWW6DAP.js";import"./chunk-QVMKUOA2.js";import"./chunk-DUEKGWVE.js";import{b as te,c as ie}from"./chunk-SV4QHZ6R.js";import"./chunk-J7WPYGOY.js";import{a as _e,c as it,j as nt,k as B,l as E}from"./chunk-ZY36BRPM.js";import"./chunk-WO2N3BGC.js";import"./chunk-WHTYCSAG.js";
3import"./chunk-MIRAE4HP.js";import{a as ne,e as H}from"./chunk-7V2B6WIV.js";import"./chunk-VMBK3ESP.js";import"./chunk-VQM3N5YY.js";import"./chunk-U2S4Q5VS.js";import"./chunk-7B3DFEIE.js";import"./chunk-QFRXUKCK.js";import{$b as I,$c as Le,Bb as p,Ca as qe,Cc as Ze,Eb as ze,Ec as _,Fc as M,Gc as $,Ld as O,O as Oe,P as pe,Rd as T,Sc as ge,Tc as Je,Ub as ee,Uc as X,Vc as ve,Wb as u,Yb as f,Z as We,Zc as v,_b as D,_c as C,_d as x,ac as S,ba as Te,bc as a,cc as r,db as de,dc as s,eb as J,ec as h,fc as G,gc as Q,ha as K,hc as ue,hd as y,jb as o,lc as N,ma as d,mc as Ge,md as U,nc as w,nd as m,o as Re,od as Ke,pc as c,qc as fe,rc as he,s as q,sa as A,sd as Ce,t as me,ta as R,u as ae,ua as Ee,xc as Qe,ya as je,yc as Xe,z as Ue,zc as Ye}from"./chunk-MPV5Q6GW.js";import"./chunk-THKSGHO2.js";function Pt(){let e=Ue(window,"resize").pipe(We(null),q(()=>({width:window.innerWidth,height:window.innerHeight})));return it(e)}var Ut=(()=>{class e{transform(t){return(t||"").trim()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=ze({name:"trim",type:e,pure:!0})}}return e})();var Ne=(()=>{class e extends Et{constructor(){let t=d(be);super("browser",t),this.browserEnv=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac})}}return e})();var hi=["svg"],gi=e=>({height:e});function vi(e,l){if(e&1&&(Ee(),ue(0,"image",4)),e&2){let t=c();ee("width",t.imageWidth())("height",t.imageHeight())("href",t.imageUrl())("clip-path","url(#clip-"+t.nibbleId()+")")}}var Ot=(()=>{class e{constructor(){this.item=m(),this.width=m(),this.height=m(),this.rotation=y(()=>{let t=this.item();return!t||!t?.nibble?.userThumb?0:Number.parseInt(t?.nibble?.userThumb.split("/").at(-2)||"0")}),this.svg=Ke("svg"),this.windowResize=Pt(),this.svgWidth=y(()=>{let t=this.windowResize(),i=this.svg()?.nativeElement,n=i?i.getBoundingClientRect().width:1;return n===0?1:n}),this.svgHeight=y(()=>{let t=this.rotation(),i=this.width(),n=this.height(),g=this.svgWidth();return!i||!n||!g?0:t%180===0?n/(i/g):i/(n/g)}),this.pathAttributes=y(()=>{let t=this.item(),i=this.rotation(),n=this.width(),g=this.height();if(!t||!t.nibble.userValue||!n||!g)return"";let L=t.nibble.userValue.split("|");if(L.length<=1)return"";let F=L[1].split(",");if(F.length<=2)return"";let P="";i%180==0?P=`M ${+F[0]/n},${+F[1]/g*-1} L `:P=`M ${+F[0]/n},${+F[1]/g*-1} L `;for(let z=2;z<F.length;z+=2){let He=+F[z]/n,Pe=+F[z+1]/g;i%180==0?P+=`${He},${Pe*-1} `:P+=`${He},${Pe*-1} `}return P.trim()}),this.nibbleId=y(()=>{let t=this.item();return t?t.nibble.id:""}),this.viewBox=y(()=>{let t=this.rotation(),i=this.svgHeight(),n=this.svgWidth();return`0 0 ${n} ${t%180===0?i:n}`}),this.imageUrl=y(()=>{let t=this.item();if(!t)return"";let i=t.clientInfo.image;if(!i)return"";let n=Array.isArray(i.resource)?i.resource[0]:i.resource,g=n?n.service?.["@id"]??"":i["@id"]??"";return Nt(g,{size:"400,"})}),this.imageWidth=y(()=>{let t=this.rotation(),i=this.svgWidth(),n=this.svgHeight();return t%180===0?i+"px":n+"px"}),this.imageHeight=y(()=>{let t=this.rotation(),i=this.svgWidth(),n=this.svgHeight();return t%180===0?n+"px":i+"px"}),this.transform=y(()=>{let t=this.rotation(),i=this.svgWidth(),n=this.svgHeight();return"rotate("+t+", "+i/2+", "+(t%180===0?n:i)/2+")"}),this.styleHeight=y(()=>{let t=this.rotation(),i=this.svgWidth(),n=this.svgHeight();return t%180===0?n+"px":i+"px"})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-detail-annotation-clip-mask"]],viewQuery:function(i,n){i&1&&Qe(n.svg,hi,5),i&2&&Xe()},inputs:{item:[1,"item"],width:[1,"width"],height:[1,"height"]},decls:9,vars:13,consts:[["svg",""],["image",""],[1,"w-full"],["clipPathUnits","objectBoundingBox",3,"id"],["preserveAspectRatio","xMidYMid"]],template:function(i,n){i&1&&(Ee(),G(0,"svg",2,0)(2,"defs")(3,"clipPath",3),ue(4,"path"),Q()(),G(5,"g"),u(6,vi,1,4,":svg:image",4),ue(7,"image",4,1),Q()()),i&2&&(Ze(X(11,gi,n.styleHeight())),ee("viewBox",n.viewBox()),o(3),Ge("id","clip-"+n.nibbleId()),o(),ee("d",n.pathAttributes()),o(),ee("transform",n.transform()),o(),f(n.pathAttributes()?6:-1),o(),ee("height",n.imageHeight())("href",n.imageUrl())("opacity",n.pathAttributes()?.2:1)("width",n.imageWidth()))},encapsulation:2})}}return e})();
3var Ci=(e,l)=>["relative p-2 flex flex-col items-start gap-2 w-full",e,l];function _i(e,l){if(e&1){let t=N();r(0,"pc-shared-nibble-menu",5),w("editNibble",function(n){A(t);let g=c();return R(g.onEditNibble(n))})("modifyCrop",function(n){A(t);let g=c();return R(g.onModifyCrop(n))})("removeNibbleFromCollection",function(){A(t);let n=c();return R(n.onRemoveNibbleFromCollection())})("detailClosed",function(){A(t);let n=c();return R(n.onDetailClosed())}),s()}if(e&2){let t=c();a("hasButtonBackground",!0)("nibbleCut",t.item)}}function bi(e,l){if(e&1&&(r(0,"div",4),_(1),s()),e&2){let t=c();o(),$(" ",t.item.clientInfo.header.label," ")}}function yi(e,l){if(e&1&&(r(0,"div"),_(1),v(2,"striphtml"),v(3,"trim"),v(4,"truncate"),s()),e&2){let t=c();o(),M(Le(4,6,C(3,4,Le(2,1,t.item.nibble.note," ")),90))}}var Wt=(()=>{class e{constructor(){this.detailSettingsRepository=d(De),this.detailOpenLayersV2=d(Se),this.detailOpenLayersV3=d(Ve),this.cdr=d(Ce),this.highlight=m(!1),this.active=m(!1),this.width=m(0),this.height=m(0),this.loading=qe(!1),this.nibbleGet=d(vt)}get item(){return this._item}set item(t){this._item=t}onModifyCrop(t){this.detailSettingsRepository.toolMode="modify",this.detailOpenLayersV2.setFeatureToModify(t),this.detailOpenLayersV3.setFeatureToModify(t)}onEditNibble(t){this.loading.set(!0),this.nibbleGet.get(t.nibble.id).pipe(pe(()=>this.loading.set(!1))).subscribe(i=>{this._item=i,this.cdr.detectChanges()})}isEditMode(){return this._item?.mode==="edit"}onRemoveNibbleFromCollection(){this.detailOpenLayersV2.refresh(),this.detailOpenLayersV3.refresh()}onDetailClosed(){this.detailOpenLayersV2.refresh(),this.detailOpenLayersV3.refresh()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-detail-annotation-crop-item"]],inputs:{highlight:[1,"highlight"],active:[1,"active"],width:[1,"width"],height:[1,"height"],item:"item"},decls:6,vars:11,consts:[[3,"ngClass"],[3,"loading"],["context","crop-list",1,"absolute","top-4","right-4",3,"hasButtonBackground","nibbleCut"],[1,"w-full",3,"height","item","width"],[1,"my-2","text-lg"],["context","crop-list",1,"absolute","top-4","right-4",3,"editNibble","modifyCrop","removeNibbleFromCollection","detailClosed","hasButtonBackground","nibbleCut"]],template:function(i,n){i&1&&(r(0,"div",0),h(1,"aipb-inside-loading",1),u(2,_i,1,2,"pc-shared-nibble-menu",2),h(3,"browser-detail-annotation-clip-mask",3),u(4,bi,2,1,"div",4),u(5,yi,5,9,"div"),s()),i&2&&(a("ngClass",ve(8,Ci,n.highlight()?"border-l-4 border-solid border-cyan-200":"",n.active()?"border-l-4 border-solid border-primary":"")),o(),a("loading",n.loading()),o(),f(n.isEditMode()?2:-1),o(),a("height",n.height())("item",n.item)("width",n.width()),o(),f(n.item&&n.item.clientInfo.header.label?4:-1),o(),f(n.item&&n.item.nibble.note?5:-1))},dependencies:[x,O,we,H,It,Ot,E,_t,bt,Ut],styles:[`img[_ngcontent-%COMP%]{max-height:300px}
4/*# sourceMappingURL=detail-annotation-crop-item.component-3BHWSV4I.css.map */`]})}}return e})();function wi(e,l){e&1&&(r(0,"span"),_(1),v(2,"transloco"),s()),e&2&&(o(),M(C(2,1,"browser.detail_annotation.logged_in_message")))}function xi(e,l){e&1&&(r(0,"span"),_(1),v(2,"transloco"),s()),e&2&&(o(),M(C(2,1,"browser.detail_annotation.logged_out_message")))}function Mi(e,l){if(e&1&&(r(0,"div",0),u(1,wi,3,3,"span"),u(2,xi,3,3,"span"),s()),e&2){let t=c();o(),f(t.isLoggedIn()?1:-1),o(),f(t.isLoggedIn()?-1:2)}}function Di(e,l){if(e&1){let t=N();r(0,"div",2),w("click",function(){let n=A(t).$implicit,g=c();return R(g.detail.emit(n))}),h(1,"browser-detail-annotation-crop-item",3),v(2,"async"),v(3,"async"),s()}if(e&2){let t=l.$implicit,i=c();o(),a("active",C(2,5,i.selectIsActive(t)))("height",i.height())("highlight",C(3,7,i.selectIsHighlighted(t)))("item",t)("width",i.width())}}var jt=(()=>{class e{constructor(){this.detailAnnotationRepository=d(Me),this.items=m([]),this.isLoggedIn=m(!1),this.detail=U(),this.width=this.detailAnnotationRepository.width,this.height=this.detailAnnotationRepository.height}selectIsHighlighted(t){return this.detailAnnotationRepository.selectIsHighlighted(t)}selectIsActive(t){return this.detailAnnotationRepository.selectActiveNibbleId(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-detail-annotation-crop-list"]],inputs:{items:[1,"items"],isLoggedIn:[1,"isLoggedIn"]},outputs:{detail:"detail"},decls:3,vars:1,consts:[[1,"p-2"],["aipbHoverHighlight","",1,"border-bottom","w-full","last:border-0","cursor-pointer"],["aipbHoverHighlight","",1,"border-bottom","w-full","last:border-0","cursor-pointer",3,"click"],[3,"active","height","highlight","item","width"]],template:function(i,n){i&1&&(u(0,Mi,3,2,"div",0),I(1,Di,4,9,"div",1,D)),i&2&&(f(n.items().length===0?0:-1),o(),S(n.items()))},dependencies:[x,E,Y,Wt,T,B],styles:[`.crop-image[_ngcontent-%COMP%]{max-height:250px}
5/*# sourceMappingURL=detail-annotation-crop-list.component-EMDCLGBO.css.map */`]})}}return e})();var Gt=(()=>{class e{constructor(){this.detailAnnotationRepository=d(Me),this.auth=d(ye),this.closeSidenav=U(),this.nibbleCuts$=this.detailAnnotationRepository.nibbleCuts$,this.loading$=this.detailAnnotationRepository.loading$,this.isLoggedIn$=this.auth.isLoggedIn$()}onDetail(t){this.detailAnnotationRepository.setActiveNibbleId(t.nibble.id)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-detail-annotation"]],outputs:{closeSidenav:"closeSidenav"},decls:13,vars:12,consts:[[1,"h-full","flex","flex-col"],[1,"flex","justify-between","items-center","p-2","border-bottom","text-lg"],["mat-icon-button","",3,"click"],[1,"flex-auto","overflow-auto",3,"detail","isLoggedIn","items"],[3,"loading"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"div"),_(3),v(4,"transloco"),s(),r(5,"button",2),w("click",function(){return n.closeSidenav.emit()}),r(6,"mat-icon"),_(7,"close"),s()()(),r(8,"browser-detail-annotation-crop-list",3),v(9,"async"),v(10,"async"),w("detail",function(L){return n.onDetail(L)}
5),s()(),h(11,"aipb-inside-loading",4),v(12,"async")),i&2&&(o(3),M(C(4,4,"browser.detail.crops_and_annotations")),o(5),a("isLoggedIn",C(9,6,n.isLoggedIn$))("items",C(10,8,n.nibbleCuts$)),o(3),a("loading",C(12,10,n.loading$)))},dependencies:[x,H,ne,ie,te,E,jt,we,T,B],encapsulation:2})}}return e})();var Ii=["*"],re=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["aipb-list"]],ngContentSelectors:Ii,decls:2,vars:0,consts:[[1,"flex","flex-col","gap-2"]],template:function(i,n){i&1&&(fe(),G(0,"div",0),he(1),Q())},encapsulation:2})}}return e})();var Si=["*"],Z=(()=>{class e{constructor(){this.label=m()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["aipb-list-item"]],inputs:{label:[1,"label"]},ngContentSelectors:Si,decls:4,vars:1,consts:[[1,"mb-0.5"],[1,"text-sm","text-gray"]],template:function(i,n){i&1&&(fe(),G(0,"span",0),_(1),Q(),G(2,"div",1),he(3),Q()),i&2&&(o(),M(n.label()))},encapsulation:2})}}return e})();var Qt=(()=>{class e{constructor(){this.label=m(),this.html=m()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["aipb-list-item-html"]],inputs:{label:[1,"label"],html:[1,"html"]},decls:2,vars:2,consts:[[3,"label"],[3,"innerHTML"]],template:function(i,n){i&1&&(r(0,"aipb-list-item",0),h(1,"div",1),s()),i&2&&(a("label",n.label()),o(),a("innerHTML",n.html(),de))},dependencies:[Z],encapsulation:2})}}return e})();var Xt=(()=>{class e{constructor(){this.label=m(),this.value=m()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["aipb-list-item-string"]],inputs:{label:[1,"label"],value:[1,"value"]},decls:2,vars:2,consts:[[3,"label"]],template:function(i,n){i&1&&(r(0,"aipb-list-item",0),_(1),s()),i&2&&(a("label",n.label()),o(),$(" ",n.value(
5),`
6`))},dependencies:[Z],encapsulation:2})}}return e})();var Ae=(()=>{class e{constructor(){this.label=m(),this.url=m()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["aipb-list-item-url"]],inputs:{label:[1,"label"],url:[1,"url"]},decls:3,vars:3,consts:[[3,"label"],["target","_blank",1,"hover:underline","text-primary","break-all",3,"href"]],template:function(i,n){i&1&&(r(0,"aipb-list-item",0)(1,"a",1),_(2),s()()),i&2&&(a("label",n.label()),o(),a("href",n.url(),J),o(),$(" ",n.url()," "))},dependencies:[Z],encapsulation:2})}}return e})();function Vi(e,l){if(e&1&&(r(0,"a",1),_(1),s()),e&2){let t=l.$implicit;a("href",t,J),o(),$(" ",t," ")}}var Yt=(()=>{class e{constructor(){this.label=m(),this.urls=m([])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["aipb-list-item-url-array"]],inputs:{label:[1,"label"],urls:[1,"urls"]},decls:3,vars:1,consts:[[3,"label"],["target","_blank",1,"hover:underline","text-primary","break-all",3,"href"]],template:function(i,n){i&1&&(r(0,"aipb-list-item",0),I(1,Vi,2,2,"a",1,D),s()),i&2&&(a("label",n.label()),o(),S(n.urls()))},dependencies:[Z],encapsulation:2})}}return e})();function Ai(e,l){if(e&1&&(h(0,"aipb-list-item-string",1),v(1,"transloco")),e&2){let t=c();a("label",C(1,2,"browser.copyright.attribution"))("value",t.attribution())}}function Ri(e,l){if(e&1&&(h(0,"aipb-list-item-url",2),v(1,"transloco")),e&2){let t=c();a("label",C(1,2,"browser.copyright.license"))("url",t.license())}}var Zt=(()=>{class e{constructor(){this.manifest=m(),this.license=y(()=>{let t=this.manifest();return t?Fe(t.license)?t.license[0]:t.license:""}),this.attribution=y(()=>{let t=this.manifest();if(!t||!t.attribution)return"";if(Fe(t.attribution)){let i=t.attribution;return Be(i[0])?i[0]:i[0]["@value"]}else{let i=t.attribution;return Be(i)?i:i["@value"]}})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-copyright-v2"]],inputs:{manifest:[1,"manifest"]},decls:4,vars:2,consts:[[1,"p-3"],[3,"label","value"],[3,"label","url"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"aipb-list"),u(2,Ai,2,4,"aipb-list-item-string",1),u(3,Ri,2,4,"aipb-list-item-url",2),s()()),i&2&&(o(2),f(n.attribution()?2:-1),o(),f(n.license()?3:-1))},dependencies:[W,re,Xt,Ae,B],encapsulation:2,changeDetection:0})}}return e})();var Jt=(()=>{class e{constructor(){this.manifest=m()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-copyright-v3"]],inputs:{manifest:[1,"manifest"]},decls:0,vars:0,template:function(i,n){},dependencies:[W],encapsulation:2})}}return e})();function Ti(e,l){if(e&1&&h(0,"browser-copyright-v2",0),e&2){let t=c();a("manifest",t.manifestV2())}}function Ei(e,l){if(e&1&&h(0,"browser-copyright-v3",0),e&2){let t=c();a("manifest",t.manifestV3())}}var Kt=(()=>{class e{constructor(){this.version=m(2),this.manifestV2=m.required(),this.manifestV3=m.required()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-copyright"]],inputs:{version:[1,"version"],manifestV2:[1,"manifestV2"],manifestV3:[1,"manifestV3"]},decls:2,vars:2,consts:[[3,"manifest"]],template:function(i,n){i&1&&(u(0,Ti,1,1,"browser-copyright-v2",0),u(1,Ei,1,1,"browser-copyright-v3",0)),i&2&&(f(n.version()===2?0:-1),o(),f(n.version()===3?1:-1))},dependencies:[Zt,Jt],encapsulation:2,changeDetection:0})}}return e})();var Li=e=>[e];function Fi(e,l){if(e&1&&(r(0,"li",0)(1,"div")(2,"div"),_(3),s(),h(4,"div",1),s()()),e&2){let t=l.$implicit,i=l.$index,n=l.$count;a("ngClass",X(3,Li,i!==n-1?"mb-2":"")),o(3),M(t.label),o(),a("innerHTML",t.value,de)}}var ei=(()=>{class e{constructor(){this.items=m([])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-description-metadata-list"]],inputs:{items:[1,"items"]},decls:3,vars:0,consts:[[3,"ngClass"],[1,"text-sm","text-gray",3,"innerHTML"]],template:function(i,n){i&1&&(r(0,"ul"),I(1,Fi,5,5,"li",0,D),s()),i&2&&(o(),S(n.items()))},dependencies:[x,O,W],encapsulation:2,changeDetection:0})}}return e})();function Bi(e,l){if(e&1&&h(0,"aipb-list-item-html",0),e&2){let t=l.$implicit;a("html",t.value)("label",t.key)}}function Ni(e,l){if(e&1&&(r(0,"aipb-list"),I(1,Bi,1,2,"aipb-list-item-html",0,D),s()),e&2){let t=c();o(),S(t.items())}}var ti=(()=>{class e{constructor(){this.manifest=m(),this.items=y(()=>{let t=this.manifest();return!t||!t.metadata?[]:t.metadata.map(i=>({key:i.label,value:i.value}))})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-description-v2"]],inputs:{manifest:[1,"manifest"]},decls:1,vars:1,consts:[[3,"html","label"]],template:function(i,n){i&1&&u(0,Ni,3,0,"aipb-list"),i&2&&f(n.manifest()?0:-1)},dependencies:[Qt,re],encapsulation:2,changeDetection:0})}}return e})();function $i(e,l){if(e&1&&(r(0,"div",0),h(1,"browser-description-metadata-list",1),s()),e&2){let t=c();o(),a("items",t.metadataItems())}}var ii=(()=>{class e{constructor(){this.manifest=m(),this.metadataItems=y(()=>{let t=this.manifest();return!t||!t?.metadata?[]:t.metadata.map(i=>({label:se(i.label),value:se(i.value)}))})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-description-v3"]],inputs:{manifest:[1,"manifest"]},decls:1,vars:1,consts:[[1,"bg-white","p-3"],[3,"items"]],template:function(i,n){i&1&&u(0,$i,2,1,"div",0),i&2&&f(n.manifest()?0:-1)},dependencies:[ei],encapsulation:2,changeDetection:0})}}return e})();var le="https://www.aipberoun.cz/gulliver/";function ki(e,l){e&1&&h(0,"aipb-list-item-url",1),e&2&&a("url",l)}function Hi(e,l){if(e&1&&(r(0,"aipb-list"),h(1,"aipb-list-item-url",0),u(2,ki,1,1,"aipb-list-item-url",1),h(3,"aipb-list-item-url-array",2),v(4,"transloco"),h(5,"aipb-list-item-url-array",2),v(6,"transloco"),s()),e&2){let t,i=c();o(),a("url",l["@id"]),o(),f((t=i.enhancedManifestUrl())?2:-1,t),o(),a("label",C(4,6,"browser.see_also.related_catalogue_records"))("urls",i.relatedCatalogueRecords()),o(2),a("label",C(6,8,"browser.see_also.links"))("urls",i.links())}}var ni=(()=>{class e{constructor(){this.manifest=m(),this.enhancedManifestUrl=y(()=>{let t=this.manifest();if(!t||!this.auth.isLoggedIn())return;let i=new URL(this.iiifApi.getEnhancedManifestUrl(this.auth.token,{uid:this.auth.getUserId()||"",serviceValue:t["@id"]}
6));return i.searchParams.delete("token"),i.toString()}),this.#e=y(()=>{let t=this.manifest();if(!t)return[];let i=t.seeAlso;return Array.isArray(i)?i:i?[i]:[]}),this.links=y(()=>this.#e().filter(t=>t.profile!==le).map(t=>t["@id"])),this.relatedCatalogueRecords=y(()=>this.#e().filter(t=>t.profile===le).map(t=>t["@id"])),this.iiifApi=d(gt),this.auth=d(ye)}#e;static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-see-also-v2"]],inputs:{manifest:[1,"manifest"]},decls:1,vars:1,consts:[["label","IIIF Manifest",3,"url"],["label","Personal Content IIIF Manifest",3,"url"],[3,"label","urls"]],template:function(i,n){if(i&1&&u(0,Hi,7,10,"aipb-list"),i&2){let g;f((g=n.manifest())?0:-1,g)}},dependencies:[E,W,re,Ae,Yt,B],encapsulation:2,changeDetection:0})}}return e})();function $e(e,l){return(e||[]).filter(t=>l===(t.profile===le))}function Pi(e,l){if(e&1&&(r(0,"a",1),_(1),s()),e&2){let t=l.$implicit;a("href",t.id,J),o(),$(" ",t.id," ")}}function Ui(e,l){if(e&1&&(r(0,"a",1),_(1),s()),e&2){let t=l.$implicit;a("href",t.id,J),o(),$(" ",t.id," ")}}var oi=(()=>{class e{constructor(){this.manifest=m(),this.relatedCatalogItems=y(()=>{let t=this.manifest();return $e(t?.seeAlso||[],!0)}),this.otherItems=y(()=>{let t=this.manifest();return $e(t?.seeAlso||[],!1)})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-see-also-v3"]],inputs:{manifest:[1,"manifest"]},decls:12,vars:6,consts:[["mat-subheader",""],["mat-list-item","","target","_blank",3,"href"]],template:function(i,n){i&1&&(r(0,"mat-list")(1,"div",0),_(2),v(3,"transloco"),s(),I(4,Pi,2,2,"a",1,D),h(6,"mat-divider"),r(7,"div",0),_(8),v(9,"transloco"),s(),I(10,Ui,2,2,"a",1,D),s()),i&2&&(o(2),M(C(3,2,"browser.see_also.related_catalogue_records")),o(2),S(n.relatedCatalogItems()),o(4),M(C(9,4,"browser.see_also.links")),o(2),S(n.otherItems()))},dependencies:[E,W,mt,pt,dt,ct,B],encapsulation:2,changeDetection:0})}}return e})();function Oi(e,l){if(e&1&&h(0,"browser-see-also-v2",0),e&2){let t=c();a("manifest",t.manifestV2())}}function Wi(e,l){if(e&1&&h(0,"browser-see-also-v3",0),e&2){let t=c();a("manifest",t.manifestV3())}}var ri=(()=>{class e{constructor(){this.version=m(2),this.manifestV2=m.required(),this.manifestV3=m.required()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-see-also"]],inputs:{version:[1,"version"],manifestV2:[1,"manifestV2"],manifestV3:[1,"manifestV3"]},decls:2,vars:2,consts:[[3,"manifest"]],template:function(i,n){i&1&&(u(0,Oi,1,1,"browser-see-also-v2",0),u(1,Wi,1,1,"browser-see-also-v3",0)),i&2&&(f(n.version()===2?0:-1),o(),f(n.version()===3?1:-1))},dependencies:[ni,oi],encapsulation:2,changeDetection:0})}}return e})();function ji(e,l){if(e&1&&h(0,"browser-description-v2",2),e&2){let t=c();a("manifest",t.manifestV2())}}function qi(e,l){if(e&1&&h(0,"browser-description-v3",2),e&2){let t=c();a("manifest",t.manifestV3())}}var ai=(()=>{class e{constructor(){this.version=m(2),this.manifestV2=m.required(),this.manifestV3=m.required()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-description"]],inputs:{version:[1,"version"],manifestV2:[1,"manifestV2"],manifestV3:[1,"manifestV3"]},decls:14,vars:11,consts:[["displayMode","flat","multi","",1,"mat-elevation-z0"],["expanded",""],[3,"manifest"],[3,"manifestV2","manifestV3","version"]],template:function(i,n){i&1&&(r(0,"mat-accordion",0)(1,"mat-expansion-panel",1)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),_(4),v(5,"transloco"),s()(),u(6,ji,1,1,"browser-description-v2",2),u(7,qi,1,1,"browser-description-v3",2),s(),r(8,"mat-expansion-panel",1)(9,"mat-expansion-panel-header")(10,"mat-panel-title"),_(11),v(12,"transloco"),s()(),h(13,"browser-see-also",3),s()()),i&2&&(o(4),M(C(5,7,"browser.info.resource")),o(2),f(n.version()===2?6:-1),o(),f(n.version()===3?7:-1),o(4),M(C(12,9,"browser.info.related")),o(2),a("manifestV2",n.manifestV2())("manifestV3",n.manifestV3())("version",n.version()))},dependencies:[ti,ii,Dt,Mt,yt,wt,xt,ri,E,B],encapsulation:2,changeDetection:0})}}return e})();var ce=(()=>{class e{constructor(){this.collectionRepository=d(V),this.browserRouting=d(k)}execute(t){if(!t.canvases||t.canvases.length===0)return;let i=t.canvases[0],n=this.collectionRepository.getAnnotationByCanvasIdV2(i);n&&this.browserRouting.detailDefault(this.collectionRepository.url,n["@id"])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac})}}return e})();var ke=(()=>{class e{constructor(){this.collectionRepository=d(V),this.browserRouting=d(k)}execute(t){if(!t.items||t.items.length===0)return;let i=t.items.filter(g=>typeof g!="string"&&"type"in g&&g.type==="Canvas")[0]?.id,n=this.collectionRepository.getAnnotationByCanvasId(i);n&&this.browserRouting.detailDefault(this.collectionRepository.url,n.id)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac})}}return e})();var zi=e=>["p-2 cursor-pointer",e];function Gi(e,l){if(e&1){let t=N();r(0,"div")(1,"div",0),v(2,"async"),w("click",function(){A(t);let n=c();return R(n.action.emit(n.item))}),r(3,"span"),_(4),s()()()}if(e&2){let t=c();o(),a("ngClass",X(4,zi,C(2,2,t.selectHighlighted())?"highlight":"")),o(3),M(t.item.label)}}var si=(()=>{class e{constructor(){this.depth=m(0),this.action=U(),this.collectionRepository=d(V)}selectHighlighted(){return this.collectionRepository.activeAnnotationV2$.pipe(q(t=>(this.item?.canvases||[]).some(i=>i===this.collectionRepository.getCanvasByAnnotationIdV2(t?.["@id"])?.["@id"])))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-structure-item-v2"]],inputs:{item:"item",depth:[1,"depth"]},outputs:{action:"action"},decls:1,vars:1,consts:[["aipbHoverHighlight","",3,"click","ngClass"]],template:function(i,n){i&1&&u(0,Gi,5,6,"div"),i&2&&f(n.item?0:-1)},dependencies:[x,O,Y,T],styles:[`[_nghost-%COMP%]   div.highlight[_ngcontent-%COMP%]{background-color:var(--mat-sys-secondary-container)}
7/*# sourceMappingURL=structure-item-v2.component-VX6XBZW4.css.map */`]})}}return e})();var Qi=e=>["flex items-center border-bottom",e],Xi=()=>[];function Yi(e,l){if(e&1){let t=N();r(0,"button",4),w("click",function(){A(t);let n=c();return R(n.expanded=!n.expanded)}),r(1,"mat-icon"),_(2),s()()}if(e&2){let t=c();o(2),M(t.expanded?"keyboard_arrow_down":"keyboard_arrow_right")}}function Zi(e,l){if(e&1&&(h(0,"browser-structure-list-v2",5),v(1,"async")),e&2){let t=l.$implicit,i=c(2);a("depth",i.depth()+1)("range",C(1,2,i.selectStructure(t)))}}function Ji(e,l){if(e&1&&(r(0,"div",3),I(1,Zi,2,4,"browser-structure-list-v2",5,D),s()),e&2){let t=c();o(),S((t.range==null?null:t.range.ranges)||Je(0,Xi))}}var li=(()=>{class e{constructor(){this.depth=m(0),this.expanded=!1,this.structureActionV2=d(ce),this.collectionRepository=d(V)}get hasRanges(){return this.range?this.range.ranges&&this.range.ranges.length>0:!1}selectStructure(t){return this.collectionRepository.selectStructureV2(t)}onAction(t){this.expanded=!this.expanded,this.structureActionV2.execute(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-structure-list-v2"]],inputs:{range:"range",depth:[1,"depth"]},decls:4,vars:7,consts:[[3,"ngClass"],[1,"flex-auto",3,"action","depth","item"],["aipbHoverHighlight","","mat-icon-button",""],[1,"ml-2"],["aipbHoverHighlight","","mat-icon-button","",3,"click"],[3,"depth","range"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"browser-structure-item-v2",1),w("action",function(L){return n.onAction(L)}),s(),u(2,Yi,3,1,"button",2),s(),u(3,Ji,3,1,"div",3)),i&2&&(a("ngClass",X(5,Qi,n.depth()>0?"border-left border-top":"")),o(),a("depth",n.depth())("item",n.range),o(),f(n.hasRanges?2:-1),o(),f(n.hasRanges&&n.expanded?3:-1))},dependencies:[e,x,O,si,H,ne,ie,te,Y,T],encapsulation:2})}}return e})();function Ki(e,l){if(e&1&&(r(0,"div"),h(1,"browser-structure-list-v2",3),v(2,"async"),s()),e&2){let t=l.$implicit,i=c(4);o(),a("range",C(2,1,i.selectStructure(t)))}}function en(e,l){e&1&&(r(0,"div",2),I(1,Ki,3,3,"div",null,D),s()),e&2&&(o(),S(l.ranges))}function tn(e,l){if(e&1&&(r(0,"div"),h(1,"browser-structure-list-v2",3),s()),e&2){let t=l.$implicit;o(),a("range",t)}}function nn(e,l){if(e&1&&(I(0,tn,2,1,"div",null,D),v(2,"async")),e&2){let t=c(3);S(C(2,0,t.structures$))}}function on(e,l){if(e&1&&(r(0,"div",0),u(1,en,3,0,"div",2),v(2,"async"),u(3,nn,3,2),v(4,"async"),s()),e&2){let t,i=c(2);o(),f((t=C(2,2,i.topStructure$))?1:-1,t),o(2),f(C(4,4,i.topStructure$)===void 0?3:-1)}}function rn(e,l){e&1&&(r(0,"div",1),_(1),v(2,"transloco"),s()),e&2&&(o(),$(" ",C(2,1,"browser.info.iiif_manifest_has_no_content")," "))}function an(e,l){if(e&1&&(u(0,on,5,6,"div",0),u(1,rn,3,3,"div",1)),e&2){let t=c();f(t.manifest.structures&&t.manifest.structures.length>0?0:-1),o(),f(!t.manifest.structures||t.manifest.structures.length===0?1:-1)}}var ci=(()=>{class e{constructor(){this.structureActionV2=d(ce),this.collectionRepository=d(V),this.topStructure$=this.collectionRepository.topStructureV2$,this.structures$=this.collectionRepository.structuresV2$}selectStructure(t){return this.collectionRepository.selectStructureV2(t)}onAction(t){this.structureActionV2.execute(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-structure-v2"]],inputs:{manifest:"manifest"},features:[ge([ce])],decls:1,vars:1,consts:[[1,"h-full","flex","flex-col"],[1,"p-3","text-gray"],[1,"flex-auto","overflow-auto"],[3,"range"]],template:function(i,n){i&1&&u(0,an,2,2),i&2&&f(n.manifest?0:-1)},dependencies:[x,H,E,li,T,B],encapsulation:2})}}return e})();var sn=(e,l)=>["p-2 border-left border-bottom cursor-pointer",e,l];function ln(e,l){if(e&1){let t=N();r(0,"div",2)(1,"browser-structure-item-v3",3),v(2,"async"),w("action",function(n){A(t);let g=c(3);return R(g.action.emit(n))}),s()()}if(e&2){let t=c().$implicit,i=c(2);o(),a("item",C(2,2,i.selectStructure(t.id)))("depth",i.depth()+1)}}function cn(e,l){if(e&1&&u(0,ln,3,4,"div",2),e&2){let t=l.$implicit,i=c(2);f(i.isRange(t)?0:-1)}}function mn(e,l){if(e&1){let t=N();r(0,"div")(1,"div",0),v(2,"async"),w("click",function(){A(t);let n=c();return R(n.action.emit(n.item))}),h(3,"browser-lib-international-string",1),s(),I(4,cn,1,1,null,null,D),s()}if(e&2){let t=c();o(),a("ngClass",ve(4,sn,t.depth()===0?"border-top":"",C(2,2,t.selectHighlighted())?"bg-red-50":"")),o(2),a("string",t.item.label),o(),S(t.item.items)}}var mi=(()=>{class e{constructor(){this.collectionRepository=d(V),this.depth=m(0),this.action=U()}selectStructure(t){return this.collectionRepository.selectStructureV3(t)}selectHighlighted(){return this.collectionRepository.activeAnnotationV3$.pipe(q(t=>(this.item?.items||[]).filter(i=>
7typeof i!="string"&&"type"in i&&i.type==="Canvas").some(i=>i.id===t?.target)))}isRange(t){return t.type==="Range"}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-structure-item-v3"]],inputs:{item:"item",depth:[1,"depth"]},outputs:{action:"action"},decls:1,vars:1,consts:[["aipbHoverHighlight","",3,"click","ngClass"],[3,"string"],[1,"pl-3"],[3,"action","item","depth"]],template:function(i,n){i&1&&u(0,mn,6,7,"div"),i&2&&f(n.item?0:-1)},dependencies:[e,x,O,Y,Ht,T],encapsulation:2})}}return e})();function pn(e,l){if(e&1){let t=N();r(0,"div")(1,"browser-structure-item-v3",2),v(2,"async"),w("action",function(n){A(t);let g=c(2);return R(g.onAction(n))}),s()()}if(e&2){let t=l.$implicit,i=c(2);o(),a("depth",0)("item",C(2,2,i.selectStructure(t.id)))}}function dn(e,l){e&1&&(r(0,"div",1),I(1,pn,3,4,"div",null,D),s()),e&2&&(o(),S(l.items))}var pi=(()=>{class e{constructor(){this.collectionRepository=d(V),this.topStructure$=this.collectionRepository.topStructureV3$,this.structureActionV3=d(ke)}selectStructure(t){return this.collectionRepository.selectStructureV3(t)}onAction(t){this.structureActionV3.execute(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-structure-v3"]],features:[ge([ke])],decls:3,vars:3,consts:[[1,"h-full","flex","flex-col"],[1,"flex-auto","overflow-auto"],[3,"action","depth","item"]],template:function(i,n){if(i&1&&(r(0,"div",0),u(1,dn,3,0,"div",1),v(2,"async"),s()),i&2){let g;o(),f((g=C(2,1,n.topStructure$))?1:-1,g)}},dependencies:[x,H,E,mi,T],encapsulation:2})}}return e})();function un(e,l){if(e&1&&h(0,"browser-structure-v2",0),e&2){let t=c();a("manifest",t.manifestV2())}}function fn(e,l){e&1&&h(0,"browser-structure-v3")}var di=(()=>{class e{constructor(){this.version=m(2),this.manifestV2=m.required(),this.manifestV3=m.required()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-structure"]],inputs:{version:[1,"version"],manifestV2:[1,"manifestV2"],manifestV3:[1,"manifestV3"]},decls:2,vars:2,consts:[[3,"manifest"]],template:function(i,n){i&1&&(u(0,un,1,1,"browser-structure-v2",0),u(1,fn,1,0,"browser-structure-v3")),i&2&&(f(n.version()===2?0:-1),o(),f(n.version()===3?1:-1))},dependencies:[ci,pi],encapsulation:2,changeDetection:0})}}return e})();function hn(e,l){if(e&1&&h(0,"browser-structure",11),e&2){let t=c();a("manifestV2",t.manifestV2)("manifestV3",t.manifestV3)("version",t.version)}}function gn(e,l){if(e&1&&h(0,"browser-description",11),e&2){let t=c();a("manifestV2",t.manifestV2)("manifestV3",t.manifestV3)("version",t.version)}}function vn(e,l){if(e&1&&h(0,"browser-copyright",11),e&2){let t=c();a("manifestV2",t.manifestV2)("manifestV3",t.manifestV3)("version",t.version)}}function Cn(e,l){if(e&1){let t=N();r(0,"div",1)(1,"div",2)(2,"span",3),_(3),s(),r(4,"button",4),w("click",function(){A(t);let n=c();return R(n.closeDrawer.emit())}),r(5,"mat-icon"),_(6,"close"),s()()(),r(7,"div",5)(8,"mat-button-toggle-group",6,0)(10,"mat-button-toggle",7),v(11,"transloco"),r(12,"mat-icon"),_(13,"list"),s()(),r(14,"mat-button-toggle",8),v(15,"transloco"),r(16,"mat-icon"),_(17,"info"),s()(),r(18,"mat-button-toggle",9),v(19,"transloco"),r(20,"mat-icon"),_(21,"copyright"),s()()()(),r(22,"div",10),u(23,hn,1,3,"browser-structure",11)(24,gn,1,3,"browser-description",11)(25,vn,1,3,"browser-copyright",11),s()()}if(e&2){let t,i=l,n=Ye(9);o(2),a("title",i.label),o(),$("",i.label," "),o(5),a("hideSingleSelectionIndicator",!0),o(2),a("title",C(11,7,"browser.info.structure")),o(4),a("title",C(15,9,"browser.info.metadata")),o(4),a("title",C(19,11,"browser.info.copyright")),o(5),f((t=n.value)==="structure"?23:t==="metadata"?24:t==="copyright"?25:-1)}}var ui=(()=>{class e{constructor(){this.closeDrawer=U(),this.collectionRepository=d(V),this.vm$=me({version:this.collectionRepository.version$,manifestV2:this.collectionRepository.manifestV2$,manifestV3:this.collectionRepository.manifestV3$,label:this.collectionRepository.version$.pipe(ae(t=>t===2?this.collectionRepository.manifestV2$.pipe(q(i=>i?i.label:"")):this.collectionRepository.manifestV3$.pipe(q(i=>i?se(i.label):""))))})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-info-container"]],outputs:{closeDrawer:"closeDrawer"},decls:2,vars:3,consts:[["group","matButtonToggleGroup"],[1,"h-full","flex","flex-col"],[1,"flex","justify-between","items-center","gap-2","p-2"],[1,"text-xl","flex-auto","whitespace-nowrap","overflow-hidden","text-ellipsis",3,"title"],["mat-icon-button","",3,"click"],[1,"px-2","pb-2","border-bottom"],["value","structure",3,"hideSingleSelectionIndicator"],["value","structure",3,"title"],["value","metadata",3,"title"],["value","copyright",3,"title"],[1,"flex-auto","overflow-auto"],[3,"manifestV2","manifestV3","version"]],template:function(i,n){if(i&1&&(u(0,Cn,26,13,"div",1),v(1,"async")),i&2){let g;f((g=C(1,1,n.vm$))?0:-1,g)}},dependencies:[x,Ct,Bt,Lt,Ft,E,ie,te,H,ne,ai,di,Kt,T,B],encapsulation:2})}}return e})();var fi=(()=>{class e{constructor(){this.frameService=d(at),this.browserEnv=d(be),this.browserRouting=d(k),this.collectionRepository=d(V),this.transloco=d(nt),this.collectionService=d(xe),this.cdr=d(Ce),this.detailSettingsRepository=d(De),this.singleInputDialog=d(lt),this.browserMiradorRouting=d(ft),this.route=d(et),this.showAnnotations$=this.detailSettingsRepository.showAnnotations$,this.version$=this.collectionRepository.version$,this.infoOpened=Ie.state,this.hasBrowserMiradorApp=d(st),this.sidebarService=d(rt),this.frameState=d(ot),this.castor=d(ht),this.destroyRef=d(je),this.sidebarService.setActions([...this.browserEnv.env.disableOpenManifestFromUrl?[]:[{label:this.transloco.translate("browser.frame_actions.open_manifest"),icon:"add_circle",visible:()=>!0,action:()=>{this.openManifestFromUrlDialog()}}]])}ngOnInit(){this.transloco.langChanges$.pipe(_e(this.destroyRef),Oe()).subscribe(t=>{this.initFrameActions()}),me([this.route.queryParams,this.collectionRepository.version$]).pipe(_e(this.destroyRef),ae(([t,i])=>{if(!("url"in t))return this.frameService.setStaticRoutes([]),this.sidebarService.setActions([...this.browserEnv.env.disableOpenManifestFromUrl?[]:[{label:this.transloco.translate("browser.frame_actions.open_manifest"),icon:"add_circle",visible:()=>!0,action:()=>{this.openManifestFromUrlDialog()}}]]),this.browserRouting.dashboardDefault(),Re(null);this.initFrameActions(),this.frameService.setStaticRoutes([{label:"browser.frame_actions.gallery",url:this.browserRouting.galleryDefaultRouteUrl(),icon:"grid_view",queryParams:{url:t.url}},{label:"browser.frame_actions.details",url:this.browserRouting.detailDefaultRouteUrl(),icon:"image",queryParams:{url:t.url}},...this.browserEnv.env.relationApiUrl?[{label:"browser.frame_actions.relation",url:this.browserRouting.relationDefaultRouteUrl(),icon:"list",queryParams:{url:t.url}}]:[]]),this.frameState.setLoading(!0);let n=ut(t.url,this.browserEnv.env.quickModeDomains||[]);return this.collectionService.fetch(t.url,n).pipe(Te(()=>{if(this.collectionRepository.hasStructures||Ie.set(!1),"imageId"in t){let g,L;t.imageId.endsWith("/")?(g=t.imageId,L=t.imageId.slice(0,-1)):(g=t.imageId+"/",L=t.imageId);let F=i===2?this.collectionRepository.getAnnotationV2(g):this.collectionRepository.getAnnotationV3(g),P=i===2?this.collectionRepository.getAnnotationV2(L):this.collectionRepository.getAnnotationV3(L),z;F?z=F:P&&(z=P),this.collectionService.setActiveImage(z)}else(i===2?this.collectionRepository.annotationsV2:this.collectionRepository.annotations).some(L=>"id"in L?L.id===this.collectionRepository.activeAnnotationId:L["@id"]===this.collectionRepository.activeAnnotationId)||this.collectionService.setActiveAnnotationId(void 0)}),ae(()=>this.browserEnv.env.aiCastorUrl?(this.castor.setCastorUrl(this.browserEnv.env.aiCastorUrl),this.castor.solrSearch({query:`manifestURL:"${t.url}"`,rows:this.collectionRepository.getFullAnnotationCount(i)||1}).pipe(Te(g=>{let L=[...new Set(g.recordList.flatMap(F=>(F.canvasContains||[]).filter(P=>P!=="")))];this.collectionRepository.setAiCanvasFeatures(L),g.recordList.forEach(F=>{this.collectionRepository.setAiFeature(F.canvasURL,F.canvasContains||[])})}))):Re(null)),pe(()=>{this.initFrameActions(),this.frameState.setLoading(!1),this.cdr.detectChanges()}))}),_e(this.destroyRef)).subscribe()}onDrawerOpenedChange(){window.dispatchEvent(new Event("resize"))}
7initFrameActions(){let t=this.route.snapshot.queryParams,i="url"in t?t.url:void 0;i&&this.sidebarService.setActions([...this.browserEnv.env.disableOpenManifestFromUrl?[]:[{label:this.transloco.translate("browser.frame_actions.open_manifest"),icon:"add_circle",visible:()=>!0,action:()=>{this.openManifestFromUrlDialog()}}],...this.hasBrowserMiradorApp?[{label:this.transloco.translate("browser.frame_actions.switch_to_mirador"),logo:"assets/mirador_logo.png",visible:()=>!0,action:()=>{this.browserMiradorRouting.default(i)}}]:[]])}onCloseDetailAnnotationDrawer(){this.detailSettingsRepository.showAnnotations=!1}onCloseInfoDrawer(){Ie.set(!1)}openManifestFromUrlDialog(){this.singleInputDialog.open$({title:this.transloco.translate("browser.open_manifest_dialog.title"),inputLabel:this.transloco.translate("browser.open_manifest_dialog.manifest_url"),confirmButtonLabel:this.transloco.translate("dialog.buttons.confirm")}).subscribe(t=>{t&&this.browserRouting.galleryDefault(t)})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=p({type:e,selectors:[["browser-entry"]],decls:10,vars:4,consts:[["frame-main","",1,"h-full"],[1,"h-full"],["mode","side","position","start",1,"w-[90%]","md:w-[400px]",3,"openedChange","opened"],[3,"closeDrawer"],["mode","side","position","end",1,"max-w-[300px]",3,"openedChange","opened"],[3,"closeSidenav"]],template:function(i,n){i&1&&(r(0,"fr-frame")(1,"mat-drawer-container",0)(2,"mat-drawer-content")(3,"div",1),h(4,"router-outlet"),s()(),r(5,"mat-drawer",2),w("openedChange",function(){return n.onDrawerOpenedChange()}),r(6,"browser-info-container",3),w("closeDrawer",function(){return n.onCloseInfoDrawer()}),s()(),r(7,"mat-drawer",4),v(8,"async"),w("openedChange",function(){return n.onDrawerOpenedChange()}),r(9,"browser-detail-annotation",5),w("closeSidenav",function(){return n.onCloseDetailAnnotationDrawer()}),s()()()()),i&2&&(o(5),a("opened",n.infoOpened()),o(2),a("opened",C(8,2,n.showAnnotations$)))},dependencies:[x,tt,Rt,Vt,At,St,Gt,ui,Tt,T],encapsulation:2})}}return e})();var Xs=[{path:"",redirectTo:"default",pathMatch:"prefix"},{path:k.configPath,component:fi,canActivate:[Ne],providers:[V,xe,Ne,kt,$t,Se,Ve],children:[{path:"",pathMatch:"full",redirectTo:k.dashboardPath},{path:k.dashboardPath,loadChildren:()=>import("./chunk-6WVT7WFW.js").then(e=>e.DashboardRoutes)},{path:k.galleryPath,loadChildren:()=>import("./chunk-6IPWZQAU.js").then(e=>e.GalleryRoutes)},{path:k.detailPath,loadChildren:()=>import("./chunk-BHSWQ6UD.js").then(e=>e.DetailRoutes)},{path:k.relationPath,loadChildren:()=>import("./chunk-M5O43MY4.js").then(e=>e.RelationRoutes)}]}];export{Xs as BrowserRoutes};
8//# sourceMappingURL=chunk-BVA4NNT2.js.map
9
10//# debugId=d51791bc-42b3-5bc3-8a56-7eea41044d3b

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.