1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[909],{4909:(e,t,s)=>{s.d(t,{A:()=>m});var r=s(3798),a=s(6426),n=s(9214),l=s.n(n);s(8149);var o=s(7005),i=s(6996);let c=()=>{let{isSignedIn:e,isLoaded:t}=(0,o.Jd)(),s=(0,i.useRouter)(),{redirectToSignIn:a}=(0,o.ho)();return t?(0,r.jsx)("section",{className:"w-full py-8",children:(0,r.jsx)("div",{className:"max-w-6xl mx-auto flex flex-col md:flex-row items-center justify-center gap-2 md:gap-8 px-6",children:[{id:1,image:"/assets/dashboardtwo/t-1.svg",title:"CREATE CONTENT",description:"Use our AI or draft your own",borderColor:"border-[#EE3A3D]",offset:"translate-y-0",link:"/new"},{id:2,image:"/assets/dashboardtwo/t-2.svg",title:"SEND IT",description:"Check and send to media",borderColor:"border-[#EE3A3D]",offset:"md:translate-y-[60px]",link:"/dashboard-dashboard?tab=draft"},{id:3,image:"/assets/dashboardtwo/t-3.svg",title:"REVIEW RESULTS",description:"See media hits and links",borderColor:"border-[#EE3A3D]",offset:"translate-y-0",link:"/dashboard-dashboard?tab=sent"}].map(t=>(0,r.jsxs)("div",{className:"border-[1.5px] border-dashed bg-white rounded-2xl flex flex-col items-center text-center p-4 md:p-10 w-full md:w-[300px] transition-transform duration-300 hover:scale-[1.05] hover:shadow-lg ".concat(t.borderColor," ").concat(t.offset," cursor-pointer"),onClick:()=>(t=>{if(!e)return void a({returnBackUrl:"/"});s.push(t)})(t.link),children:[(0,r.jsx)("div",{className:"relative w-[120px] h-[120px] mb-6",children:(0,r.jsx)(l(),{src:t.image,alt:t.title,fill:!0,className:"object-contain"})}),(0,r.jsx)("h3",{className:"font-extrabold text-2xl md:text-3xl uppercase text-black",children:t.title}),(0,r.jsx)("p",{className:"text-gray-600 text-sm",children:t.description})]},t.id))})}):null},d=()=>(0,r.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center",children:[(0,r.jsx)("div",{className:"h-[50px] w-[200px] flex items-center justify-center",children:(0,r.jsx)(l(),{src:"/assets/dashboardtwo/pan.svg",width:120,height:100,className:"object-cover"})}),(0,r.jsx)("h2",{className:"text-4xl uppercase text-[#EE3A3D]",children:" Itâs Raw â Home"}),(0,r.jsxs)("h3",{className:"text-5xl md:text-7xl uppercase text-center",children:["Send your restaurant stories ",(0,r.jsx)("br",{})," to the media who matter"]}),(0,r.jsx)(c,{})]});var x=s(8417);let u=()=>(0,r.jsxs)("div",{className:"mb-10 max-w-5xl mx-auto px-4 flex flex-col items-center justify-center",children:[(0,r.jsxs)("h2",{className:"text-7xl uppercase",children:["Need Some ",(0,r.jsx)("span",{className:"text-[#EE3A3D]",children:"Help?"})]}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("button",{className:"mt-8 px-4 py-2 text-sm md:py-3 rounded-lg font-medium cursor-pointer bg-[#EE3A3D] text-white hover:bg-red-500 transition",style:{whiteSpace:"nowrap"},children:"Check Out FAQâs"}),(0,r.jsx)("button",{className:"mt-8 px-4 text-sm py-2 md:py-3 rounded-lg font-medium cursor-pointer bg-[#EE3A3D] text-white hover:bg-red-500 transition",style:{whiteSpace:"nowrap"},children:"Walkthrough Guide"})]})]});var h=s(9298);let m=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"h-auto md:h-screen w-full bg-cover",style:{backgroundImage:"url(/assets/dashboard/raw.png)"},children:[(0,r.jsx)(a.A,{}),(0,r.jsx)(d,{})]}),(0,r.jsx)(h.A,{className:"!py-40"}),(0,r.jsx)(u,{}),(0,r.jsx)(x.A,{})]})},9298:(e,t,s)=>{s.d(t,{A:()=>h});var r=s(3798),a=s(9214),n=s.n(a),l=s(7005),o=s(3987),i=s(3458),c=s(3750),d=s(1462),x=s(2062),u=(0,c.Q)(({clerk:e,children:t,...s})=>{let{planId:r,planPeriod:a,for:n,onSubscriptionComplete:l,newSubscriptionRedirectUrl:o,checkoutProps:x,...u}=s,{userId:h,orgId:m}=(0,c.As)();if(null===h)throw Error("Clerk: Ensure that `<CheckoutButton />` is rendered inside a `<SignedIn />` component.");if(null===m&&"organization"===n)throw Error('Clerk: Wrap `<CheckoutButton for="organization" />` with a check for an active organization. Retrieve `orgId` from `useAuth()` and confirm it is defined. For SSR, see: https://clerk.com/docs/reference/backend/types/auth-object#how-to-access-the-auth-object');t=(0,i.ql)(t,"Checkout");let p=(0,i.jC)(t)("CheckoutButton"),b=async t=>(p&&"object"==typeof p&&"props"in p&&await (0,i.V5)(p.props.onClick)(t),e)?e.__internal_openCheckout({planId:r,planPeriod:a,for:n,onSubscriptionComplete:l,newSubscriptionRedirectUrl:o,...x}):void 0,g={...u,onClick:b};return d.cloneElement(p,g)},{component:"CheckoutButton",renderWhileLoading:!0});function h(e){let{className:t,className_Two:s}=e,[a,i]=(0,d.useState)(null),{data:c,isLoading:h,error:m}=(0,x.rg)({for:"organization",pageSize:10});console.log("orgPlans",c);let{data:p,isLoading:b,error:g}=(0,x.rg)({for:"user",pageSize:10});console.log("userPlans",p);let f=h||b,j=m||g,v=(null==c?void 0:c.length)?c:p||[],N=[{target:"For individuals",icon:"/assets/home/ic-3.svg",buttonColor:"bg-red-500 text-white",borderColor:"border-red-300",bg:"bg-white"},{target:"For Restaurants",icon:"/assets/home/ic-2.svg",buttonColor:"bg-white text-black",borderColor:"border-transparent",bg:"bg-[#FBEDDF]"},{target:"For groups",icon:"/assets/home/ic-1.svg",buttonColor:"bg-red-500 text-white",borderColor:"border-red-300",bg:"bg-white"},{target:"For Restaurants",icon:"/assets/home/ic-2.svg",buttonColor:"bg-white text-black",borderColor:"border-transparent",bg:"bg-[#FBEDDF]"}];(0,o.useRouter)();let{isSignedIn:y}=(0,l.Jd)(),{redirectToSignIn:w}=(0,l.ho)(),[k,C]=(0,d.useState)(!0),{data:E}=(0,x.kH)({pollInterval:k?3e3:void 0});(0,d.useEffect)(()=>{var e;if(!E)return;let t=null==(e=E.subscriptionItems)?void 0:e.some(e=>"upcoming"===e.status);console.log("subscription",E),t||C(!1)},[null==E?void 0:E.updatedAt]);let S=e=>{var t;let s=null==E||null==(t=E.subscriptionItems)?void 0:t.find(t=>{var s;return(null==(s=t.plan)?void 0:s.id)===e});return E&&s?"active"===s.status?{badge:"Current plan",cta:"Resubscribe",disabled:!1,status:"active"}:"upcoming"===s.status?{badge:"Starts on ".concat(new Date(s.periodStart).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})),cta:"Scheduled",disabled:!0,status:"upcoming"}:s.canceledAt?{badge:null,cta:"Resubscribe",disabled:!1}:{badge:null,cta:"Subscribe",disabled:!1}:{badge:null,cta:"Subscribe",disabled:!1,status:""}};return(0,r.jsxs)("section",{className:'py-20 flex flex-col items-center justify-center" '.concat(t," "),id:"pricing",children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsxs)("h2",{className:"text-[50px] md:text-[80px]",children:[(0,r.jsx)("span",{className:"text-black",children:"TRY IT FOR "}),(0,r.jsx)("span",{className:"text-red-500",children:"FREE!"})]}),(0,r.jsx)("p",{className:" text-black md:text-lg px-2",children:"Choose the plan that fits your needs. Upgrade, downgrade, or cancel anytime."})]}),f&&(0,r.jsx)("div",{className:"py-20 text-center",children:(0,r.jsx)("p",{className:"text-gray-600",children:"Loading plansâ¦"})}),!f&&j&&(0,r.jsxs)("div",{className:"py-20 text-center",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold text-red-600",children:"Failed to load plans"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:j.message||"Something went wrong while fetching plans."})]}),!f&&!j&&0===v.length&&(0,r.jsx)("div",{className:"py-20 text-center",children:(0,r.jsx)("p",{className:"text-gray-600",children:"No plans are available at the moment."})}),!f&&!j&&v.length>0&&(0,r.jsx)("div",{className:"mt-12 grid lg:grid-cols-3 gap-8 ".concat(s),children:v.map((e,t)=>{var s,a;let l=N[t]||{};return(0,r.jsxs)("div",{className:"rounded-2xl shadow-sm border ".concat(l.borderColor," ").concat(l.bg," lg:p-6 p-8 flex flex-col"),children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsxs)("div",{className:"flex center",children:[(0,r.jsx)(n(),{src:l.icon,width:50,height:50,alt:e.name}),(0,r.jsxs)("div",{className:"ml-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsxs)("p",{className:"text-sm text-gray-600",children:[" ",l.target]}),(()=>{let{status:t}=S(e.id);return t?(0,r.jsx)("span",{className:"inline-block text-xs font-semibold px-2 py-1 rounded-full bg-gray-100 text-gray-700",children:t}):null})()]}),(0,r.jsxs)("h3",{className:"text-2xl ",style:{fontFamily:"DM Sans, sans-serif"},children:[e.name," "]})]})]}),(0,r.jsx)("p",{className:"mt-4 text-3xl flex items-center ",children:(0,r.jsxs)("span",{className:"text-3xl font-normal",style:{fontFamily:"subscribe, sans-serif"},children:[" $",null!=(a=null==e||null==(s=e.fee)?void 0:s.amountFormatted)?a:"N/A","/month"]})})]}),(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("p",{className:"font-bold mb-3",children:"Whatâs included"}),(0,r.jsx)("ul",{className:"space-y-2",children:e.features&&e.features.map((e,t)=>(0,r.jsxs)("li",{className:"flex items-center gap-2 text-sm text-gray-700",children:[(0,r.jsx)("span",{className:"text-red-500 font-bold",children:"â"}),e.name||e]},t))})]}),(()=>{var t;let{cta:s,disabled:a,badge:n,status:o}=S(e.id);return"active"===o&&(null==E||null==(t=E.subscriptionItems)?void 0:t.length)===1?null:y?(0,r.jsx)(u,{planId:e.id,planPeriod:"month",children:(0,r.jsx)("button",{disabled:a,className:"cursor-pointer transition-all -6 py-2 rounded-lg\n\n active:border-b-[2px] active:brightness-90 active:translate-y-[2px] mt-auto w-full py-3 rounded-lg font-semibold\n ".concat(a?"bg-gray-200 text-gray-500 cursor-not-allowed":"".concat(l.buttonColor," border-[#
1EE3A3D]\n border-b-[4px] hover:brightness-110 hover:-translate-y-[1px] hover:border-b-[6px]"),"\n "),children:"upcoming"===o?n:s})}):(0,r.jsx)("button",{onClick:()=>w({returnBackUrl:"/"}),className:"cursor-pointer transition-all -6 py-2 rounded-lg\n\n active:border-b-[2px] active:brightness-90 active:translate-y-[2px] mt-auto w-full py-3 rounded-lg font-semibold\n ".concat(a?"bg-gray-200 text-gray-500 cursor-not-allowed":"".concat(l.buttonColor," border-[#EE3A3D]\n border-b-[4px] hover:brightness-110 hover:-translate-y-[1px] hover:border-b-[6px]"),"\n "),children:"upcoming"===o?n:s})})()]},t)})}),(0,r.jsxs)("div",{className:" text-center mt-10",children:[(0,r.jsx)("h2",{className:"text-4xl ",children:(0,r.jsx)("span",{className:"text-red-500 uppercase p-2",children:"Canât Find What Youâre Looking For? "})}),(0,r.jsxs)("p",{className:"mt-3 text-black text-lg",children:["Contact ",(0,r.jsx)("span",{className:"underline",children:"[email protected]"}),"- weâll reply within 24 hours."]})]})]})}(0,c.Q)(({clerk:e,children:t,...s})=>{let{plan:r,planId:a,initialPlanPeriod:n,planDetailsProps:l,...o}=s;t=(0,i.ql)(t,"Plan details");let c=(0,i.jC)(t)("PlanDetailsButton"),x=async t=>(c&&"object"==typeof c&&"props"in c&&await (0,i.V5)(c.props.onClick)(t),e)?e.__internal_openPlanDetails({plan:r,planId:a,initialPlanPeriod:n,...l}):void 0,u={...o,onClick:x};return d.cloneElement(c,u)},{component:"PlanDetailsButton",renderWhileLoading:!0}),(0,c.Q)(({clerk:e,children:t,...s})=>{let{for:r,subscriptionDetailsProps:a,onSubscriptionCancel:n,...l}=s;t=(0,i.ql)(t,"Subscription details");let o=(0,i.jC)(t)("SubscriptionDetailsButton"),{userId:x,orgId:u}=(0,c.As)();if(null===x)throw Error("Clerk: Ensure that `<SubscriptionDetailsButton />` is rendered inside a `<SignedIn />` component.");if(null===u&&"organization"===r)throw Error('Clerk: Wrap `<SubscriptionDetailsButton for="organization" />` with a check for an active organization. Retrieve `orgId` from `useAuth()` and confirm it is defined. For SSR, see: https://clerk.com/docs/reference/backend/types/auth-object#how-to-access-the-auth-object');let h=async t=>(o&&"object"==typeof o&&"props"in o&&await (0,i.V5)(o.props.onClick)(t),e)?e.__internal_openSubscriptionDetails({for:r,onSubscriptionCancel:n,...a}):void 0,m={...l,onClick:h};return d.cloneElement(o,m)},{component:"SubscriptionDetailsButton",renderWhileLoading:!0})}}]);
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.