PageSourceSearch

https://my.videojet.com/chunk-KBZIF7HZ.js

js videojet.com collected 2026-10-03 21:38:30 UTC 29,821 bytes, 1 lines download raw bytes

1import{a as V}from"./chunk-SQGHIALN.js";import{A as E,F as G,Ga as xe,I as pe,Ja as _e,Ma as fe,Na as Ce,S as ue,U as K,W as q,Xa as X,bb as be,c as z,cb as N,db as ve,fa as he,fb as ye,hb as we,i as U,m as ce,r as me,sa as ge,vb as Te,xa as Q,y as J}from"./chunk-2BM7GTJT.js";import{Bb as x,Db as _,Eb as ee,Fb as L,Gb as T,Hb as S,Ib as B,Ic as h,Jb as r,Jc as g,Kb as o,Lb as u,Sb as w,Ua as a,W as O,Wb as y,Xb as c,bb as f,da as b,ea as v,fa as R,ga as re,ia as ae,ib as I,jb as W,kc as s,lc as F,mc as m,nc as se,o as Z,ob as le,oc as de,qc as j,rc as A,sc as H,tc as $,yc as k}from"./chunk-CZQR6XQ3.js";import{f as D}from"./chunk-EQDQRRRY.js";var te=()=>[1,2,3];function Ve(t,d){if(t&1){let e=w();r(0,"li",23),y("click",function(){let n=b(e).$implicit,l=c(3);return v(l.onSelectModel(n))}),s(1),o()}if(t&2){let e=d.$implicit;a(),m(" ",e," ")}}function je(t,d){if(t&1&&(r(0,"ul",13),T(1,Ve,2,1,"li",22,L),o()),t&2){let e=c(2);a(),S(e.filteredModels)}}function Ae(t,d){if(t&1&&x(0,je,3,0,"ul",13),t&2){let e=c();_(e.searchTerm&&e.filteredModels.length>0?0:-1)}}function He(t,d){t&1&&(r(0,"ul",13)(1,"li",24)(2,"span",25),s(3),h(4,"transloco"),o()()()),t&2&&(a(3),F(g(4,1,"NoResultsFound")))}function Ge(t,d){t&1&&(r(0,"div",26),u(1,"div",27)(2,"div",28)(3,"div",29),o())}function Oe(t,d){t&1&&(r(0,"div",26),u(1,"div",27)(2,"div",28)(3,"div",29),o())}function Re(t,d){t&1&&(r(0,"div",26),u(1,"div",27)(2,"div",28)(3,"div",29),o())}function We(t,d){t&1&&(T(0,Ge,4,0,"div",26,L),T(2,Oe,4,0,"div",26,L),T(4,Re,4,0,"div",26,L)),t&2&&(S(k(0,te)),a(2),S(k(1,te)),a(2),S(k(2,te)))}function $e(t,d){if(t&1){let e=w();r(0,"div",30)(1,"p",31),s(2),o(),r(3,"h3",32),s(4),o(),r(5,"a",33),y("click",function(){let n=b(e).$implicit,l=c(2);return v(l.onSelectTech(n))}),s(6),h(7,"transloco"),r(8,"span",18),s(9,">"),o()()()}if(t&2){let e=d.$implicit,i=c(2);a(2),m(" ",e," "),a(2),m(" ",i.getTechFullForm(e)," "),a(2),m(" ",g(7,3,"apps.ViewModels")," \xA0 \xA0 ")}}function ze(t,d){if(t&1&&T(0,$e,10,5,"div",30,L),t&2){let e=c();S(e.techTypes)}}function Ue(t,d){t&1&&(r(0,"div",21)(1,"div",34),s(2),h(3,"transloco"),o()()),t&2&&(a(2),m(" ",g(3,1,"shared.NoDataFound")," "))}var Le=(()=>{class t{constructor(e,i,n,l){this.manualService=e,this.router=i,this.dialogService=n,this.translocoService=l,this.printerModels=[],this.filteredModels=[],this.searchTerm="",this.techTypes=[],this.languages=[],this.isLoading=!1,this.NoDataFound=!1,this.ref=null,this.techTypesLoaded=!1,this.modelTechCache=new Map,this.techPrinterCache=new Map,this.techMapping={CIJ:"Continuous Inkjet",Graphics:"Graphics and Postal",Supplies:"Supplies, Parts and Accessories",IoT:"Internet of Things",LCM:"Large Character Marking",LPA:"Label Print and Apply",Laser:"Laser Marking Systems","Pallet labeling":"Pallet Labeling",Service:"Service",Software:"Software",TIJ:"Thermal Inkjet",TTO:"Thermal Transfer Overprinters",Vision:"Inline Vision Inspection"}}ngOnInit(){this.GetBrandFolderTechTypes(),this.GetBrandFolderPrinterModels()}GetBrandFolderPrinterModels(){this.manualService.GetBrandFolderPrinterModels().subscribe({next:e=>{this.printerModels=e.data,this.filteredModels=e.data}})}GetBrandFolderTechTypes(){this.isLoading=!0,this.manualService.GetBrandFolderTechTypes().subscribe({next:e=>{this.techTypes=e.data,this.NoDataFound=this.techTypes.length===0,this.techTypesLoaded=!0},error:()=>{this.isLoading=!1,this.techTypesLoaded=!0},complete:()=>{this.isLoading=!1}})}onSearch(e){let i=e.target.value.toLowerCase();if(this.searchTerm=i,i.trim()===""){this.filteredModels=[];return}this.filteredModels=this.printerModels.filter(n=>n.toLowerCase().includes(i))}onSelectTech(e){this.manualService.updateSelectedTech(e),this.router.navigate(["/product-documentation",e])}onSelectModel(e){return D(this,null,function*(){this.searchTerm=e,this.filteredModels=[];let i=yield this.resolveTechnologyForModel(e),n=i?["/product-documentation",i,e]:["/product-documentation",e];this.router.navigate(n)})}resolveTechnologyForModel(e){return D(this,null,function*(){let i=this.normaliseModelName(e);if(!i)return null;let n=this.modelTechCache.get(i);if(n)return n;let l=yield this.getCandidateTechs(i);for(let p of l)if((yield this.getPrintersForTech(p)).find(M=>typeof M?.model=="string"&&this.normaliseModelName(M.model)===i))return this.modelTechCache.set(i,p),p;return null})}getCandidateTechs(e){return D(this,null,function*(){let i=yield this.ensureTechTypes(),n=i.filter(C=>typeof C=="string"&&e.includes(C.toLowerCase()));if(n.length>0)return n;let l=e.split(/\s+/)[0],p=i.filter(C=>typeof C=="string"&&C.toLowerCase()===l);return p.length>0?p:i})}ensureTechTypes(){return D(this,null,function*(){if(Array.isArray(this.techTypes)&&this.techTypes.length)return this.techTypes;if(this.techTypesLoaded)return this.techTypes||[];try{let e=yield Z(this.manualService.GetBrandFolderTechTypes()),i=Array.isArray(e?.data)?e.data:[];return this.techTypes=i,this.NoDataFound=i.length===0,i}catch(e){return this.techTypes||[]}finally{this.techTypesLoaded=!0}})}getPrintersForTech(e){return D(this,null,function*(){if(this.techPrinterCache.has(e))return this.techPrinterCache.get(e)??[];try{let n=(yield Z(this.manualService.GetBrandFolderPrintersListWithAssets(e)))?.data?.techDetails?.printers;if(Array.isArray(n))return this.techPrinterCache.set(e,n),n}catch(i){}return this.techPrinterCache.set(e,[]),[]})}normaliseModelName(e){return(e||"").trim().toLowerCase()}getTechFullForm(e){return this.techMapping[e]||e}openContactModal(){this.ref=this.dialogService.open(ye,{showHeader:!1,width:"50vw",modal:!0,closable:!0,dismissableMask:!0,breakpoints:{"960px":"75vw","640px":"90vw"}})}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(E),f(Q),f(be))}}static{this.\u0275cmp=I({type:t,selectors:[["app-documentation-home"]],standalone:!1,decls:42,vars:29,consts:[[1,"@container","mx-auto","px-3","py-6","sm:px-4","sm:py-8","md:px-6","md:py-10","lg:px-8"],[1,"mx-auto","grid","max-w-(--breakpoint-2xl)","grid-cols-1","gap-4","sm:gap-6","md:gap-8"],[1,"mb-3","grid","grid-cols-1","gap-4","sm:mb-4","sm:gap-6","md:grid-cols-3","md:gap-8"],[1,"md:col-span-2"],[1,"mb-3","text-xl","font-semibold","text-gray-900","sm:mb-4","sm:text-2xl","md:mb-5","md:text-3xl","lg:text-4xl"],[1,"mb-4","text-sm","text-gray-600","sm:mb-6","sm:text-base","md:mb-8","md:text-lg"],[1,"flex","flex-col","items-start","gap-2","rounded-lg","bg-gray-100","px-3","py-3","shadow-md","transition-shadow","duration-300","hover:shadow-lg","sm:flex-row","sm:items-center","sm:gap-3","sm:px-4","sm:py-4","md:gap-4","md:py-5"],[1,"text-sm","font-medium","whitespace-nowrap","text-gray-700","sm:text-base"],[1,"relative","w-full"],[1,"pointer-events-none","absolute","top-1/2","left-2","-translate-y-1/2","text-blue-500","sm:left-3"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4","text-blue-200","sm:h-5","sm:w-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M21 21l-4.35-4.35m0 0A7.5 7.5 0 104.5 4.5a7.5 7.5 0 0012.15 12.15z"],["id","product-search","type","text",1,"w-full","rounded-lg","border","border-gray-300","bg-white","py-2","pr-3","pl-8","text-sm","transition-shadow","duration-200","focus:ring-2","focus:ring-blue-200","focus:outline-none","sm:py-2.5","sm:pr-4","sm:pl-10","sm:text-base",3,"ngModelChange","input","ngModel","placeholder"],[1,"absolute","z-10","mt-1","max-h-48","w-full","overflow-auto","rounded-lg","border","border-gray-200","bg-white","shadow-lg","sm:max-h-60"],[1,"w-full","rounded-lg","bg-gray-100","p-4","shadow-md","transition-shadow","duration-300","hover:shadow-lg","sm:p-5","md:p-6"],[1,"mb-2","text-base","font-semibold","text-blue-200","sm:mb-3","sm:text-lg","md:text-xl"],[1,"mb-4","text-xs","
1sm:mb-5","sm:text-sm","md:text-base"],[1,"cursor-pointer","text-sm","font-semibold","text-blue-200","underline","underline-offset-6","transition-colors","duration-200","hover:text-blue-300","sm:text-base",3,"click"],[1,"text-base","leading-none","sm:text-lg"],[1,"mb-4","pt-3","text-lg","font-semibold","text-gray-800","sm:mb-5","sm:pt-4","sm:text-xl","md:mb-6","md:text-2xl"],[1,"grid","grid-cols-1","gap-4","sm:grid-cols-2","sm:gap-5","md:gap-6","lg:grid-cols-3"],[1,"col-span-full"],[1,"cursor-pointer","px-3","py-2","text-sm","transition-colors","duration-200","hover:bg-blue-100","sm:px-4","sm:py-2.5","sm:text-base"],[1,"cursor-pointer","px-3","py-2","text-sm","transition-colors","duration-200","hover:bg-blue-100","sm:px-4","sm:py-2.5","sm:text-base",3,"click"],[1,"px-3","py-2","text-sm","transition-colors","duration-200","sm:px-4","sm:py-2.5","sm:text-base"],[1,"text-black-800"],[1,"animate-pulse","rounded-xl","border","border-gray-200","bg-white","p-4","shadow","sm:p-5","md:p-6"],[1,"mb-2","h-2","w-1/3","rounded","bg-gray-200","sm:h-3"],[1,"mb-3","h-4","w-2/3","rounded","bg-gray-200","sm:h-5"],[1,"h-3","w-1/4","rounded","bg-gray-200","sm:h-4"],[1,"rounded-xl","border","border-gray-200","bg-white","p-4","shadow-md","transition-shadow","duration-300","hover:shadow-lg","sm:p-5","md:p-6"],[1,"pb-2","text-xs","font-semibold","text-blue-200","uppercase","sm:pb-3","sm:text-sm"],[1,"mb-4","text-base","font-semibold","text-gray-900","sm:mb-5","sm:text-lg","md:mb-6","md:text-xl"],[1,"mb-4","cursor-pointer","text-xs","font-semibold","text-blue-200","underline","underline-offset-6","transition-colors","duration-200","hover:text-blue-300","sm:mb-6","sm:text-sm","md:text-base",3,"click"],[1,"py-6","text-center","text-base","text-gray-500","sm:py-8","sm:text-lg","md:text-xl"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),s(5),h(6,"transloco"),o(),r(7,"p",5),s(8),h(9,"transloco"),o(),r(10,"div",6)(11,"span",7),s(12),h(13,"transloco"),o(),r(14,"div",8)(15,"span",9),R(),r(16,"svg",10),u(17,"path",11),o()(),re(),r(18,"input",12),h(19,"transloco"),H("ngModelChange",function(p){return A(n.searchTerm,p)||(n.searchTerm=p),p}),y("input",function(p){return n.onSearch(p)}),o(),x(20,Ae,1,1)(21,He,5,3,"ul",13),o()()(),r(22,"div",14)(23,"p",15),s(24),h(25,"transloco"),o(),r(26,"p",16),s(27),h(28,"transloco"),o(),r(29,"a",17),y("click",function(){return n.openContactModal()}),s(30),h(31,"transloco"),r(32,"span",18),s(33,">"),o()()()(),r(34,"div")(35,"h2",19),s(36),h(37,"transloco"),o(),r(38,"div",20),x(39,We,6,3)(40,ze,2,0),x(41,Ue,4,3,"div",21),o()()()()),i&2&&(a(5),m(" ",g(6,13,"apps.VideojetProductDocumentation")," "),a(3),m(" ",g(9,15,"apps.VideojetProductDocumentationDesc")," "),a(4),m("",g(13,17,"apps.FindProduct"),":"),a(6),B("placeholder",$(g(19,19,"apps.SearchproductPlaceholder"))),j("ngModel",n.searchTerm),a(2),_(n.filteredModels.length>0?20:21),a(4),m(" ",g(25,21,"apps.ProductManualText")," "),a(3),m(" ",g(28,23,"apps.DonotWorrytext")," "),a(3),m(" ",g(31,25,"apps.ContactCustomerSupport")," \xA0 \xA0 "),a(6),m(" ",g(37,27,"apps.BrowsebyTechnology")," "),a(3),_(n.isLoading?39:40),a(2),_(!n.isLoading&&n.NoDataFound?41:-1))},dependencies:[ue,K,q,N],encapsulation:2})}}return t})();var qe=()=>[1,2,3,4,5,6,7,8,9,10,11,12];function Qe(t,d){t&1&&(r(0,"div",8),u(1,"p-skeleton",11),o())}function Xe(t,d){t&1&&(r(0,"div",3),u(1,"p-skeleton",4),o(),r(2,"div",5),u(3,"p-skeleton",6),o(),r(4,"div",7),T(5,Qe,2,0,"div",8,ee),o(),r(7,"div",9),u(8,"p-skeleton",10),o()),t&2&&(a(5),S(k(0,qe)))}function Ye(t,d){t&1&&(r(0,"div",13),s(1),h(2,"transloco"),o()),t&2&&(a(),m(" ",g(2,1,"apps.ChooseProductModelDesc")," "))}function Ze(t,d){if(t&1){let e=w();r(0,"div",16),y("click",function(){let n=b(e).$implicit,l=c(2);return v(l.onSelectModel(n))}),s(1),h(2,"uppercase"),o()}if(t&2){let e=d.$implicit,i=c(2);a(),m(" ",g(2,1,i.replaceString(e))," ")}}function et(t,d){t&1&&(r(0,"div",15)(1,"div",17),s(2),h(3,"transloco"),o()()),t&2&&(a(2),m(" ",g(3,1,"shared.NoDataFound")," "))}function tt(t,d){if(t&1){let e=w();r(0,"div",9)(1,"button",18),y("click",function(){b(e);let n=c(2);return v(n.navigateToBack())}),s(2),h(3,"transloco"),o()()}t&2&&(a(2),m(" < ",g(3,1,"shared.Back")," "))}function it(t,d){if(t&1&&(r(0,"div",12),s(1),o(),x(2,Ye,3,3,"div",13),r(3,"div",7),T(4,Ze,3,3,"div",14,ee),x(6,et,4,3,"div",15),o(),x(7,tt,4,3,"div",9)),t&2){let e=c();a(),m(" ",e.getTechFullForm(e.techType)," "),a(),_(e.techType&&e.techType.length>0?2:-1),a(2),S(e.allModels),a(2),_(!e.isLoading&&e.NoDataFound?6:-1),a(),_(e.showBackBtn?7:-1)}}var ke=(()=>{class t{constructor(e,i,n,l){this.route=e,this.manualService=i,this.router=n,this.location=l,this.techType=[],this.allModels=[],this.filteredModels=[],this.NoDataFound=!1,this.selectedTech="",this.showBackBtn=!1,this.isLoading=!1,this.techMapping={CIJ:"Continuous Inkjet",Graphics:"Graphics and Postal",Supplies:"Supplies, Parts and Accessories",IoT:"Internet of Things",LCM:"Large Character Marking",LPA:"Label Print and Apply",Laser:"Laser Marking Systems","Pallet labeling":"Pallet Labeling",Service:"Service",Software:"Software",TIJ:"Thermal Inkjet",TTO:"Thermal Transfer Overprinters",Vision:"Inline Vision Inspection"}}ngOnInit(){this.route.paramMap.subscribe(e=>
1{let i=e.get("category");i&&(this.selectedTech=i,this.GetBrandFolderPrinterModelsByTechType())})}GetBrandFolderPrinterModelsByTechType(){this.isLoading=!0,this.manualService.GetBrandFolderPrintersListWithAssets(this.selectedTech).subscribe({next:e=>{if(e.success&&e.data&&e.data.techDetails){let i=e.data.techDetails;i.tech.toLowerCase()===this.selectedTech.toLowerCase()?(this.techType=i.tech,this.allModels=i.printers.map(n=>n.model)||[]):(this.techType=this.selectedTech,this.allModels=[])}else this.techType=this.selectedTech,this.allModels=[];this.NoDataFound=this.allModels.length===0,this.showBackBtn=!0},error:e=>{console.error("Error fetching data:",e),this.NoDataFound=!0,this.showBackBtn=!0},complete:()=>{this.isLoading=!1}})}replaceString(e){return e.replace(/-/g," ")}getTechFullForm(e){return this.techMapping[e]||e}onSelectModel(e){this.manualService.updateSelectedModel(e),this.router.navigate(["/product-documentation",this.techType,e])}navigateToBack(){this.location.back()}static{this.\u0275fac=function(i){return new(i||t)(f(J),f(V),f(E),f(z))}}static{this.\u0275cmp=I({type:t,selectors:[["app-printer-category"]],standalone:!1,decls:5,vars:1,consts:[[1,"@container","mx-auto","py-3"],[1,"mx-auto","grid","max-w-(--breakpoint-2xl)","grid-cols-1"],["styleClass","p-6"],[1,"col-span-12","mt-1","px-5","py-2"],["width","40%","height","2rem"],[1,"col-span-12","mt-2","mb-4","px-5","py-3"],["width","60%","height","1.5rem"],[1,"grid","grid-cols-12"],[1,"xs:col-span-12","col-span-12","mx-5","px-5","py-3","sm:col-span-6","md:col-span-4","lg:col-span-3"],[1,"mt-6","px-5","sm:mt-8","md:mt-10"],["width","8rem","height","2.5rem","borderRadius","9999px"],["width","100%","height","1.5rem"],[1,"col-span-12","mt-1","px-5","py-2","text-xl","font-bold"],[1,"col-span-12","mt-2","mb-4","px-5","py-3","font-medium"],[1,"xs:col-span-12","col-span-12","mx-5","cursor-pointer","border-b","border-gray-100/70","px-5","py-3","text-sm","font-semibold","text-blue-200","hover:bg-blue-100/20","hover:text-blue-300","sm:col-span-6","sm:text-base","md:col-span-4","md:text-base","lg:col-span-3"],[1,"col-span-12"],[1,"xs:col-span-12","col-span-12","mx-5","cursor-pointer","border-b","border-gray-100/70","px-5","py-3","text-sm","font-semibold","text-blue-200","hover:bg-blue-100/20","hover:text-blue-300","sm:col-span-6","sm:text-base","md:col-span-4","md:text-base","lg:col-span-3",3,"click"],[1,"py-6","text-center","text-base","text-gray-500","sm:py-8","sm:text-lg","md:text-xl"],[1,"cursor-pointer","rounded-full","bg-blue-200","px-4","py-2","text-sm","font-semibold","text-white","shadow-md","transition-colors","duration-200","hover:bg-blue-300","hover:shadow-lg","sm:px-5","sm:py-2.5","sm:text-base","md:px-6","md:py-2","md:text-base",3,"click"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"p-card",2),x(3,Xe,9,1)(4,it,8,4),o()()()),i&2&&(a(3),_(n.isLoading?3:4))},dependencies:[xe,X,U,N],encapsulation:2})}}return t})();var nt=()=>({"min-width":"100%"});function ot(t,d){if(t&1){let e=w();r(0,"div",5)(1,"label",10),s(2),h(3,"transloco"),r(4,"p-select",11),h(5,"transloco"),H("ngModelChange",function(n){b(e);let l=c();return A(l.selectedLanguageName,n)||(l.selectedLanguageName=n),v(n)}),y("onChange",function(n){b(e);let l=c();return v(l.onLanguageChange(n.value))}),o()()()}if(t&2){let e=c();a(2),m(" ",g(3,5,"apps.DocumentationLanguage"),": "),a(2),B("placeholder",$(g(5,7,"user.SelectLanguage")))("options",e.languageOptions),j("ngModel",e.selectedLanguageName)}}function rt(t,d){t&1&&(r(0,"div",6),s(1),h(2,"transloco"),o()),t&2&&(a(),m(" ",g(2,1,"apps.DownloadDocumentationText")," "))}function at(t,d){t&1&&(r(0,"div",7),s(1),h(2,"transloco"),o()),t&2&&(a(),m(" ",g(2,1,"shared.NoDataFound")," "))}function lt(t,d){t&1&&(r(0,"div",8),u(1,"div",12),r(2,"div",13)(3,"div",14)(4,"div",15),u(5,"div",16)(6,"div",17),o(),u(7,"div",18)(8,"div",19),o(),r(9,"div",20)(10,"div",15),u(11,"div",16)(12,"div",17),o(),u(13,"div",21)(14,"div",22),o(),r(15,"div",14)(16,"div",23),u(17,"div",24)(18,"div",25),o(),u(19,"div",26),o()(),u(20,"div",27),r(21,"div",28)(22,"div",29)(23,"div",30),u(24,"div",31)(25,"div",32),o(),u(26,"div",21)(27,"div",22),o(),r(28,"div",29)(29,"div",30),u(30,"div",31)(31,"div",32),o(),u(32,"div",21)(33,"div",22),o(),r(34,"div",29)(35,"div",30),u(36,"div",31)(37,"div",21),o(),u(38,"div",33),o()(),u(39,"div",34),o())}function st(t,d){if(t&1&&(r(0,"span",44),s(1),o()),t&2){let e=c().$implicit;a(),m("(",e.language,")")}}function dt(t,d){if(t&1&&(r(0,"span",44),s(1),o()),t&2){let e=c().$implicit;a(),m("(",e.language,")")}}function ct(t,d){if(t&1){let e=w();r(0,"tr",40)(1,"td",41),u(2,"p-tableCheckbox",42),r(3,"span",43),y("click",function(){let n=b(e).$implicit,l=c(4);return v(l.onDownload(n))}),s(4),h(5,"uppercase"),x(6,st,2,1,"span",44),o()(),r(7,"td",45),s(8),h(9,"transloco"),r(10,"span",46),s(11),o()(),r(12,"td",47)(13,"button",48),y("click",function(){let n=b(e).$implicit,l=c(4);return v(l.onDownload(n))}),u(14,"i",49),o()()(),r(15,"tr",50)(16,"td",51)(17,"span",52),s(18),h(19,"uppercase"),x(20,dt,2,1,"span",44),o()(),r(21,"td",53)(22,"div",54),s(23),h(24,"transloco"),r(25,"span",46),s(26),o()(),r(27,"button",55),y("click",function(){let n=b(e).$implicit,l=c(4);return v(l.onDownload(n))}),R(),r(28,"svg",56),u(29,"path",57),o()()()()}if(t&2){let e=d.$implicit,i=c(4);a(2),B("value",e),a(2),m(" ",g(5,9,i.replaceString(e.title??e.docName))," "),a(2),_(e.language?6:-1),a(2),m(" ",g(9,11,"apps.FileSize"),": "),a(3),F(e.fileSize||"300kb"),a(7),m(" ",g(19,13,i.replaceString(e.title??e.docName))," "),a(2),_(e.language?20:-1),a(3),m(" ",g(24,15,"apps.FileSize"),": "),a(3),F(e.fileSize||"300kb")}}function mt(t,d){t&1&&(u(0,"p-tableHeaderCheckbox"),r(1,"span",61),s(2),h(3,"transloco"),o()),t&2&&(a(2),F(g(3,1,"shared.SelectAll")))}function pt(t,d){if(t&1){let e=w();r(0,"tr",58)(1,"td",59),x(2,mt,4,3),o(),r(3,"td",60),y("click",function(){b(e);let n=c(4);return v(n.onDownloadSelectedFiles())}),s(4),h(5,"transloco"),h(6,"transloco"),o()()}if(t&2){let e=c(2).$implicit,i=c(2);a(2),_(e.records.length>1?2:-1),a(2),de(" ",g(5,4,"shared.Download")," ",i.selectedTechnologies.length||0," ",g(6,6,"apps.SelectedFiles")," ")}}function ut(t,d){if(t&1){let e=w();r(0,"p-table",37),H("selectionChange",function(n){b(e);let l=c(3);return A(l.selectedTechnologies,n)||(l.selectedTechnologies=n),v(n)}),le(1,ct,30,17,"ng-template",38)(2,pt,7,8,"ng-template",39),o()}if(t&2){let e=c().$implicit,i=c(2);
1B("value",e.records),j("selection",i.selectedTechnologies),B("showHeader",!1)("tableStyle",k(4,nt))}}function ht(t,d){if(t&1&&(r(0,"div")(1,"div",35),s(2),o(),x(3,ut,3,5,"p-table",36),o()),t&2){let e=d.$implicit,i=c(2);a(2),m(" ",e.docType," "),a(),_(i.technologies.length>0?3:-1)}}function gt(t,d){if(t&1&&(r(0,"div"),T(1,ht,4,2,"div",null,L),o()),t&2){let e=c();a(),S(e.groupedDocs)}}function xt(t,d){if(t&1){let e=w();r(0,"div",9)(1,"button",62),y("click",function(){b(e);let n=c();return v(n.navigateToBack())}),s(2),h(3,"transloco"),o()()}t&2&&(a(2),m(" < ",g(3,1,"shared.Back")," "))}var Pe=(()=>{class t{constructor(e,i,n,l,p,C,P,M,Ie){this.manualService=e,this.oAuthService=i,this.commonService=n,this.http=l,this.dialogService=p,this.route=C,this.router=P,this.location=M,this.document=Ie,this.technologies=[],this.selectedLanguageName="",this.selectedTech="",this.selectedTechnologies=[],this.NoDataFound=!1,this.ref=null,this.languageOptions=[],this.printerModel="",this.showBackBtn=!1,this.isLoading=!1,this.selectedCategory="",this.groupedDocs=[],this.route.paramMap.subscribe(ie=>{let ne=ie.get("model");ne&&(this.selectedTech=ne);let oe=ie.get("category");oe&&(this.selectedCategory=oe)});let Fe=this.router.getCurrentNavigation();this.printerModel=Fe?.extras.state?.printerModel||""}ngOnInit(){this.oAuthService.hasValidAccessToken()&&this.commonService.languageChangeSubject.subscribe(()=>{console.log("Global language changed, reloading languages..."),this.loadLanguages()}),this.loadLanguages()}getDocsByPrinterModel(){this.isLoading=!0;let e={input:this.selectedLanguageName||"English",printerModel:this.selectedTech||this.printerModel};this.manualService.GetDocsByPrinterModel(e).subscribe({next:i=>{let l=(i.data||[]).sort((p,C)=>{let P=(p.title||"").toLowerCase(),M=(C.title||"").toLowerCase();return P.localeCompare(M)});this.technologies=l,this.groupedDocs=this.groupByDocType(l),this.showBackBtn=!0,this.NoDataFound=l.length===0,l.length>0&&(this.selectedTech=l[0].printerModel)},error:()=>{this.technologies=[],this.groupedDocs=[],this.NoDataFound=!0},complete:()=>{this.isLoading=!1}})}groupByDocType(e){let i=new Map;return e.forEach(n=>{i.has(n.docType)||i.set(n.docType,[]),i.get(n.docType).push(n)}),Array.from(i.entries()).map(([n,l])=>({docType:n,records:l}))}loadLanguages(){return D(this,null,function*(){let e=localStorage.getItem("selectedLanguage")||"en",i=localStorage.getItem("selectedCountryName")||"";try{let n=yield this.manualService.GetBrandFolderLangs().toPromise();this.languageOptions=n.data.map(p=>({label:p,value:p.toLowerCase().replace(/\s+/g,"-"),LanguageName:p,name:p}));let l=yield this.findMatchingLanguageAsync(e,i);if(l)this.selectedLanguageName=l.LanguageName;else{let p=this.languageOptions.find(C=>C.LanguageName.toLowerCase()==="english");this.selectedLanguageName=p?p.LanguageName:"English"}this.getDocsByPrinterModel()}catch(n){this.selectedLanguageName="English",this.getDocsByPrinterModel()}})}findMatchingLanguageAsync(e,i){return D(this,null,function*(){try{let n=yield this.http.get("/assets/i18n/language.json").toPromise();if(!n||!n.languages)return null;let l=n.languages.find(C=>C.value.toLowerCase()===e.toLowerCase());if(!l)return null;let p=this.languageOptions.find(C=>C.LanguageName.toLowerCase()===l.LanguageName.toLowerCase());return p||(p=this.languageOptions.find(C=>{let P=C.LanguageName.toLowerCase(),M=l.LanguageName.toLowerCase();return P.includes(M)||M.includes(P)}),p)?p:null}catch(n){return null}})}onLanguageChange(e){this.selectedLanguageName=e,this.getDocsByPrinterModel()}ngOnDestroy(){this.ref&&this.ref.close()}onDownload(e){if(!e)return;let i={input:e.id};this.manualService.downloadOperatorManual(i).subscribe({next:n=>this.saveBlob(n,`${e.docName}.pdf`),error:()=>{}})}onDownloadSelectedFiles(){!this.selectedTechnologies||this.selectedTechnologies.length===0||this.selectedTechnologies.forEach(e=>this.onDownload(e))}replaceString(e){return e.replace(/-/g," ")}saveBlob(e,i){let n=window.URL.createObjectURL(e),l=document.createElement("a");l.href=n,l.setAttribute("download",i),document.body.appendChild(l),l.click(),document.body.removeChild(l)}navigateToBack(){this.location.back()}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(pe),f(we),f(me),f(Q),f(J),f(E),f(z),f(ae))}}static{this.\u0275cmp=I({type:t,selectors:[["app-printer-model-documents"]],standalone:!1,decls:12,vars:8,consts:[[1,"@container","mx-auto","px-4","py-6"],[1,"mx-auto","grid","max-w-(--breakpoint-2xl)","grid-cols-1"],["styleClass","p-6"],[1,"flex","flex-wrap","items-center","justify-between"],[1,"text-xl","font-bold","sm:text-xl","md:text-xl"],[1,"flex","w-full","items-center","gap-2","sm:w-auto"],[1,"py-3","text-sm","sm:text-base","md:text-base"],[1,"py-6","text-center","text-base","text-gray-500","sm:py-8","sm:text-lg","md:text-xl"],[1,"space-y-4","sm:space-y-5","md:space-y-6"],[1,"mt-6","sm:mt-8","md:mt-10"],["for","language-dropdown",1,"text-sm","font-medium","text-gray-700","sm:text-base","md:text-base"],["optionLabel","label","optionValue","LanguageName",1,"curs
1or-pointer","border-none","text-blue-200","underline","underline-offset-6",3,"ngModelChange","onChange","options","ngModel","placeholder"],[1,"h-5","w-1/2","rounded","bg-gray-300","sm:h-6","sm:w-1/3"],[1,"space-y-3","sm:space-y-4"],[1,"flex","flex-col","justify-between","border-b","border-blue-100/20","px-2","py-3","md:flex-row","md:items-center","md:px-4"],[1,"flex","w-full","items-center","gap-3","md:w-1/2"],[1,"h-5","w-5","rounded","bg-gray-300"],[1,"h-4","w-1/2","rounded","bg-gray-300"],[1,"h-4","w-1/6","rounded","bg-gray-300"],[1,"h-5","w-1/18","rounded","bg-gray-300"],[1,"flex","flex-col","justify-between","border-b","border-blue-100/20","px-4","py-4","md:flex-row","md:items-center"],[1,"h-3","w-1/6","rounded","bg-gray-300","sm:h-4"],[1,"h-4","w-1/18","rounded","bg-gray-300","sm:h-5"],[1,"flex","w-full","items-center","gap-2","md:w-1/2"],[1,"h-4","w-4","rounded","bg-gray-300"],[1,"h-3","w-1/6","rounded","bg-gray-300"],[1,"h-4","w-1/8","rounded","bg-gray-300"],[1,"h-5","w-1/2","rounded","bg-gray-300"],[1,"space-y-3"],[1,"flex","flex-col","justify-between","border-b","border-blue-100/20","px-2","py-3","sm:px-3","sm:py-4","md:flex-row","md:items-center","md:px-4"],[1,"flex","w-full","items-center","gap-2","sm:gap-3","md:w-1/2"],[1,"h-4","w-4","rounded","bg-gray-300","sm:h-5","sm:w-5"],[1,"h-3","w-1/2","rounded","bg-gray-300","sm:h-4"],[1,"h-4","w-1/8","rounded","bg-gray-300","sm:h-5"],[1,"h-5","w-1/3","rounded","bg-gray-300","sm:h-6","sm:w-1/4","md:w-1/6"],[1,"text-black-900","border-b","border-blue-100/20","py-2","pt-6","text-xl","font-bold","sm:text-xl","md:text-xl"],["dataKey","docName","responsiveLayout","stack",3,"value","selection","showHeader","tableStyle"],["dataKey","docName","responsiveLayout","stack",3,"selectionChange","value","selection","showHeader","tableStyle"],["pTemplate","body"],["pTemplate","footer"],[1,"hidden","flex-wrap","items-center","justify-between","border-b","border-blue-100/20","hover:bg-gray-50","sm:flex","md:flex-nowrap"],[1,"flex","w-full","items-center","gap-2","border-none","md:w-1/2"],[3,"value"],["tabindex","0","role","button",1,"cursor-pointer","text-sm","font-semibold","text-blue-200","hover:text-blue-300","hover:underline","sm:text-base","md:text-base",3,"click"],[1,"mr-2","text-gray-600"],[1,"w-1/6","border-none","text-xs","text-gray-500","sm:text-sm"],[1,"font-medium","text-gray-700"],[1,"w-1/12","border-none","text-right"],[1,"flex","h-8","w-8","cursor-pointer","items-center","justify-center","rounded-full","bg-blue-200","shadow-md","hover:bg-blue-300","hover:shadow-lg",3,"click"],[1,"pi","pi-download","text-white"],[1,"flex","flex-col","border-b","border-blue-100/20","pt-3","pb-3","sm:hidden"],[1,"w-full","border-none"],[1,"block","text-sm","font-semibold","text-blue-200"],[1,"mt-2","flex","w-full","items-center","justify-between","border-none"],[1,"text-xs","text-gray-500"],[1,"flex","h-9","w-9","cursor-pointer","items-center","justify-center","rounded-full","bg-blue-200","shadow-md","hover:bg-blue-300","hover:shadow-lg",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor","stroke-width","2",1,"h-5","w-5","text-white"],["stroke-linecap","round","stroke-linejoin","round","d","M12 4v12m0 0l-4-4m4 4l4-4M4 20h16"],[1,"flex","flex-wrap","items-center","justify-between","pt-3","pb-3","sm:pt-4","sm:pb-4","md:flex-nowrap"],[1,"flex","w-full","items-center","gap-2","border-none","sm:gap-3","md:w-auto"],[1,"w-full","cursor-pointer","border-none","text-right","text-xs","font-semibold","text-blue-200","hover:text-blue-300","sm:text-sm","md:w-auto","md:text-left","md:text-base",3,"click"],[1,"text-xs","font-semibold","text-blue-200","sm:text-sm","md:text-base"],[1,"cursor-pointer","rounded-full","bg-blue-200","px-4","py-2","text-sm","font-semibold","text-white","shadow-md","hover:bg-blue-300","hover:shadow-lg","sm:px-5","sm:py-2.5","sm:text-base","md:px-6","md:py-3","md:text-lg",3,"click"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"p-card",2)(3,"div",3)(4,"div",4),s(5),o(),x(6,ot,6,9,"div",5),o(),x(7,rt,3,3,"div",6),x(8,at,3,3,"div",7),x(9,lt,40,0,"div",8),x(10,gt,3,0,"div"),x(11,xt,4,3,"div",9),o()()()),i&2&&(a(5),se(" Videojet ",n.selectedTech," ",n.printerModel," "),a(),_(n.NoDataFound?-1:6),a(),_(n.NoDataFound?-1:7),a(),_(!n.isLoading&&n.NoDataFound?8:-1),a(),_(n.isLoading?9:-1),a(),_(!n.isLoading&&n.groupedDocs.length>0?10:-1),a(),_(n.showBackBtn?11:-1))},dependencies:[K,q,he,ge,_e,fe,Ce,X,U,N],styles:[".p-select-label{color:#3a5fff}[_nghost-%COMP%]     .p-checkbox .p-checkbox-box{border-color:var(--color-blue-200)!important}"]})}}return t})();var _t=[{path:"",redirectTo:"",pathMatch:"full"},{path:"",component:Le,data:{title:"Printer Documentation",breadcrumb:""}},{path:":category",component:ke,data:{title:"Categories",breadcrumb:""}},{path:":category/:model",component:Pe,data:{title:"Documents",breadcrumb:""}}],Be=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=W({type:t})}static{this.\u0275inj=O({imports:[G.forChild(_t),G]})}}return t})();var qt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=W({type:t})}static{this.\u0275inj=O({imports:[ce,Te,G,Be,ve]})}}return t})();
1export{qt as PrinterManualsModule};

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.