PageSourceSearch

https://www.filmelier.com/_next/static/chunks/pages/change-password/[token]-39c54ca4df8377d7.js

js filmelier.com collected 2026-10-02 10:05:19 UTC 6,397 bytes, 69 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9691],{
2/***/39516:
3/***/function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/change-password/[token]",function(){return a(32643)}])},
4/***/90485:
5/***/function(e,s,a){"use strict";
6/* harmony export */a.d(s,{
7/* harmony export */W:function(){/* binding */return d}
8/* harmony export */});
9/* harmony import */var n=a(85893),r=a(91267),t=a(41664),o=a.n(t),i=a(67294),l=a(26279),c=a.n(l);
10/* harmony import */
11/* eslint-disable jsx-a11y/control-has-associated-label */
12function d(e){let{images:s,targetLink:a,adSaleId:t,region:l,subRegion:d}=e;return(0,i.useEffect)((()=>{try{const e={url:window.location.href,adSaleId:t,event:"view",regionId:l,subRegionId:d};(0,r/* .createAdLogAsync */.O)(e)}catch(e){console.error("Erro ao processar dados do anúncio:",e.message)}}),[]),(0,n.jsx)("div",{className:c()["banner-top-banner-container"],children:(0,n.jsx)(o(),{href:a,target:"_blank",rel:"noreferrer",onClick:e=>{e.stopPropagation();const s={url:window.location.href,adSaleId:t,event:"click",regionId:l,subRegionId:d};(0,r/* .createAdLogAsync */.O)(s)},"data-user-journey-click":"ad-sale-top-banner","data-user-journey-entity-type":"ad_sale","data-user-journey-entity-id":t,children:(0,n.jsxs)("picture",{children:[
13
14(0,n.jsx)("source",{media:"(min-width: 1366px)",srcSet:s.desktop}),
15
16(0,n.jsx)("source",{media:"(min-width: 768px)",srcSet:s.tablet}),
17
18(0,n.jsx)("img",{src:s.mobile,alt:"banner-top-image",className:c().img,loading:"lazy",decoding:"async"})]})})})}
19/***/},
20/***/32643:
21/***/function(e,s,a){"use strict";a.r(s),
22/* harmony export */a.d(s,{
23/* harmony export */__N_SSP:function(){/* binding */return x},
24/* harmony export */default:function(){/* binding */return v}
25/* harmony export */});
26/* harmony import */var n=a(85893),r=a(47609),t=a(90485),o=a(69399),i=a(61801),l=a(21480),c=a(16222),d=a(32706),_=a(52017),p=a(87066),u=a(11163),g=a(6339),h=a(67294),m=a(94910),w=a(31454),b=a.n(w);
27/* harmony import */a(39002);const f=(0/* ["default"] */,h.memo)(r.Z);var x=!0;function v(e){let{token:s,top_bar_newsletter_data:a,props_premiere_banner:r,props_pop_star_banner:w,props_banner_top:x,translations:v}=e;const j=(0,u.useRouter)(),{setToastData:y}=(0,d/* .useToastContext */.a)(),[k,S]=(0,h.useState)(""),[I,N]=(0,h.useState)(!0),[E,R]=(0,h.useState)(""),[Z,L]=(0,h.useState)(!0),[T,C]=(0,h.useState)(null),[P,V]=(0,h.useState)(!1),z=(0,h.useMemo)((()=>k.length>0&&I&&E.length>0&&Z),[k,I,E,Z]);
28return(0/* ["default"] */,n.jsxs)(o.Z,{props_pop_star:w,top_bar_newsletter_data:a,children:[(null==r?void 0:r.images)&&(0/* .PremiereBanner */,n.jsx)(c.r,{targetLink:r.targetLink,images:r.images,adSaleId:r.adSaleId,region:r.region,subRegion:r.subRegion}),!(null==w?void 0:w.images.desktop)&&(null==x?void 0:x.images)&&(0/* .BannerTopBanner */,n.jsx)(t.W,{images:x.images,targetLink:x.targetLink,adSaleId:x.adSaleId,region:x.region,subRegion:x.subRegion}),!(null==w?void 0:w.images.desktop)&&!(null==x?void 0:x.images)&&(0,n.jsx)("center",{className:b()["banner-top"],children:(0,n.jsx)(f,{id:"banner-top",label:v.advertising})}),
29
30(0,n.jsx)("div",{className:b().content,children:(0,n.jsxs)("div",{className:b().box,children:[
31
32(0,n.jsx)("div",{className:b().header,children:(0/* ["default"] */,n.jsx)(l.Z,{src:"/images/optimized/filmelier-logo_275x35.webp",alt:"Filmelier",width:275,height:35})}),
33
34(0,n.jsx)("h2",{children:v.change_my_password}),T&&(0,n.jsxs)("p",{role:"alert",children:[v.recovery_hint," ",
35
36(0,n.jsx)("a",{href:"".concat("br"===j.locale||"mx"===j.locale?"/".concat(j.locale):"","/?login=forgot-password"),children:v.recover_password})]}),
37
38(0,n.jsxs)("div",{className:b().form,children:[
39
40(0/* .FilmelierPasswordField */,n.jsx)(i.Iz,{value:k,setValue:S,is_valid:I,setIsValid:N,translations:{label:v.new_password,placeholder:v.enter_new_password,error_message:v.incorrect_password}}),
41
42(0/* .FilmelierConfirmPasswordField */,n.jsx)(i.dP,{value:E,setValue:R,is_valid:Z,setIsValid:L,password_to_compare_value:k,translations:{label:v.confirm_password,placeholder:v.repeat_password,error_message:v.password_must_match}}),
43
44(0,n.jsxs)("div",{className:b()["change-password"],children:[
45
46(0,n.jsxs)("button",{className:b()["change-password-button"],type:"submit",onClick:()=>{(0,_/* .createCustomEvent */.t)({name:"User area",action:"Login",platform:"Change password"}),(async()=>
46{if(V(!0),C(null),z)try{const e={token:s,new_password:k,confirm_password:E};await p/* ["default"] */.Z.post("/api/bff/change-password-token",e,{headers:{"Content-Type":"application/json"}}).then((()=>{y([{message:v.password_successfully,icon:"success"}]),setTimeout((()=>{j.push("/?login=1")}),2e3)})).catch((e=>{var s,a;const n=(null==e||null===(a=e.response)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.error)||"unexpected_error",r="Invalid token"===n?"invalid_token":n;C(r),y([{message:m/* ["default"] */.Z.t("change_password.errors.".concat(r),{defaultValue:m/* ["default"] */.Z.t("change_password.errors.unexpected_error")}),icon:"error"}])}))}catch(e){console.log("Erro ao tentar alterar a senha.",e)}V(!1)})()},disabled:!z,children:[P&&(0/* .ProgressSpinner */,n.jsx)(g.G,{style:{width:"20px",margin:"0px",height:"fit-content"},strokeWidth:"8",animationDuration:".5s",className:b().spinner}),v.change_password]}),
47
48(0,n.jsx)("p",{className:b().recaptcha,
49// eslint-disable-next-line react/no-danger
50dangerouslySetInnerHTML:{__html:v.recaptcha},"data-user-journey-key":"editorial-link"})]})]})]})})]})}
51/***/},
52/***/26279:
53/***/function(e){
54// extracted by mini-css-extract-plugin
55e.exports={"banner-top-banner-container":"styles_banner-top-banner-container__ql_Ij","banner-top-banner-img":"styles_banner-top-banner-img__7ls6h"};
56/***/},
57/***/31454:
58/***/function(e){
59// extracted by mini-css-extract-plugin
60e.exports={"banner-top":"styles_banner-top__s7k3W",content:"styles_content__JesTu",box:"styles_box__N9i6E",header:"styles_header__kzDMj",form:"styles_form__ABvIY","forgot-password":"styles_forgot-password__c2ZAf","change-password":"styles_change-password__Fgx8S","change-password-button":"styles_change-password-button__Qh3E7",spinner:"styles_spinner__6e7Bi",recaptcha:"styles_recaptcha__gaoZ8"};
61/***/},
62/***/39002:
63/***/function(){
64// extracted by mini-css-extract-plugin
65/***/}},
66/******/function(e){
67/******/e.O(0,[2888,9774,179],(function(){return e(e.s=39516)}));
68/******/var s=e.O();
69/******/_N_E=s}]);

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.