PageSourceSearch

https://vialaser.com.br/static/js/9927.4df6bc58.chunk.js

js vialaser.com.br collected 2026-10-08 08:59:00 UTC 11,981 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfront=self.webpackChunkfront||[]).push([[9927],{50591:function(n,e,t){t.d(e,{Q:function(){return g},l:function(){return O}});var i,r,a,o,s=t(72791),u=t(17309),l=t(78844),c=t(63092),d=t(30168),m=t(26864),f=t(16444),p=(0,f.ZP)(m.l0)(i||(i=(0,d.Z)(["\n  ","\n"])),(function(n){var e=n.theme;return(0,f.iv)(r||(r=(0,d.Z)(["\n    display: flex;\n    align-items: flex-start;\n    gap: ",";\n    padding: ",";\n    background-color: ",";\n    box-shadow: ",";\n\n    border-radius: 20px;\n\n    > div,\n    button {\n      flex-grow: 1;\n    }\n\n    @media (max-width: ",") {\n      flex-direction: column;\n      width: 100%;\n      align-items: stretch;\n    }\n  "])),e.layout.spacing(2),e.layout.spacing(4),e.palette.neutral[50],e.layout.shadows.card,e.layout.breakpoints.md)})),h=t(80184),g=function(n){var e=n.loading,t=(0,c.bU)("landingPages").t;return(0,h.jsxs)(p,{children:[(0,h.jsx)(u.oi,{name:"email",icon:l.UZ.MAIL,placeholder:t("Your e-mail")}),(0,h.jsx)(u.zx,{variant:"primary",icon:l.UZ.ARROW_RIGHT,iconPosition:"right",loading:e,children:t("Continue")})]})},b=t(4942),x=t(1413),v=t(29439),y=t(69017),Z=t(11279),k=t(74165),j=t(15861),w=t(91933),P=t(29860),T=t(55325),_=t(64163);var A=f.ZP.section(a||(a=(0,d.Z)(["\n  ","\n"])),(function(n){var e=n.theme;return(0,f.iv)(o||(o=(0,d.Z)(["\n    width: 100%;\n    max-width: 595px;\n\n    background-color: ",";\n    border-radius: 20px;\n    box-shadow: ",";\n    padding: ",";\n\n    display: flex;\n    flex-direction: column;\n    gap: ",";\n\n    header {\n      display: flex;\n      justify-content: space-between;\n      align-items: flex-start;\n\n      h2 {\n        color: ",";\n        font-size: ",";\n      }\n\n      p {\n        color: ",";\n        font-size: ",";\n      }\n\n      button {\n        width: 35px;\n        height: 35px;\n        outline: none;\n        background-color: transparent;\n        border-radius: 12px;\n        border: 1px solid ",";\n\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        cursor: pointer;\n\n        color: ",";\n        font-size: 1.25rem;\n      }\n    }\n\n    form {\n      display: flex;\n      flex-direction: column;\n      gap: ",";\n\n      > div {\n        display: flex;\n        flex-direction: column;\n        gap: ",";\n\n        label[for='terms'] {\n          font-size: ",";\n        }\n\n        a {\n          color: ",";\n          text-decoration: underline;\n        }\n      }\n\n      footer {\n        display: flex;\n        flex-direction: column;\n      }\n    }\n\n    @media (max-width: ",") {\n      height: calc(100vh - ",");\n      width: calc(100vw - ",");\n\n      form {\n        flex: 1;\n        justify-content: space-between;\n      }\n    }\n  "])),e.palette.neutral[50],e.layout.shadows.popup,e.layout.spacing(4),e.layout.spacing(4),e.palette.text.main,e.typography.sizes.title2,e.palette.neutral[400],e.typography.sizes.subtitle,e.palette.neutral[100],e.palette.text.main,e.layout.spacing(4),e.layout.spacing(2),e.typography.sizes.caption,e.palette.primary.main,e.layout.breakpoints.md,e.layout.spacing(6),e.layout.spacing(4))})),R=l.UZ.X,E=function(n,e){var t=n.email,i=void 0===t?"":t,r=n.submitButtonText,a=n.initialOpen,o=n.leadOriginIndentifier,d=n.onRegister,f=(0,c.bU)("landingPages"),p=f.t,g=f.language,E=f.sharedT,O=(0,s.useRef)(null);(0,s.useImperativeHandle)(e,(function(){return{open:function(){var n;return null===(n=O.current)||void 0===n?void 0:n.open()}}}),[]);var I=(0,s.useState)({}),C=(0,v.Z)(I,2),S=C[0],z=C[1],M=function(n){var e=n.leadOriginIndentifier,t=n.onSuccess,i=(0,c.bU)("landingPages"),r=i.t,a=i.language,o=(0,c.pm)(),s=(0,Z.dd)(),u=(0,_.tf)("landingPages").handleError,d=(0,w.useMutation)(function(){var n=(0,j.Z)((0,k.Z)().mark((function n(t){var i,r,o,s,u;return(0,k.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.name,r=t.phone,o=t.email,s=t.unit,u=t.terms,n.t0=(0,P._e)(),n.t1=i,n.t2=o,n.t3=r,n.t4=l.Qd[a],n.t5=s,n.t6=u,n.t7=u,n.next=11,(0,T.Pg)();case 11:return n.t8=n.sent,n.t9={key:"CADASTRO",channel:"SITE",meta:{link:window.location.href,identificador:e}},n.t10={name:n.t1,email:n.t2,phone:n.t3,countryCode:n.t4,unitId:n.t5,terms:n.t6,optin:n.t7,origin:"LANDING_PAGE",trackingMeta:n.t8,leadOrigin:n.t9},n.abrupt("return",n.t0.execute.call(n.t0,n.t10));case 15:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),{onSuccess:function(n){function e(e){return n.apply(this,arguments)}return e.toString=function(){return n.toString()},e}((function(n){var e=n.id;s.close(),o.success(r("Registered successfully!")),t({id:e})})),onError:function(n){return u(n)}});return{loading:d.isLoading,register:d.mutateAsync}}({leadOriginIndentifier:o,onSuccess:d}),U=(0,m.TA)({initialValues:{name:"",phone:"",email:i,terms:!1,unit:l.uu[g]}
1,validationSchema:(0,y.s)({t:p,language:g,sharedT:E,setValidating:function(n,e){return z((function(t){return(0,x.Z)((0,x.Z)({},t),{},(0,b.Z)({},n,e))}))}}),onSubmit:function(n){return M.register(n)},enableReinitialize:!0});return(0,h.jsx)(Z.u_,{ref:O,initialOpen:a,closeOnOverlayClick:!1,children:(0,h.jsxs)(A,{children:[(0,h.jsxs)("header",{children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h2",{children:p("Make my register")}),(0,h.jsx)("p",{children:p("Register to guarantee your benefit at Vialaser")})]}),(0,h.jsx)("button",{onClick:function(){var n;return null===(n=O.current)||void 0===n?void 0:n.close()},children:(0,h.jsx)(R,{})})]}),(0,h.jsx)(m.Hy,{value:U,children:(0,h.jsxs)(m.l0,{children:[(0,h.jsxs)("div",{children:[(0,h.jsx)(u.oi,{name:"name",icon:l.UZ.USER,placeholder:p("Your name and lastname")}),(0,h.jsx)(u.oi,{name:"phone",icon:l.UZ.PHONE,placeholder:p("Phone"),mask:l.R7.PHONE[g],isLoading:S.phone}),(0,h.jsx)(u.oi,{type:"email",name:"email",icon:l.UZ.MAIL,placeholder:p("Your e-mail"),isLoading:S.email}),(0,h.jsx)(Z.BT,{name:"terms",children:(0,h.jsxs)(c.cC,{t:p,localeKey:"I accept the <1>Terms and conditions</1>, I authorize the use of my data according to the <3>Privacy policy</3> and even receive news and promotions from Vialaser",children:["I accept the ",(0,h.jsx)("a",{href:"https://vialaser.com.br/termos-de-uso",target:"_blank",rel:"noreferrer",children:"Terms and conditions"}),", I authorize the use of my data according to the ",(0,h.jsx)("a",{href:"https://vialaser.com.br/politicas-de-privacidade",target:"_blank",rel:"noreferrer",children:"Privacy policy"})," and even receive news and promotions from Vialaser"]})})]}),(0,h.jsx)("footer",{children:(0,h.jsx)(u.zx,{variant:"primary",type:"submit",disabled:!U.isValid,icon:l.UZ.TAG,iconPosition:"right",loading:M.loading,children:r||p("Finish and secure my discount")})})]})})]})})},O=(0,s.forwardRef)(E)},13414:function(n,e,t){t.d(e,{z:function(){return r}});var i=t(93433),r={base:["landingPage"],customerByEmail:function(n){return[].concat((0,i.Z)(r.base),["customer",n])},bonusProducts:function(){return[].concat((0,i.Z)(r.base),["bonusProducts"])},units:function(){return[].concat((0,i.Z)(r.base),["units"])},promotionDiscount:function(n,e){return[].concat((0,i.Z)(r.base),["promotionDiscount",n,e])},scheduleTimes:function(n,e){return[].concat((0,i.Z)(r.base),["scheduleTimes",n,e])}}},45723:function(n,e,t){t.r(e),t.d(e,{default:function(){return T}});var i=t(72791),r=t(26864),a=t(50591),o=t(97818),s=t(49693),u=t(11279),l=t(17309),c=t(63092),d=t(64163),m=t.p+"static/media/banner_desktop_br.ed137f12ecc0daa6bf93.png",f=t.p+"static/media/banner_desktop_py.b76135e479629b02e311.png",p=t.p+"static/media/banner_mobile_br.084b3f347b415433381e.png",h=t.p+"static/media/banner_mobile_py.0627bd9394f8cfdb4ed9.png",g=t(91933),b=t(29860);var x=t(13414);var v,y,Z=t(30168),k=t(16444),j=k.ZP.div(v||(v=(0,Z.Z)(["\n  ","\n"])),(function(n){var e=n.theme,t=n.banner;return(0,k.iv)(y||(y=(0,Z.Z)(["\n    height: 100vh;\n\n    background-image: url(",");\n    background-size: cover;\n    background-position: top;\n    background-repeat: no-repeat;\n\n    padding: ",";\n\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: flex-end;\n\n    @media (max-width: ",") {\n      padding: ",";\n    }\n  "])),t,e.layout.spacing(8),e.layout.breakpoints.md,e.layout.spacing(4))})),w=t(80184),P={pt:{desktop:m,mobile:p},es:{desktop:f,mobile:h},"es-CR":{desktop:f,mobile:h},"es-UY":{desktop:f,mobile:h}},T=function(){var n=(0,d.ac)("md"),e=(0,c.bU)("landingPages"),t=e.t,m=e.language,f=(0,c.KM)(),p=f.email,h=f.identifier,v=f.from,y=f.canCreateRecommendations,Z=(0,c.HJ)(),k=(0,i.useRef)(null),T=(0,i.useCallback)((function(n){var e,t=(0,s.j3)().encode({id:n.id});Z.push("/beneficio-indicacao",{hash:t,identifier:h,canCreateRecommendations:y,origin:(e={email:p,from:v},e.from?e.from:e.email?"TOTEM":"ECOMMERCE_LANDING_PAGE")})}),[Z,h,y,p,v]),_=function(n){var e=(0,c.KM)().email,t=(0,g.useQuery)(x.z.customerByEmail(e),(function(){if(!e)throw new Error;return(0,b.A3)().execute({email:e})}),{onSuccess:function(e){e&&n.onFind({id:e.id})},enabled:!!e});return{loading:t.isLoading,customer:t.data||null}}({onFind:T}),A=function(n){var e=(0,g.useMutation)((function(n){return(0,b.A3)().execute({email:n})}),{onSuccess:function(e){n.onSuccess(e&&{id:e.id})}});return{loading:e.isLoading,find:e.mutateAsync}}({onSuccess:function(n){var e;if(n)return T(n);null===(e=k.current)||void 0===e||e.open()}}),R=(0,r.TA)({initialValues:{email:""},validationSchema:(0,o.H)(t),onSubmit:function(n){return A.find(n.email)}}),E=P[m];return _.loading?(0,w.jsx)(l.F3,{}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(u.jh,{title:t("Exclusive offer!")}),(0,w.jsx)(j,{banner:n?E.mobile:E.desktop,children:(0,w.jsx)(r.Hy,{value:R,children:(0,w.jsx)(a.Q,{loading:A.loading})})}),(0,w.jsx)(a.l,{ref:k,email:p||R.values.email,initialOpen:Boolean(p&&!_.customer),onRegister:T,leadOriginIndentifier:"CADASTRO_LANDING_PAGE_INDICADOR"})]})}},69017:function(n,e,t){t.d(e,{s:function(){return l}});var i=t(74165),r=t(15861),a=t(81724),o=t(29860),s=t(78844),u=t(55325),l=function(n){var e=n.t,t=n.sharedT,l=n.language,c=n.setValidating,d=n.emailValidation,m=void 0===d?{strategy:"unique"}:d;return a.Ry({name:a.Z_().required(e("This field is required")).matches(s.xf.FULLNAME,e("Please, inform both the name and surname")),email:a.Z_().required(e("This field is required")).email(e("Please, inform a valid email")).test("Email validity",function(){var n=(0,r.Z)((0,i.Z)().mark((function n(e,r){var a,s,l;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(r.path,!0),n.next=3,(0,u.oH)({t:t,value:e,useCase:(0,o.A3)(),strategy:m.strategy});case 3:if(a=n.sent,s=a.valid,l=a.message,c(r.path,!1),!l){n.next=9;break}return n.abrupt("return",r.createError({message:l}));case 9:if(s||!m.invalidMessage){n.next=11;break}return n.abrupt("return",r.createError({message:m.invalidMessage}));case 11:return n.abrupt("return",s);case 12:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()),phone:a.Z_().required(e("This field is required")).test("whatsapp validity",e("Please, inform a valid whatsapp number"),function(){var n=(0,r.Z)((0,i.Z)().mark((function n(e,r){var a,s,d;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(r.path,!0),n.next=3,(0,u.h_)({value:e,t:t,language:l,useCase:(0,o.VO)()});case 3:if(a=n.sent,s=a.valid,d=a.message,a.finished&&c(r.path,!1),!d){n.next=10;break}return n.abrupt("return",r.createError({message:d}));case 10:return n.abrupt("return",s);case 11:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()),unit:a.Rx().required(e("This field is required")),terms:a.O7().isTrue().required(e("This field is required"))})}},97818:function(n,e,t){t.d(e,{H:function(){return r}});var i=t(81724),r=function(n){return i.Ry().shape({email:i.Z_().email(n("The informed e-mail is not val
1id!")).required(n("You must inform the e-mail!"))})}}}]);
2//# sourceMappingURL=9927.4df6bc58.chunk.js.map

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.