PageSourceSearch

https://compilado.codigofonte.com.br/_next/static/chunks/pages/unsubscribe/[slug]-f4b989d87f231202.js

js codigofonte.com.br collected 2026-10-02 05:19:32 UTC 10,526 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[854],{44094:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe/[slug]",function(){return r(53025)}])},54380:function(e,s,r){"use strict";var t=r(85893);r(67294);var n=r(25455),i=r.n(n);let a=e=>{let{style:s,className:r,color:n,size:a,type:l,...o}=e;return(0,t.jsx)("div",{"data-testid":"divider",style:{borderStyle:l,borderColor:n,borderWidth:a,marginTop:o.mt,marginBottom:o.mb,...s},className:"".concat(i().divider," ").concat(r||"")})};s.Z=a},766:function(e,s,r){"use strict";r.d(s,{z:function(){return n}});var t,n,i=r(85893),a=r(67294),l=r(50667);(t=n||(n={})).DEFAULT="default",t.SUCCESS="success",t.ERROR="error";let o=e=>{let{...s}=e;return(0,i.jsx)(l.FormField,{...s})};s.Z=(0,a.memo)(o)},52840:function(e,s,r){"use strict";var t=r(85893),n=r(67294),i=r(76627),a=r.n(i),l=r(95340),o=r.n(l),c=r(37447),d=r(71179),u=r(93967),m=r.n(u),_=r(44243),p=r(40888),b=r(7034),x=r.n(b);let h=e=>{var s,r,i;let{className:l,placeholder:u,rightElement:b,leftElement:h,label:y,value:f,helperText:v,mask:j,maskChar:N,name:E,width:g,height:w,round:T,labelInside:O,thousandSeparator:D=".",decimalSeparator:I=",",allowNegative:R=!1,decimalScale:S=2,fixedDecimalScale:C=!0,currency:Z=!1,required:M=!1,readOnly:F=!1,type:U="text",disabled:B=!1,radius:A=!0,validationStatus:H="default",onChange:k,...q}=e,z=A?8:0,P=(0,n.useRef)(null),[L,X]=(0,n.useState)(!1),W=e=>{P.current&&(e?(P.current.style.border="1px solid var(--border-input_filled-color)",P.current.style.boxShadow="0px 0px 0px 3px var(--button-hover-solid-color)"):(P.current.style.removeProperty("border"),P.current.style.removeProperty("box-shadow")))},G={className:x().input,type:L?"text":U,name:E,disabled:B,required:M,placeholder:u,value:f,readOnly:F,onChange:k,onFocus:()=>W(!0),style:{borderRadius:z,width:g,height:w},...q},V=(0,t.jsx)("button",{className:x().passwordIcon,"data-testid":"password-icon",onClick:()=>X(!L),style:{pointerEvents:B?"none":"initial",color:B?"#d4d4d8":"#00000"},children:L?(0,t.jsx)(c.EyeOpenedIcon,{}):(0,t.jsx)(c.EyeClosedIcon,{})}),Q=(0,t.jsxs)("div",{className:x().validationIcon,children:["error"===H&&(0,t.jsx)(d.ExclamationCircleIcon,{}),"success"===H&&(0,t.jsx)(d.CheckCircleIcon,{})]}),$=(0,n.useMemo)(()=>"password"===U?V:"default"!==H?Q:b?(0,t.jsx)("div",{className:x().sideElement,style:{paddingRight:8},children:b}):(0,t.jsx)(t.Fragment,{}),[V,b,U]);return(0,t.jsxs)("div",{"data-testid":"input-group",className:m()(x().inputGroup,l,{[x().labelInside]:O}),children:[y&&!O&&(0,t.jsx)(p.Z,{disabled:B,required:M,children:y}),(0,t.jsxs)("div",{ref:P,"data-testid":"input-field",className:(s="inputField","default"!==H?"".concat(x()[s]," ").concat(x()[H]):"".concat(x()[s])),style:{borderRadius:T?40:z},children:[h&&(0,t.jsx)("div",{className:x().sideElement,style:{paddingLeft:(null==h?void 0:null===(r=h.type)||void 0===r?void 0:null===(i=r.type)||void 0===i?void 0:i.name)==="Button"?0:8},children:h}),y&&O&&(0,t.jsx)("div",{className:x().labelInside,children:(0,t.jsx)(p.Z,{required:M,disabled:B,children:y})}),!j&&!Z&&(0,t.jsx)("input",{...G,onBlur:()=>W(!1)}),j&&!Z&&(0,t.jsx)(a(),{maskChar:N,mask:j,...G,onBlur:()=>W(!1)}),!j&&Z&&(0,t.jsx)(o(),{onBlur:()=>W(!1),thousandSeparator:D,decimalSeparator:I,allowNegative:R,decimalScale:S,fixedDecimalScale:C,...G}),$]}),v&&(0,t.jsx)(_.Z,{size:"12",mt:8,color:"secondary",type:"font",typeStyles:"helper_text",children:v})]})};s.Z=(0,n.memo)(h)},40888:function(e,s,r){"use strict";var t=r(85893);r(67294);var n=r(93967),i=r.n(n),a=r(37447),l=r(98426),o=r.n(l);let c=e=>{let{children:s,className:r,required:n,htmlFor:l="",...c}=e;return(0,t.jsxs)("label",{"data-testid":"label",className:i()(o().label,r),htmlFor:l,style:{opacity:c.disabled?.65:1},...c,children:[s,n&&(0,t.jsxs)("i",{className:o().requiredIcon,children:[" ",(0,t.jsx)(a.AsteriskIcon,{width:16,height:16})," "]})]})};s.Z=c},44280:function(e,s,r){"use strict";var t=r(85893),n=r(67294),i=r(50667),a=r(85433),l=r.n(a);let o=e=>{let{className:s,placeholder:r,label:n,required:a,disabled:o,validationStatus:c,value:d,resize:u="none",height:m="80px",onChange:_,...p}=e;return(0,t.jsxs)("div",{className:l().wrapper,"data-testid":"textarea-wrapper",children:[n&&(0,t.jsx)(i.Label,{required:a,"data-testid":"textarea-label",children:n}),(0,t.jsx)("textarea",{style:{resize:u,height:m},className:"".concat(l().textarea," ").concat("default"!==c&&l()["textarea--".concat(c)]," ").concat(s),disabled:o,placeholder:r,value:d,onChange:_,"data-testid":"textarea",...p})]})};s.Z=(0,n.memo)(o)},9226:function(e,s,r){"use strict";var t=r(85893),n=r(67294);let i=e=>{let{className:s,children:r,...n}=e;return(0,t.jsx)("form",{className:s,...n,children:r})};s.Z=(0,n.memo)(i)},53025:function(e,s,r){"use strict";r.r(s),r.d(s,{__N_SSP:function(){return q},default:function(){return z}});var t=r(85893),n=r(9008),i=r.n(n),a=r(79943),l=r(54380),o=r(67294),c=r(67421),d=r(11163),u=r(82580),m=r(16310),_=r(42879),p=r(50667
1),b=r(37447),x=r(44615),h=r(26498),y=r(9226),f=r(52840),v=r(44280),j=r(766),N=r(67913),E=new class{constructor(){this.unsubscribeChannel=async(e,s)=>await (0,N.v_)(x.bV.UNSUBSCRIBE_MEMBER(e),s)}},g=r(7472),w=r.n(g);let T={FLOOD:"flood",NOT_EXPECTED:"not_expected",UNAUTHORIZED:"unauthorized",OTHER:"other"};function O(e){let{email:s,slug:r,uid:n}=e,i=(0,d.useRouter)(),{t:a}=(0,c.$G)("common"),[l,N]=(0,o.useState)(!1),g=[{value:T.FLOOD,label:a("unsubscribeMember.form.reason.flood")},{value:T.NOT_EXPECTED,label:a("unsubscribeMember.form.reason.notExpected")},{value:T.UNAUTHORIZED,label:a("unsubscribeMember.form.reason.unauthorized")},{value:T.OTHER,label:a("unsubscribeMember.form.reason.other")}],O={reasonType:T.FLOOD,reasonDescription:""},D=m.Ry({reasonType:m.Z_().oneOf([T.FLOOD,T.NOT_EXPECTED,T.UNAUTHORIZED,T.OTHER]).required(a("unsubscribeMember.form.reason.description.required")),reasonDescription:m.Z_().when("reasonType",{is:e=>e===T.OTHER,then:e=>e.required(a("unsubscribeMember.form.reason.description.required"))})}),I=async e=>{try{N(!0),await E.unsubscribeChannel(n,e),i.push("".concat(x.Z6.UNSUBSCRIBE,"/").concat(r,"/success"))}catch(e){_.Am.error(a("unsubscribeMember.form.toast.error"))}},R=(0,u.TA)({initialValues:O,validationSchema:D,onSubmit:I});return(0,t.jsxs)(y.Z,{className:w().form,onSubmit:R.handleSubmit,role:"form",children:[(0,t.jsx)(p.Text,{className:w().title,children:a("unsubscribeMember.form.title")}),(0,t.jsx)(_.Ee,{value:R.values.reasonType,children:g.map(e=>(0,t.jsx)(_.Rk,{value:e.value,id:e.value,onClick:()=>R.setFieldValue("reasonType",e.value),children:e.label},e.value))}),R.values.reasonType===T.OTHER&&(0,t.jsx)(j.Z,{validationStatus:R.errors.reasonDescription&&R.touched.reasonDescription?j.z.ERROR:void 0,helperText:R.touched.reasonDescription&&R.errors.reasonDescription||"",children:(0,t.jsx)(v.Z,{id:"reasonDescription",label:a("unsubscribeMember.form.reason.description.label"),placeholder:a("unsubscribeMember.form.reason.description.placeholder"),value:R.values.reasonDescription,onChange:R.handleChange})}),(0,t.jsx)(f.Z,{value:s,label:a("unsubscribeMember.form.email.label"),placeholder:a("unsubscribeMember.form.email.placeholder"),disabled:!0}),(0,t.jsx)(h.Z,{type:"submit",appearence:"solid",leftElement:(0,t.jsx)(b.EnvelopeFlyingIcon,{}),disabled:!s||l,isLoading:l,children:a("unsubscribeMember.form.send")})]})}var D=r(25675),I=r.n(D),R={src:"/_next/static/media/sad-email-right-arm.4020fea1.svg",height:55,width:58,blurWidth:0,blurHeight:0},S={src:"/_next/static/media/sad-email-body.0211d8ae.svg",height:187,width:150,blurWidth:0,blurHeight:0},C={src:"/_next/static/media/sad-email-left-arm.7076dcb1.svg",height:55,width:58,blurWidth:0,blurHeight:0},Z=r(41330),M=r.n(Z);function F(e){let{imgUrl:s}=e;return(0,t.jsxs)("div",{className:M().icon,children:[(0,t.jsx)(I(),{src:R,alt:"right-arm",className:M().rightArm}),(0,t.jsx)(I(),{src:S,alt:"body"}),(0,t.jsx)(I(),{src:C,alt:"left-arm",className:M().leftArm}),s?(0,t.jsx)(I(),{src:s,width:56,height:56,alt:"profile-icon",className:M().company}):(0,t.jsx)("div",{className:"".concat(M().company," ").concat(M().circle),children:(0,t.jsx)("span",{})})]})}var U=r(38642),B=r.n(U);function A(e){let{name:s,imgUrl:r}=e,{t:n}=(0,c.$G)("common");return(0,t.jsxs)("div",{className:B().wrapper,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(F,{imgUrl:r}),(0,t.jsx)(p.Text,{color:"#52525B",size:24,className:B().title,children:n("unsubscribeMember.title")}),(0,t.jsx)(p.Text,{color:"#52525B",size:24,className:"".concat(B().title," ").concat(B().company),children:s})]}),(0,t.jsx)(p.Text,{color:"#52525B",size:16,className:B().description,children:n("unsubscribeMember.description")})]})}var H=r(55934),k=r.n(H),q=!0;function z(e){let{channel:s,email:r,slug:n,subscriberUid:o}=e,{t:c}=(0,a.$G)("common");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i(),{children:(0,t.jsxs)("title",{children:[s.name," - ",c("unsubscribeMember.headTitle")]})}),(0,t.jsxs)("div",{className:k().container,children:[(0,t.jsx)(A,{name:s.name,imgUrl:s.imgUrl}),(0,t.jsx)(l.Z,{className:k().divider}),(0,t.jsx)(O,{email:r,slug:n,uid:o})]})]})}},25455:function(e){e.exports={divider:"styles_divider__nipno"}},7034:function(e){e.exports={inputGroup:"styles_inputGroup__bVWe_",labelInside:"styles_labelInside__UD2L0",inputField:"styles_inputField__2_sri",round:"styles_round__nZuyS",default:"styles_default__DPs1s",success:"styles_success__rvZb_",error:"styles_error__SpjcP",input:"styles_input__2_wX9",sideElement:"styles_sideElement__8By2w",passwordIcon:"styles_passwordIcon__f2WKg",invalidationIcon:"styles_invalidationIcon__Dnf07"}},98426:function(e){e.exports={label:"styles_label__d1uf2",requiredIcon:"styles_requiredIcon__spRXs"}},85433:function(e){e.exports={wrapper:"styles_wrapper__5rjmS",textarea:"styles_textarea__j42MT","textarea--success":"styles_textarea--success__IO1Rs","textarea--error":"styles_textarea--error__wQ4cs"}}
1,7472:function(e){e.exports={form:"styles_form__NoJo5",title:"styles_title__5220H"}},38642:function(e){e.exports={wrapper:"styles_wrapper__p7jVS",title:"styles_title__punpo",company:"styles_company__qpI0V",description:"styles_description__CVDHO"}},41330:function(e){e.exports={icon:"styles_icon__X3pzA",rightArm:"styles_rightArm__cDpHw",leftArm:"styles_leftArm__CwBl6",company:"styles_company__nZecz",circle:"styles_circle__vMQiM"}},55934:function(e){e.exports={container:"styles_container__FekxD",divider:"styles_divider__kqwQW"}}},function(e){e.O(0,[959,163,774,888,179],function(){return e(e.s=44094)}),_N_E=e.O()}]);

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.