1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7069],{48595:function(e,t,r){r.d(t,{default:function(){return l}});var n=r(2265),i=r(99376),a=r(40257);function l(e){let{title:t,url:r}=e,l=(0,i.usePathname)();return(0,n.useEffect)(()=>{let e=0,n=!1,i=()=>{if(n)return;let l=document.title;if(!(l.length>0&&(0===t.length||l.includes(t)))){(e+=1)<6&&requestAnimationFrame(i);return}let c=document.getElementById("webpage-structured-data");if(!(c instanceof HTMLScriptElement))return;let o=JSON.stringify(function(e){let{pageUrl:t,pageTitle:r}=e,n=function(e){let t=function(){let e=function(e){let t=e.trim();if(!t)return null;try{return new URL(t).origin}catch(e){try{return new URL("https://".concat(t.replace(/^https?:\/\//i,""))).origin}catch(e){return null}}}(void 0!==a&&"https://www.carmandi.pk"||"");return e?e.replace(/\/$/,""):"https://www.carmandi.pk"}();if(!e)return t;try{return new URL(e,t).href}catch(e){return t}}(t);return{"@context":"https://schema.org","@type":"WebPage","@id":"".concat(n,"#webpage"),url:n,name:r}}({pageTitle:l,pageUrl:r}));c.textContent!==o&&(c.textContent=o)};return i(),()=>{n=!0}},[l,t,r]),null}},51155:function(e,t,r){r.d(t,{default:function(){return a}});var n=r(57437),i=r(2265);function a(e){let{heading:t,paragraphs:r,variantPriceRows:a=[],className:l="",contentClassName:c="mx-auto max-w-[1120px]"}=e,[o,s]=(0,i.useState)(!1),u=(0,i.useId)();if(!Array.isArray(r)||0===r.length)return null;let d=r.slice(1);return(0,n.jsx)("section",{className:"border-t border-[var(--color-border-light)] pt-8 sm:pt-10 ".concat(l).trim(),children:(0,n.jsxs)("div",{className:c,children:[t?(0,n.jsx)("h2",{className:"mb-4 text-[18px] font-semibold text-[var(--color-neutral-dark)] sm:text-[20px]",children:t}):null,a.length>=2?(0,n.jsxs)("div",{className:"mb-6 overflow-hidden rounded-[18px] border border-[var(--color-border-light)] bg-white",children:[(0,n.jsxs)("div",{className:"grid grid-cols-[1.35fr_1fr] bg-[var(--color-surface-muted)] px-4 py-3 text-[13px] font-semibold text-[var(--color-neutral-dark)] sm:px-5",children:[(0,n.jsx)("span",{children:"Variant"}),(0,n.jsx)("span",{children:"Auction Price Range*"})]}),a.map(e=>(0,n.jsxs)("div",{className:"grid grid-cols-[1.35fr_1fr] border-t border-[var(--color-border-light)] px-4 py-3 text-[13px] text-[var(--color-neutral-750)] sm:px-5 sm:text-[14px]",children:[(0,n.jsx)("span",{className:"font-medium text-[var(--color-neutral-dark)]",children:e.variant}),(0,n.jsxs)("span",{children:["PKR ",e.minPrice," - PKR ",e.maxPrice]})]},"".concat(e.variant,"-").concat(e.minPrice,"-").concat(e.maxPrice))),(0,n.jsx)("p",{className:"border-t border-[var(--color-border-light)] px-4 py-3 text-[12px] leading-5 text-[var(--color-neutral-700)] sm:px-5",children:"*Prices reflect current auction bids on Car Mandi and vary based on condition, year, and variant."})]}):null,(0,n.jsxs)("div",{className:"space-y-4 text-[14px] leading-7 text-[var(--color-neutral-750)] sm:text-[15px] sm:leading-8",children:[(0,n.jsx)("p",{className:"whitespace-pre-line",children:r[0]}),d.length>0?(0,n.jsx)("div",{id:u,hidden:!o,"aria-hidden":!o,className:o?"space-y-4":"hidden",children:d.map((e,t)=>(0,n.jsx)("p",{className:"whitespace-pre-line",children:e},"".concat(t,"-").concat(e.slice(0,24))))}):null]}),d.length>0?(0,n.jsx)("button",{type:"button","aria-controls":u,"aria-expanded":o,onClick:()=>s(e=>!e),className:"mt-5 inline-flex items-center rounded-[10px] border border-[var(--color-border-light)] bg-white px-4 py-2 text-[13px] font-medium text-[var(--color-brand-primary)] transition-colors hover:border-[var(--color-brand-primary-light)] hover:bg-[var(--color-brand-primary-lighter)]",children:o?"Show Less":"Show More"}):null]})})}},81428:function(e,t,r){r.d(t,{TY:function(){return n}});function n(e){let t=e&&"object"==typeof e&&!Array.isArray(e)?e:null;if(!t)return null;for(let e of[t.end_time,t.endTime,t.auction_end_time,t.auctionEndTime,t.ends_at,t.endsAt,t.expire_at,t.expireAt,t.expires_at,t.expiresAt,t.end_date,t.endDate]){if(null==e)continue;let t=String(e).trim();if(t)return t}return null}},14756:function(e,t,r){r.d(t,{u:function(){return i}});var n=r(2265);function i(e){let{intervalMs:t=0,minIntervalMs:r=15e3,enabled:i=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,n.useRef)(e);a.current=e;let l=(0,n.useRef)(Date.now());(0,n.useEffect)(()=>{let e;if(!i)return;let n=()=>
1{if("visible"!==document.visibilityState)return;let e=Date.now();e-l.current<r||(l.current=e,a.current())},c=()=>{"visible"===document.visibilityState&&n()};return window.addEventListener("focus",n),document.addEventListener("visibilitychange",c),t&&t>0&&(e=window.setInterval(n,t)),()=>{window.removeEventListener("focus",n),document.removeEventListener("visibilitychange",c),void 0!==e&&window.clearInterval(e)}},[i,t,r])}},82976:function(e,t,r){r.d(t,{Pu:function(){return a},yS:function(){return l}});var n=r(40257);function i(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 a(){return i(n.env.NEXT_PUBLIC_PHASE4_CLS_ENABLED,!0)}function l(){return i(n.env.NEXT_PUBLIC_PHASE4_PRELOAD_HERO_ENABLED,!0)}}}]);
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.