import{Ba as L,Ca as U,F as Q,I as j,K as F,L as A,M as S,P as B,c as _,d as x,f as I,ua as G,v as z}from"./chunk-YXURU7NW.mjs";import{B as r,C as f,j as V,p as P,q as R,r as M,u as T,x as d}from"./chunk-MJ2EDGOT.mjs";import{c as u}from"./chunk-A3IIQ6X3.mjs";function q(e){let o=A({state:Object.freeze({...e})}),s=n=>{typeof n=="function"&&(n=n(o.state)),o.state=Object.freeze({...o.state,...n})},t=typeof e=="object"?Object.freeze({...e}):e,a=new Set,l=n=>{typeof n=="function"&&(n=n(t)),t=typeof n=="object"?Object.freeze({...t,...n}):n,a.forEach(c=>c(t))};function p(){let[n,c]=d(t);return R(()=>(a.add(c),()=>a.delete(c)),[]),S()===!0?(S(),[o.state,s]):[n,l]}return p}var O={display:"flex",justifyContent:"center",alignItems:"center"};var se={...O,overflow:"hidden"};function b(){let[e,o]=d(""),[s,t]=d(""),[a,l]=d("Discord"),[p,n]=d(!1),[c,y]=d(!1),v=()=>{y(!0)},m=()=>{y(!1)},w=e.length>0&&s.length>0&&p;return f("form",{onSubmit:async i=>{if(i.preventDefault(),w){let h=JSON.stringify({contact:e,heard_about_from:s,community_platform:a}),C="https://app.pluno.ai/api/submit-landing-page-info?value="+encodeURIComponent(h);if(await fetch(C),a==="Discord"){let N=btoa(h);u.location.href="https://discord.com/api/oauth2/authorize?client_id=955744627481255976&permissions=274877990912&redirect_uri=https%3A%2F%2Fapp.pluno.ai%2Fgetting-started&response_type=code&scope=bot%20guilds&state="+N}else u.location.href="https://pluno.ai/blog/user-guide-pluno#2"}},style:{display:"flex",flexDirection:"column",alignItems:"left",fontFamily:"Sofia Sans",fontSize:"18px",color:"white",padding:"24px",backgroundColor:"black",borderRadius:"8px",boxShadow:"rgba(78,69,181, 0.6) 0px 0px 8px"},children:[r("label",{style:{marginBottom:"8px"},children:"Please enter your personal Discord username or Telegram handle so we can help you get started with Pluno :)"}),r("input",{type:"text",placeholder:"Your personal Discord username or Telegram handle",value:e,onChange:i=>o(i.target.value),required:!0,maxLength:120,style:{width:"100%",padding:"16px",marginBottom:"24px",border:"1px solid #ccc",borderRadius:"4px"}}),r("label",{style:{marginBottom:"8px"},children:"Where did you hear about us?"}),r("input",{type:"text",placeholder:"Share specific source please",value:s,required:!0,onChange:i=>t(i.target.value),style:{width:"100%",padding:"16px",marginBottom:"24px",border:"1px solid #ccc",borderRadius:"4px"}}),f("div",{style:{marginBottom:"16px"},children:[f("label",{style:{marginRight:"16px"},children:[r("input",{type:"radio",value:"Discord",checked:a==="Discord",onChange:i=>l(i.target.value),style:{marginRight:"8px"}}),"Discord"]}),f("label",{children:[r("input",{type:"radio",value:"Telegram",checked:a==="Telegram",onChange:i=>l(i.target.value),style:{marginRight:"8px"}}),"Telegram"]})]}),f("label",{style:{marginBottom:"24px"},children:[r("input",{type:"checkbox",value:p,onChange:i=>n(i.target.value),required:!0,style:{marginRight:"8px"}}),"I accept the"," ",r("a",{href:"https://pluno.ai/terms",target:"_blank",rel:"noreferrer",style:{color:"white"},children:"Terms and Conditions"})]}),r("input",{type:"submit",value:"Invite bot to "+a,onMouseEnter:v,onMouseLeave:m,style:{fontSize:"16px",fontFamily:"Sofia Sans",width:"100%",padding:"16px",backgroundImage:c?"linear-gradient(rgb(93, 80, 195) 0%, rgba(190, 90, 255, 0.7) 0%)":"linear-gradient(rgb(93, 80, 195) 0%, rgba(190, 90, 255, 0.7) 100%)",backgroundColor:"#000000",color:"white",fontWeight:"bold",border:"none",borderRadius:"100px",cursor:w?"pointer":"default"}})]})}var he=q({background:"#0099FF"});var E=U(b),K=["UH7KGPHwm","tpBY37ZnX"],Y={tpBY37ZnX:"framer-v-7mncmf",UH7KGPHwm:"framer-v-1rzwfq1"};function X(e,...o){let s={};return o?.forEach(t=>t&&Object.assign(s,e[t])),s}var Z={default:{delay:0,duration:.15,ease:[.5,0,.88,.77],type:"tween"}},W=({value:e,children:o})=>{let s=P(_),t=e??s.transition,a=T(()=>({...s,transition:t}),[JSON.stringify(t)]);return r(_.Provider,{value:a,children:o})},J={"Desktop/Table":"UH7KGPHwm",Mobile:"tpBY37ZnX"},$=({height:e,id:o,width:s,...t})=>{var a,l;return{...t,variant:(l=(a=J[t.variant])!==null&&a!==void 0?a:t.variant)!==null&&l!==void 0?l:"UH7KGPHwm"}},ee=(e,o)=>o.join("-")+e.layoutDependency,te=V(function(e,o){let{activeLocale:s}=z(),{style:t,className:a,layoutId:l,variant:p,...n}=$(e),{baseVariant:c,classNames:y,gestureVariant:v,setGestureState:m,setVariant:w,transition:k,variants:i}=G({cycleOrder:K,defaultVariant:"UH7KGPHwm",transitions:Z,variant:p,variantClassNames:Y}),h=ee(e,i),C=M();return r(I,{id:l??C,children:r(x.div,{initial:p,animate:i,onHoverStart:()=>m({isHovered:!0}),onHoverEnd:()=>m({isHovered:!1}),onTapStart:()=>m({isPressed:!0}),onTap:()=>m({isPressed:!1}),onTapCancel:()=>m({isPressed:!1}),className:F("framer-QFi6g",y),style:{display:"contents"},children:r(W,{value:k,children:r(x.div,{...n,className:F("framer-1rzwfq1",a),"data-framer-name":"Desktop/Table",layoutDependency:h,layoutId:"UH7KGPHwm",ref:o,style:{...t},...X({tpBY37ZnX:{"data-framer-name":"Mobile"}},c,v),children:r(x.div,{className:"framer-o3pefd-container",layoutDependency:h,layoutId:"nQF_vhUxb-container",children:r(b,{height:"100%",id:"nQF_vhUxb",layoutId:"nQF_vhUxb",style:{height:"100%",width:"100%"},width:"100%"})})})})})})}),re=['.framer-QFi6g [data-border="true"]::after { content: ""; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }',"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }",".framer-QFi6g .framer-fmdxzk { display: block; }",".framer-QFi6g .framer-1rzwfq1 { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; padding: 0px 0px 0px 0px; position: relative; width: 404px; }",".framer-QFi6g .framer-o3pefd-container { flex: none; height: 370px; position: relative; width: 399px; }","@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-QFi6g .framer-1rzwfq1 { gap: 0px; } .framer-QFi6g .framer-1rzwfq1 > * { margin: 0px; margin-left: calc(10px / 2); margin-right: calc(10px / 2); } .framer-QFi6g .framer-1rzwfq1 > :first-child { margin-left: 0px; } .framer-QFi6g .framer-1rzwfq1 > :last-child { margin-right: 0px; } }",".framer-QFi6g.framer-v-7mncmf .framer-1rzwfq1 { width: 314px; }",".framer-QFi6g.framer-v-7mncmf .framer-o3pefd-container { height: 461px; width: 314px; }"],g=B(te,re,"framer-QFi6g"),_e=g;g.displayName="Getting Started Form";g.defaultProps={height:370,width:404};j(g,{variant:{options:["UH7KGPHwm","tpBY37ZnX"],optionTitles:["Desktop/Table","Mobile"],title:"Variant",type:Q.Enum}});L(g,[...E]);export{_e as a}; //# sourceMappingURL=chunk-W334MHCQ.mjs.map