(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["local-seo-Maps-vue","local-seo-lite-Maps-vue","local-seo-pro-LocalSeoCta-vue","local-seo-pro-Maps-vue","local-seo-pro-MapsActivate-vue"],{"0d64":function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-local-maps"},[e("core-card",{attrs:{slug:"localBusinessMapsApiKey"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.strings.googleMapsApiKey)+" ")]},proxy:!0}])},[e("core-blur",[e("div",{staticClass:"aioseo-settings-row"},[e("p",{staticClass:"apikey-description"},[t._v(t._s(t.strings.description))])]),e("core-settings-row",{attrs:{name:t.strings.apiKey,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-input",{attrs:{size:"medium"}})]},proxy:!0}])}),e("core-display-info",{attrs:{options:t.displayInfo}})],1)],1),e("local-seo-cta")],1)},o=[],a=e("734c"),n={components:{LocalSeoCta:a["default"]},data:function(){return{strings:{googleMapsApiKey:this.$t.__("Google Maps API Key",this.$td),description:this.$t.__("Integrating with Google Maps will allow your users to find exactly where your business is located. Our interactive maps let them see your Google Reviews and get directions directly from your site. Create multiple maps for use with multiple locations.",this.$td),apiKey:this.$t.__("API Key",this.$td),mapSettings:this.$t.__("Map Settings",this.$td)},displayInfo:{widget:{copy:"",desc:this.$t.sprintf(this.$t.__('To add this widget, visit the %1$swidgets page%2$s and look for the "%3$s Local - Map" widget.',this.$td),''),"","AIOSEO")},shortcode:{copy:"[aioseo_local_map]",desc:this.$t.sprintf(this.$t.__("Use the following shortcode to display the location map. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoShortcodeMap",!0))},block:{copy:"",desc:this.$t.sprintf(this.$t.__('To add this block, edit a page or post and search for the "%1$s Local - Map" block.',this.$td),"AIOSEO")},php:{copy:"",desc:this.$t.sprintf(this.$t.__("Use the following PHP code anywhere in your theme to display the location map. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoFunctionMap",!0))}}}}},r=n,l=e("2877"),c=Object(l["a"])(r,i,o,!1,null,null,null);s["default"]=c.exports},4369:function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-local-maps"},[e("core-card",{attrs:{slug:"localBusinessMapsApiKey"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.strings.googleMapsApiKey)+" ")]},proxy:!0}])},[e("core-blur",[e("div",{staticClass:"aioseo-settings-row"},[e("p",{staticClass:"apikey-description"},[t._v(t._s(t.strings.description))])]),e("core-settings-row",{attrs:{name:t.strings.apiKey,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-input",{attrs:{size:"medium"}})]},proxy:!0}])}),e("core-display-info",{attrs:{options:t.displayInfo}})],1)],1),e("cta",{attrs:{"cta-link":t.$links.getPricingUrl("local-seo","local-seo-upsell","maps"),"button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getUpsellUrl("local-seo",null,"home"),"feature-list":t.features},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t._v(" "+t._s(t.strings.ctaDescription)+" ")]},proxy:!0}])})],1)},o=[],a={data:function(){return{features:[this.$t.__("Google Places Support",this.$td),this.$t.__("Google Reviews",this.$td),this.$t.__("Driving Directions",this.$td),this.$t.__("Multiple Locations",this.$td)],strings:{googleMapsApiKey:this.$t.__("Google Maps API Key",this.$td),description:this.$t.__("Integrating with Google Maps will allow your users to find exactly where your business is located. Our interactive maps let them see your Google Reviews and get directions directly from your site. Create multiple maps for use with multiple locations.",this.$td),apiKey:this.$t.__("API Key",this.$td),mapSettings:this.$t.__("Map Settings",this.$td),ctaButtonText:this.$t.__("Upgrade to Pro and Unlock Local SEO",this.$td),ctaHeader:this.$t.sprintf(this.$t.__("Local SEO Maps are only available for licensed %1$s %2$s users.",this.$td),"AIOSEO","Pro"),ctaDescription:this.$t.__("Show your location to your visitors using an interactive Google Map. Create multiple maps for use with multiple locations.",this.$td)},displayInfo:{widget:{copy:"",desc:this.$t.sprintf(this.$t.__('To add this widget, visit the %1$swidgets page%2$s and look for the "%3$s Local - Map" widget.',this.$td),''),"","AIOSEO")},shortcode:{copy:"[aioseo_local_map]",desc:this.$t.sprintf(this.$t.__("Use the following shortcode to display the location map. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoShortcodeMap",!0))},block:{copy:"",desc:this.$t.sprintf(this.$t.__('To add this block, edit a page or post and search for the "%1$s Local - Map" block.',this.$td),"AIOSEO")},php:{copy:"",desc:this.$t.sprintf(this.$t.__("Use the following PHP code anywhere in your theme to display the location map. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoFunctionMap",!0))}}}}},n=a,r=(e("826c"),e("2877")),l=Object(r["a"])(n,i,o,!1,null,null,null);s["default"]=l.exports},"52d1":function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-maps"},[t.isUnlicensed||!t.$addons.isActive("aioseo-local-business")||t.$addons.requiresUpgrade("aioseo-local-business")?t._e():e("maps-pro"),t.isUnlicensed||t.$addons.isActive("aioseo-local-business")||!t.$addons.canActivate("aioseo-local-business")||t.$addons.requiresUpgrade("aioseo-local-business")?t._e():e("maps-activate"),t.isUnlicensed||t.$addons.requiresUpgrade("aioseo-local-business")?e("maps-lite"):t._e()],1)},o=[],a=e("5530"),n=e("2f62"),r=e("0d64"),l=e("4369"),c=e("9268"),p={components:{MapsActivate:r["default"],MapsLite:l["default"],MapsPro:c["default"]},computed:Object(a["a"])({},Object(n["c"])(["isUnlicensed"]))},d=p,u=e("2877"),h=Object(u["a"])(d,i,o,!1,null,null,null);s["default"]=h.exports},"56bf":function(t,s,e){"use strict";e("c341")},"734c":function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("cta",{attrs:{"cta-button-visible":t.$addons.userCanInstallOrActivate("aioseo-local-business"),"cta-button-visible-warning":t.strings.permissionWarning,"cta-link":t.$aioseo.urls.aio.featureManager+"&aioseo-activate=aioseo-local-business","cta-button-action":"","cta-button-loading":t.activationLoading,"same-tab":"","button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getDocUrl("localSeo"),"feature-list":[t.strings.businessType,t.strings.businessContact,t.strings.paymentInfo,t.strings.image,t.strings.showOpeningHours,t.strings.googleMaps]},on:{"cta-button-click":t.activateAddon},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.locationSeoHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t.failed?e("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.activateError)+" ")]):t._e(),t._v(" "+t._s(t.strings.ctaDescription)+" ")]},proxy:!0},{key:"learn-more-text",fn:function(){return[t._v(" "+t._s(t.strings.learnMoreText)+" ")]},proxy:!0}])})},o=[],a=e("5530"),n=(e("7db0"),e("2f62")),r={data:function(){return{failed:!1,activationLoading:!1,strings:{locationSeoHeader:this.$t.__("Enable Local SEO on your Site",this.$tdPro),ctaDescription:this.$t.__("The Local SEO module is a premium feature that enables businesses to tell Google about their business, including their business name, address and phone number, opening hours and price range. This information may be displayed as a Knowledge Graph card or business carousel in the search engine sidebar.",this.$tdPro),ctaButtonText:this.$t.__("Activate Local SEO",this.$tdPro),learnMoreText:this.$t.__("Learn more about Local SEO",this.$tdPro),showOpeningHours:this.$t.__("Show Opening Hours",this.$td),selectTimeZoneCTA:this.$t.__("Select your timezone",this.$td),googleMaps:this.$t.__("Google Maps",this.$td),businessType:this.$t.__("Type",this.$td),businessContact:this.$t.__("Contact Info",this.$td),paymentInfo:this.$t.__("Payment Info",this.$td),image:this.$t.__("Image",this.$td),activateError:this.$t.__("An error occurred while activating the addon. Please upload it manually or contact support for more information.",this.$td),permissionWarning:this.$t.__("You currently don't have permission to activate this addon. Please ask a site administrator to activate first.",this.$td)}}},computed:Object(a["a"])({},Object(n["e"])(["addons"])),methods:Object(a["a"])(Object(a["a"])(Object(a["a"])({},Object(n["b"])(["installPlugins"])),Object(n["d"])(["updateAddon"])),{},{activateAddon:function(){var t=this;this.failed=!1,this.activationLoading=!0;var s=this.addons.find((function(t){return"aioseo-local-business"===t.sku}));this.installPlugins([{plugin:s.basename}]).then((function(s){t.activationLoading=!1,s.body.failed.length?t.failed=!0:window.location.reload()})).catch((function(){t.activationLoading=!1}))}})},l=r,c=e("2877"),p=Object(c["a"])(l,i,o,!1,null,null,null);s["default"]=p.exports},"826c":function(t,s,e){"use strict";e("9301")},9268:function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-local-maps"},[e("core-card",{attrs:{slug:"localBusinessMapsApiKey"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.strings.googleMapsApiKey)+" ")]},proxy:!0}])},[e("div",{staticClass:"aioseo-settings-row"},[e("p",{staticClass:"apikey-description",domProps:{innerHTML:t._s(t.strings.description)}})]),e("core-settings-row",{attrs:{name:t.strings.apiKey,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("base-input",{class:{"aioseo-error":!1===t.options.localBusiness.maps.apiKeyValid},attrs:{size:"medium",spellcheck:!1},on:{input:function(s){return t.checkApiKey()}},scopedSlots:t._u([{key:"append-icon",fn:function(){return[e("div",{staticClass:"append-icon"},[[!1===t.options.localBusiness.maps.apiKeyValid?e("svg-circle-close"):t._e()]],2)]},proxy:!0}]),model:{value:t.options.localBusiness.maps.apiKey,callback:function(s){t.$set(t.options.localBusiness.maps,"apiKey",s)},expression:"options.localBusiness.maps.apiKey"}}),e("div",{staticClass:"aioseo-description",domProps:{innerHTML:t._s(t.strings.apiKeyDescription)}}),!1===t.options.localBusiness.maps.apiKeyValid?e("core-alert",{attrs:{type:"red"},domProps:{innerHTML:t._s(t.strings.apiKeyInvalid)}}):t._e(),t.options.localBusiness.maps.apiKey&&t.options.localBusiness.maps.apiKeyValid&&!1===t.options.localBusiness.maps.mapsEmbedApiEnabled?e("core-alert",{attrs:{type:"yellow"},domProps:{innerHTML:t._s(t.strings.placeSelected)}}):t._e()]},proxy:!0}])}),t.options.localBusiness.maps.apiKey?e("core-settings-row",{attrs:{name:t.strings.mapPreview,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[e("core-map",{attrs:{apiKey:t.options.localBusiness.maps.apiKey,options:t.defaultMapOptions,placeId:t.options.localBusiness.maps.placeId,marker:t.currentMarker}})]},proxy:!0}],null,!1,1669766895)}):t._e()],1),t.options.localBusiness.maps.apiKey?e("core-card",{attrs:{slug:"localBusinessMapsSettings"},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.strings.mapSettings)+" ")]},proxy:!0}],null,!1,2727138174)},[e("local-business-map-display-info",{attrs:{label:t.strings.displayMap,displayOptions:t.displayInfo}}),e("local-business-map-default-style"),e("local-business-map-custom-marker")],1):t._e()],1)},o=[],a=e("5530"),n=(e("d4ec"),e("bee2"),e("ade3"),e("1da1")),r=(e("96cf"),e("a15b"),e("d3b7"),e("159b"),e("a026"));function l(t,s){return c.apply(this,arguments)}function c(){return c=Object(n["a"])(regeneratorRuntime.mark((function t(s,e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(s&&e){t.next=2;break}return t.abrupt("return",!1);case 2:t.t0=e,t.next="places/embed"===t.t0?5:8;break;case 5:return t.next=7,r["default"].prototype.$http.post(r["default"].prototype.$links.restUrl("local-business/maps/check-api-enabled")).send({apiKey:s,apiName:e}).then((function(t){return 200===t.statusCode})).catch((function(t){return!1}));case 7:return t.abrupt("return",t.sent);case 8:return t.abrupt("return",!1);case 9:case"end":return t.stop()}}),t)}))),c.apply(this,arguments)}var p=e("2f62"),d={data:function(){return{strings:{googleMapsApiKey:this.$t.__("Google Maps API Key",this.$td),description:this.$t.sprintf(this.$t.__("Integrating with Google Maps will allow your users to find exactly where your business is located. Our interactive maps let them see your Google Reviews and get directions directly from your site. Create multiple maps for use with multiple locations. %s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoMapSetup",!0)),apiKey:this.$t.__("API Key",this.$td),apiKeyDescription:this.$t.sprintf(this.$t.__("A Google API Key is necessary to render your maps. %s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoMapSetup",!0)),mapSettings:this.$t.__("Map Settings",this.$td),apiKeyInvalid:this.$t.sprintf(this.$t.__("Your API Key is invalid. Please make sure you have set your key correctly. %1$s",this.$td),this.$links.getDocLink(this.$t.__("Learn more",this.$td),"localSeoMapSetup",!0)),placeSelected:this.$t.sprintf(this.$t.__("Your Maps Embed API is not enabled. For a more seamless experience with rich information cards, please enable it in your Google Project. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoMapEmbedApi",!0)),displayMap:this.$t.__("Display Map",this.$td),mapPreview:this.$t.__("Map Preview",this.$td)},displayInfo:{widget:{copy:"",desc:this.$t.sprintf(this.$t.__('To add this widget, visit the %1$swidgets page%2$s and look for the "%3$s Local - Map" widget.',this.$td),''),"","AIOSEO")},shortcode:{copy:"[aioseo_local_map]",desc:this.$t.sprintf(this.$t.__("Use the following shortcode to display the location map. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoShortcodeMap",!0))},block:{copy:"",desc:this.$t.sprintf(this.$t.__('To add this block, edit a page or post and search for the "%1$s Local - Map" block.',this.$td),"AIOSEO")},php:{copy:"",desc:this.$t.sprintf(this.$t.__("Use the following PHP code anywhere in your theme to display the location map. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"localSeoFunctionMap",!0))}}}},computed:Object(a["a"])(Object(a["a"])({},Object(p["e"])(["options"])),{},{defaultMapOptions:function(){return Object(a["a"])(Object(a["a"])({},this.options.localBusiness.maps.mapOptions),this.$aioseo.localBusiness.mapDefaults)},currentMarker:function(){return{position:this.options.localBusiness.maps.mapOptions.center,icon:this.options.localBusiness.maps.customMarker}}}),methods:{apiKeyFailed:function(){this.options.localBusiness.maps.apiKeyValid=!1},checkApiKey:function(){this.options.localBusiness.maps.apiKeyValid=!0,this.options.localBusiness.maps.mapsEmbedApiEnabled=null,window.gm_authFailure=this.apiKeyFailed,this.checkMapEmbedApi()},checkMapEmbedApi:function(){var t=this;l(this.options.localBusiness.maps.apiKey,"places/embed").then((function(s){t.options.localBusiness.maps.mapsEmbedApiEnabled=s}))}},mounted:function(){this.options.localBusiness.maps.apiKey&&this.checkMapEmbedApi()}},u=d,h=(e("56bf"),e("2877")),_=Object(h["a"])(u,i,o,!1,null,null,null);s["default"]=_.exports},9301:function(t,s,e){},c341:function(t,s,e){}}]);