1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[669],{2186:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(30313).A)("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},2439:(e,t,r)=>{"use strict";r.d(t,{A:()=>i.A});var i=r(99398)},9200:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo8.2dd47be3.webp",height:72,width:440,blurDataURL:"data:image/webp;base64,UklGRkgAAABXRUJQVlA4WAoAAAAQAAAABwAAAAAAQUxQSAkAAAAAfHaCb3JpmnsAVlA4IBgAAAAwAQCdASoIAAEAAkA4JaQAA3AA/tqOAAA=",blurWidth:8,blurHeight:1}},16317:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo16.dbb5be94.webp",height:72,width:648,blurDataURL:"data:image/webp;base64,UklGRkgAAABXRUJQVlA4WAoAAAAQAAAABwAAAAAAQUxQSAkAAAAAs7anpK2ur7IAVlA4IBgAAAAwAQCdASoIAAEAAkA4JaQAA3AA/tnYAAA=",blurWidth:8,blurHeight:1}},17564:(e,t,r)=>{"use strict";r.d(t,{default:()=>eg});var i=r(95155),s=r(55466),a=r(52866),n=r(12115),l=r(43605),o=r(39858),d=r(47425),c=r(33927),u=r(2439),m=r(29185),h=r(84106),x=r(18720),A=r(18955),p=r(57934),b=r(44466);let g={src:"/_next/static/media/1.c2d887ba.webp"},v={src:"/_next/static/media/2.668d48fc.webp"},f={src:"/_next/static/media/3.49f69377.webp"},w={src:"/_next/static/media/4.0974e0bd.webp"},y=()=>((0,A.c)("Pages.Creation"),{durationOptions:[{label:"12s",value:"12"}],aspectRatioOptions:[{label:"9:16",value:"9:16"},{label:"16:9",value:"16:9"}],exampleList:[g.src,v.src,f.src,w.src]});var j=r(65323),P=r(39191),N=r(37567),k=r(30700),C=r(38285),S=r(3863);let R=e=>{let{value:t,onChange:r,onImport:s,placeholder:a="Enter a link",classNames:l={},loading:o}=e,[d,c]=(0,n.useState)(!1),u=(0,n.useRef)(null),m=()=>{s&&t&&s(t)};return(0,i.jsxs)("div",{onClick:()=>{var e;null==(e=u.current)||e.focus()},className:"flex items-center gap-3 border ".concat(d?"border-black":"border-[#F1F1F1]"," rounded-md p-1 transition-colors cursor-text bg-white ").concat(l.root),children:[(0,i.jsx)(C.p,{ref:u,variant:"unstyled",className:"flex-1 ml-2 ".concat(l.input),placeholder:a,value:t,onChange:e=>r(e.target.value),onFocus:()=>c(!0),onBlur:()=>c(!1),classNames:{input:"!text-sm !text-text-primary placeholder:!text-text-third"}}),(0,i.jsx)(S.$,{onClick:e=>{e.stopPropagation(),m()},disabled:!t,variant:"outline",loading:o,size:"xs",className:"shrink-0 border-[#191E26]! text-text-primary! hover:bg-[#F5F5F5]! disabled:border-[#E5E5E5]! disabled:text-text-third! disabled:bg-transparent! h-9 px-4 rounded-md",children:"Import"})]})};var E=r(8893),D=r(49957),Q=r(80533),I=r(84563),B=r(26225),_=r(60825),U=r(37117),W=r(23653),z=r(47331),F=r(93668),M=r(4354),O=r(91853),H=r(89063),V=r(66645),L=r(73643),T=r(41427);let[G,J]=(0,T.e)(),[X,q]=(0,T.e)();var Y={card:"m_9dc8ae12"};let K={withBorder:!0},Z=(0,Q.V)((e,t)=>{let{radius:r}=t;return{card:{"--card-radius":(0,D.nJ)(r)}}}),$=(0,O.P9)((e,t)=>{let r=(0,W.Y)("RadioCard",K,e),{classNames:s,className:a,style:n,styles:l,unstyled:o,vars:d,checked:c,mod:u,withBorder:m,value:h,onClick:x,name:A,onKeyDown:p,attributes:b,...g}=r,v=(0,z.I)({name:"RadioCard",classes:Y,props:r,className:a,style:n,classNames:s,styles:l,unstyled:o,attributes:b,vars:d,varsResolver:Z,rootSelector:"card"}),{dir:f}=(0,V.jH)(),w=J(),y="boolean"==typeof c?c:(null==w?void 0:w.value)===h,j=A||(null==w?void 0:w.name);return(0,i.jsx)(X,{value:{checked:y},children:(0,i.jsx)(L.N,{ref:t,mod:[{"with-border":m,checked:y},u],...v("card"),...g,role:"radio","aria-checked":y,name:j,onClick:e=>{null==x||x(e),null==w||w.onChange(h||"")},onKeyDown:e=>{if(null==p||p(e),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(e.nativeEvent.code)){e.preventDefault();let t=Array.from(document.querySelectorAll('[role="radio"][name="'.concat(j||"__mantine",'"]'))),r=t.findIndex(t=>t===e.target),i=r+1>=t.length?0:r+1,s=r-1<0?t.length-1:r-1;"ArrowDown"===e.nativeEvent.code&&(t[i].focus(),t[i].click()),"ArrowUp"===e.nativeEvent.code&&(t[s].focus(),t[s].click()),"ArrowLeft"===e.nativeEvent.code&&(t["ltr"===f?s:i].focus(),t["ltr"===f?s:i].click()),"ArrowRight"===e.nativeEvent.code&&(t["ltr"===f?i:s].focus(),t["ltr"===f?i:s].click())}}})})});$.displayName="@mantine/core/RadioCard",$.classes=Y;var ee=r(31416),et=r(17281);let er=(0,O.P9)((e,t)=>{let{value:r,defaultValue:s,onChange:a,size:n,wrapperProps:l,children:o,name:d,readOnly:c,disabled:u,...m}=(0,W.Y)("RadioGroup",null,e),h=(0,E.B)(d),[x,A]=(0,ee.Z)({value:r,defaultValue:s,finalValue:"",onChange:a});return(0,i.jsx)(G,{value:{value:x,onChange:e=>!c&&A("string"==typeof e?e:e.currentTarget.value),size:n,name:h,disabled:u},children:(0,i.jsx)(C.p.Wrapper,{size:n,ref:t,...l,...m,labelElement:"div",__staticSelector:"RadioGroup",children:(0,i.jsx)(et.F,{role:"radiogroup",children:o})})})});er.classes=C.p.Wrapper.classes,er.displayName="@mantine/core/RadioGroup";var ei=r(28428);function es(e){let{size:t,style:r,...s}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:(0,ei.D)(t),height:(0,ei.D)(t),...r},"aria-hidden":!0,...s,children:(0,i.jsx)("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}var ea={indicator:"m_717d7ff6",icon:"m_3e4da632","indicator--outline":"m_2980836c"};let en={icon:es},el=(0,Q.V)((e,t)=>{let{radius:r,color:i,size:s,iconColor:a,variant:n,autoContrast:l}=t,o=(0,I.g)({color:i||e.primaryColor,theme:e}),d=o.isThemeColor&&void 0===o.shade?"var(--mantine-color-".concat(o.color,"-outline)"):o.color;return{indicator:{"--radio-size":(0,D.YC)(s,"radio-size"),"--radio-radius":void 0===r?void 0:(0,D.nJ)(r),"--radio-color":"outline"===n?d:(0,B.r)(i,e),"--radio-icon-size":(0,D.YC)(s,"radio-icon-size"),"--radio-icon-color":a?(0,B.r)(a,e):(0,U.v)(l,e)?(0,_.w)({color:i,theme:e,autoContrast:l}):void 0}}}),eo=(0,O.P9)((e,t)=>{let r=(0,W.Y)("RadioIndicator",en,e),{classNames:s,className:a,style:n,styles:l,unstyled:o,vars:d,icon:c,radius:u,color:m,iconColor:h,autoContrast:x,checked:A,mod:p,variant:b,disabled:g,attributes:v,...f}=r,w=(0,z.I)({name:"RadioIndicator",classes:ea,props:r,className:a,style:n,classNames:s,styles:l,unstyled:o,attributes:v,vars:d,varsResolver:el,rootSelector:"indicator"}),y=q(),j="boolean"==typeof A?A:(null==y?void 0:y.checked)||!1;return(0,i.jsx)(M.a,{ref:t,...w("indicator",{variant:b}),variant:b,mod:[{checked:j,disabled:g},p],...f,children:(0,i.jsx)(c,{...w("icon")})})});eo.displayName="@mantine/core/RadioIndicator",eo.classes=ea;var ed={root:"m_f3f1af94",inner:"m_89c4f5e4",icon:"m_f3ed6b2b",radio:"m_8a3dbb89","radio--outline":"m_1bfe9d39"};let ec={labelPosition:"right"},eu=(0,Q.V)((e,t)=>{let{size:r,radius:i,color:s,iconColor:a,variant:n,autoContrast:l}=t,o=(0,I.g)({color:s||e.primaryColor,theme:e}),d=o.isThemeColor&&void 0===o.shade?"var(--mantine-color-".concat(o.color,"-outline)"):o.color;return{root:{"--radio-size":(0,D.YC)(r,"radio-size"),"--radio-radius":void 0===i?void 0:(0,D.nJ)(i),"--radio-color":"outline"===n?d:(0,B.r)(s,e),"--radio-icon-color":a?(0,B.r)(a,e):(0,U.v)(l,e)?(0,_.w)({color:s,theme:e,autoContrast:l}):void 0,"--radio-icon-size":(0,D.YC)(r,"radio-icon-size")}}}),em=(0,O.P9)((e,t)=>{var r,s,a;let n=(0,W.Y)("Radio",ec,e),{classNames:l,className:o,style:d,styles:c,unstyled:u,vars:m,id:h,size:x,label:A,labelPosition:p,description:b,error:g,radius:v,color:f,variant:w,disabled:y,wrapperProps:j,icon:P=es,rootRef:N,iconColor:k,onChange:C,mod:S,attributes:R,checked:D,...Q}=n,I=(0,z.I)({name:"Radio",classes:ed,props:n,className:o,style:d,classNames:l,styles:c,unstyled:u,attributes:R,vars:m,varsResolver:eu}),B=J(),_=null!=(r=null==B?void 0:B.size)?r:x,U=n.size?x:_,{styleProps:O,rest:V}=(0,F.j)(Q),L=(0,E.B)(h),T=B?B.value===V.value:void 0,G={checked:null!=T?T:D,name:null!=(s=null==B?void 0:B.name)?s:V.name,onChange:e=>{null==B||B.onChange(e),null==C||C(e)},disabled:null!=(a=null==B?void 0:B.disabled)?a:y};return(0,i.jsx)(H.I,{...I("root"),__staticSelector:"Radio",__stylesApiProps:n,id:L,size:U,labelPosition:p,label:A,description:b,error:g,disabled:G.disabled,classNames:l,styles:c,unstyled:u,"data-checked":(null!=T?T:D)||void 0,variant:w,ref:N,mod:S,...O,...j,children:(0,i.jsxs)(M.a,{...I("inner"),mod:{"label-position":p},children:[(0,i.jsx)(M.a,{...I("radio",{focusable:!0,variant:w}),...V,...G,component:"input",mod:{error:!!g},ref:t,id:L,type:"radio"}),(0,i.jsx)(P,{...I("icon"),"aria-hidden":!0})]})})});em.classes=ed,em.displayName="@mantine/core/Radio",em.Group=er,em.Card=$,em.Indicator=eo;let eh=e=>{let{imageUrl:t,isSelected:r,onSelect:s}=e;return(0,i.jsxs)("div",{className:"relative aspect-square rounded-lg overflow-hidden cursor-pointer transition-all duration-200 border ".concat(r?"border-brand-primary":"border-transparent hover:border-[#
1E5E5E5]"),onClick:s,children:[(0,i.jsx)(P.A,{src:t,alt:"Product image",completedShowBackground:!1,className:"w-full h-full object-cover",radius:"none"}),(0,i.jsx)("div",{className:"absolute top-1 left-1 z-10",children:(0,i.jsx)(em,{checked:r,onChange:()=>{},size:"xs",classNames:{radio:"cursor-pointer ".concat(r?"border-brand-primary bg-brand-primary":"border-white bg-white/80 backdrop-blur-sm")}})})]})},ex=(0,r(30313).A)("outline","photo-search","PhotoSearch",[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M11.5 21h-5.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v5.5",key:"svg-1"}],["path",{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-2"}],["path",{d:"M20.2 20.2l1.8 1.8",key:"svg-3"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l2 2",key:"svg-4"}]]),eA=e=>{let{images:t=[],selectedImage:r,onSelectImage:s}=e;(0,A.c)("Pages.Creation");let[l,o]=(0,n.useState)(null),d=void 0!==r?r:l,c=e=>{void 0===r&&o(e),null==s||s(e)};return(0,i.jsx)(a.ScrollArea,{offsetScrollbars:!0,scrollbars:"y",h:200,className:"border border-[#F1F1F1] p-3 rounded-md",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"grid grid-cols-4 gap-1",children:t.map((e,t)=>(0,i.jsx)(eh,{imageUrl:e,isSelected:d===e,onSelect:()=>c(e)},t))}),0===t.length&&(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center text-center h-[170px] w-full text-text-secondary",children:[(0,i.jsx)(ex,{}),"No images"]})]})})};var ep=r(83319),eb=r(88629);let eg=e=>{let{domain:t}=e,r=(0,A.c)("Pages.Creation"),g=(0,s.A)(e=>e.setDomain),v=(0,s.A)(e=>e.PostData),f=(0,s.A)(e=>e.updatePostData),w=(0,s.A)(e=>e.removeWatermark),C=(0,s.A)(e=>e.setRemoveWatermark),S=(0,m.A)(e=>e.setCreditInfo),E=(0,s.A)(e=>e.setVideoList),D=(0,s.A)(e=>e.updateGeneratedIds),Q=(0,m.A)(e=>e.userInfo),[I,B]=(0,n.useState)(!1),[_,U]=(0,n.useState)("manual"),[W,z]=(0,n.useState)(""),{transfer:F,filterAccessibleUrls:M}=(0,ep.x)(),[O,H]=(0,n.useState)([]),[V,L]=(0,n.useState)(!1),T=[{label:r("Settings.manualUpload"),value:"manual"},{label:r("Settings.importFromUrl"),value:"url"}],G=(0,n.useMemo)(()=>Q&&Q.pkg_code.includes("sub"),[Q]);(0,n.useEffect)(()=>{G?C(!0):C(!1)},[G,C]);let{aspectRatioOptions:J,durationOptions:X,exampleList:q}=y();(0,n.useEffect)(()=>{t&&g(t)},[t]),(0,n.useEffect)(()=>{_&&f("image","")},[_]);let Y={generateBtnStar:100,originalPrice:500,discountPercent:80,isPro:!1};(0,p.o)({product_name:"",product_info:"",selling_point:"",image:"",aspect_ratio:J[0].value,duration:Number(X[0].value)});let K=async e=>{e!==W&&z(e),er()},Z=async e=>{try{L(!0);let t=await h.A.createAsyncTask({type:h.q.CRAWL_WEBSITE,args:{url:e}});await $(t.data.task_id)}catch(e){console.error(e),x.o.error("Mission failed")}finally{L(!1)}},{startPolling:$}=(0,eb.Q)({interval:5e3,maxAttempts:48,initialDelay:5e3,onSuccess:async e=>{f("product_name",(null==e?void 0:e.name)||""),f("product_info",(null==e?void 0:e.desc)||"");let t=(null==e?void 0:e.images)||[],r=await M(t,"image");H(r),f("image",r[0]||"")},onError:e=>{x.o.error(e||"Mission failed")}}),ee=async()=>{try{if(B(!0),"url"===_&&v.image)try{let{pathMap:e}=await F([v.image]),t=e.get(v.image);t&&f("image",t)}catch(e){console.error(e),x.o.error("Image upload failed"),B(!1);return}(0,l.DN)("begin_task",{name:"product_generate"});let e=await h.A.createAsyncTask({type:h.q.PRODUCT_TO_VIDEO,args:{...s.A.getState().PostData,has_watermark:!w}});if(0===e.code&&e.data){x.o.success(r("Messages.taskSubmitted")),(0,l.DN)("end_task",{success:"true"}),S({credit:e.data.credit,subCredit:e.data.sub_credit});let t=s.A.getState().videoList,i=e.data.video_ids.map(t=>({id:t,task_id:e.data.task_id,user_id:"",kind:0,status:0,width:0,height:0,duration:0,nsfw:!1,created_at:"",specs:{default:{cover:"",video:"",size:0}},args:{product_name:v.product_name,product_info:v.product_info,image:v.image,aspect_ratio:v.aspect_ratio,duration:v.duration}}));E([...i,...t]),D([...e.data.video_ids,...s.A.getState().generatedVideoIds])}else 1e3===e.code?((0,l.DN)("end_task",{success:"false"}),x.o.warning(e.info)):((0,l.DN)("end_task",{success:"false"}),x.o.error(e.info))}catch(e){(0,l.DN)("end_task",{success:"false"}),x.o.warning(String(e))}finally{B(!1)}},et=(0,b.y)({buttonProps:Y,templateName:v.template_name,type:"product-video",customValidate:()=>v.product_name&&0!==v.product_name.length?v.product_info&&0!==v.product_info.length?!!v.image&&0!==v.image.length||(x.o.warning(r("Validation.imageRequired")),!1):(x.o.warning(r("Validation.productInfoRequired")),!1):(x.o.warning(r("Validation.productNameRequired")),!1),onSuccess:ee}),er=(0,b.y)({buttonProps:{generateBtnStar:0,isPro:!1},templateName:v.template_name,type:"product-video",customValidate:()=>!!W&&0!==W.trim().length||(x.o.warning("Please enter a link"),!1),onSuccess:()=>Z(W)});return(0,i.jsxs)("div",{className:"flex flex-col h-full pt-4",children:[(0,i.jsx)("div",{className:"px-4 mb-4",children:(0,i.jsx)(k.A,{items:T,value:_,onCh
1ange:e=>U(e),fullWidth:!0})}),(0,i.jsx)(a.ScrollArea,{className:"flex-1 px-4",children:(0,i.jsxs)("div",{className:"flex flex-col gap-3 rounded-md mb-2",children:["manual"===_&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.A,{children:r("Settings.productImage")}),(0,i.jsx)("div",{className:"flex-1 aspect-324/136",children:(0,i.jsx)(j.A,{content:r("Settings.uploadImage"),imageWidth:324,imageHeight:136,domain:t,postDataImageKey:"image"})}),(0,i.jsxs)("div",{className:"",children:[(0,i.jsx)("p",{className:"text-sm text-text-secondary",children:r("Settings.samples")}),(0,i.jsx)("div",{className:"flex gap-[7px] items-center mt-2",children:q.map((e,t)=>(0,i.jsx)(P.A,{src:e,completedShowBackground:!1,alt:"example".concat(t+1),radius:"none"},t))})]})]}),"url"===_&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.A,{children:r("Settings.productUrl")}),(0,i.jsx)(R,{value:W,onChange:e=>z(e),placeholder:r("Settings.enterURLAddressHere"),onImport:K,loading:V})]}),(0,i.jsx)(N.A,{classNames:{wrapper:"mt-1"},children:r("Settings.productName")}
1),(0,i.jsx)(u.A,{value:v.product_name||"",onChange:e=>f("product_name",e),placeholder:r("Settings.productNamePlaceholderNew"),showCharCount:!1,rows:2}),(0,i.jsx)(N.A,{classNames:{wrapper:"mt-1"},children:r("Settings.productDetailsNew")}),(0,i.jsx)(u.A,{value:v.product_info||"",onChange:e=>f("product_info",e),placeholder:r("Settings.productDetailsPlaceholderNew"),maxLength:1e3,rows:6,showCharCount:!0}),"url"===_&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.A,{classNames:{wrapper:"mt-1"},children:r("Settings.productImage")}),(0,i.jsx)(eA,{images:O,selectedImage:v.image,onSelectImage:e=>f("image",e)})]}),(0,i.jsx)(c.A,{options:J,label:r("Settings.aspectRatio"),value:v.aspect_ratio,hasCube:!0,onChange:e=>f("aspect_ratio",e)}),(0,i.jsx)(c.A,{options:X,label:r("Settings.duration"),value:v.duration.toString(),onChange:e=>f("duration",e)})]})}),(0,i.jsxs)("section",{className:"p-4 space-y-3",children:[(0,i.jsx)(d.A,{checked:w,onChange:C,isSubscribed:!!G}),(0,i.jsx)(o.A,{buttonProps:Y,loading:I,buttonClick:et,showDiscountBanner:!0})]})]})}},18345:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo7.55f88ab7.webp",height:72,width:340,blurDataURL:"data:image/webp;base64,UklGRlAAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAA2zdDJi8mJ1bbK1A7RVJGQgBWUDggGAAAADABAJ0BKggAAgACQDglpAADcAD+1zwAAA==",blurWidth:8,blurHeight:2}},18431:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo14.bd9700c5.webp",height:72,width:239,blurDataURL:"data:image/webp;base64,UklGRlAAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAAq3izdoybebEfNFdYSy4YGgBWUDggGAAAADABAJ0BKggAAgACQDglpAADcAD+2dgAAA==",blurWidth:8,blurHeight:2}},19742:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var i=r(95155),s=r(47522),a=r(68595);r(12115);var n=r(70003),l=r(43605),o=r(3863),d=r(70273);let c=e=>{let{title:t,subtitle:r,columns:c,buttonParams:u}=e,m=c.length,h=()=>{u&&(0,l.DN)(u.pushKey,{action:u.pushAction})};return(0,i.jsx)("div",{className:"w-full py-20 px-4 md:px-6 lg:px-8",children:(0,i.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,i.jsxs)("div",{className:"text-center mb-12 md:mb-16",children:[(0,i.jsx)(d.P.h2,{className:"text-4xl md:text-5xl font-bold text-title-primary mb-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,ease:"easeOut"},children:t}),r&&(0,i.jsx)(d.P.p,{className:"text-xl text-text-secondary max-w-3xl mx-auto",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.2,ease:"easeOut"},children:r})]}),(0,i.jsx)("div",{className:"overflow-x-auto overflow-y-hidden p-4",children:(0,i.jsx)("div",{className:"grid gap-6 mx-auto",style:{gridTemplateColumns:"repeat(".concat(m,", minmax(").concat(m<=3?250:4===m?220:200,"px, 1fr))"),maxWidth:"min(100%, 1400px)"},children:c.map((e,t)=>(0,i.jsxs)(d.P.div,{className:"rounded-xl shadow-lg overflow-hidden ".concat(e.isHighlighted?"bg-[#F3E8FF]":"bg-white"),initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.15*t,ease:"easeOut"},children:[(0,i.jsx)("div",{className:"h-[60px] px-5 flex items-center border-b ".concat(e.isHighlighted?"border-[#DAD3E6]":"border-gray-1"),children:(0,i.jsx)("div",{className:"truncate w-full ".concat(e.isHighlighted?"text-xl text-brand-primary font-medium":"text-text-third"," ").concat(e.centerText?"text-center":""),title:e.title,children:e.title})}),(0,i.jsx)("div",{children:e.items.map((t,r)=>(0,i.jsx)("div",{className:"h-[60px] px-5 flex items-center border-b last:border-b-0 ".concat(e.isHighlighted?"border-[#DAD3E6]":"border-gray-1"),children:t.hasCheckmark?(0,i.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0
1w-full ".concat(e.centerText?"justify-center":""),children:[(0,i.jsx)("div",{className:"w-5 h-5 rounded-full bg-[#2AC670] flex items-center justify-center shrink-0",children:(0,i.jsx)(s.A,{className:"w-3 h-3 text-white",strokeWidth:3})}),t.value&&(0,i.jsx)("p",{className:"truncate flex-1 min-w-0 ".concat(e.isHighlighted?"text-brand-primary font-medium":"text-text-third"),title:t.value,children:t.value})]}):(0,i.jsx)("p",{className:"truncate w-full ".concat(e.isHighlighted?"text-xl text-brand-primary font-medium":"text-text-third"," ").concat(e.centerText?"text-center":""),title:t.value,children:t.value})},r))})]},t))})}),u&&(0,i.jsx)(d.P.div,{className:"text-center mt-12",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.4,ease:"easeOut"},children:u.href.startsWith("#")?(0,i.jsx)("a",{href:u.href,children:(0,i.jsx)(o.$,{radius:"xl",onClick:h,classNames:{root:"!bg-brand-primary hover:!bg-brand-primary-hover group !h-[48px] md:!h-[56px] !pl-8 !pr-6.5",label:"text-lg"},rightSection:(0,i.jsx)(a.A,{size:18,className:"opacity-0 w-0 group-hover:opacity-100 group-hover:w-4 transition-all duration-300 ease-in-out"}),children:u.text})}):(0,i.jsx)(n.N_,{href:u.href,children:(0,i.jsx)(o.$,{radius:"xl",onClick:h,classNames:{root:"!bg-brand-primary hover:!bg-brand-primary-hover group !h-[48px] md:!h-[56px] !pl-8 !pr-6.5",label:"text-lg"},rightSection:(0,i.jsx)(a.A,{size:18,className:"opacity-0 w-0 group-hover:opacity-100 group-hover:w-4 transition-all duration-300 ease-in-out"}),children:u.text})})})]})})}},21044:(e,t,r)=>{Promise.resolve().then(r.bind(r,52866)),Promise.resolve().then(r.bind(r,64707)),Promise.resolve().then(r.bind(r,3809)),Promise.resolve().then(r.bind(r,55001)),Promise.resolve().then(r.bind(r,71438)),Promise.resolve().then(r.bind(r,33551)),Promise.resolve().then(r.bind(r,17564)),Promise.resolve().then(r.bind(r,73401)),Promise.resolve().then(r.bind(r,67892)),Promise.resolve().then(r.bind(r,77467)),Promise.resolve().then(r.bind(r,36860)),Promise.resolve().then(r.bind(r,54081)),Promise.resolve().then(r.bind(r,28594)),Promise.resolve().then(r.bind(r,79471)),Promise.resolve().then(r.bind(r,84955)),Promise.resolve().then(r.bind(r,44857)),Promise.resolve().then(r.bind(r,74506)),Promise.resolve().then(r.bind(r,18431)),Promise.resolve().then(r.bind(r,37032)),Promise.resolve().then(r.bind(r,16317)),Promise.resolve().then(r.bind(r,38574)),Promise.resolve().then(r.bind(r,34411)),Promise.resolve().then(r.bind(r,18345)),Promise.resolve().then(r.bind(r,9200)),Promise.resolve().then(r.bind(r,60288)),Promise.resolve().then(r.bind(r,14912)),Promise.resolve().then(r.bind(r,19362)),Promise.resolve().then(r.bind(r,17548)),Promise.resolve().then(r.bind(r,40879)),Promise.resolve().then(r.bind(r,19356)),Promise.resolve().then(r.bind(r,6254)),Promise.resolve().then(r.bind(r,66290)),Promise.resolve().then(r.bind(r,36854)),Promise.resolve().then(r.bind(r,71435)),Promise.resolve().then(r.bind(r,72888)),Promise.resolve().then(r.bind(r,92797)),Promise.resolve().then(r.bind(r,63771)),Promise.resolve().then(r.bind(r,18621)),Promise.resolve().then(r.bind(r,1260)),Promise.resolve().then(r.bind(r,40922)),Promise.resolve().then(r.bind(r,93153)),Promise.resolve().then(r.bind(r,85599)),Promise.resolve().then(r.bind(r,49038)),Promise.resolve().then(r.bind(r,99080)),Promise.resolve().then(r.bind(r,7294)),Promise.resolve().then(r.bind(r,90783)),Promise.resolve().then(r.bind(r,74523)),Promise.resolve().then(r.bind(r,71658)),Promise.resolve().then(r.bind(r,10824)),Promise.resolve().then(r.bind(r,31997)),Promise.resolve().then(r.bind(r,43865)),Promise.resolve().then(r.bind(r,67738)),Promise.resolve().then(r.bind(r,29941)),Promise.resolve().then(r.bind(r,92097)),Promise.resolve().then(r.bind(r,25461)),Promise.resolve().then(r.bind(r,53077)),Promise.resolve().then(r.bind(r,92661)),Promise.resolve().then(r.bind(r,50377)),Promise.resolve().then(r.bind(r,74267)),Promise.resolve().then(r.bind(r,78918)),Promise.resolve().then(r.bind(r,23209)),Promise.resolve().then(r.bind(r,48950)),Promise.resolve().then(r.bind(r,30866)),Promise.resolve().then(r.bind(r,31198)),Promise.resolve().then(r.bind(r,74159)),Promise.resolve().then(r.bind(r,92166)),Promise.resolve().then(r.bind(r,97955)),Promise.resolve().then(r.bind(r,21832)),Promise.resolve().then(r.bind(r,22445)),Promise.resolve().then(r.bind(r,40733)),Promise.resolve().then(r.bind(r,69559)),Promise.resolve().then(r.bind(r,38421)),Promise.resolve().then(r.bind(r,33661)),Promise.resolve().then(r.bind(r,68850)),Promise.resolve().then(r.bind(r,54466)),Promise.resolve().then(r.bind(r,71213)),Promise.resolve().then(r.bind(r,63579)),Promise.resolve().then(r.bind(r,57782)),Promise.resolve().then(r.bind(r,3378)),Promise.resolve().then(r.bind(r,24960)),Promise.resolve().then(r.bind(r,60827)),Promise.resolve().then(r.bind(r,13949)),Promise.resolve().then(r.bind(r,62232)),Promise.resolve().then(r.bind(r,10292)),Promise.resolve().then(r.bind(r,97023)),Promise.resolve().then(r.bind(r,70101)),Promise.resolve().then(r.bind(r,54436)),Promise.resolve().then(r.bind(r,31852)),Promise.resolve().then(r.bind(r,37130)),Promise.resolve().then(r.bind(r,80551)),Promise.resolve().then(r.bind(r,56128)),Promise.resolve().then(r.bind(r,6124)),Promise.resolve().then(r.bind(r,44472)),Promise.resolve().then(r.bind(r,29477)),Promise.resolve().then(r.bind(r,66963)),Promise.resolve().then(r.bind(r,90479)),Promise.resolve().then(r.bind(r,65025)),Promise.resolve().then(r.bind(r,73492)),Promise.resolve().then(r.bind(r,76427)),Promise.resolve().then(r.bind(r,29278)),Promise.resolve().then(r.bind(r,19064)),Promise.resolve().then(r.bind(r,98884)),Promise.resolve().then(r.bind(r,80131)),Promise.resolve().then(r.bind(r,61257)),Promise.resolve().then(r.bind(r,85937)),Promise.resolve().then(r.bind(r,63158)),Promise.resolve().then(r.bind(r,86628)),Promise.resolve().then(r.bind(r,90320)),Promise.resolve().then(r.bind(r,67667)),Promise.resolve().then(r.bind(r,90581)),Promise.resolve().then(r.bind(r,70051)),Promise.resolve().then(r.bind(r,65568)),Promise.resolve().then(r.bind(r,66354)),Promise.resolve().then(r.bind(r,6611)),Promise.resolve().then(r.bind(r,21392)),Promise.resolve().then(r.bind(r,48156)),Promise.resolve().then(r.bind(r,56200)),Promise.resolve().then(r.bind(r,67979)),Promise.resolve().then(r.bind(r,58346)),Promise.resolve().then(r.bind(r,88221)),Promise.resolve().then(r.bind(r,75724)),Promise.resolve().then(r.bind(r,8831)),Promise.resolve().then(r.bind(r,6702)),Promise.resolve().then(r.bind(r,93910)),Promise.resolve().then(r.bind(r,50088)),Promise.resolve().then(r.bind(r,61712)),Promise.resolve().then(r.bind(r,92916)),Promise.resolve().then(r.bind(r,83991)),Promise.resolve().then(r.bind(r,69885)),Promise.resolve().then(r.bind(r,83316)),Promise.resolve().then(r.bind(r,18457)),Promise.resolve().then(r.bind(r,81367)),Promise.resolve().then(r.bind(r,7942)),Promise.resolve().then(r.bind(r,97034)),Promise.resolve().then(r.bind(r,96118)),Promise.resolve().then(r.bind(r,99623)),Promise.resolve().then(r.bind(r,66363)),Promise.resolve().then(r.bind(r,13546)),Promise.resolve().then(r.bind(r,91641)),Promise.resolve().then(r.bind(r,50419)),Promise.resolve().then(r.bind(r,59252)),Promise.resolve().then(r.bind(r,43857)),Promise.resolve().then(r.bind(r,75193)),Promise.resolve().then(r.bind(r,34026)),Promise.resolve().then(r.bind(r,57035)),Promise.resolve().then(r.bind(r,61801)),Promise.resolve().then(r.bind(r,87598)),Promise.resolve().then(r.bind(r,2888)),Promise.resolve().then(r.bind(r,97157)),Promise.resolve().then(r.bind(r,89178)),Promise.resolve().then(r.bind(r,17375)),Promise.resolve().then(r.bind(r,54226)),Promise.resolve().then(r.bind(r,19426)),Promise.resolve().then(r.bind(r,4392)),Promise.resolve().then(r.bind(r,84262)),Promise.resolve().then(r.bind(r,14786)),Promise.resolve().then(r.bind(r,86133)),Promise.resolve().then(r.bind(r,24439)),Promise.resolve().then(r.bind(r,57899)),Promise.resolve().then(r.bind(r,63251)),Promise.resolve().then(r.bind(r,16720)),Promise.resolve().then(r.bind(r,59917)),Promise.resolve().then(r.bind(r,44777)),Promise.resolve().then(r.bind(r,39838)),Promise.resolve().then(r.bind(r,62413)),Promise.resolve().then(r.bind(r,34418)),Promise.resolve().then(r.bind(r,10233)),Promise.resolve().then(r.bind(r,35130)),Promise.resolve().then(r.bind(r,97735)),Promise.resolve().then(r.bind(r,15946)),Promise.resolve().then(r.bind(r,80695)),Promise.resolve().then(r.bind(r,14918)),Promise.resolve().then(r.bind(r,20590)),Promise.resolve().then(r.bind(r,43831)),Promise.resolve().then(r.bind(r,40622)),Promise.resolve().then(r.bind(r,69276)),Promise.resolve().then(r.bind(r,29919)),Promise.resolve().then(r.bind(r,25549)),Promise.resolve().then(r.bind(r,50032)),Promise.resolve().then(r.bind(r,89100)),Promise.resolve().then(r.bind(r,71787)),Promise.resolve().then(r.bind(r,59862)),Promise.resolve().then(r.bind(r,27284)),Promise.resolve().then(r.bind(r,43895)),Promise.resolve().then(r.bind(r,82151)),Promise.resolve().then(r.bind(r,33151)),Promise.resolve().then(r.bind(r,79578)),Promise.resolve().then(r.bind(r,96090)),Promise.resolve().then(r.bind(r,57721)),Promise.resolve().then(r.bind(r,27344)),Promise.resolve().then(r.bind(r,19742)),Promise.resolve().then(r.bind(r,76961)),Promise.resolve().then(r.bind(r,77681)),Promise.resolve().then(r.bind(r,50351)),Promise.resolve().then(r.bind(r,39117)),Promise.resolve().then(r.bind(r,19767))},28594:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/step3.49874736.webp",height:512,width:832,blurDataURL:"data:image/webp;base64,UklGRlAAAABXRUJQVlA4IEQAAADwAQCdASoIAAUAAkA4JQBOj+ADE2iBhYAA/vCPzMc9+mw3v0QWnfKMFnkbfXH/CMu6qAl
1C96H8ddtKxAaMvMq3iGtIAA==",blurWidth:8,blurHeight:5}},30438:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(95155);r(12115);let s=e=>{let{className:t=""}=e;return(0,i.jsx)("svg",{className:"cursor-pointer ".concat(t),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,i.jsxs)("g",{id:"refresh_1_line",fill:"none",fillRule:"evenodd",children:[(0,i.jsx)("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002-.071.035-.02.004-.014-.004-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093c.012.004.023 0 .029-.008l.004-.014-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014-.034.614c0 .012.007.02.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z"}),(0,i.jsx)("path",{fill:"#FFFFFFFF",d:"M9.93 19.728a8.004 8.004 0 0 0 9.146-3.99 1 1 0 1 1 1.77.932c-2.13 4.04-6.836 6.221-11.434 4.99-5.335-1.43-8.5-6.913-7.071-12.248 1.43-5.335 6.913-8.5 12.247-7.071a10.003 10.003 0 0 1 7.414 9.58c.007.903-.995 1.402-1.713.92l-2.673-1.802c-1.008-.68-.332-2.251.854-1.986l1.058.236A8 8 0 1 0 9.93 19.728"})]})})}},30700:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var i=r(95155),s=r(84338),a=r(96574),n=r(53219),l=r(73643),o=r(77298),d=r(15532),c=r(95585),u=r(73588),m=r(12115);let h={sm:{height:"h-8",padding:"p-0.5",fontSize:"text-sm",gap:"gap-0.5"},md:{height:"h-10",padding:"p-1",fontSize:"text-sm",gap:"gap-1"},lg:{height:"h-12",padding:"p-1",fontSize:"text-sm",gap:"gap-1"}},x={default:{padding:""},compact:{padding:"p-0"},underline:{padding:""}},A=e=>{let{items:t,value:r,onChange:A,size:p="md",variant:b="default",className:g="",width:v,radius:f,customBorderClass:w,fullWidth:y=!1}=e,[j,P]=(0,m.useState)(null),[N,k]=(0,m.useState)({}),C=(0,m.useRef)(null),[S,R]=(0,m.useState)(!1),[E,D]=(0,m.useState)(!1),[Q,I]=(0,m.useState)(!1),B=(0,s.B)({onDropdownClose:()=>B.resetSelectedOption()}),_=e=>t=>{N[e]=t,k(N)};(0,m.useEffect)(()=>{let e=()=>{if(C.current){let{scrollLeft:e,scrollWidth:t,clientWidth:r}=C.current;D(e>0),I(e<t-r),R(t>r)}};e();let t=C.current;if(t)return t.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{t.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[t]);let U=()=>{C.current&&C.current.scrollBy({left:-200,behavior:"smooth"})},W=()=>{C.current&&C.current.scrollBy({left:200,behavior:"smooth"})},z=h[p],F=x[b],M="compact"===b?F.padding:z.padding;return"underline"===b?(0,i.jsx)("div",{className:g,children:(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("div",{ref:C,className:"\n flex items-center \n gap-2 md:gap-8\n flex-1\n overflow-x-auto\n scrollbar-hide\n ".concat(v||"","\n "),style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:t.map(e=>{let t=r===e.value;return(0,i.jsx)("button",{onClick:()=>!e.disabled&&A(e.value),disabled:e.disabled,className:"\n group\n pb-2\n bg-transparent\n outline-none\n transition-all duration-300\n border-b-2\n shrink-0\n ".concat(t?"border-text-primary":"border-transparent group-hover:border-text-primary","\n ").concat(e.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer","\n "),children:(0,i.jsx)("span",{className:"\n font-medium\n transition-colors duration-300 \n ".concat(t?"text-text-primary":"text-text-secondary group-hover:text-text-primary","\n "),children:e.label})},e.value)})}),S&&(0,i.jsxs)("div",{className:"md:flex hidden items-center gap-2 ml-2",children:[(0,i.jsx)("button",{onClick:U,disabled:!E,className:"w-8 h-8 rounded-lg flex items-center justify-center transition-all duration-200 ease-in-out group ".concat(E?"bg-[#001331]/6 hover:bg-[#001331]/14 active:bg-[#001331]/20 cursor-pointer":"cursor-not-allowed"),children:(0,i.jsx)(d.A,{size:20,className:"transition-colors duration-200 ".concat(E?"text-text-secondary":"text-[#CCCCCC]")})}),(0,i.jsx)("button",{onClick:W,disabled:!Q,className:"w-8 h-8 rounded-lg flex items-center justify-center transition-all duration-200 ease-in-out group ".concat(Q?"bg-[#001331]/6 hover:bg-[#001331]/14 active:bg-[#001331]/20 cursor-pointer":"cursor-not-allowed"),children:(0,i.jsx)(c.A,{size:20,className:"transition-colors duration-200 ".concat(Q?"text-text-secondary":"text-[#CCCCCC]")})})]}),(0,i.jsxs)(a.G,{store:B,width:150,position:"bottom-end",withArrow:!0,onOptionSubmit:e=>{A(e),B.closeDropdown()},children:[(0,i.jsx)(a.G.Target,{children:(0,i.jsx)(n.M,{color:"black",variant:"light",className:"md:hidden! w-4 h-4 ml-2",onClick:()=>B.toggleDropdown(),children:(0,i.jsx)(u.A,{})})}),(0,i.jsx)(a.G.Dropdown,{children:(0,i.jsx)(a.G.Options,{children:t.map(e=>(0,i.jsx)(a.G.Option,{value:e.value,disabled:e.disabled,children:e.label},e.value))})})]})]})}):(0,i.jsx)("div",{className:g,children:(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)("div",{ref:e=>{P(e),C.current=e},className:"\n relative \n ".concat(v||"w-full"," \n ").concat(z.height," \n bg-gray-3\n ").concat(f||"rounded-full"," \n ").concat(M,"\n ").concat("compact"===b?"border! border-brand-primary!":w||"","\n flex items-center \n ").concat("compact"===b?"gap-0 bg-white!":z.gap,"\n overflow-x-auto\n scrollbar-hide\n flex-1\n "),style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:[t.map(e=>(0,i.jsx)(l.N,{ref:_(e.value),onClick:()=>!e.disabled&&A(e.value),disabled:e.disabled,className:"\n relative \n ".concat(y?"flex-1":""," \n h-full\n ").concat(f||"rounded-full"," \n ").concat("compact"===b?"px-4":"px-6","\n ").concat(e.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer","\n "),mod:{active:r===e.value},children:(0,i.jsx)("div",{className:"relative z-10 flex items-center justify-center h-full",children:(0,i.jsx)("span",{className:"\n ".concat(z.fontSize," \n font-medium \n transition-colors duration-300 \n ").concat(r===e.value?"text-white":"text-text-primary","\n "),children:e.label})})},e.value)),(0,i.jsx)(o.g,{target:r?N[r]:null,parent:j,className:"bg-brand-primary ".concat(f||"rounded-full"," shadow-sm")})]}),S&&(0,i.jsxs)("div",{className:"flex items-center gap-2 ml-2",children:[(0,i.jsx)("button",{onClick:U,disabled:!E,className:"w-8 h-8 rounded-lg flex items-center justify-center transition-all duration-200 ease-in-out group ".concat(E?"bg-[#001331]/6 hover:bg-[#001331]/14 active:bg-[#001331]/20 cursor-pointer":"cursor-not-allowed"),children:(0,i.jsx)(d.A,{size:20,className:"transition-colors duration-200 ".concat(E?"text-text-secondary":"text-[#CCCCCC]")})}),(0,i.jsx)("button",{onClick:W,disabled:!Q,className:"w-8 h-8 rounded-lg flex items-center justify-center transition-all duration-200 ease-in-out group ".concat(Q?"bg-[#001331]/6 hover:bg-[#001331]/14 active:bg-[#001331]/20 cursor-pointer":"cursor-not-allowed"),children:(0,i.jsx)(c.A,{size:20,className:"transition-colors duration-200 ".concat(Q?"text-text-secondary":"text-[#CCCCCC]")})})]})]})})}},33551:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var i=r(95155);r(12115);var s=r(70003),a=r(43605),n=r(3863),l=r(47522),o=r(2186),d=r(70273);let c=e=>{let{title:t,titleHighlight:r,subtitle:c,cards:u,pushKey:m,pushAction:h}=e,x=()=>{m&&h&&(0,a.DN)(m,{action:h})},A={hidden:{opacity:0,y:50,scale:.95},visible:{opacity:1,y:0,scale:1,transition:{duration:.7}}};return(0,i.jsx)("div",{className:"w-full py-16 md:py-24 lg:py-32 px-4 md:px-6 lg:px-8",children:(0,i.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,i.jsxs)(d.P.div,{className:"text-center mb-12 md:mb-16",initial:"hidden",
1whileInView:"visible",viewport:{once:!0,margin:"-100px"},variants:{hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.6}}},children:[(0,i.jsxs)("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-title-primary",children:[t,r&&(0,i.jsxs)("span",{className:"text-brand-primary",children:[" ",r]})]}),c&&(0,i.jsx)("p",{className:"text-base md:text-lg text-text-secondary mt-4 max-w-3xl mx-auto",children:c})]}),(0,i.jsx)(d.P.div,{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-5xl mx-auto",initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-50px"},variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.15,delayChildren:.2}}},children:u.map((e,t)=>(0,i.jsxs)(d.P.div,{className:"relative",variants:A,whileHover:{y:-8,transition:{duration:.3}},children:[e.badgeText&&e.isHighlighted&&(0,i.jsx)(d.P.div,{className:"absolute top-0 right-0 z-10",initial:{opacity:0,scale:0,rotate:-10},whileInView:{opacity:1,scale:1,rotate:0},transition:{delay:.5,duration:.5,type:"spring",stiffness:200},viewport:{once:!0},children:(0,i.jsx)("div",{className:"bg-linear-to-r from-brand-secondary to-brand-third text-white px-6 py-1.5 rounded-bl-2xl rounded-tr-2xl text-sm font-medium uppercase tracking-wide shadow-lg",children:e.badgeText})}),(0,i.jsx)("div",{className:"rounded-2xl transition-all duration-300 h-full ".concat(e.isHighlighted?"bg-linear-to-r from-brand-secondary to-brand-third p-0.5 shadow-xl":"bg-gray-3 shadow-md p-8 md:p-10"),children:(0,i.jsxs)("div",{className:"".concat(e.isHighlighted?"bg-white rounded-2xl p-8 md:p-10 h-full":"h-full"," flex flex-col"),children:[(0,i.jsx)("div",{className:"text-sm md:text-base font-semibold mb-3 uppercase tracking-wide ".concat(e.isHighlighted?"text-brand-primary":"text-text-secondary"),children:e.title||e.label}),(0,i.jsx)("div",{className:"text-4xl md:text-5xl lg:text-8xl font-bold mb-6 ".concat(e.isHighlighted?"text-text-primary":"text-text-secondary"),children:e.price}),e.features&&e.features.length>0&&(0,i.jsx)("div",{className:"space-y-4 mb-6 grow",children:e.features.map((t,r)=>(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[t.isPositive?(0,i.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500 flex items-center justify-center shrink-0",children:(0,i.jsx)(l.A,{className:"w-2.5 h-2.5 text-white",strokeWidth:2.5})}):(0,i.jsx)("div",{className:"w-3 h-3 rounded-full bg-red-500 flex items-center justify-center shrink-0",children:(0,i.jsx)(o.A,{className:"w-2.5 h-2.5 text-white",strokeWidth:2.5})}),(0,i.jsx)("span",{className:"text-base flex-1 ".concat(e.isHighlighted?"text-text-primary":"text-text-secondary"),children:t.text})]},r))}),e.buttonText&&e.buttonHref&&(0,i.jsx)("div",{className:"mt-auto",children:(0,i.jsx)(s.N_,{href:e.buttonHref,children:(0,i.jsx)(n.$,{fullWidth:!0,radius:"xl",size:"lg",onClick:x,className:"text-white! font-semibold! h-14! ".concat(e.isHighlighted?"border-0! bg-linear-to-r! from-brand-secondary! to-brand-third! hover:from-[#3D32E6]! hover:to-[#E01D84]!":"bg-brand-primary! hover:bg-brand-primary-hover!"),children:e.buttonText})})})]})})]},t))})]})})}},33927:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(95155),s=r(67920),a=r(37567);let n=e=>{let{label:t,value:r,onChange:n,hasCube:l=!1,options:o,columns:d=3,labelSize:c="sm",isFirst:u=!1}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsx)(a.A,{classNames:{label:"".concat("xs"===c?"text-xs":""," ").concat(u?"":"mt-1")},children:t}),(0,i.jsx)(s.t,{classNames:{list:"!grid ".concat({2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"}[d]||"grid-cols-3"," gap-3"),tabLabel:"flex items-center justify-center gap-1.5",tab:"h-9 leading-[14px] test-sm text-text-primary !border !border-[#E6E6E6] data-[active]:!border-[#2F3640] bg-white data-[active]:!bg-transparent transition-colors! duration-300! px-2! py-1!"},onChange:e=>n(e),variant:"pills",radius:"sm",value:r,children:(0,i.jsx)(s.t.List,{children:o.map(e=>(0,i.jsxs)(s.t.Tab,{value:e.value.toString(),children:[l&&(0,i.jsx)("div",{style:{aspectRatio:Number(e.value.split(":")[0])/Number(e.value.split(":")[1])},className:"".concat(Number(e.value.split(":")[0])>Number(e.value.split(":")[1])?"h-3":Number(e.value.split(":")[0])===Number(e.value.split(":")[1])?"w-4 h-4":"w-3"," rounded-xs bg-[#526D87]/16")}),(0,i.jsx)("span",{className:"text-sm text-text-primary",children:e.label})]},e.value))})})]})})}},34411:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo5.4db90582.webp",height:72,width:156,blurDataURL:"data:image/webp;base64,UklGRmAAAABXRUJQVlA4WAoAAAAQAAAABwAAAwAAQUxQSCEAAAAA2WuhFzWfXSXNZ7mZ4WGXUY5lh3TYP8cAJTRadpqWTAAAVlA4IBgAAAAwAQCdASoIAAQAAkA4JaQAA3AA/tnYAAA=",blurWidth:8,blurHeight:4}},35658:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(95155);r(12115);var s=r(3863),a=r(18955),n=r(19210),l=r(27882);let o={src:"/_next/static/media/discountBg.3638658e.webp"},d=e=>{let{leftSection:t,buttonProps:r,loading:d,buttonClick:c,showDiscountBanner:u=!1,disabled:m=!1,showCredit:h=!0}=e,x=(0,a.c)("Pages.Creation.GenerateButton"),A=!!r.discountPercent,p=r.originalPrice&&r.discountPercent;return(0,i.jsxs)("div",{className:"w-full relative",children:[u&&A&&(0,i.jsx)("div",{className:"w-full rounded-md py-2 px-4 mb-2",style:{background:"url(".concat(o.src,")"),backgroundSize:"cover",backgroundPosition:"top"},children:(0,i.jsx)("p",{className:"text-center text-sm font-medium text-brand-primary",children:x("discountApplied",{percent:r.discountPercent||0})})}),(0,i.jsxs)(s.$,{fullWidth:!0,loading:d,onClick:c,radius:"sm",size:"md",color:"black",className:"relative",disabled:m,classNames:{root:"h-9! !px-0 !border-none ".concat(m?"!bg
1-gray-2 !text-text-third":"!bg-brand-primary hover:!bg-brand-primary-hover"),label:"w-full justify-between"},children:[r.isPro&&(0,i.jsx)("div",{className:"absolute -top-px -right-px",children:(0,i.jsx)("div",{className:"flex justify-center items-center w-7 h-3 rounded-tr-md rounded-bl-md rounded-tl-none rounded-br-none ".concat(m?"bg-gray-4":"bg-brand-secondary"),children:(0,i.jsx)(l.A,{size:10,color:"white"})})}),(0,i.jsxs)("div",{className:"flex items-center w-full",children:[t,(0,i.jsxs)("div",{className:"text-sm font-medium flex-1 flex items-center gap-2 justify-center ".concat(m?"text-text-third":""),children:[x("generate"),r.generateBtnStar>0&&h&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"text-xl font-medium flex items-center gap-1 ".concat(m?"text-text-third":""),children:[r.generateBtnStar,(0,i.jsx)(n.A,{size:14,color:m?"#999":"white"})]}),p&&(0,i.jsx)("span",{className:"text-xs ".concat(m?"text-text-third":"text-white/70"," line-through"),children:r.originalPrice})]})]})]})]})]})}},36860:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/step1.f30b2be2.webp",height:512,width:832,blurDataURL:"data:image/webp;base64,UklGRkIAAABXRUJQVlA4IDYAAACwAQCdASoIAAUAAkA4JQBOgB6SuDaAAP78Hae5Nyu2eVvi8rxA+kZiNelDhJsVvoRyyd8AAAA=",blurWidth:8,blurHeight:5}},37032:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo15.034e3604.webp",height:224,width:512,blurDataURL:"data:image/webp;base64,UklGRnAAAABXRUJQVlA4WAoAAAAQAAAABwAAAwAAQUxQSCEAAAAATUIMAAAAAABoPWdGOVE1AG89ZjhgYRIAAAAAACAtAAAAVlA4ICgAAADQAQCdASoIAAQAAkA4JaQAAu19mQs0AAD+95wmETrsYY1e9s57AAAA",blurWidth:8,blurHeight:4}},38574:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo2.5784b146.webp",height:72,width:380,blurDataURL:"data:image/webp;base64,UklGRlYAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAAFCAkHSUgGSYUFRsnHhglJgBWUDggHgAAAFABAJ0BKggAAgACQDglpAAEdAAA/tICCSCeTqgAAA==",blurWidth:8,blurHeight:2}},39117:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var i=r(95155),s=r(70003),a=r(43605),n=r(3863),l=r(68595);r(12115);var o=r(29475),d=r(70273);let c=e=>{let{title:t,customTitle:r,customTitleCls:c,subtitle:u,cases:m,className:h="",column:x=2}=e,A=(e,t)=>{(0,a.DN)(e,{action:t})};return(0,i.jsx)("div",{className:"py-20 px-4 sm:px-6 lg:px-8 ".concat(h),children:(0,i.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,i.jsxs)("div",{className:"text-center mb-16",children:[t&&(0,i.jsx)(d.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,ease:"easeOut"},children:(0,i.jsx)(o.A,{isH2:!0,title:t+" ",customTitle:r,customTitleCls:c,titleCls:"text-4xl md:text-5xl font-bold text-title-primary mb-4"})}),u&&(0,i.jsx)(d.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.2,ease:"easeOut"},children:(0,i.jsx)(o.A,{title:u,titleCls:"text-xl text-text-secondary max-w-3xl mx-auto"})})]}),(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-".concat(x," gap-8"),children:m.map((e,t)=>(0,i.jsx)(d.P.div,{className:"relative overflow-hidden rounded-2xl p-6 transition-shadow duration-300 shadow-lg hover:shadow-xl border ".concat(e.rootCls||"bg-white"," ").concat(e.borderColor||"border-gray-200"),initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.2*t,ease:"easeOut"},children:(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("div",{className:"w-10 h-10 rounded-2xl flex items-center justify-center mb-4",children:e.icon}),(0,i.jsx)(o.A,{titleCls:"text-[28px] font-bold text-title-primary mb-4",title:e.title,isH3:!0}),(0,i.jsx)(o.A,{title:e.description,titleCls:"text-text-secondary max-w-4xl text-xl font-medium ".concat(e.list&&e.list.length>0?"mb-4":"")}),e.list&&e.list.length>0&&(0,i.jsx)("ul",{className:"space-y-3 relative mb-6",children:e.list.map((e,t)=>(0,i.jsxs)("li",{className:"flex items-start text-base text-text-secondary",children:[(0,i.jsx)("div",{className:"w-1.5 h-1.5 mt-2 mr-3 rounded-full bg-text-secondary shrink-0"}),(0,i.jsx)("span",{children:e})]},t))}),e.buttonText&&(0,i.jsx)(s.N_,{href:e.href||"",onClick:()=>A(e.pushKey||"",e.pushAction||""),children:(0,i.jsx)(n.$,{radius:"xl",size:"md",className:"group bg-brand-primary! hover:bg-brand-primary-hover! text-white! font-medium! transition-colors duration-200",rightSection:(0,i.jsx)(l.A,{size:18,className:"opacity-0 w-0 group-hover:opacity-100 group-hover:w-4 transition-all duration-300 ease-in-out"}),styles:{root:{width:"fit-content"}},children:e.buttonText})})]})},t))})]})})}},39858:(e,t,r)=>{"use strict";r.d(t,{A:()=>i.A});var i=r(35658)},39943:(e,t,r)=>{"use strict";r.d(t,{default:()=>A,f:()=>x});var i=r(95155),s=r(1232),a=r(12115),n=r(63630);let l={SMOOTH_TAU:.25,MIN_COPIES:2,COPY_HEADROOM:2},o=e=>"number"==typeof e?"".concat(e,"px"):null!=e?e:void 0,d=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")},c=(e,t,r)=>{(0,a.useEffect)(()=>
1{if(!window.ResizeObserver){let t=()=>e();return window.addEventListener("resize",t),e(),()=>window.removeEventListener("resize",t)}let r=t.map(t=>{if(!t.current)return null;let r=new ResizeObserver(e);return r.observe(t.current),r});return e(),()=>{r.forEach(e=>null==e?void 0:e.disconnect())}},r)},u=(e,t,r)=>{(0,a.useEffect)(()=>{var r,i;let s=null!=(i=null==(r=e.current)?void 0:r.querySelectorAll("img"))?i:[];if(0===s.length)return void t();let a=s.length,n=()=>{0==(a-=1)&&t()};return s.forEach(e=>{e.complete?n():(e.addEventListener("load",n,{once:!0}),e.addEventListener("error",n,{once:!0}))}),()=>{s.forEach(e=>{e.removeEventListener("load",n),e.removeEventListener("error",n)})}},r)},m=e=>{let{item:t,scaleOnHover:r,borderRadius:l,hasAudio:o}=e,c=(0,a.useRef)(null),[u,m]=(0,a.useState)(!0),[h,,x,A]=(0,n.A)((0,i.jsx)("video",{className:d("h-[var(--logoloop-logoHeight)] w-auto block object-contain","[-webkit-user-drag:none] pointer-events-auto","motion-reduce:transition-none",r&&"transition-transform duration-300 ease-[cubic-bezier(0.4,0,0.2,1)] group-hover/item:scale-120"),poster:t.poster,width:t.width,height:t.height,title:t.title,muted:!0,loop:!0,playsInline:!0,draggable:!1}));(0,a.useEffect)(()=>{let e=new IntersectionObserver(r=>{r[0].isIntersecting&&A.current&&t.video&&(A.current.src=t.video,A.current.play().catch(()=>{}),c.current&&e.unobserve(c.current))},{threshold:0});return c.current&&e.observe(c.current),()=>{c.current&&e.unobserve(c.current)}},[t.video]);let p=(0,a.useCallback)(()=>{if(A.current){let e=!A.current.muted;A.current.muted=e,m(e)}},[]);return(0,i.jsxs)("div",{ref:c,style:l?{borderRadius:"number"==typeof l?"".concat(l,"px"):l}:{},className:"relative overflow-hidden",children:[h,o&&(0,i.jsx)("button",{type:"button",onClick:p,className:"absolute bottom-2 right-2 z-10 flex items-center justify-center w-10 h-10 bg-black/20 hover:bg-black/40 backdrop-blur-2xl rounded-full transition-colors text-white cursor-pointer","aria-label":u?"Unmute":"Mute",children:u?(0,i.jsx)(s.A,{name:"icon-muted",size:20}):(0,i.jsx)(s.A,{name:"icon-unmuted",size:20})})]})},h=(e,t,r,i,s)=>{let n=(0,a.useRef)(null),o=(0,a.useRef)(null),d=(0,a.useRef)(0),c=(0,a.useRef)(0);(0,a.useEffect)(()=>{let a=e.current;if(!a)return;let u=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(r>0&&(d.current=(d.current%r+r)%r,a.style.transform="translate3d(".concat(-d.current,"px, 0, 0)")),u)return a.style.transform="translate3d(0, 0, 0)",()=>{o.current=null};let m=e=>{null===o.current&&(o.current=e);let u=Math.max(0,e-o.current)/1e3;o.current=e;let h=s&&i?0:t,x=1-Math.exp(-u/l.SMOOTH_TAU);if(c.current+=(h-c.current)*x,r>0){let e=d.current+c.current*u;d.current=e=(e%r+r)%r;let t=-d.current;a.style.transform="translate3d(".concat(t,"px, 0, 0)")}n.current=requestAnimationFrame(m)};return n.current=requestAnimationFrame(m),()=>{null!==n.current&&(cancelAnimationFrame(n.current),n.current=null),o.current=null}},[t,r,i,s])},x=a.memo(e=>{let{logos:t,speed:r=120,direction:s="left",width:n="100%",logoHeight:x=28,gap:A=32,pauseOnHover:p=!0,fadeOut:b=!1,fadeOutColor:g,scaleOnHover:v=!1,ariaLabel:f="Partner logos",className:w,style:y,borderRadius:j,hasAudio:P=!1}=e,N=(0,a.useRef)(null),k=(0,a.useRef)(null),C=(0,a.useRef)(null),[S,R]=(0,a.useState)(0),[E,D]=(0,a.useState)(l.MIN_COPIES),[Q,I]=(0,a.useState)(!1),B=(0,a.useMemo)(()=>Math.abs(r)*("left"===s?1:-1)*(r<0?-1:1),[r,s]),_=(0,a.useCallback)(()=>{var e,t,r,i,s,a;let n=null!=(s=null==(e=N.current)?void 0:e.clientWidth)?s:0,o=null!=(a=null==(i=C.current)||null==(r=i.getBoundingClientRect)||null==(t=r.call(i))?void 0:t.width)?a:0;if(o>0){R(Math.ceil(o));let e=Math.ceil(n/o)+l.COPY_HEADROOM;D(Math.max(l.MIN_COPIES,e))}},[]);c(_,[N,C],[t,A,x]),u(C,_,[t,A,x]),h(k,B,S,Q,p);let U=(0,a.useMemo)(()=>({"--logoloop-gap":"".concat(A,"px"),"--logoloop-logoHeight":"".concat(x,"px"),...g&&{"--logoloop-fadeColor":g}}),[A,x,g]),W=(0,a.useMemo)(()=>d("relative overflow-x-hidden group","[--logoloop-gap:32px]","[--logoloop-logoHeight:28px]","[--logoloop-fadeColorAuto:#ffffff]","dark:[--logoloop-fadeColorAuto:#0b0b0b]",v&&"py-[calc(var(--logoloop-logoHeight)*0.1)]",w),[v,w]),z=(0,a.useCallback)(()=>{p&&I(!0)},[p]),F=(0,a.useCallback)(()=>{p&&I(!1)},[p]),M=(0,a.useCallback)((e,t)=>{var r,s,a;let n="node"in e,l="video"in e,o=n?(0,i.jsx)("span",{className:d("inline-flex items-center","motion-reduce:transition-none",v&&"transition-transform duration-300 ease-[
1cubic-bezier(0.4,0,0.2,1)] group-hover/item:scale-120"),"aria-hidden":!!e.href&&!e.ariaLabel,children:e.node}):l?(0,i.jsx)(m,{item:e,scaleOnHover:v,borderRadius:j,hasAudio:P}):(0,i.jsx)("img",{className:d("h-[var(--logoloop-logoHeight)] w-auto block object-contain","[-webkit-user-drag:none] pointer-events-none","[image-rendering:-webkit-optimize-contrast]","motion-reduce:transition-none",v&&"transition-transform duration-300 ease-[cubic-bezier(0.4,0,0.2,1)] group-hover/item:scale-120"),src:e.src,srcSet:e.srcSet,sizes:e.sizes,width:e.width,height:e.height,alt:null!=(r=e.alt)?r:"",title:e.title,loading:"lazy",decoding:"async",draggable:!1}),c=n?null!=(s=e.ariaLabel)?s:e.title:null!=(a=e.alt)?a:e.title,u=e.href?(0,i.jsx)("a",{className:d("inline-flex items-center no-underline rounded","transition-opacity duration-200 ease-linear","hover:opacity-80","focus-visible:outline focus-visible:outline-current focus-visible:outline-offset-2"),href:e.href,"aria-label":c||"logo link",target:"_blank",rel:"noreferrer noopener",children:o}):o;return(0,i.jsx)("li",{className:d("flex-none mr-[var(--logoloop-gap)] text-[length:var(--logoloop-logoHeight)] leading-[1]",v&&"overflow-visible group/item"),role:"listitem",children:u},t)},[v,j,P]),O=(0,a.useMemo)(()=>Array.from({length:E},(e,r)=>(0,i.jsx)("ul",{className:"flex items-center",role:"list","aria-hidden":r>0,ref:0===r?C:void 0,children:t.map((e,t)=>M(e,"".concat(r,"-").concat(t)))},"copy-".concat(r))),[E,t,M]),H=(0,a.useMemo)(()=>{var e;return{width:null!=(e=o(n))?e:"100%",...U,...y}},[n,U,y]);return(0,i.jsxs)("div",{ref:N,className:W,style:H,role:"region","aria-label":f,onMouseEnter:z,onMouseLeave:F,children:[b&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{"aria-hidden":!0,className:d("pointer-events-none absolute inset-y-0 left-0 z-1","w-[clamp(24px,8%,120px)]","bg-[linear-gradient(to_right,var(--logoloop-fadeColor,var(--logoloop-fadeColorAuto))_0%,rgba(0,0,0,0)_100%)]")}),(0,i.jsx)("div",{"aria-hidden":!0,className:d("pointer-events-none absolute inset-y-0 right-0 z-1","w-[clamp(24px,8%,120px)]","bg-[linear-gradient(to_left,var(--logoloop-fadeColor,var(--logoloop-fadeColorAuto))_0%,rgba(0,0,0,0)_100%)]")})]}),(0,i.jsx)("div",{className:d("flex w-max will-change-transform select-none","motion-reduce:transform-none"),ref:k,children:O})]})});x.displayName="AnyLoop";let A=x},44857:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo12.f1a4aef2.webp",height:72,width:248,blurDataURL:"data:image/webp;base64,UklGRlAAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAAUS1POjdoZzdbWFpEd2xcWQBWUDggGAAAAFABAJ0BKggAAgACQDglpAAEdAAA/tA4AA==",blurWidth:8,blurHeight:2}},47522:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(30313).A)("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]])},50351:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var i=r(95155);r(12115);var s=r(29475),a=r(39943),n=r(70273);let l=e=>{let{brandsTitle:t="",brands:r=[]}=e;return(0,i.jsx)("div",{className:"pt-10 md:py-20 w-full",children:(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,i.jsx)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,ease:"easeOut"},children:(0,i.jsx)(s.A,{isH3:!0,title:t,titleCls:"text-[32px] text-black mb-8 font-medium"})})}),(0,i.jsx)(n.P.div,{className:"py-10",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.8,delay:.2,ease:"easeOut"},children:(0,i.jsx)(a.default,{logos:r.map(e=>({src:e.logoUrl,alt:e.name})),speed:100,logoHeight:40,gap:48,pauseOnHover:!0})})]})})}},54081:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/step2.a4346bdf.webp",height:512,width:832,blurDataURL:"data:image/webp;base64,UklGRlQAAABXRUJQVlA4IEgAAADQAQCdASoIAAUAAkA4JZgCdAD5guJrQAD++DX5ND2hMHPqbgOI1F5vMk5sy5pHwmCtnmwZfW4dhzmQ/pu4ZRSuxSLVW7awAAA=",blurWidth:8,blurHeight:5}},57934:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});var i=r(12115),s=r(55466);let a=e=>{let t=(0,s.A)(e=>e.updatePostData);(0,i.useEffect)(()=>
1{Object.entries(e).forEach(e=>{let[r,i]=e;t(r,i)})},[])}},65323:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var i=r(95155),s=r(29185),a=r(63090),n=r(88194),l=r(61456),o=r(12115),d=r(18720),c=r(18955),u=r(86318),m=r(39191),h=r(30438),x=r(55466);let A=e=>{let{content:t,domain:r,imageWidth:A=250,imageHeight:p=250,postDataImageKey:b}=e,g=(0,c.c)("Pages.Creation.UploadImageFile"),v=(0,s.A)(e=>e.openLoginModal),f=(0,o.useRef)(null),w=(0,o.useRef)(null),[y,j]=(0,o.useState)(!1),[P,N]=(0,o.useState)(!1),[k,C]=(0,o.useState)(!1),S=(0,x.A)(e=>e.updatePostData),R=(0,x.A)(e=>e.PostData)[b]||"",E=t||g("uploadImage"),D=async e=>{var t;if(!k)return;let r=null==(t=e.clipboardData)?void 0:t.items;if(r)for(let t=0;t<r.length;t++){let i=r[t];if(i.type.startsWith("image/")){if(e.preventDefault(),!s.A.getState().userInfo)return v();let t=i.getAsFile();t&&I(t);break}}};(0,o.useEffect)(()=>(document.addEventListener("paste",D),()=>{document.removeEventListener("paste",D)}),[k]);let Q=async e=>{try{if(e.target.files){j(!0);let t=e.target.files[0];if(!t)return;let r=new FormData;r.append("file",t);let i=await u.A.upload(r);
10===i.code&&i.data?B(i.data.path):d.o.warning(i.info)}}catch(e){d.o.warning(String(e))}finally{j(!1),f.current&&(f.current.value="")}},I=async e=>{try{j(!0);let t=new FormData;t.append("file",e);let r=await u.A.upload(t);0===r.code&&r.data?B(r.data.path):d.o.warning(r.info)}catch(e){d.o.warning(String(e))}finally{j(!1)}},B=e=>{e?S(b,e):S(b,"")};return(0,i.jsxs)("div",{ref:w,onClick:()=>{if(!s.A.getState().userInfo)return v();f.current&&f.current.click()},onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),N(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation();let t=e.currentTarget.getBoundingClientRect(),r=e.clientX,i=e.clientY;(r<t.left||r>t.right||i<t.top||i>t.bottom)&&N(!1)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),N(!1),!s.A.getState().userInfo)return v();let t=e.dataTransfer.files;if(t&&t.length>0){let e=t[0];e.type.startsWith("image/")?I(e):d.o.warning(g("invalidFileType"))}},className:"w-full h-full relative overflow-hidden flex flex-col items-center justify-center border border-dashed rounded-lg bg-[#F8F9FB] hover:border-[#2F3640] text-text-third cursor-pointer group transition-colors ".concat(P?"border-[#2F3640] bg-[#E8F0FE]":"border-[#E6E6E6]"),children:[(0,i.jsx)("input",{className:"w-0 h-0 overflow-hidden",disabled:y,ref:f,type:"file",onChange:Q,accept:"image/png,image/jpeg,image/webp,image/jpg"}),!R.length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.A,{className:"group-hover:text-black ".concat(P?"text-black":"")}),(0,i.jsx)("p",{className:"text-sm text-text-secondary",children:E}),(0,i.jsx)("p",{className:"text-xs",children:g("clickOrDrag")})]}),!!R.length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"max-h-full aspect-auto",children:(0,i.jsx)(m.A,{width:A,height:p,src:r+R,alt:"Upload File",completedShowBackground:!1,isLazy:!1,className:"object-contain! object-center!"})}),(0,i.jsxs)("div",{className:"absolute top-2 right-2 flex items-center gap-1 text-white",children:[(0,i.jsx)("div",{className:"w-5 h-5 flex justify-center items-center rounded cursor-pointer border border-white/40 bg-black/60",children:(0,i.jsx)(h.A,{className:"w-3 h-3"})}),(0,i.jsx)("div",{className:"w-5 h-5 flex justify-center items-center rounded cursor-pointer border border-white/40 bg-black/60",onClick:e=>{e.stopPropagation(),B("")},children:(0,i.jsx)(l.A,{className:"w-3 h-3"})})]})]}),y&&(0,i.jsxs)("div",{className:"absolute top-0 right-0 bottom-0 left-0 bg-black/70 rounded-lg flex flex-col items-center justify-center gap-2",children:[(0,i.jsx)(a.a,{color:"#ffffff",size:"sm"}),(0,i.jsx)("p",{className:"text-sm text-white",children:g("uploading")})]})]})}},67892:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/avatar2.9a834d5b.webp",height:112,width:112,blurDataURL:"data:image/webp;base64,UklGRqIAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDgAAAABN6AmABKGXDQkMNfQGhEReId6sIokq7EgkoEh/WcFCEgKwMFdRP9j9mcGnACfhWQhRbgDzmy/AVZQOCBEAAAAMAIAnQEqCAAIAAJAOCWgAsO2Kl5MNzWAFgAA/hn25Uphk5lqG3W+vDXtPZTxGyxH021XpWKn6wcz48w519NrIDuWTAA=",blurWidth:8,blurHeight:8}},71438:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var i=r(95155);r(12115);var s=r(29475),a=r(47522);let n=(e,t)=>{let r=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),s=parseInt(e.slice(5,7),16);return"rgba(".concat(r,", ").concat(i,", ").concat(s,", ").concat(t,")")};var l=r(1232),o=r(70273);let d=e=>{let{title:t,subtitle:r,engines:d}=e,c={hidden:{opacity:0,y:40,scale:.95},visible:{opacity:1,y:0,scale:1,transition:{duration:.7}}};return(0,i.jsx)("div",{className:"w-full py-16 md:py-24 lg:py-32 px-4 md:px-6 lg:px-8",children:(0,i.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,i.jsxs)(o.P.div,{className:"text-center mb-12 md:mb-16",initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-100px"},variants:{hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.6}}},children:[(0,i.jsx)(s.A,{isH2:!0,title:t,titleCls:"text-4xl md:text-5xl font-bold text-title-primary mb-6"}),r&&(0,i.jsx)(s.A,{title:r,titleCls:"text-xl md:text-2xl text-text-secondary max-w-4xl mx-auto font-medium"})]}),(0,i.jsx)(o.P.div,{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 md:gap-8",initial:"hidden",
1whileInView:"visible",viewport:{once:!0,margin:"-50px"},variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.1}}},children:d.map(e=>(0,i.jsxs)(o.P.div,{className:"rounded-3xl p-6 md:p-8 hover:shadow-xl transition-all duration-300 border",style:{backgroundColor:n(e.labelColor,.04),borderColor:n(e.labelColor,.06)},variants:c,whileHover:{scale:1.02,transition:{duration:.3}},children:[(0,i.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,i.jsx)(l.A,{name:"icon-ai-star",size:32,style:{color:e.labelColor}}),(0,i.jsx)("span",{className:"text-2xl font-bold",style:{color:e.labelColor},children:e.label})]}),(0,i.jsx)("h3",{className:"text-3xl md:text-[32px] font-semibold text-title-primary mb-3",children:e.title}),(0,i.jsx)("p",{className:"text-text-secondary text-base mb-5",children:e.description}),(0,i.jsx)("div",{className:"space-y-2.5 mb-5",children:e.features.map((e,t)=>(0,i.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,i.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#2AC670] flex items-center justify-center shrink-0 mt-0.5",children:(0,i.jsx)(a.A,{className:"w-2.5 h-2.5 text-white",strokeWidth:3})}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsx)("p",{className:"text-text-secondary font-medium mb-0",children:e.text}),(0,i.jsx)("p",{className:"text-text-secondary",children:e.description})]})]},t))}),(0,i.jsx)("div",{className:"pt-4",children:(0,i.jsxs)("p",{className:"text-text-secondary",children:[(0,i.jsx)("span",{children:"Strategic Value: "}),e.strategicValue]})})]},e.id))})]})})}},73401:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/avatar1.116f95b5.webp",height:112,width:112,blurDataURL:"data:image/webp;base64,UklGRr4AAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDgAAAABN6AmABKGXDQkMNfQGhEReId6sIokq7EgkoEh/WcFCEgKwMFdRP9j9mcGnACfhWQhRbgDzmy/AVZQOCBgAAAAEAIAnQEqCAAIAAJAOCWwAnQGKl9sKHKTNAD+8LLQY3ZomQw/4VUgVffEhg6/l1WBIfq8Rqd07szA8f0SC+PiWkP6BjesTBUK2icOw9zb15SJUr7d2sanDIeyOf0IQAAA",blurWidth:8,blurHeight:8}},73588:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(30313).A)("outline","dots","Dots",[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]])},74506:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo13.053d2ab5.webp",height:72,width:534,blurDataURL:"data:image/webp;base64,UklGRkgAAABXRUJQVlA4WAoAAAAQAAAABwAAAAAAQUxQSAkAAAAAUkNBZFBEJC8AVlA4IBgAAAAwAQCdASoIAAEAAkA4JaQAA3AA/tnYAAA=",blurWidth:8,blurHeight:1}},77298:(e,t,r)=>{"use strict";r.d(t,{g:()=>A});var i=r(95155),s=r(12115),a=r(11286),n=r(80533),l=r(23653),o=r(47331),d=r(4354),c=r(91853),u=r(63427),m=r(70079),h={root:"m_96b553a6"};let x=(0,n.V)((e,t)=>{let{transitionDuration:r}=t;return{root:{"--transition-duration":"number"==typeof r?"".concat(r,"ms"):r}}}),A=(0,c.P9)((e,t)=>{let r=(0,l.Y)("FloatingIndicator",null,e),{classNames:n,className:c,style:A,styles:p,unstyled:b,vars:g,target:v,parent:f,transitionDuration:w,mod:y,displayAfterTransitionEnd:j,attributes:P,...N}=r,k=(0,o.I)({name:"FloatingIndicator",classes:h,props:r,className:c,style:A,classNames:n,styles:p,unstyled:b,attributes:P,vars:g,varsResolver:x}),C=(0,s.useRef)(null),{initialized:S,hidden:R}=function(e){let{target:t,parent:r,ref:i,displayAfterTransitionEnd:a}
1=e,n=(0,s.useRef)(-1),[l,o]=(0,s.useState)(!1),[d,c]=(0,s.useState)("boolean"==typeof a&&a),h=()=>{if(!t||!r||!i.current)return;let e=t.getBoundingClientRect(),s=r.getBoundingClientRect(),a=window.getComputedStyle(t),n=window.getComputedStyle(r),l=(0,m.R)(a.borderTopWidth)+(0,m.R)(n.borderTopWidth),o=(0,m.R)(a.borderLeftWidth)+(0,m.R)(n.borderLeftWidth),d={top:e.top-s.top-l,left:e.left-s.left-o,width:e.width,height:e.height};i.current.style.transform="translateY(".concat(d.top,"px) translateX(").concat(d.left,"px)"),i.current.style.width="".concat(d.width,"px"),i.current.style.height="".concat(d.height,"px")},x=()=>{window.clearTimeout(n.current),i.current&&(i.current.style.transitionDuration="0ms"),h(),n.current=window.setTimeout(()=>{i.current&&(i.current.style.transitionDuration="")},30)},A=(0,s.useRef)(null),p=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(h(),t)return A.current=new ResizeObserver(x),A.current.observe(t),r&&(p.current=new ResizeObserver(x),p.current.observe(r)),()=>{var e,t;null==(e=A.current)||e.disconnect(),null==(t=p.current)||t.disconnect()}},[r,t]),(0,s.useEffect)(()=>{if(r){let e=e=>{(function(e,t){if(!t||!e)return!1;let r=t.parentNode;for(;null!=r;){if(r===e)return!0;r=r.parentNode}return!1})(e.target,r)&&(x(),c(!1))};return r.addEventListener("transitionend",e),()=>{r.removeEventListener("transitionend",e)}}},[r]),!function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{autoInvoke:!1},i=(0,s.useRef)(null),a=(0,s.useCallback)(function(){for(var r=arguments.length,s=Array(r),a=0;a<r;a++)s[a]=arguments[a];i.current||(i.current=window.setTimeout(()=>{e(s),i.current=null},t))},[t]),n=(0,s.useCallback)(()=>{i.current&&(window.clearTimeout(i.current),i.current=null)},[]);(0,s.useEffect)(()=>(r.autoInvoke&&a(),n),[n,a])}(()=>{"test"!==(0,u._)()&&o(!0)},20,{autoInvoke:!0}),!function(e,t,r){let i=(0,s.useRef)(null),a=(0,s.useRef)(null);(0,s.useEffect)(()=>{let s="function"==typeof r?r():r;return(s||a.current)&&(i.current=new MutationObserver(e),i.current.observe(s||a.current,t)),()=>{var e;null==(e=i.current)||e.disconnect()}},[e,t])}(e=>{e.forEach(e=>{"attributes"===e.type&&"dir"===e.attributeName&&x()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:l,hidden:d}}({target:v,parent:f,ref:C,displayAfterTransitionEnd:j}),E=(0,a.pc)(t,C);return v&&f?(0,i.jsx)(d.a,{ref:E,mod:[{initialized:S,hidden:R},y],...k("root"),...N}):null});A.displayName="@mantine/core/FloatingIndicator",A.classes=h},77467:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/avatar3.d8d26ba8.webp",height:112,width:112,blurDataURL:"data:image/webp;base64,UklGRsQAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDgAAAABN6AmABKGXDQkMNfQGhEReId6sIokq7EgkoEh/WcFCEgKwMFdRP9j9mcGnACfhWQhRbgDzmy/AVZQOCBmAAAAEAIAnQEqCAAIAAJAOCWwAnQBHoJuxZ6qAAD5aC4A7Gr19hR+/8G5pFVkE0lxePDk+GVJO7f4Koo7z1cdOf/yq5+PN+/IZVUf/5S89/g5JLXLdf/gnFMud8ss/yyZtTrIWFx4AAAA",blurWidth:8,blurHeight:8}},77681:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var i=r(95155),s=r(39191),a=r(70003),n=r(43605),l=r(3863),o=r(68595);r(12115);var d=r(70273);let c=e=>{let{title:t,subtitle:r,steps:c,gridCols:u="md:grid-cols-3",buttonParams:m}=e,h=()=>{m&&(0,n.DN)(m.pushKey,{action:m.pushAction})};return(0,i.jsx)("div",{className:"w-full py-20 px-4 md:px-6 lg:px-8",children:(0,i.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,i.jsxs)("div",{className:"text-center mb-12 md:mb-16",children:[(0,i.jsx)(d.P.h2,{className:"text-4xl md:text-5xl font-bold text-title-primary mb-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,ease:"easeOut"},children:t}),r&&(0,i.jsx)(d.P.p,{className:"text-xl text-text-secondary max-w-3xl mx-auto",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.2,ease:"easeOut"},children:r})]}),(0,i.jsx)("div",{className:"grid grid-cols-1 ".concat(u," gap-6 md:gap-8 mb-12"),children:c.map((e,t)=>(0,i.jsxs)(d.P.div,{className:"shadow-lg rounded-2xl overflow-hidden",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*t,ease:"easeOut"},children:[(0,i.jsx)("div",{className:"mb-4 relative",children:(0,i.jsx)(s.A,{src:e.image,alt:e.title,className:"w-full h-auto aspect-832/512",radius:"none"})}),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsx)("div",{className:"font-bold text-text-secondary mb-2 uppercase",children:e.stepLabel}),(0,i.jsx)("h3",{className:"text-2xl font-bold text-title-primary mb-3",children:e.title}),(0,i.jsx)("p",{className:"text-base text-text-secondary leading-relaxed",children:e.description})]})]},t))}),m&&(0,i.jsx)(d.P.div,{className:"text-center mt-8",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.4,ease:"easeOut"},children:m.href.startsWith("#")?(0,i.jsx)("a",{href:m.href,children:(0,i.jsx)(l.$,{radius:"xl",onClick:h,classNames:{root:"!bg-brand-primary hover:!bg-brand-primary-hover group !h-[48px] md:!h-[56px] !pl-8 !pr-6.5",label:"text-lg"},rightSection:(0,i.jsx)(o.A,{size:18,className:"opacity-0 w-0 group-hover:opacity-100 group-hover:w-4 transition-all duration-300 ease-in-out"}),children:m.text})}):(0,i.jsx)(a.N_,{href:m.href,children:(0,i.jsx)(l.$,{radius:"xl",onClick:h,classNames:{root:"!bg-brand-primary hover:!bg-brand-primary-hover group !h-[48px] md:!h-[56px] !pl-8 !pr-6.5",label:"text-lg"},rightSection:(0,i.jsx)(o.A,{size:18,className:"opacity-0 w-0 group-hover:opacity-100 group-hover:w-4 transition-all duration-300 ease-in-out"}),children:m.text})})})]})})}},79471:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo1.86a6ab54.webp",height:72,width:252,blurDataURL:"data:image/webp;base64,UklGRlYAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAAkJEaQiIpUynIzj9XZHJSXwBWUDggHgAAAHABAJ0BKggAAgACQDglpAACD7gAAM4ulNmIAAAAAA==",blurWidth:8,blurHeight:2}},83319:(e,t,r)=>{"use strict";r.d(t,{A:()=>n,x:()=>a});var i=r(12115),s=r(86318);function a(){let e=(0,i.useCallback)((e,t)=>new Promise(r=>{if("image"===t){let t=new Image;t.onload=()=>r(!0),t.onerror=()=>r(!1),t.src=e}else{let t=document.createElement("video");t.preload="metadata",t.crossOrigin="anonymous",t.onloadedmetadata=()=>r(!0),t.onerror=()=>r(!1),t.src=e}}),[]),t=(0,i.useCallback)(async(t,r)=>(await Promise.all(t.map(async t=>{let i=await e(t,r);return i||console.warn("[useMediaUtils] ".concat(r," 龿¥ä¸å¯è®¿é®:"),t),{url:t,isAccessible:i}}))).filter(e=>e.isAccessible).map(e=>e.url),[e]),r=(0,i.useCallback)(async(t,r)=>Promise.all(t.map(async t=>({url:t,isAccessible:await e(t,r)}))),[e]),a=(0,i.useCallback)(e=>new Promise((t,r)=>{let i=document.createElement("video");i.preload="metadata",i.crossOrigin="anonymous",i.onloadedmetadata=()=>{t(i.duration)},i.onerror=()=>{r(Error("Failed to load video metadata"))},i.src=e}),[]),n=(0,i.useCallback)(async e=>{try{return await a(e)}catch(t){console.warn("[useMediaUtils] è·åè§é¢æ¶é¿å¤±è´¥:",e,t);return}},[a]);return{checkUrlAccessible:e,filterAccessibleUrls:t,checkUrlsAccessibility:r,getVideoDuration:a,getVideoDurationSafe:n,transfer:(0,i.useCallback)(async e=>{if(0===e.length)return{urlMap:new Map,domain:"",pathMap:new Map};let t=await s.A.download(e);if(0!==t.code||!t.data)throw console.error("[useMediaUtils] 转å失败:",t.info),Error(t.info||"转å失败");let{domain:r,assets:i}=t.data,a=new Map,n=new Map;
1return i.forEach(e=>{let t="".concat(r).concat(e.filepath);a.set(e.download_url,t),n.set(e.download_url,e.filepath)}),{urlMap:a,domain:r,pathMap:n}},[])}}let n=a},84955:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});let i={src:"/_next/static/media/logo10.2c776233.webp",height:72,width:284,blurDataURL:"data:image/webp;base64,UklGRlAAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAAZ5VrdWaShXiTaWt1ZoBNTQBWUDggGAAAADABAJ0BKggAAgACQDglpAADcAD+2dgAAA==",blurWidth:8,blurHeight:2}},88194:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(30313).A)("outline","photo-plus","PhotoPlus",[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l4 4",key:"svg-2"}],["path",{d:"M14 14l1 -1c.67 -.644 1.45 -.824 2.182 -.54",key:"svg-3"}],["path",{d:"M16 19h6",key:"svg-4"}],["path",{d:"M19 16v6",key:"svg-5"}]])},88629:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var i=r(12115),s=r(93755);class a{static queryTaskById(e){return s.A.get("/task/query",{id:e})}}var n=function(e){return e[e.Waiting=0]="Waiting",e[e.Processing=1]="Processing",e[e.Success=2]="Success",e[e.Failed=3]="Failed",e}({});let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{interval:t=2e3,maxAttempts:r=70,initialDelay:s=0,onSuccess:l,onError:o,onProgress:d}=e,[c,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)(null),[x,A]=(0,i.useState)(0),p=(0,i.useRef)(!1),b=(0,i.useRef)(null),g=(0,i.useCallback)(()=>{p.current=!0,b.current&&(b.current.abort(),b.current=null),u(!1)},[]),v=(0,i.useCallback)(async e=>{p.current=!1,b.current=new AbortController,u(!0),h(null),A(0);try{if(s>0&&(await new Promise(e=>setTimeout(e,s)),p.current)){let e={success:!1,error:"Polling cancelled by user"};return h(e),u(!1),e}for(let i=1;i<=r;i++){if(p.current){let e={success:!1,error:"Polling cancelled by user"};return h(e),u(!1),e}A(i);try{let s=await a.queryTaskById(e);if(s.data){let e=s.data,{status:a,result:c}=e;if(null==d||d(i,r,a),a===n.Success){let t={success:!0,result:c,status:a,taskData:e};return h(t),u(!1),null==l||l(c,e),t}if(a===n.Failed){let t="Task failed",r={success:!1,error:t,status:a,taskData:e};return h(r),u(!1),null==o||o(t,e),r}if((a===n.Processing||a===n.Waiting)&&i<r){await new Promise(e=>setTimeout(e,t));continue}}i<r&&await new Promise(e=>setTimeout(e,t))}catch(e){if(console.error("Poll attempt ".concat(i," error:"),e),i<r){await new Promise(e=>setTimeout(e,t));continue}}}let i={success:!1,error:"Task timeout after ".concat(r," attempts")};return h(i),u(!1),null==o||o(i.error),i}catch(r){let e=r instanceof Error?r.message:"Unknown error",t={success:!1,error:e};return h(t),u(!1),null==o||o(e),t}},[t,r,s,l,o,d]),f=(0,i.useCallback)(()=>{g(),h(null),A(0)},[g]);return{startPolling:v,stopPolling:g,resetPolling:f,isPolling:c,taskResult:m,currentAttempt:x,maxAttempts:r}}},99398:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(95155),s=r(92364),a=r(12115),n=r(15532),l=r(95585);let o=e=>{let{value:t,onChange:r,placeholder:o="",maxLength:d=9999,size:c="xs",rows:u=4,minRows:m=0,presetPrompts:h,presetPromptLabel:x="Popular Descriptions",showPresetPrompts:A=!0,presetTags:p,showCharCount:b=!0,classNames:g={},customSlot:v,autosize:f=!1,readOnly:w=!1}=e,[y,j]=(0,a.useState)(!1),P=(0,a.useRef)(null),N=(0,a.useRef)(null),[k,C]=(0,a.useState)(!1),[S,R]=(0,a.useState)(!1),[E,D]=(0,a.useState)(!1),Q=e=>{r(e)},I=e=>{r(e)},B=(0,a.useCallback)(()=>{let e=N.current;if(!e)return;let{scrollLeft:t,scrollWidth:r,clientWidth:i}=e;C(t>0),R(t+i<r-1)},[]),_=e=>{let t=N.current;t&&t.scrollBy({left:"left"===e?-150:150,behavior:"smooth"})};(0,a.useEffect)(()=>{let e=N.current;if(!e)return;B(),e.addEventListener("scroll",B);let t=new ResizeObserver(B);return t.observe(e),()=>{e.removeEventListener("scroll",B),t.disconnect()}},[B,p]);let U=p&&p.length>0;return(0,i.jsxs)("div",{onClick:()=>{var e;null==(e=P.current)||e.focus()},className:"flex flex-col gap-2 border ".concat(y?"border-brand-primary":"border-gray-4"," hover:border-brand-primary rounded-md overflow-hidden transition-colors duration-300 cursor-text ").concat(g.root||""),children:[(0,i.jsx)(s.T,{ref:P,size:c,minRows:m,className:"w-full",placeholder:o,value:t,onChange:e=>r(e.target.value),rows:u,autosize:f,maxLength:d,readOnly:w,classNames:{input:"!border-none
1!text-xs ".concat(g.input||"")},onFocus:()=>j(!0),onBlur:()=>j(!1)}),(v||A||U||b)&&(0,i.jsxs)("div",{className:"px-2 pb-2 flex items-center justify-between gap-2 ".concat(g.footer||""),children:[v?(0,i.jsx)("div",{className:"flex-1",children:v}):U?(0,i.jsxs)("div",{className:"flex-1 relative flex items-center min-w-0",onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[k&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-8 bg-linear-to-r from-white to-transparent z-10 pointer-events-none"}),E&&(0,i.jsx)("button",{onClick:e=>{e.stopPropagation(),_("left")},className:"absolute left-0 z-20 w-6 h-6 flex items-center justify-center rounded-full border border-gray-4 bg-white hover:border-text-primary transition-colors cursor-pointer",children:(0,i.jsx)(n.A,{size:14})})]}),(0,i.jsx)("div",{ref:N,className:"flex items-center gap-2 overflow-x-auto scrollbar-hide",style:{scrollbarWidth:"none",msOverflowStyle:"none",paddingLeft:k?"28px":"0",paddingRight:S?"28px":"0"},children:p.map((e,t)=>(0,i.jsx)("button",{onClick:t=>{t.stopPropagation(),I(e.value)},className:"px-3 py-1 text-xs! rounded-full border border-gray-4 text-text-primary hover:border-text-primary hover:text-text-primary transition-colors cursor-pointer whitespace-nowrap shrink-0",children:e.label},t))}),S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-8 bg-linear-to-l from-white to-transparent z-10 pointer-events-none"}),E&&(0,i.jsx)("button",{onClick:e=>{e.stopPropagation(),_("right")},className:"absolute right-0 z-20 w-6 h-6 flex items-center justify-center rounded-full border border-gray-4 bg-white hover:border-text-primary transition-colors cursor-pointer",children:(0,i.jsx)(l.A,{size:14})})]})]}):A&&h&&h.length>0&&(0,i.jsxs)("div",{className:"flex items-center gap-2 flex-wrap flex-1",children:[(0,i.jsx)("span",{className:"text-xs text-text-third whitespace-nowrap",children:x}),h.slice(0,2).map((e,t)=>(0,i.jsx)(a.Fragment,{children:(0,i.jsx)("button",{onClick:t=>{t.stopPropagation(),Q(e.content)},className:"text-xs! text-text-third hover:text-text-primary underline cursor-pointer transition-colors",children:e.title})},t))]}),b&&(0,i.jsxs)("span",{className:"text-xs text-text-third whitespace-nowrap ml-auto select-none leading-none shrink-0",children:[(null==t?void 0:t.length)||0," / ",d]})]})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[3376,2545,4463,4707,3090,3863,3494,2866,5419,2681,8720,3526,5936,8285,4721,8825,4662,6859,1113,9255,47,6574,2420,5564,394,3212,2197,6127,6815,8441,7493,7358],()=>t(21044)),_N_E=e.O()}]);
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.