PageSourceSearch

https://ondereciclar.pt/_next/static/chunks/356-b002f6d2309f20eb3179.js

js ondereciclar.pt collected 2026-10-02 05:50:48 UTC 58,309 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[356],{2361:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(6459),i=(n(7294),n(5893));function r(e){return(0,o.Z)(e),(0,i.jsx)("div",{children:"Loading"})}},4465:function(e,t,n){n.d(t,{Z:function(){return p}});var o=n(4942),i=n(4649),r=(n(7294),n(9163)),a=n(9501),s=n(9254),c=n(3621),l=n(5893);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){var t=e.id,n=e.inputs,r=e.validations,p=e.initialValues,x=e.onSubmit,m=e.submitText,h=e.requiredFieldsText;return n?(0,l.jsx)(i.J9,{initialValues:p,validationSchema:a.Ry().shape(r),onSubmit:function(e,n){var i=n.setSubmitting,r=n.resetForm;setTimeout((function(){x(t,e),r(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},p)),i(!1)}),400)},children:function(e){var t=e.values,o=e.errors,r=e.touched,a=e.handleChange,d=e.handleBlur,p=e.handleSubmit,x=e.isSubmitting,g=e.setFieldValue;return(0,l.jsx)(i.l0,{onSubmit:p,autoComplete:"off",children:n&&n.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:n.map((function(e,n){return(0,l.jsxs)("div",{className:e.validations&&e.validations.required&&e.validations.required.active&&"textarea"!==e.type?"fieldRequired":"",children:["file"==e.type&&(0,l.jsxs)(u,{htmlFor:e.key,children:[(0,l.jsx)(i.gN,{id:e.key,name:e.key,type:"file",component:void 0,onBlur:d,onChange:a,placeholder:e.placeholder,value:t[e.key],autoComplete:"off"}),(0,l.jsx)(c.Z,{uppercase:!0,as:"p",className:"inter-13",color:s.ZP.colors.c_7C7C7B,children:t[e.key]?"1 file":e.title}),(0,l.jsx)("legend",{children:e.value})]}),"checkbox"==e.type&&(0,l.jsxs)(f,{children:[(0,l.jsx)(i.gN,{name:e.key,type:"checkbox",onBlur:d,autoComplete:"off",checked:t.check,onClick:function(){return g(e.key,!t[e.key])}}),(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}})]}),"file"!==e.type&&"checkbox"!==e.type&&(0,l.jsx)(i.gN,{name:e.key,type:e.type,component:"textarea"==e.type?"textarea":void 0,onBlur:d,onChange:a,placeholder:e.placeholder,value:t[e.key],autoComplete:"off"}),o[e.key]&&r[e.key]&&(0,l.jsx)("span",{children:o[e.key]})]},n)}))}),(0,l.jsxs)("div",{children:[h&&(0,l.jsx)("span",{children:h}),(0,l.jsx)("button",{type:"submit",disabled:x,dangerouslySetInnerHTML:{__html:m||"Submit"}})]})]})})}}):null}var u=r.ZP.label.withConfig({displayName:"form__Label",componentId:"sc-bwkjuy-0"})(['display:block;overflow:hidden;input{opacity:0;position:absolute;}> div{padding-left:5px;margin-bottom:5px;position:relative;&:before{top:0;left:0;width:1px;content:"";height:12px;position:absolute;background-color:',';}}legend{line-height:1.33;font-family:"Inter";font-size:',";color:",";position:relative;}"],s.ZP.colors.c_7C7C7B,s.ZP.text.t_12,s.ZP.colors.c_7C7C7B),f=r.ZP.div.withConfig({displayName:"form__Checkbox",componentId:"sc-bwkjuy-1"})(['display:flex;margin-bottom:15px;align-items:center;justify-content:center;> input[type="checkbox"]{width:auto !important;display:inline-block;}span{color:'," !important;}a{color:"," !important;text-decoration:underline;:hover{color:"," !important;}}"],s.ZP.colors.c_3E4543,s.ZP.colors.c_3E4543,s.ZP.colors.c_000000)},6115:function(e,t,n){n.d(t,{Z:function(){return ye}});var o=n(4942),i=n(5861),r=n(2982),a=n(885),s=n(7757),c=n.n(s),l=n(7294),d=n(9163),p=n(2948),u=n(6261),f=n(2804),x=n(7341),m=n(2638),h=n(9254),g=n(1141),b=n(1383),v=n(3621),y=n(9193),j=n(5893);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){var t=e.activeMarker,n=e.markers,i=e.position,r=e.single,a=e.onClickMarker,s=(0,l.useState)(null),c=s[0],d=s[1],p=(0,l.useState)("roadmap"),u=p[0],f=p[1],x=(0,l.useState)(!1),m=x[0],g=x[1],w={lat:39.557191,lng:-7.8536599},_=(0,b.Ji)({id:"google-map-script",googleMapsApiKey:y.$}).isLoaded,C=(0,l.useCallback)((function(e){var t=new window.google.maps.LatLngBounds;e.fitBounds(t),d(e)}),[]),F=(0,l.useCallback)((function(e){d(null)}),[]),E=(0,l.useState)(7),S=E[0],z=E[1],I=(0,l.useState)(!1),T=I[0],A=I[1];(0,l.useEffect)((function(){c&&(r?setTimeout((function(){c.setZoom(12),c.setCenter({lat:parseFloat(r.latitude),lng:parseFloat(r.longitude)})}),800):i?setTimeout((function(){c.setZoom(15),c.setCenter(i)}),800):setTimeout((function(){c.setCenter(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Z(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},w)),window&&window.innerWidth<420&&c.setZoom(7)}),800))}),[c,i,r]),(0,l.useEffect)((function(){c&&c.setMapTypeId(u)}),[u]),(0,l.useEffect)((function(){if(r&&!m&&n&&n.length){var e=n.find((function(e){return e.slug===r.slug}));a&&a(e),g(!0)}}),[n]);var M=function(e){var t=parseInt(c.getZoom());z(t+e)},D=function(e,t){var n="";return t&&(n="_active"),"".concat("/png/maps/marker","_").concat(e).concat(n,".svg")};return _&&(0,j.jsxs)(P,{hideValues:T,opened:t,children:[(0,j.jsx)(b.b6,{onLoad:C,zoom:S,onUnmount:F,defaultZoom:S,onZoomChanged:function(e){if(c){var n=c.getZoom();n<=7&&!T?A(!0):n>7&&T&&A(!1),r||t||a(null)}},onClick:function(){return a(null)},mapContainerStyle:{width:"100%",height:"100%"},options:{minZoom:6,zoomControl:!1,mapTypeControl:!1,clickableIcons:!1,streetViewControl:!1,gestureHandling:"greedy",styles:[{featureType:"poi",elementType:"labels.icon",stylers:[{visibility:"off"}]}]},children:(0,j.jsx)(j.Fragment,{children:n&&n.length>0&&(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(b.XL,{options:{imagePath:"/png/maps/m",textColor:"transparent",textSize:.001,gridSize:50,minimumClusterSize:5},children:function(e){return n.map((function(n,o){return(0,j.jsx)(b.Jx,{clusterer:e,icon:D(n.type,t&&t.id==n.id),position:{lat:parseFloat(n.latitude),lng:parseFloat(n.longitude)},onClick:function(){t&&t.id==n.id?a(null):a(n)}},o)}))}})})})}),c&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(k,{hide:!!t,children:[(0,j.jsxs)("button",{onClick:function(){return f("satellite")},className:"satellite"==u?"active":"",children:[(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-16",weight:700,color:h.ZP.colors.c_3E4543,children:"Sat\xe9lite"}),(0,j.jsx)("i",{className:"satellite"==u?"fal fa-check-circle":"fal fa-circle"})]}),(0,j.jsxs)("button",{onClick:function(){return f("roadmap")},className:"roadmap"==u?"active":"",children:[(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-16",weight:700,color:h.ZP.colors.c_3E4543,children:"Terreno"}),(0,j.jsx)("i",{className:"roadmap"==u?"fal fa-check-circle":"fal fa-circle"})]})]}),(0,j.jsxs)(O,{hide:!!t,children:[(0,j.jsx)("button",{onClick:function(){return M(1)},children:"+"}),(0,j.jsx)("button",{onClick:function(){return M(-1)},children:"-"})]})]}),!!t&&(0,j.jsx)(N,{})]})}var _=(0,l.memo)(w),P=d.ZP.div.withConfig({displayName:"googleMaps__Outer",componentId:"sc-basw36-0"})(["height:100%;padding-left:0;transition:all 600ms ease;.cluster{div{font-size:","!important;}}",""],(function(e){return e.hideValues?"0":"12px"}),(function(e){return e.opened&&(0,d.iv)(["@media screen and (min-width:1024px){padding-left:400px;}"])})),k=d.ZP.div.withConfig({displayName:"googleMaps__Options",componentId:"sc-basw36-1"})(["position:absolute;bottom:10px;right:10px;display:flex;height:56px;align-items:center;border-radius:20px;background-color:",";box-shadow:rgb(0 0 0 / 30%) 0px 1px 4px -1px;button{margin:0;border:none;display:flex;cursor:pointer;background:none;padding:2px 16px;align-items:center;span{margin-right:16px;display:inline-block;}&:not(.active){opacity:0.5;}&:not(:last-child){border-right:1px solid ",";}}@media screen and (max-width:430px) and (max-height:925px){transition:all 400ms ease-out;bottom:",";}"],h.ZP.colors.c_ffffff,h.ZP.colors.c_E0E1E2,(function(e){return e.hide?"-70px":"10px"})),O=d.ZP.div.withConfig({displayName:"googleMaps__Zoom",componentId:"sc-basw36-2"})(["position:absolute;bottom:80px;right:10px;display:flex;flex-direction:column;width:46px;align-items:center;border-radius:14px;background-color:",";box-shadow:rgb(0 0 0 / 30%) 0px 1px 4px -1px;button{margin:0;border:none;height:46px;display:flex;cursor:pointer;background:none;padding:2px 16px;align-items:center;font-size:20px;span{margin-right:16px;display:inline-block;}&:not(:last-child){border-bottom:1px solid ",";}@media (hover:hover) and (pointer:fine){&:hover{color:",";}}}@media screen and (max-width:430px) and (max-height:925px){transition:all 400ms ease-out;right:",";}"],h.ZP.colors.c_ffffff,h.ZP.colors.c_E0E1E2,h.ZP.colors.c_3E4543,(function(e){return e.hide?"-70px":"10px"})),N=(0,d.vJ)([""]),C=n(5227),F=n(1876),E=n(7913),S=n(6373);function z(e){var t=e.name,n=e.active,o=e.icon,i=e.hasSelected,r=e.alerts,a=e.green,s=e.onClick,c=e.disabled;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(I,{onClick:s,green:a,className:"".concat(n?"active":""," ").concat(i?"unselected":""),disabled:c,
1children:[(0,j.jsxs)("div",{children:[(0,j.jsxs)("div",{className:"name",children:[(0,j.jsx)("span",{children:(0,j.jsx)("i",{className:"fal ".concat(o)})}),(0,j.jsx)("span",{className:"nutmeg-12",children:t})]}),(0,j.jsx)("div",{className:"toggle",children:(0,j.jsx)("span",{})})]}),r&&!!r.length&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{"data-tip":!0,"data-for":t,className:"alert",children:(0,j.jsx)("i",{className:"fal fa-question-circle"})}),(0,j.jsx)(E.Z,{id:t,place:"right",effect:"solid",children:r.map((function(e,t){return(0,j.jsx)("div",{children:(0,j.jsxs)(S.Z,{bottom:"s_16",children:[(0,j.jsx)(v.Z,{className:"nutmeg-16",uppercase:!0,weight:700,lineHeight:1.5,color:h.ZP.colors.c_ffffff,children:e.title}),(0,j.jsx)(v.Z,{editor:!0,weight:300,lineHeight:1.5,className:"work-sans-16",color:h.ZP.colors.c_ffffff,text:e.text})]})},String(t))}))})]})]}),r&&!!r.length&&(0,j.jsx)(T,{className:"".concat(n?"active":""," ").concat(i?"unselected":""),children:(0,j.jsx)(F.UQ,{allowZeroExpanded:!0,children:(0,j.jsxs)(F.Qd,{children:[(0,j.jsx)(F.Ol,{children:(0,j.jsxs)(F.on,{children:[(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-12",uppercase:!0,weight:700,lineHeight:1.5,color:h.ZP.colors.c_3C4643,children:"Alertas"}),(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-12",uppercase:!0,weight:700,lineHeight:1.5,color:h.ZP.colors.c_00000033,children:r.length})]})}),(0,j.jsx)(F.Mt,{children:r.map((function(e,t){return(0,j.jsx)("div",{children:(0,j.jsxs)(S.Z,{bottom:"s_16",children:[(0,j.jsx)(v.Z,{className:"nutmeg-16",uppercase:!0,weight:700,lineHeight:1.5,color:h.ZP.colors.c_3C4643,children:e.title}),(0,j.jsx)(v.Z,{editor:!0,weight:300,lineHeight:1.5,className:"work-sans-16",color:h.ZP.colors.c_3C4643,text:e.text})]})},String(t))}))})]})})})]})}var I=d.ZP.button.withConfig({displayName:"button__Component",componentId:"sc-bcoic8-0"})(["z-index:2;width:100%;border:none;padding:14px;display:block;cursor:pointer;position:relative;margin-bottom:4px;border-radius:28px;transition:all 400ms ease;background:",";:disabled{pointer-events:none;}> div{z-index:1;display:flex;align-items:center;justify-content:space-between;}.name{i{min-width:20px;display:inline-block;margin-right:14px;transition:all 400ms ease;}span{font-weight:700;line-height:16px;vertical-align:middle;transition:all 400ms ease;color:",";}}.toggle{span{margin:0;padding:0;width:22px;height:14px;cursor:pointer;background:none;position:relative;border-radius:7px;display:inline-block;border:2px solid ",';&:after{top:50%;left:2px;width:6px;height:6px;content:"";position:absolute;border-radius:50%;transform:translateY(-50%);transition:all 300ms ease-in-out;background-color:',";}}}.alert{top:50%;left:100%;margin-top:-2px;position:absolute;transition:all 400ms ease;color:",";transform:translateY(-50%) translateX(10px);i{font-weight:500;}&:hover{color:",";}}.__react_component_tooltip.show{z-index:4;opacity:1;display:block;text-align:left;min-width:240px;margin-left:40px;border-radius:24px;padding:",";background-color:",";&:after{left:-10px;margin-top:-10px;border-top-width:10px;border-bottom-width:10px;border-right-width:10px;border-right-color:",";}}&.active{background-color:",";.toggle{span{&:after{left:calc(100% - 8px);}}}","}&.active:not(.unselected){background:","33;> div{i,span{color:",";}}.toggle{span{border-color:",";&:after{background-color:",";}}}}&.unselected:not(.active){background-color:transparent;> div{i,span{font-weight:300;color:",";}}.toggle{span{border-color:",";&:after{background-color:",";}}}}@media screen and (max-width:1023px){.alert{display:none;}}"],h.ZP.colors.c_F1F1F2,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.colors.c_A0A8A8,h.ZP.colors.c_000000,h.ZP.space.s_40,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,(function(e){return e.green?"".concat(h.ZP.colors.c_38B884,"33"):h.ZP.colors.c_F1F1F2}),(function(e){return e.green&&(0,d.iv)(["> div{i,span{color:",";}}.toggle{span{border-color:",";&:after{background-color:",";}}}"],h.ZP.colors.c_38B884,h.ZP.colors.c_38B884,h.ZP.colors.c_38B884)}),h.ZP.colors.c_38B884,h.ZP.colors.c_38B884,h.ZP.colors.c_38B884,h.ZP.colors.c_38B884,h.ZP.colors.c_A0A8A8,h.ZP.colors.c_A0A8A8,h.ZP.colors.c_A0A8A8),T=d.ZP.div.withConfig({displayName:"button__Alerts",componentId:"sc-bcoic8-1"})(["display:block;margin-top:-28px;padding-top:24px;margin-bottom:4px;position:relative;border-radius:0 0 24px 24px;background:",";transition:all 600ms ease;.accordion__item{padding:8px 16px;border-bottom:0;.accordion__heading{cursor:pointer;.accordion__button{padding:0;outline:none;display:flex;align-items:center;justify-content:center;span{font-weight:700;text-transform:uppercase;color:",";&:first-child{padding-left:0;padding-right:10px;}&:last-child{font-weight:400;color:",';}}&[aria-expanded="true"],&[aria-selected="true"]{padding:0;}}}}&.unselected:not(.active){display:none;}@media screen and (min-width:1024px){display:none;}'],h.ZP.colors.c_D0D8D8,h.ZP.colors.c_000000,h.ZP.colors.c_A0A8A8),A=n(345);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?M(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e){var t=e.isOpen,n=e.toggleMenu,o=e.isLoading,i=e.setLoading,s=e.markersLength,c=e.setMarkers,d=e.activeLocalStorage,u=e.isMarkerOpen;p.Z.setApiKey(y.$),p.Z.setLanguage("pt"),p.Z.setRegion("pt");var m=(0,f.FV)(x.rI),h=(0,a.Z)(m,2),g=(h[0],h[1]),b=(0,f.FV)(x.cM),v=(0,a.Z)(b,2),Z=v[0],w=(v[1],(0,f.FV)(x.WQ)),_=(0,a.Z)(w,2),P=_[0],k=_[1],O=(0,f.FV)(x.Hd),N=(0,a.Z)(O,2),E=N[0],S=N[1],I=(0,f.FV)(x.l3),T=(0,a.Z)(I,2),M=T[0],L=T[1],R=(0,f.FV)(x.O9),Y=(0,a.Z)(R,2),J=Y[0],Q=Y[1],X=(0,f.FV)(x.DV),K=(0,a.Z)(X,2),U=K[0],W=K[1],$=(0,f.FV)(x.d_),G=(0,a.Z)($,2),ee=G[0],te=(G[1],(0,f.FV)(x.wi)),ne=(0,a.Z)(te,2),oe=ne[0],ie=(ne[1],(0,f.FV)(x.FC)),re=(0,a.Z)(ie,2),ae=re[0],se=(re[1],(0,f.FV)(x.B_)),ce=(0,a.Z)(se,2),le=ce[0],de=(ce[1],U&&U.length&&U.includes("REPAIR"));(0,l.useEffect)((function(){pe()}),[E,J,M,U]),(0,l.useEffect)((function(){if(Z&&Z.length&&(pe(),d&&Z.length===ee)){var e=new Date;e.setDate(e.getDate()+5),localStorage.setItem("pickuppoints",JSON.stringify({value:Z,expiry:e}))}}),[Z,ee]);var pe=function(){if(E&&E.length>0||J&&J.length>0||M&&M.length>0||U&&U.length>0){var e=Z,t=[],n=[],o=[],i=[];if(U&&U.length){var a=[].concat((0,r.Z)(U),["BOTH_TYPES"]);t=Z.filter((function(e){return a.includes(e.type)})).map((function(e){return e.id}))}if(de){var s=e.filter((function(e){return t.includes(e.id)}
1));return ue(s),null}if(M&&M.length&&(o=Z.filter((function(e){return e.plainWastes.split("|").find((function(e){return M.includes(e)}))})).map((function(e){return e.id}))),E&&E.length&&(n=Z.filter((function(e){return e.plainTypes.split("|").find((function(e){return E.includes(e)}))})).map((function(e){return e.id}))),J&&J.length)for(var c=Z.filter((function(e){return e.plainFilters})),l=function(e){var t=c.filter((function(t){var n=JSON.parse(t.plainFilters),o=Object.keys(n);return o&&o.length&&o.includes(J[e].filter)?(n[J[e].filter]=n[J[e].filter].split(","),J[e].options.find((function(t){return n[J[e].filter].includes(t)}))):null})).map((function(e){return e.id}));i=[].concat((0,r.Z)(i),(0,r.Z)(t))},d=0;d<J.length;d++)l(d);var p=e.filter((function(e){return(!U.length||t.includes(e.id))&&(!E.length||n.includes(e.id))&&(!M.length||o.includes(e.id))&&(!J.length||i.includes(e.id))}));ue(p)}else Z&&Z.length,ue(Z)},ue=function(e){e.length!=s?(c([]),setTimeout((function(){return c((0,r.Z)(e))}),400)):c((0,r.Z)(e))},fe=function(e,t){var n=void 0;"localType"===t&&(n=(0,r.Z)(U)),"waste"===t&&(n=(0,r.Z)(M)),"location"===t&&(n=(0,r.Z)(E));var o=n.findIndex((function(t){return t===e}));-1!=o?n.splice(o,1):n.push(e),"localType"===t&&(n.length>1?W([e]):W((0,r.Z)(n))),"waste"===t&&L((0,r.Z)(n)),"location"===t&&S((0,r.Z)(n))},xe=function(e,t){var n=void 0;return"localType"===t&&(n=(0,r.Z)(U)),"waste"===t&&(n=(0,r.Z)(M)),"location"===t&&(n=(0,r.Z)(E)),n.includes(e)},me=function(e,t){var n=void 0;if("localType"===e&&(n=(0,r.Z)(U)),"waste"===e&&(n=(0,r.Z)(M)),"location"===e&&(n=(0,r.Z)(E)),"filter"===e){var o=J.find((function(e){return e.filter===t}));n=o?o.options:[]}return!(!n||!n.length)},he=function(e){var t=[];return"localType"===e&&(t=(0,r.Z)(U)),"waste"===e&&(t=(0,r.Z)(M)),"location"===e&&(t=(0,r.Z)(E)),t.length||""},ge=function(e,t){return J.find((function(n){return n.filter==e&&n.options.includes(t)}))};return(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(B,{open:t,isMarkerOpen:u,children:(0,j.jsxs)("div",{children:[(0,j.jsxs)(V,{isLoading:o,children:[(0,j.jsx)("div",{className:"close",children:(0,j.jsxs)("button",{onClick:function(){return n(!t)},children:[(0,j.jsx)("i",{className:"fal ".concat(t?"fa-xmark":"fa-filter")}),(0,j.jsx)("span",{className:"nutmeg-16",children:"Fechar"})]})}),(0,j.jsx)("div",{className:"search",children:(0,j.jsx)(A.Z,{map:!0,fullWidth:!0,loading:o,defaultText:P,onClickButton:function(){i(!0),navigator.geolocation.getCurrentPosition((function(e){e&&e.coords?p.Z.fromLatLng(e.coords.latitude,e.coords.longitude).then((function(o){var r=o.results[0].address_components.find((function(e){return e.types.includes("postal_code")})).long_name,a=o.results[0].address_components.find((function(e){return e.types.includes("locality")})).long_name;i(!1),t&&n(!1),k("".concat(r," ").concat(a)),g({lat:e.coords.latitude,lng:e.coords.longitude}),i(!1)})):i(!1)}),(function(e){i(!1),console.error("Error Code = "+e.code+" - "+e.message)}))},onClickEnter:function(e){var t=function(t){var n=t.address_components,o=t.geometry.location,i=o.lat,r=o.lng,a=n.find((function(e){return e.types.find((function(e){return"locality"===e}))}))?n.find((function(e){return e.types.find((function(e){return"locality"===e}))})).long_name:void 0;k(e),g({lat:i,lng:r,locality:a})};i(!0),e&&p.Z.fromAddress(e).then((function(e){return t(e.results[0])}),(function(n){i(!1);var o=e;isNaN(e)||(o="".concat(e,",portugal"));var r="https://maps.googleapis.com/maps/api/geocode/json?address=".concat(o,"&key=").concat(y.$);fetch(r).then((function(e){return e.json()})).then((function(e){e.results.length?t(e.results[0]):console.error(n)}))})),i(!1)},onChangeInput:function(e){return k(e)},placeholder:"C\xf3d. Postal ou Localidade"})}),(0,j.jsxs)(H,{onClick:function(){var e;n(!1),(e=P)&&(i(!0),p.Z.fromAddress(e).then((function(o){var r=o.results[0].geometry.location,a=r.lat,s=r.lng,c=o.results[0].address_components,l=c.find((function(e){return e.types.find((function(e){return"locality"===e}))}))?c.find((function(e){return e.types.find((function(e){return"locality"===e}))})).long_name:void 0;k(e),g({lat:a,lng:s,locality:l}),t&&setTimeout((function(){n(!1)}),600),P&&setTimeout((function(){i(!1)}),1e3)}),(function(e){return console.error(e)})))},children:[(0,j.jsx)(C.Q,{src:"/svg/search.svg"}),(0,j.jsx)("span",{className:"nutmeg-14",children:"Pesquisar"})]}),(0,j.jsx)(H,{onClick:function(){return k(null),S([]),L([]),Q([]),void W(["PICKUP"])},clean:!0,children:(0,j.jsx)("span",{className:"nutmeg-14",children:"Limpar filtros"})})]}),(0,j.jsxs)(q,{isLoading:o,isBlocked:de,children:[(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"accordion__heading",children:(0,j.jsx)("div",{className:"accordion__title",children:(0,j.jsx)("div",{children:(0,j.jsx)("span",{className:"nutmeg-12",children:"Filtrar por"})})})}),(0,j.jsx)("div",{children:[{icon:"fa-recycle",name:"Locais para Reciclagem",slug:"PICKUP"}].map((function(e,t){return(0,j.jsx)(z,D(D({},e),{},{green:!0,disabled:!0,onClick:function(){return fe(e.slug,"localType")},active:xe(e.slug,"localType"),hasSelected:me("localType")}),String(t))}))})]}),(0,j.jsxs)(F.UQ,{allowMultipleExpanded:!0,allowZeroExpanded:!0,children:[(0,j.jsxs)(F.Qd,{children:[(0,j.jsx)(F.Ol,{children:(0,j.jsx)(F.on,{children:(0,j.jsxs)("div",{children:[(0,j.jsx)("span",{className:"nutmeg-12",children:"Tipologia de Res\xedduos"}),(0,j.jsx)("span",{className:"nutmeg-12",children:he("waste")})]})})}),(0,j.jsx)(F.Mt,{children:ae.map((function(e,t){return(0,j.jsx)(z,D(D({},e),{},{onClick:function(){return fe(e.slug,"waste")},active:xe(e.slug,"waste"),hasSelected:me("waste"),alerts:ae.alerts}),String(t))}))})]}),(0,j.jsxs)(F.Qd,{children:[(0,j.jsx)(F.Ol,{children:(0,j.jsx)(F.on,{children:(0,j.jsxs)("div",{children:[(0,j.jsx)("span",{className:"nutmeg-12",children:"Tipologia de Local"}),(0,j.jsx)("span",{className:"nutmeg-12",children:he("location")})]})})}),(0,j.jsx)(F.Mt,{children:le.map((function(e,t){return(0,j.jsx)(z,D(D({},e),{},{onClick:function(){return fe(e.slug,"location")},active:xe(e.slug,"location"),hasSelected:me("location")}),String(t))}))})]}),oe&&!!oe.length&&oe.map((function(e,t){return(0,j.jsxs)(F.Qd,{children:[(0,j.jsx)(F.Ol,{children:(0,j.jsx)(F.on,{children:(0,j.jsxs)("div",{children:[(0,j.jsx)("span",{className:"nutmeg-12",children:e.name}),(0,j.jsx)("span",{})]})})}),(0,j.jsx)(F.Mt,{children:e.options.map((function(t,n){return(0,j.jsx)(z,D(D({},t),{},{hasSelected:me("filter",e.slug),active:ge(e.slug,t.name),onClick:function(){return function(e,t){var n=(0,r.Z)(J),o=n.findIndex((function(t){return t.filter===e}));if(-1!=o){var i=n[o].options.findIndex((function(e){return e===t}));n[o]=-1!=i?{filter:e,options:n[o].options.filter((function(e){return e!==t}))}:{filter:e,options:[].concat((0,r.Z)(n[o].options),[t])}}
1else n.push({filter:e,options:[t]});n=n.filter((function(e){return e.options.length})),Q((0,r.Z)(n))}(e.slug,t.name)}}),String(n))}))})]},t)}))]})]})]})})})}var B=d.ZP.div.withConfig({displayName:"menu__Component",componentId:"sc-264x6q-0"})(["z-index:4;width:438px;overflow:auto;min-width:438px;position:relative;background-color:",";border-right:1px solid ",";> div{display:flex;max-height:100vh;flex-direction:column;}@media screen and (max-width:1280px){width:380px;min-width:380px;}@media screen and (max-width:1023px){top:0;left:0;bottom:0;width:425px;position:fixed;min-width:425px;transition:all 600ms ease;overflow:",";z-index:",";transform:",";",";}@media screen and (max-width:640px){min-width:auto;max-width:100vw;border-right:0;}"],h.ZP.colors.c_ffffff,h.ZP.colors.c_F1F1F2,(function(e){return e.open?"hidden":"visible"}),(function(e){return e.isMarkerOpen?"-1":"4"}),(function(e){return e.open?"translateX(0)":"translateX(-100%)"}),(function(e){return!e.open&&(0,d.iv)(["div .close{top:unset;right:-10px;bottom:10px;transform:translateX(100%);button{width:56px;background-color:",";span{display:none;}i{color:",";}&:hover{background-color:",";}}}"],h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff)})),V=d.ZP.div.withConfig({displayName:"menu__Intro",componentId:"sc-264x6q-1"})(["padding:160px 52px 18px 40px;border-bottom:1px solid ",";.search{margin-bottom:4px;border-radius:24px;padding:0 4px 0 8px;border:1px solid ",";svg{margin-right:0;}}.close{display:none;span{display:none;}}"," @media screen and (max-width:1280px){padding:140px 28px 18px;}@media screen and (max-width:1023px){.close{top:40px;right:28px;display:inline;position:absolute;button{width:56px;height:56px;border:none;cursor:pointer;box-shadow:none;border-radius:20px;transition:all 400ms ease;background-color:",";i{font-size:20px;vertical-align:middle;transition:all 400ms ease;color:",";}&:hover{background-color:",";i{color:",";}}}}}@media screen and (max-width:640px){padding:100px 28px 18px;.close{top:unset;left:28px;bottom:10px;z-index:4;position:fixed;button{width:100%;display:flex;position:relative;align-items:center;justify-content:center;border:1px solid ",";background-color:",";i{top:50%;left:16px;font-size:20px;position:absolute;transform:translateY(-50%);color:",";}&:hover{background-color:",";span{color:",";}i{color:",";}}}span{display:inline;margin-top:4px;margin-left:24px;color:",";}}}"],h.ZP.colors.c_F1F1F2,h.ZP.colors.c_F1F1F2,(function(e){return e.isLoading&&(0,d.iv)(["pointer-events:none;button{opacity:0.4;}"])}),h.ZP.colors.c_F1F1F2,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.colors.c_F1F1F2,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff,h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff),H=d.ZP.button.withConfig({displayName:"menu__Button",componentId:"sc-264x6q-2"})(["width:100%;display:flex;cursor:pointer;position:relative;border-radius:20px;align-items:center;padding:13px 12px 12px;justify-content:center;transition:all 400ms ease;background-color:",";border:1px solid ",";span{line-height:1em;transition:all 400ms ease;color:",";}div{top:50%;left:16px;position:absolute;transform:translateY(-50%);svg{.a{transition:all 400ms ease;stroke:",";}}}&:hover{background-color:",";span{color:",";}div{svg .a{stroke:",";}}}"],(function(e){return e.clean?h.ZP.colors.c_ffffff:h.ZP.colors.c_38B884}),(function(e){return e.clean?h.ZP.colors.c_ffffff:h.ZP.colors.c_38B884}),(function(e){return e.clean?h.ZP.colors.c_000000:h.ZP.colors.c_ffffff}),h.ZP.colors.c_ffffff,h.ZP.colors.c_ffffff,h.ZP.colors.c_38B884,h.ZP.colors.c_38B884),q=d.ZP.div.withConfig({displayName:"menu__Filters",componentId:"sc-264x6q-3"})(["flex:1;overflow:auto;.accordion__item,> div:first-child{padding:28px 40px 28px 28px;border-bottom:1px solid ",";opacity:",";pointer-events:",";.accordion__heading{cursor:pointer;.accordion__button{outline:none;padding:4px 28px 4px 20px;span{font-weight:700;text-transform:uppercase;color:",";&:first-child{padding-left:20px;}&:last-child{font-weight:400;color:",';}}div{display:flex;position:relative;justify-content:space-between;&:before{left:0;top:50%;width:8px;content:"";height:8px;position:absolute;transition:all 400ms ease;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-50%) rotate(-45deg);}}&[aria-expanded="true"],&[aria-selected="true"]{padding:4px 28px 16px 20px;div{&:before{margin-top:-3px;transform:translateY(-50%) rotate(45deg);}}}}.accordion__title{padding:4px 28px 16px 20px;span{font-weight:700;padding-left:20px;text-transform:uppercase;color:',";}}}@media screen and (max-width:1023px){padding:28px;}}.accordion__item{opacity:",";pointer-events:",";}@media screen and (max-width:640px){padding-bottom:140px;.accordion__item{&:last-child{border-bottom:0;}}}"],h.ZP.colors.c_F1F1F2,(function(e){return e.isLoading?"0.4":"1"}),(function(e){return e.isLoading?"none":"auto"}),h.ZP.colors.c_000000,h.ZP.colors.c_A0A8A8,h.ZP.colors.c_000000,(function(e){var t=e.isBlocked,n=e.isLoading;return t||n?"0.4":"1"}),(function(e){var t=e.isBlocked,n=e.isLoading;return t||n?"none":"auto"})),R=n(5675),Y=n(1020),J=n(6377),Q=n(9275),X=n(7385),K=n(6339),U=n(6536),W=n(3556),$=n(4465);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?G(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e){var t,n=e.isLoading,o=e.id,r=e.slug,s=e.thumbnail,d=e.wasteTypes,p=e.name,u=e.address_street,g=e.address_postal_code,b=e.address_city,y=e.placeTypes,Z=e.location,w=e.contacts,_=e.working_period,P=e.latitude,k=e.longitude,O=e.onClose,N=(0,l.useState)(W.Y8),C=N[0],F=N[1],E=(0,l.useState)(null),S=E[0],z=E[1],I=(0,l.useState)(!1),T=I[0],A=I[1],M=(0,l.useState)(!1),D=M[0],L=M[1],B=(0,f.FV)(x.FC),V=(0,a.Z)(B,2),H=V[0],q=(V[1],(0,f.FV)(x.B_)),G=(0,a.Z)(q,2),te=G[0],fe=(G[1],y&&y.length?te.find((function(e){return y.map((function(e){return e.id})).includes(e.id)})):null),xe=w&&w.length?w.find((function(e){return"Geral"===e.contact_type})):void 0,me=window.location.href.substring(0,window.location.href.lastIndexOf("/mapa")+5),he="".concat(me,"/").concat(r),ge=function(e,t,n){return e&&t&&t.find((function(t){return t.id==e}))?t.find((function(t){return t.id==e}))[n]:""},be=function(){var e=(0,i.Z)(c().mark((function e(t){var n,i,r,a,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,F(W.br),e.next=4,(0,m.R3)(t);case 4:(n=e.sent)&&null===n.errorsMessage&&null===n.errorsMessageServer&&n.form&&(F(W.jP),i=(0,U.z)(n.form.structure.inputs),r=i.inputs,a=i.validations,s=i.initialValues,z({inputs:r,validations:a,initialValues:ee(ee({},s),{},{pickupPoint:o}),id:t})),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),F(W.pn),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),ve=function(){var e=(0,i.Z)(c().mark((function e(t,n,o){var i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,F(W.br),e.next=4,(0,m.R2)(t,n,void 0,o);case 4:(i=e.sent)&&null===i.errorsMessage&&null===i.errorsMessageServer&&i.form&&i.form.result?(F(W.MR),setTimeout((function(){A(!1),F(W.Y8)}),6e3)):F(W.pn),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,n,o){return e.apply(this,arguments)}}();return(0,l.useEffect)((0,i.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S||C!==W.Y8||be("cktisuqewfz310b18pn4q84gs");case 1:case"end":return e.stop()}}),e)}))),[]),(0,l.useEffect)((function(){(!r||T||D)&&(A(!1),L(!1))}),[r]),(0,j.jsxs)(ne,{active:!!o,isLoading:n,children:[(0,j.jsxs)("div",{children:[(0,j.jsxs)(oe,{children:[(0,j.jsx)(R.default,{layout:"fill",objectFit:"cover",src:s&&s.href?s.href:y&&y.length&&ge(y[0].id,te,"thumbnail")?ge(y[0].id,te,"thumbnail").href:"/png/default_pickuppoint.png"}),fe&&fe.icon&&(0,j.jsxs)(ie,{children:[(0,j.jsx)("span",{children:(0,j.jsx)("i",{className:"fal ".concat(fe.icon)})}),(0,j.jsx)(v.Z,{tag:"div",className:"work-sans-12",color:h.ZP.colors.c_3E4543,children:fe.name})]})]}),(0,j.jsxs)("div",{children:[fe&&fe.icon&&(0,j.jsxs)(ie,{small:!0,children:[(0,j.jsx)("span",{children:(0,j.jsx)("i",{className:"fal ".concat(fe.icon)})}),(0,j.jsx)(v.Z,{tag:"div",className:"work-sans-12",color:h.ZP.colors.c_3E4543,children:fe.name})]}),(0,j.jsx)(re,{children:(0,j.jsx)(v.Z,{className:"nutmeg-24",weight:900,color:h.ZP.colors.c_3E4543,lineHeight:1.33,children:p})}),d&&!!d.length&&(0,j.jsx)(ae,{children:(0,j.jsxs)("div",{children:[(0,j.jsx)(v.Z,{tag:"h4",className:"nutmeg-12",weight:400,color:h.ZP.colors.c_3E4543,lineHeight:1,children:"Res\xedduos permitidos"}),(0,j.jsx)("ul",{children:d.map((function(e,t){return(0,j.jsxs)("li",{children:[(0,j.jsx)("i",{className:"fal ".concat(ge(e.id,H,"icon"))}),(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-16",weight:700,color:h.ZP.colors.c_3E4543,lineHeight:1.1,children:ge(e.id,H,"name")})]},t)}))})]})}),(0,j.jsx)(se,{children:(0,j.jsxs)("ul",{children:[(u||g||b)&&(0,j.jsxs)("li",{children:[(0,j.jsx)("span",{children:(0,j.jsx)("i",{className:"fal fa-home-lg-alt"})}),(0,j.jsxs)("div",{children:[(0,j.jsx)(v.Z,{tag:"div",className:"nutmeg-12",lineHeight:1,color:h.ZP.colors.c_A0A8A8,weight:400,children:"Morada"}),(0,j.jsx)(v.Z,{editor:!0,tag:"div",lineHeight:1.5,className:"work-sans-16",color:h.ZP.colors.c_3E4543,text:"<p>".concat(u,"</p><p>").concat(g&&"".concat(g,", ")).concat(b,"</p>")})]})]}),xe&&(0,j.jsxs)("li",{className:"contact_phone",children:[(0,j.jsx)("span",{children:(0,j.jsx)("i",{className:"fal fa-phone-alt"})}),(0,j.jsxs)("div",{children:[(0,j.jsx)(v.Z,{tag:"div",className:"nutmeg-12",lineHeight:1,color:h.ZP.colors.c_A0A8A8,weight:400,children:"Contacto Telef\xf3nico"}),(0,j.jsx)("a",{href:"tel:".concat(xe.contact_phone.trim()),children:(0,j.jsx)(v.Z,{tag:"div",className:"work-sans-16",lineHeight:1.5,color:h.ZP.colors.c_3E4543,children:(t=xe.contact_phone,t.trim().replace(/(\d{3})(\d{3})(\d{3})/,(function(e,t,n,o){return t+" "+n+" "+o})))})})]})]}),_&&(0,j.jsxs)("li",{className:"working_period",children:[(0,j.jsx)("span",{children:(0,j.jsx)("i",{className:"fal fa-clock"})}),(0,j.jsxs)("div",{children:[(0,j.jsx)(v.Z,{tag:"div",className:"nutmeg-12",lineHeight:1,color:h.ZP.colors.c_A0A8A8,weight:400,children:"Hor\xe1rio de Recolha"}),(0,j.jsx)(v.Z,{tag:"div",className:"work-sans-16",lineHeight:1.5,color:h.ZP.colors.c_3E4543,children:_})]})]}),Z&&(0,j.jsxs)("li",{className:"location",children:[(0,j.jsx)("span",{children:(0,j.jsx)("i",{className:"fal fa-circle-info"})}),(0,j.jsxs)("div",{children:[(0,j.jsx)(v.Z,{tag:"div",className:"nutmeg-12",lineHeight:1,color:h.ZP.colors.c_A0A8A8,weight:400,children:"Informa\xe7\xf5es adicionais"}),(0,j.jsx)(v.Z,{tag:"div",className:"work-sans-16",lineHeight:1.5,color:h.ZP.colors.c_3E4543,children:Z})]})]})]})}),(0,j.jsx)(ce,{children:(0,j.jsxs)("div",{children:[p&&(0,j.jsx)("a",{href:"https://www.google.pt/maps/dir//".concat(p.replaceAll(" ","+"),"/@").concat(P,",").concat(k),target:"_blank",children:(0,j.jsxs)(le,{children:[(0,j.jsx)("i",{className:"fal fa-location-arrow"}),(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-14",lineHeight:1,weight:400,children:"Obter dire\xe7\xf5es"})]})}),(0,j.jsxs)(le,{onClick:function(){return L(!D)},children:[(0,j.jsx)("i",{className:"fal fa-share-alt"}),(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-14",lineHeight:1,weight:400,children:"Partilhar esta localiza\xe7\xe3o"})]}),(0,j.jsx)(de,{show:D,children:(0,j.jsxs)("div",{className:"a2a_kit a2a_kit_size_32 a2a_default_style","data-a2a-url":he,children:[(0,j.jsx)("a",{className:"a2a_button_facebook",children:(0,j.jsx)(Y.Z,{size:40})}),(0,j.jsx)("a",{className:"a2a_button_facebook_messenger",children:(0,j.jsx)(J.Z,{size:40})}),(0,j.jsx)("a",{className:"a2a_button_whatsapp",children:(0,j.jsx)(Q.Z,{size:40})}),(0,j.jsx)("a",{className:"a2a_button_twitter",children:(0,j.jsx)(X.Z,{size:40})}),(0,j.jsx)("a",{className:"a2a_button_email",children:(0,j.jsx)(K.Z,{size:40})})]})}),(0,j.jsxs)(pe,{show:T,success:C===W.MR,children:[C===W.jP&&S&&(0,j.jsx)($.Z,ee(ee({},S),{},{onSubmit:function(e,t){return ve(e,t,o)},submitText:'<i class="fal fa-paper-plane"></i><span>Enviar opini\xe3o</span>'})),C===W.MR&&(0,j.jsx)(ue,{children:(0,j.jsxs)("p",{children:[(0,j.jsx)("i",{className:"fal fa-thumbs-up"})," Obrigado pela sua opini\xe3o"]})})]}),(0,j.jsxs)(le,{onClick:function(){return A(!T)},children:[(0,j.jsx)("i",{className:"fal ".concat(T?"fa-undo":"fa-comment")}),(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-14",lineHeight:1,weight:400,children:T?"Fechar":"Deixar opini\xe3o"})]}),(0,j.jsxs)(le,{onClick:O,children:[(0,j.jsx)("i",{className:"fal fa-arrow-left"}),(0,j.jsx)(v.Z,{tag:"span",className:"nutmeg-14",lineHeight:1,weight:400,children:"Voltar ao mapa"})]})]})})]})]}),(0,j.jsx)("button",{onClick:O,children:(0,j.jsx)("i",{className:"fal fa-xmark"})})]})}var ne=d.ZP.div.withConfig({displayName:"markerDetail__Component",componentId:"sc-5ipp5r-0"})(["left:0;z-index:3;width:432px;height:100%;max-height:100vh;position:absolute;transition:all 600ms ease;background:",";transform:",";> div{height:100%;display:flex;position:relative;flex-direction:column;opacity:",";> div:nth-child(2){flex:1;overflow:auto;}}> button{top:16px;right:16px;width:56px;height:56px;border:none;cursor:pointer;box-shadow:none;position:absolute;border-radius:20px;transition:all 400ms ease;background-color:",";i{font-size:20px;vertical-align:middle;color:",";transition:all 400ms ease;}&:hover{background-color:",";i{color:",";}}}@media screen and (max-width:1023px){> button{top:40px;}}@media screen and (max-width:640px){top:0;left:0;right:0;width:100%;height:100vh;position:fixed;> button{display:none;}}"],h.ZP.colors.c_ffffff,(function(e){return e.active?"translateX(0)":"translateX(-100%)"}),(function(e){return e.isLoading?"0.4":"1"}),h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff,h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543),oe=d.ZP.div.withConfig({displayName:"markerDetail__Thumbnail",componentId:"sc-5ipp5r-1"})(["width:100%;height:240px;position:relative;background-color:",";"],h.ZP.colors.c_F1F1F2),ie=d.ZP.div.withConfig({displayName:"markerDetail__LocationType",componentId:"sc-5ipp5r-2"})(["z-index:1;border-radius:16px;align-items:center;background-color:",";top:",";left:",";display:",";padding:",";position:",";span{width:40px;height:40px;align-items:center;display:inline-flex;justify-content:center;border:1px solid ",";border-radius:",";border-right-width:",";}> div{max-height:40px;padding:13px 16px 12px 8px;border:",";border-radius:",";border-left-width:",";}@media screen and (max-width:1023px){display:",";}"],h.ZP.colors.c_ffffff,(function(e){return e.small?"unset":"24px"}),(function(e){return e.small?"unset":"16px"}),(function(e){return e.small?"none":"flex"}),(function(e){return e.small?"18px 24px 0":"0px"}),(function(e){return e.small?"relative":"absolute"}),h.ZP.colors.c_A0A0A0,(function(e){return e.small?"16px 0 0 16px":"16px"}),(function(e){return e.small?"0px":"1px"}),(function(e){return e.small?"1px solid ".concat(h.ZP.colors.c_A0A0A0):"0"}),(function(e){return e.small?"0 16px 16px 0":"0"}),(function(e){return e.small?"0px":"1px"}),(function(e){return e.small?"flex":"none"})),re=d.ZP.div.withConfig({displayName:"markerDetail__Title",componentId:"sc-5ipp5r-3"})(["padding:40px 40px 32px;"]),ae=d.ZP.div.withConfig({displayName:"markerDetail__Wastes",componentId:"sc-5ipp5r-4"})(["padding:0 16px 32px;> div{padding:24px;border-radius:24px;background-color:",";}ul{padding:0;margin:24px 0 0;list-style-type:none;li{display:flex;margin-bottom:8px;align-items:center;i{width:40px;height:40px;font-size:20px;margin-right:16px;align-items:center;display:inline-flex;justify-content:center;}span{padding-top:2px;}}}"],h.ZP.colors.c_F1F1F2),se=d.ZP.div.withConfig({displayName:"markerDetail__Main",componentId:"sc-5ipp5r-5"})(["padding:0 40px 24px;ul{margin:0;padding:0;list-style:none;li{display:flex;margin-bottom:32px;span{width:32px;height:32px;display:flex;font-size:20px;margin-right:16px;align-items:center;justify-content:center;}div{flex:1;}.nutmeg-12{margin-bottom:4px;}&.working_period{align-items:center;}&.contact_phone{a{&:hover{div{text-decoration:underline;}}}}@media screen and (max-width:578px){.nutmeg-12{font-size:",";}}}}"],h.ZP.text.t_14),ce=d.ZP.div.withConfig({displayName:"markerDetail__Share",componentId:"sc-5ipp5r-6"})(["padding:0 16px 8px;> div{padding:24px;border-top:1px solid ",";@media screen and (min-width:641px){> *:last-child{display:none;}}}@media screen and (max-width:640px){padding-bottom:80px;}"],h.ZP.colors.c_F1F1F2),le=d.ZP.button.withConfig({displayName:"markerDetail__Button",componentId:"sc-5ipp5r-7"})(["width:100%;display:flex;cursor:pointer;position:relative;border-radius:20px;align-items:center;margin-bottom:16px;padding:16px 12px 16px;justify-content:center;transition:all 600ms ease;background-color:",";border:1px solid ",";span{line-height:1em;transition:all 400ms ease;color:",";}i{top:50%;left:16px;font-size:20px;position:absolute;transition:all 400ms ease;transform:translateY(-50%);color:",";}&:hover{border-color:",";}"],h.ZP.colors.c_ffffff,h.ZP.colors.c_F1F1F2,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543),de=
1d.ZP.div.withConfig({displayName:"markerDetail__Social",componentId:"sc-5ipp5r-8"})(["flex:1;border:0;width:100%;display:flex;overflow:hidden;border-radius:20px;align-items:center;justify-content:center;transition:all 400ms ease;height:",";margin-bottom:",";> div{display:flex;align-items:center;justify-content:center;}a{margin:0 2px;&:hover{transition:all 600ms ease;transform:translateY(-5px);}}svg{overflow:hidden;border-radius:14px;}"],(function(e){return e.show?"56px":"0px"}),(function(e){return e.show?"16px":"0px"})),pe=d.ZP.div.withConfig({displayName:"markerDetail__Opinion",componentId:"sc-5ipp5r-9"})(["overflow:hidden;margin-left:-24px;margin-right:-24px;border-radius:24px;transition:all 400ms ease;padding:",";max-height:",";margin-bottom:",";background-color:",";form{> div{> div{margin-bottom:",';}}input[type="text"]{width:100%;border:none;padding:16px;outline:none;font-weight:300;border-radius:16px;font-size:',";color:",';font-family:"Nutmeg",sans-serif;border:1px solid ',";background-color:",";:-webkit-autofill,:-webkit-autofill:hover,:-webkit-autofill:focus,:-webkit-autofill:active{color:"," !important;box-shadow:0 0 0 60px ",' inset !important;}&::placeholder{font-weight:700;font-family:"Nutmeg",sans-serif;color:',";}}textarea{width:100%;border:none;resize:none;height:160px;padding:16px;outline:none;overflow:auto;font-weight:300;max-height:240px;border-radius:16px;font-size:",";color:",';font-family:"Nutmeg",sans-serif;border:1px solid ',";background-color:",";:-webkit-autofill,:-webkit-autofill:hover,:-webkit-autofill:focus,:-webkit-autofill:active{color:"," !important;box-shadow:0 0 0 200px "," inset !important;}&::placeholder{font-weight:700;color:",';font-family:"Nutmeg",sans-serif;}}label{width:100%;margin:0 auto;cursor:pointer;align-items:center;display:inline-flex;justify-content:flex-start;input{width:13px;height:13px;appearance:none;margin-right:8px;margin-bottom:3px;border-radius:3px;display:inline-block;vertical-align:middle;border:1px solid ',';position:relative;&:after{top:0;left:0;right:0;bottom:0;z-index:1;content:"";position:absolute;transform:scale(0);border-radius:3px;transition:all 400ms ease;background-color:',";}:checked{&:after{transform:scale(0.7);}}}span{opacity:0.5;line-height:0.8;font-size:",";color:",';font-family:"Nutmeg",sans-serif;transition:all 400ms ease;}&:hover{span{opacity:1;}}}> span{color:red;padding-left:16px;font-size:',';}button[type="submit"]{display:flex;padding:20px;cursor:pointer;width:100%;background:none;position:relative;border-radius:20px;align-items:center;justify-content:center;transition:all 400ms ease;color:',";border:1px solid ",";background-color:",';i{top:50%;left:16px;font-size:20px;position:absolute;transition:all 400ms ease;transform:translateY(-50%);}span{margin-left:8px;display:inline-block;font-family:"Nutmeg",sans-serif;font-weight:700;font-size:',';transition:all 400ms ease;@media screen and (min-width:1980px){font-size:14px;}}@media (hover:hover) and (pointer:fine){&:hover{opacity:0.6;}}@media screen and (max-width:578px){padding:16px;border-radius:16px;}}.fieldRequired{> span{font-size:12px;font-family:"Nutmeg",sans-serif;}}}'],(function(e){return e.show?"24px":"0 24px"}),(function(e){return e.show?"1000px":"0px"}),(function(e){return e.show?"16px":"0px"}),(function(e){return e.success?h.ZP.colors.c_38B884:h.ZP.colors.c_F1F1F2}),h.ZP.text.t_10,h.ZP.text.t_14,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.text.t_14,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.text.t_12,h.ZP.colors.c_3E4543,h.ZP.text.t_10,h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.colors.c_3E4543,h.ZP.text.t_14),ue=d.ZP.div.withConfig({displayName:"markerDetail__Status",componentId:"sc-5ipp5r-10"})(["display:flex;align-items:center;justify-content:center;p{text-align:center;color:",";i{margin-right:8px;}}"],h.ZP.colors.c_ffffff);function fe(e){var t=e.menuOpen,n=(0,l.useState)(!0),o=n[0],r=n[1],a=(0,l.useState)(W.Y8),s=a[0],d=a[1],p=(0,l.useState)(null),u=p[0],f=p[1];(0,l.useEffect)((function(){u||x("pt","modalCTA")}),[]);var x=function(){var e=(0,i.Z)(c().mark((function e(t,n){var o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(W.br),e.next=4,(0,m.wg)(t,n);case 4:(o=e.sent)&&!o.error&&o.contentType&&o.contentType.content&&o.contentType.content.data?(f(o.contentType.content.data.contactsMo
1dal),d(W.jP)):d(W.SR),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),d(W.pn);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,n){return e.apply(this,arguments)}}();return s!=W.jP||u&&!u.enabled?null:(0,j.jsx)(j.Fragment,{children:o?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(xe,{}),(0,j.jsx)(me,{children:(0,j.jsxs)("div",{className:"content",children:[(0,j.jsx)(he,{onClick:function(){return r(!1)},children:(0,j.jsx)("i",{className:"fal fa-xmark"})}),(0,j.jsxs)("div",{children:[(0,j.jsx)(v.Z,{className:"nutmeg-24",weight:700,color:h.ZP.colors.c_ffffff,lineHeight:1.33,uppercase:!0,children:u&&u.title}),(0,j.jsx)(S.Z,{top:"s_40",bottom:"s_40",children:(0,j.jsx)(v.Z,{className:"work-sans-16",weight:300,color:h.ZP.colors.c_ffffff,lineHeight:1.5,editor:!0,text:u&&u.text})})]}),(0,j.jsx)("div",{children:u&&u.buttonLink&&u.buttonLink.url&&(0,j.jsx)("a",{href:u.buttonLink.url,target:"_blank",children:(0,j.jsx)(v.Z,{className:"nutmeg-16",weight:700,lineHeight:1,align:"center",uppercase:!0,children:u.buttonText})})})]})})]}):(0,j.jsxs)(ge,{menuOpen:t,onClick:function(){return r(!0)},children:[(0,j.jsx)("i",{className:"fal fa-refrigerator"}),(0,j.jsx)("span",{})]})})}var xe=d.ZP.div.withConfig({displayName:"contactsModal__Overlay",componentId:"sc-wn84q4-0"})(["inset:0;z-index:3;position:fixed;background-color:",";@media screen and (min-width:1024px){display:none;}"],h.ZP.colors.c_00000033),me=d.ZP.div.withConfig({displayName:"contactsModal__Modal",componentId:"sc-wn84q4-1"})(["top:50%;z-index:4;left:24px;width:545px;display:block;position:absolute;pointer-events:auto;height:auto !important;transition:all 600ms ease;max-width:calc(100% - 48px);transform:translate(0,-50%);.nutmeg-16{color:",";}a{opacity:1;text-decoration:underline;transition:all 600ms ease;color:",";:hover{opacity:0.8;}}.content{overflow:hidden;position:relative;border-radius:24px;box-shadow:0 16px 24px #00000029;background-color:",";> div{padding:40px;transition:all 400ms ease;&:last-child{padding:0;a{padding:40px;display:block;border-top:1px solid ","33;}&:hover{background-color:",";.nutmeg-16{color:",';}}}}}&::after{top:50%;width:0;height:0;z-index:3;left:-10px;content:"";margin-top:-10px;position:absolute;border-right-width:10px;border-right-style:solid;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right-color:',";}@media screen and (max-width:1023px){left:50%;transform:translate(-50%,-50%);&::after{content:none;}}"],h.ZP.colors.c_ffffff,h.ZP.colors.c_ffffff,h.ZP.colors.c_38B884,h.ZP.colors.c_F1F1F2,h.ZP.colors.c_ffffff,h.ZP.colors.c_38B884,h.ZP.colors.c_38B884),he=d.ZP.button.withConfig({displayName:"contactsModal__ButtonClose",componentId:"sc-wn84q4-2"})(["top:18px;padding:0;right:24px;border:none;outline:none;cursor:pointer;background:none;position:absolute;i{font-size:28px;transition:all 600ms ease;color:","66;}&:hover{i{color:",";}}"],h.ZP.colors.c_ffffff,h.ZP.colors.c_ffffff),ge=d.ZP.button.withConfig({displayName:"contactsModal__Button",componentId:"sc-wn84q4-3"})(["bottom:10px;left:24px;z-index:3;width:56px;height:56px;border:none;display:flex;cursor:pointer;box-shadow:none;position:absolute;border-radius:20px;align-items:center;justify-content:center;transition:all 400ms ease;background-color:",";i{font-size:20px;vertical-align:middle;transition:all 400ms ease;color:",";}span{top:12px;right:12px;width:10px;height:10px;position:absolute;border-radius:50%;background:",";}&:hover{background-color:",";i{color:",";}}@media screen and (max-width:1023px){left:10px;bottom:20px;transform:",";}"],h.ZP.colors.c_ffffff,h.ZP.colors.c_3E4543,h.ZP.colors.c_38B884,h.ZP.colors.c_3E4543,h.ZP.colors.c_ffffff,(function(e){return e.menuOpen?"translate(433px, 0)":"translate(0, -100%)"}));function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?be(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e){var t=e.sectionName,n=e.activeLocalStorage,o=e.singlePickup;p.Z.setApiKey(y.$),p.Z.setLanguage("pt"),p.Z.setRegion("pt");var s=(0,l.useState)([]),d=s[0],h=s[1],b=(0,l.useState)(!1),v=b[0],Z=b[1],w=(0,l.useState)(!1),P=w[0],k=w[1],O=(0,l.useState)(null),N=O[0],C=O[1],F=(0,l.useState)(!1),E=F[0],S=F[1],z=(0,l.useState)(!1),I=z[0],T=z[1],A=(0,f.FV)(x.rI),M=(0,a.Z)(A,2),D=M[0],B=M[1],V=(0,f.FV)(x.Hd),H=(0,a.Z)(V,2),q=(H[0],H[1]),R=(0,f.FV)(x.O9),Y=(0,a.Z)(R,2),J=(Y[0],Y[1]),Q=(0,f.FV)(x.l3),X=(0,a.Z)(Q,2),K=X[0],U=X[1],W=(0,f.FV)(x.d_),$=(0,a.Z)(W,2),G=($[0],$[1]),ee=(0,f.FV)(x.FC),ne=(0,a.Z)(ee,2),oe=ne[0],ie=ne[1],re=(0,f.FV)(x.cM),ae=(0,a.Z)(re,2),se=ae[0],ce=ae[1],le=(0,f.FV)(x.B_),de=(0,a.Z)(le,2),pe=(de[0],de[1]),ue=(0,f.FV)(x.wi),xe=(0,a.Z)(ue,2),me=(xe[0],xe[1]);(0,l.useEffect)((function(){return he(),setTimeout((function(){return u.NY.scrollTo(200)}),1e3),function(){B(null),q([]),J([]),U([])}}),[]),(0,l.useEffect)((function(){N&&(N.name||(S(!0),ge(N.slug)))}),[N]),(0,l.useEffect)((function(){K&&oe&&oe.length&&function(){var e=K.filter((function(e){return oe.find((function(t){return t.id===e}))})).map((function(e){return oe.find((function(t){return t.id===e}))}));if(e&&e.length){for(var t=(0,r.Z)(K),n=function(n){var o=t.findIndex((function(t){return t===e[n].id}));t[o]=e[n].slug},o=0;o<e.length;o++)n(o);U((0,r.Z)(t))}}(),K&&K.length&&K.includes("equipamentos-de-grandes-dimensoes")?I||T(!0):I&&T(!1)}),[oe,K]);var he=function(){var e=(0,i.Z)(c().mark((function e(){var t,o,i,a,s,l,d;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=undefined,o=void 0,!se||!se.length){e.next=4;break}return e.abrupt("return",null);case 4:return Z(!0),n&&(i=localStorage.getItem("pickuppoints"))&&i.length&&(a=new Date,s=JSON.parse(i),(l=!!s.expiry&&new Date(s.expiry))&&a.getTime()>l.getTime()?localStorage.removeItem("pickuppoints"):s.value&&s.value.length&&(t=0,ce((0,r.Z)(s.value)))),e.prev=6,e.next=9,(0,m.rL)(t,o);case 9:null===(d=e.sent).errorsMessage&&null===d.errorsMessageServer&&d.data&&(d.data.families&&d.data.families.length&&ie(d.data.families),d.data.locationTypes&&d.data.locationTypes.length&&pe(d.data.locationTypes),d.data.points&&d.data.points.length&&ce(d.data.points),d.data.filters&&d.data.filters.length&&me(d.data.filters),d.data.total&&d.data.total&&G(d.data.total)),Z(!1),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(6),console.log(e.t0),Z(!1);case 18:case"end":return e.stop()}}),e,null,[[6,14]])})));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=(0,i.Z)(c().mark((function e(t){var n,o,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,m.jJ)(t);case 3:(n=e.sent)&&n.post&&(o=(0,r.Z)(se),-1!=(i=o.findIndex((function(e){return e.slug===t})))?o[i]=ve(ve({},o[i]),n.post):o.push(n.post),C(ve({},o[i])),ce((0,r.Z)(o))),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:return e.prev=10,S(!1),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,7,10,13]])})));return function(t){return e.apply(this,arguments)}}();return(0,j.jsx)(g.Z,{full:!0,className:t,xHidden:!0,yHidden:!0,children:(0,j.jsxs)(je,{children:[(0,j.jsx)(L,{isOpen:P,isLoading:v,setLoading:Z,setMarkers:h,toggleMenu:k,isMarkerOpen:!!N,activeLocalStorage:n,markersLength:d?d.length:0}),(0,j.jsxs)(Ze,{children:[I&&(0,j.jsx)(fe,{menuOpen:P}),(0,j.jsx)(te,ve(ve({},N),{},{isLoading:E,onClose:function(){return C(null)}})),(0,j.jsx)(_,{position:D,single:o,markers:(0,r.Z)(d),activeMarker:N,onClickMarker:C}),(0,j.jsxs)(we,{active:v,children:[(0,j.jsx)("span",{children:(0,j.jsx)("i",{className:"fal fa-spin fa-loader"})}),(0,j.jsx)("span",{className:"nutmeg-16",children:"A carregar..."})]})]}),(P||N)&&(0,j.jsx)(_e,{marker:!!N})]})})}var je=d.ZP.div.withConfig({displayName:"Map__Container",componentId:"sc-1adpxvc-0"})(["display:flex;height:100vh;overflow:hidden;"]),Ze=d.ZP.div.withConfig({displayName:"Map__OuterMap",componentId:"sc-1adpxvc-1"})(["flex:1;inset:0;overflow:hidden;max-height:100vh;position:fixed;background-color:",";.cluster{display:flex;align-items:center;justify-content:center;width:51px !important;height:51px !important;div{margin-top:4px;width:100% !important;line-height:1 !important;font-size:12px !important;position:relative !important;color:",'!important;font-family:"Nutmeg",sans-serif !important;}}.gm-style{.gm-style-iw-t{.gm-style-iw-c{padding:0;box-shadow:none;border-radius:24px;.gm-style-iw-d{padding:0;overflow:hidden !important;> div > div{@media screen and (max-width:420px){max-width:calc(100vw - 20px) !important;}}}@media screen and (max-width:767px){transform:translate(-50%,-100%);margin-bottom:20px;}@media screen and (max-height:980px){max-height:unset !important;.gm-style-iw-d{max-height:unset !important;> div{> div{> div{display:flex;flex-direction:column;max-height:85vh;}@media screen and (max-height:980px){max-height:85vh !important;}}}}}}&:after{content:none;}}}.gm-bundled-control-on-bottom{display:none;}.gm-ui-hover-effect{top:12px !important;right:12px !important;display:flex !important;border-radius:16px !important;align-items:center !important;justify-content:center !important;width:40px !important;height:40px !important;background-color:',"!important;img{margin:2px !important;width:20px !important;height:20px !important;}}.gm-bundled-control{.gmnoprint{> div{border-radius:12px;> div{background-color:","!important;}}button{img{width:12px !important;height:12px !important;}}}> .gm-svpc{border-radius:10px !important;}> .gmnoprint:last-child{> div{border-radius:10px !important;> div{display:none;}}}}.gm-fullscreen-control{display:none;}.gm-style-cc,.gm-style div a div img{display:none;}@media screen and (max-width:530px){.gm-style-iw-a{.gm-style-iw-t{.gm-style-iw.gm-style-iw-c{max-width:100% !important;}}}}left:438px;@media screen and (max-width:1280px){left:380px;}@media screen and (max-width:1023px){left:0;}"],h.ZP.colors.c_A0A0A0,h.ZP.colors.c_ffffff,h.ZP.colors.c_ffffff,h.ZP.colors.c_E0E1E2),we=d.ZP.div.withConfig({displayName:"Map__PopLoading",componentId:"sc-1adpxvc-2"})(["top:50%;left:50%;z-index:5;padding:24px;display:flex;position:absolute;border-radius:24px;align-items:center;flex-direction:column;height:auto !important;justify-content:center;transition:all 600ms ease;color:",";background-color:",";opacity:",";pointer-events:",";transform:",";span:last-child{padding-top:16px;}i{font-size:24px;}"],h.ZP.colors.c_3C4643,h.ZP.colors.c_ffffff,(function(e){return e.active?"1":"0"}),(function(e){return e.active?"auto":"none"}),(function(e){return e.active?"translate(-50%, -50%) scale(1)":"translate(-50%, -50%) scale(0)"})),_e=(0,d.vJ)(["body{overflow:hidden;}@media screen and (max-width:1023px){header{a{img{filter:",";}}}}
1"],(function(e){return e.marker?"brightness(10)":"none"}))},6536:function(e,t,n){n.d(t,{z:function(){return s}});var o=n(4942),i=n(9501);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=function(e){var t=null,n=null,r=null;if(e&&e.length){t=[],n={},r={};for(var s=0;s<e.length;s++){var c=e[s],l=(0,o.Z)({},c.key,null);if(r[c.key]=c.defaultValue,t.push(a(a({},c),{},{type:c.type.toLowerCase()})),c.validations){var d=Object.keys(c.validations);if(d&&d.length){var p=null;switch(c.dataFormat){case"boolean":p=i.O7();break;case"number":p=i.Rx();break;default:p=i.Z_()}l[c.key]=p;for(var u=0;u<d.length;u++){var f=c.validations[d[u]];if(f.active)switch(d[u]){case"required":"boolean"==c.dataFormat?l[c.key]=l[c.key].oneOf([!0],"".concat(f.message)):l[c.key]=l[c.key].required("".concat(f.message));break;case"email":l[c.key]=l[c.key].email("".concat(f.message));break;case"min":l[c.key]=l[c.key].min(f.value,"".concat(f.message));break;case"max":l[c.key]=l[c.key].max(f.value,"".concat(f.message));break;default:l[c.key]=null}}}}l[c.key]&&(n[c.key]=l[c.key])}return{inputs:t,validations:n,initialValues:r}}}}}]);

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.