PageSourceSearch

https://boardspace.ai/assets/CreatorProfile-C1UVObbd.js

js boardspace.ai collected 2026-10-05 11:52:15 UTC 48,872 bytes, 30 lines download raw bytes

1import{j as e}from"./ui-DKb32DiD.js";import{r as u}from"./vendor-DCFBENKy.js";import{c as G,az as Ce,s as B,u as Y,o as pe,J as Z,K as D,x as s,ba as te,r as H,T as J,Y as Q,a3 as Fe,a4 as Se,$ as ae,aJ as Ie,f as C,cQ as Me,cR as $e,cS as Ae,cT as Ee,cU as X,cV as Pe,a as be,cI as ze,cN as O,aa as qe,ap as Be,aq as Oe,ar as Ue,at as Ve,aR as re,aQ as se,X as He,as as L,H as T,a0 as We,aM as Ge,b as Ke,b7 as fe,cH as ne,c6 as oe,cO as le,bq as Je,ab as Qe,N as Xe,O as Ye,c5 as Ze}from"./index-oNwIZiHT.js";import{S as k}from"./skeleton-CXLlnrI6.js";import{a as ie,g as ce}from"./creatorCategories-WfjQuV2W.js";import{C as De,g as Le,i as Te,L as Re}from"./LazyMediaThumb-yuK510pg.js";import{B as et}from"./badge-check-D-2HILFa.js";import{A as tt,m as q,c as at}from"./motion-BrksToHf.js";import{C as rt}from"./clock-3-Cnk_EQsg.js";import{R as st}from"./rotate-ccw-hUuExNCy.js";import{P as nt}from"./package-Cs2TzaVy.js";import{C as ot}from"./calendar-BZrE-J_b.js";import{S as lt}from"./shopping-cart-dtxL9Tv8.js";import"./r3f-BN6X73lm.js";import"./three-Dv4K_qkO.js";import"./konva-L1CHpTsF.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const it=G("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const ct=G("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const dt=G("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const xt=G("UserX",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]),mt=o=>{const{data:i,isLoading:a,error:r}=Ce({queryKey:["marketplace-creator",o],queryFn:async()=>{if(!o)throw new Error("No slug provided");const{data:t,error:m}=await B.from("creators").select(`
22          *,
23          creator_services ( * ),
24          order_reviews ( * )
25        `).eq("slug",o).maybeSingle();if(m)throw m;if(!t)throw new Error("Creator not found");t.creator_services=(t.creator_services||[]).filter(l=>l.is_active).sort((l,b)=>(l.price_cents||0)-(b.price_cents||0));const h=(Array.isArray(t.categories)?t.categories.filter(l=>!!l):[]).flatMap(l=>ie(String(l))),n=(t.creator_services||[]).flatMap(l=>ie(l.category));t.categories=Array.from(new Set([...h,...n])).filter(Boolean),t.order_reviews=(t.order_reviews||[]).sort((l,b)=>new Date(b.created_at).getTime()-new Date(l.created_at).getTime());const c=(t.order_reviews||[]).map(l=>l.reviewer_id).filter(Boolean);if(c.length>0){const{data:l}=await B.from("profiles").select("id, full_name").in("id",c),b={};for(const g of l||[])b[g.id]=g.full_name||"משתמש";for(const g of t.order_reviews)g.reviewer_name=b[g.reviewer_id]||"משתמש"}const y=De[t.id];if(y){t.avg_rating=y.avg_rating,t.total_reviews=y.total_reviews,t.total_orders=y.total_orders;const l=Le(t.id)||[],b=[...t.order_reviews||[],...l];
25b.sort((g,$)=>new Date($.created_at).getTime()-new Date(g.created_at).getTime()),t.order_reviews=b}return t},enabled:!!o});return{creator:i||null,services:(i==null?void 0:i.creator_services)||[],reviews:(i==null?void 0:i.order_reviews)||[],isLoading:a,error:r}},ht=()=>{const{user:o}=Y(),[i,a]=u.useState(!1),[r,t]=u.useState(null);return{createInquiry:u.useCallback(async(p,h)=>{if(!o)throw new Error("Not authenticated");a(!0),t(null);try{const{data:n,error:c}=await B.functions.invoke("marketplace-create-inquiry",{body:{service_id:p,initial_message:h}});if(c)throw c;if(n&&!n.success)throw new Error(n.error||"Failed to create inquiry");return n}catch(n){const c=n.message||"Failed to create inquiry";throw t(c),n}finally{a(!1)}},[o]),isLoading:i,error:r}};function ut({isOpen:o,onClose:i,onComplete:a,isRTL:r=!0}){const{t}=pe("auth"),{user:m,signIn:p,signUp:h,signInWithGoogle:n,signInWithFacebook:c,sendMagicLink:y}=Y(),[l,b]=u.useState(!0),[g,$]=u.useState(""),[j,x]=u.useState(""),[f,F]=u.useState(""),[A,K]=u.useState(!1),[N,v]=u.useState(!1),[P,U]=u.useState(!1),[d,z]=u.useState(!1),[we,ye]=u.useState(!1);u.useEffect(()=>{m&&o&&!P&&a()},[m,o,P,a]);const je=async w=>{if(w.preventDefault(),!f.trim()){C.error(r?"נא להזין שם מלא":"Please enter your full name");return}if(!g.trim()||!j.trim())return;v(!0);let S="en";try{const E=await Me();S=$e(E)}catch{}try{const E=await B.functions.invoke("check-registration-rate-limit",{body:{email:g}});if(E.data&&!E.data.allowed){C.error(E.data.message||(r?"יותר מדי ניסיונות. נסו שוב מאוחר יותר.":"Too many attempts. Please try again later.")),v(!1);return}}catch{}const I=Ae(),{error:ee,data:V}=await h(g,j,f,S,{utm_source:I.utm_source,utm_medium:I.utm_medium,utm_campaign:I.utm_campaign,utm_content:I.utm_content},"marketplace_buyer");if(ee){C.error(ee.message),v(!1);return}if(V!=null&&V.user){try{await new Promise(E=>setTimeout(E,100)),await B.from("profiles").update({agreed_to_terms:!0,terms_consent_at:new Date().toISOString(),preferred_language:S,utm_source:I.utm_source||null,utm_medium:I.utm_medium||null,utm_campaign:I.utm_campaign||null,utm_content:I.utm_content||null,utm_captured_at:I.captured_at||null}).eq("id",V.user.id),Ee()}catch{}X("StartTrial")}U(!0),v(!1)},ve=async w=>{if(w.preventDefault(),!g.trim()||!j.trim())return;v(!0);const{error:S}=await p(g,j);S&&C.error(S.message),v(!1)},Ne=async()=>{if(Pe().isWebView){C.error(r?"גוגל לא תומך בהתחברות מתוך אפליקציה. נסו פייסבוק או קישור באימייל למטה.":"Google sign-in isn't supported in this browser. Try Facebook or magic link below.");return}v(!0),localStorage.setItem("marketplace_buyer_flow","true"),l&&X("StartTrial");const{error:S}=await n(`${window.location.origin}${window.location.pathname}`);S&&(localStorage.removeItem("marketplace_buyer_flow"),C.error(S.message||(r?"שגיאה בהתחברות עם גוגל":"Failed to sign in with Google")),v(!1))},_e=async()=>{v(!0),localStorage.setItem("marketplace_buyer_flow","true"),l&&X("StartTrial");const{error:w}=await c(`${window.location.origin}${window.location.pathname}`);w&&(localStorage.removeItem("marketplace_buyer_flow"),C.error(w.message||(r?"שגיאה בהתחברות עם פייסבוק":"Failed to sign in with Facebook")),v(!1))},ke=async()=>{if(!g.trim()){C.error(r?"נא להזין אימייל":"Please enter your email");return}z(!0),localStorage.setItem("marketplace_buyer_flow","true");const{error:w}=await y(g);if(z(!1),w){localStorage.removeItem("marketplace_buyer_flow"),C.error(w.message||(r?"שליחת הקישור נכשלה":"Failed to send link"));return}ye(!0)},R=()=>{N||(U(!1),$(""),x(""),F(""),i())};return e.jsx(Z,{open:o,onOpenChange:w=>{w||R()},children:e.jsx(D,{className:"sm:max-w-[420px] p-0 border-none shadow-2xl rounded-2xl overflow-hidden bg-transparent",dir:r?"rtl":"ltr",children:e.jsxs("div",{className:"bg-gradient-to-br from-[#F7F4EF] to-white dark:from-gray-900 dark:to-gray-800 p-6 rounded-2xl",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("h2",{className:s("text-xl font-bold text-[#182137] dark:text-white",r&&"font-heebo"),children:r?"הצטרפו למרקטפלייס":"Join the Marketplace"}),e.jsx("p",{className:s("text-sm text-[#182137]/60 dark:text-gray-400 mt-1",r&&"font-heebo"),children:r?"הירשמו כדי ליצור קשר עם קריאייטורים":"Sign up to contact creators"})]}),P?e.jsxs("div",{className:"text-center py-6 space-y-4",children:[e.jsx("div",{className:"w-16 h-16 mx-auto rounded-full bg-emerald-100 dark:bg-emerald-900/30 flex items-center justify-center",children:e.jsx(te,{className:"w-8 h-8 text-emerald-600 dark:text-emerald-400"})}),e.jsxs("div",{children:[e.jsx("h3",{className:s("text-lg font-semibold text-[#182137] dark:text-white",r&&"font-heebo"),children:r?"בדקו את המייל שלכם":"Check your email"}),e.jsx("p",{className:s("text-sm text-[#182137]/60 dark:text-gray-400 mt-2",r&&"font-heebo"),children:r?`שלחנו קישור אימות ל-${g}`:`We sent a verification link to ${g}`})]}),e.jsx(H,{onClick:R,variant:"outline",className:s("mt-4",r&&"font-heebo"),children:r?"סגור":"Close"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex mb-4 rounded-lg bg-[#182137]/5 dark:bg-white/5 p-1",children:[e.jsx("button",{onClick:()=>b(!0),className:s("flex-1 py-2 text-sm font-medium rounded-md transition-all",l?"bg-white dark:bg-gray-700 text-[#336CFF] shadow-sm":"text-[#182137]/60 dark:text-gray-400 hover:text-[#182137] dark:hover:text-gray-200",r&&"font-heebo"),children:r?"הרשמה":"Sign Up"}),e.jsx("button",{onClick:()=>b(!1),className:s("flex-1 py-2 text-sm font-medium rounded-md transition-all",l?"text-[#182137]/60 dark:text-gray-400 hover:text-[#182137] dark:hover:text-gray-200":"bg-white dark:bg-gray-700 text-[#336CFF] shadow-sm",r&&"font-heebo"),children:r?"כניסה":"Sign In"})]}),e.jsxs(H,{type:"button",className:s("w-full h-11 rounded-lg font-normal text-base transition-all duration-200 flex items-center justify-center mb-2","bg-white hover:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700","text-gray-800 dark:text-gray-100 font-medium border-2 border-[#4285F4]",r&&"font-heebo flex-row-reverse",N&&"opacity-70 cursor-not-allowed"),onClick:Ne,disabled:N,children:[e.jsxs("svg",{className:s("h-5 w-5 flex-shrink-0",r?"ms-2":"mr-2"),viewBox:"0 0 24 24",children:[e.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),e.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),e.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),e.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),r?"המשך עם Google":"Continue with Google"]}),e.jsxs(H,{type:"button",onClick:_e,disabled:N,style:{background:"linear-gradient(to right, #4A90E2, #1877F2, #0E5A9E)"},className:s("w-full h-11 rounded-lg font-semibold text-[14px] text-white transition-colors mb-4",N?"opacity-70 cursor-not-allowed":"hover:brightness-110",r&&"font-heebo flex-row-reverse"),children:[e.jsx("svg",{className:s("h-4 w-4 flex-shrink-0",r?"ms-2":"mr-2"),fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),r?"המשך עם Facebook":"Continue with Facebook"]}),e.jsxs("div",{className:"relative my-3",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("div",{className:"w-full border-t border-[#182137]/10 dark:border-white/10"})}),e.jsx("div",{className:"relative flex justify-center text-xs",children:e.jsx("span",{className:s("px-3 bg-gradient-to-br from-[#F7F4EF] to-white dark:from-gray-900 dark:to-gray-800 text-[#182137]/40 dark:text-gray-500",r&&"font-heebo"),children:r?"או עם מייל":"or with email"})})]}),e.jsxs("form",{onSubmit:l?je:ve,className:"space-y-3",children:[l&&e.jsxs("div",{children:[e.jsx(J,{className:s("text-xs text-[#182137]/70 dark:text-gray-300",r&&"font-heebo"),children:r?"שם מלא":"Full Name"}),e.jsx(Q,{type:"text",value:f,onChange:w=>F(w.target.value),placeholder:r?"השם שלך":"Your name",className:s("h-10 rounded-lg border-[#182137]/15 dark:border-gray-600 bg-white dark:bg-gray-800 focus:border-[#336CFF] focus:ring-1 focus:ring-[#336CFF]/30",r&&"font-heebo text-right"),disabled:N})]}),e.jsxs("div",{children:[e.jsx(J,{className:s("text-xs text-[#182137]/70 dark:text-gray-300",r&&"font-heebo"),children:r?"אימייל":"Email"}),e.jsx(Q,{type:"email",value:g,onChange:w=>$(w.target.value),placeholder:"[email protected]",className:s("h-10 rounded-lg border-[#182137]/15 dark:border-gray-600 bg-white dark:bg-gray-800 focus:border-[#336CFF] focus:ring-1 focus:ring-[#336CFF]/30",r&&"font-heebo"),dir:"ltr",disabled:N})]}),e.jsxs("div",{children:[e.jsx(J,{className:s("text-xs text-[#182137]/70 dark:text-gray-300",r&&"font-heebo"),children:r?"סיסמה":"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(Q,{type:A?"text":"password",value:j,onChange:w=>x(w.target.value),placeholder:r?"לפחות 6 תווים":"At least 6 characters",className:s("h-10 rounded-lg border-[#182137]/15 dark:border-gray-600 bg-white dark:bg-gray-800 focus:border-[#336CFF] focus:ring-1 focus:ring-[#336CFF]/30",r?"font-heebo pe-10":"pr-10"),dir:"ltr",disabled:N}),e.jsx("button",{type:"button",onClick:()=>K(!A),className:s("absolute top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 transition-colors",r?"start-3":"right-3"),children:A?e.jsx(Fe,{className:"h-4 w-4"}):e.jsx(Se,{className:"h-4 w-4"})})]})]}),e.jsx(H,{type:"submit",disabled:N,className:s("w-full h-11 rounded-lg text-base font-semibold text-white border-0 transition-all",r&&"font-heebo"),style:{background:"linear-gradient(135deg, #336CFF 0%, #5B8AFF 100%)",boxShadow:"0 4px 16px rgba(51, 108, 255, 0.3)"},children:N?e.jsx(ae,{className:"w-5 h-5 animate-spin"}):l?r?"הרשמה":"Sign Up":r?"כניסה":"Sign In"})]}),we?e.jsx("div",{className:"mt-3 bg-emerald-50 dark:bg-emerald-950/20 border border-emerald-200 dark:border-emerald-800 rounded-lg p-3",children:e.jsxs("div",{className:s("flex items-start gap-2",r&&"flex-row-reverse"),children:[e.jsx(Ie,{className:"h-5 w-5 text-emerald-600 dark:text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:s("text-sm font-medium text-emerald-900 dark:text-emerald-200",r&&"font-heebo"),children:r?"הקישור נשלח! בדקו את האימייל":"Link sent! Check your email"})]})}):e.jsxs("button",{type:"button",onClick:ke,disabled:d||!g.trim(),className:s("mt-3 w-full flex items-center justify-center gap-2 py-2 text-xs text-[#182137]/70 dark:text-gray-300 hover:text-[#182137] dark:hover:text-white underline-offset-4 hover:underline transition-colors disabled:opacity-50 disabled:cursor-not-allowed",r&&"font-heebo flex-row-reverse"),children:[d?e.jsx(ae,{className:"h-3.5 w-3.5 animate-spin"}):e.jsx(te,{className:"h-3.5 w-3.5"}),d?r?"שולחים...":"Sending...":r?"שלחו לי קישור התחברות לאימייל":"Send me a magic link instead"]}),l&&e.jsx("p",{className:s("text-[10px] text-center text-[#182137]/40 dark:text-gray-500 mt-3 leading-relaxed",r&&"font-heebo"),children:r?"בלחיצה על הרשמה את/ה מסכימ/ה לתנאי השימוש ומדיניות הפרטיות":"By signing up you agree to our Terms of Service and Privacy Policy"})]})]})})})}const gt={new:{label_he:"חדש",label_en:"New",description_he:"קריאייטור חדש במערכת",description_en:"New to the marketplace",icon:O,color:"text-gray-500",bgColor:"bg-gray-100"}
25,rising:{label_he:"כוכב עולה",label_en:"Rising Star",description_he:"3+ הזמנות, דירוג 4.0+",description_en:"3+ orders, 4.0+ rating",icon:O,color:"text-amber-500",bgColor:"bg-amber-50"},established:{label_he:"מבוסס",label_en:"Established",description_he:"10+ הזמנות, דירוג 4.5+",description_en:"10+ orders, 4.5+ rating",icon:ze,color:"text-blue-500",bgColor:"bg-blue-50"},top:{label_he:"טופ",label_en:"Top Creator",description_he:"25+ הזמנות, דירוג 4.7+",description_en:"25+ orders, 4.7+ rating",icon:dt,color:"text-purple-500",bgColor:"bg-purple-50"},pro:{label_he:"Pro",label_en:"Pro",description_he:"מאומת על ידי הצוות שלנו",description_en:"Verified by our team",icon:et,color:"text-emerald-600",bgColor:"bg-emerald-50"}},pt={sm:{badge:"text-xs px-1.5 py-0.5",icon:"h-3 w-3",gap:"gap-1"},md:{badge:"text-sm px-2 py-1",icon:"h-4 w-4",gap:"gap-1.5"},lg:{badge:"text-base px-3 py-1.5",icon:"h-5 w-5",gap:"gap-2"}};function bt({level:o,size:i="md",showTooltip:a=!0}){const{isRTL:r}=be();if(o==="new")return null;const t=gt[o],m=pt[i],p=t.icon,h=r?t.label_he:t.label_en,n=r?t.description_he:t.description_en,c=e.jsxs(qe,{variant:"outline",className:`
26        ${t.bgColor} ${t.color} border-current/20
27        ${m.badge} ${m.gap}
28        inline-flex items-center font-medium
29        ${r?"font-heebo flex-row-reverse":""}
30      `,children:[e.jsx(p,{className:m.icon}),e.jsx("span",{children:h})]});return a?e.jsx(Be,{children:e.jsxs(Oe,{children:[e.jsx(Ue,{asChild:!0,children:c}),e.jsx(Ve,{side:r?"right":"left",className:r?"font-heebo":"",children:e.jsx("p",{children:n})})]})}):c}function ft(o,i){const a=[];for(let r=0;r<o.length;r+=i)a.push(o.slice(r,r+i));return a}function wt({urls:o,alt:i,isRTL:a,isDark:r}){const[t,m]=u.useState(0),[p,h]=u.useState(null),n=u.useMemo(()=>o.filter(x=>!/\.poster\.jpe?g$/i.test(x)),[o]),c=u.useMemo(()=>ft(n,3),[n]),y=n.length>3,l=c[t]??[],b=u.useCallback(x=>{x.stopPropagation(),m(f=>Math.max(0,f-1))},[]),g=u.useCallback(x=>{x.stopPropagation(),m(f=>Math.min(c.length-1,f+1))},[c.length]),$=p?Te(p):!1,j=[...l];for(;j.length<3;)j.push(null);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"relative group",children:[e.jsx(tt,{mode:"wait",children:e.jsx(q.div,{initial:{opacity:0,x:8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.22},className:"flex items-stretch gap-2",children:j.map((x,f)=>x?e.jsx(jt,{url:x,alt:i,isDark:r,onClick:()=>h(x)},`${t}-${f}-${x}`):e.jsx(yt,{isDark:r},`${t}-${f}-empty`))},t)}),y&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:b,disabled:t===0,className:s("absolute top-1/2 -translate-y-1/2 start-1 w-8 h-8 rounded-full flex items-center justify-center","opacity-0 group-hover:opacity-100 transition-all duration-200 hover:scale-110 active:scale-95 disabled:opacity-30 disabled:cursor-not-allowed","shadow-[0_2px_10px_rgba(0,0,0,0.12)]"),style:{background:"rgba(255,255,255,0.96)",backdropFilter:"blur(8px)"},"aria-label":a?"הקודם":"Previous",children:a?e.jsx(re,{className:"w-4 h-4 text-[#182137]"}):e.jsx(se,{className:"w-4 h-4 text-[#182137]"})}),e.jsx("button",{type:"button",onClick:g,disabled:t>=c.length-1,className:s("absolute top-1/2 -translate-y-1/2 end-1 w-8 h-8 rounded-full flex items-center justify-center","opacity-0 group-hover:opacity-100 transition-all duration-200 hover:scale-110 active:scale-95 disabled:opacity-30 disabled:cursor-not-allowed","shadow-[0_2px_10px_rgba(0,0,0,0.12)]"),style:{background:"rgba(255,255,255,0.96)",backdropFilter:"blur(8px)"},"aria-label":a?"הבא":"Next",children:a?e.jsx(se,{className:"w-4 h-4 text-[#182137]"}):e.jsx(re,{className:"w-4 h-4 text-[#182137]"})})]}),y&&e.jsx("div",{className:"flex items-center justify-center gap-1 mt-2",children:c.map((x,f)=>e.jsx("button",{type:"button",onClick:F=>{F.stopPropagation(),m(f)},className:s("transition-all duration-200 rounded-full",f===t?"w-4 h-1.5 bg-[#336CFF]":r?"w-1.5 h-1.5 bg-white/25 hover:bg-white/40":"w-1.5 h-1.5 bg-[#182137]/20 hover:bg-[#182137]/40"),"aria-label":`Page ${f+1}`},f))})]}),e.jsx(Z,{open:!!p,onOpenChange:x=>!x&&h(null),children:e.jsxs(D,{className:"max-w-4xl w-[95vw] max-h-[90vh] p-0 overflow-hidden bg-black border-0 rounded-2xl",onOpenAutoFocus:x=>x.preventDefault(),children:[e.jsx("button",{type:"button",onClick:()=>h(null),className:"absolute top-3 end-3 z-10 w-9 h-9 rounded-full flex items-center justify-center bg-black/60 text-white hover:bg-black/80 transition-colors backdrop-blur-md","aria-label":a?"סגור":"Close",children:e.jsx(He,{className:"w-4 h-4"})}
30),p&&($?e.jsx("video",{src:p,controls:!0,autoPlay:!0,playsInline:!0,className:"w-full max-h-[90vh] object-contain bg-black"},p):e.jsx("img",{src:p,alt:i,className:"w-full max-h-[90vh] object-contain bg-black"}))]})})]})}function yt({isDark:o}){return e.jsx("div",{className:s("flex-1 min-w-0 aspect-[4/3] rounded-xl flex items-center justify-center border-2 border-dashed",o?"bg-white/[0.02] border-white/[0.08]":"bg-gray-50/60 border-gray-200"),"aria-hidden":!0,children:e.jsx("svg",{className:s("w-5 h-5",o?"text-white/15":"text-gray-300"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0 0 22.5 18.75V5.25A2.25 2.25 0 0 0 20.25 3H3.75A2.25 2.25 0 0 0 1.5 5.25v13.5A2.25 2.25 0 0 0 3.75 21Z"})})})}function jt({url:o,alt:i,isDark:a,onClick:r}){return e.jsx("button",{type:"button",onClick:r,className:s("relative flex-1 min-w-0 aspect-[4/3] rounded-xl overflow-hidden group/thumb","transition-all duration-200 ease-out","hover:ring-2 hover:ring-[#336CFF]/40 hover:ring-offset-1",a?"ring-offset-[#1e1f26] bg-white/[0.05]":"ring-offset-white bg-gray-50"),children:e.jsx(Re,{url:o,alt:i,isDark:a,autoPlayOnView:!0,showPlayOverlay:!1,className:"transition-transform duration-500 group-hover/thumb:scale-[1.04]"})})}const M="#336CFF",vt="#1e1f26",Nt=3.65,de=o=>`₪${o.toLocaleString()}`,xe=o=>`$${Math.round(o/Nt).toLocaleString()}`;function _t(o){return o?o.split(/[\n\r]+|\s[+·|]\s/g).map(a=>a.trim()).filter(a=>a.length>0).slice(0,4):[]}function me({icon:o,label:i,value:a,isDark:r,isRTL:t}){const m=_t(a);return m.length===0?null:e.jsxs("div",{className:s("min-w-0",t&&"font-heebo"),children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[e.jsx(o,{className:"w-4 h-4 shrink-0",style:{color:M},strokeWidth:2.4}),e.jsx("span",{className:s("text-[13.5px] font-extrabold tracking-tight",r?"text-white":"text-[#182137]"),children:i})]}),e.jsx("ul",{className:"space-y-1",children:m.map((p,h)=>e.jsxs("li",{className:s("flex items-start gap-1.5 text-[12px] leading-snug",r?"text-white/65":"text-[#182137]/70"),children:[e.jsx("span",{className:"mt-[3px] shrink-0 w-3 h-3 rounded-full flex items-center justify-center",style:{background:`${M}1A`},children:e.jsx(We,{className:"w-2 h-2",style:{color:M},strokeWidth:3.5})}),e.jsx("span",{className:"min-w-0",children:p})]},h))})]})}function kt({service:o,creatorRating:i,creatorReviewCount:a,isRTL:r,isDark:t,categoryLabel:m,onOrder:p,index:h=0}){const n=r?L:T,c=!!(o.requirements||o.deliverables);return e.jsxs(q.article,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.35,delay:h*.06,ease:[.22,1,.36,1]},className:s("group relative flex flex-col rounded-[28px] border transition-[border-color,box-shadow,transform] duration-300 p-3",t?"border-white/[0.09] hover:border-white/[0.16] shadow-[0_8px_32px_rgba(0,0,0,0.22)] hover:shadow-[0_20px_48px_-12px_rgba(51,108,255,0.22)] hover:-translate-y-1":"bg-white border-gray-200/80 hover:border-[#336CFF]/30 shadow-[0_2px_16px_rgba(24,33,55,0.06)] hover:shadow-[0_20px_44px_-12px_rgba(51,108,255,0.22)] hover:-translate-y-1"),style:t?{backgroundColor:vt,backgroundImage:"linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 42%), linear-gradient(135deg, rgba(51,108,255,0.04) 0%, transparent 55%)"}:void 0,children:[e.jsxs("div",{className:"px-3 pt-2 pb-3 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-1.5",children:[m&&e.jsx("span",{className:s("px-2.5 py-0.5 rounded-full text-[11px] font-semibold tracking-wide",r&&"font-heebo"),style:{background:`${M}14`,color:M},children:m}),a>0&&e.jsxs("span",{className:s("inline-flex items-center gap-0.5 text-[11px] font-bold tabular-nums",t?"text-white/70":"text-[#182137]/70"),children:[e.jsx(O,{className:"w-3 h-3 fill-amber-400 text-amber-400"}),i.toFixed(1),e.jsxs("span",{className:"opacity-55",children:["(",a,")"]})]})]}),e.jsx("h3",{className:s("text-[17px] leading-snug font-extrabold tracking-tight line-clamp-2",t?"text-white":"text-[#182137]",r&&"font-heebo"),title:o.title,children:o.title}),o.description&&e.jsx("p",{className:s("text-[12.5px] leading-relaxed line-clamp-2 mt-1.5",t?"text-white/55":"text-[#182137]/60",r&&"font-heebo"),children:o.description})]}),e.jsx("div",{className:"relative rounded-2xl overflow-hidden",children:e.jsx(wt,{urls:o.example_urls,alt:o.title,isRTL:r,isDark:t})}),e.jsx("div",{className:"h-3"}),c&&e.jsx("div",{className:"px-1 pb-3",children:e.jsxs("div",{className:s("grid grid-cols-2 gap-4 roun
30ded-xl border p-3 text-start",t?"border-white/[0.07] bg-white/[0.04]":"border-[#E6ECF5] bg-[#F7F9FC]"),children:[e.jsx(me,{icon:it,label:r?"מה שולחים":"What you send",value:o.requirements,isDark:t,isRTL:r}),e.jsx(me,{icon:ct,label:r?"מה מקבלים":"What you get",value:o.deliverables,isDark:t,isRTL:r})]})}),e.jsxs("div",{className:"px-2 pb-3 flex flex-wrap items-center justify-center gap-2",children:[e.jsxs("span",{className:s("inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[12px] font-semibold border",t?"text-white/70 border-white/[0.12]":"text-[#182137]/75 border-[#182137]/12",r&&"font-heebo"),children:[e.jsx(rt,{className:"w-3 h-3",style:{color:M},strokeWidth:2.5}),r?`${o.delivery_days} ימים`:`${o.delivery_days} ${o.delivery_days===1?"day":"days"}`]}),o.max_revisions>0&&e.jsxs("span",{className:s("inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[12px] font-semibold border",t?"text-white/70 border-white/[0.12]":"text-[#182137]/75 border-[#182137]/12",r&&"font-heebo"),children:[e.jsx(st,{className:"w-3 h-3",style:{color:M},strokeWidth:2.5}),r?`עד ${o.max_revisions} ${o.max_revisions===1?"תיקון":"תיקונים"}`:`up to ${o.max_revisions} ${o.max_revisions===1?"revision":"revisions"}`]})]}),e.jsxs("div",{className:s("flex items-center justify-between gap-3 px-3 pt-3 pb-2 border-t",t?"border-white/[0.08]":"border-[#182137]/08"),children:[e.jsxs("div",{className:"flex items-baseline gap-2 min-w-0",children:[e.jsx("span",{className:s("text-[24px] font-extrabold tabular-nums leading-none tracking-tight",t?"text-white":"text-[#182137]"),children:r?de(o.price_tokens):xe(o.price_tokens)}),e.jsx("span",{className:s("text-[13px] font-medium tabular-nums line-through",t?"text-white/30":"text-[#182137]/35"),children:r?xe(o.price_tokens):de(o.price_tokens)})]}),e.jsxs("button",{onClick:()=>p(o),className:s("inline-flex items-center gap-1.5 px-5 h-11 rounded-full text-[14px] font-bold text-white shrink-0","transition-all duration-200 ease-out active:scale-[0.97]",r&&"font-heebo"),style:{background:`linear-gradient(135deg, ${M} 0%, #5588FF 100%)`,boxShadow:`0 4px 16px ${M}45, 0 0 0 1px rgba(51,108,255,0.12)`},children:[e.jsx(n,{className:"w-4 h-4 transition-transform duration-200 ease-out group-hover:-translate-x-0.5",strokeWidth:2.5}),e.jsx("span",{children:r?"הזמן שירות":"Order Service"})]})]})]})}const Ct="#336CFF";function he({rating:o,size:i=14,isDark:a=!0}){return e.jsx("div",{className:"flex items-center gap-0.5",children:Array.from({length:5}).map((r,t)=>e.jsx(O,{className:s(t<Math.round(o)?"fill-amber-400 text-amber-400":a?"fill-white/[0.08] text-white/[0.08]":"fill-gray-200 text-gray-200"),style:{width:i,height:i}},t))})}function Ft({reviews:o,rating:i,reviewCount:a,isRTL:r,isDark:t,onViewAll:m}){if(o.length===0)return null;const p=[5,4,3,2,1].map(n=>{const c=o.filter(y=>y.rating===n).length;return{star:n,count:c,pct:a>0?c/a*100:0}}),h=o.slice(0,3);return e.jsxs(q.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,delay:.2},className:"mt-14",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h3",{className:s("text-lg font-bold",t?"text-white":"text-[#182137]",r&&"font-heebo"),children:r?"מה אומרים הלקוחות":"What Clients Say"}),e.jsxs("button",{onClick:m,className:s("inline-flex items-center gap-1.5 text-[13px] font-semibold transition-colors",t?"text-white/40 hover:text-white/70":"text-[#182137]/40 hover:text-[#182137]/70",r&&"font-heebo"),children:[r?"כל הביקורות":"All reviews",r?e.jsx(L,{className:"w-3.5 h-3.5"}):e.jsx(T,{className:"w-3.5 h-3.5"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[260px_1fr] gap-6",children:[e.jsxs("div",{className:s("rounded-2xl p-6 flex flex-col items-center text-center",t?"bg-white/[0.03] border border-white/[0.06]":"bg-gray-50/80 border border-gray-100"),children:[e.jsx("div",{className:s("text-5xl font-extrabold tabular-nums leading-none",t?"text-white":"text-[#182137]"),children:i.toFixed(1)}),e.jsx("div",{className:"mt-2 mb-1",children:e.jsx(he,{rating:i,size:18,isDark:t})}),e.jsxs("div",{className:s("text-[13px] font-medium mb-5",t?"text-white/40":"text-[#182137]/40",r&&"font-heebo"),children:[a," ",r?"ביקורות":"reviews"]}),e.jsx("div",{className:"w-full space-y-2",children:p.map(({star:n,count:c,pct:y})=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:s("text-[11px] font-semibold w-4 text-end tabular-nums",t?"text-white/40":"text-[#182137]/40"),children:n}),e.jsx(O,{className:"w-3 h-3 fill-amber-400 text-amber-400 shrink-0"}),e.jsx("div",{className:s("flex-1 h-2 rounded-full overflow-hidden",t?"bg-white/[0.06]":"bg-gray-200/60"),children:e.jsx(q.div,{initial:{width:0},animate:{width:`${y}%`},transition:{duration:.6,delay:.3+n*.05,ease:[.22,1,.36,1]},className:"h-full rounded-full bg-amber-400"})}),e.jsx("span",{className:s("text-[10px] w-5 text-start tabular-nums",t?"text-white/30":"text-[#182137]/30"),children:c})]},n))})]}),e.jsx("div",{className:"space-y-3",children:h.map((n,c)=>e.jsx(q.div,{initial:{opacity:0,x:r?-12:12}
30,animate:{opacity:1,x:0},transition:{duration:.35,delay:.3+c*.08},className:s("rounded-xl p-4 transition-all duration-200",t?"bg-white/[0.03] border border-white/[0.06] hover:border-white/[0.1]":"bg-white border border-gray-100 hover:border-gray-200"),children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"shrink-0 w-9 h-9 rounded-full flex items-center justify-center text-[13px] font-bold",style:{background:t?"rgba(51,108,255,0.1)":"rgba(51,108,255,0.08)",color:Ct},children:n.reviewer_name.charAt(0)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:s("font-semibold text-[13px]",t?"text-white":"text-[#182137]",r&&"font-heebo"),children:n.reviewer_name}),e.jsx(he,{rating:n.rating,size:11,isDark:t})]}),e.jsx("span",{className:s("text-[11px] tabular-nums",t?"text-white/25":"text-[#182137]/25"),children:new Date(n.created_at).toLocaleDateString(r?"he-IL":"en-US",{month:"short",day:"numeric"})})]}),e.jsx("p",{className:s("text-[13px] leading-relaxed line-clamp-2",t?"text-white/50":"text-[#182137]/50",r&&"font-heebo"),children:n.text})]})]})},n.id))})]})]})}const _="#336CFF";function St(o,i){const{creator:a,services:r,reviews:t,isLoading:m,error:p}=mt(o||"");if(m)return{creator:null,isLoading:!0,notFound:!1};if(p||!a)return{creator:null,isLoading:!1,notFound:!0};const h=(l,b)=>i?l:b||l,n=(r||[]).map(l=>({id:l.id,title:h(l.title,l.title_en),description:h(l.description||"",l.description_en),price_tokens:Math.round((l.price_cents||0)/100),delivery_days:l.delivery_days,category:l.category,max_revisions:l.max_revisions||1,cover_image_url:l.cover_image_url||null,example_urls:l.example_urls||[],requirements:h(l.requirements||"",l.requirements_en)||null,deliverables:h(l.deliverables||"",l.deliverables_en)||null})),c=(t||[]).map(l=>({id:l.id,reviewer_name:l.reviewer_name||(i?"משתמש":"User"),rating:l.rating,text:l.review_text||"",created_at:l.created_at}));return{creator:{id:a.id,slug:a.slug,display_name:a.display_name,nickname:a.nickname||null,avatar_url:a.avatar_url,cover_image_url:a.cover_image_url,bio:h(a.bio||"",a.bio_en),categories:a.categories||[],rating:Number(a.avg_rating)||0,review_count:a.total_reviews||0,completed_orders:a.total_orders||0,verified:a.is_verified||!1,level:a.level||"new",services:n,reviews:c},isLoading:!1,notFound:!1}}function W({children:o,delay:i=0,className:a=""}){const r=u.useRef(null),t=at(r,{once:!0,margin:"-60px"});return e.jsx(q.div,{ref:r,initial:{opacity:0,y:36},animate:t?{opacity:1,y:0}:{},transition:{duration:.6,delay:i,ease:"easeOut"},className:a,children:o})}function ue({rating:o,size:i=16,isDark:a=!0}){return e.jsx("div",{className:"flex items-center gap-0.5",children:Array.from({length:5}).map((r,t)=>e.jsx(O,{className:s(t<Math.round(o)?"fill-amber-400 text-amber-400":a?"fill-white/[0.08] text-white/[0.08]":"fill-gray-200 text-gray-200"),style:{width:i,height:i}},t))})}function It(){const{theme:o}=fe(),i=o==="dark"||o==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches,a=i?"bg-white/[0.06]":"bg-gray-100";return e.jsx("div",{className:s("min-h-screen pt-20 sm:pt-24",i?"bg-[#141416] creators-bronze-grid":"creators-bronze-grid-light-page"),children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6",children:[e.jsx(k,{className:s("w-full h-56 rounded-2xl",a)}),e.jsxs("div",{className:"flex items-end gap-5 -mt-14 ms-8",children:[e.jsx(k,{className:s("w-28 h-28 rounded-full",a)}),e.jsxs("div",{className:"space-y-2 pb-3",children:[e.jsx(k,{className:s("h-6 w-48 rounded-xl",a)}),e.jsx(k,{className:s("h-4 w-64 rounded-lg",a)})]})]}),e.jsx(k,{className:s("h-24 rounded-2xl mt-8",a)}),e.jsxs("div",{className:"flex gap-3 mt-8 mb-6",children:[e.jsx(k,{className:s("h-10 w-28 rounded-full",a)}),e.jsx(k,{className:s("h-10 w-28 rounded-full",a)}),e.jsx(k,{className:s("h-10 w-28 rounded-full",a)})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[e.jsx(k,{className:s("h-72 rounded-2xl",a)}),e.jsx(k,{className:s("h-72 rounded-2xl",a)})]})]})})}function ge({children:o,isRTL:i,isDark:a=!0}){return e.jsx(W,{className:"mb-8 text-center",children:e.jsxs("h2",{className:s("text-2xl font-bold inline-block relative",a?"text-white":"text-[#182137]",i&&"font-heebo"),children:[o,e.jsx("span",{className:"block w-10 h-1 rounded-full mt-2 mx-auto",style:{background:_}})]})})}function Qt(){var U;const{slug:o}=Ge(),{t:i}=pe("creators"),{isRTL:a}=be(),r=Ke(),{creator:t,isLoading:m,notFound:p}=St(o,a),{theme:h}=fe(),n=h==="dark"||h==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches,{user:c}
30=Y(),{createInquiry:y,isLoading:l}=ht();u.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[o]);const[b,g]=u.useState(!1),[$,j]=u.useState(!1),[x,f]=u.useState(null),[F,A]=u.useState("");u.useEffect(()=>{c&&localStorage.getItem("marketplace_buyer_flow")&&(localStorage.removeItem("marketplace_buyer_flow"),B.from("profiles").update({account_type:"marketplace_buyer"}).eq("id",c.id).then(()=>{}))},[c]);const K=d=>{if(!c){f(d),g(!0);return}f(d),A(""),j(!0)},N=async()=>{if(!(!x||!F.trim()))try{const d=await y(x.id,F.trim());d!=null&&d.order_id&&(j(!1),r(`/order/${d.order_id}`))}catch(d){C.error(d.message||(a?"שגיאה ביצירת הפנייה":"Failed to create inquiry"))}},v=a?T:L;if(m)return e.jsx(It,{});if(p||!t)return e.jsxs("div",{dir:a?"rtl":"ltr",className:s("min-h-screen flex items-center justify-center relative overflow-hidden",a&&"font-heebo",n?"bg-[#141416] creators-bronze-grid":"creators-bronze-grid-light-page"),children:[e.jsx("nav",{className:"fixed top-0 inset-x-0 z-50 px-6 py-5",children:e.jsxs("div",{className:"max-w-[1200px] mx-auto flex items-center justify-between",children:[e.jsx("a",{href:"https://boardspace.ai",children:e.jsx("img",{src:n?ne:oe,alt:"Boardspace.ai",className:n?"h-[56px] md:h-[72px] w-auto":"h-[72px] md:h-[96px] w-auto"})}),c&&e.jsx(le,{})]})}),e.jsxs("div",{className:"text-center relative z-10",children:[e.jsx("div",{className:s("inline-flex items-center justify-center w-20 h-20 rounded-2xl mb-6",n?"bg-[#131820] border border-white/[0.06]":"bg-white shadow-sm border border-gray-200"),children:e.jsx(xt,{className:s("w-8 h-8",n?"text-white/30":"text-[#182137]/30")})}),e.jsx("h1",{className:s("text-2xl font-bold mb-2",n?"text-white":"text-[#182137]",a&&"font-heebo"),children:a?"קריאייטור לא נמצא":"Creator not found"}),e.jsx("p",{className:s("mb-6 text-[15px]",n?"text-white/50":"text-[#182137]/50",a&&"font-heebo"),children:a?"הדף שחיפשת לא קיים":"The page you're looking for doesn't exist"}),e.jsxs("button",{onClick:()=>r("/creators"),className:s("inline-flex items-center gap-2 text-sm font-medium transition-colors",a&&"font-heebo"),style:{color:_},children:[e.jsx(v,{className:"w-4 h-4"}),a?"חזרה למרקטפלייס":"Back to Marketplace"]})]})]});const P="2025";return e.jsxs(e.Fragment,{children:[e.jsx(Je,{title:`${t.nickname||t.display_name} | Boardspace.ai Creators`,description:((U=t.bio)==null?void 0:U.slice(0,160))||`${t.nickname||t.display_name} on Boardspace.ai Creators Marketplace`}),e.jsxs("div",{dir:a?"rtl":"ltr",className:s("min-h-screen relative overflow-x-hidden",a&&"font-heebo",n?"bg-[#141416] creators-bronze-grid":"creators-bronze-grid-light-page"),style:{zoom:.9},children:[e.jsx("nav",{className:"fixed top-0 inset-x-0 z-50 px-6 py-5",children:e.jsxs("div",{className:"max-w-[1200px] mx-auto flex items-center justify-between",children:[e.jsx("a",{href:"https://boardspace.ai",children:e.jsx("img",{src:n?ne:oe,alt:"Boardspace.ai",className:n?"h-[56px] md:h-[72px] w-auto":"h-[72px] md:h-[96px] w-auto"})}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("button",{onClick:()=>r("/creators"),className:s("inline-flex items-center gap-1.5 text-sm transition-colors",n?"text-white/40 hover:text-white":"text-[#182137]/40 hover:text-[#182137]",a&&"font-heebo"),children:[e.jsx(v,{className:"w-4 h-4"}),a?"חזרה למרקטפלייס":"Back to Marketplace"]}),c&&e.jsx(le,{})]})]})}),e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 pb-20 pt-28 sm:pt-32 relative z-10",children:[e.jsx(W,{children:e.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-0",children:[t.cover_image_url?e.jsx("img",{src:t.cover_image_url,alt:"",className:"w-full h-56 sm:h-64 object-cover"}):e.jsx("div",{className:"w-full h-56 sm:h-64",style:{background:`linear-gradient(135deg, ${_}20, ${_}08, transparent)`}}),e.jsx("div",{className:s("absolute inset-0 bg-gradient-to-t via-transparent to-transparent opacity-80",n?"from-[#141416]":"from-white")})]})}),e.jsxs("div",{className:"relative flex flex-col items-center text-center -mt-16 sm:-mt-20 mb-6",children:[e.jsxs("div",{className:"relative",children:[t.avatar_url?e.jsx("img",{src:t.avatar_url,alt:t.nickname||t.dis
30play_name,className:s("w-28 h-28 sm:w-32 sm:h-32 rounded-full object-cover border-4 shadow-xl",n?"border-[#141416]":"border-white")}):e.jsx("div",{className:s("w-28 h-28 sm:w-32 sm:h-32 rounded-full border-4 shadow-xl flex items-center justify-center",n?"border-[#141416] bg-[#131820]":"border-white bg-white"),children:e.jsx("span",{className:"text-3xl font-bold",style:{color:`${_}99`},children:(t.nickname||t.display_name).charAt(0)})}),t.verified&&e.jsx("div",{className:"absolute -bottom-1 -end-1 w-8 h-8 rounded-full flex items-center justify-center shadow-md",style:{background:_,border:`3px solid ${n?"#141416":"#FFFFFF"}`},children:e.jsx(Qe,{className:"w-4 h-4 text-white"})})]}),e.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3 flex-wrap",children:[e.jsx("h1",{className:s("text-xl sm:text-2xl font-extrabold tracking-tight",n?"text-white":"text-[#182137]",a&&"font-heebo"),children:t.nickname||t.display_name}),e.jsx(bt,{level:t.level,size:"md"})]}),e.jsxs("div",{className:s("mt-3 flex items-center justify-center gap-3 text-[13px] flex-wrap",n?"text-white/60":"text-[#182137]/60",a&&"font-heebo"),children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(ue,{rating:t.rating,size:13,isDark:n}),e.jsx("span",{className:s("font-bold",n?"text-white":"text-[#182137]"),children:t.rating.toFixed(1)}),e.jsxs("span",{className:"opacity-55",children:["(",t.review_count,")"]})]}),e.jsx("span",{className:s("opacity-30",n?"text-white":"text-[#182137]"),children:"·"}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(nt,{className:"w-3.5 h-3.5",style:{color:_}}),t.completed_orders," ",a?"הזמנות":"orders"]}),e.jsx("span",{className:s("opacity-30",n?"text-white":"text-[#182137]"),children:"·"}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(ot,{className:"w-3.5 h-3.5",style:{color:_}}),a?`חבר מ-${P}`:`Since ${P}`]})]}),t.categories.length>0&&e.jsx("div",{className:"mt-4 flex flex-wrap items-center justify-center gap-1.5",children:t.categories.map(d=>e.jsx("span",{className:s("px-2.5 py-0.5 rounded-full text-[11px] font-semibold",a&&"font-heebo"),style:{background:`${_}12`,color:_},children:ce(d,a)},d))})]}),t.bio&&e.jsx(W,{children:e.jsxs("blockquote",{className:s("relative mx-auto max-w-4xl px-8 sm:px-16 py-10 sm:py-14 mb-10 text-center"),children:[e.jsx("span",{"aria-hidden":!0,className:s("absolute top-0 select-none leading-none pointer-events-none","text-[120px] sm:text-[160px] font-serif",a?"end-2 sm:end-6":"start-2 sm:start-6",n?"text-white/20":"text-[#0E1628]/35"),style:{lineHeight:.9},children:"“"}),e.jsx("p",{className:s("relative z-10 text-[14px] sm:text-[15px] leading-[1.75] font-semibold italic",n?"text-white":"text-black",a&&"font-heebo not-italic"),children:t.bio}),e.jsx("span",{"aria-hidden":!0,className:s("absolute bottom-0 select-none leading-none pointer-events-none","text-[120px] sm:text-[160px] font-serif",a?"start-2 sm:start-6":"end-2 sm:end-6",n?"text-white/20":"text-[#0E1628]/35"),style:{lineHeight:.4},children:"”"}),e.jsxs("div",{className:s("relative z-10 flex items-center justify-center gap-3 mt-6"),children:[e.jsx("span",{className:s("h-px w-10",n?"bg-white/20":"bg-[#182137]/20")}),e.jsx("span",{className:s("text-[11px] font-bold uppercase tracking-[0.18em]",n?"text-white/55":"text-[#182137]/55",a&&"font-heebo tracking-[0.1em]"),children:t.nickname||t.display_name}),e.jsx("span",{className:s("h-px w-10",n?"bg-white/20":"bg-[#182137]/20")})]})]})}),e.jsxs(e.Fragment,{children:[e.jsx(ge,{isRTL:a,isDark:n,children:a?"מה אני מציע?":"What I offer"}),t.services.length===0?e.jsxs("div",{className:"text-center py-16",children:[e.jsx("div",{className:s("inline-flex items-center justify-center w-14 h-14 rounded-2xl mb-4",n?"bg-white/[0.04] border border-white/[0.06]":"bg-gray-100 border border-gray-200"),children:e.jsx(lt,{className:s("w-6 h-6",
30n?"text-white/30":"text-[#182137]/30")})}),e.jsx("p",{className:s("text-[15px]",n?"text-white/40":"text-[#182137]/40",a&&"font-heebo"),children:a?"אין שירותים עדיין":"No services yet"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:s(t.services.length===1?"mx-auto w-full max-w-2xl":"grid grid-cols-1 sm:grid-cols-2 gap-7"),children:t.services.map((d,z)=>e.jsx(kt,{service:d,creatorRating:t.rating,creatorReviewCount:t.review_count,isRTL:a,isDark:n,categoryLabel:ce(d.category,a),onOrder:K,index:z},d.id))}),e.jsx(Ft,{reviews:t.reviews,rating:t.rating,reviewCount:t.review_count,isRTL:a,isDark:n,onViewAll:()=>{var d;(d=document.getElementById("creator-reviews-list"))==null||d.scrollIntoView({behavior:"smooth",block:"start"})}})]})]}),t.reviews.length>0&&e.jsxs("div",{id:"creator-reviews-list",className:"mt-16 scroll-mt-24",children:[e.jsx(ge,{isRTL:a,isDark:n,children:a?"ביקורות":"Reviews"}),e.jsx("div",{className:"space-y-4",children:t.reviews.map((d,z)=>e.jsx(W,{delay:z*.05,children:e.jsx("div",{className:s("rounded-2xl p-5 sm:p-6 hover:-translate-y-0.5 transition-all duration-300",n?"bg-[#131820] border border-white/[0.06] hover:border-white/[0.12]":"bg-white shadow-sm border border-gray-200 hover:border-gray-300"),children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:s("shrink-0 w-11 h-11 rounded-full flex items-center justify-center",n?"bg-white/[0.04] border border-white/[0.06]":"bg-gray-100 border border-gray-200"),children:e.jsx("span",{className:"text-sm font-bold",style:{color:`${_}99`},children:d.reviewer_name.charAt(0)})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:s("font-semibold text-[15px]",n?"text-white":"text-[#182137]",a&&"font-heebo"),children:d.reviewer_name}),e.jsx(ue,{rating:d.rating,size:13,isDark:n})]}),e.jsx("span",{className:s("text-[12px] tabular-nums",n?"text-white/30":"text-[#182137]/30"),children:new Date(d.created_at).toLocaleDateString(a?"he-IL":"en-US",{year:"numeric",month:"short",day:"numeric"})})]}),e.jsx("p",{className:s("text-[14px] leading-relaxed",n?"text-white/60":"text-[#182137]/60",a&&"font-heebo"),children:d.text})]})]})})},d.id))})]})]})]}),e.jsx(Z,{open:$,onOpenChange:j,children:e.jsxs(D,{className:s("sm:max-w-[480px]",n?"bg-[#0d1117] border-white/10":"bg-white",a&&"font-heebo"),children:[e.jsx(Xe,{children:e.jsx(Ye,{className:s("text-xl font-bold",n?"text-white":"text-[#182137]",a&&"text-right"),children:a?"יצירת קשר עם היוצר":"Contact Creator"})}),x&&e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsxs("div",{className:s("p-4 rounded-xl",n?"bg-white/[0.04] border border-white/[0.06]":"bg-gray-50 border border-gray-200"),children:[e.jsx("p",{className:s("font-semibold text-[15px] mb-1",n?"text-white":"text-[#182137]"),children:x.title}),e.jsxs("p",{className:s("text-sm",n?"text-white/50":"text-[#182137]/50"),children:[a?`₪${x.price_tokens.toLocaleString()}`:`$${Math.round(x.price_tokens/3.65).toLocaleString()}`," • ",x.delivery_days," ",a?"ימים":"days"]})]}),e.jsxs("div",{children:[e.jsx("label",{className:s("block text-sm font-medium mb-2",n?"text-white/70":"text-[#182137]/70"),children:a?"תאר את הפרויקט שלך":"Describe your project"}),e.jsx("textarea",{value:F,onChange:d=>A(d.target.value),placeholder:a?"ספר ליוצר על הפרויקט שלך, מה אתה מחפש ומה הציפיות שלך...":"Tell the creator about your project, what you're looking for and your expectations...",className:s("w-full h-32 p-4 rounded-xl text-[15px] resize-none transition-colors",n?"bg-white/[0.04] border border-white/[0.08] text-white placeholder:text-white/30 focus:border-[#336CFF]/50 focus:ring-1 focus:ring-[#336CFF]/30":"bg-white border border-gray-200 text-[#182137] placeholder:text-[#182137]/40 focus:border-[#336CFF] focus:ring-1 focus:ring-[#336CFF]/30","outline-none"),dir:a?"rtl":"ltr"})]}),e.jsx("button",{onClick:N,disabled:!F.trim()||l,className:s("w-full py-3.5 px-6 rounded-xl font-semibold text-[15px] transition-all duration-200","bg-[#336CFF] text-white hover:bg-[#2856d4]","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2"),children:l?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),a?"שולח...":"Sending..."]}):e.jsxs(e.Fragment,{children:[e.jsx(Ze,{className:"w-4 h-4"}),a?"שלח פנייה":"Send Inquiry"]})}),e.jsx("p",{className:s("text-xs text-center",n?"text-white/30":"text-[#182137]/30"),children:a?"היוצר יקבל את ההודעה שלך וישלח לך הצעת מחיר":"The creator will receive your message and send you a proposal"})]})]})}),e.jsx(ut,{isOpen:b,onClose:()=>g(!1),onComplete:()=>{g(!1),x&&(A(""),j(!0))},isRTL:a})]})}export{Qt 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.