PageSourceSearch

https://shop.bonfiglioli.com/chunk-ZJEO3DRD.js

js bonfiglioli.com collected 2026-09-25 18:40:06 UTC 4,472 bytes, 1 lines download raw bytes

1import{a as H}from"./chunk-KY7LI2PV.js";import{Aa as O,za as N}from"./chunk-JCOTUPE5.js";import{Wd as S}from"./chunk-TXT3R3MF.js";import{Ec as E,Fb as k,Fc as l,Gc as d,Hc as P,Ja as _,Md as g,Nb as s,Nd as C,Rc as m,Rd as b,Sa as a,Ta as c,Wc as p,Yc as u,_a as h,ac as x,ad as F,bd as y,cd as T,fc as M,ga as B,kc as v,ld as f,nd as A,xc as w,zc as R}from"./chunk-PWAHSUDZ.js";var L=(t=>(t[t.DEFAULT=0]="DEFAULT",t[t.RFQ_LIST=1]="RFQ_LIST",t[t.RFQ_CREATE=2]="RFQ_CREATE",t))(L||{});var Q=["addressBookModalTitle"],j=["addressBookModal"];function V(i,e){if(i&1){let o=m();l(0,"a",5),p("click",function(){a(o);let n=u();return c(n.openAddressBookModal())}),f(1),g(2,"cxTranslate"),d()}i&2&&(s(),A(" ",C(2,1,"checkoutAddress.addressBook")," "))}function W(i,e){if(i&1){let o=m();l(0,"a",5),p("click",function(){a(o);let n=u();return c(n.create.emit())}),f(1),g(2,"cxTranslate"),d()}i&2&&(s(),A(" ",C(2,1,"checkoutAddress.addNewAddress")," "))}function D(i,e){i&1&&(l(0,"h1",6),f(1),g(2,"cxTranslate"),d()),i&2&&(s(),A(" ",C(2,1,"checkoutAddress.addressBook")," "))}function G(i,e){if(i&1){let o=m();l(0,"bonfiglioli-address-book",7),p("addressSelect",function(n){a(o);let z=u();return c(z.addressBook.emit(n))}),d()}i&2&&E("selectable",!0)("showSearch",!0)("isModal",!0)}var I=class i{constructor(){this.showAddressBookAction=!0;this.showAddNewAddressAction=!0;this.format=0;this.addressBook=new h;this.create=new h;this.launchDialogService=_(O);this.viewContainerRef=_(x);this.COMMA_SEPARATOR=", ";this.WHITE_SPACE_SEPARATOR=" ";this.NEW_LINE_SEPARATOR="<br/>"}getAddressDetails(e){switch(this.format){case 1:return this.buildAddressRFQList(e);case 2:return this.buildAddressRFQCreate(e);case 0:default:return this.buildAddressDefault(e)}}buildAddressDefault(e){let o=[e.line1,e.line2,e.town,e.region?.name,e.postalCode,e.country?.name].filter(r).join(this.COMMA_SEPARATOR);return[this.buildAddressNameRow(e,"margin-bottom: 10px"),o,e.phone].filter(r).join(this.NEW_LINE_SEPARATOR)}buildAddressRFQList(e){let o=[e.line1].filter(r).join(this.WHITE_SPACE_SEPARATOR),t=[e.town,e.region?.name].filter(r).join(this.COMMA_SEPARATOR),n=[e.postalCode,e.country?.name].filter(r).join(this.WHITE_SPACE_SEPARATOR);return[this.buildAddressNameRow(e),o,t,n].filter(r).join(this.NEW_LINE_SEPARATOR)}buildAddressRFQCreate(e){let o=[e.line1,e.town,e.region?.name].filter(r).join(this.COMMA_SEPARATOR),t=[e.postalCode,e.country?.name].filter(r).join(this.WHITE_SPACE_SEPARATOR);return[this.buildAddressNameRow(e),o,t].filter(r).join(this.NEW_LINE_SEPARATOR)}buildAddressNameRow(e,o){return[`<div style="${o}"><b>`,e.title,e.firstName,e.lastName,"</b></div>"].filter(r).join(this.WHITE_SPACE_SEPARATOR)}openAddressBookModal(){this.launchDialogService.openDialog(N.LIGHTBOX_MODAL,void 0,this.viewContainerRef,{title:this.addressBookModalTitle,body:this.addressBookModal,width:"60%",height:"80%"})?.pipe(B()).subscribe()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=M({type:i,selectors:[["bonfiglioli-address-horizontal-card"]],viewQuery:function(o,t){if(o&1&&F(Q,5)(j,5),o&2){let n;y(n=T())&&(t.addressBookModalTitle=n.first),y(n=T())&&(t.addressBookModal=n.first)}},inputs:{address:"address",showAddressBookAction:"showAddressBookAction",showAddNewAddressAction:"showAddNewAddressAction",format:"format"},outputs:{addressBook:"addressBook",create:"create"},standalone:!1,decls:9,vars:3,consts:[["addressBookModalTitle",""],["addressBookModal",""],[1,"address"],[3,"innerHTML"],[1,"actions"],[3,"click"],[2,"color","var(--cx-color-secondary)"],[3,"addressSelect","selectable","showSearch","isModal"]],template:function(o,t){o&1&&(l(0,"div",2),P(1,"div",3),d(),l(2,"div",4),w(3,V,3,3,"a"),w(4,W,3,3,"a"),d(),v(5,D,3,3,"ng-template",null,0,b)(7,G,1,3,"ng-template",null,1,b)),o&2&&(s(),E("innerHTML",t.getAddressDetails(t.address),k),s(2),R(t.showAddressBookAction?3:-1),s(),R(t.showAddNewAddressAction?4:-1))},dependencies:[H,S],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;padding:1rem;background-color:var(--cx-color-menu-item-backgroud)}[_nghost-%COMP%]   .address[_ngcontent-%COMP%]{flex:60%;font-size:.875rem}[_nghost-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;gap:1rem;font-weight:600;font-size:.875rem}[_nghost-%COMP%]   .actions[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{cursor:pointer;color:var(--cx-color-secondary);height:fit-content}"]})}};function r(i){return!!i?.trim()}
1export{L as a,I as b};

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.