1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2470],{5410:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-plan/regret-right",function(){return t(54445)}])},89326:function(e,n,t){"use strict";var r=t(72253),o=t(47702),i=t(85893),c=t(67294),a=t(81126),l=t(90772);n.Z=function(e){var n=e.t,t=e.placeholder,s=e.name,u=e.onHandleChange,d=(e.id,e.theme,(0,o._)(e,["t","placeholder","name","onHandleChange","id","theme"])),m=(0,a.U$)(s),p=m.fieldName,f=m.defaultValue,h=m.registerField,_=m.error,g=m.clearError,x=(0,c.useRef)(null);return(0,c.useEffect)(function(){h({name:p,ref:x.current,setValue:function(e,n){e.setValue(n||null)},clearValue:function(e){e.clearValue()},getValue:function(e){var n,t;return d.isMulti?(null===(n=e.state.selectValue)||void 0===n?void 0:n.map(function(e){return e.value}))||[]:(null===(t=e.state.selectValue[0])||void 0===t?void 0:t.value)||""}})},[p,h,d.isMulti]),(0,i.jsx)(l.bL,{children:(0,i.jsxs)(i.Fragment,{children:[d.label?(0,i.jsx)(l.__,{$hasError:d.hasError,disabled:d.disabled,children:d.label}):(0,i.jsx)("noscript",{}),(0,i.jsx)(l.Ph,(0,r._)({ref:x,placeholder:t||(void 0===n?{}:n)["Selecionar..."],defaultValue:f,onChange:function(e){g(),u&&"function"==typeof u&&u(e)},classNamePrefix:"Select",$hasError:!!_,isDisabled:d.disabled},d)),_&&(0,i.jsx)(l.hW,{children:_})]})})}},90772:function(e,n,t){"use strict";t.d(n,{Ph:function(){return c},__:function(){return a},bL:function(){return l},hW:function(){return s}});var r=t(82729),o=t(85444),i=t(40757);function _templateObject(){var e=(0,r._)(["\n border: ",";\n box-shadow: ",";\n "]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,r._)(["\n & .Select__indicator-separator {\n display: none;\n }\n\n & .Select__control {\n background-color: ",";\n height: 46.22px;\n border-radius: 0;\n transition: border 0.25s ease-in-out;\n border: ",";\n outline: none;\n\n &:focus {\n border: ",";\n box-shadow: ",";\n }\n\n &:hover {\n border: ",";\n box-shadow: ",";\n }\n\n &:active {\n border: ",";\n box-shadow: ",";\n }\n\n &:disabled {\n background: ",";\n }\n\n ","\n }\n\n & .Select__control--is-focused {\n border: "," !important;\n box-shadow: none !important;\n }\n\n & .Select__menu {\n background-color: ",";\n }\n\n & .Select__menu-list {\n color: ",";\n }\n\n & .Select__option {\n background-color: ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n }\n\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,r._)(["\n color: ",";\n "]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,r._)(["\n color: ",";\n "]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,r._)(["\n font-family: ",";\n font-weight: 900;\n font-size: 12px;\n line-height: 14px;\n text-transform: uppercase;\n display: inline-block;\n color: ",";\n\n ","\n\n ","\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,r._)(["\n border: transparent;\n "]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,r._)(["\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n width: 100%;\n margin: 16px 0;\n\n & > div {\n\n &:focus {\n border: transparent;\n }\n\n &:active {\n border: transparent;\n }\n\n &:hover {\n border: transparent;\n }\n\n ","\n\n border: none;\n box-shadow: none;\n }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,r._)(["\n font-style: normal;\n font-weight: 900;\n font-size: 10px;\n line-height: 12px;\n text-transform: uppercase;\n color: ",";\n margin-top: 5px;\n"]);return _templateObject7=function(){return e},e}var c=(0,o.ZP)(i.ZP).withConfig({displayName:"styles__Select",componentId:"sc-59edaf1-0"})(_templateObject1(),function(e){return e.theme.colors.white},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.lightGray})},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.primary})},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.primary})},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.primary})},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.primary})},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.primary})},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.primary})},function(e){return e.theme.colors.disabled.default}
1,function(e){return e.$hasError&&(0,o.iv)(_templateObject(),function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.danger})},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.danger})})},function(e){return e.theme,"2px solid ".concat(function(e){return e.theme.colors.primary})},function(e){return e.theme.colors.lightGray},function(e){return e.theme.colors.gray},function(e){return e.theme.colors.lightGray},function(e){return e.theme.colors.black},function(e){return e.theme.colors.mediumGray},function(e){return e.theme.colors.lightGray}),a=o.ZP.label.withConfig({displayName:"styles__Label",componentId:"sc-59edaf1-1"})(_templateObject4(),function(e){return e.theme.fonts.default},function(e){return e.theme.colors.text},function(e){return e.$hasError&&(0,o.iv)(_templateObject2(),function(e){return e.theme.colors.danger})},function(e){return e.disabled&&(0,o.iv)(_templateObject3(),function(e){return e.theme.colors.disabled.default})}),l=o.ZP.div.withConfig({displayName:"styles__SelectWrapper",componentId:"sc-59edaf1-2"})(_templateObject6(),function(e){return e.$hasError&&(0,o.iv)(_templateObject5())}),s=o.ZP.strong.withConfig({displayName:"styles__ErrorLabel",componentId:"sc-59edaf1-3"})(_templateObject7(),function(e){return e.theme.colors.danger})},68114:function(e,n,t){"use strict";t.d(n,{Z:function(){return components_ErrorModal}});var r=t(85893),o=t(36824),i=t(60369),c=t(82729),a=t(85444);function _templateObject(){var e=(0,c._)(["\n height: 100%;\n padding: 45px 15px 32px 15px;\n min-width: 280px;\n\n @media (",") {\n max-width: 480px;\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,c._)(["\n font-style: normal;\n font-family: ",";\n font-weight: 400;\n font-size: 24px;\n line-height: 29px;\n text-align: center;\n color: ",";\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,c._)(["\n margin-top: 8px;\n font-style: normal;\n font-weight: 900;\n font-size: 16px;\n line-height: 19px;\n text-align: center;\n color:",";\n text-transform: uppercase;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,c._)(["\n margin-top: 0;\n font-style: normal;\n font-family: ",";\n font-weight: 400;\n font-size: 32px;\n line-height: 44px;\n text-align: center;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,c._)(["\n margin-top: 8px;\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n text-align: center;\n color:",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,c._)(["\n text-align: center;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,c._)(["\n svg {\n width: 100px;\n height: 100px;\n }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,c._)(["\n margin-top: 8px;\n font-style: normal;\n font-weight: 400;\n line-height: 19px;\n color: ",";\n text-align: center;\n font-size: 18px;\n\n ul > li {\n margin-bottom: 10px;\n list-style: none;\n }\n\n li > ul > li {\n font-size: 14px;\n color: ",";\n margin-bottom: 5px;\n margin-left: 20px;\n }\n"]);return _templateObject7=function(){return e},e}var l=a.ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-5e9228c-0"})(_templateObject(),function(e){return e.theme.sizes.medium}),s=a.ZP.h1.withConfig({displayName:"styles__Title",componentId:"sc-5e9228c-1"})(_templateObject1(),function(e){return e.theme.fonts.highlight},function(e){return e.theme.colors.text}),u=a.ZP.p.withConfig({displayName:"styles__Text",componentId:"sc-5e9228c-2"})(_templateObject2(),function(e){return e.theme.colors.gray}),d=a.ZP.p.withConfig({displayName:"styles__DefaultText",componentId:"sc-5e9228c-3"})(_templateObject3(),function(e){return e.theme.fonts.highlight}),m=a.ZP.p.withConfig({displayName:"styles__Description",componentId:"sc-5e9228c-4"})(_templateObject4(),function(e){return e.theme.colors.gray}),p=a.ZP.div.withConfig({displayName:"styles__Icon",componentId:"sc-5e9228c-5"}
1)(_templateObject5()),f=a.ZP.div.withConfig({displayName:"styles__CustomErrorIcon",componentId:"sc-5e9228c-6"})(_templateObject6()),h=a.ZP.div.withConfig({displayName:"styles__ErrorsList",componentId:"sc-5e9228c-7"})(_templateObject7(),function(e){return e.theme.colors.red},function(e){return e.theme.colors.gray}),components_ErrorModal=function(e){var n,t=e.isShowing,c=e.title,_=e.text,g=e.description,x=e.onClose,b=e.CustomCloseIcon,v=e.CustomErrorIcon,j=e.errorsList,y=(0,i.mM)(),O=null==y?void 0:null===(n=y.state)||void 0===n?void 0:n.translate,w=(0,a.Fg)();return(0,r.jsx)(o.Z,{showing:t,onClose:x,CustomCloseIcon:b,closeIconColor:w.colors.text.includes("#fff")?"white":"black",children:(0,r.jsxs)(l,{children:[(0,r.jsx)(s,{children:c}),(0,r.jsx)(p,{children:v?(0,r.jsx)(f,{children:(0,r.jsx)(v,{})}):(0,r.jsx)("img",{src:"/icons/icon-error.svg"})}),(0,r.jsx)(u,{children:_}),(0,r.jsx)(d,{children:O["Ocorreu um problema!"]}),""!==g&&(0,r.jsx)(m,{children:g||"".concat(O["Devido a uma falha sist\xeamica n\xe3o foi possiv\xe9l concluir"]," ").concat(c,".\n ").concat(O["Por favor, tente novamente em alguns minutos"],".")}),(null==j?void 0:j.length)>0&&(0,r.jsx)(h,{children:j.map(function(e){var n;return(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:null==e?void 0:e.label}),(0,r.jsx)("li",{children:(0,r.jsx)("ul",{children:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.map(function(e){return/translation missing/.test(e)?"":(0,r.jsx)("li",{children:"- ".concat(e)})})})})]})})})]})})}},86323:function(e,n,t){"use strict";var r=t(82729);function _templateObject(){var e=(0,r._)(["\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: 900;\n line-height: 14px;\n text-transform: uppercase;\n font-size: 16px;\n"]);return _templateObject=function(){return e},e}var o=t(85444).ZP.h4.withConfig({displayName:"SubTitle",componentId:"sc-76f53f79-0"})(_templateObject(),function(e){return e.theme.colors.gray},function(e){return e.theme.fonts.highlight});n.Z=o},87854:function(e,n,t){"use strict";var r=t(82729);function _templateObject(){var e=(0,r._)(["\n font-family: ",";\n font-weight: 900;\n margin: 0 0 20px;\n font-size: 1.8em;\n color: ",";\n\n @media (",") {\n font-size: 2.6em;\n }\n"]);return _templateObject=function(){return e},e}var o=t(85444).ZP.h2.withConfig({displayName:"Title",componentId:"sc-8064d52-0"})(_templateObject(),function(e){return e.theme.fonts.highlight},function(e){return e.theme.colors.text},function(e){return e.theme.sizes.medium});n.Z=o},58779:function(e,n,t){"use strict";t.d(n,{Z:function(){return components_SuccessModal}});var r=t(85893),o=t(67294),i=t(2113),c=t(75026),a=t(37150),l=t(69178),s=t(60369),u=t(82729),d=t(85444),m=t(88491);function _templateObject(){var e=(0,u._)(["\n height: 100%;\n padding: 6rem 3rem 32px;\n "," {\n width: 100%;\n }\n @media (",") {\n padding: 6rem 3.5rem 32px;\n max-width: 480px;\n "," {\n width: 325px;\n margin: 0 auto;\n }\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,u._)(["\n font-family: ",";\n font-style: normal;\n font-weight: 900;\n font-size: 16px;\n line-height: 24px;\n text-align: center;\n text-transform: uppercase;\n margin-bottom: 1.5rem;\n color: ",";\n\n @media (",") {\n font-size: 24px;\n line-height: 32px;\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,u._)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n "," {\n max-width: 56px;\n & div {\n margin: 0;\n }\n }\n img {\n width: 100%;\n }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,u._)(["\n margin-top: 8px;\n margin-bottom: 1.5rem;\n font-family: ",";\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n color: ",";\n span {\n font-weight: 900;\n }\n @media (",") {\n font-size: 16px;\n line-height: 24px;\n }\n"]);return _templateObject3=function(){return e},e}
1function _templateObject4(){var e=(0,u._)(["\n width: 100%;\n @media (",") {\n width: 325px;\n margin: 0 auto;\n }\n"]);return _templateObject4=function(){return e},e}var p=d.ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-9eba0f1e-0"})(_templateObject(),c.Z,function(e){return e.theme.sizes.medium},c.Z),f=d.ZP.h1.withConfig({displayName:"styles__Title",componentId:"sc-9eba0f1e-1"})(_templateObject1(),function(e){return e.theme.fonts.highlight},function(e){return e.theme.colors.text},function(e){return e.theme.sizes.medium}),h=d.ZP.div.withConfig({displayName:"styles__IconContainer",componentId:"sc-9eba0f1e-2"})(_templateObject2(),m.a),_=d.ZP.div.withConfig({displayName:"styles__MessageSuccess",componentId:"sc-9eba0f1e-3"})(_templateObject3(),function(e){return e.theme.fonts.default},function(e){return e.theme.colors.text},function(e){return e.theme.sizes.medium}),g=d.ZP.div.withConfig({displayName:"styles__AlertWrapper",componentId:"sc-9eba0f1e-4"})(_templateObject4(),function(e){return e.theme.sizes.medium}),components_SuccessModal=function(e){var n,t=e.title,u=e.icon,m=e.message,x=e.messageReplace,b=e.labelClose,v=e.alertMessage,j=e.alertIcon,y=e.showing,O=e.onClose,w=e.onOpen,C=e.variantClose,Z=e.outlinedClose,I=e.roundedClose,R=e.buttonId,P=e.secondButton,S=e.secondVariantClose,N=e.secondOutlinedClose,k=e.secondRoundedClose,z=e.secondLabelClose,M=e.secondButtonNavigation,E=e.secondButtonId,A=(0,s.mM)(),T=null==A?void 0:null===(n=A.state)||void 0===n?void 0:n.translate;(0,o.useEffect)(function(){w&&w()},[]);var F=(0,d.Fg)().colors.text.includes("#fff")?"/icons/icon-success-white-v2.svg":"/icons/icon-success-v2.svg";return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.Z,{showing:y,onClose:O,closeIconSide:"right",children:(0,r.jsxs)(p,{children:[(0,r.jsx)(h,{children:(0,r.jsx)(a.Z,{children:u||(0,r.jsx)("img",{src:F})})}),(0,r.jsx)(f,{children:t}),m&&(0,r.jsx)(_,{dangerouslySetInnerHTML:{__html:m}}),x&&(0,r.jsx)(_,{children:x}),(0,r.jsx)(c.Z,{variant:C||"primary",type:"button",onClick:O,outlined:!!Z&&Z,borderRadius:I&&"36px",id:R,children:b||T.Fechar}),P&&(0,r.jsx)(c.Z,{variant:S||"primary",type:"button",onClick:M,outlined:!!N&&N,borderRadius:k&&"36px",style:{marginTop:"8px"},id:E,children:z||T.Fechar}),v&&(0,r.jsx)(g,{children:(0,r.jsx)(l.Z,{status:"warning",icon:(0,r.jsx)(a.Z,{children:j||(0,r.jsx)("img",{src:"/icons/icon-alert-v2.svg"})}),message:v})})]})})})}},13961:function(e,n,t){"use strict";var r=t(11010),o=t(97582),i=t(60369),c=t(67294);n.Z=function(e){var n=e.apiAction,t=(0,i.mM)(),a=t.state.doubleCheck.authorized,l=t.state.doubleCheck.dataToConfirm;return(0,c.useEffect)(function(){var e;(e=(0,r._)(function(){return(0,o.Jh)(this,function(e){switch(e.label){case 0:if(!(a&&l))return[3,2];return t.dispatch({type:"double_check:reset",payload:null}),[4,n(l)];case 1:e.sent(),e.label=2;case 2:return[2]}})}),function(){return e.apply(this,arguments)})()},[a,l]),{show:function(){t.dispatch({type:"double_check:show",payload:{show:!0,tokenAuthenticatorType:(null==e?void 0:e.checkAuthType)||"pin_auth"}})},authorized:a}}},54445:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return $},default:function(){return regret_right}});var r=t(85893),o=t(67294),i=t(91546),c=t(9008),a=t.n(c),l=t(87854),s=t(86323),u=t(75026),d=t(41664),m=t.n(d),p=t(35979),f=t(7575),h=t(11010),_=t(72253),g=t(91309),x=t(97582),b=t(60369),v=t(72855),j=t(11163),y=t.n(j),O=t(13961),w=t(74743),C=t(50259),RegretRightContent_useRegretRight=function(){var e,n,t,r,i,c,a,l,s,u,d=(0,b.mM)(),m=null==d?void 0:null===(n=d.state)||void 0===n?void 0:n.translate,p=(0,g._)((0,o.useState)(!1),2),f=p[0],j=p[1],Z=(0,g._)((0,o.useState)(!1),2),I=Z[0],R=Z[1],P=(0,g._)((0,o.useState)({start:null,plan:null,price:null}),2),S=P[0],N=P[1],k=null==d?void 0:null===(t=d.state)||void 0===t?void 0:t.currentLocale,z=(0,g._)((0,o.useState)(!1),2),M=z[0],E=z[1],A=null==d?void 0:null===(i=d.state)||void 0===i?void 0:null===(r=i.user)||void 0===r?void 0:r.personal,T=A.single_access_token,F=A.country_locale,L=null==d?void 0:null===(l=d.state)||void 0===l?void 0:null===(a=l.user)||void 0===a?void 0:null===(c=a.purchase)||void 0===c?void 0:c.id,V=(0,g._)((0,o.useState)(null),2),D=V[0],J=V[1],H=(0,g._)((0,o.useState)({}),2),q=H[0],U=H[1],B=d.gaMetrics,W=(0,g._)((0,o.useState)(!1),2),$=W[0],G=W[1],X=(0,g._)((0,o.useState)(null),2),Q=X[0],K=X[1],Y=(0,C.xX)().executeRecaptcha,ee=(0,o.useCallback)((0,h._)(function(){var e;return(0,x.Jh)(this,function(n){switch(n.label){case 0:if(!Y)return console.log("Execute recaptcha not yet available"),[2];return[4,Y("RegretRight")];case 1:return e=n.sent(),G(!0),K(e),[2]}})}),[Y]);(0,o.useEffect)(function(){ee()},[ee]),(0,o.useEffect)(function(){j(!0);var e,n,t,r=(e=(0,h._)(function(){var e,n,t,r,o;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return[4,(0,v.F)()];case 1:if(!((e=i.sent())&&e.data))return[3,3];return[4,(0,_._)({},null==e?void 0:e.data)];case 2:(n=i.sent())&&Object.keys(n).length&&(N({start:null==n?void 0:n.purchase_confirmed_at,plan:null==n?void 0:n.plan,price:null==d?void 0:null===(o=d.state)||void 0===o?void 0:null===(r=o.user)||void 0===r?void 0:null===(t=r.purchase)||void 0===t?void 0:t.membership_price}),E(!0)),i.label=3;case 3:return j(!1),[2]}})}),function(){return e.apply(this,arguments)});(null==d?void 0:null===(t=d.state)||void 0===t?void 0:null===(n=t.user)||void 0===n?void 0:n.regrettable)?r():k&&y().push("/".concat(k,"/my-plan"))},[null==d?void 0:null===(s=d.state)||void 0===s?void 0:s.user,null==d?void 0:null===(u=d.state)||void 0===u?void 0:u.currentLocale]);var en=(e=(0,h._)(function(){var e,n,t,r;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(!$)return[3,5];
1R(!1),j(!0),e="cancelReason",n=JSON.parse(sessionStorage.getItem(e)),B.clickEvents.v2.TriggerAction({action:"motivo-direito-de-arrependimento",label:n.value}),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,(0,w.R)({single_access_token:T,id:L,cancelling_reason_id:"8",locale:F,token:Q})];case 2:return(null==(r=o.sent())?void 0:null===(t=r.data)||void 0===t?void 0:t.success)?(J(!0),sessionStorage.removeItem(e),B.clickEvents.v2.TriggerAction({action:"direito-de-arrependimento",label:"sucesso"})):(J(!1),U({title:m["Solicitar Cancelamento."],description:m["N\xe3o foi poss\xedvel cancelar o plano."]})),[3,5];case 3:return o.sent(),U({title:m["Solicitar Cancelamento."],description:m["N\xe3o foi poss\xedvel cancelar o plano."]}),[3,5];case 4:return j(!1),[7];case 5:return[2]}})}),function(){return e.apply(this,arguments)});return{t:m,loading:f,isShowingModalRegret:I,setIsShowingModalRegret:R,planInfo:S,currentLocale:k,loaded:M,doubleCheckAuth:(0,O.Z)({apiAction:en,checkAuthType:"pin_auth"}),success:D,setSuccess:J,handleRedirect:function(){J(!1),j(!0),y().push("/".concat(k,"/my-plan"))},errorHandling:q,handleModalRegret:function(){R(!0),B.clickEvents.v2.TriggerAction({action:"direito-de-arrependimento",label:"solicitar-cancelamento"})}}},Z=t(89326),I=t(83122),R=t(2113),P=t(82729),S=t(85444);function _templateObject(){var e=(0,P._)([""]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,P._)(["\n padding: 6rem 3rem 3rem;\n text-align: center;\n max-width: 485px;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,P._)(["\n width: 90px;\n margin: 0 auto 1rem;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,P._)(["\n font-family: ",";\n font-weight: 900;\n font-size: 24px;\n line-height: 32px;\n margin-bottom: 2rem;\n color: ",";\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,P._)(["\n font-size: 16px;\n line-height: 24px;\n margin-bottom: 4rem;\n color: ",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,P._)(["\n font-size: 10px;\n line-height: 15px;\n text-align: left;\n color: ",";\n\n &:before {\n content: 'â¢';\n margin-right: 0.5rem;\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,P._)(["\n text-align: left;\n margin-bottom: 3.5rem;\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,P._)(["\n display: flex;\n flex-direction: column-reverse;\n\n "," {\n margin-bottom: 20px;\n }\n\n @media (",") {\n flex-direction: row;\n justify-content: space-between;\n\n "," {\n padding-left: 63px;\n padding-right: 63px;\n }\n }\n"]);return _templateObject7=function(){return e},e}var N=S.ZP.div.withConfig({displayName:"styles__Modal",componentId:"sc-c7790fae-0"})(_templateObject()),k=S.ZP.div.withConfig({displayName:"styles__WrapperRegret",componentId:"sc-c7790fae-1"})(_templateObject1()),z=S.ZP.div.withConfig({displayName:"styles__ModalIcon",componentId:"sc-c7790fae-2"})(_templateObject2()),M=S.ZP.div.withConfig({displayName:"styles__ModalTitle",componentId:"sc-c7790fae-3"})(_templateObject3(),function(e){return e.theme.fonts.highlight},function(e){return e.theme.colors.text}),E=S.ZP.div.withConfig({displayName:"styles__ModalDescription",componentId:"sc-c7790fae-4"})(_templateObject4(),function(e){return e.theme.colors.text}),A=S.ZP.div.withConfig({displayName:"styles__Footer",componentId:"sc-c7790fae-5"})(_templateObject5(),function(e){return e.theme.colors.text}),T=S.ZP.div.withConfig({displayName:"styles__SelectWrapper",componentId:"sc-c7790fae-6"})(_templateObject6()),F=S.ZP.div.withConfig({displayName:"styles__Buttons",componentId:"sc-c7790fae-7"})(_templateObject7(),u.Z,function(e){return e.theme.sizes.medium},u.Z),ModalRegret_useModalRegret=function(){var e,n=(0,b.mM)(),t=null==n?void 0:null===(e=n.state)||void 0===e?void 0:e.translate,r=(0,g._)((0,o.useState)({label:null,value:null}),2),i=r[0],c=r[1],a=n.gaMetrics,l={regretOptions:[{label:t["N\xe3o terei tempo para ir \xe0 academia"],value:"nao-terei-tempo-para-ir-a-academia"},{label:t["Valor muito alto"],value:"valor-muito-alto"},{label:t["Quero contratar outro plano"],value:"quero-contratar-outro-plano"},{label:t.Outros,value:"outros"}]};return(0,o.useEffect)(function(){a.clickEvents.v2.TriggerAction({action:"confirmar-direito-de-arrependimento",label:"modal-carregado"})},[]),{t:t,options:l,handleRegretReason:function(e){c(e)},regretReason:i,storeReason:function(){sessionStorage.setItem("cancelReason",JSON.stringify(i))}}},RegretRightContent_ModalRegret=function(e){var n=e.onClose,t=e.doubleCheckAuth,o=e.setIsShowingModalRegret,i=ModalRegret_useModalRegret(),c=i.t,a=i.options,l=i.handleRegretReason,s=i.regretReason,d=i.storeReason;return(0,r.jsx)(N,{children:(0,r.jsx)(R.Z,{closeIcon:!0,closeIconSide:"right",showing:!0,onClose:n,children:(0,r.jsxs)(k,{children:[(0,r.jsx)(z,{children:(0,r.jsx)("img",{src:"/icons/icon-double-check-v2.svg"})}),(0,r.jsx)(M,{children:c["Tem certeza que deseja cancelar o seu plano?"]}),(0,r.jsx)(E,{children:c["Seu plano ser\xe1 cancelado assim que concluir o cancelamento e n\xe3o poder\xe1 mais utilizar a Smart Fit."]}),(0,r.jsxs)(I.l,{onSubmit:function(){d(),o(!1),t.show()},placeholder:void 0,onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0,children:[(0,r.jsx)(T,{children:(0,r.jsx)(Z.Z,{name:"regret_reason",label:c["Motivo do arrependimento"],options:a.regretOptions,onHandleChange:function(e){return l(e)},placeholder:c["Selecione o motivo"]})}),(0,r.jsxs)(F,{children:[(0,r.jsx)(u.Z,{variant:"tertiary",type:"button",onClick:n,outlined:!0,children:c.Voltar}),(0,r.jsx)(u.Z,{type:"submit",disabled:null===s.value,children:c.Continuar})]})]}),(0,r.jsx)(A,{children:c["Caso tenha debitado qualquer pagamento referente ao seu plano, o estorno total do valor ser feito no prazo m\xe1ximo de 30 dias."]})]})})})}
1,L=t(58779),V=t(68114),D=t(19928),J=t(20639);function styles_templateObject(){var e=(0,P._)(["\n margin-top: 20px;\n display: flex;\n flex-direction: column-reverse;\n\n "," {\n margin-bottom: 20px;\n }\n\n @media (",") {\n flex-direction: row;\n justify-content: space-between;\n\n "," {\n padding-left: 50px;\n padding-right: 50px;\n }\n }\n"]);return styles_templateObject=function(){return e},e}function styles_templateObject1(){var e=(0,P._)(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n "," {\n font-size: 12px;\n }\n\n @media (",") {\n flex-direction: row;\n margin: 6rem 0;\n }\n"]);return styles_templateObject1=function(){return e},e}function styles_templateObject2(){var e=(0,P._)(["\n margin-bottom: 2rem;\n\n @media (",") {\n margin-bottom: 0;\n }\n"]);return styles_templateObject2=function(){return e},e}function styles_templateObject3(){var e=(0,P._)(["\n font-size: 16px;\n line-height: 15px;\n color: ",";\n"]);return styles_templateObject3=function(){return e},e}var H=S.ZP.div.withConfig({displayName:"styles__Buttons",componentId:"sc-11c6c5aa-0"})(styles_templateObject(),u.Z,J.ZP.sizes.medium,u.Z),q=S.ZP.div.withConfig({displayName:"styles__PlanInfo",componentId:"sc-11c6c5aa-1"})(styles_templateObject1(),s.Z,function(e){return e.theme.sizes.medium}),U=S.ZP.div.withConfig({displayName:"styles__PlanInfoItem",componentId:"sc-11c6c5aa-2"})(styles_templateObject2(),function(e){return e.theme.sizes.medium}),B=S.ZP.div.withConfig({displayName:"styles__PlanInfoData",componentId:"sc-11c6c5aa-3"})(styles_templateObject3(),function(e){return e.theme.colors.text}),components_RegretRightContent=function(){var e=RegretRightContent_useRegretRight(),n=e.t,t=e.loading,o=e.isShowingModalRegret,i=e.setIsShowingModalRegret,c=e.planInfo,d=e.currentLocale,h=e.doubleCheckAuth,_=e.success,g=e.setSuccess,x=e.handleRedirect,b=e.errorHandling,v=e.handleModalRegret,j=e.loaded;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a(),{children:(0,r.jsxs)("title",{children:[n["Smart Fit"]," - ",n["Espa\xe7o do Cliente"]," -"," ",n["Direito de arrependimento"]]})}),(0,r.jsx)(l.Z,{children:n["Direito de arrependimento"]}),j&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(q,{children:[(0,r.jsxs)(U,{children:[(0,r.jsx)(s.Z,{children:n["DATA DA CONTRATA\xc7\xc3O"]}),(0,r.jsx)(B,{children:(0,p.ID)(c.start)})]}),(0,r.jsxs)(U,{children:[(0,r.jsx)(s.Z,{children:n["PLANO CONTRATADO"]}),(0,r.jsx)(B,{children:n["Plano ".concat(c.plan)]})]}),(0,r.jsxs)(U,{children:[(0,r.jsx)(s.Z,{children:n.VALOR}),(0,r.jsx)(B,{children:(0,r.jsx)("strong",{children:(0,f.OH)(c.price,d)})})]})]}),(0,r.jsxs)(H,{children:[(0,r.jsx)(m(),{legacyBehavior:!0,href:"/".concat(d,"/my-plan"),passHref:!0,children:(0,r.jsx)(u.Z,{variant:"tertiary",type:"button",children:n.Voltar})}),(0,r.jsx)(u.Z,{type:"button",onClick:function(){return v()},children:n["SOLICITAR CANCELAMENTO"]})]})]}),(0,r.jsx)(function(){return o?(0,r.jsx)(RegretRightContent_ModalRegret,{doubleCheckAuth:h,onClose:function(){return i(!1)},setIsShowingModalRegret:i}):(0,r.jsx)(r.Fragment,{})},{}),(0,r.jsx)(function(){return _?(0,r.jsx)(L.Z,{showing:_,labelClose:n.Concluir,title:n["Seu plano foi cancelado!"],message:n["Daqui a pouquinho, voc\xea tamb\xe9m receber\xe1 no email cadastrado a confirma\xe7\xe3o do cancelamento."],onClose:x}):(0,r.jsx)(r.Fragment,{})},{}),(0,r.jsx)(function(){return!1===_?(0,r.jsx)(V.Z,{isShowing:!0,title:b.title,text:"",description:b.description,onClose:function(){return g(null)}}):(0,r.jsx)(r.Fragment,{})},{}),(0,r.jsx)(function(){return t?(0,r.jsx)(D.Z,{}):(0,r.jsx)(r.Fragment,{})},{})]})},W=t(14376),$=!0,regret_right=function(){var e=(0,o.useRef)(null);return(0,r.jsx)(i.Z,{footerRef:e,children:(0,r.jsx)(W.default,{children:(0,r.jsx)(components_RegretRightContent,{})})})}},74743:function(e,n,t){"use strict";t.d(n,{R:function(){return putPurchaseCancel}});var r=t(11010),o=t(72253),i=t(97582),c=t(48303);function putPurchaseCancel(e){return _putPurchaseCancel.apply(this,arguments)}function _putPurchaseCancel(){return(_putPurchaseCancel=(0,r._)(function(e){var n,t,a,l,s;return(0,i.Jh)(this,function(u){switch(u.label){case 0:var d;return n=e.single_access_token,t=e.locale,a=e.id,l=e.cancelling_reason_id,s=e.token,d=(0,r._)(function(){var e;return(0,i.Jh)(this,function(r){switch(r.label){case 0:return e={single_access_token:n,locale:t,id:a,purchase:{cancelling_reason_id:l},token:s},[4,(0,c.gz)("/api/v1/purchase/".concat(n,"/cancel"),(0,o._)({},e)).then(function(e){return e}).catch(function(e){return e.response.data})];case 1:return[2,r.sent()]}})}),[4,function(){return d.apply(this,arguments)}()];case 1:return[2,u.sent()]}})})).apply(this,arguments)}},72855:function(e,n,t){"use strict";t.d(n,{F:function(){return getUserPlan}});var r=t(11010),o=t(97582),i=t(48303);function getUserPlan(){return _getUserPlan.apply(this,arguments)}function _getUserPlan(){return(_getUserPlan=(0,r._)(function(){return(0,o.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,(0,i.U2)("/api/v1/user-plan",{})];case 1:return[2,e.sent()];case 2:return console.error("An unexpected error happened:",e.sent()),[2];case 3:return[2]}})})).apply(this,arguments)}}},function(e){e.O(0,[5445,9402,4105,1546,3926,4376,9774,2888,179],function(){return e(e.s=5410)}),_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.