PageSourceSearch

https://www.nuestrocine.mx/_next/static/chunks/1057-9e8c68e50bcbc6ef.js

js nuestrocine.mx collected 2026-10-04 02:15:09 UTC 8,053 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1057],{6699:function(n,e,a){a.d(e,{Cb:function(){return f},Hx:function(){return j},cw:function(){return m},fW:function(){return g},jJ:function(){return p},om:function(){return b}});var t=a(9564),s=a(9161);let{payment_api:c,imcine_endpoint:r,organization_id:i}=t.config,{listPlans:l,paymentPopup:o,newsubscription:d,cancelsubscription:u,rentcheckout:h,successonrent:x}=c,p=async()=>{let n=new FormData;n.append("organization",i);let{data:e}=await s.Z.post("".concat(r,"/").concat(l),n);return e},j=async n=>{let{data:e}=await s.Z.get("".concat(r,"/").concat(o),{headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});return e},m=async(n,e)=>{let a=new FormData;a.append("plan",n);let{data:t}=await s.Z.post("".concat(r,"/").concat(d),a,{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"multipart/form-data"}});return t},f=async(n,e)=>{let a=new FormData;a.append("plan",n);let{data:t}=await s.Z.post("".concat(r,"/").concat(u),a,{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"multipart/form-data"}});return t},g=async(n,e)=>{let a=new FormData;a.append("contentmetdata",n);let{data:t}=await s.Z.post("".concat(r,"/").concat(h),a,{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"multipart/form-data"}});return t},b=async(n,e)=>{let a=new FormData;a.append("checkout",n),a.append("order",e);let{data:t}=await s.Z.post("".concat(r,"/").concat(x),a,{headers:{"Content-Type":"multipart/form-data"}});return t}},1057:function(n,e,a){a.d(e,{Z:function(){return f}});var t=a(5893),s=a(1664),c=a.n(s),r=a(270),i=a(7294),l=a(1163),o=a(812),d=a(5675),u=a.n(d),h=a(7309),x={src:"/_next/static/media/addCardIcon.f2dee7b5.png",height:19,width:22,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAAlElEQVR42mOQkZZfJy0lv1BGSn4+kF4gA8RAei6Q3iQtJWfAAOTcBuIMoEA+kM4D4gIgOx5IH5SRlotmAHL+g7A0MkaIeYJMOADEKkABXSCtA8TaQKwExO7SkgrsDEBjtjKgAaCkFBCvAWJDEOcEEM8CmjATSC8FYmsgbgLid0C8GKbaHKjAGEhbALEw1JQ+aSl5dgBFkCqbFgJTlAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7},p=a(3552),j=a(6699),m=a(7877);function f(){var n,e,a,s,d,f,g,b;let C=(0,i.useContext)(o.Z),{logout:A}=(0,r.Z)(),{showPopup:v,hidePopup:k}=(0,p.B)(),y=(0,l.useRouter)();async function N(){var n=await (0,m.No)(document.getElementById("txtCodigoCupon").value,C.token);"Success"===n.status?(await C.refreshProfile(),v((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{children:"Cup\xf3n canjeado"}),(0,t.jsxs)("p",{children:["Tu cup\xf3n ha sido canjeado exitosamente. ",(0,t.jsx)("br",{}),"Ya pudes disfrutar de tu contenido."]}),(0,t.jsx)("button",{className:"button filled",onClick:k,children:"Cerrar"})]}))):"Invalid Cupon"===n.description?v((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{children:"Cup\xf3n no canjeado"}),(0,t.jsxs)("p",{children:["Tu cup\xf3n no ha podido ser canjeado. ",(0,t.jsx)("br",{}),"Revisalo e int\xe9ntalo nuevamente."]}),(0,t.jsx)("button",{className:"button filled",onClick:k,children:"Cerrar"})]})):"token invalido"===n.description&&(v((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{children:"Cup\xf3n no canjeado"}),(0,t.jsxs)("p",{children:["Tu sesi\xf3n ha caducado. ",(0,t.jsx)("br",{}),"Inicia sesi\xf3n nuevamente."]}),(0,t.jsx)("button",{className:"button filled",onClick:k,children:"Cerrar"})]})),y.push("/login"))}let w=n=>y.asPath.includes(n);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"account-nav",children:[(0,t.jsx)("h2",{className:"username",children:(null===(n=C.user)||void 0===n?void 0:n.name)!=""?(null===(e=C.user)||void 0===e?void 0:e.name)+" "+(null===(a=C.user)||void 0===a?void 0:a.last_name):null===(s=C.user)||void 0===s?void 0:s.email}),(0,t.jsx)("hr",{}),(null===(d=C.user)||void 0===d?void 0:d.subscriptionID)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c(),{className:"link",href:"/account/subscription",style:{textDecoration:"none",margin:"0",padding:"0"},children:(0,t.jsx)("h2",{style:{textDecoration:"none",margin:"0",padding:"0"},children:"Suscripci\xf3n"})}),(0,t.jsx)(c(),{className:"link",href:"/account/subscription",style:{textDecoration:"none",margin:"0",padding:"0"},children:(0,t.jsx)("span",{className:"title",children:function(n){switch(n){case 1:return"Plan mensual";case 2:return"Plan trimestral";case 3:return"Plan semestral";case 4:return"Plan anual"}}(null===(f=C.user)||void 0===f?void 0:f.currentPlan)})}),(0,t.jsx)("h2",{children:"Vigencia"}),(0,t.jsx)("span",{children:null===(g=C.user)||void 0===g?void 0:g.suscriptionEndsAt}),(0,t.jsx)("hr",{}),(0,t.jsx)(c(),{className:"link",href:"/account/subscription",style:{textAlign:"center"},children:"Cambiar suscripci\xf3n"}),(0,t.jsx)("hr",{}),(0,t.jsx)("button",{className:"cancel",onClick:function(){v((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{children:"\xbfCancelar Suscripci\xf3n?"}),(0,t.jsx)("p",{children:"\xbfDeseas cancelar tu suscripci\xf3n?"}),(0,t.jsxs)("ul",{className:"actions",children:[(0,t.jsx)("li",{children:(0,t.jsx)("button",{className:"button filled",onClick:async()=>{"Success"===(await (0,j.Cb)(C.user.currentPlan,C.token)).status&&await C.refreshProfile(),k(),v((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{children:"Suscripci\xf3n cancelada"}),(0,t.jsx)("p",{children:"Tu suscripci\xf3n ha sido cancelada"}),(0,t.jsx)("button",{className:"button filled",onClick:k,children:"Cerrar"})]}))},children:"S\xed"})}),(0,t.jsx)("li",{children:(0,t.jsx)("button",{className:"button",onClick:k,children:"No"})})]})]}))},children:"Cancelar suscripci\xf3n"}),(0,t.jsx)("hr",{})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{children:"Suscripci\xf3n"}),(0,t.jsx)("span",{children:"Elige Tu Plan Favorito"}),(0,t.jsxs)(c(),{className:"button filled subs",href:"/account/subscription",children:[(0,t.jsx)(u(),{src:h.Z})," Suscripci\xf3n"]})]}),(0,t.jsx)("h2",{children:"Pagos"}),(null===(b=C.user)||void 0===b?void 0:b.paymentSRC)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:[(0,t.jsx)(u(),{src:x})," Tarjeta"]}),(0,t.jsx)("h2",{children:"Cambiar mi m\xe9todo de pago"}),(0,t.jsxs)("button",{className:"button filled",onClick:function(){v((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{children:"Cambio de Pago"}),(0,t.jsx)("p",{children:"\xbfDeseas remplazar tu m\xe9todo de pago?"}),(0,t.jsxs)("ul",{className:"actions",children:[(0,t.jsx)("li",{children:(0,t.jsx)("button",{className:"button filled",onClick:async n=>{n.target.disabled=!0;try{let n=await (0,j.Hx)(C.token);if("Success"===n.status){var e=window.open(n.url,"_blank","width=500,height=500");let a=setInterval(()=>{e?e.closed&&(clearInterval(a),C.refreshProfile(),k()):(clearInterval(a),C.refreshProfile(),k())},500)}else console.error("Failed to get payment URL")}catch(n){console.error("Error fetching payment popup URL:",n)}},children:"S\xed"})}),(0,t.jsx)("li",{children:(0,t.jsx)("button",{className:"button",onClick:k,children:"No"})})]})]}))},children:[(0,t.jsx)(u(),{src:x})," Remplazar Pago"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Elige un m\xe9todo de pago"}),(0,t.jsxs)(c(),{className:"button filled",href:"/account/payments",children:[(0,t.jsx)(u(),{src:x})," Pago"]})]}),(0,t.jsx)("span",{children:"Introduce tu c\xf3digo y disfruta del contenido"}
1),(0,t.jsx)("input",{id:"txtCodigoCupon",type:"text",placeholder:"C\xf3digo"}),(0,t.jsx)("button",{className:"button filled",onClick:N,children:"Canjear"}),(0,t.jsx)("h2",{children:(0,t.jsx)(c(),{href:"/account/lists",className:w("/account/lists")?"active":"",children:"Mis listas"})}),(0,t.jsx)("h2",{children:(0,t.jsx)(c(),{href:"/account/ratings",className:w("/account/ratings")?"active":"",children:"Valoraciones"})}),(0,t.jsx)("h2",{children:(0,t.jsx)(c(),{href:"/account/community",className:w("/account/community")?"active":"",children:"Mi comunidad"})}),(0,t.jsx)("h2",{children:(0,t.jsx)(c(),{href:"/account/history",className:w("/account/history")?"active":"",children:"Historial"})}),(0,t.jsx)("h2",{children:(0,t.jsx)(c(),{href:"/",onClick:A,children:"Cerrar sesi\xf3n"})})]})})}}}]);

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.