PageSourceSearch

https://luxexpress.eu/_next/static/chunks/8527.8175cb6149527730.js

js luxexpress.eu collected 2026-09-24 09:14:39 UTC 6,176 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="ddf7a339-1583-49dd-b28c-fbb503b1d3a8",e._sentryDebugIdIdentifier="sentry-dbid-ddf7a339-1583-49dd-b28c-fbb503b1d3a8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8527],{81682:function(e,r,t){"use strict";t.d(r,{AE:function(){return isLuxExpressBrand},GD:function(){return c},J5:function(){return journeyIncludesTallinkLeg},LM:function(){return n},i3:function(){return o},l7:function(){return s},nO:function(){return isTallinkRefundBlocked},q6:function(){return isFerryPartnerBrand},vq:function(){return getPartnerBusNoticePartnerType}});var o={cancel:"cancel",error:"error",success:"success",panding:"panding"},n={leoExpress:"leoExpress",tallink:"tallink",other:"other"},c={LEO_EXPRESS:"Leo Express",TALLINK:"Tallink"},isFerryPartnerBrand=function(e){return e===c.TALLINK},isLuxExpressBrand=function(e){return"string"==typeof e&&e.startsWith("Lux")},journeyIncludesTallinkLeg=function(e){return Array.isArray(e)&&e.some(function(e){return isFerryPartnerBrand(null==e?void 0:e.BrandName)})},canRefundTallinkTicket=function(e){var r=e.isPublic,t=e.userEmail,o=e.hasPersonalToken;return!r&&!!o&&"string"==typeof t&&t.trim().toLowerCase().endsWith("@luxexpress.eu")},isTallinkRefundBlocked=function(e){return!canRefundTallinkTicket(e)},s=new Set(Object.values(c)),getPartnerBusNoticePartnerType=function(e){return e.includes(c.LEO_EXPRESS)?n.leoExpress:e.includes(c.TALLINK)?n.tallink:n.other}},28527:function(e,r,t){"use strict";t.r(r);var o=t(21831),n=t(82394),c=t(75582),s=t(40685),a=t(68925),i=t.n(a);t(12691);var l=t(34376),u=t(12350),d=t(1948),h=t(63635),p=t(43363),f=t(81682),m=t(48444),b=t(34456),_=t.n(b),v=t(25363),y=t(47654),x=t(17473),V=t(83745),j=t.n(V),k=t(28598);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){(0,n.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}r.default=function(e){var r=e.isOpen,t=e.toggleModal,n=(0,u.$G)(["common"]).t,a=(0,l.useRouter)(),b=(0,m.oR)(),V=b.app,g=b.tickets,N=b.updateTickets,w=g.vouchers,P=g.totalPrice,R=g.payment,E=V.symbol,L=w.newVoucher,O=w.newVoucherValue,C=(P-w.totalVouchersValue-O).toFixed(2),T=C<=0,D=(0,s.D)(h.gG,{variables:{VoucherCode:L},onError:function(e){d.Am.error("[".concat(e.name,"]: ").concat(e.message))},onCompleted:function(e){var r=e.payWithVoucher.error;if(r)d.Am.error("[".concat(r.ErrorCode,"]: ").concat(r.ErrorReason));else{var n,c=e.payWithVoucher.data.PaidAmount;if(e.payWithVoucher.basketPayed)return N({vouchers:_objectSpread(_objectSpread({},w),{},{newVoucher:"",basketPayed:!0,showVoucherInput:!1,fullyCoversCost:P<=w.totalVouchersValue+c,totalVouchersValue:w.totalVouchersValue+c,approved:[].concat((0,o.Z)(w.approved),[{code:L,value:c}])}),payment:_objectSpread(_objectSpread({},R),{},{status:f.i3.success,type:"voucher",objects:null==e?void 0:null===(n=e.payWithVoucher)||void 0===n?void 0:n.objects})}),t(),a.push("/tickets/thanks?type=zeroPayment");N({vouchers:_objectSpread(_objectSpread({},w),{},{basketPayed:!1,newVoucher:"",showVoucherInput:!1,fullyCoversCost:P<=w.totalVouchersValue+c,totalVouchersValue:w.totalVouchersValue+c,approved:[].concat((0,o.Z)(w.approved),[{code:L,value:c}])})}),t()}}}),I=(0,c.Z)(D,2),S=I[0],B=I[1].loading;return(0,k.jsxs)(p.Z,{className:j().modal,isOpen:r,onRequestClose:t,children:[(0,k.jsxs)("div",{className:j().content,children:[(0,k.jsx)("h2",{children:n("redeem by voucher")}),(0,k.jsxs)("div",{className:j().priceBlock,children:[(0,k.jsxs)("div",{className:j().priceLine,children:[n("tickets price"),(0,k.jsxs)("div",{className:j().price,children:[(0,x.NM)(P-w.totalVouchersValue)," ",E]})]}),(0,k.jsxs)("div",{className:j().priceLine,children:[n("voucher"),(0,k.jsxs)("div",{className:j().price,children:["-",T?(0,x.NM)(P-w.totalVouchersValue):O," ".concat(E)]})]}),(0,k.jsxs)("div",{className:i()(j().priceLine,j().total),children:[n("total price"),(0,k.jsxs)("div",{className:j().price,children:[T?0:C," ",E]})]})]}),(0,k.jsxs)(y.Z,{className:j().notice,children:["".concat(n("by completing this booking I agree with")," "),n("Lux Express ticket selling terms"),"."]}
1)]}),(0,k.jsxs)("div",{className:j().controls,children:[(0,k.jsx)(v.default,{className:j().button,disabled:B,text:n(B?"loading":T?"pay by voucher":"approve redeeming"),onClick:S}),(0,k.jsx)("div",{className:j().cancel,onClick:t,children:n("cancel")})]}),(0,k.jsx)("div",{className:j().footer,children:T?(0,k.jsxs)("div",{className:j().notice,children:[(0,k.jsx)("icon",{className:_().ticketAlt}),(0,k.jsx)("div",{className:j().text,children:n("voucher.redeeming.full.cost",{voucherCode:L,symbol:E,voucherValue:(O-(P-w.totalVouchersValue)).toFixed(2)})})]}):(0,k.jsx)(y.Z,{children:n("voucher.redeeming",{voucherCode:L,symbol:E,voucherValue:(P-w.totalVouchersValue-O).toFixed(2)})})})]})}},83745:function(e){e.exports={greenColor:"#2bba83",lightColor:"#f0f0f1",lightRedColor:"#e70707",mainColor:"#484c55",maxWidthDesktop:"1440px",maxWidthLaptop:"1279px",maxWidthMobile:"767px",maxWidthTablet:"1024px",redColor:"#c30909",tanColor:"#c6b791",modal:"RedeemVoucher_modal__tdTpm",content:"RedeemVoucher_content__DiS0R",notice:"RedeemVoucher_notice__thrYi",link:"RedeemVoucher_link__zZz8r",priceBlock:"RedeemVoucher_priceBlock__MIu8x",priceLine:"RedeemVoucher_priceLine__PiDhl",total:"RedeemVoucher_total__os2IL",controls:"RedeemVoucher_controls__AK1o6",button:"RedeemVoucher_button__2qyiN",cancel:"RedeemVoucher_cancel__l_DL8",footer:"RedeemVoucher_footer__DUe_R",text:"RedeemVoucher_text__d5JNE",showNav:"RedeemVoucher_showNav__EoT0p"}}}]);

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.