PageSourceSearch

https://bbcc.ai/build/assets/ezlogo-CEjec9PF.js

js bbcc.ai collected 2026-10-05 12:13:22 UTC 27,954 bytes, 96 lines download raw bytes

1import{u as ze,r as l,b as S,j as e,H as Se}from"./app-DP13319Q.js";import{D as Ce}from"./DraggableMenu-Bk7Spryo.js";import"./model-viewer-BNdxy5m2.js";import{F as n,h as ee,b as te,f as h,a as oe,c as Fe,be as _e}from"./index-CtyZ6W6U.js";import{l as Ee}from"./index.module-D1uRunsO.js";import{M as $e}from"./react-tooltip.min-DW3XhwOj.js";/* empty css            */import"./index-DQkUn08L.js";function qe(){var W,G;const{auth:ae,template:o,initialFunnels:k}=ze().props;l.useRef(null);const C=l.useRef(null),[le,se]=l.useState(!0),[I,F]=l.useState([]),[x,re]=l.useState(""),[p,T]=l.useState("fuzzy"),[_,D]=l.useState(1),[ie,E]=l.useState(!0),[L,b]=l.useState(!1),[O,u]=l.useState(""),[q,B]=l.useState(""),[ne,V]=l.useState("No file chosen"),[$,H]=l.useState(null),[R,U]=l.useState(null),[y,ce]=l.useState(null),[i,A]=l.useState(null),[v,M]=l.useState({flySignLogo:"",faviconLogo:"",metaLogo:"",secondaryLogo:""}),[d,w]=l.useState({flySign:!1,favicon:!1,metaLogo:!1,secondaryLogo:!1}),[Q]=Ee(x,500);l.useEffect(()=>()=>{y&&URL.revokeObjectURL(y)},[y]),l.useEffect(()=>{var t;if(o!=null&&o.image&&!P((t=o.image.split(".").pop())==null?void 0:t.toLowerCase())){const s=new Blob([o.image],{type:"text/html"}),a=URL.createObjectURL(s);return ce(a),()=>URL.revokeObjectURL(a)}},[o==null?void 0:o.image]),l.useEffect(()=>{k&&(F(k.data),E(k.next_page_url!==null))},[k]),l.useEffect(()=>{Q&&z()},[Q,p]);const z=l.useCallback(async()=>{try{const t=await S.get("/search-ez-funnels",{params:{query:x,type:p,page:1}});F(t.data.data),D(1),E(t.data.next_page_url!==null)}catch(t){console.error("Search error:",t),u("Failed to search funnels. Please try again."),setTimeout(()=>u(""),5e3)}},[x,p]),de=l.useCallback(async()=>{var t,s,a;try{b(!0);const r=((t=document.querySelector('meta[name="csrf-token"]'))==null?void 0:t.getAttribute("content"))||"",m=await S.get("/search-ez-funnels",{params:{query:x,type:p,page:_+1,with:"customDomains,handleDomains,effectSettings,logoSettings"},headers:{"X-CSRF-TOKEN":r,"Content-Type":"application/json"}});m.data&&m.data.data&&(F(j=>[...j,...m.data.data]),D(_+1),E(m.data.next_page_url!==null))}catch(r){console.error("Load more error:",r),u(((a=(s=r.response)==null?void 0:s.data)==null?void 0:a.message)||"Failed to load more items. Please try again."),setTimeout(()=>u(""),5e3)}finally{b(!1)}},[x,p,_]),ge=l.useCallback(async t=>{A(t),b(!0);try{const a=(await S.get(`/get-funnel-logo/${t.id}`)).data;a.logoimage!=""&&U(a.logoimage),M({flySignLogo:a.fly_sign_logo||"",faviconLogo:a.favicon_logo||"",metaLogo:a.meta_logo||"",secondaryLogo:a.secondary_logo||""}),w({flySign:!!a.fly_sign_logo,favicon:!!a.favicon_logo,metaLogo:!!a.meta_logo,secondaryLogo:!!a.secondary_logo})}catch(s){console.error("Error fetching logo data:",s),M({flySignLogo:"",faviconLogo:"",metaLogo:"",secondaryLogo:""}),w({flySign:!1,favicon:!1,metaLogo:!1,secondaryLogo:!1})}finally{b(!1)}},[]),me=l.useCallback(t=>{if(t.target.files&&t.target.files.length>0){const s=t.target.files[0];H(s),V(s.name);const a=new FileReader;a.onload=()=>{U(a.result)},a.readAsDataURL(s)}},[]),pe=l.useCallback(async t=>{var s,a,r,m,j;if(t.preventDefault(),b(!0),!!i)try{const c=new FormData;c.append("funnelId",i.id.toString()),c.append("flySign",d.flySign?"1":"0"),c.append("favicon",d.favicon?"1":"0"),c.append("metaLogo",d.metaLogo?"1":"0"),c.append("secondaryLogo",d.secondaryLogo?"1":"0"),$&&c.append("logoImage",$);const f=await S.post("/update-funnel-logo",c,{headers:{"Content-Type":"multipart/form-data","X-CSRF-TOKEN":((s=document.querySelector('meta[name="csrf-token"]'))==null?void 0:s.getAttribute("content"))||""}});B("Logo settings updated successfully!"),setTimeout(()=>B(""),5e3),f.data.logo&&M({flySignLogo:f.data.logo.fly_sign_logo||"",faviconLogo:f.data.logo.favicon_logo||"",metaLogo:f.data.logo.meta_logo||"",secondaryLogo:f.data.logo.secondary_logo||""}
1),C.current&&(C.current.value=""),V("No file chosen"),H(null),U(null)}catch(c){console.error("Logo update error:",c),(r=(a=c.response)==null?void 0:a.data)!=null&&r.errors?u(Object.values(c.response.data.errors).flat().join(", ")||"Failed to update logo settings. Please try again."):u(((j=(m=c.response)==null?void 0:m.data)==null?void 0:j.message)||"Failed to update logo settings. Please try again."),setTimeout(()=>u(""),5e3)}finally{b(!1)}},[i,d,$]),ue=l.useCallback(t=>new Date(t).toLocaleDateString("en-US",{weekday:"short",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}),[]),Y=l.useCallback(t=>{try{return new URL(t),!0}catch{return!1}},[]),Z=l.useCallback(t=>{var a;return(a=t.split("?")[0].split(".").pop())==null?void 0:a.toLowerCase()},[]),P=l.useCallback(t=>t?["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(t):!1,[]),fe=l.useMemo(()=>o!=null&&o.image&&P(Z(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,[o==null?void 0:o.image,o==null?void 0:o.user_id,Z,P]),he=l.useMemo(()=>{var J;if(!o)return null;const t=((J=o.image.split(".").pop())==null?void 0:J.toLowerCase())||"",a=`${o.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${o.image}`,r=["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"],m=["ppt","pptx","pdf","xls","xlsx","doc","docx","pages","ai","psd","eps","ttf","dxf","xps","rar","zip","ods","odt","odp"],j=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i,c=/(?:https?:\/\/)?(?:www\.)?linkedin\.com\/(?:in|posts|company|feed|showcase|embed\/feed\/update\/urn:li:[^/]+:[^"&?/ ]+)/i,f=/^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$/im,xe=/^(https?:\/\/)?(www\.)?fb\.watch\/[a-zA-Z0-9(\.\?)?]/,be=/^(https?:\/\/)?(www\.)?facebook\.com\/[a-zA-Z0-9(\.\?)?]/,ye=/<iframe.*?src=["'](.*?)["'].*?>.*?<\/iframe>/is,we=/<blockquote/,N=o.image.match(j),je=o.image.match(c),X=o.image.match(f),ve=o.image.match(xe),Ne=o.image.match(be),ke=o.image.match(ye)||we.test(o.image);if(r.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:a,alt:"Background",className:"absolute inset-0 max-w-full max-h-full m-auto z-0 rounded-lg",onError:g=>console.error("Image failed to load",g)})]});if(m.includes(t))return e.jsx("iframe",{src:`https://docs.google.com/viewer?url=${a}&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(ke){const g=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"'),Le=/<(iframe|blockquote)[^>]*class="/i.test(g)?g:g.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:Le}})]})}if(N){const g=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/${N[1]}?${g}&loop=1&playlist=${N[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/${N[1]}?${o.option}=1&mute=1&loop=1&playlist=${N[1]}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
46 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})]})}if(je){let g=o.image;return g.includes("?compact=1")||(g+=(g.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:g,className:"w-full h-full",frameBorder:"0",allowFullScreen:!0,title:"Embedded LinkedIn Post",scrolling:"yes"})})}return X?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/${X[3]}?h=33160d1512&color=de0101`,className:"fixed top-0 left-0 w-full h-full object-cover",frameBorder:"0",allowFullScreen:!0})]}):ve||Ne&&!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"})}):t==="mp4"?e.jsxs(e.Fragment,{children:[e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"fixed top-0 left-0 w-full h-full object-cover z-[-3]",children:[e.jsx("source",{src:a,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:a,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:a,alt:"3D model",className:"fixed top-0 left-0 w-full h-full",ar:!0,"auto-rotate":!0,"camera-controls":!0,"shadow-intensity":"1"})]}):Y(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"})]}):y?e.jsx("iframe",{src:y,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},[o,y,Y]),K=l.useCallback((t,s=!1)=>{const a=v.flySignLogo||v.faviconLogo||v.metaLogo||v.secondaryLogo;return s&&R||s&&a?e.jsxs("div",{className:"text-center",children:[e.jsx("a",{href:t,className:"text-lime-400 block mb-2 text-sm sm:text-base break-all",target:"_blank",rel:"noopener noreferrer","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Open Funnel URL",children:t}),e.jsx("div",{className:"relative inline-block p-4 bg-white rounded-lg",children:e.jsx("img",{src:R||a,alt:"Uploaded Logo",className:"w-full h-auto max-w-[250px] max-h-[250px] object-contain"})})]}):e.jsxs("div",{className:"text-center",children:[e.jsx("a",{href:t,className:"text-lime-400 block mb-2 text-sm sm:text-base break-all",target:"_blank",rel:"noopener noreferrer","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Open Funnel URL",children:t}),e.jsx("div",{className:"relative inline-block p-4 bg-white rounded-lg","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Scan this QR code to visit your funnel",children:e.jsx("img",{src:`https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=${encodeURIComponent(t)}&color=0b6623&bgcolor=ffffff&qzone=1`,alt:"QR Code",className:"w-full h-auto"})})]})},[v,R]);return e.jsxs(e.Fragment,{children:[e.jsxs(Se,{children:[e.jsx("title",{children:"EZ LOGO - Customize Your Funnel Logos"}),fe,e.jsx("meta",{name:"description",content:"Manage your funnel's logos for branding and identification"}),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($e,{id:"ezlogo-tooltip"}),e.jsx(Ce,{auth:ae}),e.jsxs("main",{className:`relative flex justify-end p-4 min-h-screen overflow-hidden ${(W=o==null?void 0:o.image.split(".").pop())!=null&&W.toLowerCase()&&["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(((G=o.image.split(".").pop())==null?void 0:G.toLowerCase())||"")?"blur-bg":""}`,children:[e.jsx("div",{className:"absolute inset-0 z-0",children:he}),le&&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:()=>se(!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":"ezlogo-tooltip","data-tooltip-content":"Close Panel",children:e.jsx(n,{icon:ee,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:x,onChange:t=>re(t.target.value),onKeyPress:t=>t.key==="Enter"&&z(),"data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Enter a search term and press Enter"}),e.jsx(n,{icon:te,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 ${p==="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"),z()},"data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Fuzzy Search: Finds partial matches",children:[e.jsx(n,{icon:te,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 ${p==="exact"?"bg-green-600 text-white hover:bg-green-700":"bg-gray-600 text-gray-300 hover:bg-gray-700"}`,onClick:()=>{T("exact"),z()},"data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Exact Search: Finds only exact matches",children:[e.jsx(n,{icon:h,className:"h-4 w-4"}),"Exact"]})]})]}),e.jsx("div",{className:"max-h-[65vh] overflow-y-auto custom-scrollbar space-y-2",children:I.length===0?e.jsxs("div",{className:"text-center py-8 text-gray-300",children:[e.jsx(n,{icon:oe,className:"text-2xl mb-2"}),e.jsx("p",{children:"No funnels found. Create one to get started!"})]}):I.map(t=>{var s,a;return e.jsxs("div",{className:`flex items-center p-4 gap-1 rounded-lg transition-all ${(i==null?void 0:i.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":"ezlogo-tooltip","data-tooltip-content":"Open this funnel in a new tab",children:["https://ez.wiki/",t.token]}),(s=t.handle_domains)==null?void 0:s.map(r=>e.jsxs("a",{href:`https://${r.domain}.${r.domainselected}`,target:"_blank",className:"text-yellow-400 font-semibold truncate hover:underline",rel:"noopener noreferrer","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Open this handle domain in a new tab",children:["https://",r.domain,".",r.domainselected]},r.id)),(a=t.custom_domains)==null?void 0:a.map(r=>e.jsxs("a",{href:`https://${r.domainselected}/${r.domain}`,target:"_blank",className:"text-yellow-400 font-semibold truncate hover:underline",rel:"noopener noreferrer","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Open this custom domain in a new tab",children:["https://",r.domainselected,"/",r.domain]},r.id)),e.jsx("p",{className:"text-purple-300 text-sm whitespace-nowrap",children:ue(t.created_at)})]})}),e.jsx("button",{className:`font-bold py-1 px-5 rounded-md text-sm transition-colors whitespace-nowrap ${(i==null?void 0:i.id)===t.id?"bg-yellow-500 text-black hover:bg-yellow-600":"bg-yellow-400 text-black hover:bg-yellow-500"}`,onClick:()=>ge(t),"data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Edit logos for this funnel",children:(i==null?void 0:i.id)===t.id?"Editing":"Edit Logo"})]},t.id)})}),ie&&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:de,disabled:L,"data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Load more funnels",children:L?"Loading...":"Load More"})})]}),i?e.jsxs("div",{className:"bg-gray-800/80 border border-gray-700 rounded-lg p-6 space-y-6",children:[q&&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:h}),q]}),O&&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:oe}),O]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("h2",{className:"text-yellow-400 text-xl font-bold",children:["Editing Logos for: ",e.jsx("span",{className:"text-white",children:i.token})]}),e.jsx("button",{onClick:()=>A(null),className:"text-gray-300 hover:text-white bg-gray-700 p-2 rounded-md","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Close Editor",children:e.jsx(n,{icon:ee})})]}),e.jsx("hr",{className:"border-t border-gray-700"}),e.jsxs("form",{onSubmit:pe,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:gap-8",children:[K(`https://ez.wiki/${i.token}`),K(`https://ez.wiki/${i.token}`,!0)]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"block text-lime-400 text-center font-semibold",children:"Upload Image"}),e.jsxs("div",{className:"bg-white border border-gray-300 rounded-md flex items-center w-full",children:[e.jsx("label",{htmlFor:"file-upload",className:"cursor-pointer bg-gray-200 text-gray-800 font-medium px-4 py-2 rounded-l-md border-r border-gray-300 hover:bg-gray-300 transition-colors","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Click to select an image file",children:"Choose File"}),e.jsx("span",{id:"file-name",className:"px-3 text-gray-500 truncate",children:ne}),e.jsx("input",{id:"file-upload",type:"file",className:"hidden",ref:C,onChange:me,accept:"image/*"})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-3 text-white text-sm sm:text-base",children:[e.jsxs("div",{className:"flex items-center","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Use this logo as the floating avatar.",children:[e.jsx("input",{id:"fly-sign",type:"checkbox",className:"h-4 w-4 bg-white rounded-none appearance-none checked:bg-green-600 checked:border-transparent focus:outline-none align-middle",checked:d.flySign,onChange:t=>w({...d,flySign:t.target.checked})}),e.jsx("label",{htmlFor:"fly-sign",className:"ml-2",children:"First Fly-sign Avatar"})]}),e.jsxs("div",{className:"flex items-center","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Use this logo as the browser tab icon.",children:[e.jsx("input",{id:"favicon",type:"checkbox",className:"h-4 w-4 bg-white rounded-none appearance-none checked:bg-green-600 checked:border-transparent focus:outline-none align-middle",checked:d.favicon,onChange:t=>w({...d,favicon:t.target.checked})}),e.jsx("label",{htmlFor:"favicon",className:"ml-2",children:"Favicon"})]}),e.jsxs("div",{className:"flex items-center","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Use this logo for social media sharing previews.",children:[e.jsx("input",{id:"meta-logo",type:"checkbox",className:"h-4 w-4 bg-white rounded-none appearance-none checked:bg-green-600 checked:border-transparent focus:outline-none align-middle",checked:d.metaLogo,onChange:t=>w({...d,metaLogo:t.target.checked})}),e.jsx("label",{htmlFor:"meta-logo",className:"ml-2",children:"Meta logo"})]}),e.jsxs("div",{className:"flex items-center","data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Use this logo in other designated areas.",children:[e.jsx("input",{id:"second-logo",type:"checkbox",className:"h-4 w-4 bg-white rounded-none appearance-none checked:bg-green-600 checked:border-transparent focus:outline-none align-middle",checked:d.secondaryLogo,onChange:t=>w({...d,secondaryLogo:t.target.checked})}),e.jsx("label",{htmlFor:"second-logo",className:"ml-2",children:"Second EZ LOGO"})]})]}),e.jsx("div",{className:"text-center pt-4",children:e.jsx("button",{type:"submit",className:"bg-green-600 text-white font-semibold px-10 py-2 rounded-lg hover:bg-green-700 transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-black focus:ring-green-500 disabled:opacity-50 flex items-center justify-center gap-2 mx-auto",disabled:L,"data-tooltip-id":"ezlogo-tooltip","data-tooltip-content":"Save your logo settings for this funnel",children:L?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:"animate-spin 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:Fe}),"Save Logo Settings"]})})})
96]})]}):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",children:e.jsxs("div",{className:"text-center",children:[e.jsx(n,{icon:_e,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 Logos"}),e.jsx("p",{className:"text-gray-300 mb-6",children:'Click the "Edit Logo" button on any funnel to customize its logo 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:"Logo 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:h,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Enhance brand recognition"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(n,{icon:h,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Improve professional appearance"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(n,{icon:h,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:h,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Increase trust and credibility"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(n,{icon:h,className:"text-green-400 mt-1"}),e.jsx("span",{children:"Customize your funnel's identity"})]})]})]})]})})]})]})]})]})}export{qe 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.