PageSourceSearch

https://reserved-seats.egged.co.il/reserved-seats-app/818.6e72c4f4f6fa9ebd.js

js egged.co.il collected 2026-10-02 03:05:06 UTC 7,715 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkreserved_seats=self.webpackChunkreserved_seats||[]).push([[818],{7437:(H,g,r)=>{r.r(g),r.d(g,{CancelOrderModule:()=>V});var d=r(177),c=r(1457),f=r(7005),v=r(7660),C=r(2852),E=r(467),D=r(3207),O=r(7439),R=r(6700),u=r(3985),b=r(9437),x=r(7673),k=r(5134),y=r(7709),n=r(4438),I=r(1626);let m=(()=>{class e{constructor(t,o){this.http=t,this.userService=o}cancelOrder(t,o){let i=k.n.ORDER.CANCEL_ORDER.replace("{hashBookingId}",t);return this.userService.user&&this.userService.user.employeeId&&(i+=`&cashierId=${this.userService.user.employeeId}`),this.http.delete(i,{body:{phoneDetails:o}}).pipe((0,b.W)(a=>400===a.status?(0,x.of)(a.error):(0,y.H4)(a)))}static#n=this.\u0275fac=function(o){return new(o||e)(n.KVO(I.Qq),n.KVO(u.D))};static#t=this.\u0275prov=n.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var l=r(1780),M=r(8493),T=r(969),F=r(765);const h=e=>({name:e}),N=(e,s)=>({numberOfRides:e,bookingId:s});function S(e,s){if(1&e&&(n.j41(0,"div",9)(1,"div",10)(2,"div",11),n.nrm(3,"img",12),n.k0s(),n.j41(4,"div",13),n.EFF(5," \u05d4\u05d6\u05de\u05e0\u05d4 \u05d6\u05d5 \u05e9\u05d5\u05dc\u05de\u05d4 \u05d1\u05de\u05d6\u05d5\u05de\u05df "),n.nrm(6,"br"),n.EFF(7),n.nI1(8,"number"),n.k0s()()()),2&e){const t=n.XpG(2);n.R7$(7),n.SpI(" \u05d9\u05e9 \u05dc\u05d4\u05d7\u05d6\u05d9\u05e8 \u05dc\u05e0\u05d5\u05e1\u05e2 ",n.i5U(8,1,t.booking.priceToCancel,"1.2-2"),' \u05e9"\u05d7 ')}}function G(e,s){1&e&&n.nrm(0,"app-loader")}function A(e,s){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"div",2)(2,"p"),n.nrm(3,"span",3),n.nI1(4,"translate"),n.EFF(5,", "),n.nrm(6,"span",4),n.nI1(7,"translate"),n.k0s(),n.DNE(8,S,9,4,"div",5),n.k0s(),n.nrm(9,"app-summary",6),n.j41(10,"div",7)(11,"p"),n.EFF(12),n.nI1(13,"translate"),n.k0s(),n.j41(14,"button",8),n.bIt("click",function(){n.eBV(t);const i=n.XpG();return n.Njj(i.cancelOrder())}),n.EFF(15),n.nI1(16,"translate"),n.k0s()(),n.DNE(17,G,1,0,"app-loader",1),n.bVm()}if(2&e){const t=n.XpG();n.R7$(3),n.Y8G("innerHTML",n.i5U(4,7,"ORDER.GREETING",n.eq3(17,h,t.booking.customer.firstName)),n.npT),n.R7$(3),n.Y8G("innerHTML",n.i5U(7,10,"ORDER.NUMBER_OF_ORDERS",n.l_i(19,N,t.booking.rides.length,t.booking.bookingId)),n.npT),n.R7$(2),n.Y8G("ngIf",t.showPrice),n.R7$(),n.Y8G("summary",t.booking),n.R7$(3),n.SpI("",1===t.paymentTypeId?n.bMT(13,13,"ORDER.CANCEL_ORDER_CREDIT_REFUND"):""," "),n.R7$(3),n.JRh(n.bMT(16,15,"NAVBAR.CANCEL_ORDER.TEXT")),n.R7$(2),n.Y8G("ngIf",t.loading)}}function P(e,s){if(1&e&&(n.qex(0),n.j41(1,"p"),n.nrm(2,"span",3),n.nI1(3,"translate"),n.EFF(4,","),n.k0s(),n.nrm(5,"app-empty-order"),n.bVm()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("innerHTML",n.i5U(3,1,"ORDER.GREETING",n.eq3(4,h,t.booking.customer.firstName)),n.npT)}}let U=(()=>{class e{constructor(t,o,i,a,p,B){this.router=t,this.route=o,this.dialogService=i,this.translate=a,this.cancelService=p,this.userService=B,this.booking=this.cancelService.booking,this.booking&&this.userService.sourceTypeId===O.Y.KUPA&&4===this.booking.paymentTypeId&&this.booking.rides&&this.booking.rides.length&&(this.showPrice=!0)}cancelOrder(){var t=this;return(0,E.A)(function*(){const o=yield(0,D.s)(t.translate.get("ORDER.CANCEL_CONFIRM_HEADER",{name:t.booking.customer.firstName}));t.dialogService.confirm("ORDER.CANCEL_CONFIRM_MESSAGE",o,"ORDER.CANCEL_CONFIRM_BUTTON").then(i=>{t.loading=!0,t.cancelService.cancelOrder(t.booking.hashBookingId,t.booking.customer.phoneDetails).subscribe({next:a=>{t.loading=!1,a.isValid?t.router.navigate(["./confirmation"],{relativeTo:t.route,state:{booking:t.booking,accessibility:t.booking.isAccessibility},queryParamsHandling:"preserve"}):t.dialogService.error(a.error&&a.error.message?a.error.message:"DIALOG.DEFAULT_ERROR_MESSAGE")},error:()=>{t.loading=!1,t.dialogService.error("DIALOG.DEFAULT_ERROR_MESSAGE")}})}).catch(i=>{})})()}static#n=this.\u0275fac=function(o){return new(o||e)(n.rXU(c.Ix),n.rXU(c.nX),n.rXU(R.o),n.rXU(l.c$),n.rXU(m),n.rXU(u.D))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["app-cancel-order-details"]],decls:3,vars:2,consts:[[1,"form-container","d-flex","flex-column"],[4,"ngIf"],[1,"position-relative"],[3,"innerHTML"],[1,"d-block","d-xl-inline-block",3,"innerHTML"],["class","d-none d-xl-block container-fluid price-to-cancel",4,"ngIf"],[3,"summary"],[1,"text-center"],["type","button",1,"btn","btn-green","btn-round",3,"click"],[1,"d-none","d-xl-block","container-fluid","price-to-cancel"],[1,"row","gx-0"],[1,"col-auto","d-flex","align-items-center"],["src","./assets/images/payment/payment-type-4.png"],[1,"col"]],template:function(o,i){1&o&&(n.j41(0,"div",0),n.DNE(1,A,18,22,"ng-container",1)(2,P,6,6,"ng-container",1),n.k0s()),2&o&&(n.R7$(),n.Y8G("ngIf",i.booking&&i.booking.rides.length),n.R7$(),n.Y8G("ngIf",i.booking&&(0===i.booking.rides.length||!i.booking.rides)))},dependencies:[d.bT,M.P,T.w,F.V,d.QX,l.D9],styles:["h1[_ngcontent-%COMP%]{text-align:center;font-size:28px;font-weight:900;background:var(--green-gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding:20px 0 12px}h1[_ngcontent-%COMP%]:disabled{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor}p[_ngcontent-%COMP%]{color:var(--darkBlack);font-weight:700;font-size:16px;line-height:22px;margin-bottom:19px}p[_ngcontent-%COMP%]:not(:first-of-type){color:#1d1f21;margin:15px 0}.form-container[_ngcontent-%COMP%]{padding:38px 16px;min-height:calc(100dvh - var(--navbar-height));position:relative}button[_ngcontent-%COMP%]{width:100%;max-width:376px;font-weight:700}.price-to-cancel[_ngcontent-%COMP%]{position:absolute;top:-25px;left:0;background-color:#fff9cc;font-size:15px;font-weight:700;letter-spacing:.17px;width:auto;padding:8px 20px;color:var(--darkBlack);line-height:19px}.price-to-cancel[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:8px}@media (min-width: 1200px){p[_ngcontent-%COMP%]{font-weight:400;margin-bottom:29px}p[_ngcontent-%COMP%]:not(:first-of-type){margin:30px 20px;font-weight:700}.form-container[_ngcontent-%COMP%]{padding:46px 58px;min-height:500px}}"]})}return e})();const X=[{path:"",component:v.O},{path:":id",component:(()=>{class e{constructor(t,o){this.router=t,this.cancelService=o;const i=this.router.getCurrentNavigation();i&&(this.cancelService.booking=i.extras.state.booking),this.cancelService.booking||this.router.navigate(["/cancel-order"],{queryParamsHandling:"preserve"})}ngOnDestroy(){this.cancelService.booking=null}static#n=this.\u0275fac=function(o){return new(o||e)(n.rXU(c.Ix),n.rXU(m))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["app-cancel-order-main"]],decls:6,vars:3,consts:[[1,"container","page-container-position","page-container","p-0"],["tabindex","0",1,"d-none","d-xl-block"],[1,"page-container-child"]],template:function(o,i){1&o&&(n.j41(0,"div",0)(1,"h1",1),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"div",2),n.nrm(5,"router-outlet"),n.k0s()()),2&o&&(n.R7$(2),n.JRh(n.bMT(3,1,"NAVBAR.CANCEL_ORDER.TEXT")))},dependencies:[c.n3,l.D9],styles:["@media (min-width: 1200px){.bg-night[_nghost-%COMP%]   h1[_ngcontent-%COMP%], .bg-night   [_nghost-%COMP%]   h1[_ngcontent-%COMP%]{color:var(--white)}}"]})}return e})(),children:[{path:"",component:U},{path:"confirmation",component:f.P,data:{actionType:C.O.CANCEL}}]}];let $=(()=>{class e{static#n=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275mod=n.$C({type:e});static#e=this.\u0275inj=n.G2t({imports:[c.iI.forChild(X),c.iI]})}return e})();var j=r(3887);let V=(()=>{class e{static#n=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275mod=n.$C({type:e});
1static#e=this.\u0275inj=n.G2t({imports:[d.MD,c.iI,$,l.h.forChild({extend:!0}),j.G]})}return e})()}}]);

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.