PageSourceSearch

https://espacodocliente.smartfit.com.br/_next/static/chunks/pages/addons/[id]-bacb7f55aebc33c5.js

js smartfit.com.br collected 2026-10-01 12:03:56 UTC 33,082 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1949],{42156:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/addons/[id]",function(){return t(56268)}])},70764:function(n,e,t){"use strict";var o=t(72253),i=t(47702),r=t(85893),c=t(67294),a=t(81126),l=t(44152);e.Z=(0,c.memo)(function(n){var e=n.name,t=n.label,s=n.altLabel,u=(n.hasError,n.onChange),d=(0,i._)(n,["name","label","altLabel","hasError","onChange"]),m=(0,c.useRef)(),f=(0,a.U$)(e),p=f.fieldName,_=f.defaultValue,h=f.registerField,g=f.error,v=f.clearError;return(0,c.useEffect)(function(){h({name:p,ref:m.current,getValue:function(n){return n.checked},setValue:function(n){n.checked=!0},clearValue:function(n){n.checked=!1}})},[p,h]),(0,r.jsxs)(l.im,{children:[(0,r.jsxs)(l.kC,{children:[(0,r.jsx)("input",(0,o._)({id:p,type:"checkbox",ref:m,defaultValue:_,onChange:function(n){v(),u&&"function"==typeof u&&u(n)}},d)),(0,r.jsx)(l.__,{htmlFor:p,dangerouslySetInnerHTML:t&&{__html:t},children:s})]}),(0,r.jsx)(l.jj,{children:g&&(0,r.jsx)("span",{className:"error",children:g})})]})})},44152:function(n,e,t){"use strict";t.d(e,{__:function(){return a},im:function(){return r},jj:function(){return l},kC:function(){return c}});var o=t(82729),i=t(85444);function _templateObject(){var n=(0,o._)(["\n  font-weight: 400;\n"]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,o._)(["\n  display: flex;\n  justify-content: flex-start;\n  align-items: flex-start;\n\n  input {\n    width: 16px;\n    min-width: 16px;\n    height: 16px;\n    min-height: 16px;\n    flex-shrink: 0;\n    margin-right: 10px;\n    accent-color: ",";\n  }\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,o._)(["\n  font-size: 12px;\n  font-weight: 400;\n  color: ",";\n"]);return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,o._)(["\n  color: ",";\n"]);return _templateObject3=function(){return n},n}var r=i.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-b6dbaf18-0"})(_templateObject()),c=i.ZP.div.withConfig({displayName:"styles__Flex",componentId:"sc-b6dbaf18-1"})(_templateObject1(),function(n){return n.theme.colors.primary}),a=i.ZP.label.withConfig({displayName:"styles__Label",componentId:"sc-b6dbaf18-2"})(_templateObject2(),function(n){return n.theme.colors.text}),l=i.ZP.div.withConfig({displayName:"styles__Error",componentId:"sc-b6dbaf18-3"})(_templateObject3(),function(n){return n.theme.colors.danger})},87854:function(n,e,t){"use strict";var o=t(82729);function _templateObject(){var n=(0,o._)(["\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 n},n}var i=t(85444).ZP.h2.withConfig({displayName:"Title",componentId:"sc-8064d52-0"})(_templateObject(),function(n){return n.theme.fonts.highlight},function(n){return n.theme.colors.text},function(n){return n.theme.sizes.medium});e.Z=i},72108:function(n,e,t){"use strict";t.d(e,{Z:function(){return components_ErrorModal}});var o=t(85893);t(67294);var i=t(2113),r=t(75026),c=t(37150),a=t(60369),l=t(82729),s=t(85444),u=t(88491);function _templateObject(){var n=(0,l._)(["\n  height: 100%;\n  padding: 6rem 3rem 32px;\n\n  "," {\n    width: 100%;\n  }\n\n  @media (",") {\n    max-width: 485px;\n  }\n"]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,l._)(["\n  font-family: ",";\n  font-style: normal;\n  font-weight: 900;\n  font-size: 16px;\n  line-height: 15px;\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: 29px;\n  }\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,l._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  "," {\n    max-width: 100px;\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n    & div {\n      margin: 0;\n    }\n  }\n  img {\n    width: 100%;\n  }\n"]);return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,l._)(["\n  margin-top: 8px;\n  margin-bottom: 1.5rem;\n  padding: 16px;\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 n},n}function _templateObject4(){var n=(0,l._)([""]);return _templateObject4=function(){return n},n}function _templateObject5(){var n=(0,l._)(["\n  display: flex;\n  margin-bottom: 2rem;\n  flex-direction: column;\n  align-items: center;\n"]);return _templateObject5=function(){return n},n}function _templateObject6(){var n=(0,l._)(["\n  color: ",";\n"]);return _templateObject6=function(){return n},n}function _templateObject7(){var n=(0,l._)(["\n  color: ",";\n  font-style: italic;\n"]);return _templateObject7=function(){return n},n}function _templateObject8(){var n=(0,l._)(["\n  font-size: 16px;\n  line-height: 24px;\n"]);return _templateObject8=function(){return n},n}var d=s.ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-e01008f8-0"})(_templateObject(),r.Z,function(n){return n.theme.sizes.small}),m=s.ZP.h1.withConfig({displayName:"styles__Title",componentId:"sc-e01008f8-1"})(_templateObject1(),function(n){return n.theme.fonts.highlight},function(n){return n.theme.colors.text},function(n){return n.theme.sizes.medium}),f=s.ZP.div.withConfig({displayName:"styles__IconContainer",componentId:"sc-e01008f8-2"})(_templateObject2(),u.a),p=s.ZP.div.withConfig({displayName:"styles__MessageError",componentId:"sc-e01008f8-3"})(_templateObject3(),function(n){return n.theme.fonts.default},function(n){return n.theme.colors.text},function(n){return n.theme.sizes.medium}),_=s.ZP.div.withConfig({displayName:"styles__ErrorsList",componentId:"sc-e01008f8-4"})(_templateObject4()),h=s.ZP.div.withConfig({displayName:"styles__ErrorsListItem",componentId:"sc-e01008f8-5"})(_templateObject5()),g=s.ZP.div.withConfig({displayName:"styles__ErrorLabel",componentId:"sc-e01008f8-6"})(_templateObject6(),function(n){return n.theme.colors.text}),v=s.ZP.div.withConfig({displayName:"styles__Error",componentId:"sc-e01008f8-7"})(_templateObject7(),function(n){return n.theme.colors.text}),b=s.ZP.div.withConfig({displayName:"styles__FooterContainer",componentId:"sc-e01008f8-8"})(_templateObject8()),components_ErrorModal=function(n){var e,t=n.title,l=n.icon,u=n.message,x=n.labelClose,j=n.showing,y=n.onClose,O=n.errorsList,w=n.variantClose,C=n.outlinedClose,Z=n.roundedClose,I=n.noButton,A=n.formattedMessage,P=void 0===A?null:A,N=n.footer,k=void 0!==N&&N,S=(0,a.mM)(),T=(0,s.Fg)(),z=null==S?void 0:null===(e=S.state)||void 0===e?void 0:e.translate,M=T.colors.text.includes("#fff")?"/icons/icon-warning-white.svg":"/icons/icon-warning.svg";return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(i.Z,{showing:j,onClose:y,closeIconSide:"right",children:(0,o.jsxs)(d,{children:[(0,o.jsx)(f,{children:(0,o.jsx)(c.Z,{children:l||(0,o.jsx)("img",{src:M})})}),(0,o.jsx)(m,{children:t}),u&&(0,o.jsx)(p,{dangerouslySetInnerHTML:{__html:u}}),P&&(0,o.jsx)(p,{children:P}),(null==O?void 0:O.length)>0&&(0,o.jsx)(_,{children:O.map(function(n){var e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(h,{children:[(0,o.jsxs)(g,{children:[null==n?void 0:n.label,":"]}),null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.map(function(n){return/translation missing/.test(n)?"":(0,o.jsx)(v,{children:"".concat(n)})})]})})})}),!(void 0!==I&&I)&&(0,o.jsx)(r.Z,{variant:void 0===w?"primary":w,type:"button",onClick:y,outlined:void 0!==C&&C,borderRadius:Z&&"36px",children:x||z.Fechar}),k&&(0,o.jsx)(b,{children:k})]})})})}},58779:function(n,e,t){"use strict";t.d(e,{Z:function(){return components_SuccessModal}});var o=t(85893),i=t(67294),r=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 n=(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"]);
1return _templateObject=function(){return n},n}function _templateObject1(){var n=(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 n},n}function _templateObject2(){var n=(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 n},n}function _templateObject3(){var n=(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 n},n}function _templateObject4(){var n=(0,u._)(["\n  width: 100%;\n  @media (",") {\n    width: 325px;\n    margin: 0 auto;\n  }\n"]);return _templateObject4=function(){return n},n}var f=d.ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-9eba0f1e-0"})(_templateObject(),c.Z,function(n){return n.theme.sizes.medium},c.Z),p=d.ZP.h1.withConfig({displayName:"styles__Title",componentId:"sc-9eba0f1e-1"})(_templateObject1(),function(n){return n.theme.fonts.highlight},function(n){return n.theme.colors.text},function(n){return n.theme.sizes.medium}),_=d.ZP.div.withConfig({displayName:"styles__IconContainer",componentId:"sc-9eba0f1e-2"})(_templateObject2(),m.a),h=d.ZP.div.withConfig({displayName:"styles__MessageSuccess",componentId:"sc-9eba0f1e-3"})(_templateObject3(),function(n){return n.theme.fonts.default},function(n){return n.theme.colors.text},function(n){return n.theme.sizes.medium}),g=d.ZP.div.withConfig({displayName:"styles__AlertWrapper",componentId:"sc-9eba0f1e-4"})(_templateObject4(),function(n){return n.theme.sizes.medium}),components_SuccessModal=function(n){var e,t=n.title,u=n.icon,m=n.message,v=n.messageReplace,b=n.labelClose,x=n.alertMessage,j=n.alertIcon,y=n.showing,O=n.onClose,w=n.onOpen,C=n.variantClose,Z=n.outlinedClose,I=n.roundedClose,A=n.buttonId,P=n.secondButton,N=n.secondVariantClose,k=n.secondOutlinedClose,S=n.secondRoundedClose,T=n.secondLabelClose,z=n.secondButtonNavigation,M=n.secondButtonId,E=(0,s.mM)(),L=null==E?void 0:null===(e=E.state)||void 0===e?void 0:e.translate;(0,i.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,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.Z,{showing:y,onClose:O,closeIconSide:"right",children:(0,o.jsxs)(f,{children:[(0,o.jsx)(_,{children:(0,o.jsx)(a.Z,{children:u||(0,o.jsx)("img",{src:F})})}),(0,o.jsx)(p,{children:t}),m&&(0,o.jsx)(h,{dangerouslySetInnerHTML:{__html:m}}),v&&(0,o.jsx)(h,{children:v}),(0,o.jsx)(c.Z,{variant:C||"primary",type:"button",onClick:O,outlined:!!Z&&Z,borderRadius:I&&"36px",id:A,children:b||L.Fechar}),P&&(0,o.jsx)(c.Z,{variant:N||"primary",type:"button",onClick:z,outlined:!!k&&k,borderRadius:S&&"36px",style:{marginTop:"8px"},id:M,children:T||L.Fechar}),x&&(0,o.jsx)(g,{children:(0,o.jsx)(l.Z,{status:"warning",icon:(0,o.jsx)(a.Z,{children:j||(0,o.jsx)("img",{src:"/icons/icon-alert-v2.svg"})}),message:x})})]})})})}},56268:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return nn},default:function(){return _id_}});var o=t(85893),i=t(67294),r=t(91546),c=t(14376),a=t(9008),l=t.n(a),s=t(70764),u=t(83122),d=t(75026),m=t(82729),f=t(85444),p=t(87854),_=t(44152);function _templateObject(){var n=(0,m._)(["\n  margin-bottom: 0.5rem;\n"]);return _templateObject=function(){return n},n}function _templateObject1(){var n=(0,m._)(["\n  margin-bottom: 4rem;\n  color: ",";\n"]);return _templateObject1=function(){return n},n}function _templateObject2(){var n=(0,m._)(["\n  background: #fdf5ed;\n  padding: 3rem;\n  color:",";\n"]);
1return _templateObject2=function(){return n},n}function _templateObject3(){var n=(0,m._)(["\n  img {\n    width: 100%;\n  }\n"]);return _templateObject3=function(){return n},n}function _templateObject4(){var n=(0,m._)(["\n  display: flex;\n  justify-content: space-between;\n  flex-flow: row wrap;\n"]);return _templateObject4=function(){return n},n}function _templateObject5(){var n=(0,m._)(["\n  order: 1;\n"]);return _templateObject5=function(){return n},n}function _templateObject6(){var n=(0,m._)(["\n  font-size: 32px;\n  font-family:",";\n  font-weight: 900;\n  margin-bottom: 1.5rem;\n\n  span {\n    color:",";\n  }\n"]);return _templateObject6=function(){return n},n}function _templateObject7(){var n=(0,m._)(["\n  margin-bottom: 2rem;\n  width: 150px;\n\n  img {\n    width: 100%;\n  }\n\n  @media (",") {\n    width: 270px;\n  }\n"]);return _templateObject7=function(){return n},n}function _templateObject8(){var n=(0,m._)(["\n  font-size: 14px;\n  line-height: 20px;\n  margin-bottom: 2rem;\n  order: 2;\n\n  @media (",") {\n    order: 3;\n  }\n\n  h3 {\n    font-weight: 900;\n    font-size: 20px;\n    line-height: 28px;\n    margin-bottom: 2rem;\n  }\n\n  ul.benefits {\n    list-style-type: none;\n    margin-bottom: 4rem;\n\n    li {\n      position: relative;\n\n      &:before {\n        content: '';\n        display: block;\n        background-image: url(/icons/icon-check.svg);\n        background-position: 0 0;\n        background-repeat: no-repeat;\n        background-size: cover;\n        width: 35px;\n        height: 35px;\n        position: absolute;\n        top: 0;\n        left: 0;\n      }\n      font-weight: 400;\n      font-size: 14px;\n      line-height: 20px;\n      margin-bottom: 2rem;\n      padding-top: 8px;\n      padding-left: 45px;\n    }\n  }\n\n  ul.howto {\n    list-style-type: none;\n    display: flex;\n    flex-direction: column;\n\n    @media (",") {\n      flex-direction: row;\n    }\n\n    li {\n      background: ",";\n      border: 1px solid #eba200;\n      box-sizing: border-box;\n      border-radius: 10px;\n      padding: 2rem;\n      font-weight: 400;\n      font-size: 14px;\n      line-height: 16px;\n      margin-bottom: 2rem;\n\n      @media (",") {\n        width: 33%;\n        margin-right: 2rem;\n        margin-bottom: 0;\n      }\n\n      &:last-child {\n        margin-right: 0;\n      }\n\n      strong {\n        display: flex;\n        background: ",";\n        width: 36px;\n        height: 36px;\n        justify-content: center;\n        align-items: center;\n        border-radius: 50%;\n        font-weight: 400;\n        font-size: 18px;\n        margin-bottom: 1.5rem;\n        font-family: ",";\n      }\n    }\n  }\n"]);return _templateObject8=function(){return n},n}function _templateObject9(){var n=(0,m._)(["\n  order: 3;\n  margin-bottom: 2rem;\n\n  @media (",") {\n    order: 2;\n  }\n"]);return _templateObject9=function(){return n},n}function _templateObject10(){var n=(0,m._)(["\n  display: inline;\n  font-family: ",";\n  font-weight: 900;\n  font-size: 32px;\n  line-height: 31px;\n\n  span {\n    font-size: 18px;\n  }\n"]);return _templateObject10=function(){return n},n}function _templateObject11(){var n=(0,m._)(["\n  display: inline;\n  font-size: 18px;\n"]);return _templateObject11=function(){return n},n}function _templateObject12(){var n=(0,m._)([""]);return _templateObject12=function(){return n},n}function _templateObject13(){var n=(0,m._)(["\n  margin-bottom: 2rem;\n  color: #404040;\n  font-size: 12px;\n  line-height: 11px;\n\n  &:last-child {\n    margin-bottom: 0;\n  }\n"]);return _templateObject13=function(){return n},n}function _templateObject14(){var n=(0,m._)(["\n  width: 100px !important;\n  margin-left: -25px !important;\n"]);return _templateObject14=function(){return n},n}function _templateObject15(){var n=(0,m._)(["\n  cursor: pointer;\n  color:",";\n\n  &:hover,\n  &:active,\n  &:visited {\n    color:",";\n  }\n"]);return _templateObject15=function(){return n},n}function _templateObject16(){var n=(0,m._)(["\n  "," {\n    margin: 0;\n  }\n\n  input {\n    margin: 0 10px 0 0;\n  }\n"]);
1return _templateObject16=function(){return n},n}var h=(0,f.ZP)(p.Z).withConfig({displayName:"styles__StyledTitle",componentId:"sc-700fedf3-0"})(_templateObject()),g=f.ZP.div.withConfig({displayName:"styles__Description",componentId:"sc-700fedf3-1"})(_templateObject1(),function(n){return n.theme.colors.text}),v=f.ZP.div.withConfig({displayName:"styles__WrapperAddonContent",componentId:"sc-700fedf3-2"})(_templateObject2(),function(n){return n.theme.colors.black}),b=f.ZP.div.withConfig({displayName:"styles__AddonPhoto",componentId:"sc-700fedf3-3"})(_templateObject3()),x=f.ZP.div.withConfig({displayName:"styles__AddonContentTop",componentId:"sc-700fedf3-4"})(_templateObject4()),j=f.ZP.div.withConfig({displayName:"styles__AddonTitle",componentId:"sc-700fedf3-5"})(_templateObject5()),y=f.ZP.div.withConfig({displayName:"styles__AddonTextTitle",componentId:"sc-700fedf3-6"})(_templateObject6(),function(n){return n.theme.fonts.highlight},function(n){return n.theme.colors.primary}),O=f.ZP.div.withConfig({displayName:"styles__AddonLogoTitle",componentId:"sc-700fedf3-7"})(_templateObject7(),function(n){return n.theme.sizes.medium}),w=f.ZP.div.withConfig({displayName:"styles__AddonContent",componentId:"sc-700fedf3-8"})(_templateObject8(),function(n){return n.theme.sizes.medium},function(n){return n.theme.sizes.medium},function(n){return n.theme.colors.white},function(n){return n.theme.sizes.medium},function(n){return n.theme.colors.primary},function(n){return n.theme.fonts.default}),C=f.ZP.div.withConfig({displayName:"styles__AddonPrice",componentId:"sc-700fedf3-9"})(_templateObject9(),function(n){return n.theme.sizes.medium}),Z=f.ZP.div.withConfig({displayName:"styles__AddonPriceValue",componentId:"sc-700fedf3-10"})(_templateObject10(),function(n){return n.theme.fonts.highlight}),I=f.ZP.div.withConfig({displayName:"styles__AddonPricePeriod",componentId:"sc-700fedf3-11"})(_templateObject11()),A=f.ZP.div.withConfig({displayName:"styles__AddonsControls",componentId:"sc-700fedf3-12"})(_templateObject12()),P=f.ZP.div.withConfig({displayName:"styles__AddonsControlsItem",componentId:"sc-700fedf3-13"})(_templateObject13());f.ZP.img.withConfig({displayName:"styles__Icon",componentId:"sc-700fedf3-14"})(_templateObject14());var N=f.ZP.strong.withConfig({displayName:"styles__ButtonTerms",componentId:"sc-700fedf3-15"})(_templateObject15(),function(n){return n.theme.colors.danger},function(n){return n.theme.colors.danger}),k=f.ZP.div.withConfig({displayName:"styles__CheckBoxDiv",componentId:"sc-700fedf3-16"})(_templateObject16(),_.__),S=t(58779),T=t(19928),z=t(72108),M=t(11010),E=t(72253),L=t(14932),F=t(91309),D=t(97582),R=t(60369),H=t(37419),W=t(49422),B=t(11163),V=t(57301),$=t(7575),J=t(6022),U=t(12175),X=t(5106),AddonsSingleContent_useAddonsSingleContent=function(){var n,e,t,o,r,c,a,l=(0,R.mM)(),s=null==l?void 0:null===(t=l.state)||void 0===t?void 0:t.translate,u=null==l?void 0:null===(o=l.state)||void 0===o?void 0:o.currentLocale,d=(0,H.Z)(l),m=(0,i.useRef)(null),f=(0,F._)((0,i.useState)(null),2),p=f[0],_=f[1],h=(0,F._)((0,i.useState)(null),2),g=h[0],v=h[1],b=(0,F._)((0,i.useState)(!1),2),x=b[0],j=b[1],y=(0,F._)((0,i.useState)(null),2),O=y[0],w=y[1],C=(0,F._)((0,i.useState)(!1),2),Z=C[0],I=C[1],A=(0,F._)((0,i.useState)(!1),2),P=A[0],N=A[1],k=(0,F._)((0,i.useState)(null),2),S=k[0],T=k[1],z=(0,F._)((0,i.useState)(null),2),q=z[0],G=z[1],K=(0,B.useRouter)(),Q=K.query.id,Y=l.gaMetrics,nn=(0,X._)(),ne=nn.brazeEventTriggerWithData,nt=nn.getProductData,no=(n=(0,M._)(function(){var n,e,t,o,i,r,c,a,s,d,m,f,_,h,g,v;return(0,D.Jh)(this,function(b){switch(b.label){case 0:return I(!0),o={single_access_token:null==l?void 0:null===(t=l.state)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:null===(n=e.personal)||void 0===n?void 0:n.single_access_token,code:p.code,origin:"smart_client_space"},[4,(0,W.M)(o)];case 1:return(i=b.sent()).success?(w(!0),Y.clickEvents.v2.TriggerAction({action:"turbine-seu-plano-sucesso-".concat((0,U.I)(null==p?void 0:p.name)),label:"concluir"}),Y.clickEvents.addonPurchase({addon:p,person_id:null==l?void 0:null===(a=l.state)||void 0===a?void 0:null===(c=a.user)||void 0===c?void 0:null===(r=c.personal)||void 0===r?void 0:r.id,location:null==l?void 0:null===(d=l.state)||void 0===d?void 0:null===(s=d.user)||void 0===s?void 0:s.location,plan:null==l?void 0:null===(f=l.state)||void 0===f?void 0:null===(m=f.user)||void 0===m?void 0:m.plan,value:null==l?void 0:null===(g=l.state)||void 0===g?void 0:null===(h=g.user)||void 0===h?void 0:null===(_=h.purchase)||void 0===_?void 0:_.membership_price,currency:$.ZP.i18nCurrency[u],transaction_id:null==i?void 0:i.id}),ne("".concat(null==p?void 0:p.code,"_modal_viewed"),(0,L._)((0,E._)({},nt()),{withPersonalData:!0,modal_name:(null==p?void 0:null===(v=p.code)||void 0===v?void 0:v.replace(/_/g,"-"))+"-confirmation"}))):(w(!1),Y.clickEvents.v2.TriggerAction({action:"turbine-seu-plano-erro-".concat((0,U.I)(null==p?void 0:p.name)),label:"fechar"})),I(!1),[2]}})}),function(){return n.apply(this,arguments)}),ni=(e=(0,M._)(function(n){return(0,D.Jh)(this,function(e){return n.addon_term&&no(),[2]})}),function(n){return e.apply(this,arguments)});(0,i.useEffect)(function(){var n,e,t,o=null==l?void 0:null===(t=l.state)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:null===(n=e.location)||void 0===n?void 0:n.acronym;function _fetchData(){return(_fetchData=(0,M._)(function(){var n;return(0,D.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),[4,(0,J.s)(o)];case 1:return(n=e.sent())&&v(n),[3,4];case 2:return e.sent(),[3,4];case 3:return I(!1),[7];case 4:return[2]}})})).apply(this,arguments)}o&&function(){_fetchData.apply(this,arguments)}()},[null==l?void 0:null===(a=l.state)||void 0===a?void 0:null===(c=a.user)||void 0===c?void 0:null===(r=c.location)||void 0===r?void 0:r.acronym]);var getAddon=function(n){if(g){var e=g.find(function(e){return e.code===n});if(e){_(e);var t=V.Z[u].filter(function(n){return n.code===e.code})[0];t&&(G(t),T(null==t?void 0:t.success_message))}}};return(0,i.useEffect)(function(){getAddon(Q)},[Q,g]),{getAddon:getAddon,formRef:m,handleSubmit:ni,acceptTerms:x,success:O,setSuccess:w,onClose:function(){var n,e;w(null),ne("".concat(null==p?void 0:p.code,"_close_confirmation_modal_clicked"),(0,L._)((0,E._)({},nt()),{withPersonalData:!0,modal_name:(null==p?void 0:null===(n=p.code)||void 0===n?void 0:n.replace(/_/g,"-"))+"-confirmation"})),d.updateUserData(),K.push("/".concat(null==l?void 0:null===(e=l.state)||void 0===e?void 0:e.currentLocale,"/addons/"))},loading:Z,currentLocale:u,addon:p,showTermsModal:P,setShowTermsModal:N,gaMetrics:Y,successMessage:S,handleAddonTitle:function(n){return -1!==n.indexOf("Smart Fit")?n.replace(/^(Smart Fit)([\W|\w]+)/g,"$1 <span>$2</span>"):n.replace(/^(Smart)([\W|\w]+)/g,"$1 <span>$2</span>")},handlePrice:function(n){return n=(0,$.OH)(n,u),"+".concat(n.replace(/([\w\W0-9]+)(,[0-9]{2})/g,"$1<span>$2</span>").replace(/\s/g,""))},free_days_msg:function(n){return s["Servico com %{x} dias gratis"].replace("%{x}",n)},handleTermClick:function(n){j(!x),n.target.checked&&Y.clickEvents.v2.TriggerAction({action:"turbine-seu-plano-".concat((0,U.I)(null==p?void 0:p.name)),label:"termo-de-adesao"})},handlePurchaseClick:function(n){var e;Y.clickEvents.v2.TriggerAction({action:"turbine-seu-plano-".concat((0,U.I)(null==p?void 0:p.name)),label:"adicionar-ao-plano"}),ne("".concat(null==p?void 0:p.code,"_add_to_plan_clicked"),(0,L._)((0,E._)({},nt()),{withPersonalData:!0,product:null==p?void 0:null===(e=p.code)||void 0===e?void 0:e.replace(/_/g,"-"),price:null==p?void 0:p.price}))},customAddon:q}},q=t(2113),TermsModal_useTermsModal=function(){var n=(0,R.mM)().state;return{t:null==n?void 0:n.translate}};
1function styles_templateObject(){var n=(0,m._)(["\n  height: 100%;\n  padding: 65px 3rem 32px;\n\n  @media (",") {\n    padding: 75px 6rem 32px;\n    max-width: 700px;\n\n    "," {\n      margin: 0 auto;\n      width: 330px;\n    }\n  }\n"]);return styles_templateObject=function(){return n},n}function styles_templateObject1(){var n=(0,m._)(["\n  font-family: ",";\n  font-style: normal;\n  font-weight: 900;\n  font-size: 16px;\n  line-height: 15px;\n  text-align: center;\n  text-transform: uppercase;\n  margin-bottom: 1.8rem;\n  color: ",";\n\n  @media (",") {\n    font-size: 24px;\n    line-height: 32px;\n  }\n"]);return styles_templateObject1=function(){return n},n}function styles_templateObject2(){var n=(0,m._)(["\n  overflow-y: scroll;\n  height: 300px;\n  margin-bottom: 2rem;\n  padding-right: 2rem;\n\n  @media (",") {\n    padding: 2rem;\n  }\n"]);return styles_templateObject2=function(){return n},n}function styles_templateObject3(){var n=(0,m._)(["\n  font-style: normal;\n  font-weight: 400;\n  font-size: 12px;\n  line-height: 16px;\n  margin-bottom: 2rem;\n  color: ",";\n\n  @media (",") {\n    font-size: 16px;\n    line-height: 24px;\n  }\n"]);return styles_templateObject3=function(){return n},n}var G=f.ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-b06139f3-0"})(styles_templateObject(),function(n){return n.theme.sizes.medium},d.Z),K=f.ZP.h1.withConfig({displayName:"styles__Title",componentId:"sc-b06139f3-1"})(styles_templateObject1(),function(n){return n.theme.fonts.highlight},function(n){return n.theme.colors.text},function(n){return n.theme.sizes.medium}),Q=f.ZP.div.withConfig({displayName:"styles__Term",componentId:"sc-b06139f3-2"})(styles_templateObject2(),function(n){return n.theme.sizes.medium}),Y=f.ZP.div.withConfig({displayName:"styles__TermText",componentId:"sc-b06139f3-3"})(styles_templateObject3(),function(n){return n.theme.colors.text},function(n){return n.theme.sizes.medium}),components_TermsModal=function(n){var e=n.showing,t=n.onClose,i=n.onConfirm,r=n.title,c=n.content,a=TermsModal_useTermsModal().t;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(q.Z,{showing:e,onClose:t,closeIconSide:"right",children:(0,o.jsxs)(G,{children:[(0,o.jsx)(K,{children:r}),(0,o.jsx)(Q,{children:(0,o.jsx)(Y,{dangerouslySetInnerHTML:{__html:c}})}),(0,o.jsx)(d.Z,{variant:"primary",type:"button",onClick:i,children:a.CONCLUIR})]})})})},AddonsContent_AddonsSingleContent=function(){var n,e=(0,R.mM)(),t=null==e?void 0:null===(n=e.state)||void 0===n?void 0:n.translate,i=AddonsSingleContent_useAddonsSingleContent(),r=i.formRef,c=i.handleSubmit,a=i.acceptTerms,m=i.success,f=i.setSuccess,p=i.onClose,_=i.loading,M=i.addon,E=i.showTermsModal,L=i.setShowTermsModal,F=(i.gaMetrics,i.successMessage),D=i.handleAddonTitle,H=i.handlePrice,W=i.free_days_msg,B=i.handleTermClick,V=i.handlePurchaseClick,$=i.customAddon;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l(),{children:(0,o.jsxs)("title",{children:[t["Smart Fit"]," - ",t["Espa\xe7o do Cliente"]," - ",t.title_page_addons]})}),(0,o.jsx)(h,{children:t.title_page_addons}),(0,o.jsx)(g,{children:t["Turbine os seus treinos na Smart Fit com os nossos outros produtos e servi\xe7os."]}),M&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b,{children:(0,o.jsx)("img",{src:(null==M?void 0:M.image_src)||(null==$?void 0:$.image_single_src)||(null==$?void 0:$.image_src)})}),(0,o.jsxs)(v,{children:[(0,o.jsxs)(x,{children:[(0,o.jsx)(j,{children:(null==$?void 0:$.logo_src)?(0,o.jsx)(O,{children:(0,o.jsx)("img",{src:null==$?void 0:$.logo_src,alt:null==M?void 0:M.name})}):(0,o.jsx)(y,{dangerouslySetInnerHTML:{__html:D(null==M?void 0:M.name)}})}),(0,o.jsxs)(C,{children:[(0,o.jsx)(Z,{dangerouslySetInnerHTML:{__html:H(null==M?void 0:M.price)}}),(0,o.jsxs)(I,{children:["/",t["m\xeas"]]})]}),(null==$?void 0:$.full_description)&&(0,o.jsx)(w,{dangerouslySetInnerHTML:{__html:t[null==$?void 0:$.full_description]}})]}),(null==M?void 0:M.free_days)>0&&(0,o.jsx)(w,{dangerouslySetInnerHTML:{__html:W(null==M?void 0:M.free_days)}}),(0,o.jsx)(u.l,{ref:r,onSubmit:c,placeholder:void 0,onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0,children:(0,o.jsxs)(A,{children:[(0,o.jsx)(P,{children:(0,o.jsx)(k,{children:(0,o.jsx)(s.Z,{altLabel:(0,o.jsxs)(o.Fragment,{children:[t["li e concordo com o"]," ",(null==$?void 0:$.terms_url)?(0,o.jsx)(N,{as:"a",href:$.terms_url,target:"_blank",rel:"noopener noreferrer",children:t["termo de ades\xe3o"]}):(0,o.jsx)(N,{onClick:function(){return L(!0)},children:t["termo de ades\xe3o"]})]}),name:"addon_term",onClick:function(n){return B(n)}})})}),(0,o.jsx)(P,{children:(0,o.jsx)(d.Z,{variant:"primary",type:"submit",disabled:!a,onClick:function(n){return V(n)},children:t["Adicionar ao Plano"]})})]})})]}),(0,o.jsx)(function(){return _?(0,o.jsx)(T.Z,{}):(0,o.jsx)(o.Fragment,{})},{}),(0,o.jsx)(function(){return m?(0,o.jsx)(S.Z,{title:t["OBA! %{ADDON} FOI ADICIONADO AO SEU PLANO"].replace("%{ADDON}",null==M?void 0:M.name),message:F,onClose:p,showing:!0}):(0,o.jsx)(o.Fragment,{})},{}),(0,o.jsx)(function(){return!1===m?(0,o.jsx)(z.Z,{showing:!0,title:t["OPS, ocorreu um erro!"],message:t["Devido a uma falha sist\xeamica n\xe3o foi poss\xedvel concluir a contrata\xe7\xe3o. Por favor, tente novamente em alguns minutos."],onClose:function(){return f(null)}}):(0,o.jsx)(o.Fragment,{})},{}),E&&(null==$?void 0:$.terms_text)&&(0,o.jsx)(components_TermsModal,{showing:!0,onClose:function(){return L(!1)},onConfirm:function(){return L(!1)},title:"".concat(t["Termo de ades\xe3o"]," ").concat(null==M?void 0:M.name.toLowerCase()),content:t[null==$?void 0:$.terms_text]})]})]})},nn=!0,_id_=function(){var n=(0,i.useRef)(null);return(0,o.jsx)(r.Z,{footerRef:n,children:(0,o.jsx)(c.default,{overflowMenuWrapper:!0,children:(0,o.jsx)(AddonsContent_AddonsSingleContent,{})})})}},49422:function(n,e,t){"use strict";t.d(e,{M:function(){return postAddons},v:function(){return getAddon}});var o=t(11010),i=t(72253),r=t(97582),c=t(48303);function postAddons(n){return _postAddons.apply(this,arguments)}function _postAddons(){return(_postAddons=(0,o._)(function(n){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,c.v_)("/api/v1/addons/".concat(n.code),(0,i._)({},n)).then(function(n){return null==n?void 0:n.data}).catch(function(n){var e;return null==n?void 0:null===(e=n.response)||void 0===e?void 0:e.data})];case 1:return[2,e.sent()]}})})).apply(this,arguments)}function getAddon(n){return _getAddon.apply(this,arguments)}function _getAddon(){return(_getAddon=(0,o._)(function(n){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,c.U2)("/api/v1/addons/".concat(n),{}).then(function(n){return null==n?void 0:n.data}).catch(function(n){var e;return null==n?void 0:null===(e=n.response)||void 0===e?void 0:e.data})];case 1:return[2,e.sent()]}})})).apply(this,arguments)}},6022:function(n,e,t){"use strict";t.d(e,{s:function(){return getLocationAddons}});var o=t(11010),i=t(97582),r=t(11647),c=t(48303);function getLocationAddons(n){return _getLocationAddons.apply(this,arguments)}function _getLocationAddons(){return(_getLocationAddons=(0,o._)(function(n){var e,t;return(0,i.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,c.U2)("/api/v1/locations/".concat(n,"/addons"),{})];case 1:return t=o.sent(),[2,(0,r.Z)(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)];case 2:return console.error("An unexpected error happened:",o.sent()),[2];case 3:return[2]}})})).apply(this,arguments)}},12175:function(n,e,t){"use strict";t.d(e,{I:function(){return addonMetricsName},k:function(){return addonCanCancel}});var addonMetricsName=function(n){return n.toLowerCase().replace(/\s/g,"-")},addonCanCancel=function(n){return["coach_online","coach_online_1consulta_mes","co
1ach_online_1consulta_mes_0_fidelidade","coach_online_12consultas","coach_online_12consultas_2m_gratis","coach_online_12consultas_one_time_offer"].includes(n)}},11647:function(n,e){"use strict";var t=/[-]/g,getAttributes=function(n,e){if(e&&"[object Object]"===Object.prototype.toString.call(e))return Object.keys(e).forEach(function(o){var i=e[o];t.test(o)&&(o=o.replaceAll(t,"_")),n[o]=i}),n},getAttributesFallback=function(n,e){if(e&&"[object Object]"===Object.prototype.toString.call(e))return Object.keys(e).forEach(function(o){var i=e[o],r=o;try{t.test(o)&&(r=o.replace(t,"_"))}catch(n){}n[r]=i}),n};e.Z=function(n){var e=null==n?void 0:n.data;if(e&&Array.isArray(e))return e.map(function(n){var e={id:n.id,type:n.type};try{return getAttributes(e,n.attributes)}catch(t){return getAttributesFallback(e,n.attributes)}})}},9008:function(n,e,t){n.exports=t(79201)}},function(n){n.O(0,[5445,9402,1546,3926,4376,7301,9774,2888,179],function(){return n(n.s=42156)}),_N_E=n.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.