1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3329],{92304:function(e,t,i){i.d(t,{Z:function(){return m}});var o=i(85893),l=i(25675),n=i.n(l),r=i(19521),a=i(85703);let d=r.ZP.div.withConfig({displayName:"dynamic-tag-pill.styles__WrapperTagPill",componentId:"sc-b9d81143-0"})(["align-items:center;background:",";border-radius:50px;color:",";display:inline-flex;gap:8px;max-width:max-content;padding:8px 16px;position:relative;&::before{background:",";border-radius:inherit;content:'';inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;padding:",";pointer-events:none;position:absolute;}.dynamic-tag-pill-icon{flex-shrink:0;height:auto;object-fit:contain;width:auto;}.dynamic-tag-pill-text{color:inherit;font-size:14px;font-weight:600;line-height:20px;p,h1,h2,h3,h4,h5,h6{color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;}strong{font-weight:700;}a{color:inherit;text-decoration:underline;}}"],e=>{let{bgColor:t}=e;return t},e=>{let{textColor:t}=e;return t},e=>{let{borderColor:t}=e;return t},"1px"),s={bg:"transparent",border:a.r.colors.primary,text:a.r.colors.dark};var c=e=>{var t,i,l,r,a,c;let{className:p,data:u}=e;return(null==u?void 0:u.text)||(null==u?void 0:null===(t=u.icon)||void 0===t?void 0:t.url)?(0,o.jsxs)(d,{className:"dynamic-tag-pill ".concat(p||""),bgColor:(null==u?void 0:u.bg_color)||s.bg,borderColor:(null==u?void 0:u.border_color)||s.border,textColor:(null==u?void 0:u.text_color)||s.text,children:[(null==u?void 0:null===(i=u.icon)||void 0===i?void 0:i.url)&&(0,o.jsx)(n(),{className:"dynamic-tag-pill-icon",src:null==u?void 0:null===(l=u.icon)||void 0===l?void 0:l.url,alt:(null==u?void 0:null===(r=u.icon)||void 0===r?void 0:r.alternativeText)||"\xcdcone",width:(null==u?void 0:null===(a=u.icon)||void 0===a?void 0:a.width)||20,height:(null==u?void 0:null===(c=u.icon)||void 0===c?void 0:c.height)||20,loading:"lazy"}),(null==u?void 0:u.text)&&(0,o.jsx)("div",{className:"dynamic-tag-pill-text",dangerouslySetInnerHTML:{__html:null==u?void 0:u.text}})]}):null},p=i(65278);let u=r.ZP.div.withConfig({displayName:"dynamic-title-tag.styles__WrapperTitleSection",componentId:"sc-2390cbf1-0"})(["display:flex;flex-direction:column;gap:24px;width:100%;"," "," .dynamic-title-content{"," a{color:inherit;text-decoration:underline;}img{height:auto;width:auto;","{display:none;}}ol,ul{padding-left:20px;li{list-style:inherit;}}}"],e=>{let{isCenterElements:t}=e;return t&&(0,r.iv)(["align-items:center;justify-content:center;.dynamic-title-content{text-align:center;}"])},e=>{let{isCenterElementsMobile:t}=e;return t&&(0,r.iv)(["","{align-items:center;justify-content:center;.dynamic-title-content{text-align:center;}}"],p.Hb.mobile)},e=>{let{colorTextStrong:t}=e;return t&&(0,r.iv)(["h1,h2,h3,h4,h5,h6{strong{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background:",";background-clip:text;color:transparent;font-weight:inherit;}}"],t)},p.Hb.mobile);var m=e=>{var t,i,l,r,a,d;let{className:s,colorTextStrong:p="",data:m,isCenterElements:h=!1,isCenterElementsMobile:g=!1,tagPill:x}=e,b=!!((null==x?void 0:x.text)||(null==x?void 0:null===(t=x.icon)||void 0===t?void 0:t.url));return(0,o.jsxs)(u,{isCenterElements:h,isCenterElementsMobile:g,colorTextStrong:p,children:[b&&x&&(0,o.jsx)(c,{data:x}),!b&&(null==m?void 0:m.icon)&&(0,o.jsx)(n(),{className:"dynamic-title-tag-image",src:null==m?void 0:null===(i=m.icon)||void 0===i?void 0:i.url,alt:(null==m?void 0:null===(l=m.icon)||void 0===l?void 0:l.alternativeText)||"\xcdcone",width:null==m?void 0:null===(r=m.icon)||void 0===r?void 0:r.width,height:null==m?void 0:null===(a=m.icon)||void 0===a?void 0:a.height,loading:"lazy",style:{objectFit:"contain",width:"100%",maxWidth:(null==m?void 0:null===(d=m.icon)||void 0===d?void 0:d.width)||"200px"}}),(null==m?void 0:m.text)&&(0,o.jsx)("div",{className:"dynamic-title-content ".concat(s||""),dangerouslySetInnerHTML:{__html:null==m?void 0:m.text}})]})}},70699:function(e,t,i){i.d(t,{jK:function(){return p},$G:function(){return m},mt:function(){return u},mh:function(){return c}});var o=i(19521),l=i(48389),n=i(65278);let r=(0,o.iv)(["&::before{background:",";content:'';display:block;height:64px;left:0;position:absolute;top:0;width:100%;z-index:-1;}"],e=>{var t,i;return(null===(i=e.config)||void 0===i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.radius_bg_color_top)||"transparent"}),a=(0,o.iv)(["&::after{background:",";bottom:0;content:'';display:block;height:64px;left:0;position:absolute;width:100%;z-index:-1;}"],e=>{var t,i;return(null===(i=e.config)||void 0===i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.radius_bg_color_bottom)||"transparent"}),d=o.ZP.section.withConfig({displayName:"radius-section.styles__RadiusSection",componentId:"sc-19322ea4-0"})(["position:relative;"," "," "," "," "," "," ",""],e=>{var t;let{config:i}=e;return(null==i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.position)===l.c.TOP_LEFT&&(0,o.iv)(["border-top-left-radius:64px;","{border-top-left-radius:40px;}","{border-top-left-radius:32px;}",""],n.Hb.medium,n.Hb.mobile,r)},e=>{var t;let{config:i}=e;return(null==i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.position)===l.c.TOP_RIGHT&&(0,o.iv)(["border-top-right-radius:64px;","{border-top-right-radius:40px;}","{border-top-right-radius:32px;}",""],n.Hb.medium,n.Hb.mobile,r)},e=>{var t;let{config:i}=e;return(null==i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.position)===l.c.TOP_ALL&&(0,o.iv)(["border-top-left-radius:64px;border-top-right-radius:64px;","{border-top-left-radius:40px;border-top-right-radius:40px;}","{border-top-left-radius:32px;border-top-right-radius:32px;}",""],n.Hb.medium,n.Hb.mobile,r)},e=>{var t;let{config:i}=e;return(null==i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.position)===l.c.BOTTOM_LEFT&&(0,o.iv)(["border-bottom-left-radius:64px;","{border-bottom-left-radius:40px;}","{border-bottom-left-radius:32px;}",""],n.Hb.medium,n.Hb.mobile,a)},e=>{var t;let{config:i}=e;return(null==i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.position)===l.c.BOTTOM_RIGHT&&(0,o.iv)(["border-bottom-right-radius:64px;","{border-bottom-right-radius:40px;}","{border-bottom-right-radius:32px;}",""],n.Hb.medium,n.Hb.mobile,a)},e=>{var t;let{config:i}=e;return(null==i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.position)===l.c.BOTTOM_ALL&&(0,o.iv)(["border-bottom-left-radius:64px;border-bottom-right-radius:64px;","{border-bottom-left-radius:40px;border-bottom-right-radius:40px;}","{border-bottom-left-radius:32px;border-bottom-right-radius:32px;}",""],n.Hb.medium,n.Hb.mobile,a)},e=>{var t;let{config:i}=e;return(null==i?void 0:null===(t=i.border_radius)||void 0===t?void 0:t.position)===l.c.ALL&&(0,o.iv)(["border-bottom-left-radius:64px;border-bottom-right-radius:64px;border-top-left-radius:64px;border-top-right-radius:64px;","{border-bottom-left-radius:40px;border-bottom-right-radius:40px;border-top-left-radius:40px;border-top-right-radius:40px;}","{border-bottom-left-radius:32px;border-bottom-right-radius:32px;border-top-left-radius:32px;border-top-right-radius:32px;}"," ",""],n.Hb.medium,n.Hb.mobile,r,a)});var s=i(85703);let c=(0,o.ZP)(d).withConfig({displayName:"dynamic-wrapper.styles__SectionDynamic",componentId:"sc-99a7fb66-0"})(["background:",";color:",";display:block;width:100%;"],e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.bg_color)||s.r.colors.white},e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.text_color)||s.r.colors.dark}),p=(0,o.ZP)(d).withConfig({displayName:"dynamic-wrapper.styles__ContentDynamic",componentId:"sc-99a7fb66-1"})(["overflow:hidden;position:relative;width:100%;.image-dynamic-content-absolute{height:auto;max-width:450px;object-fit:contain;position:absolute;width:auto;&.image-hero-dynamic{opacity:0.3;","{display:none;}&:nth-child(1){left:calc(100vw / 2 - 95px - 450px - 75px);}&:nth-child(2){left:calc(100vw / 2 - 95px - 450px - 215px);}&:nth-child(3){right:calc(100vw / 2 - 95px - 450px - 70px);}&:nth-child(4){right:calc(100vw / 2 - 95px - 450px - 200px);}}&.image-banner-dynamic{opacity:0.7;","{display:none;}&:nth-child(1){left:calc(100vw / 2 - 95px - 450px - 20px);","{left:calc(100vw / 2 - 95px - 450px + 225px);}}&:nth-child(2){left:calc(100vw / 2 - 95px - 450px - 215px);
1","{left:calc(100vw / 2 - 95px - 450px + 60px);}}&:nth-child(3){right:calc(100vw / 2 - 95px - 450px - 40px);","{right:calc(100vw / 2 - 95px - 450px + 130px);}}&:nth-child(4){right:calc(100vw / 2 - 95px - 450px - 260px);","{right:calc(100vw / 2 - 95px - 450px + 10px);}}}}",""],n.Hb.mobile,n.Hb.mobile,n.Hb.medium,n.Hb.medium,n.Hb.medium,n.Hb.medium,e=>{var t;let{config:i}=e;return(null==i?void 0:null===(t=i.background_image)||void 0===t?void 0:t.url)&&(0,o.iv)(["z-index:0;&::after{background-image:url(",");background-position:center;background-repeat:no-repeat;background-size:cover;content:'';height:100%;inset:0;position:absolute;width:100%;z-index:-1;}"],i.background_image.url)}),u=o.ZP.div.withConfig({displayName:"dynamic-wrapper.styles__PaddingDynamic",componentId:"sc-99a7fb66-2"})(["margin:0 auto;padding:",";position:relative;width:100%;","{padding:",";}","{padding:",";}","{padding:",";}"],e=>{let{p:t}=e;return t||"80px"},n.Hb.medium,e=>{let{pmedium:t}=e;return t||"70px 48px"},n.Hb.small,e=>{let{psmall:t}=e;return t||"40px 20px"},n.Hb.xsmall,e=>{let{pxsmall:t}=e;return t||"40px 16px"}),m=o.ZP.div.withConfig({displayName:"dynamic-wrapper.styles__MaxContentDynamic",componentId:"sc-99a7fb66-3"})(["margin:0 auto;max-width:","px;position:relative;width:100%;",""],e=>{let{maxWidth:t}=e;return t||s.r.container.max_width},e=>{let{isFullWidth:t}=e;return t&&(0,o.iv)(["max-width:100%;"])})},69266:function(e,t,i){var o=i(85893),l=i(70699);t.Z=e=>{var t,i,n,r,a;let{children:d,id:s,isFullWidth:c=!1,maxWidth:p,padding:u,styles:m}=e,h=null==m?void 0:m.section_space,g={p:null!==(t=null==u?void 0:u.p)&&void 0!==t?t:null==h?void 0:h.padding_large,pmedium:null!==(i=null==u?void 0:u.pmedium)&&void 0!==i?i:null==h?void 0:h.padding_medium,psmall:null!==(n=null==u?void 0:u.psmall)&&void 0!==n?n:null==h?void 0:h.padding_small,pxsmall:null!==(r=null==u?void 0:u.pxsmall)&&void 0!==r?r:null==h?void 0:h.padding_xsmall};return(0,o.jsx)(l.mh,{id:s,config:m,className:null!==(a=null==m?void 0:m.class_name)&&void 0!==a?a:"",children:(0,o.jsx)(l.jK,{config:m,children:(0,o.jsx)(l.mt,{p:g.p,pmedium:g.pmedium,psmall:g.psmall,pxsmall:g.pxsmall,children:(0,o.jsx)(l.$G,{isFullWidth:c,maxWidth:p,children:d})})})})}},62995:function(e,t,i){i.d(t,{Z:function(){return w}});var o=i(85893),l=i(69266),n=i(90472),r=i(31873),a=i(14069),d=i(25675),s=i.n(d),c=i(67294),p=i(43095),u=i(17723),m=i(85703),h=i(19521),g=i(65278);let x=h.ZP.div.withConfig({displayName:"cities.styles__CitiesContentProductRebrand",componentId:"sc-a6cb7277-0"})(["width:100%;","{padding:80px 40px;}","{border-radius:40px;padding:80px 20px;}.max-content-cities{width:100%;max-width:1100px;margin:0 auto;}.input-filter{padding-bottom:40px;> div > div{outline:1px solid #0016471a !important;border-radius:200px;max-width:600px;width:100%;margin:0 auto;background-color:transparent;}}.operation-toggle-container{display:flex;align-items:center;justify-content:center;gap:8px;padding-bottom:34px;.op-button{gap:8px;background:#00164708;border:1px solid #0016470d;color:",";&.active{background:linear-gradient( 213.01deg,#779e3d -13.82%,#8dd7d7 114.02% );border:1px solid transparent;color:",";img{filter:brightness(0) invert(1);}}p{font-weight:600;font-size:16px;line-height:120%;letter-spacing:1%;}}}.cities-filter-button{align-items:center;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding-bottom:40px;button{background:linear-gradient( 180deg,rgba(10,78,228,0.1) -106.22%,rgba(141,215,215,0.1) 144.8% );border-radius:200px;color:",";outline:none;padding:9px 14px;&:focus{box-shadow:none;outline:none;}&.active{background:linear-gradient( 360deg,#8dd7d7 -108.85%,"," 285.06% );color:",";}}}
1.content-cities-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 10px;","{grid-template-columns:repeat(2,1fr);}","{grid-template-columns:1fr;}.city-card{padding:24px 25px;background-color:",";border-radius:20px;display:flex;gap:5px;justify-content:space-between;align-items:center;border:1px solid #0016471a;.city-info{align-items:center;display:flex;flex-direction:row;gap:6px;.name-city{font-weight:500;font-size:14px;line-height:normal;}}.operation-tag{align-items:center;display:flex;flex-direction:row;gap:4px;padding:3px 10px;border-radius:30px;border:1px solid #0016471a;.name-operation{font-weight:400;font-size:12px;line-height:17px;letter-spacing:0px;}}}}.content-button-show-more-cities{display:flex;justify-content:center;}.search-empty{p{font-size:18px;text-align:center;}}.title-cities{padding-bottom:30px;h1,h2,h3,h4{font-weight:600;font-size:40px;line-height:120%;text-align:center;"," ","{line-height:normal;font-size:32px;}}p{font-size:18px;font-weight:400;padding-top:8px;text-align:center;","{font-size:16px;line-height:24px;}}}"],g.Hb.medium,g.Hb.mobile,m.r.colors.dark,m.r.colors.white,m.r.colors.dark,m.r.colors.primary,m.r.colors.white,g.Hb.medium,g.Hb.mobile,m.r.colors.white,g.yc,g.Hb.mobile,g.Hb.mobile);var b={src:"/_next/static/media/icon-coleta-azul.9cd7d6e3.svg",height:24,width:24,blurWidth:0,blurHeight:0},v={src:"/_next/static/media/icon-coleta-verde.5ad0fd7b.svg",height:24,width:24,blurWidth:0,blurHeight:0},f={src:"/_next/static/media/icon-postagem-azul.51853810.svg",height:24,width:24,blurWidth:0,blurHeight:0},y={src:"/_next/static/media/icon-postagem-verde.c31b50be.svg",height:24,width:24,blurWidth:0,blurHeight:0};let _=e=>{let{button:t,cities:i,text:l}=e,[d,h]=(0,c.useState)(null),[g,_]=(0,c.useState)(""),[w,j]=(0,c.useState)(6),[k,C]=(0,c.useState)("coleta");(0,c.useEffect)(()=>{j(6)},[d,g,k]);let N=(0,c.useMemo)(()=>null==i?void 0:i.list_cities.flatMap(e=>e.cities.map(t=>({...t,stateName:e.state_name,stateCode:e.state_code}))),[]),T=(0,c.useMemo)(()=>N.filter(e=>{let t=!d||e.stateCode===d,i=(0,u.bG)(e.name).includes((0,u.bG)(g)),o=e.operations.includes(k);return t&&i&&o}).sort((e,t)=>e.is_top_city&&!t.is_top_city?-1:!e.is_top_city&&t.is_top_city?1:e.name.localeCompare(t.name)),[g,d,k,N]),H=T.slice(0,w),I=w<T.length;return(0,o.jsx)(x,{children:(0,o.jsxs)("div",{className:"max-content-cities",children:[(0,o.jsxs)("div",{className:"content-filters",children:[l&&(0,o.jsx)("div",{className:"title-cities",dangerouslySetInnerHTML:{__html:l}}),(0,o.jsx)("div",{className:"input-filter",children:(0,o.jsx)(n.V,{className:"search-cities",type:"text",debounceDelay:0,placeholder:"Busque pelas cidades perto de voc\xea",value:g,onClean:()=>_(""),onSearch:e=>_(e),onChange:e=>{_(e.target.value),h(null)}})}),(0,o.jsxs)("div",{className:"operation-toggle-container",children:[(0,o.jsxs)(r.Z,{className:"pill-button op-button ".concat("coleta"===k?"active":""),onClick:()=>C("coleta"),children:[(0,o.jsx)(s(),{src:b,alt:"",width:24,height:24,loading:"lazy"}),(0,o.jsx)("p",{children:"Coleta"})]}),(0,o.jsxs)(r.Z,{className:"pill-button op-button ".concat("postagem"===k?"active":""),onClick:()=>C("postagem"),children:[(0,o.jsx)(s(),{src:f,alt:"",width:24,height:24,loading:"lazy"}),(0,o.jsx)("p",{children:"Postagem"})]})]}),(0,o.jsxs)("div",{className:"cities-filter-button",children:[(0,o.jsx)(r.Z,{className:"pill-button ".concat(null===d?"active":""),onClick:()=>{h(null),_("")},children:"Todas as cidades"}),null==i?void 0:i.list_cities.map(e=>(0,o.jsx)(r.Z,{onClick:()=>{h(null==e?void 0:e.state_code),_("")},className:"pill-button ".concat(d===(null==e?void 0:e.state_code)?"active":""),children:null==e?void 0:e.state_name},"estado-".concat(null==e?void 0:e.state_code)))]})]}),H.length>
10?(0,o.jsx)("div",{className:"content-cities-list",children:H.map(e=>(0,o.jsxs)("div",{className:"city-card ".concat(e.is_top_city?"is-top":""),children:[(0,o.jsxs)("div",{className:"city-info",children:[(0,o.jsx)(a.Z,{}),(0,o.jsx)("div",{children:(0,o.jsx)("p",{className:"name-city",children:e.name})})]}),(0,o.jsxs)("div",{className:"operation-tag",children:["coleta"==k?(0,o.jsx)(s(),{src:v,alt:"",width:20,height:20,loading:"lazy"}):(0,o.jsx)(s(),{src:y,alt:"",width:20,height:20,loading:"lazy"}),(0,o.jsx)("span",{className:"name-operation",children:k})]})]},"".concat(e.stateCode,"-").concat(e.name)))}):(0,o.jsx)("div",{className:"search-empty",children:(0,o.jsx)("p",{children:"Sua pesquisa n\xe3o retornou resultados"})}),I&&(0,o.jsx)("div",{className:"content-button-show-more-cities",children:(0,o.jsx)(p.G9,{className:"pill-button button-border",size:"medium",bgcolor:(null==t?void 0:t.custom_bg_color)||"transparent",bghovercolor:(null==t?void 0:t.custom_hover_color)||"transparent",textcolor:(null==t?void 0:t.custom_text_color)||m.r.colors.dark,texthoverColor:(null==t?void 0:t.custom_hover_text_color)||m.r.colors.dark,borderColor:(null==t?void 0:t.custom_text_color)||m.r.colors.dark,onClick:()=>j(e=>e+6),marginTop:30,children:(null==t?void 0:t.title)||"Ver mais"})})]})})};var w=e=>{var t,i;let{data:n,hideCities:r=!0}=e;if(!r)return(0,o.jsx)(l.Z,{id:"cidades",styles:null==n?void 0:n.cities_style,children:(null==n?void 0:null===(i=n.site_list_city)||void 0===i?void 0:null===(t=i.list_cities)||void 0===t?void 0:t.length)>0&&(0,o.jsx)(_,{cities:null==n?void 0:n.site_list_city,button:null==n?void 0:n.button_cities,text:null==n?void 0:n.text_cities})})}},39669:function(e,t,i){i.d(t,{Z:function(){return h}});var o=i(85893),l=i(25675),n=i.n(l),r=i(67294),a=i(19796),d=i(92304),s=i(69266),c=i(19521),p=i(65278),u=i(85703);let m=c.ZP.div.withConfig({displayName:"section-vertical-tabs.style__SectionVerticalTabsWrapper",componentId:"sc-7b04468b-0"})(["background:",";border-radius:60px;padding:60px;width:100%;","{padding:60px 40px;}","{border-radius:40px;padding:40px 20px;}.text-vertical-tabs{padding-bottom:50px;h1,h2,h3,h4,h5,h6{font-size:40px;font-weight:600;line-height:120%;text-align:center;"," ","{font-size:32px;line-height:40px;br{display:none;}}}p{font-size:18px;font-weight:400;line-height:100%;padding-top:8px;text-align:center;","{font-size:16px;line-height:24px;}}}.vertical-tab-wrapper{display:flex;gap:80px;","{flex-direction:column;gap:40px;}}.vertical-tab-image{position:relative;display:flex;flex:1;width:50%;","{width:100%;}.image-fade{left:0;opacity:0;position:absolute;top:0;transition:opacity 0.6s ease,visibility 0.6s ease;visibility:hidden;width:100%;&.active{opacity:1;position:relative;visibility:visible;}img{display:block;height:auto;margin:0 auto;max-width:100%;object-fit:contain;width:auto;","{height:100%;}","{max-height:500px;}}}}.vertical-tab-content{align-items:flex-start;display:flex;flex:1;flex-direction:column;justify-content:center;width:50%;","{width:100%;}}.vertical-tab-list{display:flex;flex-direction:column;gap:25px;padding-bottom:30px;.vertical-tab-item{align-items:center;border-bottom:1px solid #7c869c;cursor:pointer;display:flex;gap:10px;opacity:0.5;padding-bottom:10px;position:relative;transition:opacity 0.3s ease;&.active{opacity:1;}}}.vertical-tab-item-text{h1,h2,h3,h4,h5,h6{font-weight:600;font-size:18px;line-height:120%;padding-bottom:4px;}p{font-size:16px;font-weight:500;line-height:normal;}}.progress-bar-wrapper-vertical-tab{background:#dcdcdc;bottom:-1px;height:2px;margin-top:6px;overflow:hidden;position:absolute;width:100%;}.progress-bar-vertical-tab{animation:progressAnim var(--duration) linear forwards;background:linear-gradient( 90deg,"," 0%,#8dd7d7 100% );height:100%;transform:translateX(-100%);width:100%;}@keyframes progressAnim{0%{transform:translateX(-100%);}100%{transform:translateX(0%);}}"],e=>{let{bgcolor:t}=e;return t||u.r.colors.white},p.Hb.medium,p.Hb.mobile,p.yc,p.Hb.mobile,p.Hb.mobile,p.Hb.mobile,p.Hb.mobile,p.Hb.medium,p.Hb.mobile,p.Hb.mobile,u.r.colors.primary);var h=e=>{var t,i;let{data:l}=e,[c,p]=(0,r.useState)(0),[u,h]=(0,r.useState)(!1),[g,x]=(0,r.useState)(5e3);(0,r.useEffect)(()=>
1{if(u)return;x(5e3);let e=setTimeout(()=>{p(e=>(e+1)%(null==l?void 0:l.tabs.length))},5e3);return()=>clearTimeout(e)},[c,u,null==l?void 0:l.tabs.length]);let b=e=>{p(e),h(!0),x(400)};return(0,o.jsx)(s.Z,{id:"passos-funcionalidades",styles:null==l?void 0:l.vertical_tabs_style,children:(0,o.jsxs)(m,{bgcolor:null==l?void 0:l.bg_tabs,children:[(null==l?void 0:l.title_and_tag)&&(0,o.jsx)(d.Z,{className:"text-vertical-tabs",data:null==l?void 0:l.title_and_tag,isCenterElements:!0}),(0,o.jsxs)("div",{className:"vertical-tab-wrapper",children:[(0,o.jsxs)("div",{className:"vertical-tab-content",children:[(0,o.jsx)("div",{className:"vertical-tab-list",children:null==l?void 0:null===(t=l.tabs)||void 0===t?void 0:t.map((e,t)=>{var i,l,r,a;return(0,o.jsxs)("div",{className:"vertical-tab-item ".concat(c===t?"active":""),onClick:()=>b(t),children:[(null==e?void 0:e.icon)&&(0,o.jsx)(n(),{src:null==e?void 0:null===(i=e.icon)||void 0===i?void 0:i.url,alt:(null==e?void 0:null===(l=e.icon)||void 0===l?void 0:l.alternativeText)||"Icone de funcionalidade",width:null==e?void 0:null===(r=e.icon)||void 0===r?void 0:r.width,height:null==e?void 0:null===(a=e.icon)||void 0===a?void 0:a.height,loading:"lazy"}),(null==e?void 0:e.text)&&(0,o.jsx)("div",{className:"vertical-tab-item-text",dangerouslySetInnerHTML:{__html:null==e?void 0:e.text}}),c===t&&(0,o.jsx)("div",{className:"progress-bar-wrapper-vertical-tab",children:(0,o.jsx)("div",{className:"progress-bar-vertical-tab",style:{"--duration":"".concat(g,"ms")}},"progress-bar-".concat(c))})]},null==e?void 0:e.id)})}),(null==l?void 0:l.button)&&(0,o.jsx)(a.g,{idButton:"button-vertical-tabs-section",button:null==l?void 0:l.button})]}),(0,o.jsx)("div",{className:"vertical-tab-image",children:null==l?void 0:null===(i=l.tabs)||void 0===i?void 0:i.map((e,t)=>{let i=c===t,l=null==e?void 0:e.image;return(0,o.jsx)("div",{className:"image-fade ".concat(i?"active":""),children:(null==l?void 0:l.url)&&(0,o.jsx)(n(),{src:null==l?void 0:l.url,alt:(null==l?void 0:l.alternativeText)||"Ilustra\xe7\xe3o do recurso",width:null==l?void 0:l.width,height:null==l?void 0:l.height,loading:"lazy"})},e.id)})})]})]})})}},8163:function(e,t,i){i.d(t,{Q5:function(){return en}});var o=i(85893),l=i(69206),n=i(67294),r=i(22920),a=i(16965),d=i(31873),s=i(19521),c=i(65278),p=i(85703);let u=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__MainContainer",componentId:"sc-242d09be-0"})(["align-items:flex-start;background:",";border-radius:60px;color:",";display:flex;flex-direction:column;max-width:","px;padding:90px 100px;","{padding:90px 60px;}","{border-radius:40px;padding:80px 16px;}.container-header-shipping{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:20px;width:100%;}.image-box{object-fit:contain;width:100%;max-width:260px;height:auto;","{display:none;}}.title-shipping-calculator{max-width:685px;padding-bottom:50px;& *{font-size:40px;font-weight:600;line-height:100%;"," ","{font-size:32px;}}}"],e=>{let{bgcolor:t}=e;return t||p.r.colors.white},e=>{let{textcolor:t}=e;return t||p.r.colors.dark},p.r.container.max_width,c.Hb.medium,c.Hb.mobile,c.Hb.mediumSimple,c.yc,c.Hb.mobile),m=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__ContainerInfoFreightSimulate",componentId:"sc-242d09be-1"})(["background:linear-gradient( 97.36deg,rgba(255,255,255,0.1) 11.49%,rgba(255,255,255,0.02) 119.44% );border-radius:40px;padding:40px 50px;width:100%;","{padding:40px 20px;}","{border-radius:30px;padding:40px 20px;}&.title-none{background:transparent;border-radius:0px;padding:0px;","{padding:0px;}","{border-radius:0;padding:0px;}}"],c.Hb.medium,c.Hb.mobile,c.Hb.medium,c.Hb.mobile),h=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__FormSection",componentId:"sc-242d09be-2"})(["align-items:flex-start;display:grid;gap:30px;grid-template-columns:1fr 2fr;","{grid-template-columns:1fr;}input,span{color:"," !important;}"],c.Hb.mobile,e=>{let{colorinput:t}=e;return t||"#312f4f"}),g=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__InputWrapper",componentId:"sc-242d09be-3"})(["> div > div{outline:1px solid "," !important;}"],p.r.colors.white),x=s.ZP.h3.withConfig({displayName:"freights-simulate-form.styles__SubTitle",componentId:"sc-242d09be-4"})(["color:inherit;font-size:22px;font-weight:500;letter-spacing:0%;line-height:100%;padding-bottom:30px;"]),b=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__Divide",componentId:"sc-242d09be-5"})(["margin-bottom:",";margin-left:",";margin-right:",";margin-top:",";"],e=>{let{marginBottom:t}=e;return t||"0rem"},e=>{let{marginLeft:t}=e;return t||"0rem"},e=>{let{marginRight:t}=e;return t||"0rem"},e=>{let{marginTop:t}=e;return t||"0rem"}),v=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__FormGroup",componentId:"sc-242d09be-6"})(["display:flex;flex:1;flex-direction:column;height:100%;div > div{background-color:transparent;}"]),f=s.ZP.label.withConfig({displayName:"freights-simulate-form.styles__Label",componentId:"sc-242d09be-7"})(["color:inherit;font-size:14px;line-height:100%;"]),y=s.ZP.span.withConfig({displayName:"freights-simulate-form.styles__Span",componentId:"sc-242d09be-8"})(["color:inherit;font-size:14px;line-height:100%;"]);s.ZP.input.withConfig({displayName:"freights-simulate-form.styles__Input",componentId:"sc-242d09be-9"})(["background:",";border:1px solid ",";font-size:16px;height:42px;padding:6px 8px;width:100%;"],p.r.colors.white,p.r.colors.gray_medium);let _=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__PackageSection",componentId:"sc-242d09be-10"})(["display:flex;flex-direction:column;width:100%;div > div{background-color:transparent;}"]),w=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__PackageGroup",componentId:"sc-242d09be-11"})(["display:flex;flex-wrap:wrap;gap:20px;"]),j=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__InputGroup",componentId:"sc-242d09be-12"})(["display:flex;flex:1 1 10%;flex-direction:column;","{flex:1 1 100%;width:100%;}
1&.small-fild{","{flex:1 1 calc(50% - 10px);}}"],c.Hb.mobile,c.Hb.mobile),k=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__ButtonContainer",componentId:"sc-242d09be-13"})(["align-items:flex-end;display:flex;flex-wrap:wrap;gap:20px;justify-content:stretch;padding-top:20px;width:100%;","{flex-direction:column;}"],c.Hb.mobile),C=(0,s.ZP)(d.Z).withConfig({displayName:"freights-simulate-form.styles__CustomButton",componentId:"sc-242d09be-14"})(["background-color:#0050dc;border:none;border-radius:8px;color:",";cursor:pointer;flex:1 1 10%;font-size:1rem;font-weight:bold;height:58px;padding:4px 18px;","{flex:1 1 100%;padding:20px;width:100%;}"],p.r.colors.white,c.Hb.mobile),N=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__Toggle",componentId:"sc-242d09be-15"})(["align-items:center;display:flex;gap:0.5rem;position:relative;"]),T=s.ZP.input.withConfig({displayName:"freights-simulate-form.styles__Checkbox",componentId:"sc-242d09be-16"})(["height:0;opacity:0;width:0;"]),H=s.ZP.label.withConfig({displayName:"freights-simulate-form.styles__Slider",componentId:"sc-242d09be-17"})(["background-color:transparent;border:1px solid ",";border-radius:24px;cursor:pointer;height:21px;position:relative;transition:background-color 0.3s;width:50px;&:after{background:linear-gradient( 195.26deg,"," -1.79%,#8dd7d7 114.29% );border-radius:50%;content:'';height:16px;left:2px;position:absolute;top:2px;transition:transform 0.3s;width:16px;}",":checked + &{background-color:#f5f5f5;}",":checked + &:after{transform:translateX(26px);}"],e=>{let{color:t}=e;return t||"#312f4f"},p.r.colors.primary,T,T),I=s.ZP.div.withConfig({displayName:"freights-simulate-form.styles__TagFreightSimulate",componentId:"sc-242d09be-18"})(["align-items:center;background-color:transparent;display:flex;gap:5px;margin-bottom:20px;padding:9px 19px;position:relative;width:fit-content;&::after{background:",";border-radius:200px;content:'';inset:0;mask:linear-gradient("," 0 0) content-box,linear-gradient("," 0 0);mask-composite:exclude;padding:1px;position:absolute;}"],e=>{let{bordercolor:t}=e;return t||"linear-gradient(264.17deg, #E64E36 -8.6%, #F0A028 94.92%)"},p.r.colors.black,p.r.colors.black);function z(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.replace(/\D/g,""),o=P(i);return i?o&&8===i.length&&"00000000"!==i?"":t?"CEP do remetente inv\xe1lido":"CEP do destinat\xe1rio inv\xe1lido":t?"CEP do remetente obrigat\xf3rio":"CEP do destinat\xe1rio obrigat\xf3rio"}function P(e){let t=e.replace(/\D/g,"");if(/^0+$/.test(t))return!1;let i=parseFloat(t);return!isNaN(i)&&!(i<=0)}function S(e){let t=e.replace(/\D/g,"");return!!t&&8===t.length&&P(t)}function Z(e){let t=e.replace(/\D/g,"");return!!t&&P(t)}function L(e){return e.replace(/\D/g,"")}function F(e){return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e)}function W(e){let{colorInput:t,isLoading:i,onHandleSubmit:d}=e,[s,c]=(0,n.useState)({zipCodeFrom:"",zipCodeTo:"",insuranceValue:0,displayValue:"R$ 0,00",packageHeight:"",packageWidth:"",packageLength:"",packageWeight:""}
1),[p,u]=(0,n.useState)({zipCodeFrom:"",zipCodeTo:"",packageHeight:"",packageWidth:"",packageLength:"",packageWeight:""}),m=e=>{let t=(0,a.hR)(e),i=z(e,!0);c(e=>({...e,zipCodeFrom:t})),u(e=>({...e,zipCodeFrom:i}))},I=e=>{let t=(0,a.hR)(e),i=z(e);c(e=>({...e,zipCodeTo:t})),u(e=>({...e,zipCodeTo:i}))},P=(e,t,i)=>{let{value:o}=e.currentTarget,l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Valor",i=e.trim().replace(",",".");if(""===i)return{value:e,error:"".concat(t," \xe9 obrigat\xf3rio")};let o=Number(i);return isNaN(o)?{value:e,error:"".concat(t," em formato inv\xe1lido")}:o<=0?{value:e,error:"".concat(t," deve ser maior que zero")}:{value:e,error:""}}(o,i);c(e=>({...e,[t]:l.value})),u(e=>({...e,[t]:l.error}))},W=()=>{let{insuranceValue:e,packageHeight:t,packageLength:i,packageWeight:o,packageWidth:l,zipCodeFrom:n,zipCodeTo:r}=s;return""===n.trim()||!S(n)||""===r.trim()||!S(r)||""===t.trim()||!Z(t)||""===l.trim()||!Z(l)||""===i.trim()||!Z(i)||""===o.trim()||!Z(o)||0===e},E=async()=>{if(W()){r.Am.error("Preencha todos os campos corretamente antes de simular.");return}let e={from:{postal_code:L(s.zipCodeFrom)},to:{postal_code:L(s.zipCodeTo)},volumes:[{declared_value:parseFloat(s.insuranceValue.toString().replace(",",".")),height:parseFloat(s.packageHeight.replace(",",".")),length:parseFloat(s.packageLength.replace(",",".")),reference:"",type:"box",weight:parseFloat(s.packageWeight.replace(",",".")),width:parseFloat(s.packageWidth.replace(",","."))}]};await d(e)};return(0,n.useEffect)(()=>{let e=localStorage.getItem("freightForm");if(e){let t=JSON.parse(e);c({zipCodeFrom:(0,a.hR)(t.zipCodeFrom||""),zipCodeTo:(0,a.hR)(t.zipCodeTo||""),insuranceValue:t.insuranceValue||0,displayValue:F(t.insuranceValue)||"R$ 0,00",packageHeight:t.packageHeight||"",packageWidth:t.packageWidth||"",packageLength:t.packageLength||"",packageWeight:t.packageWeight||""})}},[]),(0,o.jsxs)(h,{colorinput:t,children:[(0,o.jsxs)(v,{children:[(0,o.jsx)(x,{children:" CEP "}),(0,o.jsx)(f,{children:"*Remetente (lojista)"}),(0,o.jsx)(g,{children:(0,o.jsx)(l.I,{placeholder:"00000-000",inputMode:"numeric",type:"text",value:s.zipCodeFrom,onChange:e=>m(e.currentTarget.value),helperText:p.zipCodeFrom,feedback:""!==p.zipCodeFrom.trim()?"error":void 0,maxLength:9})}),(0,o.jsx)(b,{marginTop:"1rem"}),(0,o.jsx)(f,{children:"*Destinat\xe1rio (cliente)"}),(0,o.jsx)(g,{children:(0,o.jsx)(l.I,{placeholder:"00000-000",inputMode:"numeric",type:"text",value:s.zipCodeTo,onChange:e=>I(e.currentTarget.value),helperText:p.zipCodeTo,feedback:""!==p.zipCodeTo.trim()?"error":void 0,maxLength:9})}),(0,o.jsx)(b,{marginTop:"1rem"}),(0,o.jsxs)(N,{onChange:()=>{c(e=>({...e,zipCodeFrom:e.zipCodeTo,zipCodeTo:e.zipCodeFrom}))},children:[(0,o.jsx)(T,{type:"checkbox",id:"switch"}),(0,o.jsx)(H,{htmlFor:"switch",color:t}),(0,o.jsx)(y,{children:"inverter CEPs"})]})]}),(0,o.jsxs)(_,{children:[(0,o.jsx)(x,{children:"Informa\xe7\xf5es do pacote"}),(0,o.jsxs)(w,{children:[(0,o.jsxs)(j,{className:"small-fild",children:[(0,o.jsx)(f,{children:"*Altura"}),(0,o.jsx)(g,{children:(0,o.jsx)(l.I,{placeholder:"cm",inputMode:"numeric",value:s.packageHeight,onChange:e=>P(e,"packageHeight","Altura"),helperText:p.packageHeight,feedback:""!==p.packageHeight.trim()?"error":void 0,maxLength:10})})]}),(0,o.jsxs)(j,{className:"small-fild",children:[(0,o.jsx)(f,{children:"*Largura"}),(0,o.jsx)(g,{children:(0,o.jsx)(l.I,{placeholder:"cm",inputMode:"numeric",value:s.packageWidth,onChange:e=>P(e,"packageWidth","Largura"),helperText:p.packageWidth,feedback:""!==p.packageWidth.trim()?"error":void 0,maxLength:10})})]}),(0,o.jsxs)(j,{className:"small-fild",children:[(0,o.jsx)(f,{children:"*Comprimento"}),(0,o.jsx)(g,{children:(0,o.jsx)(l.I,{placeholder:"cm",inputMode:"numeric",value:s.packageLength,onChange:e=>P(e,"packageLength","Comprimento"),helperText:p.packageLength,feedback:""!==p.packageLength.trim()?"error":void 0,maxLength:10})})]}),(0,o.jsxs)(j,{className:"small-fild",children:[(0,o.jsx)(f,{children:"*Peso"}),(0,o.jsx)(g,{children:(0,o.jsx)(l.I,{placeholder:"kg",inputMode:"numeric",value:s.packageWeight,onChange:e=>P(e,"packageWeight","Peso"),helperText:p.packageWeight,feedback:""!==p.packageWeight.trim()?"error":void 0,maxLength:10})})]})]}),(0,o.jsxs)(k,{children:[(0,o.jsxs)(j,{children:[(0,o.jsx)(f,{children:"*Valor Declarado"}),(0,o.jsx)(g,{children:(0,o.jsx)(l.I,{placeholder:"R$ 0,00",inputMode:"numeric",type:"text",value:s.displayValue,onChange:e=>{let t=Number(e.target.value.replace(/\D/g,""))/100,i=F(t);c(e=>({...e,insuranceValue:t,displayValue:i}))}})})]}),(0,o.jsx)(C,{onClick:E,isLoading:i,disabled:W()||i,children:"Simular frete"})]})]})]})}var E=i(25675),M=i.n(E),O=i(66638),R=i(14069),A=i(12863);let D=s.ZP.div.withConfig({displayName:"freights-simulate-table.styles__Card",componentId:"sc-64ba22db-0"})(["background:transparent;"]),V=s.ZP.h3.withConfig({displayName:"freights-simulate-table.styles__Title",componentId:"sc-64ba22db-1"})(["color:inherit;font-size:22px;font-weight:500;line-height:100%;padding-bottom:20px;"]),B=s.ZP.div.withConfig({displayName:"freights-simulate-table.styles__AddressZipCode",componentId:"sc-64ba22db-2"})(["align-items:center;display:flex;gap:10px;justify-content:space-between;margin-bottom:40px;","{align-items:flex-start;flex-direction:column;gap:20px;}"],c.Hb.mobile),G=s.ZP.div.withConfig({displayName:"freights-simulate-table.styles__ContainerIcones",componentId:"sc-64ba22db-3"})(["align-items:center;display:flex;gap:1rem;","{justify-content:center;width:100%;}
1"],c.Hb.mobile),$=s.ZP.table.withConfig({displayName:"freights-simulate-table.styles__Table",componentId:"sc-64ba22db-4"})(["border-collapse:collapse;text-align:left;width:100%;"]),q=s.ZP.thead.withConfig({displayName:"freights-simulate-table.styles__Thead",componentId:"sc-64ba22db-5"})(["border-bottom:1px solid #486199;"]),X=s.ZP.th.withConfig({displayName:"freights-simulate-table.styles__Th",componentId:"sc-64ba22db-6"})(["color:inherit;font-size:18px;font-weight:400;line-height:100%;padding-bottom:15px;"]),J=s.ZP.tbody.withConfig({displayName:"freights-simulate-table.styles__Tbody",componentId:"sc-64ba22db-7"})([""]),K=s.ZP.tr.withConfig({displayName:"freights-simulate-table.styles__Tr",componentId:"sc-64ba22db-8"})(["border-bottom:1px solid #486199;&:hover{background:linear-gradient( 97.36deg,rgba(255,255,255,0.1) 11.49%,rgba(255,255,255,0.02) 119.44% );}"]),Q=s.ZP.td.withConfig({displayName:"freights-simulate-table.styles__Td",componentId:"sc-64ba22db-9"})(["color:inherit;font-size:1rem;font-weight:400;line-height:18px;padding:1rem 0;"]),U=s.ZP.div.withConfig({displayName:"freights-simulate-table.styles__FreightInfo",componentId:"sc-64ba22db-10"})(["align-items:center;display:flex;gap:0.5rem;"]),Y=s.ZP.img.withConfig({displayName:"freights-simulate-table.styles__IconOlistTable",componentId:"sc-64ba22db-11"})(["height:1.3125rem;width:1.3125rem;"]),ee=s.ZP.div.withConfig({displayName:"freights-simulate-table.styles__ContainerIconTruckTable",componentId:"sc-64ba22db-12"})(["align-items:center;color:inherit;display:flex;font-size:1rem;font-weight:300;gap:0.5rem;justify-content:center;line-height:100%;"]),et=s.ZP.div.withConfig({displayName:"freights-simulate-table.styles__ContainerIconMapTable",componentId:"sc-64ba22db-13"})(["align-items:center;color:inherit;display:flex;font-size:1rem;font-weight:300;gap:0.5rem;justify-content:center;line-height:100%;"]),ei=s.ZP.img.withConfig({displayName:"freights-simulate-table.styles__DashedArrow",componentId:"sc-64ba22db-14"})(["width:4.5rem;"]),eo=(0,s.ZP)(d.Z).withConfig({displayName:"freights-simulate-table.styles__NewSimulationButton",componentId:"sc-64ba22db-15"})(["&,&:hover{background-color:transparent;border:none;border-radius:0;box-shadow:none;color:inherit;font-size:16px;font-weight:500;line-height:17px;padding:0;text-align:center;text-decoration:underline;width:auto;}"]);function el(e){let{cepRecipient:t,cepSender:i,color:l,freights:n,onHandleNewSimulate:r}=e;return(0,o.jsxs)(D,{children:[(0,o.jsx)(V,{children:"Simula\xe7\xe3o de frete"}),(0,o.jsxs)(B,{children:[(0,o.jsxs)(G,{children:[(0,o.jsxs)(ee,{children:[(0,o.jsx)(O.Z,{color:l}),(0,a.hR)(i)]}),(0,o.jsx)(ei,{src:A.Gj.src,alt:"Icone linha"}),(0,o.jsxs)(et,{children:[(0,o.jsx)(R.Z,{color:l}),(0,a.hR)(t)]})]}),(0,o.jsx)(eo,{onClick:r,children:"Nova simula\xe7\xe3o"})]}),(0,o.jsxs)($,{children:[(0,o.jsx)(q,{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)(X,{children:"Forma de frete"}),(0,o.jsx)(X,{children:"Pre\xe7o"}),(0,o.jsx)(X,{children:"Prazo"})]})}),(0,o.jsx)(J,{children:n.map((e,t)=>{let i="Correios"===e.carrier_name?e.shipping_method:"",l=e.delivery_time>1?" dias":" dia";return(0,o.jsxs)(K,{children:[(0,o.jsx)(Q,{children:(0,o.jsxs)(U,{children:[(0,o.jsx)(Y,{src:A.ee.src,title:"Icone olist Tabela"}),(0,o.jsxs)("div",{children:[(0,o.jsx)("b",{children:e.carrier_name}),(0,o.jsxs)("b",{children:[" ".concat(i)," "]}),(0,o.jsx)("span",{style:{fontSize:"1rem"},children:"via Olist"})]})]})}),(0,o.jsx)(Q,{children:F(e.total_cost)}),(0,o.jsxs)(Q,{children:[e.delivery_time,l]})]},t)})})]})]})}function en(e){var t,i,l,a,d,s,c,p,h,g,x,b,v,f,y,_,w,j;let{shippingCalculator:k}=e,{postFreightSimulate:C}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,t=(0,n.useRef)(!1),i=(0,n.useRef)(0);return{postFreightSimulate:async function(o){var l,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Date.now();if(!t.current&&!(a-i.current<e)){t.current=!0;try{let e=await fetch("https://envios-api.olist.com/v1/freights/simulate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error((null==t?void 0:t.message)||"Erro na simula\xe7\xe3o de frete")}let t=await e.json();i.current=a,null===(l=r.onSuccess)||void 0===l||l.call(r,t)}catch(e){null===(n=r.onError)||void 0===n||n.call(r,e.message||"Erro inesperado")}finally{t.current=!1}}}}}
1(),[N,T]=(0,n.useState)(!1),[H,z]=(0,n.useState)([]),[P,S]=(0,n.useState)(!1),[Z,L]=(0,n.useState)(""),[F,E]=(0,n.useState)(""),O=e=>{localStorage.setItem("freightForm",JSON.stringify(e))},R=async e=>{let t={zipCodeFrom:e.from.postal_code.toString(),zipCodeTo:e.to.postal_code.toString(),packageHeight:e.volumes[0].height.toString(),packageWidth:e.volumes[0].width.toString(),packageLength:e.volumes[0].length.toString(),packageWeight:e.volumes[0].weight.toString(),insuranceValue:e.volumes[0].declared_value.toString()};T(!0),await C(e,{onSuccess:i=>{let o=null==i?void 0:i.quotes;if(!Array.isArray(o)){r.Am.warning("N\xe3o encontramos cota\xe7\xf5es para esses par\xe2metros"),S(!1),T(!1);return}O(t),L(e.to.postal_code.toString()),E(e.from.postal_code.toString()),z(o.sort((e,t)=>e.total_cost-t.total_cost)),S(!0),T(!1)},onError:e=>{S(!1),r.Am.error("Erro ao realizar simula\xe7\xe3o!"),T(!1)}})};return(0,o.jsxs)(u,{bgcolor:null==k?void 0:k.bg_color,textcolor:null==k?void 0:k.text_color,children:[(0,o.jsxs)("div",{className:"container-header-shipping",children:[(0,o.jsxs)("div",{children:[(null==k?void 0:k.tag)&&(0,o.jsxs)(I,{bordercolor:null==k?void 0:k.bg_border_tag,children:[(null==k?void 0:null===(i=k.tag)||void 0===i?void 0:null===(t=i.icon)||void 0===t?void 0:t.data)&&(0,o.jsx)(M(),{src:null==k?void 0:null===(s=k.tag)||void 0===s?void 0:null===(d=s.icon)||void 0===d?void 0:null===(a=d.data)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:l.url,alt:(null==k?void 0:null===(g=k.tag)||void 0===g?void 0:null===(h=g.icon)||void 0===h?void 0:null===(p=h.data)||void 0===p?void 0:null===(c=p.attributes)||void 0===c?void 0:c.alternativeText)||"\xcdcone",width:20,height:20,loading:"lazy",style:{objectFit:"contain"}}),(0,o.jsx)("div",{className:"text-tag",dangerouslySetInnerHTML:{__html:null==k?void 0:null===(x=k.tag)||void 0===x?void 0:x.text}})]}),(null==k?void 0:k.title)&&(0,o.jsx)("div",{className:"title-shipping-calculator",dangerouslySetInnerHTML:{__html:null==k?void 0:k.title}})]}),(null==k?void 0:null===(b=k.image_box)||void 0===b?void 0:b.data)&&(0,o.jsx)(M(),{className:"image-box",src:null==k?void 0:null===(y=k.image_box)||void 0===y?void 0:null===(f=y.data)||void 0===f?void 0:null===(v=f.attributes)||void 0===v?void 0:v.url,alt:(null==k?void 0:null===(j=k.image_box)||void 0===j?void 0:null===(w=j.data)||void 0===w?void 0:null===(_=w.attributes)||void 0===_?void 0:_.alternativeText)||"\xeclustra\xe7\xe3o caixa",width:260,height:208,loading:"lazy"})]}),(0,o.jsx)(m,{className:(null==k?void 0:k.title)?"":"title-none",children:P?(0,o.jsx)(el,{freights:H,onHandleNewSimulate:()=>{L(""),E(""),z([]),T(!1),S(!1)},cepRecipient:Z,cepSender:F,color:null==k?void 0:k.text_color}):(0,o.jsx)(W,{onHandleSubmit:R,isLoading:N,colorInput:null==k?void 0:k.text_color})}),(0,o.jsx)(r.Ix,{})]})}},48389:function(e,t,i){var o,l;i.d(t,{c:function(){return o}}),(l=o||(o={})).TOP_LEFT="top_left",l.TOP_RIGHT="top_right",l.TOP_ALL="top_all",l.BOTTOM_LEFT="bottom_left",l.BOTTOM_RIGHT="bottom_right",l.BOTTOM_ALL="bottom_all",l.ALL="all"}}]);
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.