PageSourceSearch

https://mypremiumservice.com/assets/BusinessResources-BKa1WQyM.js

js mypremiumservice.com collected 2026-10-02 00:31:49 UTC 19,118 bytes, 1 lines download raw bytes

1import{r as d,d as k,j as e,B as N,M as U,X as R,e as f,t as p,a as L,f as j,U as A,F as E,v as C,w as D,S as I,h as S,E as M,g as P,c as B}from"./index-CvEPeg3_.js";import{D as T,a as O,b as W,c as z,d as Y}from"./dialog-CPzQ-dXC.js";import{I as g}from"./input-DslCEC8W.js";import{L as c}from"./label-cSRRwfX6.js";import{C as H}from"./circle-check-Dmj9aRqm.js";import{L as K}from"./loader-circle-B6Zrtwc3.js";import{U as $}from"./upload-Dgcir28W.js";import{D as Q}from"./dollar-sign-D5ZISd92.js";import{W as J}from"./wrench-D8K3zTyt.js";import{G as X}from"./graduation-cap-DhA05v7K.js";import{P as F}from"./plus-DftMvCUB.js";const q={company_name:"",contact_name:"",contact_email:"",website:"",countries_served:"",category:"",description:"",why_useful:"",additional_notes:"",logo_url:"",confirmation_accepted:!1};function V({open:o,onClose:m}){const[a,l]=d.useState(q),[x,y]=d.useState(!1),[u,h]=d.useState(!1),[v,b]=d.useState(!1),{data:_=[]}=k({queryKey:["resource-categories-active"],queryFn:()=>f.entities.ResourceCategory.filter({is_active:!0},"display_order",100)}),n=t=>l(i=>({...i,[t.target.name]:t.target.value})),w=async t=>{if(t){y(!0);try{const{file_url:i}=await f.integrations.Core.UploadFile({file:t});l(G=>({...G,logo_url:i})),p.success("Logo uploaded")}catch{p.error("Failed to upload logo")}y(!1)}},s=async t=>{if(t.preventDefault(),!a.company_name||!a.contact_email||!a.website||!a.category||!a.description||!a.why_useful){p.error("Please fill in all required fields");return}if(!a.confirmation_accepted){p.error("Please confirm the information is accurate");return}h(!0);try{await f.entities.ResourceInclusionRequest.create({...a,status:"New"}),b(!0),p.success("Request submitted!")}catch{p.error("Failed to submit request. Please try again.")}h(!1)},r=()=>{b(!1),l(q),m()};return e.jsx(T,{open:o,onOpenChange:t=>!t&&r(),children:e.jsx(O,{className:"max-w-lg max-h-[90vh] overflow-y-auto",children:v?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-500/15 flex items-center justify-center mx-auto mb-4",children:e.jsx(H,{className:"w-8 h-8 text-emerald-400"})}),e.jsx("h2",{className:"font-bold text-lg mb-2",children:"Thank You"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-6 max-w-sm mx-auto",children:"Your request has been submitted for review. Our team will c
1ontact you if additional information is required."}),e.jsx(N,{onClick:r,className:"bg-secondary text-white hover:bg-secondary/90",children:"Close"})]}):e.jsxs(e.Fragment,{children:[e.jsxs(W,{children:[e.jsx(z,{children:"Request to Be Added"}),e.jsx(Y,{children:"Submit a resource for review by our team. We evaluate each submission before it appears on MPS."})]}),e.jsxs("form",{onSubmit:s,className:"space-y-3 pt-2",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(c,{htmlFor:"company_name",children:["Company / Organization Name ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(g,{id:"company_name",name:"company_name",value:a.company_name,onChange:n,placeholder:"e.g. Acme Tools",required:!0})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(c,{htmlFor:"contact_name",children:"Contact Name"}),e.jsx(g,{id:"contact_name",name:"contact_name",value:a.contact_name,onChange:n,placeholder:"Your name"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(c,{htmlFor:"contact_email",children:["Email Address ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(g,{id:"contact_email",name:"contact_email",type:"email",value:a.contact_email,onChange:n,placeholder:"[email protected]",required:!0})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(c,{htmlFor:"website",children:["Website ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(g,{id:"website",name:"website",value:a.website,onChange:n,placeholder:"https://company.com",required:!0})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(c,{htmlFor:"countries_served",children:"Country"}),e.jsx(g,{id:"countries_served",name:"countries_served",value:a.countries_served,onChange:n,placeholder:"e.g. Global, US, EU"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(c,{htmlFor:"category",children:["Resource Category ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx(U,{value:a.category,onChange:t=>n({target:{name:"category",value:t}}),placeholder:"Select a category…",options:[{value:"",label:"Select a category…"},..._.map(t=>({value:t.slug,label:t.name}))]})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(c,{htmlFor:"description",children:["Short Description ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx("textarea",{id:"description",name:"description",value:a.description,onChange:n,required:!0,rows:2,placeholder:"What does your resource do?",className:"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs(c,{htmlFor:"why_useful",children:["Why This Resource May Be Useful to MPS Members ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsx("textarea",{id:"why_useful",name:"why_useful",value:a.why_useful,onChange:n,required:!0,rows:2,placeholder:"How does this help service professionals?",className:"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(c,{children:"Logo Upload"}),e.jsx("div",{className:"flex items-center gap-3",children:a.logo_url?e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:a.logo_url,alt:"Logo",className:"w-12 h-12 rounded-lg object-cover"}),e.jsx("button",{type:"button",onClick:()=>l(t=>({...t,logo_url:""})),className:"absolute -top-1 -right-1 w-5 h-5 bg-destructive text-destructive-foreground rounded-full flex items-center justify-center",children:e.jsx(R,{className:"w-3 h-3"})})]}):e.jsxs("label",{className:"flex items-center gap-2 px-3 py-2 rounded-lg border border-dashed border-border cursor-pointer hover:border-white/20 transition-all",children:[x?e.jsx(K,{className:"w-4 h-4 animate-spin"}):e.jsx($,{className:"w-4 h-4"}),e.jsx("span",{className:"text-xs font-medium",children:x?"Uploading…":"Upload logo"}),e.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:t=>{var i;return w((i=t.target.files)==null?void 0:i[0])}})]})})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(c,{htmlFor:"additional_notes",children:"Additional Notes"}),e.jsx("textarea",{id:"additional_notes",name:"additional_notes",value:a.additional_notes,onChange:n,rows:2,placeholder:"Anything else we should know?",className:"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"})]}),e.jsxs("label",{className:"flex items-start gap-2 p-3 rounded-xl bg-muted/30 border border-border 
1cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:a.confirmation_accepted,onChange:t=>l(i=>({...i,confirmation_accepted:t.target.checked})),className:"mt-0.5 w-4 h-4 rounded"}),e.jsx("span",{className:"text-xs text-muted-foreground leading-relaxed",children:"I confirm that the information submitted is accurate and that I am authorized to submit this request."})]}),e.jsxs("div",{className:"flex gap-2 pt-1",children:[e.jsx(N,{type:"button",variant:"outline",onClick:r,className:"flex-1",disabled:u,children:"Cancel"}),e.jsx(N,{type:"submit",disabled:u,className:"flex-1 bg-secondary text-white hover:bg-secondary/90 gap-1.5",children:u?e.jsxs(e.Fragment,{children:[e.jsx(K,{className:"w-4 h-4 animate-spin"})," Submitting…"]}):"Submit Request"})]})]})]})})})}const Z=[{key:"find_work",labelKey:"br.cat.find_work",label:"Find Work",icon:j,color:"bg-blue-500/15 text-blue-400"},{key:"find_clients",labelKey:"br.cat.find_clients",label:"Find Clients",icon:A,color:"bg-emerald-500/15 text-emerald-400"},{key:"contracts",labelKey:"br.cat.contracts",label:"Contracts",icon:E,color:"bg-orange-500/15 text-orange-400"},{key:"payments",labelKey:"br.cat.payments",label:"Payments",icon:Q,color:"bg-purple-500/15 text-purple-400"},{key:"accounting",labelKey:"br.cat.accounting",label:"Accounting & Tax",icon:C,color:"bg-yellow-500/15 text-yellow-400"},{key:"insurance",labelKey:"br.cat.insurance",label:"Insurance",icon:C,color:"bg-red-500/15 text-red-400"},{key:"marketing",labelKey:"br.cat.marketing",label:"Marketing",icon:D,color:"bg-pink-500/15 text-pink-400"},{key:"business_tools",labelKey:"br.cat.business_tools",label:"Business Tools",icon:J,color:"bg-cyan-500/15 text-cyan-400"},{key:"professional_dev",labelKey:"br.cat.professional_dev",label:"Professional Development",icon:X,color:"bg-indigo-500/15 text-indigo-400"}],ee=[{name:"Upwork",category:"find_work",url:"https://www.upwork.com",descKey:"br.res.upwork",description:"Freelance marketplace for projects across all categories",countries:"Global"},{name:"LinkedIn Jobs",category:"find_work",url:"https://www.linkedin.com/jobs",descKey:"br.res.linkedin",description:"Professional job board with remote and full-time positions",countries:"Global"},{name:"Fiverr",category:"find_work",url:"https://www.fiverr.com",descKey:"br.res.fiverr",description:"Gig marketplace for packaged services",countries:"Global"},{name:"Wellfound",category:"find_work",url:"https://wellfound.com",descKey:"br.res.wellfound",description:"Startup jobs and freelance roles",countries:"Global"},{name:"Apollo.io",category:"find_clients",url:"https://www.apollo.io",descKey:"br.res.apollo",description:"B2B lead generation and prospecting database",countries:"Global"},{name:"Hunter.io",category:"find_clients",url:"https://hunter.io",descKey:"br.res.hunter",description:"Find and verify professional email addresses",countries:"Global"},{name:"DocSpring",category:"contracts",url:"https://docspring.com",descKey:"br.res.docspring",description:"Generate PDF documents from templates",countries:"Global"},{name:"Stripe",category:"payments",url:"https://stripe.com",descKey:"br.res.stripe",description:"Accept payments and manage billing",countries:"Global"},{name:"PayPal",category:"payments",url:"https://www.paypal.com/business",descKey:"br.res.paypal",description:"Send and receive payments globally",countries:"Global"},{name:"Wise",category:"payments",url:"https://wise.com",descKey:"br.res.wise",description:"International payments with low fees",countries:"Global"},{name:"QuickBooks",category:"accounting",url:"https://quickbooks.intuit.com",descKey:"br.res.quickbooks",description:"Accounting software for small businesses",countries:"US, UK, CA, AU"},{name:"FreshBooks",category:"accounting",url:"https://www.freshbooks.com",descKey:"br.res.freshbooks",description:"Invoicing and accounting for freelancers",countries:"Global"},{name:"Canva",category:"marketing",url:"https://www.canva.com",descKey:"br.res.canva",description:"Design marketing materials and social media content",countries:"Global"},{name:"Mailchimp",category:"marketing",url:"https://mailchimp.com",descKey:"br.res.mailchimp",description:"Email marketing and automation",countries:"Global"},{name:"Notion",category:"business_tools",url:"https://www.notion.so",descKey:"br.res.notion",description:"All-in-one workspace for notes, docs, and projects",countries:"Global"},{name:"Slack",category:"business_tools",url:"https://slack.com",descKey:"br.res.slack",description:"Team communication and collaboration",countries:"Global"},{name:"Coursera",category:"professional_dev",url:"https://www.coursera.org",descKey:"br.res.coursera",description:"Online courses from top universities",countries:"Global"},{name:"Udemy",category:"professional_dev",url:"https://www.udemy.com",descKey:"br.res.udemy",description:"On-demand courses across all skills",countries:"Global"}];function me(){const{t:o}=L(),[m,a]=d.useState(""),[l,x]=d.useState("all"),[y,u]=d.useState(!1),{data:h=[]}=k({queryKey:["business-resources"],queryFn:()=>f.entities.BusinessResource.filter({status:"active"},"-is_featured",100)}),{data:v=[]}=k({queryKey:["resource-categories-active"],queryFn:()=>f.entities.ResourceCategory.filter({is_active:!0},"display_order",100)}),b=d.useMemo(()=>{const s=new Map(Z.map(r=>[r.key,r]));return v.forEach(r=>{s.has(r.slug)||s.set(r.slug,{key:r.slug,label:r.name,labelKey:null,icon:j,color:"bg-muted/40 text-muted-foreground"})}),Array.from(s.values())},[v]),n=(h.length>0?h.map(s=>({name:s.name,category:s.category,url:s.use_special_link&&s.special_link?s.special_link:s.website||s.external_url,description:s.description,descKey:null,countries:s.countries_supported,is_verified:s.is_verified,logo_url:s.logo_url})):ee).filter(s=>{const r=!m||s.name.toLowerCase().includes(m.toLowerCase())||s.description.toLowerCase().includes(m.toLowerCase()),t=l==="all"||s.category===l;return r&&t}),w=s=>s!=null&&s.labelKey?o(s.labelKey):(s==null?void 0:s.label)||"";return e.jsxs("div",{className:"relative max-w-5xl mx-auto px-4 sm:px-6 pt-6 md:pt-8 pb-24 md:pb-10 overflow-hidden",children:[e.jsx("div",{className:"pointer-events-none absolute top-0 left-1/4 w-[400px] h-[400px] bg-
1orange-500/8 rounded-full blur-[120px] -z-10"}),e.jsx("div",{className:"pointer-events-none absolute top-20 right-1/4 w-[350px] h-[350px] bg-pink-500/8 rounded-full blur-[120px] -z-10"}),e.jsxs("div",{className:"flex items-start justify-between gap-3 mb-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-display font-black bg-gradient-to-r from-white via-white to-white/70 bg-clip-text text-transparent",children:o("br.title")}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:o("br.subtitle")})]}),e.jsxs("button",{onClick:()=>u(!0),className:"flex-shrink-0 flex items-center gap-1.5 px-3 py-2 rounded-xl border border-border bg-card text-xs font-bold hover:border-white/20 transition-all",children:[e.jsx(F,{className:"w-3.5 h-3.5"})," ",o("br.requestToAdd")]})]}),e.jsxs("div",{className:"relative mb-5",children:[e.jsx(I,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:"text",value:m,onChange:s=>a(s.target.value),placeholder:o("br.searchPlaceholder"),className:"w-full rounded-xl bg-card border border-border pl-10 pr-4 py-2.5 text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"})]}),e.jsxs("div",{className:"flex gap-2 overflow-x-auto pb-2 mb-5 scrollbar-thin",children:[e.jsx("button",{onClick:()=>x("all"),className:`flex-shrink-0 px-3 py-1.5 rounded-full text-xs font-bold transition-all ${l==="all"?"bg-secondary text-white":"bg-card border border-border text-muted-foreground hover:text-foreground"}`,children:o("br.all")}),b.map(s=>{const r=s.icon||j;return e.jsxs("button",{onClick:()=>x(s.key),className:`flex-shrink-0 flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-bold transition-all ${l===s.key?"bg-secondary text-white":"bg-card border border-border text-muted-foreground hover:text-foreground"}`,children:[e.jsx(r,{className:"w-3 h-3"}),w(s)]},s.key)})]}),n.length===0?e.jsxs("div",{className:"text-center py-12",children:[e.jsx(S,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:o("br.empty")})]}):e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:n.map(s=>{const r=b.find(i=>i.key===s.category),t=(r==null?void 0:r.icon)||j;return e.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"group relative bg-card rounded-2xl border border-border p-4 hover:border-white/20 transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg hover:shadow-black/30 overflow-hidden",children:e.jsxs("div",{className:"flex items-start gap-3 relative",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 overflow-hidden group-hover:scale-110 transition-transform duration-300",children:s.logo_url?e.jsx("img",{src:s.logo_url,alt:s.name,className:"w-full h-full object-cover"}):e.jsx("div",{className:`w-full h-full ${(r==null?void 0:r.color)||"bg-muted/40"} flex items-center justify-center`,children:e.jsx(t,{className:"w-5 h-5"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("h3",{className:"font-bold text-sm",children:s.name}),e.jsx(M,{className:"w-3 h-3 text-muted-foreground/50 group-hover:text-foreground transition-colors"})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:s.descKey?o(s.descKey):s.description}),e.jsxs("div",{className:"flex items-center justify-between mt-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs bg-muted/40 rounded-full px-2 py-0.5 text-muted-foreground",children:w(r)||s.category}),e.jsx("span",{className:"text-xs text-muted-foreground/60",children:s.countries})]}),e.jsx("span",{className:"text-xs font-bold text-secondary opacity-0 group-hover:opacity-100 transition-opacity",children:o("br.visit")})]})]})]})},s.name)})}),e.jsxs("div",{className:"mt-6 bg-card rounded-2xl border border-border p-4 flex items-center justify-between gap-3 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-secondary/15 text-secondary flex items-center justify-center flex-shrink-0",children:e.jsx(P,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-sm",children:o("br.banner.title")}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:o("br.banner.desc")})]})]}),e.jsxs("button",{onClick:()=>u(!0),className:"flex items-center gap-1.5 px-4 py-2 rounded-xl bg-secondary text-white text-xs font-bold hover:bg-secondary/90 transition-all flex-shrink-0",children:[e.jsx(F,{className:"w-3.5 h-3.5"})," ",o("br.requestToAdd")]})]}),e.jsx("div",{className:"mt-6 bg-gradient-to-br from-orange-500/10 to-pink-500/10 rounded-2xl border border-orange-500/20 p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-orange-500 to-pink-500 flex items-center justify-center flex-shrink-0",children:e.jsx(S,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-sm mb-1",children:o("br.help.title")}),e.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:o("br.help.desc")}),e.jsx(B,{to:"/assistant",className:"text-xs font-bold text-secondary hover:underline",children:o("br.help.cta")})]})]})}),e.jsx(V,{open:y,onClose:()=>u(!1)})]})}export{me 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.