PageSourceSearch

https://clipcat.ai/_next/static/chunks/45243-0919524fb95d38ad.js

js clipcat.ai collected 2026-10-05 11:56:22 UTC 33,877 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45243],{34439:(e,t,r)=>{r.d(t,{b:()=>f});var a=r(16278),l=r(11478),s=r(34687),o=r(50661),i=r(89945),n=r(17724),c=r(23134),d=r(24550),m=r(50113),p=r(75811),x=r(48863),u=r(99886),g=r(98411),h=r(65642);let f=({value:e,onChange:t,maxCount:r=5,beforeAction:f,accept:b="image/*",thumbnailSize:y=64,menuPlacement:v="top",className:w})=>{let j=(0,c.c)("pages.index.page.simple_input"),{reportUploadFailure:N}=(0,u.W)(),k=(0,g.Z)(),[S,_]=(0,l.useState)(!1),[C,P]=(0,l.useState)(!1),[U,T]=(0,l.useState)(!1),I=(0,l.useRef)(null),R=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=e=>{C&&R.current&&!R.current.contains(e.target)&&P(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[C]);let z=()=>!f||!!f(),L=async a=>{if(!a.target.files||0===a.target.files.length)return;let l=Array.from(a.target.files),s=r-e.length;if(s<=0){d.oR.error(j("max_images",{max:r})),I.current&&(I.current.value="");return}let o=(await Promise.all(l.slice(0,s).map(async e=>{try{let t=await (0,x.j1)(e),r=k.summary(t);return r&&d.oR.success(r),t.file}catch(t){return d.oR.error(k.errorMessage(t,e.name)),null}}))).filter(e=>null!==e);if(!o.length){I.current&&(I.current.value="");return}_(!0);let i=[];try{for(let e of o){let t=await (0,p.mp)(e,{assetType:"image"});if(t.ok){i.push({type:"image",url:t.url});continue}if(N(t),(0,p.Tg)(t))break}i.length>0&&(t([...e,...i].slice(0,r)),(0,h.J)())}finally{_(!1),I.current&&(I.current.value="")}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:w,children:[e.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:e.map((r,l)=>(0,a.jsxs)("div",{className:"relative rounded-xl overflow-hidden border border-gray-200 dark:border-gray-800",style:{width:y,height:y},children:["video"===r.type?(0,a.jsx)("video",{src:r.url,className:"w-full h-full object-cover",muted:!0}):(0,a.jsx)("img",{src:r.url,alt:"asset",className:"w-full h-full object-cover"}),(0,a.jsx)("button",{type:"button",className:"absolute top-0.5 right-0.5 w-4 h-4 rounded-full bg-black/70 text-white flex items-center justify-center",onClick:()=>{t(e.filter((e,t)=>t!==l))},children:(0,a.jsx)(s.A,{size:10})})]},r.url+l))}),(0,a.jsx)("input",{ref:I,type:"file",accept:b,multiple:!0,className:"hidden",onChange:L}),(0,a.jsxs)("div",{className:"relative inline-block",ref:R,children:[(0,a.jsxs)("button",{type:"button",onClick:()=>P(e=>!e),disabled:S,className:"flex items-center gap-1.5 rounded-full border border-gray-200 dark:border-gray-800 px-3 py-1.5 text-xs font-medium text-gray-600 dark:text-gray-300 hover:border-cyan-400 disabled:opacity-50",children:[(0,a.jsx)(o.A,{size:13}),S?j("uploading"):j("add_image")]}),C&&(0,a.jsxs)("div",{className:`absolute left-0 w-44 bg-white dark:bg-gray-900 border border-gray-100 dark:border-gray-800 rounded-2xl shadow-[0_10px_40px_rgba(0,0,0,0.1)] p-1 z-50 animate-in fade-in duration-200 ${"bottom"===v?"top-full mt-2 slide-in-from-top-2":"bottom-full mb-2 slide-in-from-bottom-2"}`,children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{z()&&(T(!0),P(!1))},className:"w-full flex items-center gap-2 px-3 py-2 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl text-xs font-bold text-gray-700 dark:text-gray-300 transition-colors text-left",children:[(0,a.jsx)(i.A,{size:13}),j("select_from_library")]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{z()&&(I.current?.click(),P(!1))},className:"w-full flex items-center gap-2 px-3 py-2 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl text-xs font-bold text-gray-700 dark:text-gray-300 transition-colors text-left",children:[(0,a.jsx)(n.A,{size:13}),j("upload_local")]})]})]})]}),U&&(0,a.jsx)(m.f,{onClose:()=>T(!1),onConfirm:a=>{let l=r-e.length;l<=0?d.oR.error(j("max_images",{max:r})):t([...e,...a.slice(0,l).map(e=>({type:"image",url:e}))].slice(0,r))},maxSelection:r,currentSelectionCount:e.length})]})}},45243:(e,t,r)=>{r.d(t,{fl:()=>i.fl,qt:()=>n.qt,_m:()=>n._m,N9:()=>n.N9,DK:()=>n.DK,G9:()=>n.G9,Td:()=>i.Td,xU:()=>n.xU,s3:()=>i.s3,ag:()=>i.ag,Pg:()=>n.Pg,zP:()=>i.zP,xf:()=>i.xf,pj:()=>n.pj,xm:()=>i.xm,UP:()=>n.UP,Vw:()=>n.Vw,WI:()=>i.WI,uQ:()=>i.uQ,XJ:()=>n.XJ,tr:()=>D,IQ:()=>F,a1:()=>Z,LP:()=>S,NG:()=>k,QW:()=>w,L0:()=>C,ee:()=>_,Sw:()=>i.Sw,p5:()=>O});var a=r(16278),l=r(5126),s=r(11478),o=r(23134),i=r(53633),n=r(53491),c=r(40080),d=r(2602);let m=({item:e,open:t,onToggle:r,isLast:l})=>{let o=(0,s.useRef)(null),i=(0,s.useMemo)(()=>t?o.current?`${o.current.scrollHeight}px`:"400px":"0px",[t]);return(0,a.jsxs)("div",{className:(0,d.cn)("border-t",l&&"border-b"),style:{borderColor:n.pj},children:[(0,a.jsxs)("button",{type:"button","aria-expanded":t,onClick:r,className:"flex w-full items-center justify-between gap-5 px-0.5 py-6 text-left text-[16.5px] font-semibold",style:{color:n.Pg},children:[e.q,(0,a.jsxs)("span",{className:"relative h-[15px] w-[15px] flex-shrink-0",children:[(0,a.jsx)("span",{className:"absolute left-0 top-[6.5px] h-0.5 w-[15px] rounded-sm",style:{background:n.xU}}),(0,a.jsx)("span",{className:"absolute left-[6.5px] top-0 h-[15px] w-0.5 rounded-sm transition-transform duration-200",style:{background:n.xU,transform:t?"scaleY(0)":"scaleY(1)"}})]})]}),(0,a.jsx)("div",{className:"overflow-hidden transition-[max-height] duration-300 ease-out",style:{maxHeight:i},children:(0,a.jsx)("div",{ref:o,children:(0,a.jsx)("p",{className:"px-0.5 pb-6 text-[15px] leading-[1.8]",style:{color:n.xU},children:e.a})})})]})},p=e=>{let t,r,s,o,i,c=(0,l.c)(11),{eyebrow:d,title:m,lead:p}=e;return c[0]!==d?(t=d&&(0,a.jsx)("div",{className:"mb-3.5 text-sm font-medium",style:{color:n.xU},children:d}),c[0]=d,c[1]=t):t=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(r={color:n.Pg},c[2]=r):r=c[2],c[3]!==m?(s=(0,a.jsx)("h2",{className:"text-[clamp(32px,4vw,36px)] font-bold leading-[1.12]",style:r,children:m}),c[3]=m,c[4]=s):s=c[4],c[5]!==p?(o=p&&(0,a.jsx)("p",{className:"mt-4 text-base leading-6",style:{color:n.xU},children:p}),c[5]=p,c[6]=o):o=c[6],c[7]!==t||c[8]!==s||c[9]!==o?(i=(0,a.jsxs)("div",{className:"mx-auto mb-[clamp(40px,5vw,60px)] max-w-[720px] text-center",children:[t,s,o]}),c[7]=t,c[8]=s,c[9]=o,c[10]=i):i=c[10],i},x=e=>{let t,r,s,o,c=(0,l.c)(8),{label:m,onClick:p,className:x}=e;return c[0]!==x?(t=(0,d.cn)("inline-flex h-9 items-center justify-center gap-2 rounded-lg px-4 text-sm font-medium transition-colors",x),c[0]=x,c[1]=t):t=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(r={background:n.N9,color:n.DK},c[2]=r):r=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(i.fl,{className:"h-4 w-4"}),c[3]=s):s=c[3],c[4]!==m||c[5]!==p||c[6]!==t?(o=(0,a.jsxs)("button",{type:"button",onClick:p,className:t,style:r,onMouseEnter:g,onMouseLeave:h,children:[m,s]}),c[4]=m,c[5]=p,c[6]=t,c[7]=o):o=c[7],o},u=e=>{let t,r,u,g,h,w,j,N,k,S,_,C,P,U,T,I,R,z,L=(0,l.c)(56),{namespace:$,onCta:A,afterIntro:K}
1=e,q=(0,o.c)($),[E,O]=(0,s.useState)(null);L[0]!==q?(t=q.has("intro.title"),L[0]=q,L[1]=t):t=L[1];let Y=t;L[2]!==q?(r=q.has("steps.title"),L[2]=q,L[3]=r):r=L[3];let D=r;L[4]!==q?(u=q.has("deepdive.title"),L[4]=q,L[5]=u):u=L[5];let M=u;L[6]!==q?(g=q.has("why.title"),L[6]=q,L[7]=g):g=L[7];let V=g;L[8]!==q?(h=q.has("persona.title"),L[8]=q,L[9]=h):h=L[9];let F=h;L[10]!==q?(w=q.has("voice.title"),L[10]=q,L[11]=w):w=L[11];let Z=w;L[12]!==q?(j=q.has("faq.title"),L[12]=q,L[13]=j):j=L[13];let J=j;L[14]!==q?(N=q.has("final.title"),L[14]=q,L[15]=N):N=L[15];let G=N;if(L[16]!==K||L[17]!==M||L[18]!==J||L[19]!==Y||L[20]!==F||L[21]!==D||L[22]!==Z||L[23]!==V||L[24]!==A||L[25]!==E||L[26]!==q){let e=D?q.raw("steps.items"):[],t=M?q.raw("deepdive.rows"):[],r=V?q.raw("why.cells"):[],l=F?q.raw("persona.items"):[],s=Z?q.raw("voice.items"):[],o=J?q.raw("faq.items"):[];L[35]!==Y||L[36]!==A||L[37]!==q?(I=Y&&(0,a.jsx)("section",{className:"py-[clamp(56px,7vw,92px)]",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 items-center gap-7 md:grid-cols-2 md:gap-[clamp(28px,4vw,64px)]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-[clamp(40px,5vw,48px)] font-bold leading-none",style:{color:n.Pg},children:q("intro.title")}),(0,a.jsx)("p",{className:"mt-5 text-lg leading-7",style:{color:n.xU},children:q("intro.text")}),(0,a.jsx)(x,{label:q("intro.cta"),onClick:A,className:"mt-[26px]"})]}),(0,a.jsx)("div",{className:"aspect-[4/3] overflow-hidden rounded-2xl",style:{background:n.gZ,boxShadow:"var(--site-shadow-card)"},children:(0,a.jsx)("img",{src:(0,c.K)(q("intro.image")),alt:q("intro.image_alt"),loading:"lazy",decoding:"async",className:"h-full w-full object-contain"})})]})}),L[35]=Y,L[36]=A,L[37]=q,L[38]=I):I=L[38],L[39]!==K||L[40]!==A?(k=K?.(A),L[39]=K,L[40]=A,L[41]=k):k=L[41],S=D&&(0,a.jsxs)("section",{className:"border-t py-[clamp(56px,7vw,92px)]",style:{borderColor:n.pj},children:[(0,a.jsx)(p,{eyebrow:q("steps.eyebrow"),title:q("steps.title"),lead:q("steps.lead")}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-[30px] md:grid-cols-3 md:gap-[clamp(28px,4vw,48px)]",children:e.map(f)})]}),_=M&&(0,a.jsxs)("section",{className:"border-t py-[clamp(56px,7vw,92px)]",style:{borderColor:n.pj},children:[(0,a.jsx)(p,{eyebrow:q("deepdive.eyebrow"),title:q("deepdive.title"),lead:q("deepdive.lead")}),t.map((e,r)=>(0,a.jsxs)("div",{className:(0,d.cn)("grid grid-cols-1 items-center gap-6 md:grid-cols-2 md:gap-[clamp(32px,5vw,64px)]",r!==t.length-1&&"mb-14 md:mb-[clamp(48px,7vw,96px)]"),children:[(0,a.jsx)("div",{className:(0,d.cn)("aspect-[4/3] overflow-hidden rounded-2xl",e.reversed&&"md:order-2"),style:{background:n.gZ,boxShadow:"var(--site-shadow-card)"},children:(0,a.jsx)("img",{src:(0,c.K)(e.image),alt:e.alt,loading:"lazy",decoding:"async",className:"h-full w-full object-contain"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-3 text-sm font-medium",style:{color:n.xU},children:e.eb}),(0,a.jsx)("h3",{className:"text-[clamp(40px,5vw,48px)] font-bold leading-none",style:{color:n.Pg},children:e.title}),(0,a.jsx)("p",{className:"mt-[18px] text-lg leading-7",style:{color:n.xU},children:e.desc}),(0,a.jsxs)("span",{className:"mt-[22px] inline-flex cursor-pointer items-center gap-[7px] text-sm font-medium underline",style:{color:n.Pg},onClick:A,children:[e.link,(0,a.jsx)(i.fl,{className:"h-4 w-4"})]})]})]},e.eb))]}),C=V&&(0,a.jsxs)("section",{className:"border-t py-[clamp(56px,7vw,92px)]",style:{borderColor:n.pj},children:[(0,a.jsx)(p,{eyebrow:q("why.eyebrow"),title:q("why.title"),lead:q("why.lead")}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-3 md:gap-[clamp(30px,4vw,56px)]",children:r.map(b)})]}),P=F&&(0,a.jsxs)("section",{className:"border-t py-[clamp(56px,7vw,92px)]",style:{borderColor:n.pj},children:[(0,a.jsx)(p,{eyebrow:q("persona.eyebrow"),title:q("persona.title"),lead:q("persona.lead")}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 md:grid-cols-3 md:gap-x-[clamp(40px,5vw,72px)] md:gap-y-[clamp(32px,4vw,56px)]",children:l.map(y)})]}),U=Z&&(0,a.jsxs)("section",{className:"border-t py-[clamp(56px,7vw,92px)]",style:{borderColor:n.pj},children:[(0,a.jsx)(p,{eyebrow:q("voice.eyebrow"),title:q("voice.title"),lead:q("voice.lead")}),(0,a.jsx)("div",{className:"columns-1 gap-[clamp(40px,5vw,72px)] sm:columns-2 lg:columns-3",children:s.map(v)})]}),T=J&&(0,a.jsxs)("section",{className:"border-t py-[clamp(56px,7vw,92px)]",style:{borderColor:n.pj},children:[(0,a.jsx)(p,{eyebrow:q("faq.eyebrow"),title:q("faq.title")}),(0,a.jsx)("div",{className:"mx-auto max-w-[820px]",children:o.map((e,t)=>(0,a.jsx)(m,{item:e,open:E===t,onToggle:()=>O(E===t?null:t),isLast:t===o.length-1},e.q))})]}),L[16]=K,L[17]=M,L[18]=J,L[19]=Y,L[20]=F,L[21]=D,L[22]=Z,L[23]=V,L[24]=A,L[25]=E,L[26]=q,L[27]=k,L[28]=S,L[29]=_,L[30]=C,L[31]=P,L[32]=U,L[33]=T,L[34]=I}else k=L[27],S=L[28],_=L[29],C=L[30],P=L[31],U=L[32],T=L[33],I=L[34];return L[42]!==G||L[43]!==A||L[44]!==q?(R=G&&(0,a.jsxs)("section",{className:"border-t px-6 pb-[clamp(48px,6vw,72px)] pt-[clamp(64px,8vw,104px)] text-center",style:{borderColor:n.pj},children:[(0,a.jsx)("h2",{className:"mx-auto max-w-[15em] text-[clamp(32px,4vw,36px)] font-bold leading-[1.12]",style:{color:n.Pg},children:q("final.title")}),(0,a.jsx)("p",{className:"mx-auto mt-5 max-w-[520px] text-base leading-6",style:{color:n.xU},children:q("final.lead")}),(0,a.jsx)(x,{label:q("final.cta"),onClick:A,className:"mx-auto mt-8"})]}),L[42]=G,L[43]=A,L[44]=q,L[45]=R):R=L[45],L[46]!==k||L[47]!==S||L[48]!==_||L[49]!==C||L[50]!==P||L[51]!==U||L[52]!==T||L[53]!==R||L[54]!==I?(z=(0,a.jsxs)(a.Fragment,{children:[I,k,S,_,C,P,U,T,R]}),L[46]=k,L[47]=S,L[48]=_,L[49]=C,L[50]=P,L[51]=U,L[52]=T,L[53]=R,L[54]=I,L[55]=z):z=L[55],z};function g(e){e.currentTarget.style.background=n.G9}function h(e){e.currentTarget.style.background=n.N9}function f(e){return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center gap-2.5 text-sm font-medium",style:{color:n.xU},children:[(0,a.jsx)("span",{className:"flex h-[26px] w-[26px] items-center justify-center rounded-full text-[13px]",style:{background:n.N9,color:n.DK},children:e.no}),e.label]}),(0,a.jsx)("h4",{className:"mb-2 text-base font-semibold leading-6",style:{color:n.Pg},children:e.title}),(0,a.jsx)("p",{className:"text-sm leading-[22px]",style:{color:n.xU},children:e.desc})]},e.no)}function b(e){return(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"mb-3 text-lg font-bold",style:{color:n.Pg},children:e.title}),(0,a.jsx)("p",{className:"text-[15px] leading-[1.75]",style:{color:n.xU},children:e.desc})]},e.title)}function y(e,t){return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-4 h-[22px] w-[22px]",style:{color:n.Pg},children:i.Eu[t%i.Eu.length]}),(0,a.jsx)("h4",{className:"mb-3 text-base font-semibold leading-6",style:{color:n.Pg},children:e.title}),(0,a.jsx)("p",{className:"text-sm leading-[22px]",style:{color:n.xU},children:e.desc})]},e.title)}function v(e){return(0,a.jsxs)("div",{className:"mb-9 break-inside-avoid md:mb-[clamp(36px,4vw,52px)]",children:[(0,a.jsxs)("div",{className:"mb-5 flex items-center gap-3.5",children:[(0,a.jsx)("span",{className:"h-[52px] w-[52px] flex-shrink-0 overflow-hidden rounded-full",style:{background:"var(--site-surface-2)"},children:(0,a.jsx)("img",{src:(0,c.K)(e.avatar),alt:e.name,width:1254,height:1254,loading:"lazy",decoding:"async",className:"h-full w-full object-cover"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"block text-base font-semibold leading-[22px]",style:{color:n.Pg},children:e.name}),(0,a.jsx)("span",{className:"text-sm leading-5",style:{color:n.xU},children:e.role})]})]}),(0,a.jsx)("p",{className:"text-base leading-[26px]",style:{color:n.xU},children:e.quote})]},e.name)}let w=e=>{let t,r,c,d,m,p,x,g,h,f,b,y,v,w,j,N,k,S,_=(0,l.c)(38),{namespace:C,form:P,preview:U,afterIntro:T}=e,I=(0,o.c)(C),R=(0,s.useRef)(null);_[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>R.current?.scrollIntoView({behavior:"smooth",block:"start"}),_[0]=t):t=_[0];let z=t;_[1]!==I?(r=I.has("preview.badge")?I("preview.badge"):"",_[1]=I,_[2]=r):r=_[2];let L=r;_[3]!==I?(c=I.has("preview.hint")?I("preview.hint"):"",_[3]=I,_[4]=c):c=_[4];let $=c;return _[5]===Symbol.for("react.memo_cache_sentinel")?(d={background:n.m4,color:"var(--site-fg)",fontFamily:n.vn,marginBottom:n.yE},_[5]=d):d=_[5],_[6]===Symbol.for("react.memo_cache_sentinel")?(m={color:n.Pg},_[6]=m):m=_[6],_[7]!==I?(p=I("hero.title"),_[7]=I,_[8]=p):p=_[8],_[9]!==p?(x=(0,a.jsx)("h1",{className:"text-[clamp(32px,4vw,36px)] font-bold leading-[1.12]",style:m,children:p}),_[9]=p,_[10]=x):x=_[10],_[11]===Symbol.for("react.memo_cache_sentinel")?(g={color:n.xU},_[11]=g):g=_[11],_[12]!==I?(h=I("hero.lead"),_[12]=I,_[13]=h):h=_[13],_[14]!==h?(f=(0,a.jsx)("p",{className:"mt-4 text-base leading-6",style:g,children:h}),_[14]=h,_[15]=f):f=_[15],_[16]!==f||_[17]!==x?(b=(0,a.jsxs)("header",{className:"mx-auto my-[clamp(40px,6vw,72px)] mb-[clamp(52px,7vw,80px)] max-w-[760px] text-center",children:[x,f]}),_[16]=f,_[17]=x,_[18]=b):b=_[18],_[19]!==P?(y=(0,a.jsx)("div",{className:"flex flex-col",children:P}),_[19]=P,_[20]=y):y=_[20],_[21]===Symbol.for("react.memo_cache_sentinel")?(v={background:n.Ld,borderColor:"var(--site-border-soft)",boxShadow:n.ZR},_[21]=v):v=_[21],_[22]!==L||_[23]!==$?(w=(L||$)&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-0.5",children:[L&&(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-lg border bg-[var(--site-surface)] px-3 py-[5px] text-xs font-semibold",style:{color:n.xU,borderColor:"var(--site-border-soft)"},children:[(0,a.jsx)(i.bM,{className:"h-[13px] w-[13px]",style:{color:"var(--site-fg-3)"}}
1),L]}),$&&(0,a.jsx)("span",{className:"text-xs",style:{color:n.xU},children:$})]}),_[22]=L,_[23]=$,_[24]=w):w=_[24],_[25]!==U||_[26]!==w?(j=(0,a.jsxs)("aside",{className:"flex flex-col gap-3.5 self-start rounded-[18px] border p-[clamp(16px,1.6vw,22px)] md:sticky md:top-24",style:v,children:[w,U]}),_[25]=U,_[26]=w,_[27]=j):j=_[27],_[28]!==y||_[29]!==j?(N=(0,a.jsxs)("section",{ref:R,className:"grid grid-cols-1 items-stretch gap-[clamp(24px,4vw,56px)] pb-[clamp(56px,7vw,96px)] md:grid-cols-[minmax(0,1fr)_minmax(0,1.05fr)]",children:[y,j]}),_[28]=y,_[29]=j,_[30]=N):N=_[30],_[31]!==T||_[32]!==C?(k=(0,a.jsx)(u,{namespace:C,onCta:z,afterIntro:T}),_[31]=T,_[32]=C,_[33]=k):k=_[33],_[34]!==b||_[35]!==N||_[36]!==k?(S=(0,a.jsx)("div",{className:"min-h-screen",style:d,children:(0,a.jsxs)("div",{className:"mx-auto max-w-[1200px] px-[clamp(20px,4vw,40px)] pt-[72px]",children:[b,N,k]})}),_[34]=b,_[35]=N,_[36]=k,_[37]=S):S=_[37],S},j=e=>{e.currentTarget.style.borderColor=n.Pg,e.currentTarget.style.boxShadow=n.Sn},N=e=>{e.currentTarget.style.borderColor=n.pj,e.currentTarget.style.boxShadow="none"},k=e=>{let t,r=(0,l.c)(2),{children:s}=e;return r[0]!==s?(t=(0,a.jsx)("form",{className:"flex flex-1 flex-col gap-6",onSubmit:P,children:s}),r[0]=s,r[1]=t):t=r[1],t},S=e=>{let t,r,s,o,i,c=(0,l.c)(12),{label:d,hint:m,required:p,children:x}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t={color:n.Pg},c[0]=t):t=c[0],c[1]!==p?(r=p&&(0,a.jsx)("span",{className:"ml-0.5",style:{color:n.br},children:"*"}),c[1]=p,c[2]=r):r=c[2],c[3]!==d||c[4]!==r?(s=(0,a.jsxs)("label",{className:"mb-2 block text-sm font-semibold leading-[22px]",style:t,children:[d,r]}),c[3]=d,c[4]=r,c[5]=s):s=c[5],c[6]!==m?(o=m&&(0,a.jsx)("span",{className:"mb-2.5 block text-sm font-normal leading-[22px]",style:{color:n.xU},children:m}),c[6]=m,c[7]=o):o=c[7],c[8]!==x||c[9]!==s||c[10]!==o?(i=(0,a.jsxs)("div",{children:[s,o,x]}),c[8]=x,c[9]=s,c[10]=o,c[11]=i):i=c[11],i},_=e=>{let t,r,s,o=(0,l.c)(16),{value:i,onChange:c,placeholder:m,multiline:p,rows:x}=e,u=void 0===x?4:x;if(void 0!==p&&p){let e,t,r,l;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,d.cn)("w-full rounded-[10px] border bg-[var(--site-surface)] px-3.5 py-3 text-sm leading-[22px] outline-none transition-shadow","resize-none"),t={borderColor:n.pj,color:n.Pg},o[0]=e,o[1]=t):(e=o[0],t=o[1]),o[2]!==c?(r=e=>c(e.target.value),o[2]=c,o[3]=r):r=o[3],o[4]!==m||o[5]!==u||o[6]!==r||o[7]!==i?(l=(0,a.jsx)("textarea",{className:e,style:t,placeholder:m,value:i,rows:u,onChange:r,onFocus:j,onBlur:N}),o[4]=m,o[5]=u,o[6]=r,o[7]=i,o[8]=l):l=o[8],l}return o[9]===Symbol.for("react.memo_cache_sentinel")?(t={borderColor:n.pj,color:n.Pg},o[9]=t):t=o[9],o[10]!==c?(r=e=>c(e.target.value),o[10]=c,o[11]=r):r=o[11],o[12]!==m||o[13]!==r||o[14]!==i?(s=(0,a.jsx)("input",{className:"w-full rounded-[10px] border bg-[var(--site-surface)] px-3.5 py-3 text-sm leading-[22px] outline-none transition-shadow",style:t,type:"text",placeholder:m,value:i,onChange:r,onFocus:j,onBlur:N}),o[12]=m,o[13]=r,o[14]=i,o[15]=s):s=o[15],s},C=e=>{let t,r,s,o,c,d=(0,l.c)(14),{label:m,onClick:p,disabled:x,submitting:u,submittingLabel:g,icon:h}=e,f=void 0!==x&&x,b=void 0!==u&&u,y=f||b;d[0]===Symbol.for("react.memo_cache_sentinel")?(t={background:n.N9,color:n.DK},d[0]=t):t=d[0],d[1]!==f||d[2]!==b?(r=e=>{f||b||(e.currentTarget.style.background=n.G9)},d[1]=f,d[2]=b,d[3]=r):r=d[3],d[4]!==h?(s=h??(0,a.jsx)(i.DQ,{}),d[4]=h,d[5]=s):s=d[5],d[6]!==s?(o=(0,a.jsx)("span",{className:"h-[17px] w-[17px]",children:s}),d[6]=s,d[7]=o):o=d[7];let v=b?g??m:m;return d[8]!==p||d[9]!==y||d[10]!==r||d[11]!==o||d[12]!==v?(c=(0,a.jsxs)("button",{type:"button",onClick:p,disabled:y,className:"mt-auto flex h-11 w-full items-center justify-center gap-[9px] rounded-lg text-sm font-medium transition-transform hover:-translate-y-px disabled:cursor-not-allowed disabled:opacity-70",style:t,onMouseEnter:r,onMouseLeave:U,children:[o,v]}),d[8]=p,d[9]=y,d[10]=r,d[11]=o,d[12]=v,d[13]=c):c=d[13],c};function P(e){return e.preventDefault()}function U(e){e.currentTarget.style.background=n.N9}var T=r(85781),I=r(24550),R=r(60851),z=r(62721),L=r(2893),$=r(33171),A=r(98426),K=r(77407),q=r(75012),E=r(62320);let O=({toolKey:e,errorMessage:t})=>{let r=(0,R.rd)(),a=(0,T.Ym)(),{data:l}=(0,z.wV)(),{user:i}=(0,L.U)(),{showLoginModal:n}
1=(0,$.A)(),c=(0,o.c)("common.errors"),[d,m]=(0,s.useState)(!1),p=!!(l?.user||i);return{submit:async(l,s)=>{if(!p)return void n("login",{stayOnPage:!0});m(!0);try{let t=await (0,A.w$)(e,a),o=E.B7[e],i=new Map;for(let[e,t]of Object.entries(l)){i.set(e,t);let r=o?.[e];r&&i.set(r,t)}let n=new Set((t.variables??[]).map(e=>e.key)),d=new Map((t.variables??[]).map(e=>[e.key,e])),p=[...n].filter(e=>{if(i.has(e))return!1;let t=d.get(e);return!t||!!t.required||!t.defaultValue||(i.set(e,t.defaultValue),!1)}),x=Object.keys(l).filter(e=>{if(n.has(e))return!1;let t=o?.[e];return!(t&&n.has(t))});if(p.length>0||x.length>0){console.error("[tool-template] 占位符与表单字段不匹配",{toolKey:e,templateId:t.id,templateGroup:t.groupKey,missingInForm:p,notInTemplate:x}),I.oR.error(c("tool_template_mismatch")),m(!1);return}let u={};for(let e of n){let t=i.get(e);void 0!==t&&(u[e]=t)}let g=s?.filter(e=>e.trim().length>0)??[];(0,A.K_)(t.id),r.push((0,K.w)({draft:{text:"",attachments:[],skill:{id:t.id,groupKey:t.groupKey,title:t.title,hasPlaceholders:n.size>0,variables:t.variables},skillValues:u,prefs:(0,q.OH)()},sourceTab:t.sceneTab,templateId:t.id,imageUrls:g}))}catch{I.oR.error(t??c("error_occurred")),m(!1)}},submitting:d}};var Y=r(34439);let D=e=>{let t,r,s=(0,l.c)(8),{value:o,onChange:i,maxCount:n}=e,c=void 0===n?5:n,{data:d}=(0,z.wV)(),{user:m}=(0,L.U)(),{showLoginModal:p}=(0,$.A)(),x=!!(d?.user||m);s[0]!==x||s[1]!==p?(t=()=>!!x||(p("login",{stayOnPage:!0}),!1),s[0]=x,s[1]=p,s[2]=t):t=s[2];let u=t;return s[3]!==u||s[4]!==c||s[5]!==i||s[6]!==o?(r=(0,a.jsx)(Y.b,{value:o,onChange:i,maxCount:c,beforeAction:u,menuPlacement:"bottom"}),s[3]=u,s[4]=c,s[5]=i,s[6]=o,s[7]=r):r=s[7],r},M={"4/3":{className:"aspect-[4/3]",width:960,height:720},"3/4":{className:"aspect-[3/4]",width:720,height:960}},V=e=>{let t,r,s,o,i,m,p,x,u=(0,l.c)(21),{src:g,alt:h,label:f,labelColor:b,aspect:y}=e,{className:v,width:w,height:j}=M[y];return u[0]!==b?(t={color:b},u[0]=b,u[1]=t):t=u[1],u[2]!==f||u[3]!==t?(r=(0,a.jsx)("div",{className:"mb-2 px-0.5 text-[11px] font-semibold tracking-[0.02em]",style:t,children:f}),u[2]=f,u[3]=t,u[4]=r):r=u[4],u[5]!==v?(s=(0,d.cn)("overflow-hidden rounded-xl border",v),u[5]=v,u[6]=s):s=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(o={borderColor:"var(--site-border-soft)",background:n.UP},u[7]=o):o=u[7],u[8]!==g?(i=(0,c.K)(g),u[8]=g,u[9]=i):i=u[9],u[10]!==h||u[11]!==j||u[12]!==i||u[13]!==w?(m=(0,a.jsx)("img",{src:i,alt:h,width:w,height:j,loading:"lazy",decoding:"async",className:"h-full w-full object-cover"}),u[10]=h,u[11]=j,u[12]=i,u[13]=w,u[14]=m):m=u[14],u[15]!==s||u[16]!==m?(p=(0,a.jsx)("div",{className:s,style:o,children:m}),u[15]=s,u[16]=m,u[17]=p):p=u[17],u[18]!==r||u[19]!==p?(x=(0,a.jsxs)("div",{children:[r,p]}),u[18]=r,u[19]=p,u[20]=x):x=u[20],x},F=e=>{let t,r,s,o=(0,l.c)(13),{beforeSrc:i,beforeAlt:c,beforeLabel:d,afterSrc:m,afterAlt:p,afterLabel:x,aspect:u}=e,g=void 0===u?"4/3":u;return o[0]!==g||o[1]!==c||o[2]!==d||o[3]!==i?(t=(0,a.jsx)(V,{src:i,alt:c,label:d,labelColor:n.xU,aspect:g}),o[0]=g,o[1]=c,o[2]=d,o[3]=i,o[4]=t):t=o[4],o[5]!==p||o[6]!==x||o[7]!==m||o[8]!==g?(r=(0,a.jsx)(V,{src:m,alt:p,label:x,labelColor:n.Pg,aspect:g}),o[5]=p,o[6]=x,o[7]=m,o[8]=g,o[9]=r):r=o[9],o[10]!==t||o[11]!==r?(s=(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[t,r]}),o[10]=t,o[11]=r,o[12]=s):s=o[12],s}
1,Z=e=>{let t,r,s,o,i,n,c=(0,l.c)(12),{headers:d,rows:m}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsxs)("colgroup",{children:[(0,a.jsx)("col",{className:"w-[44%]"}),(0,a.jsx)("col",{className:"w-[56%]"})]}),c[0]=t):t=c[0],c[1]!==d?(r=d.map(J),c[1]=d,c[2]=r):r=c[2],c[3]!==r?(s=(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:r})}),c[3]=r,c[4]=s):s=c[4],c[5]!==m?(o=m.map(G),c[5]=m,c[6]=o):o=c[6],c[7]!==o?(i=(0,a.jsx)("tbody",{className:"[&>tr:last-child>td]:border-b-0",children:o}),c[7]=o,c[8]=i):i=c[8],c[9]!==s||c[10]!==i?(n=(0,a.jsxs)("table",{className:"w-full table-fixed border-separate border-spacing-0 text-[12.5px]",children:[t,s,i]}),c[9]=s,c[10]=i,c[11]=n):n=c[11],n};function J(e){return(0,a.jsx)("th",{className:"whitespace-nowrap border-b px-3.5 py-2 text-left text-[11.5px] font-medium leading-[18px]",style:{borderColor:n.pj,color:n.xU},children:e},e)}function G(e){return(0,a.jsxs)("tr",{className:"transition-colors hover:bg-[var(--site-surface-3)]",children:[(0,a.jsx)("td",{className:"break-words border-b px-3.5 py-2 align-middle font-semibold leading-[1.4]",style:{borderColor:"var(--site-border-soft)",color:n.Pg},children:e.label}),(0,a.jsx)("td",{className:"break-words border-b px-3.5 py-2 align-middle font-semibold leading-[1.4]",style:{borderColor:"var(--site-border-soft)",color:n.Pg},children:e.value})]},e.label)}},52868:(e,t,r)=>{r.d(t,{YZ:()=>n,Z3:()=>i,wq:()=>o});var a=r(56721),l=r(75012);let s=e=>`pending-agent-chat-draft:${e}`,o=(e,t)=>{try{return window.sessionStorage.setItem(s(e),JSON.stringify(t)),!0}catch{return!1}},i=e=>{try{let t=window.sessionStorage.getItem(s(e));return t?(e=>{let t;try{t=JSON.parse(e)}catch{return}if("object"!=typeof t||null===t)return;let r=t;if("object"!=typeof r.draft||null===r.draft)return;let s=r.draft;if("string"!=typeof s.text)return;let o=a.no.safeParse(s.attachments??[]),i=l.yE.safeParse(s.prefs),n=s.skill,c=s.skillValues,d="object"!=typeof c||null===c||Array.isArray(c)?{}:Object.fromEntries(Object.entries(c).filter(e=>"string"==typeof e[1])),m=Array.isArray(r.imageUrls)?r.imageUrls.filter(e=>"string"==typeof e&&e.length>0):[];return{draft:{text:s.text,attachments:o.success?o.data:[],skill:"object"==typeof n&&null!==n&&"number"==typeof n.id?n:null,prefs:i.success?i.data:(0,l.OH)(),...Object.keys(d).length>0?{skillValues:d}:{}},...m.length>0?{imageUrls:m}:{}}})(t):void 0}catch{return}},n=e=>{try{window.sessionStorage.removeItem(s(e))}catch{}}},53491:(e,t,r)=>{r.d(t,{DK:()=>i,G9:()=>n,Ld:()=>p,N9:()=>o,Pg:()=>a,Sn:()=>c,UP:()=>x,Vw:()=>u,XJ:()=>g,ZR:()=>h,_m:()=>m,br:()=>b,gZ:()=>f,m4:()=>y,pj:()=>s,qt:()=>d,vn:()=>w,xU:()=>l,yE:()=>v});let a="var(--site-fg)",l="var(--site-fg-2)",s="var(--site-border)",o="var(--site-invert-bg)",i="var(--site-invert-fg)",n="color-mix(in srgb, var(--site-invert-bg) 90%, var(--site-invert-fg))",c="0 0 0 3px color-mix(in srgb, var(--site-fg) 8%, transparent)",d="var(--site-brand)",m="var(--site-brand-bg)",p="var(--site-stage)",x="var(--site-stage-2)",u="var(--site-star)",g="var(--site-timecode)",h="inset 0 1px 0 color-mix(in srgb, var(--site-surface) 70%, transparent),inset 0 0 0 1px color-mix(in srgb, var(--site-fg) 2%, transparent)",f="#ffffff",b="#ef4444",y="var(--site-cream)",v="calc(-1 * var(--site-footer-gap))",w='"Roboto","Noto Sans SC","PingFang SC","Microsoft YaHei",-apple-system,sans-serif'},56721:(e,t,r)=>{r.d(t,{KL:()=>o,PY:()=>n,hH:()=>x,no:()=>m,uY:()=>p});var a=r(48019);let l="clipcat://",s=`${l}character/`,o=["image","video","audio","character"],i=["image","video","audio"],n=e=>`${l}${e}`,c=e=>{if(!e.startsWith(s))return null;let t=e.slice(s.length);if(!/^\d+$/.test(t))return null;let r=Number(t);return Number.isSafeInteger(r)&&r>0?r:null},d=a.Ik({kind:a.k5(o),id:a.Yj().trim().min(1).max(128),name:a.Yj().trim().min(1).max(255),ref:a.Yj().trim().min(1).max(1024),previewUrl:a.Yj().trim().min(1).max(1024),durationSec:a.ai().positive().finite().optional(),thumbnailUrl:a.Yj().trim().min(1).max(1024).optional(),characterId:a.ai().int().positive().optional()}).superRefine((e,t)=>{if(!e.ref.startsWith(l))return void t.addIssue({code:"custom",path:["ref"],message:`ref must start with ${l}`});if("character"===e.kind){(void 0===e.characterId||c(e.ref)!==e.characterId)&&t.addIssue({code:"custom",path:["ref"],message:"character ref must match characterId"});return}null!==c(e.ref)&&t.addIssue({code:"custom",path:["ref"],message:"character ref is only valid for kind=character"}),e.ref.length<=l.length&&t.addIssue({code:"custom",path:["ref"],message:"ref key must not be empty"})}),m=a.YO(d),p=e=>{let t,r;if(t=e.assetType,!i.includes(t))return null;let a=e.filePath?.trim();if(!a)return null;let l=e.name?.trim(),s="number"==typeof e.durationSec&&Number.isFinite(e.durationSec)&&e.durationSec>0?e.durationSec:((e,t)=>{if("object"!=typeof e||null===e)return;let r=e[t];return"number"==typeof r&&Number.isFinite(r)&&r>0?r:void 0})(e.tags,"durationSec"),o=e.thumbnailUrl?.trim()??((e,t)=>{if("object"!=typeof e||null===e)return;let r=e[t];return"string"==typeof r&&r.trim().length>0?r:void 0})(e.tags,"thumbnailUrl");return{kind:e.assetType,id:e.id,name:l&&l.length>0?l:(r=a.split("/").pop())&&r.length>0?r:a,ref:n(a),previewUrl:e.previewUrl?.trim()??e.fileUrl,...void 0===s?{}:{durationSec:s},...void 0===o?{}:{thumbnailUrl:o}}},x=e=>{let t;return{kind:"character",id:String(e.id),name:e.name,ref:(t=e.id,`${s}${t}`),previewUrl:e.avatarUrl,characterId:e.id}}},62320:(e,t,r)=>{r.d(t,{B7:()=>l,RQ:()=>a});let a={"blue-ocean-products":{category:"category",region:"region",period:"period"},"collect-creator-videos":{creator:"creator",count:"count"},"collect-viral-videos":{keyword:"keyword",region:"region",range:"timeRange"},"image-translation":{targetLanguage:"targetLanguage",imageSize:"imageSize",translateProductText:"translateProductText"},"product-set-images":{usp:"usp",copyLanguage:"copyLanguage"},"reverse-video-prompt":{videoUrl:"videoUrl"},"scene-image":{sceneRequirement:"sceneRequirement",imageSize:"imageSize",imageCount:"imageCount"},"selling-point-image":{usp:"usp",copyLanguage:"copyLanguage",imageSize:"imageSize",imageCount:"imageCount"},"viral-prompt-generator":{effect:"effect",duration:"duration",region:"region"}},l={"blue-ocean-products":{category:"要选品的品类,如:护肤、口红、3C配件、å
1® ç‰©ç”¨å“ï¼ˆä¸­è‹±æ–‡éƒ½è¡Œï¼‰",region:"目标地区,如:美国、英国、德国、日本、印尼、马来西亚、菲律宾、泰国、越南",period:"统计周期,只能填:本周 或 本月"},"collect-creator-videos":{creator:"请输入TK博主账号名,如tk账号链接:https://www.tiktok.com/@quinclips3,那么输入的TK账号名为:@quinclips3",count:"输入采集视频总数量:10、20等,采集10条6算力,20条12算力,以此类推"},"image-translation":{targetLanguage:"翻译目标语言,输入如英文、日文、法语等TK上支持的国家语言",imageSize:"输入图片尺寸,9:16、16:9、1:1等",translateProductText:"商品文字是否翻译:填“是”则翻译,不填则保留原文。"},"product-set-images":{usp:"输入产品卖点,可以为空",copyLanguage:"文案语言,可输入不需要文案、英语、印尼语、日语等TK上支持的国家语言"},"reverse-video-prompt":{videoUrl:"请输入Tiktok链接,必须输入正确的TK链接,带有veidoid,如 https://www.tiktok.com/@keyairas_view/video/7591173153523535106"},"scene-image":{sceneRequirement:"场景要求,可以为智能生成,或者输入明确的场景要求",imageSize:"输入图片尺寸,9:16、16:9、1:1等",imageCount:"生成的图片数量,输入1,2,3,4"},"selling-point-image":{usp:"产品卖点",copyLanguage:"文案语言,可输入不需要文案、英语、印尼语、日语等TK上支持的国家语言",imageSize:"输入图片尺寸,9:16、16:9、1:1等",imageCount:"生成的图片数量,输入1,2,3,4"}}},77407:(e,t,r)=>{r.d(t,{w:()=>l});var a=r(52868);let l=({draft:e,sourceTab:t,templateId:r,imageUrls:l})=>{let s=((e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t})(),o=(0,a.wq)(s,{draft:e,...l&&l.length>0?{imageUrls:l}:{}}),i=new URLSearchParams({sourceTab:t});return void 0!==r&&i.set("templateId",String(r)),o||i.set("prompt",e.text),`/agent/chat/${s}?${i.toString()}`}},98426:(e,t,r)=>{r.d(t,{DW:()=>d,K_:()=>i,PP:()=>l,PX:()=>n,ZY:()=>m,_D:()=>c,w$:()=>o,wI:()=>s});var a=r(79849);let l=async e=>{let t=new URLSearchParams({language:e.language});return e.sceneTab&&t.set("sceneTab",e.sceneTab),(await (0,a.AT)(`/api/skill-templates?${t}`)).templates??[]},s=async(e,t)=>{let r=new URLSearchParams({language:t});return(await (0,a.AT)(`/api/skill-templates/${e}?${r}`)).template},o=async(e,t)=>{let r=new URLSearchParams({language:t});return(await (0,a.AT)(`/api/skill-templates/by-tool/${encodeURIComponent(e)}?${r}`)).template},i=async e=>{try{await (0,a.AT)(`/api/skill-templates/${e}/use`,{method:"POST"})}catch{}},n=async e=>{let t=new URLSearchParams;e?.page&&t.set("page",String(e.page)),e?.pageSize&&t.set("page_size",String(e.pageSize)),e?.scope&&t.set("scope",e.scope);let r=t.toString();return(0,a.AT)(`/api/skill-templates/mine${r?`?${r}`:""}`)},c=async e=>(await (0,a.AT)("/api/skill-templates/mine",{method:"POST",body:JSON.stringify(e)})).template,d=async(e,t)=>(await (0,a.AT)(`/api/skill-templates/mine/${e}`,{method:"PATCH",body:JSON.stringify(t)})).template,m=async e=>{await (0,a.AT)(`/api/skill-templates/mine/${e}`,{method:"DELETE"})}}}]);

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.