PageSourceSearch

https://www.carmandi.pk/_next/static/chunks/8754-9b5dcdaad9948fe7.js

js carmandi.pk collected 2026-10-02 02:05:34 UTC 60,119 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8754],{68754:function(e,t,r){r.d(t,{Header:function(){return L},default:function(){return F}});var n=r(57437),a=r(2265),o=r(27648),i=r(33145),l=r(99376),s=r(65934),c=r(40875),d=r(25466),u=r(94766),f=r(88997),h=r(47692),x=r(32489),p=r(18930),m=r(85995),v=r(43741),b=r(10786),g=r(79558),w=r(54515),y=r(80577),j=r(46374),N=r(35971),k=r(26098);let E=[{label:"EV Calculator",href:"/ev-calculator"},{label:"About",href:"/about"},{label:"Contact",href:"/contact"}];function _(){let e=(0,l.usePathname)(),t=(0,a.useRef)(null),[r,i]=(0,a.useState)(!1),s=E.some(t=>{let{href:r}=t;return e===r||(null==e?void 0:e.startsWith("".concat(r,"/")))});return(0,a.useEffect)(()=>{i(!1)},[e]),(0,a.useEffect)(()=>{if(!r)return;let e=e=>{var r;(null===(r=t.current)||void 0===r?void 0:r.contains(e.target))||i(!1)},n=e=>{"Escape"===e.key&&i(!1)};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",n),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",n)}},[r]),(0,n.jsx)("li",{className:"flex-none",children:(0,n.jsxs)("div",{ref:t,className:"relative",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[(0,n.jsxs)("button",{type:"button","aria-haspopup":"menu","aria-expanded":r,onClick:()=>i(e=>!e),className:"flex h-[35px] items-center gap-1 text-[13px] leading-[135%] transition-colors duration-200 hover:text-[var(--color-brand-primary)] xl:text-[14px] 2xl:text-[16px] ".concat(s?"font-semibold text-[var(--color-brand-primary)]":"font-light text-[var(--color-neutral-dark)]"),children:["More",(0,n.jsx)(c.Z,{size:14,"aria-hidden":"true",className:"transition-transform duration-200 ".concat(r?"rotate-180":"")})]}),r&&(0,n.jsx)("div",{className:"absolute left-1/2 top-full z-[70] min-w-[176px] -translate-x-1/2 pt-2",children:(0,n.jsx)("div",{role:"menu","aria-label":"More navigation",className:"overflow-hidden rounded-[8px] border border-[var(--color-border-light)] bg-white py-1 shadow-[0_12px_32px_rgba(15,23,42,0.14)]",children:E.map(t=>{let r=e===t.href||(null==e?void 0:e.startsWith("".concat(t.href,"/")));return(0,n.jsx)(o.default,{href:t.href,role:"menuitem",className:"block px-4 py-2.5 text-[14px] transition-colors hover:bg-[var(--color-surface-muted)] hover:text-[var(--color-brand-primary)] ".concat(r?"font-semibold text-[var(--color-brand-primary)]":"font-normal text-[var(--color-neutral-dark)]"),children:t.label},t.href)})})})]})})}var S=r(42971),C=r(10210);let A=e=>{if(!e)return"";let t=RegExp("Contact\\s+the\\s+seller","gi");return e.replace(t,"Contact us")};function L(e){var t,r,E,L,F;let{transparent:P=!1}=e,{data:T}=(0,s.kP)(),I=(0,l.useRouter)(),R=null!==(r=null==T?void 0:T.user)&&void 0!==r?r:void 0,M=(0,l.usePathname)(),[B,D]=(0,a.useState)(!1),[W,z]=(0,a.useState)(!1),O=!!(null==R?void 0:R.id),U=(null==R?void 0:R.profile_picture)||(null==R?void 0:R.avatar)||"",[K,Z]=(0,a.useState)(U),[H,G]=(0,a.useState)(0),[V,q]=(0,a.useState)(!1),[J,X]=(0,a.useState)(!1),[Y,$]=(0,a.useState)(""),[Q,ee]=(0,a.useState)([]),[et,er]=(0,a.useState)(null),[en,ea]=(0,a.useState)(!1),[eo,ei]=(0,a.useState)(!1),[el,es]=(0,a.useState)(""),[ec,ed]=(0,a.useState)([]),[eu,ef]=(0,a.useState)(0),{wishlistIds:eh,loaded:ex}=(0,b.E)(),ep=null!==(F=null!==(L=null!==(E=null==R?void 0:R.plan)&&void 0!==E?E:null==R?void 0:R.currentPlan)&&void 0!==L?L:null==R?void 0:R.subscription_plan)&&void 0!==F?F:"basic",em=(0,y.u)(String(ep)),ev=ex?eh.size:0,eb=ev>0,eg=O&&W,[ew,ey]=(0,a.useState)("generic");(0,a.useEffect)(()=>{ey(function(){if("undefined"==typeof navigator)return"generic";let e=navigator.userAgent||"",t=navigator.platform||"",r=navigator.maxTouchPoints||0,n=/android/i.test(e),a=/iphone|ipod/i.test(e),o=/ipad/i.test(e)||"MacIntel"===t&&r>1;return n?"android":a||o?"ios":"generic"}())},[]);let ej=()=>{window.dispatchEvent(new Event("notifications:updated"))},eN=e=>{var t;let r="string"==typeof(null==e?void 0:e.href)&&e.href||"string"==typeof(null==e?void 0:e.url)&&e.url||"string"==typeof(null==e?void 0:e.link)&&e.link||"string"==typeof(null==e?void 0:e.action_url)&&e.action_url||"string"==typeof(null==e?void 0:e.cta_url)&&e.cta_url||"string"==typeof(null==e?void 0:e.ctaUrl)&&e.ctaUrl||"string"==typeof(null==e?void 0:e.target_url)&&e.target_url||"string"==typeof(null==e?void 0:e.redirect_url)&&e.redirect_url||null;if(r){if(r.startsWith("/"))return r;if(r.startsWith("http://")||r.startsWith("https://"))try{let e=new URL(r);if(e.origin===window.location.origin)return"".concat(e.pathname).concat(e.search).concat(e.hash);return r}catch(e){return null}}let n="string"==typeof(null==e?void 0:e.auction_slug)&&e.auction_slug||"string"==typeof(null==e?void 0:e.auctionSlug)&&e.auctionSlug||"string"==typeof(null==e?void 0:e.slug)&&e.slug||null;if(n)return"/auctions/".concat(n);let a=null!==(t=null==e?void 0:e.auction_id)&&void 0!==t?t:null==e?void 0:e.auctionId;return"string"==typeof a||"number"==typeof a?"/auctions/".concat(String(a)):null},ek=async e=>{let t="string"==typeof e.id||"number"==typeof e.id?String(e.id).trim():"";if(!(0,j.R)(e)&&t){ed(t=>t.map(t=>String(t.id)===String(e.id)?{...t,is_read:!0}:t)),G(e=>Math.max(0,e-1));try{await fetch("/api/notifications/".concat(encodeURIComponent(t),"/mark-read"),{method:"POST",credentials:"include"})}catch(e){}ej()}if(ea(!1),e.href){if(e.href.startsWith("http://")||e.href.startsWith("https://")){window.location.href=e.href;return}I.push(e.href)}},eE=async()=>
1{if(ec.some(e=>!(0,j.R)(e))){ed(e=>e.map(e=>({...e,is_read:!0}))),G(0);try{await fetch("/api/notifications/mark-all-read",{method:"POST",credentials:"include"})}catch(e){}ej()}};(0,a.useEffect)(()=>{if(!O)return;let e=async()=>{try{var e;let t=await fetch("/api/notifications/unread-count",{cache:"no-store"});if(!t.ok)return;let r=await t.json(),n=Number(null!==(e=null==r?void 0:r.count)&&void 0!==e?e:0);G(Number.isFinite(n)?n:0)}catch(e){}},t=()=>{e()},r=()=>{"visible"===document.visibilityState&&t()},n=(0,k.F)(()=>{e()},1800),a=setInterval(()=>{"visible"===document.visibilityState&&t()},3e4);return window.addEventListener("focus",t),window.addEventListener("notifications:updated",t),document.addEventListener("visibilitychange",r),()=>{n.cancel(),clearInterval(a),window.removeEventListener("focus",t),window.removeEventListener("notifications:updated",t),document.removeEventListener("visibilitychange",r)}},[O]),(0,a.useEffect)(()=>{Z(U||"")},[U]),(0,a.useEffect)(()=>{eg&&(async()=>{try{let e=await fetch("/api/user/profile",{cache:"no-store"});if(!e.ok)return;let t=await e.json(),r=(null==t?void 0:t.profile_picture)||(null==t?void 0:t.avatar)||"";r&&r!==K&&Z(r)}catch(e){}})()},[K,eg]),(0,a.useEffect)(()=>{if(!V||!O)return;let e=!1;return(async()=>{X(!0),$("");try{let t=await (0,g.o)("/api/wishlist?limit=20&offset=0",{method:"GET"});if(!t.ok)throw Error("Wishlist request failed (".concat(t.status,")"));let r=await t.json(),n=Array.isArray(null==r?void 0:r.items)?r.items.map(e=>{var t,r;return{id:String(null!==(r=null!==(t=e.id)&&void 0!==t?t:e.auctionId)&&void 0!==r?r:""),slug:"string"==typeof e.slug?e.slug:void 0,title:String(e.title||"Auction"),image:String(e.image||"/images/cars/default-car.jpg"),price:Number(e.price||0),location:"string"==typeof e.location?e.location:"string"==typeof e.registrationCity?e.registrationCity:"Lahore"}}).filter(e=>e.id):[];e||ee(n)}catch(t){e||$("Unable to load wishlist right now.")}finally{e||X(!1)}})(),()=>{e=!0}},[O,V]),(0,a.useEffect)(()=>{V&&ex&&ee(e=>e.filter(e=>eh.has(String(e.id))))},[V,eh,ex]),(0,a.useEffect)(()=>{if(!O)return;let e=()=>{en||ef(e=>e+1)};return window.addEventListener("notifications:updated",e),()=>{window.removeEventListener("notifications:updated",e)}},[O,en]),(0,a.useEffect)(()=>{if(!O||!en)return;let e=!1;return(async()=>{ei(!0),es("");try{let t=await fetch("/api/notifications?limit=50",{cache:"no-store",credentials:"include"});if(!t.ok)throw Error("Notifications request failed (".concat(t.status,")"));let r=await t.text(),n=null;try{n=JSON.parse(r)}catch(e){n=null}let a=Array.isArray(n)?n:(null==n?void 0:n.items)||(null==n?void 0:n.notifications)||[],o=(Array.isArray(a)?a:[]).map(e=>({id:null==e?void 0:e.id,title:A((null==e?void 0:e.title)||"Notification"),message:A((null==e?void 0:e.message)||""),created_at:null==e?void 0:e.created_at,is_read:(0,j.R)(e),href:eN(e)})).filter(e=>null!=e.id);if(o.sort((e,t)=>{let r=e.created_at?new Date(e.created_at).getTime():0;return(t.created_at?new Date(t.created_at).getTime():0)-r}),!e){let e=o.some(e=>!(0,j.R)(e));en&&e?(ed(o),fetch("/api/notifications/mark-all-seen",{method:"POST",credentials:"include"}).catch(()=>{})):ed(o)}}catch(t){e||es("Unable to load notifications right now.")}finally{e||ei(!1)}})(),()=>{e=!0}},[O,en,eu]);let e_=async e=>{if(e&&et!==e){er(e),ee(t=>t.filter(t=>t.id!==e));try{(await (0,g.o)("/api/wishlist/".concat(encodeURIComponent(e)),{method:"DELETE"})).ok||(ee(Q),$("Unable to update wishlist right now."))}catch(e){ee(Q),$("Unable to update wishlist right now.")}finally{er(null)}}},eS=e=>"/"===e?"/"===M:M.startsWith(e),eC="android"===ew?"Google Play":"App Store";return(0,n.jsxs)("header",{"data-primary-site-header":"true",className:"w-full ".concat(P?"bg-transparent border-none":"border-b border-[var(--color-border-light)] bg-white"),children:[(0,n.jsx)("div",{className:"lg:hidden bg-[var(--color-brand-primary-dark)] text-white",children:(0,n.jsxs)("div",{className:"mx-auto flex w-full items-center justify-between gap-3 px-4 py-2.5 sm:px-6",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("p",{className:"text-[12px] font-medium leading-4 text-white sm:text-[13px] sm:leading-5",children:"Download the CarMandi app"}),(0,n.jsx)("p",{className:"mt-0.5 text-[10px] leading-4 text-white/70 sm:text-[11px]",children:"Available on App Store and Google Play"})]}),(0,n.jsx)(o.default,{href:"android"===ew?"https://play.google.com/store/apps/details?id=com.app.carmandi":"https://apps.apple.com/us/app/car-mandi/id6760256733",target:"_blank",rel:"noopener noreferrer","aria-label":"Download CarMandi mobile app from ".concat(eC),className:"inline-flex h-8 shrink-0 items-center justify-center rounded-[8px] bg-[var(--color-brand-secondary)] px-3.5 text-[11px] font-semibold text-white transition-colors hover:bg-[var(--color-brand-secondary-hover)] focus:outline-none focus:ring-2 focus:ring-white/80",children:eC})]})}),(0,n.jsxs)("div",{className:"mobile-safe-header mx-auto flex w-full flex-row items-center justify-between gap-2 px-4 sm:gap-4 sm:px-6 lg:gap-3 lg:px-5 xl:gap-5 xl:px-6 2xl:gap-[31px] 2xl:px-8",style:{maxWidth:C.bK.container["2xl"]},children:[(0,n.jsx)(o.default,{href:"/",className:"flex flex-row items-center flex-1 lg:flex-none order-0 shrink-0",children:(0,n.jsx)("div",{className:"w-[142px] xs:w-[150px] sm:w-[160px] md:w-[168px] lg:w-[142px] xl:w-[156px] 2xl:w-[172px]",children:(0,n.jsx)(m.T,{width:"100%",height:"100%"})})}),(0,n.jsxs)("nav",{className:"order-1 hidden flex-none flex-row items-center gap-3 lg:flex xl:gap-5 2xl:gap-[30px]",children:[(0,n.jsxs)("ul",{className:"flex list-none flex-row items-center gap-3 xl:gap-4 2xl:gap-[24px]",children:[S.q.map(e=>{let t=eS(e.href);return(0,n.jsx)("li",{className:"flex-none",children:(0,n.jsx)(o.default,{href:e.href,className:"flex items-center text-[13px] leading-[135%] transition-colors duration-200 hover:text-[var(--color-brand-primary)] xl:text-[14px] 2xl:text-[16
1px] ".concat(t?"font-semibold text-[var(--color-brand-primary)]":"font-light text-[var(--color-neutral-dark)]"),children:e.label})},e.href)}),(0,n.jsx)(_,{})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-[8px]",children:[(0,n.jsx)(o.default,{href:S.A.sell.href,className:"box-border flex h-[35px] w-[108px] items-center justify-center rounded-[7.5px] border border-[var(--color-brand-secondary)] bg-white text-[13px] font-medium text-[var(--color-brand-secondary)] transition-all duration-200 hover:bg-[var(--color-brand-secondary)] hover:text-white xl:w-[118px] xl:text-[14px] 2xl:w-[129px] 2xl:text-[16px]",children:S.A.sell.label}),(null==T?void 0:T.user)?(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("button",{onClick:()=>{z(!W)},className:"box-border flex items-center justify-center min-w-[60px] px-3 h-[35px] border ".concat(P?"border-current":"border-[var(--color-border)]"," rounded-[7.5px] text-[16px] font-normal text-[var(--color-neutral-dark)] text-center transition-all duration-200 hover:border-[var(--color-brand-primary)] hover:text-[var(--color-brand-primary)] gap-2"),children:[(0,n.jsx)(N.Yt,{src:K,name:T.user.name,size:24,className:"rounded-[6px]",textClassName:"text-[12px]"}),(0,n.jsx)("span",{className:"hidden xl:inline",children:(null===(t=T.user.name)||void 0===t?void 0:t.split(" ")[0])||"User"}),(0,n.jsx)(c.Z,{size:14,className:"transition-transform ".concat(W?"rotate-180":"")})]}),W&&(0,n.jsxs)("div",{className:"absolute top-full right-0 mt-2 w-48 bg-white border border-[var(--color-border)] rounded-[7.5px] shadow-lg py-1 z-50",children:[(0,n.jsxs)("div",{className:"px-4 py-3 border-b border-[var(--color-border)] mb-1 flex items-center gap-3",children:[(0,n.jsx)(N.Yt,{src:K,name:T.user.name,size:40,className:"rounded-[6px]",textClassName:"text-[14px]"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-sm font-medium text-[var(--color-neutral-dark)] truncate",children:T.user.name}),(0,n.jsx)("p",{className:"text-xs text-[var(--color-neutral-700)] truncate",children:T.user.email})]})]}),(0,n.jsxs)(o.default,{href:"/dashboard",className:"flex items-center gap-2 px-4 py-2 text-sm text-[var(--color-neutral-dark)] hover:bg-[var(--color-border-lighter)]",onClick:()=>z(!1),children:[(0,n.jsx)(d.Z,{size:16}),"Dashboard"]}),(0,n.jsxs)(o.default,{href:"/pricing",className:"flex items-center gap-2 px-4 py-2 text-sm text-[var(--color-neutral-dark)] hover:bg-[var(--color-border-lighter)]",onClick:()=>z(!1),children:[(0,n.jsx)("span",{className:"w-4 h-4 rounded-full border border-[var(--color-neutral-dark)] inline-flex items-center justify-center text-[10px]",children:"$"}),"Current Plan: ",em]}),(0,n.jsxs)("button",{type:"button",className:"w-full flex items-center gap-2 px-4 py-2 text-sm text-[var(--color-neutral-dark)] hover:bg-[var(--color-border-lighter)] text-left",onClick:()=>{z(!1),ea(!0)},children:[(0,n.jsx)(u.Z,{size:16}),(0,n.jsx)("span",{children:"Notifications"}),H>0&&(0,n.jsx)("span",{className:"ml-auto min-w-[18px] h-[18px] px-1 rounded-full bg-[var(--color-status-danger)] text-white text-[10px] font-semibold flex items-center justify-center",children:H>99?"99+":H})]}),(0,n.jsxs)("button",{type:"button",className:"w-full flex items-center gap-2 px-4 py-2 text-sm text-[var(--color-neutral-dark)] hover:bg-[var(--color-border-lighter)] text-left",onClick:()=>{z(!1),q(!0)},children:[(0,n.jsx)(f.Z,{size:16,stroke:"var(--color-status-danger)",fill:"none"}),(0,n.jsx)("span",{children:"Wishlist"}),eb&&(0,n.jsx)("span",{className:"ml-auto min-w-[18px] h-[18px] px-1 rounded-full bg-[var(--color-status-danger)] text-white text-[10px] font-semibold flex items-center justify-center",children:ev>99?"99+":ev})]}),(0,n.jsxs)("button",{onClick:()=>{z(!1),(0,w.k)("/")},className:"w-full flex items-center gap-2 px-4 py-2 text-sm text-[var(--color-brand-secondary)] hover:bg-[var(--color-border-lighter)] text-left",children:[(0,n.jsx)(h.Z,{size:16}),"Logout"]})]})]}):(0,n.jsx)(o.default,{href:S.A.login.href,className:"box-border flex items-center justify-center w-[60px] h-[35px] border ".concat(P?"border-current":"border-[var(--color-border)]"," rounded-[7.5px] text-[16px] font-normal text-[var(--color-neutral-dark)] text-center transition-all duration-200 hover:border-[var(--color-brand-primary)] hover:text-[var(--color-brand-primary)]"),children:S.A.login.label})]})]}),(0,n.jsxs)("div",{className:"lg:hidden flex items-center gap-1",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>
1{if(!O){let e=encodeURIComponent(M||"/");I.push("/login?callbackUrl=".concat(e));return}ea(!0)},className:"relative w-9 h-9 transition-colors hover:bg-[var(--color-brand-primary-lighter)] rounded-full flex items-center justify-center group","aria-label":"Notifications",children:[(0,n.jsx)(u.Z,{size:22,className:"text-[var(--color-brand-primary)]"}),H>0&&(0,n.jsx)("span",{className:"absolute -right-1.5 -top-1.5 flex min-w-[18px] h-[18px] items-center justify-center rounded-full border-2 border-white bg-[var(--color-brand-secondary)] px-1 text-[10px] font-bold leading-none text-white shadow-[0_4px_10px_rgba(235,87,87,0.35)]",children:H>99?"99+":H})]}),(0,n.jsxs)(o.default,{href:"/wishlist",className:"relative w-9 h-9 transition-colors hover:bg-red-50 rounded-full flex items-center justify-center group","aria-label":"Favorites",children:[(0,n.jsx)(f.Z,{size:22,stroke:"var(--color-status-danger)",fill:"none"}),eb&&(0,n.jsx)("span",{className:"absolute -top-1 -right-1 min-w-[16px] h-[16px] px-1 rounded-full bg-[var(--color-status-danger)] text-white text-[9px] font-semibold leading-none flex items-center justify-center border border-white",children:ev>99?"99+":ev})]}),(0,n.jsx)(v.MobileMenu,{isOpen:B,onClose:()=>D(!1)})]})]}),V&&(0,n.jsx)("div",{className:"hidden lg:flex fixed inset-0 z-[10050] items-center justify-center p-6",children:(0,n.jsxs)("div",{className:"w-full max-w-[560px] max-h-[78vh] bg-white border border-[var(--color-border)] rounded-[16px] shadow-[0_20px_64px_rgba(0,0,0,0.22)] overflow-hidden relative",children:[(0,n.jsxs)("div",{className:"px-5 py-4 border-b border-[var(--color-border-light)] flex items-center justify-between",children:[(0,n.jsx)("h3",{className:"text-[22px] font-semibold text-[var(--color-neutral-dark)]",children:"Wishlist"}),(0,n.jsx)("button",{type:"button",className:"w-8 h-8 rounded-[8px] border border-[var(--color-border)] flex items-center justify-center text-[var(--color-neutral-700)] hover:text-[var(--color-neutral-dark)] hover:bg-[var(--color-surface-muted)]",onClick:()=>q(!1),"aria-label":"Close wishlist",children:(0,n.jsx)(x.Z,{size:16})})]}),(0,n.jsx)("div",{className:"max-h-[calc(78vh-132px)] overflow-y-auto p-4",children:J?(0,n.jsx)("p",{className:"text-[14px] text-[var(--color-neutral-700)] px-2 py-6",children:"Loading wishlist..."}):Y?(0,n.jsx)("p",{className:"text-[14px] text-[var(--color-brand-secondary-hover)] px-2 py-6",children:Y}):0===Q.length?(0,n.jsx)("p",{className:"text-[14px] text-[var(--color-neutral-700)] px-2 py-6",children:"No items in wishlist yet."}):(0,n.jsx)("div",{className:"space-y-2",children:Q.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-3 p-2 rounded-[12px] border border-[var(--color-border-light)] hover:bg-[var(--color-surface-muted)] transition-colors",children:[(0,n.jsx)(o.default,{href:"/auctions/".concat(e.slug||e.id),onClick:()=>q(!1),className:"relative w-[100px] h-[70px] rounded-[9px] overflow-hidden bg-[var(--color-border-lighter)] shrink-0",children:(0,n.jsx)(i.default,{src:e.image,alt:e.title,fill:!0,className:"object-cover",sizes:"100px"})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)(o.default,{href:"/auctions/".concat(e.slug||e.id),onClick:()=>q(!1),className:"text-[14px] font-medium text-[var(--color-neutral-dark)] line-clamp-1 hover:text-[var(--color-brand-primary)]",children:e.title}),(0,n.jsx)("p",{className:"text-[12px] text-[var(--color-neutral-700)] mt-0.5",children:e.location||"Lahore"}),(0,n.jsxs)("p",{className:"text-[14px] font-semibold text-[var(--color-brand-primary)] mt-1",children:["PKR ",e.price.toLocaleString("en-PK")]})]}),(0,n.jsx)("button",{type:"button",className:"w-[34px] h-[34px] shrink-0 rounded-[9px] border border-[var(--color-neutral-50)] text-[var(--color-brand-secondary-hover)] hover:bg-[var(--color-border-lighter)] flex items-center justify-center disabled:opacity-50",onClick:()=>e_(e.id),disabled:et===e.id,"aria-label":"Remove from wishlist",children:(0,n.jsx)(p.Z,{size:15})})]},e.id))})}),(0,n.jsx)("div",{className:"px-4 py-3 border-t border-[var(--color-border-light)] bg-[var(--color-surface)]",children:(0,n.jsx)(o.default,{href:"/wishlist",onClick:()=>q(!1),className:"w-full h-[42px] inline-flex items-center justify-center rounded-[10px] bg-[var(--color-brand-primary)] text-white text-[14px] font-medium hover:opacity-95",children:"View Full Wishlist"})})]})}),en&&(0,n.jsx)("div",{className:"fixed inset-0 z-[10050] flex items-end lg:items-center justify-center p-0 lg:p-6",children:(0,n.jsxs)("div",{className:"w-full lg:max-w-[560px] max-h-[86vh] lg:max-h-[78vh] bg-white border border-[var(--color-border)] rounded-t-[18px] lg:rounded-[16px] shadow-[0_20px_64px_rgba(0,0,0,0.22)] overflow-hidden relative",children:[(0,n.jsxs)("div",{className:"px-5 py-4 border-b border-[var(--color-border-light)] flex items-center justify-between",children:[(0,n.jsx)("h3",{className:"text-[22px] font-semibold text-[var(--color-neutral-dark)]",children:"Notifications"}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("button",{type:"button",className:"h-8 px-3 rounded-[8px] border border-[var(--color-border)] text-[12px] text-[var(--color-brand-primary)] hover:bg-[var(--color-surface-muted)] disabled:opacity-50",onClick:eE,disabled:!ec.some(e=>!(0,j.R)(e)),children:"Mark all as read"}),(0,n.jsx)("button",{type:"button",className:"w-8 h-8 rounded-[8px] border border-[var(--color-border)] flex items-center justify-center text-[var(--color-neutral-700)] hover:text-[var(--color-neutral-dark)] hover:bg-[var(--color-surface-muted)]",onClick:()=>ea(!1),"aria-label":"Close notifications",children:(0,n.jsx)(x.Z,{size:16})})]})]}),(0,n.jsx)("div",{className:"max-h-[calc(78vh-74px)] overflow-y-auto p-4 space-y-2",children:eo?(0,n.jsx)("p",{className:"text-[14px] text-[var(--color-neutral-700)] px-2 py-6",children:"Loading notifications..."}):el?(0,n.jsx)("p",{className:"text-[14px] text-[var(--color-brand-secondary-hover)] px-2 py-6",children:el}):0===ec.length?(0,n.jsx)("p",{className:"text-[14px] text-[var(--color-neutral-700)] px-2 py-6",children:"No notifications."}):ec.map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>ek(e),className:"w-full text-left flex items-start gap-3 rounded-[12px] border p-3 transition-colors ".concat((0,j.R)(e)?"border-[var(--color-border)] bg-white/80 opacity-75 hover:bg-[var(--color-surface-muted)] hover:opacity-90":"border-[var(--color-brand-primary-hover)] bg-[var(--color-brand-primary-lighter)] shadow-[inset_3px_0_0_var(--color-brand-primary)] hover:bg-[var(--color-brand-primary-lighter)]"),children:[(0,n.jsx)("div",{className:"w-9 h-9 rounded-full flex items-center justify-center shrink-0 ".concat((0,j.R)(e)?"bg-[var(--color-border-lighter)]":"bg-[var(--color-brand-primary-border)]"),children:(0,n.jsx)(u.Z,{className:"w-4 h-4 ".concat((0,j.R)(e)?"text-[var(--color-neutral-500)]":"text-[var(--color-brand-primary)]")})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)("p",{className:"text-[14px] line-clamp-1 ".concat((0,j.R)(e)?"font-medium text-[var(--color-neutral-750)]":"font-semibold text-[var(--color-neutral-dark)]"),children:e.title||"Notification"}),!(0,j.R)(e)&&(0,n.jsx)("span",{className:"mt-1 h-2 w-2 shrink-0 rounded-full bg-[var(--color-brand-primary)]"})]}),(0,n.jsx)("p",{className:"text-[13px] mt-0.5 leading-snug ".concat(((0,j.R)(e),"text-[var(--color-neutral-500)]")),children:e.message||""}),(0,n.jsx)("p",{className:"text-[11px] text-[var(--color-neutral-300)] mt-1.5",children:e.created_at?new Date(e.created_at).toLocaleStr
1ing():""})]})]},String(e.id)))})]})}),(W||V||en)&&(0,n.jsx)("div",{className:"fixed inset-0 ".concat(V||en?"z-[10040] bg-black/35 backdrop-blur-[1px]":"z-40 bg-transparent"),onClick:()=>{z(!1),q(!1),ea(!1)}})]})}var F=L},85995:function(e,t,r){r.d(t,{T:function(){return o}});var n=r(57437);let a={light:"/images/ui/logo-light.svg",dark:"/images/ui/logo-dark.svg"};function o(e){let{className:t="",width:r=326,height:o="auto",theme:i="light"}=e;return(0,n.jsx)("img",{src:a[i],alt:"CarMandi",className:t,style:{width:r,height:"100%"===o?"auto":o}})}},43741:function(e,t,r){r.d(t,{MobileMenu:function(){return f}});var n=r(57437),a=r(2265),o=r(27648),i=r(99376),l=r(32489),s=r(42971),c=r(10210);let d=[{label:"Inspect My Car",href:"/car-inspection"},{label:"Sell My Car",href:"/sell-your-car"},{label:"Verify My Auction Sheet",href:"/auction-sheet-verification"},{label:"Buy Verified Cars",href:"/auctions"},{label:"Find My Car",href:"/car-finder"}],u=[{label:"About Car Mandi",href:"/about"},{label:"How to bid with us",href:"/how-to-bid"},{label:"How to sell with us",href:"/how-to-sell"},{label:"Contact Us",href:"/contact"}];function f(e){var t;let{isOpen:r,onClose:f}=e,h=(0,i.usePathname)(),[x,p]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(r)p(!0),document.body.style.overflow="hidden";else{let e=setTimeout(()=>p(!1),300);return document.body.style.overflow="unset",()=>clearTimeout(e)}},[r]),(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&f()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[f]);let m=e=>"/"===e?"/"===h:!!(null==h?void 0:h.startsWith(e));return x||r?(0,n.jsxs)("div",{className:"fixed inset-0 z-50 lg:hidden font-outfit",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm transition-opacity duration-300 ".concat(r?"opacity-100":"opacity-0"),onClick:f,"aria-hidden":"true"}),(0,n.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-[280px] bg-white shadow-2xl transition-transform duration-300 ease-in-out ".concat(r?"translate-x-0":"translate-x-full"),style:{backgroundColor:(null===(t=c.O9.background)||void 0===t?void 0:t.main)||"var(--color-surface)"},children:(0,n.jsxs)("div",{className:"flex flex-col h-full p-6",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center mb-8",children:[(0,n.jsx)("span",{className:"text-lg font-bold text-[var(--color-brand-primary)]",children:"Menu"}),(0,n.jsx)("button",{onClick:f,className:"p-2 rounded-full hover:bg-gray-100 transition-colors","aria-label":"Close menu",children:(0,n.jsx)(l.Z,{className:"w-6 h-6 text-gray-900"})})]}),(0,n.jsx)("nav",{className:"flex-1 overflow-y-auto",children:(0,n.jsxs)("div",{className:"space-y-8",children:[(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[0.12em] text-[var(--color-neutral-500)]",children:"Account & Personalization"}),(0,n.jsxs)("ul",{className:"flex flex-col gap-4",children:[(0,n.jsx)("li",{children:(0,n.jsx)(o.default,{href:"/dashboard",onClick:f,className:"text-lg font-medium text-[var(--color-neutral-dark)] transition-colors hover:text-[var(--color-brand-primary)]",children:"More"})}),(0,n.jsx)("li",{children:(0,n.jsx)(o.default,{href:s.A.login.href,onClick:f,className:"text-lg font-medium text-[var(--color-neutral-dark)] transition-colors hover:text-[var(--color-brand-primary)]",children:s.A.login.label})})]})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[0.12em] text-[var(--color-neutral-500)]",children:"More Services"}),(0,n.jsx)("ul",{className:"flex flex-col gap-4",children:d.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(o.default,{href:e.href,onClick:f,className:"text-lg font-medium text-[var(--color-neutral-dark)] transition-colors hover:text-[var(--color-brand-primary)]",children:e.label})},e.href))})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[0.12em] text-[var(--color-neutral-500)]",children:"About Car Mandi"}),(0,n.jsx)("ul",{className:"flex flex-col gap-4",children:u.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(o.default,{href:e.href,onClick:f,className:"text-lg font-medium text-[var(--color-neutral-dark)] transition-colors hover:text-[var(--color-brand-primary)]",children:e.label})},e.href))})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[0.12em] text-[var(--color-neutral-500)]",children:"Main Navigation"}),(0,n.jsx)("ul",{className:"flex flex-col gap-4",children:s.q.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(o.default,{href:e.href,onClick:f,className:"text-lg block transition-colors ".concat(m(e.href)?"font-semibold text-[var(--color-brand-primary)]":"font-medium text-[var(--color-neutral-dark)]"),children:e.label})},e.href))})]})]})}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 mt-8 pt-6 border-t border-gray-100",children:[(0,n.jsx)(o.default,{href:s.A.sell.href,onClick:f,className:"w-full flex items-center justify-center h-[48px] bg-[var(--color-brand-secondary)] rounded-lg text-white font-semibold text-lg hover:bg-[var(--color-brand-secondary-hover)] transition-colors",children:s.A.sell.label}),(0,n.jsx)(o.default,{href:s.A.login.href,onClick:f,className:"w-full flex items-center justify-center h-[48px] border border-[var(--color-border)] rounded-lg text-[var(--color-neutral-dark)] font-medium text-lg hover:border-[var(--color-brand-primary)] hover:text-[var(--color-brand-primary)] transition-colors",children:s.A.login.label})]})]})})]}):null}},25404:function(e,t,r){r.r(t),r.d(t,{default:function(){return l}});var n=r(2265),a=r(99376),o=r(75395);let i=[o.x8.sellYourCarFlow,o.x8.inspectionBookingModalDraft];function l(){let e=(0,a.usePathname)();return(0,n.useEffect)(()=>
1{e&&i.forEach(t=>{(0,o.ho)(t,e)})},[e]),null}},96175:function(e,t,r){r.d(t,{ErrorBoundary:function(){return o},withErrorBoundary:function(){return i}});var n=r(57437),a=r(2265);class o extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){var r,n;console.error("ErrorBoundary caught an error:",e,t),null===(r=(n=this.props).onError)||void 0===r||r.call(n,e,t)}componentDidUpdate(e){this.state.hasError&&e.resetKey!==this.props.resetKey&&this.setState({hasError:!1,error:null})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8 bg-white rounded-xl border border-red-100",children:[(0,n.jsx)("div",{className:"w-16 h-16 mb-4 rounded-full bg-red-50 flex items-center justify-center",children:(0,n.jsx)("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,n.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Something went wrong"}),(0,n.jsx)("p",{className:"text-gray-500 text-center mb-6 max-w-md",children:"We encountered an unexpected error. Please try refreshing the page."}),(0,n.jsx)("button",{onClick:()=>window.location.reload(),className:"px-6 py-2.5 bg-[var(--color-brand-primary)] text-white rounded-lg font-medium hover:bg-[var(--color-surface-footer-border)] transition-colors",children:"Refresh Page"})]}):this.props.children}constructor(e){super(e),this.state={hasError:!1,error:null}}}function i(e,t){return function(r){return(0,n.jsx)(o,{fallback:t,children:(0,n.jsx)(e,{...r})})}}},34816:function(e,t,r){r.d(t,{GlobalTopLoader:function(){return l}});var n=r(57437),a=r(99376),o=r(2265),i=r(31839);function l(){let e=(0,a.usePathname)(),t=(0,i.d)(),[r,l]=(0,o.useState)(!1),[s,c]=(0,o.useState)(0),d=(0,o.useRef)(null),u=(0,o.useRef)(null),f=(0,o.useRef)(null),h=(0,o.useRef)(!1),x=(0,o.useRef)(!1),p=(0,o.useMemo)(()=>"".concat(e,"?").concat(t.toString()),[e,t]);return(0,o.useEffect)(()=>{let e=()=>{null!=d.current&&(window.clearInterval(d.current),d.current=null),null!=u.current&&(window.clearTimeout(u.current),u.current=null),null!=f.current&&(window.clearTimeout(f.current),f.current=null)},t=()=>{x.current||(x.current=!0,e(),l(!0),c(18),d.current=window.setInterval(()=>{c(e=>e>=82?e:e+Math.max(2,(86-e)/5))},120),f.current=window.setTimeout(()=>{e(),l(!1),c(0),x.current=!1},3200))},r=e=>{let r=e.target;if(!(r instanceof Element))return;let n=r.closest('a[href]:not([href^="#"]):not([target="_blank"]):not([download])');if(!(n instanceof HTMLAnchorElement)||e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let a=n.getAttribute("href");if(!a||a.startsWith("mailto:")||a.startsWith("tel:"))return;let o=new URL(n.href,window.location.href);o.origin===window.location.origin&&"".concat(o.pathname).concat(o.search)!=="".concat(window.location.pathname).concat(window.location.search)&&t()};return document.addEventListener("click",r),h.current?(x.current=!1,e(),l(!0),c(100),u.current=window.setTimeout(()=>{l(!1),c(0)},260)):h.current=!0,()=>{document.removeEventListener("click",r,!0),e()}},[p]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none fixed left-0 top-0 z-[140] h-[3px] bg-[var(--color-brand-primary-light)] shadow-[0_2px_8px_rgba(19,107,207,0.35)] transition-[width,opacity] duration-300 ease-out",style:{width:"".concat(s,"%"),opacity:r?1:0}}),(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none fixed inset-x-0 top-0 z-[139] h-px bg-[var(--color-brand-primary-hover)] transition-opacity duration-300",style:{opacity:r?1:0}})]})}},33757:function(e,t,r){r.d(t,{GtmEventBootstrap:function(){return l}});var n=r(99376),a=r(2265),o=r(51020),i=r(31839);function l(){let e=(0,n.usePathname)(),t=(0,i.d)();return(0,a.useEffect)(()=>{(0,o.xE)()},[e,t]),(0,a.useEffect)(()=>{let e=()=>{"visible"===document.visibilityState&&(0,o.xE)()},t=()=>{(0,o.xE)()};return document.addEventListener("visibilitychange",e),window.addEventListener("pageshow",t),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("pageshow",t)}},[]),null}},3766:function(e,t,r){r.d(t,{IOSRuntimeFix:function(){return a}});var n=r(2265);function a(){return(0,n.useEffect)(()=>
1{if(!function(){let e=window.navigator.userAgent||"",t=window.navigator.platform||"",r=window.navigator.maxTouchPoints||0;return/iPad|iPhone|iPod/i.test(e)||"MacIntel"===t&&r>1}())return;let e=document.documentElement,t=document.body,r=()=>{var t,r;let n=window.visualViewport,a=null!==(t=null==n?void 0:n.height)&&void 0!==t?t:window.innerHeight,o=Math.max(0,a+(null!==(r=null==n?void 0:n.offsetTop)&&void 0!==r?r:0)-window.innerHeight);e.style.setProperty("--ios-vh","".concat(.01*a,"px")),e.style.setProperty("--ios-visual-extra-bottom","".concat(o,"px"))};e.classList.add("ios-device"),t.classList.add("ios-device"),r();let n=()=>r(),a=()=>r(),o=window.visualViewport;return window.addEventListener("resize",n,{passive:!0}),window.addEventListener("orientationchange",a),null==o||o.addEventListener("resize",n),null==o||o.addEventListener("scroll",n),()=>{window.removeEventListener("resize",n),window.removeEventListener("orientationchange",a),null==o||o.removeEventListener("resize",n),null==o||o.removeEventListener("scroll",n),e.classList.remove("ios-device"),t.classList.remove("ios-device"),e.style.removeProperty("--ios-vh"),e.style.removeProperty("--ios-visual-extra-bottom")}},[]),null}},32786:function(e,t,r){r.r(t),r.d(t,{ScrollToTopButton:function(){return d}});var n=r(57437),a=r(22135),o=r(99376),i=r(2265),l=r(26098),s=r(84631);let c=["/checkout","/pay-now"];function d(){let e=(0,o.usePathname)(),[t,r]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{let e=()=>{let e=window.scrollY>320;(0,i.startTransition)(()=>{r(t=>t===e?t:e)})},t=(0,s.D2)()?(0,l.i)(e):e;return t(),window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),(0,i.useEffect)(()=>{let e=Array.from(document.querySelectorAll('footer[data-site-footer="true"]'));if(0===e.length)return;let t=new IntersectionObserver(e=>{u(e.some(e=>e.isIntersecting))},{threshold:.01});return e.forEach(e=>t.observe(e)),()=>t.disconnect()},[]),(0,i.useMemo)(()=>c.some(t=>e===t||e.startsWith("".concat(t,"/"))),[e]))?null:(0,n.jsx)("button",{type:"button",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),"aria-label":"Scroll to top",className:"fixed right-4 z-[90] hidden h-[54px] w-[54px] items-center justify-center rounded-full border border-[var(--color-brand-secondary)] bg-white text-[var(--color-brand-secondary)] shadow-none transition-all duration-200 hover:-translate-y-0.5 hover:bg-[var(--color-border-lighter)] md:right-6 md:flex ".concat(t&&!d?"translate-y-0 opacity-100":"translate-y-4 opacity-0 pointer-events-none"),style:{bottom:"calc(4rem + 5rem)"},children:(0,n.jsx)(a.Z,{size:18,strokeWidth:1.9})})}},83109:function(e,t,r){r.d(t,{UserAvatar:function(){return u}});var n=r(57437),a=r(2265),o=r(33145),i=r(61994);let l=["from-[var(--color-brand-primary)] to-[var(--color-brand-primary)]","from-[var(--color-brand-secondary)] to-[var(--color-accent-orange-gradient-start)]","from-[var(--color-brand-primary)] to-[var(--color-accent-green)]","from-[var(--color-brand-primary-light)] to-[var(--color-neutral-300)]","from-[var(--color-brand-secondary-hover)] to-[var(--color-brand-secondary)]","from-[var(--color-brand-primary-light)] to-[var(--color-brand-primary-light)]","from-[var(--color-neutral-800)] to-[var(--color-accent-yellow)]","from-[var(--color-brand-secondary-hover)] to-[var(--color-brand-secondary)]"],s=e=>{let t="string"==typeof e?e.trim():"";return t?t.charAt(0).toUpperCase():"U"},c=e=>{let t="string"==typeof e&&e.trim()?e.trim().toLowerCase():"user",r=0;for(let e=0;e<t.length;e+=1)r=31*r+t.charCodeAt(e)>>>0;return l[r%l.length]},d=e=>{if(!e)return!1;let t=e.trim();return!!t&&!t.endsWith("/images/default-profile.png")};function u(e){let{src:t,name:r,size:l=40,className:u,imageClassName:f,textClassName:h}=e,[x,p]=(0,a.useState)(!1),m=(0,a.useMemo)(()=>c(r),[r]),v=(0,a.useMemo)(()=>s(r),[r]),b=d(t)&&!x;return(0,n.jsx)("div",{className:(0,i.Z)("relative overflow-hidden shrink-0 select-none",b?"bg-[var(--color-border)]":"bg-gradient-to-br ".concat(m),u),style:{width:l,height:l},"aria-label":r||"User avatar",children:b?(0,n.jsx)(o.default,{src:t.trim(),alt:r||"User avatar",fill:!0,sizes:"".concat(l,"px"),className:(0,i.Z)("object-cover",f),onError:()=>p(!0)}):(0,n.jsx)("span",{className:(0,i.Z)("flex h-full w-full items-center justify-center font-semibold text-white",h),children:v})})}},39150:function(e,t,r){r.d(t,{WebVitalsBootstrap:function(){return p}});var n=r(99376),a=r(2265),o=r(96430),i=r(51020),l=r(84631),s=r(40257);let c=new Set(["LCP","INP","CLS","LONG_TASK"]),d="__carmandi_cwv_session_id_v1";function u(e,t){if(!e)return t;let r=e.trim().toLowerCase();return!!["1","true","yes","on"].includes(r)||!["0","false","no","off"].includes(r)&&t}function f(e,t){if(!e)return t;let r=Number(e.trim());return Number.isFinite(r)?r<=0?0:r>=1?1:r:t}function h(e){let t=e.trim();return t?t.startsWith("/")?t:"/".concat(t):"/"}function x(){var e,t,r;return null!==(r=null===(t=window.crypto)||void 0===t?void 0:null===(e=t.randomUUID)||void 0===e?void 0:e.call(t))&&void 0!==r?r:"".concat(Date.now(),"-").concat(Math.random())}function p(){let e=(0,n.usePathname)(),t=(0,a.useRef)(h(e||"/")),r=(0,a.useRef)(x()),p=(0,a.useRef)(new Set),m=(0,a.useRef)([]),v=(0,a.useRef)({enabled:u(s.env.
1NEXT_PUBLIC_CWV_ENABLED,!0),ga4MirrorEnabled:u(s.env.NEXT_PUBLIC_CWV_GA4_MIRROR_ENABLED,!0),coreSampleRate:f(s.env.NEXT_PUBLIC_CWV_SAMPLE_RATE_CORE,1),auxSampleRate:f(s.env.NEXT_PUBLIC_CWV_SAMPLE_RATE_AUX,.2),buildId:function(){for(let e of[s.env.NEXT_PUBLIC_BUILD_ID,"3a85b4ceed83d7da0dd770c0efee6aec8652aa0e",s.env.NEXT_PUBLIC_COMMIT_SHA]){let t=null==e?void 0:e.trim();if(t)return t}return"dev-local"}()}),b=(0,a.useRef)(function(){try{var e,t,r;let n=window.sessionStorage.getItem(d);if(n)return n;let a=null!==(r=null===(t=window.crypto)||void 0===t?void 0:null===(e=t.randomUUID)||void 0===e?void 0:e.call(t))&&void 0!==r?r:"".concat(Date.now(),"-").concat(Math.random());return window.sessionStorage.setItem(d,a),a}catch(e){return"".concat(Date.now(),"-").concat(Math.random())}}());return(0,a.useEffect)(()=>{t.current=h(e||"/"),r.current=x()},[e]),(0,a.useEffect)(()=>{let e=v.current;if(!e.enabled)return;let n=function(){var e,t;let r=navigator,n=null!==(t=null!==(e=r.connection)&&void 0!==e?e:r.mozConnection)&&void 0!==t?t:r.webkitConnection;if(n)return{effectiveType:n.effectiveType,rtt:n.rtt,downlink:n.downlink,saveData:n.saveData}}(),a=a=>{var o,l,s,d,u,f,h,x,v,g,w,y;let j="LCP"===(o=a.name)||"INP"===o||"CLS"===o||"TTFB"===o||"FCP"===o||"LONG_TASK"===o?o:null;if(!j||!function(e,t){let r=c.has(e)?t.coreSampleRate:t.auxSampleRate;return r>=1||!(r<=0)&&Math.random()<r}(j,e))return;let N="".concat(a.id,":").concat(r.current,":").concat(j);if(p.current.has(N))return;if(p.current.add(N),m.current.push(N),m.current.length>500){let e=m.current.shift();e&&p.current.delete(e)}let k={metricName:j,value:a.value,delta:a.delta,rating:function(e){if("good"===e||"needs-improvement"===e||"poor"===e)return e}(a.rating),id:a.id,route:t.current,device:(l=window.innerWidth)<=767?"mobile":l<=1024?"tablet":"desktop",connection:n,buildId:e.buildId,sessionId:b.current,pageViewId:r.current,ts:Date.now()};(function(e){let t=JSON.stringify(e),r="/api/internal/web-vitals";if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon){let e=new Blob([t],{type:"application/json"});if(navigator.sendBeacon(r,e))return}fetch(r,{method:"POST",headers:{"content-type":"application/json"},body:t,keepalive:!0,cache:"no-store"}).catch(()=>{})})(k),e.ga4MirrorEnabled&&(0,i.Cb)("web_vital",{metric_name:k.metricName,metric_value:k.value,metric_delta:null!==(h=k.delta)&&void 0!==h?h:null,metric_rating:null!==(x=k.rating)&&void 0!==x?x:null,route:k.route,device:k.device,connection_type:null!==(v=null===(s=k.connection)||void 0===s?void 0:s.effectiveType)&&void 0!==v?v:null,connection_rtt:null!==(g=null===(d=k.connection)||void 0===d?void 0:d.rtt)&&void 0!==g?g:null,connection_downlink:null!==(w=null===(u=k.connection)||void 0===u?void 0:u.downlink)&&void 0!==w?w:null,save_data:null!==(y=null===(f=k.connection)||void 0===f?void 0:f.saveData)&&void 0!==y?y:null,build_id:k.buildId,session_id:k.sessionId,page_view_id:k.pageViewId,metric_id:k.id,metric_ts:k.ts})};if((0,o.NO)(a,{reportAllChanges:!1}),(0,o.Yn)(a,{reportAllChanges:!1}),(0,o.mw)(a,{reportAllChanges:!1}),(0,o.mr)(a),(0,o.a4)(a),(0,l.k4)()&&"undefined"!=typeof PerformanceObserver&&Array.isArray(PerformanceObserver.supportedEntryTypes)&&PerformanceObserver.supportedEntryTypes.includes("longtask")){let e=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{e.duration<50||a({name:"LONG_TASK",value:e.duration,delta:Math.max(0,e.duration-50),id:"longtask-".concat(Math.round(e.startTime),"-").concat(Math.round(e.duration)),rating:e.duration>=200?"poor":e.duration>=100?"needs-improvement":"good",entries:[e],navigationType:"navigate"})})});return e.observe({entryTypes:["longtask"]}),()=>{e.disconnect()}}},[]),null}},99727:function(e,t,r){r.r(t),r.d(t,{WhatsappStickyButton:function(){return s}});var n=r(57437),a=r(82023),o=r(99376),i=r(2265);let l=["/car-inspection","/checkout","/pay-now","/dashboard","/sell-your-car"];function s(){let e=(0,o.usePathname)(),[t,r]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{let e=Array.from(document.querySelectorAll('footer[data-site-footer="true"]'));if(0===e.length)return;let t=new IntersectionObserver(e=>{r(e.some(e=>e.isIntersecting))},{threshold:.01});
1return e.forEach(e=>t.observe(e)),()=>t.disconnect()},[]),(0,i.useMemo)(()=>l.some(t=>e===t||e.startsWith("".concat(t,"/")))||e.startsWith("/auctions/"),[e])||t)?null:(0,n.jsxs)("a",{href:"https://api.whatsapp.com/send?phone=923250000455",target:"_blank",rel:"noopener noreferrer","aria-label":"Chat on WhatsApp",className:"group fixed bottom-[calc(var(--mobile-footer-space,72px)+env(safe-area-inset-bottom)+16px-var(--ios-visual-extra-bottom,0px))] right-4 z-[91] flex h-16 w-16 items-center justify-center overflow-hidden rounded-full border border-[var(--color-neutral-50)] bg-white/95 text-[var(--color-neutral-dark)] shadow-[0_16px_36px_rgba(15,23,42,0.16)] backdrop-blur-md transition-all duration-300 focus-visible:w-[286px] focus-visible:justify-start focus-visible:gap-3 focus-visible:rounded-[32px] focus-visible:px-3.5 md:bottom-4 md:right-6 md:hover:w-[286px] md:hover:-translate-y-0.5 md:hover:justify-start md:hover:gap-3 md:hover:rounded-[32px] md:hover:px-3.5 md:hover:shadow-[0_20px_44px_rgba(15,23,42,0.2)]",children:[(0,n.jsxs)("span",{className:"relative flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-[linear-gradient(135deg,#25D366_0%,#1EBE5D_100%)] text-white shadow-[0_10px_22px_rgba(37,211,102,0.34)]",children:[(0,n.jsx)("span",{className:"absolute inset-0 rounded-full ring-4 ring-[var(--color-accent-green)]/15 transition-all duration-300 group-hover:ring-[var(--color-accent-green)]/25"}),(0,n.jsxs)("svg",{viewBox:"-1.5 -1.5 27 27","aria-hidden":"true",className:"relative z-[1] h-[24px] w-[24px] fill-none stroke-current",children:[(0,n.jsx)("path",{d:"M20.52 3.48A11.86 11.86 0 0 0 12.06 0C5.46 0 .08 5.37.08 11.97c0 2.1.55 4.15 1.59 5.96L0 24l6.23-1.63a11.92 11.92 0 0 0 5.83 1.49h.01c6.6 0 11.97-5.37 11.97-11.97 0-3.2-1.25-6.22-3.52-8.41Z",strokeWidth:"1.8",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M17.05 13.93c-.28-.14-1.67-.83-1.92-.92-.26-.1-.45-.14-.64.14-.18.28-.73.92-.89 1.11-.16.19-.33.21-.61.07-.28-.14-1.18-.43-2.24-1.36-.83-.75-1.39-1.67-1.55-1.95-.16-.28-.02-.43.12-.57.12-.12.28-.33.42-.49.14-.17.18-.28.28-.47.09-.19.05-.35-.03-.49-.07-.14-.64-1.55-.87-2.13-.23-.54-.47-.47-.64-.48h-.55c-.19 0-.49.07-.75.35-.26.28-.99.97-.99 2.37s1.01 2.75 1.15 2.94c.14.18 1.96 3 4.84 4.08.68.23 1.21.37 1.63.47.68.17 1.29.14 1.77.08.54-.08 1.67-.68 1.9-1.33.23-.66.23-1.22.16-1.33-.07-.12-.26-.19-.54-.33Z",fill:"currentColor",stroke:"none"})]})]}),(0,n.jsxs)("span",{className:"pointer-events-none hidden w-0 min-w-0 overflow-hidden opacity-0 transition-all duration-300 group-focus-visible:w-[200px] group-focus-visible:opacity-100 md:block md:group-hover:w-[200px] md:group-hover:opacity-100",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1 whitespace-nowrap text-[10px] font-medium uppercase tracking-[0.14em] text-[var(--color-neutral-750)] md:text-[11px]",children:[(0,n.jsx)(a.Z,{className:"h-3.5 w-3.5 shrink-0",strokeWidth:2.1}),"WhatsApp"]}),(0,n.jsx)("span",{className:"block whitespace-nowrap text-sm font-semibold leading-tight text-[var(--color-brand-primary)] md:text-[15px]",children:"Chat with CarMandi"})]})]})}},35971:function(e,t,r){r.d(t,{NO:function(){return d},zd:function(){return u},ZG:function(){return v},Db:function(){return m},JT:function(){return i.default},SV:function(){return n.ErrorBoundary},aJ:function(){return h},k4:function(){return b.GlobalTopLoader},gV:function(){return a.GtmEventBootstrap},eC:function(){return f},Rk:function(){return j.IOSRuntimeFix},Fu:function(){return p},UT:function(){return g.ScrollToTopButton},Od:function(){return c},Qr:function(){return x},Yt:function(){return y.UserAvatar},tj:function(){return o.WebVitalsBootstrap},rg:function(){return w.WhatsappStickyButton},Pf:function(){return n.withErrorBoundary}});var n=r(96175),a=r(33757),o=r(39150),i=r(25404),l=r(57437),s=r(94508);function c(e){let{className:t,style:r}=e;return(0,l.jsx)("div",{className:(0,s.cn)("animate-pulse bg-gradient-to-r from-gray-100 via-gray-200 to-gray-100 bg-[length:200%_100%] rounded-md",t),style:r})}function d(){return(0,l.jsxs)("div",{className:"bg-white rounded-[14px] border border-[var(--color-border)] overflow-hidden shadow-card",children:[(0,l.jsx)(c,{className:"h-[211px] w-full rounded-none"}),(0,l.jsxs)("div",{className:"p-3",children:[(0,l.jsx)(c,{className:"h-5 w-3/4 mb-2"}),(0,l.jsxs)("div",{className:"flex gap-2 mb-6",children:[(0,l.jsx)(c,{className:"h-3 w-12"}),(0,l.jsx)(c,{className:"h-3 w-16"}),(0,l.jsx)(c,{className:"h-3 w-14"}),(0,l.jsx)(c,{className:"h-3 w-12"})]}),(0,l.jsxs)("div",{className:"flex justify-between items-end mb-4",children:[(0,l.jsx)(c,{className:"h-3 w-20"}),(0,l.jsx)(c,{className:"h-7 w-32"})]}),(0,l.jsxs)("div",{className:"flex gap-3 pt-3 border-t border-[var(--color-border-light)]",children:[(0,l.jsx)(c,{className:"h-10 w-[72px] rounded-lg"}),(0,l.jsx)(c,{className:"h-10 flex-1 rounded-lg"})]})]})]})}
1function u(e){let{count:t=6}=e;return(0,l.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:Array.from({length:t}).map((e,t)=>(0,l.jsx)(d,{},t))})}function f(){return(0,l.jsxs)("div",{className:"w-full h-[370px] bg-gray-100 rounded-[24px] animate-pulse flex flex-col items-center justify-center",children:[(0,l.jsx)(c,{className:"h-10 w-64 mb-4"}),(0,l.jsx)(c,{className:"h-6 w-96 mb-8"}),(0,l.jsx)(c,{className:"h-14 w-[600px] rounded-full"})]})}function h(){return(0,l.jsxs)("div",{className:"bg-white rounded-xl border border-[var(--color-border)] p-5",children:[(0,l.jsx)(c,{className:"h-6 w-24 mb-4"}),(0,l.jsx)("div",{className:"space-y-3",children:Array.from({length:4}).map((e,t)=>(0,l.jsx)(c,{className:"h-10 w-full rounded-lg"},t))})]})}function x(e){let{lines:t=3}=e;return(0,l.jsx)("div",{className:"space-y-2",children:Array.from({length:t}).map((e,r)=>(0,l.jsx)(c,{className:(0,s.cn)("h-4",r===t-1?"w-3/4":"w-full")},r))})}function p(e){let{aspectRatio:t="16/9"}=e;return(0,l.jsx)(c,{className:"w-full",style:{aspectRatio:t}})}function m(e){let{className:t}=e;return(0,l.jsx)(c,{className:(0,s.cn)("h-10 w-24 rounded-lg",t)})}function v(e){let{size:t=40}=e;return(0,l.jsx)(c,{className:"rounded-full",style:{width:t,height:t}})}var b=r(34816),g=r(32786),w=r(99727),y=r(83109),j=r(3766)},42971:function(e,t,r){r.d(t,{A:function(){return a},q:function(){return n}});let n=[{label:"Home",href:"/",isActive:!0},{label:"Live Auctions",href:"/auctions",isActive:!1},{label:"Inspect My Car",href:"/car-inspection",isActive:!1},{label:"Verify My Auction Sheet",href:"/auction-sheet-verification",isActive:!1},{label:"Find My Car",href:"/car-finder",isActive:!1},{label:"Blog",href:"/blog",isActive:!1}],a={sell:{label:"Sell My Car",href:"/sell-your-car"},login:{label:"Login",href:"/login"}}},10210:function(e,t,r){r.d(t,{O9:function(){return n},bK:function(){return o},cp:function(){return a},pB:function(){return l},q:function(){return i}});let n={primary:{main:"#153481",dark:"#102B6D",light:"#136BCF",lighter:"#F5FAFF",border:"#E5F0FF",hover:"#E5ECFF"},accent:{orange:"#EB722E",orangeHover:"#D66220",orangeGradientStart:"#F5AF19",yellow:"#F4E20C",green:"#1BFF89",greenGradient:"linear-gradient(90deg, #1BFF89 0%, #1BFF89 100%)"},neutral:{white:"#FFFFFF",black:"#000000",dark:"#1F1F1F",darkAlt:"#1A1A1A",gray900:"#2D2D2D",gray800:"#4A4A4A",gray750:"#4B5563",gray700:"#707070",gray600:"#747474",gray500:"#757575",gray400:"#9A9A9A",gray300:"#A0A0A0",gray200:"#B0B0B0",gray100:"#D0D0D0",gray50:"#E0E0E0",border:"#EBEBEB",borderLight:"#F0F0F0",borderLighter:"#F5F5F5"},background:{main:"#FFFFFF",dark:"#050B17",footer:"#051233",footerOverlay:"rgba(3, 10, 33, 0.6)",footerBorder:"#1E2D52",muted:"#F7F9FA",card:"#FFFFFF",overlay:"rgba(0, 0, 0, 0.4)",overlayLight:"rgba(0, 0, 0, 0.1)"},status:{live:"#1BFF89",featured:"#F4E20C",danger:"#FF0000",warning:"#F5AF19"}},a={fontFamily:{primary:"var(--font-outfit), 'Outfit', sans-serif"},fontSize:{xs:"10px",sm:"12px",md:"13px",base:"14px",lg:"15px",xl:"16px","2xl":"18px","3xl":"20px","4xl":"22px","5xl":"24px","6xl":"28px","7xl":"32px","8xl":"48px"},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.1",snug:"1.2",normal:"1.4",relaxed:"1.6"}},o={container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1360px","3xl":"1800px",full:"99%"},sectionHeight:{hero:"370px",inspectionPromo:"340px",card:"211px"},borderRadius:{sm:"4px",md:"8px",card:"10px",lg:"12px",xl:"14px","2xl":"24px",full:"9999px",pill:"13.5px"}},i={none:"none",sm:"0px 1px 3px rgba(160, 160, 160, 0.23)",md:"0px 4px 12px rgba(0, 0, 0, 0.08)",lg:"0px 8px 24px rgba(0, 0, 0, 0.12)",card:"0px 1px 3px rgba(160, 160, 160, 0.23)",cardHover:"0px 4px 12px rgba(0, 0, 0, 0.08)"},l={fast:"150ms",normal:"300ms",slow:"500ms",easing:{default:"ease-in-out",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}};n.accent.orange,n.accent.orangeHover,n.neutral.white,o.borderRadius.md,n.primary.lighter,n.primary.hover,n.primary.light,n.primary.border,o.borderRadius.md,n.background.card,n.neutral.border,o.borderRadius.card,i.card,i.cardHover,o.borderRadius.sm,a.fontSize.xs,a.fontWeight.bold,n.background.overlay,o.borderRadius.pill,o.borderRadius.md,n.neutral.border,n.neutral.white},75395:function(e,t,r){r.d(t,{KF:function(){return x},Lj:function(){return s},X4:function(){return u},_e:function(){return c},gm:function(){return h},ho:function(){return p},vO:function(){return l},wY:function(){return f},x8:function(){return a}});let n="__carmandi_checkoutDraftPlan",a={sellYourCarFlow:"sell_your_car_flow",sellYourCarDraft:"sell_your_car_draft",inspectionBookingModalDraft:"inspection_booking_modal_draft"};function o(){try{let e=window.sessionStorage.getItem(n);if(!e)return{};let t=JSON.parse(e);return t&&"object"==typeof t?t:{}}catch(e){return console.error("Failed to read checkout draft retention map",e),{}}}function i(e){try{let t=Object.entries(e);if(0===t.length){window.sessionStorage.removeItem(n);return}window.sessionStorage.setItem(n,JSON.stringify(e))}catch(e){console.error("Failed to write checkout draft retention map",e)}}function l(e){try{let t=window.localStorage.getItem(e);if(!t)return null;return JSON.parse(t)}catch(t){return console.error("Failed to load form draft for ".concat(e),t),null}}function s(e,t){try{let r={...JSON.parse(JSON.stringify(t,(e,t)=>{if(!("undefined"!=typeof File&&t instanceof File||"undefined"!=typeof Blob&&t instanceof Blob))return t})),timestamp:Date.now()};window.localStorage.setItem(e,JSON.stringify(r))}catch(t){console.error("Failed to save form draft for ".concat(e),t)}}function c(e){try{window.localStorage.removeItem(e)}catch(t){console.error("Failed to clear form draft for ".concat(e),t)}}function d(e){let t=o()[e];return t?{returnPath:"string"==typeof t.returnPath?t.returnPath:"",extraKeys:Array.isArray(t.extraKeys)?t.extraKeys.filter(e=>"string"==typeof e&&e.trim().length>0):[]}:null}function u(e){let t=o();e in t&&(delete t[e],i(t))}function f(e,t){if(!e)return;let r=o();r[e]={returnPath:t.returnPath||"",extraKeys:(t.extraKeys||[]).filter(e=>"string"==typeof e&&e.trim().length>0)},i(r)}function h(e){return!!d(e)}function x(e,t){var r;let n=d(e);return n&&n.returnPath&&("string"==typeof t?t:"")===n.returnPath?(u(e),{cleared:!1,preserved:!0}):(c(e),(null==n?void 0:null===(r=n.extraKeys)||void 0===r?void 0:r.length)&&n.extraKeys.forEach(e
1=>c(e)),u(e),{cleared:!0,preserved:!1})}function p(e,t){let r="string"==typeof t?t:"";if(!e||!r||"/checkout"===r||r.startsWith("/checkout/"))return{cleared:!1,preserved:!1,skipped:!0};let n=d(e);return n?n.returnPath&&r===n.returnPath?(u(e),{cleared:!1,preserved:!0,skipped:!1}):(c(e),n.extraKeys.length>0&&n.extraKeys.forEach(e=>c(e)),u(e),{cleared:!0,preserved:!1,skipped:!1}):{cleared:!1,preserved:!1,skipped:!0}}},10786:function(e,t,r){r.d(t,{E:function(){return f}});var n=r(2265),a=r(65934),o=r(79558);let i={ids:new Set,loaded:!1},l=null,s=new Set,c=()=>{s.forEach(e=>e())},d=e=>String(e),u=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!i.loaded||e)return l||(l=(async()=>{try{let e=await (0,o.o)("/api/wishlist/ids",{method:"GET"});if(!e.ok){if(401===e.status){i={ids:new Set,loaded:!1};return}i={ids:new Set,loaded:!1};return}let t=await e.json(),r=Array.isArray(null==t?void 0:t.auctionIds)?t.auctionIds.map(e=>d(e)):[];i={ids:new Set(r),loaded:!0}}catch(e){i={ids:new Set,loaded:!1}}finally{l=null,c()}})()),l};function f(){let{status:e}=(0,a.kP)(),[,t]=(0,n.useState)(0);(0,n.useEffect)(()=>{let r=()=>t(e=>e+1);if(s.add(r),"authenticated"===e)u();else if("unauthenticated"===e){let e=i.loaded,t=i.ids.size>0;i={ids:new Set,loaded:!0},(!e||t)&&c()}return()=>{s.delete(r)}},[e]);let r=i.ids,l=(0,n.useCallback)(e=>i.ids.has(d(e)),[]),f=(0,n.useCallback)(async t=>{if("authenticated"!==e)return{ok:!1,unauthorized:!0};let r=d(t);i.loaded||await u();let n=i.ids.has(r),a=!n,l=new Set(i.ids);a?l.add(r):l.delete(r),i={...i,ids:l},c();try{let e=await (0,o.o)("/api/wishlist/".concat(encodeURIComponent(r)),{method:a?"POST":"DELETE"});if(401===e.status)return i={...i,ids:new Set(i.ids)},a?i.ids.delete(r):i.ids.add(r),c(),{ok:!1,unauthorized:!0,wishlisted:n};if(!e.ok){i={...i,ids:new Set(i.ids)},a?i.ids.delete(r):i.ids.add(r),c();let t=await e.text();return{ok:!1,wishlisted:n,message:t||"Wishlist update failed"}}return window.dispatchEvent(new Event("notifications:updated")),{ok:!0,wishlisted:a}}catch(e){return i={...i,ids:new Set(i.ids)},a?i.ids.delete(r):i.ids.add(r),c(),{ok:!1,wishlisted:n,message:"Network error while updating wishlist"}}},[e]),h=(0,n.useCallback)(async t=>{if("authenticated"!==e)return{ok:!1,unauthorized:!0};let r=d(t);return(i.loaded||await u(),i.ids.has(r))?f(r):{ok:!0,wishlisted:!1}},[e,f]),x=(0,n.useCallback)(async()=>{"authenticated"===e&&await u(!0)},[e]);return{wishlistIds:r,loaded:i.loaded,isWishlisted:l,toggleWishlist:f,removeFromWishlist:h,refreshWishlist:x}}},54515:function(e,t,r){r.d(t,{k:function(){return a}});var n=r(65934);async function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/login";try{await fetch("/api/auth/logout",{method:"POST",credentials:"include",cache:"no-store"})}catch(e){}await (0,n.w7)({callbackUrl:e})}},46374:function(e,t,r){r.d(t,{R:function(){return n}});function n(e){return!!e&&("boolean"==typeof e.is_read?e.is_read:("string"==typeof e.read_at?e.read_at:"string"==typeof e.readAt?e.readAt:"").trim().length>0)}},26098:function(e,t,r){function n(e){var t,r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1200,a=null===(t=window.requestIdleCallback)||void 0===t?void 0:t.bind(window),o=null===(r=window.cancelIdleCallback)||void 0===r?void 0:r.bind(window);if(a&&o){let t=a(e,{timeout:n});return{cancel:()=>o(t)}}let i=window.setTimeout(e,Math.min(n,250));return{cancel:()=>window.clearTimeout(i)}}function a(e){let t=0;return()=>{t||(t=window.requestAnimationFrame(()=>{t=0,e()}))}}r.d(t,{F:function(){return n},i:function(){return a}})},84631:function(e,t,r){r.d(t,{D2:function(){return o},k4:function(){return i},qN:function(){return l}});var n=r(40257);function a(e,t){if(!e)return t;let r=e.trim().toLowerCase();return!!["1","true","yes","on"].includes(r)||!["0","false","no","off"].includes(r)&&t}function o(){return a(n.env.NEXT_PUBLIC_PHASE5_INTERACTION_OPTIMIZATIONS,!0)}function i(){return a(n.env.NEXT_PUBLIC_PHASE5_LONG_TASK_TRACKING,!0)}function l(){return a(n.env.NEXT_PUBLIC_PHASE5_DEFER_THIRD_PARTIES,!0)}},80577:function(e,t,r){r.d(t,{u:function(){return n}});function n(e){let t=String(e||"").toLowerCase().trim();return t&&"basic"!==t?"premium"===t?"VIP":t.charAt(0).toUpperCase()+t.slice(1):"Awami"}}
1,94508:function(e,t,r){r.d(t,{R7:function(){return i},cn:function(){return a},qi:function(){return l},vJ:function(){return o}});var n=r(61994);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.W)(t)}function o(e){return/^(\+92|0)?3[0-9]{9}$/.test(e.replace(/[\s-]/g,""))}function i(e){let t=String(e||"").replace(/\D/g,"");return t?t.startsWith("92")&&12===t.length?"0".concat(t.slice(2)):t.startsWith("0092")&&14===t.length?"0".concat(t.slice(4)):t.startsWith("3")&&10===t.length?"0".concat(t):t:""}function l(e,t,r,n){let a=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return"".concat(a(e),"-").concat(a(t),"-").concat(r,"-").concat(n)}},79558:function(e,t,r){r.d(t,{o:function(){return a}});let n=e=>e.startsWith("/")?e:"/".concat(e),a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Headers(t.headers||{});return!r.has("content-type")&&t.method&&"GET"!==t.method&&r.set("content-type","application/json"),fetch(n(e),{...t,headers:r,credentials:"same-origin",cache:"no-store"})}}}]);

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.