PageSourceSearch

https://global-classifieds-pbooks.replit.app/assets/PostingSelection-D3rswxq4.js

js global-classifieds-pbooks.replit.app collected 2026-10-03 03:55:11 UTC 6,239 bytes, 1 lines download raw bytes

1import{j as e,C as h,a as p,b as u,c as j,B as i,av as y,S as g,aj as N,aw as v,T as f,k as w,r as m,K as A}from"./index-BlbQzOrD.js";import{P as S}from"./package-B8gI4BBm.js";import{S as P}from"./shopping-cart-CFWEpKio.js";import{B as C}from"./briefcase-Cfn4jPQN.js";import{W as B}from"./wrench-DbvsZDaX.js";import{H as I}from"./house-BbixXQS5.js";import{A as L}from"./arrow-left-zuPqDeVO.js";function k({onSelect:a,className:t=""}){const l=[{type:"product",sellAction:{label:"I'm Selling",icon:e.jsx(S,{className:"h-6 w-6"}),description:"Sell your items to buyers"},buyAction:{label:"I Want to Buy",icon:e.jsx(P,{className:"h-6 w-6"}),description:"Find items you want to purchase"}},{type:"job",sellAction:{label:"I'm Hiring",icon:e.jsx(y,{className:"h-6 w-6"}),description:"Post a job and find candidates"},buyAction:{label:"I Want a Job",icon:e.jsx(C,{className:"h-6 w-6"}),description:"Browse and apply for jobs"}},{type:"service",sellAction:{label:"I Offer a Service",icon:e.jsx(B,{className:"h-6 w-6"}),description:"Offer your professional services"},buyAction:{label:"I Need a Service",icon:e.jsx(g,{className:"h-6 w-6"}),description:"Find service providers"}},{type:"property",sellAction:{label:"I'm Renting/Selling",icon:e.jsx(N,{className:"h-6 w-6"}),description:"List your property for rent or sale"},buyAction:{label:"I Want Property",icon:e.jsx(I,{className:"h-6 w-6"}),description:"Find properties to rent or buy"}},{type:"auction",sellAction:{label:"I'm Auctioning",icon:e.jsx(v,{className:"h-6 w-6"}),description:"Start an auction for your items"},buyAction:{label:"I Want to Bid",icon:e.jsx(f,{className:"h-6 w-6"}),description:"Participate in auctions"}}];return e.jsxs("div",{className:`space-y-6 ${t}`,children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"What would you like to do?"}),e.jsx("p",{className:"text-gray-600",children:"Choose your posting type to get started"})]}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:l.map(s=>e.jsxs(h,{className:"hover:shadow-lg transition-shadow",children:[e.jsx(p,{className:"pb-3",children:e.jsx(u,{className:"text-lg capitalize",children:s.type==="property"?"Real Estate":s.type})}),e.jsxs(j,{className:"space-y-3",children:[e.jsx(i,{variant:"default",className:"w-full justify-start h-auto p-4",onClick:()=>a(s.type,"sell"),children:e.jsxs("div",{className:"flex items-center gap-3",children:[s.sellAction.icon,e.jsxs("div",{className:"text-left",children:[e.jsx("div",{className:"font-medium",children:s.sellAction.label}),e.jsx("div",{className:"text-xs text-gray-200",children:s.sellAction.description})]})]})}),e.jsx(i,{variant:"outline",className:"w-full justify-start h-auto p-4",onClick:()=>a(s.type,"buy"),children:e.jsxs("div",{className:"flex items-center gap-3",children:[s.buyAction.icon,e.jsxs("div",{className:"text-left",children:[e.jsx("div",{className:"font-medium",children:s.buyAction.label}),e.jsx("div",{className:"text-xs text-gray-500",children:s.buyAction.description})]})]})})]})]},s.type))})]})}function R(){const[,a]=w(),[t,l]=m.useState(null),[s,o]=m.useState(null),n=(c,r)=>{var x;l(c),o(r);const b=((x={product:{sell:"/post-listing",buy:"/browse?type=product&action=buy"},job:{sell:"/post-job",buy:"/jobs?action=find"},service:{sell:"/services-form",buy:"/browse?type=service&action=need"},property:{sell:"/post-property",buy:"/browse?type=property&action=want"},auction:{sell:"/post-auction",buy:"/offers?action=browse"}}[c])==null?void 0:x[r])||"/browse";a(b)},d=()=>{if(t&&s){const c={product:"Product",job:"Job",service:"Service",property:"Property",auction:"Auction"};return`${{sell:"Selling",buy:"Buying"}[s]} ${c[t]}`}return"Choose Your Posting Type"};return e.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(i,{variant:"ghost",size:"sm",onClick:()=>a("/"),className:"flex items-center gap-2",children:[e.jsx(L,{className:"h-4 w-4"}),"Back to Home"]}),e.jsx("div",{className:"h-6 w-px bg-gray-300"}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:d()})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(A,{className:"h-5 w-5 text-orange-600"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Post New Listing"})]})]}),e.jsx("div",{className:"max-w-5xl mx-auto",children:t?e.jsxs(h,{className:"p-6",children:[e.jsx(p,{children:e.jsxs(u,{className:"text-xl",children:["You selected: ",d()]})}),e.jsx(j,{children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(i,{variant:"outline",onClick:()=>{l(null),o(null)},children:"Choose Different Type"}),e.jsx(i,{onClick:()=>n(t,s),className:"bg-orange-600 hover:bg-orange-700",children:"Continue to Posting"})]})})]}):e.jsx(k,{onSelect:n})}),e.jsxs("div",{className:"mt-16 grid grid-cols-2 md:grid-cols-5 ga
1p-4 text-center",children:[e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-orange-600",children:"2.5M+"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Active Listings"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-orange-600",children:"150K+"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Job Opportunities"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-orange-600",children:"80K+"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Service Providers"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-orange-600",children:"45K+"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Properties"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-sm",children:[e.jsx("div",{className:"text-2xl font-bold text-orange-600",children:"25K+"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Live Auctions"})]})]})]})})}export{R as default};

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.