1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[921],{33311:function(e,t,r){"use strict";r.r(t),r.d(t,{DEFAULT_ID:function(){return i},Loader:function(){return s},LoaderStatus:function(){return a}});var n=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!==i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!==i--;){var s=a[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r};const i="__googleMapsScriptId";var a;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(a||(a={}));class s{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:a,id:o=i,language:l,libraries:u=[],mapIds:c,nonce:h,region:f,retries:d=3,url:g="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=a,this.id=o||i,this.language=l,this.libraries=u,this.mapIds=c,this.nonce=h,this.region=f,this.retries=d,this.url=g,this.version=p,s.instance){if(!n(this.options,s.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(s.instance.options)}`);return s.instance}s.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?a.FAILURE:this.done?a.SUCCESS:this.loading?a.LOADING:a.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=${this.CALLBACK}`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((r=>{r?t(r.error):e(window.google)}))}))}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const e=this.createUrl(),t=document.createElement("script");t.id=this.id,t.type="text/javascript",t.src=e,t.onerror=this.loadErrorCallback.bind(this),t.defer=!0,t.async=!0,this.nonce&&(t.nonce=this.nonce),document.head.appendChild(t)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}},37212:function(e,t,r){!function(e,t,r){"use strict";function n(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var i,a=n(r);e.Status=void 0,(i=e.Status||(e.Status={})).LOADING="LOADING",i.FAILURE="FAILURE",i.SUCCESS="SUCCESS";const s=({children:n,render:i,callback:s,...o})=>{const[l,u]=r.useState(e.Status.LOADING);return r.useEffect((()=>{const r=new t.Loader(o),n=e=>{s&&s(e,r),u(e)};n(e.Status.LOADING),r.load().then((()=>n(e.Status.SUCCESS)),(()=>n(e.Status.FAILURE)))}),[]),l===e.Status.SUCCESS&&n?a.default.createElement(a.default.Fragment,null,n):i?i(l):a.default.createElement(a.default.Fragment,null)};
1e.Wrapper=s,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(33311),r(67294))},15746:function(e,t,r){"use strict";var n=r(21584);t.Z=n.Z},71230:function(e,t,r){"use strict";var n=r(92820);t.Z=n.Z},58367:function(e,t){!function(e){"use strict";function t(e){return function(t,r,n,i,a,s,o){return e(t,r,o)}}function r(e){return function(t,r,n,i){if(!t||!r||"object"!==typeof t||"object"!==typeof r)return e(t,r,n,i);var a=i.get(t),s=i.get(r);if(a&&s)return a===r&&s===t;i.set(t,r),i.set(r,t);var o=e(t,r,n,i);return i.delete(t),i.delete(r),o}}function n(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r}function i(e){return e.constructor===Object||null==e.constructor}function a(e){return"function"===typeof e.then}function s(e,t){return e===t||e!==e&&t!==t}var o="[object Arguments]",l="[object Boolean]",u="[object Date]",c="[object RegExp]",h="[object Map]",f="[object Number]",d="[object Object]",g="[object Set]",p="[object String]",m=Object.prototype.toString;function b(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,b=e.areObjectsEqual,v=e.areRegExpsEqual,E=e.areSetsEqual,y=(0,e.createIsNestedEqual)(j);function j(e,j,S){if(e===j)return!0;if(!e||!j||"object"!==typeof e||"object"!==typeof j)return e!==e&&j!==j;if(i(e)&&i(j))return b(e,j,y,S);var x=Array.isArray(e),w=Array.isArray(j);if(x||w)return x===w&&t(e,j,y,S);var I=m.call(e);return I===m.call(j)&&(I===u?r(e,j,y,S):I===c?v(e,j,y,S):I===h?n(e,j,y,S):I===g?E(e,j,y,S):I===d||I===o?!a(e)&&!a(j)&&b(e,j,y,S):(I===l||I===f||I===p)&&s(e.valueOf(),j.valueOf()))}return j}function v(e,t,r,n){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!r(e[i],t[i],i,i,e,t,n))return!1;return!0}var E=r(v);function y(e,t){return s(e.valueOf(),t.valueOf())}function j(e,t,r,n){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={},s=0;return e.forEach((function(o,l){if(i){var u=!1,c=0;t.forEach((function(i,h){u||a[c]||!(u=r(l,h,s,c,e,t,n)&&r(o,i,l,h,e,t,n))||(a[c]=!0),c++})),s++,i=u}})),i}var S=r(j),x="_owner",w=Object.prototype.hasOwnProperty;function I(e,t,r,n){var i,a=Object.keys(e),s=a.length;if(Object.keys(t).length!==s)return!1;for(;s-- >0;){if((i=a[s])===x){var o=!!e.$$typeof,l=!!t.$$typeof;if((o||l)&&o!==l)return!1}if(!w.call(t,i)||!r(e[i],t[i],i,i,e,t,n))return!1}return!0}var k=r(I);function L(e,t){return e.source===t.source&&e.flags===t.flags}function O(e,t,r,n){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={};return e.forEach((function(s,o){if(i){var l=!1,u=0;t.forEach((function(i,c){l||a[u]||!(l=r(s,i,o,c,e,t,n))||(a[u]=!0),u++})),i=l}})),i}var C=r(O),_=Object.freeze({areArraysEqual:v,areDatesEqual:y,areMapsEqual:j,areObjectsEqual:I,areRegExpsEqual:L,areSetsEqual:O,createIsNestedEqual:t}),q=Object.freeze({areArraysEqual:E,areDatesEqual:y,areMapsEqual:S,areObjectsEqual:k,areRegExpsEqual:L,areSetsEqual:C,createIsNestedEqual:t}),N=b(_);function A(e,t){return N(e,t,void 0)}var Z=b(n(_,{createIsNestedEqual:function(){return s}}));function F(e,t){return Z(e,t,void 0)}var R=b(q);function M(e,t){return R(e,t,new WeakMap)}var D=b(n(q,{createIsNestedEqual:function(){return s}}));function $(e,t){return D(e,t,new WeakMap)}function P(e){return b(n(_,e(_)))}function U(e){var t=b(n(q,e(q)));return function(e,r,n){return void 0===n&&(n=new WeakMap),t(e,r,n)}}e.circularDeepEqual=M,e.circularShallowEqual=$,e.createCustomCircularEqual=U,e.createCustomEqual=P,e.deepEqual=A,e.sameValueZeroEqual=s,e.shallowEqual=F,Object.defineProperty(e,"__esModule",{value:!0})}(t)},81230:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/[appSlug]/settings/location/ne
1w",function(){return r(74674)}])},74674:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return _},default:function(){return q}});var n=r(82670),i=r(99534),a=r(85893),s=r(37212);const o=e=>null!=e&&"object"===typeof e&&Number.isFinite(e.lat)&&Number.isFinite(e.lng);var l=r(33859),u=r(71577),c=r(80737),h=r(69677),f=r(71230),d=r(15746),g=r(58367),p=r(55440),m=r(41664),b=r.n(m),v=r(11163),E=r(67294),y=r(1852),j=r(59223),S=r(39187),x=r(71370),w=r.n(x),I=function(e){return(0,a.jsx)("h1",{children:e})},k=function(e){var t,r,n=e.onClick,s=e.onIdle,o=e.children,l=e.style,u=(0,i.Z)(e,["onClick","onIdle","children","style"]),c=(0,E.useRef)(null),h=(0,E.useState)(),f=h[0],d=h[1];return(0,E.useEffect)((function(){c.current&&!f&&d(new window.google.maps.Map(c.current,{}))}),[c,f]),t=function(){f&&f.setOptions(u)},r=[f,u],(0,E.useEffect)(t,r.map(C)),(0,E.useEffect)((function(){f&&(["click","idle"].forEach((function(e){return google.maps.event.clearListeners(f,e)})),n&&f.addListener("click",n),s&&f.addListener("idle",(function(){return s(f)})))}),[f,n,s]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:c,style:l}),E.Children.map(o,(function(e){return(0,E.isValidElement)(e)?(0,E.cloneElement)(e,{map:f}):null}))]})},L=function(e){var t=(0,E.useState)(),r=t[0],n=t[1];return(0,E.useEffect)((function(){return r||n(new google.maps.Marker),function(){r&&r.setMap(null)}}),[r]),(0,E.useEffect)((function(){r&&r.setOptions(e)}),[r,e]),null},O=(0,g.createCustomEqual)((function(){return{areObjectsEqual:function(e,t){return o(e)||(0,n.Z)(e,google.maps.LatLng)||o(t)||(0,n.Z)(t,google.maps.LatLng)?new google.maps.LatLng(e).equals(new google.maps.LatLng(t)):(0,g.deepEqual)(e,t)}}}));function C(e){var t=(0,E.useRef)();return O(e,t.current)||(t.current=e),t.current}var _=!0,q=function(){var e=(0,v.useRouter)(),t=(0,y.useMediaQuery)({maxWidth:1023}),r=e.query.appSlug,n=(0,p.$G)("location").t,i=(0,S.Z)({middleware:"auth"}).userResponse,o=(0,E.useState)({lat:0,lng:0}),g=o[0],m=o[1];if("Editor"===(null===i||void 0===i?void 0:i.user.user_type))return(0,a.jsx)(l.ZP,{status:"404",title:"404",subTitle:n("common:not-found-page"),extra:(0,a.jsx)(b(),{href:"/dashboard/".concat(r),children:(0,a.jsx)("a",{children:(0,a.jsx)(u.Z,{type:"primary",children:n("common:back-home")})})})});var x=(0,a.jsxs)(c.Z,{className:w().locationForm,children:[(0,a.jsxs)("label",{htmlFor:"name",children:[" ",n("location-name")]}),(0,a.jsx)(h.Z,{name:"name"}),(0,a.jsxs)("label",{htmlFor:"address",children:[" ",n("location-adress")]}),(0,a.jsx)(h.Z,{name:"address"}),(0,a.jsxs)("label",{htmlFor:"definition",children:[" ",n("definition")]}),(0,a.jsx)(h.Z,{name:"definition"}),(0,a.jsxs)("label",{htmlFor:"lat",children:[" ",n("location-latitude")]}),(0,a.jsx)(h.Z,{name:"lat",value:g.lat,onChange:function(e){return m({lng:g.lng,lat:Number(e.target.value)})}}),(0,a.jsxs)("label",{htmlFor:"lng",children:[" ",n("location-longitude")]}),(0,a.jsx)(h.Z,{name:"lng",value:g.lng,onChange:function(e){return m({lng:Number(e.target.value),lat:g.lat})}}),(0,a.jsx)("div",{className:w().actionsBtn,children:(0,a.jsxs)(u.Z,{type:"primary",children:[" ",n("reset")]})})]});return(0,a.jsx)(j.Z,{children:(0,a.jsxs)(f.Z,{gutter:24,children:[(0,a.jsx)(d.Z,{span:24,children:(0,a.jsx)(u.Z,{style:{margin:"0 0 15px"},children:(0,a.jsx)(b(),{href:"/dashboard/".concat(r,"/settings/location"),children:(0,a.jsxs)("a",{style:{display:"flex"},children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-arrow-left",children:[(0,a.jsx)("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),(0,a.jsx)("polyline",{points:"12 19 5 12 12 5"})]}),"\xa0",n("backlist")]})})})}),(0,a.jsx)(d.Z,{span:t?24:18,children:(0,a.jsx)(s.Wrapper,{apiKey:"AIzaSyCj2v2727lBWLeXbgM_Hw_VEQgzjDgb8KY",render:I,children:(0,a.jsx)(k,{center:{lat:38.5915055,lng:35.2889376},onClick:function(e){var t;m(null===(t=e.latLng)||void 0===t?void 0:t.toJSON())},zoom:6,style:{flexGrow:"1",height:"54vh"},children:0===g.lat||(0===g.lng?null:(0,a.jsx)(L,{position:g}))})})}),(0,a.jsx)(d.Z,{span:t?24:6,children:x})]})})}},71370:function(e){e.exports={locationForm:"NewLocaiton_locationForm__g0prr",actionsBtn:"NewLocaiton_actionsBtn__LdDEU"}},82670:function(e,t,r){"use strict";function n(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{Z:function(){return n}})}},function(e){e.O(0,[3370,3909,44,8562,1554,5675,1876,737,494,1082,1852,8100,9834,6,3859,9223,9774,2888,179],(function(){return t=81230,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.