"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2054],{12661:function(e,t,a){a.d(t,{N:function(){return x}});var n=a(85893),i=a(67111),s=a(36822),l=a(22715),r=a(53640),o=a(60076),c=a(69587),d=a(63931),m=a(69397),u=a(67294);let x=e=>{let{open:t,handleClose:a}=e,[x,h]=(0,u.useState)(""),p=e=>{h(e.target.value)};return(0,n.jsx)(i.Z,{open:t,onClose:a,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:"h-full w-full grid place-items-center",children:(0,n.jsx)(s.Z,{className:"absolute w-[90%] sm:w-[80%] md:w-[60%] lg:w-[60%] h-[80%] bg-white shadow-md p-4 m-auto",children:(0,n.jsx)("div",{className:"m-auto w-[90%] sm:w-[80%] md:w-[60%] lg:w-[40%]",children:(0,n.jsxs)("h2",{className:"text-center",children:["Please share your details, we will get back to you soon.",(0,n.jsx)("form",{children:(0,n.jsxs)("div",{className:"grid m-4 mt-8 gap-4 text-center",children:[(0,n.jsx)(l.Z,{id:"outlined-basic",label:"Your Name",variant:"outlined"}),(0,n.jsx)(l.Z,{id:"outlined-basic",label:"Phone No/ Email ID",variant:"outlined"}),(0,n.jsx)(l.Z,{id:"outlined-basic",label:"Your Industry",variant:"outlined"}),(0,n.jsxs)(r.Z,{fullWidth:!0,children:[(0,n.jsx)(o.Z,{id:"profile-select-label",children:"Your Profile"}),(0,n.jsxs)(c.Z,{labelId:"profile-select-label",id:"profile-select",value:x,label:"Your Profile",onChange:p,children:[(0,n.jsx)(d.Z,{value:"",children:(0,n.jsx)("em",{children:" "})}),(0,n.jsx)(d.Z,{value:10,children:"Marketing"}),(0,n.jsx)(d.Z,{value:20,children:"Designer"}),(0,n.jsx)(d.Z,{value:30,children:"Others"})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(m.Z,{variant:"contained",size:"medium",children:"Submit"}),(0,n.jsx)(m.Z,{variant:"outlined",size:"medium",onClick:a,children:"Close"})]})]})})]})})})})}},20093:function(e,t,a){a.d(t,{Vq:function(){return s},Zm:function(){return i},nI:function(){return r},yu:function(){return l}});var n=a(85893);a(67294);let i=e=>{let{width:t,height:a,fill:i="#002366"}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:a,fill:i,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},s=e=>{let{width:t,height:a,fill:i="#002366"}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:a,fill:i,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M24 12.07C24 5.41 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.1 10.13 24v-8.44H7.08v-3.49h3.04V9.41c0-3.02 1.8-4.7 4.54-4.7 1.31 0 2.68.24 2.68.24v2.97h-1.5c-1.5 0-1.96.93-1.96 1.89v2.26h3.32l-.53 3.5h-2.8V24C19.62 23.1 24 18.1 24 12.07"})})},l=e=>{let{width:t,height:a,fill:i="#002366"}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:a,fill:i,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M16.98 0a6.9 6.9 0 0 1 5.08 1.98A6.94 6.94 0 0 1 24 7.02v9.96c0 2.08-.68 3.87-1.98 5.13A7.14 7.14 0 0 1 16.94 24H7.06a7.06 7.06 0 0 1-5.03-1.89A6.96 6.96 0 0 1 0 16.94V7.02C0 2.8 2.8 0 7.02 0h9.96zm.05 2.23H7.06c-1.45 0-2.7.43-3.53 1.25a4.82 4.82 0 0 0-1.3 3.54v9.92c0 1.5.43 2.7 1.3 3.58a5 5 0 0 0 3.53 1.25h9.88a5 5 0 0 0 3.53-1.25 4.73 4.73 0 0 0 1.4-3.54V7.02a5 5 0 0 0-1.3-3.49 4.82 4.82 0 0 0-3.54-1.3zM12 5.76c3.39 0 6.2 2.8 6.2 6.2a6.2 6.2 0 0 1-12.4 0 6.2 6.2 0 0 1 6.2-6.2zm0 2.22a3.99 3.99 0 0 0-3.97 3.97A3.99 3.99 0 0 0 12 15.92a3.99 3.99 0 0 0 3.97-3.97A3.99 3.99 0 0 0 12 7.98zm6.44-3.77a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8z"})})},r=e=>{let{width:t,height:a,fill:i="#002366"}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:a,fill:i,viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M22.23 0H1.77C.8 0 0 .77 0 1.72v20.56C0 23.23.8 24 1.77 24h20.46c.98 0 1.77-.77 1.77-1.72V1.72C24 .77 23.2 0 22.23 0zM7.27 20.1H3.65V9.24h3.62V20.1zM5.47 7.76h-.03c-1.22 0-2-.83-2-1.87 0-1.06.8-1.87 2.05-1.87 1.24 0 2 .8 2.02 1.87 0 1.04-.78 1.87-2.05 1.87zM20.34 20.1h-3.63v-5.8c0-1.45-.52-2.45-1.83-2.45-1 0-1.6.67-1.87 1.32-.1.23-.11.55-.11.88v6.05H9.28s.05-9.82 0-10.84h3.63v1.54a3.6 3.6 0 0 1 3.26-1.8c2.39 0 4.18 1.56 4.18 4.89v6.21z"})})}},66449:function(e,t,a){a.d(t,{e:function(){return m}});var n=a(85893),i=a(60856),s=a(73682),l=a(67111),r=a(36822),o=a(69397),c=a(96486),d=a(67294);let m=e=>{let{openPayment:t,handleClosePayment:a,auth:m,purchasingPlan:u}=e,[x,h]=(0,d.useState)(!1),{userDetails:p}=m,[g,f]=(0,d.useState)({name:"",email:"",phone:""}),b=u.currency_symbol,y="INR"!==u.currency?"/api/payment/paypal/initiate-payment":"/api/payment/ccavenue/initiate-payment",j=e=>{f({...g,[e.target.name]:e.target.value})},v=(0,s.TV)(u.price,u.discount_percentage,i.Xs);return(0,n.jsx)(l.Z,{open:t,onClose:a,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:" w-[90%] h-[90%] md:w-[85%] lg:w-[70%] m-auto grid place-items-center rounded-lg",children:(0,n.jsx)("div",{className:"overflow-y-auto h-[90%]",children:(0,n.jsxs)(r.Z,{className:"rounded-lg bg-white shadow-md p-8 flex flex-col md:flex-row justify-center ",children:[(0,n.jsxs)("div",{className:"m-auto w-[90%] md:w-[60%] md:mt-0 md:p-4",children:[(0,n.jsx)("h2",{className:"m-0 font-semibold",children:"Payment"}),(0,n.jsx)("p",{children:"To finalze your subscription, kindly make the payment."}),(0,n.jsxs)("div",{className:"mt-10 flex flex-col gap-y-6 w-full justify-center",children:[(0,n.jsxs)("div",{className:"sm:col-span-full",children:[(0,n.jsx)("label",{htmlFor:"first-name",className:"block text-sm font-medium leading-6 text-gray-900",children:"Your Name / Company Name *"}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)("input",{type:"text",name:"name",id:"first-name",className:"block w-full px-2 rounded-md border-0 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:g.name,onChange:j,required:!0})})]}),(0,n.jsxs)("div",{className:"sm:col-span-full",children:[(0,n.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium leading-6 text-gray-900",children:"Email Address *"}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)("input",{id:"email",type:"email",className:"block w-full px-2 rounded-md border-0 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",name:"email",value:g.email,onChange:j,required:!0})})]}),(0,n.jsxs)("div",{className:"sm:col-span-full",children:[(0,n.jsx)("label",{htmlFor:"last-name",className:"block text-sm font-medium leading-6 text-gray-900",children:"Phone Number *"}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)("input",{type:"text",id:"last-name",className:"block w-full px-2 rounded-md border-0 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",name:"phone",value:g.phone,onChange:j,required:!0})})]})]})]}),(0,n.jsx)("div",{className:"w-[90%] md:w-[50%] m-auto md:m-0 grid items-end",children:(0,n.jsxs)("div",{className:"w-full mt-4",children:[(0,n.jsx)("div",{className:"bg-gradient-to-br from-blue-100 via-blue-150 to-blue-100 bg-opacity-15 p-2 rounded-md ",children:(0,n.jsxs)("div",{className:"pl-[20px]",children:[(0,n.jsxs)("p",{className:"mb-0 font-semibold",children:[(0,n.jsx)("span",{className:"font-light",children:"Plan: "}),null==u?void 0:u.name]}),(0,n.jsxs)("p",{className:"mt-0 mb-0 font-semibold",children:[(0,n.jsx)("span",{className:"font-light",children:"Credits: "}),null==u?void 0:u.credits]}),(0,n.jsxs)("p",{className:"mt-0 mb-0 font-semibold",children:[(0,n.jsx)("span",{className:"font-light",children:"Validity: "}),null==u?void 0:u.validity," days"]}),(0,n.jsx)("p",{className:"mt-0 text-sm text-gray-500",children:"Your remaining credits and validity will be carried forward."}),(0,n.jsx)("p",{className:"mb-0",children:"You are paying,"}),(0,n.jsxs)("p",{className:"font-semibold text-[2.7rem] m-0",children:[b," ","$"===b?(0,n.jsxs)(n.Fragment,{children:[(0,c.toInteger)(u.final_price),(0,n.jsx)("span",{className:"text-[1.5rem] font-medium",children:(0,c.toInteger)(100*u.final_price)%100}),(0,n.jsxs)("span",{className:"text-[1.5rem] font-medium",children:["+ GST ",b,v.gstValue]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,c.toInteger)(u.final_price),(0,n.jsx)("span",{className:"text-[1.5rem] font-medium",children:"00"}),(0,n.jsxs)("span",{className:"text-[1.5rem] font-medium",children:["+ GST ",b,v.gstValue]})]})]})]})}),(0,n.jsx)("div",{className:"grid my-2 md:py-3",children:(0,n.jsxs)("div",{className:"justify-end flex gap-4",children:[(0,n.jsx)(o.Z,{variant:"outlined",size:"large",className:"w-[3/4] ",onClick:a,children:"Close"}),(0,n.jsxs)("form",{method:"POST",name:"customerData",children:[(0,n.jsx)("input",{hidden:!0,value:null==u?void 0:u.id,name:"planId",readOnly:!0}),(0,n.jsx)("input",{hidden:!0,value:g.name,name:"username",readOnly:!0}),(0,n.jsx)("input",{hidden:!0,value:g.email,name:"userMail",readOnly:!0}),(0,n.jsx)("input",{hidden:!0,value:g.phone,name:"userPhone",readOnly:!0}),(0,n.jsx)("input",{hidden:!0,value:m.token,name:"authToken",readOnly:!0}),(0,n.jsxs)(o.Z,{type:"submit",variant:"contained",size:"large",className:"w-[3/4] ",disabled:""===g.name||""===g.email||""===g.phone||!g.email.includes("@"),formAction:y,children:["Pay Now ",b," ",v.roundedTotal," /-"]})]})]})})]})})]})})})}},59044:function(e,t,a){a.d(t,{w:function(){return A}});var n=a(85893),i=a(99487),s=a(74346),l=a(25675),r=a.n(l),o=a(11163),c=a(67294),d=a(12661),m=a(66449);let u=e=>{let{plan:t,currency:a,frequency:i,buttonLabel:s,bgColor:l,onBuyNow:r}=e;return(0,n.jsxs)("div",{className:"text-white flex flex-col items-center lg:items-start gap-4 h-auto rounded-lg lg:rounded-none hover:scale-105 bg-".concat(l," transition-all"),children:[(0,n.jsxs)("div",{className:"p-4 grid gap-2 w-full",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("h1",{className:"font-light text-2xl w-auto pt-0 mt-5 mb-1 underline underline-offset-[12px] decoration-white decoration-4",children:t.name}),t.discount_percentage>0&&(0,n.jsx)("span",{className:"bg-white text-blue-500 p-1 rounded-md text-sm",children:"".concat(t.discount_percentage," % Off")})]}),(0,n.jsxs)("p",{className:"text-4xl font-bold pt-0 mt-2 mb-0",children:[a,"Custom"===t.name?"Custom":t.final_price,(0,n.jsxs)("span",{className:"text-xl",children:["/",i]})]}),(0,n.jsx)("p",{className:"m-1 mb-0",children:(0,n.jsx)("span",{className:"text-xl line-through",children:t.price>0?(0,n.jsxs)(n.Fragment,{children:[a,t.price," /",i]}):(0,n.jsx)("p",{})})})]}),(0,n.jsx)("hr",{className:"mt-0 w-[90%]"}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("div",{className:"lg:ml-4 w-full flex justify-center lg:justify-start",children:(0,n.jsx)("button",{className:"text-base py-3 px-6 rounded-lg outline-0 border-none flex items-center \n            ".concat(t.is_active?"cursor-pointer":"cursor-not-allowed"," bg-[#F9CA00]"),onClick:()=>r(t),disabled:!t.is_active,children:t.is_active?s:"Coming soon"})}),(0,n.jsxs)("ul",{className:"grid gap-2 p-8 pt-0 w-full justify-center lg:justify-start",children:[t.credits>0&&(0,n.jsxs)("li",{children:[t.credits," credits"]}),t.validity>0&&(0,n.jsxs)("li",{children:["Validity ",t.validity," days"]}),t.features.map((e,a)=>(0,n.jsx)("li",{className:"text-sm p-0 m-0",children:e},"price-feature-".concat(t.name,"-").concat(a)))]})]})]},"pricing-".concat(t.name))};var x=a(314),h=a(98396),p=a(72852),g=a(64666),f=a(37645),b=a(35713),y=a(21023),j=a(69397);let v=e=>{let{plan:t,currency:a,frequency:i,buttonLabel:s,onBuyNow:l,showTrialButton:r,onTrialClick:o}=e,[d,m]=(0,c.useState)(""),[u,x]=(0,c.useState)(""),[h,p]=(0,c.useState)("contained");return(0,c.useEffect)(()=>{"M101"===t.id||"M001"===t.id?(p("outlined"),x("white"),m("autotext-primary")):(p("contained"),x("black"),m("white"))},[t.id,i]),(0,n.jsxs)("div",{className:"text-".concat(u," bg-").concat(d," mr-7 px-2 border border-gray-500 border-solid flex flex-col items-center w-full gap-4 h-auto rounded-lg hover:scale-105 transition-all"),children:[(0,n.jsxs)("div",{className:"p-4 pt-0 grid gap-2 w-full",children:[(0,n.jsx)("div",{className:"flex justify-between items-center",children:(0,n.jsxs)("h1",{className:"font-light text-lg md:text-xl lg:text-2xl w-auto pt-0 mt-5 mb-1",children:[t.name," Plan"]})}),(0,n.jsxs)("p",{className:"text-2xl md:text-3xl lg:text-4xl font-bold pt-0 mt-2 mb-0",children:[a,"Custom"===t.name?"Custom":t.price,(0,n.jsxs)("span",{className:"text-sm font-normal",children:["/",i.toLowerCase()]})]})]}),(0,n.jsx)("hr",{className:"my-0 w-[90%] bg-".concat(u)}),(0,n.jsxs)("div",{className:"w-full flex justify-center",children:[(0,n.jsx)(j.Z,{variant:h,className:"outlined"===h?"text-xs md:text-sm bg-${} px-3 bg-white w-full mx-3 mb-4":"text-xs md:text-sm bg-${} px-3 w-full mx-3 mb-4",onClick:()=>l(t),sx:{textTransform:"initial"},size:"large",children:t.is_active?s:"Coming soon"}),r&&"Custom"!==t.name&&"Test"!==t.name&&(0,n.jsx)(j.Z,{variant:h,className:"outlined"===h?"text-xs md:text-sm bg-${} px-3 bg-white w-full mx-3 mb-4":"text-xs md:text-sm bg-${} px-3 w-full mx-3 mb-4",onClick:o,sx:{textTransform:"initial"},size:"large",children:"7 Days Free Trial"})]})]},"pricing-".concat(t.name))};var w=a(70385),N=a(39082),k=a(60856),C=a(1459),S=a(91444);let A=e=>{var t,a,l,A;let{paidOnly:F}=e,P=(0,h.Z)("(max-width:600px)"),[M,T]=(0,c.useState)(),[Z,B]=(0,c.useState)("monthly"),[E,D]=(0,c.useState)(!1),[I,z]=(0,c.useState)(!1),[_,Y]=(0,c.useState)(!1),[L,O]=(0,c.useState)(),[R,V]=(0,c.useState)(),q=()=>D(!1),[H,G]=(0,c.useState)("₹"),$=(0,o.useRouter)(),U=(0,s.aC)(),X=(0,N.DY)(),[W,K]=(0,c.useState)("INR");(0,c.useEffect)(()=>{X.brandSubscription&&X.brandSubscription.plan&&"USD"===X.brandSubscription.plan.currency?K("USD"):K("INR"),X.brandSubscription&&X.brandSubscription.plan&&"$"===X.brandSubscription.plan.currency?G("$"):G("₹")},[X.brandSubscription,X.brandSubscription.plan,null===(t=X.brandSubscription.plan)||void 0===t?void 0:t.currency,null===(a=X.brandSubscription.plan)||void 0===a?void 0:a.currency_symbol]);let J=async()=>{try{let e=await fetch("".concat(i.v2,"/plan"));if(!e.ok)throw Error("Network response was not ok");let t=await e.json();T(t.data)}catch(a){console.error("Failed to fetch plans:",a)}};(0,c.useEffect)(()=>{J()},[]),(0,c.useEffect)(()=>{if(M){var e=M.monthly.filter(e=>{if(e.currency===W)return e}),t=M.yearly.filter(e=>{if(e.currency===W)return e});G(e[0].currency_symbol),V({test:M.test,free:M.free,monthly:e,yearly:t,custom:M.custom})}},[M,W]);let Q=k.aX.includes(null===(l=U.user)||void 0===l?void 0:l.email),ee=e=>{K(e.target.value)},[et,ea]=(0,c.useState)(!1),en=()=>{ea(!1)},[ei,es]=(0,c.useState)(null),[el,er]=(0,c.useState)(null),eo=e=>{U.signedIn?(ea(!0),es(e),er(e)):$.push({pathname:"/sign-in",query:{planId:null==e?void 0:e.id}})},ec=()=>{ei&&ei.id&&$.push({pathname:"/payment",query:{planId:ei.id}})},ed=()=>{el&&el.id&&$.push({pathname:"/subscribe",query:{planId:el.id}})},em=X.brandSubscription.planType===w.PaymentType.RECURRING,eu=()=>{B(e=>"monthly"===e?"yearly":"monthly")},[ex,eh]=(0,c.useState)(!1),ep=()=>{eh(!0),(0,C.t)(U.token||"",e=>{(0,S.Am)("Basic Trial Plan Subscribed Successfully"),eh(!1),setTimeout(()=>{window.location.reload()},2e3)},e=>{(0,S.Am)(e.error),console.error("Error subscribing to trial:",e),eh(!1)})};return(0,n.jsxs)(n.Fragment,{children:[ex&&(0,n.jsx)(x.Z,{open:ex}),(0,n.jsx)("div",{className:"flex bg-white p-1 m-2 pt-0 mt-0 relative justify-center",children:"/pricing"===$.pathname&&(0,n.jsx)(r(),{src:"/img/gold.png",className:"absolute right-[-1rem] top-[-2.5rem]",width:"50",height:"50",alt:"wave",loading:"eager"})}),(0,n.jsxs)("div",{className:"flex justify-between pr-0 sm:pr-4 mt-0",children:[(0,n.jsx)("p",{className:"text-xxs sm:text-xl text-gray-500"}),(0,n.jsxs)("div",{className:"items-center my-auto",children:[(0,n.jsx)(p.Z,{checked:"monthly"===Z,onChange:eu,color:"primary",size:"small"}),(0,n.jsxs)("span",{className:"text-xxs xs:text-xs sm:text-sm md:text-base text-[#718096] font-medium leading-5",children:["Billed ","monthly"===Z?"Monthly":"Yearly"]})]})]}),(0,n.jsx)("div",{className:"w-fit justify-center absolute right-10 sm:right-14 mt-2 sm:mt-6",children:(0,n.jsxs)("select",{id:"dropdown",value:W,onChange:ee,className:"bg-gray-50 border sm:w-32 border-gray-300 text-gray-900 text-xs sm:text-sm rounded-lg focus:ring-autotext-primary focus:border-autotext-primary block p-2.5 hover:cursor-pointer",children:[(0,n.jsx)("option",{value:"INR",children:"INR (₹)"}),(0,n.jsx)("option",{value:"USD",children:"USD ($)"})]})}),(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-7 mt-4 md:gap-12 lg:gap-8 xl:gap-4 mx-auto justify-center items-center sm:justify-between lg:w-[90%] xl:w-full",children:[R&&(0,n.jsxs)(n.Fragment,{children:[!F&&(0,n.jsx)(u,{plan:R.free,currency:H,frequency:"monthly"===Z?"month":"Year",buttonLabel:"Try now",bgColor:"autotext-primary",onBuyNow(){U.signedIn?$.push("/"):$.push("/sign-in")}},0),R[Z].map((e,t)=>{var a,i,s;return e.is_visible?(0,n.jsx)(v,{plan:e,currency:H,frequency:"monthly"===Z?"Month":"Year",buttonLabel:"Buy now",onBuyNow:e=>eo(e),showTrialButton:!((null===(a=X.brandSubscription)||void 0===a?void 0:a.availedTrial)||k.Bh.Basic.includes(null===(i=X.brandSubscription)||void 0===i?void 0:null===(s=i.plan)||void 0===s?void 0:s.name)),onTrialClick:ep},t+1):(0,n.jsx)(n.Fragment,{})}),(0,n.jsx)(v,{plan:R.custom,currency:H,frequency:"monthly"===Z?"Month":"Year",buttonLabel:"Contact sales",bgColor:"autotext-primary",onBuyNow:()=>$.push("https://www.autotext.app/contact-us")},(null===(A=R[Z])||void 0===A?void 0:A.length)+1)]}),Q&&R&&R.test.length>0&&R.test.filter(e=>e.currency===W).map((e,t)=>(0,n.jsx)(v,{plan:e,currency:H,frequency:"weekly",buttonLabel:"Test",bgColor:"autotext-primary",onBuyNow:e=>eo(e)},"test-".concat(t))),(0,n.jsxs)(g.Z,{open:et,onClose:en,className:"p-4 text-center","aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{style:{backdropFilter:P?"none":"blur(50px)"}},children:[(0,n.jsxs)(f.Z,{id:"alert-dialog-title",children:["Select the mode of",(0,n.jsx)("br",{})," plan payment"]}),(0,n.jsx)(b.Z,{children:em?(0,n.jsx)(y.Z,{title:(0,n.jsx)("span",{className:"text-sm font-normal text-white ",children:"You are already Subscribe the Product if you want to cancel or update then go to above section."}),classes:{popper:"bg-customBlue rounded-xl p-0 m-0",tooltip:"bg-customBlue text-white text-md rounded-xl m-1"},children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)(j.Z,{variant:"outlined",className:"text-xs md:text-sm px-3 my-2 ",onClick:ec,sx:{textTransform:"initial"},size:"medium",disabled:em,children:"One-Time Payment"}),(0,n.jsxs)(j.Z,{variant:"contained",className:"text-xs md:text-sm px-3 my-2 ",onClick:ed,sx:{textTransform:"initial"},size:"medium",disabled:em,children:["monthly"===Z?"Monthly":"Yearly"," ","Subscription"]})]})}):(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)(j.Z,{variant:"outlined",className:"text-xs md:text-sm px-3 my-2 ",onClick:ec,sx:{textTransform:"initial"},size:"medium",disabled:em,children:"One-Time Payment"}),(0,n.jsxs)(j.Z,{variant:"contained",className:"text-xs md:text-sm px-3 my-2 ",onClick:ed,sx:{textTransform:"initial"},size:"medium",disabled:em,children:["monthly"===Z?"Monthly":"Yearly"," ","Subscription"]})]})})]})]}),(0,n.jsx)(d.N,{open:E,handleClose:q}),_&&(0,n.jsx)(m.e,{openPayment:_,handleClosePayment:()=>Y(!1),auth:U,purchasingPlan:L})]})}},60856:function(e,t,a){var n,i;a.d(t,{Bh:function(){return r},G2:function(){return o},K$:function(){return d},Kh:function(){return s},Mz:function(){return c},UG:function(){return w},VB:function(){return N},Xs:function(){return u},aD:function(){return l},aX:function(){return v},aZ:function(){return C},bB:function(){return g},b_:function(){return p},h0:function(){return function e(t,a){if(t===a)return!0;if(!(t instanceof Object)||!(a instanceof Object)||t.constructor!==a.constructor)return!1;for(var n in t)if(t.hasOwnProperty(n)&&(!a.hasOwnProperty(n)||t[n]!==a[n]&&("object"!=typeof t[n]||!e(t[n],a[n]))))return!1;for(n in a)if(a.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}},je:function(){return n},mI:function(){return m},nc:function(){return b},s6:function(){return j},tw:function(){return x},vp:function(){return y},w3:function(){return h},wc:function(){return f}});let s=["Friendly","Lovely","Relaxed","Professional","Bold","Political","Academic","Adventurous","Witty","Persuasive","Empathetic"],l={Scheduled:{text:"#0E0E47",background:"#E4E4FF"},Published:{text:"#008046",background:"#D1FFEA"},Draft:{text:"#BB9200",background:"#FFF5DC"},Failed:{text:"#FC2642",background:"#FF9EAB"},Cancelled:{text:"#36454F",background:"#9CB9C4"},Unknown:{text:"	#000000",background:"#C0C0C0"}},r={Basic:"Basic",Free:"Free",Custom:"Custom",Trial:"Basic Plan Trial"},o=200,c=["MANAGER","STANDARD"],d=["ADMIN","MANAGER","STANDARD"],m=["ADMIN","MANAGER"],u=18,x=["Media and Entertainment","Engineering","Medical and Pharmaceutical","Education","Service Industry","Manufacturing","Clothing and Apparels","Jwelleries and Accessories","Politics","Social Work","Hotel and Service Industry","Tourism","Transportation","Others"],h=["M101","Y101","T001"],p=["M001","Y001"],g=["Y001","Y101"],f=["M001","M101"],b=["T001"],y=["suryansh@autotext.app","aryan@autotext.app","aastiktest@gmail.com","manaf@autotext.app","rohith@autotext.app"],j=["Individual","Professional","Agency"],v=["aastiktest@gmail.com","ritu@autotext.app","divakar@autotext.app","rohith@autotext.app","ruchika@autotext.app","suryansh@autotext.app","testautotext@gmail.com","tefod34138@chainds.com","naturefabriclove@gmail.com","jakharitu@gmail.com","rj1510358@gmail.com"],w=["(None)","Realism","Sketch","Watercolor","Oil Painting","Cartoon","Pixel Art","Digital Art","Neon Art","Pop Art","Sci-Fi","Abstract","Impressionism","Cubism","Minimalism","Surrealism","Symbolism"],N={facebook:{label:"Facebook",iconPath:"/images/facebook.png",value:"facebook_page",mediaLimit:10,mixedMediaAllowed:!1,color:"#4267B2",gradient:["#006AFF","#A7E2FF","rgba(229, 234, 252, 0.31)"]},instagram:{label:"Instagram",iconPath:"/images/instagram.png",value:"instagram_business",mediaLimit:10,mixedMediaAllowed:!0,color:"#2D5BFF",gradient:["#93AAFD","#C6D2FD","rgba(229, 234, 252, 0.31)"]},x:{label:"X",iconPath:"/images/twitter.png",value:"twitter",mediaLimit:4,mixedMediaAllowed:!0,color:"#2D5BFF",gradient:["#93AAFD","#C6D2FD","rgba(229, 234, 252, 0.31)"]},linkedin:{label:"LinkedIn",iconPath:"/images/linkedin.png",value:"linkedin",mediaLimit:9,mixedMediaAllowed:!1,color:"#26B8FF",gradient:["#0064FF","#A7E2FF","rgba(229, 234, 252, 0.31)"]},unknown:{label:"Unknown",iconPath:"/images/unknown-social.jpg",value:"unknown",mediaLimit:0,mixedMediaAllowed:!1,color:"#000000",gradient:["#93AAFD","#C6D2FD","rgba(229, 234, 252, 0.31)"]}},k={...N,facebook_page:N.facebook,facebook_group:N.facebook,instagram_business:N.instagram,twitter:N.x,linkedin:N.linkedin};function C(e){if(!e)return k.unknown;let t=e.toLowerCase(),a=k[t];return a||{...k.unknown,label:e,value:e}}(i=n||(n={}))[i.IMAGE=0]="IMAGE",i[i.TEMPLATE=1]="TEMPLATE"},1459:function(e,t,a){a.d(t,{t:function(){return i}});var n=a(99487);async function i(e,t,a){n.hi.post("/subscribe",{planId:"TB001"},{headers:{Authorization:"".concat(e)}}).then(e=>{t(e.data)}).catch(e=>{a(e.response.data)})}}}]);