1import{u as be,r,b as w,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 u,a as X,f as Q,h as z,b as Y}from"./index-CtyZ6W6U.js";import{l as ve}from"./index.module-D1uRunsO.js";import{M as Z}from"./react-tooltip.min-DW3XhwOj.js";/* empty css */import"./index-DQkUn08L.js";function $e(){var q,I;const{auth:W,template:o,initialFunnels:j}=be().props;r.useRef(null);const $=r.useRef(null),h=r.useRef(null),[G,J]=r.useState(!0),[_,f]=r.useState([]),[v,ee]=r.useState(""),[y,R]=r.useState("fuzzy"),[P,M]=r.useState(1),[te,C]=r.useState(!0),[L,m]=r.useState(!1),[O,d]=r.useState(""),[U,x]=r.useState(""),[ae,N]=r.useState(null),[T,k]=r.useState(null),[F,S]=r.useState(null),[H]=ve(v,500);r.useEffect(()=>{j&&(f(j.data),C(j.next_page_url!==null))},[j]),r.useEffect(()=>{H&&E()},[H,y]);const E=async()=>{try{const a=await w.get("/search-ez-funnels",{params:{query:v,type:y,page:1}});f(a.data.data),M(1),C(a.data.next_page_url!==null)}catch(a){console.error("Search error:",a),d("Failed to search funnels. Please try again."),setTimeout(()=>d(""),5e3)}},oe=async()=>{var a,i,l;try{m(!0);const t=((a=document.querySelector('meta[name="csrf-token"]'))==null?void 0:a.getAttribute("content"))||"",s=await w.get("/search-ez-funnels",{params:{query:v,type:y,page:P+1,with:"customDomains,handleDomains,effectSettings,logoSettings"},headers:{"X-CSRF-TOKEN":t,"Content-Type":"application/json"}});s.data&&s.data.data&&(f(n=>[...n,...s.data.data]),M(P+1),C(s.data.next_page_url!==null))}catch(t){console.error("Load more error:",t),d(((l=(i=t.response)==null?void 0:i.data)==null?void 0:l.message)||"Failed to load more items. Please try again."),setTimeout(()=>d(""),5e3)}finally{m(!1)}},D=async(a,i)=>{var l;try{m(!0);const t=((l=document.querySelector('meta[name="csrf-token"]'))==null?void 0:l.getAttribute("content"))||"";await w.put(`/funnels/${a}/seo-tag`,{seo_tag:i},{headers:{"X-CSRF-TOKEN":t,"Content-Type":"application/json"}}),N(null),x("SEO tag updated successfully!"),setTimeout(()=>x(""),3e3),f(s=>s.map(n=>n.id===a?{...n,seo_tag:i}:n))}catch(t){console.error("Error saving SEO tag:",t),d("Failed to save SEO tag. Please try again."),setTimeout(()=>d(""),5e3)}finally{m(!1)}},B=async(a,i)=>{var l;try{m(!0);const t=((l=document.querySelector('meta[name="csrf-token"]'))==null?void 0:l.getAttribute("content"))||"";await w.put(`/handle-domains/${a}/hashtag`,{hashtag:i},{headers:{"X-CSRF-TOKEN":t,"Content-Type":"application/json"}}),k(null),x("Handle domain hashtag updated successfully!"),setTimeout(()=>x(""),3e3),f(s=>s.map(n=>{var g;return{...n,handle_domains:(g=n.handle_domains)==null?void 0:g.map(p=>p.id===a?{...p,hashtag:i}:p)}}))}catch(t){console.error("Error saving handle domain hashtag:",t),d("Failed to save handle domain hashtag. Please try again."),setTimeout(()=>d(""),5e3)}finally{m(!1)}},V=async(a,i)=>{var l;try{m(!0);const t=((l=document.querySelector('meta[name="csrf-token"]'))==null?void 0:l.getAttribute("content"))||"";await w.put(`/custom-domains/${a}/hashtag`,{hashtag:i},{headers:{"X-CSRF-TOKEN":t,"Content-Type":"application/json"}}),S(null),x("Custom domain hashtag updated successfully!"),setTimeout(()=>x(""),3e3),f(s=>s.map(n=>{var g;return{...n,custom_domains:(g=n.custom_domains)==null?void 0:g.map(p=>p.id===a?{...p,hashtag:i}:p)}}))}catch(t){console.error("Error saving custom domain hashtag:",t),d("Failed to save custom domain hashtag. Please try again."),setTimeout(()=>d(""),5e3)}finally{m(!1)}},se=a=>new Date(a).toLocaleDateString("en-US",{weekday:"short",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}),le=a=>{try{return new URL(a),!0}catch{return!1}},re=a=>{var l;return(l=a.split("?")[0].split(".").pop())==null?void 0:l.toLowerCase()},ie=a=>a?["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(a):!1,ne=o!=null&&o.image&&ie(re(o.image))?e.jsx("style",{children:` 2 .blur-bg { 3 background: url('${o.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${o.image}') no-repeat center center; 4 background-size: cover; 5 } 6 `}):null,ce=r.useMemo(()=>{var K;if(!o)return null;h.current&&(URL.revokeObjectURL(h.current),h.current=null);const a=((K=o.image.split(".").pop())==null?void 0:K.toLowerCase())||"",l=`${o.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${o.image}`,t=["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"],s=["ppt","pptx","pdf","xls","xlsx","doc","docx","pages","ai","psd","eps","ttf","dxf","xps","rar","zip","ods","odt","odp"],n=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i,g=/(?:https?:\/\/)?(?:www\.)?linkedin\.com\/(?:in|posts|company|feed|showcase|embed\/feed\/update\/urn:li:[^/]+:[^"&?/ ]+)/i,p=/^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$/im,de=/^(https?:\/\/)?(www\.)?fb\.watch\/[a-zA-Z0-9(\.\?)?]/,ue=/^(https?:\/\/)?(www\.)?facebook\.com\/[a-zA-Z0-9(\.\?)?]/,pe
6=/<iframe.*?src=["'](.*?)["'].*?>.*?<\/iframe>/is,me=/<blockquote/,b=o.image.match(n),he=o.image.match(g),A=o.image.match(p),ge=o.image.match(de),fe=o.image.match(ue),xe=o.image.match(pe)||me.test(o.image);if(t.includes(a))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:c=>console.error("Image failed to load",c)})]});if(s.includes(a))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(xe){const c=o.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"'),ye=/<(iframe|blockquote)[^>]*class="/i.test(c)?c:c.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:ye}})]})}if(b){const c=o.option==="autoplay"?"autoplay=1":o.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/${b[1]}?${c}&loop=1&playlist=${b[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/${b[1]}?${o.option}=1&mute=1&loop=1&playlist=${b[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(he){let c=o.image;return c.includes("?compact=1")||(c+=(c.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:c,className:"w-full h-full",frameBorder:"0",allowFullScreen:!0,title:"Embedded LinkedIn Post",scrolling:"yes"})})}return A?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/${A[3]}?h=33160d1512&color=de0101`,className:"fixed top-0 left-0 w-full h-full object-cover",frameBorder:"0",allowFullScreen:!0})]}):ge||fe&&!o.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":o.image,"data-width":"1400","data-show-text":"true"})}):a==="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."]})]}):a==="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"})]}):le(o.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:o.image,className:"fixed top-0 left-0 w-full h-full",frameBorder:"0",allowFullScreen:!0,scrolling:"yes"})]}):($.current=new Blob([o.image],{type:"text/html"}),h.current=URL.createObjectURL($.current),e.jsx("iframe",{src:h.current,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"}))},[o]);return r.useEffect(()=>()=>{h.current&&URL.revokeObjectURL(h.current)},[]),e.jsxs(e.Fragment,{children:[e.jsxs(we,{children:[e.jsx("title",{children:"EZ HASHTAG - Manage Funnel SEO Tags"}),ne,e.jsx("meta",{name:"description",content:"Manage your funnel's SEO tags for better 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(Z,{id:"action-tooltip"}),e.jsx(Z,{id:"form-tooltip"}),e.jsx(je,{auth:W}),e.jsxs("main",{className:`relative flex justify-end p-4 min-h-screen overflow-hidden ${(q=o==null?void 0:o.image.split(".").pop())!=null&&q.toLowerCase()&&["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(((I=o.image.split(".").pop())==null?void 0:I.toLowerCase())||"")?"blur-bg":""}`,children:[e.jsx("div",{className:"absolute inset-0 z-0",children:ce}),O&&e.jsxs("div",{className:"fixed top-20 right-4 bg-red-600 text-white px-4 py-2 rounded-md shadow-lg z-500",children:[e.jsx(u,{icon:X,className:"mr-2"}),O]}),U&&e.jsxs("div",{className:"fixed top-20 right-4 bg-green-600 text-white px-4 py-2 rounded-md shadow-lg z-500",children:[e.jsx(u,{icon:Q,className:"mr-2"}),U]}),G&&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 w-full max-w-4xl",children:[e.jsx("button",{onClick:()=>J(!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(u,{icon:z,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:"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:v,onCh
96ange:a=>ee(a.target.value),onKeyPress:a=>a.key==="Enter"&&E(),"data-tooltip-id":"form-tooltip","data-tooltip-content":"Search your funnels"}),e.jsx(u,{icon:Y,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 ${y==="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:()=>{R("fuzzy"),E()},"data-tooltip-id":"action-tooltip","data-tooltip-content":"Use fuzzy (approximate) search",children:[e.jsx(u,{icon:Y,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 ${y==="exact"?"bg-green-600 text-white hover:bg-green-700":"bg-gray-600 text-gray-300 hover:bg-gray-700"}`,onClick:()=>{R("exact"),E()},"data-tooltip-id":"action-tooltip","data-tooltip-content":"Use exact match search",children:[e.jsx(u,{icon:Q,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(u,{icon:X,className:"text-2xl mb-2"}),e.jsx("p",{children:"No funnels found. Create one to get started!"})]}):_.map(a=>{var i,l;return e.jsxs("div",{className:"flex items-start p-4 gap-3 rounded-lg transition-all bg-[#5d0f6e] hover:bg-purple-800/80",children:[e.jsx("span",{className:"text-4xl select-none mt-1",children:"ð"}),e.jsx("div",{className:"flex-grow min-w-0",children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("a",{href:`https://ez.wiki/${encodeURIComponent(a.token)}`,target:"_blank",className:"text-yellow-400 font-semibold truncate hover:underline",rel:"noopener noreferrer","data-tooltip-id":"action-tooltip","data-tooltip-content":"Open ez.wiki link in new tab",children:["https://ez.wiki/",a.token]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2",children:[e.jsx("span",{className:"text-gray-300 whitespace-nowrap",children:"SEO Tag:"}),ae===a.id?e.jsxs("div",{className:"flex items-center gap-2 flex-grow",children:[e.jsx("input",{type:"text",defaultValue:a.seo_tag||"",ref:t=>t==null?void 0:t.focus(),className:"bg-gray-700/50 border border-gray-600 rounded px-2 py-1 text-white focus:outline-none focus:border-yellow-400 flex-grow",onKeyDown:t=>{t.key==="Enter"?D(a.id,t.currentTarget.value):t.key==="Escape"&&N(null)},onBlur:t=>{D(a.id,t.target.value)},"data-tooltip-id":"form-tooltip","data-tooltip-content":"Press Enter to save, Esc to cancel"}),e.jsx("button",{onClick:()=>N(null),className:"text-gray-300 hover:text-white",children:e.jsx(u,{icon:z})})]}):e.jsx("div",{className:"bg-gray-700/50 border border-gray-600 rounded px-2 py-1 text-white cursor-text flex-grow",onClick:()=>N(a.id),"data-tooltip-id":"action-tooltip","data-tooltip-content":"Click to edit SEO Tag",children:a.seo_tag||e.jsx("span",{className:"text-gray-400",children:"Click to add SEO tag"})})]}),(i=a.handle_domains)==null?void 0:i.map(t=>e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("a",{href:`https://${t.domain}.${t.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://",t.domain,".",t.domainselected]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-gray-300 whitespace-nowrap",children:"Hashtag:"}),(T==null?void 0:T.id)===t.id?e.jsxs("div",{className:"flex items-center gap-2 flex-grow",children:[e.jsx("input",{type:"text",defaultValue:t.hashtag||"",ref:s=>s==null?void 0:s.focus(),className:"bg-gray-700/50 border border-gray-600 rounded px-2 py-1 text-white focus:outline-none focus:border-yellow-400 flex-grow",onKeyDown:s=>{s.key==="Enter"?B(t.id,s.currentTarget.value):s.key==="Escape"&&k(null)},onBlur:s=>{B(t.id,s.target.value)},"data-tooltip-id":"form-tooltip","data-tooltip-content":"Press Enter to save, Esc to cancel"}),e.jsx("button",{onClick:()=>k(null),className:"text-gray-300 hover:text-white",children:e.jsx(u,{icon:z})})]}):e.jsx("div",{className:"bg-gray-700/50 border border-gray-600 rounded px-2 py-1 text-white cursor-text flex-grow",onClick:()=>k({id:t.id,value:t.hashtag||""}),"data-tooltip-id":"action-tooltip","data-tooltip-content":"Click to edit hashtag",children:t.hashtag||e.jsx("span",{className:"text-gray-400",children:"Click to add hashtag"})})]})]},t.id)),(l=a.custom_domains)==null?void 0:l.map(t=>e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("a",{href:`https://${t.domainselected}/${t.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://",t.domainselected,"/",t.domain]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-gray-300 whitespace-nowrap",children:"Hashtag:"}),(F==null?void 0:F.id)===t.id?e.jsxs("div",{className:"flex items-center gap-2 flex-grow",children:[e.jsx("input",{type:"text",defaultValue:t.hashtag||"",ref:s=>s==null?void 0:s.focus(),className:"bg-gray-700/50 border border-gray-600 rounded px-2 py-1 text-white focus:outline-none focus:border-yellow-400 flex-grow",onKeyDown:s=>{s.key==="Enter"?V(t.id,s.currentTarget.value):s.key==="Escape"&&S(null)},onBlur:s=>{V(t.id,s.target.value)},"data-tooltip-id":"form-tooltip","data-tooltip-content":"Press Enter to save, Esc to cancel"}),e.jsx("button",{onClick:()=>S(null),className:"text-gray-300 hover:text-white",children:e.jsx(u,{icon:z})})]}):e.jsx("div",{className:"bg-gray-700/50 border border-gray-600 rounded px-2 py-1 text-white cursor-text flex-grow",onClick:()=>S({id:t.id,value:t.hashtag||""}),"data-tooltip-id":"action-tooltip","data-tooltip-content":"Click to edit hashtag",children:t.hashtag||e.jsx("span",{className:"text-gray-400",children:"Click to add hashtag"})})]})]},t.id)),e.jsx("p",{className:"text-purple-300 text-sm whitespace-nowrap",children:se(a.created_at)})]})})]},a.id)})}),te&&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:oe,disabled:L,"data-tooltip-id":"action-tooltip","data-tooltip-content":"Load more funnels",children:L?"Loading...":"Load More"})})]})]})]})]})}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.