PageSourceSearch

https://www.manuscriptorium.com/hub/chunk-B5RR7OVA.js

js manuscriptorium.com collected 2026-10-01 12:00:40 UTC 52,799 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]="afbe42bc-8f74-599b-8206-d37cbda3a644")}catch(e){}}();
3import{a as ut,c as wt,d as kt,e as Et}from"./chunk-XRWU3RL5.js";import{a as dt}from"./chunk-GARJEAVZ.js";import{b as It,d as Nt}from"./chunk-NERU6AOH.js";import{a as Vt}from"./chunk-7UFVSFAJ.js";import"./chunk-CBUHJ46T.js";import{b as Bt}from"./chunk-7UB3EGHD.js";import{a as gt}from"./chunk-5UQCCOJX.js";import{a as Ft,b as Ot}from"./chunk-456OCPNL.js";import"./chunk-FOEBA2UI.js";import{a as Tt,b as Dt}from"./chunk-Q7HO4EIY.js";import"./chunk-BSWOONOW.js";import{g as Lt}from"./chunk-5K6C2BVP.js";import"./chunk-OQNALS63.js";import"./chunk-G4B7HIC3.js";import"./chunk-2B4ITIT4.js";import"./chunk-GF47EVLL.js";import"./chunk-CUYRVARM.js";import"./chunk-TMXQOQAZ.js";import"./chunk-SLFYNCPI.js";import"./chunk-5UHMJW36.js";import"./chunk-IYUMFKEF.js";import"./chunk-NEXQTY2J.js";import"./chunk-72MAIYUE.js";import"./chunk-TZKEWVNV.js";import{a as we,b as St}from"./chunk-PZOOARXM.js";import{a as vt}from"./chunk-7R3THJ2K.js";import"./chunk-IOINOP65.js";import"./chunk-3XNYGLID.js";import{a as yt}from"./chunk-IJF47LEK.js";import{a as nt}from"./chunk-F67WLCRU.js";import{a as ge}from"./chunk-3HPJAYXA.js";import{h as _t}from"./chunk-NDD7CGWO.js";import{b as ye}from"./chunk-2MPNCLOG.js";import"./chunk-WRVXBG7J.js";import{a as bt}from"./chunk-M5SB6ROH.js";import{a as st}from"./chunk-MOXU7POH.js";import"./chunk-DSVZN727.js";import"./chunk-AGMLPEIF.js";import"./chunk-7XZ45MZ2.js";import{a as at}from"./chunk-GDGD3Y6P.js";import"./chunk-HIB5XO7Q.js";import"./chunk-EKYHFVDS.js";import{a as xt}from"./chunk-M7WNTR54.js";import{a as ft}from"./chunk-3LWNFNGE.js";import"./chunk-XBXX6QLX.js";import"./chunk-TL6QDTBW.js";import{a as ht}from"./chunk-JV2L7MYN.js";import"./chunk-ZFYENID4.js";import{a as Ct}from"./chunk-MXYA7GQW.js";import{a as me}from"./chunk-LWMYXBS5.js";import{a as pt}from"./chunk-W35CTE5C.js";import{b as Mt}from"./chunk-4EMHEHJ6.js";import{a as mt,b as Me}from"./chunk-6645EZR4.js";import{a as ae}from"./chunk-XFAF5S7Z.js";import{a as ve}from"./chunk-M4IILFJ3.js";import"./chunk-25TLZWGN.js";import"./chunk-X4MIQBLO.js";import{b as rt,i as ct}from"./chunk-OJGT5CO7.js";import"./chunk-3HJQ4TOJ.js";import{a as X,c as K,d as Y,e as P}from"./chunk-SKTI4NAC.js";import"./chunk-6DUIK7YH.js";import"./chunk-OGLZVKAI.js";import"./chunk-F3DIDVL3.js";import"./chunk-ED6XGBQZ.js";import{b as Ke}from"./chunk-WIA6ODZO.js";import"./chunk-HL46H2EF.js";import"./chunk-AL3IGSFY.js";import"./chunk-Y6MFRVHJ.js";import{a as re}from"./chunk-QZCSODQJ.js";import"./chunk-EVYTSREZ.js";import"./chunk-2VJVLRAK.js";import"./chunk-T3VVOZZT.js";import{a as Xe}from"./chunk-VL3JZD4E.js";import{a as Q}from"./chunk-YC2LWIB2.js";import"./chunk-GOKWZW6W.js";import"./chunk-WUY2JFPV.js";import"./chunk-Y3UE7WYA.js";import"./chunk-DIGISOJZ.js";import{a as Ne}from"./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"./chunk-UCBWKLJS.js";import{f as Ye,o as Qe,s as Je,t as Ze}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 ot}from"./chunk-CDLPTF5L.js";import"./chunk-JXYUH2JJ.js";import"./chunk-75MSKHQ5.js";import{a as W}from"./chunk-DBAVNV7D.js";import"./chunk-LZANT4A3.js";import{b as q}from"./chunk-2IL73E45.js";import"./chunk-VQTNL4J6.js";import{b as Ge,c as We,e as qe}from"./chunk-NXGCLNSX.js";import"./chunk-BNJ4S4NE.js";import"./chunk-N37DZZN7.js";import{a as ce,b as lt}from"./chunk-OD6I7YAT.js";import"./chunk-YQKICT5N.js";import"./chunk-6GTHYMO6.js";import"./chunk-LQWW6DAP.js";import"./chunk-QVMKUOA2.js";import{E as it}from"./chunk-DUEKGWVE.js";import{b as F,c as N}from"./chunk-SV4QHZ6R.js";import{k as $e,m as ze}from"./chunk-J7WPYGOY.js";import{a as H,j as L,k as B,l as O}from"./chunk-WZYMWVAN.js";import"./chunk-WO2N3BGC.js";import"./chunk-WHTYCSAG.js";
3import"./chunk-MIRAE4HP.js";import{a as xe,b as G,f as k}from"./chunk-LKCBMZWZ.js";import"./chunk-VMBK3ESP.js";import{c as et,g as tt}from"./chunk-VQM3N5YY.js";import"./chunk-U2S4Q5VS.js";import"./chunk-7B3DFEIE.js";import"./chunk-QFRXUKCK.js";import{$b as Ce,B as Fe,Bb as M,Bc as Re,Ca as j,Eb as Ue,Ec as p,Fc as V,G as be,Gc as y,Hb as ie,Ja as $,Ld as oe,P as ee,Qd as je,Rd as le,Tc as Ae,Uc as ne,Wb as h,Yb as g,Z as Oe,Zc as C,_b as _e,_c as f,_d as z,ac as fe,ba as pe,bc as m,cc as l,db as J,dc as a,dd as he,eb as R,ec as x,fb as Pe,g as Be,ha as S,hd as I,jb as c,kc as De,lc as v,ma as s,md as D,nc as _,nd as T,o as ue,p as Z,pc as r,sa as d,sd as He,ta as u,u as Te,ya as te,zc as A}from"./chunk-MPV5Q6GW.js";import{a as Ve,b as Le}from"./chunk-THKSGHO2.js";var Pt=(()=>{class t{constructor(){this.api=s(ae)}checkUpdate(e){return this.api.checkUpdate({id:e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ut=(()=>{class t extends q{async loadComponent(){return import("./chunk-IZCTRKZ3.js").then(e=>e.EditNibbleCollectionNoteDialogComponent)}dialogConfig(){return{minWidth:"80vw"}}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=$(t)))(n||t)}})()}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Rt=(()=>{class t extends q{async loadComponent(){return import("./chunk-2F7SCEAZ.js").then(e=>e.NibbleCommentsDialogComponent)}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=$(t)))(n||t)}})()}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Se=(()=>{class t{transform(e){return e&&e.replace(/ /g," ").replace(/\u00A0/g," ")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Ue({name:"removeNbsp",type:t,pure:!0})}}return t})();var mi=()=>[],di=t=>[t];function ui(t,b){t&1&&De(0)}function bi(t,b){t&1&&De(0)}function _i(t,b){if(t&1){let e=v();l(0,"button",9),C(1,"transloco"),_("click",function(){d(e);let n=r(2);return u(n.bulkEdit=!n.bulkEdit)}),l(2,"mat-icon"),p(3,"done_all"),a()()}if(t&2){let e=r(2);m("ngClass",ne(4,di,e.bulkEdit?"primary-icon-button":""))("title",f(1,2,"personal_content.titles.bulk_delete"))}}function Ci(t,b){if(t&1){let e=v();l(0,"mat-checkbox",10),_("change",function(n){d(e);let o=r(2);return u(o.setAll(n.checked))}),p(1),C(2,"transloco"),a()}if(t&2){let e=r(2);m("checked",e.allSelected())("indeterminate",e.someSelected()),c(),y(" ",f(2,3,"personal_content.titles.select_unselect_all")," ")}}function fi(t,b){if(t&1){let e=v();l(0,"button",5),C(1,"transloco"),_("click",function(){d(e);let n=r(2);return u(n.onDeleteSelectedNibbles())}),l(2,"mat-icon"),p(3,"delete>"),a()()}if(t&2){let e=r(2);m("disabled",e.selectedCount()===0)("title",f(1,2,"personal_content.titles.delete_selected"))}}function hi(t,b){if(t&1){let e=v();l(0,"button",5),C(1,"transloco"),_("click",function(){d(e);let n=r();return u(n.onCreateNibble())}),l(2,"mat-icon"),p(3,"add"),a()(),h(4,_i,4,6,"button",6),h(5,Ci,3,5,"mat-checkbox",7),h(6,fi,4,4,"button",8)}if(t&2){let e=r();m("disabled",e.addingNewItemDisabled)("title",f(1,5,"personal_content.titles.create_nibble")),c(4),g(e.isOwner?4:-1),c(),g(e.bulkEdit?5:-1),c(),g(e.bulkEdit?6:-1)}}var At=(()=>{class t{constructor(){this.favoriteLibService=s(ye),this.createEditNibbleDialogService=s(we),this.auth=s(ot),this.nibbleApi=s(pt),this.transloco=s(L),this.updated=D(),this.selected=j({}),this.selectedCount=I(()=>Object.keys(this.selected()).filter(e=>this.selected()[e]).length),this.allSelected=I(()=>this.selectedCount()===(this.collection?.nibbles||[]).length),this.someSelected=I(()=>this.selectedCount()>0&&!this.allSelected()),this.toggleSelect=!1,this.bulkEdit=!1,this.addingNewItemDisabled=s(Je),this.lang$=this.transloco.langChanges$.pipe(Oe(this.transloco.getActiveLang())),this.confirmDialog=s(nt)}get isOwner(){return this.collection?this.collection.relations.owns.some(e=>e.userId===this.auth.getUserId()):!1}onSelectionChange(e){this.selected.update(i=>Le(Ve({},i),{[e[0].nibble.positionId]:e[1]}))}onCreateNibble(){this.collection&&this.createEditNibbleDialogService.open$({collectionId:this.collection.id}).subscribe(e=>{this.highlightNibbleId=e?.nibble?.nibble?.id,this.updated.emit(void 0)})}onCreateEnded(e){this.highlightNibbleId=e?.nibble?.nibble?.id,this.updated.emit(void 0)}onEditEnded(e){this.highlightNibbleId=e?.nibble?.id,this.updated.emit(void 0)}onNibbleSelect(e){let i="nibble-"+e?.nibble?.id,n=document.getElementById(i);n&&n.scrollIntoView({behavior:"smooth"})}onSortEnded(e){this.highlightNibbleId=e?.nibble?.id,this.updated.emit(void 0)}onDeleteSelectedNibbles(){if(!this.collection)return;let e=Object.keys(this.selected()).filter(E=>this.selected()[E]).map(E=>Number.parseInt(E)),i=this.collection,n=e.map(E=>
3i.nibbles.find(U=>U.nibble.positionId===E)?.nibble.id).filter(E=>E!==void 0),o=i.id;this.confirmDialog.open$({title:"personal_content.titles.delete_selected_confirm"}).subscribe(E=>{E&&this.nibbleApi.removeFromCollectionById({id:n,positionId:e,collId:o}).subscribe(()=>{this.selected.update(()=>({})),this.favoriteLibService.refreshPlugin(),this.updated.emit(void 0)})})}setAll(e){this.selected.update(()=>{let i={};return(this.collection?.nibbles||[]).forEach(n=>{i[n.nibble.positionId]=e}),i})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-draft"]],inputs:{collection:"collection"},outputs:{updated:"updated"},decls:8,vars:11,consts:[["toolbar",""],[1,"p-2","border-bottom","flex","gap-1","items-center"],[4,"ngTemplateOutlet"],["context","summary",1,"flex-auto",3,"action","copyMoveEnded","createEnded","deleteEnded","editEnded","selectionChange","sortEnded","bulkEdit","collection","highlightId","lang","nibbles","selected"],[1,"p-2","border-top","flex","gap-1","items-center"],["mat-icon-button","",3,"click","disabled","title"],["mat-icon-button","",1,"mr-1",3,"ngClass","title"],[1,"primary-checkbox",3,"checked","indeterminate"],["mat-icon-button","",3,"disabled","title"],["mat-icon-button","",1,"mr-1",3,"click","ngClass","title"],[1,"primary-checkbox",3,"change","checked","indeterminate"]],template:function(i,n){if(i&1){let o=v();l(0,"div",1),ie(1,ui,1,0,"ng-container",2),a(),l(2,"pc-shared-nibble-list",3),C(3,"async"),_("action",function(U){return d(o),u(n.onNibbleSelect(U))})("copyMoveEnded",function(){return d(o),u(n.updated.emit())})("createEnded",function(U){return d(o),u(n.onCreateEnded(U))})("deleteEnded",function(){return d(o),u(n.updated.emit())})("editEnded",function(U){return d(o),u(n.onEditEnded(U))})("selectionChange",function(U){return d(o),u(n.onSelectionChange(U))})("sortEnded",function(U){return d(o),u(n.onSortEnded(U))}),a(),l(4,"div",4),ie(5,bi,1,0,"ng-container",2),a(),ie(6,hi,7,7,"ng-template",null,0,he)}if(i&2){let o=A(7);c(),m("ngTemplateOutlet",o),c(),m("bulkEdit",n.bulkEdit)("collection",n.collection)("highlightId",n.highlightNibbleId)("lang",f(3,8,n.lang$))("nibbles",(n.collection==null?null:n.collection.nibbles)||Ae(10,mi))("selected",n.selected()),c(3),m("ngTemplateOutlet",o)}},dependencies:[z,oe,je,N,F,k,xe,Bt,O,Nt,it,Dt,Tt,le,B],encapsulation:2,changeDetection:0})}}return t})();var Ht=(()=>{class t{constructor(){this.snackbar=s(W),this.transloco=s(L),this.clipboard=s(re)}execute(e){e?.url?.iiif&&(this.clipboard.copy(e.url.iiif),this.snackbar.open(this.transloco.translate("personal_content.collection_share.url_to_collection_iiif_copied"),"success"))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var jt=(()=>{class t{constructor(){this.snackbar=s(W),this.transloco=s(L),this.clipboard=s(re)}execute(e){e.url?.html&&(this.clipboard.copy(e.url.html),this.snackbar.open(this.transloco.translate("personal_content.collection_share.url_to_presentation_copied"),"success"))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $t=(()=>{class t{execute(e){e?.url?.html&&ge(e.url.html)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function gi(t,b){if(t&1){let e=v();l(0,"button",1)(1,"mat-icon"),p(2,"share"),a(),p(3),C(4,"transloco"),a(),l(5,"mat-menu",null,0)(7,"button",2),_("click",function(){let n=d(e),o=r();return u(o.openCollectionPreview.execute(n))}),l(8,"mat-icon"),p(9,"open_in_new"),a(),p(10),C(11,"transloco"),a(),l(12,"button",2),_("click",function(){let n=d(e),o=r();return u(o.copyCollectionPreviewUrl.execute(n))}),l(13,"mat-icon"),p(14,"content_copy"),a(),p(15),C(16,"transloco"),a(),l(17,"button",2),_("click",function(){let n=d(e),o=r();return u(o.copyCollectionIiifUrl.execute(n))}),l(18,"mat-icon"),p(19,"content_copy"),a(),p(20),C(21,"transloco"),a()()}if(t&2){let e=A(6),i=r();m("disabled",i.disabled())("matMenuTriggerFor",e),c(3),y(" ",f(4,6,"personal_content.collection_header_toolbar.sharing")," "),c(7),y(" ",f(11,8,"personal_content.collection_header_toolbar.open_in_new_tab")," "),c(5),y(" ",f(16,10,"personal_content.collection_header_toolbar.copy_url")," "),c(5),y(" ",f(21,12,"personal_content.collection_header_toolbar.copy_url_iiif_manifest")," ")}}var zt=(()=>{class t{constructor(){this.collection=T.required(),this.disabled=I(()=>{let e=this.collection();return e?!e?.disseminated:!0}),this.openCollectionPreview=s($t),this.copyCollectionPreviewUrl=s(jt),this.copyCollectionIiifUrl=s(Ht)}
3static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-sharing-menu"]],inputs:{collection:[1,"collection"]},decls:1,vars:1,consts:[["sharingMenu","matMenu"],["mat-button","",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(i,n){if(i&1&&h(0,gi,22,14),i&2){let o;g((o=n.collection())?0:-1,o)}},dependencies:[k,G,N,F,P,K,X,Y,O,B],encapsulation:2,changeDetection:0})}}return t})();var Gt=(()=>{class t extends q{async loadComponent(){return import("./chunk-E6SXHRM3.js").then(e=>e.SettingsDialogComponent)}dialogConfig(){return{minWidth:"80vw"}}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=$(t)))(n||t)}})()}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function xi(t,b){if(t&1){let e=v();l(0,"button",1),_("click",function(){let n=d(e),o=r();return u(o.onOpenSettings(n))}),l(1,"mat-icon"),p(2,"settings"),a(),p(3),C(4,"transloco"),a()}if(t&2){let e=r();m("disabled",e.disabled()),c(3),y(" ",f(4,2,"personal_content.collection.settings")," ")}}var Wt=(()=>{class t{constructor(){this.collection=T.required(),this.disabled=I(()=>{let e=this.collection();return e?!e.relations.ownedByCurrentUser:!0}),this.settingsDialog=s(Gt)}onOpenSettings(e){this.settingsDialog.open({collection:e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-settings-button"]],inputs:{collection:[1,"collection"]},decls:1,vars:1,consts:[["mat-button","",3,"disabled"],["mat-button","",3,"click","disabled"]],template:function(i,n){if(i&1&&h(0,xi,5,4,"button",0),i&2){let o;g((o=n.collection())?0:-1,o)}},dependencies:[k,G,N,F,B],encapsulation:2,changeDetection:0})}}return t})();var qt=(()=>{class t extends q{async loadComponent(){return import("./chunk-NXFPGZFC.js").then(e=>e.CollectionCoopUsersDialogComponent)}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=$(t)))(n||t)}})()}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xt=(()=>{class t{constructor(){this.personalContentRouting=s(Q),this.snackbar=s(W),this.transloco=s(L),this.clipboard=s(re)}execute(e){let i=this.personalContentRouting.coopJoinAbsUrl(e.id,e.coopEntryCode);return this.clipboard.copy(i),this.snackbar.open(this.transloco.translate("personal_content.coop.copy_coop_url"),"success"),ue(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kt=(()=>{class t{constructor(){this.collectionApi=s(ae)}execute(e){return this.collectionApi.collectionCoopOpen(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Yt=(()=>{class t{constructor(){this.collectionApi=s(ae)}execute(e){return this.collectionApi.collectionCoopClose(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vi(t,b){if(t&1&&x(0,"pc-message-list-container",6),t&2){let e=r();m("collectionId",e.id)("showFilters",!1)}}function yi(t,b){if(t&1){let e=v();l(0,"button",2)(1,"mat-icon"),p(2,"handshake"),a(),p(3),C(4,"transloco"),a(),l(5,"mat-menu",null,0)(7,"button",3),_("click",function(){d(e);let n=r();return u(n.onToggleCoopStatus())}),l(8,"mat-icon"),p(9),a(),p(10),C(11,"transloco"),C(12,"transloco"),a(),l(13,"button",4),_("click",function(){let n=d(e),o=r();return u(o.copyCoopLink.execute(n))}),l(14,"mat-icon"),p(15,"link"),a(),p(16),C(17,"transloco"),a()(),l(18,"button",5),_("click",function(){d(e);let n=r();return u(n.onOpenCoopUsersDialog())}),l(19,"mat-icon"),p(20,"group"),a(),p(21),a(),l(22,"button",5),_("click",function(){d(e);let n=A(28),o=r();return u(o.onOpenOverlay(n))}),l(23,"mat-icon"),p(24,"mail"),a(),p(25),C(26,"transloco"),a(),ie(27,vi,1,2,"ng-template",null,1,he)}if(t&2){let e=b,i=A(6),n=r();m("matMenuTriggerFor",i),c(3),y(" ",f(4,10,"personal_content.collection_header_toolbar.coop")," "),c(6),V(e.coopStatus?"group_remove":"group_add"),c(),y(" ",e.coopStatus?f(11,12,"personal_content.collection_header_toolbar.close_coop"):f(12,14,"personal_content.collection_header_toolbar.open_coop")," "),c(3),m("disabled",!e.co
3opStatus),c(3),y(" ",f(17,16,"personal_content.collection_header_toolbar.invitation_link")," "),c(2),m("disabled",n.userCount()<2),c(3),y(" ",n.userCount()," "),c(),m("disabled",!e.coopStatus),c(3),y(" ",f(26,18,"personal_content.collection_header_toolbar.coop_messages")," ")}}var Qt=(()=>{class t{constructor(){this.collection=T.required(),this.updated=D(),this.loading=j(!1),this.userCount=I(()=>{let e=this.collection();return e?(e.relations.owns||[]).length+(e.relations.contributes||[]).length:0}),this.overlayService=s(Vt),this.copyCoopLink=s(Xt),this.openCoop=s(Kt),this.closeCoop=s(Yt),this.collectionCoopUsersDialog=s(qt)}onOpenCoopUsersDialog(){let e=this.collection();this.collectionCoopUsersDialog.open$({collection:e,owns:e?.relations?.owns||[],contributes:e?.relations?.contributes||[]}).subscribe(()=>this.updated.emit())}onToggleCoopStatus(){let e=this.collection();this.loading.set(!0),(e.coopStatus?this.closeCoop.execute(e.id):this.openCoop.execute(e.id)).pipe(ee(()=>this.loading.set(!1))).subscribe(()=>this.updated.emit())}onOpenOverlay(e){let i=this.collection();this.overlayService.open(e,{},i.label)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-coop-menu"]],inputs:{collection:[1,"collection"]},outputs:{updated:"updated"},decls:1,vars:1,consts:[["coopMenu","matMenu"],["coopFeed",""],["mat-button","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click","disabled"],["mat-button","",3,"click","disabled"],[3,"collectionId","showFilters"]],template:function(i,n){if(i&1&&h(0,yi,29,20),i&2){let o;g((o=n.collection())?0:-1,o)}},dependencies:[k,G,N,F,P,K,X,Y,Lt,B],encapsulation:2,changeDetection:0})}}return t})();var Jt=(()=>{class t extends q{async loadComponent(){return import("./chunk-YUP2LJHB.js").then(e=>e.PublicationInfoDialogComponent)}dialogConfig(){return{minWidth:"80vw"}}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=$(t)))(n||t)}})()}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zt=(()=>{class t{constructor(){this.loading=j(!1),this.snackbar=s(W),this.transloco=s(L),this.collectionDisseminateService=s(ut)}openPreview(e){!e||e.type==="favorites"||(this.loading.set(!0),this.collectionDisseminateService.disseminate(e.id,"helios",{},null,"preview").pipe(be(i=>(i instanceof ve&&i.code===-34&&this.snackbar.open(this.transloco.translate("personal_content.messages.dissemination_feature_not_enabled"),"info"),Z(()=>i))),ee(()=>this.loading.set(!1))).subscribe(i=>{ge(i.collection.url.html)}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Mi(t,b){if(t&1){let e=v();l(0,"button",2),_("click",function(){d(e);let n=r(),o=r();return u(o.onDisseminate(n))}),p(1),C(2,"transloco"),a()}t&2&&(c(),y(" ",f(2,1,"personal_content.collection_header_toolbar.publish")," "))}function wi(t,b){if(t&1){let e=v();l(0,"button",2),_("click",function(){d(e);let n=r(),o=r();return u(o.onWithdraw(n))}),p(1),C(2,"transloco"),a()}t&2&&(c(),y(" ",f(2,1,"personal_content.collection_header_toolbar.withdraw")," "))}function Si(t,b){if(t&1){let e=v();l(0,"button",2),_("click",function(){d(e);let n=r(),o=r();return u(o.onDisseminate(n))}),p(1),C(2,"transloco"),a()}t&2&&(c(),y(" ",f(2,1,"personal_content.collection_header_toolbar.update")," "))}function Ii(t,b){if(t&1){let e=v();l(0,"button",1)(1,"mat-icon"),p(2,"publish"),a(),p(3),C(4,"transloco"),a(),l(5,"mat-menu",null,0)(7,"button",2),_("click",function(){let n=d(e),o=r();return u(o.onOpenPublicationMetadataDialog(n))}),l(8,"mat-icon"),p(9,"description"),a(),p(10),C(11,"transloco"),a(),l(12,"button",2),_("click",function(){let n=d(e),o=r();return u(o.onOpenPresentation(n))}),l(13,"mat-icon"),p(14,"pageview"),a(),p(15),C(16,"transloco"),a(),x(17,"mat-divider"),h(18,Mi,3,3,"button",3),h(19,wi,3,3,"button",3),h(20,Si,3,3,"button",3),x(21,"mat-divider"),l(22,"button",2),_("click",function(){let n=d(e),o=r();return u(o.onOpenPublicationInfoDialog(n))}),l(23,"mat-icon"),p(24,"info"),a(),p(25),C(26,"transloco"),a()()}if(t&2){let e=A(6),i=r();m("disabled",i.disabled())("matMenuTriggerFor",e),c(3),y(" ",f(4,9,"personal_content.collection_header_toolbar.publication")," "),c(7),y(" ",f(11,11,"personal_content.collection_header_toolbar.metadata")," "),c(5),y(" ",f(16,13,"personal_content.collection_header_toolbar.preview")," "),c(3),g(i.shouldDisseminate()?18:-1),c(),g(i.shouldWithdraw()?19:-1),c(),g(i.shouldUpdate()?20:-1),c(5),y(" ",f(26,15,"personal_content.collection_header_toolbar.info")," ")}}var ei=(()=>{class t{constructor(){this.collection=T.required(),this.disabled=T(!1),this.updated=D(),this.loading=j(!1),this.shouldDisseminate=I(()=>{let e=this.collection();return e?!e.disseminated:!1}),this.shouldWithdraw=I(()=>{let e=this.collection();return e?e?.disseminated&&e.disseminateCheckNum===e.updateCheckNum:!1}),this.shouldUpdate=I(()=>{let e=this.collection();return e?e.disseminated&&e.disseminateCheckNum!==e.updateCheckNum:!1}),this.publicationInfoDialog=s(Jt),this.publicationMetadataDialog=s(wt),this.disseminateCollection=s(kt),this.withdrawCollection=s(Et),this.collectionPreviewService=s(Zt)}onOpenPublicationMetadataDialog(e){this.publicationMetadataDialog.open$({collectionId:e.id}).subscribe(()=>this.updated.emit())}onOpenPresentation(e){this.collectionPreviewService.openPreview(e)}onOpenPublicationInfoDialog(e){this.publicationInfoDialog.open$({collection:e}).subscribe(()=>this.updated.emit())}onDisseminate(e){this.disseminateCollection.execute(e.id).subscribe(()=>this.updated.emit())}onWithdraw(e){this.withdrawCollection.execute(e).subscribe(()=>this.updated.emit())}static{this.\u0275fac=function(i){return new(i||t)}}
3static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-publish-menu"]],inputs:{collection:[1,"collection"],disabled:[1,"disabled"]},outputs:{updated:"updated"},decls:1,vars:1,consts:[["publicationMenu","matMenu"],["mat-button","",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-menu-item",""]],template:function(i,n){if(i&1&&h(0,Ii,27,17),i&2){let o;g((o=n.collection())?0:-1,o)}},dependencies:[k,G,N,F,P,K,X,Y,ce,B],encapsulation:2,changeDetection:0})}}return t})();function Ti(t,b){if(t&1){let e=v();x(0,"mat-divider",2),l(1,"pc-collection-coop-menu",4),_("updated",function(){d(e);let n=r(2);return u(n.updated.emit())}),a()}if(t&2){let e=r();c(),m("collection",e)}}function Di(t,b){if(t&1){let e=v();l(0,"div",0),x(1,"pc-collection-settings-button",1)(2,"mat-divider",2),l(3,"pc-collection-publish-menu",3),_("updated",function(){d(e);let n=r();return u(n.updated.emit())}),a(),x(4,"pc-collection-sharing-menu",1),h(5,Ti,2,1),a()}if(t&2){let e=b,i=r();c(),m("collection",e),c(2),m("collection",e)("disabled",i.disseminationDisabled),c(),m("collection",e),c(),g(i.coopEnabled?5:-1)}}var ti=(()=>{class t{constructor(){this.collection=T.required(),this.coop=D(),this.updated=D(),this.coopEnabled=s(Qe),this.disseminationDisabled=s(Ze)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-header-toolbar"]],inputs:{collection:[1,"collection"]},outputs:{coop:"coop",updated:"updated"},decls:1,vars:1,consts:[[1,"flex","flex-wrap","gap-1"],[3,"collection"],["vertical",""],[3,"updated","collection","disabled"],[3,"updated","collection"]],template:function(i,n){if(i&1&&h(0,Di,6,5,"div",0),i&2){let o;g((o=n.collection())?0:-1,o)}},dependencies:[N,k,Mt,ce,P,Ot,zt,Wt,Qt,ei],encapsulation:2,changeDetection:0})}}return t})();function Ni(t,b){if(t&1&&x(0,"aipb-image",1),t&2){let e=r();m("src",e.thumb)}}function ki(t,b){if(t&1&&(l(0,"div",0),h(1,Ni,1,1,"aipb-image",1),l(2,"span",2),p(3),a()()),t&2){let e=r();m("title",e.label()),c(),g(b.thumb?1:-1),c(2),V(e.label())}}var ii=(()=>{class t{constructor(){this.collection=T(),this.label=I(()=>{let e=this.collection();return me(e)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-item-header"]],inputs:{collection:[1,"collection"]},decls:1,vars:1,consts:[[1,"p-2","flex-auto","flex","items-center",3,"title"],["height","36",1,"mr-2",3,"src"],[1,"font-bold","text-2xl","min-w-0","whitespace-nowrap","overflow-hidden","overflow-ellipsis"]],template:function(i,n){if(i&1&&h(0,ki,4,3,"div",0),i&2){let o;g((o=n.collection())?0:-1,o)}},dependencies:[O,Ct],encapsulation:2,changeDetection:0})}}return t})();function ni(t,b={fuzzy:!0}){if(/youtu\.?be/.test(t)){let e,i=[/youtu\.be\/([^#&?]{11})/,/\?v=([^#&?]{11})/,/&v=([^#&?]{11})/,/embed\/([^#&?]{11})/,/\/v\/([^#&?]{11})/];for(e=0;e<i.length;++e)if(i[e].test(t)){let n=i[e].exec(t);return n?n[1]:null}if(b.fuzzy){let n=t.split(/[/&?=#.\s]/g);for(e=0;e<n.length;++e)if(/^[^#&?]{11}$/.test(n[e]))return n[e]}}return null}function Ei(t,b){if(t&1&&(l(0,"div",2),x(1,"iframe",3),C(2,"safe"),a()),t&2){let e=r(2);c(),m("src",f(2,1,"https://www.youtube.com/embed/"+e.youtubeId),Pe)}}function Vi(t,b){if(t&1&&h(0,Ei,3,3,"div",2),t&2){let e=r();g((e.nibbleCut==null||e.nibbleCut.cut==null?null:e.nibbleCut.cut.service)==="youtube"?0:-1)}}function Li(t,b){if(t&1&&(l(0,"div",0)(1,"div",1),x(2,"img",4),a(),l(3,"a",5),p(4),a()()),t&2){let e=r();c(2),m("src",e.serviceThumb,R),c(),m("href",e.serviceValue,R),c(),y(" ",e.serviceValue," ")}}function Bi(t,b){if(t&1&&x(0,"div",7),t&2){let e=r(2);m("innerHTML",e.serviceValue,J)}}function Fi(t,b){if(t&1){let e=v();l(0,"div",6),C(1,"removeNbsp"),_("click",function(){d(e);let n=r();return u(n.action.emit())}),a(),h(2,Bi,1,1,"div",7)}if(t&2){let e=r();m("innerHTML",f(1,2,e.userValue),J),c(2),g(e.shouldUseServiceValue()?2:-1)}}function Oi(t,b){if(t&1){let e=v();l(0,"div",10),_("click",function(){d(e);let n=r(2);return u(n.action.emit())}),x(1,"img",4),a()}if(t&2){let e=r(2);c(),m("src",e.userValue,R)}}function Pi(t,b){if(t&1){let e=v();l(0,"div",11),_("click",function(){d(e);let n=r(2);return u(n.action.emit())}),x(1,"img",4),a()}if(t&2){let e=r(2);c(),m("src",e.serviceValue,R)}}function Ui(t,b){if(t&1&&(h(0,Oi,2,1,"div",8),h(1,Pi,2,1,"div",9)),t&2){let e=r();g(e.userValue?0:-1),c(),g(e.shouldUseServiceValue()?1:-1)}}function Ri(t,b){if(t&1){let e=v();l(0,"div",12),_("click",function(){d(e);let n=r();return u(n.action.emit())}),x(1,"img",4),a()}if(t&2){let e=r();c(),m("src",e.userThumb,R)}}function Ai(t,b){if(t&1){let e=v();l(0,"div",10),_("click",function(){d(e);let n=r(2);return u(n.action.emit())}),x(1,"img",4),a()}if(t&2){let e=r(2);c(),m("src",e.serviceThumb,R)}}function Hi(t,b){if(t&1){let e=v();l(0,"div",10),_("click",function(){d(e);let n=r(2);return u(n.action.emit())}),x(1,"img",4),a()}if(t&2){let e=r(2);c(),m("src",e.userThumb,R)}}function ji(t,b){if(t&1&&h(0,Ai,2,1,"div",8)(1,Hi,2,1,"div",8),t&2){let e=r();g(e.serviceThumb?0:e.userThumb?1:-1)}}function $i(t,b){if(t&1){let e=v();l(0,"div",11),_("click",function(){d(e);let n=r(2);return u(n.action.emit())}),x(1,"img",4),a()}if(t&2){let e=r(2);c(),m("src",e.dropboxThumb,R)}}function zi(t,b){if(t&1&&(x(0,"aipb-loading",13),C(1,"async"),h(2,$i,2,1,"div",9)),t&2){let e=r();m("loading",f(1,2,e.loading$)),c(2),g(e.dropboxThumb?2:-1)}}function Gi(t,b){if(t&1){let e=v();l(0,"div",14),_("click",function(){d(e);let n=r(2);return u(n.action.emit())}),x(1,"img",4),a()}if(t&2){let e=r(2);c(),m("src",e.serviceThumb,R)}}function Wi(t,b){if(t&1){let e=v();l(0,"div",10),_("click",function(){d(e);let n=r();return u(n.action.emit())}),x(1,"img",4),a(),h(2,Gi,2,1,"div")}if(t&2){let e=r();c(),m("src",e.userThumb,R),c(),g(e.serviceThumb!==e.userThumb?2:-1)}}var oi=(()=>{class t{constructor(){this.dropbox=s(at),this.cdr=s(He),this.sanitizer=s(ze),this.destroyRef=s(te),this.action=D(),this.dropboxThumb=null,this._loading=new Be(!1),this.loading$=this._loading.asObservable()}get userValue(){return this.nibbleCut?this.nibbleCut.nibble.userValue:""}get userThumb(){return this.nibbleCut?this.nibbleCut.nibble.userThumb:""}get serviceValue(){return this.nibbleCut?this.nibbleCut.cut.serviceValue:""}get serviceLabel(){return this.nibbleCut?this.nibbleCut.cut.serviceLabel:""}get serviceThumb(){return this.nibbleCut?this.nibbleCut.cut.serviceThumb:""}get youtubeId(){return ni(this.serviceValue)}get nibbleGet(){return this.nibbleCut}ngOnInit(){this.nibbleCut?.nibble.type==="RECDBOX"&&(this._loading.next(!0),this.dropbox.imageDownload(this.nibbleCut.cut.serviceValue).pipe(ee(()=>this._loading.next(!1)),H(this.destroyRef)).subscribe(e=>{let i=URL.createObjectURL(e[0]);this.dropboxThumb=this.sanitizer.bypassSecurityTrustUrl(i),this.cdr.detectChanges()}))}hasUserValue(){return!Ne(this.userValue)}hasServiceValue(){return!Ne(this.serviceValue)}shouldUseServiceValue(){return this.hasServiceValue()&&this.userValue!==this.serviceValue}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-lib-nibble-content"]],inputs:{nibbleCut:"nibbleCut"},outputs:{action:"action"},decls:8,vars:1,consts:[[1,"p-3"],[1,"mb-3"],[1,"aspect-w-16","aspect-h-9"],["allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture","allowfullscreen","","frameborder","0",3,"src"],[3,"src"],["target","_blank",1,"text-primary","underline",3,"href"],[1,"curs
3or-pointer",3,"click","innerHTML"],[1,"mt-3",3,"innerHTML"],[1,"cursor-pointer","mb-3"],[1,"cursor-pointer"],[1,"cursor-pointer","mb-3",3,"click"],[1,"cursor-pointer",3,"click"],[1,"mb-3",3,"click"],[3,"loading"],[3,"click"]],template:function(i,n){if(i&1&&h(0,Vi,1,1)(1,Li,5,3,"div",0)(2,Fi,3,4)(3,Ui,2,2)(4,Ri,2,1,"div",1)(5,ji,2,1)(6,zi,3,4)(7,Wi,3,2),i&2){let o;g((o=n.nibbleCut==null||n.nibbleCut.nibble==null?null:n.nibbleCut.nibble.type)==="VID"?0:o==="LINK"?1:o==="TXT"?2:o==="IMG"?3:o==="CROP"?4:o==="IMG3F"?5:o==="RECDBOX"?6:7)}},dependencies:[z,gt,le,vt,Se],styles:[`img[_ngcontent-%COMP%]{max-height:500px}
4/*# sourceMappingURL=nibble-content.component-KKSGUYQG.css.map */`]})}}return t})();var qi=t=>[t,"min-w-0 whitespace-nowrap overflow-hidden overflow-ellipsis"];function Xi(t,b){if(t&1&&(l(0,"div",1),p(1),a()),t&2){let e=r();m("title",e.nibble.userLabel),c(),y(" ",e.nibble.userLabel," ")}}function Ki(t,b){if(t&1&&(l(0,"div",2),p(1),a()),t&2){let e=r();m("ngClass",ne(3,qi,e.nibble.userLabel?"mt-1":""))("title",e.cut.serviceLabel),c(),y(" (",e.cut.serviceLabel,") ")}}function Yi(t,b){t&1&&(l(0,"div",3),p(1,"[titulek neuveden]"),a())}function Qi(t,b){if(t&1&&(l(0,"div",0),h(1,Xi,2,2,"div",1),h(2,Ki,2,5,"div",2),h(3,Yi,2,0,"div",3),a()),t&2){let e=r();c(),g(e.useUserLabel()?1:-1),c(),g(e.useServiceLabel()?2:-1),c(),g(!e.useUserLabel()&&!e.useServiceLabel()?3:-1)}}var li=(()=>{class t{constructor(){this.nibbleCut=T(),this.useUserLabel=I(()=>{let e=this.nibbleCut();return e?!!e.nibble.userLabel:!1}),this.useServiceLabel=I(()=>{let e=this.nibbleCut();return e?e.cut.serviceLabel&&e.nibble.userLabel!==e.cut.serviceLabel:!1})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-nibble-item-label"]],inputs:{nibbleCut:[1,"nibbleCut"]},decls:1,vars:1,consts:[[1,"flex","flex-col"],[1,"min-w-0","whitespace-nowrap","overflow-hidden","overflow-ellipsis","text-xl",3,"title"],[3,"ngClass","title"],[1,"min-w-0","whitespace-nowrap","overflow-hidden","overflow-ellipsis"]],template:function(i,n){if(i&1&&h(0,Qi,4,3,"div",0),i&2){let o;g((o=n.nibbleCut())?0:-1,o)}},dependencies:[z,oe],encapsulation:2,changeDetection:0})}}return t})();function Ji(t,b){if(t&1&&(l(0,"div",0)(1,"div",1)(2,"mat-icon"),p(3),a()(),x(4,"div",2),C(5,"removeNbsp"),a()),t&2){let e=r();c(3),V(e.isBasic()?"sticky_note_2":"description"),c(),m("innerHTML",f(5,2,b),J)}}var ri=(()=>{class t{constructor(){this.note=T(),this.type=T("basic"),this.isBasic=I(()=>this.type()==="basic")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-nibble-item-note"]],inputs:{note:[1,"note"],type:[1,"type"]},decls:1,vars:1,consts:[[1,"p-2"],[1,"mb-2"],[3,"innerHTML"]],template:function(i,n){if(i&1&&h(0,Ji,6,4,"div",0),i&2){let o;g((o=n.note())?0:-1,o)}},dependencies:[N,F,Se],encapsulation:2,changeDetection:0})}}return t})();var Zi=t=>["flex content-between items-center",t];function en(t,b){if(t&1&&(l(0,"span"),p(1),a()),t&2){let e=r(2);c(),V(b.serviceName[e.lang()])}}function tn(t,b){if(t&1){let e=v();l(0,"button",15),_("click",function(){d(e);let n=r(),o=r();return u(o.nibbleAction.emit(n))}),l(1,"mat-icon"),p(2,"open_in_new"),a(),l(3,"span"),p(4),C(5,"transloco"),a()(),l(6,"button",6),C(7,"transloco"),_("click",function(){d(e);let n=r(),o=r();return u(o.nibbleAction.emit(n))}),l(8,"mat-icon"),p(9,"open_in_new"),a()()}if(t&2){let e=r();c(4),V(f(5,2,"personal_content.collection.nibble_actions."+e.nibble.type)),c(2),m("title",f(7,4,"personal_content.collection.nibble_actions."+e.nibble.type))}}function nn(t,b){if(t&1&&(l(0,"span",8),p(1),a()),t&2){let e=r(2);c(),y("(",e.comments.length,")")}}function on(t,b){if(t&1){let e=v();l(0,"button",14),_("click",function(){d(e);let n=r(),o=r();return u(o.nibbleAction.emit(n))}),l(1,"mat-icon"),p(2,"open_in_new"),a(),l(3,"span"),p(4),C(5,"transloco"),a()()}if(t&2){let e=r();c(4),V(f(5,1,"personal_content.collection.nibble_actions."+e.nibble.type))}}function ln(t,b){if(t&1&&p(0),t&2){let e=r(2);y(" (",e.comments.length,") ")}}function rn(t,b){if(t&1){let e=v();l(0,"div",1)(1,"div",2),_("click",function(){let n=d(e),o=r();return u(o.nibbleDetail.emit(n))}),x(2,"pc-nibble-type-icon",3),h(3,en,2,1,"span"),a(),l(4,"div",4),h(5,tn,10,6),l(6,"button",5),_("click",function(){let n=d(e),o=r();return u(o.nibbleCollectionNote.emit(n))}),l(7,"mat-icon"),p(8,"edit_note"),a(),l(9,"span"),p(10),C(11,"transloco"),a()(),l(12,"button",6),C(13,"transloco"),_("click",function(){let n=d(e),o=r();return u(o.nibbleCollectionNote.emit(n))}),l(14,"mat-icon"),p(15,"edit_note"),a()(),l(16,"button",7),_("click",function(){let n=d(e),o=r();return u(o.nibbleComments.emit(n))}),l(17,"mat-icon"),p(18,"forum"),a(),l(19,"span"),p(20),C(21,"transloco"),a(),h(22,nn,2,1,"span",8),a(),l(23,"button",6),C(24,"transloco"),_("click",function(){let n=d(e),o=r();return u(o.nibbleComments.emit(n))}),l(25,"mat-icon",9),p(26,"forum"),a()(),l(27,"button",10),_("click",function(){let n=d(e),o=r();return u(o.nibbleEdit.emit(n))}),l(28,"mat-icon"),p(29,"edit"),a(),l(30,"span",11),p(31),C(32,"transloco"),a()(),l(33,"button",6),C(34,"transloco"),_("click",function(){let n=d(e),o=r();return u(o.nibbleEdit.emit(n))}),l(35,"mat-icon"),p(36,"edit"),a()(),l(37,"button",12)(38,"mat-icon"),p(39,"more_vert"),a()()()(),l(40,"mat-menu",null,0),h(42,on,6,3,"button",13),l(43,"button",14),_("click",function(){let n=d(e),o=r();return u(o.nibbleCollectionNote.emit(n))}),l(44,"mat-icon"),p(45,"edit_note"),a(),l(46,"span"),p(47),C(48,"transloco"),a()(),l(49,"button",14),_("click",function(){let n=d(e),o=r();return u(o.nibbleComments.emit(n))}),l(50,"mat-icon"),p(51,"forum"),a(),l(52,"span"),p(53),C(54,"transloco"),h(55,ln,1,1),a()(),l(56,"button",14),_("click",function(){let n=d(e),o=r();return u(o.nibbleEdit.emit(n))}),l(57,"mat-icon"),p(58,"edit"),a(),l(59,"span"),p(60),C(61,"transloco"),a()()()}if(t&2){let e,i=b,n=A(41),o=r();m("ngClass",ne(41,Zi,"nibble-"+i.nibble.type)),c(2),m("disabled",!i.nibble.relations.ownedByCurrentUser)("type",i.nibble.type),c(),g((e=o.infoService())?3:-1,e),
4c(2),g(o.hasOpenButton()?5:-1),c(),m("disabled",!(i.clientInfo!=null&&i.clientInfo.canEditAnnotation)),c(4),V(f(11,23,"personal_content.collection.annotation")),c(2),m("title",f(13,25,"personal_content.collection.annotation")),c(4),Re("primary-button",o.comments.length>0),c(4),V(f(21,27,"personal_content.collection.comments")),c(2),g(o.comments.length>0?22:-1),c(),m("title",f(24,29,"personal_content.collection.comments")),c(2),m("matBadgeHidden",o.comments().length===0)("matBadge",o.comments().length),c(6),y(" ",f(32,31,"ui.buttons.edit")),c(2),m("title",f(34,33,"ui.buttons.edit")),c(4),m("matMenuTriggerFor",n),c(5),g(o.hasOpenButton()?42:-1),c(5),V(f(48,35,"personal_content.collection.annotation")),c(6),y("",f(54,37,"personal_content.collection.comments")," "),c(2),g(o.comments.length>0?55:-1),c(5),V(f(61,39,"ui.buttons.edit"))}}var ci=(()=>{class t{constructor(){this.lang=T.required(),this.nibbleCut=T.required(),this.infoService=T(),this.hasOpenButton=I(()=>this.nibbleCut().nibble.type!=="TXT"),this.comments=I(()=>this.nibbleCut()?.referredBy?.[0]?.comments||[]),this.nibbleAction=D(),this.nibbleEdit=D(),this.nibbleComments=D(),this.nibbleCollectionNote=D(),this.nibbleDetail=D()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-nibble-list-header"]],inputs:{lang:[1,"lang"],nibbleCut:[1,"nibbleCut"],infoService:[1,"infoService"]},outputs:{nibbleAction:"nibbleAction",nibbleEdit:"nibbleEdit",nibbleComments:"nibbleComments",nibbleCollectionNote:"nibbleCollectionNote",nibbleDetail:"nibbleDetail"},decls:1,vars:1,consts:[["menu","matMenu"],[3,"ngClass"],[1,"flex","items-center","flex-auto","gap-2","p-3","cursor-pointer",3,"click"],[1,"mr-3",3,"disabled","type"],[1,"flex","p-3"],["mat-button","",1,"secondary-button","hidden","2xl:inline-block",3,"click","disabled"],["mat-icon-button","",1,"hidden","lg:inline-block","2xl:hidden",3,"click","title"],["mat-flat-button","",1,"hidden","2xl:inline-block",3,"click"],[1,"ml-1"],[3,"matBadgeHidden","matBadge"],["mat-button","",1,"secondary-button","hidden","2xl:inline-block",3,"click"],[1,"hidden","2xl:inline"],["mat-icon-button","",1,"inline-block","lg:hidden",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],["mat-button","",1,"primary-button","hidden","2xl:inline-block",3,"click"]],template:function(i,n){if(i&1&&h(0,rn,62,43),i&2){let o;g((o=n.nibbleCut())?0:-1,o)}},dependencies:[z,oe,ht,N,F,k,G,xe,O,P,K,X,Y,Ft,B],styles:[`.nibble-REC[_ngcontent-%COMP%]{background-color:#b249580d}.nibble-TXT[_ngcontent-%COMP%], .nibble-COLL[_ngcontent-%COMP%]{background-color:#3783a80f}.nibble-VID[_ngcontent-%COMP%]{background-color:#f03d3d0a}.nibble-IMG[_ngcontent-%COMP%], .nibble-IMG3F[_ngcontent-%COMP%], .nibble-IMG3IF[_ngcontent-%COMP%]{background-color:#f6ba281a}.nibble-DOC3IF[_ngcontent-%COMP%]{background-color:#f6ba2840}.nibble-LINK[_ngcontent-%COMP%], .nibble-AUD[_ngcontent-%COMP%]{background-color:#438d4b17}.nibble-CROP[_ngcontent-%COMP%]{background-color:#f6ba281a}
5/*# sourceMappingURL=collection-nibble-list-header.component-FQMMW6GM.css.map */`],changeDetection:0})}}return t})();function cn(t,b){if(t&1&&(x(0,"div",6),C(1,"safehtml")),t&2){let e=r().$implicit;m("innerHTML",f(1,1,e.clientInfo.headerHtml),J)}}function an(t,b){if(t&1&&x(0,"pc-collection-nibble-item-label",7),t&2){let e=r().$implicit;m("nibbleCut",e)}}function sn(t,b){if(t&1){let e=v();l(0,"pc-lib-nibble-content",12),_("action",function(){d(e);let n=r().$implicit,o=r();return u(o.onNibbleDetailDialog(n))}),a()}if(t&2){let e=r().$implicit;m("nibbleCut",e)}}function pn(t,b){if(t&1&&x(0,"pc-collection-nibble-item-note",9),t&2){let e=b.$implicit;m("note",e)}}function mn(t,b){if(t&1&&x(0,"pc-collection-nibble-item-note",11),t&2){let e=r().$implicit;m("note",e.nibble.note)}}function dn(t,b){if(t&1){let e=v();l(0,"div",15),_("click",function(){let n=d(e).$implicit,o=r(3);return u(o.onCollectionDetail(n.id))}),x(1,"pc-shared-collection-label",16),a()}if(t&2){let e=b.$implicit;c(),m("collection",e)}}function un(t,b){if(t&1&&(l(0,"div")(1,"div",13),p(2),C(3,"transloco"),a(),Ce(4,dn,2,1,"div",14,_e),a()),t&2){let e=r().$implicit;c(2),y(" ",f(3,1,"personal_content.collection.included_in_collections")," "),c(2),fe(e.referredBy)}}function bn(t,b){if(t&1){let e=v();l(0,"div",0)(1,"pc-collection-nibble-list-header",2),_("nibbleAction",function(n){d(e);
5let o=r();return u(o.onNibbleAction(n))})("nibbleEdit",function(n){d(e);let o=r();return u(o.onEditNibble(n))})("nibbleCollectionNote",function(n){d(e);let o=r();return u(o.onEditNibbleCollectionNote(n))})("nibbleComments",function(n){d(e);let o=r();return u(o.onNibbleCommentsDialog(n))})("nibbleDetail",function(n){d(e);let o=r();return u(o.onNibbleDetailDialog(n))}),a(),l(2,"div",3)(3,"div",4)(4,"div",5),_("click",function(){let n=d(e).$implicit,o=r();return u(o.onNibbleDetailDialog(n))}),h(5,cn,2,3,"div",6)(6,an,1,1,"pc-collection-nibble-item-label",7),a(),l(7,"div"),h(8,sn,1,1,"pc-lib-nibble-content",7),a(),l(9,"div",8),_("click",function(){let n=d(e).$implicit,o=r();return u(o.onEditNibbleCollectionNote(n))}),Ce(10,pn,1,1,"pc-collection-nibble-item-note",9,_e),a()(),l(12,"div",10),h(13,mn,1,1,"pc-collection-nibble-item-note",11),h(14,un,6,3,"div"),a()(),x(15,"mat-divider"),a()}if(t&2){let e=b.$implicit,i=r();m("id","nibble-"+e.nibble.id),c(),m("nibbleCut",e)("lang",i.currentLang)("infoService",i.selectNibbleTypeAndService(e)()),c(4),g(e.clientInfo.headerHtml?5:6),c(3),g(e.clientInfo.headerHtml?-1:8),c(2),fe(i.getCollectionNotes(e)),c(3),g(e.nibble.note?13:-1),c(),g(e.referredBy&&e.referredBy.length>1?14:-1)}}function _n(t,b){t&1&&(l(0,"div",1),p(1),C(2,"transloco"),a()),t&2&&(c(),y(" ",f(2,1,"personal_content.messages.collection_no_nibbles")," "))}var ai=(()=>{class t{constructor(){this.personalContentRouting=s(Q),this.transloco=s(L),this.editNibbleCollectionNoteDialog=s(Ut),this.createEditNibbleDialogService=s(we),this.nibbleAction=s(St),this.frame=s(Xe),this.nibbleDetailDialog=s(It),this.nibbleCommentsDialog=s(Rt),this.infoApi=s(st),this.nibbles=T([]),this.editEnded=D(),this.createEnded=D(),this.nibbleTypes=j([]),this.nibbleGet=s(bt)}get currentLang(){return this.transloco.getActiveLang()}ngOnInit(){this.infoApi.nibblesSupportedTypes().pipe(pe(e=>{this.nibbleTypes.set(e)})).subscribe()}getCollectionNotes(e){return!e||!e.referredBy?[]:e.referredBy.filter(i=>!!i.collNote).map(i=>i.collNote)}selectNibbleTypeAndService(e){return I(()=>(this.nibbleTypes()||[]).find(n=>n.type===e.nibble.type)?.services.find(n=>n.service===e.cut.service))}onEditNibble(e){this.createEditNibbleDialogService.open$({editNibble:e}).subscribe(()=>{this.editEnded.emit()})}onEditNibbleCollectionNote(e){this.collectionId&&this.editNibbleCollectionNoteDialog.open$({nibbleId:e.nibble.id,positionId:e.nibble.positionId,collectionId:this.collectionId}).subscribe(()=>{this.editEnded.emit()})}onNibbleAction(e){this.nibbleGet.get(e.nibble.id).subscribe(i=>{let n=this.frame.activeApp;this.nibbleAction.process({nibbleCut:i,application:n})})}onCollectionDetail(e){this.personalContentRouting.collectionSingle(e)}onNibbleDetailDialog(e){this.nibbleDetailDialog.open({nibbleId:e.nibble.id})}onNibbleCommentsDialog(e){this.collectionId&&this.nibbleCommentsDialog.open$({nibbleCut:e,collectionId:this.collectionId}).subscribe(()=>{this.editEnded.emit()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-nibble-list"]],inputs:{collectionId:"collectionId",nibbles:[1,"nibbles"]},outputs:{editEnded:"editEnded",createEnded:"createEnded"},decls:3,vars:1,consts:[[3,"id"],[1,"px-4","py-3"],[3,"nibbleAction","nibbleEdit","nibbleCollectionNote","nibbleComments","nibbleDetail","nibbleCut","lang","infoService"],[1,"flex","justify-between","mb-3"],[1,"nibble-content-container","pt-3","px-3"],[1,"cursor-pointer","mb-3",3,"click"],[3,"innerHTML"],[3,"nibbleCut"],[1,"cursor-pointer","mt-2",3,"click"],["type","collection",3,"note"],[1,"min-w-0","flex-auto","mx-3","flex","flex-col","gap-3","note-container"],[3,"note"],[3,"action","nibbleCut"],[1,"font-bold","p-2","border-bottom"],[1,"border-bottom","cursor-pointer"],[1,"border-bottom","cursor-pointer",3,"click"],[3,"collection"]],template:function(i,n){i&1&&(Ce(0,bn,16,8,"div",0,_e),h(2,_n,3,3,"div",1)),i&2&&(fe(n.nibbles()),c(2),g(n.nibbles().length===0?2:-1))},dependencies:[N,k,P,li,ft,lt,ce,O,oi,ri,ci,B,yt],styles:[`.nibble-content-container[_ngcontent-%COMP%]{width:80%}.note-container[_ngcontent-%COMP%]{background-color:#e1e1e152;border-style:solid;border-width:0 0 0 1px;border-color:#ccccccc4}.nibble-REC[_ngcontent-%COMP%]{background-color:#b249580d}.nibble-TXT[_ngcontent-%COMP%], .nibble-COLL[_ngcontent-%COMP%]{background-color:#3783a80f}.nibble-VID[_ngcontent-%COMP%]{background-color:#f03d3d0a}.nibble-IMG[_ngcontent-%COMP%], .nibble-IMG3F[_ngcontent-%COMP%], .nibble-IMG3IF[_ngcontent-%COMP%]{background-color:#f6ba281a}.nibble-DOC3IF[_ngcontent-%COMP%]{background-color:#f6ba2840}.nibble-LINK[_ngcontent-%COMP%], .nibble-AUD[_ngcontent-%COMP%]{background-color:#438d4b17}.nibble-CROP[_ngcontent-%COMP%]{background-color:#f6ba281a}
6/*# sourceMappingURL=collection-nibble-list.component-GEOLE25F.css.map */`],changeDetection:0})}}return t})();function Cn(t,b){if(t&1){let e=v();l(0,"mat-card",0)(1,"div",1)(2,"pc-collection-header-toolbar",2),_("updated",function(){d(e);let n=r();return u(n.init())}),a()(),l(3,"div",3)(4,"div",4)(5,"div",5)(6,"pc-collection-draft",6),_("updated",function(){d(e);let n=r();return u(n.init())}),a()(),l(7,"div",7)(8,"div",8),x(9,"pc-collection-item-header",9),a(),l(10,"pc-collection-nibble-list",10),_("createEnded",function(){d(e);let n=r();return u(n.init())})("editEnded",function(){d(e);let n=r();return u(n.init())}),a()()()()()}if(t&2){let e=r();c(2),m("collection",e.collection),c(4),m("collection",e.collection),c(3),m("collection",e.collection),c(),m("collectionId",e.collection.id)("nibbles",e.collection.nibbles)}}var si=(()=>{class t{constructor(){this.collection=null,this.favoriteLib=s(ye),this.favoriteCollectionService=s(Me),this.destroyRef=s(te)}ngAfterViewInit(){window.dispatchEvent(new Event("resize"))}init(){this.collection?.id&&this.favoriteCollectionService.get(this.collection.id,"on").pipe(H(this.destroyRef)).subscribe(()=>{this.favoriteLib.refreshPlugin()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-item"]],inputs:{collection:"collection"},decls:1,vars:1,consts:[[1,"mx-3","flex","flex-col","h-full"],[1,"border-bottom"],[3,"updated","collection"],[1,"container-fluid","flex-auto","overflow-auto"],[1,"row","h-full"],[1,"md:col-4","px-0","h-full","border-right"],["cdkScrollable","",1,"h-full","flex","flex-col","overflow-auto",3,"updated","collection"],[1,"md:col-8","h-full","px-0","mt-3","md:mt-0","overflow-auto","relative"],[1,"p-2","border-bottom"],[3,"collection"],[3,"createEnded","editEnded","collectionId","nibbles"]],template:function(i,n){i&1&&h(0,Cn,11,5,"mat-card",0),i&2&&g(n.collection?0:-1)},dependencies:[_t,At,ai,tt,et,k,ti,O,ct,rt,ii],styles:[`.collection-content-title[_ngcontent-%COMP%]{font-size:1.3rem}.column[_ngcontent-%COMP%]{height:calc(100vh - 48px - 2rem)}.column[_ngcontent-%COMP%] > mat-card[_ngcontent-%COMP%]{overflow-y:auto}  .mat-tab-body-wrapper{flex-grow:1}.text-success-alt[_ngcontent-%COMP%]{color:#00b33e}
7/*# sourceMappingURL=collection-item.component-AW7UBX43.css.map */`],changeDetection:0})}}return t})();var pi=(()=>{class t{constructor(){this.router=s(qe),this.favoriteCollectionService=s(Me),this.frameService=s(Ke),this.personalContentRouting=s(Q),this.favoriteCollectionRepository=s(mt),this.transloco=s(L),this.snackbar=s(W),this.title=s($e),this.route=s(We),this.destroyRef=s(te),this.loading$=ue(!1),this.collectionId="",this.collectionUpdatedDialogOpened=!1,this.collection$=this.route.params.pipe(Te(e=>{let i=e.id;return this.snackbarRef&&(this.snackbarRef.dismiss(),this.collectionUpdatedDialogOpened=!1),this.favoriteCollectionRepository.selectCollection(i).pipe(pe(n=>{n&&this.frameService.addDynamicRoute({label:me(n),url:this.personalContentRouting.collectionSingleRouteUrl(n.id),category:dt})}))}),H(this.destroyRef)),this.frame=s(Ye),this.collectionCheckUpdate=s(Pt),this.handleError=this.handleError.bind(this)}ngOnInit(){this.route.params.pipe(H(this.destroyRef)).subscribe(e=>{this.collectionId=e.id,this.init()}),Fe(1e4).pipe(Te(()=>this.collectionCheckUpdate.checkUpdate(this.collectionId)),H(this.destroyRef)).subscribe(e=>{if(this.collectionUpdatedDialogOpened)return;let i=this.favoriteCollectionRepository.getCollection(this.collectionId);e.updateCheckNum===-1||e.updateCheckUser===""||i?.updateCheckNum===e.updateCheckNum||i?.updateCheckUser===e.updateCheckUser||e.updateCheckNum===null||e.updateCheckUser===null||(this.snackbarRef=this.snackbar.open(this.transloco.translate("personal_content.collection.collection_needs_update"),"error",{duration:0},{label:this.transloco.translate("personal_content.collection.update"),action:()=>{this.init(),this.snackbarRef?.dismiss(),this.collectionUpdatedDialogOpened=!1}}),this.collectionUpdatedDialogOpened=!0,this.snackbarRef.afterDismissed().pipe(H(this.destroyRef)).subscribe(()=>{this.collectionUpdatedDialogOpened=!1}))}),this.router.events.pipe(H(this.destroyRef)).subscribe(e=>{if(e instanceof Ge){let i=this.router.parseUrl(this.router.url);if(i.fragment){let n=document.querySelector("#"+i.fragment);n&&n.scrollIntoView()}}})}isLoading(e){return this.favoriteCollectionRepository.selectCollectionLoading(e)}init(){this.collectionId&&this.favoriteCollectionService.get(this.collectionId,"on").pipe(pe(e=>{this.favoriteCollectionService.setActive(this.collectionId);let i=this.transloco.getActiveLang(),n=i in this.frame.title?this.frame.title[i]:"<missing lang>";this.title.setTitle(`${me(e.collection)} | ${n}`)}),be(this.handleError),H(this.destroyRef)).subscribe({error:e=>{this.snackbar.open(e?.message||this.transloco.translate("api.messages.something_bad_happened"),"error")}})}ngOnDestroy(){let e=this.transloco.getActiveLang(),i=e in this.frame.title?this.frame.title[e]:"<missing lang>";this.title.setTitle(i),this.snackbarRef&&this.snackbarRef.dismiss()}handleError(e){return e.status===404?Z(()=>new Error(this.transloco.translate("personal_content.messages.collection_not_found",{value:this.collectionId}))):e instanceof ve?Z(()=>new Error(e.message)):Z(()=>new Error(this.transloco.translate("api.messages.something_bad_happened")))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["pc-collection-single"]],decls:5,vars:6,consts:[[1,"h-full","py-3"],[3,"collection"],[3,"loading"]],template:function(i,n){i&1&&(l(0,"div",0),x(1,"pc-collection-item",1),C(2,"async"),a(),x(3,"aipb-inside-loading",2),C(4,"async")),i&2&&(c(),m("collection",f(2,2,n.collection$)),c(2),m("loading",f(4,4,n.isLoading(n.collectionId))))},dependencies:[z,si,xt,le],encapsulation:2})}}return t})();var zc=[{path:Q.collectionSinglePath,component:pi}];export{zc as CollectionRoutes};
8//# sourceMappingURL=chunk-B5RR7OVA.js.map
9
10//# debugId=afbe42bc-8f74-599b-8206-d37cbda3a644

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.