PageSourceSearch

https://jiigi.com/_next/static/chunks/3292.24a92f9516fdbc2c.js

js jiigi.com collected 2026-10-02 00:53:38 UTC 35,332 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3292],{27359:(e,s,r)=>{"use strict";r.d(s,{A:()=>o});var t=r(37876),a=r(14232),l=r(89099),i=r(31777),n=r(15250),d=r(46629);let o=e=>s=>{let r=(0,l.useRouter)(),o=(0,d.nH)(),c=(0,i.d4)(e=>e.userData),[m,x]=(0,a.useState)(!1),[u,p]=(0,a.useState)(!1),h="/home"===r.pathname,g="/"===r.pathname,j=(0,i.d4)(e=>e.location);return((0,a.useEffect)(()=>{let e=["/cart","/chats","/checkout","/general-bookings","/requested-bookings","/bookmarks","/my-services-requests","/addresses","/notifications","/payment-status","/payment-history","/booking/[...slug]","/profile"].includes(r.pathname),s=["/my-services-requests"].includes(r.pathname),t=j?.lat&&j?.lng;g&&!t?r.replace("/home"):h&&t?r.push("/"):(e&&!o||s&&!t?r.push("/"):x(!0),p(!0))},[c,r]),u)?m?(0,t.jsx)(e,{...s}):null:(0,t.jsx)(n.A,{})}},31351:(e,s,r)=>{"use strict";r.d(s,{A:()=>d});var t=r(37876);r(14232);let a=(0,r(77161).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var l=r(46629),i=r(77996),n=r(68807);let d=({elem:e,handleRouteChange:s})=>{let r=(0,n.B)(),d=(0,l.Qo)(),o=e?.translated_name?e?.translated_name:e?.name,c=e?.total_providers!==void 0&&Number(e?.total_providers||0)>0,m=e?.has_children===!0||Number(e?.children_count||0)>0,x=e?.total_providers!==void 0&&!c&&!m;return(0,t.jsxs)("div",{className:`relative w-full subCategory rounded-2xl overflow-hidden ${x?"cursor-not-allowed":"cursor-pointer group"}`,onClick:()=>{x||s(e)},children:[(0,t.jsx)(i.A,{className:"w-full aspect-subCategory absolute inset-0 object-cover object-center transition-transform duration-300",src:e?.category_image||e?.image,alt:`${o}`,loading:"lazy"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-6 text-white",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"text-base sm:text-lg font-semibold line-clamp-2",children:o}),e?.total_providers===void 0&&(0,t.jsx)(a,{className:`opacity-0 group-hover:opacity-100 transition-opacity duration-300 ${d?"rotate-180":"rotate-0"}`,size:20})]}),e?.total_providers!==void 0&&(0,t.jsxs)("div",{className:"flex items-center justify-between mt-1",children:[(0,t.jsx)("span",{className:"text-sm",children:c?`${e?.total_providers} ${r(e?.total_providers===1?"provider":"providers")}`:r("comingSoon")}),!x&&(0,t.jsx)(a,{className:`opacity-0 group-hover:opacity-100 transition-opacity duration-300 ${d?"rotate-180":"rotate-0"}`,size:20})]})]})]})}},36460:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>Z});var t=r(37876),a=r(14232),l=r(27888);r(32283);var i=r(23748),n=r(36945),d=r(86850),o=r(67717),c=r(89099),m=r(31777),x=r(46629),u=r(52310),p=r(59611),h=r(77996),g=r(71732),j=r(59688),v=r(68807);let f=({onPrev:e,onNext:s})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:e,className:"absolute top-1/2 left-4 transform -translate-y-1/2 bg-white z-10 p-2 rounded-full focus:outline-none hover:bg-opacity-75 transition-all","aria-label":"Previous slide",children:(0,t.jsx)(n.A,{className:"w-6 h-6 text-black"})}),(0,t.jsx)("button",{onClick:s,className:"absolute top-1/2 right-4 transform -translate-y-1/2 bg-white z-10 p-2 rounded-full focus:outline-none hover:bg-opacity-75 transition-all","aria-label":"Next slide",children:(0,t.jsx)(d.A,{className:"w-6 h-6 text-black"})})]}),_=({totalSlides:e,currentSlide:s,goToSlide:r,isRTL:l,isPaused:i})=>{let[n,d]=(0,a.useState)(0),[o,c]=(0,a.useState)(0),m=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e,s;return d(0),c(0),e=0,m.current=s=setInterval(()=>{if(!i)if(e<100){let s=e/100*100;d(s),c(s/100),e+=1}else d(100),c(1),clearInterval(s)},30),()=>{m.current&&clearInterval(m.current)}},[s,i]),(0,t.jsx)("div",{className:"absolute bottom-24 md:bottom-24 left-1/2 transform -translate-x-1/2 flex z-10 bg-white dark:bg-[var(--hover-dark-bg)] p-2 rounded-full",children:Array.from({length:e}).map((e,a)=>(0,t.jsx)("button",{onClick:()=>r(a),className:`rounded-full transition-all relative overflow-hidden light_bg_color border border-[var(--slider-dot-border)] ${a===s?"w-6 h-3":"w-3 h-3"} ${l?"ml-2":"mr-2"} last:m-0`,"aria-label":`Go to slide ${a+1}`,children:a===s&&(0,t.jsx)("div",{className:"absolute bottom-0 primary_bg_color border border_color",style:{[l?"right":"left"]:"0",width:`${n}%`,height:"12px",opacity:o,transition:"width 0.1s ease-in-out, opacity 0.1s ease-in-out",transform:l?"scaleX(-1)":"none"}})},a))})},b=({sliderData:e})=>{let s=(0,v.B)(),r=(0,x.Qo)(),n=(0,m.d4)(e=>e.location),d=(0,a.useRef)(null),[b,w]=(0,a.useState)(0),[N,y]=(0,a.useState)(!1),[k,E]=(0,a.useState)(""),[A,P]=(0,a.useState)(!1),V=(0,c.useRouter)();(0,a.useEffect)(()=>{let e=d.current,s=()=>{e?.autoplay?.stop(),P(!0)},r=()=>{e?.autoplay?.start(),P(!1)};if(e&&e.el)return e.el.addEventListener("mouseenter",s),e.el.addEventListener("mouseleave",r),()=>{e.el&&(e.el.removeEventListener("mouseenter",s),e.el.removeEventListener("mouseleave",r))}},[]);let $=e&&e?.length>0;return(0,t.jsxs)("div",{className:`relative ${$?"md:pb-16":""} heroSliderSection`,children:[(0,t.jsxs)("div",{className:`relative w-full group ${$?"aspect-slider":"h-full my-10"}`,children:[$?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.RC,{modules:[i.Ij,i.Vx,i.dK],spaceBetween:0,slidesPerView:1,dir:r?"rtl":"ltr",loop:!0,onSlideChange:e=>{w(e.realIndex)},navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},autoplay:{delay:3e3,disableOnInteraction:!1,pauseOnMouseEnter:!1,waitForTransition:!0},pagination:{clickable:!0},className:"h-full w-full",onSwiper:e=>
1{d.current=e,e.autoplay.start()},children:e.map((e,r)=>(0,t.jsx)(l.qr,{onClick:s=>((e,s)=>{switch(e.preventDefault(),(0,u.VU)(p.Gt.HOME_BANNER_TAPPED,{slide_id:s?.id,slide_type:s?.original_type}),s?.original_type){case"url":s?.url?window.open(s?.url,"_blank"):console.warn("Missing URL:",s);break;case"provider":let r=`/provider-details/${s?.provider_slug}`;V.push(r);break;case"Category":case"Sub Category":let t="/service";s?.parent_category_slugs&&s?.parent_category_slugs.length>0?t+=`/${s.parent_category_slugs.join("/")}/${s.category_slug}`:t+=`/${s.category_slug}`,V.push(t);break;default:console.warn("Invalid slide type or missing data:",s)}})(s,e),children:(0,t.jsx)(h.A,{alt:s("sliderImage"),src:e?.slider_web_image,className:"w-full h-full object-contain",imgClassName:"object-contain"})},e?.id))},r),e?.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hidden sm:hidden md:group-hover:block opacity-0 group-hover:opacity-100 transition-opacity duration-500",children:(0,t.jsx)(f,{onPrev:()=>d.current?.slidePrev(),onNext:()=>d.current?.slideNext()})}),(0,t.jsx)("div",{className:"!hidden md:!block",children:(0,t.jsx)(_,{totalSlides:e?.length,currentSlide:b,goToSlide:e=>d.current?.slideTo(e),isRTL:r,isPaused:A})})]})]}):null,(0,t.jsx)("div",{className:`light_bg_color ${$?"pt-6 sm:mt-0 md:pt-0 md:bg-transparent":"py-4 mt-0"} searchLocation`,children:(0,t.jsx)("div",{className:"container md:mx-auto",children:(0,t.jsxs)("div",{className:`md:card_bg rounded-xl py-4 md:p-4 relative ${$?" md:-mt-8":"mt-0"} left-0 right-0 mx-auto z-10 max-w-full lg:max-w-4xl flex flex-row items-center justify-between md:border border-[var(--neutral-overlay)] gap-4`,children:[(0,t.jsx)("div",{className:"card_bg p-3 rounded-[6px] md:rounded-none md:p-0 location flex items-center w-max md:w-1/2 text-center md:text-left",onClick:()=>y(!0),children:(0,t.jsxs)("div",{className:"flex flex-1 items-center justify-between  w-full",children:[(0,t.jsx)(o.sIY,{size:20,className:"primary_text_color max-w-6 w-full"}),(0,t.jsx)("input",{readOnly:!0,className:"hidden md:block ml-2 focus:outline-none w-full text-sm sm:text-base !bg-transparent",placeholder:s("enterLocation"),value:n?.locationAddress}),(0,t.jsxs)("div",{className:`hidden md:flex flex-1 items-center w-full ${r?"rotate-180":"rotate-0"}`,children:[""," ",(0,t.jsx)(o.X6T,{size:20})]})]})}),(0,t.jsx)("div",{className:"hidden md:block divider h-6 w-px bg-gray-300"}),(0,t.jsxs)("div",{className:"card_bg p-3 rounded-[12px] shadow-[0px_6px_16px_0px_rgba(0,0,0,0.04)] border-[0.5px] md:shadow-none md:border-none md:rounded-none md:p-0 md:bg-transparent searchProvider w-full md:w-1/2 flex items-center gap-2",children:[(0,t.jsx)(o.VxX,{size:20,className:"description_color"}),(0,t.jsx)("input",{value:k,onChange:e=>E(e.target.value),type:"text",placeholder:s("searchService"),className:"bg-transparent border-none focus:outline-none w-full description_color"})]}),(0,t.jsx)("div",{className:"absolute top-[26px] right-2 rtl:left-2 rtl:right-auto md:relative md:top-0 md:right-0 search w-max md:w-auto text-center md:text-end",onClick:()=>{if(!k.trim())return void j.oR.error(s("pleaseTypeServiceOrProviderName"));let e=(0,x.qz)(k);V.push(`/search/${e}`),(0,u.VU)(p.Gt.SERVICE_SEARCH_SUBMITTED,{query_length:k.trim().length})},children:(0,t.jsx)("button",{className:"primary_bg_color text-white rounded-md text-xs sm:text-base px-2 py-1 sm:px-3 md:px-6 md:py-2 w-full md:w-auto transition",children:s("search")})})]})})})]}),N&&(0,t.jsx)(g.A,{open:N,onClose:()=>y(!1)})]})};var w=r(83438);let N=({headline:e,subHeadline:s,link:r})=>{let a=(0,v.B)();return(0,t.jsxs)("div",{className:"flex items-center md:items-end justify-between w-full pb-[32px]",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start justify-start gap-2",children:[(0,t.jsx)("span",{className:"text-lg md:text-3xl font-semibold",children:e}),(0,t.jsx)("span",{className:"primary_text_color text-sm md:text-base font-normal",children:s})]}),r&&(0,t.jsx)("div",{className:"hover:primary_bg_color rounded-md transition-colors duration-500 hover:text-white px-6 py-2",children:(0,t.jsx)(w.A,{href:r,className:"text-nowrap text-sm md:text-base text-center font-normal md:text-end",title:a("viewAll"),children:a("viewAll")})})]})};var y=r(51351),k=r(6895);let E=({categoriesData:e})=>{let s=(0,m.wA)(),r=(0,c.useRouter)(),a=(0,v.B)(),n=(0,x.Qo)(),d=e=>{s((0,k.UW)()),s((0,k.Ah)(e)),(0,u.VU)(p.Gt.HOME_CATEGORY_SHORTCUT_TAPPED,{category_slug:e?.slug}),r.push(`/service/${e.slug}`)};return(0,t.jsx)("div",{className:"categories light_bg_color pt-4  pb-0 md:py-8 homeC
1ategories",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 md:px-8",children:[(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(N,{headline:a("chooseYourService"),subHeadline:a("discoverServices"),link:"/services"})}),(0,t.jsx)("div",{className:"hidden md:grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:e.slice(0,8).map((e,s)=>(0,t.jsx)("div",{children:(0,t.jsx)(y.A,{data:e,handleRouteCategory:d,isRTL:n})},s))}),(0,t.jsx)("div",{className:"block md:hidden",children:(0,t.jsx)(l.RC,{modules:[i.Ij,i.U1,i.dK],spaceBetween:20,loop:!0,slidesPerView:3.5,dir:n?"rtl":"ltr",autoplay:{delay:3e3},freeMode:!0,breakpoints:{0:{slidesPerView:1.3},768:{slidesPerView:1.5},992:{slidesPerView:1.8},1200:{slidesPerView:1.8},1400:{slidesPerView:2.7},1600:{slidesPerView:3.5}},navigation:!0,pagination:{clickable:!0},className:"mySwiper",children:e.slice(0,8).map((e,s)=>(0,t.jsx)(l.qr,{children:(0,t.jsx)("div",{children:(0,t.jsx)(y.A,{data:e,handleRouteCategory:d,isRTL:n})})},s))},n)})]})})};var A=r(92864);let P=({data:e})=>{let s=(0,x.Qo)(),r=e?.translated_title?e?.translated_title:e?.title,a=e?.translated_description?e?.translated_description:e?.description;return(0,t.jsx)("div",{className:"categories py-[32px] nearByProviders",children:(0,t.jsxs)("div",{className:"container mx-auto",children:[(0,t.jsx)(N,{headline:r,subHeadline:a,link:""}),(0,t.jsx)("div",{children:(0,t.jsx)(l.RC,{modules:[i.Ij,i.U1,i.dK],spaceBetween:20,loop:!0,slidesPerView:3.5,dir:s?"rtl":"ltr",autoplay:{delay:3e3},freeMode:!0,breakpoints:{320:{slidesPerView:1},375:{slidesPerView:1.2},576:{slidesPerView:1.5},768:{slidesPerView:1.5},992:{slidesPerView:1.8},1200:{slidesPerView:1.8},1400:{slidesPerView:2.7},1600:{slidesPerView:3.5}},navigation:!0,pagination:{clickable:!0},className:"mySwiper",children:e?.partners?.map(e=>(0,t.jsx)(l.qr,{children:(0,t.jsx)(w.A,{href:`/provider-details/${e?.slug}`,title:e?.name,children:(0,t.jsx)(A.A,{provider:e})})},e.id))},s)})]})})};r(70031),r(71789);var V=r(56011),$=r(15041),C=r(49761),S=r(22376);let R=({provider:e})=>{let s=(0,v.B)(),r=(0,x.Qo)(),l=(0,m.wA)(),i=(0,x.nH)(),n=(0,m.d4)(e=>e?.location),[d,c]=(0,a.useState)(!1),u=async s=>{if(s.preventDefault(),s.stopPropagation(),i)try{let s=await (0,C.Fc)({type:"add",lat:n?.lat,lng:n?.lng,partner_id:e?.id});s?.error===!1?(c(!0),j.oR.success(s?.message)):(j.oR.error(s?.message),c(!1))}catch(e){console.log(e)}else l((0,S.ny)())},p=async s=>{if(s.preventDefault(),s.stopPropagation(),i)try{let s=await (0,C.Fc)({type:"remove",lat:n?.lat,lng:n?.lng,partner_id:e?.id});s?.error===!1?(c(!1),j.oR.success(s?.message)):(j.oR.error(s?.message),c(!0))}catch(e){console.log(e)}else l((0,S.ny)())};(0,a.useEffect)(()=>{i&&c(e?.is_bookmarked=="1")},[i,e?.is_bookmarked]);let g=e?.translated_company_name?e?.translated_company_name:e?.company_name;return(0,t.jsxs)("div",{className:"card_bg rounded-2xl overflow-hidden border group ",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(h.A,{className:"w-full h-auto aspect-provider-banner object-cover",src:e?.banner_image,alt:`${g} cover`,imgClassName:"object-cover"}),e?.discount>0&&(0,t.jsxs)("div",{className:"absolute top-3 left-3 card_bg text-green-500 text-xs font-semibold px-2 py-1 rounded-[8px]",children:[e?.discount,"% ",s("off")]}),(0,t.jsx)("div",{className:"absolute top-3 -right-10 card_bg text-black dark:text-white text-xs font-semibold px-2 py-1 rounded-[8px] transition-all duration-300 group-hover:right-3",children:d?(0,t.jsx)(V.L80,{size:22,onClick:p,className:"cursor-pointer primary_text_color"}):(0,t.jsx)(V.ACE,{size:22,onClick:u,className:"cursor-pointer transition-all duration-300 group-hover:right-3"})})]}),(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsxs)("div",{className:"flex items-center mb-3",children:[(0,t.jsx)(h.A,{className:`w-12 aspect-square ${r?"mr-0 ml-3":"ml-0 mr-3"}`,src:e?.image,alt:`${g} logo`,imgClassName:"rounded-xl"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold text-lg leading-tight line-clamp-1",children:g}),e?.total_services>0&&(0,t.jsxs)("span",{className:"text-sm primary_text_color font-medium",children:[e?.total_services," ",s(e?.total_services>1?"services":"service")]})]})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[e.ratings>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(o.gt3,{className:"rating_icon_color mr-1"}),(0,t.jsx)("span",{className:"font-semibold",children:e.ratings})]}),x.xR]}),(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)($.vq8,{className:"primary_text_color mr-1"}),(0,t.jsxs)("span",{className:"font-semibold",children:[" ",(0,x.J7)(e?.distance)]})]})]}),(0,t.jsx)("div",{className:"w-full light_bg_color primary_text_color dark:text-white font-normal py-2.5 px-4 roun
1ded-lg text-sm mt-4 text-center",children:s("viewService")})]})]})},B=({data:e})=>{let s=(0,a.useRef)(null),r=(0,x.Qo)(),[n,d]=(0,a.useState)([]),[o,c]=(0,a.useState)(!0),[m,u]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{let s=e?.partners;d(s),u(s.length>0),c(s.length>4)},[e]),!m)return null;e?.translated_short_headline?e?.translated_short_headline:e?.short_headline;let p=e?.translated_title?e?.translated_title:e?.title,h=e?.translated_description?e?.translated_description:e?.description;return(0,t.jsx)("section",{className:"top_providers card_bg py-8",children:(0,t.jsxs)("div",{className:"container mx-auto",children:[(0,t.jsx)(N,{headline:p,subHeadline:h,link:""}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(l.RC,{dir:r?"rtl":"ltr",spaceBetween:20,slidesPerView:2,breakpoints:{320:{slidesPerView:1},375:{slidesPerView:1.3},576:{slidesPerView:1.5},768:{slidesPerView:2},992:{slidesPerView:2.5},1200:{slidesPerView:3},1400:{slidesPerView:4}},onSwiper:e=>{s.current=e},loop:o,modules:[i.Ij],className:"custom-swiper",children:n.map((e,s)=>(0,t.jsx)(l.qr,{children:(0,t.jsx)(w.A,{href:`/provider-details/${e?.slug}`,title:e?.company_name,children:(0,t.jsx)(R,{provider:e})})},s))},r)})]})})},I=()=>(0,t.jsx)("div",{className:"light_bg_color h-[24px]"}),q=({banner:e})=>{let s=(0,c.useRouter)(),r=(0,v.B)(),l=e?.banner[0],i=(()=>{let[e,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=()=>{s(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e})();return(0,t.jsx)("div",{className:"aspect-feature-banner w-full cursor-pointer bg-transparent container mx-auto",onClick:e=>((e,r)=>{switch(e.preventDefault(),r?.type){case"banner_url":r?.banner_url?window.open(r?.banner_url,"_blank"):console.warn("Missing banner_url:",r);break;case"banner_provider":let t=`/provider-details/${r?.provider_slug}`;s.push(t);break;case"banner_category":let a="/service";r?.parent_category_slugs&&r?.parent_category_slugs.length>0?a+=`/${r.parent_category_slugs.join("/")}/${r.category_slug}`:a+=`/${r.category_slug}`,s.push(a);break;default:console.warn("Invalid banner type or missing data:",r)}})(e,l),children:(0,t.jsx)(h.A,{src:i?l?.app_banner_image:l?.web_banner_image,alt:r("bannerImage"),className:"!object-contain w-full h-full bg-transparent aspect-provider-banner",imgClassName:"rounded-lg"})})};var z=r(31351),T=r(14e3);let L=({data:e})=>{let s=(0,c.useRouter)(),r=(0,T.usePathname)(),a=(0,m.wA)(),n=(0,x.Qo)(),d=(0,m.d4)(e=>e.multiCategories.selectedCategories),o=t=>{(0,u.VU)(p.Gt.HOME_POPULAR_SERVICE_TAPPED,{category_slug:t?.slug,section_id:e?.id}),d.some(e=>e.slug===t.slug)||(a((0,k.Ah)(t)),s.push(`/service/${r}/${t.slug}`))},h=e?.translated_title?e?.translated_title:e?.title,g=e?.translated_description?e?.translated_description:e?.description;return(0,t.jsx)("div",{className:"py-8",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 md:px-8 homeCommanSection",children:[(0,t.jsx)(N,{headline:h,subHeadline:g,link:""}),(0,t.jsx)("div",{children:(0,t.jsx)(l.RC,{modules:[i.Ij,i.U1,i.dK],spaceBetween:30,loop:!0,dir:n?"rtl":"ltr",autoplay:{delay:3e3},freeMode:!0,breakpoints:{320:{slidesPerView:2.3},576:{slidesPerView:3},768:{slidesPerView:3.5},992:{slidesPerView:4},1200:{slidesPerView:4.5},1400:{slidesPerView:5},1600:{slidesPerView:5.5}},navigation:!0,pagination:{clickable:!0},className:"mySwiper",children:e?.sub_categories.map(e=>(0,t.jsx)(l.qr,{children:(0,t.jsx)(z.A,{elem:e,handleRouteChange:o})},e.id))},n)})]})})};var U=r(87576),D=r(76917);let H=({booking:e})=>{let s=(0,v.B)(),r=(0,c.useRouter)(),l=(0,m.wA)(),i=(0,x.nH)(),[n,d]=(0,a.useState)(!1),o=e?.services[0],u=x.PA[e?.status?.toLowerCase()]||"var(--status-default)",p=x.JM[e?.status],g=e?.translated_company_name?e?.translated_company_name:e?.company_name,j=o?.translated_title?o?.translated_title:o?.title,f=(0,m.d4)(e=>e.settingsData?.settings),_=f?.general_settings?.allow_post_booking_chat==="1",b=e?.post_booking_chat==="1";return(0,t.jsxs)("div",{className:"card_bg rounded-[18px] border p-6 flex flex-col items-center justify-center hover:border_color transition-all duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between w-full border-b border-[var(--neutral-overlay)] pb-[18px]",children:[(0,t.jsx)("span",{className:"text-base font-normal description_color",children:s("status")}),(0,t.jsx)("span",{className:"text-base font-semibold primary_text_color capitalize",style:{color:u},children:s(p)})]}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4 w-full pt-[18px]",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-start items-start",children:[(0,t.jsxs)("div",{className:"flex items-center justify-start gap-4",children:[(0,t.jsx)("div",{className:"h-12 aspect-square min-w-12 min-h-12 rounded-md",children:(0,t.jsx)(h.A,{src:o?.image,alt:j,className:"w-full h-full object-cover rounded-md",imgClassName:"rounded-md object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col justify-start",children:[(0,t.jsx)("span",{className:"text-base font-medium line-clamp-1",children:j}),(0,t.jsxs)("span",{className:"flex items-center text-sm font-medium description_color dark:text-white gap-2",children:[(0,t.jsx)("span",{children:(0,x.H3)(o?.price)}),(0,t.jsxs)("span",{children:["x",o?.quantity]})]})]})]}),(0,t.jsx)("div",{className:`w-full description_color dark:text-white text-base font-normal ${e?.services.length>
11?"pt-[16px]":"pt-[40px]"}`,children:e?.services.length>1&&(0,t.jsxs)("span",{children:["+",e?.services.length-1," ",s("moreServices")]})})]}),(0,t.jsx)("div",{className:"text-base font-medium",children:(0,t.jsx)("span",{children:(0,x.H3)(e?.total)})})]}),(0,t.jsx)("div",{className:`w-full flex flex-col justify-center items-start gap-[18px] ${(e?.serviceCount,"pt-[18px]")}`,children:(0,t.jsxs)("div",{className:"flex items-center justify-start gap-1 text-base font-normal w-full",children:[(0,t.jsxs)("span",{className:"description_color dark:text-white",children:[" ",s("by")]}),(0,t.jsxs)("span",{children:[" ",g]})]})}),e?.status==="completed"?(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-[18px] items-center justify-center w-full pt-[18px] text-sm md:text-base",children:[n?(0,t.jsx)("button",{className:"primary_bg_color primary_text_color py-3 px-8 rounded-xl w-full flex items-center justify-center",children:(0,t.jsx)(D.A,{})}):(0,t.jsx)("button",{className:"rounded-[8px] light_bg_color border-none flex items-center justify-center p-[10px] primary_text_color w-full",onClick:()=>(0,x.Ej)(e?.id,d),children:s("downloadInvoice")}),(0,t.jsx)("button",{className:"w-full primary_bg_color p-[10px] rounded-[8px] text-white",children:(0,t.jsx)(w.A,{href:`/booking/${e?.slug}`,children:s("viewBooking")})})]}):(0,t.jsxs)("div",{className:"flex gap-[18px] items-center justify-center w-full pt-[18px]",children:[_&&b&&(0,t.jsx)("button",{className:"rounded-[8px] light_bg_color border-none flex items-center justify-center p-[10px] primary_text_color w-fit",onClick:s=>((e,s)=>{if(e.preventDefault(),!i)return l((0,S.ny)()),!1;try{l((0,S.zB)({booking_id:s?.id,partner_id:s?.partner_id,partner_name:g,image:s?.profile_image,order_status:s?.status})),r.push(`/chats/${(0,x.xT)({partner_id:s?.partner_id,booking_id:s?.id})}`)}catch(e){console.log(e)}})(s,e),children:(0,t.jsx)(U.U2r,{size:24})}),(0,t.jsx)("button",{className:"w-full primary_bg_color p-[10px] rounded-xl text-white",children:(0,t.jsx)(w.A,{href:`/booking/${e?.slug}`,children:s("viewBooking")})})]})]})},M=({data:e})=>{let s=(0,x.Qo)(),r=e?.translated_title?e?.translated_title:e?.title,a=e?.translated_description?e?.translated_description:e?.description;return(0,t.jsx)("div",{className:"py-8 light_bg_color",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 md:px-8",children:[(0,t.jsx)(N,{headline:r,subHeadline:a,link:""}),(0,t.jsx)("div",{children:(0,t.jsx)(l.RC,{dir:s?"rtl":"ltr",modules:[i.Ij,i.U1],spaceBetween:30,loop:!0,autoplay:{delay:3e3},freeMode:!0,breakpoints:{320:{slidesPerView:1},375:{slidesPerView:1},576:{slidesPerView:1.5},768:{slidesPerView:1.8},992:{slidesPerView:2},1200:{slidesPerView:2},1400:{slidesPerView:2},1600:{slidesPerView:2.5}},className:"mySwiper",children:e?.previous_order?.map(e=>(0,t.jsx)(l.qr,{children:(0,t.jsx)(H,{booking:e})},e.id))},s)})]})})};var F=r(27063);let O=({data:e})=>{let s=(0,x.Qo)(),r=e?.translated_title?e?.translated_title:e?.title,a=e?.translated_description?e?.translated_description:e?.description;return(0,t.jsx)("div",{className:"py-8 light_bg_color",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 md:px-8",children:[(0,t.jsx)(N,{headline:r,subHeadline:a,link:""}),(0,t.jsx)("div",{children:(0,t.jsx)(l.RC,{dir:s?"rtl":"ltr",modules:[i.Ij,i.U1],spaceBetween:30,loop:!0,autoplay:{delay:3e3},freeMode:!0,breakpoints:{320:{slidesPerView:1},375:{slidesPerView:1},576:{slidesPerView:1.5},768:{slidesPerView:1.8},992:{slidesPerView:2},1200:{slidesPerView:2},1400:{slidesPerView:2},1600:{slidesPerView:2.5}},className:"mySwiper",children:e?.ongoing_order?.map(e=>(0,t.jsx)(l.qr,{children:(0,t.jsx)(H,{booking:e})},e.id))},s)})]})})};var Q=r(6621),G=r(85624);let K=()=>(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)("div",{className:"",children:(0,t.jsx)("div",{className:"relative w-full h-[300px] md:h-[400px] rounded-xl overflow-hidden",children:(0,t.jsx)(G.E,{className:"w-full h-full"})})}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(G.E,{className:"h-8 w-48"}),(0,t.jsx)(G.E,{className:"h-8 w-24"})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4",children:[1,2,3,4,5,6].map(e=>(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,t.jsx)(G.E,{className:"w-full h-32 rounded-xl"}),(0,t.jsx)(G.E,{className:"h-4 w-20"})]},e))})]}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(G.E,{className:"h-8 w-48"}),(0,t.jsx)(G.E,{className:"h-8 w-24"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"card_bg rounded-xl p-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)(G.E,{className:"w-20 h-20 rounded-xl"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)(G.E,{className:"h-6 w-3/4"}),(0,t.jsx)(G.E,{className:"h-4 w-1/2"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(G.E,{className:"h-4 w-16"}),(0,t.jsx)(G.E,{className:"h-4 w-16"})]})]})]})},e))})]}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(G.E,{className:"h-8 w-48"}),(0,t.jsx)(G.E,{className:"h-8 w-24"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"card_bg rounded-xl p-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)(G.E,{className:"w-20 h-20 rounded-xl"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)(G.E,{className:"h-6 w-3/4"}),(0,t.jsx)(G.E,{className:"h-4 w-1/2"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(G.E,{className:"h-4 w-16"}),(0,t.jsx)(G.E,{className:"h-4 w-16"})]})]})]})},e))})]}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(G.E,{className:"h-8 w-48"}),(0,t.jsx)(G.E,{className:"h-8 w-24"})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4",children:[1,2,3,4,5,6].map(e=>(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,t.jsx)(G.E,{className:"w-full h-32 rounded-xl"}),(0,t.jsx)(G.E,{className:"h-4 w-20"})]},e))})]}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(G.E,{className:"h-8 w-48"}),(0,t.jsx)(G.E,{className:"h-8 w-24"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"card_bg rounded-xl p-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)(G.E,{className:"w-20 h-20 rounded-xl"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)(G.E,{className:"h-6 w-3/4"}),(0,t.jsx)(G.E,{className:"h-4 w-1/2"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(G.E,{className:"h-4 w-16"}),(0,t.jsx)(G.E,{className:"h-4 w-16"})]})]})]})},e))})]}),(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(G.E,{className:"h-8 w-48"}),(0,t.jsx)(G.E,{className:"h-8 w-24"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"card_bg rounded-xl p-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)(G.E,{className:"w-20 h-20 rounded-xl"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)(G.E,{className:"h-6 w-3/4"}),(0,t.jsx)(G.E,{className:"h-4 w-1/2"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(G.E,{className:"h-4 w-16"}),(0,t.jsx)(G.E,{className:"h-4 w-16"})]})]})]})},e))})]}),(0,t.jsx)("div",{className:"container mx-auto px-4 py-8",children:(0,t.jsx)(G.E,{className:"w-full h-[200px] rounded-xl"})}),(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsx)("div",{className:"border-t border-gray-200 dark:border-gray-700"})})]});var Y=r(74359),J=r(24789),W=r(79911),X=r(71909);let Z=(0,r(27359).A)(()=>{let e=(0,m.wA)(),s=(0,v.B)(),r=(0,x.nH)(),a=(0,m.d4)(e=>e?.location),l=(0,m.d4)(e=>e?.translation?.currentLanguage);l?.langCode;let{data:i=[],isLoading:n,isError:d,isFetching:o}=(0,Y.I)({queryKey:(0,J.yC)(["homePageData",a?.lat,a?.lng,r]),queryFn:async()=>{try{let s=await (0,C.gx)({latitude:a?.lat,longitude:a?.lng});return e((0,k.UW)()),a.isUpdatingLocation&&e((0,Q.cY)(!1)),s?.data}catch(e){throw console.error("Error fetching home page data:",e),e}},enabled:!!a?.lat&&!!a?.lng}),c=!a?.lat||!a?.lng,u=c||n||o,p=i?.categories&&Array.isArray(i.categories)&&i.categories.length>0,h=i?.sections&&Array.isArray(i.sections)&&i.sections.length>0,g=h&&i.sections.some(e=>{if(!e)return!1;switch(e?.section_type){case"partners":case"top_rated_partner":case"near_by_provider":return e?.partners&&Array.isArray(e.partners)&&e.partners.length>0;case"sub_categories":return e?.sub_categories&&Array.isArray(e.sub_categories)&&e.sub_categories.length>0;case"previous_order":return e?.previous_order&&Array.isArray(e.previous_order)&&e.previous_order.length>0;case"ongoing_order":return e?.ongoing_order&&Array.isArray(e.ongoing_order)&&e.ongoing_order.length>0;case"banner":return e?.banner&&Array.isArray(e.banner)&&e.banner.length>0&&e.banner[0]?.web_banner_image;default:return!1}});return(0,t.jsx)(F.A,{children:u?(0,t.jsx)(K,{}):d?(0,t.jsx)(W.A,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{sliderData:i?.sliders}),p&&(0,t.jsx)(E,{categoriesData:i?.categories}),h&&i.sections.map((e,s)=>{switch(e?.section_type){case"partners":case"near_by_provider":if(!e?.partners?.length)return null;return(0,t.jsxs)("div",{children:[(0,t.jsx)(P,{data:e}),(0,t.jsx)(I,{})]},`${e.section_type}-${s}`);case"top_rated_partner":if(!e?.partners?.length)return null;return(0,t.jsxs)("div",{children:[(0,t.jsx)(B,{data:e}),(0,t.jsx)(I,{})]},`${e.section_type}-${s}`);case"sub_categories":if(!e?.sub_categories?.length)return null;return(0,t.jsxs)("div",{children:[(0,t.jsx)(L,{data:e}),(0,t.jsx)(I,{})]},`${e.section_type}-${s}`);case"previous_order":if(!e?.previous_order?.length)return null;return(0,t.jsxs)("div",{children:[(0,t.jsx)(M,{data:e}),(0,t.jsx)(I,{})]},`${e.section_type}-${s}`);case"ongoing_order":if(!e?.ongoing_order?.length)return null;return(0,t.jsxs)("div",{children:[(0,t.jsx)(O,{data:e}),(0,t.jsx)(I,{})]},`${e.section_type}-${s}`);case"banner":if(!e?.banner?.[0]?.web_banner_image)return null;return(0,t.jsxs)("div",{children:[(0,t.jsx)(q,{banner:e}),(0,t.jsx)(I,{})]},`${e.section_type}-${s}`);default:return null}}),!u&&!d&&!c&&!p&&!g&&(0,t.jsx)("div",{className:"w-full min-h-[50vh] flex items-center justify-center p-4 py-12",children:(0,t.jsx)(X.A,{title:s("noDataFound")||"No Data Found",desc:s("noD
1ataFoundText")||"Unfortunately, we couldn't find any content to display. Try changing your location or search for services."})})]})})})},36945:(e,s,r)=>{"use strict";r.d(s,{A:()=>t});let t=(0,r(77161).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},47137:(e,s,r)=>{"use strict";r.d(s,{F:()=>i});var t=r(69241);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=t.$,i=(e,s)=>r=>{var t;if((null==s?void 0:s.variants)==null)return l(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:n}=s,d=Object.keys(i).map(e=>{let s=null==r?void 0:r[e],t=null==n?void 0:n[e];if(null===s)return null;let l=a(s)||a(t);return i[e][l]}),o=r&&Object.entries(r).reduce((e,s)=>{let[r,t]=s;return void 0===t||(e[r]=t),e},{});return l(e,d,null==s||null==(t=s.compoundVariants)?void 0:t.reduce((e,s)=>{let{class:r,className:t,...a}=s;return Object.entries(a).every(e=>{let[s,r]=e;return Array.isArray(r)?r.includes({...n,...o}[s]):({...n,...o})[s]===r})?[...e,r,t]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},51351:(e,s,r)=>{"use strict";r.d(s,{A:()=>o});var t=r(37876),a=r(46629);r(14232);var l=r(67717),i=r(77996),n=r(68807),d=r(14e3);let o=({data:e,handleRouteCategory:s})=>{let r=(0,d.usePathname)(),o=(0,n.B)(),c=(0,a.Qo)(),m=(0,a.hJ)(),x=Number(e?.total_providers||0)>0,u=e?.has_children===!0||Number(e?.children_count||0)>0,p=!x&&!u,h=m?e?.dark_color||"var(--primary-color)":e?.light_color||"var(--primary-color)",g=e?.translated_name?e?.translated_name:e?.name;return(0,t.jsxs)("div",{className:`relative border border-transparent custom-shadow card_bg px-[18px] py-[24px] rounded-[16px] flex ${"/"===r?"":"flex-col"} md:flex-row items-center justify-start gap-4 ${p?"cursor-not-allowed":"cursor-pointer group hover:border_color"}`,onClick:()=>{p||s(e)},children:[(0,t.jsx)("div",{className:"h-auto aspect-square w-[60px] rounded-full flex items-center justify-center",style:{backgroundColor:h},children:(0,t.jsx)(i.A,{src:e?.category_image,alt:g,className:"w-full h-full rounded-full",imgClassName:"rounded-full"})}),(0,t.jsxs)("div",{className:"relative flex flex-col items-start justify-start gap-1",children:[(0,t.jsx)("span",{className:" md:text-lg font-semibold line-clamp-1",children:g}),(0,t.jsxs)("div",{className:"relative h-[24px] overflow-hidden flex flex-col",children:[(0,t.jsx)("span",{className:"text-base font-normal description_color dark:text-white group-hover:mt-12 transition-all duration-500",children:x?`${e?.total_providers} ${o(e?.total_providers===1?"provider":"providers")}`:o("comingSoon")}),!p&&(0,t.jsxs)("button",{className:"text-sm md:text-base font-normal primary_text_color -mt-12 group-hover:-mt-[72px] transition-all duration-500 flex items-center justify-start gap-2",children:[(0,t.jsx)("span",{children:o("viewMore")}),(0,t.jsx)("span",{className:` ${c?"rotate-180":"rotate-0"}`,children:(0,t.jsx)(l.j6T,{size:16})})]})]})]})]})}},70031:()=>{},71789:()=>{},71909:(e,s,r)=>{"use strict";r.d(s,{A:()=>l});var t=r(37876);r(14232);var a=r(70764);let l=({title:e,desc:s})=>(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3 max-w-3xl",children:[a.VB,(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h1",{className:"text-3xl",children:e}),(0,t.jsx)("p",{className:"text-sm",children:s})]})]})},86850:(e,s,r)=>{"use strict";r.d(s,{A:()=>t});let t=(0,r(77161).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])}}]);

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.