1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(58176)}])},84399:function(e,t,r){"use strict";r.d(t,{I:function(){return s}});var n=r(85893),i=r(67294),o=r(50135);let s=(0,i.forwardRef)((e,t)=>{let{...r}=e;return(0,n.jsx)(o.Z,{ref:t,...r})})},55244:function(e,t,r){"use strict";r.d(t,{f:function(){return VirtualizedAutocomplete_VirtualizedAutocomplete}});var n=r(85893),i=r(67294),o=r(87536),s=r(68253),a=r(80482),l=r(16078),d=r(90948);let c=(0,d.ZP)(l.Z)({["& .".concat(a.Z.listbox)]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}});var u=r(1314),m=r(98396),h=r(15861),x=r(75438),p=r(34386),g=r(2734);let _=i.createContext({}),OuterElementProvider=e=>{let{children:t,other:r}=e;return(0,n.jsx)(_.Provider,{value:r,children:t})},f=i.forwardRef((e,t)=>{let r=i.useContext(_);return(0,n.jsx)("div",{ref:t,...e,...r})}),T=(0,i.createContext)({}),AutocompleteProvider=e=>{let{children:t,labelProperty:r,tooltip:i=null}=e;return(0,n.jsx)(T.Provider,{value:{labelProperty:r,tooltip:i},children:t})},useAutocompleteContext=()=>{let e=(0,i.useContext)(T);return e},useVirtualizedResetCache=e=>{let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{null!=t.current&&t.current.resetAfterIndex(0,!0)},[e]),t},renderRow=(e,t,r)=>{let{data:i,index:o,style:s}=e,a=i[o],l={...s,top:s.top+8};return a.hasOwnProperty("group")?(0,n.jsx)(x.Z,{component:"div",style:l,children:a.group},a.key):(null==r?void 0:r.enabled)?(0,n.jsx)(p.Z,{title:a[1][r.propertyName],children:(0,n.jsx)(h.Z,{component:"li",...a[0],noWrap:!0,style:l,children:a[1][t]})},a[0].key):t&&a[1]?(0,n.jsx)(h.Z,{component:"li",...a[0],noWrap:!0,style:l,children:a[1][t]}):(0,n.jsx)(h.Z,{component:"li",...a[0],noWrap:!0,style:l,children:a[1]})},C=(0,i.forwardRef)(function(e,t){let{children:r,...i}=e,o=[],{labelProperty:s,tooltip:a}=useAutocompleteContext();r.forEach(e=>{o.push(e),o.push(...e.children||[])});let l=(0,g.Z)(),d=(0,m.Z)(l.breakpoints.up("sm"),{noSsr:!0}),c=o.length,h=d?36:48,getChildSize=e=>e.hasOwnProperty("group")?48:h,x=useVirtualizedResetCache(c);return(0,n.jsx)("div",{ref:t,children:(0,n.jsx)(OuterElementProvider,{other:i,children:(0,n.jsx)(u.S_,{itemData:o,height:(c>8?8*h:o.map(getChildSize).reduce((e,t)=>e+t,0))+16,width:"100%",ref:x,outerElementType:f,innerElementType:"ul",itemSize:e=>getChildSize(o[e]),overscanCount:5,itemCount:c,children:e=>renderRow(e,s,a)})})})}),VirtualizedAutocomplete=e=>{let{labelProperty:t,tooltip:r,...i}=e;return(0,n.jsx)(AutocompleteProvider,{labelProperty:t,tooltip:r,children:(0,n.jsx)(s.Z,{disableListWrap:!0,PopperComponent:c,ListboxComponent:C,renderOption:(e,t,r)=>[e,t,r],getOptionLabel:e=>"string"==typeof e?e:e[t],...i})})},VirtualizedAutocomplete_VirtualizedAutocomplete=e=>{let{name:t,control:r,options:i,formatOutput:s,customOnChange:a,...l}=e;return(0,n.jsx)(o.Qr,{name:t,control:r,render:e=>{let{field:t}=e;return(0,n.jsx)(VirtualizedAutocomplete,{value:t.value,onChange:(e,r)=>{if(a){a(r);return}s?t.onChange(s(r)):t.onChange(r)},options:i,...l})}})}},84430:function(e,t,r){"use strict";r.d(t,{d:function(){return ImageWithFloatText}});var n=r(85893),i=r(31536),o=r(25675),s=r.n(o),a=r(87357),l=r(63683),d=r(41664),c=r.n(d),u=r(66242),m=r(15861),h=r(11057);let ImageWithFloatText=e=>{let{children:t,direction:r="row"}=e;return(0,n.jsx)(i.Z,{sx:{width:"100%",alignItems:"center",flexDirection:{xs:"column",md:r},backgroundImage:{xs:"linear-gradient(to bottom, #CCC, #f4f6f8)",md:"linear-gradient(".concat("row"===r?"to right":"to left",", #CCC, #f4f6f8)")}},children:t})};ImageWithFloatText.Image=e=>{let{src:t,alt:r,sx:i,fill:o=!1}=e;return(0,n.jsx)(a.Z,{sx:{width:{xs:"100%",md:"65%"},aspectRatio:1920/1080,overflow:"hidden",...i},children:(0,n.jsx)(s(),{fill:o,src:(0,l.W)(t.src),width:o?void 0:t.width,height:o?void 0:t.height,alt:r,style:{width:"100%",height:"100%",objectFit:"contain"}})})},ImageWithFloatText.Card=e=>{let{title:t,text:r,href:i,buttonTitle:o,preTitle:s,direction:l="row"}=e;return(0,n.jsx)(a.Z,{sx:{px:{xs:3,md:0}},children:(0,n.jsxs)(u.Z,{sx:{display:"flex",maxWidth:{xs:"unset",md:"400px",lg:"500px"},height:"fit-content",flexDirection:"column",p:{xs:3,md:3,lg:5},gap:{xs:2,md:2,lg:3},transform:{xs:"translate(0, -5%)",md:"translate(".concat("row"===l?"-10%":"10%",", 0)")},border:"1px solid #CCC",borderRadius:"23px"},children:[!!s&&(0,n.jsx)(m.Z,{color:"textSecondary",sx:{fontSize:".8rem",fontWeight:"bold"},children:s}),(0,n.jsx)(m.Z,{fontWeight:"bold",sx:{fontSize:{xs:"1.4rem",md:"1.6rem",lg:"2rem"}},children:t}),(0,n.jsx)(m.Z,{children:r}),i.includes("https")?(0,n.jsx)(h.Z,{component:c(),color:"success",variant:"contained",rel:"noopener noreferrer",target:"_blank",href:i,sx:{width:"fit-content"},children:o}):(0,n.jsx)(h.Z,{component:c(),color:"success",variant:"contained",href:i,sx:{width:"fit-content"},children:o})]})})}},58176:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return F},default:function(){return pages}});var n=r(85893),i=r(67294),o=r(9008),s=r.n(o),a=r(87082);r(92261);var l=r(22546),d=r(22544),c=r(87357),u=r(2734),m=r(25675),h=r.n(m),x=r(31536),p=r(41664),g=r.n(p),_=r(15861),f=r(11057);let Content=e=>{let{data:t}=e;return(0,n.jsxs)(x.Z,{sx:{flexDirection:{xs:"column",md:"row"},color:"white",textAlign:"left",gap:3},children:[(0,n.jsx)(c.Z,{sx:{width:{xs:"100%",md:"70%"}},children:(0,n.jsx)(_.Z,{component:"h1",variant:"h3",fontWeight:"bold",sx:{fontSize:{xs:"1.9rem",md:"2.125rem",lg:"3.5rem"}},children:t.title})}),(0,n.jsxs)(x.Z,{sx:{gap:2},children:[(0,n.jsx)(_.Z,{fontWeight:"bold",sx:{fontSize:{md:".7rem",lg:"1.5rem"}},children:t.subtitle}),(0,n.jsx)(_.Z,{sx:{fontSize:{xs:".9rem",lg:"1.7rem"}},children:t.text}),(0,n.jsx)(f.Z,{component:g(),variant:"contained",color:"warning",href:t.href,sx:{fontWeight:"bold",width:200},children:t.buttonTitle})]})]})},CarouselItem=e=>{let{data:t}=e;return(0,n.jsxs)(c.Z,{sx:{width:"100%",height:"100%",overflow:"hidden",position:"relative"},children:[(0,n.jsx)(h(),{src:t.image,width:1440,height:450,alt:"Carousel Image",style:{width:"100%",objectFit:"cover",maxHeight:450,borderBottomLeftRadius:50,borderBottomRightRadius:50}}),(0,n.jsx)(x.Z,{sx:{gap:2,width:"100%",maxWidth:1440,mx:"auto",backgroundColor:"transparent",position:"relative",bottom:0,overflow:"visible",zIndex:1,pt:3,px:{xs:4,md:20},boxSizing:"border-box"},children:(0,n.jsx)(Content,{data:t})})]})};var T=r(49990),C=r(21023),E=r(93619);let NavigationButtons=e=>{let{slides:t,activeIndex:r,onNavigateNext:i,onNavigatePrev:o,onNavigateTo:s}=e;return(0,n.jsxs)(x.Z,{sx:{width:"100%",maxWidth:1440,flexDirection:"row",px:{xs:4,md:20},py:3,mx:"auto",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)(T.Z,{"aria-label":"previous slide",onClick:o,disabled:0===r,sx:{padding:1,borderRadius:"50%","&:disabled":{opacity:.3}},children:(0,n.jsx)(C.Z,{htmlColor:"white"})}),(0,n.jsx)(x.Z,{sx:{flexDirection:"row",gap:1,alignItems:"center",justifyContent:"center"},children:t.map((e,t)=>(0,n.jsx)(T.Z,{className:r===t?"pagination-bullet-active":null,"aria-label":"bullet slider navigation ".concat(t+1),sx:{width:"8px",height:"8px",opacity:.3,borderRadius:"50%",backgroundColor:"white","&.pagination-bullet-active":{width:"12px",height:"12px",opacity:1}},onClick:()=>s(t)},t))}),(0,n.jsx)(T.Z,{"aria-label":"previous slide",onClick:i,disabled:r===t.length-1,sx:{padding:1,borderRadius:"50%","&:disabled":{opacity:.3}},children:(0,n.jsx)(E.Z,{htmlColor:"white"})})]})};var b=r(17931),j=r(13649);let Carousel=e=>{let{itemsByLanguage:t}=e,{language:r}=(0,j.kW)(),o=(0,u.Z)(),s=(0,i.useRef)(),[a,m]=(0,i.useState)(t.pt.items),[h,x]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let updateItemsByLanguage=async()=>
1{if(!b.xP.includes(r)){m(t.en.items);return}m(t[r].items)};updateItemsByLanguage()},[t,r]),(0,n.jsxs)(c.Z,{width:"100%",position:"relative",sx:{backgroundImage:"linear-gradient(#000, ".concat(o.palette.success.main,")")},children:[(0,n.jsx)(l.tq,{onBeforeInit:e=>{s.current=e},onSlideChange:e=>{x(e.activeIndex)},autoplay:{delay:4e3,pauseOnMouseEnter:!0,disableOnInteraction:!1},modules:[d.pt],children:a.map(e=>(0,n.jsx)(l.o5,{children:(0,n.jsx)(CarouselItem,{data:e})},e.title))}),(0,n.jsx)(NavigationButtons,{slides:a,activeIndex:h,onNavigatePrev:()=>{var e;null===(e=s.current)||void 0===e||e.slidePrev()},onNavigateNext:()=>{var e;null===(e=s.current)||void 0===e||e.slideNext()},onNavigateTo:e=>{var t;null===(t=s.current)||void 0===t||t.slideTo(e)}})]})};var w=r(11163),I=r(87536),v=r(86886),A=r(87109),R=r(51201),y=r(59419),S=r(55244),O=r(84399),P=r(99357);let getProductsList=(e,t)=>{let r=t?[...e].filter(e=>e.name.toLowerCase().includes(t.toLowerCase())):[...e];return r.map(e=>({subCategory:e.components[0].sub_category,...e})).sort((e,t)=>-t.subCategory.localeCompare(e.subCategory))},getQueryUrl=e=>{let t="",r="",n=!1;if(!e)return{url:t,query:r,isSearchFound:n};if("string"==typeof e)r=e.trim().toLowerCase(),t="/search?query=".concat(r),r.includes("estaca")&&(t="/shop/rent?product_type=estacas-prancha",n=!0),r.includes("blindage")&&(t="/shop/rent?product_type=blindagens-de-vala",n=!0);else{r=e.name.toLowerCase();let i=e.slug,o=i.includes("venda")?"buy":"rent";t="/shop/".concat(o,"/").concat(i),n=!0}return{url:t,query:r,isSearchFound:n}},SearchBar=e=>{let{products:t}=e,r=(0,w.useRouter)(),{useTranslation:o}=(0,j.kW)(),{t:s}=o("home"),[a,l]=i.useState(getProductsList(t)),d=(0,I.cI)({defaultValues:{query:null}}),handleChangeQuery=e=>{d.setValue("query",e),l(getProductsList(t,e))},submitSearchQuery=async e=>{let{url:t,query:n,isSearchFound:i}=getQueryUrl(e.query);if(t){try{await P.h.post("/v1/products-queries",{user_input:n,search_url_result:t,recommended_url:i?t:""})}catch(e){}r.push(t)}};return(0,n.jsx)(c.Z,{sx:{backgroundColor:"#FFF"},children:(0,n.jsx)(y.$,{sx:{px:3},children:(0,n.jsxs)(v.ZP,{component:"form",container:!0,spacing:1,onSubmit:d.handleSubmit(submitSearchQuery),sx:{width:{xs:"100%",md:"60%"},margin:"0 auto"},children:[(0,n.jsx)(v.ZP,{item:!0,xs:12,md:10,children:(0,n.jsx)(S.f,{id:"query",name:"query",freeSolo:!0,control:d.control,options:a,fullWidth:!0,disabled:d.formState.isSubmitting,labelProperty:"name",selectOnFocus:!0,clearOnBlur:!0,handleHomeEndKeys:!0,onBlur:()=>{submitSearchQuery(d.getValues())},groupBy:e=>e.subCategory,isOptionEqualToValue:(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return!0},renderGroup:e=>e,renderInput:e=>(0,n.jsx)(O.I,{...e,onChange:e=>handleChangeQuery(e.target.value),placeholder:s("SEARCH_BAR_PLACEHOLDER"),variant:"outlined",InputProps:{...e.InputProps,startAdornment:(0,n.jsx)(A.Z,{position:"start",children:(0,n.jsx)(R.Z,{})})},sx:{"&:hover":{"& fieldset.MuiOutlinedInput-notchedOutline":{borderWidth:3}},"& fieldset.MuiOutlinedInput-notchedOutline":{borderWidth:3}}})})}),(0,n.jsx)(v.ZP,{item:!0,xs:12,md:2,children:(0,n.jsx)(f.Z,{variant:"contained",color:"success",type:"submit",sx:{width:{xs:"100%",md:"fit-content"},height:"100%"},children:s("SEARCH_BAR_BUTTON")})})]})})})};var Z=r(45500);let ProductPreview=e=>{let{data:t}=e;return(0,n.jsxs)(x.Z,{width:"100%",height:"100%",gap:1,component:g(),href:t.href,sx:{color:"inherit",textDecoration:"none"},children:[(0,n.jsx)(c.Z,{sx:{width:"100%",aspectRatio:1,position:"relative",backgroundImage:"linear-gradient(to bottom, #e5e5e5, #f9f9f9)",borderRadius:1.5},children:(0,n.jsx)(h(),{fill:!0,style:{objectFit:"contain"},sizes:"200px",src:t.image,alt:t.title})}),(0,n.jsx)(_.Z,{component:"strong",sx:{fontSize:"1.1rem",fontWeight:"bold"},children:t.title}),(0,n.jsx)(_.Z,{sx:{fontSize:{xs:".7rem",md:".9rem"},mb:1},children:t.description}),(0,n.jsx)(_.Z,{component:"strong",sx:{fontSize:{xs:".9rem",md:"1rem"},mt:"auto",mb:1},children:t.minPrice}),(0,n.jsx)(f.Z,{variant:"contained",color:"success",startIcon:(0,n.jsx)(Z.Z,{}),children:t.buttonTitle})]})},L=[{title:"CATEGORIES_HEADER_01",products:[{productId:"63d4308d06b24c239b5ebc63",title:"CATEGORY_01_TITLE",description:"CATEGORY_01_DESCRIPTION",buttonTitle:"CATEGORY_01_CTA",minPrice:"CATEGORY_01_MIN_PRICE",image:"https://escoramento-files.s3.amazonaws.com/PRODUCT_IMAGES/10835914_U750_4M.png",href:"/shop/rent/?product_type=estacas-prancha"},{productId:"63d4329d06b24c239b5ebc66",title:"CATEGORY_02_TITLE",description:"CATEGORY_02_DESCRIPTION",buttonTitle:"CATEGORY_02_CTA",minPrice:"CATEGORY_02_MIN_PRICE",image:"https://escoramento-files.s3.amazonaws.com/PRODUCT_IMAGES/10835914_U750_4M.png",href:"/shop/rent/?product_type=estacas-prancha"},{productId:"63d2bdad39e83d4321a6d36b",title:"CATEGORY_03_TITLE",description:"CATEGORY_03_DESCRIPTION",buttonTitle:"CATEGORY_03_CTA",minPrice:"CATEGORY_03_MIN_PRICE",image:"https://escoramento-files.s3.amazonaws.com/PRODUCT_IMAGES/10835914_U750_4M.png",href:"/shop/rent/?product_type=estacas-prancha"}]},{title:"CATEGORIES_HEADER_02",products:[{productId:"63d4338f06b24c239b5ebc68",title:"CATEGORY_04_TITLE",description:"CATEGORY_04_DESCRIPTION",buttonTitle:"CATEGORY_04_CTA",minPrice:"CATEGORY_04_MIN_PRICE",image:"https://escoramento-files.s3.amazonaws.com/CMS2/11823248_Blindagem%20Leve.png",href:"/shop/rent/?product_type=blindagens-de-vala"}
1,{productId:"63d2bb5d39e83d4321a6d36a",title:"CATEGORY_05_TITLE",description:"CATEGORY_05_DESCRIPTION",buttonTitle:"CATEGORY_05_CTA",minPrice:"CATEGORY_05_MIN_PRICE",image:"https://escoramento-files.s3.amazonaws.com/CMS2/2606765_Blindagem-Solo_1.5m.png",href:"/shop/rent/?product_type=blindagens-de-vala"},{productId:"63e4e68ffe257c275ac25a5e",title:"CATEGORY_06_TITLE",description:"CATEGORY_06_DESCRIPTION",buttonTitle:"CATEGORY_06_CTA",minPrice:"CATEGORY_06_MIN_PRICE",image:"https://escoramento-files.s3.amazonaws.com/PRODUCT_IMAGES/8351107_2Ext_02_1.0_300px.png",href:"/shop/rent/?product_type=blindagens-de-vala"}]}],TopCategories=e=>{let{products:t}=e,{useTranslation:r}=(0,j.kW)(),{t:i}=r("home");return(0,n.jsx)(c.Z,{sx:{backgroundColor:"#FFF"},children:(0,n.jsxs)(y.$,{sx:{px:3},children:[(0,n.jsx)(y.$.Title,{variant:"h2",sx:{mb:1},children:i("CATEGORIES_HEADER")}),(0,n.jsx)(_.Z,{component:"h3",sx:{fontSize:"1.2rem",mb:2},children:i("CATEGORIES_HEADER_DESCRIPTION")}),(0,n.jsx)(x.Z,{gap:5,children:L.map(e=>(0,n.jsxs)(x.Z,{gap:2,mt:2,children:[(0,n.jsx)(_.Z,{component:"h4",sx:{fontWeight:"bold",fontSize:{xs:"1.5rem",md:"1.8rem"}},children:i(e.title)}),(0,n.jsx)(v.ZP,{container:!0,spacing:[3,3,6,10],children:e.products.map(e=>{let r=t.find(t=>t.id===e.productId),o=r?r.rent_value_formatted:i(e.minPrice);return(0,n.jsx)(v.ZP,{item:!0,xs:6,md:4,sx:{transition:".2s","&:hover":{transform:"translateY(-2%)"}},children:(0,n.jsx)(ProductPreview,{data:{title:i(e.title),description:i(e.description),buttonTitle:i(e.buttonTitle),minPrice:"".concat(i("CATEGORIES_GENERAL_PRICE_FROM")," ").concat(o," ").concat(i("CATEGORIES_GENERAL_PRICE_UNIT")),image:e.image,href:e.href}})},e.title)})})]},e.title))})]})})};var G=r(84430),N=r(63683);let Card=e=>{let{data:t}=e;return(0,n.jsx)(c.Z,{sx:{width:"100%",maxWidth:1440},children:(0,n.jsxs)(x.Z,{sx:{width:"100%",border:"1px solid #CCC",borderRadius:4,gap:3,flexDirection:{xs:"column",md:t.direction},overflow:"hidden"},children:[(0,n.jsxs)(x.Z,{flexDirection:"column",gap:2,pl:3,py:2,sx:{width:{xs:"100%",md:"60%"}},children:[(0,n.jsx)(_.Z,{color:"textSecondary",sx:{fontSize:".8rem",fontWeight:"bold"},children:t.preTitle}),(0,n.jsx)(_.Z,{fontWeight:"bold",sx:{fontSize:{xs:"1.4rem",md:"1.6rem",lg:"2rem"}},children:t.title}),(0,n.jsx)(_.Z,{children:t.text}),(0,n.jsx)(f.Z,{variant:"contained",color:"success",sx:{width:"fit-content"},href:t.href,target:"_blank",rel:"noreferrer noopener",children:t.buttonTitle})]}),(0,n.jsx)(c.Z,{sx:{width:{xs:"100%",md:"40%"},overflow:"hidden",transform:{xs:"translate(0%, 7%)",md:"translate(0%, 0%)"},"& img":{objectFit:"cover"}},children:(0,n.jsx)(h(),{src:(0,N.W)(t.image.src),alt:t.altTextImage,width:t.image.width,height:t.image.height,style:{width:"100%",height:"100%"}})})]})})};var D=r(8653);let W=[{header:"TECH_MATERIAL",title:"TECH_MATERIAL_TITLE",text:"TECH_MATERIAL_TEXT",buttonTitle:"TECH_MATERIAL_CTA",href:"/catalogs",image:(0,D.K)("https://escoramento-files.s3.eu-central-1.amazonaws.com/website/assets/images/tech-material___1920_1080.jpg"),direction:"row",altTextImage:"Tech Material"},{header:"BLOG",preTitle:"BLOG_PRE_TITLE",title:"BLOG_TITLE",text:"BLOG_TEXT",buttonTitle:"BLOG_CTA",href:"https://blog.escoramento.com/",image:(0,D.K)("https://escoramento-files.s3.eu-central-1.amazonaws.com/website/assets/images/blog___1000_558.jpg"),direction:"row",altTextImage:"Blog"},{header:"SCHEDULE",title:"SCHEDULE_TITLE",text:"SCHEDULE_TEXT",buttonTitle:"SCHEDULE_CTA",href:"/app?tab=contracts",noAuthHref:"/schedule",image:(0,D.K)("https://escoramento-files.s3.eu-central-1.amazonaws.com/website/assets/images/scheduling___1920_1080.jpg"),direction:"row-reverse",altTextImage:"App Escoramento"},{header:"APPLY_FOR_CREDIT",title:"APPLY_FOR_CREDIT_TITLE",text:"APPLY_FOR_CREDIT_TEXT",buttonTitle:"APPLY_FOR_CREDIT_CTA",href:"/app?tab=credit-analysis",image:(0,D.K)("https://escoramento-files.s3.eu-central-1.amazonaws.com/website/assets/images/register___1920_1080.jpg"),direction:"row",altTextImage:"Credit Analysis"}];var z=r(10834);let Cards=()=>{let{useTranslation:e}=(0,j.kW)(),{t}=e("home"),{user:r}=(0,z.a)();return(0,n.jsx)(y.$,{children:W.map((e,i)=>1===i?(0,n.jsxs)(c.Z,{sx:{px:{xs:2,md:3},my:10},children:[(0,n.jsx)(y.$.Title,{variant:"h2",sx:{mb:1},children:t(e.header)}),(0,n.jsx)(Card,{data:{preTitle:t(e.preTitle),title:t(e.title),text:t(e.text),buttonTitle:t(e.buttonTitle),href:e.href,image:e.image,direction:e.direction,altTextImage:e.altTextImage}})]},e.title):(0,n.jsxs)("div",{style:{width:"100%"},children:[(0,n.jsx)(y.$.Title,{variant:"h2",sx:{pl:{xs:2,md:3},mt:0===i?0:10,mb:1},children:t(e.header)}),(0,n.jsxs)(G.d,{direction:e.direction,children:[(0,n.jsx)(G.d.Image,{src:e.image,alt:e.altTextImage}),(0,n.jsx)(G.d.Card,{title:t(e.title),text:t(e.text),buttonTitle:t(e.buttonTitle),href:e.noAuthHref&&!r?e.noAuthHref:e.href,direction:e.direction})]})]},e.title))})},HomeView=e=>{let{data:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Carousel,{itemsByLanguage:t.carouselItemsByLanguage}),(0,n.jsx)(SearchBar,{products:t.products}),(0,n.jsx)(TopCategories,{products:t.products}),(0,n.jsx)(Cards,{})]})};var k=r(93946),M=r(50594);let Y=(0,D.K)("https://escoramento-files.s3.eu-central-1.amazonaws.com/website/assets/images/ios-share-button___74_86.png"),PwaIOSModal=()=>{let{useTranslation:e}=(0,j.kW)(),{t}=e("common"),[r,o]=(0,i.useState)(!1),isIos=()=>{let e=window.navigator.userAgent.toLowerCase();return/iphone|ipad|ipod/.test(e)},isInStandaloneMode=()=>{var e;return"standalone"in window.navigator&&(null===(e=window.navigator)||void 0===e?void 0:e.standalone)};return(0,i.useEffect)(()=>
1{isIos()&&!isInStandaloneMode()&&o(!0)},[]),(0,n.jsxs)(c.Z,{sx:{display:r?"block":"none",width:"310px",bottom:"50px",right:"calc(50% - 155px)",position:"fixed",margin:"auto",backgroundColor:"#49eb95",borderRadius:"10px",padding:"10px 20px 20px 20px",zIndex:2e3,fontFamily:"Helvetica"},children:[(0,n.jsx)(c.Z,{sx:{width:"100%",display:"flex",justifyContent:"flex-end"},children:(0,n.jsx)(k.Z,{onClick:()=>o(!1),children:(0,n.jsx)(M.Z,{})})}),(0,n.jsx)(c.Z,{children:(0,n.jsxs)("p",{children:[t("PWA_IOS_MODAL_TEXT_1"),(0,n.jsx)(h(),{src:(0,N.W)(Y.src),width:Y.width,height:Y.height,alt:"iOS Share button",style:{width:20,height:20,margin:"0px 5px",transform:"translateY(15%)"}}),t("PWA_IOS_MODAL_TEXT_2")]})})]})},checkForIOS=()=>{if(navigator.standalone)return null;let e=new Date,t=new Date(localStorage.getItem("install-prompt")),r=Math.abs(e.getTime()-t.getTime()),n=Math.ceil(r/864e5),i=window.navigator.userAgent,o=!!i.match(/WebKit/i),s=!!i.match(/iPad/i),a=!!i.match(/iPhone/i),l=s||a,d=l&&o&&!i.match(/CriOS/i),c=(Number.isNaN(n)||n>5)&&l&&d;return c&&"localStorage"in window&&localStorage.setItem("install-prompt",e.toString()),{isIOS:l,isSafari:d,prompt:c}},useIsIOS=()=>{let[e,t]=(0,i.useState)(null);return(0,i.useEffect)(()=>(t(checkForIOS()),()=>console.log("CLEANUP INSTALL PROMPT")),[]),e},TranslationWrapper=e=>{let{data:t}=e,{useTranslation:r}=(0,j.kW)(),{t:o}=r("home"),l=useIsIOS();return(0,i.useEffect)(()=>{if("serviceWorker"in navigator&&void 0!==window.workbox){let e=window.workbox;e.addEventListener("installed",e=>{console.log("Event ".concat(e.type," is triggered.")),console.log(e)}),e.addEventListener("controlling",e=>{console.log("Event ".concat(e.type," is triggered.")),console.log(e)}),e.addEventListener("activated",e=>{console.log("Event ".concat(e.type," is triggered.")),console.log(e)}),e.addEventListener("waiting",t=>{confirm("A newer version of this web app is available, reload to update?")?(e.addEventListener("controlling",e=>{window.location.reload()}),e.messageSkipWaiting()):console.log("User rejected to reload the web app, keep using old version. New version will be automatically load when user open the app next time.")}),e.register()}},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s(),{children:[(0,n.jsx)("title",{children:o("PAGE_TITLE")}),(0,n.jsx)("meta",{name:"description",content:o("PAGE_DESCRIPTION")},"description"),(0,n.jsx)("meta",{name:"keywords",content:o("PAGE_KEYWORDS")},"keywords"),(0,n.jsx)("meta",{name:"next-head-count",content:"4"}),(0,n.jsx)("meta",{name:"reply-to",content:"Escoramento.com <[email protected]>"}),(0,n.jsx)("meta",{name:"robots",content:"index,follow"}),(0,n.jsx)("meta",{name:"googlebot",content:"index,follow"}),(0,n.jsx)("meta",{property:"og:title",content:o("PAGE_TITLE")}),(0,n.jsx)("meta",{property:"og:description",content:o("PAGE_OG_DESCRIPTION")}),(0,n.jsx)("meta",{property:"og:site_name",content:"Escoramento.com"}),(0,n.jsx)("meta",{property:"og:image",content:"/escoramento-cover.png"}),(0,n.jsx)("meta",{property:"og:image:type",content:"image/png"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:url",content:"https://escoramento.com/"}),(0,n.jsx)("meta",{name:"twitter:title",content:o("PAGE_TITLE")}),(0,n.jsx)("meta",{name:"twitter:description",content:o("PAGE_DESCRIPTION")})]}),(0,n.jsxs)(a.A,{children:[(null==l?void 0:l.prompt)&&(0,n.jsx)(PwaIOSModal,{}),(0,n.jsx)(HomeView,{data:t})]})]})};var F=!0,pages=e=>{let{data:t,translations:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(j.$j,{data:r,children:(0,n.jsx)(TranslationWrapper,{data:t,translations:r})})})}}},function(e){e.O(0,[3365,8335,3246,9679,7282,6886,7536,1314,9308,9268,8320,9774,2888,179],function(){return e(e.s=48312)}),_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.