PageSourceSearch

https://app.beventi.co/_nuxt/C5NaqbzW.js

js beventi.co collected 2026-09-25 03:56:09 UTC 4,344 bytes, 1 lines download raw bytes

1import{_ as E}from"./DDE-S9h7.js";import{aO as z,bv as A,bw as N,aP as d,bE as R,a_ as q,br as D,aZ as l,bd as K,aQ as f,be as M,b8 as x,aT as e,aU as y,aS as o,b7 as s,bz as p,aY as $,aR as g,aV as _,bA as j,aX as h,ba as I}from"./DelUBm_W.js";import{P as L}from"./PIo8YeR4.js";import{u as O}from"./KkeW6yF6.js";import{s as Q}from"./BZMij6bp.js";import"./DGsRY8rh.js";import"./Dgl3-a4j.js";import"./Bhs9aMis.js";import"./ByKzkPjE.js";import"./BLbs1Mkk.js";import"./CXVbORS7.js";import"./BRLtNWmY.js";import"./eZ5_J_GR.js";import"./ElNFAgva.js";import"./wZxlrNSR.js";import"./BjHhzdAU.js";/* empty css        */import"./DHfkjCTv.js";import"./CaJhF9v3.js";import"./BGRkBnG2.js";const U={class:"min-h-[calc(100vh-64px)] py-8 px-6 relative overflow-hidden bg-white"},X={class:"max-w-lg mx-auto relative"},Y={class:"text-center mb-8"},Z={class:"inline-flex items-center justify-center mb-5"},G={class:"font-display text-2xl lg:text-3xl text-secondary-dark mb-2"},H={class:"bg-white rounded-2xl border border-gray-light1 p-6 lg:p-8 shadow-sm"},J={key:0,class:"rounded-xl bg-red-50 p-4 mb-6"},W={class:"flex items-center gap-3"},ee={key:1,class:"rounded-xl bg-red-50 p-4 mb-6"},te={class:"flex items-start gap-3"},ke=z({__name:"profile",setup(oe){const w=A(),k=N(),{getProfileType:C,goBack:v,completeSetup:T}=O(),a=d(()=>w.query.type),r=d(()=>C(a.value)),P=d(()=>r.value?.title?`Create ${r.value.title} Profile`:"Create Profile");R({title:P,description:"Set up your profile on Beventi to start publishing and selling your books.",robots:"noindex, nofollow"}),q(()=>{(!a.value||!r.value)&&D("/start")});const S=l({photo:"",username:"",display_name:"",about:"",website:"",genres:[],contact_email:""}),c=l(!1),m=l(!1),n=l(!1),B=async(b,t)=>{try{n.value=!0,c.value=!1,m.value=!1;const i=L.store(b,a.value);await Q(i,async()=>{await k.refresh(),await T()},u=>{t.setErrors(u??{}),m.value=!0,n.value=!1})}
1catch(i){n.value=!1,i?.response?.status===413?t.setErrors({photo:["The photo is too large. Please reduce the size and try again."]}):c.value=!0}};return(b,t)=>{const i=E,u=j,F=K("FormKit");return f(),M(I,{appear:"","enter-active-class":"transition-all duration-500 ease-out","enter-from-class":"opacity-0 translate-y-4","enter-to-class":"opacity-100 translate-y-0"},{default:x(()=>[e("div",U,[e("div",{class:y([[o(a)==="seller"?"from-beventi/10 via-beventi/5":"from-purple/10 via-purple/5"],"absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[400px] bg-gradient-to-b to-transparent rounded-full blur-3xl pointer-events-none"])},null,2),e("div",X,[e("button",{onClick:t[0]||(t[0]=(...V)=>o(v)&&o(v)(...V)),class:"inline-flex items-center gap-2 text-secondary hover:text-secondary-dark transition-colors mb-6 group"},[s(o(p),{icon:["fal","arrow-left"],class:"text-sm group-hover:-translate-x-1 transition-transform"}),t[1]||(t[1]=e("span",{class:"text-sm font-medium"},"Back",-1))]),e("div",Y,[e("div",Z,[e("div",{class:y([[o(r)?.iconColor],"text-4xl"])},[s(o(p),{icon:["fal",o(r)?.icon]},null,8,["icon"])],2)]),e("h2",G," Set up your "+$(o(a)==="seller"?"Author":"Vendor")+" profile ",1),t[2]||(t[2]=e("p",{class:"text-secondary text-sm"}," This information will be visible on your public profile. ",-1))]),e("div",H,[s(F,{type:"form",onSubmit:B,actions:!1,value:o(S)},{default:x(()=>[s(i,{showDescription:!0,profileType:o(a)},null,8,["profileType"]),o(m)?(f(),g("div",J,[e("div",W,[s(o(p),{icon:["fal","exclamation-circle"],class:"text-red-500"}),t[3]||(t[3]=e("p",{class:"text-sm text-red-800"}," Please review the form and correct any errors. ",-1))])])):_("",!0),o(c)?(f(),g("div",ee,[e("div",te,[s(o(p),{icon:["fal","exclamation-triangle"],class:"text-red-500 mt-0.5"}),t[4]||(t[4]=e("div",null,[e("h4",{class:"text-sm font-medium text-red-800"},"Something went wrong"),e("p",{class:"text-sm text-red-700 mt-1"}," Please try again or contact support if the issue persists. ")],-1))])])):_("",!0),s(u,{type:"submit","btn-style":"dark",size:"xl",loading:o(n),class:"w-full"},{default:x(()=>[...t[5]||(t[5]=[h(" Create Profile ",-1)])]),_:1},8,["loading"])]),_:1},8,["value"])]),t[6]||(t[6]=e("p",{class:"text-center mt-8 text-sm text-secondary"},[h(" Need help? "),e("a",{href:"mailto:[email protected]",class:"text-beventi font-medium hover:text-beventi-dark transition-colors"}," Contact support ")],-1))])])]),_:1})}}});
1export{ke 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.