1import{u as j,j as t,a as P,b as k,i as z,c as I,d as N,e as E,o as A}from"../chunks/chunk-CWpRnZh_.js";import{S as s,g as D,l as d,P as y,p as U}from"../chunks/chunk-GCJrLOlA.js";import{c as u,B as n,V as m,I as _,G as L,P as R,a as f,E as B,s as r,u as h,C,i as F}from"../chunks/chunk-CP7Jk5JU.js";import{r as V}from"../chunks/chunk-BsgHkqeu.js";import{M}from"../chunks/chunk-DLV21-Na.js";import{F as O,P as v}from"../chunks/chunk-B_GVthEh.js";import{r as x}from"../chunks/chunk-CsKevSyh.js";import{s as T}from"../chunks/chunk-BU4OBZLy.js";import{u as W}from"../chunks/chunk-BDSy0GZl.js";/* empty css */import"../chunks/chunk-D3e-Q_CA.js";import"../chunks/chunk-VMtAvM2J.js";/* empty css */import"../chunks/chunk-D-w1CO0O.js";import"../chunks/chunk-BZ8MI4RC.js";import"../chunks/chunk-Dk4pvMHp.js";import"../chunks/chunk-DtyoHx5x.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"06e80e6f"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="05474842-3a01-481b-9c10-f06a814857a0",e._sentryDebugIdIdentifier="sentry-dbid-05474842-3a01-481b-9c10-f06a814857a0")})()}catch{}const Y="max-h-40 size-40 rounded-full shadow-xl object-cover";function q({bio:e,image:i,onClick:a,headlineRef:l}){const{t:o}=j("components",{keyPrefix:"storeBioDisplay"});return t.jsxs("div",{className:"flex flex-col items-center gap-5 self-stretch",children:[t.jsxs("div",{className:"flex flex-col items-center relative",children:[t.jsx("img",{src:D(i,"no-profile-picture.svg"),className:u(Y,!i&&"bg-white")}),a&&t.jsx("div",{className:"absolute left-[130px] top-[10px]",children:t.jsx(w,{label:o("edit-image-button"),onClick:()=>a({type:"image"})})}),a?t.jsxs(n,{variant:"outline",size:"small",className:"rounded-full -mt-4",onClick:()=>a({type:"video"}),children:[t.jsx(m,{}),o(e.videoUrl?"edit-video-button":"add-video-button")]}):e.videoUrl&&t.jsx("a",{href:d(e.videoUrl),target:"_blank",rel:"noopener",className:"-mt-4",children:t.jsxs(n,{variant:"outline",size:"small",className:"rounded-full",children:[t.jsx(m,{}),o("play-video-button")]})})]}),t.jsxs("div",{className:"w-full space-y-2",children:[t.jsxs("div",{className:"w-full flex justify-center fl-store-text-base",children:[t.jsx("div",{className:"min-w-0 font-semibold fl-store-text-highlight text-2xl/8 md:text-4xl/10 text-center wrap-break-word",children:e.name}),a&&t.jsx("div",{className:"pt-3 md:pt-4",children:t.jsx(w,{isTransparent:!0,label:o("edit-info-button"),onClick:()=>a({type:"info"})})})]}),e.headline&&t.jsx("div",{ref:l,className:"fl-store-text-base text-center wrap-break-word",children:e.headline}),e.description&&t.jsx(M,{value:e.description,className:"mx-auto max-w-[400px] pt-1 fl-store-text-base text-base/5 [&_p]:my-2 wrap-break-word"})]}),a&&(!e.description||e.socials.length===0)&&t.jsxs("div",{className:u("flex flex-wrap justify-center gap-2",!e.description&&"-mt-2"),children:[!e.description&&t.jsxs(n,{variant:"outline",size:"small",className:"rounded-full min-h-0",onClick:()=>a({type:"info"}),children:[t.jsx(_,{}),o("add-description-button")]}),e.socials.length===0&&t.jsxs(n,{variant:"outline",size:"small",className:"rounded-full min-h-0",onClick:()=>a({type:"socials",index:void 0}),children:[t.jsx(L,{}),o("add-socials-button")]})]}),e.socials.length>0&&t.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-1",children:[e.socials.map((c,p)=>t.jsx($,{social:c,onClick:a&&(()=>a({type:"socials",index:p}))},p)),a&&t.jsx(n,{"aria-label":o("add-socials-button"),variant:"transparent",size:"exact",className:"fl-store-text-base size-10 [&_svg]:size-5",onClick:()=>a({type:"socials",index:void 0}),children:t.jsx(R,{})})]})]})}function w({label:e,onClick:i,isTransparent:a}){return t.jsx("div",{className:"relative size-0",children:a?t.jsx(n,{"aria-label":e,variant:"transparent",size:"exact",className:"absolute -top-4 size-8 fl-store-text-base",onClick:i,children:t.jsx(f,{size:"sm"})}):t.jsx(n,{"aria-label":e,variant:"outline",size:"tiny",className:"size-8",onClick:i,children:t.jsx(f,{size:"sm"})})})}function $({social:e,onClick:i}){const a=e.type===s.Other?t.jsx(O,{url:e.url,className:"size-5"}):G[e.type].icon({size:20});if(i)return t.jsx(n,{variant:"outline",size:"exact",className:"size-10 [&_svg]:size-5",onClick:i,"aria-label":e.title,children:a});const l=e.type==="email"?`mailto:${e.url}`:d(H(e.url,e.type));return t.jsx("a",{href:l,target:"_blank",rel:"noopener","aria-label":e.title,children:t.jsx(n,{variant:"outline",size:"exact",className:"size-10 [&_svg]:size-5",children:a})})}const G={[s.Facebook]:{icon:r.FacebookIcon,label:"Facebook"},[s.Instagram]:{icon:r.InstagramIcon,label:"Instagram"},[s.Twitter]:{icon:r.TwitterIcon,label:"X"},[s.Linkedin]:{icon:r.LinkedInIcon,label:"LinkedIn"},[s.Youtube]:{icon:r.YouTubeIcon,label:"YouTube"},[s.Pinterest]:{icon:r.PinterestIcon,label:"Pinterest"},[s.Medium]:{icon:r.MediumIcon,label:"Medium"},[s.Threads]:{icon:r.ThreadsIcon,label:"Threads"},[s.Whatsapp]:{icon:r.WhatsAppIcon,label:"WhatsApp"},[s.Tiktok]:{icon:r.TikTokIcon,label:"TikTok"},[s.Telegram]:{icon:r.TelegramIcon,label:"Telegram"},[s.Reddit]:{icon:r.RedditIcon,label:"Reddit"},[s.Slack]:{icon:r.SlackIcon,label:"Slack"},[s.Discord]:{icon:r.DiscordIcon,label:"Discord"},[s.Substack]:{icon:r.SubstackIcon,label:"Substack"},[s.Snapchat]:{icon:r.SnapchatIcon,label:"Snapchat"},[s.Email]:{icon:B,label:"Email"}};function H(e,i){if(e=e.trim(),!b[i])return e;const{except:a,replace:l,custom:o}=b[i];if(Array.isArray(a)?a.some(c=>e.includes(c)):e.includes(a))return e;for(const c of o??[])if(e.includes(c.pattern))return g(e,c.replace);return g(e,l)}function g(e,i){return typeof i=="function"?i(e):i+e}const b={facebook:{except:"facebook.com",replace:"https://www.facebook.com/"},instagram:{except:"instagram.com",replace:"https://www.instagram.com/"},twitter:{except:["x.com","twitter.com"],replace:"https://www.twitter.com/"},linkedin:{except:"linkedin.com",replace:"https://www.linkedin.com/in/"},youtube:{except:"youtube.com",custom:[{pattern:"@",replace:"https://www.youtube.com/"}],replace:"https://www.youtube.com/@"},pinterest:{except:"pinterest.com",replace:"https://www.pinterest.com/"},medium:{except:"medium.com",replace:"https://www.medium.com/"},threads:{except:"threads.net",custom:[{pattern:"@",replace:"https://www.threads.net/"}
1],replace:"https://www.threads.net/@"},whatsapp:{except:["whatsapp.com","wa.me"],replace:"https://wa.me/"},tiktok:{except:"tiktok.com",custom:[{pattern:"@",replace:"https://www.tiktok.com/@"}],replace:"https://www.tiktok.com/@"},telegram:{except:"t.me",replace:"https://t.me/"},reddit:{except:"reddit.com",replace:"https://www.reddit.com/user/"},discord:{except:"discord.gg",replace:"https://discord.gg/"}};function Q(){const{routeParams:{domainSlug:e}}=P(),i=k(),a=h(i.store.getStorePublic.queryOptions(e)).data,l=h(i.store.getStoreProductsPublic.queryOptions(e)).data;return V.useEffect(()=>{T(e)},[e]),!a||!l?t.jsx("p",{children:"loading"}):t.jsxs(t.Fragment,{children:[t.jsx(C,{title:a.seoTitle||`${a.bio.name} Creator Store on Flowlance`,description:a.seoDescription||a.bio.headline}),t.jsxs("div",{className:"flex flex-col items-center gap-6 py-6 md:pt-16 px-5",children:[t.jsx(q,{bio:a.bio,image:a.image}),t.jsx("div",{className:"flex flex-col items-center gap-3 w-full",children:l.map(o=>o.type===y.Lead&&o.isCheckoutInThumbnail?t.jsx(X,{store:a,product:o},o.id):t.jsx(v,{product:o,store:a,linkAction:S(a,o)},o.id))})]})]})}function X({store:e,product:i}){const{onSubmit:a,isFetching:l}=W(e,i,void 0);return t.jsx(v,{product:i,store:e,linkAction:S(e,i),checkoutAction:{onSubmit:a,isFetching:l}})}function S(e,i){if(U.includes(i.type)){let{url:a}=i;return i.type===y.Referral&&(a=x.referral(e.slug,e.toltSlug)),{href:d(a),isNewTab:!0,onNavigate:()=>T(e.slug,i.slug)}}if(!i.slug)throw new Error("Product slug is required for public products with checkout.");return{href:x.product.resolve(e,{productSlug:i.slug})}}const J=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"})),he={serverOnlyHooks:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:A}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:E}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:N}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/@domainSlug/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:J}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/src/pages/@domainSlug/+Layout.tsx",fileExportPathToShowToUser:[]},{filePathToShowToUser:"/src/pages/+Layout.tsx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:F},{type:"plus-file",exportValues:I}]},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:z}}};export{he as configValuesSerialized}; 2//# sourceMappingURL=src_pages_-domainSlug.DEZLZlTM.js.map
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.