PageSourceSearch

https://www.krikey.ai/_next/static/chunks/7018-8a40f7ebe20d4b93.js

js krikey.ai collected 2026-09-24 21:14:29 UTC 97,766 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7018],{15019:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var a=s(37876),i=s(30455),r=s(85832);function o(e){let{visible:t=!0,zIndex:s=1e3}=e;return t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.h,{blur:10,zIndex:s-1,backgroundOpacity:1}),(0,a.jsx)(r._,{pos:"absolute",top:"50%",left:"50%",w:"auto",h:"auto",maw:"12rem",mah:"80%",fit:"contain",src:"https://cdn.krikey.ai/krikey-ai/img/editor-loading.webp",style:{zIndex:s,transform:"translate(-50%, -50%)"},draggable:!1})]}):null}},16202:e=>{e.exports={"resize-dropdown-menu":"resize-menu_resize-dropdown-menu__PbWfP","resize-dropdown-container":"resize-menu_resize-dropdown-container__gtarw","search-bar":"resize-menu_search-bar__93Ofi","scroll-container":"resize-menu_scroll-container__xXhGq","resize-cta":"resize-menu_resize-cta__qQiO0","search-resize-input":"resize-menu_search-resize-input__jslEJ","platform-select-badges":"resize-menu_platform-select-badges__qVFDu","platform-select-badges-overlay":"resize-menu_platform-select-badges-overlay__Mh5Lw","platform-badge":"resize-menu_platform-badge__UqtRc",selected:"resize-menu_selected__dGw40","selected-preset":"resize-menu_selected-preset__lcQ_D","dropdown-preset-item":"resize-menu_dropdown-preset-item__OSDuJ","info-tooltip-container":"resize-menu_info-tooltip-container__yUlUT","info-tooltip-text":"resize-menu_info-tooltip-text__J5JvF"}},26358:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(37876);let i=e=>{let{className:t="",...s}=e;return(0,a.jsx)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:(0,a.jsx)("path",{d:"M20.0306 9.63343L12.5306 16.8209C12.461 16.8878 12.3782 16.9408 12.2872 16.9769C12.1961 17.0131 12.0986 17.0317 12 17.0317C11.9014 17.0317 11.8038 17.0131 11.7128 16.9769C11.6217 16.9408 11.539 16.8878 11.4694 16.8209L3.96936 9.63343C3.82863 9.49856 3.74957 9.31564 3.74957 9.12491C3.74957 8.93418 3.82863 8.75126 3.96936 8.6164C4.1101 8.48153 4.30097 8.40576 4.49999 8.40576C4.69901 8.40576 4.88988 8.48153 5.03061 8.6164L12 15.2963L18.9694 8.6164C19.039 8.54962 19.1218 8.49664 19.2128 8.4605C19.3039 8.42436 19.4014 8.40576 19.5 8.40576C19.5985 8.40576 19.6961 8.42436 19.7872 8.4605C19.8782 8.49664 19.9609 8.54962 20.0306 8.6164C20.1003 8.68317 20.1556 8.76245 20.1933 8.8497C20.231 8.93696 20.2504 9.03047 20.2504 9.12491C20.2504 9.21935 20.231 9.31287 20.1933 9.40012C20.1556 9.48737 20.1003 9.56665 20.0306 9.63343Z",fill:"black"})})}},28070:(e,t,s)=>{"use strict";s.d(t,{A:()=>I});var a=s(37876),i=s(14232),r=s(72768),o=s(98784),n=s(39970),l=s(78103),c=s(20762),d=s(74188),u=s(87242),m=s(85832),p=s(20562),h=s(45050),x=s(79021),g=s(1402),f=s(15405),w=s.n(f),j=s(33752),b=s(63108),C=s(93038),v=s(8291),y=s(44193),_=s(3079),A=s(95844),S=s(99209),k=s(58504),N=s(78238);function z(e){let{existingCredits:t,addedCredits:s,duration:r=5}=e,[o,n]=(0,i.useState)(t),l=t+s;return(0,i.useEffect)(()=>{let e=null,s=a=>{e||(e=a);let i=Math.min((a-e)/(1e3*r),1);n((i*(2-i)*(l-t)+t).toFixed(1)),i<1&&window.requestAnimationFrame(s)};window.requestAnimationFrame(s)},[t,l,r]),(0,a.jsxs)(d.Y,{px:30,py:15,style:{borderRadius:(0,b.D)(100),border:"1px solid #e9ecef"},children:[(0,a.jsx)(C.L,{color:"#4b42d7",size:44,radius:"md",children:(0,a.jsx)(N.A,{size:24})}),(0,a.jsxs)(g.B,{gap:0,children:[(0,a.jsx)(h.E,{size:"xs",fw:700,c:"dimmed",tt:"uppercase",ls:.5,children:"Your Balance"}),(0,a.jsxs)(h.E,{size:(0,b.D)(24),fw:800,style:{fontVariantNumeric:"tabular-nums"},children:[o?.toLocaleString()," Credits"]})]})]})}var $=s(70336),E=s(10841),D=s.n(E),T=s(94901);function V(e){let{planName:t,credits:s,showReceiptButton:i=!0,showSocialProof:r=!1,isMobile:l,closeHandler:c}=e,m=(0,o.useAtomValue)(n.zQK),p=(0,o.useAtomValue)(n.DOP),x=(0,o.useSetAtom)(n.Y_t),f=(0,o.useSetAtom)(n.Jty),w=(0,o.useSetAtom)(n.l7w),N=(0,o.useSetAtom)(n.BfM),E=(0,o.useSetAtom)(n.OiW),V=(0,o.useSetAtom)(n.aNb);return(0,a.jsx)(j.m,{size:560,mt:-36,w:"100%",children:(0,a.jsxs)(g.B,{align:"center",gap:28,children:[(0,a.jsxs)(u.a,{style:{position:"relative"},children:[(0,a.jsx)(u.a,{style:{position:"absolute",top:-15,right:-15,color:"#FF9E0D",fontSize:(0,b.D)(24)},children:"✦"}),(0,a.jsx)(u.a,{style:{position:"absolute",bottom:5,left:-25,color:"#FFD700",fontSize:(0,b.D)(20)},children:"★"}),(0,a.jsx)(u.a,{w:120,h:120,bg:"#e6fcf5",style:{borderRadius:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,a.jsx)(C.L,{size:80,radius:"100%",color:"#40c057",children:(0,a.jsx)(S.A,{size:45,stroke:3})})})]}),(0,a.jsxs)(g.B,{gap:8,align:"center",children:[(0,a.jsx)(v.h,{order:1,size:m?.paused?(0,b.D)(48):(0,b.D)(56),fw:900,ta:"center",style:{letterSpacing:"-1px"},children:m?.paused?"Subscription paused":"You're All Set!"}),l&&(0,a.jsx)(h.E,{c:"#12acba",fw:800,size:(0,b.D)(28),ta:"center",children:m.title})]}),(0,a.jsx)(h.E,{c:"dimmed",ta:"center",size:"lg",maw:420,style:{lineHeight:1.5},children:m?.message?.replace("[Date]",D()(m?.nextCreditsRefreshDate).format("MMMM D, YYYY"))}),m?.paused?(0,a.jsxs)(d.Y,{bg:"#F0F0FF",px:"lg",py:8,style:{borderRadius:"999px"},gap:"sm",wrap:"nowrap",display:"inline-flex",children:[(0,a.jsx)($.qlX,{size:20,color:"#1f2937"}),(0,a.jsxs)(h.E,{c:"dark.8",size:"sm",children:["Resume date:"," ",(0,a.jsx)(h.E,{span:!0,fw:700,ml:4,children:D()(m?.resumeDate).format("MMMM D, YYYY")})]})]}):(0,a.jsx)(z,{existingCredits:p,addedCredits:m.credits,duration:2}),(0,a.jsxs)(h.E,{hidden:!m?.backToPro,c:"dimmed",size:"sm",fw:400,children:["Next credits refill: ",D()(m?.nextCreditsRefreshDate).format("MMMM D, YYYY")]}),(0,a.jsx)(g.B,{w:"100%",gap:"md",mt:10,children:(0,a.jsxs)(d.Y,{gap:"md",grow:!l,wrap:l?"wrap":"nowrap",justify:"center",children:[!m?.paused&&(0,a.jsx)(y.$,{hidden:m?.paused,size:"lg",radiu
1s:"md",bg:"#4b42d7",h:{base:50,sm:60},leftSection:(0,a.jsx)(k.A,{size:20,fill:"currentColor"}),onClick:c,children:"Start Animating Now"}),!!m?.paused&&(0,a.jsx)(y.$,{hidden:!m?.paused,size:"lg",radius:"md",bg:"#4b42d7",h:{base:50,sm:60},onClick:()=>{V(!0),c()},children:"Back to dashboard"}),!!m?.backToPro&&(0,a.jsx)(y.$,{hidden:!m?.backToPro,variant:"light",color:"gray",size:"lg",radius:"md",c:"dark.8",fw:500,h:{base:50,sm:60},leftSection:(0,a.jsx)($.qlX,{size:20}),onClick:()=>{f("creditsGating"),N(!1),w("get_more_credits"),x(!0),(0,T.Uz)({button:"Get More Credits"}),(0,T.xV)("purchase_flow_undo_cancellation","true"),E(!1)},children:"Get More Credits"})]})}),r&&!l&&!m?.paused&&(0,a.jsxs)(g.B,{align:"center",gap:"xs",children:[(0,a.jsxs)(_.e.Group,{children:[(0,a.jsx)(_.e,{radius:"xl",src:"https://i.pravatar.cc/150?u=1"}),(0,a.jsx)(_.e,{radius:"xl",src:"https://i.pravatar.cc/150?u=2"}),(0,a.jsx)(_.e,{radius:"xl",src:"https://i.pravatar.cc/150?u=3"}),(0,a.jsx)(_.e,{radius:"xl",color:"indigo.1",c:"#4b42d7",fw:700,children:"+500K"})]}),(0,a.jsxs)(d.Y,{gap:8,children:[(0,a.jsx)(u.a,{w:8,h:8,bg:"#40c057",style:{borderRadius:"50%"}}),(0,a.jsx)(h.E,{size:"sm",c:"dimmed",fw:500,children:"Join 500K+ animators creating magic."})]})]}),(0,a.jsxs)(g.B,{gap:0,align:"center",hidden:m?.backToPro,children:[(0,a.jsx)(h.E,{size:"sm",c:"dimmed",fw:500,hidden:m?.paused,children:"Your receipt has been emailed to you!"}),(0,a.jsxs)(h.E,{size:"sm",c:"dimmed",children:["Need help?"," ",(0,a.jsx)(A.M,{fw:600,c:"#4b42d7",href:"mailto:[email protected]",rel:"noreferrer",target:"_blank",children:"Contact Support"})]})]})]})})}let P=e=>{let{icon:t,title:s,description:i}=e,r=(0,c.A)();return(0,a.jsxs)(d.Y,{align:"start",children:[(0,a.jsx)(u.a,{display:"flex",style:{justifyContent:"center",alignItems:"center",aspectRatio:"1/1"},w:r?"68px":"62px",h:r?"68px":"62px",p:6,bg:"#E9ECEF",bdrs:"lg",children:(0,a.jsx)(m._,{src:t,fit:"cover",w:"100%",h:"auto"})}),(0,a.jsxs)(p.s,{flex:"1",direction:"column",children:[(0,a.jsx)(h.E,{fz:r?21:16,fw:"bold",children:s}),(0,a.jsx)(h.E,{size:"sm",c:"dimmed",children:i})]})]})};function I(e){let{zIndex:t=null}=e,[s,d]=(0,o.useAtom)(n.OiW),f=(0,o.useSetAtom)(n.fJ),{upgradeTitle:j,featuresTitle:b,featuresSubtitle:C,featuresDetails:v,mobileTitle:y,plan:_,...A}=(0,o.useAtomValue)(n.zQK)||{},S=(0,c.A)(),k=()=>{d(!1),f(!1)};return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(r.A,{visible:s}),(0,a.jsx)(l.A,{opened:s,onClose:k,centered:!0,size:"auto",closeOnClickOutside:!0,closeOnEscape:!0,zIndex:t,children:(0,a.jsx)(x.a.Content,{w:920,h:S?"100%":"fit-content",bdrs:"lg",mih:720,children:(0,a.jsx)(x.a.Body,{className:`${S?"white":"background-brand-alternate-2"}`,h:"100%",mih:720,p:8,children:(0,a.jsxs)(p.s,{direction:"row",h:"100%",children:[(0,a.jsxs)(u.a,{w:324,p:20,hidden:S,children:[(0,a.jsx)(h.E,{fz:40,w:"100%",fw:"bolder",c:"white",children:j}),(0,a.jsx)(m._,{hidden:A?.paused,src:"https://cdn.krikey.ai/krikey-ai/img/sachiko_flying.gif",style:{transform:"rotate(70deg)",top:"4rem",left:"3rem"},pos:"absolute",h:625,w:393})]}),(0,a.jsxs)(p.s,{direction:"column",bg:"white",w:594,h:"100%",bdrs:"lg",mt:0,mih:720,children:[(0,a.jsx)(u.a,{ta:"right",children:(0,a.jsx)(x.a.CloseButton,{m:"sm",size:"lg"})}),"pass"===_||A?.backToPro||A?.paused?(0,a.jsx)(V,{credits:1800,durationText:"a legendary year of high-volume creation",showReceipt:!0,isMobile:S,showSocialProof:!0,closeHandler:k}):(0,a.jsxs)(p.s,{direction:"column",mx:55,align:S?"start":"center",h:"80%",justify:"space-between",children:[(0,a.jsxs)(u.a,{w:"100%",pb:32,children:[!S&&(0,a.jsx)(h.E,{fz:20,fw:"bold",children:b}),S&&(0,a.jsxs)(p.s,{direction:"column",pb:20,children:[(0,a.jsx)(h.E,{fz:"2rem",fw:"bold",lh:"xs",ta:"center",children:y}),(0,a.jsx)(h.E,{fz:"2rem",fw:"bold",lh:"xs",ta:"center",component:"span",className:w()["text-gradient"],children:_})]}),(0,a.jsx)(h.E,{c:S?"black":"dimmed",fz:S?18:14,children:C})]}),(0,a.jsx)(g.B,{h:"100%",justify:"space-around",maw:S?"100%":280,mih:620,children:v?.map((e,t)=>(0,a.jsx)(P,{icon:e.icon,title:e.title,description:e.description},t))})]})]})]})})})})]})}},31924:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var a=s(37876),i=s(32280),r=s(98784),o=s(91084),n=s(56025),l=s(9110),c=s(14232),d=s(94901);function u(e){let{trackButtonTapFE:t}
1=(0,d.Ay)(),{fetchCreditsCount:s,fetchSubscriptionInfo:u}=(0,c.useContext)(l.cy),m=(0,r.useAtomValue)(n.p),[p,h]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{h(!0)},[]),p&&""!==m.email)?(0,a.jsxs)("div",{children:[(0,a.jsx)(i.A,{}),(0,a.jsx)("button",{className:"btn circle-profile",style:{height:"3rem",width:"3rem",...e.style},disabled:e.isSwitchDisabled,"data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:()=>{s(),u(),t({button:"User Email in Nav Auth Dropdown"})},children:(0,a.jsx)("span",{className:"text-center text-uppercase text-white",children:m.email?.[0]})}),(0,a.jsx)("div",{"aria-labelledby":"dropdownMenu2",className:"dropdown-menu dropdown-menu-user p-3 background-elevation-2 color-primary me-5 rounded",id:"navDropdown",style:{minWidth:"24rem",overflowY:"auto",maxHeight:"650px",right:-20,top:55},children:(0,a.jsx)(o.X,{...e})})]}):null}},41255:(e,t,s)=>{"use strict";s.d(t,{t:()=>p});var a=s(14232),i=s(84292),r=s(80821),o=s(25113),n=s(64024),l=s(98784),c=s(39970),d=s(1746),u=s(45619);let m=new i.V("useSettings");function p(){let e=(0,u.a)(),{settings:t}=(0,r.x)(),[s,i]=(0,l.useAtom)(c.wuY),p=s===d.lX.ADVANCED,h=(0,a.useMemo)(()=>{let t=[{key:"animation_smoothing",label:"Animation Smoothing",description:"Enable this for a smoother interpolating animation"},{key:"auto_joints",label:"Joint Smoothing",description:"Enable this to mimic realistic human joint rotation"},{key:"auto_offset",label:"Gravity",description:"Enable this to lock your character to the ground"},{key:"shadow",label:"Shadow",description:"Enable this to see the character's shadow"},{key:"look_at_camera",label:"Look at Camera",description:"Enable this to have the character always look at the camera"},{key:"spatial_audio",label:"Spatial audio",description:"Enable/disable audio volume to vary based on distance from camera"},{key:"move_playhead_on_select_and_drag",label:"Move Playhead on Select and Drag",description:"Enable/disable the automatic movement of the playhead when moving a clip on the timeline"}
1,{key:"move_playhead_to_new_clip",label:"Move Playhead to new clip",description:"Enable/disable the automatic movement of the playhead when adding a clip"},{key:"editor_mode",label:"Manual Mode edit by default",description:"Enable this to get the manual mode editor by default"},{key:"follow_character",label:"Follow Character",description:"Enable this to follow character on all camera shots"}];return e?t.filter(e=>{let{key:t}=e;return"editor_mode"!==t}):t},[e]),[x,g]=(0,a.useState)(!1),{start:f}=(0,n.Z)(()=>g(!1),100),w=(0,a.useCallback)(e=>{let t={settings:e};m.log(`window.updateSettings: ${JSON.stringify(t)}`),window.updateSettings(t)},[]),j=(0,a.useCallback)(e=>{let t;switch(typeof e){case"object":t=(0,o.j)(e.width,e.height);break;case"number":t=e;break;default:throw Error("Invalid param. Must be an object containing width and height, or a number.")}w({aspect_ratio:t})},[w]),b=e=>Object.hasOwn(t,e),C=(0,a.useCallback)(e=>b(e)?t[e]:"editor_mode"===e&&p,[t,p]),v=(0,a.useCallback)(e=>{if(b(e)){g(!0),f(),w({[e]:!t[e]});return}"editor_mode"===e&&i(e=>e===d.lX.BASIC?d.lX.ADVANCED:d.lX.BASIC)},[t,w]);return{settings:h,updateSettings:w,updateAspectRatio:j,getSetting:C,setSetting:v,isSyncingChanges:x}}},43828:(e,t,s)=>{"use strict";s.d(t,{D:()=>g});var a=s(37876),i=s(21379),r=s(14232);let o=e=>{let{size:t=32}=e,s=(0,r.useId)(),i=`paint0_radial_${s}`,o=`paint1_radial_${s}`,n=`paint2_radial_${s}`;return(0,a.jsxs)("svg",{width:t,height:t,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,a.jsx)("rect",{x:"2",y:"2",width:"28",height:"28",rx:"6",fill:`url(#${i})`}),(0,a.jsx)("rect",{x:"2",y:"2",width:"28",height:"28",rx:"6",fill:`url(#${o})`}),(0,a.jsx)("rect",{x:"2",y:"2",width:"28",height:"28",rx:"6",fill:`url(#${n})`}),(0,a.jsx)("path",{d:"M23 10.5C23 11.3284 22.3284 12 21.5 12C20.6716 12 20 11.3284 20 10.5C20 9.67157 20.6716 9 21.5 9C22.3284 9 23 9.67157 23 10.5Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 21C18.7614 21 21 18.7614 21 16C21 13.2386 18.7614 11 16 11C13.2386 11 11 13.2386 11 16C11 18.7614 13.2386 21 16 21ZM16 19C17.6569 19 19 17.6569 19 16C19 14.3431 17.6569 13 16 13C14.3431 13 13 14.3431 13 16C13 17.6569 14.3431 19 16 19Z",fill:"white"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H16.4C19.7603 6 21.4405 6 22.7239 6.65396C23.8529 7.2292 24.7708 8.14708 25.346 9.27606C26 10.5595 26 12.2397 26 15.6V16.4C26 19.7603 26 21.4405 25.346 22.7239C24.7708 23.8529 23.8529 24.7708 22.7239 25.346C21.4405 26 19.7603 26 16.4 26H15.6C12.2397 26 10.5595 26 9.27606 25.346C8.14708 24.7708 7.2292 23.8529 6.65396 22.7239C6 21.4405 6 19.7603 6 16.4V15.6ZM15.6 8H16.4C18.1132 8 19.2777 8.00156 20.1779 8.0751C21.0548 8.14674 21.5032 8.27659 21.816 8.43597C22.5686 8.81947 23.1805 9.43139 23.564 10.184C23.7234 10.4968 23.8533 10.9452 23.9249 11.8221C23.9984 12.7223 24 13.8868 24 15.6V16.4C24 18.1132 23.9984 19.2777 23.9249 20.1779C23.8533 21.0548 23.7234 21.5032 23.564 21.816C23.1805 22.5686 22.5686 23.1805 21.816 23.564C21.5032 23.7234 21.0548 23.8533 20.1779 23.9249C19.2777 23.9984 18.1132 24 16.4 24H15.6C13.8868 24 12.7223 23.9984 11.8221 23.9249C10.9452 23.8533 10.4968 23.7234 10.184 23.564C9.43139 23.1805 8.81947 22.5686 8.43597 21.816C8.27659 21.5032 8.14674 21.0548 8.0751 20.1779C8.00156 19.2777 8 18.1132 8 16.4V15.6C8 13.8868 8.00156 12.7223 8.0751 11.8221C8.14674 10.9452 8.27659 10.4968 8.43597 10.184C8.81947 9.43139 9.43139 8.81947 10.184 8.43597C10.4968 8.27659 10.9452 8.14674 11.8221 8.0751C12.7223 8.00156 13.8868 8 15.6 8Z",fill:"white"}),(0,a.jsxs)("defs",{children:[(0,a.jsxs)("radialGradient",{id:i,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(12 23) rotate(-55.3758) scale(25.5196)",children:[(0,a.jsx)("stop",{stopColor:"#B13589"}),(0,a.jsx)("stop",{offset:"0.79309",stopColor:"#C62F94"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#8A3AC8"})]}),(0,a.jsxs)("radialGradient",{id:o,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(11 31) rotate(-65.1363) scale(22.5942)",children:[(0,a.jsx)("stop",{stopColor:"#E0E8B7"}),(0,a.jsx)("stop",{offset:"0.444662",stopColor:"#FB8A2E"}),(0,a.jsx)("stop",{offset:"0.71474",stopColor:"#E2425C"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#E2425C",stopOpacity:"0"})]}),(0,a.jsxs)("radialGradient",{id:n,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(0.500002 3) rotate(-8.1301) scale(38.8909 8.31836)",children:[(0,a.jsx)("stop",{offset:"0.156701",stopColor:"#406ADC"}),(0,a.jsx)("stop",{offset:"0.467799",stopColor:"#6A45BE"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#6A45BE",stopOpacity:"0"})]})]})]})},n=e=>{let{size:t}=e,s=(0,r.useId)(),i=`paint0_radial_${s}`;return(0,a.jsxs)("svg",{width:t||"32",height:t||"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"16",cy:"16",r:"14",fill:`url(#${i})`}),(0,a.jsx)("path",{d:"M21.2137 20.2816L21.8356 16.3301H17.9452V13.767C17.9452 12.6857 18.4877 11.6311 20.2302 11.6311H22V8.26699C22 8.26699 20.3945 8 18.8603 8C15.6548 8 13.5617 9.89294 13.5617 13.3184V16.3301H10V20.2816H13.5617V29.8345C14.2767 29.944 15.0082 30 15.7534 30C16.4986 30 17.2302 29.944 17.9452 29.8345V20.2816H21.2137Z",fill:"white"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:`${i}`,x1:"16",y1:"2",x2:"16",y2:"29.917",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#18ACFE"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#0163E0"})]})})]})},l=e=>{let{size:t}=e;return(0,a.jsxs)("svg",{width:t||"32",height:t||"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M8.45083 19.7926C8.6071 18.4987 9.13777 17.7742 10.1378 17.0316C11.5687 16.0258 13.356 16.5948 13.356 16.5948V13.2196C13.7905 13.2085 14.2252 13.2342 14.655 13.2966V17.6401C14.655 17.6401 12.8682 17.0711 11.4373 18.0774C10.4379 18.8196 9.90611 19.5445 9.75038 20.8384C9.7455 21.541 9.87735 22.4594 10.4845 23.2536C10.3344 23.1766 10.1814 23.0889 10.0255 22.9904C8.68795 22.0923 8.44432 20.7448 8.45083 19.7926ZM22.035 6.97892C21.0507 5.90033 20.6785 4.81133 20.5439 4.04633H21.7822C21.7822 4.04633 21.5353 6.05218 23.3346 8.02475L23.3595 8.05128C22.8746 7.74624 22.4299 7.38618 22.035 6.97892ZM27.9999 10.0369V14.293C27.9999 14.293 26.4199 14.2311 25.2505 13.9336C23.6178 13.5176 22.5684 12.8795 22.5684 12.8795C22.5684 12.8795 21.8435 12.4244 21.7849 12.3927V21.1817C21.7849 21.671 21.6509 22.8932 21.2423 23.9125C20.7089 25.2459 19.8858 26.1211 19.7344 26.3C19.7344 26.3 18.7333 27.4832 16.9671 28.2799C15.3751 28.9986 13.9773 28.9804 13.5595 28.9986C13.5595 28.9986 11.1433 29.0943 8.96902 27.6813C8.49886 27.3699 8.05998 27.0171 7.65808 26.6277L7.66893 26.6355C9.84371 28.0485 12.2594 27.9528 12.2594 27.9528C12.6778 27.9346 14.0755 27.9528 15.667 27.2341C17.4315 26.4373 18.4343 25.2542 18.4343 25.2542C18.584 25.0753 19.411 24.2001 19.9422 22.8661C20.3497 21.8473 20.4848 20.6247 20.4848 20.1353V11.3474C20.5434 11.3796 21.2678 11.8347 21.2678 11.8347C21.2678 11.8347 22.3177 12.4733 23.9504 12.8888C25.1203 13.1863 26.6998 13.2482 26.6998 13.2482V9.91308C27.2403 10.0343 27.7009 10.067 27.9999 10.0369Z",fill:"#EE1D52"}),(0,a.jsx)("path",{d:"M26.7004 9.91308V13.2472C26.7004 13.2472 25.1209 13.1853 23.951 12.8878C22.3183 12.4718 21.2684 11.8336 21.2684 11.8336C21.2684 11.8336 20.544 11.3786 20.4854 11.3464V20.1363C20.4854 20.6257 20.3514 21.8484 19.9428 22.8672C19.4094 24.2011 18.5863 25.0763 18.4349 25.2552C18.4349 25.2552 17.4332 26.4384 15.6676 27.2351C14.0761 27.9538 12.6783 27.9356 12.26 27.9538C12.26 27.9538 9.8443 28.0495 7.66953 26.6365L7.65867 26.6287C7.42906 26.4064 7.21293 26.1716 7.01134 25.9256C6.31734 25.0795 5.89194 24.0789 5.78505 23.7934C5.78486 23.7922 5.78486 23.7909 5.78505 23.7897C5.61304 23.2936 5.25166 22.1021 5.30104 20.9481C5.3884 18.9121 6.10464 17.6624 
16.29401 17.3494C6.79555 16.4956 7.44785 15.7318 8.2219 15.0918C8.90495 14.5396 9.67917 14.1002 10.5128 13.7917C11.414 13.4294 12.379 13.2353 13.3561 13.2196V16.5948C13.3561 16.5948 11.5687 16.0279 10.1384 17.0316C9.13837 17.7742 8.6077 18.4987 8.45142 19.7926C8.44491 20.7448 8.68854 22.0923 10.025 22.9909C10.1809 23.0897 10.3339 23.1775 10.484 23.2541C10.7175 23.5576 11.0017 23.822 11.3251 24.0368C12.6306 24.8631 13.7245 24.9209 15.1233 24.3842C16.0561 24.0253 16.7582 23.2166 17.0838 22.3206C17.2883 21.761 17.2856 21.1978 17.2856 20.6153V4.04633H20.5413C20.6759 4.81133 21.0481 5.90033 22.0324 6.97892C22.4272 7.38618 22.8719 7.74624 23.3569 8.05128C23.5001 8.19949 24.2327 8.93225 25.173 9.3821C25.6592 9.61463 26.1717 9.79279 26.7004 9.91308Z",fill:"black"}),(0,a.jsx)("path",{d:"M4.48926 22.757V22.7596L4.57004 22.9785C4.56076 22.953 4.53074 22.8755 4.48926 22.757Z",fill:"#69C9D0"}),(0,a.jsx)("path",{d:"M10.5128 13.7917C9.67919 14.1002 8.90498 14.5396 8.22192 15.0918C7.44763 15.7333 6.79548 16.4987 6.29458 17.3541C6.10521 17.6661 5.38897 18.9169 5.30161 20.9529C5.25223 22.1069 5.61361 23.2983 5.78561 23.7945C5.78543 23.7957 5.78543 23.7969 5.78561 23.7981C5.89413 24.081 6.31791 25.0816 7.01191 25.9303C7.2135 26.1764 7.42963 26.4111 7.65924 26.6334C6.92357 26.1458 6.26746 25.5562 5.71236 24.884C5.02433 24.0451 4.60001 23.0549 4.48932 22.7627C4.48919 22.7606 4.48919 22.7585 4.48932 22.7564V22.7528C4.31677 22.2572 3.95431 21.0652 4.00477 19.9096C4.09213 17.8736 4.80838 16.6239 4.99775 16.3109C5.4985 15.4554 6.15067 14.6899 6.92509 14.0486C7.608 13.4962 8.38225 13.0568 9.21598 12.7485C9.73602 12.5417 10.2778 12.3891 10.8319 12.2934C11.6669 12.1537 12.5198 12.1416 13.3588 12.2575V13.2196C12.3808 13.235 11.4148 13.4291 10.5128 13.7917Z",fill:"#69C9D0"}),(0,a.jsx)("path",{d:"M20.544 4.04635H17.2883V20.6159C17.2883 21.1983 17.2883 21.76 17.0865 22.3211C16.7577 23.2167 16.0582 24.0253 15.126 24.3842C13.7266 24.923 12.6327 24.8632 11.3278 24.0368C11.0038 23.823 10.7189 23.5594 10.4846 23.2567C11.5964 23.8251 12.5915 23.8152 13.8243 23.341C14.756 22.9821 15.4565 22.1734 15.7842 21.2774C15.9893 20.7178 15.9866 20.1546 15.9866 19.5726V3H20.4821C20.4821 3 20.4317 3.41188 20.544 4.04635ZM26.7004 8.99104V9.9131C26.1726 9.79263 25.661 9.61447 25.1757 9.38213C24.2353 8.93228 23.5028 8.19952 23.3596 8.0513C23.5258 8.1559 23.6983 8.25106 23.8761 8.33629C25.0194 8.88339 26.1453 9.04669 26.7004 8.99104Z",fill:"#69C9D0"})]})},c=e=>{let{size:t}=e;return(0,a.jsxs)("svg",{width:t||"32",height:t||"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{x:"2",y:"2",width:"28",height:"28",rx:"14",fill:"#1275B1"}),(0,a.jsx)("path",{d:"M12.6186 9.69215C12.6186 10.6267 11.8085 11.3843 10.8093 11.3843C9.81004 11.3843 9 10.6267 9 9.69215C9 8.7576 9.81004 8 10.8093 8C11.8085 8 12.6186 8.7576 12.6186 9.69215Z",fill:"white"}),(0,a.jsx)("path",{d:"M9.24742 12.6281H12.3402V22H9.24742V12.6281Z",fill:"white"}),(0,a.jsx)("path",{d:"M17.3196 12.6281H14.2268V22H17.3196C17.3196 22 17.3196 19.0496 17.3196 17.2049C17.3196 16.0976 17.6977 14.9855 19.2062 14.9855C20.911 14.9855 20.9008 16.4345 20.8928 17.5571C20.8824 19.0244 20.9072 20.5219 20.9072 22H24V17.0537C23.9738 13.8954 23.1508 12.4401 20.4433 12.4401C18.8354 12.4401 17.8387 13.1701 17.3196 13.8305V12.6281Z",fill:"white"})]})},d=e=>{let{size:t}=e;return(0,a.jsxs)("svg",{width:t||"32",height:t||"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"16",cy:"16",r:"14",fill:"white"}),(0,a.jsx)("path",{d:"M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 21.6801 5.38269 26.5702 10.2435 28.7655C10.25 28.6141 10.2573 28.4752 10.2636 28.3561C10.2722 28.1938 10.2788 28.0682 10.2788 27.9976C10.2788 27.5769 10.5649 25.4904 10.5649 25.4904L12.3149 18.3053C12.0457 17.8678 11.8438 16.9423 11.8438 16.2356C11.8438 12.9711 13.6611 12.2644 14.7716 12.2644C16.1851 12.2644 16.5048 13.7957 16.5048 14.9231C16.5048 15.5194 16.1955 16.4528 15.8772 17.4134C15.5398 18.4314 15.1923 19.4799 15.1923 20.1899C15.1923 21.5697 16.5553 22.2596 17.4976 22.2596C19.988 22.2596 22.2764 19.1298 22.2764 16C22.2764 12.8702 20.8125 9.08412 16.0168 9.08412C11.2212 9.08412 9.06731 12.7356 9.06731 15.5288C9.06731 17.4134 9.77404 18.7933 10.1274 19.0288C10.2284 19.1186 10.4 19.3957 10.2788 19.786C10.1577 20.1764 9.9367 21.0481 9.84135 21.4351C9.83013 21.5248 9.72356 21.6774 9.38702 21.5697C8.96635 21.4351 6.29087 19.7524 6.29087 15.5288C6.29087 11.3053 9.60577 6.39182 16.0168 6.39182C22.4279 6.39182 25.7091 10.6995 25.7091 16C25.7091 21.3005 21.4183 24.6827 18.1538 24.6827C15.5423 24.6827 14.5192 23.516 14.3341 22.9327L13.3413 26.7187C13.1069 27.3468 12.6696 28.4757 12.1304 29.4583C13.3594 29.8111 14.6576 30 16 30Z",fill:"#BB0F23"})]})},u=e=>{let{size:t}=e;return(0,a.jsxs)("svg",{width:t||"32",height:t||"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M2.24451 9.94111C2.37304 7.96233 3.96395 6.41157 5.94447 6.31345C8.81239 6.17136 12.9115 6 16 6C19.0885 6 23.1876 6.17136 26.0555 6.31345C28.0361 6.41157 29.627 7.96233 29.7555 9.94111C29.8786 11.8369 30 14.1697 30 16C30 17.8303 29.8786 20.1631 29.7555 22.0589C29.627 24.0377 28.0361 25.5884 26.0555 25.6866C23.1876 25.8286 19.0885 26 16 26C12.9115 26 8.81239 25.8286 5.94447 25.6866C3.96395 25.5884 2.37304 24.0377 2.24451 22.0589C2.12136 20.1631 2 17.8303 2 16C2 14.1697 2.12136 11.8369 2.24451 9.94111Z",fill:"#FC0D1B"}),(0,a.jsx)("path",{d:"M13 12V20L21 16L13 12Z",fill:"white"})]})},m=e=>{let{size:t}=e,{theme:s}=(0,i.D)();return(0,a.jsx)("svg",{width:t||"24",height:t||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M20.1562 20.6109C20.0917 20.7286 19.9967 20.8267 19.8813 20.8951C19.7659 20.9636 19.6342 20.9998 19.5 21H15C14.8738 21 14.7496 20.9681 14.639 20.9073C14.5284 20.8465 14.4349 20.7587 14.3672 20.6522L10.5712 14.6869L5.055 20.7544C4.92053 20.8988 4.73454 20.9845 4.53735 20.9927C4.34017 21.0009 4.14769 20.9311 4.00163 20.7984C3.85558 20.6657 3.76773 20.4807 3.75713 20.2836C3.74653 20.0866 3.81403 19.8933 3.945 19.7456L9.73594 13.3706L3.86719 4.15313C3.79491 4.03973 3.75444 3.90898 3.75004 3.77458C3.74563 3.64018 3.77744 3.50707 3.84213 3.38918C3.90683 3.27129 4.00203 3.17296 4.11777 3.10449C4.23351 3.03603 4.36552 2.99993 4.5 3H9C9.12622 3.00004 9.2504 3.03194 9.36102 3.09274C9.47164 3.15353 9.56512 3.24127 9.63281 3.34781L13.4287 9.31312L18.945 3.24562C19.0795 3.10117 19.2655 3.01555 19.4626 3.00731C19.6598 2.99907 19.8523 3.06888 19.9984 3.20161C20.1444 3.33435 20.2323 3.51929 20.2429 3.71636C20.2535 3.91343 20.186 4.10674 20.055 4.25438L14.2641 10.6247L20.1328 19.8478C20.2047 19.9613 20.2448 20.0919 20.2489 20.2262C20.253 20.3604 20.221 20.4933 20.1562 20.6109Z",fill:"light"==s?"black":"white"})})},p=e=>{let{size:t}=e,{theme:s}=(0,i.D)();return(0,a.jsx)("svg",{width:t||"24",height:t||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M20.25 3.75H3.75C3.35218 3.75 2.97064 3.90804 2.68934 4.18934C2.40804 4.47064 2.25 4.85218 2.25 5.25V18.75C2.25 19.1478 2.40804 19.5294 2.68934 19.8107C2.97064 20.092 3.35218 20.25 3.75 20.25H20.25C20.6478 20.25 21.0294 20.092 21.3107 19.8107C21.592 19.5294 21.75 19.1478 21.75 18.75V5.25C21.75 4.85218 21.592 4.47064 21.3107 4.18934C21.0294 3.90804 20.6478 3.75 20.25 3.75ZM20.25 18.75H3.75V5.25H20.25V18.75Z",fill:"light"==s?"black":"white"})})},h=e=>{let{size:t}=e,{theme:s}=(0,i.D)();return(0,a.jsx)("svg",{width:t||"24",height:t||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M6.71156 5.76281C6.6618 5.61344 6.5663 5.48352 6.43859 5.39145C6.31088 5.29938 6.15743 5.24984 5.99999 5.24984C5.84256 5.24984 5.68911 5.29938 5.5614 5.39145C5.43369 5.48352 5.33819 5.61344 5.28843 5.76281L1.53843 17.0128C1.50085 17.1256 1.49059 17.2456 1.50852 17.3631C1.52644 17.4806 1.57203 17.5921 1.64152 17.6885C1.71101 17.785 1.80242 17.8635 1.90821 17.9176C2.014 17.9718 2.13115 18 2.24999 18H9.74999C9.86884 18 9.98599 17.9718 10.0918 17.9176C10.1976 17.8635 10.289 17.785 10.3585 17.6885C10.428 17.5921 10.4735 17.4806 10.4915 17.3631C10.5094 17.2456 10.4991 17.1256 10.4616 17.0128L6.71156 5.76281ZM3.29062 16.5L5.99999 8.37188L8.70937 16.5H3.29062ZM19.5 7.125C19.5 6.16082 19.2141 5.21829 18.6784 4.4166C18.1427 3.61491 17.3814 2.99007 16.4906 2.62109C15.5998 2.25211 14.6196 2.15557 13.6739 2.34367C12.7283 2.53178 11.8596 2.99608 11.1778 3.67786C10.4961 4.35964 10.0318 5.22828 9.84367 6.17394C9.65556 7.11959 9.7521 8.09979 10.1211 8.99058C10.4901 9.88137 11.1149 10.6427 11.9166 11.1784C12.7183 11.7141 13.6608 12 14.625 12C15.9175 11.9985 17.1566 11.4844 18.0705 10.5705C18.9844 9.65659 19.4985 8.41748 19.5 7.125ZM11.25 7.125C11.25 6.45749 11.4479 5.80497 11.8188 5.24995C12.1896 4.69494 12.7167 4.26235 13.3334 4.00691C13.9501 3.75146 14.6287 3.68463 15.2834 3.81485C15.9381 3.94508 16.5395 4.26651 17.0115 4.73852
1C17.4835 5.21052 17.8049 5.81189 17.9351 6.46657C18.0654 7.12126 17.9985 7.79986 17.7431 8.41656C17.4876 9.03326 17.0551 9.56036 16.5 9.93121C15.945 10.3021 15.2925 10.5 14.625 10.5C13.7299 10.5 12.8714 10.1444 12.2385 9.51149C11.6056 8.87855 11.25 8.02011 11.25 7.125ZM21 13.5H12.75C12.5511 13.5 12.3603 13.579 12.2197 13.7197C12.079 13.8603 12 14.0511 12 14.25V19.5C12 19.6989 12.079 19.8897 12.2197 20.0303C12.3603 20.171 12.5511 20.25 12.75 20.25H21C21.1989 20.25 21.3897 20.171 21.5303 20.0303C21.671 19.8897 21.75 19.6989 21.75 19.5V14.25C21.75 14.0511 21.671 13.8603 21.5303 13.7197C21.3897 13.579 21.1989 13.5 21 13.5ZM20.25 18.75H13.5V15H20.25V18.75Z",fill:"light"==s?"black":"white"})})},x=e=>{let{size:t}=e,{theme:s}=(0,i.D)();return(0,a.jsx)("svg",{width:t||"24",height:t||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M16.5 1.5H7.5C6.90326 1.5 6.33097 1.73705 5.90901 2.15901C5.48705 2.58097 5.25 3.15326 5.25 3.75V20.25C5.25 20.8467 5.48705 21.419 5.90901 21.841C6.33097 22.2629 6.90326 22.5 7.5 22.5H16.5C17.0967 22.5 17.669 22.2629 18.091 21.841C18.5129 21.419 18.75 20.8467 18.75 20.25V3.75C18.75 3.15326 18.5129 2.58097 18.091 2.15901C17.669 1.73705 17.0967 1.5 16.5 1.5ZM17.25 20.25C17.25 20.4489 17.171 20.6397 17.0303 20.7803C16.8897 20.921 16.6989 21 16.5 21H7.5C7.30109 21 7.11032 20.921 6.96967 20.7803C6.82902 20.6397 6.75 20.4489 6.75 20.25V3.75C6.75 3.55109 6.82902 3.36032 6.96967 3.21967C7.11032 3.07902 7.30109 3 7.5 3H16.5C16.6989 3 16.8897 3.07902 17.0303 3.21967C17.171 3.36032 17.25 3.55109 17.25 3.75V20.25ZM13.125 5.625C13.125 5.8475 13.059 6.06501 12.9354 6.25002C12.8118 6.43502 12.6361 6.57922 12.4305 6.66436C12.225 6.74951 11.9988 6.77179 11.7805 6.72838C11.5623 6.68498 11.3618 6.57783 11.2045 6.4205C11.0472 6.26316 10.94 6.06271 10.8966 5.84448C10.8532 5.62625 10.8755 5.40005 10.9606 5.19448C11.0458 4.98891 11.19 4.81321 11.375 4.6896C11.56 4.56598 11.7775 4.5 12 4.5C12.2984 4.5 12.5845 4.61853 12.7955 4.8295C13.0065 5.04048 13.125 5.32663 13.125 5.625Z",fill:"light"==s?"black":"white"})})},g=e=>{switch(e?.platform){case"Instagram":return(0,a.jsx)(o,{size:e?.icon_size});case"Tik Tok":return(0,a.jsx)(l,{size:e?.icon_size});case"Facebook":return(0,a.jsx)(n,{size:e?.icon_size});case"Youtube":return(0,a.jsx)(u,{size:e?.icon_size});case"LinkedIn":return(0,a.jsx)(c,{size:e?.icon_size});case"Pinterest":return(0,a.jsx)(d,{size:e?.icon_size});case"X":return(0,a.jsx)(m,{size:e?.icon_size});case"Other":if(e?.size_preset?.includes("Presentation"))return(0,a.jsx)(p,{size:e?.icon_size});if(e?.size_preset?.includes("Logo"))return(0,a.jsx)(h,{size:e?.icon_size});if(e?.size_preset?.includes("Mobile"))return(0,a.jsx)(x,{size:e?.icon_size})}}},45619:(e,t,s)=>{"use strict";s.d(t,{a:()=>i});var a=s(12312);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:480;return(0,a.U)(`(max-width : ${e}px)`)}},55424:e=>{e.exports={"pre-selected-resized-preset":"export-menu_pre-selected-resized-preset__ZDPRC",disabledMantineInputText:"export-menu_disabledMantineInputText__XmIUG"}},58595:(e,t,s)=>{"use strict";s.d(t,{A:()=>X});var a=s(37876),i=s(71865),r=s(61042),o=s.n(r),n=s(21580),l=s.n(n),c=s(16202),d=s.n(c),u=s(70336),m=s(14232),p=s(12120),h=s.n(p),x=s(34341),g=s(32414),f=s(43828),w=s(85865),j=s(27878),b=s(39970),C=s(98784),v=s(48906),y=s(88802),_=s(40511),A=s(88359),S=s(18175),k=s(21379),N=s(19025);let z={Instagram:"Instagram",Facebook:"Facebook","Tik Tok":"TikTok",Youtube:"Youtube",LinkedIn:"LinkedIn",Pinterest:"Pinterest",X:"X",Other:"Other"};var $=s(17004),E=s(7306),D=s(61875),T=s(51202),V=s(95830),P=s(87242),I=s(45050),L=s(20562),M=s(94901),F=s(9110),O=s(20762),B=s(88),R=s(41255),H=s(7384),Y=s(21643),W=s(34788),G=s(71465),Z=s(12818),q=s(39739),J=s(89099);let Q=[{id:"mobile-video-fallback-default",platform:"Other",size_preset:"Mobile Video",additional_preset_info:"",width:1080,height:1920}],U=null;function X(e){let{unityCommunication:t,color:s="white",isLite:r=!1,onCloseLite:n}=e,{trackButtonTapFE:c,updateHubspot:p}=(0,M.Ay)(),{isNewTimeline:X}=(0,B.E)(),{interceptAndQueue:K}=(0,Z.H)(),{updateAspectRatio:ee}=(0,R.t)(),{saveEditorConfig:et,duplicateProjectByProjectId:es}=(0,W.B)(),ea=(0,C.useAtomValue)(G.T6),[ei]=(0,C.useAtom)(b.K5N),[er]=(0,C.useAtom)(b.ASV),{theme:eo}=(0,k.D)(),en=(0,C.useSetAtom)(b.JAf),el=(0,O.A)(),[ec,ed]=(0,m.useState)(!U),[eu,em]=(0,m.useState)(()=>U&&U.length>0?el?U.filter(e=>1080===Number(e.width)&&1920===Number(e.height)):U:el?Q:[]),[ep,eh]=(0,C.useAtom)(Y.u),ex=(0,C.useSetAtom)(b.Dmg),[eg,ef]=(0,C.useAtom)(b.k2M),[ew,ej]=(0,C.useAtom)(b.NIW),[eb,eC]=(0,m.useState)(!1),ev=(0,C.useSetAtom)(b.tvj),ey=(0,C.useSetAtom)(b.APN),e_=(0,C.useSetAtom)(b.ohc),eA=(0,C.useSetAtom)(b.Lvv),eS=(0,C.useSetAtom)(b.z_A),ek=(0,C.useSetAtom)(b.Sbp),[eN,ez]=(0,C.useAtom)(b.k67),e$=(0,C.useSetAtom)(b.prB),eE=(0,C.useSetAtom)(b.l7w),[eD]=(0,C.useAtom)(b.O1O),[eT,eV]=(0,m.useState)(""),[eP]=(0,H.o)(eT,400),eI=(0,C.useSetAtom)(b.GJ0),eL=(0,C.useSetAtom)(b.uIm),eM=(0,C.useSetAtom)(b.Luq),eF=(0,C.useSetAtom)(b.Wjk),eO=(0,C.useSetAtom)(b.Jty),eB=(0,C.useSetAtom)(b.YYV),eR=(0,C.useSetAtom)(b.nWC),eH=(0,C.useSetAtom)(b.NWG),eY=(0,C.useSetAtom)(b.Y_t),eW=(0,C.useSetAtom)(b.fVK),eG=(0,C.useSetAtom)(b.O2O),[eZ,eq]=(0,m.useState)(null),[eJ,eQ]=(0,C.useAtom)(b.u5A),eU=(0,C.useAtomValue)(b.TxV),eX=(0,C.useSetAtom)(b.IcO),[eK,e0]=(0,m.useState)(!1),e1=(0,C.useSetAtom)(b.mHT),{subscriptionLevel:e2}=(0,m.useContext)(F.cy),e3=function(){let[e,t]=(0,m.useState)(0);return(0,m.useEffect)(()=>
1{let e=window.visualViewport;if(!e)return;let s=()=>{let s=Math.max(0,window.innerHeight-e.height-e.offsetTop);t(s>100?s:0)};return s(),e.addEventListener("resize",s),e.addEventListener("scroll",s),()=>{e.removeEventListener("resize",s),e.removeEventListener("scroll",s)}},[]),e}(),e5=(0,E.A)(),e8=(0,J.useRouter)(),{setShowLoginModal:e4}=(0,m.useContext)(v.D),e9=(0,C.useSetAtom)(T.L$),e6=(0,C.useAtomValue)(b.mOP),{createSubscriptionCallback:e7}=(0,q.D)(),te="light"===eo,tt=async(e,t)=>{let s;ed(!0);let a=`/accounts/${(0,g.bA)()}/resize-presets/public`;if(e||t){let a=new URLSearchParams("");e&&(e="tiktok"===e.toLowerCase()?"Tik Tok":e,a.set("search",e)),t&&a.set("platform",t),s=a.toString()}let i=[];try{i=(await x.A.get(`${a}${s?`?${s}`:""}`,{withCredentials:!1})).data||[],e||t||!(i.length>0)||(U=i)}catch(e){console.error("Could not get dimention presets",e)}finally{ed(!1)}let r=i;el&&0===(r=r.filter(e=>1080===Number(e.width)&&1920===Number(e.height))).length&&(r=[{id:`mobile-video-fallback-${t||"default"}`,platform:"Other",size_preset:"Mobile Video",additional_preset_info:"",width:1080,height:1920}]),ep&&r.some(e=>e.id===ep.id)||!ep||el&&(1080!==Number(ep.width)||1920!==Number(ep.height))?em(r):em([{...ep,pinnedSelection:!0},...r])};(0,m.useEffect)(()=>{tt(eP||null,eZ)},[eZ,eP,el]),(0,m.useEffect)(()=>{if(X)return;let e=JSON.parse(localStorage.getItem("pendingResizeState"));if(e?.currentProjectData&&ei&&er&&!eN)return void ez(e.currentProjectData);
1ei&&(ew||e)&&eN&&er&&(e?.willCopyProject&&eC(e.willCopyProject),e?.preset&&eh(e.preset),(async()=>{await ts(e?.preset||ep)})())},[ei,ew,eN,er]);let ts=async e=>{if(eb||t?.({type:"ResultRequestUpdateRecordAreaResolution",data:{width:e.width,height:e.height},code:200,result:"",message:""}),X)if(eb){eI(""),eL(""),eM(50),eF(!0);try{let t=await es(ea.id,{editor_config:e});eI(t.id),eL(t.name),eM(100)}catch(e){eF(!1),console.error("Could not duplicate project",e)}}else try{await et(ea.id,e);let{width:t,height:s}=e;ee({width:t,height:s})}catch(e){console.error("Could not update project aspect ratio",e)}else{let s=(0,A.q)()??void 0,a=X?ea?.id:eN?.id||eN?.Id,i=X?ea.name:eN?.name||eN?.Name;eb&&(i=(0,$.wm)(i,eJ),a=(0,_.A)(),eM(100),eI(a),eL(i),eF(!0)),await (0,y.q)({data:{...eN,editorConfig:e},currentProjectId:a,name:i,user:s,setProjectId:ev,setShowRenameModal:()=>{},setCurrentProjectName:ey,setCurrentProjectData:ez,unityCommunication:t,setShowShareProjectCheckModal:()=>{},handleShowBannerToast:()=>{},triggeredByFileSettings:!1,willReloadProject:!1,setProjects:eQ})}ef(!1),n?.(),ej(!1),e_(!0),eb||ex(e),eC(!1),localStorage.removeItem("pendingResizeState"),eA("Your project has been resized")},ta=async()=>{let e=eu.find(e=>e.id===ep?.id);if(eD?.state!=="project_loaded")return void en(!0);if(!X&&!eN?.id){ek(!0),eS({inputLabel:"Project",title:"Save the project to proceed",action:"SaveProjectWithCallBack",callback:()=>{ej(!0)},handleClose:()=>{localStorage.removeItem("pendingResizeState"),ek(!1)},buttonText:"Save"}),ej(!1);return}try{await x.A.get(`/accounts/${(0,g.bA)()}/rate-limiting/handled/resize`,{withCredentials:!0})}catch(t){if(t.response&&429===t.response.status){let t=async()=>{await ts(e)};["pro","team","pass","edu","lite"].includes(e2)?(K("creditsGating",t),e$("gating_max_level"),eE("gating_due_out_of_max_level_resize_trigger")):(K("pro_upgrade",t),e$("gating_max_level"),eE("gating_due_out_of_max_level_resize_trigger"),await e7()),ef(!1),ej(!1),localStorage.removeItem("pendingResizeState"),p("purchase_flow_resize_rate_limit","true");return}}await ts(e)},ti=e=>{ep?.id===e.id?eh(null):eh(e),e?.pinnedSelection&&em(eu.slice(1))};return r?(0,a.jsxs)("div",{className:d()["resize-dropdown-container"],style:{width:"100%",height:"100%",maxHeight:"100%",display:"flex",flexDirection:"column",overflow:"hidden",paddingTop:"16px",boxSizing:"border-box",paddingBottom:e3?`${e3}px`:void 0,transition:"padding-bottom 0.2s ease"},children:[(0,a.jsxs)("div",{className:d()["search-bar"],style:{flexShrink:0},children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center px-4",children:[(0,a.jsx)("span",{className:"fw-bold color-primary",style:{fontSize:"16px"},children:"Resize"}),(0,a.jsxs)("div",{className:"d-flex align-items-center gap-3",children:[(0,a.jsxs)("div",{className:d()["info-tooltip-container"],children:[(0,a.jsx)(D.u7w,{style:{fontSize:18,color:te?"black":"white"}}),(0,a.jsx)("div",{className:`${d()["info-tooltip-text"]} background-brand-subtle-static text-black`,children:(0,a.jsx)("p",{style:{fontSize:"14px",margin:0,color:"black"},className:"color-secondary-static",children:"The resize feature may not work as intended when the assets are outside the aspect ratio bars."})})]}),n&&(0,a.jsx)("button",{onClick:n,className:"border-0 bg-transparent p-0 d-flex align-items-center",style:{color:te?"black":"white",cursor:"pointer"},"aria-label":"Close panel",children:(0,a.jsx)(S.yBK,{size:18})})]})]}),(0,a.jsxs)("div",{className:"px-3 pt-3",children:[(0,a.jsx)(N.I,{inputClassName:d()["search-resize-input"],value:eT,magnifyingGlassIconSize:22,closeIconSize:16,onChange:eV,onSubmit:e=>{},placeholder:"Search for resize values"}),(0,a.jsx)("div",{className:d()["platform-select-badges-overlay"],children:(0,a.jsx)("div",{ref:e5,className:`d-flex flex-row my-3 ${d()["platform-select-badges"]} `,children:Object.entries(z).map(e=>{let[t,s]=e;return(0,a.jsxs)("div",{className:`${d()["platform-badge"]} ${eZ===t?d().selected:""}`,onClick:()=>{eZ===t?eq(null):eq(t)},children:[(0,f.D)({platform:t})," ",(0,a.jsx)("span",{children:s})]},t)})})})]})]}),(0,a.jsx)("div",{className:`${d()["scroll-container"]}`,style:{flex:"1 1 auto",overflowY:"auto",maxHeight:"none"},children:ec&&0===eu.length?(0,a.jsx)("div",{className:"d-flex justify-content-center align-items-center p-4",children:(0,a.jsx)("div",{className:"spinner-border spinner-border-sm text-secondary",role:"status"})}):eu.length>0?eu.map(e=>(0,a.jsxs)("div",{onClick:()=>{ti(e)},className:` p-3 d-flex gap-4 justify-content-between align-items-center ${d()["dropdown-preset-item"]} ${ep?.id===e.id&&d()["selected-preset"]}`,children:[(0,a.jsxs)("div",{className:"flex-row d-flex gap-4 align-items-center",children:[(0,a.jsx)("div",{children:(0,f.D)(e)}),(0,a.jsxs)("div",{className:"flex-column d-flex gap-1",children:[(0,a.jsx)("span",{className:"color-primary",children:e.size_preset}),(0,a.jsxs)("small",{className:"lg-sm text-secondary",children:[" ",e.additional_preset_info??""," ",`${e.width}x${e.height} px`]})]})]}),ep?.id===e.id&&(0,a.jsx)(S.wiW,{style:{color:te?"#4d44d7":"#C2BFF3",fontSize:"18px"},size:24})]},e.id)):(0,a.jsx)("small",{className:"d-flex flex-row  justify-content-center p-4",style:{color:"rgb(108, 117, 125)",fontWeight:800,fontSize:"12px"},children:"No Result Found"})}),(0,a.jsxs)("div",{className:`${d()["resize-cta"]} pt-3`,style:{flexShrink:0,marginTop:"auto",borderTop:te?"1px solid rgba(0, 0, 0, 0.08)":"1px solid rgba(255, 255, 255, 0.08)",backgroundColor:te?"#ffffff"
1:"#141414",paddingBottom:"16px",zIndex:10},children:[(0,a.jsxs)("div",{className:"d-flex gap-3 px-4",children:[(0,a.jsx)("label",{className:`${h()["copy-checkbox-group"]} color-primary d-flex align-items-center mb-6`,htmlFor:"create-new-project",children:(0,a.jsx)("input",{id:"will-create-project",type:"checkbox",checked:eb,onChange:e=>{eC(e.target.checked)}})}),(0,a.jsxs)("div",{style:{fontSize:"16px"},className:"color-primary",children:[" ","Resize a new copy of the project"]})]}),(0,a.jsx)("div",{className:"p-3",children:(0,a.jsxs)("button",{id:"resize_cta_btn","aria-label":"Resize button",disabled:eK,className:`${h().button} d-flex align-items-center gap-3 justify-content-center`,onClick:async()=>{let e=eu.find(e=>e.id===ep?.id);if(!e){eW({title:"No Preset Selected",description:"To resize the video, please choose a preset first.",buttonText:"Try again",primaryCTA:()=>{eG(!1)}}),eG(!0);return}if(!ei){e4(!0),e9("resize"),localStorage.setItem("pendingResizeState",JSON.stringify({willCopyProject:eb,preset:e,currentProjectData:eN}));return}if(!["pro","team","pass","edu","lite"].includes(e2)){e$("gating_max_level"),eE("gating_due_out_of_max_level_resize_trigger"),eO("pro_upgrade"),e0(!0);try{await (0,j.$G)({plan:"pro",planType:"month",isImpulsePurchase:!1,router:e8,setStripePaymentData:eR,setSubscriptionData:eH,pricingFlowStartedFrom:"gating_due_out_of_max_level_resize_trigger",setClientSecret:eB}),e1(!1),e0(!1),eY(!0),ef(!1),n?.()}catch(e){console.error("Subscription setup failed:",e),e0(!1)}return}X?ta():ej(!0)},children:[(0,a.jsx)(w.A,{}),ei?"Resize video":"Sign up to resize",(0,a.jsx)("div",{className:`${eK?"d-inline":"d-none"} ps-1`,children:(0,a.jsx)("span",{className:"spinner-border text-light",role:"status",style:{width:"1.1rem",height:"1.1rem"}})})]})})]})]}):(0,a.jsxs)(i.A,{show:eg&&eu.length>=0,className:`${o()["dropdown-container"]}`,onToggle:e=>{if(eU&&eD?.state==="avatarcreator_loaded")return void eX(!0);ef(e),X||t({type:"RequestProjectData",data:{},code:200,status:"",message:""})},style:{height:"2.25rem"},children:[(0,a.jsx)(i.A.Toggle,{id:"resize-btn",className:`${l().tooltip} ${o()["dropdown-button"]} background-brand-bold`,"aria-label":"Resize Button",onMouseDown:()=>{c({button:"Resize Button"})},style:{padding:"0.5rem 0.75rem"},disabled:e6&&!el,children:(0,a.jsx)(V.m,{label:(0,a.jsx)(P.a,{zIndex:1e3,w:208,c:"white",children:(0,a.jsx)(I.E,{c:"white",fz:12,children:"Resize your design for any social media format"})}),zIndex:1e4,multiline:!0,withArrow:!0,children:(0,a.jsxs)(L.s,{direction:"row",justify:"space-between",align:"center",children:[(0,a.jsx)(u.Ehq,{size:"1rem",color:s,px:6}),(0,a.jsx)(I.E,{ms:12,fz:14,c:s,children:"Resize"})]})})}),(0,a.jsx)(i.A.Menu,{variant:"dark",className:`${d()["resize-dropdown-menu"]} background-elevation-2 border-1 px-4  pt-4 gap-2`,style:{width:el?"calc(100vw - 32px)":"402px",maxWidth:"100vw",borderColor:"#283237"},align:"start",children:(0,a.jsxs)("div",{className:d()["resize-dropdown-container"],children:[(0,a.jsxs)("div",{className:d()["search-bar"],children:[(0,a.jsxs)("div",{className:" d-flex justify-content-between px-4",children:[(0,a.jsx)("span",{className:"fw-bold color-primary",style:{fontSize:"16px"},children:"Resize"}),(0,a.jsxs)("div",{className:`${l().tooltip}`,children:[(0,a.jsx)(D.u7w,{style:{fontSize:18,color:te?"black":"white"}}),(0,a.jsx)("div",{className:`${l()["tooltiptext-left"]} background-brand-subtle-static text-black`,style:{color:"black",width:"355px",height:"auto",paddingRight:"12px",paddingLeft:"12px",paddingBottom:"8px",paddingTop:"8px",overflow:"visible",whiteSpace:"normal",wordWrap:"break-word"},children:(0,a.jsx)("p",{style:{fontSize:"14px",margin:0},className:"color-secondary-static",children:"The resize feature may not work as intended when the assets are outside the aspect ratio bars."})})]})]}),(0,a.jsxs)("div",{className:"px-3 pt-3",children:[(0,a.jsx)(N.I,{inputClassName:d()["search-resize-input"],value:eT,magnifyingGlassIconSize:22,closeIconSize:16,onChange:eV,onSubmit:e=>{},placeholder:"Search for resize values"}),(0,a.jsx)("div",{className:d()["platform-select-badges-overlay"],children:(0,a.jsx)("div",{ref:e5,className:`d-flex flex-row my-3 ${d()["platform-select-badges"]} `,children:Object.entries(z).map(e=>{let[t,s]=e;return(0,a.jsxs)("div",{className:`${d()["platform-badge"]} ${eZ===t?d().selected:""}`,onClick:()=>{eZ===t?eq(null):eq(t)},children:[(0,f.D)({platform:t})," ",(0,a.jsx)("span",{children:s})]},t)})})})]})]}),(0,a.jsx)("div",{className:`${d()["scroll-container"]}`,children:ec&&0===eu.length?(0,a.jsx)("div",{className:"d-flex justify-content-center align-items-center p-4",children:(0,a.jsx)("div",{className:"spinner-border spinner-border-sm text-secondary",role:"status"})}):eu.length>0?eu.map(e=>(0,a.jsxs)("div",{onClick:()=>{ti(e)},className:` p-3 d-flex gap-4 justify-content-between align-items-center ${d()["dropdown-preset-item"]} ${ep?.id===e.id&&d()["selected-preset"]}`,children:[(0,a.jsxs)("div",{className:"flex-row d-flex gap-4 align-items-center",children:[(0,a.jsx)("div",{children:(0,f.D)(e)}),(0,a.jsxs)("div",{className:"flex-column d-flex gap-1",children:[(0,a.jsx)("span",{className:"color-primary",children:e.size_preset}),(0,a.jsxs)("small",{className:"lg-sm text-secondary",children:[" ",e.additional_preset_info??""," ",`${e.width}x${e.height} px`]})]})]}),ep?.id===e.id&&(0,a.jsx)(S.wiW,{style:{color:te?"#4d44d7":"#C2BFF3",fontSize:"18px"},size:24})]},e.id)):(0,a.jsx)("small",{className:"d-flex flex-row  justify-content-center p-4",style:{color:"rgb(108, 117, 125)",fontWeight:800,fontSize:"12px"},children:"No Result Found"})}),(0,a.jsxs)("div",{className:`${d()["resize-cta"]} pt-3`,children:[(0,a.jsxs)("div",{className:"d-flex gap-3 px-4",children:[(0,a.jsx)("label",{className:`${h()["copy-checkbox-group"]} color-primary d-flex align-items-center mb-6`,htmlFor:"create-new-project",children:(0,a.jsx)("input",{id:"will-create-project",type:"checkbox",checked:eb,onChange:e=>{eC(e.target.checked)}})}),(0,a.jsxs)("div",{style:{fontSize:"16px"},className:"color-primary",children:[" ","Resize a new copy of the project"]})]}),(0,a.jsx)("div",{className:"p-3",children:(0,a.jsxs)("button",{id:"resize_cta_btn","aria-label":"Resize button",className:`${h().button} d-flex align-items-center gap-3 justify-content-center`,onClick:async()=>{let e=eu.find(e=>e.id===ep?.id);if(!e){eW({title:"No Preset Selected",description:"To resize the video, please choose a preset first.",buttonText:"Try again",primaryCTA:()=>{eG(!1)}}),eG(!0);return}if(!ei){e4(!0),e9("resize"),localStorage.setItem("pendingResizeState",JSON.stringify({willCopyProject:eb,preset:e,currentProjectData:eN}));return}if(!["pro","team","pass","edu","lite"].includes(e2)){e$("gating_max_level"),eE("gating_due_out_of_max_level_resize_trigger"),eO("pro_upgrade"),e0(!0);try{await (0,j.$G)({plan:"pro",planType:"month",isImpulsePurchase:!1,router:e8,setStripePaymentData:eR,setSubscriptionData:eH,pricingFlowStartedFrom:"gating_due_out_of_max_level_resize_trigger",setClientSecret:eB}),e1(!1),e0(!1),eY(!0),ef(!1)}catch(e){console.error("Subscription setup failed:",e),e0(!1)}return}X?ta():ej(!0)},children:[(0,a.jsx)(w.A,{}),ei?"Resize video":"Sign up to resize"]})})]})]})})]})}},61042:e=>{e.exports={"dropdown-container":"SettingsDropdown_dropdown-container__Y9Fhh","dropdown-button":"SettingsDropdown_dropdown-button__lKw_c","dropdown-menu":"SettingsDropdown_dropdown-menu__IGmWe","premium-assets-dropdown-menu":"SettingsDropdown_premium-assets-dropdown-menu__RYMmu","dropdown-item":"SettingsDropdown_dropdown-item__SjQ6i",disabled:"SettingsDropdown_disabled__3UiBS","dropdown-sub-item":"SettingsDropdown_dropdown-sub-item__WyvtH","dropdown-item-text":"SettingsDropdown_dropdown-item-text__Zl7LY","dropdown-divider":"SettingsDropdown_dropdown-divider__jH695",checkbox:"SettingsDropdown_checkbox__msJKL","export-button":"SettingsDropdown_export-button__LatjJ","translate-button":"SettingsDropdown_translate-button__6QZbF","basic-button":"SettingsDropdown_basic-button__VD7sN","export-button-disabled":"SettingsDropdown_export-button-disabled__N1RJ3",customToggleButton:"SettingsDropdown_customToggleButton__dOvVd"}},61676:(e,t,s)=>{"use strict";s.d(t,{A:()=>N});var a=s(37876),i=s(98784),r=s(71865),o=s(61042),n=s.n(o),l=s(21580),c=s.n(l),d=s(39970),u=s(95830),m=s(87242),p=s(45050),h=s(20562),x=s(1402),g=s(8291),f=s(44193),w=s(7852),j=s(16783),b=s(14232),C=s(85865),v=s(35219),y=s(80479),_=s(61352),A=s(70336),S=s(94901),
1k=s(20762);function N(e){let{unityCommunication:t,color:s="white"}=e,{trackButtonTapFE:o}=(0,S.Ay)(),[l,N]=(0,i.useAtom)(d.IJj),[,z]=(0,i.useAtom)(d.O2O),[,$]=(0,i.useAtom)(d.fVK),E=(0,i.useAtomValue)(d.O1O),D=(0,i.useAtomValue)(d.TxV),T=(0,i.useSetAtom)(d.IcO),[V]=(0,i.useAtom)(d.tws),[P]=(0,i.useAtom)(d.giJ),I=(0,b.useRef)(null),{characters:L,getCharacters:M,selectedCharacter:F,selectedAnimation:O,handleTriggerGIFGeneration:B,setError:R,error:H,loading:Y,disabled:W,handleSelectAnimation:G,handleSelectCharacter:Z}=(0,_.k)(),q=(0,i.useAtomValue)(d.mOP),J=(0,k.A)(),Q=2;return F?.source==="public"&&F.is_locked&&!F.is_purchased&&(Q+=F.price),(0,b.useEffect)(()=>{(O||F)&&R(null)},[O,F]),(0,b.useEffect)(()=>{M()},[l]),(0,a.jsxs)(r.A,{show:l,className:`${n()["dropdown-container"]}`,onToggle:e=>{if(V||P){$({title:"Oops!",description:"You can’t create a new transparent GIF until your current one is completed. Try again shortly!",buttonText:"Back To Editor",primaryCTA:()=>{z(!1)}}),z(!0);return}if(D&&E?.state==="avatarcreator_loaded")return void T(!0);R(null),N(e)},children:[(0,a.jsx)(r.A.Toggle,{id:"gif_maker_btn",className:`${c().tooltip} ${n()["dropdown-button"]} background-brand-bold`,"aria-label":"Quick GIF button",onMouseDown:()=>{o({button:"Quick GIF Modal"})},style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem"},disabled:q&&!J,children:(0,a.jsx)(u.m,{label:(0,a.jsx)(m.a,{w:208,c:"white",style:{zIndex:"1000"},children:(0,a.jsx)(p.E,{c:"white",fz:12,children:"Download a GIF with transparent background"})}),zIndex:1e4,multiline:!0,withArrow:!0,children:(0,a.jsxs)(h.s,{direction:"row",justify:"space-between",align:"center",children:[(0,a.jsx)(A.X4t,{size:"1.5rem",color:s}),(0,a.jsx)(p.E,{ms:4,ta:"center",fz:14,c:s,children:"Maker"})]})})}),(0,a.jsx)(r.A.Menu,{variant:"dark",className:`${n()["premium-assets-dropdown-menu"]} background-elevation-2 border-1`,style:{width:"25.5rem",borderColor:"#283237"},align:"start",children:(0,a.jsxs)(x.B,{p:"md",spacing:"md",style:{maxWidth:400},children:[(0,a.jsxs)(m.a,{children:[(0,a.jsx)(g.h,{order:4,className:"color-primary",children:"Make a GIF"}),(0,a.jsx)(p.E,{size:"sm",c:"dimmed",children:"Download a GIF with transparent background"})]}),(0,a.jsxs)(m.a,{children:[(0,a.jsxs)(p.E,{size:"sm",fw:500,className:"color-primary",children:["Choose character"," ",(0,a.jsx)(p.E,{component:"span",c:"red",children:"*"})]}),(0,a.jsx)(w.A,{scrollableRef:I,children:L.map(e=>(0,a.jsx)(j.A,{title:e.display_name,isSelected:e.uuid==F?.uuid,thumbnail:e.thumbnail_url||"https://cdn.krikey.ai/unity_assets/avatars/default.png",handleClick:()=>Z(e),hasHoverAction:!0,isPremium:e.is_locked,width:"106px",height:"106px",isLocked:"public"===e.source&&e.is_locked&&!e.is_purchased,containerClassName:"background-brand-alternate-vertical"},e.uuid))})]}),(0,a.jsxs)(m.a,{children:[(0,a.jsxs)(p.E,{size:"sm",fw:500,className:"color-primary",children:["Select Animation"," ",(0,a.jsx)(p.E,{component:"span",c:"red",children:"*"})]}),(0,a.jsx)(v.A,{unityCommunication:t,isOnGifMaker:!0,handleSelectAnimation:G,selectedAnimation:O,parent:"MakeGIFMenu"})]}),!!H&&(0,a.jsx)(p.E,{c:"red",ta:"center",children:H}),(0,a.jsx)(f.$,{fullWidth:!0,size:"md",leftSection:(0,a.jsx)(C.A,{}),color:"#4D44D7",onClick:B,loading:Y,disabled:Y||W,children:"Download Transparent GIF"}),(0,a.jsx)(y.A,{creditCost:Q})]})})]})}},63595:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(37876),i=s(71865),r=s(61042),o=s.n(r),n=s(14232),l=s(54849);function c(e){let{unityCommunication:t,...s}=e,[r,c]=(0,n.useState)(!1),d=[{title:"Help Center",subTitle:"Learn how to use Krikey with our documentation!",onClick:()=>{window.open("https://www.krikey.ai/how-to/help","_blank")}},{title:"Video Editor Help",subTitle:"Learn how to use the Krikey Video Editor!",onClick:()=>{window.open("https://www.krikey.ai/how-to/krikey-video-editor","_blank")}}];return(0,a.jsxs)(i.A,{className:`${o()["dropdown-container"]}`,show:r,onToggle:(e,t)=>{c(e)},style:{height:"2.25rem"},children:[(0,a.jsx)(i.A.Toggle,{id:"fileSettings",className:`${o()["dropdown-button"]}`,style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem"},children:"Help"}),(0,a.jsx)(i.A.Menu,{variant:"dark",className:`${o()["dropdown-menu"]}`,style:{width:"30rem"},children:d.map((e,t)=>(0,a.jsxs)(i.A.ItemText,{onClick:e.onClick,className:`${o()["dropdown-item"]} ps-4 d-flex flex-row align-items-center justify-content-between`,children:[(0,a.jsxs)("div",{className:"d-flex flex-column",children:[e.title,(0,a.jsx)("span",{className:"text-secondary fs-sm",children:e.subTitle})]}),(0,a.jsx)(l.qdV,{size:"14px"})]},t))})]})}},63907:(e,t,s)=>{"use strict";s.d(t,{A:()=>Y});var a=s(37876),i=s(14232),r=s(71865),o=s(98784),n=s(80479),l=s(88359),c=s(61042),d=s.n(c),u=s(12120),m=s.n(u),p=s(21580),h=s.n(p),x=s(17004),g=s(39970),f=s(26358),w=s(85865),j=s(18175),b=s(48906),C=s(89099),v=s(27878),y=s(51202),_=s(9110),A=s(12614),S=s(95830),k=s(87242),N=s(45050),z=s(20562),$=s(11871),E=s(70336),D=s(94901),T=s(39739),V=s(62360),P=s(20762),I=s(34788),L=s(71465),M=s(58680),F=s(17284),O=s(27566),B=s(12818),R=s(27113);let H=()=>{};function Y(e){let{unityCommunication:t,color:s="white",hideEditBeforeTranslatingButton:c=!1}=e,{loadProjectById:u}=(0,I.B)(),{openInfoModal:p}=(0,O.x)(),Y=(0,A.l)(),{trackButtonTapFE:W,updateHubspot:G}=(0,D.Ay)(),{fetchCreditsCount:Z}
1=(0,i.useContext)(_.cy),q=(0,o.useSetAtom)(g.ElD),J=(0,o.useSetAtom)(g.Dl_),Q=(0,o.useSetAtom)(g.Rur),U=(0,o.useSetAtom)(g.$VC),X=(0,o.useSetAtom)(g.jpc),K=(0,o.useSetAtom)(g.y5C),ee=(0,o.useSetAtom)(g.YlP),et=(0,o.useSetAtom)(g.Eb4),es=(0,o.useSetAtom)(g.z80),[ea,ei]=(0,o.useAtom)(g.P$0),[er,eo]=(0,o.useAtom)(g.Zcd),en=(0,o.useAtomValue)(g.TxV),el=(0,o.useSetAtom)(g.IcO),ec=(0,o.useSetAtom)(g.z_A),ed=(0,o.useSetAtom)(g.Sbp),[eu,em]=(0,i.useState)([]),[ep]=(0,o.useAtom)(g.u5A),[eh,ex]=(0,o.useAtom)(g.ged),[eg,ef]=(0,o.useAtom)(g.bNt),ew=(0,o.useSetAtom)(g.MIS),ej=(0,o.useSetAtom)(g.O2O),eb=(0,o.useSetAtom)(g.fVK),eC=(0,o.useSetAtom)(g.Qwz),[ev,ey]=(0,o.useAtom)(g.ak3),e_=(0,o.useSetAtom)(g.fJ),[eA]=(0,o.useAtom)(g.O1O),eS=(0,o.useSetAtom)(g.JAf),ek=(0,o.useSetAtom)(g.Jty),eN=(0,o.useSetAtom)(g.prB),ez=(0,o.useSetAtom)(g.Y_t),e$=(0,o.useSetAtom)(g.Wjk),eE=(0,o.useSetAtom)(g.uQF),eD=(0,o.useSetAtom)(g.Luq),eT=(0,o.useSetAtom)(g.O_7),eV=(0,o.useSetAtom)(g.GJ0),eP=(0,o.useSetAtom)(g.uIm),eI=(0,o.useSetAtom)(g.ohc),eL=(0,o.useSetAtom)(g.Lvv),eM=(0,o.useSetAtom)(g.C3x),eF=(0,o.useSetAtom)(g.n86),eO=(0,o.useAtomValue)(L.T6),eB=(0,o.useSetAtom)(g.APN),eR=(0,o.useSetAtom)(g.tvj),eH=(0,o.useSetAtom)(g.l7w),{setShowLoginModal:eY}=(0,i.useContext)(b.D),[eW,eG]=(0,i.useState)("English"),[eZ,eq]=(0,i.useState)([]),[eJ,eQ]=(0,i.useState)(""),[eU,eX]=(0,i.useState)([]),[eK,e0]=(0,i.useState)("English"),[e1,e2]=(0,i.useState)([]),[e3,e5]=(0,i.useState)(""),[e8,e4]=(0,i.useState)([]),{GetProjectAudioDetails:e9,HandleSpeechLanguage:e6,HandlePreview:e7,HandleCharacterSpeechVoice:te,HandleNarratorSpeechVoice:tt,updateLanguages:ts,getProjectScript:ta}=(0,R.$)({unityCommunication:t,scriptsLocal:eu,setScriptsLocal:em,characterSpeechVoiceLocal:eJ,setCharacterSpeechVoiceLocal:eQ,characterSpeechVoicesLocal:eU,setCharacterSpeechVoicesLocal:eX,characterSpeechLanguageLocal:eW,setCharacterSpeechLanguageLocal:eG,characterSpeechLanguagesLocal:eZ,setCharacterSpeechLanguagesLocal:eq,narratorSpeechVoiceLocal:e3,setNarratorSpeechVoiceLocal:e5,narratorSpeechVoicesLocal:e8,setNarratorSpeechVoicesLocal:e4,narratorSpeechLanguageLocal:eK,setNarratorSpeechLanguageLocal:e0,narratorSpeechLanguagesLocal:e1,setNarratorSpeechLanguagesLocal:e2}),ti=eu.find(e=>{let{type:t}=e;return 8===t}),tr=eu.find(e=>{let{type:t}=e;return 7===t}),to=4*[ti,tr].filter(e=>e).length,tn=!!(0,l.q)(),tl=(0,o.useSetAtom)(g.Hzj),tc=(0,o.useSetAtom)(g.YYV),td=(0,o.useSetAtom)(g.nWC),tu=(0,o.useSetAtom)(g.NWG),tm=(0,o.useSetAtom)(g.aVS),tp=(0,o.useSetAtom)(y.L$),th=(0,o.useSetAtom)(g.GOP),tx=(0,o.useSetAtom)(g.TP8),{createSubscriptionCallback:tg}=(0,T.D)(),tf=(0,o.useSetAtom)(g.e5h),tw=(0,o.useAtomValue)(g.wuY),tj=(0,C.useRouter)(),tb=(0,o.useAtomValue)(g.mOP),tC=(0,P.A)(),tv=(0,o.useSetAtom)(g.bBb),{interceptAndQueue:ty}=(0,B.H)(),t_=(0,o.useSetAtom)(g.kPE),tA=(0,i.useRef)(!1),[tS,tk]=(0,i.useState)(!1),tN=(0,V.$)(()=>{eC(e=>e<=90?e+5:e),eD(e=>e<=90?e+5:e)},500);(0,i.useEffect)(()=>{ev?tN.start():tN.stop()},[ev]),(0,i.useEffect)(()=>{er&&ei(!1)},[er]),(0,i.useEffect)(()=>{if(er&&eO.data){let e=eO.data,t=e.characters[0]?.uuid,s=(0,M.jh)(e,F.mO.AUDIO_CHARACTER,t).map(e=>({type:8,clip:e})),a=(0,M.jh)(e,F.mO.AUDIO_NARRATOR).map(e=>({type:7,clip:e}));s.length>0&&e9(s[0].clip.asset_id).then(e=>{let{voice:t}=e;if(t){let{id:e,language:s}=t;e6(s,"character"),eQ(e)}else e6("English","character")}),a.length>0&&e9(a[0].clip.asset_id).then(e=>{let{voice:t}=e;if(t){let{id:e,language:s}=t;e6(s,"narrator"),e5(e)}else e6("English","narrator")});let i=[...s,...a].sort((e,t)=>e.clip.start_time-t.clip.start_time).map(e=>{let{type:t,clip:s}=e;return{type:t,value:s.name.replaceAll("\n","").replaceAll("\r","")}});em(i),i.length<=0&&(eo(!1),p({title:"No audio available to translate",description:"Add your script and try again.",buttonText:"Okay"}))}},[eO.data,er]),(0,i.useEffect)(()=>{ts()},[]);let tz=(0,i.useCallback)(async(e,s,a)=>{if(!tA.current&&!ev){tA.current=!0,tk(!0);try{let i;W({button:"Quick Translation generate"}),ei(!1);let r=e?.detail||{},o=r.scripts||eu,n=r.selectedCharacterId||eh,c=r.characterSpeechLanguage||eW,d=r.characterSpeechVoice||eJ,m=r.narratorSpeechLanguage||eK,p=r.narratorSpeechVoice||e3,h=r.createNewProject??eg,g=s||eO.id,f=a||eO.name,w=o.map(e=>({...e,value:e.value.replace(/\r\n|\r|\n|\\n|\\r/g,"")})),j={avatar_id:n,project_id:g,dialogue:w.filter(e=>e.value),characterLanguage:c,characterSpeechVoice:d,narratorLanguage:m,narratorSpeechVoice:p,isQuickTranslate:!0};if(!tn){let e={scripts:o,projectId:g,createNewProject:h,characterLanguage:c,characterSpeechVoice:d,narratorLanguage:m,narratorSpeechVoice:p,generationData:j,projectData:eO.data,timestamp:Date.now()};localStorage.setItem("pendingTranslation","true"),localStorage.setItem("pendingTranslateState",JSON.stringify(e)),eY(!0),tp("translate");return}if(!g){ec({inputLabel:"Project",title:"Save the project to proceed",action:"SaveProjectWithCallBack",callback:tz,buttonText:"Save"}),ed(!0);return}let{credits:b}=await (0,l.wZ)(),C=await (0,v.he)();if(b<to||"free"===C&&!ea){ey(!1);let e=async()=>
1{await tz({detail:{scripts:o,selectedCharacterId:n,characterSpeechLanguage:c,characterSpeechVoice:d,narratorSpeechLanguage:m,narratorSpeechVoice:p,createNewProject:h}},g,f)};ty("pro_upgrade",e),await tg(),b<to&&eH("gating_due_out_of_credits_magic_create_trigger"),"free"===C&&eH("quick_translate_gating_pro_upgrade"),b<to&&G("purchase_flow_quick_translate_no_credits","true"),"free"===C&&G("purchase_flow_quick_translate_gating","true");return}eC(0);let y=[];ti&&y.push(c),tr&&y.push(m),eT([...new Set(y.filter(e=>e.length>0))]),ey(!0),h&&(eD(0),eV(""),localStorage.removeItem("new_copied_project_id"),i=(0,x.wm)(f,ep),eP(i),j.name=i,e$(!0)),eo(!1),await (0,x.XE)({type:"RequestMagicGeneration",data:j,BrowserCommunication:t,loadProjectById:u,setPricingGateType:eN,setPricingMode:ek,setShowPricingModal:ez,createNewProject:h,setNewCopiedProjectId:eV,setIsLoading:ey,setLoadingPercentage:eC,setCopyProjectProgress:eD,setShowBannerToast:eI,setBannerToastDescription:eL,setSelectedTab:eM,setShowInfoModal:ej,setInfoModalProps:eb,setShowCopyProjectModal:e$,setCurrentProjectData:H,setCurrentProjectName:eB,setPricingFlowStartedFrom:eH,setShowConfetti:e_,setQuickTranslateProgressModal:eE,setIsMagicGenerationCompleted:ew,copiedProjectName:i,isQuickTranslation:!0,setRefreshData:tl,setClientSecret:tc,router:tj,setStripePaymentData:td,setIsLoadingMagicGenerate:ey,setSubscriptionData:tu,setSelectedPlan:tm,fetchCreditsCount:Z,setCopiedProjectName:eP,setInfoCardData:tf,setCharacterId:th,setCurrentProjectFirstBgData:tx,setCurrentProjectId:eR,setScripts:em,createSubscriptionCallback:tg,onSuccess:async()=>{J(c),Q(d),U(m),X(p),await ta(g),ey(!1),eE(!1)},currentProjectData:{id:eO.id,name:eO.name},setIsMobileGenerating:tv,setIsMagicGenerationCancelled:t_})}finally{tA.current=!1,tk(!1)}}},[W,eu,eh,eW,eJ,eK,e3,eg,to,eO.data,eO.id,eO.name,ti,tr,ea,tn,ep,t,u,ty,tg,Z,tj,tw,eY,tp,ec,ed,eF,eL,eP,eD,eB,eb,ey,eC,eT,eV,e$,eo,eN,ek,ez,eI,eM,ej,eH,e_,eE,ew,tl,tc,td,tu,tm,tf,th,tx,eR,em,J,Q,U,X,tv,t_,G]);return(0,i.useEffect)(()=>{let e=e=>{ex(e.detail.selectedCharacterId),eG(e.detail.characterSpeechLanguage),eQ(e.detail.characterSpeechVoice),e0(e.detail.narratorSpeechLanguage),e5(e.detail.narratorSpeechVoice),em(e.detail.scripts),ef(e.detail.createNewProject),window.dispatchEvent(new CustomEvent("RequestQuickTranslate",{detail:e.detail}))};return window.addEventListener("RequestUpdateQuickTranslateData",e),()=>{window.removeEventListener("RequestUpdateQuickTranslateData",e)}},[]),(0,i.useEffect)(()=>(window.addEventListener("RequestQuickTranslate",tz),()=>{window.removeEventListener("RequestQuickTranslate",tz)}),[tz]),(0,i.useEffect)(()=>{let e=localStorage.getItem("pendingTranslation"),t=JSON.parse(localStorage.getItem("pendingTranslateState"));!e&&t&&(localStorage.removeItem("pendingTranslateState"),t.scripts&&t.scripts.length&&em(t.scripts),t.characterLanguage&&eG(t.characterLanguage),t.characterSpeechVoice&&eQ(t.characterSpeechVoice),t.narratorLanguage&&e0(t.narratorLanguage),t.narratorSpeechVoice&&e5(t.narratorSpeechVoice),t.createNewProject&&ef(t.createNewProject),setTimeout(()=>{localStorage.removeItem("pendingTranslateState"),window.dispatchEvent(new CustomEvent("RequestQuickTranslate"))},200))},[eO.data,tz]),(0,a.jsxs)(r.A,{show:er,className:`${d()["dropdown-container"]}`,onToggle:e=>en&&eA?.state==="avatarcreator_loaded"?void el(!0):eA?.state!=="project_loaded"?void eS(!0):void(t?.({type:"RequestProjectData",data:{},code:200,status:"",message:""}),eo(e)),style:{height:"2.25rem"},children:[(0,a.jsx)(r.A.Toggle,{id:"translate_btn",className:`${h().tooltip} ${d()["dropdown-button"]} background-brand-bold`,"aria-label":"Quick Translate button",onMouseDown:()=>{W({button:"Quick Translate Modal"})},style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem"},disabled:tb&&!tC,children:(0,a.jsx)(S.m,{label:(0,a.jsx)(k.a,{zIndex:1e3,w:208,c:"white",children:(0,a.jsx)(N.E,{c:"white",fz:12,children:"Automatic translation powered by AI!"})}),zIndex:1e4,multiline:!0,withArrow:!0,children:(0,a.jsxs)(z.s,{direction:"row",justify:"space-between",align:"center",children:[(0,a.jsx)(E.bfm,{size:"1rem",color:s,px:8}),(0,a.jsx)(N.E,{ms:12,fz:14,c:s,children:"Translate"})]})})}),(0,a.jsx)(r.A.Menu,{variant:"dark"===Y?"dark":void 0,className:`${d()["premium-assets-dropdown-menu"]} background-elevation-2 border-1`,style:{width:"25.5rem",borderColor:"#283237"},align:"start",children:(0,a.jsxs)("div",{className:"d-flex flex-column p-4 gap-3",children:[(0,a.jsx)("span",{className:"fw-bold color-primary",children:"Translate"}),ti&&(0,a.jsxs)("div",{className:`${m()["audio-selections"]} color-primary`,children:[(0,a.jsx)("div",{className:m()["voice-options-header"],children:"Character"}),(0,a.jsxs)("div",{className:m()["accordion-form-group"],children:[(0,a.jsxs)("div",{className:m()["accordion-subheader"],children:["Language ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsxs)("div",{className:m()["input-container"],children:[(0,a.jsx)("select",{id:"character-language",value:eW,className:m().select,"aria-label":"Choose a character language",onCh
1ange:e=>e6(e.target.value,"character"),children:eZ.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsx)(f.A,{className:m()["input-arrow"]})]})]}),(0,a.jsxs)("div",{className:`${m()["accordion-form-group"]} mb-0`,children:[(0,a.jsxs)("div",{className:m()["accordion-subheader"],children:["Voice ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsxs)("div",{className:m()["input-container"],children:[(0,a.jsx)("select",{id:"character-voice",value:eJ,disabled:0===eU.length,className:m().select,"aria-label":"Choose a character voice",onChange:e=>te(e.target.value),children:eU.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsx)(f.A,{className:m()["input-arrow"]})]}),(0,a.jsx)("button",{id:"character-voice-preview",className:`${m()["button--outlined"]} mb-0`,onClick:async()=>await e7(eW,"",eJ),children:(0,a.jsxs)("div",{className:"color-primary d-flex gap-2 flex-row",children:[(0,a.jsx)(j.dY6,{size:"1rem"}),(0,a.jsx)("span",{children:"Preview Voice"})]})})]})]}),tr&&(0,a.jsxs)("div",{className:`${m()["audio-selections"]} color-primary`,children:[(0,a.jsx)("div",{className:m()["voice-options-header"],children:"Narrator"}),(0,a.jsxs)("div",{className:m()["accordion-form-group"],children:[(0,a.jsxs)("div",{className:m()["accordion-subheader"],children:["Language ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsxs)("div",{className:m()["input-container"],children:[(0,a.jsx)("select",{id:"narrator-language",value:eK,className:m().select,"aria-label":"Choose a narrator language",onChange:e=>e6(e.target.value,"narrator"),children:e1.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsx)(f.A,{className:m()["input-arrow"]})]})]}),(0,a.jsxs)("div",{className:`${m()["accordion-form-group"]} mb-0`,children:[(0,a.jsxs)("div",{className:m()["accordion-subheader"],children:["Voice ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsxs)("div",{className:m()["input-container"],children:[(0,a.jsx)("select",{id:"narrator-voice",value:e3,disabled:0===e8.length,className:m().select,"aria-label":"Choose a narrator voice",onChange:e=>tt(e.target.value),children:e8.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsx)(f.A,{className:m()["input-arrow"]})]}),(0,a.jsx)("button",{id:"narrator-voice-preview",className:`${m()["button--outlined"]} mb-0`,onClick:async()=>await e7(eK,"",e3),children:(0,a.jsxs)("div",{className:"color-primary d-flex gap-2 flex-row",children:[(0,a.jsx)(j.dY6,{size:"1rem"}),(0,a.jsx)("span",{children:"Preview Voice"})]})})]})]}),(0,a.jsx)($.S,{label:"Generate translation in a new copy of the project",checked:eg,onChange:e=>ef(e.currentTarget.checked)}),(0,a.jsxs)("button",{id:"translate_cta_btn","aria-label":"Translate button",className:`${m().button} ${d()["translate-button"]}`,onClick:tz,disabled:ea||tS||ev,style:{pointerEvents:ea||tS||ev?"none":"auto",opacity:ea||tS||ev?.6:1},children:[(0,a.jsx)(w.A,{}),tn?"Quick Translate":"Sign up to translate"]}),!c&&(0,a.jsx)("button",{id:"edit_script_before_btn",className:"btn color-primary","aria-label":"Edit script before translating button",onClick:()=>{eM("Magic Create"),q(1),eo(!1),setTimeout(()=>{J(eW),ee(eU),Q(eJ),U(eK),et(e8),X(e3),K(eu),es(eg),ei(!0)},1e3)},children:"Edit script before translating"}),(0,a.jsx)("div",{className:"my-0",children:(0,a.jsx)(n.A,{creditCost:to})})]})})]})}},72768:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var a=s(37876),i=s(87242),r=s(55640),o=s.n(r),n=s(98784),l=s(39970),c=s(14232);function d(e){let{visible:t=!1}=e,[s,r]=(0,n.useAtom)(l.fJ);return(0,c.useEffect)(()=>{if(s){let e=setTimeout(()=>{r(!1)},1e3);return()=>clearTimeout(e)}},[s,r]),(s||t)&&(0,a.jsxs)(i.a,{className:o()["confetti-wallpaper"],pos:"fixed",inset:0,style:{zIndex:"var(--mantine-z-index-max)",pointerEvents:"none"},children:[(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}
1),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`}),(0,a.jsx)("div",{className:`${o().confetti} ${o()["confetti-md"]}`})]})}},75065:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var a=s(37876),i=s(77304);s(14232);var r=s(72768),o=s(1402),n=s(45050),l=s(97633),c=s.n(l),d=s(68827),u=s.n(d),m=s(12312),p=s(94901),h=s(98784),x=s(39970);let g=[{key:"gaming",imgSrc:"https://cdn.krikey.ai/krikey-ai/img/congrats/gaming-v2.webp",title:"Gaming",description:"Quickly prototype NPCs, game cutscenes and animations"},{key:"teacher",imgSrc:"https://cdn.krikey.ai/krikey-ai/img/congrats/teacher-v2.webp",title:"Teacher",description:"Design engaging, animated lesson plans"},{key:"personal",imgSrc:"https://cdn.krikey.ai/krikey-ai/img/congrats/personal-v2.webp",title:"Personal",description:"Animate everything from cards to creative presentations"},{key:"contentCreation",imgSrc:"https://cdn.krikey.ai/krikey-ai/img/congrats/content-v2.webp",title:"Content creation",description:"Bring talking characters to social media"},{key:"smallBusiness",imgSrc:"https://cdn.krikey.ai/krikey-ai/img/congrats/small-v2.webp",title:"Small business",description:"Animate your brand and make promo videos"},{key:"student",imgSrc:"https://cdn.krikey.ai/krikey-ai/img/congrats/student-v2.webp",title:"Student",description:"Create eye-catching school projects"}];function f(e){let{SendViewedModalAnalytics:t,ModalCloseHandler:s,track:l,updateHubspot:d}=(0,p.Ay)(),f="congratsModal";e.modalShow&&t(e,f);let[w,j]=(0,h.useAtom)(x.pjw),b=(0,h.useSetAtom)(x.mR3),C=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(e,f),t&&y("dismissedOutside"),localStorage.setItem("welcome_modal_shown","true"),e.closeHandler?e.closeHandler():(j(!1),localStorage.getItem("isOpenedEditorModeModal")||b(!0))},v=(0,m.U)("(min-width: 56.25em)"),y=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"tappedButtonInCreditSelection",type:e}),l("tappedButtonInCreditSelection",{type:e}),d("new_user_survey",e),C(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A,{visible:e.modalShow||w}),v?(0,a.jsx)(i.A,{size:"xl",name:f,show:e.modalShow||w,scrollable:!0,"aria-labelledby":"contained-modal-title(-vcenter",style:{zIndex:1056},enforceFocus:!1,onHide:C,centered:!0,contentClassName:"rounded-modal border-blue",children:(0,a.jsx)(i.A.Body,{className:`py-2 px-3 ${c()["modal-body"]}`,children:(0,a.jsxs)("div",{className:"row",children:[(0,a.jsxs)("div",{className:"col-12 col-lg-4 p-5",children:[(0,a.jsx)("p",{className:c()["title-1"],children:"Welcome to Krikey AI"}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)(u(),{width:252,height:488,className:"w-100",alt:"default image for Welcome modal",src:"https://cdn.krikey.ai/krikey-ai/img/congrats/welcome-default.webp"})})]}),(0,a.jsxs)("div",{className:`col-12 col-lg-8 ${c()["section-background"]}`,children:[(0,a.jsx)(i.A.Header,{className:"border-0 pb-0 px-1",closeButton:!0}),(0,a.jsxs)("div",{className:c().padding,children:[(0,a.jsx)("p",{className:c()["title-2"],children:"Welcome to the Free Plan!"}),(0,a.jsx)("p",{className:c().description,children:"What will you animate today?"}),(0,a.jsx)("div",{className:"row",children:g.map(e=>(0,a.jsx)("div",{className:`col-6 ${c().section}`,onClick:()=>y(e.key),children:(0,a.jsxs)("div",{className:"row py-2",children:[(0,a.jsx)("div",{className:"col-3 text-end",children:(0,a.jsx)(u(),{width:52,height:52,alt:e.title,src:e.imgSrc})}),(0,a.jsxs)("div",{className:"col-9",children:[(0,a.jsx)("p",{className:`${c()["section-title"]}`,children:e.title}),(0,a.jsx)("p",{className:`m-0 ${c()["section-description"]}`,children:e.description})]})]})},e.key))})]})]})]})})}):(0,a.jsx)(i.A,{size:"xl",name:f,show:e.modalShow||w,scrollable:!0,"aria-labelledby":"
1contained-modal-title-vcenter",style:{zIndex:1056},enforceFocus:!1,onHide:()=>C(!0),centered:!0,contentClassName:"rounded-modal border-blue",children:(0,a.jsx)(i.A.Body,{className:"py-2 px-1",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:`col-12 col-lg-8 ${c()["section-background"]}`,children:[(0,a.jsx)(i.A.Header,{className:"border-0 pb-0 px-3",closeButton:!0}),(0,a.jsxs)("div",{className:"px-4",children:[(0,a.jsxs)(o.B,{gap:"sm",children:[(0,a.jsx)(n.E,{fz:"1.4rem",fw:"bold",lh:"xs",ta:"center",children:"Welcome to the"}),(0,a.jsx)(n.E,{fz:"1.4rem",fw:"bold",lh:"xs",ta:"center",component:"span",className:c()["text-gradient"],children:"Krikey AI Free Plan"}),(0,a.jsxs)(n.E,{styles:c().description,fz:"0.85rem",ta:"center",children:["What will you animate today?"," "]})]}),(0,a.jsx)("div",{className:"row py-1",children:g.map(e=>(0,a.jsx)("div",{className:`${v?"col-6":"col-12"} ${c().section}`,onClick:()=>y(e.key),children:(0,a.jsxs)("div",{className:"row py-1",children:[(0,a.jsx)("div",{className:"col-3 text-end",children:(0,a.jsx)(u(),{width:52,height:52,alt:e.title,src:e.imgSrc})}),(0,a.jsxs)("div",{className:"col-9",children:[(0,a.jsx)("p",{className:`${c()["section-title"]}`,children:e.title}),(0,a.jsx)("p",{className:`m-0 ${c()["section-description"]}`,children:e.description})]})]})},e.key))})]})]})})})})]})}},77308:(e,t,s)=>{"use strict";s.d(t,{A:()=>em});var a=s(37876),i=s(14232),r=s(71865),o=s(61042),n=s.n(o),l=s(55424),c=s.n(l),d=s(98784),u=s(39970),m=s(88359),p=s(32414),h=s(34341),x=s(4253),g=s(18175),f=s(22237),w=s(14554),j=s(94901),b=s(1402),C=s(74188),v=s(11210),y=s(45050),_=s(15264),A=s(82620),S=s(87242),k=s(34826),N=s(44193),z=s(30958),$=s(67469),E=s(94938);function D(e){let{unityCommunication:t,showOneTimeSpinner:s,setShowOneTimeSpinner:r,showProUpgradeSpinner:o,setShowProUpgradeSpinner:n,showWatermarkDraftSpinner:l,setShowWatermarkDraftSpinner:c,isHdRecording:d,...u}=e,{trackButtonTapFE:m}=(0,j.Ay)(),[p,h]=(0,i.useState)(u.upgradeCost),[x,D]=(0,i.useState)("$"),T=async()=>{let e=localStorage.getItem("user");if(!e){let e=await (0,w.q)();D(e.currency),h(e.dayPass);return}let t=JSON.parse(e).currency;
1if(t){let e=Object.values(f).find(e=>e.stripeCurrencyCode===t?.toLowerCase());e&&(h(f[e.countryCode].dayPass),D(f[e.countryCode].currency))}else{let e=await (0,w.q)();D(e.currency),h(e.dayPass)}};return(0,i.useEffect)(()=>(T(),()=>{u.onDismiss?.()}),[]),(0,a.jsxs)(b.B,{p:"md",children:[(0,a.jsxs)(C.Y,{children:[(0,a.jsx)(v.M,{variant:"transparent",onClick:()=>{u.onDismiss?.(),u.setContainPremiumAssets(!1)},className:"color-primary",children:(0,a.jsx)(g.SI1,{size:24})}),(0,a.jsxs)(y.E,{component:"span",size:"sm",fw:"bold",className:"color-primary",children:["Unlock HD & Remove Watermark —"," ",(0,a.jsx)(_.K,{prefix:x,value:(0,E.$)(p),thousandSeparator:!0})]})]}),(0,a.jsxs)("div",{className:"d-flex flex-column",children:[(0,a.jsx)("p",{className:"color-primary fs-md w-100",children:"Unlock unlimited access for 24 hours to download without a watermark!"}),(0,a.jsxs)(A.r,{cols:2,spacing:"sm",children:[(0,a.jsx)(S.a,{style:{overflow:"hidden",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minHeight:"120px"},children:(0,a.jsx)($.l,{isHD:!1,showWatermark:!0})}),(0,a.jsxs)(S.a,{style:{overflow:"hidden",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minHeight:"120px"},children:[d&&(0,a.jsx)(k.E,{color:"#4A41D6",variant:"filled",size:"md",style:{position:"absolute",top:"15px",right:"5px",zIndex:10},children:"HD RECORDING"}),(0,a.jsx)($.l,{isHD:d,showWatermark:!1})]})]}),(0,a.jsxs)(b.B,{gap:12,mt:"md",children:[(0,a.jsxs)(N.$,{type:"submit",bg:"highlightedYellow.6",size:"md",style:{height:"40px"},c:"dark.8",fullWidth:!0,onClick:()=>{u.recordVideoHelper("purchase_pro_content_license")(),r(!0),m({button:"Purchase One Time license"})},children:[(0,a.jsxs)("span",{children:["Get 24hr All-Access —"," ",(0,a.jsx)(_.K,{prefix:x,value:(0,E.$)(p),thousandSeparator:!0})]}),(0,a.jsx)("span",{className:`${s?"d-inline":"d-none"} ps-2`,children:(0,a.jsx)("span",{className:"spinner-border color-primary-branded",role:"status",style:{width:"1.1rem",height:"1.1rem"}})})]}),(0,a.jsxs)(z.N,{onClick:()=>{if(!u.isExportInProgress){if(u.remainingWaterMark<=0){r?.(!0),u.recordVideoHelper("purchase_pro_content_license")(),m({button:"Free export exhausted -> Upgrade"});return}u.setExportInProgress(!0),u.recordVideoHelper("watermark_draft")(),c(!0),m({button:"Free export with watermark"})}},disabled:u.isExportInProgress,ta:"center",c:u.remainingWaterMark<=0?"dimmed":"#4A41D6",style:{cursor:u.isExportInProgress?"not-allowed":"pointer"},children:[(0,a.jsxs)("span",{children:["Free export with watermark (",u.remainingWaterMark," Left)"]}),(0,a.jsx)("span",{className:`${l?"d-inline":"d-none"} ps-2`,children:(0,a.jsx)("span",{className:"spinner-border color-primary-branded",role:"status",style:{width:"1.1rem",height:"1.1rem"}})})]})]})]})]})}var T=s(48906),V=s(63192),P=s(43828),I=s(54849),L=s(21379),M=s(68755),F=s(3023),O=s(31408),B=s(11871),R=s(87473),H=s(70336),Y=s(63394),W=s(9110),G=s(65201),Z=s(78831),q=s(55837),J=s(65792),Q=s(20762),U=s(88),X=s(67941),K=s(71465),ee=s(58680),et=s(17284),es=s(12818),ea=s(94570),ei=s(39739),er=s(40511),eo=s(54840),en=s(27566);let el=(0,i.forwardRef)(function(e,t){let{children:s,onClick:i,buttonProps:r={}}=e;return(0,a.jsx)(N.$,{className:n().customToggleButton,size:"sm",ref:t,onClick:e=>{e.preventDefault(),i(e)},...r,children:s})}),ec=[{label:"MP4 (video)",value:"MP4"},{label:"GIF",value:"GIF"},{label:"FBX (3D Character)",value:"FBX"}],ed=[{label:"MP4 (video)",value:"MP4"}],eu=[{label:"Enable",value:!0},{label:"Disable",value:!1}];function em(e){let{unityCommunication:t,isBasic:s=!1,...o}=e,{isNewTimeline:l,isReady:g}=(0,U.E)(),{subscriptionLevel:f,fetchSubscriptionInfo:w,fetchCreditsCount:v}=(0,i.useContext)(W.cy),{requestProjectData:_}=(0,i.useContext)(q.s6),{openInfoModal:A}=(0,en.x)(),{trackButtonTapFE:S}=(0,j.Ay)(),k=(0,d.useSetAtom)(X.W),[z,E]=(0,d.useAtom)(u._I8),[em]=(0,d.useAtom)(u.k67),ep=(0,d.useAtomValue)(K.T6),eh=(0,d.useAtomValue)(Y._z),ex=(0,d.useAtomValue)(K.f2),[,eg]=(0,d.useAtom)(u._2v),[ef,ew]=(0,d.useAtom)(u.giJ),[,ej]=(0,d.useAtom)(u.Lj5),eb=(0,d.useSetAtom)(u.Kk4),[,eC]=(0,d.useAtom)(u.Eai),[ev,ey]=(0,d.useAtom)(u.KN7),[e_]=(0,d.useAtom)(u.O1O),[eA]=(0,d.useAtom)(u.Dmg),[,eS]=(0,d.useAtom)(u.JAf),[,ek]=(0,d.useAtom)(u.BKh),eN=(0,d.useSetAtom)(u.nQi),[ez,e$]=(0,i.useState)(!1),[eE,eD]=(0,i.useState)([]),[eT,eV]=(0,i.useState)(0),[eP,eI]=(0,i.useState)(1500),[,eL]=(0,d.useAtom)(u.Rwy),{setShowLoginModal:eM}=(0,i.useContext)(T.D),[eF,eO]=(0,i.useState)(!1),[eB,eR]=(0,i.useState)(!1),[eH,eY]=(0,i.useState)(!1),[eW,eG]=(0,i.useState)(!1),[,eZ]=(0,d.useAtom)(u.IcO),[eq]=(0,d.useAtom)(u.TxV),[,eJ]=(0,d.useAtom)(u.Fc7),[,eQ]=(0,d.useAtom)(u.O2O),[,eU]=(0,d.useAtom)(u.fVK),[eX]=(0,d.useAtom)(u.APN),[eK,e0]=(0,d.useAtom)(u.tws),e1=(0,d.useSetAtom)(u.k2M),e2=(0,Z.A)(),e3=(0,d.useSetAtom)(u.Xm_),e5=(0,d.useAtomValue)(u.mOP),e8=(0,d.useAtomValue)(Y.pK),e4=(0,d.useSetAtom)(Y.bn),[e9]=(0,d.useAtom)(u.BQ3),e6=(0,d.useSetAtom)(u.Jlg),[e7,te]=(0,i.useState)(!1),{theme:tt}=(0,L.D)(),ts="light"===tt,{triggerTakeSnapshot:ta}=(0,J.s)(),ti=(0,Q.A)(),{interceptAndQueue:tr}=(0,es.H)(),{handlePlanSelected:to,createSubscriptionCallback:tn}=(0,ei.D)(),tl=(0,d.useSetAtom)(u.ohc),tc=(0,d.useSetAtom)(u.Lvv),td=(0,d.useSetAtom)(u.sel),tu=(0,d.useSetAtom)(u.sR4);(0,i.useEffect)(()=>{(ef||localStorage.getItem("recording_status"))&&(ey(!1),th())},[ef]),(0,i.useEffect)(()=>{eA&&E({...z,width:eA.width,height:eA.height})},[eA]);let tm=async()=>
1{if(eN(0),!JSON.parse((0,m.q)())){eM(!0),eL(!0);return}let e=ex.characters[0],t=(0,ee.jh)(ex,et.mO.BODY_ANIMATION,e?.uuid).map(e=>e.asset_id),s={data_type:e.data_type,id:e.id,name:e.name,data:e.data,animation_ids:t};e.data_type===eo.y.LOCAL&&(s.data=JSON.stringify({id:e.id,uuid:e.uuid}));let a=async()=>{td(0),tu(6e4+3e4*t.length),eJ(!1),ej(!0);let e=(0,er.A)(),{data:a}=await h.A.post(`/accounts/${(0,p.bA)()}/ai-assets/${e}/zip`,s,{withCredentials:!0,timeout:3e5}),{location:i,status_endpoint:r}=a,o=setInterval(async()=>{let{data:t}=await h.A.get(r,{withCredentials:!0}),{status:s}=t[0];("CUSTOM_FBX_DONE"===s||"CUSTOM_FBX_ERROR"===s)&&(clearInterval(o),"CUSTOM_FBX_DONE"===s?(td(100),setTimeout(async()=>{await (0,x.Gz)(i,`RIGS_${e.split("-").pop()}.zip`,ek,eN,()=>{eb(!0),ej(!1),eJ(!1),tc("Congrats! Your download is complete."),tl(!0),td(0)})},1e3)):"CUSTOM_FBX_ERROR"===s&&(eU({title:"Oops!",description:"We’re sorry! Your FBX exporting didn’t go through. Please try again later!",buttonText:"Back To Editor",primaryCTA:()=>{eQ(!1)}}),eQ(!0),td(0),ej(!1),eJ(!1)))},1e3)},{level:i}=await w();"free"!==i?await a():(e6(()=>a),eC(!0))},tp=(0,i.useCallback)(()=>{eO(!1),eR(!1),eY(!1),eG(!1)},[eO,eR,eY,eG]);(0,i.useEffect)(()=>{ev||tp()},[ev,tp]);let th=()=>{e$(!1),eV(0),eD([]),eI(0),te(!1),tp()},tx=e=>async()=>{try{if(z?.is_hd&&!["purchase_pro_content_license","pro_upgrade"].includes(e)){let{credits:t}=await v();e=t<1?"pro_upgrade":e}eN(0);let t=async()=>{let t=await (0,V.V)({isNewTimeline:l,recordingName:eX,setShowLoginModal:eM,setShowLoginConfirmModal:eL,setExportData:k,currentProjectData:l?{...ex,...z,recordUpgradeType:e}:e2?{...eh,...z,recordUpgradeType:e}:{...em,...z,recordUpgradeType:e},setVideoRecordStatusEndpoint:eg,setShowExportModal:ew,setExportingVideo:e0,origin:null,subscriptionLevel:f,setShowShareModal:eJ});t?.rateLimited||t?.status===429?(tl(!1),tc("Download limit reached! Please upgrade your plan to export more videos."),setTimeout(()=>{tl(!0)},100),e$(!0),ey(!0)):t?.success&&"watermark_draft"===e&&(tf.setRemainingWatermark(e=>Math.max(0,e-1)),tf.prefetchPremiumAssets())};if("pro_upgrade"===e||"purchase_pro_content_license"===e){let s={userId:(0,m.q)()?JSON.parse((0,m.q)()).user_id:"notApplicable",Screen:"share",purchaseType:"pro_upgrade"===e?"subscriptionM":"oneTime",purchaseAmount:"pro_upgrade"===e?"15":localStorage.getItem("stripe_premium_license_price")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"embeddedCheckOutPurchase",...s}),tr("pro_upgrade"===e?"pro_upgrade":"pass",()=>{tl(!1),tc("Continuing your export..."),setTimeout(()=>{tl(!0)},100),t()},"pro_upgrade"===e?"pro_upgrade_exporting_video_premium_assets":"record_video_from_timeline_purchase_pro_content_license");try{"pro_upgrade"===e?await tn():await to({plan:"pass",planType:"day"})}catch(e){console.error("Failed to initialize purchase flow:",e),e6(null)}finally{eR(!1)}return}await t(),eN(.5)}finally{tp()}},tg=e2?eh?.id:ep?.id,tf=(0,ea.D)({subscriptionLevel:f,projectId:tg,isPodcast:e2}),tw=async()=>{if(l){if(!g())return void e3(!0)}else if(e2){if(e8)return void e4(!0);if(em.audios.every(e=>0==e.length)){eU({title:"Oops!",description:"Oops! You need audio to download your project. Head to the voice tab to add audio files for each character.",buttonText:"Back To Editor",primaryCTA:()=>{eQ(!1)}}),eQ(!0);return}}else if(e5||(0,G.S)(em))return void e3(!0);if(localStorage.setItem("currentDownloadFormat",z.videoFormat.toLowerCase()),localStorage.setItem("currentProjectName",eX),eK)return void eO(!1);if(S({button:"Export"}),!(0,m.q)()){eO(!1),eM(!0),eL(!0);return}if(eO(!0),"FBX"===z.videoFormat)await tm(),eO(!1),ey(!1);else{let{level:e}=await w(),t="free"===e;if(t&&tf.preflightPromiseRef.current){let{success:e}=await tf.preflightPromiseRef.current;if(!e){eO(!1),A({title:"Uh-oh!",description:"Something went wrong while exporting your video. Please try again"}),tf.prefetchPremiumAssets();return}}if(t&&tf.shouldShowPaywall){tf.premiumAssets?.length>0&&eD(tf.premiumAssets),ta(),eO(!1),e$(!0),ey(!0);return}await tx(t?"watermark_draft":"subscription_level_bypass")()}};return(0,a.jsx)(i.Fragment,{children:(0,a.jsxs)(r.A,{show:ev,className:`${n()["dropdown-container"]}`,onToggle:eK||ef?void 0:e=>{if(e||E({...z,is_hd:!1}),eq)return void eZ(!0);if(e_?.state!=="project_loaded"){eS(!0),ey(!1);return}e?(ey(!0),e2&&_(),tf.prefetchPremiumAssets()):(th(),ey(!1))},onClick:eK||ef?e=>{(eK||ef)&&(e.preventDefault(),eU({title:"Oops!",description:"You can’t start a new download until your current one is completed. Try again shortly!",buttonText:"Back To Editor",primaryCTA:()=>{eQ(!1)}}),eQ(!0))}:void 0,children:[(0,a.jsx)(r.A.Toggle,{id:"fileSettings",ref:o.downloadButtonRef,as:el,onMouseDown:()=>{S({button:"Download"})},buttonProps:{color:e2?"var(--mantine-color-krikey-5)":void 0,disabled:e2?e8:e5&&!ti,leftSection:eK?(0,a.jsx)(M.a,{size:"xs",color:"currentColor"}):null},children:"Download"}),(0,a.jsx)(r.A.Menu,{variant:"dark",className:`${n()["premium-assets-dropdown-menu"]} background-elevation-2 border-0`,style:{width:"25.5rem"},align:"start",children:ez?(0,a.jsx)(D,{premiumAssets:eE,premiumAssetsCost:eT,setContainPremiumAssets:e$,upgradeCost:eP,recordVideoHelper:tx,showOneTimeSpinner:eB,setShowOneTimeSpinner:eR,showProUpgradeSpinner:eH,setShowProUpgradeSpinner:eY,showWatermarkDraftSpinner:eW,setShowWatermarkDraftSpinner:eG,onDismiss:tp,downloadButtonRef:o.downloadButtonRef,remainingWaterMark:tf.remainingWatermark,isHdRecording:!!z?.is_hd,isExportInProgress:e7,setExportInProgress:te}):(0,a.jsxs)(b.B,{p:"md",style:{color:"var(--mantine-color-text)"},children:[(0,a.jsx)(y.E,{fw:700,children:"Download your Video"}),(0,a.jsx)(y.E,{c:"dimmed",size:"sm",children:"To share it via public links, social media or your browser. Customize your options below and start sharing!"}),(0,a.jsx)(b.B,{children:(0,a.jsx)(F.m,{label:"File format",labelProps:{fw:600},value:z.videoFormat,data:e2?ed:ec,onChange:e=>{E({...z,videoFormat:e.currentTarget.value,is_hd:!1}),S({button:`Export file->${e.currentTarget.value}`})}})}),"FBX"!==z.videoFormat&&!e2&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O.k,{label:"Project aspect ratio",labelProps:{fw:600},placeholder:eA?`${eA.size_preset??""} (${eA.width}\xd7${eA.height} px)`:`16:9 (${z.width}\xd7${z.height} px)`,readOnly:!0,className:`${c().disabledMantineInputText}`,leftSection:eA?.platform?(0,P.D)({platform:eA.platform,size_preset:eA.
1size_preset,icon_size:"1rem"}):(0,a.jsx)(I.TG1,{color:ts?"black":"white",size:"1rem"}),rightSection:(0,a.jsx)(N.$,{h:24,me:12,size:"xs",variant:"light",bg:ts?"krikey.1":"krikey.3",onClick:()=>{e1(!0),ey(!1)},leftSection:(0,a.jsx)(H.Ehq,{color:ts?"black":"white",size:12}),children:(0,a.jsx)(y.E,{c:ts?"krikey":"white",fz:12,children:"Resize"})}),styles:{rightSection:{pointerEvents:"auto"},leftSection:{pointerEvents:"none"}},rightSectionWidth:"30%"}),"GIF"===z.videoFormat&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C.Y,{py:"sm",children:(0,a.jsx)(B.S,{label:"Background removal",labelPosition:"left",styles:{root:{flex:1},body:{display:"flex",flexDirection:"row",justifyContent:"space-between"},label:{fontWeight:600},input:{border:"solid 2px #4E616B"}},checked:z.removeBackground,onChange:e=>{E({...z,removeBackground:e.currentTarget.checked})}})})})]}),"FBX"!==z.videoFormat&&["team","pro","pass","edu","lite"].includes(localStorage.getItem("subscriptionLevel"))&&(0,a.jsx)(F.m,{label:"Attribution watermark",labelProps:{fw:600},data:eu,value:z.watermark,onChange:e=>{let t="true"===e.currentTarget.value;E({...z,watermark:t}),S({button:`Watermark->${t}`})}}),!["FBX","GIF"].includes(z.videoFormat)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.Y,{children:(0,a.jsx)(R.d,{label:"HD Recording",labelPosition:"left",styles:{root:{flex:1},body:{display:"flex",flexDirection:"row",justifyContent:"space-between"},label:{fontSize:"var(--mantine-font-size-sm)",fontWeight:600}},size:"md",checked:z?.is_hd,onChange:e=>{E({...z,is_hd:e.target.checked}),e.target.checked&&ta(!1,!0)}})}),(0,a.jsx)(y.E,{size:"sm",c:"dimmed",children:"Let your work shine with our new HD filter!"}),z?.is_hd&&(0,a.jsx)($.l,{isHD:z?.is_hd,showWatermark:!1})]}),(0,a.jsx)(N.$,{loading:eF,disabled:e7,onClick:e=>{tw()},children:z?.is_hd&&e9?"Download (1 credit)":"Download"})]})})]})})}},79375:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});var a=s(37876);s(14232);var i=s(84407),r=s(59702),o=s(94901),n=s(98784),l=s(39970),c=s(74188),d=s(45050),u=s(17457),m=s(70647),p=s(5973);function h(){let{trackButtonTapFE:e}=(0,o.Ay)(),[t,s]=(0,n.useAtom)(l.ohc),h=(0,n.useAtomValue)(l.Lvv),x="error"===(0,n.useAtomValue)(l.bqJ);return(0,a.jsx)(r.A,{position:"top-center",className:"position-fixed pt-5 mt-4",style:{zIndex:"var(--mantine-z-index-max)"},children:(0,a.jsx)(i.A,{show:t,style:{background:"rgba(255, 255, 255, 0.95)",backdropFilter:"blur(12px)",border:x?"1px solid rgba(239, 68, 68, 0.2)":"1px solid rgba(0, 0, 0, 0.08)",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03)",borderRadius:"24px",width:"fit-content",maxWidth:"90vw"},onClose:()=>s(!1),delay:5e3,autohide:!0,children:(0,a.jsx)(i.A.Body,{style:{padding:"8px 16px"},children:(0,a.jsxs)(c.Y,{gap:"xs",wrap:"nowrap",children:[x?(0,a.jsx)(m.A,{size:24,color:"#EF4444",style:{flexShrink:0}}):(0,a.jsx)(p.A,{size:24,color:"#10B981",style:{flexShrink:0}}),(0,a.jsx)(d.E,{c:"#111827",size:"sm",fw:500,style:{lineHeight:1.4},children:h}),(0,a.jsx)(u.J,{c:"gray.5",size:"sm",variant:"transparent",onClick:()=>{e({button:"Close"}),s(!1)},style:{flexShrink:0}})]})})})})}},97633:e=>{e.exports={"modal-body":"congrats_modal-body__J5dOh","title-1":"congrats_title-1__mJUxb","title-2":"congrats_title-2__IL3Or",description:"congrats_description__YTWFP","section-background":"congrats_section-background__bj6Zb",padding:"congrats_padding__x4tTh",section:"congrats_section__Yg1_H","section-title":"congrats_section-title__TZJwP","section-description":"congrats_section-description__n3DD8","text-gradient":"congrats_text-gradient__kQbcK"}},97990:(e,t,s)=>{"use strict";s.d(t,{A:()=>C});var a=s(37876),i=s(71865),r=s(61042),o=s.n(r),n=s(98784),l=s(39970),c=s(48230),d=s.n(c),u=s(14232),m=s(88359),p=s(48906),h=s(51202),x=s(94901),g=s(63394),f=s(78831),w=s(88),j=s(71465),b=s(42017);function C(e){let{unityCommunication:t,...s}=e,{trackButtonTapFE:r}=(0,x.Ay)(),{isNewTimeline:c}=(0,w.E)(),[C,v]=(0,n.useAtom)(l.C3x),[,y]=(0,n.useAtom)(l.Slj),[,_]=(0,n.useAtom)(l.SSU),[,A]=(0,n.useAtom)(l.lBn),[,S]=(0,n.useAtom)(l.Fde),[,k]=(0,n.useAtom)(l.wFT),[,N]=(0,n.useAtom)(l.Sbp),[,z]=(0,n.useAtom)(l.aB0),[$]=(0,n.useAtom)(j.AQ),[,E]=(0,n.useAtom)(l.z_A),[,D]=(0,u.useState)([]),[,T]=(0,u.useState)(0),[V]=(0,n.useAtom)(l.ASV),[,P]=(0,n.useAtom)(l.Rwy),I=(0,n.use
1SetAtom)(h.L$),{setShowLoginModal:L}=(0,u.useContext)(p.D),[M]=(0,n.useAtom)(l.O1O),[,F]=(0,n.useAtom)(l.JAf),[,O]=(0,n.useAtom)(l.IcO),[B]=(0,n.useAtom)(l.TxV),R=(0,n.useAtomValue)(l.Gn7),H=(0,n.useAtomValue)(l.mOP),Y=(0,n.useAtomValue)(g.pK),W=location.href.includes("visual-podcasts"),G=(0,n.useAtomValue)(l.wuY),Z=(0,f.A)(),q=(0,n.useSetAtom)(l.Pzn),J=(0,n.useSetAtom)(j.In),Q=(0,n.useAtomValue)(j.AQ),U=(0,n.useAtomValue)(j.f2),X=(0,n.useSetAtom)(l.ohc),K=(0,n.useSetAtom)(l.Lvv),ee=(0,n.useSetAtom)(j.kY),et=Z?"basic":G;(0,u.useEffect)(()=>{(0,m.q)()&&(0,m.wZ)().then(e=>{e&&e.credits&&T(e.credits)})},[]),(0,u.useEffect)(()=>{D(localStorage.getItem("accounts")?JSON.parse(localStorage.getItem("accounts")):[])},[]);let es=async()=>{if(!(0,m.q)()){L(!0),P(!0),I("save_project");return}return B?void O(!0):W||M?.state==="project_loaded"?void(c||W||t({type:"RequestProjectData",data:{},code:200,status:"",message:""}),$?(await (0,b.VS)(Q,U),X(!0),K("Project Saved successfully! \uD83C\uDF89"),c&&(q(!0),J(!0))):(E({inputLabel:"Project",title:"Save Project",action:"SaveProject",buttonText:"Save"}),N(!0))):void F(!0)},ea=M?.state!=="project_loaded"&&!B||M?.state!=="avatarcreator_loaded"&&B;return(0,a.jsxs)(i.A,{className:`${o()["dropdown-container"]}`,style:{height:"2.25rem"},children:[(0,a.jsx)(i.A.Toggle,{id:"fileSettings",disabled:ea,className:`${o()["dropdown-button"]}`,onMouseDown:()=>{r({button:"File"})},style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem"},children:"File"}),(0,a.jsxs)(i.A.Menu,{className:`${o()["dropdown-menu"]}`,style:{overflowY:"auto"},children:[(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-item"]}  ${R?o().disabled:""}`,onClick:()=>{if(r({button:"File->New Project"}),W)return void v("Generate Podcast");B?O(!0):v("Quick Animate")},disabled:R,children:"New Project..."}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-item"]} ${W&&!$||!W&&H||!W&&!V||"Quick Animate"===C?o().disabled:""}`,onClick:()=>{B?O(!0):(c||W||t({type:"RequestProjectData",data:{},code:200,status:"",message:""}),$&&E({inputLabel:"Project",title:"Rename Project",action:"SaveProject",buttonText:"Rename"}),N(!0)),r({button:"File->Rename Project"})},disabled:W&&!$||!W&&!V||"Quick Animate"===C||!W&&H||W&&Y,style:{opacity:"Quick Animate"===C?.5:1},children:"Rename Project"}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-item"]} ${!W&&H||W&&!$||!W&&!V||"Quick Animate"===C?o().disabled:""}`,onClick:()=>{B?O(!0):(W||c||t({type:"RequestProjectData",data:{},code:200,status:"",message:""}),$&&E({inputLabel:"Project",title:"Duplicate Project",action:"DuplicateProject",buttonText:"Duplicate",inputPlaceHolder:"Enter a name for the duplicated project"}),N(!0)),r({button:"File->Duplicate Project"})},disabled:W&&!$||!W&&!V||!W&&H||W&&Y||"Quick Animate"===C,style:{opacity:"Quick Animate"===C?.5:1},children:"Duplicate Project"}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-item"]} ${W&&!$||!W&&!V||!W&&H||"Quick Animate"===C?o().disabled:""}`,onClick:()=>{(W||!H)&&(B?O(!0):es(),r({button:"File->Save Project"}))},disabled:W&&!$||!W&&!V||"Quick Animate"===C||!W&&H||W&&Y,style:{opacity:"Quick Animate"===C?.5:1},children:"Save Project"}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-item"]}`,as:"a",href:"/",onClick:()=>{r({button:"File->Recent Project"})},children:"Dashboard"}),(0,a.jsx)(i.A.Divider,{}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-item"]} ${W&&!$||!W&&!V||!W&&H||"Quick Animate"===C?o().disabled:""}`,onClick:()=>{(W||!H)&&(B?O(!0):s.downloadButtonRef?.current?.click(),r({button:"File->Download Video"}))},disabled:W&&!$||!W&&!V||!W&&H||"Quick Animate"===C||W&&Y,style:{opacity:"Quick Animate"===C?.5:1},children:W?"Download Podcast Video":"Download Video"}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-item"]}`,children:(0,a.jsx)(d(),{href:"/",legacyBehavior:!0,children:(0,a.jsx)("div",{onClick:()=>{S(!0),A(!1),k(!1),ee(),r({button:"File->Recorded Videos"})},children:"Recorded Videos"})})}),"basic"!==et&&!W&&!c&&(0,a.jsx)(i.A.Divider,{}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-item"]}`,hidden:"basic"===et||W||c,onClick:()=>{B?O(!0):(v("Animation"),y("generate")),r({button:"File->Generate New Animation"})},disabled:!V,style:{opacity:V?void 0:.5},children:"Generate New Animation"}),!W&&!c&&"basic"!==et&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A.Divider,{}),(0,a.jsx)(i.A.ItemText,{className:`${o()["dropdown-item-text"]}`,children:"Upload"}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-sub-item"]}`,onClick:()=>{v("Present"),_("upload"),z(!0),r({button:"File->Upload Photo"})},children:"Photo"}),(0,a.jsx)(i.A.Item,{className:`${o()["dropdown-sub-item"]}`,onClick:()=>{v("Audio"),_("upload"),r({button:"File->Upload Audio"})},children:"Audio"})]})]})]})}}}]);

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.