PageSourceSearch

https://opencopy.ai/build/assets/CallToAction-BuzPYYzI.js

js opencopy.ai collected 2026-10-05 14:31:49 UTC 7,336 bytes, 1 lines download raw bytes

1import{c as q,u as J,j as t,H as M}from"./app-Da8ydggO.js";import{F as g}from"./field-label-BmM4WfNz.js";import{H as Q}from"./heading-DfWgJgOT.js";import{I as T}from"./input-error-ByDm8-iu.js";import{B as V}from"./button-BmDgkJaU.js";import{I as K}from"./input-sf--DETT.js";import{S as X}from"./switch-BiUog2OB.js";import{T as Y}from"./textarea-6PVoLjEE.js";import{A as Z}from"./app-layout-D9x1q8O1.js";import{P as ee}from"./layout-Dnqh-S0Z.js";import{z as te}from"./transition-B0i8pA4D.js";/* empty css            */import"./label-DBtxgH5d.js";import"./index-CgZNwJH5.js";import"./tooltip-BPZPhE4p.js";import"./index-BKDEjTBR.js";import"./circle-help-DBpreMYJ.js";import"./createLucideIcon-C4W1dCfJ.js";import"./index-DvHWRF5T.js";import"./index-WCzCxeWU.js";import"./badge-DMIDZd3R.js";import"./index-t7e5nG7P.js";import"./index-BLAl4Rvk.js";import"./check-Ci5l8BE1.js";import"./folder-kanban-BSpf3FGy.js";import"./plus-Bz-6LcQp.js";import"./app-logo-icon-CxKMCRLi.js";import"./key-CCtEyfM1.js";import"./file-text-oJPtLc_E.js";import"./link-2-DrfdmYng.js";import"./zap-rJ9yI3zJ.js";import"./globe-j2bYCMFT.js";import"./separator-DTsUVUtG.js";function $e(O){const e=q.c(59),{project:s}=O;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={title:"Projects",href:"/projects"},e[0]=b):b=e[0];const L=`/projects/${s.id}`;let o;e[1]!==s.name||e[2]!==L?(o={title:s.name,href:L},e[1]=s.name,e[2]=L,e[3]=o):o=e[3];const F=`/projects/${s.id}/settings`;let c;e[4]!==F?(c={title:"Settings",href:F},e[4]=F,e[5]=c):c=e[5];const I=`/projects/${s.id}/settings/call-to-action`;let l;e[6]!==I?(l={title:"Call-to-Action",href:I},e[6]=I,e[7]=l):l=e[7];let y;e[8]!==o||e[9]!==c||e[10]!==l?(y=[b,o,c,l],e[8]=o,e[9]=c,e[10]=l,e[11]=y):y=e[11];const P=y,k=s.include_cta??!1,E=s.cta_product_name??"",$=s.cta_website_url??"",H=s.cta_features??"",R=s.cta_action_text??"";let v;e[12]!==E||e[13]!==$||e[14]!==H||e[15]!==R||e[16]!==k?(v={include_cta:k,cta_product_name:E,cta_website_url:$,cta_features:H,cta_action_text:R},e[12]=E,e[13]=$,e[14]=H,e[15]=R,e[16]=k,e[17]=v):v=e[17];const{data:a,setData:i,put:U,processing:z,errors:n,recentlySuccessful:D}=J(v);let w;e[18]!==s.id||e[19]!==U?(w=function(G){G.preventDefault(),U(`/projects/${s.id}/settings/call-to-action`)},e[18]=s.id,e[19]=U,e[20]=w):w=e[20];const W=w,B=`Call-to-Action Settings - ${s.name}`;let m;e[21]!==B?(m=t.jsx(M,{title:B}),e[21]=B,e[22]=m):m=e[22];let N;e[23]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Q,{title:"Call-to-Action",description:"Promote your product or service within articles"}),e[23]=N):N=e[23];let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("div",{className:"space-y-0.5",children:t.jsx(g,{htmlFor:"include_cta",label:"Enable Call-to-Action",tooltip:"When enabled, the AI will naturally weave mentions of your product into articles where relevant. The CTA will feel organic, not like an advertisement."})}),e[24]=S):S=e[24];let d;e[25]!==i?(d=r=>i("include_cta",r),e[25]=i,e[26]=d):d=e[26];let p;e[27]!==a.include_cta||e[28]!==d?(p=t.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[S,t.jsx(X,{id:"include_cta",checked:a.include_cta,onCheckedChange:d})]}),e[27]=a.include_cta,e[28]=d,e[29]=p):p=e[29];let u;e[30]!==a.cta_action_text||e[31]!==a.cta_features||e[32]!==a.cta_product_name||e[33]!==a.cta_website_url||e[34]!==a.include_cta||e[35]!==n||e[36]!==i?(u=a.include_cta&&t.jsxs("div",{className:"space-y-6 rounded-lg border p-4",children:[t.jsxs("div",{className:"space-y-4",children:[t.jsx("h4",{className:"text-sm font-medium",children:"Product Details"}),t.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(g,{htmlFor:"cta_product_name",label:"Product Name",tooltip:"The name of your product or service that the AI will mention in articles. Use your official brand name."}),t.jsx(K,{id:"cta_product_name",value:a.cta_product_name,onChange:r=>i("cta_product_name",r.target.value),placeholder:"e.g., OpenCopy",maxLength:100}),t.jsx(T,{message:n.cta_product_name})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(g,{htmlFor:"cta_website_url",label:"Website URL",tooltip:"The URL readers will be directed to. Use your homepage, a landing page, or a product page. Include https://."}),t.jsx(K,{id:"cta_website_url",type:"url",value:a.cta_website_url,onChange:r=>i("cta_website_url",r.target.value),placeholder:"https://example.com",maxLength:255}),t.jsx(T,{message:n.cta_website_url})]})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(g,{htmlFor:"cta_features",label:"Key Features",tooltip:"List the main benefits or features of your product. The AI uses these to write relevant, contextual mentions that connect your product to the article topic."}),t.jsx(Y,{id:"cta_features",value:a.cta_features,onChange:r=>i("cta_features",r.target.value),placeholder:"e.g., AI-powered content generation, SEO optimization, WordPress 
1integration, automatic internal linking",rows:3,maxLength:500}),t.jsx(T,{message:n.cta_features})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(g,{htmlFor:"cta_action_text",label:"Action Text",tooltip:"The call-to-action phrase that encourages readers to click. Keep it short and action-oriented."}),t.jsx(K,{id:"cta_action_text",value:a.cta_action_text,onChange:r=>i("cta_action_text",r.target.value),placeholder:"e.g., Try for free, Get started, Learn more",maxLength:100}),t.jsx(T,{message:n.cta_action_text})]})]}),a.cta_product_name&&a.cta_website_url&&t.jsxs("div",{className:"space-y-2",children:[t.jsx("h4",{className:"text-sm font-medium",children:"Preview"}),t.jsxs("div",{className:"rounded-lg bg-muted p-4 text-sm",children:[t.jsx("p",{className:"text-muted-foreground",children:"Example of how your CTA might appear in an article:"}),t.jsxs("p",{className:"mt-2 italic",children:['"...tools like'," ",t.jsx("span",{className:"font-medium text-primary",children:a.cta_product_name})," ","can help automate this process."," ",t.jsx("a",{href:a.cta_website_url,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:a.cta_action_text||"Learn more"}),'."']})]})]})]}),e[30]=a.cta_action_text,e[31]=a.cta_features,e[32]=a.cta_product_name,e[33]=a.cta_website_url,e[34]=a.include_cta,e[35]=n,e[36]=i,e[37]=u):u=e[37];let _;e[38]!==z?(_=t.jsx(V,{type:"submit",disabled:z,children:"Save Changes"}),e[38]=z,e[39]=_):_=e[39];let C;e[40]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("p",{className:"text-sm text-muted-foreground",children:"Saved"}),e[40]=C):C=e[40];let h;e[41]!==D?(h=t.jsx(te,{show:D,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:C}),e[41]=D,e[42]=h):h=e[42];let f;e[43]!==_||e[44]!==h?(f=t.jsxs("div",{className:"flex items-center gap-4",children:[_,h]}),e[43]=_,e[44]=h,e[45]=f):f=e[45];let x;e[46]!==W||e[47]!==p||e[48]!==u||e[49]!==f?(x=t.jsxs("form",{onSubmit:W,className:"space-y-6",children:[p,u,f]}),e[46]=W,e[47]=p,e[48]=u,e[49]=f,e[50]=x):x=e[50];let j;e[51]!==s.id||e[52]!==s.name||e[53]!==x?(j=t.jsxs(ee,{projectId:s.id,projectName:s.name,children:[N,x]}),e[51]=s.id,e[52]=s.name,e[53]=x,e[54]=j):j=e[54];let A;return e[55]!==P||e[56]!==m||e[57]!==j?(A=t.jsxs(Z,{breadcrumbs:P,children:[m,j]}),e[55]=P,e[56]=m,e[57]=j,e[58]=A):A=e[58],A}export{$e as default};

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.