PageSourceSearch

https://shoppi.co.il/4200.539b21d59fb4c31b.js

js shoppi.co.il collected 2026-10-01 15:25:08 UTC 46,878 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4c080475-ac0e-5fb8-b41f-17646536082e")}catch(e){}}();
3(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4200],{4200:(G,M,r)=>{r.d(M,{s:()=>$});var t=r(9204),e=r(5305),h=r(4707),C=r(4056),x=r(8709),n=r(8559),R=r(3924),g=r(4111),F=r(4480),P=r(7152),_=r(316),l=r(2655),O=r(6808),c=r(3320),f=r(3450),u=r(8274),D=r(9272),p=r(9930);function k(m,S){if(1&m&&(n.j41(0,"ion-button",2),n.nrm(1,"ion-icon",3),n.EFF(2),n.nI1(3,"translate"),n.k0s()),2&m){const i=n.XpG();n.Y8G("routerLink",i.historyLink),n.R7$(2),n.SpI(" ",n.bMT(3,2,"BACK"),"\n")}}function I(m,S){if(1&m&&(n.j41(0,"ion-button",24),n.EFF(1),n.nI1(2,"translate"),n.nrm(3,"ion-icon",25),n.k0s()),2&m){const i=n.XpG(2);n.Y8G("routerLink",i.storeLink),n.R7$(),n.SpI(" ",n.bMT(2,2,"MOVE_TO_THE_STORE")," ")}}function E(m,S){if(1&m){const i=n.RV6();n.j41(0,"pay-order",26),n.bIt("pay",function(v){n.eBV(i);const A=n.XpG(2);return n.Njj(A.payOrder(v))}),n.k0s()}if(2&m){const i=n.XpG(2);n.Y8G("order",i.order)("paymentRequiredType",i.paymentRequiredType)("payInProgress",i.payInProgress)("payError",i.payErrorText)("mobile",i.isHandset)}}function a(m,S){if(1&m&&(n.j41(0,"span",27),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"date"),n.k0s()),2&m){const i=n.XpG(2);n.R7$(),n.Lme("",n.bMT(2,2,"ORDER_CONFIRM_ON"),": ",n.i5U(3,4,i.order.timeConfirmation,"dd/MM/YY HH:mm"),"")}}function b(m,S){if(1&m&&(n.j41(0,"span",28),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"date"),n.k0s()),2&m){const i=n.XpG(2);n.R7$(),n.Lme("",n.bMT(2,2,"ORDER_CLOSE_ON"),": ",n.i5U(3,4,i.order.timeClose,"dd/MM/YY HH:mm"),"")}}function s(m,S){if(1&m&&(n.j41(0,"span",29),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"date"),n.k0s()),2&m){const i=n.XpG(2);n.R7$(),n.Lme("",n.bMT(2,2,"ORDER_CANCEL_ON"),": ",n.i5U(3,4,i.order.timeCancel,"dd/MM/YY HH:mm"),"")}}function o(m,S){if(1&m&&(n.j41(0,"div",30)(1,"div",12),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"span",31),n.EFF(5),n.k0s()()),2&m){const i=n.XpG(2);n.R7$(2),n.JRh(n.bMT(3,2,"NOTE")),n.R7$(3),n.JRh(i.order.note)}}function T(m,S){if(1&m&&n.nrm(0,"order-payment-list",32),2&m){const i=n.XpG(2);n.Y8G("order",i.order)("mobile",i.isHandset)}}function d(m,S){if(1&m){const i=n.RV6();n.j41(0,"div",4)(1,"div",5),n.nrm(2,"profile-navigation",6),n.DNE(3,I,4,4,"ion-button",7),n.k0s(),n.j41(4,"order-store-info",8),n.bIt("edit",function(){n.eBV(i);const v=n.XpG();return n.Njj(v.startEditOrder())})("cancel",function(){n.eBV(i);const v=n.XpG();return n.Njj(v.cancelOrder())}),n.k0s(),n.DNE(5,E,1,5,"pay-order",9),n.j41(6,"div",10)(7,"div",11)(8,"div",12),n.EFF(9),n.nI1(10,"translate"),n.k0s(),n.j41(11,"div",13)(12,"span",14),n.EFF(13),n.nI1(14,"translate"),n.k0s(),n.j41(15,"span",15),n.EFF(16),n.nI1(17,"translate"),n.nI1(18,"uppercase"),n.nI1(19,"translate"),n.k0s(),n.j41(20,"span",16),n.EFF(21),n.nI1(22,"translate"),n.nI1(23,"date"),n.k0s(),n.DNE(24,a,4,7,"span",17)(25,b,4,7,"span",18)(26,s,4,7,"span",19),n.k0s()(),n.nrm(27,"order-supply",20),n.k0s(),n.DNE(28,o,6,4,"div",21),n.nrm(29,"order-item-list",22),n.DNE(30,T,1,2,"order-payment-list",23),n.k0s()}if(2&m){const i=n.XpG();n.AVh("mobile",i.isHandset),n.R7$(2),n.Y8G("storeName",i.order.store.name)("isHandset",i.isHandset),n.R7$(),n.Y8G("ngIf",!i.inStoreProfile),n.R7$(),n.Y8G("order",i.order)("mobile",i.isHandset),n.R7$(),n.Y8G("ngIf",i.paymentRequiredType),n.R7$(4),n.JRh(n.bMT(10,26,"INFO")),n.R7$(4),n.Lme("",n.bMT(14,28,"ORDER_ID"),": ",i.order.id,""),n.R7$(3),n.Lme("",n.bMT(17,30,"STATUS"),": ",n.bMT(19,34,n.bMT(18,32,i.order.status)),""),n.R7$(5),n.Lme("",n.bMT(22,36,"ORDER_PLACED_ON"),": ",n.i5U(23,38,i.order.timeAdded,"dd/MM/YY HH:mm"),""),n.R7$(3),n.Y8G("ngIf",i.order.timeConfirmation),n.R7$(),n.Y8G("ngIf",i.order.timeClose),n.R7$(),n.Y8G("ngIf",i.order.timeCancel),n.R7$(),n.Y8G("order",i.order),n.R7$(),n.Y8G("ngIf",i.order.note),n.R7$(),n.Y8G("order",i.order)("itemsError",i.payError)("productDefaultImg",i.productDefaultImg)("paymentRequired",i.paymentRequired)("mobile",i.isHandset),n.R7$(),n.Y8G("ngIf",null==i.order.payments?null:i.order.payments.length)}}let $=(()=>{class m{constructor(i,y,v,A,j){this.route=i,this.router=y,this.modalController=v,this.generalService=A,this.orderService=j,this.setOrder()}ngOnInit(){}
3get paymentRequiredType(){if([e.p.VOID,e.p.PAID].includes(this.order?.status)||!this.order.store.withPayment)return null;if(this.order?.status==e.p.SEMI_PAID&&this.order?.balance>0)return"MISSING";if(this.order?.inPayProcess)return"PAID_AND_NOT_SAVED";const i=this.order.store.disableCreditWithoutDelivery&&this.order.shippingMethod!==h.e.POST;if(this.order?.canPayOrder&&!i){if(!this.order.payments?.length)return"MISSING";if(!this.order.payments?.find(y=>"open"===y.status&&(!y?.data?.details?.statusCode||"000"===y?.data?.details?.statusCode)))return"ERROR"}return null}get isHandset(){return this.generalService.isHandset}get historyLink(){return this.inStoreProfile?`/store/${this.order?.store.id}/profile/order-history`:"/profile/my-stores/order-history"}get storeLink(){return`/store/${this.order?.store?.id}/sales`}get inStoreProfile(){return this.router.url.includes("/store/")}payOrder(i){this.payInProgress=!0,this.orderService.pay(this.order.id,i).subscribe(y=>{this.payInProgress=!1,this.setOrder()},({error:y})=>{this.payInProgress=!1,this.payErrorText=y?.data?.payError||y?.errorMessage,this.payError=y?.data})}startEditOrder(){this.order.canEditByCustomer&&this.orderService.isInEdit(this.order.id).subscribe(({data:i})=>{i.isOrderInEdit?this.confirmConinueEditOrder():this.editOrder()})}cancelOrder(){var i=this;return(0,t.A)(function*(){if(!i.order.canEditByCustomer&&!i.order.canCancel)return;const y=yield i.modalController.create({component:C.E,cssClass:["basic-modal","basic-round-modal","fit-content-modal"],componentProps:{order:i.order},backdropDismiss:!0});y.present();const{data:v}=yield y.onDidDismiss();v&&i.setOrder()})()}setOrder(){this.orderService.one(this.route.snapshot.params.orderId).subscribe(({data:i})=>{this.order=i,this.productDefaultImg=this.order.store?.shoppiSettings?.media?.defaultProductImg})}confirmConinueEditOrder(){var i=this;return(0,t.A)(function*(){const y=yield i.modalController.create({component:x.w,cssClass:["basic-modal","fit-height-modal"],componentProps:{icon:"cancel-order",message:"WE_HAVE_DETECTED_THAT_YOU_HAVE_STARTED_EDITING_THE_ORDER",subMessage:"DO_YOU_WANT_TO_CONTINUE_EDITING",cancelButton:"NO_I_WANT_TO_START_OVER",confirmButton:"YES",buttonAuthWidth:!0},backdropDismiss:!0});y.present();const{data:v}=yield y.onDidDismiss();void 0!==v&&i.editOrder(v)})()}editOrder(i=!1){this.orderService.startEdit(this.order.id,i).subscribe(y=>this.router.navigate(["/store",this.order.store.id,this.order.sale.id]))}static{this.\u0275fac=function(y){return new(y||m)(n.rXU(R.nX),n.rXU(R.Ix),n.rXU(g.W3),n.rXU(F.O),n.rXU(P.Q))}}static{this.\u0275cmp=n.VBU({type:m,selectors:[["order-details"]],decls:2,vars:2,consts:[["fill","clear","class","profile-back","data-testid","order-details-back-btn",3,"routerLink",4,"ngIf"],["class","order-details flex-col",3,"mobile",4,"ngIf"],["fill","clear","data-testid","order-details-back-btn",1,"profile-back",3,"routerLink"],["name","fi-rr-arrow-small-up"],[1,"order-details","flex-col"],[1,"flex-row"],[3,"storeName","isHandset"],["fill","clear","class","profile-back move-to-store","data-testid","order-details-move-to-store-btn",3,"routerLink",4,"ngIf"],[3,"edit","cancel","order","mobile"],["class","block",3,"order","paymentRequiredType","payInProgress","payError","mobile","pay",4,"ngIf"],[1,"order-basic-details","flex-row"],[1,"block"],[1,"block-title"],[1,"order-details-content","flex-col"],["data-testid","order-details-order-id-value"],["data-testid","order-details-status-value"],["data-testid","order-details-time-added-value"],["data-testid","order-details-time-confirmation-value",4,"ngIf"],["data-testid","order-details-time-close-value",4,"ngIf"],["data-testid","order-details-time-cancel-value",4,"ngIf"],[1,"block",3,"order"],["class","block flex-col",4,"ngIf"],[1,"block",3,"order","itemsError","productDefaultImg","paymentRequired","mobile"],["class","block",3,"order","mobile",4,"ngIf"],["fill","clear","data-testid","order-details-move-to-store-btn",1,"profile-back","move-to-store",3,"routerLink"],["name","arrow-small-left"],[1,"block",3,"pay","order","paymentRequiredType","payInProgress","payError","mobile"],["data-testid","order-details-time-confirmation-value"],["data-testid","order-details-time-close-value"],["data-testid","order-details-time-cancel-value"],[1,"block","flex-col"],["data-testid","order-details-note-value"],[1,"block",3,"order","mobile"]],template:function(y,v){1&y&&n.DNE(0,k,4,4,"ion-button",0)(1,d,31,41,"div",1),2&y&&(n.Y8G("ngIf",v.isHandset||v.inStoreProfile),n.R7$(),n.Y8G("ngIf",v.order))},dependencies:[_.bT,R.Wk,g.Jm,g.iq,g.N7,l.H,O.H,c.Z,f.m,u.p,D.E,_.Pc,_.vh,p.D9],styles:["ion-button.profile-back{height:-moz-fit-content;height:fit-content;margin:2vh 0;color:var(--color-main);font-size:1rem;--padding-start: 0}ion-button.profile-back ion-icon{font-size:1.3rem;transform:rotate(180deg);margin-inline-end:4px}ion-button.profile-back.move-to-store{margin:0 auto 0 0;--padding-end: 0;font-size:1.125rem;font-weight:600;line-height:1.25rem;letter-spacing:-.03375rem}ion-button.profile-back.move-to-store ion-icon{font-size:1.3rem;transform:rotate(180deg);margin-inline-end:0}.order-details{row-gap:10px;color:var(--color-main)}.order-details .block{border-radius:8px;padding:10px;background-color:var(--color-white)}.order-details .block .block-title{color:var(--color-main);padding:0 1rem .5rem;margin-bottom:.6rem;font-weight:700;border-bottom:1px solid var(--color-gray-2)}.order-details .block .block-title:not(:first-child){margin-top:15px}.order-details pay-order.block{padding:0}
3.order-details .order-basic-details{justify-content:space-between}.order-details .order-basic-details .block{width:calc(50% - 5px)}.order-details .order-basic-details .block .order-details-content{padding:0 1rem}.order-details.mobile{margin-top:3vh}.order-details.mobile ion-button.profile-back{top:-3vh}.order-details.mobile .block .block-title{padding:0 1rem .4rem}.order-details.mobile .details{flex-direction:column;gap:10px}.order-details.mobile .details .block{width:100%}\n"],encapsulation:2})}}return m})()},7736:(G,M,r)=>{r.d(M,{V:()=>O});var t=r(5549),e=r(8559),h=r(316),C=r(2811),x=r(8184),n=r(9930),R=r(1419),g=r(7199);function F(c,f){1&c&&(e.j41(0,"span",9),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&c&&(e.R7$(),e.JRh(e.bMT(2,1,"PRICE")))}function P(c,f){if(1&c&&e.nrm(0,"weight-row",18),2&c){const D=f.index;e.Y8G("weight",f.$implicit),e.BMQ("data-testid","order-item-weight-row-"+D)}}function _(c,f){if(1&c&&(e.j41(0,"div",16),e.DNE(1,P,1,2,"weight-row",17),e.k0s()),2&c){const u=e.XpG();e.R7$(),e.Y8G("ngForOf",u.weights)}}function l(c,f){if(1&c&&e.nrm(0,"weight-block",19),2&c){const u=e.XpG();e.Y8G("product",u.orderItem.product)("amount",u.orderItem.amount)("mobile",u.mobile)("estimatedPrice",u.orderItem.estimatedPrice)}}let O=(()=>{class c{constructor(){}ngOnInit(){}get img(){return this.orderItem.product?.productDetails?.mainImage||this.defaultImg||"assets/svg/product-default.svg"}get weights(){return this.orderItem?.weight&&0!==this.orderItem?.weight.trim().length?this.orderItem?.weight.trim().split(" "):[]}get checkWeight(){return this.orderItem?.weight&&0!==this.orderItem?.weight.trim().length}get showEstimatedWeight(){return this.orderItem.product.byWeight&&this.orderItem.product.pricePer===t.G.UNIT&&+this.orderItem.product?.estimatedWeight>0||!this.orderItem.total&&!!this.orderItem.estimatedPrice}static{this.\u0275fac=function(D){return new(D||c)}}static{this.\u0275cmp=e.VBU({type:c,selectors:[["item-order-details"]],inputs:{orderItem:"orderItem",itemError:"itemError",mobile:"mobile",defaultImg:"defaultImg"},decls:35,vars:29,consts:[[1,"item-order-details","flex-col"],[1,"item-order-details-content"],[3,"src"],["data-testid","order-item-name-value",1,"name"],[1,"amount-price-total","flex-row"],[1,"column","flex-row"],["class","label",4,"ngIf"],["data-testid","order-item-price-value"],[1,"coin"],[1,"label"],["data-testid","order-item-amount-value",1,"amount"],[1,"price"],["data-testid","order-item-total-value"],["data-testid","order-item-error-value",1,"stock-error"],["class","weight-block flex-col",4,"ngIf"],[3,"product","amount","mobile","estimatedPrice",4,"ngIf"],[1,"weight-block","flex-col"],[3,"weight",4,"ngFor","ngForOf"],[3,"weight"],[3,"product","amount","mobile","estimatedPrice"]],template:function(D,p){1&D&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"img",2),e.j41(3,"span",3),e.
3EFF(4),e.k0s(),e.j41(5,"div",4)(6,"div",5),e.DNE(7,F,3,3,"span",6),e.j41(8,"span",7),e.EFF(9),e.k0s(),e.j41(10,"span",8),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"div",5)(14,"span",9),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"span",10),e.EFF(18),e.nI1(19,"amountDisplay"),e.k0s()(),e.j41(20,"div",5)(21,"span",9),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"div",11)(25,"span",12),e.EFF(26),e.k0s(),e.j41(27,"span",8),e.EFF(28),e.nI1(29,"translate"),e.k0s()()()(),e.j41(30,"span",13),e.EFF(31),e.nI1(32,"stockError"),e.k0s()(),e.DNE(33,_,2,1,"div",14)(34,l,1,4,"weight-block",15),e.k0s()),2&D&&(e.AVh("mobile",p.mobile),e.R7$(2),e.Y8G("src",p.img,e.B4B),e.R7$(2),e.JRh(p.orderItem.product.name),e.R7$(3),e.Y8G("ngIf",!p.mobile),e.R7$(2),e.JRh(p.orderItem.price),e.R7$(2),e.JRh(e.bMT(12,15,"ILS")),e.R7$(4),e.JRh(p.mobile?"X":e.bMT(16,17,"AMOUNT")),e.R7$(3),e.JRh(e.i5U(19,19,p.orderItem.amount,+(null==p.orderItem.product?null:p.orderItem.product.step))),e.R7$(4),e.JRh(e.bMT(23,22,"TOTAL")),e.R7$(4),e.JRh(p.orderItem.total),e.R7$(2),e.JRh(e.bMT(29,24,"ILS")),e.R7$(3),e.JRh(e.i5U(32,26,p.itemError,p.orderItem.product.pricePer)),e.R7$(2),e.Y8G("ngIf",p.checkWeight),e.R7$(),e.Y8G("ngIf",p.showEstimatedWeight&&!p.checkWeight))},dependencies:[h.Sq,h.bT,C.V,x.W,n.D9,R.r,g.f],styles:[".item-order-details{justify-content:center;gap:10px;min-height:100px;padding:10px 20px;color:var(--color-main)}.item-order-details:not(.mobile) .item-order-details-content{display:flex;align-items:center;justify-content:space-between;gap:20px}.item-order-details:not(.mobile) .item-order-details-content img{height:80px;width:82px;object-fit:contain}.item-order-details:not(.mobile) .item-order-details-content .name{width:30%}.item-order-details .item-order-details-content{position:relative}.item-order-details .item-order-details-content .amount-price-total{flex-grow:1;justify-content:space-between;align-items:baseline;gap:5px}.item-order-details .item-order-details-content .amount-price-total .column{column-gap:5px;align-items:baseline}.item-order-details .item-order-details-content .amount-price-total .column .label{font-size:.8rem;font-weight:600;color:var(--color-gray)}.item-order-details .item-order-details-content .amount-price-total .column .amount{min-width:10px;margin-inline-end:2px;margin-inline-start:2px;padding:2px 10px;font-weight:800;font-size:1rem}.item-order-details .item-order-details-content .amount-price-total .column .price{width:10%;display:flex;column-gap:2px;font-weight:700}.item-order-details .item-order-details-content .stock-error{position:absolute;bottom:4px;left:0;color:var(--color-red-error)}.item-order-details .weight-block{align-items:flex-end}.item-order-details .weight-block weight-row{width:25%}.item-order-details weight-block .weight-block{margin-bottom:0}.item-order-details.mobile .item-order-details-content{display:grid;grid-template-columns:70px 1fr;grid-template-rows:1fr 1fr;grid-auto-flow:row;column-gap:10px}.item-order-details.mobile .item-order-details-content img{grid-column:1;grid-row:1/3;object-fit:contain}.item-order-details.mobile .item-order-details-content .amount-price-total .amount{padding-inline-start:0}.item-order-details.mobile .weight-block weight-row{width:50%}\n"],encapsulation:2})}}return c})()},8184:(G,M,r)=>{r.d(M,{W:()=>h});var t=r(8559),e=r(9930);let h=(()=>{class C{constructor(){this.weight=0}ngOnInit(){}static{this.\u0275fac=function(R){return new(R||C)}}static{this.\u0275cmp=t.VBU({type:C,selectors:[["weight-row"]],inputs:{weight:"weight"},decls:6,vars:4,consts:[[1,"weight-row","flex-row"],[1,"bold"],["data-testid","order-weight-row-value",1,"bold"]],template:function(R,g){1&R&&(t.j41(0,"div",0)(1,"span",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",2),t.EFF(5),t.k0s()()),2&R&&(t.R7$(2),t.SpI("",t.bMT(3,2,"AMOUNT_WEIGHED"),":"),t.R7$(3),t.JRh(g.weight))},dependencies:[e.D9],styles:[".weight-row[_ngcontent-%COMP%]{width:100%;padding:5px 10px;justify-content:space-between;column-gap:10px;background:var(--color-gray-3);font-size:1rem}.weight-row[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:600}"]}
3)}}return C})()},3320:(G,M,r)=>{r.d(M,{Z:()=>_});var t=r(1546),e=r(8559),h=r(316),C=r(7736),x=r(9930);function n(l,O){if(1&l&&e.nrm(0,"item-order-details",11),2&l){const c=O.$implicit,f=O.index,u=e.XpG();e.Y8G("orderItem",c)("itemError",u.getError(c))("defaultImg",u.productDefaultImg)("mobile",u.mobile),e.BMQ("data-testid","order-item-detail-"+f)}}function R(l,O){if(1&l&&(e.j41(0,"div",12)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",13)(5,"span",14),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"span",15),e.EFF(9),e.nI1(10,"number"),e.k0s()()()),2&l){const c=e.XpG();e.R7$(2),e.SpI("",e.bMT(3,3,"FEE"),":\xa0"),e.R7$(4),e.JRh(e.bMT(7,5,"ILS")),e.R7$(3),e.JRh(e.i5U(10,7,c.order.orderFee,"1.2-2"))}}function g(l,O){1&l&&(e.j41(0,"span",16),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"span",17),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&l&&(e.R7$(),e.SpI(" (",e.bMT(2,2,"ESTIMATED"),") "),e.R7$(3),e.JRh(e.bMT(5,4,"EXPLAIN_ABOUT_ORDER_WITH_WEIGHT")))}function F(l,O){if(1&l&&(e.j41(0,"div")(1,"span",14),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",18),e.EFF(5),e.nI1(6,"number"),e.k0s()()),2&l){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"ILS")),e.R7$(3),e.JRh(e.i5U(6,4,c.total,"1.2-2"))}}function P(l,O){1&l&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&l&&(e.R7$(),e.JRh(e.bMT(2,1,"PRICE_UPDATED_AFTER_WEIGHTS")))}let _=(()=>{class l{constructor(){}ngOnInit(){}get total(){return!this.paymentRequired&&this.order.withWeightItems?this.order.estimatedTotal:this.order.topay}get priceNotFinal(){return!!this.order?.withWeightItems&&(0,t.q)(this.order?.items)}getError(c){return this.itemsError?.find(f=>f.pId==c.product.id)}static{this.\u0275fac=function(f){return new(f||l)}}static{this.\u0275cmp=e.VBU({type:l,selectors:[["order-item-list"]],inputs:{order:"order",paymentRequired:"paymentRequired",productDefaultImg:"productDefaultImg",itemsError:"itemsError",mobile:"mobile"},decls:16,vars:11,consts:[["weightsPending",""],[1,"order-item-list","flex-col"],[1,"block-title"],[1,"item-list","flex-col"],[3,"orderItem","itemError","defaultImg","mobile",4,"ngFor","ngForOf"],[1,"summary-order","flex-col"],["class","flex-row",4,"ngIf"],[1,"total-sum","flex-row"],[1,"label"],["class","estimated tooltip",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"orderItem","itemError","defaultImg","mobile"],[1,"flex-row"],[1,"sub-total"],[1,"coin"],["data-testid","order-item-list-fee-value"],[1,"estimated","tooltip"],[1,"tooltiptext"],["data-testid","order-item-list-total-value"],[1,"weights-pending"]],template:function(f,u){if(1&f&&(e.j41(0,"div",1)(1,"div",2),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",3),e.DNE(5,n,1,5,"item-order-details",4),e.k0s(),e.j41(6,"div",5),e.DNE(7,R,11,10,"div",6),e.j41(8,"div",7)(9,"span",8),e.EFF(10),e.nI1(11,"translate"),e.DNE(12,g,6,6,"span",9),e.k0s(),e.DNE(13,F,7,7,"div",10)(14,P,3,3,"ng-template",null,0,e.C5r),e.k0s()()()),2&f){const D=e.sdS(15);e.R7$(2),e.JRh(e.bMT(3,7,"PRODUCTS")),e.R7$(3),e.Y8G("ngForOf",null==u.order?null:u.order.items),e.R7$(2),e.Y8G("ngIf",u.order.orderFee>0),e.R7$(3),e.SpI("",e.bMT(11,9,"TOTAL")," "),e.R7$(2),e.Y8G("ngIf",u.order.withWeightItems&&!u.paymentRequired||u.priceNotFinal),e.R7$(),e.Y8G("ngIf",!u.priceNotFinal)("ngIfElse",D)}},dependencies:[h.Sq,h.bT,C.V,h.QX,x.D9],styles:[".order-item-list[_ngcontent-%COMP%]{width:100%;row-gap:10px}.order-item-list[_ngcontent-%COMP%]   .item-list[_ngcontent-%COMP%]{row-gap:4px}.order-item-list[_ngcontent-%COMP%]   .item-list[_ngcontent-%COMP%]   item-order-details[_ngcontent-%COMP%]:not(:last-of-type){border-bottom:1px solid var(--color-gray-2)}.order-item-list[_ngcontent-%COMP%]   .summary-order[_ngcontent-%COMP%]{margin-top:10px;padding:1rem;color:var(--color-main);font-weight:700;border-top:1px solid var(--color-gray-2)}.order-item-list[_ngcontent-%COMP%]   .summary-order[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{justify-content:flex-end;align-items:center}.order-item-list[_ngcontent-%COMP%]   .summary-order[_ngcontent-%COMP%] > div.total-sum[_ngcontent-%COMP%]{font-size:1.2rem}.order-item-list[_ngcontent-%COMP%]   .summary-order[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{margin-inline-end:5px}.order-item-list[_ngcontent-%COMP%]   .summary-order[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]   .estimated[_ngcontent-%COMP%]{font-size:1rem;color:var(--color-red-error);cursor:pointer}"]})}}return l})()},3450:(G,M,r)=>{r.d(M,{m:()=>P});var t=r(1546),e=r(8559),h=r(316),C=r(4111),x=r(7844),n=r(9930);function R(_,l){if(1&_&&e.nrm(0,"payment-order",6),2&_){const O=l.$implicit,c=l.index,f=e.XpG();e.Y8G("payment",O)("priceNotFinal",f.priceNotFinal),e.BMQ("data-testid","order-payment-order-"+c)}}function g(_,l){if(1&_&&(e.j41(0,"ion-button",8),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&_){const O=e.XpG().$implicit;e.Y8G("href",O.documentLink),e.BMQ("data-testid","order-invoice-"+O.documentNumber+"-btn"),e.R7$(),e.Lme("",e.bMT(2,4,"INOVICE")," ",O.documentNumber,"")}}function F(_,l){if(1&_&&(e.qex(0),e.DNE(1,g,3,6,"ion-button",7),e.bVm()),2&_){const O=l.$implicit;e.R7$(),e.Y8G("ngIf",O.documentLink)}}let P=(()=>{class _{constructor(){}ngOnInit(){}
3get priceNotFinal(){return!!this.order?.withWeightItems&&(0,t.q)(this.order?.items)}static{this.\u0275fac=function(c){return new(c||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["order-payment-list"]],inputs:{order:"order",mobile:"mobile"},decls:8,vars:7,consts:[[1,"order-payment-list"],[1,"block-title"],[1,"payment","flex-col"],[3,"payment","priceNotFinal",4,"ngFor","ngForOf"],[1,"inovice-list","flex-row"],[4,"ngFor","ngForOf"],[3,"payment","priceNotFinal"],["fill","outline","target","_blank",3,"href",4,"ngIf"],["fill","outline","target","_blank",3,"href"]],template:function(c,f){1&c&&(e.j41(0,"div",0)(1,"div",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",2),e.DNE(5,R,1,3,"payment-order",3),e.k0s(),e.j41(6,"div",4),e.DNE(7,F,2,1,"ng-container",5),e.k0s()()),2&c&&(e.AVh("mobile",f.mobile),e.R7$(2),e.JRh(e.bMT(3,5,"PAYMENT_METHODS")),e.R7$(3),e.Y8G("ngForOf",f.order.payments),e.R7$(2),e.Y8G("ngForOf",f.order.rivhitDocs))},dependencies:[h.Sq,h.bT,C.Jm,x.I,n.D9],styles:[".order-payment-list[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]{padding:2vh 0;row-gap:10px}.order-payment-list[_ngcontent-%COMP%]   .inovice-list[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{--border-color: var(--color-pink);--border-radius: 200px;--border-width: 1px;--color: var(--color-main);font-size:.9rem;font-weight:600;margin-inline-start:.8rem}.order-payment-list[_ngcontent-%COMP%]   .inovice-list[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]:hover{color:var(--color-pink);--background: var(--color-pink-ice)}.order-payment-list.mobile[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]{padding:2vh 5%}"]})}}return _})()},6808:(G,M,r)=>{r.d(M,{H:()=>R});var t=r(8559),e=r(316),h=r(4111),C=r(9930);function x(g,F){if(1&g){const P=t.RV6();t.j41(0,"ion-button",7),t.bIt("click",function(){t.eBV(P);const l=t.XpG();return t.Njj(l.edit.emit())}),t.nrm(1,"ion-icon",8),t.EFF(2),t.nI1(3,"translate"),t.k0s()}2&g&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"EDIT")," "))}function n(g,F){if(1&g){const P=t.RV6();t.j41(0,"ion-button",9),t.bIt("click",function(){t.eBV(P);const l=t.XpG();return t.Njj(l.cancel.emit())}),t.nrm(1,"ion-icon",10),t.EFF(2),t.nI1(3,"translate"),t.k0s()}
3if(2&g){const P=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,1,P.order.canEditByCustomer?"CANCEL_ORDER":"CANCEL_ORDER_REQUEST")," ")}}let R=(()=>{class g{constructor(){this.edit=new t.bkB,this.cancel=new t.bkB}ngOnInit(){}static{this.\u0275fac=function(_){return new(_||g)}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["order-store-info"]],inputs:{order:"order",mobile:"mobile"},outputs:{edit:"edit",cancel:"cancel"},decls:19,vars:16,consts:[[1,"order-store-info","flex-row"],["data-testid","order-store-info-store-name-value"],["data-testid","order-store-info-branch-name-value"],["data-testid","order-store-info-sale-name-value"],[1,"order-actions","flex-row"],["class","edit-delete","fill","clear","data-testid","order-store-info-edit-btn",3,"click",4,"ngIf"],["class","edit-delete","fill","clear","data-testid","order-store-info-cancel-btn",3,"click",4,"ngIf"],["fill","clear","data-testid","order-store-info-edit-btn",1,"edit-delete",3,"click"],["name","c-pencil-2"],["fill","clear","data-testid","order-store-info-cancel-btn",1,"edit-delete",3,"click"],["name","c-trash"]],template:function(_,l){1&_&&(t.j41(0,"div",0)(1,"span",1)(2,"b"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.EFF(5),t.k0s(),t.j41(6,"span",2)(7,"b"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10),t.k0s(),t.j41(11,"span",3)(12,"b"),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.EFF(15),t.k0s(),t.j41(16,"div",4),t.DNE(17,x,4,3,"ion-button",5)(18,n,4,3,"ion-button",6),t.k0s()()),2&_&&(t.AVh("mobile",l.mobile),t.R7$(3),t.SpI("",t.bMT(4,10,"STORE"),":"),t.R7$(2),t.SpI(" ",l.order.store.name," "),t.R7$(3),t.SpI("",t.bMT(9,12,"BRANCH"),":"),t.R7$(2),t.SpI(" ",l.order.branch.name," "),t.R7$(3),t.SpI("",t.bMT(14,14,"SALE"),":"),t.R7$(2),t.SpI(" ",l.order.sale.name," "),t.R7$(2),t.Y8G("ngIf",l.order.canEditByCustomer),t.R7$(),t.Y8G("ngIf",l.order.canCancel))},dependencies:[e.bT,h.Jm,h.iq,C.D9],styles:[".order-store-info[_ngcontent-%COMP%]{align-items:center;column-gap:15px;padding:15px 30px;background-color:var(--color-white);border-radius:7px;font-size:1.1rem;color:var(--color-main)}.order-store-info[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-weight:600}.order-store-info[_ngcontent-%COMP%]   .order-actions[_ngcontent-%COMP%]{margin-inline-start:auto}.order-store-info[_ngcontent-%COMP%]   .order-actions[_ngcontent-%COMP%]   ion-button.edit-delete[_ngcontent-%COMP%]{transition:opacity .2s linear;color:var(--color-main);--padding-start: .63rem;--padding-end: .63rem;--border-radius: 10px;letter-spacing:.1px}.order-store-info[_ngcontent-%COMP%]   .order-actions[_ngcontent-%COMP%]   ion-button.edit-delete[_ngcontent-%COMP%]:hover{--background: var(--color-gray-3)}.order-store-info[_ngcontent-%COMP%]   .order-actions[_ngcontent-%COMP%]   ion-button.edit-delete[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:.9rem;margin-inline-end:.2em}.order-store-info[_ngcontent-%COMP%]   .order-actions[_ngcontent-%COMP%]   .print[_ngcontent-%COMP%]{margin-inline-start:auto;align-items:center;cursor:pointer}.order-store-info[_ngcontent-%COMP%]   .order-actions[_ngcontent-%COMP%]   .print[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9rem;font-weight:600}.order-store-info[_ngcontent-%COMP%]   .order-actions[_ngcontent-%COMP%]   .print[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:2.1rem;margin-inline-start:10px}.order-store-info.mobile[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}"]})}}return g})()},8274:(G,M,r)=>{r.d(M,{p:()=>E});var t=r(8559),e=r(316),h=r(1483),C=r(9930);function x(a,b){if(1&a&&t.eu8(0,7),2&a){t.XpG();const s=t.sdS(10);t.Y8G("ngTemplateOutlet",s)}}function n(a,b){if(1&a&&t.eu8(0,7),2&a){t.XpG();const s=t.sdS(8);t.Y8G("ngTemplateOutlet",s)}}function R(a,b){if(1&a&&(t.j41(0,"span",19),t.EFF(1),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.JRh(s.order.shippingDetails.name)}}function g(a,b){if(1&a&&(t.j41(0,"span",20),t.EFF(1),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.JRh(s.order.shippingDetails.phone)}}function F(a,b){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.JRh(s.order.shippingDetails.street)}}function P(a,b){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const s=t.XpG(3);t.R7$(),t.SpI("\xa0",s.order.shippingDetails.house,"")}}function _(a,b){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a){const s=t.XpG(3);t.R7$(),t.Lme("\xa0",t.bMT(2,2,"APARTMENT")," ",s.order.shippingDetails.apartment,"")}}function l(a,b){if(1&a&&(t.j41(0,"div",21),t.DNE(1,P,2,1,"span",13)(2,_,3,4,"span",13),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.house),t.R7$(),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.apartment)}}function O(a,b){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.Lme(", ",t.bMT(2,2,"ENTRANCE")," ",s.order.shippingDetails.entrance,"")}}function c(a,b){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.Lme(", ",t.bMT(2,2,"FLOOR")," ",s.order.shippingDetails.floor,"")}}function f(a,b){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.JRh(s.order.shippingDetails.city)}}function u(a,b){if(1&a&&(t.j41(0,"span",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.Lme(", ",t.bMT(2,2,"ZIPCODE")," ",s.order.shippingDetails.zipcode,"")}}function D(a,b){if(1&a&&(t.j41(0,"div",8)(1,"p"),t.EFF(2),t.k0s(),t.j41(3,"div",9),t.DNE(4,R,2,1,"span",10)(5,g,2,1,"span",11),t.k0s(),t.j41(6,"div",12),t.DNE(7,F,2,1,"span",13)(8,l,3,2,"div",14)(9,O,3,4,"span",13)(10,c,3,4,"span",13),t.k0s(),t.j41(11,"div",12),t.DNE(12,f,2,1,"span",13)(13,u,3,4,"span",15),t.k0s()(),t.j41(14,"div",16)(15,"span")(16,"b"),t.EFF(17),t.nI1(18,"translate"),t.k0s()(),t.j41(19,"span",17),t.EFF(20),t.nI1(21,"number"),t.k0s(),t.j41(22,"span",18),t.EFF(23),t.nI1(24,"translate"),t.k0s()()),2&a){const s=t.XpG();t.R7$(2),t.SpI(" ",null==s.order.sale?null:s.order.sale.shippingNote," "),t.R7$(2),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.name),t.R7$(),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.phone),t.R7$(2),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.street),t.R7$(),t.Y8G("ngIf",(null==s.order.shippingDetails?null:s.order.shippingDetails.house)||(null==s.order.shippingDetails?null:s.order.shippingDetails.apartment)),t.R7$(),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.entrance),t.R7$(),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.floor),t.R7$(2),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.city),t.R7$(),t.Y8G("ngIf",null==s.order.shippingDetails?null:s.order.shippingDetails.zipcode),t.R7$(4),t.SpI("",t.bMT(18,12,"COST"),": "),t.R7$(3),t.JRh(t.i5U(21,14,s.order.shipping,"1.2-2")),t.R7$(3),t.JRh(t.bMT(24,17,"ILS"))}}function p(a,b){if(1&a&&(t.qex(0),t.j41(1,"span",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",26),t.EFF(5),t.k0s(),t.bVm()),2&a){const s=t.XpG(2);t.R7$(2),t.SpI("",t.bMT(3,2,"PICKUP_FROM_BRANCH"),":"),t.R7$(3),t.JRh(s.order.branch.name)}}function k(a,b){if(1&a&&t.nrm(0,"sale-branch-pickup-times",27),2&a){const s=t.XpG(2);t.Y8G("pickupTimes",null==s.order.sale?null:s.order.sale.pickupTimes)("branch",null==s.order.sale?null:s.order.sale.branch)}}function I(a,b){if(1&a&&(t.j41(0,"div",23),t.DNE(1,p,6,4,"ng-container",13)(2,k,1,2,"sale-branch-pickup-times",24),t.k0s()),2&a){const s=t.XpG();
3t.R7$(),t.Y8G("ngIf",null==s.store?null:s.store.withBranches),t.R7$(),t.Y8G("ngIf",s.showPickupTimes)}}let E=(()=>{class a{constructor(){}ngOnInit(){}get showPickupTimes(){return this.order?.sale?.pickupTimes||this.order?.sale?.branch?.city||this.order?.sale?.branch?.note}static{this.\u0275fac=function(o){return new(o||a)}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["order-supply"]],inputs:{order:"order"},decls:11,vars:5,consts:[["post",""],["no_post",""],[1,"order-supply"],[1,"block-title"],[3,"ngSwitch"],[3,"ngTemplateOutlet",4,"ngSwitchCase"],[3,"ngTemplateOutlet",4,"ngSwitchDefault"],[3,"ngTemplateOutlet"],[1,"order-details-content","address","flex-col"],[1,"name","flex-row"],["data-testid","order-supply-shipping-name-value",4,"ngIf"],["data-testid","order-supply-shipping-phone-value",4,"ngIf"],[1,"address-content","flex-row"],[4,"ngIf"],["class","flex-row",4,"ngIf"],["class","zipcode",4,"ngIf"],[1,"order-details-content","shipping-cost","flex-row"],["data-testid","order-supply-cost-value"],[1,"coin"],["data-testid","order-supply-shipping-name-value"],["data-testid","order-supply-shipping-phone-value"],[1,"flex-row"],[1,"zipcode"],[1,"order-details-content","flex-col"],[3,"pickupTimes","branch",4,"ngIf"],[1,"title"],["data-testid","order-supply-branch-name-value",1,"name"],[3,"pickupTimes","branch"]],template:function(o,T){1&o&&(t.j41(0,"div",2)(1,"div",3),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.qex(4,4),t.DNE(5,x,1,1,"ng-container",5)(6,n,1,1,"ng-container",6),t.bVm(),t.k0s(),t.DNE(7,D,25,19,"ng-template",null,0,t.C5r)(9,I,3,2,"ng-template",null,1,t.C5r)),2&o&&(t.R7$(2),t.JRh(t.bMT(3,3,"SUPPLY")),t.R7$(2),t.Y8G("ngSwitch",T.order.shippingMethod),t.R7$(),t.Y8G("ngSwitchCase","no_post"))},dependencies:[e.bT,e.T3,e.ux,e.e1,e.fG,h.T,e.QX,C.D9],styles:[".order-supply .order-details-content{padding:0 1rem}.order-supply .order-details-content .name{gap:1ch}.order-supply .order-details-content.shipping-cost{column-gap:6px}\n"],encapsulation:2})}}return a})()},9272:(G,M,r)=>{r.d(M,{E:()=>D});var t=r(8559),e=r(5568),h=r(4456),C=r(2107),x=r(3924),n=r(316),R=r(4111),g=r(6586),F=r(9930);function P(p,k){1&p&&t.nrm(0,"ion-spinner",11)}function _(p,k){1&p&&(t.EFF(0),t.nI1(1,"translate")),2&p&&t.JRh(t.bMT(1,1,"MAKE_PAYMENT"))}function l(p,k){if(1&p){const I=t.RV6();t.j41(0,"div",6),t.nrm(1,"payment",7),t.j41(2,"ion-button",8),t.bIt("click",function(){t.eBV(I);const a=t.XpG(2);return t.Njj(a.applyPay())}),t.DNE(3,P,1,0,"ion-spinner",9)(4,_,2,3,"ng-template",null,1,t.C5r),t.k0s(),t.j41(6,"span",10),t.EFF(7),t.nI1(8,"translate"),t.k0s()()}if(2&p){const I=t.sdS(5),E=t.XpG(2);t.R7$(),t.Y8G("hideTitle",!0)("form",E.form)("numberOfPayment",E.numberOfPayment)("store",E.order.store)("nedarimType","CreateToken"),t.R7$(),t.Y8G("disabled",E.form.invalid||E.payError),t.R7$(),t.Y8G("ngIf",E.payInProgress)("ngIfElse",I),t.R7$(4),t.JRh("Stock error"===E.payError?t.bMT(8,9,"PAY_STOCK_ERROR"):E.payError)}}function O(p,k){if(1&p&&(t.qex(0),t.DNE(1,l,9,11,"div",5),t.bVm()),2&p){const I=t.XpG(),E=t.sdS(6);t.R7$(),t.Y8G("ngIf",!(null!=I.order.store&&null!=I.order.store.creditPolicy&&I.order.store.creditPolicy.CVV))("ngIfElse",E)}}function c(p,k){1&p&&t.nrm(0,"ion-spinner",11)}function f(p,k){1&p&&(t.EFF(0),t.nI1(1,"translate")),2&p&&t.JRh(t.bMT(1,1,"MAKE_PAYMENT"))}function u(p,k){if(1&p){const I=t.RV6();t.j41(0,"div",6)(1,"ion-button",12),t.bIt("click",function(){t.eBV(I);const a=t.XpG();return t.Njj(a.directPay())}),t.DNE(2,c,1,0,"ion-spinner",9)(3,f,2,3,"ng-template",null,1,t.C5r),t.k0s()()}if(2&p){const I=t.sdS(4),E=t.XpG();t.R7$(2),t.Y8G("ngIf",E.directInProgress)("ngIfElse",I)}}let D=(()=>{class p{constructor(I,E,a){this.fb=I,this.saleService=E,this.router=a,this.pay=new t.bkB,this.directInProgress=!1,this.form=this.fb.group({card:[null,e.mg],numberOfPayments:[1],saveCard:[!1]}),this.form.valueChanges.subscribe(b=>this.payError=null)}ngOnInit(){this.saleService.get(this.order.sale.id,this.order?.branch?.id).subscribe(({data:I})=>this.sale=I?.sale||I)}get numberOfPayment(){return this.sale?.numberOfPayment||1/0}get errorText(){switch(this.paymentRequiredType){case"ERROR":return"PAY_METHOD_FAILED_UPDATE_ANOTHER_PAY_METHOD";case"PAID_AND_NOT_SAVED":return"PAID_AND_NOT_SAVED??"}return"PAY_METHOD_MISSING_UPDATE_ANOTHER_PAY_METHOD"}applyPay(){this.form.valid&&!this.payError&&this.pay.emit(this.form.value)}directPay(){this.directInProgress||(this.directInProgress=!0,this.router.navigate([`store/${this.order.store.id}/${this.order.sale.id}/cart/checkout/order/${this.order.id}/direct-pay`]))}static{this.\u0275fac=function(E){return new(E||p)(t.rXU(h.ok),t.rXU(C.x),t.rXU(x.Ix))}}static{this.\u0275cmp=t.VBU({type:p,selectors:[["pay-order"]],inputs:{order:"order",paymentRequiredType:"paymentRequiredType",payInProgress:"payInProgress",payError:"payError",mobile:"mobile"},outputs:{pay:"pay"},decls:7,vars:6,consts:[["direct",""],["text",""],[1,"pay-order"],["data-testid","order-pay-error-text-value",1,"error-msg"],[4,"ngIf"],["class","pay-order-content flex-col",4,"ngIf","ngIfElse"],[1,"pay-order-content","flex-col"],["data-testid","order-pay-payment-form",3,"hideTitle","form","numberOfPayment","store","nedarimType"],["data-testid","order-pay-apply-btn",1,"apply-pay",3,"click","disabled"],["name","crescent",4,"ngIf","ngIfElse"],["data-testid","order-pay-error-detail-value",1,"pay-error"],["name","crescent"],["data-testid","order-pay-direct-btn",1,"apply-pay",3,"click"]],template:function(E,a){1&E&&(t.j41(0,"div",2)(1,"div",3),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,O,2,2,"ng-container",4)(5,u,5,2,"ng-template",null,0,t.C5r),t.k0s()),2&E&&(t.AVh("mobile",a.mobile),t.R7$(2),t.SpI(" ",t.bMT(3,4,a.errorText)," "),t.R7$(2),t.Y8G("ngIf","PAID_AND_NOT_SAVED"!==a.paymentRequiredType))},dependencies:[n.bT,R.Jm,R.w2,g.Y,F.D9],styles:[".pay-order .error-msg{background-color:var(--color-pink-ice-2);padding:15px 30px;border-top-right-radius:8px;border-top-left-radius:8px;font-weight:600}.pay-order .pay-order-content{padding:20px}.pay-order .pay-order-content ion-button.apply-pay{--background: var(--color-main);align-self:flex-end;width:20%;margin-top:4vh}.pay-order .pay-order-content .pay-error{align-self:flex-end;color:var(--color-red-error);padding:5px}.pay-order.mobile .pay-order-content payment .order-payment{flex-direction:column-reverse}.pay-order.mobile .pay-order-content payment .order-payment>*{width:100%}.pay-order.mobile .pay-order-content payment .order-payment .payment-details{flex-direction:column}.pay-order.mobile .pay-order-content payment .order-payment .options{flex-direction:row;margin-bottom:2vh;width:100%}.pay-order.mobile .pay-order-content ion-button.apply-pay{width:-moz-fit-content;width:fit-content;min-width:140px;height:2.5em}\n"],encapsulation:2})}}return p})()},7844:(G,M,r)=>{r.d(M,{I:()=>s});var t=r(8559),e=r(9930),h=r(316);function C(o,T){if(1&o&&t.eu8(0,13),2&o){t.XpG();const d=t.sdS(17);t.Y8G("ngTemplateOutlet",d)}}function x(o,T){if(1&o&&t.eu8(0,13),2&o){t.XpG();const d=t.sdS(21);t.Y8G("ngTemplateOutlet",d)}}function n(o,T){if(1&o&&t.eu8(0,13),2&o){t.XpG();const d=t.sdS(19);t.Y8G("ngTemplateOutlet",d)}}function R(o,T){if(1&o&&t.eu8(0,13),2&o){t.XpG();const d=t.sdS(13);t.Y8G("ngTemplateOutlet",d)}}function g(o,T){if(1&o&&t.eu8(0,13),2&o){t.XpG();const d=t.sdS(15);t.Y8G("ngTemplateOutlet",d)}}function F(o,T){if(1&o&&t.eu8(0,13),2&o){t.XpG();const d=t.sdS(11);t.Y8G("ngTemplateOutlet",d)}}function P(o,T){if(1&o&&(t.j41(0,"div",14)(1,"a",15),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&o){const d=t.XpG();t.R7$(),t.Y8G("href",d.payment.receiptLink,t.B4B),t.R7$(),t.JRh(t.bMT(3,2,"SHOW_RECEIPT"))}}function _(o,T){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&o){const d=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,d.payment.data.details.actualDebitDate,"dd.MM.YY HH:mm"))}}function l(o,T){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&o){const d=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,d.payment.data.updatedAt,"dd.MM.YY HH:mm"))}}function O(o,T){if(1&o&&(t.j41(0,"div",16)(1,"span",17),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",18),t.EFF(5),t.k0s()(),t.j41(6,"div",16),t.DNE(7,_,3,4,"span",19)(8,l,3,4,"span",19),t.j41(9,"span"),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"div",20)(13,"span",21),t.EFF(14),t.k0s(),t.j41(15,"span"),t.EFF(16),t.nI1(17,"translate"),t.j41(18,"b",22),t.EFF(19),t.k0s()()()),2&o){const d=t.XpG();t.R7$(2),t.JRh(t.bMT(3,9,"CREDIT_CARD")),t.R7$(3),t.SpI("**** **** **** ",d.payment.data.details.card.last4digits,""),t.R7$(2),t.Y8G("ngIf",d.payment.data.paid),t.R7$(),t.Y8G("ngIf",!d.payment.data.paid),t.R7$(2),t.Lme("",t.bMT(11,11,"PAYMENTS")," ",d.payment.data.details.numberOfPayments,""),t.R7$(4),t.JRh(d.displaySum),t.R7$(2),t.SpI("",t.bMT(17,13,"STATUS"),": "),t.R7$(3),t.JRh(d.status)}}function c(o,T){if(1&o&&(t.j41(0,"div",16)(1,"span",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()(),t.j41(4,"div",20)(5,"span",23),t.EFF(6),t.k0s()()),2&o){const d=t.XpG();t.R7$(2),t.JRh(t.bMT(3,2,"EXTERNAL_SYSTEM")),t.R7$(4),t.JRh(d.displaySum)}}function f(o,T){if(1&o&&(t.j41(0,"div",16)(1,"span",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()(),t.j41(4,"div",20)(5,"span",24),t.EFF(6),t.k0s(),t.j41(7,"span"),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"b",25),t.EFF(11),t.k0s()()()),2&o){const d=t.XpG();t.R7$(2),t.JRh(t.bMT(3,4,"USE_STORE_CREDIT")),t.R7$(4),t.JRh(d.displaySum),t.R7$(2),t.SpI("",t.bMT(9,6,"STATUS"),": "),t.R7$(3),t.JRh(d.status)}}function u(o,T){if(1&o&&(t.j41(0,"div",16)(1,"span",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()(),t.j41(4,"div",20)(5,"span",26),t.EFF(6),t.k0s()()),2&o){const d=t.XpG();t.R7$(2),t.JRh(t.bMT(3,2,"CASH")),t.R7$(4),t.JRh(d.displaySum)}}function D(o,T){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&o){const d=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,d.payment.data.details.depositDate,"dd/MM/YY HH:mm"))}}function p(o,T){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&o){const d=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,d.payment.data.updatedAt,"dd/MM/YY HH:mm"))}}function k(o,T){if(1&o&&(t.j41(0,"span",29),t.EFF(1),t.k0s()),2&o){const d=t.XpG(2);t.R7$(),t.JRh(d.displaySum)}}function I(o,T){if(1&o&&(t.j41(0,"div",16)(1,"span",17),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",16),t.DNE(8,D,3,4,"span",27)(9,p,3,4,"ng-template",null,6,t.C5r),t.k0s(),t.j41(11,"div",20),t.DNE(12,k,2,1,"span",28),t.k0s()),2&o){const d=t.sdS(10),$=t.XpG
3();t.R7$(2),t.JRh(t.bMT(3,6,"BANK_TRANSFER")),t.R7$(3),t.Lme("",t.bMT(6,8,"PROOF")," ",$.payment.data.details.proof,""),t.R7$(3),t.Y8G("ngIf",null==$.payment.data||null==$.payment.data.details?null:$.payment.data.details.depositDate)("ngIfElse",d),t.R7$(4),t.Y8G("ngIf",$.payment.data.paid)}}function E(o,T){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&o){const d=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,d.payment.data.details.dueDate,"dd/MM/YY HH:mm"))}}function a(o,T){if(1&o&&(t.j41(0,"span",31),t.EFF(1),t.k0s()),2&o){const d=t.XpG(2);t.R7$(),t.JRh(d.displaySum)}}function b(o,T){if(1&o&&(t.j41(0,"div",16)(1,"span",17),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",16),t.DNE(8,E,3,4,"span",19),t.k0s(),t.j41(9,"div",20),t.DNE(10,a,2,1,"span",30),t.k0s()),2&o){const d=t.XpG();t.R7$(2),t.JRh(t.bMT(3,5,"CHECK")),t.R7$(3),t.Lme("",t.bMT(6,7,"PROOF")," ",d.payment.data.details.number,""),t.R7$(3),t.Y8G("ngIf",null==d.payment.data||null==d.payment.data.details?null:d.payment.data.details.dueDate),t.R7$(2),t.Y8G("ngIf",d.payment.data.paid)}}let s=(()=>{class o{constructor(d){this.translate=d}ngOnInit(){}get status(){if("open"===this.payment?.status){const d=this.payment?.data?.details?.statusCode;if(d&&"000"!==d)return this.payment?.details?.errorMessage}return this.translate.instant(`PAYMENT_${this.payment?.status?.toUpperCase()}`)}
3get displaySum(){return this.priceNotFinal?this.translate.instant("PRICE_UPDATED_AFTER_WEIGHTS"):`${this.payment?.data?.sum} ${this.translate.instant("ILS")}`}static{this.\u0275fac=function($){return new($||o)(t.rXU(e.c$))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["payment-order"]],inputs:{payment:"payment",orderStatus:"orderStatus",priceNotFinal:"priceNotFinal"},decls:22,vars:7,consts:[["credit_card",""],["external_system",""],["store_credit",""],["cash",""],["bank_transfer",""],["check",""],["elseTime",""],[1,"payment-order","flex-col"],[1,"payment-info","flex-row"],[3,"ngSwitch"],[3,"ngTemplateOutlet",4,"ngSwitchCase"],[3,"ngTemplateOutlet",4,"ngSwitchDefault"],["class","payment-other-info flex-row",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"payment-other-info","flex-row"],["data-testid","order-payment-receipt-link","target","_blank",1,"receipt",3,"href"],[1,"flex-col"],[1,"bold"],["dir","ltr"],[4,"ngIf"],[1,"flex-col","sum-status"],["data-testid","order-payment-sum-credit-card-value"],["data-testid","order-payment-status-credit-card-value"],["data-testid","order-payment-sum-external-system-value"],["data-testid","order-payment-sum-store-credit-value"],["data-testid","order-payment-status-store-credit-value"],["data-testid","order-payment-sum-cash-value"],[4,"ngIf","ngIfElse"],["data-testid","order-payment-sum-bank-transfer-value",4,"ngIf"],["data-testid","order-payment-sum-bank-transfer-value"],["data-testid","order-payment-sum-check-value",4,"ngIf"],["data-testid","order-payment-sum-check-value"]],template:function($,m){1&$&&(t.j41(0,"div",7)(1,"div",8),t.qex(2,9),t.DNE(3,C,1,1,"ng-container",10)(4,x,1,1,"ng-container",10)(5,n,1,1,"ng-container",10)(6,R,1,1,"ng-container",10)(7,g,1,1,"ng-container",10)(8,F,1,1,"ng-container",11),t.bVm(),t.k0s(),t.DNE(9,P,4,4,"div",12),t.k0s(),t.DNE(10,O,20,15,"ng-template",null,0,t.C5r)(12,c,7,4,"ng-template",null,1,t.C5r)(14,f,12,8,"ng-template",null,2,t.C5r)(16,u,7,4,"ng-template",null,3,t.C5r)(18,I,13,10,"ng-template",null,4,t.C5r)(20,b,11,9,"ng-template",null,5,t.C5r)),2&$&&(t.R7$(2),t.Y8G("ngSwitch",m.payment.data.type),t.R7$(),t.Y8G("ngSwitchCase","cash"),t.R7$(),t.Y8G("ngSwitchCase","check"),t.R7$(),t.Y8G("ngSwitchCase","bankTransfer"),t.R7$(),t.Y8G("ngSwitchCase","externalSystem"),t.R7$(),t.Y8G("ngSwitchCase","storeCredit"),t.R7$(2),t.Y8G("ngIf",m.payment.receiptLink))},dependencies:[h.bT,h.T3,h.ux,h.e1,h.fG,h.vh,e.D9],styles:[".payment-order[_ngcontent-%COMP%]{padding:10px;background-color:var(--color-gray-3);border:1px solid var(--color-gray-1);border-radius:8px;font-size:1rem}.payment-order[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:600}.payment-order[_ngcontent-%COMP%]   .payment-info[_ngcontent-%COMP%]{justify-content:space-between}.payment-order[_ngcontent-%COMP%]   .payment-info[_ngcontent-%COMP%]   .sum-status[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-child{text-align:end}.payment-order[_ngcontent-%COMP%]   .payment-other-info[_ngcontent-%COMP%]{margin-top:.2em}.payment-order[_ngcontent-%COMP%]   .payment-other-info[_ngcontent-%COMP%]   .receipt[_ngcontent-%COMP%]{margin-inline-start:auto;color:var(--color-main)}"]})}}return o})()}}]);
4//# debugId=4c080475-ac0e-5fb8-b41f-17646536082e

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.