PageSourceSearch

https://app.minvo.pro/assets/FeedOutlet-fGXzvHaj.js

js minvo.pro collected 2026-09-30 17:32:59 UTC 26,542 bytes, 2 lines download raw bytes

1import{r as c,x as Ee,A as k,C as B,D as we,b as q,l as O,G as be,j as e,h as p,H as P,I,J as Ce,K as ye,n as v,N as Pe,O as J,P as D,Q as Te,R as ee,U as Q,V as te,k as Ne,W as Se,M as se,X as re,Y as Fe,Z as Ue,_ as Re,$ as _e,a0 as N,a1 as Ie,a2 as A,a3 as L,a4 as oe,a5 as Me,a6 as ae,a7 as ke,a8 as W,a9 as Be}from"./index-C8XSz261.js";import{u as ne,P as Oe,U as le,H as Ae}from"./useCompleteFTUE-B52SJTCv.js";import{u as Le}from"./useStudioShell-CG2HScHn.js";import{C}from"./CoreModal-ByS-G2fX.js";import{H as We}from"./HeaderTabBar-DrfhlHhR.js";import{f as X,d as Y,s as z}from"./time-CPez7nQe.js";import{T as M}from"./TextButton-C-eudnuM.js";import{S as He}from"./SocialPlatformLogo-BkiyF3F-.js";import{E as $e}from"./ExportStatusIndicator-CF2MdpwJ.js";import{F as Ge}from"./ExclamationTriangleIcon-DDXPV0r3.js";import{F as Ve}from"./ChevronUpIcon-CnKa4cl8.js";import{s as Ke}from"./subHours-DTnik96x.js";import{F as Qe}from"./ChevronDownIcon-CXYEaiPz.js";import{u as ie,S as ce}from"./useQueryParam-CglSMp4D.js";import{u as H,a as de,d as ue,N as b,M as me}from"./brandStore-BUAq0-tx.js";import{P as Xe}from"./PrivateRoute-CxHr3Nsw.js";import{F as Ye}from"./CheckIcon-CIPM81fx.js";import{u as pe}from"./useNavigateToBilling-BK0m1b-K.js";import{F as ze}from"./BoltIcon-T2Pr94DT.js";import{f as Ze,a as qe,b as Je,q as De,c as et,d as tt,l as st}from"./planInfo-CnPUheep.js";import"./render-0HlhCVFK.js";import"./open-closed-cVqbYH_P.js";import"./Dropdown-CXt81ZMo.js";import"./ChevronDownIcon-Gj7DKr_b.js";import"./helpers-CHErHg7n.js";import"./InformationCircleIcon-D5Zjdljm.js";import"./index-D3ocIP07.js";import"./useKeyboardShortcut-BF2iNdLB.js";import"./TextInput-Cr95odAr.js";import"./ChevronRightIcon-1NXanjzm.js";import"./ArrowLeftIcon-CJVWzla_.js";import"./RetranscribeEpisodeModal-BhMBug4M.js";import"./AlertModal-BzxAyYUs.js";import"./MomentoCheckboxes-CM4Yq9XI.js";import"./LinkImportUpgradeNotice-B1tMbGtQ.js";import"./episodeStore-D23FVYPG.js";import"./utils-BXV2ivSa.js";import"./types-Dg_Q5YWi.js";import"./PortraitPiPLayout-D0l0o2wF.js";import"./Toggle-BB6uWzFx.js";import"./label-B_4nhI9S.js";import"./index-CsNp4Ou_.js";import"./MomentoRadioGroup-pJsGOybK.js";import"./owner-CALaXFTW.js";import"./focus-management-DqjDPjRh.js";import"./EnvelopeIcon-BT1AQZGB.js";import"./ClipStartAndEndSelection-C1MKKVqP.js";import"./index-D1QzX4yc.js";import"./index-CWWmca4P.js";import"./Tag-C0JtGeG6.js";import"./FeatureTitle-CdL2HmEk.js";import"./templatesTimeHelpers-CNTOqGYA.js";import"./EpisodeLanguageDropdown-Dk-hPIfJ.js";import"./transcriptionRunStore-C20PKttj.js";import"./ArrowDownOnSquareIcon-CMvEepp6.js";import"./ArrowPathIcon-iz5lgvEK.js";function rt({title:t,titleId:s,...o},r){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},o),t?c.createElement("title",{id:s},t):null,c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const ot=c.forwardRef(rt);function at({title:t,titleId:s,...o},r){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},o),t?c.createElement("title",{id:s},t):null,c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const nt=c.forwardRef(at);function lt({title:t,titleId:s,...o},r){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},o),t?c.createElement("title",{id:s},t):null,c.createElement("path",{d:"M5.625 3.75a2.625 2.625 0 1 0 0 5.25h12.75a2.625 2.625 0 0 0 0-5.25H5.625ZM3.75 11.25a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75ZM3 15.75a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75ZM3.75 18.75a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75Z"}))}const it=c.forwardRef(lt),ct=({exportData:t,onClose:s})=>{const{addAlert:o}=Ee(),r=k(),[a,n]=c.useState(!1),l="Queue experiencing high demand",i="Export in progress but delayed",{mutateAsync:u}=B.renders.cancelRenderExport.useMutation(),m=async()=>{n(!0);try{t.social_type==="download"?(await u({renderId:t.render_id}),r.markRenderCanceled(t.render_id)):r.cancelRender(t.render_id),o({title:"Export Cancelled",message:"The export has been successfully cancelled",type:"success"})}catch{o({title:"Error",message:"Failed to cancel render",type:"error"})}n(!1)},h=t!=null&&t.created_on?new Date(t.created_on).getTime():0,d=(t==null?void 0:t.render_status)??"",g=(t==null?void 0:t.progress)??null,x=300*1e3,E=we(1e3),U=d==="rendering"&&g==null,S=d==="rendering"&&g!==null&&g>0,y=U&&h>0&&E-h>x,T=S&&h>0&&E-h>x,w=t.moment_title||"Moment",j=t.scheduled_for?t.scheduled_for*1e3:t.created_on,F=!!t.expires_on&&t.expires_on*1e3<E,f=q(),{feedID:G}=O(),he=()=>{t.deleted_on||(f(`/${G}/video/${t.render_id}`,{state:{from:window.location.pathname.replace(window.location.origin,"")}}),s())},fe=()=>{const K=t.episode_id;K&&(f(`/${G}/episode/${K}/moments`),s())},{isSupportAdmin:ge}=be(),ve=ge&&e.jsx(v,{title:"",tooltipText:"Copy Render and Social Post ID",tooltipPosition:"left",icon:e.jsx(nt,{}),isSecondary:!0,className:"border-0",onClick:()=>navigator.clipboard.writeText(`render: ${t.render_id} | social post: ${t.social_post_id}`)}),[je,V]=c.useState(!1),R=y?{textColor:"text-orange-800",darkTextColor:"dark:text-orange-100"}:{textColor:"text-yellow-800",darkTextColor:"dark:text-yellow-100"};return e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex cursor-default items-center justify-between gap-8 border-b border-b-shade-900 px-2 py-4 hover:bg-shade-800",children:[e.jsxs("div",{className:"flex w-1/3 flex-col gap-1",onClick:he,children:[e.jsx("div",{className:t.deleted_on?"cursor-default":"flex cursor-pointer",children:e.jsx(p,{variant:"p",className:P("line-clamp-1 flex text-sm font-semibold",t.deleted_on?"":"underline-offset-2 hover:underline"),children:w})}),(T||y)&&e.jsxs("div",{className:P("flex flex-nowrap items-center gap-2 text-xs",R.textColor,R.darkTextColor),children:[e.jsx(Ge,{className:"h-4 w-4"}),e.jsx(p,{variant:"p",textColor:R.textColor,className:R.darkTextColor,onClick:fe,children:y?l:i})]})]}),e.jsxs("div",{className:"flex w-2/3 items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx($e,{exportData:t,onFailedPostClick:()=>V(!0)}),e.jsx(p,{variant:"p",className:"w-20 text-xs text-shade-500",children:t.created_on&&X(new Date(t.created_on),{shouldIncludeTime:!1,shouldIncludeYear:!0})})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"text-xs text-shade-500",children:I(t.social_type)&&e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx(He,{platform:t.social_type,width:"w-3"}),j&&X(new Date(j),{shouldIncludeTime:!1})]})}),t.render_url&&t.render_url!==""&&t.render_status==="complete"?e.jsx(M,{icon:e.jsx(ot,{}),title:"Download",onClick:()=>void Ce({url:String(t.render_url),filename:`${t.moment_title??"moment"}.mp4`,surface:"export-center",renderID:t.render_id}),isSecondary:!0,disabled:!!t.deleted_on||F,disabledTooltipText:t.deleted_on?"Export expired and deleted":"Export has expired"}):e.jsx(M,{title:"Cancel",onClick:m,icon:e.jsx(ye,{}),isSecondary:!0,textColor:"text-shade-500",hoverTextColor:"hover:text-shade-300",hoverBgColor:"hover:bg-transparent",isLoading:a,loadingText:"Cancelling..."}),ve]})]})]}),je&&e.jsxs("div",{className:"flex justify-between gap-4 bg-shade-800 p-4",children:[e.jsx(p,{variant:"p",className:"text-xs text-shade-300",children:t.failure_reason&&`Failure Reason: ${t.failure_reason}`}),e.jsx(M,{icon:e.jsx(Ve,{}),title:"",tooltipText:"Hide Failure Reason",onClick:()=>V(!1),tooltipPosition:"left"})]})]},t.social_post_id)},_={EXPORT:{EXPORT_DURATION_WARNING_SEC:600,EXPORT_DURATION_ERROR_SEC:1200}},dt=()=>{const t=new Date,s=Ke(t,24),o=Y(s),r=Y(t),{data:a,error:n,isLoading:l}=B.healthCheck.getExportHistory.useQuery({startTimestamp:o,endTimestamp:r,parentOrg:"minvo"});return n&&console.error("Failed to fetch export health:",n),{exportHealthSummary:a?ut(a):null,isHealthLoading:l}},ut=t=>
1{if(!t.length)return{total1080pExports:0,average1080pDuration:0,total4kExports:0,average4kDuration:0};const s=t.reduce((i,u)=>i+(u.numberOf1080pExports??0),0),o=t.reduce((i,u)=>i+(u.numberOf4kExports??0),0),r=t.reduce((i,u)=>i+(u.average1080pExportDurationSec??0)*(u.numberOf1080pExports??0),0),a=t.reduce((i,u)=>i+(u.average4kExportDurationSec??0)*(u.numberOf4kExports??0),0),n=s>0?r/s:0,l=o>0?a/o:0;return{total1080pExports:s,average1080pDuration:n,total4kExports:o,average4kDuration:l}},mt=()=>{const{exportHealthSummary:t,isHealthLoading:s}=dt(),o=s||t===null?"bg-shade-500":t.average4kDuration>_.EXPORT.EXPORT_DURATION_ERROR_SEC?"bg-red-500":t.average4kDuration>_.EXPORT.EXPORT_DURATION_WARNING_SEC?"bg-yellow-500":"bg-green-500",r=s||t===null?"bg-shade-500":t.average1080pDuration>_.EXPORT.EXPORT_DURATION_ERROR_SEC?"bg-red-500":t.average1080pDuration>_.EXPORT.EXPORT_DURATION_WARNING_SEC?"bg-yellow-500":"bg-green-500";return e.jsxs("div",{className:"flex items-end gap-4 bg-shade-900 text-sm text-shade-400 hover:text-shade-200",children:[e.jsx(Pe,{tooltipText:"Export taking too long? Visit our status page for more information",children:e.jsx(p,{variant:"a",onClick:()=>window.open("https://status.minvo.pro/","_blank"),textColor:"text-inherit",children:"Average Export Time:"})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:P("h-2 w-2 rounded-full",r)}),e.jsxs(p,{variant:"h6",children:["1080 - ",s?"Loading...":t!==null?z(t.average1080pDuration):"N/A"," MINS"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:P("h-2 w-2 rounded-full",o)}),e.jsxs(p,{variant:"h6",children:["4K - ",s?"Loading...":t!==null?z(t.average4kDuration):"N/A"," MINS"]})]})]})},pt=new Set(["complete","failed","canceled"]),xt=({renderID:t})=>{const{applyRunUpdate:s}=k(),{data:o}=B.renders.getRenderExportStatus.useQuery({renderId:t},{refetchInterval:r=>{const a=r.state.data;return!(a!=null&&a.status)||!pt.has(a.status)||a.status==="complete"&&!a.renderUrl?3e3:!1},refetchIntervalInBackground:!0,refetchOnWindowFocus:!0,retry:!1});return c.useEffect(()=>{!o||!o.status||s({renderID:t,status:o.status,progress:o.progress??void 0,renderUrl:o.renderUrl??void 0,momentTitle:o.momentTitle??void 0})},[o,t,s]),null},ht=({isOpen:t,onClose:s})=>{const o=J(),r=c.useMemo(()=>[...o].sort((d,g)=>g.created_on-d.created_on),[o]),a=c.useMemo(()=>r.filter(d=>!I(d.social_type)),[r]),n=c.useMemo(()=>r.filter(d=>I(d.social_type)),[r]),l=[{title:"All",value:"all",tabItemCount:r.length},{title:"Downloads",value:"renders",tabItemCount:a.length},{title:"Social Posts",value:"posts",tabItemCount:n.length}],[i,u]=c.useState(l[0]),m=i.value==="all"?r:i.value==="renders"?a:n,h=c.useMemo(()=>o.filter(d=>D(d.render_status)&&d.social_type==="download"),[o]);return e.jsxs(e.Fragment,{children:[h.map(d=>e.jsx(xt,{renderID:d.render_id},`render-poll-${d.render_id}`)),e.jsx(C,{isOpen:t,onClose:s,header:e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsx(p,{variant:"h2",children:"Exports"}),e.jsx(We,{containerClassName:"max-w-max rounded-full px-4 bg-shade-800",tabs:l,onTabSelect:d=>u(d),selectedTab:i})]}),footer:e.jsx(mt,{}),maxHeightClassName:"max-h-[70vh]",maxWidthClassName:"max-w-4xl",children:e.jsxs("div",{className:"flex flex-col divide-y divide-shade-800 overflow-y-auto",children:[m.map(d=>e.jsx(ct,{exportData:d,onClose:s},d.render_id+"-"+d.social_post_id)),m.length===0&&e.jsxs(p,{variant:"p",textColor:"text-shade-400",className:"self-center p-8",children:["No ",i.value==="all"?"exports":i.value," found"]})]})})]})},ft=({feedID:t})=>{const{feedID:s}=O(),o=t??s,r=Te(),a=Le(),n=J(),l=k(),i=ne(),u=ee(Q.MOMENTS_WELCOME),m=te();c.useEffect(()=>{l.initExportsStore({feedID:String(o)})},[o,l]),c.useEffect(()=>{n.length>0&&m&&!u&&i(Q.MOMENTS_WELCOME)},[n,u,m,i]);const h=n.filter(f=>f.render_status==="complete"&&!f.notif_seen).length,d=n.filter(f=>f.render_status==="failed"&&!f.notif_seen).length,g=h>0||d>0,x=d>0,E=g&&e.jsx("div",{className:P("absolute right-1 top-1 flex h-8 w-8 -translate-y-1/2 translate-x-1/2 transform items-center justify-center rounded-full text-shade-100",x?"bg-red-500":"bg-green-500"),children:e.jsx("p",{className:"p-1.5 text-xs font-bold",children:h})}),S=c.useMemo(()=>n.filter(f=>D(f.render_status)&&!I(f.social_type)),[n]).length>0;let y="Exports",T=e.jsx(it,{className:"w-5"}),w="border-shade-500",j="text-shade-400";S?(T=e.jsx(Ne,{size:4,backgroundColor:"text-yellow-900",color:"fill-yellow-400"}),y="Exporting...",w="border-yellow-500",j="text-yellow-500"):g&&x?(w="border-red-500",j="text-red-500"):g&&!x?(w="border-green-500",j="text-green-500"):r&&(T=e.jsx(Qe,{className:"w-5"}));const F=e.jsxs("div",{className:P("fixed bottom-5 right-24 z-50 flex cursor-pointer items-center justify-center gap-4 roun
1ded-full border-2 bg-shade-900 px-6 py-3 shadow-sm shadow-shade-900 transition-all duration-150 active:scale-95",!r&&"hover:scale-105",S&&"px-5",j,w),onClick:()=>{r||l.markExportsAsSeen(),l.setIsExportCenterOpen(!r)},children:[T,e.jsx("p",{className:"select-none text-sm",children:y}),E]});return e.jsxs(e.Fragment,{children:[a==="topnav"&&F,e.jsx(ht,{isOpen:r,onClose:()=>l.setIsExportCenterOpen(!1)})]})},gt=({isOpen:t,steps:s,closeModal:o})=>{var h,d,g;const[r,a]=c.useState(0),n=r===s.length-1,[l,i]=c.useState(s);l!==s&&(i(s),a(0));const u=()=>{n?o():a(x=>x+1)},m=s[r];return m===void 0?null:e.jsxs(C,{isOpen:t,onClose:o,className:"",paddingClassName:(h=s[r])!=null&&h.isFullScreen?"p-0":"p-6",maxWidthClassName:"max-w-3xl",children:[e.jsx("div",{className:"flex h-96 w-full overflow-hidden",children:m!=null&&m.imageSrc?e.jsx("img",{className:P("w-full rounded-2xl border border-shade-700 object-cover",s[r]===m?"":"hidden opacity-0"),src:(d=s[r])==null?void 0:d.imageSrc,alt:""},m.title):(m==null?void 0:m.component)!==void 0?e.jsx(m.component,{handleNext:u},`welcome-component-${m.title}`):null}),!((g=s[r])!=null&&g.isFullScreen)&&e.jsxs("div",{className:"flex flex-col space-y-6 py-6",children:[s.length>1&&e.jsx("div",{className:"flex w-full items-center justify-center space-x-4",children:s.map((x,E)=>e.jsx("div",{className:P("h-2 w-2 rounded-full",E===r?"bg-shade-100":"bg-shade-700")},x.title))}),e.jsxs("div",{className:"flex w-full flex-col items-center justify-center space-y-2 px-8",children:[s[r].title&&e.jsx(p,{variant:"h2",children:s[r].title}),s[r].description&&e.jsx(p,{variant:"p",className:"text-center",textColor:"text-shade-400",children:s[r].description})]}),e.jsx("div",{className:"flex w-full flex-col items-center justify-center space-y-4",children:e.jsx(v,{onClick:u,title:"Continue",className:"px-8",bgColor:"bg-primary-600"})})]})]})},vt=()=>{const t=te(),s=Se(),[o,r]=ie(se.ftueModal,ce),a=Object.entries(Oe).find(([u])=>s.pathname.includes(u)),n=a?a[1]:null,l=n?le[n]:"none",i=ee(l);c.useEffect(()=>{t&&!i&&n&&!re&&o!==n&&r(n,"replaceIn")},[t,i,s.pathname,n,o,r])},jt=()=>{const t=ne(),[s]=ie(se.ftueModal,ce);vt();const o=s?le[s]:"none",r=()=>{t(o)};return!s||re?null:e.jsx(gt,{steps:Ae[o]??[],isOpen:!!s,closeModal:r})},Et=({children:t})=>{const{feedID:s}=O(),o=Fe(),r=q(),a=H();return c.useEffect(()=>{s&&(o.find(n=>String(n.id)===s)?a.fetchFeedDetails(s):r("/login"))},[s,o,r,a]),e.jsx(e.Fragment,{children:t})},wt=()=>{const t=Ue(),s=Re(),o=_e(),r=N(),a=()=>r.closeBillingExpiredModal();if(c.useEffect(()=>{const l=setInterval(()=>{if(s||!o){clearInterval(l);return}r.fetchPlanInfo()},1e4);return()=>clearInterval(l)},[s,r,o]),!s)return e.jsx(C,{isOpen:o,onClose:a,title:"✅ Successful Payment",footer:e.jsx(v,{onClick:a,title:"Close"}),children:e.jsx("p",{className:"text-shade-300",children:"Your payment has been successfully processed. Thank you for using Minvo."})});const n=Ie+((t==null?void 0:t.planType)==="stripeSubscription"?`?prefilled_email=${t.stripeBillingEmail}`:"");return e.jsx(C,{isOpen:o,onClose:a,title:"Your Payment is Past Due",footer:e.jsx("div",{className:"flex items-center gap-4",children:e.jsx(v,{title:"Update Payment Method",onClick:()=>window.open(n,"_blank")})}),children:e.jsxs(p,{variant:"p",children:["Your last payment did not go through, so your plan is paused: until it does, your account runs on the plan you would have without the subscription, and its limits apply.",e.jsx("br",{}),"Update your payment method and everything comes back the moment the payment succeeds. Nothing you made is lost."]})})},$=({label:t})=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ye,{className:"h-4 w-4 shrink-0 text-green-500"}),e.jsx(p,{variant:"p",textColor:"text-shade-100",children:t})]}),bt={billingUpgradeURL:"https://church.tech/settings/subscription",coverImageURL:"",title:"",description:"",features:[]},Ct={billingUpgradeURL:"https://contentstudio.gloo.us/clips-upgrade",coverImageURL:"/assets/images/modals/gloo-upgrade-billing-modal.png",title:"Take Your Message Further With Content Studio",description:"Produce polished sermon content and grow your ministry with ease",features:["Create advanced sermon clips with advanced video tools (AI Reframing, AI Studio Audio, Remove Silences, Remove Filler Words, Translate Video Captions)","Add engaging video effects (Clip Pulse & Intro Effects)","Create images from videos (Video to Image Quotes)","Schedule posts across social media automatically"]},yt={billingUpgradeURL:"",coverImageURL:"",title:"",description:"",features:[]},xe=({isOpen:t,onClose:s})=>{const{isChurchTech:o,isGloo:r}=A(),{billingUpgradeURL:a,coverImageURL:n,title:l,description:i,features:u}=c.useMemo(()=>o?bt:r?Ct:yt,[o,r]),m=()=>window.open(a,"_self");return e.jsx(C,{isOpen:t,onClose:s,maxWidthClassName:"max-w-4xl",children:e.jsxs("div",{className:"flex w-full gap-4",children:[e.jsx("div",{className:"h-[400px] w-2/3 overflow-hidden rounded-md",children:e.jsx("img",{src:n,className:"object-cover",alt:"billing-modal-side-image"})}),e.jsxs("div",{className:"flex min-h-full w-2/3 flex-col justify-between space-y-8 p-4 pr-0",children:[e.jsxs("div",{children:[e.jsx(p,{variant:"h2",children:l}),e.jsx(p,{variant:"h5",children:i})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(p,{variant:"h3",children:"Unlock Extra Capabilities:"}),u.map((h,d)=>e.jsx($,{label:h},d))]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(v,{title:"Upgrade",onClick:m})})]})]})})},Pt=()=>({discountToShow:void 0}),Tt=()=>{const t=L(),s=N(),o=()=>s.closeUpgradeToProModal(),r=H(),a=de("hasTriedFeatureBehindPaywall"),n=()=>
1{if(!t.isOpen||!t.upgradePlanBecause)return;const i=t.upgradePlanBecause;i&&(r.updatePartialBrandPreferences({hasTriedFeatureBehindPaywall:{...a??ue,[i]:!0}}),t.onConfirm(),o())},l=()=>o();return e.jsx("div",{className:"flex flex-col gap-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(v,{onClick:n,title:"Try First Time Free"}),e.jsx(v,{onClick:l,title:"Use Later",isSecondary:!0})]})})},Nt=({isOpen:t,onClose:s})=>{var w,j,F;const o=N(),r=L(),a=pe(),n=oe(),l=Me(),{discountToShow:i}=Pt(),u=((w=l==null?void 0:l.plans.find(f=>f.key==="pro"))==null?void 0:w.maxFileMb)??null,m=u==null?null:u/1e3,{isPro:h}=ae(),d=i==null?void 0:i.expiresAt,g=c.useCallback(()=>({days:0,hours:0,minutes:0,seconds:0}),[d]),[x,E]=c.useState(g()),U=x.days>0||x.hours>0||x.minutes>0||x.seconds>0;c.useEffect(()=>{const f=setTimeout(()=>{E(g())},1e3);return()=>clearTimeout(f)},[x,g,U]),c.useEffect(()=>{const f=setInterval(()=>{if(h||!t){clearInterval(f);return}o.fetchPlanInfo()},1e4);return()=>clearInterval(f)},[h,o,t]);const S=r.isOpen&&(r.upgradePlanBecause===b.UploadSize?`Your plan has a maximum upload limit of ${((j=n==null?void 0:n.uploads)==null?void 0:j.maxUploadDurationMinutes)??0} minutes and ${((F=n==null?void 0:n.uploads)==null?void 0:F.maxUploadFileSizeGB)??0} GB`:r.upgradePlanBecause===b.ExportWithoutWatermark?"Upgrade your plan to export without watermarks":r.upgradePlanBecause===me.Frame?"Upgrade your plan to edit clips with AI auto-framing":"Upgrade to Pro to access this feature"),{title:y,Footer:T}=c.useMemo(()=>r.isOpen?r.featureStatus==="one-time-access"?{title:"Try this Pro Feature",Footer:e.jsx(Tt,{})}:{title:"Upgrade to Pro",Footer:e.jsx(v,{title:"View Plans",className:"w-full",buttonParentClassName:"w-full",bgColor:"bg-pro-600",hoverBgColor:"hover:bg-pro-700",icon:e.jsx(ze,{}),onClick:()=>a({upgradePlanFrom:"Upgrade Modal",upgradePlanBecause:r.upgradePlanBecause??void 0})})}:{title:"",Footer:null},[r,a]);return!t||r.isOpen&&!r.upgradePlanBecause?null:h?e.jsx(C,{isOpen:t,onClose:s,title:"✅ Successfully Upgraded to Pro",footer:e.jsx(v,{title:"Close",onClick:s,isSecondary:!0}),children:e.jsx(p,{variant:"p",children:"You have successfully upgraded to Pro."})}):e.jsx(C,{isOpen:t,onClose:s,showCloseButton:!0,title:y,footer:T,children:r.isOpen&&r.featureStatus!=="one-time-access"?e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-col gap-2 rounded-md border border-pro-400 bg-pro-400/10 p-2",children:e.jsx(p,{variant:"p",textColor:"text-pro-800",className:"dark:text-pro-200",children:S})}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(p,{variant:"h6",children:"Pro features:"}),St({maxFileGb:m}).map(f=>e.jsx($,{label:f},f))]}),i]}):e.jsx("div",{children:e.jsx(p,{variant:"p",textColor:"text-shade-300",children:"This is a Pro feature, try it free for your first time or save the trial for later."})})})},St=({maxFileGb:t})=>{const s=ke.pro;return["Export unlimited clips with no watermark","Edit clips with AI auto-framing, auto-cutting, and auto-captioning","Edit clips with the precision timeline editor",t==null?`Upload files up to ${s} min long`:`Upload files up to ${s} min long and ${t}GB in size`,"Use AI write to write titles, descriptions, and articles","Customer support and more"]},Ft=()=>{const t=L(),s=N(),o=()=>s.closeUpgradeToProModal(),{isWhiteLabel:r}=A();return r?e.jsx(xe,{isOpen:t.isOpen,onClose:o}):e.jsx(Nt,{isOpen:t.isOpen,onClose:o})},Z=()=>e.jsx("div",{className:"flex items-center justify-center gap-4 roun
1ded-lg bg-gradient-to-br from-pro-600 to-pro-700 p-16",children:e.jsx("h2",{className:"text-4xl font-black text-shade-100",children:"Pro+"})}),Ut=()=>{const t=W(),s=N(),o=()=>s.closeUpgradeToProPlusModal(),r=H(),a=de("hasTriedFeatureBehindPaywall"),n=()=>{!t.isOpen||!t.upgradePlanBecause||(r.updatePartialBrandPreferences({hasTriedFeatureBehindPaywall:{...a??ue,[t.upgradePlanBecause]:!0}}),t.onConfirm(),o())},l=()=>o();return e.jsx("div",{className:"flex flex-col gap-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(v,{onClick:n,title:"Try First Time Free",bgColor:"bg-pro-600",hoverBgColor:"hover:bg-pro-700"}),e.jsx(v,{onClick:l,title:"Use Later",isSecondary:!0})]})})},Rt=()=>{const t=pe();return e.jsx(v,{title:"View Plans",onClick:()=>t({targetPlan:"pro_plus"}),bgColor:"bg-pro-600",hoverBgColor:"hover:bg-pro-500"})},_t={[b.ExportIn4K]:{title:"4K Export"},[b.AIGeneratedImages]:{title:"AI Generated Images"},[me.EnhanceAudio]:{title:"Background Noise Removal"},[b.Dubbing]:{title:"Voice Dubbing"},[b.UploadSize]:{title:"Upload Size"},[b.AIWrite]:{title:"AI Write"},[b.ImageQuotes]:{title:"Image Quotes"}},It=({isOpen:t,onClose:s})=>{var h,d,g;const o=W(),r=N(),a=oe(),{isProPlus:n}=ae(),l=o.isOpen&&o.featureStatus==="one-time-access";c.useEffect(()=>{const x=setInterval(()=>{if(n||!t){clearInterval(x);return}r.fetchPlanInfo()},1e4);return()=>clearInterval(x)},[n,r,t]);const{title:i,Footer:u}=c.useMemo(()=>{if(o.isOpen)switch(o.featureStatus){case"one-time-access":return{title:"Try this Pro+ Feature",Footer:e.jsx(Ut,{})};case"upgrade-required":return{title:"Upgrade to access Pro+ features",Footer:e.jsx(Rt,{})}}return{title:"",Footer:null}},[o]),m=o.isOpen&&(o.upgradePlanBecause===b.UploadSize?`Your plan has a maximum upload limit of ${(h=a==null?void 0:a.uploads)==null?void 0:h.maxUploadDurationMinutes} minutes and ${(d=a==null?void 0:a.uploads)==null?void 0:d.maxUploadFileSizeGB} GB`:"Upgrade to Pro+ to access this feature");return n?e.jsx(C,{isOpen:t,onClose:s,header:!l&&e.jsx(Z,{}),title:"✅ Successfully Upgraded to Pro+",footer:e.jsx(v,{title:"Close",onClick:s,isSecondary:!0}),children:e.jsxs(p,{variant:"p",children:["You have successfully upgraded to Pro+. You now have unlimited access to"," ",o.isOpen&&o.upgradePlanBecause?(g=_t[o.upgradePlanBecause])==null?void 0:g.title:"all features","."]})}):e.jsx(C,{isOpen:t,onClose:s,header:!l&&e.jsx(Z,{}),title:i,footer:u,maxWidthClassName:l?"max-w-xl":"max-w-4xl",analyticEventName:"UpgradeToProPlus",children:l?e.jsx("div",{children:e.jsx(p,{variant:"p",textColor:"text-shade-300",children:"This is a Pro+ feature, try it free for your first time or save the trial for later."})}):e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-col gap-2 rounded-md border border-pro-400 bg-pro-400/10 p-2",children:e.jsx(p,{variant:"p",textColor:"text-pro-800",className:"dark:text-pro-200",children:m})}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(p,{variant:"h6",children:"Pro+ features:"}),Mt.map(x=>e.jsx($,{label:x.label},x.label))]})]})})},Mt=[Ze(),qe(!0),Je(!0),De(!0),et(!0),tt(!0),st(!0)],kt=()=>{const t=W(),s=N(),o=()=>s.closeUpgradeToProPlusModal(),{isWhiteLabel:r}=A();return r?e.jsx(xe,{isOpen:t.isOpen,onClose:o}):e.jsx(It,{isOpen:t.isOpen,onClose:o})},As=()=>e.jsx(Xe,{children:e.jsxs(Et,{children:[e.jsx(Be,{}),e.jsx(jt,{}),e.jsx(ft,{}),e.jsx(Ft,{}),e.jsx(kt,{}),e.jsx(wt,{})]})});export{As as default};
2//# sourceMappingURL=FeedOutlet-fGXzvHaj.js.map

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.