1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,776354,e=>{"use strict";var a=e.i(534959),s=e.i(211996),t=e.i(329660),i=e.i(519455),l=e.i(776639),r=e.i(520133);function n(){let e=(0,t.useTranslations)("Login");return(0,r.useRouter)(),(0,a.jsxs)(l.DialogContent,{className:"overflow-hidden md:max-w-sm",children:[(0,a.jsx)(l.DialogHeader,{className:"hidden",children:(0,a.jsx)(l.DialogTitle,{children:"Login required"})}),(0,a.jsxs)("div",{className:"-m-6 flex min-h-32 flex-col items-center justify-center bg-lime-100 py-8 text-lime-900",children:[(0,a.jsx)("div",{className:"rounded-md bg-lime-400 p-2",children:(0,a.jsx)(s.LockIcon,{className:"size-6 text-lime-900"})}),(0,a.jsx)("div",{className:"pt-2 text-lg font-medium",children:e("login")}),(0,a.jsx)("div",{className:"text-sm",children:e("itTakesJustSeconds")})]}),(0,a.jsxs)("div",{className:"space-y-2 pt-6",children:[(0,a.jsx)(i.Button,{onClick:()=>window.location.href="/login?method=email",variant:"outline",className:"w-full",size:"lg",children:e("loginWithEmail")}),(0,a.jsxs)(i.Button,{onClick:()=>window.open("https://api.auto.is/auth/google/redirect","_self"),variant:"outline",className:"w-full",size:"lg",children:[(0,a.jsx)("img",{src:"/images/google.svg",className:"size-6",alt:"google"}),e("loginWithGoogle")]})]})]})}e.s(["ListingViewLoginRequiredDialog",()=>n])},211996,e=>{"use strict";let a=(0,e.i(58718).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["LockIcon",()=>a],211996)},234106,e=>{"use strict";let a=(0,e.i(58718).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheckIcon",()=>a],234106)},83542,e=>{"use strict";var a=e.i(534959),s=e.i(573205),t=e.i(234106),i=e.i(329660);e.i(424239);var l=e.i(32612),r=e.i(519455);function n(){let e=(0,i.useTranslations)("ProfileVerificationDialog"),{mutateAsync:n,isPending:d}=(0,l.useGetVerificationUrl)();return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)("div",{className:"rounded-lg bg-lime-200 p-2 text-lime-600",children:(0,a.jsx)(t.ShieldCheckIcon,{className:"size-8"})})}),(0,a.jsx)("div",{className:"pt-4 text-center text-3xl font-semibold",children:e("headline")}),(0,a.jsx)("div",{className:"pt-2 text-center",children:e("disclaimer")}),(0,a.jsx)("div",{className:"flex justify-center pt-6 pb-12",children:(0,a.jsx)(r.Button,{onClick:()=>{n().then(e=>{"success"===e.status&&(window.location.href=e.redirect_uri??"")})},className:"h-12 bg-lime-500 text-lg hover:bg-lime-600",size:"lg",children:d?(0,a.jsx)(s.Loader2Icon,{className:"animate-spin"}):e("verify")})}),(0,a.jsxs)("div",{className:"m-auto max-w-md",children:[(0,a.jsxs)("div",{className:"rounded-md border bg-stone-100 p-3",children:[e("weWillReceive"),(0,a.jsx)("ul",{className:"list-inside list-disc pt-2",children:(0,a.jsx)("li",{children:e("yourSSN")})})]}),(0,a.jsx)("div",{className:"pt-2 text-sm italic",children:e("disclaimerSecurity")})]})]})}e.s(["VerificationPage",()=>n])},913022,149658,36952,e=>{"use strict";e.i(961416);var a=e.i(329275);e.i(879121);var s=e.i(163600),t=e.i(92478);let i=a.z.object({status:s.stringSchema,cancel_reason:s.stringNullSchema,cancelled_at:s.stringNullSchema,seller_confirmed_delivery_at:s.stringNullSchema,buyer_confirmed_delivery_at:s.stringNullSchema,created_at:s.stringSchema,updated_at:s.stringNullSchema,hashed_deal_id:s.stringSchema,hashed_seller_id:s.stringSchema,listing:a.z.object({hashed_id:s.stringSchema,title:s.stringSchema,price:s.numberZeroSchema,photos:a.z.array(t.listingPhotoSchema).optional().default([])}),offer:a.z.object({offer:s.numberZeroSchema}).default({}),secure_sale:a.z.object({hashed_id:s.stringSchema}).nullable().optional()}).transform(e=>
1({...e,cancelReason:e.cancel_reason,cancelledAt:e.cancelled_at,sellerConfirmedDeliveryAt:e.seller_confirmed_delivery_at,buyerConfirmedDeliveryAt:e.buyer_confirmed_delivery_at,createdAt:e.created_at,updatedAt:e.updated_at,hashedDealId:e.hashed_deal_id,hashedSellerId:e.hashed_seller_id,listing:{...e.listing,hashedId:e.listing.hashed_id},secureSale:e.secure_sale?{...e.secure_sale,hashedId:e.secure_sale.hashed_id}:null}));e.s(["dealPreviewSchema",0,i],149658);let l=a.z.object({role:a.z.enum(["buyer","seller"]),full_name:s.stringNullSchema,kennitala:s.stringNullSchema,phone:s.stringNullSchema,email:s.stringNullSchema}).transform(e=>({...e,fullName:e.full_name})),r=a.z.object({status:s.stringSchema,cancel_reason:s.stringNullSchema,cancelled_at:s.stringNullSchema,seller_confirmed_delivery_at:s.stringSchema.nullable().default(null),buyer_confirmed_delivery_at:s.stringSchema.nullable().default(null),created_at:s.stringSchema,updated_at:s.stringNullSchema,hashed_deal_id:s.stringSchema,hashed_dialog_id:s.stringSchema,hashed_seller_id:s.stringSchema,hashed_buyer_id:s.stringSchema,hashed_cancelled_by_id:s.stringNullSchema,listing:a.z.object({hashed_id:s.stringSchema,title:s.stringSchema,price:s.numberZeroSchema,photos:a.z.array(t.listingPhotoSchema).optional().default([]),plate_number:s.stringSchema,car:a.z.object({mileage:s.numberZeroSchema})}).default({car:{}}),offer:a.z.object({offer:s.numberZeroSchema}).default({}),buyer:(0,s.objectDefaultSchema)(l).nullable().default(null),seller:(0,s.objectDefaultSchema)(l).nullable().default(null)}).transform(e=>({...e,cancelReason:e.cancel_reason,cancelledAt:e.cancelled_at,sellerConfirmedDeliveryAt:e.seller_confirmed_delivery_at,buyerConfirmedDeliveryAt:e.buyer_confirmed_delivery_at,createdAt:e.created_at,updatedAt:e.updated_at,hashedDealId:e.hashed_deal_id,hashedDialogId:e.hashed_dialog_id,hashedSellerId:e.hashed_seller_id,hashedBuyerId:e.hashed_buyer_id,hashedCancelledById:e.hashed_cancelled_by_id,listing:{...e.listing,hashedId:e.listing.hashed_id,plateNumber:e.listing.plate_number}}));e.s(["dealSchema",0,r],36952),e.s([],913022)},30316,e=>{"use strict";var a=e.i(311400);e.i(655847);var s=e.i(87145),t=e.i(721098);e.i(913022);var i=e.i(149658);let l=["getDealPreviews"],r=async()=>{let e=await s.axios.get("/deals");return(0,t.validateResponse)(e,i.dealPreviewSchema)};e.s(["getDealPreviewsKey",0,l,"useDealPreviews",0,({config:e={}}={})=>{let s=(0,a.useQuery)({...e,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:l,queryFn:async()=>r()});return{...s,dealPreviews:s.data??[]}}])},832894,e=>{"use strict";var a=e.i(311400);e.i(655847);var s=e.i(87145),t=e.i(721098);e.i(913022);var i=e.i(36952);let l=["getDeal"],r=async e=>{let a=await s.axios.get(`/deals/${e}`);return(0,t.validateResponse)(a,i.dealSchema)};e.s(["getDealKey",0,l,"useDeal",0,({config:e={},dealId:s}={})=>{let t=(0,a.useQuery)({...e,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:[...l,s],queryFn:async()=>r(s),placeholderData:i.dealSchema.parse({}),enabled:!!s});return{...t,deal:t.data??i.dealSchema.parse({})}}])},526123,89461,413895,168889,509351,e=>{"use strict";e.i(30316);var a=e.i(712535),s=e.i(760559);e.i(655847);var t=e.i(87145),i=e.i(832894);e.i(961416);var l=e.i(329275);let r=l.z.object({hashedDealId:l.z.string(),fullName:l.z.string().min(2).max(100),phone:l.z.string().min(7).max(50),email:l.z.string().email().max(50)}),n=async e=>t.axios.put(`/deals/${e.hashedDealId}/contact`,e);e.s(["dealContactUpdateSchema",0,r,"useDealContactUpdate",0,()=>{let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:async e=>n(e),onSuccess:(a,s)=>{e.invalidateQueries({queryKey:[...i.getDealKey,s.hashedDealId]})}})}],89461);let d=async e=>t.axios.put(`/deals/${e.hashedDealId}/confirm-delivery`,e);e.s(["useDealConfirmDelivery",0,()=>{let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:async e=>d(e),onSuccess:(a,s)=>{e.invalidateQueries({queryKey:[...i.getDealKey,s.hashedDealId]})}})}],413895);let o=async e=>t.axios.post(`/deals/${e.hashedDealId}/cancel`,e);e.s(["useDealCancel",0,()=>{let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:async e=>o(e),onSuccess:(a,s)=>
1{e.invalidateQueries({queryKey:[...i.getDealKey,s.hashedDealId]})}})}],168889);let u=async e=>(await t.axios.post(`/deals/${e.hashedDealId}/secure-sale`,e)).data;e.s(["useDealConvertToSecureDeal",0,()=>{let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:async e=>u(e),onSuccess:(a,s)=>{a.success&&e.invalidateQueries({queryKey:[...i.getDealKey,s.hashedDealId]})}})}],509351),e.s([],526123)},941344,e=>{"use strict";var a=e.i(311400);e.i(36765);var s=e.i(903477);e.i(655847);var t=e.i(87145),i=e.i(721098);let l=["getDialogsMessages"],r=async e=>{let a=await t.axios.get(`/dialogs/${e}`);return(0,i.validateResponse)(a,s.dialogMessageSchema)};e.s(["getDialogsMessagesKey",0,l,"useDialogMessages",0,({dialogId:e,config:s={}}={})=>{let t=(0,a.useQuery)({...s,refetchOnMount:"always",refetchOnWindowFocus:!0,queryKey:[...l,e],queryFn:async()=>r(e)});return{...t,dialogMessages:t.data??[]}}])},580573,e=>{"use strict";var a=e.i(311400);e.i(36765);var s=e.i(491915);e.i(655847);var t=e.i(87145),i=e.i(721098);let l=["getDialogsUnreadMessages"],r=async()=>{try{let e=await t.axios.get("/dialogs/unread");if(!Array.isArray(e.data))return[];return(0,i.validateResponse)(e,s.dialogUnreadSchema)}catch(e){return[]}};e.s(["getDialogsUnreadMessagesKey",0,l,"useDialogsUnreadMessages",0,({enabled:e=!1,config:s={}}={})=>{let t=(0,a.useQuery)({...s,staleTime:0,refetchOnMount:"always",refetchOnWindowFocus:!0,queryKey:l,queryFn:async()=>r(),enabled:e,refetchInterval:()=>6e4});return{...t,dialogsUnreadMessages:t.data??[]}}])},401357,2249,151543,449419,921899,e=>{"use strict";var a=e.i(760559),s=e.i(712535),t=e.i(941344),i=e.i(580573);e.i(655847);var l=e.i(87145);let r=async e=>{let a=e.attachments?.type==="files"?e.attachments.files??[]:[];if(a.length>0){let s=new FormData;return e.dialogId&&s.append("dialogId",e.dialogId),e.listingId&&s.append("listingId",e.listingId),e.type&&s.append("type",e.type),e.message&&s.append("message",e.message),a.forEach(e=>s.append("attachments[]",e,e.name)),(await l.axios.post("/dialogs",s)).data}return(await l.axios.post("/dialogs",e)).data};e.s(["useDialogSendMessage",0,()=>{let e=(0,a.useQueryClient)();return(0,s.useMutation)({mutationFn:e=>r(e),onSettled:async a=>{await e.invalidateQueries({queryKey:[...t.getDialogsMessagesKey,a?.dialogId]}),await e.invalidateQueries({queryKey:i.getDialogsUnreadMessagesKey})}})}],401357);let n=async e=>(await l.axios.post("/dialogs/support",e)).data;e.s(["useDialogSendMessageSupport",0,()=>{let e=(0,a.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>n(e),onSettled:async a=>{await e.invalidateQueries({queryKey:[...t.getDialogsMessagesKey,a?.dialogId]}),await e.invalidateQueries({queryKey:i.getDialogsUnreadMessagesKey})}})}],2249);var d=e.i(311400);e.i(36765);var o=e.i(683544),u=e.i(721098);let c=["getDialogsPreviews"],g=async()=>{let e=await l.axios.get("/dialogs");return(0,u.validateResponse)(e,o.dialogPreviewSchema)};e.s(["getDialogsPreviewsKey",0,c,"useDialogsPreviews",0,({config:e={}}={})=>{let a=(0,d.useQuery)({...e,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:c,queryFn:async()=>g()});return{...a,dialogsPreviews:a.data??[]}}],151543);let h=["getDialogsPreviewsSupport"],y=async()=>{let e=await l.axios.get("/dialogs/support");return(0,u.validateResponse)(e,o.dialogPreviewSchema)};e.s(["useDialogsPreviewsSupport",0,({config:e={}}={})=>{let a=(0,d.useQuery)({...e,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:h,queryFn:async()=>y()});return{...a,dialogsPreviews:a.data??[]}}],449419);var m=e.i(712433);let f=["getDialogsOffers"],v=async e=>{let a=await l.axios.get(`/dialogs/${e}/offers`);return(0,u.validateResponse)(a,m.listingOfferSchema)};e.s(["getDialogsOffersKey",0,f,"useDialogsOffers",0,({dialogId:e,config:a={}}={})=>{let s=(0,d.useQuery)({...a,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:[...f,e],queryFn:async()=>v(e)});return{...s,dialogOffers:s.data??[]}}],921899)},6430,859751,870287,e=>{"use strict";var a=e.i(311400);e.i(961416);var s=e.i(329275);e.i(879121);var t=e.i(163600),i=e.i(92478);let l=s.z.object({hashed_id:t.stringSchema,title:t.stringSchema,price:t.numberZeroSchema,photos:s.z.array(i.listingPhotoSchema),status:t.stringSchema,user:s.z.object({hashed_id:t.stringSchema,name:t.stringNullSchema,last_seen_at:t.stringNullSchema})}).transform(e=>({...e,hashedId:e.hashed_id,user:{...e.user,hashedId:e.user.hashed_id,lastSeenAt:e.user.last_seen_at}})),r=s.z.object({hashed_id:t.stringSchema,hashed_created_by_id:t.stringSchema,type:s.z.enum(["individual","support"]).default("individual"),created_at:t.stringSchema,updated_at:t.stringNullSchema,listing:l.nullable().optional(),creator:s.z.object({hashed_id:t.stringSchema,name:t.stringNullSchema,last_seen_at:t.stringNullSchema,is_verified:t.booleanSchema}).default({}),last_message_body:t.stringNullSchema,hashed_last_message_user_id:t.stringNullSchema}).transform(e=>({...e,hashedId:e.hashed_id,hashedCreatedById:e.hashed_created_by_id,createdAt:e.created_at,updatedAt:e.updated_at,creator:{...e.creator,hashedId:e.creator.hashed_id,lastSeenAt:e.creator.last_seen_at,isVerified:e.creator.is_verified},lastMessageBody:e.last_message_body,hashedLastMessageUserId:e.hashed_last_message_user_id}));e.i(655847);var n=e.i(87145),d=e.i(721098);let o=["getBusinessDialogsPreviews"],u=async()=>{let e=await n.axios.get("/business/dialogs");return(0,d.validateResponse)(e,r)};e.s(["getBusinessDialogsPreviewsKey",0,o,"useBusinessDialogsPreviews",0,({config:e={}}={})=>{let s=(0,a.useQuery)({...e,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:o,queryFn:async()=>u()});return{...s,businessDialogsPreviews:s.data??[]}}],6430);let c=["getBusinessDialogInfo"],g=async e=>{let a=await n.axios.get(`/business/dialogs/${e}/info`);return(0,d.validateResponse)(a,r)};e.s(["useBusinessDialogInformation",0,({dialogId:e,config:s={}}={})=>{let t=(0,a.useQuery)({...s,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:[...c,e],queryFn:async()=>g(e),placeholderData:r.parse({})});return{...t,businessDialogInfo:t.data??r.parse({})}}],859751),e.i(36765);var h=e.i(903477);let y=["getBusinessDialogsMessages"],m=async e=>{let a=await n.axios.get(`/business/dialogs/${e}`);return(0,d.validateResponse)(a,h.dialogMessageSchema)};e.s(["getBusinessDialogsMessagesKey",0,y,"useBusinessDialogMessages",0,({dialogId:e,config:s={}}={})=>{let t=(0,a.useQuery)({...s,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:[...y,e],queryFn:async()=>m(e)});return{...t,dialogMessages:t.data??[]}}],870287)},757506,898250,453591,e=>{"use strict";var a=e.i(6430);e.i(859751);var s=e.i(870287),t=e.i(760559),i=e.i(712535),l=e.i(580573);e.i(655847);var r=e.i(87145);let n=async e=>(await r.axios.post("/business/dialogs",e)).data;e.s(["useBusinessDialogSendMessage",0,()=>{let e=(0,t.useQueryClient)();return(0,i.useMutation)({mutationFn:async e=>n(e),onSettled:async t=>
1{await e.invalidateQueries({queryKey:[...s.getBusinessDialogsMessagesKey,t?.dialogId]}),await e.invalidateQueries({queryKey:a.getBusinessDialogsPreviewsKey}),await e.invalidateQueries({queryKey:l.getDialogsUnreadMessagesKey})}})}],898250);var d=e.i(311400),o=e.i(721098);e.i(36765);var u=e.i(712433);let c=["getBusinessDialogsOffers"],g=async e=>{let a=await r.axios.get(`/business/dialogs/${e}/offers`);return(0,o.validateResponse)(a,u.listingOfferSchema)};e.s(["getBusinessDialogsOffersKey",0,c,"useBusinessDialogsOffers",0,({dialogId:e,config:a={}}={})=>{let s=(0,d.useQuery)({...a,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:[...c,e],queryFn:async()=>g(e)});return{...s,dialogOffers:s.data??[]}}],453591),e.s([],757506)},841342,579250,214485,346470,79516,e=>{"use strict";e.s([],841342),e.i(401357),e.i(2249),e.i(151543),e.i(449419);var a=e.i(941344),s=e.i(580573),t=e.i(921899);e.s(["useAcceptListingOffer",()=>g],579250);var i=e.i(760559),l=e.i(712535);e.i(655847);var r=e.i(87145);e.i(757506);var n=e.i(453591),d=e.i(870287);e.i(424239);var o=e.i(874362);e.i(526123);var u=e.i(30316);let c=async e=>(await r.axios.post(`/dialogs/${e.dialogId}/offers/${e.offerId}/accept`,e)).data,g=()=>{let e=(0,i.useQueryClient)();return(0,l.useMutation)({mutationFn:async e=>c(e),onSettled:async(i,l,r)=>{await e.invalidateQueries({queryKey:s.getDialogsUnreadMessagesKey}),await e.invalidateQueries({queryKey:o.getUserPendingOffersKey}),await e.invalidateQueries({queryKey:[...t.getDialogsOffersKey,r.dialogId]}),await e.invalidateQueries({queryKey:[...a.getDialogsMessagesKey,r.dialogId]}),await e.invalidateQueries({queryKey:[...d.getBusinessDialogsMessagesKey,r.dialogId]}),await e.invalidateQueries({queryKey:[...n.getBusinessDialogsOffersKey,r.dialogId]}),await e.invalidateQueries({queryKey:u.getDealPreviewsKey})}})};e.s(["useCancelListingOffer",()=>y],214485);let h=async e=>(await r.axios.post(`/dialogs/${e.dialogId}/offers/${e.offerId}/cancel`,e)).data,y=()=>{let e=(0,i.useQueryClient)();return(0,l.useMutation)({mutationFn:async e=>h(e),onSettled:async(i,l,r)=>{await e.invalidateQueries({queryKey:s.getDialogsUnreadMessagesKey}),await e.invalidateQueries({queryKey:[...t.getDialogsOffersKey,r.dialogId]}),await e.invalidateQueries({queryKey:[...a.getDialogsMessagesKey,r.dialogId]})}})};e.s(["useDeclineListingOffer",()=>f],346470);let m=async e=>(await r.axios.post(`/dialogs/${e.dialogId}/offers/${e.offerId}/decline`,e)).data,f=()=>{let e=(0,i.useQueryClient)();return(0,l.useMutation)({mutationFn:async e=>m(e),onSettled:async(i,l,r)=>{await e.invalidateQueries({queryKey:s.getDialogsUnreadMessagesKey}),await e.invalidateQueries({queryKey:[...t.getDialogsOffersKey,r.dialogId]}),await e.invalidateQueries({queryKey:[...a.getDialogsMessagesKey,r.dialogId]})}})};var v=e.i(311400);e.i(36765);var p=e.i(683544),_=e.i(721098);let w=["getDialogInfo"],S=async e=>{let a=await r.axios.get(`/dialogs/${e}/info`);return(0,_.validateResponse)(a,p.dialogPreviewSchema)};e.s(["useDialogInformation",0,({dialogId:e,config:a={}}={})=>{let s=(0,v.useQuery)({...a,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:[...w,e],queryFn:async()=>S(e)});return{...s,dialogInfo:s.data}}],79516)},844855,e=>{"use strict";let a=(0,e.i(58718).default)("blend",[["circle",{cx:"9",cy:"9",r:"7",key:"p2h5vp"}],["circle",{cx:"15",cy:"15",r:"7",key:"19ennj"}]]);e.s(["LucideBlend",()=>a],844855)},575376,961832,695326,e=>{"use strict";var a=e.i(311400);e.i(655847);var s=e.i(87145),t=e.i(721098);e.i(58037),e.i(966115);var i=e.i(760559),l=e.i(712535);let r=async e=>(await s.axios.post(`/listings/${e.listingId}/offers`,e)).data;e.s(["useCreateOffer",0,()=>((0,i.useQueryClient)(),(0,l.useMutation)({mutationFn:async e=>r(e),onSuccess:(e,a,s)=>{}}))],961832);var n=e.i(843517);let d=["getListingPhoneNumber"],o=async e=>{let a=await s.axios.post(`/listings/${e}/phone-number`);return(0,t.validateResponse)(a,n.userPhoneSchema)};e.s(["useListingPhoneNumber",0,({listingId:e,config:s={}}={})=>{let t=(0,a.useQuery)({...s,refetchOnMount:"always",refetchOnWindowFocus:!1,queryKey:[...d,e],queryFn:async()=>o(e)});return{...t,listingPhone:t.data??[]}}],695326),e.s([],575376)},543762,e=>{"use strict";let a=(0,e.i(58718).default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);e.s(["CameraIcon",()=>a],543762)},252212,e=>{"use strict";
1e.i(961023),e.i(706976),e.i(555317),e.s([])},458527,368813,e=>{"use strict";var a=e.i(534959),s=e.i(495249);e.i(879121);var t=e.i(42171);let i=(0,s.forwardRef)(({className:e,dots:s,...i},l)=>(0,a.jsxs)("div",{ref:l,className:(0,t.cn)("group/gallery relative z-[1] h-52 w-full overflow-hidden bg-gray-100",e),...i,"data-gallery":"",children:[(0,a.jsx)("div",{className:"hg absolute inset-0 flex",children:i.children}),s]}));i.displayName="HoverGalleryPhotos";let l=(0,s.forwardRef)(({className:e,...s},i)=>(0,a.jsx)("div",{ref:i,className:(0,t.cn)("hg-item static top-0 right-0 bottom-0 left-0 flex h-full flex-1 items-end",e),...s,children:(0,a.jsx)("div",{className:"hg-photo absolute top-0 right-0 bottom-0 left-0 h-full w-full bg-red-500",children:s.children})}));l.displayName="HoverGalleryPhotosPhoto",e.s(["HoverGalleryPhotos",0,i,"HoverGalleryPhotosPhoto",0,l],368813),e.i(252212);var r=e.i(706976),n=e.i(543762);function d({photos:e,title:t,listingId:i,totalPhotos:d}){let o=(0,s.useRef)(null),[u,c]=(0,s.useState)(!1),[g,h]=(0,s.useState)(0),y=e.length;return(0,s.useEffect)(()=>{let e=o.current;if(!e)return;let a=new IntersectionObserver(([e])=>{e.isIntersecting&&(c(!0),i&&(0,r.trackListingImpression)(i),a.unobserve(e.target))},{threshold:.2});return a.observe(e),()=>{a.unobserve(e)}},[i]),(0,a.jsxs)(s.Fragment,{children:[u&&e.map((e,s)=>(0,a.jsxs)(l,{"data-index":s+1,className:"hover:cursor-pointer",children:[d&&y===s+1?(0,a.jsxs)("div",{className:"absolute z-10 flex h-full w-full flex-col items-center justify-center gap-1 bg-stone-950/30 text-center text-sm font-medium text-stone-50",children:[(0,a.jsx)(n.CameraIcon,{className:"size-6"}),d," myndir"]}):void 0,(0,a.jsx)("img",{className:"absolute top-0 left-0 h-full w-full object-cover",src:`${e.path}${e.medium}`,alt:t})]},e.full)),(0,a.jsx)("div",{ref:o,style:{width:0,height:0},"aria-hidden":!0})]})}function o({photos:e}){let t=(0,s.useRef)(null),[i,l]=(0,s.useState)(0);if((0,s.useEffect)(()=>{let e=t.current?.closest("[data-gallery]");if(!e)return;let a=e=>{let a=e.target.closest("[data-index]");if(a){let e=Number(a.getAttribute("data-index"));isNaN(e)||l(e)}},s=()=>{l(0)};return e.addEventListener("mouseover",a),e.addEventListener("mouseleave",s),()=>{e.removeEventListener("mouseover",a),e.removeEventListener("mouseleave",s)}},[]),!(e.length<=1))return(0,a.jsx)("div",{ref:t,className:"absolute right-1 bottom-1 z-[2] flex items-center gap-0.5 rounded-full bg-stone-950/60 p-1 opacity-0 transition-opacity group-hover/gallery:opacity-100",children:e.map((e,s)=>(0,a.jsx)("div",{className:`h-1.5 rounded-full transition-all duration-200 ${s===i?"h-1.5 w-4 bg-stone-50":"w-1.5 bg-stone-400"}`},e.full))})}e.s(["HoverGalleryPhotosDots",()=>o,"HoverGalleryPhotosLazyLoad",()=>d],458527)},661062,e=>{"use strict";let a=(0,e.i(58718).default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["default",()=>a])}]);
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.