1"use strict";(self.webpackChunktbls=self.webpackChunktbls||[]).push([[182],{69182:(j,c,i)=>{i.r(c),i.d(c,{TouchpointCampaignPrintModule:()=>F});var s=i(72200),a=i(38132),g=i(47850),h=i(443),u=i(21413),C=i(25558),f=i(88141),M=i(56977),t=i(73664),P=i(83243),v=i(345),p=i(45398);const x=()=>["/admin/touchpoint-campaigns"];function O(n,R){if(1&n&&(t.j41(0,"p")(1,"a",7),t.EFF(2),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("href",t.mNQ(e.qrCodeValue),t.B4B),t.R7$(),t.JRh(e.qrCodeValue)}}function y(n,R){if(1&n&&(t.j41(0,"div",4)(1,"p",5),t.EFF(2),t.k0s(),t.j41(3,"p"),t.EFF(4),t.k0s(),t.nrm(5,"br")(6,"qrcode",6)(7,"br"),t.nVh(8,O,3,3,"p"),t.j41(9,"p"),t.EFF(10),t.k0s()()),2&n){const e=t.XpG();t.R7$(2),t.JRh(e.campaign.title),t.R7$(2),t.SpI(" ",e.campaign.printTopText," "),t.R7$(2),t.Y8G("elementType",e.elementType)("errorCorrectionLevel",e.correctionLevel)("qrdata",e.qrCodeValue)("width",600),t.R7$(2),t.vxM(e.env.production?-1:8),t.R7$(2),t.SpI(" ",e.campaign.printBottomText," ")}}let z=(()=>{class n{constructor(e,o,r){this.route=e,this.repoService=o,this.titleService=r,this.destroyed$=new u.B,this.loading=!1,this.env=h.c,this.elementType="url",this.correctionLevel="H"}ngOnInit(){this.getModel()}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}getModel(){let e="";this.loading=!0,this.route.params.pipe((0,C.n)(o=>(e=o.guid,console.log(e),this.repoService.getTouchpointCampaign(e))),(0,f.M)(o=>{this.loading=!1,o&&(this.campaign=o,this.titleService.setTitle(this.campaign.name),this.qrCodeValue=`${this.env.touchpointCampaignEntryUrl};guid=${this.campaign.guid}`)}),(0,M.Q)(this.destroyed$)).subscribe()}printPage(){window.print()}static{this.\u0275fac=function(o){return new(o||n)(t.rXU(P.nX),t.rXU(g.Gw),t.rXU(v.hE))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["tbls-touchpoint-campaign-print"]],standalone:!1,decls:7,vars:3,consts:[[1,"control-header"],[2,"padding-top","20px"],[3,"routerLink"],[1,"link",2,"margin-left","120px",3,"click"],[1,"qrcode-print-page"],[1,"title"],["cssClass","qrcode",3,"elementType","errorCorrectionLevel","qrdata","width"],["target","_blank",3,"href"]],template:function(o,r){1&o&&(t.j41(0,"div",0)(1,"p",1)(2,"a",2),t.EFF(3,"Back to List"),t.k0s(),t.j41(4,"a",3),t.bIt("click",function(){return r.printPage()}),t.EFF(5,"Print"),t.k0s()()(),t.nVh(6,y,11,8,"div",4)),2&o&&(t.R7$(2),t.Y8G("routerLink",t.lJ4(2,x)),t.R7$(4),t.vxM(r.campaign?6:-1))},dependencies:[a.Wk,p.c],styles:[".qrcode-print-page[_ngcontent-%COMP%]{font-size:40pt;text-align:center;vertical-align:middle;width:100%;height:100%}.qrcode-print-page[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:60pt}.qrcode-print-page[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{justify-content:center}.qrcode[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:600px}.control-header[_ngcontent-%COMP%]{width:100%;height:60px;font-size:1.2em;background-color:bisque;font-weight:700;text-align:center}@media print{.control-header[_ngcontent-%COMP%]{display:none}}@media all and (min-width: 50px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:.8em}}@media all and (min-width: 100px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:1em}}@media all and (min-width: 200px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:1.2em}}@media all and (min-width: 300px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:1.4em}}@media all and (min-width: 400px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:1.6em}}@media all and (min-width: 500px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:1.8em}}@media all and (min-width: 600px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:2em}}@media all and (min-width: 700px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:2.2em}}@media all and (min-width: 800px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:2.4em}}@media all and (min-width: 900px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:2.6em}}@media all and (min-width: 1000px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:2.8em}}@media all and (min-width: 1100px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:3em}}@media all and (min-width: 1200px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:3.2em}}@media all and (min-width: 1300px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:3.4em}}@media all and (min-width: 1400px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:3.6em}}@media all and (min-width: 1500px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:3.8em}}@media all and (min-width: 1500px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:4em}}@media all and (min-width: 1600px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:4.2em}}@media all and (min-width: 1700px){.qrcode-print-page[_ngcontent-%COMP%]{font-size:4.4em}}"]})}}return n})();var d=i(2615);const w=[{path:":guid",component:z}];let q=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=d.G2t({imports:[a.iI.forChild(w),a.iI]})}}return n})();
1var $=i(4541),l=i(15861),m=i(89417);let T=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=d.G2t({imports:[s.MD,m.YN,m.X1,a.iI,l.G]})}}return n})(),F=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=d.G2t({imports:[s.MD,a.iI,q,p.c,$.d,l.G,T]})}}return n})()}}]);
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.