PageSourceSearch

https://www.imgkits.com/_nuxt/my-creations-BQTM2M59-28.js

js imgkits.com collected 2026-09-24 08:47:40 UTC 22,472 bytes, 1 lines download raw bytes

1import{_ as Te}from"./SlideBarlayout-DYvVJ8Zc-28.js";import{_ as re}from"./NuxtImg-Bc55eaXM-28.js";import{e as E,a as le,d as ne,n as ie,_ as de,u as Fe}from"#entry";/* empty css                *//* empty css                      *//* empty css                      *//* empty css                     *//* empty css                    */import{i as ce}from"./InpaintState-DheFZ_1r-28.js";import{r as i,A as ue,o as ve,w as R,c as g,b as d,e as s,af as $,ad as Q,_ as X,ac as Z,a5 as j,a1 as O,a2 as ge,a6 as Ue,a3 as ee,a4 as W,ai as Ne,ah as se,n as Ae}from"./core-i18n-CvkTSGFb-28.js";import{E as _}from"./index-DGJW-ids-28.js";import{E as pe}from"./index-iPptuLGL-28.js";import{_ as Ee}from"./_plugin-vue_export-helper-DlAUqK2U-28.js";import"./lazy-icons-B1O2ft2Z-28.js";import"./util-lodash-EiWJhHUB-28.js";import"./index-Dor4ESMI-28.js";import"./browser-Ddweagm--28.js";import"./index-QloTKNw6-28.js";import"./index-yY129x5b-28.js";import"./use-form-common-props-Dgz-K-ul-28.js";import"./aria-CM67-OYB-28.js";import"./index-Ciuhln4A-28.js";import"./index-Dw3xoU4i-28.js";import"./focus-trap-C6m7mSZ6-28.js";const Re={style:{height:"calc(100vh - 100px)"},class:"flex-col !h-[100vh-64px] overflow-y-auto bg-white justify-center items-center w-full flex relative"},Oe={class:"flex-1 w-full py-6 overflow-hidden"},We={class:"h-full flex flex-col"},Ye={key:0,class:"flex-1 overflow-auto"},qe={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-6 pb-6"},Ge={key:0,class:"group bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden"},Ke={class:"relative aspect-square overflow-hidden"},Je=["src","alt"],Qe={class:"absolute top-2 right-2 flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity duration-300"},Xe=["onClick"],Ze=["onClick"],et={class:"absolute bottom-2 left-2"}
1,tt={class:"px-2 py-1 bg-black/70 text-white text-xs rounded-full backdrop-blur-sm"},ot={class:"p-4"},at={class:"text-sm text-gray-800 line-clamp-2 mb-2 font-medium"},st={class:"flex items-center justify-between text-xs text-gray-500"},rt={key:0,class:"bg-gray-100 px-2 py-1 rounded"},lt={key:0,class:"flex items-center justify-center gap-2 py-6 border-t border-gray-100"},nt=["disabled"],it=["disabled"],dt={class:"px-4 py-2 text-sm text-gray-700"},ct=["disabled"],ut=["disabled"],vt={key:1,class:"flex items-center justify-center py-20"},gt={class:"w-full max-w-[500px] rounded-lg p-10 mx-auto h-full flex items-center justify-center flex-col"},pt={__name:"AiImageHistory",props:{isProcessing:{type:Boolean,default:!1}},setup(H,{expose:C}){const{aiimageFetch:D}=ie(),I=ce(),{currentFunction:Y}=E(I);le();const z=ne(),{user:m,subscribedUser:q,credits:he,jwt:fe,totalCredits:me,goLivepollUpgrad:ye}=E(z),u=i([]),V=i(!1),y=i(0),p=i(1),P=i(20),G=i(""),K=i("desc"),w=ue(()=>Math.ceil(y.value/P.value)),U=H;ve(()=>{m.value,m.value?.id&&h()}),R(()=>m.value?.id,v=>{v&&h()});const h=async(v=1)=>{if(m.value,!m.value?.id){console.warn("User not logged in, unable to load history");return}try{V.value=!0,p.value=v;const o={user_id:m.value.id,page:v,size:P.value,function_key:G.value||void 0,sort_order:K.value},f=await D.fetchUserHistory(o.user_id,o.page,o.size,o.function_key,o.sort_order);f&&f.data?(u.value=f.data,y.value=f.total||0,p.value=f.current_page||v):(u.value=[],y.value=0)}catch(o){console.error("Failed to load history:",o),u.value=[],y.value=0,_?.error?.("Failed to load history, please try again later")}finally{V.value=!1}},M=()=>{h(p.value)},L=v=>{const o=new Date(v),b=Math.abs(new Date-o),n=Math.floor(b/(1e3*60*60*24)),x=Math.floor(b/(1e3*60*60)),T=Math.floor(b/(1e3*60));return T<1?"Just now":T<60?`${T} minutes ago`:x<24?`${x} hours ago`:n<7?`${n} days ago`:o.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},N=async(v,o)=>{try{const b=await(await fetch(v)).blob(),n=window.URL.createObjectURL(b),x=document.createElement("a");x.href=n,x.download=`ai-image-${o}.webp`,document.body.appendChild(x),x.click(),document.body.removeChild(x),window.URL.revokeObjectURL(n),_?.success?.("Image downloaded successfully")}catch(f){console.error("Failed to download image:",f),_?.error?.("Download failed, please try again later")}},A=async(v,o)=>{try{if(!v||!o){_?.error?.("Invalid parameters");return}if(!await new Promise(b=>{pe?.confirm?.("Are you sure you want to delete this history record? This action cannot be undone.","Confirm Delete",{confirmButtonText:"Delete",cancelButtonText:"Cancel",type:"warning"}).then(()=>b(!0)).catch(()=>b(!1))}))return;await D.deleteHistoryItem(v,o),u.value=u.value.filter(b=>b.id!==v),y.value=Math.max(0,y.value-1),u.value.length===0&&p.value>1?h(p.value-1):u.value.length===0&&h(1),_?.success?.("Deleted successfully")}catch(f){console.error("Failed to delete history:",f),_?.error?.("Delete failed, please try again later")}},S=v=>{u.value.unshift(v),y.value+=1};return R(()=>U.isProcessing,(v,o)=>{o===!0&&v===!1&&setTimeout(()=>{M()},1e3)}),C({loadHistory:h,refreshHistory:M,addNewHistoryItem:S}),(v,o)=>{const f=re,b=de;return d(),g("div",Re,[s("div",Oe,[s("div",We,[o[10]||(o[10]=s("div",{class:"flex items-center justify-between mb-6"},[s("h1",{class:"text-xl font-semibold"},"My Creations"),s("div",{class:"flex items-center gap-3"})],-1)),u.value.length>0||H.isProcessing?(d(),g("div",Ye,[s("div",qe,[H.isProcessing?(d(),g("div",Ge,[...o[4]||(o[4]=[Q('<div class="relative aspect-square overflow-hidden bg-gray-100"><div class="absolute inset-0 bg-gradient-to-r from-gray-200 via-gray-300 to-gray-200 animate-pulse"></div><div class="absolute inset-0 bg-gradient-to-r from-transparent via-white/40 to-transparent animate-shimmer"></div><div class="absolute inset-0 flex items-center justify-center"><div class="backdrop-blur-sm rounded-lg px-4 py-2 flex items-center gap-2 flex-col"><div class="w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"></div><span class="text-xs text-center font-medium text-gray-700"> Your image is generating. This might take few seconds. </span></div></div></div><div class="p-4"><div class="h-4 bg-gray-200 rounded animate-pulse mb-2"></div><div class="h-3 bg-gray-200 rounded w-3/4 animate-pulse mb-2"></div><div class="flex items-center justify-between"><div class="h-3 bg-gray-200 rounded w-16 animate-pulse"></div><div class="h-6 bg-gray-200 rounded w-20 animate-pulse"></div></div></div>',2)])])):$("",!0),(d(!0),g(X,null,Z(u.value,n=>(d(),g("div",{key:n.uuid,class:"group bg-white rounded-xl shadow-sm hover:shadow-lg transition-all duration-300 overflow-hidden border border-gray-100"},[s("div",Ke,[s("img",{src:n.image_url,alt:n.prompt||"Generated image",width:"300",height:"300",class:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"},null,8,Je),o[7]||(o[7]=s("div",{class:"absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors duration-300"},null,-1)),s("div",Qe,[s("button",{onClick:x=>N(n.image_url,n.uuid),class:"p-2 bg-white/90 hover:bg-white text-gray-700 rounded-full shadow-sm transition-all duration-200 hover:scale-110"},[...o[5]||(o[5]=[s("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])],8,Xe),s("button",{onClick:x=>
1A(n.id,n.user_id),class:"p-2 bg-red-500/90 hover:bg-red-500 text-white rounded-full shadow-sm transition-all duration-200 hover:scale-110"},[...o[6]||(o[6]=[s("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)])],8,Ze)]),s("div",et,[s("span",tt,j(n.function_key),1)])]),s("div",ot,[s("p",at,j(n.prompt),1),s("div",st,[s("span",null,j(L(n.create_time)),1),n.model?(d(),g("span",rt,j(n.model),1)):$("",!0)])])]))),128))]),y.value>P.value?(d(),g("div",lt,[s("button",{onClick:o[0]||(o[0]=n=>h(1)),disabled:p.value===1,class:"px-3 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"}," First ",8,nt),s("button",{onClick:o[1]||(o[1]=n=>h(p.value-1)),disabled:p.value===1,class:"px-3 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"}," Previous ",8,it),s("span",dt," Page "+j(p.value)+" of "+j(w.value),1),s("button",{onClick:o[2]||(o[2]=n=>h(p.value+1)),disabled:p.value>=w.value,class:"px-3 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"}," Next ",8,ct),s("button",{onClick:o[3]||(o[3]=n=>h(w.value)),disabled:p.value===w.value,class:"px-3 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"}," Last ",8,ut)])):$("",!0)])):(d(),g("div",vt,[s("div",null,[s("div",gt,[O(f,{src:"https://public.imgkits.com/no-preview-image.png",alt:"No preview available",width:"200",height:"200"}),o[9]||(o[9]=s("p",{class:"text-center text-gray-500 mt-4"},"Your images will appear here once generated",-1)),O(b,{to:"/create/image",class:"btn my-2 btn-primary"},{default:ge(()=>[...o[8]||(o[8]=[Ue("Generate Image Now",-1)])]),_:1})])])]))])])])}}},ht={style:{height:"calc(100vh - 100px)"},class:"flex-col !h-[100vh-64px] overflow-y-auto bg-white w-full flex relative"},ft={class:"flex-1 w-full py-6"},mt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-6"},yt=["id","onMouseenter","onMouseleave"],bt={class:"relative aspect-[9/16] overflow-hidden rounded-xl bg-gradient-to-br from-gray-100 to-gray-200"},wt={key:0,class:"absolute inset-0 flex items-center justify-center z-30 bg-gradient-to-br from-blue-50 to-purple-50"},xt=["src","alt","onError","onLoadstart","onLoadedmetadata","onLoadeddata","onCanplay","onCanplaythrough"],_t={class:"absolute top-3 right-3 z-20 flex gap-2 opacity-0 group-hover:opacity-100 transition-all duration-300"},kt=["onClick"],Ct=["disabled","onClick"],$t={key:0,class:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24"},It={key:1,class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Vt={class:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-all duration-300 z-10"},Mt={class:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 transition-all duration-300"},Lt={class:"bg-white/20 backdrop-blur-sm rounded-full p-4 border border-white/30 shadow-lg"},jt={key:0,class:"w-8 h-8 text-white drop-shadow-lg",fill:"currentColor",viewBox:"0 0 20 20"},Ht={key:1,class:"w-8 h-8 text-white drop-shadow-lg",fill:"currentColor",viewBox:"0 0 20 20"},Dt={class:"absolute bottom-0 left-0 right-0 p-4"},Pt={class:"text-white text-sm font-medium line-clamp-2 drop-shadow-lg leading-relaxed"},St={key:0,class:"flex items-center justify-center py-20"},Bt={class:"text-center max-w-md mx-auto"},zt={key:1,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-6"},Tt={__name:"AIVideoHistory",props:{isProcessing:{type:Boolean,default:!1}},setup(H,{expose:C}){const{aiVideoFetch:D}=ie(),I=ce(),{currentFunction:Y}=E(I);le();const z=ne(),{user:m,subscribedUser:q,credits:he,jwt:fe,totalCredits:me,goLivepollUpgrad:ye}=E(z),u=i([]),V=i(!1),y=i(0),p=i(1),P=i(20),G=i(""),K=i("desc"),w=i(new Map),U=i(new Map),h=i(new Map),M=i(new Set),L=i(new Map),N=i(new Map),A=i(new Map),S=i(new Map),v=i(new Set),o=t=>t?.uuid||t?.id||t?.result_url,f=t=>String(t?.id||o(t)||""),b=t=>v.value.has(f(t)),n=(t,e)=>{const a=f(t);if(!a)return;const l=new Set(v.value);e?l.add(a):l.delete(a),v.value=l},x=t=>{const e=o(t);if(!e)return;const a=h.value.get(e);a&&(a.pause(),a.removeAttribute("src"),a.load()),w.value.delete(e),U.value.delete(e),h.value.delete(e),M.value.delete(e),L.value.delete(e),N.value.delete(e),A.value.delete(e),S.value.delete(e)},T=t=>{const e=o(t);return S.value.get(e)===!0},F=t=>{const e=o(t);return M.value.has(e)},be=t=>`https://video.deletetweets.ai/cdn-cgi/media/mode=frame/${t}`,we=(t,e)=>{if(e){const a=o(t);h.value.set(a,e)}},xe=(t,e)=>{if(e){const a=o(t);N.value.set(a,e)}},_e=t=>{const e=te(t),a=F(t);return{"opacity-0 scale-95":!e||a,"opacity-100 scale-100":e&&!a}},ke=t=>{const e=J(t),a=F(t);return{"opacity-0 scale-95":!e||!a,"opacity-100 scale-100":e&&a}},te=t=>{const e=o(t);return L.value.get(e)==="loaded"},J=t=>{const e=o(t);return w.value.get(e)==="can_play"||w.value.get(e)==="can_play_through"},Ce=async t=>{const e=o(t);S.value.set(e,!0),await Ae();const a=h.value.get(e);if(a){if(!J(t)){a.load();try{await new Promise((l,r)=>{const k=()=>{a.readyState>=3?l():setTimeout(k,100)};k(),setTimeout(()=>r(new Error("Video load timeout")),3e3)})}catch{return}}try{await a.play(),M.value.add(e)}catch{}}},oe=t=>{const e=o(t);S.value.set(e,!1);const a=h.value.get(e);a&&(a.pause(),a.currentTime=0,M.value.delete(e))},$e=(t,e)=>{const a=o(e),l=t.target;
1l.naturalWidth&&l.naturalHeight&&A.value.set(a,{width:l.naturalWidth,height:l.naturalHeight}),L.value.set(a,"loaded")},Ie=(t,e)=>{const a=o(e);L.value.set(a,"error");const l=h.value.get(a);l&&l.load()},Ve=(t,e)=>{const a=o(e);w.value.set(a,"loading")},Me=(t,e)=>{const a=o(e),l=t.target;l.videoWidth&&l.videoHeight&&U.value.set(a,{width:l.videoWidth,height:l.videoHeight}),w.value.set(a,"metadata_loaded")},Le=(t,e)=>{const a=o(e);w.value.set(a,"data_loaded")},je=(t,e)=>{const a=o(e);w.value.set(a,"can_play")},He=(t,e)=>{const a=o(e);w.value.set(a,"can_play_through")},De=(t,e)=>{const a=o(e);w.value.set(a,"error")};ue(()=>Math.ceil(y.value/P.value));const Pe=H;ve(()=>{m.value,m.value?.id&&B()}),R(()=>m.value?.id,t=>{t&&B()});const B=async(t=1)=>{if(m.value,!m.value?.id){console.warn("User not logged in, unable to load history");return}try{V.value=!0,p.value=t;const e={user_id:m.value.id,page:t,size:P.value,function_key:G.value||void 0,sort_order:K.value},a=await D.fetchVideoHistory(e.user_id,e.page,e.size,e.function_key,e.sort_order);a&&a.data?(u.value=a.data,y.value=a.total||0,p.value=a.current_page||t):(u.value=[],y.value=0),u.value.forEach(l=>{const r=o(l);w.value.set(r,"initial"),L.value.set(r,"initial")})}catch(e){console.error("Failed to load history:",e),u.value=[],y.value=0,_?.error?.("Failed to load history, please try again later")}finally{V.value=!1}},ae=()=>{B(p.value)},Se=async(t,e)=>{try{const l=await(await fetch(t)).blob(),r=window.URL.createObjectURL(l),k=document.createElement("a");k.href=r,k.download=`ai-video-${e}.mp4`,document.body.appendChild(k),k.click(),document.body.removeChild(k),window.URL.revokeObjectURL(r),_?.success?.("Video downloaded successfully")}catch(a){console.error("Failed to download video:",a),_?.error?.("Download failed, please try again later")}},Be=async t=>{const e=t?.id,a=t?.user_id||m.value?.id;if(!e||!a){_?.error?.("Invalid parameters");return}if(!(!await new Promise(r=>{pe?.confirm?.("Are you sure you want to delete this history record? This action cannot be undone.","Confirm Delete",{confirmButtonText:"Delete",cancelButtonText:"Cancel",type:"warning"}).then(()=>r(!0)).catch(()=>r(!1))})||b(t)))try{n(t,!0),oe(t),await D.deleteVideoHistoryItem(e,a),x(t),u.value=u.value.filter(r=>r.id!==e),y.value=Math.max(0,y.value-1),u.value.length===0&&p.value>1?B(p.value-1):u.value.length===0&&B(1),_?.success?.("Deleted successfully")}catch(r){console.error("Failed to delete video history:",r),_?.error?.("Delete failed, please try again later")}finally{n(t,!1)}},ze=t=>{u.value.unshift(t),y.value+=1};return R(()=>Pe.isProcessing,(t,e)=>{e===!0&&t===!1&&setTimeout(()=>{ae()},1e3)}),C({loadHistory:B,refreshHistory:ae,addNewHistoryItem:ze}),(t,e)=>{const a=re,l=de;return d(),g("div",ht,[s("div",ft,[e[9]||(e[9]=s("div",{class:"flex items-center justify-between mb-6"},[s("h1",{class:"text-xl font-semibold"},"My Video Creations")],-1)),s("div",mt,[(d(!0),g(X,null,Z(u.value,(r,k)=>(d(),g("div",{key:r.uuid||r.id||`${r.result_url}-${k}`,id:`item-${r.uuid||r.id||k}`,class:"video-card group relative overflow-hidden bg-white rounded-xl shadow-md hover:shadow-2xl transition-all duration-500 border border-gray-200/50",onMouseenter:c=>Ce(r),onMouseleave:c=>oe(r)},[s("div",bt,[!J(r)&&!te(r)?(d(),g("div",wt,[...e[0]||(e[0]=[Q('<div class="flex flex-col items-center space-y-3" data-v-1abad6f1><div class="relative" data-v-1abad6f1><div class="animate-spin rounded-full h-10 w-10 border-3 border-blue-500/30 border-t-blue-500" data-v-1abad6f1></div><div class="absolute inset-0 animate-ping rounded-full h-10 w-10 border border-blue-400/20" data-v-1abad6f1></div></div><span class="text-gray-600 text-sm font-medium" data-v-1abad6f1>Loading...</span></div>',1)])])):$("",!0),F(r)?$("",!0):(d(),ee(a,{key:1,ref_for:!0,ref:c=>xe(r,c),src:be(r.result_url),alt:r.prompt,class:W(["w-full h-full object-cover transition-all duration-700 group-hover:scale-110",_e(r)]),onError:c=>Ie(c,r),onLoad:c=>$e(c,r),loading:"lazy"},null,8,["src","alt","class","onError","onLoad"])),T(r)?(d(),g("video",{key:2,ref_for:!0,ref:c=>we(r,c),src:r.result_url,alt:r.prompt,class:W(["w-full h-full object-cover transition-all duration-700 group-hover:scale-110",ke(r)]),style:Ne({display:F(r)?"block":"none"}),onError:c=>De(c,r),onLoadstart:c=>Ve(c,r),onLoadedmetadata:c=>Me(c,r),onLoadeddata:c=>Le(c,r),onCanplay:c=>je(c,r),onCanplaythrough:c=>He(c,r),muted:"",loop:"",preload:"metadata",playsinline:""},null,46,xt)):$("",!0),s("div",_t,[s("button",{class:"w-10 h-10 bg-black/20 backdrop-blur-sm hover:bg-black/40 text-white rounded-full transition-all duration-300 hover:scale-110 flex items-center justify-center",onClick:se(c=>Se(r.result_url,r.uuid),["stop"]),title:"Download Video"},[...e[1]||(e[1]=[s("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])],8,kt),s("button",{class:"w-10 h-10 bg-red-500/90 backdrop-blur-sm hover:bg-red-500 text-white rounded-full transition-all duration-300 hover:scale-110 flex items-center justify-center disabled:opacity-60 disabled:cursor-not-allowed disabled:hover:scale-100",disabled:b(r),onClick:se(c=>Be(r),["stop"]),title:"Delete Video"},[b(r)?(d(),g("svg",$t,[...e[2]||(e[2]=[s("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),s("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):(d(),g("svg",It,[...e[3]||(e[3]=[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},null,-1)])]))],8,Ct)]),s("div",Vt,[s("div",Mt,[s("div",Lt,[F(r)?(d(),g("svg",Ht,[...e[5]||(e[5]=[s("path",{d:"M5.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75A.75.75 0 007.25 3h-1.5zM12.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75a.75.75 0 00-.75-.75h-1.5z"},null,-1)])])):(d(),g("svg",jt,[...e[4]||(e[4]=[s("path",{d:"M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z"},null,-1)])]))])]),s("div",Dt,[s("p",Pt,j(r.prompt),1)])])])],40,yt))),128))]),!V.value&&u.value.length===0?(d(),g("div",St,[s("div",Bt,[e[7]||(e[7]=Q('<div class="relative mb-8" data-v-1abad6f1><div class="w-32 h-32 mx-auto bg-gradient-to-br from-blue-100 to-purple-100 rounded-full flex items-center justify-center" data-v-1abad6f1><svg class="w-16 h-16 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-1abad6f1><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z" data-v-1abad6f1></path></svg></div><div class="absolute -top-2 -right-2 w-8 h-8 bg-yellow-400 rounded-full flex items-center justify-center" data-v-1abad6f1><span class="text-white text-xl" data-v-1abad6f1>✨</span></div></div><h3 class="text-xl font-semibold text-gray-900 mb-3" data-v-1abad6f1>No Videos Yet</h3><p class="text-gray-600 mb-6 leading-relaxed" data-v-1abad6f1> Start creating amazing AI-generated videos to build your collection! </p>',3)),O(l,{to:"/create/video",class:"inline-flex items-center space-x-2 bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:scale-105 hover:shadow-lg"},{default:ge(()=>[...e[6]||(e[6]=[s("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),s("span",null,"Create Video Now",-1)])]),_:1})])])):$("",!0),V.value?(d(),g("div",zt,[(d(),g(X,null,Z(10,r=>s("div",{key:r,class:"animate-pulse"},[...e[8]||(e[8]=[s("div",{class:"aspect-[9/16] bg-gray-200 rounded-xl"},null,-1)])])),64))])):$("",!0)])])}}}
1,Ft=Ee(Tt,[["__scopeId","data-v-1abad6f1"]]),Ut={class:"flex w-full justify-center"},Nt={class:"w-full bg-white p-4"},At={class:"flex items-center space-x-3 mb-2"},go={__name:"my-creations",setup(H){const C=i("image");return Fe({title:"My Creations | Imgkits"}),(D,I)=>{const Y=Te,z=pt,m=Ft;return d(),g("div",Ut,[O(Y,{showMenu:!0,showFunction:!1,type:""}),s("div",Nt,[s("div",At,[s("button",{class:W(["px-6 py-2 rounded-full font-semibold transition",C.value==="image"?" bg-primary/90 text-white shadow":"bg-gray-100 text-gray-700 hover:bg-primary/10"]),onClick:I[0]||(I[0]=q=>C.value="image")}," Image ",2),s("button",{class:W(["px-6 py-2 rounded-full font-semibold transition",C.value==="video"?"bg-primary/90 text-white shadow":"bg-gray-100 text-gray-700 hover:bg-primary/10"]),onClick:I[1]||(I[1]=q=>C.value="video")}," Video ",2)]),C.value==="image"?(d(),ee(z,{key:0})):$("",!0),C.value==="video"?(d(),ee(m,{key:1})):$("",!0)])])}}};export{go 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.