PageSourceSearch

https://www.enzonetfibra.com.br/_next/static/chunks/9254.c4e77c65f1caf4f6.js

js enzonetfibra.com.br collected 2026-10-08 17:29:43 UTC 9,263 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9254],{9254:function(e,n,t){t.r(n),t.d(n,{default:function(){return H}});var r,o,u,i,l,a,c,s=t(2253),d=t(4932),f=t(4043),p=t(5893),m=t(5243),b=t.n(m),h=t(7294);let g=(0,h.createContext)(null),v=g.Provider;function w(){let e=(0,h.useContext)(g);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function x(){return(x=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function y(e){let{children:n,className:t,id:r,placeholder:o,style:u,whenCreated:i,...l}=e,a=(0,h.useRef)(null),c=function(e,n){let[t,r]=(0,h.useState)(null);return(0,h.useEffect)(()=>{if(null!==e.current&&null===t){let t=new m.Map(e.current,n);null!=n.center&&null!=n.zoom?t.setView(n.center,n.zoom):null!=n.bounds&&t.fitBounds(n.bounds,n.boundsOptions),null!=n.whenReady&&t.whenReady(n.whenReady),r(t)}},[e,t,n]),t}(a,l),s=(0,h.useRef)(!1);(0,h.useEffect)(()=>{null!=c&&!1===s.current&&null!=i&&(s.current=!0,i(c))},[c,i]),(0,h.useEffect)(()=>()=>{null==c||c.remove()},[c]);let[d]=(0,h.useState)({className:t,id:r,style:u}),f=(0,h.useMemo)(()=>c?{__version:1,map:c}:null,[c]),p=f?h.createElement(v,{value:f},n):o??null;return h.createElement("div",x({},d,{ref:a}),p)}var k=t(3935);function C(e){return(0,h.forwardRef)(function(n,t){let{instance:r}=e(n).current;return(0,h.useImperativeHandle)(t,()=>r),null})}function z(e,n){return null==n?function(n,t){return(0,h.useRef)(e(n,t))}:function(t,r){let o=(0,h.useRef)(e(t,r)),u=(0,h.useRef)(t),{instance:i}=o.current;return(0,h.useEffect)(function(){u.current!==t&&(n(i,t,u.current),u.current=t)},[i,t,r]),o}}function E(e,n){let t=(0,h.useRef)(n);(0,h.useEffect)(function(){n!==t.current&&null!=e.attributionControl&&(null!=t.current&&e.attributionControl.removeAttribution(t.current),null!=n&&e.attributionControl.addAttribution(n)),t.current=n},[e,n])}function j(e,n){let t=(0,h.useRef)();(0,h.useEffect)(function(){return null!=n&&e.instance.on(n),t.current=n,function(){null!=t.current&&e.instance.off(t.current),t.current=null}},[e,n])}function N(e,n){let t=e.pane??n.pane;return t?{...e,pane:t}:e}function _(e){return function(n){var t;let r=w(),o=e(N(n,r),r);return E(r.map,n.attribution),j(o.current,n.eventHandlers),t=o.current,(0,h.useEffect)(function(){return(r.layerContainer??r.map).addLayer(t.instance),function(){var e;null==(e=r.layerContainer)||e.removeLayer(t.instance),r.map.removeLayer(t.instance)}},[r,t]),o}}let L=C(_(z(function(e,n){let{url:t,...r}=e;return{instance:new m.TileLayer(t,N(r,n)),context:n}},function(e,n,t){let{opacity:r,zIndex:o}=n;null!=r&&r!==t.opacity&&e.setOpacity(r),null!=o&&o!==t.zIndex&&e.setZIndex(o)}))),R=(r=function(e){return new m.Control.Zoom(e)},C((o=z(function(e,n){return{instance:r(e),context:n}}),function(e){let n=w(),t=o(e,n),{instance:r}=t.current,u=(0,h.useRef)(e.position),{position:i}=e;return(0,h.useEffect)(function(){return r.addTo(n.map),function(){r.remove()}},[n.map,r]),(0,h.useEffect)(function(){null!=i&&i!==u.current&&(r.setPosition(i),u.current=i)},[r,i]),t}))),I=(u=_(z(function(e,n){let{position:t,...r}=e,o=new m.Marker(t,r);return{instance:o,context:{...n,overlayContainer:o}}},function(e,n,t){n.position!==t.position&&e.setLatLng(n.position),null!=n.icon&&n.icon!==t.icon&&e.setIcon(n.icon),null!=n.zIndexOffset&&n.zIndexOffset!==t.zIndexOffset&&e.setZIndexOffset(n.zIndexOffset),null!=n.opacity&&n.opacity!==t.opacity&&e.setOpacity(n.opacity),null!=e.dragging&&n.draggable!==t.draggable&&(!0===n.draggable?e.dragging.enable():e.dragging.disable())})),(0,h.forwardRef)(function(e,n){let{instance:t,context:r}=u(e).current;return(0,h.useImperativeHandle)(n,()=>t),null==e.children?null:h.createElement(v,{value:r},e.children)})),O=(i=function(e,n){return{instance:new m.Popup(e,n.overlayContainer),context:n}},l=function(e,n,t,r){let{onClose:o,onOpen:u,position:i}=t;(0,h.useEffect)(function(){let{instance:t}=e;
1function l(e){e.popup===t&&(t.update(),r(!0),null==u||u())}function a(e){e.popup===t&&(r(!1),null==o||o())}return n.map.on({popupopen:l,popupclose:a}),null==n.overlayContainer?(null!=i&&t.setLatLng(i),t.openOn(n.map)):n.overlayContainer.bindPopup(t),function(){var e;n.map.off({popupopen:l,popupclose:a}),null==(e=n.overlayContainer)||e.unbindPopup(),n.map.removeLayer(t)}},[e,n,r,o,u,i])},a=z(i),c=function(e,n){let t=w(),r=a(N(e,t),t);return E(t.map,e.attribution),j(r.current,e.eventHandlers),l(r.current,t,e,n),r},(0,h.forwardRef)(function(e,n){let[t,r]=(0,h.useState)(!1),{instance:o}=c(e,r).current;(0,h.useImperativeHandle)(n,()=>o),(0,h.useEffect)(function(){t&&o.update()},[o,t,e.children]);let u=o._contentNode;return u?(0,k.createPortal)(e.children,u):null}));t(3183),t(8155);var S=t(1270),P=t(186),M=P.ZP.div.withConfig({componentId:"sc-fe8861ba-0"})(["width:100%;display:flex;flex-direction:column;width:100%;height:100%;margin-top:1rem;.map-container{width:100%;height:100%;position:relative;overflow:hidden;}.carousel-container{display:block;}.leaflet-container{z-index:0 !important;height:100% !important;width:100% !important;}@media (max-width:1200px){display:flex;flex-direction:column;align-items:center;}"]),Z=P.ZP.div.withConfig({componentId:"sc-fe8861ba-1"})(["z-index:1000;position:absolute;top:0;overflow:auto;width:auto;padding:1rem 0.5rem;::-webkit-scrollbar{width:4px;height:3px;border-radius:6px;}::-webkit-scrollbar-track{background:#f1f1f1;border-radius:6px;}::-webkit-scrollbar-thumb{background:",";border-radius:6px;}::-webkit-scrollbar-thumb:hover{background:",";border-radius:6px;}.button-overflow{gap:0.5rem;margin-bottom:0.25rem;display:flex;align-items:center;flex-wrap:wrap;overflow-x:auto;button{overflow:hidden;font-size:1rem;display:flex;padding:1rem 2rem;white-space:nowrap;align-items:center;justify-content:center;background-color:",";border-radius:40rem;border:none;color:",";-webkit-transition:all 150ms ease-in-out;transition:all 150ms ease-in-out;position:relative;:hover{filter:brightness(1.25);}}.reset{border-radius:40rem;background:transparent;color:",";&::after{content:'';width:110%;transition:all 0.5s ease;padding-top:100%;background:",";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:-1;}:hover{&::after{transform:translate(-50%,-50%) rotate(180deg);}}}.locale-button.selected{color:",";background:",";}}"],function(e){return e.theme.addresses.backgroundLight},function(e){return e.theme.addresses.backgroundBold},function(e){return e.theme.plan.background},function(e){return e.theme.footer.background},function(e){return e.theme.plan.background},function(e){return e.theme.footer.background},function(e){return e.theme.plan.background},function(e){return e.theme.footer.title});function A(e){var n=e.map,t=e.provider,r=e.localeSelected,o=e.setLocaleSelected,u=(0,S.y)().setCurrentAddresses,i=(0,h.useCallback)(function(e){var t=e.latitude,r=e.longitude,o=e.zoom;n.setView([t,r],o)},[n]),l=(0,h.useMemo)(function(){return t.locales.find(function(e){return e.id===r})},[r,t.locales]);return(0,p.jsx)(Z,{children:(0,p.jsxs)("div",{className:"button-overflow",children:[(0,p.jsx)("button",{className:"reset",onClick:function(){l?i({latitude:Number(l.latitude),longitude:Number(l.longitude),zoom:l.zoom||15}):i({latitude:t.latitude,longitude:t.longitude,zoom:t.zoom}),o(l?l.id:null)},children:"Centralizar"}),t.locales.map(function(e,n){return(0,p.jsx)("button",{className:"locale-button ".concat(e.id===r&&t.locales.length>1?"selected":""),onClick:function(){u(n),i({latitude:Number(e.latitude),longitude:Number(e.longitude),zoom:15}),o(e.id)},children:e.title},n)})]})})}var H=function(e){var n=e.Addresses,t=e.LocaleProvider,r=(0,S.y)().icon,o=(0,f._)((0,h.useState)(null),2),u=o[0],i=o[1],l=(0,f._)((0,h.useState)(null),2),a=l[0],c=l[1],m=(0,f._)((0,h.useState)(function(){return(0,d._)((0,s._)({},t),{locales:n})}),2),g=m[0],v=m[1],w=(0,h.useMemo)(function(){return b().icon({iconUrl:r||"/location-marker-solid.svg",iconSize:[32,32],iconAnchor:[0,20],popupAnchor:[13,-30]})},[r]);return(0,h.useEffect)(function(){v((0,d._)((0,s._)({},t),{locales:n}));var e=n.find(function(e){return e.main_address});e?c(e.id):n.length>0?c(n[0].id):c(null)},[n,t]),(0,h.useEffect)(function(){if(u&&null!==a){var e=n.find(function(e){return e.id===a});e&&u.setView([Number(e.latitude),Number(e.longitude)],e.zoom||15)}},[u,a,n]),(0,p.jsx)(M,{children:(0,p.jsxs)("div",{className:"map-container",children:[u&&(0,p.jsx)(A,{map:u,provider:g,localeSelected:a,setLocaleSelected:c}),(0,p.jsxs)(y,{center:[g.latitude,g.longitude],zoom:g.zoom,minZoom:4,scrollWheelZoom:!0,whenCreated:function(e){u||i(e)},zoomControl:!1,style:{height:"500px",width:"100%"},children:[(0,p.jsx)(L,{attribution:'\xa9 <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',noWrap:!0,url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,p.jsx)(R,{position:"bottomleft"}),g.locales.map(function(e,n){return(0,p.jsx)(I,{icon:w,position:[Number(e.latitude),Number(e.longitude)],children:(0,p.jsxs)(O,{children:[e.street," ",(0,p.jsx)("br",{})," ",e.main_address?"Principal":"Filial"]})},n)})]})]})})}}}]);

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.