PageSourceSearch

https://shop.bonfiglioli.com/chunk-5HF77ZNI.js

js bonfiglioli.com collected 2026-09-25 18:40:04 UTC 11,169 bytes, 1 lines download raw bytes

1import{a as Z}from"./chunk-FDGA2LKM.js";import{g as et}from"./chunk-HIX2SJGC.js";import{o as tt}from"./chunk-W3OE3L5D.js";import{Ka as X,P as J,R as K,za as W}from"./chunk-JCOTUPE5.js";import{Td as j,Wd as H,ha as Q,j as U,r as G,s as Y}from"./chunk-TXT3R3MF.js";import{Cc as q,Dc as $,Ec as u,Fc as l,Fd as P,Gc as o,H as B,Hc as L,Ja as E,L as F,Md as s,Nb as i,Nc as f,Nd as p,Od as D,Rc as M,Rd as z,Sa as x,Ta as O,Wc as y,Ya as w,Yc as r,fc as N,ga as T,gd as b,jb as R,jc as V,kc as A,ld as _,nd as C,ud as k,xa as h,xc as m,zc as g}from"./chunk-PWAHSUDZ.js";var I=(e=>(e.PROCESSING="PROCESSING",e.COMPLETED="COMPLETED",e))(I||{});var it=t=>({value:t,isClickable:!0}),S=t=>({value:t}),ot=(t,c)=>c.code;function at(t,c){if(t&1&&(k(0),s(1,"cxDate"),k(2),s(3,"cxDate"),f(4,10)),t&2){let e=r().$implicit,a=b(32),n=D(1,2,e.saveTime,"longDate"),d=D(3,5,e.saveTime,"shortTime");i(4),u("ngTemplateOutlet",a)("ngTemplateOutletContext",P(8,S,n+" "+d))}}function rt(t,c){t&1&&L(0,"cx-spinner")}function ct(t,c){if(t&1&&f(0,10),t&2){let e=r().$implicit,a=b(32);u("ngTemplateOutlet",a)("ngTemplateOutletContext",P(2,S,e.description))}}function lt(t,c){if(t&1&&f(0,10),t&2){let e=r().$implicit,a=b(32);u("ngTemplateOutlet",a)("ngTemplateOutletContext",P(2,S,e.totalUnitCount))}}function dt(t,c){if(t&1){let e=M();l(0,"button",19,1),y("click",function(n){x(e);let d=r().$implicit,v=r(3);return O(v.openDialogForLayout(n,d,v.SavedCartFormType.RESTORE))}),_(2),s(3,"cxTranslate"),o()}t&2&&(i(2),C(" ",p(3,1,"savedCartList.makeCartActive")," "))}function st(t,c){if(t&1){let e=M();l(0,"cx-icon",20),y("click",function(n){x(e);let d=r().$implicit,v=r(3);return O(v.openDialogForLayout(n,d,v.SavedCartFormType.DELETE))})("keydown",function(n){x(e);let d=r().$implicit,v=r(3);return O(v.openDialogForLayout(n,d,v.SavedCartFormType.DELETE))}),o()}if(t&2){let e=r(4);u("type",e.ICON_TYPE.CLOSE)}}function _t(t,c){if(t&1){let e=M();l(0,"a",22),y("click",function(){x(e);let n=r(2).$implicit,d=r(3);return O(d.goToSavedCartDetails(n))})("keydown",function(){x(e);let n=r(2).$implicit,d=r(3);return O(d.goToSavedCartDetails(n))}),_(1),o()}if(t&2){let e=r().value;i(),C(" ",e," ")}}function Ct(t,c){if(t&1&&_(0),t&2){let e=r().value;C(" ",e," ")}}function pt(t,c){if(t&1&&m(0,_t,2,1,"a",21)(1,Ct,1,1),t&2){let e=c.isClickable;g(e?0:1)}}function mt(t,c){if(t&1&&(l(0,"tr",5)(1,"td",8)(2,"div",9),_(3),s(4,"cxTranslate"),o(),f(5,10),o(),l(6,"td",11)(7,"div",9),_(8),s(9,"cxTranslate"),o(),f(10,10),o(),l(11,"td",12)(12,"div",9),_(13),s(14,"cxTranslate"),o(),m(15,at,5,10,"ng-container",10),o(),l(16,"td",13)(17,"div",9),_(18),s(19,"cxTranslate"),o(),m(20,rt,1,0,"cx-spinner")(21,ct,1,4,"ng-container",10),o(),l(22,"td",14)(23,"div",9),_(24),s(25,"cxTranslate"),o(),m(26,lt,1,4,"ng-container",10),o(),l(27,"td",15),m(28,dt,4,3,"button",16),o(),l(29,"td",17),m(30,st,1,1,"cx-icon",18),o()(),A(31,pt,2,1,"ng-template",null,0,z)),t&2){let e=c.$implicit,a=b(32),n=e.importStatus===r(3).IMPORT_STATUS.PROCESSING;i(),u("ngClass",n?"not-active":""),i(2),C(" ",p(4,15,"savedCartList.cartName")," "),i(2),u("ngTemplateOutlet",a)("ngTemplateOutletContext",P(25,it,e.name)),i(3),C(" ",p(9,17,"savedCartList.cartId")," "),i(2),u("ngTemplateOutlet",a)("ngTemplateOutletContext",P(27,S,e.code)),i(3),C(" ",p(14,19,"savedCartList.dateSaved")," "),i(2),g(n?-1:15),i(3),C(" ",p(19,21,"savedCartDetails.cartDescription")," "),i(2),g(n?20:21),i(4),C(" ",p(25,23,"savedCartList.quantity")," "),i(2),g(n?-1:26),i(2),g(!n&&e.totalUnitCount?28:-1),i(2),g(n?-1:30)}}function gt(t,c){if(t&1&&(l(0,"table",2)(1,"thead",4)(2,"tr",5)(3,"th",6),_(4),s(5,"cxTranslate"),o(),l(6,"th",6),_(7),s(8,"cxTranslate"),o(),l(9,"th",6),_(10),s(11,"cxTranslate"),o(),l(12,"th",6),_(13),s(14,"cxTranslate"),o(),l(15,"th",7),_(16),s(17,"cxTranslate"),o(),L(18,"th",6)(19,"th",6),o()(),l(20,"tbody"),q(21,mt,33,29,null,null,ot),o()()),t&2){let e=r();i(4),C(" ",p(5,5,"savedCartList.cartName")," "),i(3),C(" ",p(8,7,"savedCartList.cartId")," "),i(3),C(" ",p(11,9,"savedCartList.dateSaved")," "),i(3),C(" ",p(14,11,"savedCartDetails.cartDescription")," "),i(3),C(" ",p(17,13,"savedCartList.quantity")," "),i(5),$(e)}}function vt(t,c){t&1&&(l(0,"div",3)(1,"div"),_(2),s(3,"cxTranslate"),o()()),t&2&&(i(2),C(" ",p(3,1,"savedCartList.notFound")," "))}function ut(t,c){t&1&&m(0,gt,23,15,"table",2)(1,vt,4,3,"div",3),t&2&&g(c.length?0:1)}var nt=class t extends et{constructor(){super(...arguments);this.destroyRef=E(w);this.loadingService=E(Z);this.ICON_TYPE=J;this.IMPORT_STATUS=I;this.SavedCartFormType=tt;this.POLLING_INTERVAL=5e3}ngOnInit(){this.loadingService.show(),super.ngOnInit(),this.isLoading$.pipe(F(e=>!e),T(),h(()=>{this.loadingService.hide(),this.pollCarts()})).subscribe()}pollCarts(){B(0,this.POLLING_INTERVAL).pipe(Q(this.destroyRef),h(()=>this.savedCartService.clearSavedCarts())).subscribe()}
1openDialogForLayout(e,a,n){let d=this.launchDialogService.openDialog(W.SAVED_CART,this.restoreButton,this.vcr,{cart:a,layoutOption:n});d&&d.pipe(T()).subscribe(),e.stopPropagation()}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})()}static{this.\u0275cmp=N({type:t,selectors:[["bonfiglioli-saved-cart-list"]],features:[V],decls:2,vars:3,consts:[["cellValue",""],["element",""],["role","table",1,"table","cx-saved-cart-list-table"],[1,"cx-saved-cart-list-no-saved-carts"],[1,"cx-saved-cart-list-thead-mobile"],["role","row"],["scope","col"],["scope","col",1,"cx-saved-cart-list-th-qty"],[1,"cx-saved-cart-list-cart-name",3,"ngClass"],[1,"cx-table-label-mobile","cx-saved-cart-list-label"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cx-saved-cart-list-cart-id"],[1,"cx-saved-cart-list-date-saved"],[1,"cx-saved-cart-list-description"],[1,"cx-saved-cart-list-quantity"],[1,"cx-saved-cart-list-make-cart-active"],[1,"btn","btn-tertiary","cx-saved-cart-make-active"],[1,"cx-saved-cart-list-remove-cart"],[3,"type"],[1,"btn","btn-tertiary","cx-saved-cart-make-active",3,"click"],[3,"click","keydown","type"],[1,"cx-saved-cart-list-value"],[1,"cx-saved-cart-list-value",3,"click","keydown"]],template:function(a,n){if(a&1&&(m(0,ut,2,1),s(1,"async")),a&2){let d;g((d=p(1,1,n.savedCarts$))?0:-1,d)}},dependencies:[K,U,G,X,Y,j,H],styles:['table[_ngcontent-%COMP%]{margin-top:3.75rem;margin-bottom:6rem}table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover{background-color:unset}table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:0 1rem .3rem;border-bottom:1px solid #dddddd;background-color:transparent;text-transform:capitalize;font-size:.875rem;font-weight:600;color:#444;width:100%;white-space:nowrap;vertical-align:middle}table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th.cx-saved-cart-list-th-qty[_ngcontent-%COMP%]{text-transform:uppercase}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:65px}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover{background-color:var(--bf-color-light-blue-lighter)}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:1rem;text-align:left;vertical-align:middle;font-size:.75rem}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cx-saved-cart-list-value[_ngcontent-%COMP%]{color:#000;font-weight:600;text-decoration:none;width:fit-content}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cx-saved-cart-list-value[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.cx-saved-cart-list-cart-name[_ngcontent-%COMP%]{font-size:unset}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.cx-saved-cart-list-cart-name.not-active[_ngcontent-%COMP%]   .cx-saved-cart-list-value[_ngcontent-%COMP%]{pointer-events:none;cursor:default;font-weight:400}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.cx-saved-cart-list-date-saved[_ngcontent-%COMP%]{white-space:nowrap}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.cx-saved-cart-list-description[_ngcontent-%COMP%]   cx-spinner[_ngcontent-%COMP%]  .loader-container{margin:0}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cx-saved-cart-make-active[_ngcontent-%COMP%]{color:var(--cx-color-secondary);text-transform:uppercase;font-weight:700;min-height:fit-content;padding:0;font-size:.875rem}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cx-saved-cart-make-active[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.cx-saved-cart-list-remove-cart[_ngcontent-%COMP%]{color:var(--cx-color-secondary);font-size:21px}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.cx-saved-cart-list-remove-cart[_ngcontent-%COMP%]   cx-icon[_ngcontent-%COMP%]{cursor:pointer}.cx-saved-cart-list-no-saved-carts[_ngcontent-%COMP%]{margin:45px 0;font-weight:700;font-size:18px;text-align:center;padding-left:30px;padding-right:30px;text-transform:capitalize}@media(max-width:991px){table[_ngcontent-%COMP%]{margin-top:1rem}table[_ngcontent-%COMP%]   .cx-saved-cart-list-label.cx-table-label-mobile[_ngcontent-%COMP%]{color:unset;font-weight:unset}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{position:relative}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:not(:last-child){border-bottom:thin solid var(--bf-color-grey-border)}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{max-width:50%}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .cx-saved-cart-list-make-cart-active[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .cx-saved-cart-list-remove-cart[_ngcontent-%COMP%]{position:absolute;justify-content:end;z-index:-1}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .cx-saved-cart-list-remove-cart[_ngcontent-%COMP%]{top:0}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .cx-saved-cart-list-remove-cart[_ngcontent-%COMP%]   cx-icon[_ngcontent-%COMP%]{text-align:right}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .cx-saved-cart-list-make-cart-active[_ngcontent-%COMP%]{top:3rem}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .cx-saved-cart-list-make-cart-active[_ngcontent-%COMP%]   .cx-saved-cart-make-active[_ngcontent-%COMP%]{font-size:0;text-align:right}table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .cx-saved-cart-list-make-cart-active[_ngcontent-%COMP%]   .cx-saved-cart-make-active[_ngcontent-%COMP%]:before{content:"\\f3e5";
1font-family:FontAwesome;font-size:1.5rem}}']})}};export{nt as a};

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.