1import{u as ye,r as i,b as N,j as e,H as we}from"./app-DP13319Q.js";import{D as je}from"./DraggableMenu-Bk7Spryo.js";import"./model-viewer-BNdxy5m2.js";import{F as n,h as V,b as C,f as p,a as q,c as ve,be as Ne}from"./index-CtyZ6W6U.js";import{l as Se}from"./index.module-D1uRunsO.js";import{M as L}from"./react-tooltip.min-DW3XhwOj.js";/* empty css */import"./index-DQkUn08L.js";function Fe(){var I,B;const{auth:Y,template:a,initialFunnels:b}=ye().props;i.useRef(null);const[A,Q]=i.useState(!0),[_,S]=i.useState([]),[y,W]=i.useState(""),[h,T]=i.useState("fuzzy"),[$,F]=i.useState(1),[Z,k]=i.useState(!0),[w,u]=i.useState(!1),[U,x]=i.useState(""),[O,P]=i.useState(""),[j,D]=i.useState(!1),[z,X]=i.useState(null),[c,M]=i.useState(null),[s,m]=i.useState({metaTitle:"",metaKeywords:"",metaDescription:"",metaLogo:"",metaSiteName:"",metaSiteUrl:""}),[R]=Se(y,500);i.useEffect(()=>{if(a!=null&&a.image){const t=new Blob([a.image],{type:"text/html"}),r=URL.createObjectURL(t);return X(r),()=>{URL.revokeObjectURL(r)}}},[a==null?void 0:a.image]),i.useEffect(()=>{b&&(S(b.data),k(b.next_page_url!==null))},[b]),i.useEffect(()=>{R&&v()},[R,h]);const v=async()=>{try{const t=await N.get("/search-ez-funnels",{params:{query:y,type:h,page:1}});S(t.data.data),F(1),k(t.data.next_page_url!==null)}catch(t){console.error("Search error:",t),x("Failed to search funnels. Please try again."),setTimeout(()=>x(""),5e3)}},G=async()=>{var t,r,l;try{u(!0);const o=((t=document.querySelector('meta[name="csrf-token"]'))==null?void 0:t.getAttribute("content"))||"",g=await N.get("/search-ez-funnels",{params:{query:y,type:h,page:$+1,with:"customDomains,handleDomains,effectSettings,seoSettings"},headers:{"X-CSRF-TOKEN":o,"Content-Type":"application/json"}});g.data&&g.data.data&&(S(E=>[...E,...g.data.data]),F($+1),k(g.data.next_page_url!==null))}catch(o){console.error("Load more error:",o),x(((l=(r=o.response)==null?void 0:r.data)==null?void 0:l.message)||"Failed to load more items. Please try again."),setTimeout(()=>x(""),5e3)}finally{u(!1)}},J=async t=>{M(t),u(!0);try{const l=(await N.get(`/get-funnel-seo/${t.id}`)).data;m({metaTitle:l.meta_title||"",metaKeywords:l.meta_keywords||"",metaDescription:l.meta_description||"",metaLogo:l.meta_logo||"",metaSiteName:l.meta_site_name||"",metaSiteUrl:l.meta_site_url||`https://ez.wiki/${t.token}`})}catch(r){console.error("Error fetching SEO data:",r),m({metaTitle:"",metaKeywords:"",metaDescription:"",metaLogo:"",metaSiteName:"",metaSiteUrl:`https://ez.wiki/${t.token}`})}finally{u(!1)}},ee=async t=>{var r,l;if(t.preventDefault(),u(!0),!!c)try{const o=await N.put("/update-funnel-seo",{funnelId:c.id,metaTitle:s.metaTitle,metaKeywords:s.metaKeywords,metaDescription:s.metaDescription,metaLogo:s.metaLogo,metaSiteName:s.metaSiteName,metaSiteUrl:s.metaSiteUrl});P("SEO settings updated successfully!"),setTimeout(()=>P(""),5e3),o.data.seo&&m({metaTitle:o.data.seo.meta_title||"",metaKeywords:o.data.seo.meta_keywords||"",metaDescription:o.data.seo.meta_description||"",metaLogo:o.data.seo.meta_logo||"",metaSiteName:o.data.seo.meta_site_name||"",metaSiteUrl:o.data.seo.meta_site_url||`https://ez.wiki/${c.token}`})}catch(o){console.error("SEO update error:",o),x(((l=(r=o.response)==null?void 0:r.data)==null?void 0:l.message)||"Failed to update SEO settings. Please try again."),setTimeout(()=>x(""),5e3)}finally{u(!1)}},te=t=>new Date(t).toLocaleDateString("en-US",{weekday:"short",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}),ae=t=>{try{return new URL(t),!0}catch{return!1}},oe=t=>{var l;return(l=t.split("?")[0].split(".").pop())==null?void 0:l.toLowerCase()},se=t=>t?["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(t):!1,le=a!=null&&a.image&&se(oe(a.image))?e.jsx("style",{children:` 2 .blur-bg { 3 background: url('${a.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${a.image}') no-repeat center center; 4 background-size: cover; 5 } 6 `}):null,re=i.useMemo(()=>{var K;if(!a)return null;const t=((K=a.image.split(".").pop())==null?void 0:K.toLowerCase())||"",l=`${a.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${a.image}`,o=["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"],g=["ppt","pptx","pdf","xls","xlsx","doc","docx","pages","ai","psd","eps","ttf","dxf","xps","rar","zip","ods","odt","odp"],E=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i,ne=/(?:https?:\/\/)?(?:www\.)?linkedin\.com\/(?:in|posts|company|feed|showcase|embed\/feed\/update\/urn:li:[^/]+:[^"&?/ ]+)/i,ce=/^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$/im,de=/^(https?:\/\/)?(www\.)?fb\.watch\/[a-zA-Z0-9(\.\?)?]/,me=/^(https?:\/\/)?(www\.)?facebook\.com\/[a-zA-Z0-9(\.\?)?]/,pe
6=/<iframe.*?src=["'](.*?)["'].*?>.*?<\/iframe>/is,ue=/<blockquote/,f=a.image.match(E),xe=a.image.match(ne),H=a.image.match(ce),ge=a.image.match(de),he=a.image.match(me),fe=a.image.match(pe)||ue.test(a.image);if(o.includes(t))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 7 .blur-overlay { 8 position: fixed; 9 top: 0; 10 left: 0; 11 width: 100%; 12 height: 100%; 13 backdrop-filter: blur(20px); 14 z-index: -1; 15 } 16 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("img",{src:l,alt:"Background",className:"absolute inset-0 max-w-full max-h-full m-auto z-0 rounded-lg",onError:d=>console.error("Image failed to load",d)})]});if(g.includes(t))return e.jsx("iframe",{src:`https://docs.google.com/viewer?url=${l}&embedded=true`,className:"fixed top-0 left-0 w-full h-full",frameBorder:"0",loading:"lazy",allow:"autoplay; fullscreen",allowFullScreen:!0,sandbox:"allow-scripts allow-same-origin",title:"Document Viewer",scrolling:"yes"});if(fe){const d=a.image.replace(/<(iframe|blockquote)([^>]*)\s(height|width|style)=["'][^"']*["']([^>]*)>/gi,'<$1$2$4 class="fixed top-0 left-0 w-full h-full" scrolling="yes">').replace(/class="([^"]*)"/g,'class="$1 absolute inset-0 m-auto"'),be=/<(iframe|blockquote)[^>]*class="/i.test(d)?d:d.replace(/<(iframe|blockquote)/g,'<$1 scrolling="yes" class="absolute w-full h-full inset-0 m-auto"');return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 17 .blur-overlay { 18 position: fixed; 19 top: 0; 20 left: 0; 21 width: 100%; 22 height: 100%; 23 backdrop-filter: blur(20px); 24 z-index: -2; 25 } 26 .twitter-tweet { 27 position: fixed; 28 top: 0; 29 left: 0; 30 width: 100vw; 31 height: 100vh; 32 object-fit: cover; 33 z-index: 0; 34 border: none; 35 } 36 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"fixed top-0 left-0 w-full h-full object-cover",dangerouslySetInnerHTML:{__html:be}})]})}if(f){const d=a.option==="autoplay"?"autoplay=1":a.option==="mute"?"autoplay=1&mute=1":"mute=1";return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed top-0 left-0 w-full h-full z-[-2]",children:e.jsx("iframe",{loading:"lazy",src:`https://www.youtube.com/embed/${f[1]}?${d}&loop=1&playlist=${f[1]}&controls=0&showinfo=0&modestbranding=1&iv_load_policy=3`,className:"w-full h-full object-cover",frameBorder:"0",allow:"autoplay; fullscreen",allowFullScreen:!0})}),e.jsx("style",{children:` 37 .blur-overlay { 38 position: fixed; 39 top: 0; 40 left: 0; 41 width: 100%; 42 height: 100%; 43 backdrop-filter: blur(20px); 44 z-index: -1; 45 } 46 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{id:"bgVideo",loading:"lazy",className:"fixed top-0 left-0 w-full h-full object-cover",src:`https://www.youtube.com/embed/${f[1]}?${a.option}=1&mute=1&loop=1&playlist=${f[1]}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})]})}if(xe){let d=a.image;return d.includes("?compact=1")||(d+=(d.includes("?")?"&":"?")+"compact=1"),e.jsx("div",{className:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black",children:e.jsx("iframe",{id:"bgVideo",src:d,className:"w-full h-full",frameBorder:"0",allowFullScreen:!0,title:"Embedded LinkedIn Post",scrolling:"yes"})})}return H?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 47 .blur-overlay { 48 position: fixed; 49 top: 0; 50 left: 0; 51 width: 100%; 52 height: 100%; 53 backdrop-filter: blur(20px); 54 z-index: -1; 55 } 56 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:`https://player.vimeo.com/video/${H[3]}?h=33160d1512&color=de0101`,className:"fixed top-0 left-0 w-full h-full object-cover",frameBorder:"0",allowFullScreen:!0})]}):ge||he&&!a.image.includes("groups")?e.jsx("div",{className:"fixed top-0 left-0 w-full h-full",children:e.jsx("div",{className:"fb-post","data-href":a.image,"data-width":"1400","data-show-text":"true"})}):t==="mp4"?e.jsxs(e.Fragment,{children:[e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInl
56ine:!0,className:"fixed top-0 left-0 w-full h-full object-cover z-[-3]",children:[e.jsx("source",{src:l,type:"video/mp4"}),"Your browser does not support the video tag."]}),e.jsx("style",{children:` 57 .blur-overlay { 58 position: fixed; 59 top: 0; 60 left: 0; 61 width: 100%; 62 height: 100%; 63 backdrop-filter: blur(20px); 64 z-index: -2; 65 } 66 `}),e.jsx("div",{className:"blur-overlay"}),e.jsxs("video",{id:"bgVideo",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 max-w-full max-h-full m-auto",controls:!0,children:[e.jsx("source",{src:l,type:"video/mp4"}),"Your browser does not support the video tag."]})]}):t==="glb"?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 67 .blur-overlay { 68 position: fixed; 69 top: 0; 70 left: 0; 71 width: 100%; 72 height: 100%; 73 backdrop-filter: blur(20px); 74 z-index: -1; 75 } 76 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("model-viewer",{src:l,alt:"3D model",className:"fixed top-0 left-0 w-full h-full",ar:!0,"auto-rotate":!0,"camera-controls":!0,"shadow-intensity":"1"})]}):ae(a.image)?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 77 .blur-overlay { 78 position: fixed; 79 top: 0; 80 left: 0; 81 width: 100%; 82 height: 100%; 83 backdrop-filter: blur(20px); 84 z-index: -1; 85 } 86 `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:a.image,className:"fixed top-0 left-0 w-full h-full",frameBorder:"0",allowFullScreen:!0,scrolling:"yes"})]}):z?e.jsx("iframe",{src:z,className:"fixed top-0 left-0 w-full h-full border-none",allow:"microphone *; camera *; autoplay *; fullscreen *; display-capture *;",sandbox:`allow-forms allow-modals allow-orientation-lock allow-pointer-lock 87 allow-popups allow-popups-to-escape-sandbox allow-presentation 88 allow-same-origin allow-scripts allow-top-navigation 89 allow-top-navigation-by-user-activation allow-downloads allow-storage-access-by-user-activation`,allowFullScreen:!0,loading:"lazy",name:"binauralMixerFrame",allowTransparency:"true",scrolling:"yes"}):null},[a,z]),ie=()=>e.jsxs("div",{className:"bg-white text-gray-800 p-4 rounded-lg shadow-lg max-w-md mx-auto mt-4",children:[e.jsxs("div",{className:"border-b border-gray-200 pb-2 mb-2",children:[e.jsx("h3",{className:"text-blue-600 text-lg font-medium truncate",children:s.metaTitle||"Your Page Title"}),e.jsx("p",{className:"text-green-700 text-sm",children:s.metaSiteUrl||"https://example.com"})]}),e.jsx("p",{className:"text-gray-600 text-sm",children:s.metaDescription||"This is a preview of how your page might appear in search results."}),s.metaLogo&&e.jsx("div",{className:"mt-2",children:e.jsx("img",{src:s.metaLogo,alt:"Site Logo",className:"h-16 w-16 object-contain",onError:t=>{t.target.style.display="none"}})})]});return e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx("title",{children:"EZ SEO - Customize Your Funnel SEO"}),le,e.jsx("meta",{name:"description",content:"Optimize your funnel's SEO settings for better search engine visibility"}),e.jsx("style",{children:` 90 .react-tooltip { 91 z-index: 99999 !important; 92 opacity: 1 !important; 93 font-size: 12px; 94 padding: 4px 8px; 95 } 96 `})]}),e.jsx(L,{id:"action-tooltip"}),e.jsx(L,{id:"form-tooltip"}),e.jsx(L,{id:"modal-tooltip"}),e.jsx(je,{auth:Y}),e.jsxs("main",{className:`relative flex justify-end p-4 min-h-screen overflow-hidden ${(I=a==null?void 0:a.image.split(".").pop())!=null&&I.toLowerCase()&&["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(((B=a.image.split(".").pop())==null?void 0:B.toLowerCase())||"")?"blur-bg":""}`,children:[e.jsx("div",{className:"absolute inset-0 z-0",children:re}),A&&e.jsxs("div",{className:"relative mt-4 mx-auto bottom-4 z-50 backdrop-blur-sm p-4 rounded-xl border border-white-700 overflow-y-auto shadow-2xl",children:[e.jsx("button",{onClick:()=>Q(!1),className:"absolute top-2 right-2 w-8 h-8 bg-black rounded-full flex items-center justify-center z-50 hover:bg-gray-800 transition-colors focus:outline-none focus:ring-2 focus:ring-white","aria-label":"Close panel","data-tooltip-id":"action-tooltip","data-tooltip-content":"Hide Control Panel",children:e.jsx(n,{icon:V,className:"text-white text-lg",style:{textShadow:"0.7px 0.7px 0 rgb(255,0,0), -0.7px -0.7px 0 rgb(0,255,255)"}})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-gray-800/80 border border-gray-700 rounded-lg p-4 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsxs("div",{className:"relative flex-grow",children:[e.jsx("input",{type:"text",placeholder:"Search by token or domain",className:"w-full bg-white text-gray-900 px-3 py-2 pl-10 rounded-md focus:outline-none focus:ring-2 focus:ring-yellow-400 min-w-0",value:y,onChange:t=>W(t.target.value),onKeyPress:t=>t.key==="Enter"&&v(),"data-tooltip-id":"form-tooltip","data-tooltip-content":"Search your funnels"}),e.jsx(n,{icon:C,className:"absolute left-3 top-3 text-gray-500"})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsxs("button",{className:`font-semibold px-3 py-2 flex items-center gap-1.5 whitespace-nowrap rounded-l-md border-r transition-colors ${h==="fuzzy"?"bg-green-600 text-white border-green-700 hover:bg-green-700":"bg-gray-600 text-gray-300 border-gray-700 hover:bg-gray-700"}`,onClick:()=>{T("fuzzy"),v()},"data-tooltip-id":"action-tooltip","data-tooltip-content":"Use fuzzy (approximate) search",children:[e.jsx(n,{icon:C,className:"h-4 w-4"}),"Fuzzy"]}),e.jsxs("button",{className:`font-semibold px-3 py-2 flex items-center gap-1.5 whitespace-nowrap rounded-r-md transition-colors ${h==="exact"?"bg-green-600 text-white hover:bg-green-700":"bg-gray-600 text-gray-300 hover:bg-gray-700"}`,onClick:()=>{T("exact"),v()},"data-tooltip-id":"action-tooltip","data-tooltip-content":"Use exact match search",children:[e.jsx(n,{icon:p,className:"h-4 w-4"}),"Exact"]})]})]}),e.jsx("div",{className:"max-h-[65vh] overflow-y-auto custom-scrollbar space-y-2",children:_.length===0?e.jsxs("div",{className:"text-center py-8 text-gray-300",children:[e.jsx(n,{icon:q,className:"text-2xl mb-2"}),e.jsx("p",{children:"No funnels found. Create one to get started!"})]}):_.map(t=>{var r,l;return e.jsxs("div",{className:`flex items-center p-4 gap-1 rounded-lg transition-all ${(c==null?void 0:c.id)===t.id?"bg-purple-900/80 border-2 border-yellow-400":"bg-[#5d0f6e] hover:bg-purple-800/80"}`,children:[e.jsx("span",{className:"text-4xl select-none",children:"ð"}),e.jsx("div",{className:"flex-grow min-w-0",children:e.jsxs("div",{className:"flex flex-col gap-y-2",children:[e.jsxs("a",{href:`https://ez.wiki/${encodeURIComponent(t.token)}`,target:"_blank",className:"text-yellow-400 font-semibold truncate hover:underline",rel:"noopener noreferrer","data-tooltip-id":"action-tooltip","data-tooltip-content":"Open funnel link in new tab",children:["https://ez.wiki/",t.token]}),(r=t.handle_domains)==null?void 0:r.map(o=>e.jsxs("a",{href:`https://${o.domain}.${o.domainselected}`,target:"_blank",className:"text-yellow-400 font-semibold truncate hover:underline",rel:"noopener noreferrer","data-tooltip-id":"action-tooltip","data-tooltip-content":"Open handle domain in new tab",children:["https://",o.domain,".",o.domainselected]},o.id)),(l=t.custom_domains)==null?void 0:l.map(o=>e.jsxs("a",{href:`https://${o.domainselected}/${o.domain}`,target:"_blank",className:"text-yellow-400 font-semibold truncate hover:underline",rel:"noopener noreferrer","data-tooltip-id":"action-tooltip","data-tooltip-content":"Open custom domain in new tab",children:["https://",o.domainselected,"/",o.domain]},o.id)),e.jsx("p",{className:"text-purple-300 text-sm whitespace-nowrap",children:te(t.created_at)})]})}),e.jsx("button",{className:`font-bold py-1 px-5 rounded-md text-sm transition-colors whitespace-nowrap ${(c==null?void 0:c.id)===t.id?"bg-yellow-500 text-black hover:bg-yellow-600":"bg-yellow-400 text-black hover:bg-yellow-500"}`,onClick:()=>J(t),"data-tooltip-id":"action-tooltip","data-tooltip-content":"Edit SEO settings for this funnel",children:(c==null?void 0:c.id)===t.id?"Editing":"Edit SEO"})]},t.id)})}),Z&&e.jsx("div",{className:"flex justify-center mt-4",children:e.jsx("button",{className:"bg-black text-white border border-white px-8 py-2 rounded-md font-semibold hover:bg-white hover:text-black transition-colors disabled:opacity-50",onClick:G,disabled:w,"data-tooltip-id":"action-tooltip","data-tooltip-content":"Load more of your funnels",children:w?"Loading...":"Load More"})})]}),c?e.jsxs("div",{className:"bg-gray-800/80 border border-gray-700 rounded-lg p-6 space-y-6",children:[O&&e.jsxs("div",{className:"bg-green-500/90 text-white p-3 rounded-lg mb-4 flex items-center gap-2",children:[e.jsx(n,{icon:p}),O]}),U&&e.jsxs("div",{className:"bg-red-500/90 text-white p-3 rounded-lg mb-4 flex items-center gap-2",children:[e.jsx(n,{icon:q}),U]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("h2",{className:"text-yellow-400 text-xl font-bold",children:["Editing SEO for: ",e.jsx("span",{className:"text-white",children:c.token})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:()=>D(!j),className:"text-gray-300 hover:text-white bg-gray-700 p-2 rounded-md","data-tooltip-id":"action-tooltip","data-tooltip-content":"Toggle SEO preview",children:e.jsx(n,{icon:C})}),e.jsx("button",{onClick:()=>M(null),className:"text-gray-300 hover:text-white bg-gray-700 p-2 rounded-md","data-tooltip-id":"action-tooltip","data-tooltip-content":"Close SEO editor",children:e.jsx(n,{icon:V})})]})]}),e.jsx("hr",{className:"border-t border-gray-700"}),j&&ie(),e.jsxs("form",{onSubmit:ee,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"meta-title",className:"block text-yellow-400 mb-2 font-semibold",children:["Meta Title ",e.jsx("span",{className:"text-gray-400 text-xs",children:"(60 characters max)"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{id:"meta-title",type:"text",placeholder:"Page title that appears in search results",className:"w-full p-3 bg-gray-700 text-white rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400 placeholder:text-gray-400",value:s.metaTitle,onChange:t=>m({...s,metaTitle:t.target.value}),maxLength:60,"data-tooltip-id":"form-tooltip","data-tooltip-content":"This is the main title shown in search engine results."}),e.jsxs("div",{className:"absolute right-2 bottom-2 text-xs text-gray-400",children:[s.metaTitle.length,"/60"]})]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"meta-keywords",className:"block text-yellow-400 mb-2 font-semibold",children:["Meta Keywords ",e.jsx("span",{className:"text-gray-400 text-xs",children:"(Comma separated)"})]}),e.jsx("textarea",{id:"meta-keywords",placeholder:"keywords, for, search, engines",className:"w-full p-3 bg-gray-700 text-white rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400 placeholder:text-gray-400 h-24",value:s.metaKeywords,onChange:t=>m({...s,metaKeywords:t.target.value}),"data-tooltip-id":"form-tooltip","data-tooltip-content":"Enter relevant keywords separated by commas."})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"meta-description",className:"block text-yellow-400 mb-2 font-semibold",children:["Meta Description ",e.jsx("span",{className:"text-gray-400 text-xs",children:"(160 characters max)"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("textarea",{id:"meta-description",placeholder:"Brief description that appears in search results",className:"w-full p-3 bg-gray-700 text-white rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400 placeholder:text-gray-400 h-24",value:s.metaDescription,onChange:t=>m({...s,metaDescription:t.target.value}),maxLength:160,"data-tooltip-id":"form-tooltip","data-tooltip-content":"This summary appears below the title in search results."}),e.jsxs("div",{className:"absolute right-2 bottom-2 text-xs text-gray-400",children:[s.metaDescription.length,"/160"]})]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"meta-logo",className:"block text-yellow-400 mb-2 font-semibold",children:["Meta Logo URL ",e.jsx("span",{className:"text-gray-400 text-xs",children:"(Recommended: 1200x630px)"})]}),e.jsx("input",{id:"meta-logo",type:"url",placeholder:"https://example.com/logo.png",className:"w-full p-3 bg-gray-700 text-white rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400 placeholder:text-gray-400",value:s.metaLogo,onChange:t=>m({...s,metaLogo:t.target.value}),"data-tooltip-id":"form-tooltip","data-tooltip-content":"URL of the image to show in social media shares."}),s.metaLogo&&e.jsx("div",{className:"mt-2",children:e.jsx("img",{src:s.metaLogo,alt:"Logo Preview",className:"max-h-20 max-w-full object-contain border border-gray-600 rounded",onError:t=>{t.target.style.display="none"}})})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"meta-site-name",className:"block text-yellow-400 mb-2 font-semibold",children:"Site/Brand Name"}),e.jsx("input",{id:"meta-site-name",type:"text",placeholder:"Your brand or company name",className:"w-full p-3 bg-gray-700 text-white rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400 placeholder:text-gray-400",value:s.metaSiteName,onChange:t=>m({...s,metaSiteName:t.target.value}),"data-tooltip-id":"form-tooltip","data-tooltip-content":"The name of your site or brand."})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"meta-site-url",className:"block text-yellow-400 mb-2 font-semibold",children:"Canonical URL"}),e.jsx("input",{id:"meta-site-url",type:"url",placeholder:"https://example.com",className:"w-full p-3 bg-gray-700 text-white rounded-md border border-gray-600 focus:outline-none focus:ring-2 focus:ring-yellow-400 placeholder:text-gray-400",value:s.metaSiteUrl,onChange:t=>m({...s,metaSiteUrl:t.target.value}),"data-tooltip-id":"form-tooltip","data-tooltip-content":"The primary URL for this page."})]}),e.jsxs("div",{className:"flex justify-between pt-6",children:[e.jsx("button",{type:"button",onClick:()=>D(!j),className:"bg-blue-600 text-white font-semibold px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors","data-tooltip-id":"action-tooltip","data-tooltip-content":"See how your SEO info will look in search results",children:j?"Hide Preview":"Show Preview"}),e.jsx("button",{type:"submit",className:"bg-green-600 text-white font-semibold px-8 py-2 rounded-lg hover:bg-green-700 transition-colors disabled:opacity-50 flex items-center gap-2",disabled:w,"data-tooltip-id":"action-tooltip","data-tooltip-content":"Save your SEO settings",children:w?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Saving..."]}):e.jsxs(e.Fragment,{children:[e.jsx(n,{icon:ve}),"Save SEO Settings"]})})]})]})]}):e.jsx("div",{className:"bg-gray-800/80 border border-gray-700 rounded-lg p-6 space-y-6 flex flex-col items-center justify-center h-full",child
96ren:e.jsxs("div",{className:"text-center",children:[e.jsx(n,{icon:Ne,className:"text-yellow-400 text-5xl mb-4 animate-bounce"}),e.jsx("h2",{className:"text-yellow-400 text-xl font-bold mb-2",children:"Select a Funnel to Edit SEO"}),e.jsx("p",{className:"text-gray-300 mb-6",children:'Click the "Edit SEO" button on any funnel to customize its SEO settings'}),e.jsxs("div",{className:"bg-gray-700/50 p-4 rounded-lg border border-dashed border-gray-600 max-w-md",children:[e.jsx("h3",{className:"text-yellow-400 font-semibold mb-3 text-lg",children:"SEO Benefits:"}),e.jsxs("ul",{className:"text-gray-300 text-sm space-y-2 text-left",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(n,{icon:p,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Improve search engine rankings"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(n,{icon:p,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Enhance click-through rates"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(n,{icon:p,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Better social media sharing"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(n,{icon:p,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Increase organic traffic"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(n,{icon:p,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Boost brand visibility"})]})]})]})]})})]})]})]})]})}export{Fe 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.