PageSourceSearch

https://teetime.cz/_next/static/chunks/pages/checkout/orders/[orderId]-30cbc3fef20f10d4.js

js teetime.cz collected 2026-10-08 19:48:53 UTC 26,460 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62043],{70903:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/orders/[orderId]",function(){return r(38051)}])},38051:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ev}});var o=r(35944),i=r(99279),a=r(72140),n=r(98029),c=r(98106),l=r(29568),d=r(85939),s=r(54070),m=r(84027),u=r(90875),p=r(38797),h=r(23075),g=r(16993),y=r(11163),b=r.n(y),v=r(67294),Z=r(2496);let _=()=>{let{t:e}=(0,h.L)("useCheckoutPageHook"),t=(0,y.useRouter)(),{currentUser:r}=(0,p.X)(),{show:i,modalContext:a}=(0,u.vR)(),{orderId:b,navigatedFrom:_}=t.query,[k,w]=(0,v.useState)(),[z,C]=(0,v.useState)(Z.z.ONLINE_INSTANT),[f,P]=(0,v.useState)("CRD"),x=g.n.getPortalTtmarketPage(),I=g.n.getPortalMembershipDetails(),T=function(){let e=(0,n.D)({mutationFn:async e=>{let{requestBody:t}=e,r=await (0,l.vW)();return await r.portal.paymentsController.createOrderForZeroPrice({requestBody:t})},onSuccess:e=>e,onError:e=>e});return(0,c.J)({mutation:e})}(),{query:K}=(0,s.A)({basketId:b});(0,v.useEffect)(()=>{_&&_===x&&C(Z.z.ONLINE_INSTANT),K.data&&w(K.data)},[K.data,_]);let R=(0,d.U)(),A=async()=>{try{let{url:e,payload:t}=(await R.mutation.mutateAsync({requestBody:{basketId:"".concat(null==k?void 0:k.id),payMethod:f}})).data,r=document.createElement("form");r.method="POST",r.action=e,Object.entries(t).forEach(e=>{let[t,o]=e,i=document.createElement("input");i.type="hidden",i.name=t,i.value=o,r.appendChild(i)}),document.body.appendChild(r),r.submit()}catch(t){console.error("Payment initiation failed:",t),i((0,o.tZ)(m.s,{title:e("payment_error_title","Chyba při platbě"),description:e("payment_error_description","Při pokusu o platbu došlo k chybě. Zkuste to znovu."),submitButton:{children:e("ok_button","OK")},onSubmit:async()=>null==a?void 0:a.close()}))}},B=async()=>{let e=await T.mutation.mutateAsync({requestBody:{basketId:null==k?void 0:k.id}});e&&t.push("".concat(g.n.getPortalCheckoutOrdersPage({orderId:e.orderId})).concat(g.n.getPortalpaymentSuccessPage(),"?playerId=").concat(null==r?void 0:r.playerId,"&category=").concat(null==k?void 0:k.type))},E=K.isLoading||K.isFetching||T.mutation.isPending;return{basketDetails:k,selectedPaymentType:z,selectedPaymentMethod:f,handlePaymentMethodSelect:e=>{P(t=>t===e?"CRD":e)},handlePaymentTypeSelect:e=>{C(t=>t===e?null:e)},handleInitiatePayment:A,handleGoBack:()=>{t.back()},handleOfflineOrder:B,query:K,membershipDetailsPageLink:I,loading:E}};var k=r(94135),w=r(2261);r(64172),r(50633),r(57638),r(96936);var z=r(53878),C=r(7333),f=r(6708),P=r(15545),x=r(43573),I=r(69280),T=r(40131),K=r(41664),R=r.n(K),A=r(55678),B=r(38473),E=e=>{var t,r,n;let{productData:c}=e,{t:l}=(0,h.L)("CheckoutPageSuggestionProducts"),{handleOpenBasket:d,setBasketCount:s,basketCount:m}=(0,i.Kl)(),u=(0,y.useRouter)(),b=g.n.getPortalLoginPage(),v=(0,C.l)(),Z=(0,p.X)(e=>e.currentUser),_=g.n.getPortalTtmarketProductDetails(),k=async e=>{try{if(!Z){(0,A.Am)((0,o.tZ)(f.h,{title:l("login_or_signup_to","Chcete-li zakoupit produkt, přihlaste se nebo se zaregistrujte!")}),{containerId:"global"}),u.push({pathname:b,query:{from:u.asPath}});return}await v.mutation.mutateAsync({requestBody:{resortId:"4a7da2e5-0784-44d0-a864-f397ba4f387e",quantity:1,productId:e}})&&(s(m+1),d())}catch(e){console.error("Error adding to basket:",e)}};return(0,o.BX)(I.K,{gap:"1rem",css:{border:"1px solid #EAECF0",borderRadius:"0.75rem",paddingBottom:"1.25rem",position:"relative",transition:"transform 300ms ease-out",cursor:"pointer",height:"100%"},children:[(0,o.tZ)(R(),{href:"".concat(_,"?productId=").concat(c.id,"&productData.category=").concat(c.category),children:(0,o.BX)("div",{style:{position:"relative",aspectRatio:"268 / 200"},children:[(0,o.tZ)(P.Z,{src:(null===(r=c.productImage)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.resizedImageURL)||"/images/empty-screen/empty-product.svg",alt:"Product"}),(0,o.tZ)(I.K,{horizontal:!0,css:{width:"100%",position:"absolute",gap:"0.25rem",top:0,left:"50%",transform:"translateX(-50%)",justifyContent:"space-between",flexWrap:"wrap",alignItems:"flex-start",padding:"0.72rem"}})]})}),(0,o.BX)(I.K,{gap:"0.75rem",css:{padding:"0 1rem 0 1rem",textAlign:"center",justifyContent:"space-between",height:"100%"},children:[(0,o.BX)(I.K,{gap:"0.75rem",children:[(0,o.tZ)(T.H,{size:"text_sm",color:B.colors.gray900,weight:"semibold",css:{textAlign:"center"},truncate:!0,children:c.name}),(0,o.tZ)(T.H,{size:"text_sm",weight:"regular",color:B.colors.gray600,children:c.productDescription&&c.productDescription.length>=40?"".concat(c.productDescription.slice(0,40),"..."):c.productDescription})]}),(0,o.BX)(I.K,{gap:"0.75rem",children:[(0,o.tZ)(I.K,{horizontal:!0,gap:"0.4rem",center:!0,css:{justifyContent:"center"},children:(0,o.tZ)(T.H,{size:"text_md",color:B.colors.green600,weight:"bold",css:{textAlign:"center"},children:(0,x.T4)(null===(n=c.basePrices)||void 0===n?void 0:n.minPrice,c.currency)})}),(0,o.tZ)(a.z,{size:"sm",iconName:"ShoppingCart01",color:"secondary_gray",onClick:()=>k(c.id),children:l("add_to_cart_button","Do koš\xedku")})]})]})]})},N=r(25345),S=r(82124),L=r(80037);let X={modules:[k.lI,k.W_,k.tl],navigation:{nextEl:".selectArrowLeft",prevEl:".selectArrowRight"},effect:"coverflow",grabCursor:!0,centeredSlides:!0,loop:!0,slidesPerView:1.3,spaceBetween:12,coverflowEffect:{rotate:0,stretch:0,depth:0,modifier:2.5},breakpoints:{580:{slidesPerView:3,centeredSlides:!1,effect:"slide"},786:{slidesPerView:3,centeredSlides:!1,effect:"slide"}}},D={width:"100%",".swiper-slide":{borderRadius:"0.72rem!important",overflow:"hidden"},"&.swiper-3d .swiper-slide-shadow-left":{background:"linear-gradient(to left, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0))"},"&.swiper-3d .swiper-slide-shadow-right":{background:"linear-gradient(to right, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0))"}},H=Array.from({length:3},(e,t)=>(0,o.tZ)(w.o5,{children:(0,o.tZ)(L.J,{})},t)),j=(0,v.memo)(e=>{var t,r,i;let{currency:a}=e,{t:n}=(0,h.L)("CheckoutProductSuggestions"),{query:c}=(0,z.k)({page:"0",limit:"3",search:"",category:"GOODS",currency:a||void 0}),l=(null===(t=c.data)||void 0===t?void 0:t.data)&&c.data.data.length>=1;return(0,o.tZ)(S.I,{query:c,children:(0,o.BX)(I.K,{gap:"1.5rem",children:[l&&(0,o.tZ)(T.H,{size:"text_lg",weight:"semibold",color:B.colors.gray900,children:n("eshop_checkout_inteerest_products_title","Mohlo by v\xe1s zaj\xedmat")}),(0,o.BX)(I.K,{horizontal:!0,gap:"0.5rem",children:[l&&(0,o.tZ)(w.tq,{...X,css:D,children:c.isLoading?H:null===(i=c.data)||void 0===i?void 0:null===(r=i.data)||void 0===r?void 0:r.map(e=>(0,o.tZ)(w.o5,{children:(0,o.tZ)(E,{productData:e})},e.id))}),!c.isLoading&&!l&&(0,o.tZ)(N.Z,{imageSrc:"/images/empty-screen/favourite-reservation.svg",title:"Data nenalezena",buttons:void 0})]})]})})});j.displayName="CheckoutProductSuggestions";var q=r(82763),O=r(17409),M=r(80426),W=r(79986),J=r(93773),F=e=>{var t,r;let{selectedPaymentMethod:i,handlePaymentMethodSelect:a,total:n,currency:c,showLoyaltyCoinLabel:l}=e,{t:d}=(0,h.L)("ProductsCheckoutPaymentMethods"),[s,m]=(0,v.useState)(!1),u=null!==(r=null===(t=(0,q.g)({}).getRaw())||void 0===t?void 0:t.extraCoinsPercent)&&void 0!==r?r:0;(0,v.useEffect)(()=>{var e,t;(null===(t=window)||void 0===t?void 0:null===(e=t.ApplePaySession)||void 0===e?void 0:e.canMakePayments())&&m(!0)},[]);let p=[{id:"CRD",name:d("payment_card_text_1","Platebn\xed karta"),icon:(0,o.tZ)(W.J,{name:"VisaCard",size:"2rem"})},...s?[{id:"APAY",name:d("payment_card_text_2","Apple Pay"),icon:(0,o.tZ)(W.J,{name:"ApplePay",size:"2rem"})}]:[],{id:"GPAY",name:d("payment_card_text_3","Google Pay"),icon:(0,o.tZ)(W.J,{name:"GooglePay",size:"2rem"})}];return(0,o.BX)(I.K,{gap:"1.5rem",children:[(0,o.tZ)(T.H,{color:B.colors.gray900,size:"text_lg",weight:"semibold",css:{lineHeight:"1.75rem",textAlign:"left"},children:d("pay_via_title","Zaplatit prostřednictv\xedm")}),(0,o.tZ)(I.K,{gap:"0.75rem",children:p.map(e=>(0,o.tZ)(I.K,{color:B.colors.baseWhite,css:{borderRadius:"0.75rem",border:"1px solid ".concat(i===e.id?B.colors.primary600:B.colors.gray200),backgroundColor:B.colors.baseWhite,cursor:"pointer"},onClick:t=>{t.stopPropagation(),a(e.id)},children:(0,o.BX)(I.K,{gap:"0.25rem",horizontal:!0,css:{borderTopLeftRadius:"0.75rem",borderTopRightRadius:"0.75rem",borderBottomLeftRadius:"0.75rem",borderBottomRightRadius:"0.75rem",padding:"0.75rem 1.25rem 0.75rem 1rem",border:"1px solid ".concat(i===e.id?B.colors.primary600:B.colors.gray200),backgroundColor:i===e.id?B.colors.primary50:B.colors.baseWhite,justifyContent:"space-between",alignItems:"center"},children:[(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",css:{justifyContent:"center",alignItems:"center"},children:[(0,o.tZ)(I.K,{css:{borderRadius:"5px",border:"1px solid ".concat(B.colors.gray100),padding:"0.3px 0.5rem",background:B.colors.baseWhite},children:e.icon}),(0,o.tZ)(T.H,{color:i===e.id?B.colors.primary800:B.colors.gray900,size:"text_md",weight:"semibold",children:e.name})]}),(0,o.BX)(I.K,{horizontal:!0,center:!0,gap:"0.5rem",children:[n&&n>0&&c&&l&&(0,o.tZ)(O.Ct,{css:{border:"1px solid ".concat(B.colors.primary500)},color:"success",iconName:"TCoin",iconSize:"1rem",children:"+"+(0,J.Ti)((0,J.Kf)(n,c),u)}),(0,o.tZ)(M.J,{isSelected:i===e.id,selectedVisual:"filled",rounded:!0,size:"1rem"})]})]})},e.id))})]})},Y=r(1725),V=r(25675),U=r.n(V),G=e=>{var t,r;let{productData:n}=e,{t:c}=(0,h.L)("productItem"),{basketDetails:l}=_();return(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",color:B.colors.baseWhite,css:{borderRadius:"0.75rem",alignItems:"center"},children:[(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",css:{width:"100%",justifyContent:"space-between"},children:[(0,o.tZ)("div",{css:{position:"relative",width:"5rem",height:"5rem"},children:(0,o.tZ)(U(),{src:(null==n?void 0:null===(t=n.productImage)||void 0===t?void 0:t.resizedImageURL)||"/images/empty-screen/empty-product.
1svg",objectFit:"cover",fill:!0,alt:"product",css:{borderRadius:"0.75rem"}})}),(0,o.BX)(I.K,{gap:"0.1rem",css:{alignItems:"start",width:"calc(100% - 5rem)"},children:[(0,o.tZ)(T.H,{color:B.colors.gray900,size:"text_md",weight:"semibold",css:{wordBreak:"break-word"},children:n.name}),(0,o.tZ)(T.H,{color:B.colors.gray600,size:"text_md",weight:"regular",truncate:!0,css:{maxWidth:"31rem"},children:(null===(r=n.productDescription)||void 0===r?void 0:r.length)>=30?"".concat(n.productDescription.slice(0,30),"..."):n.productDescription}),(0,o.tZ)(a.z,{onClick:()=>{let e=(null==l?void 0:l.type)===i.qZ.MARKETPLACE?"".concat(g.n.getPortalTtmarketProductDetails(),"/").concat(n.id,"?category=").concat(n.category):(null==l?void 0:l.type)===i.qZ.MARKETPLACE_LOYALTY?"".concat(g.n.getPortalTtmarketProductDetails(),"/").concat(n.id,"?category=").concat(n.category,"&type=LOYALTY_PROGRAMME"):g.n.getEshopProductDetailsPage({resortId:n.resortId,category:n.category,productId:n.id,withDiscount:!0});b().replace(e)},rightIconName:"ChevronRight",color:"link",children:c("view_product_detail_from_checkout","View Detail")})]})]}),(0,o.tZ)(I.K,{gap:"1rem",horizontal:!0,center:!0,css:{padding:"0 0.7rem",alignItems:"center",background:B.colors.primary50,borderRadius:"0.5rem"},children:(0,o.tZ)(T.H,{size:"text_sm",weight:"medium",color:B.colors.gray700,children:n.quantity})})]})},Q=r(70248),$=e=>{var t,r,n;let{productData:c,itemId:l}=e,{t:d}=(0,h.L)("productItem"),{basketDetails:s,loading:m}=_(),{setBasketCount:u,handleOpenBasket:y,handleDeleteBasketItem:Z,setUpdatingProductId:k,updatingProductId:w}=(0,i.Kl)(),{currentUser:z}=(0,p.X)(),P=(0,C.l)(),x=g.n.getPortalLoginPage(),[K,R]=(0,v.useState)(null),E=(0,v.useCallback)(e=>m&&w===c.productId&&K===e,[m,w,c.productId,K]),N=async e=>{var t;if(!z){(0,A.Am)((0,o.tZ)(f.h,{title:d("login_or_signup_to","Chcete-li zakoupit produkt, přihlaste se nebo se zaregistrujte!")}),{containerId:"global"}),b().push({pathname:x,query:{from:b().asPath}});return}if(e!==i.Jk.INCREASED||!(c.quantity>=(c.stock?null===(t=c.stock)||void 0===t?void 0:t.remainingStock:1/0))){k(c.productId),R(e);try{await P.mutation.mutateAsync({requestBody:{resortId:(null==s?void 0:s.type)===i.qZ.MARKETPLACE?"4a7da2e5-0784-44d0-a864-f397ba4f387e":c.resortId,productId:c.productId,quantity:1,type:e}})&&(u(e=>e+1),y())}catch(e){console.error("Error updating basket:",e)}}};return(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",color:B.colors.baseWhite,css:{borderRadius:"0.75rem",alignItems:"center"},children:[(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",css:{width:"100%",justifyContent:"space-between"},children:[(0,o.tZ)("div",{css:{position:"relative",width:"5rem",height:"5rem"},children:(0,o.tZ)(U(),{src:(null==c?void 0:null===(t=c.productImage)||void 0===t?void 0:t.resizedImageURL)||"/images/empty-screen/empty-product.svg",objectFit:"cover",fill:!0,alt:"product",css:{borderRadius:"0.75rem"}})}),(0,o.BX)(I.K,{gap:"0.1rem",css:{alignItems:"start",width:"calc(100% - 5rem)"},children:[(0,o.tZ)(T.H,{color:B.colors.gray900,size:"text_md",weight:"semibold",css:{wordBreak:"break-word"},children:c.name}),(0,o.tZ)(T.H,{color:B.colors.gray600,size:"text_md",weight:"regular",truncate:!0,css:{maxWidth:"31rem"},children:(null===(r=c.productDescription)||void 0===r?void 0:r.length)>=30?"".concat(c.productDescription.slice(0,30),"..."):c.productDescription}),(0,o.tZ)(a.z,{onClick:()=>{let e=(null==s?void 0:s.type)===i.qZ.MARKETPLACE?"".concat(g.n.getPortalTtmarketProductDetails(),"/").concat(c.id,"?category=").concat(c.category):g.n.getEshopProductDetailsPage({resortId:c.resortId,category:c.category,productId:c.id,withDiscount:!0});b().replace(e)},rightIconName:"ChevronRight",color:"link",children:d("view_product_detail_from_checkout","View Detail")})]})]}),(0,o.BX)(I.K,{gap:"1rem",horizontal:!0,center:!0,css:{padding:"0 0.7rem",alignItems:"center",background:B.colors.primary50,borderRadius:"0.5rem"},children:[(0,o.tZ)(a.z,{color:"link",css:{padding:"0.5rem",width:"1rem"},iconName:"MinusCircle",onClick:()=>N(i.Jk.DECREASED),loading:E(i.Jk.DECREASED)}),(0,o.tZ)(T.H,{size:"text_sm",weight:"medium",color:B.colors.gray700,children:c.quantity}),(0,o.tZ)(a.z,{color:"link",css:{padding:"0.5rem",width:"1rem"},iconName:"PlusCircle",onClick:()=>N(i.Jk.INCREASED),loading:E(i.Jk.INCREASED),disabled:c.quantity>=(c.stock?null===(n=c.stock)||void 0===n?void 0:n.remainingStock:1/0)})]}),m&&w===l?(0,o.tZ)(Q.T,{size:"1.5rem"}):(0,o.tZ)(W.J,{onClick:()=>Z(null==s?void 0:s.id,l),name:"Trash01",color:B.colors.gray600,cursor:"pointer"})]})},ee=r(17656),et=r(26847),er=r(66006),eo=r(67302),ei=r(95103),ea=r(31470),en=r(95868),ec=r(63351),el=e=>{let{showDeleteAndUpdateQuantity:t=!0}=e,{t:r}=(0,h.L)("OrderCheckoutPriceBreakdown"),{handleDeleteBasketItem:a,updatingProductId:n}=(0,i.Kl)(),{basketDetails:c,query:l,loading:d}=_();if(!c||!c.items||0===c.items.length)return(0,o.tZ)(N.Z,{imageSrc:"/images/empty-screen/empty-cart.svg",title:r("empty_cart_title","Koš\xedk je pr\xe1zdn\xfd"),buttons:void 0});let s=[i.qZ.MARKETPLACE,i.qZ.MARKETPLACE_LOYALTY].includes(c.type);return(0,o.tZ)(S.I,{query:l,children:(0,o.BX)(I.K,{color:B.colors.baseWhite,gap:"1rem",css:{width:"100%",borderRadius:"0.75rem",border:"1px solid ".concat(B.colors.gray200),padding:"1.5rem",maxHeight:"40rem",overflowY:"auto","&::-webkit-scrollbar":{display:"none"}},children:[(0,o.tZ)(T.H,{color:B.colors.gray900,size:"text_lg",weight:"semibold",css:{lineHeight:"1.75rem",textAlign:"left"},children:r("price_breakdown_text","Rozpad ceny")}),(0,o.tZ)(I.K,{gap:"1rem",css:{overflowY:"auto",maxHeight:"100%",[ec.l0.md]:{maxHeight:"25rem",width:"100%"}},children:c.items.map((e,r)=>(0,o.BX)(I.K,{children:[e.product&&(0,o.BX)(I.K,{horizontal:!0,center:!0,css:{justifyContent:"space-between",paddingRight:"1rem"},children:[(0,o.tZ)(eo.Z,{showQuantityUpdation:t,index:r,productData:e.product,loading:d}),t&&(e.id===n&&d?(0,o.tZ)(Q.T,{}):(0,o.tZ)(W.J,{onClick:()=>a(c.id,e.id),name:"Trash01",color:B.colors.gray600,cursor:"pointer"})),e.product.voucherCode&&c&&(0,o.tZ)(en.Z,{voucherCode:e.product.voucherCode,basketId:c.id})]}),e.loyaltyProduct&&(0,o.BX)(I.K,{horizontal:!0,center:!0,css:{justifyContent:"space-between",paddingRight:"1rem"},children:[(0,o.tZ)(eo.Z,{showQuantityUpdation:t,index:r,productData:e.loyaltyProduct,loading:d}),t&&(e.id===n&&d?(0,o.tZ)(Q.T,{}):(0,o.tZ)(W.J,{onClick:()=>a(c.id,e.id),name:"Trash01",color:B.colors.gray600,cursor:"pointer"}))]}),e.membership&&(0,o.BX)(I.K,{horizontal:!0,center:!0,css:{justifyContent:"space-between",paddingRight:"1rem",marginTop:"1rem"},children:[(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",children:[(0,o.tZ)(U(),{src:e.membership.eshopDetails&&e.membership.eshopDetails.images[0]||"/images/empty-screen/empty-product.
1svg",width:64,height:64,objectFit:"cover",alt:"membership",css:{borderRadius:"0.75rem"}}),(0,o.BX)(I.K,{gap:"0.5rem",children:[(0,o.tZ)(T.H,{size:"text_sm",weight:"semibold",children:e.membership.name}),(0,o.BX)(T.H,{size:"text_sm",weight:"regular",children:["".concat(e.product?e.product.quantity:1," x ").concat((0,x.T4)(e.membership.totalPrice,c.currency))," "]})]})]}),t&&(0,o.tZ)(W.J,{onClick:()=>a(c.id,e.id),name:"Trash01",color:B.colors.gray600,cursor:"pointer"})]}),(0,o.tZ)(ea.L,{size:"1rem"})]},"item-".concat(e.id)))}),c.type!==i.qZ.ESHOP&&(0,o.tZ)(ee.Z,{basketDetails:c}),(0,o.tZ)(er.m,{color:B.colors.gray200}),(0,o.tZ)(et.Z,{basketId:c.id,basketDetails:c}),(0,o.tZ)(ei.Z,{total:c.total,currency:c.currency,isMarketplaceOrder:s,tCoins:c.totalCoins})]})})},ed=r(12190),es=r(14988);let em=[{iconName:"ApplePay"},{iconName:"GooglePay"},{iconName:"VisaCard"},{iconName:"MasterCard"},{iconName:"MaestroCard"},{iconName:"PayPal"}];var eu=e=>{var t,r;let{selectedPaymentType:i,handlePaymentTypeSelect:a,handlePaymentMethodSelect:n,showLoyaltyCoinLabel:c=!1,total:l,currency:d}=e,{t:s}=(0,h.L)("ProductsCheckoutPaymentTypes"),{navigatedFrom:m}=(0,y.useRouter)().query,u=g.n.getPortalTtmarketPage(),p=null!==(r=null===(t=(0,q.g)({}).getRaw())||void 0===t?void 0:t.extraCoinsPercent)&&void 0!==r?r:0;return(0,o.BX)(I.K,{gap:"1.5rem",children:[(0,o.tZ)(T.H,{color:B.colors.gray900,size:"text_lg",weight:"semibold",css:{lineHeight:"1.75rem"},children:s("choose_payment_method_title","Zvolte si způsob platby")}),(0,o.BX)(I.K,{color:B.colors.baseWhite,css:{borderRadius:"0.75rem",border:i===Z.z.ONLINE_INSTANT?"0.0625rem solid ".concat(B.colors.primary600):"0.0625rem solid ".concat(B.colors.gray200),backgroundColor:B.colors.baseWhite,cursor:"pointer"},onClick:()=>{a(Z.z.ONLINE_INSTANT),n("CRD")},children:[(0,o.BX)(I.K,{gap:"0.25rem",horizontal:!0,css:{borderTopLeftRadius:"0.75rem",borderTopRightRadius:"0.75rem",padding:"0.75rem 1.25rem 0.75rem 1rem",border:i===Z.z.ONLINE_INSTANT?"0.0625rem solid ".concat(B.colors.primary600):"0.0625rem solid ".concat(B.colors.gray200),backgroundColor:i===Z.z.ONLINE_INSTANT?B.colors.primary50:B.colors.gray50,justifyContent:"space-between",alignItems:"center"},children:[(0,o.BX)(I.K,{color:B.colors.primary50,horizontal:!0,gap:"1rem",css:{alignItems:"center"},children:[(0,o.tZ)(es.$,{name:"CreditCardShield"}),(0,o.tZ)(T.H,{color:B.colors.primary800,size:"text_md",weight:"semibold",children:s("choose_payment_method_heading","Zvolte si způsob platby")})]}),(0,o.tZ)(M.J,{isSelected:i===Z.z.ONLINE_INSTANT,selectedVisual:"filled",rounded:!0,size:"1rem"})]}),(0,o.BX)(I.K,{gap:"1.5rem",css:{padding:"1rem",justifyContent:"space-between"},children:[(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",css:{alignItems:"flex-start",justifyContent:"space-between",[ec.l0.md]:{flexDirection:"column"}},children:[(0,o.BX)(I.K,{horizontal:!0,css:{flexWrap:"wrap"},children:[(0,o.tZ)(T.H,{color:B.colors.gray600,size:"text_sm",weight:"regular",css:{lineHeight:"1.25rem",textAlign:"left"},children:s("payment_inner_text","Zaplat\xedte nyn\xed online platebn\xed kartou nebo jin\xfdm způsobem")}),(0,o.tZ)(I.K,{horizontal:!0,gap:"0.25rem",css:{alignItems:"center",marginTop:"1rem"},children:em.map((e,t)=>(0,o.tZ)(I.K,{css:{borderRadius:"5px",border:"1px solid ".concat(B.colors.gray100),padding:"0.4px 0.5rem"},children:(0,o.tZ)(W.J,{name:e.iconName,size:26})},t))})]}),c&&(0,o.tZ)(O.Ct,{color:"success",iconName:"TCoin",iconSize:"1rem",children:s("tcoins_point_txt","Z\xedskejte +{{point}} TToinů",{point:(0,J.Ti)((0,J.Kf)(l,d),p)})})]}),c&&(0,o.tZ)(I.K,{gap:"1rem",children:(0,o.tZ)(ep,{})})]})]}),m&&m!==u&&(0,o.BX)(I.K,{horizontal:!0,gap:"0.25rem",css:{borderRadius:"0.75rem",padding:"1rem",border:"0.0625rem solid ".concat(B.colors.gray200),backgroundColor:i===Z.z.CASH?B.colors.gray50:B.colors.baseWhite,cursor:"pointer",justifyContent:"space-between"},onClick:()=>a(Z.z.CASH),children:[(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",css:{alignItems:"center"},children:[(0,o.tZ)(es.$,{color:"gray",name:"BankNote01"}),(0,o.BX)(I.K,{children:[(0,o.tZ)(T.H,{color:B.colors.gray700,size:"text_sm",weight:"medium",children:s("payment_at_reception_text","Platba na recepci")}),(0,o.tZ)(T.H,{color:B.colors.gray600,size:"text_sm",weight:"regular",children:s("pay_in_cash_or_card_text","Zaplat\xedte hotově nebo kartou až na recepci")})]})]}),(0,o.tZ)(M.J,{isSelected:i===Z.z.CASH,selectedVisual:"filled",rounded:!0,size:"1rem"})]})]})};let ep=()=>{let{t:e}=(0,h.L)("TCoinsCreditedCard");return(0,o.BX)(I.K,{horizontal:!0,gap:"0.72rem",css:{height:"100%",minHeight:"5.5rem",padding:"1rem",border:"1px solid #F0E514",borderRadius:"0.72rem",background:"linear-gradient(90deg, #FFF 18.72%, rgba(255, 255, 255, 0.30) 100%), url(/images/coin/tcoin-bg.svg) lightgray 74.079px -50.85px / 100% 397.222% no-repeat"},children:[(0,o.tZ)(U(),{src:"/images/coin/tcoin-bg-effect.svg",width:40,height:40,objectFit:"contain",alt:"TCoin Image"}),(0,o.BX)(I.K,{gap:"0.3rem",children:[(0,o.tZ)(T.H,{color:B.colors.gray700,size:"text_sm",weight:"semibold",children:e("tcoins_credited_box_title","TCoiny budou přips\xe1ny po \xfaspěšn\xe9m zad\xe1n\xed vaš\xed objedn\xe1vky.")}),(0,o.tZ)(T.H,{color:B.colors.gray600,size:"text_xs",weight:"regular",children:e("tcoins_credited_box_description","Kupte si jak\xfdkoli produkt z tržiště a užijte si odměny TCoin, jakmile se k v\xe1m dostane vaše objedn\xe1vka.")})]})]})},{gray200:eh,gray600:eg,gray900:ey,baseWhite:eb}
1=B.colors;var ev=()=>{var e,t;let{t:r}=(0,h.L)("ProductsCheckoutPage"),{basketDetails:n,selectedPaymentType:c,selectedPaymentMethod:l,handlePaymentMethodSelect:d,handlePaymentTypeSelect:s,handleInitiatePayment:m,handleGoBack:u,handleOfflineOrder:p,query:g,membershipDetailsPageLink:y,loading:b}=_(),v=e=>{var t,i,n,c;let{membership:l}=e;return(0,o.tZ)(I.K,{css:{marginTop:e.product?"1rem":0},children:(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",color:eb,css:{borderRadius:"0.75rem",alignItems:"center"},children:[(0,o.tZ)("div",{css:{position:"relative",width:"5rem",height:"5rem"},children:(0,o.tZ)(U(),{src:(null==l?void 0:null===(i=l.eshopDetails)||void 0===i?void 0:null===(t=i.images)||void 0===t?void 0:t[0])||"/images/empty-screen/empty-product.svg",objectFit:"cover",fill:!0,alt:"membership",css:{borderRadius:"0.75rem"}})}),(0,o.BX)(I.K,{gap:"0.1rem",css:{alignItems:"start",width:"calc(100% - 5rem)"},children:[(0,o.tZ)(T.H,{color:ey,size:"text_md",weight:"semibold",children:null==l?void 0:l.name}),(0,o.tZ)(T.H,{color:eg,size:"text_md",weight:"regular",truncate:!0,css:{maxWidth:"31rem"},children:null==l?void 0:null===(c=l.feeProducts)||void 0===c?void 0:null===(n=c[0])||void 0===n?void 0:n.productDescription}),(0,o.tZ)(a.z,{href:"".concat(y,"/").concat(null==l?void 0:l.membershipId,"?resortId=").concat(null==l?void 0:l.resortId),rightIconName:"ChevronRight",color:"link",children:r("view_detail_text","Zobrazit detail")})]})]})},null==l?void 0:l.membershipId)};if(!(null==n?void 0:null===(e=n.items)||void 0===e?void 0:e.length))return(0,o.tZ)(ed.W,{children:(0,o.tZ)(S.I,{query:g,children:(0,o.tZ)(N.Z,{imageSrc:"/images/empty-screen/empty-cart.svg",title:r("cart_empty_title","Koš\xedk je pr\xe1zdn\xfd"),buttons:void 0})})});let k=[i.qZ.MARKETPLACE,i.qZ.MARKETPLACE_LOYALTY].includes(n.type);return(0,o.tZ)(ed.W,{children:(0,o.BX)(S.I,{query:g,children:[(0,o.BX)(I.K,{horizontal:!0,gap:"1rem",css:{alignItems:"center",[ec.l0.lg]:{padding:"1rem 1rem 0"}},children:[(0,o.tZ)(Y.h,{onClick:u,css:{margin:0},children:(0,o.tZ)(W.J,{name:"ChevronLeft"})}),(0,o.tZ)(T.H,{size:"display_xs",weight:"semibold",color:ey,css:{[ec.l0.md]:{fontSize:"1.2rem"}},children:r("chechout_head_title","Potvrzen\xed a platba")})]}),(0,o.BX)(I.K,{horizontal:!0,gap:"3rem",css:{width:"100%",marginTop:"2rem",justifyContent:"space-between",alignItems:"flex-start",[ec.l0.lg]:{marginTop:"1rem",padding:"0 1rem",flexDirection:"column"}},children:[(0,o.BX)(I.K,{gap:"2rem",css:{width:"100%",maxWidth:"38rem",[ec.l0.lg]:{maxWidth:"100%"}},children:[(null==n?void 0:null===(t=n.items)||void 0===t?void 0:t.length)?(0,o.BX)(I.K,{css:{"& > div:not(:last-child)":{padding:"1rem 0",borderBottom:"1px solid ".concat(eh)},"& > div:last-child":{paddingTop:"1rem"}},children:[(0,o.tZ)(T.H,{size:"text_lg",weight:"semibold",color:ey,css:{[ec.l0.md]:{fontSize:"1.2rem"}},children:r("order_summery_title_txt","Shrnut\xed objedn\xe1vky")}),n.items.map((e,t)=>(0,o.BX)(I.K,{gap:"1rem",children:[e.product&&(0,o.tZ)($,{itemId:e.id,productData:e.product}),e.membership&&v(e),e.loyaltyProduct&&(0,o.tZ)(G,{productData:e.loyaltyProduct})]},e.id||t))]}):null,n.total>0?(0,o.BX)(o.HY,{children:[n.type===i.qZ.MARKETPLACE&&(0,o.tZ)(j,{currency:n.currency}),(0,o.tZ)(eu,{showLoyaltyCoinLabel:k,selectedPaymentType:c,handlePaymentTypeSelect:s,handlePaymentMethodSelect:d,total:n.total,currency:n.currency}),c===Z.z.ONLINE_INSTANT&&(0,o.tZ)(F,{showLoyaltyCoinLabel:k,selectedPaymentMethod:l,handlePaymentMethodSelect:d,total:n.total,currency:n.currency}),(0,o.tZ)(T.H,{size:"text_xs",color:eg,css:{lineHeight:"1.125rem"},children:r("supporting_text","Kliknut\xedm na dole um\xedstěn\xe9 tlač\xedtko souhlas\xedm s těmito pravidly: Z\xe1kladn\xed pravidla pro hr\xe1če, Podm\xednky TeeTime pro změnu rezervace a vr\xe1cen\xed peněz. Platebn\xed podm\xednky mezi v\xe1mi a subjektem TeeTime s.r.o.")}),(0,o.tZ)(a.z,{disabled:!c,onClick:m,css:{width:"auto",alignSelf:"start"},children:r("confirm_and_pay_button_text","Potvrdit a zaplatit")})]}):(0,o.tZ)(a.z,{disabled:b,onClick:p,css:{width:"auto",alignSelf:"start"},children:r("offline_button_text","Potvrdit objedn\xe1vku")})]}),(0,o.tZ)(I.K,{css:{width:"100%",maxWidth:"26rem",position:"sticky",top:"1rem"},children:(0,o.tZ)(el,{showDeleteAndUpdateQuantity:!1})})]})]})})}}},function(e){e.O(0,[54736,68592,49774,92888,40179],function(){return e(e.s=70903)}),_N_E=e.O()}]);

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.