Files
2026-04-28 15:13:50 +02:00

2 lines
26 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{f as m,i as x,j as i,U as r,P as V,v as l,Q as y,R as a,a0 as t,M as f,aq as u,ae as I,an as q}from"./vendor-vue-ui.de3ab35f.js";import{a as O,d as P,G as D,b as G,j as E}from"./app-core.ae890a3f.js";import{u as Y}from"./Widgets.e7888561.js";import{_ as U}from"./_plugin-vue_export-helper.eefbdd86.js";import{B as R}from"./RadioToggle.de933e45.js";import{u as K}from"./ScrollAndHighlight.0a0ea3d2.js";import{C as M}from"./Card.c7ceb11b.js";import{C as w}from"./SettingsRow.0c329e43.js";import{L as Q,_ as J,a as X,b as Z,c as $,d as ee,e as oe,f as se,g as ne}from"./PaymentInfo.b16e4eb4.js";import{_ as e,a as C}from"./vendor-other.7b559694.js";import{C as N}from"./Index.52399193.js";import{C as z}from"./ProBadge.fd60f711.js";import{C as te,a as ie}from"./Index.ccb02f37.js";import{B as ae}from"./Checkbox.79be52ca.js";import{S as le,a as re}from"./Mobile.324d9a84.js";import{_ as ce}from"./Cta.8109c090.js";import{C as ue}from"./Blur.5e231db6.js";import{S as me}from"./Plus.d276bd63.js";import{R as pe}from"./RequiredPlans.c6bcf6ea.js";import{C as de}from"./Index.43bf246d.js";import{u as ge}from"./AddonConditions.d0b4b606.js";import"./vendor-lodash.8e35bd59.js";import"./ScrollTo.f4df02aa.js";import"./Tooltip.ae7a1028.js";import"./Caret.a017b70a.js";import"./Trash.d35f8063.js";import"./Close.098d4b76.js";import"./Slide.e6618126.js";import"./Row.6337df55.js";import"./HtmlTagsEditor.f64ea7dd.js";import"./Editor.10fec9a8.js";import"./vendor-quill.fa67f709.js";import"./Input.8918dec2.js";import"./Pencil.405b16d2.js";import"./Plus.97dee933.js";import"./UnfilteredHtml.8040f29d.js";import"./vendor-emoji.92c96208.js";import"./vendor-phone.8b9bc15d.js";import"./ImageUploader.fbfb8dc4.js";import"./Button.a549093d.js";import"./Img.218d4bc6.js";import"./Map.d67f5d6f.js";import"./BoxToggle.cc3b8153.js";import"./CheckSolid.7f805a48.js";import"./Checkmark.fac3f231.js";const _e={props:{strings:{}},data(){return{hoveringOver:!1}}},he={href:"edit.php?post_type=aioseo-location",class:"wp-has-submenu wp-not-current-submenu menu-top menu-icon-aioseo-location menu-top-last","aria-haspopup":"true"},fe={class:"wp-menu-name"},Se={class:"wp-submenu wp-submenu-wrap"},be={class:"wp-submenu-head","aria-hidden":"true"},ye={class:"wp-first-item"},ve={href:"edit.php?post_type=aioseo-location",class:"wp-first-item"},Le={href:"post-new.php?post_type=aioseo-location"},we={href:"edit-tags.php?taxonomy=aioseo-location-category&post_type=aioseo-location"};function Be(c,o,p,s,n,v){return m(),x("li",{class:V(["wp-has-submenu wp-not-current-submenu menu-top menu-icon-aioseo-location menu-top-last",{opensub:n.hoveringOver===0}]),id:"menu-posts-aioseo-location",onMouseover:o[0]||(o[0]=_=>n.hoveringOver=0),onMouseleave:o[1]||(o[1]=_=>n.hoveringOver=-1)},[i("a",he,[o[2]||(o[2]=i("div",{class:"wp-menu-image dashicons-before dashicons-location","aria-hidden":"true"},null,-1)),i("div",fe,r(p.strings.locations),1)]),i("ul",Se,[i("li",be,r(p.strings.locations),1),i("li",ye,[i("a",ve,r(p.strings.allLocations),1)]),i("li",null,[i("a",Le,r(p.strings.addNew),1)]),i("li",null,[i("a",we,r(p.strings.locationCategories),1)])])],34)}const Ce=U(_e,[["render",Be]]),xe={class:"aioseo-settings-row aioseo-section-description"},ke={class:"location-description"},Ie={class:"location-description mb-0"},Te={__name:"BusinessInfo",setup(c){const o="aioseo-pro";K({scrollTimeout:200});const p=O(),s={locationInfo1:e("Local Business schema markup informs Google about your business details like name, address, phone number, hours, and price range, which can appear in a Knowledge Graph card or business carousel.",o),locationInfo2:e("Local business information may be displayed when users search for businesses on Google search or Google Maps. Google decides on a per search basis whether to display this information or not and its completely automated.",o),businessInfo:e("Business Info",o),name:e("Name",o),businessType:e("Type",o),urls:e("URLs",o),businessAddress:e("Address",o),businessContact:e("Contact Info",o),businessIDs:e("IDs",o),paymentInfo:e("Payment Info",o),areaServed:e("Area Served",o),image:e("Image",o),map:e("Map",o)};return(n,v)=>(m(),x("div",null,[l(p).options.localBusiness.locations.general.multiple?f("",!0):(m(),y(l(M),{key:0,slug:"localBusinessInfo","card-id":"localBusinessInfo","header-text":s.businessInfo},{default:a(()=>[i("div",xe,[i("p",ke,r(s.locationInfo1),1),i("p",Ie,r(s.locationInfo2),1)]),t(l(w),{name:s.name,class:"info-name-row",align:""},{content:a(()=>[t(l(Q))]),_:1},8,["name"]),t(l(w),{class:"info-business-image",name:s.image,align:""},{content:a(()=>[t(l(J))]),_:1},8,["name"]),t(l(w),{id:"info-business-type",name:s.businessType,class:"info-business-type",align:""},{content:a(()=>[t(l(X))]),_:1},8,["name"]),t(l(w),{id:"info-business-address-row",name:s.businessAddress,class:"info-business-address-row",align:""},{content:a(()=>[t(l(Z))]),_:1},8,["name"]),t(l(w),{name:s.map,align:"",id:"aioseo-business-info-map"},{content:a(()=>[t(l($))]),_:1},8,["name"]),t(l(w),{id:"info-business-contact-row",name:s.businessContact,class:"info-business-contact-row",align:""},{content:a(()=>[t(l(ee))]),_:1},8,["name"]),t(l(w),{name:s.businessIDs,class:"info-business-IDs-row",align:""},{content:a(()=>[t(l(oe))]),_:1},8,["name"]),t(l(w),{id:"info-payment-info-row",name:s.paymentInfo,class:"info-payment-info-row",align:""},{content:a(()=>[t(l(se))]),_:1},8,["name"]),t(l(w),{name:s.areaServed,class:"info-area-row",align:""},{content:a(()=>[t(l(ne))]),_:1},8,["name"])]),_:1},8,["header-text"]))]))}},g="aioseo-pro",Ae={components:{CoreAttributesList:ie,CoreUiElementSlider:te},props:{label:null,displayOptions:{type:Object,required:!0}},data(){return{strings:{shortcodeAttributesDescription:e("The following shortcode attributes can be used to override the default settings:",g),phpArgumentsDescription:e("The function accepts an associative array with the following arguments that can be used to override the default settings:",g),advancedSettings:e("Advanced Settings",g)},attributes:[{name:"location_id",description:e("A Location ID if Multiple Locations is on.",g)},{name:"show_labels",description:e("Show or hide labels ( Address:, Phone:, Fax:, Email:, etc ).",g)},{name:"show_icons",description:e("Show or hide icons ( address, phone, fax, email ).",g)},{name:"show_name",description:e("Show or hide the business name.",g)},{name:"show_address",description:e("Show or hide the address.",g)},{name:"show_phone",description:e("Show or hide the phone number.",g)},{name:"show_fax",description:e("Show or hide the fax number.",g)},{name:"show_email",description:e("Show or hide the email.",g)},{name:"show_vat",description:e("Show or hide the Vat ID.",g)},{name:"show_tax",description:e("Show or hide the Tax ID.",g)},{name:"address_label",description:e("The address label.",g)},{name:"vat_id_label",description:e("The VAT ID label.",g)},{name:"tax_id_label",description:e("The Tax ID label.",g)},{name:"phone_label",description:e("The phone label.",g)},{name:"fax_label",description:e("The fax label.",g)},{name:"email_label",description:e("The email label.",g)}]}}};function Pe(c,o,p,s,n,v){const _=u("core-attributes-list"),L=u("core-ui-element-slider");return m(),y(L,{label:p.label,options:p.displayOptions},{shortcodeAdvanced:a(()=>[t(_,{description:n.strings.shortcodeAttributesDescription,attributes:n.attributes},null,8,["description","attributes"])]),phpAdvanced:a(()=>[t(_,{description:n.strings.phpArgumentsDescription,attributes:n.attributes},null,8,["description","attributes"])]),_:1},8,["label","options"])}const Ue=U(Ae,[["render",Pe]]),S="aioseo-pro",De={setup(){return{licenseStore:E(),optionsStore:O(),rootStore:G(),GLOBAL_STRINGS:D}},components:{BaseCheckbox:ae,BaseRadioToggle:R,CoreCard:M,CoreSettingsRow:w,CoreAlert:N},data(){return{strings:{advancedLocationsSettings:e("Advanced Locations Settings",S),locationsPermalink:e("Locations Permalink",S),useCustomSlug:e("Use custom slug",S),invalidCustomSlug:e("Slug is empty or is already taken. Please enter a different one.",S),locationsCategoryPermalink:e("Locations Category Permalink",S),useCustomCategorySlug:e("Use custom category slug",S),enhancedSearch:e("Enhanced Search",S),enhancedSearchDesc:e("Include business locations in site-wide search results. Users searching for street name, zip code or city will now also get your business location(s) in their search results.",S),enhancedSearchError:C(e("Enhanced Search cannot be enabled on your website because there is a search query conflict. To learn more about this, %1$sclick here%2$s.",S),`<a href="${P.getDocUrl("localSeoSearchQueryConflict")}" target="_blank">`,"</a>"),enhancedSearchExcerpt:e("Enhanced Search - Excerpt",S),enhancedSearchExcerptDesc:e("Shows the location address appended to the search result.",S),customAdminLabels:e("Custom Admin Labels",S),customAdminLabelsDesc:e("With multiple locations, you will have a new menu item in your admin sidebar. By default, this menu item is labeled using the plural term of locations with each single item being called a location. If you like, you may enter custom labels to better match your business.",S),singleLabel:e("Single label",S),pluralLabel:e("Plural label",S)},validCustomSlug:!0,validCustomCategorySlug:!0}},computed:{currentPostTypeSlug(){return this.optionsStore.options.localBusiness.locations.general.useCustomSlug&&this.optionsStore.options.localBusiness.locations.general.customSlug?this.optionsStore.options.localBusiness.locations.general.customSlug:this.rootStore.aioseo.localBusiness?.postTypeDefaultSlug},currentTaxonomySlug(){return this.optionsStore.options.localBusiness.locations.general.useCustomCategorySlug&&this.optionsStore.options.localBusiness.locations.general.customCategorySlug?this.optionsStore.options.localBusiness.locations.general.customCategorySlug:this.rootStore.aioseo.localBusiness?.taxonomyDefaultSlug}},methods:{validateCustomSlug(c){this.validCustomSlug=!0,c=c.replace(/^\/+/,"").replace(/\/+$/,"").replace(/\s+/g,"-"),this.optionsStore.options.localBusiness.locations.general.customSlug=c,(0>=c.length||0<this.rootStore.aioseo.postData.postTypes.filter(o=>o.name!==this.rootStore.aioseo.localBusiness?.postTypeName&&o.slug===c).length)&&(this.validCustomSlug=!1)},validateCustomCategorySlug(c){this.validCustomCategorySlug=!0,c=c.replace(/^\/+/g,"").replace(/\/+$/g,"").replace(/\s+/g,"-"),this.optionsStore.options.localBusiness.locations.general.customCategorySlug=c,(0>=c.length||0<this.rootStore.aioseo.postData.taxonomies.filter(o=>o.name!==this.rootStore.aioseo.localBusiness?.taxonomyName&&o.slug===c).length)&&(this.validCustomCategorySlug=!1)}}},Me={class:"aioseo-locations aioseo-locations-multiple-locations-settings"},Ve={class:"location-permalink-preview"},Oe={class:"baseurl"},Ee=["innerHTML"],Ge={key:1,class:"aioseo-description aioseo-error"},Re={class:"location-permalink-preview location-category-permalink-preview"},Ne={class:"baseurl"},ze=["innerHTML"],He={key:1,class:"aioseo-description aioseo-error"},We={class:"aioseo-description"},Fe={class:"aioseo-description"},je={class:"admin-labels-description"},qe={class:"aioseo-columns"},Ye={class:"aioseo-col col-xs-12 col-md-6 text-xs-left"},Ke={class:"label-description"},Qe={class:"aioseo-col col-xs-12 col-md-6 text-xs-left"},Je={class:"label-description"};function Xe(c,o,p,s,n,v){const _=u("base-checkbox"),L=u("base-input"),B=u("core-settings-row"),k=u("base-radio-toggle"),T=u("core-alert"),A=u("core-card");return m(),x("div",Me,[s.optionsStore.options.localBusiness.locations.general.multiple&&s.licenseStore.license.isActive?(m(),y(A,{key:0,slug:"advancedLocationsSettings","header-text":n.strings.advancedLocationsSettings},{default:a(()=>[t(B,{class:"location-permalink",name:n.strings.locationsPermalink},{content:a(()=>[i("div",Ve,[i("span",Oe,r(s.rootStore.aioseo.urls.home.replace(/\/$/,"")),1),i("span",{innerHTML:s.rootStore.aioseo.localBusiness?.postTypePermalinkStructure.replace(/{slug}/,"<span class='slug'>"+v.currentPostTypeSlug+"</span>")},null,8,Ee)]),t(_,{size:"medium",modelValue:s.optionsStore.options.localBusiness.locations.general.useCustomSlug,"onUpdate:modelValue":o[0]||(o[0]=d=>s.optionsStore.options.localBusiness.locations.general.useCustomSlug=d)},{default:a(()=>[I(r(n.strings.useCustomSlug),1)]),_:1},8,["modelValue"]),s.optionsStore.options.localBusiness.locations.general.useCustomSlug?(m(),y(L,{key:0,modelValue:s.optionsStore.options.localBusiness.locations.general.customSlug,"onUpdate:modelValue":[o[1]||(o[1]=d=>s.optionsStore.options.localBusiness.locations.general.customSlug=d),o[2]||(o[2]=d=>v.validateCustomSlug(d))],class:V(["custom-slug",{"aioseo-error":!n.validCustomSlug}]),size:"medium",spellcheck:!1},null,8,["modelValue","class"])):f("",!0),s.optionsStore.options.localBusiness.locations.general.useCustomSlug&&!n.validCustomSlug?(m(),x("div",Ge,r(n.strings.invalidCustomSlug),1)):f("",!0)]),_:1},8,["name"]),t(B,{class:"location-category-permalink",name:n.strings.locationsCategoryPermalink},{content:a(()=>[i("div",Re,[i("span",Ne,r(s.rootStore.aioseo.urls.home.replace(/\/$/,"")),1),i("span",{innerHTML:s.rootStore.aioseo.localBusiness?.taxonomyPermalinkStructure.replace(/{slug}/,"<span class='slug'>"+v.currentTaxonomySlug+"</span>")},null,8,ze)]),t(_,{size:"medium",modelValue:s.optionsStore.options.localBusiness.locations.general.useCustomCategorySlug,"onUpdate:modelValue":o[3]||(o[3]=d=>s.optionsStore.options.localBusiness.locations.general.useCustomCategorySlug=d)},{default:a(()=>[I(r(n.strings.useCustomCategorySlug),1)]),_:1},8,["modelValue"]),s.optionsStore.options.localBusiness.locations.general.useCustomCategorySlug?(m(),y(L,{key:0,modelValue:s.optionsStore.options.localBusiness.locations.general.customCategorySlug,"onUpdate:modelValue":[o[4]||(o[4]=d=>s.optionsStore.options.localBusiness.locations.general.customCategorySlug=d),o[5]||(o[5]=d=>v.validateCustomCategorySlug(d))],class:V(["custom-slug",{"aioseo-error":!n.validCustomCategorySlug}]),size:"medium",spellcheck:!1},null,8,["modelValue","class"])):f("",!0),s.optionsStore.options.localBusiness.locations.general.useCustomCategorySlug&&!n.validCustomCategorySlug?(m(),x("div",He,r(n.strings.invalidCustomSlug),1)):f("",!0)]),_:1},8,["name"]),t(B,{class:"location-enhanced-search",name:n.strings.enhancedSearch},{content:a(()=>[t(k,{name:"enhancedSearch",modelValue:s.optionsStore.options.localBusiness.locations.general.enhancedSearch,"onUpdate:modelValue":o[6]||(o[6]=d=>s.optionsStore.options.localBusiness.locations.general.enhancedSearch=d),disabled:!s.rootStore.aioseo.localBusiness?.enhancedSearchTest,options:[{label:s.GLOBAL_STRINGS.off,value:!1,activeClass:"dark"},{label:s.GLOBAL_STRINGS.on,value:!0}]},null,8,["modelValue","disabled","options"]),i("div",We,r(n.strings.enhancedSearchDesc),1),s.rootStore.aioseo.localBusiness?.enhancedSearchTest?f("",!0):(m(),y(T,{key:0,innerHTML:n.strings.enhancedSearchError,type:"yellow"},null,8,["innerHTML"]))]),_:1},8,["name"]),s.optionsStore.options.localBusiness.locations.general.enhancedSearch?(m(),y(B,{key:0,class:"location-enhanced-search",name:n.strings.enhancedSearchExcerpt},{content:a(()=>[t(k,{name:"enhancedSearchExcerpt",modelValue:s.optionsStore.options.localBusiness.locations.general.enhancedSearchExcerpt,"onUpdate:modelValue":o[7]||(o[7]=d=>s.optionsStore.options.localBusiness.locations.general.enhancedSearchExcerpt=d),options:[{label:s.GLOBAL_STRINGS.off,value:!1,activeClass:"dark"},{label:s.GLOBAL_STRINGS.on,value:!0}]},null,8,["modelValue","options"]),i("div",Fe,r(n.strings.enhancedSearchExcerptDesc),1)]),_:1},8,["name"])):f("",!0),t(B,{class:"location-admin-labels",name:n.strings.customAdminLabels},{content:a(()=>[i("p",je,r(n.strings.customAdminLabelsDesc),1),i("div",qe,[i("div",Ye,[i("span",Ke,r(n.strings.singleLabel),1),t(L,{type:"text",size:"medium",modelValue:s.optionsStore.options.localBusiness.locations.general.singleLabel,"onUpdate:modelValue":o[8]||(o[8]=d=>s.optionsStore.options.localBusiness.locations.general.singleLabel=d)},null,8,["modelValue"])]),i("div",Qe,[i("span",Je,r(n.strings.pluralLabel),1),t(L,{type:"text",size:"medium",modelValue:s.optionsStore.options.localBusiness.locations.general.pluralLabel,"onUpdate:modelValue":o[9]||(o[9]=d=>s.optionsStore.options.localBusiness.locations.general.pluralLabel=d)},null,8,["modelValue"])])])]),_:1},8,["name"])]),_:1},8,["header-text"])):f("",!0)])}const Ze=U(De,[["render",Xe]]),h="aioseo-pro",$e={setup(){const{strings:c}=Y({name:"localBusinessInfo"});return{licenseStore:E(),optionsStore:O(),rootStore:G(),composableStrings:c,GLOBAL_STRINGS:D}},components:{BaseRadioToggle:R,BusinessInfo:Te,CoreAlert:N,CoreCard:M,CoreProBadge:z,CoreSettingsRow:w,LocalBusinessLocationsDisplayInfo:Ue,MultipleLocationsSettings:Ze,SvgDesktop:re,SvgMobile:le},data(){return{canShowMultipleLink:!1,displayInfo:{block:{copy:"",desc:C(e('To add this block, edit a page or post and search for the "%1$s Local - Business Info" block.',h),"AIOSEO")},shortcode:{copy:"[aioseo_local_business_info]",desc:C(e("Use the following shortcode to display the location info. %1$s",h),P.getDocLink(D.learnMore,"localSeoShortcodeBusinessInfo",!0))},widget:{copy:"",desc:this.composableStrings.visitWidgetsPage},php:{copy:"<?php if( function_exists( 'aioseo_local_business_info' ) ) aioseo_local_business_info(); ?>",desc:C(e("Use the following PHP code anywhere in your theme to display the location info. %1$s",h),P.getDocLink(D.learnMore,"localSeoFunctionBusinessInfo",!0))}},strings:{locationsSettings:e("Locations Settings",h),description:C(e("Whether your business has multiple locations, or just one, %1$s makes it easy to configure and display relevant information about your local business. You can use the custom-built tools below, or you can use the Locations custom post type (multiple locations only) to generate relevant and necessary information for search engines or for your customers.",h),"AIOSEO"),multipleLocations:e("Multiple Locations",h),multipleLocationsLink:C(e("Use the %1$sLocations%2$s Post Type in the menu on the left to start adding your locations.",h),`<a href="${this.rootStore.aioseo.localBusiness?.postTypeEditLink}">`,"</a>"),multipleLocationsFree:C(e("Multiple Locations feature is available only for %1$s Pro users. Upgrade to Pro and unlock all %2$s features!",h),"AIOSEO","AIOSEO"),displayLocationInfo:e("Display Location Info",h),widget:e("Widget",h),shortcode:e("Shortcode",h),gutenbergBlock:e("Gutenberg Block",h),phpCode:e("PHP Code",h)}}},computed:{isMultipleLocation:{get(){return this.licenseStore.isUnlicensed?!1:this.optionsStore.options.localBusiness.locations.general.multiple},set(c){this.optionsStore.options.localBusiness.locations.general.multiple=c}}},methods:{handlePostTypeMenu(){const c=this.optionsStore.options.localBusiness.locations.general.multiple,o=document.getElementById("menu-posts-aioseo-location");if(c&&!o){const p=document.querySelectorAll("#adminmenu .wp-menu-separator"),s=document.createElement("div");s.setAttribute("id","aioseo-locations"),p[1]&&(p[1].parentNode.insertBefore(s,p[1].previousSibling),q({...Ce,name:"Pages/LocationsMenu"},{strings:{locations:e("Locations",h),allLocations:e("All Locations",h),addNew:e("Add New",h),locationCategories:e("Location Categories",h)}}).mount(`#${s.getAttribute("id")}`))}!c&&o&&o.parentElement.removeChild(o),this.canShowMultipleLink=c}},mounted(){this.canShowMultipleLink=this.optionsStore.options.localBusiness.locations.general.multiple,window.aioseoBus.$on("changes-saved",this.handlePostTypeMenu)}},eo={class:"aioseo-locations"},oo={class:"aioseo-settings-row"},so=["innerHTML"],no=["innerHTML"];function to(c,o,p,s,n,v){const _=u("core-pro-badge"),L=u("svg-desktop"),B=u("svg-mobile"),k=u("base-radio-toggle"),T=u("core-alert"),A=u("core-settings-row"),d=u("local-business-locations-display-info"),H=u("core-card"),W=u("business-info"),F=u("multiple-locations-settings");return m(),x("div",eo,[t(H,{slug:"locationsSettings","header-text":n.strings.locationsSettings},{default:a(()=>[i("div",oo,r(n.strings.description),1),t(A,{class:"multiple-locations"},{name:a(()=>[I(r(n.strings.multipleLocations)+" ",1),s.licenseStore.isUnlicensed?(m(),y(_,{key:0})):f("",!0)]),content:a(()=>[t(k,{name:"multipleLocations",modelValue:v.isMultipleLocation,"onUpdate:modelValue":o[0]||(o[0]=j=>v.isMultipleLocation=j),disabled:s.licenseStore.isUnlicensed,options:[{label:s.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:s.GLOBAL_STRINGS.yes,value:!0}]},{desktop:a(()=>[t(L)]),mobile:a(()=>[t(B)]),_:1},8,["modelValue","disabled","options"]),s.licenseStore.license.isActive&&n.canShowMultipleLink?(m(),y(T,{key:0,class:"locations-link",type:"blue"},{default:a(()=>[i("div",{innerHTML:n.strings.multipleLocationsLink},null,8,so)]),_:1})):f("",!0),s.licenseStore.isUnlicensed?(m(),y(T,{key:1,class:"locations-link",type:"blue"},{default:a(()=>[i("div",{innerHTML:n.strings.multipleLocationsFree},null,8,no)]),_:1})):f("",!0)]),_:1}),t(d,{label:n.strings.displayLocationInfo,displayOptions:n.displayInfo},null,8,["label","displayOptions"])]),_:1},8,["header-text"]),s.optionsStore.options.localBusiness.locations.general.multiple?f("",!0):(m(),y(W,{key:0})),s.optionsStore.options.localBusiness.locations.general.multiple?(m(),y(F,{key:1})):f("",!0)])}const io=U($e,[["render",to]]),b="all-in-one-seo-pack",ao={components:{CoreBlur:ue,CoreSettingsRow:w,SvgCirclePlus:me},data(){return{strings:{description:C(e("Whether your business has multiple locations, or just one, %1$s makes it easy to configure and display relevant information about your local business. You can use the custom-built tools below, or you can use the Locations custom post type (multiple locations only) to generate relevant and necessary information for search engines or for your customers.",b),"AIOSEO"),name:e("name",b),nameDesc:e("Your name or company name.",b),businessType:e("Type",b),urls:e("URLs",b),image:e("Image",b),uploadOrSelectImage:e("Upload or Select Image",b),pasteYourImageUrl:e("Paste your image URL or select a new image",b),minimumSize:e("Minimum size: 112px x 112px, The image must be in JPG, PNG, GIF, SVG, or WEBP format.",b),remove:e("Remove",b),websiteDesc:e("Website URL:",b),aboutDesc:e("About Page URL:",b),contactDesc:e("Contact Page URL:",b)},businessTypes:[{label:e("default",b),value:"LocalBusiness"},{label:e("Animal Shelter",b),value:"Animal Shelter"}]}}},lo={class:"aioseo-locations-blur"},ro={class:"aioseo-settings-row"},co={class:"aioseo-col col-xs-12 text-xs-left"},uo={class:"field-description"},mo={class:"image-upload"},po={class:"aioseo-description"},go={class:"aioseo-col col-xs-12 text-xs-left"},_o={class:"aioseo-col col-xs-12 text-xs-left"},ho={class:"field-description"},fo={class:"aioseo-col col-xs-12 text-xs-left"},So={class:"field-description mt-8"},bo={class:"aioseo-col col-xs-12 text-xs-left"},yo={class:"field-description mt-8"};function vo(c,o,p,s,n,v){const _=u("base-input"),L=u("core-settings-row"),B=u("svg-circle-plus"),k=u("base-button"),T=u("base-select"),A=u("core-blur");return m(),x("div",lo,[t(A,null,{default:a(()=>[i("div",ro,r(n.strings.description),1),t(L,{name:n.strings.name,class:"info-name-row",align:""},{content:a(()=>[i("div",co,[t(_,{type:"text",size:"medium"}),i("span",uo,r(n.strings.nameDesc),1)])]),_:1},8,["name"]),t(L,{class:"info-business-image",name:n.strings.image},{content:a(()=>[i("div",mo,[t(_,{size:"medium",placeholder:n.strings.pasteYourImageUrl},null,8,["placeholder"]),t(k,{class:"insert-image",size:"medium",type:"black"},{default:a(()=>[t(B),I(" "+r(n.strings.uploadOrSelectImage),1)]),_:1}),t(k,{class:"remove-image",size:"medium",type:"gray"},{default:a(()=>[I(r(n.strings.remove),1)]),_:1})]),i("div",po,r(n.strings.minimumSize),1)]),_:1},8,["name"]),t(L,{name:n.strings.businessType,class:"info-business-type",align:""},{content:a(()=>[t(T,{size:"large",options:n.businessTypes,modelValue:"default"},null,8,["options"])]),_:1},8,["name"]),t(L,{name:n.strings.urls,class:"info-urls-row",align:""},{content:a(()=>[i("div",go,[i("div",_o,[i("span",ho,r(n.strings.websiteDesc),1),t(_,{type:"text",size:"medium"})]),i("div",fo,[i("span",So,r(n.strings.aboutDesc),1),t(_,{type:"text",size:"medium"})]),i("div",bo,[i("span",yo,r(n.strings.contactDesc),1),t(_,{type:"text",size:"medium"})])])]),_:1},8,["name"])]),_:1})])}const Lo=U(ao,[["render",vo]]),wo={class:"aioseo-locations-lite"},Bo={__name:"Locations",setup(c){const o="all-in-one-seo-pack",p=E(),s=[e("Local Business Schema",o),e("Multiple Locations",o),e("Business Info and Location blocks, widgets and shortcodes",o),e("Detailed Address, Contact and Payment Info",o)],n={locationInfo1:e("Local Business schema markup informs Google about your business details like name, address, phone number, hours, and price range, which can appear in a Knowledge Graph card or business carousel.",o),businessInfo:e("Business Info",o),ctaButtonText:e("Unlock Local SEO",o),ctaHeader:C(e("Local SEO is a %1$s Feature",o),"PRO")};return(v,_)=>(m(),x("div",wo,[t(l(M),{slug:"localBusinessInfo",class:"aioseo-locations-card",noSlide:!0},{header:a(()=>[i("span",null,r(n.businessInfo),1),t(l(z))]),default:a(()=>[t(l(Lo)),t(l(de),{"cta-link":l(P).getPricingUrl("local-seo","local-seo-upsell","locations","liteUpgrade"),"button-text":n.ctaButtonText,"learn-more-link":l(P).getUpsellUrl("local-seo",null,"liteUpgrade"),"feature-list":s,"align-top":"","hide-bonus":!l(p).isUnlicensed},{"header-text":a(()=>[I(r(n.ctaHeader),1)]),description:a(()=>[t(l(pe),{addon:"aioseo-local-business"}),I(" "+r(n.locationInfo1),1)]),_:1},8,["cta-link","button-text","learn-more-link","hide-bonus"])]),_:1})]))}},Co={class:"aioseo-locations"},fs={__name:"Locations",setup(c){const o="all-in-one-seo-pack",{shouldShowActivate:p,shouldShowLite:s,shouldShowMain:n,shouldShowUpdate:v}=ge({addonSlug:"aioseo-local-business"}),_={businessInfo:e("Business Info",o)};return(L,B)=>(m(),x("div",Co,[l(n)?(m(),y(l(io),{key:0})):f("",!0),l(v)||l(p)?(m(),y(l(ce),{key:1,"card-slug":"localBusinessInfo","header-text":_.businessInfo},null,8,["header-text"])):f("",!0),l(s)?(m(),y(l(Bo),{key:2})):f("",!0)]))}};export{fs as default};