PageSourceSearch

https://jiigi.com/_next/static/chunks/4843.ffe305fed39b733f.js

js jiigi.com collected 2026-10-02 00:53:54 UTC 23,770 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4843],{21442:(e,l,r)=>{"use strict";r.d(l,{_s:()=>i,gk:()=>u,zj:()=>c});var t=r(37876),s=r(14232),a=r(28653),o=r(3408);let i=({shouldScaleBackground:e=!0,...l})=>(0,t.jsx)(a._s.Root,{shouldScaleBackground:e,...l});i.displayName="Drawer",a._s.Trigger;let d=a._s.Portal;a._s.Close;let n=s.forwardRef(({className:e,...l},r)=>(0,t.jsx)(a._s.Overlay,{ref:r,className:(0,o.cn)("fixed inset-0 z-50 bg-black/80",e),...l}));n.displayName=a._s.Overlay.displayName;let c=s.forwardRef(({className:e,children:l,...r},s)=>(0,t.jsxs)(d,{children:[(0,t.jsx)(n,{}),(0,t.jsxs)(a._s.Content,{ref:s,className:(0,o.cn)("fixed inset-x-0 bottom-0 z-50 flex flex-col rounded-t-[10px] border bg-background","mt-24 md:mt-16 lg:mt-10","max-h-[85vh] md:max-h-[90vh] lg:max-h-[95vh]","overflow-y-auto overscroll-contain touch-pan-y [-webkit-overflow-scrolling:touch]","scrollbar-thin scrollbar-track-transparent scrollbar-thumb-gray-400 scrollbar-thumb-rounded",e),...r,children:[(0,t.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted sticky top-0 z-10"}),(0,t.jsx)("div",{className:"min-h-[100px]",children:l})]})]}));c.displayName="DrawerContent";let u=s.forwardRef(({className:e,...l},r)=>(0,t.jsx)(a._s.Title,{ref:r,className:(0,o.cn)("text-lg font-semibold leading-none tracking-tight",e),...l}));u.displayName=a._s.Title.displayName,s.forwardRef(({className:e,...l},r)=>(0,t.jsx)(a._s.Description,{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",e),...l})).displayName=a._s.Description.displayName},27359:(e,l,r)=>{"use strict";r.d(l,{A:()=>n});var t=r(37876),s=r(14232),a=r(89099),o=r(31777),i=r(15250),d=r(46629);let n=e=>l=>{let r=(0,a.useRouter)(),n=(0,d.nH)(),c=(0,o.d4)(e=>
1e.userData),[u,m]=(0,s.useState)(!1),[x,p]=(0,s.useState)(!1),f="/home"===r.pathname,h="/"===r.pathname,g=(0,o.d4)(e=>e.location);return((0,s.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),l=["/my-services-requests"].includes(r.pathname),t=g?.lat&&g?.lng;h&&!t?r.replace("/home"):f&&t?r.push("/"):(e&&!n||l&&!t?r.push("/"):m(!0),p(!0))},[c,r]),x)?u?(0,t.jsx)(e,{...l}):null:(0,t.jsx)(i.A,{})}},45560:(e,l,r)=>{"use strict";r.d(l,{A:()=>c});var t=r(37876);r(14232);var s=r(89099),a=r(72206),o=r(86850),i=r(68807),d=r(46629),n=r(83438);let c=({firstEle:e,secEle:l,thirdEle:r,firstEleLink:c,SecEleLink:u,thirdEleLink:m,isMobile:x})=>{let p=(0,i.B)(),f=(0,d.Qo)(),h=(0,s.useRouter)(),g=e=>{let l="text-sm md:text-base font-normal";return h.asPath===e?`${l} primary_text_color cursor-default pointer-events-none`:`${l} hover:primary_text_color`},b=({link:e,children:l,title:r})=>h.asPath===e?(0,t.jsx)("span",{className:g(e),title:r,children:l}):(0,t.jsx)(n.A,{href:e,className:g(e),title:r,children:l});return(0,t.jsx)("div",{className:"custom-breadcrumb py-4 my-6 light_bg_color",children:(0,t.jsx)("div",{className:"container mx-auto",children:(0,t.jsxs)(a.Qp,{className:"flex flex-wrap items-center gap-1 sm:gap-2 [&_li]:list-none [&_ol]:list-none",children:[(0,t.jsx)(a.J5,{children:x&&x()?(0,t.jsx)(n.A,{href:"/profile",title:p("profile"),children:p("profile")}):(0,t.jsx)(b,{link:"/",title:p("home"),children:p("home")})}),e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.tH,{className:"separator w-6",children:(0,t.jsx)(o.A,{className:`${f?"rotate-180":"rotate-0"}`})}),(0,t.jsx)(a.J5,{children:c?(0,t.jsx)(b,{link:c,title:e,children:e}):(0,t.jsx)("span",{className:"text-sm md:text-base font-normal description_color",children:e})})]}),l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.tH,{className:"separator w-6",children:(0,t.jsx)(o.A,{className:`${f?"rotate-180":"rotate-0"}`})}),(0,t.jsx)(a.J5,{children:u?(0,t.jsx)(b,{link:u,title:l,children:l}):(0,t.jsx)("span",{className:"text-sm md:text-base font-normal description_color",children:l})})]}),r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.tH,{className:"separator w-6",children:(0,t.jsx)(o.A,{className:`${f?"rotate-180":"rotate-0"}`})}),(0,t.jsx)(a.J5,{children:m?(0,t.jsx)(b,{link:m,title:r,children:r}):(0,t.jsx)("span",{className:"text-sm md:text-base font-normal description_color",children:r})})]})]})})})}},53318:(e,l,r)=>{"use strict";r.d(l,{A:()=>L});var t=r(37876),s=r(14232),a=r(21442),o=r(3408),i=r(46629),d=r(27888),n=r(23748);r(32283),r(70031),r(71789);var c=r(56011),u=r(50087),m=r(59688),x=r(31777),p=r(29978),f=r(21017),h=r(49761),g=r(68807),b=r(76917),_=r(62945),y=r(18847),j=r.n(y),N=r(15041),v=r(85624);let w={width:"100%",height:"100%"},k=()=>(0,t.jsx)("div",{className:"w-full h-full bg-gray-100 dark:bg-gray-800 rounded-lg animate-pulse"}),$=j()(()=>Promise.all([r.e(6666),r.e(1805),r.e(4374)]).then(r.bind(r,44374)),{loadableGenerated:{webpack:()=>[44374]},ssr:!1,loading:()=>(0,t.jsx)(k,{})}),A=({latitude:e,longitude:l,isLoaded:r,loadError:a,mapProvider:d,isClicked:n,onLocationChange:c,currentFormValues:m=null})=>{let p=(0,g.B)(),f=(0,i.hJ)(),b=(0,x.d4)(e=>e?.location),[y,j]=(0,s.useState)(!1),[A,E]=(0,s.useState)(null),[S,C]=(0,s.useState)(14),[R,D]=(0,s.useState)(""),[z,B]=(0,s.use
1State)([]),[T,L]=(0,s.useState)(-1),[P,q]=(0,s.useState)(!1),[M,F]=(0,s.useState)(!1),[J,O]=(0,s.useState)(null),H=(0,s.useRef)(null),Q=b?.lat,K=b?.lng,[U,I]=(0,s.useState)(()=>e&&l?{lat:Number(e),lng:Number(l)}:Q&&K?{lat:Number(Q),lng:Number(K)}:null),V=(e,l)=>{if(null==e||""===e||null==l||""===l)return null;let r=Number(e),t=Number(l);return isNaN(r)||isNaN(t)||r<-90||r>90||t<-180||t>180?null:{lat:r,lng:t}},G=async()=>{try{let r=null,t=!1;if(e&&l)r=V(e,l),t=!1;else if(Q&&K)r=V(Q,K),t=!0;else try{let e=await new Promise((e,l)=>{navigator.geolocation.getCurrentPosition(e,l,{timeout:5e3,maximumAge:0,enableHighAccuracy:!0})});r=V(e.coords.latitude,e.coords.longitude),t=!0}catch(e){console.log("Could not get current location:",e)}r&&r.lat&&r.lng?(I(r),t&&await X(r.lat,r.lng)):console.log("No valid coordinates available")}catch(e){console.error("Error initializing map:",e)}};(0,s.useEffect)(()=>{if(!e||!l||""===e||""===l){if(Q&&K){let e={lat:Number(Q),lng:Number(K)};I(e),A&&A.panTo(e),X(e.lat,e.lng)}else G();return}let r=V(e,l);r&&(I(r),A&&A.panTo(r))},[e,l,A,Q,K]),(0,s.useEffect)(()=>{if(!R.trim()||M){B([]),L(-1),O(null);return}let e=setTimeout(async()=>{j(!0),O(null);try{let e=await (0,h.Ow)({input:R}),l=await e?.data?.data;l.error_message||"REQUEST_DENIED"===l.status?(O("Location search is temporarily unavailable"),B([])):B(l.predictions||[]),L(-1)}catch(e){console.error("Error fetching places:",e),O("Location search is temporarily unavailable"),B([])}finally{j(!1)}},500);return()=>clearTimeout(e)},[R,M]);let X=async(e,l)=>{try{let r=await (0,h._y)({latitude:e,longitude:l}),t=r?.data?.data?.results?.[0]||r?.data?.data?.result;if(t){let r=t?.formatted_address||"Address not found",s=t?.address_components?.find(e=>e.types.includes("locality"))?.long_name||t?.city||"",a=t?.address_components?.find(e=>e.types.includes("sublocality")||e.types.includes("neighborhood")||e.types.includes("administrative_area_level_2"))?.long_name||"",o=t?.address_components?.find(e=>e.types.includes("street_number"))?.long_name||"",i=t?.address_components?.find(e=>e.types.includes("route"))?.long_name||"",d=r;o&&i?d=`${o} ${i}, ${a}, ${s}`:i?d=`${i}, ${a}, ${s}`:a&&""!==a&&(d=`${a}, ${s}`);let n={lat:e,lng:l,address:m?.address&&""!==m.address.trim()?m.address:d,city:m?.city&&""!==m.city.trim()?m.city:s,area:m?.area&&""!==m.area.trim()?m.area:a,fullAddress:r};c(n)}else c({lat:e,lng:l,address:"",city:"",area:"",fullAddress:""})}catch(r){console.error("Error with custom reverse geocoding API:",r),c({lat:e,lng:l,address:"",city:"",area:"",fullAddress:""})}},Z=async(e,l)=>{let r=V(e,l);if(!r)return void console.error("Invalid coordinates from drag");I(r),A&&A.panTo(r);try{await X(r.lat,r.lng)}catch(e){console.error("Reverse geocoding failed:",e),c({lat:r.lat,lng:r.lng,address:"",city:"",area:"",fullAddress:""})}},W=async e=>{F(!0),j(!0);try{let l=await (0,h._y)({place_id:e?.place_id}),r=l?.data?.data?.result||l?.data?.data?.results?.[0];if(!r)return void console.error("No place details found");let t=r.geometry?.location?.lat,s=r.geometry?.location?.lng;if(t&&s){I({lat:t,lng:s}),C(18),A&&A.panTo({lat:t,lng:s});let e=r?.address_components?.find(e=>e.types.includes("locality"))?.long_name||r?.city||"",l=r?.address_components?.find(e=>e.types.includes("sublocality")||e.types.includes("neighborhood")||e.types.includes("administrative_area_level_2"))?.long_name||"",a=r?.address_components?.find(e=>e.types.includes("street_number"))?.long_name||"",o=r?.address_components?.find(e=>e.types.includes("route"))?.long_name||"",i=r.formatted_address;a&&o?i=`${a} ${o}, ${l}, ${e}`:o?i=`${o}, ${l}, ${e}`:l&&""!==l&&(i=`${l}, ${e}`);let d={lat:t,lng:s,address:m?.address&&""!==m.address.trim()?m.address:i,city:m?.city&&""!==m.city.trim()?m.city:e,area:m?.area&&""!==m.area.trim()?m.area:l,fullAddress:r.formatted_address};c(d),D(""),B([]),L(-1),H.current?.blur(),q(!1),O(null)}}catch(e){console.error("Failed to fetch place details:",e),O("Error fetching place details")}finally{j(!1),setTimeout(()=>F(!1),500)}};return a?(0,t.jsx)("div",{children:"Error loading Google Maps"}):r?(0,t.jsxs)("div",{className:"relative w-full h-full",children:[(0,t.jsx)("div",{className:(0,o.cn)("absolute z-[1001] w-full p-4 transition-all duration-700",{"top-0 opacity-100":n,"-top-16 opacity-0":!n}),children:(0,t.jsxs)("div",{className:`relative flex items-center gap-3 card_bg p-2 w-full border rounded-xl transition-all duration-300
2        ${y||z.length>0||J?"rounded-b-none":"rounded-xl"}`,children:[(0,t.jsx)(N.KSO,{}),(0,t.jsx)("input",{ref:H,className:"ml-2 focus:outline-none w-full text-sm sm:text-base bg-transparent",placeholder:p("enterLocation"),value:R,onChange:e=>{D(e.target.value),J&&O(null)},onKeyDown:e=>{0!==z.length&&("ArrowDown"===e.key?L(e=>e<z.length-1?e+1:0):"ArrowUp"===e.key?L(e=>e>0?e-1:z.length-1):"Enter"===e.key&&-1!==T&&W(z[T]))},onFocus:()=>q(!0),onBlur:()=>setTimeout(()=>q(!1),200)}),R.trim()&&(y||z.length>0||J)&&(0,t.jsx)(t.Fragment,{children:y?(0,t.jsx)(()=>(0,t.jsx)("div",{className:"absolute z-10 w-full top-[40px] left-0 card_bg rounded-b-xl shadow-lg max-h-60 overflow-y-auto primary_text_color",children:[1,2,3].map(e=>(0,t.jsxs)("div",{className:"p-2 flex items-center gap-3 border-dashed border-b border-t-0 border-l-0 border-r-0 border last:border-none",children:[(0,t.jsx)(v.E,{className:"h-6 w-6 rounded-full"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)(v.E,{className:"h-4 w-3/4"}),(0,t.jsx)(v.E,{className:"h-3 w-1/2"})]})]},e))}),{}):J?(0,t.jsx)(({message:e})=>(0,t.jsxs)("div",{className:"absolute z-50 w-full top-[40px] left-0 card_bg rounded-b-xl shadow-lg p-4 text-center description_color",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 primary_text_color mb-2",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),(0,t.jsx)("span",{className:"font-medium",children:"Notice"})]}),(0,t.jsx)("p",{className:"text-sm",children:e})]}),{message:J}):(0,t.jsx)("div",{className:"absolute z-50 w-full top-[40px] left-0 card_bg rounded-b-xl shadow-lg max-h-60 overflow-hidden overflow-y-auto primary_text_color",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:z.length>0?z.map((e,l)=>
2(0,t.jsxs)("div",{className:`cursor-pointer  p-2 flex items-center gap-3 border-dashed border-b border-t-0 border-l-0 border-r-0 border last:border-none ${l===T?"primary_bg_color text-white":""}`,onClick:()=>W(e),children:[(0,t.jsx)("span",{children:(0,t.jsx)(u.o9J,{size:22})}),(0,t.jsx)("span",{children:e.description})]},e.place_id)):(0,t.jsx)("div",{className:"p-4 text-center description_color",children:p("noResultsFound")})})})]})}),"openstreetmap"===d?(0,t.jsx)($,{markerPosition:U,zoom:S,isDarkMode:f,showProviders:!1,selectionMode:!0,providers:[],onMapReady:e=>E(e),onMarkerDragEnd:Z,onMapClick:()=>{}}):(0,t.jsx)(_.u6,{className:"map_box w-full relative",center:U,zoom:S,mapContainerStyle:w,options:{fullscreenControl:!1,mapTypeControl:!1,streetViewControl:!1,zoomControl:!0,styles:f?i.U5:[]},onLoad:e=>E(e),children:(0,t.jsx)(_.X0,{position:U,draggable:!0,onDragEnd:e=>Z(e.latLng.lat(),e.latLng.lng())})})]}):(0,t.jsx)(k,{})},E=e=>{let{isLoaded:l,loadError:r}=(0,i.rG)();return(0,t.jsx)(A,{...e,isLoaded:l,loadError:r,mapProvider:"google"})},S=e=>(0,t.jsx)(A,{...e,isLoaded:!0,loadError:null,mapProvider:"openstreetmap"}),C=e=>"openstreetmap"===(0,i.DS)()?(0,t.jsx)(S,{...e}):(0,t.jsx)(E,{...e});var R=r(52310),D=r(59611);
2let z="w-full px-3 py-2.5 border background_color rounded-lg text-sm transition-all duration-300 focus:outline-none focus:border_color focus:light_bg_color",B=({label:e,required:l,hint:r,children:s})=>(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("label",{className:"text-xs font-semibold description_color flex items-center gap-1 flex-wrap",children:[e,l&&(0,t.jsx)("span",{className:"text-red-500 font-bold",children:"*"}),r&&(0,t.jsxs)("span",{className:"text-[10px] font-normal opacity-50 ml-1",children:["(",r,")"]})]}),s]}),T=()=>(0,t.jsxs)("div",{className:"flex flex-col gap-1 animate-pulse",children:[(0,t.jsx)("div",{className:"h-3 w-1/3 background_color rounded opacity-50"}),(0,t.jsx)("div",{className:"h-10 w-full background_color rounded-lg opacity-40"})]}),L=({open:e,onClose:l,defaultAddress:r,setDefaultAddress:_,addresses:y,setAddresses:j,onUpdateAddress:N})=>{let v=(0,g.B)(),w=(0,x.wA)(),k=(0,x.d4)(e=>e.cart),$=(0,x.d4)(f.gL),A=(0,i.Qo)(),[E,S]=(0,s.useState)(!1),[L,P]=(0,s.useState)(null),[q,M]=(0,s.use
2State)(!1),[F,J]=(0,s.useState)([]),[O,H]=(0,s.useState)({}),[Q,K]=(0,s.useState)(!1),U=(0,s.useRef)(!1),I=()=>{l()};(0,s.useEffect)(()=>{if(r&&e){P(r);let e=y.filter(e=>e.id!==r.id);j([r,...e])}},[r,e]),(0,s.useEffect)(()=>{e&&!U.current&&(U.current=!0,V(r?.id||"")),e||(U.current=!1)},[e]);let V=async e=>{K(!0);try{let l=await (0,h.ZK)({address_id:e});if(l?.error===!1){let e=(l?.data?.custom_fields||[]).filter(e=>e.visible);J(e),X(l?.data?.customer_address_custom_fields||[])}}catch(e){console.error("Error fetching address custom fields:",e)}finally{K(!1)}},G=async e=>{try{let l=await (0,h.ZK)({address_id:e});l?.error===!1&&X(l?.data?.customer_address_custom_fields||[])}catch(e){console.error("Error fetching custom field values:",e)}},X=e=>{let l={};e.forEach(e=>{l[e.custom_field_id]=e.value}),H(l)},[Z,W]=(0,s.useState)({id:r?.id?r?.id:"",mobile:r?.mobile?r?.mobile:$?.phone?$?.phone:"",type:r?.type?r?.type:"",is_default:r?.is_default==="1"}),[Y,ee]=(0,s.useState)({lat:r?.lattitude?Number(r?.lattitude):"",lng:r?.longitude?Number(r?.longitude):""});(0,s.useEffect)(()=>{r&&(W({id:r.id||"",mobile:r.mobile||$?.phone||"",type:r.type||"",is_default:"1"===r.is_default}),ee({lat:r.lattitude?Number(r.lattitude):"",lng:r.longitude?Number(r.longitude):""}))},[r]);let el=async e=>{let l=Number(e?.lattitude),r=Number(e?.longitude);if(isNaN(l)||isNaN(r))return void m.oR.error(v("invalidCoordinates"));P(e),S(!1);let t=y.find(l=>l.id===e?.id);t&&(W({id:t.id||"",mobile:t.mobile||$?.phone||"",type:t.type||"",is_default:"1"===t.is_default}),ee({lat:l,lng:r}),t.id&&await G(t.id))},er=()=>{W({id:"",mobile:$?.phone?$?.phone:"",type:"",is_default:!1}),ee({lat:"",lng:""}),H({})},et=async()=>{if(!Z.type)return void m.oR.error(v("pleaseSelectAddressType"));if(!Z.mobile)return void m.oR.error(v("pleaseEnterMobileNumber"));if(!(()=>{for(let e of F)if(e.required&&!O[e.id])return m.oR.error(`${v("pleaseEnter")} ${e.translated_label}`),!1;return!0})())return;let e={id:Z.id||"",type:Z.type,mobile:Z.mobile,lattitude:Y.lat,longitude:Y.lng,is_default:Z.is_default?"1":"0"},l=F.map(e=>({custom_field_id:e.id,value:O[e.id]||""})).filter(e=>""!==e.value);M(!0);try{let r=await (0,h.SS)({id:e.id,type:e.type,mobile:e.mobile,lattitude:e.lattitude,longitude:e.longitude,is_default:e.is_default,custom_fields:l.length>0?JSON.stringify(l):""});if(r?.error===!1){let e=r?.data;N(e),j(l=>l.find(l=>l.id===e.id)?[e,...l.filter(l=>l.id!==e.id)]:[e,...l]),_(e),w((0,p.we)({...k,dilevryLocation:e})),(0,R.VU)(D.bl.ADDRESS_ADDED,{address_id:e?.id,is_default:e?.is_default==="1",has_coordinates:!!(e?.lattitude&&e?.longitude)}),M(!1),I(),m.oR.success(r?.message)}}catch(e){m.oR.error(e?.message),console.log(e),M(!1)}},es=F.filter(e=>"file"!==e.field_type).sort((e,l)=>e.sort_order-l.sort_order),ea=!!Z.type&&!!Z.mobile&&F.every(e=>!e.required||!!O[e.id]);return(0,t.jsx)(a._s,{open:e,onClose:I,closeOnClickOutside:!1,children:(0,t.jsx)(a.zj,{className:(0,o.cn)("max-w-full md:max-w-[90%] lg:max-w-[85%] xl:max-w-7xl mx-auto rounded-tr-[18px] rounded-tl-[18px]","transition-all duration-300","after:!content-none","!h-auto"),children:(0,t.jsxs)("div",{className:"address w-full flex flex-col lg:flex-row gap-6 py-4 px-4 md:p-6 lg:p-8 xl:p-10",children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)("div",{className:"schedule_cal w-full",children:(0,t.jsx)("div",{className:"w-full rounded-lg overflow-hidden h-[300px] md:h-[350px] lg:h-[650px]",children:(0,t.jsx)(C,{isClicked:!0,latitude:Y?.lat,longitude:Y?.lng,onLocationChange:e=>{ee({lat:e.lat,lng:e.lng})}})})})}),(0,t.jsxs)("div",{className:"w-full lg:w-1/2 flex flex-col gap-4 md:gap-5 max-h-[80vh] lg:max-h-[650px]",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,t.jsx)("h2",{className:"text-xl md:text-2xl font-bold",children:E?v("addNewAddress"):v("selectAddress")}),(0,t.jsxs)("button",{onClick:()=>{S(e=>!e),P(null),er(),ee({lat:"",lng:""})},className:"flex items-center gap-2 light_bg_color primary_text_color px-3 py-1 md:px-4 md:py-1 rounded-lg text-sm md:text-base font-normal",children:[(0,t.jsx)("span",{children:v("addAddress")}),(0,t.jsx)("span",{className:`transition-transform duration-300 ${E?"rotate-45":"rotate-0"}`,children:(0,t.jsx)(c.fAo,{size:18})})]})]}),y&&y.length>0&&(0,t.jsx)("div",{className:"address_div w-full",children:(0,t.jsx)(d.RC,{spaceBetween:10,slidesPerView:"auto",modules:[n.U1],freeMode:!0,dir:A?"rtl":"ltr",className:"!pb-2",children:y.map(e=>(0,t.jsx)(d.qr,{className:"!w-auto !h-auto min-w-[180px] max-w-[250px]",children:(0,t.jsxs)("div",{onClick:()=>el(e),className:`h-full p-3 border ${L?.id===e.id?"border_color":""} flex flex-col gap-2 items-start rounded-xl cursor-pointer`,children:[(0,t.jsxs)("div",{className:`text-sm md:text-base flex items-center justify-between ${L?.id===e.id?"primary_text_color":"description_color"} w-full`,children:[(0,t.jsx)("span",{children:e.type}),L?.id===e.id&&(0,t.jsx)(u.KDk,{size:16})]}),(0,t.jsx)("div",{className:"text-base font-medium line-clamp-1",children:e.city_name||e.city})]})},e.id))},A)}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto pr-1 flex flex-col gap-4 min-h-0",children:[(0,t.jsx)(B,{label:v("mobile"),required:!0,children:(0,t.jsx)("input",{name:"mobile",type:"text",value:Z.mobile,onChange:e=>{let{name:l,value:r}=e.target;if("mobile"===l){let e=r.replace(/\D/g,"");W(r=>({...r,[l]:e}))}else W(e=>({...e,[l]:r}))},placeholder:`${v("enter")} ${v("mobile")}`,className:z})}),Q?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T,{}),(0,t.jsx)(T,{}),(0,t.jsx)(T,{})]}):es.map(e=>
2(0,t.jsx)(B,{label:e.translated_label,required:!!e.required,children:(0,t.jsx)("input",{type:"text",value:O[e.id]||"",onChange:l=>{var r,t;return r=e.id,t=l.target.value,void H(e=>({...e,[r]:t}))},placeholder:`${v("enter")} ${e.translated_label}`,className:z})},e.id)),(0,t.jsx)(B,{label:v("addressType"),required:!0,children:(0,t.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:["home","office","other"].map(e=>(0,t.jsx)("button",{onClick:()=>{W(l=>({...l,type:e}))},className:`py-2 px-4 border rounded-lg transition-all text-sm font-medium ${Z.type===e?"light_bg_color primary_text_color border_color":"background_color description_color"}`,children:v(e)},e))})}),(0,t.jsxs)("label",{htmlFor:"setDefaultAddress",className:`flex items-center justify-between cursor-pointer px-4 py-3 border rounded-xl transition-all duration-300 ${Z.is_default?"light_bg_color border_color":"background_color"}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("span",{className:`transition-colors duration-300 ${Z.is_default?"primary_text_color":"description_color"}`,children:Z.is_default?(0,t.jsx)(u.DBe,{size:18}):(0,t.jsx)(u.BQ5,{size:18})}),(0,t.jsx)("span",{className:`text-sm font-medium transition-colors duration-300 ${Z.is_default?"primary_text_color":""}`,children:v("setDefaultAddress")})]}),(0,t.jsx)("div",{className:`relative w-10 h-[22px] rounded-full transition-colors duration-300 flex-shrink-0 ${Z.is_default?"primary_bg_color":"bg-gray-200"}`,children:(0,t.jsx)("div",{className:`absolute top-[2px] w-[18px] h-[18px] bg-white rounded-full shadow transition-transform duration-300 ${Z.is_default?"translate-x-[20px]":"translate-x-[2px]"}`})}),(0,t.jsx)("input",{type:"checkbox",id:"setDefaultAddress",checked:Z.is_default,onChange:()=>{W(e=>({...e,is_default:!e.is_default}))},className:"sr-only"})]})]}),(0,t.jsxs)("div",{className:"flex-shrink-0 pt-3 border-t flex items-center gap-3",children:[(0,t.jsx)("button",{onClick:er,className:"px-5 py-3 border rounded-xl text-sm font-medium description_color background_color transition-all duration-200 hover:border_color hover:primary_text_color flex-shrink-0",children:v("clear")||"Clear"}),q?(0,t.jsx)("button",{className:"primary_bg_color primary_text_color py-3 px-8 rounded-xl flex-1 flex items-center justify-center",children:(0,t.jsx)(b.A,{})}):(0,t.jsx)("button",{onClick:et,disabled:!ea,className:`flex-1 p-3 rounded-xl text-sm md:text-base font-medium text-white transition-all duration-200 ${ea?"primary_bg_color cursor-pointer":"bg-gray-300 cursor-not-allowed opacity-60"}`,children:v("continue")})]})]})]})})})}},70031:()=>{},71789:()=>{},72206:(e,l,r)=>{"use strict";r.d(l,{J5:()=>n,Qp:()=>d,tH:()=>c});var t=r(37876),s=r(14232),a=r(82987),o=r(86850),i=(r(11885),r(3408));let d=s.forwardRef(({...e},l)=>(0,t.jsx)("nav",{ref:l,"aria-label":"breadcrumb",...e}));d.displayName="Breadcrumb",s.forwardRef(({className:e,...l},r)=>(0,t.jsx)("ol",{ref:r,className:(0,i.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...l})).displayName="BreadcrumbList";let n=s.forwardRef(({className:e,...l},r)=>(0,t.jsx)("li",{ref:r,className:(0,i.cn)("inline-flex items-center gap-1.5",e),...l}));n.displayName="BreadcrumbItem",s.forwardRef(({asChild:e,className:l,...r},s)=>{let o=e?a.DX:"a";return(0,t.jsx)(o,{ref:s,className:(0,i.cn)("transition-colors hover:text-foreground",l),...r})}).displayName="BreadcrumbLink",s.forwardRef(({className:e,...l},r)=>(0,t.jsx)("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:(0,i.cn)("font-normal text-foreground",e),...l})).displayName="BreadcrumbPage";let c=({children:e,className:l,...r})=>(0,t.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,i.cn)("[&>svg]:w-3.5 [&>svg]:h-3.5",l),...r,children:e??(0,t.jsx)(o.A,{})});c.displayName="BreadcrumbSeparator"},85624:(e,l,r)=>{"use strict";r.d(l,{E:()=>a});var t=r(37876),s=r(3408);function a({className:e,...l}){return(0,t.jsx)("div",{className:(0,s.cn)("skeleton animate-pulse rounded-md background_color",e),...l})}}}]);

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.