1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[724],{3361:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return l(7716)}])},4052:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var s=l(3798),a=l(1462),r=l(9214),i=l.n(r),n=l(5938);function d(e){let{isOpen:t}=e,[l,r]=(0,a.useState)(0),[d,c]=(0,a.useState)(!1),[o,x]=(0,a.useState)(!1),m=(0,a.useRef)();return((0,a.useEffect)(()=>{if(!t)return;x(!0),r(0);let e=setInterval(()=>{r(t=>t>=100?(c(!0),clearInterval(e),100):t+1)},30);return()=>clearInterval(e)},[t]),(0,a.useEffect)(()=>{m&&(n.Ay.timeline(),n.Ay.to(m.current,{y:"-=10",duration:1,repeat:-1,opacity:1,yoyo:!0,ease:"power1.inOut"}))},[t]),o)?(0,s.jsxs)("div",{className:"fixed inset-0 h-screen w-full flex flex-col justify-center items-center z-[999999] bg-cover \n transition-opacity duration-300 \n ".concat(t?"opcity-100":"opacity-0 hidden"),style:{background:"url(/assets/dashboard/raw.png)"},children:[(0,s.jsx)("div",{className:"block absolute h-full w-full inset-0 ",children:(0,s.jsx)(i(),{src:"/assets/home/Vector.webp",alt:"section1",ref:m,width:1900,height:800,className:"object-contain trnasform h-full w-full translate-y-40 md:translate-y-10"})}),(0,s.jsx)("div",{className:"bg-white relative z-20 rounded-2xl shadow-lg p-6 text-center",children:(0,s.jsxs)("div",{className:"relative w-20 h-20 mx-auto flex justify-center items-center",children:[(0,s.jsx)("div",{className:"absolute w-20 h-20 rounded-full border-4 border-[#eaa8a8] border-t-[#ff6347] animate-spin"}),(0,s.jsxs)("span",{className:"relative text-sm font-medium",children:[l,"%"]})]})}),(0,s.jsx)("p",{className:"mt-4 text-3xl font-bold tracking-wide",style:{fontFamily:"Subscribe"},children:"LOADING"})]}):null}},6530:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(3798),a=l(9214),r=l.n(a);let i=e=>{let{image:t,btn:l,btn2:a,activeForm:i,setActiveform:n}=e;return(0,s.jsx)("div",{className:"h-[90%] w-full ",children:(0,s.jsxs)("div",{className:" md:w-[80%] mx-auto relative overflow-hidden flex lg:flex-row flex-col justify-between h-full ",children:[(0,s.jsx)("div",{className:"h-[50%] lg:h-full w-full px-4 lg:px-0 lg:w-1/2 flex flex-col justify-center ",children:(0,s.jsxs)("h2",{className:"text-5xl md:text-7xl uppercase mb-4 font-medium",children:["Create your",(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"text-[#EE3A3D]",children:"press Release"})]})}),(0,s.jsx)("div",{className:" h-[50%] w-full lg:w-1/2 lg:h-full flex items-center justify-center ",children:(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center md:items-end md:justify-end ",children:(0,s.jsx)("div",{className:" md:h-full relative h-full w-[80%] lg:w-full md:w-[90%] flex items-end justiy-end",children:(0,s.jsx)(r(),{src:t,priority:!0,className:"md:aspect-[16/14]",width:800,height:800})})})})]})})}},7716:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>m});var s=l(3798),a=l(1462),r=l(6426),i=l(8417);function n(){let[e,t]=(0,a.useState)({headline:"",speakerName:"",keyHighlights:"",quote:"",speakerTitle:"",campaignFocus:"",offerDate:"",offerDuration:"",speakerRole:"",images:null}),l=l=>{let{name:s,value:a,type:r,files:i}=l.target;"file"===r?t({...e,[s]:i}):t({...e,[s]:a})};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"min-h-screen hidden lg:flex flex-col items-center justify-center p-8 my-10",children:[(0,s.jsx)("h2",{className:"text-5xl uppercase mb-4 text-left",children:"Fill In Press Release Details"}),(0,s.jsxs)("form",{className:"flex flex-col gap-4 justify-center mx-auto max-w-5xl w-full",children:[(0,s.jsx)("div",{className:"flex flex-col gap-4",children:(0,s.jsxs)("div",{className:" flex gap-4 ",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] h-[250px] py-8 w-[250px] p-3 rounded-2xl flex flex-col justify-between",children:[(0,s.jsx)("label",{className:"font-medium text-sm mb-1",children:"Headline / Subject"}),(0,s.jsx)("input",{type:"text",name:"headline",value:e.headline,onChange:l,placeholder:"Write",className:"border border-gray-300 bg-white text-black rounded-md p-2 h-24 text-sm"})]}),(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] p-3 h-[180px] py-8 w-[250px] rounded-2xl flex flex-col justify-between",children:[(0,s.jsx)("label",{className:"font-medium text-sm mb-1",children:"Speaker name"}),(0,s.jsx)("input",{type:"text",name:"speakerName",value:e.speakerName,onChange:l,placeholder:"Write",className:"border border-gray-300 bg-white rounded-md p-2 text-sm"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] p-3 py-8 h-[180px] w-[230px] rounded-2xl flex flex-col justify-between",children:[(0,s.jsxs)("label",{className:"font-medium text-sm mb-1",children:["Key highlights for ",(0,s.jsx)("br",{}),"your story"]}),(0,s.jsx)("select",{name:"keyHighlights",value:e.keyHighlights,onChange:l,className:"border bg-white text-start border-gray-400 rounded-md flex flex-col items-center justify-center p-2 text-sm text-gray-500",children:(0,s.jsx)("option",{value:"",children:"Formal"})})]}),(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] h-[250px] p-3 py-8 rounded-2xl flex flex-col justify-between",children:[(0,s.jsx)("label",{className:"font-medium text-sm mb-1",children:"Quote for media"}),(0,s.jsx)("input",{type:"text",name:"quote",value:e.quote,onChange:l,placeholder:"Write",className:"border border-gray-300 bg-white rounded-md p-2 text-sm"})]})]})]}),(0,s.jsx)("div",{className:"flex gap-4",children:(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] h-[180px] w-[500px] py-8 p-3 rounded-2xl flex flex-col justify-between",children:[(0,s.jsx)("label",{className:"font-medium text-sm mb-1",children:"Speaker Title "}),(0,s.jsx)("input",{type:"text",name:"speakerTitle",value:e.speakerTitle,onChange:l,placeholder:"Write",className:"border border-gray-300 bg-white rounded-md p-2 text-sm"})]})})]}),(0,s.jsxs)("div",{className:"flex flex-col w-[500px] gap-4",children:[(0,s.jsxs)("div",{className:"flex gap-4 w-full",children:[(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] p-3 py-8 w-1/2 h-[180px] rounded-2xl flex flex-col justify-between",children:[(0,s.jsxs)("label",{className:"font-medium text-sm mb-1",children:["Focus of the ",(0,s.jsx)("br",{}),"Campaign"]}),(0,s.jsx)("select",{name:"campaignFocus",value:e.campaignFocus,onChange:l,className:"border bg-white text-start border-gray-400 rounded-md flex flex-col items-center justify-center p-2 text-sm text-gray-500",children:(0,s.jsx)("option",{value:"",children:"Select"})})]}),(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] w-1/2 p-3 py-8 h-[180px] rounded-2xl flex flex-col justify-between",children:[(0,s.jsxs)("label",{className:"font-medium text-sm mb-1",children:["Offer Date ",(0,s.jsx)("br",{}),"If Applicable"]}),(0,s.jsx)("input",{type:"date",name:"offerDate",value:e.offerDate,onChange:l,className:"border border-gray-400 bg-white rounded-md flex flex-col items-center justify-center px-6 py-2 text-sm text-gray-500"})]})]}),(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] w-full py-8 h-[250px] p-3 rounded-2xl flex flex-col justify-between",children:[(0,s.jsx)("label",{className:"font-medium text-sm mb-1",children:"Insert images (optional)"}),(0,s.jsx)("input",{type:"file",name:"images",multiple:!0,onChange:l,placeholder:"Write",className:"border border-gray-300 bg-white rounded-md p-2 text-sm"})]}),(0,s.jsxs)("div",{className:"flex gap-4 w-full",children:[(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBDFDF] p-3 w-1/2 h-[180px] rounded-2xl py-8 flex flex-col justify-between",children:[(0,s.jsx)("label",{className:"font-medium text-sm mb-1",children:"Speaker Role"}),(0,s.jsx)("input",{type:"text",placeholder:"Write",className:"border border-gray-300 bg-white rounded-md p-2 text-sm"})]}),(0,s.jsxs)("div",{className:"col-span-1 bg-[#FBEDDF] w-1/2 h-[180px] p-3 py-8 rounded-2xl flex flex-col justify-between",children:[(0,s.jsx)("label",{className:"font-medium text-sm mb-1",children:"Offer Duration (if applicable)"}),(0,s.jsx)("input",{type:"date",name:"offerDuration",value:e.offerDuration,onChange:l,className:"border border-gray-400 bg-white rounded-md flex flex-col items-center justify-center px-6 py-2 text-sm text-gray-500"})]})]})]})]})}),(0,s.jsx)("div",{className:"flex justify-center w-full",children:(0,s.jsx)("button",{className:"px-6 py-2 bg-[#EE3A3D] w-full text-white rounded hover:bg-red-500 cursor-pointer",children:"Generate"})})]})]})})}var d=l(6530),c=l(9873);let o=()=>{let e=[{title:"Headline / Subject",type:"text",placeholder:"Write",bgColor:"bg-[#FBDFDF]",height:"h-[180px] md:h-[300px]",fullWidth:!0},{title:"Speaker name",type:"text",placeholder:"Write",bgColor:"bg-[#FBEDDF]",height:"h-[120px] md:h-[180px]"},{title:"Key highlights for your story",type:"select",options:["Formal","Informal","Professional"],bgColor:"bg-[#FBEDDF]",height:"h-[120px] md:h-[180px]"},{title:"Quote for media",type:"text",placeholder:"Write",bgColor:"bg-[#FBDFDF]",height:"h-[180px] md:h-[300px]"},{title:"Focus of the Campaign",type:"select",options:["Select","Brand Awareness","Product Launch","Event"],bgColor:"bg-[#FBEDDF]",height:"h-[120px] md:h-[180px]"},{title:"Insert images (optional)",type:"file",bgColor:"bg-[#FBEDDF]",height:"h-[180px] md:h-[300px]"},{title:"Speaker Title",type:"text",placeholder:"Write",bgColor:"bg-[#FBDFDF]",height:"h-[120px] md:h-[180px]"},{title:"Speaker Role",type:"text",placeholder:"Write",bgColor:"bg-[#FBEDDF]",height:"h-[120px] md:h-[180px]"},{title:"Offer Date If Applicable",type:"date",bgColor:"bg-[#FBDFDF]",height:"h-[120px] md:h-[335px]"}],t=e.reduce((e,t)=>
1(e[t.title]="file"===t.type?null:"",e),{}),[l,o]=(0,a.useState)(),[x,m]=(0,a.useState)(!1),[h,p]=(0,a.useState)(t),u=async e=>{e.preventDefault();let l=new FormData;Object.entries(h).forEach(e=>{let[t,s]=e;l.append(t,s)}),console.log("API-ready FormData:",[...l.entries()]),m(!0),p(t),setTimeout(()=>{m(!1)},5e3)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"h-screen md:h-[90vh] w-full bg-cover relative overflow-hidden",style:{backgroundImage:"url(/assets/dashboard/raw.png)"},children:[(0,s.jsx)(r.A,{}),(0,s.jsx)(d.A,{image:"/assets/dashboard/Layer_1.png",activeform:l,Setactiveform:o})]}),(0,s.jsx)(c.A,{handleSubmit:u,formData:h,loading:x,handleChange:(e,t)=>{p(l=>({...l,[e]:t}))},formSections:e}),(0,s.jsx)(n,{}),(0,s.jsx)(i.A,{})]})};var x=l(2916);let m=()=>{let{getToken:e}=(0,x.d)();return(0,a.useEffect)(()=>{(async()=>{console.log("Clerk Token:",await e())})()},[]),(0,s.jsx)("div",{children:(0,s.jsx)(o,{})})}},9873:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(3798),a=l(1462),r=l(4052);function i(e){let{formSections:t,loading:l,dashboardAi:i,handleSubmit:n,handleChange:d,formData:c}=e,[o,x]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=()=>{x(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,s.jsx)("div",{className:"min-h-screen lg:hidden block py-8 px-4 md:px-8 my-20",children:(0,s.jsxs)("form",{className:"max-w-7xl mx-auto",children:[(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:t.map((e,t)=>(0,s.jsxs)("div",{className:"".concat(e.bgColor," p-4 rounded-2xl flex flex-col justify-between ").concat(e.height," ").concat(e.fullWidth?"md:col-span-2":""),children:[(0,s.jsx)("label",{className:"font-medium text-sm mb-2",children:e.title.split("\n").map((t,l)=>(0,s.jsxs)("span",{children:[t,l<e.title.split("\n").length-1&&(0,s.jsx)("br",{})]},l))}),(e=>{switch(e.type){case"select":return(0,s.jsx)("select",{className:"w-full border bg-white border-gray-400 rounded-md p-2 text-sm text-gray-500 ".concat("h-[335px]"===e.height?"h-[calc(100%-2rem)]":"h-10"),value:c[e.title]||"",onChange:t=>d(e.title,t.target.value),children:e.options.map(e=>(0,s.jsx)("option",{value:e,children:e},e))});case"date":return console.log("FIELD TITLEtwo:",e.title),(0,s.jsx)("input",{value:c[e.title]||"",onChange:t=>d(e.title,t.target.value),type:"date",className:"w-full border border-gray-400 bg-white rounded-md p-2 text-sm text-gray-500 ".concat("h-[335px]"===e.height?"h-[calc(100%-2rem)]":"h-10")});case"file":return(0,s.jsx)("input",{onChange:t=>d(e.title,t.target.files[0]),type:"file",className:"w-full border border-gray-400 bg-white rounded-md p-2 text-sm text-gray-500 ".concat("h-[335px]"===e.height?"h-[calc(100%-2rem)]":"h-10")});default:return(0,s.jsx)("input",{type:e.type,onChange:t=>d(e.title,t.target.value),value:c[e.title]||"",placeholder:e.placeholder,className:"w-full border border-gray-300 bg-white rounded-md p-2 text-sm ".concat("h-[335px]"===e.height?"h-[calc(100%-2rem)]":"h-10")})}})(e)]},t))}),i&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex justify-center w-full mt-8",children:(0,s.jsx)("button",{className:"px-6 py-2 bg-[#EE3A3D] w-full text-white rounded hover:bg-red-500 cursor-pointer",onClick:n,children:"Generate"})}),(0,s.jsx)(r.A,{isOpen:l})]})]})})}}},e=>{e.O(0,[931,770,666,636,593,792],()=>e(e.s=3361)),_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.