PageSourceSearch

https://mapilio.com/_next/static/chunks/2449-da350a3d551ff530.js

js mapilio.com collected 2026-09-25 20:40:00 UTC 76,523 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2449,8346],{13548:function(e,t,n){n.d(t,{Z:function(){return j}});var o=n(26042),r=n(99534),i=n(828),a=n(85893),l=n(67294),s=n(45697),c=n.n(s),d=n(48452),u=n(70918),p=n(40793),x=n(82487),h=n(77852),m=n(2711),f=n.n(m),g=n(89969),y=n(66409);function j(e){var t=e.component,n=e.layout,s=(0,r.Z)(e,["component","layout"]);l.useEffect((function(){var e=document.querySelector("#jss-server-side");e&&e.parentElement.removeChild(e),f().init({once:!0,delay:50,duration:500,easing:"ease-in-out"})}),[]);var c=(0,i.Z)(function(){var e=(0,l.useState)("light"),t=e[0],n=e[1],o=(0,l.useState)(h.Z[0]),r=o[0],i=o[1],a=(0,l.useState)(!1),s=a[0],c=a[1],d=function(e){window.localStorage.setItem("themeMode",e),n(e)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"green",t=-1===h.Z.indexOf(e)?"green":e;window.localStorage.setItem("appThemePalette",t),i(t)};return(0,l.useEffect)((function(){window.document.body.classList.add("noScroll")}),[]),(0,l.useEffect)((function(){var e=window.localStorage.getItem("themeMode");e?n(e):d("light");var t=window.localStorage.getItem("appThemePalette");t?i(t):u("green"),c(!0)}),[]),[t,function(){d("light"===t?"dark":"light")},r,u,s]}(),5),m=c[1],j=c[2],v=c[3],b=c[4];(0,l.useEffect)((function(){f().refresh()}),[b,j]);var w="dark";return(0,a.jsx)(d.Z,{theme:(0,x.Z)(w),children:(0,a.jsxs)(y.ZP,{children:[(0,a.jsx)(p.ZP,{}),(0,a.jsx)(u.Z,{elevation:0,children:(0,a.jsxs)(n,{themeMode:w,themeToggler:m,paletteType:j,setThemePalette:v,children:[(0,a.jsx)(g.Z,{}),(0,a.jsx)(y.ZP,{children:(0,a.jsx)(t,(0,o.Z)({themeMode:w,paletteType:j},s))})]})})]})})}j.propTypes={component:c().elementType.isRequired,layout:c().elementType.isRequired}},92103:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(85893),r=(n(67294),n(43963)),i=n(25617),a=n(82487);function l(e){var t=e.target,n=e.children,l=(0,i.I0)(),s=(0,i.v9)((function(e){return e.popupStatus.fPAnchorEl})),c=Boolean(s)&&s.id===t,d=c?"popup":void 0,u="baseMapBtn"===t?"100px !important":void 0;return(0,o.jsx)(r.ZP,{sx:{opacity:.9,top:"shapeTable"!==t&&"-10px",boxShadow:(0,a.Z)().shadows[0],"& > *":{height:"auto",overflow:"visible"},"& > .MuiPaper-elevation":{bottom:"shapeTable"!==t&&"90px",left:"shapeTable"!==t&&u,top:"shapeTable"!==t&&"initial !important",backgroundColor:"transparent"}},id:d,open:c,anchorEl:s,onClose:function(e){e.stopPropagation(),l({type:"FOOTER_POPUP",payload:null})},anchorOrigin:{vertical:"shapeTable"!==t?"top":"bottom",horizontal:"shapeTable"!==t?"center":"bottom"},transformOrigin:{vertical:"bottom",horizontal:"shapeTable"!==t?"left":"right"},children:n})}},94341:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(85893),r=(n(67294),n(30120)),i=n(92103),a=n(62097),l=n(70918),s=function(e){var t=e.children,n=e.width,r=e.target,i=(0,a.Z)();return(0,o.jsx)(l.Z,{sx:{backgroundColor:i.palette.background.paper,padding:"shapeTable"!==r&&i.spacing(5,8),width:n,borderRadius:1},children:t})},c=function(e){var t=e.children,n=e.target,a=e.width;return(0,o.jsx)(i.Z,{target:n,children:(0,o.jsx)(s,{width:a,target:n,children:(0,o.jsx)(r.Z,{display:"flex",flexDirection:"column",children:t})})})}},79867:function(e,t,n){n.r(t);var o=n(14924),r=n(85893),i=n(30120),a=n(29630),l=(n(67294),n(85759)),s=n(62097),c=n(77364),d=n(25617),u=n(5833),p=n(80655),x=n(11163);t.default=function(){var e,t=(0,s.Z)(),n=(0,c.Z)(),h=(0,x.useRouter)(),m=(0,d.v9)((function(e){return e.loginModalStatus.boolean})),f=(0,d.I0)();return(0,r.jsx)(i.Z,{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",marginLeft:5,marginBottom:2,sx:(e={cursor:"pointer"},(0,o.Z)(e,t.breakpoints.down("laptopMd"),{transform:"translateX(-20px)"}),(0,o.Z)(e,t.breakpoints.down("laptopMd"),{marginLeft:t.spacing(4)}),(0,o.Z)(e,t.breakpoints.down("phoneSm"),{width:"100%",justifyContent:"flex-start",marginLeft:t.spacing("9px"),marginBottom:3}),e),children:(0,r.jsxs)(i.Z,{mb:2,sx:{display:"flex",alignItems:"center",cursor:"pointer","& > svg":{marginRight:3}},onClick:function(){return n?(f({type:"GET_TOKEN_SUCCESS",payload:{}}),f({type:"GET_USER_INDEX_TYPE",payload:{}}),f({type:"GET_USER_INFORMATION",payload:null}),(0,p.d8)("auth","",1),void h.reload()):void f({type:"STATUS_LOGIN_MODAL",payload:m})},children:[n?(0,r.jsx)(l.m35,{color:t.palette.primary.main}):(0,r.jsx)(u.Z,{color:t.palette.primary.main}),n?(0,r.jsx)(a.Z,{color:t.palette.primary.main,children:"Logout"}):(0,r.jsx)(a.Z,{color:t.palette.primary.main,children:"Login"})]})})}},48346:function(e,t,n){n.r(t);var o=n(85893),r=(n(67294),n(9942)),i=n(30120),a=n(41796),l=n(85759),s=n(82487);t.default=function(e){var t=e.onHover,n=e.text,c=e.width,d=e.height,u=(e.id,(0,s.Z)());return(0,o.jsx)(r.Z,{unmountOnExit:!0,in:t,children:(0,o.jsxs)(i.Z,{position:"absolute",width:"100%",left:"50%",top:"50%",height:"100%",borderRadius:"6px",sx:{transform:"translate(-50%,-50%)",backgroundColor:(0,a.Fq)(u.palette.mapColors.purple,.3),"&>svg":{position:"absolute",left:"50%",top:"50%",transform:n?"translate(-50%,-90%)":"translate(-50%,-50%)"}},children:[(0,o.jsx)(l.tEF,{width:c,height:d}),n&&(0,o.jsx)(i.Z,{position:"absolute",left:"50%",top:"50%",whiteSpace:"nowrap",fontSize:12,sx:{textTransform:"capitalize",transform:"translate(-50%,10%)",color:u.palette.text.white,marginTop:1},children:n})]})})}},6892:function(e,t,n){n.d(t,{Z:function(){return d}});var o=n(85893),r=n(67294),i=n(79072),a=n(25617),l=n(80655),s=n(36594),c=n(70286),d=function(){var e=(0,a.v9)((function(e){return e.mapReducer.ctrlRef})),t=(0,a.v9)((function(e){return e.marketplaceReducer.marketplaceProjects})),n=(0,a.I0)();return(0,r.useEffect)((function(){n({type:s.lZ,payload:null}),(0,l.j2)({url:"".concat("https://end.mapilio.com","/api/get-marketplaces")}).then((function(e){n({type:s.WB,payload:JSON.parse(e.data.geojson)})})).catch((function(e){n({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,type:"error",text:"An error occurred. Please try again."}})}))}),[]),(0,r.useEffect)((function(){e&&(e.ctrl.style.display="none")}),[e]),(0,o.jsx)(i.ZP,{container:!0,spacing:0,display:"flex",width:"100%",height:"100%",children:(0,o.jsx)(i.ZP,{item:!0,width:"100%",children:(0,r.useMemo)((function(){return!!t&&(0,o.jsx)(c.Z,{page:"marketplace"})}),[])})})}},62099:function(e,t,n){n.r(t),n.d(t,{Dashboard:function(){return tt.Z},DataVerification:function(){return Ye},Embed:function(){return Wt},ImageRequest:function(){return Zt},Map:function(){return qe},Marketplace:function(){return Ne.Z},VerifierTool:function(){return ct},Walkthougher:function(){return et}});var o=n(85893),r=n(67294),i=n(25617),a=n(62097),l=n(61225),s=n(79072),c=n(77364),d=n(66409),u=n(14924),p=n(26042),x=n(69396),h=n(30120),m=n(9942),f=n(74721),g=n(85759),y=n(36594),j=(n(94341),n(72679)),v="/_next/static/media/SatelliteMap.e6ab5eae.png",b="/_next/static/media/MapboxMap.e9782ae2.png",w=(n(9091),n(56901)),Z=((0,w.Z)((function(){return{arrow:{"&:before":{border:"none"},color:(0,a.Z)().palette.mapColors.primary},tooltip:{backgroundColor:(0,a.Z)().palette.mapColors.primary,border:"none",borderRadius:2,color:(0,a.Z)().palette.text.white}}})),function(){var e=(0,r.useState)(!0),t=e[0],n=e[1],a=(0,i.v9)((function(e){return e.mapReducer.currentMap}));return(0,o.jsx)(h.Z,{sx:{pointerEvents:"auto",cursor:"pointer",userSelect:"none"},position:"relative",component:"img",width:"100%",height:"100%",src:t?v:b,onClick:function(){null===a||void 0===a||a.setLayoutProperty("mapbox-satellite","visibility",t?"visible":"none"),n(!t)}})}),S=function(){var e=(0,a.Z)(),t=(0,l.Z)("(max-width:650px)"),n=(0,i.v9)((function(e){return e.mapReducer}
1)),r=n.ctrlRef,c=n.imageView,d=(0,i.I0)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s.ZP,{container:!0,height:"0px",zIndex:"0",sx:{pointerEvents:"none",width:"100%"},children:[(0,o.jsx)(h.Z,{width:"100%",position:"fixed",bottom:"0",height:"150px",sx:{background:e.palette.gradients.footer}}),(0,o.jsxs)(s.ZP,{container:!0,height:"10px",width:"100%",flexWrap:"nowrap",zIndex:"3",position:"fixed",bottom:"0",children:[(0,o.jsx)(s.ZP,{item:!0,xs:4,sx:{backgroundColor:e.palette.mapColors.purple,borderTopLeftRadius:"15px"}}),(0,o.jsx)(s.ZP,{item:!0,xs:4,sx:{backgroundColor:"#929BCC"}}),(0,o.jsx)(s.ZP,{item:!0,xs:4,sx:{backgroundColor:e.palette.mapColors.purple}}),(0,o.jsx)(s.ZP,{item:!0,xs:4,sx:{backgroundColor:"#929BCC",borderTopRightRadius:"15px"}})]}),(0,o.jsx)(m.Z,{unmountOnExit:!0,in:c&&!(null===c||void 0===c?void 0:c.open),children:(0,o.jsx)(h.Z,{display:{xs:"none",sm:"block"},position:"absolute",right:"32px",bottom:"55px",sx:(0,u.Z)({pointerEvents:"auto",cursor:"pointer","&:hover":{opacity:"0.5",transition:"0.2s"}},e.breakpoints.down("phone"),{right:"24px"}),onClick:function(){return d({type:y.lZ,payload:(0,x.Z)((0,p.Z)({},c),{open:!0})})},children:(0,o.jsx)(g.XBm,{})})}),(0,o.jsx)(h.Z,{position:"fixed",left:"22px",bottom:"27px",width:"77px",height:"60px",zIndex:"99",sx:{transition:"0.1s ease-in",borderRadius:1},children:(0,o.jsx)(Z,{})})]}),(0,o.jsx)(h.Z,{sx:{position:"absolute",right:t?"2rem":"2.4rem",bottom:t?"2.23rem":"1.3rem",color:e.palette.background.paper,zIndex:99},children:(0,o.jsx)(f.Z,{fontSize:"small",sx:{cursor:"pointer",color:e.palette.buttonColors.apply},onClick:function(){r&&!r.ctrl.style.display&&t?r.ctrl.style.display="block":!r||r.ctrl.style.display||t?r&&"block"===r.ctrl.style.display?(r.ctrl.style.display="none",d({type:"CTRL_CURRENT",payload:{ctrl:r.ctrl,display:!1}})):r&&"none"===r.ctrl.style.display&&(r.ctrl.style.display="block",d({type:"CTRL_CURRENT",payload:{ctrl:r.ctrl,display:!0}})):r.ctrl.style.display="none"}})})]})},T=n(93481),k=function(){var e=(0,a.Z)(),t=(0,i.I0)(),n=(0,i.v9)((function(e){return e.allToggle.menuBoolean})),r=(0,i.v9)((function(e){return e.shapeReducer.status})),l=(0,i.v9)((function(e){return e.mapReducer.currentDraw})),s=(0,i.v9)((function(e){return e.mapReducer.currentMap})),c=(0,i.v9)((function(e){return e.shapeReducer.coordinates}));return(0,o.jsx)(h.Z,{alignSelf:"flex-end",position:"absolute",mt:-5,sx:{fontSize:14,color:e.palette.text.secondaryLight,cursor:"pointer"},onClick:function(){return null===c?(l.deleteAll(),l.changeMode("simple_select"),t({type:y.b5,payload:"EMPTY"}),t({type:y.df,payload:n}),t({type:y.ET,payload:!1}),void(s._canvas.style.pointerEvents="auto")):void("EMPTY"===r?t({type:"TOGGLE_MAP_MENU",payload:n}):window.confirm("If you go back, the shape you drew will be deleted. Are you sure?")&&(l.deleteAll(),l.changeMode("simple_select"),t({type:y.b5,payload:"EMPTY"}),t({type:y.df,payload:n}),s._canvas.style.pointerEvents="auto"))},children:"Close"})},C=n(68346),_=n(72389),I=n(41664),E=n.n(I),P=n(37394),R=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],i=(0,r.useRef)(null),a=function(e){var t;(null===i||void 0===i||null===(t=i.current)||void 0===t?void 0:t.contains(e.target))||n(!1)};return(0,r.useEffect)((function(){return document.addEventListener("mousedown",a),function(){return document.removeEventListener("mousedown",a)}})),(0,o.jsxs)(h.Z,{display:"flex",alignItems:"center",mt:3,pl:5,children:[(0,o.jsx)(P.Z,{popover:t,myRef:i,handleClickInside:function(){return n(!t)},setPopover:n}),(0,o.jsx)(E(),{href:"/dashboard",children:(0,o.jsx)(C.Z,{sx:{textDecoration:"none",mx:5},children:(0,o.jsx)(_.Z,{title:"Dashboard",placement:"bottom-start",arrow:!0,children:(0,o.jsx)(h.Z,{children:(0,o.jsx)(h.Z,{display:"flex",alignItems:"center",sx:{cursor:"pointer"},children:(0,o.jsx)(g.QGC,{})})})})})})]})},A=n(99534),L=n(29630),M=n(41796),D=n(85050),F=n(62348),O=n(18661),z=n(80655),G=n(32912),q=n(23855),N=n(57412),H=n(56760),U=n(96046),B=n(57822),W=n(48346),Y=function(e){var t=e.filename,n=e.imageHash,l=e.captureDate,s=e.imageAmount,c=e.sequenceUUID,d=(e.setFeedDetail,e.setDetail,e.coordinate),u=(0,a.Z)(),p=(0,r.useState)(!1),x=p[
10],m=p[1],f=(0,r.useState)(!1),y=f[0],v=f[1],b=(0,r.useState)(""),w=b[0],Z=b[1],S=(0,i.v9)((function(e){return e.mapReducer})).currentMap;return(0,r.useEffect)((function(){Z("".concat("https://cdn.mapilio.com/im","/").concat(n,"/").concat(t,"/240"))}),[]),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(h.Z,{width:"100%",sx:{backgroundColor:(0,M.Fq)(u.palette.mapColors.light,.2)},borderRadius:"2px",mb:3,children:(0,o.jsx)(h.Z,{position:"relative",fontSize:0,overflow:"hidden",onClick:function(){(0,B.AI)(d,16),(0,B.CA)(S,c)},onMouseLeave:function(){return v(!1)},maxHeight:"110px",borderRadius:"4px",sx:{color:u.palette.text.white,cursor:"pointer"},children:(0,o.jsxs)(h.Z,{onMouseOver:function(){return v(!0)},children:[(0,o.jsx)(h.Z,{component:j.LazyLoadImage,effect:"blur",src:w,width:"100%",afterLoad:function(){return m(!0)},overflow:"hidden",sx:{display:x?"block":"none",objectFit:"cover",objectPosition:"center",height:"110px"}}),!x&&(0,o.jsx)(N.Z,{width:"100%",height:110,animation:"wave",sx:{transform:"none",backgroundColor:u.palette.skeleton.secondary}}),(0,o.jsx)(h.Z,{position:"absolute",sx:{background:u.palette.gradients.photo},width:"100%",height:"40%",bottom:"0"}),(0,o.jsxs)(h.Z,{fontSize:{lg:12,sm:10},onMouseOver:function(){return v(!0)},children:[x&&(0,o.jsx)(L.Z,{variant:"subtitle1",position:"absolute",left:"0",bottom:"0",ml:3,mb:2,children:l}),(0,o.jsx)(U.Z,{lgDown:!0,children:(0,o.jsxs)(h.Z,{display:"flex",alignItems:"center",position:"absolute",bottom:"0",right:"0.5rem",mb:2,children:[(0,o.jsx)(L.Z,{variant:"subtitle1",mr:2,children:s}),(0,o.jsx)(g.uf0,{})]})})]}),(0,o.jsx)(W.default,{onHover:y,width:50,height:28})]})})})})},V=function(e){var t=e.filename,n=e.imageHash,r=e.captureDate,i=e.imageAmount,a=e.sequenceUUID,l=e.loading,s=e.coordinate,c=(0,H.Z)();return(0,o.jsx)(o.Fragment,{children:l?[0,1,2].map((function(e){return(0,o.jsx)(N.Z,{width:"100%",height:120,animation:"wave",sx:{transform:"none",backgroundColor:c.palette.skeleton.secondary,marginBottom:2,borderRadius:2}})})):(0,o.jsx)(Y,{filename:t,imageHash:n,captureDate:r,imageAmount:i,sequenceUUID:a,coordinate:s})})},X=n(18377),Q=function(){var e=(0,a.Z)();return(0,o.jsxs)(X.Z,{display:"flex",flexDirection:"column",alignItems:"center",children:[(0,o.jsx)(X.Z,{marginTop:9,children:(0,o.jsx)(g.mR0,{})}),(0,o.jsx)(L.Z,{variant:"overline",sx:{color:e.palette.text.default,marginTop:5,textAlign:"center"},children:"You don't have a shot right now. You can shoot with our mobile application."}),(0,o.jsxs)(X.Z,{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:"space-between",marginTop:10,children:[(0,o.jsx)(X.Z,{component:"a",href:"https://play.google.com/store/apps/details?id=com.mapilio.app",target:"_blank",children:(0,o.jsx)(g.kpP,{})}),(0,o.jsx)(X.Z,{component:"a",href:"https://apps.apple.com/tr/app/mapilio/id1609035791",target:"_blank",children:(0,o.jsx)(g.dkQ,{})})]}),(0,o.jsx)(L.Z,{variant:"overline",sx:{color:e.palette.text.default,textAlign:"center",marginTop:3},children:"Capture images to generate map data. Get started with our mobile apps."}),(0,o.jsxs)(L.Z,{component:"span",variant:"subtitle1",sx:{color:e.palette.text.default,textAlign:"center",marginTop:5,textTransform:"initial"},children:["Learn more about",(0,o.jsx)(E(),{href:"/app",sx:{cursor:"pointer"},children:(0,o.jsx)(L.Z,{sx:{color:e.palette.primary.light,fontSize:12,textDecoration:"none",marginLeft:"4px",cursor:"pointer"},children:"contributing images."})})]})]})},K=n(54225),J=n(1453),$=function(e){var t=e.text,n=e.keyIcon,r=e.keyText,i=e.secondaryKeyText,l=e.secondaryKeyIcon,c=e.plus,d=e.titleGenerator,p=(0,a.Z)();return(0,o.jsxs)(s.ZP,{container:!0,item:!0,xs:12,justifyContent:"space-between",alignItems:"center",mt:3,sx:(0,u.Z)({userSelect:"none"},p.breakpoints.between("md","lg"),{fontSize:12}),children:[d(t),(0,o.jsxs)(h.Z,{display:"flex",alignItems:"center",sx:{color:p.palette.text.dark},children:[(0,o.jsxs)(h.Z,{py:2,px:3,fontSize:12,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:p.shadows[0],sx:{color:p.palette.text.default,"&>div>svg":{verticalAlign:"middle"}},children:[n&&(0,o.jsx)(h.Z,{mr:1,children:n}),r&&r,l&&l]}),c&&(0,o.jsx)(h.Z,{marginX:2,children:"+"}),i&&(0,o.jsxs)(h.Z,{padding:3,fontSize:12,borderRadius:2,textAlign:"center",boxShadow:p.shadows[0],sx:{color:p.palette.text.default,"&>div>svg":{verticalAlign:"middle"}},children:[l&&l,i&&i]})]})]})},ee=n(20724),te=n(82487),ne=function(e){var t=e.text,n=e.coordinates,a=(0,i.I0)(),l=(0,r.useRef)(),s=(0,te.Z)(),c=(0,i.v9)((function(e){return e.mapReducer.currentDraw}));return(0,o.jsxs)(h.Z,{ref:l,display:"flex",alignItems:"center",justifyContent:"Project List"!==t&&"center",alignSelf:"flex-start",mb:2,onClick:function(){(null===n||window.confirm("If you go back, the shape you drew will be deleted. Are you sure?"))&&(c.deleteAll(),c.changeMode("simple_select"),a({type:"SHAPE_STATUS",payload:"EMPTY"}),a({type:"UPDATE_SHAPE_INFO",payload:{}}))},sx:{cursor:"pointer",color:s.palette.primary.main},children:[(0,o.jsx)(ee.Z,{sx:{width:"13px",height:"13px"}}),(0,o.jsx)(L.Z,{children:t})]})},oe=n(47850),re=n(78285),ie=function(e){e.type;var t=function(e){switch(e.keyCode){case 8:case 46:window.confirm("If you delete shape, changes you've been made will be deleted. Are you sure?")&&(null===j||void 0===j||j.deleteAll(),null===j||void 0===j||j.changeMode("draw_polygon"),l({type:"SHAPE_STATUS",payload:"DRAWING"}),l({type:"UPDATE_SHAPE_INFO",payload:{}}));break;case 27:window.confirm("If you go back, the shape you drew will be deleted. Are you sure?")&&(null===j||void 0===j||j.deleteAll(),null===j||void 0===j||j.changeMode("simple_select"),y.setMinZoom(1),l({type:"SHAPE_STATUS",payload:"EMPTY"}),l({type:"UPDATE_SHAPE_INFO",payload:{}}));break;case 80:m.area||null===j||void 0===j||j.changeMode("draw_polygon")}},n=(0,a.Z)(),l=(0,i.I0)(),c=(0,r.useState)(!0),d=c[0],u=c[1],p=(0,i.v9)((function(e){return e.shapeReducer})),x=p.coordinates,m=p.shapeInfo,f=p.selected,g=(0,i.v9)((function(e){return e.mapReducer})),y=g.currentMap,j=g.currentDraw,v=(0,oe.Z)().userInfo;(0,r.useEffect)((function(){(0,re.n)(n,v,m)}),[m,l,n.palette.background.default]),(0,r.useEffect)((function(){"[email protected]"!==v.email?"WAIT"===f&&null!==x&&m.area<v.shape_limit&&0!==m.area&&!m.overlap?u(!1):u(!0):u(!1)}),[u,f,x,m]),(0,r.useEffect)((function(){y.on("zoomend",(function(){Math.round(y.getZoom())<12?(l({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,type:"error",text:"Please zoom-in for draw."}}),y._canvas.style.touchAction="none"):l({type:"ALERT_TOAST_TOGGLE",payload:{open:!1}})}));return function(){null}}),[y]);var b=function(e){return(0,o.jsx)(L.Z,{variant:"overline",sx:{color:n.palette.text.purpleDark,lineHeight:2},children:e})};return(0,r.useEffect)((function(){return document.addEventListener("keyup",t),function(){null===document||void 0===document||document.removeEventListener("keyup",t)}}),[m]),(0,o.jsxs)(s.ZP,{container:!0,flexDirection:"column",alignItems:"center",children:[(0,o.jsx)(ne,{text:"Back",coordinates:x}),(0,o.jsxs)(s.ZP,{item:!0,xs:12,textAlign:"center",mt:4,mb:4,children:[b("How to draw?"),(0,o.jsxs)(L.Z,{variant:"overline",sx:{color:n.palette.text.dark,display:"block"},children:[" ","You made a mistake in the polygon drawing. Please draw the shape so that there is no intersection."," "]})]}),(0,o.jsx)(s.ZP,{mt:8,item:!0,xs:12,children:(0,o.jsx)(K.Z,{disabled:d,onClick:function(){l({type:"SHAPE_STATUS",payload:"DONE"}),null===j||void 0===j||j.changeMode("simple_select")},sx:{"&.Mui-disabled":{backgroundColor:n.palette.buttonColors.cancel,color:n.palette.text.white},backgroundColor:n.palette.buttonColors.purple,transition:"0.3s ease-in-out","&:hover":{backgroundColor:n.palette.buttonColors.purple,opacity:.7}},children:"Done"})}),(0,o.jsxs)(h.Z,{width:"80%",position:"absolute",bottom:"2rem",children:[(0,o.jsx)($,{text:"Cancel drawing",keyText:"esc",plus:!1,titleGenerator:b}),(0,o.jsx)($,{text:"Delete feature",keyIcon:(0,o.jsx)(J.Z,{sx:{width:"0.6em",height:"0.6em"}}),keyText:"delete",plus:!1,titleGenerator:b}),(0,o.jsx)($,{text:"Drag to zoom",keyText:"shift",plus:!1,titleGenerator:b}),m.area?"":(0,o.jsx)($,{text:"Draw Shape",keyText:"p",plus:!1,titleGenerator:b})]})]})},ae=n(47568),le=n(34051),se=n.n(le),ce=function(e){var t=e.text,n=e.km,r=(e.type,e.toggle,e.kmGenerator),i=e.subTitleGenerator,l=(0,a.Z)();return(0,o.jsx)(s.ZP,{container:!0,sx:(0,u.Z)({},l.breakpoints.between("md","lg"),{flexDirection:"column",alignItems:"flex-start"}),mt:3,children:(0,o.jsxs)(s.ZP,{item:!0,display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",mb:2,children:[i(t),r(n)]})})},de=n(11163),ue=function(){var e=(0,a.Z)(),t=(0,i.I0)(),l=(0,r.useState)(""),c=l[0],d=l[1],u=(0,r.useState)(!1),p=u[0],x=u[1],m=(0,r.useState)(!0),f=m[0],y=m[1],j=(0,r.useState)(0),v=j[0],b=j[1],w=(0,i.v9)((function(e){return e.allToggle.mapilioToggle})),Z=(0,i.v9)((function(e){return e.mapReducer.currentDraw})),S=(0,i.v9)((function(e){return e.mapReducer.currentMap})),T=(0,i.v9)((function(e){return e.shapeReducer.shapeInfo})),k=(0,i.v9)((function(e){return e.auth.accountType.type.key})),C=(0,de.useRouter)(),_=function(e,t){for(var n=e.split(","),o=n[0].match(/:(.*?);/)[1],r=atob(n[1]),i=r.length,a=new Uint8Array(i);i--;)a[i]=r.charCodeAt(i);return new File([a],t,{type:o})},I=function(){var e=(0,ae.Z)(se().mark((function e(o){var r,i,a,l,s;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o.preventDefault(),x(!0),r=Z.getAll(),e.next=5,(0,B.ss)(S);case 5:i=e.sent,a=_(i,"shape.png"),l=n(6230),(s=new l).append("options[parameters][organization_key]",k),s.append("options[parameters][name]",c),s.append("options[parameters][area]",T.area),s.append("options[parameters][thumbnail]",a),s.append("options[parameters][polygon]",JSON.stringify(r.features[0].geometry)),(0,z.j2)({url:"".concat("https://end.mapilio.com","/api/function/shapes/shape/createShape"),method:"POST",data:s}).then((function(e){C.push("/dashboard/shapes"),t({type:"SHAPE_STATUS",payload:"EMPTY"}),x(!1)})).catch((function(e){t({type:"SHAPE_STATUS",payload:"EMPTY"}),t({type:"UPDATE_SHAPE_INFO",payload:{}}),x(!1),t({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,type:"error",text:"An error occurred. Please try again."}})}));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(t){return(0,o.jsx)(L.Z,{variant:"caption",sx:{color:e.palette.text.purpleDark},children:t})};(0,r.useEffect)((function(){b(T.area.toFixed(2))}),[]);return(0,r.useEffect)((function(){c.trim().length>=5?y(!1):y(!0)}),[c]),(0,o.jsxs)(s.ZP,{container:!0,flexDirection:"column",alignItems:"flex-start",children:[(0,o.jsx)(ne,{text:"Shape List"}),(0,o.jsx)(L.Z,{variant:"caption",fontWeight:600,mt:3,sx:{textTransform:"uppercase",color:e.palette.text.secondary},children:"Ground"}),(0,o.jsx)(h.Z,{width:"100%",border:"1px solid #CBD1D9",sx:{opacity:.5},mt:1,mb:5}),(0,o.jsxs)(s.ZP,{item:!0,xs:12,width:"100%",children:[E("Imagery Layers"),(0,o.jsx)(ce,{text:"Mapilio Public",km:v,toggle:w,type:"MAPILIO_PUBLIC_TOGGLE",kmGenerator:function(t){return(0,o.jsxs)(L.Z,{variant:"h6",display:"inline-block",ml:2,sx:{color:e.palette.text.dark},children:[t," Km\xb2"]})},titleGenerator:E,subTitleGenerator:function(t){return(0,o.jsx)(L.Z,{variant:"overline",sx:{color:e.palette.text.default},children:t})}})]}),(0,o.jsxs)(s.ZP,{container:!0,item:!0,xs:12,alignItems:"center",justifyContent:"center",mt:7,children:[(0,o.jsx)(h.Z,{component:"input",placeholder:"Shape Name *",value:c,width:"100%",mb:6,minLength:6,required:!0,onChange:function(e){return d(e.target.value)},sx:{borderRadius:1,outline:"none",border:"1px solid ".concat(e.palette.mapColors.light),height:44,padding:e.spacing(1,4),color:e.palette.text.default}}),(0,o.jsxs)(h.Z,{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",children:[(0,o.jsxs)(K.Z,{variant:"outlined",sx:{textTransform:"capitalize",whiteSpace:"nowrap",marginRight:4,color:e.palette.text.purple,border:"none",borderRadius:1,height:"30px",fontSize:16,fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center",transition:"0.3s ease-in-out","&:hover":{border:"none",backgroundColor:"transparent"}},onClick:function(){t({type:"SHAPE_STATUS",payload:"DRAWING"});var e=Z.getAll();Z.changeMode("direct_select",{featureId:e.features[0].id})},children:[(0,o.jsx)(h.Z,{marginRight:2,marginBottom:-2,children:(0,o.jsx)(g.Wtq,{width:22,height:22,color:e.palette.text.purple})}),"Edit Shape"]}),(0,o.jsx)(h.Z,{height:40,onClick:function(){c.trim().length<=5&&t({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,text:"Shape name must be minimum 6 character.",type:"error"}})},children:p?(0,o.jsx)(K.Z,{type:"submit",disabled:!0,sx:{whiteSpace:"nowrap",width:"100%",height:40,color:"".concat(e.palette.text.white," !important"),backgroundColor:c.trim().length<=5?"rgba(0,0,0,0.3)":e.palette.buttonColors.apply,cursor:"pointer",transition:"0.3s ease-in-out","&:hover":{backgroundColor:e.palette.buttonColors.apply,opacity:.8}},children:"Creating..."}):(0,o.jsx)(K.Z,{onClick:I,type:"submit",disabled:f,sx:{whiteSpace:"nowrap",width:"100%",height:40,color:"".concat(e.palette.text.white," !important"),backgroundColor:c.trim().length<=5?"rgba(0,0,0,0.3)":e.palette.buttonColors.apply,paddingX:"8px",cursor:"pointer",transition:"0.3s ease-in-out","&:hover":{backgroundColor:e.palette.buttonColors.apply,opacity:.8}},children:"Create Shape"})})]})]})]})},pe=n(50233),xe=function(e){var t=e.svg,n=e.text,r=e.color,a=(0,i.I0)(),l=(0,i.v9)((function(e){return e.mapReducer.currentDraw})),c=pe.h.getState().mapReducer.currentMap;return(0,o.jsx)(s.ZP,{item:!0,xs:"Draw Polygon"===n?8:6,lg:"Draw Polygon"===n?7:6,width:"100%",md:12,display:"flex",justifyContent:"center",mb:{lg:"auto",md:3,xs:"auto"},onClick:"New Shape"===n&&function(){c.getZoom()>8?(a({type:"SHAPE_STATUS",payload:"DRAWING"}),l.changeMode("draw_polygon"),c.setMinZoom(8)):a({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,text:"Please zoom in on the map so you can draw!",type:"error"}})},children:(0,o.jsxs)(K.Z,{component:"span",sx:{padding:0,width:134,backgroundColor:r,"&:hover":{backgroundColor:r,opacity:.9}},children:[t,(0,o.jsx)(L.Z,{component:"span",variant:"body2",whiteSpace:"nowrap",ml:2,children:n})]})})},he=function(e){var t=e.title,n=e.date,i=e.image,a=e.id,l=(0,r.useState)(!1),c=l[0],d=l[1],u=(0,te.Z)();return(0,o.jsxs)(s.ZP,{container:!0,item:!0,xs:12,mr:u.spacing(3),mb:u.spacing(2),children:[(0,o.jsxs)(s.ZP,{container:!0,item:!0,justifyContent:"space-between",alignItems:"center",xs:12,sx:{mb:2},children:[(0,o.jsx)(L.Z,{variant:"overline",sx:{color:u.palette.text.default},children:t}),(0,o.jsx)(L.Z,{variant:"subtitle1",sx:{color:u.palette.text.light},children:n})]}),(0,o.jsx)(s.ZP,{item:!0,xs:12,position:"relative",display:"flex",justifyContent:"flex-end",onMouseEnter:function(){return d(!0)},onMouseLeave:function(){return d(!1)}
1,sx:{cursor:"pointer"},children:(0,o.jsx)(E(),{href:"/dashboard/shapes/".concat(a),children:(0,o.jsxs)("a",{target:"_blank",style:{width:"100%"},children:[(0,o.jsx)(h.Z,{effect:"blur",component:j.LazyLoadImage,width:"100%",maxWidth:"100%",height:149,src:i,sx:{borderRadius:"4px"}}),(0,o.jsx)(W.default,{width:30,height:18,text:"View Shape",onHover:c,id:a})]})})})]})},me=function(){var e,t=(0,i.v9)((function(e){var t,n;return null===(t=e.auth)||void 0===t||null===(n=t.accountType)||void 0===n?void 0:n.type})),n=(0,r.useState)(),a=n[0],l=n[1],c=(0,r.useState)(!0),d=c[0],u=c[1],p=(0,i.I0)(),x=null!==(e="member"===(null===t||void 0===t?void 0:t.role))&&void 0!==e&&e,m=(0,r.useCallback)((function(){var e={"options[parameters][organization_key]":t.key};(0,z.j2)({url:"".concat("https://end.mapilio.com","/api/function/shapes/shape/getShapes"),params:e}).then((function(e){l(e.data),u(!1)})).catch((function(e){return p({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,type:"error",text:"An error occurred. Please try again."}})}))}),[p,t.key]);return(0,r.useEffect)((function(){return x||m(),function(){return l("")}}),[]),x?(0,o.jsx)(h.Z,{mt:4,children:(0,o.jsx)(s.ZP,{container:!0,justifyContent:"center",children:(0,o.jsx)(h.Z,{children:"You Cannot Access Here"})})}):(0,o.jsxs)(h.Z,{mt:4,children:[(0,o.jsx)(s.ZP,{container:!0,justifyContent:"center",children:(0,o.jsx)(xe,{svg:(0,o.jsx)(g.HaT,{}),text:"New Shape"})}),(0,o.jsx)(s.ZP,{container:!0,flexDirection:"column",mt:4,sx:{paddingRight:"5px","&>div:not(:first-of-type)":{mt:4}},className:"dene222",children:null===a?(0,o.jsx)(h.Z,{sx:{textAlign:"center"},children:"You have no shape."}):d?[0,1].map((function(e,t){return(0,o.jsxs)(h.Z,{children:[(0,o.jsx)(N.Z,{width:"100%",height:20,sx:{backgroundColor:(0,te.Z)().palette.skeleton.secondary,borderRadius:"4px",mb:2}},t),(0,o.jsx)(N.Z,{sx:{backgroundColor:(0,te.Z)().palette.skeleton.secondary,borderRadius:"4px"},variant:"rectangular",width:"100%",height:180,animation:"wave"},Math.random())]},t)})):a.map((function(e,t){return(0,o.jsx)(he,{title:e.name,id:e.id,date:(0,G.Z)((0,q.Z)(e.created_at),"dd/MM/yyyy"),image:e.thumbnail},t)}))})]})},fe=function(){var e=(0,i.v9)((function(e){return e.shapeReducer.status})),t=(0,i.v9)((function(e){return e.mapReducer.currentMap}));return(0,r.useEffect)((function(){"DONE"===e&&t?t._canvas.style.pointerEvents="none":"DONE"!==e&&t&&(t._canvas.style.pointerEvents="auto")}),[e,t]),(0,r.useEffect)((function(){var e,n,o,r;return null===t||void 0===t||null===(e=t.style)||void 0===e||e.setLayoutProperty("map-object-layer","visibility","none"),null===t||void 0===t||null===(n=t.style)||void 0===n||n.setLayoutProperty("map-point-layer","visibility","none"),(null===t||void 0===t||null===(o=t.style)||void 0===o?void 0:o.getLayer("map-point-layer-active"))&&t.style.setLayoutProperty("map-point-layer-active","visibility","none"),null===t||void 0===t||null===(r=t.style)||void 0===r||r.setLayoutProperty("map-road-layer","visibility","none"),null===t||void 0===t||t._update(),function(){var e,n,o;null===t||void 0===t||null===(e=t.style)||void 0===e||e.setLayoutProperty("map-point-layer","visibility","visible"),null===t||void 0===t||null===(n=t.style)||void 0===n||n.setLayoutProperty("map-road-layer","visibility","visible"),(null===t||void 0===t||null===(o=t.style)||void 0===o?void 0:o.getLayer("map-point-layer-active"))&&t.style.setLayoutProperty("map-point-layer-active","visibility","visible"),null===t||void 0===t||t._update()}}),[]),(0,o.jsxs)(o.Fragment,{children:["EMPTY"===e&&(0,o.jsx)(me,{}),"DRAWING"===e&&(0,o.jsx)(ie,{}),"DONE"===e&&(0,o.jsx)(ue,{})]})},ge=function(){var e=function(e){return{id:"nav-tab-".concat(e),"aria-controls":"nav-tabpanel-".concat(e)}},t=function(e){var t=e.children,n=e.value,r=e.index,i=(0,A.Z)(e,["children","value","index"]);return(0,o.jsx)(h.Z,(0,x.Z)((0,p.Z)({role:"tabpanel",hidden:n!==r,id:"nav-tabpanel-".concat(r),"aria-labelledby":"nav-tab-".concat(r)},i),{children:n===r&&(0,o.jsx)(h.Z,{p:3,children:(0,o.jsx)(L.Z,{component:"span",children:t})})}))},n=(0,a.Z)(),s=(0,i.I0)(),c=(0,r.useState)(0),d=c[0],u=c[1],m=(0,r.useState)([]),f=m[0],j=m[1],v=(0,r.useState)(!0),b=v[0],w=v[1],Z=(0,l.Z)(n.breakpoints.down("sm")),S=(0,i.v9)((function(e){return e.shapeReducer.status})),T=(0,i.v9)((function(e){return e.mapReducer})).imageView,k=(0,i.v9)((function(e){return e.auth.accountType.type})),C={minWidth:Z||"Individual"===k.accountType?"100%":"50%",display:"flex",flexDirection:"row",padding:n.spacing(1,2),borderTopLeftRadius:3,borderTopRightRadius:3,minHeight:"auto",fontSize:"12px",borderBottom:"2px s
1olid ".concat((0,M.Fq)(n.palette.mapColors.light,.5)),textTransform:"capitalize","&.Mui-selected>svg>g>path":{stroke:n.palette.icons.primary},"&>svg":{marginRight:2,transform:"translateY(3px)"}};return(0,r.useEffect)((function(){1===d&&T&&s({type:y.lZ,payload:(0,x.Z)((0,p.Z)({},T),{open:!1})})}),[d]),(0,r.useEffect)((function(){"Individual"===k.accountType&&u(0)}),[k.accountType]),(0,r.useEffect)((function(){if("Individual"===k.accountType)(0,z.j2)({url:"".concat("https://end.mapilio.com","/api/function/mapilio/imagery/getUploadsByUser?options[parameters][user_id]=").concat(k.id)}).then((function(e){null!==e.data&&(w(!1),j(e.data))})).catch((function(e){return s({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,text:"An error occurred. Please try again.",type:"error"}})}));else{var e={"options[parameters][organization_key]":k.key};(0,z.j2)({url:"".concat("https://end.mapilio.com","/api/function/organizations/organization/feedList"),params:e}).then((function(e){null!==e.data?(w(!1),j(e.data)):j([])})).catch((function(e){return s({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,text:"An error occurred. Please try again.",type:"error"}})}))}return function(){return j([])}}),[k]),(0,o.jsxs)(h.Z,{mt:"EMPTY"===S?0===(null===f||void 0===f?void 0:f.length)?8:10:2,width:"100%",flex:"1 1 auto",display:"flex",flexDirection:"column",overflow:"auto",children:[(0,o.jsx)(D.Z,{position:"static",color:"default",sx:{width:"100%",borderTopLeftRadius:3,borderTopRightRadius:3,boxShadow:"none",".css-x150w9-MuiTabs-root":{minHeight:"auto"}},children:"EMPTY"===S&&(0,o.jsxs)(F.Z,{sx:{borderTopLeftRadius:3,borderTopRightRadius:3,minHeight:"auto",backgroundColor:n.palette.background.paper,"&>div>div>button":{color:n.palette.text.secondaryLight,padding:n.spacing(2,0)},"&>div>div>.Mui-selected":{backgroundColor:"".concat((0,M.Fq)(n.palette.mapColors.light,.3)," !important"),color:n.palette.text.secondary},"&>.MuiTabs-scroller>span":{backgroundColor:n.palette.mapColors.primary}},value:d,onChange:function(e,t){u(t)},children:[(0,o.jsx)(O.Z,(0,p.Z)({sx:C,label:"Feed",icon:(0,o.jsx)(g.Jww,{color:0===d?"".concat(n.palette.icons.primary):void 0})},e(0))),Z||"Organization"!==k.accountType?null:(0,o.jsx)(O.Z,(0,p.Z)({sx:C,label:"Shape",icon:(0,o.jsx)(g.NLI,{color:"".concat(1===d?n.palette.icons.primary:n.palette.icons.secondary)})},e(1)))]})}),(0,o.jsx)(t,{value:d,index:0,mt:2,flex:"1 1 auto",sx:{overflow:"auto"},className:"scrollbar",children:0!==(null===f||void 0===f?void 0:f.length)?null===f||void 0===f?void 0:f.map((function(e,t){return(0,o.jsx)(V,{filename:e.cover_photo,imageHash:e.img_code,captureDate:(0,G.Z)((0,q.Z)(e.created_at),"MMM dd, yyy - HH:mm"),imageAmount:e.total_images,loading:b,sequenceUUID:e.sequence_uuid,coordinate:[e.longitude,e.latitude]},t)})):(0,o.jsx)(Q,{})}),(0,o.jsx)(t,{value:d,index:1,children:"Organization"===k.accountType&&(0,o.jsx)(fe,{})})]})},ye=function(){var e=(0,a.Z)(),t=(0,r.useState)(!0),n=t[0],l=t[1],s=(0,i.v9)((function(e){return e.shapeReducer.status})),c=(0,i.v9)((function(e){return e.allToggle.menuBoolean}));return(0,r.useEffect)((function(){return l("EMPTY"===s),function(){l(!1)}}),[l,s]),c&&(0,o.jsxs)(h.Z,{py:8,px:5,height:"100%",sx:{backgroundColor:e.palette.background.default},display:"flex",alignItems:"center",flexDirection:"column",children:[(0,o.jsx)(k,{}),(0,o.jsx)(T.Z,{unmountOnExit:!0,in:n,children:(0,o.jsx)(R,{})}),(0,o.jsx)(ge,{})]})},je=n(27816),ve=function(){var e=(0,a.Z)();return(0,o.jsx)(h.Z,{height:"170px",position:"fixed",zIndex:"1",top:"0",left:"0",right:"0",sx:{background:e.palette.gradients.header,pointerEvents:"none"}})},be=n(326),we=n(10160),Ze=n(7697),Se=function(){var e=(0,a.Z)(),t=(0,i.v9)((function(e){return e.allToggle.boolean})),n=(0,i.I0)(),r=(0,i.v9)((function(e){return e.allToggle.menuBoolean}));return(0,o.jsxs)(h.Z,{display:"flex",width:"max-content",alignItems:"center",children:[(0,o.jsx)(we.Z,{"aria-label":"hamburger",sx:(0,u.Z)({display:r&&"none",backgroundColor:e.palette.mapColors.primary,color:e.palette.mapColors.white,width:"2.5em",height:"2.5em","&:hover":{backgroundColor:(0,M.Fq)(e.palette.mapColors.primary,.8)}},e.breakpoints.down("phoneSm"),{width:"36px",height:"36px"}),onClick:function(){n({type:"TOGGLE_HAMBURGER",payload:t})},children:(0,o.jsx)(be.Z,{sx:(0,u.Z)({},e.breakpoints.down("phoneSm"),{width:"27px",height:"27px"}),fontSize:"medium"})}),(0,o.jsx)(U.Z,{mdDown:!0,children:(0,o.jsx)(E(),{href:"/app",sx:{textDecoration:"none"},children:(0,o.jsx)(h.Z,{ml:"12px",mr:"22px",sx:{height:"32px",cursor:"pointer","& #mapilio_sale_logo":{filter:"drop-shadow(1px 1px .8px #00000014)"}},children:(0,o.jsx)(Ze.Z,{width:162,height:32,primaryColor:e.palette.text.primary,secondaryColor:e.palette.primary.main})})})})]})},Te=function(e){var t=e.children,n=e.type,a=(0,l.Z)("(max-width:620px)"),s=(0,l.Z)("(max-width:700px)"),c=(0,i.v9)((function(e){return e.allToggle.menuBoolean})),d=(0,r.useState)(""),u=d[0],p=d[1],x=(0,r.useState)(!1),f=x[0],g=x[1],y=(0,r.useState)(!1),j=y[0],v=y[1];return(0,r.useEffect)((function(){v(!(!s||"SEARCH_BAR"===u)||!s)}),[s,u]),(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(h.Z,{height:"0px",zIndex:"3",display:"flex",width:"100%",children:[(0,o.jsx)(ve,{}),(0,o.jsxs)(h.Z,{zIndex:"3",paddingX:"22px",mt:"40px",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",children:[(0,o.jsxs)(h.Z,{display:"flex",alignItems:"center",children:[(0,o.jsx)(Se,{}),"Map Header"===n&&(0,o.jsx)(U.Z,{smDown:!0,children:(0,o.jsxs)(h.Z,{display:"flex",children:[(0,o.jsx)(m.Z,{unmountOnExit:!0,in:j,children:(0,o.jsxs)(h.Z,{display:"flex",children:[(0,o.jsx)(h.Z,{children:(0,o.jsx)(je.ML,{loginDropdown:u,setOpenDropdown:p})}),(0,o.jsx)(h.Z,{children:(0,o.jsx)(je._w,{loginDropdown:u,setOpenDropdown:p})})]})}),(0,o.jsx)(m.Z,{unmountOnExit:!0,in:!c,children:(0,o.jsx)(h.Z,{display:a?"none":"block",children:(0,o.jsx)(je.wD,{loginDropdown:u,setOpenDropdown:p,type:n,fade:f,setFade:g})})})]})})]}),(0,o.jsx)(h.Z,{display:"flex",width:"max-content",alignItems:"center",children:t})]})]})})},ke=function(){var e=(0,i.v9)((function(e){return e.allToggle.menuBoolean})),t=(0,i.v9)((function(e){return e.allToggle.boolean})),n=(0,r.useState)(""),a=n[0],l=n[1],s=(0,r.useState)(!1),c=s[0],d=s[1];return(0,r.useEffect)((function(){t&&l("")}),[t]),(0,o.jsx)(h.Z,{children:(0,o.jsxs)(Te,{type:"Login Header",children:[(0,o.jsxs)(U.Z,{smDown:!0,children:[(0,o.jsx)(m.Z,{unmountOnExit:!0,in:!e,children:(0,o.jsx)(h.Z,{children:(0,o.jsx)(je.wD,{loginDropdown:a,setOpenDropdown:l,fade:c,setFade:d})})}),(0,o.jsx)(h.Z,{children:(0,o.jsx)(je.ML,{loginDropdown:a,setOpenDropdown:l})}),(0,o.jsx)(h.Z,{children:(0,o.jsx)(je._w,{loginDropdown:a,setOpenDropdown:l})})]}),(0,o.jsx)(m.Z,{unmountOnExit:!0,in:!e,children:(0,o.jsxs)(h.Z,{display:"flex",alignItems:"center",children:[(0,o.jsx)(je.VD,{}),(0,o.jsx)(je.Cm,{})]})})]})})},Ce=function(){return(0,o.jsx)(Te,{type:"Map Header",children:(0,o.jsx)(je.$2,{})})},_e=n(29994),Ie=function(){var e,t=(0,a.Z)();return(0,o.jsxs)(h.Z,{className:"copyright__wrapper",sx:(e={order:2,justifyContent:"center",flexDirection:"column"},(0,u.Z)(e,t.breakpoints.down("laptop"),{flexDirection:"row",justifyContent:"space-between"}),(0,u.Z)(e,t.breakpoints.between("laptopSm","laptop"),{marginLeft:t.spacing(6)}),(0,u.Z)(e,t.breakpoints.down("phoneSm"),{width:"100%",alignItems:"center",justifyContent:"flex-end"}),e),display:"flex",children:[(0,o.jsx)(h.Z,{marginRight:{sm:"0",xs:"auto"},children:(0,o.jsx)(_e.o_,{})}),(0,o.jsxs)(h.Z,{component:"span",color:t.palette.text.secondaryLight,fontSize:"11px",whiteSpace:"nowrap",alignSelf:"center",children:["\xa9 Copyright Mapilio | ",(new Date).getFullYear()]})]})},Ee=(n(79867),function(){var e,t=(0,a.Z)(),n=function(e,n){return(0,o.jsx)(h.Z,{component:"li",pb:1,children:(0,o.jsx)(E(),{target:"_blank",underline:"none",href:n,children:(0,o.jsx)(C.Z,{color:t.palette.text.light,underline:"none",href:n,children:e})})})};return(0,o.jsx)(h.Z,{ml:1,sx:{"@media (min-width:600px) and (max-width: 630px)":{marginLeft:0}},height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,o.jsxs)(s.ZP,{container:!0,children:[(0,o.jsx)(s.ZP,{item:!0,md:6,children:(0,o.jsxs)(h.Z,{component:"ul",position:"relative",sx:{listStyle:"none","& > li":(0,u.Z)({cursor:"pointer",width:"fit-content",whiteSpace:"nowrap",fontSize:"15px"},t.breakpoints.down("laptopMd"),{fontSize:"13px"}),"&.border-r":(e={},(0,u.Z)(e,t.breakpoints.down("laptopMd"),{marginRight:5,paddingLeft:5}),(0,u.Z)(e,"&::before",(0,u.Z)({position:"absolute",content:"''",width:"1px",marginX:8,marginY:0,height:"95px",backgroundColor:t.palette.text.secondary,opacity:"0.3",right:"0",top:"0"},t.breakpoints.down("laptop"),{display:"none"})),(0,u.Z)(e,t.breakpoints.between("laptopSm","laptop"),{marginRight:5}),e)},className:"border-r",xs:12,children:[n("Help","/app"),n("About Mapilio","/about"),n("Contact","/contact")]})}),(0,o.jsx)(s.ZP,{item:!0,md:6,children:(0,o.jsxs)(h.Z,{component:"ul",paddingLeft:0,position:"relative",sx:{listStyle:"none","& > li":(0,u.Z)({cursor:"pointer",width:"fit-content",whiteSpace:"nowrap",fontSize:"15px"},t.breakpoints.down("laptopMd"),{fontSize:"13px"})},children:[n("Terms and conditions","/terms"),n("Privacy policy","/
1privacy"),n("Cookies policy","/cookie-policy")]})})]})})}),Pe=function(e){var t=e.text,n=e.icon,r=e.route,i=(0,a.Z)();return(0,o.jsx)(h.Z,{display:"flex",color:i.palette.text.white,className:"buttonWrapper__nav",flexDirection:"column",alignItems:"center",children:(0,o.jsxs)(h.Z,{display:"flex",color:i.palette.text.white,className:"buttonWrapper__nav",flexDirection:"column",alignItems:"center",component:"a",sx:{textDecoration:"none"},href:r,target:"_blank",children:[n,(0,o.jsx)(h.Z,{component:"span",mt:1,fontSize:"18px",children:t})]})})},Re=function(){var e=(0,a.Z)();return(0,o.jsxs)(h.Z,{height:"100%",position:"relative",sx:(0,u.Z)({"&::before":{position:"absolute",content:"''",width:"1px",height:"95px",backgroundColor:e.palette.text.secondary,opacity:"0.3",right:"-10px"}},e.breakpoints.down("laptop"),{"&::before":{display:"none"}}),display:"flex",justifyContent:"space-around",alignItems:"center",children:[(0,o.jsx)(Pe,{text:"mapilio.com",icon:(0,o.jsx)(g.tvw,{color:e.palette.primary.main}),route:"/"}),(0,o.jsx)(Pe,{text:"Blog",route:"/blog",icon:(0,o.jsx)(g.O2Q,{color:e.palette.primary.main})})]})},Ae=n(5152),Le=n.n(Ae),Me=Le()((function(){return Promise.resolve().then(n.bind(n,79867))}),{loadableGenerated:{webpack:function(){return[79867]}},ssr:!1}),De=function(e){var t,n=e.gridSpan,r=void 0===n?12:n,l=e.visible,c=(0,a.Z)(),d=(0,i.v9)((function(e){return e.allToggle.boolean})),p=(0,i.I0)();return(0,o.jsxs)(s.ZP,{className:l?"fadeIn":"fadeOut",container:!0,sx:{position:"absolute",width:"100%",height:"100%",left:"0",right:"0",top:"0",bottom:"0"},alignItems:"flex-end",children:[(0,o.jsx)(h.Z,{sx:{opacity:.3,backgroundColor:c.palette.mapColors.purple},width:"100vw",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",zIndex:"3",onClick:function(){p({type:"TOGGLE_HAMBURGER",payload:d})}}),(0,o.jsx)(s.ZP,{container:!0,item:!0,xs:r,sx:{zIndex:999999},children:(0,o.jsx)(h.Z,{sx:(0,u.Z)({borderTopRightRadius:15,borderTopLeftRadius:15,height:{md:"190px",xs:"auto"},backgroundColor:c.palette.text.primary},c.breakpoints.down("md"),{padding:c.spacing(6,5,0,5)}),width:"100%",zIndex:"999",height:"190px",children:(0,o.jsx)(h.Z,{maxWidth:"1170px",height:"100%",margin:"0 auto",children:(0,o.jsxs)(s.ZP,{display:"flex",justifyContent:"space-between",height:"100%",container:!0,sx:(0,u.Z)({},c.breakpoints.between("laptopSm","laptop"),{flexWrap:"wrap",justifyContent:"center"}),children:[(0,o.jsx)(s.ZP,{container:!0,xs:12,sm:6,md:5,item:!0,children:(0,o.jsx)(h.Z,{width:"100%",height:"100%",children:(0,o.jsx)(Re,{})})}),(0,o.jsx)(s.ZP,{container:!0,xs:12,sm:6,md:5,item:!0,children:(0,o.jsx)(h.Z,{width:"100%",height:"100%",sx:(0,u.Z)({},c.breakpoints.between("laptopSm","laptop"),{display:"flex",justifyContent:"center"}),children:(0,o.jsx)(Ee,{})})}),(0,o.jsx)(s.ZP,{container:!0,xs:12,md:2,item:!0,sx:(0,u.Z)({},c.breakpoints.down("laptop"),{maxWidth:"1170px",justifyContent:"space-between"}),children:(0,o.jsxs)(h.Z,{width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:{md:"center",xs:"space-between"},alignItems:"center",sx:(t={position:"relative"},(0,u.Z)(t,c.breakpoints.down("laptopMd"),{flexDirection:"row"}),(0,u.Z)(t,c.breakpoints.between("laptopSm","laptop"),{flexDirection:"row",margin:"0 auto"}),(0,u.Z)(t,c.breakpoints.down("phoneSm"),{flexWrap:"wrap"}),(0,u.Z)(t,"&::before",{position:"absolute",content:"''",width:"1px",height:"95px",backgroundColor:c.palette.text.secondary,opacity:"0.3",left:"-20px"}),(0,u.Z)(t,c.breakpoints.down("laptop"),{"&::before":{display:"none"}}),t),children:[(0,o.jsx)(Ie,{}),(0,o.jsx)(Me,{})]})})]})})})})]})},Fe=n(91258),Oe=n(45498),ze=n(53903),Ge=Le()((function(){return Promise.resolve().then(n.bind(n,9334))}),{loadableGenerated:{webpack:function(){return[9334]}},ssr:!1}),qe=function(){var e=(0,c.Z)(),t=(0,a.Z)(),n=(0,l.Z)("(max-width: 600px)"),u=(0,i.I0)(),p=(0,i.v9)((function(e){return e.allToggle.boolean})),x=(0,r.useState)(!0),h=x[0],m=x[1],f=(0,i.v9)((function(e){return e.allToggle.menuBoolean})),g=(0,i.v9)((function(e){return e.allToggle.osmMailPopup})),j=(0,i.v9)((function(e){return e.mapReducer})).imageView,v=(0,i.v9)((function(e){return e.loginModalStatus.boolean})),b=(0,i.v9)((function(e){return e.registerModalStatus.boolean})),w=(0,i.v9)((function(e){return e.forgotPasswordModalStatus.boolean})),Z=(0,i.v9)((function(e){return e.leaderboardToggle})),T=Z.leaderboardModal,k=Z.howToScore,C=Z.joinTheRace;
1(0,r.useEffect)((function(){p&&!f?(m(!0),u({type:y.ET,payload:!1})):m(!1)}),[p,f,m]),(0,r.useEffect)((function(){var t=window.location.href,n=new URL(t),o=n.searchParams.get("code"),r=n.searchParams.get("tverification");e||(o&&"true"===r?(u({type:y.ob,payload:v}),u({type:y.BS,payload:{open:!0,text:"Your account has been successfully verified. You can login.",type:"success"}})):"false"===r&&u({type:y.BS,payload:{open:!0,text:"Your account could not be verified.",type:"error"}}))}),[u,t.palette.button,t.palette.primary.light,t.palette.primary.main]);var _=(0,oe.Z)().userInfo,I=(0,de.useRouter)();return(0,r.useEffect)((function(){"/pricing"!==I.query.return_url||_||u({type:y.ob,payload:!0})}),[I.query]),(0,r.useEffect)((function(){"/pricing"===I.query.return_url&&_&&I.push({pathname:"/pricing",query:{return_url:"/pricing"}},"/pricing")}),[_]),(0,r.useEffect)((function(){var e=I.query.form;"login"===e?u({type:y.ob,payload:!0}):"register"===e&&u({type:y.jD,payload:!1})}),[]),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(d.ZP,{children:(0,o.jsxs)(s.ZP,{container:!0,flexWrap:"nowrap",children:[(0,o.jsxs)(s.ZP,{position:"relative",item:!0,xs:12,width:n?"100%":f&&"0",sx:{transition:".3s"},children:[e?(0,o.jsx)(ke,{}):(0,o.jsx)(Ce,{}),(0,o.jsx)(ze.Vt,{}),null!==j&&(0,o.jsx)(ze.Wd,{}),(0,r.useMemo)((function(){return(0,o.jsx)(d.ZP,{children:(0,o.jsx)(Fe.D5,{})})}),[]),(0,o.jsx)(De,{gridSpan:f&&12,visible:h}),v&&(0,o.jsx)(Oe.Z,{}),b&&(0,o.jsx)(Ge,{}),w&&(0,o.jsx)(Fe.oP,{}),T&&(0,o.jsx)(Fe.rU,{}),k&&(0,o.jsx)(Fe.ey,{}),C&&(0,o.jsx)(Fe.u0,{}),g&&(0,o.jsx)(Fe.uW,{}),(0,o.jsx)(S,{})]}),e&&(0,o.jsx)(s.ZP,{item:!0,minWidth:{sm:320,xs:"100%"},zIndex:3e3,flexBasis:"320px",sx:{transition:".3s ease-in",marginRight:f?"0px":n?"0":"-320px",opacity:f?1:n?0:1,visibility:f?"visible":n?"hidden":"visible",position:"relative",left:n&&"-100%"},height:"100vh",children:(0,o.jsx)(ye,{})})]})})})},Ne=n(6892),He=(0,n(78519).R)((function(){return n.e(281).then(n.bind(n,80281))})),Ue=He.TaskProject,Be=He.UserVerify,We=He.VerifyFinish,Ye=function(){var e=(0,i.v9)((function(e){return e.targetSelectToggle.target}));return(0,o.jsxs)(h.Z,{children:["Task Project"===e&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(Ue,{})}),"Verify Section"===e&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(Be,{})}),"Verify Finish"===e&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(We,{})})]})},Ve=(0,r.lazy)((function(){return n.e(5595).then(n.bind(n,5595))})),Xe=(0,r.lazy)((function(){return n.e(3009).then(n.bind(n,93009))})),Qe=(0,r.lazy)((function(){return n.e(9813).then(n.bind(n,19813))})),Ke=(0,r.lazy)((function(){return n.e(272).then(n.bind(n,52011))})),Je=(0,r.lazy)((function(){return n.e(2949).then(n.bind(n,92949))})),$e=(0,r.lazy)((function(){return n.e(9170).then(n.bind(n,99170))})),et=function(e){var t=e.setModal,n=(0,i.v9)((function(e){return e.sliderReducer.index})),a=(0,l.Z)((0,te.Z)().breakpoints.down("md")),s=[0,1,2,3,4,5];return(0,r.useEffect)((function(){a?(window.document.documentElement.style.overflowX="hidden",window.document.documentElement.style.overflowY="visible"):(window.document.documentElement.style.overflowX="hidden",window.document.documentElement.style.overflow="hidden")}),[a]),(0,o.jsxs)(h.Z,{children:[0===n&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)($e,{sliderArray:s})}),1===n&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(Je,{sliderArray:s})}),2===n&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(Ke,{sliderArray:s})}),3===n&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(Xe,{sliderArray:s})}),4===n&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(Ve,{sliderArray:s})}),5===n&&(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(Qe,{setModal:t,sliderArray:s})})]})},tt=n(62223),nt=n(92096),ot="/_next/static/media/MapilioBetaLogo.dca2cd1c.png",rt=function(){var e=(0,H.Z)(),t=(0,i.v9)((function(e){return e.allToggle.boolean})),n=(0,i.I0)(),r=(0,i.v9)((function(e){return e.allToggle.menuBoolean}));return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(h.Z,{display:"flex",alignItems:"center",marginLeft:3,children:[(0,o.jsx)(we.Z,{"aria-label":"hamburger",sx:{dis
1play:r&&"none",backgroundColor:e.palette.text.primary,color:"#ffffff",width:"2.5em",height:"2.5em","&:hover":{backgroundColor:(0,M.Fq)(e.palette.text.secondary,.9)},"@media (max-width:550px)":{width:"36px",height:"36px"}},onClick:function(){n({type:"TOGGLE_HAMBURGER",payload:t})},children:(0,o.jsx)(be.Z,{sx:{"@media (max-width:550px)":{width:"27px",height:"27px",transform:"translateX(-0.5px)"}},fontSize:"medium"})}),(0,o.jsx)(U.Z,{smDown:!0,children:(0,o.jsx)(E(),{href:"/app",children:(0,o.jsx)(C.Z,{to:"/app",sx:{textDecoration:"none",cursor:"pointer"},children:(0,o.jsx)(h.Z,{ml:3,width:"113px",height:"32px",sx:{verticalAlign:"middle"},children:(0,o.jsx)(h.Z,{component:j.LazyLoadImage,effect:"blur",width:162,src:ot})})})})})]})})},it=n(42062),at=function(e){var t=e.setModal,n=e.setIndex,r=e.svg,l=e.text,s=e.textBottomLine,c=e.title,d=(0,a.Z)(),u=(0,i.v9)((function(e){return e.sliderReducer.index}));return(0,o.jsxs)(it.Z,{setModal:t,index:u,setIndex:n,sliderArray:[0,1,2,3],children:[r,(0,o.jsx)(L.Z,{variant:"h5",sx:{color:d.palette.text.dark,my:2},children:c}),(0,o.jsx)(L.Z,{variant:"overline",sx:{color:d.palette.text.default,mb:4},children:l}),(0,o.jsx)(L.Z,{variant:"overline",sx:{color:d.palette.text.default},children:s})]})},lt=function(e){var t=e.setModal,n=(0,i.v9)((function(e){return e.sliderReducer.index}));return(0,o.jsxs)(o.Fragment,{children:[0===n&&(0,o.jsx)(at,{svg:(0,o.jsx)(g.jie,{}),text:"Welcome to the Image Capture - Verifier Tool.",textBottomLine:"Create a request for the quest in the areas near you and get the quest.",title:"Get the mission."}),1===n&&(0,o.jsx)(at,{svg:(0,o.jsx)(g.flB,{}),text:"Grab your suitable camera for the mission and hit the road with your vehicle.",title:"Camera and Vehicle"}),2===n&&(0,o.jsx)(at,{svg:(0,o.jsx)(g.EAN,{}),text:"When the missions in the region you have requested are assigned to you, go to the location and shoot.          ",textBottomLine:"(*You can shoot without assigning a task, and then upload it to the system.)",title:"Go to location and start shooting."}),3===n&&(0,o.jsx)(at,{svg:(0,o.jsx)(g.EcC,{}),text:"Welcome to the Image Capture - Verifier Tool.This where you work together with fresh imagery and map data.",title:"Situations not to shoot",setModal:t})]})},st=(0,r.lazy)((function(){return n.e(8875).then(n.bind(n,8875))})),ct=function(){var e=(0,r.useState)("TABS"),t=e[0],n=e[1],l=(0,r.useState)(!1),c=l[0],d=l[1],u=(0,r.useState)(c),p=u[0],x=u[1],m=(0,i.v9)((function(e){return e.allToggle.boolean})),f=(0,a.Z)();return(0,r.useEffect)((function(){localStorage.getItem("verifiertool")?localStorage.getItem("verifiertool")&&(localStorage.setItem("verifiertool",!1),d(!1),x(!1)):(localStorage.setItem("verifiertool",!0),d(!0),x(!0))}),[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{position:"absolute",top:"0",left:"0",width:"100vw",right:"0",zIndex:"1",paddingX:5,pt:4,display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,o.jsx)(rt,{})}),(0,o.jsxs)(s.ZP,{spacing:3,display:"flex",children:[(0,o.jsx)(s.ZP,{item:!0,xs:8,md:9,xl:10,display:"flex",children:(0,r.useMemo)((function(){return(0,o.jsx)(Fe.D5,{})}),[])}),(0,o.jsxs)(s.ZP,{item:!0,xs:4,md:3,xl:2,zIndex:2,height:"100vh",display:"flex",flexDirection:"column",children:[(0,o.jsx)(C.Z,{underline:"none",component:"a",to:"/app/marketplace",sx:{color:(0,M.Fq)(f.palette.text.secondary,.5),position:"absolute",right:".8rem",top:".4rem"},children:"Close"}),(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(st,{status:t,setStatus:n})})]})]}),m&&(0,o.jsx)(De,{}),(0,o.jsx)(nt.Z,{open:p,children:(0,o.jsx)(lt,{setModal:x})})]})},dt=n(70286),ut=n(23978),pt=n(67555),xt=n.n(pt),ht=(n(72498),n(45697)),mt=n.n(ht),ft=function(e){var t=e.width,n=void 0===t?33:t,r=e.height,i=void 0===r?33:r;return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:i,viewBox:"0 0 33.865 33.865",children:(0,o.jsx)("g",{id:"Group_47470","data-name":"Group 47470",transform:"translate(-21674.947 8952)",children:(0,o.jsxs)("g",{id:"Group_47469","data-name":"Group 47469",transform:"translate(21674.947 -8952)",children:[(0,o.jsx)("path",{id:"Path_23001","data-name":"Path 23001",d:"M16.933,36.706a16.933,16.933,0,1,1,0-33.866,17.851,17.851,0,0,1,5.236.825,1.624,1.624,0,0,1,.89.558c.291.411.471.557.275,1.088a1.135,1.135,
10,0,1-1.056.793,14.217,14.217,0,0,0-5.345-1A14.675,14.675,0,1,0,31.609,19.773a1.015,1.015,0,0,1,.975-.881,1.131,1.131,0,0,1,1.282.881A16.952,16.952,0,0,1,16.933,36.706Z",transform:"translate(0 -2.84)",fill:"#fff"}),(0,o.jsx)("path",{id:"Path_22999","data-name":"Path 22999",d:"M1.12,0A1.128,1.128,0,0,0,0,1.136V22a1.128,1.128,0,0,0,1.12,1.136A1.128,1.128,0,0,0,2.239,22V1.136A1.128,1.128,0,0,0,1.12,0Z",transform:"translate(15.623 21.938) rotate(-135)",fill:"#fff"}),(0,o.jsx)("path",{id:"Path_23000","data-name":"Path 23000",d:"M1.12,9.835A1.128,1.128,0,0,1,0,8.7V1.136A1.128,1.128,0,0,1,1.12,0a1.128,1.128,0,0,1,1.12,1.136V8.7A1.128,1.128,0,0,1,1.12,9.835Z",transform:"translate(8.396 14.984) rotate(-45)",fill:"#fff"})]})})})};ft.propTypes={width:mt().oneOfType([mt().number,mt().string]),height:mt().oneOfType([mt().number,mt().string])};var gt=ft,yt=n(78298),jt=n(21270),vt=n(29417),bt=function(){var e=(0,a.Z)(),t=(0,i.v9)((function(e){return e.shapeReducer})).status,n=function(t){return(0,o.jsx)(L.Z,{variant:"overline",sx:{color:e.palette.text.purpleDark,lineHeight:2},children:t})};return(0,o.jsxs)(h.Z,{width:"100%",marginTop:"auto",children:[(0,o.jsx)($,{text:"Cancel drawing",keyText:"esc",plus:!1,titleGenerator:n}),(0,o.jsx)($,{text:"Delete feature",keyIcon:(0,o.jsx)(J.Z,{sx:{width:"0.6em",height:"0.6em"}}),keyText:"delete",plus:!1,titleGenerator:n}),(0,o.jsx)($,{text:"Drag to zoom",keyText:"shift",plus:!1,titleGenerator:n}),"EMPTY"===t&&(0,o.jsx)($,{text:"Draw Shape",keyText:"p",plus:!1,titleGenerator:n})]})},wt=function(){var e=(0,a.Z)(),t=(0,r.useState)(""),n=t[0],l=t[1],s=(0,r.useState)(""),c=s[0],d=s[1],u=(0,r.useState)(""),p=u[0],x=u[1],h=(0,r.useState)(!0),m=h[0],f=h[1],g=(0,r.useState)(!1),y=g[0],j=g[1],v=(0,de.useRouter)(),b=(0,i.I0)(),w=(0,i.v9)((function(e){return e.shapeReducer.shapeInfo})),Z=(0,i.v9)((function(e){return e.mapReducer.currentDraw})),S=(0,i.v9)((function(e){return e.mapReducer.coordinates})),T=(0,oe.Z)().userInfo;(0,r.useEffect)((function(){0!==c.trim().length&&n.trim().length>=6&&p.trim().length>=10&&null!==S&&w&&!w.overlap?f(!1):f(!0)}),[f,c,n,p,S,w]);return(0,r.useEffect)((function(){w.overlap?b({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,text:"You made a mistake in the polygon drawing. Please draw the shape so that there is no intersection and maximum 1000km\xb2.",type:"info"}}):w.area>T.shape_limit?b({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,text:"You made a mistake in the polygon drawing. Please draw the shape maximum 1000km\xb2.",type:"info"}}):w.overlap?b({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,text:"You made a mistake in the polygon drawing. Please draw the shape so that there is no intersection.",type:"info"}}):b({type:"ALERT_TOAST_TOGGLE",payload:{open:!1,text:"You made a mistake in the polygon drawing. Please draw the shape so that there is no intersection and maximum 1000km\xb2.",type:"info"}})}),[w,b,e.palette.background.default]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(jt.Z,{open:y,children:(0,o.jsx)(vt.Z,{headerColor:(0,te.Z)().palette.primary.light,icon:(0,o.jsx)(gt,{}),header:"Success",text:"Your request has been successfully received. You will be redirected to the App page in 5 seconds.",buttonColors:{bg:(0,te.Z)().palette.primary.light,color:(0,te.Z)().palette.text.white,hoverbg:(0,te.Z)().palette.primary.main},deleteHandler:function(){return v.push("/app")},applyButtonText:"Okay",closeButton:!1,cancelButton:!1,applyButton:!1})}),(0,o.jsx)(E(),{href:"/app/marketplace",children:(0,o.jsxs)(L.Z,{component:"a",variant:"h5",fontWeight:500,mb:5,display:"flex",alignItems:"center",sx:{cursor:"pointer"},children:[(0,o.jsx)(yt.Z,{fontSize:"small"}),"Back"]})}),(0,o.jsx)(L.Z,{variant:"h5",lineHeight:2.5,mb:3,sx:{color:e.palette.text.secondary},children:"Draw Polygon"}),(0,o.jsx)(L.Z,{variant:"inherit",mb:5,sx:{color:e.palette.text.secondary},children:"Where do you need Mapilio coverage? Mark the area on the map to signal where fresh imagery should be collected."}),(0,o.jsx)(ut.Z,{required:!0,value:n,onChange:function(e){return l(e.target.value)},type:"text",sx:{mb:8,"&>div>fieldset":{borderRadius:1,borderColor:"".concat(e.palette.mapColors.light," !important")},"&>label.Mui-focused":{color:e.palette.text.light},"&>label":{color:e.palette.text.light},"&>.Mui-focused":{color:e.palette.text.light},"&>div>input":{color:e.palette.text.default}},label:"Company or name"}),(0,o.jsx)(xt(),{specialLabel:"Phone (Optional)",country:"tr",value:c,onChange:function(e){return d(e)},dropdownClass:"tel-dropdown",inputStyle:{width:"100%"}}),(0,o.jsx)(ut.Z,{multiline:!0,minRows:3,required:!0,value:p,onChange:function(e){return x(e.target.value)},maxRows:4,sx:{mt:8,mb:5,"&>div>fieldset":{borderRadius:1,borderColor:"".concat(e.palette.mapColors.light," !important")},"&>label.Mui-focused":{color:e.palette.text.light},"&>label":{color:e.palette.text.light},"&>.Mui-focused":{color:e.palette.text.light},"&>div>textarea":{color:e.palette.text.default}},label:"Message"})," ",(0,o.jsx)(K.Z,{variant:"contained",sx:{alignSelf:"flex-end",paddingY:1,borderRadius:1,"&.Mui-disabled":{backgroundColor:e.palette.mapColors.light}},size:"large",disabled:m,onClick:function(){var e=Z.getAll();(0,z.j2)({url:"".concat("https://end.mapilio.com","/api/function/mapilio/wish_list/requestCapture"),method:"POST",data:{options:{parameters:{name:n,phone_number:c,message:p,polygon:JSON.stringify(e.features[0].geometry)}}}}).then((function(e){return j(!0)})).catch((function(e){return b({type:"ALERT_TOAST_TOGGLE",payload:{open:!0,type:"error",text:"An error occurred. Please try again."}})}))},children:"Submit"}),(0,o.jsx)(bt,{})]})},Zt=function(){var e=function(e){switch(e.keyCode){case 8:case 46:window.confirm("If you delete shape, changes you've been made will be deleted. Are you sure?")&&(null===u||void 0===u||u.deleteAll(),null===u||void 0===u||u.changeMode("draw_polygon"),C({type:"SHAPE_STATUS",payload:"DRAWING"}),C({type:"UPDATE_SHAPE_INFO",payload:{}}));break;case 27:window.confirm("If you go back, the shape you drew will be deleted. Are you sure?")&&(null===u||void 0===u||u.deleteAll(),null===u||void 0===u||u.changeMode("simple_select"),null===p||void 0===p||p.setMinZoom(1),C({type:"SHAPE_STATUS",payload:"EMPTY"}),C({type:"UPDATE_SHAPE_INFO",payload:{}}));break;case 80:x.area||null===u||void 0===u||u.changeMode("draw_polygon")}},t=(0,a.Z)(),n=(0,r.useState)(""),l=n[0],c=n[1],d=(0,i.v9)((function(e){return e.mapReducer})),u=d.currentDraw,p=d.currentMap,x=(0,i.v9)((function(e){return e.shapeReducer})).shapeInfo,m=(0,i.v9)((function(e){return e.allToggle.boolean})),f=(0,r.useState)("INTRODUCTION"),g=f[0],y=f[1],j=(0,r.useState)(!1),v=j[0],b=j[1],w=(0,i.v9)((function(e){return e.mapReducer.ctrlRef})),S=(0,r.useState)(!0),T=S[0],k=S[1],C=(0,i.I0)();return(0,r.useEffect)((function(){k(!!m)}),[m,k,u]),(0,r.useEffect)((function(){null===u||void 0===u||u.changeMode("draw_polygon")}),[p,u]),(0,r.useEffect)((function(){w&&(w.ctrl.style.display="none")}),[w]),(0,r.useEffect)((function(){return document.addEventListener("keyup",e),function(){null===document||void 0===document||document.removeEventListener("keyup",e)}}),[x]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s.ZP,{container:!0,display:"flex",children:[(0,o.jsxs)(U.Z,{mdDown:!0,children:[(0,o.jsxs)(s.ZP,{item:!0,xs:0,md:9,xl:10,sx:{position:"absolute",top:"0",left:"0",width:"100vw",right:"0",zIndex:"1",paddingX:5,pt:4,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,o.jsx)(rt,{}),(0,o.jsx)(s.ZP,{children:(0,o.jsx)(je.wD,{loginDropdown:l,setOpenDropdown:c,fade:v,setFade:b})})]}),(0,o.jsx)(s.ZP,{item:!0,xs:0,md:9,xl:10,display:"flex",children:(0,r.useMemo)((function(){return(0,o.jsx)(dt.Z,{})}),[])})]}),(0,o.jsx)(s.ZP,{item:!0,xs:12,md:3,xl:2,zIndex:99,height:"100vh",display:"flex",padding:t.spacing(9,5),flexDirection:"column",bgcolor:t.palette.background.default,onClick:function(){return u.changeMode("simple_select")},children:(0,o.jsx)(wt,{setSection:y,section:g})})]}),(0,o.jsx)(De,{visible:T}),(0,o.jsx)(h.Z,{position:"fixed",left:"22px",bottom:"27px",width:"7
17px",height:"60px",zIndex:"99",sx:{transition:"0.1s ease-in",borderRadius:1},children:(0,o.jsx)(Z,{})})]})},St=n(76818),Tt=function(){var e=(0,r.useState)(),t=e[0],n=e[1],a=(0,i.I0)(),l=(0,r.useState)(0),s=(l[0],l[1]);return(0,r.useEffect)((function(){a({type:y.Ee,payload:!0})}),[]),(0,o.jsx)(St.HR,{imageViewLoaded:t,setImageViewLoaded:n,setImageRotate:s})},kt=n(72347),Ct=n(44373),_t=n(30381),It=n.n(_t),Et=n(59248),Pt=n(88097),Rt=n(23067),At=function(){var e,t=(0,H.Z)(),n=(0,i.v9)((function(e){return e.mapReducer})).imageView,a=(0,r.useState)(n.clickedPoint),l=a[0],s=a[1],c=(0,r.useState)(!1),d=c[0],u=c[1],p="1080";return(0,r.useEffect)((function(){s(n.clickedPoint)}),[n]),(0,Rt.Z)((function(){return(0,Pt.Iw)(n,p)}),d?1e3:null),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(g._ci,{marginLeft:"30px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",children:[(0,o.jsx)(g._ci.Prev,{style:{cursor:"pointer"},onClick:function(){return(0,Pt.dT)(n,p)}}),(0,o.jsx)(g._ci.Play,{style:{cursor:"pointer"},played:!d,onClick:function(){return u(!d)}}),(0,o.jsx)(g._ci.Next,{style:{cursor:"pointer"},onClick:function(){return(0,Pt.Iw)(n,p)}})]}),(0,o.jsx)(Et.ZP,{size:"medium",defaultValue:Number(n.clickedPoint),step:1,min:1,value:Number(l),onChange:function(e,t){return(0,Pt.hf)(e,n,p)},max:n.lineArray.length,valueLabelDisplay:"auto",sx:{marginLeft:"10px",color:"#c2c2c2","& .MuiSlider-track":{border:"none",backgroundColor:t.palette.primary.main},"& .MuiSlider-rail":{opacity:1},"& .MuiSlider-thumb":{width:12,height:12,backgroundColor:"#fff","&:after":{width:12,height:12},"&:before":{boxShadow:"0 4px 8px rgba(0,0,0,0.4)"},"&:hover, &.Mui-focusVisible, &.Mui-active":{boxShadow:"none"}}}}),(0,o.jsx)(h.Z,{marginLeft:"6px",display:"flex",children:(e=l,(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(L.Z,{textAlign:"right",color:"primary",fontWeight:600,children:e}),(0,o.jsxs)(L.Z,{color:"white",children:["/",n.lineArray.length]})]}))})]})},Lt=function(){var e=(0,H.Z)();return(0,o.jsx)(h.Z,{position:"relative",component:"a",href:"/app",target:"_blank",width:"32px",height:"32px",sx:{transition:"300ms all ease-out",textDecoration:"none",userSelect:"none","&:hover":{width:"103px","& #icon":{padding:"3px"}},cursor:"pointer"},display:"flex",alignItems:"flex-end",overflow:"hidden",children:(0,o.jsxs)(h.Z,{width:"100%",height:32,borderRadius:"16px",bgcolor:e.palette.primary.main,display:"flex",gap:"4px",alignItems:"center",children:[(0,o.jsx)(h.Z,{width:32,height:"100%",display:"flex",padding:"6px",id:"icon",sx:{transition:"300ms all ease-out"},alignItems:"center",children:(0,o.jsx)(g.Kjm,{width:32,height:32})}),(0,o.jsx)(L.Z,{fontSize:"11px",fontWeight:400,color:"white",children:"Contribute"})]})})},Mt=n(44850),Dt=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1];return(0,r.useEffect)((function(){var e=setTimeout((function(){return n(!1)}),2e3);return function(){clearTimeout(e)}}),[t]),(0,o.jsx)(_.Z,{TransitionComponent:Mt.Z,placement:"top",open:t,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:"copied",children:(0,o.jsx)(h.Z,{width:32,height:32,ml:"18px",borderRadius:"50%",sx:{cursor:"pointer",backgroundColor:"rgba(255,255,255,.1)","&>svg":{marginLeft:"-3px"}},onClick:function(){return(0,z.oR)(window.location,n)},display:"flex",alignItems:"center",justifyContent:"center",children:(0,o.jsx)(g.X$w,{height:23})})})},Ft=function(e){var t,n=e.loading,a=(0,i.v9)((function(e){return e.mapReducer})).imageView,l=(0,r.useState)(null),s=l[0],c=l[1];return(0,r.useEffect)((function(){n||(0,z.j2)({url:"".concat("https://end.mapilio.com","/api/search-user?options[parameters][id]=").concat(null===a||void 0===a?void 0:a.userId),method:"GET"}).then((function(e){null!==e.data?c(e.data[0].user_profile_photo):c(null)}))}),[n]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{position:"absolute",width:"100%",height:"180px",bottom:0,left:0,zIndex:99,sx:{background:"transparent linear-gradient(180deg, rgba(25, 25, 25, .8) 0%, rgba(30, 30, 30, 0.66) 20%, rgba(36, 36, 36, 0.35) 44%, rgba(44, 44, 44, 0.05) 75%, rgba(49, 49, 49, 0.01) 92%, rgba(51, 51, 51, 0) 100%)",transform:"rotate(180deg)"}}),(0,o.jsx)(h.Z,{position:"absolute",bottom:0,left:0,width:"100%",zIndex:102,children:(0,o.jsxs)(h.Z,{width:"100%",height:"66px",bgcolor:"rgba(25, 25, 25, .65)",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"9px 30px 15px",gap:"7px",children:[(0,o.jsxs)(h.Z,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",children:[(0,o.jsx)(kt.Z,{sx:{height:42,width:42},variant:"circular",src:s}),(0,o.jsxs)(h.Z,{ml:"10px",display:"flex",alignItems:"flex-start",flexDirection:"column",justifyContent:"center",children:[(0,o.jsx)(L.Z,{width:"186px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"14px",color:"#fff",children:null!==(t=a.address)&&void 0!==t?t:"Address Not Found"}),(0,o.jsx)(L.Z,{width:"186px",fontSize:"14px",color:"#808080",children:It()(null===a||void 0===a?void 0:a.date).format("MMM DD, YYYY [-] HH:mm")}
1)]}),(0,o.jsx)(Dt,{}),(0,o.jsx)(Ct.Z,{color:"white",orientation:"vertical",sx:{opacity:.24,marginLeft:"20px",height:"37px"}}),(0,o.jsx)(At,{})]}),(0,o.jsxs)(h.Z,{minWidth:"142px",display:"flex",alignItems:"center",justifyContent:"flex-end",children:[(0,o.jsx)(Lt,{}),(0,o.jsx)(h.Z,{sx:{cursor:"pointer"},component:"a",href:"/home",target:"_blank",width:32,height:32,borderRadius:"50%",marginLeft:"8px",bgcolor:"rgba(255,255,255,.9)",display:"flex",padding:"6px",alignItems:"center",justifyContent:"center",children:(0,o.jsx)(g.AQY,{width:"100%",height:"100%"})})]})]})})]})},Ot=n(7132),zt=n(33545),Gt=function(){var e=(0,r.useState)(!0),t=e[0],n=e[1],a=(0,i.v9)((function(e){return e.mapReducer})),l=a.mapStyle,s=a.imageView,c=a.currentMap,d=(0,i.I0)(),u=(0,r.useState)(!1),x=u[0],m=u[1],f={longitude:s.longitude,latitude:s.latitude,zoom:15};return(0,r.useEffect)((function(){var e;return c&&(e=setTimeout((function(){(0,B.CA)(c,s.lineArray[0].sequence_uuid),(0,B.No)(c,"heading-active","map-point-layer-active","map_points",s.id,s.heading)}),2e3)),function(){clearTimeout(e)}}),[c]),(0,r.useEffect)((function(){!t&&c&&(x||c.loadImage(g.X6q.src,(function(e,t){if(e)throw e;c.addImage("heading-active",t),m(!0)})))}),[s,t]),(0,o.jsxs)(h.Z,{width:"339px",children:[(0,o.jsx)(Fe.mQ,{loading:t}),(0,r.useMemo)((function(){return(0,o.jsx)(zt.ZP,(0,p.Z)({mapboxAccessToken:l.accessToken,attributionControl:!1,mapStyle:Ot.J,style:{height:"100vh"},onLoad:function(e){var t=e.target;d({type:"MAP_CURRENT",payload:t}),n(!1),(0,B.J1)(t)}},f))}),[s])]})},qt=function(){var e=(0,r.useState)(),t=e[0],n=e[1],a=(0,i.I0)(),l=(0,r.useState)(0),s=(l[0],l[1]);return(0,r.useEffect)((function(){a({type:y.Ee,payload:!0})}),[]),(0,o.jsxs)(h.Z,{display:"flex",alignItems:"center",children:[(0,o.jsx)(Gt,{}),(0,o.jsx)(h.Z,{flex:1,sx:{"&>img,& .pnlm-container":{position:"inherit",height:"100vh !important"}},children:(0,o.jsx)(St.HR,{imageViewLoaded:t,setImageViewLoaded:n,setImageRotate:s})})]})},Nt=function(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{position:"absolute",top:0,left:0,width:"100%",height:"110px",zIndex:100,sx:{background:"transparent linear-gradient(180deg, rgba(25, 25, 25, .3) 0%, rgba(38, 38, 38, 0.25) 63%, rgba(18, 18, 18, 0.04) 87%, rgba(25, 25, 25, 0) 100%)"}}),(0,o.jsx)(h.Z,{position:"absolute",top:15,left:30,zIndex:101,children:(0,o.jsx)(g.yqi,{})})]})},Ht=n(29815),Ut=n(72701),Bt=function(e){var t=e.projectKey,n=(0,r.useState)(!0),a=n[0],l=n[1],s=(0,r.useState)(null),c=s[0],d=s[1],u=(0,r.useState)(),h=u[0],m=u[1],f=(0,r.useState)([]),g=f[0],j=f[1],v=(0,de.useRouter)(),b=(0,i.I0)(),w=v.query.feature_id,Z=v.query.edit_feature,T=v.query.class_code,k=function(e){(0,z.j2)({url:"".concat("https://geo.mapilio.com/mapilio/ows?service=WFS&version=1.0.0&outputFormat=application%2Fjson&request=GetFeature&typeName=mapilio:").concat("map_points_for_embed","&CQL_FILTER=project_key='").concat(t,"'")}).then((function(n){if(!e.getLayer("map-point-layer")){e.getSource("embed-point")||e.addSource("embed-point",{type:"geojson",data:n});e.addLayer({id:"map-point-layer",type:"circle",source:"embed-point",paint:v.query.edit_feature?{"circle-radius":0}:{"circle-radius":["interpolate",["linear"],["zoom"],8,4,8.1,0,14,0,14.1,5],"circle-color":"#6929ff","circle-stroke-color":"#6929ff","circle-stroke-width":["interpolate",["linear"],["zoom"],7,1,7.1,0,14,0,14.1,2],"circle-stroke-opacity":.4,"circle-opacity":.95}}),v.query.edit_feature&&setTimeout((function(){_().then((function(t){I(t,e)}))}),1e3)}(0,B.z7)(e),(0,B.Zo)(e),Z||function(e){var n,o=(null===navigator||void 0===navigator||null===(n=navigator.userAgentData)||void 0===n?void 0:n.platform)||(null===navigator||void 0===navigator?void 0:navigator.platform);(0,z.j2)({url:"".concat("https://geo.mapilio.com/mapilio/ows?service=WFS&version=1.0.0&outputFormat=application%2Fjson&request=GetFeature&typeName=mapilio:").concat("map_features","&CQL_FILTER=project_key='").concat(t,"'+AND+class_code='").concat(T,"'")}).then((function(t){e.getLayer("map-object-layer")||e.getSource("mapilio-object")||(e.addSource("mapilio-object",{type:"geojson",data:t}),e.addLayer({id:"map-object-layer",type:"symbol",source:"mapilio-object",minzoom:8.7,layout:{"icon-image":["to-string",["get","class_code"]],"icon-size":"MacIntel"===o?.7:1,"icon-allow-overlap":!0}}))})),C(e),E(e)}(e)}))},C=function(e){var t,n,o,r=["all"];if(v.query.min_area&&r.push([">","area",parseFloat(v.query.min_area)]),v.query.max_area&&r.push(["<","area",parseFloat(v.query.max_area)]),v.query.center){var i=v.query.center.split(",");e.setCenter(i)}e.setMinZoom(null!==(t=v.query.minZoom)&&void 0!==t?t:10),e.setMaxZoom(null!==(n=v.query.maxZoom)&&void 0!==n?n:20),e.setZoom(null!==(o=v.query.zoom)&&void 0!==o?o:13),w||e.U.setFilter("map-object-layer",r)},_=function(){var e=(0,ae.Z)(se().mark((function e(){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,z.j2)({url:"".concat("https://geo.mapilio.com/mapilio/ows?service=WFS&version=1.0.0&outputFormat=application%2Fjson&request=GetFeature&typeName=mapilio:","features&CQL_FILTER=id=").concat(w)}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(e,t){var n=e.features[0].properties.id;(0,z.j2)({url:"".concat("https://geo.mapilio.com/mapilio/ows?service=WFS&version=1.0.0&outputFormat=application%2Fjson&request=GetFeature&typeName=mapilio:","features&CQL_FILTER=id=").concat(n)}).then((function(e){var n=JSON.parse(e.features[0].properties.matched_points),o=[],r={type:"FeatureCollection",features:[{type:"Feature",geometry:e.features[0].geometry}]};
1t.getSource("mapilio-object-bg-source").setData(r),n.forEach((function(e){var n=t.queryRenderedFeatures(null,{filter:["==","id",e.properties.panoId_1],layers:["map-point-layer"]}),r=t.queryRenderedFeatures(null,{filter:["==","id",e.properties.panoId_2],layers:["map-point-layer"]});n.length>0&&o.push((0,x.Z)((0,p.Z)({},n[0]),{bbox:e.properties.bbox_1,geometry:n[0].geometry})),r.length>0&&o.push((0,x.Z)((0,p.Z)({},r[0]),{bbox:e.properties.bbox_2,geometry:r[0].geometry}))}));var i=[];(0,Ht.Z)(o).filter((function(e){var t=i.findIndex((function(t){var n,o;return(null===(n=t.properties)||void 0===n?void 0:n.id)===(null===(o=e.properties)||void 0===o?void 0:o.id)}));return t<=-1&&i.push(e),[]})),j((0,Ht.Z)(i)),(0,B.jK)(t,i),b({type:y.ET,payload:!0})}))},E=function(e){v.query.feature_id||(e.on("click","map-object-layer",(function(t){return I(t,e)})),e.on("touchstart","map-object-layer",(function(t){return I(t,e)})))};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fe.mQ,{loading:a}),(0,o.jsx)(Ut.lZ,{setRelatedImages:j,relatedImages:g,top:20,left:20,maxHeight:300}),(0,o.jsx)(Ut.WH,{setViewImage:d,viewImage:c,imageViewLoaded:h,setImageViewLoaded:m}),(0,o.jsx)(Ut.W9,{setLoading:l,setViewImage:d,initialViewState:{longitude:28.71,latitude:41.1,zoom:13},setImageViewLoaded:m,setRelatedImages:j,onLoad:function(e){w?(Z&&k(e),function(e){var t,n=(null===navigator||void 0===navigator||null===(t=navigator.userAgentData)||void 0===t?void 0:t.platform)||(null===navigator||void 0===navigator?void 0:navigator.platform);(0,z.j2)({url:"".concat("https://geo.mapilio.com/mapilio/ows?service=WFS&version=1.0.0&outputFormat=application%2Fjson&request=GetFeature&typeName=mapilio:","features&CQL_FILTER=id=").concat(w,"&maxFeature=1")}).then((function(t){e.getLayer("map-object-layer")||e.getSource("mapilio-object")||(e.addSource("mapilio-object",{type:"geojson",data:t}),e.addLayer({id:"map-object-layer",type:"symbol",source:"mapilio-object",minzoom:8.7,layout:{"icon-image":["to-string",["get","class_code"]],"icon-size":"MacIntel"===n?.7:2,"icon-allow-overlap":!0}}))}))}(e),C(e)):(k(e),function(e){(0,z.j2)({url:"".concat("https://geo.mapilio.com/mapilio/ows?service=WFS&version=1.0.0&outputFormat=application%2Fjson&request=GetFeature&typeName=mapilio:").concat("map_roads_line_for_embed","&CQL_FILTER=project_key='").concat(t,"'")}).then((function(t){e.getLayer("map-road-layer")||(e.getSource("embed-line")||e.addSource("embed-line",{type:"geojson",data:t}),e.addLayer({id:"map-road-layer",type:"line",source:"embed-line",layout:{"line-cap":"round"},minzoom:0,paint:{"line-color":"hsl(258, 100%, 58%)","line-width":["interpolate",["linear"],["zoom"],3.138,10,7,3,7.1,3,14.1,2]}}))}))}(e))}}),(0,o.jsx)(S,{})]})},Wt=function(){var e=(0,i.I0)(),t=(0,de.useRouter)(),n=(0,r.useState)(!0),a=n[0],l=n[1],s=t.query.mapStyle,c=t.query.project_key,u=t.query.sequenceId,p=t.query.photoId,x=(0,r.useCallback)((function(n){(0,z.j2)({url:"".concat("https://end.mapilio.com","/api/embed/").concat(n),method:"GET"}).then((function(e){var t=e.data;m(t),l(!1)})).catch((function(n){e({type:y.BS,payload:{open:!0,text:"An error occurred. Please try again.",type:"error"}}),t.replace("/notfound")}))}),[]),m=function(t){var n=t.entries[p>t.entries.length?t.entries.length-1:p-1],o=n.capture_time,r=n.created_by_id,i=n.filename,a=n.latitude,l=n.longitude,s=n.id,c=n.resolution,d=n.heading,u=n.uploaded_hash,x=n.fov,h=n.vfov,m="".concat("https://cdn.mapilio.com/im","/").concat(u,"/").concat(i);e({type:y.lZ,payload:{image:"".concat(m,"/1080"),highResImage:m,date:o,open:!0,lineLength:t.entries.length,clickedPoint:p>t.entries.length?t.entries.length:p,lineArray:t.entries,resolution:c,id:s,userId:r,heading:d,latitude:a,longitude:l,address:t.info.start_address,haov:x,vaov:h}})};return(0,r.useEffect)((function(){!c&&u&&x(u)}),[]),c?(0,o.jsx)(d.ZP,{children:(0,o.jsx)(Bt,{projectKey:c})}):(0,o.jsx)(d.ZP,{children:(0,o.jsxs)(h.Z,{width:"100%",height:"100%",position:"relative",children:[(0,o.jsx)(Nt,{}),!a&&("photo"===s?(0,o.jsx)(Tt,{}):(0,o.jsx)(qt,{})),!a&&(0,o.jsx)(Ft,{loading:a})]})})}}}]);

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.