PageSourceSearch

https://www.produceiq.com/client-app/produceiq/dist/produceiq/en-US/4469.1b31afc1abf1bc7b.js

js produceiq.com collected 2026-10-09 00:32:45 UTC 5,115 bytes, 1 lines download raw bytes

1(self.webpackChunkproduceiq=self.webpackChunkproduceiq||[]).push([[4469],{94469:(F,l,n)=>{n.r(l),n.d(l,{CatalogProductModule:()=>E});var c=n(12676),p=n(33223),d=n(66405),m=n(70655),g=n(90220),h=n(99784),r=n(78099),C=n(85399),t=n(64829),f=n(57738),I=n(98822),v=n(75570),y=n(76428);const P=["productEditComponent"];function M(o,a){if(1&o&&t.\u0275\u0275element(0,"app-product-edit",7,8),2&o){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("product",e.catalogItem)("isCatalogFlow",e.isCatalogFlow||e.isPriceListFlow)("isStandartCatalog",e.isStandartCatalog)("autoUploadImageContainer",e.BlobContainer.ProductImages)("autoUploadDocContainer",e.BlobContainer.ProductDocs)("isEditMode",e.isEditMode)("isAdmin",e.isAdmin)("companyId",e.companyId)}}function S(o,a){if(1&o){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",9),t.\u0275\u0275listener("click",function(){return t.\u0275\u0275restoreView(e),t.\u0275\u0275nextContext().back()}),t.\u0275\u0275text(1,"Cancel"),t.\u0275\u0275elementEnd()}}let i=class{constructor(a,e,s){this.route=a,this.navigationService=e,this.catalogService=s,this.isDuplicate=!1,this.isCatalogFlow=!1,this.isPriceListFlow=!1,this.isStandartCatalog=!1,this.isEditMode=!1,this.isAdmin=!1,this.BlobContainer=g.dm}ngOnInit(){this.companyId=Number(this.route.snapshot.paramMap.get("companyId"));const a=this.route.snapshot.paramMap.get("id");this.isDuplicate="true"===this.route.snapshot.queryParamMap.get("isduplicate"),this.isCatalogFlow="true"===this.route.snapshot.queryParamMap.get("iscatalogflow"),this.isPriceListFlow="true"===this.route.snapshot.queryParamMap.get("ispricelistflow"),this.isStandartCatalog="true"===this.route.snapshot.queryParamMap.get("isstandartcatalog"),this.isAdmin="true"===this.route.snapshot.queryParamMap.get("isadmin"),a?this.catalogService.getCatalogItem(Number(a)).pipe((0,r.untilDestroyed)(this)).subscribe(e=>{this.isDuplicate?(this.addProductTemplate(),Object.assign(this.catalogItem,e),this.catalogItem.catalogItemId=0,this.catalogItem.displayInStore=!1,this.catalogItem.priceListItems=null,this.catalogItem.productName=e.productName?`Copy of ${e.productName}`:null):(this.catalogItem=e,this.title="Edit Product",this.buttonTitle="Save",this.isEditMode=!0)}):this.addProductTemplate()}addProductTemplate(){this.catalogItem=new h.m,this.title="Add Product",this.buttonTitle=this.title}save(a){this.productEditComponent&&this.productEditComponent.validate()&&(this.catalogItem.isStandard=this.isStandartCatalog,this.catalogService.saveCatalogItem(this.catalogItem).pipe((0,r.untilDestroyed)(this),(0,C.a)(a)).subscribe(()=>{this.back()}))}back(){this.navigationService.redirect(this.isPriceListFlow?"/account/price-manager":this.isStandartCatalog?"/account/standard-catalog":"/account/catalog")}};i.\u0275fac=function(a){return new(a||i)(t.\u0275\u0275directiveInject(d.ActivatedRoute),t.\u0275\u0275directiveInject(f.f5),t.\u0275\u0275directiveInject(I.a))},i.\u0275cmp=t.\u0275\u0275defineComponent({type:i,selectors:[["app-catalog-product-index"]],viewQuery:function(a,e){if(1&a&&t.\u0275\u0275viewQuery(P,5),2&a){let s;t.\u0275\u0275queryRefresh(s=t.\u0275\u0275loadQuery())&&(e.productEditComponent=s.first)}},decls:8,vars:4,consts:[[1,"form-pages"],[1,"mb-4"],[1,"form-page"],[3,"product","isCatalogFlow","isStandartCatalog","autoUploadImageContainer","autoUploadDocContainer","isEditMode","isAdmin","companyId",4,"ngIf"],[1,"mt-5","d-flex","justify-content-end"],["type","button","class","white-rounded-btn me-4",3,"click",4,"ngIf"],["cssClass","green-rounded-btn",3,"title","clicked"],[3,"product","isCatalogFlow","isStandartCatalog","autoUploadImageContainer","autoUploadDocContainer","isEditMode","isAdmin","companyId"],["productEditComponent",""],["type","button",1,"white-rounded-btn","me-4",3,"click"]],template:function(a,e){1&a&&(t.\u0275\u0275elementStart(0,"div",0)(1,"h2",1),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",2),t.\u0275\u0275template(4,M,2,8,"app-product-edit",3),t.\u0275\u0275elementStart(5,"div",4),t.\u0275\u0275template(6,S,2,0,"button",5),t.\u0275\u0275elementStart(7,"app-button-spinner",6),t.\u0275\u0275listener("clicked",function(u){return e.save(u)}),t.\u0275\u0275elementEnd()()()()),2&a&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(e.title),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",e.catalogItem),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",e.isCatalogFlow),t.\u0275\u0275advance(1),t.\u0275\u0275property("title",e.buttonTitle))},directives:[c.NgIf,v.i,y.r],styles:["[_nghost-%COMP%]{width:100%}"]}),i=(0,m.gn)([(0,r.UntilDestroy)()],i);const b=[{path:"",component:i}];let x=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)}
1,o.\u0275mod=t.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=t.\u0275\u0275defineInjector({imports:[[d.RouterModule.forChild(b)],d.RouterModule]}),o})(),E=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=t.\u0275\u0275defineInjector({imports:[[c.CommonModule,p.m8,x]]}),o})()}}]);

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.