1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86995],{72538:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/app/request-features",function(){return a(78527)}])},98425:function(e,t,a){"use strict";a.d(t,{Z:function(){return plancontext},C:function(){return l}});var n=a(85893),r=a(67294);let storage=e=>{sessionStorage.setItem("plan",JSON.stringify(Object.keys(e).length>0?e:{}))},sumItem=e=>{storage(e)},cartReducer=(e,t)=>{switch(t.type){case"ADD_PLAN":e.plan=t.payload.plan,e.currentpackage=t.payload.currentpackage;let a=t.payload.addon||[];return{...e,plan:e.plan,currentpackage:e.currentpackage,addon:a,domain:e.domain,duration:t.payload.duration,...sumItem(e)};case"ADD_ADDON":return e.addon=t.payload,{...e,plan:e.plan,currentpackage:e.currentpackage,addon:[...e.addon||[]],duration:e.duration,domain:e.domain,...sumItem(e)};case"REMOVE_PLAN":return e.planItem.splice(t.payload,1),{...e,planItem:[...e.planItem],...sumItem(e.planItem)};case"REMOVE_ADDON":let n=e.addon.filter(e=>(null==e?void 0:e.id)!==t.payload);return e.addon=[...n],{...e,plan:e.plan,currentpackage:e.currentpackage,addon:[...e.addon],domain:e.domain,duration:e.duration,...sumItem(e)};case"SET_DURATION":return e.duration=t.payload,{...e,plan:e.plan,currentpackage:e.currentpackage,addon:[...e.addon||[]],domain:e.domain,duration:e.duration,...sumItem(e)};case"ADD_DOMAIN":return e.domain=t.payload,{...e,plan:e.plan,currentpackage:e.currentpackage,addon:[...e.addon||[]],duration:e.duration,domain:e.domain,...sumItem(e)}}};var s=a(24996);let l=(0,r.createContext)(),i={plan:null,addon:[],duration:"",currentpackage:"",domain:{}},o={};null!==sessionStorage.getItem("plan")&&""!==sessionStorage.getItem("plan")&&(i=JSON.parse(sessionStorage.getItem("plan"))),o={plan:i.plan,addon:i.addon,duration:i.duration,currentpackage:i.currentpackage,domain:i.domain};var plancontext=e=>{let{children:t}=e,[a,i]=(0,r.useReducer)(cartReducer,o),[c,d]=(0,r.useState)([]),getAllPackagesCall=async()=>{let e=await (0,s.it)();e.success&&d(e.response)};(0,r.useEffect)(()=>{getAllPackagesCall()},[]);let u={addplan:e=>{i({type:"ADD_PLAN",payload:e})},removeplan:e=>{i({type:"REMOVE_PLAN",payload:e})},addaddons:e=>{i({type:"ADD_ADDON",payload:e})},removeaddons:e=>{i({type:"REMOVE_ADDON",payload:e})},addduration:e=>{i({type:"SET_DURATION",payload:e})},adddomain:e=>{i({type:"ADD_DOMAIN",payload:e})},allPackages:c,...a};return(0,n.jsx)(l.Provider,{value:u,children:t})}},54909:function(e,t,a){"use strict";a.d(t,{Xq:function(){return FormError},ZP:function(){return ErrorPopup},kk:function(){return SuccessMessage}});var n=a(85893);function FormError(e){let{text:t}=e;return(0,n.jsxs)("div",{className:"flex ml-1 bg-red-400 py-3 px-3 rounded items-center text-white gap-1 text-base",children:[(0,n.jsx)("span",{children:(0,n.jsx)("svg",{baseProfile:"tiny",className:"w-4 mt-[1px] h-4 fill-current",id:"Layer_1",version:"1.2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M21.171,15.398l-5.912-9.854C14.483,4.251,13.296,3.511,12,3.511s-2.483,0.74-3.259,2.031l-5.912,9.856 c-0.786,1.309-0.872,2.705-0.235,3.83C3.23,20.354,4.472,21,6,21h12c1.528,0,2.77-0.646,3.406-1.771 C22.043,18.104,21.957,16.708,21.171,15.398z M12,17.549c-0.854,0-1.55-0.695-1.55-1.549c0-0.855,0.695-1.551,1.55-1.551 s1.55,0.696,1.55,1.551C13.55,16.854,12.854,17.549,12,17.549z M13.633,10.125c-0.011,0.031-1.401,3.468-1.401,3.468 c-0.038,0.094-0.13,0.156-0.231,0.156s-0.193-0.062-0.231-0.156l-1.391-3.438C10.289,9.922,10.25,9.712,10.25,9.5 c0-0.965,0.785-1.75,1.75-1.75s1.75,0.785,1.75,1.75C13.75,9.712,13.711,9.922,13.633,10.125z"})})}),(0,n.jsx)("span",{children:t})]})}function SuccessMessage(e){let{text:t}=e;return(0,n.jsxs)("div",{className:"flex ml-1 font-semibold bg-green-600 py-3 px-3 rounded items-center text-white gap-1 text-base",children:[(0,n.jsx)("span",{children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})})}),(0,n.jsx)("span",{children:t})]})}function ErrorPopup(e){let{text:t,passclose:a,display:r}=e;return(0,n.jsxs)("div",{className:"bg-red-500 fixed top-0 z-40 ".concat(r?"md:translate-y-[30px] opacity-100 visible scale-1":"translate-y-0 opacity-0 invisible scale-[0.5]"," left-1/2 text-center -translate-x-1/2 w-full duration-200 ease-in-out md:rounded-[5px] flex items-center justify-between gap-8 text-white font-cera_medium text-xl py-2.5 px-10 md:max-w-max mx-auto"),children:[t,(0,n.jsx)("button",{onClick:a,className:"text-white hover:text-zinc-200",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})}a(67294)},24996:function(e,t,a){"use strict";a.d(t,{it:function(){return getAllPackages},pe:function(){return getAllApiPlansOfPackage}});var n=a(67744);let getAllPackages=async()=>{let e=await (0,n.Ff)("api-package/all","GET");return e},getAllApiPlansOfPackage=async e=>{let t=await (0,n.Ff)("api-plan/api-package/all/".concat(e),"GET");return t}},12477:function(e,t,a){"use strict";a.d(t,{Dd:function(){return LoginLoader},Qt:function(){return CustomCommonLoaderWrapper},VW:function(){return CommonLoaderWithCallback},gi:function(){return SkeletonLoader}});var n=a(85893),r=a(67294),s=a(29888),l=a(54726),i=a.n(l);let CircularLoader=e=>{let{size:t=24,color:a="currentColor",text:r,className:l=""}=e,i=a.startsWith("text-")||a.includes("-")&&!a.startsWith("#")&&!a.startsWith("rgb");return(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 ".concat(l),children:[(0,n.jsxs)("svg",{className:"animate-spin ".concat(i?a:""),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{width:t,height:t,color:i?void 0:a},children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),r&&(0,n.jsx)(s.Xg,{color:"text-slate-500 dark:text-zinc-400",className:"font-bold animate-pulse text-center",children:r})]})};
1function LoginLoader(e){let{color:t="currentColor"}=e,a=t.startsWith("text-")||t.includes("-")&&!t.startsWith("#")&&!t.startsWith("rgb");return(0,n.jsx)("div",{className:"w-full flex py-2 justify-center ".concat(a?t:""),style:a?{}:{color:t},children:(0,n.jsx)("div",{className:"stage",children:(0,n.jsx)("div",{className:"".concat(i()["dot-pulse"])})})})}let Loader=e=>{let{text:t,className:a="",color:r="currentColor",variant:l="dot-pulse",size:o=24}=e;if("circular"===l)return(0,n.jsx)(CircularLoader,{text:t,color:r,size:o,className:a});let c=r.startsWith("text-")||r.includes("-")&&!r.startsWith("#")&&!r.startsWith("rgb");return(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 ".concat(a," ").concat(c?r:""),style:c?{}:{color:r},children:[(0,n.jsx)("div",{className:"w-full flex py-2 justify-center",children:(0,n.jsx)("div",{className:"stage",children:(0,n.jsx)("div",{className:"".concat(i()["dot-pulse"])})})}),t&&(0,n.jsx)(s.Xg,{color:"text-slate-500 dark:text-zinc-400",className:"font-bold animate-pulse",children:t})]})};function CommonLoaderWithCallback(e){let{children:t,passdata:a,reqbody:s,hideheight:l}=e,[i,o]=(0,r.useState)(!0),ApiCall=async()=>{let e=s.url?s.url:api_url,t=await fetch(e,{method:"POST",body:JSON.stringify({operation:"DASHBOARD_API",...s})}),n=await t.json();cacheCallback(n,a),o(!1)};return(0,r.useEffect)(()=>{let e=!0;try{s.userid&&e&&ApiCall()}catch(e){console.log(e.message)}return()=>{e=!1}},[s.userid]),(0,n.jsx)(n.Fragment,{children:i?(0,n.jsx)(Loader,{hideheight:l}):(0,n.jsx)(n.Fragment,{children:t})})}function CustomCommonLoaderWrapper(e){let{children:t,hideheight:a,functionCall:s,userDetails:l}=e,[i,o]=(0,r.useState)(!0),ApiCall=async()=>{await s(!0),o(!1)};return(0,r.useEffect)(()=>{let e=!0;try{e&&ApiCall()}catch(e){console.log(e.message)}return()=>{e=!1}},[l]),(0,n.jsx)(n.Fragment,{children:i?(0,n.jsx)(Loader,{hideheight:a}):(0,n.jsx)(n.Fragment,{children:t})})}t.ZP=Loader;let SkeletonLoader=e=>{let{className:t="",children:a}=e;return(0,n.jsx)("div",{className:"animate-pulse bg-gray-300 dark:bg-gray-700 rounded-md ".concat(t),children:a||(0,n.jsx)("span",{className:"invisible",children:"Loading..."})})}},78527:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return RequestFeatures}});var n=a(85893),r=a(98425),s=a(44668),l=a(67294),i=a(59762);function RequestFeatureCard(e){let{id:t,title:a,change:r,active:s}=e;return(0,n.jsxs)("label",{htmlFor:t,className:"".concat(s==t?"border-sky-500 border-[2px]":"border-zinc-300 dark:border-zinc-700"," relative cursor-pointer rounded dark:bg-[#2A2B2E] bg-white border w-full flex py-3 px-4"),children:[(0,n.jsx)("input",{type:"checkbox",id:t,name:t,value:a,checked:s,onChange:e=>r(e),className:"absolute top-3 right-3 w-4 h-4 z-10 opacity-100 border-zinc-700"}),(0,n.jsx)("div",{children:(0,n.jsx)("h6",{className:"text-lg dark:text-zinc-100",children:a})})]})}var o=a(67744),c=a(93991),d=a(54909),u=a(9008),m=a.n(u),p=a(12477);let x={indian:"INDIAN_ASTROLOGY_PACKAGE",western:"WESTERN_ASTROLOGY_PACKAGE"};function RequestFeatures(){let[e,t]=(0,l.useState)(""),[a,r]=(0,l.useState)({indian:"",western:""}),[s,u]=(0,l.useState)(!1),[g,h]=(0,l.useState)(null),[f,y]=(0,l.useState)(!1);(0,c.Sp)("session");let _=(0,c.Sp)("session"),handleFeature=e=>{let{name:t}=e.target;a[t]?r(e=>({...e,[t]:""})):r(e=>({...e,[t]:t}))},handleSubmit=async n=>{n.preventDefault();let r=Object.values(a).filter(e=>""!==e).join(",");if(""==e)y("Description is required");else if(" "==r||""==r)y("Please select a package");else{let e=await createFeatureRequest(r);e.success?(t(""),u(!1),h("Thank you for your request")):(u(!1),y(e.message))}},createFeatureRequest=async t=>{var a,n;let r=await (0,o.Ff)("feature-request","POST",{name:null==_?void 0:null===(a=_.userDetails)||void 0===a?void 0:a.name,email:null==_?void 0:null===(n=_.userDetails)||void 0===n?void 0:n.email,message:e,request_for:x[t]});return r};return f&&setTimeout(()=>y(null),4e3),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(m(),{children:[(0,n.jsx)("meta",{name:"description",content:""}),(0,n.jsx)("meta",{name:"keywords",content:""}),(0,n.jsx)("title",{children:"API Request Features | AstrologyAPI Dashboard"})]}),(0,n.jsx)("div",{className:"text-slate-800 min-h-screen",children:(0,n.jsxs)("div",{className:"max-w-2xl w-full mx-auto gap-10 flex flex-col justify-center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(i.hP,{extra:"mb-1",children:"Missing a feature?"}),(0,n.jsxs)(i.iW,{size:"md:text-xl text-lg",children:["Anything you're missing in our product? Drop a message here to let us know! \uD83D\uDCE8"," "]})]}),(0,n.jsxs)("div",{className:"w-full max-w-2xl ",children:[(0,n.jsx)(i.hP,{size:"md:text-2xl text-xl",children:"Please select package"}),(0,n.jsx)(i.iW,{size:"md:text-lg",extra:"mt-1",children:"The features you want to add."}),(0,n.jsxs)("div",{className:"flex sm:flex-row flex-col gap-5 mt-4",children:[(0,n.jsx)(RequestFeatureCard,{active:a.indian,change:handleFeature,id:"indian",title:"Indian Astrology"}),(0,n.jsx)(RequestFeatureCard,{active:a.western,change:handleFeature,id:"western",title:"Western Astrology"})]})]}),(0,n.jsxs)("div",{className:"w-full max-w-2xl ",children:[(0,n.jsx)(i.hP,{size:"md:text-2xl text-xl",children:"Please describe the feature you need"}),(0,n.jsx)(i.iW,{size:"md:text-lg",extra:"mt-1",children:"The more detail you can share, the better."}),(0,n.jsxs)("form",{onSubmit:handleSubmit,className:"mt-4 flex flex-col ",children:[(0,n.jsx)("textarea",{value:e,onCh
1ange:e=>{let{value:a}=e.target;t(a),y(!1)},className:"border mb-5 dark:border-zinc-600 bg-white dark:bg-[#2A2B2E] border-zinc-300 dark:text-zinc-100 py-2 px-3 rounded w-full outline-none focus:ring-[2.5px] dark:focus:ring-sky-400/50 focus:ring-sky-100 dark:focus:border-sky-400 focus:border-sky-400 min-h-[150px]"}),f&&(0,n.jsx)(d.Xq,{text:f}),g&&(0,n.jsx)(d.kk,{text:g}),(0,n.jsx)("button",{type:"submit",className:"bg-sky-500 dark:bg-sky-700 md:max-w-[300px] mt-5 w-full py-3 text-lg font-semibold px-10 text-white rounded hover:bg-sky-600 dark:hover:bg-sky-800 ",children:s?(0,n.jsx)(p.Dd,{}):"Send feature request"})]})]})]})})]})}RequestFeatures.getLayout=function(e){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{children:(0,n.jsx)(s.Z,{bg:"bg-zinc-50",head:"Request Features",title:"",active:"/dashboard/app/request-features",children:e})})})}},54726:function(e){e.exports={spinner:"animation_spinner__Ok77n","btn-bouncedelay":"animation_btn-bouncedelay__vNPMw",bounce1:"animation_bounce1___rTT0",bounce2:"animation_bounce2__XIZpA",loader:"animation_loader__YG41c","dot-pulse":"animation_dot-pulse__Lbikg",dotPulse:"animation_dotPulse__6Ramb",dotPulseBefore:"animation_dotPulseBefore__zWRxp",dotPulseAfter:"animation_dotPulseAfter__8lGzZ",svganimate:"animation_svganimate__RZnGf",svganimation:"animation_svganimation___cDzx",errorAnimation:"animation_errorAnimation__a_gZV",erroranimation:"animation_erroranimation__Y22zO",playanimation:"animation_playanimation__fjpxu",anim:"animation_anim__vtzPo",playpauseanimation:"animation_playpauseanimation__F7JL2",anim2:"animation_anim2__tINA5"}},9008:function(e,t,a){e.exports=a(79201)}},function(e){e.O(0,[73324,93381,39561,44668,49774,92888,40179],function(){return e(e.s=72538)}),_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.