1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3542],{79856:function(e,t,n){function a(){window.location.href="/auth/signin"}function s(){window.location.href="/api/myauth/logout"}n.d(t,{w7:function(){return s},zB:function(){return a}})},34819:function(e,t,n){n.d(t,{Ix:function(){return c},Rl:function(){return o},i$:function(){return i},jE:function(){return l},qd:function(){return u},uL:function(){return r}});var a=n(98005),s=n.n(a);function i(e){return!e||"free"!=e.user.subscriptionType}function r(e,t){return new Date("".concat(e,"T").concat(t,":00")).toISOString()}function l(){return"https://3oxz4.aiccloud.online"}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:70;if(e.length<=t)return e;let n=e.substring(0,t);return" "!==e[t]&&" "!==e[t-1]&&(n=n.substring(0,n.lastIndexOf(" "))),n+"..."}async function c(e,t,n){return new Promise((a,i)=>{var r;if(!t||!(t instanceof File))return a("");let l=async t=>{try{let s=await d(e,t,n);a(s||"")}catch(e){console.error("Cloudinary upload failed:",e),a("")}};if("image/gif"===t.type||(null===(r=t.name)||void 0===r?void 0:r.toLowerCase().endsWith(".gif"))){l(t);return}new(s())(t,{quality:.8,success:async e=>{await l(e)},error(e){console.error("Compression error:",e),a("")}})})}async function d(e,t,n){let a=new FormData;a.append("file",t),a.append("upload_preset","vzbwdxpv"),a.append("cloud_name","dlsyyktsx"),a.append("folder",n);let s=await fetch("https://api.cloudinary.com/v1_1/dlsyyktsx/image/upload",{method:"post",body:a}),i=await s.json();if(console.log("uploadImageToCloudinaryUI : ",i),"PostImages"==n){let t={image:i.secure_url,imagePublicId:i.public_id};fetch("api/notes/".concat(e),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}return i}async function u(e,t){console.log("deleteImageInCloudinary Entry : "+e+" : "+t);let n=await fetch("/api/cloudinary/delete-cloudinary",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publicId:t,uniquePostId:e})}),a=await n.json();if(!n.ok)throw Error(a.error);return console.log("deleteImageInCloudinary Exit : ",a),a}},69437:function(e,t,n){n.d(t,{Z:function(){return c}});var a=n(85893),s=n(67294),i=n(37489),r=n(79856),l=n(78773),o=n(11163),c=e=>{let{isOpen:t,onClose:n}=e,{data:c,status:d}=(0,i.k)(),[u,h]=(0,s.useState)(!1),f=(0,o.useRouter)(),[m,x]=(0,s.use
1State)(!0),p=m?35:5,g=async()=>{if(h(!0),"unauthenticated"===d){h(!1);return}try{let e=p.toString(),t=await fetch("/api/payment/create-checkout-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c.user.email,amount:e,isYearly:m})}),n=await t.json();if(!n.success||!n.checkout_url)throw Error(n.message||"Failed to create checkout session");window.location.href=n.checkout_url}catch(e){console.error("Error initiating payment:",e),alert("Failed to start payment. Please try again."),h(!1)}},w=()=>"https://www.postbold.com/"+f.asPath+"?paymentmodal=true";return t?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"z-50 fixed inset-0 flex items-center justify-center",style:{background:"linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%)",backgroundImage:"radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%)"},children:(0,a.jsxs)("div",{className:"relative max-w-md w-full mx-4",children:[(0,a.jsx)("button",{onClick:n,className:"absolute -top-4 -right-4 z-10 bg-white rounded-full w-8 h-8 flex items-center justify-center shadow-lg hover:bg-gray-100 transition-colors",children:(0,a.jsx)("span",{className:"text-gray-600 font-bold text-lg",children:"\xd7"})}),"authenticated"===d?(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl overflow-hidden",children:[(0,a.jsxs)("div",{className:"bg-gradient-to-br from-blue-600 to-blue-700 px-6 pt-8 pb-16 relative",children:[(0,a.jsx)("div",{className:"flex flex-col items-center text-center mt-8",children:(0,a.jsxs)("div",{className:"flex items-baseline justify-center",children:[(0,a.jsxs)("span",{className:"text-white text-5xl font-bold",children:["$",p]}),(0,a.jsx)("span",{className:"text-white/90 text-lg ml-2",children:m?"/yr":"/mo"})]})}),(0,a.jsxs)("div",{className:"flex justify-center items-center mt-6 gap-3",children:[(0,a.jsx)("span",{className:"text-sm font-medium ".concat(m?"text-white/70":"text-white"),children:"Monthly"}),(0,a.jsx)("div",{className:"w-14 h-7 bg-white/20 rounded-full flex items-center cursor-pointer transition-all ".concat(m?"justify-end":"justify-start"),onClick:()=>x(!m),children:(0,a.jsx)("div",{className:"w-5 h-5 bg-white rounded-full mx-1 shadow-md"})}),(0,a.jsx)("span",{className:"text-sm font-medium ".concat(m?"text-white":"text-white/70"),children:"Yearly"})]}),(0,a.jsx)("svg",{className:"absolute bottom-0 left-0 w-full",viewBox:"0 0 400 60",preserveAspectRatio:"none",style:{height:"60px"},children:(0,a.jsx)("path",{d:"M0,60 Q200,0 400,60 L400,60 L0,60 Z",fill:"white"})})]}),(0,a.jsxs)("div",{className:"pt-8 pb-6",children:[(0,a.jsx)("ul",{className:"space-y-2 mb-6",children:[{feature:"AI-powered content ideas tailored to your niche"},{feature:"Generate posts from ideas, blog URLs, prompts, or existing content"},{feature:"Advanced LinkedIn post editor with inline AI editing"},{feature:"Auto-generate first comment for your posts"},{feature:"One-click posting directly to LinkedIn"},{feature:"Content calendar to plan and schedule your posts"},{feature:"Kanban board to manage your content workflow and track ideas"},{feature:"All future features included"}].map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)(l.l_A,{className:"text-blue-600 mt-1 mr-3 flex-shrink-0",size:20}),(0,a.jsx)("span",{className:"text-gray-700 text-lg leading-relaxed",children:e.feature})]},t))}),(0,a.jsx)("button",{onClick:g,className:"bg-blue-600 hover:bg-blue-700 text-xl text-white font-semibold py-3 px-6 w-full rounded-lg transition-colors shadow-lg disabled:opacity-50 disabled:cursor-not-allowed",disabled:u,children:u?"Processing...":"Subscribe Now"})]})]}):(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl overflow-hidden",children:[(0,a.jsxs)("div",{className:"bg-gradient-to-br from-blue-600 to-blue-700 px-6 pt-8 pb-16 relative",children:[(0,a.jsx)("h2",{className:"text-white text-2xl font-bold mb-2",children:"Sign Up"}),(0,a.jsx)("p",{className:"text-white/90 text-sm",children:"Get started with PostBold"}),(0,a.jsx)("svg",{className:"absolute bottom-0 left-0 w-full",viewBox:"0 0 400 60",preserveAspectRatio:"none",style:{height:"60px"},children:(0,a.jsx)("path",{d:"M0,60 Q200,0 400,60 L400,60 L0,60 Z",fill:"white"})})]}),(0,a.jsx)("div",{className:"px-6 pt-8 pb-6",children:(0,a.jsxs)("button",{className:"bg-red-600 hover:bg-red-700 text-white font-semibold py-3 px-6 w-full rounded-lg transition-colors shadow-lg flex items-center justify-center gap-2",onClick:()=>{let e=w();(0,r.zB)("google",{callbackUrl:e})},children:[(0,a.jsx)(l.ldW,{size:18}),(0,a.jsx)("span",{children:"Sign in with Google"})]})})]})]})})}):null}}}]);
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.