1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3989],{47008:function(e,t,n){n.d(t,{Z:function(){return G},y:function(){return M}});var r=n(59499);n(67294);var i=n(79655),o=n(90948),a=n(58826),c=n(78462),s=n(67720),u=n(57922),l=n(97212),p=n(98619),d=n(48885),m=n(59334),h=n(68269),x=n(3567),f=n(93946),g=n(19572),b=n(56693),j=n(33343),v=n(76093),y=n(12469),Z=n(43927),w=n(52562),O=n(85903),k=n(76638),P=n(60281),C=n(55522),S=n(53265),D=n(82165),_=n(82461),E=n(60802),F=n(25084),I=n(50891);n(36409);var T=n(85893);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var R=function(e){return{width:240,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden",background:"#f8f9fa"}},W=function(e){var t;return t={transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:"calc(".concat(e.spacing(7)," + 1px)")},(0,r.Z)(t,e.breakpoints.up("md"),{width:"0px"}),(0,r.Z)(t,e.breakpoints.down("sm"),{width:"0px"}),t},H=(0,o.ZP)("div")(function(e){var t=e.theme;return z(z({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:t.spacing(0,1)},t.mixins.toolbar),{},(0,r.Z)({minHeight:"48px",borderBottom:"1px solid gray"},t.breakpoints.up("sm"),{minHeight:"48px"}))}),L=(0,o.ZP)(a.ZP,{shouldForwardProp:function(e){return"open"!==e}})(function(e){var t=e.theme,n=e.open;return z(z({width:240,background:"black !important",flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box"},n&&z(z({},R(t)),{},{"& .MuiDrawer-paper":R(t)})),!n&&z(z({},W(t)),{},{"& .MuiDrawer-paper":W(t)}))}),N=function(e){var t=e.icon;return(0,T.jsx)(t,{sx:{height:"1.2rem",width:"1.2rem"}})},V=[{item:"home",icon:k.Z,url:"app"},{item:"aivideo",icon:j.Z,url:"aivideo",submenu:[{item:"enhance-video",icon:Z.Z,url:"enhance-video"},{item:"colorize-video",icon:w.Z,url:"colorize-video"},{item:"upscale-video",icon:O.Z,url:"upscale-video"},{item:"inpaint-video",icon:P.Z,url:"inpaint-video"},{item:"ai-background",icon:C.Z,url:"ai-background"}]},{item:"aivoice",icon:x.Z,url:"aivoice"},{item:"aiclone",icon:S.Z,url:"aiclone"},{item:"transcribe",icon:D.Z,url:"transcribe"},{item:"aigc",icon:b.Z,url:"aigc",submenu2:[{item:"image-to-video",icon:Z.Z,url:"image-to-video"},{item:"text-to-video",icon:w.Z,url:"text-to-video"}]},{item:"myasset",icon:v.Z,url:"myasset"},{item:"billing",icon:y.Z,url:"billing"}],M=function(e){for(var t=0;t<V.length;t++){var n=V[t];if(e===n.url)return n.item;if(n.hasOwnProperty("submenu"))for(var r=0;r<n.submenu.length;r++){var i=n.submenu[r];if(i.url===e)return i.item}}},U=function(e){return(0,T.jsx)(u.Z,{in:!0,timeout:"auto",unmountOnExit:!0,children:(0,T.jsx)(c.Z,{component:"div",disablePadding:!0,children:e.menuitem.submenu.map(function(t,n){return e.appctx.active!==t.item?(0,T.jsx)(T.Fragment,{}):(0,T.jsx)(i.rU,{onClick:function(){return e.callback.onLinkClick(e.menuitem,t)},to:A(e.i18n.language,e.menuitem.url+"/"+t.url),children:(0,T.jsx)(Y,{menuitem:t,open:e.open,depth:e.depth,t:e.t,i18n:e.i18n,appctx:e.appctx},n)})})})})},Y=function(e){var t;return(0,T.jsxs)(l.ZP,{disablePadding:!0,sx:{display:"block",padding:"0px 4px",pl:e.open?(e.depth+1)*1:0,fontWeight:"500",margin:"8px 0px"},children:[(0,T.jsxs)(p.Z,{sx:(t={minHeight:48,justifyContent:e.open?"initial":"center",px:2.5,padding:"0px 16px"},(0,r.Z)(t,"minHeight","36px"),(0,r.Z)(t,"color",e.appctx.active===e.menuitem.item?"rgb(117, 89, 255)":"rgb(35, 40, 51)"),(0,r.Z)(t,"backgroundColor",e.appctx.active===e.menuitem.item?"rgb(117 89 255 / 8%)":"inherit"),(0,r.Z)(t,"borderRadius","8px"),(0,r.Z)(t,"&:hover",{background:"rgb(117 89 255 / 8%)",color:"rgb(117, 89, 255)"}),t),children:[(0,T.jsx)(d.Z,{sx:{minWidth:0,mr:e.open?2:"auto",justifyContent:"center",color:"inherit"},children:N(e.menuitem)}),(0,T.jsx)(m.Z,{primary:e.t("menu").hasOwnProperty(e.menuitem.item)?e.t("menu",e.menuitem.item):e.t(e.menuitem.item,"linktitle"),primaryTypographyProps:{sx:{fontWeight:"550",fontFamily:"inherit",fontSize:"0.875rem"}},sx:{opacity:e.open?1:0,fontWeight:"550"}}),e.menuitem.hasOwnProperty("submenu")?(0,T.jsx)(T.Fragment,{}):(0,T.jsx)(T.Fragment,{children:" "})]}),e.menuitem.hasOwnProperty("submenu")?(0,T.jsx)(U,{menuitem:e.menuitem,open:e.open,t:e.t,depth:e.depth+1,i18n:e.i18n,callback:e.callback,appctx:e.appctx}):(0,T.jsx)(T.Fragment,{})]},e.t("menu",e.menuitem.item))},A=function(e,t){return"app"===t?"/"+e+"/app":"/"+e+"/app/"+t},q=function(e){return(0,T.jsx)(i.rU,{to:A(e.i18n.language,e.menuitem.url),onClick:function(){return e.callback.onLinkClick(e.menuitem)},children:(0,T.jsx)(Y,z({},e))})};function G(e){return(0,T.jsxs)(L,{variant:"permanent",open:e.open,children:[(0,T.jsx)(H,{children:(0,T.jsx)(f.Z,{onClick:e.handleDrawerClose,sx:{background:"white"},children:(0,T.jsx)(g.Z,{})})}),(0,T.jsx)(c.Z,{sx:{height:"calc(100vh - 48px - 48px)",overflowY:"auto",paddingTop:"0px"},children:V.map(function(t,n){return(0,T.jsx)(q,{callback:e.callback,t:e.t,i18n:e.i18n,menuitem:t,depth:0,appctx:e.appctx,open:e.open},n)})}),(0,T.jsx)(s.Z,{}),(0,T.jsxs)(h.Z,{direction:"row",sx:{flexGrow:1},justifyContent:"space-evenly",alignItems:"center",children:[(0,T.jsx)("a",{href:"https://www.facebook.com/ai4video.co",target:"about:_blank",children:(0,T.jsx)(E.Z,{sx:{height:"1.2rem",width:"1.2rem","&:hover":{color:"rgb(117, 89, 255)"}}})}),(0,T.jsx)("a",{href:"https://twitter.com/Ai4Video",target:"about:_blank",children:(0,T.jsx)(F.Z,{sx:{height:"1.2rem",width:"1.2rem","&:hover":{color:"rgb(117, 89, 255)"}}})}),(0,T.jsx)("a",{href:"https://www.facebook.com/ai4video.co",target:"about:_blank",children:(0,T.jsx)(_.Z,{sx:{height:"1.2rem",width:"1.2rem","&:hover":{color:"rgb(117, 89, 255)"}}})}),(0,T.jsx)("a",{href:"mailto://[email protected]",target:"about:_blank",children:(0,T.jsx)(I.Z,{sx:{height:"1.2rem",width:"1.2rem","&:hover":{color:"rgb(117, 89, 255)"}}})})]})]})}},44751:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(50029),i=n(59499),o=n(64687),a=n.n(o),c=n(67294),s=n(15861),u=n(98456),l=n(11057),p=n(5616),d=n(86886),m=n(67720),h=n(90629),x=n(7906),f=n(295),g=n(53252),b=n(72882),j=n(53816),v=n(10049),y=n(89572),Z=n(18037),w=n(36661),O=n(75176),k=n(91942),P=n(17685),C=n(29749),S=n(85893);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?D(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(e){var t=(0,c.useState)({count:0,payOrder:null,credits:-1,status:0}),n=t[0],i=t[1],o=(0,c.useState)(null);o[0],o[1];var D=(0,c.useState)(new URLSearchParams),E=D[0],F=D[1],I=(0,c.useContext)(O.V),T=[["payby","Pay Method"],["txn_id","Txn ID"],["first_name","First Name"],["last_name","Last Name"],["payer_email","Payer Email"],["mc_currency","Currency"],["mc_gross","Price"],["item_name","Product"],["quantity","Quantity"]],B=function(){C.Z.doRequest("/api/payment/paypal/verify"+window.location.search,null,null,function(e,t,r){if(0===t){var o=n.count;r?o=0:o+=1,r||(r={payOrder:null,credits:-1}),7<=o?i(_({count:o,status:-1},r)):i(_({count:o,status:t},r))}else i({count:0,status:t,payOrder:null,credits:-1})})};(0,k.Y)((0,r.Z)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:B();case 1:case"end":return e.stop()}},e)})),null===n.payOrder&&7>n.count||n.payOrder&&1===n.payOrder.status?2e3:null),(0,c.useEffect)(function(){w.fv.configure("cc31435c-a657-417f-bbc9-6c37b3f8295c",{autoload:!1}),window.location.search.length,F(new URLSearchParams(window.location.search))},[]);var z=function(){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(y.Z,{sx:{color:"red",height:"2rem",width:"2rem"}}),(0,S.jsx)(s.Z,{variant:"h5",gutterBottom:!0,children:"Verify Failed"}),(0,S.jsx)(s.Z,{variant:"h8",gutterBottom:!0,children:"Error Code: "+n.status})]})};return(0,S.jsx)(P.Z,{sx:{height:"calc(100vh - 48px)",padding:"0px 16px 16px 16px"},children:(0,S.jsx)(p.Z,{sx:{height:"100%",flexGrow:"1",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,S.jsxs)(d.ZP,{container:!0,spacing:2,children:[(0,S.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,S.jsx)(h.Z,{sx:{overflow:"hidden"},children:(0,S.jsx)(b.Z,{children:(0,S.jsx)(x.Z,{stickyHeader:!0,"aria-label":"sticky table",children:(0,S.jsx)(f.Z,{children:function(){var e=[];e.push((0,S.jsxs)(j.Z,{hover:!0,role:"checkbox",tabIndex:-1,children:[(0,S.jsxs)(g.Z,{align:"left",children:[" ","Pay Method"," "]}),(0,S.jsxs)(g.Z,{align:"left",children:[" ","Paypal"," "]})]},"pay method"));for(var t=0;t<T.length;t++){var n=T[t];E.has(n[0])&&e.push((0,S.jsxs)(j.Z,{hover:!0,role:"checkbox",tabIndex:-1,children:[(0,S.jsxs)(g.Z,{align:"left",children:[" ",n[1]," "]}),(0,S.jsxs)(g.Z,{align:"left",children:[" ",E.get(n[0])," "]})]},n[0]))}return e}()})})})})}),(0,S.jsx)(d.ZP,{item:!0,xs:12,md:6,children:(0,S.jsxs)(p.Z,{sx:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[0!==n.status?(0,S.jsx)(z,{}):n.payOrder&&1!==n.payOrder.status?2===n.payOrder.status?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Z.Z,{sx:{color:"green",height:"2rem",width:"2rem"}}),(0,S.jsx)(s.Z,{variant:"h6",gutterBottom:!0,children:"Recharge Success"}),(0,S.jsx)(s.Z,{variant:"h6",gutterBottom:!0,children:"Current Credits: "+n.credits}),(0,S.jsx)(l.Z,{sx:{marginTop:"8px",textTransform:"none",fontSize:"1rem",fontWeight:"bold",background:"green"},variant:"contained",startIcon:(0,S.jsx)(v.Z,{}),onClick:function(){window.location="/app"},children:"Continue"})]}):(0,S.jsx)(z,{}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s.Z,{variant:"h5",gutterBottom:!0,children:"Verifying"}),(0,S.jsx)(u.Z,{})]}),(0,S.jsx)(m.Z,{sx:{color:"black",width:"100%",margin:"16px 0px"}}),(0,S.jsx)(s.Z,{variant:"h6",gutterBottom:!0,children:"Any Problem?"}),(0,S.jsx)(s.Z,{variant:"body2",gutterBottom:!0,children:"Contact: [email protected]"}),(0,S.jsx)(l.Z,{sx:{marginTop:"8px",textTransform:"none",fontSize:"0.875rem",fontWeight:"bold"},onClick:function(){var e;w.fv.chat.open(),w.fv.message.sendText("Payment Problem From: "+(null==I||null===(e=I.userInfo)||void 0===e?void 0:e.email)),w.fv.message.sendText("Verify String: "+E),w.fv.message.sendText("Payment: "+JSON.stringify(n))},children:"Chat with us"})]})})]})})})}},17685:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(59499),i=n(90629),o=n(85893);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){return(0,o.jsx)(i.Z,{sx:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({p:2,margin:"auto",width:"100%",marginTop:"48px",overflowY:"auto",backgroundColor:function(e){return"dark"===e.palette.mode?"#1A2027":"#fff"}},e.sx),children:e.children})}},91942:function(e,t,n){n.d(t,{Y:function(){return i}});var r=n(67294),i=function(e,t){var n=(0,r.useRef)();(0,r.useEffect)(function(){n.current=e},[e]),(0,r.useEffect)(function(){if(null!==t){var e=setInterval(function(){n.current()},t);return function(){clearInterval(e)}}},[t])}}}]);
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.