1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9254],{75556:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/pesquisa/pesquisa-loja",function(){return i(6289)}])},28883:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(74848),a=i(63149),o=i(73038);function s(e){let{label:t,disabled:i,errorMessage:s,...l}=e,[d,c,p]=(0,a.Mt)(l);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{children:(0,n.jsx)("label",{htmlFor:l.name,children:t})}),(0,n.jsx)("input",{className:"text-input",...d,...l,type:"hidden",value:d.value}),(0,n.jsx)("div",{style:{marginTop:"10px",paddingLeft:"30px"},children:(0,n.jsx)(o.A,{name:"simple-controlled",size:"large",value:d.value,onChange:(e,t)=>{i||(null===t?p.setValue(0):p.setValue(t))}})}),(0,n.jsx)(r,{children:c.touched&&c.error?(0,n.jsx)("div",{className:"error",children:c.error}):null})]})}let r=i(27317).Ay.div.withConfig({displayName:"StarRating__ErrorMessage",componentId:"sc-80364f05-0"})(["height:21px;color:",";"],e=>e.theme.colors.redFormRequired)},4421:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(74848),a=i(63149),o=i(27317);function s(e){let{label:t,...i}=e,[o,s]=(0,a.Mt)(i);return(0,n.jsxs)(r,{children:[(0,n.jsx)("h3",{children:(0,n.jsx)("label",{htmlFor:i.name,children:t})}),(0,n.jsx)("textarea",{className:"text-input",...o,...i}),(0,n.jsx)(l,{children:s.touched&&s.error?(0,n.jsx)("div",{className:"error",children:s.error}):null})]})}let r=o.Ay.div.withConfig({displayName:"TextArea__Container",componentId:"sc-d4f33fbd-0"})(["margin-top:10px;display:flex;flex-direction:column;textarea{flex:1;margin-top:10px;padding:8px;font-size:16px;}"]),l=o.Ay.div.withConfig({displayName:"TextArea__ErrorMessage",componentId:"sc-d4f33fbd-1"})(["height:21px;color:",";"],e=>e.theme.colors.redFormRequired)},4041:(e,t,i)=>{"use strict";i.d(t,{f:()=>a});var n=i(74848);let a={loading:(0,n.jsx)("span",{style:{color:"#908f8f",fontFamily:"Mulish",borderRadius:"6px"},children:"Enviando..."}),success:(0,n.jsx)("span",{style:{color:"#000033",fontFamily:"Mulish",borderRadius:"6px"},children:"Informa\xe7\xf5es enviadas com sucesso!"}),error:(0,n.jsx)("span",{style:{color:"#D32F2F",fontFamily:"Mulish",borderRadius:"6px"},children:"Houve um erro, pesquisa j\xe1 enviada!"})}},6289:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>u,default:()=>g});var n=i(74848),a=i(63149),o=i(30861),s=i(27317),r=i(95865),l=i(99350),d=i(96540),c=i(28883),p=i(4421),h=i(50442),m=i(62636),x=i(4041),u=!0;function g(e){let{id:t,isSurveyAlreadyAnswered:i}=e,[s,u]=(0,d.useState)(!1);if("0"!==i)return(0,n.jsx)(r.A,{background:"#f5f5f5",title:"Pesquisa Loja",minHeight:"100%",children:(0,n.jsx)(l.A,{backGroundColor:"gray",children:(0,n.jsx)(f,{children:(0,n.jsx)("h1",{children:"1"===i?"Pesquisa j\xe1 preenchida!":"Pesquisa n\xe3o encontrada"})})})});let g=async(e,t)=>{let{resetForm:i}=t;u(!0);let n={Id:e.id,Score:e.rating,Message:e.comment};try{let e=(0,h.yj)(n,"/Product/SendSatisfactionSurvey");m.Ay.promise(e,x.f,{duration:4e3,style:{minWidth:"250px"},success:{iconTheme:{primary:"#48d597",secondary:"#000033"}}}),await e}catch(e){console.log({e})}i(),u(!1)};return(0,n.jsx)(r.A,{background:"#f5f5f5",title:"Pesquisa Loja",minHeight:"100%",children:(0,n.jsx)(l.A,{backGroundColor:"gray",children:(0,n.jsxs)(f,{children:[(0,n.jsx)("h1",{children:"COMO FOI A SUA EXPERI\xcaNCIA?"}),(0,n.jsx)(y,{children:(0,n.jsx)(a.l1,{initialValues:{id:t,rating:0,comment:""},validationSchema:o.Ik().shape({rating:o.ai().min(1,"Preencha a avalia\xe7\xe3o, de 1 a 5.").max(5).required("Preencha a avalia\xe7\xe3o."),comment:o.Yj().max(1e3,"O coment\xe1rio deve ter no m\xe1ximo 1000 caracteres.").required("Obrigat\xf3rio.")}),onSubmit:g,children:(0,n.jsxs)(a.lV,{className:"pesquisa-pos",children:[(0,n.jsx)(c.A,{name:"rating",label:"1) Qual a sua avalia\xe7\xe3o geral?",disabled:s}),(0,n.jsx)(p.A,{label:"2) Coment\xe1rio adicional:",name:"comment",disabled:s,rows:5}),(0,n.jsx)(w,{children:(0,n.jsx)(j,{type:"submit",disabled:s,children:"Enviar Respostas"})})]})})})]})})})}let f=s.Ay.div.withConfig({displayName:"pesquisa-loja__Root",componentId:"sc-f3998e1c-0"})(["display:flex;flex-direction:column;padding:40px 112px;width:100%;max-width:1920px;min-height:calc(100vh - 867px);font-family:",";@media (max-width:799px){padding:40px 28px;}"],e=>e.theme.fonts.roboto),y=s.Ay.div.withConfig({displayName:"pesquisa-loja__Wrapper",componentId:"sc-f3998e1c-1"})(["margin-top:30px;"]),w=s.Ay.div.withConfig({displayName:"pesquisa-loja__ButtonWrapper",componentId:"sc-f3998e1c-2"})(["display:flex;justify-content:center;margin-top:10px;"]),j=s.Ay.button.withConfig({displayName:"pesquisa-loja__StyledButton",componentId:"sc-f3998e1c-3"})(["width:250px;height:50px;background:",";color:",";border-radius:7px;font-weight:700;font-size:16px;"],e=>e.theme.colors.secondary,e=>e.theme.colors.primary)},95865:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var n=i(74848),a=i(13368),o=i.n(a),s=i(96540),r=i(27317);let l=r.Ay.div.withConfig({displayName:"styles__Container",componentId:"sc-802c6411-0"})(["background-color:",";position:relative;"],e=>e.background?e.background:"#fff");r.Ay.div.withConfig({displayName:"styles__HeaderWrapper",componentId:"sc-802c6411-1"})(["background:",";min-height:135px;"],e=>e.theme.colors.primary);let d=r.Ay.div.withConfig({displayName:"styles__Section",componentId:"sc-802c6411-2"})(["min-height:",";display:flex;flex-direction:column;position:relative;padding:",";@media (max-width:799px){padding:",";}"],e=>e.minHeight?e.minHeight:"100vh",e=>e.withoutPadding?"0px":"64px 0 100px 112px",e=>e.withoutPadding?"0px":"20px");r.Ay.div.withConfig({displayName:"styles__Form",componentId:"sc-802c6411-3"})([""]),r.Ay.div.withConfig({displayName:"styles__FieldContainer",componentId:"sc-802c6411-4"})(["display:flex;flex-direction:column;flex-wrap:wrap;max-height:650px;width:100%;max-width:850px;@media (max-width:799px){flex-direction:column;flex-wrap:nowrap;max-height:unset;}"]),r.Ay.p.withConfig({displayName:"styles__TitleIndicator",componentId:"sc-802c6411-5"})(['font-family:"IBM-Plex";font-style:normal;font-weight:400;font-size:',";padding:0 0 54px;color:",";cursor:pointer;&:hover{text-decoration:underline;opacity:0.8;transition:0.2s;}"],e=>e.theme.fontSizes.variations.size0,e=>e.theme.colors.grey1),r.Ay.div.withConfig({displayName:"styles__ContainerTitle",componentId:"sc-802c6411-6"})(["@media (max-width:799px){padding:0 28px;width:100%;position:relative;}"]),r.Ay.h3.withConfig({displayName:"styles__Title",componentId:"sc-802c6411-7"})(['height:49px;font-family:"Mulish";font-style:normal;font-weight:600;font-size:',";line-height:135%;letter-spacing:0.2px;margin:0 0 32px;width:1215px;max-width:100%;text-align:left;color:",';
1@media (max-width:799px){width:200px;height:60px;font-family:"Mulish";font-style:normal;font-weight:700;font-size:',";line-height:135%;}"],e=>e.theme.fontSizes.variations.size8,e=>e.theme.colors.primary,e=>e.theme.fontSizes.variations.size6),r.Ay.h3.withConfig({displayName:"styles__SubTitle",componentId:"sc-802c6411-8"})(['height:49px;font-family:"Mulish";font-style:normal;font-weight:600;font-size:',";line-height:135%;letter-spacing:0.2px;margin:0 0 32px;width:1215px;max-width:100%;text-align:left;color:",';@media (max-width:799px){width:200px;height:60px;font-family:"Mulish";font-style:normal;font-weight:700;font-size:',";line-height:135%;}"],e=>e.theme.fontSizes.variations.size1,e=>e.theme.colors.primary,e=>e.theme.fontSizes.variations.size6);let c=e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((e,t)=>""!=e.href?{"@type":"ListItem",position:t+1,name:e.label,item:e.href}:{"@type":"ListItem",position:t+1,name:e.label})});function p(e){let{title:t,children:i,withoutPadding:a=!0,background:r,faqQuestions:p,schema:h,minHeight:m,metaDescription:x,canonical:u,breadcrumb:g}=e,f=u&&u.length>0?"https://www.stb.com.br"+u:void 0,y=(0,s.useMemo)(()=>{let e;p&&(e=p.map(e=>{var t;return{"@context":"https://schema.org","@type":"Question",name:void 0!==e.attributes?e.attributes.pergunta:e.titulo,acceptedAnswer:{"@type":"Answer",text:(null==e?void 0:e.attributes)!==void 0?null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.resposta:null==e?void 0:e.texto}}}));let t=[];if(h)try{"FAQPage"===h["@type"]&&h.mainEntity&&Array.isArray(h.mainEntity)?e=e?[...e,...h.mainEntity]:h.mainEntity:Array.isArray(h)?t.push(...h):t.push(h)}catch(e){console.log("Erro ao processar o schema:",e)}return e&&e.length>0&&t.push({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e}),g&&t.push(c(g)),t},[p,h,g]);return(0,n.jsxs)(l,{background:r,children:[(0,n.jsxs)(o(),{children:[(0,n.jsx)("title",{children:t}),(0,n.jsx)("link",{rel:"icon",type:"image/ico",href:"/images/favicon.ico"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:image",content:"https://www.stb.com.br/images/stb-logo-whatsapp.png"}),(0,n.jsx)("meta",{property:"og:title",content:t}),(0,n.jsx)("meta",{property:"og:description",content:x}),(0,n.jsx)("meta",{name:"description",content:x}),u&&u.length>0&&(0,n.jsx)("link",{rel:"canonical",href:f}),y&&y.length>0&&(0,n.jsx)("script",{id:"structuredData",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(y)}},"structuredData")]}),(0,n.jsx)(d,{withoutPadding:a,minHeight:m,children:i})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[8788,4049,3038,636,6593,8792],()=>t(75556)),_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.