PageSourceSearch

https://www.telgani.com/_next/static/chunks/6552.6084e6ac45f92f67.js

js telgani.com collected 2026-09-24 10:54:42 UTC 9,081 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6552],{98948:function(e,n,i){i.d(n,{W:function(){return r}});var r={containerMobile:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"10px"},containerDesktop:{display:"flex",flexDirection:"column",gap:2,backgroundColor:"background.bg5"},heading:{color:"black",mb:2},headingMobile:{color:"white",fontWeight:500,letterSpacing:"0.3px"},notificationIcon:{width:"35px",height:"auto",fontSize:"20px"},wrapper:{backgroundColor:"background.bg17",minHeight:"100vh",height:"100vh"}}},75289:function(e,n,i){i.d(n,{BN:function(){return D},Sp:function(){return H},kL:function(){return I},u:function(){return N},be:function(){return f},iO:function(){return Q}});var r=i(85893),t=i(67294),o=i(45697),a=i(11163),s=i(25675),c=i.n(s),p=i(19238),d=i(15861),l=i(11057),x=i(9229),u={container:{display:"grid",placeItems:"center",gap:2,marginY:15,marginTop:0,paddingTop:"25px"},imageWrapper:{height:"160px"},heading:{fontSize:"20px"},subtitle:{fintSize:"16px",textAlign:"center",color:"text.description",fontWeight:400,lineHeight:"19.2px"}},g=i(59775),h=i(54223),f=function(e){var n=e.currentBookings,i=(0,x.T_)(["booking_history","buttons"]).t,t=(0,a.useRouter)();return(0,r.jsxs)(p.Z,{sx:u.container,children:[(0,r.jsx)(p.Z,{sx:u.imageWrapper,children:(0,r.jsx)(c(),{src:g.Zu,alt:i("no_bookings_wrapper.image_alt")})}),(0,r.jsx)(d.Z,{sx:u.heading,variant:"h6",children:i("no_bookings_wrapper.heading")}),(0,r.jsx)(d.Z,{sx:u.subtitle,children:i("no_bookings_wrapper.subtitle")}),(0,r.jsx)(l.Z,{onClick:function(){return t.push(h._1w.HOME)},variant:"contained",children:i(n?"no_bookings_wrapper.book_a_car":"no_bookings_wrapper.find_a_car")})]})};f.propTypes={currentBookings:o.bool.isRequired};var b=i(1986),m=i(26042),j={container:(0,i(69396).Z)((0,m.Z)({display:"grid",gridTemplateColumns:"1fr"},h.Kmy.min.sm({gridTemplateColumns:"repeat(2, 1fr)"}),h.Kmy.max.sm({paddingX:1}),h.Kmy.min.lg({gridTemplateColumns:"repeat(3, 1fr)"})),{gap:3}),containerMobile:{display:"flex",flexDirection:"column",padding:"8px",gap:3}},k=i(25149),Z=function(e){var n=e.currentBookings,i=(0,x.SL)(),t=(0,k.dW)({queryOptions:{staleTime:0,keepPreviousData:!1},currentBookings:n}),o=t.data,a=t.isError,s=t.isFetching;if(a)throw new Error;return s?(0,r.jsx)(N,{}):o.length?(0,r.jsxs)(p.Z,{sx:i?j.containerMobile:j.container,children:[i&&(0,r.jsx)(b.uP,{}),o.map((function(e){return(0,r.jsx)(D,{data:e,currentBookings:n},e.uuid)})),i&&(0,r.jsx)(Q,{bookingHistory:o})]}):(0,r.jsx)(f,{currentBookings:n})};Z.propTypes={currentBookings:o.bool},Z.defaultProps={currentBookings:!1};var y=i(67720),_={card:{display:"grid",boxShadow:"0px 4px 8px 0px rgba(30, 46, 62, 0.04);",borderRadius:"12px",padding:2,gap:1,transition:".3s ease","&:hover":{boxShadow:"0px 12px 16px -4px rgba(24, 39, 75, 0.1)"},backgroundColor:"white"},divider:{borderColor:"grayscale.g50",my:"5px"}},v=i(86886),w=i(87918),T=i(26447),C=i(68411),W={container:{gap:"14px"},imageWrapper:{maxWidth:48},bookingDetailsContainer:{width:"calc(100% - 62px)"},carNameWrapper:{display:"flex",justifyContent:"space-between"},carName:{fontSize:16,lineHeight:1.2},subtitle:{color:"text.description",fontSize:14},icon:{color:"text.description",width:"18px",height:"fit-content"},chip:{backgroundColor:"background.bg17",color:"text.description",borderRadius:"5px",height:"fit-content",span:{padding:"4 8px"},"& .MuiTypography-root":{fontSize:"12px",fontWeight:500}},dateContainer:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"}},S=i(27484),B=i.n(S),P=function(e){var n=function(e){var n=e.drop_date,i=e.pick_date,r=e.vehicle_name,t=e.car_logo,o=e.vehicle_year,a=e.total_discounted_gross_price,s=e.individual_number,c=(0,x.T_)("general").t,p=h.lvo.DATE_FORMAT_SLASH_REVERSE,d=h.lvo.ONLY_DAY_DATE_FORMAT,l=(0,x.SC)(),u=a;return{date:B()(i).isSame(n,"month")?l?"".concat(B()(i).format(d)," \u2013 ").concat(B()(n).format(p)):"".concat(B()(i).format(p)," \u2013 ").concat(B()(n).format(d)):"".concat(B()(i).format(p)," ").concat(c("to")," ").concat(B()(n).format(p)),carLogo:t,vehicleNameYear:"".concat(r," ").concat(o),price:u,bookingId:"#".concat(s),days:Math.ceil((B()(n)-B()(i))/864e5)}}(e.data),i=n.date,t=n.carLogo,o=n.vehicleNameYear,a=n.price,s=n.bookingId,c=n.days,l=(0,x.T_)("common").t;return(0,r.jsxs)(v.ZP,{container:!0,justifyContent:"space-between",sx:W.container,children:[(0,r.jsx)(p.Z,{sx:W.imageWrapper,children:(0,r.jsx)(p.Z,{component:"img",src:t})}),(0,r.jsxs)(p.Z,{sx:W.bookingDetailsContainer,children:[(0,r.jsxs)(p.Z,{sx:W.carNameWrapper,children:[(0,r.jsx)(d.Z,{variant:"h6",sx:W.carName,children:o}),(0,r.jsx)(w.Z,{sx:W.chip,label:(0,r.jsx)(d.Z,{dir:"ltr",fontSize:12,children:s})})]}),(0,r.jsxs)(p.Z,{sx:W.dateContainer,children:[(0,r.jsxs)(T.Z,{direction:"row",alignItems:"center",children:[(0,r.jsx)(C.HF,{sx:W.icon}),(0,r.jsxs)(d.Z,{variant:"subtitle1",sx:W.subtitle,children:[i," ","(".concat(c," ").concat(l("days"),")")]})]}),(0,r.jsxs)(T.Z,{direction:"row",spacing:.5,alignItems:"center",children:[(0,r.jsx)(C.Ws,{sx:W.icon}),(0,r.jsx)(b.O0,{price:a,color:"text.description",fontSize:14,iconSize:16})]})]})]})]})};P.propTypes={data:o.object.isRequired};var R={title:{fontWeight:400,fontSize:14,color:"text.description"}},z=function(e){var n=e.data,i=e.currentBookings,t=(0,x.T_)("booking_history").t,o=n.state;return(0,r.jsxs)(T.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,r.jsx)(d.Z,{variant:"h6",sx:R.title,children:t("booking_status")}),(0,r.jsx)(b.pg,{status:o,currentBookings:i})]})};z.propTypes={data:o.object.isRequired,currentBookings:o.bool},z.defaultProps={currentBookings:!1};var D=function(e){var n=e.data,i=e.currentBookings;return(0,r.jsxs)(p.Z,{sx:_.card,children:[(0,r.jsx)(P,{data:n}),(0,r.jsx)(y.Z,{sx:_.divider}),(0,r.jsx)(z,{data:n,currentBookings:i}),(0,r.jsx)(y.Z,{sx:_.divider}),(0,r.jsx)(b.nK,{data:n,currentBookings:i})]})};D.propTypes={data:o.object.isRequired,currentBookings:o.bool},D.defaultProps={currentBookings:!1};var E=i(88078),O={card:{display:"grid",gridTemplateRows:"1fr auto 1fr",border:"1px solid",borderColor:"grayscale.g300",borderRadius:"12px",padding:1.5,gap:1},divider:{backgroundColor:"grayscale.g200"},topWrapper:{display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:2},bottomWrapper:{display:"flex",justifyContent:"space-between",gridGap:2},columnWrapper:{display:"flex",flexDirection:"column",gap:1},rowWrapper:{display:"flex",width:"50%",gap:1},element:{transform:"none"},button:{transform:"none",borderRadius:"50px"}},H=function(){return(0,r.jsxs)(p.Z,{sx:O.card,children:[(0,r.jsxs)(p.Z,{sx:O.topWrapper,children:[(0,r.jsx)(E.Z,{width:140,height:70,sx:O.element}),(0,r.jsxs)(p.Z,{sx:O.columnWrapper,children:[(0,r.jsx)(E.Z,{width:"60%",height:15,sx:O.element}),(0,r.jsx)(E.Z,{width:"90%",height:30,sx:O.button})]})]}),(0,r.jsx)(y.Z,{sx:O.divider}),(0,r.jsxs)(v.ZP,{container:!0,children:[(0,r.jsx)(v.ZP,{container:!0,item:!0,xs:6,flexDirection:"column",children:(0,r.jsxs)(v.ZP,{container:!0,item:!0,xs:12,children:[(0,r.jsxs)(v.ZP,{container:!0,spacing:1,children:[(0,r.jsx)(v.ZP,{item:!0,xs:6,children:(0,r.jsx)(E.Z,{width:"100%",sx:O.element})}),(0,r.jsx)(v.ZP,{item:!0,xs:6,children:(0,r.jsx)(E.Z,{width:"100%",sx:O.element})})]}),(0,r.jsx)(v.ZP,{item:!0,xs:12,children:(0,r.jsx)(E.Z,{width:"100%",height:18,sx:O.element})})]})}),(0,r.jsx)(v.ZP,{container:!0,item:!0,xs:6,justifyContent:"flex-end",children:(0,r.jsx)(E.Z,{width:"50%",height:"80%",sx:O.element})})]})]})},M=i(29815),N=function(){return(0,r.jsx)(p.Z,{sx:j.container,children:(0,M.Z)(Array(3).keys()).map((function(e){return(0,r.jsx)(H,{},e)}))})},I=function(){var e=(0,x.T_)("booking_history",{keyPrefix:"tabs"}).t,n=(0,x.SL)();return(0,r.jsx)(b.mQ,{tabs:{0:{header:e(n?"current":"current_bookings"),content:(0,r.jsx)(Z,{currentBookings:!0}),icon:n?(0,r.jsx)(C.K5,{}):""},1:{header:e(n?"previous":"previous_bookings"),content:(0,r.jsx)(Z,{}),icon:n?(0,r.jsx)(C.uh,{}):""}}})},A=i(64666),L=i(37645),q=i(6514),F={container:{"& .MuiDialog-paper":{borderRadius:"12px"}},headingWrapper:{display:"flex",gap:"8px",alignItems:"center"},icon:{color:"success.2",fill:"none"},heading:{color:"text.6",fontSize:"20px",fontWeight:500},subtitle:{color:"text.6",fontSize:"16px",fontWeight:400,lineHeight:"19px",marginTop:"10px"}},K=i(828),Y=i(9073),G=i(13562),Q=function(e){var n=function(e){var n=(0,K.Z)((0,Y.O)(),2),i=n[0],r=n[1],o=e[0].uuid,a=(0,k.oz)({uuid:o}),s=a.canRate,c=a.isFetching;return(0,t.useEffect)((function(){s&&!c&&r()}),[s]),{isPopupOpen:i,togglePopup:r,uuid:o}}(e.bookingHistory),i=n.isPopupOpen,o=n.togglePopup,a=n.uuid,s=(0,x.T_)("booking_history").t;return(0,r.jsxs)(A.Z,{open:i,onClose:o,sx:F.container,children:[(0,r.jsxs)(L.Z,{sx:F.headingWrapper,children:[(0,r.jsx)(C.SW,{sx:F.icon}
1),(0,r.jsx)(d.Z,{sx:F.heading,children:s("rating_mobile.title")})]}),(0,r.jsxs)(q.Z,{children:[(0,r.jsx)(d.Z,{sx:F.subtitle,children:s("rating_mobile.subtitle")}),(0,r.jsx)(G.wi,{bookingUuid:a,toggleRateDrawer:o})]})]})};Q.propTypes={bookingHistory:(0,o.oneOfType)([o.object,o.array]).isRequired}}}]);

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.