1(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7638],{7638:(C,i,n)=>{"use strict";n.r(i),n.d(i,{DocPopupComponent:()=>x});var o,u=n(655),l=n(7188),d=n(6895),v=n(1951),P=n(9933),p=n(6188),a=n(9093),y=n(9164),M=n(7748),e=n(4650),m=n(7322);function D(c,r){1&c&&e._UZ(0,"span",7),2&c&&e.Q6J("innerHTML"," \xb7 "+r.ngIf,e.oJD)}function T(c,r){if(1&c&&(e.ynx(0),e.YNc(1,D,1,1,"span",10),e.ALo(2,"async"),e.ALo(3,"subdivision"),e.BQk()),2&c){const t=r.$implicit;e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,e.xi3(3,3,t,"name")))}}function s(c,r){if(1&c&&(e.ynx(0),e._UZ(1,"span",7),e._uU(2," \xb7 "),e.BQk()),2&c){const t=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",t.docItem.type,e.oJD)}}function h(c,r){if(1&c&&e._UZ(0,"div",7),2&c){const t=e.oxw(2);e.Q6J("innerHTML",t.file.description,e.oJD)}}const E=function(){return[]},b=function(){return{document:null}};function O(c,r){if(1&c){const t=e.EpF();e.TgZ(0,"div",1),e.NdJ("click",function(){e.CHM(t);const f=e.oxw();return e.KtG(f.close())}),e.TgZ(1,"div",2),e.NdJ("click",function(f){return f.stopPropagation()}),e.TgZ(2,"div",3),e._UZ(3,"h3",4),e.TgZ(4,"div")(5,"a",5),e._UZ(6,"i",6),e.qZA()()(),e.TgZ(7,"div"),e._UZ(8,"span",7),e.YNc(9,T,4,6,"ng-container",8),e.qZA(),e.TgZ(10,"div"),e.YNc(11,s,3,1,"ng-container",9),e._UZ(12,"span",7),e.qZA(),e.YNc(13,h,1,1,"div",10),e.TgZ(14,"div",11)(15,"button",12),e.NdJ("click",function(){e.CHM(t);const f=e.oxw();return e.KtG(f.copy())}),e._UZ(16,"i",13)(17,"span",7),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"a",14),e._UZ(20,"i",15)(21,"span",7),e.ALo(22,"translate"),e.qZA()()()()}if(2&c){const t=e.oxw();e.Q6J("cdkTrapFocusAutoCapture",!0),e.xp6(3),e.Q6J("innerHTML",t.fileName,e.oJD),e.xp6(2),e.Q6J("routerLink",e.DdM(17,E))("queryParams",e.DdM(18,b)),e.xp6(3),e.Q6J("innerHTML",t.file.ext,e.oJD),e.xp6(1),e.Q6J("ngForOf",t.docItem.subdivisions),e.xp6(2),e.Q6J("ngIf",t.docItem.type),e.xp6(1),e.Q6J("innerHTML",t.docItem.date[1],e.oJD),e.xp6(1),e.Q6J("ngIf",t.file.description),e.xp6(4),e.Q6J("innerHTML",e.lcZ(18,13,"docs-storage.copy-doc-link"),e.oJD),e.xp6(2),e.Q6J("href",t.file.src,e.LSH)("download",t.file.description||t.file.name),e.xp6(2),e.Q6J("innerHTML",e.lcZ(22,15,"docs-storage.download-doc"),e.oJD)}}let x=((o=class{constructor(r,t,g,f,I){this.document=r,this.activatedRoute=t,this.backendService=g,this.cd=f,this.router=I}ngOnInit(){this.backendService.getData("docsStorage.getItems").pipe((0,P.t)(this)).subscribe(r=>{const[t]=this.activatedRoute.snapshot.queryParams.document.split(M.a).map(g=>parseInt(g,10));this.docItem=r.find(g=>g.id===t),this.file=this.docItem?.file,this.fileName=this.file?.description||this.docItem?.name||this.file?.name.replace(new RegExp(`.${this.file?.ext}$`,"i"),""),this.cd.markForCheck()})}copy(){this.file?.src&&a(this.document.location.origin+this.file.src)}close(){this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{document:null},queryParamsHandling:"merge"}).catch()}}).\u0275fac=function(r){return new(r||o)(e.Y36(d.K0),e.Y36(v.gz),e.Y36(m.v),e.Y36(e.sBO),e.Y36(v.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-doc-popup"]],inputs:{modalItem:"modalItem"},standalone:!0,features:[e.jDz],decls:1,vars:1,consts:[["class","popup-wrapper","cdkTrapFocus","",3,"cdkTrapFocusAutoCapture","click",4,"ngIf"],["cdkTrapFocus","",1,"popup-wrapper",3,"cdkTrapFocusAutoCapture","click"],["role","main",1,"popup",3,"click"],[1,"popup__header"],[1,"h1",3,"innerHTML"],["queryParamsHandling","merge",1,"nonunderline",3,"routerLink","queryParams"],["aria-hidden","true",1,"i-cross"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"popup__buttons"],[1,"btn","like-link","nonunderline",3,"click"],["aria-hidden","true",1,"i-copy-link"],[1,"btn",3,"href","download"],["aria-hidden","true",1,"i-download"]],template:function(r,t){1&r&&e.YNc(0,O,23,19,"div",0),2&r&&e.Q6J("ngIf",t.docItem&&t.file)},dependencies:[d.ez,d.sg,d.O5,d.Ov,v.Bz,v.rH,p.aw,p.X$,l.rt,l.mK,y.e],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;height:100%;width:100%}.popup-wrapper[_ngcontent-%COMP%]{align-items:center;background:rgba(0,0,0,.4);display:flex;justify-content:center;height:100%;overflow-x:hidden;overflow-y:auto;width:100%}.popup[_ngcontent-%COMP%]{background:var(--color-white);max-width:62.5ch;padding:3ex 3.02ch 4.27ex;width:100%}.popup__header[_ngcontent-%COMP%]{display:flex;gap:.61ch;justify-content:space-between}.popup__close[_ngcontent-%COMP%]{border-bottom:none}.popup__buttons[_ngcontent-%COMP%]{display:flex;gap:.61ch;margin-top:2.97ex}.popup__buttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{align-items:baseline;display:flex;gap:.305ch}.popup__buttons[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:before{vertical-align:middle}@media (prefers-contrast: more){.popup-wrapper[_ngcontent-%COMP%]{background-color:#000c}}.contrast-version[_nghost-%COMP%] .popup-wrapper[_ngcontent-%COMP%], .contrast-version [_nghost-%COMP%] .popup-wrapper[_ngcontent-%COMP%]{background-color:#000c}.contrast-version[_ngcontent-%COMP%] .popup-wrapper[_ngcontent-%COMP%]{background-color:#000c}'],changeDetection:0}),o);x=(0,u.gn)([(0,P.c)()],x)},7748:(C,i,n)=>{"use strict";n.d(i,{a:()=>u});const u="-"},9093:(C,i,n)=>{"use strict";var u=n(3675),l={"text/plain":"Text","text/html":"Url",default:"Text"};C.exports=function P(p,a){var _,y,M,e,m,o,D=!1;a||(a={}),_=a.debug||!1;try{if(M=u(),e=document.createRange(),m=document.getSelection(),(o=document.createElement("span")).textContent=p,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(s){s.stopPropagation(),a.format&&(s.preventDefault(),typeof s.clipboardData>"u"?(_&&console.warn("unable to use e.clipboardData"),_&&console.warn("trying IE specific stuff"),window.clipboardData.clearData(),window.clipboardData.setData(l[a.format]||l.default,p)):(s.clipboardData.clearData(),s.clipboardData.setData(a.format,p))),a.onCopy&&(s.preventDefault(),a.onCopy(s.clipboardData))}),document.body.appendChild(o),e.selectNodeContents(o),m.addRange(e),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");D=!0}
1catch(s){_&&console.error("unable to copy using execCommand: ",s),_&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",p),a.onCopy&&a.onCopy(window.clipboardData),D=!0}catch(h){_&&console.error("unable to copy using clipboardData: ",h),_&&console.error("falling back to prompt"),y=function v(p){var a=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,a)}("message"in a?a.message:"Copy to clipboard: #{key}, Enter"),window.prompt(y,p)}}finally{m&&("function"==typeof m.removeRange?m.removeRange(e):m.removeAllRanges()),o&&document.body.removeChild(o),M()}return D}},3675:C=>{C.exports=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var n=document.activeElement,u=[],l=0;l<i.rangeCount;l++)u.push(i.getRangeAt(l));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return i.removeAllRanges(),function(){"Caret"===i.type&&i.removeAllRanges(),i.rangeCount||u.forEach(function(d){i.addRange(d)}),n&&n.focus()}}}}]);
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.