1"use strict";(self.webpackChunksnapklik_frontend=self.webpackChunksnapklik_frontend||[]).push([[257],{4257:(jt,z,r)=>{r.r(z),r.d(z,{ProductModule:()=>Mo});var l=r(177),m=r(1188),h=r(8141),b=r(6697),_=r(5964),C=r(5558),j=r(8359),d=r(6354),y=r(6496),Z=r(7673),M=r(5245),D=r(7786),$=r(9085),S=r(3236),O=r(8211),w=r(9974),R=r(8750),Mt=r(1853),Ot=r(4360),Pt=r(5225);const Xt=(0,Mt.L)(n=>function(e=null){n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Nt(n){throw new Xt(n)}var lt=r(1413),t=r(7705),J=r(5173),dt=r(2266),Vt=r(1986),F=r(4412),A=r(4572);let G=(()=>{class n{constructor(){this.premiumImagesSubject=new F.t([]),this.premiumImages$=this.premiumImagesSubject.asObservable(),this.standardImagesSubject=new F.t([]),this.standardImages$=this.standardImagesSubject.asObservable(),this.messageSource=new F.t(""),this.hoverSkid$=this.messageSource.asObservable(),this.imageDataSource=new F.t([]),this.images$=this.imageDataSource.asObservable(),this.skidImageMapSource=new F.t({}),this.skidImageMap$=this.skidImageMapSource.asObservable(),this.videoSource=new F.t([]),this.videos$=this.videoSource.asObservable(),this.activeImages$=(0,A.z)([this.standardImages$,this.premiumImages$]).pipe((0,d.T)(([e,i])=>e.length&&!i.length?e:i))}broadcastImageHover(e){this.messageSource.next(e)}updateImages(e){this.imageDataSource.next(e)}updateSkidImageMap(e){this.skidImageMapSource.next(e)}updateVideos(e){this.videoSource.next(e)}flushImageData(){this.standardImagesSubject.next([]),this.premiumImagesSubject.next([]),this.videoSource.next([]),this.updateSkidImageMap({}),this.broadcastImageHover("")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var _t=r(2375),P=r(678),Bt=r(6457),mt=r(2010),X=r(5536),tt=r(5365),et=r(3756),nt=r(4277),Lt=r(5997),Ut=r(2460),zt=r(7122),Jt=r(1278),g=r(4006),it=r(1997),ot=r(2180),gt=r(7161),E=r(906);function At(n,a){if(1&n&&(t.j41(0,"div",2)(1,"div"),t.EFF(2,"Oversize Fee"),t.k0s(),t.j41(3,"div"),t.EFF(4),t.nI1(5,"currency"),t.nI1(6,"float"),t.k0s()()),2&n){const e=t.XpG();t.R7$(4),t.JRh(t.bMT(5,1,t.bMT(6,3,e.data.prices.oversizeInt)))}}function Ht(n,a){if(1&n&&t.nrm(0,"app-hazmat-message",7),2&n){const e=t.XpG();t.Y8G("hazmatHandlingFee",e.data.prices.hazmatInt)}}let qt=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}ngOnInit(){}closeDialog(){this.dialogRef.close()}get productTotal(){return this.data.prices.priceInt+this.data.prices.shippingInt+this.data.prices.taxInt+this.data.prices.oversizeInt}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(g.CP),t.rXU(g.Vh))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-price-popup"]],decls:34,vars:23,consts:[["title","Price Details",3,"dialogRef"],[1,"col","full-width"],[1,"price-row"],["class","price-row",4,"ngIf"],[1,"price-row","fw_600"],[1,"mt_15","gray","px_12"],[3,"hazmatHandlingFee",4,"ngIf"],[3,"hazmatHandlingFee"]],template:function(i,o){1&i&&(t.j41(0,"app-dialog-shell",0)(1,"div",1)(2,"div",2)(3,"div"),t.EFF(4,"Product"),t.k0s(),t.j41(5,"div"),t.EFF(6),t.nI1(7,"currency"),t.nI1(8,"float"),t.k0s()(),t.j41(9,"div",2)(10,"div"),t.EFF(11,"Shipping & Insurance\n"),t.k0s(),t.j41(12,"div"),t.EFF(13),t.nI1(14,"currency"),t.nI1(15,"float"),t.k0s()(),t.DNE(16,At,7,5,"div",3),t.j41(17,"div",2)(18,"div"),t.EFF(19,"Duties & Tax"),t.k0s(),t.j41(20,"div"),t.EFF(21),t.nI1(22,"currency"),t.nI1(23,"float"),t.k0s()(),t.nrm(24,"mat-divider"),t.j41(25,"div",4)(26,"div"),t.EFF(27,"Grand Total"),t.k0s(),t.j41(28,"div"),t.EFF(29),t.nI1(30,"currency"),t.nI1(31,"float"),t.k0s()(),t.j41(32,"div",5),t.DNE(33,Ht,1,1,"app-hazmat-message",6),t.k0s()()()),2&i&&(t.Y8G("dialogRef",o.dialogRef),t.R7$(6),t.JRh(t.bMT(7,7,t.bMT(8,9,o.data.prices.priceInt))),t.R7$(7),t.JRh(t.bMT(14,11,t.bMT(15,13,o.data.prices.shippingInt))),t.R7$(3),t.Y8G("ngIf",o.data.prices.oversizeInt>0),t.R7$(5),t.JRh(t.bMT(22,15,t.bMT(23,17,o.data.prices.taxInt))),t.R7$(8),t.JRh(t.bMT(30,19,t.bMT(31,21,o.productTotal))),t.R7$(4),t.Y8G("ngIf",o.data.prices.hazmatInt))},dependencies:[l.bT,it.q,ot.y,gt.a,l.oe,E.T],styles:[".price-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-end;margin:4px 0 0 3px}.example-headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .example-headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.example-headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.example-headers-align[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%]{margin-left:8px}"],changeDetection:0})}}return n})();var at=r(4742),ut=r(963),H=r(894),v=r(9417),Y=r(9213),q=r(5596),T=r(8834),ft=r(2433),Wt=r(8569),N=r(2102),V=r(2798),st=r(6600),ht=r(6374),B=r(4751);function Qt(n,a){1&n&&(t.j41(0,"p",13),t.EFF(1,"We've moved it to the top of the list"),t.k0s())}function Kt(n,a){if(1&n&&(t.qex(0),t.j41(1,"div",14)(2,"p",15),t.EFF(3),t.k0s(),t.j41(4,"p",16),t.EFF(5),t.k0s()(),t.bVm()),2&n){const e=a.$implicit;t.R7$(3),t.SpI("",e.name,":\xa0"),t.R7$(2),t.JRh(e.value)}}const Zt=function(){return[100,200,300,400]};function te(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"app-dialog-shell",1),t.DNE(2,Qt,2,0,"p",2),t.j41(3,"div",3),t.nrm(4,"app-responsive-image",4),t.j41(5,"div",5)(6,"p",6),t.EFF(7),t.k0s(),t.DNE(8,Kt,6,2,"ng-container",7),t.nrm(9,"p",8),t.j41(10,"p",9),t.EFF(11),t.nI1(12,"currency"),t.nI1(13,"float"),t.k0s()()(),t.j41(14,"div",10)(15,"button",11),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.dialogRef.close())}),t.EFF(16,"Continue Shopping"),t.k0s(),t.j41(17,"button",12),t.bIt("click",function(){const s=t.eBV(e).ngIf,p=t.XpG(2);return t.Njj(p.navigate(s.listId))}),t.EFF(18," View List "),t.k0s()()(),t.bVm()}if(2&n){const e=a.ngIf,i=t.XpG(2);t.R7$(1),t.Y8G("dialogRef",i.dialogRef)("title",e.isNew?"Item added to ":"This item was already in "),t.R7$(1),t.Y8G("ngIf",!e.isNew),t.R7$(2),t.Y8G("baseImage",e.image)("widths",t.lJ4(12,Zt)),t.R7$(3),t.JRh(e.title),t.R7$(1),t.Y8G("ngForOf",e.options),t.R7$(3),t.JRh(t.bMT(12,8,t.bMT(13,10,e.price)))}}function ee(n,a){if(1&n&&(t.qex(0),t.DNE(1,te,19,13,"ng-container",0),t.bVm()),2&n){const e=a.ngIf;t.R7$(1),t.Y8G("ngIf",e&&e.data)}}const ne=function(n){return{data:n}};let ie=(()=>{class n{constructor(e,i,o){this.dialogRef=e,this.data$=i,this.router=o}ngOnInit(){}navigate(e){this.router.navigate(["/account","lists",e]).then(()=>this.dialogRef.close())}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(g.CP),t.rXU(g.Vh),t.rXU(m.Ix))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-wishlist-add"]],decls:2,vars:5,consts:[[4,"ngIf"],[3,"dialogRef","title"],["class","gray","style","margin-bottom: 25px;padding-left: 3px;",4,"ngIf"],[1,"row","mb_20"],["sizes","150px","alt","Product added to wishlist",3,"baseImage","widths"],[1,"col","ml_20",2,"max-width","300px"],[1,"two-lines","title","bold"],[4,"ngFor","ngForOf"],[1,"gray"],[1,"currency-red"],[1,"col","full-width"],["type","button","mat-raised-button","",3,"click"],["type","submit","mat-raised-button","","color","accent",1,"mt_7",3,"click"],[1,"gray",2,"margin-bottom","25px","padding-left","3px"],[1,"row"],[1,"bold","m_0","gray","px_12"],[1,"m_0","gray","px_12"]],template:function(i,o){1&i&&(t.DNE(0,ee,2,1,"ng-container",0),t.nI1(1,"async")),2&i&&t.Y8G("ngIf",t.eq3(3,ne,t.bMT(1,1,o.data$)))},dependencies:[l.Sq,l.bT,T.$z,ot.y,B.L,l.Jj,l.oe,E.T]})}}return n})();var vt=r(9631);function oe(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"form",2)(2,"mat-form-field"),t.nrm(3,"input",3),t.j41(4,"mat-error"),t.EFF(5," Please enter a name for your list "),t.k0s()(),t.j41(6,"p",4),t.EFF(7,"Save items for later in a list. Your list will remain private unless you share it with others."),t.k0s(),t.j41(8,"div",5)(9,"button",6),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.closeDialog())}),t.EFF(10,"Cancel"),t.k0s(),t.j41(11,"button",7),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.createProductList())}),t.EFF(12,"Create List "),t.k0s()()(),t.bVm()}if(2&n){const e=t.XpG(2);t.R7$(1),t.Y8G("formGroup",e.form)}}const ae=function(){return[100,200,300,400]},se=function(n){return["/account","lists",n]};function re(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"h3",8),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.closeDialog())}),t.EFF(2),t.k0s(),t.j41(3,"div",9),t.nrm(4,"app-responsive-image",10),t.j41(5,"div",11)(6,"p",12),t.EFF(7),t.k0s(),t.j41(8,"p",13),t.EFF(9),t.nI1(10,"currency"),t.nI1(11,"float"),t.k0s()()(),t.j41(12,"div",14)(13,"button",15),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.closeDialog())}),t.EFF(14,"Continue Shopping"),t.k0s(),t.j41(15,"button",16),t.bIt("click",function(){t.eBV(e);const o=t.XpG().ngIf,s=t.XpG();return t.Njj(s.navigate(o.success.listId))}),t.EFF(16," View List "),t.k0s()(),t.bVm()}if(2&n){const e=t.XpG().ngIf;t.R7$(2),t.JRh(e.success.listName),t.R7$(2),t.Y8G("baseImage",e.success.image)("widths",t.lJ4(10,ae)),t.R7$(2),t.Y8G("routerLink",t.eq3(11,se,e.success.listId)),t.R7$(1),t.JRh(e.success.title),t.R7$(2),t.JRh(t.bMT(10,6,t.bMT(11,8,e.success.price)))}}function ce(n,a){if(1&n&&(t.qex(0),t.j41(1,"app-dialog-shell",1),t.DNE(2,oe,13,1,"ng-container",0),t.DNE(3,re,17,13,"ng-container",0),t.k0s(),t.bVm()),2&n){const e=a.ngIf,i=t.XpG();t.R7$(1),t.Y8G("dialogRef",i.dialogRef)("title",e.success?"List created":"Create a list"),t.R7$(1),t.Y8G("ngIf",!e.success),t.R7$(1),t.Y8G("ngIf",e.success)}}const pe=function(n){return{success:n}};let xt=(()=>{class n{constructor(e,i,o,s,p,f,x){this.dialogRef=e,this.product=i,this.formBuilder=o,this.requestsService=s,this.imageSyncService=p,this.analyticsService=f,this.router=x}ngOnInit(){this.form=this.formBuilder.group({productListName:new v.MJ("",[v.k0.required])})}get productListName(){return this.form.get("productListName")}createProductList(){if(!this.productListName?.value)return;const e={n:this.productListName.value,skid:this.product.skid};this.analyticsService.createWishlist(),this.analyticsService.addItemToWishlist(this.product),this.successData$=this.requestsService.authGet("wishlists","/c",e).pipe((0,ht.E)(this.imageSyncService.standardImages$),(0,d.T)(([i,o]
1)=>({listId:i.listId,listName:e.n,skid:this.product.skid,title:this.product.title,price:this.product.prices.priceInt,image:o&&o.length?o[0].image:""})))}navigate(e){this.router.navigate(["/account","lists",e]).then(()=>this.dialogRef.close())}closeDialog(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(g.CP),t.rXU(g.Vh),t.rXU(v.ok),t.rXU(J.k),t.rXU(G),t.rXU(P.c),t.rXU(m.Ix))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-create-list-dialog"]],decls:2,vars:5,consts:[[4,"ngIf"],[3,"dialogRef","title"],[3,"formGroup"],["autocomplete","off","matInput","","formControlName","productListName","placeholder","Name your list"],[1,"mt_10"],[1,"row","justify-right"],["type","button","mat-stroked-button","",3,"click"],["mat-raised-button","","color","accent","type","submit",1,"ml_5",3,"click"],[1,"text-link","bold","px_20",3,"click"],[1,"row","mb_20"],["sizes","150px","alt","Product added to wishlist",3,"baseImage","widths"],[1,"col"],[1,"title","two-lines","bold",3,"routerLink"],[1,"currency-red"],[1,"col","full-width"],["type","button","mat-raised-button","",3,"click"],["mat-raised-button","","color","accent",1,"mt_7",3,"click"]],template:function(i,o){1&i&&(t.DNE(0,ce,4,4,"ng-container",0),t.nI1(1,"async")),2&i&&t.Y8G("ngIf",t.eq3(3,pe,t.bMT(1,1,o.successData$)))},dependencies:[l.bT,m.Wk,v.qT,v.me,v.BC,v.cb,v.j4,v.JD,T.$z,ot.y,B.L,N.rl,N.TL,vt.fg,l.Jj,l.oe,E.T]})}}return n})();function le(n,a){1&n&&(t.j41(0,"mat-option",9)(1,"span",10),t.EFF(2,"Loading"),t.k0s()())}function de(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-option",12),t.bIt("click",function(){const s=t.eBV(e).$implicit,p=t.XpG(4);return t.Njj(p.addToProductList(s.listId,s.listName))}),t.EFF(1),t.k0s()}if(2&n){const e=a.$implicit;t.R7$(1),t.SpI(" ",e.listName," ")}}function _e(n,a){if(1&n&&(t.qex(0),t.DNE(1,de,2,1,"mat-option",11),t.bVm()),2&n){const e=t.XpG(2).ngIf;t.R7$(1),t.Y8G("ngForOf",e.productList)}}function me(n,a){if(1&n){const e=t.RV6();t.qex(0),t.DNE(1,le,3,0,"mat-option",5),t.DNE(2,_e,2,1,"ng-container",0),t.j41(3,"mat-option",6),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.createProductList())}),t.j41(4,"div",7)(5,"mat-icon",8),t.EFF(6,"add"),t.k0s(),t.EFF(7," Create a list "),t.k0s()(),t.bVm()}if(2&n){const e=t.XpG().ngIf,i=t.XpG();t.R7$(1),t.Y8G("ngIf",i.isLoading),t.R7$(1),t.Y8G("ngIf",e.productList)}}function ge(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.openProductListOptions())}),t.j41(4,"mat-select-trigger",4),t.EFF(5,"Add to a list"),t.k0s(),t.DNE(6,me,8,2,"ng-container",0),t.k0s()()(),t.bVm()}if(2&n){const e=a.ngIf;t.R7$(6),t.Y8G("ngIf",e.user&&!!e.user.email)}}const ue=function(n,a){return{productList:n,user:a}};let fe=(()=>{class n{constructor(e,i,o,s,p,f){this.requests=e,this.dialog=i,this.userService=o,this.router=s,this.imageSyncService=p,this.analyticsService=f,this.subscriptions=new j.yU,this.user$=this.userService.user$,this.isLoading=!1}ngOnInit(){}openProductListOptions(){this.productList$=this.user$.pipe((0,h.M)(()=>this.isLoading=!0),(0,h.M)(e=>!e.email&&this.router.navigate(["/auth","login"])),(0,_.p)(e=>!!e&&!e.isAnonymous),(0,C.n)(()=>this.requests.authGet("wishlists","/l")),(0,h.M)(()=>this.isLoading=!1))}createProductList(){return this.dialog.open(xt,{width:"400px",data:this.product})}addToProductList(e,i){if(!e)return this.dialog.open(xt,{width:"400px",data:this.product});this.analyticsService.addItemToWishlist(this.product);const o=this.requests.authGet("wishlists","/a",{skid:this.product.skid,lid:e}).pipe((0,ht.E)(this.imageSyncService.standardImages$),(0,d.T)(([s,p])=>({...s,listId:e,listName:i,skid:this.product.skid,title:this.product.title,price:this.product.prices.priceInt,options:this.options,image:p&&p.length?p[0].image:""})));return this.dialog.open(ie,{width:"600px",data:o})}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(J.k),t.rXU(g.bZ),t.rXU(H.g),t.rXU(m.Ix),t.rXU(G),t.rXU(P.c))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-product-lists-button"]],inputs:{product:"product",options:"options"},decls:3,vars:8,consts:[[4,"ngIf"],[1,"px_10"],["appearance","outline",1,"full-width","black-text","fw_500","px_10","top_19px",2,"top","16px"],["placeholder","Add to a list",1,"select-placeholder",3,"click"],[1,"px_15","fw_500"],["class","select-panel-class",4,"ngIf"],[3,"click"],[1,"text-link","px_15"],[1,"icon_18",2,"margin-right","0"],[1,"select-panel-class"],[1,"loading"],["class","px_15",3,"click",4,"ngFor","ngForOf"],[1,"px_15",3,"click"]],template:function(i,o){1&i&&(t.DNE(0,ge,7,1,"ng-container",0),t.nI1(1,"async"),t.nI1(2,"async")),2&i&&t.Y8G("ngIf",t.l_i(5,ue,t.bMT(1,1,o.productList$),t.bMT(2,3,o.user$)))},dependencies:[l.Sq,l.bT,Y.An,N.rl,V.VO,V.$2,st.wT,l.Jj],styles:['@charset "UTF-8";.icon-style[_ngcontent-%COMP%]{font-size:16px;vertical-align:-webkit-baseline-middle}.loading[_ngcontent-%COMP%]:after{overflow:hidden;display:inline-block;vertical-align:bottom;animation:_ngcontent-%COMP%_ellipsis steps(4,end) .9s infinite;content:"\\2026";width:0}@keyframes _ngcontent-%COMP%_ellipsis{to{width:20px}}.mat-form-field-label[_ngcontent-%COMP%]{color:red!important}']})}}return n})();var L=r(7698);
1function he(n,a){1&n&&(t.j41(0,"p"),t.EFF(1,"We don't know when or if this item will be back in stock."),t.k0s())}const ve=function(n){return["/",n,"search"]},xe=function(n){return{s:n,p:0}};function Ie(n,a){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.j41(2,"a",2),t.EFF(3,"search"),t.k0s()()),2&n){const e=t.XpG().ngIf,i=t.XpG();t.R7$(1),t.SpI(" ",i.isApparel?"Try another size or find similar items with a ":"Find similar items with a "," "),t.R7$(1),t.Y8G("routerLink",t.eq3(3,ve,e.languageCode))("queryParams",t.eq3(5,xe,i.searchText))}}function be(n,a){if(1&n&&(t.qex(0),t.j41(1,"p",1),t.EFF(2," Out of stock "),t.k0s(),t.DNE(3,he,2,0,"p",0),t.DNE(4,Ie,4,7,"p",0),t.bVm()),2&n){const e=t.XpG();t.R7$(1),t.xc7("line-height",e.fontSize)("font-size",e.fontSize),t.R7$(2),t.Y8G("ngIf",e.showSubtext),t.R7$(1),t.Y8G("ngIf",e.searchText&&!e.isApparel)}}const Ce=function(n){return{languageCode:n}};let It=(()=>{class n{constructor(e){this.languageCodeService=e,this.fontSize="20px",this.showSubtext=!1,this.searchText="",this.isApparel=!1}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(L.x))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-unavailable"]],inputs:{fontSize:"fontSize",showSubtext:"showSubtext",searchText:"searchText",isApparel:"isApparel"},decls:2,vars:5,consts:[[4,"ngIf"],[1,"mb_0","red","fw_600"],[1,"text-link",3,"routerLink","queryParams"]],template:function(i,o){1&i&&(t.DNE(0,be,5,6,"ng-container",0),t.nI1(1,"async")),2&i&&t.Y8G("ngIf",t.eq3(3,Ce,t.bMT(1,1,o.languageCodeService.languageCode$)))},dependencies:[l.bT,m.Wk,l.Jj]})}}return n})();var ye=r(8186),we=r(3993),ke=r(4791);const Ge=function(){return["full-width"]};function Te(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",1)(2,"app-spinner-button",2),t.bIt("buttonClick",function(){const s=t.eBV(e).ngIf,p=t.XpG();return t.Njj(p.clickAddToCart(s.user,s.urlCountryCode,s.locationString))}),t.k0s(),t.nrm(3,"app-error-message",3),t.k0s(),t.bVm()}if(2&n){const e=a.ngIf,i=t.XpG();t.R7$(2),t.Y8G("color",i.color)("useClasses",t.lJ4(4,Ge))("isLoading",e.isLoading||!1),t.R7$(1),t.Y8G("errorMessageSubject",i.errorMessageSubject$)}}const De=function(n,a,e,i){return{isLoading:n,locationString:a,urlCountryCode:e,user:i}};let $e=(()=>{class n{constructor(e,i,o,s,p,f){this.cartService=e,this.dialog=i,this.analyticsService=o,this.locationService=s,this.userService=p,this.languageCodeService=f,this.subscriptions=new j.yU,this.color="primary",this.isLoading$=this.cartService.cartLoading$,this.errorMessageSubject$=new lt.B,this.LanguageCodeService=L.x}ngOnInit(){this.subscriptions.add(this.cartService.cartError$.pipe((0,h.M)(e=>console.log(e)),(0,h.M)(e=>this.errorMessageSubject$.next(e))).subscribe())}needsToSelectLocation(e,i,o){return!o||!!i&&e&&i!=e.countryCode}clickAddToCartButton(){this.subscriptions.add(this.cartService.addToCart(this.product.skid,this.quantity).subscribe()),this.analyticsService.addToCart(this.product,this.quantity)}openCountrySelect(e,i){this.dialog.open(at.V,{panelClass:"custom-dialog-container",width:"400px",data:{cartData:{quantity:this.quantity,product:this.product},preselectedCountryCode:i||e?.countryCode}})}clickAddToCart(e,i,o){this.needsToSelectLocation(e,i,o)?this.openCountrySelect(e,i):this.clickAddToCartButton()}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(ye.m),t.rXU(g.bZ),t.rXU(P.c),t.rXU(tt.R),t.rXU(H.g),t.rXU(L.x))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-add-to-cart-button"]],inputs:{product:"product",quantity:"quantity",color:"color"},decls:5,vars:14,consts:[[4,"ngIf"],[1,"col","gap_5"],["buttonMessage","Add to Cart",3,"color","useClasses","isLoading","buttonClick"],[3,"errorMessageSubject"]],template:function(i,o){1&i&&(t.DNE(0,Te,4,5,"ng-container",0),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async")),2&i&&t.Y8G("ngIf",t.ziG(9,De,t.bMT(1,1,o.isLoading$),t.bMT(2,3,o.locationService.locationString$),t.bMT(3,5,o.languageCodeService.urlCountryCode$),t.bMT(4,7,o.userService.user$)))},dependencies:[l.bT,we.f,ke.Z,l.Jj],changeDetection:0})}}return n})();function Se(n,a){if(1&n&&(t.j41(0,"mat-card-subtitle",21),t.EFF(1),t.nI1(2,"currency"),t.nI1(3,"float"),t.j41(4,"span",22),t.EFF(5,"per order"),t.k0s()()),2&n){const e=t.XpG(3);t.R7$(1),t.SpI(" ",t.bMT(2,1,t.bMT(3,3,e.product.prices.shippingInt))," flat-rate shipping ")}}function Re(n,a){if(1&n){const e=t.RV6();t.j41(0,"p",23)(1,"span",24),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.openCountrySelectDialog())}),t.EFF(2,"Select location"),t.k0s(),t.EFF(3," for accurate pricing, availability, and delivery estimates "),t.k0s()}}function Fe(n,a){if(1&n&&(t.j41(0,"p",23),t.EFF(1,"Order today for delivery"),t.j41(2,"span",25),t.EFF(3),t.k0s()()),2&n){const e=t.XpG(3);t.R7$(3),t.SpI(" ",e.product.deliveryMessage[0],"")}}function Ee(n,a){if(1&n&&(t.j41(0,"p",23),t.EFF(1,"Or by "),t.j41(2,"span",25),t.EFF(3),t.k0s(),t.EFF(4," with expedited shipping"),t.k0s()),2&n){const e=t.XpG(3);t.R7$(3),t.JRh(e.product.deliveryMessage[1])}}function je(n,a){1&n&&(t.j41(0,"p",23),t.EFF(1,"Order today for fast delivery once available"),t.k0s())}function Me(n,a){1&n&&(t.j41(0,"p",32),t.EFF(1,"Backorder"),t.k0s())}function Oe(n,a){1&n&&(t.j41(0,"p",33),t.EFF(1,"Preorder"),t.k0s())}function Pe(n,a){if(1&n&&(t.j41(0,"p",22),t.EFF(1),t.k0s()),2&n){const e=t.XpG(4);t.R7$(1),t.JRh(e.product.availabilityMessage)}}function Xe(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"p",34),t.bIt("click",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.openRenewedInfoDialog())}),t.EFF(2,"Renewed item"),t.k0s(),t.bVm()}}function Ye(n,a){if(1&n&&(t.j41(0,"div",26)(1,"p",27)(2,"span",22),t.EFF(3,"Delivery by: "),t.k0s(),t.nrm(4,"img",28),t.k0s(),t.j41(5,"p",27)(6,"span",22),t.EFF(7,"Ships from:"),t.k0s(),t.EFF(8," Snapklik.
1com"),t.k0s(),t.j41(9,"p",27)(10,"span",22),t.EFF(11,"Warehouse location:"),t.k0s(),t.EFF(12," New York"),t.k0s(),t.DNE(13,Me,2,0,"p",29),t.DNE(14,Oe,2,0,"p",30),t.DNE(15,Pe,2,1,"p",31),t.DNE(16,Xe,3,0,"ng-container",0),t.k0s()),2&n){const e=t.XpG(3);t.R7$(4),t.Y8G("src",e.baseUrl+"assets/logos/fedex-logo.png",t.B4B),t.R7$(9),t.Y8G("ngIf",e.product.isBackorder),t.R7$(1),t.Y8G("ngIf",e.product.isPreorder),t.R7$(1),t.Y8G("ngIf",e.product.availabilityMessage),t.R7$(1),t.Y8G("ngIf",e.product.isRenewed)}}function Ne(n,a){if(1&n&&(t.j41(0,"mat-option",35),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.Y8G("value",e),t.R7$(1),t.SpI(" ",e," ")}}function Ve(n,a){if(1&n){const e=t.RV6();t.qex(0),t.nrm(1,"app-fancy-price",8),t.DNE(2,Se,6,5,"mat-card-subtitle",9),t.j41(3,"p",10),t.bIt("click",function(){t.eBV(e);const o=t.XpG().ngIf,s=t.XpG();return t.Njj(o.locationString?s.openPricePopup():s.openCountrySelectDialog())}),t.j41(4,"span"),t.EFF(5," See total with duties & tax"),t.j41(6,"mat-icon",11),t.EFF(7,"expand_more"),t.k0s()()(),t.j41(8,"mat-card-content",12),t.DNE(9,Re,4,0,"p",13),t.DNE(10,Fe,4,1,"p",13),t.DNE(11,Ee,5,1,"p",13),t.DNE(12,je,2,0,"p",13),t.DNE(13,Ye,17,5,"div",14),t.k0s(),t.j41(14,"div",15)(15,"mat-form-field",16)(16,"mat-select",17),t.bIt("ngModelChange",function(o){t.eBV(e);const s=t.XpG(2);return t.Njj(s.selectedQuantity=o)}),t.DNE(17,Ne,2,2,"mat-option",18),t.k0s()()(),t.j41(18,"div",19),t.nrm(19,"app-add-to-cart-button",20),t.k0s(),t.bVm()}if(2&n){const e=t.XpG().ngIf,i=t.XpG();t.R7$(1),t.Y8G("size","medium")("includeCurrency",!0)("isRedText",!1)("price",i.product.prices.priceInt),t.R7$(1),t.Y8G("ngIf",e.locationString&&i.product.prices.shippingInt>0),t.R7$(7),t.Y8G("ngIf",!e.countryCode),t.R7$(1),t.Y8G("ngIf",i.product.deliveryMessage.length),t.R7$(1),t.Y8G("ngIf",2==i.product.deliveryMessage.length),t.R7$(1),t.Y8G("ngIf",!i.product.deliveryMessage&&(i.product.isBackorder||i.product.isPreorder)),t.R7$(1),t.Y8G("ngIf",i.product.prices.shippingInt),t.R7$(3),t.Y8G("ngModel",i.selectedQuantity),t.R7$(1),t.Y8G("ngForOf",i.range(i.product.minQ||1,i.product.maxQ||i.product.minQ||1)),t.R7$(2),t.Y8G("product",i.product)("quantity",i.selectedQuantity)}}function Be(n,a){1&n&&t.nrm(0,"app-unavailable",36),2&n&&t.Y8G("fontSize","18px")("showSubtext",!0)}function Le(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",37),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.openCountrySelectDialog())}),t.j41(1,"span",38),t.EFF(2,"location_on"),t.k0s(),t.j41(3,"span"),t.EFF(4),t.k0s()()}if(2&n){const e=t.XpG().ngIf;t.R7$(4),t.SpI("Delivering to ",e.locationString,"")}}function Ue(n,a){if(1&n&&t.nrm(0,"app-faqs",39),2&n){const e=t.XpG(2);t.Y8G("isPowered",e.product.isPowered)("showWarrantyMessage",e.product.warrantyMessage)}}const ze=function(){return[]};function Je(n,a){if(1&n&&(t.j41(0,"mat-card",40),t.nrm(1,"app-product-lists-button",41),t.k0s()),2&n){const e=t.XpG(2);t.R7$(1),t.Y8G("product",e.product)("options",e.options||t.lJ4(2,ze))}}function Ae(n,a){if(1&n&&(t.qex(0),t.j41(1,"div",1)(2,"mat-card",2),t.DNE(3,Ve,20,14,"ng-container",3),t.DNE(4,Be,1,2,"ng-template",null,4,t.C5r),t.DNE(6,Le,5,1,"button",5),t.k0s(),t.DNE(7,Ue,1,2,"app-faqs",6),t.DNE(8,Je,2,3,"mat-card",7),t.k0s(),t.bVm()),2&n){const e=a.ngIf,i=t.sdS(5),o=t.XpG();t.R7$(3),t.Y8G("ngIf",o.product.prices.priceInt)("ngIfElse",i),t.R7$(3),t.Y8G("ngIf",e.countryCode&&o.product.prices.priceInt),t.R7$(1),t.Y8G("ngIf",o.product&&o.product.prices.priceInt),t.R7$(1),t.Y8G("ngIf",o.product)}}const He=function(n,a){return{locationString:n,countryCode:a}};let qe=(()=>{class n{constructor(e,i,o,s){this.dialog=e,this.locationService=i,this.userService=o,this.platformService=s,this.countryCode$=this.userService.user$.pipe((0,d.T)(p=>
1p.countryCode)),this.baseUrl=this.platformService.baseUrl()}ngOnInit(){this.selectedQuantity=Math.max(this.product?.minQ||0,1),this.quantities=this.createQuantities()}createQuantities(){if(!this.product)return[];const e=this.product.maxQ<=0||this.product.maxQ>10?10:this.product.maxQ,o=[];for(let s=this.product.minQ<=0||this.product.minQ>10?1:this.product.minQ;s<=e;s++)o.push(s);return o}openCountrySelectDialog(){this.dialog.open(at.V,{panelClass:"custom-dialog-container",width:"400px",data:{routerLinkData:void 0,cartData:void 0}})}openPricePopup(){this.dialog.open(qt,{panelClass:"custom-dialog-container",width:"400px",data:{prices:this.product.prices,quantity:this.selectedQuantity}})}openRenewedInfoDialog(){this.dialog.open(ut.S,{width:"400px",data:{title:"Renewed Items",icon:"recycling",text:"Renewed items have been inspected, tested, and refurbished as necessary to be fully functional and include generic or original accessories and packaging."}})}orderByTime(){}range(e,i){return Array.from(Array(i+1).keys()).slice(e)}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(g.bZ),t.rXU(tt.R),t.rXU(H.g),t.rXU(X.f))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-buy-box"]],inputs:{product:"product",options:"options"},decls:3,vars:8,consts:[[4,"ngIf"],[1,"sticky","top_10"],["appearance","outlined",1,"background-off-white","mb_20"],[4,"ngIf","ngIfElse"],["unavailable",""],["class","mt_20 full-width","mat-button","","color","primary",3,"click",4,"ngIf"],[3,"isPowered","showWarrantyMessage",4,"ngIf"],["appearance","outlined","class","mt_20 px_10 pb_0 background-off-white",4,"ngIf"],[3,"size","includeCurrency","isRedText","price"],["class","gray m_0",4,"ngIf"],[1,"mat-subtitle-2","text-link",3,"click"],[1,"v-align-bottom"],[1,"mb_0"],["class","mat-subtitle-2","style","white-space: break-spaces",4,"ngIf"],["class","caption",4,"ngIf"],[1,"full-width","fw_600"],["appearance","outline",1,"full-width"],["placeholder","Quantity","panelClass","panel-background",1,"px_16",3,"ngModel","ngModelChange"],["class","px_16",3,"value",4,"ngFor","ngForOf"],[1,"col","gap_10"],[3,"product","quantity"],[1,"gray","m_0"],[1,"fw_600"],[1,"mat-subtitle-2",2,"white-space","break-spaces"],[1,"text-link",3,"click"],[1,"fw_600","mat-subtitle-2","green"],[1,"caption"],[1,"mat-caption","dark-gray","mb_6"],["alt","Snapklik.com FedEx Express logo","width","54","height","24",2,"max-height","24px","margin-bottom","-10px","margin-left","3px",3,"src"],["class","dark-orange fw_600",4,"ngIf"],["class","green fw_600",4,"ngIf"],["class","fw_600",4,"ngIf"],[1,"dark-orange","fw_600"],[1,"green","fw_600"],[1,"pointer","fw_600","dark-green",3,"click"],[1,"px_16",3,"value"],[3,"fontSize","showSubtext"],["mat-button","","color","primary",1,"mt_20","full-width",3,"click"],[1,"material-icons","px_20","v-align-bottom"],[3,"isPowered","showWarrantyMessage"],["appearance","outlined",1,"mt_20","px_10","pb_0","background-off-white"],[3,"product","options"]],template:function(i,o){1&i&&(t.DNE(0,Ae,9,5,"ng-container",0),t.nI1(1,"async"),t.nI1(2,"async")),2&i&&t.Y8G("ngIf",t.l_i(5,He,t.bMT(1,1,o.locationService.locationString$),t.bMT(2,3,o.countryCode$)))},dependencies:[l.Sq,l.bT,v.BC,v.vS,Y.An,q.RN,q.m2,q.Lc,T.$z,ft.m,Wt.F,N.rl,V.VO,st.wT,fe,It,$e,l.Jj,l.oe,E.T],styles:[".panel-background[_ngcontent-%COMP%]{background:rgb(247,247,247)}"],changeDetection:0})}}return n})();var rt=r(1527),ct=r(6850);const We=function(n){return{"selected-gallery":n,thumbnail:!0}},Qe=function(){return{"max-width":"300px",margin:"10px"}},Ke=function(){return[100,200,300,400,500,600,700,800]};function Ze(n,a){if(1&n){const e=t.RV6();t.j41(0,"app-responsive-image",12),t.bIt("click",function(){const s=t.eBV(e).index,p=t.XpG(3);return t.Njj(p.selectedImageIndex=s)}),t.k0s()}if(2&n){const e=a.$implicit,i=a.index,o=t.XpG(3);t.Y8G("baseImage",e.image)("classDict",t.eq3(5,We,o.selectedImageIndex===i))("ngStyleVar",t.lJ4(7,Qe))("widths",t.lJ4(8,Ke))("alt",o.data.product.title+i)}}const tn=function(){return["full-width"]},en=function(){return{"max-width":"600px"}},nn=function(){return[300,500,700,900,1100,1300,1500]};function on(n,a){if(1&n&&(t.j41(0,"mat-tab",7)(1,"div",8),t.nrm(2,"app-responsive-image",9),t.k0s(),t.j41(3,"div",10),t.DNE(4,Ze,1,9,"app-responsive-image",11),t.k0s()()),2&n){const e=t.XpG().ngIf,i=t.XpG();t.Y8G("disabled",!e.videos||!e.videos.length),t.R7$(2),t.Y8G("baseImage",e.images[i.selectedImageIndex].image)("useClasses",t.lJ4(6,tn))("ngStyleVar",t.lJ4(7,en))("widths",t.lJ4(8,nn)),t.R7$(2),t.Y8G("ngForOf",e.images)}}function an(n,a){if(1&n&&(t.j41(0,"video",21),t.nrm(1,"source",22),t.k0s()),2&n){const e=t.XpG(2).ngIf,i=t.XpG();t.FS9("poster",e.videos[i.selectedVideoIndex].banner,t.B4B),t.Y8G("src",e.videos[i.selectedVideoIndex].videoLink,t.B4B),t.R7$(1),t.Y8G("src",e.videos[i.selectedVideoIndex].videoLink,t.B4B)}}const sn=function(n){return{selected:n}};function rn(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"div",23),t.bIt("click",function(){const s=t.eBV(e).index,p=t.XpG(3);return t.Njj(p.selectedVideoIndex=s)}),t.nrm(2,"img",24),t.j41(3,"p"),t.EFF(4),t.k0s()()()}if(2&n){const e=a.$implicit,i=a.index,o=t.XpG(3);t.R7$(2),t.Y8G("src",e.banner,t.B4B)("alt",e.alt)("ngClass",t.eq3(4,sn,o.selectedVideoIndex==i)),t.R7$(2),t.JRh(e.alt)}}function cn(n,a){if(1&n&&(t.j41(0,"mat-tab",13)(1,"div",14)(2,"div",15),t.DNE(3,an,2,3,"video",16),t.j41(4,"p",17),t.EFF(5),t.k0s()(),t.j41(6,"div",18)(7,"p",19),t.EFF(8," Videos for this product "),t.k0s(),t.DNE(9,rn,5,6,"div",20),t.k0s()()()),2&n){const e=t.XpG().ngIf,i=t.XpG();t.R7$(3),t.Y8G("ngIf",1===i.activeTab),t.R7$(2),t.JRh(e.videos[i.selectedVideoIndex].alt),t.R7$(4),t.Y8G("ngForOf",e.videos)}}function pn(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",1)(2,"div",2)(3,"button",3),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.closeDialog())}),t.j41(4,"mat-icon"),t.EFF(5,"close"),t.k0s()(),t.j41(6,"mat-tab-group",4),t.bIt("selectedIndexChange",function(o){t.eBV(e);const s=t.XpG();return t.Njj(s.activeTab=o)}),t.DNE(7,on,5,9,"mat-tab",5),t.DNE(8,cn,10,3,"mat-tab",6),t.k0s()()(),t.bVm()}if(2&n){const e=a.ngIf,i=t.XpG();t.R7$(6),t.Y8G("selectedIndex",i.activeTab),t.R7$(1),t.Y8G("ngIf",e.images&&e.images.length),t.R7$(1),t.Y8G("ngIf",e.videos&&e.videos.length)}}const ln=function(n,a){return{images:n,videos:a}};let bt=(()=>{class n{constructor(e,i,o,s){this.data=e,this.dialogRef=i,this.imageSyncService=o,this.analyticsService=s,this.selectedImageIndex=0,this.selectedVideoIndex=0,this.images$=this.imageSyncService.activeImages$,this.videos$=this.imageSyncService.videos$}ngOnInit(){this.analyticsService.viewMediaDialog(this.data.product),this.activeTab=this.data.activeTab||0,this.selectedImageIndex=this.data.selectedImageIndex||0}closeDialog(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(g.Vh),t.rXU(g.CP),t.rXU(G),t.rXU(P.c))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-media"]],decls:3,vars:8,consts:[[4,"ngIf"],[1,"full-width",2,"height","90vh"],[1,"pd_16"],["mat-icon-button","","color","primary","aria-label","Close dialog button",1,"float-right","background-trans
1parent",2,"margin-bottom","100px",3,"click"],["animationDuration","0ms","cdkfocusregionstart","",3,"selectedIndex","selectedIndexChange"],["label","Images",3,"disabled",4,"ngIf"],["label","Videos","style","max-height:95%;",4,"ngIf"],["label","Images",3,"disabled"],[1,"text-center",2,"margin","40px auto","max-height","80%"],["sizes","(max-width: 300px) 100vw, (max-width: 800px) calc(100vw - 200px), 600px",3,"baseImage","useClasses","ngStyleVar","widths"],[1,"row","flex-wrap"],["sizes","100px",3,"baseImage","classDict","ngStyleVar","widths","alt","click",4,"ngFor","ngForOf"],["sizes","100px",3,"baseImage","classDict","ngStyleVar","widths","alt","click"],["label","Videos",2,"max-height","95%"],[1,"row"],[1,"col",2,"width","60%","flex-grow","1","min-width","300px","margin","40px"],["playsinline","playsinline","preload","auto","style","width: 80%; max-height: 80vh","controls","","autoplay","",3,"poster","src",4,"ngIf"],[1,"mt_7"],[1,"col","gap_10","m_20"],[1,"pd_5","mr_10","fw_700","px_16"],[4,"ngFor","ngForOf"],["playsinline","playsinline","preload","auto","controls","","autoplay","",2,"width","80%","max-height","80vh",3,"poster","src"],[3,"src"],[1,"pointer",3,"click"],["defaultImage","",1,"m_0",2,"max-width","200px","border-radius","4px",3,"src","alt","ngClass"]],template:function(i,o){1&i&&(t.DNE(0,pn,9,3,"ng-container",0),t.nI1(1,"async"),t.nI1(2,"async")),2&i&&t.Y8G("ngIf",t.l_i(5,ln,t.bMT(1,1,o.images$),t.bMT(2,3,o.videos$)))},dependencies:[l.YU,l.Sq,l.bT,Y.An,T.iY,rt.M,B.L,ct.mq,ct.T8,l.Jj],changeDetection:0})}}return n})();var Ct=r(1359),yt=r(549);function dn(n,a){1&n&&(t.j41(0,"app-divider",7),t.EFF(1,"About this item "),t.k0s()),2&n&&t.Y8G("fontSize","18px")("textAlign","left")("textColor","#ba8804")}function _n(n,a){if(1&n&&(t.j41(0,"div",8)(1,"video",9),t.nrm(2,"source",10),t.k0s()()),2&n){const e=t.XpG(2).ngIf;t.R7$(1),t.FS9("poster",e.videos[0].banner,t.B4B),t.FS9("src",e.videos[0].videoLink,t.B4B),t.R7$(1),t.FS9("src",e.videos[0].videoLink,t.B4B)}}function mn(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",11),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.openMediaDialog(1,0))}),t.nrm(1,"img",12),t.j41(2,"a",13),t.qSk(),t.j41(3,"svg",14),t.nrm(4,"path",15)(5,"circle",16),t.k0s(),t.joV(),t.nrm(6,"span",17),t.k0s()()}if(2&n){const e=t.XpG(2).ngIf;t.R7$(1),t.FS9("src",e.videos[0].banner,t.B4B),t.FS9("alt",e.videos[0].alt)}}const wt=function(){return["full-width"]},kt=function(){return[200,400,600,800,1e3,1200]};function gn(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",18),t.nrm(1,"p",19),t.j41(2,"div",20)(3,"app-responsive-image",21),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.openMediaDialog(0,o.product.images.length-1))}),t.k0s()()()}if(2&n){const e=t.XpG(2).ngIf,i=t.XpG();t.R7$(1),t.Y8G("innerHTML",i.product.descriptions[0],t.npT),t.R7$(2),t.Y8G("baseImage",e.firstImage)("alt",i.product.title+" detail 1")("useClasses",t.lJ4(5,wt))("widths",t.lJ4(6,kt))}}function un(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",22)(1,"div",20)(2,"app-responsive-image",21),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.openMediaDialog(0,o.product.images.length-2))}),t.k0s()(),t.nrm(3,"p",23),t.k0s()}if(2&n){const e=t.XpG(2).ngIf,i=t.XpG();t.R7$(2),t.Y8G("baseImage",e.secondImage)("alt",i.product.title+" detail 2")("useClasses",t.lJ4(5,wt))("widths",t.lJ4(6,kt)),t.R7$(1),t.Y8G("innerHTML",i.product.descriptions[1],t.npT)}}const fn=function(n){return{"text-columns":n}};function hn(n,a){if(1&n&&(t.j41(0,"div"),t.nrm(1,"p",24),t.k0s()),2&n){const e=a.ngIf;t.R7$(1),t.Y8G("ngClass",t.eq3(2,fn,e.length>1e3))("innerHtml",e,t.npT)}}function vn(n,a){if(1&n&&(t.qex(0),t.DNE(1,dn,2,3,"app-divider",1),t.DNE(2,_n,3,3,"div",2),t.DNE(3,mn,7,2,"div",3),t.j41(4,"div",4),t.DNE(5,gn,4,7,"div",5),t.DNE(6,un,4,7,"div",6),t.DNE(7,hn,2,4,"div",0),t.k0s(),t.bVm()),2&n){const e=t.XpG().ngIf,i=t.XpG();t.R7$(1),t.Y8G("ngIf",e.firstImage||e.videos),t.R7$(1),t.Y8G("ngIf",e.videos&&e.videos.length),t.R7$(1),t.Y8G("ngIf",e.videos&&e.videos.length),t.R7$(2),t.Y8G("ngIf",i.product.descriptions.length>0&&e.firstImage),t.R7$(1),t.Y8G("ngIf",i.product.descriptions.length>1&&e.secondImage),t.R7$(1),t.Y8G("ngIf",i.thirdRow(e.firstImage,e.secondImage))}}function xn(n,a){if(1&n&&(t.qex(0),t.DNE(1,vn,8,6,"ng-container",0),t.bVm()),2&n){const e=a.ngIf,i=t.XpG();t.R7$(1),t.Y8G("ngIf",i.product.descriptions.length||e.videos&&e.videos.length)}}const In=function(n,a,e){return{firstImage:n,secondImage:a,videos:e}};let bn=(()=>{class n{constructor(e,i,o){this.dialog=e,this.imageSyncService=i,this.imageSizeService=o,this.videos$=this.imageSyncService.videos$,this.firstImage$=this.imageSyncService.standardImages$.pipe((0,_.p)(s=>!!s?.length),(0,d.T)(s=>s[s.length-1].image)),this.secondImage$=this.imageSyncService.standardImages$.pipe((0,_.p)(s=>!!(s&&s.length&&s?.length>1)),(0,d.T)(s=>s[s.length-2].image))}ngOnInit(){}thirdRow(e,i){let o="";return this.product.descriptions.length>0&&!e&&(o=this.product.descriptions[0]),this.product.descriptions.length>1&&!i&&(o=o?o.concat(" ",this.product.descriptions[1]):this.product.descriptions[1]),this.product.descriptions.length>2&&(o=o?o.concat(" ",this.product.descriptions[2]):this.product.descriptions[2]),o}openMediaDialog(e,i){this.dialog.open(bt,{width:"100%",data:{product:this.product,activeTab:e,selectedImageIndex:i}})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(g.bZ),t.rXU(G),t.rXU(Ct.o))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-description"]],inputs:{product:"product"},decls:4,vars:11,consts:[[4,"ngIf"],[3,"fontSize","textAlign","textColor",4,"ngIf"],["class","description-row-width embedded-video text-center mt_20 mb_20 margin-center",4,"ngIf"],["class","description-row-width popup-video text-center relative-position","style","margin: 20px auto;",3,"click",4,"ngIf"],[1,"col"],["class","description-row row description-row-width text-left pd_10",4,"ngIf"],["class","description-row row description-row-width text-right pd_10",4,"ngIf"],[3,"fontSize","textAlign","textColor"],[1,"description-row-width","embedded-video","text-center","mt_20","mb_20","margin-center"],["playsinline","playsinline","preload","auto","controls","",2,"width","80%",3,"poster","src"],[3,"src"],[1,"description-row-width","popup-video","text-center","relative-position",2,"margin","20p
1x auto",3,"click"],["sizes","(max-width: 850px) 85vw, (max-width: 971px) 720px, 810px","defaultImage","",1,"text-center","width_90",2,"max-width","900px","max-height","60vh","object-fit","contain","aspect-ratio","16/9",3,"src","alt"],[1,"video-play-button"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 104 104","enable-background","new 0 0 104 104",0,"xml","space","preserve"],["fill","none","stroke","#FFFFFF","stroke-width","4","stroke-miterlimit","10","d","M26,35h52L52,81L26,35z"],["fill","none","stroke","#DA3D25","stroke-width","4","stroke-miterlimit","10","cx","52","cy","52","r","50",1,"video-play-circle"],[1,"video-play-outline"],[1,"description-row","row","description-row-width","text-left","pd_10"],[1,"flex-text","mat-subtitle-2",3,"innerHTML"],[1,"img-container"],["sizes","(max-width: 400px) 95vw, (max-width:800px) 400px, (max-width:850px) 350px, 400px",3,"baseImage","alt","useClasses","widths","click"],[1,"description-row","row","description-row-width","text-right","pd_10"],[1,"flex-text","flex-text2","mat-subtitle-2",3,"innerHTML"],[1,"flex-text","description-row-width","mat-subtitle-2",3,"ngClass","innerHtml"]],template:function(i,o){1&i&&(t.DNE(0,xn,2,1,"ng-container",0),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async")),2&i&&t.Y8G("ngIf",t.sMw(7,In,t.bMT(1,1,o.firstImage$),t.bMT(2,3,o.secondImage$),t.bMT(3,5,o.videos$)))},dependencies:[l.YU,l.bT,yt.h,rt.M,B.L,l.Jj],styles:[".flex-text[_ngcontent-%COMP%]{max-width:400px;font-size:16px;margin:20px;line-height:1.6;list-style-position:inside;align-self:center;overflow-wrap:break-word}.flex-text2[_ngcontent-%COMP%]{text-align:right;list-style-position:inside}.description-row-width[_ngcontent-%COMP%]{max-width:900px;margin:auto}.video-play-button[_ngcontent-%COMP%]{display:block;width:104px;height:104px;position:absolute;top:50%;left:50%;margin:-52px 0 0 -52px;cursor:pointer}.video-play-outline[_ngcontent-%COMP%]{display:block;width:96px;height:96px;border:#FFF 4px solid;border-radius:50%;position:absolute;z-index:-1;top:0;left:0;opacity:.7;transition:all .5s}.video-play-circle[_ngcontent-%COMP%]{stroke-dasharray:315;stroke-dashoffset:315;transition:stroke-dashoffset .5s}.video-play-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{display:block;transform:rotate(-90deg);transition:transform .3s}.video-play-button[_ngcontent-%COMP%]:hover .video-play-circle[_ngcontent-%COMP%]{stroke-dashoffset:0}.video-play-button[_ngcontent-%COMP%]:active .video-play-outline[_ngcontent-%COMP%]{transform:scale(1.5);opacity:0}.video-play-button[_ngcontent-%COMP%]:active svg[_ngcontent-%COMP%]{transform:rotate(-90deg) scale(.95)}@media (max-width: 800px){.description-row-width[_ngcontent-%COMP%]{max-width:95%}.description-row[_ngcontent-%COMP%]{flex-direction:column}.flex-text[_ngcontent-%COMP%]{order:1}.flex-text[_ngcontent-%COMP%]{text-align:center!important}}.embedded-video[_ngcontent-%COMP%]{display:none}@media (max-width: 971px){.embedded-video[_ngcontent-%COMP%]{display:block}.popup-video[_ngcontent-%COMP%]{display:none}}.img-container[_ngcontent-%COMP%]{max-width:400px;cursor:pointer;width:90%;align-self:center}@media (min-width: 600px){.text-columns[_ngcontent-%COMP%]{column-count:2;gap:3em}}.width_90[_ngcontent-%COMP%]{width:90%}"],changeDetection:0})}}return n})();var Cn=r(6356),u=r(9159),Gt=r(3864),Tt=r(4823);const yn=["swatchOptionComponent"];function wn(n,a){if(1&n&&(t.j41(0,"mat-option",9),t.EFF(1),t.k0s()),2&n){const e=a.$implicit,i=t.XpG(2).ngIf,o=t.XpG();t.Y8G("routerLink",o.createLink(i.languageCode||"",e))("value",e.value),t.R7$(1),t.SpI(" ",e.value," ")}}function kn(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",5)(1,"mat-form-field",6)(2,"mat-select",7),t.bIt("valueChange",function(o){t.eBV(e);const s=t.XpG(2);return t.Njj(s.option.value=o)}),t.DNE(3,wn,2,3,"mat-option",8),t.k0s()()()}if(2&n){const e=t.XpG(2);t.R7$(2),t.Y8G("value",e.option.value),t.R7$(1),t.Y8G("ngForOf",e.option.values)}}const Dt=function(n,a){return{"selected-option selected-option-button":n,"disabled-button":a}};function Gn(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"a",12),t.bIt("mouseover",function(){t.eBV(e);const o=t.XpG().$implicit,s=t.XpG(3);return s.hoverValue=o.value,t.Njj(s.hoverSkid=o.skid)})("mouseout",function(){t.eBV(e);const o=t.XpG(4);return o.hoverValue="",t.Njj(o.hoverSkid="")}),t.EFF(2),t.k0s()()}if(2&n){const e=t.XpG().$implicit,i=t.XpG(2).ngIf,o=t.XpG();t.R7$(1),t.Y8G("routerLink",o.createLink(i.languageCode||"",e))("ngClass",t.l_i(3,Dt,e.value===o.option.value,!e.isMatch)),t.R7$(1),t.SpI(" ",e.value," ")}}function Tn(n,a){if(1&n&&(t.qex(0),t.DNE(1,Gn,3,6,"div",2),t.bVm()),2&n){const e=a.$implicit,i=t.XpG(3);t.R7$(1),t.Y8G("ngIf",i.isMobile&&e.value===i.option.value)}}function Dn(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"a",12),t.bIt("mouseover",function(){t.eBV(e);const o=t.XpG().$implicit,s=t.XpG(3);return s.hoverValue=o.value,t.Njj(s.hoverSkid=o.skid)})("mouseout",function(){t.eBV(e);const o=t.XpG(4);return o.hoverValue="",t.Njj(o.hoverSkid="")}),t.EFF(2),t.k0s()()}if(2&n){const e=t.XpG().$implicit,i=t.XpG(2).ngIf,o=t.XpG();t.R7$(1),t.Y8G("routerLink",o.createLink(i.languageCode||"",e))("ngClass",t.l_i(3,Dt,e.value===o.option.value,!e.isMatch)),t.R7$(1),t.SpI(" ",e.value," ")}}function $n(n,a){if(1&n&&(t.qex(0),t.DNE(1,Dn,3,6,"div",2),t.bVm()),2&n){const e=a.$implicit,i=t.XpG(3);t.R7$(1),t.Y8G("ngIf",e.value!==i.option.value||!i.isMobile)}}function Sn(n,a){if(1&n&&(t.j41(0,"div",10),t.DNE(1,Tn,2,1,"ng-container",11),t.DNE(2,$n,2,1,"ng-container",11),t.k0s()),2&n){const e=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",e.option.values),t.R7$(1),t.Y8G("ngForOf",e.option.values)}}const Rn=function(){return["option-image"]};function Fn(n,a){if(1&n&&t.nrm(0,"img",23),2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.FS9("src",e.swatch,t.B4B),t.Y8G("alt",i.option.name+" "+i.option.value+" option")("classList",t.lJ4(5,Rn))("srcset",i.getSourceSet(e.swatch))("src",e.swatch,t.B4B)}}function En(n,a){if(1&n&&t.nrm(0,"img",24),2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.FCK("alt","Option image for ",i.option.name," ",e.value,"")}}function jn(n,a){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"currency"),t.nI1(3,"float"),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(1),t.JRh(t.bMT(2,1,t.bMT(3,3,e.price)))}}function Mn(n,a){1&n&&(t.j41(0,"span"),t.EFF(1,"\xa0"),t.k0s())}function On(n,a){if(1&n&&(t.j41(0,"p",25),t.DNE(1,jn,4,5,"span",2),t.DNE(2,Mn,2,0,"span",2),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("ngIf",e.price>0),t.R7$(1),t.Y8G("ngIf",e.price<=0)}}const Pn=function(n,a){return{"selected-option":n,"disabled-swatch":a}},Xn=function(n){return{bold:n}};function Yn(n,a){if(1&n){const e=t.RV6();t.j41(0,"a",17)(1,"div",18),t.bIt("mouseover",function(){const s=t.eBV(e).$implicit,p=t.XpG(3);return t.Njj(p.swatchHover(s.skid,s.value,s.isMatch))})("mouseout",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.swatchHover("","",!0))}),t.DNE(2,Fn,1,6,"img",19),t.DNE(3,En,1,2,"ng-template",null,20,t.C5r),t.j41(5,"p",21),t.EFF(6),t.k0s(),t.DNE(7,On,3,2,"p",22),t.k0s()()}if(2&n){const e=a.$implicit,i=t.sdS(4),o=t.XpG(2).ngIf,s=t.XpG();t.Y8G("routerLink",s.createLink(o.languageCode||"",e))("matTooltip",e.value)("matTooltipDisabled",s.hideSwatchOverflow),t.R7$(1),t.Y8G("ngClass",t.l_i(9,Pn,e.value===s.option.value,!e.isMatch)),t.R7$(1),t.Y8G("ngIf",e.swatch)("ngIfElse",i),t.R7$(3),t.Y8G("ngClass",t.eq3(12,Xn,e.value==s.option.value)),t.R7$(1),t.SpI(" ",e.value," "),t.R7$(1),t.Y8G("ngIf",e.price)}}function Nn(n,a){if(1&n){const e=t.RV6();t.j41(0,"p",26),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.hideSwatchOverflow=!o.hideSwatchOverflow)}),t.EFF(1),t.j41(2,"mat-icon",27),t.EFF(3),t.k0s()()}if(2&n){const e=t.XpG(3);t.R7$(1),t.SpI(" ",e.swatchOverflowMessage," "),t.R7$(2),t.JRh(e.expansionIcon)}}const Vn=function(n){return{"container-closed":n}};function Bn(n,a){if(1&n&&(t.qex(0),t.j41(1,"div",13,14),t.DNE(3,Yn,8,14,"a",15),t.k0s(),t.DNE(4,Nn,4,2,"p",16),t.bVm()),2&n){const e=t.XpG(2);t.R7$(1),t.Y8G("ngClass",t.eq3(3,Vn,e.hideSwatchOverflow)),t.R7$(2),t.Y8G("ngForOf",e.option.values),t.R7$(1),t.Y8G("ngIf",e.showOverflowText)}}function Ln(n,a){if(1&n&&(t.qex(0),t.DNE(1,kn,4,2,"div",3),t.DNE(2,Sn,3,2,"div",4),t.DNE(3,Bn,5,5,"ng-container",2),t.bVm()),2&n){const e=t.XpG();t.R7$(1),t.Y8G("ngIf","select"===e.option.type&&!e.isMobile),t.R7$(1),t.Y8G("ngIf","button"===e.option.type&&e.option.values.length>1||"select"===e.option.type&&e.isMobile),t.R7$(1),t.Y8G("ngIf","swatch"===e.option.type)}}const Un=function(n){return{languageCode:n}};let zn=(()=>{class n{ngAfterViewInit(){this.checkOverflow()}checkOverflow(){this.swatchOptionComponent?.nativeElement&&this.swatchOptionComponent?.nativeElement&&!this.crawlerService.isCrawler()&&!this.showOverflowText&&(this.showOverflowText=this.swatchOptionComponent.nativeElement.offsetHeight<this.swatchOptionComponent.nativeElement.scrollHeight)}swatchHover(e,i,o){this.hoverValue=i,this.imageSyncService.broadcastImageHover(e)}constructor(e,i,o,s,p,f,x){this.imageSyncService=e,this.imageSizeService=i,this.crawlerService=o,this.languageCodeService=s,this.windowRef=p,this.deviceDetectorService=f,this.platformService=x,this.hideSwatchOverflow=!this.crawlerService.isCrawler()&&!1,this.showOverflowText=!1}createLink(e,i){return i.slug?["/",e,"product",i.slug,i.skid]:["/",e,"product",i.skid]}get swatchOverflowMessage(){return this.hideSwatchOverflow?`See all ${this.option.values.length} options`:"See less"}get expansionIcon(){return this.hideSwatchOverflow?"expand_more":"exp
1and_less"}ngOnInit(){this.checkOverflow(),this.isMobile=this.deviceDetectorService.isMobile()||this.platformService.isBrowser()&&this.windowRef.innerWidth<=500}getSourceSet(e){return[100,200,300].map(i=>`${this.imageSizeService.imageSizeUrl(e,i)} ${i}w`).join()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(G),t.rXU(Ct.o),t.rXU(mt.c),t.rXU(L.x),t.rXU(Gt.jf),t.rXU(dt.Kg),t.rXU(X.f))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-option"]],viewQuery:function(i,o){if(1&i&&t.GBs(yn,5,t.aKT),2&i){let s;t.mGM(s=t.lsd())&&(o.swatchOptionComponent=s.first)}},inputs:{option:"option"},decls:7,vars:7,consts:[[1,"row","space-between","v-center-flex","mt_20","mb_6"],[1,"mb_0","title","one-line"],[4,"ngIf"],["class","px_10",4,"ngIf"],["class","option-container",4,"ngIf"],[1,"px_10"],["appearance","outline"],[1,"select-placeholder","fw_500",3,"value","valueChange"],["class","select-panel-class",3,"routerLink","value",4,"ngFor","ngForOf"],[1,"select-panel-class",3,"routerLink","value"],[1,"option-container"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"white-space","nowrap",3,"routerLink","ngClass","mouseover","mouseout"],[1,"swatch-container",3,"ngClass"],["swatchOptionComponent",""],[3,"routerLink","matTooltip","matTooltipDisabled",4,"ngFor","ngForOf"],["class","text-link expansion-text mt_10 hide-mobile-content","style","padding: 2px;",3,"click",4,"ngIf"],[3,"routerLink","matTooltip","matTooltipDisabled"],[1,"option-swatch",2,"border-radius","4px","padding-top","4px",3,"ngClass","mouseover","mouseout"],["style","aspect-ratio: 1 !important;","referrerpolicy","no-referrer","defaultImage","",3,"src","alt","classList","srcset",4,"ngIf","ngIfElse"],["showDefault",""],[1,"title","one-line","mat-caption","m_0",2,"width","90%","padding","2px",3,"ngClass"],["class","mat-caption m_0","style","padding: 0 0 0 2px;",4,"ngIf"],["referrerpolicy","no-referrer","defaultImage","",2,"aspect-ratio","1 !important",3,"src","alt","classList","srcset"],["src","","defaultImage","",1,"option-image",3,"alt"],[1,"mat-caption","m_0",2,"padding","0 0 0 2px"],[1,"text-link","expansion-text","mt_10","hide-mobile-content",2,"padding","2px",3,"click"],[1,"v-align-bottom"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"p",1)(2,"b"),t.EFF(3),t.k0s(),t.EFF(4),t.k0s()(),t.DNE(5,Ln,4,3,"ng-container",2),t.nI1(6,"async")),2&i&&(t.R7$(3),t.SpI("",o.option.name,":"),t.R7$(1),t.SpI(" ",o.hoverValue||o.option.value," "),t.R7$(1),t.Y8G("ngIf",t.eq3(5,Un,t.bMT(6,3,o.languageCodeService.languageCode$))))},dependencies:[l.YU,l.Sq,l.bT,m.Wk,Y.An,T.It,rt.M,N.rl,V.VO,st.wT,Tt.oV,l.Jj,l.oe,E.T],styles:[".test-class[_ngcontent-%COMP%]{font-weight:700;color:#000}.select-panel-class[_ngcontent-%COMP%]{font-size:15px}.selected-option[_ngcontent-%COMP%]{outline:2px solid #dbbd32!important;color:#000000de!important;font-weight:700!important;box-shadow:0 0 6px #dbbd32}.selected-option-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-weight:700!important}.option-image[_ngcontent-%COMP%]{width:80px;aspect-ratio:1}.option-swatch[_ngcontent-%COMP%]{width:80px;cursor:pointer;background-color:#fff;border:2px lightgray solid;padding:4px}.option-swatch[_ngcontent-%COMP%]:hover{filter:drop-shadow(1px 2px 3px gray)}.swatch-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:20px;width:100%;padding-right:20px}.option-container[_ngcontent-%COMP%]{display:flex;gap:20px;flex-wrap:wrap;padding:2px}.button-container[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap}.container-closed[_ngcontent-%COMP%]{max-height:310px;overflow-y:hidden}@media (max-width: 690px){.option-swatch[_ngcontent-%COMP%], .option-image[_ngcontent-%COMP%]{width:150px}.expansion-text[_ngcontent-%COMP%]{display:none}.swatch-container[_ngcontent-%COMP%]{display:flex;margin-left:-15px;width:calc(100vw - 45px)}.container-closed[_ngcontent-%COMP%]{overflow:auto}.swatch-container[_ngcontent-%COMP%], .option-container[_ngcontent-%COMP%], .button-container[_ngcontent-%COMP%]{flex-wrap:nowrap;overflow-x:auto;padding:20px}.option-container[_ngcontent-%COMP%]{margin-left:-35px;margin-right:-15px;padding:10px 35px 20px}}.disabled-swatch[_ngcontent-%COMP%]{opacity:56%;border:2px lightgray dashed}.disabled-button[_ngcontent-%COMP%]{opacity:56%;outline:2px lightgray dashed}"],changeDetection:0})}}return n})();function Jn(n,a){if(1&n&&(t.j41(0,"li",5),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.R7$(1),t.JRh(e)}}function An(n,a){if(1&n&&(t.j41(0,"div",1)(1,"p",2),t.EFF(2,"Product details"),t.k0s(),t.j41(3,"ul",3),t.DNE(4,Jn,2,1,"li",4),t.k0s()()),2&n){const e=t.XpG();t.R7$(4),t.Y8G("ngForOf",e.features)}}let $t=(()=>{class n{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-features"]],inputs:{features:"features"},decls:1,vars:1,consts:[["style","padding: 10px;",4,"ngIf"],[2,"padding","10px"],[1,"fw_700"],[1,"m_0",2,"padding","0 20px"],["class","mat-subtitle-2","style","margin: 10px 0;",4,"ngFor","ngForOf"],[1,"mat-subtitle-2",2,"margin","10px 0"]],template:function(i,o){1&i&&t.DNE(0,An,5,1,"div",0),2&i&&t.Y8G("ngIf",o.features)},dependencies:[l.Sq,l.bT]})}}return n})();function Hn(n,a){if(1&n&&t.nrm(0,"app-fancy-price",15),2&n){const e=t.XpG().ngIf;t.Y8G("price",e.priceInt)("size","large")("isRedText",!1)("includeCurrency",!0)}}function qn(n,a){if(1&n&&t.nrm(0,"app-unavailable",16),2&n){const e=t.XpG(3);t.Y8G("isApparel",e.product.isApparel&&e.hasSizeOptions)("fontSize","30px")("showSubtext",!1)("searchText",e.product.title)}}function Wn(n,a){if(1&n&&(t.j41(0,"p",17),t.EFF(1," Reduced from: "),t.j41(2,"span",18),t.EFF(3),t.nI1(4,"currency"),t.nI1(5,"float"),t.k0s()()),2&n){const e=t.XpG().ngIf;t.R7$(3),t.JRh(t.bMT(4,1,t.bMT(5,3,e.listPriceInt)))}}function Qn(n,a){if(1&n&&(t.j41(0,"p",17),t.EFF(1," Was: "),t.j41(2,"span",18),t.EFF(3),t.nI1(4,"currency"),t.nI1(5,"float"),t.k0s()()),2&n){const e=t.XpG().ngIf;t.R7$(3),t.JRh(t.bMT(4,1,t.bMT(5,3,e.wasPriceInt)))}}function Kn(n,a){if(1&n&&(t.j41(0,"p",19),t.EFF(1),t.nI1(2,"currency"),t.nI1(3,"float"),t.k0s()),2&n){const e=t.XpG().ngIf;t.R7$(1),t.Lme(" Save ",t.bMT(2,2,t.bMT(3,4,e.savingsInt))," (",e.savingsPct,"% off) ")}}function Zn(n,a){if(1&n&&(t.j41(0,"div",9),t.DNE(1,Hn,1,4,"app-fancy-price",10),t.DNE(2,qn,1,4,"ng-template",null,11,t.C5r),t.DNE(4,Wn,6,5,"p",12),t.DNE(5,Qn,6,5,"p",13),t.DNE(6,Kn,4,6,"p",14),t.k0s()),2&n){const e=a.ngIf,i=t.sdS(3);t.R7$(1),t.Y8G("ngIf",e.priceInt)("ngIfElse",i),t.R7$(3),t.Y8G("ngIf",e.listPriceInt),t.R7$(1),t.Y8G("ngIf",e.wasPriceInt),t.R7$(1),t.Y8G("ngIf",e.savingsInt)}}function ti(n,a){if(1&n&&(t.qex(0),t.DNE(1,Zn,7,5,"div",8),t.bVm()),2&n){const e=t.XpG();t.R7$(1),t.Y8G("ngIf",e.product.prices)}}function ei(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"mat-card",24)(2,"p")(3,"mat-icon",25),t.EFF(4,"error"),t.k0s(),t.j41(5,"span"),t.EFF(6),t.k0s()(),t.j41(7,"div",26)(8,"button",27),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3).ngIf,s=t.XpG(2);return t.Njj(s.updateLocation(o))}),t.EFF(9),t.k0s(),t.j41(10,"a",28),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2).ngIf,s=t.XpG(3);return t.Njj(s.navigateToUserCountry(o))}),t.EFF(11),t.k0s()()(),t.bVm()}if(2&n){const e=t.XpG().ngIf,i=t.XpG().ngIf;t.R7$(6),t.SpI(" An outside link brought you to this item's page for delivery to ",e,". Please confirm your location before adding to your cart. "),t.R7$(3),t.SpI(" Continue for delivery to ",e," "),t.R7$(2),t.SpI(" Shop for delivery to ",i.country," ")}}function ni(n,a){if(1&n&&(t.qex(0),t.DNE(1,ei,12,3,"ng-container",20),t.bVm()),2&n){const e=t.XpG().ngIf,i=t.XpG().ngIf,o=t.XpG(2);t.R7$(1),t.Y8G("ngIf",o.needsCountryCodeReconciliation(e,i))}}function ii(n,a){if(1&n&&(t.qex(0),t.DNE(1,ni,2,1,"ng-container",20),t.nI1(2,"async"),t.bVm()),2&n){const e=t.XpG(3);t.R7$(1),t.Y8G("ngIf",t.bMT(2,1,e.urlCountry$))}}function oi(n,a){if(1&n&&(t.qex(0),t.DNE(1,ii,3,3,"ng-container",20),t.nI1(2,"async"),t.bVm()),2&n){const e=t.XpG(2);t.R7$(1),t.Y8G("ngIf",t.bMT(2,1,e.user$))}}function ai(n,a){1&n&&(t.j41(0,"div",29),t.EFF(1," Top Seller "),t.k0s())}function si(n,a){if(1&n&&t.nrm(0,"app-score",30),2&n){const e=t.XpG(2);t.Y8G("score",e.product.score)("title","Product Score")}}function ri(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",31),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.openRenewedInfoDialog())}),t.j41(2,"p",32),t.EFF(3,"Renewed item"),t.k0s(),t.j41(4,"mat-icon",33),t.EFF(5,"info"),t.k0s()(),t.bVm()}}function ci(n,a){if(1&n&&t.nrm(0,"app-hazmat-message",34),2&n){const e=t.XpG(2);t.Y8G("hazmatHandlingFee",e.product.prices.hazmatInt)}}function pi(n,a){if(1&n&&(t.qex(0),t.DNE(1,oi,3,3,"ng-container",20),t.nI1(2,"async"),t.DNE(3,ai,2,0,"div",21),t.DNE(4,si,1,2,"app-score",22),t.DNE(5,ri,6,0,"ng-container",20),t.DNE(6,ci,1,1,"app-hazmat-message",23),t.bVm()),2&n){const e=t.XpG();t.R7$(1),t.Y8G("ngIf",t.bMT(2,5,e.urlCountryCode$)),t.R7$(2),t.Y8G("ngIf",e.product.isTopSeller),t.R7$(1),t.Y8G("ngIf",e.product.score&&e.product.score>0),t.R7$(1),t.Y8G("ngIf",e.product.isRenewed),t.R7$(1),t.Y8G("ngIf",e.product.prices.hazmatInt)}}function li(n,a){1&n&&t.nrm(0,"app-option",38),2&n&&t.Y8G("option",a.$implicit)}function di(n,a){if(1&n&&(t.j41(0,"div",36),t.DNE(1,li,1,1,"app-option",37),t.nrm(2,"mat-divider",3),t.k0s()),2&n){const e=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",e.options)}}function _i(n,a){if(1&n&&(t.j41(0,"td",46),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.R7$(1),t.SpI(" ",e.name,"")}}function mi(n,a){if(1&n&&(t.j41(0,"td",47),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.R7$(1),t.SpI(" ",e.value," ")}}function gi(n,a){1&n&&t.nrm(0,"tr",48)}const ui=function(){return["name","value"]};function fi(n,a){if(1&n&&(t.qex(0),t.j41(1,"div",39)(2,"table",40),t.qex(3,41),t.DNE(4,_i,2,1,"td",42),t.bVm(),t.qex(5,43),t.DNE(6,mi,2,1,"td",44),t.bVm(),t.DNE(7,gi,1,0,"tr",45),t.k0s()(),t.nrm(8,"mat-divider",3),t.bVm()),2&n){const e=t.XpG(2);t.R7$(2),t.Y8G("dataSource",e.tabularData),t.R7$(5),t.Y8G("matRowDefColumns",t.lJ4(2,ui))}}function hi(n,a){if(1&n&&(t.qex(0),t.DNE(1,di,3,1,"div",35),t.DNE(2,fi,9,3,"ng-container",20),t.bVm()),2&n){const e=t.XpG();t.R7$(1),t.Y8G("ngIf",e.options&&e.options.length),t.R7$(1),t.Y8G("ngIf",e.tabularData&&e.tabularData.length)}}function vi(n,a){if(1&n&&t.nrm(0,"app-features",49),2&n){const e=t.XpG();t.Y8G("features",e.product.features)}}function xi(n,a){1&n&&(t.j41(0,"div",50),t.nrm(1,"app-skeleton",51),t.k0s()),2&n&&(t.R7$(1),t.Y8G("width","100%")("height","60px"))}function Ii(n,a){1&n&&(t.j41(0,"div",52),t.nrm(1,"app-skeleton",51)(2,"app-skeleton",51),t.k0s()),2&n&&(t.R7$(1),t.Y8G("width","100%")("height","350px"),t.R7$(1),t.Y8G("width","100%")("height","350px"))}function bi(n,a){1&n&&t.nrm(0,"app-skeleton",51)(1,"app-skeleton",51)(2,"app-skeleton",51)(3,"app-skeleton",51)(4,"app-skeleton",51)(5,"app-skeleton",51)(6,"mat-divider",3),2&n&&(t.Y8G("width","70%")("height","16px"),t.R7$(1),t.Y8G("width","60%")("height","16px"),t.R7$(1),t.Y8G("width","70%")("height","16px"),t.R7$(1),t.Y8G("width","30%")("height","16px"),t.R7$(1),t.Y8G("width","60%")("height","16px"),t.R7$(1),t.Y8G("width","70%")("height","16px"))}const Ci=function(n){return{"min-skeleton-width":n}};let yi=(()=>{class n{ngOnChanges(e){e.options&&e.options.currentValue&&(this.hasSizeOptions=e.options.currentValue.filter(o=>"size"===o.name.toLowerCase()&&o.values.length>1).length>0)}constructor(e,i,o,s){this.userService=e,this.matDialog=i,this.languageCodeService=o,this.router=s,this.hasSizeOptions=!1,this.user$=this.userService.user$,this.urlCountryCode$=this.languageCodeService.urlCountryCode$,this.urlCountry$=this.languageCodeService.urlCountry$}needsCountryCodeReconciliation(e,i){return!!i&&e.countryCode&&e.countryCode!=i}updateLocation(e){this.matDialog.open(at.V,{panelClass:"custom-dialog-container",width:"400px",data:{preselectedCountryCode:e}})}openRenewedInfoDialog(){this.matDialog.open(ut.S,{width:"400px",data:{title:"Renewed Items",icon:"recycling",text:"Renewed items have been inspected, tested, and refurbished as
1necessary to be fully functional and include generic or original accessories and packaging."}})}navigateToUserCountry(e){const i="en-"+e.countryCode.toLowerCase();this.languageCodeService.routeParamsSubject.next(i);const o=["/",i,"product"];this.name&&o.push(this.name),o.push(this.skid||""),this.router.navigate(o).then()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(H.g),t.rXU(g.bZ),t.rXU(L.x),t.rXU(m.Ix))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-details"]],inputs:{product:"product",options:"options",tabularData:"tabularData",isLoaded:"isLoaded",name:"name",skid:"skid"},features:[t.OA$],decls:13,vars:11,consts:[[1,"sticky","top_10",2,"display","block","margin-top","12px",3,"ngClass"],[1,"pd_0","m_0"],[4,"ngIf","ngIfElse"],[1,"mt_20"],["class","hide-mobile-content",3,"features",4,"ngIf","ngIfElse"],["priceSkeleton",""],["featuresSkeleton",""],["optionSkeleton",""],["class","mb_10 hide-mobile-content",4,"ngIf"],[1,"mb_10","hide-mobile-content"],["class","mb_6",3,"price","size","isRedText","includeCurrency",4,"ngIf","ngIfElse"],["unavailable",""],["class","mat-caption dark-gray m_0",4,"ngIf"],["class","mat-caption dark-gray m_0 ",4,"ngIf"],["class","currency-red mat-subtitle-2 m_0",4,"ngIf"],[1,"mb_6",3,"price","size","isRedText","includeCurrency"],[3,"isApparel","fontSize","showSubtext","searchText"],[1,"mat-caption","dark-gray","m_0"],[1,"mat-caption","line-through"],[1,"currency-red","mat-subtitle-2","m_0"],[4,"ngIf"],["class","ribbon top-seller mt_10",4,"ngIf"],["style","max-width: 250px;",3,"score","title",4,"ngIf"],["class","gray",3,"hazmatHandlingFee",4,"ngIf"],[1,"background-off-white"],[1,"icon_15","gray"],[1,"col","gap_10"],["mat-stroked-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click"],[1,"ribbon","top-seller","mt_10"],[2,"max-width","250px",3,"score","title"],[1,"pointer","white","pd_5","mt_15","row",2,"background-color","green",3,"click"],[1,"mb_0"],[1,"icon_18","ml_4"],[1,"gray",3,"hazmatHandlingFee"],["class","center",4,"ngIf"],[1,"center"],[3,"option",4,"ngFor","ngForOf"],[3,"option"],[1,"row","gap_40",2,"padding","20px 15px"],["mat-table","",1,"full-width",2,"max-width","700px","min-width","300px",3,"dataSource"],["matColumnDef","name"],["style","padding-left: 0;","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","text-right","style","padding-left: 4px;","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",2,"padding-left","0"],["mat-cell","",1,"text-right",2,"padding-left","4px"],["mat-row",""],[1,"hide-mobile-content",3,"features"],[2,"width","100%"],[3,"width","height"],[1,"col","gap_30",2,"width","100%"]],template:function(i,o){if(1&i&&(t.j41(0,"div",0)(1,"div",1),t.DNE(2,ti,2,1,"ng-container",2),t.DNE(3,pi,7,7,"ng-container",2),t.nrm(4,"mat-divider",3),t.DNE(5,hi,3,2,"ng-container",2),t.DNE(6,vi,1,1,"app-features",4),t.k0s()(),t.DNE(7,xi,2,2,"ng-template",null,5,t.C5r),t.DNE(9,Ii,3,4,"ng-template",null,6,t.C5r),t.DNE(11,bi,7,12,"ng-template",null,7,t.C5r)),2&i){const s=t.sdS(8),p=t.sdS(10),f=t.sdS(12);t.Y8G("ngClass",t.eq3(9,Ci,!o.product)),t.R7$(2),t.Y8G("ngIf",o.product)("ngIfElse",s),t.R7$(1),t.Y8G("ngIf",o.product)("ngIfElse",s),t.R7$(2),t.Y8G("ngIf",o.product&&o.options)("ngIfElse",f),t.R7$(1),t.Y8G("ngIf",o.product)("ngIfElse",p)}},dependencies:[l.YU,l.Sq,l.bT,Y.An,it.q,q.RN,T.It,T.$z,ft.m,nt.N,gt.a,Cn.W,u.Zl,u.cC,u.YV,u.iL,u.$R,u.NB,zn,It,$t,l.Jj,l.oe,E.T],styles:[".min-skeleton-width[_ngcontent-%COMP%]{min-width:375px}"],changeDetection:0})}}return n})();function wi(n,a){1&n&&(t.j41(0,"th",9),t.EFF(1," Name"),t.k0s())}function ki(n,a){if(1&n&&(t.j41(0,"td",10),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.R7$(1),t.SpI(" ",e.name," ")}}function Gi(n,a){1&n&&(t.j41(0,"th",9),t.EFF(1," Value"),t.k0s())}function Ti(n,a){if(1&n&&(t.j41(0,"td",10),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.R7$(1),t.SpI(" ",e.value," ")}}function Di(n,a){1&n&&t.nrm(0,"tr",11)}function $i(n,a){1&n&&(t.j41(0,"div",12)(1,"p",13),t.EFF(2,"Warranty & Support"),t.k0s(),t.nrm(3,"mat-divider"),t.j41(4,"p",14)(5,"span",15),t.EFF(6,"Product Warranty:"),t.k0s(),t.EFF(7," For warranty information, please click here"),t.k0s(),t.j41(8,"p")(9,"span",15),t.EFF(10,"Product Support:"),t.k0s(),t.EFF(11," Please contact the manufacturer for product support"),t.k0s(),t.j41(12,"p")(13,"span",15),t.EFF(14,"Order Support:"),t.k0s(),t.EFF(15," Please contact Customer service"),t.k0s()())}let Si=(()=>{class n{constructor(){this.displayedColumns=["name","value"]}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-product-data"]],inputs:{productData:"productData",supportView:"supportView"},decls:12,vars:6,consts:[[3,"fontSize","textAlign","textColor"],[1,"row","gap_40","flex-wrap",2,"padding","20px 15px"],["mat-table","",1,"full-width",2,"max-width","700px","min-width","300px",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-row","",4,"matRowDef","matRowDefColumns"],["style","min-width: 400px;",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-row",""],[2,"min-width","400px"],[1,"px_20"],[1,"mt_10"],[1,"bold","px_14"]],template:function(i,o){1&i&&(t.j41(0,"app-divider",0),t.EFF(1," Product Information\n"),t.k0s(),t.j41(2,"div",1)(3,"table",2),t.qex(4,3),t.DNE(5,wi,2,0,"th",4),t.DNE(6,ki,2,1,"td",5),t.bVm(),t.qex(7,6),t.DNE(8,Gi,2,0,"th",4),t.DNE(9,Ti,2,1,"td",5),t.bVm(),t.DNE(10,Di,1,0,"tr",7),t.k0s(),t.DNE(11,$i,16,0,"div",8),t.k0s()),2&i&&(t.Y8G("fontSize","18px")("textAlign","left")("textColor","#ba8804"),t.R7$(3),t.Y8G("dataSource",o.productData),t.R7$(7),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(1),t.Y8G("ngIf",o.supportView))},dependencies:[l.bT,it.q,yt.h,u.Zl,u.tL,u.cC,u.YV,u.iL,u.KS,u.$R,u.NB],styles:[".mat-column-name[_ng
1content-%COMP%]{background-color:#f5f5f5}.mat-column-value[_ngcontent-%COMP%]{padding-left:10px}"],changeDetection:0})}}return n})();const Ri=["carouselImage"],St=function(n,a){return{selected:n,overlay:a}};function Fi(n,a){if(1&n&&t.nrm(0,"img",17),2&n){const e=t.XpG(),i=e.$implicit,o=e.index,s=t.XpG(3).ngIf,p=t.XpG();t.Y8G("src",i.image,t.B4B)("ngClass",t.l_i(2,St,p.selectedThumbnail==o,4==o&&s.thumbnailMessage))}}const Ei=function(){return[100,200,300]},ji=function(){return{display:"block"}};function Mi(n,a){if(1&n&&t.nrm(0,"app-responsive-image",18),2&n){const e=t.XpG(),i=e.index,o=e.$implicit,s=t.XpG(3).ngIf,p=t.XpG();t.Y8G("widths",t.lJ4(5,Ei))("alt",p.product.title+" thumbnail-"+i)("classDict",t.l_i(6,St,p.selectedThumbnail==i,4==i&&s.thumbnailMessage))("baseImage",o.image)("ngStyleVar",t.lJ4(9,ji))}}function Oi(n,a){if(1&n&&t.nrm(0,"p",19),2&n){const e=t.XpG(4).ngIf;t.Y8G("innerHTML",e.thumbnailMessage,t.npT)}}function Pi(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",13),t.bIt("mouseenter",function(){const s=t.eBV(e).index,p=t.XpG(4);return t.Njj(p.hoverThumbnail(s))})("click",function(){const s=t.eBV(e).index,p=t.XpG(4);return t.Njj(p.openMediaDialog(s))}),t.DNE(2,Fi,1,5,"img",14),t.DNE(3,Mi,1,10,"app-responsive-image",15),t.DNE(4,Oi,1,1,"p",16),t.k0s(),t.bVm()}if(2&n){const e=a.$implicit,i=a.index,o=t.XpG(3).ngIf;t.R7$(2),t.Y8G("ngIf",i<5&&e.image.includes("snapklik")),t.R7$(1),t.Y8G("ngIf",i<5&&!e.image.includes("snapklik")),t.R7$(1),t.Y8G("ngIf",4==i&&o.thumbnailMessage)}}function Xi(n,a){if(1&n&&(t.qex(0),t.DNE(1,Pi,5,3,"ng-container",12),t.bVm()),2&n){const e=a.ngIf,i=t.XpG(3);t.R7$(1),t.Y8G("ngForOf",e)("ngForTrackBy",i.trackThumbnailsFn)}}function Yi(n,a){if(1&n&&(t.j41(0,"div",11),t.DNE(1,Xi,2,2,"ng-container",8),t.k0s()),2&n){const e=t.XpG().ngIf,i=t.XpG(),o=t.sdS(6);t.R7$(1),t.Y8G("ngIf",i.product&&e.activeImages)("ngIfElse",o)}}const Ni=function(){return{"full-width":!0,"full-height":!0}},Vi=function(){return[300,400,500,600,700,800,900,1e3,1100,1200,1300,1400,1500]};function Bi(n,a){if(1&n&&(t.qex(0),t.j41(1,"div",20,21),t.nrm(3,"app-responsive-image",22),t.k0s(),t.bVm()),2&n){const e=a.ngIf;t.R7$(3),t.Y8G("classDict",t.lJ4(4,Ni))("baseImage",e.image)("isDataSrc",!0)("widths",t.lJ4(5,Vi))}}function Li(n,a){if(1&n){const e=t.RV6();t.j41(0,"img",27),t.bIt("click",function(){t.eBV(e);const o=t.XpG().index,s=t.XpG(5);return t.Njj(s.openMediaDialog(o))}),t.k0s()}if(2&n){const e=t.XpG().index,i=t.XpG(4).ngIf,o=t.XpG();t.Y8G("ngSrc",i.premiumImages[e].image.replace(".jpg","")+"._US500_.jpg")("alt",o.product.title+" view "+e)}}function Ui(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",24,21)(3,"img",25),t.bIt("click",function(){const s=t.eBV(e).index,p=t.XpG(5);return t.Njj(p.openMediaDialog(s))}),t.k0s(),t.DNE(4,Li,1,2,"img",26),t.k0s(),t.bVm()}if(2&n){const e=a.$implicit,i=a.index,o=t.XpG(4).ngIf,s=t.XpG();t.R7$(3),t.Y8G("alt",s.product.title+" view "+i)("ngSrc",e.image.replace(".jpg","")+"._US500_.jpg")("priority",0===i),t.R7$(1),t.Y8G("ngIf",o.premiumImages&&o.premiumImages.length>i)}}function zi(n,a){if(1&n&&(t.qex(0),t.DNE(1,Ui,5,4,"ng-container",12),t.bVm()),2&n){const e=t.XpG(3).ngIf,i=t.XpG();t.R7$(1),t.Y8G("ngForOf",e.standardImages)("ngForTrackBy",i.trackByCarouselFn)}}function Ji(n,a){if(1&n&&(t.qex(0),t.DNE(1,zi,2,2,"ng-container",23),t.bVm()),2&n){const e=t.XpG(2).ngIf;t.R7$(1),t.Y8G("ngIf",e.standardImages&&e.standardImages.length&&(!e.premiumImages||!e.premiumImages.length||!0))}}function Ai(n,a){if(1&n&&t.DNE(0,Ji,2,1,"ng-container",8),2&n){const e=t.XpG().ngIf,i=t.XpG(),o=t.sdS(8);t.Y8G("ngIf",i.product&&e.activeImages&&e.activeImages.length)("ngIfElse",o)}}function Hi(n,a){1&n&&t.nrm(0,"div",30)}function qi(n,a){if(1&n&&(t.j41(0,"div",28),t.DNE(1,Hi,1,0,"div",29),t.k0s()),2&n){const e=t.XpG().ngIf;t.R7$(1),t.Y8G("ngForOf",e.activeImages)}}function Wi(n,a){if(1&n&&(t.j41(0,"div",3)(1,"div",4),t.DNE(2,Yi,2,2,"div",5),t.j41(3,"div",6)(4,"div",7),t.DNE(5,Bi,4,6,"ng-container",8),t.nI1(6,"async"),t.DNE(7,Ai,1,2,"ng-template",null,9,t.C5r),t.k0s()()(),t.DNE(9,qi,2,1,"div",10),t.k0s()),2&n){const e=a.ngIf,i=t.sdS(8),o=t.XpG();t.R7$(2),t.Y8G("ngIf",e.activeImages&&e.activeImages.length>1),t.R7$(3),t.Y8G("ngIf",t.bMT(6,4,o.hoverImage$))("ngIfElse",i),t.R7$(4),t.Y8G("ngIf",o.product&&e.activeImages&&e.activeImages.length>1)}}const Qi=function(){return["full-width full-height"]};function Ki(n,a){1&n&&(t.qex(0),t.j41(1,"div",32),t.nrm(2,"app-skeleton",33),t.k0s(),t.bVm()),2&n&&(t.R7$(2),t.Y8G("useClasses",t.lJ4(1,Qi)))}const Zi=function(){return[1,2,3,4,5]};function to(n,a){1&n&&t.DNE(0,Ki,3,2,"ng-container",31),2&n&&t.Y8G("ngForOf",t.lJ4(1,Zi))}function eo(n,a){1&n&&(t.qex(0),t.nrm(1,"div",34),t.bVm())}const no=function(){return[0,0,0]};function io(n,a){1&n&&t.DNE(0,eo,2,0,"ng-container",31),2&n&&t.Y8G("ngForOf",t.lJ4(1,no))}const oo=function(n,a,e,i){return{thumbnailMessage:n,standardImages:a,premiumImages:e,activeImages:i}};let ao=(()=>{class n{constructor(e,i,o){this.imageSyncService=e,this.dialog=i,this.windowRef=o,this.selectedThumbnail=0,this.premiumImages$=this.imageSyncService.premiumImages$.pipe(),this.standardImages$=this.imageSyncService.standardImages$.pipe(),this.videos$=this.imageSyncService.videos$,this.hoverImage$=(0,A.z)([this.imageSyncService.hoverSkid$,this.imageSyncService.skidImageMap$]).pipe((0,d.T)(([s,p])=>s&&s in p&&p[s].length?p[s][0]:null)),this.activeImages$=(0,A.z)([this.imageSyncService.activeImages$,this.videos$]).pipe((0,d.T)(([s,p])=>s.concat(p))),this.videoImageData$=(0,A.z)([this.activeImages$,this.imageSyncService.videos$]).pipe((0,y.t)({bufferSize:1,refCount:!0})),this.thumbnailMessage$=this.videoImageData$.pipe((0,d.T)(([s,p])=>{const f=p?.length||0;return[s?.length||0,f]}),(0,d.T)(([s,p])=>this.getMoreMessage(s,p)))}getMoreMessage(e,i){const o=i+e-5;return o?i>0&&e>5?`+ ${e-5} more <br>& video`:i>0?`+ ${o} more video`:`+ ${o} more`:""}ngOnInit(){}trackThumbnailsFn(e,i){return e}trackByCarouselFn(e,i){return e}hoverThumbnail(e){this.selectedThumbnail=e;const i=this.carouselImages.toArray();i&&i[e]&&i[e].nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})}openMediaDialog(e){this.windowRef&&this.windowRef.innerWidth>=976&&this.dialog.open(bt,{width:"100%",data:{product:this.product,activeTab:0,selectedImageIndex:e}})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(G),t.rXU(g.bZ),t.rXU(Gt.jf))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-gallery2"]],viewQuery:function(i,o){if(1&i&&t.GBs(Ri,5),2&i){let s;
1t.mGM(s=t.lsd())&&(o.carouselImages=s)}},inputs:{product:"product"},decls:9,vars:14,consts:[["class","col desktop-sticky",4,"ngIf"],["thumbnailSkeleton",""],["skeleton",""],[1,"col","desktop-sticky"],[1,"row","gap_20"],["class","thumbnail-container",4,"ngIf"],[1,"col","full-width","align-center-mobile"],[1,"carousel","carousel-size","hide-scrollbar"],[4,"ngIf","ngIfElse"],["mainImageCarousel",""],["class","row justify-center gap_5 pb_20 show-mobile-flex mt_10",4,"ngIf"],[1,"thumbnail-container"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"thumbnail-contents","relative-position","pointer",2,"display","inline-block","max-width","100px",3,"mouseenter","click"],["width","100","height","100","style","max-width: 100px;",3,"src","ngClass",4,"ngIf"],["sizes","100px","loadingStrategy","lazy",3,"widths","alt","classDict","baseImage","ngStyleVar",4,"ngIf"],["class","overlay-text mat-subtitle-2","style","max-width: 90%;",3,"innerHTML",4,"ngIf"],["width","100","height","100",2,"max-width","100px",3,"src","ngClass"],["sizes","100px","loadingStrategy","lazy",3,"widths","alt","classDict","baseImage","ngStyleVar"],[1,"overlay-text","mat-subtitle-2",2,"max-width","90%",3,"innerHTML"],[1,"carousel-image"],["carouselImage",""],["sizes","(max-width:559px) 100vw, (max-width:665px) 300px, (max-width:749px) 350px, (max-width:849px) 250px, (max-width:989px) 300px, (max-width:1159px) 350px, 555px",3,"classDict","baseImage","isDataSrc","widths"],[4,"ngIf"],[1,"carousel-image",2,"position","relative","top","0","left","0"],["fill","","sizes","(max-width:559px) 100vw, (max-width:665px) 300px, (max-width:749px) 350px, (max-width:849px) 250px, (max-width:989px) 300px, (max-width:1159px) 350px, 555px","ngSrcset","300w, 400w, 500w, 600w, 700w, 800w, 900w, 1000w, 1100w, 1200w, 1300w, 1400w, 1500w, 2500w",2,"aspect-ratio","1 !important",3,"alt","ngSrc","priority","click"],["style","aspect-ratio: 1 !important; position: absolute; top: 0; left: 0;","fill","","sizes","(max-width:559px) 100vw, (max-width:665px) 300px, (max-width:749px) 350px, (max-width:849px) 250px, (max-width:989px) 300px, (max-width:1159px) 350px, 555px","ngSrcset","300w, 400w, 500w, 600w, 700w, 800w, 900w, 1000w, 1100w, 1200w, 1300w, 1400w, 1500w, 2500w",3,"ngSrc","alt","click",4,"ngIf"],["fill","","sizes","(max-width:559px) 100vw, (max-width:665px) 300px, (max-width:749px) 350px, (max-width:849px) 250px, (max-width:989px) 300px, (max-width:1159px) 350px, 555px","ngSrcset","300w, 400w, 500w, 600w, 700w, 800w, 900w, 1000w, 1100w, 1200w, 1300w, 1400w, 1500w, 2500w",2,"aspect-ratio","1 !important","position","absolute","top","0","left","0",3,"ngSrc","alt","click"],[1,"row","justify-center","gap_5","pb_20","show-mobile-flex","mt_10"],["class","dot",4,"ngFor","ngForOf"],[1,"dot"],[4,"ngFor","ngForOf"],[1,"thumbnail-contents","relative-position","thumbnail",2,"display","inline-block"],[3,"useClasses"],[1,"skeleton"]],template:function(i,o){1&i&&(t.DNE(0,Wi,10,6,"div",0),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async"),t.DNE(5,to,1,2,"ng-template",null,1,t.C5r),t.DNE(7,io,1,2,"ng-template",null,2,t.C5r)),2&i&&t.Y8G("ngIf",t.ziG(9,oo,t.bMT(1,1,o.thumbnailMessage$),t.bMT(2,3,o.standardImages$),t.bMT(3,5,o.premiumImages$),t.bMT(4,7,o.activeImages$)))},dependencies:[l.YU,l.Sq,l.bT,l.kt,nt.N,B.L,l.Jj],styles:[".thumbnail-container[_ngcontent-%COMP%]{min-height:400px;max-height:560px;height:40vw;display:flex;flex-direction:column;gap:10px}.thumbnail-contents[_ngcontent-%COMP%]:hover{transition:filter 45ms;filter:drop-shadow(1px 2px 3px gray)}.overlay[_ngcontent-%COMP%]{filter:brightness(30%)}.overlay[_ngcontent-%COMP%]:hover{filter:drop-shadow(1px 2px 3px gray) brightness(30%)}.thumbnail[_ngcontent-%COMP%]{padding:4px;min-height:calc(400px / 6.2);max-height:calc(560px / 6.2);height:calc(40vw / 6.2);aspect-ratio:1;margin:0 auto;object-fit:contain;object-position:left;cursor:pointer}.thumbnail.selected-gallery[_ngcontent-%COMP%], .thumbnail.selected[_ngcontent-%COMP%]{outline:black solid 1px}.thumbnail.selected[_ngcontent-%COMP%]:hover{outline:unset}.overlay-text[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);text-align:center;color:#fff;font-weight:700}.carousel-size[_ngcontent-%COMP%]{width:37vw;max-width:555px;aspect-ratio:1}.carousel-image[_ngcontent-%COMP%]{scroll-snap-align:start;scroll-snap-stop:always;flex-shrink:0;width:100%;transform-origin:center center;transform:scale(1);transition:transform .5s;position:relative;display:flex}.hide-scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;width:0;height:0}.hide-scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none;width:0;height:0}.hide-scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-track{display:none;background:transparent}@media (max-width: 1159px){.thumbnail-container[_ngcontent-%COMP%]{display:none}.carousel-size[_ngcontent-%COMP%]{width:100vw;max-width:unset;aspect-ratio:unset;gap:0}.carousel-image[_ngcontent-%COMP%]{width:37vw;padding-bottom:30px;aspect-ratio:1;margin-left:20px}.desktop-sticky[_ngcontent-%COMP%]{position:unset;top:0}}@media (max-width: 690px){.align-center-mobile[_ngcontent-%COMP%]{align-items:center}.carousel-size[_ngcontent-%COMP%]{width:95vw}.carousel-image[_ngcontent-%COMP%]{width:100%;padding-bottom:10px;align-items:center}.dot[_ngcontent-%COMP%]{height:10px;width:10px;background-color:#5670e2;border-radius:50%}}"]})}}return n})();function so(n,a){1&n&&t.nrm(0,"app-skeleton",23),2&n&&t.Y8G("height","30px")("width","40%")}function ro(n,a){1&n&&t.nrm(0,"app-skeleton",23),2&n&&t.Y8G("height","40px")("width","40%")}function co(n,a){if(1&n&&(t.j41(0,"h1",24),t.EFF(1),t.k0s()),2&n){const e=t.XpG().ngIf;t.R7$(1),t.SpI(" ",e.productData.title," ")}}function po(n,a){1&n&&t.nrm(0,"app-skeleton",23),2&n&&t.Y8G("height","20px")("width","40%")}function lo(n,a){if(1&n&&(t.j41(0,"p",25),t.EFF(1),t.k0s()),2&n){const e=t.XpG().ngIf;t.R7$(1),t.SpI(" ",e.productData.subtitle," ")}}function _o(n,a){1&n&&t.nrm(0,"app-skeleton",23),2&n&&t.Y8G("height","45px")("width","40%")}function mo(n,a){if(1&n&&(t.j41(0,"span",28),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2).ngIf;t.R7$(1),t.SpI(" | ",e.productData.subtitle,"")}}function go(n,a){if(1&n&&(t.j41(0,"p",26),t.EFF(1),t.DNE(2,mo,2,1,"span",27),t.k0s()),2&n){const e=t.XpG().ngIf;t.R7$(1),t.SpI(" ",e.productData.title," "),t.R7$(1),t.Y8G("ngIf",e.productData&&e.productData.subtitle)}}function uo(n,a){if(1&n&&t.nrm(0,"app-buy-box",29),2&n){const e=t.XpG().ngIf;t.Y8G("product",e.productData)("options",e.options)}}function fo(n,a){1&n&&t.nrm(0,"app-skeleton",23),2&n&&t.Y8G("height","735px")("width","275px")}function ho(n,a){if(1&n&&t.nrm(0,"app-features",30),2&n){const e=t.XpG().ngIf;t.Y8G("features",e.productData.features)}}function vo(n,a){if(1&n&&t.nrm(0,"app-description",8),2&n){const e=t.XpG(2).ngIf;t.Y8G("product",e.productData)}}function xo(n,a){if(1&n&&t.nrm(0,"app-product-data",33),2&n){const e=t.XpG(2).ngIf;t.Y8G("productData",e.productData.data)("supportView",e.productData.supportView)}}function Io(n,a){if(1&n&&(t.qex(0),t.DNE(1,vo,1,1,"app-description",31),t.DNE(2,xo,1,2,"app-product-data",32),t.bVm()),2&n){const e=t.XpG().ngIf;t.R7$(1),t.Y8G("ngIf",e.productData.descriptions),t.R7$(1),t.Y8G("ngIf",e.productData.data.length)}}function bo(n,a){if(1&n&&(t.nrm(0,"app-scroll-products",36),t.nI1(1,"async")),2&n){const e=t.XpG(2).ngIf,i=t.XpG();t.Y8G("title","Related products")("requestType","related")("categoryId",e.productData.categoryIds[0])("skid",t.bMT(1,4,i.skid$))}}
1function Co(n,a){if(1&n&&(t.nrm(0,"app-product-carousel",37),t.nI1(1,"async")),2&n){const e=t.XpG(2).ngIf,i=t.XpG();t.Y8G("title","Related products")("requestType","related")("skid",t.bMT(1,4,i.skid$))("categoryId",e.productData.categoryIds[0])}}function yo(n,a){if(1&n&&(t.qex(0),t.DNE(1,bo,2,6,"app-scroll-products",34),t.DNE(2,Co,2,6,"app-product-carousel",35),t.bVm()),2&n){const e=t.XpG().ngIf,i=t.XpG();t.R7$(1),t.Y8G("ngIf",!i.isDesktop&&e.productData&&e.productData.categoryIds&&e.productData.categoryIds.length),t.R7$(1),t.Y8G("ngIf",i.isDesktop&&e.productData&&e.productData.categoryIds&&e.productData.categoryIds.length)}}function wo(n,a){1&n&&t.nrm(0,"app-spinner")}function ko(n,a){if(1&n&&t.DNE(0,wo,1,0,"app-spinner",16),2&n){const e=t.XpG().ngIf;t.Y8G("ngIf",!e.showCategories)}}function Go(n,a){1&n&&(t.j41(0,"div",38),t.nrm(1,"app-skeleton",39)(2,"app-skeleton",39)(3,"app-skeleton",39)(4,"app-skeleton",39)(5,"app-skeleton",39),t.k0s())}const To=function(){return[]};function Do(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",1),t.qex(1),t.j41(2,"div",2),t.DNE(3,so,1,2,"app-skeleton",3),t.nrm(4,"app-breadcrumbs",4),t.DNE(5,ro,1,2,"app-skeleton",3),t.DNE(6,co,2,1,"h1",5),t.DNE(7,po,1,2,"app-skeleton",3),t.DNE(8,lo,2,1,"p",6),t.k0s(),t.j41(9,"div",7)(10,"div"),t.nrm(11,"app-gallery2",8),t.j41(12,"div",9),t.DNE(13,_o,1,2,"app-skeleton",3),t.DNE(14,go,3,2,"p",10),t.k0s()(),t.j41(15,"div",11),t.nrm(16,"app-details",12),t.DNE(17,uo,1,2,"app-buy-box",13),t.DNE(18,fo,1,2,"ng-template",null,14,t.C5r),t.DNE(20,ho,1,1,"app-features",15),t.k0s()(),t.DNE(21,Io,3,2,"ng-container",16),t.j41(22,"div",17,18),t.bIt("waIntersectionObservee",function(o){t.eBV(e);const s=t.sdS(23),p=t.XpG();return t.Njj(p.onIntersection(o,s))}),t.k0s(),t.bVm(),t.DNE(24,yo,3,2,"ng-container",19),t.nI1(25,"async"),t.DNE(26,ko,1,1,"ng-template",null,20,t.C5r),t.nrm(28,"div",21),t.nI1(29,"async"),t.DNE(30,Go,6,0,"div",22),t.k0s()}if(2&n){const e=a.ngIf,i=t.sdS(19),o=t.sdS(27),s=t.XpG();t.R7$(3),t.Y8G("ngIf",!e.productData),t.R7$(1),t.Y8G("isReady",!!e.productData)("breadcrumbs",(null==e.productData?null:e.productData.breadcrumbs)||t.lJ4(27,To))("brand",(null==e.productData?null:e.productData.brand)||""),t.R7$(1),t.Y8G("ngIf",!e.productData),t.R7$(1),t.Y8G("ngIf",e.productData),t.R7$(1),t.Y8G("ngIf",!e.productData),t.R7$(1),t.Y8G("ngIf",e.productData&&e.productData.subtitle),t.R7$(3),t.Y8G("product",e.productData),t.R7$(2),t.Y8G("ngIf",!e.productData),t.R7$(1),t.Y8G("ngIf",e.productData),t.R7$(2),t.Y8G("product",e.productData)("name",s.name)("skid",s.skid)("options",e.options),t.R7$(1),t.Y8G("ngIf",e.productData)("ngIfElse",i),t.R7$(3),t.Y8G("ngIf",e.productData),t.R7$(1),t.Y8G("ngIf",e.productData),t.R7$(3),t.Y8G("ngIf",t.bMT(25,23,s.showCategories$))("ngIfElse",o),t.R7$(4),t.Y8G("innerHtml",t.bMT(29,25,s.productSchema$),t.npT),t.R7$(2),t.Y8G("ngIf",!e.productData)}}const $o=function(n,a,e){return{productData:n,options:a,showCategories:e}};let Rt=(()=>{class n{getProductData(){return this.pageLoadingService.updatePageLoading(!0),this.requests.authGet("product",`/${this.skid}`,this.searchTerm?{term:this.searchTerm,...this.activatedRoute.snapshot.queryParams}:{...this.activatedRoute.snapshot.queryParams}).pipe((0,h.M)(()=>this.pageLoadingService.updatePageLoading(!1)))}availabilitySchemaValue(e){return e.isPreorder?"https://schema.org/PreOrder":e.isBackorder?"https://schema.org/BackOrder":e.prices.priceInt>0?"https://schema.org/InStock":"https://schema.org/OutOfStock"}setStandardImages(e){this.imageSyncService.standardImagesSubject.next(e.premiumData&&e.premiumData.images?e.premiumData.images:e.images)}ngOnInit(){this.platformService.isBrowser()&&this.subscriptions.add(this.resolvedProductData$.pipe((0,b.s)(1),(0,_.p)(e=>!e),(0,C.n)(()=>this.productResponseData$),(0,C.n)(e=>this.seoService.generateProductTags(e))).subscribe()),this.subscriptions.add(this.productResponseData$.pipe((0,b.s)(1),(0,h.M)(e=>this.setStandardImages(e)),(0,h.M)(e=>e&&e.premiumData&&e.premiumData.videos&&this.imageSyncService.updateVideos(e.premiumData.videos))).subscribe()),this.subscriptions.add(this.skidImageMap$.pipe((0,b.s)(1),(0,h.M)(e=>this.imageSyncService.updateSkidImageMap(e))).subscribe()),this.platformService.isBrowser()&&this.subscriptions.add(this.productResponseData$.subscribe(e=>this.analyticsService.viewProduct(e)))}constructor(e,i,o,s,p,f,x,W,I,U,Q,K){this.activatedRoute=e,this.router=i,this.requests=o,this.deviceService=s,this.pageLoadingService=p,this.imageSyncService=f,this.seoService=x,this.analyticsService=W,this.schemaService=I,this.crawlerService=U,this.platformService=Q,this.locationService=K,this.requestPrefix="REQ-",this.subscriptions=new j.yU,this.skid$=this.activatedRoute.paramMap.pipe((0,_.p)(c=>!!c.get("skid")),(0,d.T)(c=>c.get("skid")||"")),this.resolvedProductData$=this.activatedRoute.data.pipe((0,b.s)(1),(0,d.T)(c=>c.data),(0,y.t)({bufferSize:1,refCount:!0})),this.initialProductResponse$=this.resolvedProductData$.pipe((0,C.n)(c=>c?(0,Z.of)(c):this.getProductData()),(0,b.s)(1),(0,y.t)({bufferSize:1,refCount:!0})),this.updatedProductResponseData$=this.locationService.changedLocation$.pipe((0,M.i)(1),(0,_.p)(()=>this.platformService.isBrowser()),(0,h.M)(()=>this.pageLoadingService.updatePageLoading(!0)),(0,C.n)(()=>this.requests.authGet("product",`/${this.skid}`,{refresh:!0})),(0,h.M)(c=>console.log("changed location",c)),(0,_.p)(c=>!!c.title),(0,h.M)(()=>this.pageLoadingService.updatePageLoading(!1)),(0,y.t)({bufferSize:1,refCount:!0})),this.productResponseData$=(0,D.h)(this.initialProductResponse$,this.updatedProductResponseData$),this.emptyOptions$=this.productResponseData$.pipe((0,_.p)(c=>!c.options||!c.options.length)),this.optionsData$=this.skid$.pipe((0,_.p)(c=>!c.startsWith(this.requestPrefix)&&!this.crawlerService.isCrawler()&&this.platformService.isBrowser()),(0,C.n)(c=>this.requests.authGet("product",`/pro/${c}`)),(0,y.t)({bufferSize:1,refCount:!0})),this.basicOptions$=this.skid$.pipe((0,_.p)(c=>c.startsWith(this.requestPrefix)),(0,C.n)(()=>this.productResponseData$),(0,$.E)("options"),(0,y.t)({bufferSize:1,refCount:!0})),this.premiumOptions$=this.skid$.pipe((0,_.p)(c=>!c.startsWith(this.requestPrefix)),(0,C.n)(()=>(0,D.h)(this.emptyOptions$,this.optionsData$)),function Yt(n,a){const{first:e,each:i,with:o=Nt,scheduler:s=a??S.E,meta:p=null}=(0,O.v)(n)?{first:n}:"number"==typeof n?{each:n}:n;if(null==e&&null==i)throw new TypeError("No timeout provided.");return(0,w.N)((f,x)=>{let W,I,U=null,Q=0;const K=c=>{I=(0,Pt.N)(x,s,()=>{try{W.unsubscribe(),(0,R.Tg)(o({meta:p,lastValue:U,seen:Q})).subscribe(x)}catch(pt){x.error(pt)}},c)};W=f.subscribe(new Ot.H(x,c=>{I?.unsubscribe(),Q++,x.next(U=c),i>0&&K(i)},void 0,void 0,()=>{I?.closed||I?.unsubscribe(),U=null})),K(null!=e?"number"==typeof e?e:+e-s.now():i)})}({each:this.crawlerService.isCrawler()||this.platformService.isServer()?0:7e3,with:()=>this.productResponseData$}),(0,$.E)("options"),(0,b.s)(1),(0,y.t)({bufferSize:1,refCount:!0})),this.options$=(0,D.h)(this.basicOptions$,this.premiumOptions$).pipe((0,_.p)(()=>this.platformService.isBrowser())),this.productSchema$=this.productResponseData$.pipe((0,_.p)(c=>!!c.title&&!!c.images.length),(0,_.p)(c=>c.prices.priceInt>0||!!c.score&&c.score>0&&!!c.ratingCount&&c.ratingCount>0),(0,d.T)(c=>{const pt={"@type":"Offer",url:this.router.url.split("?")[0],price:c.prices.priceInt>0?(c.prices.priceInt/100).toString():"",priceCurrency:"USD",availability:this.availabilitySchemaValue(c)},Oo={"@type":"Brand",name:c.brand},k={"@context":"https://schema.org","@type":"Product",sku:c.skid,image:c.images.map(Po=>Po.image),name:c.title};return c.OptionMap.Size&&(k.size=c.OptionMap.Size),c.OptionMap.Color&&(k.color=c.OptionMap.Color),c.brand&&(k.brand=Oo),c.prices.priceInt>0&&(k.offers=pt),c.descriptions&&(k.description=c.descriptions.join(" ")),c.gtin&&(k.gtin=c.gtin),c.mpn&&(k.mpn=c.mpn),c.score&&c.score>0&&c.ratingCount&&c.ratingCount>0&&(k.aggregateRating={bestRating:100,ratingExplanation:"Snapklik calculates product scores based on a product's overall US ecommerce sales, popularity, and reviews.",ratingValue:c.score,worstRating:1,ratingCount:c.ratingCount}),k}),(0,d.T)(c=>this.schemaService.getSafeHTML([c,this.schemaService.companySchema]))),this.isDesktop=this.deviceService.isDesktop(),this.intersectionObserverSubject=ne
1w lt.B,this.showCategories$=this.intersectionObserverSubject.asObservable().pipe((0,b.s)(1)),this.skidImageMap$=this.optionsData$.pipe((0,_.p)(c=>!!c.skidImagesMap),(0,b.s)(1),(0,$.E)("skidImagesMap")),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1;try{let c;c=this.router.getCurrentNavigation()?.extras?.state,this.searchTerm=c.searchTerm}catch{}}onIntersection(e,i){e.map(o=>{o.isIntersecting&&(this.intersectionObserverSubject.next(!0),i.disconnect())})}ngOnDestroy(){this.imageSyncService.flushImageData(),this.subscriptions.unsubscribe(),this.pageLoadingService.updatePageLoading(!1)}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(m.nX),t.rXU(m.Ix),t.rXU(J.k),t.rXU(dt.Kg),t.rXU(Vt.V),t.rXU(G),t.rXU(_t.B,8),t.rXU(P.c),t.rXU(Bt.R),t.rXU(mt.c),t.rXU(X.f),t.rXU(tt.R))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-product"]],inputs:{skid:"skid",name:"name"},decls:4,vars:11,consts:[["class","page-margin","style","max-width: 1400px; padding: 0 15px 40px;",4,"ngIf"],[1,"page-margin",2,"max-width","1400px","padding","0 15px 40px"],[1,"hide-mobile-content"],[3,"height","width",4,"ngIf"],[3,"isReady","breadcrumbs","brand"],["class","mat-headline-4 title-font","style","margin: 7px 0 0;",4,"ngIf"],["class","mat-headline-5 gray subtitle-font mt_10 mb_0",4,"ngIf"],[1,"row","product-columns","gap_20",2,"margin","30px auto 40px"],[3,"product"],[1,"show-mobile-content"],["class","mb_0 px_18 fw_600",4,"ngIf"],[1,"row","rh-container","space-between","gap_20"],[1,"grow",3,"product","name","skid","options"],["class","grow",3,"product","options",4,"ngIf","ngIfElse"],["buyBoxSkeleton",""],["class","show-mobile-content",3,"features",4,"ngIf"],[4,"ngIf"],["waIntersectionObserver","","waIntersectionRootMargin","200px",1,"card-grid",3,"waIntersectionObservee"],["observer","IntersectionObserver"],[4,"ngIf","ngIfElse"],["spinner",""],[3,"innerHtml"],["class","col gap_30",4,"ngIf"],[3,"height","width"],[1,"mat-headline-4","title-font",2,"margin","7px 0 0"],[1,"mat-headline-5","gray","subtitle-font","mt_10","mb_0"],[1,"mb_0","px_18","fw_600"],["class","fw_500",4,"ngIf"],[1,"fw_500"],[1,"grow",3,"product","options"],[1,"show-mobile-content",3,"features"],[3,"product",4,"ngIf"],[3,"productData","supportView",4,"ngIf"],[3,"productData","supportView"],[3,"title","requestType","categoryId","skid",4,"ngIf"],[3,"title","requestType","skid","categoryId",4,"ngIf"],[3,"title","requestType","categoryId","skid"],[3,"title","requestType","skid","categoryId"],[1,"col","gap_30"],["width","100%","height","120px"]],template:function(i,o){1&i&&(t.DNE(0,Do,31,28,"div",0),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async")),2&i&&t.Y8G("ngIf",t.sMw(7,$o,t.bMT(1,1,o.productResponseData$),t.bMT(2,3,o.options$),t.bMT(3,5,o.showCategories$)))},dependencies:[l.bT,et.TK,et.Cw,nt.N,Lt.t,Ut.T,zt.H,Jt.m,qe,bn,yi,Si,ao,$t,l.Jj],styles:[".page-margin[_ngcontent-%COMP%]{margin:30px auto 0}app-details[_ngcontent-%COMP%]{width:60%}app-buy-box[_ngcontent-%COMP%]{width:40%}@media (max-width: 1159px){.product-columns[_ngcontent-%COMP%]{flex-direction:column;gap:25px}}@media (max-width: 690px){.rh-container[_ngcontent-%COMP%]{min-width:300px;flex-direction:column;width:100%}app-details[_ngcontent-%COMP%], app-buy-box[_ngcontent-%COMP%]{width:100%}}@media (max-width: 690px){.title-font[_ngcontent-%COMP%]{font:700 29px/37px Assistant!important}.subtitle-font[_ngcontent-%COMP%]{font:400 18px/20px Assistant!important}.page-margin[_ngcontent-%COMP%]{margin-top:10px}.product-columns[_ngcontent-%COMP%]{gap:10px}}"],changeDetection:0})}}return n})();const Ft=(n,a)=>{const e=(0,t.WQX)(_t.B),i=(0,t.WQX)(X.f);if(i.isServer()){const s=n.paramMap.get("skid");return(0,t.WQX)(J.k).transferStateGet("product","product",`/${s}`).pipe((0,_.p)(p=>!!p),(0,C.n)(p=>e.generateProductTags(p)),(0,d.T)(p=>p),(0,b.s)(1))}const o=i.getServerData("product");return o&&o.data?o.data:o};var So=r(8455);const Et=(n,a)=>{const e=(0,t.WQX)(X.f).isServerError();return!e||(0,So.H)((0,t.WQX)(m.Ix).navigate(["/e",e.toString()])).pipe((0,d.T)(()=>!1))},Ro=[{path:":name/:skid",component:Rt,pathMatch:"full",resolve:{data:Ft,isError:Et}},{path:":skid",component:Rt,pathMatch:"full",resolve:{data:Ft,isError:Et}}];let Fo=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[m.iI.forChild(Ro),m.iI]})}}return n})();var Eo=r(4187),jo=r(3978);let Mo=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[l.MD,Fo,v.YN,et.SL,Eo.G,jo.m,V.Ve,g.hM,u.tP,ct.RI,vt.fS,Tt.uc]})}}return n})()},6374:(jt,z,r)=>{r.d(z,{E:()=>j});
1var l=r(9974),m=r(4360),h=r(8750),b=r(3669),_=r(5343),C=r(9326);function j(...d){const y=(0,C.ms)(d);return(0,l.N)((Z,M)=>{const D=d.length,$=new Array(D);let S=d.map(()=>!1),O=!1;for(let w=0;w<D;w++)(0,h.Tg)(d[w]).subscribe(new m.H(M,R=>{$[w]=R,!O&&!S[w]&&(S[w]=!0,(O=S.every(b.D))&&(S=null))},_.l));Z.subscribe(new m.H(M,w=>{if(O){const R=[w,...$];M.next(y?y(...R):R)}}))})}}}]);
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.