"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8385],{78580:function(e,t,a){a.d(t,{d:function(){return i},z:function(){return u}});var n=a(20881),o=a(64149),r=a(63203),d=a(20116),l=a(30638);let i=(0,d.j)("inline-flex items-center justify-center whitespace-nowrap text-sm ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"button--primary",outline:"border-2 border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"button--secondary",tertiary:"button--tertiary",destructive:"button bg-orange text-licorice hover:bg-orange/90",ghost:"hover:bg-accent hover:text-accent-foreground !p-0",link:"text-primary underline-offset-4 hover:underline !p-0 !inline-block",input:"border-2 border-input text-primary-foreground hover:bg-primary/10 focus-visible:border-primary"},size:{default:"px-8 py-2",sm:"px-4 py-1 text-sm",lg:"px-12 py-4",icon:"h-8 w-8 !inline-flex items-center justify-center [&__svg]:max-w-4 [&:not(.button--tertiary)]:button-animation-icon"},theme:{default:"",primary:"button__theme--licorice",secondary:"button__theme--violet",lime:"button__theme--lime"}},defaultVariants:{variant:"default",size:"default",theme:"default"},compoundVariants:[]}),u=o.forwardRef((e,t)=>{let{className:a,variant:o,size:d,theme:u,asChild:s=!1,...c}=e,m=s?r.g7:"button";return(0,n.jsx)(m,{className:(0,l.cn)(i({variant:o,size:d,theme:u}),a),ref:t,...c})});u.displayName="Button"},87912:function(e,t,a){a.d(t,{NI:function(){return y},Wi:function(){return c},l0:function(){return u},lX:function(){return f},pf:function(){return N},xJ:function(){return _},zG:function(){return h}});var n=a(20881),o=a(64149),r=a(63203),d=a(11927),l=a(30638),i=a(21501);let u=d.RV,s=o.createContext({}),c=e=>{let{...t}=e;return(0,n.jsx)(s.Provider,{value:{name:t.name},children:(0,n.jsx)(d.Qr,{...t})})},m=()=>{let e=o.useContext(s),t=o.useContext(p),{getFieldState:a,formState:n}=(0,d.Gc)(),r=a(e.name,n);if(!e)throw Error("useFormField should be used within <FormField>");let{id:l}=t;return{id:l,name:e.name,formItemId:"".concat(l,"-form-item"),formDescriptionId:"".concat(l,"-form-item-description"),formMessageId:"".concat(l,"-form-item-message"),...r}},p=o.createContext({}),_=o.forwardRef((e,t)=>{let{className:a,...r}=e,d=o.useId();return(0,n.jsx)(p.Provider,{value:{id:d},children:(0,n.jsx)("div",{ref:t,className:(0,l.cn)("space-y-2",a),...r})})});_.displayName="FormItem";let f=o.forwardRef((e,t)=>{let{className:a,...o}=e,{error:r,formItemId:d}=m();return(0,n.jsx)(i._,{ref:t,className:(0,l.cn)(r&&"text-destructive",a),htmlFor:d,...o})});f.displayName="FormLabel";let y=o.forwardRef((e,t)=>{let{...a}=e,{error:o,formItemId:d,formDescriptionId:l,formMessageId:i}=m();return(0,n.jsx)(r.g7,{ref:t,id:d,"aria-describedby":o?"".concat(l," ").concat(i):"".concat(l),"aria-invalid":!!o,...a})});y.displayName="FormControl";let N=o.forwardRef((e,t)=>{let{className:a,...o}=e,{formDescriptionId:r}=m();return(0,n.jsx)("p",{ref:t,id:r,className:(0,l.cn)("text-sm text-muted-foreground",a),...o})});N.displayName="FormDescription";let h=o.forwardRef((e,t)=>{let{className:a,children:o,...r}=e,{error:d,formMessageId:i}=m(),u=d?String(null==d?void 0:d.message):o;return u?(0,n.jsx)("p",{ref:t,id:i,className:(0,l.cn)("!text-sm font-medium text-destructive",a),...r,children:u}):null});h.displayName="FormMessage"},21501:function(e,t,a){a.d(t,{_:function(){return u}});var n=a(20881),o=a(64149),r=a(6321),d=a(20116),l=a(30638);let i=(0,d.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=o.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,n.jsx)(r.f,{ref:t,className:(0,l.cn)(i(),a),...o})});u.displayName=r.f.displayName},70728:function(e,t,a){a.d(t,{Ces:function(){return I},H1N:function(){return N},JCn:function(){return y},M2P:function(){return h},S9N:function(){return A},Tey:function(){return L},aEv:function(){return b},gFR:function(){return g},tAh:function(){return w},uug:function(){return ec}});var n=a(60175),o=a(9761),r=a(43903),d=a(87173),l=a(55094),i=a(11328),u=a(40137),s=a(90119),c=a(44644),m=a(21912),p=a(10679),_=a(34510),f=a(48721);let y=["Entered","Scheduled","In Progress","Completed","Discarded","Published"],N=["gpt-3","gpt-4"],h=["NoFollow","DoFollow","Unknown","Unlinked","Sponsored"],b=["In Review","Not Selected","Published","Scheduled","Approved","Submitted","Initial","Claimed"],I=["Initial","Generating Interview","Interview Created","Interview Submitted","Approved","Claimed","Scheduled","Not Selected","Published"],L=["Quotes Only","Article"],w=["Adding a Greeting or Signoff","Headings","Non-verbatim Responses","Responding on Behalf of Someone Else","Generic Information","Facts or Examples with No Reference","Self-Promotion","Broad Response","Not Speaking from Experience (Quote and Profile Misalignment)","Common AI Phrase(s) Detected"],A=["HubSpot","Wix","WordPress"],g=["Profile","Expert Page","Account","Answer","Bylined Article","Interview"],v=(0,n.OP)("featured_db"),B=v.enum("integration_request_type",A),P=v.enum("report_status",["Active","Resolved","Rejected"]),k=v.enum("report_type",g),x=v.enum("email_domain_status",["Verified","Unresolvable","Blocked"]),U=v.enum("last_view",["Expert","Publisher"]),D=v.enum("content_strategy_status",["Processing","Completed","Failed"]),T=v.enum("report_answer_category",["Spam","Inappropriate Credential","Plagiarism","Poorly Written","AI Written","Hate Speech","Harassment and Bullying","Other"]),q=v.enum("service",["Website","Backend"]),K=v.enum("action_status",["Success","Failure"]),O=v.enum("stripe_subscription_status",["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused"]),S=v.enum("stripe_subscription_frequency",["month","year"]),R=v.enum("stripe_subscription_type",["Business","Pro","Starter"]),E=v.enum("expert_email_status",["Panelist Notified","Processing"]),j=v.enum("notified_panelist_blog_status",["Multiple Potential Blogs Found.","Not Found.","Found."]),C=v.enum("publisher_email_status",["Initial","First Follow Up","Second Follow Up","Third Follow Up","Discarded"]),F=v.enum("question_editor_status",["Add Quotes","Edit Document","Delivered","Discarded"]),Q=v.enum("account_type",["Internal User","User","Editor","Editor Plus"]),H=v.enum("member_type",["Expert Contributor","Publishing Assistant","Client"]),z=v.enum("sanity_provider",["GoDaddy","Namecheap"]),M=v.enum("featured_question_status",y),W=v.enum("article_type",L),V=v.enum("discarded_by",["Publisher","Featured","User"]),J=v.enum("attribution_type",h),G=v.enum("bylined_article_status",b),Y=v.enum("interview_response_status",I),X=v.enum("post_type",["Q&A","Bylined Article","Interview","Sponsored Content","AI Generated"]),$=v.enum("answer_status",["In Review","Draft","Selected","Published","Not Selected"]),Z=v.enum("aas_removal_reason",["Answer Violated Content Policy","Flagged Profile","Plagiarism Detected","Answer is not related to the question","Too similar to a previously selected answer","Panelist has low job relevancy","Duplicate Linkedin already selected","Panelist did not have enough selection points to be selected","Depreciated - AI written","Depreciated - low readability"]),ee=v.enum("answer_issue",["Rejected by the publisher","Duplicate content identified","Active profile hold","Responded on behalf of someone else","Non-verbatim Response"]),et=v.enum("bylined_article_publisher_opt_in_status",["Pending Review","Not Approved","Opted Out","Active"]),ea=v.enum("question_selection_category",["Named Entity Recognition (NER)","Tips and Strategies","Experiences and Insights","Comparisons and Evaluations","Scenarios and Predictions"]),en=v.enum("interview_claim_status",["Initial","Approved","Claimed","Rejected"]),eo=v.enum("interview_publisher_opt_in_status",["Pending Review","Not Approved","Opted Out","Active"]),er=v.enum("sponsored_content_status",["Initial","Paid","Approved","Processing","Completed","Published","Rejected"]),ed=v.enum("feedback_status",["Love It!","It is Okay","Not Great","Hate It!"]),el=v.enum("hold_conversation_status",["Removal Requested","Removal Rejected","Removal Accepted"]),ei=v.enum("bylined_article_claim_status",["Initial","Approved","Claimed","Rejected"]),eu=v.enum("source_type",["Sanity","WordPress"]),es=v.enum("ai_model_type",["GPT35Turbo","GPT4","GPT4o","gemini-pro","gemini-flash"]),ec=["Misleading/inaccurate text Identified in quote submission(s)","Overly Optimized Anchor Text","Company URL Issue","Not correctly submitting on behalf of someone else","Headshot Image Issue","Unable to Verify Employment Information","Unable to Verify Expertise","Unable to Verify Identity","LinkedIn URL Issue","Other","Internal Flag","LI and Attribution Misalignment","LI Leading To Company Page"],em=v.enum("profile_hold_reason",ec),ep=v.enum("perk_category",["SEO","Other"]),e_=v.enum("image_generation_status",["In Progress","Completed","Failed"]),ef=v.enum("notification_type",["warning","information","success","error"]),ey=v.enum("publisher_embedding_content_type",["Interview","Bylined Article"]),eN=v.enum("outreach_email_status",["Email Not Sent","First Email"]),eh=v.enum("profile_hold_status",["Active","Removal Requested","Removal Rejected","Removed"]),eb=v.enum("login_provider",["LinkedIn","Email","Twitter","Cache"]),eI=v.enum("quote_help_type",w),eL=v.enum("email_tracking_token_type",["Internal Outreach","Alerts"]),ew=v.enum("alerts_emails_status",["Not Sent","Sent"]),eA=v.enum("automatic_answer_selection_removal_reasons",["Answer Violated Content Policy","Flagged Profile","Plagiarism Detected","Answer is not related to the question","Duplicate Linkedin already selected","Quality score is too low","Answer talked about too many topics","Another answer had more selection points"]),eg=v.table("account",{accountId:(0,o.eP)("account_id").primaryKey(),firstName:(0,r.fL)("first_name").notNull(),lastName:(0,r.fL)("last_name").notNull(),imageSrc:(0,r.fL)("image_src"),email:(0,r.fL)("email").notNull(),password:(0,r.fL)("password"),isActive:(0,d.O7)("is_active").notNull().default(!0),isVerified:(0,d.O7)("is_verified").notNull().default(!1),passwordToken:(0,r.fL)("password_token"),tokenExpires:(0,l.AB)("token_expires",{mode:"date"}),verifyToken:(0,r.fL)("verify_token"),verifyTokenExpires:(0,l.AB)("verify_token_expires"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),types:Q("types").array().notNull(),alertKeywords:(0,r.fL)("alert_keywords").array(),alertSources:(0,i._L)("alert_sources").references(()=>eP.sourceId).array(),lastView:U("last_view").notNull().default("Expert"),personalId:(0,i._L)("personal_id"),verifiedAt:(0,l.AB)("verified_at",{mode:"date"})},e=>({unq:(0,u.Tw)().on(e.email)})),ev=v.table("team",{teamId:(0,o.eP)("team_id").primaryKey(),ownerId:(0,o.eP)("owner_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),teamName:(0,r.fL)("team_name").notNull()});(0,f.lE)(eg,e=>{let{one:t,many:a}=e;return{teamDetails:t(ev,{fields:[eg.accountId],references:[ev.ownerId]}),profile:a(eB)}});let eB=v.table("profile",{profileId:(0,o.eP)("profile_id").primaryKey(),ownerId:(0,i._L)("owner_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),firstName:(0,r.fL)("first_name").notNull(),lastName:(0,r.fL)("last_name").notNull(),imageSrc:(0,r.fL)("image_src"),identityLink:(0,r.fL)("identity_link").notNull(),company:(0,r.fL)("company"),companyWebsite:(0,r.fL)("company_website"),jobTitle:(0,r.fL)("job_title").notNull(),isFlagged:(0,d.O7)("is_flagged").notNull().default(!1),notes:(0,r.fL)("notes"),isWebsiteVerified:(0,d.O7)("is_website_verified").notNull().default(!1),isIdentityVerified:(0,d.O7)("is_identity_verified").notNull().default(!1),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),optOut:(0,d.O7)("opt_out").notNull().default(!1),isActive:(0,d.O7)("is_active").notNull().default(!0),companyWebsiteDescription:(0,r.fL)("company_website_description"),personalId:(0,i._L)("personal_id"),ccEmails:(0,r.fL)("cc_emails").array(),genuine:(0,d.O7)("genuine").notNull().default(!1),showOnProfile:(0,d.O7)("show_on_profile").notNull().default(!0)},e=>({ownerIndex:(0,s.Kz)("owner_index").on(e.ownerId)}));(0,f.lE)(eB,e=>{let{one:t}=e;return{owner:t(eg,{fields:[eB.ownerId],references:[eg.accountId]})}}),v.table("quote_help",{quoteHelpId:(0,o.eP)("quote_help_id").primaryKey(),answerId:(0,i._L)("answer_id").references(()=>eD.answerId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),quoteHelpType:eI("quote_help_type").notNull().array(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()}),v.table("team_member",{memberId:(0,o.eP)("member_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId).notNull(),teamId:(0,i._L)("team_id").references(()=>ev.teamId).notNull(),memberTypes:H("member_types").array().notNull(),profiles:(0,i._L)("profiles").references(()=>eB.profileId).array(),sources:(0,i._L)("sources").references(()=>eP.sourceId).array(),isActive:(0,d.O7)("is_active").notNull().default(!0),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),deactivatedDate:(0,c.hT)("deactivated_date",{mode:"date"})},e=>({unq:(0,u.Tw)().on(e.accountId,e.teamId)}));let eP=v.table("publication_source",{sourceId:(0,o.eP)("source_id").primaryKey(),sourceName:(0,r.fL)("source_name").notNull(),sourceUrl:(0,r.fL)("source_url").notNull(),sourceFavicon:(0,r.fL)("source_favicon"),slug:(0,r.fL)("slug").notNull(),isActive:(0,d.O7)("is_active").notNull().default(!1),domainRating:(0,m.kw)("domain_rating"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),isExclusive:(0,d.O7)("is_exclusive").notNull().default(!1),websiteMetaDescription:(0,r.fL)("website_meta_description"),audience:(0,r.fL)("audience").array(),rssFeedUrl:(0,r.fL)("rss_feed_url"),oldSourceIds:(0,i._L)("old_source_ids").array(),oldPublisherIds:(0,i._L)("old_publisher_ids").array()},e=>({unqSourceUrl:(0,u.Tw)().on(e.sourceUrl),unqSlug:(0,u.Tw)().on(e.slug),unqName:(0,u.Tw)().on(e.sourceName)}));v.table("wordpress_source",{sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),wordpressAuthUrl:(0,r.fL)("wordpress_auth_url").notNull(),authToken:(0,r.fL)("auth_token").notNull(),baseUrl:(0,r.fL)("base_url").notNull(),username:(0,r.fL)("username").notNull(),instantPublish:(0,d.O7)("instant_publish").notNull().default(!0),webhookSecret:(0,r.fL)("webhook_secret")}),v.table("sanity_source",{sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),projectId:(0,r.fL)("project_id").notNull(),dataset:(0,r.fL)("dataset").notNull().default("production"),description:(0,r.fL)("description").notNull(),provider:z("provider").notNull(),editorToken:(0,r.fL)("editor_token").notNull(),readToken:(0,r.fL)("read_token").notNull(),webhookId:(0,r.fL)("webhook_id").notNull(),webhookSecret:(0,r.fL)("webhook_secret").notNull(),revalidateSecret:(0,r.fL)("revalidate_secret").notNull(),recaptchaKey:(0,r.fL)("recaptcha_key").notNull(),recaptchaSecret:(0,r.fL)("recaptcha_secret").notNull(),rssFeedUrls:(0,r.fL)("rss_feed_urls").array(),websiteAuthorId:(0,r.fL)("website_author_id").notNull(),version:(0,r.fL)("version").notNull().default("v2"),fonts:(0,r.fL)("fonts").notNull(),theme:(0,r.fL)("theme").notNull(),isWebsiteReady:(0,d.O7)("is_website_ready").notNull().default(!1),outreachIndustries:(0,r.fL)("outreach_industries").array(),outreachLocations:(0,r.fL)("outreach_locations").array(),outreachJobTitles:(0,r.fL)("outreach_job_titles").array(),dealCategory:(0,r.fL)("deal_category").array()});let ek=v.table("featured_question",{featuredQuestionId:(0,o.eP)("featured_question_id").primaryKey(),publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),deliveryDate:(0,c.hT)("delivery_date",{mode:"date"}).notNull(),deliveryDateTimestamp:(0,l.AB)("delivery_date_timestamp",{mode:"date"}),publisherQuestion:(0,r.fL)("publisher_question").notNull(),rewordedQuestion:(0,r.fL)("reworded_question"),tags:(0,r.fL)("tags").array(),status:M("status").notNull().default("Entered"),articleType:W("article_type").notNull().default("Article"),jobRelevanceThreshold:(0,i._L)("job_relevance_threshold"),estimatedPublicationDate:(0,c.hT)("estimated_publication_date",{mode:"date"}),estimatedPublicationTimestamp:(0,l.AB)("estimated_publication_timestamp",{mode:"date"}),title:(0,r.fL)("title"),closeDate:(0,c.hT)("close_date",{mode:"date"}),closeDateTimestamp:(0,l.AB)("close_date_timestamp",{mode:"date"}),openDate:(0,c.hT)("open_date",{mode:"date"}),openDateTimestamp:(0,l.AB)("open_date_timestamp",{mode:"date"}),isFailedArticle:(0,d.O7)("is_failed_article"),approvedOn:(0,l.AB)("approved_on",{mode:"date"}),docLink:(0,r.fL)("doc_link"),docGenerationTimestamp:(0,l.AB)("doc_generation_timestamp",{mode:"date"}),completedOn:(0,l.AB)("completed_on",{mode:"date"}),comment:(0,r.fL)("comment"),discardedBy:V("discarded_by"),discardedOn:(0,l.AB)("discarded_on",{mode:"date"}),attribution:J("attribution"),publishedTitle:(0,r.fL)("published_title"),hidden:(0,d.O7)("hidden").notNull().default(!1),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),publisherEmailStatus:C("publisher_email_status"),publisherEmailTimestamp:(0,l.AB)("publisher_email_timestamp",{mode:"date"}),publisherNotes:(0,r.fL)("publisher_notes"),conductOutreach:(0,d.O7)("conduct_outreach").default(!1),isIndustryOrTitleSpecific:(0,d.O7)("is_industry_or_title_specific").notNull().default(!0),oldQuestionId:(0,i._L)("old_question_id"),oldPublisherQuestionId:(0,i._L)("old_publisher_question_id"),editorEmail:(0,r.fL)("editor_email").references(()=>eg.email,{onUpdate:"set null",onDelete:"set null"}),editorStatus:F("editor_status"),editorComment:(0,r.fL)("editor_comment"),editorDeliveryTimestamp:(0,l.AB)("editor_delivery_timestamp",{mode:"date"}),questionSelectionCategories:ea("question_selection_categories").array()},e=>({statusDateIndex:(0,s.Kz)("status_date_index").on(e.status,e.closeDate)})),ex=v.table("interview",{interviewId:(0,o.eP)("interview_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),profileId:(0,i._L)("profile_id").references(()=>eB.profileId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),prompt:(0,r.fL)("prompt").notNull(),publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"set null",onDelete:"set null"}),interviewToken:(0,r.fL)("interview_token"),docLink:(0,r.fL)("doc_link"),attribution:J("attribution"),estimatedPublicationDate:(0,c.hT)("estimated_publication_date",{mode:"date"}),estimatedPublicationTimestamp:(0,l.AB)("estimated_publication_timestamp",{mode:"date"}),publishedTitle:(0,r.fL)("published_title"),comment:(0,r.fL)("comment"),plagiarismScore:(0,i._L)("plagiarism_score"),title:(0,r.fL)("title"),expertEmailStatus:E("expert_email_status"),expertEmailTimestamp:(0,l.AB)("expert_email_timestamp"),status:Y("status").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),interviewCreatedOn:(0,l.AB)("interview_created_on",{mode:"date"}),completedOn:(0,l.AB)("completed_on",{mode:"date"}),selectedOn:(0,l.AB)("selected_on",{mode:"date"}),approvedOn:(0,l.AB)("approved_on",{mode:"date"}),approvedBy:(0,r.fL)("approved_by").references(()=>eg.email,{onUpdate:"set null",onDelete:"set null"}),discardedOn:(0,l.AB)("discarded_on",{mode:"date"}),discardedBy:V("discarded_by"),publisherEmailStatus:C("publisher_email_status"),publisherEmailTimestamp:(0,l.AB)("publisher_email_timestamp",{mode:"date"}),featuredImageSrc:(0,r.fL)("featured_image_src"),additionalImageSrc:(0,r.fL)("additional_image_src"),allowAlternateSource:(0,d.O7)("allow_alternate_source").notNull().default(!1),isCredit:(0,d.O7)("is_credit").notNull().default(!1)},e=>({statusIndex:(0,s.Kz)("interview_status_index").on(e.status),profileIndex:(0,s.Kz)("interview_profile_index").on(e.profileId)}));v.table("interview_question",{interviewQuestionId:(0,o.eP)("interview_question_id").primaryKey(),interviewId:(0,i._L)("interview_id").references(()=>ex.interviewId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),questionOrder:(0,i._L)("question_order").notNull(),question:(0,r.fL)("question").notNull(),response:(0,r.fL)("response"),responseHtml:(0,r.fL)("response_html"),responseLink:(0,r.fL)("response_link"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()});let eU=v.table("published_content",{publishedId:(0,o.eP)("published_id").primaryKey(),publishedLink:(0,r.fL)("published_link").notNull(),publishDate:(0,c.hT)("publish_date",{mode:"date"}),type:X("type").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),identifier:(0,i._L)("identifier"),traffic:(0,m.kw)("traffic"),featuredImageSrc:(0,r.fL)("featured_image_src"),featuredProfiles:(0,i._L)("featured_profiles").references(()=>eB.profileId).array(),isVerified:(0,d.O7)("is_verified").notNull().default(!1)},e=>({unq:(0,u.Tw)().on(e.type,e.identifier)}));v.table("sanity_post",{publishedId:(0,i._L)("published_id").references(()=>eU.publishedId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),key:(0,r.fL)("key").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("wordpress_post",{publishedId:(0,i._L)("published_id").references(()=>eU.publishedId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),wordpressPostId:(0,i._L)("wordpress_post_id").notNull(),featuredImageId:(0,i._L)("featured_image_id"),featuredImageLink:(0,r.fL)("featured_image_link"),createdAt:(0,l.AB)("created_at",{mode:"date"}).defaultNow().notNull(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).defaultNow().notNull()});let eD=v.table("answer",{answerId:(0,o.eP)("answer_id").primaryKey(),answer:(0,r.fL)("answer"),featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),profileId:(0,i._L)("profile_id").references(()=>eB.profileId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),preSelected:(0,d.O7)("pre_selected"),accepted:(0,d.O7)("accepted").notNull().default(!1),isFree:(0,d.O7)("is_free").notNull(),answerIssue:ee("answer_issue"),status:$("status").notNull(),summary:(0,r.fL)("summary"),plagiarism:(0,m.kw)("plagiarism"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),submittedAt:(0,l.AB)("submitted_at",{mode:"date"}),discardedBy:V("discarded_by"),discardedOn:(0,l.AB)("discarded_on",{mode:"date"}),selectedOn:(0,l.AB)("selected_on",{mode:"date"}),docAttribution:(0,r.fL)("doc_attribution"),expertEmailStatus:E("expert_email_status"),expertEmailTimestamp:(0,l.AB)("expert_email_timestamp",{mode:"date"}),aiHelpUsed:(0,d.O7)("ai_help_used").notNull().default(!1),token:(0,r.fL)("token"),isCredit:(0,d.O7)("is_credit").notNull().default(!1),publishedTimestamp:(0,l.AB)("published_timestamp",{mode:"date"})},e=>({unq:(0,u.Tw)().on(e.featuredQuestionId,e.profileId),statusProfileIndex:(0,s.Kz)("status_profile_imdex").on(e.profileId,e.status),statusIndex:(0,s.Kz)("status_index").on(e.status)}));v.table("skipped_content",{skippedContentId:(0,o.eP)("skipped_content_id").primaryKey(),identifier:(0,i._L)("identifier").notNull(),sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),type:X("type").notNull(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()},e=>({unq:(0,u.Tw)().on(e.type,e.identifier,e.accountId)})),v.table("restored_content",{restoredContentId:(0,o.eP)("restored_content_id").primaryKey(),identifier:(0,i._L)("identifier").notNull(),type:X("type").notNull(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).notNull()});let eT=v.table("publisher",{publisherId:(0,o.eP)("publisher_id").primaryKey(),ownerId:(0,i._L)("owner_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),isActive:(0,d.O7)("is_active").notNull().default(!1),isFlagged:(0,d.O7)("is_flagged").notNull().default(!1),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),comment:(0,r.fL)("comment"),keywords:(0,r.fL)("keywords").array(),oldPublisherId:(0,i._L)("old_publisher_id")},e=>({unq:(0,u.Tw)().on(e.ownerId,e.sourceId)})),eq=v.table("sponsored_content_pricing",{sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),retailPrice:(0,m.kw)("retail_price").notNull(),featuredPrice:(0,m.kw)("featured_price").notNull(),isComplete:(0,d.O7)("is_complete").notNull().default(!1),productId:(0,r.fL)("product_id"),attribution:J("attribution").notNull().default("Sponsored"),currency:(0,r.fL)("currency").notNull().default("USD"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),eK=v.table("sponsored_content_request",{sponsoredContentRequestId:(0,o.eP)("sponsored_content_request_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),primaryUrl:(0,r.fL)("primary_url").notNull(),anchorText:(0,r.fL)("anchor_text").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),oldRequestId:(0,i._L)("old_request_id")});v.table("sponsored_content_order",{sponsoredContentOrderId:(0,o.eP)("sponsored_content_order_id").primaryKey(),sponsoredContentRequestId:(0,i._L)("sponsored_content_request_id").references(()=>eK.sponsoredContentRequestId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),sourceId:(0,i._L)("source_id").references(()=>eq.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),acceptedAt:(0,l.AB)("accepted_at",{mode:"date"}),fulfilledAt:(0,l.AB)("fulfilled_at",{mode:"date"}),rejectedAt:(0,l.AB)("rejected_at",{mode:"date"}),paidAt:(0,l.AB)("paid_at",{mode:"date"}),sessionId:(0,r.fL)("session_id").notNull(),publishedTitle:(0,r.fL)("published_title"),docLink:(0,r.fL)("doc_link"),status:er("status").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),comment:(0,r.fL)("comment")}),v.table("affiliate_perk",{perkId:(0,o.eP)("perk_id").primaryKey(),partnerName:(0,r.fL)("partner_name").notNull(),partnerLogo:(0,r.fL)("partner_logo").notNull(),isFeatured:(0,d.O7)("is_featured").notNull().default(!1),categories:ep("categories").array().notNull(),perkText:(0,r.fL)("perk_text").notNull(),redeemLink:(0,r.fL)("redeem_link").notNull(),isActive:(0,d.O7)("is_active").notNull(),perkDescription:(0,r.fL)("perk_description").notNull(),extendedDescription:(0,r.fL)("extended_description")},e=>({unq:(0,u.Tw)().on(e.partnerName)})),v.table("holiday",{date:(0,c.hT)("date",{mode:"date"}).primaryKey()}),v.table("image_generation_job",{jobId:(0,o.eP)("job_id").primaryKey(),status:e_("status").notNull(),prompt:(0,r.fL)("prompt").notNull(),imageSrc:(0,r.fL)("image_src"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("notified_panelist",{notifiedId:(0,o.eP)("notified_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),publishedId:(0,i._L)("published_id").references(()=>eU.publishedId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow()},e=>({unq:(0,u.Tw)().on(e.accountId,e.publishedId)})),v.table("question_slug",{featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),slug:(0,r.fL)("slug").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("stripe_customer",{accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),customerId:(0,r.fL)("customer_id").notNull()},e=>({unq:(0,u.Tw)().on(e.customerId)})),v.table("stripe_subscription",{subscriptionId:(0,r.fL)("subscription_id").primaryKey(),subscriptionType:R("subscription_type").notNull(),subscriptionStatus:O("subscription_status").notNull(),periodStart:(0,c.hT)("period_start",{mode:"date"}).notNull(),periodEnd:(0,c.hT)("period_end",{mode:"date"}).notNull(),frequency:S("frequency").notNull(),quantity:(0,i._L)("quantity").notNull(),priceId:(0,r.fL)("price_id").notNull(),itemId:(0,r.fL)("item_id").notNull(),scheduleId:(0,r.fL)("schedule_id"),cancelsAtPeriodEnd:(0,d.O7)("cancels_at_period_end").notNull(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),isActive:(0,d.O7)("is_active").notNull().default(!0),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("skipped_source",{skipId:(0,o.eP)("skip_id").primaryKey(),sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull()},e=>({unq:(0,u.Tw)().on(e.sourceId,e.accountId)})),v.table("login_tracker",{loginId:(0,o.eP)("login_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull(),provider:eb("provider").notNull(),ipAddress:(0,r.fL)("ip_address"),userAgent:(0,r.fL)("user_agent")},e=>({accountIndex:(0,s.Kz)("account_index").on(e.accountId)})),v.table("alerts_preference",{accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),marketingInformation:(0,d.O7)("marketing_information").notNull().default(!0),notifyPanelists:(0,d.O7)("notify_panelists").notNull().default(!0),personalizedOpportunities:(0,d.O7)("personalized_opportunities").notNull().default(!0),answerHelp:(0,d.O7)("answer_help").notNull().default(!0)}),v.table("notification",{notificationId:(0,o.eP)("notification_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),title:(0,r.fL)("title"),message:(0,r.fL)("message").notNull(),links:(0,p.JB)("links").$type().default([]),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow(),type:ef("type").notNull().default("information"),isArchived:(0,d.O7)("is_archived").notNull().default(!1),isRead:(0,d.O7)("is_read").notNull().default(!1)}),v.table("apollo_profile",{apolloProfileId:(0,o.eP)("apollo_profile_id").primaryKey(),email:(0,r.fL)("email").notNull(),linkedinUrl:(0,r.fL)("linkedin_url").notNull(),apolloProfile:(0,p.JB)("apollo_profile").notNull(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow()},e=>({unqEmail:(0,u.Tw)().on(e.email),unqLinkedinUrl:(0,u.Tw)().on(e.linkedinUrl)})),v.table("apollo_title_page_number",{apolloTitlePageNumberId:(0,o.eP)("apollo_title_page_number_id").primaryKey(),title:(0,r.fL)("title").notNull(),industry:(0,r.fL)("industry").default("no industry"),location:(0,r.fL)("location").default("no location"),pageNumber:(0,i._L)("page_number").notNull(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow(),timesLooped:(0,i._L)("times_looped").notNull().default(0),lastLoopedTimestamp:(0,l.AB)("last_looped_timestamp",{mode:"date"})},e=>({unq:(0,u.Tw)().on(e.title,e.industry,e.location)})),v.table("automatic_answers_result",{automaticAnswersResultId:(0,o.eP)("automatic_answers_result_id").primaryKey(),answerId:(0,i._L)("answer_id").references(()=>eD.answerId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),jobRelevancePoints:(0,m.kw)("job_relevance_points"),newUserPoints:(0,m.kw)("new_user_points"),retentionPoints:(0,m.kw)("retention_points"),outreachPoints:(0,m.kw)("outreach_points"),tooManySelectionsRemovalPoints:(0,m.kw)("too_many_selections_removal_points"),notTemplatePoints:(0,m.kw)("not_template_points"),actionableInsightPoints:(0,m.kw)("actionable_insight_points"),credibilityPoints:(0,m.kw)("credibility_points"),uniquePerspectivePoints:(0,m.kw)("unique_perspective_points"),selectionPoints:(0,m.kw)("selection_points"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),removalReason:Z("removal_reason")},e=>({unq:(0,u.Tw)().on(e.answerId),jobRelevancePoints:(0,s.Kz)("job_relevance_points_index").on(e.jobRelevancePoints)})),v.table("external_outreach",{externalOutreachId:(0,o.eP)("external_outreach_id").primaryKey(),featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),email:(0,r.fL)("email").notNull(),status:eN("status").notNull().default("Email Not Sent"),senderEmail:(0,r.fL)("sender_email"),firstName:(0,r.fL)("first_name").notNull(),lastName:(0,r.fL)("last_name"),linkedinUrl:(0,r.fL)("linkedin_url"),company:(0,r.fL)("company"),jobTitle:(0,r.fL)("job_title"),companyWebsite:(0,r.fL)("company_website"),emailTimestamp:(0,l.AB)("email_timestamp",{mode:"date"})},e=>({unq:(0,u.Tw)().on(e.featuredQuestionId,e.email)})),v.table("content_strategy",{contentStrategyId:(0,o.eP)("content_strategy_id").primaryKey(),topics:(0,r.fL)("topics").array().notNull(),sheetUrl:(0,r.fL)("sheet_url"),status:D("status").notNull().default("Processing"),publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("do_not_contact_email",{doNotContactEmailId:(0,o.eP)("do_not_contact_email_id").primaryKey(),emailFragment:(0,r.fL)("email_fragment").notNull(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow()},e=>({unqEmail:(0,u.Tw)().on(e.emailFragment)})),v.table("internal_outreach",{internalOutreachId:(0,o.eP)("internal_outreach_id").primaryKey(),featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),profileId:(0,i._L)("profile_id").references(()=>eB.profileId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),status:eN("status").notNull().default("Email Not Sent"),senderEmail:(0,r.fL)("sender_email"),emailTimestamp:(0,l.AB)("email_timestamp",{mode:"date"})},e=>({unq:(0,u.Tw)().on(e.featuredQuestionId,e.profileId)})),v.table("profile_history",{profileHistoryId:(0,o.eP)("profile_history_id").primaryKey(),profileId:(0,i._L)("profile_id").references(()=>eB.profileId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),field:(0,r.fL)("field").notNull(),oldValue:(0,r.fL)("old_value"),newValue:(0,r.fL)("new_value"),updatedBy:(0,i._L)("updated_by").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow()});let eO=v.table("profile_hold",{profileHoldId:(0,o.eP)("profile_hold_id").primaryKey(),profileId:(0,i._L)("profile_id").references(()=>eB.profileId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),reason:em("reason").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),status:eh("status").notNull().default("Active"),removedAt:(0,l.AB)("removed_at",{mode:"date"})}),eS=v.table("hold_conversation",{holdConversationId:(0,o.eP)("hold_conversation_id").primaryKey(),isInternal:(0,d.O7)("is_internal").notNull().default(!0),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),profileHoldId:(0,i._L)("profile_hold_id").references(()=>eO.profileHoldId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),status:el("status").notNull(),note:(0,r.fL)("note").notNull().default("Reinstatement Requested"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()});(0,f.lE)(eO,e=>{let{many:t}=e;return{conversations:t(eS)}}),(0,f.lE)(eS,e=>{let{one:t}=e;return{author:t(eO,{fields:[eS.profileHoldId],references:[eO.profileHoldId]})}});let eR=v.table("feature",{featureId:(0,o.eP)("feature_id").primaryKey(),featureName:(0,r.fL)("feature_name").notNull(),deploymentDate:(0,c.hT)("deployment_date",{mode:"date"}).notNull().defaultNow()});v.table("feedback",{feedbackId:(0,o.eP)("feedback_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),featureId:(0,i._L)("feature_id").references(()=>eR.featureId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),status:ed("status").notNull(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow()}),v.table("migration_source_mapping",{migrationSourceId:(0,o.eP)("migration_source_id").primaryKey(),oldSourceId:(0,i._L)("old_source_id"),sourceId:(0,i._L)("source_id")}),v.table("notified_panelist_blog_monitoring",{featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),checkedUrls:(0,r.fL)("checked_urls").array(),publishedLink:(0,r.fL)("published_link"),featuredProfiles:(0,i._L)("featured_profiles").references(()=>eB.profileId).array(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow(),publishDate:(0,c.hT)("publish_date",{mode:"date"}),featuredImageSrc:(0,r.fL)("featured_image_src"),status:j("status")}),v.table("external_user",{externalUserId:(0,o.eP)("external_user_id").primaryKey(),username:(0,r.fL)("username").notNull(),password:(0,r.fL)("password").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()},e=>({unq:(0,u.Tw)().on(e.username)}));let eE=v.table("bylined_article",{bylinedArticleId:(0,o.eP)("bylined_article_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),profileId:(0,i._L)("profile_id").references(()=>eB.profileId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),plagiarismScore:(0,i._L)("plagiarism_score"),requestedPublishers:(0,i._L)("requested_publishers").references(()=>eT.publisherId).array(),attribution:J("attribution"),articleTitle:(0,r.fL)("article_title").notNull(),docLink:(0,r.fL)("doc_link").notNull(),internalDocLink:(0,r.fL)("internal_doc_link"),byline:(0,r.fL)("byline").notNull(),bylineHtml:(0,r.fL)("byline_html").notNull(),bylineLink:(0,r.fL)("byline_link"),publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"set null",onDelete:"set null"}),submittedAt:(0,l.AB)("submitted_at",{mode:"date"}),comment:(0,r.fL)("comment"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),discardedBy:V("discarded_by"),discardedOn:(0,l.AB)("discarded_on",{mode:"date"}),estimatedPublicationDate:(0,c.hT)("estimated_publication_date",{mode:"date"}),estimatedPublicationTimestamp:(0,l.AB)("estimated_publication_timestamp",{mode:"date"}),expertEmailStatus:E("expert_email_status"),expertEmailTimestamp:(0,l.AB)("expert_email_timestamp",{mode:"date"}),publisherEmailStatus:C("publisher_email_status"),publisherEmailTimestamp:(0,l.AB)("publisher_email_timestamp",{mode:"date"}),selectedOn:(0,l.AB)("selected_on",{mode:"date"}),approvedOn:(0,l.AB)("approved_on",{mode:"date"}),approvedBy:(0,r.fL)("approved_by").references(()=>eg.email,{onUpdate:"set null",onDelete:"set null"}),status:G("status").notNull(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),isCredit:(0,d.O7)("is_credit").notNull().default(!1)},e=>({statusIndex:(0,s.Kz)("bylined_article_status_index").on(e.status),profileIndex:(0,s.Kz)("bylined_article_profile_index").on(e.profileId)}));v.table("publisher_embedding",{publisherEmbeddingId:(0,o.eP)("publisher_embedding_id").primaryKey(),publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),embedding:(0,_.xr)("embedding",{dimensions:256}).notNull(),contentType:ey("content_type").array().notNull()},e=>({unq:(0,u.Tw)().on(e.publisherId)})),v.table("answer_embedding",{answerEmbeddingId:(0,o.eP)("answer_embedding_id").primaryKey(),answerId:(0,i._L)("answer_id").references(()=>eD.answerId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),embedding:(0,_.xr)("embedding",{dimensions:256}).notNull()},e=>({unq:(0,u.Tw)().on(e.answerId)})),v.table("alerts_email",{alertsEmailId:(0,o.eP)("alerts_email_id").primaryKey(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),featuredQuestionIds:(0,i._L)("featured_question_ids").references(()=>ek.featuredQuestionId).array().notNull(),status:ew("status").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("email_tracking_token",{emailTrackingTokenId:(0,o.eP)("email_tracking_token_id").primaryKey(),featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),profileId:(0,i._L)("profile_id").references(()=>eB.profileId,{onUpdate:"cascade",onDelete:"cascade"}),token:(0,r.fL)("token").notNull(),type:eL("type").notNull(),tokenExpires:(0,l.AB)("token_expires",{mode:"date"}),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()},e=>({unqToken:(0,u.Tw)().on(e.token),unqAnswer:(0,u.Tw)().on(e.profileId,e.featuredQuestionId)})),v.table("question_embedding",{questionEmbeddingId:(0,o.eP)("question_embedding_id").primaryKey(),featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),embedding:(0,_.xr)("embedding",{dimensions:256}).notNull()},e=>({unq:(0,u.Tw)().on(e.featuredQuestionId)})),v.table("login_token",{accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),secret:(0,r.fL)("secret").notNull().primaryKey(),isActive:(0,d.O7)("is_active").notNull().default(!0),expiresAt:(0,l.AB)("expires_at",{mode:"date"})}),v.table("featured_quote",{featuredQuoteId:(0,o.eP)("featured_quote_id").primaryKey(),quote:(0,r.fL)("quote").notNull(),attribution:(0,p.JB)("attribution").notNull().$type(),token:(0,r.fL)("token").notNull(),featuredImageUrl:(0,r.fL)("featured_image_url"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()},e=>({unq:(0,u.Tw)().on(e.token)})),v.table("saved_question",{savedQuestionId:(0,o.eP)("saved_question_id").primaryKey(),featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()},e=>({unq:(0,u.Tw)().on(e.featuredQuestionId,e.accountId)})),v.table("automatic_answer_selection_result",{automaticAnswerSelectionResultId:(0,o.eP)("automatic_answer_selection_result_id").primaryKey(),answerId:(0,i._L)("answer_id").references(()=>eD.answerId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),qualityScore:(0,m.kw)("quality_score"),qualityScoreReason:(0,r.fL)("quality_score_reason"),newUserPoints:(0,m.kw)("new_user_points"),outreachPoints:(0,m.kw)("outreach_points"),selectionPoints:(0,m.kw)("selection_points"),clusters:(0,r.fL)("clusters").array(),removalReasons:eA("removal_reasons").array(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),jobRelevanceScore:(0,m.kw)("job_relevance_score"),jobRelevanceScoreReason:(0,r.fL)("job_relevance_score_reason"),version:(0,r.fL)("version")},e=>({unq:(0,u.Tw)().on(e.answerId)})),v.table("exception",{exceptionId:(0,o.eP)("exception_id").primaryKey(),value:(0,r.fL)("value").notNull(),category:(0,r.fL)("category").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()},e=>({unq:(0,u.Tw)().on(e.value,e.category)}));let ej=v.enum("outreach_email_Sender_address",["Elizabeth Stephens <elizabeth@featured.com>","Sarah Mitchell <sarah@featured.com>","Jessica Hughes <jessica@featured.com>","Emily Stone <emily@featured.com>"]);v.table("outreach_email_sender",{outreachEmailSenderId:(0,o.eP)("outreach_email_sender_id").primaryKey(),featuredQuestionId:(0,i._L)("featured_question_id").references(()=>ek.featuredQuestionId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),senderAddress:ej("sender_address").notNull()},e=>({unq:(0,u.Tw)().on(e.featuredQuestionId)})),v.table("action",{actionId:(0,o.eP)("action_id").primaryKey(),name:(0,r.fL)("name").notNull(),status:K("status").notNull(),service:q("service").notNull(),timestamp:(0,l.AB)("timestamp",{mode:"date"}).notNull().defaultNow(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}),params:(0,p.JB)("params"),keys:(0,r.fL)("keys").array(),notes:(0,r.fL)("notes")},e=>({rangeIndex:(0,s.Kz)("range_index").on(e.timestamp.desc())})),v.table("static_token",{token:(0,r.fL)("token").primaryKey(),category:(0,r.fL)("category"),isActive:(0,d.O7)("is_active").notNull().default(!0),createdAt:(0,l.AB)("created_at").notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at").notNull().defaultNow()}),v.table("bylined_article_claim",{bylinedArticleClaimId:(0,o.eP)("bylined_article_claim_id").primaryKey(),bylinedArticleId:(0,i._L)("bylined_article_id").references(()=>eE.bylinedArticleId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),status:ei("status").notNull().default("Initial"),docUrl:(0,r.fL)("doc_url"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),comment:(0,r.fL)("comment")},e=>({unq:(0,u.Tw)().on(e.bylinedArticleId,e.publisherId)})),v.table("bylined_article_publisher_opt_in",{publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"cascade",onDelete:"cascade"}).notNull().primaryKey(),keywords:(0,r.fL)("keywords").array().notNull(),status:et("status").notNull(),comment:(0,r.fL)("comment"),approvedBy:(0,r.fL)("approved_by").references(()=>eg.email,{onUpdate:"set null",onDelete:"set null"}),approvedOn:(0,l.AB)("approved_on",{mode:"date"}),discardedBy:(0,r.fL)("discarded_by").references(()=>eg.email,{onUpdate:"set null",onDelete:"set null"}),discardedOn:(0,l.AB)("discarded_on",{mode:"date"}),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),embedding:(0,_.xr)("embedding",{dimensions:256})},e=>({unq:(0,u.Tw)().on(e.publisherId)})),v.table("interview_claim",{interviewClaimId:(0,o.eP)("interview_claim_id").primaryKey(),interviewId:(0,i._L)("interview_id").references(()=>ex.interviewId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),docUrl:(0,r.fL)("doc_url"),status:en("status").notNull().default("Initial"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),comment:(0,r.fL)("comment")},e=>({unq:(0,u.Tw)().on(e.interviewId,e.publisherId)})),v.table("interview_publisher_opt_in",{publisherId:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"cascade",onDelete:"cascade"}).notNull().primaryKey(),audience:(0,r.fL)("audience").array().notNull(),status:eo("status").notNull(),comment:(0,r.fL)("comment"),approvedBy:(0,r.fL)("approved_by").references(()=>eg.email,{onUpdate:"set null",onDelete:"set null"}),approvedOn:(0,l.AB)("approved_on",{mode:"date"}),discardedBy:(0,r.fL)("discarded_by").references(()=>eg.email,{onUpdate:"set null",onDelete:"set null"}),discardedOn:(0,l.AB)("discarded_on",{mode:"date"}),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),embedding:(0,_.xr)("embedding",{dimensions:256})},e=>({unq:(0,u.Tw)().on(e.publisherId)})),v.table("report_answer",{answerId:(0,i._L)("answer_id").references(()=>eD.answerId,{onUpdate:"cascade",onDelete:"cascade"}).notNull().primaryKey(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),category:T("category").notNull(),comment:(0,r.fL)("comment")}),v.table("credit",{accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull().primaryKey(),amount:(0,i._L)("amount").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("credit_checkout",{checkoutId:(0,r.fL)("checkout_id").primaryKey().notNull(),accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),amount:(0,i._L)("amount").notNull(),paid:(0,d.O7)("paid").notNull().default(!1),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()}),v.table("editor_assignment",{accountId:(0,i._L)("account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull().primaryKey(),publisherIds:(0,i._L)("publisher_id").references(()=>eT.publisherId,{onUpdate:"cascade",onDelete:"cascade"}).array(),sourceTypes:eu("source_type").array(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("universities",{id:(0,o.eP)("id").primaryKey(),name:(0,r.fL)("name").notNull(),country:(0,r.fL)("country").notNull(),alphaTwoCode:(0,r.fL)("alpha_two_code").notNull(),stateProvince:(0,r.fL)("state_province"),domains:(0,r.fL)("domains").array(),webPages:(0,r.fL)("web_pages").array(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("academic_majors",{id:(0,o.eP)("id").primaryKey(),code:(0,r.fL)("code").notNull(),title:(0,r.fL)("title").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("academic_degrees",{id:(0,o.eP)("id").primaryKey(),title:(0,r.fL)("title").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("ai_usage_tracker",{model:es("model").notNull().primaryKey(),inputCharLength:(0,i._L)("input_char_length").notNull(),outputCharLength:(0,i._L)("output_char_length").notNull()});let eC=v.table("expert_page",{expertPageId:(0,o.eP)("expert_page_id").primaryKey(),username:(0,r.fL)("username").notNull(),email:(0,r.fL)("email").notNull().references(()=>eg.email,{onUpdate:"cascade",onDelete:"cascade"}),linkedinUsername:(0,r.fL)("linkedin_username").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow(),isActive:(0,d.O7)("is_active").notNull().default(!0),optOutJournalistContact:(0,d.O7)("opt_out_journalist_contact").notNull().default(!1),isPublic:(0,d.O7)("is_public").notNull().default(!1)},e=>({unq:(0,u.Tw)().on(e.linkedinUsername,e.email),unqUsername:(0,u.Tw)().on(e.username)}));v.table("basic_information",{expertPageId:(0,i._L)("expert_page_id").references(()=>eC.expertPageId,{onUpdate:"cascade",onDelete:"cascade"}).notNull().primaryKey(),firstName:(0,r.fL)("first_name").notNull(),lastName:(0,r.fL)("last_name").notNull(),imageSrc:(0,r.fL)("image_src"),about:(0,r.fL)("about"),pronouns:(0,r.fL)("pronouns"),headline:(0,r.fL)("headline"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("education_credential",{educationCredentialId:(0,o.eP)("education_credential_id").primaryKey(),expertPageId:(0,i._L)("expert_page_id").references(()=>eC.expertPageId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),schoolName:(0,r.fL)("school_name"),degree:(0,r.fL)("degree"),primaryMajor:(0,r.fL)("primary_major"),secondaryMajor:(0,r.fL)("secondary_major"),graduationYear:(0,i._L)("graduation_year"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("location_credential",{locationCredentialId:(0,o.eP)("location_credential_id").primaryKey(),expertPageId:(0,i._L)("expert_page_id").references(()=>eC.expertPageId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),startYear:(0,i._L)("start_year").notNull(),endYear:(0,i._L)("end_year"),isCurrent:(0,d.O7)("is_current").notNull().default(!1),locationName:(0,r.fL)("location_name").notNull(),placeId:(0,r.fL)("place_id").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("expertise_credential",{expertiseCredentialId:(0,o.eP)("expertise_credential_id").primaryKey(),expertPageId:(0,i._L)("expert_page_id").references(()=>eC.expertPageId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),expertise:(0,r.fL)("expertise").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("portfolio_item",{portfolioItemId:(0,o.eP)("portfolio_item_id").primaryKey(),expertPageId:(0,i._L)("expert_page_id").references(()=>eC.expertPageId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),itemUrl:(0,r.fL)("item_url").notNull(),title:(0,r.fL)("title").notNull(),sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"set null",onDelete:"set null"}).notNull(),featuredImageUrl:(0,r.fL)("featured_image_url"),order:(0,i._L)("order").notNull().default(0),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()},e=>({unq:(0,u.Tw)().on(e.expertPageId,e.order)}));let eF=v.table("integration_request",{requestId:(0,o.eP)("request_id").primaryKey(),stateToken:(0,r.fL)("state_token").notNull(),websiteUrl:(0,r.fL)("website_url").notNull(),instantPublish:(0,d.O7)("instant_publish").notNull().default(!1),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),integrationType:B("integration_type").notNull()});v.table("integration_source",{sourceId:(0,i._L)("source_id").references(()=>eP.sourceId,{onUpdate:"cascade",onDelete:"cascade"}).primaryKey(),requestId:(0,i._L)("request_id").references(()=>eF.requestId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),refreshToken:(0,r.fL)("refresh_token"),authorId:(0,r.fL)("author_id").notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),updatedAt:(0,l.AB)("updated_at",{mode:"date"}).notNull().defaultNow()}),v.table("email_domain",{domain:(0,r.fL)("domain").primaryKey(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow(),status:x("status").notNull()}),v.table("report",{reportId:(0,o.eP)("report_id").primaryKey(),identifier:(0,i._L)("identifier"),reportType:k("report_type").notNull(),reportedBy:(0,i._L)("reported_by").references(()=>eg.accountId).notNull(),reason:(0,r.fL)("reason").notNull(),comment:(0,r.fL)("comment"),status:P("status").notNull(),token:(0,r.fL)("token"),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()}),v.table("contact_email",{contactEmailId:(0,o.eP)("contact_email_id").primaryKey(),senderAccountId:(0,i._L)("sender_account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),message:(0,r.fL)("message").notNull(),token:(0,r.fL)("token").notNull(),subject:(0,r.fL)("subject").notNull(),recipientAccountId:(0,i._L)("recipient_account_id").references(()=>eg.accountId,{onUpdate:"cascade",onDelete:"cascade"}).notNull(),createdAt:(0,l.AB)("created_at",{mode:"date"}).notNull().defaultNow()})},30638:function(e,t,a){a.d(t,{Oo:function(){return g},cn:function(){return s},p2:function(){return y},Fq:function(){return b},Ds:function(){return f},VY:function(){return h},XS:function(){return I},fK:function(){return P},dT:function(){return p},z9:function(){return N},ZI:function(){return v},De:function(){return B},xA:function(){return k},q9:function(){return A},Ev:function(){return _},R1:function(){return m},W_:function(){return w},LF:function(){return c},eM:function(){return L}});var n=a(33958),o=a(80714);a(31038),a(1876);var r=a(63405),d=a(32491),l=a(64149),i=JSON.parse('{"1":{"month":49.75,"year":477.6},"2":{"month":49.75,"year":477.6},"3":{"month":49.75,"year":477.6},"4":{"month":49.75,"year":477.6},"5":{"month":49.75,"year":477.6},"6":{"month":48.17,"year":462.4},"7":{"month":45.57,"year":437.49},"8":{"month":43.63,"year":418.8},"9":{"month":42.11,"year":404.27},"10":{"month":40.9,"year":392.64},"11":{"month":39.91,"year":383.13},"12":{"month":39.08,"year":375.2},"13":{"month":38.38,"year":368.49},"14":{"month":37.79,"year":362.74},"15":{"month":37.27,"year":357.76},"16":{"month":36.81,"year":353.4},"17":{"month":36.41,"year":349.55},"18":{"month":36.06,"year":346.13},"19":{"month":35.74,"year":343.07},"20":{"month":35.45,"year":340.32},"21":{"month":35.19,"year":337.83},"22":{"month":34.95,"year":335.56},"23":{"month":34.74,"year":333.5},"24":{"month":34.54,"year":331.6},"25":{"month":34.36,"year":329.86},"26":{"month":34.19,"year":328.25},"27":{"month":34.04,"year":326.76},"28":{"month":33.89,"year":325.37},"29":{"month":33.76,"year":324.08},"30":{"month":33.63,"year":322.88},"31":{"month":33.52,"year":321.75},"32":{"month":33.41,"year":320.7},"33":{"month":33.3,"year":319.71},"34":{"month":33.21,"year":318.78},"35":{"month":33.11,"year":317.9},"36":{"month":33.03,"year":317.07},"37":{"month":32.95,"year":316.28},"38":{"month":32.87,"year":315.54},"39":{"month":32.79,"year":314.83},"40":{"month":32.73,"year":314.16},"41":{"month":32.66,"year":313.52},"42":{"month":32.6,"year":312.91},"43":{"month":32.53,"year":312.33},"44":{"month":32.48,"year":311.78},"45":{"month":32.42,"year":311.25},"46":{"month":32.37,"year":310.75},"47":{"month":32.32,"year":310.26},"48":{"month":32.27,"year":309.8},"49":{"month":32.22,"year":309.36},"50":{"month":32.18,"year":308.93},"51":{"month":31.98,"year":307.03},"52":{"month":31.98,"year":307.03},"53":{"month":31.98,"year":307.03},"54":{"month":31.98,"year":307.03},"55":{"month":31.98,"year":307.03},"56":{"month":31.82,"year":305.44},"57":{"month":31.82,"year":305.44},"58":{"month":31.82,"year":305.44},"59":{"month":31.82,"year":305.44},"60":{"month":31.82,"year":305.44},"61":{"month":31.68,"year":304.1},"62":{"month":31.68,"year":304.1},"63":{"month":31.68,"year":304.1},"64":{"month":31.68,"year":304.1},"65":{"month":31.68,"year":304.1},"66":{"month":31.56,"year":302.95},"67":{"month":31.56,"year":302.95},"68":{"month":31.56,"year":302.95},"69":{"month":31.56,"year":302.95},"70":{"month":31.56,"year":302.95},"71":{"month":31.45,"year":301.95},"72":{"month":31.45,"year":301.95},"73":{"month":31.45,"year":301.95},"74":{"month":31.45,"year":301.95},"75":{"month":31.45,"year":301.95},"76":{"month":31.36,"year":301.08},"77":{"month":31.36,"year":301.08},"78":{"month":31.36,"year":301.08},"79":{"month":31.36,"year":301.08},"80":{"month":31.36,"year":301.08},"81":{"month":31.28,"year":300.31},"82":{"month":31.28,"year":300.31},"83":{"month":31.28,"year":300.31},"84":{"month":31.28,"year":300.31},"85":{"month":31.28,"year":300.31},"86":{"month":31.21,"year":299.63},"87":{"month":31.21,"year":299.63},"88":{"month":31.21,"year":299.63},"89":{"month":31.21,"year":299.63},"90":{"month":31.21,"year":299.63},"91":{"month":31.15,"year":299.01},"92":{"month":31.15,"year":299.01},"93":{"month":31.15,"year":299.01},"94":{"month":31.15,"year":299.01},"95":{"month":31.15,"year":299.01},"96":{"month":31.09,"year":298.46},"97":{"month":31.09,"year":298.46},"98":{"month":31.09,"year":298.46},"99":{"month":31.09,"year":298.46},"100":{"month":31.09,"year":298.46},"101":{"month":30,"year":288}}'),u=JSON.parse('{"1":{"month":99,"year":950.4},"2":{"month":99,"year":950.4},"3":{"month":99,"year":950.4},"4":{"month":99,"year":950.4},"5":{"month":99,"year":950.4},"6":{"month":95.85,"year":920.16},"7":{"month":90.68,"year":870.58},"8":{"month":86.81,"year":833.39},"9":{"month":83.8,"year":804.47},"10":{"month":81.39,"year":781.33},"11":{"month":79.42,"year":762.4},"12":{"month":77.77,"year":746.63},"13":{"month":76.38,"year":733.28},"14":{"month":75.19,"year":721.84},"15":{"month":74.16,"year":711.93},"16":{"month":73.26,"year":703.25},"17":{"month":72.46,"year":695.59},"18":{"month":71.75,"year":688.79},"19":{"month":71.11,"year":682.7},"20":{"month":70.54,"year":677.22},"21":{"month":70.03,"year":672.26},"22":{"month":69.56,"year":667.76},"23":{"month":69.13,"year":663.64},"24":{"month":68.74,"year":659.87},"25":{"month":68.37,"year":656.4},"26":{"month":68.04,"year":653.19},"27":{"month":67.73,"year":650.23},"28":{"month":67.45,"year":647.47},"29":{"month":67.18,"year":644.91},"30":{"month":66.93,"year":642.52},"31":{"month":66.7,"year":640.28},"32":{"month":66.48,"year":638.18},"33":{"month":66.27,"year":636.2},"34":{"month":66.08,"year":634.35},"35":{"month":65.9,"year":632.6},"36":{"month":65.72,"year":630.95},"37":{"month":65.56,"year":629.38},"38":{"month":65.41,"year":627.9},"39":{"month":65.26,"year":626.5},"40":{"month":65.12,"year":625.16},"41":{"month":64.99,"year":623.89},"42":{"month":64.86,"year":622.68},"43":{"month":64.74,"year":621.53},"44":{"month":64.63,"year":620.43},"45":{"month":64.52,"year":619.38},"46":{"month":64.41,"year":618.37},"47":{"month":64.31,"year":617.41},"48":{"month":64.22,"year":616.49},"49":{"month":64.13,"year":615.6},"50":{"month":64.04,"year":614.75},"51":{"month":63.64,"year":610.97},"52":{"month":63.64,"year":610.97},"53":{"month":63.64,"year":610.97},"54":{"month":63.64,"year":610.97},"55":{"month":63.64,"year":610.97},"56":{"month":63.31,"year":607.81},"57":{"month":63.31,"year":607.81},"58":{"month":63.31,"year":607.81},"59":{"month":63.31,"year":607.81},"60":{"month":63.31,"year":607.81},"61":{"month":63.04,"year":605.14},"62":{"month":63.04,"year":605.14},"63":{"month":63.04,"year":605.14},"64":{"month":63.04,"year":605.14},"65":{"month":63.04,"year":605.14},"66":{"month":62.8,"year":602.85},"67":{"month":62.8,"year":602.85},"68":{"month":62.8,"year":602.85},"69":{"month":62.8,"year":602.85},"70":{"month":62.8,"year":602.85},"71":{"month":62.59,"year":600.87},"72":{"month":62.59,"year":600.87},"73":{"month":62.59,"year":600.87},"74":{"month":62.59,"year":600.87},"75":{"month":62.59,"year":600.87},"76":{"month":62.41,"year":599.13},"77":{"month":62.41,"year":599.13},"78":{"month":62.41,"year":599.13},"79":{"month":62.41,"year":599.13},"80":{"month":62.41,"year":599.13},"81":{"month":62.25,"year":597.6},"82":{"month":62.25,"year":597.6},"83":{"month":62.25,"year":597.6},"84":{"month":62.25,"year":597.6},"85":{"month":62.25,"year":597.6},"86":{"month":62.11,"year":596.24},"87":{"month":62.11,"year":596.24},"88":{"month":62.11,"year":596.24},"89":{"month":62.11,"year":596.24},"90":{"month":62.11,"year":596.24},"91":{"month":61.98,"year":595.02},"92":{"month":61.98,"year":595.02},"93":{"month":61.98,"year":595.02},"94":{"month":61.98,"year":595.02},"95":{"month":61.98,"year":595.02},"96":{"month":61.87,"year":593.93},"97":{"month":61.87,"year":593.93},"98":{"month":61.87,"year":593.93},"99":{"month":61.87,"year":593.93},"100":{"month":61.87,"year":593.93},"101":{"month":60,"year":576}}');function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,o.m6)((0,n.W)(t))}function c(e){return e.toLowerCase().split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")}let m=(0,l.cache)(e=>e.filter(function(t,a){return e.indexOf(t)==a}));function p(e){try{if(e.startsWith("http"))return new URL(e.trim()).host;return new URL("https://".concat(e.trim())).host}catch(e){throw console.error(e),Error("Invalid URL")}}function _(e,t){for(;e.endsWith(t);)e=e.slice(0,-t.length);return e}function f(e,t){let a;return function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];null!==a&&clearTimeout(a),a=setTimeout(()=>{e(...o)},t)}}function y(e){let t=e.match(/<a[^>]*>/gi);return t?t.length:0}function N(e,t,a){let n;let o="Pro"===e?i:u;return n=!t||t<1?o["1"][a]:o[t>100?"101":String(t)][a],("month"==a?n*t:n/12*t).toFixed(2)}function h(e){var t,a,n,o,r,d;let l=(null!=e?e:"").split("<||>"),i=null!==(o=null===(t=l[0])||void 0===t?void 0:t.trim())&&void 0!==o?o:"",u=null!==(r=null===(a=l[2])||void 0===a?void 0:a.trim().replaceAll("None",""))&&void 0!==r?r:"",s=null!==(d=null===(n=l[3])||void 0===n?void 0:n.trim().replaceAll("None",""))&&void 0!==d?d:"";return"".concat(i,", ").concat(u).concat(s.length>0?", "+s:"")}function b(e){let[t,a,n]=e.split("-").map(Number);if(isNaN(t)||isNaN(a)||isNaN(n))return console.error("Invalid date string format"),null;let o=new Date(t,a-1,n);return isNaN(o.getTime())?(console.error("Invalid date"),null):o}function I(e){let t=e.match(/href="([^"]+)"/);return t?t[1]:null}let L=d.z.string().min(1,"Website URL is required").refine(e=>e.includes("."),"Top level domain is required").refine(e=>!e.startsWith("http")||e.startsWith("https://"),"URL must start with https://").refine(e=>{if(e.startsWith("https://"))try{return new URL(e),!0}catch(e){return!1}else try{return new URL("https://".concat(e)),!0}catch(e){return!1}},"Please enter a valid URL").transform(e=>e.trim()).transform(e=>e.startsWith("https://")?e:"https://".concat(e)),w=["Digital Marketing","Human Resources","SEO","Sales","Startups","Health and Wellness","Travel","Parenting","Tech","Personal Finance","Investing"],A=["Payment/Billing","Expert Experience","Publisher Experience","Profile Hold(s)","Email Preferences/Keyword Alerts","Report Issues","Feature Requests","Other"];function g(e,t,a,n){return new Promise(o=>{let d=new FileReader;d.onload=()=>{let e=new Image;e.src=d.result,e.onload=()=>{e.width<(null!=a?a:t?r.eh:r.FL)||e.height<(null!=n?n:t?r.fT:r.Rf)?o(!1):o(!0)}},d.readAsDataURL(e)})}let v=(0,l.cache)((e,t,a)=>e&&e.card?{brand:e.card.brand,lastFour:e.card.last4,expiryMonth:e.card.exp_month,expiryYear:e.card.exp_year,name:null!=t?t:void 0,email:null!=a?a:void 0}:null);function B(e){return["#FF6384","#36A2EB","#FFCE56","#4BC0C0","#9966FF","#FF9F40","#FFCD56","#4DC0B5","#C9CBCF","#F7464A"].slice(0,e)}function P(e){var t,a,n,o;if(!e)return"";let r=[];return(null==e?void 0:e.degree)&&r.push(e.degree),(null==e?void 0:e.degree)&&(null==e?void 0:e.primaryMajor)&&r.push("in ".concat(e.primaryMajor)),!(null==e?void 0:e.degree)&&(null==e?void 0:e.primaryMajor)&&r.push("Studied ".concat(e.primaryMajor)),(null==e?void 0:null===(t=e.school)||void 0===t?void 0:t.locationName)&&(null==e?void 0:null===(a=e.school)||void 0===a?void 0:a.locationName.length)>0&&((null==e?void 0:e.degree)||(null==e?void 0:e.primaryMajor))&&r.push("at ".concat(e.school.locationName)),(null==e?void 0:null===(n=e.school)||void 0===n?void 0:n.locationName)&&(null==e?void 0:null===(o=e.school)||void 0===o?void 0:o.locationName.length)>0&&!((null==e?void 0:e.degree)||(null==e?void 0:e.primaryMajor))&&r.push("".concat(e.school.locationName)),r.join(" ")}function k(e,t){let a=new Date().getFullYear();return e&&t?e===t?e<=a?"present":"".concat(e):e<t&&t>=a?"".concat(e," - present"):e<t?"".concat(e," - ").concat(t):"".concat(e," - ").concat(a):""}},63405:function(e,t,a){a.d(t,{DH:function(){return r},FL:function(){return d},IV:function(){return n},MJ:function(){return m},Rf:function(){return l},TJ:function(){return o},Tb:function(){return s},Tt:function(){return y},dr:function(){return c},eh:function(){return i},fT:function(){return u},jl:function(){return p},s7:function(){return f},y1:function(){return _}});let n=10,o=[10,25,50,100,500],r=/^(http(s)?:\/\/)?(\w+\.)?linkedin\.com\/(in)\/\S+/gm,d=200,l=200,i=50,u=50,s=5e6,c=["image/jpeg","image/jpg","image/png","image/webp"],m=1500,p="featured-credit-x-1",_="featured-credit-x-5",f="featured-credit-x-25",y=["he/him","she/her","they/them"]}}]);