1import{a as xe}from"./chunk-FG753VY6.js";import{S as ge,q as Se}from"./chunk-UT4GUAVS.js";import{n as ce}from"./chunk-KHVUK4LW.js";import"./chunk-QN4J2Y6L.js";import{A as le,B as L,C as g,D as se,E as Y,F as ue,G as $,I as j,g as S,h as z,u as C,y as A}from"./chunk-2BH5IVPN.js";import"./chunk-PP3RVYQN.js";import{a as pe}from"./chunk-TYDWO2VF.js";import"./chunk-QBDY4GYQ.js";import"./chunk-GPHDXGIZ.js";import"./chunk-PRR73KC3.js";import"./chunk-VM6BCNAE.js";import"./chunk-SL7QVUZW.js";import"./chunk-LMRBZRJC.js";import{f as de}from"./chunk-MN37C2HO.js";import{ha as oe,na as me}from"./chunk-R5SHGPGT.js";import{$c as h,B as R,Bc as N,Dc as ie,Ea as f,Ec as re,Fc as ne,Gc as U,Hc as t,Ic as i,Ja as s,Jc as d,Ma as w,Mb as a,Md as l,Nd as k,Od as p,Qa as T,Ra as D,Sc as ae,U as X,Zc as B,bc as te,od as e,pd as o,qd as v,rd as G,u as Q,ua as J,za as ee,zc as F}from"./chunk-2NK6DEBJ.js";import{a as O,b as _}from"./chunk-B4AJQJMI.js";var x=S("[Order Summary Page] Initialize Order Summary Page"),y=S("[Order Summary Page] Get Order Summary: Initialize",z()),b=S("[Order Summary Page] Get Order Summary: Success",z()),I=S("[Order Summary Page] Get Order Summary: Failure"),M=S("[Order Summary Page] Unload Order Summary Page");var E="orderGuid";var P="orderSummaryPage";var ye=le(P),Ee=A(ye,n=>n.orderSummary||null),Pe=A(ye,n=>n.isError),Oe=A(ce.getRouteParams,n=>n[E]);function ve(n,c){if(n&1&&(t(0,"div",9)(1,"span"),e(2),i(),t(3,"span",12),e(4),i(),t(5,"span"),e(6),l(7,"appPrice"),i(),t(8,"span",13),e(9),l(10,"appPrice"),i()()),n&2){let r=c.$implicit;a(2),o(r.name),a(2),o(r.quantity),a(2),o(p(7,4,r.price,"zero")),a(3),o(p(10,7,r.price,"zero"))}}function Ce(n,c){if(n&1){let r=ae();t(0,"div",0)(1,"div",1)(2,"wui-button",2),B("onClick",function(){T(r);let u=h();return D(u.print())}),e(3," Print "),i()(),t(4,"div",3)(5,"h2",4),e(6,"Appliances Online Order Summary"),i(),t(7,"span",5),e(8,"***PLEASE NOTE THIS IS NOT A TAX INVOICE. INVOICE WILL BE SENT WITH GOODS***"),i(),t(9,"span",5),e(10,"***PLEASE PRINT ORDER SUMMARY AND RETAIN IT FOR FUTURE REFERENCE***"),i()(),t(11,"div",6)(12,"h3",7),e(13,"Customer Details"),i(),t(14,"div",8)(15,"div",9)(16,"span"),e(17,"Order Number:"),i(),t(18,"span"),e(19),i()(),t(20,"div",9)(21,"span"),e(22,"Customer ID:"),i(),t(23,"span"),e(24),i()(),t(25,"div",9)(26,"span"),e(27,"Email:"),i(),t(28,"span"),e(29),i()(),t(30,"div",9)(31,"span"),e(32,"Date of purchase:"),i(),t(33,"span"),e(34),l(35,"date"),i()(),t(36,"div",9)(37,"span"),e(38,"Coupon Entered:"),i(),t(39,"span"),e(40),i()(),t(41,"div",9)(42,"span"),e(43,"Payment Method:"),i(),t(44,"span"),e(45),i()(),t(46,"div",9)(47,"span"),e(48,"Order Notes:"),i(),t(49,"span"),e(50),i()(),t(51,"div",9)(52,"span"),e(53,"Delivery Date:"),i(),t(54,"span"),e(55),l(56,"date"),i()()()(),t(57,"div",6)(58,"h3",7),e(59,"Address Details"),i(),t(60,"div",10)(61,"div",9),d(62,"span"),t(63,"span"),e(64,"Billing Address"),i(),t(65,"span"),e(66,"Shipping Address"),i()(),t(67,"div",9)(68,"span"),e(69,"Name:"),i(),t(70,"span"),e(71),i(),t(72,"span"),e(73),i()(),t(74,"div",9)(75,"span"),e(76,"Address:"),i(),t(77,"span"),e(78),i(),t(79,"span"),e(80),i()(),t(81,"div",9)(82,"span"),e(83,"Suburb:"),i(),t(84,"span"),e(85),i(),t(86,"span"),e(87),i()(),t(88,"div",9)(89,"span"),e(90,"State:"),i(),t(91,"span"),e(92),i(),t(93,"span"),e(94),i()(),t(95,"div",9)(96,"span"),e(97,"Postcode:"),i(),t(98,"span"),e(99),i(),t(100,"span"),e(101),i()(),t(102,"div",9)(103,"span"),e(104,"Country:"),i(),t(105,"span"),e(106),i(),t(107,"span"),e(108),i()(),t(109,"div",9)(110,"span"),e(111,"Phone:"),i(),t(112,"span"),e(113),i(),t(114,"span"),e(115),i()(),t(116,"div",9)(117,"span"),e(118,"Alternate Phone:"),i(),t(119,"span"),e(120),i(),t(121,"span"),e(122),i()()()(),t(123,"div",6)(124,"h3",7),e(125,"Product Details"),i(),t(126,"div",11)(127,"div",9)(128,"span"),e(129,"Product"),i(),t(130,"span",12),e(131,"Quantity"),i(),t(132,"span"),e(133,"Price"),i(),t(134,"span",13),e(135,"Sub Total"),i()(),re(136,ve,11,10,"div",9,ie),t(138,"div",14),d(139,"span")(140,"span"),t(141,"span"),e(142,"Sub Total:"),i(),t(143,"span",13),e(144),l(145,"appPrice"),i()(),t(146,"div",9),d(147,"span")(148,"span"),t(149,"span"),e(150,"Shipping (Delivery):"),i(),t(151,"span",13),e(152),l(153,"appPrice"),i()(),t(154,"div",9),d(155,"span")(156,"span"),t(157,"span"),e(158,"Order Discount:"),i(),t(159,"span",13),e(160),l(161,"appPrice"),i()(),t(162,"div",9),d(163,"span")(164,"span"),t(165,"span"),e(166,"Total:"),i(),t(167,"span",13),e(168),l(169,"appPrice"),i()()()(),t(170,"div",1)(171,"wui-button",2),B("onClick",function(){T(r);let u=h();return D(u.print())}),e(172," Print "),i()()()}if(n&2){let r=c,m=h();a(2),U("color",m.buttonColor),a(17),o(r.orderNumber),a(5),o(r.customerID),a(5),o(r.email),a(5),o(p(35,32,r.orderDate,"dd/MM/yyyy hh:mm:ss a")),a(6),o(r.couponCode||"None"),a(5),o(r.paymentMethod),a(5),o(r.orderNotes||""),a(5),o(p(56,35,r.deliveryDate,"dd/MM/yyyy")),a(16),G(" ",r.billingAddress.m_FirstName," ",r.billingAddress.m_LastName," "),a(2),G(" ",r.shippingAddress.m_FirstName," ",r.shippingAddress.m_LastName," "),a(5),o(m.getFullAddress(r.billingAddress)),a(2),o(m.getFullAddress(r.shippingAddress)),a(5),o(r.billingAddress.m_City),a(2),o(r.shippingAddress.m_City),a(5),o(r.billingAddress.m_State),a(2),o(r.shippingAddress.m_State),a(5),o(r.billingAddress.m_Zip),a(2),o(r.shippingAddress.m_Zip),a(5),o(r.billingAddress.m_Country),a(2),o(r.shippingAddress.m_Country),a(5),o(r.billingAddress.m_Phone),a(2),o(r.shippingAddress.m_Phone),a(5),v(" ",r.billingAddress.m_Phone2||r.billingAddress.m_Phone3||""," "),a(2),v(" ",r.shippingAddress.m_Phone2||r.shippingAddress.m_Phone3||""," "),a(14),ne(r.cartItems),a(8),o(p(145,38,r.orderTotal.cartTotal,"zero")),a(8),o(p(153,41,r.orderTotal.shippingTotal,"zero")),a(8),v("-",p(161,44,r.orderTotal.totalDiscount,"zero")),a(8),o(p(169,47,r.orderTotal.total,"zero")),a(3),U("color",m.buttonColor)}}function Ae(n,c){n&1&&(t(0,"div")(1,"p",15),e(2," Hi there, "),d(3,"br"),e(4," Thank y
1ou for your purchase. your order has been received however this page has expired. "),d(5,"br"),e(6," For all enquiries please contact our Sales Team toll free on 1300 000 500. "),d(7,"br"),e(8," Alternatively you can leave us a message by "),t(9,"a",16),e(10," clicking here "),i(),e(11," and one of our sales teams will be in contact with you as soon as possible. "),d(12,"br"),e(13," Kind Regards, "),d(14,"br"),e(15," Appliances Online "),i()())}var V=(()=>{class n{constructor(){this.store=s(C),this.windowRef=s(pe),this._window=this.windowRef.nativeWindow,this.buttonColor=Se.aolBlue,this.orderSummary$=this.store.select(Ee),this.hasOrderSummaryError$=this.store.select(Pe)}ngOnInit(){this.initOrderSummaryPage()}ngOnDestroy(){this.unloadOrderSummaryPage()}initOrderSummaryPage(){this.store.dispatch(x())}unloadOrderSummaryPage(){this.store.dispatch(M())}getFullAddress(r){return[r.m_Company,r.m_Address1,r.m_Address2].filter(Boolean).join(", ")}print(){this._window.print()}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275cmp=te({type:n,selectors:[["aol-order-summary-page"]],decls:4,vars:6,consts:[[1,"main-inner","full-padding","print"],[1,"actions"],[3,"onClick","color"],[1,"head"],[1,"title"],[1,"note"],[1,"section"],[1,"section-title"],[1,"table","customer"],[1,"table-row"],[1,"table","address"],[1,"table","product"],[1,"align-center"],[1,"align-right"],[1,"table-row","total"],[1,"error-message"],["href","/contact-us","target","_self"]],template:function(m,u){if(m&1&&
1(F(0,Ce,173,50,"div",0),l(1,"async"),F(2,Ae,16,0,"div"),l(3,"async")),m&2){let Z;N((Z=k(1,2,u.orderSummary$))?0:-1,Z),a(2),N(k(3,4,u.hasOrderSummaryError$)?2:-1)}},dependencies:[ge,oe,me,xe],styles:[".actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}@media print{.actions[_ngcontent-%COMP%]{display:none}}.head[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:16px;text-align:center}.title[_ngcontent-%COMP%]{margin-bottom:0;font-weight:700}.note[_ngcontent-%COMP%]{font-size:10px}.section-title[_ngcontent-%COMP%]{margin-bottom:0;padding:12px;border:1px solid rgba(0,181,204,.5);background-color:#00b5cc33}.table[_ngcontent-%COMP%]{margin:0;padding:12px;width:100%}.table[_ngcontent-%COMP%] .table-row[_ngcontent-%COMP%]{display:grid;line-height:1.8}.table[_ngcontent-%COMP%] .table-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{align-items:center}.table.customer[_ngcontent-%COMP%] .table-row[_ngcontent-%COMP%]{grid-template-columns:1fr 2fr;grid-template-rows:minmax(auto,1fr)}.table.address[_ngcontent-%COMP%] .table-row[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr);grid-template-rows:minmax(auto,1fr)}.table.product[_ngcontent-%COMP%] .table-row[_ngcontent-%COMP%]{grid-template-columns:minmax(160px,2fr) repeat(3,minmax(100px,140px));grid-template-rows:minmax(auto,1fr)}.table[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{margin-top:24px}.table[_ngcontent-%COMP%] .align-center[_ngcontent-%COMP%]{text-align:center}.table[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}@media print{[_nghost-%COMP%]{display:block}}.error-message[_ngcontent-%COMP%]{padding:54px;color:#8b8a96;line-height:2.5}"]})}}return n})();var he=(()=>{class n{constructor(){this.http=s(de)}getOrderSummary(r){return this.http.get("/api/checkout/order-summary",{params:{orderGuid:r},withCredentials:!0})}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var H=(()=>{class n{constructor(){this.store=s(C),this.actions$=s(ue),this.orderSummaryPageService=s(he),this.getOrderSummary$=Y(()=>this.actions$.pipe($(y),J(r=>this.orderSummaryPageService.getOrderSummary(r.orderGuid).pipe(R(m=>b({orderSummary:m})),X(()=>Q(I())))))),this.initOrderSummaryPage$=Y(()=>this.actions$.pipe($(x),ee(this.store.select(Oe)),R(([r,m])=>y({orderGuid:m}))))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275prov=f({token:n,factory:n.\u0275fac})}}return n})();var W={orderSummary:null,isLoading:!1,isError:!1},be=se(W,g(x,()=>W),g(M,()=>W),g(y,n=>_(O({},n),{isLoading:!0})),g(b,(n,c)=>_(O({},n),{orderSummary:c.orderSummary,isLoading:!1})),g(I,n=>_(O({},n),{isError:!0})));function q(n,c){return be(n,c)}var Ie=[{path:`:${E}`,component:V,providers:[w(j.forFeature([H]),L.forFeature(P,q))]},{path:`:${E}/`,component:V,providers:[w(j.forFeature([H]),L.forFeature(P,q))]},{path:"",loadComponent:()=>import("./chunk-VTESPVYT.js").then(n=>n.AolNotFoundComponent)}];export{Ie as AOL_ORDER_SUMMARY_PAGE_ROUTES};
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.