{"version":3,"file":"prompt-CRbPGqvy.js","sources":["../../../app/frontend/landing/prompt.jsx","../../../app/frontend/entrypoints/prompt.jsx"],"sourcesContent":["// import { NextUIProvider, Link, Button, Textarea } from '@nextui-org/react';\n\nimport { Button, LinkButton } from '@rhino-project/core/components/buttons';\nimport { useMutation } from '@tanstack/react-query';\nimport axios from 'axios';\nimport { useLocalStorage } from 'react-use';\nimport { Input } from 'reactstrap';\n\nconst Home = () => {\n const baseUrl = `${window.location.protocol}//${window.location.host.replace(\n 'prompt.',\n ''\n )}`;\n const [content, setContent] = useLocalStorage('saas-content', '');\n const { mutate, isLoading } = useMutation({\n mutationKey: ['improveDescription'],\n mutationFn: (data) => axios.post(`${baseUrl}/api/landing/improve`, data)\n });\n\n const isLongEnough = content?.length >= 40;\n\n return (\n
\n
\n
\n setContent(e.target.value)}\n />\n
\n {\n mutate(\n { content },\n {\n onSuccess: (data) => {\n setContent(data?.data?.new_description);\n }\n }\n );\n }}\n >\n Improve Description\n \n \n Start Building\n \n
\n
\n
\n
\n );\n};\n\nexport default Home;\n","import { createRoot } from 'react-dom/client';\n\nimport '@/styles/styles.scss';\nimport Prompt from '@/landing/prompt';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nconst container = document.getElementById('root');\nconst root = createRoot(container);\n\nconst queryClient = new QueryClient({});\n\nroot.render(\n \n \n \n);\n"],"names":["Home","baseUrl","content","setContent","useLocalStorage","mutate","isLoading","useMutation","data","axios","isLongEnough","jsx","jsxs","Input","e","Button","_a","LinkButton","container","root","createRoot","queryClient","QueryClient","QueryClientProvider","Prompt"],"mappings":"+KAQA,MAAMA,EAAO,IAAM,CACX,MAAAC,EAAU,GAAG,OAAO,SAAS,QAAQ,KAAK,OAAO,SAAS,KAAK,QACnE,UACA,EAAA,CACD,GACK,CAACC,EAASC,CAAU,EAAIC,EAAgB,eAAgB,EAAE,EAC1D,CAAE,OAAAC,EAAQ,UAAAC,CAAU,EAAIC,EAAY,CACxC,YAAa,CAAC,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