1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3436],{16638:function(e,t,n){"use strict";var l=n(85893),a=n(67294),r=n(89583),o=n(23988);t.Z=function(e){var t=e.product,n=(0,a.useState)(null),i=n[0],s=n[1],d=(0,a.useState)(null),c=d[0],_=d[1],u=function(e,t){s(e),_(t)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"car-buttons",children:[(0,l.jsx)("button",{className:"btn-phone",onClick:function(){return u(t,"phone")},children:(0,l.jsx)(r.I7T,{})}),(0,l.jsx)("button",{className:"btn-whatsapp",onClick:function(){return u(t,"whatsapp")},children:(0,l.jsx)(r.xpo,{})})]}),i&&(0,l.jsx)(o.Z,{product:i,type:c,onClose:function(){s(null),_(null)}})]})}},23988:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var l=n(85893),a=n(11163),r=n(67294),o=n(89583),i=n(79462),s=n(50053),d=n(35546),c=n(94961);function _(e){var t,n,_=e.product,u=e.type,m=e.onClose,p=(0,a.useRouter)(),h=(p.query,(0,r.useState)({})),x=(h[0],h[1],(0,r.useState)("https://bncarmart.com/product?id=".concat(_._id,"&type=rental"))),v=x[0],j=(x[1],(0,r.useState)(!1)),y=j[0],f=j[1],g=(0,r.useState)(!1),C=g[0],w=g[1],N=(0,r.useState)(null),b=N[0],I=N[1],Z=(0,r.useState)(null===_||void 0===_||null===(t=_.rental_company_details)||void 0===t||null===(n=t.company_contact_details)||void 0===n?void 0:n.phone_number),k=Z[0],B=(Z[1],function(){I(null),w(!1)});return(0,r.useEffect)((function(){if(p.query.application_id&&"sgcalist"===p.query.application_id)localStorage.setItem("application_id",p.query.application_id),f(!0);else{var e=localStorage.getItem("application_id");f("sgcalist"===e)}}),[p]),(0,l.jsxs)("div",{className:d.modalOverlay,children:[(0,l.jsxs)("div",{className:d.modalBox,children:[(0,l.jsxs)("div",{className:d.modalHeader,children:[(0,l.jsx)("h4",{className:d.modalTitle,children:"Contact Seller"}),(0,l.jsxs)("button",{className:d.btnClose,onClick:m,children:[" ",(0,l.jsx)(o.aHS,{})," "]})]}),(0,l.jsxs)("div",{className:d.modalBody,children:["phone"===u&&(0,l.jsx)(l.Fragment,{children:null===k||void 0===k?void 0:k.map((function(e,t){return(0,l.jsxs)("div",{className:d.modalItem,children:[(0,l.jsxs)("a",{href:"tel:".concat(c.Z8).concat(e),className:d.phoneLink,children:[c.Z8," ",e]}),(0,l.jsx)("button",{className:d.btnCall,onClick:function(){return window.location.href="tel:".concat(c.Z8).concat(e)},children:"Call Now"})]},t)}))}),"whatsapp"===u&&(0,l.jsx)(l.Fragment,{children:null===k||void 0===k?void 0:k.map((function(e,t){return(0,l.jsxs)("div",{className:d.modalItem,children:[(0,l.jsxs)("span",{children:[c.Z8," ",e]}),!y&&(0,l.jsx)("button",{className:d.btnCall,onClick:function(){var t=e.replace("+",""),n="Hi, I saw your car on Bncarmart.com and I would like to know more about ".concat(_.product_name," (SGD ").concat(_.product_price,"). Thank You. ").concat(v);window.open("".concat(c.Hm,"?phone=").concat(c.CK).concat(t,"&text=").concat(encodeURIComponent(n)),"_blank")},children:"Chat Now"}),y&&(0,l.jsx)("button",{className:d.btnCall,onClick:function(){return I(e),void w(!0)},children:"Chat Now"})]},t)}))})]})]}),(0,l.jsxs)(i.Z,{open:C,onClose:B,style:{alignContent:"center",zIndex:99999},children:[(0,l.jsx)(i.Z.Header,{children:(0,l.jsx)(i.Z.Title,{children:"Privacy Policy Notice!"})}),(0,l.jsxs)(i.Z.Body,{children:[(0,l.jsxs)("p",{children:['"You are about to open WhatsApp and start a conversation with ',c.Z8,b,'. Would you like to proceed?"']}),(0,l.jsx)("p",{style:{fontStyle:"italic",fontWeight:"bold"},children:"Note: By tapping 'Continue', WhatsApp will open, and you can send a message to this number. No personal data is shared by this app."})]}),(0,l.jsxs)(i.Z.Footer,{children:[(0,l.jsx)(s.Z,{onClick:function(){window.open("".concat(c.q5,"?phone=").concat(c.CK).concat(b.replace("+",""),"&text=Hi, I saw your car on Bncarmart.com and I would like to know more about ").concat(_.product_name,". Thank You. ").concat(v))},appearance:"primary",style:{backgroundColor:"green"},children:"Continue"}),(0,l.jsx)(s.Z,{onClick:B,appearance:"subtle",children:"Cancel"})]})]})]})}},55240:function(e,t,n){"use strict";var l=n(85893),a=n(94961),r=n(1946);t.Z=function(){return(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"10vh",flexDirection:"column"},children:[(0,l.jsx)("span",{style:{fontSize:"20px",fontWeight:"bold",color:a.Ul.primary},children:"Sorry! No results found."}),(0,l.jsx)(r.Z,{bottom:16}),(0,l.jsx)("span",{style:{fontSize:"16px"},children:"We researched far and wide and couldn't find any results matching your search."}),(0,l.jsx)("span",{style:{fontSize:"16px"},children:"Please try different filter."})]})}},18865:function(e,t,n){"use strict";var l=n(85893),a=(n(67294),n(35574),n(2585)),r=n(25195),o=n(6226),i=n(5434),s=n(1946),d=n(94511),c=n(11163),_=n(92042),u=n(30381),m=n.n(u),p=n(16638),h=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.Z=function(e){var t,n,u=e.item,x=function(e){c.default.push({pathname:"/product",query:{id:e,type:"rental"}})},v=function(e){e.stopPropagation(),c.default.push({pathname:"/car-rental-merchant",query:{id:u.rental_company_details._id}})},j=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"desktop";return(0,l.jsxs)("div",{className:_.rentalCarInfo,onClick:function(){return x(u._id)},children:["desktop"===t&&(0,l.jsx)("div",{className:_.mediumTitle,children:u.product_name}),(0,l.jsxs)(r.Z,{gutter:[8,4],children:[(0,l.jsx)(o.Z,{xs:12,sm:12,md:12,children:(0,l.jsxs)("div",{className:_.rentalInfoItem,children:[(0,l.jsx)("span",{className:_.customTextIcon,children:"Min"}),(0,l.jsx)("small",{style:{marginLeft:"5px"},children:u.product_rental_requirements.allowed_21yr_old?"Below 21yr old allowed":"21yr old and above"})]})}),(0,l.jsx)(o.Z,{xs:12,sm:12,md:12,children:(0,l.jsxs)("div",{className:_.rentalInfoItem,children:[(0,l.jsx)("span",{className:_.customTextIcon,children:"Exp"}),(0,l.jsx)("small",{style:{marginLeft:"5px"},children:u.product_rental_requirements.allowed_p_plate?"P-plate is allowed":"P-plate is not allowed"})]})}),(0,l.jsx)(o.Z,{xs:12,sm:12,md:12,children:(0,l.jsxs)("div",{className:_.rentalInfoItem,children:[(0,l.jsx)("div",{className:_.customTextIconWrapper,children:(0,l.jsx)(a.Zgy,{})}),(0,l.jsx)("small",{style:{marginLeft:"5px"},children:u.product_transmission})]})}),(0,l.jsx)(o.Z,{xs:12,sm:12,md:12,children:(0,l.jsxs)("div",{className:_.rentalInfoItem,children:[(0,l.jsx)("div",{className:_.customTextIconWrapper,children:(0,l.jsx)(i.Cwk,{})}),(0,l.jsx)("small",{style:{marginLeft:"5px"},children:u.fuel_type})]})}),(0,l.jsx)(o.Z,{xs:12,sm:12,md:12,children:(0,l.jsxs)("div",{className:_.rentalInfoItem,children:[(0,l.jsx)("div",{className:_.customTextIconWrapper,children:(0,l.jsx)(i.QBv,{size:14})}),(0,l.jsx)("small",{style:{marginLeft:"5px"},children:u.product_rental_requirements.allowed_drive_to_malaysia?"Drive to Malaysia is allowed":"Drive to Malaysia is not allowed"})]})}),(0,l.jsx)(o.Z,{xs:12,sm:12,md:12,children:(0,l.jsxs)("div",{className:_.rentalInfoItem,children:[(0,l.jsx)("div",{className:_.customTextIconWrapper,children:(0,l.jsx)(a.BUm,{})}),(0,l.jsxs)("small",{style:{marginLeft:"5px"},children:[" ",u.product_rental_requirements.zero_deposit?"Zero deposit":"Deposit is required"]})]})})]}),"desktop"===t&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.Z,{bottom:16}),(0,l.jsx)(r.Z,{justify:"center",align:"center",children:(0,l.jsxs)(o.Z,{xs:24,children:[(0,l.jsx)(i.vcr,{}),(0,l.jsxs)("small",{style:{marginLeft:"5px"},children:[u.rental_company_details.company_location.street,","," ",u.rental_company_details.company_location.city," ,"," ",u.rental_company_details.company_location.region_name]})]})})]}),(0,l.jsx)(r.Z,{children:(0,l.jsx)(o.Z,{xs:24,lg:24,children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:10},children:[(0,l.jsx)(i.nXc,{size:14,color:"gray"}),(0,l.jsx)("small",{style:{color:"gray",marginLeft:8},children:"Posted on ".concat(m()(null===u||void 0===u?void 0:u.date_created).format("DD MMM YYYY"))})]})})}),"small"===t&&(0,l.jsx)("p",{onClick:v,className:_.companyName,style:{marginTop:0},children:null===u||void 0===u||null===(e=u.rental_company_details)||void 0===e?void 0:e.company_name})]})},y=function(){var e,t,n,a,r,o,i,c,m,j,y,f,g,C,w,N,b,I,Z,k,B=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"desktop";return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{onClick:function(){return x(u._id)},children:["short_term"===u.product_rental_type||"all"===u.product_rental_type?(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:"10px"},children:[(null===u||void 0===u||null===(e=u.product_short_term_details)||void 0===e?void 0:e.daily)>0?(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,l.jsx)("span",{style:{fontWeight:"600",color:"green",fontSize:"16px"},children:(null===u||void 0===u||null===(t=u.product_short_term_details)||void 0===t?void 0:t.daily)>0?"$ ".concat((0,d._)(null===u||void 0===u||null===(n=u.product_short_term_details)||void 0===n?void 0:n.daily)):"-"}),"\xa0 ",(0,l.jsx)("span",{children:" - Daily"})]}):null,(null===u||void 0===u||null===(a=u.product_short_term_details)||void 0===a?void 0:a.weekend)>0?(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,l.jsx)("span",{style:{fontWeight:"600",color:"green",fontSize:"16px"},children:(null===u||void 0===u||null===(r=u.product_short_term_details)||void 0===r?void 0:r.weekend)>0?"$ ".concat((0,d._)(null===u||void 0===u||null===(o=u.product_short_term_details)||void 0===o?void 0:o.weekend)):"-"}),"\xa0 ",(0,l.jsx)("span",{children:" - Weekend"})]}):null,(null===u||void 0===u||null===(i=u.product_short_term_details)||void 0===i?void 0:i.weekly)>0?(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,l.jsx)("span",{style:{fontWeight:"600",color:"green",fontSize:"16px"},children:(null===u||void 0===u||null===(c=u.product_short_term_details)||void 0===c?void 0:c.weekly)>0?"$ ".concat((0,d._)(null===u||void 0===u||null===(m=u.product_short_term_details)||void 0===m?void 0:m.weekly)):"-"}),"\xa0",(0,l.jsx)("span",{children:" - Weekly"})]}):null,(null===u||void 0===u||null===(j=u.product_short_term_details)||void 0===j?void 0:j.monthly)>0?(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,l.jsx)("span",{style:{fontWeight:"600",color:"green",fontSize:"16px"},children:(null===u||void 0===u||null===(y=u.product_short_term_details)||void 0===y?void 0:y.monthly)>0?"$ ".concat((0,d._)(null===u||void 0===u||null===(f=u.product_short_term_details)||void 0===f?void 0:f.monthly)):"-"}),"\xa0",(0,l.jsx)("span",{children:"- Monthly"})]}):null]}):null,"long_term"===u.product_rental_type||"all"===u.product_rental_type?(0,l.jsxs)("div",{style:{marginBottom:"10px"},children:[u.product_long_term_details.one_yr>0?(0,l.jsxs)("div",{className:_.label,children:[(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{style:{fontWeight:"600",fontSize:"16px",color:"green"},children:["$"," ",(0,d._)(u.product_long_term_details.one_yr)]}),(0,l.jsx)("span",{children:"/mth"})]}),(0,l.jsx)("span",{children:" - 1 year Lease"})]}):null,(0,l.jsx)(s.Z,{bottom:4}),u.product_long_term_details.two_yr>0?(0,l.jsxs)("div",{className:_.label,children:[(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{style:{fontWeight:"600",color:"green",fontSize:"16px"},children:["$"," ",(0,d._)(u.product_long_term_details.two_yr)," "]}),(0,l.jsx)("span",{children:"/mth"})]}),(0,l.jsx)("span",{children:" - 2 year Lease"})]}):null,(0,l.jsx)(s.Z,{bottom:4}),u.product_long_term_details.three_yr>0?(0,l.jsxs)("div",{className:_.label,children:[(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{style:{fontWeight:"600",color:"green",fontSize:"16px"},children:["$"," ",(0,d._)(u.product_long_term_details.three_yr)," "]}),(0,l.jsx)("span",{children:"/mth"})]}),(0,l.jsx)("span",{children:" - 3 year Lease"})]}):null]}):null,"private_hire"===u.product_rental_type||"all"===u.product_rental_type?(0,l.jsxs)("div",{className:"rental-private-hire",style:{marginBottom:"10px"},children:[u.product_hire_rental_details.weekly>0?(0,l.jsxs)("p",{style:{marginBottom:"0"},children:[(0,l.jsxs)("span",{style:{fontSize:18,fontWeight:"600",color:"green"},children:["$"," ",(0,d._)(u.product_hire_rental_details.weekly)," "]}),(0,l.jsx)("span",{children:"/week"})]}):null,u.product_hire_rental_details.minimum_months>0?(0,l.jsxs)("div",{children:["Min.",(0,l.jsxs)("span",{style:{fontWeight:"600",color:"#555",fontSize:"14px"},children:[" ",u.product_hire_rental_details.minimum_months," "]}),"months"]}):null]}):null,"wedding_car"===u.product_rental_type||"all"===u.product_rental_type?(0,l.jsxs)("div",{className:"rental-wedding-car",children:[(null===(g=u.product_wedding_rental_details)||void 0===g?void 0:g.six_hours)>0?(0,l.jsxs)("div",{className:"rental-hour",children:[(0,l.jsxs)("span",{className:_.value,style:{fontWeight:"600",color:"green",fontSize:"16px"},children:[h(null===(C=u.product_wedding_rental_details)||void 0===C?void 0:C.six_hours),(null===(w=u.product_wedding_rental_details)||void 0===w?void 0:w.six_hours)?" $ ".concat((0,d._)(null===(N=u.product_wedding_rental_details)||void 0===N?void 0:N.six_hours)):"-"]}),"- ",(0,l.jsx)("span",{className:_.label,children:"6 Hours"})]}):null,(null===(b=u.product_wedding_rental_details)||void 0===b?void 0:b.t
1welve_hours)>0?(0,l.jsxs)("div",{className:"rental-hour",children:[(0,l.jsx)("span",{className:_.value,style:{fontWeight:"600",color:"green",fontSize:"16px"},children:(null===(I=u.product_wedding_rental_details)||void 0===I?void 0:I.twelve_hours)?"$ ".concat((0,d._)(null===(Z=u.product_wedding_rental_details)||void 0===Z?void 0:Z.twelve_hours)):"-"}),"- ",(0,l.jsx)("span",{className:_.label,children:"12 Hours"})]}):null]}):null,"desktop"===B&&(0,l.jsx)("p",{onClick:v,className:_.companyName,children:null===u||void 0===u||null===(k=u.rental_company_details)||void 0===k?void 0:k.company_name})]}),(0,l.jsx)("div",{className:_.contactButtonWrapper,children:(0,l.jsx)(p.Z,{product:u})})]})};return(0,l.jsx)("div",{className:_.rentalListCardContainer,children:(0,l.jsxs)(r.Z,{gutter:[16,2],children:[(0,l.jsx)(o.Z,{xs:24,sm:0,md:0,onClick:function(){return x(u._id)},children:(0,l.jsx)("div",{className:_.titleMobile,children:(0,l.jsx)("span",{children:u.product_name})})}),(0,l.jsxs)(o.Z,{xs:9,sm:8,md:6,children:[(0,l.jsx)("div",{onClick:function(){return x(u._id)},children:(null===u||void 0===u||null===(t=u.product_image_urls)||void 0===t?void 0:t.length)>0?(0,l.jsx)("img",{src:null===(n=null===u||void 0===u?void 0:u.product_image_urls[0])||void 0===n?void 0:n.metadata.image_url,alt:"Picture of the author",className:_.image}):(0,l.jsx)("img",{src:"/img_error.png",alt:"Picture of the author",className:_.image})}),(0,l.jsx)("div",{style:{marginTop:10},children:(0,l.jsx)(r.Z,{children:(0,l.jsx)(o.Z,{xs:0,sm:24,md:0,children:y()})})})]}),(0,l.jsx)(o.Z,{xs:0,sm:16,md:11,children:j()}),(0,l.jsx)(o.Z,{xs:0,sm:0,md:7,children:y()}),(0,l.jsx)(o.Z,{xs:15,sm:0,md:0,children:y("small")}),(0,l.jsxs)(o.Z,{xs:24,sm:0,children:[j("small"),(0,l.jsx)(s.Z,{bottom:10}),(0,l.jsx)(p.Z,{product:u})]})]})})}},94511:function(e,t,n){"use strict";function l(e){return Number.parseInt(e).toLocaleString()}n.d(t,{_:function(){return l}})},35574:function(e,t){"use strict";t.Z={blueJay:"#0047AB",white:"#fff"}},92042:function(e){e.exports={rentalListCardContainer:"CarRental_rentalListCardContainer__Geq8Y",paginationContainer:"CarRental_paginationContainer___yxZQ",filterPanelContainer:"CarRental_filterPanelContainer__407Ac",filterTitle:"CarRental_filterTitle__pdrOY",filterHeaders:"CarRental_filterHeaders__h3_BW",headerIcon:"CarRental_headerIcon__ql2wJ",active:"CarRental_active__SJSb5",filterBadgeContainer:"CarRental_filterBadgeContainer__CzdMt",filterBadge:"CarRental_filterBadge__rGMO8",filterBody:"CarRental_filterBody__qOOPK",expand:"CarRental_expand__s8WNM",rentalCarInfo:"CarRental_rentalCarInfo__FofPb",rentalInfoItem:"CarRental_rentalInfoItem__XpjWx",customTextIcon:"CarRental_customTextIcon__Ngmgz",customTextIconWrapper:"CarRental_customTextIconWrapper__rKNnw",mediumTitle:"CarRental_mediumTitle__ilz_1",titleMobile:"CarRental_titleMobile__OoIDC",companyName:"CarRental_companyName__Fekmo",image:"CarRental_image__d554v",contactButtonWrapper:"CarRental_contactButtonWrapper__bwngc",label:"CarRental_label__rxKlo",value:"CarRental_value__Vk_LY",adContainer:"CarRental_adContainer__jMHCu"}},35546:function(e){e.exports={carButtons:"ContactModal_carButtons__zXBS_",btnPhone:"ContactModal_btnPhone__dZzts",btnWhatsapp:"ContactModal_btnWhatsapp__xLtKs",modalOverlay:"ContactModal_modalOverlay__IOZls",modalBox:"ContactModal_modalBox__sDEmE",modalHeader:"ContactModal_modalHeader__DosHQ",btnClose:"ContactModal_btnClose__87ouA",modalBody:"ContactModal_modalBody__QAvyR",modalItem:"ContactModal_modalItem__npPBU",contactNumber:"ContactModal_contactNumber__mFLzl",btnCall:"ContactModal_btnCall__l_Af_",modalTitle:"ContactModal_modalTitle__4u1ub"}},16354:function(e){e.exports={container:"FilterV2_container__ZCAXC",filterSearchWrapper:"FilterV2_filterSearchWrapper__oiqwt",header:"FilterV2_header__BqMrA",findCar:"FilterV2_findCar__hZStH",pill:"FilterV2_pill__80_7_",pillSelected:"FilterV2_pillSelected__0ubbR",gradient:"FilterV2_gradient__zktTI",quickSearchBtn:"FilterV2_quickSearchBtn__6C5i1",searchBtn:"FilterV2_searchBtn__udnc2",centerBtn:"FilterV2_centerBtn__f2Jrv",homeSearchBtn:"FilterV2_homeSearchBtn__PPNUM",resetBtn:"FilterV2_resetBtn__MfDFk",modelWrapper:"FilterV2_modelWrapper__Q3NuM",modelDropdown:"FilterV2_modelDropdown__Bgs4u",v:"FilterV2_v__iX0sX",modelDropdownItem:"FilterV2_modelDropdownItem__hBcru",itemText1:"FilterV2_itemText1__wVqhJ",topFilter:"FilterV2_topFilter__bRQIR"}}}]);
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.