PageSourceSearch

https://www.aquiferdist.com/dist/addressesChunk_fa8c5186cdce23fea9b1.chunk.js

js aquiferdist.com collected 2026-10-08 19:31:04 UTC 14,347 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkroot=self.webpackChunkroot||[]).push([[4352],{92526:(e,t,s)=>{s.r(t),s.d(t,{AddressBookContext:()=>k,addressBookStyles:()=>D,default:()=>L});var a=s(87065),i=s(73009),r=s(17126),d=s(26682),n=s(31374),o=s(81786),l=s(44901),c=s(3444),p=s(35128),u=s(89948),m=s(6544),h=s(25387),g=s(15353);const A=[e=>{e.dataViewParameter=e.getState().pages.addresses.getShipTosParameter,e.dispatch({type:"Data/ShipTos/BeginLoadShipTos",parameter:e.dataViewParameter})},e=>{e.apiParameter=Object.assign({},e.dataViewParameter)},async e=>{e.apiResult=await(0,g.jT)(e.apiParameter)},e=>{const t=e.apiResult.shipTos.find((e=>e.isNew));e.apiResult.shipTos=e.apiResult.shipTos.filter((e=>!e.isNew)),e.newShipTo=t},e=>{e.dispatch({type:"Pages/Addresses/SetNewShipTo",newShipTo:e.newShipTo})},e=>{e.dispatch({type:"Data/ShipTos/CompleteLoadShipTos",collection:e.apiResult,parameter:e.dataViewParameter})}],T=(0,h.hK)(A,{},"LoadShipTos");var S=s(73746),y=s(10621),C=s(55569),b=s(2804),v=s(40768),w=s(247),f=s(41118),E=s(85540),O=s(91135),I=s(54337),j=s(3205),B=s(39881),N=s(96540),x=s(71468),P=s(73802);const F={setCurrentShipTo:o.Ay,loadShipTos:T,updateShipTo:u.Ay},D={gridContainer:{gap:20,css:P.AH`span[data-test-selector="notify-warning"]{max-width:100%;width:100%;}`},titleTextGridItem:{width:12},addressHeaderGridItem:{width:12},titleText:{variant:"h5",css:P.AH`margin-bottom:0;`},centeringWrapper:{css:P.AH`height:300px;width:100%;padding-left:10px;padding-top:15px;`},spinner:{css:P.AH`margin:auto;`},addressCardGridItem:{width:12},addressCard:{gridContainer:{gap:20},addressInfoDisplayGridItem:{width:[10,10,5,7,7]},actionsGridItem:{width:[2,2,7,5,5],css:P.AH`justify-content:flex-end;`},actionUseAsShippingAddressButton:{variant:"secondary",sizeVariant:"medium"},bottomBorderGridItem:{width:12},bottomBorder:{css:P.AH`height:1px;background-color:${(0,i.yW)("common.border")};width:100%;`},overflowMenu:{cssOverrides:{menu:P.AH`width:210px;`}}},addressFormModal:{sizeVariant:"medium"}},G=D,k=(0,N.createContext)({isSettingShipTo:!1,setIsSettingShipTo:e=>{}}),V=e=>{const{shipTo:t}=e,s=G.addressCard||{};return N.createElement(w.Ay,Object.assign({},s.gridContainer),N.createElement(f.A,Object.assign({},s.addressInfoDisplayGridItem,{"data-test-selector":"addressInfoDisplay_addressBook"}),N.createElement(y.A,{firstName:t.firstName,lastName:t.lastName,companyName:t.companyName,attention:t.attention,address1:t.address1,address2:t.address2,address3:t.address3,address4:t.address4,city:t.city,state:t.state?t.state.abbreviation:void 0,postalCode:t.postalCode,country:t.country?t.country.abbreviation:void 0,phone:t.phone,fax:t.fax,email:t.email,extendedStyles:s.addressInfoDisplay})),N.createElement(f.A,Object.assign({},s.actionsGridItem),N.createElement(R,{shipTo:t,updateShipTo:e.updateShipTo,setCurrentShipTo:e.setCurrentShipTo,currentBillTo:e.currentBillTo,currentShipTo:e.currentShipTo,countries:e.countries,shipToAddressFields:e.shipToAddressFields,billToAddressFields:e.billToAddressFields})),N.createElement(f.A,Object.assign({},s.bottomBorderGridItem),N.createElement(r.A,Object.assign({},s.bottomBorder))))},R=e=>{const[t,s]=N.useState(!1),{shipTo:a,currentShipTo:i}=e,r=(0,N.useContext)(k),d=t=>{t.preventDefault(),r.setIsSettingShipTo(!0),e.setCurrentShipTo({shipToId:a.id,onSuccess:()=>{r.setIsSettingShipTo(!1)},onComplete(e){var t;e.apiResult&&(null===(t=this.onSuccess)||void 0===t||t.call(this))}})},n=()=>{s(!1)},{countries:o,shipToAddressFields:l}=e,c=G.addressCard||{};return N.createElement(N.Fragment,null,N.createElement(E.A,{above:"sm"},N.createElement(j.A,Object.assign({position:"end"},c.overflowMenu),N.createElement(v.A,{onClick:d,disabled:r.isSettingShipTo||a.id===(null==i?void 0:i.id)},(0,S.Ay)("Use as Shipping Address")))),N.createElement(E.A,{below:"md"},N.createElement(b.Ay,Object.assign({},c.actionUseAsShippingAddressButton,{onClick:d,disabled:r.isSettingShipTo||a.id===(null==i?void 0:i.id),"data-test-selector":"useAs_Shipping_Address"}),(0,S.Ay)("Use as Shipping Address"))),N.createElement(I.A,Object.assign({},G.addressFormModal,{isOpen:t,handleClose:n,headline:(0,S.Ay)("Edit Shipping Information")}),o&&l&&N.createElement(C.A,{address:a,countries:o,addressFieldDisplayCollection:l,onCancel:e=>{e.preventDefault(),n()},onSubmit:(t,s)=>{t.preventDefault();const{currentBillTo:a,shipTo:i}=e;a&&i&&(e.updateShipTo({billToId:a.id,shipTo:Object.assign(Object.assign({},i),s),expand:["validation"]}),n())}})))},L={component:(0,x.Ng)((e=>({shipTosDataView:(0,m.SE)(e,e.pages.addresses.getShipTosParameter),getShipTosParameter:e.pages.addresses.getShipTosParameter,currentBillTo:(0,c.zd)(e).value,currentShipTo:(0,m.Sc)(e).value,countries:(0,p.O)(e),addressFieldDataView:(0,l.j)(e)})),F)((({id:e,shipTosDataView:t,loadShipTos:s,setCurrentShipTo:i,updateShipTo:o,addressFieldDataView:l,countries:c,currentBillTo:p,currentShipTo:u,getShipTosParameter:m})=>{const[h,g]=(0,N.useState)(!1);let A;return N.useEffect((()=>{t.value||t.isLoading||s()})),A=!t.isLoading&&t.value&&l.value?t.value.length>0?t.value.map((e=>N.createElement(f.A,Object.assign({},G.addressCardGridItem,{key:e.id.toString()}),N.createElement(V,{shipTo:e,setCurrentShipTo:i,updateShipTo:o,billToAddressFields:l.value.billToAddressFields,shipToAddressFields:l.value.shipToAddressFields,countries:c,currentBillTo:p,currentShipTo:u})))):N.createElement(r.A,Object.assign({},G.centeringWrapper),N.createElement(a.A,{type:"danger"},m.filter?(0,n.Ay)("Addresses_NoResultsFound"):(0,n.Ay)("Addresses_NoAddressesFound"))):N.createElement(r.A,Object.assign({},G.centeringWrapper),N.createElement(O.A,Object.assign({},G.spinner))),N.createElement(k.Provider,{value:{isSettingShipTo:h,setIsSettingShipTo:g}},N.createElement(w.Ay,Object.assign({},G.gridContainer),N.createElement(f.A,{width:12},N.createElement(a.A,{type:"warning"},(0,n.Ay)("Custom_Addresses_ReadOnly"))),N.createElement(f.A,Object.assign({},G.titleTextGridItem),N.createElement(B.A,Object.assign({as:"h2"},G.titleText),(0,S.Ay)("Address Book"))),N.createElement(f.A,Object.assign({},G.addressHeaderGridItem),N.createElement(d.A,{contentId:e,zoneName:"Content00"})),A))})),definition:{group:"Addresses",allowedContexts:["AddressesPage"]}}},70991:(e,t,s)=>{s.r(t),s.d(t,{currentBillingAddressStyles:()=>A,default:()=>S});var a=s(56658),i=s(44901),r=s(3444),d=s(35902),n=s(35128),o=s(73746),l=s(10621),c=s(247),p=s(41118),u=s(39881),m=s(96540),h=s(71468);const g={updateBillTo:d.Ay},A={gridContainer:{gap:5},headingGridItem:{width:10},headingText:Object.assign({},a.K.headingText),addressInfoDisplayGridItem:{width:12}},T=A,S={component:(0,h.Ng)((e=>{var t;return{currentBillTo:(0,r.zd)(e).value,countries:(0,n.O)(e),billToAddressFields:null===(t=(0,i.j)(e).value)||void 0===t?void 0:t.billToAddressFields}}),g)((e=>{const{currentBillTo:t}=e;return t?m.createElement(c.Ay,Object.assign({},T.gridContainer),m.createElement(p.A,Object.assign({},T.headingGridItem),m.createElement(u.A,Object.assign({as:"h2"},T.headingText),(0,o.Ay)("Billing Address"))),m.createElement(p.A,Object.assign({},T.addressInfoDisplayGridItem,{"data-test-selector":"addressInfoDisplay_Billing"}),m.createElement(l.A,{firstName:t.firstName,lastName:t.lastName,companyName:t.companyName,attention:t.attention,address1:t.address1,address2:t.address2,address3:t.address3,address4:t.address4,city:t.city,state:t.state?t.state.abbreviation:void 0,postalCode:t.postalCode,country:t.country?t.country.abbreviation:void 0,phone:t.phone,fax:t.fax,email:t.email}))):null})),definition:{group:"Addresses",allowedContexts:["AddressesPage"]}}},54576:(e,t,s)=>{s.r(t),s.d(t,{currentShippingAddressStyles:()=>b,default:()=>f});var a=s(56658),i=s(81786),r=s(44901),d=s(3444),n=s(35128),o=s(73429),l=s(89948),c=s(6544),p=s(73746),u=s(10621),m=s(2804),h=s(247),g=s(41118),A=s(39881),T=s(96540),S=s(71468),y=s(73802);const C={updateShipTo:l.Ay,setCurrentShipTo:i.Ay,loadCurrentShipTos:o.Ay},b={gridContainer:{gap:5},headingGridItem:{width:10},headingText:Object.assign({},a.K.headingText),addressInfoDisplayGridItem:{width:12},useBillingAddressButtonGridItem:{width:12},useBillingAddress:{button:{css:y.AH`margin-top:20px;`}}},v=b,w=e=>{const t=v.useBillingAddress||{};
1return T.createElement(m.Ay,Object.assign({variant:"primary"},t.button,{onClick:e.onClick}),(0,p.Ay)("Use Billing Address"))},f={component:(0,S.Ng)((e=>{var t;return{currentShipTo:(0,c.Sc)(e).value,currentShipTosDataView:(0,c.pu)(e),currentBillTo:(0,d.zd)(e).value,countries:(0,n.O)(e),shipToAddressFields:null===(t=(0,r.j)(e).value)||void 0===t?void 0:t.shipToAddressFields}}),C)((e=>{const{currentShipTo:t,currentBillTo:s,currentShipTosDataView:a,loadCurrentShipTos:i}=e;if((0,T.useEffect)((()=>{a.value||a.isLoading||i()})),!t||!s||!a.value)return null;const r=a.value.find((e=>e.id===s.id));return T.createElement(h.Ay,Object.assign({},v.gridContainer),T.createElement(g.A,Object.assign({},v.headingGridItem),T.createElement(A.A,Object.assign({as:"h2"},v.headingText),(0,p.Ay)("Shipping Address"))),T.createElement(g.A,Object.assign({},v.addressInfoDisplayGridItem,{"data-test-selector":"addressInfoDisplay_CurrentShippingAddress"}),T.createElement(u.A,{firstName:t.firstName,lastName:t.lastName,companyName:t.companyName,attention:t.attention,address1:t.address1,address2:t.address2,address3:t.address3,address4:t.address4,city:t.city,state:t.state?t.state.abbreviation:void 0,postalCode:t.postalCode,country:t.country?t.country.abbreviation:void 0,phone:t.phone,fax:t.fax,email:t.email})),r&&t.id!==r.id&&T.createElement(g.A,Object.assign({},v.useBillingAddressButtonGridItem),T.createElement(w,{onClick:()=>{r&&e.setCurrentShipTo({shipToId:r.id})}})))})),definition:{group:"Addresses",allowedContexts:["AddressesPage"]}}},89948:(e,t,s)=>{s.d(t,{Ay:()=>d});var a=s(25387),i=s(15353);const r=[e=>{e.apiParameter=e.parameter},async e=>{e.apiResult=await(0,i.v_)(e.apiParameter)},e=>{e.dispatch({type:"Data/ShipTos/CompleteLoadShipTo",model:e.apiResult})}],d=(0,a.u3)(r,"UpdateShipTo")},43085:(e,t,s)=>{s.r(t),s.d(t,{AddressesPageContext:()=>S,default:()=>T});var a=s(26682),i=s(44901),r=s(62930),d=s(3444),n=s(17550),o=s(35128),l=s(22306),c=s(62902),p=s(6544),u=s(9650),m=s(96540),h=s(71468);const g={loadCurrentBillTo:n.Ay,loadCurrentShipTo:c.Ay,loadAddressFields:r.Ay,loadCurrentCountries:l.A};class A extends m.Component{UNSAFE_componentWillMount(){const{currentBillToState:e,currentShipToState:t,shouldLoadAddressFields:s,shouldLoadCountries:a,loadCurrentBillTo:i,loadCurrentShipTo:r,loadAddressFields:d,loadCurrentCountries:n}=this.props;e.value||e.isLoading||i(),t.value||t.isLoading||r(),s&&d(),a&&n()}render(){return m.createElement(u.A,null,m.createElement(a.A,{contentId:this.props.id,zoneName:"Content"}))}}const T={component:(0,h.Ng)((e=>{const t=(0,i.j)(e),s=(0,o.W)(e,l.f);return{currentBillToState:(0,d.zd)(e),currentShipToState:(0,p.Sc)(e),shouldLoadAddressFields:!t.value&&!t.isLoading,shouldLoadCountries:!s.value&&!s.isLoading}}),g)(A),definition:{hasEditableUrlSegment:!0,hasEditableTitle:!0,pageType:"System"}},S="AddressesPage"},56585:(e,t,s)=>{s.r(t),s.d(t,{addressBookPaginationStyles:()=>l,default:()=>p});var a=s(6544),i=s(90332),r=s(29804),d=s(96540),n=s(71468);const o={updateSearchFields:i.Ay},l={},c=l,p={component:(0,n.Ng)((e=>({shipTosDataView:(0,a.SE)(e,e.pages.addresses.getShipTosParameter)})),o)((({shipTosDataView:e,updateSearchFields:t})=>{if(!e.value||!e.pagination)return null;const{totalItemCount:s,page:a,pageSize:i,pageSizeOptions:n,prevPageUri:o,nextPageUri:l}=e.pagination;return 0===s?null:d.createElement(r.Ay,Object.assign({},c.pagination,{resultsCount:s,currentPage:a,resultsPerPage:i,resultsPerPageOptions:n,onChangePage:e=>{t({page:e})},onChangeResultsPerPage:e=>{const s=parseInt(e.currentTarget.value,10);t({page:1,pageSize:s})},prevPage:o,nextPage:l}))})),definition:{group:"Addresses",icon:"house",allowedContexts:["AddressesPage"]}}},31762:(e,t,s)=>{s.r(t),s.d(t,{createAddressButtonStyles:()=>j,default:()=>N});var a=s(80247),i=s(28887),r=s(81786),d=s(44901),n=s(3444),o=s(35128),l=s(4411),c=s(87042),p=s(25387),u=s(15353);const m=[e=>{e.apiParameter=e.parameter},async e=>{e.apiResult=await(0,u.GX)(e.apiParameter)},e=>{e.dispatch({type:"Data/ShipTos/ResetDataViews"}),e.dispatch({type:"Data/AccountShipTos/Reset"})}],h=(0,p.u3)(m,"CreateShipTo");var g=s(73746),A=s(55569),T=s(2804),S=s(40768),y=s(247),C=s(41118),b=s(85540),v=s(54337),w=s(3205),f=s(96540),E=s(71468),O=s(73802);const I={createShipTo:h,setCurrentShipTo:r.Ay},j={createNewAddressButtonGridItem:{width:12,css:O.AH`justify-content:flex-end;`},addressFormModal:{sizeVariant:"medium"}},B=j,N={component:(0,E.Ng)((e=>{var t;const s=(0,i.Ht)(e),a=(0,i.SB)(e);return{customerSettings:a.customerSettings,currentBillTo:(0,n.zd)(e).value,
1newShipTo:e.pages.addresses.newShipTo,countries:(0,o.O)(e),billToAddressFields:null===(t=(0,d.j)(e).value)||void 0===t?void 0:t.billToAddressFields,location:(0,l.g$)(e),isVmiAdmin:(0,c.kW)(a.orderSettings,s)}}),I)((({customerSettings:e,currentBillTo:t,newShipTo:s,countries:i,billToAddressFields:r,location:d,isVmiAdmin:n,createShipTo:o,setCurrentShipTo:l})=>{const[c,p]=(0,f.useState)(!1);if((0,f.useEffect)((()=>{"true"===(0,a.A)(d.search).isNewShipTo&&p(!0)}),[]),!e.allowCreateNewShipToAddress&&!n)return null;const u=()=>{p(!1)},m=()=>{p(!0)};return f.createElement(y.Ay,Object.assign({},B.gridContainer),f.createElement(C.A,Object.assign({},B.createNewAddressButtonGridItem),f.createElement(b.A,{above:"sm"},f.createElement(w.A,Object.assign({position:"end"},B.overflowMenu),f.createElement(S.A,{onClick:m},(0,g.Ay)("Create New Address")))),f.createElement(b.A,{below:"md"},f.createElement(T.Ay,Object.assign({},B.createNewAddressButton,{onClick:m,"data-test-selector":"addresses_CreateNewAddress"}),(0,g.Ay)("Create New Address"))),f.createElement(v.A,Object.assign({headline:(0,g.Ay)("Create New Address")},B.addressFormModal,{isOpen:c,handleClose:u}),s&&i&&r&&f.createElement(A.A,{address:s,countries:i,addressFieldDisplayCollection:r,onCancel:e=>{e.preventDefault(),u()},onSubmit:(e,a)=>{t&&s&&(o({billToId:t.id,shipTo:Object.assign(Object.assign({},s),a),onComplete:e=>{e.apiResult&&l({shipToId:e.apiResult.id})}}),u())}}))))})),definition:{group:"Addresses",icon:"rectangle-wide",allowedContexts:["AddressesPage"]}}}}]);
2//# sourceMappingURL=addressesChunk_fa8c5186cdce23fea9b1.chunk.js.map

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.