1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[393],{3346:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]])},11597:(e,t,i)=>{"use strict";i.d(t,{x:()=>y});var l=i(54568),a=i(7620),s=i(99935),n=i(69354),o=i(12598),r=i(30866),d=i(60844),p=i(90008),c=i(34046);let y=e=>{let{onClose:t,user:i}=e,[y,b]=(0,a.useState)("visitor"===i.role?"resident":i.role),[x,m]=(0,a.useState)(""),[u,g]=(0,a.useState)(null),[f,h]=(0,a.useState)(!1),[v,j]=(0,a.useState)(!1),C=async()=>{h(!0);let e=null;try{var t;let l=i.id||(null==(t=(await p.supabase.auth.getUser()).data.user)?void 0:t.id);if(u){let t=u.name.split(".").pop(),i="".concat(l,"/").concat(Date.now(),".").concat(t),{error:a}=await p.supabase.storage.from("identity_documents").upload(i,u);if(a)throw a;e=i}let{error:a}=await p.supabase.from("verifications").insert([{profile_id:l,role_requested:y,physical_address:x,document_url:e,status:"pending"}]);if(a)throw a;j(!0)}catch(e){console.error("Error submitting verification:",e),alert("Failed to submit request. Ensure you attached a valid file.")}finally{h(!1)}};return v?(0,l.jsx)(c.a,{isOpen:!0,onClose:t,maxWidth:"500px",children:(0,l.jsxs)("div",{style:{textAlign:"center",padding:"48px 40px"},children:[(0,l.jsx)(s.A,{size:64,color:"var(--primary)",style:{marginBottom:"20px"}}),(0,l.jsx)("h3",{style:{margin:"0 0 12px",fontSize:"1.4rem",fontWeight:800},children:"Request Submitted!"}),(0,l.jsxs)("p",{style:{color:"var(--text-muted)",marginBottom:"28px",lineHeight:1.5},children:["Our admin team will review your ",(0,l.jsx)("strong",{children:y})," verification request. You'll receive your badge once approved."]}),(0,l.jsx)("button",{className:"primary-btn",onClick:t,style:{minWidth:"140px"},children:"Done"})]})}):(0,l.jsxs)(c.a,{isOpen:!0,onClose:()=>{f||t()},maxWidth:"500px",closeOnOverlayClick:!f,children:[(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"20px 24px",borderBottom:"1px solid rgba(255,255,255,0.07)"},children:[(0,l.jsxs)("div",{style:{display:"flex",gap:"12px",alignItems:"center"},children:[(0,l.jsx)(n.A,{size:24,color:"var(--primary)"}),(0,l.jsx)("h3",{style:{margin:0,fontSize:"1.2rem",fontWeight:800},children:"Get Verified"})]}),(0,l.jsx)("button",{onClick:t,disabled:f,style:{background:"rgba(255,255,255,0.05)",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:"8px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s"},children:(0,l.jsx)(o.A,{size:20})})]}),(0,l.jsxs)("div",{style:{padding:"24px"},children:[(0,l.jsxs)("div",{style:{display:"flex",gap:"10px",background:"rgba(99,102,241,0.08)",padding:"12px 14px",borderRadius:"12px",marginBottom:"20px",border:"1px solid rgba(99,102,241,0.15)"},children:[(0,l.jsx)(r.A,{size:16,color:"var(--primary)",style:{flexShrink:0,marginTop:"2px"}}),(0,l.jsx)("p",{style:{margin:0,fontSize:"0.87rem",color:"var(--text-muted)",lineHeight:1.5},children:"Verification confirms your status to the community and unlocks exclusive features."})]}),(0,l.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,l.jsx)("label",{style:{display:"block",fontSize:"0.83rem",fontWeight:700,marginBottom:"8px",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Verification Type"}),(0,l.jsxs)("select",{value:y,onChange:e=>b(e.target.value),disabled:f,style:{width:"100%",padding:"12px 14px",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"var(--text, #fff)",fontSize:"0.95rem",outline:"none",cursor:"pointer"},children:[(0,l.jsx)("option",{value:"resident",children:"Verified Citizen (Blue Checkmark)"}),(0,l.jsx)("option",{value:"verified_pro",children:"Professional/Entity (Unlocks Workspaces)"})]})]}),(0,l.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,l.jsx)("label",{style:{display:"block",fontSize:"0.83rem",fontWeight:700,marginBottom:"8px",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Full Physical Address"}),(0,l.jsx)("input",{type:"text",placeholder:"123 Main St, Beaumont, TX 77701",value:x,onChange:e=>m(e.target.value),disabled:f,style:{width:"100%",padding:"12px 14px",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"var(--text, #fff)",fontSize:"0.95rem",outline:"none",boxSizing:"border-box"}}),(0,l.jsx)("p",{style:{margin:"4px 0 0",fontSize:"0.75rem",color:"var(--text-muted)",opacity:.8},children:"This data is kept on file for shipping and billing purposes."})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{style:{display:"block",fontSize:"0.83rem",fontWeight:700,marginBottom:"8px",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Upload Government ID / Proof"}),(0,l.jsxs)("div",{style:{border:"1px dashed rgba(255,255,255,0.2)",padding:"16px",borderRadius:"10px",textAlign:"center",background:"rgba(255,255,255,0.02)"},children:[(0,l.jsx)("input",{type:"file",accept:"image/*,.pdf",onChange:e=>{var t;return g((null==(t=e.target.files)?void 0:t[0])||null)},disabled:f,style:{width:"100%",color:"var(--text-muted)",fontSize:"0.9rem"}}),u&&(0,l.jsx)("p",{style:{margin:"8px 0 0",fontSize:"0.85rem",color:"var(--primary)"},children:u.name})]}),(0,l.jsxs)("p",{style:{margin:"8px 0 0",fontSize:"0.75rem",color:"var(--text-muted)",opacity:.8},children:["Your ID is securely stored and will be ",(0,l.jsx)("strong",{children:"permanently deleted"})," from our servers immediately after an admin approves or denies your request."]})]})]}),(0,l.jsx)("div",{style:{padding:"0 24px 24px"},children:(0,l.jsx)("button",{className:"primary-btn",onClick:C,disabled:f,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},children:f?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.A,{className:"animate-spin",size:18})," Submitting..."]}):"Submit Request"})})]})}},34569:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("phone-call",[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
10 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},57019:(e,t,i)=>{"use strict";i.d(t,{z:()=>o});var l=i(96758),a=i(60501),s=i(29742),n=i(7620);let o=(0,l.wk)(function(e,t){let i=new s.Popup(e,t.overlayContainer);return(0,a.Q)(i,t)},function(e,t,{position:i},l){(0,n.useEffect)(function(){let{instance:a}=e;function s(e){e.popup===a&&(a.update(),l(!0))}function n(e){e.popup===a&&l(!1)}return t.map.on({popupopen:s,popupclose:n}),null==t.overlayContainer?(null!=i&&a.setLatLng(i),a.openOn(t.map)):t.overlayContainer.bindPopup(a),function(){t.map.off({popupopen:s,popupclose:n}),t.overlayContainer?.unbindPopup(),t.map.removeLayer(a)}},[e,t,l,i])})},61290:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("baby",[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]])},64858:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]])},65390:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},69025:()=>{},70292:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]])},71823:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},73774:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]])},73896:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ClassifiedsView:()=>ec});var l=i(54568),a=i(7620),s=i(96897),n=i(73774),o=i(39880),r=i(12119);let d=(0,r.A)("sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"xacw8m"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);var p=i(18937);let c=(0,r.A)("gem",[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);var y=i(61290),b=i(66840),x=i(43002),m=i(71823),u=i(18335),g=i(91762),f=i(51166),h=i(12598),v=i(54925),j=i(63680),C=i(85973),S=i(14486),k=i(65390),w=i(70292),z=i(69354),_=i(52744),A=i(74624),B=i(95355),R=i(75424),T=i(63072),D=i(29304),M=i(12494),P=i(65202),N=i(3346),W=i(82340),I=i(38391),E=i(2167),F=i(90008),L=i(24734),H=i(6158),q=i(99100),O=i(63104),V=i(18301),G=i(22713),Y=i(22030),U=i(57019),X=i(29742),K=i.n(X);i(18162),i(69025);var J=i(83017),Z=i(11597),$=i(8991);let Q=["New","Like New","Used - Good","Used - Fair","Refurbished","Parts Only"],ee=["XXS","XS","S","M","L","XL","XXL","3XL","Other"],et=["5","6","7","8","9","10","11","12","13","14","Other"],ei=["Corded Electric","Cordless/Battery","Gas Powered","Pneumatic","Manual"],el={id:"serial_number",label:"Serial Number (Optional)",type:"text"},ea={id:"vin",label:"VIN (Optional)",type:"text"},es=[{name:"Vehicles & Powersports",subcategories:[{name:"Cars & Trucks",types:[{name:"Sedans & Coupes",filters:[{id:"make",label:"Make",type:"text"},{id:"model",label:"Model",type:"text"},{id:"year",label:"Year",type:"text"},{id:"mileage",label:"Mileage",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"SUVs & Crossovers",filters:[{id:"make",label:"Make",type:"text"},{id:"model",label:"Model",type:"text"},{id:"year",label:"Year",type:"text"},{id:"mileage",label:"Mileage",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Trucks",filters:[{id:"make",label:"Make",type:"text"},{id:"model",label:"Model",type:"text"},{id:"year",label:"Year",type:"text"},{id:"mileage",label:"Mileage",type:"text"},{id:"drive",label:"Drivetrain (4x4, 2WD)",type:"select",options:["4x4","2WD","AWD"]},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Vans & Minivans",filters:[{id:"make",label:"Make",type:"text"},{id:"model",label:"Model",type:"text"},{id:"year",label:"Year",type:"text"},{id:"mileage",label:"Mileage",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Powersports & ATVs",types:[{name:"4-Wheelers & ATVs",filters:[{id:"make",label:"Make",type:"text"},{id:"model",label:"Model",type:"text"},{id:"year",label:"Year",type:"text"},{id:"hours",label:"Hours/Mileage",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Side-by-Sides (UTVs)",filters:[{id:"make",label:"Make",type:"text"},{id:"model",label:"Model",type:"text"},{id:"year",label:"Year",type:"text"},{id:"hours",label:"Hours/Mileage",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Dirt Bikes",filters:[{id:"make",label:"Make",type:"text"},{id:"model",label:"Model",type:"text"},{id:"year",label:"Year",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Golf Carts",filters:[{id:"make",label:"Make",type:"text"},{id:"power",label:"Gas or Electric",type:"select",options:["Gas","Electric"]},el,{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Motorcycles & Scooters",types:[{name:"Street Bikes & Cruisers",filters:[{id:"make",label:"Make",type:"text"},{id:"model",label:"Model",type:"text"},{id:"year",label:"Year",type:"text"},{id:"mileage",label:"Mileage",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Mopeds & Scooters",filters:[{id:"make",label:"Make",type:"text"},{id:"cc",label:"Engine Size (cc)",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"RVs & Campers",types:[{name:"Travel Trailers & 5th Wheels",filters:[{id:"make",label:"Make",type:"text"},{id:"year",label:"Year",type:"text"},{id:"length",label:"Length (ft)",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Motorhomes & Camper Vans",filters:[{id:"make",label:"Make",type:"text"},{id:"year",label:"Year",type:"text"},{id:"mileage",label:"Mileage",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Watercraft",types:[{name:"Boats (Fishing, Pontoon, etc)",filters:[{id:"make",label:"Make",type:"text"},{id:"year",label:"Year",type:"text"},{id:"length",label:"Length (ft)",type:"text"},{id:"hull_id",label:"Hull ID (Optional)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Jet Skis & PWCs",filters:[{id:"make",label:"Make",type:"text"},{id:"year",label:"Year",type:"text"},{id:"hull_id",label:"Hull ID (Optional)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Kayaks & Canoes",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Trailers & Utility",types:[{name:"Utility & Flatbed Trailers",filters:[{id:"size",label:"Dimensions",type:"text"},{id:"axles",label:"Axles",type:"select",options:["Single Axle","Tandem Axle","Triple Axle"]},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Enclosed Trailers",filters:[{id:"size",label:"Dimensions",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Car Haulers & Equipment",filters:[{id:"capacity",label:"Weight Capacity",type:"text"},ea,{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Heavy Equipment",types:[{name:"Tractors",filters:[{id:"make",label:"Make",type:"text"},{id:"hours",label:"Hours",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Construction (Skid Steers, etc)",filters:[{id:"make",label:"Make",type:"text"},{id:"type",label:"Equipment Type",type:"text"},{id:"hours",label:"Hours",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Automotive Accessories",types:[{name:"Car Audio & Electronics",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Exterior Parts",filters:[{id:"part_type",label:"Part Type",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Interior Accessories",filters:[{id:"part_type",label:"Part Type",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Property Rentals & Home Sales",subcategories:[{name:"Residential Rentals",types:[{name:"Apartments for Rent",filters:[{id:"beds",label:"Bedrooms",type:"text"},{id:"baths",label:"Bathrooms",type:"text"},{id:"pet_friendly",label:"Pet Friendly",type:"select",options:["Yes","No"]}]},{name:"Houses for Rent",filters:[{id:"beds",label:"Bedrooms",type:"text"},{id:"baths",label:"Bathrooms",type:"text"},{id:"pet_friendly",label:"Pet Friendly",type:"select",options:["Yes","No"]}]},{name:"Mobile/Trailer Homes for Rent",filters:[{id:"beds",label:"Bedrooms",type:"text"},{id:"baths",label:"Bathrooms",type:"text"},{id:"pet_friendly",label:"Pet Friendly",type:"select",options:["Yes","No"]}]},{name:"Rooms & Shares",filters:[{id:"furnished",label:"Furnished",type:"select",options:["Yes","No"]}]}]},{name:"Residential Sales",types:[{name:"Houses for Sale",filters:[{id:"beds",label:"Bedrooms",type:"text"},{id:"baths",label:"Bathrooms",type:"text"},{id:"sqft",label:"Square Footage",type:"text"}]},{name:"Townhomes & Condos",filters:[{id:"beds",label:"Bedrooms",type:"text"},{id:"baths",label:"Bathrooms",type:"text"},{id:"sqft",label:"Square Footage",type:"text"}]},{name:"Mobile/Trailer Homes",filters:[{id:"beds",label:"Bedrooms",type:"text"},{id:"baths",label:"Bathrooms",type:"text"},{id:"size",label:"Single/Double Wide",type:"select",options:["Single Wide","Double Wide","Triple Wide"]}]}]},{name:"Commercial & Land",types:[{name:"Land & Lots",filters:[{id:"acres",label:"Acres",type:"text"},{id:"zoning",label:"Zoning Type",type:"text"}]},{name:"Commercial Sales",filters:[{id:"sqft",label:"Square Footage",type:"text"},{id:"type",label:"Property Type",type:"text"}]},{name:"Commercial Rentals",filters:[{id:"sqft",label:"Square Footage",type:"text"},{id:"type",label:"Property Type",type:"text"}]}]}]},{name:"Apparel (Fashion)",subcategories:[{name:"Menswear",types:[{name:"Shirts & Tops",filters:[{id:"size",label:"Size",type:"select",options:ee},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Pants & Bottoms",filters:[{id:"size",label:"Waist/Length",type:"text"},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Shoes",filters:[{id:"size",label:"Shoe Size",type:"select",options:et},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Steel Toe Shoes/Boots",filters:[{id:"size",label:"Shoe Size",type:"select",options:et},{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Outerwear",filters:[{id:"size",label:"Size",type:"select",options:ee},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Womenswear",types:[{name:"Shirts & Tops",filters:[{id:"size",label:"Size",type:"select",options:ee},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Pants & Bottoms",filters:[{id:"size",label:"Size (Number/Letter)",type:"text"},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Shoes",filters:[{id:"size",label:"Shoe Size",type:"select",options:et},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Steel Toe Shoes/Boots",filters:[{id:"size",label:"Shoe Size",type:"select",options:et},{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Dresses",filters:[{id:"size",label:"Size",type:"select",options:ee},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Kidswear & Baby",types:[{name:"Clothing",filters:[{id:"size",label:"Size/Age",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Shoes",filters:[{id:"size",label:"Size",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Jewelry & Watches",types:[{name:"Watches",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Jewelry",filters:[{id:"material",label:"Material (Gold, Silver, etc)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Bags & Luggage",types:[{name:"Purses & Handbags",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Luggage & Suitcases",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Backpacks",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Uniforms & Workwear",types:[{name:"Suits",filters:[{id:"piece",label:"Piece",type:"select",options:["Shirt","Pants","Jacket","Full Suit"]},{id:"size",label:"Size",type:"text"},{id:"color",label:"Color",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Scrubs",filters:[{id:"size",label:"Size",type:"select",options:ee},{id:"color",label:"Color",type:"text"},{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Fire Repellent (FRC)",filters:[{id:"type",label:"Type (Shirt, Pants, Coverall)",type:"text"},{id:"size",label:"Size",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Electronics",subcategories:[{name:"Cell Phones",types:[{name:"Smartphones",filters:[{id:"brand",label:"Brand",type:"text"},{id:"model",label:"Model",type:"text"},{id:"carrier",label:"Carrier / Unlocked",type:"text"},{id:"imei",label:"IMEI / Serial Number (Optional)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}
1,{name:"Accessories",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Computers & Tablets",types:[{name:"Laptops",filters:[{id:"brand",label:"Brand",type:"text"},{id:"specs",label:"Processor/RAM",type:"text"},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Desktops",filters:[{id:"brand",label:"Brand",type:"text"},{id:"specs",label:"Processor/RAM",type:"text"},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Tablets",filters:[{id:"brand",label:"Brand",type:"text"},{id:"storage",label:"Storage",type:"text"},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Parts & Components",filters:[{id:"type",label:"Component Type",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"TV & Video",types:[{name:"Televisions",filters:[{id:"size",label:"Screen Size",type:"text"},{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Home Audio / Soundbars",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Audio & Headphones",types:[{name:"Speakers & Subwoofers",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Headphones & Earbuds",filters:[{id:"brand",label:"Brand",type:"text"},{id:"type",label:"Over-Ear/In-Ear",type:"select",options:["Over-Ear","In-Ear","On-Ear"]},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Receivers & Amplifiers",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Video Games & Consoles",types:[{name:"Consoles",filters:[{id:"brand",label:"Brand (PlayStation, Xbox, etc)",type:"text"},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Video Games",filters:[{id:"platform",label:"Platform",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Controllers & Accessories",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Entertainment",subcategories:[{name:"Books",types:[{name:"Fiction",filters:[{id:"author",label:"Author",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Non-Fiction",filters:[{id:"author",label:"Author",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Textbooks",filters:[{id:"subject",label:"Subject",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Movies & Music",types:[{name:"DVDs & Blu-Rays",filters:[{id:"genre",label:"Genre",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Vinyl Records",filters:[{id:"genre",label:"Genre",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"CDs",filters:[{id:"genre",label:"Genre",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Collectibles",types:[{name:"Trading Cards",filters:[{id:"type",label:"Type (Pokemon, Baseball, etc)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Action Figures",filters:[{id:"brand",label:"Brand/Franchise",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Antiques",filters:[{id:"era",label:"Era/Year",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Family",subcategories:[{name:"Baby & Kids",types:[{name:"Strollers & Car Seats",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Nursery Furniture",filters:[{id:"type",label:"Type (Crib, Dresser)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Baby Gear",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Toys & Games",types:[{name:"Action Figures",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Board Games",filters:[{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Building Sets (LEGO, etc)",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Health & Beauty",types:[{name:"Skincare",filters:[{id:"brand",label:"Brand",type:"text"}]},{name:"Makeup",filters:[{id:"brand",label:"Brand",type:"text"}]},{name:"Fragrances",filters:[{id:"brand",label:"Brand",type:"text"}]}]},{name:"Pet Supplies",types:[{name:"Dog Supplies",filters:[{id:"type",label:"Type (Food, Toys, Beds)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Cat Supplies",filters:[{id:"type",label:"Type (Food, Toys, Beds)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Other Pet Supplies",filters:[{id:"animal",label:"Animal Type",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Home Goods",subcategories:[{name:"Furniture",types:[{name:"Living Room",filters:[{id:"material",label:"Material",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Bedroom",filters:[{id:"size",label:"Bed Size",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Dining Room",filters:[{id:"seats",label:"Number of Seats",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Office",filters:[{id:"type",label:"Type (Desk, Chair)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Home Decor",types:[{name:"Wall Art",filters:[{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Rugs",filters:[{id:"size",label:"Dimensions",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Lighting",filters:[{id:"condition",label:"Condition",type:"select",options:Q}]}]}
1,{name:"Kitchen & Dining",types:[{name:"Cookware",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Tableware",filters:[{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Small Appliances",filters:[{id:"brand",label:"Brand",type:"text"},{id:"type",label:"Type (Coffee Maker, Blender)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Appliances",types:[{name:"Refrigerators",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Washers & Dryers",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Ovens & Ranges",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Home Improvement Supplies",subcategories:[{name:"Power Tools",types:[{name:"Drills & Drivers",filters:[{id:"brand",label:"Brand (DeWalt, Hercules, etc)",type:"text"},{id:"power",label:"Power Source",type:"select",options:ei},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Saws",filters:[{id:"brand",label:"Brand",type:"text"},{id:"power",label:"Power Source",type:"select",options:ei},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Grinders & Sanders",filters:[{id:"brand",label:"Brand",type:"text"},{id:"power",label:"Power Source",type:"select",options:ei},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Air Compressors",filters:[{id:"brand",label:"Brand",type:"text"},{id:"capacity",label:"Gallon Capacity",type:"text"},el,{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Hand Tools",types:[{name:"Wrenches & Sockets",filters:[{id:"brand",label:"Brand (Icon, Pittsburgh, etc)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Pliers & Cutters",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Screwdrivers",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Hammers & Mallets",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Tool Storage",types:[{name:"Tool Chests & Cabinets",filters:[{id:"brand",label:"Brand (US General, Yukon, etc)",type:"text"},{id:"size",label:"Size (Inches)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Tool Bags & Belts",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Automotive Tools",types:[{name:"Jacks & Stands",filters:[{id:"brand",label:"Brand (Daytona, Pittsburgh, etc)",type:"text"},{id:"capacity",label:"Weight Capacity",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Diagnostic Tools",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Creepers & Shop Seating",filters:[{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Welding & Soldering",types:[{name:"Welders",filters:[{id:"brand",label:"Brand (Titanium, Vulcan, etc)",type:"text"},{id:"type",label:"Type (MIG, TIG, Stick)",type:"text"},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Welding Accessories",filters:[{id:"type",label:"Type (Helmets, Gloves)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Generators & Engines",types:[{name:"Generators",filters:[{id:"brand",label:"Brand (Predator, etc)",type:"text"},{id:"watts",label:"Wattage",type:"text"},el,{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Small Engines",filters:[{id:"brand",label:"Brand",type:"text"},{id:"cc",label:"Engine CC",type:"text"},el,{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Building Materials",types:[{name:"Lumber",filters:[{id:"type",label:"Wood Type",type:"text"}]},{name:"Paint & Supplies",filters:[{id:"brand",label:"Brand",type:"text"}]},{name:"Flooring",filters:[{id:"type",label:"Material (Wood, Tile, Vinyl)",type:"text"}]}]},{name:"Hardware",types:[{name:"Fasteners",filters:[{id:"type",label:"Type",type:"text"}]}
1,{name:"Door & Window Hardware",filters:[{id:"type",label:"Type",type:"text"}]}]},{name:"Heating & Cooling",types:[{name:"Air Conditioners",filters:[{id:"brand",label:"Brand",type:"text"},{id:"type",label:"Type (Window, Portable)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Heaters",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Fans",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Garden & Outdoor",subcategories:[{name:"Patio Furniture",types:[{name:"Seating & Sofas",filters:[{id:"material",label:"Material",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Dining Sets",filters:[{id:"seats",label:"Number of Seats",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Lawn Mowers & Tractors",types:[{name:"Push Mowers",filters:[{id:"brand",label:"Brand",type:"text"},{id:"power",label:"Power Source",type:"select",options:ei},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Riding Mowers",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Zero Turn Mowers",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Plants & Gardening",types:[{name:"Plants & Trees",filters:[{id:"type",label:"Type (Indoor, Outdoor, Fruit)",type:"text"}]},{name:"Gardening Tools",filters:[{id:"type",label:"Type (Shovels, Rakes, etc)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Pots & Planters",filters:[{id:"material",label:"Material",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Sporting Goods",subcategories:[{name:"Hunting & Fishing",types:[{name:"Deer Stands & Blinds",filters:[{id:"type",label:"Type (Tripod, Box, Tree, Ground)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Fishing Gear",filters:[{id:"type",label:"Type (Rods, Reels, Tackle, Nets)",type:"text"},{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Hunting Accessories",filters:[{id:"type",label:"Type (Game Cameras, Calls, Decoys)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Optics & Scopes",filters:[{id:"type",label:"Type (Scopes, Binoculars, Rangefinders)",type:"text"},{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Camping & Survival",filters:[{id:"type",label:"Type (Tents, Coolers, Lights)",type:"text"},{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Exercise & Fitness",types:[{name:"Cardio Equipment",filters:[{id:"brand",label:"Brand",type:"text"},{id:"type",label:"Type (Treadmill, Bike)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Weights & Strength",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Outdoor Gear",types:[{name:"Hiking & Backpacking",filters:[{id:"brand",label:"Brand",type:"text"},{id:"type",label:"Type (Backpacks, Boots)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Water Sports",filters:[{id:"type",label:"Type (Paddleboards, Tubes)",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Bicycles",types:[{name:"Mountain Bikes",filters:[{id:"brand",label:"Brand",type:"text"},{id:"size",label:"Frame Size",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Road Bikes",filters:[{id:"brand",label:"Brand",type:"text"},{id:"size",label:"Frame Size",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"BMX",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]},{name:"Team Sports",types:[{name:"Baseball & Softball",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Basketball",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Football",filters:[{id:"brand",label:"Brand",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Event Ticketing & Supplies",subcategories:[{name:"Tickets & Passes",types:[{name:"Concerts & Live Music",filters:[{id:"date",label:"Event Date",type:"text"},{id:"seat",label:"Seat/Section",type:"text"}]},{name:"Sports Tickets",filters:[{id:"date",label:"Event Date",type:"text"},{id:"seat",label:"Seat/Section",type:"text"}]},{name:"Festivals & Fairs",filters:[{id:"date",label:"Event Date",type:"text"}]},{name:"Other Tickets",filters:[{id:"date",label:"Event Date",type:"text"}]}]},{name:"Vendor & Booth Space",types:[{name:"Food & Beverage Space",filters:[{id:"size",label:"Booth Size",type:"text"}]},{name:"Retail & Craft Space",filters:[{id:"size",label:"Booth Size",type:"text"}]},{name:"Sponsorships",filters:[{id:"level",label:"Sponsorship Level",type:"text"}]}]},{name:"Event Equipment & Rentals",types:[{name:"Tents & Canopies",filters:[{id:"size",label:"Size",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Tables & Seating",filters:[{id:"quantity",label:"Quantity Available",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"A/V & Lighting",filters:[{id:"type",label:"Equipment Type",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Inflatables & Games",filters:[{id:"type",label:"Type",type:"text"},{id:"condition",label:"Condition",type:"select",options:Q}]}]}]},{name:"Classifieds & Free Stuff",subcategories:[{name:"Community",types:[{name:"Stolen Goods / BOLO",filters:[{id:"date_stolen",label:"Date Stolen",type:"text"},{id:"police_report",label:"Police Report # (Optional)",type:"text"},{id:"serial_vin",label:"Serial Number / VIN",type:"text"},{id:"details",label:"Distinguishing Marks",type:"text"}]},{name:"Garage Sales",filters:[{id:"date",label:"Dates of Sale",type:"text"}]},{name:"Lost & Found",filters:[{id:"type",label:"Lost or Found?",type:"select",options:["Lost","Found"]},{id:"date",label:"Date Lost/Found",type:"text"}]}]},{name:"Free & Misc",types:[{name:"Free Stuff",filters:[{id:"condition",label:"Condition",type:"select",options:Q}]},{name:"Miscellaneous Items",filters:[{id:"condition",label:"Condition",type:"select",options:Q}]}]}]}];var en=i(95644),eo=i(4518);delete K().Icon.Default.prototype._getIconUrl,K().Icon.Default.mergeOptions({iconRetinaUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon-2x.png",iconUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/[email protected]/dist/images/marker-shadow.png"});let er=(e,t)=>new(K()).DivIcon({className:"custom-leaflet-icon",html:'<div style="background-color: '.concat(t,'; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0,0,0,0.3); border: 2px solid white;">').concat(e,"</div>"),iconSize:[36,36],iconAnchor:[18,36],popupAnchor:[0,-36]}),ed=er('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="white" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>',"#ef4444"),ep=er('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>',"#3b82f6"),ec=()=>{var e,t,i,r,X,K,Q,ee,et,ei,el,ea,er,ec,ey,eb;let{user:ex,theme:em,appOrigin:eu,activeCounty:eg,scope:ef}=(0,H.n)(),[eh,ev]=(0,a.useState)("items"),[ej,eC]=(0,a.useState)([]),[eS,ek]=(0,a.useState)([]),[ew,ez]=(0,a.useState)(new Set),[e_,eA]=(0,a.useState)(""),[eB,eR]=(0,a.useState)("All"),[eT,eD]=(0,a.useState)(""),[eM,eP]=(0,a.useState)(""),[eN,eW]=(0,a.useState)({}),[eI,eE]=(0,a.useState)(!1),[eF,eL]=(0,a.useState)("events"),[eH,eq]=(0,a.useState)("map"),[eO,eV]=(0,a.useState)(!1),[eG,eY]=(0,a.useState)(!1),[eU,eX]=(0,a.useState)(null),[eK,eJ]=(0,a.useState)(null),[eZ,e$]=(0,a.useState)(""),[eQ,e0]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=e=>{ev(e.detail)};window.addEventListener("changeClassifiedsTab",e);let t=localStorage.getItem("pendingClassifiedItem");if(t)try{let e=JSON.parse(t);e8(e),ev("items"),localStorage.removeItem("pendingClassifiedItem")}catch(e){}return()=>window.removeEventListener("changeClassifiedsTab",e)},[]);let[e1,e2]=(0,a.useState)("item"),[e5,e8]=(0,a.useState)(null),[e4,e6]=(0,a.useState)(null),[e3,e9]=(0,a.useState)([]),[e7,te]=(0,a.useState)(0),[tt,ti]=(0,a.useState)(""),[tl,ta]=(0,a.useState)(""),[ts,tn]=(0,a.useState)((null==ex?void 0:ex.location)||""),[to,tr]=(0,a.useState)(""),[td,tp]=(0,a.useState)(""),[tc,ty]=(0,a.useState)([]),[tb,tx]=(0,a.useState)(30.0802),[tm,tu]=(0,a.useState)(-94.1266),[tg,tf]=(0,a.useState)(""),[th,tv]=(0,a.useState)("now"),[tj,tC]=(0,a.useState)(""),[tS,tk]=(0,a.useState)(""),[tw,tz]=(0,a.useState)({}),[t_,tA]=(0,a.useState)(!1),[tB,tR]=(0,a.useState)({}),[tT,tD]=(0,a.useState)(""),[tM,tP]=(0,a.useState)(""),[tN,tW]=(0,a.useState)({Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sunday:""}),[tI,tE]=(0,a.useState)(!1),tF=(0,a.useRef)(null),[tL,tH]=(0,a.useState)(null),[tq,tO]=(0,a.useState)(""),[tV,tG]=(0,a.useState)([]),[tY,tU]=(0,a.useState)(null),tX=e=>{tU(e),setTimeout(()=>tU(null),3e3)};(0,a.useEffect)(()=>{tK()},[ex,eh,ef,eg]);let tK=async()=>{let e=new Date;e.setDate(e.getDate()-3);let t=F.supabase.schema("pro").from("classified_items").select("*").is("deleted_at",null).order("created_at",{ascending:!1}).limit(100),i=F.supabase.from("classified_events").select("*, profiles(name, avatar_url)").is("deleted_at",null).order("start_date",{ascending:!0}).limit(50),l="county"===ef||"city"===ef?eg:void 0;l&&(t=t.eq("tenant_id",l));let[{data:a,error:s},{data:n},o]=await Promise.all([t,i,(0,L.xy)("classified_item",{table:"classified_items",schema:"pro",select:"*",tenantField:"tenant_id"},{tenantId:l,limit:5})]);if(s&&console.error("Error fetching classified items:",s),a){let t=new Set(a.map(e=>e.id)),i=[...o.filter(e=>!t.has(e.id)),...a],l=[...new Set(i.map(e=>e.user_id))],{data:s}=await F.supabase.from("profiles").select("id, name, avatar_url, role, is_verified_resident").in("id",l),n=(s||[]).reduce((e,t)=>
1(e[t.id]={name:t.name,avatar_url:t.avatar_url,role:t.role,is_verified_resident:t.is_verified_resident},e),{});eC(i.map(e=>({...e,profiles:n[e.user_id]||null})).filter(t=>{var i;let l=null==(i=t.profiles)?void 0:i.role;return!("Vehicles & Powersports"===t.category&&["dealership","v_dealership","business","v_business","admin"].includes(l)||"Property Rentals & Home Sales"===t.category&&["realtor","v_realtor","property_manager","v_property_manager","business","v_business","admin"].includes(l))&&(!!t.is_sponsored||"sold"!==t.status||new Date(t.updated_at)>e)}))}if(n&&ek(n),null==ex?void 0:ex.id){let{data:e}=await F.supabase.from("classified_favorites").select("item_id").eq("user_id",ex.id);e&&ez(new Set(e.map(e=>e.item_id)))}},tJ=async e=>{let{data:t,error:i}=await F.supabase.schema("pro").from("classified_items").select("*").eq("event_id",e).is("deleted_at",null);if(i&&console.error("Error fetching event items:",i),t){let e=[...new Set(t.map(e=>e.user_id))],{data:i}=await F.supabase.from("profiles").select("id, name, avatar_url, is_verified_resident").in("id",e),l=(i||[]).reduce((e,t)=>(e[t.id]={name:t.name,avatar_url:t.avatar_url,is_verified_resident:t.is_verified_resident},e),{});e9(t.map(e=>({...e,profiles:l[e.user_id]||null})))}},tZ=async(e,t)=>{if(e.stopPropagation(),!(null==ex?void 0:ex.id))return;let i=new Set(ew);i.has(t)?(i.delete(t),await F.supabase.from("classified_favorites").delete().eq("user_id",ex.id).eq("item_id",t)):(i.add(t),await F.supabase.from("classified_favorites").insert({user_id:ex.id,item_id:t})),ez(i)},t$=async()=>{if(null==ex?void 0:ex.id){tE(!0);try{if("event"!==e1){let e=[];for(let t of tc){let i=t.name.split(".").pop(),l="classifieds/".concat(ex.id,"_").concat(Date.now(),"_").concat(Math.random().toString(36).substring(2),".").concat(i),{data:a,error:s}=await F.supabase.storage.from("posts").upload(l,t);if(!s&&a){let{data:{publicUrl:t}}=F.supabase.storage.from("posts").getPublicUrl(a.path);e.push(t)}}let t=parseFloat(tl.replace(/[^0-9.]/g,""))||0,i={subcategory:tj,type:tS,...tB},{error:l}=await F.supabase.schema("pro").from("classified_items").insert({tenant_id:(null==ex?void 0:ex.county)||eg,user_id:ex.id,event_id:tg||null,title:tt,price:t,location:ts,latitude:"Property Rentals & Home Sales"===to?tb:null,longitude:"Property Rentals & Home Sales"===to?tm:null,category:to,description:td,images:e,item_details:i,event_availability:tg?th:"now",status:"active",metadata:{platform:eu}});if(l)throw l}else{let{error:e}=await F.supabase.from("classified_events").insert({user_id:ex.id,title:tt,description:td,location_name:ts,latitude:tb,longitude:tm,start_date:tT,end_date:tM,schedule:tN,status:"active"});if(e)throw e}eV(!1),tQ(),tK(),tX("Successfully posted!")}catch(e){console.error(e),tX("Error creating post.")}tE(!1)}},tQ=()=>{ti(""),ta(""),tp(""),tr(""),ty([]),tf(""),tn((null==ex?void 0:ex.location)||""),tv("now"),tD(""),tP(""),tW({Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sunday:""})},t0=async(e,t)=>{if(await F.supabase.schema("pro").from("classified_items").update({status:t,updated_at:new Date().toISOString()}).eq("id",e),"sold"===t){let t=[...it,...ie].find(t=>t.id===e)||null;t&&(e$(""),eJ(t))}tK()},t1=async()=>{if((null==ex?void 0:ex.id)&&eK){e0(!0);try{var e;let{error:t}=await F.supabase.schema("consumer").from("posts").insert([{tenant_id:(null==ex?void 0:ex.county)||eg,profile_id:ex.id,content:"â
**Sold locally!** ".concat(eK.title,"\n\n").concat(eZ||"Another item sold right here in Southeast Texas."),type:"post",category:"Everybody",media_urls:(null==(e=eK.images)?void 0:e.slice(0,1))||[],metadata:{classified_item_id:eK.id,platform:eu}}]);if(t)throw t}catch(e){console.error("Failed to post testimonial:",e)}finally{e0(!1),eJ(null)}}},t2=()=>{if(!(0,J.p4)(null==ex?void 0:ex.role)&&(null==ex?void 0:ex.role)!=="admin")return void tA(!0);"map"===eh&&"events"===eF?e2("event"):(e2("item"),"vehicles"===eh?tr("Vehicles & Powersports"):"real_estate"===eh||"map"===eh&&"properties"===eF?tr("Property Rentals & Home Sales"):tr("")),eV(!0)},t5=async(e,t)=>{await F.supabase.schema("pro").from("classified_items").update({updated_at:new Date().toISOString(),renewal_count:(t||0)+1}).eq("id",e),tK()},t8=async e=>{confirm("Delete this listing?")&&(await F.supabase.schema("pro").from("classified_items").update({deleted_at:new Date().toISOString()}).eq("id",e),tK(),(null==e5?void 0:e5.id)===e&&e8(null))},t4=async e=>{confirm("Delete this event? All associated items will also be deleted.")&&(await F.supabase.from("classified_events").update({deleted_at:new Date().toISOString()}).eq("id",e),tK())};(0,a.useEffect)(()=>
1{if(!tL||!ex)return void tG([]);(async()=>{let{data:e}=await F.supabase.schema("consumer").from("messages").select("*").or("and(sender_id.eq.".concat(ex.id,",receiver_id.eq.").concat(tL.id,"),and(sender_id.eq.").concat(tL.id,",receiver_id.eq.").concat(ex.id,")")).order("created_at",{ascending:!0});e&&tG(e)})()},[tL,ex]);let t6=async()=>{if(tq.trim()&&tL&&ex){try{let{error:e}=await F.supabase.schema("consumer").from("messages").insert({sender_id:ex.id,receiver_id:tL.id,content:"[Classifieds] ".concat((null==e5?void 0:e5.title)||(null==e4?void 0:e4.title)||"Inquiry","\n").concat(tq)});if(e)throw e;let{data:t}=await F.supabase.schema("consumer").from("messages").select("*").or("and(sender_id.eq.".concat(ex.id,",receiver_id.eq.").concat(tL.id,"),and(sender_id.eq.").concat(tL.id,",receiver_id.eq.").concat(ex.id,")")).order("created_at",{ascending:!0});t&&tG(t)}catch(e){tX(e.message)}tO("")}},t3=e=>0===e?"Free":"$".concat(e.toLocaleString()),t9=e=>{if(!e)return"";let t=new Date(e).getTime();if(isNaN(t))return"";let i=Math.floor((Date.now()-t)/36e5);return i<24?"".concat(Math.max(1,i),"h ago"):"".concat(Math.floor(i/24),"d ago")},t7=async()=>{if(ts)try{let e=await fetch("/api/geocode",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({address:ts})}),t=await e.json();t&&"number"==typeof t.lat?(tx(t.lat),tu(t.lng),tX("Location pinned on map!")):tX("Address not found. Please try again or pin manually.")}catch(e){console.error(e),tX("Geocoding failed. Pin manually.")}},ie=ej.filter(e=>e.user_id===(null==ex?void 0:ex.id)&&"Vehicles & Powersports"!==e.category&&"Property Rentals & Home Sales"!==e.category),it=ej.filter(e=>e.user_id===(null==ex?void 0:ex.id)&&"Vehicles & Powersports"===e.category),ii=ej.filter(e=>e.user_id===(null==ex?void 0:ex.id)&&"Property Rentals & Home Sales"===e.category),il=eS.filter(e=>e.user_id===(null==ex?void 0:ex.id)),ia=ej.filter(e=>ew.has(e.id)&&"Property Rentals & Home Sales"===e.category),is=ej.filter(e=>ew.has(e.id)&&"Vehicles & Powersports"===e.category),io=ej.filter(e=>ew.has(e.id)&&"Vehicles & Powersports"!==e.category&&"Property Rentals & Home Sales"!==e.category),ir=()=>{let e=ej;return"items"===eh?(e=e.filter(e=>"Vehicles & Powersports"!==e.category&&"Property Rentals & Home Sales"!==e.category),"All"!==eB&&(e=e.filter(e=>e.category===eB),eT&&(e=e.filter(e=>{var t;return(null==(t=e.item_details)?void 0:t.subcategory)===eT})),eM&&(e=e.filter(e=>{var t;return(null==(t=e.item_details)?void 0:t.type)===eM})),Object.entries(eN).forEach(t=>{let[i,l]=t;l&&""!==l.trim()&&(e=e.filter(e=>{var t;let a=null==(t=e.item_details)?void 0:t[i];return!!a&&a.toLowerCase().includes(l.toLowerCase())}))}))):"vehicles"===eh?e=e.filter(e=>"Vehicles & Powersports"===e.category):"real_estate"===eh&&(e=e.filter(e=>"Property Rentals & Home Sales"===e.category)),e.filter(e=>e.title.toLowerCase().includes(e_.toLowerCase())&&"rented"!==e.status)},id=e=>{var t,i,a,s,n,o,r,d,p,c,y,b,x;return(0,l.jsxs)("div",{className:"posh-item-card",role:"button",tabIndex:0,"aria-label":e.title,onClick:()=>{e8(e),te(0),F.supabase.rpc("increment_classified_view",{p_item_id:e.id}).then()},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e8(e),te(0),F.supabase.rpc("increment_classified_view",{p_item_id:e.id}).then())},children:[(0,l.jsxs)("div",{className:"posh-card-image-wrapper",children:[(null==(i=e.images)||null==(t=i[0])?void 0:t.match(/\.(mp4|webm|ogg|mov)$/i))?(0,l.jsx)("video",{src:e.images[0],className:"posh-card-image",muted:!0,loop:!0,playsInline:!0}):(0,l.jsx)("img",{src:null==(a=e.images)?void 0:a[0],className:"posh-card-image",alt:e.title,style:{display:(null==(s=e.images)?void 0:s[0])?"block":"none"}}),!(e.images&&e.images.length>0)&&(0,l.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,l.jsx)(u.A,{size:32,style:{opacity:.2}})}),(0,l.jsx)("button",{className:"posh-card-heart",onClick:t=>tZ(t,e.id),children:(0,l.jsx)(g.A,{size:16,fill:ew.has(e.id)?"#f43f5e":"none",color:ew.has(e.id)?"#f43f5e":"var(--text-muted)"})}),(0,l.jsxs)("div",{className:"posh-card-price-tag",children:[t3(e.price),"Property Rentals & Home Sales"===e.category&&"/mo"]}),e.is_sponsored&&(0,l.jsx)("div",{className:"posh-card-price-tag",style:{to
1p:8,bottom:"auto",background:"var(--primary)",color:"#fff"},children:"SPONSORED"}),"sold"===e.status&&(0,l.jsx)("div",{className:"posh-card-sold-overlay",children:"SOLD"}),"rented"===e.status&&(0,l.jsx)("div",{className:"posh-card-sold-overlay",style:{color:"#3b82f6"},children:"RENTED"})]}),(0,l.jsxs)("div",{className:"posh-card-details",children:[(0,l.jsx)("h3",{className:"posh-card-title",children:e.title}),(0,l.jsxs)("div",{className:"posh-card-meta",children:[(null==(n=e.item_details)?void 0:n.brand)&&(0,l.jsx)("span",{children:e.item_details.brand}),(null==(o=e.item_details)?void 0:o.size)&&(0,l.jsxs)("span",{children:["Size: ",e.item_details.size]}),(null==(r=e.vehicle_details)?void 0:r.year)&&(0,l.jsxs)("span",{children:[e.vehicle_details.year," ",e.vehicle_details.make]}),(null==(d=e.real_estate_details)?void 0:d.beds)&&(0,l.jsxs)("span",{children:[e.real_estate_details.beds," Bed, ",e.real_estate_details.baths," Bath"]}),!(null==(p=e.item_details)?void 0:p.brand)&&!e.vehicle_details&&!e.real_estate_details&&(0,l.jsx)("span",{children:e.category})]}),(0,l.jsxs)("div",{className:"posh-card-footer",children:[(0,l.jsxs)("div",{className:"posh-seller-info",children:[(0,l.jsx)(O.e,{url:null==(c=e.profiles)?void 0:c.avatar_url,name:null==(y=e.profiles)?void 0:y.name,size:20}),(0,l.jsx)("span",{className:"posh-seller-name",children:null==(b=e.profiles)?void 0:b.name}),(null==(x=e.profiles)?void 0:x.is_verified_resident)&&(0,l.jsxs)("span",{className:"local-resident-badge",title:"Confirmed local resident (verified home zip code)",children:[(0,l.jsx)(f.A,{size:11})," Local"]})]}),(0,l.jsx)("span",{style:{fontSize:"0.7rem",color:"var(--text-muted)"},children:t9(e.created_at)})]})]})]},e.id)};return(0,l.jsxs)("div",{className:"classifieds-container",children:[(0,l.jsx)(eo.Y,{placement:"classifieds"}),tY&&(0,l.jsx)("div",{className:"chat-toast glass",style:{zIndex:1e4},children:tY}),eO&&(0,l.jsx)("div",{className:"post-modal-overlay",onClick:()=>eV(!1),children:(0,l.jsxs)("div",{className:"post-modal glass",onClick:e=>e.stopPropagation(),style:{maxHeight:"90vh",overflowY:"auto"},children:[(0,l.jsxs)("div",{className:"modal-header",children:[(0,l.jsx)("h3",{children:"event"===e1?"Create Event":"Create Listing"}),(0,l.jsx)("button",{onClick:()=>eV(!1),children:(0,l.jsx)(h.A,{size:20})})]}),(0,l.jsxs)("div",{className:"modal-body",style:{display:"flex",flexDirection:"column",gap:"16px"},children:["event"!==e1&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{style:{display:"flex",gap:"8px",overflowX:"auto",paddingBottom:"8px"},children:[(0,l.jsxs)("div",{role:"button",tabIndex:0,"aria-label":"Add photos",onClick:()=>{var e;return null==(e=tF.current)?void 0:e.click()},onKeyDown:e=>{if("Enter"===e.key||" "===e.key){var t;e.preventDefault(),null==(t=tF.current)||t.click()}},style:{width:80,height:80,flexShrink:0,border:"2px dashed rgba(255,255,255,0.2)",borderRadius:8,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",background:"rgba(255,255,255,0.05)"},children:[(0,l.jsx)(v.A,{size:24,style:{opacity:.7}}),(0,l.jsx)("span",{style:{fontSize:10,opacity:.7,marginTop:4},children:"Add"})]}),tc.map((e,t)=>(0,l.jsxs)("div",{style:{position:"relative",width:80,height:80,flexShrink:0,borderRadius:8,overflow:"hidden"},children:[e.type.startsWith("video/")?(0,l.jsx)("video",{src:URL.createObjectURL(e),style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0}):(0,l.jsx)("img",{src:URL.createObjectURL(e),style:{width:"100%",height:"100%",objectFit:"cover"},alt:""}),(0,l.jsx)("button",{onClick:()=>ty(tc.filter((e,i)=>i!==t)),style:{position:"absolute",top:4,right:4,background:"rgba(0,0,0,0.6)",border:"none",borderRadius:"50%",padding:4,cursor:"pointer"},children:(0,l.jsx)(h.A,{size:12,color:"#fff"})})]},t))]}),(0,l.jsx)("input",{type:"file",hidden:!0,multiple:!0,accept:"image/*,video/*",ref:tF,onChange:e=>{if(!e.target.files)return;let t=Array.from(e.target.files),i=tc.filter(e=>e.type.startsWith("image/")),l=tc.filter(e=>e.type.startsWith("video/")),a=3,s=1;"Property Rentals & Home Sales"===to?a=20:"Vehicles & Powersports"===to&&(a=10,s=2);let n=[],o=[];for(let e of t)e.type.startsWith("image/")&&i.length+n.length<a?n.push(e):e.type.startsWith("video/")&&l.length+o.length<s&&o.push(e);n.length+o.length<t.length&&tX("Limit reached: ".concat(a," images and ").concat(s," video maximum.")),ty([...tc,...n,...o])}})]}),(0,l.jsx)("input",{type:"text",placeholder:"Title",value:tt,onCh
1ange:e=>ti(e.target.value),style:{padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"}}),"event"!==e1&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("input",{type:"number",placeholder:"Price ($)",value:tl,onChange:e=>ta(e.target.value),style:{width:"100%",padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"}}),(0,l.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,l.jsx)("input",{type:"text",placeholder:"Property Rentals & Home Sales"===to?"Full Address":"Location/City",value:ts,onChange:e=>tn(e.target.value),style:{flex:1,padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"}}),"Property Rentals & Home Sales"===to&&(0,l.jsx)("button",{onClick:t7,style:{padding:"0 16px",background:"#3b82f6",color:"#fff",border:"none",borderRadius:"8px",cursor:"pointer"},children:(0,l.jsx)(j.A,{size:16})})]})]}),"item"===e1&&(0,l.jsxs)(l.Fragment,{children:[il.length>0&&(0,l.jsxs)("div",{style:{display:"flex",gap:"12px",background:"rgba(139,92,246,0.1)",padding:"16px",borderRadius:"12px",border:"1px solid rgba(139,92,246,0.2)"},children:[(0,l.jsxs)("div",{style:{flex:1},children:[(0,l.jsx)("label",{style:{fontSize:"0.8rem",opacity:.7,color:"#c4b5fd"},children:"Attach to Event (Optional)"}),(0,l.jsxs)("select",{value:tg,onChange:e=>tf(e.target.value),style:{width:"100%",padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"#222",color:"#fff",marginTop:4},children:[(0,l.jsx)("option",{value:"",children:"None"}),il.map(e=>(0,l.jsx)("option",{value:e.id,children:e.title},e.id))]})]}),tg&&(0,l.jsxs)("div",{style:{flex:1},children:[(0,l.jsx)("label",{style:{fontSize:"0.8rem",opacity:.7,color:"#c4b5fd"},children:"Availability"}),(0,l.jsxs)("select",{value:th,onChange:e=>tv(e.target.value),style:{width:"100%",padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"#222",color:"#fff",marginTop:4},children:[(0,l.jsx)("option",{value:"now",children:"Available Now"}),(0,l.jsx)("option",{value:"event",children:"Wait for Event"})]})]})]}),(0,l.jsxs)("select",{value:to,onChange:e=>{tr(e.target.value),tC(""),tk(""),tR({})},style:{padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"#222",color:"#fff"},children:[(0,l.jsx)("option",{value:"",children:"Select Category"}),es.map(e=>(0,l.jsx)("option",{value:e.name,children:e.name},e.name))]}),to&&(0,l.jsxs)("select",{value:tj,onChange:e=>{tC(e.target.value),tk(""),tR({})},style:{padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"#222",color:"#fff"},children:[(0,l.jsx)("option",{value:"",children:"Select Sub-Category"}),null==(e=es.find(e=>e.name===to))?void 0:e.subcategories.map(e=>(0,l.jsx)("option",{value:e.name,children:e.name},e.name))]}),tj&&(0,l.jsxs)("select",{value:tS,onChange:e=>{tk(e.target.value),tR({})},style:{padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"#222",color:"#fff"},children:[(0,l.jsx)("option",{value:"",children:"Select Type"}),null==(i=es.find(e=>e.name===to))||null==(t=i.subcategories.find(e=>e.name===tj))?void 0:t.types.map(e=>(0,l.jsx)("option",{value:e.name,children:e.name},e.name))]}),tS&&(0,l.jsx)("div",{style:{background:"rgba(0,0,0,0.2)",padding:"16px",borderRadius:"12px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"},children:null==(K=es.find(e=>e.name===to))||null==(X=K.subcategories.find(e=>e.name===tj))||null==(r=X.types.find(e=>e.name===tS))?void 0:r.filters.map(e=>{var t;return"select"!==e.type?(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,l.jsx)("label",{style:{fontSize:"0.8rem",opacity:.7,color:"#c4b5fd"},children:e.label}),(0,l.jsx)("input",{type:"text",placeholder:e.label,value:tB[e.id]||"",onChange:t=>tR(i=>({...i,[e.id]:t.target.value})),style:{padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"}})]},e.id):(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,l.jsx)("label",{style:{fontSize:"0.8rem",opacity:.7,color:"#c4b5fd"},children:e.label}),(0,l.jsxs)("select",{value:tB[e.id]||"",onChange:t=>tR(i=>({...i,[e.id]:t.target.value})),style:{padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"},children:[(0,l.jsxs)("option",{value:"",children:["Select ",e.label]}),null==(t=e.options)?void 0:t.map(e=>(0,l.jsx)("option",{value:e,children:e},e))]})]},e.id)})})]}),"event"===e1&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,l.jsx)("input",{type:"text",placeholder:"Street Address",value:ts,onChange:e=>tn(e.target.value),style:{flex:1,padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"}}),(0,l.jsx)("button",{onClick:t7,style:{padding:"0 16px",background:"#3b82f6",color:"#fff",border:"none",borderRadius:"8px",cursor:"pointer"},children:(0,l.jsx)(j.A,{size:16})})]}),(0,l.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,l.jsxs)("div",{style:{flex:1},children:[(0,l.jsx)("label",{style:{fontSize:"0.8rem",opacity:.7},children:"Start Date"}),(0,l.jsx)("input",{type:"date",value:tT,onChange:e=>tD(e.target.value),style:{width:"100%",padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"}})]}),(0,l.jsxs)("div",{style:{flex:1},children:[(0,l.jsx)("label",{style:{fontSize:"0.8rem",opacity:.7},children:"End Date"}),(0,l.jsx)("input",{type:"date",value:tM,onChange:e=>tP(e.target.value),style:{width:"100%",padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"}})]})]}),(0,l.jsxs)("div",{style:{background:"rgba(0,0,0,0.2)",padding:"16px",borderRadius:"12px"},children:[(0,l.jsx)("label",{style:{fontSize:"0.9rem",fontWeight:"bold",display:"block",marginBottom:"12px"},children:"Daily Hours / Schedule"}),(0,l.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}
1,children:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"].map(e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{style:{fontSize:"0.75rem",opacity:.7},children:e}),(0,l.jsx)("input",{type:"text",placeholder:"e.g. 8am - 4pm",value:tN[e],onChange:t=>tW({...tN,[e]:t.target.value}),style:{width:"100%",padding:"8px 12px",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff",fontSize:"0.85rem"}})]},e))})]})]}),(0,l.jsx)("textarea",{placeholder:"Description",rows:4,value:td,onChange:e=>tp(e.target.value),style:{padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff",resize:"vertical"}}),("event"===e1||"Property Rentals & Home Sales"===to)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{fontSize:"0.8rem",opacity:.7},children:"Tap map to pin exact location"}),(0,l.jsx)("div",{style:{height:200,borderRadius:8,overflow:"hidden"},children:(0,l.jsxs)(Y.W,{center:[tb,tm],zoom:11,style:{height:"100%",width:"100%"},scrollWheelZoom:!1,children:[(0,l.jsx)(en.u,{}),(0,l.jsx)(e=>{let{lat:t,lng:i}=e,l=(0,V.ko)();return(0,a.useEffect)(()=>{l.flyTo([t,i],13)},[t,i,l]),null},{lat:tb,lng:tm}),(0,l.jsx)(()=>((0,V.Po)({click(e){tx(e.latlng.lat),tu(e.latlng.lng)}}),(0,l.jsx)(G.p,{position:[tb,tm]})),{})]})})]}),(0,l.jsx)("button",{onClick:t$,disabled:tI||!tt,className:"submit-listing-btn",style:{opacity:tI?.5:1},children:tI?"Saving...":"Post Listing"})]})]})}),e5&&(0,l.jsx)("div",{className:"post-modal-overlay",onClick:()=>e8(null),style:{zIndex:5e3},children:(0,l.jsxs)("div",{className:"post-modal glass",onClick:e=>e.stopPropagation(),style:{padding:0,overflow:"hidden",display:"flex",flexDirection:"column",maxHeight:"90vh"},children:[e5.images&&e5.images.length>0?(0,l.jsxs)("div",{style:{position:"relative",width:"100%",height:"300px",background:"#000"},children:[e5.images[e7].match(/\.(mp4|webm|ogg|mov)$/i)?(0,l.jsx)("video",{src:e5.images[e7],style:{width:"100%",height:"100%",objectFit:"contain"},controls:!0,autoPlay:!0,muted:!0,loop:!0,playsInline:!0}):(0,l.jsx)("img",{src:e5.images[e7],style:{width:"100%",height:"100%",objectFit:"contain"},alt:""}),e5.images.length>1&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{onClick:()=>te(e=>Math.max(0,e-1)),style:{position:"absolute",left:8,top:"50%",transform:"translateY(-50%)",background:"rgba(0,0,0,0.5)",border:"none",borderRadius:"50%",padding:8,cursor:"pointer"},children:(0,l.jsx)(C.A,{color:"#fff"})}),(0,l.jsx)("button",{onClick:()=>te(e=>Math.min(e5.images.length-1,e+1)),style:{position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",background:"rgba(0,0,0,0.5)",border:"none",borderRadius:"50%",padding:8,cursor:"pointer"},children:(0,l.jsx)(S.A,{color:"#fff"})})]}),(0,l.jsx)("button",{onClick:()=>e8(null),style:{position:"absolute",top:16,right:16,background:"rgba(0,0,0,0.6)",border:"none",borderRadius:"50%",padding:8,cursor:"pointer"},children:(0,l.jsx)(h.A,{size:20,color:"#fff"})})]}):(0,l.jsxs)("div",{style:{position:"relative",width:"100%",height:"200px",background:"rgba(255,255,255,0.05)",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,l.jsx)(u.A,{size:48,color:"rgba(255,255,255,0.2)"}),(0,l.jsx)("button",{onClick:()=>e8(null),style:{position:"absolute",top:16,right:16,background:"rgba(0,0,0,0.6)",border:"none",borderRadius:"50%",padding:8,cursor:"pointer"},children:(0,l.jsx)(h.A,{size:20,color:"#fff"})})]}),(0,l.jsxs)("div",{style:{padding:"24px",overflowY:"auto",flex:1},children:[(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:16},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{style:{margin:"0 0 8px",fontSize:"1.5rem"},children:e5.title}),(0,l.jsxs)("div",{style:{fontSize:"1.5rem",fontWeight:"bold",color:"var(--brand-color)"},children:[t3(e5.price),"Property Rentals & Home Sales"===e5.category&&"/mo"]})]}),(0,l.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,l.jsx)("button",{onClick:()=>{eX(e5),eY(!0)},style:{background:"rgba(255,255,255,0.1)",border:"none",borderRadius:"50%",padding:12,cursor:"pointer"},title:"Share",children:(0,l.jsx)(k.A,{size:24,color:"#fff"})}),(0,l.jsx)("button",{onClick:e=>tZ(e,e5.id),style:{background:"rgba(255,255,255,0.1)",border:"none",borderRadius:"50%",padding:12,cursor:"pointer"},title:"Favorite",children:(0,l.jsx)(g.A,{size:24,fill:ew.has(e5.id)?"#f43f5e":"none",color:ew.has(e5.id)?"#f43f5e":"#fff"})}),(0,l.jsx)("button",{onClick:async()=>
1{if(!(null==ex?void 0:ex.id))return;let e=prompt("Please describe why this listing is suspicious:");e&&(await F.supabase.from("classified_reports").insert({reporter_id:ex.id,item_id:e5.id,reason:e}),tX("Listing reported to admins for review."))},style:{background:"rgba(239,68,68,0.1)",border:"none",borderRadius:"50%",padding:12,cursor:"pointer"},title:"Report Suspicious Listing",children:(0,l.jsx)(w.A,{size:24,color:"#ef4444"})})]})]}),"sold"===e5.status&&(0,l.jsxs)("div",{style:{background:"rgba(239,68,68,0.2)",color:"#ef4444",padding:"8px 12px",borderRadius:8,marginBottom:16,display:"inline-flex",alignItems:"center",gap:6,fontWeight:"bold"},children:[(0,l.jsx)(z.A,{size:16})," Sold"]}),"rented"===e5.status&&(0,l.jsxs)("div",{style:{background:"rgba(16,185,129,0.2)",color:"#10b981",padding:"8px 12px",borderRadius:8,marginBottom:16,display:"inline-flex",alignItems:"center",gap:6,fontWeight:"bold"},children:[(0,l.jsx)(_.A,{size:16})," Currently Rented"]}),(0,l.jsxs)("div",{style:{display:"flex",gap:"16px",color:"rgba(255,255,255,0.6)",fontSize:"0.9rem",marginBottom:24},children:[(0,l.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,l.jsx)(f.A,{size:16})," ",e5.location]}),(0,l.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,l.jsx)(A.A,{size:16})," ",t9(e5.created_at)]})]}),e5.vehicle_details&&e5.vehicle_details.year&&(0,l.jsxs)("div",{style:{background:"rgba(0,0,0,0.2)",padding:16,borderRadius:12,marginBottom:24,display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{style:{opacity:.5,fontSize:"0.8rem",display:"block"},children:"Make"}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:e5.vehicle_details.make})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{style:{opacity:.5,fontSize:"0.8rem",display:"block"},children:"Model"}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:e5.vehicle_details.model})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{style:{opacity:.5,fontSize:"0.8rem",display:"block"},children:"Year"}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:e5.vehicle_details.year})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{style:{opacity:.5,fontSize:"0.8rem",display:"block"},children:"Mileage"}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:e5.vehicle_details.mileage})]})]}),e5.real_estate_details&&e5.real_estate_details.beds&&(0,l.jsxs)("div",{style:{background:"rgba(0,0,0,0.2)",padding:16,borderRadius:12,marginBottom:24,display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:12},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{style:{opacity:.5,fontSize:"0.8rem",display:"block"},children:"Beds"}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:e5.real_estate_details.beds})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{style:{opacity:.5,fontSize:"0.8rem",display:"block"},children:"Baths"}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:e5.real_estate_details.baths})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{style:{opacity:.5,fontSize:"0.8rem",display:"block"},children:"SqFt"}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:e5.real_estate_details.sqft})]})]}),e5.item_details&&(0,l.jsx)("div",{style:{background:"rgba(0,0,0,0.2)",padding:16,borderRadius:12,marginBottom:24,display:"flex",flexWrap:"wrap",gap:16},children:Object.entries(e5.item_details).filter(e=>{let[t]=e;return"subcategory"!==t&&"type"!==t}).map(e=>{let[t,i]=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{style:{opacity:.5,fontSize:"0.8rem",display:"block",textTransform:"capitalize"},children:t}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:i})]},t)})}),(0,l.jsx)("h4",{style:{margin:"0 0 8px",color:"rgba(255,255,255,0.8)"},children:"Description"}),(0,l.jsx)("p",{style:{margin:"0 0 24px",lineHeight:1.6,color:"rgba(255,255,255,0.9)",whiteSpace:"pre-wrap"},children:e5.description}),e5.event_id&&eS.find(e=>e.id===e5.event_id)&&(0,l.jsxs)("div",{onClick:()=>{e8(null),e6(eS.find(e=>e.id===e5.event_id)||null),tJ(e5.event_id)},style:{background:"rgba(139,92,246,0.1)",border:"1px solid rgba(139,92,246,0.3)",padding:16,borderRadius:12,marginBottom:24,cursor:"pointer",display:"flex",alignItems:"center",gap:12},children:[(0,l.jsx)(B.A,{size:24,color:"#8b5cf6"}),(0,l.jsxs)("div",{style:{flex:1},children:[(0,l.jsx)("div",{style:{fontWeight:"bold",color:"#8b5cf6"},children:"Part of an Event!"}),(0,l.jsx)("div",{style:{fontSize:"0.85rem",opacity:.8},children:null==(Q=eS.find(e=>e.id===e5.event_id))?void 0:Q.title})]}),"event"===e5.event_availability&&(0,l.jsx)("div",{style:{fontSize:"0.75rem",background:"#8b5cf6",color:"#fff",padding:"4px 8px",borderRadius:4,fontWeight:"bold"},children:"Wait for Event"}),"event"!==e5.event_availability&&(0,l.jsx)("div",{style:{fontSize:"0.75rem",background:"#10b981",color:"#fff",padding:"4px 8px",borderRadius:4,fontWeight:"bold"},children:"Available Now"})]}),(0,l.jsxs)("div",{style:{background:"rgba(255,255,255,0.05)",borderRadius:12,padding:16,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,l.jsx)(O.e,{url:e5.profiles.avatar_url,name:e5.profiles.name,size:48}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{fontWeight:"bold",fontSize:"1.1rem"},children:e5.profiles.name}),e5.profiles.is_verified_resident&&(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,color:"rgba(255,255,255,0.5)",fontSize:"0.85rem"},title:"Confirmed local resident (verified home zip code)",children:[(0,l.jsx)(f.A,{size:14,color:"#10b981"})," Local Resident"]})]})]}),(null==ex?void 0:ex.id)!==e5.user_id&&(0,l.jsxs)("button",{onClick:()=>{e8(null),tH({id:e5.user_id,name:e5.profiles.name})},style:{background:"#10b981",color:"#fff",border:"none",borderRadius:20,padding:"8px 16px",fontWeight:"bold",cursor:"pointer",display:"flex",alignItems:"center",gap:6},children:[(0,l.jsx)(R.A,{size:18})," Message"]})]})]})]})}),e4&&(0,l.jsx)("div",{className:"post-modal-overlay",onClick:()=>e6(null),style:{zIndex:5e3},children:(0,l.jsxs)("div",{className:"post-modal glass",onClick:e=>e.stopPropagation(),style:{padding:0,overflow:"hidden",display:"flex",flexDirection:"column",maxHeight:"90vh"},children:[(0,l.jsxs)("div",{style:{height:200,position:"relative"},children:[(0,l.jsxs)(Y.W,{center:[e4.latitude,e4.longitude],zoom:14,style:{height:"100%",width:"100%"},scrollWheelZoom:!1,children:[(0,l.jsx)(en.u,{}),(0,l.jsx)(G.p,{position:[e4.latitude,e4.longitude],icon:ed})]}),(0,l.jsx)("button",{onClick:()=>e6(null),style:{position:"absolute",top:16,right:16,background:"rgba(0,0,0,0.6)",border:"none",borderRadius:"50%",padding:8,curs
1or:"pointer",zIndex:1e3},children:(0,l.jsx)(h.A,{size:20,color:"#fff"})})]}),(0,l.jsxs)("div",{style:{padding:"24px",overflowY:"auto",flex:1},children:[(0,l.jsx)("h2",{style:{margin:"0 0 8px",fontSize:"1.5rem"},children:e4.title}),(0,l.jsxs)("div",{style:{display:"flex",gap:"16px",color:"rgba(255,255,255,0.6)",fontSize:"0.9rem",marginBottom:16},children:[(0,l.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,l.jsx)(f.A,{size:16})," ",e4.location_name]}),(0,l.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,l.jsx)(T.A,{size:16})," ",new Date(e4.start_date).toLocaleDateString()," - ",new Date(e4.end_date).toLocaleDateString()]})]}),(0,l.jsx)("p",{style:{margin:"0 0 24px",lineHeight:1.6,color:"rgba(255,255,255,0.9)"},children:e4.description}),e4.schedule&&Object.entries(e4.schedule).some(e=>{let[t,i]=e;return""!==i.trim()})&&(0,l.jsxs)("div",{style:{background:"rgba(0,0,0,0.2)",padding:"16px",borderRadius:"12px",marginBottom:"24px"},children:[(0,l.jsx)("h4",{style:{margin:"0 0 12px",color:"rgba(255,255,255,0.9)"},children:"Hours of Operation"}),(0,l.jsx)("div",{style:{display:"grid",gap:"8px"},children:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"].map(e=>{var t;let i=null==(t=e4.schedule)?void 0:t[e];return i&&""!==i.trim()?(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.9rem"},children:[(0,l.jsx)("span",{style:{color:"rgba(255,255,255,0.6)"},children:e}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:i})]},e):null})})]}),(0,l.jsxs)("div",{style:{borderTop:"1px solid rgba(255,255,255,0.1)",paddingTop:20},children:[(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[(0,l.jsx)("h3",{style:{margin:0},children:"Event Catalog"}),(null==ex?void 0:ex.id)===e4.user_id&&(0,l.jsx)("button",{onClick:()=>{e6(null),tf(e4.id),e2("item"),eV(!0)},style:{background:"var(--brand-color)",color:"#fff",border:"none",borderRadius:8,padding:"6px 12px",fontSize:"0.85rem",cursor:"pointer"},children:"+ Add Item"})]}),0===e3.length?(0,l.jsx)("div",{style:{textAlign:"center",opacity:.5,padding:"20px 0"},children:"No items in catalog yet."}):(0,l.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:"12px"},children:e3.map(e=>{var t;return(0,l.jsxs)("div",{role:"button",tabIndex:0,"aria-label":e.title,onClick:()=>{e6(null),e8(e)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e6(null),e8(e))},style:{background:"rgba(255,255,255,0.05)",borderRadius:8,overflow:"hidden",cursor:"pointer"},children:[(0,l.jsx)("div",{style:{height:100,background:(null==(t=e.images)?void 0:t[0])?"url(".concat(e.images[0],") center/cover"):"#222"}}),(0,l.jsxs)("div",{style:{padding:8},children:[(0,l.jsx)("div",{style:{fontWeight:"bold",fontSize:"0.9rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.title}),(0,l.jsx)("div",{style:{color:"var(--brand-color)",fontSize:"0.8rem"},children:t3(e.price)})]})]},e.id)})})]})]})]})}),tL&&(0,l.jsx)("div",{className:"post-modal-overlay",onClick:()=>tH(null),style:{zIndex:6e3},children:(0,l.jsxs)("div",{className:"post-modal glass",onClick:e=>e.stopPropagation(),style:{padding:0,display:"flex",flexDirection:"column",height:"400px"},children:[(0,l.jsxs)("div",{style:{padding:"16px 20px",borderBottom:"1px solid rgba(255,255,255,0.1)",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,l.jsxs)("div",{style:{fontWeight:"bold",fontSize:"1.1rem"},children:["Chat with ",tL.name]}),(0,l.jsx)("button",{onClick:()=>tH(null),style:{background:"none",border:"none",cursor:"pointer"},children:(0,l.jsx)(h.A,{color:"#fff",size:20})})]}),(0,l.jsxs)("div",{style:{flex:1,padding:20,display:"flex",flexDirection:"column",background:"rgba(0,0,0,0.2)",overflowY:"auto"},children:[(0,l.jsx)("div",{style:{textAlign:"center",color:"rgba(255,255,255,0.4)",fontSize:"0.85rem",marginBottom:16},children:"Start of conversation"}),tV.map((e,t)=>(0,l.jsx)("div",{style:{alignSelf:e.sender_id===(null==ex?void 0:ex.id)?"flex-end":"flex-start",background:e.sender_id===(null==ex?void 0:ex.id)?"var(--brand-color)":"rgba(255,255,255,0.1)",padding:"8px 12px",borderRadius:12,marginBottom:8,maxWidth:"80%"},children:(0,l.jsx)("div",{style:{whiteSpace:"pre-wrap",fontSize:"0.9rem"},children:e.content})},t))]}),(0,l.jsxs)("div",{style:{padding:16,borderTop:"1px solid rgba(255,255,255,0.1)",display:"flex",gap:12},children:[(0,l.jsx)("input",{type:"text",placeholder:"Type your message...",value:tq,onChange:e=>tO(e.target.value),onKeyDown:e=>"Enter"===e.key&&t6(),style:{flex:1,background:"rgba(255,255,255,0.1)",border:"none",borderRadius:20,padding:"12px 16px",color:"#fff",outline:"none"}}),(0,l.jsx)("button",{onClick:t6,style:{background:"var(--brand-color)",border:"none",borderRadius:"50%",width:44,height:44,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:(0,l.jsx)(D.A,{size:18,color:"#fff",style:{marginLeft:-2}})})]})]})}),(0,l.jsxs)("header",{className:"classifieds-header",children:[(0,l.jsxs)("div",{className:"title-row",children:[(0,l.jsx)("h1",{children:"Classifieds"}),(0,l.jsx)(s._,{platform:"classifieds",label:"Ask Sabine",title:"Ask Sabine",context:{type:"classifieds",title:"classifieds",text:"The user is in Classifieds. Use find_listings with kind classified for second-hand items, price_check for fair prices, get_my_listings for their listings; help write a listing as text."}}),(0,l.jsxs)("button",{className:"post-ad-btn",onClick:t2,children:[(0,l.jsx)(M.A,{size:18})," Post"]})]}),"items"===eh&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"search-bar-row",style:{display:"flex",gap:"8px",alignItems:"center"},children:[(0,l.jsxs)("div",{className:"search-input-box",children:[(0,l.jsx)(P.A,{size:18}),(0,l.jsx)("input",{type:"text",placeholder:"Search general items...",value:e_,onChange:e=>eA(e.target.value)})]}),(0,l.jsxs)("select",{value:eB,onChange:e=>{eR(e.target.value),eD(""),eP(""),eW({})},style:{padding:"12px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"#222",color:"#fff",outline:"none"},children:[(0,l.jsx)("option",{value:"All",children:"All Categories"}),es.map(e=>(0,l.jsx)("option",{value:e.name,children:e.name},e.name))]}),(0,l.jsxs)("button",{className:"filter-pill",onClick:()=>eE(!eI),children:[(0,l.jsx)(N.A,{size:16})," Filters"]})]}),eI&&"All"!==eB&&(0,l.jsxs)("div",{style:{background:"rgba(0,0,0,0.3)",padding:"16px",borderRadius:"12px",marginTop:"12px",display:"flex",flexDirection:"column",gap:"12px"},children:[(0,l.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,l.jsxs)("select",{value:eT,onChange:e=>{eD(e.target.value),eP(""),eW({})},style:{flex:1,padding:"10px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"#222",color:"#fff"},children:[(0,l.jsx)("option",{value:"",children:"All Sub-Categories"}),null==(ee=es.find(e=>e.name===eB))?void 0:ee.subcategories.map(e=>(0,l.jsx)("option",{value:e.name,children:e.name},e.name))]}),eT&&(0,l.jsxs)("select",{value:eM,onChange:e=>{eP(e.target.value),eW({})},style:{flex:1,padding:"10px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"#222",color:"#fff"},children:[(0,l.jsx)("option",{value:"",children:"All Types"}),null==(ei=es.find(e=>e.name===eB))||null==(et=ei.subcategories.find(e=>e.name===eT))?void 0:et.types.map(e=>(0,l.jsx)("option",{value:e.name,children:e.name},e.name))]})]}),eM&&(null==(er=es.find(e=>e.name===eB))||null==(ea=er.subcategories.find(e=>e.name===eT))||null==(el=ea.types.find(e=>e.name===eM))?void 0:el.filters.length)>0&&(0,l.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px",marginTop:"8px"},children:null==(eb=es.find(e=>e.name===eB))||null==(ey=eb.subcategories.find(e=>e.name===eT))||null==(ec=ey.types.find(e=>e.name===eM))?void 0:ec.filters.map(e=>{var t;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,l.jsx)("label",{style:{fontSize:"0.8rem",opacity:.7,color:"#c4b5fd"},children:e.label}),"select"===e.type?(0,l.jsxs)("select",{value:eN[e.id]||"",onChange:t=>eW(i=>({...i,[e.id]:t.target.value})),style:{padding:"10px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"},children:[(0,l.jsx)("option",{value:"",children:"Any"}),null==(t=e.options)?void 0:t.map(e=>(0,l.jsx)("option",{value:e,children:e},e))]}):(0,l.jsx)("input",{type:"text",placeholder:"Any ".concat(e.label),value:eN[e.id]||"",onChange:t=>eW(i=>({...i,[e.id]:t.target.value})),style:{padding:"10px",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)",color:"#fff"}})]},e.id)})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"8px"},children:(0,l.jsx)("button",{onClick:()=>eW({}),style:{background:"none",border:"none",color:"#c4b5fd",fontSize:"0.85rem",cursor:"pointer"},children:"Clear Filters"})})]})]}),"map"===eh&&(0,l.jsxs)("div",{style:{display:"flex",gap:"8px",marginBottom:16},children:[(0,l.jsx)("button",{onClick:()=>eL("events"),className:"cat-pill ".concat("events"===eF?"active":""),children:"Events"}),(0,l.jsx)("button",{onClick:()=>eL("properties"),className:"cat-pill ".concat("properties"===eF?"active":""),children:"Properties"}),(0,l.jsxs)("div",{style:{marginLeft:"auto",display:"flex",background:"rgba(255,255,255,0.1)",borderRadius:20},children:[(0,l.jsx)("button",{onClick:()=>eq("map"),style:{padding:"6px 12px",borderRadius:20,background:"map"===eH?"#fff":"transparent",color:"map"===eH?"#000":"#fff",border:"none"},children:"Map"}),(0,l.jsx)("button",{onClick:()=>eq("list"),style:{padding:"6px 12px",borderRadius:20,background:"list"===eH?"#fff":"transparent",color:"list"===eH?"#000":"#fff",border:"none"},children:"List"})]})]})]}),(0,l.jsxs)("div",{className:"posh-grid",style:"map"===eh&&"map"===eH?{display:"block",height:"calc(100vh - 230px)",padding:0}:{},children:["items"===eh&&(0,l.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,l.jsxs)("div",{className:"posh-hero-banner",children:[(0,l.jsx)("h2",{children:"Welcome to SETX Marketplace"}),(0,l.jsx)("p",{children:"Discover unique items, local deals, and more."})]}),(0,l.jsxs)("div",{className:"posh-categories-scroll",children:[(0,l.jsxs)("div",{className:"posh-category-circle-wrapper ".concat("All"===eB?"active":""),role:"button",tabIndex:0,"aria-label":"All categories","aria-current":"All"===eB,onClick:()=>{eR("All"),eD(""),eP(""),eW({})},onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eR("All"),eD(""),eP(""),eW({}))},children:[(0,l.jsx)("div",{className:"posh-category-circle",children:(0,l.jsx)(m.A,{size:24})}),(0,l.jsx)("div",{className:"posh-category-name",children:"All"})]}),es.filter(e=>"Vehicles & Powersports"!==e.name&&"Property Rentals & Home Sales"!==e.name).map(e=>(0,l.jsxs)("div",{className:"posh-category-circle-wrapper ".concat(eB===e.name?"active":""),role:"button",tabIndex:0,"aria-label":e.name,"aria-current":eB===e.name,onClick:()=>{eR(e.name),eD(""),eP(""),eW({})},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),eR(e.name),eD(""),eP(""),eW({}))},children:[(0,l.jsx)("div",{className:"posh-category-circle",children:(e=>e.includes("Apparel")?(0,l.jsx)(n.A,{size:24}):e.includes("Electronic")?(0,l.jsx)(o.A,{size:24}):e.includes("Home")?(0,l.jsx)(d,{size:24}):e.includes("Entertainment")?(0,l.jsx)(p.A,{size:24}):e.includes("Jewelry")?(0,l.jsx)(c,{size:24}):e.includes("Baby")||e.includes("Kid")?(0,l.jsx)(y.A,{size:24}):e.includes("Vehicles")?(0,l.jsx)(b.A,{size:24}):e.includes("Property")?(0,l.jsx)(x.A,{size:24}):(0,l.jsx)(m.A,{size:24}))(e.name)}),(0,l.jsx)("div",{className:"posh-category-name",children:e.name.split(" ")[0]})]},e.name))]}),(0,l.jsx)("div",{className:"posh-section-title",children:"Just In"})]}),("items"===eh||"vehicles"===eh||"real_estate"===eh)&&(0===ir().length?(0,l.jsxs)("div",{style:{gridColumn:"1 / -1",padding:"60px 20px",textAlign:"center",color:"rgba(255,255,255,0.6)"},children:[(0,l.jsx)(m.A,{size:48,style:{opacity:.2,marginBottom:16}}),(0,l.jsx)("h3",{style:{margin:"0 0 8px"},children:"No listings found here"}),(0,l.jsx)("p",{style:{margin:0,fontSize:"0.9rem"},children:"Try adjusting your filters or search query!"})]}):ir().map(id)),"map"===eh&&("map"===eH?(0,l.jsx)("div",{style:{height:"100%",borderRadius:12,overflow:"hidden"},children:(0,l.jsxs)(Y.W,{center:[30.0802,-94.1266],zoom:10,style:{height:"100%",width:"100%"},scrollWheelZoom:!1,children:[(0,l.jsx)(en.u,{}),"events"===eF?eS.map(e=>(0,l.jsx)(G.p,{position:[e.latitude,e.longitude],icon:ed,children:(0,l.jsx)(U.z,{children:(0,l.jsxs)("div",{style:{textAlign:"center"},children:[(0,l.jsx)("h3",{style:{margin:"0 0 4px"},children:e.title}),(0,l.jsx)("div",{style:{fontSize:"0.8rem",color:"#666",marginBottom:8},children:new Date(e.start_date).toLocaleDateString()}),(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[(0,l.jsx)("button",{onClick:()=>{e6(e),tJ(e.id)},style:{background:"var(--brand-color)",color:"#fff",border:"none",padding:"6px 12px",borderRadius:4,cursor:"pointer",width:"100%"},children:"View Details"}),(0,l.jsxs)("a",{href:"https://www.google.com/maps/search/?api=1&query=".concat(e.latitude,",").concat(e.longitude),target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",background:"transparent",color:"var(--brand-color)",border:"1px solid var(--brand-color)",padding:"6px 12px",borderRadius:4,textDecoration:"none",fontSize:"0.85rem"},children:[(0,l.jsx)(W.A,{size:14})," Get Directions"]})]})]})})},e.id)):ej.filter(e=>"Property Rentals & Home Sales"===e.category&&e.latitude&&e.longitude).map(e=>(0,l.jsx)(G.p,{position:[e.latitude,e.longitude],icon:ep,children:(0,l.jsx)(U.z,{children:(0,l.jsxs)("div",{style:{textAlign:"center"},children:[(0,l.jsx)("h3",{style:{margin:"0 0 4px"},children:e.title}),(0,l.jsxs)("div",{style:{fontSize:"1rem",color:"#10b981",fontWeight:"bold",marginBottom:8},children:[t3(e.price),"/mo"]}),(0,l.jsx)("button",{onClick:()=>{e8(e)},style:{background:"var(--brand-color)",color:"#fff",border:"none",padding:"6px 12px",borderRadius:4,cursor:"pointer"},children:"View Property"})]})})},e.id))]})}):"events"===eF?eS.map(e=>(0,l.jsx)("div",{className:"item-card glass",role:"button",tabIndex:0,"aria-label":e.title,onClick:()=>{e6(e),tJ(e.id)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e6(e),tJ(e.id))},children:(0,l.jsxs)("div",{style:{padding:16},children:[(0,l.jsxs)("div",{style:{fontSize:"0.8rem",color:"var(--brand-color)"},children:["EVENT ⢠",new Date(e.start_date).toLocaleDateString()]}),(0,l.jsx)("h3",{style:{margin:"4px 0 8px"},children:e.title}),(0,l.jsxs)("div",{style:{fontSize:"0.9rem",color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"center",gap:4},children:[(0,l.jsx)(f.A,{size:14})," ",e.location_name]})]})},e.id)):ej.filter(e=>"Property Rentals & Home Sales"===e.category).map(id)),"my_stuff"===eh&&(0,l.jsxs)("div",{style:{gridColumn:"1 / -1",display:"flex",flexDirection:"column",gap:"24px"},children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("h3",{style:{margin:"0 0 12px",display:"flex",alignItems:"center",gap:8},children:[(0,l.jsx)(x.A,{size:18})," My Properties"]}),0===ii.length?(0,l.jsx)("div",{style:{opacity:.5},children:"No properties listed."}):ii.map(e=>{var t;return(0,l.jsxs)("div",{className:"glass",style:{padding:16,borderRadius:12,display:"flex",flexDirection:"column",gap:12,marginBottom:12},children:[(0,l.jsxs)("div",{style:{display:"flex",gap:12},children:[(0,l.jsx)("div",{style:{width:60,height:60,borderRadius:8,background:(null==(t=e.images)?void 0:t[0])?"url(".concat(e.images[0],") center/cover"):"#222"}}),(0,l.jsxs)("div",{style:{flex:1},children:[(0,l.jsx)("div",{style:{fontWeight:"bold"},children:e.title}),(0,l.jsxs)("div",{style:{color:"var(--brand-color)",fontSize:"0.9rem"},children:[t3(e.price),"/mo"]}),(0,l.jsxs)("div",{style:{fontSize:"0.8rem",opacity:.6,marginTop:4},children:["Status: ",e.status.toUpperCase()," ⢠",(0,l.jsx)(I.A,{size:12,style:{verticalAlign:"middle",marginLeft:4}})," ",e.views||0," views"]})]}),(0,l.jsx)("button",{onClick:()=>t8(e.id),style:{background:"rgba(239,68,68,0.2)",color:"#ef4444",border:"none",padding:8,borderRadius:8,height:"fit-content"},children:(0,l.jsx)(E.A,{size:16})})]}),(0,l.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,l.jsx)("button",{onClick:()=>t0(e.id,"active"),disabled:"active"===e.status,style:{flex:1,padding:"8px",borderRadius:8,border:"none",background:"active"===e.status?"#10b981":"rgba(255,255,255,0.1)",color:"#fff"},children:"Active"}),(0,l.jsx)("button",{onClick:()=>t0(e.id,"rented"),disabled:"rented"===e.status,style:{flex:1,padding:"8px",borderRadius:8,border:"none",background:"rented"===e.status?"#3b82f6":"rgba(255,255,255,0.1)",color:"#fff"},children:"Rented"})]})]},e.id)})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("h3",{style:{margin:"0 0 12px",display:"flex",alignItems:"center",gap:8},children:[(0,l.jsx)(b.A,{size:18})," My Vehicles"]}),0===it.length?(0,l.jsx)("div",{style:{opacity:.5},children:"No vehicles listed."}):it.map(e=>{var t;return(0,l.jsxs)("div",{className:"glass",style:{padding:16,borderRadius:12,display:"flex",flexDirection:"column",gap:12,marginBottom:12},children:[(0,l.jsxs)("div",{style:{display:"flex",gap:12},children:[(0,l.jsx)("div",{style:{width:60,height:60,borderRadius:8,background:(null==(t=e.images)?void 0:t[0])?"url(".concat(e.images[0],") center/cover"):"#222"}}),(0,l.jsxs)("div",{style:{flex:1},children:[(0,l.jsx)("div",{style:{fontWeight:"bold"},children:e.title}),(0,l.jsx)("div",{style:{color:"var(--brand-color)",fontSize:"0.9rem"},children:t3(e.price)}),(0,l.jsxs)("div",{style:{fontSize:"0.8rem",opacity:.6,marginTop:4},children:["Status: ",e.status.toUpperCase()," ⢠",(0,l.jsx)(I.A,{size:12,style:{verticalAlign:"middle",marginLeft:4}})," ",e.views||0," views"]})]}),(0,l.jsx)("button",{onClick:()=>t8(e.id),style:{background:"rgba(239,68,68,0.2)",color:"#ef4444",border:"none",padding:8,borderRadius:8,height:"fit-content"},children:(0,l.jsx)(E.A,{size:16})})]}),(0,l.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,l.jsx)("button",{onClick:()=>t0(e.id,"active"),disabled:"active"===e.status,style:{flex:1,padding:"8px",borderRadius:8,border:"none",background:"active"===e.status?"#10b981":"rgba(255,255,255,0.1)",color:"#fff"},children:"Active"}),(0,l.jsx)("button",{onClick:()=>t0(e.id,"sold"),disabled:"sold"===e.status,style:{flex:1,padding:"8px",borderRadius:8,border:"none",background:"sold"===e.status?"#ef4444":"rgba(255,255,255,0.1)",color:"#fff"},children:"Sold"})]})]},e.id)})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("h3",{style:{margin:"0 0 12px",display:"flex",alignItems:"center",gap:8},children:[(0,l.jsx)(m.A,{size:18})," My General Items"]}),0===ie.length?(0,l.jsx)("div",{style:{opacity:.5},children:"No items listed."}):ie.map(e=>{var t;let i=Math.floor((Date.now()-new Date(e.updated_at).getTime())/864e5);return(0,l.jsxs)("div",{className:"glass",style:{padding:16,borderRadius:12,display:"flex",flexDirection:"column",gap:12,marginBottom:12},children:[(0,l.jsxs)("div",{style:{display:"flex",gap:12},children:[(0,l.jsx)("div",{style:{width:60,height:60,borderRadius:8,background:(null==(t=e.images)?void 0:t[0])?"url(".concat(e.images[0],") center/cover"):"#222"}}),(0,l.jsxs)("div",{style:{flex:1},children:[(0,l.jsx)("div",{style:{fontWeight:"bold"},children:e.title}),(0,l.jsx)("div",{style:{color:"var(--brand-color)",fontSize:"0.9rem"},children:t3(e.price)}),(0,l.jsxs)("div",{style:{fontSize:"0.8rem",opacity:.6,marginTop:4},children:["Status: ",e.status.toUpperCase()," ⢠Expires in ",Math.max(0,30-i)," days ⢠",(0,l.jsx)(I.A,{size:12,style:{verticalAlign:"middle",marginLeft:4}})," ",e.views||0," views"]})]}),(0,l.jsx)("button",{onClick:()=>t8(e.id),style:{background:"rgba(239,68,68,0.2)",color:"#ef4444",border:"none",padding:8,borderRadius:8,height:"fit-content"},children:(0,l.jsx)(E.A,{size:16})})]}),i>=27&&(0,l.jsx)("button",{onClick:()=>t5(e.id,e.renewal_count||0),style:{padding:"8px",borderRadius:8,border:"none",background:"var(--brand-color)",color:"#fff",fontWeight:"bold"},children:"Renew (+30 Days)"}),(0,l.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,l.jsx)("button",{onClick:()=>t0(e.id,"active"),disabled:"active"===e.status,style:{flex:1,padding:"8px",borderRadius:8,border:"none",background:"active"===e.status?"#10b981":"rgba(255,255,255,0.1)",color:"#fff"},children:"Active"}),(0,l.jsx)("button",{onClick:()=>t0(e.id,"sold"),disabled:"sold"===e.status,style:{flex:1,padding:"8px",borderRadius:8,border:"none",background:"sold"===e.status?"#ef4444":"rgba(255,255,255,0.1)",color:"#fff"},children:"Sold"})]})]},e.id)})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("h3",{style:{margin:"0 0 12px",display:"flex",alignItems:"center",gap:8},children:[(0,l.jsx)(T.A,{size:18})," My Events"]}),0===il.length?(0,l.jsx)("div",{style:{opacity:.5},children:"No events hosted."}):il.map(e=>(0,l.jsxs)("div",{className:"glass",style:{padding:16,borderRadius:12,display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{fontWeight:"bold"},children:e.title}),(0,l.jsx)("div",{style:{fontSize:"0.85rem",opacity:.7},children:new Date(e.start_date).toLocaleDateString()})]}),(0,l.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,l.jsx)("button",{onClick:()=>{e6(e),tJ(e.id)},style:{background:"rgba(255,255,255,0.1)",border:"none",padding:"6px 12px",borderRadius:8,color:"#fff"},children:"View Catalog"}),(0,l.jsx)("button",{onClick:()=>t4(e.id),style:{background:"rgba(239,68,68,0.2)",border:"none",padding:"6px 12px",borderRadius:8,color:"#ef4444"},children:(0,l.jsx)(E.A,{size:16})})]})]},e.id))]})]}),"saved"===eh&&(0,l.jsxs)("div",{style:{gridColumn:"1 / -1",display:"flex",flexDirection:"column",gap:"24px"},children:[0===ew.size&&(0,l.jsx)("div",{style:{padding:"40px 20px",textAlign:"center",color:"rgba(255,255,255,0.5)"},children:"You haven't saved any items yet."}),ia.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsxs)("h3",{style:{margin:"0 0 12px",display:"flex",alignItems:"center",gap:8},children:[(0,l.jsx)(x.A,{size:18})," Saved Properties"]}),(0,l.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:ia.map(id)})]}),is.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsxs)("h3",{style:{margin:"0 0 12px",display:"flex",alignItems:"center",gap:8},children:[(0,l.jsx)(b.A,{size:18})," Saved Vehicles"]}),(0,l.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:is.map(id)})]}),io.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsxs)("h3",{style:{margin:"0 0 12px",display:"flex",alignItems:"center",gap:8},children:[(0,l.jsx)(m.A,{size:18})," Saved General Items"]}),(0,l.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:io.map(id)})]})]})]}),(0,l.jsx)("div",{className:"classifieds-fab",children:(0,l.jsxs)("button",{className:"fab-main",onClick:t2,children:[(0,l.jsx)(v.A,{size:24}),(0,l.jsx)("span",{children:"Post"})]})}),(0,l.jsx)(q.N,{children:t_&&(0,l.jsx)(Z.x,{user:ex,onClose:()=>tA(!1)})}),eG&&eU&&ex&&(0,l.jsx)($.Z,{user:ex,attachment:{type:"classified",id:eU.id,data:eU},onClose:()=>{eY(!1),eX(null)},onShareNow:async(e,t)=>{try{let{error:t}=await F.supabase.schema("consumer").from("posts").insert({profile_id:ex.id,content:e,type:"post",category:"Everybody",metadata:{linked_classifieds:[eU.id]}});if(t)throw t;alert("Listing shared to your feed!"),eY(!1),eX(null)}catch(e){console.error("Error sharing classified:",e)}}}),eK&&(0,l.jsx)("div",{className:"modal-overlay",onClick:e=>e.target===e.currentTarget&&eJ(null),style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.7)",backdropFilter:"blur(6px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"},children:(0,l.jsxs)("div",{className:"glass",style:{background:"var(--bg-card)",width:"100%",maxWidth:"440px",borderRadius:"24px",padding:"24px",border:"1px solid var(--border)"},children:[(0,l.jsx)("h3",{style:{margin:"0 0 6px 0"},children:"Sold it! \uD83C\uDF89"}),(0,l.jsxs)("p",{style:{margin:"0 0 14px 0",fontSize:"0.85rem",color:"var(--text-secondary)"},children:['Want to let SETX know "',eK.title,"\" sold locally? It's a nice, quick way to show the community that local trade actually happens here."]}),(0,l.jsx)("textarea",{value:eZ,onChange:e=>e$(e.target.value),placeholder:"Say a word or two about it (optional)",style:{width:"100%",minHeight:"70px",padding:"10px",borderRadius:"10px",border:"1px solid var(--border)",background:"color-mix(in srgb, var(--text) 3%, transparent)",color:"var(--text)",resize:"vertical",marginBottom:"14px",fontFamily:"inherit"}}),(0,l.jsxs)("div",{style:{display:"flex",gap:"10px"},children:[(0,l.jsx)("button",{onClick:()=>eJ(null),disabled:eQ,style:{flex:1,padding:"12px",borderRadius:"12px",border:"1px solid var(--border)",background:"transparent",color:"var(--text)",cursor:"pointer"},children:"Skip"}),(0,l.jsx)("button",{onClick:t1,disabled:eQ,style:{flex:2,padding:"12px",borderRadius:"12px",border:"none",background:"var(--primary)",color:"#fff",fontWeight:700,cursor:"pointer"},children:eQ?"Posting...":"Post to Social"})]})]})})]})}},76441:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});let l=(0,i(12119).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},95644:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});var l=i(7620),a=i(18301),s=i(55649);function n(){let e=(0,a.ko)();return(0,l.useEffect)(()=>{let t=(0,s.Ay)({style:"https://tiles.openfreemap.org/styles/liberty"}).addTo(e);return()=>{e.removeLayer(t)}},[e]),null}i(49524)}}]);
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.