| Current Path : /home/users/unlimited/www/ondemand.codeskitter.site/build/static/js/ |
| Current File : /home/users/unlimited/www/ondemand.codeskitter.site/build/static/js/195.ffa81c34.chunk.js |
"use strict";(self.webpackChunkproject=self.webpackChunkproject||[]).push([[195],{71195:(e,s,i)=>{i.r(s),i.d(s,{default:()=>V});var a=i(65043),l=i(15422),n=i(23768),r=i(25581),t=i(79456),o=i(90611),d=i(19974),c=i(59853),h=i(81494),v=i(46941),m=i(89086),x=i(74975),g=i(50050),j=i(78185),u=i(70579);const p=e=>{let{testimonialSect:s}=e;return(0,u.jsxs)("div",{className:"textWrapper",children:[(0,u.jsx)("span",{className:"heading",children:(0,u.jsx)(j.A,{width:200,height:30})}),(0,u.jsxs)("span",{className:"para",children:[(0,u.jsx)(j.A,{width:250,height:20}),(0,u.jsx)(j.A,{width:250,height:20}),(0,u.jsx)(j.A,{width:250,height:20})]}),s&&(0,u.jsxs)("div",{className:"navigationBtns",children:[(0,u.jsx)(j.A,{width:40,height:40}),(0,u.jsx)(j.A,{width:40,height:40})]})]})},w=()=>(0,u.jsx)("section",{className:"ourServices",children:(0,u.jsxs)("div",{className:"container custom-Container",children:[(0,u.jsx)(p,{}),(0,u.jsx)("div",{className:"ourSericeSkeletonWrapper",children:Array.from({length:6}).map(((e,s)=>(0,u.jsxs)("div",{className:"ourSericeSkeleton",children:[(0,u.jsx)(j.A,{className:"cardSkeleton"}),(0,u.jsx)(j.A,{className:"imgSkeleton"}),(0,u.jsx)(j.A,{className:"textSkeleton"})]},s)))})]})});var A=i(95263);const N=e=>{var s,i,l,n;let{landingPage:r,loading:t}=e;const o=(0,a.useRef)(null),d=(0,a.useCallback)((()=>{o.current&&o.current.swiper.slidePrev()}),[]),c=(0,a.useCallback)((()=>{o.current&&o.current.swiper.slideNext()}),[]);return t?(0,u.jsx)(w,{}):(null===r||void 0===r||null===(s=r.categories)||void 0===s?void 0:s.length)>0&&(0,u.jsx)("section",{className:"ourServices",children:(0,u.jsxs)("div",{className:"container custom-Container",children:[(0,u.jsxs)("div",{className:"textWrapper",children:[(0,u.jsx)("span",{className:"heading",children:null===r||void 0===r?void 0:r.category_section_title}),(0,u.jsx)("span",{className:"para",children:null===r||void 0===r?void 0:r.category_section_description})]}),(0,u.jsxs)("div",{className:"servicesCards",children:[(0,u.jsx)(x.RC,{ref:o,slidesPerView:3,loop:(null===(i=r.categories)||void 0===i?void 0:i.length)>6,spaceBetween:30,modules:[g.Vx,g.dK],className:"testiSwiper",breakpoints:{0:{slidesPerView:1},375:{slidesPerView:1},576:{slidesPerView:2},768:{slidesPerView:3},992:{slidesPerView:4},1200:{slidesPerView:4},1400:{slidesPerView:6}},children:null===r||void 0===r||null===(l=r.categories)||void 0===l?void 0:l.map(((e,s)=>(0,u.jsx)(x.qr,{children:(0,u.jsxs)("div",{className:"card",children:[(0,u.jsx)("div",{className:"imgDiv",children:(0,u.jsx)("img",{src:e.image,alt:"servicesImg",onError:v.jM})}),(0,u.jsx)("div",{children:(0,u.jsx)("span",{className:"serviceName",children:e.name})})]})},e.id)))}),(null===r||void 0===r||null===(n=r.categories)||void 0===n?void 0:n.length)>6&&(0,u.jsxs)("div",{className:"navigationBtns",children:[(0,u.jsx)("div",{className:"swiper-button-prev",onClick:d,children:(0,u.jsx)(A.ed2,{size:20})}),(0,u.jsx)("div",{className:"swiper-button-next",onClick:c,children:(0,u.jsx)(A.FDZ,{size:20})})]})]})]})})};var f=i(85369);const _=()=>(0,u.jsxs)("div",{className:"row",children:[(0,u.jsx)("div",{className:"col-lg-3 textDiv",children:(0,u.jsx)(p,{testimonialSect:!0})}),(0,u.jsx)("div",{className:"col-lg-9 testimonialsCardSkeltonWrapper",children:(0,u.jsx)("div",{className:"row",children:Array.from({length:3}).map(((e,s)=>(0,u.jsx)("div",{className:"col-lg-4",children:(0,u.jsxs)("div",{className:"testimonialsCardSkeleton testimonialsCard",children:[(0,u.jsx)("div",{className:"quotesImg",children:(0,u.jsx)(j.A,{width:40,height:50})}),(0,u.jsxs)("div",{children:[(0,u.jsx)(j.A,{width:"100%",height:20}),(0,u.jsx)(j.A,{width:"100%",height:20}),(0,u.jsx)(j.A,{width:"100%",height:20}),(0,u.jsx)(j.A,{width:"100%",height:20})]}),(0,u.jsxs)("div",{className:"profileWrapper",children:[(0,u.jsxs)("div",{className:"profile",children:[(0,u.jsx)("div",{children:(0,u.jsx)(j.A,{width:70,height:80})}),(0,u.jsxs)("div",{className:"text",children:[(0,u.jsx)(j.A,{width:80,height:20}),(0,u.jsx)(j.A,{width:70,height:20})]})]}),(0,u.jsxs)("div",{className:"ratingDiv",children:[(0,u.jsx)(j.A,{width:40,height:40}),(0,u.jsx)(j.A,{width:40,height:40})]})]})]})},s)))})})]}),b=e=>{var s,i,l;let{landingPage:n,loading:r}=e;const t=(0,a.useRef)(null),o=(0,a.useCallback)((()=>{t.current&&t.current.swiper.slidePrev()}),[]),d=(0,a.useCallback)((()=>{t.current&&t.current.swiper.slideNext()}),[]);return r?(0,u.jsx)(_,{}):(null===n||void 0===n||null===(s=n.ratings)||void 0===s?void 0:s.length)>0&&(0,u.jsx)("section",{className:"testimonials",children:(0,u.jsx)("div",{className:"container custom-Container",children:(0,u.jsxs)("div",{className:"row",children:[(0,u.jsx)("div",{className:"col-lg-3 textDiv",children:(0,u.jsxs)("div",{className:"textWrapper",children:[(0,u.jsx)("span",{className:"heading",children:null===n||void 0===n?void 0:n.rating_section_title}),(0,u.jsx)("span",{className:"para",children:null===n||void 0===n?void 0:n.rating_section_description}),(null===n||void 0===n||null===(i=n.ratings)||void 0===i?void 0:i.length)>3&&(0,u.jsxs)("div",{className:"navigationBtns",children:[(0,u.jsx)("div",{className:"swiper-button-prev",onClick:o,children:(0,u.jsx)(A.ed2,{size:20})}),(0,u.jsx)("div",{className:"swiper-button-next",onClick:d,children:(0,u.jsx)(A.FDZ,{size:20})})]})]})}),(0,u.jsx)("div",{className:"col-lg-9",children:(0,u.jsx)("div",{className:"testimonialSwiper",children:(0,u.jsx)(x.RC,{ref:t,slidesPerView:3,loop:(null===n||void 0===n||null===(l=n.ratings)||void 0===l?void 0:l.length)>3,spaceBetween:30,className:"testiSwiper",breakpoints:{0:{slidesPerView:1},375:{slidesPerView:1},576:{slidesPerView:1.5},768:{slidesPerView:2},992:{slidesPerView:2.5},1200:{slidesPerView:2},1400:{slidesPerView:3}},children:null===n||void 0===n?void 0:n.ratings.map(((e,s)=>(0,u.jsx)(x.qr,{children:(0,u.jsxs)("div",{className:"card testimonialsCard",children:[(0,u.jsx)("div",{className:"quotesImg",children:(0,u.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAE7SURBVHgB7ZZLccMwFEVvMwVQCGLQQBCEMKgZdIogLgKXgSmUgcPAZpAwcBgk0siLRLn6vXiRhc7M23h835wnfyQgnw9TjanB1B/WQZvqTB1zbrYCe1OzqctSPZ5Dww10uakoO0/gWRFFBJIiXSAgFdHgQ0VF+kjAVosyvhL9ZhbqIje3cO9MCduIwAC3Ug98BwIj3PMtRcF9EWyoXWlogJw+ILEtDR0hWwksOba6zeqhBGywMRVqwFdDioJwsBHr/bQAPticCilwew05A+n3HwtsEH6DJ8hhPQ9IiGhy/WTqDLkE++lNKZFPcBEpKnA9Otg7uL2dqieNfiAX2eNR5hc3Q8d2RMnn3Gb2u/sg7KMp3cRSiPptsD4vIyKiivhUEZ8q4lNFfKqIzxvyj4R2C885tYUORoxp6YsriOy4fAt5iycAAAAASUVORK5CYII=",alt:"quotesIcon",onError:v.jM})}),(0,u.jsx)("div",{children:(0,u.jsx)("span",{className:"comment",children:(0,v.xv)(e.comment,80)})}),(0,u.jsxs)("div",{className:"profileWrapper",children:[(0,u.jsxs)("div",{className:"profile",children:[(0,u.jsx)("div",{children:(0,u.jsx)("img",{src:e.profile_image,alt:"profile",onError:v.jM})}),(0,u.jsxs)("div",{className:"text",children:[(0,u.jsx)("span",{children:(0,v.xv)(e.user_name,15)}),(0,u.jsx)("span",{children:(0,v.xv)(e.service_name,15)})]})]}),(0,u.jsxs)("div",{className:"ratingDiv",children:[(0,u.jsx)("span",{children:e.rating}),(0,u.jsx)("span",{children:(0,u.jsx)(f.gt3,{})})]})]})]})},e.id)))})})})]})})})};var y=i(92564);const k=()=>Array.from({length:6}).map(((e,s)=>(0,u.jsx)("div",{children:(0,u.jsx)(j.A,{width:"100%",height:80})},s)));var P=i(36171);const C=e=>{let{landingPage:s}=e;const[i,l]=(0,a.useState)(null),[n,r]=(0,a.useState)(!1),[t,o]=(0,a.useState)([]);return(0,a.useEffect)((()=>{(async()=>{r(!0);try{const e=await P.A.get_Faqs({}),{data:s}=e.data;o(s)}catch(e){console.error("Error fetching data:",e)}finally{r(!1)}})()}),[]),(0,u.jsx)(u.Fragment,{children:(null===t||void 0===t?void 0:t.length)>0&&(0,u.jsx)("section",{className:"faqsSect",children:(0,u.jsxs)("div",{className:"container cutom-container",children:[n?(0,u.jsx)(p,{}):(0,u.jsxs)("div",{className:"textWrapper",children:[(0,u.jsx)("span",{className:"heading",children:null===s||void 0===s?void 0:s.faq_section_title}),(0,u.jsx)("span",{className:"para",children:null===s||void 0===s?void 0:s.faq_section_description})]}),(0,u.jsx)("div",{className:"faqsDiv",children:n?(0,u.jsx)(k,{}):(0,u.jsx)(y.A,{defaultActiveKey:"0",children:(0,u.jsx)("div",{className:"row",children:t.map((e=>(0,u.jsx)("div",{className:"col-md-6 mb-4",children:(0,u.jsxs)(y.A.Item,{eventKey:e.id,children:[(0,u.jsx)(y.A.Header,{onClick:()=>{return s=e.id,void l(i===s?null:s);var s},children:e.question}),(0,u.jsx)(y.A.Body,{children:e.answer})]})},e.id)))})})})]})})})};var S=i(128);const E=e=>{let{landingPage:s}=e;return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("div",{className:"how-it-works",children:(0,u.jsxs)("div",{className:"container custom-Container",children:[(0,u.jsxs)("div",{className:"how-title",children:[(0,u.jsx)("h2",{children:null===s||void 0===s?void 0:s.process_flow_title}),(0,u.jsx)("p",{children:null===s||void 0===s?void 0:s.process_flow_description})]}),(0,u.jsx)("div",{className:"row",children:(null===s||void 0===s?void 0:s.process_flow_data)&&(null===s||void 0===s?void 0:s.process_flow_data.map((e=>(0,u.jsx)("div",{className:"col-md-3 col-12",children:(0,u.jsx)("div",{className:"card",children:(0,u.jsxs)("div",{className:"how-it-works-card-body",children:[(0,u.jsxs)("div",{className:"card-image",children:[(0,u.jsx)("img",{src:null===e||void 0===e?void 0:e.image,alt:"works",onError:v.jM}),(0,u.jsx)("div",{className:"card-numbers",children:(0,u.jsx)("p",{children:null===e||void 0===e?void 0:e.id})})]}),(0,u.jsx)("h5",{className:"how-it-works-card-title",children:(0,u.jsx)("i",{className:"fas fa-map-marker-alt"})}),(0,u.jsx)("p",{className:"how-it-works-card-text",children:null===e||void 0===e?void 0:e.title}),(0,u.jsx)("p",{className:"how-it-works-card-content",children:null===e||void 0===e?void 0:e.description})]})})},e.id))))})]})})})};var R=i(44978);const V=()=>{var e,s;const i=(0,a.useRef)(null),x=(0,t.wA)(),g=(0,t.d4)((e=>{var s;return null===(s=e.Settings)||void 0===s?void 0:s.settings})),[j,p]=(0,a.useState)([]),[w,A]=(0,a.useState)(!1),{modal:f}=(0,t.d4)((e=>e.Settings)),_=(null===g||void 0===g||g.web_settings,null===(e=m.M.getState())||void 0===e||null===(s=e.Location)||void 0===s?void 0:s.IsBrowserSupported);(0,a.useEffect)((()=>{"Notification"in window?"granted"!==Notification.permission&&Notification.requestPermission():console.log("This browser does not support desktop notifications.");/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?x((0,h.XR)(!1)):navigator.geolocation?navigator.geolocation.getCurrentPosition((()=>{x((0,h.XR)(!0))}),(e=>{console.error("Geolocation error:",e),x((0,h.XR)(!0))})):(console.log("Geolocation not supported"),x((0,h.XR)(!0)))}),[x]);const y=async()=>{var e;const s=null===(e=i.current)||void 0===e?void 0:e.value;if(s)try{var a;const e=await P.A.getPlacesForWebApi({address:s}),i=null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.data.results[0];if(i){const{lat:e,lng:s}=i.geometry.location;x((0,h.tP)(e)),x((0,h.Uv)(s)),x((0,S.mi)(!0))}else console.log("No results found")}catch(l){console.log("error",l)}};(0,a.useEffect)((()=>{(()=>{if(window.google)return Promise.resolve();const e=`${r.Pe}?key=${r.cu}&libraries=places&v=weekly`;return(0,r.OM)(e)})().then((()=>{i.current&&window.google&&window.google.maps&&new window.google.maps.places.Autocomplete(i.current,{fields:["address_component","geometry"]}).addListener("place_changed",(()=>{}))}))}),[]);return(0,a.useEffect)((()=>{(async()=>{A(!0);try{const e=await P.A.getWebLandingPageApi();p(e.data),A(!1)}catch(e){A(!1),console.error(e)}})()}),[]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"startpage",children:[(0,u.jsx)("div",{className:"header-main",children:(0,u.jsx)("div",{className:"container custom-Container",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsx)("div",{className:"edemand-logo",children:(0,u.jsx)("img",{src:null===j||void 0===j?void 0:j.landing_page_logo,alt:"logo"})})})})}),(0,u.jsx)("div",{className:"edemand-content",children:(0,u.jsx)("div",{className:"container custom-Container",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"edemand-center-data",children:[(0,u.jsx)("div",{className:"edemand-title",children:(0,u.jsx)("h1",{children:null===j||void 0===j?void 0:j.landing_page_title})}),(0,u.jsxs)("div",{className:"edemand-input",children:[(0,u.jsx)(d.A,{}),(0,u.jsx)("input",{type:"text",placeholder:"Enter Location, Area or City Name etc...",ref:i,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),y())}}),(0,u.jsx)("div",{className:"edemand-current-location-get",children:_&&(0,u.jsxs)("button",{className:"btn",onClick:()=>{navigator.geolocation?navigator.geolocation.getCurrentPosition((async e=>{x((0,h.tP)(e.coords.latitude)),x((0,h.Uv)(e.coords.longitude)),x((0,S.mi)(!0)),await(0,v.Vl)(e.coords.latitude,e.coords.longitude).then((e=>{x((0,h._z)(e))}))}),(e=>{e.code===e.PERMISSION_DENIED?n.Ay.error((0,R.t)("enable_location")):(console.error(e.message),n.Ay.error("Error getting location: "+e.message))}),{enableHighAccuracy:!0,timeout:1e4}):n.Ay.error((0,R.t)("geolocation_not_supported"))},children:[" ",(0,u.jsx)(l.A,{className:"location-icon"}),(0,u.jsx)("span",{children:"locate me"})]})}),(0,u.jsx)("div",{className:"edemand-search",children:(0,u.jsx)("button",{className:"btn btn-theme",onClick:y,children:"Search"})})]})]})})})}),(0,u.jsx)("div",{className:"background_image_main",children:(0,u.jsx)("div",{className:"edemand-backgroung-image",style:{backgroundImage:`url(${null===j||void 0===j?void 0:j.landing_page_backgroud_image})`}})}),1===(null===j||void 0===j?void 0:j.category_section_status)?(0,u.jsx)(N,{landingPage:j,loading:w}):null,1===(null===j||void 0===j?void 0:j.rating_section_status)?(0,u.jsx)(b,{landingPage:j,loading:w}):null,1===(null===j||void 0===j?void 0:j.process_flow_status)?(0,u.jsx)(E,{landingPage:j,loading:w}):null,1===(null===j||void 0===j?void 0:j.faq_section_status)?(0,u.jsx)(C,{landingPage:j,loading:w}):null,(0,u.jsx)(c.A,{})]}),(0,u.jsx)("div",{className:"container ",children:f?(0,u.jsx)(o.A,{redirect:!0}):null})]})}},90611:(e,s,i)=>{i.d(s,{A:()=>b});var a=i(65043),l=i(96446),n=i(42518),r=i(85865),t=i(71245),o=i(36171),d=i(79456),c=i(81494),h=i(40984),v=i(46941),m=i(23768),x=i(17392),g=i(39336),j=i(33438),u=i(73216),p=i(69369),w=i(44978),A=i(128),N=i(95367),f=i(25581),_=i(70579);const b=e=>{let{redirect:s}=e;const i=(0,u.Zp)(),{modal:b}=(0,d.d4)((e=>e.Settings)),y=(0,d.d4)((e=>e.Location)),k=(0,d.wA)();(0,a.useEffect)((()=>{}),[y]);const P=()=>{k((0,A.mi)(!1)),k((0,c.eo)(!1))},C=(0,p.u)();return(0,_.jsx)(l.A,{children:(0,_.jsx)(t.A,{open:b,onClose:()=>P(),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,_.jsxs)(l.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",md:"60%"},bgcolor:"background.paper",boxShadow:24,borderRadius:"var(--global-border-radius)",p:2},children:[(0,_.jsxs)(l.A,{mt:1,display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,_.jsx)(r.A,{variant:"h6",color:C.palette.text.primary,children:(0,w.t)("select_map_location")}),(0,_.jsx)(x.A,{onClick:()=>P(),children:(0,_.jsx)(j.A,{})})]}),(0,_.jsx)(g.A,{sx:{width:"100%",mb:3}}),(0,_.jsx)(N.A,{onSelectLocation:e=>{k((0,c.tP)(null===e||void 0===e?void 0:e.lat)),k((0,c.Uv)(null===e||void 0===e?void 0:e.lng)),k((0,c._z)(null===e||void 0===e?void 0:e.formatted_address))},apiKey:f.cu,isLocationPass:!0,locationlat:y.lat,locationlng:y.lng,modal:b}),(0,_.jsx)(n.A,{fullWidth:!0,sx:{mt:2},variant:"contained",color:"primary",onClick:e=>(async()=>{try{const e=await o.A.providerAvailable({latitude:y.lat,longitude:y.lng,isCheckout:0});if(!1===(null===e||void 0===e?void 0:e.error)){k((0,h.jx)(!0)),k((0,c.tP)(y.lat)),k((0,c.Uv)(y.lng)),k((0,c.eo)(!1));const e=await(0,v.Vl)(y.lat,y.lng);k((0,c._z)(e)),i("/")}else m.Ay.error((0,w.t)("our_service_not_area")),s&&(k((0,h.jx)(!1)),k((0,A.mi)(!1)),k((0,c.eo)(!1)))}catch(e){console.error(e)}})(),children:"Use this location"})]})})})}}}]);
//# sourceMappingURL=195.ffa81c34.chunk.js.map