PageSourceSearch

https://surf-shop-pos.web.app/4129.044b4bfe6604c48c.js

js surf-shop-pos.web.app collected 2026-10-03 12:40:23 UTC 110,677 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkCCSApp=self.webpackChunkCCSApp||[]).push([[4129,9447,1828,7418],{85037:(z,j,c)=>{c.d(j,{N:()=>e});var E=c(54438);let e=(()=>{var B;class y{constructor(D,r){this.el=D,this.renderer=r}ngOnChanges(){var D;this.renderer.setProperty(this.el.nativeElement,"innerHTML",null!==(D=this.html)&&void 0!==D?D:"")}}return(B=y).\u0275fac=function(D){return new(D||B)(E.rXU(E.aKT),E.rXU(E.sFG))},B.\u0275dir=E.FsC({type:B,selectors:[["","tiptapContent",""]],hostAttrs:[1,"tiptap-content"],inputs:{html:[E.Mj6.None,"tiptapContent","html"]},standalone:!0,features:[E.OA$]}),y})()},6859:(z,j,c)=>{c.d(j,{g:()=>y});var E=c(43031),e=c(54438),B=c(51188);let y=(()=>{var _;class D{navPayment(){this.route.navigate(["/oracle-pay-view"])}constructor(h,f){this.dateHelper=h,this.route=f}navReservations(){this.route.navigate(["/oracle-reservations"])}getOraclePOST(h,f,p){const n={criteria:{}};n.criteria.charges={};let i={transactionCode:"2000",articleCode:""},o={};return o.amount=h.amountPaid,o.currencyCode="USD",i.price=o,i.postingQuantity=1,i.postingReference=p.oracleRoomChargeRemark,i.postingReference=this.getUrl(null==f?void 0:f.orderCode),i.checkNumber=f.orderCode,i.applyRoutingInstructions=!1,i.usePackageAllowance=!1,i.autoPosting=!0,i.cashierId=+p.oracleCashierID,i.folioWindowNo=3,n.criteria.charges=[],n.criteria.charges.push(i),n.criteria.reservationId={},n.criteria.reservationId.id=f.clients_POSOrders.accountNumber,n.criteria.postIt=!1,n.criteria.incomeAuditDate=this.dateHelper.getYearMonthDay(new Date),n.criteria.cashierId=+p.oracleCashierID,n}getUrl(h){return window.location.origin+`/qr-receipt;orderCode=${h}`}}return(_=D).\u0275fac=function(h){return new(h||_)(e.KVO(E.c),e.KVO(B.Ix))},_.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),D})()},75744:(z,j,c)=>{c.d(j,{ih:()=>y});var E=c(31688),e=c(54438),B=c(21626);let y=(()=>{var f;class p{constructor(t,i){this.http=t,this.siteService=i,this.controller="/Shippo/"}buildShippingAddressFromOrder(t){var i;const o=t.clients_POSOrders,u=o&&([o.firstName,o.lastName].filter(Boolean).join(" ").trim()||o.userName)||"";return{name:t.shipName||u,company:"",street1:t.shipAddress||"",street2:t.shipAddress2||"",city:t.shipCity||"",state:t.shipState||"",zip:t.shipPostalCode||t.shipPostal||"",country:"US",phone:t.orderPhone||(null==o?void 0:o.phone)||(null==o?void 0:o.cellPhone)||"",email:(null===(i=t.orderFeatures)||void 0===i?void 0:i.guestEmail)||(null==o?void 0:o.email)||"",isResidential:!0}}buildParcelsFromOrderItems(t){return t.filter(i=>{const o=i.menuItem;return o&&(null!=o.shippingLengthIn||null!=o.shippingWeightOz)}).map(i=>{const o=i.menuItem;return{length:(null==o?void 0:o.shippingLengthIn)||0,width:(null==o?void 0:o.shippingWidthIn)||0,height:(null==o?void 0:o.shippingHeightIn)||0,distanceUnit:"in",weight:((null==o?void 0:o.shippingWeightOz)||0)*(i.quantity||1),massUnit:"oz",declaredValue:i.subTotal||0,metadata:String(i.productID)}})}getShippingRates(t,i,o){const m=`${this.siteService.getAssignedSite().url}${this.controller}GetRates`;return this.http.post(m,{addressFrom:t,addressTo:i,parcels:o,async:!1})}getRatesForOrder(t,i){const o=this.buildShippingAddressFromOrder(t),u=this.buildParcelsFromOrderItems(t.posOrderItems||[]);return this.getShippingRates(i,o,u)}getShippingOptions(t,i=!1){const u=`${this.siteService.getAssignedSite().url}${this.controller}GetShippingOptions`,m={addressTo:this.buildShippingAddressFromOrder(t),orderId:t.id||0,ignorePackageGrouping:i};return this.http.post(u,m)}refreshPackageGroups(t){const o=`${this.siteService.getAssignedSite().url}${this.controller}RefreshPackageGroups?orderId=${t}`;return this.http.post(o,{})}selectRate(t,i){const u=`${this.siteService.getAssignedSite().url}${this.controller}SelectRate?orderId=${i}`;return this.http.post(u,t)}purchaseLabel(t,i,o){const m=`${this.siteService.getAssignedSite().url}${this.controller}PurchaseLabel`;return this.http.post(m,{rateId:t,orderId:i,labelFileType:o||"PDF_4x6",metadata:`Order ${i}`})}getTrackingStatus(t){const o=`${this.siteService.getAssignedSite().url}${this.controller}GetTracking?trackingNumber=${encodeURIComponent(t)}`;return this.http.get(o)}validateAddress(t){const o=`${this.siteService.getAssignedSite().url}${this.controller}ValidateAddress`;return this.http.post(o,t)}updateShippingDimensions(t){const o=`${this.siteService.getAssignedSite().url}Products/UpdateShippingDimensions`;return this.http.post(o,t)}}return(f=p).\u0275fac=function(t){return new(t||f)(e.KVO(B.Qq),e.KVO(E.I))},f.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),p})();c(10467)},67289:(z,j,c)=>{c.d(j,{a:()=>_});var E=c(44668),e=c(56977),B=c(54438),y=c(21626);let _=(()=>{var D;
1class r{constructor(f){this.http=f,this.cache=new Map}getStyles(f){return this.cache.has(f)||this.cache.set(f,this.http.get(`${f}?v=${Date.now()}`,{responseType:"text"}).pipe((0,E.t)(1))),this.cache.get(f)}inject(f,p,n){this.getStyles(p).pipe((0,e.Q)(n)).subscribe(t=>{let i=document.getElementById(f);i||(i=document.createElement("style"),i.id=f,document.head.appendChild(i)),i.innerHTML=t})}}return(D=r).\u0275fac=function(f){return new(f||D)(B.KVO(y.Qq))},D.\u0275prov=B.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),r})()},55660:(z,j,c)=>{c.d(j,{v:()=>r});var E=c(84412),e=c(7673),B=c(83405),y=c(31688),_=c(54438),D=c(21626);let r=(()=>{var h;class f{setOrderHeaderMenuButtonList(n){this._menuButtonList.next(n)}constructor(n,t,i){this.http=n,this.httpCache=t,this.sitesService=i,this._menuButtonList=new E.t(null),this.menuButtonList$=this._menuButtonList.asObservable(),this.functions=[{id:19,name:"Change Order Type",icon:"service",function:"changeOrderType",group:"order"},{id:0,name:"DRW 1",icon:"register",function:"openDrawer1",group:"drawer"},{id:1,name:"DRW 2",icon:"register",function:"openDrawer2",group:"drawer"},{id:2,name:"DRW 3",icon:"register",function:"openDrawer3",group:"drawer"},{id:31,name:"Open Drw1 v2",icon:"register",function:"openDrawerV2One",group:"drawer"},{id:32,name:"Open Drw2 v2",icon:"register",function:"openDrawerV2Two",group:"drawer"},{id:33,name:"Check Drw1",icon:"register",function:"checkDrawerV2One",group:"drawer"},{id:34,name:"Check Drw2",icon:"register",function:"checkDrawerV2Two",group:"drawer"},{id:35,name:"Check Drawers",icon:"register",function:"checkAllDrawers",group:"drawer"},{id:3,name:"Edit Order",icon:"edit",function:"editOrder",group:"drawer"},{id:4,name:"Email Order",icon:"email",function:"emailOrder",group:"order"},{id:13,name:"Last Order",icon:"",function:"lastOrder",group:"order"},{id:15,name:"POST To ShipDay",icon:"email",function:"postToShipDay",group:"order"},{id:5,name:"Price 1",icon:"",function:"price(1)",group:"order"},{id:6,name:"Price 2",icon:"",function:"price(2)",group:"order"},{id:7,name:"Price 3",icon:"",function:"price(3)",group:"order"},{id:8,name:"Print Labels",icon:"label",function:"printLabels",group:"order"},{id:9,name:"QRLink",icon:"",function:"qrLink",group:"order"},{id:10,name:"Suspend",icon:"hold",function:"suspendOrder",group:"order"},{id:5,name:"Standard Price",icon:"money",function:"price(0)",group:"order"},{id:11,name:"TextOrder",icon:"phone",function:"textOrder",group:"order"},{id:14,name:"Sort POS Items",icon:"sort",function:"togglePOSORderItemSort",group:"order"},{id:12,name:"Void Order",icon:"delete",function:"voidOrder",group:"order"},{id:16,name:"Void Request",icon:"delete",function:"voidOrderRequest",group:"order"},{id:18,name:"Gift/Store CreditLookup",icon:"credit_card",function:"giftCardLookup",group:"order"},{id:18,name:"Oracle Search",icon:"search",function:"oracleReservationSearch",group:"order"},{id:19,name:"Oracle Key Scan",icon:"key",function:"oracleKeyScan",group:"order"},{id:20,name:"Navigation",icon:"key",function:"navigate",group:"order"},{id:21,name:"Pax Restart",icon:"key",function:"paxRestart",group:"order"},{id:22,name:"Set Prep Time Line Complete",icon:"event",function:"setPrepTimeLineComplete",group:"order"},{id:23,name:"Address Selector",icon:"address",function:"addressSelector",group:"order"},{id:24,name:"Email Address Selector",icon:"email",function:"emailAddressSelector",group:"order"},{id:25,name:"Email Address Input",icon:"email",function:"emailOrderByEntry",group:"order"},{id:26,name:"Get Order Catalog Details",icon:"list",function:"getPOSOrderWithMenuItems",group:"order"},{id:27,name:"Pax Get Card Holder Data",icon:"credit_card",function:"getCardDataCollection",group:"order"},{id:36,name:"Data Cap Reconcile Payments",icon:"credit_card",function:"reconcilePayments",group:"order"},{id:38,name:"Create Waypoint",icon:"route",function:"assignToRoute",group:"order"},{id:39,name:"View Package Groups",icon:"inventory_2",function:"viewPackageGroups",group:"order"},{id:40,name:"Purchase Shipping Label",icon:"local_shipping",function:"purchaseShippingLabel",group:"order"},{id:41,name:"Reserve Rental",icon:"event_available",function:"reserveRental",group:"order"},{id:42,name:"Hand Out Rental",icon:"assignment_turned_in",function:"checkoutRental",group:"order"},{id:43,name:"Return Rental",icon:"assignment_return",function:"returnRental",group:"order"}]}parseProperties(n){return JSON.parse(n)}filterMenuButtons(n){const t=new Map;
1return n.forEach(i=>{const o=this.parseProperties(i.properties);if(t.has(i.name)){const u=t.get(i.name),m=this.parseProperties(u.properties);o.method&&!m.method&&t.set(i.name,i)}else t.set(i.name,i)}),Array.from(t.values())}getGroups(n){return JSON.parse(localStorage.getItem("user"))?this.httpCache.get({url:`${n.url}/mb_MenuButtonGroups/GetGroups`,cacheMins:0}):(0,e.of)(null)}getGroupsByName(n,t){return t&&JSON.parse(localStorage.getItem("user"))?this.httpCache.get({url:`${n.url}/MB_MenuButtonGroups/GetMenuItems?name=${t}`,cacheMins:0}):(0,e.of)(null)}getGroupByIDCache(n,t){if(!t||0==t)return(0,e.of)(null);const O=this.sitesService.getCacheURI(`${n.url}/MB_MenuButtonGroups/GetGroup?id=${t}`);return this.httpCache.get(O)}getGroupByID(n,t){return t&&0!=t&&JSON.parse(localStorage.getItem("user"))?(console.log("get Group"),this.httpCache.get({url:`${n.url}/MB_MenuButtonGroups/GetGroup?id=${t}`,cacheMins:0})):(0,e.of)(null)}putGroup(n,t){return this.http.put(`${n.url}/MB_MenuButtonGroups/PutGroup?id=${t.id}`,t)}postGroup(n,t){return this.http.post(`${n.url}/MB_MenuButtonGroups/PostGroup`,t)}deleteGroup(n,t){return t&&0!=t?this.http.delete(`${n.url}/MB_MenuButtonGroups/deleteGroup?id=${t}`):(0,e.of)(null)}getButtonByName(n,t){return t?this.httpCache.get({url:`${n.url}/MB_MenuButtons/GetMB_MenuButton?name=${t}
1`,cacheMins:0}):(0,e.of)(null)}getButtonsByID(n,t){return t&&0!=t?this.httpCache.get({url:`${n.url}/MB_MenuButtons/GetMB_MenuButton?id=${t}`,cacheMins:0}):(0,e.of)(null)}putButton(n,t){return t&&t.id?this.http.put(`${n.url}/MB_MenuButtons/PutMB_MenuButton?id=${t.id}`,t):null}postButton(n,t){return t?this.http.post(`${n.url}/mB_MenuButtons/PostMB_MenuButton`,t):null}postButtonList(n,t,i,o){return this.http.post(`${n.url}/mB_MenuButtons/PostmB_MenuButtons?groupName=${i}&reset=${o}`,t)}deleteButton(n,t){return this.http.delete(`${n.url}/mB_MenuButtons/DeletemB_MenuButtons?id=${t}`)}generateDefaultOrderButtons(n){const t=[];let i={};i.mb_MenuButtonGroupID=n,i.name="Items",i.icon="list",i.sort=1;let o=this.getOrderDefaultButtonProperties();return o.method="showItems()",o.smallDeviceOnly=!0,i.properties=JSON.stringify(o),t.push(i),i={},i.mb_MenuButtonGroupID=n,i.name="Suspend",i.icon="",i.sort=2,o.color="warn",o=this.getOrderDefaultButtonProperties(),o.method="removeSuspension()",i.properties=JSON.stringify(o),t.push(i),i={},i.mb_MenuButtonGroupID=n,i.name="Delete",i.icon="delete",i.sort=3,o.color="warn",o=this.getOrderDefaultButtonProperties(),o.method="deleteOrder()",i.properties=JSON.stringify(o),t.push(i),i={},i.mb_MenuButtonGroupID=n,i.name="Check Out / Pay",i.icon="credit_card",i.sort=4,o=this.getOrderDefaultButtonProperties(),o.method="makePayment()",o.sidePanelOnly=!0,i.properties=JSON.stringify(o),t.push(i),i={},i.mb_MenuButtonGroupID=n,i.name="Labels",i.icon="print",i.sort=5,o.method="printLabels()",o=this.getOrderDefaultButtonProperties(),i.properties=JSON.stringify(o),t.push(i),i={},i.mb_MenuButtonGroupID=n,i.name="Re-Print Labels",i.icon="print",i.sort=6,o.method="rePrintLabels()",o=this.getOrderDefaultButtonProperties(),i.properties=JSON.stringify(o),t.push(i),i={},i.mb_MenuButtonGroupID=n,i.name="Void",i.icon="delete",i.sort=7,o.method="voidOrder()",o.color="warn",o=this.getOrderDefaultButtonProperties(),i.properties=JSON.stringify(o),t.push(i),i={},i.mb_MenuButtonGroupID=n,i.name="Leave",i.icon="",i.sort=7,o.method="clearOrder()",o=this.getOrderDefaultButtonProperties(),o.color="warn",i.properties=JSON.stringify(o),t.push(i),i={},i.mb_MenuButtonGroupID=n,i.name="Order Details",i.icon="",i.sort=26,o.method="getPOSOrderWithMenuItems()",o=this.getOrderDefaultButtonProperties(),o.color="accent",i.properties=JSON.stringify(o),t.push(i),t}getOrderDefaultButtonProperties(){return{completedOrder:!1,completedOrderAndUser:!1,balanceRemainingGreaterThanZero:!0,allowUser:!0,allowStaff:!0,itemsPrinted:!0,isAuthorized:!0,suspendedOrders:!0,sidePanelOnly:!1,mainPanelOnly:!1,orderHistory:!1,smallDeviceOnly:!1,color:"primary"}}resetOrderButtons(n,t){const i=this.generateDefaultOrderButtons(t);return this.postButtonList(n,i,"Order Buttons",!0)}}return(h=f).\u0275fac=function(n){return new(n||h)(_.KVO(D.Qq),_.KVO(B.PM),_.KVO(y.I))},h.\u0275prov=_.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),f})()},12957:(z,j,c)=>{c.d(j,{U:()=>h});var E=c(31688),e=c(28398),B=c(25558),_=(c(7673),c(10873)),D=c(8591),r=c(54438);let h=(()=>{var f;class p{constructor(t,i,o,u){this.requestMessageService=t,this.authLinkService=i,this.sendGridService=o,this.siteService=u}communicationRequest(t,i,o,u){return this.orderCommunication(t,i,"oc",o,u)}orderCommunication(t,i,o,u,m){const O=this.siteService.getAssignedSite(),x={};let w="";t.tableName&&(w=t.tableName);let $="";var U,b,v;return t.customerName&&($=t.customerName),x.message=m,x.subject=`${m} ${t.id} - ${w} -  ${$}`,x.type="OC",x.orderID=t.id,x.method=`openOrder;id=${t.id}`,x.userID=i.id,x.userRequested=(null==i?void 0:i.firstName)+(null==i?void 0:i.lastName),this.authLinkService.isStaff&&(x.employeeID=null==t?void 0:t.employeeID),this.authLinkService.user&&(x.senderID=null===(U=this.authLinkService.user)||void 0===U?void 0:U.id,x.senderName=`${null===(b=this.authLinkService)||void 0===b||null===(b=b.user)||void 0===b?void 0:b.firstName}  ${null===(v=this.authLinkService)||void 0===v||null===(v=v.user)||void 0===v?void 0:v.lastName}`),this.requestMessageService.saveMessage(O,x)}requestPriceChange(t,i,o){return this.requestItemEdit(t,i,o,"PC","Price Change Request - "," have the price adjusted.")}requestRefund(t,i,o){return this.requestItemEdit(t,i,o,"refundItem","Refund Item request - "," be refunded.")}requestVoidItem(t,i,o){return this.requestItemEdit(t,i,o,"voidItem","Void Item request - "," be voided.")}requestItemEdit(t,i,o,u,m,O){const x=this.siteService.getAssignedSite(),w={};let $="";i.tableName&&($=i.tableName);let U="";i.customerName&&(U=i.customerName);let R="";var P,k,C;return t.serialCode&&(R=` having a serial code of ${t.serialCode},`),w.message=`${o.firstName} is requesting Item ${t.productName} ${t.unitName},${R}\n                      having a quantity of ${t.quantity}, ${O}.`,w.subject=`${m} ${i.id} - ${$} -  ${U}`,w.type="PC",w.orderItemID=t.id,w.orderID=i.id,w.method=`priceChange;id=${t.id}`,w.userID=o.id,w.userRequested=(null==o?void 0:o.firstName)+(null==o?void 0:o.lastName),this.authLinkService.isStaff&&(w.employeeID=i.employeeID),this.authLinkService.user&&(w.senderID=null===(P=this.authLinkService.user)||void 0===P?void 0:P.id,w.senderName=`${null===(k=this.authLinkService)||void 0===k||null===(k=k.user)||void 0===k?void 0:k.firstName}  ${null===(C=this.authLinkService)||void 0===C||null===(C=C.user)||void 0===C?void 0:C.lastName}`),this.requestMessageService.saveMessage(x,w)}requestItem(t,i){const o=this.siteService.getAssignedSite(),u={};var m,O,x;return u.message=`${i.tableName} is requesting Item ${t.productName} - ${t.unitName}.`,u.subject=`Item Request - ${i.tableName}`,u.type="IR",u.method=`menuitems;id=${t.productID}`,u.userID=i.employeeID,u.userRequested=i.employeeName,this.authLinkService.user&&(u.senderID=null===(m=this.authLinkService.user)||void 0===m?void 0:m.id,u.senderName=`${null===(O=this.authLinkService)||void 0===O||null===(O=O.user)||void 0===O?void 0:O.firstName}  ${null===(x=this.authLinkService)||void 0===x||null===(x=x.user)||void 0===x?void 0:x.lastName}`),this.requestMessageService.saveMessage(o,u)}prepCompleted(t,i,o){var u;if(!t)return;const m=this.siteService.getAssignedSite();let O={};O.message=`${i} ${t.id}`,O.subject=`${i} : ${t.id}`,O.type="TSR",O.method=`order;id=${t.id}`,O.orderID=t.id,O.archived=!0,O=this.assignCustomerEmployee(t,O);let x=null===(u=O)||void 0===u?void 0:u.message;return this.requestMessageService.saveMessage(m,O).pipe((0,B.n)(w=>this.sendGridService.sendTemplateOrder(t.id,t.history,o,"Staff Request","",x,x,O.method,!1,"")))}requestVoidOrder(t,i){const o=this.siteService.getAssignedSite();let u={};return u.message=`Please void this order : ${t.id}`,u.subject=`Please void this order : ${t.id}`,u.type="IR",u.method=`requestVoidOrder;id=${t.id}`,u.orderID=t.id,u=this.assignCustomerEmployee(t,u),this.requestMessageService.saveMessage(o,u).pipe((0,B.n)(m=>this.sendGridService.sendTemplateOrder(t.id,t.history,i,"Staff Request","","Void Order Request","Please void order :"+(null==t?void 0:t.id),"",!1,"")))}requestService(t){const i=this.siteService.getAssignedSite();let o={};return o.message=`${t.tableName} is requesting service.`,o.subject=`Service requested at table ${t.tableName}`,o.type="TSR",o.method=`${t.id}`,o=this.assignCustomerEmployee(t,o),this.requestMessageService.saveMessage(i,o)}requestCheck(t){const i=this.siteService.getAssignedSite();let o={};return o.message=`${t.tableName} is requesting Check.`,o.subject=`Check requested at table ${t.tableName}`,o.type="CSR",o.method=`${t.id}`,o=this.assignCustomerEmployee(t,o),this.requestMessageService.saveMessage(i,o)}assignCustomerEmployee(t,i){var o,u,m;return i.employeeID=t.employeeID,i.userRequested=t.employeeName,this.authLinkService.user&&(i.senderID=null===(o=this.authLinkService.user)||void 0===o?void 0:o.id,i.senderName=`${null===(u=this.authLinkService)||void 0===u||null===(u=u.user)||void 0===u?void 0:u.firstName}  ${null===(m=this.authLinkService)||void 0===m||null===(m=m.user)||void 0===m?void 0:m.lastName}`),i}getCurrentUsersOpenMessages(){if(!this.authLinkService.user||this.authLinkService.user&&"temp"===this.authLinkService.user.userName)return;const i=this.siteService.getAssignedSite();return this.requestMessageService.getRequestMessagesByCurrentUser(i,{pageNumber:1,pageSize:25})}}return(f=p).\u0275fac=function(t){return new(t||f)(r.KVO(e.K),r.KVO(D.T),r.KVO(_.Q),r.KVO(E.I))},f.\u0275prov=r.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),p})()},22365:(z,j,c)=>{c.d(j,{v:()=>B});var E=c(54438),e=c(21626);let B=(()=>{var y;class _{constructor(r){this.http=r}getRoutesByFilter(r,h){return this.http.post(`${r.url}/Routes/GetDispatcherListByRouteFilter`,h)}getRoute(r,h){return this.http.get(`${r.url}/Routes/GetRoute?id=${h}`)}saveRoute(r,h){return h.id?this.updateRoute(r,h):this.addRoute(r,h)}
1addRoute(r,h){return this.http.post(`${r.url}/Routes/PostRoute`,h)}updateRoute(r,h){return this.http.put(`${r.url}/Routes/PutRoute?id=${h.id}`,h)}deleteRoute(r,h){return this.http.delete(`${r.url}/Routes/DeleteRoute?id=${h}`)}getRouteDetails(r,h){return this.http.get(`${r.url}/RouteDetails/GetRouteDetails?routeID=${h}`)}getRouteDetail(r,h){return this.http.get(`${r.url}/RouteDetails/GetRouteDetail?id=${h}`)}saveRouteDetail(r,h){return h.id?this.updateRouteDetail(r,h):this.addRouteDetail(r,h)}addRouteDetail(r,h){return this.http.post(`${r.url}/RouteDetails/PostRouteDetail`,h)}updateRouteDetail(r,h){return this.http.put(`${r.url}/RouteDetails/PutRouteDetail?id=${h.id}`,h)}deleteRouteDetail(r,h){return this.http.delete(`${r.url}/RouteDetails/DeleteRouteDetail?id=${h}`)}updateStopSortOrder(r,h){return this.http.put(`${r.url}/RouteDetails/UpdateSortOrder`,h)}getPendingRouteDetails(r,h,f){return this.http.get(`${r.url}/RouteDetails/GetUnassigned${h?`?startDate=${h}&endDate=${null!=f?f:h}`:""}`)}assignOrderUUID(r,h,f){return this.http.get(`${r.url}/RouteDetails/AssignOrderUUID?id=${h}&orderUUID=${f}`)}assignByOrderID(r,h){return this.http.get(`${r.url}/RouteDetails/AssignByOrderID?id=0&orderID=${h}`)}newEmptyDetail(r){return{id:0,routeID:r,orderID:0,orderUUID:"",sortOrder:0,creationdate:null,scheduledDate:null,shipDate:null,completedDate:null,eta:null,serviceTypeID:0,statusID:0,dispatcherNotes:"",driverNotes:"",customerNotes:"",resolutionNotes:"",inStoreOrderPrepNotes:"",isReadyToShip:0,orderPreppedByEmployeeID:0,staticDistanceFromLastRouteDetail:0,rateCost:0,rateFlatFee:0,feePayDate:null,shipName:"",shipAddress:"",shipAddress2:"",shipCity:"",shipState:"",shipPostalCode:"",lat:null,lng:null}}newEmptyRoute(){return{id:0,createdDate:null,completionDate:null,driverID:null,dispatcherID:null,notes:"",vehicle:"",isReadyToDrive:0,startDate:null,driverLocation:"",activeDelivery:0,routeDate:(new Date).toISOString().substring(0,10),optimizationMode:"driving-car",routeDetails:[]}}}return(y=_).\u0275fac=function(r){return new(r||y)(E.KVO(e.Qq))},y.\u0275prov=E.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),_})()},96219:(z,j,c)=>{c.d(j,{R:()=>b});var E=c(60177),e=c(25558),B=c(65468),y=c(31688),_=c(8591),D=c(99740),r=c(28398),h=c(7498),f=c(14997),p=c(23327),n=c(54438),t=c(85956),i=c(99213),o=c(46879);function u(v,R){1&v&&n.nrm(0,"div")}function m(v,R){if(1&v){const P=n.RV6();n.j41(0,"div")(1,"button",8),n.bIt("click",function(){const C=n.eBV(P).$implicit,I=n.XpG(3);return n.Njj(I.sendMessage(C,I.order))}),n.EFF(2),n.k0s()()}if(2&v){const P=R.$implicit;n.R7$(2),n.SpI(" ",null==P?null:P.subject," ")}}function O(v,R){if(1&v&&(n.j41(0,"div"),n.DNE(1,m,3,1,"div",7),n.k0s()),2&v){const P=R.ngIf;n.R7$(),n.Y8G("ngForOf",P)}}function x(v,R){if(1&v&&(n.j41(0,"div"),n.DNE(1,O,2,1,"div",2),n.nI1(2,"async"),n.k0s()),2&v){const P=n.XpG();n.R7$(),n.Y8G("ngIf",n.bMT(2,1,P.messagesZero$))}}function w(v,R){if(1&v){const P=n.RV6();n.j41(0,"div")(1,"button",8),n.bIt("click",function(){const C=n.eBV(P).$implicit,I=n.XpG(3);return n.Njj(I.sendMessage(C,I.order))}),n.EFF(2),n.k0s()()}if(2&v){const P=R.$implicit;n.R7$(2),n.SpI(" ",null==P?null:P.subject," ")}}function $(v,R){if(1&v&&(n.j41(0,"div"),n.DNE(1,w,3,1,"div",7),n.k0s()),2&v){const P=R.ngIf;n.R7$(),n.Y8G("ngForOf",P)}}function U(v,R){if(1&v&&(n.j41(0,"div"),n.DNE(1,$,2,1,"div",2),n.nI1(2,"async"),n.k0s()),2&v){const P=n.XpG();n.R7$(),n.Y8G("ngIf",n.bMT(2,1,P.messagesNotZero$))}}let b=(()=>{var v;class R{constructor(k,C,I,T,A,W){this.platFormService=k,this.authLinkSerivce=C,this.orderMethodsService=I,this.orderService=T,this.siteService=A,this.requestMessageService=W,this.messagesNotZero$=this.requestMessageService.getTemplateBalanceIsNotZeroMessages(),this.messagesZero$=this.requestMessageService.getTemplateBalanceIsZeroMessages(),this.buttonStyle="payment-button"}ngOnInit(){this.isApp=this.platFormService.isApp()}sendMessage(k,C){const I=this.siteService.getAssignedSite(),T=this.orderService.touchOrder(I,C.id,!0);this.action$=this.orderMethodsService.sendOrderForMessageService(k,C).pipe((0,e.n)(A=>T))}}return(v=R).\u0275fac=function(k){return new(k||v)(n.rXU(D.f),n.rXU(_.T),n.rXU(h.iX),n.rXU(B.BZ),n.rXU(y.I),n.rXU(r.K))},v.\u0275cmp=n.VBU({type:v,selectors:[["message-menu-sender"]],inputs:{buttonStyle:"buttonStyle",order:"order",isStaff:"isStaff"},standalone:!0,features:[n.aNF],decls:17,vars:9,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],[4,"ngIf"],["aria-label","user menu","mat-raised-button","",3,"click","matMenuTriggerFor"],[1,"mat-menu-panel",3,"overlapTrigger"],[3,"mouseleave"],["mat-raised-button","","color","warn",3,"click"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",1,"payment-button",3,"click"]],template:function(k,C){if(1&k){const I=n.RV6();n.DNE(0,u,1,0,"div",2),n.nI1(1,"async"),n.j41(2,"button",3,0),n.bIt("click",function(){n.eBV(I);const A=n.sdS(3);return n.Njj(A.openMenu())}),n.j41(4,"mat-icon"),n.EFF(5,"email"),n.k0s(),n.EFF(6," Notify\n"),n.k0s(),n.j41(7,"mat-menu",4,1)(9,"span",5),n.bIt("mouseleave",function(){n.eBV(I);const A=n.sdS(3);return n.Njj(A.closeMenu())}),n.DNE(10,x,3,3,"div",2)(11,U,3,3,"div",2),n.j41(12,"div")(13,"button",6),n.bIt("click",function(){return n.eBV(I),n.Njj(C.orderMethodsService.openOrderMessages(C.order))}),n.j41(14,"mat-icon"),n.EFF(15,"open_in_new"),n.k0s(),n.EFF(16,"View Messages "),n.k0s()()()()}if(2&k){const I=n.sdS(8);n.Y8G("ngIf",n.bMT(1,7,C.action$)),n.R7$(2),n.HbH(C.buttonStyle),n.Y8G("matMenuTriggerFor",I),n.R7$(5),n.Y8G("overlapTrigger",!1),n.R7$(3),n.Y8G("ngIf",0===C.order.balanceRemaining&&C.isStaff),n.R7$(),n.Y8G("ngIf",0!==C.order.balanceRemaining&&C.isStaff)}},dependencies:[E.MD,E.Sq,E.bT,E.Jj,f.l,t.iV,i.An,o.pI,o.fS,p.T],styles:["button[_ngcontent-%COMP%]{width:115px;height:65px}@media (max-width: 599px){button[_ngcontent-%COMP%]{width:115px;height:65px}}.small-button[_ngcontent-%COMP%]{width:55px;height:55px;font-size:.8em}button[_ngcontent-%COMP%]{text-overflow:ellipsis;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;overflow:hidden;white-space:normal;line-height:1em;text-align:center}"]}),R})()},64039:(z,j,c)=>{c.d(j,{o:()=>n});var E=c(60177),e=c(54438),B=c(14997),y=c(99213);const _=[[["","title",""]]],D=["[title]"];function r(t,i){1&t&&(e.j41(0,"div",12)(1,"mat-icon",7),e.EFF(2,"error_outline"),e.k0s(),e.j41(3,"span"),e.EFF(4,"Applies a timeline to track progress."),e.k0s()())}function h(t,i){1&t&&e.nrm(0,"hr",13)}function f(t,i){if(1&t){const o=e.RV6();e.j41(0,"div",5)(1,"button",6),e.bIt("click",function(){const m=e.eBV(o).$implicit,O=e.XpG(2);return e.Njj(O.sendEventMessage(m))}),e.j41(2,"mat-icon",7),e.EFF(3,"email"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div",8),e.DNE(7,r,5,0,"div",9),e.nrm(8,"div",10),e.k0s(),e.DNE(9,h,1,0,"hr",11),e.k0s()}if(2&t){const o=i.$implicit,u=i.last;e.R7$(5),e.JRh(null==o?null:o.subject),e.R7$(2),e.Y8G("ngIf","ps"===(null==o?null:o.type)),e.R7$(),e.Y8G("innerHtml",null==o?null:o.message,e.npT),e.R7$(),e.Y8G("ngIf",!u)}}function p(t,i){if(1&t&&(e.j41(0,"div",3),e.DNE(1,f,10,4,"div",4),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.Y8G("ngForOf",o.messages)}}let n=(()=>{var t;class i{constructor(){this.sendMessage=new e.bkB}sendEventMessage(u){this.sendMessage.emit({item:u,order:this.order})}}return(t=i).\u0275fac=function(u){return new(u||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["app-message-selector"]],inputs:{messages:"messages",order:"order"},outputs:{sendMessage:"sendMessage"},standalone:!0,features:[e.aNF],ngContentSelectors:D,decls:4,vars:1,consts:[[1,"cf-card-plain","cf-card-body","message-selector"],[1,"message-selector-title"],["class","message-list",4,"ngIf"],[1,"message-list"],["class","message-option",4,"ngFor","ngForOf"],[1,"message-option"],["type","button",1,"cf-btn","cf-btn--ghost","message-option-btn",3,"click"],["aria-hidden","true"],[1,"message-option-body"],["class","message-option-note","role","note",4,"ngIf"],[1,"message-option-preview",3,"innerHtml"],["class","cf-menu-rule","aria-hidden","true",4,"ngIf"],["role","note",1,"message-option-note"],["aria-hidden","true",1,"cf-menu-rule"]],template:function(u,m){1&u&&(e.NAR(_),e.j41(0,"section",0)(1,"div",1),e.SdG(2),e.k0s(),e.DNE(3,p,2,1,"div",2),e.k0s()),2&u&&(e.R7$(3),e.Y8G("ngIf",null==m.messages?null:m.messages.length))},dependencies:[E.MD,E.Sq,E.bT,B.l,y.An],styles:['.cf-product-name[_ng
1content-%COMP%]{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:clamp(1.5rem,4vw,1.875rem);font-weight:700;line-height:1.2;letter-spacing:-.02em;margin:0 0 8px}.cf-panel-heading[_ngcontent-%COMP%]{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cf-color-muted);margin:0}.cf-related-heading[_ngcontent-%COMP%]{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:600;margin:0 0 16px}.cf-brand-name[_ngcontent-%COMP%]{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--cf-color-muted);margin:0 0 4px}.cf-short-description[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.6;color:var(--cf-color-muted);margin:8px 0;overflow-wrap:break-word;word-break:break-word}.cf-description[_ngcontent-%COMP%]{font-size:1rem;line-height:1.7;color:var(--cf-color-ink);margin:8px 0;max-height:60vh;overflow-y:auto;overflow-x:hidden}.cf-description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .cf-description[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .cf-description[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{margin-bottom:8px}.cf-special-text[_ngcontent-%COMP%]{font-size:1rem;line-height:1.6;margin:0}.cf-instructions[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.6;color:var(--cf-color-muted);margin:8px 0}.cf-section-label[_ngcontent-%COMP%]{font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--cf-color-muted);margin:0 0 8px}.cf-species-badge[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:999px;font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:var(--mat-sys-secondary-container, #e8eaf6);color:var(--mat-sys-on-secondary-container, #1a237e);margin-bottom:8px}.cf-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;font-size:.75rem;font-weight:800;letter-spacing:.02em}.cf-badge.cf-badge--gf[_ngcontent-%COMP%]{background:#e8f5e9;color:#2e7d32;border:1.5px solid #81c784}.cf-color-note[_ngcontent-%COMP%]{font-size:.875rem;color:var(--cf-color-muted);margin:4px 0}.cf-gallery-frame[_ngcontent-%COMP%]{background:var(--mat-sys-surface-variant, var(--cf-color-surface));border-radius:14px;overflow:hidden;width:100%;margin-bottom:16px}.cf-gallery-frame[_ngcontent-%COMP%]   app-image-gallery[_ngcontent-%COMP%]{display:block;width:100%}.cf-gallery-frame[_ngcontent-%COMP%]     gallery-image img, .cf-gallery-frame[_ngcontent-%COMP%]     .g-image-item{object-fit:contain!important;background:var(--cf-color-surface)}.cf-gallery-frame[_ngcontent-%COMP%]     gallery{background-color:var(--cf-color-surface)}.cf-gallery-frame[_ngcontent-%COMP%]     gallery-thumbs{background-color:var(--cf-color-surface)}.cf-product-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;align-items:start;margin-bottom:16px}@media (max-width: 599px){.cf-product-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}}.cf-media-col[_ngcontent-%COMP%]{position:sticky;top:16px}@media (max-width: 599px){.cf-media-col[_ngcontent-%COMP%]{position:static}}.cf-info-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.cf-meta-row[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 8px}.cf-meta-item[_ngcontent-%COMP%]{font-size:.75rem;color:var(--cf-color-subtle);font-family:monospace}.cf-purchase-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:16px 0;border-top:1px solid var(--cf-color-border);border-bottom:1px solid var(--cf-color-border);margin:8px 0}.cf-price-block[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center}.cf-select-prompt[_ngcontent-%COMP%]{font-size:.875rem;color:var(--cf-color-muted);margin:0}.cf-add-row[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px}@media (max-width: 480px){.cf-add-row[_ngcontent-%COMP%]{flex-direction:row}}.cf-add-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border:none;border-radius:10px;background:var(--app-primary, #2563eb);color:var(--app-primary-contrast, #fff);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:600;letter-spacing:.02em;flex-shrink:0;cursor:pointer;transition:filter .12s ease,transform .12s ease}.cf-add-btn[_ngcontent-%COMP%]:hover:not(:disabled){filter:brightness(1.05)}.cf-add-btn[_ngcontent-%COMP%]:active:not(:disabled){transform:translateY(1px)}.cf-add-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.cf-add-btn[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-qty-stepper[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px}.cf-qty-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:1px solid var(--cf-color-border);border-radius:999px;background:var(--mat-sys-surface, #fff);color:inherit;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:20px;line-height:1;cursor:pointer;transition:background .12s ease,border-color .12s ease}.cf-qty-btn[_ngcontent-%COMP%]:hover{background:var(--cf-hover-overlay);border-color:var(--cf-hover-border)}.cf-qty-btn[_ngcontent-%COMP%]:active{transform:scale(.96)}.cf-qty-btn[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-qty-input[_ngcontent-%COMP%]{width:55px;height:44px;text-align:center;border:1px solid var(--cf-color-border);border-radius:6px;background:var(--mat-sys-surface, #fff);color:inherit;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:1rem}
1.cf-qty-input[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-qty-select[_ngcontent-%COMP%]{height:44px;padding:0 8px;border:1px solid var(--cf-color-border);border-radius:6px;background:var(--mat-sys-surface, #fff);color:inherit;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:1rem}.cf-qty-select[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-attributes-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin:4px 0}.cf-chips[_ngcontent-%COMP%]{margin:4px 0}.cf-country[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-size:.875rem;color:var(--cf-color-muted)}.cf-matrix-buy[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:16px;margin-top:4px;border-top:1px solid var(--cf-color-border);border-radius:0 0 10px 10px}.cf-matrix-stock[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:.875rem;font-weight:500;color:#388e3c}.cf-matrix-stock[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;flex-shrink:0}.cf-matrix-stock.out-of-stock[_ngcontent-%COMP%]{color:#c62828}.cf-matrix-actions[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:16px}.cf-matrix-price[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;letter-spacing:-.01em;white-space:nowrap}.cf-packaging[_ngcontent-%COMP%]{margin:8px 0}.cf-packaging-options[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.cf-package-btn[_ngcontent-%COMP%]{height:40px}.cf-package-btn.cf-selected[_ngcontent-%COMP%]{font-weight:700}.cf-portion[_ngcontent-%COMP%], .cf-prep-notes[_ngcontent-%COMP%]{margin:8px 0}.cf-full-width[_ngcontent-%COMP%]{width:100%}.cf-instock[_ngcontent-%COMP%]{width:auto}.cf-chemical[_ngcontent-%COMP%]{margin:16px 0;display:flex;justify-content:center}.cf-section-divider[_ngcontent-%COMP%]{margin:16px 0}.cf-accordion[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:none!important;border-top:1px solid var(--cf-color-border)}.cf-accordion[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]:first-of-type{border-radius:0}.cf-accordion[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]:last-of-type{border-radius:0;border-bottom:1px solid var(--cf-color-border)}.cf-accordion[_ngcontent-%COMP%]   .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{box-shadow:none!important}.cf-accordion[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]{padding:8px 4px;height:44px}.cf-accordion[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]:focus-visible{outline:3px solid currentColor;outline-offset:-3px}.cf-accordion[_ngcontent-%COMP%]   .mat-expansion-indicator[_ngcontent-%COMP%]{color:var(--cf-color-muted)}.cf-related-card[_ngcontent-%COMP%]{margin:16px 0}.cf-grid-flow[_ngcontent-%COMP%]{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));overflow-y:visible;margin-top:8px}.cf-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;padding:4px 4px 0;min-height:44px}.cf-toolbar-spacer[_ngcontent-%COMP%]{flex:1}.cf-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px}.cf-attachments[_ngcontent-%COMP%]{margin:8px 0}.cf-card[_ngcontent-%COMP%]{width:100%;max-width:480px;box-sizing:border-box}@media (max-width: 480px){.cf-card[_ngcontent-%COMP%]{margin-left:0;margin-right:0;border-radius:10px}}@media (max-width: 480px){.cf-register-card[_ngcontent-%COMP%]{padding:0 12px;box-sizing:border-box}}.cf-form-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.cf-card-section-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:20px}.cf-icon-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--mat-sys-surface-variant, #e8eaf6);flex-shrink:0}.cf-icon-badge[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}.cf-section-title[_ngcontent-%COMP%]{font-size:17px;font-weight:600;line-height:1.2;letter-spacing:-.01em}.cf-section-sub[_ngcontent-%COMP%]{font-size:.75rem;color:var(--cf-color-muted);margin-top:2px}.cf-name-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media (max-width: 480px){.cf-name-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.cf-contact-pref-section[_ngcontent-%COMP%]{margin-top:4px}.cf-contact-toggle-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media (max-width: 480px){.cf-contact-toggle-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.cf-contact-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;border-radius:8px;border:1px solid var(--cf-color-border);background:transparent;color:inherit;font-family:inherit;font-size:.875rem;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.cf-contact-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.cf-contact-btn[_ngcontent-%COMP%]:hover:not(.cf-selected){background:var(--cf-hover-overlay)}.cf-contact-btn[_ngcontent-%COMP%]:focus-visible{outline:3px solid currentColor;outline-offset:2px}.cf-contact-btn.cf-selected[_ngcontent-%COMP%]{background:#1a237e;border-color:#1a237e;color:#fff}.cf-action-row[_ngcontent-%COMP%]{margin-top:8px}.cf-action-button-full[_ngcontent-%COMP%]{width:100%;height:48px;font-size:15px;font-weight:600}.cf-policy-note[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;margin-top:10px;font-size:.75rem;color:var(--cf-color-muted);line-height:1.5}.cf-policy-note[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;font-weight:600;text-decoration:underline}.cf-policy-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;
1height:14px;flex-shrink:0;margin-top:2px}.cf-sign-in-row[_ngcontent-%COMP%]{text-align:center;margin-top:14px;font-size:.875rem;color:var(--cf-color-muted)}.cf-sign-in-link[_ngcontent-%COMP%]{background:none;border:none;padding:0 0 0 4px;font-size:inherit;font-weight:600;color:#1976d2;cursor:pointer;text-decoration:underline;font-family:inherit}.cf-sign-in-link[_ngcontent-%COMP%]:focus-visible{outline:3px solid #1976d2;outline-offset:2px;border-radius:2px}.cf-status-card[_ngcontent-%COMP%]{padding:16px}.cf-retry-button[_ngcontent-%COMP%]{margin-top:12px;height:45px;min-width:120px}.cf-confirmation-text[_ngcontent-%COMP%]{font-size:1.2em;line-height:1.6}.cf-bottom-nav[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;z-index:999;display:flex;justify-content:space-around;align-items:center;height:calc(56px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:var(--mat-sys-surface, #fff);border-top:1px solid var(--cf-color-border);box-shadow:0 -2px 6px #00000014}.cf-bottom-nav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;height:100%;min-width:44px;text-decoration:none;color:var(--cf-color-muted);transition:color .2s ease;gap:2px;-webkit-tap-highlight-color:transparent}.cf-bottom-nav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:22px;width:22px;height:22px;flex-shrink:0}.cf-bottom-nav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.75rem;font-weight:500;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1;letter-spacing:.01em}.cf-bottom-nav[_ngcontent-%COMP%]   a.cf-active[_ngcontent-%COMP%], .cf-bottom-nav[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{color:var(--app-primary, #1976d2)}.cf-bottom-nav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover:not(.cf-active):not(.active){color:var(--app-primary, #1976d2);opacity:.85}.cf-bottom-nav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #1976d2);outline-offset:-3px;border-radius:6px}@media (min-width: 768px){.cf-bottom-nav[_ngcontent-%COMP%]{display:none}}@media (max-width: 767px){.cf-bottom-nav-spacer[_ngcontent-%COMP%]{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}}.cf-nav-icon-wrap[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center}.cf-nav-badge[_ngcontent-%COMP%]{position:absolute;top:-6px;right:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--app-warn, #d32f2f);color:var(--app-warn-contrast, #fff);font-size:9px;font-weight:700;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:16px;text-align:center;white-space:nowrap;box-sizing:border-box;max-width:30px;overflow:hidden}.cf-nav-badge.cf-nav-badge--dot[_ngcontent-%COMP%]{min-width:8px;height:8px;padding:0;top:-3px;right:-4px}.cf-menu-add[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:none;border-radius:999px;background:var(--app-primary, #2563eb);color:var(--app-primary-contrast, #fff);cursor:pointer;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1;box-shadow:0 2px 8px #0000002e;transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}.cf-menu-add[_ngcontent-%COMP%]   .cf-menu-add-plus[_ngcontent-%COMP%]{font-size:26px;font-weight:400;margin-top:-2px}.cf-menu-add[_ngcontent-%COMP%]:hover{transform:translateY(-1px);filter:brightness(1.05)}.cf-menu-add[_ngcontent-%COMP%]:active{transform:translateY(0)}.cf-menu-add[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-menu-price-btn[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;padding:4px 8px;border:1px solid var(--cf-color-border);border-radius:10px;background:var(--mat-sys-surface, #fff);color:inherit;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform .12s ease}.cf-menu-price-btn[_ngcontent-%COMP%]:hover{background:var(--cf-hover-overlay);border-color:var(--cf-hover-border)}.cf-menu-price-btn[_ngcontent-%COMP%]:active{transform:scale(.99)}.cf-menu-price-btn[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-menu-textbtn[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer}.cf-menu-textbtn[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px;border-radius:6px}.cf-menu-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border:none;border-radius:999px;background:var(--app-accent, #5b5f97);color:var(--app-accent-contrast, #fff);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;font-weight:600;cursor:pointer;transition:filter .12s ease}.cf-menu-toggle[_ngcontent-%COMP%]:hover{filter:brightness(1.06)}.cf-menu-toggle[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-accent, #5b5f97);outline-offset:2px}.cf-menu-tab[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--cf-color-border);border-radius:999px;background:var(--mat-sys-surface, #fff);color:inherit;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;font-weight:600;cursor:pointer;transition:background .12s ease,border-color .12s ease}.cf-menu-tab[_ngcontent-%COMP%]:hover{background:var(--cf-hover-overlay);border-color:var(--cf-hover-border)}.cf-menu-tab.cf-selected[_ngcontent-%COMP%]{background:var(--cf-tab-selected-bg);border-color:var(--cf-tab-selected-border);color:var(--cf-tab-selected-ink);font-weight:700}.cf-menu-tab[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-menu-gf[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:800;letter-spacing:.04em;border:1.5px solid var(--cf-color-border);background:transparent;color:var(--cf-color-subtle)}.cf-menu-gf.is-on[_ngcontent-%COMP%]{background:#e8f5e9;border-color:#81c784;color:#2e7d32}.cf-menu-rule[_ngcontent-%COMP%]{height:0;border:0;border-top:1px solid var(--cf-color-border);margin:8px 0}.cf-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;border:3px solid var(--cf-color-border);border-top-color:var(--app-primary, #2563eb);animation:_ngcontent-%COMP%_cf-spin .8s linear infinite;margin:16px auto}@keyframes _ngcontent-%COMP%_cf-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.cf-spinner[_ngcontent-%COMP%]{animation-duration:1.6s}}.cf-menu-add.is-pending[_ngcontent-%COMP%], .cf-menu-price-btn.is-pending[_ngcontent-%COMP%]{position:relative;cursor:default}.cf-menu-add.is-pending[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .cf-menu-price-btn.is-pending[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{visibility:hidden}.cf-menu-add.is-pending[_ngcontent-%COMP%]:after, .cf-menu-price-btn.is-pending[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;animation:_ngcontent-%COMP%_cf-spin .8s linear infinite}.cf-menu-add.is-pending[_ngcontent-%COMP%]:after{border:2px solid rgba(255,255,255,.4);border-top-color:#fff}.cf-menu-price-btn.is-pending[_ngcontent-%COMP%]:after{border:2px solid var(--cf-color-border);border-top-color:var(--app-primary, #2563eb)}@media (prefers-reduced-motion: reduce){.cf-menu-add.is-pending[_ngcontent-%COMP%]:after, .cf-menu-price-btn.is-pending[_ngcontent-%COMP%]:after{animation-duration:1.6s}}.cf-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border:none;border-radius:999px;background:#1565c0;color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:700;letter-spacing:.01em;line-height:1.1;text-align:center;cursor:pointer;box-shadow:0 2px 10px #00000029;transition:filter .12s ease,transform .12s ease}.cf-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0}.cf-btn[_ngcontent-%COMP%]:hover{filter:brightness(1.07)}.cf-btn[_ngcontent-%COMP%]:active{transform:translateY(1px)}.cf-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default;box-shadow:none;filter:none}.cf-btn[_ngcontent-%COMP%]:focus-visible{outline:3px solid #1565c0;outline-offset:2px}.cf-btn--warn[_ngcontent-%COMP%]{background:#c62828}.cf-btn--warn[_ngcontent-%COMP%]:focus-visible{outline-color:#c62828}.cf-btn--ghost[_ngcontent-%COMP%]{background:transparent;color:#1565c0;border:1.5px solid rgba(128,128,128,.45);box-shadow:none}.cf-btn--ghost[_ngcontent-%COMP%]:hover{background:#8080801f;filter:none}.cf-btn--ghost[_ngcontent-%COMP%]:focus-visible{outline-color:#1565c0}.cf-card-plain[_ngcontent-%COMP%]{border-radius:14px;background:var(--mat-sys-surface, #fff);box-shadow:0 1px 4px #0000001f}.cf-card-body[_ngcontent-%COMP%]{padding:16px}.cf-close-btn-plain[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:none;border-radius:999px;background:transparent;color:inherit;font-size:22px;line-height:1;cursor:pointer}.cf-close-btn-plain[_ngcontent-%COMP%]:hover{background:var(--cf-hover-overlay)}.cf-close-btn-plain[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-accordion-native[_ngcontent-%COMP%]{border-top:1px solid var(--cf-color-border)}.cf-panel-native[_ngcontent-%COMP%]{border-bottom:1px solid var(--cf-color-border)}.cf-panel-native[_ngcontent-%COMP%] > summary[_ngcontent-%COMP%]{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:8px 4px;
1cursor:pointer;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.cf-panel-native[_ngcontent-%COMP%] > summary[_ngcontent-%COMP%]::-webkit-details-marker{display:none}.cf-panel-native[_ngcontent-%COMP%] > summary[_ngcontent-%COMP%]:after{content:"+";font-size:1.2rem;color:var(--cf-color-muted);transition:transform .15s ease}.cf-panel-native[_ngcontent-%COMP%] > summary[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:-3px}.cf-panel-native[open][_ngcontent-%COMP%] > summary[_ngcontent-%COMP%]:after{transform:rotate(45deg)}.cf-panel-native-body[_ngcontent-%COMP%]{padding:0 4px 16px}.cf-field-label[_ngcontent-%COMP%]{display:block;font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--cf-color-muted);margin-bottom:4px}.cf-field-select[_ngcontent-%COMP%]{width:100%;height:44px;padding:0 8px;border:1px solid var(--cf-color-border);border-radius:6px;background:var(--mat-sys-surface, #fff);color:inherit;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:1rem}.cf-field-select[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-field-textarea[_ngcontent-%COMP%]{width:100%;padding:8px;border:1px solid var(--cf-color-border);border-radius:6px;background:var(--mat-sys-surface, #fff);color:inherit;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:1rem;resize:vertical;box-sizing:border-box}.cf-field-textarea[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-package-btn--plain[_ngcontent-%COMP%]{border:1.5px solid var(--cf-color-border);border-radius:999px;background:transparent;color:inherit;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;cursor:pointer;padding:0 16px}.cf-package-btn--plain[_ngcontent-%COMP%]:hover{background:var(--cf-hover-overlay)}.cf-package-btn--plain[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #2563eb);outline-offset:2px}.cf-stock-dot[_ngcontent-%COMP%]{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;flex-shrink:0}.cf-edit-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border:none;border-radius:999px;background:var(--app-accent, #5b5f97);color:var(--app-accent-contrast, #fff);font-size:18px;cursor:pointer}.cf-edit-btn[_ngcontent-%COMP%]:hover{filter:brightness(1.08)}.cf-edit-btn[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-accent, #5b5f97);outline-offset:2px}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable[_ngcontent-%COMP%]:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--app-primary, #1976d2);outline-offset:2px;border-radius:2px}[_ngcontent-%COMP%]:focus:not(:focus-visible){outline:none}.message-selector[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.message-selector-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;line-height:1.4}.message-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.message-option[_ngcontent-%COMP%]{padding:8px 0}.message-option-btn[_ngcontent-%COMP%]{width:100%;justify-content:flex-start;text-align:left}.message-option-body[_ngcontent-%COMP%]{margin-top:8px;padding-left:4px}.message-option-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-size:.875rem;color:var(--cf-color-muted);margin-bottom:4px}.message-option-note[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;flex-shrink:0}.message-option-preview[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5}']}),i})()},84099:(z,j,c)=>{c.d(j,{P:()=>B});var E=c(54438),e=c(21626);let B=(()=>{var y;class _{constructor(r){this.http=r}getRentalCategories(r){return this.http.get(`${r.url}/Rentals/GetRentalCategories`)}getRentalCatalog(r,h){return this.http.get(`${r.url}/Rentals/GetRentalCatalog${h?`?categoryId=${h}`:""}`)}checkAvailability(r,h,f,p){return this.http.get(`${r.url}/Rentals/CheckAvailability?productId=${h}&requestedQty=${f}&scheduleDate=${p.scheduleDate}&scheduleTo=${p.scheduleTo}`)}reserveRental(r,h,f){return this.http.post(`${r.url}/Rentals/ReserveRental?orderId=${h}`,f)}checkoutRental(r,h){return this.http.post(`${r.url}/Rentals/CheckoutRental/${h}`,{})}returnRental(r,h){return this.http.post(`${r.url}/Rentals/ReturnRental/${h}`,{})}getRentalOrders(r){return this.http.get(`${r.url}/Rentals/GetRentalOrders`)}getRentalOrder(r,h){return this.http.get(`${r.url}/Rentals/GetRentalOrder/${h}`)}}return(y=_).\u0275fac=function(r){return new(r||y)(E.KVO(e.Qq))},y.\u0275prov=E.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),_})()},40554:(z,j,c)=>{c.d(j,{J:()=>ht});var E=c(10467),e=c(54438),B=c(21413),y=c(25558),_=c(7673),D=c(56977),r=c(96697),h=c(99437),f=c(65468),p=c(83603),n=c(31688),t=c(22440),i=c(7498),o=c(12957),u=c(99761),m=c(60177),O=c(14997),x=c(23327),w=c(87866),$=c(8591),U=c(68181),b=c(6859),v=c(74013),R=c(58475),P=c(43031),k=c(80583),C=c(27884),I=c(89417),T=c(19967),A=c(96354),W=c(88141),Z=c(44668),ce=c(28398),le=c(64039),ie=c(51188),re=c(67758),Me=c(85037),q=c(85956),H=c(20962),Oe=c(71997),oe=c(44613),de=c(99213),ue=c(224),me=c(77832),ge=c(86301),Ce=c(18112);const be=[[["","item-label",""]]],Se=["[item-label]"];function Pe(d,M){if(1&d){const l=e.RV6();e.j41(0,"mat-list-item")(1,"div",10)(2,"div",11),e.EFF(3),e.k0s(),e.j41(4,"div",12),e.
1EFF(5),e.k0s(),e.j41(6,"div")(7,"mat-slide-toggle",13),e.bIt("change",function(a){const g=e.eBV(l).$implicit,S=e.XpG(2);return e.Njj(S.toggleOne(g,a.checked))}),e.k0s()()()()}if(2&d){const l=M.$implicit,s=e.XpG(2);e.R7$(3),e.SpI(" ",null==l?null:l.name," "),e.R7$(2),e.Lme(" ",s.typeName," : ",null==l?null:l.value," "),e.R7$(2),e.Y8G("checked",!0===s.selectedMap.get(l.value))}}function ye(d,M){if(1&d&&(e.j41(0,"mat-list"),e.DNE(1,Pe,8,4,"mat-list-item",9),e.k0s()),2&d){const l=M.ngIf,s=e.XpG();e.R7$(),e.Y8G("ngForOf",l)("ngForTrackBy",s.trackByValue)}}function xe(d,M){if(1&d&&(e.j41(0,"div",14)(1,"div")(2,"mat-form-field",15)(3,"mat-label"),e.EFF(4,"Enter Email"),e.k0s(),e.nrm(5,"input",16),e.k0s()()()),2&d){const l=e.XpG();e.Y8G("formGroup",l.inputForm),e.R7$(2),e.xc7("width",325,"px")}}function Re(d,M){1&d&&e.nrm(0,"mat-spinner",17),2&d&&e.Y8G("diameter",50)}function Ee(d,M){if(1&d){const l=e.RV6();e.j41(0,"app-message-selector",19),e.nI1(1,"async"),e.bIt("sendMessage",function(a){e.eBV(l);const g=e.XpG(2);return e.Njj(g.sendMessage(a))}),e.j41(2,"div",20),e.EFF(3," Use a pre-formmatted message. "),e.k0s()()}if(2&d){const l=e.XpG(2);e.Y8G("messages",e.bMT(1,1,l.messages$))}}function De(d,M){if(1&d&&(e.j41(0,"div"),e.DNE(1,Ee,4,3,"app-message-selector",18),e.k0s()),2&d){const l=e.XpG();e.R7$(),e.vxM(1,l.authLinkService.isStaff?1:-1)}}function ke(d,M){if(1&d&&(e.j41(0,"mat-card")(1,"mat-card-subtitle")(2,"h3"),e.EFF(3," Selected Message: "),e.k0s()(),e.j41(4,"h4")(5,"div"),e.EFF(6),e.k0s()(),e.nrm(7,"div",21),e.k0s()),2&d){const l=e.XpG();e.R7$(6),e.JRh(null==l.message?null:l.message.emailSubject),e.R7$(),e.Y8G("tiptapContent",null==l.message?null:l.message.message)}}function Ie(d){let M=String(null!=d?d:"");const l=M.match(/<([^>]+)>/);return l&&(M=l[1]),M=M.replace(/^mailto:/i,""),M=M.normalize("NFKC").replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/\s+/g," ").trim().toLowerCase(),M=M.replace(/[.,;:]+$/g,""),M}let Fe=(()=>{var d;class M{constructor(s,a,g,S,F,L,J,G){if(this.siteService=s,this.clientDataService=a,this.orderMethodService=g,this.authLinkService=S,this.cd=F,this.fb=L,this.dialogRef=J,this.data=G,this.selectedMap=new Map,this.currentList=[],this.submitSelected=new e.bkB,this.requestMessageService=(0,e.WQX)(ce.K),this.router=(0,e.WQX)(ie.Ix),this.orderMethodsService=(0,e.WQX)(i.iX),this.orderService=(0,e.WQX)(re.B),this.destroy$=new B.B,G){this.order=null==G?void 0:G.order,this.dialogOption=null==G?void 0:G.dialogOption,this.typeName=null==G?void 0:G.typeName,this.inputForm=this.fb.group({email:[,I.k0.email]}),this.inputForm.valueChanges.pipe((0,D.Q)(this.destroy$)).subscribe(Y=>{this.emailValid=!!Y,console.log("data changed",Y),this.cd.markForCheck()});const pe=this.siteService.getAssignedSite();this.items$=this.clientDataService.getClientDataList(pe,null==G?void 0:G.clientID).pipe((0,A.T)(Y=>{var Q;if(!G)return[];const V=(Y||[]).filter(N=>{var K;return"email"===(null!==(K=null==N?void 0:N.type)&&void 0!==K?K:"email")&&!0===(null==N?void 0:N.active)}).map(N=>{var K,ne;return{name:String(null!==(K=null==N?void 0:N.name)&&void 0!==K?K:"").trim(),value:String(null!==(ne=null==N?void 0:N.value)&&void 0!==ne?ne:"").trim(),type:null==N?void 0:N.type}}).filter(N=>N.value.length>0),X=null===(Q=this.order)||void 0===Q?void 0:Q.clients_POSOrders;var ee,te;null!=X&&X.email&&V.push({name:`${null!==(ee=null==X?void 0:X.firstName)&&void 0!==ee?ee:""} ${null!==(te=null==X?void 0:X.lastName)&&void 0!==te?te:""}`.trim(),value:String(X.email).trim(),type:"email"});const se=new Set,ae=[];for(let N=V.length-1;N>=0;N--){const K=Ie(V[N].value);!K||se.has(K)||(se.add(K),ae.push(V[N]))}return ae.reverse()}),(0,W.M)(Y=>{this.currentList=Y;const Q=new Set(Y.map(V=>V.value));Array.from(this.selectedMap.keys()).forEach(V=>{Q.has(V)||this.selectedMap.delete(V)}),Y.forEach(V=>{this.selectedMap.has(V.value)||this.selectedMap.set(V.value,!1)}),this.cd.markForCheck()}),(0,Z.t)({bufferSize:1,refCount:!0}))}}ngOnInit(){this.messages$=this.getScheduleMessages()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get selectedCount(){let s=0;
1return this.selectedMap.forEach(a=>{a&&s++}),s}get allChecked(){const s=Array.from(this.selectedMap.values());return s.length>0&&s.every(a=>a)}get indeterminate(){return Array.from(this.selectedMap.values()).some(a=>a)&&!this.allChecked}toggleAll(s){this.selectedMap.forEach((a,g)=>this.selectedMap.set(g,s)),this.cd.markForCheck()}toggleOne(s,a){null!=s&&s.value&&(this.selectedMap.set(s.value,a),this.cd.markForCheck())}trackByValue(s,a){return a.value}submitSelection(s){const a=this.getSelectedItems();this.sendOrderList(a,s)}getSelectedItems(){return this.currentList.filter(s=>!0===this.selectedMap.get(s.value))}sendOrderList(s,a){let g={};if(g.quoteOnly=a,g.id=this.order.id,g.address=[],s.forEach(S=>{let F={};F.email=S.value,g.address.push(F)}),this.inputForm&&this.inputForm.controls.email.value){let F={};F.email=this.inputForm.controls.email.value,g.address.push(F)}this.message?this.orderMethodService.sendRequestMessage(this.message,this.order,g).subscribe(S=>{setTimeout(F=>{this.close()},100)}):this.orderMethodService.emailOrderByList(g).subscribe(S=>{setTimeout(F=>{this.close()},100)})}close(){this.dialogRef&&this.dialogRef.close()}getScheduleMessages(){const s=this.siteService.getAssignedSite();return this.requestMessageService.getTemplateMessages(s).pipe((0,y.n)(a=>(a&&(a=a.filter(g=>"oc"==g.type.toLowerCase()||"ps"==g.type.toLowerCase())),this.cd.markForCheck(),(0,_.of)(a))))}sendMessage(s){this.message=s.item,this.cd.markForCheck()}}return(d=M).\u0275fac=function(s){return new(s||d)(e.rXU(n.I),e.rXU(v.b),e.rXU(i.iX),e.rXU($.T),e.rXU(e.gRc),e.rXU(I.ze),e.rXU(T.RN,8),e.rXU(T.xh))},d.\u0275cmp=e.VBU({type:d,selectors:[["app-email-selector"]],outputs:{submitSelected:"submitSelected"},standalone:!0,features:[e.aNF],ngContentSelectors:Se,decls:38,vars:11,consts:[["loading",""],[1,"centered-flex","register-card"],[1,"spacer"],[3,"change","checked"],[4,"ngIf"],["class","inputForm",3,"formGroup",4,"ngIf"],[2,"margin-top","2em"],["mat-raised-button","","color","primary",2,"margin","1em",3,"click","disabled"],["mat-raised-button","","color","warn",2,"margin","1em",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"email-grid"],["matListItemTitle","",2,"margin-right","1em"],["matListItemLine","",2,"margin-right","1em"],["matListItemMeta","",2,"margin-right","1em",3,"change","checked"],[1,"inputForm",3,"formGroup"],["floatLabel","always"],["matInput","","type","email","formControlName","email"],[3,"diameter"],[3,"messages"],[3,"sendMessage","messages"],["title",""],[3,"tiptapContent"]],template:function(s,a){if(1&s){const g=e.RV6();e.NAR(be),e.j41(0,"div",1)(1,"mat-card")(2,"mat-card-title"),e.SdG(3),e.k0s(),e.j41(4,"mat-card-content")(5,"div"),e.nrm(6,"span",2),e.j41(7,"mat-slide-toggle",3),e.bIt("change",function(F){return e.eBV(g),e.Njj(a.toggleAll(F.checked))}),e.EFF(8," Select All "),e.k0s()(),e.nrm(9,"mat-divider"),e.qex(10),e.DNE(11,ye,2,2,"mat-list",4),e.nI1(12,"async"),e.nrm(13,"mat-divider"),e.DNE(14,xe,6,3,"div",5),e.j41(15,"div",6),e.nrm(16,"span",2),e.j41(17,"button",7),e.bIt("click",function(){return e.eBV(g),e.Njj(a.submitSelection(!1))}),e.j41(18,"mat-icon"),e.EFF(19,"email"),e.k0s(),e.j41(20,"span"),e.EFF(21,"Payment Request"),e.k0s()(),e.j41(22,"button",7),e.bIt("click",function(){return e.eBV(g),e.Njj(a.submitSelection(!0))}),e.j41(23,"mat-icon"),e.EFF(24,"email"),e.k0s(),e.j41(25,"span"),e.EFF(26,"Quote"),e.k0s()()(),e.j41(27,"div",6)(28,"button",8),e.bIt("click",function(){return e.eBV(g),e.Njj(a.close())}),e.j41(29,"mat-icon"),e.EFF(30,"close"),e.k0s(),e.j41(31,"span"),e.EFF(32,"Cancel"),e.k0s()()(),e.bVm(),e.DNE(33,Re,1,1,"ng-template",null,0,e.C5r)(35,De,2,1,"div",4),e.nI1(36,"async"),e.DNE(37,ke,8,2,"mat-card"),e.k0s()()()}2&s&&(e.R7$(7),e.Y8G("checked",a.allChecked),e.R7$(4),e.Y8G("ngIf",e.bMT(12,7,a.items$)),e.R7$(3),e.Y8G("ngIf",a.inputForm),e.R7$(3),e.Y8G("disabled",0===a.selectedCount&&!a.emailValid),e.R7$(5),e.Y8G("disabled",0===a.selectedCount&&!a.emailValid),e.R7$(13),e.Y8G("ngIf",e.bMT(36,9,a.messages$)),e.R7$(2),e.vxM(37,a.message?37:-1))},dependencies:[m.MD,m.Sq,m.bT,m.Jj,Me.N,O.l,q.iV,H._m,H.Rm,H.YU,H._I,Oe.q,oe.Ky,oe.aw,de.An,ue.aL,me.Qc,me.zB,ge.wS,Ce.P2,I.YN,I.me,I.BC,I.cb,I.X1,I.j4,I.JD,le.o],styles:[".register-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;max-height:100vh;padding:16px}mat-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;overflow:hidden}mat-card-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overflow-x:hidden}.email-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:100px 300px 75px;gap:1em;margin-bottom:1em;margin-top:1em}"]}),M})();var he=c(75744),$e=c(66737);const Te=(d,M)=>M.id,Be=(d,M)=>M.orderItemId,fe=(d,M)=>M.object_id,ve=(d,M)=>M.text;function we(d,M){1&d&&(e.j41(0,"div",5),e.nrm(1,"mat-spinner",11),e.j41(2,"span"),e.EFF(3,"Loading package groups..."),e.k0s()())}function je(d,M){if(1&d&&(e.j41(0,"div",6)(1,"mat-icon",12),e.EFF(2,"warning_amber"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&d){const l=e.XpG();e.R7$(4),e.JRh(l.error)}}function Ne(d,M){1&d&&(e.j41(0,"div",7),e.EFF(1,"No packages to ship for this order."),e.k0s())}function Ue(d,M){if(1&d&&(e.j41(0,"div",15),e.EFF(1),e.k0s()),2&d){const l=M.$implicit;e.R7$(),e.Lme("",l.name," \xd7 ",l.quantity,"")}}function Ae(d,M){if(1&d&&(e.j41(0,"a",18)(1,"mat-icon"),e.EFF(2,"local_shipping"),e.k0s(),e.EFF(3," View Label "),e.k0s()),2&d){const l=e.XpG().$implicit;e.Y8G("href",l.labelInfo.label.labelUrl,e.B4B)}}function Ge(d,M){1&d&&(e.j41(0,"span",19),e.EFF(1,"Label not yet purchased"),e.k0s())}function Le(d,M){if(1&d&&(e.j41(0,"mat-card",13)(1,"mat-card-subtitle"),e.EFF(2),e.k0s(),e.j41(3,"mat-card-content")(4,"div",14),e.Z7z(5,Ue,2,2,"div",15,Be),e.k0s(),e.j41(7,"div",16),e.EFF(8),e.k0s(),e.j41(9,"div",17),e.DNE(10,Ae,4,1,"a",18)(11,Ge,2,0),e.k0s()()()),2&d){const l=M.$implicit;e.R7$(2),e.JRh((null==l.labelInfo?null:l.labelInfo.name)||"Package "+l.id),e.R7$(3),e.Dyx(l.items),e.R7$(3),e.SjE(" ",null==l.parcel?null:l.parcel.length,'" \xd7 ',null==l.parcel?null:l.parcel.width,'" \xd7 ',null==l.parcel?null:l.parcel.height,'" \u2014 ',null==l.parcel?null:l.parcel.weight," ",null==l.parcel?null:l.parcel.massUnit," "),e.R7$(2),e.vxM(10,null!=l.labelInfo&&null!=l.labelInfo.label&&l.labelInfo.label.labelUrl?10:11)}}function Ve(d,M){if(1&d&&(e.j41(0,"div",8),e.Z7z(1,Le,12,7,"mat-card",13,Te),e.k0s()),2&d){const l=e.XpG();e.R7$(),e.Dyx(l.packageGroups)}}function ze(d,M){1&d&&(e.j41(0,"div",5),e.nrm(1,"mat-spinner",11),e.j41(2,"span"),e.EFF(3,"Fetching rates..."),e.k0s()())}function Ke(d,M){if(1&d&&(e.j41(0,"div",6)(1,"mat-icon",12),e.EFF(2,"warning_amber"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&d){const l=e.XpG(2);e.R7$(4),e.JRh(l.pricingError)}}function Xe(d,M){if(1&d&&(e.j41(0,"div",25)(1,"span"),e.EFF(2),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"currency"),e.k0s()()),2&d){const l=M.$implicit;e.R7$(2),e.Lme("",l.provider," ",l.servicelevel_name,""),e.R7$(2),e.JRh(e.i5U(5,3,l.amount,l.currency))}}function We(d,M){if(1&d&&e.Z7z(0,Xe,6,6,"div",25,fe),2&d){const l=e.XpG(3);e.Dyx(l.groupedRates.rates)}}function Ye(d,M){if(1&d&&(e.j41(0,"div",26),e.EFF(1),e.k0s()),2&d){const l=M.$implicit;e.R7$(),e.Lme("",l.source,": ",l.text,"")}}function He(d,M){if(1&d&&(e.j41(0,"div",7)(1,"div"),e.EFF(2),e.k0s(),e.Z7z(3,Ye,2,2,"div",26,ve),e.k0s()),2&d){const l=e.XpG(3);e.R7$(2),e.JRh((null==l.groupedRates?null:l.groupedRates.errorMessage)||"No rates available."),e.R7$(),e.Dyx(null==l.groupedRates?null:l.groupedRates.messages)}}function Je(d,M){if(1&d&&(e.j41(0,"div",25)(1,"span"),e.EFF(2),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"currency"),e.k0s()()),2&d){const l=M.$implicit;e.R7$(2),e.Lme("",l.provider," ",l.servicelevel_name,""),e.R7$(2),e.JRh(e.i5U(5,3,l.amount,l.currency))}}function Qe(d,M){if(1&d&&e.Z7z(0,Je,6,6,"div",25,fe),2&d){const l=e.XpG(3);e.Dyx(l.individualRates.rates)}}function Ze(d,M){if(1&d&&(e.j41(0,"div",26),e.EFF(1),e.k0s()),2&d){const l=M.$implicit;e.R7$(),e.Lme("",l.source,": ",l.text,"")}}function qe(d,M){if(1&d&&(e.j41(0,"div",7)(1,"div"),e.EFF(2),e.k0s(),e.Z7z(3,Ze,2,2,"div",26,ve),e.k0s()),2&d){const l=e.XpG(3);e.R7$(2),e.JRh((null==l.individualRates?null:l.individualRates.errorMessage)||"No rates available."),e.R7$(),e.Dyx(null==l.individualRates?null:l.individualRates.messages)}}function et(d,M){if(1&d&&(e.j41(0,"div",21)(1,"div",22)(2,"div",23),e.
1EFF(3," Grouped Packages "),e.j41(4,"span",24),e.EFF(5),e.k0s()(),e.DNE(6,We,2,0)(7,He,5,1),e.k0s(),e.j41(8,"div",22)(9,"div",23),e.EFF(10," Individual Packages "),e.j41(11,"span",24),e.EFF(12),e.k0s()(),e.DNE(13,Qe,2,0)(14,qe,5,1),e.k0s()()),2&d){const l=e.XpG(2);e.R7$(5),e.Lme("(",(null==l.groupedRates||null==l.groupedRates.packageGroups?null:l.groupedRates.packageGroups.length)||0," package",1===((null==l.groupedRates||null==l.groupedRates.packageGroups?null:l.groupedRates.packageGroups.length)||0)?"":"s",")"),e.R7$(),e.vxM(6,null!=l.groupedRates&&null!=l.groupedRates.rates&&l.groupedRates.rates.length?6:7),e.R7$(6),e.Lme("(",(null==l.individualRates||null==l.individualRates.packageGroups?null:l.individualRates.packageGroups.length)||0," package",1===((null==l.individualRates||null==l.individualRates.packageGroups?null:l.individualRates.packageGroups.length)||0)?"":"s",")"),e.R7$(),e.vxM(13,null!=l.individualRates&&null!=l.individualRates.rates&&l.individualRates.rates.length?13:14)}}function tt(d,M){if(1&d&&(e.j41(0,"div",2)(1,"h3"),e.EFF(2,"Pricing Comparison "),e.j41(3,"span",20),e.EFF(4,"Admin"),e.k0s()(),e.DNE(5,ze,4,0,"div",5)(6,Ke,5,1,"div",6)(7,et,15,6,"div",21),e.k0s()),2&d){const l=e.XpG();e.R7$(5),e.vxM(5,l.pricingLoading?5:-1),e.R7$(),e.vxM(6,l.pricingError?6:-1),e.R7$(),e.vxM(7,l.pricingLoading?-1:7)}}let nt=(()=>{var d;class M{constructor(s,a,g,S){this.dialogRef=s,this.shippingService=a,this.cd=g,this.data=S,this.loading=!1,this.error=null,this.packageGroups=[],this.pricingLoading=!1,this.pricingError=null,this.groupedRates=null,this.individualRates=null,this.order=null==S?void 0:S.order,this.isAdmin=!(null==S||!S.isAdmin)}ngOnInit(){this.refreshPackageGroups(),this.isAdmin&&this.loadPricingComparison()}refreshPackageGroups(){var s;null!==(s=this.order)&&void 0!==s&&s.id?(this.loading=!0,this.error=null,this.cd.markForCheck(),this.shippingService.refreshPackageGroups(this.order.id).subscribe({next:a=>{this.packageGroups=a||[],this.loading=!1,this.cd.markForCheck()},error:a=>{this.error=(null==a?void 0:a.message)||"Failed to refresh package groups.",this.loading=!1,this.cd.markForCheck()}})):this.error="No order available."}loadPricingComparison(){var s;null!==(s=this.order)&&void 0!==s&&s.id&&(this.pricingLoading=!0,this.pricingError=null,this.groupedRates=null,this.individualRates=null,this.cd.markForCheck(),this.shippingService.getShippingOptions(this.order,!1).subscribe({next:a=>{this.groupedRates=a,this.cd.markForCheck()},error:a=>{this.pricingError=(null==a?void 0:a.message)||"Failed to fetch grouped-package rates.",this.cd.markForCheck()}}),this.shippingService.getShippingOptions(this.order,!0).subscribe({next:a=>{this.individualRates=a,this.pricingLoading=!1,this.cd.markForCheck()},error:a=>{this.pricingError=(null==a?void 0:a.message)||"Failed to fetch individual-package rates.",this.pricingLoading=!1,this.cd.markForCheck()}}))}close(){this.dialogRef.close()}}return(d=M).\u0275fac=function(s){return new(s||d)(e.rXU(T.RN),e.rXU(he.ih),e.rXU(e.gRc),e.rXU(T.xh))},d.\u0275cmp=e.VBU({type:d,selectors:[["package-groups-dialog"]],standalone:!0,features:[e.aNF],decls:19,vars:7,consts:[[1,"package-groups-dialog"],["mat-dialog-title",""],[1,"section"],[1,"section-header"],["mat-icon-button","","matTooltip","Recalculate package groups",3,"click","disabled"],[1,"loading-state"],[1,"error-state"],[1,"empty-state"],[1,"package-grid"],["align","end"],["mat-button","",3,"click"],["diameter","32"],["color","warn"],[1,"package-card"],[1,"package-contents"],[1,"package-item"],[1,"package-dims"],[1,"package-label"],["target","_blank","mat-button","","color","primary",3,"href"],[1,"label-placeholder"],[1,"admin-tag"],[1,"comparison-grid"],[1,"comparison-column"],[1,"comparison-header"],[1,"package-count"],[1,"rate-row"],[1,"provider-message"]],template:function(s,a){1&s&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.k0s(),e.j41(3,"mat-dialog-content")(4,"div",2)(5,"div",3)(6,"h3"),e.EFF(7,"Packages to Prepare"),e.k0s(),e.j41(8,"button",4),e.bIt("click",function(){return a.refreshPackageGroups()}),e.j41(9,"mat-icon"),e.EFF(10,"refresh"),e.k0s()()(),e.DNE(11,we,4,0,"div",5)(12,je,5,1,"div",6)(13,Ne,2,0,"div",7)(14,Ve,3,0,"div",8),e.k0s(),e.DNE(15,tt,8,3,"div",2),e.k0s(),e.j41(16,"mat-dialog-actions",9)(17,"button",10),e.bIt("click",function(){return a.close()}),e.EFF(18,"Close"),e.k0s()()()),2&s&&(e.R7$(2),e.SpI("Package Groups \u2014 Order #",(null==a.order?null:a.order.orderCode)||(null==a.order?null:a.order.id),""),e.R7$(6),e.Y8G("disabled",a.loading),e.R7$(3),e.vxM(11,a.loading?11:-1),e.R7$(),e.vxM(12,!a.loading&&a.error?12:-1),e.R7$(),e.vxM(13,a.loading||a.error||0!==a.packageGroups.length?-1:13),e.R7$(),e.vxM(14,!a.loading&&!a.error&&a.packageGroups.length>0?14:-1),e.R7$(),e.vxM(15,a.isAdmin?15:-1))},dependencies:[m.MD,m.oe,O.l,q.iV,q.hn,H._m,H.Rm,H._I,T.KI,T.PQ,T.$t,de.An,ge.wS,$e.PD],styles:[".package-groups-dialog[_ngcontent-%COMP%]{min-width:320px;max-width:100%}.section[_ngcontent-%COMP%]{margin-bottom:1.5em}.section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0 0 .5em}.section-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.section-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0}.admin-tag[_ngcontent-%COMP%]{font-size:.7em;font-weight:600;text-transform:uppercase;background:#2196f31f;
1color:#2196f3;border-radius:4px;padding:.15em .5em;margin-left:.5em;vertical-align:middle}.loading-state[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75em;padding:1em;justify-content:center}.error-state[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75em;padding:1em;background:#f443360f;border-radius:8px;margin:.5em 0}.empty-state[_ngcontent-%COMP%]{padding:.75em 0;opacity:.7;font-size:.9em}.provider-message[_ngcontent-%COMP%]{font-size:.85em;opacity:.6;margin-top:.25em}.package-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75em}.package-card[_ngcontent-%COMP%]   .package-contents[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.15em;margin-bottom:.5em}.package-card[_ngcontent-%COMP%]   .package-item[_ngcontent-%COMP%]{font-size:.9em}.package-card[_ngcontent-%COMP%]   .package-dims[_ngcontent-%COMP%]{font-size:.8em;opacity:.7;margin-bottom:.5em}.package-card[_ngcontent-%COMP%]   .package-label[_ngcontent-%COMP%]   .label-placeholder[_ngcontent-%COMP%]{font-size:.85em;font-style:italic;opacity:.6}.comparison-grid[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1em}@media (max-width: 599px){.comparison-grid[_ngcontent-%COMP%]{flex-direction:column}}.comparison-column[_ngcontent-%COMP%]{flex:1;border:1px solid #e0e0e0;border-radius:8px;padding:.75em}.comparison-header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5em}.comparison-header[_ngcontent-%COMP%]   .package-count[_ngcontent-%COMP%]{font-weight:400;opacity:.65;font-size:.85em}.rate-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.35em 0;border-top:1px solid #f0f0f0;font-size:.9em}.rate-row[_ngcontent-%COMP%]:first-of-type{border-top:none}"]}),M})();var it=c(67400);let rt=(()=>{var d;class M{constructor(s,a){this.fb=s,this.dialogRef=a;const g=new Date,S=new Date(g.getTime()+864e5);this.form=this.fb.group({scheduleDate:[this.toLocalDateTimeString(g),I.k0.required],scheduleTo:[this.toLocalDateTimeString(S),I.k0.required]})}toLocalDateTimeString(s){return new Date(s.getTime()-6e4*s.getTimezoneOffset()).toISOString().substring(0,16)}save(){if(this.form.invalid)return;const s=this.form.value,a={scheduleDate:new Date(s.scheduleDate).toISOString(),scheduleTo:new Date(s.scheduleTo).toISOString()};this.dialogRef.close(a)}close(){this.dialogRef.close()}}return(d=M).\u0275fac=function(s){return new(s||d)(e.rXU(I.ze),e.rXU(T.RN))},d.\u0275cmp=e.VBU({type:d,selectors:[["app-rental-window-dialog"]],standalone:!0,features:[e.aNF],decls:16,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"window-form",3,"formGroup"],["appearance","fill",1,"full-width"],["matInput","","type","datetime-local","formControlName","scheduleDate","required",""],["matInput","","type","datetime-local","formControlName","scheduleTo","required",""],["mat-dialog-actions","","align","end"],["mat-button","","type","button",3,"click"],["mat-raised-button","","color","primary","type","button",3,"click","disabled"]],template:function(s,a){1&s&&(e.j41(0,"h2",0),e.EFF(1,"Rental Window"),e.k0s(),e.j41(2,"div",1)(3,"mat-form-field",2)(4,"mat-label"),e.EFF(5,"Pick Up"),e.k0s(),e.nrm(6,"input",3),e.k0s(),e.j41(7,"mat-form-field",2)(8,"mat-label"),e.EFF(9,"Return By"),e.k0s(),e.nrm(10,"input",4),e.k0s()(),e.j41(11,"div",5)(12,"button",6),e.bIt("click",function(){return a.close()}),e.EFF(13,"Cancel"),e.k0s(),e.j41(14,"button",7),e.bIt("click",function(){return a.save()}),e.EFF(15,"Reserve"),e.k0s()()),2&s&&(e.R7$(2),e.Y8G("formGroup",a.form),e.R7$(12),e.Y8G("disabled",a.form.invalid))},dependencies:[m.MD,I.X1,I.me,I.BC,I.cb,I.YS,I.j4,I.JD,O.l,q.iV,T.KI,T.PQ,T.$t,oe.Ky,oe.aw,ue.aL],styles:[".window-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;min-width:320px}.full-width[_ngcontent-%COMP%]{width:100%}"]}),M})();var ot=c(22365),st=c(36665),at=c(39479),ct=c(84099),_e=c(46879);const lt=d=>({$implicit:d});function dt(d,M){1&d&&e.nrm(0,"div")}function pt(d,M){if(1&d&&(e.j41(0,"div"),e.eu8(1,7),e.k0s()),2&d){const l=M.$implicit;e.XpG(2);const s=e.sdS(4);e.R7$(),e.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",e.eq3(2,lt,l))}}function ut(d,M){if(1&d){const l=e.RV6();e.j41(0,"div")(1,"button",4,1),e.bIt("click",function(){e.eBV(l);const a=e.sdS(2);return e.Njj(a.openMenu())}),e.j41(3,"mat-icon"),e.EFF(4,"tune"),e.k0s()(),e.j41(5,"mat-menu",5,2),e.DNE(7,pt,2,4,"div",6),e.k0s()()}if(2&d){const l=e.sdS(6),s=e.XpG();e.R7$(),e.HbH(s.buttonSize),e.Y8G("matMenuTriggerFor",l),e.R7$(4),e.Y8G("overlapTrigger",!1),e.R7$(2),e.Y8G("ngForOf",s.list.mb_MenuButtons)}}function mt(d,M){if(1&d){const l=e.RV6();e.j41(0,"div")(1,"button",8),e.bIt("click",function(){e.eBV(l);const a=e.XpG().$implicit,g=e.XpG();return e.Njj(g.functionCall(a))}),e.j41(2,"mat-icon"),e.EFF(3),e.k0s(),e.EFF(4),e.k0s()()}if(2&d){const l=e.XpG().$implicit,s=e.XpG();e.R7$(),e.HbH(s.buttonSizeMenu),e.R7$(2),e.JRh(null==l?null:l.icon),e.R7$(),e.SpI(" ",null==l?null:l.name," ")}}function gt(d,M){if(1&d&&e.DNE(0,mt,5,4,"div",3),2&d){const l=M.$implicit,s=e.XpG();e.Y8G("ngIf",s.isVisible(l))}}let ht=(()=>{var d;
1class M{constructor(s,a,g,S,F,L,J,G,pe,Y,Q,V,X,ee,te,se,ae,N,K,ne,ft,vt,_t,Mt,Ot){this.dialog=s,this.notificationService=a,this.siteService=g,this.routeService=S,this.balanceSheetMethodService=F,this.orderMethodsService=L,this.router=J,this.productEditButtonService=G,this.ordersService=pe,this.authLinkService=Y,this.fbProductButtonService=Q,this.messageService=V,this.storeCreditMethodsService=X,this.dcapService=ee,this.clientDataService=te,this._bottomSheet=se,this.paymentMethodService=ae,this.paymentService=N,this.uiSettingService=K,this.cd=ne,this.oracleMethodsService=ft,this.posOrderService=vt,this.dateHelper=_t,this.shippingService=Mt,this.rentalsService=Ot,this.buttonSize="button-small",this.destroy$=new B.B,this.paymentsMethodsProcessService=(0,e.WQX)(k.s),this.paymentsService=(0,e.WQX)(it.q),this.dataCapService=(0,e.WQX)(R.W)}ngOnInit(){"button-small"==this.buttonSize&&(this.buttonSizeMenu="button-small-menu"),"button-medium"==this.buttonSize&&(this.buttonSizeMenu="button-medium-menu")}functionCall(s){if(!s)return;const a=JSON.parse(s.properties),g=null==a?void 0:a.method;if(g)switch(g){case"getPOSOrderWithMenuItems":this.getPOSOrderWithMenuItems();break;case"emailOrderByEntry":this.emailOrderByEntry();break;case"emailAddressSelector":this.emailAddressSelector();break;case"paxRestart":this.dcapReset();break;case"oracleKeyScan":this.oracleKeyScan();break;case"oracleReservationSearch":this.oracleReservationSearch();break;case"giftCardLookup":this.giftCardLookup();break;case"storeCreditLookup":case"changeOrderType":this.changeOrderType();break;case"editOrder":this.editOrder();break;case"deleteOrder":this.deleteOrder();break;case"printLabels":this.printLabels();break;case"voidOrder":this.voidOrder();break;case"openDrawer1":case"openDrawerPrinter":this.openDrawerPrinter();break;case"openDrawer2":this.openDrawerOPOSTwo();break;case"isDrawerOneOpen":this.isDrawerOneOpen();break;case"isDrawerTwoOpen":this.isDrawerTwoOpen();break;case"suspendOrder":this.suspendOrder();break;case"emailOrder":this.emailOrder();break;case"textOrder":this.textOrder();break;case"qrLink":this.qrLink();break;case"price1":case"price(1)":this.price(1);break;case"price2":case"price(2)":this.price(2);break;case"price3":case"price(3)":this.price(3);break;case"price":case"price(0)":this.price(0);break;case"voidOrderRequest":this.voidOrderRequest();break;case"lastOrder":this.setLastOrderActive();break;case"postToShipDay":this.postToShipDay();break;case"togglePOSORderItemSort":this.togglePOSORderItemSort();break;case"navigate":this.router.navigate([null==a?void 0:a.variable]);break;case"reconcilePayments":this.reconcilePayments();break;case"setPrepTimeLineComplete":this.setOrderPreparedForTimeline();break;case"getCardDataCollection":this.getCardDataCollection();break;case"assignToRoute":this.assignToRoute();break;case"assignClientShipping":this.assignClientShipping();break;case"viewPackageGroups":this.viewPackageGroups();break;case"purchaseShippingLabel":this.purchaseShippingLabel();break;case"reserveRental":this.reserveRental();break;case"checkoutRental":this.checkoutRental();break;case"returnRental":this.returnRental();break;default:console.log("Function not found")}}oracleReservationSearch(){this.oracleMethodsService.navReservations()}oracleKeyScan(){this.clientDataService.editSelected(null)}viewReservationInfo(){this.oracleMethodsService.navReservations()}giftCardLookup(){this.storeCreditMethodsService.openStoreCreditPopUp(0,0,"")}voidOrderRequest(){const s=this.orderMethodsService.currentOrder;if(s){const a=this.messageService.requestVoidOrder(s,this.adminEmail);this.action$=a.pipe((0,y.n)(g=>(this.notificationService.notify("Message Sent","close",2e3,"green"),this.cd.markForCheck(),(0,_.of)(g))))}}setLastOrderActive(){const s=this.orderMethodsService.lastOrder;console.log("lastOrder",s),s&&this.orderMethodsService.setActiveOrder(s)}editOrder(){this.order&&this.fbProductButtonService.openOrderEditor(this.order)}
1changeOrderType(){if(!this.order)return;this.orderMethodsService.toggleChangeOrderType=!0;const s=this._bottomSheet.open(u.e);this.bottomSheet$=s.afterDismissed(),this.bottomSheet$.pipe((0,D.Q)(this.destroy$)).subscribe(a=>{this.orderMethodsService.toggleChangeOrderType=!1,this.cd.markForCheck()})}reconcilePayments(){if(this.order&&!this.order.history){const a=this.siteService.getAssignedSite();this.action$=this.paymentService.reconcilePaymentByOrder(a,this.order.id).pipe((0,y.n)(g=>(g.id&&this.orderMethodsService.updateOrder(g),null!=g&&g.resultMessage&&this.notificationService.showNotification("Note",null==g?void 0:g.resultMessage,"alert","yellow"),(0,_.of)(g))))}}price(s){var a,g;this.order&&null!==(a=this.authLinkService)&&void 0!==a&&null!==(a=a.userAuths)&&void 0!==a&&a.priceColumnOption&&null!==(g=this.authLinkService)&&void 0!==g&&g.isStaff&&this.assignPriceColumn(s)}assignPriceColumn(s){this.siteService.getAssignedSite(),this.order&&(this.order.priceColumn=s,this.action$=this.ordersService.setOrderPriceColumn(this.order.id,s).pipe((0,y.n)(g=>(this.order.priceColumn=g,this.orderMethodsService.updateOrder(this.order),this.cd.markForCheck(),(0,_.of)(g)))))}printLabels(){}voidOrder(){event,this.paymentMethodService.creditPaymentsMade(this.order)?this.voidCreditPayment():this.productEditButtonService.openVoidOrderDialog(this.order)}voidCreditPayment(){var s;(null===(s=this.order)||void 0===s?void 0:s.posPayments.length)>1||this.voidPayment(this.order.posPayments[0])}get creditCardPaymentsMade(){return this.paymentsMethodsProcessService.creditPaymentsMade(this.order)}getPaymentMethod(s){const a=this.siteService.getAssignedSite();return this.paymentsService.getCacheMethod(a,s)}voidPayment(s){const g=this.getPaymentMethod(s.paymentMethodID);s.history?this.notificationService.notify("Payments that have been batched can not be voided here. Speak with administration.","Close",4e3):this.action$=g.pipe((0,y.n)(S=>(s&&"paypal"===(null==S?void 0:S.name)&&this.notificationService.notify("Paypal can be voided from the POS Sales, but must be completed in the paypal account itself.","Alert",2e3),this.productEditButtonService.openVoidPaymentDialog({payment:s,uiSettings:this.uiSettingService._transactionUISettings.value,secondAction:"voidOrder"}),this.cd.markForCheck(),(0,_.of)(S))))}deleteOrder(){window.confirm("Are you sure you want to do this action?")&&(this.action$=this.orderMethodsService.deleteOrder(this.order.id,!1).pipe((0,y.n)(a=>(this.notificationService.notify("Suspended","close",3e3),this.cd.markForCheck(),(0,_.of)(a)))))}qrLink(){var s=this;return(0,E.A)(function*(){console.log("Placeholder for Open Drawer 1"),s.router.navigate(["/qr-receipt/",{orderCode:s.order.orderCode}])})()}openDrawerPrinter(){this.balanceSheetMethodService._openDrawerOne(!0)}openDrawerOPOSOne(){console.log("Placeholder for Open Drawer 1"),this.balanceSheetMethodService._openDrawerOPOSOne(!0)}openDrawerOPOSTwo(){console.log("Placeholder for Open Drawer 2"),this.balanceSheetMethodService._openDrawerOPOSOne(!0)}isDrawerOneOpen(){var s=this;return(0,E.A)(function*(){console.log("Placeholder for Open Drawer 1");const a=yield s.balanceSheetMethodService.isDrawerOneOpen();s.notificationService.notify(a,"result",1e3)})()}isDrawerTwoOpen(){var s=this;return(0,E.A)(function*(){console.log("Placeholder for Open Drawer 2");const a=yield s.balanceSheetMethodService.isDrawerOneOpen();s.notificationService.notify(a,"result",1e3)})()}openDrawerByValue(s){this.action$=this.paymentMethodService.sendToPrep(this.order,!0,this.uiSettingService._transactionUISettings.value).pipe((0,y.n)(g=>(1===s&&this.balanceSheetMethodService._openDrawerOne(!0),2===s&&this.balanceSheetMethodService._openDrawerOPOSOne(!0),3===s&&this.balanceSheetMethodService._openDrawerOPOSTwo(!0),s||this.balanceSheetMethodService._openDrawerOne(!0),(0,_.of)(g))))}suspendOrder(){this.action$=this.orderMethodsService.suspendOrder(this.order).pipe((0,y.n)(s=>(s&&(this.notificationService.notify("Suspended","close",3e3),this.cd.markForCheck()),(0,_.of)(s))))}emailOrder(){this.action$=this.orderMethodsService.emailOrder(this.order).pipe((0,y.n)(s=>
1(this.notificationService.notify("Email Sent","Completed",2e3),this.cd.markForCheck(),(0,_.of)(s))))}emailAddressSelector(){let s={};const a=this.orderMethodsService.order;s.order=a,s.clientID=null==a?void 0:a.clientID,s.typeName="email",s.dialogOption=!1;let g=this.dialog.open(Fe,{width:"100%",minWidth:"100%",maxWidth:"max-width: 100vw !important",height:"100vh",minHeight:"100vh",data:s});return g.afterClosed().pipe((0,r.s)(1)).subscribe(()=>{g=null}),g}emailOrderByEntry(){this.orderMethodsService.emailOrderByEntry(this.orderMethodsService.order)}getPOSOrderWithMenuItems(){const s=this.siteService.getAssignedSite(),a=this.orderMethodsService.order;null!=a&&a.id&&this.ordersService.getPOSOrderWithMenuItems(s,a.id.toString(),a.history).subscribe(g=>{g&&(this.orderMethodsService.updateOrder(g),this.cd.markForCheck())})}textOrder(){console.log("Placeholder for Text Order")}togglePOSORderItemSort(){this.orderMethodsService.toggleSortingState(!this.orderMethodsService.isToggleisDisabled)}postToShipDay(){console.log("Placeholder for Email Order");const s=this.siteService.getAssignedSite();this.action$=this.orderMethodsService.postToShipDay(s,this.order.id).pipe((0,y.n)(a=>(this.notificationService.notify(`Result ${null==a?void 0:a.success} -  ${null==a?void 0:a.response}`,"Close",1e4),this.cd.markForCheck(),(0,_.of)(a))))}isVisible(s){const a=JSON.parse(s.properties);let S=!1;if(null!=a&&a.allowStaff&&this.isStaff&&(S=!0),null!=a&&a.allowUser&&this.isUser&&(S=!0),this.isAdmin&&(S=!0),S)return!0}dcapReset(){if(this.posDevice.name){var s;const a=null===(s=this.posDevice)||void 0===s?void 0:s.name;this.action$=this.dcapService.resetDevice(a).pipe((0,y.n)(g=>(this.notificationService.notify(`Response: ${JSON.stringify(g)}`,"Close",1e5),this.dcapResult=g,(0,_.of)(g))))}else this.notificationService.notify("Response: No Terminal assigned.","Close",1e5)}getCardDataCollection(){var s;const a=localStorage.getItem("devicename"),g={};g.deviceName=a;const S=null===(s=this.orderMethodsService.currentOrder)||void 0===s?void 0:s.id;g.orderID=S,this.dataCapService.getCardDataCollection(this.siteService.getAssignedSite(),g).subscribe(F=>{})}setOrderPreparedForTimeline(){var s,a;let g=null===(s=this.order)||void 0===s?void 0:s.orderFeatures,S=null==g||null===(a=g.timeLine)||void 0===a?void 0:a.list;if(S&&(S.forEach(F=>{"order prepared"===(null==F?void 0:F.name.toLowerCase())&&(F.completed=this.dateHelper.format(new Date,"short-date"))}),g.timeLine.list=S),this.order.json){this.order.json=JSON.stringify(g);const F=this.siteService.getAssignedSite();this.posOrderService.updateTimeLine(F,this.order).pipe((0,y.n)(L=>(this.orderMethodsService.updateOrder(this.order),(0,_.of)(L)))).pipe((0,y.n)(L=>(this.orderMethodsService.sendNotifyForPayment(L),(0,_.of)(L))))}}assignToRoute(){const s=this.orderMethodsService.currentOrder;if(null==s||!s.id)return void this.notificationService.notify("No active order","Error",3e3,"red");const a=this.siteService.getAssignedSite();this.action$=this.routeService.assignByOrderID(a,s.id).pipe((0,y.n)(g=>(this.notificationService.notify("Order added to route dispatch","OK",2e3,"green"),(0,_.of)(g))),(0,h.W)(g=>(this.notificationService.notify("Failed to assign order","Error",3e3,"red"),(0,_.of)(null))))}viewPackageGroups(){const s=this.orderMethodsService.currentOrder||this.order;null!=s&&s.id?this.dialog.open(nt,{width:"700px",maxWidth:"95vw",data:{order:s,isAdmin:this.isAdmin}}):this.notificationService.notify("No active order","Error",3e3,"red")}purchaseShippingLabel(){var s;const a=this.orderMethodsService.currentOrder||this.order,g=null==a||null===(s=a.orderFeatures)||void 0===s||null===(s=s.shippingFeatures)||void 0===s||null===(s=s.selectedRate)||void 0===s?void 0:s.objectId;g?this.action$=this.shippingService.purchaseLabel(g,a.id).pipe((0,y.n)(S=>{null!=S&&S.order&&this.orderMethodsService.updateOrder(S.order);const F=null==S?void 0:S.response;return null!=F&&F.success?this.notificationService.notify(`Label purchased \u2014 tracking: ${F.trackingNumber}`,"OK",5e3,"green"):this.notificationService.notify((null==F?void 0:F.errorMessage)||"L
1abel purchase failed.","Close",5e3,"red"),this.cd.markForCheck(),(0,_.of)(S)})):this.notificationService.notify("No shipping rate selected for this order.","Close",4e3,"red")}reserveRental(){const s=this.orderMethodsService.currentOrder||this.order;null!=s&&s.id?this.dialog.open(rt,{width:"400px"}).afterClosed().pipe((0,r.s)(1)).subscribe(g=>{if(!g)return;const S=this.siteService.getAssignedSite();this.action$=this.rentalsService.reserveRental(S,s.id,g).pipe((0,y.n)(F=>{var L,J;return null!=F&&F.success?(this.notificationService.notify(`Reserved ${null!==(L=null===(J=F.data)||void 0===J?void 0:J.linesReserved)&&void 0!==L?L:0} rental line(s)`,"OK",3e3,"green"),this.cd.markForCheck(),(0,_.of)(F)):(this.notificationService.notify((null==F?void 0:F.errorMessage)||"Reservation failed \u2014 item may no longer be available for that window.","Close",4e3,"red"),(0,_.of)(null))}),(0,h.W)(()=>(this.notificationService.notify("Reservation failed \u2014 item may no longer be available for that window.","Close",4e3,"red"),(0,_.of)(null))))}):this.notificationService.notify("No active order","Error",3e3,"red")}checkoutRental(){const s=this.orderMethodsService.currentOrder||this.order;if(null==s||!s.id)return void this.notificationService.notify("No active order","Error",3e3,"red");const a=this.siteService.getAssignedSite();this.action$=this.rentalsService.checkoutRental(a,s.id).pipe((0,y.n)(g=>{var S;return this.notificationService.notify(`Handed out ${null!==(S=null==g?void 0:g.linesHanded)&&void 0!==S?S:0} rental line(s)`,"OK",3e3,"green"),this.cd.markForCheck(),(0,_.of)(g)}),(0,h.W)(()=>(this.notificationService.notify("Failed to hand out rental items.","Close",4e3,"red"),(0,_.of)(null))))}returnRental(){const s=this.orderMethodsService.currentOrder||this.order;if(null==s||!s.id)return void this.notificationService.notify("No active order","Error",3e3,"red");const a=this.siteService.getAssignedSite();this.action$=this.rentalsService.returnRental(a,s.id).pipe((0,y.n)(g=>{var S;return this.notificationService.notify(`Returned ${null!==(S=null==g?void 0:g.linesReturned)&&void 0!==S?S:0} rental line(s)`,"OK",3e3,"green"),this.cd.markForCheck(),(0,_.of)(g)}),(0,h.W)(()=>(this.notificationService.notify("Failed to return rental items.","Close",4e3,"red"),(0,_.of)(null))))}assignClientShipping(){const s=this.orderMethodsService.currentOrder;if(null==s||!s.id||null==s||!s.clientID)return void this.notificationService.notify("No active order or missing client","Error",3e3,"red");const a=this.siteService.getAssignedSite();this.action$=this.ordersService.assignClientShipping(a,s.id,s.clientID).pipe((0,y.n)(g=>(this.notificationService.notify("Client shipping assigned","OK",2e3,"green"),(0,_.of)(g))),(0,h.W)(g=>(this.notificationService.notify("Failed to assign client shipping","Error",3e3,"red"),(0,_.of)(null))))}}return(d=M).\u0275fac=function(s){return new(s||d)(e.rXU(T.ef),e.rXU(w.J),e.rXU(n.I),e.rXU(ot.v),e.rXU(t.j),e.rXU(i.iX),e.rXU(ie.Ix),e.rXU(p.F),e.rXU(f.BZ),e.rXU($.T),e.rXU(p.F),e.rXU(o.U),e.rXU(U.o),e.rXU(R.W),e.rXU(v.b),e.rXU(st.VK),e.rXU(k.s),e.rXU(at.c),e.rXU(C.D),e.rXU(e.gRc),e.rXU(b.g),e.rXU(f.BZ),e.rXU(P.c),e.rXU(he.ih),e.rXU(ct.P))},d.\u0275cmp=e.VBU({type:d,selectors:[["function-buttons-list"]],inputs:{order:"order",buttonSize:"buttonSize",userAuths:"userAuths",isAdmin:"isAdmin",isUser:"isUser",isStaff:"isStaff",adminEmail:"adminEmail",list:"list",posDevice:"posDevice"},standalone:!0,features:[e.aNF],decls:5,vars:4,consts:[["buttonView",""],["menuTrigger","matMenuTrigger"],["menu","matMenu"],[4,"ngIf"],["aria-label","user menu","mat-raised-button","","color","accent",3,"click","matMenuTriggerFor"],[1,"mat-menu-panel",3,"overlapTrigger"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-raised-button","",3,"click"]],template:function(s,a){1&s&&(e.DNE(0,dt,1,0,"div",3),e.nI1(1,"async"),e.DNE(2,ut,8,5,"div",3)(3,gt,1,1,"ng-template",null,0,e.C5r)),2&s&&(e.Y8G("ngIf",e.bMT(1,2,a.action$)),e.R7$(2),e.Y8G("ngIf",a.list))},dependencies:[m.MD,m.Sq,m.bT,m.T3,m.Jj,O.l,q.iV,de.An,_e.pI,_e.fS,x.T],styles:[".button-small[_ngcontent-%COMP%]{height:50px;width:50px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
1.button-medium[_ngcontent-%COMP%]{height:65px;width:65px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.button-medium[_ngcontent-%COMP%]{height:65px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.button-small-menu[_ngcontent-%COMP%]{height:50px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]}),M})()},51458:(z,j,c)=>{c.d(j,{f:()=>w});var E=c(60177),e=c(89417),B=c(7498),y=c(14997),_=c(23327),D=c(92646),r=c(54438),h=c(85956),f=c(44613),p=c(99213),n=c(46879);function t($,U){1&$&&(r.j41(0,"mat-icon",20),r.EFF(1,"group"),r.k0s())}function i($,U){if(1&$){const b=r.RV6();r.j41(0,"div")(1,"button",19),r.bIt("click",function(){const R=r.eBV(b).$implicit,P=r.XpG(2);return r.Njj(P.assignVaue(R))}),r.EFF(2),r.DNE(3,t,2,0,"mat-icon",20),r.k0s()()}if(2&$){const b=U.$implicit,v=r.XpG(2);r.R7$(2),r.SpI(" ",b," "),r.R7$(),r.vxM(3,b==v.orderMethodsService.splitEntryValue?3:-1)}}function o($,U){1&$&&(r.j41(0,"mat-icon",20),r.EFF(1,"airline_seat_recline_normal"),r.k0s())}function u($,U){if(1&$){const b=r.RV6();r.j41(0,"div")(1,"button",19),r.bIt("click",function(){const R=r.eBV(b).$implicit,P=r.XpG(2);return r.Njj(P.assignSeatVaue(R))}),r.EFF(2),r.DNE(3,o,2,0,"mat-icon",20),r.k0s()()}if(2&$){const b=U.$implicit,v=r.XpG(2);r.R7$(2),r.SpI(" ",b," "),r.R7$(),r.vxM(3,b==v.orderMethodsService.seatNumber?3:-1)}}function m($,U){if(1&$){const b=r.RV6();r.j41(0,"button",2,0),r.bIt("click",function(){r.eBV(b);const R=r.sdS(1);return r.Njj(R.openMenu())}),r.j41(2,"div",3)(3,"div",4)(4,"mat-icon",5),r.EFF(5,"airline_seat_recline_normal"),r.k0s(),r.j41(6,"mat-label",6),r.EFF(7),r.k0s()(),r.j41(8,"div")(9,"mat-icon",5),r.EFF(10,"group"),r.k0s(),r.EFF(11),r.j41(12,"mat-label",6),r.EFF(13),r.k0s()()()(),r.j41(14,"mat-menu",7,1)(16,"span")(17,"div",8)(18,"div",9)(19,"span",10)(20,"mat-icon",11),r.EFF(21,"group"),r.k0s(),r.j41(22,"mat-label"),r.EFF(23,"Split"),r.k0s()(),r.j41(24,"div",12),r.DNE(25,i,4,2,"div",13),r.k0s(),r.j41(26,"div",14)(27,"button",15),r.bIt("click",function(){r.eBV(b);const R=r.XpG();return r.Njj(R.nextGroup())}),r.EFF(28," Next "),r.k0s()()(),r.j41(29,"div",9)(30,"span",10)(31,"mat-icon",11),r.EFF(32," airline_seat_recline_normal "),r.k0s(),r.j41(33,"mat-label"),r.EFF(34,"Seat"),r.k0s()(),r.j41(35,"div",12),r.DNE(36,u,4,2,"div",13),r.k0s(),r.j41(37,"div",14)(38,"button",15),r.bIt("click",function(){r.eBV(b);const R=r.XpG();return r.Njj(R.nextSeat())}),r.EFF(39,"Next"),r.k0s()()(),r.j41(40,"div",9)(41,"div",10)(42,"p",16)(43,"mat-icon"),r.EFF(44,"list"),r.k0s(),r.EFF(45," Both "),r.k0s()(),r.j41(46,"div",14)(47,"div",17)(48,"button",18),r.bIt("click",function(){r.eBV(b);const R=r.XpG();return r.Njj(R.reset())}),r.EFF(49,"Reset"),r.k0s()(),r.j41(50,"div",17)(51,"button",18),r.bIt("click",function(){r.eBV(b);const R=r.XpG();return r.Njj(R.previous())}),r.EFF(52,"Back"),r.k0s()(),r.j41(53,"div")(54,"button",18),r.bIt("click",function(){r.eBV(b);const R=r.XpG();return r.Njj(R.next())}),r.EFF(55,"Next"),r.k0s()()()()()()()}if(2&$){const b=r.sdS(15),v=r.XpG();r.Y8G("matMenuTriggerFor",b),r.R7$(7),r.JRh(v.orderMethodsService.seatNumber),r.R7$(4),r.SpI(" ",v.value," "),r.R7$(2),r.JRh(v.orderMethodsService.splitEntryValue),r.R7$(),r.Y8G("overlapTrigger",!1),r.R7$(11),r.Y8G("ngForOf",v.values),r.R7$(11),r.Y8G("ngForOf",v.values)}}function O($,U){if(1&$){const b=r.RV6();r.j41(0,"div",21)(1,"value-from-list-selector",22),r.bIt("assignValue",function(R){r.eBV(b);const P=r.XpG(2);return r.Njj(P.assignVaue(R))}),r.EFF(2," Split "),r.k0s()()}if(2&$){const b=r.XpG(2);r.R7$(),r.Y8G("values",b.values)("value",b.orderMethodsService.splitEntryValue)}}function x($,U){if(1&$&&r.DNE(0,O,3,2,"div",21),2&$){const b=r.XpG();r.vxM(0,b.isUserStaff&&null!=b.uiTransactionSettings&&b.uiTransactionSettings.splitEntry?0:-1)}}let w=(()=>{var $;class U{constructor(v,R){this.orderMethodsService=v,this.cd=R,this.uiTransactionSettings={},this.isUserStaff=!1,this.values=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]}ngOnInit(){0==this.orderMethodsService.splitEntryValue&&(this.orderMethodsService.splitEntryValue=1),0==this.orderMethodsService.seatNumber&&(this.orderMethodsService.seatNumber=1)}assignVaue(v){0==v&&(v=1),this.orderMethodsService.splitEntryValue=v,this.orderMethodsService.splitEntryValue>this.orderMethodsService.seatNumber&&(this.orderMethodsService.seatNumber=this.orderMethodsService.splitEntryValue)}assignSeatVaue(v){0==v&&(v=1),this.orderMethodsService.seatNumber=v}previousSeat(){1!==this.orderMethodsService.seatNumber&&(this.orderMethodsService.seatNumber=this.orderMethodsService.seatNumber-1)}nextSeat(){this.orderMethodsService.seatNumber=this.orderMethodsService.seatNumber+1,this.cd.markForCheck()}previousGroup(){1!==this.orderMethodsService.splitEntryValue&&(this.orderMethodsService.splitEntryValue=this.orderMethodsService.splitEntryValue-1)}nextGroup(){this.orderMethodsService.seatNumber>this.orderMethodsService.splitEntryValue+1?(this.orderMethodsService.splitEntryValue=this.orderMethodsService.seatNumber+1,this.orderMethodsService.seatNumber=this.orderMethodsService.splitEntryValue):(this.orderMethodsService.splitEntryValue=this.orderMethodsService.splitEntryValue+1,this.orderMethodsService.splitEntryValue>this.orderMethodsService.seatNumber&&(this.orderMethodsService.seatNumber=this.orderMethodsService.splitEntryValue)),this.cd.markForCheck()}next(){this.orderMethodsService.seatNumber=this.orderMethodsService.seatNumber+1,this.orderMethodsService.splitEntryValue=this.orderMethodsService.splitEntryValue+1,this.cd.markForCheck()}previous(){this.previousGroup(),this.previousSeat(),this.cd.markForCheck()}reset(){this.assignSeatVaue(1),this.assignVaue(1),this.cd.markForCheck()}}return($=U).\u0275fac=function(v){return new(v||$)(r.rXU(B.iX),r.rXU(r.gRc))},$.\u0275cmp=r.VBU({type:$,selectors:[["split-entry-selector"]],inputs:{uiTransactionSettings:"uiTransactionSettings",isUserStaff:"isUserStaff",order:"order",seatsEnabled:"seatsEnabled",footerLocation:"footerLocation"},standalone:!0,features:[r.aNF],decls:2,vars:1,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["aria-label","user menu","mat-raised-button","","color","accent",1,"split-selector-button",3,"click","matMenuTriggerFor"],[1,"button-icon-grid"],[1,"button-selector-content"],[1,"mat-icon",2,"font-size",".8em"],[2,"position","relative","top","-10px"],[1,"mat-menu-panel",2,"width","300px",3,"overlapTrigger"],[1,"menu-container"],[1,"menu-column"],[1,"white-background"],["color","primary",1,"mat-icon"],[1,"scrollable-list"],[4,"ngFor","ngForOf"],[1,"fixed-button"],["mat-flat-button","","color","primary",3,"click"],["color","primary"],[2,"margin-bottom","25px"],["mat-flat-button","","color","primary",2,"height","55px","margin-bottom","10px",3,"click"],["mat-button","","color","accent",1,"selector",3,"click"],[2,"font-size","1em"],[1,"menu-buttons"],[3,"assignValue","values","value"]],template:function(v,R){1&v&&r.DNE(0,m,56,7)(1,x,1,1),2&v&&r.vxM(0,R.seatsEnabled?0:1)},dependencies:[E.MD,E.Sq,y.l,h.iV,f.aw,p.An,n.pI,n.fS,_.T,e.YN,e.X1,D.i],styles:["[_nghost-%COMP%]   mat-menu-panel[_ngcontent-%COMP%]   .mat-menu-panel[_ngcontent-%COMP%]{margin-top:15px!important;width:450px!important;min-width:450px!important;overflow-x:hidden;height:auto}.menu-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:5px;width:450px;max-height:500px;overflow:hidden}.menu-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:95px;position:relative}.scrollable-list[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding-right:8px;margin-bottom:48px}.fixed-button[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;padding:8px;background:#fff;box-shadow:0 -2px 4px #0000001a}.white-background[_ngcontent-%COMP%]{background:#fff;box-shadow:0 -2px 4px #0000001a}.button-icon-grid[_ngcontent-%COMP%]{line-height:.5em;position:relative;top:7px}.split-selector-button[_ngcontent-%COMP%]{width:53px;height:50px}@media (max-width: 599px){.split-selector-button[_ngcontent-%COMP%]{height:55px}}@media (max-width: 370px){.split-selector-button[_ngcontent-%COMP%]{height:55px}}"]}),U})()},58286:(z,j,c)=>{c.d(j,{p:()=>U});var E=c(60177),e=c(25558),B=c(7673),y=c(65468),_=c(87866),D=c(31688),r=c(27466),h=c(7498),f=c(80583),p=c(14997),n=c(23327),t=c(54438),i=c(39479),o=c(85956),u=c(99213);function m(b,v){1&b&&t.nrm(0,"div")}function O(b,v){1&b&&t.nrm(0,"div")}function x(b,v){if(1&b){const R=t.RV6();t.j41(0,"div")(1,"button",3),t.bIt("click",function(){const k=t.eBV(R).$implicit,C=t.XpG(2);return t.Njj(C.printReceipt(k))}),t.j41(2,"div",4)(3,"div")(4,"mat-icon",5),t.EFF(5,"print"),t.k0s(),t.j41(6,"span",6),t.EFF(7),t.k0s()(),t.j41(8,"div",7),t.EFF(9),t.k0s()()()()}if(2&b){const R=v.$implicit;t.R7$(7),t.SpI(" ",R.charAt(0)," "),t.R7$(2),t.SpI(" ",R," ")}}function w(b,v){if(1&b&&(t.j41(0,"div",1),t.DNE(1,x,10,2,"div",2),t.k0s()),2&b){const R=t.XpG();t.R7$(),t.Y8G("ngForOf",R.remoteReceiptList)}}function $(b,v){if(1&b){const R=t.RV6();t.j41(0,"button",3),t.bIt("click",function(){t.eBV(R);const k=t.XpG();return t.Njj(k.printReceipt())}),t.j41(1,"mat-icon"),t.EFF(2,"print"),t.k0s()()}}let U=(()=>{var b;class v{constructor(P,k,C,I,T,A,W,Z){this.siteService=P,this.paymentService=k,this.orderMethodsService=C,this.notificationService=I,this.ordersService=T,this.printingService=A,this.cd=W,this.paymentMethodsService=Z,this.remoteReceiptList=[]}ngOnInit(){var P;null!==(P=this.posDevice)&&void 0!==P&&P.remoteReceipt&&(this.remoteReceiptList=this.posDevice.remoteReceipt.split(","))}remotePrint(P,k,C,I){const T=this.order;let A=!1;if(C&&(null!=C&&C.remotePrepPrint&&("printPrep"===P&&(A=!0),"rePrintPrep"===P&&(A=!0),"printReceipt"==P&&(A=!0)),null!=C&&C.remotePrint||A)){var W;let le={message:P,deviceName:null===(W=this.posDevice)||void 0===W?void 0:W.deviceName,printServer:this.uiTransactionSettings.printServerDevice,printerName:I,id:T.id,history:T.history};const ie=this.siteService.getAssignedSite();return this.printAction$=this.paymentService.remotePrintMessage(ie,le).pipe((0,e.n)(re=>
1(this.notificationService.notify(re?"Print job sent":"Print Job not sent","Close",3e3,"green"),null!=C&&C.exitOrderOnFire&&"printReceipt"!=P&&this.orderMethodsService.clearOrder(),this.cd.markForCheck(),(0,B.of)(re)))),A}return A}printReceipt(P){const k=this.order,C=this.posDevice;if(this.remotePrint("printReceipt",null==C?void 0:C.exitOrderOnFire,C,P))return;const T=this.uiTransactionSettings;console.log("printreceipt",+(null==C?void 0:C.receiptID),null==T?void 0:T.singlePrintReceipt),console.log("receiptPrinter",null==C?void 0:C.receiptPrinter,C.receiptID),null!=T&&T.prepOrderOnExit?this.printAction$=this.paymentMethodsService.sendOrderOnExit(k).pipe((0,e.n)(A=>{const W=this.siteService.getAssignedSite();return this.ordersService.getOrder(W,k.id.toString(),k.history)})).pipe((0,e.n)(A=>(this.orderMethodsService.updateOrder(A),this.printingService.previewReceipt(null==T?void 0:T.singlePrintReceipt,A,null==C?void 0:C.receiptPrinter,+(null==C?void 0:C.receiptID)),this.cd.markForCheck(),(0,B.of)(A)))):this.printingService.previewReceipt(null==T?void 0:T.singlePrintReceipt,k,null==C?void 0:C.receiptPrinter,+(null==C?void 0:C.receiptID))}sendOrder(){var P;if(this.remotePrint("printPrep",null===(P=this.posDevice)||void 0===P?void 0:P.exitOrderOnFire,this.posDevice))return;let k;this.posDevice&&this.posDevice.exitOrderOnFire&&(k=this.posDevice.exitOrderOnFire),this.action$=this.paymentMethodsService.sendToPrep(this.order,!0,this.uiTransactionSettings).pipe((0,e.n)(C=>(k&&this.orderMethodsService.clearOrder(),this.cd.markForCheck(),(0,B.of)(C))))}}return(b=v).\u0275fac=function(P){return new(P||b)(t.rXU(D.I),t.rXU(i.c),t.rXU(h.iX),t.rXU(_.J),t.rXU(y.BZ),t.rXU(r.t),t.rXU(t.gRc),t.rXU(f.s))},b.\u0275cmp=t.VBU({type:b,selectors:[["print-receipt-button"]],inputs:{posDevice:"posDevice",uiTransactionSettings:"uiTransactionSettings",order:"order"},standalone:!0,features:[t.aNF],decls:6,vars:7,consts:[[4,"ngIf"],[1,"grid-print-buttons"],[4,"ngFor","ngForOf"],["color","primary","mat-raised-button","",1,"button",3,"click"],[1,"button-grid"],[2,"left","-8px","top","7px","position","relative","font-size","1.2em"],[2,"font-size","1.5em","top","-7px","left","-10px","max-width","50px","overflow","hidden","position","relative"],[2,"font-size",".8em","max-width","75px","overflow","hidden"]],template:function(P,k){1&P&&(t.DNE(0,m,1,0,"div",0),t.nI1(1,"async"),t.DNE(2,O,1,0,"div",0),t.nI1(3,"async"),t.DNE(4,w,2,1,"div",1)(5,$,3,0)),2&P&&(t.Y8G("ngIf",t.bMT(1,3,k.action$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,5,k.printAction$)),t.R7$(2),t.vxM(4,k.posDevice&&k.posDevice.remoteReceipt?4:5))},dependencies:[p.l,o.iV,u.An,E.MD,E.Sq,E.bT,E.Jj,n.T],styles:[".button[_ngcontent-%COMP%]{height:50px;width:50px}@media (max-width: 599px){.button[_ngcontent-%COMP%]{height:50px;width:50px}}.button-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto;line-height:.8em;gap:4px}.grid-print-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto auto;gap:4px}"]}),v})()},92646:(z,j,c)=>{c.d(j,{i:()=>p});var E=c(60177),e=c(54438),B=c(14997),y=c(23327),_=c(85956),D=c(99213),r=c(46879);const h=["*"];function f(n,t){if(1&n){const i=e.RV6();e.j41(0,"div",8)(1,"div")(2,"button",9),e.bIt("click",function(){const u=e.eBV(i).$implicit,m=e.XpG();return e.Njj(m.assignValueEvent(u))}),e.nrm(3,"mat-icon"),e.EFF(4),e.k0s()()()}if(2&n){const i=t.$implicit;e.R7$(4),e.SpI(" ",i,"")}}let p=(()=>{var n;class t{constructor(){this.values=[0,1,2,3,5,6,7,8,9],this.assignValue=new e.bkB}assignValueEvent(o){this.assignValue.emit(o)}}return(n=t).\u0275fac=function(o){return new(o||n)},n.\u0275cmp=e.VBU({type:n,selectors:[["value-from-list-selector"]],inputs:{value:"value",values:"values"},outputs:{assignValue:"assignValue"},standalone:!0,features:[e.aNF],ngContentSelectors:h,decls:12,vars:4,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["aria-label","user menu","mat-raised-button","","color","primary",1,"more-button",3,"click","matMenuTriggerFor"],[1,"button-selector-content"],[1,"mat-icon"],[1,"mat-menu-panel",3,"overlapTrigger"],[3,"mouseleave"],["class","button-list",4,"ngFor","ngForOf"],[1,"button-list"],["mat-button","","color","accent",1,"selector",3,"click"]],template:function(o,u){if(1&o){const m=e.RV6();e.NAR(),e.j41(0,"button",2,0),e.bIt("click",function(){e.eBV(m);const x=e.sdS(1);return e.Njj(x.openMenu())}),e.j41(2,"div",3),e.SdG(3),e.k0s(),e.j41(4,"div")(5,"mat-icon",4),e.EFF(6,"group"),e.k0s(),e.EFF(7),e.k0s()(),e.j41(8,"mat-menu",5,1)(10,"span",6),e.bIt("mouseleave",function(){e.eBV(m);const x=e.sdS(1);return e.Njj(x.closeMenu())}),e.DNE(11,f,5,1,"div",7),e.k0s()()}if(2&o){const m=e.sdS(9);e.Y8G("matMenuTriggerFor",m),e.R7$(7),e.SpI(" ",u.value," "),e.R7$(),e.Y8G("overlapTrigger",!1),e.R7$(3),e.Y8G("ngForOf",u.values)}},dependencies:[E.MD,E.Sq,B.l,_.iV,D.An,r.pI,r.fS,y.T],styles:[".more-button[_ngcontent-%COMP%]{width:55px;padding:0;height:50px}.selector[_ngcontent-%COMP%]{height:65px;width:100%;margin:5px}.button-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.mat-icon[_ngcontent-%COMP%]{height:15px;width:15px;margin-right:15px}.button-selector-content[_ngcontent-%COMP%]{margin-bottom:-13px}"]}),t})()}}]);

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.