PageSourceSearch

https://automateforms.ai/_next/static/chunks/app/page-dd2e022dfda6fd4e.js

js automateforms.ai collected 2026-10-05 11:49:56 UTC 17,025 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{82784:(e,t,n)=>{Promise.resolve().then(n.bind(n,69917))},65670:(e,t,n)=>{"use strict";n.d(t,{E5:()=>u,ED:()=>E,GK:()=>d,HI:()=>A,II:()=>p,Jr:()=>y,Md:()=>I,ZD:()=>v,d_:()=>w,l_:()=>P,uc:()=>T,xZ:()=>h});var a=n(35906),s=n(25848),l=n(39556),i=n(95575),r=n(76046);let o="/v1/form/template";async function c(e){return(0,i.In)({endpoint:"".concat(o,"/categories"),method:"POST",data:e})}let d=()=>{let e=(0,a.jE)();return(0,s.n)({mutationFn:c,onSuccess:()=>{e.invalidateQueries({queryKey:["form-templates-categories"]})}})};async function m(){return(0,i.In)({endpoint:"".concat(o,"/categories"),method:"GET"})}let u=e=>(0,l.I)({queryKey:["form-templates-categories"],queryFn:m,...e});async function x(e){return(0,i.In)({endpoint:"".concat(o,"/categories/").concat(e),method:"DELETE"})}let h=()=>{let e=(0,a.jE)();return(0,s.n)({mutationFn:x,onSuccess:()=>{e.invalidateQueries({queryKey:["form-templates-categories"]})}})};async function f(e){return(0,i.In)({endpoint:"".concat(o),method:"POST",data:e})}let p=()=>{let e=(0,a.jE)();return(0,s.n)({mutationFn:f,onSuccess:()=>{e.invalidateQueries({queryKey:["form-templates-categories"]})}})};async function g(e){return(0,i.In)({endpoint:"".concat(o,"/").concat(e),method:"GET"})}let y=e=>(0,l.I)({queryKey:["form-templates",e],queryFn:()=>g(e),enabled:!!e});async function b(e){return(0,i.In)({endpoint:"".concat(o,"/").concat(e),method:"DELETE"})}let w=()=>(0,s.n)({mutationFn:b});async function j(e,t){return(0,i.In)({endpoint:"".concat(o,"/").concat(e),method:"PUT",data:t})}let v=()=>(0,s.n)({mutationFn:e=>{let{templateId:t,data:n}=e;return j(t,n)}});async function N(e){return(0,i.In)({endpoint:"".concat(o,"/temp/").concat(e),method:"GET"})}let I=e=>{let t="template"===(0,r.useSearchParams)().get("formType");return(0,l.I)({queryKey:["form-templates-details",e],queryFn:()=>N(e),enabled:t})};async function q(e){return(0,i.In)({endpoint:"/v1/forms/createform/template",method:"POST",data:e})}let E=()=>{let e=(0,a.jE)();return(0,s.n)({mutationFn:q,onSuccess:()=>{e.invalidateQueries({queryKey:["usageStats"]})}})};async function F(e){return(0,i.In)({endpoint:"".concat(o,"/status/").concat(e),method:"PUT"})}let T=()=>(0,s.n)({mutationFn:F});async function k(e){return(0,i.In)({endpoint:"".concat(o,"/clone/").concat(e),method:"POST"})}let A=()=>(0,s.n)({mutationFn:k});async function S(e){return(0,i.In)({endpoint:"".concat(o,"/category/").concat(e,"/published"),method:"GET"})}let P=e=>(0,l.I)({queryKey:["public-templates",e],queryFn:()=>S(e),enabled:!!e})},61131:(e,t,n)=>{"use strict";n.d(t,{$d:()=>y,A5:()=>p,B3:()=>u,DM:()=>d,hR:()=>o,tn:()=>h,yG:()=>w});var a=n(39556),s=n(25848),l=n(95575);let i="/v1/wallet",r=async()=>(0,l.In)({endpoint:"/v1/wallet/plans/1",method:"GET"}),o=()=>(0,a.I)({queryKey:["wallet-plans"],queryFn:r});async function c(e){return(0,l.In)({endpoint:"".concat(i,"/balance/").concat(e),method:"GET"})}let d=e=>(0,a.I)({queryKey:["wallet-balance",e],queryFn:()=>c(e),enabled:!!e});async function m(e){let{workspaceId:t,orderData:n}=e;return(0,l.In)({endpoint:"".concat(i,"/create-order/").concat(t),method:"POST",data:n})}let u=()=>(0,s.n)({mutationFn:m});async function x(e){let{workspaceId:t,orderData:n}=e;return(0,l.In)({endpoint:"/v1/subscription/purchase",method:"POST",data:n})}let h=()=>(0,s.n)({mutationFn:x}),f=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,l.In)({endpoint:"/v1/wallet/transactions/".concat(e,"?limit=").concat(t,"&offset=").concat(n),method:"GET"})},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=(t-1)*n;return(0,a.I)({queryKey:["wallet-transactions",e,t,n],queryFn:()=>f(e,n,s),enabled:!!e})};async function g(e){let{workspaceId:t,paymentData:n}=e;return(0,l.In)({endpoint:"/v1/wallet/verify-payment/".concat(t),method:"POST",data:n})}let y=()=>(0,s.n)({mutationFn:g});async function b(e){let{moduleId:t,planDuration:n}=e;return(0,l.In)({endpoint:"/v1/subscription/upgrade-preview?module_id=".concat(t,"&plan_duration=").concat(n),method:"GET"})}let w=function(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,a.I)({queryKey:["upgrade-preview",e,t],queryFn:()=>b({moduleId:e,planDuration:t}),enabled:!!e&&!!t&&n})}},69917:(e,t,n)=>{"use strict";n.d(t,{default:()=>I});var a=n(95155),s=n(12115),l=n(76046),i=n(5565);function r(){return(0,a.jsx)("section",{className:"py-20 bg-gray-50",id:"features",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 max-w-7xl",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center mb-16",children:[(0,a.jsx)("h2",{className:"text-3xl font-bold text-center",children:"Features"}),(0,a.jsx)(i.default,{src:"/underline.png",alt:"Underline",className:"w-32 max-w-full",width:100,height:100,qual
1ity:100})]}),(0,a.jsx)("div",{className:"grid grid-cols-4 max-[992px]:grid-cols-2 max-[540px]:grid-cols-1 gap-8",children:[{title:"Logic based forms",description:"Use conditional logic to show or hide form elements based on user input.",icon:"/logic.png"},{title:"Integrations",description:"Integrate with Google Sheets, SharePoint and more.",icon:"/integration.png"},{title:"Team collaboration",description:"Collaborate with your team to design and manage forms effectively.",icon:"/team.png"},{title:"Pre-built templates",description:"Choose from professionally designed templates for quick starts.",icon:"/templates.png"}].map((e,t)=>(0,a.jsxs)("div",{className:"bg-white p-6 rounded-lg shadow-sm text-center border",children:[(0,a.jsx)("div",{className:"flex items-center justify-center mb-4",children:(0,a.jsx)(i.default,{src:e.icon,alt:e.title,className:"w-auto h-24",height:500,width:500,quality:100})}),(0,a.jsx)("h3",{className:"text-xl font-semibold mb-2 text-left",children:e.title}),(0,a.jsx)("p",{className:"text-gray-600 text-left",children:e.description})]},t))})]})})}function o(){return(0,a.jsx)("section",{className:"py-20 bg-white",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 max-w-7xl",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center mb-16",children:[(0,a.jsx)("h2",{className:"text-3xl font-bold text-center",children:"Our Testimonials"}),(0,a.jsx)(i.default,{src:"/underline.png",alt:"",className:"w-32 max-w-full",width:100,height:100,quality:100})]}),(0,a.jsx)("div",{className:"grid grid-cols-4 max-[992px]:grid-cols-2 max-[540px]:grid-cols-1 gap-8 mt-12",children:[{name:"Alex Mathew",role:"Product Manager",image:"/client1.png",text:"I love creating forms and surveys with this tool. It makes my job a game changer."},{name:"Hardeep Singh",role:"Designer",image:"/client2.png",text:"Best solution to track and manage multiple forms. Highly recommended!"},{name:"Clara",role:"Developer",image:"/client3.png",text:"The AI-powered forms and analytics make my work so much easier."},{name:"Sarah",role:"Marketing Lead",image:"/client4.png",text:"Form analytics helps us make data-driven decisions quickly."}].map((e,t)=>(0,a.jsxs)("div",{className:"text-start shadow-md py-6 px-4 rounded border",children:[(0,a.jsx)("div",{className:"w-20 h-20  mb-4 relative rounded-md overflow-hidden",children:(0,a.jsx)(i.default,{src:e.image,alt:e.name,fill:!0,className:"object-cover"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:e.name}),(0,a.jsx)("p",{className:"text-gray-600 text-sm mb-3",children:e.role}),(0,a.jsx)("p",{className:"text-gray-700",children:e.text})]},t))})]})})}var c=n(28216),d=n(53474),m=n(89205),u=n(17032);let x=[c.A,d.A,m.A,u.A];function h(){return(0,a.jsx)("section",{className:"py-20 bg-gray-50",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 max-w-7xl",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center mb-16",children:[(0,a.jsxs)("h2",{className:"text-3xl font-bold text-center",children:["Why Choose ",(0,a.jsx)("br",{})," Automate Forms"]}),(0,a.jsx)(i.default,{src:"/underline.png",alt:"Underline",className:"w-32 max-w-full",width:100,height:100,quality:100})]}),(0,a.jsx)("div",{className:"grid grid-cols-4 max-[992px]:grid-cols-2 max-[540px]:grid-cols-1 gap-8",children:[{title:"Easy to use",description:"Build and customize forms with our intuitive drag-and-drop interface."},{title:"Advanced Features",description:"Get access to AI-powered form building, conditional logic, and more."},{title:"Analytics & Insights",description:"Track form performance and get detailed insights about responses."},{title:"Affordable Pricing",description:"Get enterprise-level features at budget-friendly prices."}].map((e,t)=>{let n=x[t];return(0,a.jsxs)("div",{className:"bg-white p-6 rounded-lg shadow-sm border",children:[(0,a.jsx)("div",{className:"w-16 h-16 mb-4 flex items-center justify-center rounded-lg bg-green-100",children:(0,a.jsx)(n,{className:"w-8 h-8 text-green-700"})}),(0,a.jsx)("h3",{className:"text-xl font-semibold mb-2",children:e.title}),(0,a.jsx)("p",{className:"text-gray-600",children:e.description})]},t)})})]})})}var f=n(29130);function p(){return(0,a.jsx)("section",{className:"py-20 bg-white",id:"faq",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 max-w-7xl",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center mb-8",children:[(0,a.jsx)("h2",{className:"text-3xl font-bold text-center mb-2",children:"Frequently asked questions"}),(0,a.jsx)(i.default,{src:"/underline.png",alt:"",className:"w-40 max-w-full",width:160,height:16,quality:100})]}),(0,a.jsx)("div",{className:"max-w-2xl mx-auto flex flex-col gap-6",children:(0,a.jsx)(f.nD,{type:"single",collapsible:!0,defaultValue:"item-0",children:[{question:"Is Automate forms free ?",answer:"Yes, we have a free plan as well but you can just use some limited features of automate forms."},{question:"What types of forms can I create ?",answer:"You can create any type of form including contact forms, surveys, feedback forms, registration forms, and more. We offer pre-built templates to help you get started quickly."},{question:"Can I see analytics for my forms ?",answer:"Yes, all plans include basic analytics. Premium plans offer advanced analytics with detailed insights about form submissions, user behavior, and conversion rates."}].map((e,t)=>(0,a.jsxs)(f.As,{value:"item-".concat(t),className:"bg-white rounded-2xl shadow-sm border border-gray-100 mb-2",children:[(0,a.jsx)(f.$m,{className:"flex items-center px-6 py-5 text-lg font-semibold text-left data-[state=open]:rounded-t-2xl rounded-2xl transition-all",style:{boxShadow:"none"},children:e.question}),(0,a.jsx)(f.ub,{className:"px-6 pb-5 pt-0 text-gray-500 text-base",children:e.answer})]},t))})})]})})}var g=n(71962),y=n(65670);function b(e){var t,n;let{isAuthenticated:r}
1=e,o=(0,l.useRouter)(),[c,d]=(0,s.useState)(null),{data:m}=(0,y.E5)(),{data:u}=(0,y.l_)(c||""),x=(null==m?void 0:null===(t=m.data)||void 0===t?void 0:t.categories)||[],h=(null==u?void 0:null===(n=u.data)||void 0===n?void 0:n.templates)||[];return(0,s.useEffect)(()=>{x.length>0&&!c&&d(x[0].id)},[x,c]),(0,a.jsx)("section",{className:"py-20 bg-white",id:"templates",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 max-w-7xl",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center mb-8",children:[(0,a.jsx)("h2",{className:"text-3xl font-bold text-center",children:"Pre-built templates"}),(0,a.jsx)(i.default,{src:"/underline.png",alt:"",className:"w-40 max-w-full",width:160,height:16,quality:100})]}),(0,a.jsx)("div",{className:"flex flex-wrap justify-center gap-4 mb-12",children:x.map((e,t)=>(0,a.jsx)("button",{onClick:()=>d(e.id),className:"px-7 py-2 rounded-full font-semibold transition-colors text-base focus:outline-none focus:ring-2 focus:ring-green-700 focus:ring-offset-2 ".concat(c===e.id?"bg-green-700 text-white":"bg-white border border-gray-400 text-gray-700 hover:bg-green-50"),children:e.name},e.id))}),(0,a.jsx)("div",{className:"grid max-[500px]:grid-cols-1 max-[768px]:grid-cols-2 grid-cols-3 gap-10 mb-8 place-items-center",children:h.slice(0,3).map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow p-6 flex flex-col items-center w-full max-w-xs",children:[(0,a.jsx)("div",{className:"w-full h-64 bg-gray-100 rounded-lg overflow-hidden mb-6 flex items-center justify-center",children:(0,a.jsx)(i.default,{src:e.image_url,alt:e.name,width:320,height:256,className:"object-cover w-full h-full"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:e.name}),(0,a.jsx)("p",{className:"text-gray-600 text-sm mb-4",children:e.description})]},e.id))}),(0,a.jsx)("div",{className:"text-center mt-8",children:(0,a.jsx)("button",{onClick:()=>{r?o.push("/home/all-templates"):o.push("/login")},className:"text-green-700 font-bold underline text-xl",children:"View all"})})]})})}var w=n(35297);let j=e=>{let{isAuthenticated:t,handleButtonClick:n}=e,s=(0,l.useRouter)();return(0,a.jsx)("section",{className:"bg-white pt-36 pb-20",id:"home",children:(0,a.jsx)("div",{className:"mx-auto px-4 max-w-7xl",children:(0,a.jsxs)("div",{className:"flex flex-row max-[992px]:flex-col items-center justify-between gap-y-4",children:[(0,a.jsxs)("div",{className:"min-[992px]:w-1/2 pl-6   w-full flex flex-col items-start text-start max-[768px]:items-center max-[768px]:text-center max-[768px]:pl-0",children:[(0,a.jsx)("div",{className:"mb-2 mt-2 ",children:(0,a.jsx)("span",{className:"text-green-700 font-bold text-lg",children:"Easy to use"})}),(0,a.jsx)("div",{className:"flex items-center max-[768px]:justify-center  w-full mb-2",children:(0,a.jsx)(i.default,{src:"/Flow.gif",width:100,height:100,quality:100,alt:"template icon",className:"w-10 h-10",unoptimized:!0})}),(0,a.jsxs)("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold leading-tight mb-2",children:[(0,a.jsx)("span",{className:"text-green-700",children:"Forms"})," Made Simple.",(0,a.jsx)("br",{}),"Results Made",(0,a.jsx)("br",{}),"Powerful."]}),(0,a.jsx)("p",{className:"text-base sm:text-lg md:text-xl text-gray-600 mb-6 mt-2",children:"Design stunning forms, automate responses, and analyze insights—all in one place."}),(0,a.jsxs)("div",{className:"flex flex-col xs:flex-row gap-4 w-full max-w-xs mx-auto md:mx-0 md:flex-row md:max-w-none md:w-auto mb-8",children:[(0,a.jsx)("button",{onClick:n,className:"bg-green-700 text-white px-8 py-3 rounded-full text-lg font-bold shadow-md hover:bg-green-800 transition-colors w-full md:w-auto",children:t?"Go to Dashboard":"Log in"}),(0,a.jsx)("button",{onClick:()=>s.push("/signup"),className:"max-[1023px]:block hidden border-2 border-green-700 text-green-700 px-8 py-3 rounded-full text-lg font-bold hover:bg-green-50 transition-colors w-full md:w-auto",children:"Try for free"})]})]}),(0,a.jsx)("div",{className:"md:w-1/2 mt-8 md:mt-0 flex justify-center w-full",children:(0,a.jsx)("img",{src:"/hero-image.png",alt:"Form Builder Interface",className:"w-full max-w-xl h-auto drop-shadow-xl"})})]})})})};var v=n(58384),N=n(95575);
1function I(){let e=(0,l.useRouter)(),[t,n]=(0,s.useState)(!1),[i,c]=(0,s.useState)(!0);(0,s.useEffect)(()=>{(async()=>{try{let e=await (0,N.T5)();n(e)}catch(e){console.error("Error checking authentication:",e),n(!1)}finally{c(!1)}})()},[]);let d=()=>{t?e.push("/home"):e.push("/login")};return i?(0,a.jsx)("div",{className:"min-h-screen bg-white flex items-center justify-center",children:(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("p",{className:"text-lg",children:"Loading..."})})}):(0,a.jsxs)("div",{className:"min-h-screen bg-white",children:[(0,a.jsx)(w.A,{}),(0,a.jsx)(j,{isAuthenticated:t,handleButtonClick:d}),(0,a.jsx)(r,{}),(0,a.jsx)(o,{}),(0,a.jsx)(h,{}),(0,a.jsx)(g.A,{isAuthenticated:t}),(0,a.jsx)(b,{isAuthenticated:t}),(0,a.jsx)(p,{}),(0,a.jsx)(v.A,{isAuthenticated:t,handleButtonClick:d})]})}},29130:(e,t,n)=>{"use strict";n.d(t,{$m:()=>d,As:()=>c,nD:()=>o,ub:()=>m});var a=n(95155),s=n(12115),l=n(69239),i=n(32645),r=n(21567);let o=l.bL,c=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(l.q7,{ref:t,className:(0,r.cn)("border-b",n),...s})});c.displayName="AccordionItem";let d=s.forwardRef((e,t)=>{let{className:n,children:s,...o}=e;return(0,a.jsx)(l.Y9,{className:"flex",children:(0,a.jsxs)(l.l9,{ref:t,className:(0,r.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",n),...o,children:[s,(0,a.jsx)(i.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});d.displayName=l.l9.displayName;let m=s.forwardRef((e,t)=>{let{className:n,children:s,...i}=e;return(0,a.jsx)(l.UC,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...i,children:(0,a.jsx)("div",{className:(0,r.cn)("pb-4 pt-0",n),children:s})})});m.displayName=l.UC.displayName}},e=>{var t=t=>e(e.s=t);e.O(0,[5772,5037,7527,8249,9556,5565,8173,2859,5623,9219,7846,9992,1962,8441,1517,7358],()=>t(82784)),_N_E=e.O()}]);

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.