PageSourceSearch

https://www.efuturanetworks.com/_next/static/chunks/6360.5c34bc9a1c2438d2.js

js efuturanetworks.com collected 2026-10-05 03:18:31 UTC 10,677 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6360],{11907:()=>{},76360:(e,s,a)=>{"use strict";a.d(s,{_:()=>g});var i=a(54568),r=a(7620),n=a(51166),l=a(95355),t=a(18335),o=a(87551),c=a(45801),d=a(99935),p=a(64751),u=a(14486),h=a(60844),x=a(90008),m=a(36398),v=a(6158),j=a(91550),y=a(43052);a(11907);let g=e=>{var s;let{user:a,onComplete:g,onCancel:b}=e,{activeCounty:N}=(0,v.n)(),[f,w]=(0,r.useState)(1),[S,k]=(0,r.useState)(!1),[C,A]=(0,r.useState)(""),[z,_]=(0,r.useState)(!1),[R,B]=(0,r.useState)(null);(0,r.useEffect)(()=>{x.supabase.from("zip_node_mapping").select("county_name").then(e=>{let{data:s}=e;B([...new Set((s||[]).map(e=>e.county_name))])})},[]);let[T,O]=(0,r.useState)({name:(null==a?void 0:a.company)||"",description:"",type:"physical",category:(null==a||null==(s=a.business_category)?void 0:s.toLowerCase())||"retail",subcategory:"",location:(null==a?void 0:a.location)||"",image_url:"",address:"",zip:(null==a?void 0:a.zip)||"",county:(null==a?void 0:a.county)||N||"",showAddressPublicly:!0}),E=null!==R&&!R.includes(T.county),I=async()=>{if(!T.name)return void A("Store name is required");k(!0),A("");try{let{storeId:e}=await (0,m._h)({userId:a.id,businessName:T.name,category:T.category,zip:T.zip,tenantId:T.county,address:T.address,email:a.email,fullName:a.name,isSuperAdmin:"super admin"===a.role}),{data:s,error:i}=await x.supabase.from("stores").update({description:T.description,type:T.type,subcategory:T.subcategory,location:T.location,image_url:T.image_url||"https://ui-avatars.com/api/?name=".concat(encodeURIComponent(T.name),"&background=random"),address:T.address,show_address:T.showAddressPublicly,is_verified:!1}).eq("id",e).select().single();if(i)throw i;g(s)}catch(e){if((null==e?void 0:e.step)==="subscription"){try{localStorage.setItem(y.r_,JSON.stringify({businessName:T.name,category:T.category,address:T.address,zip:T.zip,email:a.email,fullName:a.name,tenantId:T.county,storeExtras:{description:T.description,type:T.type,subcategory:T.subcategory,location:T.location,image_url:T.image_url||"https://ui-avatars.com/api/?name=".concat(encodeURIComponent(T.name),"&background=random"),show_address:T.showAddressPublicly,is_verified:!1},savedAt:Date.now()}))}catch(e){}_(!0)}else A(e.message||"Failed to create store")}finally{k(!1)}};return(0,i.jsxs)("div",{className:"wizard-overlay",children:[(0,i.jsx)("div",{className:"wizard-modal premium-card",children:E?(0,i.jsxs)("div",{className:"wizard-step fade-in",style:{textAlign:"center",padding:"40px 0"},children:[(0,i.jsx)("div",{className:"step-icon",style:{background:"rgba(239, 68, 68, 0.1)",color:"#ef4444"},children:(0,i.jsx)(n.A,{size:32})}),(0,i.jsx)("h2",{children:"Service Unavailable"}),(0,i.jsxs)("p",{style:{marginBottom:24},children:["SETX 360 Marketplace is not yet available in your county. Currently live: ",(0,i.jsx)("strong",{children:(R||[]).join(", ")||"Jefferson"}),"."]}),(0,i.jsxs)("div",{className:"geo-pill-display",style:{background:"rgba(239, 68, 68, 0.05)",color:"#ef4444"},children:["Your Region: ",T.county||"Unknown"]}),(0,i.jsx)("button",{className:"primary-btn",onClick:b,style:{marginTop:32,background:"#ef4444"},children:"Exit Setup"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"wizard-progress",children:[1,2,3].map(e=>(0,i.jsx)("div",{className:"progress-dot ".concat(f>=e?"active":"")},e))}),1===f&&(0,i.jsxs)("div",{className:"wizard-step fade-in",children:[(0,i.jsxs)("div",{className:"step-header",children:[(0,i.jsx)("div",{className:"step-icon",children:(0,i.jsx)(l.A,{size:32})}),(0,i.jsx)("h2",{children:"Basic Branding"}),(0,i.jsx)("p",{children:"Tell us about your business"})]}),(0,i.jsxs)("div",{className:"step-content",children:[(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)("label",{children:"Store Name"}),(0,i.jsx)("input",{type:"text",value:T.name,onChange:e=>O({...T,name:e.target.value}),placeholder:"e.g. SETX Artisans"})]}),(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)("label",{children:"Description (Optional)"}),(0,i.jsx)("textarea",{value:T.description,onChange:e=>O({...T,description:e.target.value}),placeholder:"What makes your store unique?",rows:3})]}),(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)("label",{children:"Store Logo URL (Optional)"}),(0,i.jsxs)("div",{className:"url-input-wrapper",children:[(0,i.jsx)(t.A,{size:18}),(0,i.jsx)("input",{type:"text",value:T.image_url,onChange:e=>O({...T,image_url:e.target.value}),placeholder:"https://example.com/logo.png"})]})]}),(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)("label",{children:"Category"}),(0,i.jsxs)("select",{value:T.category,onChange:e=>O({...T,category:e.target.value,subcategory:""}),style:{width:"100%",padding:"12px",borderRadius:"12px",background:"rgba(255,255,255,0.05)",color:"#fff",border:"1px solid rgba(255,255,255,0.1)"},children:[(0,i.jsx)("option",{value:"Retail",children:"Retail"}),(0,i.jsx)("option",{value:"Services",children:"Services"}),(0,i.jsx)("option",{value:"Food & Drink",children:"Food & Drink"}),(0,i.jsx)("option",{value:"Artisan",children:"Artisan"}
1),(0,i.jsx)("option",{value:"Travel & Hospitality",children:"Travel & Hospitality"}),(0,i.jsx)("option",{value:"Other",children:"Other"})]})]}),"retail"===T.category.toLowerCase()&&(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)("label",{children:"Retail Store Type"}),(0,i.jsxs)("select",{value:T.subcategory,onChange:e=>O({...T,subcategory:e.target.value}),style:{width:"100%",padding:"12px",borderRadius:"12px",background:"rgba(255,255,255,0.05)",color:"#fff",border:"1px solid rgba(255,255,255,0.1)"},children:[(0,i.jsx)("option",{value:"",children:"Select Retail Type..."}),(0,i.jsx)("option",{value:"Boutiques",children:"Boutiques"}),(0,i.jsx)("option",{value:"Home Decor",children:"Home Decor"}),(0,i.jsx)("option",{value:"Electronics",children:"Electronics"}),(0,i.jsx)("option",{value:"Groceries",children:"Groceries"}),(0,i.jsx)("option",{value:"Health & Beauty",children:"Health & Beauty"}),(0,i.jsx)("option",{value:"Beauty",children:"Beauty"}),(0,i.jsx)("option",{value:"Clothing & Apparel",children:"Clothing & Apparel"}),(0,i.jsx)("option",{value:"Jewelry & Accessories",children:"Jewelry & Accessories"}),(0,i.jsx)("option",{value:"Sporting Goods",children:"Sporting Goods"}),(0,i.jsx)("option",{value:"Toys & Hobbies",children:"Toys & Hobbies"}),(0,i.jsx)("option",{value:"Gifts & Souvenirs",children:"Gifts & Souvenirs"}),(0,i.jsx)("option",{value:"Other Retail",children:"Other Retail"})]})]})]})]}),2===f&&(0,i.jsxs)("div",{className:"wizard-step fade-in",children:[(0,i.jsxs)("div",{className:"step-header",children:[(0,i.jsx)("div",{className:"step-icon",children:(0,i.jsx)(n.A,{size:32})}),(0,i.jsx)("h2",{children:"Location & Type"}),(0,i.jsx)("p",{children:"Where do you operate?"})]}),(0,i.jsxs)("div",{className:"step-content",children:[(0,i.jsxs)("div",{className:"type-selector",children:[(0,i.jsxs)("div",{className:"type-option ".concat("physical"===T.type?"active":""),onClick:()=>O({...T,type:"physical"}),children:[(0,i.jsx)(l.A,{size:20}),(0,i.jsx)("span",{children:"Physical Shop"})]}),(0,i.jsxs)("div",{className:"type-option ".concat("online"===T.type?"active":""),onClick:()=>O({...T,type:"online"}),children:[(0,i.jsx)(o.A,{size:20}),(0,i.jsx)("span",{children:"Online Only"})]}),(0,i.jsxs)("div",{className:"type-option ".concat("all"===T.type?"active":""),onClick:()=>O({...T,type:"all"}),children:[(0,i.jsx)(c.A,{size:20}),(0,i.jsx)("span",{children:"Both"})]})]}),(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsxs)("label",{children:["Business Address ",(0,i.jsx)("span",{style:{color:"#ef4444"},children:"*"})]}),(0,i.jsx)("input",{type:"text",value:T.address,onChange:e=>O({...T,address:e.target.value}),placeholder:"123 Main St, Beaumont, TX",required:!0})]}),(0,i.jsxs)("div",{className:"input-group",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:"rgba(255,255,255,0.03)",padding:"12px",borderRadius:"12px"},children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{style:{fontSize:"0.85rem",fontWeight:700},children:"Show Address Publicly"}),(0,i.jsx)("div",{style:{fontSize:"0.7rem",color:"var(--text-muted)"},children:"Online stores can hide their street address."})]}),(0,i.jsx)("input",{type:"checkbox",checked:T.showAddressPublicly,onChange:e=>O({...T,showAddressPublicly:e.target.checked}),style:{width:"20px",height:"20px",cursor:"pointer"}})]}),(0,i.jsxs)("div",{className:"geo-pill-display",children:[(0,i.jsx)(n.A,{size:14})," ",T.county," County, ",T.zip]})]})]}),3===f&&(0,i.jsxs)("div",{className:"wizard-step fade-in",children:[(0,i.jsxs)("div",{className:"step-header",children:[(0,i.jsx)("div",{className:"step-icon",children:(0,i.jsx)(d.A,{size:32})}),(0,i.jsx)("h2",{children:"Ready to Launch?"}),(0,i.jsx)("p",{children:"Review your details and open your shop"})]}),(0,i.jsxs)("div",{className:"step-content",children:[(0,i.jsxs)("div",{className:"review-card glass",children:[(0,i.jsxs)("div",{className:"review-header",children:[(0,i.jsx)("img",{src:T.image_url||"https://ui-avatars.com/api/?name=".concat(encodeURIComponent(T.name),"&background=random"),alt:"Preview",className:"preview-logo"}),(0,i.jsxs)("div",{children:[(0,i.jsx)("h4",{children:T.name}),(0,i.jsx)("span",{children:T.category})]})]}),(0,i.jsxs)("div",{className:"review-details",children:[(0,i.jsxs)("div",{className:"detail-item",children:[(0,i.jsx)("strong",{children:"Type:"})," ",T.type.toUpperCase()]}),(0,i.jsxs)("div",{className:"detail-item",children:[(0,i.jsx)("strong",{children:"Region:"})," ",T.county]})]})]}),(0,i.jsx)("p",{className:"legal-note",children:"By creating this store, you agree to the Merchant Terms of Service and split-payout fee structures."})]})]}),C&&(0,i.jsx)("p",{className:"wizard-error",children:C}),(0,i.jsxs)("div",{className:"wizard-actions",children:[f>1?(0,i.jsxs)("button",{className:"back-btn",onClick:()=>w(e=>e-1),disabled:S,children:[(0,i.jsx)(p.A,{size:18})," Back"]}):(0,i.jsx)("button",{className:"back-btn",onClick:b,disabled:S,children:"Cancel"}),f<3?(0,i.jsxs)("button",{className:"primary-btn",onClick:()=>1!==f||T.name?2!==f||T.address?void w(e=>e+1):void A("A business address is required for all vendors."):void A("Store name is required"),
1children:["Continue ",(0,i.jsx)(u.A,{size:18})]}):(0,i.jsx)("button",{className:"primary-btn",onClick:I,disabled:S,children:S?(0,i.jsx)(h.A,{className:"animate-spin"}):"Launch Store"})]})]})}),z&&(0,i.jsx)(j.A,{onClose:()=>{try{localStorage.removeItem(y.r_)}catch(e){}_(!1)},reason:"SETX Business One ($30/mo, free for your first 3 months) unlocks opening a shop."})]})}}}]);

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.