PageSourceSearch

https://kusart.com/_next/static/chunks/e2159ad30b854212.js

js kusart.com collected 2026-10-08 05:49:11 UTC 17,930 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f13b-76ff-70b3-a84d-185648301904")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,671073,e=>{"use strict";let t=(0,e.i(499688).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["Play",()=>t],671073)},580841,e=>{e.v({navigation:"creator-safe-area-module__ORR6mG__navigation",sheet:"creator-safe-area-module__ORR6mG__sheet",sheetBody:"creator-safe-area-module__ORR6mG__sheetBody"})},376533,e=>{"use strict";var t=e.i(515653),s=e.i(292568),i=e.i(366602),r=e.i(456904),a=e.i(457116),n=e.i(448206),o=e.i(406088),l=e.i(671073),d=e.i(955570),c=e.i(498888),m=e.i(47159),u=e.i(838645),x=e.i(958674),_=e.i(490807),p=e.i(180405),g=e.i(647163),f=e.i(353860),h=e.i(791300),y=e.i(580841);function b({fixed:e=!0}){let b=(0,i.useTranslations)("nav"),j=(0,r.usePathname)(),{user:w}=(0,u.useAuthState)(),[v,k]=(0,s.useState)(!1),N=(0,x.useTaskProgressStore)(e=>e.getBadgeCount()),{setIsOpen:C}=(0,m.useSignInModalStore)(),S=(0,_.useRememberedImageGeneratorHref)();(0,s.useEffect)(()=>{k(!0)},[]);let I="/image-generator"===j||j.startsWith("/image-generator/")||"/image-editor"===j||j.startsWith("/image-editor/"),P="/image-to-video"===j,T="/train-lora"===j,z="/play"===j||j.startsWith("/play/")||"/oc-generator"===j||"/oc-edit"===j||"/emoji-workshop"===j||"/nano-banana"===j||"/crest"===j||"/prompt-inspector"===j;return(0,t.jsxs)("nav",{translate:"yes",className:(0,g.cn)(e?"fixed bottom-0 left-0 right-0 z-40":"","flex min-h-14 items-center justify-evenly overflow-x-visible border-t border-tool-line bg-background px-2 dark:border-border md:hidden",y.default.navigation),children:[(0,t.jsxs)(r.Link,{href:"/home",onClick:()=>h.default.capture("mobile_nav_clicked",{item:"home",source_page:j}),className:(0,g.cn)("flex min-w-0 flex-1 flex-col items-center justify-center py-2 text-sm","/"===j||"/home"===j?"font-medium text-primary":"text-muted-foreground"),children:[(0,t.jsx)(a.Home,{className:"mb-1 h-5 w-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"w-full truncate text-center text-xs",children:b("home")})]}),(0,t.jsxs)(r.Link,{href:"/history",className:(0,g.cn)("relative flex min-w-0 flex-1 flex-col items-center justify-center py-2 text-sm","/history"===j?"font-medium text-pink-500":"text-muted-foreground"),onClick:e=>{h.default&&h.default.capture("History Button Clicked",{location:"MobileBottomNav",is_logged_in:!!w,badge_count:N}),w||(e.preventDefault(),(0,f.completeRouteProgress)(),C(!0))},children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.History,{className:"mb-1 h-5 w-5 flex-shrink-0"}),v&&N>0?(0,t.jsx)("span",{className:"absolute -top-1 -right-1 h-4 min-w-[16px] rounded-full bg-primary px-[6px] text-center text-[10px] leading-4 text-primary-foreground",children:N>99?"99+":N}):null]}),(0,t.jsx)("span",{className:"w-full truncate text-center text-xs",children:b("history")})]}),(0,t.jsxs)(r.Link,{href:"/image-to-video",className:(0,g.cn)("relative z-10 flex min-w-0 flex-1 flex-col items-center justify-center overflow-visible py-2 text-sm",P?"font-medium text-pink-500":"text-muted-foreground"),onClick:()=>{p.trackEntryClicked({entry_point:"mobile_nav",source_page:j||window.location.pathname,user_id:w?.uid})},children:[(0,t.jsxs)("div",{className:"relative mb-1 flex shrink-0 items-center justify-center",children:[(0,t.jsx)(d.Video,{className:"h-5 w-5"}),(0,t.jsx)("span",{className:"absolute -top-1.5 -right-3 w-max whitespace-nowrap rounded bg-pink-500 px-1 py-px text-[6px] font-bold leading-none text-white",children:"New"})]}),(0,t.jsx)("span",{className:"w-full truncate text-center text-xs",children:b("video")})]}),(0,t.jsxs)(r.Link,{href:"/train-lora",className:(0,g.cn)("flex min-w-0 flex-1 flex-col items-center justify-center py-2 text-sm",T?"font-medium text-primary":"text-muted-foreground"),onClick:()=>{h.default.capture("model_training_entry_clicked",{entry_type:"mobile_nav",source_page:j,user_id:w?.uid})},children:[(0,t.jsx)(c.GraduationCap,{className:"mb-1 h-5 w-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"w-full truncate text-center text-xs",children:b("training")})]}),(0,t.jsxs)(r.Link,{href:S,className:(0,g.cn)("flex min-w-0 flex-1 flex-col items-center justify-center py-2 text-sm",I?"font-medium text-primary":"text-muted-foreground"),onClick:()=>{try{h.default.capture("image_generator_entry_clicked",{entry_type:"mobile_nav",source_page:j||window.location.pathname,user_id:w?.uid||"anonymous",timestamp:new Date().toISOString()})}catch(e){console.error("Failed to track mobile image entry click",e)}},children:[(0,t.jsx)(o.Image,{className:"mb-1 h-5 w-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"w-full truncate text-center text-xs",children:b("image")})]}),(0,t.jsxs)(r.Link,{href:"/play",onClick:()=>h.default.capture("mobile_nav_clicked",{item:"playground",source_page:j}),className:(0,g.cn)("flex min-w-0 flex-1 flex-col items-center justify-center py-2 text-sm",z?"font-medium text-primary":"text-muted-foreground"),children:[(0,t.jsx)(l.Play,{className:"mb-1 h-5 w-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"w-full truncate text-center text-xs",children:b("playground")})]})]})}e.s(["default",()=>b])},355699,e=>{"use strict";var t=e.i(515653);e.s(["UIString",0,({children:e,className:s="",style:i={}})=>(0,t.jsx)("span",{translate:"no",className:`notranslate ${s}`,style:i,children:e})])},480535,e=>{"use strict";
1let t=(0,e.i(499688).default)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",()=>t],480535)},627059,e=>{"use strict";var t=e.i(893197);let s="dancing_entry_source",i="dancing_post_purchase";function r(){let e=sessionStorage.getItem(s);if(e)return e;let t=new URLSearchParams(window.location.search).get("utm_source");if(t){if(t.includes("google"))return"google_ads";if(t.includes("facebook")||t.includes("twitter")||t.includes("instagram"))return"social"}let i=document.referrer;if(i&&!i.includes(window.location.hostname)){if(i.includes("google.com"))return"google_ads";if(i.includes("twitter.com")||i.includes("facebook.com")||i.includes("instagram.com"))return"social"}return"direct"}function a(){return window.innerWidth<768}function n(e){let s=r();(0,t.safeCapture)("dancing_page_viewed",{entry_source:s,is_logged_in:e.is_logged_in,has_preset_image:e.has_preset_image,is_first_visit:e.is_first_visit,referrer_url:e.referrer_url,user_plan:e.user_plan||"free",user_id:e.user_id||"anonymous",session_id:e.session_id,is_mobile:a()})}function o(e){var i;i=e.entry_source,sessionStorage.setItem(s,i),(0,t.safeCapture)("dancing_entry_clicked",{entry_source:e.entry_source,source_page:e.source_page,has_preset_image:e.has_preset_image||!1,user_id:e.user_id||"anonymous",session_id:e.session_id,is_mobile:a()})}function l(e){(0,t.safeCapture)("dancing_image_uploaded",{upload_method:e.upload_method,file_size_kb:e.file_size_kb,entry_source:r(),user_id:e.user_id||"anonymous",session_id:e.session_id})}function d(e){(0,t.safeCapture)("dancing_template_selected",{template_id:e.template_id,template_name:e.template_name,template_source:e.template_source,is_switch:e.is_switch,entry_source:r(),user_id:e.user_id||"anonymous",session_id:e.session_id})}function c(e){let s="true"===sessionStorage.getItem(i)&&(sessionStorage.removeItem(i),!0);(0,t.safeCapture)("dancing_generate_clicked",{resolution:e.resolution,has_watermark:e.has_watermark,has_standardized_image:e.has_standardized_image,template_id:e.template_id,credits_cost:e.credits_cost,credits_remaining:e.credits_remaining,generation_count:e.generation_count,entry_source:r(),is_post_purchase:s,user_id:e.user_id||"anonymous",session_id:e.session_id})}function m(e){(0,t.safeCapture)("dancing_generation_completed",{status:e.status,task_id:e.task_id,failure_reason:e.failure_reason,error_message:e.error_message,generation_time_ms:e.generation_time_ms,resolution:e.resolution,has_standardized_image:e.has_standardized_image,template_id:e.template_id,entry_source:r(),is_post_purchase:"true"===sessionStorage.getItem(i),user_id:e.user_id||"anonymous",session_id:e.session_id})}e.s(["trackDancingEntryClicked",()=>o,"trackDancingGenerateClicked",()=>c,"trackDancingGenerationCompleted",()=>m,"trackDancingImageUploaded",()=>l,"trackDancingPageViewed",()=>n,"trackDancingStandardize",0,{clicked:e=>{(0,t.safeCapture)("dancing_standardize_clicked",{has_image:e.has_image,credits_available:e.credits_available,entry_source:r(),user_id:e.user_id||"anonymous",session_id:e.session_id})},started:e=>{(0,t.safeCapture)("dancing_standardize_started",{credits_cost:e.credits_cost,entry_source:r(),user_id:e.user_id||"anonymous",session_id:e.session_id})},completed:e=>{(0,t.safeCapture)("dancing_standardize_completed",{status:e.status,error_message:e.error_message,processing_time_ms:e.processing_time_ms,has_used_standardized:e.has_used_standardized,entry_source:r(),user_id:e.user_id||"anonymous",session_id:e.session_id})}},"trackDancingTemplateSelected",()=>d,"trackDancingTrimmer",0,{opened:e=>{(0,t.safeCapture)("dancing_trimmer_opened",{video_duration:e.video_duration,max_allowed:e.max_allowed,entry_source:r(),user_id:e.user_id||"anonymous",session_id:e.session_id})},completed:e=>{(0,t.safeCapture)("dancing_trimmer_completed",{action:e.action,range_was_adjusted:e.range_was_adjusted,trim_time_ms:e.trim_time_ms,time_spent_in_trimmer_ms:e.time_spent_in_trimmer_ms,error_message:e.error_message,entry_source:r(),user_id:e.user_id||"anonymous",session_id:e.session_id})}}])},56691,e=>{"use strict";var t=e.i(515653),s=e.i(292568),i=e.i(630374),r=e.i(167881),a=e.i(137949),n=e.i(480535),o=e.i(782666),l=e.i(355699),d=e.i(366602),c=e.i(730687);function m({isOpen:e,onClose:m}
1){let[u,x]=(0,s.useState)(!1),_=(0,d.useTranslations)("contactDialog"),p="[email protected]",g=async()=>{try{await navigator.clipboard.writeText(p),x(!0),c.toast.success(_("emailCopied"),{description:_("emailCopiedDesc")}),setTimeout(()=>x(!1),2e3)}catch(e){c.toast.error(_("failedToCopy"),{description:_("failedToCopyDesc")})}};return(0,t.jsx)(i.Dialog,{open:e,onOpenChange:m,children:(0,t.jsxs)(i.DialogContent,{className:"max-w-md w-[95vw] bg-card rounded-2xl border-2 border-tool-line p-6",children:[(0,t.jsxs)(i.DialogHeader,{className:"text-center",children:[(0,t.jsx)(i.DialogTitle,{className:"text-xl font-bold text-foreground mb-2",children:(0,t.jsx)(l.UIString,{children:"Contact Us"})}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:(0,t.jsx)(l.UIString,{children:"We'd love to hear from you!"})})]}),(0,t.jsxs)("div",{className:"space-y-6 mt-6",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-tool-subtle to-pink-50 rounded-xl p-4 border border-tool-line",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3 mb-4",children:[(0,t.jsx)("div",{className:"bg-card rounded-full p-2 shadow-sm flex-shrink-0 ring-1 ring-border",children:(0,t.jsx)(a.Mail,{className:"h-5 w-5 text-pink-500"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:(0,t.jsx)(l.UIString,{children:"Email Support"})}),(0,t.jsx)("p",{className:"text-lg font-mono text-foreground break-all",children:p})]})]}),(0,t.jsx)(r.Button,{variant:"default",onClick:g,className:"w-full rounded-lg py-3 font-medium",children:u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Check,{className:"h-4 w-4 mr-2"}),(0,t.jsx)(l.UIString,{children:"Copied!"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Copy,{className:"h-4 w-4 mr-2"}),(0,t.jsx)(l.UIString,{children:"Copy Email"})]})})]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(r.Button,{onClick:m,variant:"outline",className:"px-8 border-input hover:bg-muted rounded-lg",children:(0,t.jsx)(l.UIString,{children:"Close"})})})]})]})})}var u=e.i(456904);function x(){let[e,i]=(0,s.useState)(!1),r=(0,d.useTranslations)("common.footer");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("footer",{className:"hidden bg-background py-3 mb-20 md:mb-0",children:(0,t.jsx)("div",{className:"container px-4 md:px-6 max-w-5xl mx-auto",children:(0,t.jsxs)("div",{className:"flex max-w-full flex-wrap justify-between items-center",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:r("copyright")}),(0,t.jsxs)("nav",{className:"flex flex-wrap gap-3 md:gap-4",children:[(0,t.jsx)(u.Link,{href:"/terms",className:"text-xs font-medium text-muted-foreground hover:text-primary",children:r("terms")}),(0,t.jsx)(u.Link,{href:"/privacy",className:"text-xs font-medium text-muted-foreground hover:text-primary",children:r("privacy")}),(0,t.jsx)("button",{onClick:()=>i(!0),className:"text-xs font-medium text-muted-foreground hover:text-primary",children:r("contact")})]})]})})}),(0,t.jsx)(m,{isOpen:e,onClose:()=>i(!1)})]})}e.s(["Footer",()=>x],56691)},408538,e=>{"use strict";var t=e.i(515653),s=e.i(456904),i=e.i(624644),r=e.i(791300),a=e.i(627059),n=e.i(838645),o=e.i(647163);function l({title:e,icon:l,href:d,coverImage:c,isNew:m,isBeta:u,featurePosthogEvent:x,dancingEntryContext:_="home",className:p}){let g=(0,n.useAuthState)(),f=()=>{if(r.default&&(r.default.capture("Playground Card Clicked",{card_title:e}),x&&r.default.capture(x)),"/play/ai-dance-generator"===d){let e=window.innerWidth<768,t="play"===_?e?"play_page_mobile":"play_page":e?"home_playground_mobile":"home_playground";sessionStorage.setItem("dancing_entry_source",t),a.trackDancingEntryClicked({entry_source:t,user_id:g.user?.uid,source_page:"play"===_?"/play":window.location.pathname})}};return(0,t.jsxs)("div",{className:(0,o.cn)("group flex w-[176px] shrink-0 flex-col md:w-full md:min-w-0",p),children:[(0,t.jsxs)(s.Link,{href:d,onClick:f,className:(0,o.cn)("relative block aspect-[2/1] overflow-hidden rounded-2xl border border-border bg-muted shadow-sm","transition-[box-shadow,border-color] duration-200 ease-out hover:shadow-md","md:ring-1 md:ring-transparent md:hover:border-primary/55 md:hover:ring-primary/45 md:hover:shadow-
1primary/5","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),children:[(u||m)&&(0,t.jsx)("span",{className:"absolute left-1 top-1 z-20 rounded-full bg-primary px-1.5 py-0.5 text-[8px] font-bold text-primary-foreground shadow-md",children:u?"Beta":"New"}),c?(0,t.jsx)(i.default,{src:c,alt:e,fill:!0,sizes:"(min-width: 768px) 25vw, 176px",className:"object-cover"}):(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,t.jsx)(l,{className:"h-10 w-10 text-muted-foreground"})})]}),(0,t.jsx)(s.Link,{href:d,onClick:f,className:"mt-1 block truncate text-left text-[11px] font-semibold leading-tight text-foreground/80 transition-colors group-hover:text-pink-500 md:mt-1.5 md:text-xs",children:e})]})}e.s(["PlaygroundCard",()=>l])},346228,e=>{"use strict";var t=e.i(515653),s=e.i(292568),i=e.i(583979),r=e.i(366602),a=e.i(153199),n=e.i(56691),o=e.i(376533),l=e.i(408538),d=e.i(365859);function c(){let e=(0,r.useTranslations)("play"),c=(0,i.useLocale)(),m=(0,a.useSidebarStore)(e=>
1e.collapsed),[u,x]=(0,s.useState)("all"),_=d.PLAY_PAGE_CATEGORIES.find(e=>e.id===u)??d.PLAY_PAGE_CATEGORIES[0],p=(0,d.getPlayPageCategoryItems)(_);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex min-h-screen page-background",children:[(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(a.Sidebar,{})}),(0,t.jsxs)("div",{className:`flex-1 flex flex-col transition-all duration-300 ease-in-out ${m?"md:ml-16":"md:ml-56"}`,children:[(0,t.jsx)("main",{className:"flex-1",children:(0,t.jsx)("div",{className:"min-h-screen px-3 sm:px-5 lg:px-6 pt-10 pb-16 sm:pt-12 sm:pb-6",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsxs)("header",{className:"mb-4 text-center sm:mb-5",children:[(0,t.jsx)("h1",{className:"text-[26px] font-black leading-[32px] tracking-tight text-foreground md:text-[32px] md:leading-[38px]",children:e("heading")}),(0,t.jsx)("p",{className:"mx-auto mt-1.5 max-w-[640px] text-[14px] font-light leading-[20px] text-muted-foreground md:text-[15px] md:leading-[22px]",children:e("subheading")})]}),(0,t.jsx)("div",{className:"mb-5 overflow-x-auto pb-1 sm:mb-6",children:(0,t.jsx)("div",{className:"mx-auto flex min-w-max w-fit items-center gap-1 rounded-lg border border-border bg-card p-1",role:"tablist","aria-label":e("categoryLabel"),children:d.PLAY_PAGE_CATEGORIES.map(s=>{let i=s.id===_.id;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":i,onClick:()=>x(s.id),className:`h-9 whitespace-nowrap rounded-md px-3 text-[13px] font-semibold transition-colors sm:px-4 sm:text-[14px] ${i?"bg-accent text-foreground shadow-sm":"text-muted-foreground hover:bg-accent/60 hover:text-foreground"}`,children:e(s.labelKey)},s.id)})})}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:gap-3 md:grid-cols-4 md:gap-4 2xl:grid-cols-5",children:p.map(s=>(0,t.jsx)("div",{className:"min-w-0",children:(0,t.jsx)(l.PlaygroundCard,{title:(0,d.getLocalizedToolTitle)(s.id,c)??(s.playTitleKey?e(s.playTitleKey):s.title),icon:s.icon,href:s.href,coverImage:s.coverImage,isNew:s.isNew,isBeta:s.isBeta,featurePosthogEvent:s.featurePosthogEvent,dancingEntryContext:"play",className:"w-full min-w-0"})},s.id))})]})})}),(0,t.jsx)("footer",{className:"border-t-2 border-tool-line bg-card py-6 dark:border-border",children:(0,t.jsx)(n.Footer,{})})]}),(0,t.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 md:hidden",children:(0,t.jsx)(o.default,{})})]})})}e.s(["default",()=>c])}]);
2
3//# sourceMappingURL=6479f39e66a8a3f7.js.map
4//# chunkId=01a0f13b-76ff-70b3-a84d-185648301904

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.