PageSourceSearch

https://commercehq.com/cart-es2015.1e4fa51cac0a2a0bf382.js

js commercehq.com collected 2026-10-01 03:29:34 UTC 42,593 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkchq_builder=self.webpackChunkchq_builder||[]).push([["cart","projects_builder-app_src_app_base_components_link_link_component_ts","projects_builder-app_src_app_base_components_icon_icon_component_ts"],{72467:function(t,e,n){n.d(e,{C:function(){return f}});var s=n(8040),i=n(73673),r=n(25755),o=n(66614),c=n(74788),a=n(9439),u=n(12057),p=n(88276);function l(t,e){if(1&t&&(c.ynx(0),c.TgZ(1,"span"),c._uU(2),c.qZA(),c.BQk()),2&t){const t=c.oxw();c.xp6(2),c.Oqu(t.buttonContent)}}function d(t,e){if(1&t&&(c.ynx(0),c._UZ(1,"app-icon",2),c.BQk()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("node",t.nodeIcon)("selectable",!1)}}function h(t,e){if(1&t&&(c.ynx(0),c._UZ(1,"app-icon",2),c.TgZ(2,"span"),c._uU(3),c.qZA(),c.BQk()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("node",t.nodeIcon)("selectable",!1),c.xp6(1),c.Udp("margin-left",t.node.spaceBetween),c.xp6(1),c.Oqu(t.buttonContent)}}function g(t,e){if(1&t&&(c.ynx(0),c.TgZ(1,"span"),c._uU(2),c.qZA(),c._UZ(3,"app-icon",2),c.BQk()),2&t){const t=c.oxw();c.xp6(1),c.Udp("margin-right",t.node.spaceBetween),c.xp6(1),c.Oqu(t.buttonContent),c.xp6(1),c.Q6J("node",t.nodeIcon)("selectable",!1)}}let f=(()=>{class t extends((0,o.RJ)((0,o.fs)(Object))){constructor(t,e,n){super(),this.store$=t,this._cdr=e,this._resize=n,this.ButtonVariant=s.Wu3}get justifyContent(){return this.style.justifyContent}get buttonContent(){return this.content||this.node.content}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){this.setNodes()}setNodes(){this.store$.pipe((0,i.Ys)(s.NcE.selectBdNodeChildren(this.node.id)),(0,r.R)(this.unsubscribe$)).subscribe(t=>{this.nodeIcon=t.find(t=>t.type===s._1l.ButtonIcon),this._cdr.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(i.yh),c.Y36(c.sBO),c.Y36(a._))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-button-content"]],hostVars:2,hostBindings:function(t,e){2&t&&c.Udp("justify-content",e.justifyContent)},inputs:{node:"node",content:"content"},features:[c.qOj,c.TTD],decls:5,vars:5,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"node","selectable"]],template:function(t,e){1&t&&(c.ynx(0,0),c.YNc(1,l,3,1,"ng-container",1),c.YNc(2,d,2,2,"ng-container",1),c.YNc(3,h,4,5,"ng-container",1),c.YNc(4,g,4,5,"ng-container",1),c.BQk()),2&t&&(c.Q6J("ngSwitch",e.node.variant),c.xp6(1),c.Q6J("ngSwitchCase",e.ButtonVariant.Text),c.xp6(1),c.Q6J("ngSwitchCase",e.ButtonVariant.Icon),c.xp6(1),c.Q6J("ngSwitchCase",e.ButtonVariant.IconAndText),c.xp6(1),c.Q6J("ngSwitchCase",e.ButtonVariant.TextAndIcon))},directives:[u.RF,u.n9,p.IconComponent],styles:[""],changeDetection:0}),t})()},88276:function(t,e,n){n.r(e),n.d(e,{IconComponent:function(){return h}});var s=n(74788),i=n(8040),r=n(66614),o=n(48851),c=n(51117),a=n(9439),u=n(85740),p=n(40806),l=n(73673),d=n(49356);let h=(()=>{class t extends((0,r.rU)((0,r.so)(o.a))){constructor(t,e,n,s,i,r,o,c,a,u){super(...arguments),this._iconsService=t,this._cdr=e,this._element=n,this._redraw=s,this._renderer=i,this._resize=r,this._router=o,this._stylesRenderer=c,this.store$=a,this._platformId=u,this.selectable=!0}ngOnChanges(t){super.ngOnChanges(t),i.lMr.isNodeFieldChanged(t,"icon")&&this.isCustomIcon()&&this._iconsService.registerCustomIcon(this.node.icon)}isCustomIcon(){var t;return null===(t=this.node.icon)||void 0===t?void 0:t.startsWith("http")}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.jAN),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F0),s.Y36(p.F),s.Y36(l.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-icon"]],inputs:{node:"node",selectable:"selectable"},features:[s.qOj,s.TTD],decls:1,vars:1,consts:[[3,"svgIcon"]],template:function(t,e){1&t&&s._UZ(0,"mat-icon",0),2&t&&s.Q6J("svgIcon",e.node.icon)},directives:[d.Hw],styles:["[_nghost-%COMP%]{align-items:center;display:flex;height:1em;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}[_nghost-%COMP%]     mat-icon path{fill:currentColor}"],changeDetection:0}),t})()},17243:function(t,e,n){n.d(e,{c:function(){return _}});var s=n(12057),i=n(74788),r=n(8040),o=n(67764),c=n(76889),a=n(20870),u=n(74703),p=n(25755),l=n(66614),d=n(9439),h=n(27289);const g=["image"],f=["app-image",""],m=function(){return{rootMargin:"40%"}};let _=(()=>{class t extends((0,l.RJ)((0,l.fs)(Object))){constructor(t,e,n,s,i){super(),this._element=t,this._renderer=e,this._cdr=n,this._resize=s,this._platformId=i,this._scale$=new c.x}ngOnChanges(t){super.ngOnChanges(t),r.lMr.isSomeNodeFieldsChanged(t,["scale","scaleX","scaleY"])&&this.setTransform(),t.binding&&!t.binding.isFirstChange()&&(this.binding?((0,o.Z)(this.binding)||r.lMr.isFieldChanged(t,"binding","path"))&&(this.initImage(),this.initLargeImage()):this.initImage()),r.lMr.isNodeFieldChangedAfterInit(t,"scale")&&this._scale$.next(this.node.scale)}setTransform(){const{scale:t,scaleX:e,scaleY:n}=this.node;this.imageRef.nativeElement.style.transform=r.LkB.getTransform(t,e,n)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){this.initImage(),this.initResizeImage(),this.onScaleChange()}initImage(){(0,r.wXy)(this.binding)?(0,r.llt)(this.binding)?this.disableLoading||(this.setSrc((0,r.aT6)(this.binding,100)),this.imageLoading=!0,this._cdr.markForCheck()):this.setSrc(this.binding.path):this.setSrc(this.binding||"assets/images/empty-image.svg")}setSrc(t,e){this._renderer.setAttribute(this.imageRef.nativeElement,"src",t),e?this._renderer.setAttribute(this.imageRef.nativeElement,"srcset",e):this._renderer.removeAttribute(this.imageRef.nativeElement,"srcset")}initResizeImage(){this.style$.pipe((0,a.G)(),(0,u.b)(300),(0,p.R)(this.unsubscribe$)).subscribe(([t,e])=>{(null==t?void 0:t.width)!==e.width&&this.initLargeImage()})}onScaleChange(){this._scale$.pipe((0,u.b)(300),(0,p.R)(this.unsubscribe$)).subscribe(()=>{this.loadLargeImage(this.binding)})}initLargeImage(){(0,r.dWj)(this.binding)&&(0,s.NF)(this._platformId)&&this.loadLargeImage(this.binding)}loadLargeImage(t){var e;const n=(null===(e=this.node)||void 0===e?void 0:e.scale)||1,s=this._element.nativeElement.getBoundingClientRect().width*n,i=(0,r.aT6)(t,s),o=(0,r.aT6)(t,2*s)+" 2x",c=new Image;c.src=i,c.srcset=o,c.onload=()=>{this.setSrc(c.src,c.srcset),this.imageLoading=!1,this._cdr.markForCheck()}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(d._),i.Y36(i.Lbi))},t.\u0275cmp=i.Xpm({type:t,selectors:[["","app-image",""]],viewQuery:function(t,e){if(1&t&&i.Gf(g,7),2&t){let t;i.iGM(t=i.CRH())&&(e.imageRef=t.first)}},inputs:{binding:"binding",disableLoading:"disableLoading",node:"node"},features:[i.qOj,i.TTD],attrs:f,decls:2,vars:4,consts:[["alt","Image",3,"deferLoadOptions","deferLoad"],["image",""]],template:function(t,e){1&t&&(i.TgZ(0,"img",0,1),i.NdJ("deferLoad",function(){return e.initLargeImage()}),i.qZA()),2&t&&(i.ekj("loading",e.imageLoading&&!e.disableLoading),i.Q6J("deferLoadOptions",i.DdM(3,m)))},directives:[h.F],styles:["[_nghost-%COMP%]{display:block;overflow:hidden}img[_ngcontent-%COMP%]{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform 80ms;width:100%}img.loading[_ngcontent-%COMP%]:not(.disable-loading){filter:blur(2px)}"],changeDetection:0}),t})()},67895:function(t,e,n){n.d(e,{N:function(){return f}});var s=n(67764),i=n(66614),r=n(74788),o=n(73673),c=n(85740),a=n(12057);function u(t,e){1&t&&r.GkF(0)}function p(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"a",3),r.NdJ("click",function(e){return r.CHM(t),r.oxw().onClick(e)})("mousedown",function(e){return r.CHM(t),r.oxw().onMousedown(e)}),r.YNc(1,u,1,0,"ng-container",4),r.qZA()}if(2&t){const t=r.oxw(),e=r.MAs(4);r.Q6J("href",t.href,r.LSH)("target",t.preparedTarget),r.xp6(1),r.Q6J("ngTemplateOutlet",e)}}function l(t,e){1&t&&r.GkF(0)}function d(t,e){if(1&t&&r.YNc(0,l,1,0,"ng-container",4),2&t){r.oxw();const t=r.MAs(4);r.Q6J("ngTemplateOutlet",t)}}function h(t,e){1&t&&r.Hsn(0)}const g=["*"];let f=(()=>{class t extends((0,i.so)((0,i.fs)(Object))){constructor(t,e){super(),this.store$=t,this._router=e,this.isString=s.Z,this.sideways=!1}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){this.setDesignMode()}onClick(t){const e=/http[s]?/.test(this.href);if(this.isDesignMode)t.preventDefault();else if(!e&&(t.preventDefault(),this.href)){if(this.sideways&&this.isSidewaysMovement(t))return;"_blank"===this.target?window.open(this.href,"_blank"):this._router.navigateByUrl(this.href).
1catch()}}isSidewaysMovement(t){const e=t.clientY;return Math.abs(this._startPositionX-t.clientX)>10||Math.abs(this._startPositionY-e)>10}onMousedown(t){this._startPositionX=t.clientX,this._startPositionY=t.clientY}get preparedTarget(){return this.target||""}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.yh),r.Y36(c.F0))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-link"]],inputs:{href:"href",sideways:"sideways",target:"target"},features:[r.qOj],ngContentSelectors:g,decls:5,vars:2,consts:[["class","button-link",3,"href","target","click","mousedown",4,"ngIf","ngIfElse"],["noLink",""],["content",""],[1,"button-link",3,"href","target","click","mousedown"],[4,"ngTemplateOutlet"]],template:function(t,e){if(1&t&&(r.F$t(),r.YNc(0,p,2,3,"a",0),r.YNc(1,d,1,1,"ng-template",null,1,r.W1O),r.YNc(3,h,1,0,"ng-template",null,2,r.W1O)),2&t){const t=r.MAs(2);r.Q6J("ngIf",e.isString(e.href))("ngIfElse",t)}},directives:[a.O5,a.tP],styles:["[_nghost-%COMP%]{width:100%}.button-link[_ngcontent-%COMP%]{color:inherit;cursor:pointer;outline:none;text-decoration:none}"],changeDetection:0}),t})()},90278:function(t,e,n){n.d(e,{B:function(){return g}});var s=n(66614),i=n(74788),r=n(73673),o=n(12057),c=n(82751),a=n(67764),u=n(97657),p=n(36532),l=(0,u.Z)(function(t,e,n){return t+(n?" ":"")+(0,p.Z)(e)});let d=(()=>{class t{constructor(){}transform(t){if(!(0,a.Z)(t))throw new TypeError(`Pipe startCase expected string but get "${typeof t}"`);return l(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"startCase",type:t,pure:!0}),t})();function h(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"app-b-empty-case",1),i.TgZ(1,"span"),i._uU(2),i.ALo(3,"startCase"),i.TgZ(4,"a",2),i.NdJ("click",function(e){return i.CHM(t),i.oxw().onLinkClick(e)}),i._uU(5,"Apps Store"),i.qZA(),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(2),i.hij(" Install ",i.lcZ(3,2,t.appName)," in "),i.xp6(2),i.Q6J("href",t.link,i.LSH)}}let g=(()=>{class t extends((0,s.so)((0,s.fs)(Object))){constructor(t){super(),this.store$=t,this.link="/admin/apps"}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){}onLinkClick(t){t.preventDefault(),window.open(this.link)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.yh))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-b-apps-placeholder"]],inputs:{appName:"appName"},features:[i.qOj],decls:2,vars:3,consts:[["icon","elem24:install",4,"ngIf"],["icon","elem24:install"],["target","_blank",3,"href","click"]],template:function(t,e){1&t&&(i.YNc(0,h,6,4,"app-b-empty-case",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.isDesignMode$))},directives:[o.O5,c.x],pipes:[o.Ov,d],styles:["[_nghost-%COMP%]{align-self:center;display:block;flex-grow:1;justify-self:center;min-width:100%}"],changeDetection:0}),t})()},25125:function(t,e,n){n.r(e),n.d(e,{CartDiscountsRowComponent:function(){return I},CartItemImageComponent:function(){return k},CartItemRemoveButtonComponent:function(){return N},CartItemTitleComponent:function(){return D},CartItemsRowComponent:function(){return X},CartModule:function(){return jt},CartQuantitySelectorButtonComponent:function(){return V},CartTableComponent:function(){return st},CheckoutButtonComponent:function(){return ct},CheckoutTimerComponent:function(){return Bt},SecurityBadgeComponent:function(){return $t}});var s=n(74788),i=n(8040),r=n(5207),o=n(48851),c=n(51117),a=n(9439),u=n(40806),p=n(73673),l=n(12057),d=n(86550),h=n(13027),g=n(86370),f=n(9447);function m(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"app-element-container",4),s._UZ(2,"app-drop-placeholder"),s.BQk()),2&t){const t=e.$implicit,n=s.oxw(3);s.xp6(1),s.Q6J("item",t)("bindSource",n.cartDiscount)}}function _(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"app-drop-placeholder"),s.YNc(2,m,3,2,"ng-container",3),s.BQk()),2&t){const t=s.oxw().ngIf,e=s.oxw();s.xp6(2),s.Q6J("ngForOf",t)("ngForTrackBy",e.track)}}function b(t,e){if(1&t&&(s.ynx(0),s.YNc(1,_,3,2,"ng-container",2),s.BQk()),2&t){const t=e.ngIf;s.oxw();const n=s.MAs(3);s.xp6(1),s.Q6J("ngIf",t.length)("ngIfElse",n)}}function y(t,e){1&t&&s._UZ(0,"app-b-empty")}let O=(()=>{class t extends d.v{constructor(t,e,n,s,i,r,o,c){super(...arguments),this._cdr=t,this._element=e,this._redraw=n,this._renderer=s,this._resize=i,this._stylesRenderer=r,this.store$=o,this._platformId=c}track(t,e){return e.id||t}
1ngOnInit(){super.ngOnInit(),this.nodes$=this.store$.select(i.NcE.selectBdNodeChildren(this.node.id))}ngOnDestroy(){super.ngOnDestroy()}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-discount"]],inputs:{node:"node",cartDiscount:"cartDiscount"},features:[s.qOj,s.TTD],decls:4,vars:3,consts:[[4,"ngIf"],["empty",""],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"item","bindSource"]],template:function(t,e){1&t&&(s.YNc(0,b,2,2,"ng-container",0),s.ALo(1,"async"),s.YNc(2,y,1,0,"ng-template",null,1,s.W1O)),2&t&&s.Q6J("ngIf",s.lcZ(1,1,e.nodes$))},directives:[l.O5,h.K,l.sg,g.V,f.f],pipes:[l.Ov],styles:["[_nghost-%COMP%]{position:relative;overflow:auto}"],changeDetection:0}),t})();function C(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"app-cart-discount",2),s.BQk()),2&t){const t=e.$implicit,n=s.oxw().ngIf;s.xp6(1),s.Q6J("node",n)("cartDiscount",t)}}function Y(t,e){if(1&t&&(s.ynx(0),s.YNc(1,C,2,2,"ng-container",1),s.BQk()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.bindSource.discounts)("ngForTrackBy",t.track)}}let I=(()=>{class t extends o.a{constructor(t,e,n,s,i,r,o,c){super(...arguments),this._cdr=t,this._element=e,this._redraw=n,this._renderer=s,this._resize=i,this._stylesRenderer=r,this.store$=o,this._platformId=c}track(t){return t}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit(),this.nodeCartDiscount$=this.store$.select(i.NcE.selectBdNodeChildren(this.node.id)).pipe((0,r.U)(t=>t.find(t=>t.type===i._1l.CartTableDiscount)))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-discounts-row"]],inputs:{node:"node",bindSource:"bindSource"},features:[s.qOj,s.TTD],decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","cartDiscount"]],template:function(t,e){1&t&&(s.YNc(0,Y,2,2,"ng-container",0),s.ALo(1,"async")),2&t&&s.Q6J("ngIf",s.lcZ(1,1,e.nodeCartDiscount$))},directives:[l.O5,l.sg,O],pipes:[l.Ov],styles:[""],changeDetection:0}),t})();var x=n(67895),w=n(17243);let k=(()=>{class t extends o.a{constructor(t,e,n,s,i,r,o,c){super(...arguments),this._cdr=t,this._element=e,this._redraw=n,this._renderer=s,this._resize=i,this._stylesRenderer=r,this.store$=o,this._platformId=c}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-item-image"]],inputs:{bindSource:"bindSource",node:"node"},features:[s.qOj,s.TTD],decls:2,vars:2,consts:[[3,"href"],["app-image","",3,"binding"]],template:function(t,e){1&t&&(s.TgZ(0,"app-link",0),s._UZ(1,"div",1),s.qZA()),2&t&&(s.Q6J("href","/product/"+e.bindSource.product_seo_url),s.xp6(1),s.Q6J("binding",e.bindSource.image))},directives:[x.N,w.c],styles:[""],changeDetection:0}),t})();var v=n(27007),T=n(25755),B=n(34689),S=n(74294),Z=n(66614),Q=n(72467);let N=(()=>{class t extends((0,Z.R0)(o.a)){constructor(t,e,n,s,i,r,o,c,a){super(...arguments),this._cart=t,this._cdr=e,this._element=n,this._redraw=s,this._renderer=i,this._resize=r,this._stylesRenderer=o,this.store$=c,this._platformId=a}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit(),this.clickAction.pipe((0,T.R)(this.unsubscribe$)).subscribe(()=>this.removeCartItem())}removeCartItem(){if(this.bindSource&&this.bindSource.id){const t=this.bindSource.id;this._cart.cart$.pipe((0,B.h)(t=>!!t),(0,S.q)(1)).subscribe(e=>{const n=e.items.filter(e=>e.id!==t).map(t=>(0,v.Z)(t,["id","quantity"]));this._cart.updateCartItems(n).subscribe()})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.NiE),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-item-remove-button"]],inputs:{node:"node",bindSource:"bindSource"},features:[s.qOj,s.TTD],decls:1,vars:1,consts:[[3,"node"]],template:function(t,e){1&t&&s._UZ(0,"app-button-content",0),2&t&&s.Q6J("node",e.no
1de)},directives:[Q.C],styles:[".button[_ngcontent-%COMP%], [_nghost-%COMP%]{display:block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.button_disabled[class*=disabled][_ngcontent-%COMP%]{cursor:default;opacity:.5}.button[_ngcontent-%COMP%] > app-button-content[_ngcontent-%COMP%], [_nghost-%COMP%] > app-button-content[_ngcontent-%COMP%]{display:flex;align-items:inherit;justify-content:inherit;width:100%;height:100%}"],changeDetection:0}),t})(),D=(()=>{class t extends o.a{constructor(t,e,n,s,i,r,o,c){super(...arguments),this._cdr=t,this._element=e,this._redraw=n,this._renderer=s,this._resize=i,this._stylesRenderer=r,this.store$=o,this._platformId=c}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-item-title"]],inputs:{bindSource:"bindSource",node:"node"},features:[s.qOj,s.TTD],decls:3,vars:2,consts:[[3,"href"]],template:function(t,e){1&t&&(s.TgZ(0,"app-link",0),s.TgZ(1,"p"),s._uU(2),s.qZA(),s.qZA()),2&t&&(s.Q6J("href","/product/"+e.bindSource.product_seo_url),s.xp6(2),s.Oqu(e.bindSource.title))},directives:[x.N],styles:[""],changeDetection:0}),t})();var M=n(24751),q=n(99922),F=n(74703),$=n(42687);function A(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"app-element-container",5),s._UZ(2,"app-drop-placeholder"),s.BQk()),2&t){const t=e.$implicit,n=s.oxw(3);s.xp6(1),s.Q6J("bindSource",n.cartItem)("item",t)}}function U(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"app-drop-placeholder"),s.YNc(2,A,3,2,"ng-container",4),s.BQk()),2&t){const t=s.oxw().ngIf,e=s.oxw();s.xp6(2),s.Q6J("ngForOf",t)("ngForTrackBy",e.track)}}function L(t,e){if(1&t&&(s.ynx(0),s.YNc(1,U,3,2,"ng-container",3),s.BQk()),2&t){const t=e.ngIf;s.oxw();const n=s.MAs(4);s.xp6(1),s.Q6J("ngIf",t.length)("ngIfElse",n)}}function J(t,e){1&t&&s._UZ(0,"app-b-empty")}let j=(()=>{class t extends d.v{constructor(t,e,n,s,i,r,o,c,a){super(...arguments),this._cart=t,this._cdr=e,this._element=n,this._redraw=s,this._renderer=i,this._resize=r,this._stylesRenderer=o,this.store$=c,this._platformId=a}track(t,e){return e.id||t}ngOnChanges(t){var e,n,s,i;super.ngOnChanges(t),t.cartItem&&!t.cartItem.isFirstChange()&&(null===(n=null===(e=t.cartItem)||void 0===e?void 0:e.previousValue)||void 0===n?void 0:n.quantity)!==(null===(i=null===(s=t.cartItem)||void 0===s?void 0:s.currentValue)||void 0===i?void 0:i.quantity)&&this.formGroup.get("quantity").setValue(this.cartItem.quantity)}ngOnInit(){super.ngOnInit(),this.nodes$=this.store$.select(i.NcE.selectBdNodeChildren(this.node.id)),this.formGroup=new M.cw({quantity:new M.NI(this.cartItem.quantity)}),(0,l.NF)(this._platformId)&&this.formGroup.valueChanges.pipe((0,r.U)(t=>parseInt(t.quantity,10)),(0,B.h)(t=>Boolean(t)),(0,q.b)(t=>{this.cartItem.stock&&t>this.cartItem.stock&&this.formGroup.get("quantity").setValue(this.cartItem.stock)}),(0,B.h)(t=>!this.cartItem.stock||t<=this.cartItem.stock),(0,F.b)(900),(0,$.x)(),(0,T.R)(this.unsubscribe$)).subscribe(t=>{this.updateCartItem(t)})}ngOnDestroy(){super.ngOnDestroy()}updateCartItem(t){this._cart.cart$.pipe((0,B.h)(t=>!!t),(0,S.q)(1)).subscribe(e=>{const n=e.items.map(e=>{const n=(0,v.Z)(e,["id","quantity"]);return this.cartItem.id===e.id&&(n.quantity=t),n});this._cart.updateCartItems(n).subscribe()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.NiE),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-item"]],inputs:{cartItem:"cartItem",node:"node"},features:[s.qOj,s.TTD],decls:5,vars:4,consts:[[3,"formGroup"],[4,"ngIf"],["empty",""],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"bindSource","item"]],template:function(t,e){1&t&&(s.TgZ(0,"form",0),s.YNc(1,L,2,2,"ng-container",1),s.ALo(2,"async"),s.YNc(3,J,1,0,"ng-template",null,2,s.W1O),s.qZA()),2&t&&(s.Q6J("formGroup",e.formGroup),s.xp6(1),s.Q6J("ngIf",s.lcZ(2,2,e.nodes$)))},directives:[M._Y,M.JL,M.sg,l.O5,h.K,l.sg,g.V,f.f],pipes:[l.Ov],styles:["[_nghost-%COMP%]   form[_ngcontent-%COMP%]{width:100%;position:relative}"],changeDetection:0}),t})();function P(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"app-cart-item",4),s.BQk()),2&t){const t=e.$implicit,n=s.oxw(2).ngIf;s.xp6(1),s.Q6J("cartItem",t)("node",n)}}function R(t,e){if(1&t&&(s.ynx(0),s.YNc(1,P,2,2,"ng-container",3),s.BQk()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",t.bindSource.items)("ngForTrackBy",t.track)}}function E(t,e){if(1&t&&(s.ynx(0),s.YNc(1,R,2,2,"ng-container",2),s.BQk()),2&t){const t=s.oxw(),e=s.MAs(3);s.xp6(1),s.Q6J("ngIf",t.bindSource.items.length)("ngIfElse",e)}}function z(t,e){1&t&&(s.TgZ(0,"div",5),s._uU(1,"Cart items not found"),s.qZA())}let X=(()=>{class t extends o.a{constructor(t,e,n,s,i,r,o,c){super(...arguments),this._cdr=t,this._element=e,this._redraw=n,this._renderer=s,this._resize=i,this._stylesRenderer=r,this.store$=o,this._platformId=c}track(t){return t}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit(),this.nodeCartItem$=this.store$.pipe((0,p.Ys)(i.NcE.selectBdNodeChildren(this.node.id)),(0,r.U)(t=>t.find(t=>t.type===i._1l.CartTableItem)))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-items-row"]],inputs:{node:"node",bindSource:"bindSource"},features:[s.qOj,s.TTD],decls:4,vars:3,consts:[[4,"ngIf"],["empty",""],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"cartItem","node"],[1,"b-empty-case"]],template:function(t,e){1&t&&(s.YNc(0,E,2,2,"ng-container",0),s.ALo(1,"async"),s.YNc(2,z,2,0,"ng-template",null,1,s.W1O)),2&t&&s.Q6J("ngIf",s.lcZ(1,1,e.nodeCartItem$))},directives:[l.O5,l.sg,j],pipes:[l.Ov],styles:[""],changeDetection:0}),t})(),V=(()=>{class t extends((0,Z.R0)(o.a)){constructor(t,e,n,s,i,r,o,c,a){super(...arguments),this._fg=t,this._cdr=e,this._element=n,this._redraw=s,this._renderer=i,this._resize=r,this._stylesRenderer=o,this.store$=c,this._platformId=a,this.minValue=1,this.target="quantity"}get classDisabled(){return this.isDisabled}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit(),this.clickAction.pipe((0,T.R)(this.unsubscribe$)).subscribe(()=>this.onClick())}onClick(){const t=this.node.type===i._1l.CartTableItemQuantitySelectorButtonAdd?1:-1;this._fg.form.get(this.target).setValue(this.getValidValue(t))}getValidValue(t){const e=this.getFormValue()+t;return this.bindSource.stock?e>this.minValue&&e<=this.bindSource.stock?e:e<=this.minValue?this.minValue:this.bindSource.stock:e>this.minValue?e:this.minValue}getFormValue(){return parseInt(this._fg.form.get(this.target).value,10)}get isDisabled(){return this.node.type===i._1l.CartTableItemQuantitySelectorButtonSub?this.getFormValue()<=this.minValue:this.node.type===i._1l.CartTableItemQuantitySelectorButtonAdd?this.getFormValue()>=this.bindSource.stock:void 0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(M.sg),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-quantity-selector-button"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("button_disabled",e.classDisabled)},inputs:{node:"node",bindSource:"bindSource"},features:[s.qOj,s.TTD],decls:1,vars:1,consts:[[3,"node"]],template:function(t,e){1&t&&s._UZ(0,"app-button-content",0),2&t&&s.Q6J("node",e.no
1de)},directives:[Q.C],styles:[".button[_ngcontent-%COMP%], [_nghost-%COMP%]{display:block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.button_disabled[class*=disabled][_ngcontent-%COMP%]{cursor:default;opacity:.5}.button[_ngcontent-%COMP%] > app-button-content[_ngcontent-%COMP%], [_nghost-%COMP%] > app-button-content[_ngcontent-%COMP%]{display:flex;align-items:inherit;justify-content:inherit;width:100%;height:100%}"],changeDetection:0}),t})();var H=n(28678),G=n(6947);function W(t,e){1&t&&s._UZ(0,"lib-loader")}function K(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"app-element-container",4),s._UZ(2,"app-drop-placeholder"),s.BQk()),2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(1),s.Q6J("item",t)("bindSource",n.cartBinding)}}function tt(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"app-drop-placeholder"),s.YNc(2,K,3,2,"ng-container",3),s.BQk()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("ngForOf",t.nodes)("ngForTrackBy",t.track)}}function et(t,e){1&t&&(s.TgZ(0,"app-b-empty-case-live",6),s._uU(1," Your Cart is Empty "),s.qZA())}function nt(t,e){if(1&t&&s.YNc(0,et,2,0,"app-b-empty-case-live",5),2&t){const t=s.oxw();s.Q6J("ngIf",!t.loading)}}let st=(()=>{class t extends d.v{constructor(t,e,n,s,i,r,o,c,a){super(...arguments),this._cart=t,this._cdr=e,this._element=n,this._redraw=s,this._renderer=i,this._resize=r,this._stylesRenderer=o,this.store$=c,this._platformId=a}track(t,e){return e.id||t}ngOnChanges(t){super.ngOnChanges(t)}ngOnInit(){super.ngOnInit(),this._cart.cart$.pipe((0,B.h)(t=>!!t),(0,T.R)(this.unsubscribe$)).subscribe(t=>{this.cartBinding=this.createCartBinding(t),this._cdr.markForCheck()}),this._cart.cartLoading$.pipe((0,T.R)(this.unsubscribe$)).subscribe(t=>{this.loading=t,this._cdr.markForCheck()}),this.store$.select(i.NcE.selectBdNodeChildren(this.node.id)).pipe((0,T.R)(this.unsubscribe$)).subscribe(t=>{this.nodes=t,this._cdr.markForCheck()})}ngOnDestroy(){super.ngOnDestroy()}createCartBinding(t){return{items:t.items.map(t=>({id:t.id,title:t.title,price:t.price,quantity:t.quantity,subtotal:t.price*t.quantity,image:t.image?{path:t.image,max_size:t.image_max_size}:null,product_seo_url:t.product_seo_url,_variant:t.variant?t.variant.variant.join(" / "):null,stock:t.stock})),discounts:[...t.discounts],total:(()=>{let e=t.items.reduce((t,e)=>t+e.price*e.quantity,0);return e=t.discounts.reduce((t,e)=>t-e.value,e),e})()}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.NiE),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-cart-table"]],inputs:{node:"node"},features:[s.qOj,s.TTD],decls:4,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["empty",""],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"item","bindSource"],["icon","elem24:cart",4,"ngIf"],["icon","elem24:cart"]],template:function(t,e){if(1&t&&(s.YNc(0,W,1,0,"lib-loader",0),s.YNc(1,tt,3,2,"ng-container",1),s.YNc(2,nt,1,1,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(3);s.Q6J("ngIf",!0===e.loading),s.xp6(1),s.Q6J("ngIf",null==e.cartBinding||null==e.cartBinding.items?null:e.cartBinding.items.length)("ngIfElse",t)}},directives:[l.O5,H.R,h.K,l.sg,g.V,G.E],styles:["[_nghost-%COMP%]{position:relative}"],changeDetection:0}),t})();var it=n(85740),rt=n(94645);const ot=["app-checkout-button",""];let ct=(()=>{class t extends((0,Z.R0)(o.a)){constructor(t,e,n,s,r,o,c,a,u,p){super(...arguments),this._router=t,this._pixelLoader=e,this._cdr=n,this._element=s,this._redraw=r,this._renderer=o,this._resize=c,this._stylesRenderer=a,this.store$=u,this._platformId=p,this.href=i.lOj}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit(),this.clickAction.pipe((0,T.R)(this.unsubscribe$)).subscribe(t=>this.onClick(t))}onClick(t){return t.preventDefault(),this._router.navigateByUrl(i.lOj).catch(),this._pixelLoader.runPixelsCode(this.node.pixels),!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(it.F0),s.Y36(rt.y),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["a","app-checkout-button",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("href",e.href,s.LSH)},inputs:{node:"node"},features:[s.qOj,s.TTD],attrs:ot,decls:1,vars:1,consts:[[3,"node"]],template:function(t,e){1&t&&s._UZ(0,"app-button-content",0),2&t&&s.Q6J("node",e.no
1de)},directives:[Q.C],styles:[".button[_ngcontent-%COMP%], [_nghost-%COMP%]{display:block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.button_disabled[class*=disabled][_ngcontent-%COMP%]{cursor:default;opacity:.5}.button[_ngcontent-%COMP%] > app-button-content[_ngcontent-%COMP%], [_nghost-%COMP%] > app-button-content[_ngcontent-%COMP%]{display:flex;align-items:inherit;justify-content:inherit;width:100%;height:100%}"],changeDetection:0}),t})();var at=n(71598),ut=n(26902),pt=n(77844),lt=n(41964),dt=n(21438),ht=n(31992),gt=n(37540),ft=n(97008),mt=n(84259),_t=n(74058),bt=n(82751),yt=n(90278),Ot=n(32833);const Ct=["noApp"];function Yt(t,e){if(1&t&&(s.ynx(0),s._UZ(1,"div",4),s.BQk()),2&t){const t=s.oxw(3).ngIf,e=s.oxw(2);s.xp6(1),s.Udp("background-color",t.settings.background_color)("border-color",t.settings.border_color)("border-width",t.settings.border_size,"px")("color",t.settings.text_color),s.Q6J("safeHtml",e.timeLeft)}}function It(t,e){if(1&t&&(s.ynx(0),s.YNc(1,Yt,2,9,"ng-container",0),s.BQk()),2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("ngIf",!t.isHidden||t.isDesignMode)}}function xt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,It,2,1,"ng-container",0),s.BQk()),2&t){const t=s.oxw().ngIf,e=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.time_left||e.isDesignMode)}}function wt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,xt,2,1,"ng-container",3),s.BQk()),2&t){const t=e.ngIf;s.oxw();const n=s.MAs(4),i=s.oxw();s.xp6(1),s.Q6J("ngIf",i.isShownStatus(t.settings.status))("ngIfElse",n)}}function kt(t,e){if(1&t&&(s.TgZ(0,"app-b-empty-case",5),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.hij(" The timer won't be shown in \"",t.CheckoutTimerStatus[t.currentStatus],'" mode ')}}function vt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,wt,2,2,"ng-container",0),s.ALo(2,"async"),s.YNc(3,kt,2,1,"ng-template",null,2,s.W1O),s.BQk()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,t.checkoutTimer$))}}function Tt(t,e){if(1&t&&s._UZ(0,"app-b-apps-placeholder",6),2&t){const t=s.oxw();s.Q6J("appName",t.AppName.CheckoutTimer)("node",t.node)}}let Bt=(()=>{class t extends((0,Z.so)(o.a)){constructor(t,e,n,s,r,o,c,a,u,p,l,d,h){super(...arguments),this._fes=t,this._stabilize=e,this._timer=n,this._vcr=s,this._zone=r,this._cdr=o,this._element=c,this._redraw=a,this._renderer=u,this._resize=p,this._stylesRenderer=l,this.store$=d,this._platformId=h,this.AppName=i.lWU,this.CheckoutTimerStatus=i.yYS,this.isHidden=!1,this.timeLeft=""}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit(),this.isAppInstalled=this._fes.apps.includes(i.lWU.CheckoutTimer),this.isAppInstalled?(this._isRunning$=this.store$.pipe((0,p.Ys)(i.I6e.$L),(0,q.b)(t=>this._isDesignMode=t),(0,r.U)(t=>!t)),this.setStatus(),this.initCheckoutTimer(),this.setDesignMode()):this._vcr.createEmbeddedView(this._placeholder)}setStatus(){this.store$.pipe((0,p.Ys)(i.$2Q.selectActivePage),(0,S.q)(1)).subscribe(t=>{switch(t.page_url.slice(1)){case i.lOj.slice(1):this.currentStatus=i.yYS.Checkout;break;case"cart":this.currentStatus=i.yYS.Cart}})}initCheckoutTimer(){this.isAppInstalled&&(this.checkoutTimer$=this._timer.checkoutTimer$,this.initZeroTimer(),(0,l.NF)(this._platformId)&&(this._timer.getCheckoutTimer().subscribe(),this.setMessage(),this._isRunning$.pipe((0,dt.T)(1),(0,T.R)(this.unsubscribe$)).subscribe(()=>this.updateCheckoutTimer())))}setMessage(){(0,at.a)([this.checkoutTimer$,this._isRunning$,this._stabilize.isStable]).pipe((0,ht.Q)((0,i.srW)(this._zone,ut.z)),(0,B.h)(([t])=>Boolean(t)),(0,gt.w)(([,t])=>t?(0,pt.H)(0,1e3):(0,lt.of)(0)),(0,ft.M)(this.checkoutTimer$),(0,T.R)(this.unsubscribe$),(0,ht.Q)((0,i.ULG)(this._zone,ut.z))).subscribe(([t,e])=>{this.timeIteration(t,e)})}timeIteration(t,e){const n=e.time_left-t;this._isDesignMode?this.setTimeLeft(e.settings.text,n):n>0?(this.setTimeLeft(e.settings.text,n),this.repeatedlyUpdate(t)):this.onTimeExpiring(e.settings.on_expire),this._cdr.detectChanges(),this._cdr.markForCheck()}setTimeLeft(t,e){const n=mt.n.secondsToTime(e);this.timeLeft=t.replace("{message}",n).replace("` minutes `",n)}repeatedlyUpdate(t,e=30){t>=e&&t%e==0&&this.updateCheckoutTimer()}updateCheckoutTimer(){this._timer.getCheckoutTimer(!1).subscribe()}onTimeExpiring(t){switch(t){case i.eNT.Hide:this.isHidden=!0;break;case i.eNT.Reset:this.updateCheckoutTimer();break;default:throw new Error(`Unknown on_expire value "${t}"`)}}initZeroTimer(){this.checkoutTimer$.pipe((0,B.h)(t=>Boolean(t)),(0,S.q)(1)).subscribe(t=>{this.timeIteration(0,t)})}isShownStatus(t){return t===i.yYS.CheckoutAndCart||this.currentStatus===t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.lDq),s.Y36(i.E12),s.Y36(i.fWh),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-checkout-timer"]],viewQuery:function(t,e){if(1&t&&s.Gf(Ct,7),2&t){let t;s.iGM(t=s.CRH())&&(e._placeholder=t.first)}},inputs:{node:"node"},features:[s.qOj,s.TTD],decls:3,vars:1,consts:[[4,"ngIf"],["noApp",""],["incorrectStatus",""],[4,"ngIf","ngIfElse"],[1,"checkout-timer",3,"safeHtml"],["icon","elem24:timer"],["appSelect","",3,"appName","node"]],template:function(t,e){1&t&&(s.YNc(0,vt,5,3,"ng-container",0),s.YNc(1,Tt,1,2,"ng-template",null,1,s.W1O)),2&t&&s.Q6J("ngIf",e.isAppInstalled)},directives:[l.O5,_t.o,bt.x,yt.B,Ot.M],pipes:[l.Ov],styles:["[_nghost-%COMP%]{display:block}.checkout-timer[_ngcontent-%COMP%]{border-radius:2px;border:0 solid #000;color:#fff;display:inline-block;padding:10px 25px}"],changeDetection:0}),t})();const St=["noApp"];function Zt(t,e){if(1&t&&(s.TgZ(0,"div",8),s.TgZ(1,"div",9),s.TgZ(2,"span"),s._uU(3,"Guaranteed"),s.qZA(),s.TgZ(4,"span"),s._uU(5," SAFE "),s.qZA(),s.TgZ(6,"span"),s._uU(7,"Checkout"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Udp("font-size",e.widthToFontSize[e.width(t)],"px"),s.xp6(2),s.Udp("color",t.style.guaranteed_color),s.xp6(2),s.Udp("color",t.style.safe_color),s.xp6(2),s.Udp("color",t.style.checkout_color)}}function Qt(t,e){if(1&t&&(s.TgZ(0,"div",5),s.YNc(1,Zt,8,8,"div",6),s._UZ(2,"img",7),s.qZA()),2&t){const t=e.$implicit,n=s.oxw(3);s.Udp("border-color",t.style.border_color)("border-width",n.hasBorder(t)?t.style.border_size:0,"px")("padding",n.hasBorder(t)?10:null,"px"),s.xp6(1),s.Q6J("ngIf",n.hasText(t)),s.xp6(1),s.Udp("width",n.width(t),"px"),s.Q6J("src",n.getImageSrc(t.badge),s.LSH)}}function Nt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,Qt,3,10,"div",4),s.ALo(2,"async"),s.BQk()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,t.securityBadges$))}}function Dt(t,e){1&t&&(s.TgZ(0,"app-b-empty-case",11),s._uU(1," No Security Badges were loaded "),s.qZA())}function Mt(t,e){if(1&t&&(s.YNc(0,Dt,2,0,"app-b-empty-case",10),s.ALo(1,"async")),2&t){const t=s.oxw(2);let e;s.Q6J("ngIf",0===(null==(e=s.lcZ(1,1,t.securityBadges$))?null:e.length))}}function qt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,Nt,3,3,"ng-container",2),s.ALo(2,"async"),s.YNc(3,Mt,2,3,"ng-template",null,3,s.W1O),s.BQk()),2&t){const t=s.MAs(4),e=s.oxw();let n;s.xp6(1),s.Q6J("ngIf",null==(n=s.lcZ(2,2,e.securityBadges$))?null:n.length)("ngIfElse",t)}}function Ft(t,e){if(1&t&&s._UZ(0,"app-b-apps-placeholder",12),2&t){const t=s.oxw();s.Q6J("appName",t.AppName.SecurityBadge)("node",t.node)}}let $t=(()=>{class t extends o.a{constructor(t,e,n,s,r,o,c,a,u,p,l){super(...arguments),this._fes=t,this._securityBadge=e,this._vcr=n,this._cdr=s,this._element=r,this._redraw=o,this._renderer=c,this._resize=a,this._stylesRenderer=u,this.store$=p,this._platformId=l,this.AppName=i.lWU,this.widthToFontSize={500:28,450:25,400:22,350:19,300:17,250:14,200:11}}ngOnChanges(t){super.ngOnChanges(t)}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit(),this.isAppInstalled=this._fes.apps.includes(i.lWU.SecurityBadge),this.isAppInstalled?(this.securityBadges$=this._securityBadge.securityBadges$,this.retrieveSecurityBadges()):this._vcr.createEmbeddedView(this._placeholder)}retrieveSecurityBadges(){!this.isAppInstalled||this.store$.select(i.$2Q.selectActivePage).pipe((0,S.q)(1),(0,B.h)(t=>!!t)).subscribe(t=>{switch((0,i.VFJ)(t)){case i.MYR.CheckoutPage:this._page=i.etN.Checkout;break;case i.MYR.ProductPage:this._page=i.etN.Product;break;case i.MYR.ShoppingCart:this._page=i.etN.Cart}this._page&&this._securityBadge.getSecurityBadges(this._page).pipe((0,S.q)(1)).subscribe()})}getImageSrc(t){return 0===t.type?t.image.path:`assets/images/security-badges/${t.type}.png`}hasBorder(t){return 0!==t.badge.type&&t.style.show_border}hasText(t){return 0!==t.badge.type&&t.style.show_text}width(t){const e=t.location.find(t=>t.page_id===this._page);return 0!==t.badge.type?e.size:null}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.lDq),s.Y36(i.lbN),s.Y36(s.s_b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(c.F),s.Y36(s.Qsj),s.Y36(a._),s.Y36(u.F),s.Y36(p.yh),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-security-badge"]],viewQuery:function(t,e){if(1&t&&s.Gf(St,7),2&t){let t;s.iGM(t=s.CRH())&&(e._placeholder=t.first)}},features:[s.qOj,s.TTD],decls:3,vars:1,consts:[[4,"ngIf"],["noApp",""],[4,"ngIf","ngIfElse"],["noBadges",""],["class","security-badge",3,"border-color","border-width","padding",4,"ngFor","ngForOf"],[1,"security-badge"],["class","security-badge__text",3,"font-size",4,"ngIf"],[3,"src"],[1,"security-badge__text"],[1,"security-badge__text-background"],["icon","elem24:security_badge",4,"ngIf"],["icon","elem24:security_badge"],["appSelect","",3,"appName","node"]],template:function(t,e){1&t&&(s.YNc(0,qt,5,4,"ng-container",0),s.YNc(1,Ft,1,2,"ng-template",null,1,s.W1O)),2&t&&s.Q6J("ngIf",e.isAppInstalled)},directives:[l.O5,l.sg,bt.x,yt.B,Ot.M],pipes:[l.Ov],styles:['.security-badge[_ngcontent-%COMP%]{border-style:solid;
1display:inline-block;padding-top:10px;position:relative}.security-badge__text[_ngcontent-%COMP%]{font-family:"Open Sans",Helvetica,Arial,sans-serif;font-weight:600;left:0;position:absolute;text-align:center;top:-3px;transform:translateY(-50%);width:100%}.security-badge__text-background[_ngcontent-%COMP%]{background:#fff;display:inline-block;padding:0 20px}.security-badge[_ngcontent-%COMP%] + .security-badge[_ngcontent-%COMP%]{margin-top:25px}'],changeDetection:0}),t})();var At=n(6338),Ut=n(90542),Lt=n(99614),Jt=n(34874);let jt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[At.Y,l.ez,Lt.z,Jt.E,M.u5,M.UX,Ut.h,i.m81]]}),t})()},32833:function(t,e,n){n.d(e,{M:function(){return c}});var s=n(74788),i=n(66614),r=n(51117),o=n(73673);let c=(()=>{class t extends((0,i.Ph)((0,i.fs)(Object))){constructor(t,e,n,s,i){super(),this._element=t,this._redraw=e,this._renderer=n,this.store$=s,this._platformId=i}ngOnDestroy(){super.ngOnDestroy()}ngOnInit(){super.ngOnInit()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(r.F),s.Y36(s.Qsj),s.Y36(o.yh),s.Y36(s.Lbi))},t.\u0275dir=s.lG2({type:t,selectors:[["","appSelect",""]],inputs:{node:"node"},features:[s.qOj]}),t})()},28678:function(t,e,n){n.d(e,{R:function(){return i}});var s=n(74788);let i=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["lib-loader"]],decls:13,vars:0,consts:[["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","width","24px","height","30px","viewBox","0 0 24 30",0,"xml","space","preserve",2,"enable-background","new 0 0 50 50"],["x","0","y","10","width","4","height","10","fill","#007dcc","opacity","0.2"],["attributeName","opacity","attributeType","XML","values","0.2; 1; .2","begin","0s","dur","0.6s","repeatCount","indefinite"],["attributeName","height","attributeType","XML","values","10; 20; 10","begin","0s","dur","0.6s","repeatCount","indefinite"],["attributeName","y","attributeType","XML","values","10; 5; 10","begin","0s","dur","0.6s","repeatCount","indefinite"],["x","8","y","10","width","4","height","10","fill","#007dcc","opacity","0.2"],["attributeName","opacity","attributeType","XML","values","0.2; 1; .2","begin","0.15s","dur","0.6s","repeatCount","indefinite"],["attributeName","height","attributeType","XML","values","10; 20; 10","begin","0.15s","dur","0.6s","repeatCount","indefinite"],["attributeName","y","attributeType","XML","values","10; 5; 10","begin","0.15s","dur","0.6s","repeatCount","indefinite"],["x","16","y","10","width","4","height","10","fill","#007dcc","opacity","0.2"],["attributeName","opacity","attributeType","XML","values","0.2; 1; .2","begin","0.3s","dur","0.6s","repeatCount","indefinite"],["attributeName","height","attributeType","XML","values","10; 20; 10","begin","0.3s","dur","0.6s","repeatCount","indefinite"],["attributeName","y","attributeType","XML","values","10; 5; 10","begin","0.3s","dur","0.6s","repeatCount","indefinite"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.TgZ(1,"rect",1),s._UZ(2,"animate",2),s._UZ(3,"animate",3),s._UZ(4,"animate",4),s.qZA(),s.TgZ(5,"rect",5),s._UZ(6,"animate",6),s._UZ(7,"animate",7),s._UZ(8,"animate",8),s.qZA(),s.TgZ(9,"rect",9),s._UZ(10,"animate",10),s._UZ(11,"animate",11),s._UZ(12,"animate",12),s.qZA(),s.qZA())},styles:["[_nghost-%COMP%]{display:block;margin:0 auto;padding:20px 0;text-align:center}[_nghost-%COMP%]   svg[_ngcontent-%COMP%]{display:block;margin:auto}"],changeDetection:0}),t})()},36532:function(t,e,n){n.d(e,{Z:function(){return c}});var s=n(79947),i=n(54232),r=n(90603),o=n(64019),c=function(t){t=(0,o.Z)(t);var e=(0,i.Z)(t)?(0,r.Z)(t):void 0,n=e?e[0]:t.charAt(0),c=e?(0,s.Z)(e,1).join(""):t.slice(1);return n.toUpperCase()+c}}}]);

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.