1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6283],{69344:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/vip-code",function(){return t(7566)}])},16010:function(e,n,t){"use strict";t.d(n,{DK:function(){return s},Ee:function(){return p},H_:function(){return f},T6:function(){return c},XY:function(){return _},_L:function(){return l},a1:function(){return v},dl:function(){return h},gk:function(){return u},k9:function(){return m},sv:function(){return a},v4:function(){return d},xv:function(){return o}});var i=t(82729),r=t(85444);function _templateObject(){var e=(0,i._)(["\n background: #f4f4f4;\n border-radius: 10px;\n padding: 2rem;\n\n #image-header-vip {\n width: 100%;\n border-radius: 10px 10px 0 0;\n }\n\n @media (",") {\n padding: 3rem;\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){var e=(0,i._)(["\n text-align: center;\n margin-top: 1%;\n justify-content: center;\n font-size: 15px;\n display: flex;\n\n .bold {\n display: flex;\n font-weight: 900;\n }\n\n @media (",") {\n display: grid;\n grid-template-columns: 80% auto;\n }\n\n @media (",") {\n max-width: 1200px;\n }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){var e=(0,i._)([""]);return _templateObject2=function(){return e},e}function _templateObject3(){var e=(0,i._)(["\n font-family: ",";\n font-weight: 400;\n margin-bottom: 20px;\n font-size: 1.8em;\n text-align: center;\n display: flex;\n justify-content: center;\n margin-top: 5%;\n\n img {\n margin-right: 4%;\n }\n\n span {\n margin-top: 1%;\n }\n\n @media (",") {\n font-size: 2em;\n }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){var e=(0,i._)(["\n justify-content: center;\n font-size: 15px;\n display: grid;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){var e=(0,i._)(["\n background: ",";\n margin-top: 10px;\n padding: 10px;\n font-size: 12px;\n border-radius: 7px;\n\n :before {\n content: '';\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: #000;\n margin: 0 10px 2px 5px;\n display: inline-block;\n }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){var e=(0,i._)(["\n margin-top: 3%;\n\n img {\n width: 50px;\n padding-right: 20px;\n }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){var e=(0,i._)(["\n display: flex;\n flex-wrap: no-wrap;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin-bottom: 2rem;\n\n @media (",") {\n & button {\n width: 280px;\n }\n }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){var e=(0,i._)(["\n font-family: ",";\n font-weight: 900;\n text-transform: uppercase;\n font-size: 10px;\n margin: 0 0 1rem;\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){var e=(0,i._)(["\n margin-right: 1rem;\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){var e=(0,i._)(["\n background: ",";\n display: flex;\n flex-wrap: no-wrap;\n flex-direction: column;\n align-items: center;\n text-align: center;\n margin: 4rem 0 2rem;\n padding: 2.5rem 5rem;\n border-radius: 7px;\n width: 100%;\n font-weight: 900;\n font-size: 18px;\n line-height: 20px;\n color: #3b3b40;\n\n @media (",") {\n }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){var e=(0,i._)(["\n font-size: 12px;\n text-align: center;\n color: ",";\n\n a {\n color: ",";\n text-decoration: underline;\n font-weight: 900;\n }\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){var e=(0,i._)(["\n display: flex;\n justify-content: center;\n align-items: center;\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){var e=(0,i._)(["\n background: #e74c3c;\n color: #fff;\n padding: 2rem;\n text-align: center;\n width: 100%;\n"]);return _templateObject13=function(){return e},e}
1function _templateObject14(){var e=(0,i._)(["\n text-align: center;\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){var e=(0,i._)(["\n margin-right: 1rem;\n"]);return _templateObject15=function(){return e},e}var a=r.ZP.div.withConfig({displayName:"styles__WrapperVipCodeArea",componentId:"sc-5ea2f177-0"})(_templateObject(),function(e){return e.theme.sizes.medium}),o=r.ZP.div.withConfig({displayName:"styles__Text",componentId:"sc-5ea2f177-1"})(_templateObject1(),function(e){return e.theme.sizes.medium},function(e){return e.theme.sizes.large}),c=r.ZP.div.withConfig({displayName:"styles__WrapperVipCodeBody",componentId:"sc-5ea2f177-2"})(_templateObject2()),s=r.ZP.div.withConfig({displayName:"styles__SubTitle",componentId:"sc-5ea2f177-3"})(_templateObject3(),function(e){return e.theme.fonts.highlight},function(e){return e.theme.sizes.medium}),u=r.ZP.div.withConfig({displayName:"styles__VipCodeBlockInstruction",componentId:"sc-5ea2f177-4"})(_templateObject4()),l=r.ZP.div.withConfig({displayName:"styles__VipCodeInstructionItem",componentId:"sc-5ea2f177-5"})(_templateObject5(),function(e){return e.theme.colors.lightGray}),d=r.ZP.div.withConfig({displayName:"styles__VipCodeActions",componentId:"sc-5ea2f177-6"})(_templateObject6()),p=r.ZP.div.withConfig({displayName:"styles__VipCodeContainer",componentId:"sc-5ea2f177-7"})(_templateObject7(),function(e){return e.theme.sizes.medium}),m=r.ZP.h4.withConfig({displayName:"styles__VipCodeLabel",componentId:"sc-5ea2f177-8"})(_templateObject8(),function(e){return e.theme.fonts.highlight});r.ZP.div.withConfig({displayName:"styles__Icon",componentId:"sc-5ea2f177-9"})(_templateObject9());var f=r.ZP.div.withConfig({displayName:"styles__VipCodeBlock",componentId:"sc-5ea2f177-10"})(_templateObject10(),function(e){return e.theme.colors.lightGray},function(e){return e.theme.sizes.medium});r.ZP.div.withConfig({displayName:"styles__Note",componentId:"sc-5ea2f177-11"})(_templateObject11(),function(e){return e.theme.colors.gray},function(e){return e.theme.colors.link});var _=r.ZP.div.withConfig({displayName:"styles__VipCodeNotAvailable",componentId:"sc-5ea2f177-12"})(_templateObject12()),h=r.ZP.div.withConfig({displayName:"styles__VipCodeUsed",componentId:"sc-5ea2f177-13"})(_templateObject13());r.ZP.div.withConfig({displayName:"styles__Copied",componentId:"sc-5ea2f177-14"})(_templateObject14());var v=r.ZP.div.withConfig({displayName:"styles__IconWrapper",componentId:"sc-5ea2f177-15"})(_templateObject15())},7566:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return w},default:function(){return vip_code}});var i,r=t(85893),a=t(67294),o=t(91546),c=t(14376),s=t(91309),u=t(19928),l=t(11010),d=t(72253),p=t(97582),m=t(60369),f=t(85962),_=t(95804),h=t(11163),VipCode_useVipCode=function(e){var n,t,i,r=e.code_available,o=e.purchase_benefit_code,c=(0,s._)((0,a.useState)(!1),2),u=c[0],v=c[1],g=(0,s._)((0,a.useState)(!1),2),b=g[0],x=g[1],j=(0,s._)((0,a.useState)({name:"",plan:""}),2),C=j[0],y=j[1],w=(0,s._)((0,a.useState)(o||""),2),O=w[0],N=w[1],k=(0,s._)((0,a.useState)(r||!1),2),Z=k[0],V=k[1],P=(0,m.mM)(),I=P.state,z=P.dispatch,E=null==I?void 0:I.currentLocale,S=null==I?void 0:null===(i=I.user)||void 0===i?void 0:i.has_vip_benefit,L=(0,h.useRouter)(),M=(n=(0,l._)(function(){var e,n,t;return(0,p.Jh)(this,function(i){switch(i.label){case 0:return[4,null==I?void 0:I.user];case 1:if(!((null==(n=i.sent())?void 0:null===(e=n.personal)||void 0===e?void 0:e.id)===""||Object.keys(n).length<1))return[3,4];return[4,(0,f.P)()];case 2:return t=i.sent(),[4,(0,d._)({},null==t?void 0:t.data)];case 3:n=i.sent(),(0,_.Q_)({user:n,state:I,dispatch:z}),i.label=4;case 4:return[2,n]}})}),function(){return n.apply(this,arguments)}),A=(t=(0,l._)(function(){var e,n,t,i,r,a;return(0,p.Jh)(this,function(o){switch(o.label){case 0:return[4,M()];case 1:return y({name:(null==(a=o.sent())?void 0:null===(e=a.personal)||void 0===e?void 0:e.name)||"User",plan:(null==a?void 0:null===(t=a.purchase)||void 0===t?void 0:null===(n=t.plan)||void 0===n?void 0:n.name)||"Plan name"}),N(null==a?void 0:null===(i=a.purchase)||void 0===i?void 0:i.purchase_benefit_code),V(null==a?void 0:null===(r=a.purchase)||void 0===r?void 0:r.code_available),[2]}})}),function(){return t.apply(this,arguments)}),updateLoading=function(e){v(e)},updateError=function(e){x(e)};return(0,a.useEffect)(function(){var e,n=(e=(0,l._)(function(){return(0,p.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),[4,A()];case 1:return e.sent(),[3,4];case 2:return e.sent(),updateError(!0),[3,4];case 3:return updateLoading(!1),[7];case 4:return[2]}})}),function(){return e.apply(this,arguments)});updateLoading(!0),n()},[]),(0,a.useEffect)(function(){E&&!1===S&&L.push("/".concat(E))},[S,E]),{isLoading:u,hasError:b,userVipCode:C,getUserName:function(e){return((null==e?void 0:e.split(" "))||[e])[0]},purchaseBenefitCode:O,code_available:Z,showVipCode:function(){return Z&&(null==O?void 0:O.length)>0},vipCodeUsed:function(){return!Z&&(null==O?void 0:O.length)>0},updateUserData:A,updateError:updateError,updateLoading:updateLoading}},v=t(9008),g=t.n(v),b=(i=(0,l._)(function(e){return(0,p.Jh)(this,function(n){switch(n.label){case 0:return[4,navigator.clipboard.writeText(e)];case 1:return n.sent(),[2]}})}),function(e){return i.apply(this,arguments)}),handleMessageParse=function(e,n,t){return t[e].replace("#vip_area_code",n)}
1,handleGaTrackingActions=function(e,n){n.clickEvents.v2.TriggerAction({action:"vip-code",label:e})},manageActionsShare=function(e,n,t,i){e||(n(!0),handleGaTrackingActions(t,i))},x=t(82729);function _templateObject(){var e=(0,x._)(["\n font-size: 16px;\n text-transform: uppercase;\n border-radius: 7px;\n padding: 2rem 3rem;\n font-weight: 900;\n font-family: ",";\n text-decoration: line-through;\n background:",";\n text-align: center;\n height: 60px;\n width: 100%;\n\n @media (",") {\n width: 65%;\n }\n\n @media (",") {\n width: 90%;\n }\n\n @media (",") {\n width: 65%;\n }\n\n &.code_available {\n text-decoration: none;\n color: #000;\n }\n\n img {\n width: 15px;\n margin-left: 8%;\n }\n"]);return _templateObject=function(){return e},e}var j=t(85444).ZP.div.withConfig({displayName:"styles__VipCode",componentId:"sc-625405e9-0"})(_templateObject(),function(e){return e.theme.fonts.default},function(e){return e.theme.colors.primary},function(e){return e.theme.sizes.small},function(e){return e.theme.sizes.medium},function(e){return e.theme.sizes.large}),VipCode_VipCopyButton=function(e){var n=e.isCodeAvailable,t=e.vipCode,i=e.isCopying,a=e.onHandleCopyEvent;return(0,r.jsxs)(j,{className:!0===n&&"code_available",children:[(0,r.jsx)("span",{onCopy:a,children:t}),(0,r.jsx)("a",{href:"/",onClick:a,children:i?(0,r.jsx)("img",{src:"/icons/icon-success-black.svg",className:"icon-success-check"}):(0,r.jsx)("img",{src:"/icons/icon-copy.svg",className:"icon-copy"})})]})},C=t(68159),y=t(16010),components_VipCode=function(){var e=(0,m.mM)(),n=e.state,t=e.gaMetrics,i=(0,s._)((0,a.useState)(!1),2),o=i[0],c=i[1],l=(0,s._)((0,a.useState)(!1),2),d=l[0],p=l[1],f=(0,s._)((0,a.useState)(!1),2),_=f[0],h=f[1],v=(0,s._)((0,a.useState)(!1),2),x=v[0],j=v[1],w=null==n?void 0:n.translate,O=VipCode_useVipCode({}),N=O.isLoading,k=O.purchaseBenefitCode,Z=O.code_available,V=O.showVipCode,P=O.vipCodeUsed,I=handleMessageParse("vip_code_area_share_body_instruction",k,w),z=handleMessageParse("vip_code_area_share_body_instruction",k,w);return N?(0,r.jsx)(u.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g(),{children:(0,r.jsxs)("title",{children:[w["Smart Fit"]," - ",w["Espa\xe7o do Cliente"]," -"," ",w.vip_code_area_title]})}),(0,r.jsxs)(y.sv,{children:[(0,r.jsx)("img",{src:"/images/smart-fit-vip-area.jpg",id:"image-header-vip"}),(0,r.jsxs)(y.DK,{children:[(0,r.jsx)("img",{src:"/icons/menu/icon-vip-code-color.svg"}),(0,r.jsx)("span",{children:w.vip_code_area_title})]}),(0,r.jsx)(y.xv,{children:w.vip_code_area_description}),(0,r.jsx)(y.xv,{children:(0,r.jsx)("strong",{children:w.vip_code_area_share})}),(0,r.jsxs)(y.T6,{children:[(0,r.jsx)(y.Ee,{children:(0,r.jsx)(y.H_,{children:V()?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(VipCode_VipCopyButton,{isCopying:o,vipCode:k,isCodeAvailable:Z,onHandleCopyEvent:function(e){e.preventDefault(),c(!0),manageActionsShare(d,p,"copy",t),b(k),setTimeout(function(){c(!1)},2e3)}}),(0,r.jsxs)(y.v4,{children:[(0,r.jsx)("a",{onClick:function(){return manageActionsShare(_,h,"mail",t)},href:"mailto:?body=".concat(I,"&subject=").concat(w.vip_code_area_share_mail_subject),target:"_blank","aria-label":"mail",children:(0,r.jsx)("img",{src:"/icons/icon-mail.svg"})}),(0,r.jsx)("a",{onClick:function(){return manageActionsShare(x,j,"whatsapp",t)},href:"https://wa.me/?text=".concat(z),target:"_blank","aria-label":"whatsapp",children:(0,r.jsx)("img",{src:"/icons/icon-whatsapp.svg"})})]})]}):P()?(0,r.jsxs)(y.dl,{children:[(0,r.jsx)(y.a1,{children:(0,r.jsx)(C.Z,{width:"32",height:"32",viewBox:"0 0 32 32",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 16C28 22.6274 22.6274 28 16 28C9.37258 28 4 22.6274 4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16ZM26 16C26 21.5228 21.5228 26 16 26C10.4772 26 6 21.5228 6 16C6 10.4772 10.4772 6 16 6C21.5228 6 26 10.4772 26 16ZM21.2071 13.7071C21.5976 13.3166 21.5976 12.6834 21.2071 12.2929C20.8166 11.9024 20.1834 11.9024 19.7929 12.2929L14.5 17.5858L12.2071 15.2929C11.8166 14.9024 11.1834 14.9024 10.7929 15.2929C10.4024 15.6834 10.4024 16.3166 10.7929 16.7071L13.7929 19.7071C14.1834 20.0976 14.8166 20.0976 15.2071 19.7071L21.2071 13.7071Z"})})}),w.vip_code_area_used]}):(0,r.jsxs)(y.XY,{children:[(0,r.jsx)(y.a1,{children:(0,r.jsx)(C.Z,{width:"32",height:"32",viewBox:"0 0 32 32",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 28C23.1274 28 28.5 22.6274 28.5 16C28.5 9.37258 23.1274 4 16.5 4C9.87258 4 4.5 9.37258 4.5 16C4.5 22.6274 9.87258 28 16.5 28ZM16.5 26C22.0228 26 26.5 21.5228 26.5 16C26.5 10.4772 22.0228 6 16.5 6C10.9772 6 6.5 10.4772 6.5 16C6.5 21.5228 10.9772 26 16.5 26ZM15 11.5C15 10.6716 15.6716 10 16.5 10C17.3284 10 18 10.6716 18 11.5C18 12.3284 17.3284 13 16.5 13C15.6716 13 15 12.3284 15 11.5ZM16.5 14C15.9477 14 15.5 14.4477 15.5 15V21C15.5 21.5523 15.9477 22 16.5 22C17.0523 22 17.5 21.5523 17.5 21V15C17.5 14.4477 17.0523 14 16.5 14Z"})})}),w.vip_code_area_not_available]})})}),(0,r.jsx)(y.xv,{children:(0,r.jsx)("strong",{children:w.vip_code_more_information})}),(0,r.jsxs)(y.gk,{children:[(0,r.jsx)(y._L,{children:w.vip_code_area_instruction_1}),(0,r.jsx)(y._L,{children:w.vip_code_area_instruction_2})]})]})]})]})},w=!0,vip_code=function(){var e=(0,a.useRef)(null);return(0,r.jsx)(o.Z,{footerRef:e,compactFooter:!0,children:(0,r.jsx)(c.default,{children:(0,r.jsx)(components_VipCode,{})})})}},9008:function(e,n,t){e.exports=t(79201)}},function(e){e.O(0,[5445,9402,1546,3926,4376,9774,2888,179],function(){return e(e.s=69344)}),_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.