"use strict";(self.webpackChunkwebadmin=self.webpackChunkwebadmin||[]).push([["libs_dialogs_bookmarks_download-modal_bookmark-download_component_ts"],{16227:(f,e,o)=>{o.r(e),o.d(e,{NxBookmarkDownloadComponent:()=>C});var i=o(82529),d=o(60177),r=o(60802),c=o(2877),m=o(48233),E=o(36121),M=o(10391),t=o(4020),g=o(78606),p=o(32158),D=o(64147),P=o(60272),O=o(77894);const h=a=>({title:a}),v=()=>({"width.px":"20","height.px":"20"});let C=(()=>{class a{constructor(s,{bookmarkName:l,exportName:n,downloadSrc:_}){this.dialogRef=s,this.LANG=m,this.icons=M.Pt,this.bookmarkName=l,this.exportName=n,this.downloadSrc$=_}close(){this.dialogRef.close()}static{this.\u0275fac=function(l){return new(l||a)(t.rXU(i.ce),t.rXU(i.Qs))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["nx-bookmark-download"]],decls:17,vars:17,consts:[[1,"download-modal"],[1,"modal-header"],[1,"title"],[1,"modal-body"],["translate","",1,"paragraph","download-text"],[1,"modal-footer"],[1,"anchor","btn-primary","btn",3,"click","href","download"],["nxAddSvgSrc","",3,"src","svgStyle","applyClass"],["translate","",1,"download-button-text"],["type","button","data-dismiss","modal","aria-label","Close","translate","",1,"close","btn-default","btn",3,"click"]],template:function(l,n){1&l&&(t.j41(0,"div",0)(1,"div",1)(2,"h1",2),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",3)(6,"p",4),t.EFF(7," The length of this bookmark will be slightly increased to maintain video quality "),t.k0s()(),t.j41(8,"div",5)(9,"a",6),t.nI1(10,"async"),t.nI1(11,"safe"),t.bIt("click",function(){return n.close()}),t.nrm(12,"svg-icon",7),t.j41(13,"span",8),t.EFF(14,"Download"),t.k0s()(),t.j41(15,"button",9),t.bIt("click",function(){return n.close()}),t.EFF(16," Cancel "),t.k0s()()()),2&l&&(t.R7$(3),t.SpI(" ",t.i5U(4,6,"Download {title}",t.eq3(14,h,n.bookmarkName||""))," "),t.R7$(6),t.Y8G("href",t.i5U(11,11,t.bMT(10,9,n.downloadSrc$),"url"),t.B4B)("download",n.exportName),t.R7$(3),t.Y8G("src",n.icons.dirTextButtons+"download-2.svg")("svgStyle",t.lJ4(16,v))("applyClass",!0))},dependencies:[c.c,g.DM,p.NxAddSvgSrcDirective,d.MD,d.Jj,r.h,D.M,P.D,E.Y,O.i],styles:["[_nghost-%COMP%]   .close[_ngcontent-%COMP%]{position:relative;font-family:var(--font-family-regular);opacity:1!important}[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{font-size:15px!important}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}[_nghost-%COMP%]   .download-text[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%]   .download-button-text[_ngcontent-%COMP%]{margin-left:5px}"]})}}return a})()}}]);